@rte-ds/react 1.3.5 → 1.3.6
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/react-package.cjs +1 -1
- package/dist/react-package.js +486 -472
- package/package.json +1 -1
package/dist/react-package.js
CHANGED
|
@@ -2728,8 +2728,8 @@ const A = ({ name: C, size: e, color: t, appearance: n, ...l }) => {
|
|
|
2728
2728
|
if (I1(C)) {
|
|
2729
2729
|
const o = E3[C];
|
|
2730
2730
|
if (o) {
|
|
2731
|
-
const [s,
|
|
2732
|
-
return n === "filled" ? /* @__PURE__ */ r(
|
|
2731
|
+
const [s, i] = o;
|
|
2732
|
+
return n === "filled" ? /* @__PURE__ */ r(i, { width: e, height: e, fill: t, ...l }) : /* @__PURE__ */ r(s, { width: e, height: e, fill: t, ...l });
|
|
2733
2733
|
} else {
|
|
2734
2734
|
const s = R3[C];
|
|
2735
2735
|
return /* @__PURE__ */ r(s, { width: e, height: e, fill: t, ...l });
|
|
@@ -2759,12 +2759,12 @@ const le = "_badgeContainer_3v2tn_1", se = "_badge_3v2tn_1", ie = "_hidden_3v2tn
|
|
|
2759
2759
|
hidden: ie,
|
|
2760
2760
|
countOverflow: ce
|
|
2761
2761
|
}, C1 = z(
|
|
2762
|
-
({ badgeType: C = "brand", size: e = "m", content: t = "number", count: n, icon: l = "notification", children: o, ...s },
|
|
2762
|
+
({ badgeType: C = "brand", size: e = "m", content: t = "number", count: n, icon: l = "notification", children: o, ...s }, i) => {
|
|
2763
2763
|
var u;
|
|
2764
2764
|
if (t == "icon" && l && !I1(l))
|
|
2765
2765
|
return console.warn(`Badge: Invalid icon name "${l}". Please use a valid icon key.`), null;
|
|
2766
|
-
const
|
|
2767
|
-
return o ? /* @__PURE__ */ g("div", { ref:
|
|
2766
|
+
const c = v6(e), a = D3({ size: e, content: t, iconSize: c }), d = T3({ size: e, content: t, count: n }), v = h6({ size: e, content: t, count: n, iconSize: c }), h = d && ((u = r3(n)) == null ? void 0 : u.length) > 2;
|
|
2767
|
+
return o ? /* @__PURE__ */ g("div", { ref: i, className: n1.badgeContainer, ...s, children: [
|
|
2768
2768
|
/* @__PURE__ */ g(
|
|
2769
2769
|
"div",
|
|
2770
2770
|
{
|
|
@@ -2777,13 +2777,13 @@ const le = "_badgeContainer_3v2tn_1", se = "_badge_3v2tn_1", ie = "_hidden_3v2tn
|
|
|
2777
2777
|
h ? n1.countOverflow : ""
|
|
2778
2778
|
),
|
|
2779
2779
|
children: [
|
|
2780
|
-
a && /* @__PURE__ */ r(A, { name: l, className: n1.icon, size:
|
|
2780
|
+
a && /* @__PURE__ */ r(A, { name: l, className: n1.icon, size: c }),
|
|
2781
2781
|
d && /* @__PURE__ */ r("span", { className: n1.count, children: r3(n) }, n)
|
|
2782
2782
|
]
|
|
2783
2783
|
}
|
|
2784
2784
|
),
|
|
2785
2785
|
o
|
|
2786
|
-
] }) : /* @__PURE__ */ r("div", { ref:
|
|
2786
|
+
] }) : /* @__PURE__ */ r("div", { ref: i, className: n1.badgeContainer, ...s, children: /* @__PURE__ */ g(
|
|
2787
2787
|
"div",
|
|
2788
2788
|
{
|
|
2789
2789
|
"data-simple-badge": "true",
|
|
@@ -2796,7 +2796,7 @@ const le = "_badgeContainer_3v2tn_1", se = "_badge_3v2tn_1", ie = "_hidden_3v2tn
|
|
|
2796
2796
|
h ? n1.countOverflow : ""
|
|
2797
2797
|
),
|
|
2798
2798
|
children: [
|
|
2799
|
-
a && /* @__PURE__ */ r(A, { name: l, className: n1.icon, size:
|
|
2799
|
+
a && /* @__PURE__ */ r(A, { name: l, className: n1.icon, size: c }),
|
|
2800
2800
|
d && /* @__PURE__ */ r("span", { className: n1.count, children: r3(n) }, n)
|
|
2801
2801
|
]
|
|
2802
2802
|
}
|
|
@@ -2840,8 +2840,8 @@ const le = "_badgeContainer_3v2tn_1", se = "_badge_3v2tn_1", ie = "_hidden_3v2tn
|
|
|
2840
2840
|
onClick: l,
|
|
2841
2841
|
type: o = "button",
|
|
2842
2842
|
badgeContent: s,
|
|
2843
|
-
badgeCount:
|
|
2844
|
-
badgeType:
|
|
2843
|
+
badgeCount: i,
|
|
2844
|
+
badgeType: c,
|
|
2845
2845
|
badgeIcon: a,
|
|
2846
2846
|
icon: d,
|
|
2847
2847
|
iconPosition: v = "left",
|
|
@@ -2849,7 +2849,7 @@ const le = "_badgeContainer_3v2tn_1", se = "_badge_3v2tn_1", ie = "_hidden_3v2tn
|
|
|
2849
2849
|
iconAppearance: u,
|
|
2850
2850
|
...p
|
|
2851
2851
|
}, Z) => {
|
|
2852
|
-
const L =
|
|
2852
|
+
const L = i > 0 && s === "number" || s === "icon" && a, V = C === "s" ? 16 : C === "m" ? 20 : 24, B = /* @__PURE__ */ g(X, { children: [
|
|
2853
2853
|
d && v === "left" && /* @__PURE__ */ r(A, { name: d, size: V, color: h, appearance: u }),
|
|
2854
2854
|
/* @__PURE__ */ r("span", { "data-size": C, className: o3.label, children: e }),
|
|
2855
2855
|
d && v === "right" && /* @__PURE__ */ r(A, { name: d, size: V, color: h, appearance: u })
|
|
@@ -2857,10 +2857,10 @@ const le = "_badgeContainer_3v2tn_1", se = "_badge_3v2tn_1", ie = "_hidden_3v2tn
|
|
|
2857
2857
|
return L ? /* @__PURE__ */ r(
|
|
2858
2858
|
C1,
|
|
2859
2859
|
{
|
|
2860
|
-
badgeType:
|
|
2860
|
+
badgeType: c,
|
|
2861
2861
|
size: ae[C],
|
|
2862
2862
|
content: C === "s" ? "empty" : s,
|
|
2863
|
-
count:
|
|
2863
|
+
count: i,
|
|
2864
2864
|
icon: a,
|
|
2865
2865
|
children: /* @__PURE__ */ r(
|
|
2866
2866
|
"button",
|
|
@@ -2901,18 +2901,18 @@ const le = "_badgeContainer_3v2tn_1", se = "_badge_3v2tn_1", ie = "_hidden_3v2tn
|
|
|
2901
2901
|
type: l = "button",
|
|
2902
2902
|
name: o,
|
|
2903
2903
|
appearance: s,
|
|
2904
|
-
compactSpacing:
|
|
2905
|
-
badgeContent:
|
|
2904
|
+
compactSpacing: i,
|
|
2905
|
+
badgeContent: c,
|
|
2906
2906
|
badgeCount: a,
|
|
2907
2907
|
badgeType: d,
|
|
2908
2908
|
badgeIcon: v,
|
|
2909
2909
|
...h
|
|
2910
|
-
}, u) => I1(o) ? a > 0 &&
|
|
2910
|
+
}, u) => I1(o) ? a > 0 && c === "number" || c === "icon" && v ? /* @__PURE__ */ r(
|
|
2911
2911
|
C1,
|
|
2912
2912
|
{
|
|
2913
2913
|
badgeType: d,
|
|
2914
2914
|
size: C,
|
|
2915
|
-
content: C === "s" ? "empty" :
|
|
2915
|
+
content: C === "s" ? "empty" : c,
|
|
2916
2916
|
count: a,
|
|
2917
2917
|
icon: v,
|
|
2918
2918
|
children: /* @__PURE__ */ r(
|
|
@@ -2923,7 +2923,7 @@ const le = "_badgeContainer_3v2tn_1", se = "_badge_3v2tn_1", ie = "_hidden_3v2tn
|
|
|
2923
2923
|
className: R(f3["icon-button"], t),
|
|
2924
2924
|
"data-size": C,
|
|
2925
2925
|
"data-variant": e,
|
|
2926
|
-
"data-compact-spacing":
|
|
2926
|
+
"data-compact-spacing": i,
|
|
2927
2927
|
onClick: n,
|
|
2928
2928
|
...h,
|
|
2929
2929
|
children: /* @__PURE__ */ r(A, { name: o, appearance: s, size: Z3[C] })
|
|
@@ -2938,7 +2938,7 @@ const le = "_badgeContainer_3v2tn_1", se = "_badge_3v2tn_1", ie = "_hidden_3v2tn
|
|
|
2938
2938
|
className: R(f3["icon-button"], t),
|
|
2939
2939
|
"data-size": C,
|
|
2940
2940
|
"data-variant": e,
|
|
2941
|
-
"data-compact-spacing":
|
|
2941
|
+
"data-compact-spacing": i,
|
|
2942
2942
|
onClick: n,
|
|
2943
2943
|
...h,
|
|
2944
2944
|
children: /* @__PURE__ */ r(A, { name: o, appearance: s, size: Z3[C] })
|
|
@@ -2951,7 +2951,7 @@ const le = "_badgeContainer_3v2tn_1", se = "_badge_3v2tn_1", ie = "_hidden_3v2tn
|
|
|
2951
2951
|
"banner-content": "_banner-content_vvnzx_55",
|
|
2952
2952
|
"banner-title": "_banner-title_vvnzx_65",
|
|
2953
2953
|
"banner-message": "_banner-message_vvnzx_77"
|
|
2954
|
-
},
|
|
2954
|
+
}, br = z(
|
|
2955
2955
|
({
|
|
2956
2956
|
title: C,
|
|
2957
2957
|
message: e,
|
|
@@ -2960,8 +2960,8 @@ const le = "_badgeContainer_3v2tn_1", se = "_badge_3v2tn_1", ie = "_hidden_3v2tn
|
|
|
2960
2960
|
onClose: l,
|
|
2961
2961
|
position: o = "push",
|
|
2962
2962
|
actionCallback: s,
|
|
2963
|
-
actionLabel:
|
|
2964
|
-
className:
|
|
2963
|
+
actionLabel: i,
|
|
2964
|
+
className: c = "",
|
|
2965
2965
|
isOpen: a = !0,
|
|
2966
2966
|
...d
|
|
2967
2967
|
}, v) => {
|
|
@@ -2982,7 +2982,7 @@ const le = "_badgeContainer_3v2tn_1", se = "_badge_3v2tn_1", ie = "_hidden_3v2tn
|
|
|
2982
2982
|
"section",
|
|
2983
2983
|
{
|
|
2984
2984
|
role: p,
|
|
2985
|
-
className: R(S1.banner,
|
|
2985
|
+
className: R(S1.banner, c),
|
|
2986
2986
|
ref: v,
|
|
2987
2987
|
"data-type": t,
|
|
2988
2988
|
"data-position": o,
|
|
@@ -2994,7 +2994,7 @@ const le = "_badgeContainer_3v2tn_1", se = "_badge_3v2tn_1", ie = "_hidden_3v2tn
|
|
|
2994
2994
|
C && /* @__PURE__ */ r("span", { className: S1["banner-title"], children: C }),
|
|
2995
2995
|
e && /* @__PURE__ */ r("div", { className: S1["banner-message"], children: /* @__PURE__ */ r("span", { children: e }) })
|
|
2996
2996
|
] }),
|
|
2997
|
-
s &&
|
|
2997
|
+
s && i && /* @__PURE__ */ r(e3, { label: i, onClick: s, variant: "text", "aria-label": i, size: "s" }),
|
|
2998
2998
|
n && /* @__PURE__ */ r("div", { className: S1["banner-close-icon"], children: /* @__PURE__ */ r(d1, { variant: "neutral", name: "close", onClick: B, "aria-label": "close banner" }) })
|
|
2999
2999
|
]
|
|
3000
3000
|
}
|
|
@@ -3056,43 +3056,43 @@ const K3 = (C, e, t, n = 0, l = !1) => {
|
|
|
3056
3056
|
let o;
|
|
3057
3057
|
const s = C.getBoundingClientRect();
|
|
3058
3058
|
if (l) {
|
|
3059
|
-
const
|
|
3060
|
-
if (!
|
|
3059
|
+
const i = C.parentElement;
|
|
3060
|
+
if (!i)
|
|
3061
3061
|
return t;
|
|
3062
|
-
const
|
|
3062
|
+
const c = parseInt(getComputedStyle(e).getPropertyValue("max-width")), a = parseInt(getComputedStyle(e).getPropertyValue("max-height")), d = i.getBoundingClientRect();
|
|
3063
3063
|
o = {
|
|
3064
3064
|
top: s.top - d.top > a + n,
|
|
3065
|
-
right: d.right - s.right >
|
|
3065
|
+
right: d.right - s.right > c + n,
|
|
3066
3066
|
bottom: d.bottom - s.bottom >= a + n,
|
|
3067
|
-
left: s.left - d.left >
|
|
3067
|
+
left: s.left - d.left > c + n
|
|
3068
3068
|
};
|
|
3069
3069
|
} else {
|
|
3070
|
-
const
|
|
3070
|
+
const i = e.getBoundingClientRect();
|
|
3071
3071
|
o = {
|
|
3072
|
-
top:
|
|
3073
|
-
right:
|
|
3074
|
-
bottom:
|
|
3075
|
-
left:
|
|
3072
|
+
top: i.height + n < s.top,
|
|
3073
|
+
right: i.width + n < window.innerWidth - s.right,
|
|
3074
|
+
bottom: i.height + n < window.innerHeight - s.bottom,
|
|
3075
|
+
left: i.width + n < s.left
|
|
3076
3076
|
};
|
|
3077
3077
|
}
|
|
3078
3078
|
return o.top ? "top" : o.bottom ? "bottom" : o.left ? "left" : o.right ? "right" : t;
|
|
3079
3079
|
}, m3 = (C, e, t, n = 0, l = !1) => {
|
|
3080
|
-
const o = C.getBoundingClientRect(), s = e.getBoundingClientRect(),
|
|
3080
|
+
const o = C.getBoundingClientRect(), s = e.getBoundingClientRect(), i = {
|
|
3081
3081
|
top: s.height + n < o.top,
|
|
3082
3082
|
right: s.width + n < window.innerWidth - o.right,
|
|
3083
3083
|
bottom: s.height + n < window.innerHeight - o.bottom,
|
|
3084
3084
|
left: s.width + n < o.left
|
|
3085
3085
|
};
|
|
3086
|
-
return l ? He(
|
|
3086
|
+
return l ? He(i, t) : Ve(i, t);
|
|
3087
3087
|
}, He = (C, e) => C.right ? "right" : C.left ? "left" : C.bottom ? "bottom" : C.top ? "top" : e, Ve = (C, e) => C.bottom ? "bottom" : C.right ? "right" : C.left ? "left" : C.top ? "top" : e, g3 = (C, e, t) => {
|
|
3088
3088
|
const n = "center";
|
|
3089
3089
|
if (!C.parentElement)
|
|
3090
3090
|
return n;
|
|
3091
|
-
const o = C.getBoundingClientRect(), s = e.getBoundingClientRect(),
|
|
3091
|
+
const o = C.getBoundingClientRect(), s = e.getBoundingClientRect(), i = {
|
|
3092
3092
|
end: t === "top" || t === "bottom" ? o.right >= s.width : window.innerHeight - o.bottom >= s.height,
|
|
3093
3093
|
start: t === "top" || t === "bottom" ? window.innerWidth - o.left >= s.width : window.innerHeight - o.top >= s.height
|
|
3094
3094
|
};
|
|
3095
|
-
return
|
|
3095
|
+
return i.start ? "start" : i.end ? "end" : n;
|
|
3096
3096
|
}, t3 = (C, e, t, n = 0, l = "center") => {
|
|
3097
3097
|
const o = e.getBoundingClientRect(), s = t.getBoundingClientRect();
|
|
3098
3098
|
return C === "bottom" ? Le(o, s, n, l) : C === "left" ? Me(o, s, n, l) : C === "right" ? Ze(o, s, n, l) : fe(o, s, n, l);
|
|
@@ -3113,27 +3113,31 @@ const K3 = (C, e, t, n = 0, l = !1) => {
|
|
|
3113
3113
|
let o = 0;
|
|
3114
3114
|
return n === "start" ? o = C.left + window.scrollX : n === "end" ? o = C.right - e.width + window.scrollX : o = C.left + C.width / 2 - e.width / 2 + window.scrollX, { top: l, left: o };
|
|
3115
3115
|
}, e1 = " ", W = "Enter", A1 = "Tab", x3 = "Backspace", B3 = "Delete", X1 = "ArrowLeft", J1 = "ArrowRight", P1 = "ArrowUp", x1 = "ArrowDown", z1 = "Escape", q1 = () => {
|
|
3116
|
+
}, me = (C) => {
|
|
3117
|
+
if (!C || !(C instanceof HTMLElement)) return !1;
|
|
3118
|
+
const e = C.tagName.toLowerCase();
|
|
3119
|
+
return e === "input" || e === "textarea" || e === "select" || C.isContentEditable;
|
|
3116
3120
|
}, B1 = (C = {}, e = {}) => {
|
|
3117
3121
|
const { id: t, interactiveKeyCodes: n } = e, {
|
|
3118
3122
|
onKeyDown: l = q1,
|
|
3119
3123
|
onKeyUp: o = q1,
|
|
3120
3124
|
onBlur: s = q1,
|
|
3121
|
-
onFocus:
|
|
3122
|
-
} = C,
|
|
3125
|
+
onFocus: i = q1
|
|
3126
|
+
} = C, c = K(n ?? [e1, W]);
|
|
3123
3127
|
return { onKeyDown: (u) => {
|
|
3124
3128
|
var p;
|
|
3125
|
-
(p =
|
|
3129
|
+
me(u.target) || (p = c.current) != null && p.includes(u.key) && (!t || u.target.id === t) && (u.preventDefault(), l(u));
|
|
3126
3130
|
}, onKeyUp: (u) => {
|
|
3127
3131
|
var p;
|
|
3128
|
-
(p =
|
|
3132
|
+
(p = c.current) != null && p.includes(u.key) && (!t || u.target.id === t) && o(u);
|
|
3129
3133
|
}, onBlur: () => {
|
|
3130
3134
|
s();
|
|
3131
3135
|
}, onFocus: () => {
|
|
3132
|
-
|
|
3136
|
+
i();
|
|
3133
3137
|
} };
|
|
3134
|
-
},
|
|
3135
|
-
horizontal:
|
|
3136
|
-
vertical:
|
|
3138
|
+
}, xe = "_horizontal_1wa9l_1", Be = "_vertical_1wa9l_29", S3 = {
|
|
3139
|
+
horizontal: xe,
|
|
3140
|
+
vertical: Be
|
|
3137
3141
|
}, a1 = z(
|
|
3138
3142
|
({ orientation: C = "horizontal", thickness: e = "light", appearance: t = "default", endPoint: n = "round", ...l }, o) => C === "horizontal" ? /* @__PURE__ */ r(
|
|
3139
3143
|
"hr",
|
|
@@ -3166,19 +3170,19 @@ const K3 = (C, e, t, n = 0, l = !1) => {
|
|
|
3166
3170
|
return () => {
|
|
3167
3171
|
if (o && !s.length) {
|
|
3168
3172
|
e && (document.body.style.overflow = "unset");
|
|
3169
|
-
const
|
|
3170
|
-
|
|
3173
|
+
const i = o.querySelector("#overlay-root");
|
|
3174
|
+
i && o.removeChild(i);
|
|
3171
3175
|
}
|
|
3172
3176
|
};
|
|
3173
3177
|
}, [e]), t ? /* @__PURE__ */ r(X, { children: a6(C, t) }) : null;
|
|
3174
|
-
}, L3 = A3(void 0),
|
|
3178
|
+
}, L3 = A3(void 0), Se = ({
|
|
3175
3179
|
dropdownId: C,
|
|
3176
3180
|
closeRoot: e,
|
|
3177
3181
|
autoClose: t = !0,
|
|
3178
3182
|
children: n
|
|
3179
|
-
}) => /* @__PURE__ */ r(L3.Provider, { value: { dropdownId: C, closeRoot: e, autoClose: t }, children: n }),
|
|
3180
|
-
trigger:
|
|
3181
|
-
dropdown:
|
|
3183
|
+
}) => /* @__PURE__ */ r(L3.Provider, { value: { dropdownId: C, closeRoot: e, autoClose: t }, children: n }), be = "_trigger_19dwi_1", _e = "_dropdown_19dwi_13", _1 = {
|
|
3184
|
+
trigger: be,
|
|
3185
|
+
dropdown: _e,
|
|
3182
3186
|
"dropdown-menu-header": "_dropdown-menu-header_19dwi_39",
|
|
3183
3187
|
"dropdown-menu-content": "_dropdown-menu-content_19dwi_39",
|
|
3184
3188
|
"dropdown-menu-footer": "_dropdown-menu-footer_19dwi_39",
|
|
@@ -3187,7 +3191,7 @@ const K3 = (C, e, t, n = 0, l = !1) => {
|
|
|
3187
3191
|
var n;
|
|
3188
3192
|
const e = G3(C), t = e.findIndex((l) => l === document.activeElement);
|
|
3189
3193
|
t < e.length - 1 ? e[t + 1].focus() : (n = e[0]) == null || n.focus();
|
|
3190
|
-
},
|
|
3194
|
+
}, ye = (C) => {
|
|
3191
3195
|
var n;
|
|
3192
3196
|
const e = G3(C), t = e.findIndex((l) => l === document.activeElement);
|
|
3193
3197
|
t > 0 ? e[t - 1].focus() : (n = e[e.length - 1]) == null || n.focus();
|
|
@@ -3197,7 +3201,7 @@ const K3 = (C, e, t, n = 0, l = !1) => {
|
|
|
3197
3201
|
if (!e) return;
|
|
3198
3202
|
const t = document.querySelector(`[data-dropdown-id='${e}']`);
|
|
3199
3203
|
t && ((n = (t == null ? void 0 : t.querySelectorAll('li[role="menuitem"]'))[0]) == null || n.focus());
|
|
3200
|
-
},
|
|
3204
|
+
}, Oe = (C) => {
|
|
3201
3205
|
var l;
|
|
3202
3206
|
const e = i1.getParentDropdownId(C), t = e ? CSS.escape(e) : null;
|
|
3203
3207
|
if (!t) return;
|
|
@@ -3234,8 +3238,8 @@ const K3 = (C, e, t, n = 0, l = !1) => {
|
|
|
3234
3238
|
hasParent: l,
|
|
3235
3239
|
position: o = "bottom",
|
|
3236
3240
|
autoClose: s = !0,
|
|
3237
|
-
isOpen:
|
|
3238
|
-
onClose:
|
|
3241
|
+
isOpen: i = !1,
|
|
3242
|
+
onClose: c = () => {
|
|
3239
3243
|
},
|
|
3240
3244
|
children: a,
|
|
3241
3245
|
offset: d = 0,
|
|
@@ -3245,7 +3249,7 @@ const K3 = (C, e, t, n = 0, l = !1) => {
|
|
|
3245
3249
|
footer: p,
|
|
3246
3250
|
...Z
|
|
3247
3251
|
}, L) => {
|
|
3248
|
-
const { dropdownId: V } = W3(n), [B, F] = N(o), { closeRoot: S } = V3(L3) || {}, w = K(null), m = K(null), [b, k] = N(null), [_, y] = N(null), [x, f] = N({ top: 500, left: 500 }), { shouldRender: O, isAnimating: H } = D1(
|
|
3252
|
+
const { dropdownId: V } = W3(n), [B, F] = N(o), { closeRoot: S } = V3(L3) || {}, w = K(null), m = K(null), [b, k] = N(null), [_, y] = N(null), [x, f] = N({ top: 500, left: 500 }), { shouldRender: O, isAnimating: H } = D1(i, pe), M = $(
|
|
3249
3253
|
(D) => {
|
|
3250
3254
|
m.current = D, k(D), typeof L == "function" ? L(D) : L && (L.current = D);
|
|
3251
3255
|
},
|
|
@@ -3253,11 +3257,11 @@ const K3 = (C, e, t, n = 0, l = !1) => {
|
|
|
3253
3257
|
), I = $((D) => {
|
|
3254
3258
|
w.current = D, y(D);
|
|
3255
3259
|
}, []), P = $(() => {
|
|
3256
|
-
l && S ? S() :
|
|
3257
|
-
}, [S, l,
|
|
3260
|
+
l && S ? S() : c(), i1.closeAll();
|
|
3261
|
+
}, [S, l, c]), U = (D) => {
|
|
3258
3262
|
if (D.key === x1 || D.key === P1) {
|
|
3259
3263
|
if (D.stopPropagation(), D.preventDefault(), b === null) return;
|
|
3260
|
-
D.key === x1 ? b3(b) :
|
|
3264
|
+
D.key === x1 ? b3(b) : ye(b);
|
|
3261
3265
|
}
|
|
3262
3266
|
}, q = (D) => {
|
|
3263
3267
|
D.key === z1 && P();
|
|
@@ -3308,8 +3312,8 @@ const K3 = (C, e, t, n = 0, l = !1) => {
|
|
|
3308
3312
|
return E(() => {
|
|
3309
3313
|
!_ || !b || (l ? G(_, b) : V1(_, b, o, v));
|
|
3310
3314
|
}, [l, b, _, o, v, G, V1]), E(() => {
|
|
3311
|
-
|
|
3312
|
-
}, [
|
|
3315
|
+
i && b && h && U3(V);
|
|
3316
|
+
}, [i, V, b, h]), /* @__PURE__ */ g(Se, { dropdownId: V, closeRoot: P, autoClose: s, children: [
|
|
3313
3317
|
/* @__PURE__ */ r("div", { ref: I, className: _1.trigger, tabIndex: -1, onKeyDown: T, children: C }),
|
|
3314
3318
|
O && /* @__PURE__ */ r(G1, { children: /* @__PURE__ */ g(
|
|
3315
3319
|
"div",
|
|
@@ -3353,8 +3357,8 @@ const K3 = (C, e, t, n = 0, l = !1) => {
|
|
|
3353
3357
|
disabled: l,
|
|
3354
3358
|
hasSeparator: o,
|
|
3355
3359
|
hasIndent: s,
|
|
3356
|
-
children:
|
|
3357
|
-
badgeCount:
|
|
3360
|
+
children: i,
|
|
3361
|
+
badgeCount: c,
|
|
3358
3362
|
badgeContent: a,
|
|
3359
3363
|
badgeIcon: d,
|
|
3360
3364
|
badgeType: v,
|
|
@@ -3381,17 +3385,17 @@ const K3 = (C, e, t, n = 0, l = !1) => {
|
|
|
3381
3385
|
I && I.click();
|
|
3382
3386
|
} else {
|
|
3383
3387
|
if (l) return;
|
|
3384
|
-
Z && _(M),
|
|
3388
|
+
Z && _(M), i && m();
|
|
3385
3389
|
}
|
|
3386
3390
|
}, x = (M) => {
|
|
3387
|
-
M.preventDefault(), M.key === A1 && (w && U3(S), M.shiftKey && V &&
|
|
3391
|
+
M.preventDefault(), M.key === A1 && (w && U3(S), M.shiftKey && V && Oe(V));
|
|
3388
3392
|
}, { onKeyUp: f, onFocus: O, onKeyDown: H } = B1(
|
|
3389
3393
|
{ onKeyUp: x, onFocus: k, onKeyDown: y },
|
|
3390
3394
|
{
|
|
3391
3395
|
interactiveKeyCodes: [e1, W, A1, x1, P1, z1]
|
|
3392
3396
|
}
|
|
3393
3397
|
);
|
|
3394
|
-
return
|
|
3398
|
+
return i ? /* @__PURE__ */ r(
|
|
3395
3399
|
W1,
|
|
3396
3400
|
{
|
|
3397
3401
|
hasParent: !0,
|
|
@@ -3427,7 +3431,7 @@ const K3 = (C, e, t, n = 0, l = !1) => {
|
|
|
3427
3431
|
),
|
|
3428
3432
|
o && /* @__PURE__ */ r("div", { className: Z1["dropdown-divider"], children: /* @__PURE__ */ r(a1, {}) })
|
|
3429
3433
|
] }),
|
|
3430
|
-
children:
|
|
3434
|
+
children: i
|
|
3431
3435
|
}
|
|
3432
3436
|
) : /* @__PURE__ */ g(X, { children: [
|
|
3433
3437
|
/* @__PURE__ */ g(
|
|
@@ -3449,21 +3453,21 @@ const K3 = (C, e, t, n = 0, l = !1) => {
|
|
|
3449
3453
|
t && /* @__PURE__ */ r(A, { name: t, className: Z1["dropdown-item-icon"] }),
|
|
3450
3454
|
e ? /* @__PURE__ */ r("a", { href: e, style: { flex: "2", textDecoration: "none", color: "inherit" }, children: C }) : /* @__PURE__ */ r("span", { style: { flex: "2" }, children: C }),
|
|
3451
3455
|
n && /* @__PURE__ */ r("div", { children: n }),
|
|
3452
|
-
U1({ showBadge: !!u, badgeContent: a, badgeCount:
|
|
3456
|
+
U1({ showBadge: !!u, badgeContent: a, badgeCount: c, badgeIcon: d }) && /* @__PURE__ */ r(C1, { count: c, content: a, icon: d, badgeType: v, size: h })
|
|
3453
3457
|
]
|
|
3454
3458
|
}
|
|
3455
3459
|
),
|
|
3456
3460
|
o && /* @__PURE__ */ r("div", { className: Z1["dropdown-divider"], children: /* @__PURE__ */ r(a1, {}) })
|
|
3457
3461
|
] });
|
|
3458
|
-
},
|
|
3459
|
-
link:
|
|
3462
|
+
}, Ne = "_link_1yg2q_1", Fe = "_label_1yg2q_118", l3 = {
|
|
3463
|
+
link: Ne,
|
|
3460
3464
|
"external-link-icon": "_external-link-icon_1yg2q_114",
|
|
3461
|
-
label:
|
|
3465
|
+
label: Fe
|
|
3462
3466
|
}, v3 = z(
|
|
3463
|
-
({ label: C, href: e, subtle: t = !1, externalLink: n = !1, className: l = "", reverse: o, ...s },
|
|
3467
|
+
({ label: C, href: e, subtle: t = !1, externalLink: n = !1, className: l = "", reverse: o, ...s }, i) => /* @__PURE__ */ g(
|
|
3464
3468
|
"a",
|
|
3465
3469
|
{
|
|
3466
|
-
ref:
|
|
3470
|
+
ref: i,
|
|
3467
3471
|
href: e,
|
|
3468
3472
|
role: "link",
|
|
3469
3473
|
"aria-label": C,
|
|
@@ -3479,14 +3483,14 @@ const K3 = (C, e, t, n = 0, l = !1) => {
|
|
|
3479
3483
|
]
|
|
3480
3484
|
}
|
|
3481
3485
|
)
|
|
3482
|
-
), j3 = 4,
|
|
3483
|
-
function
|
|
3484
|
-
return C ?
|
|
3486
|
+
), j3 = 4, ke = 5, Ie = 150;
|
|
3487
|
+
function Ae(C, e = j3) {
|
|
3488
|
+
return C ? ke + e : e;
|
|
3485
3489
|
}
|
|
3486
|
-
const
|
|
3490
|
+
const De = "_tooltip_jx6mx_1", Te = "_tooltipLabel_jx6mx_22", s3 = {
|
|
3487
3491
|
"tooltip-trigger": "_tooltip-trigger_jx6mx_1",
|
|
3488
|
-
tooltip:
|
|
3489
|
-
tooltipLabel:
|
|
3492
|
+
tooltip: De,
|
|
3493
|
+
tooltipLabel: Te
|
|
3490
3494
|
}, h3 = z(
|
|
3491
3495
|
({
|
|
3492
3496
|
children: C,
|
|
@@ -3496,21 +3500,21 @@ const Ae = "_tooltip_jx6mx_1", De = "_tooltipLabel_jx6mx_22", s3 = {
|
|
|
3496
3500
|
arrow: l = !0,
|
|
3497
3501
|
className: o = "",
|
|
3498
3502
|
triggerStyles: s,
|
|
3499
|
-
shouldFocusTrigger:
|
|
3500
|
-
gap:
|
|
3503
|
+
shouldFocusTrigger: i = !0,
|
|
3504
|
+
gap: c = j3,
|
|
3501
3505
|
...a
|
|
3502
3506
|
}, d) => {
|
|
3503
|
-
const v = K(null), h = K(null), [u, p] = N(null), [Z, L] = N(e), [V, B] = N({ top: 0, left: 0 }), [F, S] = N(!1), { shouldRender: w, isAnimating: m } = D1(F,
|
|
3507
|
+
const v = K(null), h = K(null), [u, p] = N(null), [Z, L] = N(e), [V, B] = N({ top: 0, left: 0 }), [F, S] = N(!1), { shouldRender: w, isAnimating: m } = D1(F, Ie), b = $(
|
|
3504
3508
|
(x) => {
|
|
3505
3509
|
h.current = x, p(x), typeof d == "function" ? d(x) : d && (d.current = x);
|
|
3506
3510
|
},
|
|
3507
3511
|
[d]
|
|
3508
3512
|
), k = $(() => {
|
|
3509
3513
|
if (F && v.current && u) {
|
|
3510
|
-
const x =
|
|
3514
|
+
const x = Ae(l, c), f = e === "auto" ? K3(v.current, u, "top", x, !0) : e, O = t3(f, v.current, u, x);
|
|
3511
3515
|
L(f), B(O);
|
|
3512
3516
|
}
|
|
3513
|
-
}, [F, e, l, u,
|
|
3517
|
+
}, [F, e, l, u, c]);
|
|
3514
3518
|
E(() => (k(), window.addEventListener("scroll", k), () => {
|
|
3515
3519
|
window.removeEventListener("scroll", k);
|
|
3516
3520
|
}), [k]);
|
|
@@ -3527,9 +3531,9 @@ const Ae = "_tooltip_jx6mx_1", De = "_tooltipLabel_jx6mx_22", s3 = {
|
|
|
3527
3531
|
onMouseEnter: _,
|
|
3528
3532
|
onMouseLeave: y,
|
|
3529
3533
|
onFocus: _,
|
|
3530
|
-
onFocusCapture:
|
|
3534
|
+
onFocusCapture: i ? void 0 : _,
|
|
3531
3535
|
onBlur: y,
|
|
3532
|
-
tabIndex:
|
|
3536
|
+
tabIndex: i ? 0 : void 0,
|
|
3533
3537
|
style: s,
|
|
3534
3538
|
children: [
|
|
3535
3539
|
C,
|
|
@@ -3554,8 +3558,8 @@ const Ae = "_tooltip_jx6mx_1", De = "_tooltipLabel_jx6mx_22", s3 = {
|
|
|
3554
3558
|
}
|
|
3555
3559
|
);
|
|
3556
3560
|
}
|
|
3557
|
-
),
|
|
3558
|
-
breadcrumbItem:
|
|
3561
|
+
), Re = "_breadcrumbItem_1ybl5_1", Ee = {
|
|
3562
|
+
breadcrumbItem: Re
|
|
3559
3563
|
}, i3 = ({ item: C, isLast: e, breadcrumbItemMaxWidth: t }) => {
|
|
3560
3564
|
const [n, l] = N(!1), o = K(), s = K(null);
|
|
3561
3565
|
E(() => {
|
|
@@ -3566,8 +3570,8 @@ const Ae = "_tooltip_jx6mx_1", De = "_tooltipLabel_jx6mx_22", s3 = {
|
|
|
3566
3570
|
o.current && t && l(o.current >= t);
|
|
3567
3571
|
})();
|
|
3568
3572
|
}, [t]);
|
|
3569
|
-
const { showBadge:
|
|
3570
|
-
return /* @__PURE__ */ r("div", { className:
|
|
3573
|
+
const { showBadge: i, badgeContent: c, badgeCount: a, badgeIcon: d, badgeType: v, badgeSize: h } = C, u = U1({ showBadge: !!i, badgeContent: c, badgeCount: a, badgeIcon: d });
|
|
3574
|
+
return /* @__PURE__ */ r("div", { className: Ee.breadcrumbItem, ref: s, children: e ? /* @__PURE__ */ r(X, { children: n ? /* @__PURE__ */ g(
|
|
3571
3575
|
h3,
|
|
3572
3576
|
{
|
|
3573
3577
|
label: C.label,
|
|
@@ -3595,7 +3599,7 @@ const Ae = "_tooltip_jx6mx_1", De = "_tooltipLabel_jx6mx_22", s3 = {
|
|
|
3595
3599
|
C1,
|
|
3596
3600
|
{
|
|
3597
3601
|
count: a,
|
|
3598
|
-
content:
|
|
3602
|
+
content: c,
|
|
3599
3603
|
icon: d,
|
|
3600
3604
|
badgeType: v,
|
|
3601
3605
|
size: h
|
|
@@ -3615,7 +3619,7 @@ const Ae = "_tooltip_jx6mx_1", De = "_tooltipLabel_jx6mx_22", s3 = {
|
|
|
3615
3619
|
children: C.label
|
|
3616
3620
|
}
|
|
3617
3621
|
),
|
|
3618
|
-
u && /* @__PURE__ */ r(C1, { count: a, content:
|
|
3622
|
+
u && /* @__PURE__ */ r(C1, { count: a, content: c, icon: d, badgeType: v })
|
|
3619
3623
|
] }) }) : /* @__PURE__ */ r(X, { children: n ? /* @__PURE__ */ g(
|
|
3620
3624
|
h3,
|
|
3621
3625
|
{
|
|
@@ -3639,7 +3643,7 @@ const Ae = "_tooltip_jx6mx_1", De = "_tooltipLabel_jx6mx_22", s3 = {
|
|
|
3639
3643
|
}
|
|
3640
3644
|
),
|
|
3641
3645
|
" ",
|
|
3642
|
-
u && /* @__PURE__ */ r(C1, { count: a, content:
|
|
3646
|
+
u && /* @__PURE__ */ r(C1, { count: a, content: c, icon: d, badgeType: v })
|
|
3643
3647
|
]
|
|
3644
3648
|
}
|
|
3645
3649
|
) : /* @__PURE__ */ g(X, { children: [
|
|
@@ -3652,13 +3656,13 @@ const Ae = "_tooltip_jx6mx_1", De = "_tooltipLabel_jx6mx_22", s3 = {
|
|
|
3652
3656
|
style: { color: "var(--content-tertiary)", maxWidth: `${t}px` }
|
|
3653
3657
|
}
|
|
3654
3658
|
),
|
|
3655
|
-
u && /* @__PURE__ */ r(C1, { count: a, content:
|
|
3659
|
+
u && /* @__PURE__ */ r(C1, { count: a, content: c, icon: d, badgeType: v })
|
|
3656
3660
|
] }) }) }, C.link);
|
|
3657
|
-
},
|
|
3658
|
-
breadcrumbsContainer:
|
|
3659
|
-
breadcrumbItem:
|
|
3660
|
-
separator:
|
|
3661
|
-
}, c3 = () => /* @__PURE__ */ r("span", { "aria-hidden": "true", className: k1.separator, children: "/" }),
|
|
3661
|
+
}, Pe = "_breadcrumbsContainer_12g5q_1", ze = "_breadcrumbItem_12g5q_7", $e = "_separator_12g5q_36", k1 = {
|
|
3662
|
+
breadcrumbsContainer: Pe,
|
|
3663
|
+
breadcrumbItem: ze,
|
|
3664
|
+
separator: $e
|
|
3665
|
+
}, c3 = () => /* @__PURE__ */ r("span", { "aria-hidden": "true", className: k1.separator, children: "/" }), _r = z(
|
|
3662
3666
|
({
|
|
3663
3667
|
items: C,
|
|
3664
3668
|
ariaLabel: e = ge,
|
|
@@ -3667,8 +3671,8 @@ const Ae = "_tooltip_jx6mx_1", De = "_tooltipLabel_jx6mx_22", s3 = {
|
|
|
3667
3671
|
badgeCount: l,
|
|
3668
3672
|
badgeIcon: o,
|
|
3669
3673
|
badgeType: s,
|
|
3670
|
-
badgeSize:
|
|
3671
|
-
showBadge:
|
|
3674
|
+
badgeSize: i,
|
|
3675
|
+
showBadge: c,
|
|
3672
3676
|
...a
|
|
3673
3677
|
}, d) => {
|
|
3674
3678
|
const [v, h] = N(!1);
|
|
@@ -3703,14 +3707,14 @@ const Ae = "_tooltip_jx6mx_1", De = "_tooltipLabel_jx6mx_22", s3 = {
|
|
|
3703
3707
|
onClick: () => h(!v)
|
|
3704
3708
|
}
|
|
3705
3709
|
),
|
|
3706
|
-
U1({ showBadge: !!
|
|
3710
|
+
U1({ showBadge: !!c, badgeContent: n, badgeCount: l, badgeIcon: o }) && /* @__PURE__ */ r(
|
|
3707
3711
|
C1,
|
|
3708
3712
|
{
|
|
3709
3713
|
count: l,
|
|
3710
3714
|
content: n,
|
|
3711
3715
|
icon: o,
|
|
3712
3716
|
badgeType: s,
|
|
3713
|
-
size:
|
|
3717
|
+
size: i
|
|
3714
3718
|
}
|
|
3715
3719
|
)
|
|
3716
3720
|
] }),
|
|
@@ -3759,22 +3763,32 @@ const Ae = "_tooltip_jx6mx_1", De = "_tooltipLabel_jx6mx_22", s3 = {
|
|
|
3759
3763
|
p < C.length - 1 && /* @__PURE__ */ r(c3, {})
|
|
3760
3764
|
] }, u.label + p)) });
|
|
3761
3765
|
}
|
|
3762
|
-
),
|
|
3766
|
+
), Ke = {
|
|
3763
3767
|
xs: 240,
|
|
3764
3768
|
s: 360,
|
|
3765
3769
|
m: 480,
|
|
3766
3770
|
l: 600,
|
|
3767
3771
|
xl: 720
|
|
3768
|
-
},
|
|
3769
|
-
card:
|
|
3770
|
-
},
|
|
3771
|
-
({
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3772
|
+
}, Ue = "_card_1fr4q_1", Ge = {
|
|
3773
|
+
card: Ue
|
|
3774
|
+
}, yr = z(
|
|
3775
|
+
({
|
|
3776
|
+
size: C = "m",
|
|
3777
|
+
cardType: e = "default",
|
|
3778
|
+
clickable: t = !1,
|
|
3779
|
+
disabled: n = !1,
|
|
3780
|
+
children: l,
|
|
3781
|
+
onClick: o,
|
|
3782
|
+
style: s,
|
|
3783
|
+
className: i,
|
|
3784
|
+
...c
|
|
3785
|
+
}, a) => {
|
|
3786
|
+
const d = (Z) => {
|
|
3787
|
+
!n && t && (Z.key === e1 || Z.key === W) && (Z.preventDefault(), o == null || o());
|
|
3788
|
+
}, v = () => {
|
|
3775
3789
|
!n && t && (o == null || o());
|
|
3776
|
-
}, { onKeyDown:
|
|
3777
|
-
{ onKeyUp:
|
|
3790
|
+
}, { onKeyDown: h, onKeyUp: u, onBlur: p } = B1(
|
|
3791
|
+
{ onKeyUp: d },
|
|
3778
3792
|
{
|
|
3779
3793
|
interactiveKeyCodes: [e1, W]
|
|
3780
3794
|
}
|
|
@@ -3782,32 +3796,32 @@ const Ae = "_tooltip_jx6mx_1", De = "_tooltipLabel_jx6mx_22", s3 = {
|
|
|
3782
3796
|
return /* @__PURE__ */ r(
|
|
3783
3797
|
"div",
|
|
3784
3798
|
{
|
|
3785
|
-
ref:
|
|
3786
|
-
className:
|
|
3787
|
-
style: { width:
|
|
3799
|
+
ref: a,
|
|
3800
|
+
className: `${Ge.card}${i ? ` ${i}` : ""}`,
|
|
3801
|
+
style: { width: Ke[C], ...s },
|
|
3788
3802
|
"data-card-type": e,
|
|
3789
3803
|
"data-clickable": t,
|
|
3790
3804
|
"data-disabled": n,
|
|
3791
3805
|
tabIndex: t ? 0 : -1,
|
|
3792
|
-
onClick:
|
|
3793
|
-
onKeyDown:
|
|
3794
|
-
onKeyUp:
|
|
3795
|
-
onBlur:
|
|
3806
|
+
onClick: v,
|
|
3807
|
+
onKeyDown: h,
|
|
3808
|
+
onKeyUp: u,
|
|
3809
|
+
onBlur: p,
|
|
3796
3810
|
...c,
|
|
3797
3811
|
children: l
|
|
3798
3812
|
}
|
|
3799
3813
|
);
|
|
3800
3814
|
}
|
|
3801
|
-
),
|
|
3802
|
-
container:
|
|
3803
|
-
checkbox:
|
|
3815
|
+
), We = "_container_sqob1_1", je = "_checkbox_sqob1_5", w1 = {
|
|
3816
|
+
container: We,
|
|
3817
|
+
checkbox: je,
|
|
3804
3818
|
"checkbox-text-container": "_checkbox-text-container_sqob1_52",
|
|
3805
3819
|
"checkbox-description": "_checkbox-description_sqob1_53",
|
|
3806
3820
|
"checkbox-icons": "_checkbox-icons_sqob1_68",
|
|
3807
3821
|
"checkbox-icon-selected": "_checkbox-icon-selected_sqob1_74",
|
|
3808
3822
|
"checkbox-icon-indeterminated": "_checkbox-icon-indeterminated_sqob1_95",
|
|
3809
3823
|
"checkbox-error": "_checkbox-error_sqob1_146"
|
|
3810
|
-
},
|
|
3824
|
+
}, qe = ({
|
|
3811
3825
|
id: C,
|
|
3812
3826
|
label: e,
|
|
3813
3827
|
showLabel: t,
|
|
@@ -3815,16 +3829,16 @@ const Ae = "_tooltip_jx6mx_1", De = "_tooltipLabel_jx6mx_22", s3 = {
|
|
|
3815
3829
|
description: l,
|
|
3816
3830
|
error: o,
|
|
3817
3831
|
errorMessage: s,
|
|
3818
|
-
readOnly:
|
|
3819
|
-
indeterminate:
|
|
3832
|
+
readOnly: i,
|
|
3833
|
+
indeterminate: c,
|
|
3820
3834
|
...a
|
|
3821
3835
|
}) => {
|
|
3822
3836
|
const d = K(null);
|
|
3823
3837
|
E(() => {
|
|
3824
|
-
d.current && (d.current.indeterminate = !!
|
|
3825
|
-
}, [
|
|
3838
|
+
d.current && (d.current.indeterminate = !!c);
|
|
3839
|
+
}, [c]);
|
|
3826
3840
|
const v = (h) => {
|
|
3827
|
-
h.code === "Space" &&
|
|
3841
|
+
h.code === "Space" && i && h.preventDefault();
|
|
3828
3842
|
};
|
|
3829
3843
|
return /* @__PURE__ */ g("div", { className: w1.container, children: [
|
|
3830
3844
|
/* @__PURE__ */ r(
|
|
@@ -3835,7 +3849,7 @@ const Ae = "_tooltip_jx6mx_1", De = "_tooltipLabel_jx6mx_22", s3 = {
|
|
|
3835
3849
|
className: w1.checkbox,
|
|
3836
3850
|
disabled: n,
|
|
3837
3851
|
ref: d,
|
|
3838
|
-
"data-read-only":
|
|
3852
|
+
"data-read-only": i,
|
|
3839
3853
|
"data-error": !!o,
|
|
3840
3854
|
onKeyDown: v,
|
|
3841
3855
|
...a
|
|
@@ -3849,14 +3863,14 @@ const Ae = "_tooltip_jx6mx_1", De = "_tooltipLabel_jx6mx_22", s3 = {
|
|
|
3849
3863
|
o && s && /* @__PURE__ */ r("p", { className: w1["checkbox-error"], children: s })
|
|
3850
3864
|
] })
|
|
3851
3865
|
] });
|
|
3852
|
-
},
|
|
3853
|
-
checkboxGroupContainer:
|
|
3854
|
-
checkboxGroupHeader:
|
|
3855
|
-
groupTitle:
|
|
3856
|
-
groupHelpText:
|
|
3857
|
-
errorMessage:
|
|
3858
|
-
checkboxGroup:
|
|
3859
|
-
},
|
|
3866
|
+
}, Ye = "_checkboxGroupContainer_1yuuw_1", Qe = "_checkboxGroupHeader_1yuuw_9", Xe = "_groupTitle_1yuuw_9", Je = "_groupHelpText_1yuuw_20", Ct = "_errorMessage_1yuuw_32", et = "_checkboxGroup_1yuuw_1", y1 = {
|
|
3867
|
+
checkboxGroupContainer: Ye,
|
|
3868
|
+
checkboxGroupHeader: Qe,
|
|
3869
|
+
groupTitle: Xe,
|
|
3870
|
+
groupHelpText: Je,
|
|
3871
|
+
errorMessage: Ct,
|
|
3872
|
+
checkboxGroup: et
|
|
3873
|
+
}, Or = z(
|
|
3860
3874
|
({
|
|
3861
3875
|
items: C,
|
|
3862
3876
|
direction: e = "horizontal",
|
|
@@ -3865,56 +3879,56 @@ const Ae = "_tooltip_jx6mx_1", De = "_tooltipLabel_jx6mx_22", s3 = {
|
|
|
3865
3879
|
showGroupTitle: l = !1,
|
|
3866
3880
|
groupHelpText: o = "",
|
|
3867
3881
|
showHelpText: s = !1,
|
|
3868
|
-
errorMessage:
|
|
3869
|
-
error:
|
|
3882
|
+
errorMessage: i = "",
|
|
3883
|
+
error: c = !1,
|
|
3870
3884
|
disabled: a = !1,
|
|
3871
3885
|
readOnly: d = !1,
|
|
3872
3886
|
className: v = "",
|
|
3873
3887
|
...h
|
|
3874
3888
|
}, u) => {
|
|
3875
|
-
if (!(a &&
|
|
3889
|
+
if (!(a && c))
|
|
3876
3890
|
return /* @__PURE__ */ g("div", { ref: u, className: R(y1.checkboxGroupContainer, v), ...h, children: [
|
|
3877
3891
|
/* @__PURE__ */ g(
|
|
3878
3892
|
"div",
|
|
3879
3893
|
{
|
|
3880
3894
|
className: y1.checkboxGroupHeader,
|
|
3881
|
-
"data-error":
|
|
3895
|
+
"data-error": c,
|
|
3882
3896
|
"data-disabled": a,
|
|
3883
3897
|
"data-read-only": d,
|
|
3884
3898
|
children: [
|
|
3885
3899
|
n && l && /* @__PURE__ */ r("h3", { className: y1.groupTitle, children: n }),
|
|
3886
3900
|
o && s && /* @__PURE__ */ r("p", { className: y1.groupHelpText, children: o }),
|
|
3887
|
-
|
|
3901
|
+
i && c && /* @__PURE__ */ r("p", { className: y1.errorMessage, children: i })
|
|
3888
3902
|
]
|
|
3889
3903
|
}
|
|
3890
3904
|
),
|
|
3891
3905
|
/* @__PURE__ */ r("div", { className: y1.checkboxGroup, "data-direction": e, children: C.map((p, Z) => /* @__PURE__ */ r(
|
|
3892
|
-
|
|
3906
|
+
qe,
|
|
3893
3907
|
{
|
|
3894
3908
|
id: `${p}-${Z}`,
|
|
3895
3909
|
label: p,
|
|
3896
3910
|
showLabel: t,
|
|
3897
3911
|
disabled: a,
|
|
3898
|
-
error:
|
|
3912
|
+
error: c,
|
|
3899
3913
|
readOnly: d
|
|
3900
3914
|
},
|
|
3901
3915
|
`${p}-${Z}`
|
|
3902
3916
|
)) })
|
|
3903
3917
|
] });
|
|
3904
3918
|
}
|
|
3905
|
-
),
|
|
3919
|
+
), tt = {
|
|
3906
3920
|
single: "radio",
|
|
3907
3921
|
multi: "checkbox",
|
|
3908
3922
|
input: "option"
|
|
3909
|
-
},
|
|
3910
|
-
chip:
|
|
3923
|
+
}, nt = "_chip_7scg0_1", u1 = {
|
|
3924
|
+
chip: nt,
|
|
3911
3925
|
"chip-label": "_chip-label_7scg0_49",
|
|
3912
3926
|
"chip-icon-container": "_chip-icon-container_7scg0_70",
|
|
3913
3927
|
"chip-icon": "_chip-icon_7scg0_70",
|
|
3914
3928
|
"chip-icon--visible": "_chip-icon--visible_7scg0_90",
|
|
3915
3929
|
"chip-close-button": "_chip-close-button_7scg0_95",
|
|
3916
3930
|
"chip-close-button--icon": "_chip-close-button--icon_7scg0_124"
|
|
3917
|
-
},
|
|
3931
|
+
}, Nr = z(
|
|
3918
3932
|
({
|
|
3919
3933
|
id: C,
|
|
3920
3934
|
label: e,
|
|
@@ -3923,14 +3937,14 @@ const Ae = "_tooltip_jx6mx_1", De = "_tooltipLabel_jx6mx_22", s3 = {
|
|
|
3923
3937
|
disabled: l = !1,
|
|
3924
3938
|
type: o = "single",
|
|
3925
3939
|
className: s = "",
|
|
3926
|
-
compactSpacing:
|
|
3927
|
-
onClose:
|
|
3940
|
+
compactSpacing: i = !1,
|
|
3941
|
+
onClose: c,
|
|
3928
3942
|
...a
|
|
3929
3943
|
}, d) => {
|
|
3930
3944
|
const v = i6.useRef(null), h = (V) => {
|
|
3931
3945
|
if (V.key === e1 || V.key === W)
|
|
3932
3946
|
V.preventDefault(), n == null || n(V);
|
|
3933
|
-
else if ((V.key === x3 || V.key === B3) &&
|
|
3947
|
+
else if ((V.key === x3 || V.key === B3) && c) {
|
|
3934
3948
|
if (o !== "input") return;
|
|
3935
3949
|
V.preventDefault(), v.current && v.current.click();
|
|
3936
3950
|
}
|
|
@@ -3946,11 +3960,11 @@ const Ae = "_tooltip_jx6mx_1", De = "_tooltipLabel_jx6mx_22", s3 = {
|
|
|
3946
3960
|
{
|
|
3947
3961
|
id: C,
|
|
3948
3962
|
ref: d,
|
|
3949
|
-
role:
|
|
3963
|
+
role: tt[o],
|
|
3950
3964
|
className: R(u1.chip, s),
|
|
3951
3965
|
"data-selected": L && t,
|
|
3952
3966
|
"data-disabled": l,
|
|
3953
|
-
"data-compact-spacing":
|
|
3967
|
+
"data-compact-spacing": i,
|
|
3954
3968
|
"data-type": o,
|
|
3955
3969
|
onClick: n,
|
|
3956
3970
|
tabIndex: 0,
|
|
@@ -3986,7 +4000,7 @@ const Ae = "_tooltip_jx6mx_1", De = "_tooltipLabel_jx6mx_22", s3 = {
|
|
|
3986
4000
|
id: C + "-delete-button",
|
|
3987
4001
|
type: "button",
|
|
3988
4002
|
className: u1["chip-close-button"],
|
|
3989
|
-
onClick:
|
|
4003
|
+
onClick: c,
|
|
3990
4004
|
disabled: l,
|
|
3991
4005
|
"aria-label": `Supprimer ${e}`,
|
|
3992
4006
|
value: e,
|
|
@@ -3998,7 +4012,7 @@ const Ae = "_tooltip_jx6mx_1", De = "_tooltipLabel_jx6mx_22", s3 = {
|
|
|
3998
4012
|
}
|
|
3999
4013
|
);
|
|
4000
4014
|
}
|
|
4001
|
-
),
|
|
4015
|
+
), rt = ({ children: C, className: e, xxs: t, xs: n, s: l, m: o, l: s, xl: i, ...c }) => {
|
|
4002
4016
|
const a = (v, h) => h ? `${v}-${h}` : "", d = R(
|
|
4003
4017
|
"col",
|
|
4004
4018
|
a("col-xxs", t),
|
|
@@ -4006,20 +4020,20 @@ const Ae = "_tooltip_jx6mx_1", De = "_tooltipLabel_jx6mx_22", s3 = {
|
|
|
4006
4020
|
a("col-s", l),
|
|
4007
4021
|
a("col-m", o),
|
|
4008
4022
|
a("col-l", s),
|
|
4009
|
-
a("col-xl",
|
|
4023
|
+
a("col-xl", i),
|
|
4010
4024
|
e
|
|
4011
4025
|
);
|
|
4012
|
-
return /* @__PURE__ */ r("div", { className: d, ...
|
|
4013
|
-
},
|
|
4026
|
+
return /* @__PURE__ */ r("div", { className: d, ...c, children: C });
|
|
4027
|
+
}, ot = ({ gridType: C = "fluid", className: e, children: t }) => {
|
|
4014
4028
|
const n = R("grid", e);
|
|
4015
4029
|
return /* @__PURE__ */ r("div", { className: n, "data-gridtype": C, children: t });
|
|
4016
4030
|
};
|
|
4017
|
-
|
|
4018
|
-
const
|
|
4031
|
+
ot.Col = rt;
|
|
4032
|
+
const Fr = z(
|
|
4019
4033
|
({ selected: C, onClick: e, defaultSelected: t, ...n }, l) => {
|
|
4020
|
-
const o = C !== void 0, [s,
|
|
4021
|
-
return /* @__PURE__ */ r(d1, { ref: l, appearance:
|
|
4022
|
-
d.preventDefault(), o ||
|
|
4034
|
+
const o = C !== void 0, [s, i] = N(t ?? !1), c = o ? C : s;
|
|
4035
|
+
return /* @__PURE__ */ r(d1, { ref: l, appearance: c ? "filled" : "outlined", onClick: (d) => {
|
|
4036
|
+
d.preventDefault(), o || i(!c), e && e(d);
|
|
4023
4037
|
}, ...n });
|
|
4024
4038
|
}
|
|
4025
4039
|
), q3 = (C, ...e) => {
|
|
@@ -4030,7 +4044,7 @@ const Nr = z(
|
|
|
4030
4044
|
}
|
|
4031
4045
|
return document.addEventListener("mousedown", t), () => document.removeEventListener("mousedown", t);
|
|
4032
4046
|
}, [C, e]);
|
|
4033
|
-
},
|
|
4047
|
+
}, lt = [
|
|
4034
4048
|
"button",
|
|
4035
4049
|
"a[href]",
|
|
4036
4050
|
"input",
|
|
@@ -4038,7 +4052,7 @@ const Nr = z(
|
|
|
4038
4052
|
"textarea",
|
|
4039
4053
|
"details",
|
|
4040
4054
|
'[tabindex]:not([tabindex="-1"])'
|
|
4041
|
-
], Y3 =
|
|
4055
|
+
], Y3 = lt.map(
|
|
4042
4056
|
(C) => C + ":not([disabled]):not([aria-hidden])"
|
|
4043
4057
|
).join(","), Q3 = (C, e) => {
|
|
4044
4058
|
E(() => {
|
|
@@ -4070,7 +4084,7 @@ const Nr = z(
|
|
|
4070
4084
|
"modal-content": "_modal-content_ffgyd_80",
|
|
4071
4085
|
"modal-content-description": "_modal-content-description_ffgyd_90",
|
|
4072
4086
|
"modal-footer": "_modal-footer_ffgyd_101"
|
|
4073
|
-
},
|
|
4087
|
+
}, kr = z(
|
|
4074
4088
|
({
|
|
4075
4089
|
id: C,
|
|
4076
4090
|
isOpen: e,
|
|
@@ -4079,8 +4093,8 @@ const Nr = z(
|
|
|
4079
4093
|
iconAppearance: l,
|
|
4080
4094
|
description: o,
|
|
4081
4095
|
primaryButton: s,
|
|
4082
|
-
secondaryButton:
|
|
4083
|
-
size:
|
|
4096
|
+
secondaryButton: i,
|
|
4097
|
+
size: c = "m",
|
|
4084
4098
|
closeOnOverlayClick: a = !0,
|
|
4085
4099
|
onClose: d,
|
|
4086
4100
|
className: v,
|
|
@@ -4104,7 +4118,7 @@ const Nr = z(
|
|
|
4104
4118
|
"aria-modal": "true",
|
|
4105
4119
|
"aria-labelledby": `${C}-modal-title`,
|
|
4106
4120
|
"aria-describedby": o ? `${C}-modal-desc` : u["aria-describedby"],
|
|
4107
|
-
"data-size":
|
|
4121
|
+
"data-size": c,
|
|
4108
4122
|
"data-open": L,
|
|
4109
4123
|
children: [
|
|
4110
4124
|
/* @__PURE__ */ g("div", { className: g1["modal-header"], children: [
|
|
@@ -4131,7 +4145,7 @@ const Nr = z(
|
|
|
4131
4145
|
h
|
|
4132
4146
|
] }),
|
|
4133
4147
|
/* @__PURE__ */ g("div", { className: g1["modal-footer"], children: [
|
|
4134
|
-
|
|
4148
|
+
i,
|
|
4135
4149
|
s
|
|
4136
4150
|
] })
|
|
4137
4151
|
]
|
|
@@ -4139,19 +4153,19 @@ const Nr = z(
|
|
|
4139
4153
|
)
|
|
4140
4154
|
] }) });
|
|
4141
4155
|
}
|
|
4142
|
-
), _3 = 8, y3 = 20,
|
|
4156
|
+
), _3 = 8, y3 = 20, st = (C) => {
|
|
4143
4157
|
E(() => (window.addEventListener("scroll", C, !0), () => {
|
|
4144
4158
|
window.removeEventListener("scroll", C, !0);
|
|
4145
4159
|
}), [C]);
|
|
4146
|
-
},
|
|
4147
|
-
popoverTrigger:
|
|
4148
|
-
popover:
|
|
4149
|
-
popoverInner:
|
|
4150
|
-
popoverContentContainer:
|
|
4151
|
-
popoverTitle:
|
|
4152
|
-
popoverContent:
|
|
4153
|
-
popoverButtonContainer:
|
|
4154
|
-
},
|
|
4160
|
+
}, it = "_popoverTrigger_1oeje_1", ct = "_popover_1oeje_1", at = "_popoverInner_1oeje_25", dt = "_popoverContentContainer_1oeje_33", wt = "_popoverTitle_1oeje_40", ut = "_popoverContent_1oeje_33", gt = "_popoverButtonContainer_1oeje_64", f1 = {
|
|
4161
|
+
popoverTrigger: it,
|
|
4162
|
+
popover: ct,
|
|
4163
|
+
popoverInner: at,
|
|
4164
|
+
popoverContentContainer: dt,
|
|
4165
|
+
popoverTitle: wt,
|
|
4166
|
+
popoverContent: ut,
|
|
4167
|
+
popoverButtonContainer: gt
|
|
4168
|
+
}, Ir = z(
|
|
4155
4169
|
({
|
|
4156
4170
|
children: C,
|
|
4157
4171
|
position: e = "auto",
|
|
@@ -4160,8 +4174,8 @@ const Nr = z(
|
|
|
4160
4174
|
arrow: l = !0,
|
|
4161
4175
|
title: o,
|
|
4162
4176
|
primaryButtonLabel: s,
|
|
4163
|
-
secondaryButtonLabel:
|
|
4164
|
-
className:
|
|
4177
|
+
secondaryButtonLabel: i,
|
|
4178
|
+
className: c = "",
|
|
4165
4179
|
triggerStyles: a,
|
|
4166
4180
|
closeOnClickOutside: d = !0,
|
|
4167
4181
|
closeOnEscape: v = !0,
|
|
@@ -4184,7 +4198,7 @@ const Nr = z(
|
|
|
4184
4198
|
}, [d]), P = $(() => {
|
|
4185
4199
|
v && y(!1);
|
|
4186
4200
|
}, [v]);
|
|
4187
|
-
Q3(V, x), q3(I, L.current, V), X3(P),
|
|
4201
|
+
Q3(V, x), q3(I, L.current, V), X3(P), st(M);
|
|
4188
4202
|
const U = $(
|
|
4189
4203
|
(G) => {
|
|
4190
4204
|
B(G), typeof Z == "function" ? Z(G) : Z && (Z.current = G), G && _ && requestAnimationFrame(() => {
|
|
@@ -4221,7 +4235,7 @@ const Nr = z(
|
|
|
4221
4235
|
"div",
|
|
4222
4236
|
{
|
|
4223
4237
|
ref: U,
|
|
4224
|
-
className: R(f1.popover,
|
|
4238
|
+
className: R(f1.popover, c),
|
|
4225
4239
|
role: "dialog",
|
|
4226
4240
|
"aria-modal": "true",
|
|
4227
4241
|
"data-arrow": l,
|
|
@@ -4236,12 +4250,12 @@ const Nr = z(
|
|
|
4236
4250
|
/* @__PURE__ */ r("div", { className: f1.popoverContent, children: n })
|
|
4237
4251
|
] }),
|
|
4238
4252
|
/* @__PURE__ */ g("div", { className: f1.popoverButtonContainer, children: [
|
|
4239
|
-
|
|
4253
|
+
i && /* @__PURE__ */ r(
|
|
4240
4254
|
e3,
|
|
4241
4255
|
{
|
|
4242
4256
|
className: "popoverButton",
|
|
4243
4257
|
onClick: Q,
|
|
4244
|
-
label:
|
|
4258
|
+
label: i,
|
|
4245
4259
|
variant: "secondary"
|
|
4246
4260
|
}
|
|
4247
4261
|
),
|
|
@@ -4262,28 +4276,28 @@ const Nr = z(
|
|
|
4262
4276
|
}
|
|
4263
4277
|
);
|
|
4264
4278
|
}
|
|
4265
|
-
),
|
|
4266
|
-
radioButtonContainer:
|
|
4267
|
-
radioButton:
|
|
4268
|
-
radioButtonLabel:
|
|
4269
|
-
},
|
|
4270
|
-
({ label: C, groupName: e, showLabel: t = !0, disabled: n = !1, error: l = !1, readOnly: o = !1, className: s = "", ...
|
|
4279
|
+
), vt = 16, ht = "_radioButtonContainer_1tw24_1", pt = "_radioButton_1tw24_1", Ht = "_radioButtonLabel_1tw24_100", a3 = {
|
|
4280
|
+
radioButtonContainer: ht,
|
|
4281
|
+
radioButton: pt,
|
|
4282
|
+
radioButtonLabel: Ht
|
|
4283
|
+
}, Vt = z(
|
|
4284
|
+
({ label: C, groupName: e, showLabel: t = !0, disabled: n = !1, error: l = !1, readOnly: o = !1, className: s = "", ...i }, c) => {
|
|
4271
4285
|
if (!(n && l))
|
|
4272
4286
|
return /* @__PURE__ */ g("div", { className: a3.radioButtonContainer, children: [
|
|
4273
4287
|
/* @__PURE__ */ r(
|
|
4274
4288
|
"input",
|
|
4275
4289
|
{
|
|
4276
|
-
ref:
|
|
4290
|
+
ref: c,
|
|
4277
4291
|
type: "radio",
|
|
4278
4292
|
id: C,
|
|
4279
4293
|
value: C,
|
|
4280
|
-
size:
|
|
4294
|
+
size: vt,
|
|
4281
4295
|
name: e,
|
|
4282
4296
|
className: R(a3.radioButton, s),
|
|
4283
4297
|
disabled: n,
|
|
4284
4298
|
"data-error": l,
|
|
4285
4299
|
"data-read-only": o,
|
|
4286
|
-
...
|
|
4300
|
+
...i
|
|
4287
4301
|
}
|
|
4288
4302
|
),
|
|
4289
4303
|
t && /* @__PURE__ */ r(
|
|
@@ -4300,14 +4314,14 @@ const Nr = z(
|
|
|
4300
4314
|
)
|
|
4301
4315
|
] });
|
|
4302
4316
|
}
|
|
4303
|
-
),
|
|
4304
|
-
radioButtonGroupContainer:
|
|
4305
|
-
radioButtonGroupHeader:
|
|
4306
|
-
groupTitle:
|
|
4307
|
-
groupHelpText:
|
|
4308
|
-
errorMessage:
|
|
4309
|
-
radioButtonGroup:
|
|
4310
|
-
},
|
|
4317
|
+
), Lt = "_radioButtonGroupContainer_hx6sc_1", Mt = "_radioButtonGroupHeader_hx6sc_9", Zt = "_groupTitle_hx6sc_9", ft = "_groupHelpText_hx6sc_20", mt = "_errorMessage_hx6sc_32", xt = "_radioButtonGroup_hx6sc_1", O1 = {
|
|
4318
|
+
radioButtonGroupContainer: Lt,
|
|
4319
|
+
radioButtonGroupHeader: Mt,
|
|
4320
|
+
groupTitle: Zt,
|
|
4321
|
+
groupHelpText: ft,
|
|
4322
|
+
errorMessage: mt,
|
|
4323
|
+
radioButtonGroup: xt
|
|
4324
|
+
}, Ar = z(
|
|
4311
4325
|
({
|
|
4312
4326
|
groupName: C,
|
|
4313
4327
|
items: e,
|
|
@@ -4316,8 +4330,8 @@ const Nr = z(
|
|
|
4316
4330
|
groupTitle: l = "",
|
|
4317
4331
|
showGroupTitle: o = !1,
|
|
4318
4332
|
groupHelpText: s = "",
|
|
4319
|
-
showHelpText:
|
|
4320
|
-
errorMessage:
|
|
4333
|
+
showHelpText: i = !1,
|
|
4334
|
+
errorMessage: c = "",
|
|
4321
4335
|
error: a = !1,
|
|
4322
4336
|
disabled: d = !1,
|
|
4323
4337
|
readOnly: v = !1,
|
|
@@ -4335,13 +4349,13 @@ const Nr = z(
|
|
|
4335
4349
|
"data-read-only": v,
|
|
4336
4350
|
children: [
|
|
4337
4351
|
l && o && /* @__PURE__ */ r("h3", { className: O1.groupTitle, children: l }),
|
|
4338
|
-
s &&
|
|
4339
|
-
|
|
4352
|
+
s && i && /* @__PURE__ */ r("p", { className: O1.groupHelpText, children: s }),
|
|
4353
|
+
c && a && /* @__PURE__ */ r("p", { className: O1.errorMessage, children: c })
|
|
4340
4354
|
]
|
|
4341
4355
|
}
|
|
4342
4356
|
),
|
|
4343
4357
|
/* @__PURE__ */ r("div", { className: O1.radioButtonGroup, "data-direction": t, children: e.map((Z, L) => /* @__PURE__ */ r(
|
|
4344
|
-
|
|
4358
|
+
Vt,
|
|
4345
4359
|
{
|
|
4346
4360
|
label: Z,
|
|
4347
4361
|
groupName: C,
|
|
@@ -4354,7 +4368,7 @@ const Nr = z(
|
|
|
4354
4368
|
)) })
|
|
4355
4369
|
] });
|
|
4356
4370
|
}
|
|
4357
|
-
),
|
|
4371
|
+
), Bt = "8px", St = "44px", bt = "24px", R1 = "8px", _t = {
|
|
4358
4372
|
primary: {
|
|
4359
4373
|
showSearchButton: !0,
|
|
4360
4374
|
showLeftIcon: !1
|
|
@@ -4363,7 +4377,7 @@ const Nr = z(
|
|
|
4363
4377
|
showSearchButton: !1,
|
|
4364
4378
|
showLeftIcon: !0
|
|
4365
4379
|
}
|
|
4366
|
-
},
|
|
4380
|
+
}, yt = 12, Ot = (C) => {
|
|
4367
4381
|
if (C === "error")
|
|
4368
4382
|
return "error";
|
|
4369
4383
|
if (C === "success")
|
|
@@ -4371,7 +4385,7 @@ const Nr = z(
|
|
|
4371
4385
|
}, O3 = {
|
|
4372
4386
|
"assistive-text": "_assistive-text_1gp40_1"
|
|
4373
4387
|
}, M3 = ({ label: C, appearance: e, showIcon: t, href: n, width: l }) => {
|
|
4374
|
-
const o =
|
|
4388
|
+
const o = Ot(e);
|
|
4375
4389
|
return /* @__PURE__ */ g("div", { className: O3["assistive-text"], "data-appearance": e, style: { width: `${l}px` }, children: [
|
|
4376
4390
|
t && o && /* @__PURE__ */ r(
|
|
4377
4391
|
A,
|
|
@@ -4379,7 +4393,7 @@ const Nr = z(
|
|
|
4379
4393
|
name: o,
|
|
4380
4394
|
appearance: "outlined",
|
|
4381
4395
|
className: O3[`assistive-icon-${e}`],
|
|
4382
|
-
size:
|
|
4396
|
+
size: yt
|
|
4383
4397
|
}
|
|
4384
4398
|
),
|
|
4385
4399
|
e === "link" ? /* @__PURE__ */ r(v3, { label: C, href: n, externalLink: !0 }) : /* @__PURE__ */ r("span", { children: C })
|
|
@@ -4388,35 +4402,35 @@ const Nr = z(
|
|
|
4388
4402
|
required: "(obligatoire)",
|
|
4389
4403
|
requiredIcon: "*",
|
|
4390
4404
|
optional: "(facultatif)"
|
|
4391
|
-
},
|
|
4405
|
+
}, Nt = {
|
|
4392
4406
|
"requirement-indicator": "_requirement-indicator_1546d_1"
|
|
4393
4407
|
}, K1 = ({ required: C, showLabelRequirement: e }) => {
|
|
4394
4408
|
const t = C ? e ? d3.required : d3.requiredIcon : d3.optional;
|
|
4395
4409
|
return /* @__PURE__ */ r(X, { children: (e || C) && /* @__PURE__ */ r(
|
|
4396
4410
|
"span",
|
|
4397
4411
|
{
|
|
4398
|
-
className:
|
|
4412
|
+
className: Nt["requirement-indicator"],
|
|
4399
4413
|
"data-required": C,
|
|
4400
4414
|
"data-show-label-requirement": e,
|
|
4401
4415
|
"aria-hidden": "true",
|
|
4402
4416
|
children: t
|
|
4403
4417
|
}
|
|
4404
4418
|
) });
|
|
4405
|
-
},
|
|
4406
|
-
container:
|
|
4407
|
-
inputContainer:
|
|
4408
|
-
input:
|
|
4409
|
-
inputBar:
|
|
4410
|
-
inputField:
|
|
4411
|
-
text:
|
|
4412
|
-
inputCounter:
|
|
4413
|
-
leftIcon:
|
|
4414
|
-
labelContainer:
|
|
4415
|
-
inputLabel:
|
|
4416
|
-
withLeftIcon:
|
|
4417
|
-
withRightIcon:
|
|
4418
|
-
rightIcon:
|
|
4419
|
-
},
|
|
4419
|
+
}, Ft = "_container_fb63b_1", kt = "_inputContainer_fb63b_10", It = "_input_fb63b_10", At = "_inputBar_fb63b_14", Dt = "_inputField_fb63b_14", Tt = "_text_fb63b_21", Rt = "_inputCounter_fb63b_25", Et = "_leftIcon_fb63b_28", Pt = "_labelContainer_fb63b_40", zt = "_inputLabel_fb63b_44", $t = "_withLeftIcon_fb63b_71", Kt = "_withRightIcon_fb63b_74", Ut = "_rightIcon_fb63b_82", J = {
|
|
4420
|
+
container: Ft,
|
|
4421
|
+
inputContainer: kt,
|
|
4422
|
+
input: It,
|
|
4423
|
+
inputBar: At,
|
|
4424
|
+
inputField: Dt,
|
|
4425
|
+
text: Tt,
|
|
4426
|
+
inputCounter: Rt,
|
|
4427
|
+
leftIcon: Et,
|
|
4428
|
+
labelContainer: Pt,
|
|
4429
|
+
inputLabel: zt,
|
|
4430
|
+
withLeftIcon: $t,
|
|
4431
|
+
withRightIcon: Kt,
|
|
4432
|
+
rightIcon: Ut
|
|
4433
|
+
}, Gt = z(
|
|
4420
4434
|
({
|
|
4421
4435
|
id: C,
|
|
4422
4436
|
label: e,
|
|
@@ -4425,8 +4439,8 @@ const Nr = z(
|
|
|
4425
4439
|
showCounter: l,
|
|
4426
4440
|
value: o,
|
|
4427
4441
|
leftIcon: s,
|
|
4428
|
-
showRightIcon:
|
|
4429
|
-
rightIconAction:
|
|
4442
|
+
showRightIcon: i = !0,
|
|
4443
|
+
rightIconAction: c = "clean",
|
|
4430
4444
|
showLabelRequirement: a = !1,
|
|
4431
4445
|
assistiveAppearance: d = "description",
|
|
4432
4446
|
showAssistiveIcon: v = !1,
|
|
@@ -4444,17 +4458,17 @@ const Nr = z(
|
|
|
4444
4458
|
highlighted: b,
|
|
4445
4459
|
...k
|
|
4446
4460
|
}, _) => {
|
|
4447
|
-
const y = K(null), x = (j) => ["visibilityOn", "visibilityOff"].includes(j) ? P ? "visibility-show" : "visibility-hide" : j === "clean" ? "cancel" : "", f = (j) => ["visibilityOn", "visibilityOff"].includes(j) ? P ? "show text" : "hide text" : j === "clean" ? "clear" : "", [O, H] = N(o ?? ""), [M, I] = N(O.length), [P, U] = N(!!
|
|
4461
|
+
const y = K(null), x = (j) => ["visibilityOn", "visibilityOff"].includes(j) ? P ? "visibility-show" : "visibility-hide" : j === "clean" ? "cancel" : "", f = (j) => ["visibilityOn", "visibilityOff"].includes(j) ? P ? "show text" : "hide text" : j === "clean" ? "clear" : "", [O, H] = N(o ?? ""), [M, I] = N(O.length), [P, U] = N(!!i && c === "visibilityOn");
|
|
4448
4462
|
E(() => {
|
|
4449
4463
|
o !== void 0 && (H(o), I(o.length));
|
|
4450
4464
|
}, [o]), E(() => {
|
|
4451
|
-
U(!!
|
|
4452
|
-
}, [
|
|
4465
|
+
U(!!i && c === "visibilityOn");
|
|
4466
|
+
}, [i, c]);
|
|
4453
4467
|
const q = (j) => {
|
|
4454
4468
|
const v1 = j.target.value;
|
|
4455
4469
|
H(v1), I(v1.length), B && B(v1);
|
|
4456
4470
|
}, T = () => {
|
|
4457
|
-
|
|
4471
|
+
c === "clean" && (H(""), I(0), B && B("")), ["visibilityOn", "visibilityOff"].includes(c) && c1();
|
|
4458
4472
|
}, Q = () => {
|
|
4459
4473
|
F && F(), T();
|
|
4460
4474
|
}, c1 = () => {
|
|
@@ -4462,8 +4476,8 @@ const Nr = z(
|
|
|
4462
4476
|
}, G = u ? "error" : s, V1 = R(
|
|
4463
4477
|
J.inputBar,
|
|
4464
4478
|
G ? J.withLeftIcon : "",
|
|
4465
|
-
|
|
4466
|
-
), D = l && typeof p == "number", o1 = x(
|
|
4479
|
+
c ? J.withRightIcon : ""
|
|
4480
|
+
), D = l && typeof p == "number", o1 = x(c), l1 = f(c), L1 = () => L || Z ? !1 : c === "clean" ? !!(O != null && O.length) && i : i && !!c;
|
|
4467
4481
|
return /* @__PURE__ */ g(
|
|
4468
4482
|
"div",
|
|
4469
4483
|
{
|
|
@@ -4561,23 +4575,23 @@ const Nr = z(
|
|
|
4561
4575
|
}
|
|
4562
4576
|
);
|
|
4563
4577
|
}
|
|
4564
|
-
),
|
|
4565
|
-
searchbarContainer:
|
|
4566
|
-
textInputWrapper:
|
|
4567
|
-
searchButton:
|
|
4578
|
+
), Wt = "_searchbarContainer_pn0xj_1", jt = "_textInputWrapper_pn0xj_7", qt = "_searchButton_pn0xj_19", w3 = {
|
|
4579
|
+
searchbarContainer: Wt,
|
|
4580
|
+
textInputWrapper: jt,
|
|
4581
|
+
searchButton: qt
|
|
4568
4582
|
};
|
|
4569
|
-
function
|
|
4583
|
+
function Yt(C, e) {
|
|
4570
4584
|
const t = {};
|
|
4571
|
-
return C === "primary" ? (t.borderRight = "none", t.borderRadius = `${R1} 0 0 ${R1}`, e || (t.paddingLeft =
|
|
4585
|
+
return C === "primary" ? (t.borderRight = "none", t.borderRadius = `${R1} 0 0 ${R1}`, e || (t.paddingLeft = Bt)) : C === "secondary" && (t.borderRadius = R1), t;
|
|
4572
4586
|
}
|
|
4573
|
-
function
|
|
4587
|
+
function Qt(C) {
|
|
4574
4588
|
return {
|
|
4575
|
-
width:
|
|
4589
|
+
width: St,
|
|
4576
4590
|
borderRadius: `0 ${R1} ${R1} 0`,
|
|
4577
|
-
height: C ?
|
|
4591
|
+
height: C ? bt : void 0
|
|
4578
4592
|
};
|
|
4579
4593
|
}
|
|
4580
|
-
const
|
|
4594
|
+
const Dr = z(
|
|
4581
4595
|
({
|
|
4582
4596
|
onSearch: C,
|
|
4583
4597
|
onChange: e,
|
|
@@ -4586,14 +4600,14 @@ const Ar = z(
|
|
|
4586
4600
|
label: l = "Rechercher",
|
|
4587
4601
|
disabled: o = !1,
|
|
4588
4602
|
showResetButton: s = !0,
|
|
4589
|
-
appearance:
|
|
4590
|
-
compactSpacing:
|
|
4603
|
+
appearance: i = "primary",
|
|
4604
|
+
compactSpacing: c,
|
|
4591
4605
|
value: a,
|
|
4592
4606
|
assistiveText: d,
|
|
4593
4607
|
style: v,
|
|
4594
4608
|
...h
|
|
4595
4609
|
}, u) => {
|
|
4596
|
-
const p =
|
|
4610
|
+
const p = _t[i], [Z, L] = N(!1), V = K(null);
|
|
4597
4611
|
E(() => {
|
|
4598
4612
|
const y = V.current;
|
|
4599
4613
|
if (!y) return;
|
|
@@ -4631,7 +4645,7 @@ const Ar = z(
|
|
|
4631
4645
|
rightIconAction: "clean",
|
|
4632
4646
|
onRightIconClick: w,
|
|
4633
4647
|
assistiveTextLabel: d,
|
|
4634
|
-
compactSpacing:
|
|
4648
|
+
compactSpacing: c,
|
|
4635
4649
|
placeholder: m,
|
|
4636
4650
|
leftIcon: p.showLeftIcon ? "search" : void 0,
|
|
4637
4651
|
...h
|
|
@@ -4645,20 +4659,20 @@ const Ar = z(
|
|
|
4645
4659
|
s,
|
|
4646
4660
|
w,
|
|
4647
4661
|
d,
|
|
4648
|
-
|
|
4662
|
+
c,
|
|
4649
4663
|
m,
|
|
4650
4664
|
p.showLeftIcon,
|
|
4651
4665
|
h
|
|
4652
4666
|
]
|
|
4653
4667
|
), k = j1(
|
|
4654
4668
|
() => ({
|
|
4655
|
-
...
|
|
4669
|
+
...Yt(i, p.showLeftIcon),
|
|
4656
4670
|
...v ?? {}
|
|
4657
4671
|
}),
|
|
4658
|
-
[
|
|
4659
|
-
), _ = j1(() =>
|
|
4660
|
-
return /* @__PURE__ */ r("div", { className: w3.searchbarContainer, role: "search", "data-appearance":
|
|
4661
|
-
|
|
4672
|
+
[i, p.showLeftIcon, v]
|
|
4673
|
+
), _ = j1(() => Qt(c), [c]);
|
|
4674
|
+
return /* @__PURE__ */ r("div", { className: w3.searchbarContainer, role: "search", "data-appearance": i, children: /* @__PURE__ */ r("div", { ref: V, className: w3.textInputWrapper, "data-disabled": o, children: /* @__PURE__ */ r(
|
|
4675
|
+
Gt,
|
|
4662
4676
|
{
|
|
4663
4677
|
id: n ?? "",
|
|
4664
4678
|
...b,
|
|
@@ -4676,36 +4690,31 @@ const Ar = z(
|
|
|
4676
4690
|
disabled: o,
|
|
4677
4691
|
"aria-label": l,
|
|
4678
4692
|
className: w3.searchButton,
|
|
4679
|
-
compactSpacing:
|
|
4693
|
+
compactSpacing: c,
|
|
4680
4694
|
style: _
|
|
4681
4695
|
}
|
|
4682
4696
|
)
|
|
4683
4697
|
}
|
|
4684
4698
|
) }) });
|
|
4685
4699
|
}
|
|
4686
|
-
),
|
|
4700
|
+
), Xt = (C, e) => e === 2 ? C === 0 ? "left" : "right" : C === 0 ? "left" : C === e - 1 ? "right" : "middle", Jt = (C, e, t) => {
|
|
4687
4701
|
var l;
|
|
4688
4702
|
let n = C < e.length - 2 ? C + 1 : 0;
|
|
4689
4703
|
for (; (l = e[n]) != null && l.classList.contains(t); )
|
|
4690
4704
|
n < e.length - 1 ? n++ : n = 0;
|
|
4691
4705
|
e[n].focus();
|
|
4692
|
-
},
|
|
4706
|
+
}, Cn = (C, e, t) => {
|
|
4693
4707
|
var l;
|
|
4694
4708
|
let n = C > 0 ? C - 1 : e.length - 1;
|
|
4695
4709
|
for (; (l = e[n]) != null && l.classList.contains(t); )
|
|
4696
4710
|
n > 0 ? n-- : n = e.length - 1;
|
|
4697
4711
|
e[n].focus();
|
|
4698
|
-
},
|
|
4712
|
+
}, en = (C, e) => {
|
|
4699
4713
|
const t = C < e.length - 1 ? C + 1 : 0;
|
|
4700
4714
|
e[t].focus();
|
|
4701
|
-
},
|
|
4715
|
+
}, tn = (C, e) => {
|
|
4702
4716
|
const t = C > 0 ? C - 1 : e.length - 1;
|
|
4703
4717
|
e[t].focus();
|
|
4704
|
-
}, tn = (C) => {
|
|
4705
|
-
if (C.length <= 1 || C.length > 3)
|
|
4706
|
-
return console.warn("SegmentedControl: 'options' should have 2 or 3 items."), !1;
|
|
4707
|
-
const e = C.filter((t) => t.icon).length;
|
|
4708
|
-
return e > 0 && e < C.length ? (console.warn("SegmentedControl: All options must either have an icon or none."), !1) : !0;
|
|
4709
4718
|
}, J3 = (C, e, t) => {
|
|
4710
4719
|
const [n, l] = N({ left: 0, bottom: 0, width: 0 }), o = $(() => {
|
|
4711
4720
|
if (!C.current) return;
|
|
@@ -4753,12 +4762,12 @@ const Ar = z(
|
|
|
4753
4762
|
};
|
|
4754
4763
|
window.addEventListener("keydown", n);
|
|
4755
4764
|
const l = () => {
|
|
4756
|
-
var s,
|
|
4765
|
+
var s, i;
|
|
4757
4766
|
if (t === "Tab") {
|
|
4758
|
-
const
|
|
4759
|
-
a ? a.focus() : (
|
|
4760
|
-
(
|
|
4761
|
-
)[0]) == null ||
|
|
4767
|
+
const c = (s = e.parentElement) == null ? void 0 : s.parentElement, a = c == null ? void 0 : c.querySelector("[data-selected='true']");
|
|
4768
|
+
a ? a.focus() : (i = Array.from(
|
|
4769
|
+
(c == null ? void 0 : c.querySelectorAll("." + s1.segment)) ?? []
|
|
4770
|
+
)[0]) == null || i.focus();
|
|
4762
4771
|
}
|
|
4763
4772
|
};
|
|
4764
4773
|
return (o = C.current) == null || o.addEventListener("focus", l), () => {
|
|
@@ -4773,8 +4782,8 @@ const Ar = z(
|
|
|
4773
4782
|
isSelected: l,
|
|
4774
4783
|
onClick: o,
|
|
4775
4784
|
badgeCount: s,
|
|
4776
|
-
badgeContent:
|
|
4777
|
-
badgeIcon:
|
|
4785
|
+
badgeContent: i,
|
|
4786
|
+
badgeIcon: c,
|
|
4778
4787
|
badgeType: a,
|
|
4779
4788
|
badgeSize: d,
|
|
4780
4789
|
showBadge: v,
|
|
@@ -4792,14 +4801,14 @@ const Ar = z(
|
|
|
4792
4801
|
), y = _.findIndex(
|
|
4793
4802
|
(x) => x === document.activeElement
|
|
4794
4803
|
);
|
|
4795
|
-
w.key === J1 ?
|
|
4804
|
+
w.key === J1 ? en(y, _) : w.key === X1 && tn(y, _);
|
|
4796
4805
|
}
|
|
4797
4806
|
}, L = (w) => {
|
|
4798
4807
|
if (w.key === A1) {
|
|
4799
4808
|
const m = document.activeElement, b = Array.from(p).indexOf(
|
|
4800
4809
|
m
|
|
4801
4810
|
);
|
|
4802
|
-
w.shiftKey ?
|
|
4811
|
+
w.shiftKey ? Cn(b, p, s1.segment) : Jt(b, p, s1.segment);
|
|
4803
4812
|
}
|
|
4804
4813
|
}, { onBlur: V, onKeyDown: B, onKeyUp: F } = B1(
|
|
4805
4814
|
{ onKeyUp: Z, onKeyDown: L },
|
|
@@ -4829,21 +4838,21 @@ const Ar = z(
|
|
|
4829
4838
|
children: [
|
|
4830
4839
|
l && /* @__PURE__ */ r(A, { name: "check-small", appearance: "filled", size: 24, className: s1["selected-icon"] }),
|
|
4831
4840
|
/* @__PURE__ */ r("div", { className: s1["segment-content"], children: e ? /* @__PURE__ */ r(A, { name: e, appearance: l ? "filled" : "outlined", size: 24 }) : /* @__PURE__ */ r("span", { className: s1["segment-label"], children: t }) }),
|
|
4832
|
-
U1({ showBadge: !!v, badgeContent:
|
|
4841
|
+
U1({ showBadge: !!v, badgeContent: i, badgeCount: s, badgeIcon: c }) && /* @__PURE__ */ r(C1, { count: s, content: i, icon: c, badgeType: a, size: d })
|
|
4833
4842
|
]
|
|
4834
4843
|
}
|
|
4835
4844
|
) });
|
|
4836
|
-
},
|
|
4845
|
+
}, Tr = z(
|
|
4837
4846
|
({ options: C, onChange: e, selectedSegment: t, ...n }, l) => {
|
|
4838
|
-
const o = K(null), s = J3(o, t),
|
|
4839
|
-
const d =
|
|
4847
|
+
const o = K(null), s = J3(o, t), i = (c) => {
|
|
4848
|
+
const d = c.currentTarget.getAttribute("id") || "";
|
|
4840
4849
|
e(d);
|
|
4841
4850
|
};
|
|
4842
|
-
return
|
|
4851
|
+
return /* @__PURE__ */ g(
|
|
4843
4852
|
"div",
|
|
4844
4853
|
{
|
|
4845
|
-
ref: (
|
|
4846
|
-
o.current =
|
|
4854
|
+
ref: (c) => {
|
|
4855
|
+
o.current = c, typeof l == "function" ? l(c) : l && (l.current = c);
|
|
4847
4856
|
},
|
|
4848
4857
|
role: "radiogroup",
|
|
4849
4858
|
className: s1["segmented-control"],
|
|
@@ -4856,19 +4865,19 @@ const Ar = z(
|
|
|
4856
4865
|
style: { left: s.left, top: s.top, width: s.width }
|
|
4857
4866
|
}
|
|
4858
4867
|
),
|
|
4859
|
-
C.map((
|
|
4868
|
+
C.map((c, a) => /* @__PURE__ */ r(
|
|
4860
4869
|
ln,
|
|
4861
4870
|
{
|
|
4862
|
-
position:
|
|
4863
|
-
onClick:
|
|
4864
|
-
isSelected: t ===
|
|
4865
|
-
...
|
|
4871
|
+
position: Xt(a, C.length),
|
|
4872
|
+
onClick: i,
|
|
4873
|
+
isSelected: t === c.id,
|
|
4874
|
+
...c
|
|
4866
4875
|
},
|
|
4867
|
-
`${
|
|
4876
|
+
`${c.id}-${a}`
|
|
4868
4877
|
))
|
|
4869
4878
|
]
|
|
4870
4879
|
}
|
|
4871
|
-
)
|
|
4880
|
+
);
|
|
4872
4881
|
}
|
|
4873
4882
|
), sn = 100, cn = 8, an = 112, r1 = {
|
|
4874
4883
|
"select-container": "_select-container_16j69_1",
|
|
@@ -4881,7 +4890,7 @@ const Ar = z(
|
|
|
4881
4890
|
"error-icon": "_error-icon_16j69_132",
|
|
4882
4891
|
"select-right-icons": "_select-right-icons_16j69_157",
|
|
4883
4892
|
"icon-button": "_icon-button_16j69_162"
|
|
4884
|
-
},
|
|
4893
|
+
}, Rr = z(
|
|
4885
4894
|
({
|
|
4886
4895
|
id: C,
|
|
4887
4896
|
label: e,
|
|
@@ -4890,8 +4899,8 @@ const Ar = z(
|
|
|
4890
4899
|
value: l,
|
|
4891
4900
|
showLabel: o = !0,
|
|
4892
4901
|
isError: s,
|
|
4893
|
-
assistiveAppearance:
|
|
4894
|
-
showAssistiveIcon:
|
|
4902
|
+
assistiveAppearance: i = "description",
|
|
4903
|
+
showAssistiveIcon: c = !1,
|
|
4895
4904
|
assistiveTextLink: a,
|
|
4896
4905
|
showLabelRequirement: d = !1,
|
|
4897
4906
|
assistiveTextLabel: v,
|
|
@@ -5014,8 +5023,8 @@ const Ar = z(
|
|
|
5014
5023
|
M3,
|
|
5015
5024
|
{
|
|
5016
5025
|
label: v,
|
|
5017
|
-
appearance: s ? "error" :
|
|
5018
|
-
showIcon:
|
|
5026
|
+
appearance: s ? "error" : i,
|
|
5027
|
+
showIcon: c,
|
|
5019
5028
|
href: a,
|
|
5020
5029
|
width: B
|
|
5021
5030
|
}
|
|
@@ -5043,8 +5052,8 @@ function Vn(C, e, t) {
|
|
|
5043
5052
|
const n = C.current, l = e.current;
|
|
5044
5053
|
if (!n || !l) return;
|
|
5045
5054
|
const o = () => {
|
|
5046
|
-
const
|
|
5047
|
-
n.style.setProperty("--content-height", `${
|
|
5055
|
+
const i = l.offsetHeight;
|
|
5056
|
+
n.style.setProperty("--content-height", `${i}px`);
|
|
5048
5057
|
};
|
|
5049
5058
|
o();
|
|
5050
5059
|
const s = new ResizeObserver(() => o());
|
|
@@ -5062,8 +5071,8 @@ const Ln = z(
|
|
|
5062
5071
|
showHeader: l = !0,
|
|
5063
5072
|
showFooter: o = !0,
|
|
5064
5073
|
children: s,
|
|
5065
|
-
appearance:
|
|
5066
|
-
collapsed:
|
|
5074
|
+
appearance: i = "brand",
|
|
5075
|
+
collapsed: c,
|
|
5067
5076
|
...a
|
|
5068
5077
|
}, d) => {
|
|
5069
5078
|
const v = K(null), h = K(null);
|
|
@@ -5073,10 +5082,10 @@ const Ln = z(
|
|
|
5073
5082
|
{
|
|
5074
5083
|
ref: d,
|
|
5075
5084
|
className: N1.sideNav,
|
|
5076
|
-
"data-collapsed":
|
|
5077
|
-
"data-appearance":
|
|
5085
|
+
"data-collapsed": c,
|
|
5086
|
+
"data-appearance": i,
|
|
5078
5087
|
style: {
|
|
5079
|
-
minWidth:
|
|
5088
|
+
minWidth: c ? dn : wn[C]
|
|
5080
5089
|
},
|
|
5081
5090
|
children: [
|
|
5082
5091
|
l && e && /* @__PURE__ */ r("div", { className: N1.sideNavHeader, children: e }),
|
|
@@ -5110,11 +5119,11 @@ function C6({
|
|
|
5110
5119
|
onFocus: l,
|
|
5111
5120
|
onBlur: o,
|
|
5112
5121
|
onClick: s,
|
|
5113
|
-
children:
|
|
5114
|
-
styleType:
|
|
5122
|
+
children: i,
|
|
5123
|
+
styleType: c = "item"
|
|
5115
5124
|
}) {
|
|
5116
|
-
const a =
|
|
5117
|
-
className:
|
|
5125
|
+
const a = c === "menu" ? m1 : E1, v = {
|
|
5126
|
+
className: c === "menu" ? a.navMenu : a.navItem,
|
|
5118
5127
|
tabIndex: t,
|
|
5119
5128
|
"aria-label": e,
|
|
5120
5129
|
...l && { onFocus: l },
|
|
@@ -5122,7 +5131,7 @@ function C6({
|
|
|
5122
5131
|
...s && { onClick: s },
|
|
5123
5132
|
...n && { onKeyDown: n }
|
|
5124
5133
|
};
|
|
5125
|
-
return C ? /* @__PURE__ */ r("a", { href: C, ...v, children:
|
|
5134
|
+
return C ? /* @__PURE__ */ r("a", { href: C, ...v, children: i }) : /* @__PURE__ */ r("span", { ...v, children: i });
|
|
5126
5135
|
}
|
|
5127
5136
|
function Nn(C = !1, e = !1) {
|
|
5128
5137
|
return C ? H1.s : e ? H1.l : H1.m;
|
|
@@ -5152,6 +5161,11 @@ function t6({ label: C, collapsed: e, children: t }) {
|
|
|
5152
5161
|
function n6(C) {
|
|
5153
5162
|
return C === !1 ? -1 : 0;
|
|
5154
5163
|
}
|
|
5164
|
+
const Fn = (C) => {
|
|
5165
|
+
if (!C || !(C instanceof HTMLElement)) return !1;
|
|
5166
|
+
const e = C.tagName.toLowerCase();
|
|
5167
|
+
return e === "input" || e === "textarea" || e === "select" || C.isContentEditable;
|
|
5168
|
+
};
|
|
5155
5169
|
function r6({
|
|
5156
5170
|
onEnterOrSpace: C,
|
|
5157
5171
|
onEscape: e,
|
|
@@ -5159,8 +5173,8 @@ function r6({
|
|
|
5159
5173
|
includeEscape: n = !1
|
|
5160
5174
|
} = {}) {
|
|
5161
5175
|
const l = $(
|
|
5162
|
-
(
|
|
5163
|
-
[e1, W].includes(
|
|
5176
|
+
(i) => {
|
|
5177
|
+
Fn(i.target) || ([e1, W].includes(i.key) && (i.preventDefault(), C == null || C()), i.key === z1 && n && (i.preventDefault(), e == null || e()));
|
|
5164
5178
|
},
|
|
5165
5179
|
[C, e, n]
|
|
5166
5180
|
), o = [
|
|
@@ -5180,8 +5194,8 @@ const H3 = z(
|
|
|
5180
5194
|
label: l,
|
|
5181
5195
|
collapsed: o,
|
|
5182
5196
|
link: s,
|
|
5183
|
-
isNested:
|
|
5184
|
-
parentMenuOpen:
|
|
5197
|
+
isNested: i,
|
|
5198
|
+
parentMenuOpen: c,
|
|
5185
5199
|
appearance: a = "brand",
|
|
5186
5200
|
active: d,
|
|
5187
5201
|
badge: v,
|
|
@@ -5198,7 +5212,7 @@ const H3 = z(
|
|
|
5198
5212
|
var w;
|
|
5199
5213
|
(w = p.current) == null || w.removeAttribute("data-focused");
|
|
5200
5214
|
}
|
|
5201
|
-
const B = n6(
|
|
5215
|
+
const B = n6(c), F = /* @__PURE__ */ g(X, { children: [
|
|
5202
5216
|
/* @__PURE__ */ r("div", { className: E1.navItemLeft, children: /* @__PURE__ */ r(
|
|
5203
5217
|
e6,
|
|
5204
5218
|
{
|
|
@@ -5206,7 +5220,7 @@ const H3 = z(
|
|
|
5206
5220
|
showIcon: t,
|
|
5207
5221
|
label: l,
|
|
5208
5222
|
collapsed: o,
|
|
5209
|
-
isNested:
|
|
5223
|
+
isNested: i,
|
|
5210
5224
|
styleType: "item"
|
|
5211
5225
|
}
|
|
5212
5226
|
) }),
|
|
@@ -5218,7 +5232,7 @@ const H3 = z(
|
|
|
5218
5232
|
className: E1.navItemContainer,
|
|
5219
5233
|
"data-collapsed": o,
|
|
5220
5234
|
"data-appearance": a,
|
|
5221
|
-
"data-nested":
|
|
5235
|
+
"data-nested": i,
|
|
5222
5236
|
"data-active": d,
|
|
5223
5237
|
onClick: n,
|
|
5224
5238
|
ref: (w) => {
|
|
@@ -5251,8 +5265,8 @@ const H3 = z(
|
|
|
5251
5265
|
collapsed: l,
|
|
5252
5266
|
link: o,
|
|
5253
5267
|
items: s = [],
|
|
5254
|
-
open:
|
|
5255
|
-
showMenuIcon:
|
|
5268
|
+
open: i,
|
|
5269
|
+
showMenuIcon: c = !0,
|
|
5256
5270
|
isNested: a,
|
|
5257
5271
|
parentMenuOpen: d,
|
|
5258
5272
|
appearance: v = "brand",
|
|
@@ -5260,7 +5274,7 @@ const H3 = z(
|
|
|
5260
5274
|
showDivider: u,
|
|
5261
5275
|
...p
|
|
5262
5276
|
}, Z) => {
|
|
5263
|
-
const [L, V] = N(!1), B =
|
|
5277
|
+
const [L, V] = N(!1), B = i !== void 0 ? i : L, F = i !== void 0;
|
|
5264
5278
|
function S() {
|
|
5265
5279
|
F || V(!L), t && t();
|
|
5266
5280
|
}
|
|
@@ -5272,7 +5286,7 @@ const H3 = z(
|
|
|
5272
5286
|
onEscape: w,
|
|
5273
5287
|
includeArrowKeys: !0,
|
|
5274
5288
|
includeEscape: !0
|
|
5275
|
-
}), b = s.length, k = !l && b, _ = B, y = n6(d), x = k &&
|
|
5289
|
+
}), b = s.length, k = !l && b, _ = B, y = n6(d), x = k && c ? /* @__PURE__ */ r(A, { name: "arrow-chevron-right", className: m1.menuIcon, "data-open": B }) : null, f = /* @__PURE__ */ g(X, { children: [
|
|
5276
5290
|
/* @__PURE__ */ r("div", { className: m1.menuContentLeft, children: /* @__PURE__ */ r(
|
|
5277
5291
|
e6,
|
|
5278
5292
|
{
|
|
@@ -5323,7 +5337,7 @@ const H3 = z(
|
|
|
5323
5337
|
link: M.link,
|
|
5324
5338
|
onClick: M.onClick,
|
|
5325
5339
|
items: M.items || [],
|
|
5326
|
-
showMenuIcon:
|
|
5340
|
+
showMenuIcon: c,
|
|
5327
5341
|
showDivider: M.showDivider,
|
|
5328
5342
|
isNested: !0,
|
|
5329
5343
|
parentMenuOpen: _,
|
|
@@ -5358,19 +5372,19 @@ const H3 = z(
|
|
|
5358
5372
|
u && /* @__PURE__ */ r(a1, { appearance: p3[v] })
|
|
5359
5373
|
] });
|
|
5360
5374
|
}
|
|
5361
|
-
),
|
|
5362
|
-
sideNavHeaderContainer:
|
|
5363
|
-
sideNavHeader:
|
|
5364
|
-
sideNavHeaderTitleContainer:
|
|
5365
|
-
sideNavHeaderTitle:
|
|
5366
|
-
sideNavHeaderIdentifier:
|
|
5367
|
-
sideNavHeaderVersion:
|
|
5368
|
-
sideNavBody:
|
|
5369
|
-
sideNavFooterContainer:
|
|
5370
|
-
sideNavFooter:
|
|
5371
|
-
sideNavFooterItems:
|
|
5372
|
-
collapsibleSection:
|
|
5373
|
-
},
|
|
5375
|
+
), kn = "_sideNavHeaderContainer_9bdkw_27", In = "_sideNavHeader_9bdkw_27", An = "_sideNavHeaderTitleContainer_9bdkw_64", Dn = "_sideNavHeaderTitle_9bdkw_64", Tn = "_sideNavHeaderIdentifier_9bdkw_102", Rn = "_sideNavHeaderVersion_9bdkw_143", En = "_sideNavBody_9bdkw_172", Pn = "_sideNavFooterContainer_9bdkw_195", zn = "_sideNavFooter_9bdkw_195", $n = "_sideNavFooterItems_9bdkw_208", Kn = "_collapsibleSection_9bdkw_225", t1 = {
|
|
5376
|
+
sideNavHeaderContainer: kn,
|
|
5377
|
+
sideNavHeader: In,
|
|
5378
|
+
sideNavHeaderTitleContainer: An,
|
|
5379
|
+
sideNavHeaderTitle: Dn,
|
|
5380
|
+
sideNavHeaderIdentifier: Tn,
|
|
5381
|
+
sideNavHeaderVersion: Rn,
|
|
5382
|
+
sideNavBody: En,
|
|
5383
|
+
sideNavFooterContainer: Pn,
|
|
5384
|
+
sideNavFooter: zn,
|
|
5385
|
+
sideNavFooterItems: $n,
|
|
5386
|
+
collapsibleSection: Kn
|
|
5387
|
+
}, Un = 300, Er = z(
|
|
5374
5388
|
({
|
|
5375
5389
|
size: C = "m",
|
|
5376
5390
|
collapsible: e,
|
|
@@ -5379,12 +5393,12 @@ const H3 = z(
|
|
|
5379
5393
|
items: l,
|
|
5380
5394
|
footerItems: o,
|
|
5381
5395
|
collapsed: s,
|
|
5382
|
-
defaultCollapsed:
|
|
5383
|
-
onCollapsedChange:
|
|
5396
|
+
defaultCollapsed: i = !1,
|
|
5397
|
+
onCollapsedChange: c,
|
|
5384
5398
|
appearance: a = "brand",
|
|
5385
5399
|
activeItem: d
|
|
5386
5400
|
}, v) => {
|
|
5387
|
-
const [h, u] = N(s ??
|
|
5401
|
+
const [h, u] = N(s ?? i), [p, Z] = N(!0);
|
|
5388
5402
|
E(() => {
|
|
5389
5403
|
s !== void 0 && u(s);
|
|
5390
5404
|
}, [s]), E(() => {
|
|
@@ -5393,13 +5407,13 @@ const H3 = z(
|
|
|
5393
5407
|
else {
|
|
5394
5408
|
const x = setTimeout(() => {
|
|
5395
5409
|
Z(!0);
|
|
5396
|
-
},
|
|
5410
|
+
}, Un);
|
|
5397
5411
|
return () => clearTimeout(x);
|
|
5398
5412
|
}
|
|
5399
5413
|
}, [h]);
|
|
5400
5414
|
const L = () => {
|
|
5401
5415
|
const x = !h;
|
|
5402
|
-
s === void 0 && u(x),
|
|
5416
|
+
s === void 0 && u(x), c == null || c(x);
|
|
5403
5417
|
}, V = h ? "arrow-double-right" : "arrow-double-left", B = p3[a], F = (x) => {
|
|
5404
5418
|
[e1, W].includes(x.key) && (x.preventDefault(), n != null && n.onClick && n.onClick());
|
|
5405
5419
|
}, { onKeyDown: S } = B1(
|
|
@@ -5476,7 +5490,7 @@ const H3 = z(
|
|
|
5476
5490
|
size: C,
|
|
5477
5491
|
collapsed: h,
|
|
5478
5492
|
appearance: a,
|
|
5479
|
-
style: {
|
|
5493
|
+
style: { height: "100vh" },
|
|
5480
5494
|
header: /* @__PURE__ */ g("div", { className: t1.sideNavHeaderContainer, children: [
|
|
5481
5495
|
/* @__PURE__ */ g("div", { className: t1.sideNavHeader, "data-collapsed": h, "data-appearance": a, children: [
|
|
5482
5496
|
_,
|
|
@@ -5506,7 +5520,7 @@ const H3 = z(
|
|
|
5506
5520
|
}
|
|
5507
5521
|
);
|
|
5508
5522
|
}
|
|
5509
|
-
),
|
|
5523
|
+
), Gn = {
|
|
5510
5524
|
s: 16,
|
|
5511
5525
|
m: 20,
|
|
5512
5526
|
l: 24
|
|
@@ -5514,14 +5528,14 @@ const H3 = z(
|
|
|
5514
5528
|
s: 20,
|
|
5515
5529
|
m: 24,
|
|
5516
5530
|
l: 28
|
|
5517
|
-
},
|
|
5518
|
-
splitButtonContainer:
|
|
5519
|
-
splitButtonLeft:
|
|
5520
|
-
splitButtonLabel:
|
|
5521
|
-
splitButtonDivider:
|
|
5522
|
-
splitButtonRight:
|
|
5523
|
-
splitButtonRightIconContainer:
|
|
5524
|
-
},
|
|
5531
|
+
}, Wn = "_splitButtonContainer_906zy_1", jn = "_splitButtonLeft_906zy_26", qn = "_splitButtonLabel_906zy_44", Yn = "_splitButtonDivider_906zy_128", Qn = "_splitButtonRight_906zy_139", Xn = "_splitButtonRightIconContainer_906zy_232", h1 = {
|
|
5532
|
+
splitButtonContainer: Wn,
|
|
5533
|
+
splitButtonLeft: jn,
|
|
5534
|
+
splitButtonLabel: qn,
|
|
5535
|
+
splitButtonDivider: Yn,
|
|
5536
|
+
splitButtonRight: Qn,
|
|
5537
|
+
splitButtonRightIconContainer: Xn
|
|
5538
|
+
}, Pr = z(
|
|
5525
5539
|
({
|
|
5526
5540
|
appearance: C = "primary",
|
|
5527
5541
|
size: e = "m",
|
|
@@ -5530,8 +5544,8 @@ const H3 = z(
|
|
|
5530
5544
|
position: l = "bottom-start",
|
|
5531
5545
|
className: o,
|
|
5532
5546
|
icon: s,
|
|
5533
|
-
onClick:
|
|
5534
|
-
disabled:
|
|
5547
|
+
onClick: i,
|
|
5548
|
+
disabled: c,
|
|
5535
5549
|
ariaLabelRight: a,
|
|
5536
5550
|
options: d,
|
|
5537
5551
|
showBadge: v,
|
|
@@ -5562,18 +5576,18 @@ const H3 = z(
|
|
|
5562
5576
|
className: h1.splitButtonLeft,
|
|
5563
5577
|
"data-appearance": C,
|
|
5564
5578
|
"data-size": e,
|
|
5565
|
-
onClick:
|
|
5566
|
-
disabled:
|
|
5579
|
+
onClick: i,
|
|
5580
|
+
disabled: c,
|
|
5567
5581
|
"data-testid": "Main action button",
|
|
5568
5582
|
...V,
|
|
5569
5583
|
ref: m,
|
|
5570
5584
|
children: [
|
|
5571
|
-
s && /* @__PURE__ */ r(A, { name: s, size:
|
|
5585
|
+
s && /* @__PURE__ */ r(A, { name: s, size: Gn[e] }),
|
|
5572
5586
|
/* @__PURE__ */ r("p", { "data-size": e, className: h1.splitButtonLabel, children: t })
|
|
5573
5587
|
]
|
|
5574
5588
|
}
|
|
5575
5589
|
),
|
|
5576
|
-
/* @__PURE__ */ r("div", { className: h1.splitButtonDivider, "data-appearance": C, "data-disabled":
|
|
5590
|
+
/* @__PURE__ */ r("div", { className: h1.splitButtonDivider, "data-appearance": C, "data-disabled": c }),
|
|
5577
5591
|
/* @__PURE__ */ r(
|
|
5578
5592
|
W1,
|
|
5579
5593
|
{
|
|
@@ -5598,7 +5612,7 @@ const H3 = z(
|
|
|
5598
5612
|
"data-appearance": C,
|
|
5599
5613
|
"data-size": e,
|
|
5600
5614
|
"data-testid": "Menu button",
|
|
5601
|
-
disabled:
|
|
5615
|
+
disabled: c,
|
|
5602
5616
|
onClick: () => S(!0),
|
|
5603
5617
|
onKeyDown: y,
|
|
5604
5618
|
onKeyUp: x,
|
|
@@ -5619,7 +5633,7 @@ const H3 = z(
|
|
|
5619
5633
|
"data-appearance": C,
|
|
5620
5634
|
"data-size": e,
|
|
5621
5635
|
"data-testid": "Menu button",
|
|
5622
|
-
disabled:
|
|
5636
|
+
disabled: c,
|
|
5623
5637
|
onClick: () => S(!0),
|
|
5624
5638
|
onKeyDown: y,
|
|
5625
5639
|
onKeyUp: x,
|
|
@@ -5651,12 +5665,12 @@ const H3 = z(
|
|
|
5651
5665
|
}
|
|
5652
5666
|
);
|
|
5653
5667
|
}
|
|
5654
|
-
),
|
|
5668
|
+
), Jn = 24, Cr = 40, Y1 = {
|
|
5655
5669
|
"switch-container": "_switch-container_n4wlg_1",
|
|
5656
5670
|
"switch-icon-check": "_switch-icon-check_n4wlg_7",
|
|
5657
5671
|
switch: "_switch_n4wlg_1",
|
|
5658
5672
|
"switch-label": "_switch-label_n4wlg_110"
|
|
5659
|
-
},
|
|
5673
|
+
}, zr = ({
|
|
5660
5674
|
label: C,
|
|
5661
5675
|
appearance: e = "brand",
|
|
5662
5676
|
showLabel: t = !0,
|
|
@@ -5664,11 +5678,11 @@ const H3 = z(
|
|
|
5664
5678
|
disabled: l = !1,
|
|
5665
5679
|
readOnly: o = !1,
|
|
5666
5680
|
checked: s = !1,
|
|
5667
|
-
onChange:
|
|
5668
|
-
...
|
|
5681
|
+
onChange: i,
|
|
5682
|
+
...c
|
|
5669
5683
|
}) => {
|
|
5670
5684
|
const [a, d] = N(s), v = (u) => {
|
|
5671
|
-
d(u.target.checked),
|
|
5685
|
+
d(u.target.checked), i == null || i(u);
|
|
5672
5686
|
}, h = (u) => {
|
|
5673
5687
|
if (o || l)
|
|
5674
5688
|
u.stopPropagation();
|
|
@@ -5702,10 +5716,10 @@ const H3 = z(
|
|
|
5702
5716
|
defaultChecked: a,
|
|
5703
5717
|
readOnly: o,
|
|
5704
5718
|
style: {
|
|
5705
|
-
minHeight:
|
|
5706
|
-
minWidth:
|
|
5719
|
+
minHeight: Jn,
|
|
5720
|
+
minWidth: Cr
|
|
5707
5721
|
},
|
|
5708
|
-
...
|
|
5722
|
+
...c
|
|
5709
5723
|
}
|
|
5710
5724
|
),
|
|
5711
5725
|
/* @__PURE__ */ g("div", { className: Y1["switch-icon-check"], "data-checked": a, children: [
|
|
@@ -5716,39 +5730,39 @@ const H3 = z(
|
|
|
5716
5730
|
]
|
|
5717
5731
|
}
|
|
5718
5732
|
);
|
|
5719
|
-
},
|
|
5720
|
-
if (!
|
|
5733
|
+
}, er = (C, e, t) => {
|
|
5734
|
+
if (!tr(C, e, t)) return;
|
|
5721
5735
|
const n = e.getBoundingClientRect(), l = C.getBoundingClientRect();
|
|
5722
5736
|
if (t === "horizontal") {
|
|
5723
|
-
const o = e.scrollLeft +
|
|
5737
|
+
const o = e.scrollLeft + nr(l, n);
|
|
5724
5738
|
e.scrollTo({ left: o, behavior: "smooth" });
|
|
5725
5739
|
} else {
|
|
5726
|
-
const o = e.scrollTop +
|
|
5740
|
+
const o = e.scrollTop + rr(l, n);
|
|
5727
5741
|
e.scrollTo({ top: o, behavior: "smooth" });
|
|
5728
5742
|
}
|
|
5729
|
-
},
|
|
5743
|
+
}, tr = (C, e, t) => {
|
|
5730
5744
|
if (e && C) {
|
|
5731
|
-
const n = e.getBoundingClientRect(), l = C.getBoundingClientRect(), o = l.left < n.left, s = l.right > n.right,
|
|
5732
|
-
return t === "horizontal" ? o || s :
|
|
5745
|
+
const n = e.getBoundingClientRect(), l = C.getBoundingClientRect(), o = l.left < n.left, s = l.right > n.right, i = l.top < n.top, c = l.bottom > n.bottom;
|
|
5746
|
+
return t === "horizontal" ? o || s : i || c;
|
|
5733
5747
|
}
|
|
5734
5748
|
return !1;
|
|
5735
|
-
},
|
|
5749
|
+
}, nr = (C, e) => {
|
|
5736
5750
|
const t = C.left < e.left, n = C.right > e.right;
|
|
5737
5751
|
return t ? C.left - e.left : n ? C.right - e.right : 0;
|
|
5738
|
-
},
|
|
5752
|
+
}, rr = (C, e) => {
|
|
5739
5753
|
const t = C.top < e.top, n = C.bottom > e.bottom;
|
|
5740
5754
|
return t ? C.top - e.top : n ? C.bottom - e.bottom : 0;
|
|
5741
|
-
},
|
|
5755
|
+
}, or = "_tab_1m1zv_1", F1 = {
|
|
5742
5756
|
"tab-container": "_tab-container_1m1zv_1",
|
|
5743
|
-
tab:
|
|
5757
|
+
tab: or,
|
|
5744
5758
|
"tab-selected-indicator": "_tab-selected-indicator_1m1zv_43",
|
|
5745
5759
|
"tab-border-horizontal": "_tab-border-horizontal_1m1zv_64",
|
|
5746
5760
|
"tab-border-vertical": "_tab-border-vertical_1m1zv_76",
|
|
5747
5761
|
"tab-dropdown-button": "_tab-dropdown-button_1m1zv_85"
|
|
5748
|
-
},
|
|
5749
|
-
tabitem:
|
|
5762
|
+
}, lr = "_tabitem_1cdnb_1", u3 = {
|
|
5763
|
+
tabitem: lr,
|
|
5750
5764
|
"segment-hover-indicator": "_segment-hover-indicator_1cdnb_54"
|
|
5751
|
-
},
|
|
5765
|
+
}, sr = z(
|
|
5752
5766
|
({
|
|
5753
5767
|
id: C,
|
|
5754
5768
|
panelId: e,
|
|
@@ -5757,8 +5771,8 @@ const H3 = z(
|
|
|
5757
5771
|
showBadge: l,
|
|
5758
5772
|
badgeCount: o,
|
|
5759
5773
|
badgeContent: s = "empty",
|
|
5760
|
-
badgeIcon:
|
|
5761
|
-
onClick:
|
|
5774
|
+
badgeIcon: i,
|
|
5775
|
+
onClick: c,
|
|
5762
5776
|
icon: a,
|
|
5763
5777
|
badgeType: d = "indicator",
|
|
5764
5778
|
compactSpacing: v,
|
|
@@ -5770,10 +5784,10 @@ const H3 = z(
|
|
|
5770
5784
|
const V = {
|
|
5771
5785
|
count: o,
|
|
5772
5786
|
content: s,
|
|
5773
|
-
icon:
|
|
5787
|
+
icon: i,
|
|
5774
5788
|
badgeType: d
|
|
5775
|
-
}, B = o && o > 0 && s === "number", S = !u && (l || B || s === "icon" &&
|
|
5776
|
-
u ? H.preventDefault() : (
|
|
5789
|
+
}, B = o && o > 0 && s === "number", S = !u && (l || B || s === "icon" && i), w = K(null), [m, b] = N(null), k = (H) => {
|
|
5790
|
+
u ? H.preventDefault() : (c(H), b((M) => ({ ...M, opacity: 0 })));
|
|
5777
5791
|
}, _ = $(
|
|
5778
5792
|
(H) => {
|
|
5779
5793
|
w.current && !n && b(H === "mouseover" ? (M) => ({
|
|
@@ -5883,7 +5897,7 @@ const H3 = z(
|
|
|
5883
5897
|
)
|
|
5884
5898
|
] });
|
|
5885
5899
|
}
|
|
5886
|
-
),
|
|
5900
|
+
), $r = z(
|
|
5887
5901
|
({
|
|
5888
5902
|
options: C,
|
|
5889
5903
|
onChange: e,
|
|
@@ -5892,8 +5906,8 @@ const H3 = z(
|
|
|
5892
5906
|
selectedTabId: l,
|
|
5893
5907
|
compactSpacing: o,
|
|
5894
5908
|
overflowType: s = "scrollable",
|
|
5895
|
-
inverted:
|
|
5896
|
-
},
|
|
5909
|
+
inverted: i = !1
|
|
5910
|
+
}, c) => {
|
|
5897
5911
|
const [a, d] = N(!1), [v, h] = N(!1), [u, p] = N(!1), [Z, L] = N(!1), [V, B] = N(!1), [F, S] = N(!1), w = K(null), m = J3(
|
|
5898
5912
|
w,
|
|
5899
5913
|
l,
|
|
@@ -5917,7 +5931,7 @@ const H3 = z(
|
|
|
5917
5931
|
const M = H.currentTarget, I = M.getAttribute("id") || "";
|
|
5918
5932
|
e(I), S(!1);
|
|
5919
5933
|
const P = w.current;
|
|
5920
|
-
P &&
|
|
5934
|
+
P && er(M, P, t);
|
|
5921
5935
|
}, x = () => {
|
|
5922
5936
|
if (w.current) {
|
|
5923
5937
|
const H = t === "horizontal" ? { left: -300 } : { top: -300 };
|
|
@@ -5969,7 +5983,7 @@ const H3 = z(
|
|
|
5969
5983
|
"div",
|
|
5970
5984
|
{
|
|
5971
5985
|
ref: (H) => {
|
|
5972
|
-
w.current = H, typeof
|
|
5986
|
+
w.current = H, typeof c == "function" ? c(H) : c && (c.current = H);
|
|
5973
5987
|
},
|
|
5974
5988
|
role: "tablist",
|
|
5975
5989
|
"aria-label": "Sample Tabs",
|
|
@@ -6004,7 +6018,7 @@ const H3 = z(
|
|
|
6004
6018
|
className: F1["tab-dropdown-button"],
|
|
6005
6019
|
onClick: () => S((H) => !H),
|
|
6006
6020
|
"aria-label": "Select tab",
|
|
6007
|
-
"data-inverted":
|
|
6021
|
+
"data-inverted": i,
|
|
6008
6022
|
children: [
|
|
6009
6023
|
O && O.icon && /* @__PURE__ */ r(A, { name: O.icon, appearance: "filled" }),
|
|
6010
6024
|
O && /* @__PURE__ */ r("div", { style: { flexShrink: 0 }, children: O == null ? void 0 : O.label }),
|
|
@@ -6040,14 +6054,14 @@ const H3 = z(
|
|
|
6040
6054
|
}
|
|
6041
6055
|
),
|
|
6042
6056
|
C.map((H, M) => /* @__PURE__ */ r(
|
|
6043
|
-
|
|
6057
|
+
sr,
|
|
6044
6058
|
{
|
|
6045
6059
|
onClick: y,
|
|
6046
6060
|
isSelected: l === H.id,
|
|
6047
6061
|
compactSpacing: o,
|
|
6048
6062
|
direction: t,
|
|
6049
6063
|
"data-hidden": k,
|
|
6050
|
-
inverted:
|
|
6064
|
+
inverted: i,
|
|
6051
6065
|
...H
|
|
6052
6066
|
},
|
|
6053
6067
|
`${H.id}-${M}`
|
|
@@ -6085,40 +6099,40 @@ const H3 = z(
|
|
|
6085
6099
|
)
|
|
6086
6100
|
] });
|
|
6087
6101
|
}
|
|
6088
|
-
),
|
|
6089
|
-
tag:
|
|
6102
|
+
), ir = "_tag_1p4f3_1", F3 = {
|
|
6103
|
+
tag: ir,
|
|
6090
6104
|
"tag-label": "_tag-label_1p4f3_15"
|
|
6091
6105
|
}, k3 = {
|
|
6092
6106
|
success: "check-circle",
|
|
6093
6107
|
information: "info",
|
|
6094
6108
|
warning: "warning",
|
|
6095
6109
|
alert: "dangerous"
|
|
6096
|
-
},
|
|
6097
|
-
({ tagType: C = "status", status: e, color: t, compactSpacing: n, label: l, showLeftIcon: o = !1, iconName: s, ...
|
|
6110
|
+
}, Kr = z(
|
|
6111
|
+
({ tagType: C = "status", status: e, color: t, compactSpacing: n, label: l, showLeftIcon: o = !1, iconName: s, ...i }, c) => (C === "status" && e && k3[e] && (s = k3[e]), s && !I1(s) ? (console.warn(`Tag: Invalid icon name "${s}". Please use a valid icon key.`), null) : /* @__PURE__ */ g(
|
|
6098
6112
|
"div",
|
|
6099
6113
|
{
|
|
6100
|
-
ref:
|
|
6114
|
+
ref: c,
|
|
6101
6115
|
className: F3.tag,
|
|
6102
6116
|
"data-tag-type": C,
|
|
6103
6117
|
"data-status": e,
|
|
6104
6118
|
"data-color": t,
|
|
6105
6119
|
"data-compact-spacing": n,
|
|
6106
|
-
...
|
|
6120
|
+
...i,
|
|
6107
6121
|
children: [
|
|
6108
6122
|
s && I1(s) && (C === "status" || o) && /* @__PURE__ */ r(A, { name: s, size: 16 }),
|
|
6109
6123
|
l && /* @__PURE__ */ r("label", { className: F3["tag-label"], "data-compact-spacing": n, children: l })
|
|
6110
6124
|
]
|
|
6111
6125
|
}
|
|
6112
6126
|
))
|
|
6113
|
-
),
|
|
6114
|
-
container:
|
|
6127
|
+
), cr = "_container_16ne6_1", ar = "_textarea_16ne6_44", dr = "_label_16ne6_137", p1 = {
|
|
6128
|
+
container: cr,
|
|
6115
6129
|
"top-position-container": "_top-position-container_16ne6_9",
|
|
6116
6130
|
"header-container": "_header-container_16ne6_30",
|
|
6117
6131
|
"textarea-container": "_textarea-container_16ne6_44",
|
|
6118
|
-
textarea:
|
|
6132
|
+
textarea: ar,
|
|
6119
6133
|
"character-counter": "_character-counter_16ne6_126",
|
|
6120
|
-
label:
|
|
6121
|
-
},
|
|
6134
|
+
label: dr
|
|
6135
|
+
}, Ur = z(
|
|
6122
6136
|
({
|
|
6123
6137
|
className: C = "",
|
|
6124
6138
|
id: e,
|
|
@@ -6127,8 +6141,8 @@ const H3 = z(
|
|
|
6127
6141
|
onChange: l,
|
|
6128
6142
|
onBlur: o,
|
|
6129
6143
|
label: s,
|
|
6130
|
-
labelId:
|
|
6131
|
-
labelPosition:
|
|
6144
|
+
labelId: i,
|
|
6145
|
+
labelPosition: c = "top",
|
|
6132
6146
|
assistiveTextLabel: a,
|
|
6133
6147
|
assistiveTextAppearance: d = "description",
|
|
6134
6148
|
["aria-labelledby"]: v,
|
|
@@ -6147,14 +6161,14 @@ const H3 = z(
|
|
|
6147
6161
|
}, y = (x) => {
|
|
6148
6162
|
l && l(x), Z && m(x.target.value.length);
|
|
6149
6163
|
};
|
|
6150
|
-
return /* @__PURE__ */ g("div", { className: p1.container, "data-label-position":
|
|
6151
|
-
s &&
|
|
6164
|
+
return /* @__PURE__ */ g("div", { className: p1.container, "data-label-position": c, children: [
|
|
6165
|
+
s && c === "side" && /* @__PURE__ */ g("label", { id: i, className: p1.label, htmlFor: e, "data-label-position": c, children: [
|
|
6152
6166
|
s,
|
|
6153
6167
|
/* @__PURE__ */ r(K1, { required: n, showLabelRequirement: u })
|
|
6154
6168
|
] }),
|
|
6155
|
-
/* @__PURE__ */ g("div", { className: p1["top-position-container"], "data-label-position":
|
|
6156
|
-
/* @__PURE__ */ g("div", { className: p1["header-container"], "data-label-position":
|
|
6157
|
-
s &&
|
|
6169
|
+
/* @__PURE__ */ g("div", { className: p1["top-position-container"], "data-label-position": c, children: [
|
|
6170
|
+
/* @__PURE__ */ g("div", { className: p1["header-container"], "data-label-position": c, children: [
|
|
6171
|
+
s && c === "top" && /* @__PURE__ */ g("label", { id: i, className: p1.label, htmlFor: e, "data-label-position": c, children: [
|
|
6158
6172
|
s,
|
|
6159
6173
|
/* @__PURE__ */ r(K1, { required: n, showLabelRequirement: u })
|
|
6160
6174
|
] }),
|
|
@@ -6164,7 +6178,7 @@ const H3 = z(
|
|
|
6164
6178
|
Z
|
|
6165
6179
|
] })
|
|
6166
6180
|
] }),
|
|
6167
|
-
/* @__PURE__ */ g("div", { className: p1["textarea-container"], "data-label-position":
|
|
6181
|
+
/* @__PURE__ */ g("div", { className: p1["textarea-container"], "data-label-position": c, children: [
|
|
6168
6182
|
/* @__PURE__ */ r(
|
|
6169
6183
|
"textarea",
|
|
6170
6184
|
{
|
|
@@ -6177,7 +6191,7 @@ const H3 = z(
|
|
|
6177
6191
|
"data-resizeable": p,
|
|
6178
6192
|
"data-assistive-text-appearance": d,
|
|
6179
6193
|
onChange: y,
|
|
6180
|
-
"aria-labelledby":
|
|
6194
|
+
"aria-labelledby": i || v,
|
|
6181
6195
|
maxLength: Z,
|
|
6182
6196
|
onBlur: _,
|
|
6183
6197
|
defaultValue: L,
|
|
@@ -6200,63 +6214,63 @@ const H3 = z(
|
|
|
6200
6214
|
}
|
|
6201
6215
|
);
|
|
6202
6216
|
let Q1;
|
|
6203
|
-
const
|
|
6204
|
-
function
|
|
6217
|
+
const wr = new Uint8Array(16);
|
|
6218
|
+
function ur() {
|
|
6205
6219
|
if (!Q1 && (Q1 = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Q1))
|
|
6206
6220
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
6207
|
-
return Q1(
|
|
6221
|
+
return Q1(wr);
|
|
6208
6222
|
}
|
|
6209
6223
|
const Y = [];
|
|
6210
6224
|
for (let C = 0; C < 256; ++C)
|
|
6211
6225
|
Y.push((C + 256).toString(16).slice(1));
|
|
6212
|
-
function
|
|
6226
|
+
function gr(C, e = 0) {
|
|
6213
6227
|
return Y[C[e + 0]] + Y[C[e + 1]] + Y[C[e + 2]] + Y[C[e + 3]] + "-" + Y[C[e + 4]] + Y[C[e + 5]] + "-" + Y[C[e + 6]] + Y[C[e + 7]] + "-" + Y[C[e + 8]] + Y[C[e + 9]] + "-" + Y[C[e + 10]] + Y[C[e + 11]] + Y[C[e + 12]] + Y[C[e + 13]] + Y[C[e + 14]] + Y[C[e + 15]];
|
|
6214
6228
|
}
|
|
6215
|
-
const
|
|
6216
|
-
randomUUID:
|
|
6229
|
+
const vr = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), I3 = {
|
|
6230
|
+
randomUUID: vr
|
|
6217
6231
|
};
|
|
6218
|
-
function
|
|
6232
|
+
function hr(C, e, t) {
|
|
6219
6233
|
if (I3.randomUUID && !C)
|
|
6220
6234
|
return I3.randomUUID();
|
|
6221
6235
|
C = C || {};
|
|
6222
|
-
const n = C.random || (C.rng ||
|
|
6223
|
-
return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128,
|
|
6236
|
+
const n = C.random || (C.rng || ur)();
|
|
6237
|
+
return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, gr(n);
|
|
6224
6238
|
}
|
|
6225
6239
|
const l6 = A3(null), s6 = () => {
|
|
6226
6240
|
const C = V3(l6);
|
|
6227
6241
|
if (!C)
|
|
6228
6242
|
throw new Error("Toast component must be used within a ToastQueueProvider");
|
|
6229
6243
|
return C;
|
|
6230
|
-
},
|
|
6231
|
-
const [t, n] = N(e), { isFirstInQueue: l, isInQueue: o, queue: s } = s6(),
|
|
6244
|
+
}, pr = (C, e) => {
|
|
6245
|
+
const [t, n] = N(e), { isFirstInQueue: l, isInQueue: o, queue: s } = s6(), i = $(() => {
|
|
6232
6246
|
n(!1);
|
|
6233
|
-
}, []),
|
|
6247
|
+
}, []), c = () => {
|
|
6234
6248
|
n(!0);
|
|
6235
6249
|
};
|
|
6236
6250
|
return E(() => {
|
|
6237
|
-
s.length > 0 && (l(C) ?
|
|
6238
|
-
}, [s.length, l, o,
|
|
6239
|
-
},
|
|
6240
|
-
short:
|
|
6241
|
-
medium:
|
|
6242
|
-
long:
|
|
6243
|
-
},
|
|
6251
|
+
s.length > 0 && (l(C) ? c() : o(C) && i());
|
|
6252
|
+
}, [s.length, l, o, i, C]), { isInternalOpen: t, hideToast: i, showToast: c };
|
|
6253
|
+
}, Hr = 3e3, Vr = 5e3, Lr = 8e3, Mr = {
|
|
6254
|
+
short: Hr,
|
|
6255
|
+
medium: Vr,
|
|
6256
|
+
long: Lr
|
|
6257
|
+
}, Zr = ({ shouldStartTimer: C, duration: e }, t) => {
|
|
6244
6258
|
const n = K(null), l = $(() => {
|
|
6245
6259
|
n.current = setTimeout(() => {
|
|
6246
6260
|
t();
|
|
6247
|
-
},
|
|
6261
|
+
}, Mr[e]);
|
|
6248
6262
|
}, [e, t]), o = $(() => {
|
|
6249
6263
|
n.current && (clearTimeout(n.current), n.current = null);
|
|
6250
6264
|
}, []);
|
|
6251
6265
|
return E(() => (C && (o(), l()), () => {
|
|
6252
6266
|
o();
|
|
6253
6267
|
}), [l, o, C]), { initializeTimer: l, removeTimer: o };
|
|
6254
|
-
},
|
|
6255
|
-
toast:
|
|
6268
|
+
}, fr = "_toast_ara8a_1", T1 = {
|
|
6269
|
+
toast: fr,
|
|
6256
6270
|
"toast-message": "_toast-message_ara8a_53",
|
|
6257
6271
|
"toast-icon": "_toast-icon_ara8a_68",
|
|
6258
6272
|
"toast-content": "_toast-content_ara8a_71"
|
|
6259
|
-
},
|
|
6273
|
+
}, Gr = z(
|
|
6260
6274
|
({
|
|
6261
6275
|
id: C,
|
|
6262
6276
|
message: e,
|
|
@@ -6265,8 +6279,8 @@ const l6 = A3(null), s6 = () => {
|
|
|
6265
6279
|
placement: l = "bottom-right",
|
|
6266
6280
|
isOpen: o = !0,
|
|
6267
6281
|
autoDismiss: s = !0,
|
|
6268
|
-
actionButtonLabel:
|
|
6269
|
-
onActionButtonClick:
|
|
6282
|
+
actionButtonLabel: i,
|
|
6283
|
+
onActionButtonClick: c,
|
|
6270
6284
|
duration: a = "medium",
|
|
6271
6285
|
onClose: d,
|
|
6272
6286
|
iconName: v,
|
|
@@ -6274,7 +6288,7 @@ const l6 = A3(null), s6 = () => {
|
|
|
6274
6288
|
showActionButton: u = !0,
|
|
6275
6289
|
...p
|
|
6276
6290
|
}, Z) => {
|
|
6277
|
-
const L = !!
|
|
6291
|
+
const L = !!i && u, V = s && !L, [B] = N(C || hr()), { isInternalOpen: F, hideToast: S } = pr(B, o), { addToQueue: w, removeFromQueue: m } = s6(), { shouldRender: b, isAnimating: k } = D1(F, 300), { initializeTimer: _, removeTimer: y } = Zr(
|
|
6278
6292
|
{ shouldStartTimer: V && F, duration: a },
|
|
6279
6293
|
() => {
|
|
6280
6294
|
O();
|
|
@@ -6322,8 +6336,8 @@ const l6 = A3(null), s6 = () => {
|
|
|
6322
6336
|
e3,
|
|
6323
6337
|
{
|
|
6324
6338
|
variant: t === "neutral" ? "reverse" : "transparent",
|
|
6325
|
-
onClick:
|
|
6326
|
-
label:
|
|
6339
|
+
onClick: c,
|
|
6340
|
+
label: i
|
|
6327
6341
|
}
|
|
6328
6342
|
),
|
|
6329
6343
|
n && /* @__PURE__ */ r(
|
|
@@ -6339,7 +6353,7 @@ const l6 = A3(null), s6 = () => {
|
|
|
6339
6353
|
}
|
|
6340
6354
|
) });
|
|
6341
6355
|
}
|
|
6342
|
-
),
|
|
6356
|
+
), mr = (C) => {
|
|
6343
6357
|
const { hasActionButton: e, type: t } = C;
|
|
6344
6358
|
if (e)
|
|
6345
6359
|
switch (t) {
|
|
@@ -6367,46 +6381,46 @@ const l6 = A3(null), s6 = () => {
|
|
|
6367
6381
|
default:
|
|
6368
6382
|
return 10;
|
|
6369
6383
|
}
|
|
6370
|
-
},
|
|
6371
|
-
const [e, t] = N([]), n = $((
|
|
6372
|
-
const
|
|
6373
|
-
t((a) => [...a, { id:
|
|
6374
|
-
}, []), l = $((
|
|
6375
|
-
t((
|
|
6376
|
-
}, []), o = (
|
|
6384
|
+
}, Wr = ({ children: C }) => {
|
|
6385
|
+
const [e, t] = N([]), n = $((i) => {
|
|
6386
|
+
const c = mr(i);
|
|
6387
|
+
t((a) => [...a, { id: i.id, priority: c, isOpen: !1 }].sort((d, v) => d.priority - v.priority));
|
|
6388
|
+
}, []), l = $((i) => {
|
|
6389
|
+
t((c) => c.filter((a) => a.id !== i));
|
|
6390
|
+
}, []), o = (i) => e.length > 0 && e[0].id === i, s = (i) => e.findIndex((c) => c.id === i) !== -1;
|
|
6377
6391
|
return /* @__PURE__ */ r(l6.Provider, { value: { addToQueue: n, removeFromQueue: l, isFirstInQueue: o, isInQueue: s, queue: e }, children: C });
|
|
6378
6392
|
};
|
|
6379
6393
|
export {
|
|
6380
6394
|
C1 as Badge,
|
|
6381
|
-
|
|
6395
|
+
br as Banner,
|
|
6382
6396
|
Ln as BaseSideNav,
|
|
6383
|
-
|
|
6397
|
+
_r as Breadcrumbs,
|
|
6384
6398
|
e3 as Button,
|
|
6385
|
-
|
|
6386
|
-
|
|
6387
|
-
|
|
6388
|
-
|
|
6399
|
+
yr as Card,
|
|
6400
|
+
qe as Checkbox,
|
|
6401
|
+
Or as CheckboxGroup,
|
|
6402
|
+
Nr as Chip,
|
|
6389
6403
|
a1 as Divider,
|
|
6390
|
-
|
|
6404
|
+
ot as Grid,
|
|
6391
6405
|
A as Icon,
|
|
6392
6406
|
d1 as IconButton,
|
|
6393
|
-
|
|
6407
|
+
Fr as IconButtonToggle,
|
|
6394
6408
|
v3 as Link,
|
|
6395
|
-
|
|
6396
|
-
|
|
6397
|
-
|
|
6398
|
-
|
|
6399
|
-
|
|
6400
|
-
|
|
6401
|
-
|
|
6402
|
-
|
|
6403
|
-
|
|
6404
|
-
|
|
6405
|
-
|
|
6406
|
-
|
|
6407
|
-
|
|
6408
|
-
|
|
6409
|
-
|
|
6410
|
-
|
|
6409
|
+
kr as Modal,
|
|
6410
|
+
Ir as Popover,
|
|
6411
|
+
Vt as RadioButton,
|
|
6412
|
+
Ar as RadioButtonGroup,
|
|
6413
|
+
Dr as Searchbar,
|
|
6414
|
+
Tr as SegmentedControl,
|
|
6415
|
+
Rr as Select,
|
|
6416
|
+
Er as SideNav,
|
|
6417
|
+
Pr as SplitButton,
|
|
6418
|
+
zr as Switch,
|
|
6419
|
+
$r as Tab,
|
|
6420
|
+
Kr as Tag,
|
|
6421
|
+
Gt as TextInput,
|
|
6422
|
+
Ur as Textarea,
|
|
6423
|
+
Gr as Toast,
|
|
6424
|
+
Wr as ToastQueueProvider,
|
|
6411
6425
|
h3 as Tooltip
|
|
6412
6426
|
};
|