@pantheon-systems/pds-toolkit-react 2.0.0-alpha.65 → 2.0.0-alpha.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/icons/Icon/generated-icon-data.d.ts +1 -1
- package/dist/components/icons/PlatformIcon/PlatformIcon.d.ts +1 -1
- package/dist/css/component-css/pds-index.css +5 -5
- package/dist/css/component-css/pds-platform-icon.css +1 -1
- package/dist/css/component-css/pds-site-footer.css +1 -1
- package/dist/css/component-css/pds-status-checker.css +1 -1
- package/dist/css/component-css/pds-toaster.css +1 -1
- package/dist/css/component-css/pds-user-menu.css +1 -1
- package/dist/css/pds-components.css +5 -5
- package/dist/css/pds-core.css +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +450 -509
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3705,60 +3705,18 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
3705
3705
|
testId: null,
|
|
3706
3706
|
variant: s
|
|
3707
3707
|
}));
|
|
3708
|
-
}, ir = {
|
|
3709
|
-
|
|
3710
|
-
drupal7: "Drupal 7",
|
|
3711
|
-
"front-end-sites": "Next.js and Gatsby",
|
|
3712
|
-
gatsby: "Gatsby",
|
|
3713
|
-
"gatsby-wp": "Gatsby and WordPress",
|
|
3714
|
-
google: "Google",
|
|
3715
|
-
"import-custom": "Add custom",
|
|
3716
|
-
microsoft: "Microsoft",
|
|
3717
|
-
next: "Next.js",
|
|
3718
|
-
"next-drupal": "Next.js and Drupal",
|
|
3719
|
-
"next-wp": "Next.js and WordPress",
|
|
3720
|
-
splunk: "Splunk",
|
|
3721
|
-
"sumo-logic": "Sumo Logic",
|
|
3722
|
-
wordpress: "WordPress"
|
|
3723
|
-
}, ar = ({ className: t, platformType: n, size: i = "2xl", ...a }) => {
|
|
3724
|
-
let o = "pds-platform-icon", s = `pds-platform-icon--${n}`, c = `pds-platform-icon--${i}`, l;
|
|
3725
|
-
if ([
|
|
3726
|
-
"front-end-sites",
|
|
3727
|
-
"gatsby-wp",
|
|
3728
|
-
"next-drupal",
|
|
3729
|
-
"next-wp"
|
|
3730
|
-
].includes(n)) {
|
|
3731
|
-
let t = [];
|
|
3732
|
-
switch (n) {
|
|
3733
|
-
case "front-end-sites":
|
|
3734
|
-
t = ["next", "gatsby"];
|
|
3735
|
-
break;
|
|
3736
|
-
case "next-drupal":
|
|
3737
|
-
t = ["next", "drupal"];
|
|
3738
|
-
break;
|
|
3739
|
-
case "gatsby-wp":
|
|
3740
|
-
t = ["gatsby", "wordpress"];
|
|
3741
|
-
break;
|
|
3742
|
-
case "next-wp":
|
|
3743
|
-
t = ["next", "wordpress"];
|
|
3744
|
-
break;
|
|
3745
|
-
}
|
|
3746
|
-
l = /* @__PURE__ */ e.createElement("span", {
|
|
3747
|
-
"aria-label": ir[n],
|
|
3748
|
-
className: `${o}__group`,
|
|
3749
|
-
role: "img"
|
|
3750
|
-
}, r(or[t[0]], { "aria-hidden": "true" }), r(or[t[1]], { "aria-hidden": "true" }));
|
|
3751
|
-
} else l = or[n];
|
|
3708
|
+
}, ir = ({ className: t, platformType: n, size: r = "2xl", ...i }) => {
|
|
3709
|
+
let a = `pds-platform-icon--${n}`, o = `pds-platform-icon--${r}`;
|
|
3752
3710
|
return /* @__PURE__ */ e.createElement("div", {
|
|
3753
3711
|
className: Z([
|
|
3712
|
+
"pds-platform-icon",
|
|
3713
|
+
a,
|
|
3754
3714
|
o,
|
|
3755
|
-
s,
|
|
3756
|
-
c,
|
|
3757
3715
|
t
|
|
3758
3716
|
]),
|
|
3759
|
-
...
|
|
3760
|
-
},
|
|
3761
|
-
},
|
|
3717
|
+
...i
|
|
3718
|
+
}, ar[n]);
|
|
3719
|
+
}, ar = {
|
|
3762
3720
|
drupal: /* @__PURE__ */ e.createElement("svg", {
|
|
3763
3721
|
"aria-label": "Drupal",
|
|
3764
3722
|
fill: "none",
|
|
@@ -3776,23 +3734,6 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
3776
3734
|
d: "M23.027 12.9858C23.027 12.9602 23.0016 12.9474 22.9762 12.9218C21.7311 11.5139 19.9652 9.51725 18.6948 8.09655C18.301 7.67418 17.9071 7.25181 17.5387 6.81664C17.4498 6.71425 17.3736 6.61185 17.2846 6.50946C17.2084 6.43267 17.1703 6.38147 17.1703 6.38147C16.7383 5.8695 16.3953 5.29354 16.1539 4.67919L16.0904 4.5384C16.0904 4.5384 16.0904 4.5384 16.065 4.5128C16.065 4.5128 16.0269 4.5 16.0142 4.5C15.9888 4.5 15.9761 4.5128 15.9634 4.5128C15.9634 4.52133 15.9549 4.52986 15.938 4.5384L15.8745 4.67919C15.6204 5.29354 15.2773 5.8695 14.8581 6.38147C14.8581 6.38147 14.82 6.43267 14.7438 6.50946C14.6548 6.61185 14.5786 6.71425 14.4897 6.81664C14.1086 7.25181 13.7274 7.67418 13.3336 8.09655C12.0632 9.51725 10.2846 11.5139 9.03954 12.9218C9.02683 12.9474 9.01413 12.9602 8.98872 12.9858C4.28813 19.2958 9.39526 24.441 9.39526 24.441H9.38256C10.8944 26.2073 13.0414 27.2952 15.3409 27.4616C15.5441 27.4872 15.7601 27.5 15.9888 27.5C16.2048 27.5 16.4207 27.4872 16.6367 27.4616C18.9489 27.2952 21.0832 26.2073 22.595 24.441C22.595 24.441 27.7149 19.2958 23.0143 12.9858H23.027ZM12.0886 17.4271L11.9742 17.6063C11.1103 18.6686 10.6022 19.7949 10.437 20.9085C10.4116 21.0492 10.2846 21.1388 10.1575 21.1132C10.0686 21.1004 10.0051 21.0365 9.96695 20.9597C9.73828 20.4221 9.58582 19.8589 9.5096 19.283C9.2174 17.2479 9.82721 15.4688 11.123 13.9457C11.6439 13.3442 12.1648 12.7426 12.6857 12.1411C12.7746 12.0387 12.9271 12.0259 13.0287 12.1155L13.0541 12.1411C13.4733 12.6274 14.0196 13.2546 14.6294 13.9713C14.7057 14.0609 14.7057 14.2017 14.6294 14.3041C13.7909 15.3152 12.9016 16.3904 12.1013 17.4143L12.0886 17.4271ZM19.3046 22.7003C18.8218 23.9802 17.869 24.7482 16.5224 24.9658C14.604 25.2602 12.8127 23.9418 12.5205 22.0092C12.5205 21.9836 12.5205 21.9708 12.5205 21.9452C12.3681 20.8573 12.6984 19.8973 13.3971 19.0782C14.2102 18.1183 16.0015 15.8912 16.0269 15.8528C16.065 15.8912 17.9707 18.2846 18.6821 19.1294C19.5841 20.1917 19.8001 21.4076 19.3173 22.7003H19.3046ZM22.1377 20.6909C22.1377 20.7293 22.0996 20.7805 22.0869 20.8189C22.036 20.9469 21.8963 21.0109 21.7692 20.9597C21.693 20.9213 21.6295 20.8573 21.6168 20.7677C21.4389 19.6925 20.9308 18.6174 20.105 17.6063L20.0288 17.4783L19.9779 17.4143C19.3173 16.5696 15.8236 12.4482 14.2991 10.6436C14.2229 10.554 14.2229 10.4132 14.2991 10.3108C14.8073 9.74764 15.3155 9.18447 15.8109 8.60851C15.8999 8.50612 16.0523 8.50612 16.1539 8.60851C16.3826 8.8645 16.5986 9.10768 16.8146 9.36366C18.1993 10.9252 19.5968 12.461 20.9435 14.0353C22.6458 16.0192 23.0397 18.2974 22.1377 20.7037V20.6909Z",
|
|
3777
3735
|
fill: "var(--pds-color-partner-foreground)"
|
|
3778
3736
|
})),
|
|
3779
|
-
drupal7: /* @__PURE__ */ e.createElement("svg", {
|
|
3780
|
-
"aria-label": "Drupal 7",
|
|
3781
|
-
fill: "none",
|
|
3782
|
-
height: "32",
|
|
3783
|
-
role: "img",
|
|
3784
|
-
viewBox: "0 0 32 32",
|
|
3785
|
-
width: "32",
|
|
3786
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
3787
|
-
}, /* @__PURE__ */ e.createElement("rect", {
|
|
3788
|
-
fill: "var(--pds-color-partner-drupal)",
|
|
3789
|
-
height: "32",
|
|
3790
|
-
rx: "16",
|
|
3791
|
-
width: "32"
|
|
3792
|
-
}), /* @__PURE__ */ e.createElement("path", {
|
|
3793
|
-
d: "M20.2634 9.37661C19.2723 8.72036 18.3214 8.46255 17.375 7.8063C16.7946 7.3938 15.9777 6.40005 15.2991 5.54224C15.1786 6.91567 14.7857 7.47349 14.317 7.86255C13.3661 8.65942 12.7634 8.90317 11.9286 9.37661C11.2232 9.76567 7.42857 12.5079 7.42857 17.6172C7.42857 22.736 11.5268 26.5 16.0804 26.5C20.6205 26.5 24.5714 23.0313 24.5714 17.7813C24.5714 12.5172 20.8661 9.76567 20.2634 9.37661ZM20.375 24.6391C19.4777 25.5813 16.3527 25.9844 15.1652 24.836C14.9509 24.611 15.1786 24.2735 15.4554 24.2735C15.4554 24.2735 16.2143 24.8969 17.7545 24.8969C18.9598 24.8969 19.808 24.536 20.1875 24.2407C20.4598 24.025 20.5625 24.4422 20.375 24.6391ZM17.942 22.1735C18.3304 22.0047 19.2366 21.9954 19.5848 22.2344C19.7679 22.3657 20.3036 23.1157 19.8616 23.3454C19.4866 23.5422 19.808 22.6094 18.6786 22.6094C18.0223 22.6094 17.808 22.8532 17.4866 23.125C17.1741 23.4063 17.0491 23.5 16.942 23.3454C16.6741 22.961 17.6518 22.3 17.942 22.1735ZM22.0714 22.9844C21.3929 22.9375 20.0402 20.6969 19.1696 20.6641C17.7902 20.6219 14.5223 24.4469 11.9688 22.6329C10.2366 21.386 11.317 17.7204 14.2813 17.7016C16.4911 17.6782 18.0223 19.9985 19.125 19.975C20.0759 19.961 21.8839 18.0157 22.7768 18.0157C24.9509 18.0157 23.817 23.1391 22.0714 22.9844Z",
|
|
3794
|
-
fill: "var(--pds-color-partner-foreground)"
|
|
3795
|
-
})),
|
|
3796
3737
|
wordpress: /* @__PURE__ */ e.createElement("svg", {
|
|
3797
3738
|
"aria-label": "WordPress",
|
|
3798
3739
|
fill: "none",
|
|
@@ -3985,8 +3926,8 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
3985
3926
|
d: "M17 10.5V15H21.5C22.0312 15 22.5 15.4688 22.5 16C22.5 16.5625 22.0312 17 21.5 17H17V21.5C17 22.0625 16.5312 22.5 16 22.5C15.4375 22.5 15 22.0625 15 21.5V17H10.5C9.9375 17 9.5 16.5625 9.5 16C9.5 15.4688 9.9375 15 10.5 15H15V10.5C15 9.96875 15.4375 9.5 16 9.5C16.5312 9.5 17 9.96875 17 10.5Z",
|
|
3986
3927
|
fill: "var(--pds-color-foreground-reverse)"
|
|
3987
3928
|
}))
|
|
3988
|
-
},
|
|
3989
|
-
let d = "pds-sso-button", f = `${d}--${c}`, p = c === "m" ? "l" : "2xl", m = c === "m" ? "l" : "xl", h = /* @__PURE__ */ e.createElement(
|
|
3929
|
+
}, or = ({ buttonType: t = "button", className: n = "", disabled: r = !1, isWorking: i = !1, label: a, onClick: o, platform: s, size: c = "m", tooltipText: l, ...u }) => {
|
|
3930
|
+
let d = "pds-sso-button", f = `${d}--${c}`, p = c === "m" ? "l" : "2xl", m = c === "m" ? "l" : "xl", h = /* @__PURE__ */ e.createElement(ir, {
|
|
3990
3931
|
className: `${d}__icon`,
|
|
3991
3932
|
platformType: s,
|
|
3992
3933
|
size: p
|
|
@@ -4009,7 +3950,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4009
3950
|
content: l,
|
|
4010
3951
|
customTrigger: g
|
|
4011
3952
|
}) : /* @__PURE__ */ e.createElement(e.Fragment, null, g);
|
|
4012
|
-
},
|
|
3953
|
+
}, sr = ({ buttonProps: t, className: n, disabled: i = !1, hasBorder: a = !1, iconName: o, iconPosition: c = "before", isCritical: l = !1, isLoading: u, isMonospace: d = !1, isWorking: f, label: p, linkContent: m, onClick: h, tooltipText: g, ..._ }) => {
|
|
4013
3954
|
let v = "pds-utility-button", y = u ? "pds-pulse" : null, b = (t) => o && !f ? /* @__PURE__ */ e.createElement(Q, {
|
|
4014
3955
|
key: t,
|
|
4015
3956
|
className: `${v}__icon`,
|
|
@@ -4062,7 +4003,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4062
4003
|
className: w,
|
|
4063
4004
|
..._
|
|
4064
4005
|
}, T(E));
|
|
4065
|
-
},
|
|
4006
|
+
}, cr = {
|
|
4066
4007
|
info: "circleInfo",
|
|
4067
4008
|
warning: "triangleExclamation",
|
|
4068
4009
|
success: "circleCheck",
|
|
@@ -4070,7 +4011,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4070
4011
|
discovery: "squareQuestion",
|
|
4071
4012
|
code: "squareTerminal",
|
|
4072
4013
|
earlyAccess: "leaf"
|
|
4073
|
-
},
|
|
4014
|
+
}, lr = ({ children: t, className: n, headingLevel: r = "span", title: i, type: a = "info", typeLabels: o = {
|
|
4074
4015
|
...Jn,
|
|
4075
4016
|
code: "Code",
|
|
4076
4017
|
earlyAccess: "Early Access"
|
|
@@ -4084,13 +4025,13 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4084
4025
|
]),
|
|
4085
4026
|
...s
|
|
4086
4027
|
}, /* @__PURE__ */ e.createElement("div", { className: `${c}__inner` }, /* @__PURE__ */ e.createElement("div", { className: `${c}__icon ${c}__icon--${a}` }, /* @__PURE__ */ e.createElement(Q, {
|
|
4087
|
-
iconName: `${a}` in
|
|
4028
|
+
iconName: `${a}` in cr ? cr[a] : cr.info,
|
|
4088
4029
|
size: "xl"
|
|
4089
4030
|
})), /* @__PURE__ */ e.createElement("div", { className: `${c}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, u), i && /* @__PURE__ */ e.createElement(Tn, {
|
|
4090
4031
|
baseClass: c,
|
|
4091
4032
|
level: r
|
|
4092
4033
|
}, i), t && /* @__PURE__ */ e.createElement("div", { className: `${c}__main-content` }, t))));
|
|
4093
|
-
},
|
|
4034
|
+
}, ur = ({ background: t = "default", children: n, className: i, imageVariant: a = "bleed", padding: o = "standard", primaryAction: c, ...l }) => {
|
|
4094
4035
|
let u = "pds-action-card", d = t === "default" ? null : `${u}--${t}`, f = a === "bleed" ? null : `${u}--image-${a}`, p = o === "standard" ? null : `${u}--pad-${o}`, m = ft(n), h = m.image, g = m.__unslotted || m.main, _ = m.footer, v = `${u}__primary`, y = c.linkContent && s(c.linkContent) ? r(c.linkContent, {
|
|
4095
4036
|
"aria-label": c.label,
|
|
4096
4037
|
className: v
|
|
@@ -4110,7 +4051,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4110
4051
|
]),
|
|
4111
4052
|
...l
|
|
4112
4053
|
}, y, /* @__PURE__ */ e.createElement("div", { className: `${u}__inner` }, h && /* @__PURE__ */ e.createElement("div", { className: `${u}__image` }, h[0]), g && /* @__PURE__ */ e.createElement("div", { className: `${u}__main` }, g), pt(_) && /* @__PURE__ */ e.createElement("div", { className: `${u}__footer` }, _)));
|
|
4113
|
-
},
|
|
4054
|
+
}, dr = ({ background: t = "default", children: n, className: r, imageVariant: i = "bleed", padding: a = "standard", ...o }) => {
|
|
4114
4055
|
let s = "pds-card", c = t === "default" ? null : `${s}--${t}`, l = i === "bleed" ? null : `${s}--image-${i}`, u = a === "standard" ? null : `${s}--pad-${a}`, d = ft(n), f = d.image, p = d.__unslotted || d.main, m = d.footer;
|
|
4115
4056
|
return /* @__PURE__ */ e.createElement("div", {
|
|
4116
4057
|
className: Z([
|
|
@@ -4122,7 +4063,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4122
4063
|
]),
|
|
4123
4064
|
...o
|
|
4124
4065
|
}, f && /* @__PURE__ */ e.createElement("div", { className: `${s}__image` }, f[0]), p && /* @__PURE__ */ e.createElement("div", { className: `${s}__main` }, p), pt(m) && /* @__PURE__ */ e.createElement("div", { className: `${s}__footer` }, m));
|
|
4125
|
-
},
|
|
4066
|
+
}, fr = ({ background: t = "default", className: n, defaultValue: r, id: i, imageVariant: a = "bleed", label: o, labelDisplay: s = "left", layout: c = "auto", onChange: l, options: u, padding: d = "standard", showCardLabels: f = !0, showIndicator: p = !0, size: m = "m", ...h }) => {
|
|
4126
4067
|
let _ = "pds-card-select", v = t === "default" ? null : `${_}--${t}`, y = m === "m" ? null : `${_}--${m}`, b = a === "bleed" ? null : `${_}--image-${a}`, x = f ? null : `${_}--no-card-labels`, S = p ? null : `${_}--no-indicator`, C = d === "standard" ? null : `${_}--pad-${d}`, w = `${_}__legend`;
|
|
4127
4068
|
s === "center" && (w = `${_}__legend ${_}__legend--center`), s === "hidden" && (w = `${_}__legend visually-hidden`);
|
|
4128
4069
|
let [T, E] = g(r), D = (e) => {
|
|
@@ -4162,7 +4103,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4162
4103
|
size: "l"
|
|
4163
4104
|
})), /* @__PURE__ */ e.createElement("div", { className: `${_}__option-body` }, /* @__PURE__ */ e.createElement("span", { className: Z([`${_}__option-label-text`, f ? null : "visually-hidden"]) }, t.label), c && /* @__PURE__ */ e.createElement("div", { className: `${_}__option-main` }, c)))));
|
|
4164
4105
|
})));
|
|
4165
|
-
},
|
|
4106
|
+
}, pr = ({ className: t, heading: n, headingLevel: r = "span", iconName: i, linkContent: a, message: o, ...s }) => {
|
|
4166
4107
|
let c = "pds-compact-empty-state";
|
|
4167
4108
|
return /* @__PURE__ */ e.createElement("div", {
|
|
4168
4109
|
className: Z([c, t ?? ""]),
|
|
@@ -4175,7 +4116,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4175
4116
|
baseClass: c,
|
|
4176
4117
|
level: r
|
|
4177
4118
|
}, n), o && /* @__PURE__ */ e.createElement("p", { className: `${c}__message` }, o)), a && /* @__PURE__ */ e.createElement("div", { className: `${c}__link` }, a));
|
|
4178
|
-
},
|
|
4119
|
+
}, mr = ({ children: t, label: n }) => {
|
|
4179
4120
|
let r = "pds-select";
|
|
4180
4121
|
return /* @__PURE__ */ e.createElement("li", {
|
|
4181
4122
|
className: `${r}__group`,
|
|
@@ -4184,7 +4125,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4184
4125
|
className: `${r}__group-options`,
|
|
4185
4126
|
role: "group"
|
|
4186
4127
|
}, t));
|
|
4187
|
-
},
|
|
4128
|
+
}, hr = ({ autoWidth: t = !1, className: n, defaultValue: r, disabled: i, icon: a, id: o, inputWidth: s, label: c, labelStrings: l = {
|
|
4188
4129
|
selectOptionText: "Select an option...",
|
|
4189
4130
|
triggerButton: "Toggle dropdown menu"
|
|
4190
4131
|
}, message: d, onBlur: f, onFocus: p, onOptionSelect: m, options: h, required: _ = !1, showLabel: v = !0, showSelectedIcon: y = !0, size: b = "s", tooltipText: x = null, validationMessage: S, validationStatus: C, value: w, ...T }) => {
|
|
@@ -4209,7 +4150,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4209
4150
|
p && p(X);
|
|
4210
4151
|
}, le = () => {
|
|
4211
4152
|
ne.reference.current.focus();
|
|
4212
|
-
}, ue = (t, n) => t === "google" || t === "microsoft" ? /* @__PURE__ */ e.createElement(
|
|
4153
|
+
}, ue = (t, n) => t === "google" || t === "microsoft" ? /* @__PURE__ */ e.createElement(ir, {
|
|
4213
4154
|
className: n,
|
|
4214
4155
|
platformType: t,
|
|
4215
4156
|
size: "m"
|
|
@@ -4241,7 +4182,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4241
4182
|
})
|
|
4242
4183
|
}, /* @__PURE__ */ e.createElement("span", { className: `${D}__option-label` }, t.icon && ue(t.icon, `${D}__option-icon`), t.label), y && H === r && /* @__PURE__ */ e.createElement(Gn, null));
|
|
4243
4184
|
});
|
|
4244
|
-
return /* @__PURE__ */ e.createElement(
|
|
4185
|
+
return /* @__PURE__ */ e.createElement(mr, {
|
|
4245
4186
|
key: t.groupLabel,
|
|
4246
4187
|
label: t.groupLabel
|
|
4247
4188
|
}, r);
|
|
@@ -4329,17 +4270,17 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4329
4270
|
validationMessageHasDecorators: !1,
|
|
4330
4271
|
validationStatus: C
|
|
4331
4272
|
}));
|
|
4332
|
-
},
|
|
4273
|
+
}, gr = {
|
|
4333
4274
|
"sequential-blue": 2,
|
|
4334
4275
|
"sequential-gray": 2
|
|
4335
|
-
},
|
|
4336
|
-
let n =
|
|
4276
|
+
}, _r = (e, t) => {
|
|
4277
|
+
let n = gr[e];
|
|
4337
4278
|
return n ? t.slice(n) : t;
|
|
4338
|
-
},
|
|
4279
|
+
}, vr = (e, t) => {
|
|
4339
4280
|
if (t === void 0) return;
|
|
4340
|
-
let n =
|
|
4281
|
+
let n = gr[e];
|
|
4341
4282
|
return n ? Math.max(t, n + 1) - n : t;
|
|
4342
|
-
},
|
|
4283
|
+
}, yr = {
|
|
4343
4284
|
categorical: [
|
|
4344
4285
|
"--pds-color-datavis-categorical-1",
|
|
4345
4286
|
"--pds-color-datavis-categorical-2",
|
|
@@ -4392,7 +4333,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4392
4333
|
"--pds-color-datavis-status-discovery",
|
|
4393
4334
|
"--pds-color-datavis-status-neutral"
|
|
4394
4335
|
]
|
|
4395
|
-
},
|
|
4336
|
+
}, br = {
|
|
4396
4337
|
categorical: [
|
|
4397
4338
|
"#006dcc",
|
|
4398
4339
|
"#c95a3d",
|
|
@@ -4445,34 +4386,34 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4445
4386
|
"#7952a8",
|
|
4446
4387
|
"#717273"
|
|
4447
4388
|
]
|
|
4448
|
-
},
|
|
4449
|
-
let n =
|
|
4389
|
+
}, xr = (e, t, n, r) => n || (r === void 0 ? t[e % t.length] : t[(r - 1) % t.length]), Sr = (e, t) => {
|
|
4390
|
+
let n = br[t];
|
|
4450
4391
|
if (!e) return n;
|
|
4451
4392
|
let r = getComputedStyle(e);
|
|
4452
|
-
return
|
|
4453
|
-
},
|
|
4454
|
-
let [n, r] = g(
|
|
4393
|
+
return yr[t].map((e, t) => r.getPropertyValue(e).trim() || n[t]);
|
|
4394
|
+
}, Cr = (e, t = "categorical") => {
|
|
4395
|
+
let [n, r] = g(br[t]);
|
|
4455
4396
|
return u(() => {
|
|
4456
4397
|
if (!e.current) return;
|
|
4457
|
-
r(
|
|
4398
|
+
r(Sr(e.current, t));
|
|
4458
4399
|
let n = new MutationObserver(() => {
|
|
4459
|
-
e.current && r(
|
|
4400
|
+
e.current && r(Sr(e.current, t));
|
|
4460
4401
|
});
|
|
4461
4402
|
return n.observe(document.documentElement, {
|
|
4462
4403
|
attributeFilter: ["data-theme"],
|
|
4463
4404
|
attributes: !0
|
|
4464
4405
|
}), () => n.disconnect();
|
|
4465
4406
|
}, [e, t]), n;
|
|
4466
|
-
},
|
|
4407
|
+
}, wr = {
|
|
4467
4408
|
fill: "var(--pds-color-foreground-default-secondary)",
|
|
4468
4409
|
fontFamily: "var(--pds-typography-ff-default)",
|
|
4469
4410
|
fontSize: "var(--pds-typography-size-xs)"
|
|
4470
|
-
},
|
|
4411
|
+
}, Tr = {
|
|
4471
4412
|
fill: "var(--pds-color-foreground-default-secondary)",
|
|
4472
4413
|
fontFamily: "var(--pds-typography-ff-default)",
|
|
4473
4414
|
fontSize: "var(--pds-typography-size-xs)",
|
|
4474
4415
|
fontWeight: "var(--pds-typography-fw-semibold)"
|
|
4475
|
-
},
|
|
4416
|
+
}, Er = ({ data: t, description: n, series: r, valueFormatter: i }) => {
|
|
4476
4417
|
let a = (e) => typeof e == "number" && i ? i(e) : typeof e == "number" ? e.toLocaleString() : String(e);
|
|
4477
4418
|
return /* @__PURE__ */ e.createElement("div", { className: "visually-hidden" }, /* @__PURE__ */ e.createElement("table", {
|
|
4478
4419
|
"aria-label": n,
|
|
@@ -4481,7 +4422,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4481
4422
|
key: t.dataKey,
|
|
4482
4423
|
scope: "col"
|
|
4483
4424
|
}, t.label)))), /* @__PURE__ */ e.createElement("tbody", null, t.map((t, n) => /* @__PURE__ */ e.createElement("tr", { key: `${t.label}-${n}` }, /* @__PURE__ */ e.createElement("td", null, t.label), r.map((n) => /* @__PURE__ */ e.createElement("td", { key: n.dataKey }, a(t[n.dataKey]))))))));
|
|
4484
|
-
},
|
|
4425
|
+
}, Dr = ({ ariaHidden: t, data: n = [], series: r, seriesColors: i, tableHeader: a = "Total", valueFormatter: o = (e) => e.toLocaleString(), variant: s = "inline" }) => {
|
|
4485
4426
|
let c = "pds-chart-legend", l = (e, t, n) => t || (n === void 0 ? i[e % i.length] : i[(n - 1) % i.length]);
|
|
4486
4427
|
if (s === "table") {
|
|
4487
4428
|
let i = r.map((e) => n.reduce((t, n) => {
|
|
@@ -4506,12 +4447,12 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4506
4447
|
className: `${c}__swatch`,
|
|
4507
4448
|
style: { backgroundColor: l(n, t.color, t.paletteIndex) }
|
|
4508
4449
|
}), t.label)));
|
|
4509
|
-
},
|
|
4450
|
+
}, Or = (e) => typeof e == "number" ? `${e}rem` : typeof e == "string" && e.endsWith("%") ? e : `${Vt[`SPACING_${e.toUpperCase()}`]}rem`, kr = ({ className: t, colorType: n = "regular", isAnimated: r = !0, shape: i = "rounded", size: a, textIsJustified: o, textLineCount: s = 1, textSize: c = "m", ...l }) => {
|
|
4510
4451
|
let u = "pds-skeleton", d = `${u}--${i}`, f = r ? `pds-pulse pds-pulse--${n}` : `${u}--${n}`, p = [
|
|
4511
4452
|
"text-block",
|
|
4512
4453
|
"code-block",
|
|
4513
4454
|
"code-block-prefix"
|
|
4514
|
-
], m = a?.height ?
|
|
4455
|
+
], m = a?.height ? Or(a.height) : "1rem", h = a?.width ? Or(a.width) : "100%", g = {
|
|
4515
4456
|
height: m,
|
|
4516
4457
|
width: h
|
|
4517
4458
|
};
|
|
@@ -4583,13 +4524,13 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4583
4524
|
}
|
|
4584
4525
|
}))));
|
|
4585
4526
|
return p.includes(i) ? w : _;
|
|
4586
|
-
},
|
|
4527
|
+
}, Ar = () => /* @__PURE__ */ e.createElement("div", { className: "pds-chart__skeleton-legend pds-chart__skeleton-legend--table" }, /* @__PURE__ */ e.createElement(kr, {
|
|
4587
4528
|
shape: "rounded",
|
|
4588
4529
|
size: {
|
|
4589
4530
|
height: 4,
|
|
4590
4531
|
width: "100%"
|
|
4591
4532
|
}
|
|
4592
|
-
})),
|
|
4533
|
+
})), jr = ({ borderRadius: t, height: n, legendAlignment: r = "center", legendVariant: i = "inline", showLegend: a = !0 }) => /* @__PURE__ */ e.createElement("div", { className: "pds-chart__skeleton" }, /* @__PURE__ */ e.createElement("div", {
|
|
4593
4534
|
className: "pds-chart__skeleton-area",
|
|
4594
4535
|
style: { height: n }
|
|
4595
4536
|
}, t ? /* @__PURE__ */ e.createElement("div", { style: {
|
|
@@ -4597,41 +4538,41 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4597
4538
|
height: "100%",
|
|
4598
4539
|
overflow: "hidden",
|
|
4599
4540
|
width: "100%"
|
|
4600
|
-
} }, /* @__PURE__ */ e.createElement(
|
|
4541
|
+
} }, /* @__PURE__ */ e.createElement(kr, {
|
|
4601
4542
|
shape: "rectangular",
|
|
4602
4543
|
size: {
|
|
4603
4544
|
height: "100%",
|
|
4604
4545
|
width: "100%"
|
|
4605
4546
|
}
|
|
4606
|
-
})) : /* @__PURE__ */ e.createElement(
|
|
4547
|
+
})) : /* @__PURE__ */ e.createElement(kr, {
|
|
4607
4548
|
shape: "rounded",
|
|
4608
4549
|
size: {
|
|
4609
4550
|
height: "100%",
|
|
4610
4551
|
width: "100%"
|
|
4611
4552
|
}
|
|
4612
|
-
})), a && (i === "table" ? /* @__PURE__ */ e.createElement(
|
|
4553
|
+
})), a && (i === "table" ? /* @__PURE__ */ e.createElement(Ar, null) : /* @__PURE__ */ e.createElement("div", { className: `pds-chart__skeleton-legend pds-chart__skeleton-legend--inline${r === "left" ? "-left" : ""}` }, /* @__PURE__ */ e.createElement(kr, {
|
|
4613
4554
|
shape: "rounded",
|
|
4614
4555
|
size: {
|
|
4615
4556
|
height: .75,
|
|
4616
4557
|
width: 5
|
|
4617
4558
|
}
|
|
4618
|
-
}), /* @__PURE__ */ e.createElement(
|
|
4559
|
+
}), /* @__PURE__ */ e.createElement(kr, {
|
|
4619
4560
|
shape: "rounded",
|
|
4620
4561
|
size: {
|
|
4621
4562
|
height: .75,
|
|
4622
4563
|
width: 5
|
|
4623
4564
|
}
|
|
4624
|
-
}), /* @__PURE__ */ e.createElement(
|
|
4565
|
+
}), /* @__PURE__ */ e.createElement(kr, {
|
|
4625
4566
|
shape: "rounded",
|
|
4626
4567
|
size: {
|
|
4627
4568
|
height: .75,
|
|
4628
4569
|
width: 5
|
|
4629
4570
|
}
|
|
4630
|
-
})))),
|
|
4571
|
+
})))), Mr = (e) => {
|
|
4631
4572
|
let t = Math.abs(e);
|
|
4632
4573
|
return t >= 1e9 ? `${(e / 1e9).toFixed(1).replace(/\.0$/, "")}B` : t >= 1e6 ? `${(e / 1e6).toFixed(1).replace(/\.0$/, "")}M` : t >= 1e3 ? `${(e / 1e3).toFixed(1).replace(/\.0$/, "")}K` : String(e);
|
|
4633
|
-
},
|
|
4634
|
-
let { accessibleTableDescription: B = "Bar chart data", emptyStateHeading: V = "No data available", emptyStateMessage: G, legendTableHeader: K, loadingLabel: q = "Loading chart data" } = d, J = h(null), ee =
|
|
4574
|
+
}, Nr = ({ barRadius: t = 2, chartHeight: n, chartWidth: r, className: i, colorPalette: a = "categorical", data: o = [], isLoading: s = !1, isThumbnail: l = !1, labelStrings: d = {}, layout: f = "horizontal", legendVariant: p = "inline", onTimePeriodChange: m, selectedTimePeriod: _, series: v = [], showAccessibleTable: y, showAxisLines: b, showGrid: x, showLegend: S, showTooltip: C, timePeriodOptions: D, tooltipContent: k, variant: A = "stacked", xAxisLabel: j, xAxisTickInterval: N, yAxisDomain: P, yAxisFormatter: F = Mr, yAxisLabel: I, yAxisTickInterval: L, ...R }) => {
|
|
4575
|
+
let { accessibleTableDescription: B = "Bar chart data", emptyStateHeading: V = "No data available", emptyStateMessage: G, legendTableHeader: K, loadingLabel: q = "Loading chart data" } = d, J = h(null), ee = _r(a, Cr(J, a)), ne = n ?? (l ? 60 : 360), X = r ?? (l ? 60 : void 0), oe = x ?? !l, se = b ?? !l, ce = S ?? !l, le = C ?? !l, ue = y ?? !0, [de, fe] = g(null), pe = h(de);
|
|
4635
4576
|
de && (pe.current = de);
|
|
4636
4577
|
let me = h({ getBoundingClientRect: () => ({
|
|
4637
4578
|
bottom: 0,
|
|
@@ -4689,7 +4630,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4689
4630
|
]),
|
|
4690
4631
|
style: { maxWidth: X },
|
|
4691
4632
|
...R
|
|
4692
|
-
}, /* @__PURE__ */ e.createElement(
|
|
4633
|
+
}, /* @__PURE__ */ e.createElement(jr, {
|
|
4693
4634
|
height: ne,
|
|
4694
4635
|
legendVariant: p,
|
|
4695
4636
|
showLegend: ce
|
|
@@ -4706,7 +4647,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4706
4647
|
maxWidth: X
|
|
4707
4648
|
},
|
|
4708
4649
|
...R
|
|
4709
|
-
}, /* @__PURE__ */ e.createElement(
|
|
4650
|
+
}, /* @__PURE__ */ e.createElement(pr, {
|
|
4710
4651
|
heading: V,
|
|
4711
4652
|
message: G
|
|
4712
4653
|
}));
|
|
@@ -4764,7 +4705,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4764
4705
|
className: Z([xe, i ?? ""]),
|
|
4765
4706
|
style: X ? { maxWidth: X } : void 0,
|
|
4766
4707
|
...R
|
|
4767
|
-
}, !l && D && D.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${xe}__header` }, /* @__PURE__ */ e.createElement(
|
|
4708
|
+
}, !l && D && D.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${xe}__header` }, /* @__PURE__ */ e.createElement(hr, {
|
|
4768
4709
|
autoWidth: !0,
|
|
4769
4710
|
id: `${xe}-time-period`,
|
|
4770
4711
|
label: "Time period",
|
|
@@ -4817,13 +4758,13 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4817
4758
|
hide: !se,
|
|
4818
4759
|
interval: N,
|
|
4819
4760
|
label: j && se ? {
|
|
4820
|
-
...
|
|
4761
|
+
...Tr,
|
|
4821
4762
|
offset: -15,
|
|
4822
4763
|
position: "insideBottom",
|
|
4823
4764
|
value: j
|
|
4824
4765
|
} : void 0,
|
|
4825
4766
|
padding: Te ? void 0 : "no-gap",
|
|
4826
|
-
tick: se ?
|
|
4767
|
+
tick: se ? wr : !1,
|
|
4827
4768
|
tickFormatter: Te ? F : void 0,
|
|
4828
4769
|
tickLine: !1,
|
|
4829
4770
|
tickMargin: 10,
|
|
@@ -4835,14 +4776,14 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4835
4776
|
hide: !se,
|
|
4836
4777
|
interval: L,
|
|
4837
4778
|
label: I && se ? {
|
|
4838
|
-
...
|
|
4779
|
+
...Tr,
|
|
4839
4780
|
angle: -90,
|
|
4840
4781
|
dx: -44,
|
|
4841
4782
|
position: "center",
|
|
4842
4783
|
value: I
|
|
4843
4784
|
} : void 0,
|
|
4844
4785
|
padding: Te ? "no-gap" : void 0,
|
|
4845
|
-
tick: se ?
|
|
4786
|
+
tick: se ? wr : !1,
|
|
4846
4787
|
tickFormatter: Te ? void 0 : F,
|
|
4847
4788
|
tickLine: !1,
|
|
4848
4789
|
tickMargin: 6,
|
|
@@ -4861,12 +4802,12 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4861
4802
|
}), v.map((t, n) => /* @__PURE__ */ e.createElement(H, {
|
|
4862
4803
|
key: t.dataKey,
|
|
4863
4804
|
dataKey: t.dataKey,
|
|
4864
|
-
fill:
|
|
4805
|
+
fill: xr(n, ee, t.color, vr(a, t.paletteIndex)),
|
|
4865
4806
|
name: t.label,
|
|
4866
4807
|
onMouseEnter: k ? void 0 : (e) => {
|
|
4867
4808
|
let r = e.payload;
|
|
4868
4809
|
le && r && fe({
|
|
4869
|
-
color:
|
|
4810
|
+
color: xr(n, ee, t.color, vr(a, t.paletteIndex)),
|
|
4870
4811
|
label: String(r.label ?? ""),
|
|
4871
4812
|
name: t.label,
|
|
4872
4813
|
value: Number(r[t.dataKey] ?? 0)
|
|
@@ -4889,7 +4830,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4889
4830
|
}, /* @__PURE__ */ e.createElement("p", { className: "recharts-tooltip-label" }, pe.current.label), /* @__PURE__ */ e.createElement("p", { className: "recharts-tooltip-item" }, /* @__PURE__ */ e.createElement("span", {
|
|
4890
4831
|
className: "recharts-tooltip-item__color",
|
|
4891
4832
|
style: { backgroundColor: pe.current.color }
|
|
4892
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "recharts-tooltip-item-name" }, pe.current.name), /* @__PURE__ */ e.createElement("span", { className: "recharts-tooltip-item-separator" }, ": "), /* @__PURE__ */ e.createElement("span", { className: "recharts-tooltip-item-value" }, F(pe.current.value)))), ce && /* @__PURE__ */ e.createElement(
|
|
4833
|
+
}), /* @__PURE__ */ e.createElement("span", { className: "recharts-tooltip-item-name" }, pe.current.name), /* @__PURE__ */ e.createElement("span", { className: "recharts-tooltip-item-separator" }, ": "), /* @__PURE__ */ e.createElement("span", { className: "recharts-tooltip-item-value" }, F(pe.current.value)))), ce && /* @__PURE__ */ e.createElement(Dr, {
|
|
4893
4834
|
ariaHidden: p === "table" && ue,
|
|
4894
4835
|
data: o,
|
|
4895
4836
|
series: v,
|
|
@@ -4897,19 +4838,19 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4897
4838
|
tableHeader: K,
|
|
4898
4839
|
valueFormatter: F,
|
|
4899
4840
|
variant: p
|
|
4900
|
-
}), ue && /* @__PURE__ */ e.createElement(
|
|
4841
|
+
}), ue && /* @__PURE__ */ e.createElement(Er, {
|
|
4901
4842
|
data: o,
|
|
4902
4843
|
description: B,
|
|
4903
4844
|
series: v,
|
|
4904
4845
|
valueFormatter: F
|
|
4905
4846
|
}));
|
|
4906
|
-
},
|
|
4847
|
+
}, Pr = (e) => {
|
|
4907
4848
|
switch (e) {
|
|
4908
4849
|
case "dashed": return "8 4";
|
|
4909
4850
|
default: return;
|
|
4910
4851
|
}
|
|
4911
|
-
},
|
|
4912
|
-
let { accessibleTableDescription: M = "Line chart data", emptyStateHeading: N = "No data available", emptyStateMessage: P, legendTableHeader: F, loadingLabel: I = "Loading chart data" } = l, L = h(null), R =
|
|
4852
|
+
}, Fr = ({ annotations: t, chartHeight: n, chartWidth: r, className: i, colorPalette: a = "categorical", data: o = [], isLoading: s = !1, isThumbnail: c = !1, labelStrings: l = {}, legendVariant: u = "inline", lineStyle: d = "smooth", onTimePeriodChange: f, referenceLines: p, selectedTimePeriod: m, series: g = [], showAccessibleTable: _, showAxisLines: v, showDataPoints: y, showGrid: b, showLegend: x, showTooltip: S, timePeriodOptions: C, tooltipContent: w, xAxisLabel: T, xAxisTickInterval: E, yAxisDomain: D, yAxisFormatter: O = Mr, yAxisLabel: k, yAxisTickInterval: A, ...j }) => {
|
|
4853
|
+
let { accessibleTableDescription: M = "Line chart data", emptyStateHeading: N = "No data available", emptyStateMessage: P, legendTableHeader: F, loadingLabel: I = "Loading chart data" } = l, L = h(null), R = _r(a, Cr(L, a)), z = n ?? (c ? 60 : 360), B = r ?? (c ? 60 : void 0), V = b ?? !c, H = v ?? !c, U = x ?? !c, G = S ?? !c, J = y ?? !c, ee = _ ?? !0, te = "pds-line-chart";
|
|
4913
4854
|
return s ? /* @__PURE__ */ e.createElement("div", {
|
|
4914
4855
|
ref: L,
|
|
4915
4856
|
"aria-busy": "true",
|
|
@@ -4921,7 +4862,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4921
4862
|
]),
|
|
4922
4863
|
style: { maxWidth: B },
|
|
4923
4864
|
...j
|
|
4924
|
-
}, /* @__PURE__ */ e.createElement(
|
|
4865
|
+
}, /* @__PURE__ */ e.createElement(jr, {
|
|
4925
4866
|
height: z,
|
|
4926
4867
|
legendVariant: u,
|
|
4927
4868
|
showLegend: U
|
|
@@ -4937,7 +4878,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4937
4878
|
maxWidth: B
|
|
4938
4879
|
},
|
|
4939
4880
|
...j
|
|
4940
|
-
}, /* @__PURE__ */ e.createElement(
|
|
4881
|
+
}, /* @__PURE__ */ e.createElement(pr, {
|
|
4941
4882
|
heading: N,
|
|
4942
4883
|
message: P
|
|
4943
4884
|
})) : /* @__PURE__ */ e.createElement("div", {
|
|
@@ -4945,7 +4886,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4945
4886
|
className: Z([te, i ?? ""]),
|
|
4946
4887
|
style: B ? { maxWidth: B } : void 0,
|
|
4947
4888
|
...j
|
|
4948
|
-
}, !c && C && C.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${te}__header` }, /* @__PURE__ */ e.createElement(
|
|
4889
|
+
}, !c && C && C.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${te}__header` }, /* @__PURE__ */ e.createElement(hr, {
|
|
4949
4890
|
autoWidth: !0,
|
|
4950
4891
|
id: `${te}-time-period`,
|
|
4951
4892
|
label: "Time period",
|
|
@@ -4991,12 +4932,12 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4991
4932
|
hide: !H,
|
|
4992
4933
|
interval: E,
|
|
4993
4934
|
label: T && H ? {
|
|
4994
|
-
...
|
|
4935
|
+
...Tr,
|
|
4995
4936
|
offset: -15,
|
|
4996
4937
|
position: "insideBottom",
|
|
4997
4938
|
value: T
|
|
4998
4939
|
} : void 0,
|
|
4999
|
-
tick: H ?
|
|
4940
|
+
tick: H ? wr : !1,
|
|
5000
4941
|
tickLine: !1,
|
|
5001
4942
|
tickMargin: 10
|
|
5002
4943
|
}), /* @__PURE__ */ e.createElement(ae, {
|
|
@@ -5005,13 +4946,13 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5005
4946
|
hide: !H,
|
|
5006
4947
|
interval: A,
|
|
5007
4948
|
label: k && H ? {
|
|
5008
|
-
...
|
|
4949
|
+
...Tr,
|
|
5009
4950
|
angle: -90,
|
|
5010
4951
|
dx: -44,
|
|
5011
4952
|
position: "center",
|
|
5012
4953
|
value: k
|
|
5013
4954
|
} : void 0,
|
|
5014
|
-
tick: H ?
|
|
4955
|
+
tick: H ? wr : !1,
|
|
5015
4956
|
tickFormatter: O,
|
|
5016
4957
|
tickLine: !1,
|
|
5017
4958
|
tickMargin: 6
|
|
@@ -5038,13 +4979,13 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5038
4979
|
activeDot: J ? { r: 6 } : !1,
|
|
5039
4980
|
dataKey: t.dataKey,
|
|
5040
4981
|
dot: J ? {
|
|
5041
|
-
fill:
|
|
4982
|
+
fill: xr(n, R, t.color, vr(a, t.paletteIndex)),
|
|
5042
4983
|
r: 4,
|
|
5043
4984
|
strokeWidth: 0
|
|
5044
4985
|
} : !1,
|
|
5045
4986
|
name: t.label,
|
|
5046
|
-
stroke:
|
|
5047
|
-
strokeDasharray:
|
|
4987
|
+
stroke: xr(n, R, t.color, vr(a, t.paletteIndex)),
|
|
4988
|
+
strokeDasharray: Pr(t.strokeStyle),
|
|
5048
4989
|
strokeWidth: 2,
|
|
5049
4990
|
type: d === "straight" ? "linear" : "monotone"
|
|
5050
4991
|
})), !c && p?.map((t, n) => {
|
|
@@ -5064,7 +5005,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5064
5005
|
}, t.label.toUpperCase());
|
|
5065
5006
|
},
|
|
5066
5007
|
stroke: r,
|
|
5067
|
-
strokeDasharray:
|
|
5008
|
+
strokeDasharray: Pr(t.strokeStyle ?? "dashed"),
|
|
5068
5009
|
y: t.value
|
|
5069
5010
|
});
|
|
5070
5011
|
}), !c && t?.map((t, n) => {
|
|
@@ -5084,10 +5025,10 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5084
5025
|
}, t.text.toUpperCase());
|
|
5085
5026
|
},
|
|
5086
5027
|
stroke: r,
|
|
5087
|
-
strokeDasharray:
|
|
5028
|
+
strokeDasharray: Pr(t.strokeStyle ?? "dashed"),
|
|
5088
5029
|
x: t.atLabel
|
|
5089
5030
|
});
|
|
5090
|
-
})))), U && /* @__PURE__ */ e.createElement(
|
|
5031
|
+
})))), U && /* @__PURE__ */ e.createElement(Dr, {
|
|
5091
5032
|
ariaHidden: u === "table" && ee,
|
|
5092
5033
|
data: o,
|
|
5093
5034
|
series: g,
|
|
@@ -5095,14 +5036,14 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5095
5036
|
tableHeader: F,
|
|
5096
5037
|
valueFormatter: O,
|
|
5097
5038
|
variant: u
|
|
5098
|
-
}), ee && /* @__PURE__ */ e.createElement(
|
|
5039
|
+
}), ee && /* @__PURE__ */ e.createElement(Er, {
|
|
5099
5040
|
data: o,
|
|
5100
5041
|
description: M,
|
|
5101
5042
|
series: g,
|
|
5102
5043
|
valueFormatter: O
|
|
5103
5044
|
}));
|
|
5104
|
-
},
|
|
5105
|
-
let { accessibleTableDescription: _ = "Pie chart data", emptyStateHeading: v = "No data available", emptyStateMessage: y, loadingLabel: b = "Loading chart data" } = c, x = h(null), S =
|
|
5045
|
+
}, Ir = (e, t) => `(${t > 0 ? Math.round(e / t * 100) : 0}%)`, Lr = ({ chartHeight: t, chartWidth: n, className: r, colorPalette: i = "categorical", data: a = [], isLoading: o = !1, isThumbnail: s = !1, labelStrings: c = {}, legendVariant: l = "inline", showAccessibleTable: u = !0, showLegend: d, showTooltip: f, valueFormatter: p = Ir, variant: m = "pie", ...g }) => {
|
|
5046
|
+
let { accessibleTableDescription: _ = "Pie chart data", emptyStateHeading: v = "No data available", emptyStateMessage: y, loadingLabel: b = "Loading chart data" } = c, x = h(null), S = _r(i, Cr(x, i)), C = "pds-pie-chart", w = t ?? (s ? 80 : 300), T = n ?? (s ? 80 : void 0), E = d ?? !s, D = f ?? !s, O = a.reduce((e, t) => e + t.value, 0), k = (e, t) => xr(e, S, t.color, vr(i, t.paletteIndex));
|
|
5106
5047
|
if (o) {
|
|
5107
5048
|
let t = `${Math.round(w * .8)}px`;
|
|
5108
5049
|
return /* @__PURE__ */ e.createElement("div", {
|
|
@@ -5119,25 +5060,25 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5119
5060
|
}, /* @__PURE__ */ e.createElement("div", { className: `${C}__skeleton` }, /* @__PURE__ */ e.createElement("div", {
|
|
5120
5061
|
className: `${C}__skeleton-chart`,
|
|
5121
5062
|
style: { height: w }
|
|
5122
|
-
}, /* @__PURE__ */ e.createElement(
|
|
5063
|
+
}, /* @__PURE__ */ e.createElement(kr, {
|
|
5123
5064
|
shape: "circular",
|
|
5124
5065
|
style: {
|
|
5125
5066
|
height: t,
|
|
5126
5067
|
width: t
|
|
5127
5068
|
}
|
|
5128
|
-
})), E && /* @__PURE__ */ e.createElement("div", { className: "pds-chart__skeleton-legend pds-chart__skeleton-legend--inline" }, /* @__PURE__ */ e.createElement(
|
|
5069
|
+
})), E && /* @__PURE__ */ e.createElement("div", { className: "pds-chart__skeleton-legend pds-chart__skeleton-legend--inline" }, /* @__PURE__ */ e.createElement(kr, {
|
|
5129
5070
|
shape: "rounded",
|
|
5130
5071
|
size: {
|
|
5131
5072
|
height: .75,
|
|
5132
5073
|
width: 5
|
|
5133
5074
|
}
|
|
5134
|
-
}), /* @__PURE__ */ e.createElement(
|
|
5075
|
+
}), /* @__PURE__ */ e.createElement(kr, {
|
|
5135
5076
|
shape: "rounded",
|
|
5136
5077
|
size: {
|
|
5137
5078
|
height: .75,
|
|
5138
5079
|
width: 5
|
|
5139
5080
|
}
|
|
5140
|
-
}), /* @__PURE__ */ e.createElement(
|
|
5081
|
+
}), /* @__PURE__ */ e.createElement(kr, {
|
|
5141
5082
|
shape: "rounded",
|
|
5142
5083
|
size: {
|
|
5143
5084
|
height: .75,
|
|
@@ -5157,7 +5098,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5157
5098
|
maxWidth: T
|
|
5158
5099
|
},
|
|
5159
5100
|
...g
|
|
5160
|
-
}, /* @__PURE__ */ e.createElement(
|
|
5101
|
+
}, /* @__PURE__ */ e.createElement(pr, {
|
|
5161
5102
|
heading: v,
|
|
5162
5103
|
message: y
|
|
5163
5104
|
}));
|
|
@@ -5231,8 +5172,8 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5231
5172
|
let n = O > 0 ? Math.round(t.value / O * 100) : 0;
|
|
5232
5173
|
return /* @__PURE__ */ e.createElement("tr", { key: t.label }, /* @__PURE__ */ e.createElement("td", null, t.label), /* @__PURE__ */ e.createElement("td", null, t.value.toLocaleString()), /* @__PURE__ */ e.createElement("td", null, n, "%"));
|
|
5233
5174
|
})))));
|
|
5234
|
-
},
|
|
5235
|
-
let { accessibleTableDescription: y = "Proportion bar data", emptyStateHeading: b = "No data available", emptyStateMessage: x, loadingLabel: S = "Loading chart data" } = l, C = h(null), D =
|
|
5175
|
+
}, Rr = (e, t) => `(${t > 0 ? Math.round(e / t * 100) : 0}%)`, zr = ({ barHeight: t = 16, chartWidth: n, className: r, colorPalette: i = "categorical", data: a = [], isLoading: o = !1, isThumbnail: s = !1, labelStrings: l = {}, legendAlignment: d = "left", showAccessibleTable: f = !0, showLegend: p, showTooltip: m, valueFormatter: _ = Rr, ...v }) => {
|
|
5176
|
+
let { accessibleTableDescription: y = "Proportion bar data", emptyStateHeading: b = "No data available", emptyStateMessage: x, loadingLabel: S = "Loading chart data" } = l, C = h(null), D = _r(i, Cr(C, i)), k = "pds-proportion-bar", A = n ?? (s ? 200 : void 0), j = p ?? !s, N = m ?? !s, P = a.reduce((e, t) => e + t.value, 0), F = (e, t) => xr(e, D, t.color, vr(i, t.paletteIndex)), [I, L] = g(null), R = h(I);
|
|
5236
5177
|
I && (R.current = I);
|
|
5237
5178
|
let B = h({ getBoundingClientRect: () => ({
|
|
5238
5179
|
bottom: 0,
|
|
@@ -5287,7 +5228,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5287
5228
|
]),
|
|
5288
5229
|
style: A ? { maxWidth: A } : void 0,
|
|
5289
5230
|
...v
|
|
5290
|
-
}, /* @__PURE__ */ e.createElement(
|
|
5231
|
+
}, /* @__PURE__ */ e.createElement(jr, {
|
|
5291
5232
|
borderRadius: "var(--pds-border-radius-bar)",
|
|
5292
5233
|
height: t,
|
|
5293
5234
|
legendAlignment: d,
|
|
@@ -5300,7 +5241,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5300
5241
|
r ?? ""
|
|
5301
5242
|
]),
|
|
5302
5243
|
...v
|
|
5303
|
-
}, /* @__PURE__ */ e.createElement(
|
|
5244
|
+
}, /* @__PURE__ */ e.createElement(pr, {
|
|
5304
5245
|
heading: b,
|
|
5305
5246
|
message: x
|
|
5306
5247
|
})) : /* @__PURE__ */ e.createElement("div", {
|
|
@@ -5359,7 +5300,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5359
5300
|
let n = P > 0 ? Math.round(t.value / P * 100) : 0;
|
|
5360
5301
|
return /* @__PURE__ */ e.createElement("tr", { key: t.label }, /* @__PURE__ */ e.createElement("td", null, t.label), /* @__PURE__ */ e.createElement("td", null, t.value.toLocaleString()), /* @__PURE__ */ e.createElement("td", null, n, "%"));
|
|
5361
5302
|
})))));
|
|
5362
|
-
},
|
|
5303
|
+
}, Br = /* @__PURE__ */ dt((/* @__PURE__ */ lt(((e, t) => {
|
|
5363
5304
|
var n = function(e) {
|
|
5364
5305
|
var t = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, n = 0, r = {}, i = {
|
|
5365
5306
|
manual: e.Prism && e.Prism.manual,
|
|
@@ -5652,8 +5593,8 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5652
5593
|
}(typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {});
|
|
5653
5594
|
t !== void 0 && t.exports && (t.exports = n), typeof global < "u" && (global.Prism = n);
|
|
5654
5595
|
})))(), 1);
|
|
5655
|
-
typeof globalThis < "u" && (globalThis.Prism =
|
|
5656
|
-
var
|
|
5596
|
+
typeof globalThis < "u" && (globalThis.Prism = Br.default);
|
|
5597
|
+
var Vr = Br.default;
|
|
5657
5598
|
//#endregion
|
|
5658
5599
|
//#region node_modules/prismjs/components/prism-diff.js
|
|
5659
5600
|
Prism.languages.markup = {
|
|
@@ -6323,7 +6264,7 @@ Prism.languages.markup = {
|
|
|
6323
6264
|
})(Prism);
|
|
6324
6265
|
//#endregion
|
|
6325
6266
|
//#region src/components/CodeBlock/themes/pds.ts
|
|
6326
|
-
var
|
|
6267
|
+
var Hr = {
|
|
6327
6268
|
plain: {
|
|
6328
6269
|
color: "var(--pds-color-code-block-foreground)",
|
|
6329
6270
|
backgroundColor: "var(--pds-color-code-block-background)"
|
|
@@ -6399,10 +6340,10 @@ var Ur = {
|
|
|
6399
6340
|
style: { color: "var(--pds-color-code-block-syntax-inserted)" }
|
|
6400
6341
|
}
|
|
6401
6342
|
]
|
|
6402
|
-
},
|
|
6343
|
+
}, Ur = ({ 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 }) => {
|
|
6403
6344
|
let g = "pds-code-block", _ = m ? `${g}__line-wrapped` : "", v = {};
|
|
6404
6345
|
s && (v.height = `${s}rem`), d && (v.maxHeight = `${d}rem`);
|
|
6405
|
-
let y = /* @__PURE__ */ e.createElement("div", { className: `${g}__code` }, /* @__PURE__ */ e.createElement(
|
|
6346
|
+
let y = /* @__PURE__ */ e.createElement("div", { className: `${g}__code` }, /* @__PURE__ */ e.createElement(kr, {
|
|
6406
6347
|
className: `${g}__skeleton`,
|
|
6407
6348
|
colorType: "bold",
|
|
6408
6349
|
shape: a || o ? "code-block-prefix" : "code-block",
|
|
@@ -6451,8 +6392,8 @@ var Ur = {
|
|
|
6451
6392
|
}, c ? y : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(X, {
|
|
6452
6393
|
code: n,
|
|
6453
6394
|
language: l || "",
|
|
6454
|
-
prism:
|
|
6455
|
-
theme:
|
|
6395
|
+
prism: Vr,
|
|
6396
|
+
theme: Hr
|
|
6456
6397
|
}, /* @__PURE__ */ e.createElement(X.Code, {
|
|
6457
6398
|
className: `${g}__code`,
|
|
6458
6399
|
tabIndex: 0
|
|
@@ -6461,11 +6402,11 @@ var Ur = {
|
|
|
6461
6402
|
clipboardText: n,
|
|
6462
6403
|
variant: "reverse"
|
|
6463
6404
|
}))));
|
|
6464
|
-
},
|
|
6405
|
+
}, Wr = {
|
|
6465
6406
|
addon: "circlePlus",
|
|
6466
6407
|
included: "circleCheck",
|
|
6467
6408
|
notIncluded: "xmark"
|
|
6468
|
-
},
|
|
6409
|
+
}, Gr = ({ className: t, listItems: n, listLabel: r, moreLink: i, renderTypeLabels: a = !0, showBorder: o = !1, size: s = "s", typeLabels: c = {
|
|
6469
6410
|
addon: "Add-on",
|
|
6470
6411
|
included: "Included",
|
|
6471
6412
|
notIncluded: "Not included"
|
|
@@ -6484,10 +6425,10 @@ var Ur = {
|
|
|
6484
6425
|
className: `${u}__list-item ${u}__list-item--${t.type}`
|
|
6485
6426
|
}, /* @__PURE__ */ e.createElement("div", { className: `${u}__item-icon-wrapper` }, /* @__PURE__ */ e.createElement(Q, {
|
|
6486
6427
|
className: `${u}__item-icon`,
|
|
6487
|
-
iconName:
|
|
6428
|
+
iconName: Wr[t.type],
|
|
6488
6429
|
size: s
|
|
6489
6430
|
})), a && /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, c[t.type], ":", " "), t.text))), i && /* @__PURE__ */ e.createElement("div", { className: `${u}__more-link` }, i));
|
|
6490
|
-
},
|
|
6431
|
+
}, Kr = ({ className: t, platform: n, videoId: r, videoTitle: i, ...a }) => {
|
|
6491
6432
|
let o = /* @__PURE__ */ e.createElement("iframe", {
|
|
6492
6433
|
allow: "autoplay; fullscreen; picture-in-picture; clipboard-write; encrypted-media",
|
|
6493
6434
|
src: `https://fast.wistia.net/embed/iframe/${r}`,
|
|
@@ -6518,7 +6459,7 @@ var Ur = {
|
|
|
6518
6459
|
className: Z(["pds-video-embed", t ?? ""]),
|
|
6519
6460
|
...a
|
|
6520
6461
|
}, l);
|
|
6521
|
-
},
|
|
6462
|
+
}, qr = ({ 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 }) => {
|
|
6522
6463
|
let m = "pds-horizontal-empty-state", h = `${m}--${t}`, g = i ? `${m}--indented-content` : null, _ = f ? `${m}--video` : null, v = {
|
|
6523
6464
|
marginInlineStart: c,
|
|
6524
6465
|
width: l
|
|
@@ -6544,11 +6485,11 @@ var Ur = {
|
|
|
6544
6485
|
alt: "",
|
|
6545
6486
|
className: `${m}__image`,
|
|
6546
6487
|
src: s
|
|
6547
|
-
}) : s), f && /* @__PURE__ */ e.createElement("div", { className: `${m}__media ${m}__media--video` }, /* @__PURE__ */ e.createElement(
|
|
6488
|
+
}) : s), f && /* @__PURE__ */ e.createElement("div", { className: `${m}__media ${m}__media--video` }, /* @__PURE__ */ e.createElement(Kr, {
|
|
6548
6489
|
platform: f.platform,
|
|
6549
6490
|
videoId: f.videoId
|
|
6550
6491
|
})));
|
|
6551
|
-
},
|
|
6492
|
+
}, Jr = ({ className: t, ctaRegion: n, heading: r, headingLevel: i = "h2", image: a, imageHeight: o = "120", imageWidth: s = "auto", message: c, ...l }) => {
|
|
6552
6493
|
let u = "pds-vertical-empty-state";
|
|
6553
6494
|
return c = typeof c == "string" ? /* @__PURE__ */ e.createElement("p", { className: `${u}__message` }, c) : /* @__PURE__ */ e.createElement("div", { className: `${u}__message` }, c), /* @__PURE__ */ e.createElement("div", {
|
|
6554
6495
|
className: Z([u, t ?? ""]),
|
|
@@ -6563,7 +6504,7 @@ var Ur = {
|
|
|
6563
6504
|
baseClass: u,
|
|
6564
6505
|
level: i
|
|
6565
6506
|
}, r), c && c), n && /* @__PURE__ */ e.createElement("div", { className: `${u}__cta` }, n));
|
|
6566
|
-
},
|
|
6507
|
+
}, Yr = ({ additions: t = 4, className: n, componentWidth: r, deletions: i = 2, translationStrings: a = {
|
|
6567
6508
|
linesChanged: "lines changed",
|
|
6568
6509
|
additions: "additions",
|
|
6569
6510
|
deletions: "deletions"
|
|
@@ -6595,7 +6536,7 @@ var Ur = {
|
|
|
6595
6536
|
customTrigger: /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement("div", { className: `${s}__ahead-bar` })),
|
|
6596
6537
|
preferredPlacement: "top"
|
|
6597
6538
|
}))));
|
|
6598
|
-
},
|
|
6539
|
+
}, Xr = {
|
|
6599
6540
|
amex: /* @__PURE__ */ e.createElement("svg", {
|
|
6600
6541
|
fill: "none",
|
|
6601
6542
|
height: "42",
|
|
@@ -6813,7 +6754,7 @@ var Ur = {
|
|
|
6813
6754
|
height: "42",
|
|
6814
6755
|
width: "70"
|
|
6815
6756
|
}))))
|
|
6816
|
-
},
|
|
6757
|
+
}, Zr = ({ className: t, paymentType: n, size: r = "2xl", ...i }) => {
|
|
6817
6758
|
let a = "pds-payment-icon", o = `${a}--${r}`;
|
|
6818
6759
|
return /* @__PURE__ */ e.createElement("div", {
|
|
6819
6760
|
className: Z([
|
|
@@ -6822,8 +6763,8 @@ var Ur = {
|
|
|
6822
6763
|
t ?? ""
|
|
6823
6764
|
]),
|
|
6824
6765
|
...i
|
|
6825
|
-
},
|
|
6826
|
-
},
|
|
6766
|
+
}, Xr[n]);
|
|
6767
|
+
}, Qr = ({ avatarProps: t, className: n, isSidebarCollapsed: r, isSingleLine: i, primaryText: a, secondaryText: o, ...s }) => {
|
|
6827
6768
|
let l = "pds-identity-block", d = r ? `${l}--collapsed` : null, f = i ? `${l}--single-line` : null, p = t ? {
|
|
6828
6769
|
...t,
|
|
6829
6770
|
size: i ? "s" : "m"
|
|
@@ -6862,7 +6803,7 @@ var Ur = {
|
|
|
6862
6803
|
className: `${l}__secondary-text`,
|
|
6863
6804
|
title: x ? o : void 0
|
|
6864
6805
|
}, o)));
|
|
6865
|
-
},
|
|
6806
|
+
}, $r = o(({ checked: t, className: n, defaultChecked: r, disabled: i, id: a, indeterminate: o, inputProps: s, inputWidth: l, label: u, message: d, name: f, nestingLevel: p = 0, onBlur: m, onChange: h, onFocus: _, required: v, showLabel: y = !0, size: b = "s", validationMessage: x, validationStatus: S, value: C, ...w }, T) => {
|
|
6866
6807
|
let E = l ? { width: `${l / 16}rem` } : null, D = "pds-checkbox", O = i ? $.disabled : null, k = S === "error" ? $.error : null, A = p > 0 ? `${D}--indent-${p}` : null, j = v && !i ? $.required : null, M = b === "s" ? null : `${D}--${b}`, N = S === "success" ? $.success : null, P = x || d, F = t !== void 0, [I, L] = g(r === void 0 ? !1 : r), R = t || I, z = (e) => {
|
|
6867
6808
|
F || L(e.target.checked), h && h(e);
|
|
6868
6809
|
}, B = `${D}__box`, V = o ? null : R ? `${B}--checked` : null, H = o ? `${B}--indeterminate` : null, U = c(() => {
|
|
@@ -6934,7 +6875,7 @@ var Ur = {
|
|
|
6934
6875
|
message: P,
|
|
6935
6876
|
validationStatus: S
|
|
6936
6877
|
}));
|
|
6937
|
-
}),
|
|
6878
|
+
}), ei = ({ children: t, className: n, disabled: r = !1, fieldsetProps: i, id: a, inputWidth: o, label: s, labelVariant: c, message: l, required: u = !1, showLabel: d = !0, tooltipText: f = null, validationMessage: p, validationStatus: m, ...h }) => {
|
|
6938
6879
|
let g = o ? { width: `${o / 16}rem` } : null, _ = "pds-checkbox-group", v = r ? $.disabled : null, y = u && !r ? $.required : null, b = m === "error" ? $.error : null, x = m === "success" ? $.success : null, S = p || l;
|
|
6939
6880
|
return /* @__PURE__ */ e.createElement("div", {
|
|
6940
6881
|
className: Z([
|
|
@@ -6967,7 +6908,7 @@ var Ur = {
|
|
|
6967
6908
|
message: S,
|
|
6968
6909
|
validationStatus: m
|
|
6969
6910
|
}));
|
|
6970
|
-
},
|
|
6911
|
+
}, ti = ({ className: t, disabled: n = !1, fieldsetProps: r, id: i, inputWidth: a, label: o, labelVariant: s, message: c, onGroupBlur: l, onValueChange: d, options: f, required: p = !1, showLabel: m = !0, tooltipText: _ = null, validationMessage: v, validationStatus: y, ...b }) => {
|
|
6971
6912
|
let x = a ? { width: `${a / 16}rem` } : null, S = "pds-checkbox-group", C = n ? $.disabled : null, w = p && !n ? $.required : null, T = y === "error" ? $.error : null, E = y === "success" ? $.success : null, D = v || c;
|
|
6972
6913
|
f.map((e) => {
|
|
6973
6914
|
e.id || (e.id = e.value);
|
|
@@ -7016,7 +6957,7 @@ var Ur = {
|
|
|
7016
6957
|
required: p,
|
|
7017
6958
|
showLabel: m,
|
|
7018
6959
|
tooltipText: _
|
|
7019
|
-
}), /* @__PURE__ */ e.createElement("div", { className: `${S}__options` }, f.map((t) => /* @__PURE__ */ e.createElement(
|
|
6960
|
+
}), /* @__PURE__ */ e.createElement("div", { className: `${S}__options` }, f.map((t) => /* @__PURE__ */ e.createElement($r, {
|
|
7020
6961
|
key: t.id,
|
|
7021
6962
|
checked: t.checked,
|
|
7022
6963
|
className: `${S}__checkbox`,
|
|
@@ -7034,7 +6975,7 @@ var Ur = {
|
|
|
7034
6975
|
message: D,
|
|
7035
6976
|
validationStatus: y
|
|
7036
6977
|
}));
|
|
7037
|
-
},
|
|
6978
|
+
}, ni = o(({ className: t, defaultValue: n, disabled: r = !1, hasClearButton: i = !0, hasDropdownTrigger: a = !1, hasSearchIcon: o = !0, hasSearchShortcut: s = !1, id: l, inputWidth: d, isLoading: f = !1, label: p, labelStrings: _ = {
|
|
7038
6979
|
clearButton: "Clear input text",
|
|
7039
6980
|
inputInstructions: "Type to search options",
|
|
7040
6981
|
searchShortcut: "Press / to focus the search field",
|
|
@@ -7227,13 +7168,13 @@ var Ur = {
|
|
|
7227
7168
|
validationMessageHasDecorators: !1,
|
|
7228
7169
|
validationStatus: B
|
|
7229
7170
|
}));
|
|
7230
|
-
}),
|
|
7171
|
+
}), ri = (e, t, n) => {
|
|
7231
7172
|
let r = n.toLowerCase();
|
|
7232
7173
|
return e.filter((e) => e.label.toLowerCase().includes(r)).map((e) => ({
|
|
7233
7174
|
...e,
|
|
7234
7175
|
isAlreadySelected: t.some((t) => t.id === e.id)
|
|
7235
7176
|
})).sort((e, t) => e.badge && !t.badge ? -1 : !e.badge && t.badge ? 1 : 0);
|
|
7236
|
-
},
|
|
7177
|
+
}, ii = ({ aiSuggestions: t, className: n, disabled: r = !1, id: i, initialSelectedItems: a = [], inputWidth: o, isLoading: s = !1, label: c = "Lorem ipsum dolor sit:", labelStrings: l = {
|
|
7237
7178
|
aiBadgeLabel: "Suggested",
|
|
7238
7179
|
aiPanelButton: "Show AI suggestions",
|
|
7239
7180
|
aiPanelClose: "Close suggestions panel",
|
|
@@ -7241,7 +7182,7 @@ var Ur = {
|
|
|
7241
7182
|
inputInstructions: "Type to search options",
|
|
7242
7183
|
triggerButton: "Toggle dropdown menu"
|
|
7243
7184
|
}, loadingText: u = "Loading results...", noResultsText: d = "No results found", onChange: f, options: p, placeholder: _ = "Filter", required: v = !1, showAllTags: y = !1, showLabel: b = !0, size: x = "s", ...S }) => {
|
|
7244
|
-
let C = rn(o), D = "pds-combobox-multi", O = x === "s" ? null : `${D}--${x}`, A = r ? $.disabled : null, N = v && !r ? $.required : null, P = y ? `${D}--show-all-tags` : null, [F, L] = g(""), [R, z] = g(a), [B, V] = g(null), [H, U] = g(!1), W = m(() =>
|
|
7185
|
+
let C = rn(o), D = "pds-combobox-multi", O = x === "s" ? null : `${D}--${x}`, A = r ? $.disabled : null, N = v && !r ? $.required : null, P = y ? `${D}--show-all-tags` : null, [F, L] = g(""), [R, z] = g(a), [B, V] = g(null), [H, U] = g(!1), W = m(() => ri(p, R, F), [
|
|
7245
7186
|
p,
|
|
7246
7187
|
R,
|
|
7247
7188
|
F
|
|
@@ -7500,12 +7441,12 @@ var Ur = {
|
|
|
7500
7441
|
iconName: "xmark",
|
|
7501
7442
|
size: "m"
|
|
7502
7443
|
})))));
|
|
7503
|
-
},
|
|
7444
|
+
}, ai = (e) => String(e).padStart(2, "0"), oi = (e) => {
|
|
7504
7445
|
let t = e ? /^(\d{1,2}):(\d{2})$/.exec(e) : null;
|
|
7505
7446
|
if (!t) return null;
|
|
7506
7447
|
let n = parseInt(t[1], 10), r = parseInt(t[2], 10);
|
|
7507
7448
|
return n > 23 || r > 59 ? null : new ce(n, r);
|
|
7508
|
-
},
|
|
7449
|
+
}, si = (e) => e ? `${ai(e.hour)}:${ai(e.minute)}` : void 0, ci = ({ baseClass: t, segment: n, state: r }) => {
|
|
7509
7450
|
let i = h(null), { segmentProps: a } = Oe(n, r, i), { focusProps: o, isFocusVisible: s } = ke(), c = n.isPlaceholder ? n.type === "dayPeriod" ? "--" : "00" : n.text;
|
|
7510
7451
|
return /* @__PURE__ */ e.createElement("div", {
|
|
7511
7452
|
...Ce(a, o),
|
|
@@ -7516,7 +7457,7 @@ var Ur = {
|
|
|
7516
7457
|
s ? `${t}__segment--focus-visible` : null
|
|
7517
7458
|
])
|
|
7518
7459
|
}, c);
|
|
7519
|
-
},
|
|
7460
|
+
}, li = ({ anchorDate: t, className: n, defaultValue: r, disabled: i = !1, hourCycle: a = 12, id: o, inputWidth: s, label: c, message: l, onBlur: d, onChange: f, onFocus: p, required: _ = !1, showLabel: v = !0, size: y = "s", timeZone: b, tooltipText: x = null, validationMessage: S, validationStatus: C, value: w }) => {
|
|
7520
7461
|
let T = rn(s), E = "pds-timepicker", D = y === "s" ? null : `${E}--${y}`, O = i ? $.disabled : null, k = _ && !i ? $.required : null, A = C === "error" ? $.error : null, j = C === "success" ? $.success : null, M = S || l, N = w !== void 0, { locale: P } = Ae(), [F, I] = g(r), L = N ? w : F, R = Fe({
|
|
7521
7462
|
granularity: "minute",
|
|
7522
7463
|
hourCycle: a,
|
|
@@ -7524,14 +7465,14 @@ var Ur = {
|
|
|
7524
7465
|
locale: P,
|
|
7525
7466
|
onBlur: d,
|
|
7526
7467
|
onChange: (e) => {
|
|
7527
|
-
let t =
|
|
7468
|
+
let t = si(e);
|
|
7528
7469
|
t && (N || I(t), f && f(t));
|
|
7529
7470
|
},
|
|
7530
7471
|
onFocusChange: (e) => {
|
|
7531
7472
|
e && p && p();
|
|
7532
7473
|
},
|
|
7533
7474
|
shouldForceLeadingZeros: !0,
|
|
7534
|
-
value: m(() =>
|
|
7475
|
+
value: m(() => oi(L), [L])
|
|
7535
7476
|
}), z = h(null), { fieldProps: B } = Me({
|
|
7536
7477
|
"aria-describedby": M ? `${o}__message` : void 0,
|
|
7537
7478
|
"aria-labelledby": `${o}-label`,
|
|
@@ -7542,7 +7483,7 @@ var Ur = {
|
|
|
7542
7483
|
if (V.current = b, !b || !e || b === e) return;
|
|
7543
7484
|
let n = R.value;
|
|
7544
7485
|
if (!n) return;
|
|
7545
|
-
let r = ve(ye(_e(t ?? be(e), n), e), b), i =
|
|
7486
|
+
let r = ve(ye(_e(t ?? be(e), n), e), b), i = si(new ce(r.hour, r.minute));
|
|
7546
7487
|
i && (N || I(i), f && f(i));
|
|
7547
7488
|
}, [b]);
|
|
7548
7489
|
let H = m(() => {
|
|
@@ -7592,7 +7533,7 @@ var Ur = {
|
|
|
7592
7533
|
}), /* @__PURE__ */ e.createElement("div", { className: `${E}__value` }, R.segments.map((t, n) => t.type === "literal" ? /* @__PURE__ */ e.createElement("div", {
|
|
7593
7534
|
key: n,
|
|
7594
7535
|
className: Z([`${E}__separator`, t.text === ":" ? `${E}__separator--colon` : null])
|
|
7595
|
-
}, t.text) : /* @__PURE__ */ e.createElement(
|
|
7536
|
+
}, t.text) : /* @__PURE__ */ e.createElement(ci, {
|
|
7596
7537
|
key: n,
|
|
7597
7538
|
baseClass: E,
|
|
7598
7539
|
segment: t,
|
|
@@ -7604,28 +7545,28 @@ var Ur = {
|
|
|
7604
7545
|
validationMessageHasDecorators: !1,
|
|
7605
7546
|
validationStatus: C
|
|
7606
7547
|
}));
|
|
7607
|
-
},
|
|
7548
|
+
}, ui = (e) => e ? me(xe(e, "yyyy-MM-dd")) : void 0, di = (e, t = pe()) => e ? e.toDate(t) : void 0, fi = (e) => String(e).padStart(2, "0"), pi = (e) => {
|
|
7608
7549
|
let t = e ? /^(\d{1,2}):(\d{2})$/.exec(e) : null;
|
|
7609
7550
|
if (!t) return;
|
|
7610
7551
|
let n = parseInt(t[1], 10), r = parseInt(t[2], 10);
|
|
7611
7552
|
if (!(n > 23 || r > 59)) return new ce(n, r);
|
|
7612
|
-
},
|
|
7553
|
+
}, mi = (e, t = pe()) => {
|
|
7613
7554
|
if (!e) return;
|
|
7614
7555
|
let n = fe(e, t);
|
|
7615
|
-
return `${
|
|
7616
|
-
},
|
|
7556
|
+
return `${fi(n.hour)}:${fi(n.minute)}`;
|
|
7557
|
+
}, hi = (e, t, n = pe()) => {
|
|
7617
7558
|
if (!e) return;
|
|
7618
|
-
let r =
|
|
7619
|
-
return r ? _e(e, r).toDate(n) :
|
|
7620
|
-
},
|
|
7559
|
+
let r = pi(t);
|
|
7560
|
+
return r ? _e(e, r).toDate(n) : di(e, n);
|
|
7561
|
+
}, gi = (e, t) => e ? xe(e, "PP", { locale: t }) : "", _i = (e, t) => {
|
|
7621
7562
|
if (e.custom) return e.custom();
|
|
7622
7563
|
let n = t?.timeZone ?? pe(), r = t?.locale ?? "en-US", i = be(n);
|
|
7623
7564
|
if (e.days !== void 0) return e.days < 0 ? {
|
|
7624
|
-
from:
|
|
7625
|
-
to:
|
|
7565
|
+
from: di(i.add({ days: e.days + 1 }), n),
|
|
7566
|
+
to: di(i, n)
|
|
7626
7567
|
} : {
|
|
7627
|
-
from:
|
|
7628
|
-
to:
|
|
7568
|
+
from: di(i, n),
|
|
7569
|
+
to: di(i.add({ days: e.days - 1 }), n)
|
|
7629
7570
|
};
|
|
7630
7571
|
if (e.hours !== void 0) {
|
|
7631
7572
|
let t = /* @__PURE__ */ new Date(), n = new Date(t.getTime() + e.hours * 60 * 60 * 1e3);
|
|
@@ -7649,37 +7590,37 @@ var Ur = {
|
|
|
7649
7590
|
}
|
|
7650
7591
|
switch (e.type) {
|
|
7651
7592
|
case "today": return {
|
|
7652
|
-
from:
|
|
7653
|
-
to:
|
|
7593
|
+
from: di(i, n),
|
|
7594
|
+
to: di(i, n)
|
|
7654
7595
|
};
|
|
7655
7596
|
case "current-week": return {
|
|
7656
|
-
from:
|
|
7657
|
-
to:
|
|
7597
|
+
from: di(ge(i, r), n),
|
|
7598
|
+
to: di(de(i, r), n)
|
|
7658
7599
|
};
|
|
7659
7600
|
case "current-month": return {
|
|
7660
|
-
from:
|
|
7661
|
-
to:
|
|
7601
|
+
from: di(he(i), n),
|
|
7602
|
+
to: di(ue(i), n)
|
|
7662
7603
|
};
|
|
7663
7604
|
case "last-week": {
|
|
7664
7605
|
let e = i.subtract({ weeks: 1 });
|
|
7665
7606
|
return {
|
|
7666
|
-
from:
|
|
7667
|
-
to:
|
|
7607
|
+
from: di(ge(e, r), n),
|
|
7608
|
+
to: di(de(e, r), n)
|
|
7668
7609
|
};
|
|
7669
7610
|
}
|
|
7670
7611
|
case "last-month": {
|
|
7671
7612
|
let e = i.subtract({ months: 1 });
|
|
7672
7613
|
return {
|
|
7673
|
-
from:
|
|
7674
|
-
to:
|
|
7614
|
+
from: di(he(e), n),
|
|
7615
|
+
to: di(ue(e), n)
|
|
7675
7616
|
};
|
|
7676
7617
|
}
|
|
7677
7618
|
default: return {
|
|
7678
|
-
from:
|
|
7679
|
-
to:
|
|
7619
|
+
from: di(i, n),
|
|
7620
|
+
to: di(i, n)
|
|
7680
7621
|
};
|
|
7681
7622
|
}
|
|
7682
|
-
},
|
|
7623
|
+
}, vi = {
|
|
7683
7624
|
clearButton: "Clear",
|
|
7684
7625
|
customPresetLabel: "Custom",
|
|
7685
7626
|
doneButton: "Done",
|
|
@@ -7700,7 +7641,7 @@ var Ur = {
|
|
|
7700
7641
|
to: " to ",
|
|
7701
7642
|
todayButton: "Today",
|
|
7702
7643
|
utcTimeZoneLabel: "UTC"
|
|
7703
|
-
},
|
|
7644
|
+
}, yi = ({ baseClass: t, currentMonth: n, date: r, state: i }) => {
|
|
7704
7645
|
let a = h(null), { buttonProps: o, cellProps: s, formattedDate: c, isDisabled: l, isOutsideVisibleRange: u, isSelected: d, isUnavailable: f } = Ee({ date: r }, i, a), p = r.month !== n.month || r.year !== n.year, m = "highlightedRange" in i ? i : null, g = !!m?.highlightedRange && r.compare(m.highlightedRange.start) === 0, _ = !!m?.highlightedRange && r.compare(m.highlightedRange.end) === 0, v = d && m && !g && !_, y = u || p, b = r.compare(be(pe())) === 0;
|
|
7705
7646
|
return /* @__PURE__ */ e.createElement("td", {
|
|
7706
7647
|
...s,
|
|
@@ -7722,7 +7663,7 @@ var Ur = {
|
|
|
7722
7663
|
]),
|
|
7723
7664
|
hidden: y
|
|
7724
7665
|
}, c));
|
|
7725
|
-
},
|
|
7666
|
+
}, bi = ({ baseClass: t, monthOffset: n = 0, state: r }) => {
|
|
7726
7667
|
let i = r.visibleRange.start.add({ months: n }), { gridProps: a, headerProps: o, weekDays: s, weeksInMonth: c } = De({ startDate: i }, r);
|
|
7727
7668
|
return /* @__PURE__ */ e.createElement("table", {
|
|
7728
7669
|
...a,
|
|
@@ -7730,20 +7671,20 @@ var Ur = {
|
|
|
7730
7671
|
}, /* @__PURE__ */ e.createElement("thead", o, /* @__PURE__ */ e.createElement("tr", null, s.map((n, r) => /* @__PURE__ */ e.createElement("th", {
|
|
7731
7672
|
key: r,
|
|
7732
7673
|
className: `${t}__weekday`
|
|
7733
|
-
}, n)))), /* @__PURE__ */ e.createElement("tbody", null, [...Array(c).keys()].map((n) => /* @__PURE__ */ e.createElement("tr", { key: n }, r.getDatesInWeek(n, i).map((n, a) => n ? /* @__PURE__ */ e.createElement(
|
|
7674
|
+
}, n)))), /* @__PURE__ */ e.createElement("tbody", null, [...Array(c).keys()].map((n) => /* @__PURE__ */ e.createElement("tr", { key: n }, r.getDatesInWeek(n, i).map((n, a) => n ? /* @__PURE__ */ e.createElement(yi, {
|
|
7734
7675
|
key: a,
|
|
7735
7676
|
baseClass: t,
|
|
7736
7677
|
currentMonth: i,
|
|
7737
7678
|
date: n,
|
|
7738
7679
|
state: r
|
|
7739
7680
|
}) : /* @__PURE__ */ e.createElement("td", { key: a }))))));
|
|
7740
|
-
},
|
|
7681
|
+
}, xi = ({ className: t, disabled: n = !1, footerNote: r, id: i, inputWidth: a, label: o, locale: s, maxDate: c, message: l, minDate: d, mode: f = "single", onChange: p, placeholder: m, presets: _, required: v = !1, showLabel: y = !0, showPresetCalendar: b = !0, showTime: x = !1, showTimeZoneSwitcher: S = !1, timeZone: C = pe(), tooltipText: w, translationStrings: T, validationMessage: E, validationStatus: D, value: O, visibleMonths: k = 2, ...A }) => {
|
|
7741
7682
|
let j = f === "range", M = {
|
|
7742
|
-
...
|
|
7683
|
+
...vi,
|
|
7743
7684
|
...T
|
|
7744
7685
|
}, N = j && !!_ && _.length > 0;
|
|
7745
7686
|
S && !x && process.env.NODE_ENV !== "production" && console.warn("[Datepicker] `showTimeZoneSwitcher` has no effect unless `showTime` is also true."), _ && _.length > 0 && !j && process.env.NODE_ENV !== "production" && console.warn("[Datepicker] `presets` requires `mode=\"range\"` — every preset computes a date range.");
|
|
7746
|
-
let { locale: P } = Ae(), F = s?.code ?? P, [I, L] = g(O), [R, z] = g("local"), B = S && R === "utc" ? "UTC" : C, [V, H] = g(void 0), [U, W] = g(b), G = !N || U, K = k === 1 ? j && x ? 400 : 280 : 550, q = h(null), J = V === void 0 && (j ? !!I?.from : !!I), [ee, te] = g(() =>
|
|
7687
|
+
let { locale: P } = Ae(), F = s?.code ?? P, [I, L] = g(O), [R, z] = g("local"), B = S && R === "utc" ? "UTC" : C, [V, H] = g(void 0), [U, W] = g(b), G = !N || U, K = k === 1 ? j && x ? 400 : 280 : 550, q = h(null), J = V === void 0 && (j ? !!I?.from : !!I), [ee, te] = g(() => mi(j ? O?.from : O, B)), [ne, re] = g(() => mi(O?.to, B)), ie = rn(a), Y = "pds-datepicker", ae = n ? $.disabled : null, X = v && !n ? $.required : null, oe = D === "error" ? $.error : null, se = D === "success" ? $.success : null, ce = E || l, ue = /* @__PURE__ */ e.createElement("div", { className: `${Y}__timezone-switcher` }, /* @__PURE__ */ e.createElement("span", { className: `${Y}__timezone-switcher-label` }, M.timeZoneSwitcherLabel), /* @__PURE__ */ e.createElement(nr, {
|
|
7747
7688
|
id: `${i}-timezone-switcher`,
|
|
7748
7689
|
label: M.timeZoneSwitcherLabel || "",
|
|
7749
7690
|
onChange: (e) => z(e),
|
|
@@ -7763,7 +7704,7 @@ var Ur = {
|
|
|
7763
7704
|
role: "dialog",
|
|
7764
7705
|
shiftPadding: 16,
|
|
7765
7706
|
variant: "default"
|
|
7766
|
-
}), ye =
|
|
7707
|
+
}), ye = ui(d), xe = ui(c), Ce = (e, t, n = !1) => {
|
|
7767
7708
|
L(e), H(t), p?.(e), !j && n && setTimeout(() => {
|
|
7768
7709
|
ve(!1);
|
|
7769
7710
|
}, 300);
|
|
@@ -7773,9 +7714,9 @@ var Ur = {
|
|
|
7773
7714
|
maxValue: xe,
|
|
7774
7715
|
minValue: ye,
|
|
7775
7716
|
onChange: (e) => {
|
|
7776
|
-
j || Ce(
|
|
7717
|
+
j || Ce(hi(e, x ? ee : void 0, B), void 0, !x);
|
|
7777
7718
|
},
|
|
7778
|
-
value: j ? null :
|
|
7719
|
+
value: j ? null : ui(I) ?? null
|
|
7779
7720
|
}), De = h(null), Oe = Pe({
|
|
7780
7721
|
createCalendar: le,
|
|
7781
7722
|
locale: F,
|
|
@@ -7784,12 +7725,12 @@ var Ur = {
|
|
|
7784
7725
|
visibleDuration: { months: k },
|
|
7785
7726
|
onChange: (e) => {
|
|
7786
7727
|
j && e && Ce({
|
|
7787
|
-
from:
|
|
7788
|
-
to:
|
|
7728
|
+
from: hi(e.start, x ? ee : void 0, B),
|
|
7729
|
+
to: hi(e.end, x ? ne : void 0, B)
|
|
7789
7730
|
});
|
|
7790
7731
|
},
|
|
7791
7732
|
value: j ? (() => {
|
|
7792
|
-
let e = I, t =
|
|
7733
|
+
let e = I, t = ui(e?.from), n = ui(e?.to);
|
|
7793
7734
|
return t && n ? {
|
|
7794
7735
|
start: t,
|
|
7795
7736
|
end: n
|
|
@@ -7804,17 +7745,17 @@ var Ur = {
|
|
|
7804
7745
|
ve(!1);
|
|
7805
7746
|
}, Qe = () => {
|
|
7806
7747
|
let e = be(pe());
|
|
7807
|
-
ke.setFocusedDate(e), j ? (Oe.setValue(null), L(void 0), H(void 0), p?.(void 0)) : (Ee.setValue(e), Ce(
|
|
7748
|
+
ke.setFocusedDate(e), j ? (Oe.setValue(null), L(void 0), H(void 0), p?.(void 0)) : (Ee.setValue(e), Ce(hi(e, x ? ee : void 0, B), void 0, !x));
|
|
7808
7749
|
}, $e = (e) => {
|
|
7809
|
-
let t =
|
|
7750
|
+
let t = _i(e, {
|
|
7810
7751
|
locale: F,
|
|
7811
7752
|
timeZone: B
|
|
7812
7753
|
}), n = e.hours !== void 0 || e.minutes !== void 0;
|
|
7813
|
-
W(b), x && n ? (te(
|
|
7814
|
-
from:
|
|
7815
|
-
to:
|
|
7754
|
+
W(b), x && n ? (te(mi(t.from, B)), re(mi(t.to, B)), Ce(t, e.label)) : Ce(x ? {
|
|
7755
|
+
from: hi(ui(t.from), ee, B),
|
|
7756
|
+
to: hi(ui(t.to), ne, B)
|
|
7816
7757
|
} : t, e.label);
|
|
7817
|
-
let r =
|
|
7758
|
+
let r = ui(t.from);
|
|
7818
7759
|
r && ke.setFocusedDate(r), b || setTimeout(() => {
|
|
7819
7760
|
ve(!1);
|
|
7820
7761
|
}, 300);
|
|
@@ -7822,19 +7763,19 @@ var Ur = {
|
|
|
7822
7763
|
if (te(e), j) {
|
|
7823
7764
|
let t = I;
|
|
7824
7765
|
t?.from && t?.to && Ce({
|
|
7825
|
-
from:
|
|
7766
|
+
from: hi(ui(t.from), e, B),
|
|
7826
7767
|
to: t.to
|
|
7827
7768
|
});
|
|
7828
7769
|
} else {
|
|
7829
7770
|
let t = I;
|
|
7830
|
-
t && Ce(
|
|
7771
|
+
t && Ce(hi(ui(t), e, B));
|
|
7831
7772
|
}
|
|
7832
7773
|
}, tt = (e) => {
|
|
7833
7774
|
re(e);
|
|
7834
7775
|
let t = I;
|
|
7835
7776
|
t?.from && t?.to && Ce({
|
|
7836
7777
|
from: t.from,
|
|
7837
|
-
to:
|
|
7778
|
+
to: hi(ui(t.to), e, B)
|
|
7838
7779
|
});
|
|
7839
7780
|
};
|
|
7840
7781
|
u(() => {
|
|
@@ -7842,8 +7783,8 @@ var Ur = {
|
|
|
7842
7783
|
}, [O]), u(() => {
|
|
7843
7784
|
if (x) if (j) {
|
|
7844
7785
|
let e = I;
|
|
7845
|
-
te(
|
|
7846
|
-
} else te(
|
|
7786
|
+
te(mi(e?.from, B)), re(mi(e?.to, B));
|
|
7787
|
+
} else te(mi(I, B));
|
|
7847
7788
|
}, [
|
|
7848
7789
|
I,
|
|
7849
7790
|
B,
|
|
@@ -7851,7 +7792,7 @@ var Ur = {
|
|
|
7851
7792
|
x
|
|
7852
7793
|
]), u(() => {
|
|
7853
7794
|
if (ge) {
|
|
7854
|
-
let e =
|
|
7795
|
+
let e = ui(j ? I?.from : I);
|
|
7855
7796
|
ke.setFocusedDate(e ?? be(pe())), W(b);
|
|
7856
7797
|
}
|
|
7857
7798
|
}, [ge]), u(() => {
|
|
@@ -7865,18 +7806,18 @@ var Ur = {
|
|
|
7865
7806
|
}
|
|
7866
7807
|
if (j) {
|
|
7867
7808
|
let t = I;
|
|
7868
|
-
return t?.from ? t.to ? /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
7809
|
+
return t?.from ? t.to ? /* @__PURE__ */ e.createElement(e.Fragment, null, gi(t.from, s), /* @__PURE__ */ e.createElement("span", { className: `${Y}__separator` }, " – "), gi(t.to, s)) : gi(t.from, s) : m || "";
|
|
7869
7810
|
} else {
|
|
7870
7811
|
let e = I;
|
|
7871
|
-
return e ?
|
|
7812
|
+
return e ? gi(e, s) : m || "";
|
|
7872
7813
|
}
|
|
7873
7814
|
}, rt = () => j ? !I?.from : !I, it = () => {
|
|
7874
7815
|
if (j) {
|
|
7875
7816
|
let e = I, t = Oe.anchorDate;
|
|
7876
|
-
return !e?.from && t ? `${M.selectedStartDate}${
|
|
7817
|
+
return !e?.from && t ? `${M.selectedStartDate}${gi(di(t), s)}${M.pleaseSelectEndDate}` : e?.from ? e.to ? `${M.selectedDateRange}${gi(e.from, s)}${M.to}${gi(e.to, s)}` : `${M.selectedStartDate}${gi(e.from, s)}${M.pleaseSelectEndDate}` : M.noDateRangeSelected || "";
|
|
7877
7818
|
} else {
|
|
7878
7819
|
let e = I;
|
|
7879
|
-
return e ? `${M.selectedDate}${
|
|
7820
|
+
return e ? `${M.selectedDate}${gi(e, s)}` : M.noDateSelected || "";
|
|
7880
7821
|
}
|
|
7881
7822
|
}, at = /* @__PURE__ */ e.createElement("div", {
|
|
7882
7823
|
...Be,
|
|
@@ -7915,22 +7856,22 @@ var Ur = {
|
|
|
7915
7856
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
7916
7857
|
iconName: "angleRight",
|
|
7917
7858
|
size: "m"
|
|
7918
|
-
}))), /* @__PURE__ */ e.createElement(
|
|
7859
|
+
}))), /* @__PURE__ */ e.createElement(bi, {
|
|
7919
7860
|
baseClass: Y,
|
|
7920
7861
|
monthOffset: t,
|
|
7921
7862
|
state: ke
|
|
7922
7863
|
})))), x && /* @__PURE__ */ e.createElement("div", { className: `${Y}__time-section` }, j ? (() => {
|
|
7923
7864
|
let t = I;
|
|
7924
|
-
return t?.from && t?.to ? /* @__PURE__ */ e.createElement("div", { className: `${Y}__time-fields` }, /* @__PURE__ */ e.createElement(
|
|
7925
|
-
anchorDate:
|
|
7865
|
+
return t?.from && t?.to ? /* @__PURE__ */ e.createElement("div", { className: `${Y}__time-fields` }, /* @__PURE__ */ e.createElement(li, {
|
|
7866
|
+
anchorDate: ui(t.from),
|
|
7926
7867
|
id: `${i}-start-time`,
|
|
7927
7868
|
label: M.startTimeLabel || "",
|
|
7928
7869
|
onChange: et,
|
|
7929
7870
|
size: "s",
|
|
7930
7871
|
timeZone: B,
|
|
7931
7872
|
value: ee
|
|
7932
|
-
}), /* @__PURE__ */ e.createElement(
|
|
7933
|
-
anchorDate:
|
|
7873
|
+
}), /* @__PURE__ */ e.createElement(li, {
|
|
7874
|
+
anchorDate: ui(t.to),
|
|
7934
7875
|
id: `${i}-end-time`,
|
|
7935
7876
|
label: M.endTimeLabel || "",
|
|
7936
7877
|
onChange: tt,
|
|
@@ -7938,8 +7879,8 @@ var Ur = {
|
|
|
7938
7879
|
timeZone: B,
|
|
7939
7880
|
value: ne
|
|
7940
7881
|
})) : null;
|
|
7941
|
-
})() : I && /* @__PURE__ */ e.createElement("div", { className: `${Y}__time-fields` }, /* @__PURE__ */ e.createElement(
|
|
7942
|
-
anchorDate:
|
|
7882
|
+
})() : I && /* @__PURE__ */ e.createElement("div", { className: `${Y}__time-fields` }, /* @__PURE__ */ e.createElement(li, {
|
|
7883
|
+
anchorDate: ui(I),
|
|
7943
7884
|
id: `${i}-time`,
|
|
7944
7885
|
label: M.timeLabel || "",
|
|
7945
7886
|
onChange: et,
|
|
@@ -8041,7 +7982,7 @@ var Ur = {
|
|
|
8041
7982
|
className: `${Y}__calendar-wrapper-inner`,
|
|
8042
7983
|
style: { width: K }
|
|
8043
7984
|
}, at)) : at)));
|
|
8044
|
-
},
|
|
7985
|
+
}, Si = o(({ accept: t, className: n, defaultValue: r, disabled: i = !1, fieldLabel: a, id: o, inputProps: s, inputWidth: c, labelStrings: l = {
|
|
8045
7986
|
chooseFile: "Choose file",
|
|
8046
7987
|
clearButton: "Clear selected file"
|
|
8047
7988
|
}, message: d, multiple: f = !1, onClear: p, onFileChange: m, required: h = !1, showFullPath: _, showLabel: v = !0, size: y = "s", tooltipText: b = null, validationMessage: x, validationStatus: S, ...C }, w) => {
|
|
@@ -8125,7 +8066,7 @@ var Ur = {
|
|
|
8125
8066
|
validationMessageHasDecorators: !1,
|
|
8126
8067
|
validationStatus: S
|
|
8127
8068
|
}));
|
|
8128
|
-
}),
|
|
8069
|
+
}), Ci = ({ children: t, className: n, ...r }) => {
|
|
8129
8070
|
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;
|
|
8130
8071
|
return /* @__PURE__ */ e.createElement("div", {
|
|
8131
8072
|
className: Z([
|
|
@@ -8142,7 +8083,7 @@ var Ur = {
|
|
|
8142
8083
|
validationMessageHasDecorators: !1,
|
|
8143
8084
|
validationStatus: l
|
|
8144
8085
|
}));
|
|
8145
|
-
},
|
|
8086
|
+
}, wi = ({ className: t, defaultValue: n, disabled: r = !1, fieldsetProps: i, id: a, inputWidth: o, label: s, labelVariant: c, message: l, onBlur: u, onChange: d, onValueChange: f, options: p, required: m = !1, showLabel: h = !0, tooltipText: _ = null, validationMessage: v, validationStatus: y, value: b, ...x }) => {
|
|
8146
8087
|
let S = "pds-radio-group", C = r ? $.disabled : null, w = m && !r ? $.required : null, T = y === "error" ? $.error : null, E = y === "success" ? $.success : null, D = b !== void 0, [O, k] = g(n === void 0 ? "" : n), A = v || l, j = (e) => {
|
|
8147
8088
|
D || k(e.target.value), d && d(e), f && f(e.target.value);
|
|
8148
8089
|
}, M = (e) => {
|
|
@@ -8192,7 +8133,7 @@ var Ur = {
|
|
|
8192
8133
|
message: A,
|
|
8193
8134
|
validationStatus: y
|
|
8194
8135
|
}));
|
|
8195
|
-
},
|
|
8136
|
+
}, Ti = o(({ checked: t, className: n, defaultChecked: r, disabled: i = !1, id: a, inputProps: o, inputWidth: s, label: c, message: l, offLabel: u = "Off", onChange: d, onLabel: f = "On", required: p = !1, showLabel: m = !0, showStatusLabel: h = !0, statusLabelPlacement: _ = "right", switchPlacement: v = "right", ...y }, b) => {
|
|
8196
8137
|
let x = rn(s), S = "pds-switch", C = `${S}--${v}`, w = l ? `${S}--message` : null, T = i ? $.disabled : null, E = p && !i ? $.required : null, D = t !== void 0, [O, k] = g(!D && r ? r : !1), A = t || O ? f : u, j = (e) => {
|
|
8197
8138
|
D || k(e.target.checked), d && d(e);
|
|
8198
8139
|
}, M = h ? /* @__PURE__ */ e.createElement("span", {
|
|
@@ -8247,7 +8188,7 @@ var Ur = {
|
|
|
8247
8188
|
required: p,
|
|
8248
8189
|
showLabel: m
|
|
8249
8190
|
}), /* @__PURE__ */ e.createElement("div", { className: `${S}__content` }, F, P));
|
|
8250
|
-
}),
|
|
8191
|
+
}), Ei = ({ disabled: t, dropTargetDirection: n, focusedIndex: r, index: i, isDragging: a, isSortable: o, onDragEnd: s, onDragOver: c, onDragStart: l, onFocusInput: d, onKeyboardMove: f, onRemove: p, setFocusedIndex: m, tag: g, totalTags: _, translationStrings: v }) => {
|
|
8251
8192
|
let y = h(null), b = "pds-tags-input__tag";
|
|
8252
8193
|
u(() => {
|
|
8253
8194
|
r === i && y.current && y.current.focus();
|
|
@@ -8314,7 +8255,7 @@ var Ur = {
|
|
|
8314
8255
|
iconName: "xmark",
|
|
8315
8256
|
size: "s"
|
|
8316
8257
|
})));
|
|
8317
|
-
},
|
|
8258
|
+
}, Di = o(({ addMorePlaceholder: t = "Add another", className: n, disabled: r = !1, id: i, inputMinHeight: a, inputWidth: o, isSortable: s = !1, label: c, message: l, onChange: u, placeholder: d, required: f = !1, showLabel: p = !0, size: m = "s", tags: _, tooltipText: v = null, translationStrings: y = {
|
|
8318
8259
|
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.",
|
|
8319
8260
|
tagAriaLabel: "tag {index} of {total}. Press Shift plus arrow keys to reorder, Delete to remove.",
|
|
8320
8261
|
tagAriaLabelSimple: "tag {index} of {total}. Press Delete to remove.",
|
|
@@ -8400,7 +8341,7 @@ var Ur = {
|
|
|
8400
8341
|
return P && P !== t.id && (I === t.id && R === "before" ? i = "before" : I === t.id && R === "after" && n === _.length - 1 ? i = "after" : n > 0 && I === _[n - 1].id && R === "after" && (i = "before")), /* @__PURE__ */ e.createElement("div", {
|
|
8401
8342
|
key: t.id,
|
|
8402
8343
|
role: "listitem"
|
|
8403
|
-
}, /* @__PURE__ */ e.createElement(
|
|
8344
|
+
}, /* @__PURE__ */ e.createElement(Ei, {
|
|
8404
8345
|
disabled: r,
|
|
8405
8346
|
dropTargetDirection: i,
|
|
8406
8347
|
focusedIndex: B,
|
|
@@ -8444,7 +8385,7 @@ var Ur = {
|
|
|
8444
8385
|
validationMessageHasDecorators: !1,
|
|
8445
8386
|
validationStatus: x
|
|
8446
8387
|
}));
|
|
8447
|
-
}),
|
|
8388
|
+
}), Oi = o(({ className: t, counterMaxLength: n, defaultValue: r, disabled: i = !1, id: a, inputWidth: o, isResizable: s = !0, label: c, message: l, onBlur: u, onChange: d, onFocus: f, placeholder: p, readonly: m = !1, required: h = !1, rows: _ = 5, showLabel: v, size: y = "s", textareaProps: b, tooltipText: x = null, translationStrings: S = {
|
|
8448
8389
|
clearButton: "Clear input text",
|
|
8449
8390
|
counterOverLimit: "Character limit exceeded by",
|
|
8450
8391
|
searchShortcut: "Press / to focus the search field",
|
|
@@ -8508,7 +8449,7 @@ var Ur = {
|
|
|
8508
8449
|
message: L,
|
|
8509
8450
|
validationStatus: w
|
|
8510
8451
|
}));
|
|
8511
|
-
}),
|
|
8452
|
+
}), ki = () => /* @__PURE__ */ e.createElement("div", { className: "pds-text-input__url-prefix" }, "https://"), Ai = 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, label: f, message: p, onBlur: m, onChange: h, onClear: _, onFocus: v, placeholder: y, readonly: b = !1, required: x = !1, searchIcon: S = "search", showLabel: C = !0, showVisibilityToggle: w = !1, size: T = "s", tooltipText: E = null, translationStrings: D = {
|
|
8512
8453
|
clearButton: "Clear input text",
|
|
8513
8454
|
counterOverLimit: "Character limit exceeded by",
|
|
8514
8455
|
searchShortcut: "Press / to focus the search field",
|
|
@@ -8574,7 +8515,7 @@ var Ur = {
|
|
|
8574
8515
|
}), w && O === "password" && /* @__PURE__ */ e.createElement("div", {
|
|
8575
8516
|
"aria-live": "polite",
|
|
8576
8517
|
className: "visually-hidden"
|
|
8577
|
-
}, `${D.visibilityStatus} ${re ? "visible" : "hidden"}.`), /* @__PURE__ */ e.createElement("div", { className: `${F}__input-wrapper ${c && O === "url" ? `${F}__input-wrapper--has-prefix` : ""}` }, U && /* @__PURE__ */ e.createElement(un, { variant: U }), c && O === "url" && /* @__PURE__ */ e.createElement(
|
|
8518
|
+
}, `${D.visibilityStatus} ${re ? "visible" : "hidden"}.`), /* @__PURE__ */ e.createElement("div", { className: `${F}__input-wrapper ${c && O === "url" ? `${F}__input-wrapper--has-prefix` : ""}` }, U && /* @__PURE__ */ e.createElement(un, { variant: U }), c && O === "url" && /* @__PURE__ */ e.createElement(ki, null), /* @__PURE__ */ e.createElement("input", {
|
|
8578
8519
|
ref: N,
|
|
8579
8520
|
"aria-describedby": W ? `${l}__message` : null,
|
|
8580
8521
|
"aria-invalid": A === "error" ? !0 : null,
|
|
@@ -8621,7 +8562,7 @@ var Ur = {
|
|
|
8621
8562
|
validationMessageHasDecorators: !1,
|
|
8622
8563
|
validationStatus: A
|
|
8623
8564
|
}));
|
|
8624
|
-
}),
|
|
8565
|
+
}), ji = ({ className: t, linkContent: n, size: r = "s", ...i }) => {
|
|
8625
8566
|
let a = "pds-cta-link", o = r === "s" ? null : `${a}--${r}`;
|
|
8626
8567
|
return /* @__PURE__ */ e.createElement("div", {
|
|
8627
8568
|
className: Z([
|
|
@@ -8635,7 +8576,7 @@ var Ur = {
|
|
|
8635
8576
|
iconName: "arrowRight",
|
|
8636
8577
|
size: r === "xs" ? "s" : r === "s" ? "m" : "l"
|
|
8637
8578
|
}));
|
|
8638
|
-
},
|
|
8579
|
+
}, Mi = ({ children: t, className: n, fontSize: r, isLoading: i, newWindowText: a = "opens in a new window", url: o, ...s }) => {
|
|
8639
8580
|
let c = "pds-link-new-window", l = r ? `${c}--${r}` : null;
|
|
8640
8581
|
return i ? /* @__PURE__ */ e.createElement("span", {
|
|
8641
8582
|
"aria-hidden": "true",
|
|
@@ -8662,11 +8603,11 @@ var Ur = {
|
|
|
8662
8603
|
className: `${c}__icon`,
|
|
8663
8604
|
iconName: "externalLink"
|
|
8664
8605
|
}));
|
|
8665
|
-
},
|
|
8606
|
+
}, Ni = ({ className: t, destination: n = "main", text: r = "Skip to main content", ...i }) => /* @__PURE__ */ e.createElement("a", {
|
|
8666
8607
|
className: Z(["pds-skiplink", t]),
|
|
8667
8608
|
href: `#${n}`,
|
|
8668
8609
|
...i
|
|
8669
|
-
}, r),
|
|
8610
|
+
}, r), Pi = ({ alt: t = "", className: n, height: r, srcFallback: i, srcWebp: a, width: o, ...s }) => {
|
|
8670
8611
|
let c = "pds-picture";
|
|
8671
8612
|
return /* @__PURE__ */ e.createElement("picture", { className: Z([c, n ?? ""]) }, /* @__PURE__ */ e.createElement("source", {
|
|
8672
8613
|
srcSet: a,
|
|
@@ -8679,7 +8620,7 @@ var Ur = {
|
|
|
8679
8620
|
width: o,
|
|
8680
8621
|
...s
|
|
8681
8622
|
}));
|
|
8682
|
-
},
|
|
8623
|
+
}, Fi = ({ ariaLabel: t = "Breadcrumb", className: n, crumbs: i, ...a }) => {
|
|
8683
8624
|
let o = "pds-breadcrumb", c = i.length, l = i.map((t, n) => {
|
|
8684
8625
|
if (n < c - 1) return /* @__PURE__ */ e.createElement("li", {
|
|
8685
8626
|
key: n,
|
|
@@ -8698,36 +8639,36 @@ var Ur = {
|
|
|
8698
8639
|
className: Z([o, n]),
|
|
8699
8640
|
...a
|
|
8700
8641
|
}, /* @__PURE__ */ e.createElement("ol", { className: `${o}__crumbs` }, l));
|
|
8701
|
-
},
|
|
8642
|
+
}, Ii = (e) => {
|
|
8702
8643
|
if (!e) return null;
|
|
8703
8644
|
for (let t = 0; t < e.length; t++) {
|
|
8704
|
-
if (
|
|
8645
|
+
if (Ri(e[t])) return typeof e[t].linkContent == "string" ? null : e[t].linkContent;
|
|
8705
8646
|
if (e[t].links) {
|
|
8706
|
-
let n =
|
|
8647
|
+
let n = Ii(e[t].links);
|
|
8707
8648
|
if (n) return n;
|
|
8708
8649
|
}
|
|
8709
8650
|
}
|
|
8710
8651
|
return null;
|
|
8711
|
-
},
|
|
8712
|
-
if (
|
|
8652
|
+
}, Li = (e) => typeof e == "string" ? e : e.props.children, Ri = (e) => e.isSeparator || e.isHeading || typeof e.linkContent == "string" ? !1 : !!(e.isActive || e.linkContent.props.className && e.linkContent.props.className.includes("pds-isActive")), zi = (e) => {
|
|
8653
|
+
if (Ri(e)) return !0;
|
|
8713
8654
|
if (e.links) {
|
|
8714
|
-
for (let t = 0; t < e.links.length; t++) if (
|
|
8655
|
+
for (let t = 0; t < e.links.length; t++) if (zi(e.links[t])) return !0;
|
|
8715
8656
|
}
|
|
8716
8657
|
return !1;
|
|
8717
|
-
},
|
|
8658
|
+
}, Bi = (e) => e.map((e) => `${Ri(e)}${e.links ? `[${Bi(e.links)}]` : ""}`).join("|"), Vi = (e) => {
|
|
8718
8659
|
if (s(e)) {
|
|
8719
8660
|
let t = e.type;
|
|
8720
8661
|
return t === "a" || typeof t == "string" && t.toLowerCase() === "a" || (typeof t == "function" || typeof t == "object") && t?.displayName === "Link";
|
|
8721
8662
|
}
|
|
8722
8663
|
return !1;
|
|
8723
|
-
},
|
|
8664
|
+
}, Hi = (e, t) => {
|
|
8724
8665
|
let n = null;
|
|
8725
8666
|
if (typeof e == "string" && t) {
|
|
8726
8667
|
let i = t ? t[0].linkContent : null;
|
|
8727
8668
|
s(i) && (n = r(i, { ...typeof e == "string" ? { children: e } : {} }));
|
|
8728
8669
|
} else n = e;
|
|
8729
8670
|
return n;
|
|
8730
|
-
},
|
|
8671
|
+
}, Ui = (t, n, i, a) => {
|
|
8731
8672
|
let o = null;
|
|
8732
8673
|
if (typeof n == "string") {
|
|
8733
8674
|
let c = a ? [/* @__PURE__ */ e.createElement("span", {
|
|
@@ -8752,7 +8693,7 @@ var Ur = {
|
|
|
8752
8693
|
iconName: a,
|
|
8753
8694
|
size: "m"
|
|
8754
8695
|
})), /* @__PURE__ */ e.createElement("span", { className: `${t}__link-label` }, n.props.children))] })) : n), o;
|
|
8755
|
-
},
|
|
8696
|
+
}, Wi = ({ ariaLabel: t, border: n = !1, className: r, menuItems: i, ...a }) => {
|
|
8756
8697
|
let o = h(null), s = "pds-button-nav", c = n ? `${s}--bordered` : null;
|
|
8757
8698
|
u(() => {
|
|
8758
8699
|
let e = (e) => {
|
|
@@ -8771,11 +8712,11 @@ var Ur = {
|
|
|
8771
8712
|
return /* @__PURE__ */ e.createElement("li", { className: Z([r, t ? `${r}--active` : null]) }, n);
|
|
8772
8713
|
}, d = i.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${s}__menu` }, i.map((t, n) => /* @__PURE__ */ e.createElement(l, {
|
|
8773
8714
|
key: n,
|
|
8774
|
-
isActive:
|
|
8715
|
+
isActive: zi(t),
|
|
8775
8716
|
linkContent: t.linkContent
|
|
8776
8717
|
}))) : null, f = [];
|
|
8777
8718
|
i.map((e) => {
|
|
8778
|
-
e.linkContent && (
|
|
8719
|
+
e.linkContent && (zi(e) ? f.unshift({
|
|
8779
8720
|
linkContent: e.linkContent,
|
|
8780
8721
|
isLink: !0
|
|
8781
8722
|
}) : f.push({
|
|
@@ -8799,8 +8740,8 @@ var Ur = {
|
|
|
8799
8740
|
]),
|
|
8800
8741
|
...a
|
|
8801
8742
|
}, d, p);
|
|
8802
|
-
},
|
|
8803
|
-
let s = "pds-dropdown-menu", c =
|
|
8743
|
+
}, Gi = ({ className: t, headingText: n, menuItems: i, selectTextFallback: a = "Navigate to...", ...o }) => {
|
|
8744
|
+
let s = "pds-dropdown-menu", c = Ii(i), l = c ? c.props.children : a, u = /* @__PURE__ */ e.createElement(Gn, { 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 } = Pn({
|
|
8804
8745
|
enableShift: !1,
|
|
8805
8746
|
enableTypeahead: !0,
|
|
8806
8747
|
role: "menu"
|
|
@@ -8809,7 +8750,7 @@ var Ur = {
|
|
|
8809
8750
|
}, C = (e) => {
|
|
8810
8751
|
e.key === "Enter" && _.current[d]?.querySelector("a")?.click();
|
|
8811
8752
|
}, w = ({ item: e, level: t }) => {
|
|
8812
|
-
let n =
|
|
8753
|
+
let n = Hi(e.linkContent, e.links);
|
|
8813
8754
|
return {
|
|
8814
8755
|
...e,
|
|
8815
8756
|
level: t,
|
|
@@ -8900,7 +8841,7 @@ var Ur = {
|
|
|
8900
8841
|
tabIndex: d === n ? 0 : -1,
|
|
8901
8842
|
...m({ onKeyDown: C })
|
|
8902
8843
|
}, t.linkContent, t.isActive === !0 && u)))));
|
|
8903
|
-
},
|
|
8844
|
+
}, Ki = ({ children: t, className: n, width: r = "standard", ...i }) => {
|
|
8904
8845
|
let a = "pds-container", o = r === "standard" ? null : `${a}--${r}`;
|
|
8905
8846
|
return /* @__PURE__ */ e.createElement("div", {
|
|
8906
8847
|
className: Z([
|
|
@@ -8910,7 +8851,7 @@ var Ur = {
|
|
|
8910
8851
|
]),
|
|
8911
8852
|
...i
|
|
8912
8853
|
}, t);
|
|
8913
|
-
},
|
|
8854
|
+
}, qi = ({ children: t, className: n, colorType: r = "default", containerWidth: i = "x-wide", hideBorder: a, inlinePadding: o, translationStrings: s = {
|
|
8914
8855
|
closeMobileNav: "Close navigation area",
|
|
8915
8856
|
openMobileNav: "Open navigation area"
|
|
8916
8857
|
}, ...c }) => {
|
|
@@ -8966,7 +8907,7 @@ var Ur = {
|
|
|
8966
8907
|
n ?? ""
|
|
8967
8908
|
]),
|
|
8968
8909
|
...c
|
|
8969
|
-
}, f ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${h}__bar-mobile` }, /* @__PURE__ */ e.createElement(
|
|
8910
|
+
}, f ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${h}__bar-mobile` }, /* @__PURE__ */ e.createElement(Ki, null, /* @__PURE__ */ e.createElement("div", { className: `${h}__inner-mobile` }, C, k && A))), /* @__PURE__ */ e.createElement(Le, {
|
|
8970
8911
|
active: l,
|
|
8971
8912
|
focusTrapOptions: {
|
|
8972
8913
|
clickOutsideDeactivates: !0,
|
|
@@ -8976,11 +8917,11 @@ var Ur = {
|
|
|
8976
8917
|
}, /* @__PURE__ */ e.createElement("div", {
|
|
8977
8918
|
className: Z([`${h}__mobile`, l ? `${h}__mobile--open` : null]),
|
|
8978
8919
|
inert: l ? void 0 : ""
|
|
8979
|
-
}, /* @__PURE__ */ e.createElement(
|
|
8920
|
+
}, /* @__PURE__ */ e.createElement(Ki, null, /* @__PURE__ */ e.createElement("button", {
|
|
8980
8921
|
className: "visually-hidden",
|
|
8981
8922
|
onClick: b,
|
|
8982
8923
|
type: "button"
|
|
8983
|
-
}, s.closeMobileNav), w, T, E)))) : /* @__PURE__ */ e.createElement(
|
|
8924
|
+
}, s.closeMobileNav), w, T, E)))) : /* @__PURE__ */ e.createElement(Ki, {
|
|
8984
8925
|
className: `${h}__inner`,
|
|
8985
8926
|
style: o ? { paddingInline: o } : void 0,
|
|
8986
8927
|
width: i
|
|
@@ -8988,14 +8929,14 @@ var Ur = {
|
|
|
8988
8929
|
"aria-hidden": "true",
|
|
8989
8930
|
className: `${h}__separator`
|
|
8990
8931
|
}), w && /* @__PURE__ */ e.createElement("div", { className: `${h}__items-left` }, w)), T && /* @__PURE__ */ e.createElement("div", { className: `${h}__items-center` }, T), E && /* @__PURE__ */ e.createElement("div", { className: `${h}__items-right` }, E)));
|
|
8991
|
-
},
|
|
8932
|
+
}, Ji = ({ ariaLabel: t, className: n, hasMobileDropdown: i = !1, headingText: a, labels: o = {
|
|
8992
8933
|
submenu: "submenu",
|
|
8993
8934
|
toggle: "Toggle"
|
|
8994
8935
|
}, menuItems: c, mobileMenuSelectTextFallback: l = "Navigate to...", ...d }) => {
|
|
8995
8936
|
let f = "pds-side-nav", p = i ? `${f}--has-mobile-dropdown` : null, m = `${f}__item`, h = `${f}__menu`, [_, v] = g({});
|
|
8996
8937
|
u(() => {
|
|
8997
8938
|
v((e) => Object.keys(e).length ? {} : e);
|
|
8998
|
-
}, [
|
|
8939
|
+
}, [Bi(c)]);
|
|
8999
8940
|
let y = (e, t) => t in _ ? _[t] : e, b = (e, t) => {
|
|
9000
8941
|
v((n) => {
|
|
9001
8942
|
let r = t in n ? n[t] : e;
|
|
@@ -9005,7 +8946,7 @@ var Ur = {
|
|
|
9005
8946
|
};
|
|
9006
8947
|
});
|
|
9007
8948
|
}, x = (t, n) => {
|
|
9008
|
-
let { linkContent: i, links: a } = t, c =
|
|
8949
|
+
let { linkContent: i, links: a } = t, c = zi(t), l = Vi(i), u = y(c, n);
|
|
9009
8950
|
return /* @__PURE__ */ e.createElement("li", {
|
|
9010
8951
|
key: n,
|
|
9011
8952
|
className: Z([
|
|
@@ -9018,7 +8959,7 @@ var Ur = {
|
|
|
9018
8959
|
`${f}__row`,
|
|
9019
8960
|
`${f}__row--expandable`,
|
|
9020
8961
|
`${m}-wrapper`
|
|
9021
|
-
]) },
|
|
8962
|
+
]) }, Hi(i, a), /* @__PURE__ */ e.createElement("button", {
|
|
9022
8963
|
"aria-expanded": u,
|
|
9023
8964
|
className: Z([`${f}__toggle`, u ? `${f}__toggle--expanded` : null]),
|
|
9024
8965
|
onClick: () => b(c, n),
|
|
@@ -9026,7 +8967,7 @@ var Ur = {
|
|
|
9026
8967
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
9027
8968
|
iconName: "angleDown",
|
|
9028
8969
|
size: "m"
|
|
9029
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${o.toggle} ${
|
|
8970
|
+
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${o.toggle} ${Li(i)} ${o.submenu}`))), /* @__PURE__ */ e.createElement("ul", { className: Z([
|
|
9030
8971
|
h,
|
|
9031
8972
|
`${h}--second-level`,
|
|
9032
8973
|
u ? `${h}--expanded` : null
|
|
@@ -9035,9 +8976,9 @@ var Ur = {
|
|
|
9035
8976
|
className: Z([
|
|
9036
8977
|
m,
|
|
9037
8978
|
`${m}--second-level`,
|
|
9038
|
-
|
|
8979
|
+
zi(t) ? `${m}--active` : null
|
|
9039
8980
|
])
|
|
9040
|
-
},
|
|
8981
|
+
}, Hi(t.linkContent, t.links))))) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("button", {
|
|
9041
8982
|
"aria-expanded": u,
|
|
9042
8983
|
className: Z([
|
|
9043
8984
|
`${f}__row`,
|
|
@@ -9051,7 +8992,7 @@ var Ur = {
|
|
|
9051
8992
|
}, s(i) && i.type === "span" ? r(i, { className: Z([i.props.className, `${f}__toggle-content`]) }) : /* @__PURE__ */ e.createElement("span", { className: `${f}__toggle-content` }, i), /* @__PURE__ */ e.createElement(Q, {
|
|
9052
8993
|
iconName: "angleDown",
|
|
9053
8994
|
size: "m"
|
|
9054
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${o.toggle} ${
|
|
8995
|
+
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${o.toggle} ${Li(i)} ${o.submenu}`)), /* @__PURE__ */ e.createElement("ul", { className: Z([
|
|
9055
8996
|
h,
|
|
9056
8997
|
`${h}--second-level`,
|
|
9057
8998
|
u ? `${h}--expanded` : null
|
|
@@ -9060,10 +9001,10 @@ var Ur = {
|
|
|
9060
9001
|
className: Z([
|
|
9061
9002
|
m,
|
|
9062
9003
|
`${m}--second-level`,
|
|
9063
|
-
|
|
9004
|
+
zi(t) ? `${m}--active` : null
|
|
9064
9005
|
])
|
|
9065
|
-
},
|
|
9066
|
-
}, S = /* @__PURE__ */ e.createElement(e.Fragment, null, a && /* @__PURE__ */ e.createElement("h2", { className: `${f}__heading` }, a), c.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${f}__menu ${f}__menu--top-level` }, c.map((e, t) => x(e, t)))), C = /* @__PURE__ */ e.createElement(
|
|
9006
|
+
}, Hi(t.linkContent, t.links))))) : i);
|
|
9007
|
+
}, S = /* @__PURE__ */ e.createElement(e.Fragment, null, a && /* @__PURE__ */ e.createElement("h2", { className: `${f}__heading` }, a), c.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${f}__menu ${f}__menu--top-level` }, c.map((e, t) => x(e, t)))), C = /* @__PURE__ */ e.createElement(Gi, {
|
|
9067
9008
|
className: `${f}__mobile`,
|
|
9068
9009
|
headingText: a,
|
|
9069
9010
|
menuItems: c,
|
|
@@ -9078,8 +9019,8 @@ var Ur = {
|
|
|
9078
9019
|
]),
|
|
9079
9020
|
...d
|
|
9080
9021
|
}, S, i && C);
|
|
9081
|
-
},
|
|
9082
|
-
let d = "pds-side-nav-global", f = `${d}__item`, p = `${d}__menu`, m = /* @__PURE__ */ e.createElement("div", { className: `${f}-wrapper` },
|
|
9022
|
+
}, Yi = ({ icon: t, isActive: n, isExpanded: r, isSidebarCollapsed: i, labels: a, linkContent: o, links: s, onExpandSidebar: c, onToggleExpand: l }) => {
|
|
9023
|
+
let d = "pds-side-nav-global", f = `${d}__item`, p = `${d}__menu`, m = /* @__PURE__ */ e.createElement("div", { className: `${f}-wrapper` }, Ui(d, o, s, t)), _ = (t, n) => /* @__PURE__ */ e.createElement("ul", { className: Z([
|
|
9083
9024
|
p,
|
|
9084
9025
|
`${p}--${n}`,
|
|
9085
9026
|
r ? `${p}--expanded` : null
|
|
@@ -9088,7 +9029,7 @@ var Ur = {
|
|
|
9088
9029
|
className: Z([
|
|
9089
9030
|
f,
|
|
9090
9031
|
`${f}--${n}`,
|
|
9091
|
-
|
|
9032
|
+
zi(t) ? `${f}--active` : null
|
|
9092
9033
|
])
|
|
9093
9034
|
}, t.linkContent))), [v, y] = g(!1), b = h(v), x = h(!1), { context: C, floatingStyles: k, refs: A } = M({
|
|
9094
9035
|
placement: "right-start",
|
|
@@ -9142,7 +9083,7 @@ var Ur = {
|
|
|
9142
9083
|
...F(),
|
|
9143
9084
|
onClick: z,
|
|
9144
9085
|
onKeyDown: L
|
|
9145
|
-
}, s ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${f}-wrapper` },
|
|
9086
|
+
}, s ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${f}-wrapper` }, Ui(d, o, s, t), !i && /* @__PURE__ */ e.createElement("button", {
|
|
9146
9087
|
"aria-expanded": r,
|
|
9147
9088
|
className: Z([`${d}__toggle`, r ? `${d}__toggle--expanded` : null]),
|
|
9148
9089
|
onClick: l,
|
|
@@ -9150,13 +9091,13 @@ var Ur = {
|
|
|
9150
9091
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
9151
9092
|
iconName: "angleDown",
|
|
9152
9093
|
size: "m"
|
|
9153
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${a.toggle} ${
|
|
9094
|
+
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${a.toggle} ${Li(o)} ${a.submenu}`))), !i && _(s, "second-level"), i && v && /* @__PURE__ */ e.createElement(S, null, /* @__PURE__ */ e.createElement("div", {
|
|
9154
9095
|
ref: A.setFloating,
|
|
9155
9096
|
className: `${d}__flyout`,
|
|
9156
9097
|
style: k,
|
|
9157
9098
|
...N()
|
|
9158
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${d}__flyout-heading` },
|
|
9159
|
-
content:
|
|
9099
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${d}__flyout-heading` }, Li(o)), _(s, "second-level-flyout")))) : /* @__PURE__ */ e.createElement(e.Fragment, null, i ? /* @__PURE__ */ e.createElement(nn, {
|
|
9100
|
+
content: Li(o),
|
|
9160
9101
|
customTrigger: m,
|
|
9161
9102
|
offsetValue: {
|
|
9162
9103
|
mainAxis: 8,
|
|
@@ -9164,14 +9105,14 @@ var Ur = {
|
|
|
9164
9105
|
},
|
|
9165
9106
|
preferredPlacement: "right"
|
|
9166
9107
|
}) : m));
|
|
9167
|
-
},
|
|
9108
|
+
}, Xi = ({ ariaLabel: t, className: n, isSidebarCollapsed: r, labels: i = {
|
|
9168
9109
|
submenu: "submenu",
|
|
9169
9110
|
toggle: "Toggle"
|
|
9170
9111
|
}, menuItems: a, onExpandSidebar: o, ...s }) => {
|
|
9171
9112
|
let c = "pds-side-nav-global", l = r ? `${c}--collapsed` : `${c}--expanded`, [d, f] = g({});
|
|
9172
9113
|
u(() => {
|
|
9173
9114
|
f((e) => Object.keys(e).length ? {} : e);
|
|
9174
|
-
}, [
|
|
9115
|
+
}, [Bi(a)]);
|
|
9175
9116
|
let p = (e, t) => t in d ? d[t] : e, m = (e, t) => {
|
|
9176
9117
|
f((n) => {
|
|
9177
9118
|
let r = t in n ? n[t] : e;
|
|
@@ -9192,8 +9133,8 @@ var Ur = {
|
|
|
9192
9133
|
className: `${c}__section-label`,
|
|
9193
9134
|
role: "presentation"
|
|
9194
9135
|
}, t.label);
|
|
9195
|
-
let a =
|
|
9196
|
-
return /* @__PURE__ */ e.createElement(
|
|
9136
|
+
let a = zi(t);
|
|
9137
|
+
return /* @__PURE__ */ e.createElement(Yi, {
|
|
9197
9138
|
key: n,
|
|
9198
9139
|
icon: t.icon,
|
|
9199
9140
|
isActive: a,
|
|
@@ -9215,7 +9156,7 @@ var Ur = {
|
|
|
9215
9156
|
]),
|
|
9216
9157
|
...s
|
|
9217
9158
|
}, h);
|
|
9218
|
-
},
|
|
9159
|
+
}, Zi = ({ items: t, label: n }) => {
|
|
9219
9160
|
let r = h(null), i = "pds-nav-menu", a = t && t.length > 0, { floatingStyles: o, getFloatingProps: s, getReferenceProps: c, isOpen: l, refs: u } = Pn({
|
|
9220
9161
|
offsetValue: 8,
|
|
9221
9162
|
openOnHover: !Xt()
|
|
@@ -9252,7 +9193,7 @@ var Ur = {
|
|
|
9252
9193
|
key: n,
|
|
9253
9194
|
className: `${i}__item ${t.isSeparator ? "pds-dropdown__separator" : `pds-dropdown__item${f(t) ? " pds-dropdown__item--active" : ""}`}`
|
|
9254
9195
|
}, !t.isSeparator && t.linkContent)))));
|
|
9255
|
-
},
|
|
9196
|
+
}, Qi = ({ ariaLabel: t = "Main Navigation", className: n, menuItems: r, ...i }) => {
|
|
9256
9197
|
let [a, o] = g(null), [s, c] = g(-1), [l, f] = g(null), [p, m] = g({
|
|
9257
9198
|
container: null,
|
|
9258
9199
|
containerChildren: []
|
|
@@ -9299,7 +9240,7 @@ var Ur = {
|
|
|
9299
9240
|
},
|
|
9300
9241
|
className: `${v}__item ${v}__item--top-level ${v}__item--has-children ${x(t) === !0 ? `${v}__item--active` : ""}`,
|
|
9301
9242
|
id: i
|
|
9302
|
-
}, /* @__PURE__ */ e.createElement(
|
|
9243
|
+
}, /* @__PURE__ */ e.createElement(Zi, {
|
|
9303
9244
|
items: t.links,
|
|
9304
9245
|
label: t.label
|
|
9305
9246
|
}))) : S.push(/* @__PURE__ */ e.createElement("li", {
|
|
@@ -9318,14 +9259,14 @@ var Ur = {
|
|
|
9318
9259
|
},
|
|
9319
9260
|
...i
|
|
9320
9261
|
}, /* @__PURE__ */ e.createElement("ul", { className: `${v}__menu` }, S));
|
|
9321
|
-
},
|
|
9262
|
+
}, $i = ({ buttonLabel: t = "Toggle dropdown", filterLabel: n = "Filter items", filterPlaceholder: r = "Filter items...", links: i, minFilterItems: a = 5, noResultsText: o = "No results found" }) => {
|
|
9322
9263
|
let [s, c] = g(i), [l, d] = g(""), f = i.length >= a, p = "pds-tab-menu", m = `${p}__dropdown-menu`, h = f ? `${m}--scroll` : null, _ = `${p}__dropdown-item`, { activeIndex: v, floatingStyles: y, getFloatingProps: b, getItemProps: x, getReferenceProps: C, isMounted: w, isOpen: T, listRef: E, refs: D, setActiveIndex: O, transitionStyles: k } = Pn({
|
|
9323
9264
|
offsetValue: 8,
|
|
9324
9265
|
placement: "bottom-start",
|
|
9325
9266
|
role: "listbox"
|
|
9326
9267
|
}), A = (e) => {
|
|
9327
9268
|
e.preventDefault(), e.key === "Enter" && E.current[v].querySelector("a")?.click(), e.key === "Tab" && e.shiftKey && f && document.getElementById("links-filter").focus();
|
|
9328
|
-
}, j = (e, t) =>
|
|
9269
|
+
}, j = (e, t) => Li(e.linkContent).toLowerCase().includes(t.toLowerCase()), M = (e) => {
|
|
9329
9270
|
let t = e.target.value;
|
|
9330
9271
|
d(t), c(i.filter((e) => j(e, t)));
|
|
9331
9272
|
};
|
|
@@ -9336,11 +9277,11 @@ var Ur = {
|
|
|
9336
9277
|
d(""), c(i);
|
|
9337
9278
|
}, P = {
|
|
9338
9279
|
minWidth: "13rem",
|
|
9339
|
-
width: `${
|
|
9280
|
+
width: `${Li(i.reduce((e, t) => Li(e.linkContent).length > Li(t.linkContent).length ? e : t).linkContent).length + 2}ch`
|
|
9340
9281
|
}, F = /* @__PURE__ */ e.createElement(Q, {
|
|
9341
9282
|
className: `${p}__active-icon`,
|
|
9342
9283
|
iconName: "check"
|
|
9343
|
-
}), I = f && /* @__PURE__ */ e.createElement("div", { className: `${p}__filter` }, /* @__PURE__ */ e.createElement(
|
|
9284
|
+
}), I = f && /* @__PURE__ */ e.createElement("div", { className: `${p}__filter` }, /* @__PURE__ */ e.createElement(Ai, {
|
|
9344
9285
|
hasClearButton: !0,
|
|
9345
9286
|
autoComplete: "off",
|
|
9346
9287
|
id: "links-filter",
|
|
@@ -9383,9 +9324,9 @@ var Ur = {
|
|
|
9383
9324
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
9384
9325
|
} })
|
|
9385
9326
|
}, /* @__PURE__ */ e.createElement("div", { style: { ...k } }, I, /* @__PURE__ */ e.createElement("ul", { className: Z([m, h]) }, L.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: `${p}__no-results` }, o) : L)))));
|
|
9386
|
-
},
|
|
9327
|
+
}, ea = ({ ariaLabel: t, className: n, menuItems: i, ...a }) => {
|
|
9387
9328
|
let o = "pds-tab-menu", c = ({ dropdownSettings: t, icon: n, isActive: i, linkContent: a, links: c, promoteActiveChildLink: l = !1 }) => {
|
|
9388
|
-
let u = `${o}__item`, d =
|
|
9329
|
+
let u = `${o}__item`, d = Ii(c);
|
|
9389
9330
|
return /* @__PURE__ */ e.createElement("li", { className: Z([u, i ? `${u}--active` : null]) }, ((t, n) => {
|
|
9390
9331
|
let i = null;
|
|
9391
9332
|
return s(t) && (i = n ? r(t, Object.assign({}, t.props, { children: [/* @__PURE__ */ e.createElement("span", {
|
|
@@ -9396,7 +9337,7 @@ var Ur = {
|
|
|
9396
9337
|
iconName: n,
|
|
9397
9338
|
size: "m"
|
|
9398
9339
|
}), t.props.children)] })) : t), i;
|
|
9399
|
-
})(l ? d : a, n), c && /* @__PURE__ */ e.createElement(
|
|
9340
|
+
})(l ? d : a, n), c && /* @__PURE__ */ e.createElement($i, {
|
|
9400
9341
|
buttonLabel: t?.buttonLabel,
|
|
9401
9342
|
filterLabel: t?.filterLabel,
|
|
9402
9343
|
filterPlaceholder: t?.filterPlaceholder,
|
|
@@ -9408,7 +9349,7 @@ var Ur = {
|
|
|
9408
9349
|
key: n,
|
|
9409
9350
|
dropdownSettings: t.dropdownSettings,
|
|
9410
9351
|
icon: t.icon,
|
|
9411
|
-
isActive:
|
|
9352
|
+
isActive: zi(t),
|
|
9412
9353
|
linkContent: t.linkContent,
|
|
9413
9354
|
links: t.links,
|
|
9414
9355
|
promoteActiveChildLink: t.promoteActiveChildLink
|
|
@@ -9418,11 +9359,11 @@ var Ur = {
|
|
|
9418
9359
|
className: Z([o, n ?? ""]),
|
|
9419
9360
|
...a
|
|
9420
9361
|
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__mobile-menu-wrapper` }, l));
|
|
9421
|
-
},
|
|
9362
|
+
}, ta = {
|
|
9422
9363
|
2: "second",
|
|
9423
9364
|
3: "third",
|
|
9424
9365
|
4: "fourth"
|
|
9425
|
-
},
|
|
9366
|
+
}, na = ({ ariaLabel: t, className: n, headingText: r, labels: i = {
|
|
9426
9367
|
submenu: "submenu",
|
|
9427
9368
|
toggle: "Toggle"
|
|
9428
9369
|
}, menuItems: a, ...o }) => {
|
|
@@ -9542,7 +9483,7 @@ var Ur = {
|
|
|
9542
9483
|
display: "none"
|
|
9543
9484
|
}), b();
|
|
9544
9485
|
}, j = (t, n, r) => {
|
|
9545
|
-
let a =
|
|
9486
|
+
let a = ta[t], o = `${l}--${a}-level`, u = `${c}--${a}-level`, d = t + 1, f = zi(n);
|
|
9546
9487
|
if (_.current && n.path) {
|
|
9547
9488
|
let e = _.current.querySelector(`.${c}[data-item-path="${n.path}"]`);
|
|
9548
9489
|
if (e) {
|
|
@@ -9559,7 +9500,7 @@ var Ur = {
|
|
|
9559
9500
|
iconName: "angleDown",
|
|
9560
9501
|
size: "s",
|
|
9561
9502
|
verticalAlign: "-0.0625rem"
|
|
9562
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${i.toggle} ${
|
|
9503
|
+
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${i.toggle} ${Li(n.linkContent)} ${i.submenu}`)), Hi(n.linkContent, n.links)), /* @__PURE__ */ e.createElement("ul", {
|
|
9563
9504
|
className: Z([
|
|
9564
9505
|
l,
|
|
9565
9506
|
o,
|
|
@@ -9567,7 +9508,7 @@ var Ur = {
|
|
|
9567
9508
|
]),
|
|
9568
9509
|
role: "group"
|
|
9569
9510
|
}, n.links.map((t, n) => {
|
|
9570
|
-
let r =
|
|
9511
|
+
let r = zi(t);
|
|
9571
9512
|
return /* @__PURE__ */ e.createElement("li", {
|
|
9572
9513
|
key: `${n}-${a}`,
|
|
9573
9514
|
"aria-expanded": t.links ? r : void 0,
|
|
@@ -9579,10 +9520,10 @@ var Ur = {
|
|
|
9579
9520
|
]),
|
|
9580
9521
|
"data-item-path": t.path || "",
|
|
9581
9522
|
role: "treeitem"
|
|
9582
|
-
}, t.links && d in
|
|
9523
|
+
}, t.links && d in ta ? j(d, t, t.links) : t.linkContent);
|
|
9583
9524
|
})));
|
|
9584
9525
|
}, M = (t, n) => {
|
|
9585
|
-
let { linkContent: r, links: i } = t, a =
|
|
9526
|
+
let { linkContent: r, links: i } = t, a = zi(t);
|
|
9586
9527
|
return /* @__PURE__ */ e.createElement("li", {
|
|
9587
9528
|
key: n,
|
|
9588
9529
|
"aria-expanded": i ? a : void 0,
|
|
@@ -9611,11 +9552,11 @@ var Ur = {
|
|
|
9611
9552
|
className: `${s}__menu ${s}__menu--top-level`,
|
|
9612
9553
|
role: "tree"
|
|
9613
9554
|
}, a.map((e, t) => M(e, t))));
|
|
9614
|
-
},
|
|
9555
|
+
}, ra = {
|
|
9615
9556
|
light: "sunBright",
|
|
9616
9557
|
dark: "moon",
|
|
9617
9558
|
system: "circleHalfStroke"
|
|
9618
|
-
},
|
|
9559
|
+
}, ia = ({ className: t, id: n = "theme-switcher-menu", labelStrings: r = {
|
|
9619
9560
|
light: "Light",
|
|
9620
9561
|
dark: "Dark",
|
|
9621
9562
|
system: "System"
|
|
@@ -9627,7 +9568,7 @@ var Ur = {
|
|
|
9627
9568
|
];
|
|
9628
9569
|
if (s === "toggle") {
|
|
9629
9570
|
let s = d.map((e) => ({
|
|
9630
|
-
iconName:
|
|
9571
|
+
iconName: ra[e],
|
|
9631
9572
|
label: r[e],
|
|
9632
9573
|
value: e
|
|
9633
9574
|
}));
|
|
@@ -9646,7 +9587,7 @@ var Ur = {
|
|
|
9646
9587
|
}
|
|
9647
9588
|
let f = d.map((e) => ({
|
|
9648
9589
|
callback: () => i?.(e),
|
|
9649
|
-
iconName:
|
|
9590
|
+
iconName: ra[e],
|
|
9650
9591
|
iconSize: "m",
|
|
9651
9592
|
label: r[e]
|
|
9652
9593
|
}));
|
|
@@ -9658,7 +9599,7 @@ var Ur = {
|
|
|
9658
9599
|
customTrigger: /* @__PURE__ */ e.createElement(tr, {
|
|
9659
9600
|
iconOnly: !0,
|
|
9660
9601
|
"aria-label": u,
|
|
9661
|
-
iconName:
|
|
9602
|
+
iconName: ra[o],
|
|
9662
9603
|
id: n,
|
|
9663
9604
|
label: "",
|
|
9664
9605
|
menuItems: f,
|
|
@@ -9667,7 +9608,7 @@ var Ur = {
|
|
|
9667
9608
|
offsetValue: 0,
|
|
9668
9609
|
preferredPlacement: "top"
|
|
9669
9610
|
}));
|
|
9670
|
-
},
|
|
9611
|
+
}, aa = ({ ariaLabel: t = "User menu", className: n, menuItems: r = [], onThemeChange: i, theme: a, themeLabel: o = "Theme", themeLabelStrings: s, userEmail: c, userImageSrc: l, userName: u, ...f }) => {
|
|
9671
9612
|
let [p, m] = g(null), [_, v] = g(!1), y = h([]), b = h([]), x = d(), C = "pds-user-menu", D = `${C}__menu`, { context: k, floatingStyles: N, refs: P } = M({
|
|
9672
9613
|
placement: "bottom-end",
|
|
9673
9614
|
open: _,
|
|
@@ -9712,7 +9653,7 @@ var Ur = {
|
|
|
9712
9653
|
}, /* @__PURE__ */ e.createElement("div", { className: `${C}__user-name` }, u), /* @__PURE__ */ e.createElement("div", { className: `${C}__user-email` }, c)), te = a !== void 0 && typeof i == "function" ? /* @__PURE__ */ e.createElement("li", {
|
|
9713
9654
|
className: `${C}__theme-row`,
|
|
9714
9655
|
role: "presentation"
|
|
9715
|
-
}, /* @__PURE__ */ e.createElement("span", { className: `${C}__theme-label` }, o), /* @__PURE__ */ e.createElement(
|
|
9656
|
+
}, /* @__PURE__ */ e.createElement("span", { className: `${C}__theme-label` }, o), /* @__PURE__ */ e.createElement(ia, {
|
|
9716
9657
|
id: `${x}-theme`,
|
|
9717
9658
|
labelStrings: s,
|
|
9718
9659
|
onChange: i,
|
|
@@ -9791,7 +9732,7 @@ var Ur = {
|
|
|
9791
9732
|
className: D,
|
|
9792
9733
|
role: "menu"
|
|
9793
9734
|
}, ee, /* @__PURE__ */ e.createElement("li", { role: "separator" }), te, Y)))));
|
|
9794
|
-
},
|
|
9735
|
+
}, oa = ({ ariaLabel: t = "Workspace selector menu", className: n, createWorkspaceLink: r, filterLabel: i = "Filter workspaces", filterPlaceholder: a = "Find workspace...", menuHeading: o = "Workspaces", minFilterItems: s = 8, noResultsText: c = "No results found", workspaceList: l = [], ...u }) => {
|
|
9795
9736
|
let [d, f] = g(""), [_, v] = g(""), y = h(null), b = l.length >= s, x = "pds-workspace-selector", C = `${x}__menu`, w = b ? `${C}--scroll` : null, { activeIndex: T, floatingStyles: E, getFloatingProps: D, getItemProps: O, getReferenceProps: k, isMounted: A, listRef: j, refs: M, setIsOpen: N, transitionStyles: P } = Pn({
|
|
9796
9737
|
enableTypeahead: !b,
|
|
9797
9738
|
role: "menu"
|
|
@@ -9894,7 +9835,7 @@ var Ur = {
|
|
|
9894
9835
|
return /* @__PURE__ */ e.createElement("span", {
|
|
9895
9836
|
className: Z([x, n]),
|
|
9896
9837
|
...u
|
|
9897
|
-
}, /* @__PURE__ */ e.createElement(qn, { label: W() }, b && /* @__PURE__ */ e.createElement("div", { className: `${x}__filter` }, /* @__PURE__ */ e.createElement(
|
|
9838
|
+
}, /* @__PURE__ */ e.createElement(qn, { label: W() }, b && /* @__PURE__ */ e.createElement("div", { className: `${x}__filter` }, /* @__PURE__ */ e.createElement(Ai, {
|
|
9898
9839
|
hasClearButton: !0,
|
|
9899
9840
|
id: "workspace-filter-mobile",
|
|
9900
9841
|
label: i,
|
|
@@ -9931,7 +9872,7 @@ var Ur = {
|
|
|
9931
9872
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
9932
9873
|
},
|
|
9933
9874
|
...D()
|
|
9934
|
-
}, b && /* @__PURE__ */ e.createElement("div", { className: `${x}__filter` }, /* @__PURE__ */ e.createElement(
|
|
9875
|
+
}, b && /* @__PURE__ */ e.createElement("div", { className: `${x}__filter` }, /* @__PURE__ */ e.createElement(Ai, {
|
|
9935
9876
|
hasClearButton: !0,
|
|
9936
9877
|
id: "workspace-filter",
|
|
9937
9878
|
label: i,
|
|
@@ -9947,12 +9888,12 @@ var Ur = {
|
|
|
9947
9888
|
className: `pds-dropdown__heading ${x}__item-heading`,
|
|
9948
9889
|
role: "presentation"
|
|
9949
9890
|
}, o), V.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: "pds-dropdown__no-results" }, c) : V), U)));
|
|
9950
|
-
},
|
|
9891
|
+
}, sa = {
|
|
9951
9892
|
info: "circleInfo",
|
|
9952
9893
|
warning: "triangleExclamation",
|
|
9953
9894
|
critical: "diamondExclamation",
|
|
9954
9895
|
discovery: "bullhorn"
|
|
9955
|
-
},
|
|
9896
|
+
}, ca = 200, la = 50, ua = ({ banners: t, className: n, dataContext: r = "product", dismissLabel: i = "Dismiss", labelNext: a = "Go to next message", labelPrevious: o = "Go to previous message", typeLabels: s = {
|
|
9956
9897
|
...Jn,
|
|
9957
9898
|
neutral: "Notice"
|
|
9958
9899
|
}, ...c }) => {
|
|
@@ -9971,21 +9912,21 @@ var Ur = {
|
|
|
9971
9912
|
}, w = d[0].type, T = w ? `${x}-group--${w}` : null, E = (e) => 500 - e, D = (e) => e === 0 ? 0 : -1, O = () => {
|
|
9972
9913
|
m(d[0].id), setTimeout(() => {
|
|
9973
9914
|
f((e) => [...e.slice(1), e[0]]), m(null);
|
|
9974
|
-
},
|
|
9915
|
+
}, ca);
|
|
9975
9916
|
}, k = () => {
|
|
9976
9917
|
y({
|
|
9977
9918
|
[d[0].id]: 502,
|
|
9978
9919
|
[d[b - 1].id]: 501
|
|
9979
9920
|
}), setTimeout(() => {
|
|
9980
9921
|
m(d[0].id);
|
|
9981
|
-
},
|
|
9922
|
+
}, la), setTimeout(() => {
|
|
9982
9923
|
f((e) => [e[e.length - 1], ...e.slice(0, e.length - 1)]), m(null), y({});
|
|
9983
|
-
},
|
|
9924
|
+
}, ca);
|
|
9984
9925
|
}, A = (t, n) => {
|
|
9985
9926
|
let { iconName: r, id: a, isDismissible: o, message: c, onDismiss: u, type: d } = t, m = d === "critical" ? "alert" : "status", g = `${s[d]}: `, y = (e) => {
|
|
9986
9927
|
e.preventDefault(), _(a), setTimeout(() => {
|
|
9987
9928
|
u?.(), _(null), f((e) => e.filter((e) => e.id !== a));
|
|
9988
|
-
},
|
|
9929
|
+
}, ca);
|
|
9989
9930
|
}, b = v[a] ?? E(n);
|
|
9990
9931
|
return /* @__PURE__ */ e.createElement("div", {
|
|
9991
9932
|
key: a,
|
|
@@ -10000,7 +9941,7 @@ var Ur = {
|
|
|
10000
9941
|
style: { zIndex: b }
|
|
10001
9942
|
}, /* @__PURE__ */ e.createElement("div", { className: `${x}__content` }, /* @__PURE__ */ e.createElement(Q, {
|
|
10002
9943
|
className: `${x}__icon ${x}__icon--${t.type}`,
|
|
10003
|
-
iconName: d === "neutral" ? r :
|
|
9944
|
+
iconName: d === "neutral" ? r : sa[d],
|
|
10004
9945
|
size: l ? "l" : "m"
|
|
10005
9946
|
}), /* @__PURE__ */ e.createElement("div", { className: `${x}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, g, " "), c)), o && /* @__PURE__ */ e.createElement("button", {
|
|
10006
9947
|
className: `${x}__dismiss-button`,
|
|
@@ -10031,12 +9972,12 @@ var Ur = {
|
|
|
10031
9972
|
onClick: O,
|
|
10032
9973
|
size: "m"
|
|
10033
9974
|
}), d.map((e, t) => A(e, t))) : A(d[0], 0));
|
|
10034
|
-
},
|
|
9975
|
+
}, da = {
|
|
10035
9976
|
info: "circleInfo",
|
|
10036
9977
|
warning: "triangleExclamation",
|
|
10037
9978
|
success: "circleCheck",
|
|
10038
9979
|
critical: "diamondExclamation"
|
|
10039
|
-
},
|
|
9980
|
+
}, fa = ({ className: t, message: n, title: r, type: i, typeLabels: a = {
|
|
10040
9981
|
...Jn,
|
|
10041
9982
|
working: "Working"
|
|
10042
9983
|
}, ...o }) => {
|
|
@@ -10057,16 +9998,16 @@ var Ur = {
|
|
|
10057
9998
|
role: l,
|
|
10058
9999
|
...o
|
|
10059
10000
|
}, /* @__PURE__ */ e.createElement("div", { className: `${s}__icon ${s}__icon-${i}` }, i === "working" ? /* @__PURE__ */ e.createElement(bn, { size: "m" }) : /* @__PURE__ */ e.createElement(Q, {
|
|
10060
|
-
iconName: `${i}` in
|
|
10001
|
+
iconName: `${i}` in da ? da[i] : da.info,
|
|
10061
10002
|
size: "m"
|
|
10062
10003
|
})), /* @__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)));
|
|
10063
|
-
},
|
|
10004
|
+
}, pa = {
|
|
10064
10005
|
info: "circleInfo",
|
|
10065
10006
|
warning: "triangleExclamation",
|
|
10066
10007
|
success: "circleCheck",
|
|
10067
10008
|
critical: "diamondExclamation",
|
|
10068
10009
|
discovery: "squareQuestion"
|
|
10069
|
-
},
|
|
10010
|
+
}, ma = ({ className: t, ctaButton: n, dataContext: r = "product", dismissLabel: i = "Dismiss", id: a, isDismissible: o, message: s, onDismiss: c, title: l, type: d = "info", typeLabels: f = Jn, ...p }) => {
|
|
10070
10011
|
let m = r === "marketing", g = h(null), _ = h(void 0), v = "pds-section-message", y = {
|
|
10071
10012
|
error: `${v}--error`,
|
|
10072
10013
|
success: `${v}--success`,
|
|
@@ -10103,7 +10044,7 @@ var Ur = {
|
|
|
10103
10044
|
role: S,
|
|
10104
10045
|
...p
|
|
10105
10046
|
}, /* @__PURE__ */ e.createElement("div", { className: `${v}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${v}__icon ${v}__icon-${d}` }, /* @__PURE__ */ e.createElement(Q, {
|
|
10106
|
-
iconName: `${d}` in
|
|
10047
|
+
iconName: `${d}` in pa ? pa[d] : pa.info,
|
|
10107
10048
|
size: m ? "xl" : "l"
|
|
10108
10049
|
})), /* @__PURE__ */ e.createElement("div", { className: `${v}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, C), l && /* @__PURE__ */ e.createElement("div", { className: `${v}__title` }, l), /* @__PURE__ */ e.createElement("div", { className: `${v}__message` }, w))), (n || o) && /* @__PURE__ */ e.createElement("div", { className: `${v}__actions` }, n && /* @__PURE__ */ e.createElement(Dn, {
|
|
10109
10050
|
...n,
|
|
@@ -10116,10 +10057,10 @@ var Ur = {
|
|
|
10116
10057
|
onClick: D,
|
|
10117
10058
|
size: m ? "l" : "m"
|
|
10118
10059
|
})));
|
|
10119
|
-
},
|
|
10060
|
+
}, ha = 3e4, ga = {
|
|
10120
10061
|
pause: "Pause notification",
|
|
10121
10062
|
resume: "Resume notification"
|
|
10122
|
-
},
|
|
10063
|
+
}, _a = i({ labelStrings: ga }), va = ({ ariaLabel: t, closeToast: n }) => /* @__PURE__ */ e.createElement(Mn, {
|
|
10123
10064
|
ariaLabel: t || "Close",
|
|
10124
10065
|
className: "pds-toast__close-button",
|
|
10125
10066
|
onClick: (e) => {
|
|
@@ -10127,13 +10068,13 @@ var Ur = {
|
|
|
10127
10068
|
},
|
|
10128
10069
|
size: "s",
|
|
10129
10070
|
tabIndex: 0
|
|
10130
|
-
}),
|
|
10071
|
+
}), ya = ({ className: t, labelStrings: n = ga, limit: r = 5, position: i = "bottom-right" }) => {
|
|
10131
10072
|
let a = Z(["pds-toaster", t]);
|
|
10132
|
-
return /* @__PURE__ */ e.createElement(
|
|
10073
|
+
return /* @__PURE__ */ e.createElement(_a.Provider, { value: { labelStrings: n } }, /* @__PURE__ */ e.createElement(ze, {
|
|
10133
10074
|
newestOnTop: !0,
|
|
10134
10075
|
autoClose: !1,
|
|
10135
10076
|
className: a,
|
|
10136
|
-
closeButton:
|
|
10077
|
+
closeButton: va,
|
|
10137
10078
|
draggable: !1,
|
|
10138
10079
|
icon: !1,
|
|
10139
10080
|
limit: r,
|
|
@@ -10143,25 +10084,25 @@ var Ur = {
|
|
|
10143
10084
|
role: "status",
|
|
10144
10085
|
transition: Re
|
|
10145
10086
|
}));
|
|
10146
|
-
},
|
|
10087
|
+
}, ba = {
|
|
10147
10088
|
info: "circleInfo",
|
|
10148
10089
|
success: "circleCheck",
|
|
10149
10090
|
warning: "triangleExclamation",
|
|
10150
10091
|
critical: "diamondExclamation"
|
|
10151
|
-
},
|
|
10092
|
+
}, xa = {
|
|
10152
10093
|
info: "Information",
|
|
10153
10094
|
success: "Success",
|
|
10154
10095
|
warning: "Warning",
|
|
10155
10096
|
critical: "Critical",
|
|
10156
10097
|
working: "Working..."
|
|
10157
|
-
},
|
|
10098
|
+
}, Sa = ({ autoCloseDuration: t, children: n, className: r, id: i, toastId: a, type: o = "info", typeLabels: s = xa }) => {
|
|
10158
10099
|
let c = "pds-toast", u = {
|
|
10159
10100
|
critical: `${c}--critical`,
|
|
10160
10101
|
info: `${c}--info`,
|
|
10161
10102
|
success: `${c}--success`,
|
|
10162
10103
|
warning: `${c}--warning`,
|
|
10163
10104
|
working: `${c}--working`
|
|
10164
|
-
}, d = `${s[o]} `, { labelStrings: f } = l(
|
|
10105
|
+
}, d = `${s[o]} `, { labelStrings: f } = l(_a), [p, m] = g(!1), h = a !== void 0 && o !== "critical" && o !== "working" && typeof t == "number";
|
|
10165
10106
|
return /* @__PURE__ */ e.createElement("div", {
|
|
10166
10107
|
className: Z([
|
|
10167
10108
|
c,
|
|
@@ -10171,7 +10112,7 @@ var Ur = {
|
|
|
10171
10112
|
id: i
|
|
10172
10113
|
}, /* @__PURE__ */ e.createElement("div", { className: `${c}__icon-container` }, o === "working" ? /* @__PURE__ */ e.createElement(bn, { size: "xl" }) : /* @__PURE__ */ e.createElement(Q, {
|
|
10173
10114
|
className: `${c}__icon ${c}__icon--${o}`,
|
|
10174
|
-
iconName:
|
|
10115
|
+
iconName: ba[o],
|
|
10175
10116
|
size: "l"
|
|
10176
10117
|
})), /* @__PURE__ */ e.createElement("div", { className: `${c}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, d), n), h && /* @__PURE__ */ e.createElement("button", {
|
|
10177
10118
|
"aria-label": p ? f.resume : f.pause,
|
|
@@ -10186,11 +10127,11 @@ var Ur = {
|
|
|
10186
10127
|
iconName: p ? "play" : "pause",
|
|
10187
10128
|
size: "m"
|
|
10188
10129
|
})));
|
|
10189
|
-
},
|
|
10130
|
+
}, Ca = /* @__PURE__ */ function(e) {
|
|
10190
10131
|
return e.Critical = "critical", e.Info = "info", e.Success = "success", e.Warning = "warning", e.Working = "working", e;
|
|
10191
|
-
}({}),
|
|
10132
|
+
}({}), wa = () => [
|
|
10192
10133
|
(t, n, r = {}) => {
|
|
10193
|
-
let i = r.toastId ?? crypto.randomUUID(), a = typeof r.autoClose == "number" ? Math.max(
|
|
10134
|
+
let i = r.toastId ?? crypto.randomUUID(), a = typeof r.autoClose == "number" ? Math.max(ha, r.autoClose) : !1, o = /* @__PURE__ */ e.createElement(Sa, {
|
|
10194
10135
|
autoCloseDuration: a || void 0,
|
|
10195
10136
|
toastId: i,
|
|
10196
10137
|
type: t
|
|
@@ -10215,7 +10156,7 @@ var Ur = {
|
|
|
10215
10156
|
enter: "pds-toast--bounceInPlace",
|
|
10216
10157
|
exit: "pds-toast--slideOut"
|
|
10217
10158
|
})
|
|
10218
|
-
],
|
|
10159
|
+
], Ta = ({ ariaLabel: t, children: n, className: r, closeButtonLabel: i = "Close drawer", disableOutsideClick: a, hasCloseButton: o = !0, isOpen: s = !1, placement: l = "right", setIsOpen: d = () => {}, size: f = "m", title: p, width: m, ..._ }) => {
|
|
10219
10160
|
let v = ft(n), y = v.__unslotted, b = v.footer, x = "pds-drawer", S = m ? null : `${x}--${f}`, C = `${x}--${l}`, w = m ? { width: m } : void 0, [T, E] = g(s), [D, O] = g(!1), k = h(null), { closeOverlay: A, openOverlay: j } = en();
|
|
10220
10161
|
u(() => {
|
|
10221
10162
|
s ? E(!0) : O(!1);
|
|
@@ -10280,7 +10221,7 @@ var Ur = {
|
|
|
10280
10221
|
onClick: M,
|
|
10281
10222
|
size: "m"
|
|
10282
10223
|
})), /* @__PURE__ */ e.createElement("div", { className: `${x}__content` }, y), b && /* @__PURE__ */ e.createElement("div", { className: `${x}__footer` }, b)))), document.body) : null;
|
|
10283
|
-
},
|
|
10224
|
+
}, Ea = ({ ariaLabel: t, background: n = "default", children: r, className: i, closeButtonLabel: a = "Close", closeIconName: o = "compress", hasCloseButton: s = !0, isOpen: c, onClose: l, ...d }) => {
|
|
10284
10225
|
let f = "pds-full-screen-overlay", p = n === "default" ? null : `${f}--bg-${n}`, { closeOverlay: m, openOverlay: h } = en();
|
|
10285
10226
|
u(() => {
|
|
10286
10227
|
if (!(!h || !m) && c) return h(), () => m();
|
|
@@ -10345,7 +10286,7 @@ var Ur = {
|
|
|
10345
10286
|
}),
|
|
10346
10287
|
zIndex: 9999
|
|
10347
10288
|
}), /* @__PURE__ */ e.createElement("div", { className: `${f}__content` }, r)))), document.body) : null;
|
|
10348
|
-
},
|
|
10289
|
+
}, Da = ({ ariaLabel: t, children: n, className: r, closeButtonLabel: i = "Close modal", contentMaxHeight: a, disableOutsideClick: o, hasCloseButton: s = !0, modalIsOpen: c = !1, setModalIsOpen: l = () => {}, size: d = "m", title: f, ...p }) => {
|
|
10349
10290
|
let m = ft(n), h = m.__unslotted, _ = m.footer, v = "pds-modal", y = d === "m" ? null : `${v}--${d}`, S = a ? {
|
|
10350
10291
|
maxHeight: a,
|
|
10351
10292
|
paddingInlineEnd: "1rem",
|
|
@@ -10421,27 +10362,27 @@ var Ur = {
|
|
|
10421
10362
|
className: `${v}__content`,
|
|
10422
10363
|
style: S
|
|
10423
10364
|
}, h), _ && /* @__PURE__ */ e.createElement("div", { className: `${v}__footer` }, _)))), document.body) : null;
|
|
10424
|
-
},
|
|
10365
|
+
}, Oa = (e, t) => {
|
|
10425
10366
|
let n = t - e + 1;
|
|
10426
10367
|
return Array.from({ length: n }, (t, n) => n + e);
|
|
10427
|
-
},
|
|
10368
|
+
}, ka = ({ bufferCount: e = 1, currentPage: t, itemsPerPage: n, totalItemCount: r }) => m(() => {
|
|
10428
10369
|
let i = Math.ceil(r / n), a = e + 5, o = i;
|
|
10429
|
-
if (a >= i) return
|
|
10370
|
+
if (a >= i) return Oa(1, i);
|
|
10430
10371
|
let s = Math.max(t - e, 1), c = Math.min(t + e, i), l = s > 2, u = c < i - 2;
|
|
10431
10372
|
if (!l && u) return [
|
|
10432
|
-
...
|
|
10373
|
+
...Oa(1, 3 + 2 * e),
|
|
10433
10374
|
"...",
|
|
10434
10375
|
i
|
|
10435
10376
|
];
|
|
10436
10377
|
if (l && !u) return [
|
|
10437
10378
|
1,
|
|
10438
10379
|
"...",
|
|
10439
|
-
...
|
|
10380
|
+
...Oa(i - (3 + 2 * e) + 1, i)
|
|
10440
10381
|
];
|
|
10441
10382
|
if (l && u) return [
|
|
10442
10383
|
1,
|
|
10443
10384
|
"...",
|
|
10444
|
-
...
|
|
10385
|
+
...Oa(s, c),
|
|
10445
10386
|
"...",
|
|
10446
10387
|
o
|
|
10447
10388
|
];
|
|
@@ -10450,11 +10391,11 @@ var Ur = {
|
|
|
10450
10391
|
n,
|
|
10451
10392
|
e,
|
|
10452
10393
|
t
|
|
10453
|
-
]),
|
|
10394
|
+
]), Aa = ({ bufferCount: t = 1, className: n, currentPage: r, headingLevel: i = "h2", headingText: a = "Pagination", itemsPerPage: o = 10, labelStrings: s = {
|
|
10454
10395
|
previous: "Go to previous page",
|
|
10455
10396
|
next: "Go to next page"
|
|
10456
10397
|
}, onPageChange: c, size: l = "m", totalItemCount: u, ...d }) => {
|
|
10457
|
-
let f =
|
|
10398
|
+
let f = ka({
|
|
10458
10399
|
currentPage: r,
|
|
10459
10400
|
totalItemCount: u,
|
|
10460
10401
|
bufferCount: t,
|
|
@@ -10508,7 +10449,7 @@ var Ur = {
|
|
|
10508
10449
|
size: "m"
|
|
10509
10450
|
}))
|
|
10510
10451
|
}))));
|
|
10511
|
-
},
|
|
10452
|
+
}, ja = ({ className: t, currentPage: n, headingLevel: r = "h2", headingText: i = "Pagination", itemsPerPage: a = 10, labelStrings: o = {
|
|
10512
10453
|
next: "Next",
|
|
10513
10454
|
previous: "Previous"
|
|
10514
10455
|
}, nextPage: s, onPageChange: c, previousPage: l, totalItemCount: u, ...d }) => {
|
|
@@ -10537,7 +10478,7 @@ var Ur = {
|
|
|
10537
10478
|
iconName: "angleRight",
|
|
10538
10479
|
size: "m"
|
|
10539
10480
|
}))));
|
|
10540
|
-
},
|
|
10481
|
+
}, Ma = ({ className: t, currentPage: n, headingLevel: r = "h2", headingText: i = "Pagination", itemsPerPage: a = 10, labelStrings: o = {
|
|
10541
10482
|
next: "Go to next page",
|
|
10542
10483
|
of: "of",
|
|
10543
10484
|
page: "Page",
|
|
@@ -10573,7 +10514,7 @@ var Ur = {
|
|
|
10573
10514
|
className: "visually-hidden",
|
|
10574
10515
|
id: "pagination-compact",
|
|
10575
10516
|
level: r
|
|
10576
|
-
}, i), o.page && /* @__PURE__ */ e.createElement("span", { className: `${b}__count` }, o.page), c === "input" ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
10517
|
+
}, i), o.page && /* @__PURE__ */ e.createElement("span", { className: `${b}__count` }, o.page), c === "input" ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(Ai, {
|
|
10577
10518
|
className: C ? `${b}__page-input--error` : void 0,
|
|
10578
10519
|
id: p,
|
|
10579
10520
|
inputProps: {
|
|
@@ -10592,7 +10533,7 @@ var Ur = {
|
|
|
10592
10533
|
}), C && /* @__PURE__ */ e.createElement("span", {
|
|
10593
10534
|
className: "visually-hidden",
|
|
10594
10535
|
role: "alert"
|
|
10595
|
-
}, C)) : /* @__PURE__ */ e.createElement(
|
|
10536
|
+
}, C)) : /* @__PURE__ */ e.createElement(hr, {
|
|
10596
10537
|
autoWidth: !0,
|
|
10597
10538
|
id: p,
|
|
10598
10539
|
label: o.pageSelect,
|
|
@@ -10641,7 +10582,7 @@ var Ur = {
|
|
|
10641
10582
|
size: "m"
|
|
10642
10583
|
}))
|
|
10643
10584
|
})));
|
|
10644
|
-
},
|
|
10585
|
+
}, Na = ({ children: t, className: n, id: r, isOpen: i = !1, showBorder: a = !0, summary: o, ...s }) => {
|
|
10645
10586
|
let [c, l] = g(i), f = d(), p = r ?? `expansion-panel-${f}`, m = "pds-expansion-panel", _ = a ? null : `${m}--no-border`, v = h(null);
|
|
10646
10587
|
return u(() => {
|
|
10647
10588
|
let e = v.current;
|
|
@@ -10665,7 +10606,7 @@ var Ur = {
|
|
|
10665
10606
|
className: `${m}__icon ${c ? "rotated" : ""}`,
|
|
10666
10607
|
iconName: "angleDown"
|
|
10667
10608
|
})), /* @__PURE__ */ e.createElement("div", { className: `${m}__content` }, t)));
|
|
10668
|
-
},
|
|
10609
|
+
}, Pa = ({ children: t, className: n, displayType: r = "standard", ...i }) => {
|
|
10669
10610
|
let a = "pds-expansion-panel-group", o = r === "standard" ? null : `${a}--${r}`;
|
|
10670
10611
|
return /* @__PURE__ */ e.createElement("div", {
|
|
10671
10612
|
className: Z([
|
|
@@ -10675,7 +10616,7 @@ var Ur = {
|
|
|
10675
10616
|
]),
|
|
10676
10617
|
...i
|
|
10677
10618
|
}, t);
|
|
10678
|
-
},
|
|
10619
|
+
}, Fa = ({ children: t, className: n, padding: r = "standard", variant: i = "default", ...a }) => {
|
|
10679
10620
|
let o = "pds-panel", s = i === "default" ? null : `${o}--${i}`, c = `${o}__content`, l = r === "standard" ? null : `${c}--pad-${r}`;
|
|
10680
10621
|
return /* @__PURE__ */ e.createElement("div", {
|
|
10681
10622
|
className: Z([
|
|
@@ -10685,7 +10626,7 @@ var Ur = {
|
|
|
10685
10626
|
]),
|
|
10686
10627
|
...a
|
|
10687
10628
|
}, /* @__PURE__ */ e.createElement("div", { className: Z([c, l]) }, t));
|
|
10688
|
-
},
|
|
10629
|
+
}, Ia = ({ background: t = "default", children: n, className: r, hasBorder: i = !0, paddingSize: a = "m", ...o }) => {
|
|
10689
10630
|
let s = "pds-panel-list", c = `pds-panel-list--${a}`, l = t === "default" ? null : `${s}--${t}`, u = i ? null : `${s}--borderless`;
|
|
10690
10631
|
return /* @__PURE__ */ e.createElement("ul", {
|
|
10691
10632
|
className: Z([
|
|
@@ -10697,7 +10638,7 @@ var Ur = {
|
|
|
10697
10638
|
]),
|
|
10698
10639
|
...o
|
|
10699
10640
|
}, n);
|
|
10700
|
-
},
|
|
10641
|
+
}, La = ({ children: t, className: n, expandButtonAriaLabel: r, isExpandable: i = !1, ...a }) => {
|
|
10701
10642
|
let o = "pds-panel-row", [s, c] = g(!1), l = ft(t), u = l["items-left"], d = l["items-right"], f = l["items-below"], p = () => {
|
|
10702
10643
|
c((e) => !e);
|
|
10703
10644
|
};
|
|
@@ -10728,10 +10669,10 @@ var Ur = {
|
|
|
10728
10669
|
opacity: "0"
|
|
10729
10670
|
}
|
|
10730
10671
|
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__items-inside` }, f)));
|
|
10731
|
-
},
|
|
10672
|
+
}, Ra = ({ children: t, className: n, ...r }) => /* @__PURE__ */ e.createElement("div", {
|
|
10732
10673
|
className: Z(["pds-panel-stack", n ?? ""]),
|
|
10733
10674
|
...r
|
|
10734
|
-
}, t),
|
|
10675
|
+
}, t), za = /* @__PURE__ */ e.createElement("svg", {
|
|
10735
10676
|
"aria-label": "Pantheon",
|
|
10736
10677
|
fill: "none",
|
|
10737
10678
|
focusable: "false",
|
|
@@ -10793,7 +10734,7 @@ var Ur = {
|
|
|
10793
10734
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
10794
10735
|
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",
|
|
10795
10736
|
fill: "var(--pds-color-foreground-default)"
|
|
10796
|
-
})),
|
|
10737
|
+
})), Ba = /* @__PURE__ */ e.createElement("svg", {
|
|
10797
10738
|
"aria-label": "Pantheon",
|
|
10798
10739
|
fill: "none",
|
|
10799
10740
|
focusable: "false",
|
|
@@ -10828,7 +10769,7 @@ var Ur = {
|
|
|
10828
10769
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
10829
10770
|
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",
|
|
10830
10771
|
fill: "var(--pds-color-foreground-default)"
|
|
10831
|
-
})),
|
|
10772
|
+
})), Va = /* @__PURE__ */ e.createElement("svg", {
|
|
10832
10773
|
"aria-label": "Pantheon",
|
|
10833
10774
|
fill: "none",
|
|
10834
10775
|
focusable: "false",
|
|
@@ -10863,17 +10804,17 @@ var Ur = {
|
|
|
10863
10804
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
10864
10805
|
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",
|
|
10865
10806
|
fill: "var(--pds-color-foreground-default)"
|
|
10866
|
-
})),
|
|
10807
|
+
})), Ha = ({ className: t, colorType: n = "default", displayType: r = "full", linkContent: i, size: a = "m", ...o }) => {
|
|
10867
10808
|
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;
|
|
10868
10809
|
switch (r) {
|
|
10869
10810
|
case "full":
|
|
10870
|
-
f =
|
|
10811
|
+
f = za;
|
|
10871
10812
|
break;
|
|
10872
10813
|
case "icon":
|
|
10873
|
-
f =
|
|
10814
|
+
f = Ba;
|
|
10874
10815
|
break;
|
|
10875
10816
|
case "wordmark":
|
|
10876
|
-
f =
|
|
10817
|
+
f = Va;
|
|
10877
10818
|
break;
|
|
10878
10819
|
}
|
|
10879
10820
|
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, {
|
|
@@ -10890,7 +10831,7 @@ var Ur = {
|
|
|
10890
10831
|
]),
|
|
10891
10832
|
...o
|
|
10892
10833
|
}, i ? h : f);
|
|
10893
|
-
},
|
|
10834
|
+
}, Ua = 8, Wa = 14, Ga = ({ className: t, classNameContainer: n, closeButtonLabel: r = "Close", content: i, customTrigger: a = !1, hasCloseButton: o = !1, offsetValue: s = 0, onClose: c = () => {}, placement: l = "top", popoverIsOpen: d = !1, setPopoverIsOpen: f = () => {}, title: p, triggerAccessibleText: m = "Show more information", triggerIcon: _ = "circleInfo", triggerIconSize: v = "m", ...x }) => {
|
|
10894
10835
|
let [D, k] = g(d);
|
|
10895
10836
|
u(() => {
|
|
10896
10837
|
k(d);
|
|
@@ -10917,12 +10858,12 @@ var Ur = {
|
|
|
10917
10858
|
A(V),
|
|
10918
10859
|
j(V),
|
|
10919
10860
|
R(V)
|
|
10920
|
-
]), J = U.arrow?.x ?? 0, ee = U.arrow?.y ?? 0, te = J +
|
|
10861
|
+
]), J = U.arrow?.x ?? 0, ee = U.arrow?.y ?? 0, te = J + Wa / 2, ne = ee + Ua, { isMounted: re } = z(V, {
|
|
10921
10862
|
initial: { transform: "scale(0)" },
|
|
10922
10863
|
common: ({ side: e }) => ({ transformOrigin: {
|
|
10923
|
-
top: `${te}px calc(100% + ${
|
|
10864
|
+
top: `${te}px calc(100% + ${Ua}px)`,
|
|
10924
10865
|
bottom: `${te}px -8px`,
|
|
10925
|
-
left: `calc(100% + ${
|
|
10866
|
+
left: `calc(100% + ${Ua}px) ${ne}px`,
|
|
10926
10867
|
right: `-8px ${ne}px`
|
|
10927
10868
|
}[e] })
|
|
10928
10869
|
});
|
|
@@ -10954,23 +10895,23 @@ var Ur = {
|
|
|
10954
10895
|
className: `${P}__arrow`,
|
|
10955
10896
|
context: V,
|
|
10956
10897
|
fill: "var(--pds-color-surface-default)",
|
|
10957
|
-
height:
|
|
10898
|
+
height: Ua,
|
|
10958
10899
|
stroke: "var(--pds-color-popover-border)",
|
|
10959
10900
|
strokeWidth: 1,
|
|
10960
10901
|
tipRadius: 0,
|
|
10961
|
-
width:
|
|
10902
|
+
width: Wa
|
|
10962
10903
|
}), /* @__PURE__ */ e.createElement("div", { className: `${P}__container-inner` }, p && /* @__PURE__ */ e.createElement("div", { className: `${P}__title` }, p), i && /* @__PURE__ */ e.createElement("div", { className: `${P}__content` }, i), o && /* @__PURE__ */ e.createElement("div", { className: `${P}__close-wrapper` }, /* @__PURE__ */ e.createElement(Mn, {
|
|
10963
10904
|
ariaLabel: r,
|
|
10964
10905
|
onClick: G,
|
|
10965
10906
|
size: "s"
|
|
10966
10907
|
})))))));
|
|
10967
|
-
},
|
|
10908
|
+
}, Ka = {
|
|
10968
10909
|
neutral: "--pds-color-status-neutral-indicator",
|
|
10969
10910
|
info: "--pds-color-status-info-fill",
|
|
10970
10911
|
success: "--pds-color-status-success-fill",
|
|
10971
10912
|
warning: "--pds-color-status-warning-fill",
|
|
10972
10913
|
critical: "--pds-color-status-critical-fill"
|
|
10973
|
-
},
|
|
10914
|
+
}, qa = ({ className: t, colorBreakpoints: n = [{
|
|
10974
10915
|
colorType: "info",
|
|
10975
10916
|
percentage: 0
|
|
10976
10917
|
}, {
|
|
@@ -10991,7 +10932,7 @@ var Ur = {
|
|
|
10991
10932
|
id: m
|
|
10992
10933
|
}, i), (x || l) && /* @__PURE__ */ e.createElement("div", { className: `${h}__details` }, x && b, l && /* @__PURE__ */ e.createElement("div", {
|
|
10993
10934
|
className: `${h}__percentage`,
|
|
10994
|
-
style: { color: `hsl(from var(${
|
|
10935
|
+
style: { color: `hsl(from var(${Ka[y]}) h s calc(l - 7))` }
|
|
10995
10936
|
}, s, "%")), /* @__PURE__ */ e.createElement("div", { className: `${h}__wrapper` }, /* @__PURE__ */ e.createElement("div", {
|
|
10996
10937
|
"aria-labelledby": m,
|
|
10997
10938
|
"aria-valuenow": v,
|
|
@@ -11001,16 +10942,16 @@ var Ur = {
|
|
|
11001
10942
|
className: `${h}__bar`,
|
|
11002
10943
|
style: {
|
|
11003
10944
|
width: `${v}%`,
|
|
11004
|
-
backgroundColor: `var(${
|
|
10945
|
+
backgroundColor: `var(${Ka[y]})`
|
|
11005
10946
|
}
|
|
11006
10947
|
}))), S && b);
|
|
11007
|
-
},
|
|
10948
|
+
}, Ja = {
|
|
11008
10949
|
neutral: "--pds-color-status-neutral-indicator",
|
|
11009
10950
|
info: "--pds-color-status-info-fill",
|
|
11010
10951
|
success: "--pds-color-status-success-fill",
|
|
11011
10952
|
warning: "--pds-color-status-warning-fill",
|
|
11012
10953
|
critical: "--pds-color-status-critical-fill"
|
|
11013
|
-
},
|
|
10954
|
+
}, Ya = ({ className: t, colorBreakpoints: n = [{
|
|
11014
10955
|
colorType: "info",
|
|
11015
10956
|
percentage: 0
|
|
11016
10957
|
}, {
|
|
@@ -11059,7 +11000,7 @@ var Ur = {
|
|
|
11059
11000
|
strokeDasharray: x,
|
|
11060
11001
|
strokeDashoffset: S,
|
|
11061
11002
|
strokeWidth: y,
|
|
11062
|
-
style: { stroke: `var(${
|
|
11003
|
+
style: { stroke: `var(${Ja[C]})` },
|
|
11063
11004
|
transform: `rotate(-90 ${v / 2} ${v / 2})`
|
|
11064
11005
|
}), /* @__PURE__ */ e.createElement("text", {
|
|
11065
11006
|
alignmentBaseline: "middle",
|
|
@@ -11069,29 +11010,29 @@ var Ur = {
|
|
|
11069
11010
|
x: "50%",
|
|
11070
11011
|
y: "51%"
|
|
11071
11012
|
}, w))));
|
|
11072
|
-
},
|
|
11013
|
+
}, Xa = {
|
|
11073
11014
|
of: "of",
|
|
11074
11015
|
showing: "Showing",
|
|
11075
11016
|
unitPlural: "results",
|
|
11076
11017
|
unitSingular: "result"
|
|
11077
|
-
},
|
|
11018
|
+
}, Za = (e, t, n, r) => new Intl.PluralRules(r).select(e) === "one" ? t : n, Qa = ({ className: t, countMatching: n, countTotal: r, labelStrings: i, locale: a, ...o }) => {
|
|
11078
11019
|
let s = "pds-result-count", c = `${s}__number`, { of: l, showing: u, unitPlural: d, unitSingular: f } = {
|
|
11079
|
-
...
|
|
11020
|
+
...Xa,
|
|
11080
11021
|
...i
|
|
11081
|
-
}, p = n !== void 0, m =
|
|
11022
|
+
}, p = n !== void 0, m = Za(r, f, d, a);
|
|
11082
11023
|
return /* @__PURE__ */ e.createElement("div", {
|
|
11083
11024
|
"aria-live": "polite",
|
|
11084
11025
|
className: Z([s, t ?? ""]),
|
|
11085
11026
|
...o
|
|
11086
11027
|
}, /* @__PURE__ */ e.createElement("span", null, p && /* @__PURE__ */ e.createElement(e.Fragment, null, u && `${u} `, /* @__PURE__ */ e.createElement("span", { className: c }, n), ` ${l} `), /* @__PURE__ */ e.createElement("span", { className: c }, r), ` ${m}`));
|
|
11087
|
-
},
|
|
11028
|
+
}, $a = {
|
|
11088
11029
|
privacy: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Privacy Policy"),
|
|
11089
11030
|
dataSubjectRequest: /* @__PURE__ */ e.createElement("a", { href: "http://pantheon.io/data-subject-request" }, "Data Subject Request"),
|
|
11090
11031
|
cookiePolicy: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Cookie Policy"),
|
|
11091
11032
|
termsOfUse: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Terms of Use"),
|
|
11092
11033
|
acceptableUse: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Acceptable Use Policy"),
|
|
11093
11034
|
accessibilityStatement: /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/accessibility-statement" }, "Accessibility Statement")
|
|
11094
|
-
},
|
|
11035
|
+
}, eo = (e) => typeof e == "string", to = ({ as: t = "div", children: n, className: r, containerWidth: i = "full", hasTopBorder: a, legalLinks: o = [
|
|
11095
11036
|
"privacy",
|
|
11096
11037
|
"dataSubjectRequest",
|
|
11097
11038
|
"cookiePolicy",
|
|
@@ -11108,8 +11049,8 @@ var Ur = {
|
|
|
11108
11049
|
r ?? ""
|
|
11109
11050
|
]),
|
|
11110
11051
|
...c
|
|
11111
|
-
}, /* @__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) =>
|
|
11112
|
-
},
|
|
11052
|
+
}, /* @__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) => eo(t) ? /* @__PURE__ */ e.createElement(e.Fragment, { key: t }, $a[t]) : /* @__PURE__ */ e.createElement(e.Fragment, { key: n }, t)))));
|
|
11053
|
+
}, no = ({ className: t, option: n, ...r }) => {
|
|
11113
11054
|
let i = "pds-site-option-display", a = n.type ? er[n.type] : "boltSolid", o = h(null), [s] = Ue(o), c = s.width / 16 - 7.5, l, u;
|
|
11114
11055
|
n.status === "active" && (l = "Active", u = "success"), n.status === "frozen" && (l = "Frozen", u = "frozen"), n.status === "restricted" && (l = "Restricted", u = "critical");
|
|
11115
11056
|
let d = /* @__PURE__ */ e.createElement(xn, {
|
|
@@ -11132,7 +11073,7 @@ var Ur = {
|
|
|
11132
11073
|
className: `${i}__status`,
|
|
11133
11074
|
style: { pointerEvents: "none" }
|
|
11134
11075
|
}, d));
|
|
11135
|
-
},
|
|
11076
|
+
}, ro = ({ className: t, disabled: n = !1, id: r, isLoading: i = !1, label: a = "Search sites", labelStrings: o = {
|
|
11136
11077
|
clearButton: "Clear input text",
|
|
11137
11078
|
inputInstructions: "Type to search options"
|
|
11138
11079
|
}, loadingText: s = "Loading results...", noResultsText: c = "No results found", onFocus: l, onOptionSelect: u, placeholder: d = "Search sites", siteList: f, ...p }) => {
|
|
@@ -11144,7 +11085,7 @@ var Ur = {
|
|
|
11144
11085
|
id: n,
|
|
11145
11086
|
label: i,
|
|
11146
11087
|
value: r ?? i,
|
|
11147
|
-
optionDisplay: /* @__PURE__ */ e.createElement(
|
|
11088
|
+
optionDisplay: /* @__PURE__ */ e.createElement(no, { option: t }),
|
|
11148
11089
|
siteData: t
|
|
11149
11090
|
};
|
|
11150
11091
|
});
|
|
@@ -11152,7 +11093,7 @@ var Ur = {
|
|
|
11152
11093
|
className: Z([_, t ?? ""]),
|
|
11153
11094
|
id: r,
|
|
11154
11095
|
...p
|
|
11155
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${_}__inner` }, /* @__PURE__ */ e.createElement(
|
|
11096
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${_}__inner` }, /* @__PURE__ */ e.createElement(ni, {
|
|
11156
11097
|
hasClearButton: !0,
|
|
11157
11098
|
hasSearchShortcut: !0,
|
|
11158
11099
|
className: `${_}__combobox`,
|
|
@@ -11173,7 +11114,7 @@ var Ur = {
|
|
|
11173
11114
|
};
|
|
11174
11115
|
//#endregion
|
|
11175
11116
|
//#region src/components/SortableList/sortable-utils.ts
|
|
11176
|
-
function
|
|
11117
|
+
function io(e, t, n = null, r = 0, i = []) {
|
|
11177
11118
|
return e.reduce((e, a, o) => {
|
|
11178
11119
|
let s = !!a.children?.length, c = t.has(a.id);
|
|
11179
11120
|
return e.push({
|
|
@@ -11185,10 +11126,10 @@ function ao(e, t, n = null, r = 0, i = []) {
|
|
|
11185
11126
|
index: o,
|
|
11186
11127
|
isExpanded: c,
|
|
11187
11128
|
parentId: n
|
|
11188
|
-
}), s && c && a.children && e.push(...
|
|
11129
|
+
}), s && c && a.children && e.push(...io(a.children, t, a.id, r + 1, [...i, a.id])), e;
|
|
11189
11130
|
}, []);
|
|
11190
11131
|
}
|
|
11191
|
-
function
|
|
11132
|
+
function ao(e) {
|
|
11192
11133
|
let t = /* @__PURE__ */ new Map(), n = new Set(e.map((e) => e.id)), r = [];
|
|
11193
11134
|
for (let i of e) {
|
|
11194
11135
|
let e = i.data.children ?? [], a = e.length > 0 && !e.some((e) => n.has(e.id)), o = {
|
|
@@ -11201,28 +11142,28 @@ function oo(e) {
|
|
|
11201
11142
|
e && (e.children || (e.children = []), e.children.push(o));
|
|
11202
11143
|
}
|
|
11203
11144
|
}
|
|
11204
|
-
return
|
|
11145
|
+
return oo(r);
|
|
11205
11146
|
}
|
|
11206
|
-
function
|
|
11147
|
+
function oo(e) {
|
|
11207
11148
|
return e.map((e) => {
|
|
11208
11149
|
if (e.children?.length) return {
|
|
11209
11150
|
...e,
|
|
11210
|
-
children:
|
|
11151
|
+
children: oo(e.children)
|
|
11211
11152
|
};
|
|
11212
11153
|
let { children: t, ...n } = e;
|
|
11213
11154
|
return n;
|
|
11214
11155
|
});
|
|
11215
11156
|
}
|
|
11216
|
-
function
|
|
11157
|
+
function so(e, t) {
|
|
11217
11158
|
for (let n of e) {
|
|
11218
11159
|
if (n.id === t) return n;
|
|
11219
11160
|
if (n.children) {
|
|
11220
|
-
let e =
|
|
11161
|
+
let e = so(n.children, t);
|
|
11221
11162
|
if (e) return e;
|
|
11222
11163
|
}
|
|
11223
11164
|
}
|
|
11224
11165
|
}
|
|
11225
|
-
function
|
|
11166
|
+
function co(e, t, n, r, i, a, o) {
|
|
11226
11167
|
let s = e.findIndex((e) => e.id === n);
|
|
11227
11168
|
if (s === -1) return 0;
|
|
11228
11169
|
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;
|
|
@@ -11230,7 +11171,7 @@ function lo(e, t, n, r, i, a, o) {
|
|
|
11230
11171
|
}
|
|
11231
11172
|
//#endregion
|
|
11232
11173
|
//#region src/components/SortableList/SortableListHeader.tsx
|
|
11233
|
-
var
|
|
11174
|
+
var lo = ({ children: t, className: n, columns: r, ...i }) => {
|
|
11234
11175
|
if (!r && !t) return null;
|
|
11235
11176
|
let a = r ? {
|
|
11236
11177
|
display: "grid",
|
|
@@ -11251,13 +11192,13 @@ var uo = ({ children: t, className: n, columns: r, ...i }) => {
|
|
|
11251
11192
|
};
|
|
11252
11193
|
//#endregion
|
|
11253
11194
|
//#region src/components/SortableList/useSortableTree.ts
|
|
11254
|
-
function
|
|
11195
|
+
function uo({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r }) {
|
|
11255
11196
|
let i = n !== void 0, [a, o] = g(() => n ?? e ?? []), [s, l] = g(/* @__PURE__ */ new Set()), u = h(null), d = h(t);
|
|
11256
11197
|
t && !d.current && (u.current = {
|
|
11257
11198
|
items: i ? n : a,
|
|
11258
11199
|
expandedIds: s
|
|
11259
|
-
}), t || (u.current = null), d.current = t, process.env.NODE_ENV !== "production" && n !== void 0 && e !== void 0 &&
|
|
11260
|
-
let f = i ? n : a, p = m(() =>
|
|
11200
|
+
}), t || (u.current = null), d.current = t, process.env.NODE_ENV !== "production" && n !== void 0 && e !== void 0 && po("SortableList received both `items` and `defaultItems`. `items` will be used and `defaultItems` will be ignored.");
|
|
11201
|
+
let f = i ? n : a, p = m(() => io(f, s), [f, s]), _ = m(() => p.map((e) => e.id), [p]), v = c((e) => {
|
|
11261
11202
|
l((t) => {
|
|
11262
11203
|
let n = new Set(t);
|
|
11263
11204
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
@@ -11275,7 +11216,7 @@ function fo({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r })
|
|
|
11275
11216
|
}, []),
|
|
11276
11217
|
flatNodes: p,
|
|
11277
11218
|
handleReorder: c((e) => {
|
|
11278
|
-
let t =
|
|
11219
|
+
let t = ao(e);
|
|
11279
11220
|
i || o(t), r?.(t);
|
|
11280
11221
|
}, [i, r]),
|
|
11281
11222
|
resetToSnapshot: c(() => {
|
|
@@ -11287,24 +11228,24 @@ function fo({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r })
|
|
|
11287
11228
|
toggleExpand: v
|
|
11288
11229
|
};
|
|
11289
11230
|
}
|
|
11290
|
-
var
|
|
11291
|
-
function
|
|
11292
|
-
|
|
11231
|
+
var fo = /* @__PURE__ */ new Set();
|
|
11232
|
+
function po(e) {
|
|
11233
|
+
fo.has(e) || (fo.add(e), console.warn(e));
|
|
11293
11234
|
}
|
|
11294
11235
|
//#endregion
|
|
11295
11236
|
//#region src/components/SortableList/SortableList.tsx
|
|
11296
|
-
var
|
|
11237
|
+
var mo = 24, ho = { droppable: { strategy: qe.Always } }, go = o(function({ children: n, className: r, columns: i, defaultItems: a, getItemLabel: o = (e) => String(e.id), isDragEnabled: l, isItemLocked: u = () => !1, isNestingLocked: d = () => !1, items: p, maxDepth: _ = 0, onReorder: v, renderRow: y, reorderMode: b = "always", screenReaderInstructions: x, ...S }, C) {
|
|
11297
11238
|
let w = "pds-sortable-list", [T, E] = g(null), D = h(null), [O, k] = g(!1), A = h(!1), [j, M] = g(null), N = h(0), P = h(0), F = h("pointer"), I = h(0), L = h(null), [R, z] = g(0), B = h(0), [V, H] = g(0), U = h(0), W = c((e, t) => {
|
|
11298
11239
|
if (_ > 0 && (e.key === "ArrowLeft" || e.key === "ArrowRight")) {
|
|
11299
11240
|
e.preventDefault();
|
|
11300
11241
|
let n = e.key === "ArrowRight" ? 1 : -1, r = B.current, i = Math.max(-_, Math.min(_, r + n)), a = i - r;
|
|
11301
11242
|
return B.current = i, z(i), {
|
|
11302
|
-
x: t.currentCoordinates.x + a *
|
|
11243
|
+
x: t.currentCoordinates.x + a * mo,
|
|
11303
11244
|
y: t.currentCoordinates.y
|
|
11304
11245
|
};
|
|
11305
11246
|
}
|
|
11306
11247
|
return $e(e, t);
|
|
11307
|
-
}, [_]), G = b === "always" || b === "toggle" && (l ?? !1), { currentItems: K, expandItem: q, flatNodes: J, handleReorder: ee, resetToSnapshot: te, sortableIds: ne, toggleExpand: re } =
|
|
11248
|
+
}, [_]), G = b === "always" || b === "toggle" && (l ?? !1), { currentItems: K, expandItem: q, flatNodes: J, handleReorder: ee, resetToSnapshot: te, sortableIds: ne, toggleExpand: re } = uo({
|
|
11308
11249
|
defaultItems: a,
|
|
11309
11250
|
isDragEnabled: G,
|
|
11310
11251
|
items: p,
|
|
@@ -11331,9 +11272,9 @@ var ho = 24, go = { droppable: { strategy: qe.Always } }, _o = o(function({ chil
|
|
|
11331
11272
|
oe,
|
|
11332
11273
|
ae,
|
|
11333
11274
|
j
|
|
11334
|
-
]).size > 0, le = m(() => T ? J.find((e) => e.id === T) ?? null : null, [T, J]), ue = m(() => T ?
|
|
11275
|
+
]).size > 0, le = m(() => T ? J.find((e) => e.id === T) ?? null : null, [T, J]), ue = m(() => T ? so(K, String(T)) ?? null : null, [T, K]), de = m(() => {
|
|
11335
11276
|
let e = le?.depth ?? 0;
|
|
11336
|
-
return !T || !j || O || _ === 0 ? e :
|
|
11277
|
+
return !T || !j || O || _ === 0 ? e : co(J, String(T), String(j), V * mo, mo, _);
|
|
11337
11278
|
}, [
|
|
11338
11279
|
T,
|
|
11339
11280
|
le,
|
|
@@ -11345,7 +11286,7 @@ var ho = 24, go = { droppable: { strategy: qe.Always } }, _o = o(function({ chil
|
|
|
11345
11286
|
]), fe = m(() => {
|
|
11346
11287
|
if (!T || O || de === 0 || j && oe(j)) return null;
|
|
11347
11288
|
let e = J.findIndex((e) => e.id === T);
|
|
11348
|
-
return e === -1 ? null :
|
|
11289
|
+
return e === -1 ? null : _o(J, e, de);
|
|
11349
11290
|
}, [
|
|
11350
11291
|
T,
|
|
11351
11292
|
J,
|
|
@@ -11391,19 +11332,19 @@ var ho = 24, go = { droppable: { strategy: qe.Always } }, _o = o(function({ chil
|
|
|
11391
11332
|
}, [J, ae]), ge = c((e) => {
|
|
11392
11333
|
let t = e.delta.x;
|
|
11393
11334
|
if (P.current = t, A.current || _ === 0) return;
|
|
11394
|
-
let n = Math.floor(t /
|
|
11395
|
-
(n > r || n < r && t < r *
|
|
11335
|
+
let n = Math.floor(t / mo), r = U.current;
|
|
11336
|
+
(n > r || n < r && t < r * mo - mo * .4) && (U.current = n, H(n));
|
|
11396
11337
|
}, [_]), _e = c((e) => {
|
|
11397
11338
|
let { active: t, over: n } = e, r = A.current, i = B.current, a = U.current;
|
|
11398
11339
|
E(null), D.current = null, k(!1), A.current = !1, M(null), U.current = 0, H(0), L.current && (q(L.current), L.current = null);
|
|
11399
|
-
let o = J.findIndex((e) => e.id === t.id), s = r ? i *
|
|
11340
|
+
let o = J.findIndex((e) => e.id === t.id), s = r ? i * mo : a * mo, c = !n || t.id === n.id, l = n?.id ?? null;
|
|
11400
11341
|
if (r && i > 0 && c && o > 0 && (l = J[o - 1].id), !l || t.id === l) {
|
|
11401
11342
|
if (o === -1) return;
|
|
11402
11343
|
let e = J[o];
|
|
11403
11344
|
if (!e) return;
|
|
11404
|
-
let n =
|
|
11345
|
+
let n = co(J, String(t.id), String(t.id), s, mo, _);
|
|
11405
11346
|
if (n === e.depth) return;
|
|
11406
|
-
let r = [...J], [i] = r.splice(o, 1), a =
|
|
11347
|
+
let r = [...J], [i] = r.splice(o, 1), a = _o(r, o, n);
|
|
11407
11348
|
if (a && X.has(a)) return;
|
|
11408
11349
|
let c = {
|
|
11409
11350
|
...i,
|
|
@@ -11425,9 +11366,9 @@ var ho = 24, go = { droppable: { strategy: qe.Always } }, _o = o(function({ chil
|
|
|
11425
11366
|
let e = J[u];
|
|
11426
11367
|
g = Math.min(e.depth + 1, _), v = String(l);
|
|
11427
11368
|
} else {
|
|
11428
|
-
g =
|
|
11369
|
+
g = co(d, String(t.id), String(l), s, mo, _, p.depth);
|
|
11429
11370
|
let e = d[h];
|
|
11430
|
-
v = e && e.depth === g - 1 ? String(l) :
|
|
11371
|
+
v = e && e.depth === g - 1 ? String(l) : _o(d, h, g);
|
|
11431
11372
|
}
|
|
11432
11373
|
if (v && X.has(v)) return;
|
|
11433
11374
|
let y = {
|
|
@@ -11450,24 +11391,24 @@ var ho = 24, go = { droppable: { strategy: qe.Always } }, _o = o(function({ chil
|
|
|
11450
11391
|
E(null), D.current = null, k(!1), A.current = !1, M(null), P.current = 0, U.current = 0, H(0), B.current = 0, z(0), L.current && (q(L.current), L.current = null);
|
|
11451
11392
|
}, [q]), ye = m(() => ({
|
|
11452
11393
|
onDragStart({ active: e }) {
|
|
11453
|
-
let t = J.find((t) => t.id === e.id), n =
|
|
11394
|
+
let t = J.find((t) => t.id === e.id), n = so(K, String(e.id));
|
|
11454
11395
|
return `Picked up ${n ? o(n) : String(e.id)}. Current position: ${t ? J.indexOf(t) + 1 : "?"} of ${J.length} at depth ${t?.depth ?? 0}.`;
|
|
11455
11396
|
},
|
|
11456
11397
|
onDragOver({ active: e, over: t }) {
|
|
11457
11398
|
if (!t) return;
|
|
11458
11399
|
let n = J.findIndex((e) => e.id === t.id);
|
|
11459
11400
|
if (n === -1) return;
|
|
11460
|
-
let r =
|
|
11401
|
+
let r = so(K, String(e.id)), i = r ? o(r) : String(e.id), a = co(J, String(e.id), String(t.id), P.current, mo, _);
|
|
11461
11402
|
return `Moving ${i}. Target position: ${n + 1} of ${J.length} at depth ${a}.`;
|
|
11462
11403
|
},
|
|
11463
11404
|
onDragEnd({ active: e, over: t }) {
|
|
11464
|
-
let n =
|
|
11405
|
+
let n = so(K, String(e.id)), r = n ? o(n) : String(e.id);
|
|
11465
11406
|
if (!t || e.id === t.id) return `${r} dropped. No change in position.`;
|
|
11466
|
-
let i = J.findIndex((e) => e.id === t.id), a =
|
|
11407
|
+
let i = J.findIndex((e) => e.id === t.id), a = co(J, String(e.id), String(t.id), P.current, mo, _);
|
|
11467
11408
|
return `${r} dropped at position ${i + 1} of ${J.length} at depth ${a}.`;
|
|
11468
11409
|
},
|
|
11469
11410
|
onDragCancel({ active: e }) {
|
|
11470
|
-
let t = J.find((t) => t.id === e.id), n =
|
|
11411
|
+
let t = J.find((t) => t.id === e.id), n = so(K, String(e.id));
|
|
11471
11412
|
return `Sorting cancelled. ${n ? o(n) : String(e.id)} returned to position ${t ? J.indexOf(t) + 1 : "?"} of ${J.length}.`;
|
|
11472
11413
|
}
|
|
11473
11414
|
}), [
|
|
@@ -11475,14 +11416,14 @@ var ho = 24, go = { droppable: { strategy: qe.Always } }, _o = o(function({ chil
|
|
|
11475
11416
|
J,
|
|
11476
11417
|
o,
|
|
11477
11418
|
_
|
|
11478
|
-
]), be = { columns: i }, xe = t.map(n, (t) => s(t) && t.type ===
|
|
11419
|
+
]), be = { columns: i }, xe = t.map(n, (t) => s(t) && t.type === lo ? e.cloneElement(t, be) : t);
|
|
11479
11420
|
return /* @__PURE__ */ e.createElement(We, {
|
|
11480
11421
|
accessibility: {
|
|
11481
11422
|
announcements: ye,
|
|
11482
11423
|
...x ? { screenReaderInstructions: { draggable: x } } : {}
|
|
11483
11424
|
},
|
|
11484
11425
|
collisionDetection: me,
|
|
11485
|
-
measuring:
|
|
11426
|
+
measuring: ho,
|
|
11486
11427
|
onDragCancel: ve,
|
|
11487
11428
|
onDragEnd: _e,
|
|
11488
11429
|
onDragMove: ge,
|
|
@@ -11557,14 +11498,14 @@ var ho = 24, go = { droppable: { strategy: qe.Always } }, _o = o(function({ chil
|
|
|
11557
11498
|
return s(a) ? e.cloneElement(a, o) : a;
|
|
11558
11499
|
})()) : null));
|
|
11559
11500
|
});
|
|
11560
|
-
function
|
|
11501
|
+
function _o(e, t, n) {
|
|
11561
11502
|
if (n === 0) return null;
|
|
11562
11503
|
for (let r = t - 1; r >= 0; r--) if (e[r].depth === n - 1) return e[r].id;
|
|
11563
11504
|
return null;
|
|
11564
11505
|
}
|
|
11565
11506
|
//#endregion
|
|
11566
11507
|
//#region src/components/SortableList/SortableRow.tsx
|
|
11567
|
-
var
|
|
11508
|
+
var vo = ({ 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 }) => {
|
|
11568
11509
|
let { attributes: g, isDragging: _, listeners: v, setNodeRef: y, transform: b, transition: x } = et({
|
|
11569
11510
|
attributes: {
|
|
11570
11511
|
role: "listitem",
|
|
@@ -11619,11 +11560,11 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11619
11560
|
key: t.id,
|
|
11620
11561
|
className: `${w}__cell`
|
|
11621
11562
|
}, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, t.label, ": "), j[t.id] ?? null)) : t));
|
|
11622
|
-
},
|
|
11563
|
+
}, yo = [
|
|
11623
11564
|
"default",
|
|
11624
11565
|
"working",
|
|
11625
11566
|
"checked"
|
|
11626
|
-
],
|
|
11567
|
+
], bo = ({ alignment: t = "left", className: n, componentWidth: r, labelStrings: i = {}, lastChecked: a, onCheck: o, state: s = "default", ...c }) => {
|
|
11627
11568
|
let l = {
|
|
11628
11569
|
checkForUpdates: "Check for updates",
|
|
11629
11570
|
checking: "Checking...",
|
|
@@ -11670,7 +11611,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11670
11611
|
triggerIconColor: "default",
|
|
11671
11612
|
triggerIconSize: "s"
|
|
11672
11613
|
}), t === "left" && g));
|
|
11673
|
-
},
|
|
11614
|
+
}, xo = ({ className: t, label: n = null, linkContent: r, type: i = "neutral", ...a }) => {
|
|
11674
11615
|
let o = "pds-status-indicator", c = `${o}--${i}`, l = /* @__PURE__ */ e.createElement(e.Fragment, null, i === "working" ? /* @__PURE__ */ e.createElement(bn, {
|
|
11675
11616
|
className: `${o}__spinner`,
|
|
11676
11617
|
size: "m"
|
|
@@ -11687,7 +11628,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11687
11628
|
]),
|
|
11688
11629
|
...a
|
|
11689
11630
|
}, r ? d : l);
|
|
11690
|
-
},
|
|
11631
|
+
}, So = ({ className: t, contentAlignment: n = "indented", layoutDirection: r = "vertical", steps: i, ...a }) => {
|
|
11691
11632
|
let o = "pds-step-list", s = `${o}--${n}`, c = r === "horizontal" ? `${o}--horizontal` : "", l = i.map(({ content: t, header: r }, i) => {
|
|
11692
11633
|
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`;
|
|
11693
11634
|
return /* @__PURE__ */ e.createElement("li", {
|
|
@@ -11705,7 +11646,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11705
11646
|
style: r === "horizontal" ? { "--step-list-columns": i.length } : void 0,
|
|
11706
11647
|
...a
|
|
11707
11648
|
}, l);
|
|
11708
|
-
},
|
|
11649
|
+
}, Co = ({ className: t, steps: n, translatableLabels: r = {
|
|
11709
11650
|
step: "Step",
|
|
11710
11651
|
completed: "completed",
|
|
11711
11652
|
hasError: "has an error",
|
|
@@ -11769,7 +11710,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11769
11710
|
key: t.id,
|
|
11770
11711
|
className: `${o}__step`,
|
|
11771
11712
|
id: `${t.id}--mobile`
|
|
11772
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__progress-indicator` }, /* @__PURE__ */ e.createElement(
|
|
11713
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__progress-indicator` }, /* @__PURE__ */ e.createElement(Ya, {
|
|
11773
11714
|
innerLabel: n,
|
|
11774
11715
|
label: "Step progress",
|
|
11775
11716
|
percentage: i,
|
|
@@ -11794,7 +11735,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11794
11735
|
"data-steps": d,
|
|
11795
11736
|
...i
|
|
11796
11737
|
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__steps` }, m)));
|
|
11797
|
-
},
|
|
11738
|
+
}, wo = ({ _isFirstStep: t, backButton: n, forwardButton: r, hasError: i, id: a, isComplete: o, isCurrent: s, label: c, stepContent: l, ...u }) => {
|
|
11798
11739
|
let d = "pds-vert-stepper", f = `${d}__step`, p = [f];
|
|
11799
11740
|
return s && p.push(`${f}--current`), o && p.push(`${f}--complete`), i && p.push(`${f}--error`), /* @__PURE__ */ e.createElement("li", {
|
|
11800
11741
|
className: Z([...p]),
|
|
@@ -11820,14 +11761,14 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11820
11761
|
size: "s",
|
|
11821
11762
|
variant: "highlight"
|
|
11822
11763
|
})))));
|
|
11823
|
-
},
|
|
11764
|
+
}, To = ({ className: t, labelStrings: n = {
|
|
11824
11765
|
step: "Step",
|
|
11825
11766
|
completed: "completed",
|
|
11826
11767
|
hasError: "has an error"
|
|
11827
11768
|
}, steps: r, ...i }) => {
|
|
11828
11769
|
let a = "pds-vert-stepper", o = r.length, s = r.findIndex((e) => e.isCurrent), c = r.map((t, r) => {
|
|
11829
11770
|
let i = r + 1, a = r === s, c = r === 0, l = t.isComplete || !1, u = t.hasError && a, d = `${n.step} ${i}`;
|
|
11830
|
-
return l && (d = `${n.step} ${i}, ${n.completed}`), u && (d = `${n.step} ${i}, ${n.hasError}`), /* @__PURE__ */ e.createElement(
|
|
11771
|
+
return l && (d = `${n.step} ${i}, ${n.completed}`), u && (d = `${n.step} ${i}, ${n.hasError}`), /* @__PURE__ */ e.createElement(wo, {
|
|
11831
11772
|
key: `s${i}`,
|
|
11832
11773
|
_isFirstStep: c,
|
|
11833
11774
|
"aria-current": a ? "step" : null,
|
|
@@ -11848,7 +11789,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11848
11789
|
className: Z([a, t ?? ""]),
|
|
11849
11790
|
...i
|
|
11850
11791
|
}, /* @__PURE__ */ e.createElement("ol", { className: `${a}__steps` }, r && c));
|
|
11851
|
-
},
|
|
11792
|
+
}, Eo = ({ className: t, closeDetailPanelLabel: n = "Close detail panel", columns: r, currentPage: i, defaultSortKey: a, defaultSortOrder: o = "asc", detailPanelNav: s = !0, detailPanelTitle: c, detailPanelWidth: l, emptyState: f, emptyStateHeading: p = "No results found.", emptyStateMessage: _, footer: v, getPageSizeLabel: y = (e) => `Show ${e} rows per page`, getRowClassName: b, getRowId: x, getRowSelectDisabledReason: S, getSelectRowLabel: C = (e, t) => `Select row ${t}`, getSortLabel: w = (e) => `Sort by ${e}`, inspectedRowId: T, isLoading: E = !1, isRowSelectable: D = () => !0, itemsPerPage: O, loadingRowCount: k = 5, maxHeight: A, minHeight: j, nextDetailPanelRowLabel: M = "Next row", onDetailPanelNext: N, onDetailPanelPrev: P, onPageChange: F, onPageSizeChange: I, onRowInspect: L, onRowSelectionChange: R, onSort: z, pageSizeOptions: B, pageSizeSelectLabel: V = "Rows per page", paginationLabels: H, panel: U, prevDetailPanelRowLabel: W = "Previous row", renderDetailPanel: G, renderDetailPanelFooter: K, rowData: q, selectAllLabel: J = "Select all rows", selectedRows: ee, sortKey: te, sortOrder: ne, totalItemCount: re, ...ie }) => {
|
|
11852
11793
|
let Y = "pds-table", ae = d(), X = d(), oe = h(null), se = z !== void 0, ce = F !== void 0, le = I !== void 0, ue = ce || O !== void 0 || B !== void 0, de = q.length > 0 || ce && (re ?? 0) > 0, [fe, pe] = g({
|
|
11853
11794
|
key: a ?? "",
|
|
11854
11795
|
order: a === void 0 ? "asc" : o
|
|
@@ -11938,19 +11879,19 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11938
11879
|
}, Je = () => {
|
|
11939
11880
|
let e = new Set(Oe);
|
|
11940
11881
|
Ge || Ke ? We.forEach((t) => e.delete(t)) : We.forEach((t) => e.add(t)), Te || De(e), R?.(Array.from(e));
|
|
11941
|
-
}, Ye = (t) => /* @__PURE__ */ e.createElement("tr", { key: `skeleton-${t}` }, we && /* @__PURE__ */ e.createElement("td", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(
|
|
11882
|
+
}, Ye = (t) => /* @__PURE__ */ e.createElement("tr", { key: `skeleton-${t}` }, we && /* @__PURE__ */ e.createElement("td", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(kr, {
|
|
11942
11883
|
shape: "rounded",
|
|
11943
11884
|
size: {
|
|
11944
11885
|
height: 1,
|
|
11945
11886
|
width: 1
|
|
11946
11887
|
}
|
|
11947
|
-
})), r.map((n) => /* @__PURE__ */ e.createElement("td", { key: `skeleton-${t}-${n.id}` }, /* @__PURE__ */ e.createElement(
|
|
11888
|
+
})), r.map((n) => /* @__PURE__ */ e.createElement("td", { key: `skeleton-${t}-${n.id}` }, /* @__PURE__ */ e.createElement(kr, {
|
|
11948
11889
|
shape: "rounded",
|
|
11949
11890
|
size: { height: 1 }
|
|
11950
11891
|
})))), Xe = () => /* @__PURE__ */ e.createElement("tr", null, /* @__PURE__ */ e.createElement("td", {
|
|
11951
11892
|
className: "pds-table__empty-cell",
|
|
11952
11893
|
colSpan: r.length + +!!we
|
|
11953
|
-
}, f ?? /* @__PURE__ */ e.createElement(
|
|
11894
|
+
}, f ?? /* @__PURE__ */ e.createElement(pr, {
|
|
11954
11895
|
heading: p,
|
|
11955
11896
|
iconName: "emptySet",
|
|
11956
11897
|
message: _
|
|
@@ -11969,7 +11910,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11969
11910
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), Ne(t, i));
|
|
11970
11911
|
} : void 0,
|
|
11971
11912
|
tabIndex: a ? 0 : void 0
|
|
11972
|
-
}, we && /* @__PURE__ */ e.createElement("td", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(
|
|
11913
|
+
}, we && /* @__PURE__ */ e.createElement("td", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement($r, {
|
|
11973
11914
|
checked: Oe.has(i),
|
|
11974
11915
|
disabled: !s,
|
|
11975
11916
|
id: `${X}-row-${i}`,
|
|
@@ -11995,7 +11936,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11995
11936
|
"aria-busy": E,
|
|
11996
11937
|
className: Z([Y, t]),
|
|
11997
11938
|
...ie
|
|
11998
|
-
}, /* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, we && /* @__PURE__ */ e.createElement("th", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(
|
|
11939
|
+
}, /* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, we && /* @__PURE__ */ e.createElement("th", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement($r, {
|
|
11999
11940
|
checked: Ge,
|
|
12000
11941
|
id: X,
|
|
12001
11942
|
indeterminate: Ke,
|
|
@@ -12019,7 +11960,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12019
11960
|
})), /* @__PURE__ */ e.createElement("span", { className: Z([`${Y}__sort-button-bottom`, Ue(t.id, "bottom")]) }, /* @__PURE__ */ e.createElement(Q, {
|
|
12020
11961
|
iconName: "caretDown",
|
|
12021
11962
|
size: "m"
|
|
12022
|
-
})))) : /* @__PURE__ */ e.createElement("span", null, t.header))))), /* @__PURE__ */ e.createElement("tbody", null, E ? Array.from({ length: k }, (e, t) => Ye(t)) : Be.length === 0 ? Xe() : Be.map((e, t) => Ze(e, t))))), ue && !E && de && /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination" }, B && B.length > 0 && /* @__PURE__ */ e.createElement(
|
|
11963
|
+
})))) : /* @__PURE__ */ e.createElement("span", null, t.header))))), /* @__PURE__ */ e.createElement("tbody", null, E ? Array.from({ length: k }, (e, t) => Ye(t)) : Be.length === 0 ? Xe() : Be.map((e, t) => Ze(e, t))))), ue && !E && de && /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination" }, B && B.length > 0 && /* @__PURE__ */ e.createElement(hr, {
|
|
12023
11964
|
autoWidth: !0,
|
|
12024
11965
|
id: ae,
|
|
12025
11966
|
label: V,
|
|
@@ -12031,7 +11972,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12031
11972
|
showLabel: !1,
|
|
12032
11973
|
size: "s",
|
|
12033
11974
|
value: String(Se)
|
|
12034
|
-
}), /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination-controls" }, /* @__PURE__ */ e.createElement(
|
|
11975
|
+
}), /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination-controls" }, /* @__PURE__ */ e.createElement(Ma, {
|
|
12035
11976
|
currentPage: ce ? i ?? 1 : me,
|
|
12036
11977
|
itemsPerPage: Se,
|
|
12037
11978
|
labelStrings: H,
|
|
@@ -12072,8 +12013,8 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12072
12013
|
size: "s",
|
|
12073
12014
|
variant: "standard"
|
|
12074
12015
|
}))))));
|
|
12075
|
-
return U ? /* @__PURE__ */ e.createElement(
|
|
12076
|
-
},
|
|
12016
|
+
return U ? /* @__PURE__ */ e.createElement(Fa, { padding: "none" }, et) : et;
|
|
12017
|
+
}, Do = [
|
|
12077
12018
|
" ",
|
|
12078
12019
|
"/",
|
|
12079
12020
|
".",
|
|
@@ -12091,7 +12032,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12091
12032
|
"=",
|
|
12092
12033
|
"|",
|
|
12093
12034
|
"~"
|
|
12094
|
-
],
|
|
12035
|
+
], Oo = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ko = (e) => {
|
|
12095
12036
|
let t = [];
|
|
12096
12037
|
return e.forEach((e) => {
|
|
12097
12038
|
let { id: n, innerText: r } = e;
|
|
@@ -12104,18 +12045,18 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12104
12045
|
title: r
|
|
12105
12046
|
});
|
|
12106
12047
|
}), t;
|
|
12107
|
-
},
|
|
12048
|
+
}, Ao = (e, t, n) => {
|
|
12108
12049
|
let [r, i] = g([]);
|
|
12109
12050
|
return u(() => {
|
|
12110
12051
|
let r = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = () => {
|
|
12111
12052
|
let e = Array.from(document.querySelectorAll(r));
|
|
12112
12053
|
e.forEach((e) => {
|
|
12113
|
-
|
|
12114
|
-
e.id.includes(t) && (e.id = e.id.replace(new RegExp(
|
|
12054
|
+
Do.forEach((t) => {
|
|
12055
|
+
e.id.includes(t) && (e.id = e.id.replace(new RegExp(Oo(t), "g"), "-"));
|
|
12115
12056
|
});
|
|
12116
12057
|
}), e.forEach((e, t) => {
|
|
12117
12058
|
e.id || (e.id = `${n}-item-${t}`);
|
|
12118
|
-
}), i(
|
|
12059
|
+
}), i(ko(e));
|
|
12119
12060
|
};
|
|
12120
12061
|
a();
|
|
12121
12062
|
let o = document.getElementById(e);
|
|
@@ -12131,7 +12072,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12131
12072
|
t,
|
|
12132
12073
|
n
|
|
12133
12074
|
]), { nestedHeadings: r };
|
|
12134
|
-
},
|
|
12075
|
+
}, jo = (e, t) => {
|
|
12135
12076
|
let [n, r] = g(void 0), i = h({});
|
|
12136
12077
|
return u(() => {
|
|
12137
12078
|
let n = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = Array.from(document.querySelectorAll(n));
|
|
@@ -12150,7 +12091,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12150
12091
|
o.disconnect(), r(void 0);
|
|
12151
12092
|
};
|
|
12152
12093
|
}, [e, t]), n;
|
|
12153
|
-
},
|
|
12094
|
+
}, Mo = ({ 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", {
|
|
12154
12095
|
key: r.id,
|
|
12155
12096
|
className: `${n}__list-item`
|
|
12156
12097
|
}, /* @__PURE__ */ e.createElement("a", {
|
|
@@ -12166,8 +12107,8 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12166
12107
|
className: Z([`${n}__link`, r.id === t ? `${n}__link--active` : null]),
|
|
12167
12108
|
href: `#${r.id}`,
|
|
12168
12109
|
onClick: (e) => i(e, r.id)
|
|
12169
|
-
}, r.title))))))),
|
|
12170
|
-
let u = "pds-toc", { nestedHeadings: f } =
|
|
12110
|
+
}, r.title))))))), No = ({ 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 }) => {
|
|
12111
|
+
let u = "pds-toc", { nestedHeadings: f } = Ao(c, o, d()), p = jo(c, o), m = (e) => {
|
|
12171
12112
|
typeof window < "u" && window.location.hash !== `#${e}` && window.history.pushState({}, "", `#${e}`);
|
|
12172
12113
|
}, h = (e) => {
|
|
12173
12114
|
document.querySelector(`#${e}`)?.scrollIntoView({
|
|
@@ -12185,13 +12126,13 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12185
12126
|
baseClass: u,
|
|
12186
12127
|
className: `${s ? "" : "visually-hidden"}`,
|
|
12187
12128
|
level: i
|
|
12188
|
-
}, a), /* @__PURE__ */ e.createElement(
|
|
12129
|
+
}, a), /* @__PURE__ */ e.createElement(Mo, {
|
|
12189
12130
|
activeID: p,
|
|
12190
12131
|
baseClass: u,
|
|
12191
12132
|
headings: f,
|
|
12192
12133
|
onLinkClick: g
|
|
12193
12134
|
}));
|
|
12194
|
-
},
|
|
12135
|
+
}, Po = ({ ariaLabel: t, className: n, defaultSelected: r = 0, onActiveTabChange: i = () => {}, selectedTab: a, tabs: o, ...s }) => {
|
|
12195
12136
|
let c = "pds-tabs", [l, d] = g(a ?? r);
|
|
12196
12137
|
u(() => {
|
|
12197
12138
|
a !== void 0 && d(a);
|
|
@@ -12305,7 +12246,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12305
12246
|
className: `${c}__panel-content`,
|
|
12306
12247
|
hidden: o !== l
|
|
12307
12248
|
}, r)))));
|
|
12308
|
-
},
|
|
12249
|
+
}, Fo = [
|
|
12309
12250
|
"orange",
|
|
12310
12251
|
"stone",
|
|
12311
12252
|
"gold",
|
|
@@ -12319,7 +12260,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12319
12260
|
"magenta",
|
|
12320
12261
|
"rose",
|
|
12321
12262
|
"red"
|
|
12322
|
-
],
|
|
12263
|
+
], Io = [
|
|
12323
12264
|
"orange-solid",
|
|
12324
12265
|
"teal-solid",
|
|
12325
12266
|
"indigo-solid",
|
|
@@ -12329,14 +12270,14 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12329
12270
|
"lime-solid",
|
|
12330
12271
|
"sky-solid",
|
|
12331
12272
|
"slate-solid"
|
|
12332
|
-
],
|
|
12273
|
+
], Lo = [
|
|
12333
12274
|
"success-solid",
|
|
12334
12275
|
"warning-solid",
|
|
12335
12276
|
"critical-solid",
|
|
12336
12277
|
"info-solid",
|
|
12337
12278
|
"discovery-solid"
|
|
12338
|
-
],
|
|
12339
|
-
let [f, p] = g(!0), m = "pds-tag", h = c ? `${m}--${c}` : `${m}--${
|
|
12279
|
+
], Ro = [...Io, ...Lo], zo = [...Fo, ...Io], Bo = (e) => zo[parseInt(v(e), 16) % zo.length], Vo = (e, t) => e.length > t ? e.slice(0, t) + " ..." : e, Ho = ({ className: t, isRemovable: n, linkContent: r, onRemove: i, removeLabel: a = "Remove tag", size: o = "s", tagColor: c, tagLabel: l, truncationLength: u = 18, ...d }) => {
|
|
12280
|
+
let [f, p] = g(!0), m = "pds-tag", h = c ? `${m}--${c}` : `${m}--${Bo(l)}`, _ = `${m}--${o}`, v = f ? null : "pds-tag--hide", y = () => {
|
|
12340
12281
|
p((e) => !e);
|
|
12341
12282
|
}, b, x, S;
|
|
12342
12283
|
if (r && !n && s(r)) {
|
|
@@ -12358,7 +12299,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12358
12299
|
}, /* @__PURE__ */ e.createElement("span", {
|
|
12359
12300
|
className: `${m}__label`,
|
|
12360
12301
|
title: l
|
|
12361
|
-
}, u > 0 ?
|
|
12302
|
+
}, u > 0 ? Vo(l, u) : l), n ? /* @__PURE__ */ e.createElement("button", {
|
|
12362
12303
|
"aria-label": `${a}: ${l}`,
|
|
12363
12304
|
className: `${m}__remove`,
|
|
12364
12305
|
onClick: () => {
|
|
@@ -12370,7 +12311,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12370
12311
|
iconName: "xmark",
|
|
12371
12312
|
size: "m"
|
|
12372
12313
|
})) : null);
|
|
12373
|
-
},
|
|
12314
|
+
}, Uo = ({ backgroundColor: t = "transparent", children: n, className: r, padding: i = "none", ...a }) => {
|
|
12374
12315
|
let o = "pds-utility-bar", s = t === "transparent" ? null : `${o}--bg-${t}`, c = i === "none" ? null : `${o}--pad-${i}`, l = ft(n), u = l["items-left"], d = l["items-right"] ?? l.__unslotted;
|
|
12375
12316
|
return /* @__PURE__ */ e.createElement("div", {
|
|
12376
12317
|
className: Z([
|
|
@@ -12381,7 +12322,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12381
12322
|
]),
|
|
12382
12323
|
...a
|
|
12383
12324
|
}, /* @__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)));
|
|
12384
|
-
},
|
|
12325
|
+
}, Wo = () => {
|
|
12385
12326
|
let e = typeof window < "u", t = (e) => e >= 1440 ? "xl" : e >= 1280 ? "lg" : e >= 768 ? "md" : "sm", [n, r] = g(e ? t(window.innerWidth) : "lg");
|
|
12386
12327
|
return u(() => {
|
|
12387
12328
|
if (!e) return;
|
|
@@ -12392,7 +12333,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12392
12333
|
window.removeEventListener("resize", n);
|
|
12393
12334
|
};
|
|
12394
12335
|
}, []), n;
|
|
12395
|
-
},
|
|
12336
|
+
}, Go = ({ children: t, className: n, drawerContent: r, drawerProps: i, hasDrawerToggle: o, hasSidebarToggle: s, isDrawerOpen: c = !1, isSidebarCollapsed: l, keyboardShortcuts: d = !0, labels: f, mainBackground: m, mainContentElement: _ = "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 }) => {
|
|
12396
12337
|
let [j, M] = g(l || !1);
|
|
12397
12338
|
u(() => {
|
|
12398
12339
|
M(l || !1);
|
|
@@ -12414,7 +12355,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12414
12355
|
return;
|
|
12415
12356
|
}
|
|
12416
12357
|
M(!j);
|
|
12417
|
-
}, U =
|
|
12358
|
+
}, U = Wo();
|
|
12418
12359
|
u(() => {
|
|
12419
12360
|
U === "sm" && !j ? (V.current = !0, x ? x() : M(!0)) : U !== "sm" && V.current && (V.current = !1, x ? x() : M(!1));
|
|
12420
12361
|
}, [U]);
|
|
@@ -12506,10 +12447,10 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12506
12447
|
n ?? ""
|
|
12507
12448
|
]),
|
|
12508
12449
|
...A
|
|
12509
|
-
}, /* @__PURE__ */ e.createElement(
|
|
12450
|
+
}, /* @__PURE__ */ e.createElement(Ni, {
|
|
12510
12451
|
destination: I,
|
|
12511
12452
|
text: F.skipToContent
|
|
12512
|
-
}), J ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${N}__header` }, J), /* @__PURE__ */ e.createElement("div", { className: `${N}__body` }, ce)) : ce), o && /* @__PURE__ */ e.createElement(
|
|
12453
|
+
}), J ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${N}__header` }, J), /* @__PURE__ */ e.createElement("div", { className: `${N}__body` }, ce)) : ce), o && /* @__PURE__ */ e.createElement(Ta, {
|
|
12513
12454
|
...i,
|
|
12514
12455
|
isOpen: c,
|
|
12515
12456
|
placement: "left",
|
|
@@ -12517,7 +12458,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12517
12458
|
!e && c && b && b();
|
|
12518
12459
|
}
|
|
12519
12460
|
}, r));
|
|
12520
|
-
},
|
|
12461
|
+
}, Ko = ({ children: t, className: n, sidebarWidth: r = "18%", sidebarWidthMax: i = 20, sidebarWidthMin: a = 15, style: o, ...s }) => {
|
|
12521
12462
|
let c = "pds-docs-layout", l = {
|
|
12522
12463
|
"--docs-sidebar-max-width": `${i}rem`,
|
|
12523
12464
|
"--docs-sidebar-min-width": `${a}rem`,
|
|
@@ -12535,7 +12476,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12535
12476
|
},
|
|
12536
12477
|
...s
|
|
12537
12478
|
}, f && /* @__PURE__ */ e.createElement("aside", { className: `${c}__sidebar` }, /* @__PURE__ */ e.createElement("div", { className: `${c}__sidebar-inner` }, f)), /* @__PURE__ */ e.createElement("div", { className: `${c}__content` }, d));
|
|
12538
|
-
},
|
|
12479
|
+
}, qo = ({ children: t, className: n, gridGap: r = "xl", sidebarLocation: i = "right", sidebarMobileLocation: a = "after", sidebarWidth: o = "33%", sidebarWidthMax: s = 25, sidebarWidthMin: c = 15, ...l }) => {
|
|
12539
12480
|
let u = "pds-sidebar-layout", d = r === "none" ? "0" : `var(--pds-spacing-${r})`, f = ft(t);
|
|
12540
12481
|
return /* @__PURE__ */ e.createElement("div", {
|
|
12541
12482
|
className: Z([u, n ?? ""]),
|
|
@@ -12549,8 +12490,8 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12549
12490
|
},
|
|
12550
12491
|
...l
|
|
12551
12492
|
}, /* @__PURE__ */ e.createElement("div", { className: `${u}__main` }, f.__unslotted || f.content), /* @__PURE__ */ e.createElement("div", { className: `${u}__side` }, f.sidebar));
|
|
12552
|
-
},
|
|
12553
|
-
let o = ft(t), s = o.stepper, c = o.form, l = "pds-stepper-layout", u = r === "full" ? `${l}--full-width` : null, d = /* @__PURE__ */ e.createElement(
|
|
12493
|
+
}, Jo = ({ children: t, className: n, formWidth: r = "standard", hasPanel: i = !1, ...a }) => {
|
|
12494
|
+
let o = ft(t), s = o.stepper, c = o.form, l = "pds-stepper-layout", u = r === "full" ? `${l}--full-width` : null, d = /* @__PURE__ */ e.createElement(Ki, {
|
|
12554
12495
|
className: Z([
|
|
12555
12496
|
l,
|
|
12556
12497
|
u,
|
|
@@ -12559,8 +12500,8 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12559
12500
|
width: "wide",
|
|
12560
12501
|
...a
|
|
12561
12502
|
}, s && /* @__PURE__ */ e.createElement("div", { className: `${l}__stepper-container` }, s), c && /* @__PURE__ */ e.createElement("div", { className: `${l}__form-container` }, c));
|
|
12562
|
-
return i ? /* @__PURE__ */ e.createElement(
|
|
12563
|
-
},
|
|
12503
|
+
return i ? /* @__PURE__ */ e.createElement(Fa, null, d) : d;
|
|
12504
|
+
}, Yo = ({ children: t, className: n, gridGap: r = "xl", verticalAlign: i = "start", ...a }) => {
|
|
12564
12505
|
let o = "pds-three-item-layout", s = r === "xl" ? "pds-grid" : `pds-grid pds-grid--gap-${r}`, c = `${o}--${i}`, l = ft(t), u = [
|
|
12565
12506
|
l["first-item"],
|
|
12566
12507
|
l["second-item"],
|
|
@@ -12578,7 +12519,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12578
12519
|
key: n,
|
|
12579
12520
|
className: "pds-grid-item pds-grid-item--sm-12 pds-grid-item--md-4 pds-grid-item--lg-4"
|
|
12580
12521
|
}, t)));
|
|
12581
|
-
},
|
|
12522
|
+
}, Xo = ({ children: t, className: n, gridGap: r = "xl", layoutVariant: i = "equal", verticalAlign: a = "start", ...o }) => {
|
|
12582
12523
|
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;
|
|
12583
12524
|
switch (i) {
|
|
12584
12525
|
case "equal":
|
|
@@ -12599,7 +12540,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12599
12540
|
]),
|
|
12600
12541
|
...o
|
|
12601
12542
|
}, /* @__PURE__ */ e.createElement("div", { className: m.join(" ").trim() }, _), /* @__PURE__ */ e.createElement("div", { className: h.join(" ").trim() }, v));
|
|
12602
|
-
},
|
|
12543
|
+
}, Zo = ({ alignContent: t = "flex-start", alignItems: n = "stretch", children: r, className: i, flexDirection: a = "row", flexWrap: o = "nowrap", gap: s = "xl", justifyContent: c = "flex-start", mobileAlignContent: l, mobileAlignItems: u, mobileFlexDirection: d = "column", mobileFlexWrap: f, mobileGap: p, mobileJustifyContent: m, style: h, ...g }) => {
|
|
12603
12544
|
let _ = "pds-flex", v = `${_}-container`, y = {
|
|
12604
12545
|
"--pds-flex-align-content": t,
|
|
12605
12546
|
"--pds-flex-align-items": n,
|
|
@@ -12625,7 +12566,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12625
12566
|
},
|
|
12626
12567
|
...g
|
|
12627
12568
|
}, r);
|
|
12628
|
-
},
|
|
12569
|
+
}, Qo = (e) => {
|
|
12629
12570
|
let t = typeof window < "u", [n, r] = g(((e) => t ? window.matchMedia(e).matches : !1)(e));
|
|
12630
12571
|
return u(() => {
|
|
12631
12572
|
if (!t) return;
|
|
@@ -12634,20 +12575,20 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12634
12575
|
};
|
|
12635
12576
|
return r(n.matches), n.addEventListener ? (n.addEventListener("change", i), () => n.removeEventListener("change", i)) : (n.addListener(i), () => n.removeListener(i));
|
|
12636
12577
|
}, [e]), n;
|
|
12637
|
-
},
|
|
12578
|
+
}, $o = [
|
|
12638
12579
|
"light",
|
|
12639
12580
|
"dark",
|
|
12640
12581
|
"system"
|
|
12641
|
-
],
|
|
12582
|
+
], es = (e) => typeof e == "string" && $o.includes(e), ts = i(null), ns = {
|
|
12642
12583
|
resolvedTheme: "light",
|
|
12643
12584
|
setTheme: () => {},
|
|
12644
12585
|
theme: "light"
|
|
12645
|
-
},
|
|
12646
|
-
let d = l !== void 0, f = !r && !d && o && !i, [p, m] = g(n), [h, _] = g(!1), v = d ? l : p, y =
|
|
12586
|
+
}, rs = ({ 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){}})();`, is = ({ children: t, defaultTheme: n = "light", disableInitScript: r = !1, nodeRef: i, onThemeChange: a, persist: o = !0, storageKey: s = "pds-theme", theme: l }) => {
|
|
12587
|
+
let d = l !== void 0, f = !r && !d && o && !i, [p, m] = g(n), [h, _] = g(!1), v = d ? l : p, y = Qo("(prefers-color-scheme: dark)"), b = v === "system" ? h && y ? "dark" : "light" : v;
|
|
12647
12588
|
u(() => {
|
|
12648
12589
|
if (_(!0), !(d || !o || typeof window > "u")) try {
|
|
12649
12590
|
let e = window.localStorage.getItem(s);
|
|
12650
|
-
|
|
12591
|
+
es(e) && m(e);
|
|
12651
12592
|
} catch {}
|
|
12652
12593
|
}, []), u(() => {
|
|
12653
12594
|
typeof document > "u" || (i?.current ?? document.documentElement).setAttribute("data-theme", b);
|
|
@@ -12667,20 +12608,20 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12667
12608
|
]),
|
|
12668
12609
|
theme: v
|
|
12669
12610
|
};
|
|
12670
|
-
return /* @__PURE__ */ e.createElement(
|
|
12611
|
+
return /* @__PURE__ */ e.createElement(ts.Provider, { value: x }, f && /* @__PURE__ */ e.createElement("script", { dangerouslySetInnerHTML: { __html: rs({
|
|
12671
12612
|
defaultTheme: n,
|
|
12672
12613
|
storageKey: s
|
|
12673
12614
|
}) } }), t);
|
|
12674
|
-
},
|
|
12615
|
+
}, as = () => l(ts) ?? ns, os = ({ children: t, enableThemeSwitching: n = !1, mobileMaxWidth: r = 767, themeProps: i = {} }) => {
|
|
12675
12616
|
u(() => {
|
|
12676
12617
|
let e = document.documentElement, t = () => {
|
|
12677
12618
|
window.innerWidth <= r ? e.setAttribute("data-pds-mobile", "") : e.removeAttribute("data-pds-mobile");
|
|
12678
12619
|
};
|
|
12679
12620
|
return t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
|
|
12680
12621
|
}, [r]);
|
|
12681
|
-
let a = n ? /* @__PURE__ */ e.createElement(
|
|
12622
|
+
let a = n ? /* @__PURE__ */ e.createElement(is, i, t) : t;
|
|
12682
12623
|
return /* @__PURE__ */ e.createElement($t, null, a);
|
|
12683
|
-
},
|
|
12624
|
+
}, ss = ({ asContainer: t = !1, children: n, className: r, dense: i = !1, gap: a = "xl", mobileGap: o, stackBelow: s, ...c }) => {
|
|
12684
12625
|
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}`;
|
|
12685
12626
|
return /* @__PURE__ */ e.createElement("div", {
|
|
12686
12627
|
className: Z([
|
|
@@ -12694,7 +12635,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12694
12635
|
]),
|
|
12695
12636
|
...c
|
|
12696
12637
|
}, n);
|
|
12697
|
-
},
|
|
12638
|
+
}, cs = ({ children: t, className: n, rowSpanLg: r, rowSpanMd: i, rowSpanSm: a, rowSpanXl: o, spanLg: s, spanMd: c, spanSm: l, spanXl: u, ...d }) => {
|
|
12698
12639
|
let f = "pds-grid-item", p = [
|
|
12699
12640
|
l ? `${f}--sm-${l}` : null,
|
|
12700
12641
|
c ? `${f}--md-${c}` : null,
|
|
@@ -12713,7 +12654,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12713
12654
|
]),
|
|
12714
12655
|
...d
|
|
12715
12656
|
}, t);
|
|
12716
|
-
},
|
|
12657
|
+
}, ls = (e, t, n) => {
|
|
12717
12658
|
let { altKey: r = !1, ctrlKey: i = !1, enabled: a = !0, metaKey: o = !1, shiftKey: s = !1 } = n ?? {}, [l, d] = g(!1), f = c((e) => e.altKey === r && e.ctrlKey === i && e.metaKey === o && e.shiftKey === s, [
|
|
12718
12659
|
r,
|
|
12719
12660
|
i,
|
|
@@ -12737,7 +12678,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12737
12678
|
m,
|
|
12738
12679
|
a
|
|
12739
12680
|
]), l;
|
|
12740
|
-
},
|
|
12681
|
+
}, us = () => {
|
|
12741
12682
|
let e = typeof window < "u", [t, n] = g(e && window.innerWidth !== void 0 ? window.innerWidth : 1024);
|
|
12742
12683
|
return u(() => {
|
|
12743
12684
|
if (!e) return;
|
|
@@ -12751,6 +12692,6 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12751
12692
|
}, []), t;
|
|
12752
12693
|
};
|
|
12753
12694
|
//#endregion
|
|
12754
|
-
export {
|
|
12695
|
+
export { ur as ActionCard, Go as AppLayout, bt as Avatar, xt as Badge, ua as Banner, Nr as BarChart, Cn as BranchDiff, Fi as Breadcrumb, Dn as Button, On as ButtonLink, Wi as ButtonNav, ji as CTALink, lr as Callout, dr as Card, fr as CardSelect, $r as Checkbox, ei as CheckboxFieldset, ti as CheckboxGroup, jn as ClipboardButton, Mn as CloseButton, Ur as CodeBlock, ni as Combobox, ii as ComboboxMultiselect, pr as CompactEmptyState, Gr as ComparisonList, Ki as Container, xi as Datepicker, Ko as DocsLayout, Ta as Drawer, Ln as Dropdown, Gi as DropdownMenu, Na as ExpansionPanel, Pa as ExpansionPanelGroup, Yr as FileDiff, Si as FileUpload, Kn as FilterButton, Zo as FlexContainer, Ea as FullScreenOverlay, os as GlobalWrapper, ss as Grid, cs as GridItem, qr as HorizontalEmptyState, Q as Icon, An as IconButton, Qr as IdentityBlock, fa as InlineMessage, Ci as InputGroup, Fr as LineChart, Mi as LinkNewWindow, ha as MIN_AUTO_CLOSE_DURATION, tr as MenuButton, Da as Modal, qi as Navbar, Aa as Pagination, ja as PaginationChapter, Ma as PaginationCompact, Fa as Panel, Ia as PanelList, La as PanelRow, Ra as PanelStack, Ha as PantheonLogo, Zr as PaymentIcon, Pi as Picture, Lr as PieChart, ir as PlatformIcon, Ga as Popover, qa as ProgressBar, Ya as ProgressRing, zr as ProportionBar, wi as RadioGroup, Qa as ResultCount, or as SSOButton, ma as SectionMessage, nr as SegmentedButton, hr as Select, mr as SelectOptionGroup, Ji as SideNav, Xi as SideNavGlobal, Yi as SideNavGlobalItem, qo as SidebarLayout, to as SiteFooter, Qi as SiteMenu, no as SiteOptionDisplay, ro as SiteSearch, er as SiteTypeIcon, $n as SiteTypeLabel, kr as Skeleton, Ni as Skiplink, go as SortableList, lo as SortableListHeader, vo as SortableRow, bn as Spinner, rr as SplitButton, xn as StatusBadge, bo as StatusChecker, xo as StatusIndicator, Jn as StatusTypeLabels, So as StepList, Co as Stepper, Jo as StepperLayout, Ti as Switch, ea as TabMenu, Eo as Table, No as TableOfContents, Po as Tabs, Ho as Tag, Di as TagsInput, Sn as Tally, Ai as TextInput, Oi as Textarea, ts as ThemeContext, is as ThemeContextProvider, ia as ThemeSwitcher, Yo as ThreeItemLayout, li as Timepicker, Sa as Toast, Ca as ToastType, ya as Toaster, _a as ToasterContext, nn as Tooltip, na as TreeNav, Xo as TwoItemLayout, aa as UserMenu, Uo as UtilityBar, sr as UtilityButton, Jr as VerticalEmptyState, To as VerticalStepper, Kr as VideoEmbed, oa as WorkspaceSelector, _i as getPresetDateRange, rs as getThemeInitScript, _t as iconList, Xn as isHeadingItemType, Zn as isLinkItemType, Qn as isNodeItemType, Yn as isSeparatorItemType, yo as statusCheckerStates, Fo as tagColors, Ro as tagSolidColors, Io as tagSolidHueColors, Lo as tagSolidStatusColors, Wo as useBreakpoint, kn as useClipboard, Pn as useDropdown, Xt as useIsMobile, ls as useKeyPress, tn as useKeyboardShortcut, Qo as useMediaQuery, as as useTheme, wa as useToast, us as useWindowWidth };
|
|
12755
12696
|
|
|
12756
12697
|
//# sourceMappingURL=index.js.map
|