@pantheon-systems/pds-toolkit-react 2.0.0-beta.18 → 2.0.0-beta.19
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/Timeline/Timeline.d.ts +29 -0
- package/dist/components/Timeline/TimelineItem.d.ts +68 -0
- package/dist/components/Timeline/timeline-context.d.ts +6 -0
- package/dist/components/charts/Sparkline/Sparkline.d.ts +62 -0
- package/dist/components/icons/Icon/generated-icon-data.d.ts +1 -1
- package/dist/components/media/Illustration/generated-illustration-data.d.ts +1 -1
- package/dist/css/component-css/pds-button.css +1 -1
- package/dist/css/component-css/pds-index.css +3 -3
- package/dist/css/component-css/pds-sparkline.css +1 -0
- package/dist/css/component-css/pds-timeline.css +1 -0
- package/dist/css/pds-components.css +3 -3
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +683 -474
- package/dist/index.js.map +1 -1
- package/dist/index.source.d.ts +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5928,7 +5928,175 @@ var xr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5928
5928
|
xHeader: q,
|
|
5929
5929
|
yHeader: te
|
|
5930
5930
|
}));
|
|
5931
|
-
}, yi =
|
|
5931
|
+
}, yi = 13, bi = ({ activeIndex: t, chartHeight: n = 60, chartWidth: r, className: i, color: a, colorPalette: o = "categorical", data: s = [], isLoading: c = !1, labelStrings: l = {}, onScrub: u, paletteIndex: d, showAccessibleTable: f = !0, showTooltip: p = !0, tooltipContent: m, valueFormatter: h = (e) => e.toLocaleString(), ...v }) => {
|
|
5932
|
+
let { accessibleTableDescription: y = "Sparkline data", loadingLabel: b = "Loading chart data", scrubberLabel: x = "Select a data point", valueLabel: S = "Value" } = l, C = g(null), w = Ur(0, zr(o, Gr(C, o)), a, Br(o, d)), [T, E] = _(null), [D, O] = _(!1), k = "pds-sparkline", A = s.length - 1, j = (e) => Math.min(Math.max(e, 0), A), M = j(t ?? T ?? A);
|
|
5933
|
+
if (c) return /* @__PURE__ */ e.createElement("div", {
|
|
5934
|
+
ref: C,
|
|
5935
|
+
"aria-busy": "true",
|
|
5936
|
+
"aria-label": b,
|
|
5937
|
+
className: Z([
|
|
5938
|
+
k,
|
|
5939
|
+
`${k}--loading`,
|
|
5940
|
+
i ?? ""
|
|
5941
|
+
]),
|
|
5942
|
+
role: "status",
|
|
5943
|
+
style: { maxWidth: r },
|
|
5944
|
+
...v
|
|
5945
|
+
}, /* @__PURE__ */ e.createElement(ti, {
|
|
5946
|
+
height: n,
|
|
5947
|
+
showLegend: !1
|
|
5948
|
+
}));
|
|
5949
|
+
if (s.length === 0) return /* @__PURE__ */ e.createElement("div", {
|
|
5950
|
+
ref: C,
|
|
5951
|
+
className: Z([
|
|
5952
|
+
k,
|
|
5953
|
+
`${k}--empty`,
|
|
5954
|
+
i ?? ""
|
|
5955
|
+
]),
|
|
5956
|
+
style: {
|
|
5957
|
+
height: n,
|
|
5958
|
+
maxWidth: r
|
|
5959
|
+
},
|
|
5960
|
+
...v
|
|
5961
|
+
});
|
|
5962
|
+
let N = s[M], P = (e) => {
|
|
5963
|
+
let n = j(e);
|
|
5964
|
+
n !== M && (t === void 0 && E(n), u?.({
|
|
5965
|
+
index: n,
|
|
5966
|
+
label: s[n].label,
|
|
5967
|
+
value: s[n].value
|
|
5968
|
+
}));
|
|
5969
|
+
}, F = (e) => {
|
|
5970
|
+
let t = e.currentTarget.getBoundingClientRect(), n = t.width - 26;
|
|
5971
|
+
if (A === 0 || n <= 0) return 0;
|
|
5972
|
+
let r = (e.clientX - t.left - yi) / n;
|
|
5973
|
+
return Math.round(r * A);
|
|
5974
|
+
}, I = (e) => {
|
|
5975
|
+
e.button === 0 && (e.currentTarget.setPointerCapture(e.pointerId), O(!0), P(F(e)));
|
|
5976
|
+
}, L = (e) => {
|
|
5977
|
+
D && P(F(e));
|
|
5978
|
+
}, R = (e) => {
|
|
5979
|
+
e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId), O(!1);
|
|
5980
|
+
};
|
|
5981
|
+
return /* @__PURE__ */ e.createElement("div", {
|
|
5982
|
+
ref: C,
|
|
5983
|
+
"aria-label": x,
|
|
5984
|
+
"aria-orientation": "horizontal",
|
|
5985
|
+
"aria-valuemax": A,
|
|
5986
|
+
"aria-valuemin": 0,
|
|
5987
|
+
"aria-valuenow": M,
|
|
5988
|
+
"aria-valuetext": `${N.label}: ${h(N.value)}`,
|
|
5989
|
+
className: Z([
|
|
5990
|
+
k,
|
|
5991
|
+
D ? `${k}--dragging` : "",
|
|
5992
|
+
i ?? ""
|
|
5993
|
+
]),
|
|
5994
|
+
onKeyDown: (e) => {
|
|
5995
|
+
let t = Math.max(1, Math.round(s.length / 10)), n = {
|
|
5996
|
+
ArrowDown: M - 1,
|
|
5997
|
+
ArrowLeft: M - 1,
|
|
5998
|
+
ArrowRight: M + 1,
|
|
5999
|
+
ArrowUp: M + 1,
|
|
6000
|
+
End: A,
|
|
6001
|
+
Home: 0,
|
|
6002
|
+
PageDown: M - t,
|
|
6003
|
+
PageUp: M + t
|
|
6004
|
+
};
|
|
6005
|
+
e.key in n && (e.preventDefault(), P(n[e.key]));
|
|
6006
|
+
},
|
|
6007
|
+
onPointerCancel: R,
|
|
6008
|
+
onPointerDown: I,
|
|
6009
|
+
onPointerMove: L,
|
|
6010
|
+
onPointerUp: R,
|
|
6011
|
+
role: "slider",
|
|
6012
|
+
style: { maxWidth: r },
|
|
6013
|
+
tabIndex: 0,
|
|
6014
|
+
...v
|
|
6015
|
+
}, /* @__PURE__ */ e.createElement("div", {
|
|
6016
|
+
"aria-hidden": "true",
|
|
6017
|
+
style: {
|
|
6018
|
+
contain: "layout size",
|
|
6019
|
+
height: n
|
|
6020
|
+
}
|
|
6021
|
+
}, /* @__PURE__ */ e.createElement(ce, {
|
|
6022
|
+
debounce: 150,
|
|
6023
|
+
height: n,
|
|
6024
|
+
minHeight: n,
|
|
6025
|
+
minWidth: 50,
|
|
6026
|
+
width: "100%"
|
|
6027
|
+
}, /* @__PURE__ */ e.createElement(Y, {
|
|
6028
|
+
accessibilityLayer: !1,
|
|
6029
|
+
data: s,
|
|
6030
|
+
margin: {
|
|
6031
|
+
bottom: yi,
|
|
6032
|
+
left: yi,
|
|
6033
|
+
right: yi,
|
|
6034
|
+
top: yi
|
|
6035
|
+
}
|
|
6036
|
+
}, /* @__PURE__ */ e.createElement(fe, {
|
|
6037
|
+
hide: !0,
|
|
6038
|
+
dataKey: "label"
|
|
6039
|
+
}), /* @__PURE__ */ e.createElement(pe, {
|
|
6040
|
+
hide: !0,
|
|
6041
|
+
domain: ["dataMin", "dataMax"]
|
|
6042
|
+
}), p && /* @__PURE__ */ e.createElement(de, {
|
|
6043
|
+
allowEscapeViewBox: {
|
|
6044
|
+
x: !1,
|
|
6045
|
+
y: !0
|
|
6046
|
+
},
|
|
6047
|
+
content: (t) => {
|
|
6048
|
+
if (!t.active || !t.payload?.length) return null;
|
|
6049
|
+
let n = t.payload.map((e) => ({
|
|
6050
|
+
color: w,
|
|
6051
|
+
dataKey: String(e.dataKey ?? ""),
|
|
6052
|
+
name: S,
|
|
6053
|
+
value: Number(e.value ?? 0)
|
|
6054
|
+
})), r = String(t.label ?? "");
|
|
6055
|
+
return m ? m({
|
|
6056
|
+
entries: n,
|
|
6057
|
+
label: r
|
|
6058
|
+
}) : /* @__PURE__ */ e.createElement("div", { className: "recharts-default-tooltip" }, /* @__PURE__ */ e.createElement("p", { className: "recharts-tooltip-label" }, r), n.map((t) => /* @__PURE__ */ e.createElement("p", {
|
|
6059
|
+
key: t.dataKey,
|
|
6060
|
+
className: "recharts-tooltip-item"
|
|
6061
|
+
}, /* @__PURE__ */ e.createElement("span", {
|
|
6062
|
+
className: "recharts-tooltip-item__color",
|
|
6063
|
+
style: { backgroundColor: t.color }
|
|
6064
|
+
}), t.name, /* @__PURE__ */ e.createElement("span", { className: "recharts-tooltip-item-separator" }, " ", ":", " "), h(t.value))));
|
|
6065
|
+
},
|
|
6066
|
+
cursor: !1,
|
|
6067
|
+
defaultIndex: M,
|
|
6068
|
+
isAnimationActive: !1
|
|
6069
|
+
}), /* @__PURE__ */ e.createElement(ie, {
|
|
6070
|
+
activeDot: !1,
|
|
6071
|
+
dataKey: "value",
|
|
6072
|
+
dot: (t) => t.index === M ? /* @__PURE__ */ e.createElement("g", { key: t.index }, /* @__PURE__ */ e.createElement("circle", {
|
|
6073
|
+
className: "pds-sparkline__focus-ring",
|
|
6074
|
+
cx: t.cx,
|
|
6075
|
+
cy: t.cy,
|
|
6076
|
+
fill: "none",
|
|
6077
|
+
r: 11.5
|
|
6078
|
+
}), /* @__PURE__ */ e.createElement(Xr, {
|
|
6079
|
+
color: w,
|
|
6080
|
+
cx: t.cx,
|
|
6081
|
+
cy: t.cy
|
|
6082
|
+
})) : /* @__PURE__ */ e.createElement("g", { key: t.index }),
|
|
6083
|
+
isAnimationActive: !1,
|
|
6084
|
+
stroke: w,
|
|
6085
|
+
strokeWidth: 4,
|
|
6086
|
+
type: "monotone"
|
|
6087
|
+
})))), f && /* @__PURE__ */ e.createElement(Yr, {
|
|
6088
|
+
data: s.map((e) => ({
|
|
6089
|
+
label: e.label,
|
|
6090
|
+
value: e.value
|
|
6091
|
+
})),
|
|
6092
|
+
description: y,
|
|
6093
|
+
series: [{
|
|
6094
|
+
dataKey: "value",
|
|
6095
|
+
label: S
|
|
6096
|
+
}],
|
|
6097
|
+
valueFormatter: h
|
|
6098
|
+
}));
|
|
6099
|
+
}, xi = /* @__PURE__ */ Ct((/* @__PURE__ */ xt(((e, t) => {
|
|
5932
6100
|
var n = function(e) {
|
|
5933
6101
|
var t = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, n = 0, r = {}, i = {
|
|
5934
6102
|
manual: e.Prism && e.Prism.manual,
|
|
@@ -6215,8 +6383,8 @@ var xr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
6215
6383
|
}(typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {});
|
|
6216
6384
|
t !== void 0 && t.exports && (t.exports = n), typeof global < "u" && (global.Prism = n);
|
|
6217
6385
|
})))(), 1);
|
|
6218
|
-
typeof globalThis < "u" && (globalThis.Prism =
|
|
6219
|
-
var
|
|
6386
|
+
typeof globalThis < "u" && (globalThis.Prism = xi.default);
|
|
6387
|
+
var Si = xi.default;
|
|
6220
6388
|
// node_modules/prismjs/components/prism-diff.js
|
|
6221
6389
|
Prism.languages.markup = {
|
|
6222
6390
|
comment: {
|
|
@@ -6884,7 +7052,7 @@ Prism.languages.markup = {
|
|
|
6884
7052
|
}), Object.defineProperty(e.languages.diff, "PREFIXES", { value: t });
|
|
6885
7053
|
})(Prism);
|
|
6886
7054
|
// src/components/CodeBlock/themes/pds.ts
|
|
6887
|
-
var
|
|
7055
|
+
var Ci = {
|
|
6888
7056
|
plain: {
|
|
6889
7057
|
color: "var(--pds-color-code-block-foreground)",
|
|
6890
7058
|
backgroundColor: "var(--pds-color-code-block-background)"
|
|
@@ -6960,7 +7128,7 @@ var xi = {
|
|
|
6960
7128
|
style: { color: "var(--pds-color-code-block-syntax-inserted)" }
|
|
6961
7129
|
}
|
|
6962
7130
|
]
|
|
6963
|
-
},
|
|
7131
|
+
}, wi = ({ className: t, code: n, copyButtonLabel: r = "Copy to clipboard", hasCopyButton: i, hasLineNumbers: a, hasPrompt: o, height: s, isLoading: c, language: l, loadingLineCount: u = 1, maxHeight: d, promptSymbol: f = "$", renderAsLegacy: p = !1, shouldWrap: m = !1, ...h }) => {
|
|
6964
7132
|
let g = "pds-code-block", _ = m ? `${g}__line-wrapped` : "", v = {};
|
|
6965
7133
|
s && (v.height = `${s}rem`), d && (v.maxHeight = `${d}rem`);
|
|
6966
7134
|
let y = /* @__PURE__ */ e.createElement("div", { className: `${g}__code` }, /* @__PURE__ */ e.createElement($r, {
|
|
@@ -7012,8 +7180,8 @@ var xi = {
|
|
|
7012
7180
|
}, c ? y : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(he, {
|
|
7013
7181
|
code: n,
|
|
7014
7182
|
language: l || "",
|
|
7015
|
-
prism:
|
|
7016
|
-
theme:
|
|
7183
|
+
prism: Si,
|
|
7184
|
+
theme: Ci
|
|
7017
7185
|
}, /* @__PURE__ */ e.createElement(he.Code, {
|
|
7018
7186
|
className: `${g}__code`,
|
|
7019
7187
|
tabIndex: 0
|
|
@@ -7022,11 +7190,11 @@ var xi = {
|
|
|
7022
7190
|
clipboardText: n,
|
|
7023
7191
|
variant: "reverse"
|
|
7024
7192
|
}))));
|
|
7025
|
-
},
|
|
7193
|
+
}, Ti = {
|
|
7026
7194
|
addon: "circlePlus",
|
|
7027
7195
|
included: "circleCheck",
|
|
7028
7196
|
notIncluded: "xmark"
|
|
7029
|
-
},
|
|
7197
|
+
}, Ei = ({ className: t, listItems: n, listLabel: r, moreLink: i, renderTypeLabels: a = !0, showBorder: o = !1, size: s = "s", typeLabels: c = {
|
|
7030
7198
|
addon: "Add-on",
|
|
7031
7199
|
included: "Included",
|
|
7032
7200
|
notIncluded: "Not included"
|
|
@@ -7045,10 +7213,10 @@ var xi = {
|
|
|
7045
7213
|
className: `${u}__list-item ${u}__list-item--${t.type}`
|
|
7046
7214
|
}, /* @__PURE__ */ e.createElement("div", { className: `${u}__item-icon-wrapper` }, /* @__PURE__ */ e.createElement(Q, {
|
|
7047
7215
|
className: `${u}__item-icon`,
|
|
7048
|
-
iconName:
|
|
7216
|
+
iconName: Ti[t.type],
|
|
7049
7217
|
size: p
|
|
7050
7218
|
})), a && /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, c[t.type], ":", " "), t.text))), i && /* @__PURE__ */ e.createElement("div", { className: `${u}__more-link` }, i));
|
|
7051
|
-
},
|
|
7219
|
+
}, Di = ({ className: t, platform: n, videoId: r, videoTitle: i, ...a }) => {
|
|
7052
7220
|
let o = /* @__PURE__ */ e.createElement("iframe", {
|
|
7053
7221
|
allow: "autoplay; fullscreen; picture-in-picture; clipboard-write; encrypted-media",
|
|
7054
7222
|
src: `https://fast.wistia.net/embed/iframe/${r}`,
|
|
@@ -7077,7 +7245,7 @@ var xi = {
|
|
|
7077
7245
|
className: Z(["pds-video-embed", t ?? ""]),
|
|
7078
7246
|
...a
|
|
7079
7247
|
}, l);
|
|
7080
|
-
},
|
|
7248
|
+
}, Oi = ({ alignment: t = "center", className: n, ctaRegion: r, hasIndentedContent: i, heading: a, headingLevel: o = "h1", image: s, imageMarginLeft: c = "0", imageWidth: l = "40%", maxWidth: u = "100%", message: d, video: f, ...p }) => {
|
|
7081
7249
|
let m = "pds-horizontal-empty-state", h = `${m}--${t}`, g = i ? `${m}--indented-content` : null, _ = f ? `${m}--video` : null, v = {
|
|
7082
7250
|
marginInlineStart: c,
|
|
7083
7251
|
width: l
|
|
@@ -7103,11 +7271,11 @@ var xi = {
|
|
|
7103
7271
|
alt: "",
|
|
7104
7272
|
className: `${m}__image`,
|
|
7105
7273
|
src: s
|
|
7106
|
-
}) : s), f && /* @__PURE__ */ e.createElement("div", { className: `${m}__media ${m}__media--video` }, /* @__PURE__ */ e.createElement(
|
|
7274
|
+
}) : s), f && /* @__PURE__ */ e.createElement("div", { className: `${m}__media ${m}__media--video` }, /* @__PURE__ */ e.createElement(Di, {
|
|
7107
7275
|
platform: f.platform,
|
|
7108
7276
|
videoId: f.videoId
|
|
7109
7277
|
})));
|
|
7110
|
-
},
|
|
7278
|
+
}, ki = {
|
|
7111
7279
|
createEnvLive: {
|
|
7112
7280
|
height: 233,
|
|
7113
7281
|
render: () => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", {
|
|
@@ -8108,8 +8276,8 @@ var xi = {
|
|
|
8108
8276
|
})),
|
|
8109
8277
|
width: 400
|
|
8110
8278
|
}
|
|
8111
|
-
},
|
|
8112
|
-
let s = f(), c = t === "", l =
|
|
8279
|
+
}, Ai = ({ alt: t = "", className: n, height: r, name: i, width: a, ...o }) => {
|
|
8280
|
+
let s = f(), c = t === "", l = ki[i], u = `0 0 ${l.width} ${l.height}`;
|
|
8113
8281
|
return /* @__PURE__ */ e.createElement("svg", {
|
|
8114
8282
|
"aria-hidden": c ? "true" : void 0,
|
|
8115
8283
|
"aria-labelledby": c ? void 0 : s,
|
|
@@ -8123,7 +8291,7 @@ var xi = {
|
|
|
8123
8291
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8124
8292
|
...o
|
|
8125
8293
|
}, !c && /* @__PURE__ */ e.createElement("title", { id: s }, t), l.render());
|
|
8126
|
-
},
|
|
8294
|
+
}, ji = ({ className: t, ctaRegion: n, fillHeight: r, heading: i, headingLevel: a = "h2", illustration: o, illustrationWidth: s = "400px", image: c, imageHeight: l = "120px", imageWidth: u = "auto", isLoading: d, message: f, ...p }) => {
|
|
8127
8295
|
let m = "pds-vertical-empty-state";
|
|
8128
8296
|
return f = typeof f == "string" ? /* @__PURE__ */ e.createElement("p", { className: `${m}__message` }, f) : /* @__PURE__ */ e.createElement("div", { className: `${m}__message` }, f), /* @__PURE__ */ e.createElement("div", {
|
|
8129
8297
|
className: Z([
|
|
@@ -8132,7 +8300,7 @@ var xi = {
|
|
|
8132
8300
|
t ?? ""
|
|
8133
8301
|
]),
|
|
8134
8302
|
...p
|
|
8135
|
-
}, d ? /* @__PURE__ */ e.createElement("div", { className: `${m}__media` }, /* @__PURE__ */ e.createElement(Fn, { size: "5xl" })) : o ? /* @__PURE__ */ e.createElement("div", { className: `${m}__media` }, /* @__PURE__ */ e.createElement(
|
|
8303
|
+
}, d ? /* @__PURE__ */ e.createElement("div", { className: `${m}__media` }, /* @__PURE__ */ e.createElement(Fn, { size: "5xl" })) : o ? /* @__PURE__ */ e.createElement("div", { className: `${m}__media` }, /* @__PURE__ */ e.createElement(Ai, {
|
|
8136
8304
|
name: o,
|
|
8137
8305
|
width: s
|
|
8138
8306
|
})) : c && /* @__PURE__ */ e.createElement("div", {
|
|
@@ -8149,7 +8317,7 @@ var xi = {
|
|
|
8149
8317
|
baseClass: m,
|
|
8150
8318
|
level: a
|
|
8151
8319
|
}, i), f && f), n && /* @__PURE__ */ e.createElement("div", { className: `${m}__cta` }, n));
|
|
8152
|
-
},
|
|
8320
|
+
}, Mi = ({ additions: t = 4, className: n, componentWidth: r, deletions: i = 2, translationStrings: a = {
|
|
8153
8321
|
linesChanged: "lines changed",
|
|
8154
8322
|
additions: "additions",
|
|
8155
8323
|
deletions: "deletions"
|
|
@@ -8181,7 +8349,7 @@ var xi = {
|
|
|
8181
8349
|
customTrigger: /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement("div", { className: `${s}__ahead-bar` })),
|
|
8182
8350
|
preferredPlacement: "top"
|
|
8183
8351
|
}))));
|
|
8184
|
-
},
|
|
8352
|
+
}, Ni = {
|
|
8185
8353
|
amex: /* @__PURE__ */ e.createElement("svg", {
|
|
8186
8354
|
fill: "none",
|
|
8187
8355
|
height: "42",
|
|
@@ -8399,7 +8567,7 @@ var xi = {
|
|
|
8399
8567
|
height: "42",
|
|
8400
8568
|
width: "70"
|
|
8401
8569
|
}))))
|
|
8402
|
-
},
|
|
8570
|
+
}, Pi = ({ className: t, paymentType: n, size: r = "2xl", ...i }) => {
|
|
8403
8571
|
let a = "pds-payment-icon", o = `${a}--${r}`;
|
|
8404
8572
|
return /* @__PURE__ */ e.createElement("div", {
|
|
8405
8573
|
className: Z([
|
|
@@ -8408,8 +8576,8 @@ var xi = {
|
|
|
8408
8576
|
t ?? ""
|
|
8409
8577
|
]),
|
|
8410
8578
|
...i
|
|
8411
|
-
},
|
|
8412
|
-
},
|
|
8579
|
+
}, Ni[n]);
|
|
8580
|
+
}, Fi = ({ ariaLabel: t, className: n, hasHalo: i = !0, iconName: a = "zappy", label: o, linkContent: c, shape: l = "circle", size: u = "s", ...d }) => {
|
|
8413
8581
|
let f = "pds-agent-avatar", p = `${f}--${u}`, m = l === "circle" ? null : `${f}--${l}`, h = i ? `${f}--halo` : null, g = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(Q, {
|
|
8414
8582
|
className: `${f}__icon`,
|
|
8415
8583
|
iconName: a
|
|
@@ -8427,7 +8595,7 @@ var xi = {
|
|
|
8427
8595
|
]),
|
|
8428
8596
|
...d
|
|
8429
8597
|
}, c ? _ : /* @__PURE__ */ e.createElement("span", { className: `${f}__content` }, g));
|
|
8430
|
-
},
|
|
8598
|
+
}, Ii = [
|
|
8431
8599
|
"01",
|
|
8432
8600
|
"02",
|
|
8433
8601
|
"03",
|
|
@@ -8448,8 +8616,8 @@ var xi = {
|
|
|
8448
8616
|
"18",
|
|
8449
8617
|
"19",
|
|
8450
8618
|
"20"
|
|
8451
|
-
],
|
|
8452
|
-
let p = "pds-avatar", m = `${p}--${u}`, h = l === "circle" ? null : `${p}--${l}`, g = o ? `${p}--image` : null, [v, y] = _(void 0), b = d ? `var(--pds-gradient-avatar-${
|
|
8619
|
+
], Li = (e) => Ii[parseInt(ge(e), 16) % Ii.length], Ri = ({ ariaLabel: t, className: n, fallbackIcon: i = null, hasUserFallback: a = !1, imageSrc: o, linkContent: c, shape: l = "circle", size: u = "s", uniqueId: d, ...f }) => {
|
|
8620
|
+
let p = "pds-avatar", m = `${p}--${u}`, h = l === "circle" ? null : `${p}--${l}`, g = o ? `${p}--image` : null, [v, y] = _(void 0), b = d ? `var(--pds-gradient-avatar-${Li(d)})` : null, x = i === "business-account" ? "building" : i === "user" || !i && a ? "userSolid" : null, S = {
|
|
8453
8621
|
backgroundImage: b,
|
|
8454
8622
|
borderRadius: l === "square" ? "var(--pds-border-radius-default)" : "100%",
|
|
8455
8623
|
height: "100%",
|
|
@@ -8480,17 +8648,17 @@ var xi = {
|
|
|
8480
8648
|
]),
|
|
8481
8649
|
...f
|
|
8482
8650
|
}, c ? T : w);
|
|
8483
|
-
},
|
|
8651
|
+
}, zi = ({ agentLabel: t, ariaLabel: n, attribution: i, avatarProps: a, className: o, hasAvatar: c = !0, isAgent: l, label: u, linkContent: f, size: p = "s", ...m }) => {
|
|
8484
8652
|
let h = "pds-avatar-label", g = `${h}--${p}`, _ = i ? `${h}--has-attribution` : null;
|
|
8485
8653
|
d(() => {
|
|
8486
8654
|
l && !t && process.env.NODE_ENV !== "production" && console.warn("[AvatarLabel] `agentLabel` is missing, so screen readers are not told this is an agent.");
|
|
8487
8655
|
}, [t, l]);
|
|
8488
8656
|
let v = null;
|
|
8489
|
-
c ? v = l ? /* @__PURE__ */ e.createElement(
|
|
8657
|
+
c ? v = l ? /* @__PURE__ */ e.createElement(Fi, {
|
|
8490
8658
|
...a,
|
|
8491
8659
|
label: t ?? "",
|
|
8492
8660
|
size: p
|
|
8493
|
-
}) : /* @__PURE__ */ e.createElement(
|
|
8661
|
+
}) : /* @__PURE__ */ e.createElement(Ri, {
|
|
8494
8662
|
...a,
|
|
8495
8663
|
size: p
|
|
8496
8664
|
}) : l && (v = /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, t));
|
|
@@ -8510,7 +8678,7 @@ var xi = {
|
|
|
8510
8678
|
]),
|
|
8511
8679
|
...m
|
|
8512
8680
|
}, f ? b : y);
|
|
8513
|
-
},
|
|
8681
|
+
}, Bi = ({ agentLabel: t, avatarProps: n, className: r, isAgent: i, isSidebarCollapsed: a, isSingleLine: o, primaryText: s, secondaryText: c, ...u }) => {
|
|
8514
8682
|
let f = "pds-identity-block", p = a ? `${f}--collapsed` : null, m = o ? `${f}--single-line` : null, h = o ? "s" : "m", v = n || i ? {
|
|
8515
8683
|
...n,
|
|
8516
8684
|
size: h
|
|
@@ -8531,10 +8699,10 @@ var xi = {
|
|
|
8531
8699
|
s,
|
|
8532
8700
|
c
|
|
8533
8701
|
]);
|
|
8534
|
-
let D = [s, y ? c : null].filter(Boolean).join(" — "), O = v ? /* @__PURE__ */ e.createElement("div", { className: `${f}__avatar` }, i ? /* @__PURE__ */ e.createElement(
|
|
8702
|
+
let D = [s, y ? c : null].filter(Boolean).join(" — "), O = v ? /* @__PURE__ */ e.createElement("div", { className: `${f}__avatar` }, i ? /* @__PURE__ */ e.createElement(Fi, {
|
|
8535
8703
|
...v,
|
|
8536
8704
|
label: t ?? ""
|
|
8537
|
-
}) : /* @__PURE__ */ e.createElement(
|
|
8705
|
+
}) : /* @__PURE__ */ e.createElement(Ri, v)) : null;
|
|
8538
8706
|
return /* @__PURE__ */ e.createElement("div", {
|
|
8539
8707
|
className: Z([
|
|
8540
8708
|
f,
|
|
@@ -8556,7 +8724,7 @@ var xi = {
|
|
|
8556
8724
|
className: `${f}__secondary-text`,
|
|
8557
8725
|
title: w ? c : void 0
|
|
8558
8726
|
}, c)));
|
|
8559
|
-
},
|
|
8727
|
+
}, Vi = o(({ checked: t, className: n, defaultChecked: r, disabled: i, id: a, indeterminate: o, inputProps: s, inputWidth: c, inputWidthMin: u, label: d, message: f, name: p, nestingLevel: m = 0, onBlur: h, onChange: g, onFocus: v, required: y, showLabel: b = !0, size: x = "s", validationMessage: S, validationStatus: C, value: w, ...T }, E) => {
|
|
8560
8728
|
let D = yn(c, u), O = "pds-checkbox", k = i ? $.disabled : null, A = C === "error" ? $.error : null, j = m > 0 ? `${O}--indent-${m}` : null, M = y && !i ? $.required : null, N = x === "s" ? null : `${O}--${x}`, P = C === "success" ? $.success : null, F = S || f, I = t !== void 0, [L, R] = _(r !== void 0 && r), z = t || L, ee = (e) => {
|
|
8561
8729
|
I || R(e.target.checked), g && g(e);
|
|
8562
8730
|
}, B = `${O}__box`, V = o ? null : z ? `${B}--checked` : null, H = o ? `${B}--indeterminate` : null, U = l(() => {
|
|
@@ -8628,7 +8796,7 @@ var xi = {
|
|
|
8628
8796
|
message: F,
|
|
8629
8797
|
validationStatus: C
|
|
8630
8798
|
}));
|
|
8631
|
-
}),
|
|
8799
|
+
}), Hi = ({ children: t, className: n, disabled: r = !1, fieldsetProps: i, id: a, inputWidth: o, inputWidthMin: s, label: c, labelVariant: l, message: u, required: d = !1, showLabel: f = !0, tooltipText: p = null, validationMessage: m, validationStatus: h, ...g }) => {
|
|
8632
8800
|
let _ = yn(o, s), v = "pds-checkbox-group", y = r ? $.disabled : null, b = d && !r ? $.required : null, x = h === "error" ? $.error : null, S = h === "success" ? $.success : null, C = m || u;
|
|
8633
8801
|
return /* @__PURE__ */ e.createElement("div", {
|
|
8634
8802
|
className: Z([
|
|
@@ -8661,7 +8829,7 @@ var xi = {
|
|
|
8661
8829
|
message: C,
|
|
8662
8830
|
validationStatus: h
|
|
8663
8831
|
}));
|
|
8664
|
-
},
|
|
8832
|
+
}, Ui = ({ className: t, disabled: n = !1, fieldsetProps: r, id: i, inputWidth: a, inputWidthMin: o, label: s, labelVariant: c, message: l, onGroupBlur: u, onValueChange: f, options: p, required: m = !1, showLabel: h = !0, tooltipText: v = null, validationMessage: y, validationStatus: b, ...x }) => {
|
|
8665
8833
|
let S = yn(a, o), C = "pds-checkbox-group", w = n ? $.disabled : null, T = m && !n ? $.required : null, E = b === "error" ? $.error : null, D = b === "success" ? $.success : null, O = y || l;
|
|
8666
8834
|
p.map((e) => {
|
|
8667
8835
|
e.id || (e.id = e.value);
|
|
@@ -8710,7 +8878,7 @@ var xi = {
|
|
|
8710
8878
|
required: m,
|
|
8711
8879
|
showLabel: h,
|
|
8712
8880
|
tooltipText: v
|
|
8713
|
-
}), /* @__PURE__ */ e.createElement("div", { className: `${C}__options` }, p.map((t) => /* @__PURE__ */ e.createElement(
|
|
8881
|
+
}), /* @__PURE__ */ e.createElement("div", { className: `${C}__options` }, p.map((t) => /* @__PURE__ */ e.createElement(Vi, {
|
|
8714
8882
|
key: t.id,
|
|
8715
8883
|
checked: t.checked,
|
|
8716
8884
|
className: `${C}__checkbox`,
|
|
@@ -8728,7 +8896,7 @@ var xi = {
|
|
|
8728
8896
|
message: O,
|
|
8729
8897
|
validationStatus: b
|
|
8730
8898
|
}));
|
|
8731
|
-
},
|
|
8899
|
+
}, Wi = o(({ className: t, defaultValue: n, disabled: r = !1, footer: i, hasClearButton: a = !0, hasDropdownTrigger: o = !1, hasSearchIcon: s = !0, hasSearchShortcut: c = !1, id: u, inputWidth: f, inputWidthMin: p, isLoading: m = !1, label: v, labelStrings: y = {
|
|
8732
8900
|
clearButton: "Clear input text",
|
|
8733
8901
|
inputInstructions: "Type to search options",
|
|
8734
8902
|
searchShortcut: "Press / to focus the search field",
|
|
@@ -8923,13 +9091,13 @@ var xi = {
|
|
|
8923
9091
|
validationMessageHasDecorators: !1,
|
|
8924
9092
|
validationStatus: V
|
|
8925
9093
|
}));
|
|
8926
|
-
}),
|
|
9094
|
+
}), Gi = (e, t, n) => {
|
|
8927
9095
|
let r = n.toLowerCase();
|
|
8928
9096
|
return e.filter((e) => e.label.toLowerCase().includes(r)).map((e) => ({
|
|
8929
9097
|
...e,
|
|
8930
9098
|
isAlreadySelected: t.some((t) => t.id === e.id)
|
|
8931
9099
|
})).sort((e, t) => e.badge && !t.badge ? -1 : !e.badge && t.badge ? 1 : 0);
|
|
8932
|
-
},
|
|
9100
|
+
}, Ki = ({ aiSuggestions: t, className: n, disabled: r = !1, footer: i, id: a, initialSelectedItems: o = [], inputWidth: s, inputWidthMin: c, isLoading: l = !1, label: u = "Lorem ipsum dolor sit:", labelStrings: d = {
|
|
8933
9101
|
aiBadgeLabel: "Suggested",
|
|
8934
9102
|
aiPanelButton: "Show AI suggestions",
|
|
8935
9103
|
aiPanelClose: "Close suggestions panel",
|
|
@@ -8937,7 +9105,7 @@ var xi = {
|
|
|
8937
9105
|
inputInstructions: "Type to search options",
|
|
8938
9106
|
triggerButton: "Toggle dropdown menu"
|
|
8939
9107
|
}, loadingText: f = "Loading results...", noResultsText: p = "No results found", onChange: m, options: v, placeholder: y = "Filter", required: b = !1, showAllTags: x = !1, showLabel: S = !0, size: w = "s", ...T }) => {
|
|
8940
|
-
let k = yn(s, c), A = "pds-combobox-multi", M = w === "s" ? null : `${A}--${w}`, F = r ? $.disabled : null, I = b && !r ? $.required : null, L = x ? `${A}--show-all-tags` : null, [R, z] = _(""), [B, H] = _(o), [U, W] = _(null), [G, K] = _(!1), q = h(() =>
|
|
9108
|
+
let k = yn(s, c), A = "pds-combobox-multi", M = w === "s" ? null : `${A}--${w}`, F = r ? $.disabled : null, I = b && !r ? $.required : null, L = x ? `${A}--show-all-tags` : null, [R, z] = _(""), [B, H] = _(o), [U, W] = _(null), [G, K] = _(!1), q = h(() => Gi(v, B, R), [
|
|
8941
9109
|
v,
|
|
8942
9110
|
B,
|
|
8943
9111
|
R
|
|
@@ -9196,22 +9364,22 @@ var xi = {
|
|
|
9196
9364
|
iconName: "xmark",
|
|
9197
9365
|
size: "m"
|
|
9198
9366
|
}))))));
|
|
9199
|
-
},
|
|
9367
|
+
}, qi = [
|
|
9200
9368
|
768,
|
|
9201
9369
|
Nt,
|
|
9202
9370
|
Pt
|
|
9203
|
-
].map((e) => `(min-width: ${e}px)`),
|
|
9204
|
-
let t =
|
|
9371
|
+
].map((e) => `(min-width: ${e}px)`), Ji = (e) => {
|
|
9372
|
+
let t = qi.map((t) => hn(t, e));
|
|
9205
9373
|
return () => t.forEach((e) => e());
|
|
9206
|
-
},
|
|
9207
|
-
let [e, t, n] =
|
|
9374
|
+
}, Yi = () => {
|
|
9375
|
+
let [e, t, n] = qi.map((e) => window.matchMedia(e).matches);
|
|
9208
9376
|
return n ? "xl" : t ? "lg" : e ? "md" : "sm";
|
|
9209
|
-
},
|
|
9377
|
+
}, Xi = () => "lg", Zi = () => v(Ji, Yi, Xi), Qi = (e) => String(e).padStart(2, "0"), $i = (e) => {
|
|
9210
9378
|
let t = e ? /^(\d{1,2}):(\d{2})$/.exec(e) : null;
|
|
9211
9379
|
if (!t) return null;
|
|
9212
9380
|
let n = parseInt(t[1], 10), r = parseInt(t[2], 10);
|
|
9213
9381
|
return n > 23 || r > 59 ? null : new be(n, r);
|
|
9214
|
-
},
|
|
9382
|
+
}, ea = (e) => e ? `${Qi(e.hour)}:${Qi(e.minute)}` : void 0, ta = ({ baseClass: t, segment: n, state: r }) => {
|
|
9215
9383
|
let i = g(null), { segmentProps: a } = ze(n, r, i), { focusProps: o, isFocusVisible: s } = Be(), c = n.isPlaceholder ? n.type === "dayPeriod" ? "--" : "00" : n.text;
|
|
9216
9384
|
return /* @__PURE__ */ e.createElement("div", {
|
|
9217
9385
|
...Pe(a, o),
|
|
@@ -9222,15 +9390,15 @@ var xi = {
|
|
|
9222
9390
|
s ? `${t}__segment--focus-visible` : null
|
|
9223
9391
|
])
|
|
9224
9392
|
}, c);
|
|
9225
|
-
},
|
|
9226
|
-
let E = yn(s, c), D = "pds-timepicker", O = b === "s" ? null : `${D}--${b}`, k = i ? $.disabled : null, A = v && !i ? $.required : null, j = w === "error" ? $.error : null, M = w === "success" ? $.success : null, N = C || u, P = T !== void 0, { locale: F } = Ve(), [I, L] = _(r), R = P ? T : I, z = h(() =>
|
|
9393
|
+
}, na = ({ anchorDate: t, className: n, defaultValue: r, disabled: i = !1, hourCycle: a = 12, id: o, inputWidth: s, inputWidthMin: c, label: l, message: u, onBlur: f, onChange: p, onFocus: m, required: v = !1, showLabel: y = !0, size: b = "s", timeZone: x, tooltipText: S = null, validationMessage: C, validationStatus: w, value: T }) => {
|
|
9394
|
+
let E = yn(s, c), D = "pds-timepicker", O = b === "s" ? null : `${D}--${b}`, k = i ? $.disabled : null, A = v && !i ? $.required : null, j = w === "error" ? $.error : null, M = w === "success" ? $.success : null, N = C || u, P = T !== void 0, { locale: F } = Ve(), [I, L] = _(r), R = P ? T : I, z = h(() => $i(R), [R]), ee = Ke({
|
|
9227
9395
|
granularity: "minute",
|
|
9228
9396
|
hourCycle: a,
|
|
9229
9397
|
isDisabled: i,
|
|
9230
9398
|
locale: F,
|
|
9231
9399
|
onBlur: f,
|
|
9232
9400
|
onChange: (e) => {
|
|
9233
|
-
let t =
|
|
9401
|
+
let t = ea(e);
|
|
9234
9402
|
t && (P || L(t), p && p(t));
|
|
9235
9403
|
},
|
|
9236
9404
|
onFocusChange: (e) => {
|
|
@@ -9248,7 +9416,7 @@ var xi = {
|
|
|
9248
9416
|
if (H.current = x, !x || !e || x === e) return;
|
|
9249
9417
|
let n = ee.value;
|
|
9250
9418
|
if (!n) return;
|
|
9251
|
-
let r = t ?? je(e), i = Ae(Oe(r, n), e), a = ke(i, x), o =
|
|
9419
|
+
let r = t ?? je(e), i = Ae(Oe(r, n), e), a = ke(i, x), o = ea(new be(a.hour, a.minute));
|
|
9252
9420
|
o && (P || L(o), p && p(o));
|
|
9253
9421
|
}, [x]);
|
|
9254
9422
|
let U = h(() => {
|
|
@@ -9298,7 +9466,7 @@ var xi = {
|
|
|
9298
9466
|
}), /* @__PURE__ */ e.createElement("div", { className: `${D}__value` }, ee.segments.map((t, n) => t.type === "literal" ? /* @__PURE__ */ e.createElement("div", {
|
|
9299
9467
|
key: n,
|
|
9300
9468
|
className: Z([`${D}__separator`, t.text === ":" ? `${D}__separator--colon` : null])
|
|
9301
|
-
}, t.text) : /* @__PURE__ */ e.createElement(
|
|
9469
|
+
}, t.text) : /* @__PURE__ */ e.createElement(ta, {
|
|
9302
9470
|
key: n,
|
|
9303
9471
|
baseClass: D,
|
|
9304
9472
|
segment: t,
|
|
@@ -9310,31 +9478,31 @@ var xi = {
|
|
|
9310
9478
|
validationMessageHasDecorators: !1,
|
|
9311
9479
|
validationStatus: w
|
|
9312
9480
|
}));
|
|
9313
|
-
},
|
|
9481
|
+
}, ra = (e, t = Te()) => {
|
|
9314
9482
|
if (!e) return;
|
|
9315
9483
|
let n = we(e, t);
|
|
9316
9484
|
return new ye(n.year, n.month, n.day);
|
|
9317
|
-
},
|
|
9485
|
+
}, ia = (e, t = Te()) => e ? e.toDate(t) : void 0, aa = (e) => String(e).padStart(2, "0"), oa = (e) => {
|
|
9318
9486
|
let t = e ? /^(\d{1,2}):(\d{2})$/.exec(e) : null;
|
|
9319
9487
|
if (!t) return;
|
|
9320
9488
|
let n = parseInt(t[1], 10), r = parseInt(t[2], 10);
|
|
9321
9489
|
if (!(n > 23 || r > 59)) return new be(n, r);
|
|
9322
|
-
},
|
|
9490
|
+
}, sa = (e, t = Te()) => {
|
|
9323
9491
|
if (!e) return;
|
|
9324
9492
|
let n = we(e, t);
|
|
9325
|
-
return `${
|
|
9326
|
-
},
|
|
9493
|
+
return `${aa(n.hour)}:${aa(n.minute)}`;
|
|
9494
|
+
}, ca = (e, t, n = Te()) => {
|
|
9327
9495
|
if (!e) return;
|
|
9328
|
-
let r =
|
|
9329
|
-
return r ? Oe(e, r).toDate(n) :
|
|
9330
|
-
},
|
|
9496
|
+
let r = oa(t);
|
|
9497
|
+
return r ? Oe(e, r).toDate(n) : ia(e, n);
|
|
9498
|
+
}, la = "00:00", ua = "23:59", da = (e, t, n = Te()) => {
|
|
9331
9499
|
if (!e) return "";
|
|
9332
9500
|
let r = we(e, n);
|
|
9333
9501
|
return Me(new Date(r.year, r.month - 1, r.day), "PP", { locale: t });
|
|
9334
|
-
},
|
|
9502
|
+
}, fa = (e, t) => {
|
|
9335
9503
|
let n = je(t).year;
|
|
9336
9504
|
return e.some((e) => !!e && we(e, t).year !== n);
|
|
9337
|
-
},
|
|
9505
|
+
}, pa = (e, { hourCycle: t, includeYear: n, localeString: r, timeZone: i = Te() }) => e ? new Intl.DateTimeFormat(r, {
|
|
9338
9506
|
day: "numeric",
|
|
9339
9507
|
hour: t === 24 ? "2-digit" : "numeric",
|
|
9340
9508
|
hourCycle: t === 24 ? "h23" : "h12",
|
|
@@ -9342,15 +9510,15 @@ var xi = {
|
|
|
9342
9510
|
month: "short",
|
|
9343
9511
|
timeZone: i,
|
|
9344
9512
|
...n ? { year: "numeric" } : {}
|
|
9345
|
-
}).format(e) : "",
|
|
9513
|
+
}).format(e) : "", ma = (e, t) => {
|
|
9346
9514
|
if (e.custom) return e.custom();
|
|
9347
9515
|
let n = t?.timeZone ?? Te(), r = t?.locale ?? "en-US", i = je(n);
|
|
9348
9516
|
if (e.days !== void 0) return e.days < 0 ? {
|
|
9349
|
-
from:
|
|
9350
|
-
to:
|
|
9517
|
+
from: ia(i.add({ days: e.days + 1 }), n),
|
|
9518
|
+
to: ia(i, n)
|
|
9351
9519
|
} : {
|
|
9352
|
-
from:
|
|
9353
|
-
to:
|
|
9520
|
+
from: ia(i, n),
|
|
9521
|
+
to: ia(i.add({ days: e.days - 1 }), n)
|
|
9354
9522
|
};
|
|
9355
9523
|
if (e.hours !== void 0) {
|
|
9356
9524
|
let t = /* @__PURE__ */ new Date(), n = new Date(t.getTime() + e.hours * 60 * 60 * 1e3);
|
|
@@ -9374,37 +9542,37 @@ var xi = {
|
|
|
9374
9542
|
}
|
|
9375
9543
|
switch (e.type) {
|
|
9376
9544
|
case "today": return {
|
|
9377
|
-
from:
|
|
9378
|
-
to:
|
|
9545
|
+
from: ia(i, n),
|
|
9546
|
+
to: ia(i, n)
|
|
9379
9547
|
};
|
|
9380
9548
|
case "current-week": return {
|
|
9381
|
-
from:
|
|
9382
|
-
to:
|
|
9549
|
+
from: ia(De(i, r), n),
|
|
9550
|
+
to: ia(Ce(i, r), n)
|
|
9383
9551
|
};
|
|
9384
9552
|
case "current-month": return {
|
|
9385
|
-
from:
|
|
9386
|
-
to:
|
|
9553
|
+
from: ia(Ee(i), n),
|
|
9554
|
+
to: ia(Se(i), n)
|
|
9387
9555
|
};
|
|
9388
9556
|
case "last-week": {
|
|
9389
9557
|
let e = i.subtract({ weeks: 1 });
|
|
9390
9558
|
return {
|
|
9391
|
-
from:
|
|
9392
|
-
to:
|
|
9559
|
+
from: ia(De(e, r), n),
|
|
9560
|
+
to: ia(Ce(e, r), n)
|
|
9393
9561
|
};
|
|
9394
9562
|
}
|
|
9395
9563
|
case "last-month": {
|
|
9396
9564
|
let e = i.subtract({ months: 1 });
|
|
9397
9565
|
return {
|
|
9398
|
-
from:
|
|
9399
|
-
to:
|
|
9566
|
+
from: ia(Ee(e), n),
|
|
9567
|
+
to: ia(Se(e), n)
|
|
9400
9568
|
};
|
|
9401
9569
|
}
|
|
9402
9570
|
default: return {
|
|
9403
|
-
from:
|
|
9404
|
-
to:
|
|
9571
|
+
from: ia(i, n),
|
|
9572
|
+
to: ia(i, n)
|
|
9405
9573
|
};
|
|
9406
9574
|
}
|
|
9407
|
-
},
|
|
9575
|
+
}, ha = {
|
|
9408
9576
|
clearButton: "Clear",
|
|
9409
9577
|
customPresetLabel: "Custom",
|
|
9410
9578
|
doneButton: "Done",
|
|
@@ -9425,7 +9593,7 @@ var xi = {
|
|
|
9425
9593
|
to: " to ",
|
|
9426
9594
|
todayButton: "Today",
|
|
9427
9595
|
utcTimeZoneLabel: "UTC"
|
|
9428
|
-
},
|
|
9596
|
+
}, ga = ({ baseClass: t, currentMonth: n, date: r, state: i, timeZone: a }) => {
|
|
9429
9597
|
let o = g(null), { buttonProps: s, cellProps: c, formattedDate: l, isDisabled: u, isOutsideVisibleRange: d, isSelected: f, isUnavailable: p } = Le({ date: r }, i, o), m = r.month !== n.month || r.year !== n.year, h = "highlightedRange" in i ? i : null, _ = !!h?.highlightedRange && r.compare(h.highlightedRange.start) === 0, v = !!h?.highlightedRange && r.compare(h.highlightedRange.end) === 0, y = f && h && !_ && !v, b = d || m, x = r.compare(je(a)) === 0;
|
|
9430
9598
|
return /* @__PURE__ */ e.createElement("td", {
|
|
9431
9599
|
...c,
|
|
@@ -9447,7 +9615,7 @@ var xi = {
|
|
|
9447
9615
|
]),
|
|
9448
9616
|
hidden: b
|
|
9449
9617
|
}, l));
|
|
9450
|
-
},
|
|
9618
|
+
}, _a = ({ baseClass: t, monthOffset: n = 0, state: r, timeZone: i }) => {
|
|
9451
9619
|
let a = r.visibleRange.start.add({ months: n }), { gridProps: o, headerProps: s, weekDays: c, weeksInMonth: l } = Re({ startDate: a }, r);
|
|
9452
9620
|
return /* @__PURE__ */ e.createElement("table", {
|
|
9453
9621
|
...o,
|
|
@@ -9455,7 +9623,7 @@ var xi = {
|
|
|
9455
9623
|
}, /* @__PURE__ */ e.createElement("thead", s, /* @__PURE__ */ e.createElement("tr", null, c.map((n, r) => /* @__PURE__ */ e.createElement("th", {
|
|
9456
9624
|
key: r,
|
|
9457
9625
|
className: `${t}__weekday`
|
|
9458
|
-
}, n)))), /* @__PURE__ */ e.createElement("tbody", null, [...Array(l).keys()].map((n) => /* @__PURE__ */ e.createElement("tr", { key: n }, r.getDatesInWeek(n, a).map((n, o) => n ? /* @__PURE__ */ e.createElement(
|
|
9626
|
+
}, n)))), /* @__PURE__ */ e.createElement("tbody", null, [...Array(l).keys()].map((n) => /* @__PURE__ */ e.createElement("tr", { key: n }, r.getDatesInWeek(n, a).map((n, o) => n ? /* @__PURE__ */ e.createElement(ga, {
|
|
9459
9627
|
key: o,
|
|
9460
9628
|
baseClass: t,
|
|
9461
9629
|
currentMonth: a,
|
|
@@ -9463,26 +9631,26 @@ var xi = {
|
|
|
9463
9631
|
state: r,
|
|
9464
9632
|
timeZone: i
|
|
9465
9633
|
}) : /* @__PURE__ */ e.createElement("td", { key: o }))))));
|
|
9466
|
-
},
|
|
9634
|
+
}, va = ({ allowCustomRange: t = !0, allowDateRangeSelection: n = !0, className: r, defaultPresetLabel: i, defaultTimeZoneMode: a = "utc", disabled: o = !1, footerNote: s, hourCycle: c = 12, id: l, inputWidth: u, inputWidthMin: f, label: p, locale: m, maxDate: v, message: y, minDate: b, mode: x = "single", onChange: S, onTimeZoneChange: w, placeholder: T, presets: E, required: D = !1, showLabel: O = !0, showPresetCalendar: k = !0, showTime: A = !1, showTimeZoneSwitcher: j = !1, showTodayButton: M = !0, timeZone: N = Te(), tooltipText: P, translationStrings: F, validationMessage: I, validationStatus: L, value: R, visibleMonths: z = 2, ...ee }) => {
|
|
9467
9635
|
let B = x === "range", V = {
|
|
9468
|
-
...
|
|
9636
|
+
...ha,
|
|
9469
9637
|
...F
|
|
9470
|
-
}, H = B && !!E && E.length > 0, U =
|
|
9638
|
+
}, H = B && !!E && E.length > 0, U = Zi() === "sm", W = k && !U;
|
|
9471
9639
|
j && !A && process.env.NODE_ENV !== "production" && console.warn("[Datepicker] `showTimeZoneSwitcher` has no effect unless `showTime` is also true."), E && E.length > 0 && !B && process.env.NODE_ENV !== "production" && console.warn("[Datepicker] `presets` requires `mode=\"range\"` — every preset computes a date range."), !t && !H && process.env.NODE_ENV !== "production" && console.warn("[Datepicker] `allowCustomRange` has no effect unless `presets` is also set."), i !== void 0 && !(H && E?.some((e) => e.label === i)) && process.env.NODE_ENV !== "production" && console.warn(`[Datepicker] \`defaultPresetLabel\` "${i}" matches no entry in \`presets\` — nothing is seeded as active.`);
|
|
9472
9640
|
let { locale: G } = Ve(), K = m?.code ?? G, q = h(() => B ? E?.find((e) => e.label === i) : void 0, [
|
|
9473
9641
|
i,
|
|
9474
9642
|
B,
|
|
9475
9643
|
E
|
|
9476
9644
|
]), te = (e) => {
|
|
9477
|
-
let t =
|
|
9645
|
+
let t = ma(e, {
|
|
9478
9646
|
locale: K,
|
|
9479
9647
|
timeZone: N
|
|
9480
9648
|
}), n = e.hours !== void 0 || e.minutes !== void 0;
|
|
9481
9649
|
return !A || n ? t : {
|
|
9482
|
-
from:
|
|
9483
|
-
to:
|
|
9650
|
+
from: ca(ra(t.from, N), la, N),
|
|
9651
|
+
to: ca(ra(t.to, N), ua, N)
|
|
9484
9652
|
};
|
|
9485
|
-
}, [J, ne] = _(() => R ?? (q ? te(q) : void 0)), [re, ie] = _(a), Y = j ? re === "utc" ? "UTC" : Te() : N, [X, ae] = _(q?.label), [oe, se] = _(W), ce = !H || oe, le = !H || k || t, ue = z === 1 ? B && A ? 400 : 280 : 550, de = g(null), fe = X === void 0 && (B ? !!J?.from : !!J), pe = (e, t) => B && A ? e ?? t : e, [me, he] = _(() => pe(
|
|
9653
|
+
}, [J, ne] = _(() => R ?? (q ? te(q) : void 0)), [re, ie] = _(a), Y = j ? re === "utc" ? "UTC" : Te() : N, [X, ae] = _(q?.label), [oe, se] = _(W), ce = !H || oe, le = !H || k || t, ue = z === 1 ? B && A ? 400 : 280 : 550, de = g(null), fe = X === void 0 && (B ? !!J?.from : !!J), pe = (e, t) => B && A ? e ?? t : e, [me, he] = _(() => pe(sa(B ? J?.from : J, Y), la)), [ge, _e] = _(() => pe(sa(J?.to, Y), ua)), ve = yn(u, f), ye = "pds-datepicker", be = o ? $.disabled : null, Se = D && !o ? $.required : null, Ce = L === "error" ? $.error : null, we = L === "success" ? $.success : null, Ee = I || y, De = /* @__PURE__ */ e.createElement("div", { className: `${ye}__timezone-switcher` }, /* @__PURE__ */ e.createElement("span", { className: `${ye}__timezone-switcher-label` }, V.timeZoneSwitcherLabel), /* @__PURE__ */ e.createElement(Cr, {
|
|
9486
9654
|
id: `${l}-timezone-switcher`,
|
|
9487
9655
|
label: V.timeZoneSwitcherLabel || "",
|
|
9488
9656
|
onChange: (e) => {
|
|
@@ -9505,7 +9673,7 @@ var xi = {
|
|
|
9505
9673
|
role: "dialog",
|
|
9506
9674
|
shiftPadding: 16,
|
|
9507
9675
|
variant: "default"
|
|
9508
|
-
}), ze = $n("var(--pds-z-index-overlay)"), Be =
|
|
9676
|
+
}), ze = $n("var(--pds-z-index-overlay)"), Be = ra(b, Y), Ue = ra(v, Y), Ke = (e, t, n = !1) => {
|
|
9509
9677
|
ne(e), ae(t), S?.(e), !B && n && setTimeout(() => {
|
|
9510
9678
|
Re(!1);
|
|
9511
9679
|
}, 300);
|
|
@@ -9515,9 +9683,9 @@ var xi = {
|
|
|
9515
9683
|
maxValue: Ue,
|
|
9516
9684
|
minValue: Be,
|
|
9517
9685
|
onChange: (e) => {
|
|
9518
|
-
B || Ke(
|
|
9686
|
+
B || Ke(ca(e, A ? me : void 0, Y), void 0, !A);
|
|
9519
9687
|
},
|
|
9520
|
-
value: B ? null :
|
|
9688
|
+
value: B ? null : ra(J, Y) ?? null
|
|
9521
9689
|
}), Je = g(null), Ye = Ge({
|
|
9522
9690
|
createCalendar: xe,
|
|
9523
9691
|
locale: K,
|
|
@@ -9526,12 +9694,12 @@ var xi = {
|
|
|
9526
9694
|
visibleDuration: { months: z },
|
|
9527
9695
|
onChange: (e) => {
|
|
9528
9696
|
B && e && Ke({
|
|
9529
|
-
from:
|
|
9530
|
-
to:
|
|
9697
|
+
from: ca(e.start, A ? me : void 0, Y),
|
|
9698
|
+
to: ca(e.end, A ? ge : void 0, Y)
|
|
9531
9699
|
});
|
|
9532
9700
|
},
|
|
9533
9701
|
value: B ? (() => {
|
|
9534
|
-
let e = J, t =
|
|
9702
|
+
let e = J, t = ra(e?.from, Y), n = ra(e?.to, Y);
|
|
9535
9703
|
return t && n ? {
|
|
9536
9704
|
start: t,
|
|
9537
9705
|
end: n
|
|
@@ -9541,32 +9709,32 @@ var xi = {
|
|
|
9541
9709
|
month: "long",
|
|
9542
9710
|
year: "numeric"
|
|
9543
9711
|
}).format(e.toDate(Te())), st = B ? Array.from({ length: z }, (e, t) => t) : [0], ct = st.map((e) => ot(Xe.visibleRange.start.add({ months: e }))), lt = g(null), ut = g(null), { buttonProps: dt } = Fe(at, lt), { buttonProps: ft } = Fe(it, ut), pt = () => {
|
|
9544
|
-
ne(void 0), ae(void 0), S?.(void 0), A && (he(B ?
|
|
9712
|
+
ne(void 0), ae(void 0), S?.(void 0), A && (he(B ? la : void 0), _e(B ? ua : void 0)), B ? Ye.setValue(null) : qe.setValue(null);
|
|
9545
9713
|
}, mt = () => !B || !Ye.anchorDate ? !1 : (Ye.selectDate(Ye.anchorDate), !0), ht = () => {
|
|
9546
9714
|
mt(), Re(!1);
|
|
9547
9715
|
}, gt = () => {
|
|
9548
9716
|
let e = je(Y);
|
|
9549
|
-
Xe.setFocusedDate(e), B ? (Ye.setValue(null), ne(void 0), ae(void 0), S?.(void 0)) : (qe.setValue(e), Ke(
|
|
9717
|
+
Xe.setFocusedDate(e), B ? (Ye.setValue(null), ne(void 0), ae(void 0), S?.(void 0)) : (qe.setValue(e), Ke(ca(e, A ? me : void 0, Y), void 0, !A));
|
|
9550
9718
|
}, _t = (e) => {
|
|
9551
|
-
let t =
|
|
9719
|
+
let t = ma(e, {
|
|
9552
9720
|
locale: K,
|
|
9553
9721
|
timeZone: Y
|
|
9554
9722
|
}), n = e.hours !== void 0 || e.minutes !== void 0;
|
|
9555
|
-
se(W), A && n ? (he(
|
|
9556
|
-
from:
|
|
9557
|
-
to:
|
|
9723
|
+
se(W), A && n ? (he(sa(t.from, Y)), _e(sa(t.to, Y)), Ke(t, e.label)) : Ke(A ? {
|
|
9724
|
+
from: ca(ra(t.from, Y), me, Y),
|
|
9725
|
+
to: ca(ra(t.to, Y), ge, Y)
|
|
9558
9726
|
} : t, e.label);
|
|
9559
|
-
let r =
|
|
9727
|
+
let r = ra(t.from, Y);
|
|
9560
9728
|
r && Xe.setFocusedDate(r), W || setTimeout(() => {
|
|
9561
9729
|
Re(!1);
|
|
9562
9730
|
}, 300);
|
|
9563
|
-
}, vt = (e, t) =>
|
|
9731
|
+
}, vt = (e, t) => sa(e, Y) === t, yt = (e) => {
|
|
9564
9732
|
if (he(e), B) {
|
|
9565
9733
|
let t = J;
|
|
9566
9734
|
if (t?.from && t?.to) {
|
|
9567
9735
|
if (vt(t.from, e)) return;
|
|
9568
9736
|
Ke({
|
|
9569
|
-
from:
|
|
9737
|
+
from: ca(ra(t.from, Y), e, Y),
|
|
9570
9738
|
to: t.to
|
|
9571
9739
|
});
|
|
9572
9740
|
}
|
|
@@ -9574,7 +9742,7 @@ var xi = {
|
|
|
9574
9742
|
let t = J;
|
|
9575
9743
|
if (t) {
|
|
9576
9744
|
if (vt(t, e)) return;
|
|
9577
|
-
Ke(
|
|
9745
|
+
Ke(ca(ra(t, Y), e, Y));
|
|
9578
9746
|
}
|
|
9579
9747
|
}
|
|
9580
9748
|
}, bt = (e) => {
|
|
@@ -9584,7 +9752,7 @@ var xi = {
|
|
|
9584
9752
|
if (vt(t.to, e)) return;
|
|
9585
9753
|
Ke({
|
|
9586
9754
|
from: t.from,
|
|
9587
|
-
to:
|
|
9755
|
+
to: ca(ra(t.to, Y), e, Y)
|
|
9588
9756
|
});
|
|
9589
9757
|
}
|
|
9590
9758
|
}, xt = g(R);
|
|
@@ -9594,8 +9762,8 @@ var xi = {
|
|
|
9594
9762
|
if (A) {
|
|
9595
9763
|
if (B) {
|
|
9596
9764
|
let e = J;
|
|
9597
|
-
he(
|
|
9598
|
-
} else he(
|
|
9765
|
+
he(sa(e?.from, Y) ?? la), _e(sa(e?.to, Y) ?? ua);
|
|
9766
|
+
} else he(sa(J, Y));
|
|
9599
9767
|
}
|
|
9600
9768
|
}, [
|
|
9601
9769
|
J,
|
|
@@ -9610,18 +9778,18 @@ var xi = {
|
|
|
9610
9778
|
Ye.anchorDate
|
|
9611
9779
|
]), d(() => {
|
|
9612
9780
|
if (Pe) {
|
|
9613
|
-
let e =
|
|
9781
|
+
let e = ra(B ? J?.from : J, Y);
|
|
9614
9782
|
Xe.setFocusedDate(e ?? je(Y)), se(W);
|
|
9615
9783
|
}
|
|
9616
9784
|
}, [Pe]), d(() => {
|
|
9617
9785
|
de.current && (de.current.inert = !ce);
|
|
9618
9786
|
}, [ce]);
|
|
9619
|
-
let St = E?.find((e) => e.label === X), Ct = St && (St.showLabelInTrigger ?? (St.hours !== void 0 || St.minutes !== void 0)) ? St.label : void 0, wt =
|
|
9787
|
+
let St = E?.find((e) => e.label === X), Ct = St && (St.showLabelInTrigger ?? (St.hours !== void 0 || St.minutes !== void 0)) ? St.label : void 0, wt = fa(B ? [J?.from, J?.to] : [J], Y), Tt = (e) => A ? pa(e, {
|
|
9620
9788
|
hourCycle: c,
|
|
9621
9789
|
includeYear: wt,
|
|
9622
9790
|
localeString: K,
|
|
9623
9791
|
timeZone: Y
|
|
9624
|
-
}) :
|
|
9792
|
+
}) : da(e, m, Y), Et = () => {
|
|
9625
9793
|
if (Ct !== void 0) return Ct;
|
|
9626
9794
|
if (B) {
|
|
9627
9795
|
let t = J;
|
|
@@ -9634,7 +9802,7 @@ var xi = {
|
|
|
9634
9802
|
}, Dt = () => Ct === void 0 ? B ? !J?.from : !J : !1, Ot = () => {
|
|
9635
9803
|
if (B) {
|
|
9636
9804
|
let e = J, t = Ye.anchorDate;
|
|
9637
|
-
return !e?.from && t ? `${V.selectedStartDate}${
|
|
9805
|
+
return !e?.from && t ? `${V.selectedStartDate}${da(ia(t, Y), m, Y)}${V.pleaseSelectEndDate}` : e?.from ? e.to ? `${V.selectedDateRange}${Tt(e.from)}${V.to}${Tt(e.to)}` : `${V.selectedStartDate}${Tt(e.from)}${V.pleaseSelectEndDate}` : V.noDateRangeSelected || "";
|
|
9638
9806
|
}
|
|
9639
9807
|
{
|
|
9640
9808
|
let e = J;
|
|
@@ -9677,13 +9845,13 @@ var xi = {
|
|
|
9677
9845
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
9678
9846
|
iconName: "angleRight",
|
|
9679
9847
|
size: "m"
|
|
9680
|
-
}))), /* @__PURE__ */ e.createElement(
|
|
9848
|
+
}))), /* @__PURE__ */ e.createElement(_a, {
|
|
9681
9849
|
baseClass: ye,
|
|
9682
9850
|
monthOffset: t,
|
|
9683
9851
|
state: Xe,
|
|
9684
9852
|
timeZone: Y
|
|
9685
|
-
})))), A && /* @__PURE__ */ e.createElement("div", { className: `${ye}__time-section` }, B ? /* @__PURE__ */ e.createElement("div", { className: `${ye}__time-fields` }, /* @__PURE__ */ e.createElement(
|
|
9686
|
-
anchorDate:
|
|
9853
|
+
})))), A && /* @__PURE__ */ e.createElement("div", { className: `${ye}__time-section` }, B ? /* @__PURE__ */ e.createElement("div", { className: `${ye}__time-fields` }, /* @__PURE__ */ e.createElement(na, {
|
|
9854
|
+
anchorDate: ra(kt?.from, Y),
|
|
9687
9855
|
hourCycle: c,
|
|
9688
9856
|
id: `${l}-start-time`,
|
|
9689
9857
|
label: V.startTimeLabel || "",
|
|
@@ -9691,8 +9859,8 @@ var xi = {
|
|
|
9691
9859
|
size: "s",
|
|
9692
9860
|
timeZone: Y,
|
|
9693
9861
|
value: me
|
|
9694
|
-
}), /* @__PURE__ */ e.createElement(
|
|
9695
|
-
anchorDate:
|
|
9862
|
+
}), /* @__PURE__ */ e.createElement(na, {
|
|
9863
|
+
anchorDate: ra(kt?.to, Y),
|
|
9696
9864
|
hourCycle: c,
|
|
9697
9865
|
id: `${l}-end-time`,
|
|
9698
9866
|
label: V.endTimeLabel || "",
|
|
@@ -9700,8 +9868,8 @@ var xi = {
|
|
|
9700
9868
|
size: "s",
|
|
9701
9869
|
timeZone: Y,
|
|
9702
9870
|
value: ge
|
|
9703
|
-
})) : J && /* @__PURE__ */ e.createElement("div", { className: `${ye}__time-fields` }, /* @__PURE__ */ e.createElement(
|
|
9704
|
-
anchorDate:
|
|
9871
|
+
})) : J && /* @__PURE__ */ e.createElement("div", { className: `${ye}__time-fields` }, /* @__PURE__ */ e.createElement(na, {
|
|
9872
|
+
anchorDate: ra(J, Y),
|
|
9705
9873
|
hourCycle: c,
|
|
9706
9874
|
id: `${l}-time`,
|
|
9707
9875
|
label: V.timeLabel || "",
|
|
@@ -9811,7 +9979,7 @@ var xi = {
|
|
|
9811
9979
|
className: `${ye}__calendar-wrapper-inner`,
|
|
9812
9980
|
style: U ? void 0 : { width: ue }
|
|
9813
9981
|
}, At)) : At))));
|
|
9814
|
-
},
|
|
9982
|
+
}, ya = o(({ accept: t, className: n, defaultValue: r, disabled: i = !1, fieldLabel: a, id: o, inputProps: s, inputWidth: c, inputWidthMin: l, labelStrings: u = {
|
|
9815
9983
|
chooseFile: "Choose file",
|
|
9816
9984
|
clearButton: "Clear selected file"
|
|
9817
9985
|
}, message: f, multiple: p = !1, onClear: m, onFileChange: h, required: g = !1, showFullPath: v, showLabel: y = !0, size: b = "s", tooltipText: x = null, validationMessage: S, validationStatus: C, ...w }, T) => {
|
|
@@ -9891,7 +10059,7 @@ var xi = {
|
|
|
9891
10059
|
validationMessageHasDecorators: !1,
|
|
9892
10060
|
validationStatus: C
|
|
9893
10061
|
}));
|
|
9894
|
-
}),
|
|
10062
|
+
}), ba = ({ children: t, className: n, ...r }) => {
|
|
9895
10063
|
let i = "pds-input-group", a = [t[0], t[1]], o = t[0].props.id ?? null, s = t[0].props.message ?? null, c = t[0].props.validationMessage ?? null, l = t[0].props.validationStatus ?? null, u = c || s, d = u ? `${i}--has-message` : null;
|
|
9896
10064
|
return /* @__PURE__ */ e.createElement("div", {
|
|
9897
10065
|
className: Z([
|
|
@@ -9908,7 +10076,7 @@ var xi = {
|
|
|
9908
10076
|
validationMessageHasDecorators: !1,
|
|
9909
10077
|
validationStatus: l
|
|
9910
10078
|
}));
|
|
9911
|
-
},
|
|
10079
|
+
}, xa = ({ className: t, defaultValue: n, disabled: r = !1, fieldsetProps: i, id: a, inputWidth: o, inputWidthMin: s, label: c, labelVariant: l, message: u, onBlur: d, onChange: f, onValueChange: p, options: m, required: h = !1, showLabel: g = !0, tooltipText: v = null, validationMessage: y, validationStatus: b, value: x, ...S }) => {
|
|
9912
10080
|
let C = "pds-radio-group", w = r ? $.disabled : null, T = h && !r ? $.required : null, E = b === "error" ? $.error : null, D = b === "success" ? $.success : null, O = x !== void 0, [k, A] = _(n === void 0 ? "" : n), j = y || u, M = (e) => {
|
|
9913
10081
|
O || A(e.target.value), f && f(e), p && p(e.target.value);
|
|
9914
10082
|
}, N = (e) => {
|
|
@@ -9958,7 +10126,7 @@ var xi = {
|
|
|
9958
10126
|
message: j,
|
|
9959
10127
|
validationStatus: b
|
|
9960
10128
|
}));
|
|
9961
|
-
},
|
|
10129
|
+
}, Sa = o(({ checked: t, className: n, defaultChecked: r, disabled: i = !1, id: a, inputProps: o, inputWidth: s, inputWidthMin: c, label: l, labelVariant: u, message: d, offLabel: f = "Off", onChange: p, onLabel: m = "On", required: h = !1, showLabel: g = !0, showStatusLabel: v = !0, statusLabelPlacement: y = "right", switchPlacement: b = "right", ...x }, S) => {
|
|
9962
10130
|
let C = yn(s, c), w = "pds-switch", T = `${w}--${b}`, E = d ? `${w}--message` : null, D = i ? $.disabled : null, O = h && !i ? $.required : null, k = t !== void 0, [A, j] = _(!k && r ? r : !1), M = t || A ? m : f, N = (e) => {
|
|
9963
10131
|
k || j(e.target.checked), p && p(e);
|
|
9964
10132
|
}, P = v ? /* @__PURE__ */ e.createElement("span", {
|
|
@@ -10014,7 +10182,7 @@ var xi = {
|
|
|
10014
10182
|
required: h,
|
|
10015
10183
|
showLabel: g
|
|
10016
10184
|
}), /* @__PURE__ */ e.createElement("div", { className: `${w}__content` }, L, I));
|
|
10017
|
-
}),
|
|
10185
|
+
}), Ca = ({ disabled: t, focusedIndex: n, index: r, isSortable: i, onFocusInput: a, onKeyboardMove: o, onRemove: s, setFocusedIndex: c, tag: l, totalTags: u, translationStrings: f }) => {
|
|
10018
10186
|
let p = g(null), m = "pds-tags-input__tag", { isDragging: h, listeners: _, setNodeRef: v, transform: y, transition: b } = ot({
|
|
10019
10187
|
disabled: !i || t,
|
|
10020
10188
|
id: l.id
|
|
@@ -10076,7 +10244,7 @@ var xi = {
|
|
|
10076
10244
|
iconName: "xmark",
|
|
10077
10245
|
size: "xs"
|
|
10078
10246
|
})));
|
|
10079
|
-
},
|
|
10247
|
+
}, wa = o(({ addMorePlaceholder: t = "Add another", className: n, disabled: r = !1, id: i, inputMinHeight: a, inputWidth: o, inputWidthMin: s, isSortable: c = !1, label: l, message: u, onChange: d, placeholder: f, required: p = !1, showLabel: m = !0, size: h = "s", tags: v, tooltipText: y = null, translationStrings: b = {
|
|
10080
10248
|
inputInstructions: "Type a tag name and press Enter to add. Press Backspace on empty input to remove last tag. Press left arrow on empty input to navigate to tags.",
|
|
10081
10249
|
tagAriaLabel: "tag {index} of {total}. Press Shift plus arrow keys to reorder, Delete to remove.",
|
|
10082
10250
|
tagAriaLabelSimple: "tag {index} of {total}. Press Delete to remove.",
|
|
@@ -10167,7 +10335,7 @@ var xi = {
|
|
|
10167
10335
|
}, v.map((t, n) => /* @__PURE__ */ e.createElement("div", {
|
|
10168
10336
|
key: t.id,
|
|
10169
10337
|
role: "listitem"
|
|
10170
|
-
}, /* @__PURE__ */ e.createElement(
|
|
10338
|
+
}, /* @__PURE__ */ e.createElement(Ca, {
|
|
10171
10339
|
disabled: r,
|
|
10172
10340
|
focusedIndex: L,
|
|
10173
10341
|
index: n,
|
|
@@ -10214,7 +10382,7 @@ var xi = {
|
|
|
10214
10382
|
validationMessageHasDecorators: !1,
|
|
10215
10383
|
validationStatus: S
|
|
10216
10384
|
}));
|
|
10217
|
-
}),
|
|
10385
|
+
}), Ta = o(({ className: t, counterMaxLength: n, defaultValue: r, disabled: i = !1, id: a, inputWidth: o, inputWidthMin: s, isResizable: c = !0, label: l, message: u, onBlur: d, onChange: f, onFocus: p, placeholder: m, readonly: h = !1, required: g = !1, rows: v = 5, showLabel: y, size: b = "s", textareaProps: x, tooltipText: S = null, translationStrings: C = {
|
|
10218
10386
|
clearButton: "Clear input text",
|
|
10219
10387
|
counterOverLimit: "Character limit exceeded by",
|
|
10220
10388
|
searchShortcut: "Press / to focus the search field",
|
|
@@ -10281,7 +10449,7 @@ var xi = {
|
|
|
10281
10449
|
message: R,
|
|
10282
10450
|
validationStatus: T
|
|
10283
10451
|
}));
|
|
10284
|
-
}),
|
|
10452
|
+
}), Ea = () => /* @__PURE__ */ e.createElement("div", { className: "pds-text-input__url-prefix" }, "https://"), Da = o(({ autoComplete: t, className: n, counterMaxLength: r, defaultValue: i, disabled: a = !1, hasClearButton: o = !1, hasSearchShortcut: s = !1, hasUrlPrefix: c = !1, id: l, inputProps: u, inputWidth: d, inputWidthMin: f, label: p, message: m, onBlur: h, onChange: g, onClear: v, onFocus: y, placeholder: b, readonly: x = !1, required: S = !1, searchIcon: C = "search", showLabel: w = !0, showVisibilityToggle: T = !1, size: E = "s", tooltipText: D = null, translationStrings: O = {
|
|
10285
10453
|
clearButton: "Clear input text",
|
|
10286
10454
|
counterOverLimit: "Character limit exceeded by",
|
|
10287
10455
|
searchShortcut: "Press / to focus the search field",
|
|
@@ -10353,7 +10521,7 @@ var xi = {
|
|
|
10353
10521
|
`${I}__input-wrapper`,
|
|
10354
10522
|
c && k === "url" ? `${I}__input-wrapper--has-prefix` : null,
|
|
10355
10523
|
J ? `${I}__input-wrapper--has-search-shortcut` : null
|
|
10356
|
-
]) }, U && /* @__PURE__ */ e.createElement(Tn, { variant: U }), c && k === "url" && /* @__PURE__ */ e.createElement(
|
|
10524
|
+
]) }, U && /* @__PURE__ */ e.createElement(Tn, { variant: U }), c && k === "url" && /* @__PURE__ */ e.createElement(Ea, null), /* @__PURE__ */ e.createElement("input", {
|
|
10357
10525
|
ref: P,
|
|
10358
10526
|
"aria-describedby": W ? `${l}__message` : null,
|
|
10359
10527
|
"aria-invalid": j === "error" || null,
|
|
@@ -10401,12 +10569,12 @@ var xi = {
|
|
|
10401
10569
|
validationMessageHasDecorators: !1,
|
|
10402
10570
|
validationStatus: j
|
|
10403
10571
|
}));
|
|
10404
|
-
}),
|
|
10572
|
+
}), Oa = ({ avatarSize: t = "m", className: n, showActiveState: r = !0, workspace: i, ...a }) => {
|
|
10405
10573
|
let o = "pds-workspace-list-item";
|
|
10406
10574
|
return /* @__PURE__ */ e.createElement("div", {
|
|
10407
10575
|
className: Z([o, n ?? ""]),
|
|
10408
10576
|
...a
|
|
10409
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__content` }, /* @__PURE__ */ e.createElement(
|
|
10577
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__content` }, /* @__PURE__ */ e.createElement(Ri, {
|
|
10410
10578
|
className: `${o}__avatar`,
|
|
10411
10579
|
imageSrc: i.imageSrc,
|
|
10412
10580
|
size: t,
|
|
@@ -10419,7 +10587,7 @@ var xi = {
|
|
|
10419
10587
|
iconName: "lock",
|
|
10420
10588
|
size: "m"
|
|
10421
10589
|
}), r && i.isActive && /* @__PURE__ */ e.createElement(xr, null)));
|
|
10422
|
-
},
|
|
10590
|
+
}, ka = ({ ariaLabel: t, className: n, filterLabel: r = "Filter workspaces", filterPlaceholder: i = "Find workspace...", id: a, inputWidth: o, inputWidthMin: s, label: c, message: l, minFilterItems: u = 8, noResultsText: d = "No results found", onSelectWorkspace: f, showLabel: p = !0, visibleItemCount: m = 6, workspaceList: g = [], ...v }) => {
|
|
10423
10591
|
let y = "pds-workspace-picker", b = `${y}__item`, [x, S] = _(""), C = g.length >= u, w = h(() => {
|
|
10424
10592
|
if (!x) return g;
|
|
10425
10593
|
let e = x.toLowerCase();
|
|
@@ -10437,10 +10605,10 @@ var xi = {
|
|
|
10437
10605
|
}, n ? /* @__PURE__ */ e.createElement("button", {
|
|
10438
10606
|
onClick: () => t.onRestrictedSelection(),
|
|
10439
10607
|
type: "button"
|
|
10440
|
-
}, /* @__PURE__ */ e.createElement(
|
|
10608
|
+
}, /* @__PURE__ */ e.createElement(Oa, { workspace: t })) : r ? /* @__PURE__ */ e.createElement(r, Object.assign({}, t.workspaceLink?.props), /* @__PURE__ */ e.createElement(Oa, { workspace: t })) : /* @__PURE__ */ e.createElement("button", {
|
|
10441
10609
|
onClick: () => f?.(t),
|
|
10442
10610
|
type: "button"
|
|
10443
|
-
}, /* @__PURE__ */ e.createElement(
|
|
10611
|
+
}, /* @__PURE__ */ e.createElement(Oa, { workspace: t })));
|
|
10444
10612
|
});
|
|
10445
10613
|
return /* @__PURE__ */ e.createElement("div", {
|
|
10446
10614
|
className: Z([y, n ?? ""]),
|
|
@@ -10459,7 +10627,7 @@ var xi = {
|
|
|
10459
10627
|
label: c,
|
|
10460
10628
|
required: !1,
|
|
10461
10629
|
showLabel: p
|
|
10462
|
-
}), C && /* @__PURE__ */ e.createElement("div", { className: `${y}__filter` }, /* @__PURE__ */ e.createElement(
|
|
10630
|
+
}), C && /* @__PURE__ */ e.createElement("div", { className: `${y}__filter` }, /* @__PURE__ */ e.createElement(Da, {
|
|
10463
10631
|
hasClearButton: !0,
|
|
10464
10632
|
id: `${a}-filter`,
|
|
10465
10633
|
label: r,
|
|
@@ -10475,7 +10643,7 @@ var xi = {
|
|
|
10475
10643
|
id: a,
|
|
10476
10644
|
message: l
|
|
10477
10645
|
}));
|
|
10478
|
-
},
|
|
10646
|
+
}, Aa = ({ className: t, linkContent: n, size: i = "s", ...a }) => {
|
|
10479
10647
|
let o = "pds-cta-link", c = i === "s" ? null : `${o}--${i}`, l = /* @__PURE__ */ e.createElement(Q, {
|
|
10480
10648
|
className: `${o}__icon`,
|
|
10481
10649
|
iconName: "arrowRight",
|
|
@@ -10489,7 +10657,7 @@ var xi = {
|
|
|
10489
10657
|
]),
|
|
10490
10658
|
...a
|
|
10491
10659
|
}, u);
|
|
10492
|
-
},
|
|
10660
|
+
}, ja = ({ children: t, className: n, fontSize: r, isLoading: i, newWindowText: a = "opens in a new window", url: o, ...s }) => {
|
|
10493
10661
|
let c = "pds-link-new-window", l = r ? `${c}--${r}` : null;
|
|
10494
10662
|
return i ? /* @__PURE__ */ e.createElement("span", {
|
|
10495
10663
|
"aria-hidden": "true",
|
|
@@ -10516,11 +10684,11 @@ var xi = {
|
|
|
10516
10684
|
className: `${c}__icon`,
|
|
10517
10685
|
iconName: "externalLink"
|
|
10518
10686
|
}));
|
|
10519
|
-
},
|
|
10687
|
+
}, Ma = ({ className: t, destination: n = "main", text: r = "Skip to main content", ...i }) => /* @__PURE__ */ e.createElement("a", {
|
|
10520
10688
|
className: Z(["pds-skiplink", t]),
|
|
10521
10689
|
href: `#${n}`,
|
|
10522
10690
|
...i
|
|
10523
|
-
}, r),
|
|
10691
|
+
}, r), Na = ({ className: t, iconName: n = "zappy", label: r, showTimer: i = !1, size: a = "s", state: o = "active", time: s, ...c }) => {
|
|
10524
10692
|
let l = "pds-thinking-state";
|
|
10525
10693
|
return /* @__PURE__ */ e.createElement("div", {
|
|
10526
10694
|
className: Z([
|
|
@@ -10540,7 +10708,7 @@ var xi = {
|
|
|
10540
10708
|
"aria-hidden": o === "active" ? "true" : void 0,
|
|
10541
10709
|
className: `${l}__time`
|
|
10542
10710
|
}, s));
|
|
10543
|
-
},
|
|
10711
|
+
}, Pa = ({ alt: t = "", className: n, height: r, srcFallback: i, srcWebp: a, width: o, ...s }) => {
|
|
10544
10712
|
let c = "pds-picture";
|
|
10545
10713
|
return /* @__PURE__ */ e.createElement("picture", { className: Z([c, n ?? ""]) }, /* @__PURE__ */ e.createElement("source", {
|
|
10546
10714
|
srcSet: a,
|
|
@@ -10553,27 +10721,27 @@ var xi = {
|
|
|
10553
10721
|
width: o,
|
|
10554
10722
|
...s
|
|
10555
10723
|
}));
|
|
10556
|
-
},
|
|
10724
|
+
}, Fa = (e, t, n) => r(e, { onClick: (t) => {
|
|
10557
10725
|
e.props.onClick?.(t), n();
|
|
10558
|
-
} }, t),
|
|
10726
|
+
} }, t), Ia = (e) => (t) => {
|
|
10559
10727
|
if (t.key === "Enter" && (t.preventDefault(), (t.currentTarget.querySelector("a") ?? t.currentTarget.querySelector("button"))?.click()), t.key === "Tab") {
|
|
10560
10728
|
let n = t.currentTarget.closest(".pds-dropdown__panel"), r = t.shiftKey ? n?.querySelector(".pds-ba-switcher__filter input") : n?.querySelector(".pds-ba-switcher__create-link a, .pds-ba-switcher__create-link button");
|
|
10561
10729
|
r ? (t.preventDefault(), r.focus()) : e();
|
|
10562
10730
|
}
|
|
10563
|
-
},
|
|
10731
|
+
}, La = (t) => /* @__PURE__ */ e.createElement(Ri, {
|
|
10564
10732
|
fallbackIcon: "business-account",
|
|
10565
10733
|
imageSrc: t.imageSrc,
|
|
10566
10734
|
shape: "square",
|
|
10567
10735
|
size: "m",
|
|
10568
10736
|
uniqueId: t.businessAccountId
|
|
10569
|
-
}),
|
|
10737
|
+
}), Ra = ({ businessAccount: t, label: n }) => {
|
|
10570
10738
|
let r = "pds-ba-switcher__item";
|
|
10571
|
-
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${r}-content` },
|
|
10739
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${r}-content` }, La(t), /* @__PURE__ */ e.createElement("span", { className: `${r}-name` }, t.displayName), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, n)), /* @__PURE__ */ e.createElement(Q, {
|
|
10572
10740
|
className: `${r}-flyout-icon`,
|
|
10573
10741
|
iconName: "arrowRightArrowLeft",
|
|
10574
10742
|
size: "m"
|
|
10575
10743
|
}));
|
|
10576
|
-
},
|
|
10744
|
+
}, za = ({ activeBusinessAccount: t, businessAccounts: n, businessAccountsHeading: r, createLinkMarkup: i, index: a, label: o, menuLabel: s, onClose: c, parentActiveIndex: l, parentGetItemProps: u, parentListRef: f }) => {
|
|
10577
10745
|
let p = "pds-ba-switcher", m = `${p}__item`, [h, v] = _(!1), [y, b] = _(null), S = g([]), w = g(null), T = g(null), I = F(), L = g(!1), z = () => {
|
|
10578
10746
|
T.current?.contains(document.activeElement) && (L.current = !0);
|
|
10579
10747
|
}, V = $n("var(--pds-z-index-dropdown)"), { context: W, floatingStyles: G, refs: K } = P({
|
|
@@ -10650,7 +10818,7 @@ var xi = {
|
|
|
10650
10818
|
tabIndex: l === a ? 0 : -1,
|
|
10651
10819
|
title: o,
|
|
10652
10820
|
...u(se())
|
|
10653
|
-
}, /* @__PURE__ */ e.createElement(
|
|
10821
|
+
}, /* @__PURE__ */ e.createElement(Ra, {
|
|
10654
10822
|
businessAccount: t,
|
|
10655
10823
|
label: o
|
|
10656
10824
|
})), /* @__PURE__ */ e.createElement(x, { id: I }, te && /* @__PURE__ */ e.createElement(C, null, /* @__PURE__ */ e.createElement("div", {
|
|
@@ -10672,7 +10840,7 @@ var xi = {
|
|
|
10672
10840
|
className: "pds-dropdown__heading",
|
|
10673
10841
|
role: "presentation"
|
|
10674
10842
|
}, r), n.map((t, n) => {
|
|
10675
|
-
let r = !!t.isActive, i = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${m}-content` },
|
|
10843
|
+
let r = !!t.isActive, i = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${m}-content` }, La(t), /* @__PURE__ */ e.createElement("span", {
|
|
10676
10844
|
className: `${m}-name`,
|
|
10677
10845
|
onMouseEnter: wt
|
|
10678
10846
|
}, t.displayName)), r && /* @__PURE__ */ e.createElement(xr, null));
|
|
@@ -10690,11 +10858,11 @@ var xi = {
|
|
|
10690
10858
|
role: "menuitem",
|
|
10691
10859
|
tabIndex: y === n ? 0 : -1,
|
|
10692
10860
|
...oe({ onKeyDown: (e) => {
|
|
10693
|
-
e.key === "Tab" && e.shiftKey ? (e.preventDefault(), ce()) :
|
|
10861
|
+
e.key === "Tab" && e.shiftKey ? (e.preventDefault(), ce()) : Ia(le)(e);
|
|
10694
10862
|
} })
|
|
10695
|
-
}, t.linkContent ?
|
|
10863
|
+
}, t.linkContent ? Fa(t.linkContent, i, ce) : i);
|
|
10696
10864
|
})), i))));
|
|
10697
|
-
},
|
|
10865
|
+
}, Ba = (e) => {
|
|
10698
10866
|
let t = e.find((e) => e.isActive), n = t?.workspaces?.find((e) => e.isActive);
|
|
10699
10867
|
if (n) return {
|
|
10700
10868
|
activeBusinessAccount: t,
|
|
@@ -10711,19 +10879,19 @@ var xi = {
|
|
|
10711
10879
|
activeBusinessAccount: t,
|
|
10712
10880
|
activeWorkspace: void 0
|
|
10713
10881
|
};
|
|
10714
|
-
},
|
|
10882
|
+
}, Va = ({ ariaLabel: t = "Business account switcher menu", backLabel: n = "Back to workspaces", businessAccounts: r = [], businessAccountsHeading: i = "Business accounts", className: a, createBusinessAccountLinkContent: o, createWorkspaceLinkContent: s, filterLabel: c = "Filter workspaces", filterPlaceholder: l = "Find workspace...", isMobilePanel: u = !0, minFilterItems: f = 8, noResultsText: p = "No results found", switchBusinessAccountLabel: m = "Switch business account", workspacesHeading: v = "Workspaces", ...y }) => {
|
|
10715
10883
|
let b = "pds-ba-switcher", S = `${b}__item`, w = ln(), T = u && w, [E, D] = _(!1), [O, k] = _("main"), A = g(null), j = g(null), M = g(O);
|
|
10716
10884
|
d(() => {
|
|
10717
10885
|
M.current !== O && (M.current = O, (O === "main" ? A : j).current?.focus());
|
|
10718
10886
|
}, [O]);
|
|
10719
10887
|
let [N, P] = _(""), [F, I] = _(), [L] = _(() => `${b}-filter-${Math.random().toString(36).slice(2, 8)}`), { activeIndex: R, floatingStyles: z, getFloatingProps: ee, getItemProps: B, getReferenceProps: V, isMounted: H, isOpen: U, listRef: W, nodeId: G, refs: K, setIsOpen: q, transitionStyles: te } = Yn({
|
|
10720
|
-
enableTypeahead: !((
|
|
10888
|
+
enableTypeahead: !((Ba(r).activeBusinessAccount?.workspaces?.length ?? 0) >= f),
|
|
10721
10889
|
matchReferenceMinWidth: !0,
|
|
10722
10890
|
role: "menu",
|
|
10723
10891
|
shiftPadding: 0
|
|
10724
10892
|
}), J = g(r);
|
|
10725
10893
|
(!H || U) && (J.current = r);
|
|
10726
|
-
let ne = J.current, { activeBusinessAccount: re, activeWorkspace: ie } = h(() =>
|
|
10894
|
+
let ne = J.current, { activeBusinessAccount: re, activeWorkspace: ie } = h(() => Ba(ne), [ne]), Y = h(() => re?.workspaces ?? [], [re]), X = Y.length >= f, ae = $n("var(--pds-z-index-dropdown)"), oe = g(!1), se = (e) => {
|
|
10727
10895
|
let t = e.target.closest(`.${b}__flyout`);
|
|
10728
10896
|
e.key === "Escape" && !t && (oe.current = !0);
|
|
10729
10897
|
};
|
|
@@ -10751,7 +10919,7 @@ var xi = {
|
|
|
10751
10919
|
}, [H, E]), !re) return null;
|
|
10752
10920
|
let fe = () => {
|
|
10753
10921
|
q(!1), D(!1), k("main");
|
|
10754
|
-
}, pe =
|
|
10922
|
+
}, pe = Ia(fe), me = (e, t = !1) => T ? {} : {
|
|
10755
10923
|
ref: t ? void 0 : (t) => {
|
|
10756
10924
|
W.current[e] = t;
|
|
10757
10925
|
},
|
|
@@ -10770,7 +10938,7 @@ var xi = {
|
|
|
10770
10938
|
i ? "pds-dropdown__item--active" : null
|
|
10771
10939
|
]),
|
|
10772
10940
|
...me(t)
|
|
10773
|
-
}, r ?
|
|
10941
|
+
}, r ? Fa(r, a, o) : a), _e = () => ie ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(Ri, {
|
|
10774
10942
|
imageSrc: ie.imageSrc,
|
|
10775
10943
|
size: "m",
|
|
10776
10944
|
uniqueId: ie.workspaceId
|
|
@@ -10780,7 +10948,7 @@ var xi = {
|
|
|
10780
10948
|
}, ie.displayName), /* @__PURE__ */ e.createElement("span", {
|
|
10781
10949
|
className: `${b}__name ${b}__name--secondary`,
|
|
10782
10950
|
onMouseEnter: wt
|
|
10783
|
-
}, re.displayName))) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
10951
|
+
}, re.displayName))) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(Ri, {
|
|
10784
10952
|
fallbackIcon: "business-account",
|
|
10785
10953
|
imageSrc: re.imageSrc,
|
|
10786
10954
|
shape: "square",
|
|
@@ -10803,7 +10971,7 @@ var xi = {
|
|
|
10803
10971
|
size: "s",
|
|
10804
10972
|
variant: "link"
|
|
10805
10973
|
})), ye = (t, n) => {
|
|
10806
|
-
let r = `${b}__workspace-item`, i = !!t.isActive, a = t.isRestricted && t.onRestrictedSelection, o = /* @__PURE__ */ e.createElement(
|
|
10974
|
+
let r = `${b}__workspace-item`, i = !!t.isActive, a = t.isRestricted && t.onRestrictedSelection, o = /* @__PURE__ */ e.createElement(Oa, {
|
|
10807
10975
|
showActiveState: !0,
|
|
10808
10976
|
workspace: t
|
|
10809
10977
|
}), s = null;
|
|
@@ -10812,7 +10980,7 @@ var xi = {
|
|
|
10812
10980
|
t.onRestrictedSelection?.(), fe();
|
|
10813
10981
|
},
|
|
10814
10982
|
type: "button"
|
|
10815
|
-
}, o) : t.workspaceLink && (s =
|
|
10983
|
+
}, o) : t.workspaceLink && (s = Fa(t.workspaceLink, o, fe)), /* @__PURE__ */ e.createElement("li", {
|
|
10816
10984
|
key: t.workspaceId,
|
|
10817
10985
|
"aria-current": i ? "true" : void 0,
|
|
10818
10986
|
"aria-disabled": t.isUnprivileged ? "true" : void 0,
|
|
@@ -10834,7 +11002,7 @@ var xi = {
|
|
|
10834
11002
|
onClick: () => k("businessAccounts"),
|
|
10835
11003
|
title: m,
|
|
10836
11004
|
type: "button"
|
|
10837
|
-
}, /* @__PURE__ */ e.createElement(
|
|
11005
|
+
}, /* @__PURE__ */ e.createElement(Ra, {
|
|
10838
11006
|
businessAccount: re,
|
|
10839
11007
|
label: m
|
|
10840
11008
|
}))), xe = () => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("ul", {
|
|
@@ -10857,11 +11025,11 @@ var xi = {
|
|
|
10857
11025
|
}), /* @__PURE__ */ e.createElement("li", {
|
|
10858
11026
|
className: "pds-dropdown__heading",
|
|
10859
11027
|
role: "presentation"
|
|
10860
|
-
}, i), ce.map((e) => ge(0, e.businessAccountId, e.linkContent, !!e.isActive, he(
|
|
11028
|
+
}, i), ce.map((e) => ge(0, e.businessAccountId, e.linkContent, !!e.isActive, he(La(e), e.displayName, !!e.isActive), () => k("main")))), ve(o)), Se = () => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("ul", {
|
|
10861
11029
|
"aria-label": t,
|
|
10862
11030
|
className: Z([`${b}__menu`, X ? `${b}__menu--filtered` : null]),
|
|
10863
11031
|
role: T ? void 0 : "menu"
|
|
10864
|
-
}, T ? be() : /* @__PURE__ */ e.createElement(
|
|
11032
|
+
}, T ? be() : /* @__PURE__ */ e.createElement(za, {
|
|
10865
11033
|
activeBusinessAccount: re,
|
|
10866
11034
|
businessAccounts: ce,
|
|
10867
11035
|
businessAccountsHeading: i,
|
|
@@ -10879,7 +11047,7 @@ var xi = {
|
|
|
10879
11047
|
}), X && /* @__PURE__ */ e.createElement("li", {
|
|
10880
11048
|
className: `${b}__filter`,
|
|
10881
11049
|
role: "presentation"
|
|
10882
|
-
}, /* @__PURE__ */ e.createElement(
|
|
11050
|
+
}, /* @__PURE__ */ e.createElement(Da, {
|
|
10883
11051
|
hasClearButton: !0,
|
|
10884
11052
|
id: L,
|
|
10885
11053
|
label: c,
|
|
@@ -10933,7 +11101,7 @@ var xi = {
|
|
|
10933
11101
|
},
|
|
10934
11102
|
...ee({ onKeyDown: se })
|
|
10935
11103
|
}, Se()))));
|
|
10936
|
-
},
|
|
11104
|
+
}, Ha = (t) => I() === null ? /* @__PURE__ */ e.createElement(w, null, /* @__PURE__ */ e.createElement(Va, t)) : /* @__PURE__ */ e.createElement(Va, t), Ua = ({ children: t, className: n, menuAriaLabel: r, menuItems: i, variant: a = "dropdown", ...o }) => {
|
|
10937
11105
|
let s = "pds-row-actions-menu", c = a === "dropdown" ? null : `${s}--${a}`, l = f(), u = g(null);
|
|
10938
11106
|
return /* @__PURE__ */ e.createElement("div", {
|
|
10939
11107
|
className: Z([
|
|
@@ -10960,7 +11128,7 @@ var xi = {
|
|
|
10960
11128
|
size: "s",
|
|
10961
11129
|
variant: "subtle"
|
|
10962
11130
|
})));
|
|
10963
|
-
},
|
|
11131
|
+
}, Wa = (e, t = {}) => {
|
|
10964
11132
|
let { getRemoveCriticalLabel: n = (e) => `Remove ${e.title}`, removeLabel: r = "Remove", renameLabel: i = "Rename" } = t, a = [];
|
|
10965
11133
|
return e.onRename && a.push({
|
|
10966
11134
|
callback: e.onRename,
|
|
@@ -10973,11 +11141,11 @@ var xi = {
|
|
|
10973
11141
|
isCritical: !0,
|
|
10974
11142
|
label: r
|
|
10975
11143
|
}), a;
|
|
10976
|
-
},
|
|
11144
|
+
}, Ga = ({ text: t }) => /* @__PURE__ */ e.createElement("div", { className: "pds-bookmarks-empty-state" }, /* @__PURE__ */ e.createElement(Q, {
|
|
10977
11145
|
className: "pds-bookmarks-empty-state__icon",
|
|
10978
11146
|
iconName: "bookmark",
|
|
10979
11147
|
size: "2xl"
|
|
10980
|
-
}), /* @__PURE__ */ e.createElement("p", { className: "pds-bookmarks-empty-state__text" }, t)),
|
|
11148
|
+
}), /* @__PURE__ */ e.createElement("p", { className: "pds-bookmarks-empty-state__text" }, t)), Ka = "Bookmark pages you visit often for quick access. Use the bookmark icon in the top bar to save your first one.", qa = ({ ariaLabel: t = "Bookmarks", bookmarks: n = [], className: r, createLabel: i = "Create", getMenuAriaLabel: a = (e) => `Actions for ${e.title}`, getRemoveCriticalLabel: o, heading: s = "Bookmarks", isBookmarked: c = !1, isMobileAccordion: l = !1, maxHeightValue: u, noResultsText: d = Ka, onCreateBookmark: f, removeLabel: p, renameLabel: m, ...h }) => {
|
|
10981
11149
|
let g = "pds-bookmarks-menu", _ = ln(), v = l && _, y = f && /* @__PURE__ */ e.createElement(Hn, {
|
|
10982
11150
|
displayType: "icon-start",
|
|
10983
11151
|
iconName: "plus",
|
|
@@ -10992,7 +11160,7 @@ var xi = {
|
|
|
10992
11160
|
}, v ? /* @__PURE__ */ e.createElement(Xn, { label: /* @__PURE__ */ e.createElement("span", { className: `${g}__mobile-label` }, /* @__PURE__ */ e.createElement(Q, {
|
|
10993
11161
|
iconName: c ? "bookmarkSolid" : "bookmark",
|
|
10994
11162
|
size: "m"
|
|
10995
|
-
}), s) }, n.length === 0 ? /* @__PURE__ */ e.createElement(
|
|
11163
|
+
}), s) }, n.length === 0 ? /* @__PURE__ */ e.createElement(Ga, { text: d }) : /* @__PURE__ */ e.createElement("ul", {
|
|
10996
11164
|
className: `${g}__mobile-list`,
|
|
10997
11165
|
role: "menu"
|
|
10998
11166
|
}, n.map((t) => {
|
|
@@ -11000,9 +11168,9 @@ var xi = {
|
|
|
11000
11168
|
return /* @__PURE__ */ e.createElement("li", {
|
|
11001
11169
|
key: t.id ?? t.title,
|
|
11002
11170
|
className: `${g}__mobile-item`
|
|
11003
|
-
}, /* @__PURE__ */ e.createElement(
|
|
11171
|
+
}, /* @__PURE__ */ e.createElement(Ua, {
|
|
11004
11172
|
menuAriaLabel: a(t),
|
|
11005
|
-
menuItems:
|
|
11173
|
+
menuItems: Wa(t, {
|
|
11006
11174
|
getRemoveCriticalLabel: o,
|
|
11007
11175
|
removeLabel: p,
|
|
11008
11176
|
renameLabel: m
|
|
@@ -11022,13 +11190,13 @@ var xi = {
|
|
|
11022
11190
|
}, /* @__PURE__ */ e.createElement(dr.Trigger, { "aria-label": t }, /* @__PURE__ */ e.createElement(Q, {
|
|
11023
11191
|
iconName: c ? "bookmarkSolid" : "bookmark",
|
|
11024
11192
|
size: "m"
|
|
11025
|
-
})), /* @__PURE__ */ e.createElement(dr.Panel, { className: `${g}__panel` }, /* @__PURE__ */ e.createElement(dr.Heading, { className: `${g}__header` }, s, y), n.length === 0 ? /* @__PURE__ */ e.createElement(dr.Heading, { className: `${g}__empty` }, /* @__PURE__ */ e.createElement(
|
|
11193
|
+
})), /* @__PURE__ */ e.createElement(dr.Panel, { className: `${g}__panel` }, /* @__PURE__ */ e.createElement(dr.Heading, { className: `${g}__header` }, s, y), n.length === 0 ? /* @__PURE__ */ e.createElement(dr.Heading, { className: `${g}__empty` }, /* @__PURE__ */ e.createElement(Ga, { text: d })) : n.map((t, n) => /* @__PURE__ */ e.createElement(dr.ActionItem, {
|
|
11026
11194
|
key: t.id ?? t.title,
|
|
11027
11195
|
description: t.subtitle && /* @__PURE__ */ e.createElement("span", { title: t.subtitle }, t.subtitle),
|
|
11028
11196
|
index: n,
|
|
11029
11197
|
linkContent: t.linkContent,
|
|
11030
11198
|
menuAriaLabel: a(t),
|
|
11031
|
-
menuItems:
|
|
11199
|
+
menuItems: Wa(t, {
|
|
11032
11200
|
getRemoveCriticalLabel: o,
|
|
11033
11201
|
removeLabel: p,
|
|
11034
11202
|
renameLabel: m
|
|
@@ -11037,7 +11205,7 @@ var xi = {
|
|
|
11037
11205
|
className: `${g}__item-title`,
|
|
11038
11206
|
title: t.title
|
|
11039
11207
|
}, t.title))))));
|
|
11040
|
-
},
|
|
11208
|
+
}, Ja = ({ ariaLabel: t = "Breadcrumb", className: n, crumbs: i, ...a }) => {
|
|
11041
11209
|
let o = "pds-breadcrumb", c = i.length, l = i.map((t, n) => {
|
|
11042
11210
|
if (n < c - 1) return /* @__PURE__ */ e.createElement("li", {
|
|
11043
11211
|
key: n,
|
|
@@ -11056,23 +11224,23 @@ var xi = {
|
|
|
11056
11224
|
className: Z([o, n]),
|
|
11057
11225
|
...a
|
|
11058
11226
|
}, /* @__PURE__ */ e.createElement("ol", { className: `${o}__crumbs` }, l));
|
|
11059
|
-
},
|
|
11227
|
+
}, Ya = (e) => {
|
|
11060
11228
|
if (!e) return null;
|
|
11061
11229
|
for (let t = 0; t < e.length; t++) {
|
|
11062
|
-
if (
|
|
11230
|
+
if (Za(e[t])) return typeof e[t].linkContent == "string" ? null : e[t].linkContent;
|
|
11063
11231
|
if (e[t].links) {
|
|
11064
|
-
let n =
|
|
11232
|
+
let n = Ya(e[t].links);
|
|
11065
11233
|
if (n) return n;
|
|
11066
11234
|
}
|
|
11067
11235
|
}
|
|
11068
11236
|
return null;
|
|
11069
|
-
},
|
|
11070
|
-
if (
|
|
11237
|
+
}, Xa = (e) => typeof e == "string" ? e : e.props.children, Za = (e) => e.isSeparator || e.isHeading ? !1 : typeof e.linkContent != "string" && !!(e.isActive || e.linkContent.props.className && e.linkContent.props.className.includes("pds-isActive")), Qa = (e) => {
|
|
11238
|
+
if (Za(e)) return !0;
|
|
11071
11239
|
if (e.links) {
|
|
11072
|
-
for (let t = 0; t < e.links.length; t++) if (
|
|
11240
|
+
for (let t = 0; t < e.links.length; t++) if (Qa(e.links[t])) return !0;
|
|
11073
11241
|
}
|
|
11074
11242
|
return !1;
|
|
11075
|
-
},
|
|
11243
|
+
}, $a = (e) => e.map((e) => `${Za(e)}${e.links ? `[${$a(e.links)}]` : ""}`).join("|"), eo = (e) => {
|
|
11076
11244
|
if (s(e)) {
|
|
11077
11245
|
let t = e.type;
|
|
11078
11246
|
if (t === "a" || typeof t == "string" && t.toLowerCase() === "a" || (typeof t == "function" || typeof t == "object") && t?.displayName === "Link") return !0;
|
|
@@ -11080,14 +11248,14 @@ var xi = {
|
|
|
11080
11248
|
return n.to !== void 0 || n.href !== void 0;
|
|
11081
11249
|
}
|
|
11082
11250
|
return !1;
|
|
11083
|
-
},
|
|
11251
|
+
}, to = (e, t) => {
|
|
11084
11252
|
let n = null;
|
|
11085
11253
|
if (typeof e == "string" && t) {
|
|
11086
11254
|
let i = t ? t[0].linkContent : null;
|
|
11087
11255
|
s(i) && (n = r(i, { ...typeof e == "string" ? { children: e } : {} }));
|
|
11088
11256
|
} else n = e;
|
|
11089
11257
|
return n;
|
|
11090
|
-
},
|
|
11258
|
+
}, no = (t, n, i, a) => {
|
|
11091
11259
|
let o = null;
|
|
11092
11260
|
if (typeof n == "string") {
|
|
11093
11261
|
let c = a ? [/* @__PURE__ */ e.createElement("span", {
|
|
@@ -11112,8 +11280,8 @@ var xi = {
|
|
|
11112
11280
|
iconName: a,
|
|
11113
11281
|
size: "m"
|
|
11114
11282
|
})), /* @__PURE__ */ e.createElement("span", { className: `${t}__link-label` }, n.props.children))] })) : n), o;
|
|
11115
|
-
},
|
|
11116
|
-
let s = "pds-dropdown-menu", c =
|
|
11283
|
+
}, ro = ({ className: t, headingText: n, menuItems: i, selectTextFallback: a = "Navigate to...", ...o }) => {
|
|
11284
|
+
let s = "pds-dropdown-menu", c = Ya(i), l = c ? c.props.children : a, u = /* @__PURE__ */ e.createElement(xr, { className: `pds-dropdown__selected-icon ${s}__active-icon` }), { activeIndex: d, floatingStyles: f, getFloatingProps: p, getItemProps: m, getReferenceProps: h, isMounted: g, listRef: _, refs: v, setIsOpen: y, transitionStyles: b } = Yn({
|
|
11117
11285
|
enableTypeahead: !0,
|
|
11118
11286
|
matchReferenceWidth: !0,
|
|
11119
11287
|
role: "menu"
|
|
@@ -11122,7 +11290,7 @@ var xi = {
|
|
|
11122
11290
|
}, w = (e) => {
|
|
11123
11291
|
e.key === "Enter" && _.current[d]?.querySelector("a")?.click();
|
|
11124
11292
|
}, T = ({ item: e, level: t }) => {
|
|
11125
|
-
let n =
|
|
11293
|
+
let n = to(e.linkContent, e.links);
|
|
11126
11294
|
return {
|
|
11127
11295
|
...e,
|
|
11128
11296
|
level: t,
|
|
@@ -11209,10 +11377,10 @@ var xi = {
|
|
|
11209
11377
|
tabIndex: d === n ? 0 : -1,
|
|
11210
11378
|
...m({ onKeyDown: w })
|
|
11211
11379
|
}, t.linkContent, t.isActive === !0 && u)))));
|
|
11212
|
-
},
|
|
11380
|
+
}, io = ({ isActive: t, linkContent: n }) => {
|
|
11213
11381
|
let r = "pds-button-nav__item";
|
|
11214
11382
|
return /* @__PURE__ */ e.createElement("li", { className: Z([r, t ? `${r}--active` : null]) }, n);
|
|
11215
|
-
},
|
|
11383
|
+
}, ao = ({ ariaLabel: t, className: n, hasBorder: r = !1, hasMobileDropdown: i = !1, menuItems: a, ...o }) => {
|
|
11216
11384
|
let s = g(null), c = "pds-button-nav", l = r ? `${c}--bordered` : null, u = i ? `${c}--has-mobile-dropdown` : null;
|
|
11217
11385
|
d(() => {
|
|
11218
11386
|
let e = (e) => {
|
|
@@ -11226,11 +11394,11 @@ var xi = {
|
|
|
11226
11394
|
};
|
|
11227
11395
|
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
11228
11396
|
}, []);
|
|
11229
|
-
let f = a.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${c}__menu` }, a.map((t, n) => /* @__PURE__ */ e.createElement(
|
|
11397
|
+
let f = a.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${c}__menu` }, a.map((t, n) => /* @__PURE__ */ e.createElement(io, {
|
|
11230
11398
|
key: n,
|
|
11231
|
-
isActive:
|
|
11399
|
+
isActive: Qa(t),
|
|
11232
11400
|
linkContent: t.linkContent
|
|
11233
|
-
}))) : null, p = /* @__PURE__ */ e.createElement(
|
|
11401
|
+
}))) : null, p = /* @__PURE__ */ e.createElement(ro, {
|
|
11234
11402
|
className: `${c}__mobile`,
|
|
11235
11403
|
menuItems: a,
|
|
11236
11404
|
selectTextFallback: t
|
|
@@ -11246,7 +11414,7 @@ var xi = {
|
|
|
11246
11414
|
]),
|
|
11247
11415
|
...o
|
|
11248
11416
|
}, f, i && p);
|
|
11249
|
-
},
|
|
11417
|
+
}, oo = ({ children: t, className: n, width: r = "standard", ...i }) => {
|
|
11250
11418
|
let a = "pds-container", o = r === "standard" ? null : `${a}--${r}`;
|
|
11251
11419
|
return /* @__PURE__ */ e.createElement("div", {
|
|
11252
11420
|
className: Z([
|
|
@@ -11256,7 +11424,7 @@ var xi = {
|
|
|
11256
11424
|
]),
|
|
11257
11425
|
...i
|
|
11258
11426
|
}, t);
|
|
11259
|
-
},
|
|
11427
|
+
}, so = (e) => e === "m" ? void 0 : { columnGap: e === "none" ? "0" : `var(--pds-spacing-${e})` }, co = ({ children: t, className: n, colorType: r = "default", containerWidth: i = "x-wide", hideBorder: a, inlinePadding: o, itemsCenterGap: s = "m", itemsLeftGap: c = "m", itemsRightGap: l = "m", translationStrings: u = {
|
|
11260
11428
|
closeMobileNav: "Close navigation area",
|
|
11261
11429
|
openMobileNav: "Open navigation area"
|
|
11262
11430
|
}, ...f }) => {
|
|
@@ -11309,7 +11477,7 @@ var xi = {
|
|
|
11309
11477
|
n ?? ""
|
|
11310
11478
|
]),
|
|
11311
11479
|
...f
|
|
11312
|
-
}, h ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${y}__bar-mobile` }, /* @__PURE__ */ e.createElement(
|
|
11480
|
+
}, h ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${y}__bar-mobile` }, /* @__PURE__ */ e.createElement(oo, null, /* @__PURE__ */ e.createElement("div", { className: `${y}__inner-mobile` }, E, M && N))), /* @__PURE__ */ e.createElement(Zn.Provider, { value: !0 }, /* @__PURE__ */ e.createElement(lt, {
|
|
11313
11481
|
active: p,
|
|
11314
11482
|
focusTrapOptions: {
|
|
11315
11483
|
clickOutsideDeactivates: !0,
|
|
@@ -11319,11 +11487,11 @@ var xi = {
|
|
|
11319
11487
|
}, /* @__PURE__ */ e.createElement("div", {
|
|
11320
11488
|
className: Z([`${y}__mobile`, p ? `${y}__mobile--open` : null]),
|
|
11321
11489
|
inert: p ? void 0 : ""
|
|
11322
|
-
}, /* @__PURE__ */ e.createElement(
|
|
11490
|
+
}, /* @__PURE__ */ e.createElement(oo, null, /* @__PURE__ */ e.createElement("button", {
|
|
11323
11491
|
className: "visually-hidden",
|
|
11324
11492
|
onClick: C,
|
|
11325
11493
|
type: "button"
|
|
11326
|
-
}, u.closeMobileNav), D, O, k))))) : /* @__PURE__ */ e.createElement(
|
|
11494
|
+
}, u.closeMobileNav), D, O, k))))) : /* @__PURE__ */ e.createElement(oo, {
|
|
11327
11495
|
className: `${y}__inner`,
|
|
11328
11496
|
style: o ? { paddingInline: o } : void 0,
|
|
11329
11497
|
width: i
|
|
@@ -11332,19 +11500,19 @@ var xi = {
|
|
|
11332
11500
|
className: `${y}__separator`
|
|
11333
11501
|
}), D && /* @__PURE__ */ e.createElement("div", {
|
|
11334
11502
|
className: `${y}__items-left`,
|
|
11335
|
-
style:
|
|
11503
|
+
style: so(c)
|
|
11336
11504
|
}, D)), O && /* @__PURE__ */ e.createElement("div", {
|
|
11337
11505
|
className: `${y}__items-center`,
|
|
11338
|
-
style:
|
|
11506
|
+
style: so(s)
|
|
11339
11507
|
}, O), k && /* @__PURE__ */ e.createElement("div", {
|
|
11340
11508
|
className: `${y}__items-right`,
|
|
11341
|
-
style:
|
|
11509
|
+
style: so(l)
|
|
11342
11510
|
}, k)));
|
|
11343
|
-
},
|
|
11511
|
+
}, lo = ({ ariaLabel: t, className: n, hasMobileDropdown: i = !1, headingText: a, labels: o = {
|
|
11344
11512
|
submenu: "submenu",
|
|
11345
11513
|
toggle: "Toggle"
|
|
11346
11514
|
}, menuItems: c, mobileMenuSelectTextFallback: l = "Navigate to...", variant: u = "default", ...f }) => {
|
|
11347
|
-
let p = "pds-side-nav", m = i ? `${p}--has-mobile-dropdown` : null, h = u === "default" ? null : `${p}--${u}`, g = `${p}__item`, v = `${p}__menu`, [y, b] = _({}), x =
|
|
11515
|
+
let p = "pds-side-nav", m = i ? `${p}--has-mobile-dropdown` : null, h = u === "default" ? null : `${p}--${u}`, g = `${p}__item`, v = `${p}__menu`, [y, b] = _({}), x = $a(c);
|
|
11348
11516
|
d(() => {
|
|
11349
11517
|
b((e) => Object.keys(e).length ? {} : e);
|
|
11350
11518
|
}, [x]);
|
|
@@ -11357,7 +11525,7 @@ var xi = {
|
|
|
11357
11525
|
};
|
|
11358
11526
|
});
|
|
11359
11527
|
}, w = (t, n) => {
|
|
11360
|
-
let { linkContent: i, links: a } = t, c =
|
|
11528
|
+
let { linkContent: i, links: a } = t, c = Qa(t), l = eo(i), u = S(c, n);
|
|
11361
11529
|
return /* @__PURE__ */ e.createElement("li", {
|
|
11362
11530
|
key: n,
|
|
11363
11531
|
className: Z([
|
|
@@ -11370,7 +11538,7 @@ var xi = {
|
|
|
11370
11538
|
`${p}__row`,
|
|
11371
11539
|
`${p}__row--expandable`,
|
|
11372
11540
|
`${g}-wrapper`
|
|
11373
|
-
]) },
|
|
11541
|
+
]) }, to(i, a), /* @__PURE__ */ e.createElement("button", {
|
|
11374
11542
|
"aria-expanded": u,
|
|
11375
11543
|
className: Z([`${p}__toggle`, u ? `${p}__toggle--expanded` : null]),
|
|
11376
11544
|
onClick: () => C(c, n),
|
|
@@ -11378,7 +11546,7 @@ var xi = {
|
|
|
11378
11546
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
11379
11547
|
iconName: "angleDown",
|
|
11380
11548
|
size: "m"
|
|
11381
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${o.toggle} ${
|
|
11549
|
+
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${o.toggle} ${Xa(i)} ${o.submenu}`))), /* @__PURE__ */ e.createElement("ul", { className: Z([
|
|
11382
11550
|
v,
|
|
11383
11551
|
`${v}--second-level`,
|
|
11384
11552
|
u ? `${v}--expanded` : null
|
|
@@ -11387,9 +11555,9 @@ var xi = {
|
|
|
11387
11555
|
className: Z([
|
|
11388
11556
|
g,
|
|
11389
11557
|
`${g}--second-level`,
|
|
11390
|
-
|
|
11558
|
+
Qa(t) ? `${g}--active` : null
|
|
11391
11559
|
])
|
|
11392
|
-
},
|
|
11560
|
+
}, to(t.linkContent, t.links))))) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("button", {
|
|
11393
11561
|
"aria-expanded": u,
|
|
11394
11562
|
className: Z([
|
|
11395
11563
|
`${p}__row`,
|
|
@@ -11403,7 +11571,7 @@ var xi = {
|
|
|
11403
11571
|
}, s(i) && i.type === "span" ? r(i, { className: Z([i.props.className, `${p}__toggle-content`]) }) : /* @__PURE__ */ e.createElement("span", { className: `${p}__toggle-content` }, i), /* @__PURE__ */ e.createElement(Q, {
|
|
11404
11572
|
iconName: "angleDown",
|
|
11405
11573
|
size: "m"
|
|
11406
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${o.toggle} ${
|
|
11574
|
+
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${o.toggle} ${Xa(i)} ${o.submenu}`)), /* @__PURE__ */ e.createElement("ul", { className: Z([
|
|
11407
11575
|
v,
|
|
11408
11576
|
`${v}--second-level`,
|
|
11409
11577
|
u ? `${v}--expanded` : null
|
|
@@ -11412,10 +11580,10 @@ var xi = {
|
|
|
11412
11580
|
className: Z([
|
|
11413
11581
|
g,
|
|
11414
11582
|
`${g}--second-level`,
|
|
11415
|
-
|
|
11583
|
+
Qa(t) ? `${g}--active` : null
|
|
11416
11584
|
])
|
|
11417
|
-
},
|
|
11418
|
-
}, T = /* @__PURE__ */ e.createElement(e.Fragment, null, a && /* @__PURE__ */ e.createElement("h2", { className: `${p}__heading` }, a), c.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${p}__menu ${p}__menu--top-level` }, c.map((e, t) => w(e, t)))), E = /* @__PURE__ */ e.createElement(
|
|
11585
|
+
}, to(t.linkContent, t.links))))) : i);
|
|
11586
|
+
}, T = /* @__PURE__ */ e.createElement(e.Fragment, null, a && /* @__PURE__ */ e.createElement("h2", { className: `${p}__heading` }, a), c.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${p}__menu ${p}__menu--top-level` }, c.map((e, t) => w(e, t)))), E = /* @__PURE__ */ e.createElement(ro, {
|
|
11419
11587
|
className: `${p}__mobile`,
|
|
11420
11588
|
headingText: a,
|
|
11421
11589
|
menuItems: c,
|
|
@@ -11431,8 +11599,8 @@ var xi = {
|
|
|
11431
11599
|
]),
|
|
11432
11600
|
...f
|
|
11433
11601
|
}, T, i && E);
|
|
11434
|
-
},
|
|
11435
|
-
let u = "pds-side-nav-global", f = `${u}__item`, p = `${u}__menu`, m = /* @__PURE__ */ e.createElement("div", { className: `${f}-wrapper` },
|
|
11602
|
+
}, uo = ({ icon: t, isActive: n, isExpanded: r, isSidebarCollapsed: i, labels: a, linkContent: o, links: s, onExpandSidebar: c, onToggleExpand: l }) => {
|
|
11603
|
+
let u = "pds-side-nav-global", f = `${u}__item`, p = `${u}__menu`, m = /* @__PURE__ */ e.createElement("div", { className: `${f}-wrapper` }, no(u, o, s, t)), h = (t, n, i = !1) => /* @__PURE__ */ e.createElement("ul", { className: Z([
|
|
11436
11604
|
p,
|
|
11437
11605
|
`${p}--${n}`,
|
|
11438
11606
|
r ? `${p}--expanded` : null
|
|
@@ -11444,7 +11612,7 @@ var xi = {
|
|
|
11444
11612
|
className: Z([
|
|
11445
11613
|
f,
|
|
11446
11614
|
`${f}--${n}`,
|
|
11447
|
-
|
|
11615
|
+
Qa(t) ? `${f}--active` : null
|
|
11448
11616
|
]),
|
|
11449
11617
|
role: i ? "menuitem" : void 0,
|
|
11450
11618
|
tabIndex: i ? b === r ? 0 : -1 : void 0,
|
|
@@ -11500,14 +11668,14 @@ var xi = {
|
|
|
11500
11668
|
(S.current[e]?.querySelector("a"))?.click(), y(!1);
|
|
11501
11669
|
}, J = (e, t) => {
|
|
11502
11670
|
e.key === "Enter" && (e.preventDefault(), te(t));
|
|
11503
|
-
}, ne =
|
|
11671
|
+
}, ne = Zi() === "sm", re = (e) => {
|
|
11504
11672
|
i && s && e.nativeEvent.pointerType === "touch" && (ne ? (e.preventDefault(), e.stopPropagation(), y(!0)) : c && (e.preventDefault(), e.stopPropagation(), c()));
|
|
11505
11673
|
}, ie = i && v && s && /* @__PURE__ */ e.createElement(C, null, /* @__PURE__ */ e.createElement("div", {
|
|
11506
11674
|
ref: F.setFloating,
|
|
11507
11675
|
className: `${u}__flyout`,
|
|
11508
11676
|
style: M,
|
|
11509
11677
|
...W({ onKeyDown: I })
|
|
11510
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${u}__flyout-heading` },
|
|
11678
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${u}__flyout-heading` }, Xa(o)), h(s, "second-level-flyout", !0)));
|
|
11511
11679
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("li", {
|
|
11512
11680
|
ref: i ? F.setReference : null,
|
|
11513
11681
|
className: Z([
|
|
@@ -11521,7 +11689,7 @@ var xi = {
|
|
|
11521
11689
|
onClick: re,
|
|
11522
11690
|
onKeyDown: q
|
|
11523
11691
|
})
|
|
11524
|
-
}, s ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${f}-wrapper` },
|
|
11692
|
+
}, s ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${f}-wrapper` }, no(u, o, s, t), !i && /* @__PURE__ */ e.createElement("button", {
|
|
11525
11693
|
"aria-expanded": r,
|
|
11526
11694
|
className: Z([`${u}__toggle`, r ? `${u}__toggle--expanded` : null]),
|
|
11527
11695
|
onClick: l,
|
|
@@ -11529,9 +11697,9 @@ var xi = {
|
|
|
11529
11697
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
11530
11698
|
iconName: "angleDown",
|
|
11531
11699
|
size: "m"
|
|
11532
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${a.toggle} ${
|
|
11700
|
+
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${a.toggle} ${Xa(o)} ${a.submenu}`))), !i && h(s, "second-level")) : /* @__PURE__ */ e.createElement(e.Fragment, null, i ? /* @__PURE__ */ e.createElement(vn, {
|
|
11533
11701
|
disableTapTrigger: !0,
|
|
11534
|
-
content:
|
|
11702
|
+
content: Xa(o),
|
|
11535
11703
|
customTrigger: m,
|
|
11536
11704
|
offsetValue: {
|
|
11537
11705
|
mainAxis: 8,
|
|
@@ -11539,11 +11707,11 @@ var xi = {
|
|
|
11539
11707
|
},
|
|
11540
11708
|
preferredPlacement: "right"
|
|
11541
11709
|
}) : m)), ie);
|
|
11542
|
-
},
|
|
11710
|
+
}, fo = ({ ariaLabel: t, className: n, isSidebarCollapsed: r, labels: i = {
|
|
11543
11711
|
submenu: "submenu",
|
|
11544
11712
|
toggle: "Toggle"
|
|
11545
11713
|
}, menuItems: a, onExpandSidebar: o, ...s }) => {
|
|
11546
|
-
let c = "pds-side-nav-global", l = r ? `${c}--collapsed` : `${c}--expanded`, [u, f] = _({}), p =
|
|
11714
|
+
let c = "pds-side-nav-global", l = r ? `${c}--collapsed` : `${c}--expanded`, [u, f] = _({}), p = $a(a);
|
|
11547
11715
|
d(() => {
|
|
11548
11716
|
f((e) => Object.keys(e).length ? {} : e);
|
|
11549
11717
|
}, [p]);
|
|
@@ -11567,8 +11735,8 @@ var xi = {
|
|
|
11567
11735
|
className: `${c}__section-label`,
|
|
11568
11736
|
role: "presentation"
|
|
11569
11737
|
}, t.label);
|
|
11570
|
-
let a =
|
|
11571
|
-
return /* @__PURE__ */ e.createElement(
|
|
11738
|
+
let a = Qa(t);
|
|
11739
|
+
return /* @__PURE__ */ e.createElement(uo, {
|
|
11572
11740
|
key: n,
|
|
11573
11741
|
icon: t.icon,
|
|
11574
11742
|
isActive: a,
|
|
@@ -11590,7 +11758,7 @@ var xi = {
|
|
|
11590
11758
|
]),
|
|
11591
11759
|
...s
|
|
11592
11760
|
}, g);
|
|
11593
|
-
},
|
|
11761
|
+
}, po = ({ items: t, label: n }) => {
|
|
11594
11762
|
let r = g(null), i = "pds-nav-menu", a = t && t.length > 0, { floatingStyles: o, getFloatingProps: s, getReferenceProps: c, isOpen: l, refs: u } = Yn({
|
|
11595
11763
|
offsetValue: 8,
|
|
11596
11764
|
openOnHover: !ln()
|
|
@@ -11627,7 +11795,7 @@ var xi = {
|
|
|
11627
11795
|
key: n,
|
|
11628
11796
|
className: `${i}__item ${t.isSeparator ? "pds-dropdown__separator" : `pds-dropdown__item${p(t) ? " pds-dropdown__item--active" : ""}`}`
|
|
11629
11797
|
}, !t.isSeparator && t.linkContent)))));
|
|
11630
|
-
},
|
|
11798
|
+
}, mo = ({ ariaLabel: t = "Main Navigation", className: n, menuItems: r, ...i }) => {
|
|
11631
11799
|
let [a, o] = _(null), [s, c] = _(-1), [l, u] = _(null), [p, m] = _({
|
|
11632
11800
|
container: null,
|
|
11633
11801
|
containerChildren: []
|
|
@@ -11674,7 +11842,7 @@ var xi = {
|
|
|
11674
11842
|
},
|
|
11675
11843
|
className: `${v}__item ${v}__item--top-level ${v}__item--has-children ${x(t) === !0 ? `${v}__item--active` : ""}`,
|
|
11676
11844
|
id: i
|
|
11677
|
-
}, /* @__PURE__ */ e.createElement(
|
|
11845
|
+
}, /* @__PURE__ */ e.createElement(po, {
|
|
11678
11846
|
items: t.links,
|
|
11679
11847
|
label: t.label
|
|
11680
11848
|
}))) : S.push(/* @__PURE__ */ e.createElement("li", {
|
|
@@ -11693,24 +11861,24 @@ var xi = {
|
|
|
11693
11861
|
},
|
|
11694
11862
|
...i
|
|
11695
11863
|
}, /* @__PURE__ */ e.createElement("ul", { className: `${v}__menu` }, S));
|
|
11696
|
-
},
|
|
11864
|
+
}, ho = ({ buttonLabel: t = "Toggle dropdown", filterLabel: n = "Filter items", filterPlaceholder: r = "Filter items...", links: i, minFilterItems: a = 5, noResultsText: o = "No results found" }) => {
|
|
11697
11865
|
let [s, c] = _(""), l = i.length >= a, u = "pds-tab-menu", d = `${u}__dropdown-menu`, f = l ? `${d}--scroll` : null, p = `${u}__dropdown-item`, { activeIndex: m, floatingStyles: g, getFloatingProps: v, getItemProps: y, getReferenceProps: b, isMounted: x, isOpen: S, listRef: w, refs: T, setActiveIndex: E, transitionStyles: D } = Yn({
|
|
11698
11866
|
offsetValue: 8,
|
|
11699
11867
|
placement: "bottom-start",
|
|
11700
11868
|
role: "listbox"
|
|
11701
11869
|
}), O = $n("var(--pds-z-index-dropdown)"), k = (e) => {
|
|
11702
11870
|
e.preventDefault(), e.key === "Enter" && w.current[m].querySelector("a")?.click(), e.key === "Tab" && e.shiftKey && l && document.getElementById("links-filter").focus();
|
|
11703
|
-
}, A = (e, t) =>
|
|
11871
|
+
}, A = (e, t) => Xa(e.linkContent).toLowerCase().includes(t.toLowerCase()), j = h(() => i.filter((e) => A(e, s)), [s, i]), M = (e) => {
|
|
11704
11872
|
c(e.target.value);
|
|
11705
11873
|
}, N = () => {
|
|
11706
11874
|
c("");
|
|
11707
11875
|
}, P = {
|
|
11708
11876
|
minWidth: "13rem",
|
|
11709
|
-
width: `${
|
|
11877
|
+
width: `${Xa(i.reduce((e, t) => Xa(e.linkContent).length > Xa(t.linkContent).length ? e : t).linkContent).length + 2}ch`
|
|
11710
11878
|
}, F = /* @__PURE__ */ e.createElement(Q, {
|
|
11711
11879
|
className: `${u}__active-icon`,
|
|
11712
11880
|
iconName: "check"
|
|
11713
|
-
}), I = l && /* @__PURE__ */ e.createElement("div", { className: `${u}__filter` }, /* @__PURE__ */ e.createElement(
|
|
11881
|
+
}), I = l && /* @__PURE__ */ e.createElement("div", { className: `${u}__filter` }, /* @__PURE__ */ e.createElement(Da, {
|
|
11714
11882
|
hasClearButton: !0,
|
|
11715
11883
|
autoComplete: "off",
|
|
11716
11884
|
id: "links-filter",
|
|
@@ -11753,7 +11921,7 @@ var xi = {
|
|
|
11753
11921
|
zIndex: O
|
|
11754
11922
|
} })
|
|
11755
11923
|
}, /* @__PURE__ */ e.createElement("div", { style: { ...D } }, I, /* @__PURE__ */ e.createElement("ul", { className: Z([d, f]) }, L.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: `${u}__no-results` }, o) : L)))));
|
|
11756
|
-
},
|
|
11924
|
+
}, go = ({ ariaLabel: t, className: n, menuItems: i, ...a }) => {
|
|
11757
11925
|
let o = "pds-tab-menu", c = g(null), l = g(null);
|
|
11758
11926
|
d(() => {
|
|
11759
11927
|
let e = l.current, t = c.current;
|
|
@@ -11766,7 +11934,7 @@ var xi = {
|
|
|
11766
11934
|
return r.observe(e), () => r.disconnect();
|
|
11767
11935
|
}, [i]);
|
|
11768
11936
|
let u = ({ dropdownSettings: t, icon: n, isActive: i, linkContent: a, links: c, promoteActiveChildLink: l = !1 }) => {
|
|
11769
|
-
let u = `${o}__item`, d =
|
|
11937
|
+
let u = `${o}__item`, d = Ya(c);
|
|
11770
11938
|
return /* @__PURE__ */ e.createElement("li", { className: Z([u, i ? `${u}--active` : null]) }, ((t, n) => {
|
|
11771
11939
|
let i = null;
|
|
11772
11940
|
return s(t) && (i = n ? r(t, Object.assign({}, t.props, { children: [/* @__PURE__ */ e.createElement("span", {
|
|
@@ -11777,7 +11945,7 @@ var xi = {
|
|
|
11777
11945
|
iconName: n,
|
|
11778
11946
|
size: "m"
|
|
11779
11947
|
}), t.props.children)] })) : t), i;
|
|
11780
|
-
})(l ? d : a, n), c && /* @__PURE__ */ e.createElement(
|
|
11948
|
+
})(l ? d : a, n), c && /* @__PURE__ */ e.createElement(ho, {
|
|
11781
11949
|
buttonLabel: t?.buttonLabel,
|
|
11782
11950
|
filterLabel: t?.filterLabel,
|
|
11783
11951
|
filterPlaceholder: t?.filterPlaceholder,
|
|
@@ -11792,7 +11960,7 @@ var xi = {
|
|
|
11792
11960
|
key: n,
|
|
11793
11961
|
dropdownSettings: t.dropdownSettings,
|
|
11794
11962
|
icon: t.icon,
|
|
11795
|
-
isActive:
|
|
11963
|
+
isActive: Qa(t),
|
|
11796
11964
|
linkContent: t.linkContent,
|
|
11797
11965
|
links: t.links,
|
|
11798
11966
|
promoteActiveChildLink: t.promoteActiveChildLink
|
|
@@ -11805,11 +11973,11 @@ var xi = {
|
|
|
11805
11973
|
ref: c,
|
|
11806
11974
|
className: `${o}__mobile-menu-wrapper`
|
|
11807
11975
|
}, f));
|
|
11808
|
-
},
|
|
11976
|
+
}, _o = {
|
|
11809
11977
|
2: "second",
|
|
11810
11978
|
3: "third",
|
|
11811
11979
|
4: "fourth"
|
|
11812
|
-
},
|
|
11980
|
+
}, vo = ({ ariaLabel: t, className: n, headingText: r, labels: i = {
|
|
11813
11981
|
submenu: "submenu",
|
|
11814
11982
|
toggle: "Toggle"
|
|
11815
11983
|
}, menuItems: a, ...o }) => {
|
|
@@ -11926,7 +12094,7 @@ var xi = {
|
|
|
11926
12094
|
t !== -1 && (f(!0), y.current = t);
|
|
11927
12095
|
}
|
|
11928
12096
|
}, M = (t, n, r) => {
|
|
11929
|
-
let a =
|
|
12097
|
+
let a = _o[t], o = `${l}--${a}-level`, u = `${c}--${a}-level`, d = t + 1, f = Qa(n), { isExpanded: p, itemIndex: m } = S(n, f);
|
|
11930
12098
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${c}-wrapper` }, /* @__PURE__ */ e.createElement("button", {
|
|
11931
12099
|
"aria-expanded": p,
|
|
11932
12100
|
className: Z([`${s}__toggle`, p ? `${s}__toggle--expanded` : null]),
|
|
@@ -11936,7 +12104,7 @@ var xi = {
|
|
|
11936
12104
|
iconName: "angleDown",
|
|
11937
12105
|
size: "xs",
|
|
11938
12106
|
verticalAlign: "-0.0625rem"
|
|
11939
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${i.toggle} ${
|
|
12107
|
+
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${i.toggle} ${Xa(n.linkContent)} ${i.submenu}`)), to(n.linkContent, n.links)), /* @__PURE__ */ e.createElement("ul", {
|
|
11940
12108
|
className: Z([
|
|
11941
12109
|
l,
|
|
11942
12110
|
o,
|
|
@@ -11944,7 +12112,7 @@ var xi = {
|
|
|
11944
12112
|
]),
|
|
11945
12113
|
role: "group"
|
|
11946
12114
|
}, n.links.map((t, n) => {
|
|
11947
|
-
let r =
|
|
12115
|
+
let r = Qa(t), { isExpanded: i } = S(t, r);
|
|
11948
12116
|
return /* @__PURE__ */ e.createElement("li", {
|
|
11949
12117
|
key: `${n}-${a}`,
|
|
11950
12118
|
"aria-expanded": t.links ? i : void 0,
|
|
@@ -11956,10 +12124,10 @@ var xi = {
|
|
|
11956
12124
|
]),
|
|
11957
12125
|
"data-item-path": t.path || "",
|
|
11958
12126
|
role: "treeitem"
|
|
11959
|
-
}, t.links && d in
|
|
12127
|
+
}, t.links && d in _o ? M(d, t, t.links) : t.linkContent);
|
|
11960
12128
|
})));
|
|
11961
12129
|
}, N = (t, n) => {
|
|
11962
|
-
let { linkContent: r, links: i } = t, a =
|
|
12130
|
+
let { linkContent: r, links: i } = t, a = Qa(t), { isExpanded: o } = S(t, a);
|
|
11963
12131
|
return /* @__PURE__ */ e.createElement("li", {
|
|
11964
12132
|
key: n,
|
|
11965
12133
|
"aria-expanded": i ? o : void 0,
|
|
@@ -11988,11 +12156,11 @@ var xi = {
|
|
|
11988
12156
|
className: `${s}__menu ${s}__menu--top-level`,
|
|
11989
12157
|
role: "tree"
|
|
11990
12158
|
}, a.map((e, t) => N(e, t))));
|
|
11991
|
-
},
|
|
12159
|
+
}, yo = {
|
|
11992
12160
|
light: "sunBright",
|
|
11993
12161
|
dark: "moon",
|
|
11994
12162
|
system: "circleHalfStroke"
|
|
11995
|
-
},
|
|
12163
|
+
}, bo = ({ className: t, id: n = "theme-switcher-menu", labelStrings: r = {
|
|
11996
12164
|
light: "Light",
|
|
11997
12165
|
dark: "Dark",
|
|
11998
12166
|
system: "System"
|
|
@@ -12004,7 +12172,7 @@ var xi = {
|
|
|
12004
12172
|
];
|
|
12005
12173
|
if (s === "toggle") {
|
|
12006
12174
|
let s = d.map((e) => ({
|
|
12007
|
-
iconName:
|
|
12175
|
+
iconName: yo[e],
|
|
12008
12176
|
label: r[e],
|
|
12009
12177
|
value: e
|
|
12010
12178
|
}));
|
|
@@ -12023,7 +12191,7 @@ var xi = {
|
|
|
12023
12191
|
}
|
|
12024
12192
|
let f = d.map((e) => ({
|
|
12025
12193
|
callback: () => i?.(e),
|
|
12026
|
-
iconName:
|
|
12194
|
+
iconName: yo[e],
|
|
12027
12195
|
iconSize: "m",
|
|
12028
12196
|
label: r[e]
|
|
12029
12197
|
}));
|
|
@@ -12036,7 +12204,7 @@ var xi = {
|
|
|
12036
12204
|
customTrigger: /* @__PURE__ */ e.createElement(sr, {
|
|
12037
12205
|
iconOnly: !0,
|
|
12038
12206
|
"aria-label": u,
|
|
12039
|
-
iconName:
|
|
12207
|
+
iconName: yo[o],
|
|
12040
12208
|
id: n,
|
|
12041
12209
|
label: "",
|
|
12042
12210
|
menuItems: f,
|
|
@@ -12045,7 +12213,7 @@ var xi = {
|
|
|
12045
12213
|
offsetValue: 0,
|
|
12046
12214
|
preferredPlacement: "top"
|
|
12047
12215
|
}));
|
|
12048
|
-
},
|
|
12216
|
+
}, xo = ({ ariaLabel: t = "User menu", className: n, isMobileAccordion: r = !1, menuItems: i = [], onThemeChange: a, theme: o, themeLabel: s = "Theme", themeLabelStrings: c, userEmail: l, userImageSrc: u, userName: d, ...p }) => {
|
|
12049
12217
|
let [m, h] = _(null), [v, y] = _(!1), b = ln(), x = r && b, S = g([]), w = g([]), T = f(), k = "pds-user-menu", j = `${k}__menu`, { context: F, floatingStyles: I, refs: L } = P({
|
|
12050
12218
|
placement: "bottom-end",
|
|
12051
12219
|
open: v,
|
|
@@ -12078,7 +12246,7 @@ var xi = {
|
|
|
12078
12246
|
initial: { opacity: 0 },
|
|
12079
12247
|
open: { opacity: 1 },
|
|
12080
12248
|
close: { opacity: 0 }
|
|
12081
|
-
}), re = $n("var(--pds-z-index-dropdown)"), ie = /* @__PURE__ */ e.createElement(
|
|
12249
|
+
}), re = $n("var(--pds-z-index-dropdown)"), ie = /* @__PURE__ */ e.createElement(Ri, {
|
|
12082
12250
|
className: `${k}__avatar`,
|
|
12083
12251
|
fallbackIcon: "user",
|
|
12084
12252
|
imageSrc: u,
|
|
@@ -12090,7 +12258,7 @@ var xi = {
|
|
|
12090
12258
|
}, /* @__PURE__ */ e.createElement("div", { className: `${k}__user-name` }, d), /* @__PURE__ */ e.createElement("div", { className: `${k}__user-email` }, l)), X = o !== void 0 && typeof a == "function" ? /* @__PURE__ */ e.createElement("li", {
|
|
12091
12259
|
className: `${k}__theme-row`,
|
|
12092
12260
|
role: "presentation"
|
|
12093
|
-
}, /* @__PURE__ */ e.createElement("span", { className: `${k}__theme-label` }, s), /* @__PURE__ */ e.createElement(
|
|
12261
|
+
}, /* @__PURE__ */ e.createElement("span", { className: `${k}__theme-label` }, s), /* @__PURE__ */ e.createElement(bo, {
|
|
12094
12262
|
id: `${T}-theme`,
|
|
12095
12263
|
labelStrings: c,
|
|
12096
12264
|
onChange: a,
|
|
@@ -12169,7 +12337,7 @@ var xi = {
|
|
|
12169
12337
|
className: j,
|
|
12170
12338
|
role: "menu"
|
|
12171
12339
|
}, Y, /* @__PURE__ */ e.createElement("li", { role: "separator" }), X, ce))))));
|
|
12172
|
-
},
|
|
12340
|
+
}, So = ({ ariaLabel: t = "Workspace selector menu", className: n, createWorkspaceLink: r, filterLabel: i = "Filter workspaces", filterPlaceholder: a = "Find workspace...", isMobileAccordion: o = !1, menuHeading: s = "Workspaces", minFilterItems: c = 8, noResultsText: l = "No results found", workspaceList: u = [], ...d }) => {
|
|
12173
12341
|
let [f, p] = _(""), [v, y] = _(""), b = g(null), x = u.length >= c, S = ln(), w = o && S, T = "pds-workspace-selector", E = `${T}__menu`, D = x ? `${E}--scroll` : null, { activeIndex: O, floatingStyles: k, getFloatingProps: A, getItemProps: j, getReferenceProps: M, isMounted: N, listRef: P, refs: F, setIsOpen: I, transitionStyles: L } = Yn({
|
|
12174
12342
|
enableTypeahead: !x,
|
|
12175
12343
|
role: "menu"
|
|
@@ -12223,7 +12391,7 @@ var xi = {
|
|
|
12223
12391
|
t.onRestrictedSelection(), I(!1);
|
|
12224
12392
|
},
|
|
12225
12393
|
type: "button"
|
|
12226
|
-
}, /* @__PURE__ */ e.createElement(
|
|
12394
|
+
}, /* @__PURE__ */ e.createElement(Oa, { workspace: t })) : o ? /* @__PURE__ */ e.createElement(o, Object.assign({}, t.workspaceLink.props, { onClick: () => I(!1) }), /* @__PURE__ */ e.createElement(Oa, { workspace: t })) : null);
|
|
12227
12395
|
}), W = V.map((t) => {
|
|
12228
12396
|
let n = `${T}__item`, r = t.workspaceId, i = t.isRestricted && t.onRestrictedSelection, a = t.workspaceLink?.type;
|
|
12229
12397
|
return /* @__PURE__ */ e.createElement("li", {
|
|
@@ -12241,7 +12409,7 @@ var xi = {
|
|
|
12241
12409
|
}, i ? /* @__PURE__ */ e.createElement("button", {
|
|
12242
12410
|
onClick: () => t.onRestrictedSelection(),
|
|
12243
12411
|
type: "button"
|
|
12244
|
-
}, /* @__PURE__ */ e.createElement(
|
|
12412
|
+
}, /* @__PURE__ */ e.createElement(Oa, { workspace: t })) : a ? /* @__PURE__ */ e.createElement(a, Object.assign({}, t.workspaceLink?.props), /* @__PURE__ */ e.createElement(Oa, { workspace: t })) : null);
|
|
12245
12413
|
}), G = r && /* @__PURE__ */ e.createElement("div", {
|
|
12246
12414
|
ref: b,
|
|
12247
12415
|
className: `${T}__create-link`
|
|
@@ -12254,7 +12422,7 @@ var xi = {
|
|
|
12254
12422
|
onClick: () => I(!1),
|
|
12255
12423
|
size: "s",
|
|
12256
12424
|
variant: "link"
|
|
12257
|
-
})), K = (t) => z ? /* @__PURE__ */ e.createElement("div", { className: `${T}__button-content` }, /* @__PURE__ */ e.createElement(
|
|
12425
|
+
})), K = (t) => z ? /* @__PURE__ */ e.createElement("div", { className: `${T}__button-content` }, /* @__PURE__ */ e.createElement(Ri, {
|
|
12258
12426
|
className: `${T}__avatar`,
|
|
12259
12427
|
imageSrc: z.imageSrc,
|
|
12260
12428
|
size: "m",
|
|
@@ -12266,7 +12434,7 @@ var xi = {
|
|
|
12266
12434
|
return /* @__PURE__ */ e.createElement("span", {
|
|
12267
12435
|
className: Z([T, n]),
|
|
12268
12436
|
...d
|
|
12269
|
-
}, w ? /* @__PURE__ */ e.createElement(Xn, { label: K() }, x && /* @__PURE__ */ e.createElement("div", { className: `${T}__filter` }, /* @__PURE__ */ e.createElement(
|
|
12437
|
+
}, w ? /* @__PURE__ */ e.createElement(Xn, { label: K() }, x && /* @__PURE__ */ e.createElement("div", { className: `${T}__filter` }, /* @__PURE__ */ e.createElement(Da, {
|
|
12270
12438
|
hasClearButton: !0,
|
|
12271
12439
|
id: "workspace-filter-mobile",
|
|
12272
12440
|
label: i,
|
|
@@ -12307,7 +12475,7 @@ var xi = {
|
|
|
12307
12475
|
zIndex: R
|
|
12308
12476
|
},
|
|
12309
12477
|
...A()
|
|
12310
|
-
}, x && /* @__PURE__ */ e.createElement("div", { className: `${T}__filter` }, /* @__PURE__ */ e.createElement(
|
|
12478
|
+
}, x && /* @__PURE__ */ e.createElement("div", { className: `${T}__filter` }, /* @__PURE__ */ e.createElement(Da, {
|
|
12311
12479
|
hasClearButton: !0,
|
|
12312
12480
|
id: "workspace-filter",
|
|
12313
12481
|
label: i,
|
|
@@ -12323,12 +12491,12 @@ var xi = {
|
|
|
12323
12491
|
className: `pds-dropdown__heading ${T}__item-heading`,
|
|
12324
12492
|
role: "presentation"
|
|
12325
12493
|
}, s), U.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: "pds-dropdown__no-results" }, l) : U), G))));
|
|
12326
|
-
},
|
|
12494
|
+
}, Co = {
|
|
12327
12495
|
info: "circleInfo",
|
|
12328
12496
|
warning: "triangleExclamation",
|
|
12329
12497
|
critical: "diamondExclamation",
|
|
12330
12498
|
discovery: "handWave"
|
|
12331
|
-
},
|
|
12499
|
+
}, wo = 200, To = 50, Eo = ({ banners: t, className: n, dataContext: r = "product", dismissLabel: i = "Dismiss", labelNext: a = "Go to next message", labelPrevious: o = "Go to previous message", typeLabels: s = {
|
|
12332
12500
|
...er,
|
|
12333
12501
|
neutral: "Notice"
|
|
12334
12502
|
}, ...c }) => {
|
|
@@ -12353,21 +12521,21 @@ var xi = {
|
|
|
12353
12521
|
}, E = u[0].type, D = E ? `${C}-group--${E}` : null, O = (e) => 500 - e, k = (e) => e === 0 ? 0 : -1, A = () => {
|
|
12354
12522
|
m(u[0].id), setTimeout(() => {
|
|
12355
12523
|
f((e) => [...e.slice(1), e[0]]), m(null);
|
|
12356
|
-
},
|
|
12524
|
+
}, wo);
|
|
12357
12525
|
}, j = () => {
|
|
12358
12526
|
b({
|
|
12359
12527
|
[u[0].id]: 502,
|
|
12360
12528
|
[u[S - 1].id]: 501
|
|
12361
12529
|
}), setTimeout(() => {
|
|
12362
12530
|
m(u[0].id);
|
|
12363
|
-
},
|
|
12531
|
+
}, To), setTimeout(() => {
|
|
12364
12532
|
f((e) => [e[e.length - 1], ...e.slice(0, e.length - 1)]), m(null), b({});
|
|
12365
|
-
},
|
|
12533
|
+
}, wo);
|
|
12366
12534
|
}, M = (t, n) => {
|
|
12367
12535
|
let { iconName: r, id: a, isDismissible: o, message: c, onDismiss: u, type: d } = t, m = d === "critical" ? "alert" : "status", g = `${s[d]}: `, _ = (e) => {
|
|
12368
12536
|
e.preventDefault(), v(a), setTimeout(() => {
|
|
12369
12537
|
u?.(), v(null), x.current.add(a), f((e) => e.filter((e) => e.id !== a));
|
|
12370
|
-
},
|
|
12538
|
+
}, wo);
|
|
12371
12539
|
}, b = y[a] ?? O(n);
|
|
12372
12540
|
return /* @__PURE__ */ e.createElement("div", {
|
|
12373
12541
|
key: a,
|
|
@@ -12382,7 +12550,7 @@ var xi = {
|
|
|
12382
12550
|
style: { zIndex: b }
|
|
12383
12551
|
}, /* @__PURE__ */ e.createElement("div", { className: `${C}__content` }, /* @__PURE__ */ e.createElement(Q, {
|
|
12384
12552
|
className: `${C}__icon ${C}__icon--${t.type}`,
|
|
12385
|
-
iconName: d === "neutral" ? r :
|
|
12553
|
+
iconName: d === "neutral" ? r : Co[d],
|
|
12386
12554
|
size: l ? "2xl" : "l"
|
|
12387
12555
|
}), /* @__PURE__ */ e.createElement("div", { className: `${C}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, g, " "), c)), o && /* @__PURE__ */ e.createElement("button", {
|
|
12388
12556
|
className: `${C}__dismiss-button`,
|
|
@@ -12413,12 +12581,12 @@ var xi = {
|
|
|
12413
12581
|
onClick: A,
|
|
12414
12582
|
size: "m"
|
|
12415
12583
|
}), u.map((e, t) => M(e, t))) : M(u[0], 0));
|
|
12416
|
-
},
|
|
12584
|
+
}, Do = {
|
|
12417
12585
|
info: "circleInfo",
|
|
12418
12586
|
warning: "triangleExclamation",
|
|
12419
12587
|
success: "circleCheck",
|
|
12420
12588
|
critical: "diamondExclamation"
|
|
12421
|
-
},
|
|
12589
|
+
}, Oo = ({ className: t, message: n, title: r, type: i, typeLabels: a = {
|
|
12422
12590
|
...er,
|
|
12423
12591
|
working: "Working"
|
|
12424
12592
|
}, ...o }) => {
|
|
@@ -12439,16 +12607,16 @@ var xi = {
|
|
|
12439
12607
|
role: l,
|
|
12440
12608
|
...o
|
|
12441
12609
|
}, /* @__PURE__ */ e.createElement("div", { className: `${s}__icon ${s}__icon-${i}` }, i === "working" ? /* @__PURE__ */ e.createElement(Fn, { size: "l" }) : /* @__PURE__ */ e.createElement(Q, {
|
|
12442
|
-
iconName: `${i}` in
|
|
12610
|
+
iconName: `${i}` in Do ? Do[i] : Do.info,
|
|
12443
12611
|
size: "xl"
|
|
12444
12612
|
})), /* @__PURE__ */ e.createElement("div", { className: `${s}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, u), /* @__PURE__ */ e.createElement("div", { className: `${s}__title` }, r), /* @__PURE__ */ e.createElement("div", { className: `${s}__message` }, d)));
|
|
12445
|
-
},
|
|
12613
|
+
}, ko = "Agentic", Ao = {
|
|
12446
12614
|
info: "circleInfo",
|
|
12447
12615
|
warning: "triangleExclamation",
|
|
12448
12616
|
success: "circleCheck",
|
|
12449
12617
|
critical: "diamondExclamation",
|
|
12450
12618
|
discovery: "handWave"
|
|
12451
|
-
},
|
|
12619
|
+
}, jo = ({ agenticIconName: t, background: n = "default", badgeIcon: r, badgeLabel: i, className: a, ctaButton: o, ctaIcon: s, dismissLabel: c = "Dismiss", id: l, isDismissible: u, message: f, onDismiss: p, secondaryCta: m, title: h, type: _ = "info", typeLabels: v = er, ...y }) => {
|
|
12452
12620
|
let b = g(null), x = g(void 0), S = "pds-section-message", C = {
|
|
12453
12621
|
agentic: `${S}--agentic`,
|
|
12454
12622
|
success: `${S}--success`,
|
|
@@ -12458,7 +12626,7 @@ var xi = {
|
|
|
12458
12626
|
discovery: `${S}--discovery`,
|
|
12459
12627
|
dismissing: `${S}--dismissing`,
|
|
12460
12628
|
dismissed: `${S}--dismissed`
|
|
12461
|
-
}, w = u ? `${S}--hasDismiss` : null, T = h ? `${S}--hasTitle` : null, E = _ === "agentic", D = E && n === "secondary" ? `${S}--secondary-fill` : null, O = _ === "critical" ? "alert" : "status", k = E ? v.agentic ??
|
|
12629
|
+
}, w = u ? `${S}--hasDismiss` : null, T = h ? `${S}--hasTitle` : null, E = _ === "agentic", D = E && n === "secondary" ? `${S}--secondary-fill` : null, O = _ === "critical" ? "alert" : "status", k = E ? v.agentic ?? ko : v[_], A = `${k}: `, j = typeof f == "string" ? /* @__PURE__ */ e.createElement("p", null, f) : f;
|
|
12462
12630
|
d(() => () => {
|
|
12463
12631
|
x.current && clearTimeout(x.current);
|
|
12464
12632
|
}, []);
|
|
@@ -12484,12 +12652,12 @@ var xi = {
|
|
|
12484
12652
|
id: l,
|
|
12485
12653
|
role: O,
|
|
12486
12654
|
...y
|
|
12487
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${S}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${S}__icon ${S}__icon-${_}` }, E ? /* @__PURE__ */ e.createElement(
|
|
12655
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${S}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${S}__icon ${S}__icon-${_}` }, E ? /* @__PURE__ */ e.createElement(Fi, {
|
|
12488
12656
|
iconName: t,
|
|
12489
12657
|
label: k,
|
|
12490
12658
|
size: h ? "m" : "s"
|
|
12491
12659
|
}) : /* @__PURE__ */ e.createElement(Q, {
|
|
12492
|
-
iconName:
|
|
12660
|
+
iconName: Ao[_] ?? Ao.info,
|
|
12493
12661
|
size: "xl"
|
|
12494
12662
|
})), /* @__PURE__ */ e.createElement("div", { className: `${S}__text` }, !E && /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, A), h && /* @__PURE__ */ e.createElement("div", { className: `${S}__header` }, /* @__PURE__ */ e.createElement("div", { className: `${S}__title` }, h), i && /* @__PURE__ */ e.createElement(Mt, {
|
|
12495
12663
|
className: `${S}__badge`,
|
|
@@ -12515,10 +12683,10 @@ var xi = {
|
|
|
12515
12683
|
onClick: P,
|
|
12516
12684
|
size: "m"
|
|
12517
12685
|
})));
|
|
12518
|
-
},
|
|
12686
|
+
}, Mo = 3e4, No = {
|
|
12519
12687
|
pause: "Pause notification",
|
|
12520
12688
|
resume: "Resume notification"
|
|
12521
|
-
},
|
|
12689
|
+
}, Po = i({ labelStrings: No }), Fo = ({ ariaLabel: t, closeToast: n }) => /* @__PURE__ */ e.createElement(qn, {
|
|
12522
12690
|
ariaLabel: t || "Close",
|
|
12523
12691
|
className: "pds-toast__close-button",
|
|
12524
12692
|
onClick: (e) => {
|
|
@@ -12526,13 +12694,13 @@ var xi = {
|
|
|
12526
12694
|
},
|
|
12527
12695
|
size: "s",
|
|
12528
12696
|
tabIndex: 0
|
|
12529
|
-
}),
|
|
12697
|
+
}), Io = ({ className: t, labelStrings: n = No, limit: r = 5, position: i = "bottom-right" }) => {
|
|
12530
12698
|
let a = Z(["pds-toaster", t]);
|
|
12531
|
-
return /* @__PURE__ */ e.createElement(
|
|
12699
|
+
return /* @__PURE__ */ e.createElement(Po.Provider, { value: { labelStrings: n } }, /* @__PURE__ */ e.createElement(dt, {
|
|
12532
12700
|
newestOnTop: !0,
|
|
12533
12701
|
autoClose: !1,
|
|
12534
12702
|
className: a,
|
|
12535
|
-
closeButton:
|
|
12703
|
+
closeButton: Fo,
|
|
12536
12704
|
draggable: !1,
|
|
12537
12705
|
icon: !1,
|
|
12538
12706
|
limit: r,
|
|
@@ -12542,25 +12710,25 @@ var xi = {
|
|
|
12542
12710
|
role: "status",
|
|
12543
12711
|
transition: ut
|
|
12544
12712
|
}));
|
|
12545
|
-
},
|
|
12713
|
+
}, Lo = {
|
|
12546
12714
|
info: "circleInfo",
|
|
12547
12715
|
success: "circleCheck",
|
|
12548
12716
|
warning: "triangleExclamation",
|
|
12549
12717
|
critical: "diamondExclamation"
|
|
12550
|
-
},
|
|
12718
|
+
}, Ro = {
|
|
12551
12719
|
info: "Information",
|
|
12552
12720
|
success: "Success",
|
|
12553
12721
|
warning: "Warning",
|
|
12554
12722
|
critical: "Critical",
|
|
12555
12723
|
working: "Working..."
|
|
12556
|
-
},
|
|
12724
|
+
}, zo = ({ autoCloseDuration: t, children: n, className: r, id: i, toastId: a, type: o = "info", typeLabels: s = Ro }) => {
|
|
12557
12725
|
let c = "pds-toast", l = {
|
|
12558
12726
|
critical: `${c}--critical`,
|
|
12559
12727
|
info: `${c}--info`,
|
|
12560
12728
|
success: `${c}--success`,
|
|
12561
12729
|
warning: `${c}--warning`,
|
|
12562
12730
|
working: `${c}--working`
|
|
12563
|
-
}, d = `${s[o]} `, { labelStrings: f } = u(
|
|
12731
|
+
}, d = `${s[o]} `, { labelStrings: f } = u(Po), [p, m] = _(!1), h = a !== void 0 && o !== "critical" && o !== "working" && typeof t == "number";
|
|
12564
12732
|
return /* @__PURE__ */ e.createElement("div", {
|
|
12565
12733
|
className: Z([
|
|
12566
12734
|
c,
|
|
@@ -12570,7 +12738,7 @@ var xi = {
|
|
|
12570
12738
|
id: i
|
|
12571
12739
|
}, /* @__PURE__ */ e.createElement("div", { className: `${c}__icon-container` }, o === "working" ? /* @__PURE__ */ e.createElement(Fn, { size: "l" }) : /* @__PURE__ */ e.createElement(Q, {
|
|
12572
12740
|
className: `${c}__icon ${c}__icon--${o}`,
|
|
12573
|
-
iconName:
|
|
12741
|
+
iconName: Lo[o],
|
|
12574
12742
|
size: "xl"
|
|
12575
12743
|
})), /* @__PURE__ */ e.createElement("div", { className: `${c}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, d), n), h && /* @__PURE__ */ e.createElement("button", {
|
|
12576
12744
|
"aria-label": p ? f.resume : f.pause,
|
|
@@ -12585,11 +12753,11 @@ var xi = {
|
|
|
12585
12753
|
iconName: p ? "play" : "pause",
|
|
12586
12754
|
size: "m"
|
|
12587
12755
|
})));
|
|
12588
|
-
},
|
|
12756
|
+
}, Bo = /* @__PURE__ */ function(e) {
|
|
12589
12757
|
return e.Critical = "critical", e.Info = "info", e.Success = "success", e.Warning = "warning", e.Working = "working", e;
|
|
12590
|
-
}({}),
|
|
12758
|
+
}({}), Vo = () => {
|
|
12591
12759
|
let t = (t, n, r = {}) => {
|
|
12592
|
-
let i = r.toastId ?? crypto.randomUUID(), a = typeof r.autoClose == "number" && Math.max(
|
|
12760
|
+
let i = r.toastId ?? crypto.randomUUID(), a = typeof r.autoClose == "number" && Math.max(Mo, r.autoClose), o = /* @__PURE__ */ e.createElement(zo, {
|
|
12593
12761
|
autoCloseDuration: a || void 0,
|
|
12594
12762
|
toastId: i,
|
|
12595
12763
|
type: t
|
|
@@ -12617,7 +12785,7 @@ var xi = {
|
|
|
12617
12785
|
pt,
|
|
12618
12786
|
n
|
|
12619
12787
|
];
|
|
12620
|
-
},
|
|
12788
|
+
}, Ho = .35, Uo = .78, Wo = 80, Go = 4, Ko = ({ ariaLabel: t, children: n, className: r, closeButtonLabel: i = "Close", disableOutsideClick: a, expandedHeight: o, hasCloseButton: s = !0, height: c, isOpen: u = !1, resizeLabel: f = "Close sheet", setIsOpen: p = () => {}, title: m, ...h }) => {
|
|
12621
12789
|
let v = Tt(n), y = v.__unslotted, b = v.footer, x = "pds-bottom-sheet", S = o !== null, w = {
|
|
12622
12790
|
"--pds-bottom-sheet-height": c,
|
|
12623
12791
|
"--pds-bottom-sheet-expanded-height": o
|
|
@@ -12668,15 +12836,15 @@ var xi = {
|
|
|
12668
12836
|
let t = F.current, n = N.current;
|
|
12669
12837
|
if (!t || !n) return;
|
|
12670
12838
|
let r = e.clientY - t.startY, i = S ? window.innerHeight * .96 : t.startHeight;
|
|
12671
|
-
n.style.height = `${Math.min(i, Math.max(
|
|
12839
|
+
n.style.height = `${Math.min(i, Math.max(Wo, t.startHeight - r))}px`;
|
|
12672
12840
|
}, [S]), W = l((e) => {
|
|
12673
12841
|
let t = F.current, n = N.current;
|
|
12674
12842
|
if (F.current = null, M(!1), !t || !n) return;
|
|
12675
|
-
let r = Math.abs(e.clientY - t.startY) >
|
|
12843
|
+
let r = Math.abs(e.clientY - t.startY) > Go, i = n.getBoundingClientRect().height;
|
|
12676
12844
|
if (n.style.height = "", !r) return;
|
|
12677
12845
|
I.current = !0;
|
|
12678
12846
|
let a = window.innerHeight;
|
|
12679
|
-
i < a *
|
|
12847
|
+
i < a * Ho ? z() : S && i > a * Uo ? A(!0) : A(!1);
|
|
12680
12848
|
}, [S, z]);
|
|
12681
12849
|
return T ? /* @__PURE__ */ e.createElement(Zn.Provider, { value: !0 }, /* @__PURE__ */ e.createElement(C, null, /* @__PURE__ */ e.createElement(lt, {
|
|
12682
12850
|
active: D,
|
|
@@ -12720,7 +12888,7 @@ var xi = {
|
|
|
12720
12888
|
onClick: z,
|
|
12721
12889
|
size: "s"
|
|
12722
12890
|
}))), /* @__PURE__ */ e.createElement("div", { className: `${x}__content` }, y), b && /* @__PURE__ */ e.createElement("div", { className: `${x}__footer` }, b)))))) : null;
|
|
12723
|
-
},
|
|
12891
|
+
}, qo = ({ children: t, className: n, clearLabel: r = "Clear selection", count: i, getCountLabel: a = (e) => `${e} selected`, onClear: o, ...s }) => {
|
|
12724
12892
|
let c = "pds-bulk-action-bar";
|
|
12725
12893
|
return /* @__PURE__ */ e.createElement(C, null, /* @__PURE__ */ e.createElement("div", {
|
|
12726
12894
|
className: Z([c, n ?? ""]),
|
|
@@ -12737,7 +12905,7 @@ var xi = {
|
|
|
12737
12905
|
size: "s",
|
|
12738
12906
|
variant: "reverse"
|
|
12739
12907
|
})), /* @__PURE__ */ e.createElement("div", { className: `${c}__actions` }, t)));
|
|
12740
|
-
},
|
|
12908
|
+
}, Jo = ({ ariaLabel: t, children: n, className: r, closeButtonLabel: i = "Close drawer", disableOutsideClick: a, hasCloseButton: o = !0, isOpen: s = !1, placement: c = "right", setIsOpen: u = () => {}, size: f = "m", title: p, width: m, ...h }) => {
|
|
12741
12909
|
let v = Tt(n), y = v.__unslotted, b = v.footer, x = "pds-drawer", S = m ? null : `${x}--${f}`, w = `${x}--${c}`, T = m ? { width: m } : void 0, [E, D] = _(s), [O, k] = _(!1), A = g(null), { closeOverlay: j, openOverlay: M } = pn();
|
|
12742
12910
|
d(() => {
|
|
12743
12911
|
s ? D(!0) : k(!1);
|
|
@@ -12802,7 +12970,7 @@ var xi = {
|
|
|
12802
12970
|
onClick: N,
|
|
12803
12971
|
size: "m"
|
|
12804
12972
|
})), /* @__PURE__ */ e.createElement("div", { className: `${x}__content` }, y), b && /* @__PURE__ */ e.createElement("div", { className: `${x}__footer` }, b)))))) : null;
|
|
12805
|
-
},
|
|
12973
|
+
}, Yo = ({ ariaLabel: t, background: n = "default", children: r, className: i, closeButtonLabel: a = "Close", closeIconName: o = "compress", hasCloseButton: s = !0, isOpen: c, onClose: l, ...u }) => {
|
|
12806
12974
|
let f = "pds-full-screen-overlay", p = n === "default" ? null : `${f}--bg-${n}`, { closeOverlay: m, openOverlay: h } = pn();
|
|
12807
12975
|
d(() => {
|
|
12808
12976
|
if (h && m && c) return h(), () => m();
|
|
@@ -12868,7 +13036,7 @@ var xi = {
|
|
|
12868
13036
|
}),
|
|
12869
13037
|
zIndex: 9999
|
|
12870
13038
|
}), /* @__PURE__ */ e.createElement("div", { className: `${f}__content` }, r)))))) : null;
|
|
12871
|
-
},
|
|
13039
|
+
}, Xo = ({ ariaLabel: t, children: n, className: r, closeButtonLabel: i = "Close modal", contentMaxHeight: a, disableOutsideClick: o, hasCloseButton: s = !0, modalIsOpen: c = !1, setModalIsOpen: l = () => {}, size: u = "m", title: f, ...p }) => {
|
|
12872
13040
|
let m = Tt(n), h = m.__unslotted, g = m.footer, v = "pds-modal", y = u === "m" ? null : `${v}--${u}`, x = a ? {
|
|
12873
13041
|
maxHeight: a,
|
|
12874
13042
|
paddingInlineEnd: "1rem",
|
|
@@ -12947,27 +13115,27 @@ var xi = {
|
|
|
12947
13115
|
className: `${v}__content`,
|
|
12948
13116
|
style: x
|
|
12949
13117
|
}, h), g && /* @__PURE__ */ e.createElement("div", { className: `${v}__footer` }, g)))))) : null;
|
|
12950
|
-
},
|
|
13118
|
+
}, Zo = (e, t) => {
|
|
12951
13119
|
let n = t - e + 1;
|
|
12952
13120
|
return Array.from({ length: n }, (t, n) => n + e);
|
|
12953
|
-
},
|
|
13121
|
+
}, Qo = ({ bufferCount: e = 1, currentPage: t, itemsPerPage: n, totalItemCount: r }) => h(() => {
|
|
12954
13122
|
let i = Math.ceil(r / n), a = e + 5, o = i;
|
|
12955
|
-
if (a >= i) return
|
|
13123
|
+
if (a >= i) return Zo(1, i);
|
|
12956
13124
|
let s = Math.max(t - e, 1), c = Math.min(t + e, i), l = s > 2, u = c < i - 2;
|
|
12957
13125
|
if (!l && u) return [
|
|
12958
|
-
...
|
|
13126
|
+
...Zo(1, 3 + 2 * e),
|
|
12959
13127
|
"...",
|
|
12960
13128
|
i
|
|
12961
13129
|
];
|
|
12962
13130
|
if (l && !u) return [
|
|
12963
13131
|
1,
|
|
12964
13132
|
"...",
|
|
12965
|
-
...
|
|
13133
|
+
...Zo(i - (3 + 2 * e) + 1, i)
|
|
12966
13134
|
];
|
|
12967
13135
|
if (l && u) return [
|
|
12968
13136
|
1,
|
|
12969
13137
|
"...",
|
|
12970
|
-
...
|
|
13138
|
+
...Zo(s, c),
|
|
12971
13139
|
"...",
|
|
12972
13140
|
o
|
|
12973
13141
|
];
|
|
@@ -12976,11 +13144,11 @@ var xi = {
|
|
|
12976
13144
|
n,
|
|
12977
13145
|
e,
|
|
12978
13146
|
t
|
|
12979
|
-
]),
|
|
13147
|
+
]), $o = ({ bufferCount: t = 1, className: n, currentPage: r, headingLevel: i = "h2", headingText: a = "Pagination", itemsPerPage: o = 10, labelStrings: s = {
|
|
12980
13148
|
previous: "Go to previous page",
|
|
12981
13149
|
next: "Go to next page"
|
|
12982
13150
|
}, onPageChange: c, size: l = "m", totalItemCount: u, ...d }) => {
|
|
12983
|
-
let f =
|
|
13151
|
+
let f = Qo({
|
|
12984
13152
|
currentPage: r,
|
|
12985
13153
|
totalItemCount: u,
|
|
12986
13154
|
bufferCount: t,
|
|
@@ -13036,7 +13204,7 @@ var xi = {
|
|
|
13036
13204
|
size: "m"
|
|
13037
13205
|
}))
|
|
13038
13206
|
}))));
|
|
13039
|
-
},
|
|
13207
|
+
}, es = ({ className: t, currentPage: n, headingLevel: r = "h2", headingText: i = "Pagination", itemsPerPage: a = 10, labelStrings: o = {
|
|
13040
13208
|
next: "Next",
|
|
13041
13209
|
previous: "Previous"
|
|
13042
13210
|
}, nextPage: s, onPageChange: c, previousPage: l, totalItemCount: u, ...d }) => {
|
|
@@ -13065,7 +13233,7 @@ var xi = {
|
|
|
13065
13233
|
iconName: "angleRight",
|
|
13066
13234
|
size: "m"
|
|
13067
13235
|
}))));
|
|
13068
|
-
},
|
|
13236
|
+
}, ts = ({ className: t, currentPage: n, headingLevel: r = "h2", headingText: i = "Pagination", itemsPerPage: a = 10, labelStrings: o = {
|
|
13069
13237
|
next: "Go to next page",
|
|
13070
13238
|
of: "of",
|
|
13071
13239
|
page: "Page",
|
|
@@ -13126,7 +13294,7 @@ var xi = {
|
|
|
13126
13294
|
className: "visually-hidden",
|
|
13127
13295
|
id: "pagination-compact",
|
|
13128
13296
|
level: r
|
|
13129
|
-
}, i), o.page && /* @__PURE__ */ e.createElement("span", { className: `${b}__count` }, o.page), c === "input" ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
13297
|
+
}, i), o.page && /* @__PURE__ */ e.createElement("span", { className: `${b}__count` }, o.page), c === "input" ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(Da, {
|
|
13130
13298
|
className: C ? `${b}__page-input--error` : void 0,
|
|
13131
13299
|
id: p,
|
|
13132
13300
|
inputProps: {
|
|
@@ -13156,7 +13324,7 @@ var xi = {
|
|
|
13156
13324
|
size: "s",
|
|
13157
13325
|
value: String(n)
|
|
13158
13326
|
}), /* @__PURE__ */ e.createElement("span", { className: `${b}__count` }, o.of, " ", m), /* @__PURE__ */ e.createElement("div", { className: `${b}__nav` }, k("prev"), k("next")));
|
|
13159
|
-
},
|
|
13327
|
+
}, ns = ({ children: t, className: n, contentMaxHeight: r, heading: i, icon: a, ...o }) => {
|
|
13160
13328
|
let s = "pds-widget-panel", c = Tt(t), l = c.__unslotted, u = c.footer, d = r ? { maxHeight: r } : void 0;
|
|
13161
13329
|
return /* @__PURE__ */ e.createElement("div", {
|
|
13162
13330
|
className: Z([s, n ?? ""]),
|
|
@@ -13169,9 +13337,9 @@ var xi = {
|
|
|
13169
13337
|
className: `${s}__content`,
|
|
13170
13338
|
style: d
|
|
13171
13339
|
}, l), Et(u) && /* @__PURE__ */ e.createElement("div", { className: `${s}__footer` }, u));
|
|
13172
|
-
},
|
|
13340
|
+
}, rs = ({ className: t, createLink: n, emptyText: r, filter: i, heading: a, items: o, ...s }) => {
|
|
13173
13341
|
let c = "pds-selector-panel", l = null;
|
|
13174
|
-
return o.length > 0 ? l = /* @__PURE__ */ e.createElement("ul", { className: `${c}__list` }, o) : r && (l = /* @__PURE__ */ e.createElement("p", { className: `${c}__no-results` }, r)), /* @__PURE__ */ e.createElement(
|
|
13342
|
+
return o.length > 0 ? l = /* @__PURE__ */ e.createElement("ul", { className: `${c}__list` }, o) : r && (l = /* @__PURE__ */ e.createElement("p", { className: `${c}__no-results` }, r)), /* @__PURE__ */ e.createElement(ns, {
|
|
13175
13343
|
className: Z([c, t ?? ""]),
|
|
13176
13344
|
heading: a,
|
|
13177
13345
|
...s
|
|
@@ -13187,7 +13355,7 @@ var xi = {
|
|
|
13187
13355
|
slot: "footer",
|
|
13188
13356
|
variant: "link"
|
|
13189
13357
|
}));
|
|
13190
|
-
},
|
|
13358
|
+
}, is = ({ children: t, className: n, link: r, onSelect: i, ...a }) => {
|
|
13191
13359
|
let o = r?.type;
|
|
13192
13360
|
return /* @__PURE__ */ e.createElement("li", {
|
|
13193
13361
|
className: Z(["pds-selector-panel__item", n ?? ""]),
|
|
@@ -13196,11 +13364,11 @@ var xi = {
|
|
|
13196
13364
|
onClick: () => i(),
|
|
13197
13365
|
type: "button"
|
|
13198
13366
|
}, t) : o && /* @__PURE__ */ e.createElement(o, Object.assign({}, r?.props), t));
|
|
13199
|
-
},
|
|
13200
|
-
let s = "pds-ba-selector-panel", c = `${s}__item`, l = t.map((t) => /* @__PURE__ */ e.createElement(
|
|
13367
|
+
}, as = ({ businessAccounts: t = [], className: n, contentMaxHeight: r, createBusinessAccountLink: i, heading: a = "Business accounts", ...o }) => {
|
|
13368
|
+
let s = "pds-ba-selector-panel", c = `${s}__item`, l = t.map((t) => /* @__PURE__ */ e.createElement(is, {
|
|
13201
13369
|
key: t.businessAccountId,
|
|
13202
13370
|
link: t.linkContent
|
|
13203
|
-
}, /* @__PURE__ */ e.createElement("span", { className: `${c}-content` }, /* @__PURE__ */ e.createElement(
|
|
13371
|
+
}, /* @__PURE__ */ e.createElement("span", { className: `${c}-content` }, /* @__PURE__ */ e.createElement(Ri, {
|
|
13204
13372
|
className: `${c}-avatar`,
|
|
13205
13373
|
fallbackIcon: "business-account",
|
|
13206
13374
|
imageSrc: t.imageSrc,
|
|
@@ -13211,7 +13379,7 @@ var xi = {
|
|
|
13211
13379
|
className: `${c}-name`,
|
|
13212
13380
|
onMouseEnter: wt
|
|
13213
13381
|
}, t.displayName))));
|
|
13214
|
-
return /* @__PURE__ */ e.createElement(
|
|
13382
|
+
return /* @__PURE__ */ e.createElement(rs, {
|
|
13215
13383
|
className: Z([s, n ?? ""]),
|
|
13216
13384
|
contentMaxHeight: r,
|
|
13217
13385
|
createLink: i,
|
|
@@ -13220,7 +13388,7 @@ var xi = {
|
|
|
13220
13388
|
items: l,
|
|
13221
13389
|
...o
|
|
13222
13390
|
});
|
|
13223
|
-
},
|
|
13391
|
+
}, os = "Bookmark pages you visit often for quick access.", ss = 5, cs = ({ bookmarks: t = [], className: n, contentMaxHeight: r, createLabel: i = "Create bookmark", getMenuAriaLabel: a = (e) => `Actions for ${e.title}`, getRemoveCriticalLabel: o, heading: s = "Bookmarks", isLoading: c = !1, loadingRowCount: l = ss, noResultsText: u = os, onCreateBookmark: d, removeLabel: f, renameLabel: p, ...m }) => {
|
|
13224
13392
|
let h = "pds-bookmarks-panel", g = `${h}__item`, _ = [...Array(l)].map((t, n) => /* @__PURE__ */ e.createElement("li", {
|
|
13225
13393
|
key: n,
|
|
13226
13394
|
className: `${g} ${g}--loading`
|
|
@@ -13235,9 +13403,9 @@ var xi = {
|
|
|
13235
13403
|
return /* @__PURE__ */ e.createElement("li", {
|
|
13236
13404
|
key: t.id ?? t.title,
|
|
13237
13405
|
className: g
|
|
13238
|
-
}, /* @__PURE__ */ e.createElement(
|
|
13406
|
+
}, /* @__PURE__ */ e.createElement(Ua, {
|
|
13239
13407
|
menuAriaLabel: a(t),
|
|
13240
|
-
menuItems:
|
|
13408
|
+
menuItems: Wa(t, {
|
|
13241
13409
|
getRemoveCriticalLabel: o,
|
|
13242
13410
|
removeLabel: f,
|
|
13243
13411
|
renameLabel: p
|
|
@@ -13259,14 +13427,14 @@ var xi = {
|
|
|
13259
13427
|
slot: "footer",
|
|
13260
13428
|
variant: "link"
|
|
13261
13429
|
});
|
|
13262
|
-
return /* @__PURE__ */ e.createElement(
|
|
13430
|
+
return /* @__PURE__ */ e.createElement(ns, {
|
|
13263
13431
|
className: Z([h, n ?? ""]),
|
|
13264
13432
|
contentMaxHeight: r,
|
|
13265
13433
|
heading: s,
|
|
13266
13434
|
icon: "bookmark",
|
|
13267
13435
|
...m
|
|
13268
|
-
}, c ? /* @__PURE__ */ e.createElement("ul", { className: `${h}__list ${h}__list--loading` }, _) : t.length === 0 ? /* @__PURE__ */ e.createElement(
|
|
13269
|
-
},
|
|
13436
|
+
}, c ? /* @__PURE__ */ e.createElement("ul", { className: `${h}__list ${h}__list--loading` }, _) : t.length === 0 ? /* @__PURE__ */ e.createElement(Ga, { text: u }) : /* @__PURE__ */ e.createElement("ul", { className: `${h}__list` }, v), !c && y);
|
|
13437
|
+
}, ls = ({ children: t, className: n, id: r, isOpen: i = !1, showBorder: a = !0, summary: o, ...s }) => {
|
|
13270
13438
|
let [c, l] = _(i), u = f(), p = r ?? `expansion-panel-${u}`, m = "pds-expansion-panel", h = a ? null : `${m}--no-border`, v = g(null);
|
|
13271
13439
|
return d(() => {
|
|
13272
13440
|
let e = v.current;
|
|
@@ -13290,7 +13458,7 @@ var xi = {
|
|
|
13290
13458
|
className: `${m}__icon ${c ? "rotated" : ""}`,
|
|
13291
13459
|
iconName: "angleDown"
|
|
13292
13460
|
})), /* @__PURE__ */ e.createElement("div", { className: `${m}__content` }, t)));
|
|
13293
|
-
},
|
|
13461
|
+
}, us = ({ children: t, className: n, displayType: r = "standard", ...i }) => {
|
|
13294
13462
|
let a = "pds-expansion-panel-group", o = r === "standard" ? null : `${a}--${r}`;
|
|
13295
13463
|
return /* @__PURE__ */ e.createElement("div", {
|
|
13296
13464
|
className: Z([
|
|
@@ -13300,7 +13468,7 @@ var xi = {
|
|
|
13300
13468
|
]),
|
|
13301
13469
|
...i
|
|
13302
13470
|
}, t);
|
|
13303
|
-
},
|
|
13471
|
+
}, ds = ({ className: t, content: n, cta: r, dismissLabel: i = "Close", heading: a, image: o, imageVariant: s = "bleed", isDismissible: c, layout: l = "vertical", onDismiss: u, ...d }) => {
|
|
13304
13472
|
let f = "pds-feature-panel", p = l === "vertical" ? null : `${f}--${l}`, m = s === "bleed" ? null : `${f}--image-${s}`, h = c ? `${f}--hasDismiss` : null, g = o ? `${f}--has-image` : null, _ = r && "linkContent" in r;
|
|
13305
13473
|
return /* @__PURE__ */ e.createElement("div", {
|
|
13306
13474
|
className: Z([
|
|
@@ -13327,7 +13495,7 @@ var xi = {
|
|
|
13327
13495
|
size: "s",
|
|
13328
13496
|
variant: "brand"
|
|
13329
13497
|
}))));
|
|
13330
|
-
},
|
|
13498
|
+
}, fs = ({ children: t, className: n, isAnimated: r = !1, padding: i = "standard", variant: a = "default", ...o }) => {
|
|
13331
13499
|
let s = "pds-panel", c = a.startsWith("agentic-"), l = c ? a.replace("agentic-", "") : a, u = l === "default" ? null : `${s}--${l}`, d = c ? `${s}--agentic` : null, f = c && r ? `${s}--animated` : null, p = `${s}__content`, m = i === "standard" ? null : `${p}--pad-${i}`;
|
|
13332
13500
|
return /* @__PURE__ */ e.createElement("div", {
|
|
13333
13501
|
className: Z([
|
|
@@ -13339,7 +13507,7 @@ var xi = {
|
|
|
13339
13507
|
]),
|
|
13340
13508
|
...o
|
|
13341
13509
|
}, /* @__PURE__ */ e.createElement("div", { className: Z([p, m]) }, t));
|
|
13342
|
-
},
|
|
13510
|
+
}, ps = ({ background: t = "default", children: n, className: r, hasBorder: i = !0, paddingSize: a = "m", ...o }) => {
|
|
13343
13511
|
let s = "pds-panel-list", c = `pds-panel-list--${a}`, l = t === "default" ? null : `${s}--${t}`, u = i ? null : `${s}--borderless`;
|
|
13344
13512
|
return /* @__PURE__ */ e.createElement("ul", {
|
|
13345
13513
|
className: Z([
|
|
@@ -13351,7 +13519,7 @@ var xi = {
|
|
|
13351
13519
|
]),
|
|
13352
13520
|
...o
|
|
13353
13521
|
}, n);
|
|
13354
|
-
},
|
|
13522
|
+
}, ms = ({ children: t, className: n, expandButtonAriaLabel: r, isExpandable: i = !1, stackBelow: a = "m", ...o }) => {
|
|
13355
13523
|
let s = "pds-panel-row", c = `${s}--stack-${a}`, [l, u] = _(!1), d = Tt(t), f = d["items-left"], p = d["items-right"], m = d["items-below"], h = () => {
|
|
13356
13524
|
u((e) => !e);
|
|
13357
13525
|
};
|
|
@@ -13383,17 +13551,17 @@ var xi = {
|
|
|
13383
13551
|
opacity: "0"
|
|
13384
13552
|
}
|
|
13385
13553
|
}, /* @__PURE__ */ e.createElement("div", { className: `${s}__items-inside` }, m)));
|
|
13386
|
-
},
|
|
13554
|
+
}, hs = ({ children: t, className: n, ...r }) => /* @__PURE__ */ e.createElement("div", {
|
|
13387
13555
|
className: Z(["pds-panel-stack", n ?? ""]),
|
|
13388
13556
|
...r
|
|
13389
|
-
}, t),
|
|
13557
|
+
}, t), gs = ({ className: t, contentMaxHeight: n, createWorkspaceLink: r, filterLabel: i = "Filter workspaces", filterPlaceholder: a = "Find workspace...", heading: o = "Workspaces", minFilterItems: s = 8, noResultsText: c = "No results found", workspaceList: l = [], ...u }) => {
|
|
13390
13558
|
let d = "pds-workspace-selector-panel", f = `${d}__item`, [p, m] = _(""), g = l.length >= s, v = h(() => {
|
|
13391
13559
|
if (!p) return l;
|
|
13392
13560
|
let e = p.toLowerCase();
|
|
13393
13561
|
return l.filter((t) => t.displayName?.toLowerCase().includes(e));
|
|
13394
13562
|
}, [l, p]).map((t) => {
|
|
13395
13563
|
let n = t.isRestricted && t.onRestrictedSelection ? t.onRestrictedSelection : void 0;
|
|
13396
|
-
return /* @__PURE__ */ e.createElement(
|
|
13564
|
+
return /* @__PURE__ */ e.createElement(is, {
|
|
13397
13565
|
key: t.workspaceId,
|
|
13398
13566
|
className: Z([
|
|
13399
13567
|
f,
|
|
@@ -13402,17 +13570,17 @@ var xi = {
|
|
|
13402
13570
|
]),
|
|
13403
13571
|
link: t.workspaceLink,
|
|
13404
13572
|
onSelect: n
|
|
13405
|
-
}, /* @__PURE__ */ e.createElement(
|
|
13573
|
+
}, /* @__PURE__ */ e.createElement(Oa, {
|
|
13406
13574
|
showActiveState: !1,
|
|
13407
13575
|
workspace: t
|
|
13408
13576
|
}));
|
|
13409
13577
|
});
|
|
13410
|
-
return /* @__PURE__ */ e.createElement(
|
|
13578
|
+
return /* @__PURE__ */ e.createElement(rs, {
|
|
13411
13579
|
className: Z([d, t ?? ""]),
|
|
13412
13580
|
contentMaxHeight: n,
|
|
13413
13581
|
createLink: r,
|
|
13414
13582
|
emptyText: c,
|
|
13415
|
-
filter: g && /* @__PURE__ */ e.createElement("div", { className: `${d}__filter` }, /* @__PURE__ */ e.createElement(
|
|
13583
|
+
filter: g && /* @__PURE__ */ e.createElement("div", { className: `${d}__filter` }, /* @__PURE__ */ e.createElement(Da, {
|
|
13416
13584
|
hasClearButton: !0,
|
|
13417
13585
|
id: "workspace-selector-panel-filter",
|
|
13418
13586
|
label: i,
|
|
@@ -13427,7 +13595,7 @@ var xi = {
|
|
|
13427
13595
|
items: v,
|
|
13428
13596
|
...u
|
|
13429
13597
|
});
|
|
13430
|
-
},
|
|
13598
|
+
}, _s = /* @__PURE__ */ e.createElement("svg", {
|
|
13431
13599
|
"aria-label": "Pantheon",
|
|
13432
13600
|
fill: "none",
|
|
13433
13601
|
focusable: "false",
|
|
@@ -13489,7 +13657,7 @@ var xi = {
|
|
|
13489
13657
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
13490
13658
|
d: "M161.5 16.65H161V16.35H162.5V16.65H162V18.25H161.6V16.65H161.5ZM163.6 18.25L163.1 16.75V18.25H162.7V16.35H163.3L163.8 17.85L164.3 16.35H164.9V18.25H164.5V16.75L164 18.25H163.6Z",
|
|
13491
13659
|
fill: "var(--pds-color-foreground-default)"
|
|
13492
|
-
})),
|
|
13660
|
+
})), vs = /* @__PURE__ */ e.createElement("svg", {
|
|
13493
13661
|
"aria-label": "Pantheon",
|
|
13494
13662
|
fill: "none",
|
|
13495
13663
|
focusable: "false",
|
|
@@ -13524,7 +13692,7 @@ var xi = {
|
|
|
13524
13692
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
13525
13693
|
d: "M5.4 24.2L3.7 19.9H7.6L9.4 24.2H13.1L9.8 16.3H1.7C1.1 16.3 0.7 16.3 0.4 17.2C0.0999996 18.3 0 20.4 0 24.5C0 28.6 -3.8743e-07 30.7 0.4 31.8C0.7 32.7 1 32.7 1.7 32.7H8.8L5.4 24.2Z",
|
|
13526
13694
|
fill: "var(--pds-color-foreground-default)"
|
|
13527
|
-
})),
|
|
13695
|
+
})), ys = /* @__PURE__ */ e.createElement("svg", {
|
|
13528
13696
|
"aria-label": "Pantheon",
|
|
13529
13697
|
fill: "none",
|
|
13530
13698
|
focusable: "false",
|
|
@@ -13559,16 +13727,16 @@ var xi = {
|
|
|
13559
13727
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
13560
13728
|
d: "M135.7 0.299999H135.2V0H136.7V0.299999H136.2V1.9H135.8V0.299999H135.7ZM137.8 1.9L137.3 0.4V1.9H136.9V0H137.5L138 1.5L138.5 0H139.1V1.9H138.7V0.4L138.2 1.9H137.8Z",
|
|
13561
13729
|
fill: "var(--pds-color-foreground-default)"
|
|
13562
|
-
})),
|
|
13730
|
+
})), bs = ({ className: t, colorType: n = "default", displayType: r = "full", linkContent: i, size: a = "m", ...o }) => {
|
|
13563
13731
|
let c = "pds-pantheon-logo", l = r && r !== "full" ? `${c}--${r}` : null, u = n && n !== "default" ? `${c}--${n}` : null, d = a === "m" ? null : `${c}--${a}`, f;
|
|
13564
13732
|
switch (r) {
|
|
13565
13733
|
case "full":
|
|
13566
|
-
f =
|
|
13734
|
+
f = _s;
|
|
13567
13735
|
break;
|
|
13568
13736
|
case "icon":
|
|
13569
|
-
f =
|
|
13737
|
+
f = vs;
|
|
13570
13738
|
break;
|
|
13571
|
-
case "wordmark": f =
|
|
13739
|
+
case "wordmark": f = ys;
|
|
13572
13740
|
}
|
|
13573
13741
|
let p = s(i) && typeof i.props.children == "string" ? i.props.children : "", m = s(i) ? i.type : null, h = s(i) && m ? /* @__PURE__ */ e.createElement(m, Object.assign({}, i.props, {
|
|
13574
13742
|
children: f,
|
|
@@ -13584,7 +13752,7 @@ var xi = {
|
|
|
13584
13752
|
]),
|
|
13585
13753
|
...o
|
|
13586
13754
|
}, i ? h : f);
|
|
13587
|
-
},
|
|
13755
|
+
}, xs = 8, Ss = 14, Cs = ({ className: t, classNameContainer: n, closeButtonLabel: r = "Close", content: i, customTrigger: a = !1, hasCloseButton: o = !1, offsetValue: s = 0, onClose: c = () => {}, placement: l = "top", popoverIsOpen: u = !1, setPopoverIsOpen: f = () => {}, title: p, triggerAccessibleText: m = "Show more information", triggerIcon: h = "circleInfo", triggerIconSize: v = "m", ...x }) => {
|
|
13588
13756
|
let [S, w] = _(u);
|
|
13589
13757
|
d(() => {
|
|
13590
13758
|
w(u);
|
|
@@ -13611,12 +13779,12 @@ var xi = {
|
|
|
13611
13779
|
K,
|
|
13612
13780
|
q,
|
|
13613
13781
|
te
|
|
13614
|
-
]), re = B.arrow?.x ?? 0, ie = B.arrow?.y ?? 0, Y = re +
|
|
13782
|
+
]), re = B.arrow?.x ?? 0, ie = B.arrow?.y ?? 0, Y = re + Ss / 2, X = ie + xs, { isMounted: ae } = U(R, {
|
|
13615
13783
|
initial: { transform: "scale(0)" },
|
|
13616
13784
|
common: ({ side: e }) => ({ transformOrigin: {
|
|
13617
|
-
top: `${Y}px calc(100% + ${
|
|
13785
|
+
top: `${Y}px calc(100% + ${xs}px)`,
|
|
13618
13786
|
bottom: `${Y}px -8px`,
|
|
13619
|
-
left: `calc(100% + ${
|
|
13787
|
+
left: `calc(100% + ${xs}px) ${X}px`,
|
|
13620
13788
|
right: `-8px ${X}px`
|
|
13621
13789
|
}[e] })
|
|
13622
13790
|
});
|
|
@@ -13651,23 +13819,23 @@ var xi = {
|
|
|
13651
13819
|
className: `${j}__arrow`,
|
|
13652
13820
|
context: R,
|
|
13653
13821
|
fill: "var(--pds-color-surface-default)",
|
|
13654
|
-
height:
|
|
13822
|
+
height: xs,
|
|
13655
13823
|
stroke: "var(--pds-color-border-default)",
|
|
13656
13824
|
strokeWidth: 1,
|
|
13657
13825
|
tipRadius: 0,
|
|
13658
|
-
width:
|
|
13826
|
+
width: Ss
|
|
13659
13827
|
}), /* @__PURE__ */ e.createElement("div", { className: `${j}__container-inner` }, p && /* @__PURE__ */ e.createElement("div", { className: `${j}__title` }, p), i && /* @__PURE__ */ e.createElement("div", { className: `${j}__content` }, i), o && /* @__PURE__ */ e.createElement("div", { className: `${j}__close-wrapper` }, /* @__PURE__ */ e.createElement(qn, {
|
|
13660
13828
|
ariaLabel: r,
|
|
13661
13829
|
onClick: G,
|
|
13662
13830
|
size: "s"
|
|
13663
13831
|
})))))));
|
|
13664
|
-
},
|
|
13832
|
+
}, ws = {
|
|
13665
13833
|
neutral: "--pds-color-status-neutral-indicator",
|
|
13666
13834
|
info: "--pds-color-status-info-fill",
|
|
13667
13835
|
success: "--pds-color-status-success-fill",
|
|
13668
13836
|
warning: "--pds-color-status-warning-fill",
|
|
13669
13837
|
critical: "--pds-color-status-critical-fill"
|
|
13670
|
-
},
|
|
13838
|
+
}, Ts = ({ className: t, colorBreakpoints: n = [{
|
|
13671
13839
|
colorType: "info",
|
|
13672
13840
|
percentage: 0
|
|
13673
13841
|
}, {
|
|
@@ -13688,7 +13856,7 @@ var xi = {
|
|
|
13688
13856
|
id: m
|
|
13689
13857
|
}, i), (x || l) && /* @__PURE__ */ e.createElement("div", { className: `${h}__details` }, x && b, l && /* @__PURE__ */ e.createElement("div", {
|
|
13690
13858
|
className: `${h}__percentage`,
|
|
13691
|
-
style: { color: `hsl(from var(${
|
|
13859
|
+
style: { color: `hsl(from var(${ws[y]}) h s calc(l - 7))` }
|
|
13692
13860
|
}, s, "%")), /* @__PURE__ */ e.createElement("div", { className: `${h}__wrapper` }, /* @__PURE__ */ e.createElement("div", {
|
|
13693
13861
|
"aria-labelledby": m,
|
|
13694
13862
|
"aria-valuenow": v,
|
|
@@ -13698,16 +13866,16 @@ var xi = {
|
|
|
13698
13866
|
className: `${h}__bar`,
|
|
13699
13867
|
style: {
|
|
13700
13868
|
width: `${v}%`,
|
|
13701
|
-
backgroundColor: `var(${
|
|
13869
|
+
backgroundColor: `var(${ws[y]})`
|
|
13702
13870
|
}
|
|
13703
13871
|
}))), S && b);
|
|
13704
|
-
},
|
|
13872
|
+
}, Es = {
|
|
13705
13873
|
neutral: "--pds-color-status-neutral-indicator",
|
|
13706
13874
|
info: "--pds-color-status-info-fill",
|
|
13707
13875
|
success: "--pds-color-status-success-fill",
|
|
13708
13876
|
warning: "--pds-color-status-warning-fill",
|
|
13709
13877
|
critical: "--pds-color-status-critical-fill"
|
|
13710
|
-
},
|
|
13878
|
+
}, Ds = ({ className: t, colorBreakpoints: n = [{
|
|
13711
13879
|
colorType: "info",
|
|
13712
13880
|
percentage: 0
|
|
13713
13881
|
}, {
|
|
@@ -13756,7 +13924,7 @@ var xi = {
|
|
|
13756
13924
|
strokeDasharray: x,
|
|
13757
13925
|
strokeDashoffset: S,
|
|
13758
13926
|
strokeWidth: y,
|
|
13759
|
-
style: { stroke: `var(${
|
|
13927
|
+
style: { stroke: `var(${Es[C]})` },
|
|
13760
13928
|
transform: `rotate(-90 ${v / 2} ${v / 2})`
|
|
13761
13929
|
}), /* @__PURE__ */ e.createElement("text", {
|
|
13762
13930
|
alignmentBaseline: "middle",
|
|
@@ -13766,29 +13934,29 @@ var xi = {
|
|
|
13766
13934
|
x: "50%",
|
|
13767
13935
|
y: "51%"
|
|
13768
13936
|
}, w))));
|
|
13769
|
-
},
|
|
13937
|
+
}, Os = {
|
|
13770
13938
|
of: "of",
|
|
13771
13939
|
showing: "Showing",
|
|
13772
13940
|
unitPlural: "results",
|
|
13773
13941
|
unitSingular: "result"
|
|
13774
|
-
},
|
|
13942
|
+
}, ks = (e, t, n, r) => new Intl.PluralRules(r).select(e) === "one" ? t : n, As = ({ className: t, countMatching: n, countTotal: r, labelStrings: i, locale: a, ...o }) => {
|
|
13775
13943
|
let s = "pds-result-count", c = `${s}__number`, { of: l, showing: u, unitPlural: d, unitSingular: f } = {
|
|
13776
|
-
...
|
|
13944
|
+
...Os,
|
|
13777
13945
|
...i
|
|
13778
|
-
}, p = n !== void 0, m =
|
|
13946
|
+
}, p = n !== void 0, m = ks(r, f, d, a);
|
|
13779
13947
|
return /* @__PURE__ */ e.createElement("div", {
|
|
13780
13948
|
"aria-live": "polite",
|
|
13781
13949
|
className: Z([s, t ?? ""]),
|
|
13782
13950
|
...o
|
|
13783
13951
|
}, /* @__PURE__ */ e.createElement("span", null, p && /* @__PURE__ */ e.createElement(e.Fragment, null, u && /* @__PURE__ */ e.createElement("span", null, `${u} `), /* @__PURE__ */ e.createElement("span", { className: c }, n), /* @__PURE__ */ e.createElement("span", null, ` ${l} `)), /* @__PURE__ */ e.createElement("span", { className: c }, r), /* @__PURE__ */ e.createElement("span", null, ` ${m}`)));
|
|
13784
|
-
},
|
|
13952
|
+
}, js = {
|
|
13785
13953
|
privacy: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Privacy Policy"),
|
|
13786
13954
|
dataSubjectRequest: /* @__PURE__ */ e.createElement("a", { href: "http://pantheon.io/data-subject-request" }, "Data Subject Request"),
|
|
13787
13955
|
cookiePolicy: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Cookie Policy"),
|
|
13788
13956
|
termsOfUse: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Terms of Use"),
|
|
13789
13957
|
acceptableUse: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Acceptable Use Policy"),
|
|
13790
13958
|
accessibilityStatement: /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/accessibility-statement" }, "Accessibility Statement")
|
|
13791
|
-
},
|
|
13959
|
+
}, Ms = (e) => typeof e == "string", Ns = ({ as: t = "div", children: n, className: r, containerWidth: i = "full", hasTopBorder: a, legalLinks: o = [
|
|
13792
13960
|
"privacy",
|
|
13793
13961
|
"dataSubjectRequest",
|
|
13794
13962
|
"cookiePolicy",
|
|
@@ -13805,8 +13973,8 @@ var xi = {
|
|
|
13805
13973
|
r ?? ""
|
|
13806
13974
|
]),
|
|
13807
13975
|
...c
|
|
13808
|
-
}, /* @__PURE__ */ e.createElement("div", { className: f }, n && /* @__PURE__ */ e.createElement("div", { className: `${l}__content` }, n), /* @__PURE__ */ e.createElement("div", { className: `${l}__legal` }, /* @__PURE__ */ e.createElement("span", { className: `${l}__copyright` }, "© ", p, " Pantheon Systems, Inc."), o.map((t, n) =>
|
|
13809
|
-
},
|
|
13976
|
+
}, /* @__PURE__ */ e.createElement("div", { className: f }, n && /* @__PURE__ */ e.createElement("div", { className: `${l}__content` }, n), /* @__PURE__ */ e.createElement("div", { className: `${l}__legal` }, /* @__PURE__ */ e.createElement("span", { className: `${l}__copyright` }, "© ", p, " Pantheon Systems, Inc."), o.map((t, n) => Ms(t) ? /* @__PURE__ */ e.createElement(e.Fragment, { key: t }, js[t]) : /* @__PURE__ */ e.createElement(e.Fragment, { key: n }, t)))));
|
|
13977
|
+
}, Ps = ({ className: t, option: n, ...r }) => {
|
|
13810
13978
|
let i = "pds-site-option-display", a = n.type ? or[n.type] : "boltSolid", o = g(null), [s] = mt(o), c = s.width / 16 - 7.5, l, u;
|
|
13811
13979
|
n.status === "active" && (l = "Active", u = "success"), n.status === "frozen" && (l = "Frozen", u = "frozen"), n.status === "restricted" && (l = "Restricted", u = "critical");
|
|
13812
13980
|
let d = /* @__PURE__ */ e.createElement(In, {
|
|
@@ -13829,7 +13997,7 @@ var xi = {
|
|
|
13829
13997
|
className: `${i}__status`,
|
|
13830
13998
|
style: { pointerEvents: "none" }
|
|
13831
13999
|
}, d));
|
|
13832
|
-
},
|
|
14000
|
+
}, Fs = ({ className: t, disabled: n = !1, id: r, isLoading: i = !1, label: a = "Search sites", labelStrings: o = {
|
|
13833
14001
|
clearButton: "Clear input text",
|
|
13834
14002
|
inputInstructions: "Type to search options"
|
|
13835
14003
|
}, loadingText: s = "Loading results...", noResultsText: c = "No results found", onFocus: l, onOptionSelect: u, placeholder: d = "Search sites", siteList: f, ...p }) => {
|
|
@@ -13841,7 +14009,7 @@ var xi = {
|
|
|
13841
14009
|
id: n,
|
|
13842
14010
|
label: i,
|
|
13843
14011
|
value: r ?? i,
|
|
13844
|
-
optionDisplay: /* @__PURE__ */ e.createElement(
|
|
14012
|
+
optionDisplay: /* @__PURE__ */ e.createElement(Ps, { option: t }),
|
|
13845
14013
|
siteData: t
|
|
13846
14014
|
};
|
|
13847
14015
|
});
|
|
@@ -13849,7 +14017,7 @@ var xi = {
|
|
|
13849
14017
|
className: Z([g, t ?? ""]),
|
|
13850
14018
|
id: r,
|
|
13851
14019
|
...p
|
|
13852
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${g}__inner` }, /* @__PURE__ */ e.createElement(
|
|
14020
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${g}__inner` }, /* @__PURE__ */ e.createElement(Wi, {
|
|
13853
14021
|
hasClearButton: !0,
|
|
13854
14022
|
hasSearchShortcut: !0,
|
|
13855
14023
|
className: `${g}__combobox`,
|
|
@@ -13869,7 +14037,7 @@ var xi = {
|
|
|
13869
14037
|
})));
|
|
13870
14038
|
};
|
|
13871
14039
|
// src/components/SortableList/sortable-utils.ts
|
|
13872
|
-
function
|
|
14040
|
+
function Is(e, t, n = null, r = 0, i = []) {
|
|
13873
14041
|
return e.reduce((e, a, o) => {
|
|
13874
14042
|
let s = !!a.children?.length, c = t.has(a.id);
|
|
13875
14043
|
return e.push({
|
|
@@ -13881,10 +14049,10 @@ function Ps(e, t, n = null, r = 0, i = []) {
|
|
|
13881
14049
|
index: o,
|
|
13882
14050
|
isExpanded: c,
|
|
13883
14051
|
parentId: n
|
|
13884
|
-
}), s && c && a.children && e.push(...
|
|
14052
|
+
}), s && c && a.children && e.push(...Is(a.children, t, a.id, r + 1, [...i, a.id])), e;
|
|
13885
14053
|
}, []);
|
|
13886
14054
|
}
|
|
13887
|
-
function
|
|
14055
|
+
function Ls(e) {
|
|
13888
14056
|
let t = /* @__PURE__ */ new Map(), n = new Set(e.map((e) => e.id)), r = [];
|
|
13889
14057
|
for (let i of e) {
|
|
13890
14058
|
let e = i.data.children ?? [], a = e.length > 0 && !e.some((e) => n.has(e.id)), o = {
|
|
@@ -13897,35 +14065,35 @@ function Fs(e) {
|
|
|
13897
14065
|
e && (e.children || (e.children = []), e.children.push(o));
|
|
13898
14066
|
}
|
|
13899
14067
|
}
|
|
13900
|
-
return
|
|
14068
|
+
return Rs(r);
|
|
13901
14069
|
}
|
|
13902
|
-
function
|
|
14070
|
+
function Rs(e) {
|
|
13903
14071
|
return e.map((e) => {
|
|
13904
14072
|
if (e.children?.length) return {
|
|
13905
14073
|
...e,
|
|
13906
|
-
children:
|
|
14074
|
+
children: Rs(e.children)
|
|
13907
14075
|
};
|
|
13908
14076
|
let { children: t, ...n } = e;
|
|
13909
14077
|
return n;
|
|
13910
14078
|
});
|
|
13911
14079
|
}
|
|
13912
|
-
function
|
|
14080
|
+
function zs(e, t) {
|
|
13913
14081
|
for (let n of e) {
|
|
13914
14082
|
if (n.id === t) return n;
|
|
13915
14083
|
if (n.children) {
|
|
13916
|
-
let e =
|
|
14084
|
+
let e = zs(n.children, t);
|
|
13917
14085
|
if (e) return e;
|
|
13918
14086
|
}
|
|
13919
14087
|
}
|
|
13920
14088
|
}
|
|
13921
|
-
function
|
|
14089
|
+
function Bs(e, t, n, r, i, a, o) {
|
|
13922
14090
|
let s = e.findIndex((e) => e.id === n);
|
|
13923
14091
|
if (s === -1) return 0;
|
|
13924
14092
|
let c = e[s], l = Math.round(r / i), u = e.find((e) => e.id === t), d = (o ?? u?.depth ?? c.depth) + l, f = e[s - 1], p = f ? f.depth + 1 : 0, m = e.slice(s + 1).find((e) => e.id !== t && !e.ancestorIds.includes(t) && !e.ancestorIds.includes(n)), h = m ? m.depth : 0;
|
|
13925
14093
|
return Math.min(Math.max(d, h), p, a);
|
|
13926
14094
|
}
|
|
13927
14095
|
// src/components/SortableList/SortableListHeader.tsx
|
|
13928
|
-
var
|
|
14096
|
+
var Vs = ({ children: t, className: n, columns: r, ...i }) => {
|
|
13929
14097
|
if (!r && !t) return null;
|
|
13930
14098
|
let a = r ? {
|
|
13931
14099
|
display: "grid",
|
|
@@ -13945,13 +14113,13 @@ var zs = ({ children: t, className: n, columns: r, ...i }) => {
|
|
|
13945
14113
|
}, r ? r.map((t) => /* @__PURE__ */ e.createElement("span", { key: t.id }, t.label)) : t));
|
|
13946
14114
|
};
|
|
13947
14115
|
// src/components/SortableList/useSortableTree.ts
|
|
13948
|
-
function
|
|
14116
|
+
function Hs({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r }) {
|
|
13949
14117
|
let i = n !== void 0, [a, o] = _(() => n ?? e ?? []), [s, c] = _(/* @__PURE__ */ new Set()), u = g(null), d = g(t);
|
|
13950
14118
|
t && !d.current && (u.current = {
|
|
13951
14119
|
items: i ? n : a,
|
|
13952
14120
|
expandedIds: s
|
|
13953
|
-
}), t || (u.current = null), d.current = t, process.env.NODE_ENV !== "production" && n !== void 0 && e !== void 0 &&
|
|
13954
|
-
let f = i ? n : a, p = h(() =>
|
|
14121
|
+
}), t || (u.current = null), d.current = t, process.env.NODE_ENV !== "production" && n !== void 0 && e !== void 0 && Ws("SortableList received both `items` and `defaultItems`. `items` will be used and `defaultItems` will be ignored.");
|
|
14122
|
+
let f = i ? n : a, p = h(() => Is(f, s), [f, s]), m = h(() => p.map((e) => e.id), [p]), v = l((e) => {
|
|
13955
14123
|
c((t) => {
|
|
13956
14124
|
let n = new Set(t);
|
|
13957
14125
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
@@ -13969,7 +14137,7 @@ function Bs({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r })
|
|
|
13969
14137
|
}, []),
|
|
13970
14138
|
flatNodes: p,
|
|
13971
14139
|
handleReorder: l((e) => {
|
|
13972
|
-
let t =
|
|
14140
|
+
let t = Ls(e);
|
|
13973
14141
|
i || o(t), r?.(t);
|
|
13974
14142
|
}, [i, r]),
|
|
13975
14143
|
resetToSnapshot: l(() => {
|
|
@@ -13981,23 +14149,23 @@ function Bs({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r })
|
|
|
13981
14149
|
toggleExpand: v
|
|
13982
14150
|
};
|
|
13983
14151
|
}
|
|
13984
|
-
var
|
|
13985
|
-
function
|
|
13986
|
-
|
|
14152
|
+
var Us = /* @__PURE__ */ new Set();
|
|
14153
|
+
function Ws(e) {
|
|
14154
|
+
Us.has(e) || (Us.add(e), console.warn(e));
|
|
13987
14155
|
}
|
|
13988
14156
|
// src/components/SortableList/SortableList.tsx
|
|
13989
|
-
var
|
|
14157
|
+
var Gs = 24, Ks = { droppable: { strategy: Ze.Always } }, qs = o(function({ children: n, className: r, columns: i, defaultItems: a, getItemLabel: o = (e) => String(e.id), isDragEnabled: c, isItemLocked: u = () => !1, isNestingLocked: d = () => !1, items: f, maxDepth: m = 0, onReorder: v, renderRow: y, reorderMode: b = "always", screenReaderInstructions: x, ...S }, C) {
|
|
13990
14158
|
let w = "pds-sortable-list", [T, E] = _(null), D = g(null), [O, k] = _(!1), A = g(!1), [j, M] = _(null), N = g(0), P = g(0), F = g("pointer"), I = g(0), L = g(null), [R, z] = _(0), ee = g(0), [B, V] = _(0), H = g(0), U = l((e, t) => {
|
|
13991
14159
|
if (m > 0 && (e.key === "ArrowLeft" || e.key === "ArrowRight")) {
|
|
13992
14160
|
e.preventDefault();
|
|
13993
14161
|
let n = e.key === "ArrowRight" ? 1 : -1, r = ee.current, i = Math.max(-m, Math.min(m, r + n)), a = i - r;
|
|
13994
14162
|
return ee.current = i, z(i), {
|
|
13995
|
-
x: t.currentCoordinates.x + a *
|
|
14163
|
+
x: t.currentCoordinates.x + a * Gs,
|
|
13996
14164
|
y: t.currentCoordinates.y
|
|
13997
14165
|
};
|
|
13998
14166
|
}
|
|
13999
14167
|
return at(e, t);
|
|
14000
|
-
}, [m]), W = b === "always" || b === "toggle" && (c ?? !1), { currentItems: G, expandItem: K, flatNodes: q, handleReorder: te, resetToSnapshot: J, sortableIds: ne, toggleExpand: re } =
|
|
14168
|
+
}, [m]), W = b === "always" || b === "toggle" && (c ?? !1), { currentItems: G, expandItem: K, flatNodes: q, handleReorder: te, resetToSnapshot: J, sortableIds: ne, toggleExpand: re } = Hs({
|
|
14001
14169
|
defaultItems: a,
|
|
14002
14170
|
isDragEnabled: W,
|
|
14003
14171
|
items: f,
|
|
@@ -14024,9 +14192,9 @@ var Us = 24, Ws = { droppable: { strategy: Ze.Always } }, Gs = o(function({ chil
|
|
|
14024
14192
|
oe,
|
|
14025
14193
|
X,
|
|
14026
14194
|
j
|
|
14027
|
-
]).size > 0, le = h(() => T ? q.find((e) => e.id === T) ?? null : null, [T, q]), ue = h(() => T ?
|
|
14195
|
+
]).size > 0, le = h(() => T ? q.find((e) => e.id === T) ?? null : null, [T, q]), ue = h(() => T ? zs(G, String(T)) ?? null : null, [T, G]), de = h(() => {
|
|
14028
14196
|
let e = le?.depth ?? 0;
|
|
14029
|
-
return !T || !j || O || m === 0 ? e :
|
|
14197
|
+
return !T || !j || O || m === 0 ? e : Bs(q, String(T), String(j), B * Gs, Gs, m);
|
|
14030
14198
|
}, [
|
|
14031
14199
|
T,
|
|
14032
14200
|
le,
|
|
@@ -14038,7 +14206,7 @@ var Us = 24, Ws = { droppable: { strategy: Ze.Always } }, Gs = o(function({ chil
|
|
|
14038
14206
|
]), fe = h(() => {
|
|
14039
14207
|
if (!T || O || de === 0 || j && oe(j)) return null;
|
|
14040
14208
|
let e = q.findIndex((e) => e.id === T);
|
|
14041
|
-
return e === -1 ? null :
|
|
14209
|
+
return e === -1 ? null : Js(q, e, de);
|
|
14042
14210
|
}, [
|
|
14043
14211
|
T,
|
|
14044
14212
|
q,
|
|
@@ -14084,19 +14252,19 @@ var Us = 24, Ws = { droppable: { strategy: Ze.Always } }, Gs = o(function({ chil
|
|
|
14084
14252
|
}, [q, X]), ge = l((e) => {
|
|
14085
14253
|
let t = e.delta.x;
|
|
14086
14254
|
if (P.current = t, A.current || m === 0) return;
|
|
14087
|
-
let n = Math.floor(t /
|
|
14088
|
-
(n > r || n < r && t < r *
|
|
14255
|
+
let n = Math.floor(t / Gs), r = H.current;
|
|
14256
|
+
(n > r || n < r && t < r * Gs - Gs * .4) && (H.current = n, V(n));
|
|
14089
14257
|
}, [m]), _e = l((e) => {
|
|
14090
14258
|
let { active: t, over: n } = e, r = A.current, i = ee.current, a = H.current;
|
|
14091
14259
|
E(null), D.current = null, k(!1), A.current = !1, M(null), H.current = 0, V(0), L.current && (K(L.current), L.current = null);
|
|
14092
|
-
let o = q.findIndex((e) => e.id === t.id), s = r ? i *
|
|
14260
|
+
let o = q.findIndex((e) => e.id === t.id), s = r ? i * Gs : a * Gs, c = !n || t.id === n.id, l = n?.id ?? null;
|
|
14093
14261
|
if (r && i > 0 && c && o > 0 && (l = q[o - 1].id), !l || t.id === l) {
|
|
14094
14262
|
if (o === -1) return;
|
|
14095
14263
|
let e = q[o];
|
|
14096
14264
|
if (!e) return;
|
|
14097
|
-
let n =
|
|
14265
|
+
let n = Bs(q, String(t.id), String(t.id), s, Gs, m);
|
|
14098
14266
|
if (n === e.depth) return;
|
|
14099
|
-
let r = [...q], [i] = r.splice(o, 1), a =
|
|
14267
|
+
let r = [...q], [i] = r.splice(o, 1), a = Js(r, o, n);
|
|
14100
14268
|
if (a && ae.has(a)) return;
|
|
14101
14269
|
let c = {
|
|
14102
14270
|
...i,
|
|
@@ -14118,9 +14286,9 @@ var Us = 24, Ws = { droppable: { strategy: Ze.Always } }, Gs = o(function({ chil
|
|
|
14118
14286
|
let e = q[u];
|
|
14119
14287
|
_ = Math.min(e.depth + 1, m), v = String(l);
|
|
14120
14288
|
} else {
|
|
14121
|
-
_ =
|
|
14289
|
+
_ = Bs(d, String(t.id), String(l), s, Gs, m, p.depth);
|
|
14122
14290
|
let e = d[g];
|
|
14123
|
-
v = e && e.depth === _ - 1 ? String(l) :
|
|
14291
|
+
v = e && e.depth === _ - 1 ? String(l) : Js(d, g, _);
|
|
14124
14292
|
}
|
|
14125
14293
|
if (v && ae.has(v)) return;
|
|
14126
14294
|
let y = {
|
|
@@ -14143,24 +14311,24 @@ var Us = 24, Ws = { droppable: { strategy: Ze.Always } }, Gs = o(function({ chil
|
|
|
14143
14311
|
E(null), D.current = null, k(!1), A.current = !1, M(null), P.current = 0, H.current = 0, V(0), ee.current = 0, z(0), L.current && (K(L.current), L.current = null);
|
|
14144
14312
|
}, [K]), ye = h(() => ({
|
|
14145
14313
|
onDragStart({ active: e }) {
|
|
14146
|
-
let t = q.find((t) => t.id === e.id), n =
|
|
14314
|
+
let t = q.find((t) => t.id === e.id), n = zs(G, String(e.id));
|
|
14147
14315
|
return `Picked up ${n ? o(n) : String(e.id)}. Current position: ${t ? q.indexOf(t) + 1 : "?"} of ${q.length} at depth ${t?.depth ?? 0}.`;
|
|
14148
14316
|
},
|
|
14149
14317
|
onDragOver({ active: e, over: t }) {
|
|
14150
14318
|
if (!t) return;
|
|
14151
14319
|
let n = q.findIndex((e) => e.id === t.id);
|
|
14152
14320
|
if (n === -1) return;
|
|
14153
|
-
let r =
|
|
14321
|
+
let r = zs(G, String(e.id)), i = r ? o(r) : String(e.id), a = Bs(q, String(e.id), String(t.id), P.current, Gs, m);
|
|
14154
14322
|
return `Moving ${i}. Target position: ${n + 1} of ${q.length} at depth ${a}.`;
|
|
14155
14323
|
},
|
|
14156
14324
|
onDragEnd({ active: e, over: t }) {
|
|
14157
|
-
let n =
|
|
14325
|
+
let n = zs(G, String(e.id)), r = n ? o(n) : String(e.id);
|
|
14158
14326
|
if (!t || e.id === t.id) return `${r} dropped. No change in position.`;
|
|
14159
|
-
let i = q.findIndex((e) => e.id === t.id), a =
|
|
14327
|
+
let i = q.findIndex((e) => e.id === t.id), a = Bs(q, String(e.id), String(t.id), P.current, Gs, m);
|
|
14160
14328
|
return `${r} dropped at position ${i + 1} of ${q.length} at depth ${a}.`;
|
|
14161
14329
|
},
|
|
14162
14330
|
onDragCancel({ active: e }) {
|
|
14163
|
-
let t = q.find((t) => t.id === e.id), n =
|
|
14331
|
+
let t = q.find((t) => t.id === e.id), n = zs(G, String(e.id));
|
|
14164
14332
|
return `Sorting cancelled. ${n ? o(n) : String(e.id)} returned to position ${t ? q.indexOf(t) + 1 : "?"} of ${q.length}.`;
|
|
14165
14333
|
}
|
|
14166
14334
|
}), [
|
|
@@ -14168,14 +14336,14 @@ var Us = 24, Ws = { droppable: { strategy: Ze.Always } }, Gs = o(function({ chil
|
|
|
14168
14336
|
q,
|
|
14169
14337
|
o,
|
|
14170
14338
|
m
|
|
14171
|
-
]), be = { columns: i }, xe = t.map(n, (t) => s(t) && t.type ===
|
|
14339
|
+
]), be = { columns: i }, xe = t.map(n, (t) => s(t) && t.type === Vs ? e.cloneElement(t, be) : t);
|
|
14172
14340
|
return /* @__PURE__ */ e.createElement(Je, {
|
|
14173
14341
|
accessibility: {
|
|
14174
14342
|
announcements: ye,
|
|
14175
14343
|
...x ? { screenReaderInstructions: { draggable: x } } : {}
|
|
14176
14344
|
},
|
|
14177
14345
|
collisionDetection: me,
|
|
14178
|
-
measuring:
|
|
14346
|
+
measuring: Ks,
|
|
14179
14347
|
onDragCancel: ve,
|
|
14180
14348
|
onDragEnd: _e,
|
|
14181
14349
|
onDragMove: ge,
|
|
@@ -14250,13 +14418,13 @@ var Us = 24, Ws = { droppable: { strategy: Ze.Always } }, Gs = o(function({ chil
|
|
|
14250
14418
|
return s(a) ? e.cloneElement(a, o) : a;
|
|
14251
14419
|
})()) : null));
|
|
14252
14420
|
});
|
|
14253
|
-
function
|
|
14421
|
+
function Js(e, t, n) {
|
|
14254
14422
|
if (n === 0) return null;
|
|
14255
14423
|
for (let r = t - 1; r >= 0; r--) if (e[r].depth === n - 1) return e[r].id;
|
|
14256
14424
|
return null;
|
|
14257
14425
|
}
|
|
14258
14426
|
// src/components/SortableList/SortableRow.tsx
|
|
14259
|
-
var
|
|
14427
|
+
var Ys = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a = !1, id: o, isDragActive: s = !1, isDragging: c = !1, isDropTarget: l = !1, isExpanded: u = !1, isLocked: d = !1, isProjectedParent: f = !1, onToggleExpand: p, projectedDepthDelta: m, ...h }) => {
|
|
14260
14428
|
let { attributes: g, isDragging: _, listeners: v, setNodeRef: y, transform: b, transition: x } = ot({
|
|
14261
14429
|
attributes: {
|
|
14262
14430
|
role: "listitem",
|
|
@@ -14311,7 +14479,7 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14311
14479
|
key: t.id,
|
|
14312
14480
|
className: `${w}__cell`
|
|
14313
14481
|
}, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, t.label, ": "), j[t.id] ?? null)) : t));
|
|
14314
|
-
},
|
|
14482
|
+
}, Xs = ({ actionCallback: t, actionIcon: n = "barsFilter", actionLabel: r, background: i = "default", className: a, description: o, icon: s, iconColor: c = "neutral", isActive: l = !1, isLoading: u = !1, stat: d, title: p, ...m }) => {
|
|
14315
14483
|
let h = "pds-stat-panel", g = i === "default" ? null : `${h}--${i}`, _ = c === "neutral" ? null : `${h}--${c}`, v = l ? `${h}--active` : null, y = f(), b = n && r && t;
|
|
14316
14484
|
return /* @__PURE__ */ e.createElement("div", {
|
|
14317
14485
|
"aria-labelledby": y,
|
|
@@ -14348,11 +14516,11 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14348
14516
|
size: { width: 6 },
|
|
14349
14517
|
textSize: "xl"
|
|
14350
14518
|
}) : d && /* @__PURE__ */ e.createElement("span", { className: `${h}__stat` }, d)), o && /* @__PURE__ */ e.createElement("p", { className: `${h}__description` }, o));
|
|
14351
|
-
},
|
|
14519
|
+
}, Zs = [
|
|
14352
14520
|
"default",
|
|
14353
14521
|
"working",
|
|
14354
14522
|
"checked"
|
|
14355
|
-
],
|
|
14523
|
+
], Qs = ({ alignment: t = "left", className: n, componentWidth: r, displayType: i = "label", labelStrings: a = {}, lastChecked: o, onCheck: s, state: c = "default", ...l }) => {
|
|
14356
14524
|
let u = i === "icon-button", d = {
|
|
14357
14525
|
checkForUpdates: "Check for updates",
|
|
14358
14526
|
checking: "Checking...",
|
|
@@ -14405,7 +14573,7 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14405
14573
|
triggerIconColor: "default",
|
|
14406
14574
|
triggerIconSize: "xs"
|
|
14407
14575
|
}), t === "left" && y));
|
|
14408
|
-
},
|
|
14576
|
+
}, $s = ({ className: t, label: n = null, linkContent: r, type: i = "neutral", ...a }) => {
|
|
14409
14577
|
let o = "pds-status-indicator", c = `${o}--${i}`, l = /* @__PURE__ */ e.createElement(e.Fragment, null, i === "working" ? /* @__PURE__ */ e.createElement(Fn, {
|
|
14410
14578
|
className: `${o}__spinner`,
|
|
14411
14579
|
size: "m"
|
|
@@ -14422,23 +14590,23 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14422
14590
|
]),
|
|
14423
14591
|
...a
|
|
14424
14592
|
}, r ? d : l);
|
|
14425
|
-
},
|
|
14593
|
+
}, ec = {
|
|
14426
14594
|
frozen: "snowflake",
|
|
14427
14595
|
restricted: "lock"
|
|
14428
|
-
},
|
|
14596
|
+
}, tc = {
|
|
14429
14597
|
frozen: "Frozen",
|
|
14430
14598
|
restricted: "Restricted"
|
|
14431
|
-
},
|
|
14599
|
+
}, nc = ({ className: t, label: n, status: r, ...i }) => {
|
|
14432
14600
|
let a = "pds-status-scrim";
|
|
14433
14601
|
return /* @__PURE__ */ e.createElement("div", {
|
|
14434
14602
|
className: Z([a, t ?? ""]),
|
|
14435
14603
|
...i
|
|
14436
14604
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
14437
14605
|
className: `${a}__icon`,
|
|
14438
|
-
iconName:
|
|
14606
|
+
iconName: ec[r],
|
|
14439
14607
|
size: "3xl"
|
|
14440
|
-
}), /* @__PURE__ */ e.createElement("span", { className: `${a}__label` }, n ??
|
|
14441
|
-
},
|
|
14608
|
+
}), /* @__PURE__ */ e.createElement("span", { className: `${a}__label` }, n ?? tc[r]));
|
|
14609
|
+
}, rc = ({ className: t, contentAlignment: n = "indented", layoutDirection: r = "vertical", steps: i, ...a }) => {
|
|
14442
14610
|
let o = "pds-step-list", s = `${o}--${n}`, c = r === "horizontal" ? `${o}--horizontal` : "", l = i.map(({ content: t, header: r }, i) => {
|
|
14443
14611
|
let a = /* @__PURE__ */ e.createElement("div", { className: `${o}__number` }, /* @__PURE__ */ e.createElement("span", null, i + 1)), s = /* @__PURE__ */ e.createElement("div", { className: `${o}__header` }, r), c = t ? /* @__PURE__ */ e.createElement("div", { className: `${o}__content` }, t) : null, l = `${o}__step`;
|
|
14444
14612
|
return /* @__PURE__ */ e.createElement("li", {
|
|
@@ -14456,7 +14624,7 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14456
14624
|
style: r === "horizontal" ? { "--step-list-columns": i.length } : void 0,
|
|
14457
14625
|
...a
|
|
14458
14626
|
}, l);
|
|
14459
|
-
},
|
|
14627
|
+
}, ic = ({ className: t, steps: n, translatableLabels: r = {
|
|
14460
14628
|
step: "Step",
|
|
14461
14629
|
completed: "completed",
|
|
14462
14630
|
hasError: "has an error",
|
|
@@ -14520,7 +14688,7 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14520
14688
|
key: t.id,
|
|
14521
14689
|
className: `${o}__step`,
|
|
14522
14690
|
id: `${t.id}--mobile`
|
|
14523
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__progress-indicator` }, /* @__PURE__ */ e.createElement(
|
|
14691
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__progress-indicator` }, /* @__PURE__ */ e.createElement(Ds, {
|
|
14524
14692
|
innerLabel: n,
|
|
14525
14693
|
label: "Step progress",
|
|
14526
14694
|
percentage: i,
|
|
@@ -14546,7 +14714,7 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14546
14714
|
"data-steps": u,
|
|
14547
14715
|
...i
|
|
14548
14716
|
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__steps` }, p)));
|
|
14549
|
-
},
|
|
14717
|
+
}, ac = ({ _isFirstStep: t, backButton: n, forwardButton: r, hasError: i, id: a, isComplete: o, isCurrent: s, label: c, stepContent: l, ...u }) => {
|
|
14550
14718
|
let d = "pds-vert-stepper", f = `${d}__step`, p = [f];
|
|
14551
14719
|
return s && p.push(`${f}--current`), o && p.push(`${f}--complete`), i && p.push(`${f}--error`), /* @__PURE__ */ e.createElement("li", {
|
|
14552
14720
|
className: Z([...p]),
|
|
@@ -14572,14 +14740,14 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14572
14740
|
size: "s",
|
|
14573
14741
|
variant: "highlight"
|
|
14574
14742
|
})))));
|
|
14575
|
-
},
|
|
14743
|
+
}, oc = ({ className: t, labelStrings: n = {
|
|
14576
14744
|
step: "Step",
|
|
14577
14745
|
completed: "completed",
|
|
14578
14746
|
hasError: "has an error"
|
|
14579
14747
|
}, steps: r, ...i }) => {
|
|
14580
14748
|
let a = "pds-vert-stepper", o = r.length, s = r.findIndex((e) => e.isCurrent), c = r.map((t, r) => {
|
|
14581
14749
|
let i = r + 1, a = r === s, c = r === 0, l = t.isComplete || !1, u = t.hasError && a, d = `${n.step} ${i}`;
|
|
14582
|
-
return l && (d = `${n.step} ${i}, ${n.completed}`), u && (d = `${n.step} ${i}, ${n.hasError}`), /* @__PURE__ */ e.createElement(
|
|
14750
|
+
return l && (d = `${n.step} ${i}, ${n.completed}`), u && (d = `${n.step} ${i}, ${n.hasError}`), /* @__PURE__ */ e.createElement(ac, {
|
|
14583
14751
|
key: `s${i}`,
|
|
14584
14752
|
_isFirstStep: c,
|
|
14585
14753
|
"aria-current": a ? "step" : null,
|
|
@@ -14600,12 +14768,12 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14600
14768
|
className: Z([a, t ?? ""]),
|
|
14601
14769
|
...i
|
|
14602
14770
|
}, /* @__PURE__ */ e.createElement("ol", { className: `${a}__steps` }, r && c));
|
|
14603
|
-
},
|
|
14771
|
+
}, sc = typeof window < "u" ? m : d, cc = (e) => {
|
|
14604
14772
|
let t = g(e);
|
|
14605
|
-
return
|
|
14773
|
+
return sc(() => {
|
|
14606
14774
|
t.current = e;
|
|
14607
14775
|
}), l((...e) => t.current(...e), []);
|
|
14608
|
-
},
|
|
14776
|
+
}, lc = c(function({ baseClass: t, checkboxId: n, columns: r, disabledReason: i, getRowClassName: a, hasSelection: o, isInspectable: s, isInspected: c, isSelectable: l, isSelected: u, onInspect: d, onToggleSelect: f, row: p, rowId: m, selectLabel: h }) {
|
|
14609
14777
|
return /* @__PURE__ */ e.createElement("tr", {
|
|
14610
14778
|
"aria-selected": s ? c : void 0,
|
|
14611
14779
|
className: Z([
|
|
@@ -14618,7 +14786,7 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14618
14786
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), d(p, m));
|
|
14619
14787
|
} : void 0,
|
|
14620
14788
|
tabIndex: s ? 0 : void 0
|
|
14621
|
-
}, o && /* @__PURE__ */ e.createElement("td", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(
|
|
14789
|
+
}, o && /* @__PURE__ */ e.createElement("td", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(Vi, {
|
|
14622
14790
|
checked: u,
|
|
14623
14791
|
disabled: !l,
|
|
14624
14792
|
id: n,
|
|
@@ -14630,7 +14798,7 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14630
14798
|
key: `${m}-${t.id}`,
|
|
14631
14799
|
className: t.cellClassName
|
|
14632
14800
|
}, p[t.id])));
|
|
14633
|
-
}),
|
|
14801
|
+
}), uc = c(function({ baseClass: t, cardColumns: n, cardLayout: r, disabledReason: i, getRowClassName: a, hasSelection: o, isInspected: s, isSelectable: c, isSelected: l, isTappable: u, onInspect: d, onToggleSelect: f, row: p, rowId: m, selectLabel: h }) {
|
|
14634
14802
|
let [g, ..._] = r === "inline" ? [void 0, ...n] : n, v = /* @__PURE__ */ e.createElement("div", { className: `${t}__card-main` }, o && /* @__PURE__ */ e.createElement("span", {
|
|
14635
14803
|
"aria-hidden": "true",
|
|
14636
14804
|
className: "pds-checkbox"
|
|
@@ -14665,8 +14833,8 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14665
14833
|
onClick: () => d(p, m),
|
|
14666
14834
|
type: "button"
|
|
14667
14835
|
}, v) : /* @__PURE__ */ e.createElement("div", { className: y }, v));
|
|
14668
|
-
}),
|
|
14669
|
-
let de = "pds-table", fe = f(), pe = f(), me = g(null), he =
|
|
14836
|
+
}), dc = ({ cardLayout: t = "stacked", className: n, closeDetailPanelLabel: r = "Close detail panel", columns: i, currentPage: a, defaultSortKey: o, defaultSortOrder: s = "asc", density: c = "standard", detailPanelNav: l = !0, detailPanelTitle: u, detailPanelWidth: p, emptyState: m, emptyStateAction: v, emptyStateHeading: y = "No results found.", emptyStateMessage: b, footer: x, getDetailPanelPositionLabel: S = (e, t) => `${e} of ${t}`, getPageSizeLabel: C = (e) => `Show ${e} rows per page`, getRowClassName: w, getRowId: T, getRowSelectDisabledReason: E, getSelectRowLabel: D = (e, t) => `Select row ${t}`, getSortLabel: O = (e) => `Sort by ${e}`, hasDesktopDetailPanel: k = !1, hasMobileCards: A = !1, hasMobileDetailSheet: j = !0, hasPanel: M = !1, inspectedRowId: N, isLoading: P = !1, isRowSelectable: F = () => !0, itemsPerPage: I, loadingRowCount: L = 5, maxHeight: R, minHeight: z, nextDetailPanelRowLabel: ee = "Next row", onDetailPanelClose: B, onDetailPanelNext: V, onDetailPanelPrev: H, onPageChange: U, onPageSizeChange: W, onRowInspect: G, onRowSelectionChange: K, onSort: q, pageSizeOptions: te, pageSizeSelectLabel: J = "Rows per page", paginationLabels: ne, prevDetailPanelRowLabel: re = "Previous row", renderDetailPanel: ie, renderDetailPanelFooter: Y, rowData: X, selectAllLabel: ae = "Select all rows", selectedRows: oe, sortKey: se, sortOrder: ce, totalItemCount: le, ...ue }) => {
|
|
14837
|
+
let de = "pds-table", fe = f(), pe = f(), me = g(null), he = Zi() === "sm" && A, ge = M && !he, _e = h(() => i.some((e) => e.cardVisible) ? i.filter((e) => e.cardVisible) : i.slice(0, 1), [i]), ve = ie !== void 0 || G === void 0 && j, ye = ie !== void 0 || G !== void 0 || j, be = q !== void 0, xe = U !== void 0, Se = W !== void 0, Ce = xe || I !== void 0 || te !== void 0, we = X.length > 0 || xe && (le ?? 0) > 0, [Te, Ee] = _({
|
|
14670
14838
|
key: o ?? "",
|
|
14671
14839
|
order: o === void 0 ? "asc" : s
|
|
14672
14840
|
}), De = h(() => {
|
|
@@ -14698,7 +14866,7 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14698
14866
|
Pe,
|
|
14699
14867
|
T,
|
|
14700
14868
|
qe
|
|
14701
|
-
]), Xe = Ye >= 0 ? De[Ye] : null, Ze =
|
|
14869
|
+
]), Xe = Ye >= 0 ? De[Ye] : null, Ze = cc((e, t) => {
|
|
14702
14870
|
(he ? ve : ie !== void 0 && k) && N === void 0 && Ne(t), G?.(e, t);
|
|
14703
14871
|
}), Qe = () => {
|
|
14704
14872
|
N === void 0 && Ne(null), Pe && B?.();
|
|
@@ -14779,7 +14947,7 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14779
14947
|
}, pt = lt.reduce((e, t, n) => {
|
|
14780
14948
|
let r = Je(t, n);
|
|
14781
14949
|
return F(t, r) && e.push(r), e;
|
|
14782
|
-
}, []), mt = pt.length > 0 && pt.every((e) => Ke.has(e)), ht = !mt && pt.some((e) => Ke.has(e)), gt =
|
|
14950
|
+
}, []), mt = pt.length > 0 && pt.every((e) => Ke.has(e)), ht = !mt && pt.some((e) => Ke.has(e)), gt = cc((e) => {
|
|
14783
14951
|
let t = new Set(Ke);
|
|
14784
14952
|
t.has(e) ? t.delete(e) : t.add(e), He || We(t), K?.(Array.from(t));
|
|
14785
14953
|
}), _t = () => {
|
|
@@ -14814,7 +14982,7 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14814
14982
|
};
|
|
14815
14983
|
}, St = (t, n) => {
|
|
14816
14984
|
let r = Je(t, n);
|
|
14817
|
-
return /* @__PURE__ */ e.createElement(
|
|
14985
|
+
return /* @__PURE__ */ e.createElement(lc, {
|
|
14818
14986
|
key: `row-${r}`,
|
|
14819
14987
|
baseClass: de,
|
|
14820
14988
|
checkboxId: `${pe}-row-${r}`,
|
|
@@ -14840,10 +15008,10 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14840
15008
|
linkContent: v,
|
|
14841
15009
|
message: b
|
|
14842
15010
|
});
|
|
14843
|
-
return /* @__PURE__ */ e.createElement("li", null, M ? /* @__PURE__ */ e.createElement(
|
|
15011
|
+
return /* @__PURE__ */ e.createElement("li", null, M ? /* @__PURE__ */ e.createElement(fs, { padding: "none" }, t) : t);
|
|
14844
15012
|
}, Et = (n, r) => {
|
|
14845
15013
|
let i = Je(n, r);
|
|
14846
|
-
return /* @__PURE__ */ e.createElement(
|
|
15014
|
+
return /* @__PURE__ */ e.createElement(uc, {
|
|
14847
15015
|
key: `card-${i}`,
|
|
14848
15016
|
baseClass: de,
|
|
14849
15017
|
cardColumns: _e,
|
|
@@ -14884,7 +15052,7 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14884
15052
|
n
|
|
14885
15053
|
]),
|
|
14886
15054
|
...ue
|
|
14887
|
-
}, /* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, Ve && /* @__PURE__ */ e.createElement("th", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(
|
|
15055
|
+
}, /* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, Ve && /* @__PURE__ */ e.createElement("th", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(Vi, {
|
|
14888
15056
|
checked: mt,
|
|
14889
15057
|
id: pe,
|
|
14890
15058
|
indeterminate: ht,
|
|
@@ -14921,7 +15089,7 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14921
15089
|
showLabel: !1,
|
|
14922
15090
|
size: "s",
|
|
14923
15091
|
value: String(ze)
|
|
14924
|
-
}), /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination-controls" }, /* @__PURE__ */ e.createElement(
|
|
15092
|
+
}), /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination-controls" }, /* @__PURE__ */ e.createElement(ts, {
|
|
14925
15093
|
currentPage: xe ? a ?? 1 : Oe,
|
|
14926
15094
|
itemsPerPage: ze,
|
|
14927
15095
|
labelStrings: ne,
|
|
@@ -14948,7 +15116,7 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14948
15116
|
onClick: et,
|
|
14949
15117
|
size: "s",
|
|
14950
15118
|
variant: "standard"
|
|
14951
|
-
})))), he && /* @__PURE__ */ e.createElement(
|
|
15119
|
+
})))), he && /* @__PURE__ */ e.createElement(Ko, {
|
|
14952
15120
|
closeButtonLabel: r,
|
|
14953
15121
|
isOpen: Ie,
|
|
14954
15122
|
setIsOpen: (e) => {
|
|
@@ -14975,8 +15143,8 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14975
15143
|
size: "s",
|
|
14976
15144
|
variant: "standard"
|
|
14977
15145
|
}))))));
|
|
14978
|
-
return ge ? /* @__PURE__ */ e.createElement(
|
|
14979
|
-
},
|
|
15146
|
+
return ge ? /* @__PURE__ */ e.createElement(fs, { padding: "none" }, kt) : kt;
|
|
15147
|
+
}, fc = i(!1), pc = () => u(fc), mc = [
|
|
14980
15148
|
" ",
|
|
14981
15149
|
"/",
|
|
14982
15150
|
".",
|
|
@@ -14994,7 +15162,7 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14994
15162
|
"=",
|
|
14995
15163
|
"|",
|
|
14996
15164
|
"~"
|
|
14997
|
-
],
|
|
15165
|
+
], hc = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), gc = (e) => {
|
|
14998
15166
|
let t = [];
|
|
14999
15167
|
return e.forEach((e) => {
|
|
15000
15168
|
let { id: n, innerText: r } = e;
|
|
@@ -15007,18 +15175,18 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15007
15175
|
title: r
|
|
15008
15176
|
});
|
|
15009
15177
|
}), t;
|
|
15010
|
-
},
|
|
15178
|
+
}, _c = (e, t, n) => {
|
|
15011
15179
|
let [r, i] = _([]);
|
|
15012
15180
|
return d(() => {
|
|
15013
15181
|
let r = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = () => {
|
|
15014
15182
|
let e = Array.from(document.querySelectorAll(r));
|
|
15015
15183
|
e.forEach((e) => {
|
|
15016
|
-
|
|
15017
|
-
e.id.includes(t) && (e.id = e.id.replace(new RegExp(
|
|
15184
|
+
mc.forEach((t) => {
|
|
15185
|
+
e.id.includes(t) && (e.id = e.id.replace(new RegExp(hc(t), "g"), "-"));
|
|
15018
15186
|
});
|
|
15019
15187
|
}), e.forEach((e, t) => {
|
|
15020
15188
|
e.id || (e.id = `${n}-item-${t}`);
|
|
15021
|
-
}), i(
|
|
15189
|
+
}), i(gc(e));
|
|
15022
15190
|
};
|
|
15023
15191
|
a();
|
|
15024
15192
|
let o = document.getElementById(e);
|
|
@@ -15034,7 +15202,7 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15034
15202
|
t,
|
|
15035
15203
|
n
|
|
15036
15204
|
]), { nestedHeadings: r };
|
|
15037
|
-
},
|
|
15205
|
+
}, vc = (e, t) => {
|
|
15038
15206
|
let [n, r] = _(void 0), i = g({});
|
|
15039
15207
|
return d(() => {
|
|
15040
15208
|
let n = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = Array.from(document.querySelectorAll(n));
|
|
@@ -15057,7 +15225,7 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15057
15225
|
o.disconnect(), r(void 0);
|
|
15058
15226
|
};
|
|
15059
15227
|
}, [e, t]), n;
|
|
15060
|
-
},
|
|
15228
|
+
}, yc = ({ activeID: t, baseClass: n, headings: r, onLinkClick: i }) => /* @__PURE__ */ e.createElement("ul", { className: `${n}__list ${n}__list--top-level` }, r.map((r) => /* @__PURE__ */ e.createElement("li", {
|
|
15061
15229
|
key: r.id,
|
|
15062
15230
|
className: `${n}__list-item`
|
|
15063
15231
|
}, /* @__PURE__ */ e.createElement("a", {
|
|
@@ -15073,8 +15241,8 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15073
15241
|
className: Z([`${n}__link`, r.id === t ? `${n}__link--active` : null]),
|
|
15074
15242
|
href: `#${r.id}`,
|
|
15075
15243
|
onClick: (e) => i(e, r.id)
|
|
15076
|
-
}, r.title))))))),
|
|
15077
|
-
let u = "pds-toc", d = f(), p = ln(), m =
|
|
15244
|
+
}, r.title))))))), bc = ({ appendIds: t = !1, ariaLabel: n = "Table of contents", className: r, headingLevel: i = "h2", headingText: a = "Table of contents", ignoreClass: o = "pds-toc-ignore", showHeading: s = !1, sourceID: c = "pds-toc-source", ...l }) => {
|
|
15245
|
+
let u = "pds-toc", d = f(), p = ln(), m = pc(), h = p || m, { nestedHeadings: g } = _c(c, o, d), _ = vc(c, o), v = (e) => {
|
|
15078
15246
|
typeof window < "u" && window.location.hash !== `#${e}` && window.history.pushState({}, "", `#${e}`);
|
|
15079
15247
|
}, y = (e) => {
|
|
15080
15248
|
document.querySelector(`#${e}`)?.scrollIntoView({
|
|
@@ -15103,7 +15271,7 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15103
15271
|
r
|
|
15104
15272
|
]),
|
|
15105
15273
|
...l
|
|
15106
|
-
}, /* @__PURE__ */ e.createElement(
|
|
15274
|
+
}, /* @__PURE__ */ e.createElement(ro, {
|
|
15107
15275
|
headingText: s ? a : void 0,
|
|
15108
15276
|
menuItems: i,
|
|
15109
15277
|
selectTextFallback: a || n
|
|
@@ -15117,13 +15285,13 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15117
15285
|
baseClass: u,
|
|
15118
15286
|
className: `${s ? "" : "visually-hidden"}`,
|
|
15119
15287
|
level: i
|
|
15120
|
-
}, a), /* @__PURE__ */ e.createElement(
|
|
15288
|
+
}, a), /* @__PURE__ */ e.createElement(yc, {
|
|
15121
15289
|
activeID: _,
|
|
15122
15290
|
baseClass: u,
|
|
15123
15291
|
headings: g,
|
|
15124
15292
|
onLinkClick: b
|
|
15125
15293
|
}));
|
|
15126
|
-
},
|
|
15294
|
+
}, xc = ({ ariaLabel: t, className: n, defaultSelected: r = 0, onActiveTabChange: i = () => {}, selectedTab: a, tabs: o, ...s }) => {
|
|
15127
15295
|
let c = "pds-tabs", [l, u] = _(a ?? r);
|
|
15128
15296
|
d(() => {
|
|
15129
15297
|
a !== void 0 && u(a);
|
|
@@ -15231,7 +15399,7 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15231
15399
|
className: `${c}__panel-content`,
|
|
15232
15400
|
hidden: o !== l
|
|
15233
15401
|
}, r)))));
|
|
15234
|
-
},
|
|
15402
|
+
}, Sc = [
|
|
15235
15403
|
"orange",
|
|
15236
15404
|
"stone",
|
|
15237
15405
|
"gold",
|
|
@@ -15245,7 +15413,7 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15245
15413
|
"magenta",
|
|
15246
15414
|
"rose",
|
|
15247
15415
|
"red"
|
|
15248
|
-
],
|
|
15416
|
+
], Cc = [
|
|
15249
15417
|
"orange-solid",
|
|
15250
15418
|
"teal-solid",
|
|
15251
15419
|
"indigo-solid",
|
|
@@ -15255,14 +15423,14 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15255
15423
|
"lime-solid",
|
|
15256
15424
|
"sky-solid",
|
|
15257
15425
|
"slate-solid"
|
|
15258
|
-
],
|
|
15426
|
+
], wc = [
|
|
15259
15427
|
"success-solid",
|
|
15260
15428
|
"warning-solid",
|
|
15261
15429
|
"critical-solid",
|
|
15262
15430
|
"info-solid",
|
|
15263
15431
|
"discovery-solid"
|
|
15264
|
-
],
|
|
15265
|
-
let [f, p] = _(!0), m = "pds-tag", h = c ? `${m}--${c}` : `${m}--${
|
|
15432
|
+
], Tc = [...Cc, ...wc], Ec = [...Sc, ...Cc], Dc = (e) => Ec[parseInt(ge(e), 16) % Ec.length], Oc = (e, t) => e.length > t ? e.slice(0, t) + " ..." : e, kc = ({ className: t, isRemovable: n, linkContent: r, onRemove: i, removeLabel: a = "Remove tag", size: o = "s", tagColor: c, tagLabel: l, truncationLength: u = 18, ...d }) => {
|
|
15433
|
+
let [f, p] = _(!0), m = "pds-tag", h = c ? `${m}--${c}` : `${m}--${Dc(l)}`, g = `${m}--${o}`, v = f ? null : "pds-tag--hide", y = () => {
|
|
15266
15434
|
p((e) => !e);
|
|
15267
15435
|
}, b, x, S;
|
|
15268
15436
|
if (r && !n && s(r)) {
|
|
@@ -15284,7 +15452,7 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15284
15452
|
}, /* @__PURE__ */ e.createElement("span", {
|
|
15285
15453
|
className: `${m}__label`,
|
|
15286
15454
|
title: l
|
|
15287
|
-
}, u > 0 ?
|
|
15455
|
+
}, u > 0 ? Oc(l, u) : l), n ? /* @__PURE__ */ e.createElement("button", {
|
|
15288
15456
|
"aria-label": `${a}: ${l}`,
|
|
15289
15457
|
className: `${m}__remove`,
|
|
15290
15458
|
onClick: () => {
|
|
@@ -15296,7 +15464,48 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15296
15464
|
iconName: "xmark",
|
|
15297
15465
|
size: "m"
|
|
15298
15466
|
})) : null);
|
|
15299
|
-
},
|
|
15467
|
+
}, Ac = i({
|
|
15468
|
+
subtitlePosition: "below",
|
|
15469
|
+
variant: "card"
|
|
15470
|
+
}), jc = ({ children: t, className: n, subtitlePosition: r = "below", variant: i = "card", ...a }) => {
|
|
15471
|
+
let o = "pds-timeline", s = i === "flat" ? `${o}--flat` : null, c = h(() => ({
|
|
15472
|
+
subtitlePosition: r,
|
|
15473
|
+
variant: i
|
|
15474
|
+
}), [r, i]);
|
|
15475
|
+
return /* @__PURE__ */ e.createElement(Ac.Provider, { value: c }, /* @__PURE__ */ e.createElement("ol", {
|
|
15476
|
+
className: Z([
|
|
15477
|
+
o,
|
|
15478
|
+
s,
|
|
15479
|
+
n ?? ""
|
|
15480
|
+
]),
|
|
15481
|
+
...a
|
|
15482
|
+
}, t));
|
|
15483
|
+
}, Mc = ({ badgeColor: t = "info-muted", badgeIcon: n, badgeLabel: r, children: i, className: a, headingLevel: o = "h3", isActive: s = !1, sideLabel: c, subtitle: l, title: d, variant: f, ...p }) => {
|
|
15484
|
+
let m = "pds-timeline-item", { subtitlePosition: h, variant: g } = u(Ac), _ = f ?? g, v = !!(l || r), y = v && h === "above", b = s ? `${m}--active` : null, x = _ === "card" ? `${m}--card` : null, S = c ? `${m}--side-label` : null, C = y ? `${m}--subtitle-above` : null, w = v ? /* @__PURE__ */ e.createElement("div", { className: `${m}__subtitle` }, l && /* @__PURE__ */ e.createElement("span", null, l), r && /* @__PURE__ */ e.createElement(Mt, {
|
|
15485
|
+
color: t,
|
|
15486
|
+
iconName: n,
|
|
15487
|
+
label: r,
|
|
15488
|
+
size: "xs"
|
|
15489
|
+
})) : null, T = /* @__PURE__ */ e.createElement(Bn, {
|
|
15490
|
+
className: `${m}__title`,
|
|
15491
|
+
level: o
|
|
15492
|
+
}, d), E = /* @__PURE__ */ e.createElement("div", { className: `${m}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${m}__header` }, c && /* @__PURE__ */ e.createElement("div", { className: `${m}__side-label` }, /* @__PURE__ */ e.createElement("span", null, c)), y ? w : null, T, y ? null : w), i && /* @__PURE__ */ e.createElement("div", { className: `${m}__body` }, typeof i == "string" ? /* @__PURE__ */ e.createElement("p", null, i) : i));
|
|
15493
|
+
return /* @__PURE__ */ e.createElement("li", {
|
|
15494
|
+
"aria-current": s ? "step" : void 0,
|
|
15495
|
+
className: Z([
|
|
15496
|
+
m,
|
|
15497
|
+
b,
|
|
15498
|
+
x,
|
|
15499
|
+
S,
|
|
15500
|
+
C,
|
|
15501
|
+
a ?? ""
|
|
15502
|
+
]),
|
|
15503
|
+
...p
|
|
15504
|
+
}, /* @__PURE__ */ e.createElement("span", {
|
|
15505
|
+
"aria-hidden": "true",
|
|
15506
|
+
className: `${m}__rail`
|
|
15507
|
+
}, /* @__PURE__ */ e.createElement("span", { className: `${m}__marker` })), _ === "card" ? /* @__PURE__ */ e.createElement(fs, { padding: "none" }, E) : E);
|
|
15508
|
+
}, Nc = ({ backgroundColor: t = "transparent", children: n, className: r, padding: i = "none", ...a }) => {
|
|
15300
15509
|
let o = "pds-utility-bar", s = t === "transparent" ? null : `${o}--bg-${t}`, c = i === "none" ? null : `${o}--pad-${i}`, l = Tt(n), u = l["items-left"], d = l["items-right"] ?? l.__unslotted;
|
|
15301
15510
|
return /* @__PURE__ */ e.createElement("div", {
|
|
15302
15511
|
className: Z([
|
|
@@ -15307,7 +15516,7 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15307
15516
|
]),
|
|
15308
15517
|
...a
|
|
15309
15518
|
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__layout` }, /* @__PURE__ */ e.createElement("div", { className: `${o}__items-left` }, u), /* @__PURE__ */ e.createElement("div", { className: `${o}__items-right` }, d)));
|
|
15310
|
-
},
|
|
15519
|
+
}, Pc = ({ children: t, className: n, drawerContent: r, drawerProps: i, hasDrawerToggle: o, hasSidebarToggle: s, isDrawerOpen: c = !1, isSidebarCollapsed: l, keyboardShortcuts: u = !0, labels: f, mainBackground: p, mainContentElement: h = "main", mainContentMaxWidth: v = 1600, mainContentProps: y, onDrawerToggle: b, onSidebarToggle: x, scrollableContent: S, sidebarBackground: C, sidebarCollapsedWidth: w = 4, sidebarExpandedWidth: T = "15%", sidebarExpandedWidthMax: E = 18, sidebarExpandedWidthMin: D = 14.75, sidebarProps: O, topOffset: k, ...A }) => {
|
|
15311
15520
|
let [j, M] = _(l || !1);
|
|
15312
15521
|
d(() => {
|
|
15313
15522
|
M(l || !1);
|
|
@@ -15324,7 +15533,7 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15324
15533
|
"--sidebar-min-width": j ? `${w}rem` : `${D}rem`,
|
|
15325
15534
|
"--sidebar-width": z,
|
|
15326
15535
|
backgroundColor: C || void 0
|
|
15327
|
-
}, B = g(!1), V =
|
|
15536
|
+
}, B = g(!1), V = Zi(), H = V === "sm", U = () => {
|
|
15328
15537
|
H || (B.current = !1, x ? x() : M(!j));
|
|
15329
15538
|
};
|
|
15330
15539
|
d(() => {
|
|
@@ -15419,10 +15628,10 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15419
15628
|
n ?? ""
|
|
15420
15629
|
]),
|
|
15421
15630
|
...A
|
|
15422
|
-
}, /* @__PURE__ */ e.createElement(
|
|
15631
|
+
}, /* @__PURE__ */ e.createElement(Ma, {
|
|
15423
15632
|
destination: I,
|
|
15424
15633
|
text: F.skipToContent
|
|
15425
|
-
}), te ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${N}__header` }, te), /* @__PURE__ */ e.createElement("div", { className: `${N}__body` }, le)) : le), o && /* @__PURE__ */ e.createElement(
|
|
15634
|
+
}), te ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${N}__header` }, te), /* @__PURE__ */ e.createElement("div", { className: `${N}__body` }, le)) : le), o && /* @__PURE__ */ e.createElement(Jo, {
|
|
15426
15635
|
...i,
|
|
15427
15636
|
isOpen: c,
|
|
15428
15637
|
placement: "left",
|
|
@@ -15430,13 +15639,13 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15430
15639
|
!e && c && b && b();
|
|
15431
15640
|
}
|
|
15432
15641
|
}, r));
|
|
15433
|
-
},
|
|
15642
|
+
}, Fc = ({ children: t, className: n, sidebarLabel: r = "Sidebar", sidebarWidth: i = "18%", sidebarWidthMax: a = 20, sidebarWidthMin: o = 15, style: s, tocLabel: c = "On this page", ...l }) => {
|
|
15434
15643
|
let u = "pds-docs-layout", d = _n(`(max-width: ${Nt - 1}px)`), f = {
|
|
15435
15644
|
"--docs-sidebar-max-width": `${a}rem`,
|
|
15436
15645
|
"--docs-sidebar-min-width": `${o}rem`,
|
|
15437
15646
|
"--docs-sidebar-width": i
|
|
15438
15647
|
}, p = Tt(t), m = p.__unslotted || p.content, h = p.header, g = p.sidebar, _ = p.toc, v = d ? `${u}--compact` : null, y = g ? `${u}--has-sidebar` : null;
|
|
15439
|
-
return /* @__PURE__ */ e.createElement(
|
|
15648
|
+
return /* @__PURE__ */ e.createElement(fc.Provider, { value: d }, /* @__PURE__ */ e.createElement("div", {
|
|
15440
15649
|
className: Z([
|
|
15441
15650
|
u,
|
|
15442
15651
|
v,
|
|
@@ -15456,7 +15665,7 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15456
15665
|
"aria-label": c,
|
|
15457
15666
|
className: `${u}__toc`
|
|
15458
15667
|
}, _)));
|
|
15459
|
-
},
|
|
15668
|
+
}, Ic = ({ children: t, className: n, gridGap: r = "xl", mobileGridGap: i, secondSidebarMobileLocation: a = "after", secondSidebarWidth: o, secondSidebarWidthMax: s, secondSidebarWidthMin: c, sidebarLocation: l = "right", sidebarMobileLocation: u = "after", sidebarWidth: d = "33%", sidebarWidthMax: f = 25, sidebarWidthMin: p = 15, stackSidebarsBelow: m, ...h }) => {
|
|
15460
15669
|
let g = "pds-sidebar-layout", _ = (e) => e === "none" ? "0" : `var(--pds-spacing-${e})`, v = _(r), y = _(i ?? r), b = Tt(t), x = !!b["second-sidebar"], S = !!m && x;
|
|
15461
15670
|
return /* @__PURE__ */ e.createElement("div", {
|
|
15462
15671
|
className: Z([
|
|
@@ -15479,7 +15688,7 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15479
15688
|
},
|
|
15480
15689
|
...h
|
|
15481
15690
|
}, /* @__PURE__ */ e.createElement("div", { className: `${g}__main` }, b.__unslotted || b.content), S ? /* @__PURE__ */ e.createElement("div", { className: Z([`${g}__sides`, `${g}__sides--stack-${m}`]) }, /* @__PURE__ */ e.createElement("div", { className: `${g}__side` }, b.sidebar), /* @__PURE__ */ e.createElement("div", { className: `${g}__second-side` }, b["second-sidebar"])) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${g}__side` }, b.sidebar), x && /* @__PURE__ */ e.createElement("div", { className: `${g}__second-side` }, b["second-sidebar"])));
|
|
15482
|
-
},
|
|
15691
|
+
}, Lc = ({ children: n, className: r, maxColumns: i = 3, style: a, ...o }) => {
|
|
15483
15692
|
let s = "pds-stat-panel-group", c = `${s}--max-${i}`, l = {
|
|
15484
15693
|
"--max-columns": i,
|
|
15485
15694
|
...a
|
|
@@ -15498,8 +15707,8 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15498
15707
|
className: `${s}__item`,
|
|
15499
15708
|
role: "listitem"
|
|
15500
15709
|
}, t))));
|
|
15501
|
-
},
|
|
15502
|
-
let o = Tt(t), s = o.stepper, c = o.form, l = "pds-stepper-layout", u = r === "full" || r === "wide" ? `${l}--${r === "full" ? "full-width" : "wide"}` : null, d = /* @__PURE__ */ e.createElement(
|
|
15710
|
+
}, Rc = ({ children: t, className: n, formWidth: r = "standard", hasPanel: i = !1, ...a }) => {
|
|
15711
|
+
let o = Tt(t), s = o.stepper, c = o.form, l = "pds-stepper-layout", u = r === "full" || r === "wide" ? `${l}--${r === "full" ? "full-width" : "wide"}` : null, d = /* @__PURE__ */ e.createElement(oo, {
|
|
15503
15712
|
className: Z([
|
|
15504
15713
|
l,
|
|
15505
15714
|
u,
|
|
@@ -15508,8 +15717,8 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15508
15717
|
width: "wide",
|
|
15509
15718
|
...a
|
|
15510
15719
|
}, s && /* @__PURE__ */ e.createElement("div", { className: `${l}__stepper-container` }, s), c && /* @__PURE__ */ e.createElement("div", { className: `${l}__form-container` }, c));
|
|
15511
|
-
return i ? /* @__PURE__ */ e.createElement(
|
|
15512
|
-
},
|
|
15720
|
+
return i ? /* @__PURE__ */ e.createElement(fs, null, d) : d;
|
|
15721
|
+
}, zc = ({ children: t, className: n, gridGap: r = "xl", verticalAlign: i = "start", ...a }) => {
|
|
15513
15722
|
let o = "pds-three-item-layout", s = r === "xl" ? "pds-grid" : `pds-grid pds-grid--gap-${r}`, c = `${o}--${i}`, l = Tt(t), u = [
|
|
15514
15723
|
l["first-item"],
|
|
15515
15724
|
l["second-item"],
|
|
@@ -15527,7 +15736,7 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15527
15736
|
key: n,
|
|
15528
15737
|
className: "pds-grid-item pds-grid-item--sm-12 pds-grid-item--md-4 pds-grid-item--lg-4"
|
|
15529
15738
|
}, t)));
|
|
15530
|
-
},
|
|
15739
|
+
}, Bc = ({ children: t, className: n, gridGap: r = "xl", layoutVariant: i = "equal", verticalAlign: a = "start", ...o }) => {
|
|
15531
15740
|
let s = "pds-two-item-layout", c = r === "xl" ? "pds-grid" : `pds-grid pds-grid--gap-${r}`, l = `${s}--${a}`, u = ["pds-grid-item--md-6"], d = ["pds-grid-item--md-4", "pds-grid-item--lg-3"], f = ["pds-grid-item--md-8", "pds-grid-item--lg-9"], p = ["pds-grid-item", "pds-grid-item--sm-4"], m, h;
|
|
15532
15741
|
switch (i) {
|
|
15533
15742
|
case "equal":
|
|
@@ -15548,7 +15757,7 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15548
15757
|
]),
|
|
15549
15758
|
...o
|
|
15550
15759
|
}, /* @__PURE__ */ e.createElement("div", { className: m.join(" ").trim() }, _), /* @__PURE__ */ e.createElement("div", { className: h.join(" ").trim() }, v));
|
|
15551
|
-
},
|
|
15760
|
+
}, Vc = ({ alignContent: t = "flex-start", alignItems: n = "stretch", asContainer: r = !1, children: i, className: a, containerAlignContent: o, containerAlignItems: s, containerFlexDirection: c, containerFlexWrap: l, containerGap: u, containerJustifyContent: d, containerQueryPriority: f = "container", flexDirection: p = "row", flexWrap: m = "nowrap", gap: h = "xl", justifyContent: g = "flex-start", mobileAlignContent: _, mobileAlignItems: v, mobileFlexDirection: y, mobileFlexWrap: b, mobileGap: x, mobileJustifyContent: S, stackBelow: C, style: w, ...T }) => {
|
|
15552
15761
|
let E = "pds-flex", D = `${E}-container`, O = {
|
|
15553
15762
|
"--pds-flex-align-content": t,
|
|
15554
15763
|
"--pds-flex-align-items": n,
|
|
@@ -15596,20 +15805,20 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15596
15805
|
...O
|
|
15597
15806
|
}
|
|
15598
15807
|
}, i));
|
|
15599
|
-
},
|
|
15808
|
+
}, Hc = [
|
|
15600
15809
|
"light",
|
|
15601
15810
|
"dark",
|
|
15602
15811
|
"system"
|
|
15603
|
-
],
|
|
15812
|
+
], Uc = (e) => typeof e == "string" && Hc.includes(e), Wc = i(null), Gc = {
|
|
15604
15813
|
resolvedTheme: "light",
|
|
15605
15814
|
setTheme: () => {},
|
|
15606
15815
|
theme: "light"
|
|
15607
|
-
},
|
|
15816
|
+
}, Kc = ({ defaultTheme: e = "light", storageKey: t = "pds-theme" } = {}) => `(function(){try{var t=localStorage.getItem(${JSON.stringify(t)})||${JSON.stringify(e)};if(t==='system'){t=matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}document.documentElement.setAttribute('data-theme',t);}catch(e){}})();`, qc = ({ children: t, defaultTheme: n = "light", disableInitScript: r = !1, nodeRef: i, onThemeChange: a, persist: o = !0, storageKey: s = "pds-theme", theme: c }) => {
|
|
15608
15817
|
let u = c !== void 0, f = !r && !u && o && !i, [p, m] = _(n), h = u ? c : p, g = _n("(prefers-color-scheme: dark)"), v = h === "system" ? g ? "dark" : "light" : h;
|
|
15609
15818
|
d(() => {
|
|
15610
15819
|
if (!u && o && typeof window < "u") try {
|
|
15611
15820
|
let e = window.localStorage.getItem(s);
|
|
15612
|
-
|
|
15821
|
+
Uc(e) && m(e);
|
|
15613
15822
|
} catch {}
|
|
15614
15823
|
}, []), d(() => {
|
|
15615
15824
|
typeof document < "u" && (i?.current ?? document.documentElement).setAttribute("data-theme", v);
|
|
@@ -15629,20 +15838,20 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15629
15838
|
]),
|
|
15630
15839
|
theme: h
|
|
15631
15840
|
};
|
|
15632
|
-
return /* @__PURE__ */ e.createElement(
|
|
15841
|
+
return /* @__PURE__ */ e.createElement(Wc.Provider, { value: y }, f && /* @__PURE__ */ e.createElement("script", { dangerouslySetInnerHTML: { __html: Kc({
|
|
15633
15842
|
defaultTheme: n,
|
|
15634
15843
|
storageKey: s
|
|
15635
15844
|
}) } }), t);
|
|
15636
|
-
},
|
|
15845
|
+
}, Jc = () => u(Wc) ?? Gc, Yc = ({ children: t, enableThemeSwitching: n = !1, mobileMaxWidth: r = 767, themeProps: i = {} }) => {
|
|
15637
15846
|
d(() => {
|
|
15638
15847
|
let e = document.documentElement, t = () => {
|
|
15639
15848
|
window.innerWidth <= r ? e.setAttribute("data-pds-mobile", "") : e.removeAttribute("data-pds-mobile");
|
|
15640
15849
|
};
|
|
15641
15850
|
return t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
|
|
15642
15851
|
}, [r]);
|
|
15643
|
-
let a = n ? /* @__PURE__ */ e.createElement(
|
|
15852
|
+
let a = n ? /* @__PURE__ */ e.createElement(qc, i, t) : t;
|
|
15644
15853
|
return /* @__PURE__ */ e.createElement(fn, null, a);
|
|
15645
|
-
},
|
|
15854
|
+
}, Xc = ({ children: t, className: n, gap: r = "xl", itemMinWidth: i, maxColumns: a, mobileGap: o, ...s }) => {
|
|
15646
15855
|
let c = "pds-auto-grid", l = r === "xl" ? null : `${c}--gap-${r}`, u = a ? `${c}--capped` : null, d = o ?? r, f = d === r ? null : `${c}-gap-mobile--${d}`;
|
|
15647
15856
|
return /* @__PURE__ */ e.createElement("div", {
|
|
15648
15857
|
className: Z([
|
|
@@ -15658,7 +15867,7 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15658
15867
|
},
|
|
15659
15868
|
...s
|
|
15660
15869
|
}, t);
|
|
15661
|
-
},
|
|
15870
|
+
}, Zc = ({ asContainer: t = !1, children: n, className: r, dense: i = !1, gap: a = "xl", mobileGap: o, stackBelow: s, ...c }) => {
|
|
15662
15871
|
let l = "pds-grid", u = a === "xl" ? null : `${l}--gap-${a}`, d = i ? `${l}--dense` : null, f = t || s ? `${l}--container` : null, p = s ? `${l}--stack-${s}` : null, m = o ?? a, h = m === a ? null : `${l}-gap-mobile--${m}`;
|
|
15663
15872
|
return /* @__PURE__ */ e.createElement("div", {
|
|
15664
15873
|
className: Z([
|
|
@@ -15672,7 +15881,7 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15672
15881
|
]),
|
|
15673
15882
|
...c
|
|
15674
15883
|
}, n);
|
|
15675
|
-
},
|
|
15884
|
+
}, Qc = ({ children: t, className: n, rowSpanLg: r, rowSpanMd: i, rowSpanSm: a, rowSpanXl: o, spanLg: s, spanMd: c, spanSm: l, spanXl: u, ...d }) => {
|
|
15676
15885
|
let f = "pds-grid-item", p = [
|
|
15677
15886
|
l ? `${f}--sm-${l}` : null,
|
|
15678
15887
|
c ? `${f}--md-${c}` : null,
|
|
@@ -15691,7 +15900,7 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15691
15900
|
]),
|
|
15692
15901
|
...d
|
|
15693
15902
|
}, t);
|
|
15694
|
-
},
|
|
15903
|
+
}, $c = (e, t, n) => {
|
|
15695
15904
|
let { altKey: r = !1, ctrlKey: i = !1, enabled: a = !0, metaKey: o = !1, shiftKey: s = !1 } = n ?? {}, [c, u] = _(!1), f = l((e) => e.altKey === r && e.ctrlKey === i && e.metaKey === o && e.shiftKey === s, [
|
|
15696
15905
|
r,
|
|
15697
15906
|
i,
|
|
@@ -15715,7 +15924,7 @@ var qs = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15715
15924
|
m,
|
|
15716
15925
|
a
|
|
15717
15926
|
]), c;
|
|
15718
|
-
},
|
|
15719
|
-
export { Mr as ActionCard,
|
|
15927
|
+
}, el = (e) => (window.addEventListener("resize", e), () => window.removeEventListener("resize", e)), tl = () => window.innerWidth, nl = () => 1024, rl = () => v(el, tl, nl);
|
|
15928
|
+
export { Mr as ActionCard, Fi as AgentAvatar, Pc as AppLayout, oi as AreaChart, Xc as AutoGrid, Ri as Avatar, zi as AvatarLabel, as as BASelectorPanel, Ha as BASwitcher, Mt as Badge, Eo as Banner, si as BarChart, Ga as BookmarksEmptyState, qa as BookmarksMenu, cs as BookmarksPanel, Ko as BottomSheet, Rn as BranchDiff, Ja as Breadcrumb, qo as BulkActionBar, Hn as Button, Un as ButtonLink, ao as ButtonNav, Aa as CTALink, jr as Callout, Nr as Card, Pr as CardSelect, Vi as Checkbox, Hi as CheckboxFieldset, Ui as CheckboxGroup, Kn as ClipboardButton, qn as CloseButton, wi as CodeBlock, Wi as Combobox, Ki as ComboboxMultiselect, Fr as CompactEmptyState, Ei as ComparisonList, oo as Container, va as Datepicker, Fc as DocsLayout, Jo as Drawer, dr as Dropdown, ro as DropdownMenu, ls as ExpansionPanel, us as ExpansionPanelGroup, ds as FeaturePanel, Mi as FileDiff, ya as FileUpload, Sr as FilterButton, Vc as FlexContainer, Yo as FullScreenOverlay, Yc as GlobalWrapper, Zc as Grid, Qc as GridItem, Oi as HorizontalEmptyState, Q as Icon, Gn as IconButton, Bi as IdentityBlock, Ai as Illustration, Oo as InlineMessage, ba as InputGroup, li as LineChart, ja as LinkNewWindow, Mo as MIN_AUTO_CLOSE_DURATION, sr as MenuButton, Xo as Modal, co as Navbar, $o as Pagination, es as PaginationChapter, ts as PaginationCompact, fs as Panel, ps as PanelList, ms as PanelRow, hs as PanelStack, bs as PantheonLogo, Pi as PaymentIcon, Pa as Picture, di as PieChart, Er as PlatformIcon, Cs as Popover, Ts as ProgressBar, Ds as ProgressRing, pi as ProportionBar, xa as RadioGroup, As as ResultCount, Ua as RowActionsMenu, Or as SSOButton, vi as ScatterPlot, jo as SectionMessage, Cr as SegmentedButton, Lr as Select, wr as SelectButton, Ir as SelectOptionGroup, lo as SideNav, fo as SideNavGlobal, uo as SideNavGlobalItem, Ic as SidebarLayout, Ns as SiteFooter, mo as SiteMenu, Ps as SiteOptionDisplay, Fs as SiteSearch, or as SiteTypeIcon, ar as SiteTypeLabel, $r as Skeleton, Ma as Skiplink, qs as SortableList, Vs as SortableListHeader, Ys as SortableRow, bi as Sparkline, Fn as Spinner, Tr as SplitButton, Xs as StatPanel, Lc as StatPanelGroup, In as StatusBadge, Qs as StatusChecker, $s as StatusIndicator, nc as StatusScrim, er as StatusTypeLabels, rc as StepList, ic as Stepper, Rc as StepperLayout, Sa as Switch, go as TabMenu, dc as Table, bc as TableOfContents, xc as Tabs, kc as Tag, wa as TagsInput, Ln as Tally, Da as TextInput, Ta as Textarea, Wc as ThemeContext, qc as ThemeContextProvider, bo as ThemeSwitcher, Na as ThinkingState, zc as ThreeItemLayout, jc as Timeline, Mc as TimelineItem, na as Timepicker, zo as Toast, Bo as ToastType, Io as Toaster, Po as ToasterContext, vn as Tooltip, vo as TreeNav, Bc as TwoItemLayout, xo as UserMenu, Nc as UtilityBar, kr as UtilityButton, ji as VerticalEmptyState, oc as VerticalStepper, Di as VideoEmbed, ns as WidgetPanel, ka as WorkspacePicker, So as WorkspaceSelector, gs as WorkspaceSelectorPanel, Wa as buildBookmarkMenuItems, ma as getPresetDateRange, Kc as getThemeInitScript, At as iconList, nr as isHeadingItemType, rr as isLinkItemType, ir as isNodeItemType, tr as isSeparatorItemType, Zs as statusCheckerStates, Sc as tagColors, Tc as tagSolidColors, Cc as tagSolidHueColors, wc as tagSolidStatusColors, Zi as useBreakpoint, Wn as useClipboard, Yn as useDropdown, ln as useIsMobile, $c as useKeyPress, mn as useKeyboardShortcut, _n as useMediaQuery, Jc as useTheme, Vo as useToast, rl as useWindowWidth };
|
|
15720
15929
|
|
|
15721
15930
|
//# sourceMappingURL=index.js.map
|