@pantheon-systems/pds-toolkit-react 1.0.0-dev.269 → 1.0.0-dev.270
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/icons/Icon/Icon.d.ts +4 -0
- package/_dist/components/notifications/InlineMessage/InlineMessage.d.ts +3 -3
- package/_dist/components/notifications/SectionMessage/SectionMessage.d.ts +3 -3
- package/_dist/index.js +416 -411
- package/_dist/index.js.map +1 -1
- package/package.json +1 -1
package/_dist/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import './index.css';var
|
|
1
|
+
import './index.css';var Jt = Object.defineProperty, e1 = Object.defineProperties;
|
|
2
2
|
var t1 = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var L2 = Object.getOwnPropertySymbols;
|
|
4
|
+
var ot = Object.prototype.hasOwnProperty, it = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var rt = (t, n, s) => n in t ? Jt(t, n, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[n] = s, L = (t, n) => {
|
|
6
6
|
for (var s in n || (n = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var s of
|
|
10
|
-
|
|
7
|
+
ot.call(n, s) && rt(t, s, n[s]);
|
|
8
|
+
if (L2)
|
|
9
|
+
for (var s of L2(n))
|
|
10
|
+
it.call(n, s) && rt(t, s, n[s]);
|
|
11
11
|
return t;
|
|
12
12
|
}, re = (t, n) => e1(t, t1(n));
|
|
13
13
|
var F = (t, n) => {
|
|
14
14
|
var s = {};
|
|
15
15
|
for (var a in t)
|
|
16
|
-
|
|
17
|
-
if (t != null &&
|
|
18
|
-
for (var a of
|
|
19
|
-
n.indexOf(a) < 0 &&
|
|
16
|
+
ot.call(t, a) && n.indexOf(a) < 0 && (s[a] = t[a]);
|
|
17
|
+
if (t != null && L2)
|
|
18
|
+
for (var a of L2(t))
|
|
19
|
+
n.indexOf(a) < 0 && it.call(t, a) && (s[a] = t[a]);
|
|
20
20
|
return s;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
22
|
+
var dt = (t, n, s) => new Promise((a, r) => {
|
|
23
23
|
var i = (o) => {
|
|
24
24
|
try {
|
|
25
25
|
l(s.next(o));
|
|
@@ -35,27 +35,27 @@ var d2 = (t, n, s) => new Promise((a, r) => {
|
|
|
35
35
|
}, l = (o) => o.done ? a(o.value) : Promise.resolve(o.value).then(i, c);
|
|
36
36
|
l((s = s.apply(t, n)).next());
|
|
37
37
|
});
|
|
38
|
-
import e, { Children as
|
|
39
|
-
import
|
|
40
|
-
import { useFloating as Ae, offset as
|
|
38
|
+
import e, { Children as kt, isValidElement as ke, useState as Y, cloneElement as Fe, createElement as Nt, forwardRef as je, useEffect as le, useRef as ce, createContext as zt, useContext as $e, useLayoutEffect as n1, useCallback as K2, useMemo as xt, createRef as s1, Fragment as l1 } from "react";
|
|
39
|
+
import Vt from "hash-sum";
|
|
40
|
+
import { useFloating as Ae, offset as d2, flip as m2, shift as y2, autoUpdate as Pe, useHover as v2, useFocus as Q2, useDismiss as Te, useRole as De, useInteractions as Re, FloatingPortal as St, useId as a1, size as c1, useClick as Xe, useListNavigation as u2, useTransitionStyles as Ye, FloatingOverlay as r1, FloatingFocusManager as It, safePolygon as J2, arrow as o1, FloatingArrow as i1 } from "@floating-ui/react";
|
|
41
41
|
import { useHotkeys as d1 } from "react-hotkeys-hook";
|
|
42
42
|
import { useFloating as m1, flip as u1 } from "@floating-ui/react-dom";
|
|
43
|
-
import { CodeBlock as
|
|
44
|
-
import { useMultipleSelection as
|
|
45
|
-
import { isSafari as
|
|
46
|
-
import { useMeasure as
|
|
43
|
+
import { CodeBlock as f2 } from "react-code-block";
|
|
44
|
+
import { useMultipleSelection as g2, useCombobox as l2 } from "downshift";
|
|
45
|
+
import { isSafari as H2 } from "react-device-detect";
|
|
46
|
+
import { useMeasure as I2 } from "@reactuses/core";
|
|
47
47
|
import p1 from "focus-trap-react";
|
|
48
|
-
import { ToastContainer as h1, Slide as f1, cssTransition as g1, toast as
|
|
49
|
-
const
|
|
48
|
+
import { ToastContainer as h1, Slide as f1, cssTransition as g1, toast as mt } from "react-toastify";
|
|
49
|
+
const c2 = () => Math.random().toString(32).substring(2, 13), At = (t, n) => {
|
|
50
50
|
if (!(t != null && t.childNodes))
|
|
51
51
|
return;
|
|
52
52
|
let s;
|
|
53
53
|
for (n = n || [], s = 0; s < t.childNodes.length; s++)
|
|
54
|
-
n.push(t.childNodes[s]),
|
|
54
|
+
n.push(t.childNodes[s]), At(t.childNodes[s], n);
|
|
55
55
|
return n;
|
|
56
56
|
}, Oe = (t) => {
|
|
57
57
|
const n = {}, s = [];
|
|
58
|
-
return
|
|
58
|
+
return kt.forEach(t, (a) => {
|
|
59
59
|
if (ke(a)) {
|
|
60
60
|
const r = a.props.slot;
|
|
61
61
|
r ? n[r] ? n[r].push(a) : n[r] = [a] : s.push(a);
|
|
@@ -76,7 +76,7 @@ const ct = () => Math.random().toString(32).substring(2, 13), A2 = (t, n) => {
|
|
|
76
76
|
"verticalAlign",
|
|
77
77
|
"className"
|
|
78
78
|
]);
|
|
79
|
-
const o = `pds-icon pds-icon--${s} pds-icon--${n}`, p = `0 0 ${
|
|
79
|
+
const o = `pds-icon pds-icon--${s} pds-icon--${n}`, p = `0 0 ${X2[n].width} 512`, g = {
|
|
80
80
|
sm: "0.8rem",
|
|
81
81
|
md: "1rem",
|
|
82
82
|
lg: "1.2rem",
|
|
@@ -104,9 +104,9 @@ const ct = () => Math.random().toString(32).substring(2, 13), A2 = (t, n) => {
|
|
|
104
104
|
verticalAlign: a
|
|
105
105
|
}
|
|
106
106
|
}, i),
|
|
107
|
-
/* @__PURE__ */ e.createElement("path", { d:
|
|
107
|
+
/* @__PURE__ */ e.createElement("path", { d: X2[n].path, fill: "currentColor" })
|
|
108
108
|
);
|
|
109
|
-
},
|
|
109
|
+
}, X2 = {
|
|
110
110
|
angleDown: {
|
|
111
111
|
path: "M201.4 342.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 274.7 86.6 137.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z",
|
|
112
112
|
width: "440"
|
|
@@ -579,6 +579,10 @@ const ct = () => Math.random().toString(32).substring(2, 13), A2 = (t, n) => {
|
|
|
579
579
|
path: "M362.7 19.3L314.3 67.7 444.3 197.7l48.4-48.4c25-25 25-65.5 0-90.5L453.3 19.3c-25-25-65.5-25-90.5 0zm-71 71L58.6 323.5c-10.4 10.4-18 23.3-22.2 37.4L1 481.2C-1.5 489.7 .8 498.8 7 505s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L421.7 220.3 291.7 90.3z",
|
|
580
580
|
width: "512"
|
|
581
581
|
},
|
|
582
|
+
penField: {
|
|
583
|
+
path: "M534.4 48C553.1 29.2 583.5 29.2 602.3 48L624.2 69.9C643.1 88.8 642.9 119.5 623.8 138.1L584 177L494.7 87.7L534.4 48zM472.1 110.4L561.2 199.5L416 341.6C409.1 348.4 400.7 353.5 391.5 356.6L320 380.5C311.4 383.4 301.9 381.1 295.4 374.7C288.9 368.3 286.7 358.8 289.6 350.1L313.4 278.8C316.5 269.4 321.8 260.8 328.8 253.8L472.1 110.4zM64.4 240C64.4 195.8 100.2 160 144.4 160L256.4 160C274.1 160 288.4 174.3 288.4 192C288.4 209.7 274.1 224 256.4 224L144.4 224C135.6 224 128.4 231.2 128.4 240L128.4 464C128.4 472.8 135.6 480 144.4 480L496.4 480C505.2 480 512.4 472.8 512.4 464L512.4 352C512.4 334.3 526.7 320 544.4 320C562.1 320 576.4 334.3 576.4 352L576.4 464C576.4 508.2 540.6 544 496.4 544L144.4 544C100.2 544 64.4 508.2 64.4 464L64.4 240zM224.4 320C242.1 320 256.4 334.3 256.4 352C256.4 369.7 242.1 384 224.4 384C206.7 384 192.4 369.7 192.4 352C192.4 334.3 206.7 320 224.4 320z",
|
|
584
|
+
width: "640"
|
|
585
|
+
},
|
|
582
586
|
phone: {
|
|
583
587
|
path: "M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 368C234.3 334.7 177.3 277.7 144 207.3L193.3 167c13.7-11.2 18.4-30 11.6-46.3l-40-96z",
|
|
584
588
|
width: "512"
|
|
@@ -795,7 +799,7 @@ const ct = () => Math.random().toString(32).substring(2, 13), A2 = (t, n) => {
|
|
|
795
799
|
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",
|
|
796
800
|
width: "576"
|
|
797
801
|
}
|
|
798
|
-
}, Qn = Object.keys(
|
|
802
|
+
}, Qn = Object.keys(X2), ut = [
|
|
799
803
|
"dawn",
|
|
800
804
|
"dragonfruit",
|
|
801
805
|
"dusk",
|
|
@@ -813,9 +817,9 @@ const ct = () => Math.random().toString(32).substring(2, 13), A2 = (t, n) => {
|
|
|
813
817
|
"twilight",
|
|
814
818
|
"winter"
|
|
815
819
|
], _1 = (t) => {
|
|
816
|
-
const n = parseInt(
|
|
817
|
-
return
|
|
818
|
-
},
|
|
820
|
+
const n = parseInt(Vt(t), 16);
|
|
821
|
+
return ut[n % ut.length];
|
|
822
|
+
}, Y2 = (o) => {
|
|
819
823
|
var p = o, {
|
|
820
824
|
ariaLabel: t,
|
|
821
825
|
hasUserFallback: n = !1,
|
|
@@ -865,7 +869,7 @@ const ct = () => Math.random().toString(32).substring(2, 13), A2 = (t, n) => {
|
|
|
865
869
|
}, l),
|
|
866
870
|
a ? m : h
|
|
867
871
|
);
|
|
868
|
-
},
|
|
872
|
+
}, b2 = (i) => {
|
|
869
873
|
var c = i, {
|
|
870
874
|
label: t,
|
|
871
875
|
size: n = "md",
|
|
@@ -890,7 +894,7 @@ const ct = () => Math.random().toString(32).substring(2, 13), A2 = (t, n) => {
|
|
|
890
894
|
}, r),
|
|
891
895
|
/* @__PURE__ */ e.createElement("span", { className: `${l}__label` }, t)
|
|
892
896
|
);
|
|
893
|
-
},
|
|
897
|
+
}, et = (l) => {
|
|
894
898
|
var o = l, {
|
|
895
899
|
color: t = "transparent",
|
|
896
900
|
hasStatusIndicator: n = !1,
|
|
@@ -915,7 +919,7 @@ const ct = () => Math.random().toString(32).substring(2, 13), A2 = (t, n) => {
|
|
|
915
919
|
n === !0 && /* @__PURE__ */ e.createElement("span", { className: [d, u].join(" ").trim() }, r && /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, a, " ", r)),
|
|
916
920
|
/* @__PURE__ */ e.createElement("span", { className: `${p}__label` }, s)
|
|
917
921
|
);
|
|
918
|
-
},
|
|
922
|
+
}, z2 = (i) => {
|
|
919
923
|
var c = i, {
|
|
920
924
|
label: t,
|
|
921
925
|
type: n = "neutral",
|
|
@@ -942,8 +946,8 @@ const ct = () => Math.random().toString(32).substring(2, 13), A2 = (t, n) => {
|
|
|
942
946
|
/* @__PURE__ */ e.createElement("div", { className: `${l}__label` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, p), t)
|
|
943
947
|
);
|
|
944
948
|
};
|
|
945
|
-
|
|
946
|
-
const
|
|
949
|
+
z2.displayName = "Tally";
|
|
950
|
+
const R2 = 500, E1 = 700, xe = (d) => {
|
|
947
951
|
var u = d, {
|
|
948
952
|
content: t,
|
|
949
953
|
customTrigger: n = null,
|
|
@@ -977,13 +981,13 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
977
981
|
placement: a,
|
|
978
982
|
open: b,
|
|
979
983
|
onOpenChange: _,
|
|
980
|
-
middleware: [
|
|
984
|
+
middleware: [d2(s), m2(), y2()],
|
|
981
985
|
whileElementsMounted: Pe
|
|
982
|
-
}), $ =
|
|
986
|
+
}), $ = v2(E, {
|
|
983
987
|
restMs: 300,
|
|
984
988
|
delay: { open: 500, close: 0 },
|
|
985
989
|
move: !1
|
|
986
|
-
}), M =
|
|
990
|
+
}), M = Q2(E), k = Te(E), w = De(E, { role: "tooltip" }), { getReferenceProps: H, getFloatingProps: N } = Re([
|
|
987
991
|
$,
|
|
988
992
|
M,
|
|
989
993
|
k,
|
|
@@ -1012,7 +1016,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
1012
1016
|
iconSize: l
|
|
1013
1017
|
}
|
|
1014
1018
|
)
|
|
1015
|
-
), b && /* @__PURE__ */ e.createElement(
|
|
1019
|
+
), b && /* @__PURE__ */ e.createElement(St, null, /* @__PURE__ */ e.createElement(
|
|
1016
1020
|
"div",
|
|
1017
1021
|
L({
|
|
1018
1022
|
className: `${C}__container`,
|
|
@@ -1111,19 +1115,19 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
1111
1115
|
"className"
|
|
1112
1116
|
]);
|
|
1113
1117
|
const o = t ? `${t}__heading` : null;
|
|
1114
|
-
return
|
|
1118
|
+
return Nt(
|
|
1115
1119
|
a,
|
|
1116
1120
|
L({ className: z([o, r]), id: s }, i),
|
|
1117
1121
|
n
|
|
1118
1122
|
);
|
|
1119
|
-
},
|
|
1123
|
+
}, tt = (t) => typeof t == "string" || typeof t == "number" ? String(t) : e.isValidElement(t) ? e.Children.toArray(t.props.children).map(tt).join("") : "", ne = {
|
|
1120
1124
|
base: "pds-input",
|
|
1121
1125
|
disabled: "pds-is-disabled",
|
|
1122
1126
|
required: "pds-is-required",
|
|
1123
1127
|
error: "pds-has-error",
|
|
1124
1128
|
success: "pds-has-success",
|
|
1125
1129
|
readonly: "pds-is-readonly"
|
|
1126
|
-
}, Je = (t) => t ? { width: `${t / 16}rem` } : null,
|
|
1130
|
+
}, Je = (t) => t ? { width: `${t / 16}rem` } : null, pt = (t) => t.replace(/^(https?:\/\/)/, ""), Tt = () => /* @__PURE__ */ e.createElement("span", { className: "pds-input-label__required" }, /* @__PURE__ */ e.createElement(
|
|
1127
1131
|
U,
|
|
1128
1132
|
{
|
|
1129
1133
|
iconName: "asterisk",
|
|
@@ -1145,7 +1149,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
1145
1149
|
"pds-input-label",
|
|
1146
1150
|
s ? null : "visually-hidden",
|
|
1147
1151
|
o != null ? o : ""
|
|
1148
|
-
]), g = /* @__PURE__ */ e.createElement(e.Fragment, null, n, a && !r && /* @__PURE__ */ e.createElement(
|
|
1152
|
+
]), g = /* @__PURE__ */ e.createElement(e.Fragment, null, n, a && !r && /* @__PURE__ */ e.createElement(Tt, null), l && /* @__PURE__ */ e.createElement(xe, { content: l }, /* @__PURE__ */ e.createElement("span", null, /* @__PURE__ */ e.createElement(U, { iconName: "circleInfo", iconSize: "sm" }))));
|
|
1149
1153
|
return i ? /* @__PURE__ */ e.createElement("legend", { className: p, id: `${t}-legend` }, g) : c ? /* @__PURE__ */ e.createElement("span", { className: p, id: `${t}-field-label` }, g) : /* @__PURE__ */ e.createElement("label", { htmlFor: t, className: p, id: `${t}-label` }, g);
|
|
1150
1154
|
}, Be = ({
|
|
1151
1155
|
forInputGroup: t = !1,
|
|
@@ -1164,7 +1168,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
1164
1168
|
id: t ? `${n}__message-hidden` : `${n}__message`,
|
|
1165
1169
|
role: i === "error" ? "alert" : null
|
|
1166
1170
|
},
|
|
1167
|
-
r && i && /* @__PURE__ */ e.createElement(
|
|
1171
|
+
r && i && /* @__PURE__ */ e.createElement(p2, { variant: i }),
|
|
1168
1172
|
/* @__PURE__ */ e.createElement("div", { className: `${l}__text` }, s)
|
|
1169
1173
|
);
|
|
1170
1174
|
}, v1 = {
|
|
@@ -1172,7 +1176,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
1172
1176
|
error: "triangleExclamation",
|
|
1173
1177
|
success: "check",
|
|
1174
1178
|
filter: "barsFilter"
|
|
1175
|
-
},
|
|
1179
|
+
}, p2 = ({ variant: t }) => {
|
|
1176
1180
|
const n = "pds-input-decorator";
|
|
1177
1181
|
return /* @__PURE__ */ e.createElement("div", { className: z([n, `${n}--${t}`]) }, /* @__PURE__ */ e.createElement(
|
|
1178
1182
|
U,
|
|
@@ -1182,13 +1186,13 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
1182
1186
|
className: `${n}__icon`
|
|
1183
1187
|
}
|
|
1184
1188
|
));
|
|
1185
|
-
},
|
|
1189
|
+
}, Dt = ({
|
|
1186
1190
|
inputId: t,
|
|
1187
1191
|
shortcutLabel: n
|
|
1188
1192
|
}) => (d1("/", (a) => {
|
|
1189
1193
|
const r = document.getElementById(t);
|
|
1190
1194
|
r && r.focus(), a.preventDefault();
|
|
1191
|
-
}), /* @__PURE__ */ e.createElement("div", { className: "pds-input-search-shortcut" }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, n), /* @__PURE__ */ e.createElement(U, { iconName: "slashForward", iconSize: "md" }))),
|
|
1195
|
+
}), /* @__PURE__ */ e.createElement("div", { className: "pds-input-search-shortcut" }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, n), /* @__PURE__ */ e.createElement(U, { iconName: "slashForward", iconSize: "md" }))), nt = ({
|
|
1192
1196
|
id: t,
|
|
1193
1197
|
clearLabel: n,
|
|
1194
1198
|
handleClearInput: s
|
|
@@ -1202,7 +1206,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
1202
1206
|
onClick: s
|
|
1203
1207
|
},
|
|
1204
1208
|
/* @__PURE__ */ e.createElement(U, { iconName: "xmark", iconSize: "md" })
|
|
1205
|
-
),
|
|
1209
|
+
), Rt = ({
|
|
1206
1210
|
id: t,
|
|
1207
1211
|
currentLength: n,
|
|
1208
1212
|
maxLength: s,
|
|
@@ -1220,10 +1224,10 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
1220
1224
|
s,
|
|
1221
1225
|
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden", "aria-live": "polite" }, r && `${a} ${i}`)
|
|
1222
1226
|
);
|
|
1223
|
-
},
|
|
1227
|
+
}, st = (s) => {
|
|
1224
1228
|
var a = s, { label: t } = a, n = F(a, ["label"]);
|
|
1225
1229
|
return /* @__PURE__ */ e.createElement("span", L({ className: "visually-hidden" }, n), t);
|
|
1226
|
-
},
|
|
1230
|
+
}, ht = (t) => "options" in t, x2 = je(
|
|
1227
1231
|
(i, r) => {
|
|
1228
1232
|
var c = i, { children: t, isActive: n, className: s } = c, a = F(c, ["children", "isActive", "className"]);
|
|
1229
1233
|
const l = a1(), o = "pds-input__select-option", p = n ? `${o}--active` : null;
|
|
@@ -1239,7 +1243,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
1239
1243
|
t
|
|
1240
1244
|
);
|
|
1241
1245
|
}
|
|
1242
|
-
),
|
|
1246
|
+
), w2 = (l) => {
|
|
1243
1247
|
var o = l, {
|
|
1244
1248
|
colorType: t = "full-color",
|
|
1245
1249
|
isInline: n = !1,
|
|
@@ -1264,9 +1268,9 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
1264
1268
|
"aria-hidden": "true"
|
|
1265
1269
|
}, c),
|
|
1266
1270
|
/* @__PURE__ */ e.createElement("span", { className: `${p}__icon` }),
|
|
1267
|
-
a && !n ? /* @__PURE__ */ e.createElement("span", { className: `${p}__label` }, s) : /* @__PURE__ */ e.createElement(
|
|
1271
|
+
a && !n ? /* @__PURE__ */ e.createElement("span", { className: `${p}__label` }, s) : /* @__PURE__ */ e.createElement(st, { label: s })
|
|
1268
1272
|
);
|
|
1269
|
-
},
|
|
1273
|
+
}, o2 = je(
|
|
1270
1274
|
(C, y) => {
|
|
1271
1275
|
var v = C, {
|
|
1272
1276
|
ariaLabel: t,
|
|
@@ -1321,7 +1325,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
1321
1325
|
}
|
|
1322
1326
|
);
|
|
1323
1327
|
let k = [o];
|
|
1324
|
-
a == "icon-start" && r && k.unshift(M), a == "icon-end" && r && k.push(M), l && (k = [M], t =
|
|
1328
|
+
a == "icon-start" && r && k.unshift(M), a == "icon-end" && r && k.push(M), l && (k = [M], t = tt(o));
|
|
1325
1329
|
const w = /* @__PURE__ */ e.createElement(
|
|
1326
1330
|
"button",
|
|
1327
1331
|
L({
|
|
@@ -1338,12 +1342,12 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
1338
1342
|
onClick: p,
|
|
1339
1343
|
ref: y
|
|
1340
1344
|
}, _),
|
|
1341
|
-
c && /* @__PURE__ */ e.createElement(
|
|
1345
|
+
c && /* @__PURE__ */ e.createElement(w2, { className: `${h}__loading-indicator`, size: "md" }),
|
|
1342
1346
|
k
|
|
1343
1347
|
);
|
|
1344
1348
|
return (s || c) && d ? /* @__PURE__ */ e.createElement(xe, { content: d, customTrigger: w }) : /* @__PURE__ */ e.createElement(e.Fragment, null, w);
|
|
1345
1349
|
}
|
|
1346
|
-
), $
|
|
1350
|
+
), $2 = (p) => {
|
|
1347
1351
|
var g = p, {
|
|
1348
1352
|
disabled: t = !1,
|
|
1349
1353
|
displayType: n = "label-only",
|
|
@@ -1383,7 +1387,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
1383
1387
|
children: h
|
|
1384
1388
|
}) : null;
|
|
1385
1389
|
return t ? /* @__PURE__ */ e.createElement(
|
|
1386
|
-
|
|
1390
|
+
o2,
|
|
1387
1391
|
{
|
|
1388
1392
|
className: z([d, l != null ? l : ""]),
|
|
1389
1393
|
disabled: !0,
|
|
@@ -1402,14 +1406,14 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
1402
1406
|
}, r)), () => {
|
|
1403
1407
|
c && clearTimeout(c);
|
|
1404
1408
|
};
|
|
1405
|
-
}, [s, r]), [s, () =>
|
|
1409
|
+
}, [s, r]), [s, () => dt(void 0, null, function* () {
|
|
1406
1410
|
if (navigator.clipboard)
|
|
1407
1411
|
try {
|
|
1408
1412
|
yield navigator.clipboard.writeText(t), a(!0);
|
|
1409
1413
|
} catch (c) {
|
|
1410
1414
|
}
|
|
1411
1415
|
})];
|
|
1412
|
-
},
|
|
1416
|
+
}, V2 = je(
|
|
1413
1417
|
(u, d) => {
|
|
1414
1418
|
var b = u, {
|
|
1415
1419
|
ariaLabel: t,
|
|
@@ -1515,7 +1519,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
1515
1519
|
) : w
|
|
1516
1520
|
);
|
|
1517
1521
|
}
|
|
1518
|
-
),
|
|
1522
|
+
), ft = (c) => {
|
|
1519
1523
|
var l = c, {
|
|
1520
1524
|
ariaLabel: t = "Copy to clipboard",
|
|
1521
1525
|
clipboardText: n = "",
|
|
@@ -1531,7 +1535,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
1531
1535
|
]);
|
|
1532
1536
|
const o = "pds-clipboard-button", [p, g] = b1(n);
|
|
1533
1537
|
return /* @__PURE__ */ e.createElement(
|
|
1534
|
-
|
|
1538
|
+
V2,
|
|
1535
1539
|
L({
|
|
1536
1540
|
className: z([o, r != null ? r : ""]),
|
|
1537
1541
|
ariaLabel: t,
|
|
@@ -1544,7 +1548,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
1544
1548
|
variant: a
|
|
1545
1549
|
}, i)
|
|
1546
1550
|
);
|
|
1547
|
-
},
|
|
1551
|
+
}, Ot = (i) => {
|
|
1548
1552
|
var c = i, {
|
|
1549
1553
|
ariaLabel: t = "Close",
|
|
1550
1554
|
iconSize: n = "xl",
|
|
@@ -1566,7 +1570,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
1566
1570
|
}, r),
|
|
1567
1571
|
/* @__PURE__ */ e.createElement(U, { iconName: "xmark", iconSize: n })
|
|
1568
1572
|
);
|
|
1569
|
-
},
|
|
1573
|
+
}, Ft = () => {
|
|
1570
1574
|
const t = typeof window != "undefined", [n, s] = Y(
|
|
1571
1575
|
t && window.innerWidth !== void 0 ? window.innerWidth : 1024
|
|
1572
1576
|
);
|
|
@@ -1580,11 +1584,11 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
1580
1584
|
window.removeEventListener("resize", a);
|
|
1581
1585
|
};
|
|
1582
1586
|
}, []), n;
|
|
1583
|
-
}, ye =
|
|
1587
|
+
}, ye = zt(null), $1 = ({
|
|
1584
1588
|
children: t,
|
|
1585
1589
|
mobileMenuMaxWidth: n = 640
|
|
1586
1590
|
}) => {
|
|
1587
|
-
const s =
|
|
1591
|
+
const s = Ft(), a = s <= n, r = {
|
|
1588
1592
|
isMobile: a,
|
|
1589
1593
|
mobileMenuMaxWidth: n,
|
|
1590
1594
|
windowWidth: s
|
|
@@ -1592,7 +1596,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
1592
1596
|
return le(() => {
|
|
1593
1597
|
a ? document.body.classList.add("pds-no-scroll-x") : document.body.classList.remove("pds-no-scroll-x");
|
|
1594
1598
|
}, [a]), /* @__PURE__ */ e.createElement(ye.Provider, { value: r }, t);
|
|
1595
|
-
},
|
|
1599
|
+
}, O2 = (t) => t.isSeparator, F2 = (t) => t.isHeading, P2 = (t) => t.isLink, y1 = (t) => t.isNode, Pt = (C) => {
|
|
1596
1600
|
var v = C, {
|
|
1597
1601
|
disabled: t,
|
|
1598
1602
|
displayType: n = "icon-end",
|
|
@@ -1758,9 +1762,9 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
1758
1762
|
K.current && !K.current.contains(j.target) && J && de();
|
|
1759
1763
|
}, Me = (j, ae, Q = "", se = "", ...ie) => {
|
|
1760
1764
|
const fe = Q ? `-group-${Q}` : "", ge = O + fe + "-item-" + (ae + 1), Ee = j.id ? j.id : ge;
|
|
1761
|
-
if (
|
|
1765
|
+
if (O2(j))
|
|
1762
1766
|
return /* @__PURE__ */ e.createElement("li", { role: "separator", key: Ee });
|
|
1763
|
-
if (
|
|
1767
|
+
if (F2(j))
|
|
1764
1768
|
return /* @__PURE__ */ e.createElement(
|
|
1765
1769
|
"li",
|
|
1766
1770
|
{
|
|
@@ -1773,12 +1777,12 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
1773
1777
|
);
|
|
1774
1778
|
if (y1(j))
|
|
1775
1779
|
return /* @__PURE__ */ e.createElement("li", { role: "presentation", key: Ee }, j.nodeContent);
|
|
1776
|
-
if (
|
|
1780
|
+
if (P2(j) || j.label) {
|
|
1777
1781
|
D.current.push(Ee), X.current.push(j);
|
|
1778
|
-
let
|
|
1779
|
-
q !== "" && !j.disabled && (
|
|
1782
|
+
let s2 = !1;
|
|
1783
|
+
q !== "" && !j.disabled && (s2 = q === Ee);
|
|
1780
1784
|
let ze;
|
|
1781
|
-
if (j.label && (ze = [j.label]),
|
|
1785
|
+
if (j.label && (ze = [j.label]), P2(j) && (ze = [j.linkContent.props.children]), j.iconName) {
|
|
1782
1786
|
const Ue = /* @__PURE__ */ e.createElement(
|
|
1783
1787
|
U,
|
|
1784
1788
|
{
|
|
@@ -1792,7 +1796,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
1792
1796
|
let Ke;
|
|
1793
1797
|
j.description && (Ke = /* @__PURE__ */ e.createElement("span", { className: `${A}__item-description` }, j.description));
|
|
1794
1798
|
let qe;
|
|
1795
|
-
if (
|
|
1799
|
+
if (P2(j)) {
|
|
1796
1800
|
const Ue = j.linkContent.type;
|
|
1797
1801
|
qe = /* @__PURE__ */ e.createElement(Ue, L({ tabIndex: -1 }, j.linkContent.props), /* @__PURE__ */ e.createElement("span", { className: `${A}__item-label` }, ze), Ke);
|
|
1798
1802
|
} else
|
|
@@ -1803,7 +1807,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
1803
1807
|
id: Ee,
|
|
1804
1808
|
key: Ee,
|
|
1805
1809
|
"data-testid": j.testId,
|
|
1806
|
-
className:
|
|
1810
|
+
className: s2 ? `${A}__item-focused` : null,
|
|
1807
1811
|
role: "menuitem",
|
|
1808
1812
|
tabIndex: -1,
|
|
1809
1813
|
onClick: pe,
|
|
@@ -1812,27 +1816,27 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
1812
1816
|
qe
|
|
1813
1817
|
);
|
|
1814
1818
|
}
|
|
1815
|
-
},
|
|
1819
|
+
}, e2 = (j, ae) => {
|
|
1816
1820
|
const Q = [];
|
|
1817
1821
|
let se = ae.shift(), ie = [];
|
|
1818
1822
|
return j.map((fe, ge) => {
|
|
1819
1823
|
fe !== se ? (ie.push(fe), ge + 1 === j.length && Q.push(ie)) : (Q.push(ie), ie = [], ie.push(fe), se = ae.shift());
|
|
1820
1824
|
}), Q.filter((fe) => fe.length > 0);
|
|
1821
|
-
},
|
|
1825
|
+
}, t2 = (j) => {
|
|
1822
1826
|
D.current = [], X.current = [];
|
|
1823
1827
|
const ae = j, Q = j.filter(
|
|
1824
|
-
|
|
1828
|
+
F2 || O2
|
|
1825
1829
|
), se = Q.length > 0;
|
|
1826
1830
|
let ie = [`${A}__listbox`];
|
|
1827
1831
|
if (b && ie.push(`${A}__listbox--navbar`), l === "end" && ie.push(`${A}__listbox--end`), n === "icon-only" && ie.push(`${A}__listbox--icon-only`), ie = z(ie), se) {
|
|
1828
|
-
const fe =
|
|
1832
|
+
const fe = e2(j, Q);
|
|
1829
1833
|
fe.forEach(() => {
|
|
1830
|
-
V.current.push(
|
|
1834
|
+
V.current.push(c2());
|
|
1831
1835
|
});
|
|
1832
1836
|
let ge = V.current[0];
|
|
1833
1837
|
const Ee = fe[0].findIndex(
|
|
1834
|
-
(ze) => !
|
|
1835
|
-
),
|
|
1838
|
+
(ze) => !O2(ze) && !F2(ze)
|
|
1839
|
+
), s2 = `${O}-group-${ge}-item-${Ee + 1}`;
|
|
1836
1840
|
return /* @__PURE__ */ e.createElement(
|
|
1837
1841
|
"div",
|
|
1838
1842
|
{
|
|
@@ -1841,7 +1845,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
1841
1845
|
role: "menu",
|
|
1842
1846
|
tabIndex: -1,
|
|
1843
1847
|
"aria-labelledby": O,
|
|
1844
|
-
"aria-activedescendant": q !== "" ? q :
|
|
1848
|
+
"aria-activedescendant": q !== "" ? q : s2,
|
|
1845
1849
|
style: {
|
|
1846
1850
|
visibility: J ? "visible" : "hidden",
|
|
1847
1851
|
opacity: J ? "1" : "0",
|
|
@@ -1855,18 +1859,18 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
1855
1859
|
},
|
|
1856
1860
|
fe.map((ze, Ke) => {
|
|
1857
1861
|
ge = V.current[Ke];
|
|
1858
|
-
const qe = ze[0].isHeading, Ue = qe ? `${O}-group-${ge}-heading` : "",
|
|
1862
|
+
const qe = ze[0].isHeading, Ue = qe ? `${O}-group-${ge}-heading` : "", Kt = `${O}-group-${ge}`, Xt = qe ? null : `${d} ${Ke + 1}`;
|
|
1859
1863
|
return /* @__PURE__ */ e.createElement(
|
|
1860
1864
|
"ul",
|
|
1861
1865
|
{
|
|
1862
1866
|
role: "group",
|
|
1863
1867
|
"aria-labelledby": Ue,
|
|
1864
|
-
"aria-label":
|
|
1865
|
-
key:
|
|
1868
|
+
"aria-label": Xt,
|
|
1869
|
+
key: Kt
|
|
1866
1870
|
},
|
|
1867
|
-
ze.map((
|
|
1868
|
-
|
|
1869
|
-
|
|
1871
|
+
ze.map((Yt, Qt) => Me(
|
|
1872
|
+
Yt,
|
|
1873
|
+
Qt,
|
|
1870
1874
|
ge,
|
|
1871
1875
|
Ue
|
|
1872
1876
|
))
|
|
@@ -1900,7 +1904,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
1900
1904
|
};
|
|
1901
1905
|
let We;
|
|
1902
1906
|
if (n === "icon-end" && (We = /* @__PURE__ */ e.createElement(
|
|
1903
|
-
|
|
1907
|
+
o2,
|
|
1904
1908
|
{
|
|
1905
1909
|
id: O,
|
|
1906
1910
|
isSplitButton: r,
|
|
@@ -1920,9 +1924,9 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
1920
1924
|
ref: f
|
|
1921
1925
|
}
|
|
1922
1926
|
)), n === "icon-only") {
|
|
1923
|
-
const j =
|
|
1927
|
+
const j = tt(i);
|
|
1924
1928
|
We = /* @__PURE__ */ e.createElement(
|
|
1925
|
-
|
|
1929
|
+
V2,
|
|
1926
1930
|
{
|
|
1927
1931
|
id: O,
|
|
1928
1932
|
ariaLabel: j,
|
|
@@ -1942,19 +1946,19 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
1942
1946
|
}
|
|
1943
1947
|
);
|
|
1944
1948
|
}
|
|
1945
|
-
const
|
|
1949
|
+
const h2 = (j) => {
|
|
1946
1950
|
const ae = j.target;
|
|
1947
1951
|
ae.classList.toggle(`${A}__toggle--expanded`), ae.setAttribute(
|
|
1948
1952
|
"aria-expanded",
|
|
1949
1953
|
ae.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
1950
1954
|
), ae.nextElementSibling.classList.toggle(`${A}__mobile-menu--expanded`);
|
|
1951
|
-
},
|
|
1952
|
-
let
|
|
1955
|
+
}, r2 = () => /* @__PURE__ */ e.createElement("ul", { className: `${A}__mobile-menu`, role: "menu" }, c.map((j, ae) => Me(j, ae)));
|
|
1956
|
+
let n2;
|
|
1953
1957
|
const be = n === "icon-end" ? "pds-button pds-button--navbar" : null, Le = z([
|
|
1954
1958
|
`${A}__toggle`,
|
|
1955
1959
|
be
|
|
1956
1960
|
]);
|
|
1957
|
-
x && (
|
|
1961
|
+
x && (n2 = /* @__PURE__ */ e.createElement(
|
|
1958
1962
|
"button",
|
|
1959
1963
|
{
|
|
1960
1964
|
id: O,
|
|
@@ -1962,7 +1966,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
1962
1966
|
disabled: t,
|
|
1963
1967
|
className: Le,
|
|
1964
1968
|
"aria-expanded": !1,
|
|
1965
|
-
onClick:
|
|
1969
|
+
onClick: h2
|
|
1966
1970
|
},
|
|
1967
1971
|
n === "icon-only" ? /* @__PURE__ */ e.createElement("span", { className: `${A}__icon-label` }, /* @__PURE__ */ e.createElement(U, { iconName: s }), " ", i) : i,
|
|
1968
1972
|
/* @__PURE__ */ e.createElement(
|
|
@@ -1974,7 +1978,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
1974
1978
|
}
|
|
1975
1979
|
)
|
|
1976
1980
|
));
|
|
1977
|
-
const ve =
|
|
1981
|
+
const ve = n2, Ne = J ? `${A}--expanded` : null;
|
|
1978
1982
|
return /* @__PURE__ */ e.createElement(
|
|
1979
1983
|
"span",
|
|
1980
1984
|
L({
|
|
@@ -1988,7 +1992,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
1988
1992
|
"data-testid": g,
|
|
1989
1993
|
ref: K
|
|
1990
1994
|
}, y),
|
|
1991
|
-
x ? /* @__PURE__ */ e.createElement(e.Fragment, null, ve, /* @__PURE__ */ e.createElement(
|
|
1995
|
+
x ? /* @__PURE__ */ e.createElement(e.Fragment, null, ve, /* @__PURE__ */ e.createElement(r2, null)) : /* @__PURE__ */ e.createElement(e.Fragment, null, We, t2(c))
|
|
1992
1996
|
);
|
|
1993
1997
|
}, es = (g) => {
|
|
1994
1998
|
var d = g, {
|
|
@@ -2051,7 +2055,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
2051
2055
|
}
|
|
2052
2056
|
),
|
|
2053
2057
|
/* @__PURE__ */ e.createElement("label", { htmlFor: f.id ? f.id : `${n}-option-${E}` }, f.tally ? /* @__PURE__ */ e.createElement(
|
|
2054
|
-
|
|
2058
|
+
z2,
|
|
2055
2059
|
{
|
|
2056
2060
|
label: f.tally.label,
|
|
2057
2061
|
type: f.tally.type,
|
|
@@ -2089,7 +2093,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
2089
2093
|
const g = "pds-split-button", d = `${g}--${i}`, u = t[0], b = t.slice(1);
|
|
2090
2094
|
let _ = null;
|
|
2091
2095
|
return "isLink" in u && u.isLink === !0 ? _ = /* @__PURE__ */ e.createElement(
|
|
2092
|
-
$
|
|
2096
|
+
$2,
|
|
2093
2097
|
{
|
|
2094
2098
|
className: `${g}__primary-action`,
|
|
2095
2099
|
size: r,
|
|
@@ -2099,7 +2103,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
2099
2103
|
linkContent: u.linkContent
|
|
2100
2104
|
}
|
|
2101
2105
|
) : "label" in u && (_ = /* @__PURE__ */ e.createElement(
|
|
2102
|
-
|
|
2106
|
+
o2,
|
|
2103
2107
|
{
|
|
2104
2108
|
className: `${g}__primary-action`,
|
|
2105
2109
|
label: u.label,
|
|
@@ -2116,7 +2120,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
2116
2120
|
}, l),
|
|
2117
2121
|
_,
|
|
2118
2122
|
/* @__PURE__ */ e.createElement(
|
|
2119
|
-
|
|
2123
|
+
Pt,
|
|
2120
2124
|
{
|
|
2121
2125
|
className: `${g}__menu-button`,
|
|
2122
2126
|
label: a,
|
|
@@ -2168,7 +2172,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
2168
2172
|
}, t),
|
|
2169
2173
|
s && !i && /* @__PURE__ */ e.createElement(U, { iconName: s, className: `${_}__icon` }),
|
|
2170
2174
|
i && /* @__PURE__ */ e.createElement(
|
|
2171
|
-
|
|
2175
|
+
w2,
|
|
2172
2176
|
{
|
|
2173
2177
|
className: `${_}__spinner`,
|
|
2174
2178
|
size: "sm",
|
|
@@ -2192,7 +2196,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
2192
2196
|
}, d),
|
|
2193
2197
|
p ? /* @__PURE__ */ e.createElement(xe, { content: p, customTrigger: E }) : E
|
|
2194
2198
|
);
|
|
2195
|
-
},
|
|
2199
|
+
}, B2 = {
|
|
2196
2200
|
info: "circleInfo",
|
|
2197
2201
|
warning: "triangleExclamation",
|
|
2198
2202
|
success: "circleCheck",
|
|
@@ -2231,12 +2235,12 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
2231
2235
|
/* @__PURE__ */ e.createElement("div", { className: `${o}__inner` }, /* @__PURE__ */ e.createElement("div", { className: `${o}__icon ${o}__icon--${s}` }, /* @__PURE__ */ e.createElement(
|
|
2232
2236
|
U,
|
|
2233
2237
|
{
|
|
2234
|
-
iconName: `${s}` in
|
|
2238
|
+
iconName: `${s}` in B2 ? B2[s] : B2.info,
|
|
2235
2239
|
iconSize: "xl"
|
|
2236
2240
|
}
|
|
2237
2241
|
)), /* @__PURE__ */ e.createElement("div", { className: `${o}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, g), n && /* @__PURE__ */ e.createElement("div", { className: `${o}__title` }, n), t && /* @__PURE__ */ e.createElement("div", { className: `${o}__main-content` }, t)))
|
|
2238
2242
|
);
|
|
2239
|
-
},
|
|
2243
|
+
}, A2 = (i) => {
|
|
2240
2244
|
var c = i, {
|
|
2241
2245
|
background: t = "default",
|
|
2242
2246
|
children: n,
|
|
@@ -2262,7 +2266,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
2262
2266
|
d && /* @__PURE__ */ e.createElement("div", { className: `${l}__image` }, d[0]),
|
|
2263
2267
|
u && /* @__PURE__ */ e.createElement("div", { className: `${l}__main` }, u)
|
|
2264
2268
|
);
|
|
2265
|
-
},
|
|
2269
|
+
}, lt = (c) => {
|
|
2266
2270
|
var l = c, {
|
|
2267
2271
|
fontSize: t = "XL",
|
|
2268
2272
|
fontWeight: n = "bold",
|
|
@@ -2377,7 +2381,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
2377
2381
|
]);
|
|
2378
2382
|
const p = "pds-empty-state-card";
|
|
2379
2383
|
return /* @__PURE__ */ e.createElement("div", L({ className: z([p, i != null ? i : ""]) }, c), /* @__PURE__ */ e.createElement("div", { className: `${p}__text` }, /* @__PURE__ */ e.createElement(
|
|
2380
|
-
|
|
2384
|
+
lt,
|
|
2381
2385
|
{
|
|
2382
2386
|
className: `${p}__heading`,
|
|
2383
2387
|
fontSize: "XL",
|
|
@@ -2386,7 +2390,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
2386
2390
|
text: n
|
|
2387
2391
|
}
|
|
2388
2392
|
), /* @__PURE__ */ e.createElement("p", { className: `${p}__summary` }, r)), /* @__PURE__ */ e.createElement(
|
|
2389
|
-
$
|
|
2393
|
+
$2,
|
|
2390
2394
|
{
|
|
2391
2395
|
displayType: s ? "icon-end" : "label-only",
|
|
2392
2396
|
linkContent: a,
|
|
@@ -2408,8 +2412,8 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
2408
2412
|
"headingText",
|
|
2409
2413
|
"className"
|
|
2410
2414
|
]);
|
|
2411
|
-
const l = "pds-links-card", o = /* @__PURE__ */ e.createElement(
|
|
2412
|
-
|
|
2415
|
+
const l = "pds-links-card", o = /* @__PURE__ */ e.createElement(A2, null, /* @__PURE__ */ e.createElement("div", { slot: "main" }, s && /* @__PURE__ */ e.createElement(
|
|
2416
|
+
lt,
|
|
2413
2417
|
{
|
|
2414
2418
|
className: `${l}__heading`,
|
|
2415
2419
|
fontSize: "XL",
|
|
@@ -2445,9 +2449,9 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
2445
2449
|
p = ["next", "wordpress"];
|
|
2446
2450
|
break;
|
|
2447
2451
|
}
|
|
2448
|
-
l = /* @__PURE__ */ e.createElement("span", { className: `${i}__group` },
|
|
2452
|
+
l = /* @__PURE__ */ e.createElement("span", { className: `${i}__group` }, Z2[p[0]], Z2[p[1]]);
|
|
2449
2453
|
} else
|
|
2450
|
-
l =
|
|
2454
|
+
l = Z2[t];
|
|
2451
2455
|
return /* @__PURE__ */ e.createElement(
|
|
2452
2456
|
"div",
|
|
2453
2457
|
L({
|
|
@@ -2455,7 +2459,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
2455
2459
|
}, s),
|
|
2456
2460
|
l
|
|
2457
2461
|
);
|
|
2458
|
-
},
|
|
2462
|
+
}, Z2 = {
|
|
2459
2463
|
drupal: /* @__PURE__ */ e.createElement(
|
|
2460
2464
|
"svg",
|
|
2461
2465
|
{
|
|
@@ -2693,7 +2697,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
2693
2697
|
}
|
|
2694
2698
|
)
|
|
2695
2699
|
)
|
|
2696
|
-
},
|
|
2700
|
+
}, gt = {
|
|
2697
2701
|
"early-access": { label: "Early Access", color: "success" }
|
|
2698
2702
|
}, cs = (g) => {
|
|
2699
2703
|
var d = g, {
|
|
@@ -2717,7 +2721,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
2717
2721
|
"supplementalLinks",
|
|
2718
2722
|
"className"
|
|
2719
2723
|
]);
|
|
2720
|
-
const u = "pds-new-site-card", b = c.type, _ = /* @__PURE__ */ e.createElement(
|
|
2724
|
+
const u = "pds-new-site-card", b = c.type, _ = /* @__PURE__ */ e.createElement(A2, { padding: "narrow" }, /* @__PURE__ */ e.createElement("div", { slot: "main", className: `${u}__main` }, /* @__PURE__ */ e.createElement(
|
|
2721
2725
|
b,
|
|
2722
2726
|
L({
|
|
2723
2727
|
"aria-label": c.props.children,
|
|
@@ -2725,11 +2729,11 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
2725
2729
|
}, c.props),
|
|
2726
2730
|
/* @__PURE__ */ e.createElement("div", { className: `${u}__header` }, n && /* @__PURE__ */ e.createElement("div", { className: `${u}__icon` }, /* @__PURE__ */ e.createElement(L1, { platformType: n })), /* @__PURE__ */ e.createElement("div", { className: `${u}__title` }, a, r && /* @__PURE__ */ e.createElement("div", { className: `${u}__subtitle` }, r))),
|
|
2727
2731
|
t && /* @__PURE__ */ e.createElement(
|
|
2728
|
-
|
|
2732
|
+
b2,
|
|
2729
2733
|
{
|
|
2730
|
-
label:
|
|
2734
|
+
label: gt[t].label,
|
|
2731
2735
|
size: "sm",
|
|
2732
|
-
color:
|
|
2736
|
+
color: gt[t].color,
|
|
2733
2737
|
className: `${u}__badge`
|
|
2734
2738
|
}
|
|
2735
2739
|
),
|
|
@@ -3123,7 +3127,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
3123
3127
|
b.key === "Enter" && (b.preventDefault(), l && l());
|
|
3124
3128
|
}
|
|
3125
3129
|
},
|
|
3126
|
-
/* @__PURE__ */ e.createElement(
|
|
3130
|
+
/* @__PURE__ */ e.createElement(A2, { padding: "narrow" }, /* @__PURE__ */ e.createElement("div", { slot: "main" }, /* @__PURE__ */ e.createElement("div", { className: `${u}__top` }, /* @__PURE__ */ e.createElement("div", { className: `${u}__icon` }, /* @__PURE__ */ e.createElement(M1, { paymentType: t })), /* @__PURE__ */ e.createElement("div", { className: `${u}__details` }, /* @__PURE__ */ e.createElement("div", { className: `${u}__details-header` }, t, " — ", n), /* @__PURE__ */ e.createElement("div", { className: `${u}__details-name` }, s), /* @__PURE__ */ e.createElement("div", { className: `${u}__details-exp` }, a))), /* @__PURE__ */ e.createElement("div", { className: `${u}__bottom` }, /* @__PURE__ */ e.createElement("div", null, r), /* @__PURE__ */ e.createElement(
|
|
3127
3131
|
"button",
|
|
3128
3132
|
{
|
|
3129
3133
|
type: "button",
|
|
@@ -3140,7 +3144,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
3140
3144
|
included: "circleCheck",
|
|
3141
3145
|
notIncluded: "xmark",
|
|
3142
3146
|
addon: "circlePlusOutline"
|
|
3143
|
-
},
|
|
3147
|
+
}, Ct = (l) => {
|
|
3144
3148
|
var o = l, {
|
|
3145
3149
|
listItems: t,
|
|
3146
3150
|
listLabel: n,
|
|
@@ -3227,18 +3231,18 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
3227
3231
|
"value",
|
|
3228
3232
|
"className"
|
|
3229
3233
|
]);
|
|
3230
|
-
var
|
|
3234
|
+
var r2, n2;
|
|
3231
3235
|
const E = Je(a), $ = "pds-select", M = n ? ne.disabled : null, k = d && !n ? ne.required : null, w = y === "error" ? ne.error : null, H = y === "success" ? ne.success : null;
|
|
3232
3236
|
let N = null;
|
|
3233
3237
|
y === "error" && (N = "error"), y === "success" && (N = "success");
|
|
3234
|
-
const x = _ || c, A = typeof C != "undefined", R = typeof t != "undefined", O = ((be) => be.reduce((Le, ve) =>
|
|
3238
|
+
const x = _ || c, A = typeof C != "undefined", R = typeof t != "undefined", O = ((be) => be.reduce((Le, ve) => ht(ve) ? [...Le, ...ve.options] : [...Le, ve], []))(g), P = (be) => O.findIndex((Le) => Le.value === be), G = A && P(C) >= 0 ? P(C) : null, K = R ? P(t) : null, J = G || K, [te, Z] = Y(!1), [B, q] = Y(null), [T, I] = Y(
|
|
3235
3239
|
J != null ? J : null
|
|
3236
|
-
), S = T !== null ? (
|
|
3240
|
+
), S = T !== null ? (r2 = O[T]) == null ? void 0 : r2.label : void 0, V = T !== null ? (n2 = O[T]) == null ? void 0 : n2.value : void 0, D = ce([]), { context: X, refs: ee, floatingStyles: ue } = Ae({
|
|
3237
3241
|
open: te,
|
|
3238
3242
|
onOpenChange: Z,
|
|
3239
3243
|
whileElementsMounted: Pe,
|
|
3240
3244
|
middleware: [
|
|
3241
|
-
|
|
3245
|
+
d2(({ placement: be }) => be.startsWith("top") ? 16 : 0),
|
|
3242
3246
|
c1({
|
|
3243
3247
|
apply({ availableHeight: be, elements: Le }) {
|
|
3244
3248
|
Object.assign(Le.floating.style, {
|
|
@@ -3247,12 +3251,12 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
3247
3251
|
});
|
|
3248
3252
|
}
|
|
3249
3253
|
}),
|
|
3250
|
-
|
|
3254
|
+
m2()
|
|
3251
3255
|
]
|
|
3252
3256
|
}), de = Xe(X, {
|
|
3253
3257
|
enabled: !n,
|
|
3254
3258
|
event: "mousedown"
|
|
3255
|
-
}), Ce = Te(X), _e = De(X, { role: "listbox" }), oe =
|
|
3259
|
+
}), Ce = Te(X), _e = De(X, { role: "listbox" }), oe = u2(X, {
|
|
3256
3260
|
listRef: D,
|
|
3257
3261
|
activeIndex: B,
|
|
3258
3262
|
selectedIndex: T,
|
|
@@ -3284,20 +3288,20 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
3284
3288
|
I(be), Z(!1);
|
|
3285
3289
|
}
|
|
3286
3290
|
}, [C]);
|
|
3287
|
-
const
|
|
3291
|
+
const e2 = () => {
|
|
3288
3292
|
l && l(V);
|
|
3289
|
-
},
|
|
3293
|
+
}, t2 = () => {
|
|
3290
3294
|
o && o(V);
|
|
3291
3295
|
}, We = () => {
|
|
3292
3296
|
ee.reference.current.focus();
|
|
3293
|
-
},
|
|
3297
|
+
}, h2 = (be) => {
|
|
3294
3298
|
let Le = 0;
|
|
3295
3299
|
return be.map((ve) => {
|
|
3296
|
-
if (
|
|
3300
|
+
if (ht(ve)) {
|
|
3297
3301
|
const j = ve.options.map((ae) => {
|
|
3298
3302
|
const Q = Le++;
|
|
3299
3303
|
return /* @__PURE__ */ e.createElement(
|
|
3300
|
-
|
|
3304
|
+
x2,
|
|
3301
3305
|
L({
|
|
3302
3306
|
key: Q,
|
|
3303
3307
|
ref: (se) => {
|
|
@@ -3328,7 +3332,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
3328
3332
|
}
|
|
3329
3333
|
const Ne = Le++;
|
|
3330
3334
|
return /* @__PURE__ */ e.createElement(
|
|
3331
|
-
|
|
3335
|
+
x2,
|
|
3332
3336
|
L({
|
|
3333
3337
|
key: Ne,
|
|
3334
3338
|
ref: (j) => {
|
|
@@ -3386,10 +3390,10 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
3386
3390
|
"aria-autocomplete": "none"
|
|
3387
3391
|
}, he({
|
|
3388
3392
|
onClick: We,
|
|
3389
|
-
onBlur:
|
|
3390
|
-
onFocus:
|
|
3393
|
+
onBlur: e2,
|
|
3394
|
+
onFocus: t2
|
|
3391
3395
|
})),
|
|
3392
|
-
N && /* @__PURE__ */ e.createElement(
|
|
3396
|
+
N && /* @__PURE__ */ e.createElement(p2, { variant: N }),
|
|
3393
3397
|
/* @__PURE__ */ e.createElement("span", { className: `${$}__input-inner` }, /* @__PURE__ */ e.createElement("span", { className: `${$}__option-text` }, S != null ? S : i.selectOptionText), /* @__PURE__ */ e.createElement(U, { iconName: "angleDown", className: `${$}__trigger-icon` }))
|
|
3394
3398
|
),
|
|
3395
3399
|
we && /* @__PURE__ */ e.createElement(
|
|
@@ -3401,7 +3405,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
3401
3405
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
3402
3406
|
})
|
|
3403
3407
|
}, pe()),
|
|
3404
|
-
/* @__PURE__ */ e.createElement("div", { style: L({}, Ve) }, /* @__PURE__ */ e.createElement("ul", { role: "group", className: `${$}__options` },
|
|
3408
|
+
/* @__PURE__ */ e.createElement("div", { style: L({}, Ve) }, /* @__PURE__ */ e.createElement("ul", { role: "group", className: `${$}__options` }, h2(g)))
|
|
3405
3409
|
),
|
|
3406
3410
|
x && /* @__PURE__ */ e.createElement(
|
|
3407
3411
|
Be,
|
|
@@ -3450,7 +3454,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
3450
3454
|
);
|
|
3451
3455
|
let k = null, w = null;
|
|
3452
3456
|
m || (k = /* @__PURE__ */ e.createElement("div", { className: `${_}__pricing-data` }, c[0].pricePrefix && /* @__PURE__ */ e.createElement("span", { className: `${_}__price-prefix` }, c[0].pricePrefix), /* @__PURE__ */ e.createElement("div", { className: `${_}__price-line` }, /* @__PURE__ */ e.createElement("span", { className: `${_}__price` }, c[0].price), c[0].priceDetails && /* @__PURE__ */ e.createElement("span", { className: `${_}__details` }, c[0].priceDetails)), /* @__PURE__ */ e.createElement("div", { className: `${_}__savings-line` }, c[0].savingsBadgeLabel && /* @__PURE__ */ e.createElement(
|
|
3453
|
-
|
|
3457
|
+
b2,
|
|
3454
3458
|
{
|
|
3455
3459
|
className: `${_}__savings-badge`,
|
|
3456
3460
|
color: "neutral",
|
|
@@ -3458,7 +3462,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
3458
3462
|
label: c[0].savingsBadgeLabel
|
|
3459
3463
|
}
|
|
3460
3464
|
), c[0].savingsDetails && /* @__PURE__ */ e.createElement("span", { className: `${_}__savings-details` }, c[0].savingsDetails))), w = /* @__PURE__ */ e.createElement(
|
|
3461
|
-
|
|
3465
|
+
Ct,
|
|
3462
3466
|
{
|
|
3463
3467
|
className: `${_}__list`,
|
|
3464
3468
|
listLabel: c[0].listLabel,
|
|
@@ -3480,7 +3484,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
3480
3484
|
R.pricePrefix && /* @__PURE__ */ e.createElement("span", { className: `${_}__price-prefix` }, R.pricePrefix),
|
|
3481
3485
|
/* @__PURE__ */ e.createElement("div", { className: `${_}__price-line` }, /* @__PURE__ */ e.createElement("span", { className: `${_}__price` }, R.price), R.priceDetails && /* @__PURE__ */ e.createElement("span", { className: `${_}__details` }, R.priceDetails)),
|
|
3482
3486
|
/* @__PURE__ */ e.createElement("div", { className: `${_}__savings-line` }, R.savingsBadgeLabel && /* @__PURE__ */ e.createElement(
|
|
3483
|
-
|
|
3487
|
+
b2,
|
|
3484
3488
|
{
|
|
3485
3489
|
className: `${_}__savings-badge`,
|
|
3486
3490
|
color: "neutral",
|
|
@@ -3492,7 +3496,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
3492
3496
|
}), w = c.map((R) => {
|
|
3493
3497
|
const O = f === h(R.label) ? null : `${_}__list--hide`;
|
|
3494
3498
|
return /* @__PURE__ */ e.createElement(
|
|
3495
|
-
|
|
3499
|
+
Ct,
|
|
3496
3500
|
{
|
|
3497
3501
|
className: z([`${_}__list`, O]),
|
|
3498
3502
|
listLabel: R.listLabel,
|
|
@@ -3528,7 +3532,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
3528
3532
|
));
|
|
3529
3533
|
let x = null;
|
|
3530
3534
|
t && (t.type === "button" && (x = /* @__PURE__ */ e.createElement(
|
|
3531
|
-
|
|
3535
|
+
o2,
|
|
3532
3536
|
{
|
|
3533
3537
|
variant: t.variant,
|
|
3534
3538
|
label: $,
|
|
@@ -3536,7 +3540,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
3536
3540
|
disabled: t.disabled
|
|
3537
3541
|
}
|
|
3538
3542
|
)), t.type === "link" && (x = /* @__PURE__ */ e.createElement(
|
|
3539
|
-
$
|
|
3543
|
+
$2,
|
|
3540
3544
|
{
|
|
3541
3545
|
variant: t.variant,
|
|
3542
3546
|
linkContent: /* @__PURE__ */ e.createElement("a", { href: t.linkUrl, target: t.linkTarget }, t.label)
|
|
@@ -3544,14 +3548,14 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
3544
3548
|
)));
|
|
3545
3549
|
let A = null;
|
|
3546
3550
|
return n && (n.type === "button" && (A = /* @__PURE__ */ e.createElement(
|
|
3547
|
-
|
|
3551
|
+
o2,
|
|
3548
3552
|
{
|
|
3549
3553
|
variant: "secondary",
|
|
3550
3554
|
label: n.label,
|
|
3551
3555
|
onClick: n.buttonAction
|
|
3552
3556
|
}
|
|
3553
3557
|
)), n.type === "link" && (A = /* @__PURE__ */ e.createElement(
|
|
3554
|
-
$
|
|
3558
|
+
$2,
|
|
3555
3559
|
{
|
|
3556
3560
|
variant: "secondary",
|
|
3557
3561
|
linkContent: /* @__PURE__ */ e.createElement(
|
|
@@ -3569,7 +3573,7 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
3569
3573
|
className: z([y, C, g])
|
|
3570
3574
|
}, d),
|
|
3571
3575
|
/* @__PURE__ */ e.createElement("div", { className: z([_, v]) }, p && /* @__PURE__ */ e.createElement(
|
|
3572
|
-
|
|
3576
|
+
et,
|
|
3573
3577
|
{
|
|
3574
3578
|
className: `${_}__status-badge`,
|
|
3575
3579
|
label: l[p],
|
|
@@ -3602,14 +3606,14 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
3602
3606
|
let u, b;
|
|
3603
3607
|
c === "active" && (u = "Active", b = "success"), c === "frozen" && (u = "Frozen", b = "frozen");
|
|
3604
3608
|
const _ = /* @__PURE__ */ e.createElement(
|
|
3605
|
-
|
|
3609
|
+
et,
|
|
3606
3610
|
{
|
|
3607
3611
|
label: u,
|
|
3608
3612
|
statusType: b,
|
|
3609
3613
|
hasStatusIndicator: !0
|
|
3610
3614
|
}
|
|
3611
|
-
), y = /* @__PURE__ */ e.createElement(
|
|
3612
|
-
|
|
3615
|
+
), y = /* @__PURE__ */ e.createElement(A2, null, /* @__PURE__ */ e.createElement("img", { slot: "image", src: s, alt: "" }), /* @__PURE__ */ e.createElement("div", { slot: "main", className: `${d}__main` }, /* @__PURE__ */ e.createElement("div", { className: `${d}__header` }, /* @__PURE__ */ e.createElement(
|
|
3616
|
+
lt,
|
|
3613
3617
|
{
|
|
3614
3618
|
fontSize: "L",
|
|
3615
3619
|
fontWeight: "semibold",
|
|
@@ -3623,11 +3627,11 @@ const Rt = 500, E1 = 700, xe = (d) => {
|
|
|
3623
3627
|
})) : null;
|
|
3624
3628
|
return /* @__PURE__ */ e.createElement("div", L({ className: z([d, l != null ? l : ""]) }, o), C);
|
|
3625
3629
|
};
|
|
3626
|
-
var
|
|
3630
|
+
var _t = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
3627
3631
|
function x1(t) {
|
|
3628
3632
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
3629
3633
|
}
|
|
3630
|
-
var
|
|
3634
|
+
var Bt = { exports: {} };
|
|
3631
3635
|
(function(t) {
|
|
3632
3636
|
var n = typeof window != "undefined" ? window : typeof WorkerGlobalScope != "undefined" && self instanceof WorkerGlobalScope ? self : {};
|
|
3633
3637
|
/**
|
|
@@ -4326,9 +4330,9 @@ var B2 = { exports: {} };
|
|
|
4326
4330
|
}
|
|
4327
4331
|
return l;
|
|
4328
4332
|
}(n);
|
|
4329
|
-
t.exports && (t.exports = s), typeof
|
|
4330
|
-
})(
|
|
4331
|
-
var V1 =
|
|
4333
|
+
t.exports && (t.exports = s), typeof _t != "undefined" && (_t.Prism = s);
|
|
4334
|
+
})(Bt);
|
|
4335
|
+
var V1 = Bt.exports;
|
|
4332
4336
|
const S1 = /* @__PURE__ */ x1(V1), I1 = {
|
|
4333
4337
|
plain: {
|
|
4334
4338
|
color: "var(--pds-color-code-block-dark-foreground)",
|
|
@@ -4494,12 +4498,12 @@ const S1 = /* @__PURE__ */ x1(V1), I1 = {
|
|
|
4494
4498
|
}
|
|
4495
4499
|
}
|
|
4496
4500
|
]
|
|
4497
|
-
}, T1 = 0.125, D1 = 0.25, R1 = 0.328, O1 = 0.41,
|
|
4501
|
+
}, T1 = 0.125, D1 = 0.25, R1 = 0.328, O1 = 0.41, N2 = 0.512, F1 = 0.64, Ze = 0.8, P1 = 1, B1 = 1.25, Z1 = 1.563, G1 = 1.953, W1 = 2.441, q1 = 3.052, Zt = 3.815, Gt = 4.678, Wt = 5.96, U1 = 7.451, Et = {
|
|
4498
4502
|
SPACING_6XS: T1,
|
|
4499
4503
|
SPACING_5XS: D1,
|
|
4500
4504
|
SPACING_4XS: R1,
|
|
4501
4505
|
SPACING_3XS: O1,
|
|
4502
|
-
SPACING_2XS:
|
|
4506
|
+
SPACING_2XS: N2,
|
|
4503
4507
|
SPACING_XS: F1,
|
|
4504
4508
|
SPACING_S: Ze,
|
|
4505
4509
|
SPACING_M: P1,
|
|
@@ -4508,11 +4512,11 @@ const S1 = /* @__PURE__ */ x1(V1), I1 = {
|
|
|
4508
4512
|
SPACING_2XL: G1,
|
|
4509
4513
|
SPACING_3XL: W1,
|
|
4510
4514
|
SPACING_4XL: q1,
|
|
4511
|
-
SPACING_5XL:
|
|
4512
|
-
SPACING_6XL:
|
|
4513
|
-
SPACING_7XL:
|
|
4515
|
+
SPACING_5XL: Zt,
|
|
4516
|
+
SPACING_6XL: Gt,
|
|
4517
|
+
SPACING_7XL: Wt,
|
|
4514
4518
|
SPACING_8XL: U1
|
|
4515
|
-
}, j1 = 0.64, K1 = 0.8, X1 = 1, Y1 = 1.25, Q1 = 1.563, J1 = 1.953, en = 2.441, tn = 3.052, nn = 3.815, sn = 4.678, ln = 5.96, an = 7.451, cn = 6.192,
|
|
4519
|
+
}, j1 = 0.64, K1 = 0.8, X1 = 1, Y1 = 1.25, Q1 = 1.563, J1 = 1.953, en = 2.441, tn = 3.052, nn = 3.815, sn = 4.678, ln = 5.96, an = 7.451, cn = 6.192, vt = {
|
|
4516
4520
|
TYPE_SCALE_XS: j1,
|
|
4517
4521
|
TYPE_SCALE_S: K1,
|
|
4518
4522
|
TYPE_SCALE_M: X1,
|
|
@@ -4546,7 +4550,7 @@ const S1 = /* @__PURE__ */ x1(V1), I1 = {
|
|
|
4546
4550
|
"textSize",
|
|
4547
4551
|
"className"
|
|
4548
4552
|
]);
|
|
4549
|
-
const d = "pds-skeleton", u = `${d}--${s}`, b = n ? `pds-pulse pds-pulse--${t}` : `${d}--${t}`, _ = ["text-block", "code-block", "code-block-prefix"], y = a != null && a.height ? typeof a.height == "number" ? `${a.height}rem` : `${
|
|
4553
|
+
const d = "pds-skeleton", u = `${d}--${s}`, b = n ? `pds-pulse pds-pulse--${t}` : `${d}--${t}`, _ = ["text-block", "code-block", "code-block-prefix"], y = a != null && a.height ? typeof a.height == "number" ? `${a.height}rem` : `${Et[`SPACING_${a.height.toUpperCase()}`]}rem` : "1rem", C = a != null && a.width ? typeof a.width == "number" ? `${a.width}rem` : `${Et[`SPACING_${a.width.toUpperCase()}`]}rem` : "100%";
|
|
4550
4554
|
let v = {
|
|
4551
4555
|
height: y,
|
|
4552
4556
|
width: C
|
|
@@ -4566,8 +4570,8 @@ const S1 = /* @__PURE__ */ x1(V1), I1 = {
|
|
|
4566
4570
|
style: v
|
|
4567
4571
|
}, o)
|
|
4568
4572
|
), E = Math.max(1, Math.min(i, s === "code-block" || s === "code-block-prefix" ? 15 : 5));
|
|
4569
|
-
let $ = `${
|
|
4570
|
-
(s === "code-block" || s === "code-block-prefix") && ($ = `${
|
|
4573
|
+
let $ = `${vt[`TYPE_SCALE_${c.toUpperCase()}`] * 0.75}rem`;
|
|
4574
|
+
(s === "code-block" || s === "code-block-prefix") && ($ = `${vt[`TYPE_SCALE_${c.toUpperCase()}`] * 1.25}rem`);
|
|
4571
4575
|
const M = `calc(var(--pds-typography-size-${c}) * 0.75)`, k = (x) => {
|
|
4572
4576
|
if (s === "text-block") {
|
|
4573
4577
|
if (r || x === 0)
|
|
@@ -4978,7 +4982,7 @@ const ds = (C) => {
|
|
|
4978
4982
|
dangerouslySetInnerHTML: { __html: t }
|
|
4979
4983
|
}
|
|
4980
4984
|
)), a && /* @__PURE__ */ e.createElement("div", { className: `${h}__copy` }, /* @__PURE__ */ e.createElement(
|
|
4981
|
-
|
|
4985
|
+
ft,
|
|
4982
4986
|
{
|
|
4983
4987
|
ariaLabel: s,
|
|
4984
4988
|
clipboardText: O,
|
|
@@ -4987,7 +4991,7 @@ const ds = (C) => {
|
|
|
4987
4991
|
)))
|
|
4988
4992
|
);
|
|
4989
4993
|
}
|
|
4990
|
-
const A = /* @__PURE__ */ e.createElement(
|
|
4994
|
+
const A = /* @__PURE__ */ e.createElement(f2.LineContent, null, /* @__PURE__ */ e.createElement(f2.Token, null)), R = /* @__PURE__ */ e.createElement("div", { className: `${h}__line ${f}` }, /* @__PURE__ */ e.createElement(f2.LineNumber, { className: `${h}__number` }), A), W = /* @__PURE__ */ e.createElement("div", { className: `${h}__line` }, /* @__PURE__ */ e.createElement("span", { className: `${h}__prompt` }, d), A);
|
|
4991
4995
|
return /* @__PURE__ */ e.createElement(
|
|
4992
4996
|
"div",
|
|
4993
4997
|
L({
|
|
@@ -4995,16 +4999,16 @@ const ds = (C) => {
|
|
|
4995
4999
|
style: E
|
|
4996
5000
|
}, y),
|
|
4997
5001
|
l ? w : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
4998
|
-
|
|
5002
|
+
f2,
|
|
4999
5003
|
{
|
|
5000
5004
|
code: t,
|
|
5001
5005
|
language: o || "",
|
|
5002
5006
|
theme: M,
|
|
5003
5007
|
prism: k.includes(o) ? S1 : void 0
|
|
5004
5008
|
},
|
|
5005
|
-
/* @__PURE__ */ e.createElement(
|
|
5009
|
+
/* @__PURE__ */ e.createElement(f2.Code, { className: `${h}__code`, tabIndex: 0 }, r || i ? r ? R : W : A)
|
|
5006
5010
|
), a && /* @__PURE__ */ e.createElement("div", { className: `${h}__copy` }, /* @__PURE__ */ e.createElement(
|
|
5007
|
-
|
|
5011
|
+
ft,
|
|
5008
5012
|
{
|
|
5009
5013
|
ariaLabel: s,
|
|
5010
5014
|
clipboardText: t,
|
|
@@ -5476,7 +5480,7 @@ const ds = (C) => {
|
|
|
5476
5480
|
K ? n : !1
|
|
5477
5481
|
), Z = t || J, B = (V) => {
|
|
5478
5482
|
G || te(V.target.checked), u && u(V);
|
|
5479
|
-
}, q = `${H}__box`, T = r ? null : Z ? `${q}--checked` : null, I = r ? `${q}--indeterminate` : null, S =
|
|
5483
|
+
}, q = `${H}__box`, T = r ? null : Z ? `${q}--checked` : null, I = r ? `${q}--indeterminate` : null, S = K2(() => {
|
|
5480
5484
|
if (r)
|
|
5481
5485
|
return /* @__PURE__ */ e.createElement(
|
|
5482
5486
|
U,
|
|
@@ -5549,7 +5553,7 @@ const ds = (C) => {
|
|
|
5549
5553
|
},
|
|
5550
5554
|
l,
|
|
5551
5555
|
" ",
|
|
5552
|
-
_ && !s && /* @__PURE__ */ e.createElement(
|
|
5556
|
+
_ && !s && /* @__PURE__ */ e.createElement(Tt, null)
|
|
5553
5557
|
))),
|
|
5554
5558
|
P && /* @__PURE__ */ e.createElement(
|
|
5555
5559
|
Be,
|
|
@@ -5812,14 +5816,14 @@ const ds = (C) => {
|
|
|
5812
5816
|
open: S,
|
|
5813
5817
|
onOpenChange: V,
|
|
5814
5818
|
whileElementsMounted: Pe
|
|
5815
|
-
}), me = De(he, { role: "listbox" }), we = Te(he), Ve =
|
|
5819
|
+
}), me = De(he, { role: "listbox" }), we = Te(he), Ve = u2(he, {
|
|
5816
5820
|
listRef: oe,
|
|
5817
5821
|
activeIndex: D,
|
|
5818
5822
|
onNavigate: X,
|
|
5819
5823
|
virtual: !0,
|
|
5820
5824
|
loop: !0,
|
|
5821
5825
|
allowEscape: !0
|
|
5822
|
-
}), { getReferenceProps: Me, getFloatingProps:
|
|
5826
|
+
}), { getReferenceProps: Me, getFloatingProps: e2, getItemProps: t2 } = Re([me, we, Ve]), { isMounted: We, styles: h2 } = Ye(he, {
|
|
5823
5827
|
duration: {
|
|
5824
5828
|
open: 300,
|
|
5825
5829
|
close: 150
|
|
@@ -5833,9 +5837,9 @@ const ds = (C) => {
|
|
|
5833
5837
|
close: {
|
|
5834
5838
|
opacity: 0
|
|
5835
5839
|
}
|
|
5836
|
-
}),
|
|
5840
|
+
}), r2 = () => {
|
|
5837
5841
|
V(!S);
|
|
5838
|
-
},
|
|
5842
|
+
}, n2 = () => {
|
|
5839
5843
|
var Q;
|
|
5840
5844
|
!q && ue(""), X(null), V(!0), (Q = pe.domReference.current) == null || Q.focus(), C && C();
|
|
5841
5845
|
}, be = (Q) => {
|
|
@@ -5849,8 +5853,8 @@ const ds = (C) => {
|
|
|
5849
5853
|
const se = de[Q];
|
|
5850
5854
|
!q && ue(se.label), X(null), V(!1), h && h(se);
|
|
5851
5855
|
}, j = (Q) => Q.map((ie) => {
|
|
5852
|
-
const Ue = ie, { label: fe, optionDisplay: ge, value: Ee, searchIndex:
|
|
5853
|
-
return
|
|
5856
|
+
const Ue = ie, { label: fe, optionDisplay: ge, value: Ee, searchIndex: s2 } = Ue, ze = F(Ue, ["label", "optionDisplay", "value", "searchIndex"]), Ke = Ee || fe, qe = [fe, Ee];
|
|
5857
|
+
return s2 && qe.push(...s2), L({
|
|
5854
5858
|
label: fe,
|
|
5855
5859
|
value: Ke,
|
|
5856
5860
|
searchIndex: qe,
|
|
@@ -5872,10 +5876,10 @@ const ds = (C) => {
|
|
|
5872
5876
|
const ae = de.map((Q, se) => {
|
|
5873
5877
|
const { label: ie, value: fe, optionDisplay: ge } = Q;
|
|
5874
5878
|
return /* @__PURE__ */ e.createElement(
|
|
5875
|
-
|
|
5879
|
+
x2,
|
|
5876
5880
|
re(L({
|
|
5877
5881
|
key: Q
|
|
5878
|
-
},
|
|
5882
|
+
}, t2({
|
|
5879
5883
|
key: fe,
|
|
5880
5884
|
ref(Ee) {
|
|
5881
5885
|
oe.current[se] = Ee;
|
|
@@ -5927,7 +5931,7 @@ const ds = (C) => {
|
|
|
5927
5931
|
"aria-invalid": H === "error" ? !0 : null,
|
|
5928
5932
|
"aria-describedby": B ? `${c}__message` : null
|
|
5929
5933
|
},
|
|
5930
|
-
Z && /* @__PURE__ */ e.createElement(
|
|
5934
|
+
Z && /* @__PURE__ */ e.createElement(p2, { variant: Z }),
|
|
5931
5935
|
/* @__PURE__ */ e.createElement(
|
|
5932
5936
|
"input",
|
|
5933
5937
|
L({
|
|
@@ -5950,15 +5954,15 @@ const ds = (C) => {
|
|
|
5950
5954
|
}))
|
|
5951
5955
|
),
|
|
5952
5956
|
_e && s && /* @__PURE__ */ e.createElement(
|
|
5953
|
-
|
|
5957
|
+
nt,
|
|
5954
5958
|
{
|
|
5955
5959
|
id: `input-${c}`,
|
|
5956
5960
|
clearLabel: g.clearButton,
|
|
5957
|
-
handleClearInput:
|
|
5961
|
+
handleClearInput: n2
|
|
5958
5962
|
}
|
|
5959
5963
|
),
|
|
5960
5964
|
i && !_e && /* @__PURE__ */ e.createElement(
|
|
5961
|
-
|
|
5965
|
+
Dt,
|
|
5962
5966
|
{
|
|
5963
5967
|
inputId: `input-${c}`,
|
|
5964
5968
|
shortcutLabel: g.searchShortcut
|
|
@@ -5969,7 +5973,7 @@ const ds = (C) => {
|
|
|
5969
5973
|
re(L({
|
|
5970
5974
|
ref: pe.setReference
|
|
5971
5975
|
}, Me({
|
|
5972
|
-
onClick:
|
|
5976
|
+
onClick: r2,
|
|
5973
5977
|
disabled: n,
|
|
5974
5978
|
type: "button",
|
|
5975
5979
|
"aria-expanded": S,
|
|
@@ -5991,12 +5995,12 @@ const ds = (C) => {
|
|
|
5991
5995
|
L({
|
|
5992
5996
|
ref: pe.setFloating,
|
|
5993
5997
|
className: `${P}__dropdown`
|
|
5994
|
-
},
|
|
5998
|
+
}, e2({
|
|
5995
5999
|
style: {
|
|
5996
6000
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
5997
6001
|
}
|
|
5998
6002
|
})),
|
|
5999
|
-
/* @__PURE__ */ e.createElement("div", { style: L({},
|
|
6003
|
+
/* @__PURE__ */ e.createElement("div", { style: L({}, h2) }, o ? /* @__PURE__ */ e.createElement("div", { className: `${P}__loading` }, d) : de.length > 0 ? /* @__PURE__ */ e.createElement("ul", { role: "group", className: `${P}__options` }, ae) : /* @__PURE__ */ e.createElement("div", { className: `${P}__no-results` }, b))
|
|
6000
6004
|
),
|
|
6001
6005
|
B && /* @__PURE__ */ e.createElement(
|
|
6002
6006
|
Be,
|
|
@@ -6058,20 +6062,20 @@ const ds = (C) => {
|
|
|
6058
6062
|
]);
|
|
6059
6063
|
const h = Je(a), m = "pds-combobox-multi", f = t ? ne.disabled : null, E = u && !t ? ne.required : null, [$, M] = Y(""), [k, w] = Y(s), [H, N] = Y(
|
|
6060
6064
|
null
|
|
6061
|
-
), x =
|
|
6065
|
+
), x = xt(
|
|
6062
6066
|
() => hn(g, k, $),
|
|
6063
6067
|
[g, k, $]
|
|
6064
6068
|
), A = (V) => {
|
|
6065
6069
|
w(V), p == null || p(V);
|
|
6066
|
-
}, { getSelectedItemProps: R, getDropdownProps: W, removeSelectedItem: O } =
|
|
6070
|
+
}, { getSelectedItemProps: R, getDropdownProps: W, removeSelectedItem: O } = g2({
|
|
6067
6071
|
selectedItems: k,
|
|
6068
6072
|
onStateChange: ({ selectedItems: V, type: D }) => {
|
|
6069
6073
|
if (!t)
|
|
6070
6074
|
switch (D) {
|
|
6071
|
-
case
|
|
6072
|
-
case
|
|
6073
|
-
case
|
|
6074
|
-
case
|
|
6075
|
+
case g2.stateChangeTypes.SelectedItemKeyDownBackspace:
|
|
6076
|
+
case g2.stateChangeTypes.SelectedItemKeyDownDelete:
|
|
6077
|
+
case g2.stateChangeTypes.DropdownKeyDownBackspace:
|
|
6078
|
+
case g2.stateChangeTypes.FunctionRemoveSelectedItem:
|
|
6075
6079
|
A(V || []);
|
|
6076
6080
|
break;
|
|
6077
6081
|
}
|
|
@@ -6084,7 +6088,7 @@ const ds = (C) => {
|
|
|
6084
6088
|
getMenuProps: te,
|
|
6085
6089
|
getInputProps: Z,
|
|
6086
6090
|
getItemProps: B
|
|
6087
|
-
} =
|
|
6091
|
+
} = l2({
|
|
6088
6092
|
items: x,
|
|
6089
6093
|
itemToString: (V) => V ? V.label : "",
|
|
6090
6094
|
selectedItem: null,
|
|
@@ -6093,8 +6097,8 @@ const ds = (C) => {
|
|
|
6093
6097
|
stateReducer: (V, { changes: D, type: X }) => {
|
|
6094
6098
|
if (t) return V;
|
|
6095
6099
|
switch (X) {
|
|
6096
|
-
case
|
|
6097
|
-
case
|
|
6100
|
+
case l2.stateChangeTypes.InputKeyDownEnter:
|
|
6101
|
+
case l2.stateChangeTypes.ItemClick:
|
|
6098
6102
|
return re(L({}, D), {
|
|
6099
6103
|
isOpen: !0
|
|
6100
6104
|
});
|
|
@@ -6109,14 +6113,14 @@ const ds = (C) => {
|
|
|
6109
6113
|
}) => {
|
|
6110
6114
|
if (!t)
|
|
6111
6115
|
switch (D) {
|
|
6112
|
-
case
|
|
6113
|
-
case
|
|
6114
|
-
case
|
|
6116
|
+
case l2.stateChangeTypes.InputKeyDownEnter:
|
|
6117
|
+
case l2.stateChangeTypes.ItemClick:
|
|
6118
|
+
case l2.stateChangeTypes.InputBlur:
|
|
6115
6119
|
X && (X.isAlreadySelected ? A(
|
|
6116
6120
|
k.filter((ee) => ee.id !== X.id)
|
|
6117
6121
|
) : A([...k, X]), M(""), N(null));
|
|
6118
6122
|
break;
|
|
6119
|
-
case
|
|
6123
|
+
case l2.stateChangeTypes.InputChange:
|
|
6120
6124
|
M(V || ""), N(null);
|
|
6121
6125
|
break;
|
|
6122
6126
|
}
|
|
@@ -6214,7 +6218,7 @@ const ds = (C) => {
|
|
|
6214
6218
|
L({
|
|
6215
6219
|
className: `${m}__dropdown ${P ? "" : "visually-hidden"}`
|
|
6216
6220
|
}, W()),
|
|
6217
|
-
/* @__PURE__ */ e.createElement("div", { className: `${m}__dropdown-input-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
6221
|
+
/* @__PURE__ */ e.createElement("div", { className: `${m}__dropdown-input-wrapper` }, /* @__PURE__ */ e.createElement(p2, { variant: "search" }), /* @__PURE__ */ e.createElement(
|
|
6218
6222
|
"input",
|
|
6219
6223
|
re(L({
|
|
6220
6224
|
placeholder: d,
|
|
@@ -6227,7 +6231,7 @@ const ds = (C) => {
|
|
|
6227
6231
|
})
|
|
6228
6232
|
)),
|
|
6229
6233
|
r ? /* @__PURE__ */ e.createElement("div", { className: `${m}__loading` }, l) : x.length > 0 ? /* @__PURE__ */ e.createElement("ul", L({ className: `${m}__dropdown-list` }, te()), x.map((V, D) => /* @__PURE__ */ e.createElement(
|
|
6230
|
-
|
|
6234
|
+
x2,
|
|
6231
6235
|
L({
|
|
6232
6236
|
className: `${m}__dropdown-item
|
|
6233
6237
|
${G === D ? `${m}__dropdown-item--highlighted` : ""}
|
|
@@ -6292,7 +6296,7 @@ const ds = (C) => {
|
|
|
6292
6296
|
"className"
|
|
6293
6297
|
]);
|
|
6294
6298
|
const [M, k] = Y(!1), [w, H] = Y(
|
|
6295
|
-
!!(
|
|
6299
|
+
!!(H2 && n)
|
|
6296
6300
|
), N = Je(c), x = "pds-file-upload", A = s ? ne.disabled : null, R = u && !s ? ne.required : null, W = v === "error" ? ne.error : null, O = v === "success" ? ne.success : null, P = w ? `${x}--safari-default` : null;
|
|
6297
6301
|
let G = null;
|
|
6298
6302
|
v === "error" && (G = "error"), v === "success" && (G = "success");
|
|
@@ -6303,7 +6307,7 @@ const ds = (C) => {
|
|
|
6303
6307
|
const V = document.getElementById(
|
|
6304
6308
|
`${r}--input`
|
|
6305
6309
|
);
|
|
6306
|
-
V.files = S.files,
|
|
6310
|
+
V.files = S.files, H2 && (V.dataset.file = `${Z}`), k(!0);
|
|
6307
6311
|
}
|
|
6308
6312
|
}, [n, b]);
|
|
6309
6313
|
const q = () => {
|
|
@@ -6318,12 +6322,12 @@ const ds = (C) => {
|
|
|
6318
6322
|
n ? q() : k(!1);
|
|
6319
6323
|
return;
|
|
6320
6324
|
}
|
|
6321
|
-
|
|
6325
|
+
H2 && n && (n === S.target.value ? H(!0) : H(!1)), d && d(S.target.files), k(!0);
|
|
6322
6326
|
}, I = () => {
|
|
6323
6327
|
const S = document.getElementById(
|
|
6324
6328
|
`${r}--input`
|
|
6325
6329
|
);
|
|
6326
|
-
S.value = "",
|
|
6330
|
+
S.value = "", H2 && H(!1), g && g(), k(!1), S.focus();
|
|
6327
6331
|
};
|
|
6328
6332
|
return /* @__PURE__ */ e.createElement(
|
|
6329
6333
|
"div",
|
|
@@ -6352,7 +6356,7 @@ const ds = (C) => {
|
|
|
6352
6356
|
disabled: s
|
|
6353
6357
|
}
|
|
6354
6358
|
),
|
|
6355
|
-
/* @__PURE__ */ e.createElement("span", { className: `${x}__input-wrapper`, id: r }, G && /* @__PURE__ */ e.createElement(
|
|
6359
|
+
/* @__PURE__ */ e.createElement("span", { className: `${x}__input-wrapper`, id: r }, G && /* @__PURE__ */ e.createElement(p2, { variant: G }), /* @__PURE__ */ e.createElement(
|
|
6356
6360
|
"label",
|
|
6357
6361
|
{
|
|
6358
6362
|
htmlFor: `${r}--input`,
|
|
@@ -6376,7 +6380,7 @@ const ds = (C) => {
|
|
|
6376
6380
|
"aria-describedby": K ? `${r}__message` : null
|
|
6377
6381
|
}, i)
|
|
6378
6382
|
), M && /* @__PURE__ */ e.createElement(
|
|
6379
|
-
|
|
6383
|
+
nt,
|
|
6380
6384
|
{
|
|
6381
6385
|
id: r,
|
|
6382
6386
|
clearLabel: l.clearButton,
|
|
@@ -6527,7 +6531,7 @@ const ds = (C) => {
|
|
|
6527
6531
|
}
|
|
6528
6532
|
)
|
|
6529
6533
|
);
|
|
6530
|
-
}, fn = ({ toggleStatusLabel: t, id: n }) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
6534
|
+
}, fn = ({ toggleStatusLabel: t, id: n }) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(st, { label: t }), /* @__PURE__ */ e.createElement(
|
|
6531
6535
|
"label",
|
|
6532
6536
|
{
|
|
6533
6537
|
htmlFor: n,
|
|
@@ -6535,7 +6539,7 @@ const ds = (C) => {
|
|
|
6535
6539
|
"aria-hidden": "true"
|
|
6536
6540
|
},
|
|
6537
6541
|
t
|
|
6538
|
-
)), gn = ({ toggleStatusLabel: t }) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
6542
|
+
)), gn = ({ toggleStatusLabel: t }) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(st, { label: t }), /* @__PURE__ */ e.createElement(
|
|
6539
6543
|
"span",
|
|
6540
6544
|
{
|
|
6541
6545
|
className: "pds-switch__input-decor",
|
|
@@ -6747,7 +6751,7 @@ const ds = (C) => {
|
|
|
6747
6751
|
className: `${x}__inputlabel`
|
|
6748
6752
|
}
|
|
6749
6753
|
), t && /* @__PURE__ */ e.createElement(
|
|
6750
|
-
|
|
6754
|
+
Rt,
|
|
6751
6755
|
{
|
|
6752
6756
|
id: a,
|
|
6753
6757
|
currentLength: q.length,
|
|
@@ -6787,7 +6791,7 @@ const ds = (C) => {
|
|
|
6787
6791
|
)
|
|
6788
6792
|
);
|
|
6789
6793
|
}
|
|
6790
|
-
), Cn = () => /* @__PURE__ */ e.createElement("div", { className: "pds-text-input__url-prefix" }, "https://"),
|
|
6794
|
+
), Cn = () => /* @__PURE__ */ e.createElement("div", { className: "pds-text-input__url-prefix" }, "https://"), qt = je(
|
|
6791
6795
|
(W, R) => {
|
|
6792
6796
|
var O = W, {
|
|
6793
6797
|
autoComplete: t,
|
|
@@ -6864,7 +6868,7 @@ const ds = (C) => {
|
|
|
6864
6868
|
V ? s : ""
|
|
6865
6869
|
), ee = N || D, ue = (me) => {
|
|
6866
6870
|
if (E && _e && oe(!1), c && k === "url") {
|
|
6867
|
-
const we =
|
|
6871
|
+
const we = pt(me.target.value), Ve = re(L({}, me), {
|
|
6868
6872
|
target: re(L({}, me.target), {
|
|
6869
6873
|
value: we
|
|
6870
6874
|
})
|
|
@@ -6873,7 +6877,7 @@ const ds = (C) => {
|
|
|
6873
6877
|
} else u && u(me);
|
|
6874
6878
|
}, de = (me) => {
|
|
6875
6879
|
if (c && k === "url") {
|
|
6876
|
-
const we =
|
|
6880
|
+
const we = pt(me.target.value), Ve = re(L({}, me), {
|
|
6877
6881
|
target: re(L({}, me.target), {
|
|
6878
6882
|
value: we
|
|
6879
6883
|
})
|
|
@@ -6924,7 +6928,7 @@ const ds = (C) => {
|
|
|
6924
6928
|
{
|
|
6925
6929
|
className: `${G}__input-wrapper ${c && k === "url" ? `${G}__input-wrapper--has-prefix` : ""}`
|
|
6926
6930
|
},
|
|
6927
|
-
T && /* @__PURE__ */ e.createElement(
|
|
6931
|
+
T && /* @__PURE__ */ e.createElement(p2, { variant: T }),
|
|
6928
6932
|
c && k === "url" && /* @__PURE__ */ e.createElement(Cn, null),
|
|
6929
6933
|
/* @__PURE__ */ e.createElement(
|
|
6930
6934
|
"input",
|
|
@@ -6948,7 +6952,7 @@ const ds = (C) => {
|
|
|
6948
6952
|
}, o)
|
|
6949
6953
|
),
|
|
6950
6954
|
r && ee && /* @__PURE__ */ e.createElement(
|
|
6951
|
-
|
|
6955
|
+
nt,
|
|
6952
6956
|
{
|
|
6953
6957
|
id: l,
|
|
6954
6958
|
clearLabel: M.clearButton,
|
|
@@ -6968,14 +6972,14 @@ const ds = (C) => {
|
|
|
6968
6972
|
/* @__PURE__ */ e.createElement(U, { iconName: _e ? "eyeSlash" : "eye", iconSize: "md" })
|
|
6969
6973
|
),
|
|
6970
6974
|
i && k === "search" && !ee && /* @__PURE__ */ e.createElement(
|
|
6971
|
-
|
|
6975
|
+
Dt,
|
|
6972
6976
|
{
|
|
6973
6977
|
inputId: l,
|
|
6974
6978
|
shortcutLabel: M.searchShortcut
|
|
6975
6979
|
}
|
|
6976
6980
|
),
|
|
6977
6981
|
n && k !== "password" && /* @__PURE__ */ e.createElement(
|
|
6978
|
-
|
|
6982
|
+
Rt,
|
|
6979
6983
|
{
|
|
6980
6984
|
id: l,
|
|
6981
6985
|
currentLength: ee.length,
|
|
@@ -7101,7 +7105,7 @@ const ds = (C) => {
|
|
|
7101
7105
|
position: "fixed"
|
|
7102
7106
|
})
|
|
7103
7107
|
},
|
|
7104
|
-
/* @__PURE__ */ e.createElement(
|
|
7108
|
+
/* @__PURE__ */ e.createElement(It, { context: E }, /* @__PURE__ */ e.createElement(
|
|
7105
7109
|
"div",
|
|
7106
7110
|
L(re(L({
|
|
7107
7111
|
ref: f.setFloating,
|
|
@@ -7119,7 +7123,7 @@ const ds = (C) => {
|
|
|
7119
7123
|
})
|
|
7120
7124
|
}), p),
|
|
7121
7125
|
a && /* @__PURE__ */ e.createElement("div", { className: `${y}__close-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
7122
|
-
|
|
7126
|
+
Ot,
|
|
7123
7127
|
{
|
|
7124
7128
|
ariaLabel: s,
|
|
7125
7129
|
onClick: () => m(!1),
|
|
@@ -7166,8 +7170,8 @@ const ds = (C) => {
|
|
|
7166
7170
|
}, a),
|
|
7167
7171
|
/* @__PURE__ */ e.createElement("ol", { className: `${c}__crumbs` }, o)
|
|
7168
7172
|
);
|
|
7169
|
-
},
|
|
7170
|
-
if (
|
|
7173
|
+
}, Ut = (t) => typeof t.linkContent != "string" ? !!(t.isActive || t.linkContent.props.className && t.linkContent.props.className.includes("pds-isActive")) : !1, He = (t) => {
|
|
7174
|
+
if (Ut(t))
|
|
7171
7175
|
return !0;
|
|
7172
7176
|
if (t.links) {
|
|
7173
7177
|
for (let n = 0; n < t.links.length; n++)
|
|
@@ -7175,14 +7179,14 @@ const ds = (C) => {
|
|
|
7175
7179
|
return !0;
|
|
7176
7180
|
}
|
|
7177
7181
|
return !1;
|
|
7178
|
-
},
|
|
7182
|
+
}, at = (t) => {
|
|
7179
7183
|
if (!t)
|
|
7180
7184
|
return null;
|
|
7181
7185
|
for (let n = 0; n < t.length; n++) {
|
|
7182
|
-
if (
|
|
7186
|
+
if (Ut(t[n]))
|
|
7183
7187
|
return typeof t[n].linkContent == "string" ? null : t[n].linkContent;
|
|
7184
7188
|
if (t[n].links) {
|
|
7185
|
-
const s =
|
|
7189
|
+
const s = at(t[n].links);
|
|
7186
7190
|
if (s)
|
|
7187
7191
|
return s;
|
|
7188
7192
|
}
|
|
@@ -7191,7 +7195,7 @@ const ds = (C) => {
|
|
|
7191
7195
|
}, Se = (t) => {
|
|
7192
7196
|
let n = t;
|
|
7193
7197
|
return typeof t == "object" && (n = t.props.children), n;
|
|
7194
|
-
},
|
|
7198
|
+
}, S2 = (t, n) => {
|
|
7195
7199
|
let s = null;
|
|
7196
7200
|
if (typeof t == "string" && n) {
|
|
7197
7201
|
const a = n ? n[0].linkContent : null;
|
|
@@ -7199,7 +7203,7 @@ const ds = (C) => {
|
|
|
7199
7203
|
} else
|
|
7200
7204
|
s = t;
|
|
7201
7205
|
return s;
|
|
7202
|
-
},
|
|
7206
|
+
}, i2 = (t, n, s, a) => {
|
|
7203
7207
|
let r = null;
|
|
7204
7208
|
if (typeof n == "string") {
|
|
7205
7209
|
const i = a ? [
|
|
@@ -7292,6 +7296,7 @@ const ds = (C) => {
|
|
|
7292
7296
|
const C = y.length > 0 ? /* @__PURE__ */ e.createElement(
|
|
7293
7297
|
w1,
|
|
7294
7298
|
{
|
|
7299
|
+
id: "mobile-nav-split-button",
|
|
7295
7300
|
actionItems: y,
|
|
7296
7301
|
variant: "secondary",
|
|
7297
7302
|
size: s
|
|
@@ -7329,7 +7334,7 @@ const ds = (C) => {
|
|
|
7329
7334
|
}, a),
|
|
7330
7335
|
n
|
|
7331
7336
|
);
|
|
7332
|
-
},
|
|
7337
|
+
}, T2 = zt(null), Vs = (u) => {
|
|
7333
7338
|
var b = u, {
|
|
7334
7339
|
children: t,
|
|
7335
7340
|
hasSidebarToggle: n = !0,
|
|
@@ -7356,7 +7361,7 @@ const ds = (C) => {
|
|
|
7356
7361
|
"setIsSidebarExpanded",
|
|
7357
7362
|
"className"
|
|
7358
7363
|
]);
|
|
7359
|
-
const { isMobile: _, windowWidth: y } = $e(ye), [C, v] = Y(() => o !== void 0 ? o : y > 1440), h = ce(), [m] =
|
|
7364
|
+
const { isMobile: _, windowWidth: y } = $e(ye), [C, v] = Y(() => o !== void 0 ? o : y > 1440), h = ce(), [m] = I2(h), f = m.width;
|
|
7360
7365
|
le(() => {
|
|
7361
7366
|
o !== void 0 && v(o);
|
|
7362
7367
|
}, [o]), le(() => {
|
|
@@ -7394,7 +7399,7 @@ const ds = (C) => {
|
|
|
7394
7399
|
/* @__PURE__ */ e.createElement("div", { className: `${$}__header` }, W),
|
|
7395
7400
|
/* @__PURE__ */ e.createElement("div", { className: `${$}__inner` }, /* @__PURE__ */ e.createElement("main", { id: "main", className: `${$}__main` }, P), G && /* @__PURE__ */ e.createElement("footer", { className: `${$}__footer` }, G))
|
|
7396
7401
|
));
|
|
7397
|
-
return /* @__PURE__ */ e.createElement(
|
|
7402
|
+
return /* @__PURE__ */ e.createElement(T2.Provider, { value: E }, /* @__PURE__ */ e.createElement(_n, { text: l, destination: "main" }), /* @__PURE__ */ e.createElement(
|
|
7398
7403
|
"div",
|
|
7399
7404
|
L({
|
|
7400
7405
|
className: z([
|
|
@@ -7408,7 +7413,7 @@ const ds = (C) => {
|
|
|
7408
7413
|
}, d),
|
|
7409
7414
|
_ ? K : J
|
|
7410
7415
|
));
|
|
7411
|
-
}, Ie = "ease-out",
|
|
7416
|
+
}, Ie = "ease-out", bt = 0, En = ({
|
|
7412
7417
|
icon: t,
|
|
7413
7418
|
isActive: n,
|
|
7414
7419
|
isSidebarExpanded: s,
|
|
@@ -7416,7 +7421,7 @@ const ds = (C) => {
|
|
|
7416
7421
|
linkContent: r,
|
|
7417
7422
|
links: i
|
|
7418
7423
|
}) => {
|
|
7419
|
-
const c = "pds-dashboard-nav", l = `${c}__item`, o = `${c}__menu`, p = /* @__PURE__ */ e.createElement("div", { className: `${l}-wrapper` },
|
|
7424
|
+
const c = "pds-dashboard-nav", l = `${c}__item`, o = `${c}__menu`, p = /* @__PURE__ */ e.createElement("div", { className: `${l}-wrapper` }, i2(c, r, i, t)), g = (w, H) => /* @__PURE__ */ e.createElement(
|
|
7420
7425
|
"ul",
|
|
7421
7426
|
{
|
|
7422
7427
|
className: z([
|
|
@@ -7441,12 +7446,12 @@ const ds = (C) => {
|
|
|
7441
7446
|
placement: "right-start",
|
|
7442
7447
|
open: d,
|
|
7443
7448
|
onOpenChange: u,
|
|
7444
|
-
middleware: [
|
|
7449
|
+
middleware: [d2(12), m2(), y2()],
|
|
7445
7450
|
whileElementsMounted: Pe
|
|
7446
|
-
}), C =
|
|
7451
|
+
}), C = v2(y, {
|
|
7447
7452
|
move: !1,
|
|
7448
|
-
handleClose:
|
|
7449
|
-
}), v =
|
|
7453
|
+
handleClose: J2()
|
|
7454
|
+
}), v = Q2(y), h = Te(y), m = De(y, { role: "menu" }), { getReferenceProps: f, getFloatingProps: E } = Re([
|
|
7450
7455
|
C,
|
|
7451
7456
|
v,
|
|
7452
7457
|
h,
|
|
@@ -7470,7 +7475,7 @@ const ds = (C) => {
|
|
|
7470
7475
|
}
|
|
7471
7476
|
],
|
|
7472
7477
|
{
|
|
7473
|
-
duration:
|
|
7478
|
+
duration: bt,
|
|
7474
7479
|
easing: Ie
|
|
7475
7480
|
}
|
|
7476
7481
|
).onfinish = () => {
|
|
@@ -7492,7 +7497,7 @@ const ds = (C) => {
|
|
|
7492
7497
|
{ height: "0px", opacity: "0", marginBlockStart: "0" }
|
|
7493
7498
|
],
|
|
7494
7499
|
{
|
|
7495
|
-
duration:
|
|
7500
|
+
duration: bt,
|
|
7496
7501
|
easing: Ie
|
|
7497
7502
|
}
|
|
7498
7503
|
);
|
|
@@ -7519,7 +7524,7 @@ const ds = (C) => {
|
|
|
7519
7524
|
]),
|
|
7520
7525
|
ref: s ? null : b.setReference
|
|
7521
7526
|
}, f()),
|
|
7522
|
-
i ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${l}-wrapper` },
|
|
7527
|
+
i ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${l}-wrapper` }, i2(
|
|
7523
7528
|
c,
|
|
7524
7529
|
r,
|
|
7525
7530
|
i,
|
|
@@ -7559,7 +7564,7 @@ const ds = (C) => {
|
|
|
7559
7564
|
}
|
|
7560
7565
|
))
|
|
7561
7566
|
);
|
|
7562
|
-
},
|
|
7567
|
+
}, D2 = (i) => {
|
|
7563
7568
|
var c = i, {
|
|
7564
7569
|
headingText: t,
|
|
7565
7570
|
menuItems: n,
|
|
@@ -7571,7 +7576,7 @@ const ds = (C) => {
|
|
|
7571
7576
|
"selectTextFallback",
|
|
7572
7577
|
"className"
|
|
7573
7578
|
]);
|
|
7574
|
-
const l = "pds-dropdown-menu", [o, p] = Y(!1), [g, d] = Y(null), u =
|
|
7579
|
+
const l = "pds-dropdown-menu", [o, p] = Y(!1), [g, d] = Y(null), u = at(n), b = u ? u.props.children : s, _ = /* @__PURE__ */ e.createElement(
|
|
7575
7580
|
U,
|
|
7576
7581
|
{
|
|
7577
7582
|
iconName: "check",
|
|
@@ -7598,7 +7603,7 @@ const ds = (C) => {
|
|
|
7598
7603
|
}) => re(L({}, W), {
|
|
7599
7604
|
level: O,
|
|
7600
7605
|
linkContent: Fe(
|
|
7601
|
-
|
|
7606
|
+
S2(W.linkContent, W.links),
|
|
7602
7607
|
{
|
|
7603
7608
|
tabIndex: -1
|
|
7604
7609
|
}
|
|
@@ -7625,7 +7630,7 @@ const ds = (C) => {
|
|
|
7625
7630
|
open: o,
|
|
7626
7631
|
onOpenChange: p,
|
|
7627
7632
|
whileElementsMounted: Pe
|
|
7628
|
-
}), E = ce([]), $ =
|
|
7633
|
+
}), E = ce([]), $ = u2(f, {
|
|
7629
7634
|
listRef: E,
|
|
7630
7635
|
activeIndex: g,
|
|
7631
7636
|
onNavigate: d,
|
|
@@ -7827,7 +7832,7 @@ const ds = (C) => {
|
|
|
7827
7832
|
fill: "var(--pds-color-foreground-default)"
|
|
7828
7833
|
}
|
|
7829
7834
|
)
|
|
7830
|
-
),
|
|
7835
|
+
), G2 = /* @__PURE__ */ e.createElement(
|
|
7831
7836
|
"svg",
|
|
7832
7837
|
{
|
|
7833
7838
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7977,7 +7982,7 @@ const ds = (C) => {
|
|
|
7977
7982
|
fill: "var(--pds-color-foreground-default)"
|
|
7978
7983
|
}
|
|
7979
7984
|
)
|
|
7980
|
-
),
|
|
7985
|
+
), ct = (c) => {
|
|
7981
7986
|
var l = c, {
|
|
7982
7987
|
colorType: t = "default",
|
|
7983
7988
|
displayType: n = "full",
|
|
@@ -7998,16 +8003,16 @@ const ds = (C) => {
|
|
|
7998
8003
|
d = vn;
|
|
7999
8004
|
break;
|
|
8000
8005
|
case "icon":
|
|
8001
|
-
d =
|
|
8006
|
+
d = G2;
|
|
8002
8007
|
break;
|
|
8003
8008
|
case "wordmark":
|
|
8004
8009
|
d = bn;
|
|
8005
8010
|
break;
|
|
8006
8011
|
case "sub-brand":
|
|
8007
|
-
d =
|
|
8012
|
+
d = G2;
|
|
8008
8013
|
break;
|
|
8009
8014
|
case "sub-brand-small":
|
|
8010
|
-
d =
|
|
8015
|
+
d = G2;
|
|
8011
8016
|
}
|
|
8012
8017
|
const u = e.isValidElement(s) && typeof s.props.children == "string" ? s.props.children : "", b = e.isValidElement(s) ? Fe(s, {
|
|
8013
8018
|
children: d,
|
|
@@ -8046,7 +8051,7 @@ const ds = (C) => {
|
|
|
8046
8051
|
let o = !1;
|
|
8047
8052
|
const p = $e(ye);
|
|
8048
8053
|
p && (o = p.isMobile);
|
|
8049
|
-
const g = $e(
|
|
8054
|
+
const g = $e(T2);
|
|
8050
8055
|
let d = !0, u = null;
|
|
8051
8056
|
g && (d = g.isSidebarExpanded, u = g.logoLinkContent);
|
|
8052
8057
|
const b = "pds-dashboard-nav", _ = d ? `${b}--expanded` : `${b}--collapsed`, y = /* @__PURE__ */ e.createElement(e.Fragment, null, s.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${b}__menu ${b}__menu--top-level` }, s.map((h, m) => /* @__PURE__ */ e.createElement(
|
|
@@ -8061,14 +8066,14 @@ const ds = (C) => {
|
|
|
8061
8066
|
links: h.links
|
|
8062
8067
|
}
|
|
8063
8068
|
)))), C = s.map((h) => re(L({}, h), {
|
|
8064
|
-
linkContent:
|
|
8069
|
+
linkContent: i2(
|
|
8065
8070
|
b,
|
|
8066
8071
|
h.linkContent,
|
|
8067
8072
|
h.links,
|
|
8068
8073
|
h.icon
|
|
8069
8074
|
)
|
|
8070
8075
|
})), v = /* @__PURE__ */ e.createElement(
|
|
8071
|
-
|
|
8076
|
+
D2,
|
|
8072
8077
|
{
|
|
8073
8078
|
menuItems: C,
|
|
8074
8079
|
selectTextFallback: a
|
|
@@ -8081,7 +8086,7 @@ const ds = (C) => {
|
|
|
8081
8086
|
className: z([b, _, r])
|
|
8082
8087
|
}, i),
|
|
8083
8088
|
!o && /* @__PURE__ */ e.createElement(
|
|
8084
|
-
|
|
8089
|
+
ct,
|
|
8085
8090
|
{
|
|
8086
8091
|
className: `${b}__logo`,
|
|
8087
8092
|
displayType: d ? "full" : "icon",
|
|
@@ -8103,7 +8108,7 @@ const ds = (C) => {
|
|
|
8103
8108
|
wordpress: "WordPress",
|
|
8104
8109
|
gatsby: "Gatsby",
|
|
8105
8110
|
nextjs: "Next.js"
|
|
8106
|
-
},
|
|
8111
|
+
}, jt = {
|
|
8107
8112
|
drupal: "drupal",
|
|
8108
8113
|
wordpress: "wordpress",
|
|
8109
8114
|
gatsby: "bolt",
|
|
@@ -8116,7 +8121,7 @@ const ds = (C) => {
|
|
|
8116
8121
|
"option",
|
|
8117
8122
|
"className"
|
|
8118
8123
|
]);
|
|
8119
|
-
const i = "pds-dashboard-search", c = t.type ?
|
|
8124
|
+
const i = "pds-dashboard-search", c = t.type ? jt[t.type] : "bolt", l = ce(), [o] = I2(l), p = o.width / 16 - 7.5;
|
|
8120
8125
|
return /* @__PURE__ */ e.createElement(
|
|
8121
8126
|
"div",
|
|
8122
8127
|
L({
|
|
@@ -8150,7 +8155,7 @@ const ds = (C) => {
|
|
|
8150
8155
|
style: { pointerEvents: "none" }
|
|
8151
8156
|
},
|
|
8152
8157
|
/* @__PURE__ */ e.createElement(
|
|
8153
|
-
|
|
8158
|
+
et,
|
|
8154
8159
|
{
|
|
8155
8160
|
color: "neutral",
|
|
8156
8161
|
hasStatusIndicator: !0,
|
|
@@ -8199,7 +8204,7 @@ const ds = (C) => {
|
|
|
8199
8204
|
const $ = $e(ye);
|
|
8200
8205
|
$ && (E = $.isMobile);
|
|
8201
8206
|
let M = null, k = !1;
|
|
8202
|
-
const w = $e(
|
|
8207
|
+
const w = $e(T2);
|
|
8203
8208
|
w && (M = w.navbarWidth, k = w.isAdmin);
|
|
8204
8209
|
const H = 2.25, N = 22, x = k ? 14.5 : 9.625, A = M > 900 ? N : M / 16 - (x + d) - H * 0.675;
|
|
8205
8210
|
let R = H;
|
|
@@ -8299,7 +8304,7 @@ const ds = (C) => {
|
|
|
8299
8304
|
}, b),
|
|
8300
8305
|
E ? q : B
|
|
8301
8306
|
);
|
|
8302
|
-
},
|
|
8307
|
+
}, _2 = (r) => {
|
|
8303
8308
|
var i = r, {
|
|
8304
8309
|
children: t,
|
|
8305
8310
|
width: n = "standard",
|
|
@@ -8350,7 +8355,7 @@ const ds = (C) => {
|
|
|
8350
8355
|
let C = !1;
|
|
8351
8356
|
const v = $e(ye);
|
|
8352
8357
|
v && (C = v.isMobile);
|
|
8353
|
-
const h = $e(
|
|
8358
|
+
const h = $e(T2);
|
|
8354
8359
|
h && (c = h.logoLinkContent);
|
|
8355
8360
|
const m = "pds-navbar", f = a ? `${m}--noBorder` : "", E = n !== "default" ? `${m}--${n}` : "", $ = C ? `${m}--isMobile` : `${m}--notMobile`, M = (B) => {
|
|
8356
8361
|
const q = B.key;
|
|
@@ -8369,7 +8374,7 @@ const ds = (C) => {
|
|
|
8369
8374
|
const k = () => y(!_), w = s1();
|
|
8370
8375
|
le(() => {
|
|
8371
8376
|
if (C && t) {
|
|
8372
|
-
const B =
|
|
8377
|
+
const B = At(
|
|
8373
8378
|
document.querySelector(".pds-navbar__mobile")
|
|
8374
8379
|
), q = ["a", "button", "input", "select", "textarea"];
|
|
8375
8380
|
B && (_ ? B.forEach((T) => {
|
|
@@ -8399,7 +8404,7 @@ const ds = (C) => {
|
|
|
8399
8404
|
children: /* @__PURE__ */ e.createElement("img", { className: `${m}__custom-logo`, src: l }),
|
|
8400
8405
|
"aria-label": W || null
|
|
8401
8406
|
}) : /* @__PURE__ */ e.createElement("img", { className: `${m}__custom-logo`, src: l, alt: "" }), P = () => l ? O : /* @__PURE__ */ e.createElement(
|
|
8402
|
-
|
|
8407
|
+
ct,
|
|
8403
8408
|
{
|
|
8404
8409
|
colorType: R,
|
|
8405
8410
|
displayType: i,
|
|
@@ -8424,7 +8429,7 @@ const ds = (C) => {
|
|
|
8424
8429
|
className: _ ? `${m}__mobile ${m}__mobile--open` : `${m}__mobile ${m}__mobile--closed`,
|
|
8425
8430
|
ref: w
|
|
8426
8431
|
},
|
|
8427
|
-
/* @__PURE__ */ e.createElement(
|
|
8432
|
+
/* @__PURE__ */ e.createElement(_2, null, K)
|
|
8428
8433
|
), te = /* @__PURE__ */ e.createElement(
|
|
8429
8434
|
p1,
|
|
8430
8435
|
{
|
|
@@ -8433,8 +8438,8 @@ const ds = (C) => {
|
|
|
8433
8438
|
initialFocus: !1
|
|
8434
8439
|
}
|
|
8435
8440
|
},
|
|
8436
|
-
/* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(
|
|
8437
|
-
), Z = /* @__PURE__ */ e.createElement(
|
|
8441
|
+
/* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(_2, { className: `${m}__bar-mobile` }, /* @__PURE__ */ e.createElement("div", { className: `${m}__inner-mobile` }, P(), t && G)), /* @__PURE__ */ e.createElement(_2, null, t && J))
|
|
8442
|
+
), Z = /* @__PURE__ */ e.createElement(_2, { width: s, className: `${m}__inner` }, !r && /* @__PURE__ */ e.createElement("div", { className: `${m}__logo` }, P()), /* @__PURE__ */ e.createElement("div", { className: `${m}__content` }, x ? /* @__PURE__ */ e.createElement("div", { className: `${m}__items-left` }, x) : /* @__PURE__ */ e.createElement("span", null), A && /* @__PURE__ */ e.createElement("div", { className: `${m}__items-right` }, A)));
|
|
8438
8443
|
return /* @__PURE__ */ e.createElement(
|
|
8439
8444
|
"header",
|
|
8440
8445
|
L({
|
|
@@ -8466,10 +8471,10 @@ const ds = (C) => {
|
|
|
8466
8471
|
whileElementsMounted: Pe
|
|
8467
8472
|
}), u = Xe(d, { event: "mousedown" }), b = Te(d), _ = De(d, { role: "menu" });
|
|
8468
8473
|
let y;
|
|
8469
|
-
o ? y =
|
|
8474
|
+
o ? y = v2(d, {
|
|
8470
8475
|
enabled: !1
|
|
8471
|
-
}) : y =
|
|
8472
|
-
handleClose:
|
|
8476
|
+
}) : y = v2(d, {
|
|
8477
|
+
handleClose: J2({
|
|
8473
8478
|
requireIntent: !1,
|
|
8474
8479
|
buffer: 10,
|
|
8475
8480
|
blockPointerEvents: !0
|
|
@@ -8575,7 +8580,7 @@ const ds = (C) => {
|
|
|
8575
8580
|
return !1;
|
|
8576
8581
|
}, H = [];
|
|
8577
8582
|
return s.map((N, x) => {
|
|
8578
|
-
const A = `item-${
|
|
8583
|
+
const A = `item-${c2()}`, R = N.id ? N.id : A;
|
|
8579
8584
|
N.links ? H.push(
|
|
8580
8585
|
/* @__PURE__ */ e.createElement(
|
|
8581
8586
|
"li",
|
|
@@ -8617,7 +8622,7 @@ const ds = (C) => {
|
|
|
8617
8622
|
}, i),
|
|
8618
8623
|
/* @__PURE__ */ e.createElement("ul", { className: `${f}__menu` }, H)
|
|
8619
8624
|
);
|
|
8620
|
-
},
|
|
8625
|
+
}, C2 = 0, Rs = (p) => {
|
|
8621
8626
|
var g = p, {
|
|
8622
8627
|
ariaLabel: t,
|
|
8623
8628
|
hasMobileMenu: n = !0,
|
|
@@ -8695,7 +8700,7 @@ const ds = (C) => {
|
|
|
8695
8700
|
);
|
|
8696
8701
|
I && (I.focus(), M.current = $.current.indexOf(I));
|
|
8697
8702
|
}
|
|
8698
|
-
},
|
|
8703
|
+
}, C2 + 50));
|
|
8699
8704
|
else if (B.tagName.toLowerCase() === "a") {
|
|
8700
8705
|
const q = B.closest(
|
|
8701
8706
|
`.${u}--has-children`
|
|
@@ -8716,7 +8721,7 @@ const ds = (C) => {
|
|
|
8716
8721
|
);
|
|
8717
8722
|
V && (V.focus(), M.current = $.current.indexOf(V));
|
|
8718
8723
|
}
|
|
8719
|
-
},
|
|
8724
|
+
}, C2 + 50));
|
|
8720
8725
|
}
|
|
8721
8726
|
}
|
|
8722
8727
|
}
|
|
@@ -8737,7 +8742,7 @@ const ds = (C) => {
|
|
|
8737
8742
|
currentTarget: T
|
|
8738
8743
|
}), setTimeout(() => {
|
|
8739
8744
|
H(), T.focus(), M.current = $.current.indexOf(T);
|
|
8740
|
-
},
|
|
8745
|
+
}, C2));
|
|
8741
8746
|
}
|
|
8742
8747
|
}
|
|
8743
8748
|
break;
|
|
@@ -8788,7 +8793,7 @@ const ds = (C) => {
|
|
|
8788
8793
|
}
|
|
8789
8794
|
],
|
|
8790
8795
|
{
|
|
8791
|
-
duration:
|
|
8796
|
+
duration: C2,
|
|
8792
8797
|
easing: Ie
|
|
8793
8798
|
}
|
|
8794
8799
|
).onfinish = () => {
|
|
@@ -8810,7 +8815,7 @@ const ds = (C) => {
|
|
|
8810
8815
|
{ height: "0px", opacity: "0", marginBlockStart: "0" }
|
|
8811
8816
|
],
|
|
8812
8817
|
{
|
|
8813
|
-
duration:
|
|
8818
|
+
duration: C2,
|
|
8814
8819
|
easing: Ie
|
|
8815
8820
|
}
|
|
8816
8821
|
);
|
|
@@ -8824,7 +8829,7 @@ const ds = (C) => {
|
|
|
8824
8829
|
marginBlockStart: "0"
|
|
8825
8830
|
}), H();
|
|
8826
8831
|
};
|
|
8827
|
-
}, G = (Z) =>
|
|
8832
|
+
}, G = (Z) => kt.toArray(Z).some((B) => ke(B) ? B.type && B.type.displayName === "Tally" ? !0 : G(B.props.children) : !1), K = (Z, B) => {
|
|
8828
8833
|
const { linkContent: q, links: T } = Z, I = G(q), S = He(Z), V = S || h.includes(B);
|
|
8829
8834
|
return /* @__PURE__ */ e.createElement(
|
|
8830
8835
|
"li",
|
|
@@ -8840,7 +8845,7 @@ const ds = (C) => {
|
|
|
8840
8845
|
// Add class if item contains a Tally component
|
|
8841
8846
|
])
|
|
8842
8847
|
},
|
|
8843
|
-
T ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${u}-wrapper` },
|
|
8848
|
+
T ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${u}-wrapper` }, S2(q, T), /* @__PURE__ */ e.createElement(
|
|
8844
8849
|
"button",
|
|
8845
8850
|
{
|
|
8846
8851
|
"aria-expanded": V,
|
|
@@ -8878,7 +8883,7 @@ const ds = (C) => {
|
|
|
8878
8883
|
// Add class for second-level items
|
|
8879
8884
|
])
|
|
8880
8885
|
},
|
|
8881
|
-
|
|
8886
|
+
S2(
|
|
8882
8887
|
D.linkContent,
|
|
8883
8888
|
D.links
|
|
8884
8889
|
)
|
|
@@ -8890,7 +8895,7 @@ const ds = (C) => {
|
|
|
8890
8895
|
)
|
|
8891
8896
|
);
|
|
8892
8897
|
}, J = /* @__PURE__ */ e.createElement(e.Fragment, null, s && /* @__PURE__ */ e.createElement("h2", { className: `${d}__heading pds-ts-l` }, s), r.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${d}__menu ${d}__menu--top-level` }, r.map((Z, B) => K(Z, B)))), te = /* @__PURE__ */ e.createElement(
|
|
8893
|
-
|
|
8898
|
+
D2,
|
|
8894
8899
|
{
|
|
8895
8900
|
headingText: s,
|
|
8896
8901
|
menuItems: r,
|
|
@@ -8912,7 +8917,7 @@ const ds = (C) => {
|
|
|
8912
8917
|
}, o),
|
|
8913
8918
|
w && n ? te : J
|
|
8914
8919
|
);
|
|
8915
|
-
},
|
|
8920
|
+
}, M2 = 0, Os = (p) => {
|
|
8916
8921
|
var g = p, {
|
|
8917
8922
|
ariaLabel: t,
|
|
8918
8923
|
hasMobileMenu: n = !0,
|
|
@@ -9026,7 +9031,7 @@ const ds = (C) => {
|
|
|
9026
9031
|
);
|
|
9027
9032
|
X && (X.focus(), M.current = $.current.indexOf(X));
|
|
9028
9033
|
}
|
|
9029
|
-
},
|
|
9034
|
+
}, M2 + 50));
|
|
9030
9035
|
}
|
|
9031
9036
|
break;
|
|
9032
9037
|
}
|
|
@@ -9045,7 +9050,7 @@ const ds = (C) => {
|
|
|
9045
9050
|
H();
|
|
9046
9051
|
const ue = D.querySelector("a") || X;
|
|
9047
9052
|
ue && (ue.focus(), M.current = $.current.indexOf(ue));
|
|
9048
|
-
},
|
|
9053
|
+
}, M2));
|
|
9049
9054
|
}
|
|
9050
9055
|
} else if (A(S)) {
|
|
9051
9056
|
const D = S.classList.contains(
|
|
@@ -9108,11 +9113,11 @@ const ds = (C) => {
|
|
|
9108
9113
|
{
|
|
9109
9114
|
height: S,
|
|
9110
9115
|
opacity: "1",
|
|
9111
|
-
marginBlockStart: `${
|
|
9116
|
+
marginBlockStart: `${N2}rem`
|
|
9112
9117
|
}
|
|
9113
9118
|
],
|
|
9114
9119
|
{
|
|
9115
|
-
duration:
|
|
9120
|
+
duration: M2,
|
|
9116
9121
|
easing: Ie
|
|
9117
9122
|
}
|
|
9118
9123
|
).onfinish = () => {
|
|
@@ -9120,7 +9125,7 @@ const ds = (C) => {
|
|
|
9120
9125
|
height: "auto",
|
|
9121
9126
|
opacity: "1",
|
|
9122
9127
|
display: "flex",
|
|
9123
|
-
marginBlockStart: `${
|
|
9128
|
+
marginBlockStart: `${N2}rem`
|
|
9124
9129
|
}), I.classList.add(`${b}--expanded`), H();
|
|
9125
9130
|
};
|
|
9126
9131
|
}, J = (I) => {
|
|
@@ -9129,12 +9134,12 @@ const ds = (C) => {
|
|
|
9129
9134
|
{
|
|
9130
9135
|
height: S,
|
|
9131
9136
|
opacity: "1",
|
|
9132
|
-
marginBlockStart: `${
|
|
9137
|
+
marginBlockStart: `${N2}rem`
|
|
9133
9138
|
},
|
|
9134
9139
|
{ height: "0px", opacity: "0", marginBlockStart: "0" }
|
|
9135
9140
|
],
|
|
9136
9141
|
{
|
|
9137
|
-
duration:
|
|
9142
|
+
duration: M2,
|
|
9138
9143
|
easing: Ie
|
|
9139
9144
|
}
|
|
9140
9145
|
);
|
|
@@ -9182,7 +9187,7 @@ const ds = (C) => {
|
|
|
9182
9187
|
}
|
|
9183
9188
|
),
|
|
9184
9189
|
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${a.toggle} ${Se(S.linkContent)} ${a.submenu}`)
|
|
9185
|
-
),
|
|
9190
|
+
), S2(S.linkContent, S.links)), /* @__PURE__ */ e.createElement(
|
|
9186
9191
|
"ul",
|
|
9187
9192
|
{
|
|
9188
9193
|
className: z([
|
|
@@ -9225,7 +9230,7 @@ const ds = (C) => {
|
|
|
9225
9230
|
D ? Z(2, I) : V
|
|
9226
9231
|
);
|
|
9227
9232
|
}, q = /* @__PURE__ */ e.createElement(e.Fragment, null, s && /* @__PURE__ */ e.createElement("h2", { className: `${d}__heading pds-ts-l` }, s), r.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${d}__menu ${d}__menu--top-level` }, r.map((I, S) => B(I, S)))), T = /* @__PURE__ */ e.createElement(
|
|
9228
|
-
|
|
9233
|
+
D2,
|
|
9229
9234
|
{
|
|
9230
9235
|
headingText: s,
|
|
9231
9236
|
menuItems: r,
|
|
@@ -9247,7 +9252,7 @@ const ds = (C) => {
|
|
|
9247
9252
|
}, o),
|
|
9248
9253
|
w && n ? T : q
|
|
9249
9254
|
);
|
|
9250
|
-
}, $
|
|
9255
|
+
}, $t = 0, Ln = ({
|
|
9251
9256
|
icon: t,
|
|
9252
9257
|
isActive: n,
|
|
9253
9258
|
isSidebarCollapsed: s,
|
|
@@ -9255,7 +9260,7 @@ const ds = (C) => {
|
|
|
9255
9260
|
linkContent: r,
|
|
9256
9261
|
links: i
|
|
9257
9262
|
}) => {
|
|
9258
|
-
const c = "pds-side-nav-global", l = `${c}__item`, o = `${c}__menu`, p = /* @__PURE__ */ e.createElement("div", { className: `${l}-wrapper` },
|
|
9263
|
+
const c = "pds-side-nav-global", l = `${c}__item`, o = `${c}__menu`, p = /* @__PURE__ */ e.createElement("div", { className: `${l}-wrapper` }, i2(c, r, i, t)), g = (w, H) => /* @__PURE__ */ e.createElement(
|
|
9259
9264
|
"ul",
|
|
9260
9265
|
{
|
|
9261
9266
|
className: z([
|
|
@@ -9280,12 +9285,12 @@ const ds = (C) => {
|
|
|
9280
9285
|
placement: "right-start",
|
|
9281
9286
|
open: d,
|
|
9282
9287
|
onOpenChange: u,
|
|
9283
|
-
middleware: [
|
|
9288
|
+
middleware: [d2(8), m2(), y2()],
|
|
9284
9289
|
whileElementsMounted: Pe
|
|
9285
|
-
}), C =
|
|
9290
|
+
}), C = v2(y, {
|
|
9286
9291
|
move: !1,
|
|
9287
|
-
handleClose:
|
|
9288
|
-
}), v =
|
|
9292
|
+
handleClose: J2()
|
|
9293
|
+
}), v = Q2(y), h = Te(y), m = De(y, { role: "menu" }), { getReferenceProps: f, getFloatingProps: E } = Re([
|
|
9289
9294
|
C,
|
|
9290
9295
|
v,
|
|
9291
9296
|
h,
|
|
@@ -9309,7 +9314,7 @@ const ds = (C) => {
|
|
|
9309
9314
|
}
|
|
9310
9315
|
],
|
|
9311
9316
|
{
|
|
9312
|
-
duration: $
|
|
9317
|
+
duration: $t,
|
|
9313
9318
|
easing: Ie
|
|
9314
9319
|
}
|
|
9315
9320
|
).onfinish = () => {
|
|
@@ -9331,7 +9336,7 @@ const ds = (C) => {
|
|
|
9331
9336
|
{ height: "0px", opacity: "0", marginBlockStart: "0" }
|
|
9332
9337
|
],
|
|
9333
9338
|
{
|
|
9334
|
-
duration: $
|
|
9339
|
+
duration: $t,
|
|
9335
9340
|
easing: Ie
|
|
9336
9341
|
}
|
|
9337
9342
|
);
|
|
@@ -9358,7 +9363,7 @@ const ds = (C) => {
|
|
|
9358
9363
|
]),
|
|
9359
9364
|
ref: s ? b.setReference : null
|
|
9360
9365
|
}, f()),
|
|
9361
|
-
i ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${l}-wrapper` },
|
|
9366
|
+
i ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${l}-wrapper` }, i2(
|
|
9362
9367
|
c,
|
|
9363
9368
|
r,
|
|
9364
9369
|
i,
|
|
@@ -9422,7 +9427,7 @@ const ds = (C) => {
|
|
|
9422
9427
|
"className"
|
|
9423
9428
|
]);
|
|
9424
9429
|
const d = "pds-side-nav-global", u = s ? `${d}--collapsed` : `${d}--expanded`, b = /* @__PURE__ */ e.createElement(e.Fragment, null, n && /* @__PURE__ */ e.createElement("div", { className: `${d}__logo-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
9425
|
-
|
|
9430
|
+
ct,
|
|
9426
9431
|
{
|
|
9427
9432
|
className: `${d}__logo`,
|
|
9428
9433
|
displayType: s ? "icon" : "full",
|
|
@@ -9440,14 +9445,14 @@ const ds = (C) => {
|
|
|
9440
9445
|
links: C.links
|
|
9441
9446
|
}
|
|
9442
9447
|
)))), _ = i.map((C) => re(L({}, C), {
|
|
9443
|
-
linkContent:
|
|
9448
|
+
linkContent: i2(
|
|
9444
9449
|
d,
|
|
9445
9450
|
C.linkContent,
|
|
9446
9451
|
C.links,
|
|
9447
9452
|
C.icon
|
|
9448
9453
|
)
|
|
9449
9454
|
})), y = /* @__PURE__ */ e.createElement(
|
|
9450
|
-
|
|
9455
|
+
D2,
|
|
9451
9456
|
{
|
|
9452
9457
|
menuItems: _,
|
|
9453
9458
|
selectTextFallback: c,
|
|
@@ -9477,7 +9482,7 @@ const ds = (C) => {
|
|
|
9477
9482
|
whileElementsMounted: Pe
|
|
9478
9483
|
}), $ = Xe(f, {
|
|
9479
9484
|
event: "mousedown"
|
|
9480
|
-
}), M = Te(f), k = De(f, { role: "listbox" }), w =
|
|
9485
|
+
}), M = Te(f), k = De(f, { role: "listbox" }), w = u2(f, {
|
|
9481
9486
|
listRef: m,
|
|
9482
9487
|
activeIndex: o,
|
|
9483
9488
|
onNavigate: p,
|
|
@@ -9523,7 +9528,7 @@ const ds = (C) => {
|
|
|
9523
9528
|
K.linkContent
|
|
9524
9529
|
).length + 2}ch`
|
|
9525
9530
|
}, Z = /* @__PURE__ */ e.createElement(U, { iconName: "check", className: `${y}__active-icon` }), B = _ && /* @__PURE__ */ e.createElement("div", { className: `${y}__filter` }, /* @__PURE__ */ e.createElement(
|
|
9526
|
-
|
|
9531
|
+
qt,
|
|
9527
9532
|
{
|
|
9528
9533
|
hasClearButton: !0,
|
|
9529
9534
|
onClear: G,
|
|
@@ -9603,7 +9608,7 @@ const ds = (C) => {
|
|
|
9603
9608
|
links: C,
|
|
9604
9609
|
promoteActiveChildLink: v = !1
|
|
9605
9610
|
}) => {
|
|
9606
|
-
const h = `${o}__item`, m =
|
|
9611
|
+
const h = `${o}__item`, m = at(C), f = (E, $) => {
|
|
9607
9612
|
let M = null;
|
|
9608
9613
|
return typeof E == "object" && ($ ? M = Fe(E, re(L({}, E.props), {
|
|
9609
9614
|
children: [
|
|
@@ -9685,9 +9690,9 @@ const ds = (C) => {
|
|
|
9685
9690
|
placement: "bottom-end",
|
|
9686
9691
|
open: u,
|
|
9687
9692
|
onOpenChange: b,
|
|
9688
|
-
middleware: [
|
|
9693
|
+
middleware: [d2(12), m2(), y2()],
|
|
9689
9694
|
whileElementsMounted: Pe
|
|
9690
|
-
}), w = Xe(k, { event: "mousedown" }), H = Te(k), N = De(k, { role: "menu" }), x = ce([]), A =
|
|
9695
|
+
}), w = Xe(k, { event: "mousedown" }), H = Te(k), N = De(k, { role: "menu" }), x = ce([]), A = u2(k, {
|
|
9691
9696
|
listRef: x,
|
|
9692
9697
|
activeIndex: g,
|
|
9693
9698
|
onNavigate: d,
|
|
@@ -9712,7 +9717,7 @@ const ds = (C) => {
|
|
|
9712
9717
|
opacity: 0
|
|
9713
9718
|
}
|
|
9714
9719
|
}), K = /* @__PURE__ */ e.createElement(
|
|
9715
|
-
|
|
9720
|
+
Y2,
|
|
9716
9721
|
{
|
|
9717
9722
|
hasUserFallback: !0,
|
|
9718
9723
|
imageSrc: a,
|
|
@@ -9722,7 +9727,7 @@ const ds = (C) => {
|
|
|
9722
9727
|
}
|
|
9723
9728
|
), J = /* @__PURE__ */ e.createElement(U, { iconName: "angleDown", className: `${m}__trigger-icon` }), te = /* @__PURE__ */ e.createElement("li", { className: `${m}__user-details`, role: "presentation" }, h ? null : /* @__PURE__ */ e.createElement("div", { className: `${m}__user-name` }, r), /* @__PURE__ */ e.createElement("div", { className: `${m}__user-email` }, s));
|
|
9724
9729
|
n.forEach((D) => {
|
|
9725
|
-
const X = D.id ? D.id :
|
|
9730
|
+
const X = D.id ? D.id : c2();
|
|
9726
9731
|
_.current.push(X), y.current.push(D);
|
|
9727
9732
|
});
|
|
9728
9733
|
const Z = (D) => {
|
|
@@ -9846,7 +9851,7 @@ const ds = (C) => {
|
|
|
9846
9851
|
open: b,
|
|
9847
9852
|
onOpenChange: _,
|
|
9848
9853
|
whileElementsMounted: Pe
|
|
9849
|
-
}), O = Xe(W, { event: "mousedown" }), P = Te(W), G = De(W, { role: "menu" }), K =
|
|
9854
|
+
}), O = Xe(W, { event: "mousedown" }), P = Te(W), G = De(W, { role: "menu" }), K = u2(W, {
|
|
9850
9855
|
listRef: m,
|
|
9851
9856
|
activeIndex: y,
|
|
9852
9857
|
onNavigate: C,
|
|
@@ -9886,7 +9891,7 @@ const ds = (C) => {
|
|
|
9886
9891
|
const S = (oe) => {
|
|
9887
9892
|
oe.preventDefault(), oe.key === "Enter" && m.current[y].querySelector("a").click(), oe.key === "Tab" && (oe.shiftKey ? E ? document.getElementById("workspace-filter").focus() : _(!1) : n ? f.current.querySelector("a").focus() : _(!1));
|
|
9888
9893
|
}, V = /* @__PURE__ */ e.createElement("div", { className: `${w}__button-content` }, /* @__PURE__ */ e.createElement(
|
|
9889
|
-
|
|
9894
|
+
Y2,
|
|
9890
9895
|
{
|
|
9891
9896
|
size: "sm",
|
|
9892
9897
|
uniqueId: T.workspaceId,
|
|
@@ -9894,7 +9899,7 @@ const ds = (C) => {
|
|
|
9894
9899
|
className: `${w}__avatar`
|
|
9895
9900
|
}
|
|
9896
9901
|
), /* @__PURE__ */ e.createElement("span", { className: `${w}__name` }, T.displayName), T.planTier && /* @__PURE__ */ e.createElement(
|
|
9897
|
-
|
|
9902
|
+
b2,
|
|
9898
9903
|
{
|
|
9899
9904
|
size: "sm",
|
|
9900
9905
|
color: T.planTier,
|
|
@@ -9908,7 +9913,7 @@ const ds = (C) => {
|
|
|
9908
9913
|
className: `${w}__trigger-icon`
|
|
9909
9914
|
}
|
|
9910
9915
|
), X = E && /* @__PURE__ */ e.createElement("div", { className: `${w}__filter` }, /* @__PURE__ */ e.createElement(
|
|
9911
|
-
|
|
9916
|
+
qt,
|
|
9912
9917
|
{
|
|
9913
9918
|
hasClearButton: !0,
|
|
9914
9919
|
onClear: () => h(o),
|
|
@@ -9921,7 +9926,7 @@ const ds = (C) => {
|
|
|
9921
9926
|
}
|
|
9922
9927
|
)), ee = v.map(
|
|
9923
9928
|
(oe, he) => {
|
|
9924
|
-
const pe = `${w}__item`, me = oe.isActive ? `${pe}--active` : null, we = oe.isUnprivileged ? `${pe}--unprivileged` : null, Ve = /* @__PURE__ */ e.createElement(U, { iconName: "check", className: `${w}__active-icon` }), Me = oe.workspaceId,
|
|
9929
|
+
const pe = `${w}__item`, me = oe.isActive ? `${pe}--active` : null, we = oe.isUnprivileged ? `${pe}--unprivileged` : null, Ve = /* @__PURE__ */ e.createElement(U, { iconName: "check", className: `${w}__active-icon` }), Me = oe.workspaceId, e2 = oe.workspaceLink.type, t2 = oe.isUnprivileged ? null : (We) => {
|
|
9925
9930
|
m.current[he] = We;
|
|
9926
9931
|
};
|
|
9927
9932
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -9936,16 +9941,16 @@ const ds = (C) => {
|
|
|
9936
9941
|
]),
|
|
9937
9942
|
role: "menuitem",
|
|
9938
9943
|
tabIndex: y === he ? 0 : -1,
|
|
9939
|
-
ref:
|
|
9944
|
+
ref: t2,
|
|
9940
9945
|
onKeyDown: S
|
|
9941
9946
|
}, Z()),
|
|
9942
9947
|
/* @__PURE__ */ e.createElement(
|
|
9943
|
-
|
|
9948
|
+
e2,
|
|
9944
9949
|
re(L({}, oe.workspaceLink.props), {
|
|
9945
9950
|
onClick: () => _(!1)
|
|
9946
9951
|
}),
|
|
9947
9952
|
/* @__PURE__ */ e.createElement("div", { className: `${w}__item-content` }, /* @__PURE__ */ e.createElement(
|
|
9948
|
-
|
|
9953
|
+
Y2,
|
|
9949
9954
|
{
|
|
9950
9955
|
size: "sm",
|
|
9951
9956
|
uniqueId: oe.workspaceId,
|
|
@@ -9958,7 +9963,7 @@ const ds = (C) => {
|
|
|
9958
9963
|
);
|
|
9959
9964
|
}
|
|
9960
9965
|
), ue = n && /* @__PURE__ */ e.createElement("div", { className: `${w}__create-link`, ref: f }, /* @__PURE__ */ e.createElement(
|
|
9961
|
-
$
|
|
9966
|
+
$2,
|
|
9962
9967
|
{
|
|
9963
9968
|
displayType: "icon-end",
|
|
9964
9969
|
iconName: "plus",
|
|
@@ -10056,7 +10061,7 @@ const ds = (C) => {
|
|
|
10056
10061
|
warning: `${u}--warning`,
|
|
10057
10062
|
critical: `${u}--critical`
|
|
10058
10063
|
}, y = d > 0 ? p[0].type : null, C = y ? `${u}-group--${y}` : null, v = (M) => ({
|
|
10059
|
-
zIndex:
|
|
10064
|
+
zIndex: R2 - M
|
|
10060
10065
|
}), h = (M) => M === 0 ? 0 : -1, m = () => {
|
|
10061
10066
|
const M = document.getElementsByClassName(
|
|
10062
10067
|
`${u}--fading`
|
|
@@ -10071,7 +10076,7 @@ const ds = (C) => {
|
|
|
10071
10076
|
]);
|
|
10072
10077
|
}, 200);
|
|
10073
10078
|
}, E = () => {
|
|
10074
|
-
m(), document.getElementById(p[0].id).style.zIndex = (
|
|
10079
|
+
m(), document.getElementById(p[0].id).style.zIndex = (R2 + 2).toString(), document.getElementById(p[d - 1].id).style.zIndex = (R2 + 1).toString(), setTimeout(() => {
|
|
10075
10080
|
document.getElementById(p[0].id).classList.add(`${u}--fading`);
|
|
10076
10081
|
}, 50), setTimeout(() => {
|
|
10077
10082
|
g((M) => [
|
|
@@ -10133,7 +10138,7 @@ const ds = (C) => {
|
|
|
10133
10138
|
])
|
|
10134
10139
|
}, c),
|
|
10135
10140
|
d > 1 ? /* @__PURE__ */ e.createElement("div", { className: `${u}__navigation` }, /* @__PURE__ */ e.createElement(
|
|
10136
|
-
|
|
10141
|
+
V2,
|
|
10137
10142
|
{
|
|
10138
10143
|
iconName: "angleLeft",
|
|
10139
10144
|
size: "lg",
|
|
@@ -10142,7 +10147,7 @@ const ds = (C) => {
|
|
|
10142
10147
|
onClick: E
|
|
10143
10148
|
}
|
|
10144
10149
|
), /* @__PURE__ */ e.createElement(
|
|
10145
|
-
|
|
10150
|
+
V2,
|
|
10146
10151
|
{
|
|
10147
10152
|
iconName: "angleRight",
|
|
10148
10153
|
size: "lg",
|
|
@@ -10152,7 +10157,7 @@ const ds = (C) => {
|
|
|
10152
10157
|
}
|
|
10153
10158
|
), p.map((M, k) => $(M, k))) : $(p[0], 0)
|
|
10154
10159
|
);
|
|
10155
|
-
},
|
|
10160
|
+
}, W2 = {
|
|
10156
10161
|
info: "circleInfo",
|
|
10157
10162
|
warning: "triangleExclamation",
|
|
10158
10163
|
success: "circleCheck",
|
|
@@ -10191,15 +10196,15 @@ const ds = (C) => {
|
|
|
10191
10196
|
className: [o, p[s], g, r != null ? r : ""].join(" ").trim().replace(/\s+/g, " "),
|
|
10192
10197
|
role: u
|
|
10193
10198
|
}, i),
|
|
10194
|
-
/* @__PURE__ */ e.createElement("div", { className: `${o}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${o}__icon ${o}__icon-${s}` }, s === "working" ? /* @__PURE__ */ e.createElement(
|
|
10199
|
+
/* @__PURE__ */ e.createElement("div", { className: `${o}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${o}__icon ${o}__icon-${s}` }, s === "working" ? /* @__PURE__ */ e.createElement(w2, { colorType: "monochromatic" }) : /* @__PURE__ */ e.createElement(
|
|
10195
10200
|
U,
|
|
10196
10201
|
{
|
|
10197
|
-
iconName: `${s}` in
|
|
10202
|
+
iconName: `${s}` in W2 ? W2[s] : W2.info,
|
|
10198
10203
|
iconSize: "md"
|
|
10199
10204
|
}
|
|
10200
10205
|
)), /* @__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` }, n)))
|
|
10201
10206
|
);
|
|
10202
|
-
},
|
|
10207
|
+
}, q2 = {
|
|
10203
10208
|
info: "circleInfo",
|
|
10204
10209
|
warning: "triangleExclamation",
|
|
10205
10210
|
success: "circleCheck",
|
|
@@ -10264,7 +10269,7 @@ const ds = (C) => {
|
|
|
10264
10269
|
/* @__PURE__ */ e.createElement("div", { className: `${b}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${b}__icon ${b}__icon-${c}` }, /* @__PURE__ */ e.createElement(
|
|
10265
10270
|
U,
|
|
10266
10271
|
{
|
|
10267
|
-
iconName: `${c}` in
|
|
10272
|
+
iconName: `${c}` in q2 ? q2[c] : q2.info,
|
|
10268
10273
|
iconSize: "md"
|
|
10269
10274
|
}
|
|
10270
10275
|
)), /* @__PURE__ */ e.createElement("div", { className: `${b}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, h), i && /* @__PURE__ */ e.createElement("div", { className: `${b}__title` }, i), /* @__PURE__ */ e.createElement("div", { className: `${b}__message` }, r))),
|
|
@@ -10280,7 +10285,7 @@ const ds = (C) => {
|
|
|
10280
10285
|
/* @__PURE__ */ e.createElement(U, { iconSize: "md", iconName: "xmark" })
|
|
10281
10286
|
)
|
|
10282
10287
|
);
|
|
10283
|
-
},
|
|
10288
|
+
}, U2 = {
|
|
10284
10289
|
info: "circleInfo",
|
|
10285
10290
|
success: "check",
|
|
10286
10291
|
warning: "triangleExclamation",
|
|
@@ -10314,10 +10319,10 @@ const ds = (C) => {
|
|
|
10314
10319
|
className: z([i, c[s], r]),
|
|
10315
10320
|
id: n
|
|
10316
10321
|
},
|
|
10317
|
-
/* @__PURE__ */ e.createElement("div", { className: `${i}__icon-container` }, s === "working" ? /* @__PURE__ */ e.createElement(
|
|
10322
|
+
/* @__PURE__ */ e.createElement("div", { className: `${i}__icon-container` }, s === "working" ? /* @__PURE__ */ e.createElement(w2, { colorType: "monochromatic", size: "lg" }) : /* @__PURE__ */ e.createElement(
|
|
10318
10323
|
U,
|
|
10319
10324
|
{
|
|
10320
|
-
iconName: `${s}` in
|
|
10325
|
+
iconName: `${s}` in U2 ? U2[s] : U2.info,
|
|
10321
10326
|
className: `${i}__icon ${i}__icon--${s}`
|
|
10322
10327
|
}
|
|
10323
10328
|
)),
|
|
@@ -10357,14 +10362,14 @@ const js = () => {
|
|
|
10357
10362
|
autoClose: !1,
|
|
10358
10363
|
closeButton: !1,
|
|
10359
10364
|
closeOnClick: !1
|
|
10360
|
-
})),
|
|
10365
|
+
})), mt(i, c);
|
|
10361
10366
|
}, n = g1({
|
|
10362
10367
|
collapse: !1,
|
|
10363
10368
|
enter: "pds-toast--bounceInPlace",
|
|
10364
10369
|
exit: "pds-toast--slideOut"
|
|
10365
10370
|
});
|
|
10366
|
-
return [t,
|
|
10367
|
-
},
|
|
10371
|
+
return [t, mt, n];
|
|
10372
|
+
}, E2 = "...", k2 = (t, n) => {
|
|
10368
10373
|
const s = n - t + 1;
|
|
10369
10374
|
return Array.from({ length: s }, (a, r) => r + t);
|
|
10370
10375
|
}, Vn = ({
|
|
@@ -10372,32 +10377,32 @@ const js = () => {
|
|
|
10372
10377
|
currentPage: n,
|
|
10373
10378
|
itemsPerPage: s,
|
|
10374
10379
|
totalItemCount: a
|
|
10375
|
-
}) =>
|
|
10380
|
+
}) => xt(() => {
|
|
10376
10381
|
const i = Math.ceil(a / s), c = t + 5, l = 1, o = i;
|
|
10377
10382
|
if (c >= i)
|
|
10378
|
-
return
|
|
10383
|
+
return k2(1, i);
|
|
10379
10384
|
const p = Math.max(n - t, 1), g = Math.min(
|
|
10380
10385
|
n + t,
|
|
10381
10386
|
i
|
|
10382
10387
|
), d = p > 2, u = g < i - 2;
|
|
10383
10388
|
if (!d && u) {
|
|
10384
10389
|
const b = 3 + 2 * t;
|
|
10385
|
-
return [...
|
|
10390
|
+
return [...k2(1, b), E2, i];
|
|
10386
10391
|
}
|
|
10387
10392
|
if (d && !u) {
|
|
10388
|
-
const b = 3 + 2 * t, _ =
|
|
10393
|
+
const b = 3 + 2 * t, _ = k2(
|
|
10389
10394
|
i - b + 1,
|
|
10390
10395
|
i
|
|
10391
10396
|
);
|
|
10392
|
-
return [l,
|
|
10397
|
+
return [l, E2, ..._];
|
|
10393
10398
|
}
|
|
10394
10399
|
if (d && u) {
|
|
10395
|
-
const b =
|
|
10400
|
+
const b = k2(p, g);
|
|
10396
10401
|
return [
|
|
10397
10402
|
l,
|
|
10398
|
-
|
|
10403
|
+
E2,
|
|
10399
10404
|
...b,
|
|
10400
|
-
|
|
10405
|
+
E2,
|
|
10401
10406
|
o
|
|
10402
10407
|
];
|
|
10403
10408
|
}
|
|
@@ -10471,7 +10476,7 @@ const js = () => {
|
|
|
10471
10476
|
},
|
|
10472
10477
|
/* @__PURE__ */ e.createElement(U, { iconName: "arrowLeft" })
|
|
10473
10478
|
)
|
|
10474
|
-
), u.map((f, E) => f ===
|
|
10479
|
+
), u.map((f, E) => f === E2 ? /* @__PURE__ */ e.createElement(
|
|
10475
10480
|
"li",
|
|
10476
10481
|
{
|
|
10477
10482
|
key: E,
|
|
@@ -10517,7 +10522,7 @@ const js = () => {
|
|
|
10517
10522
|
)
|
|
10518
10523
|
))
|
|
10519
10524
|
);
|
|
10520
|
-
},
|
|
10525
|
+
}, yt = 0, Xs = (c) => {
|
|
10521
10526
|
var l = c, {
|
|
10522
10527
|
children: t,
|
|
10523
10528
|
id: n,
|
|
@@ -10532,7 +10537,7 @@ const js = () => {
|
|
|
10532
10537
|
"className"
|
|
10533
10538
|
]);
|
|
10534
10539
|
const [o, p] = Y(s), d = ce(
|
|
10535
|
-
n || `expansion-panel-${
|
|
10540
|
+
n || `expansion-panel-${c2()}`
|
|
10536
10541
|
).current, u = "pds-expansion-panel", b = ce(null), _ = ce(null), y = ce(null);
|
|
10537
10542
|
return le(() => {
|
|
10538
10543
|
const C = b.current, v = _.current, h = y.current;
|
|
@@ -10546,7 +10551,7 @@ const js = () => {
|
|
|
10546
10551
|
m && m.cancel(), m = C.animate(
|
|
10547
10552
|
{ height: [N, x] },
|
|
10548
10553
|
{
|
|
10549
|
-
duration:
|
|
10554
|
+
duration: yt,
|
|
10550
10555
|
easing: Ie
|
|
10551
10556
|
}
|
|
10552
10557
|
), m.onfinish = () => H(!1), m.oncancel = () => f = !1;
|
|
@@ -10558,7 +10563,7 @@ const js = () => {
|
|
|
10558
10563
|
m && m.cancel(), m = C.animate(
|
|
10559
10564
|
{ height: [N, x] },
|
|
10560
10565
|
{
|
|
10561
|
-
duration:
|
|
10566
|
+
duration: yt,
|
|
10562
10567
|
easing: Ie
|
|
10563
10568
|
}
|
|
10564
10569
|
), m.onfinish = () => H(!0), m.oncancel = () => E = !1;
|
|
@@ -10651,7 +10656,7 @@ const js = () => {
|
|
|
10651
10656
|
}, r),
|
|
10652
10657
|
n
|
|
10653
10658
|
);
|
|
10654
|
-
},
|
|
10659
|
+
}, wt = 0, e4 = (i) => {
|
|
10655
10660
|
var c = i, {
|
|
10656
10661
|
children: t,
|
|
10657
10662
|
className: n,
|
|
@@ -10676,7 +10681,7 @@ const js = () => {
|
|
|
10676
10681
|
{ height: f, opacity: "1" }
|
|
10677
10682
|
],
|
|
10678
10683
|
{
|
|
10679
|
-
duration:
|
|
10684
|
+
duration: wt,
|
|
10680
10685
|
easing: Ie
|
|
10681
10686
|
}
|
|
10682
10687
|
).onfinish = () => {
|
|
@@ -10693,7 +10698,7 @@ const js = () => {
|
|
|
10693
10698
|
{ height: "0px", opacity: "0" }
|
|
10694
10699
|
],
|
|
10695
10700
|
{
|
|
10696
|
-
duration:
|
|
10701
|
+
duration: wt,
|
|
10697
10702
|
easing: Ie
|
|
10698
10703
|
}
|
|
10699
10704
|
).onfinish = () => {
|
|
@@ -10776,7 +10781,7 @@ const js = () => {
|
|
|
10776
10781
|
className: `${p}__img`
|
|
10777
10782
|
}, c)
|
|
10778
10783
|
));
|
|
10779
|
-
},
|
|
10784
|
+
}, a2 = 8, Lt = 14, Sn = 6, In = (y) => {
|
|
10780
10785
|
var C = y, {
|
|
10781
10786
|
content: t,
|
|
10782
10787
|
closeButtonLabel: n = "Close",
|
|
@@ -10827,9 +10832,9 @@ const js = () => {
|
|
|
10827
10832
|
h(S), S || i();
|
|
10828
10833
|
},
|
|
10829
10834
|
middleware: [
|
|
10830
|
-
|
|
10831
|
-
|
|
10832
|
-
|
|
10835
|
+
d2(a2 + Sn + $),
|
|
10836
|
+
m2({ padding: 8 }),
|
|
10837
|
+
y2({ padding: 8 }),
|
|
10833
10838
|
o1({ element: M })
|
|
10834
10839
|
],
|
|
10835
10840
|
whileElementsMounted: Pe
|
|
@@ -10839,16 +10844,16 @@ const js = () => {
|
|
|
10839
10844
|
A,
|
|
10840
10845
|
R,
|
|
10841
10846
|
W
|
|
10842
|
-
]), G = (q = (B = N.arrow) == null ? void 0 : B.x) != null ? q : 0, K = (I = (T = N.arrow) == null ? void 0 : T.y) != null ? I : 0, J = G +
|
|
10847
|
+
]), G = (q = (B = N.arrow) == null ? void 0 : B.x) != null ? q : 0, K = (I = (T = N.arrow) == null ? void 0 : T.y) != null ? I : 0, J = G + Lt / 2, te = K + a2, { isMounted: Z } = Ye(H, {
|
|
10843
10848
|
initial: {
|
|
10844
10849
|
transform: "scale(0)"
|
|
10845
10850
|
},
|
|
10846
10851
|
common: ({ side: S }) => ({
|
|
10847
10852
|
transformOrigin: {
|
|
10848
|
-
top: `${J}px calc(100% + ${
|
|
10849
|
-
bottom: `${J}px ${-
|
|
10850
|
-
left: `calc(100% + ${
|
|
10851
|
-
right: `${-
|
|
10853
|
+
top: `${J}px calc(100% + ${a2}px)`,
|
|
10854
|
+
bottom: `${J}px ${-a2}px`,
|
|
10855
|
+
left: `calc(100% + ${a2}px) ${te}px`,
|
|
10856
|
+
right: `${-a2}px ${te}px`
|
|
10852
10857
|
}[S]
|
|
10853
10858
|
})
|
|
10854
10859
|
});
|
|
@@ -10868,8 +10873,8 @@ const js = () => {
|
|
|
10868
10873
|
iconSize: "md"
|
|
10869
10874
|
}
|
|
10870
10875
|
))
|
|
10871
|
-
), Z && /* @__PURE__ */ e.createElement(
|
|
10872
|
-
|
|
10876
|
+
), Z && /* @__PURE__ */ e.createElement(St, null, /* @__PURE__ */ e.createElement(
|
|
10877
|
+
It,
|
|
10873
10878
|
{
|
|
10874
10879
|
context: H,
|
|
10875
10880
|
modal: a,
|
|
@@ -10890,8 +10895,8 @@ const js = () => {
|
|
|
10890
10895
|
{
|
|
10891
10896
|
ref: M,
|
|
10892
10897
|
context: H,
|
|
10893
|
-
height:
|
|
10894
|
-
width:
|
|
10898
|
+
height: a2,
|
|
10899
|
+
width: Lt,
|
|
10895
10900
|
tipRadius: 0,
|
|
10896
10901
|
fill: "var(--pds-color-background-default)",
|
|
10897
10902
|
stroke: "var(--pds-color-border-default)",
|
|
@@ -10900,7 +10905,7 @@ const js = () => {
|
|
|
10900
10905
|
}
|
|
10901
10906
|
),
|
|
10902
10907
|
/* @__PURE__ */ e.createElement("div", { className: `${f}__container-inner` }, l && /* @__PURE__ */ e.createElement("div", { className: `${f}__title` }, l), t && /* @__PURE__ */ e.createElement("div", { className: `${f}__content` }, t), a && /* @__PURE__ */ e.createElement("div", { className: `${f}__close-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
10903
|
-
|
|
10908
|
+
Ot,
|
|
10904
10909
|
{
|
|
10905
10910
|
ariaLabel: n,
|
|
10906
10911
|
onClick: x,
|
|
@@ -10909,7 +10914,7 @@ const js = () => {
|
|
|
10909
10914
|
)))
|
|
10910
10915
|
)
|
|
10911
10916
|
)));
|
|
10912
|
-
},
|
|
10917
|
+
}, Ht = {
|
|
10913
10918
|
neutral: "--pds-color-semantic-neutral-utility",
|
|
10914
10919
|
info: "--pds-color-status-info-foreground",
|
|
10915
10920
|
success: "--pds-color-status-success-foreground",
|
|
@@ -10942,7 +10947,7 @@ const js = () => {
|
|
|
10942
10947
|
"size",
|
|
10943
10948
|
"className"
|
|
10944
10949
|
]);
|
|
10945
|
-
const b = n ||
|
|
10950
|
+
const b = n || c2(), _ = "pds-progress-bar", y = c ? `${_}__label` : "visually-hidden", C = `${_}__track ${_}__track--${o}`, v = i > 100 ? 100 : i;
|
|
10946
10951
|
let h = "neutral";
|
|
10947
10952
|
t.forEach(($) => {
|
|
10948
10953
|
i >= $.percentage && (h = $.colorType);
|
|
@@ -10960,7 +10965,7 @@ const js = () => {
|
|
|
10960
10965
|
{
|
|
10961
10966
|
className: `${_}__percentage`,
|
|
10962
10967
|
style: {
|
|
10963
|
-
color: `hsl(from var(${
|
|
10968
|
+
color: `hsl(from var(${Ht[h]}) h s calc(l - 7))`
|
|
10964
10969
|
}
|
|
10965
10970
|
},
|
|
10966
10971
|
i,
|
|
@@ -10980,7 +10985,7 @@ const js = () => {
|
|
|
10980
10985
|
className: `${_}__bar`,
|
|
10981
10986
|
style: {
|
|
10982
10987
|
width: `${v}%`,
|
|
10983
|
-
backgroundColor: `var(${
|
|
10988
|
+
backgroundColor: `var(${Ht[h]})`
|
|
10984
10989
|
}
|
|
10985
10990
|
}
|
|
10986
10991
|
)
|
|
@@ -11007,9 +11012,9 @@ const js = () => {
|
|
|
11007
11012
|
"size",
|
|
11008
11013
|
"className"
|
|
11009
11014
|
]);
|
|
11010
|
-
const d = t ||
|
|
11011
|
-
let C = y(
|
|
11012
|
-
c === "sm" && (C = y(
|
|
11015
|
+
const d = t || c2(), u = "pds-progress-ring", b = r ? `${u}__label` : "visually-hidden", _ = `${u}__loading-text ${u}__loading-text--${c}`, y = ($) => $ * 16;
|
|
11016
|
+
let C = y(Gt), v = 7;
|
|
11017
|
+
c === "sm" && (C = y(Zt), v = v / 1.25), c === "lg" && (C = y(Wt), v = v * 1.25);
|
|
11013
11018
|
const h = C / 2 - v / 2, m = 2 * Math.PI * h, f = m - m * a / 100;
|
|
11014
11019
|
let E;
|
|
11015
11020
|
return n ? E = n : i ? E = `${a}%` : E = "", /* @__PURE__ */ e.createElement(
|
|
@@ -11227,9 +11232,9 @@ const l4 = (o) => {
|
|
|
11227
11232
|
"upgradeLabel",
|
|
11228
11233
|
"className"
|
|
11229
11234
|
]);
|
|
11230
|
-
const _ = "pds-site-dashboard-heading", y = $n[c], C = l ?
|
|
11235
|
+
const _ = "pds-site-dashboard-heading", y = $n[c], C = l ? jt[l] : "bolt";
|
|
11231
11236
|
return /* @__PURE__ */ e.createElement("div", L({ className: z([_, g != null ? g : ""]) }, d), /* @__PURE__ */ e.createElement(U, { iconName: C, iconSize: "2xl" }), /* @__PURE__ */ e.createElement("h1", { className: "pds-ts-2xl" }, i), /* @__PURE__ */ e.createElement("span", { className: `${_}__plan-level-badge` }, c === "sandbox" ? /* @__PURE__ */ e.createElement(
|
|
11232
|
-
|
|
11237
|
+
o2,
|
|
11233
11238
|
{
|
|
11234
11239
|
displayType: "icon-start",
|
|
11235
11240
|
variant: "brand",
|
|
@@ -11238,7 +11243,7 @@ const l4 = (o) => {
|
|
|
11238
11243
|
iconName: "bolt"
|
|
11239
11244
|
}
|
|
11240
11245
|
) : /* @__PURE__ */ e.createElement(e.Fragment, null, c && /* @__PURE__ */ e.createElement(
|
|
11241
|
-
|
|
11246
|
+
b2,
|
|
11242
11247
|
{
|
|
11243
11248
|
label: y,
|
|
11244
11249
|
color: "neutral",
|
|
@@ -11255,7 +11260,7 @@ const l4 = (o) => {
|
|
|
11255
11260
|
setPopoverIsOpen: r
|
|
11256
11261
|
}, o)
|
|
11257
11262
|
))));
|
|
11258
|
-
},
|
|
11263
|
+
}, j2 = {
|
|
11259
11264
|
bluesky: {
|
|
11260
11265
|
icon: "bluesky",
|
|
11261
11266
|
url: "https://bsky.app/profile/pantheon.io",
|
|
@@ -11308,12 +11313,12 @@ const l4 = (o) => {
|
|
|
11308
11313
|
t.map((c, l) => /* @__PURE__ */ e.createElement("li", { key: l, className: `${i}__item` }, /* @__PURE__ */ e.createElement(
|
|
11309
11314
|
"a",
|
|
11310
11315
|
{
|
|
11311
|
-
href:
|
|
11316
|
+
href: j2[c].url,
|
|
11312
11317
|
rel: "noreferrer",
|
|
11313
11318
|
target: "_blank",
|
|
11314
|
-
"aria-label":
|
|
11319
|
+
"aria-label": j2[c].label
|
|
11315
11320
|
},
|
|
11316
|
-
/* @__PURE__ */ e.createElement(U, { iconName:
|
|
11321
|
+
/* @__PURE__ */ e.createElement(U, { iconName: j2[c].icon, iconSize: "xl" })
|
|
11317
11322
|
)))
|
|
11318
11323
|
);
|
|
11319
11324
|
}, r4 = (i) => {
|
|
@@ -11335,7 +11340,7 @@ const l4 = (o) => {
|
|
|
11335
11340
|
className: [l, o, p, a != null ? a : ""].join(" ").trim().replace(/\s+/g, " ")
|
|
11336
11341
|
}, r),
|
|
11337
11342
|
s === "working" ? /* @__PURE__ */ e.createElement(
|
|
11338
|
-
|
|
11343
|
+
w2,
|
|
11339
11344
|
{
|
|
11340
11345
|
className: `${l}__spinner`,
|
|
11341
11346
|
colorType: "monochromatic",
|
|
@@ -11359,7 +11364,7 @@ const l4 = (o) => {
|
|
|
11359
11364
|
"translatableLabels",
|
|
11360
11365
|
"className"
|
|
11361
11366
|
]);
|
|
11362
|
-
const c = "pds-stepper", l = "pds-stepper-mobile", o = ce(), [p] =
|
|
11367
|
+
const c = "pds-stepper", l = "pds-stepper-mobile", o = ce(), [p] = I2(o), g = p.width, d = Number(
|
|
11363
11368
|
getComputedStyle(document.body).getPropertyValue("--pds-stepper-step-content-width").replace("rem", "")
|
|
11364
11369
|
) * 16, u = -40, b = 2, _ = 5, y = t.length, C = t.map((m) => m.isCurrent).lastIndexOf(!0), v = t.map((m, f) => {
|
|
11365
11370
|
const E = f + 1, $ = f === C, M = f < C, k = m.hasError && $, H = (g - y * d) / (y + (y - 2)), N = d + H * 2, x = d + H, A = H + u * -1, R = f === 0, W = f === y - 1;
|
|
@@ -11572,7 +11577,7 @@ const l4 = (o) => {
|
|
|
11572
11577
|
x.id.includes(A) && (x.id = x.id.replaceAll(A, "-"));
|
|
11573
11578
|
});
|
|
11574
11579
|
}), H.map((x) => {
|
|
11575
|
-
const A = `item-${
|
|
11580
|
+
const A = `item-${c2()}`;
|
|
11576
11581
|
x.id || (x.id = A);
|
|
11577
11582
|
});
|
|
11578
11583
|
const N = y(H);
|
|
@@ -11760,7 +11765,7 @@ const l4 = (o) => {
|
|
|
11760
11765
|
onClick: C ? null : u,
|
|
11761
11766
|
type: "button"
|
|
11762
11767
|
},
|
|
11763
|
-
/* @__PURE__ */ e.createElement("div", { key: v, className: `${p}__tab-label` }, v ? /* @__PURE__ */ e.createElement(U, { iconName: v, iconSize: "md" }) : null, " ", m, r[E].tally ? /* @__PURE__ */ e.createElement(
|
|
11768
|
+
/* @__PURE__ */ e.createElement("div", { key: v, className: `${p}__tab-label` }, v ? /* @__PURE__ */ e.createElement(U, { iconName: v, iconSize: "md" }) : null, " ", m, r[E].tally ? /* @__PURE__ */ e.createElement(z2, { label: f.label, type: f.type }) : null)
|
|
11764
11769
|
))
|
|
11765
11770
|
), r.map(({ disabled: C, icon: v, panelContent: h, tabLabel: m, tally: f }, E) => /* @__PURE__ */ e.createElement(
|
|
11766
11771
|
"div",
|
|
@@ -11786,7 +11791,7 @@ const l4 = (o) => {
|
|
|
11786
11791
|
onClick: C ? null : u,
|
|
11787
11792
|
type: "button"
|
|
11788
11793
|
},
|
|
11789
|
-
/* @__PURE__ */ e.createElement("div", { key: v, className: `${p}__tab-label` }, v ? /* @__PURE__ */ e.createElement(U, { iconSize: "md", iconName: v }) : null, " ", m, r[E].tally ? /* @__PURE__ */ e.createElement(
|
|
11794
|
+
/* @__PURE__ */ e.createElement("div", { key: v, className: `${p}__tab-label` }, v ? /* @__PURE__ */ e.createElement(U, { iconSize: "md", iconName: v }) : null, " ", m, r[E].tally ? /* @__PURE__ */ e.createElement(z2, { label: f.label, type: f.type }) : null),
|
|
11790
11795
|
E == g ? /* @__PURE__ */ e.createElement(
|
|
11791
11796
|
U,
|
|
11792
11797
|
{
|
|
@@ -11812,7 +11817,7 @@ const l4 = (o) => {
|
|
|
11812
11817
|
h
|
|
11813
11818
|
)
|
|
11814
11819
|
))));
|
|
11815
|
-
},
|
|
11820
|
+
}, Mt = [
|
|
11816
11821
|
"color-1",
|
|
11817
11822
|
"color-2",
|
|
11818
11823
|
"color-3",
|
|
@@ -11834,8 +11839,8 @@ const l4 = (o) => {
|
|
|
11834
11839
|
"color-19",
|
|
11835
11840
|
"color-20"
|
|
11836
11841
|
], Dn = (t) => {
|
|
11837
|
-
const n = parseInt(
|
|
11838
|
-
return
|
|
11842
|
+
const n = parseInt(Vt(t), 16);
|
|
11843
|
+
return Mt[n % Mt.length];
|
|
11839
11844
|
}, Rn = (t, n) => t.length > n ? t.slice(0, n) + " ..." : t, u4 = (o) => {
|
|
11840
11845
|
var p = o, {
|
|
11841
11846
|
linkContent: t,
|
|
@@ -11942,7 +11947,7 @@ const l4 = (o) => {
|
|
|
11942
11947
|
preferredPlacement: "top",
|
|
11943
11948
|
offsetValue: 0,
|
|
11944
11949
|
customTrigger: /* @__PURE__ */ e.createElement(
|
|
11945
|
-
|
|
11950
|
+
Pt,
|
|
11946
11951
|
{
|
|
11947
11952
|
id: "theme-switcher-menu",
|
|
11948
11953
|
"aria-label": (b = s.tooltip) != null ? b : "change theme",
|
|
@@ -12117,7 +12122,7 @@ const l4 = (o) => {
|
|
|
12117
12122
|
return;
|
|
12118
12123
|
}
|
|
12119
12124
|
m(!h);
|
|
12120
|
-
}, H = Oe(t), N = H.__unslotted, x = H.sidebar, A =
|
|
12125
|
+
}, H = Oe(t), N = H.__unslotted, x = H.sidebar, A = Nt(
|
|
12121
12126
|
i,
|
|
12122
12127
|
re(L({}, c), {
|
|
12123
12128
|
className: z([
|
|
@@ -12258,7 +12263,7 @@ const l4 = (o) => {
|
|
|
12258
12263
|
"children",
|
|
12259
12264
|
"className"
|
|
12260
12265
|
]);
|
|
12261
|
-
let h =
|
|
12266
|
+
let h = Ft() <= 640;
|
|
12262
12267
|
const m = $e(ye);
|
|
12263
12268
|
m && (h = m.isMobile);
|
|
12264
12269
|
const f = "pds-flex", E = `${f}-container`, $ = h ? `${E}--mobile` : null;
|
|
@@ -12351,13 +12356,13 @@ const l4 = (o) => {
|
|
|
12351
12356
|
"children",
|
|
12352
12357
|
"className"
|
|
12353
12358
|
]);
|
|
12354
|
-
const i = Oe(t), c = i.stepper, l = i.form, o = ce(), [p] =
|
|
12359
|
+
const i = Oe(t), c = i.stepper, l = i.form, o = ce(), [p] = I2(o), g = p.width;
|
|
12355
12360
|
document.documentElement.style.setProperty(
|
|
12356
12361
|
"--stepper-layout-max-width",
|
|
12357
12362
|
g + "px"
|
|
12358
12363
|
);
|
|
12359
12364
|
const d = "pds-stepper-layout";
|
|
12360
|
-
return /* @__PURE__ */ e.createElement(
|
|
12365
|
+
return /* @__PURE__ */ e.createElement(_2, L({ className: z([d, n]) }, s), c && /* @__PURE__ */ e.createElement(
|
|
12361
12366
|
"div",
|
|
12362
12367
|
{
|
|
12363
12368
|
className: `${d}__stepper-container`,
|
|
@@ -12442,12 +12447,12 @@ const l4 = (o) => {
|
|
|
12442
12447
|
/* @__PURE__ */ e.createElement("div", { className: C.join(" ").trim() }, m)
|
|
12443
12448
|
);
|
|
12444
12449
|
}, L4 = (t, n) => {
|
|
12445
|
-
const [s, a] = Y(!1), r =
|
|
12450
|
+
const [s, a] = Y(!1), r = K2(
|
|
12446
12451
|
(c) => {
|
|
12447
12452
|
c.key === t && (a(!0), n && n(c));
|
|
12448
12453
|
},
|
|
12449
12454
|
[t, n]
|
|
12450
|
-
), i =
|
|
12455
|
+
), i = K2(
|
|
12451
12456
|
(c) => {
|
|
12452
12457
|
c.key === t && a(!1);
|
|
12453
12458
|
},
|
|
@@ -12459,32 +12464,32 @@ const l4 = (o) => {
|
|
|
12459
12464
|
};
|
|
12460
12465
|
export {
|
|
12461
12466
|
g4 as AppLayout,
|
|
12462
|
-
|
|
12467
|
+
Y2 as Avatar,
|
|
12463
12468
|
h4 as AvatarTileList,
|
|
12464
12469
|
Gs as Banner,
|
|
12465
12470
|
Jn as BranchDiff,
|
|
12466
12471
|
zs as Breadcrumb,
|
|
12467
|
-
|
|
12468
|
-
$
|
|
12472
|
+
o2 as Button,
|
|
12473
|
+
$2 as ButtonLink,
|
|
12469
12474
|
xs as ButtonNav,
|
|
12470
12475
|
on as CTALink,
|
|
12471
12476
|
ms as CTASlice,
|
|
12472
12477
|
ns as Callout,
|
|
12473
|
-
|
|
12474
|
-
|
|
12478
|
+
A2 as Card,
|
|
12479
|
+
lt as CardHeading,
|
|
12475
12480
|
ss as CardSelectGroup,
|
|
12476
12481
|
un as Checkbox,
|
|
12477
12482
|
vs as CheckboxFieldset,
|
|
12478
12483
|
bs as CheckboxGroup,
|
|
12479
|
-
|
|
12480
|
-
|
|
12484
|
+
ft as ClipboardButton,
|
|
12485
|
+
Ot as CloseButton,
|
|
12481
12486
|
ds as CodeBlock,
|
|
12482
12487
|
pn as Combobox,
|
|
12483
12488
|
$s as ComboboxMultiselect,
|
|
12484
12489
|
ps as CompactEmptyState,
|
|
12485
|
-
|
|
12486
|
-
|
|
12487
|
-
|
|
12490
|
+
Ct as ComparisonList,
|
|
12491
|
+
_2 as Container,
|
|
12492
|
+
T2 as DashboardContext,
|
|
12488
12493
|
Vs as DashboardGlobal,
|
|
12489
12494
|
C4 as DashboardInner,
|
|
12490
12495
|
Ss as DashboardNav,
|
|
@@ -12492,7 +12497,7 @@ export {
|
|
|
12492
12497
|
As as DashboardSearch,
|
|
12493
12498
|
us as DashboardStat,
|
|
12494
12499
|
_4 as DocsLayout,
|
|
12495
|
-
|
|
12500
|
+
D2 as DropdownMenu,
|
|
12496
12501
|
ls as EmptyStateCard,
|
|
12497
12502
|
Xs as ExpansionPanel,
|
|
12498
12503
|
Ys as ExpansionPanelGroup,
|
|
@@ -12505,13 +12510,13 @@ export {
|
|
|
12505
12510
|
v4 as GlobalWrapper,
|
|
12506
12511
|
hs as HorizontalEmptyState,
|
|
12507
12512
|
U as Icon,
|
|
12508
|
-
|
|
12509
|
-
|
|
12513
|
+
V2 as IconButton,
|
|
12514
|
+
b2 as IndicatorBadge,
|
|
12510
12515
|
Ws as InlineMessage,
|
|
12511
12516
|
ws as InputGroup,
|
|
12512
12517
|
ks as LinkNewWindow,
|
|
12513
12518
|
as as LinksCard,
|
|
12514
|
-
|
|
12519
|
+
Pt as MenuButton,
|
|
12515
12520
|
Ns as Modal,
|
|
12516
12521
|
Ds as NavMenu,
|
|
12517
12522
|
Ts as Navbar,
|
|
@@ -12520,7 +12525,7 @@ export {
|
|
|
12520
12525
|
Qs as Panel,
|
|
12521
12526
|
Js as PanelList,
|
|
12522
12527
|
e4 as PanelRow,
|
|
12523
|
-
|
|
12528
|
+
ct as PantheonLogo,
|
|
12524
12529
|
rs as PaymentCard,
|
|
12525
12530
|
M1 as PaymentIcon,
|
|
12526
12531
|
t4 as Picture,
|
|
@@ -12547,14 +12552,14 @@ export {
|
|
|
12547
12552
|
a4 as SiteDashboardHeading,
|
|
12548
12553
|
Es as SiteFooter,
|
|
12549
12554
|
$n as SitePlanLevelLabel,
|
|
12550
|
-
|
|
12555
|
+
jt as SiteTypeIcon,
|
|
12551
12556
|
Is as SiteTypeLabel,
|
|
12552
12557
|
rn as Skeleton,
|
|
12553
12558
|
_n as Skiplink,
|
|
12554
12559
|
c4 as SocialLinks,
|
|
12555
|
-
|
|
12560
|
+
w2 as Spinner,
|
|
12556
12561
|
w1 as SplitButton,
|
|
12557
|
-
|
|
12562
|
+
et as StatusBadge,
|
|
12558
12563
|
r4 as StatusIndicator,
|
|
12559
12564
|
o4 as Stepper,
|
|
12560
12565
|
$4 as StepperLayout,
|
|
@@ -12564,8 +12569,8 @@ export {
|
|
|
12564
12569
|
d4 as TableOfContents,
|
|
12565
12570
|
m4 as Tabs,
|
|
12566
12571
|
u4 as Tag,
|
|
12567
|
-
|
|
12568
|
-
|
|
12572
|
+
z2 as Tally,
|
|
12573
|
+
qt as TextInput,
|
|
12569
12574
|
Ms as Textarea,
|
|
12570
12575
|
p4 as ThemeSwitcher,
|
|
12571
12576
|
y4 as ThreeItemLayout,
|
|
@@ -12581,13 +12586,13 @@ export {
|
|
|
12581
12586
|
fs as VerticalEmptyState,
|
|
12582
12587
|
dn as VideoEmbed,
|
|
12583
12588
|
Zs as WorkspaceSelector,
|
|
12584
|
-
|
|
12589
|
+
gt as badgeTypes,
|
|
12585
12590
|
hn as getFilteredOptions,
|
|
12586
12591
|
Qn as iconList,
|
|
12587
|
-
|
|
12592
|
+
Mt as tagColors,
|
|
12588
12593
|
b1 as useClipboard,
|
|
12589
12594
|
L4 as useKeyPress,
|
|
12590
12595
|
js as useToast,
|
|
12591
|
-
|
|
12596
|
+
Ft as useWindowWidth
|
|
12592
12597
|
};
|
|
12593
12598
|
//# sourceMappingURL=index.js.map
|