@pantheon-systems/pds-toolkit-react 2.0.0-alpha.65 → 2.0.0-alpha.67
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 +6 -6
- 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-tab-menu.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 +6 -6
- package/dist/css/pds-core.css +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +450 -512
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3279,7 +3279,6 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
3279
3279
|
O,
|
|
3280
3280
|
t ?? ""
|
|
3281
3281
|
]),
|
|
3282
|
-
enableShift: !1,
|
|
3283
3282
|
offsetValue: 8,
|
|
3284
3283
|
placement: "bottom-start"
|
|
3285
3284
|
}, /* @__PURE__ */ e.createElement(Ln.Trigger, {
|
|
@@ -3365,7 +3364,6 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
3365
3364
|
}, tr = ({ className: t, disabled: n, iconName: r = "ellipsisVertical", iconOnly: i = !1, id: a, isSplitButton: o = !1, label: s, menuItems: c, onClick: l, size: u = "s", statusDot: d, tally: f, testId: p, undefinedLabel: m = "Unlabeled group", variant: h = "primary", ..._ }) => {
|
|
3366
3365
|
let { activeIndex: v, floatingStyles: y, getFloatingProps: b, getItemProps: x, getReferenceProps: C, isMounted: w, isOpen: T, listRef: E, refs: D, setIsOpen: O, transitionStyles: k } = Pn({
|
|
3367
3366
|
enableClick: !n,
|
|
3368
|
-
enableShift: !1,
|
|
3369
3367
|
enableTypeahead: !0,
|
|
3370
3368
|
offsetValue: 8,
|
|
3371
3369
|
placement: "bottom-start",
|
|
@@ -3705,60 +3703,18 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
3705
3703
|
testId: null,
|
|
3706
3704
|
variant: s
|
|
3707
3705
|
}));
|
|
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];
|
|
3706
|
+
}, ir = ({ className: t, platformType: n, size: r = "2xl", ...i }) => {
|
|
3707
|
+
let a = `pds-platform-icon--${n}`, o = `pds-platform-icon--${r}`;
|
|
3752
3708
|
return /* @__PURE__ */ e.createElement("div", {
|
|
3753
3709
|
className: Z([
|
|
3710
|
+
"pds-platform-icon",
|
|
3711
|
+
a,
|
|
3754
3712
|
o,
|
|
3755
|
-
s,
|
|
3756
|
-
c,
|
|
3757
3713
|
t
|
|
3758
3714
|
]),
|
|
3759
|
-
...
|
|
3760
|
-
},
|
|
3761
|
-
},
|
|
3715
|
+
...i
|
|
3716
|
+
}, ar[n]);
|
|
3717
|
+
}, ar = {
|
|
3762
3718
|
drupal: /* @__PURE__ */ e.createElement("svg", {
|
|
3763
3719
|
"aria-label": "Drupal",
|
|
3764
3720
|
fill: "none",
|
|
@@ -3776,23 +3732,6 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
3776
3732
|
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
3733
|
fill: "var(--pds-color-partner-foreground)"
|
|
3778
3734
|
})),
|
|
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
3735
|
wordpress: /* @__PURE__ */ e.createElement("svg", {
|
|
3797
3736
|
"aria-label": "WordPress",
|
|
3798
3737
|
fill: "none",
|
|
@@ -3985,8 +3924,8 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
3985
3924
|
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
3925
|
fill: "var(--pds-color-foreground-reverse)"
|
|
3987
3926
|
}))
|
|
3988
|
-
},
|
|
3989
|
-
let d = "pds-sso-button", f = `${d}--${c}`, p = c === "m" ? "l" : "2xl", m = c === "m" ? "l" : "xl", h = /* @__PURE__ */ e.createElement(
|
|
3927
|
+
}, or = ({ buttonType: t = "button", className: n = "", disabled: r = !1, isWorking: i = !1, label: a, onClick: o, platform: s, size: c = "m", tooltipText: l, ...u }) => {
|
|
3928
|
+
let d = "pds-sso-button", f = `${d}--${c}`, p = c === "m" ? "l" : "2xl", m = c === "m" ? "l" : "xl", h = /* @__PURE__ */ e.createElement(ir, {
|
|
3990
3929
|
className: `${d}__icon`,
|
|
3991
3930
|
platformType: s,
|
|
3992
3931
|
size: p
|
|
@@ -4009,7 +3948,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4009
3948
|
content: l,
|
|
4010
3949
|
customTrigger: g
|
|
4011
3950
|
}) : /* @__PURE__ */ e.createElement(e.Fragment, null, g);
|
|
4012
|
-
},
|
|
3951
|
+
}, 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
3952
|
let v = "pds-utility-button", y = u ? "pds-pulse" : null, b = (t) => o && !f ? /* @__PURE__ */ e.createElement(Q, {
|
|
4014
3953
|
key: t,
|
|
4015
3954
|
className: `${v}__icon`,
|
|
@@ -4062,7 +4001,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4062
4001
|
className: w,
|
|
4063
4002
|
..._
|
|
4064
4003
|
}, T(E));
|
|
4065
|
-
},
|
|
4004
|
+
}, cr = {
|
|
4066
4005
|
info: "circleInfo",
|
|
4067
4006
|
warning: "triangleExclamation",
|
|
4068
4007
|
success: "circleCheck",
|
|
@@ -4070,7 +4009,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4070
4009
|
discovery: "squareQuestion",
|
|
4071
4010
|
code: "squareTerminal",
|
|
4072
4011
|
earlyAccess: "leaf"
|
|
4073
|
-
},
|
|
4012
|
+
}, lr = ({ children: t, className: n, headingLevel: r = "span", title: i, type: a = "info", typeLabels: o = {
|
|
4074
4013
|
...Jn,
|
|
4075
4014
|
code: "Code",
|
|
4076
4015
|
earlyAccess: "Early Access"
|
|
@@ -4084,13 +4023,13 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4084
4023
|
]),
|
|
4085
4024
|
...s
|
|
4086
4025
|
}, /* @__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
|
|
4026
|
+
iconName: `${a}` in cr ? cr[a] : cr.info,
|
|
4088
4027
|
size: "xl"
|
|
4089
4028
|
})), /* @__PURE__ */ e.createElement("div", { className: `${c}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, u), i && /* @__PURE__ */ e.createElement(Tn, {
|
|
4090
4029
|
baseClass: c,
|
|
4091
4030
|
level: r
|
|
4092
4031
|
}, i), t && /* @__PURE__ */ e.createElement("div", { className: `${c}__main-content` }, t))));
|
|
4093
|
-
},
|
|
4032
|
+
}, ur = ({ background: t = "default", children: n, className: i, imageVariant: a = "bleed", padding: o = "standard", primaryAction: c, ...l }) => {
|
|
4094
4033
|
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
4034
|
"aria-label": c.label,
|
|
4096
4035
|
className: v
|
|
@@ -4110,7 +4049,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4110
4049
|
]),
|
|
4111
4050
|
...l
|
|
4112
4051
|
}, 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
|
-
},
|
|
4052
|
+
}, dr = ({ background: t = "default", children: n, className: r, imageVariant: i = "bleed", padding: a = "standard", ...o }) => {
|
|
4114
4053
|
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
4054
|
return /* @__PURE__ */ e.createElement("div", {
|
|
4116
4055
|
className: Z([
|
|
@@ -4122,7 +4061,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4122
4061
|
]),
|
|
4123
4062
|
...o
|
|
4124
4063
|
}, 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
|
-
},
|
|
4064
|
+
}, 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
4065
|
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
4066
|
s === "center" && (w = `${_}__legend ${_}__legend--center`), s === "hidden" && (w = `${_}__legend visually-hidden`);
|
|
4128
4067
|
let [T, E] = g(r), D = (e) => {
|
|
@@ -4162,7 +4101,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4162
4101
|
size: "l"
|
|
4163
4102
|
})), /* @__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
4103
|
})));
|
|
4165
|
-
},
|
|
4104
|
+
}, pr = ({ className: t, heading: n, headingLevel: r = "span", iconName: i, linkContent: a, message: o, ...s }) => {
|
|
4166
4105
|
let c = "pds-compact-empty-state";
|
|
4167
4106
|
return /* @__PURE__ */ e.createElement("div", {
|
|
4168
4107
|
className: Z([c, t ?? ""]),
|
|
@@ -4175,7 +4114,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4175
4114
|
baseClass: c,
|
|
4176
4115
|
level: r
|
|
4177
4116
|
}, n), o && /* @__PURE__ */ e.createElement("p", { className: `${c}__message` }, o)), a && /* @__PURE__ */ e.createElement("div", { className: `${c}__link` }, a));
|
|
4178
|
-
},
|
|
4117
|
+
}, mr = ({ children: t, label: n }) => {
|
|
4179
4118
|
let r = "pds-select";
|
|
4180
4119
|
return /* @__PURE__ */ e.createElement("li", {
|
|
4181
4120
|
className: `${r}__group`,
|
|
@@ -4184,7 +4123,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4184
4123
|
className: `${r}__group-options`,
|
|
4185
4124
|
role: "group"
|
|
4186
4125
|
}, t));
|
|
4187
|
-
},
|
|
4126
|
+
}, hr = ({ autoWidth: t = !1, className: n, defaultValue: r, disabled: i, icon: a, id: o, inputWidth: s, label: c, labelStrings: l = {
|
|
4188
4127
|
selectOptionText: "Select an option...",
|
|
4189
4128
|
triggerButton: "Toggle dropdown menu"
|
|
4190
4129
|
}, 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 +4148,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4209
4148
|
p && p(X);
|
|
4210
4149
|
}, le = () => {
|
|
4211
4150
|
ne.reference.current.focus();
|
|
4212
|
-
}, ue = (t, n) => t === "google" || t === "microsoft" ? /* @__PURE__ */ e.createElement(
|
|
4151
|
+
}, ue = (t, n) => t === "google" || t === "microsoft" ? /* @__PURE__ */ e.createElement(ir, {
|
|
4213
4152
|
className: n,
|
|
4214
4153
|
platformType: t,
|
|
4215
4154
|
size: "m"
|
|
@@ -4241,7 +4180,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4241
4180
|
})
|
|
4242
4181
|
}, /* @__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
4182
|
});
|
|
4244
|
-
return /* @__PURE__ */ e.createElement(
|
|
4183
|
+
return /* @__PURE__ */ e.createElement(mr, {
|
|
4245
4184
|
key: t.groupLabel,
|
|
4246
4185
|
label: t.groupLabel
|
|
4247
4186
|
}, r);
|
|
@@ -4329,17 +4268,17 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4329
4268
|
validationMessageHasDecorators: !1,
|
|
4330
4269
|
validationStatus: C
|
|
4331
4270
|
}));
|
|
4332
|
-
},
|
|
4271
|
+
}, gr = {
|
|
4333
4272
|
"sequential-blue": 2,
|
|
4334
4273
|
"sequential-gray": 2
|
|
4335
|
-
},
|
|
4336
|
-
let n =
|
|
4274
|
+
}, _r = (e, t) => {
|
|
4275
|
+
let n = gr[e];
|
|
4337
4276
|
return n ? t.slice(n) : t;
|
|
4338
|
-
},
|
|
4277
|
+
}, vr = (e, t) => {
|
|
4339
4278
|
if (t === void 0) return;
|
|
4340
|
-
let n =
|
|
4279
|
+
let n = gr[e];
|
|
4341
4280
|
return n ? Math.max(t, n + 1) - n : t;
|
|
4342
|
-
},
|
|
4281
|
+
}, yr = {
|
|
4343
4282
|
categorical: [
|
|
4344
4283
|
"--pds-color-datavis-categorical-1",
|
|
4345
4284
|
"--pds-color-datavis-categorical-2",
|
|
@@ -4392,7 +4331,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4392
4331
|
"--pds-color-datavis-status-discovery",
|
|
4393
4332
|
"--pds-color-datavis-status-neutral"
|
|
4394
4333
|
]
|
|
4395
|
-
},
|
|
4334
|
+
}, br = {
|
|
4396
4335
|
categorical: [
|
|
4397
4336
|
"#006dcc",
|
|
4398
4337
|
"#c95a3d",
|
|
@@ -4445,34 +4384,34 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4445
4384
|
"#7952a8",
|
|
4446
4385
|
"#717273"
|
|
4447
4386
|
]
|
|
4448
|
-
},
|
|
4449
|
-
let n =
|
|
4387
|
+
}, xr = (e, t, n, r) => n || (r === void 0 ? t[e % t.length] : t[(r - 1) % t.length]), Sr = (e, t) => {
|
|
4388
|
+
let n = br[t];
|
|
4450
4389
|
if (!e) return n;
|
|
4451
4390
|
let r = getComputedStyle(e);
|
|
4452
|
-
return
|
|
4453
|
-
},
|
|
4454
|
-
let [n, r] = g(
|
|
4391
|
+
return yr[t].map((e, t) => r.getPropertyValue(e).trim() || n[t]);
|
|
4392
|
+
}, Cr = (e, t = "categorical") => {
|
|
4393
|
+
let [n, r] = g(br[t]);
|
|
4455
4394
|
return u(() => {
|
|
4456
4395
|
if (!e.current) return;
|
|
4457
|
-
r(
|
|
4396
|
+
r(Sr(e.current, t));
|
|
4458
4397
|
let n = new MutationObserver(() => {
|
|
4459
|
-
e.current && r(
|
|
4398
|
+
e.current && r(Sr(e.current, t));
|
|
4460
4399
|
});
|
|
4461
4400
|
return n.observe(document.documentElement, {
|
|
4462
4401
|
attributeFilter: ["data-theme"],
|
|
4463
4402
|
attributes: !0
|
|
4464
4403
|
}), () => n.disconnect();
|
|
4465
4404
|
}, [e, t]), n;
|
|
4466
|
-
},
|
|
4405
|
+
}, wr = {
|
|
4467
4406
|
fill: "var(--pds-color-foreground-default-secondary)",
|
|
4468
4407
|
fontFamily: "var(--pds-typography-ff-default)",
|
|
4469
4408
|
fontSize: "var(--pds-typography-size-xs)"
|
|
4470
|
-
},
|
|
4409
|
+
}, Tr = {
|
|
4471
4410
|
fill: "var(--pds-color-foreground-default-secondary)",
|
|
4472
4411
|
fontFamily: "var(--pds-typography-ff-default)",
|
|
4473
4412
|
fontSize: "var(--pds-typography-size-xs)",
|
|
4474
4413
|
fontWeight: "var(--pds-typography-fw-semibold)"
|
|
4475
|
-
},
|
|
4414
|
+
}, Er = ({ data: t, description: n, series: r, valueFormatter: i }) => {
|
|
4476
4415
|
let a = (e) => typeof e == "number" && i ? i(e) : typeof e == "number" ? e.toLocaleString() : String(e);
|
|
4477
4416
|
return /* @__PURE__ */ e.createElement("div", { className: "visually-hidden" }, /* @__PURE__ */ e.createElement("table", {
|
|
4478
4417
|
"aria-label": n,
|
|
@@ -4481,7 +4420,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4481
4420
|
key: t.dataKey,
|
|
4482
4421
|
scope: "col"
|
|
4483
4422
|
}, 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
|
-
},
|
|
4423
|
+
}, Dr = ({ ariaHidden: t, data: n = [], series: r, seriesColors: i, tableHeader: a = "Total", valueFormatter: o = (e) => e.toLocaleString(), variant: s = "inline" }) => {
|
|
4485
4424
|
let c = "pds-chart-legend", l = (e, t, n) => t || (n === void 0 ? i[e % i.length] : i[(n - 1) % i.length]);
|
|
4486
4425
|
if (s === "table") {
|
|
4487
4426
|
let i = r.map((e) => n.reduce((t, n) => {
|
|
@@ -4506,12 +4445,12 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4506
4445
|
className: `${c}__swatch`,
|
|
4507
4446
|
style: { backgroundColor: l(n, t.color, t.paletteIndex) }
|
|
4508
4447
|
}), t.label)));
|
|
4509
|
-
},
|
|
4448
|
+
}, 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
4449
|
let u = "pds-skeleton", d = `${u}--${i}`, f = r ? `pds-pulse pds-pulse--${n}` : `${u}--${n}`, p = [
|
|
4511
4450
|
"text-block",
|
|
4512
4451
|
"code-block",
|
|
4513
4452
|
"code-block-prefix"
|
|
4514
|
-
], m = a?.height ?
|
|
4453
|
+
], m = a?.height ? Or(a.height) : "1rem", h = a?.width ? Or(a.width) : "100%", g = {
|
|
4515
4454
|
height: m,
|
|
4516
4455
|
width: h
|
|
4517
4456
|
};
|
|
@@ -4583,13 +4522,13 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4583
4522
|
}
|
|
4584
4523
|
}))));
|
|
4585
4524
|
return p.includes(i) ? w : _;
|
|
4586
|
-
},
|
|
4525
|
+
}, Ar = () => /* @__PURE__ */ e.createElement("div", { className: "pds-chart__skeleton-legend pds-chart__skeleton-legend--table" }, /* @__PURE__ */ e.createElement(kr, {
|
|
4587
4526
|
shape: "rounded",
|
|
4588
4527
|
size: {
|
|
4589
4528
|
height: 4,
|
|
4590
4529
|
width: "100%"
|
|
4591
4530
|
}
|
|
4592
|
-
})),
|
|
4531
|
+
})), 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
4532
|
className: "pds-chart__skeleton-area",
|
|
4594
4533
|
style: { height: n }
|
|
4595
4534
|
}, t ? /* @__PURE__ */ e.createElement("div", { style: {
|
|
@@ -4597,41 +4536,41 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4597
4536
|
height: "100%",
|
|
4598
4537
|
overflow: "hidden",
|
|
4599
4538
|
width: "100%"
|
|
4600
|
-
} }, /* @__PURE__ */ e.createElement(
|
|
4539
|
+
} }, /* @__PURE__ */ e.createElement(kr, {
|
|
4601
4540
|
shape: "rectangular",
|
|
4602
4541
|
size: {
|
|
4603
4542
|
height: "100%",
|
|
4604
4543
|
width: "100%"
|
|
4605
4544
|
}
|
|
4606
|
-
})) : /* @__PURE__ */ e.createElement(
|
|
4545
|
+
})) : /* @__PURE__ */ e.createElement(kr, {
|
|
4607
4546
|
shape: "rounded",
|
|
4608
4547
|
size: {
|
|
4609
4548
|
height: "100%",
|
|
4610
4549
|
width: "100%"
|
|
4611
4550
|
}
|
|
4612
|
-
})), a && (i === "table" ? /* @__PURE__ */ e.createElement(
|
|
4551
|
+
})), 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
4552
|
shape: "rounded",
|
|
4614
4553
|
size: {
|
|
4615
4554
|
height: .75,
|
|
4616
4555
|
width: 5
|
|
4617
4556
|
}
|
|
4618
|
-
}), /* @__PURE__ */ e.createElement(
|
|
4557
|
+
}), /* @__PURE__ */ e.createElement(kr, {
|
|
4619
4558
|
shape: "rounded",
|
|
4620
4559
|
size: {
|
|
4621
4560
|
height: .75,
|
|
4622
4561
|
width: 5
|
|
4623
4562
|
}
|
|
4624
|
-
}), /* @__PURE__ */ e.createElement(
|
|
4563
|
+
}), /* @__PURE__ */ e.createElement(kr, {
|
|
4625
4564
|
shape: "rounded",
|
|
4626
4565
|
size: {
|
|
4627
4566
|
height: .75,
|
|
4628
4567
|
width: 5
|
|
4629
4568
|
}
|
|
4630
|
-
})))),
|
|
4569
|
+
})))), Mr = (e) => {
|
|
4631
4570
|
let t = Math.abs(e);
|
|
4632
4571
|
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 =
|
|
4572
|
+
}, 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 }) => {
|
|
4573
|
+
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
4574
|
de && (pe.current = de);
|
|
4636
4575
|
let me = h({ getBoundingClientRect: () => ({
|
|
4637
4576
|
bottom: 0,
|
|
@@ -4689,7 +4628,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4689
4628
|
]),
|
|
4690
4629
|
style: { maxWidth: X },
|
|
4691
4630
|
...R
|
|
4692
|
-
}, /* @__PURE__ */ e.createElement(
|
|
4631
|
+
}, /* @__PURE__ */ e.createElement(jr, {
|
|
4693
4632
|
height: ne,
|
|
4694
4633
|
legendVariant: p,
|
|
4695
4634
|
showLegend: ce
|
|
@@ -4706,7 +4645,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4706
4645
|
maxWidth: X
|
|
4707
4646
|
},
|
|
4708
4647
|
...R
|
|
4709
|
-
}, /* @__PURE__ */ e.createElement(
|
|
4648
|
+
}, /* @__PURE__ */ e.createElement(pr, {
|
|
4710
4649
|
heading: V,
|
|
4711
4650
|
message: G
|
|
4712
4651
|
}));
|
|
@@ -4764,7 +4703,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4764
4703
|
className: Z([xe, i ?? ""]),
|
|
4765
4704
|
style: X ? { maxWidth: X } : void 0,
|
|
4766
4705
|
...R
|
|
4767
|
-
}, !l && D && D.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${xe}__header` }, /* @__PURE__ */ e.createElement(
|
|
4706
|
+
}, !l && D && D.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${xe}__header` }, /* @__PURE__ */ e.createElement(hr, {
|
|
4768
4707
|
autoWidth: !0,
|
|
4769
4708
|
id: `${xe}-time-period`,
|
|
4770
4709
|
label: "Time period",
|
|
@@ -4817,13 +4756,13 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4817
4756
|
hide: !se,
|
|
4818
4757
|
interval: N,
|
|
4819
4758
|
label: j && se ? {
|
|
4820
|
-
...
|
|
4759
|
+
...Tr,
|
|
4821
4760
|
offset: -15,
|
|
4822
4761
|
position: "insideBottom",
|
|
4823
4762
|
value: j
|
|
4824
4763
|
} : void 0,
|
|
4825
4764
|
padding: Te ? void 0 : "no-gap",
|
|
4826
|
-
tick: se ?
|
|
4765
|
+
tick: se ? wr : !1,
|
|
4827
4766
|
tickFormatter: Te ? F : void 0,
|
|
4828
4767
|
tickLine: !1,
|
|
4829
4768
|
tickMargin: 10,
|
|
@@ -4835,14 +4774,14 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4835
4774
|
hide: !se,
|
|
4836
4775
|
interval: L,
|
|
4837
4776
|
label: I && se ? {
|
|
4838
|
-
...
|
|
4777
|
+
...Tr,
|
|
4839
4778
|
angle: -90,
|
|
4840
4779
|
dx: -44,
|
|
4841
4780
|
position: "center",
|
|
4842
4781
|
value: I
|
|
4843
4782
|
} : void 0,
|
|
4844
4783
|
padding: Te ? "no-gap" : void 0,
|
|
4845
|
-
tick: se ?
|
|
4784
|
+
tick: se ? wr : !1,
|
|
4846
4785
|
tickFormatter: Te ? void 0 : F,
|
|
4847
4786
|
tickLine: !1,
|
|
4848
4787
|
tickMargin: 6,
|
|
@@ -4861,12 +4800,12 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4861
4800
|
}), v.map((t, n) => /* @__PURE__ */ e.createElement(H, {
|
|
4862
4801
|
key: t.dataKey,
|
|
4863
4802
|
dataKey: t.dataKey,
|
|
4864
|
-
fill:
|
|
4803
|
+
fill: xr(n, ee, t.color, vr(a, t.paletteIndex)),
|
|
4865
4804
|
name: t.label,
|
|
4866
4805
|
onMouseEnter: k ? void 0 : (e) => {
|
|
4867
4806
|
let r = e.payload;
|
|
4868
4807
|
le && r && fe({
|
|
4869
|
-
color:
|
|
4808
|
+
color: xr(n, ee, t.color, vr(a, t.paletteIndex)),
|
|
4870
4809
|
label: String(r.label ?? ""),
|
|
4871
4810
|
name: t.label,
|
|
4872
4811
|
value: Number(r[t.dataKey] ?? 0)
|
|
@@ -4889,7 +4828,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4889
4828
|
}, /* @__PURE__ */ e.createElement("p", { className: "recharts-tooltip-label" }, pe.current.label), /* @__PURE__ */ e.createElement("p", { className: "recharts-tooltip-item" }, /* @__PURE__ */ e.createElement("span", {
|
|
4890
4829
|
className: "recharts-tooltip-item__color",
|
|
4891
4830
|
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(
|
|
4831
|
+
}), /* @__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
4832
|
ariaHidden: p === "table" && ue,
|
|
4894
4833
|
data: o,
|
|
4895
4834
|
series: v,
|
|
@@ -4897,19 +4836,19 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4897
4836
|
tableHeader: K,
|
|
4898
4837
|
valueFormatter: F,
|
|
4899
4838
|
variant: p
|
|
4900
|
-
}), ue && /* @__PURE__ */ e.createElement(
|
|
4839
|
+
}), ue && /* @__PURE__ */ e.createElement(Er, {
|
|
4901
4840
|
data: o,
|
|
4902
4841
|
description: B,
|
|
4903
4842
|
series: v,
|
|
4904
4843
|
valueFormatter: F
|
|
4905
4844
|
}));
|
|
4906
|
-
},
|
|
4845
|
+
}, Pr = (e) => {
|
|
4907
4846
|
switch (e) {
|
|
4908
4847
|
case "dashed": return "8 4";
|
|
4909
4848
|
default: return;
|
|
4910
4849
|
}
|
|
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 =
|
|
4850
|
+
}, 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 }) => {
|
|
4851
|
+
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
4852
|
return s ? /* @__PURE__ */ e.createElement("div", {
|
|
4914
4853
|
ref: L,
|
|
4915
4854
|
"aria-busy": "true",
|
|
@@ -4921,7 +4860,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4921
4860
|
]),
|
|
4922
4861
|
style: { maxWidth: B },
|
|
4923
4862
|
...j
|
|
4924
|
-
}, /* @__PURE__ */ e.createElement(
|
|
4863
|
+
}, /* @__PURE__ */ e.createElement(jr, {
|
|
4925
4864
|
height: z,
|
|
4926
4865
|
legendVariant: u,
|
|
4927
4866
|
showLegend: U
|
|
@@ -4937,7 +4876,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4937
4876
|
maxWidth: B
|
|
4938
4877
|
},
|
|
4939
4878
|
...j
|
|
4940
|
-
}, /* @__PURE__ */ e.createElement(
|
|
4879
|
+
}, /* @__PURE__ */ e.createElement(pr, {
|
|
4941
4880
|
heading: N,
|
|
4942
4881
|
message: P
|
|
4943
4882
|
})) : /* @__PURE__ */ e.createElement("div", {
|
|
@@ -4945,7 +4884,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4945
4884
|
className: Z([te, i ?? ""]),
|
|
4946
4885
|
style: B ? { maxWidth: B } : void 0,
|
|
4947
4886
|
...j
|
|
4948
|
-
}, !c && C && C.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${te}__header` }, /* @__PURE__ */ e.createElement(
|
|
4887
|
+
}, !c && C && C.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${te}__header` }, /* @__PURE__ */ e.createElement(hr, {
|
|
4949
4888
|
autoWidth: !0,
|
|
4950
4889
|
id: `${te}-time-period`,
|
|
4951
4890
|
label: "Time period",
|
|
@@ -4991,12 +4930,12 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4991
4930
|
hide: !H,
|
|
4992
4931
|
interval: E,
|
|
4993
4932
|
label: T && H ? {
|
|
4994
|
-
...
|
|
4933
|
+
...Tr,
|
|
4995
4934
|
offset: -15,
|
|
4996
4935
|
position: "insideBottom",
|
|
4997
4936
|
value: T
|
|
4998
4937
|
} : void 0,
|
|
4999
|
-
tick: H ?
|
|
4938
|
+
tick: H ? wr : !1,
|
|
5000
4939
|
tickLine: !1,
|
|
5001
4940
|
tickMargin: 10
|
|
5002
4941
|
}), /* @__PURE__ */ e.createElement(ae, {
|
|
@@ -5005,13 +4944,13 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5005
4944
|
hide: !H,
|
|
5006
4945
|
interval: A,
|
|
5007
4946
|
label: k && H ? {
|
|
5008
|
-
...
|
|
4947
|
+
...Tr,
|
|
5009
4948
|
angle: -90,
|
|
5010
4949
|
dx: -44,
|
|
5011
4950
|
position: "center",
|
|
5012
4951
|
value: k
|
|
5013
4952
|
} : void 0,
|
|
5014
|
-
tick: H ?
|
|
4953
|
+
tick: H ? wr : !1,
|
|
5015
4954
|
tickFormatter: O,
|
|
5016
4955
|
tickLine: !1,
|
|
5017
4956
|
tickMargin: 6
|
|
@@ -5038,13 +4977,13 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5038
4977
|
activeDot: J ? { r: 6 } : !1,
|
|
5039
4978
|
dataKey: t.dataKey,
|
|
5040
4979
|
dot: J ? {
|
|
5041
|
-
fill:
|
|
4980
|
+
fill: xr(n, R, t.color, vr(a, t.paletteIndex)),
|
|
5042
4981
|
r: 4,
|
|
5043
4982
|
strokeWidth: 0
|
|
5044
4983
|
} : !1,
|
|
5045
4984
|
name: t.label,
|
|
5046
|
-
stroke:
|
|
5047
|
-
strokeDasharray:
|
|
4985
|
+
stroke: xr(n, R, t.color, vr(a, t.paletteIndex)),
|
|
4986
|
+
strokeDasharray: Pr(t.strokeStyle),
|
|
5048
4987
|
strokeWidth: 2,
|
|
5049
4988
|
type: d === "straight" ? "linear" : "monotone"
|
|
5050
4989
|
})), !c && p?.map((t, n) => {
|
|
@@ -5064,7 +5003,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5064
5003
|
}, t.label.toUpperCase());
|
|
5065
5004
|
},
|
|
5066
5005
|
stroke: r,
|
|
5067
|
-
strokeDasharray:
|
|
5006
|
+
strokeDasharray: Pr(t.strokeStyle ?? "dashed"),
|
|
5068
5007
|
y: t.value
|
|
5069
5008
|
});
|
|
5070
5009
|
}), !c && t?.map((t, n) => {
|
|
@@ -5084,10 +5023,10 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5084
5023
|
}, t.text.toUpperCase());
|
|
5085
5024
|
},
|
|
5086
5025
|
stroke: r,
|
|
5087
|
-
strokeDasharray:
|
|
5026
|
+
strokeDasharray: Pr(t.strokeStyle ?? "dashed"),
|
|
5088
5027
|
x: t.atLabel
|
|
5089
5028
|
});
|
|
5090
|
-
})))), U && /* @__PURE__ */ e.createElement(
|
|
5029
|
+
})))), U && /* @__PURE__ */ e.createElement(Dr, {
|
|
5091
5030
|
ariaHidden: u === "table" && ee,
|
|
5092
5031
|
data: o,
|
|
5093
5032
|
series: g,
|
|
@@ -5095,14 +5034,14 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5095
5034
|
tableHeader: F,
|
|
5096
5035
|
valueFormatter: O,
|
|
5097
5036
|
variant: u
|
|
5098
|
-
}), ee && /* @__PURE__ */ e.createElement(
|
|
5037
|
+
}), ee && /* @__PURE__ */ e.createElement(Er, {
|
|
5099
5038
|
data: o,
|
|
5100
5039
|
description: M,
|
|
5101
5040
|
series: g,
|
|
5102
5041
|
valueFormatter: O
|
|
5103
5042
|
}));
|
|
5104
|
-
},
|
|
5105
|
-
let { accessibleTableDescription: _ = "Pie chart data", emptyStateHeading: v = "No data available", emptyStateMessage: y, loadingLabel: b = "Loading chart data" } = c, x = h(null), S =
|
|
5043
|
+
}, 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 }) => {
|
|
5044
|
+
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
5045
|
if (o) {
|
|
5107
5046
|
let t = `${Math.round(w * .8)}px`;
|
|
5108
5047
|
return /* @__PURE__ */ e.createElement("div", {
|
|
@@ -5119,25 +5058,25 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5119
5058
|
}, /* @__PURE__ */ e.createElement("div", { className: `${C}__skeleton` }, /* @__PURE__ */ e.createElement("div", {
|
|
5120
5059
|
className: `${C}__skeleton-chart`,
|
|
5121
5060
|
style: { height: w }
|
|
5122
|
-
}, /* @__PURE__ */ e.createElement(
|
|
5061
|
+
}, /* @__PURE__ */ e.createElement(kr, {
|
|
5123
5062
|
shape: "circular",
|
|
5124
5063
|
style: {
|
|
5125
5064
|
height: t,
|
|
5126
5065
|
width: t
|
|
5127
5066
|
}
|
|
5128
|
-
})), E && /* @__PURE__ */ e.createElement("div", { className: "pds-chart__skeleton-legend pds-chart__skeleton-legend--inline" }, /* @__PURE__ */ e.createElement(
|
|
5067
|
+
})), E && /* @__PURE__ */ e.createElement("div", { className: "pds-chart__skeleton-legend pds-chart__skeleton-legend--inline" }, /* @__PURE__ */ e.createElement(kr, {
|
|
5129
5068
|
shape: "rounded",
|
|
5130
5069
|
size: {
|
|
5131
5070
|
height: .75,
|
|
5132
5071
|
width: 5
|
|
5133
5072
|
}
|
|
5134
|
-
}), /* @__PURE__ */ e.createElement(
|
|
5073
|
+
}), /* @__PURE__ */ e.createElement(kr, {
|
|
5135
5074
|
shape: "rounded",
|
|
5136
5075
|
size: {
|
|
5137
5076
|
height: .75,
|
|
5138
5077
|
width: 5
|
|
5139
5078
|
}
|
|
5140
|
-
}), /* @__PURE__ */ e.createElement(
|
|
5079
|
+
}), /* @__PURE__ */ e.createElement(kr, {
|
|
5141
5080
|
shape: "rounded",
|
|
5142
5081
|
size: {
|
|
5143
5082
|
height: .75,
|
|
@@ -5157,7 +5096,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5157
5096
|
maxWidth: T
|
|
5158
5097
|
},
|
|
5159
5098
|
...g
|
|
5160
|
-
}, /* @__PURE__ */ e.createElement(
|
|
5099
|
+
}, /* @__PURE__ */ e.createElement(pr, {
|
|
5161
5100
|
heading: v,
|
|
5162
5101
|
message: y
|
|
5163
5102
|
}));
|
|
@@ -5231,8 +5170,8 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5231
5170
|
let n = O > 0 ? Math.round(t.value / O * 100) : 0;
|
|
5232
5171
|
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
5172
|
})))));
|
|
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 =
|
|
5173
|
+
}, 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 }) => {
|
|
5174
|
+
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
5175
|
I && (R.current = I);
|
|
5237
5176
|
let B = h({ getBoundingClientRect: () => ({
|
|
5238
5177
|
bottom: 0,
|
|
@@ -5287,7 +5226,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5287
5226
|
]),
|
|
5288
5227
|
style: A ? { maxWidth: A } : void 0,
|
|
5289
5228
|
...v
|
|
5290
|
-
}, /* @__PURE__ */ e.createElement(
|
|
5229
|
+
}, /* @__PURE__ */ e.createElement(jr, {
|
|
5291
5230
|
borderRadius: "var(--pds-border-radius-bar)",
|
|
5292
5231
|
height: t,
|
|
5293
5232
|
legendAlignment: d,
|
|
@@ -5300,7 +5239,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5300
5239
|
r ?? ""
|
|
5301
5240
|
]),
|
|
5302
5241
|
...v
|
|
5303
|
-
}, /* @__PURE__ */ e.createElement(
|
|
5242
|
+
}, /* @__PURE__ */ e.createElement(pr, {
|
|
5304
5243
|
heading: b,
|
|
5305
5244
|
message: x
|
|
5306
5245
|
})) : /* @__PURE__ */ e.createElement("div", {
|
|
@@ -5359,7 +5298,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5359
5298
|
let n = P > 0 ? Math.round(t.value / P * 100) : 0;
|
|
5360
5299
|
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
5300
|
})))));
|
|
5362
|
-
},
|
|
5301
|
+
}, Br = /* @__PURE__ */ dt((/* @__PURE__ */ lt(((e, t) => {
|
|
5363
5302
|
var n = function(e) {
|
|
5364
5303
|
var t = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, n = 0, r = {}, i = {
|
|
5365
5304
|
manual: e.Prism && e.Prism.manual,
|
|
@@ -5652,8 +5591,8 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5652
5591
|
}(typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {});
|
|
5653
5592
|
t !== void 0 && t.exports && (t.exports = n), typeof global < "u" && (global.Prism = n);
|
|
5654
5593
|
})))(), 1);
|
|
5655
|
-
typeof globalThis < "u" && (globalThis.Prism =
|
|
5656
|
-
var
|
|
5594
|
+
typeof globalThis < "u" && (globalThis.Prism = Br.default);
|
|
5595
|
+
var Vr = Br.default;
|
|
5657
5596
|
//#endregion
|
|
5658
5597
|
//#region node_modules/prismjs/components/prism-diff.js
|
|
5659
5598
|
Prism.languages.markup = {
|
|
@@ -6323,7 +6262,7 @@ Prism.languages.markup = {
|
|
|
6323
6262
|
})(Prism);
|
|
6324
6263
|
//#endregion
|
|
6325
6264
|
//#region src/components/CodeBlock/themes/pds.ts
|
|
6326
|
-
var
|
|
6265
|
+
var Hr = {
|
|
6327
6266
|
plain: {
|
|
6328
6267
|
color: "var(--pds-color-code-block-foreground)",
|
|
6329
6268
|
backgroundColor: "var(--pds-color-code-block-background)"
|
|
@@ -6399,10 +6338,10 @@ var Ur = {
|
|
|
6399
6338
|
style: { color: "var(--pds-color-code-block-syntax-inserted)" }
|
|
6400
6339
|
}
|
|
6401
6340
|
]
|
|
6402
|
-
},
|
|
6341
|
+
}, 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
6342
|
let g = "pds-code-block", _ = m ? `${g}__line-wrapped` : "", v = {};
|
|
6404
6343
|
s && (v.height = `${s}rem`), d && (v.maxHeight = `${d}rem`);
|
|
6405
|
-
let y = /* @__PURE__ */ e.createElement("div", { className: `${g}__code` }, /* @__PURE__ */ e.createElement(
|
|
6344
|
+
let y = /* @__PURE__ */ e.createElement("div", { className: `${g}__code` }, /* @__PURE__ */ e.createElement(kr, {
|
|
6406
6345
|
className: `${g}__skeleton`,
|
|
6407
6346
|
colorType: "bold",
|
|
6408
6347
|
shape: a || o ? "code-block-prefix" : "code-block",
|
|
@@ -6451,8 +6390,8 @@ var Ur = {
|
|
|
6451
6390
|
}, c ? y : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(X, {
|
|
6452
6391
|
code: n,
|
|
6453
6392
|
language: l || "",
|
|
6454
|
-
prism:
|
|
6455
|
-
theme:
|
|
6393
|
+
prism: Vr,
|
|
6394
|
+
theme: Hr
|
|
6456
6395
|
}, /* @__PURE__ */ e.createElement(X.Code, {
|
|
6457
6396
|
className: `${g}__code`,
|
|
6458
6397
|
tabIndex: 0
|
|
@@ -6461,11 +6400,11 @@ var Ur = {
|
|
|
6461
6400
|
clipboardText: n,
|
|
6462
6401
|
variant: "reverse"
|
|
6463
6402
|
}))));
|
|
6464
|
-
},
|
|
6403
|
+
}, Wr = {
|
|
6465
6404
|
addon: "circlePlus",
|
|
6466
6405
|
included: "circleCheck",
|
|
6467
6406
|
notIncluded: "xmark"
|
|
6468
|
-
},
|
|
6407
|
+
}, Gr = ({ className: t, listItems: n, listLabel: r, moreLink: i, renderTypeLabels: a = !0, showBorder: o = !1, size: s = "s", typeLabels: c = {
|
|
6469
6408
|
addon: "Add-on",
|
|
6470
6409
|
included: "Included",
|
|
6471
6410
|
notIncluded: "Not included"
|
|
@@ -6484,10 +6423,10 @@ var Ur = {
|
|
|
6484
6423
|
className: `${u}__list-item ${u}__list-item--${t.type}`
|
|
6485
6424
|
}, /* @__PURE__ */ e.createElement("div", { className: `${u}__item-icon-wrapper` }, /* @__PURE__ */ e.createElement(Q, {
|
|
6486
6425
|
className: `${u}__item-icon`,
|
|
6487
|
-
iconName:
|
|
6426
|
+
iconName: Wr[t.type],
|
|
6488
6427
|
size: s
|
|
6489
6428
|
})), a && /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, c[t.type], ":", " "), t.text))), i && /* @__PURE__ */ e.createElement("div", { className: `${u}__more-link` }, i));
|
|
6490
|
-
},
|
|
6429
|
+
}, Kr = ({ className: t, platform: n, videoId: r, videoTitle: i, ...a }) => {
|
|
6491
6430
|
let o = /* @__PURE__ */ e.createElement("iframe", {
|
|
6492
6431
|
allow: "autoplay; fullscreen; picture-in-picture; clipboard-write; encrypted-media",
|
|
6493
6432
|
src: `https://fast.wistia.net/embed/iframe/${r}`,
|
|
@@ -6518,7 +6457,7 @@ var Ur = {
|
|
|
6518
6457
|
className: Z(["pds-video-embed", t ?? ""]),
|
|
6519
6458
|
...a
|
|
6520
6459
|
}, l);
|
|
6521
|
-
},
|
|
6460
|
+
}, 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
6461
|
let m = "pds-horizontal-empty-state", h = `${m}--${t}`, g = i ? `${m}--indented-content` : null, _ = f ? `${m}--video` : null, v = {
|
|
6523
6462
|
marginInlineStart: c,
|
|
6524
6463
|
width: l
|
|
@@ -6544,11 +6483,11 @@ var Ur = {
|
|
|
6544
6483
|
alt: "",
|
|
6545
6484
|
className: `${m}__image`,
|
|
6546
6485
|
src: s
|
|
6547
|
-
}) : s), f && /* @__PURE__ */ e.createElement("div", { className: `${m}__media ${m}__media--video` }, /* @__PURE__ */ e.createElement(
|
|
6486
|
+
}) : s), f && /* @__PURE__ */ e.createElement("div", { className: `${m}__media ${m}__media--video` }, /* @__PURE__ */ e.createElement(Kr, {
|
|
6548
6487
|
platform: f.platform,
|
|
6549
6488
|
videoId: f.videoId
|
|
6550
6489
|
})));
|
|
6551
|
-
},
|
|
6490
|
+
}, Jr = ({ className: t, ctaRegion: n, heading: r, headingLevel: i = "h2", image: a, imageHeight: o = "120", imageWidth: s = "auto", message: c, ...l }) => {
|
|
6552
6491
|
let u = "pds-vertical-empty-state";
|
|
6553
6492
|
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
6493
|
className: Z([u, t ?? ""]),
|
|
@@ -6563,7 +6502,7 @@ var Ur = {
|
|
|
6563
6502
|
baseClass: u,
|
|
6564
6503
|
level: i
|
|
6565
6504
|
}, r), c && c), n && /* @__PURE__ */ e.createElement("div", { className: `${u}__cta` }, n));
|
|
6566
|
-
},
|
|
6505
|
+
}, Yr = ({ additions: t = 4, className: n, componentWidth: r, deletions: i = 2, translationStrings: a = {
|
|
6567
6506
|
linesChanged: "lines changed",
|
|
6568
6507
|
additions: "additions",
|
|
6569
6508
|
deletions: "deletions"
|
|
@@ -6595,7 +6534,7 @@ var Ur = {
|
|
|
6595
6534
|
customTrigger: /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement("div", { className: `${s}__ahead-bar` })),
|
|
6596
6535
|
preferredPlacement: "top"
|
|
6597
6536
|
}))));
|
|
6598
|
-
},
|
|
6537
|
+
}, Xr = {
|
|
6599
6538
|
amex: /* @__PURE__ */ e.createElement("svg", {
|
|
6600
6539
|
fill: "none",
|
|
6601
6540
|
height: "42",
|
|
@@ -6813,7 +6752,7 @@ var Ur = {
|
|
|
6813
6752
|
height: "42",
|
|
6814
6753
|
width: "70"
|
|
6815
6754
|
}))))
|
|
6816
|
-
},
|
|
6755
|
+
}, Zr = ({ className: t, paymentType: n, size: r = "2xl", ...i }) => {
|
|
6817
6756
|
let a = "pds-payment-icon", o = `${a}--${r}`;
|
|
6818
6757
|
return /* @__PURE__ */ e.createElement("div", {
|
|
6819
6758
|
className: Z([
|
|
@@ -6822,8 +6761,8 @@ var Ur = {
|
|
|
6822
6761
|
t ?? ""
|
|
6823
6762
|
]),
|
|
6824
6763
|
...i
|
|
6825
|
-
},
|
|
6826
|
-
},
|
|
6764
|
+
}, Xr[n]);
|
|
6765
|
+
}, Qr = ({ avatarProps: t, className: n, isSidebarCollapsed: r, isSingleLine: i, primaryText: a, secondaryText: o, ...s }) => {
|
|
6827
6766
|
let l = "pds-identity-block", d = r ? `${l}--collapsed` : null, f = i ? `${l}--single-line` : null, p = t ? {
|
|
6828
6767
|
...t,
|
|
6829
6768
|
size: i ? "s" : "m"
|
|
@@ -6862,7 +6801,7 @@ var Ur = {
|
|
|
6862
6801
|
className: `${l}__secondary-text`,
|
|
6863
6802
|
title: x ? o : void 0
|
|
6864
6803
|
}, o)));
|
|
6865
|
-
},
|
|
6804
|
+
}, $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
6805
|
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
6806
|
F || L(e.target.checked), h && h(e);
|
|
6868
6807
|
}, B = `${D}__box`, V = o ? null : R ? `${B}--checked` : null, H = o ? `${B}--indeterminate` : null, U = c(() => {
|
|
@@ -6934,7 +6873,7 @@ var Ur = {
|
|
|
6934
6873
|
message: P,
|
|
6935
6874
|
validationStatus: S
|
|
6936
6875
|
}));
|
|
6937
|
-
}),
|
|
6876
|
+
}), 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
6877
|
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
6878
|
return /* @__PURE__ */ e.createElement("div", {
|
|
6940
6879
|
className: Z([
|
|
@@ -6967,7 +6906,7 @@ var Ur = {
|
|
|
6967
6906
|
message: S,
|
|
6968
6907
|
validationStatus: m
|
|
6969
6908
|
}));
|
|
6970
|
-
},
|
|
6909
|
+
}, 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
6910
|
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
6911
|
f.map((e) => {
|
|
6973
6912
|
e.id || (e.id = e.value);
|
|
@@ -7016,7 +6955,7 @@ var Ur = {
|
|
|
7016
6955
|
required: p,
|
|
7017
6956
|
showLabel: m,
|
|
7018
6957
|
tooltipText: _
|
|
7019
|
-
}), /* @__PURE__ */ e.createElement("div", { className: `${S}__options` }, f.map((t) => /* @__PURE__ */ e.createElement(
|
|
6958
|
+
}), /* @__PURE__ */ e.createElement("div", { className: `${S}__options` }, f.map((t) => /* @__PURE__ */ e.createElement($r, {
|
|
7020
6959
|
key: t.id,
|
|
7021
6960
|
checked: t.checked,
|
|
7022
6961
|
className: `${S}__checkbox`,
|
|
@@ -7034,7 +6973,7 @@ var Ur = {
|
|
|
7034
6973
|
message: D,
|
|
7035
6974
|
validationStatus: y
|
|
7036
6975
|
}));
|
|
7037
|
-
},
|
|
6976
|
+
}, 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
6977
|
clearButton: "Clear input text",
|
|
7039
6978
|
inputInstructions: "Type to search options",
|
|
7040
6979
|
searchShortcut: "Press / to focus the search field",
|
|
@@ -7227,13 +7166,13 @@ var Ur = {
|
|
|
7227
7166
|
validationMessageHasDecorators: !1,
|
|
7228
7167
|
validationStatus: B
|
|
7229
7168
|
}));
|
|
7230
|
-
}),
|
|
7169
|
+
}), ri = (e, t, n) => {
|
|
7231
7170
|
let r = n.toLowerCase();
|
|
7232
7171
|
return e.filter((e) => e.label.toLowerCase().includes(r)).map((e) => ({
|
|
7233
7172
|
...e,
|
|
7234
7173
|
isAlreadySelected: t.some((t) => t.id === e.id)
|
|
7235
7174
|
})).sort((e, t) => e.badge && !t.badge ? -1 : !e.badge && t.badge ? 1 : 0);
|
|
7236
|
-
},
|
|
7175
|
+
}, 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
7176
|
aiBadgeLabel: "Suggested",
|
|
7238
7177
|
aiPanelButton: "Show AI suggestions",
|
|
7239
7178
|
aiPanelClose: "Close suggestions panel",
|
|
@@ -7241,7 +7180,7 @@ var Ur = {
|
|
|
7241
7180
|
inputInstructions: "Type to search options",
|
|
7242
7181
|
triggerButton: "Toggle dropdown menu"
|
|
7243
7182
|
}, 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(() =>
|
|
7183
|
+
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
7184
|
p,
|
|
7246
7185
|
R,
|
|
7247
7186
|
F
|
|
@@ -7500,12 +7439,12 @@ var Ur = {
|
|
|
7500
7439
|
iconName: "xmark",
|
|
7501
7440
|
size: "m"
|
|
7502
7441
|
})))));
|
|
7503
|
-
},
|
|
7442
|
+
}, ai = (e) => String(e).padStart(2, "0"), oi = (e) => {
|
|
7504
7443
|
let t = e ? /^(\d{1,2}):(\d{2})$/.exec(e) : null;
|
|
7505
7444
|
if (!t) return null;
|
|
7506
7445
|
let n = parseInt(t[1], 10), r = parseInt(t[2], 10);
|
|
7507
7446
|
return n > 23 || r > 59 ? null : new ce(n, r);
|
|
7508
|
-
},
|
|
7447
|
+
}, si = (e) => e ? `${ai(e.hour)}:${ai(e.minute)}` : void 0, ci = ({ baseClass: t, segment: n, state: r }) => {
|
|
7509
7448
|
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
7449
|
return /* @__PURE__ */ e.createElement("div", {
|
|
7511
7450
|
...Ce(a, o),
|
|
@@ -7516,7 +7455,7 @@ var Ur = {
|
|
|
7516
7455
|
s ? `${t}__segment--focus-visible` : null
|
|
7517
7456
|
])
|
|
7518
7457
|
}, c);
|
|
7519
|
-
},
|
|
7458
|
+
}, 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
7459
|
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
7460
|
granularity: "minute",
|
|
7522
7461
|
hourCycle: a,
|
|
@@ -7524,14 +7463,14 @@ var Ur = {
|
|
|
7524
7463
|
locale: P,
|
|
7525
7464
|
onBlur: d,
|
|
7526
7465
|
onChange: (e) => {
|
|
7527
|
-
let t =
|
|
7466
|
+
let t = si(e);
|
|
7528
7467
|
t && (N || I(t), f && f(t));
|
|
7529
7468
|
},
|
|
7530
7469
|
onFocusChange: (e) => {
|
|
7531
7470
|
e && p && p();
|
|
7532
7471
|
},
|
|
7533
7472
|
shouldForceLeadingZeros: !0,
|
|
7534
|
-
value: m(() =>
|
|
7473
|
+
value: m(() => oi(L), [L])
|
|
7535
7474
|
}), z = h(null), { fieldProps: B } = Me({
|
|
7536
7475
|
"aria-describedby": M ? `${o}__message` : void 0,
|
|
7537
7476
|
"aria-labelledby": `${o}-label`,
|
|
@@ -7542,7 +7481,7 @@ var Ur = {
|
|
|
7542
7481
|
if (V.current = b, !b || !e || b === e) return;
|
|
7543
7482
|
let n = R.value;
|
|
7544
7483
|
if (!n) return;
|
|
7545
|
-
let r = ve(ye(_e(t ?? be(e), n), e), b), i =
|
|
7484
|
+
let r = ve(ye(_e(t ?? be(e), n), e), b), i = si(new ce(r.hour, r.minute));
|
|
7546
7485
|
i && (N || I(i), f && f(i));
|
|
7547
7486
|
}, [b]);
|
|
7548
7487
|
let H = m(() => {
|
|
@@ -7592,7 +7531,7 @@ var Ur = {
|
|
|
7592
7531
|
}), /* @__PURE__ */ e.createElement("div", { className: `${E}__value` }, R.segments.map((t, n) => t.type === "literal" ? /* @__PURE__ */ e.createElement("div", {
|
|
7593
7532
|
key: n,
|
|
7594
7533
|
className: Z([`${E}__separator`, t.text === ":" ? `${E}__separator--colon` : null])
|
|
7595
|
-
}, t.text) : /* @__PURE__ */ e.createElement(
|
|
7534
|
+
}, t.text) : /* @__PURE__ */ e.createElement(ci, {
|
|
7596
7535
|
key: n,
|
|
7597
7536
|
baseClass: E,
|
|
7598
7537
|
segment: t,
|
|
@@ -7604,28 +7543,28 @@ var Ur = {
|
|
|
7604
7543
|
validationMessageHasDecorators: !1,
|
|
7605
7544
|
validationStatus: C
|
|
7606
7545
|
}));
|
|
7607
|
-
},
|
|
7546
|
+
}, 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
7547
|
let t = e ? /^(\d{1,2}):(\d{2})$/.exec(e) : null;
|
|
7609
7548
|
if (!t) return;
|
|
7610
7549
|
let n = parseInt(t[1], 10), r = parseInt(t[2], 10);
|
|
7611
7550
|
if (!(n > 23 || r > 59)) return new ce(n, r);
|
|
7612
|
-
},
|
|
7551
|
+
}, mi = (e, t = pe()) => {
|
|
7613
7552
|
if (!e) return;
|
|
7614
7553
|
let n = fe(e, t);
|
|
7615
|
-
return `${
|
|
7616
|
-
},
|
|
7554
|
+
return `${fi(n.hour)}:${fi(n.minute)}`;
|
|
7555
|
+
}, hi = (e, t, n = pe()) => {
|
|
7617
7556
|
if (!e) return;
|
|
7618
|
-
let r =
|
|
7619
|
-
return r ? _e(e, r).toDate(n) :
|
|
7620
|
-
},
|
|
7557
|
+
let r = pi(t);
|
|
7558
|
+
return r ? _e(e, r).toDate(n) : di(e, n);
|
|
7559
|
+
}, gi = (e, t) => e ? xe(e, "PP", { locale: t }) : "", _i = (e, t) => {
|
|
7621
7560
|
if (e.custom) return e.custom();
|
|
7622
7561
|
let n = t?.timeZone ?? pe(), r = t?.locale ?? "en-US", i = be(n);
|
|
7623
7562
|
if (e.days !== void 0) return e.days < 0 ? {
|
|
7624
|
-
from:
|
|
7625
|
-
to:
|
|
7563
|
+
from: di(i.add({ days: e.days + 1 }), n),
|
|
7564
|
+
to: di(i, n)
|
|
7626
7565
|
} : {
|
|
7627
|
-
from:
|
|
7628
|
-
to:
|
|
7566
|
+
from: di(i, n),
|
|
7567
|
+
to: di(i.add({ days: e.days - 1 }), n)
|
|
7629
7568
|
};
|
|
7630
7569
|
if (e.hours !== void 0) {
|
|
7631
7570
|
let t = /* @__PURE__ */ new Date(), n = new Date(t.getTime() + e.hours * 60 * 60 * 1e3);
|
|
@@ -7649,37 +7588,37 @@ var Ur = {
|
|
|
7649
7588
|
}
|
|
7650
7589
|
switch (e.type) {
|
|
7651
7590
|
case "today": return {
|
|
7652
|
-
from:
|
|
7653
|
-
to:
|
|
7591
|
+
from: di(i, n),
|
|
7592
|
+
to: di(i, n)
|
|
7654
7593
|
};
|
|
7655
7594
|
case "current-week": return {
|
|
7656
|
-
from:
|
|
7657
|
-
to:
|
|
7595
|
+
from: di(ge(i, r), n),
|
|
7596
|
+
to: di(de(i, r), n)
|
|
7658
7597
|
};
|
|
7659
7598
|
case "current-month": return {
|
|
7660
|
-
from:
|
|
7661
|
-
to:
|
|
7599
|
+
from: di(he(i), n),
|
|
7600
|
+
to: di(ue(i), n)
|
|
7662
7601
|
};
|
|
7663
7602
|
case "last-week": {
|
|
7664
7603
|
let e = i.subtract({ weeks: 1 });
|
|
7665
7604
|
return {
|
|
7666
|
-
from:
|
|
7667
|
-
to:
|
|
7605
|
+
from: di(ge(e, r), n),
|
|
7606
|
+
to: di(de(e, r), n)
|
|
7668
7607
|
};
|
|
7669
7608
|
}
|
|
7670
7609
|
case "last-month": {
|
|
7671
7610
|
let e = i.subtract({ months: 1 });
|
|
7672
7611
|
return {
|
|
7673
|
-
from:
|
|
7674
|
-
to:
|
|
7612
|
+
from: di(he(e), n),
|
|
7613
|
+
to: di(ue(e), n)
|
|
7675
7614
|
};
|
|
7676
7615
|
}
|
|
7677
7616
|
default: return {
|
|
7678
|
-
from:
|
|
7679
|
-
to:
|
|
7617
|
+
from: di(i, n),
|
|
7618
|
+
to: di(i, n)
|
|
7680
7619
|
};
|
|
7681
7620
|
}
|
|
7682
|
-
},
|
|
7621
|
+
}, vi = {
|
|
7683
7622
|
clearButton: "Clear",
|
|
7684
7623
|
customPresetLabel: "Custom",
|
|
7685
7624
|
doneButton: "Done",
|
|
@@ -7700,7 +7639,7 @@ var Ur = {
|
|
|
7700
7639
|
to: " to ",
|
|
7701
7640
|
todayButton: "Today",
|
|
7702
7641
|
utcTimeZoneLabel: "UTC"
|
|
7703
|
-
},
|
|
7642
|
+
}, yi = ({ baseClass: t, currentMonth: n, date: r, state: i }) => {
|
|
7704
7643
|
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
7644
|
return /* @__PURE__ */ e.createElement("td", {
|
|
7706
7645
|
...s,
|
|
@@ -7722,7 +7661,7 @@ var Ur = {
|
|
|
7722
7661
|
]),
|
|
7723
7662
|
hidden: y
|
|
7724
7663
|
}, c));
|
|
7725
|
-
},
|
|
7664
|
+
}, bi = ({ baseClass: t, monthOffset: n = 0, state: r }) => {
|
|
7726
7665
|
let i = r.visibleRange.start.add({ months: n }), { gridProps: a, headerProps: o, weekDays: s, weeksInMonth: c } = De({ startDate: i }, r);
|
|
7727
7666
|
return /* @__PURE__ */ e.createElement("table", {
|
|
7728
7667
|
...a,
|
|
@@ -7730,20 +7669,20 @@ var Ur = {
|
|
|
7730
7669
|
}, /* @__PURE__ */ e.createElement("thead", o, /* @__PURE__ */ e.createElement("tr", null, s.map((n, r) => /* @__PURE__ */ e.createElement("th", {
|
|
7731
7670
|
key: r,
|
|
7732
7671
|
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(
|
|
7672
|
+
}, 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
7673
|
key: a,
|
|
7735
7674
|
baseClass: t,
|
|
7736
7675
|
currentMonth: i,
|
|
7737
7676
|
date: n,
|
|
7738
7677
|
state: r
|
|
7739
7678
|
}) : /* @__PURE__ */ e.createElement("td", { key: a }))))));
|
|
7740
|
-
},
|
|
7679
|
+
}, 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
7680
|
let j = f === "range", M = {
|
|
7742
|
-
...
|
|
7681
|
+
...vi,
|
|
7743
7682
|
...T
|
|
7744
7683
|
}, N = j && !!_ && _.length > 0;
|
|
7745
7684
|
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(() =>
|
|
7685
|
+
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
7686
|
id: `${i}-timezone-switcher`,
|
|
7748
7687
|
label: M.timeZoneSwitcherLabel || "",
|
|
7749
7688
|
onChange: (e) => z(e),
|
|
@@ -7763,7 +7702,7 @@ var Ur = {
|
|
|
7763
7702
|
role: "dialog",
|
|
7764
7703
|
shiftPadding: 16,
|
|
7765
7704
|
variant: "default"
|
|
7766
|
-
}), ye =
|
|
7705
|
+
}), ye = ui(d), xe = ui(c), Ce = (e, t, n = !1) => {
|
|
7767
7706
|
L(e), H(t), p?.(e), !j && n && setTimeout(() => {
|
|
7768
7707
|
ve(!1);
|
|
7769
7708
|
}, 300);
|
|
@@ -7773,9 +7712,9 @@ var Ur = {
|
|
|
7773
7712
|
maxValue: xe,
|
|
7774
7713
|
minValue: ye,
|
|
7775
7714
|
onChange: (e) => {
|
|
7776
|
-
j || Ce(
|
|
7715
|
+
j || Ce(hi(e, x ? ee : void 0, B), void 0, !x);
|
|
7777
7716
|
},
|
|
7778
|
-
value: j ? null :
|
|
7717
|
+
value: j ? null : ui(I) ?? null
|
|
7779
7718
|
}), De = h(null), Oe = Pe({
|
|
7780
7719
|
createCalendar: le,
|
|
7781
7720
|
locale: F,
|
|
@@ -7784,12 +7723,12 @@ var Ur = {
|
|
|
7784
7723
|
visibleDuration: { months: k },
|
|
7785
7724
|
onChange: (e) => {
|
|
7786
7725
|
j && e && Ce({
|
|
7787
|
-
from:
|
|
7788
|
-
to:
|
|
7726
|
+
from: hi(e.start, x ? ee : void 0, B),
|
|
7727
|
+
to: hi(e.end, x ? ne : void 0, B)
|
|
7789
7728
|
});
|
|
7790
7729
|
},
|
|
7791
7730
|
value: j ? (() => {
|
|
7792
|
-
let e = I, t =
|
|
7731
|
+
let e = I, t = ui(e?.from), n = ui(e?.to);
|
|
7793
7732
|
return t && n ? {
|
|
7794
7733
|
start: t,
|
|
7795
7734
|
end: n
|
|
@@ -7804,17 +7743,17 @@ var Ur = {
|
|
|
7804
7743
|
ve(!1);
|
|
7805
7744
|
}, Qe = () => {
|
|
7806
7745
|
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(
|
|
7746
|
+
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
7747
|
}, $e = (e) => {
|
|
7809
|
-
let t =
|
|
7748
|
+
let t = _i(e, {
|
|
7810
7749
|
locale: F,
|
|
7811
7750
|
timeZone: B
|
|
7812
7751
|
}), n = e.hours !== void 0 || e.minutes !== void 0;
|
|
7813
|
-
W(b), x && n ? (te(
|
|
7814
|
-
from:
|
|
7815
|
-
to:
|
|
7752
|
+
W(b), x && n ? (te(mi(t.from, B)), re(mi(t.to, B)), Ce(t, e.label)) : Ce(x ? {
|
|
7753
|
+
from: hi(ui(t.from), ee, B),
|
|
7754
|
+
to: hi(ui(t.to), ne, B)
|
|
7816
7755
|
} : t, e.label);
|
|
7817
|
-
let r =
|
|
7756
|
+
let r = ui(t.from);
|
|
7818
7757
|
r && ke.setFocusedDate(r), b || setTimeout(() => {
|
|
7819
7758
|
ve(!1);
|
|
7820
7759
|
}, 300);
|
|
@@ -7822,19 +7761,19 @@ var Ur = {
|
|
|
7822
7761
|
if (te(e), j) {
|
|
7823
7762
|
let t = I;
|
|
7824
7763
|
t?.from && t?.to && Ce({
|
|
7825
|
-
from:
|
|
7764
|
+
from: hi(ui(t.from), e, B),
|
|
7826
7765
|
to: t.to
|
|
7827
7766
|
});
|
|
7828
7767
|
} else {
|
|
7829
7768
|
let t = I;
|
|
7830
|
-
t && Ce(
|
|
7769
|
+
t && Ce(hi(ui(t), e, B));
|
|
7831
7770
|
}
|
|
7832
7771
|
}, tt = (e) => {
|
|
7833
7772
|
re(e);
|
|
7834
7773
|
let t = I;
|
|
7835
7774
|
t?.from && t?.to && Ce({
|
|
7836
7775
|
from: t.from,
|
|
7837
|
-
to:
|
|
7776
|
+
to: hi(ui(t.to), e, B)
|
|
7838
7777
|
});
|
|
7839
7778
|
};
|
|
7840
7779
|
u(() => {
|
|
@@ -7842,8 +7781,8 @@ var Ur = {
|
|
|
7842
7781
|
}, [O]), u(() => {
|
|
7843
7782
|
if (x) if (j) {
|
|
7844
7783
|
let e = I;
|
|
7845
|
-
te(
|
|
7846
|
-
} else te(
|
|
7784
|
+
te(mi(e?.from, B)), re(mi(e?.to, B));
|
|
7785
|
+
} else te(mi(I, B));
|
|
7847
7786
|
}, [
|
|
7848
7787
|
I,
|
|
7849
7788
|
B,
|
|
@@ -7851,7 +7790,7 @@ var Ur = {
|
|
|
7851
7790
|
x
|
|
7852
7791
|
]), u(() => {
|
|
7853
7792
|
if (ge) {
|
|
7854
|
-
let e =
|
|
7793
|
+
let e = ui(j ? I?.from : I);
|
|
7855
7794
|
ke.setFocusedDate(e ?? be(pe())), W(b);
|
|
7856
7795
|
}
|
|
7857
7796
|
}, [ge]), u(() => {
|
|
@@ -7865,18 +7804,18 @@ var Ur = {
|
|
|
7865
7804
|
}
|
|
7866
7805
|
if (j) {
|
|
7867
7806
|
let t = I;
|
|
7868
|
-
return t?.from ? t.to ? /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
7807
|
+
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
7808
|
} else {
|
|
7870
7809
|
let e = I;
|
|
7871
|
-
return e ?
|
|
7810
|
+
return e ? gi(e, s) : m || "";
|
|
7872
7811
|
}
|
|
7873
7812
|
}, rt = () => j ? !I?.from : !I, it = () => {
|
|
7874
7813
|
if (j) {
|
|
7875
7814
|
let e = I, t = Oe.anchorDate;
|
|
7876
|
-
return !e?.from && t ? `${M.selectedStartDate}${
|
|
7815
|
+
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
7816
|
} else {
|
|
7878
7817
|
let e = I;
|
|
7879
|
-
return e ? `${M.selectedDate}${
|
|
7818
|
+
return e ? `${M.selectedDate}${gi(e, s)}` : M.noDateSelected || "";
|
|
7880
7819
|
}
|
|
7881
7820
|
}, at = /* @__PURE__ */ e.createElement("div", {
|
|
7882
7821
|
...Be,
|
|
@@ -7915,22 +7854,22 @@ var Ur = {
|
|
|
7915
7854
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
7916
7855
|
iconName: "angleRight",
|
|
7917
7856
|
size: "m"
|
|
7918
|
-
}))), /* @__PURE__ */ e.createElement(
|
|
7857
|
+
}))), /* @__PURE__ */ e.createElement(bi, {
|
|
7919
7858
|
baseClass: Y,
|
|
7920
7859
|
monthOffset: t,
|
|
7921
7860
|
state: ke
|
|
7922
7861
|
})))), x && /* @__PURE__ */ e.createElement("div", { className: `${Y}__time-section` }, j ? (() => {
|
|
7923
7862
|
let t = I;
|
|
7924
|
-
return t?.from && t?.to ? /* @__PURE__ */ e.createElement("div", { className: `${Y}__time-fields` }, /* @__PURE__ */ e.createElement(
|
|
7925
|
-
anchorDate:
|
|
7863
|
+
return t?.from && t?.to ? /* @__PURE__ */ e.createElement("div", { className: `${Y}__time-fields` }, /* @__PURE__ */ e.createElement(li, {
|
|
7864
|
+
anchorDate: ui(t.from),
|
|
7926
7865
|
id: `${i}-start-time`,
|
|
7927
7866
|
label: M.startTimeLabel || "",
|
|
7928
7867
|
onChange: et,
|
|
7929
7868
|
size: "s",
|
|
7930
7869
|
timeZone: B,
|
|
7931
7870
|
value: ee
|
|
7932
|
-
}), /* @__PURE__ */ e.createElement(
|
|
7933
|
-
anchorDate:
|
|
7871
|
+
}), /* @__PURE__ */ e.createElement(li, {
|
|
7872
|
+
anchorDate: ui(t.to),
|
|
7934
7873
|
id: `${i}-end-time`,
|
|
7935
7874
|
label: M.endTimeLabel || "",
|
|
7936
7875
|
onChange: tt,
|
|
@@ -7938,8 +7877,8 @@ var Ur = {
|
|
|
7938
7877
|
timeZone: B,
|
|
7939
7878
|
value: ne
|
|
7940
7879
|
})) : null;
|
|
7941
|
-
})() : I && /* @__PURE__ */ e.createElement("div", { className: `${Y}__time-fields` }, /* @__PURE__ */ e.createElement(
|
|
7942
|
-
anchorDate:
|
|
7880
|
+
})() : I && /* @__PURE__ */ e.createElement("div", { className: `${Y}__time-fields` }, /* @__PURE__ */ e.createElement(li, {
|
|
7881
|
+
anchorDate: ui(I),
|
|
7943
7882
|
id: `${i}-time`,
|
|
7944
7883
|
label: M.timeLabel || "",
|
|
7945
7884
|
onChange: et,
|
|
@@ -8041,7 +7980,7 @@ var Ur = {
|
|
|
8041
7980
|
className: `${Y}__calendar-wrapper-inner`,
|
|
8042
7981
|
style: { width: K }
|
|
8043
7982
|
}, at)) : at)));
|
|
8044
|
-
},
|
|
7983
|
+
}, Si = o(({ accept: t, className: n, defaultValue: r, disabled: i = !1, fieldLabel: a, id: o, inputProps: s, inputWidth: c, labelStrings: l = {
|
|
8045
7984
|
chooseFile: "Choose file",
|
|
8046
7985
|
clearButton: "Clear selected file"
|
|
8047
7986
|
}, 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 +8064,7 @@ var Ur = {
|
|
|
8125
8064
|
validationMessageHasDecorators: !1,
|
|
8126
8065
|
validationStatus: S
|
|
8127
8066
|
}));
|
|
8128
|
-
}),
|
|
8067
|
+
}), Ci = ({ children: t, className: n, ...r }) => {
|
|
8129
8068
|
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
8069
|
return /* @__PURE__ */ e.createElement("div", {
|
|
8131
8070
|
className: Z([
|
|
@@ -8142,7 +8081,7 @@ var Ur = {
|
|
|
8142
8081
|
validationMessageHasDecorators: !1,
|
|
8143
8082
|
validationStatus: l
|
|
8144
8083
|
}));
|
|
8145
|
-
},
|
|
8084
|
+
}, 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
8085
|
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
8086
|
D || k(e.target.value), d && d(e), f && f(e.target.value);
|
|
8148
8087
|
}, M = (e) => {
|
|
@@ -8192,7 +8131,7 @@ var Ur = {
|
|
|
8192
8131
|
message: A,
|
|
8193
8132
|
validationStatus: y
|
|
8194
8133
|
}));
|
|
8195
|
-
},
|
|
8134
|
+
}, 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
8135
|
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
8136
|
D || k(e.target.checked), d && d(e);
|
|
8198
8137
|
}, M = h ? /* @__PURE__ */ e.createElement("span", {
|
|
@@ -8247,7 +8186,7 @@ var Ur = {
|
|
|
8247
8186
|
required: p,
|
|
8248
8187
|
showLabel: m
|
|
8249
8188
|
}), /* @__PURE__ */ e.createElement("div", { className: `${S}__content` }, F, P));
|
|
8250
|
-
}),
|
|
8189
|
+
}), 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
8190
|
let y = h(null), b = "pds-tags-input__tag";
|
|
8252
8191
|
u(() => {
|
|
8253
8192
|
r === i && y.current && y.current.focus();
|
|
@@ -8314,7 +8253,7 @@ var Ur = {
|
|
|
8314
8253
|
iconName: "xmark",
|
|
8315
8254
|
size: "s"
|
|
8316
8255
|
})));
|
|
8317
|
-
},
|
|
8256
|
+
}, 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
8257
|
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
8258
|
tagAriaLabel: "tag {index} of {total}. Press Shift plus arrow keys to reorder, Delete to remove.",
|
|
8320
8259
|
tagAriaLabelSimple: "tag {index} of {total}. Press Delete to remove.",
|
|
@@ -8400,7 +8339,7 @@ var Ur = {
|
|
|
8400
8339
|
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
8340
|
key: t.id,
|
|
8402
8341
|
role: "listitem"
|
|
8403
|
-
}, /* @__PURE__ */ e.createElement(
|
|
8342
|
+
}, /* @__PURE__ */ e.createElement(Ei, {
|
|
8404
8343
|
disabled: r,
|
|
8405
8344
|
dropTargetDirection: i,
|
|
8406
8345
|
focusedIndex: B,
|
|
@@ -8444,7 +8383,7 @@ var Ur = {
|
|
|
8444
8383
|
validationMessageHasDecorators: !1,
|
|
8445
8384
|
validationStatus: x
|
|
8446
8385
|
}));
|
|
8447
|
-
}),
|
|
8386
|
+
}), 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
8387
|
clearButton: "Clear input text",
|
|
8449
8388
|
counterOverLimit: "Character limit exceeded by",
|
|
8450
8389
|
searchShortcut: "Press / to focus the search field",
|
|
@@ -8508,7 +8447,7 @@ var Ur = {
|
|
|
8508
8447
|
message: L,
|
|
8509
8448
|
validationStatus: w
|
|
8510
8449
|
}));
|
|
8511
|
-
}),
|
|
8450
|
+
}), 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
8451
|
clearButton: "Clear input text",
|
|
8513
8452
|
counterOverLimit: "Character limit exceeded by",
|
|
8514
8453
|
searchShortcut: "Press / to focus the search field",
|
|
@@ -8574,7 +8513,7 @@ var Ur = {
|
|
|
8574
8513
|
}), w && O === "password" && /* @__PURE__ */ e.createElement("div", {
|
|
8575
8514
|
"aria-live": "polite",
|
|
8576
8515
|
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(
|
|
8516
|
+
}, `${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
8517
|
ref: N,
|
|
8579
8518
|
"aria-describedby": W ? `${l}__message` : null,
|
|
8580
8519
|
"aria-invalid": A === "error" ? !0 : null,
|
|
@@ -8621,7 +8560,7 @@ var Ur = {
|
|
|
8621
8560
|
validationMessageHasDecorators: !1,
|
|
8622
8561
|
validationStatus: A
|
|
8623
8562
|
}));
|
|
8624
|
-
}),
|
|
8563
|
+
}), ji = ({ className: t, linkContent: n, size: r = "s", ...i }) => {
|
|
8625
8564
|
let a = "pds-cta-link", o = r === "s" ? null : `${a}--${r}`;
|
|
8626
8565
|
return /* @__PURE__ */ e.createElement("div", {
|
|
8627
8566
|
className: Z([
|
|
@@ -8635,7 +8574,7 @@ var Ur = {
|
|
|
8635
8574
|
iconName: "arrowRight",
|
|
8636
8575
|
size: r === "xs" ? "s" : r === "s" ? "m" : "l"
|
|
8637
8576
|
}));
|
|
8638
|
-
},
|
|
8577
|
+
}, Mi = ({ children: t, className: n, fontSize: r, isLoading: i, newWindowText: a = "opens in a new window", url: o, ...s }) => {
|
|
8639
8578
|
let c = "pds-link-new-window", l = r ? `${c}--${r}` : null;
|
|
8640
8579
|
return i ? /* @__PURE__ */ e.createElement("span", {
|
|
8641
8580
|
"aria-hidden": "true",
|
|
@@ -8662,11 +8601,11 @@ var Ur = {
|
|
|
8662
8601
|
className: `${c}__icon`,
|
|
8663
8602
|
iconName: "externalLink"
|
|
8664
8603
|
}));
|
|
8665
|
-
},
|
|
8604
|
+
}, Ni = ({ className: t, destination: n = "main", text: r = "Skip to main content", ...i }) => /* @__PURE__ */ e.createElement("a", {
|
|
8666
8605
|
className: Z(["pds-skiplink", t]),
|
|
8667
8606
|
href: `#${n}`,
|
|
8668
8607
|
...i
|
|
8669
|
-
}, r),
|
|
8608
|
+
}, r), Pi = ({ alt: t = "", className: n, height: r, srcFallback: i, srcWebp: a, width: o, ...s }) => {
|
|
8670
8609
|
let c = "pds-picture";
|
|
8671
8610
|
return /* @__PURE__ */ e.createElement("picture", { className: Z([c, n ?? ""]) }, /* @__PURE__ */ e.createElement("source", {
|
|
8672
8611
|
srcSet: a,
|
|
@@ -8679,7 +8618,7 @@ var Ur = {
|
|
|
8679
8618
|
width: o,
|
|
8680
8619
|
...s
|
|
8681
8620
|
}));
|
|
8682
|
-
},
|
|
8621
|
+
}, Fi = ({ ariaLabel: t = "Breadcrumb", className: n, crumbs: i, ...a }) => {
|
|
8683
8622
|
let o = "pds-breadcrumb", c = i.length, l = i.map((t, n) => {
|
|
8684
8623
|
if (n < c - 1) return /* @__PURE__ */ e.createElement("li", {
|
|
8685
8624
|
key: n,
|
|
@@ -8698,36 +8637,36 @@ var Ur = {
|
|
|
8698
8637
|
className: Z([o, n]),
|
|
8699
8638
|
...a
|
|
8700
8639
|
}, /* @__PURE__ */ e.createElement("ol", { className: `${o}__crumbs` }, l));
|
|
8701
|
-
},
|
|
8640
|
+
}, Ii = (e) => {
|
|
8702
8641
|
if (!e) return null;
|
|
8703
8642
|
for (let t = 0; t < e.length; t++) {
|
|
8704
|
-
if (
|
|
8643
|
+
if (Ri(e[t])) return typeof e[t].linkContent == "string" ? null : e[t].linkContent;
|
|
8705
8644
|
if (e[t].links) {
|
|
8706
|
-
let n =
|
|
8645
|
+
let n = Ii(e[t].links);
|
|
8707
8646
|
if (n) return n;
|
|
8708
8647
|
}
|
|
8709
8648
|
}
|
|
8710
8649
|
return null;
|
|
8711
|
-
},
|
|
8712
|
-
if (
|
|
8650
|
+
}, 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) => {
|
|
8651
|
+
if (Ri(e)) return !0;
|
|
8713
8652
|
if (e.links) {
|
|
8714
|
-
for (let t = 0; t < e.links.length; t++) if (
|
|
8653
|
+
for (let t = 0; t < e.links.length; t++) if (zi(e.links[t])) return !0;
|
|
8715
8654
|
}
|
|
8716
8655
|
return !1;
|
|
8717
|
-
},
|
|
8656
|
+
}, Bi = (e) => e.map((e) => `${Ri(e)}${e.links ? `[${Bi(e.links)}]` : ""}`).join("|"), Vi = (e) => {
|
|
8718
8657
|
if (s(e)) {
|
|
8719
8658
|
let t = e.type;
|
|
8720
8659
|
return t === "a" || typeof t == "string" && t.toLowerCase() === "a" || (typeof t == "function" || typeof t == "object") && t?.displayName === "Link";
|
|
8721
8660
|
}
|
|
8722
8661
|
return !1;
|
|
8723
|
-
},
|
|
8662
|
+
}, Hi = (e, t) => {
|
|
8724
8663
|
let n = null;
|
|
8725
8664
|
if (typeof e == "string" && t) {
|
|
8726
8665
|
let i = t ? t[0].linkContent : null;
|
|
8727
8666
|
s(i) && (n = r(i, { ...typeof e == "string" ? { children: e } : {} }));
|
|
8728
8667
|
} else n = e;
|
|
8729
8668
|
return n;
|
|
8730
|
-
},
|
|
8669
|
+
}, Ui = (t, n, i, a) => {
|
|
8731
8670
|
let o = null;
|
|
8732
8671
|
if (typeof n == "string") {
|
|
8733
8672
|
let c = a ? [/* @__PURE__ */ e.createElement("span", {
|
|
@@ -8752,7 +8691,7 @@ var Ur = {
|
|
|
8752
8691
|
iconName: a,
|
|
8753
8692
|
size: "m"
|
|
8754
8693
|
})), /* @__PURE__ */ e.createElement("span", { className: `${t}__link-label` }, n.props.children))] })) : n), o;
|
|
8755
|
-
},
|
|
8694
|
+
}, Wi = ({ ariaLabel: t, border: n = !1, className: r, menuItems: i, ...a }) => {
|
|
8756
8695
|
let o = h(null), s = "pds-button-nav", c = n ? `${s}--bordered` : null;
|
|
8757
8696
|
u(() => {
|
|
8758
8697
|
let e = (e) => {
|
|
@@ -8771,11 +8710,11 @@ var Ur = {
|
|
|
8771
8710
|
return /* @__PURE__ */ e.createElement("li", { className: Z([r, t ? `${r}--active` : null]) }, n);
|
|
8772
8711
|
}, d = i.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${s}__menu` }, i.map((t, n) => /* @__PURE__ */ e.createElement(l, {
|
|
8773
8712
|
key: n,
|
|
8774
|
-
isActive:
|
|
8713
|
+
isActive: zi(t),
|
|
8775
8714
|
linkContent: t.linkContent
|
|
8776
8715
|
}))) : null, f = [];
|
|
8777
8716
|
i.map((e) => {
|
|
8778
|
-
e.linkContent && (
|
|
8717
|
+
e.linkContent && (zi(e) ? f.unshift({
|
|
8779
8718
|
linkContent: e.linkContent,
|
|
8780
8719
|
isLink: !0
|
|
8781
8720
|
}) : f.push({
|
|
@@ -8799,9 +8738,8 @@ var Ur = {
|
|
|
8799
8738
|
]),
|
|
8800
8739
|
...a
|
|
8801
8740
|
}, d, p);
|
|
8802
|
-
},
|
|
8803
|
-
let s = "pds-dropdown-menu", c =
|
|
8804
|
-
enableShift: !1,
|
|
8741
|
+
}, Gi = ({ className: t, headingText: n, menuItems: i, selectTextFallback: a = "Navigate to...", ...o }) => {
|
|
8742
|
+
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({
|
|
8805
8743
|
enableTypeahead: !0,
|
|
8806
8744
|
role: "menu"
|
|
8807
8745
|
}), x = (e) => {
|
|
@@ -8809,7 +8747,7 @@ var Ur = {
|
|
|
8809
8747
|
}, C = (e) => {
|
|
8810
8748
|
e.key === "Enter" && _.current[d]?.querySelector("a")?.click();
|
|
8811
8749
|
}, w = ({ item: e, level: t }) => {
|
|
8812
|
-
let n =
|
|
8750
|
+
let n = Hi(e.linkContent, e.links);
|
|
8813
8751
|
return {
|
|
8814
8752
|
...e,
|
|
8815
8753
|
level: t,
|
|
@@ -8900,7 +8838,7 @@ var Ur = {
|
|
|
8900
8838
|
tabIndex: d === n ? 0 : -1,
|
|
8901
8839
|
...m({ onKeyDown: C })
|
|
8902
8840
|
}, t.linkContent, t.isActive === !0 && u)))));
|
|
8903
|
-
},
|
|
8841
|
+
}, Ki = ({ children: t, className: n, width: r = "standard", ...i }) => {
|
|
8904
8842
|
let a = "pds-container", o = r === "standard" ? null : `${a}--${r}`;
|
|
8905
8843
|
return /* @__PURE__ */ e.createElement("div", {
|
|
8906
8844
|
className: Z([
|
|
@@ -8910,7 +8848,7 @@ var Ur = {
|
|
|
8910
8848
|
]),
|
|
8911
8849
|
...i
|
|
8912
8850
|
}, t);
|
|
8913
|
-
},
|
|
8851
|
+
}, qi = ({ children: t, className: n, colorType: r = "default", containerWidth: i = "x-wide", hideBorder: a, inlinePadding: o, translationStrings: s = {
|
|
8914
8852
|
closeMobileNav: "Close navigation area",
|
|
8915
8853
|
openMobileNav: "Open navigation area"
|
|
8916
8854
|
}, ...c }) => {
|
|
@@ -8966,7 +8904,7 @@ var Ur = {
|
|
|
8966
8904
|
n ?? ""
|
|
8967
8905
|
]),
|
|
8968
8906
|
...c
|
|
8969
|
-
}, f ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${h}__bar-mobile` }, /* @__PURE__ */ e.createElement(
|
|
8907
|
+
}, 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
8908
|
active: l,
|
|
8971
8909
|
focusTrapOptions: {
|
|
8972
8910
|
clickOutsideDeactivates: !0,
|
|
@@ -8976,11 +8914,11 @@ var Ur = {
|
|
|
8976
8914
|
}, /* @__PURE__ */ e.createElement("div", {
|
|
8977
8915
|
className: Z([`${h}__mobile`, l ? `${h}__mobile--open` : null]),
|
|
8978
8916
|
inert: l ? void 0 : ""
|
|
8979
|
-
}, /* @__PURE__ */ e.createElement(
|
|
8917
|
+
}, /* @__PURE__ */ e.createElement(Ki, null, /* @__PURE__ */ e.createElement("button", {
|
|
8980
8918
|
className: "visually-hidden",
|
|
8981
8919
|
onClick: b,
|
|
8982
8920
|
type: "button"
|
|
8983
|
-
}, s.closeMobileNav), w, T, E)))) : /* @__PURE__ */ e.createElement(
|
|
8921
|
+
}, s.closeMobileNav), w, T, E)))) : /* @__PURE__ */ e.createElement(Ki, {
|
|
8984
8922
|
className: `${h}__inner`,
|
|
8985
8923
|
style: o ? { paddingInline: o } : void 0,
|
|
8986
8924
|
width: i
|
|
@@ -8988,14 +8926,14 @@ var Ur = {
|
|
|
8988
8926
|
"aria-hidden": "true",
|
|
8989
8927
|
className: `${h}__separator`
|
|
8990
8928
|
}), 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
|
-
},
|
|
8929
|
+
}, Ji = ({ ariaLabel: t, className: n, hasMobileDropdown: i = !1, headingText: a, labels: o = {
|
|
8992
8930
|
submenu: "submenu",
|
|
8993
8931
|
toggle: "Toggle"
|
|
8994
8932
|
}, menuItems: c, mobileMenuSelectTextFallback: l = "Navigate to...", ...d }) => {
|
|
8995
8933
|
let f = "pds-side-nav", p = i ? `${f}--has-mobile-dropdown` : null, m = `${f}__item`, h = `${f}__menu`, [_, v] = g({});
|
|
8996
8934
|
u(() => {
|
|
8997
8935
|
v((e) => Object.keys(e).length ? {} : e);
|
|
8998
|
-
}, [
|
|
8936
|
+
}, [Bi(c)]);
|
|
8999
8937
|
let y = (e, t) => t in _ ? _[t] : e, b = (e, t) => {
|
|
9000
8938
|
v((n) => {
|
|
9001
8939
|
let r = t in n ? n[t] : e;
|
|
@@ -9005,7 +8943,7 @@ var Ur = {
|
|
|
9005
8943
|
};
|
|
9006
8944
|
});
|
|
9007
8945
|
}, x = (t, n) => {
|
|
9008
|
-
let { linkContent: i, links: a } = t, c =
|
|
8946
|
+
let { linkContent: i, links: a } = t, c = zi(t), l = Vi(i), u = y(c, n);
|
|
9009
8947
|
return /* @__PURE__ */ e.createElement("li", {
|
|
9010
8948
|
key: n,
|
|
9011
8949
|
className: Z([
|
|
@@ -9018,7 +8956,7 @@ var Ur = {
|
|
|
9018
8956
|
`${f}__row`,
|
|
9019
8957
|
`${f}__row--expandable`,
|
|
9020
8958
|
`${m}-wrapper`
|
|
9021
|
-
]) },
|
|
8959
|
+
]) }, Hi(i, a), /* @__PURE__ */ e.createElement("button", {
|
|
9022
8960
|
"aria-expanded": u,
|
|
9023
8961
|
className: Z([`${f}__toggle`, u ? `${f}__toggle--expanded` : null]),
|
|
9024
8962
|
onClick: () => b(c, n),
|
|
@@ -9026,7 +8964,7 @@ var Ur = {
|
|
|
9026
8964
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
9027
8965
|
iconName: "angleDown",
|
|
9028
8966
|
size: "m"
|
|
9029
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${o.toggle} ${
|
|
8967
|
+
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${o.toggle} ${Li(i)} ${o.submenu}`))), /* @__PURE__ */ e.createElement("ul", { className: Z([
|
|
9030
8968
|
h,
|
|
9031
8969
|
`${h}--second-level`,
|
|
9032
8970
|
u ? `${h}--expanded` : null
|
|
@@ -9035,9 +8973,9 @@ var Ur = {
|
|
|
9035
8973
|
className: Z([
|
|
9036
8974
|
m,
|
|
9037
8975
|
`${m}--second-level`,
|
|
9038
|
-
|
|
8976
|
+
zi(t) ? `${m}--active` : null
|
|
9039
8977
|
])
|
|
9040
|
-
},
|
|
8978
|
+
}, Hi(t.linkContent, t.links))))) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("button", {
|
|
9041
8979
|
"aria-expanded": u,
|
|
9042
8980
|
className: Z([
|
|
9043
8981
|
`${f}__row`,
|
|
@@ -9051,7 +8989,7 @@ var Ur = {
|
|
|
9051
8989
|
}, 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
8990
|
iconName: "angleDown",
|
|
9053
8991
|
size: "m"
|
|
9054
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${o.toggle} ${
|
|
8992
|
+
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${o.toggle} ${Li(i)} ${o.submenu}`)), /* @__PURE__ */ e.createElement("ul", { className: Z([
|
|
9055
8993
|
h,
|
|
9056
8994
|
`${h}--second-level`,
|
|
9057
8995
|
u ? `${h}--expanded` : null
|
|
@@ -9060,10 +8998,10 @@ var Ur = {
|
|
|
9060
8998
|
className: Z([
|
|
9061
8999
|
m,
|
|
9062
9000
|
`${m}--second-level`,
|
|
9063
|
-
|
|
9001
|
+
zi(t) ? `${m}--active` : null
|
|
9064
9002
|
])
|
|
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(
|
|
9003
|
+
}, Hi(t.linkContent, t.links))))) : i);
|
|
9004
|
+
}, 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
9005
|
className: `${f}__mobile`,
|
|
9068
9006
|
headingText: a,
|
|
9069
9007
|
menuItems: c,
|
|
@@ -9078,8 +9016,8 @@ var Ur = {
|
|
|
9078
9016
|
]),
|
|
9079
9017
|
...d
|
|
9080
9018
|
}, 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` },
|
|
9019
|
+
}, Yi = ({ icon: t, isActive: n, isExpanded: r, isSidebarCollapsed: i, labels: a, linkContent: o, links: s, onExpandSidebar: c, onToggleExpand: l }) => {
|
|
9020
|
+
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
9021
|
p,
|
|
9084
9022
|
`${p}--${n}`,
|
|
9085
9023
|
r ? `${p}--expanded` : null
|
|
@@ -9088,7 +9026,7 @@ var Ur = {
|
|
|
9088
9026
|
className: Z([
|
|
9089
9027
|
f,
|
|
9090
9028
|
`${f}--${n}`,
|
|
9091
|
-
|
|
9029
|
+
zi(t) ? `${f}--active` : null
|
|
9092
9030
|
])
|
|
9093
9031
|
}, t.linkContent))), [v, y] = g(!1), b = h(v), x = h(!1), { context: C, floatingStyles: k, refs: A } = M({
|
|
9094
9032
|
placement: "right-start",
|
|
@@ -9142,7 +9080,7 @@ var Ur = {
|
|
|
9142
9080
|
...F(),
|
|
9143
9081
|
onClick: z,
|
|
9144
9082
|
onKeyDown: L
|
|
9145
|
-
}, s ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${f}-wrapper` },
|
|
9083
|
+
}, 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
9084
|
"aria-expanded": r,
|
|
9147
9085
|
className: Z([`${d}__toggle`, r ? `${d}__toggle--expanded` : null]),
|
|
9148
9086
|
onClick: l,
|
|
@@ -9150,13 +9088,13 @@ var Ur = {
|
|
|
9150
9088
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
9151
9089
|
iconName: "angleDown",
|
|
9152
9090
|
size: "m"
|
|
9153
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${a.toggle} ${
|
|
9091
|
+
}), /* @__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
9092
|
ref: A.setFloating,
|
|
9155
9093
|
className: `${d}__flyout`,
|
|
9156
9094
|
style: k,
|
|
9157
9095
|
...N()
|
|
9158
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${d}__flyout-heading` },
|
|
9159
|
-
content:
|
|
9096
|
+
}, /* @__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, {
|
|
9097
|
+
content: Li(o),
|
|
9160
9098
|
customTrigger: m,
|
|
9161
9099
|
offsetValue: {
|
|
9162
9100
|
mainAxis: 8,
|
|
@@ -9164,14 +9102,14 @@ var Ur = {
|
|
|
9164
9102
|
},
|
|
9165
9103
|
preferredPlacement: "right"
|
|
9166
9104
|
}) : m));
|
|
9167
|
-
},
|
|
9105
|
+
}, Xi = ({ ariaLabel: t, className: n, isSidebarCollapsed: r, labels: i = {
|
|
9168
9106
|
submenu: "submenu",
|
|
9169
9107
|
toggle: "Toggle"
|
|
9170
9108
|
}, menuItems: a, onExpandSidebar: o, ...s }) => {
|
|
9171
9109
|
let c = "pds-side-nav-global", l = r ? `${c}--collapsed` : `${c}--expanded`, [d, f] = g({});
|
|
9172
9110
|
u(() => {
|
|
9173
9111
|
f((e) => Object.keys(e).length ? {} : e);
|
|
9174
|
-
}, [
|
|
9112
|
+
}, [Bi(a)]);
|
|
9175
9113
|
let p = (e, t) => t in d ? d[t] : e, m = (e, t) => {
|
|
9176
9114
|
f((n) => {
|
|
9177
9115
|
let r = t in n ? n[t] : e;
|
|
@@ -9192,8 +9130,8 @@ var Ur = {
|
|
|
9192
9130
|
className: `${c}__section-label`,
|
|
9193
9131
|
role: "presentation"
|
|
9194
9132
|
}, t.label);
|
|
9195
|
-
let a =
|
|
9196
|
-
return /* @__PURE__ */ e.createElement(
|
|
9133
|
+
let a = zi(t);
|
|
9134
|
+
return /* @__PURE__ */ e.createElement(Yi, {
|
|
9197
9135
|
key: n,
|
|
9198
9136
|
icon: t.icon,
|
|
9199
9137
|
isActive: a,
|
|
@@ -9215,7 +9153,7 @@ var Ur = {
|
|
|
9215
9153
|
]),
|
|
9216
9154
|
...s
|
|
9217
9155
|
}, h);
|
|
9218
|
-
},
|
|
9156
|
+
}, Zi = ({ items: t, label: n }) => {
|
|
9219
9157
|
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
9158
|
offsetValue: 8,
|
|
9221
9159
|
openOnHover: !Xt()
|
|
@@ -9252,7 +9190,7 @@ var Ur = {
|
|
|
9252
9190
|
key: n,
|
|
9253
9191
|
className: `${i}__item ${t.isSeparator ? "pds-dropdown__separator" : `pds-dropdown__item${f(t) ? " pds-dropdown__item--active" : ""}`}`
|
|
9254
9192
|
}, !t.isSeparator && t.linkContent)))));
|
|
9255
|
-
},
|
|
9193
|
+
}, Qi = ({ ariaLabel: t = "Main Navigation", className: n, menuItems: r, ...i }) => {
|
|
9256
9194
|
let [a, o] = g(null), [s, c] = g(-1), [l, f] = g(null), [p, m] = g({
|
|
9257
9195
|
container: null,
|
|
9258
9196
|
containerChildren: []
|
|
@@ -9299,7 +9237,7 @@ var Ur = {
|
|
|
9299
9237
|
},
|
|
9300
9238
|
className: `${v}__item ${v}__item--top-level ${v}__item--has-children ${x(t) === !0 ? `${v}__item--active` : ""}`,
|
|
9301
9239
|
id: i
|
|
9302
|
-
}, /* @__PURE__ */ e.createElement(
|
|
9240
|
+
}, /* @__PURE__ */ e.createElement(Zi, {
|
|
9303
9241
|
items: t.links,
|
|
9304
9242
|
label: t.label
|
|
9305
9243
|
}))) : S.push(/* @__PURE__ */ e.createElement("li", {
|
|
@@ -9318,14 +9256,14 @@ var Ur = {
|
|
|
9318
9256
|
},
|
|
9319
9257
|
...i
|
|
9320
9258
|
}, /* @__PURE__ */ e.createElement("ul", { className: `${v}__menu` }, S));
|
|
9321
|
-
},
|
|
9259
|
+
}, $i = ({ buttonLabel: t = "Toggle dropdown", filterLabel: n = "Filter items", filterPlaceholder: r = "Filter items...", links: i, minFilterItems: a = 5, noResultsText: o = "No results found" }) => {
|
|
9322
9260
|
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
9261
|
offsetValue: 8,
|
|
9324
9262
|
placement: "bottom-start",
|
|
9325
9263
|
role: "listbox"
|
|
9326
9264
|
}), A = (e) => {
|
|
9327
9265
|
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) =>
|
|
9266
|
+
}, j = (e, t) => Li(e.linkContent).toLowerCase().includes(t.toLowerCase()), M = (e) => {
|
|
9329
9267
|
let t = e.target.value;
|
|
9330
9268
|
d(t), c(i.filter((e) => j(e, t)));
|
|
9331
9269
|
};
|
|
@@ -9336,11 +9274,11 @@ var Ur = {
|
|
|
9336
9274
|
d(""), c(i);
|
|
9337
9275
|
}, P = {
|
|
9338
9276
|
minWidth: "13rem",
|
|
9339
|
-
width: `${
|
|
9277
|
+
width: `${Li(i.reduce((e, t) => Li(e.linkContent).length > Li(t.linkContent).length ? e : t).linkContent).length + 2}ch`
|
|
9340
9278
|
}, F = /* @__PURE__ */ e.createElement(Q, {
|
|
9341
9279
|
className: `${p}__active-icon`,
|
|
9342
9280
|
iconName: "check"
|
|
9343
|
-
}), I = f && /* @__PURE__ */ e.createElement("div", { className: `${p}__filter` }, /* @__PURE__ */ e.createElement(
|
|
9281
|
+
}), I = f && /* @__PURE__ */ e.createElement("div", { className: `${p}__filter` }, /* @__PURE__ */ e.createElement(Ai, {
|
|
9344
9282
|
hasClearButton: !0,
|
|
9345
9283
|
autoComplete: "off",
|
|
9346
9284
|
id: "links-filter",
|
|
@@ -9383,9 +9321,9 @@ var Ur = {
|
|
|
9383
9321
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
9384
9322
|
} })
|
|
9385
9323
|
}, /* @__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
|
-
},
|
|
9324
|
+
}, ea = ({ ariaLabel: t, className: n, menuItems: i, ...a }) => {
|
|
9387
9325
|
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 =
|
|
9326
|
+
let u = `${o}__item`, d = Ii(c);
|
|
9389
9327
|
return /* @__PURE__ */ e.createElement("li", { className: Z([u, i ? `${u}--active` : null]) }, ((t, n) => {
|
|
9390
9328
|
let i = null;
|
|
9391
9329
|
return s(t) && (i = n ? r(t, Object.assign({}, t.props, { children: [/* @__PURE__ */ e.createElement("span", {
|
|
@@ -9396,7 +9334,7 @@ var Ur = {
|
|
|
9396
9334
|
iconName: n,
|
|
9397
9335
|
size: "m"
|
|
9398
9336
|
}), t.props.children)] })) : t), i;
|
|
9399
|
-
})(l ? d : a, n), c && /* @__PURE__ */ e.createElement(
|
|
9337
|
+
})(l ? d : a, n), c && /* @__PURE__ */ e.createElement($i, {
|
|
9400
9338
|
buttonLabel: t?.buttonLabel,
|
|
9401
9339
|
filterLabel: t?.filterLabel,
|
|
9402
9340
|
filterPlaceholder: t?.filterPlaceholder,
|
|
@@ -9408,7 +9346,7 @@ var Ur = {
|
|
|
9408
9346
|
key: n,
|
|
9409
9347
|
dropdownSettings: t.dropdownSettings,
|
|
9410
9348
|
icon: t.icon,
|
|
9411
|
-
isActive:
|
|
9349
|
+
isActive: zi(t),
|
|
9412
9350
|
linkContent: t.linkContent,
|
|
9413
9351
|
links: t.links,
|
|
9414
9352
|
promoteActiveChildLink: t.promoteActiveChildLink
|
|
@@ -9418,11 +9356,11 @@ var Ur = {
|
|
|
9418
9356
|
className: Z([o, n ?? ""]),
|
|
9419
9357
|
...a
|
|
9420
9358
|
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__mobile-menu-wrapper` }, l));
|
|
9421
|
-
},
|
|
9359
|
+
}, ta = {
|
|
9422
9360
|
2: "second",
|
|
9423
9361
|
3: "third",
|
|
9424
9362
|
4: "fourth"
|
|
9425
|
-
},
|
|
9363
|
+
}, na = ({ ariaLabel: t, className: n, headingText: r, labels: i = {
|
|
9426
9364
|
submenu: "submenu",
|
|
9427
9365
|
toggle: "Toggle"
|
|
9428
9366
|
}, menuItems: a, ...o }) => {
|
|
@@ -9542,7 +9480,7 @@ var Ur = {
|
|
|
9542
9480
|
display: "none"
|
|
9543
9481
|
}), b();
|
|
9544
9482
|
}, j = (t, n, r) => {
|
|
9545
|
-
let a =
|
|
9483
|
+
let a = ta[t], o = `${l}--${a}-level`, u = `${c}--${a}-level`, d = t + 1, f = zi(n);
|
|
9546
9484
|
if (_.current && n.path) {
|
|
9547
9485
|
let e = _.current.querySelector(`.${c}[data-item-path="${n.path}"]`);
|
|
9548
9486
|
if (e) {
|
|
@@ -9559,7 +9497,7 @@ var Ur = {
|
|
|
9559
9497
|
iconName: "angleDown",
|
|
9560
9498
|
size: "s",
|
|
9561
9499
|
verticalAlign: "-0.0625rem"
|
|
9562
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${i.toggle} ${
|
|
9500
|
+
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${i.toggle} ${Li(n.linkContent)} ${i.submenu}`)), Hi(n.linkContent, n.links)), /* @__PURE__ */ e.createElement("ul", {
|
|
9563
9501
|
className: Z([
|
|
9564
9502
|
l,
|
|
9565
9503
|
o,
|
|
@@ -9567,7 +9505,7 @@ var Ur = {
|
|
|
9567
9505
|
]),
|
|
9568
9506
|
role: "group"
|
|
9569
9507
|
}, n.links.map((t, n) => {
|
|
9570
|
-
let r =
|
|
9508
|
+
let r = zi(t);
|
|
9571
9509
|
return /* @__PURE__ */ e.createElement("li", {
|
|
9572
9510
|
key: `${n}-${a}`,
|
|
9573
9511
|
"aria-expanded": t.links ? r : void 0,
|
|
@@ -9579,10 +9517,10 @@ var Ur = {
|
|
|
9579
9517
|
]),
|
|
9580
9518
|
"data-item-path": t.path || "",
|
|
9581
9519
|
role: "treeitem"
|
|
9582
|
-
}, t.links && d in
|
|
9520
|
+
}, t.links && d in ta ? j(d, t, t.links) : t.linkContent);
|
|
9583
9521
|
})));
|
|
9584
9522
|
}, M = (t, n) => {
|
|
9585
|
-
let { linkContent: r, links: i } = t, a =
|
|
9523
|
+
let { linkContent: r, links: i } = t, a = zi(t);
|
|
9586
9524
|
return /* @__PURE__ */ e.createElement("li", {
|
|
9587
9525
|
key: n,
|
|
9588
9526
|
"aria-expanded": i ? a : void 0,
|
|
@@ -9611,11 +9549,11 @@ var Ur = {
|
|
|
9611
9549
|
className: `${s}__menu ${s}__menu--top-level`,
|
|
9612
9550
|
role: "tree"
|
|
9613
9551
|
}, a.map((e, t) => M(e, t))));
|
|
9614
|
-
},
|
|
9552
|
+
}, ra = {
|
|
9615
9553
|
light: "sunBright",
|
|
9616
9554
|
dark: "moon",
|
|
9617
9555
|
system: "circleHalfStroke"
|
|
9618
|
-
},
|
|
9556
|
+
}, ia = ({ className: t, id: n = "theme-switcher-menu", labelStrings: r = {
|
|
9619
9557
|
light: "Light",
|
|
9620
9558
|
dark: "Dark",
|
|
9621
9559
|
system: "System"
|
|
@@ -9627,7 +9565,7 @@ var Ur = {
|
|
|
9627
9565
|
];
|
|
9628
9566
|
if (s === "toggle") {
|
|
9629
9567
|
let s = d.map((e) => ({
|
|
9630
|
-
iconName:
|
|
9568
|
+
iconName: ra[e],
|
|
9631
9569
|
label: r[e],
|
|
9632
9570
|
value: e
|
|
9633
9571
|
}));
|
|
@@ -9646,7 +9584,7 @@ var Ur = {
|
|
|
9646
9584
|
}
|
|
9647
9585
|
let f = d.map((e) => ({
|
|
9648
9586
|
callback: () => i?.(e),
|
|
9649
|
-
iconName:
|
|
9587
|
+
iconName: ra[e],
|
|
9650
9588
|
iconSize: "m",
|
|
9651
9589
|
label: r[e]
|
|
9652
9590
|
}));
|
|
@@ -9658,7 +9596,7 @@ var Ur = {
|
|
|
9658
9596
|
customTrigger: /* @__PURE__ */ e.createElement(tr, {
|
|
9659
9597
|
iconOnly: !0,
|
|
9660
9598
|
"aria-label": u,
|
|
9661
|
-
iconName:
|
|
9599
|
+
iconName: ra[o],
|
|
9662
9600
|
id: n,
|
|
9663
9601
|
label: "",
|
|
9664
9602
|
menuItems: f,
|
|
@@ -9667,7 +9605,7 @@ var Ur = {
|
|
|
9667
9605
|
offsetValue: 0,
|
|
9668
9606
|
preferredPlacement: "top"
|
|
9669
9607
|
}));
|
|
9670
|
-
},
|
|
9608
|
+
}, 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
9609
|
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
9610
|
placement: "bottom-end",
|
|
9673
9611
|
open: _,
|
|
@@ -9712,7 +9650,7 @@ var Ur = {
|
|
|
9712
9650
|
}, /* @__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
9651
|
className: `${C}__theme-row`,
|
|
9714
9652
|
role: "presentation"
|
|
9715
|
-
}, /* @__PURE__ */ e.createElement("span", { className: `${C}__theme-label` }, o), /* @__PURE__ */ e.createElement(
|
|
9653
|
+
}, /* @__PURE__ */ e.createElement("span", { className: `${C}__theme-label` }, o), /* @__PURE__ */ e.createElement(ia, {
|
|
9716
9654
|
id: `${x}-theme`,
|
|
9717
9655
|
labelStrings: s,
|
|
9718
9656
|
onChange: i,
|
|
@@ -9791,7 +9729,7 @@ var Ur = {
|
|
|
9791
9729
|
className: D,
|
|
9792
9730
|
role: "menu"
|
|
9793
9731
|
}, ee, /* @__PURE__ */ e.createElement("li", { role: "separator" }), te, Y)))));
|
|
9794
|
-
},
|
|
9732
|
+
}, 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
9733
|
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
9734
|
enableTypeahead: !b,
|
|
9797
9735
|
role: "menu"
|
|
@@ -9894,7 +9832,7 @@ var Ur = {
|
|
|
9894
9832
|
return /* @__PURE__ */ e.createElement("span", {
|
|
9895
9833
|
className: Z([x, n]),
|
|
9896
9834
|
...u
|
|
9897
|
-
}, /* @__PURE__ */ e.createElement(qn, { label: W() }, b && /* @__PURE__ */ e.createElement("div", { className: `${x}__filter` }, /* @__PURE__ */ e.createElement(
|
|
9835
|
+
}, /* @__PURE__ */ e.createElement(qn, { label: W() }, b && /* @__PURE__ */ e.createElement("div", { className: `${x}__filter` }, /* @__PURE__ */ e.createElement(Ai, {
|
|
9898
9836
|
hasClearButton: !0,
|
|
9899
9837
|
id: "workspace-filter-mobile",
|
|
9900
9838
|
label: i,
|
|
@@ -9931,7 +9869,7 @@ var Ur = {
|
|
|
9931
9869
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
9932
9870
|
},
|
|
9933
9871
|
...D()
|
|
9934
|
-
}, b && /* @__PURE__ */ e.createElement("div", { className: `${x}__filter` }, /* @__PURE__ */ e.createElement(
|
|
9872
|
+
}, b && /* @__PURE__ */ e.createElement("div", { className: `${x}__filter` }, /* @__PURE__ */ e.createElement(Ai, {
|
|
9935
9873
|
hasClearButton: !0,
|
|
9936
9874
|
id: "workspace-filter",
|
|
9937
9875
|
label: i,
|
|
@@ -9947,12 +9885,12 @@ var Ur = {
|
|
|
9947
9885
|
className: `pds-dropdown__heading ${x}__item-heading`,
|
|
9948
9886
|
role: "presentation"
|
|
9949
9887
|
}, o), V.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: "pds-dropdown__no-results" }, c) : V), U)));
|
|
9950
|
-
},
|
|
9888
|
+
}, sa = {
|
|
9951
9889
|
info: "circleInfo",
|
|
9952
9890
|
warning: "triangleExclamation",
|
|
9953
9891
|
critical: "diamondExclamation",
|
|
9954
9892
|
discovery: "bullhorn"
|
|
9955
|
-
},
|
|
9893
|
+
}, 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
9894
|
...Jn,
|
|
9957
9895
|
neutral: "Notice"
|
|
9958
9896
|
}, ...c }) => {
|
|
@@ -9971,21 +9909,21 @@ var Ur = {
|
|
|
9971
9909
|
}, w = d[0].type, T = w ? `${x}-group--${w}` : null, E = (e) => 500 - e, D = (e) => e === 0 ? 0 : -1, O = () => {
|
|
9972
9910
|
m(d[0].id), setTimeout(() => {
|
|
9973
9911
|
f((e) => [...e.slice(1), e[0]]), m(null);
|
|
9974
|
-
},
|
|
9912
|
+
}, ca);
|
|
9975
9913
|
}, k = () => {
|
|
9976
9914
|
y({
|
|
9977
9915
|
[d[0].id]: 502,
|
|
9978
9916
|
[d[b - 1].id]: 501
|
|
9979
9917
|
}), setTimeout(() => {
|
|
9980
9918
|
m(d[0].id);
|
|
9981
|
-
},
|
|
9919
|
+
}, la), setTimeout(() => {
|
|
9982
9920
|
f((e) => [e[e.length - 1], ...e.slice(0, e.length - 1)]), m(null), y({});
|
|
9983
|
-
},
|
|
9921
|
+
}, ca);
|
|
9984
9922
|
}, A = (t, n) => {
|
|
9985
9923
|
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
9924
|
e.preventDefault(), _(a), setTimeout(() => {
|
|
9987
9925
|
u?.(), _(null), f((e) => e.filter((e) => e.id !== a));
|
|
9988
|
-
},
|
|
9926
|
+
}, ca);
|
|
9989
9927
|
}, b = v[a] ?? E(n);
|
|
9990
9928
|
return /* @__PURE__ */ e.createElement("div", {
|
|
9991
9929
|
key: a,
|
|
@@ -10000,7 +9938,7 @@ var Ur = {
|
|
|
10000
9938
|
style: { zIndex: b }
|
|
10001
9939
|
}, /* @__PURE__ */ e.createElement("div", { className: `${x}__content` }, /* @__PURE__ */ e.createElement(Q, {
|
|
10002
9940
|
className: `${x}__icon ${x}__icon--${t.type}`,
|
|
10003
|
-
iconName: d === "neutral" ? r :
|
|
9941
|
+
iconName: d === "neutral" ? r : sa[d],
|
|
10004
9942
|
size: l ? "l" : "m"
|
|
10005
9943
|
}), /* @__PURE__ */ e.createElement("div", { className: `${x}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, g, " "), c)), o && /* @__PURE__ */ e.createElement("button", {
|
|
10006
9944
|
className: `${x}__dismiss-button`,
|
|
@@ -10031,12 +9969,12 @@ var Ur = {
|
|
|
10031
9969
|
onClick: O,
|
|
10032
9970
|
size: "m"
|
|
10033
9971
|
}), d.map((e, t) => A(e, t))) : A(d[0], 0));
|
|
10034
|
-
},
|
|
9972
|
+
}, da = {
|
|
10035
9973
|
info: "circleInfo",
|
|
10036
9974
|
warning: "triangleExclamation",
|
|
10037
9975
|
success: "circleCheck",
|
|
10038
9976
|
critical: "diamondExclamation"
|
|
10039
|
-
},
|
|
9977
|
+
}, fa = ({ className: t, message: n, title: r, type: i, typeLabels: a = {
|
|
10040
9978
|
...Jn,
|
|
10041
9979
|
working: "Working"
|
|
10042
9980
|
}, ...o }) => {
|
|
@@ -10057,16 +9995,16 @@ var Ur = {
|
|
|
10057
9995
|
role: l,
|
|
10058
9996
|
...o
|
|
10059
9997
|
}, /* @__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
|
|
9998
|
+
iconName: `${i}` in da ? da[i] : da.info,
|
|
10061
9999
|
size: "m"
|
|
10062
10000
|
})), /* @__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
|
-
},
|
|
10001
|
+
}, pa = {
|
|
10064
10002
|
info: "circleInfo",
|
|
10065
10003
|
warning: "triangleExclamation",
|
|
10066
10004
|
success: "circleCheck",
|
|
10067
10005
|
critical: "diamondExclamation",
|
|
10068
10006
|
discovery: "squareQuestion"
|
|
10069
|
-
},
|
|
10007
|
+
}, 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
10008
|
let m = r === "marketing", g = h(null), _ = h(void 0), v = "pds-section-message", y = {
|
|
10071
10009
|
error: `${v}--error`,
|
|
10072
10010
|
success: `${v}--success`,
|
|
@@ -10103,7 +10041,7 @@ var Ur = {
|
|
|
10103
10041
|
role: S,
|
|
10104
10042
|
...p
|
|
10105
10043
|
}, /* @__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
|
|
10044
|
+
iconName: `${d}` in pa ? pa[d] : pa.info,
|
|
10107
10045
|
size: m ? "xl" : "l"
|
|
10108
10046
|
})), /* @__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
10047
|
...n,
|
|
@@ -10116,10 +10054,10 @@ var Ur = {
|
|
|
10116
10054
|
onClick: D,
|
|
10117
10055
|
size: m ? "l" : "m"
|
|
10118
10056
|
})));
|
|
10119
|
-
},
|
|
10057
|
+
}, ha = 3e4, ga = {
|
|
10120
10058
|
pause: "Pause notification",
|
|
10121
10059
|
resume: "Resume notification"
|
|
10122
|
-
},
|
|
10060
|
+
}, _a = i({ labelStrings: ga }), va = ({ ariaLabel: t, closeToast: n }) => /* @__PURE__ */ e.createElement(Mn, {
|
|
10123
10061
|
ariaLabel: t || "Close",
|
|
10124
10062
|
className: "pds-toast__close-button",
|
|
10125
10063
|
onClick: (e) => {
|
|
@@ -10127,13 +10065,13 @@ var Ur = {
|
|
|
10127
10065
|
},
|
|
10128
10066
|
size: "s",
|
|
10129
10067
|
tabIndex: 0
|
|
10130
|
-
}),
|
|
10068
|
+
}), ya = ({ className: t, labelStrings: n = ga, limit: r = 5, position: i = "bottom-right" }) => {
|
|
10131
10069
|
let a = Z(["pds-toaster", t]);
|
|
10132
|
-
return /* @__PURE__ */ e.createElement(
|
|
10070
|
+
return /* @__PURE__ */ e.createElement(_a.Provider, { value: { labelStrings: n } }, /* @__PURE__ */ e.createElement(ze, {
|
|
10133
10071
|
newestOnTop: !0,
|
|
10134
10072
|
autoClose: !1,
|
|
10135
10073
|
className: a,
|
|
10136
|
-
closeButton:
|
|
10074
|
+
closeButton: va,
|
|
10137
10075
|
draggable: !1,
|
|
10138
10076
|
icon: !1,
|
|
10139
10077
|
limit: r,
|
|
@@ -10143,25 +10081,25 @@ var Ur = {
|
|
|
10143
10081
|
role: "status",
|
|
10144
10082
|
transition: Re
|
|
10145
10083
|
}));
|
|
10146
|
-
},
|
|
10084
|
+
}, ba = {
|
|
10147
10085
|
info: "circleInfo",
|
|
10148
10086
|
success: "circleCheck",
|
|
10149
10087
|
warning: "triangleExclamation",
|
|
10150
10088
|
critical: "diamondExclamation"
|
|
10151
|
-
},
|
|
10089
|
+
}, xa = {
|
|
10152
10090
|
info: "Information",
|
|
10153
10091
|
success: "Success",
|
|
10154
10092
|
warning: "Warning",
|
|
10155
10093
|
critical: "Critical",
|
|
10156
10094
|
working: "Working..."
|
|
10157
|
-
},
|
|
10095
|
+
}, Sa = ({ autoCloseDuration: t, children: n, className: r, id: i, toastId: a, type: o = "info", typeLabels: s = xa }) => {
|
|
10158
10096
|
let c = "pds-toast", u = {
|
|
10159
10097
|
critical: `${c}--critical`,
|
|
10160
10098
|
info: `${c}--info`,
|
|
10161
10099
|
success: `${c}--success`,
|
|
10162
10100
|
warning: `${c}--warning`,
|
|
10163
10101
|
working: `${c}--working`
|
|
10164
|
-
}, d = `${s[o]} `, { labelStrings: f } = l(
|
|
10102
|
+
}, d = `${s[o]} `, { labelStrings: f } = l(_a), [p, m] = g(!1), h = a !== void 0 && o !== "critical" && o !== "working" && typeof t == "number";
|
|
10165
10103
|
return /* @__PURE__ */ e.createElement("div", {
|
|
10166
10104
|
className: Z([
|
|
10167
10105
|
c,
|
|
@@ -10171,7 +10109,7 @@ var Ur = {
|
|
|
10171
10109
|
id: i
|
|
10172
10110
|
}, /* @__PURE__ */ e.createElement("div", { className: `${c}__icon-container` }, o === "working" ? /* @__PURE__ */ e.createElement(bn, { size: "xl" }) : /* @__PURE__ */ e.createElement(Q, {
|
|
10173
10111
|
className: `${c}__icon ${c}__icon--${o}`,
|
|
10174
|
-
iconName:
|
|
10112
|
+
iconName: ba[o],
|
|
10175
10113
|
size: "l"
|
|
10176
10114
|
})), /* @__PURE__ */ e.createElement("div", { className: `${c}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, d), n), h && /* @__PURE__ */ e.createElement("button", {
|
|
10177
10115
|
"aria-label": p ? f.resume : f.pause,
|
|
@@ -10186,11 +10124,11 @@ var Ur = {
|
|
|
10186
10124
|
iconName: p ? "play" : "pause",
|
|
10187
10125
|
size: "m"
|
|
10188
10126
|
})));
|
|
10189
|
-
},
|
|
10127
|
+
}, Ca = /* @__PURE__ */ function(e) {
|
|
10190
10128
|
return e.Critical = "critical", e.Info = "info", e.Success = "success", e.Warning = "warning", e.Working = "working", e;
|
|
10191
|
-
}({}),
|
|
10129
|
+
}({}), wa = () => [
|
|
10192
10130
|
(t, n, r = {}) => {
|
|
10193
|
-
let i = r.toastId ?? crypto.randomUUID(), a = typeof r.autoClose == "number" ? Math.max(
|
|
10131
|
+
let i = r.toastId ?? crypto.randomUUID(), a = typeof r.autoClose == "number" ? Math.max(ha, r.autoClose) : !1, o = /* @__PURE__ */ e.createElement(Sa, {
|
|
10194
10132
|
autoCloseDuration: a || void 0,
|
|
10195
10133
|
toastId: i,
|
|
10196
10134
|
type: t
|
|
@@ -10215,7 +10153,7 @@ var Ur = {
|
|
|
10215
10153
|
enter: "pds-toast--bounceInPlace",
|
|
10216
10154
|
exit: "pds-toast--slideOut"
|
|
10217
10155
|
})
|
|
10218
|
-
],
|
|
10156
|
+
], 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
10157
|
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
10158
|
u(() => {
|
|
10221
10159
|
s ? E(!0) : O(!1);
|
|
@@ -10280,7 +10218,7 @@ var Ur = {
|
|
|
10280
10218
|
onClick: M,
|
|
10281
10219
|
size: "m"
|
|
10282
10220
|
})), /* @__PURE__ */ e.createElement("div", { className: `${x}__content` }, y), b && /* @__PURE__ */ e.createElement("div", { className: `${x}__footer` }, b)))), document.body) : null;
|
|
10283
|
-
},
|
|
10221
|
+
}, 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
10222
|
let f = "pds-full-screen-overlay", p = n === "default" ? null : `${f}--bg-${n}`, { closeOverlay: m, openOverlay: h } = en();
|
|
10285
10223
|
u(() => {
|
|
10286
10224
|
if (!(!h || !m) && c) return h(), () => m();
|
|
@@ -10345,7 +10283,7 @@ var Ur = {
|
|
|
10345
10283
|
}),
|
|
10346
10284
|
zIndex: 9999
|
|
10347
10285
|
}), /* @__PURE__ */ e.createElement("div", { className: `${f}__content` }, r)))), document.body) : null;
|
|
10348
|
-
},
|
|
10286
|
+
}, 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
10287
|
let m = ft(n), h = m.__unslotted, _ = m.footer, v = "pds-modal", y = d === "m" ? null : `${v}--${d}`, S = a ? {
|
|
10350
10288
|
maxHeight: a,
|
|
10351
10289
|
paddingInlineEnd: "1rem",
|
|
@@ -10421,27 +10359,27 @@ var Ur = {
|
|
|
10421
10359
|
className: `${v}__content`,
|
|
10422
10360
|
style: S
|
|
10423
10361
|
}, h), _ && /* @__PURE__ */ e.createElement("div", { className: `${v}__footer` }, _)))), document.body) : null;
|
|
10424
|
-
},
|
|
10362
|
+
}, Oa = (e, t) => {
|
|
10425
10363
|
let n = t - e + 1;
|
|
10426
10364
|
return Array.from({ length: n }, (t, n) => n + e);
|
|
10427
|
-
},
|
|
10365
|
+
}, ka = ({ bufferCount: e = 1, currentPage: t, itemsPerPage: n, totalItemCount: r }) => m(() => {
|
|
10428
10366
|
let i = Math.ceil(r / n), a = e + 5, o = i;
|
|
10429
|
-
if (a >= i) return
|
|
10367
|
+
if (a >= i) return Oa(1, i);
|
|
10430
10368
|
let s = Math.max(t - e, 1), c = Math.min(t + e, i), l = s > 2, u = c < i - 2;
|
|
10431
10369
|
if (!l && u) return [
|
|
10432
|
-
...
|
|
10370
|
+
...Oa(1, 3 + 2 * e),
|
|
10433
10371
|
"...",
|
|
10434
10372
|
i
|
|
10435
10373
|
];
|
|
10436
10374
|
if (l && !u) return [
|
|
10437
10375
|
1,
|
|
10438
10376
|
"...",
|
|
10439
|
-
...
|
|
10377
|
+
...Oa(i - (3 + 2 * e) + 1, i)
|
|
10440
10378
|
];
|
|
10441
10379
|
if (l && u) return [
|
|
10442
10380
|
1,
|
|
10443
10381
|
"...",
|
|
10444
|
-
...
|
|
10382
|
+
...Oa(s, c),
|
|
10445
10383
|
"...",
|
|
10446
10384
|
o
|
|
10447
10385
|
];
|
|
@@ -10450,11 +10388,11 @@ var Ur = {
|
|
|
10450
10388
|
n,
|
|
10451
10389
|
e,
|
|
10452
10390
|
t
|
|
10453
|
-
]),
|
|
10391
|
+
]), Aa = ({ bufferCount: t = 1, className: n, currentPage: r, headingLevel: i = "h2", headingText: a = "Pagination", itemsPerPage: o = 10, labelStrings: s = {
|
|
10454
10392
|
previous: "Go to previous page",
|
|
10455
10393
|
next: "Go to next page"
|
|
10456
10394
|
}, onPageChange: c, size: l = "m", totalItemCount: u, ...d }) => {
|
|
10457
|
-
let f =
|
|
10395
|
+
let f = ka({
|
|
10458
10396
|
currentPage: r,
|
|
10459
10397
|
totalItemCount: u,
|
|
10460
10398
|
bufferCount: t,
|
|
@@ -10508,7 +10446,7 @@ var Ur = {
|
|
|
10508
10446
|
size: "m"
|
|
10509
10447
|
}))
|
|
10510
10448
|
}))));
|
|
10511
|
-
},
|
|
10449
|
+
}, ja = ({ className: t, currentPage: n, headingLevel: r = "h2", headingText: i = "Pagination", itemsPerPage: a = 10, labelStrings: o = {
|
|
10512
10450
|
next: "Next",
|
|
10513
10451
|
previous: "Previous"
|
|
10514
10452
|
}, nextPage: s, onPageChange: c, previousPage: l, totalItemCount: u, ...d }) => {
|
|
@@ -10537,7 +10475,7 @@ var Ur = {
|
|
|
10537
10475
|
iconName: "angleRight",
|
|
10538
10476
|
size: "m"
|
|
10539
10477
|
}))));
|
|
10540
|
-
},
|
|
10478
|
+
}, Ma = ({ className: t, currentPage: n, headingLevel: r = "h2", headingText: i = "Pagination", itemsPerPage: a = 10, labelStrings: o = {
|
|
10541
10479
|
next: "Go to next page",
|
|
10542
10480
|
of: "of",
|
|
10543
10481
|
page: "Page",
|
|
@@ -10573,7 +10511,7 @@ var Ur = {
|
|
|
10573
10511
|
className: "visually-hidden",
|
|
10574
10512
|
id: "pagination-compact",
|
|
10575
10513
|
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(
|
|
10514
|
+
}, 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
10515
|
className: C ? `${b}__page-input--error` : void 0,
|
|
10578
10516
|
id: p,
|
|
10579
10517
|
inputProps: {
|
|
@@ -10592,7 +10530,7 @@ var Ur = {
|
|
|
10592
10530
|
}), C && /* @__PURE__ */ e.createElement("span", {
|
|
10593
10531
|
className: "visually-hidden",
|
|
10594
10532
|
role: "alert"
|
|
10595
|
-
}, C)) : /* @__PURE__ */ e.createElement(
|
|
10533
|
+
}, C)) : /* @__PURE__ */ e.createElement(hr, {
|
|
10596
10534
|
autoWidth: !0,
|
|
10597
10535
|
id: p,
|
|
10598
10536
|
label: o.pageSelect,
|
|
@@ -10641,7 +10579,7 @@ var Ur = {
|
|
|
10641
10579
|
size: "m"
|
|
10642
10580
|
}))
|
|
10643
10581
|
})));
|
|
10644
|
-
},
|
|
10582
|
+
}, Na = ({ children: t, className: n, id: r, isOpen: i = !1, showBorder: a = !0, summary: o, ...s }) => {
|
|
10645
10583
|
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
10584
|
return u(() => {
|
|
10647
10585
|
let e = v.current;
|
|
@@ -10665,7 +10603,7 @@ var Ur = {
|
|
|
10665
10603
|
className: `${m}__icon ${c ? "rotated" : ""}`,
|
|
10666
10604
|
iconName: "angleDown"
|
|
10667
10605
|
})), /* @__PURE__ */ e.createElement("div", { className: `${m}__content` }, t)));
|
|
10668
|
-
},
|
|
10606
|
+
}, Pa = ({ children: t, className: n, displayType: r = "standard", ...i }) => {
|
|
10669
10607
|
let a = "pds-expansion-panel-group", o = r === "standard" ? null : `${a}--${r}`;
|
|
10670
10608
|
return /* @__PURE__ */ e.createElement("div", {
|
|
10671
10609
|
className: Z([
|
|
@@ -10675,7 +10613,7 @@ var Ur = {
|
|
|
10675
10613
|
]),
|
|
10676
10614
|
...i
|
|
10677
10615
|
}, t);
|
|
10678
|
-
},
|
|
10616
|
+
}, Fa = ({ children: t, className: n, padding: r = "standard", variant: i = "default", ...a }) => {
|
|
10679
10617
|
let o = "pds-panel", s = i === "default" ? null : `${o}--${i}`, c = `${o}__content`, l = r === "standard" ? null : `${c}--pad-${r}`;
|
|
10680
10618
|
return /* @__PURE__ */ e.createElement("div", {
|
|
10681
10619
|
className: Z([
|
|
@@ -10685,7 +10623,7 @@ var Ur = {
|
|
|
10685
10623
|
]),
|
|
10686
10624
|
...a
|
|
10687
10625
|
}, /* @__PURE__ */ e.createElement("div", { className: Z([c, l]) }, t));
|
|
10688
|
-
},
|
|
10626
|
+
}, Ia = ({ background: t = "default", children: n, className: r, hasBorder: i = !0, paddingSize: a = "m", ...o }) => {
|
|
10689
10627
|
let s = "pds-panel-list", c = `pds-panel-list--${a}`, l = t === "default" ? null : `${s}--${t}`, u = i ? null : `${s}--borderless`;
|
|
10690
10628
|
return /* @__PURE__ */ e.createElement("ul", {
|
|
10691
10629
|
className: Z([
|
|
@@ -10697,7 +10635,7 @@ var Ur = {
|
|
|
10697
10635
|
]),
|
|
10698
10636
|
...o
|
|
10699
10637
|
}, n);
|
|
10700
|
-
},
|
|
10638
|
+
}, La = ({ children: t, className: n, expandButtonAriaLabel: r, isExpandable: i = !1, ...a }) => {
|
|
10701
10639
|
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
10640
|
c((e) => !e);
|
|
10703
10641
|
};
|
|
@@ -10728,10 +10666,10 @@ var Ur = {
|
|
|
10728
10666
|
opacity: "0"
|
|
10729
10667
|
}
|
|
10730
10668
|
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__items-inside` }, f)));
|
|
10731
|
-
},
|
|
10669
|
+
}, Ra = ({ children: t, className: n, ...r }) => /* @__PURE__ */ e.createElement("div", {
|
|
10732
10670
|
className: Z(["pds-panel-stack", n ?? ""]),
|
|
10733
10671
|
...r
|
|
10734
|
-
}, t),
|
|
10672
|
+
}, t), za = /* @__PURE__ */ e.createElement("svg", {
|
|
10735
10673
|
"aria-label": "Pantheon",
|
|
10736
10674
|
fill: "none",
|
|
10737
10675
|
focusable: "false",
|
|
@@ -10793,7 +10731,7 @@ var Ur = {
|
|
|
10793
10731
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
10794
10732
|
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
10733
|
fill: "var(--pds-color-foreground-default)"
|
|
10796
|
-
})),
|
|
10734
|
+
})), Ba = /* @__PURE__ */ e.createElement("svg", {
|
|
10797
10735
|
"aria-label": "Pantheon",
|
|
10798
10736
|
fill: "none",
|
|
10799
10737
|
focusable: "false",
|
|
@@ -10828,7 +10766,7 @@ var Ur = {
|
|
|
10828
10766
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
10829
10767
|
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
10768
|
fill: "var(--pds-color-foreground-default)"
|
|
10831
|
-
})),
|
|
10769
|
+
})), Va = /* @__PURE__ */ e.createElement("svg", {
|
|
10832
10770
|
"aria-label": "Pantheon",
|
|
10833
10771
|
fill: "none",
|
|
10834
10772
|
focusable: "false",
|
|
@@ -10863,17 +10801,17 @@ var Ur = {
|
|
|
10863
10801
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
10864
10802
|
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
10803
|
fill: "var(--pds-color-foreground-default)"
|
|
10866
|
-
})),
|
|
10804
|
+
})), Ha = ({ className: t, colorType: n = "default", displayType: r = "full", linkContent: i, size: a = "m", ...o }) => {
|
|
10867
10805
|
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
10806
|
switch (r) {
|
|
10869
10807
|
case "full":
|
|
10870
|
-
f =
|
|
10808
|
+
f = za;
|
|
10871
10809
|
break;
|
|
10872
10810
|
case "icon":
|
|
10873
|
-
f =
|
|
10811
|
+
f = Ba;
|
|
10874
10812
|
break;
|
|
10875
10813
|
case "wordmark":
|
|
10876
|
-
f =
|
|
10814
|
+
f = Va;
|
|
10877
10815
|
break;
|
|
10878
10816
|
}
|
|
10879
10817
|
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 +10828,7 @@ var Ur = {
|
|
|
10890
10828
|
]),
|
|
10891
10829
|
...o
|
|
10892
10830
|
}, i ? h : f);
|
|
10893
|
-
},
|
|
10831
|
+
}, 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
10832
|
let [D, k] = g(d);
|
|
10895
10833
|
u(() => {
|
|
10896
10834
|
k(d);
|
|
@@ -10917,12 +10855,12 @@ var Ur = {
|
|
|
10917
10855
|
A(V),
|
|
10918
10856
|
j(V),
|
|
10919
10857
|
R(V)
|
|
10920
|
-
]), J = U.arrow?.x ?? 0, ee = U.arrow?.y ?? 0, te = J +
|
|
10858
|
+
]), J = U.arrow?.x ?? 0, ee = U.arrow?.y ?? 0, te = J + Wa / 2, ne = ee + Ua, { isMounted: re } = z(V, {
|
|
10921
10859
|
initial: { transform: "scale(0)" },
|
|
10922
10860
|
common: ({ side: e }) => ({ transformOrigin: {
|
|
10923
|
-
top: `${te}px calc(100% + ${
|
|
10861
|
+
top: `${te}px calc(100% + ${Ua}px)`,
|
|
10924
10862
|
bottom: `${te}px -8px`,
|
|
10925
|
-
left: `calc(100% + ${
|
|
10863
|
+
left: `calc(100% + ${Ua}px) ${ne}px`,
|
|
10926
10864
|
right: `-8px ${ne}px`
|
|
10927
10865
|
}[e] })
|
|
10928
10866
|
});
|
|
@@ -10954,23 +10892,23 @@ var Ur = {
|
|
|
10954
10892
|
className: `${P}__arrow`,
|
|
10955
10893
|
context: V,
|
|
10956
10894
|
fill: "var(--pds-color-surface-default)",
|
|
10957
|
-
height:
|
|
10895
|
+
height: Ua,
|
|
10958
10896
|
stroke: "var(--pds-color-popover-border)",
|
|
10959
10897
|
strokeWidth: 1,
|
|
10960
10898
|
tipRadius: 0,
|
|
10961
|
-
width:
|
|
10899
|
+
width: Wa
|
|
10962
10900
|
}), /* @__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
10901
|
ariaLabel: r,
|
|
10964
10902
|
onClick: G,
|
|
10965
10903
|
size: "s"
|
|
10966
10904
|
})))))));
|
|
10967
|
-
},
|
|
10905
|
+
}, Ka = {
|
|
10968
10906
|
neutral: "--pds-color-status-neutral-indicator",
|
|
10969
10907
|
info: "--pds-color-status-info-fill",
|
|
10970
10908
|
success: "--pds-color-status-success-fill",
|
|
10971
10909
|
warning: "--pds-color-status-warning-fill",
|
|
10972
10910
|
critical: "--pds-color-status-critical-fill"
|
|
10973
|
-
},
|
|
10911
|
+
}, qa = ({ className: t, colorBreakpoints: n = [{
|
|
10974
10912
|
colorType: "info",
|
|
10975
10913
|
percentage: 0
|
|
10976
10914
|
}, {
|
|
@@ -10991,7 +10929,7 @@ var Ur = {
|
|
|
10991
10929
|
id: m
|
|
10992
10930
|
}, i), (x || l) && /* @__PURE__ */ e.createElement("div", { className: `${h}__details` }, x && b, l && /* @__PURE__ */ e.createElement("div", {
|
|
10993
10931
|
className: `${h}__percentage`,
|
|
10994
|
-
style: { color: `hsl(from var(${
|
|
10932
|
+
style: { color: `hsl(from var(${Ka[y]}) h s calc(l - 7))` }
|
|
10995
10933
|
}, s, "%")), /* @__PURE__ */ e.createElement("div", { className: `${h}__wrapper` }, /* @__PURE__ */ e.createElement("div", {
|
|
10996
10934
|
"aria-labelledby": m,
|
|
10997
10935
|
"aria-valuenow": v,
|
|
@@ -11001,16 +10939,16 @@ var Ur = {
|
|
|
11001
10939
|
className: `${h}__bar`,
|
|
11002
10940
|
style: {
|
|
11003
10941
|
width: `${v}%`,
|
|
11004
|
-
backgroundColor: `var(${
|
|
10942
|
+
backgroundColor: `var(${Ka[y]})`
|
|
11005
10943
|
}
|
|
11006
10944
|
}))), S && b);
|
|
11007
|
-
},
|
|
10945
|
+
}, Ja = {
|
|
11008
10946
|
neutral: "--pds-color-status-neutral-indicator",
|
|
11009
10947
|
info: "--pds-color-status-info-fill",
|
|
11010
10948
|
success: "--pds-color-status-success-fill",
|
|
11011
10949
|
warning: "--pds-color-status-warning-fill",
|
|
11012
10950
|
critical: "--pds-color-status-critical-fill"
|
|
11013
|
-
},
|
|
10951
|
+
}, Ya = ({ className: t, colorBreakpoints: n = [{
|
|
11014
10952
|
colorType: "info",
|
|
11015
10953
|
percentage: 0
|
|
11016
10954
|
}, {
|
|
@@ -11059,7 +10997,7 @@ var Ur = {
|
|
|
11059
10997
|
strokeDasharray: x,
|
|
11060
10998
|
strokeDashoffset: S,
|
|
11061
10999
|
strokeWidth: y,
|
|
11062
|
-
style: { stroke: `var(${
|
|
11000
|
+
style: { stroke: `var(${Ja[C]})` },
|
|
11063
11001
|
transform: `rotate(-90 ${v / 2} ${v / 2})`
|
|
11064
11002
|
}), /* @__PURE__ */ e.createElement("text", {
|
|
11065
11003
|
alignmentBaseline: "middle",
|
|
@@ -11069,29 +11007,29 @@ var Ur = {
|
|
|
11069
11007
|
x: "50%",
|
|
11070
11008
|
y: "51%"
|
|
11071
11009
|
}, w))));
|
|
11072
|
-
},
|
|
11010
|
+
}, Xa = {
|
|
11073
11011
|
of: "of",
|
|
11074
11012
|
showing: "Showing",
|
|
11075
11013
|
unitPlural: "results",
|
|
11076
11014
|
unitSingular: "result"
|
|
11077
|
-
},
|
|
11015
|
+
}, 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
11016
|
let s = "pds-result-count", c = `${s}__number`, { of: l, showing: u, unitPlural: d, unitSingular: f } = {
|
|
11079
|
-
...
|
|
11017
|
+
...Xa,
|
|
11080
11018
|
...i
|
|
11081
|
-
}, p = n !== void 0, m =
|
|
11019
|
+
}, p = n !== void 0, m = Za(r, f, d, a);
|
|
11082
11020
|
return /* @__PURE__ */ e.createElement("div", {
|
|
11083
11021
|
"aria-live": "polite",
|
|
11084
11022
|
className: Z([s, t ?? ""]),
|
|
11085
11023
|
...o
|
|
11086
11024
|
}, /* @__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
|
-
},
|
|
11025
|
+
}, $a = {
|
|
11088
11026
|
privacy: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Privacy Policy"),
|
|
11089
11027
|
dataSubjectRequest: /* @__PURE__ */ e.createElement("a", { href: "http://pantheon.io/data-subject-request" }, "Data Subject Request"),
|
|
11090
11028
|
cookiePolicy: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Cookie Policy"),
|
|
11091
11029
|
termsOfUse: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Terms of Use"),
|
|
11092
11030
|
acceptableUse: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Acceptable Use Policy"),
|
|
11093
11031
|
accessibilityStatement: /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/accessibility-statement" }, "Accessibility Statement")
|
|
11094
|
-
},
|
|
11032
|
+
}, eo = (e) => typeof e == "string", to = ({ as: t = "div", children: n, className: r, containerWidth: i = "full", hasTopBorder: a, legalLinks: o = [
|
|
11095
11033
|
"privacy",
|
|
11096
11034
|
"dataSubjectRequest",
|
|
11097
11035
|
"cookiePolicy",
|
|
@@ -11108,8 +11046,8 @@ var Ur = {
|
|
|
11108
11046
|
r ?? ""
|
|
11109
11047
|
]),
|
|
11110
11048
|
...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
|
-
},
|
|
11049
|
+
}, /* @__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)))));
|
|
11050
|
+
}, no = ({ className: t, option: n, ...r }) => {
|
|
11113
11051
|
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
11052
|
n.status === "active" && (l = "Active", u = "success"), n.status === "frozen" && (l = "Frozen", u = "frozen"), n.status === "restricted" && (l = "Restricted", u = "critical");
|
|
11115
11053
|
let d = /* @__PURE__ */ e.createElement(xn, {
|
|
@@ -11132,7 +11070,7 @@ var Ur = {
|
|
|
11132
11070
|
className: `${i}__status`,
|
|
11133
11071
|
style: { pointerEvents: "none" }
|
|
11134
11072
|
}, d));
|
|
11135
|
-
},
|
|
11073
|
+
}, ro = ({ className: t, disabled: n = !1, id: r, isLoading: i = !1, label: a = "Search sites", labelStrings: o = {
|
|
11136
11074
|
clearButton: "Clear input text",
|
|
11137
11075
|
inputInstructions: "Type to search options"
|
|
11138
11076
|
}, loadingText: s = "Loading results...", noResultsText: c = "No results found", onFocus: l, onOptionSelect: u, placeholder: d = "Search sites", siteList: f, ...p }) => {
|
|
@@ -11144,7 +11082,7 @@ var Ur = {
|
|
|
11144
11082
|
id: n,
|
|
11145
11083
|
label: i,
|
|
11146
11084
|
value: r ?? i,
|
|
11147
|
-
optionDisplay: /* @__PURE__ */ e.createElement(
|
|
11085
|
+
optionDisplay: /* @__PURE__ */ e.createElement(no, { option: t }),
|
|
11148
11086
|
siteData: t
|
|
11149
11087
|
};
|
|
11150
11088
|
});
|
|
@@ -11152,7 +11090,7 @@ var Ur = {
|
|
|
11152
11090
|
className: Z([_, t ?? ""]),
|
|
11153
11091
|
id: r,
|
|
11154
11092
|
...p
|
|
11155
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${_}__inner` }, /* @__PURE__ */ e.createElement(
|
|
11093
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${_}__inner` }, /* @__PURE__ */ e.createElement(ni, {
|
|
11156
11094
|
hasClearButton: !0,
|
|
11157
11095
|
hasSearchShortcut: !0,
|
|
11158
11096
|
className: `${_}__combobox`,
|
|
@@ -11173,7 +11111,7 @@ var Ur = {
|
|
|
11173
11111
|
};
|
|
11174
11112
|
//#endregion
|
|
11175
11113
|
//#region src/components/SortableList/sortable-utils.ts
|
|
11176
|
-
function
|
|
11114
|
+
function io(e, t, n = null, r = 0, i = []) {
|
|
11177
11115
|
return e.reduce((e, a, o) => {
|
|
11178
11116
|
let s = !!a.children?.length, c = t.has(a.id);
|
|
11179
11117
|
return e.push({
|
|
@@ -11185,10 +11123,10 @@ function ao(e, t, n = null, r = 0, i = []) {
|
|
|
11185
11123
|
index: o,
|
|
11186
11124
|
isExpanded: c,
|
|
11187
11125
|
parentId: n
|
|
11188
|
-
}), s && c && a.children && e.push(...
|
|
11126
|
+
}), s && c && a.children && e.push(...io(a.children, t, a.id, r + 1, [...i, a.id])), e;
|
|
11189
11127
|
}, []);
|
|
11190
11128
|
}
|
|
11191
|
-
function
|
|
11129
|
+
function ao(e) {
|
|
11192
11130
|
let t = /* @__PURE__ */ new Map(), n = new Set(e.map((e) => e.id)), r = [];
|
|
11193
11131
|
for (let i of e) {
|
|
11194
11132
|
let e = i.data.children ?? [], a = e.length > 0 && !e.some((e) => n.has(e.id)), o = {
|
|
@@ -11201,28 +11139,28 @@ function oo(e) {
|
|
|
11201
11139
|
e && (e.children || (e.children = []), e.children.push(o));
|
|
11202
11140
|
}
|
|
11203
11141
|
}
|
|
11204
|
-
return
|
|
11142
|
+
return oo(r);
|
|
11205
11143
|
}
|
|
11206
|
-
function
|
|
11144
|
+
function oo(e) {
|
|
11207
11145
|
return e.map((e) => {
|
|
11208
11146
|
if (e.children?.length) return {
|
|
11209
11147
|
...e,
|
|
11210
|
-
children:
|
|
11148
|
+
children: oo(e.children)
|
|
11211
11149
|
};
|
|
11212
11150
|
let { children: t, ...n } = e;
|
|
11213
11151
|
return n;
|
|
11214
11152
|
});
|
|
11215
11153
|
}
|
|
11216
|
-
function
|
|
11154
|
+
function so(e, t) {
|
|
11217
11155
|
for (let n of e) {
|
|
11218
11156
|
if (n.id === t) return n;
|
|
11219
11157
|
if (n.children) {
|
|
11220
|
-
let e =
|
|
11158
|
+
let e = so(n.children, t);
|
|
11221
11159
|
if (e) return e;
|
|
11222
11160
|
}
|
|
11223
11161
|
}
|
|
11224
11162
|
}
|
|
11225
|
-
function
|
|
11163
|
+
function co(e, t, n, r, i, a, o) {
|
|
11226
11164
|
let s = e.findIndex((e) => e.id === n);
|
|
11227
11165
|
if (s === -1) return 0;
|
|
11228
11166
|
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 +11168,7 @@ function lo(e, t, n, r, i, a, o) {
|
|
|
11230
11168
|
}
|
|
11231
11169
|
//#endregion
|
|
11232
11170
|
//#region src/components/SortableList/SortableListHeader.tsx
|
|
11233
|
-
var
|
|
11171
|
+
var lo = ({ children: t, className: n, columns: r, ...i }) => {
|
|
11234
11172
|
if (!r && !t) return null;
|
|
11235
11173
|
let a = r ? {
|
|
11236
11174
|
display: "grid",
|
|
@@ -11251,13 +11189,13 @@ var uo = ({ children: t, className: n, columns: r, ...i }) => {
|
|
|
11251
11189
|
};
|
|
11252
11190
|
//#endregion
|
|
11253
11191
|
//#region src/components/SortableList/useSortableTree.ts
|
|
11254
|
-
function
|
|
11192
|
+
function uo({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r }) {
|
|
11255
11193
|
let i = n !== void 0, [a, o] = g(() => n ?? e ?? []), [s, l] = g(/* @__PURE__ */ new Set()), u = h(null), d = h(t);
|
|
11256
11194
|
t && !d.current && (u.current = {
|
|
11257
11195
|
items: i ? n : a,
|
|
11258
11196
|
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(() =>
|
|
11197
|
+
}), 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.");
|
|
11198
|
+
let f = i ? n : a, p = m(() => io(f, s), [f, s]), _ = m(() => p.map((e) => e.id), [p]), v = c((e) => {
|
|
11261
11199
|
l((t) => {
|
|
11262
11200
|
let n = new Set(t);
|
|
11263
11201
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
@@ -11275,7 +11213,7 @@ function fo({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r })
|
|
|
11275
11213
|
}, []),
|
|
11276
11214
|
flatNodes: p,
|
|
11277
11215
|
handleReorder: c((e) => {
|
|
11278
|
-
let t =
|
|
11216
|
+
let t = ao(e);
|
|
11279
11217
|
i || o(t), r?.(t);
|
|
11280
11218
|
}, [i, r]),
|
|
11281
11219
|
resetToSnapshot: c(() => {
|
|
@@ -11287,24 +11225,24 @@ function fo({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r })
|
|
|
11287
11225
|
toggleExpand: v
|
|
11288
11226
|
};
|
|
11289
11227
|
}
|
|
11290
|
-
var
|
|
11291
|
-
function
|
|
11292
|
-
|
|
11228
|
+
var fo = /* @__PURE__ */ new Set();
|
|
11229
|
+
function po(e) {
|
|
11230
|
+
fo.has(e) || (fo.add(e), console.warn(e));
|
|
11293
11231
|
}
|
|
11294
11232
|
//#endregion
|
|
11295
11233
|
//#region src/components/SortableList/SortableList.tsx
|
|
11296
|
-
var
|
|
11234
|
+
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
11235
|
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
11236
|
if (_ > 0 && (e.key === "ArrowLeft" || e.key === "ArrowRight")) {
|
|
11299
11237
|
e.preventDefault();
|
|
11300
11238
|
let n = e.key === "ArrowRight" ? 1 : -1, r = B.current, i = Math.max(-_, Math.min(_, r + n)), a = i - r;
|
|
11301
11239
|
return B.current = i, z(i), {
|
|
11302
|
-
x: t.currentCoordinates.x + a *
|
|
11240
|
+
x: t.currentCoordinates.x + a * mo,
|
|
11303
11241
|
y: t.currentCoordinates.y
|
|
11304
11242
|
};
|
|
11305
11243
|
}
|
|
11306
11244
|
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 } =
|
|
11245
|
+
}, [_]), G = b === "always" || b === "toggle" && (l ?? !1), { currentItems: K, expandItem: q, flatNodes: J, handleReorder: ee, resetToSnapshot: te, sortableIds: ne, toggleExpand: re } = uo({
|
|
11308
11246
|
defaultItems: a,
|
|
11309
11247
|
isDragEnabled: G,
|
|
11310
11248
|
items: p,
|
|
@@ -11331,9 +11269,9 @@ var ho = 24, go = { droppable: { strategy: qe.Always } }, _o = o(function({ chil
|
|
|
11331
11269
|
oe,
|
|
11332
11270
|
ae,
|
|
11333
11271
|
j
|
|
11334
|
-
]).size > 0, le = m(() => T ? J.find((e) => e.id === T) ?? null : null, [T, J]), ue = m(() => T ?
|
|
11272
|
+
]).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
11273
|
let e = le?.depth ?? 0;
|
|
11336
|
-
return !T || !j || O || _ === 0 ? e :
|
|
11274
|
+
return !T || !j || O || _ === 0 ? e : co(J, String(T), String(j), V * mo, mo, _);
|
|
11337
11275
|
}, [
|
|
11338
11276
|
T,
|
|
11339
11277
|
le,
|
|
@@ -11345,7 +11283,7 @@ var ho = 24, go = { droppable: { strategy: qe.Always } }, _o = o(function({ chil
|
|
|
11345
11283
|
]), fe = m(() => {
|
|
11346
11284
|
if (!T || O || de === 0 || j && oe(j)) return null;
|
|
11347
11285
|
let e = J.findIndex((e) => e.id === T);
|
|
11348
|
-
return e === -1 ? null :
|
|
11286
|
+
return e === -1 ? null : _o(J, e, de);
|
|
11349
11287
|
}, [
|
|
11350
11288
|
T,
|
|
11351
11289
|
J,
|
|
@@ -11391,19 +11329,19 @@ var ho = 24, go = { droppable: { strategy: qe.Always } }, _o = o(function({ chil
|
|
|
11391
11329
|
}, [J, ae]), ge = c((e) => {
|
|
11392
11330
|
let t = e.delta.x;
|
|
11393
11331
|
if (P.current = t, A.current || _ === 0) return;
|
|
11394
|
-
let n = Math.floor(t /
|
|
11395
|
-
(n > r || n < r && t < r *
|
|
11332
|
+
let n = Math.floor(t / mo), r = U.current;
|
|
11333
|
+
(n > r || n < r && t < r * mo - mo * .4) && (U.current = n, H(n));
|
|
11396
11334
|
}, [_]), _e = c((e) => {
|
|
11397
11335
|
let { active: t, over: n } = e, r = A.current, i = B.current, a = U.current;
|
|
11398
11336
|
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 *
|
|
11337
|
+
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
11338
|
if (r && i > 0 && c && o > 0 && (l = J[o - 1].id), !l || t.id === l) {
|
|
11401
11339
|
if (o === -1) return;
|
|
11402
11340
|
let e = J[o];
|
|
11403
11341
|
if (!e) return;
|
|
11404
|
-
let n =
|
|
11342
|
+
let n = co(J, String(t.id), String(t.id), s, mo, _);
|
|
11405
11343
|
if (n === e.depth) return;
|
|
11406
|
-
let r = [...J], [i] = r.splice(o, 1), a =
|
|
11344
|
+
let r = [...J], [i] = r.splice(o, 1), a = _o(r, o, n);
|
|
11407
11345
|
if (a && X.has(a)) return;
|
|
11408
11346
|
let c = {
|
|
11409
11347
|
...i,
|
|
@@ -11425,9 +11363,9 @@ var ho = 24, go = { droppable: { strategy: qe.Always } }, _o = o(function({ chil
|
|
|
11425
11363
|
let e = J[u];
|
|
11426
11364
|
g = Math.min(e.depth + 1, _), v = String(l);
|
|
11427
11365
|
} else {
|
|
11428
|
-
g =
|
|
11366
|
+
g = co(d, String(t.id), String(l), s, mo, _, p.depth);
|
|
11429
11367
|
let e = d[h];
|
|
11430
|
-
v = e && e.depth === g - 1 ? String(l) :
|
|
11368
|
+
v = e && e.depth === g - 1 ? String(l) : _o(d, h, g);
|
|
11431
11369
|
}
|
|
11432
11370
|
if (v && X.has(v)) return;
|
|
11433
11371
|
let y = {
|
|
@@ -11450,24 +11388,24 @@ var ho = 24, go = { droppable: { strategy: qe.Always } }, _o = o(function({ chil
|
|
|
11450
11388
|
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
11389
|
}, [q]), ye = m(() => ({
|
|
11452
11390
|
onDragStart({ active: e }) {
|
|
11453
|
-
let t = J.find((t) => t.id === e.id), n =
|
|
11391
|
+
let t = J.find((t) => t.id === e.id), n = so(K, String(e.id));
|
|
11454
11392
|
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
11393
|
},
|
|
11456
11394
|
onDragOver({ active: e, over: t }) {
|
|
11457
11395
|
if (!t) return;
|
|
11458
11396
|
let n = J.findIndex((e) => e.id === t.id);
|
|
11459
11397
|
if (n === -1) return;
|
|
11460
|
-
let r =
|
|
11398
|
+
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
11399
|
return `Moving ${i}. Target position: ${n + 1} of ${J.length} at depth ${a}.`;
|
|
11462
11400
|
},
|
|
11463
11401
|
onDragEnd({ active: e, over: t }) {
|
|
11464
|
-
let n =
|
|
11402
|
+
let n = so(K, String(e.id)), r = n ? o(n) : String(e.id);
|
|
11465
11403
|
if (!t || e.id === t.id) return `${r} dropped. No change in position.`;
|
|
11466
|
-
let i = J.findIndex((e) => e.id === t.id), a =
|
|
11404
|
+
let i = J.findIndex((e) => e.id === t.id), a = co(J, String(e.id), String(t.id), P.current, mo, _);
|
|
11467
11405
|
return `${r} dropped at position ${i + 1} of ${J.length} at depth ${a}.`;
|
|
11468
11406
|
},
|
|
11469
11407
|
onDragCancel({ active: e }) {
|
|
11470
|
-
let t = J.find((t) => t.id === e.id), n =
|
|
11408
|
+
let t = J.find((t) => t.id === e.id), n = so(K, String(e.id));
|
|
11471
11409
|
return `Sorting cancelled. ${n ? o(n) : String(e.id)} returned to position ${t ? J.indexOf(t) + 1 : "?"} of ${J.length}.`;
|
|
11472
11410
|
}
|
|
11473
11411
|
}), [
|
|
@@ -11475,14 +11413,14 @@ var ho = 24, go = { droppable: { strategy: qe.Always } }, _o = o(function({ chil
|
|
|
11475
11413
|
J,
|
|
11476
11414
|
o,
|
|
11477
11415
|
_
|
|
11478
|
-
]), be = { columns: i }, xe = t.map(n, (t) => s(t) && t.type ===
|
|
11416
|
+
]), be = { columns: i }, xe = t.map(n, (t) => s(t) && t.type === lo ? e.cloneElement(t, be) : t);
|
|
11479
11417
|
return /* @__PURE__ */ e.createElement(We, {
|
|
11480
11418
|
accessibility: {
|
|
11481
11419
|
announcements: ye,
|
|
11482
11420
|
...x ? { screenReaderInstructions: { draggable: x } } : {}
|
|
11483
11421
|
},
|
|
11484
11422
|
collisionDetection: me,
|
|
11485
|
-
measuring:
|
|
11423
|
+
measuring: ho,
|
|
11486
11424
|
onDragCancel: ve,
|
|
11487
11425
|
onDragEnd: _e,
|
|
11488
11426
|
onDragMove: ge,
|
|
@@ -11557,14 +11495,14 @@ var ho = 24, go = { droppable: { strategy: qe.Always } }, _o = o(function({ chil
|
|
|
11557
11495
|
return s(a) ? e.cloneElement(a, o) : a;
|
|
11558
11496
|
})()) : null));
|
|
11559
11497
|
});
|
|
11560
|
-
function
|
|
11498
|
+
function _o(e, t, n) {
|
|
11561
11499
|
if (n === 0) return null;
|
|
11562
11500
|
for (let r = t - 1; r >= 0; r--) if (e[r].depth === n - 1) return e[r].id;
|
|
11563
11501
|
return null;
|
|
11564
11502
|
}
|
|
11565
11503
|
//#endregion
|
|
11566
11504
|
//#region src/components/SortableList/SortableRow.tsx
|
|
11567
|
-
var
|
|
11505
|
+
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
11506
|
let { attributes: g, isDragging: _, listeners: v, setNodeRef: y, transform: b, transition: x } = et({
|
|
11569
11507
|
attributes: {
|
|
11570
11508
|
role: "listitem",
|
|
@@ -11619,11 +11557,11 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11619
11557
|
key: t.id,
|
|
11620
11558
|
className: `${w}__cell`
|
|
11621
11559
|
}, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, t.label, ": "), j[t.id] ?? null)) : t));
|
|
11622
|
-
},
|
|
11560
|
+
}, yo = [
|
|
11623
11561
|
"default",
|
|
11624
11562
|
"working",
|
|
11625
11563
|
"checked"
|
|
11626
|
-
],
|
|
11564
|
+
], bo = ({ alignment: t = "left", className: n, componentWidth: r, labelStrings: i = {}, lastChecked: a, onCheck: o, state: s = "default", ...c }) => {
|
|
11627
11565
|
let l = {
|
|
11628
11566
|
checkForUpdates: "Check for updates",
|
|
11629
11567
|
checking: "Checking...",
|
|
@@ -11670,7 +11608,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11670
11608
|
triggerIconColor: "default",
|
|
11671
11609
|
triggerIconSize: "s"
|
|
11672
11610
|
}), t === "left" && g));
|
|
11673
|
-
},
|
|
11611
|
+
}, xo = ({ className: t, label: n = null, linkContent: r, type: i = "neutral", ...a }) => {
|
|
11674
11612
|
let o = "pds-status-indicator", c = `${o}--${i}`, l = /* @__PURE__ */ e.createElement(e.Fragment, null, i === "working" ? /* @__PURE__ */ e.createElement(bn, {
|
|
11675
11613
|
className: `${o}__spinner`,
|
|
11676
11614
|
size: "m"
|
|
@@ -11687,7 +11625,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11687
11625
|
]),
|
|
11688
11626
|
...a
|
|
11689
11627
|
}, r ? d : l);
|
|
11690
|
-
},
|
|
11628
|
+
}, So = ({ className: t, contentAlignment: n = "indented", layoutDirection: r = "vertical", steps: i, ...a }) => {
|
|
11691
11629
|
let o = "pds-step-list", s = `${o}--${n}`, c = r === "horizontal" ? `${o}--horizontal` : "", l = i.map(({ content: t, header: r }, i) => {
|
|
11692
11630
|
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
11631
|
return /* @__PURE__ */ e.createElement("li", {
|
|
@@ -11705,7 +11643,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11705
11643
|
style: r === "horizontal" ? { "--step-list-columns": i.length } : void 0,
|
|
11706
11644
|
...a
|
|
11707
11645
|
}, l);
|
|
11708
|
-
},
|
|
11646
|
+
}, Co = ({ className: t, steps: n, translatableLabels: r = {
|
|
11709
11647
|
step: "Step",
|
|
11710
11648
|
completed: "completed",
|
|
11711
11649
|
hasError: "has an error",
|
|
@@ -11769,7 +11707,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11769
11707
|
key: t.id,
|
|
11770
11708
|
className: `${o}__step`,
|
|
11771
11709
|
id: `${t.id}--mobile`
|
|
11772
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__progress-indicator` }, /* @__PURE__ */ e.createElement(
|
|
11710
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__progress-indicator` }, /* @__PURE__ */ e.createElement(Ya, {
|
|
11773
11711
|
innerLabel: n,
|
|
11774
11712
|
label: "Step progress",
|
|
11775
11713
|
percentage: i,
|
|
@@ -11794,7 +11732,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11794
11732
|
"data-steps": d,
|
|
11795
11733
|
...i
|
|
11796
11734
|
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__steps` }, m)));
|
|
11797
|
-
},
|
|
11735
|
+
}, wo = ({ _isFirstStep: t, backButton: n, forwardButton: r, hasError: i, id: a, isComplete: o, isCurrent: s, label: c, stepContent: l, ...u }) => {
|
|
11798
11736
|
let d = "pds-vert-stepper", f = `${d}__step`, p = [f];
|
|
11799
11737
|
return s && p.push(`${f}--current`), o && p.push(`${f}--complete`), i && p.push(`${f}--error`), /* @__PURE__ */ e.createElement("li", {
|
|
11800
11738
|
className: Z([...p]),
|
|
@@ -11820,14 +11758,14 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11820
11758
|
size: "s",
|
|
11821
11759
|
variant: "highlight"
|
|
11822
11760
|
})))));
|
|
11823
|
-
},
|
|
11761
|
+
}, To = ({ className: t, labelStrings: n = {
|
|
11824
11762
|
step: "Step",
|
|
11825
11763
|
completed: "completed",
|
|
11826
11764
|
hasError: "has an error"
|
|
11827
11765
|
}, steps: r, ...i }) => {
|
|
11828
11766
|
let a = "pds-vert-stepper", o = r.length, s = r.findIndex((e) => e.isCurrent), c = r.map((t, r) => {
|
|
11829
11767
|
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(
|
|
11768
|
+
return l && (d = `${n.step} ${i}, ${n.completed}`), u && (d = `${n.step} ${i}, ${n.hasError}`), /* @__PURE__ */ e.createElement(wo, {
|
|
11831
11769
|
key: `s${i}`,
|
|
11832
11770
|
_isFirstStep: c,
|
|
11833
11771
|
"aria-current": a ? "step" : null,
|
|
@@ -11848,7 +11786,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11848
11786
|
className: Z([a, t ?? ""]),
|
|
11849
11787
|
...i
|
|
11850
11788
|
}, /* @__PURE__ */ e.createElement("ol", { className: `${a}__steps` }, r && c));
|
|
11851
|
-
},
|
|
11789
|
+
}, 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
11790
|
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
11791
|
key: a ?? "",
|
|
11854
11792
|
order: a === void 0 ? "asc" : o
|
|
@@ -11938,19 +11876,19 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11938
11876
|
}, Je = () => {
|
|
11939
11877
|
let e = new Set(Oe);
|
|
11940
11878
|
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(
|
|
11879
|
+
}, Ye = (t) => /* @__PURE__ */ e.createElement("tr", { key: `skeleton-${t}` }, we && /* @__PURE__ */ e.createElement("td", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(kr, {
|
|
11942
11880
|
shape: "rounded",
|
|
11943
11881
|
size: {
|
|
11944
11882
|
height: 1,
|
|
11945
11883
|
width: 1
|
|
11946
11884
|
}
|
|
11947
|
-
})), r.map((n) => /* @__PURE__ */ e.createElement("td", { key: `skeleton-${t}-${n.id}` }, /* @__PURE__ */ e.createElement(
|
|
11885
|
+
})), r.map((n) => /* @__PURE__ */ e.createElement("td", { key: `skeleton-${t}-${n.id}` }, /* @__PURE__ */ e.createElement(kr, {
|
|
11948
11886
|
shape: "rounded",
|
|
11949
11887
|
size: { height: 1 }
|
|
11950
11888
|
})))), Xe = () => /* @__PURE__ */ e.createElement("tr", null, /* @__PURE__ */ e.createElement("td", {
|
|
11951
11889
|
className: "pds-table__empty-cell",
|
|
11952
11890
|
colSpan: r.length + +!!we
|
|
11953
|
-
}, f ?? /* @__PURE__ */ e.createElement(
|
|
11891
|
+
}, f ?? /* @__PURE__ */ e.createElement(pr, {
|
|
11954
11892
|
heading: p,
|
|
11955
11893
|
iconName: "emptySet",
|
|
11956
11894
|
message: _
|
|
@@ -11969,7 +11907,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11969
11907
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), Ne(t, i));
|
|
11970
11908
|
} : void 0,
|
|
11971
11909
|
tabIndex: a ? 0 : void 0
|
|
11972
|
-
}, we && /* @__PURE__ */ e.createElement("td", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(
|
|
11910
|
+
}, we && /* @__PURE__ */ e.createElement("td", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement($r, {
|
|
11973
11911
|
checked: Oe.has(i),
|
|
11974
11912
|
disabled: !s,
|
|
11975
11913
|
id: `${X}-row-${i}`,
|
|
@@ -11995,7 +11933,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11995
11933
|
"aria-busy": E,
|
|
11996
11934
|
className: Z([Y, t]),
|
|
11997
11935
|
...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(
|
|
11936
|
+
}, /* @__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
11937
|
checked: Ge,
|
|
12000
11938
|
id: X,
|
|
12001
11939
|
indeterminate: Ke,
|
|
@@ -12019,7 +11957,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12019
11957
|
})), /* @__PURE__ */ e.createElement("span", { className: Z([`${Y}__sort-button-bottom`, Ue(t.id, "bottom")]) }, /* @__PURE__ */ e.createElement(Q, {
|
|
12020
11958
|
iconName: "caretDown",
|
|
12021
11959
|
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(
|
|
11960
|
+
})))) : /* @__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
11961
|
autoWidth: !0,
|
|
12024
11962
|
id: ae,
|
|
12025
11963
|
label: V,
|
|
@@ -12031,7 +11969,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12031
11969
|
showLabel: !1,
|
|
12032
11970
|
size: "s",
|
|
12033
11971
|
value: String(Se)
|
|
12034
|
-
}), /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination-controls" }, /* @__PURE__ */ e.createElement(
|
|
11972
|
+
}), /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination-controls" }, /* @__PURE__ */ e.createElement(Ma, {
|
|
12035
11973
|
currentPage: ce ? i ?? 1 : me,
|
|
12036
11974
|
itemsPerPage: Se,
|
|
12037
11975
|
labelStrings: H,
|
|
@@ -12072,8 +12010,8 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12072
12010
|
size: "s",
|
|
12073
12011
|
variant: "standard"
|
|
12074
12012
|
}))))));
|
|
12075
|
-
return U ? /* @__PURE__ */ e.createElement(
|
|
12076
|
-
},
|
|
12013
|
+
return U ? /* @__PURE__ */ e.createElement(Fa, { padding: "none" }, et) : et;
|
|
12014
|
+
}, Do = [
|
|
12077
12015
|
" ",
|
|
12078
12016
|
"/",
|
|
12079
12017
|
".",
|
|
@@ -12091,7 +12029,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12091
12029
|
"=",
|
|
12092
12030
|
"|",
|
|
12093
12031
|
"~"
|
|
12094
|
-
],
|
|
12032
|
+
], Oo = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ko = (e) => {
|
|
12095
12033
|
let t = [];
|
|
12096
12034
|
return e.forEach((e) => {
|
|
12097
12035
|
let { id: n, innerText: r } = e;
|
|
@@ -12104,18 +12042,18 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12104
12042
|
title: r
|
|
12105
12043
|
});
|
|
12106
12044
|
}), t;
|
|
12107
|
-
},
|
|
12045
|
+
}, Ao = (e, t, n) => {
|
|
12108
12046
|
let [r, i] = g([]);
|
|
12109
12047
|
return u(() => {
|
|
12110
12048
|
let r = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = () => {
|
|
12111
12049
|
let e = Array.from(document.querySelectorAll(r));
|
|
12112
12050
|
e.forEach((e) => {
|
|
12113
|
-
|
|
12114
|
-
e.id.includes(t) && (e.id = e.id.replace(new RegExp(
|
|
12051
|
+
Do.forEach((t) => {
|
|
12052
|
+
e.id.includes(t) && (e.id = e.id.replace(new RegExp(Oo(t), "g"), "-"));
|
|
12115
12053
|
});
|
|
12116
12054
|
}), e.forEach((e, t) => {
|
|
12117
12055
|
e.id || (e.id = `${n}-item-${t}`);
|
|
12118
|
-
}), i(
|
|
12056
|
+
}), i(ko(e));
|
|
12119
12057
|
};
|
|
12120
12058
|
a();
|
|
12121
12059
|
let o = document.getElementById(e);
|
|
@@ -12131,7 +12069,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12131
12069
|
t,
|
|
12132
12070
|
n
|
|
12133
12071
|
]), { nestedHeadings: r };
|
|
12134
|
-
},
|
|
12072
|
+
}, jo = (e, t) => {
|
|
12135
12073
|
let [n, r] = g(void 0), i = h({});
|
|
12136
12074
|
return u(() => {
|
|
12137
12075
|
let n = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = Array.from(document.querySelectorAll(n));
|
|
@@ -12150,7 +12088,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12150
12088
|
o.disconnect(), r(void 0);
|
|
12151
12089
|
};
|
|
12152
12090
|
}, [e, t]), n;
|
|
12153
|
-
},
|
|
12091
|
+
}, 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
12092
|
key: r.id,
|
|
12155
12093
|
className: `${n}__list-item`
|
|
12156
12094
|
}, /* @__PURE__ */ e.createElement("a", {
|
|
@@ -12166,8 +12104,8 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12166
12104
|
className: Z([`${n}__link`, r.id === t ? `${n}__link--active` : null]),
|
|
12167
12105
|
href: `#${r.id}`,
|
|
12168
12106
|
onClick: (e) => i(e, r.id)
|
|
12169
|
-
}, r.title))))))),
|
|
12170
|
-
let u = "pds-toc", { nestedHeadings: f } =
|
|
12107
|
+
}, 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 }) => {
|
|
12108
|
+
let u = "pds-toc", { nestedHeadings: f } = Ao(c, o, d()), p = jo(c, o), m = (e) => {
|
|
12171
12109
|
typeof window < "u" && window.location.hash !== `#${e}` && window.history.pushState({}, "", `#${e}`);
|
|
12172
12110
|
}, h = (e) => {
|
|
12173
12111
|
document.querySelector(`#${e}`)?.scrollIntoView({
|
|
@@ -12185,13 +12123,13 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12185
12123
|
baseClass: u,
|
|
12186
12124
|
className: `${s ? "" : "visually-hidden"}`,
|
|
12187
12125
|
level: i
|
|
12188
|
-
}, a), /* @__PURE__ */ e.createElement(
|
|
12126
|
+
}, a), /* @__PURE__ */ e.createElement(Mo, {
|
|
12189
12127
|
activeID: p,
|
|
12190
12128
|
baseClass: u,
|
|
12191
12129
|
headings: f,
|
|
12192
12130
|
onLinkClick: g
|
|
12193
12131
|
}));
|
|
12194
|
-
},
|
|
12132
|
+
}, Po = ({ ariaLabel: t, className: n, defaultSelected: r = 0, onActiveTabChange: i = () => {}, selectedTab: a, tabs: o, ...s }) => {
|
|
12195
12133
|
let c = "pds-tabs", [l, d] = g(a ?? r);
|
|
12196
12134
|
u(() => {
|
|
12197
12135
|
a !== void 0 && d(a);
|
|
@@ -12305,7 +12243,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12305
12243
|
className: `${c}__panel-content`,
|
|
12306
12244
|
hidden: o !== l
|
|
12307
12245
|
}, r)))));
|
|
12308
|
-
},
|
|
12246
|
+
}, Fo = [
|
|
12309
12247
|
"orange",
|
|
12310
12248
|
"stone",
|
|
12311
12249
|
"gold",
|
|
@@ -12319,7 +12257,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12319
12257
|
"magenta",
|
|
12320
12258
|
"rose",
|
|
12321
12259
|
"red"
|
|
12322
|
-
],
|
|
12260
|
+
], Io = [
|
|
12323
12261
|
"orange-solid",
|
|
12324
12262
|
"teal-solid",
|
|
12325
12263
|
"indigo-solid",
|
|
@@ -12329,14 +12267,14 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12329
12267
|
"lime-solid",
|
|
12330
12268
|
"sky-solid",
|
|
12331
12269
|
"slate-solid"
|
|
12332
|
-
],
|
|
12270
|
+
], Lo = [
|
|
12333
12271
|
"success-solid",
|
|
12334
12272
|
"warning-solid",
|
|
12335
12273
|
"critical-solid",
|
|
12336
12274
|
"info-solid",
|
|
12337
12275
|
"discovery-solid"
|
|
12338
|
-
],
|
|
12339
|
-
let [f, p] = g(!0), m = "pds-tag", h = c ? `${m}--${c}` : `${m}--${
|
|
12276
|
+
], 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 }) => {
|
|
12277
|
+
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
12278
|
p((e) => !e);
|
|
12341
12279
|
}, b, x, S;
|
|
12342
12280
|
if (r && !n && s(r)) {
|
|
@@ -12358,7 +12296,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12358
12296
|
}, /* @__PURE__ */ e.createElement("span", {
|
|
12359
12297
|
className: `${m}__label`,
|
|
12360
12298
|
title: l
|
|
12361
|
-
}, u > 0 ?
|
|
12299
|
+
}, u > 0 ? Vo(l, u) : l), n ? /* @__PURE__ */ e.createElement("button", {
|
|
12362
12300
|
"aria-label": `${a}: ${l}`,
|
|
12363
12301
|
className: `${m}__remove`,
|
|
12364
12302
|
onClick: () => {
|
|
@@ -12370,7 +12308,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12370
12308
|
iconName: "xmark",
|
|
12371
12309
|
size: "m"
|
|
12372
12310
|
})) : null);
|
|
12373
|
-
},
|
|
12311
|
+
}, Uo = ({ backgroundColor: t = "transparent", children: n, className: r, padding: i = "none", ...a }) => {
|
|
12374
12312
|
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
12313
|
return /* @__PURE__ */ e.createElement("div", {
|
|
12376
12314
|
className: Z([
|
|
@@ -12381,7 +12319,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12381
12319
|
]),
|
|
12382
12320
|
...a
|
|
12383
12321
|
}, /* @__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
|
-
},
|
|
12322
|
+
}, Wo = () => {
|
|
12385
12323
|
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
12324
|
return u(() => {
|
|
12387
12325
|
if (!e) return;
|
|
@@ -12392,7 +12330,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12392
12330
|
window.removeEventListener("resize", n);
|
|
12393
12331
|
};
|
|
12394
12332
|
}, []), n;
|
|
12395
|
-
},
|
|
12333
|
+
}, 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
12334
|
let [j, M] = g(l || !1);
|
|
12397
12335
|
u(() => {
|
|
12398
12336
|
M(l || !1);
|
|
@@ -12414,7 +12352,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12414
12352
|
return;
|
|
12415
12353
|
}
|
|
12416
12354
|
M(!j);
|
|
12417
|
-
}, U =
|
|
12355
|
+
}, U = Wo();
|
|
12418
12356
|
u(() => {
|
|
12419
12357
|
U === "sm" && !j ? (V.current = !0, x ? x() : M(!0)) : U !== "sm" && V.current && (V.current = !1, x ? x() : M(!1));
|
|
12420
12358
|
}, [U]);
|
|
@@ -12506,10 +12444,10 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12506
12444
|
n ?? ""
|
|
12507
12445
|
]),
|
|
12508
12446
|
...A
|
|
12509
|
-
}, /* @__PURE__ */ e.createElement(
|
|
12447
|
+
}, /* @__PURE__ */ e.createElement(Ni, {
|
|
12510
12448
|
destination: I,
|
|
12511
12449
|
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(
|
|
12450
|
+
}), 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
12451
|
...i,
|
|
12514
12452
|
isOpen: c,
|
|
12515
12453
|
placement: "left",
|
|
@@ -12517,7 +12455,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12517
12455
|
!e && c && b && b();
|
|
12518
12456
|
}
|
|
12519
12457
|
}, r));
|
|
12520
|
-
},
|
|
12458
|
+
}, Ko = ({ children: t, className: n, sidebarWidth: r = "18%", sidebarWidthMax: i = 20, sidebarWidthMin: a = 15, style: o, ...s }) => {
|
|
12521
12459
|
let c = "pds-docs-layout", l = {
|
|
12522
12460
|
"--docs-sidebar-max-width": `${i}rem`,
|
|
12523
12461
|
"--docs-sidebar-min-width": `${a}rem`,
|
|
@@ -12535,7 +12473,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12535
12473
|
},
|
|
12536
12474
|
...s
|
|
12537
12475
|
}, 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
|
-
},
|
|
12476
|
+
}, 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
12477
|
let u = "pds-sidebar-layout", d = r === "none" ? "0" : `var(--pds-spacing-${r})`, f = ft(t);
|
|
12540
12478
|
return /* @__PURE__ */ e.createElement("div", {
|
|
12541
12479
|
className: Z([u, n ?? ""]),
|
|
@@ -12549,8 +12487,8 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12549
12487
|
},
|
|
12550
12488
|
...l
|
|
12551
12489
|
}, /* @__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(
|
|
12490
|
+
}, Jo = ({ children: t, className: n, formWidth: r = "standard", hasPanel: i = !1, ...a }) => {
|
|
12491
|
+
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
12492
|
className: Z([
|
|
12555
12493
|
l,
|
|
12556
12494
|
u,
|
|
@@ -12559,8 +12497,8 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12559
12497
|
width: "wide",
|
|
12560
12498
|
...a
|
|
12561
12499
|
}, 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
|
-
},
|
|
12500
|
+
return i ? /* @__PURE__ */ e.createElement(Fa, null, d) : d;
|
|
12501
|
+
}, Yo = ({ children: t, className: n, gridGap: r = "xl", verticalAlign: i = "start", ...a }) => {
|
|
12564
12502
|
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
12503
|
l["first-item"],
|
|
12566
12504
|
l["second-item"],
|
|
@@ -12578,7 +12516,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12578
12516
|
key: n,
|
|
12579
12517
|
className: "pds-grid-item pds-grid-item--sm-12 pds-grid-item--md-4 pds-grid-item--lg-4"
|
|
12580
12518
|
}, t)));
|
|
12581
|
-
},
|
|
12519
|
+
}, Xo = ({ children: t, className: n, gridGap: r = "xl", layoutVariant: i = "equal", verticalAlign: a = "start", ...o }) => {
|
|
12582
12520
|
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
12521
|
switch (i) {
|
|
12584
12522
|
case "equal":
|
|
@@ -12599,7 +12537,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12599
12537
|
]),
|
|
12600
12538
|
...o
|
|
12601
12539
|
}, /* @__PURE__ */ e.createElement("div", { className: m.join(" ").trim() }, _), /* @__PURE__ */ e.createElement("div", { className: h.join(" ").trim() }, v));
|
|
12602
|
-
},
|
|
12540
|
+
}, 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
12541
|
let _ = "pds-flex", v = `${_}-container`, y = {
|
|
12604
12542
|
"--pds-flex-align-content": t,
|
|
12605
12543
|
"--pds-flex-align-items": n,
|
|
@@ -12625,7 +12563,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12625
12563
|
},
|
|
12626
12564
|
...g
|
|
12627
12565
|
}, r);
|
|
12628
|
-
},
|
|
12566
|
+
}, Qo = (e) => {
|
|
12629
12567
|
let t = typeof window < "u", [n, r] = g(((e) => t ? window.matchMedia(e).matches : !1)(e));
|
|
12630
12568
|
return u(() => {
|
|
12631
12569
|
if (!t) return;
|
|
@@ -12634,20 +12572,20 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12634
12572
|
};
|
|
12635
12573
|
return r(n.matches), n.addEventListener ? (n.addEventListener("change", i), () => n.removeEventListener("change", i)) : (n.addListener(i), () => n.removeListener(i));
|
|
12636
12574
|
}, [e]), n;
|
|
12637
|
-
},
|
|
12575
|
+
}, $o = [
|
|
12638
12576
|
"light",
|
|
12639
12577
|
"dark",
|
|
12640
12578
|
"system"
|
|
12641
|
-
],
|
|
12579
|
+
], es = (e) => typeof e == "string" && $o.includes(e), ts = i(null), ns = {
|
|
12642
12580
|
resolvedTheme: "light",
|
|
12643
12581
|
setTheme: () => {},
|
|
12644
12582
|
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 =
|
|
12583
|
+
}, 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 }) => {
|
|
12584
|
+
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
12585
|
u(() => {
|
|
12648
12586
|
if (_(!0), !(d || !o || typeof window > "u")) try {
|
|
12649
12587
|
let e = window.localStorage.getItem(s);
|
|
12650
|
-
|
|
12588
|
+
es(e) && m(e);
|
|
12651
12589
|
} catch {}
|
|
12652
12590
|
}, []), u(() => {
|
|
12653
12591
|
typeof document > "u" || (i?.current ?? document.documentElement).setAttribute("data-theme", b);
|
|
@@ -12667,20 +12605,20 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12667
12605
|
]),
|
|
12668
12606
|
theme: v
|
|
12669
12607
|
};
|
|
12670
|
-
return /* @__PURE__ */ e.createElement(
|
|
12608
|
+
return /* @__PURE__ */ e.createElement(ts.Provider, { value: x }, f && /* @__PURE__ */ e.createElement("script", { dangerouslySetInnerHTML: { __html: rs({
|
|
12671
12609
|
defaultTheme: n,
|
|
12672
12610
|
storageKey: s
|
|
12673
12611
|
}) } }), t);
|
|
12674
|
-
},
|
|
12612
|
+
}, as = () => l(ts) ?? ns, os = ({ children: t, enableThemeSwitching: n = !1, mobileMaxWidth: r = 767, themeProps: i = {} }) => {
|
|
12675
12613
|
u(() => {
|
|
12676
12614
|
let e = document.documentElement, t = () => {
|
|
12677
12615
|
window.innerWidth <= r ? e.setAttribute("data-pds-mobile", "") : e.removeAttribute("data-pds-mobile");
|
|
12678
12616
|
};
|
|
12679
12617
|
return t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
|
|
12680
12618
|
}, [r]);
|
|
12681
|
-
let a = n ? /* @__PURE__ */ e.createElement(
|
|
12619
|
+
let a = n ? /* @__PURE__ */ e.createElement(is, i, t) : t;
|
|
12682
12620
|
return /* @__PURE__ */ e.createElement($t, null, a);
|
|
12683
|
-
},
|
|
12621
|
+
}, ss = ({ asContainer: t = !1, children: n, className: r, dense: i = !1, gap: a = "xl", mobileGap: o, stackBelow: s, ...c }) => {
|
|
12684
12622
|
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
12623
|
return /* @__PURE__ */ e.createElement("div", {
|
|
12686
12624
|
className: Z([
|
|
@@ -12694,7 +12632,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12694
12632
|
]),
|
|
12695
12633
|
...c
|
|
12696
12634
|
}, n);
|
|
12697
|
-
},
|
|
12635
|
+
}, cs = ({ children: t, className: n, rowSpanLg: r, rowSpanMd: i, rowSpanSm: a, rowSpanXl: o, spanLg: s, spanMd: c, spanSm: l, spanXl: u, ...d }) => {
|
|
12698
12636
|
let f = "pds-grid-item", p = [
|
|
12699
12637
|
l ? `${f}--sm-${l}` : null,
|
|
12700
12638
|
c ? `${f}--md-${c}` : null,
|
|
@@ -12713,7 +12651,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12713
12651
|
]),
|
|
12714
12652
|
...d
|
|
12715
12653
|
}, t);
|
|
12716
|
-
},
|
|
12654
|
+
}, ls = (e, t, n) => {
|
|
12717
12655
|
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
12656
|
r,
|
|
12719
12657
|
i,
|
|
@@ -12737,7 +12675,7 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12737
12675
|
m,
|
|
12738
12676
|
a
|
|
12739
12677
|
]), l;
|
|
12740
|
-
},
|
|
12678
|
+
}, us = () => {
|
|
12741
12679
|
let e = typeof window < "u", [t, n] = g(e && window.innerWidth !== void 0 ? window.innerWidth : 1024);
|
|
12742
12680
|
return u(() => {
|
|
12743
12681
|
if (!e) return;
|
|
@@ -12751,6 +12689,6 @@ var yo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12751
12689
|
}, []), t;
|
|
12752
12690
|
};
|
|
12753
12691
|
//#endregion
|
|
12754
|
-
export {
|
|
12692
|
+
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
12693
|
|
|
12756
12694
|
//# sourceMappingURL=index.js.map
|