@pantheon-systems/pds-toolkit-react 2.0.0-alpha.22 → 2.0.0-alpha.23
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/Table/Table.d.ts +5 -0
- package/dist/index.js +490 -481
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e, { Children as E1, isValidElement as $e, useState as
|
|
1
|
+
import e, { Children as E1, isValidElement as $e, useState as q, cloneElement as Ne, createElement as $1, useContext as K2, useCallback as ye, useEffect as ae, createContext as Y2, forwardRef as Te, useRef as de, useMemo as Me, useId as O2 } from "react";
|
|
2
2
|
import w1 from "hash-sum";
|
|
3
3
|
import { useFloating as ke, autoUpdate as Ie, offset as xe, flip as Re, shift as s2, useHover as U2, useFocus as r4, useDismiss as Oe, useRole as l2, useInteractions as Ze, FloatingPortal as L1, useId as o4, useClick as u2, safePolygon as y1, useListNavigation as z1, useTypeahead as i4, useTransitionStyles as Ke, size as v2, FloatingOverlay as d4, FloatingFocusManager as N1, arrow as m4, FloatingArrow as u4 } from "@floating-ui/react";
|
|
4
4
|
import { ResponsiveContainer as M1, BarChart as p4, CartesianGrid as k1, XAxis as x1, YAxis as D1, Tooltip as P1, Bar as h4, LineChart as g4, Line as f4, ReferenceLine as n1 } from "recharts";
|
|
@@ -1759,12 +1759,12 @@ import './index.css';const Ye = () => Math.random().toString(32).substring(2, 13
|
|
|
1759
1759
|
...o
|
|
1760
1760
|
}) => {
|
|
1761
1761
|
const r = "pds-icon", d = `${r} ${r}--${c} ${r}--${t}`, i = $4[t], m = `0 0 ${i.width} ${i.height}`, h = t in r1 ? r1[t] : null;
|
|
1762
|
-
let
|
|
1762
|
+
let C;
|
|
1763
1763
|
if (h?.type === "complex")
|
|
1764
|
-
|
|
1764
|
+
C = h.render();
|
|
1765
1765
|
else {
|
|
1766
1766
|
const u = h?.type === "path" ? h.svgPathData : i.svgPathData;
|
|
1767
|
-
|
|
1767
|
+
C = Array.isArray(u) ? u.map((p, f) => /* @__PURE__ */ e.createElement("path", { key: f, d: p, fill: "currentColor" })) : /* @__PURE__ */ e.createElement("path", { d: u, fill: "currentColor" });
|
|
1768
1768
|
}
|
|
1769
1769
|
return /* @__PURE__ */ e.createElement(
|
|
1770
1770
|
"svg",
|
|
@@ -1784,7 +1784,7 @@ import './index.css';const Ye = () => Math.random().toString(32).substring(2, 13
|
|
|
1784
1784
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1785
1785
|
...o
|
|
1786
1786
|
},
|
|
1787
|
-
|
|
1787
|
+
C
|
|
1788
1788
|
);
|
|
1789
1789
|
}, o1 = [
|
|
1790
1790
|
"dawn",
|
|
@@ -1817,7 +1817,7 @@ import './index.css';const Ye = () => Math.random().toString(32).substring(2, 13
|
|
|
1817
1817
|
uniqueId: r,
|
|
1818
1818
|
...d
|
|
1819
1819
|
}) => {
|
|
1820
|
-
const i = "pds-avatar", m = `${i}--${o}`, h = s !== "circle" ? `${i}--${s}` : null,
|
|
1820
|
+
const i = "pds-avatar", m = `${i}--${o}`, h = s !== "circle" ? `${i}--${s}` : null, C = c ? `${i}--image` : null, [u, p] = q(void 0), b = {
|
|
1821
1821
|
backgroundImage: r ? `var(--pds-gradient-avatar-${w4(r)})` : null,
|
|
1822
1822
|
borderRadius: s === "square" ? "var(--pds-border-radius-default)" : "100%",
|
|
1823
1823
|
height: "100%",
|
|
@@ -1849,7 +1849,7 @@ import './index.css';const Ye = () => Math.random().toString(32).substring(2, 13
|
|
|
1849
1849
|
i,
|
|
1850
1850
|
m,
|
|
1851
1851
|
h,
|
|
1852
|
-
|
|
1852
|
+
C,
|
|
1853
1853
|
l
|
|
1854
1854
|
]),
|
|
1855
1855
|
...d
|
|
@@ -1958,15 +1958,15 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
1958
1958
|
zIndex: m = V4,
|
|
1959
1959
|
...h
|
|
1960
1960
|
}) => {
|
|
1961
|
-
const [
|
|
1962
|
-
`${
|
|
1963
|
-
p === "string" ? `${
|
|
1961
|
+
const [C, u] = q(!1), p = typeof t, f = "pds-tooltip", b = $([
|
|
1962
|
+
`${f}__trigger-custom`,
|
|
1963
|
+
p === "string" ? `${f}__trigger-text` : null
|
|
1964
1964
|
]), v = $([
|
|
1965
|
-
`${
|
|
1966
|
-
`${
|
|
1965
|
+
`${f}__trigger`,
|
|
1966
|
+
`${f}__trigger--${d}`
|
|
1967
1967
|
]), { context: E, floatingStyles: g, refs: _ } = ke({
|
|
1968
1968
|
placement: s,
|
|
1969
|
-
open:
|
|
1969
|
+
open: C,
|
|
1970
1970
|
onOpenChange: u,
|
|
1971
1971
|
middleware: [xe(n), Re(), s2()],
|
|
1972
1972
|
whileElementsMounted: Ie
|
|
@@ -1980,7 +1980,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
1980
1980
|
w,
|
|
1981
1981
|
k
|
|
1982
1982
|
]);
|
|
1983
|
-
return /* @__PURE__ */ e.createElement("div", { className: $([
|
|
1983
|
+
return /* @__PURE__ */ e.createElement("div", { className: $([f, a ?? ""]), ...h }, t ? /* @__PURE__ */ e.createElement(
|
|
1984
1984
|
"span",
|
|
1985
1985
|
{
|
|
1986
1986
|
ref: _.setReference,
|
|
@@ -2000,7 +2000,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
2000
2000
|
/* @__PURE__ */ e.createElement(
|
|
2001
2001
|
F,
|
|
2002
2002
|
{
|
|
2003
|
-
className: `${
|
|
2003
|
+
className: `${f}__icon`,
|
|
2004
2004
|
iconName: r,
|
|
2005
2005
|
size: i
|
|
2006
2006
|
}
|
|
@@ -2009,13 +2009,13 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
2009
2009
|
"div",
|
|
2010
2010
|
{
|
|
2011
2011
|
ref: _.setFloating,
|
|
2012
|
-
"aria-hidden": !
|
|
2013
|
-
className: `${
|
|
2012
|
+
"aria-hidden": !C,
|
|
2013
|
+
className: `${f}__container`,
|
|
2014
2014
|
style: {
|
|
2015
2015
|
...g,
|
|
2016
2016
|
zIndex: m,
|
|
2017
|
-
opacity:
|
|
2018
|
-
pointerEvents:
|
|
2017
|
+
opacity: C ? 1 : 0,
|
|
2018
|
+
pointerEvents: C ? "auto" : "none",
|
|
2019
2019
|
transition: "var(--pds-animation-transition-reveal)"
|
|
2020
2020
|
},
|
|
2021
2021
|
...P()
|
|
@@ -2033,11 +2033,11 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
2033
2033
|
numberBehindDescription: r = "commits behind main",
|
|
2034
2034
|
...d
|
|
2035
2035
|
}) => {
|
|
2036
|
-
const i = "pds-branch-diff", m = t ? `${i}--loading` : null, h = t ? "pds-pulse" : null,
|
|
2036
|
+
const i = "pds-branch-diff", m = t ? `${i}--loading` : null, h = t ? "pds-pulse" : null, C = l !== null && l > 0 ? `${l}rem` : "100%";
|
|
2037
2037
|
let u = Math.max(0, n), p = Math.max(0, o);
|
|
2038
2038
|
t && (u = 1, p = 1);
|
|
2039
|
-
const
|
|
2040
|
-
let b =
|
|
2039
|
+
const f = Math.max(u, p);
|
|
2040
|
+
let b = f > 0 ? p / f * 100 : 0, v = f > 0 ? u / f * 100 : 0;
|
|
2041
2041
|
const E = 10;
|
|
2042
2042
|
b < E ? (b = E, v = 100 - E) : v < E && (v = E, b = 100 - E);
|
|
2043
2043
|
const g = t ? c : `${p} ${r} & ${u} ${s}`;
|
|
@@ -2045,7 +2045,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
2045
2045
|
"div",
|
|
2046
2046
|
{
|
|
2047
2047
|
className: $([i, m, a ?? ""]),
|
|
2048
|
-
style: { width:
|
|
2048
|
+
style: { width: C },
|
|
2049
2049
|
...d
|
|
2050
2050
|
},
|
|
2051
2051
|
/* @__PURE__ */ e.createElement(
|
|
@@ -2128,7 +2128,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
2128
2128
|
}, A1 = Y2(null), Y4 = ({
|
|
2129
2129
|
children: a
|
|
2130
2130
|
}) => {
|
|
2131
|
-
const [l, t] =
|
|
2131
|
+
const [l, t] = q(0), c = ye(() => {
|
|
2132
2132
|
t((r) => r + 1);
|
|
2133
2133
|
}, []), n = ye(() => {
|
|
2134
2134
|
t((r) => Math.max(0, r - 1));
|
|
@@ -2163,7 +2163,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
2163
2163
|
enabled: s = !0,
|
|
2164
2164
|
metaKey: o = !1,
|
|
2165
2165
|
shiftKey: r = !1
|
|
2166
|
-
} = t ?? {}, [d, i] =
|
|
2166
|
+
} = t ?? {}, [d, i] = q(!1), m = ye(
|
|
2167
2167
|
(u) => u.altKey === c && u.ctrlKey === n && u.metaKey === o && u.shiftKey === r,
|
|
2168
2168
|
[c, n, o, r]
|
|
2169
2169
|
), h = ye(
|
|
@@ -2171,7 +2171,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
2171
2171
|
u.key === a && m(u) && (i(!0), l && l(u));
|
|
2172
2172
|
},
|
|
2173
2173
|
[a, l, m]
|
|
2174
|
-
),
|
|
2174
|
+
), C = ye(
|
|
2175
2175
|
(u) => {
|
|
2176
2176
|
u.key === a && m(u) && i(!1);
|
|
2177
2177
|
},
|
|
@@ -2179,10 +2179,10 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
2179
2179
|
);
|
|
2180
2180
|
return ae(() => {
|
|
2181
2181
|
if (s)
|
|
2182
|
-
return window.addEventListener("keydown", h), window.addEventListener("keyup",
|
|
2183
|
-
window.removeEventListener("keydown", h), window.removeEventListener("keyup",
|
|
2182
|
+
return window.addEventListener("keydown", h), window.addEventListener("keyup", C), () => {
|
|
2183
|
+
window.removeEventListener("keydown", h), window.removeEventListener("keyup", C);
|
|
2184
2184
|
};
|
|
2185
|
-
}, [h,
|
|
2185
|
+
}, [h, C, s]), d;
|
|
2186
2186
|
}, te = {
|
|
2187
2187
|
base: "pds-input",
|
|
2188
2188
|
disabled: "pds-is-disabled",
|
|
@@ -2351,12 +2351,12 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
2351
2351
|
size: s = "3xl",
|
|
2352
2352
|
...o
|
|
2353
2353
|
}) => {
|
|
2354
|
-
const r = "pds-spinner", d = l !== "full-color" ? `${r}--${l}` : null, i = t ? `${r}--inline` : null, m = Q4[s], h = J4[s],
|
|
2354
|
+
const r = "pds-spinner", d = l !== "full-color" ? `${r}--${l}` : null, i = t ? `${r}--inline` : null, m = Q4[s], h = J4[s], C = et[s], u = Math.ceil(parseFloat(m) * 16 * 0.13), p = {
|
|
2355
2355
|
"--spinner-size": m,
|
|
2356
2356
|
"--spinner-line": `${u}px`
|
|
2357
|
-
},
|
|
2357
|
+
}, f = {
|
|
2358
2358
|
fontSize: h,
|
|
2359
|
-
marginBlockStart:
|
|
2359
|
+
marginBlockStart: C
|
|
2360
2360
|
};
|
|
2361
2361
|
return /* @__PURE__ */ e.createElement(
|
|
2362
2362
|
"span",
|
|
@@ -2368,7 +2368,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
2368
2368
|
...o
|
|
2369
2369
|
},
|
|
2370
2370
|
/* @__PURE__ */ e.createElement("span", { className: `${r}__icon` }),
|
|
2371
|
-
n && !t ? /* @__PURE__ */ e.createElement("span", { className: `${r}__label`, style:
|
|
2371
|
+
n && !t ? /* @__PURE__ */ e.createElement("span", { className: `${r}__label`, style: f }, c) : /* @__PURE__ */ e.createElement(X4, { label: c })
|
|
2372
2372
|
);
|
|
2373
2373
|
}, Ae = Te(
|
|
2374
2374
|
({
|
|
@@ -2384,14 +2384,14 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
2384
2384
|
isWorking: i = !1,
|
|
2385
2385
|
label: m,
|
|
2386
2386
|
onClick: h,
|
|
2387
|
-
size:
|
|
2387
|
+
size: C = "s",
|
|
2388
2388
|
tooltipText: u,
|
|
2389
2389
|
variant: p = "primary",
|
|
2390
|
-
...
|
|
2390
|
+
...f
|
|
2391
2391
|
}, b) => {
|
|
2392
|
-
const v = "pds-button", E = `${v}--${
|
|
2392
|
+
const v = "pds-button", E = `${v}--${C}`, g = `${v}--${p}`, _ = o ? `${v}--full-width` : null, N = r ? `${v}--loading` : null, z = r ? "pds-pulse" : null;
|
|
2393
2393
|
let w, k;
|
|
2394
|
-
switch (
|
|
2394
|
+
switch (C) {
|
|
2395
2395
|
case "xs":
|
|
2396
2396
|
w = "s", k = "s";
|
|
2397
2397
|
break;
|
|
@@ -2438,7 +2438,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
2438
2438
|
disabled: c || r || i,
|
|
2439
2439
|
onClick: h,
|
|
2440
2440
|
type: l,
|
|
2441
|
-
...
|
|
2441
|
+
...f
|
|
2442
2442
|
},
|
|
2443
2443
|
i && !r && /* @__PURE__ */ e.createElement(
|
|
2444
2444
|
p2,
|
|
@@ -2463,30 +2463,30 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
2463
2463
|
variant: r = "primary",
|
|
2464
2464
|
...d
|
|
2465
2465
|
}) => {
|
|
2466
|
-
const i = "pds-button-link", m = "pds-button", h = `${m}--${s}`,
|
|
2466
|
+
const i = "pds-button-link", m = "pds-button", h = `${m}--${s}`, C = `${m}--${r}`, u = $([
|
|
2467
2467
|
m,
|
|
2468
2468
|
h,
|
|
2469
|
-
|
|
2469
|
+
C
|
|
2470
2470
|
]), p = $e(n) ? n.props.children : null;
|
|
2471
|
-
let
|
|
2471
|
+
let f;
|
|
2472
2472
|
switch (s) {
|
|
2473
2473
|
case "xs":
|
|
2474
|
-
|
|
2474
|
+
f = "s";
|
|
2475
2475
|
break;
|
|
2476
2476
|
case "s":
|
|
2477
|
-
|
|
2477
|
+
f = "m";
|
|
2478
2478
|
break;
|
|
2479
2479
|
case "m":
|
|
2480
|
-
|
|
2480
|
+
f = "m";
|
|
2481
2481
|
break;
|
|
2482
2482
|
case "l":
|
|
2483
|
-
|
|
2483
|
+
f = "m";
|
|
2484
2484
|
break;
|
|
2485
2485
|
case "xl":
|
|
2486
|
-
|
|
2486
|
+
f = "l";
|
|
2487
2487
|
break;
|
|
2488
2488
|
default:
|
|
2489
|
-
|
|
2489
|
+
f = "m";
|
|
2490
2490
|
break;
|
|
2491
2491
|
}
|
|
2492
2492
|
const b = /* @__PURE__ */ e.createElement(
|
|
@@ -2495,7 +2495,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
2495
2495
|
key: c,
|
|
2496
2496
|
className: `${i}__icon`,
|
|
2497
2497
|
iconName: c,
|
|
2498
|
-
size:
|
|
2498
|
+
size: f
|
|
2499
2499
|
}
|
|
2500
2500
|
);
|
|
2501
2501
|
let v = [p];
|
|
@@ -2519,7 +2519,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
2519
2519
|
}
|
|
2520
2520
|
) : /* @__PURE__ */ e.createElement("span", { className: $([i, a ?? ""]), ...d }, E);
|
|
2521
2521
|
}, at = (a, l) => {
|
|
2522
|
-
const [t, c] =
|
|
2522
|
+
const [t, c] = q(!1), n = l?.duration;
|
|
2523
2523
|
return ae(() => {
|
|
2524
2524
|
let o;
|
|
2525
2525
|
return t && n && (o = setTimeout(() => {
|
|
@@ -2548,8 +2548,8 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
2548
2548
|
size: i = "s",
|
|
2549
2549
|
variant: m = "standard",
|
|
2550
2550
|
...h
|
|
2551
|
-
},
|
|
2552
|
-
const u = "pds-icon-button", p = i !== "s" ? `${u}--${i}` : null,
|
|
2551
|
+
}, C) => {
|
|
2552
|
+
const u = "pds-icon-button", p = i !== "s" ? `${u}--${i}` : null, f = m !== "standard" ? `${u}--${m}` : null, b = n ? `${u}--has-border` : null, v = {
|
|
2553
2553
|
fadeOut: `${u}--fadeOut`,
|
|
2554
2554
|
hide: `${u}--hide`,
|
|
2555
2555
|
scaleIn: `${u}--scaleIn`
|
|
@@ -2607,12 +2607,12 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
2607
2607
|
return /* @__PURE__ */ e.createElement(
|
|
2608
2608
|
"button",
|
|
2609
2609
|
{
|
|
2610
|
-
ref:
|
|
2610
|
+
ref: C,
|
|
2611
2611
|
"aria-label": a,
|
|
2612
2612
|
className: $([
|
|
2613
2613
|
u,
|
|
2614
2614
|
p,
|
|
2615
|
-
|
|
2615
|
+
f,
|
|
2616
2616
|
b,
|
|
2617
2617
|
t
|
|
2618
2618
|
]),
|
|
@@ -2691,7 +2691,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
2691
2691
|
disabled: t,
|
|
2692
2692
|
label: c
|
|
2693
2693
|
}) => {
|
|
2694
|
-
const [n, s] =
|
|
2694
|
+
const [n, s] = q(!1), o = "pds-nav-accordion";
|
|
2695
2695
|
return /* @__PURE__ */ e.createElement("div", { className: $([o, l ?? ""]) }, /* @__PURE__ */ e.createElement(
|
|
2696
2696
|
"button",
|
|
2697
2697
|
{
|
|
@@ -2767,9 +2767,9 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
2767
2767
|
role: i = "menu",
|
|
2768
2768
|
selectedIndex: m = null,
|
|
2769
2769
|
variant: h = "default",
|
|
2770
|
-
virtual:
|
|
2770
|
+
virtual: C = !1
|
|
2771
2771
|
} = {}) => {
|
|
2772
|
-
const [u, p] =
|
|
2772
|
+
const [u, p] = q(!1), [f, b] = q(null), v = de([]), E = h === "input", g = () => {
|
|
2773
2773
|
const Z = [];
|
|
2774
2774
|
return E ? Z.push(
|
|
2775
2775
|
xe(({ placement: B }) => B.startsWith("top") ? 16 : 0)
|
|
@@ -2807,16 +2807,16 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
2807
2807
|
}), L = z1(_, {
|
|
2808
2808
|
enabled: t,
|
|
2809
2809
|
listRef: v,
|
|
2810
|
-
activeIndex:
|
|
2810
|
+
activeIndex: f,
|
|
2811
2811
|
onNavigate: b,
|
|
2812
|
-
virtual:
|
|
2812
|
+
virtual: C,
|
|
2813
2813
|
loop: !0,
|
|
2814
2814
|
allowEscape: a,
|
|
2815
|
-
focusItemOnHover: !
|
|
2815
|
+
focusItemOnHover: !C
|
|
2816
2816
|
}), D = i4(_, {
|
|
2817
2817
|
enabled: s,
|
|
2818
2818
|
listRef: v,
|
|
2819
|
-
activeIndex:
|
|
2819
|
+
activeIndex: f,
|
|
2820
2820
|
selectedIndex: m,
|
|
2821
2821
|
onMatch: (Z) => {
|
|
2822
2822
|
u || p(!0), b(Z);
|
|
@@ -2824,7 +2824,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
2824
2824
|
findMatch: lt
|
|
2825
2825
|
}), { getFloatingProps: H, getItemProps: O, getReferenceProps: S } = Ze(
|
|
2826
2826
|
[w, k, P, M, L, D]
|
|
2827
|
-
), { isMounted: Y, styles:
|
|
2827
|
+
), { isMounted: Y, styles: j } = Ke(
|
|
2828
2828
|
_,
|
|
2829
2829
|
n ? {
|
|
2830
2830
|
duration: { open: 300, close: 150 },
|
|
@@ -2836,7 +2836,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
2836
2836
|
}
|
|
2837
2837
|
);
|
|
2838
2838
|
return {
|
|
2839
|
-
activeIndex:
|
|
2839
|
+
activeIndex: f,
|
|
2840
2840
|
floatingStyles: N,
|
|
2841
2841
|
getFloatingProps: H,
|
|
2842
2842
|
getItemProps: O,
|
|
@@ -2847,7 +2847,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
2847
2847
|
refs: z,
|
|
2848
2848
|
setActiveIndex: b,
|
|
2849
2849
|
setIsOpen: p,
|
|
2850
|
-
transitionStyles:
|
|
2850
|
+
transitionStyles: j
|
|
2851
2851
|
};
|
|
2852
2852
|
}, j1 = ({
|
|
2853
2853
|
className: a,
|
|
@@ -2862,12 +2862,12 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
2862
2862
|
onClick: i,
|
|
2863
2863
|
size: m = "s",
|
|
2864
2864
|
testId: h,
|
|
2865
|
-
undefinedLabel:
|
|
2865
|
+
undefinedLabel: C = "Unlabeled group",
|
|
2866
2866
|
variant: u = "primary",
|
|
2867
2867
|
...p
|
|
2868
2868
|
}) => {
|
|
2869
2869
|
const {
|
|
2870
|
-
activeIndex:
|
|
2870
|
+
activeIndex: f,
|
|
2871
2871
|
floatingStyles: b,
|
|
2872
2872
|
getFloatingProps: v,
|
|
2873
2873
|
getItemProps: E,
|
|
@@ -2884,7 +2884,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
2884
2884
|
enableTypeahead: !0,
|
|
2885
2885
|
placement: d === "end" ? "bottom-end" : "bottom-start",
|
|
2886
2886
|
role: "menu"
|
|
2887
|
-
}), M = "pds-menu-button", L = n, [D] =
|
|
2887
|
+
}), M = "pds-menu-button", L = n, [D] = q(`menu-button-${n}`), H = [], O = [];
|
|
2888
2888
|
((y) => {
|
|
2889
2889
|
y.forEach((X) => {
|
|
2890
2890
|
!Qe(X) && !Je(X) && !o2(X) && O.push(X);
|
|
@@ -2892,7 +2892,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
2892
2892
|
})(r);
|
|
2893
2893
|
const Y = (y) => {
|
|
2894
2894
|
"disabled" in y && y.disabled || ("callback" in y && y.callback && y.callback(y), k(!1));
|
|
2895
|
-
},
|
|
2895
|
+
}, j = () => {
|
|
2896
2896
|
i && i();
|
|
2897
2897
|
}, Z = (y, X, K = "", ne = "") => {
|
|
2898
2898
|
const U = K ? `-group-${K}` : "", A = L + U + "-item-" + (X + 1), ee = "id" in y && y.id ? y.id : A;
|
|
@@ -2912,7 +2912,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
2912
2912
|
if (o2(y))
|
|
2913
2913
|
return /* @__PURE__ */ e.createElement("li", { key: ee, role: "presentation" }, y.nodeContent);
|
|
2914
2914
|
if (Ve(y) || "label" in y && y.label) {
|
|
2915
|
-
const oe = O.indexOf(y), Q =
|
|
2915
|
+
const oe = O.indexOf(y), Q = f === oe, me = "isCritical" in y && y.isCritical, pe = "criticalLabel" in y ? y.criticalLabel : void 0, fe = [];
|
|
2916
2916
|
if ("label" in y && y.label && fe.push(y.label), Ve(y) && y.linkContent) {
|
|
2917
2917
|
const ie = y.linkContent;
|
|
2918
2918
|
fe.push(ie.props.children);
|
|
@@ -3072,7 +3072,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
3072
3072
|
...v()
|
|
3073
3073
|
},
|
|
3074
3074
|
A.map((ee, oe) => {
|
|
3075
|
-
const Q = H[oe], me = "isHeading" in ee[0] && ee[0].isHeading, pe = me ? `${L}-group-${Q}-heading` : "", fe = `${L}-group-${Q}`, Ce = me ? null : `${
|
|
3075
|
+
const Q = H[oe], me = "isHeading" in ee[0] && ee[0].isHeading, pe = me ? `${L}-group-${Q}-heading` : "", fe = `${L}-group-${Q}`, Ce = me ? null : `${C} ${oe + 1}`;
|
|
3076
3076
|
return /* @__PURE__ */ e.createElement(
|
|
3077
3077
|
"ul",
|
|
3078
3078
|
{
|
|
@@ -3140,7 +3140,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
3140
3140
|
type: "button",
|
|
3141
3141
|
variant: u,
|
|
3142
3142
|
...g({
|
|
3143
|
-
onClick:
|
|
3143
|
+
onClick: j
|
|
3144
3144
|
})
|
|
3145
3145
|
}
|
|
3146
3146
|
)), t === "icon-only") {
|
|
@@ -3162,7 +3162,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
3162
3162
|
type: "button",
|
|
3163
3163
|
variant: "standard",
|
|
3164
3164
|
...g({
|
|
3165
|
-
onClick:
|
|
3165
|
+
onClick: j
|
|
3166
3166
|
})
|
|
3167
3167
|
}
|
|
3168
3168
|
);
|
|
@@ -3191,8 +3191,8 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
3191
3191
|
value: d,
|
|
3192
3192
|
...i
|
|
3193
3193
|
}) => {
|
|
3194
|
-
const m = "pds-segmented-button", h = t ? "pds-is-disabled" : null,
|
|
3195
|
-
|
|
3194
|
+
const m = "pds-segmented-button", h = t ? "pds-is-disabled" : null, C = `${m}--${r}`, u = r === "s" ? "s" : "m", p = typeof d < "u", f = typeof l < "u", [b, v] = q(
|
|
3195
|
+
f ? l : ""
|
|
3196
3196
|
), E = (g) => {
|
|
3197
3197
|
v(g.target.value), s && s(g.target.value);
|
|
3198
3198
|
};
|
|
@@ -3202,7 +3202,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
3202
3202
|
{
|
|
3203
3203
|
className: $([
|
|
3204
3204
|
m,
|
|
3205
|
-
|
|
3205
|
+
C,
|
|
3206
3206
|
h,
|
|
3207
3207
|
a ?? ""
|
|
3208
3208
|
]),
|
|
@@ -3268,8 +3268,8 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
3268
3268
|
...r
|
|
3269
3269
|
}) => {
|
|
3270
3270
|
const d = "pds-split-button", i = `${d}--${o}`, m = a[0], h = a.slice(1);
|
|
3271
|
-
let
|
|
3272
|
-
return "isLink" in m && m.isLink === !0 ?
|
|
3271
|
+
let C = null;
|
|
3272
|
+
return "isLink" in m && m.isLink === !0 ? C = /* @__PURE__ */ e.createElement(
|
|
3273
3273
|
tt,
|
|
3274
3274
|
{
|
|
3275
3275
|
className: `${d}__primary-action`,
|
|
@@ -3279,7 +3279,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
3279
3279
|
size: s,
|
|
3280
3280
|
variant: o
|
|
3281
3281
|
}
|
|
3282
|
-
) : "label" in m && (
|
|
3282
|
+
) : "label" in m && (C = /* @__PURE__ */ e.createElement(
|
|
3283
3283
|
Ae,
|
|
3284
3284
|
{
|
|
3285
3285
|
className: `${d}__primary-action`,
|
|
@@ -3296,7 +3296,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
3296
3296
|
id: c,
|
|
3297
3297
|
...r
|
|
3298
3298
|
},
|
|
3299
|
-
|
|
3299
|
+
C,
|
|
3300
3300
|
/* @__PURE__ */ e.createElement(
|
|
3301
3301
|
j1,
|
|
3302
3302
|
{
|
|
@@ -3709,31 +3709,31 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
3709
3709
|
isWorking: i,
|
|
3710
3710
|
label: m,
|
|
3711
3711
|
linkContent: h,
|
|
3712
|
-
onClick:
|
|
3712
|
+
onClick: C,
|
|
3713
3713
|
tooltipText: u,
|
|
3714
3714
|
...p
|
|
3715
3715
|
}) => {
|
|
3716
|
-
const
|
|
3716
|
+
const f = "pds-utility-button", b = r ? "pds-pulse" : null, v = (k) => n && !i ? /* @__PURE__ */ e.createElement(F, { key: k, className: `${f}__icon`, iconName: n }) : null, E = () => i ? /* @__PURE__ */ e.createElement(
|
|
3717
3717
|
p2,
|
|
3718
3718
|
{
|
|
3719
3719
|
key: "spinner",
|
|
3720
|
-
className: `${
|
|
3720
|
+
className: `${f}__spinner`,
|
|
3721
3721
|
colorType: "monochromatic",
|
|
3722
3722
|
size: "s"
|
|
3723
3723
|
}
|
|
3724
3724
|
) : null, g = (k) => {
|
|
3725
3725
|
const P = [];
|
|
3726
3726
|
return s === "before" && P.push(v("icon-before")), P.push(E()), P.push(
|
|
3727
|
-
/* @__PURE__ */ e.createElement("span", { key: "label", className: `${
|
|
3727
|
+
/* @__PURE__ */ e.createElement("span", { key: "label", className: `${f}__label` }, k)
|
|
3728
3728
|
), s === "after" && P.push(v("icon-after")), P.filter(Boolean);
|
|
3729
3729
|
}, _ = h && $e(h) ? h.props.children : m, N = $([
|
|
3730
|
-
|
|
3731
|
-
c ? `${
|
|
3732
|
-
o ? `${
|
|
3733
|
-
t ? `${
|
|
3734
|
-
r ? `${
|
|
3735
|
-
i ? `${
|
|
3736
|
-
d ? `${
|
|
3730
|
+
f,
|
|
3731
|
+
c ? `${f}--border` : null,
|
|
3732
|
+
o ? `${f}--critical` : null,
|
|
3733
|
+
t ? `${f}--disabled` : null,
|
|
3734
|
+
r ? `${f}--loading` : null,
|
|
3735
|
+
i ? `${f}--working` : null,
|
|
3736
|
+
d ? `${f}--monospace` : null,
|
|
3737
3737
|
l ?? ""
|
|
3738
3738
|
]), z = (k) => u ? /* @__PURE__ */ e.createElement(we, { content: u, customTrigger: k }) : k;
|
|
3739
3739
|
if (h && !t) {
|
|
@@ -3741,7 +3741,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
3741
3741
|
h,
|
|
3742
3742
|
Object.assign({}, h.props, {
|
|
3743
3743
|
className: $([
|
|
3744
|
-
`${
|
|
3744
|
+
`${f}__button`,
|
|
3745
3745
|
b,
|
|
3746
3746
|
h.props.className ?? ""
|
|
3747
3747
|
]),
|
|
@@ -3754,8 +3754,8 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
3754
3754
|
"button",
|
|
3755
3755
|
{
|
|
3756
3756
|
"aria-disabled": t || r || i,
|
|
3757
|
-
className: $([`${
|
|
3758
|
-
onClick: t ? void 0 :
|
|
3757
|
+
className: $([`${f}__button`, b]),
|
|
3758
|
+
onClick: t ? void 0 : C,
|
|
3759
3759
|
type: "button",
|
|
3760
3760
|
...a
|
|
3761
3761
|
},
|
|
@@ -3833,11 +3833,11 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
3833
3833
|
const i = "pds-card-select-group";
|
|
3834
3834
|
let m = `${i}__legend`;
|
|
3835
3835
|
n === "center" && (m = `${i}__legend ${i}__legend--center`), n === "hidden" && (m = `${i}__legend visually-hidden`);
|
|
3836
|
-
const [h,
|
|
3837
|
-
|
|
3838
|
-
}, p = r.length,
|
|
3836
|
+
const [h, C] = q(l), u = (g) => {
|
|
3837
|
+
C(g.currentTarget.value), o && o(g.currentTarget.value);
|
|
3838
|
+
}, p = r.length, f = "pds-grid-item", b = "pds-grid-item pds-grid-item--sm-4 pds-grid-item--md-6", v = "pds-grid-item pds-grid-item--sm-4 pds-grid-item--md-4";
|
|
3839
3839
|
let E = "";
|
|
3840
|
-
return s === "twoAcross" ? E = b : s === "threeAcross" ? E = v : s === "auto" && (p === 1 ? E =
|
|
3840
|
+
return s === "twoAcross" ? E = b : s === "threeAcross" ? E = v : s === "auto" && (p === 1 ? E = f : p % 3 === 0 ? E = v : p % 2 === 0 ? E = b : E = v), /* @__PURE__ */ e.createElement(
|
|
3841
3841
|
"fieldset",
|
|
3842
3842
|
{
|
|
3843
3843
|
className: $([i, a]),
|
|
@@ -3930,10 +3930,10 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
3930
3930
|
message: i,
|
|
3931
3931
|
onBlur: m,
|
|
3932
3932
|
onFocus: h,
|
|
3933
|
-
onOptionSelect:
|
|
3933
|
+
onOptionSelect: C,
|
|
3934
3934
|
options: u,
|
|
3935
3935
|
required: p = !1,
|
|
3936
|
-
showLabel:
|
|
3936
|
+
showLabel: f = !0,
|
|
3937
3937
|
size: b = "s",
|
|
3938
3938
|
tooltipText: v = null,
|
|
3939
3939
|
validationMessage: E,
|
|
@@ -3944,7 +3944,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
3944
3944
|
const z = Be(o), w = "pds-select", k = a ? `${w}--auto-width` : null, P = b !== "s" ? `${w}--${b}` : null, M = c ? te.disabled : null, L = p && !c ? te.required : null, D = g === "error" ? te.error : null, H = g === "success" ? te.success : null;
|
|
3945
3945
|
let O = null;
|
|
3946
3946
|
g === "error" && (O = "error"), g === "success" && (O = "success");
|
|
3947
|
-
const S = E || i, Y = typeof _ < "u",
|
|
3947
|
+
const S = E || i, Y = typeof _ < "u", j = typeof t < "u", B = ((ue) => ue.reduce((_e, R) => m1(R) ? [..._e, ...R.options] : [..._e, R], []))(u), I = (ue) => B.findIndex((_e) => _e.value === ue), V = Y && I(_) >= 0 ? I(_) : null, x = j ? I(t) : null, G = V || x, [W, y] = q(
|
|
3948
3948
|
G ?? null
|
|
3949
3949
|
), {
|
|
3950
3950
|
activeIndex: X,
|
|
@@ -3965,7 +3965,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
3965
3965
|
variant: "input"
|
|
3966
3966
|
}), fe = W !== null ? B[W]?.label : void 0, Ce = W !== null ? B[W]?.icon : void 0, ge = W !== null ? B[W]?.value : void 0, se = (ue) => {
|
|
3967
3967
|
const _e = B[ue];
|
|
3968
|
-
Y || (y(ue), me(!1)),
|
|
3968
|
+
Y || (y(ue), me(!1)), C && C(_e);
|
|
3969
3969
|
};
|
|
3970
3970
|
ae(() => {
|
|
3971
3971
|
if (Y) {
|
|
@@ -4083,7 +4083,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
4083
4083
|
id: s,
|
|
4084
4084
|
label: r,
|
|
4085
4085
|
required: p,
|
|
4086
|
-
showLabel:
|
|
4086
|
+
showLabel: f,
|
|
4087
4087
|
tooltipText: v
|
|
4088
4088
|
}
|
|
4089
4089
|
),
|
|
@@ -4264,7 +4264,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
4264
4264
|
const c = getComputedStyle(a);
|
|
4265
4265
|
return ot[l].map((s, o) => c.getPropertyValue(s).trim() || t[o]);
|
|
4266
4266
|
}, Y1 = (a, l = "categorical") => {
|
|
4267
|
-
const [t, c] =
|
|
4267
|
+
const [t, c] = q(K1[l]);
|
|
4268
4268
|
return ae(() => {
|
|
4269
4269
|
if (!a.current) return;
|
|
4270
4270
|
c(u1(a.current, l));
|
|
@@ -4305,8 +4305,8 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
4305
4305
|
if (s === "table") {
|
|
4306
4306
|
const d = l.map(
|
|
4307
4307
|
(i) => a.reduce((m, h) => {
|
|
4308
|
-
const
|
|
4309
|
-
return m + (typeof
|
|
4308
|
+
const C = h[i.dataKey];
|
|
4309
|
+
return m + (typeof C == "number" ? C : 0);
|
|
4310
4310
|
}, 0)
|
|
4311
4311
|
);
|
|
4312
4312
|
return /* @__PURE__ */ e.createElement("div", { className: `${o} ${o}--table` }, /* @__PURE__ */ e.createElement("div", { className: `${o}__table-header` }, /* @__PURE__ */ e.createElement("span", { className: `${o}__table-header-label` }, "Top sources"), /* @__PURE__ */ e.createElement("span", { className: `${o}__table-header-value` }, c)), l.map((i, m) => /* @__PURE__ */ e.createElement("div", { key: i.dataKey, className: `${o}__table-row` }, /* @__PURE__ */ e.createElement("span", { className: `${o}__table-row-label` }, /* @__PURE__ */ e.createElement(
|
|
@@ -4339,14 +4339,14 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
4339
4339
|
textSize: r = "m",
|
|
4340
4340
|
...d
|
|
4341
4341
|
}) => {
|
|
4342
|
-
const i = "pds-skeleton", m = `${i}--${c}`, h = t ? `pds-pulse pds-pulse--${l}` : `${i}--${l}`,
|
|
4343
|
-
let
|
|
4342
|
+
const i = "pds-skeleton", m = `${i}--${c}`, h = t ? `pds-pulse pds-pulse--${l}` : `${i}--${l}`, C = ["text-block", "code-block", "code-block-prefix"], u = n?.height ? p1(n.height) : "1rem", p = n?.width ? p1(n.width) : "100%";
|
|
4343
|
+
let f = {
|
|
4344
4344
|
height: u,
|
|
4345
4345
|
width: p
|
|
4346
4346
|
};
|
|
4347
|
-
c === "circular" && (
|
|
4348
|
-
...
|
|
4349
|
-
width:
|
|
4347
|
+
c === "circular" && (f = {
|
|
4348
|
+
...f,
|
|
4349
|
+
width: f.height
|
|
4350
4350
|
});
|
|
4351
4351
|
const b = /* @__PURE__ */ e.createElement(
|
|
4352
4352
|
"div",
|
|
@@ -4357,7 +4357,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
4357
4357
|
m,
|
|
4358
4358
|
a ?? ""
|
|
4359
4359
|
]),
|
|
4360
|
-
style:
|
|
4360
|
+
style: f,
|
|
4361
4361
|
...d
|
|
4362
4362
|
}
|
|
4363
4363
|
), g = Math.max(1, Math.min(o, c === "code-block" || c === "code-block-prefix" ? 15 : 5));
|
|
@@ -4378,7 +4378,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
4378
4378
|
const D = Math.ceil(g / 2), H = Math.max(0, D - 1);
|
|
4379
4379
|
if (M < H)
|
|
4380
4380
|
return 1;
|
|
4381
|
-
const O = g - H, S = M - H, Y = 1 - 0.1,
|
|
4381
|
+
const O = g - H, S = M - H, Y = 1 - 0.1, j = S / O, Z = 1 - Y * j;
|
|
4382
4382
|
return Math.max(0.1, Z);
|
|
4383
4383
|
}, P = /* @__PURE__ */ e.createElement(
|
|
4384
4384
|
"div",
|
|
@@ -4433,7 +4433,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
4433
4433
|
)
|
|
4434
4434
|
))
|
|
4435
4435
|
);
|
|
4436
|
-
return
|
|
4436
|
+
return C.includes(c) ? P : b;
|
|
4437
4437
|
}, it = () => /* @__PURE__ */ e.createElement("div", { className: "pds-chart__skeleton-legend pds-chart__skeleton-legend--inline" }, /* @__PURE__ */ e.createElement(Ge, { shape: "rounded", size: { height: 0.75, width: 5 } }), /* @__PURE__ */ e.createElement(Ge, { shape: "rounded", size: { height: 0.75, width: 5 } }), /* @__PURE__ */ e.createElement(Ge, { shape: "rounded", size: { height: 0.75, width: 5 } })), dt = () => /* @__PURE__ */ e.createElement("div", { className: "pds-chart__skeleton-legend pds-chart__skeleton-legend--table" }, /* @__PURE__ */ e.createElement(Ge, { shape: "rounded", size: { height: 4, width: "100%" } })), J1 = ({
|
|
4438
4438
|
height: a,
|
|
4439
4439
|
legendVariant: l = "inline",
|
|
@@ -4454,10 +4454,10 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
4454
4454
|
layout: i = "horizontal",
|
|
4455
4455
|
legendVariant: m = "inline",
|
|
4456
4456
|
onTimePeriodChange: h,
|
|
4457
|
-
selectedTimePeriod:
|
|
4457
|
+
selectedTimePeriod: C,
|
|
4458
4458
|
series: u = [],
|
|
4459
4459
|
showAccessibleTable: p,
|
|
4460
|
-
showAxisLines:
|
|
4460
|
+
showAxisLines: f,
|
|
4461
4461
|
showGrid: b,
|
|
4462
4462
|
showLegend: v,
|
|
4463
4463
|
showTooltip: E,
|
|
@@ -4477,11 +4477,11 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
4477
4477
|
emptyStateHeading: O = "No data available",
|
|
4478
4478
|
emptyStateMessage: S,
|
|
4479
4479
|
legendTableHeader: Y,
|
|
4480
|
-
loadingLabel:
|
|
4480
|
+
loadingLabel: j = "Loading chart data"
|
|
4481
4481
|
} = d, Z = de(null), B = W1(
|
|
4482
4482
|
n,
|
|
4483
4483
|
Y1(Z, n)
|
|
4484
|
-
), I = l ?? (r ? 60 : 360), V = t ?? (r ? 60 : void 0), x = b ?? !r, G =
|
|
4484
|
+
), I = l ?? (r ? 60 : 360), V = t ?? (r ? 60 : void 0), x = b ?? !r, G = f ?? !r, W = v ?? !r, y = E ?? !r, X = p ?? !0, [K, ne] = q(null), U = de(K);
|
|
4485
4485
|
K && (U.current = K);
|
|
4486
4486
|
const A = de({
|
|
4487
4487
|
getBoundingClientRect: () => ({
|
|
@@ -4529,7 +4529,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
4529
4529
|
{
|
|
4530
4530
|
ref: Z,
|
|
4531
4531
|
"aria-busy": "true",
|
|
4532
|
-
"aria-label":
|
|
4532
|
+
"aria-label": j,
|
|
4533
4533
|
className: $([
|
|
4534
4534
|
Ce,
|
|
4535
4535
|
`${Ce}--loading`,
|
|
@@ -4589,7 +4589,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
4589
4589
|
value: le.value
|
|
4590
4590
|
})),
|
|
4591
4591
|
showLabel: !1,
|
|
4592
|
-
value:
|
|
4592
|
+
value: C
|
|
4593
4593
|
}
|
|
4594
4594
|
)),
|
|
4595
4595
|
/* @__PURE__ */ e.createElement(
|
|
@@ -4772,10 +4772,10 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
4772
4772
|
legendVariant: i = "inline",
|
|
4773
4773
|
lineStyle: m = "smooth",
|
|
4774
4774
|
onTimePeriodChange: h,
|
|
4775
|
-
referenceLines:
|
|
4775
|
+
referenceLines: C,
|
|
4776
4776
|
selectedTimePeriod: u,
|
|
4777
4777
|
series: p = [],
|
|
4778
|
-
showAccessibleTable:
|
|
4778
|
+
showAccessibleTable: f,
|
|
4779
4779
|
showAxisLines: b,
|
|
4780
4780
|
showDataPoints: v,
|
|
4781
4781
|
showGrid: E,
|
|
@@ -4795,12 +4795,12 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
4795
4795
|
accessibleTableDescription: O = "Line chart data",
|
|
4796
4796
|
emptyStateHeading: S = "No data available",
|
|
4797
4797
|
emptyStateMessage: Y,
|
|
4798
|
-
legendTableHeader:
|
|
4798
|
+
legendTableHeader: j,
|
|
4799
4799
|
loadingLabel: Z = "Loading chart data"
|
|
4800
4800
|
} = d, B = de(null), I = W1(
|
|
4801
4801
|
n,
|
|
4802
4802
|
Y1(B, n)
|
|
4803
|
-
), V = l ?? (r ? 60 : 360), x = t ?? (r ? 60 : void 0), G = E ?? !r, W = b ?? !r, y = g ?? !r, X = _ ?? !r, K = v ?? !r, ne =
|
|
4803
|
+
), V = l ?? (r ? 60 : 360), x = t ?? (r ? 60 : void 0), G = E ?? !r, W = b ?? !r, y = g ?? !r, X = _ ?? !r, K = v ?? !r, ne = f ?? !0, U = "pds-line-chart";
|
|
4804
4804
|
return o ? /* @__PURE__ */ e.createElement(
|
|
4805
4805
|
"div",
|
|
4806
4806
|
{
|
|
@@ -4977,7 +4977,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
4977
4977
|
type: m === "straight" ? "linear" : "monotone"
|
|
4978
4978
|
}
|
|
4979
4979
|
)),
|
|
4980
|
-
!r &&
|
|
4980
|
+
!r && C?.map((A, ee) => {
|
|
4981
4981
|
const oe = A.color ?? "var(--pds-color-fg-default-secondary)";
|
|
4982
4982
|
return /* @__PURE__ */ e.createElement(
|
|
4983
4983
|
n1,
|
|
@@ -5044,7 +5044,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
5044
5044
|
data: s,
|
|
5045
5045
|
series: p,
|
|
5046
5046
|
seriesColors: I,
|
|
5047
|
-
tableHeader:
|
|
5047
|
+
tableHeader: j,
|
|
5048
5048
|
valueFormatter: M,
|
|
5049
5049
|
variant: i
|
|
5050
5050
|
}
|
|
@@ -5091,22 +5091,22 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
5091
5091
|
...d
|
|
5092
5092
|
},
|
|
5093
5093
|
t && /* @__PURE__ */ e.createElement("div", { className: `${i}__intro` }, t),
|
|
5094
|
-
l && /* @__PURE__ */ e.createElement("ul", { className: `${i}__list` }, l.map((
|
|
5094
|
+
l && /* @__PURE__ */ e.createElement("ul", { className: `${i}__list` }, l.map((C, u) => /* @__PURE__ */ e.createElement(
|
|
5095
5095
|
"li",
|
|
5096
5096
|
{
|
|
5097
5097
|
key: u,
|
|
5098
|
-
className: `${i}__list-item ${i}__list-item--${
|
|
5098
|
+
className: `${i}__list-item ${i}__list-item--${C.type}`
|
|
5099
5099
|
},
|
|
5100
5100
|
/* @__PURE__ */ e.createElement("div", { className: `${i}__item-icon-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
5101
5101
|
F,
|
|
5102
5102
|
{
|
|
5103
5103
|
className: `${i}__item-icon`,
|
|
5104
|
-
iconName: mt[
|
|
5104
|
+
iconName: mt[C.type],
|
|
5105
5105
|
size: o
|
|
5106
5106
|
}
|
|
5107
5107
|
)),
|
|
5108
|
-
n && /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, r[
|
|
5109
|
-
|
|
5108
|
+
n && /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, r[C.type], ":", " "),
|
|
5109
|
+
C.text
|
|
5110
5110
|
))),
|
|
5111
5111
|
c && /* @__PURE__ */ e.createElement("div", { className: `${i}__more-link` }, c)
|
|
5112
5112
|
);
|
|
@@ -5124,9 +5124,9 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
5124
5124
|
size: i = "m",
|
|
5125
5125
|
title: m,
|
|
5126
5126
|
width: h,
|
|
5127
|
-
...
|
|
5127
|
+
...C
|
|
5128
5128
|
}) => {
|
|
5129
|
-
const u = "pds-drawer", p = h ? null : `${u}--${i}`,
|
|
5129
|
+
const u = "pds-drawer", p = h ? null : `${u}--${i}`, f = `${u}--${r}`, b = h ? { width: h } : void 0, [v, E] = q(o), [g, _] = q(!1), N = de(null), { closeOverlay: z, openOverlay: w } = M2();
|
|
5130
5130
|
ae(() => {
|
|
5131
5131
|
o ? E(!0) : _(!1);
|
|
5132
5132
|
}, [o]), ae(() => {
|
|
@@ -5187,14 +5187,14 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
5187
5187
|
className: $([
|
|
5188
5188
|
u,
|
|
5189
5189
|
p,
|
|
5190
|
-
|
|
5190
|
+
f,
|
|
5191
5191
|
g ? `${u}--open` : null,
|
|
5192
5192
|
t
|
|
5193
5193
|
]),
|
|
5194
5194
|
onTransitionEnd: P,
|
|
5195
5195
|
role: "dialog",
|
|
5196
5196
|
style: b,
|
|
5197
|
-
...
|
|
5197
|
+
...C
|
|
5198
5198
|
},
|
|
5199
5199
|
/* @__PURE__ */ e.createElement("div", { className: `${u}__header` }, m && /* @__PURE__ */ e.createElement("div", { className: `${u}__title` }, m), s && /* @__PURE__ */ e.createElement(
|
|
5200
5200
|
h2,
|
|
@@ -5289,7 +5289,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
5289
5289
|
trailingIcon: i,
|
|
5290
5290
|
...m
|
|
5291
5291
|
}) => {
|
|
5292
|
-
const { activeIndex: h, getItemProps:
|
|
5292
|
+
const { activeIndex: h, getItemProps: C, listRef: u } = s1(), p = "pds-dropdown", f = h === s, b = f ? `${p}__item--focused` : null, v = o ? `${p}__item--active` : null, E = r ? `${p}__item--critical` : null, g = c ? `${p}__item--disabled` : null;
|
|
5293
5293
|
return /* @__PURE__ */ e.createElement(
|
|
5294
5294
|
"li",
|
|
5295
5295
|
{
|
|
@@ -5306,8 +5306,8 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
5306
5306
|
l ?? ""
|
|
5307
5307
|
]),
|
|
5308
5308
|
role: "menuitem",
|
|
5309
|
-
tabIndex:
|
|
5310
|
-
...
|
|
5309
|
+
tabIndex: f ? 0 : -1,
|
|
5310
|
+
...C({
|
|
5311
5311
|
onClick: c ? void 0 : d
|
|
5312
5312
|
}),
|
|
5313
5313
|
...m
|
|
@@ -5438,9 +5438,9 @@ const bt = ({
|
|
|
5438
5438
|
maxWidth: i = "1200px",
|
|
5439
5439
|
message: m,
|
|
5440
5440
|
video: h,
|
|
5441
|
-
...
|
|
5441
|
+
...C
|
|
5442
5442
|
}) => {
|
|
5443
|
-
const u = "pds-horizontal-empty-state", p = `${u}--${a}`,
|
|
5443
|
+
const u = "pds-horizontal-empty-state", p = `${u}--${a}`, f = d ? `${u}--panel` : null, b = h ? `${u}--video` : null, v = {
|
|
5444
5444
|
marginInlineStart: o,
|
|
5445
5445
|
width: r
|
|
5446
5446
|
};
|
|
@@ -5450,12 +5450,12 @@ const bt = ({
|
|
|
5450
5450
|
className: $([
|
|
5451
5451
|
u,
|
|
5452
5452
|
p,
|
|
5453
|
-
|
|
5453
|
+
f,
|
|
5454
5454
|
b,
|
|
5455
5455
|
l ?? ""
|
|
5456
5456
|
]),
|
|
5457
5457
|
style: { maxWidth: i },
|
|
5458
|
-
...
|
|
5458
|
+
...C
|
|
5459
5459
|
},
|
|
5460
5460
|
/* @__PURE__ */ e.createElement("div", { className: `${u}__content` }, /* @__PURE__ */ e.createElement(
|
|
5461
5461
|
c2,
|
|
@@ -5913,9 +5913,9 @@ const bt = ({
|
|
|
5913
5913
|
const r = "pds-identity-block", d = t ? `${r}--collapsed` : null, i = c ? `${r}--single-line` : null, m = a ? {
|
|
5914
5914
|
...a,
|
|
5915
5915
|
size: c ? "s" : "m"
|
|
5916
|
-
} : void 0, h = s && !c,
|
|
5917
|
-
|
|
5918
|
-
|
|
5916
|
+
} : void 0, h = s && !c, C = de(null), u = de(null), [p, f] = q(!1), [b, v] = q(!1), E = ye(() => {
|
|
5917
|
+
C.current && f(
|
|
5918
|
+
C.current.scrollWidth > C.current.clientWidth
|
|
5919
5919
|
), u.current && v(
|
|
5920
5920
|
u.current.scrollWidth > u.current.clientWidth
|
|
5921
5921
|
);
|
|
@@ -5952,7 +5952,7 @@ const bt = ({
|
|
|
5952
5952
|
(n || h) && /* @__PURE__ */ e.createElement("div", { className: `${r}__text` }, /* @__PURE__ */ e.createElement(
|
|
5953
5953
|
"span",
|
|
5954
5954
|
{
|
|
5955
|
-
ref:
|
|
5955
|
+
ref: C,
|
|
5956
5956
|
className: `${r}__primary-text`,
|
|
5957
5957
|
title: p ? n : void 0
|
|
5958
5958
|
},
|
|
@@ -5981,10 +5981,10 @@ const bt = ({
|
|
|
5981
5981
|
message: i,
|
|
5982
5982
|
name: m,
|
|
5983
5983
|
nestingLevel: h = 0,
|
|
5984
|
-
onBlur:
|
|
5984
|
+
onBlur: C,
|
|
5985
5985
|
onChange: u,
|
|
5986
5986
|
onFocus: p,
|
|
5987
|
-
required:
|
|
5987
|
+
required: f,
|
|
5988
5988
|
showLabel: b = !0,
|
|
5989
5989
|
size: v = "s",
|
|
5990
5990
|
validationMessage: E,
|
|
@@ -5992,8 +5992,8 @@ const bt = ({
|
|
|
5992
5992
|
value: _,
|
|
5993
5993
|
...N
|
|
5994
5994
|
}, z) => {
|
|
5995
|
-
const w = r ? { width: `${r / 16}rem` } : null, k = "pds-checkbox", P = c ? te.disabled : null, M = g === "error" ? te.error : null, L = h > 0 ? `${k}--indent-${h}` : null, D =
|
|
5996
|
-
|
|
5995
|
+
const w = r ? { width: `${r / 16}rem` } : null, k = "pds-checkbox", P = c ? te.disabled : null, M = g === "error" ? te.error : null, L = h > 0 ? `${k}--indent-${h}` : null, D = f && !c ? te.required : null, H = v !== "s" ? `${k}--${v}` : null, O = g === "success" ? te.success : null, S = E || i, Y = typeof a < "u", j = typeof t < "u", [Z, B] = q(
|
|
5996
|
+
j ? t : !1
|
|
5997
5997
|
), I = a || Z, V = (X) => {
|
|
5998
5998
|
Y || B(X.target.checked), u && u(X);
|
|
5999
5999
|
}, x = `${k}__box`, G = s ? null : I ? `${x}--checked` : null, W = s ? `${x}--indeterminate` : null, y = ye(() => {
|
|
@@ -6055,10 +6055,10 @@ const bt = ({
|
|
|
6055
6055
|
"aria-describedby": S ? `${n}__message` : null,
|
|
6056
6056
|
"aria-invalid": g === "error" ? !0 : null,
|
|
6057
6057
|
disabled: c,
|
|
6058
|
-
onBlur:
|
|
6058
|
+
onBlur: C,
|
|
6059
6059
|
onChange: V,
|
|
6060
6060
|
onFocus: p,
|
|
6061
|
-
required:
|
|
6061
|
+
required: f,
|
|
6062
6062
|
...o
|
|
6063
6063
|
}
|
|
6064
6064
|
), /* @__PURE__ */ e.createElement("label", { className: `${k}__label`, htmlFor: n }, /* @__PURE__ */ e.createElement(
|
|
@@ -6081,7 +6081,7 @@ const bt = ({
|
|
|
6081
6081
|
},
|
|
6082
6082
|
d,
|
|
6083
6083
|
" ",
|
|
6084
|
-
|
|
6084
|
+
f && !c && /* @__PURE__ */ e.createElement(O1, null)
|
|
6085
6085
|
))),
|
|
6086
6086
|
S && /* @__PURE__ */ e.createElement(
|
|
6087
6087
|
De,
|
|
@@ -6108,15 +6108,15 @@ const bt = ({
|
|
|
6108
6108
|
showLabel: i = !0,
|
|
6109
6109
|
tooltipText: m = null,
|
|
6110
6110
|
validationMessage: h,
|
|
6111
|
-
validationStatus:
|
|
6111
|
+
validationStatus: C,
|
|
6112
6112
|
...u
|
|
6113
6113
|
}) => {
|
|
6114
|
-
const p = s ? { width: `${s / 16}rem` } : null,
|
|
6114
|
+
const p = s ? { width: `${s / 16}rem` } : null, f = "pds-checkbox-group", b = t ? te.disabled : null, v = d && !t ? te.required : null, E = C === "error" ? te.error : null, g = C === "success" ? te.success : null, _ = h || r;
|
|
6115
6115
|
return /* @__PURE__ */ e.createElement(
|
|
6116
6116
|
"div",
|
|
6117
6117
|
{
|
|
6118
6118
|
className: $([
|
|
6119
|
-
|
|
6119
|
+
f,
|
|
6120
6120
|
b,
|
|
6121
6121
|
v,
|
|
6122
6122
|
E,
|
|
@@ -6126,7 +6126,7 @@ const bt = ({
|
|
|
6126
6126
|
style: s ? p : null,
|
|
6127
6127
|
...u
|
|
6128
6128
|
},
|
|
6129
|
-
/* @__PURE__ */ e.createElement("fieldset", { className: `${
|
|
6129
|
+
/* @__PURE__ */ e.createElement("fieldset", { className: `${f}__fieldset`, id: n, ...c }, /* @__PURE__ */ e.createElement(
|
|
6130
6130
|
He,
|
|
6131
6131
|
{
|
|
6132
6132
|
isLegend: !0,
|
|
@@ -6137,7 +6137,7 @@ const bt = ({
|
|
|
6137
6137
|
showLabel: i,
|
|
6138
6138
|
tooltipText: m
|
|
6139
6139
|
}
|
|
6140
|
-
), /* @__PURE__ */ e.createElement("div", { className: `${
|
|
6140
|
+
), /* @__PURE__ */ e.createElement("div", { className: `${f}__options` }, a)),
|
|
6141
6141
|
_ && /* @__PURE__ */ e.createElement(
|
|
6142
6142
|
De,
|
|
6143
6143
|
{
|
|
@@ -6145,7 +6145,7 @@ const bt = ({
|
|
|
6145
6145
|
hasValidationMessage: !!h,
|
|
6146
6146
|
id: n,
|
|
6147
6147
|
message: _,
|
|
6148
|
-
validationStatus:
|
|
6148
|
+
validationStatus: C
|
|
6149
6149
|
}
|
|
6150
6150
|
)
|
|
6151
6151
|
);
|
|
@@ -6162,10 +6162,10 @@ const bt = ({
|
|
|
6162
6162
|
options: i,
|
|
6163
6163
|
required: m = !1,
|
|
6164
6164
|
showLabel: h = !0,
|
|
6165
|
-
tooltipText:
|
|
6165
|
+
tooltipText: C = null,
|
|
6166
6166
|
validationMessage: u,
|
|
6167
6167
|
validationStatus: p,
|
|
6168
|
-
...
|
|
6168
|
+
...f
|
|
6169
6169
|
}) => {
|
|
6170
6170
|
const b = n ? { width: `${n / 16}rem` } : null, v = "pds-checkbox-group", E = l ? te.disabled : null, g = m && !l ? te.required : null, _ = p === "error" ? te.error : null, N = p === "success" ? te.success : null, z = u || o;
|
|
6171
6171
|
i.map((D) => {
|
|
@@ -6175,7 +6175,7 @@ const bt = ({
|
|
|
6175
6175
|
i.map((D) => {
|
|
6176
6176
|
D.checked === !0 && w.push(D.value);
|
|
6177
6177
|
});
|
|
6178
|
-
const [k, P] =
|
|
6178
|
+
const [k, P] = q(w), M = (D) => {
|
|
6179
6179
|
const { value: H } = D.target, O = k.includes(H) ? k.filter((S) => S !== H) : [...k, H];
|
|
6180
6180
|
P(O), d && d(O);
|
|
6181
6181
|
};
|
|
@@ -6199,7 +6199,7 @@ const bt = ({
|
|
|
6199
6199
|
a ?? ""
|
|
6200
6200
|
]),
|
|
6201
6201
|
style: n ? b : null,
|
|
6202
|
-
...
|
|
6202
|
+
...f
|
|
6203
6203
|
},
|
|
6204
6204
|
/* @__PURE__ */ e.createElement("fieldset", { className: `${v}__fieldset`, id: c, ...t }, /* @__PURE__ */ e.createElement(
|
|
6205
6205
|
He,
|
|
@@ -6210,7 +6210,7 @@ const bt = ({
|
|
|
6210
6210
|
label: s,
|
|
6211
6211
|
required: m,
|
|
6212
6212
|
showLabel: h,
|
|
6213
|
-
tooltipText:
|
|
6213
|
+
tooltipText: C
|
|
6214
6214
|
}
|
|
6215
6215
|
), /* @__PURE__ */ e.createElement("div", { className: `${v}__options` }, i.map((D) => /* @__PURE__ */ e.createElement(
|
|
6216
6216
|
G2,
|
|
@@ -6257,10 +6257,10 @@ const bt = ({
|
|
|
6257
6257
|
searchShortcut: "Press / to focus the search field",
|
|
6258
6258
|
triggerButton: "Toggle dropdown menu"
|
|
6259
6259
|
},
|
|
6260
|
-
loadingText:
|
|
6260
|
+
loadingText: C = "Loading results...",
|
|
6261
6261
|
message: u,
|
|
6262
6262
|
noResultsText: p = "No results found",
|
|
6263
|
-
onBlur:
|
|
6263
|
+
onBlur: f,
|
|
6264
6264
|
onChange: b,
|
|
6265
6265
|
onClear: v,
|
|
6266
6266
|
onFocus: E,
|
|
@@ -6277,13 +6277,13 @@ const bt = ({
|
|
|
6277
6277
|
value: H,
|
|
6278
6278
|
...O
|
|
6279
6279
|
}, S) => {
|
|
6280
|
-
const Y = Be(d),
|
|
6280
|
+
const Y = Be(d), j = "pds-combobox", Z = P !== "s" ? `${j}--${P}` : null, B = t ? te.disabled : null, I = z && !t ? te.required : null, V = D === "error" ? te.error : null, x = D === "success" ? te.success : null;
|
|
6281
6281
|
let G = null;
|
|
6282
6282
|
s && (G = "search"), D === "error" && (G = "error"), D === "success" && (G = "success");
|
|
6283
6283
|
const W = L || u, y = typeof H < "u", X = typeof l < "u", K = (re) => {
|
|
6284
6284
|
const Ee = _.find((Pe) => Pe.value === re);
|
|
6285
6285
|
return Ee ? Ee.label : "";
|
|
6286
|
-
}, [ne, U] =
|
|
6286
|
+
}, [ne, U] = q(X ? l : void 0), [A, ee] = q(
|
|
6287
6287
|
y ? H ?? "" : X ? K(l) : ""
|
|
6288
6288
|
);
|
|
6289
6289
|
ae(() => {
|
|
@@ -6361,7 +6361,7 @@ const bt = ({
|
|
|
6361
6361
|
}, ve = () => {
|
|
6362
6362
|
y || ee(""), U(void 0), he(), oe.current?.focus(), k && ie(), v?.();
|
|
6363
6363
|
}, T = (re) => {
|
|
6364
|
-
|
|
6364
|
+
f?.(ne);
|
|
6365
6365
|
}, ce = (re) => {
|
|
6366
6366
|
k && ie(), E?.(ne);
|
|
6367
6367
|
}, Le = () => me.map((re, Ee) => /* @__PURE__ */ e.createElement(
|
|
@@ -6371,14 +6371,14 @@ const bt = ({
|
|
|
6371
6371
|
className: ge === Ee ? "pds-dropdown__item--focused" : "",
|
|
6372
6372
|
...fe({ item: re, index: Ee })
|
|
6373
6373
|
},
|
|
6374
|
-
/* @__PURE__ */ e.createElement("span", { className: `${
|
|
6374
|
+
/* @__PURE__ */ e.createElement("span", { className: `${j}__option-label` }, re.optionDisplay || re.label)
|
|
6375
6375
|
));
|
|
6376
6376
|
return /* @__PURE__ */ e.createElement(
|
|
6377
6377
|
"div",
|
|
6378
6378
|
{
|
|
6379
6379
|
className: $([
|
|
6380
6380
|
te.base,
|
|
6381
|
-
|
|
6381
|
+
j,
|
|
6382
6382
|
Z,
|
|
6383
6383
|
B,
|
|
6384
6384
|
I,
|
|
@@ -6408,7 +6408,7 @@ const bt = ({
|
|
|
6408
6408
|
"aria-disabled": t ? !0 : null,
|
|
6409
6409
|
"aria-invalid": D === "error" ? !0 : null,
|
|
6410
6410
|
"aria-required": z ? !0 : null,
|
|
6411
|
-
className: `${
|
|
6411
|
+
className: `${j}__input-wrapper`,
|
|
6412
6412
|
id: r
|
|
6413
6413
|
},
|
|
6414
6414
|
G && /* @__PURE__ */ e.createElement(We, { variant: G }),
|
|
@@ -6417,7 +6417,7 @@ const bt = ({
|
|
|
6417
6417
|
{
|
|
6418
6418
|
ref: oe,
|
|
6419
6419
|
autoComplete: "off",
|
|
6420
|
-
className: `${
|
|
6420
|
+
className: `${j}__input`,
|
|
6421
6421
|
id: `input-${r}`,
|
|
6422
6422
|
...pe({
|
|
6423
6423
|
"aria-label": h.inputInstructions,
|
|
@@ -6451,7 +6451,7 @@ const bt = ({
|
|
|
6451
6451
|
{
|
|
6452
6452
|
"aria-expanded": se,
|
|
6453
6453
|
"aria-label": h.triggerButton,
|
|
6454
|
-
className: `${
|
|
6454
|
+
className: `${j}__trigger`,
|
|
6455
6455
|
disabled: t,
|
|
6456
6456
|
onClick: J,
|
|
6457
6457
|
type: "button"
|
|
@@ -6459,7 +6459,7 @@ const bt = ({
|
|
|
6459
6459
|
/* @__PURE__ */ e.createElement(
|
|
6460
6460
|
F,
|
|
6461
6461
|
{
|
|
6462
|
-
className: `${
|
|
6462
|
+
className: `${j}__trigger-icon`,
|
|
6463
6463
|
iconName: "angleDown",
|
|
6464
6464
|
size: "m"
|
|
6465
6465
|
}
|
|
@@ -6470,14 +6470,14 @@ const bt = ({
|
|
|
6470
6470
|
"div",
|
|
6471
6471
|
{
|
|
6472
6472
|
ref: be.setFloating,
|
|
6473
|
-
className: `pds-dropdown__panel ${
|
|
6473
|
+
className: `pds-dropdown__panel ${j}__dropdown`,
|
|
6474
6474
|
style: {
|
|
6475
6475
|
...le,
|
|
6476
6476
|
..._e,
|
|
6477
6477
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
6478
6478
|
}
|
|
6479
6479
|
},
|
|
6480
|
-
i ? /* @__PURE__ */ e.createElement("div", { className: `${
|
|
6480
|
+
i ? /* @__PURE__ */ e.createElement("div", { className: `${j}__loading` }, C) : me.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${j}__options`, ...Ce() }, Le()) : /* @__PURE__ */ e.createElement("div", { className: "pds-dropdown__no-results" }, p)
|
|
6481
6481
|
),
|
|
6482
6482
|
W && /* @__PURE__ */ e.createElement(
|
|
6483
6483
|
De,
|
|
@@ -6521,19 +6521,19 @@ const bt = ({
|
|
|
6521
6521
|
loadingText: i = "Loading results...",
|
|
6522
6522
|
noResultsText: m = "No results found",
|
|
6523
6523
|
onChange: h,
|
|
6524
|
-
options:
|
|
6524
|
+
options: C,
|
|
6525
6525
|
placeholder: u = "Filter",
|
|
6526
6526
|
required: p = !1,
|
|
6527
|
-
showAllTags:
|
|
6527
|
+
showAllTags: f = !1,
|
|
6528
6528
|
showLabel: b = !0,
|
|
6529
6529
|
size: v = "s",
|
|
6530
6530
|
...E
|
|
6531
6531
|
}) => {
|
|
6532
|
-
const g = Be(s), _ = "pds-combobox-multi", N = v !== "s" ? `${_}--${v}` : null, z = t ? te.disabled : null, w = p && !t ? te.required : null, k =
|
|
6532
|
+
const g = Be(s), _ = "pds-combobox-multi", N = v !== "s" ? `${_}--${v}` : null, z = t ? te.disabled : null, w = p && !t ? te.required : null, k = f ? `${_}--show-all-tags` : null, [P, M] = q(""), [L, D] = q(n), [H, O] = q(
|
|
6533
6533
|
null
|
|
6534
|
-
), [S, Y] =
|
|
6535
|
-
() => wt(
|
|
6536
|
-
[
|
|
6534
|
+
), [S, Y] = q(!1), j = Me(
|
|
6535
|
+
() => wt(C, L, P),
|
|
6536
|
+
[C, L, P]
|
|
6537
6537
|
), Z = Me(
|
|
6538
6538
|
() => a?.items?.map((T) => ({
|
|
6539
6539
|
...T,
|
|
@@ -6568,7 +6568,7 @@ const bt = ({
|
|
|
6568
6568
|
openMenu: A,
|
|
6569
6569
|
selectedItem: ee
|
|
6570
6570
|
} = ze({
|
|
6571
|
-
items:
|
|
6571
|
+
items: j,
|
|
6572
6572
|
itemToString: (T) => T ? T.label : "",
|
|
6573
6573
|
selectedItem: null,
|
|
6574
6574
|
inputValue: P,
|
|
@@ -6731,7 +6731,7 @@ const bt = ({
|
|
|
6731
6731
|
onMouseDown: _e,
|
|
6732
6732
|
tabIndex: 0
|
|
6733
6733
|
},
|
|
6734
|
-
L.length > 1 && !
|
|
6734
|
+
L.length > 1 && !f && /* @__PURE__ */ e.createElement("div", { className: `${_}__counter` }, /* @__PURE__ */ e.createElement("span", { className: `${_}__counter-wrapper` }, ve)),
|
|
6735
6735
|
L.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${_}__items-wrapper` }, L.map((T, ce) => /* @__PURE__ */ e.createElement(
|
|
6736
6736
|
"span",
|
|
6737
6737
|
{
|
|
@@ -6821,7 +6821,7 @@ const bt = ({
|
|
|
6821
6821
|
}
|
|
6822
6822
|
}
|
|
6823
6823
|
)),
|
|
6824
|
-
o ? /* @__PURE__ */ e.createElement("div", { className: `${_}__loading` }, i) :
|
|
6824
|
+
o ? /* @__PURE__ */ e.createElement("div", { className: `${_}__loading` }, i) : j.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${_}__dropdown-list`, ...X() }, j.map((T, ce) => /* @__PURE__ */ e.createElement(
|
|
6825
6825
|
$2,
|
|
6826
6826
|
{
|
|
6827
6827
|
key: `${T.id}-${ce}`,
|
|
@@ -6914,19 +6914,19 @@ const bt = ({
|
|
|
6914
6914
|
message: i,
|
|
6915
6915
|
multiple: m = !1,
|
|
6916
6916
|
onClear: h,
|
|
6917
|
-
onFileChange:
|
|
6917
|
+
onFileChange: C,
|
|
6918
6918
|
required: u = !1,
|
|
6919
6919
|
showFullPath: p,
|
|
6920
|
-
showLabel:
|
|
6920
|
+
showLabel: f = !0,
|
|
6921
6921
|
size: b = "s",
|
|
6922
6922
|
tooltipText: v = null,
|
|
6923
6923
|
validationMessage: E,
|
|
6924
6924
|
validationStatus: g,
|
|
6925
6925
|
..._
|
|
6926
6926
|
}, N) => {
|
|
6927
|
-
const [z, w] =
|
|
6927
|
+
const [z, w] = q(!1), [k, P] = q(
|
|
6928
6928
|
!!(f2 && t)
|
|
6929
|
-
), M = Be(r), L = "pds-file-upload", D = b !== "s" ? `${L}--${b}` : null, H = c ? te.disabled : null, O = u && !c ? te.required : null, S = g === "error" ? te.error : null, Y = g === "success" ? te.success : null,
|
|
6929
|
+
), M = Be(r), L = "pds-file-upload", D = b !== "s" ? `${L}--${b}` : null, H = c ? te.disabled : null, O = u && !c ? te.required : null, S = g === "error" ? te.error : null, Y = g === "success" ? te.success : null, j = k ? `${L}--safari-default` : null;
|
|
6930
6930
|
let Z = null;
|
|
6931
6931
|
g === "error" && (Z = "error"), g === "success" && (Z = "success");
|
|
6932
6932
|
const B = E || i, I = t ? [t] : null, V = t ? t.split("/").pop() : null, x = p ? t : V, G = t ? new File(I, x) : null;
|
|
@@ -6951,7 +6951,7 @@ const bt = ({
|
|
|
6951
6951
|
t ? W() : w(!1);
|
|
6952
6952
|
return;
|
|
6953
6953
|
}
|
|
6954
|
-
f2 && t && (t === K.target.value ? P(!0) : P(!1)),
|
|
6954
|
+
f2 && t && (t === K.target.value ? P(!0) : P(!1)), C && C(K.target.files), w(!0);
|
|
6955
6955
|
}, X = () => {
|
|
6956
6956
|
const K = document.getElementById(
|
|
6957
6957
|
`${s}--input`
|
|
@@ -6965,7 +6965,7 @@ const bt = ({
|
|
|
6965
6965
|
te.base,
|
|
6966
6966
|
L,
|
|
6967
6967
|
D,
|
|
6968
|
-
|
|
6968
|
+
j,
|
|
6969
6969
|
H,
|
|
6970
6970
|
O,
|
|
6971
6971
|
S,
|
|
@@ -6983,7 +6983,7 @@ const bt = ({
|
|
|
6983
6983
|
id: s,
|
|
6984
6984
|
label: n,
|
|
6985
6985
|
required: u,
|
|
6986
|
-
showLabel:
|
|
6986
|
+
showLabel: f,
|
|
6987
6987
|
tooltipText: v
|
|
6988
6988
|
}
|
|
6989
6989
|
),
|
|
@@ -7069,17 +7069,17 @@ const bt = ({
|
|
|
7069
7069
|
onChange: i,
|
|
7070
7070
|
onValueChange: m,
|
|
7071
7071
|
options: h,
|
|
7072
|
-
required:
|
|
7072
|
+
required: C = !1,
|
|
7073
7073
|
showLabel: u = !0,
|
|
7074
7074
|
tooltipText: p = null,
|
|
7075
|
-
validationMessage:
|
|
7075
|
+
validationMessage: f,
|
|
7076
7076
|
validationStatus: b,
|
|
7077
7077
|
value: v,
|
|
7078
7078
|
...E
|
|
7079
7079
|
}) => {
|
|
7080
|
-
const g = "pds-radio-group", _ = t ? te.disabled : null, N =
|
|
7080
|
+
const g = "pds-radio-group", _ = t ? te.disabled : null, N = C && !t ? te.required : null, z = b === "error" ? te.error : null, w = b === "success" ? te.success : null, k = typeof v < "u", P = typeof l < "u", [M, L] = q(
|
|
7081
7081
|
P ? l : ""
|
|
7082
|
-
), D =
|
|
7082
|
+
), D = f || r, H = (S) => {
|
|
7083
7083
|
k || L(S.target.value), i && i(S), m && m(S.target.value);
|
|
7084
7084
|
}, O = (S) => {
|
|
7085
7085
|
d?.(S);
|
|
@@ -7105,7 +7105,7 @@ const bt = ({
|
|
|
7105
7105
|
disabled: t,
|
|
7106
7106
|
id: n,
|
|
7107
7107
|
label: o,
|
|
7108
|
-
required:
|
|
7108
|
+
required: C,
|
|
7109
7109
|
showLabel: u,
|
|
7110
7110
|
tooltipText: p
|
|
7111
7111
|
}
|
|
@@ -7124,7 +7124,7 @@ const bt = ({
|
|
|
7124
7124
|
name: n,
|
|
7125
7125
|
onBlur: O,
|
|
7126
7126
|
onChange: H,
|
|
7127
|
-
required:
|
|
7127
|
+
required: C,
|
|
7128
7128
|
type: "radio",
|
|
7129
7129
|
value: S.value
|
|
7130
7130
|
}
|
|
@@ -7135,7 +7135,7 @@ const bt = ({
|
|
|
7135
7135
|
De,
|
|
7136
7136
|
{
|
|
7137
7137
|
validationMessageHasDecorators: !0,
|
|
7138
|
-
hasValidationMessage: !!
|
|
7138
|
+
hasValidationMessage: !!f,
|
|
7139
7139
|
id: n,
|
|
7140
7140
|
message: D,
|
|
7141
7141
|
validationStatus: b
|
|
@@ -7156,10 +7156,10 @@ const bt = ({
|
|
|
7156
7156
|
onChange: i,
|
|
7157
7157
|
required: m = !1,
|
|
7158
7158
|
showLabel: h = !0,
|
|
7159
|
-
switchPlacement:
|
|
7159
|
+
switchPlacement: C = "right",
|
|
7160
7160
|
...u
|
|
7161
7161
|
}, p) => {
|
|
7162
|
-
const
|
|
7162
|
+
const f = Be(o), b = "pds-switch", v = `${b}--${C}`, E = d ? `${b}--message` : null, g = c ? te.disabled : null, _ = m && !c ? te.required : null, N = typeof a < "u", z = !N && t ? t : !1, [w, k] = q(z), P = (H) => {
|
|
7163
7163
|
N || k(H.target.checked), i && i(H);
|
|
7164
7164
|
}, M = () => {
|
|
7165
7165
|
c || document.getElementById(n)?.click();
|
|
@@ -7209,7 +7209,7 @@ const bt = ({
|
|
|
7209
7209
|
_,
|
|
7210
7210
|
l
|
|
7211
7211
|
]),
|
|
7212
|
-
style: o ?
|
|
7212
|
+
style: o ? f : null,
|
|
7213
7213
|
...u
|
|
7214
7214
|
},
|
|
7215
7215
|
/* @__PURE__ */ e.createElement(
|
|
@@ -7240,10 +7240,10 @@ const bt = ({
|
|
|
7240
7240
|
onBlur: i,
|
|
7241
7241
|
onChange: m,
|
|
7242
7242
|
onFocus: h,
|
|
7243
|
-
placeholder:
|
|
7243
|
+
placeholder: C,
|
|
7244
7244
|
readonly: u = !1,
|
|
7245
7245
|
required: p = !1,
|
|
7246
|
-
rows:
|
|
7246
|
+
rows: f = 5,
|
|
7247
7247
|
showLabel: b,
|
|
7248
7248
|
size: v = "s",
|
|
7249
7249
|
textareaProps: E,
|
|
@@ -7261,7 +7261,7 @@ const bt = ({
|
|
|
7261
7261
|
value: w,
|
|
7262
7262
|
...k
|
|
7263
7263
|
}, P) => {
|
|
7264
|
-
const M = Be(s), L = "pds-textarea", D = o ? "pds-is-resizable" : null, H = c ? te.disabled : null, O = p && !c ? te.required : null, S = z === "error" ? te.error : null, Y = z === "success" ? te.success : null,
|
|
7264
|
+
const M = Be(s), L = "pds-textarea", D = o ? "pds-is-resizable" : null, H = c ? te.disabled : null, O = p && !c ? te.required : null, S = z === "error" ? te.error : null, Y = z === "success" ? te.success : null, j = v !== "s" ? `${L}--${v}` : null, Z = u ? te.readonly : null, B = N || d, I = w != null && m !== void 0, V = typeof t < "u", [x, G] = q(
|
|
7265
7265
|
V ? t : ""
|
|
7266
7266
|
), W = w || x, y = (K) => {
|
|
7267
7267
|
I || G(K.target.value), m && m(K);
|
|
@@ -7274,7 +7274,7 @@ const bt = ({
|
|
|
7274
7274
|
className: $([
|
|
7275
7275
|
te.base,
|
|
7276
7276
|
L,
|
|
7277
|
-
|
|
7277
|
+
j,
|
|
7278
7278
|
H,
|
|
7279
7279
|
O,
|
|
7280
7280
|
S,
|
|
@@ -7318,10 +7318,10 @@ const bt = ({
|
|
|
7318
7318
|
onBlur: X,
|
|
7319
7319
|
onChange: y,
|
|
7320
7320
|
onFocus: h,
|
|
7321
|
-
placeholder:
|
|
7321
|
+
placeholder: C,
|
|
7322
7322
|
readOnly: u,
|
|
7323
7323
|
required: p,
|
|
7324
|
-
rows:
|
|
7324
|
+
rows: f,
|
|
7325
7325
|
value: I ? w : x,
|
|
7326
7326
|
...E
|
|
7327
7327
|
}
|
|
@@ -7352,10 +7352,10 @@ const bt = ({
|
|
|
7352
7352
|
inputProps: i,
|
|
7353
7353
|
inputWidth: m,
|
|
7354
7354
|
label: h,
|
|
7355
|
-
message:
|
|
7355
|
+
message: C,
|
|
7356
7356
|
onBlur: u,
|
|
7357
7357
|
onChange: p,
|
|
7358
|
-
onClear:
|
|
7358
|
+
onClear: f,
|
|
7359
7359
|
onFocus: b,
|
|
7360
7360
|
placeholder: v,
|
|
7361
7361
|
readonly: E = !1,
|
|
@@ -7379,10 +7379,10 @@ const bt = ({
|
|
|
7379
7379
|
value: H,
|
|
7380
7380
|
...O
|
|
7381
7381
|
}, S) => {
|
|
7382
|
-
const Y = Be(m),
|
|
7382
|
+
const Y = Be(m), j = "pds-text-input", Z = n ? te.disabled : null, B = g && !n ? te.required : null, I = D === "error" ? te.error : null, V = D === "success" ? te.success : null, x = E ? te.readonly : null, G = w !== "s" ? `${j}--${w}` : null, W = r && M === "url" ? `${j}--has-url-prefix` : null;
|
|
7383
7383
|
let y = null;
|
|
7384
7384
|
M === "search" && (y = "search"), M === "search" && _ === "filter" && (y = "filter"), D === "error" && (y = "error"), D === "success" && (y = "success");
|
|
7385
|
-
const X = L ||
|
|
7385
|
+
const X = L || C, K = typeof H < "u", ne = typeof c < "u", [U, A] = q(
|
|
7386
7386
|
ne ? c : ""
|
|
7387
7387
|
), ee = H || U, oe = (se) => {
|
|
7388
7388
|
if (z && pe && fe(!1), r && M === "url") {
|
|
@@ -7408,10 +7408,10 @@ const bt = ({
|
|
|
7408
7408
|
} else
|
|
7409
7409
|
K || A(se.target.value), p && p(se);
|
|
7410
7410
|
}, me = () => {
|
|
7411
|
-
K || A(""),
|
|
7411
|
+
K || A(""), f && f();
|
|
7412
7412
|
const se = document.getElementById(d);
|
|
7413
7413
|
se && se.focus();
|
|
7414
|
-
}, [pe, fe] =
|
|
7414
|
+
}, [pe, fe] = q(!1), Ce = () => {
|
|
7415
7415
|
fe((ie) => !ie);
|
|
7416
7416
|
const se = document.getElementById(d);
|
|
7417
7417
|
se && se.focus();
|
|
@@ -7422,7 +7422,7 @@ const bt = ({
|
|
|
7422
7422
|
{
|
|
7423
7423
|
className: $([
|
|
7424
7424
|
te.base,
|
|
7425
|
-
|
|
7425
|
+
j,
|
|
7426
7426
|
G,
|
|
7427
7427
|
Z,
|
|
7428
7428
|
B,
|
|
@@ -7450,7 +7450,7 @@ const bt = ({
|
|
|
7450
7450
|
/* @__PURE__ */ e.createElement(
|
|
7451
7451
|
"div",
|
|
7452
7452
|
{
|
|
7453
|
-
className: `${
|
|
7453
|
+
className: `${j}__input-wrapper ${r && M === "url" ? `${j}__input-wrapper--has-prefix` : ""}`
|
|
7454
7454
|
},
|
|
7455
7455
|
y && /* @__PURE__ */ e.createElement(We, { variant: y }),
|
|
7456
7456
|
r && M === "url" && /* @__PURE__ */ e.createElement(Lt, null),
|
|
@@ -7461,7 +7461,7 @@ const bt = ({
|
|
|
7461
7461
|
"aria-describedby": X ? `${d}__message` : null,
|
|
7462
7462
|
"aria-invalid": D === "error" ? !0 : null,
|
|
7463
7463
|
autoComplete: M === "password" ? "off" : a,
|
|
7464
|
-
className: `${
|
|
7464
|
+
className: `${j}__input ${r && M === "url" ? `${j}__input--has-prefix` : ""}`,
|
|
7465
7465
|
disabled: n,
|
|
7466
7466
|
id: d,
|
|
7467
7467
|
name: d,
|
|
@@ -7488,7 +7488,7 @@ const bt = ({
|
|
|
7488
7488
|
"button",
|
|
7489
7489
|
{
|
|
7490
7490
|
"aria-controls": d,
|
|
7491
|
-
className: `${
|
|
7491
|
+
className: `${j}__visibility-toggle`,
|
|
7492
7492
|
onClick: Ce,
|
|
7493
7493
|
onMouseDown: (se) => se.preventDefault(),
|
|
7494
7494
|
title: pe ? P.visibilityToggleHide : P.visibilityToggleShow,
|
|
@@ -7620,12 +7620,12 @@ const bt = ({
|
|
|
7620
7620
|
title: m,
|
|
7621
7621
|
...h
|
|
7622
7622
|
}) => {
|
|
7623
|
-
const
|
|
7623
|
+
const C = Fe(l), u = C.__unslotted, p = C.footer, f = "pds-modal", b = i !== "m" ? `${f}--${i}` : null, v = n ? {
|
|
7624
7624
|
maxHeight: n,
|
|
7625
7625
|
paddingInlineEnd: "1rem",
|
|
7626
7626
|
marginInlineEnd: "-1rem",
|
|
7627
7627
|
overflowY: "auto"
|
|
7628
|
-
} : null, [E, g] =
|
|
7628
|
+
} : null, [E, g] = q(r), { closeOverlay: _, openOverlay: N } = M2();
|
|
7629
7629
|
ae(() => {
|
|
7630
7630
|
g(r);
|
|
7631
7631
|
}, [r]), ae(() => {
|
|
@@ -7675,7 +7675,7 @@ const bt = ({
|
|
|
7675
7675
|
ref: k.setFloating,
|
|
7676
7676
|
"aria-label": a || m,
|
|
7677
7677
|
...D(),
|
|
7678
|
-
className: $([
|
|
7678
|
+
className: $([f, b, t]),
|
|
7679
7679
|
style: {
|
|
7680
7680
|
...w,
|
|
7681
7681
|
...O,
|
|
@@ -7684,7 +7684,7 @@ const bt = ({
|
|
|
7684
7684
|
},
|
|
7685
7685
|
...h
|
|
7686
7686
|
},
|
|
7687
|
-
o && /* @__PURE__ */ e.createElement("div", { className: `${
|
|
7687
|
+
o && /* @__PURE__ */ e.createElement("div", { className: `${f}__close-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
7688
7688
|
h2,
|
|
7689
7689
|
{
|
|
7690
7690
|
ariaLabel: c,
|
|
@@ -7692,9 +7692,9 @@ const bt = ({
|
|
|
7692
7692
|
size: "xl"
|
|
7693
7693
|
}
|
|
7694
7694
|
)),
|
|
7695
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
7696
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
7697
|
-
p && /* @__PURE__ */ e.createElement("div", { className: `${
|
|
7695
|
+
/* @__PURE__ */ e.createElement("div", { className: `${f}__title` }, m),
|
|
7696
|
+
/* @__PURE__ */ e.createElement("div", { className: `${f}__content`, style: v }, u),
|
|
7697
|
+
p && /* @__PURE__ */ e.createElement("div", { className: `${f}__footer` }, p)
|
|
7698
7698
|
))
|
|
7699
7699
|
));
|
|
7700
7700
|
}, T0 = ({
|
|
@@ -7796,54 +7796,54 @@ const bt = ({
|
|
|
7796
7796
|
}) => {
|
|
7797
7797
|
const s = de(null), o = "pds-button-nav", r = `${o}--${c}`;
|
|
7798
7798
|
ae(() => {
|
|
7799
|
-
const
|
|
7799
|
+
const C = (u) => {
|
|
7800
7800
|
if (document.documentElement.hasAttribute("data-pds-mobile")) return;
|
|
7801
7801
|
const p = s.current;
|
|
7802
7802
|
if (!p) return;
|
|
7803
|
-
const
|
|
7803
|
+
const f = Array.from(
|
|
7804
7804
|
p.querySelectorAll('a, button, [tabindex]:not([tabindex="-1"])')
|
|
7805
7805
|
);
|
|
7806
|
-
if (
|
|
7807
|
-
const b = document.activeElement, v =
|
|
7806
|
+
if (f.length === 0) return;
|
|
7807
|
+
const b = document.activeElement, v = f.indexOf(b);
|
|
7808
7808
|
if (v !== -1) {
|
|
7809
7809
|
if (u.key === "ArrowRight") {
|
|
7810
7810
|
u.preventDefault();
|
|
7811
|
-
const E = (v + 1) %
|
|
7812
|
-
|
|
7811
|
+
const E = (v + 1) % f.length;
|
|
7812
|
+
f[E].focus();
|
|
7813
7813
|
} else if (u.key === "ArrowLeft") {
|
|
7814
7814
|
u.preventDefault();
|
|
7815
|
-
const E = (v - 1 +
|
|
7816
|
-
|
|
7815
|
+
const E = (v - 1 + f.length) % f.length;
|
|
7816
|
+
f[E].focus();
|
|
7817
7817
|
}
|
|
7818
7818
|
}
|
|
7819
7819
|
};
|
|
7820
|
-
return document.addEventListener("keydown",
|
|
7820
|
+
return document.addEventListener("keydown", C), () => document.removeEventListener("keydown", C);
|
|
7821
7821
|
}, []);
|
|
7822
|
-
const d = ({ isActive:
|
|
7822
|
+
const d = ({ isActive: C, linkContent: u }) => {
|
|
7823
7823
|
const p = `${o}__item`;
|
|
7824
7824
|
return /* @__PURE__ */ e.createElement(
|
|
7825
7825
|
"li",
|
|
7826
7826
|
{
|
|
7827
7827
|
className: $([
|
|
7828
7828
|
p,
|
|
7829
|
-
|
|
7829
|
+
C ? `${p}--active` : null
|
|
7830
7830
|
])
|
|
7831
7831
|
},
|
|
7832
7832
|
u
|
|
7833
7833
|
);
|
|
7834
|
-
}, i = t.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${o}__menu` }, t.map((
|
|
7834
|
+
}, i = t.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${o}__menu` }, t.map((C, u) => /* @__PURE__ */ e.createElement(
|
|
7835
7835
|
d,
|
|
7836
7836
|
{
|
|
7837
7837
|
key: u,
|
|
7838
|
-
isActive: a2(
|
|
7839
|
-
linkContent:
|
|
7838
|
+
isActive: a2(C),
|
|
7839
|
+
linkContent: C.linkContent
|
|
7840
7840
|
}
|
|
7841
7841
|
))) : null, m = [];
|
|
7842
|
-
t.map((
|
|
7843
|
-
|
|
7844
|
-
linkContent:
|
|
7842
|
+
t.map((C) => {
|
|
7843
|
+
C.linkContent && (a2(C) ? m.unshift({
|
|
7844
|
+
linkContent: C.linkContent,
|
|
7845
7845
|
isLink: !0
|
|
7846
|
-
}) : m.push({ linkContent:
|
|
7846
|
+
}) : m.push({ linkContent: C.linkContent, isLink: !0 }));
|
|
7847
7847
|
});
|
|
7848
7848
|
const h = m.length > 0 ? /* @__PURE__ */ e.createElement("div", { className: `${o}__mobile` }, /* @__PURE__ */ e.createElement(
|
|
7849
7849
|
ct,
|
|
@@ -7915,12 +7915,12 @@ const bt = ({
|
|
|
7915
7915
|
onFocus: i,
|
|
7916
7916
|
onOptionSelect: m,
|
|
7917
7917
|
placeholder: h = "Search sites",
|
|
7918
|
-
siteList:
|
|
7918
|
+
siteList: C,
|
|
7919
7919
|
...u
|
|
7920
7920
|
}) => {
|
|
7921
|
-
const [p,
|
|
7922
|
-
|
|
7923
|
-
}, E =
|
|
7921
|
+
const [p, f] = q(null), b = "pds-dashboard-search", v = (g) => {
|
|
7922
|
+
f(g.value), m && m(g.siteData);
|
|
7923
|
+
}, E = C.map((g) => {
|
|
7924
7924
|
const { id: _, machineName: N, name: z } = g;
|
|
7925
7925
|
return {
|
|
7926
7926
|
id: _,
|
|
@@ -7975,10 +7975,10 @@ const bt = ({
|
|
|
7975
7975
|
activeIndex: i,
|
|
7976
7976
|
floatingStyles: m,
|
|
7977
7977
|
getFloatingProps: h,
|
|
7978
|
-
getItemProps:
|
|
7978
|
+
getItemProps: C,
|
|
7979
7979
|
getReferenceProps: u,
|
|
7980
7980
|
isMounted: p,
|
|
7981
|
-
listRef:
|
|
7981
|
+
listRef: f,
|
|
7982
7982
|
refs: b,
|
|
7983
7983
|
setIsOpen: v,
|
|
7984
7984
|
transitionStyles: E
|
|
@@ -7989,7 +7989,7 @@ const bt = ({
|
|
|
7989
7989
|
}), g = (w) => {
|
|
7990
7990
|
w.target.nodeName === "A" && v(!1);
|
|
7991
7991
|
}, _ = (w) => {
|
|
7992
|
-
w.key === "Enter" &&
|
|
7992
|
+
w.key === "Enter" && f.current[i]?.querySelector("a")?.click();
|
|
7993
7993
|
}, N = ({
|
|
7994
7994
|
item: w,
|
|
7995
7995
|
level: k
|
|
@@ -8061,7 +8061,7 @@ const bt = ({
|
|
|
8061
8061
|
{
|
|
8062
8062
|
key: k,
|
|
8063
8063
|
ref: (P) => {
|
|
8064
|
-
|
|
8064
|
+
f.current[k] = P;
|
|
8065
8065
|
},
|
|
8066
8066
|
className: $([
|
|
8067
8067
|
"pds-dropdown__item",
|
|
@@ -8071,7 +8071,7 @@ const bt = ({
|
|
|
8071
8071
|
w.isActive === !0 ? "pds-dropdown__item--active" : null
|
|
8072
8072
|
]),
|
|
8073
8073
|
tabIndex: i === k ? 0 : -1,
|
|
8074
|
-
...
|
|
8074
|
+
...C({ onKeyDown: _ })
|
|
8075
8075
|
},
|
|
8076
8076
|
w.linkContent,
|
|
8077
8077
|
w.isActive === !0 && d
|
|
@@ -8394,7 +8394,7 @@ const bt = ({
|
|
|
8394
8394
|
case "sub-brand-small":
|
|
8395
8395
|
i = R2;
|
|
8396
8396
|
}
|
|
8397
|
-
const m = $e(c) && typeof c.props.children == "string" ? c.props.children : "", h = $e(c) ? c.type : null,
|
|
8397
|
+
const m = $e(c) && typeof c.props.children == "string" ? c.props.children : "", h = $e(c) ? c.type : null, C = $e(c) && h ? /* @__PURE__ */ e.createElement(
|
|
8398
8398
|
h,
|
|
8399
8399
|
{
|
|
8400
8400
|
...Object.assign({}, c.props, {
|
|
@@ -8414,7 +8414,7 @@ const bt = ({
|
|
|
8414
8414
|
]),
|
|
8415
8415
|
...s
|
|
8416
8416
|
},
|
|
8417
|
-
c ?
|
|
8417
|
+
c ? C : i,
|
|
8418
8418
|
n && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: "pds-pantheon-logo__separator" }), /* @__PURE__ */ e.createElement("div", { className: "pds-pantheon-logo__sub-brand-wordmark" }, n))
|
|
8419
8419
|
);
|
|
8420
8420
|
}, Z0 = ({
|
|
@@ -8434,7 +8434,7 @@ const bt = ({
|
|
|
8434
8434
|
},
|
|
8435
8435
|
...h
|
|
8436
8436
|
}) => {
|
|
8437
|
-
const [
|
|
8437
|
+
const [C, u] = q(!1), { closeOverlay: p, openOverlay: f } = M2(), b = "pds-navbar", v = n ? `${b}--noBorder` : "", E = t !== "default" ? `${b}--${t}` : "", g = (O) => {
|
|
8438
8438
|
const S = O.key;
|
|
8439
8439
|
let Y = !1;
|
|
8440
8440
|
switch (S) {
|
|
@@ -8448,22 +8448,22 @@ const bt = ({
|
|
|
8448
8448
|
ae(() => (window.addEventListener("keyup", g), () => {
|
|
8449
8449
|
window.removeEventListener("keyup", g);
|
|
8450
8450
|
}), []);
|
|
8451
|
-
const _ = () => u(!
|
|
8451
|
+
const _ = () => u(!C), N = (O) => {
|
|
8452
8452
|
O.target.nodeName === "A" && u(!1);
|
|
8453
8453
|
};
|
|
8454
8454
|
ae(() => {
|
|
8455
|
-
if (
|
|
8455
|
+
if (C) {
|
|
8456
8456
|
const O = document.querySelector(".pds-navbar__bar-mobile"), S = document.querySelector(".pds-navbar__mobile");
|
|
8457
8457
|
return O.addEventListener("click", N), S.addEventListener("click", N), () => {
|
|
8458
8458
|
O.removeEventListener("click", N), S.removeEventListener("click", N);
|
|
8459
8459
|
};
|
|
8460
8460
|
}
|
|
8461
|
-
}, [
|
|
8462
|
-
|
|
8463
|
-
}, [
|
|
8464
|
-
if (!(!
|
|
8465
|
-
return
|
|
8466
|
-
}, [
|
|
8461
|
+
}, [C]), ae(() => {
|
|
8462
|
+
C ? document.body.classList.add("pds-no-scroll") : document.body.classList.remove("pds-no-scroll");
|
|
8463
|
+
}, [C]), ae(() => {
|
|
8464
|
+
if (!(!f || !p) && C)
|
|
8465
|
+
return f(), () => p();
|
|
8466
|
+
}, [C, f, p]);
|
|
8467
8467
|
const z = Fe(a), w = z["items-left"], k = z["items-right"];
|
|
8468
8468
|
let P = "default";
|
|
8469
8469
|
(t === "reverse" || t === "reverse-transparent") && (P = "reverse");
|
|
@@ -8484,12 +8484,12 @@ const bt = ({
|
|
|
8484
8484
|
), H = /* @__PURE__ */ e.createElement(
|
|
8485
8485
|
"button",
|
|
8486
8486
|
{
|
|
8487
|
-
"aria-label":
|
|
8487
|
+
"aria-label": C ? m.closeMobileNav : m.openMobileNav,
|
|
8488
8488
|
className: `${b}__menu-toggle`,
|
|
8489
8489
|
onClick: _,
|
|
8490
8490
|
type: "button"
|
|
8491
8491
|
},
|
|
8492
|
-
/* @__PURE__ */ e.createElement(F, { iconName:
|
|
8492
|
+
/* @__PURE__ */ e.createElement(F, { iconName: C ? "xmark" : "bars", size: "l" })
|
|
8493
8493
|
);
|
|
8494
8494
|
return /* @__PURE__ */ e.createElement(
|
|
8495
8495
|
"header",
|
|
@@ -8506,7 +8506,7 @@ const bt = ({
|
|
|
8506
8506
|
/* @__PURE__ */ e.createElement(
|
|
8507
8507
|
I1,
|
|
8508
8508
|
{
|
|
8509
|
-
active:
|
|
8509
|
+
active: C,
|
|
8510
8510
|
focusTrapOptions: {
|
|
8511
8511
|
clickOutsideDeactivates: !0,
|
|
8512
8512
|
initialFocus: !1,
|
|
@@ -8518,9 +8518,9 @@ const bt = ({
|
|
|
8518
8518
|
{
|
|
8519
8519
|
className: $([
|
|
8520
8520
|
`${b}__mobile`,
|
|
8521
|
-
|
|
8521
|
+
C ? `${b}__mobile--open` : null
|
|
8522
8522
|
]),
|
|
8523
|
-
inert:
|
|
8523
|
+
inert: C ? void 0 : !0
|
|
8524
8524
|
},
|
|
8525
8525
|
/* @__PURE__ */ e.createElement(V2, null, a)
|
|
8526
8526
|
)
|
|
@@ -8557,25 +8557,25 @@ const bt = ({
|
|
|
8557
8557
|
},
|
|
8558
8558
|
D.linkContent
|
|
8559
8559
|
))
|
|
8560
|
-
), [
|
|
8560
|
+
), [C, u] = q(!1), p = de(C), { context: f, floatingStyles: b, refs: v } = ke({
|
|
8561
8561
|
placement: "right-start",
|
|
8562
|
-
open:
|
|
8562
|
+
open: C,
|
|
8563
8563
|
onOpenChange: u,
|
|
8564
8564
|
middleware: [xe(8), Re(), s2()],
|
|
8565
8565
|
whileElementsMounted: Ie
|
|
8566
8566
|
});
|
|
8567
8567
|
ae(() => {
|
|
8568
|
-
if (p.current && !
|
|
8568
|
+
if (p.current && !C && t && v.reference.current) {
|
|
8569
8569
|
const M = v.reference.current;
|
|
8570
8570
|
M instanceof HTMLElement && M.querySelector("a")?.focus();
|
|
8571
8571
|
}
|
|
8572
|
-
p.current =
|
|
8573
|
-
}, [
|
|
8574
|
-
const E = U2(
|
|
8572
|
+
p.current = C;
|
|
8573
|
+
}, [C, t, v.reference]);
|
|
8574
|
+
const E = U2(f, {
|
|
8575
8575
|
move: !1,
|
|
8576
8576
|
delay: { open: 100, close: 0 },
|
|
8577
8577
|
handleClose: y1()
|
|
8578
|
-
}), g = Oe(
|
|
8578
|
+
}), g = Oe(f), _ = l2(f, { role: "menu" }), { getFloatingProps: N, getReferenceProps: z } = Ze([
|
|
8579
8579
|
E,
|
|
8580
8580
|
g,
|
|
8581
8581
|
_
|
|
@@ -8622,7 +8622,7 @@ const bt = ({
|
|
|
8622
8622
|
},
|
|
8623
8623
|
/* @__PURE__ */ e.createElement(F, { iconName: "angleDown", size: "m" }),
|
|
8624
8624
|
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${c.toggle} ${qe(n)} ${c.submenu}`)
|
|
8625
|
-
)), !t && h(s, "second-level"), t &&
|
|
8625
|
+
)), !t && h(s, "second-level"), t && C && /* @__PURE__ */ e.createElement(
|
|
8626
8626
|
"div",
|
|
8627
8627
|
{
|
|
8628
8628
|
ref: v.setFloating,
|
|
@@ -8680,37 +8680,37 @@ const bt = ({
|
|
|
8680
8680
|
i
|
|
8681
8681
|
);
|
|
8682
8682
|
}, Dt = ({ items: a, label: l }) => {
|
|
8683
|
-
const t = de(null), c = "pds-nav-menu", n = a && a.length > 0, [s, o] =
|
|
8683
|
+
const t = de(null), c = "pds-nav-menu", n = a && a.length > 0, [s, o] = q(
|
|
8684
8684
|
() => typeof document < "u" && document.documentElement.hasAttribute("data-pds-mobile")
|
|
8685
8685
|
);
|
|
8686
8686
|
ae(() => {
|
|
8687
|
-
const
|
|
8687
|
+
const f = new MutationObserver(() => {
|
|
8688
8688
|
o(document.documentElement.hasAttribute("data-pds-mobile"));
|
|
8689
8689
|
});
|
|
8690
|
-
return
|
|
8690
|
+
return f.observe(document.documentElement, {
|
|
8691
8691
|
attributes: !0,
|
|
8692
8692
|
attributeFilter: ["data-pds-mobile"]
|
|
8693
|
-
}), () =>
|
|
8693
|
+
}), () => f.disconnect();
|
|
8694
8694
|
}, []);
|
|
8695
8695
|
const { floatingStyles: r, getFloatingProps: d, getReferenceProps: i, isOpen: m, refs: h } = Ue({
|
|
8696
8696
|
offsetValue: 8,
|
|
8697
8697
|
openOnHover: !s
|
|
8698
|
-
}),
|
|
8699
|
-
(
|
|
8698
|
+
}), C = (f) => {
|
|
8699
|
+
(f.key === "Enter" || f.key === " " || f.key === "ArrowDown") && !m && requestAnimationFrame(() => {
|
|
8700
8700
|
t.current?.querySelector("a, button")?.focus();
|
|
8701
8701
|
});
|
|
8702
|
-
}, u = (
|
|
8702
|
+
}, u = (f) => !!(f.isActive || f.linkContent?.props?.className?.includes(
|
|
8703
8703
|
"pds-isActive"
|
|
8704
8704
|
));
|
|
8705
8705
|
if (!n)
|
|
8706
8706
|
return null;
|
|
8707
|
-
const p = /* @__PURE__ */ e.createElement("ul", { className: `${c}__accordion-menu` }, a.map((
|
|
8707
|
+
const p = /* @__PURE__ */ e.createElement("ul", { className: `${c}__accordion-menu` }, a.map((f, b) => /* @__PURE__ */ e.createElement(
|
|
8708
8708
|
"li",
|
|
8709
8709
|
{
|
|
8710
8710
|
key: b,
|
|
8711
|
-
className: `${c}__item ${
|
|
8711
|
+
className: `${c}__item ${f.isSeparator ? "pds-dropdown__separator" : `pds-dropdown__item${u(f) ? " pds-dropdown__item--active" : ""}`}`
|
|
8712
8712
|
},
|
|
8713
|
-
!
|
|
8713
|
+
!f.isSeparator && f.linkContent
|
|
8714
8714
|
)));
|
|
8715
8715
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(g2, { label: l }, p), /* @__PURE__ */ e.createElement(
|
|
8716
8716
|
"button",
|
|
@@ -8719,7 +8719,7 @@ const bt = ({
|
|
|
8719
8719
|
className: `${c}__trigger`,
|
|
8720
8720
|
type: "button",
|
|
8721
8721
|
...i({
|
|
8722
|
-
onKeyDown:
|
|
8722
|
+
onKeyDown: C
|
|
8723
8723
|
})
|
|
8724
8724
|
},
|
|
8725
8725
|
l,
|
|
@@ -8734,8 +8734,8 @@ const bt = ({
|
|
|
8734
8734
|
), m && /* @__PURE__ */ e.createElement(
|
|
8735
8735
|
"ul",
|
|
8736
8736
|
{
|
|
8737
|
-
ref: (
|
|
8738
|
-
h.setFloating(
|
|
8737
|
+
ref: (f) => {
|
|
8738
|
+
h.setFloating(f), t.current = f;
|
|
8739
8739
|
},
|
|
8740
8740
|
className: `pds-dropdown__panel ${c}__dropdown`,
|
|
8741
8741
|
style: {
|
|
@@ -8744,13 +8744,13 @@ const bt = ({
|
|
|
8744
8744
|
},
|
|
8745
8745
|
...d()
|
|
8746
8746
|
},
|
|
8747
|
-
a.map((
|
|
8747
|
+
a.map((f, b) => /* @__PURE__ */ e.createElement(
|
|
8748
8748
|
"li",
|
|
8749
8749
|
{
|
|
8750
8750
|
key: b,
|
|
8751
|
-
className: `${c}__item ${
|
|
8751
|
+
className: `${c}__item ${f.isSeparator ? "pds-dropdown__separator" : `pds-dropdown__item${u(f) ? " pds-dropdown__item--active" : ""}`}`
|
|
8752
8752
|
},
|
|
8753
|
-
!
|
|
8753
|
+
!f.isSeparator && f.linkContent
|
|
8754
8754
|
))
|
|
8755
8755
|
));
|
|
8756
8756
|
}, j0 = ({
|
|
@@ -8760,7 +8760,7 @@ const bt = ({
|
|
|
8760
8760
|
menuItems: c,
|
|
8761
8761
|
...n
|
|
8762
8762
|
}) => {
|
|
8763
|
-
const [s, o] =
|
|
8763
|
+
const [s, o] = q(null), [r, d] = q(-1), [i, m] = q(null), [h, C] = q({
|
|
8764
8764
|
container: null,
|
|
8765
8765
|
containerChildren: []
|
|
8766
8766
|
});
|
|
@@ -8771,12 +8771,12 @@ const bt = ({
|
|
|
8771
8771
|
"pds-dropdown__separator"
|
|
8772
8772
|
) && i == "up" ? o(s - 1) : h.containerChildren[s].children[0].focus());
|
|
8773
8773
|
}, [s]), ae(() => {
|
|
8774
|
-
r != -1 && (
|
|
8774
|
+
r != -1 && (f.current[r].children[0].blur(), f.current[r].children[0].focus({
|
|
8775
8775
|
focusVisible: !0
|
|
8776
8776
|
}));
|
|
8777
8777
|
}, [r]);
|
|
8778
|
-
const u = "pds-nav-menu", p = t !== "default" ? `${u}--${t}` : "",
|
|
8779
|
-
const _ =
|
|
8778
|
+
const u = "pds-nav-menu", p = t !== "default" ? `${u}--${t}` : "", f = de([]), b = (g) => {
|
|
8779
|
+
const _ = f.current.length - 1, M = {
|
|
8780
8780
|
ArrowRight: () => {
|
|
8781
8781
|
o(-1), d(r === -1 ? 1 : r === _ ? 0 : r + 1);
|
|
8782
8782
|
},
|
|
@@ -8786,7 +8786,7 @@ const bt = ({
|
|
|
8786
8786
|
ArrowDown: () => {
|
|
8787
8787
|
m("down");
|
|
8788
8788
|
const L = g.target.parentNode.children[1], D = g.target?.parentNode.children[1]?.children || g.target?.parentNode.parentNode.children[1]?.children;
|
|
8789
|
-
h.container != L && L != null &&
|
|
8789
|
+
h.container != L && L != null && C({
|
|
8790
8790
|
container: L,
|
|
8791
8791
|
containerChildren: [...D]
|
|
8792
8792
|
}), s === null || s == h.containerChildren.length - 1 ? o(0) : o(parseInt(s) + 1);
|
|
@@ -8814,7 +8814,7 @@ const bt = ({
|
|
|
8814
8814
|
{
|
|
8815
8815
|
key: `${_}-dropdown`,
|
|
8816
8816
|
ref: (w) => {
|
|
8817
|
-
|
|
8817
|
+
f.current[_] = w;
|
|
8818
8818
|
},
|
|
8819
8819
|
className: `${u}__item ${u}__item--top-level ${u}__item--has-children ${v(g) === !0 ? `${u}__item--active` : ""}`,
|
|
8820
8820
|
id: z
|
|
@@ -8827,7 +8827,7 @@ const bt = ({
|
|
|
8827
8827
|
{
|
|
8828
8828
|
key: _,
|
|
8829
8829
|
ref: (w) => {
|
|
8830
|
-
|
|
8830
|
+
f.current[_] = w;
|
|
8831
8831
|
},
|
|
8832
8832
|
className: `${u}__item ${u}__item--top-level ${u}__item--has-link ${v(g) === !0 ? `${u}__item--active` : ""}`,
|
|
8833
8833
|
id: z
|
|
@@ -8855,8 +8855,8 @@ const bt = ({
|
|
|
8855
8855
|
minFilterItems: n = 5,
|
|
8856
8856
|
noResultsText: s = "No results found"
|
|
8857
8857
|
}) => {
|
|
8858
|
-
const [o, r] =
|
|
8859
|
-
activeIndex:
|
|
8858
|
+
const [o, r] = q(c), [d, i] = q(""), m = c.length >= n, h = "pds-tab-menu", C = `${h}__dropdown-menu`, u = m ? `${C}--scroll` : null, p = `${h}__dropdown-item`, {
|
|
8859
|
+
activeIndex: f,
|
|
8860
8860
|
floatingStyles: b,
|
|
8861
8861
|
getFloatingProps: v,
|
|
8862
8862
|
getItemProps: E,
|
|
@@ -8872,7 +8872,7 @@ const bt = ({
|
|
|
8872
8872
|
placement: "bottom-start",
|
|
8873
8873
|
role: "listbox"
|
|
8874
8874
|
}), M = (I) => {
|
|
8875
|
-
I.preventDefault(), I.key === "Enter" && z.current[
|
|
8875
|
+
I.preventDefault(), I.key === "Enter" && z.current[f].querySelector("a")?.click(), I.key === "Tab" && I.shiftKey && m && document.getElementById("links-filter").focus();
|
|
8876
8876
|
}, L = (I, V) => qe(I.linkContent).toLowerCase().includes(V.toLowerCase()), D = (I) => {
|
|
8877
8877
|
const V = I.target.value;
|
|
8878
8878
|
i(V), r(c.filter((x) => L(x, V)));
|
|
@@ -8889,7 +8889,7 @@ const bt = ({
|
|
|
8889
8889
|
width: `${qe(
|
|
8890
8890
|
O.linkContent
|
|
8891
8891
|
).length + 2}ch`
|
|
8892
|
-
},
|
|
8892
|
+
}, j = /* @__PURE__ */ e.createElement(F, { className: `${h}__active-icon`, iconName: "check" }), Z = m && /* @__PURE__ */ e.createElement("div", { className: `${h}__filter` }, /* @__PURE__ */ e.createElement(
|
|
8893
8893
|
W2,
|
|
8894
8894
|
{
|
|
8895
8895
|
hasClearButton: !0,
|
|
@@ -8913,11 +8913,11 @@ const bt = ({
|
|
|
8913
8913
|
},
|
|
8914
8914
|
className: $([p, x]),
|
|
8915
8915
|
onKeyDown: M,
|
|
8916
|
-
tabIndex: V ===
|
|
8916
|
+
tabIndex: V === f ? 0 : -1,
|
|
8917
8917
|
...E()
|
|
8918
8918
|
},
|
|
8919
8919
|
I.linkContent,
|
|
8920
|
-
I.isActive &&
|
|
8920
|
+
I.isActive && j
|
|
8921
8921
|
);
|
|
8922
8922
|
});
|
|
8923
8923
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
@@ -8951,7 +8951,7 @@ const bt = ({
|
|
|
8951
8951
|
}
|
|
8952
8952
|
})
|
|
8953
8953
|
},
|
|
8954
|
-
/* @__PURE__ */ e.createElement("div", { style: { ...P } }, Z, /* @__PURE__ */ e.createElement("ul", { className: $([
|
|
8954
|
+
/* @__PURE__ */ e.createElement("div", { style: { ...P } }, Z, /* @__PURE__ */ e.createElement("ul", { className: $([C, u]) }, B.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: `${h}__no-results` }, s) : B))
|
|
8955
8955
|
));
|
|
8956
8956
|
}, q0 = ({
|
|
8957
8957
|
ariaLabel: a,
|
|
@@ -8964,11 +8964,11 @@ const bt = ({
|
|
|
8964
8964
|
dropdownSettings: i,
|
|
8965
8965
|
icon: m,
|
|
8966
8966
|
isActive: h,
|
|
8967
|
-
linkContent:
|
|
8967
|
+
linkContent: C,
|
|
8968
8968
|
links: u,
|
|
8969
8969
|
promoteActiveChildLink: p = !1
|
|
8970
8970
|
}) => {
|
|
8971
|
-
const
|
|
8971
|
+
const f = `${s}__item`, b = l1(u), v = (E, g) => {
|
|
8972
8972
|
let _ = null;
|
|
8973
8973
|
return $e(E) && (g ? _ = Ne(
|
|
8974
8974
|
E,
|
|
@@ -8990,11 +8990,11 @@ const bt = ({
|
|
|
8990
8990
|
"li",
|
|
8991
8991
|
{
|
|
8992
8992
|
className: $([
|
|
8993
|
-
|
|
8994
|
-
h ? `${
|
|
8993
|
+
f,
|
|
8994
|
+
h ? `${f}--active` : null
|
|
8995
8995
|
])
|
|
8996
8996
|
},
|
|
8997
|
-
v(p ? b :
|
|
8997
|
+
v(p ? b : C, m),
|
|
8998
8998
|
u && /* @__PURE__ */ e.createElement(
|
|
8999
8999
|
Pt,
|
|
9000
9000
|
{
|
|
@@ -9041,13 +9041,13 @@ const bt = ({
|
|
|
9041
9041
|
userName: s,
|
|
9042
9042
|
...o
|
|
9043
9043
|
}) => {
|
|
9044
|
-
const [r, d] =
|
|
9044
|
+
const [r, d] = q(null), [i, m] = q(!1), h = de([]), C = de([]), u = "pds-user-menu", p = `${u}__menu`, { context: f, floatingStyles: b, refs: v } = ke({
|
|
9045
9045
|
placement: "bottom-end",
|
|
9046
9046
|
open: i,
|
|
9047
9047
|
onOpenChange: m,
|
|
9048
9048
|
middleware: [xe(12), Re(), s2()],
|
|
9049
9049
|
whileElementsMounted: Ie
|
|
9050
|
-
}), E = u2(
|
|
9050
|
+
}), E = u2(f, { event: "mousedown" }), g = Oe(f), _ = l2(f, { role: "menu" }), N = de([]), z = z1(f, {
|
|
9051
9051
|
listRef: N,
|
|
9052
9052
|
activeIndex: r,
|
|
9053
9053
|
onNavigate: d,
|
|
@@ -9057,7 +9057,7 @@ const bt = ({
|
|
|
9057
9057
|
focusItemOnHover: !0
|
|
9058
9058
|
}), { getFloatingProps: w, getItemProps: k, getReferenceProps: P } = Ze(
|
|
9059
9059
|
[g, _, E, z]
|
|
9060
|
-
), { isMounted: M, styles: L } = Ke(
|
|
9060
|
+
), { isMounted: M, styles: L } = Ke(f, {
|
|
9061
9061
|
duration: { open: 300, close: 150 },
|
|
9062
9062
|
initial: { opacity: 0 },
|
|
9063
9063
|
open: { opacity: 1 },
|
|
@@ -9074,16 +9074,16 @@ const bt = ({
|
|
|
9074
9074
|
), H = /* @__PURE__ */ e.createElement("li", { className: `${u}__user-details`, role: "presentation" }, /* @__PURE__ */ e.createElement("div", { className: `${u}__user-name` }, s), /* @__PURE__ */ e.createElement("div", { className: `${u}__user-email` }, c));
|
|
9075
9075
|
t.forEach((I) => {
|
|
9076
9076
|
const V = I.id ? I.id : Ye();
|
|
9077
|
-
h.current.push(V),
|
|
9077
|
+
h.current.push(V), C.current.push(I);
|
|
9078
9078
|
});
|
|
9079
9079
|
const O = (I) => {
|
|
9080
|
-
const V = h.current.indexOf(I), x =
|
|
9080
|
+
const V = h.current.indexOf(I), x = C.current[V];
|
|
9081
9081
|
x.linkContent && !x.disabled && (N.current[V].querySelector("a").click(), m(!1)), x.callback && !x.disabled && (x.callback(), m(!1));
|
|
9082
9082
|
}, S = (I) => {
|
|
9083
9083
|
I.preventDefault(), I.key === "Enter" && O(I.currentTarget.id);
|
|
9084
9084
|
}, Y = (I) => {
|
|
9085
9085
|
O(I.currentTarget.id);
|
|
9086
|
-
},
|
|
9086
|
+
}, j = t.map((I, V) => {
|
|
9087
9087
|
const x = h.current[V], G = `${u}__item`, W = I.disabled ? `${G}--disabled` : null;
|
|
9088
9088
|
return /* @__PURE__ */ e.createElement(
|
|
9089
9089
|
"li",
|
|
@@ -9163,7 +9163,7 @@ const bt = ({
|
|
|
9163
9163
|
},
|
|
9164
9164
|
...w()
|
|
9165
9165
|
},
|
|
9166
|
-
/* @__PURE__ */ e.createElement("div", { style: { ...L } }, /* @__PURE__ */ e.createElement("ul", { className: p, role: "menu" }, H, /* @__PURE__ */ e.createElement("li", { role: "separator" }),
|
|
9166
|
+
/* @__PURE__ */ e.createElement("div", { style: { ...L } }, /* @__PURE__ */ e.createElement("ul", { className: p, role: "menu" }, H, /* @__PURE__ */ e.createElement("li", { role: "separator" }), j))
|
|
9167
9167
|
));
|
|
9168
9168
|
}, g1 = {
|
|
9169
9169
|
silver: { label: "Silver", color: "silver" },
|
|
@@ -9186,7 +9186,7 @@ const bt = ({
|
|
|
9186
9186
|
workspaceList: d = [],
|
|
9187
9187
|
...i
|
|
9188
9188
|
}) => {
|
|
9189
|
-
const [m, h] =
|
|
9189
|
+
const [m, h] = q(""), [C, u] = q(""), p = de(null), f = d.length >= o, b = "pds-workspace-selector", v = `${b}__menu`, E = f ? `${v}--scroll` : null, {
|
|
9190
9190
|
activeIndex: g,
|
|
9191
9191
|
floatingStyles: _,
|
|
9192
9192
|
getFloatingProps: N,
|
|
@@ -9198,7 +9198,7 @@ const bt = ({
|
|
|
9198
9198
|
setIsOpen: L,
|
|
9199
9199
|
transitionStyles: D
|
|
9200
9200
|
} = Ue({
|
|
9201
|
-
enableTypeahead: !
|
|
9201
|
+
enableTypeahead: !f,
|
|
9202
9202
|
role: "menu"
|
|
9203
9203
|
});
|
|
9204
9204
|
let H = d.find((x) => x.isActive);
|
|
@@ -9210,14 +9210,14 @@ const bt = ({
|
|
|
9210
9210
|
(G) => G.displayName?.toLowerCase().includes(x)
|
|
9211
9211
|
);
|
|
9212
9212
|
}, [d, m]), S = Me(() => {
|
|
9213
|
-
if (!
|
|
9214
|
-
const x =
|
|
9213
|
+
if (!C) return d;
|
|
9214
|
+
const x = C.toLowerCase();
|
|
9215
9215
|
return d.filter(
|
|
9216
9216
|
(G) => G.displayName?.toLowerCase().includes(x)
|
|
9217
9217
|
);
|
|
9218
|
-
}, [d,
|
|
9219
|
-
x.preventDefault(), x.key === "Enter" && (P.current[g]?.querySelector("a") || P.current[g]?.querySelector("button"))?.click(), x.key === "Tab" && (x.shiftKey ?
|
|
9220
|
-
},
|
|
9218
|
+
}, [d, C]), Y = (x) => {
|
|
9219
|
+
x.preventDefault(), x.key === "Enter" && (P.current[g]?.querySelector("a") || P.current[g]?.querySelector("button"))?.click(), x.key === "Tab" && (x.shiftKey ? f ? document.getElementById("workspace-filter")?.focus() : L(!1) : t ? p.current?.querySelector("a")?.focus() : L(!1));
|
|
9220
|
+
}, j = (x) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${b}__item-content` }, /* @__PURE__ */ e.createElement(
|
|
9221
9221
|
_2,
|
|
9222
9222
|
{
|
|
9223
9223
|
className: `${b}__list-avatar`,
|
|
@@ -9257,7 +9257,7 @@ const bt = ({
|
|
|
9257
9257
|
},
|
|
9258
9258
|
type: "button"
|
|
9259
9259
|
},
|
|
9260
|
-
|
|
9260
|
+
j(x)
|
|
9261
9261
|
) : K ? /* @__PURE__ */ e.createElement(
|
|
9262
9262
|
K,
|
|
9263
9263
|
{
|
|
@@ -9265,7 +9265,7 @@ const bt = ({
|
|
|
9265
9265
|
onClick: () => L(!1)
|
|
9266
9266
|
})
|
|
9267
9267
|
},
|
|
9268
|
-
|
|
9268
|
+
j(x)
|
|
9269
9269
|
) : null
|
|
9270
9270
|
);
|
|
9271
9271
|
}
|
|
@@ -9293,8 +9293,8 @@ const bt = ({
|
|
|
9293
9293
|
onClick: () => x.onRestrictedSelection(),
|
|
9294
9294
|
type: "button"
|
|
9295
9295
|
},
|
|
9296
|
-
|
|
9297
|
-
) : X ? /* @__PURE__ */ e.createElement(X, { ...Object.assign({}, x.workspaceLink?.props) },
|
|
9296
|
+
j(x)
|
|
9297
|
+
) : X ? /* @__PURE__ */ e.createElement(X, { ...Object.assign({}, x.workspaceLink?.props) }, j(x)) : null
|
|
9298
9298
|
);
|
|
9299
9299
|
}
|
|
9300
9300
|
), I = t && /* @__PURE__ */ e.createElement("div", { ref: p, className: `${b}__create-link` }, /* @__PURE__ */ e.createElement(
|
|
@@ -9322,7 +9322,7 @@ const bt = ({
|
|
|
9322
9322
|
size: "xs"
|
|
9323
9323
|
}
|
|
9324
9324
|
)) : null;
|
|
9325
|
-
return /* @__PURE__ */ e.createElement("span", { className: $([b, l]), ...i }, /* @__PURE__ */ e.createElement(g2, { label: V },
|
|
9325
|
+
return /* @__PURE__ */ e.createElement("span", { className: $([b, l]), ...i }, /* @__PURE__ */ e.createElement(g2, { label: V }, f && /* @__PURE__ */ e.createElement("div", { className: `${b}__filter` }, /* @__PURE__ */ e.createElement(
|
|
9326
9326
|
W2,
|
|
9327
9327
|
{
|
|
9328
9328
|
hasClearButton: !0,
|
|
@@ -9379,7 +9379,7 @@ const bt = ({
|
|
|
9379
9379
|
},
|
|
9380
9380
|
...N()
|
|
9381
9381
|
},
|
|
9382
|
-
|
|
9382
|
+
f && /* @__PURE__ */ e.createElement("div", { className: `${b}__filter` }, /* @__PURE__ */ e.createElement(
|
|
9383
9383
|
W2,
|
|
9384
9384
|
{
|
|
9385
9385
|
hasClearButton: !0,
|
|
@@ -9417,7 +9417,7 @@ const bt = ({
|
|
|
9417
9417
|
typeLabels: o = { ...k2, neutral: "Notice" },
|
|
9418
9418
|
...r
|
|
9419
9419
|
}) => {
|
|
9420
|
-
const d = t === "marketing", [i, m] =
|
|
9420
|
+
const d = t === "marketing", [i, m] = q(a), [h, C] = q(null), [u, p] = q(null), [f, b] = q({});
|
|
9421
9421
|
ae(() => {
|
|
9422
9422
|
m(a);
|
|
9423
9423
|
}, [a]);
|
|
@@ -9431,32 +9431,32 @@ const bt = ({
|
|
|
9431
9431
|
neutral: `${E}--neutral`,
|
|
9432
9432
|
warning: `${E}--warning`
|
|
9433
9433
|
}, N = i[0].type, z = N ? `${E}-group--${N}` : null, w = (D) => P2 - D, k = (D) => D === 0 ? 0 : -1, P = () => {
|
|
9434
|
-
|
|
9434
|
+
C(i[0].id), setTimeout(() => {
|
|
9435
9435
|
m((D) => [
|
|
9436
9436
|
...D.slice(1),
|
|
9437
9437
|
D[0]
|
|
9438
|
-
]),
|
|
9438
|
+
]), C(null);
|
|
9439
9439
|
}, T2);
|
|
9440
9440
|
}, M = () => {
|
|
9441
9441
|
b({
|
|
9442
9442
|
[i[0].id]: P2 + 2,
|
|
9443
9443
|
[i[v - 1].id]: P2 + 1
|
|
9444
9444
|
}), setTimeout(() => {
|
|
9445
|
-
|
|
9445
|
+
C(i[0].id);
|
|
9446
9446
|
}, Ht), setTimeout(() => {
|
|
9447
9447
|
m((D) => [
|
|
9448
9448
|
D[D.length - 1],
|
|
9449
9449
|
...D.slice(0, D.length - 1)
|
|
9450
|
-
]),
|
|
9450
|
+
]), C(null), b({});
|
|
9451
9451
|
}, T2);
|
|
9452
9452
|
}, L = (D, H) => {
|
|
9453
|
-
const { iconName: O, id: S, isDismissible: Y, message:
|
|
9453
|
+
const { iconName: O, id: S, isDismissible: Y, message: j, onDismiss: Z, type: B } = D, I = B === "critical" ? "alert" : "status", V = `${o[B]}: `, x = (W) => {
|
|
9454
9454
|
W.preventDefault(), p(S), setTimeout(() => {
|
|
9455
9455
|
Z?.(), p(null), m((y) => y.filter(
|
|
9456
9456
|
(K) => K.id !== S
|
|
9457
9457
|
));
|
|
9458
9458
|
}, T2);
|
|
9459
|
-
}, G =
|
|
9459
|
+
}, G = f[S] ?? w(H);
|
|
9460
9460
|
return /* @__PURE__ */ e.createElement(
|
|
9461
9461
|
"div",
|
|
9462
9462
|
{
|
|
@@ -9478,7 +9478,7 @@ const bt = ({
|
|
|
9478
9478
|
iconName: B === "neutral" ? O : It[B],
|
|
9479
9479
|
size: d ? "l" : "m"
|
|
9480
9480
|
}
|
|
9481
|
-
), /* @__PURE__ */ e.createElement("div", { className: `${E}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, V, " "),
|
|
9481
|
+
), /* @__PURE__ */ e.createElement("div", { className: `${E}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, V, " "), j)),
|
|
9482
9482
|
Y && /* @__PURE__ */ e.createElement(
|
|
9483
9483
|
"button",
|
|
9484
9484
|
{
|
|
@@ -9602,14 +9602,14 @@ const bt = ({
|
|
|
9602
9602
|
onViewAllClick: i,
|
|
9603
9603
|
showLoading: m = !1,
|
|
9604
9604
|
unreadCount: h,
|
|
9605
|
-
unreadLabel:
|
|
9605
|
+
unreadLabel: C = "unread",
|
|
9606
9606
|
viewAllText: u = "View all notifications",
|
|
9607
9607
|
...p
|
|
9608
9608
|
}) => {
|
|
9609
|
-
const [
|
|
9609
|
+
const [f, b] = q(!1), v = r.filter((V) => !V.read).length, g = (h !== void 0 && h > v ? h : v) > 0, _ = "pds-notifications-popover", N = r.slice(0, s), { context: z, floatingStyles: w, refs: k } = ke({
|
|
9610
9610
|
middleware: [xe(8)],
|
|
9611
9611
|
onOpenChange: b,
|
|
9612
|
-
open:
|
|
9612
|
+
open: f,
|
|
9613
9613
|
placement: "bottom-end",
|
|
9614
9614
|
whileElementsMounted: Ie
|
|
9615
9615
|
}), P = u2(z, { event: "mousedown" }), M = Oe(z), { getFloatingProps: L, getReferenceProps: D } = Ze([
|
|
@@ -9624,8 +9624,8 @@ const bt = ({
|
|
|
9624
9624
|
d && d(V), l && b(!1);
|
|
9625
9625
|
}, Y = () => {
|
|
9626
9626
|
i && i(), b(!1);
|
|
9627
|
-
},
|
|
9628
|
-
const x = `${_}__item`, G = `${V.type} notification: ${V.title}${V.siteName ? `, ${V.siteName}` : ""}, ${V.timestamp}${V.read ? "" : `, ${
|
|
9627
|
+
}, j = g ? `${a}, ${C}` : a, Z = N.map((V) => {
|
|
9628
|
+
const x = `${_}__item`, G = `${V.type} notification: ${V.title}${V.siteName ? `, ${V.siteName}` : ""}, ${V.timestamp}${V.read ? "" : `, ${C}`}`;
|
|
9629
9629
|
return /* @__PURE__ */ e.createElement("li", { key: V.id, className: x }, /* @__PURE__ */ e.createElement(
|
|
9630
9630
|
"button",
|
|
9631
9631
|
{
|
|
@@ -9674,9 +9674,9 @@ const bt = ({
|
|
|
9674
9674
|
{
|
|
9675
9675
|
ref: k.setReference,
|
|
9676
9676
|
"aria-controls": "notification-panel",
|
|
9677
|
-
"aria-expanded":
|
|
9677
|
+
"aria-expanded": f,
|
|
9678
9678
|
"aria-haspopup": "dialog",
|
|
9679
|
-
"aria-label":
|
|
9679
|
+
"aria-label": j,
|
|
9680
9680
|
className: `${_}__trigger`,
|
|
9681
9681
|
type: "button",
|
|
9682
9682
|
...D()
|
|
@@ -9719,7 +9719,7 @@ const bt = ({
|
|
|
9719
9719
|
typeLabels: m = k2,
|
|
9720
9720
|
...h
|
|
9721
9721
|
}) => {
|
|
9722
|
-
const
|
|
9722
|
+
const C = t === "marketing", u = de(null), p = "pds-section-message", f = {
|
|
9723
9723
|
error: `${p}--error`,
|
|
9724
9724
|
success: `${p}--success`,
|
|
9725
9725
|
warning: `${p}--warning`,
|
|
@@ -9735,8 +9735,8 @@ const bt = ({
|
|
|
9735
9735
|
}, z = (k) => {
|
|
9736
9736
|
r(k, n);
|
|
9737
9737
|
}, w = () => {
|
|
9738
|
-
N(), u.current.classList.toggle(
|
|
9739
|
-
u.current.classList.toggle(
|
|
9738
|
+
N(), u.current.classList.toggle(f.dismissing), setTimeout(() => {
|
|
9739
|
+
u.current.classList.toggle(f.dismissing), u.current.classList.toggle(f.dismissed);
|
|
9740
9740
|
}, 400);
|
|
9741
9741
|
};
|
|
9742
9742
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -9745,7 +9745,7 @@ const bt = ({
|
|
|
9745
9745
|
ref: u,
|
|
9746
9746
|
className: $([
|
|
9747
9747
|
p,
|
|
9748
|
-
|
|
9748
|
+
f[i],
|
|
9749
9749
|
b,
|
|
9750
9750
|
v,
|
|
9751
9751
|
a ?? ""
|
|
@@ -9759,7 +9759,7 @@ const bt = ({
|
|
|
9759
9759
|
F,
|
|
9760
9760
|
{
|
|
9761
9761
|
iconName: `${i}` in A2 ? A2[i] : A2.info,
|
|
9762
|
-
size:
|
|
9762
|
+
size: C ? "l" : "m"
|
|
9763
9763
|
}
|
|
9764
9764
|
)), /* @__PURE__ */ e.createElement("div", { className: `${p}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, g), d && /* @__PURE__ */ e.createElement("div", { className: `${p}__title` }, d), /* @__PURE__ */ e.createElement("div", { className: `${p}__message` }, _))),
|
|
9765
9765
|
(l || s) && /* @__PURE__ */ e.createElement("div", { className: `${p}__actions` }, l && /* @__PURE__ */ e.createElement(
|
|
@@ -9767,7 +9767,7 @@ const bt = ({
|
|
|
9767
9767
|
{
|
|
9768
9768
|
...l,
|
|
9769
9769
|
className: `${p}__cta`,
|
|
9770
|
-
size:
|
|
9770
|
+
size: C ? "m" : "s",
|
|
9771
9771
|
variant: "secondary"
|
|
9772
9772
|
}
|
|
9773
9773
|
), s && /* @__PURE__ */ e.createElement(
|
|
@@ -9776,7 +9776,7 @@ const bt = ({
|
|
|
9776
9776
|
ariaLabel: c,
|
|
9777
9777
|
className: `${p}__dismiss`,
|
|
9778
9778
|
onClick: w,
|
|
9779
|
-
size:
|
|
9779
|
+
size: C ? "xl" : "l"
|
|
9780
9780
|
}
|
|
9781
9781
|
))
|
|
9782
9782
|
);
|
|
@@ -9845,10 +9845,10 @@ const bt = ({
|
|
|
9845
9845
|
success: `${r}--success`,
|
|
9846
9846
|
warning: `${r}--warning`,
|
|
9847
9847
|
working: `${r}--working`
|
|
9848
|
-
}, i = `${o[s]} `, { labelStrings: m } = K2(l4), [h,
|
|
9849
|
-
|
|
9850
|
-
},
|
|
9851
|
-
|
|
9848
|
+
}, i = `${o[s]} `, { labelStrings: m } = K2(l4), [h, C] = q(!1), u = n !== void 0 && s !== "critical" && s !== "working" && typeof a == "number", p = () => {
|
|
9849
|
+
C(!0), f1.pause({ id: n });
|
|
9850
|
+
}, f = () => {
|
|
9851
|
+
C(!1), f1.play({ id: n });
|
|
9852
9852
|
};
|
|
9853
9853
|
return /* @__PURE__ */ e.createElement(
|
|
9854
9854
|
"div",
|
|
@@ -9870,7 +9870,7 @@ const bt = ({
|
|
|
9870
9870
|
{
|
|
9871
9871
|
"aria-label": h ? m.resume : m.pause,
|
|
9872
9872
|
className: `${r}__pause-button`,
|
|
9873
|
-
onClick: h ?
|
|
9873
|
+
onClick: h ? f : p,
|
|
9874
9874
|
type: "button"
|
|
9875
9875
|
},
|
|
9876
9876
|
/* @__PURE__ */ e.createElement(F, { iconName: h ? "play" : "pause" })
|
|
@@ -9924,19 +9924,19 @@ const J0 = () => {
|
|
|
9924
9924
|
const i = Math.max(l - a, 1), m = Math.min(
|
|
9925
9925
|
l + a,
|
|
9926
9926
|
s
|
|
9927
|
-
), h = i > 2,
|
|
9928
|
-
if (!h &&
|
|
9927
|
+
), h = i > 2, C = m < s - 2;
|
|
9928
|
+
if (!h && C) {
|
|
9929
9929
|
const u = 3 + 2 * a;
|
|
9930
9930
|
return [...C2(1, u), i2, s];
|
|
9931
9931
|
}
|
|
9932
|
-
if (h && !
|
|
9932
|
+
if (h && !C) {
|
|
9933
9933
|
const u = 3 + 2 * a, p = C2(
|
|
9934
9934
|
s - u + 1,
|
|
9935
9935
|
s
|
|
9936
9936
|
);
|
|
9937
9937
|
return [r, i2, ...p];
|
|
9938
9938
|
}
|
|
9939
|
-
if (h &&
|
|
9939
|
+
if (h && C) {
|
|
9940
9940
|
const u = C2(i, m);
|
|
9941
9941
|
return [
|
|
9942
9942
|
r,
|
|
@@ -9967,18 +9967,18 @@ const J0 = () => {
|
|
|
9967
9967
|
totalItemCount: i,
|
|
9968
9968
|
bufferCount: a,
|
|
9969
9969
|
itemsPerPage: s
|
|
9970
|
-
}),
|
|
9970
|
+
}), C = h[h.length - 1], u = () => {
|
|
9971
9971
|
r(t + 1);
|
|
9972
9972
|
}, p = () => {
|
|
9973
9973
|
r(t - 1);
|
|
9974
|
-
},
|
|
9974
|
+
}, f = "pds-pagination", b = `${f}__item`, v = `${b}--current`;
|
|
9975
9975
|
return t === 0 || h.length < 2 ? null : /* @__PURE__ */ e.createElement(
|
|
9976
9976
|
"nav",
|
|
9977
9977
|
{
|
|
9978
9978
|
"aria-labelledby": "pagination",
|
|
9979
9979
|
className: $([
|
|
9980
|
-
|
|
9981
|
-
d === "m" ? `${
|
|
9980
|
+
f,
|
|
9981
|
+
d === "m" ? `${f}--m` : null,
|
|
9982
9982
|
l ?? ""
|
|
9983
9983
|
]),
|
|
9984
9984
|
...m
|
|
@@ -9986,14 +9986,14 @@ const J0 = () => {
|
|
|
9986
9986
|
/* @__PURE__ */ e.createElement(
|
|
9987
9987
|
c2,
|
|
9988
9988
|
{
|
|
9989
|
-
baseClass:
|
|
9989
|
+
baseClass: f,
|
|
9990
9990
|
className: "visually-hidden",
|
|
9991
9991
|
id: "pagination",
|
|
9992
9992
|
level: c
|
|
9993
9993
|
},
|
|
9994
9994
|
n
|
|
9995
9995
|
),
|
|
9996
|
-
/* @__PURE__ */ e.createElement("ul", { className: `${
|
|
9996
|
+
/* @__PURE__ */ e.createElement("ul", { className: `${f}__list` }, t !== 1 && /* @__PURE__ */ e.createElement("li", { className: $([b, `${b}--prev`]) }, /* @__PURE__ */ e.createElement(
|
|
9997
9997
|
we,
|
|
9998
9998
|
{
|
|
9999
9999
|
content: o.previous,
|
|
@@ -10032,7 +10032,7 @@ const J0 = () => {
|
|
|
10032
10032
|
},
|
|
10033
10033
|
E
|
|
10034
10034
|
)
|
|
10035
|
-
)), t !==
|
|
10035
|
+
)), t !== C && /* @__PURE__ */ e.createElement("li", { className: $([b, `${b}--next`]) }, /* @__PURE__ */ e.createElement(
|
|
10036
10036
|
we,
|
|
10037
10037
|
{
|
|
10038
10038
|
content: o.next,
|
|
@@ -10068,12 +10068,12 @@ const J0 = () => {
|
|
|
10068
10068
|
() => Math.ceil(r / n),
|
|
10069
10069
|
[r, n]
|
|
10070
10070
|
), h = Me(
|
|
10071
|
-
() => Array.from({ length: m }, (
|
|
10071
|
+
() => Array.from({ length: m }, (f, b) => ({
|
|
10072
10072
|
label: String(b + 1),
|
|
10073
10073
|
value: String(b + 1)
|
|
10074
10074
|
})),
|
|
10075
10075
|
[m]
|
|
10076
|
-
),
|
|
10076
|
+
), C = l <= 1, u = l >= m, p = "pds-pagination-compact";
|
|
10077
10077
|
return /* @__PURE__ */ e.createElement(
|
|
10078
10078
|
"nav",
|
|
10079
10079
|
{
|
|
@@ -10097,7 +10097,7 @@ const J0 = () => {
|
|
|
10097
10097
|
autoWidth: !0,
|
|
10098
10098
|
id: i,
|
|
10099
10099
|
label: s.pageSelect,
|
|
10100
|
-
onOptionSelect: (
|
|
10100
|
+
onOptionSelect: (f) => o(Number(f.value)),
|
|
10101
10101
|
options: h,
|
|
10102
10102
|
showLabel: !1,
|
|
10103
10103
|
size: "s",
|
|
@@ -10112,13 +10112,13 @@ const J0 = () => {
|
|
|
10112
10112
|
customTrigger: /* @__PURE__ */ e.createElement(
|
|
10113
10113
|
"button",
|
|
10114
10114
|
{
|
|
10115
|
-
"aria-disabled":
|
|
10115
|
+
"aria-disabled": C ? !0 : void 0,
|
|
10116
10116
|
"aria-label": s.previous,
|
|
10117
10117
|
className: $([
|
|
10118
10118
|
`${p}__btn`,
|
|
10119
|
-
|
|
10119
|
+
C ? `${p}__btn--disabled` : null
|
|
10120
10120
|
]),
|
|
10121
|
-
onClick:
|
|
10121
|
+
onClick: C ? void 0 : () => o(l - 1),
|
|
10122
10122
|
type: "button"
|
|
10123
10123
|
},
|
|
10124
10124
|
/* @__PURE__ */ e.createElement(F, { iconName: "angleLeft", size: "m" })
|
|
@@ -10164,7 +10164,7 @@ const J0 = () => {
|
|
|
10164
10164
|
const h = Me(
|
|
10165
10165
|
() => Math.ceil(i / n),
|
|
10166
10166
|
[i, n]
|
|
10167
|
-
),
|
|
10167
|
+
), C = l <= 1, u = l >= h, p = "pds-pagination-mini";
|
|
10168
10168
|
return /* @__PURE__ */ e.createElement(
|
|
10169
10169
|
"nav",
|
|
10170
10170
|
{
|
|
@@ -10182,7 +10182,7 @@ const J0 = () => {
|
|
|
10182
10182
|
},
|
|
10183
10183
|
c
|
|
10184
10184
|
),
|
|
10185
|
-
!
|
|
10185
|
+
!C && /* @__PURE__ */ e.createElement(
|
|
10186
10186
|
"button",
|
|
10187
10187
|
{
|
|
10188
10188
|
className: $([
|
|
@@ -10218,20 +10218,20 @@ const J0 = () => {
|
|
|
10218
10218
|
summary: s,
|
|
10219
10219
|
...o
|
|
10220
10220
|
}) => {
|
|
10221
|
-
const [r, d] =
|
|
10221
|
+
const [r, d] = q(c), m = de(
|
|
10222
10222
|
t || `expansion-panel-${Ye()}`
|
|
10223
|
-
).current, h = "pds-expansion-panel",
|
|
10223
|
+
).current, h = "pds-expansion-panel", C = n ? null : `${h}--no-border`, u = de(null);
|
|
10224
10224
|
return ae(() => {
|
|
10225
10225
|
const p = u.current;
|
|
10226
10226
|
if (!p) return;
|
|
10227
|
-
const
|
|
10227
|
+
const f = (b) => {
|
|
10228
10228
|
b.preventDefault(), d((v) => !v);
|
|
10229
10229
|
};
|
|
10230
|
-
return p.addEventListener("click",
|
|
10230
|
+
return p.addEventListener("click", f), () => p.removeEventListener("click", f);
|
|
10231
10231
|
}, []), /* @__PURE__ */ e.createElement(
|
|
10232
10232
|
"div",
|
|
10233
10233
|
{
|
|
10234
|
-
className: $([h,
|
|
10234
|
+
className: $([h, C, l]),
|
|
10235
10235
|
...o
|
|
10236
10236
|
},
|
|
10237
10237
|
/* @__PURE__ */ e.createElement("details", { key: m, id: m, open: r }, /* @__PURE__ */ e.createElement("summary", { ref: u }, /* @__PURE__ */ e.createElement("span", null, s), /* @__PURE__ */ e.createElement(
|
|
@@ -10303,15 +10303,15 @@ const J0 = () => {
|
|
|
10303
10303
|
isExpandable: c = !1,
|
|
10304
10304
|
...n
|
|
10305
10305
|
}) => {
|
|
10306
|
-
const s = "pds-panel-row", [o, r] =
|
|
10307
|
-
const
|
|
10308
|
-
if (!
|
|
10306
|
+
const s = "pds-panel-row", [o, r] = q(!1), d = de(null), i = de(null), m = Fe(a), h = m["items-left"], C = m["items-right"], u = m["items-below"], p = () => {
|
|
10307
|
+
const f = i.current, b = d.current;
|
|
10308
|
+
if (!f || !b) return;
|
|
10309
10309
|
const v = !o;
|
|
10310
|
-
r(v), v ? (Object.assign(
|
|
10310
|
+
r(v), v ? (Object.assign(f.style, {
|
|
10311
10311
|
display: "block",
|
|
10312
10312
|
height: "auto",
|
|
10313
10313
|
opacity: "1"
|
|
10314
|
-
}), b.classList.add("is-expanded")) : (Object.assign(
|
|
10314
|
+
}), b.classList.add("is-expanded")) : (Object.assign(f.style, {
|
|
10315
10315
|
height: "0",
|
|
10316
10316
|
opacity: "0",
|
|
10317
10317
|
display: "none"
|
|
@@ -10333,7 +10333,7 @@ const J0 = () => {
|
|
|
10333
10333
|
])
|
|
10334
10334
|
},
|
|
10335
10335
|
h && /* @__PURE__ */ e.createElement("div", { className: `${s}__items ${s}__items--left` }, h),
|
|
10336
|
-
|
|
10336
|
+
C && /* @__PURE__ */ e.createElement("div", { className: `${s}__items ${s}__items--right` }, C),
|
|
10337
10337
|
c && /* @__PURE__ */ e.createElement(
|
|
10338
10338
|
"button",
|
|
10339
10339
|
{
|
|
@@ -10376,12 +10376,12 @@ const J0 = () => {
|
|
|
10376
10376
|
setPopoverIsOpen: m = () => {
|
|
10377
10377
|
},
|
|
10378
10378
|
title: h,
|
|
10379
|
-
triggerAccessibleText:
|
|
10379
|
+
triggerAccessibleText: C = "Show more information",
|
|
10380
10380
|
triggerIcon: u = "circleInfo",
|
|
10381
10381
|
triggerIconSize: p = "m",
|
|
10382
|
-
...
|
|
10382
|
+
...f
|
|
10383
10383
|
}) => {
|
|
10384
|
-
const [b, v] =
|
|
10384
|
+
const [b, v] = q(i);
|
|
10385
10385
|
ae(() => {
|
|
10386
10386
|
v(i);
|
|
10387
10387
|
}, [i]), ae(() => {
|
|
@@ -10409,7 +10409,7 @@ const J0 = () => {
|
|
|
10409
10409
|
D,
|
|
10410
10410
|
H,
|
|
10411
10411
|
O
|
|
10412
|
-
]),
|
|
10412
|
+
]), j = P.arrow?.x ?? 0, Z = P.arrow?.y ?? 0, B = j + C1 / 2, I = Z + je, { isMounted: V } = Ke(w, {
|
|
10413
10413
|
initial: {
|
|
10414
10414
|
transform: "scale(0)"
|
|
10415
10415
|
},
|
|
@@ -10422,7 +10422,7 @@ const J0 = () => {
|
|
|
10422
10422
|
}[x]
|
|
10423
10423
|
})
|
|
10424
10424
|
});
|
|
10425
|
-
return /* @__PURE__ */ e.createElement("div", { className: $([g, a]), ...
|
|
10425
|
+
return /* @__PURE__ */ e.createElement("div", { className: $([g, a]), ...f }, /* @__PURE__ */ e.createElement(
|
|
10426
10426
|
"span",
|
|
10427
10427
|
{
|
|
10428
10428
|
ref: M.setReference,
|
|
@@ -10430,9 +10430,9 @@ const J0 = () => {
|
|
|
10430
10430
|
role: "button",
|
|
10431
10431
|
tabIndex: 0,
|
|
10432
10432
|
...Y(),
|
|
10433
|
-
...
|
|
10433
|
+
...f
|
|
10434
10434
|
},
|
|
10435
|
-
n ? /* @__PURE__ */ e.createElement("span", { className: _ }, n) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" },
|
|
10435
|
+
n ? /* @__PURE__ */ e.createElement("span", { className: _ }, n) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, C), /* @__PURE__ */ e.createElement(
|
|
10436
10436
|
F,
|
|
10437
10437
|
{
|
|
10438
10438
|
className: `${g}__icon`,
|
|
@@ -10504,27 +10504,27 @@ const J0 = () => {
|
|
|
10504
10504
|
size: i = "m",
|
|
10505
10505
|
...m
|
|
10506
10506
|
}) => {
|
|
10507
|
-
const h = t || Ye(),
|
|
10508
|
-
`${
|
|
10509
|
-
i !== "m" ? `${
|
|
10510
|
-
]),
|
|
10507
|
+
const h = t || Ye(), C = "pds-progress-bar", u = r ? `${C}__label` : "visually-hidden", p = $([
|
|
10508
|
+
`${C}__track`,
|
|
10509
|
+
i !== "m" ? `${C}__track--${i}` : null
|
|
10510
|
+
]), f = o > 100 ? 100 : o;
|
|
10511
10511
|
let b = "neutral";
|
|
10512
10512
|
l.forEach((_) => {
|
|
10513
10513
|
o >= _.percentage && (b = _.colorType);
|
|
10514
10514
|
});
|
|
10515
|
-
const v = /* @__PURE__ */ e.createElement("div", { className: `${
|
|
10515
|
+
const v = /* @__PURE__ */ e.createElement("div", { className: `${C}__message` }, n), E = n && s === "above", g = n && s === "below";
|
|
10516
10516
|
return /* @__PURE__ */ e.createElement(
|
|
10517
10517
|
"div",
|
|
10518
10518
|
{
|
|
10519
|
-
className: $([
|
|
10520
|
-
style: { "--bar-percentage": `${
|
|
10519
|
+
className: $([C, a]),
|
|
10520
|
+
style: { "--bar-percentage": `${f}%` },
|
|
10521
10521
|
...m
|
|
10522
10522
|
},
|
|
10523
10523
|
/* @__PURE__ */ e.createElement("div", { className: u, id: h }, c),
|
|
10524
|
-
(E || d) && /* @__PURE__ */ e.createElement("div", { className: `${
|
|
10524
|
+
(E || d) && /* @__PURE__ */ e.createElement("div", { className: `${C}__details` }, E && v, d && /* @__PURE__ */ e.createElement(
|
|
10525
10525
|
"div",
|
|
10526
10526
|
{
|
|
10527
|
-
className: `${
|
|
10527
|
+
className: `${C}__percentage`,
|
|
10528
10528
|
style: {
|
|
10529
10529
|
color: `hsl(from var(${v1[b]}) h s calc(l - 7))`
|
|
10530
10530
|
}
|
|
@@ -10532,20 +10532,20 @@ const J0 = () => {
|
|
|
10532
10532
|
o,
|
|
10533
10533
|
"%"
|
|
10534
10534
|
)),
|
|
10535
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
10535
|
+
/* @__PURE__ */ e.createElement("div", { className: `${C}__wrapper` }, /* @__PURE__ */ e.createElement(
|
|
10536
10536
|
"div",
|
|
10537
10537
|
{
|
|
10538
10538
|
"aria-labelledby": h,
|
|
10539
|
-
"aria-valuenow":
|
|
10539
|
+
"aria-valuenow": f,
|
|
10540
10540
|
className: p,
|
|
10541
10541
|
role: "progressbar"
|
|
10542
10542
|
},
|
|
10543
|
-
|
|
10543
|
+
f > 0 && /* @__PURE__ */ e.createElement(
|
|
10544
10544
|
"div",
|
|
10545
10545
|
{
|
|
10546
|
-
className: `${
|
|
10546
|
+
className: `${C}__bar`,
|
|
10547
10547
|
style: {
|
|
10548
|
-
width: `${
|
|
10548
|
+
width: `${f}%`,
|
|
10549
10549
|
backgroundColor: `var(${v1[b]})`
|
|
10550
10550
|
}
|
|
10551
10551
|
}
|
|
@@ -10564,13 +10564,13 @@ const J0 = () => {
|
|
|
10564
10564
|
size: r = "m",
|
|
10565
10565
|
...d
|
|
10566
10566
|
}) => {
|
|
10567
|
-
const i = l || Ye(), m = "pds-progress-ring", h = s ? `${m}__label` : "visually-hidden",
|
|
10567
|
+
const i = l || Ye(), m = "pds-progress-ring", h = s ? `${m}__label` : "visually-hidden", C = $([
|
|
10568
10568
|
`${m}__loading-text`,
|
|
10569
10569
|
r !== "m" ? `${m}__loading-text--${r}` : null
|
|
10570
10570
|
]), u = (_) => _ * 16;
|
|
10571
|
-
let p = u(parseFloat(X2)),
|
|
10572
|
-
r === "s" && (p = u(parseFloat(Q2)),
|
|
10573
|
-
const b = p / 2 -
|
|
10571
|
+
let p = u(parseFloat(X2)), f = 7;
|
|
10572
|
+
r === "s" && (p = u(parseFloat(Q2)), f = f / 1.25), r === "l" && (p = u(parseFloat(S1)), f = f * 1.25);
|
|
10573
|
+
const b = p / 2 - f / 2, v = 2 * Math.PI * b, E = v - v * n / 100;
|
|
10574
10574
|
let g;
|
|
10575
10575
|
return t ? g = t : o ? g = `${n}%` : g = "", /* @__PURE__ */ e.createElement(
|
|
10576
10576
|
"div",
|
|
@@ -10607,7 +10607,7 @@ const J0 = () => {
|
|
|
10607
10607
|
cx: p / 2,
|
|
10608
10608
|
cy: p / 2,
|
|
10609
10609
|
r: b,
|
|
10610
|
-
strokeWidth:
|
|
10610
|
+
strokeWidth: f
|
|
10611
10611
|
}
|
|
10612
10612
|
),
|
|
10613
10613
|
/* @__PURE__ */ e.createElement(
|
|
@@ -10619,7 +10619,7 @@ const J0 = () => {
|
|
|
10619
10619
|
r: b,
|
|
10620
10620
|
strokeDasharray: v,
|
|
10621
10621
|
strokeDashoffset: E,
|
|
10622
|
-
strokeWidth:
|
|
10622
|
+
strokeWidth: f,
|
|
10623
10623
|
transform: `rotate(-90 ${p / 2} ${p / 2})`
|
|
10624
10624
|
}
|
|
10625
10625
|
),
|
|
@@ -10627,7 +10627,7 @@ const J0 = () => {
|
|
|
10627
10627
|
"text",
|
|
10628
10628
|
{
|
|
10629
10629
|
alignmentBaseline: "middle",
|
|
10630
|
-
className:
|
|
10630
|
+
className: C,
|
|
10631
10631
|
dominantBaseline: "middle",
|
|
10632
10632
|
textAnchor: "middle",
|
|
10633
10633
|
x: "50%",
|
|
@@ -10688,7 +10688,7 @@ const J0 = () => {
|
|
|
10688
10688
|
}
|
|
10689
10689
|
return d.checked;
|
|
10690
10690
|
}
|
|
10691
|
-
}, m = "pds-status-checker", h = `${m}--${a}`,
|
|
10691
|
+
}, m = "pds-status-checker", h = `${m}--${a}`, C = $([
|
|
10692
10692
|
`${m}__button`,
|
|
10693
10693
|
o === "working" ? `${m}__button--spinning` : ""
|
|
10694
10694
|
]), u = t !== null && t > 0 ? `${t}rem` : "100%", p = /* @__PURE__ */ e.createElement("span", { className: `${m}__tooltip-icon` }, /* @__PURE__ */ e.createElement(
|
|
@@ -10698,7 +10698,7 @@ const J0 = () => {
|
|
|
10698
10698
|
iconName: "rotate",
|
|
10699
10699
|
size: "m"
|
|
10700
10700
|
}
|
|
10701
|
-
)),
|
|
10701
|
+
)), f = /* @__PURE__ */ e.createElement("span", { className: `${m}__label` }, i());
|
|
10702
10702
|
return /* @__PURE__ */ e.createElement(
|
|
10703
10703
|
"div",
|
|
10704
10704
|
{
|
|
@@ -10711,11 +10711,11 @@ const J0 = () => {
|
|
|
10711
10711
|
{
|
|
10712
10712
|
"aria-label": d.ariaLabel,
|
|
10713
10713
|
"aria-live": "polite",
|
|
10714
|
-
className:
|
|
10714
|
+
className: C,
|
|
10715
10715
|
onClick: s,
|
|
10716
10716
|
type: "button"
|
|
10717
10717
|
},
|
|
10718
|
-
a === "right" &&
|
|
10718
|
+
a === "right" && f,
|
|
10719
10719
|
/* @__PURE__ */ e.createElement(
|
|
10720
10720
|
we,
|
|
10721
10721
|
{
|
|
@@ -10725,7 +10725,7 @@ const J0 = () => {
|
|
|
10725
10725
|
triggerIconSize: "s"
|
|
10726
10726
|
}
|
|
10727
10727
|
),
|
|
10728
|
-
a === "left" &&
|
|
10728
|
+
a === "left" && f
|
|
10729
10729
|
)
|
|
10730
10730
|
);
|
|
10731
10731
|
}, ma = ({
|
|
@@ -10768,14 +10768,14 @@ const J0 = () => {
|
|
|
10768
10768
|
},
|
|
10769
10769
|
...c
|
|
10770
10770
|
}) => {
|
|
10771
|
-
const n = "pds-stepper", s = "pds-stepper-mobile", o = de(null), [r] = H1(o), d = r.width, i = parseFloat(k4) * 16, m = -36, h = 2,
|
|
10771
|
+
const n = "pds-stepper", s = "pds-stepper-mobile", o = de(null), [r] = H1(o), d = r.width, i = parseFloat(k4) * 16, m = -36, h = 2, C = 5, u = l.length, p = l.map((v) => v.isCurrent).lastIndexOf(!0), f = l.map((v, E) => {
|
|
10772
10772
|
const g = E + 1, _ = E === p, N = v.isComplete || E < p, z = v.hasError && _, k = (d - u * i) / (u + (u - 2)), P = i + k * 2, M = i + k, L = k + m * -1, D = E === 0, H = E === u - 1;
|
|
10773
10773
|
let O = P;
|
|
10774
10774
|
(D || H) && (O = M);
|
|
10775
10775
|
const S = `${n}__step`, Y = [S];
|
|
10776
10776
|
_ && Y.push(`${S}--current`), N && Y.push(`${S}--complete`), z && Y.push(`${S}--error`);
|
|
10777
|
-
let
|
|
10778
|
-
N && (
|
|
10777
|
+
let j = `${t.step} ${g}`;
|
|
10778
|
+
N && (j = `${t.step} ${g}, ${t.completed}`), z && (j = `${t.step} ${g}, ${t.hasError}`);
|
|
10779
10779
|
const Z = N ? /* @__PURE__ */ e.createElement("div", { "aria-hidden": "true", className: `${n}__step-indicator` }, /* @__PURE__ */ e.createElement(
|
|
10780
10780
|
"svg",
|
|
10781
10781
|
{
|
|
@@ -10810,7 +10810,7 @@ const J0 = () => {
|
|
|
10810
10810
|
{
|
|
10811
10811
|
key: v.id,
|
|
10812
10812
|
"aria-current": _ ? "step" : null,
|
|
10813
|
-
"aria-label":
|
|
10813
|
+
"aria-label": j,
|
|
10814
10814
|
"aria-posinset": g,
|
|
10815
10815
|
"aria-setsize": u,
|
|
10816
10816
|
className: $(Y),
|
|
@@ -10872,7 +10872,7 @@ const J0 = () => {
|
|
|
10872
10872
|
);
|
|
10873
10873
|
}
|
|
10874
10874
|
});
|
|
10875
|
-
if (u >= h && u <=
|
|
10875
|
+
if (u >= h && u <= C)
|
|
10876
10876
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
10877
10877
|
"div",
|
|
10878
10878
|
{
|
|
@@ -10880,7 +10880,7 @@ const J0 = () => {
|
|
|
10880
10880
|
"data-steps": u,
|
|
10881
10881
|
...c
|
|
10882
10882
|
},
|
|
10883
|
-
/* @__PURE__ */ e.createElement("ol", { ref: o, className: `${n}__steps` },
|
|
10883
|
+
/* @__PURE__ */ e.createElement("ol", { ref: o, className: `${n}__steps` }, f)
|
|
10884
10884
|
), /* @__PURE__ */ e.createElement(
|
|
10885
10885
|
"div",
|
|
10886
10886
|
{
|
|
@@ -10902,8 +10902,8 @@ const J0 = () => {
|
|
|
10902
10902
|
stepContent: d,
|
|
10903
10903
|
...i
|
|
10904
10904
|
}) => {
|
|
10905
|
-
const m = "pds-vert-stepper", h = `${m}__step`,
|
|
10906
|
-
return o &&
|
|
10905
|
+
const m = "pds-vert-stepper", h = `${m}__step`, C = [h];
|
|
10906
|
+
return o && C.push(`${h}--current`), s && C.push(`${h}--complete`), c && C.push(`${h}--error`), /* @__PURE__ */ e.createElement("li", { className: $([...C]), id: n, ...i }, /* @__PURE__ */ e.createElement("div", { className: `${m}__step-header` }, /* @__PURE__ */ e.createElement("div", { "aria-hidden": "true", className: `${m}__step-indicator` }, s && /* @__PURE__ */ e.createElement(
|
|
10907
10907
|
"svg",
|
|
10908
10908
|
{
|
|
10909
10909
|
"aria-hidden": "true",
|
|
@@ -10927,22 +10927,22 @@ const J0 = () => {
|
|
|
10927
10927
|
...c
|
|
10928
10928
|
}) => {
|
|
10929
10929
|
const n = "pds-vert-stepper", r = t.length, d = t.findIndex((h) => h.isCurrent), i = t.map((m, h) => {
|
|
10930
|
-
const
|
|
10931
|
-
let v = `${l.step} ${
|
|
10932
|
-
return
|
|
10930
|
+
const C = h + 1, u = h === d, p = h === 0, f = m.isComplete || !1, b = m.hasError && u;
|
|
10931
|
+
let v = `${l.step} ${C}`;
|
|
10932
|
+
return f && (v = `${l.step} ${C}, ${l.completed}`), b && (v = `${l.step} ${C}, ${l.hasError}`), /* @__PURE__ */ e.createElement(
|
|
10933
10933
|
Wt,
|
|
10934
10934
|
{
|
|
10935
|
-
key: `s${
|
|
10935
|
+
key: `s${C}`,
|
|
10936
10936
|
_isFirstStep: p,
|
|
10937
10937
|
"aria-current": u ? "step" : null,
|
|
10938
10938
|
"aria-label": v,
|
|
10939
|
-
"aria-posinset":
|
|
10939
|
+
"aria-posinset": C,
|
|
10940
10940
|
"aria-setsize": r,
|
|
10941
10941
|
backButton: m.backButton,
|
|
10942
10942
|
forwardButton: m.forwardButton,
|
|
10943
10943
|
hasError: b,
|
|
10944
10944
|
id: m.id,
|
|
10945
|
-
isComplete:
|
|
10945
|
+
isComplete: f,
|
|
10946
10946
|
isCurrent: u,
|
|
10947
10947
|
label: m.label,
|
|
10948
10948
|
stepContent: m.stepContent
|
|
@@ -10964,10 +10964,10 @@ const J0 = () => {
|
|
|
10964
10964
|
getRowId: i,
|
|
10965
10965
|
getSelectRowLabel: m = (L, D) => `Select row ${D}`,
|
|
10966
10966
|
getSortLabel: h = (L) => `Sort by ${L}`,
|
|
10967
|
-
isLoading:
|
|
10967
|
+
isLoading: C = !1,
|
|
10968
10968
|
itemsPerPage: u,
|
|
10969
10969
|
loadingRowCount: p = 5,
|
|
10970
|
-
onPageChange:
|
|
10970
|
+
onPageChange: f,
|
|
10971
10971
|
onPageSizeChange: b,
|
|
10972
10972
|
onRowSelectionChange: v,
|
|
10973
10973
|
onSort: E,
|
|
@@ -10980,25 +10980,33 @@ const J0 = () => {
|
|
|
10980
10980
|
totalItemCount: P,
|
|
10981
10981
|
...M
|
|
10982
10982
|
}) => {
|
|
10983
|
-
const L = "pds-table", D = O2(), H = O2(), O = E !== void 0, S =
|
|
10983
|
+
const L = "pds-table", D = O2(), H = O2(), O = E !== void 0, S = f !== void 0, Y = b !== void 0, j = S || u !== void 0 || g !== void 0, [Z, B] = q({
|
|
10984
10984
|
key: c ?? "",
|
|
10985
10985
|
order: c !== void 0 ? n : "asc"
|
|
10986
|
-
}), [I, V] =
|
|
10986
|
+
}), [I, V] = q(1), [x, G] = q(
|
|
10987
10987
|
u ?? g?.[0] ?? 10
|
|
10988
10988
|
), W = S ? u ?? 10 : x, y = (R) => {
|
|
10989
10989
|
Y ? b(R) : G(R), S || V(1);
|
|
10990
|
-
}
|
|
10990
|
+
};
|
|
10991
|
+
ae(() => {
|
|
10992
|
+
S || V(1);
|
|
10993
|
+
}, [_.length, S]), ae(() => {
|
|
10994
|
+
process.env.NODE_ENV !== "production" && t !== void 0 && !f && console.warn(
|
|
10995
|
+
"[Table] `currentPage` was provided without `onPageChange`. Controlled pagination requires both props. The table is running in uncontrolled mode."
|
|
10996
|
+
);
|
|
10997
|
+
}, []);
|
|
10998
|
+
const X = v !== void 0, K = z !== void 0, [ne, U] = q(
|
|
10991
10999
|
/* @__PURE__ */ new Set()
|
|
10992
11000
|
), A = K ? new Set(z) : ne, ee = Me(
|
|
10993
11001
|
() => new Map(_.map((R, J) => [R, J])),
|
|
10994
11002
|
[_]
|
|
10995
11003
|
), oe = (R, J) => i ? i(R) : String(ee.get(R) ?? J), Q = O ? w ?? "" : Z.key, me = O ? k ?? "asc" : Z.order, pe = Me(() => {
|
|
10996
|
-
if (
|
|
11004
|
+
if (C) return [];
|
|
10997
11005
|
let R = _;
|
|
10998
11006
|
if (!O && Z.key !== "" && (R = [...R].sort((J, ve) => {
|
|
10999
11007
|
const T = String(J[Z.key]).localeCompare(String(ve[Z.key]));
|
|
11000
11008
|
return Z.order === "asc" ? T : -T;
|
|
11001
|
-
})), !S && W) {
|
|
11009
|
+
})), !S && j && W) {
|
|
11002
11010
|
const J = (I - 1) * W;
|
|
11003
11011
|
R = R.slice(J, J + W);
|
|
11004
11012
|
}
|
|
@@ -11008,9 +11016,10 @@ const J0 = () => {
|
|
|
11008
11016
|
Z,
|
|
11009
11017
|
O,
|
|
11010
11018
|
S,
|
|
11019
|
+
j,
|
|
11011
11020
|
I,
|
|
11012
11021
|
W,
|
|
11013
|
-
|
|
11022
|
+
C
|
|
11014
11023
|
]), fe = (R) => {
|
|
11015
11024
|
O ? E(R, w === R && k === "asc" ? "desc" : "asc") : B((J) => ({
|
|
11016
11025
|
key: R,
|
|
@@ -11055,7 +11064,7 @@ const J0 = () => {
|
|
|
11055
11064
|
return /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper" }, /* @__PURE__ */ e.createElement(
|
|
11056
11065
|
"table",
|
|
11057
11066
|
{
|
|
11058
|
-
"aria-busy":
|
|
11067
|
+
"aria-busy": C,
|
|
11059
11068
|
className: $([L, a]),
|
|
11060
11069
|
...M
|
|
11061
11070
|
},
|
|
@@ -11113,11 +11122,11 @@ const J0 = () => {
|
|
|
11113
11122
|
)
|
|
11114
11123
|
) : /* @__PURE__ */ e.createElement("span", null, R.header)
|
|
11115
11124
|
)))),
|
|
11116
|
-
/* @__PURE__ */ e.createElement("tbody", null,
|
|
11125
|
+
/* @__PURE__ */ e.createElement("tbody", null, C ? Array.from(
|
|
11117
11126
|
{ length: p },
|
|
11118
11127
|
(R, J) => be(J)
|
|
11119
11128
|
) : pe.length === 0 ? ue() : pe.map((R, J) => _e(R, J)))
|
|
11120
|
-
),
|
|
11129
|
+
), j && !C && (S || _.length > 0) && /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination" }, g && g.length > 0 && /* @__PURE__ */ e.createElement(
|
|
11121
11130
|
x2,
|
|
11122
11131
|
{
|
|
11123
11132
|
autoWidth: !0,
|
|
@@ -11137,7 +11146,7 @@ const J0 = () => {
|
|
|
11137
11146
|
{
|
|
11138
11147
|
currentPage: S ? t ?? 1 : I,
|
|
11139
11148
|
itemsPerPage: W,
|
|
11140
|
-
onPageChange: S ?
|
|
11149
|
+
onPageChange: S ? f : V,
|
|
11141
11150
|
totalItemCount: S ? P ?? 0 : _.length
|
|
11142
11151
|
}
|
|
11143
11152
|
))));
|
|
@@ -11152,15 +11161,15 @@ const J0 = () => {
|
|
|
11152
11161
|
tabs: o,
|
|
11153
11162
|
...r
|
|
11154
11163
|
}) => {
|
|
11155
|
-
const d = "pds-tabs", i = s === "m" ? "m" : "s", m = s === "m" ? "s" : "xs", [h,
|
|
11164
|
+
const d = "pds-tabs", i = s === "m" ? "m" : "s", m = s === "m" ? "s" : "xs", [h, C] = q(n ?? t);
|
|
11156
11165
|
ae(() => {
|
|
11157
|
-
n !== void 0 &&
|
|
11166
|
+
n !== void 0 && C(n);
|
|
11158
11167
|
}, [n]);
|
|
11159
11168
|
const u = (v) => {
|
|
11160
11169
|
const E = v.currentTarget.getAttribute("data-tabnumber");
|
|
11161
11170
|
if (E) {
|
|
11162
11171
|
const g = parseInt(E, 10);
|
|
11163
|
-
|
|
11172
|
+
C(g);
|
|
11164
11173
|
}
|
|
11165
11174
|
}, p = de([]);
|
|
11166
11175
|
ae(() => {
|
|
@@ -11168,26 +11177,26 @@ const J0 = () => {
|
|
|
11168
11177
|
}, [h, c]), ae(() => {
|
|
11169
11178
|
const v = p.current.length - 1;
|
|
11170
11179
|
if (h > v) {
|
|
11171
|
-
|
|
11180
|
+
C(0);
|
|
11172
11181
|
return;
|
|
11173
11182
|
} else if (h < 0) {
|
|
11174
|
-
|
|
11183
|
+
C(v);
|
|
11175
11184
|
return;
|
|
11176
11185
|
}
|
|
11177
11186
|
}, [h]);
|
|
11178
|
-
const
|
|
11187
|
+
const f = (v, E) => {
|
|
11179
11188
|
const g = h;
|
|
11180
11189
|
let _ = p.current[E === "next" ? g + 1 < p.current.length ? g + 1 : 0 : g - 1 >= 0 ? g - 1 : p.current.length - 1];
|
|
11181
11190
|
_ || (_ = E == "next" ? p.current[v + 1] == null ? p.current[0] : p.current[v + 1] : p.current[v - 1]), _.focus();
|
|
11182
11191
|
}, b = (v) => {
|
|
11183
11192
|
const E = p.current.length, g = () => {
|
|
11184
|
-
|
|
11193
|
+
f((h + 1) % E, "next"), C(h + 1);
|
|
11185
11194
|
}, _ = () => {
|
|
11186
|
-
|
|
11195
|
+
f((h - 1 + E) % E, "prev"), C(h - 1);
|
|
11187
11196
|
}, N = () => {
|
|
11188
|
-
|
|
11197
|
+
f(0), C(0);
|
|
11189
11198
|
}, z = () => {
|
|
11190
|
-
|
|
11199
|
+
f(E - 1), C(E - 1);
|
|
11191
11200
|
}, w = () => {
|
|
11192
11201
|
p.current[h].focus();
|
|
11193
11202
|
}, P = {
|
|
@@ -11344,7 +11353,7 @@ const J0 = () => {
|
|
|
11344
11353
|
tagLabel: r,
|
|
11345
11354
|
...d
|
|
11346
11355
|
}) => {
|
|
11347
|
-
const [i, m] =
|
|
11356
|
+
const [i, m] = q(!0), h = "pds-tag", C = o ? `${h}--${o}` : `${h}--${Kt(r)}`, u = s !== "m" ? `${h}--${s}` : null, p = i ? null : "pds-tag--hide", f = () => {
|
|
11348
11357
|
m((g) => !g);
|
|
11349
11358
|
};
|
|
11350
11359
|
let b, v, E;
|
|
@@ -11359,7 +11368,7 @@ const J0 = () => {
|
|
|
11359
11368
|
{
|
|
11360
11369
|
className: $([
|
|
11361
11370
|
h,
|
|
11362
|
-
|
|
11371
|
+
C,
|
|
11363
11372
|
u,
|
|
11364
11373
|
p,
|
|
11365
11374
|
a
|
|
@@ -11375,7 +11384,7 @@ const J0 = () => {
|
|
|
11375
11384
|
"aria-label": `${n}: ${r}`,
|
|
11376
11385
|
className: `${h}__remove`,
|
|
11377
11386
|
onClick: () => {
|
|
11378
|
-
|
|
11387
|
+
f(), c();
|
|
11379
11388
|
},
|
|
11380
11389
|
type: "button"
|
|
11381
11390
|
},
|
|
@@ -11428,7 +11437,7 @@ const J0 = () => {
|
|
|
11428
11437
|
}
|
|
11429
11438
|
));
|
|
11430
11439
|
}, Ut = () => {
|
|
11431
|
-
const a = typeof window < "u", l = (n) => n >= M4 ? "xl" : n >= N4 ? "lg" : n >= z4 ? "md" : "sm", [t, c] =
|
|
11440
|
+
const a = typeof window < "u", l = (n) => n >= M4 ? "xl" : n >= N4 ? "lg" : n >= z4 ? "md" : "sm", [t, c] = q(
|
|
11432
11441
|
a ? l(window.innerWidth) : "lg"
|
|
11433
11442
|
);
|
|
11434
11443
|
return ae(() => {
|
|
@@ -11457,10 +11466,10 @@ const J0 = () => {
|
|
|
11457
11466
|
},
|
|
11458
11467
|
mainBackground: m,
|
|
11459
11468
|
mainContentElement: h = "main",
|
|
11460
|
-
mainContentProps:
|
|
11469
|
+
mainContentProps: C,
|
|
11461
11470
|
onDrawerToggle: u,
|
|
11462
11471
|
onSidebarToggle: p,
|
|
11463
|
-
scrollableContent:
|
|
11472
|
+
scrollableContent: f,
|
|
11464
11473
|
sidebarBackground: b,
|
|
11465
11474
|
sidebarCollapsedWidth: v = 4.5,
|
|
11466
11475
|
sidebarExpandedWidth: E = "17%",
|
|
@@ -11469,13 +11478,13 @@ const J0 = () => {
|
|
|
11469
11478
|
sidebarProps: N,
|
|
11470
11479
|
...z
|
|
11471
11480
|
}) => {
|
|
11472
|
-
const [w, k] =
|
|
11481
|
+
const [w, k] = q(
|
|
11473
11482
|
r || !1
|
|
11474
11483
|
);
|
|
11475
11484
|
ae(() => {
|
|
11476
11485
|
k(r || !1);
|
|
11477
11486
|
}, [r]);
|
|
11478
|
-
const P = "pds-app-layout", M =
|
|
11487
|
+
const P = "pds-app-layout", M = f ? `${P}--scrollable` : null, L = w ? `${v}rem` : `${E}`, D = {
|
|
11479
11488
|
backgroundColor: b || void 0,
|
|
11480
11489
|
maxWidth: w ? void 0 : `${g}rem`,
|
|
11481
11490
|
minWidth: w ? `${v}rem` : `${_}rem`,
|
|
@@ -11502,19 +11511,19 @@ const J0 = () => {
|
|
|
11502
11511
|
);
|
|
11503
11512
|
}
|
|
11504
11513
|
return U.isContentEditable;
|
|
11505
|
-
}, []),
|
|
11514
|
+
}, []), j = d && s;
|
|
11506
11515
|
q2(
|
|
11507
11516
|
"[",
|
|
11508
11517
|
(U) => {
|
|
11509
11518
|
Y() || (U.preventDefault(), w || O());
|
|
11510
11519
|
},
|
|
11511
|
-
{ enabled:
|
|
11520
|
+
{ enabled: j }
|
|
11512
11521
|
), q2(
|
|
11513
11522
|
"]",
|
|
11514
11523
|
(U) => {
|
|
11515
11524
|
Y() || (U.preventDefault(), w && O());
|
|
11516
11525
|
},
|
|
11517
|
-
{ enabled:
|
|
11526
|
+
{ enabled: j }
|
|
11518
11527
|
);
|
|
11519
11528
|
const Z = Fe(a), B = Z.__unslotted, I = Z.sidebar, V = Z.identity, x = Z["content-top"], G = Z.navigation, W = Z["content-bottom"], y = V || x || G || W, X = y ? /* @__PURE__ */ e.createElement(e.Fragment, null, (V || n) && /* @__PURE__ */ e.createElement("div", { className: `${P}__sidebar-identity` }, V, n && !w && /* @__PURE__ */ e.createElement(
|
|
11520
11529
|
d2,
|
|
@@ -11529,13 +11538,13 @@ const J0 = () => {
|
|
|
11529
11538
|
)), x && /* @__PURE__ */ e.createElement("div", { className: `${P}__sidebar-content-top` }, x), G && /* @__PURE__ */ e.createElement("div", { className: `${P}__sidebar-navigation` }, G), W && /* @__PURE__ */ e.createElement("div", { className: `${P}__sidebar-content-bottom` }, W)) : I, K = $1(
|
|
11530
11539
|
h,
|
|
11531
11540
|
{
|
|
11532
|
-
...
|
|
11541
|
+
...C,
|
|
11533
11542
|
className: $([
|
|
11534
11543
|
`${P}__main`,
|
|
11535
|
-
|
|
11544
|
+
C?.className
|
|
11536
11545
|
]),
|
|
11537
11546
|
style: {
|
|
11538
|
-
...
|
|
11547
|
+
...C?.style,
|
|
11539
11548
|
backgroundColor: m || void 0
|
|
11540
11549
|
}
|
|
11541
11550
|
},
|
|
@@ -11688,19 +11697,19 @@ const J0 = () => {
|
|
|
11688
11697
|
verticalAlign: n = "start",
|
|
11689
11698
|
...s
|
|
11690
11699
|
}) => {
|
|
11691
|
-
const o = "pds-two-item-layout", r = t === "standard" ? "pds-grid" : `pds-grid pds-grid--${t}`, d = `${o}--${n}`, i = ["pds-grid-item--md-6"], m = ["pds-grid-item--md-4", "pds-grid-item--lg-3"], h = ["pds-grid-item--md-8", "pds-grid-item--lg-9"],
|
|
11700
|
+
const o = "pds-two-item-layout", r = t === "standard" ? "pds-grid" : `pds-grid pds-grid--${t}`, d = `${o}--${n}`, i = ["pds-grid-item--md-6"], m = ["pds-grid-item--md-4", "pds-grid-item--lg-3"], h = ["pds-grid-item--md-8", "pds-grid-item--lg-9"], C = ["pds-grid-item", "pds-grid-item--sm-4"];
|
|
11692
11701
|
let u, p;
|
|
11693
11702
|
switch (c) {
|
|
11694
11703
|
case "equal":
|
|
11695
|
-
u =
|
|
11704
|
+
u = C.concat(i), p = C.concat(i);
|
|
11696
11705
|
break;
|
|
11697
11706
|
case "one-third-start":
|
|
11698
|
-
u =
|
|
11707
|
+
u = C.concat(m), p = C.concat(h);
|
|
11699
11708
|
break;
|
|
11700
11709
|
case "one-third-end":
|
|
11701
|
-
u =
|
|
11710
|
+
u = C.concat(h), p = C.concat(m);
|
|
11702
11711
|
}
|
|
11703
|
-
const
|
|
11712
|
+
const f = Fe(a), b = f["first-item"], v = f["second-item"];
|
|
11704
11713
|
return /* @__PURE__ */ e.createElement(
|
|
11705
11714
|
"div",
|
|
11706
11715
|
{
|
|
@@ -11728,10 +11737,10 @@ const J0 = () => {
|
|
|
11728
11737
|
mobileAlignItems: i,
|
|
11729
11738
|
mobileFlexDirection: m = "column",
|
|
11730
11739
|
mobileFlexWrap: h,
|
|
11731
|
-
mobileGap:
|
|
11740
|
+
mobileGap: C,
|
|
11732
11741
|
mobileJustifyContent: u,
|
|
11733
11742
|
style: p,
|
|
11734
|
-
...
|
|
11743
|
+
...f
|
|
11735
11744
|
}) => {
|
|
11736
11745
|
const b = "pds-flex", v = `${b}-container`, E = {
|
|
11737
11746
|
"--pds-flex-align-content": a,
|
|
@@ -11744,7 +11753,7 @@ const J0 = () => {
|
|
|
11744
11753
|
"--pds-flex-direction-mobile": m,
|
|
11745
11754
|
"--pds-flex-justify-content-mobile": u ?? r,
|
|
11746
11755
|
"--pds-flex-wrap-mobile": h ?? s
|
|
11747
|
-
}, g =
|
|
11756
|
+
}, g = C ?? o, _ = o !== "none" ? `${b}-gap--${o}` : null, N = g !== o ? `${b}-gap-mobile--${g}` : null;
|
|
11748
11757
|
return /* @__PURE__ */ e.createElement(
|
|
11749
11758
|
"div",
|
|
11750
11759
|
{
|
|
@@ -11755,7 +11764,7 @@ const J0 = () => {
|
|
|
11755
11764
|
c ?? ""
|
|
11756
11765
|
]),
|
|
11757
11766
|
style: { ...E, ...p },
|
|
11758
|
-
...
|
|
11767
|
+
...f
|
|
11759
11768
|
},
|
|
11760
11769
|
t
|
|
11761
11770
|
);
|
|
@@ -11768,7 +11777,7 @@ const J0 = () => {
|
|
|
11768
11777
|
};
|
|
11769
11778
|
return c(), window.addEventListener("resize", c), () => window.removeEventListener("resize", c);
|
|
11770
11779
|
}, [l]), /* @__PURE__ */ e.createElement(Y4, null, a)), ya = (a) => {
|
|
11771
|
-
const l = typeof window < "u", t = (s) => l ? window.matchMedia(s).matches : !1, [c, n] =
|
|
11780
|
+
const l = typeof window < "u", t = (s) => l ? window.matchMedia(s).matches : !1, [c, n] = q(t(a));
|
|
11772
11781
|
return ae(() => {
|
|
11773
11782
|
if (!l) return;
|
|
11774
11783
|
const s = window.matchMedia(a), o = () => {
|
|
@@ -11777,7 +11786,7 @@ const J0 = () => {
|
|
|
11777
11786
|
return n(s.matches), s.addEventListener ? (s.addEventListener("change", o), () => s.removeEventListener("change", o)) : (s.addListener(o), () => s.removeListener(o));
|
|
11778
11787
|
}, [a]), c;
|
|
11779
11788
|
}, za = () => {
|
|
11780
|
-
const a = typeof window < "u", [l, t] =
|
|
11789
|
+
const a = typeof window < "u", [l, t] = q(
|
|
11781
11790
|
a && window.innerWidth !== void 0 ? window.innerWidth : 1024
|
|
11782
11791
|
);
|
|
11783
11792
|
return ae(() => {
|