@youversion/design-system-components 0.7.0 → 0.7.1
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/CHANGELOG.md +6 -0
- package/dist/index.es.js +64 -64
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.es.js
CHANGED
|
@@ -49,7 +49,7 @@ const fe = (e) => {
|
|
|
49
49
|
padding: m,
|
|
50
50
|
width: h,
|
|
51
51
|
...v
|
|
52
|
-
},
|
|
52
|
+
}, b) => {
|
|
53
53
|
const p = {
|
|
54
54
|
0: "",
|
|
55
55
|
1: "shadow-light-1 dark:shadow-dark-1",
|
|
@@ -73,7 +73,7 @@ const fe = (e) => {
|
|
|
73
73
|
return M(o, {
|
|
74
74
|
className: w,
|
|
75
75
|
...v,
|
|
76
|
-
ref:
|
|
76
|
+
ref: b
|
|
77
77
|
});
|
|
78
78
|
}, L = y(Mt);
|
|
79
79
|
L.displayName = "Box";
|
|
@@ -102,7 +102,7 @@ const Wt = ({
|
|
|
102
102
|
value: m,
|
|
103
103
|
...h
|
|
104
104
|
}, v) => {
|
|
105
|
-
const
|
|
105
|
+
const b = B(null), p = xe({ forwardedRef: v, innerRef: b }), [N, k] = z(Boolean(m)), [T, E] = z(!1);
|
|
106
106
|
A(() => {
|
|
107
107
|
var c;
|
|
108
108
|
k(Boolean((c = p == null ? void 0 : p.current) == null ? void 0 : c.value) || Boolean(m || u));
|
|
@@ -112,7 +112,7 @@ const Wt = ({
|
|
|
112
112
|
k(Boolean((Q = p == null ? void 0 : p.current) == null ? void 0 : Q.value) || Boolean(m || u)), i && i(c);
|
|
113
113
|
}, w = () => {
|
|
114
114
|
t || !p.current || (p.current.focus(), E(!0));
|
|
115
|
-
},
|
|
115
|
+
}, g = () => {
|
|
116
116
|
E(!1);
|
|
117
117
|
};
|
|
118
118
|
return /* @__PURE__ */ x("div", { className: d(["flex items-start flex-col gap-0.5", e]), children: [
|
|
@@ -140,7 +140,7 @@ const Wt = ({
|
|
|
140
140
|
]),
|
|
141
141
|
disabled: t,
|
|
142
142
|
id: l,
|
|
143
|
-
onBlur:
|
|
143
|
+
onBlur: g,
|
|
144
144
|
onChange: I,
|
|
145
145
|
placeholder: u,
|
|
146
146
|
ref: p,
|
|
@@ -152,8 +152,8 @@ const Wt = ({
|
|
|
152
152
|
"label",
|
|
153
153
|
{
|
|
154
154
|
className: d(
|
|
155
|
-
"items-center text-text-muted-light dark:text-text-muted-dark flex font-regular leading-loose pointer-events-none absolute
|
|
156
|
-
f ? "
|
|
155
|
+
"items-center text-text-muted-light dark:text-text-muted-dark flex font-regular leading-loose pointer-events-none absolute block-start-2 select-none",
|
|
156
|
+
f ? "inline-start-1" : "inline-start-2",
|
|
157
157
|
T || N ? "text-13 -translate-y-1.5" : "text-16"
|
|
158
158
|
),
|
|
159
159
|
htmlFor: l,
|
|
@@ -228,16 +228,16 @@ const Vt = ({
|
|
|
228
228
|
value: f,
|
|
229
229
|
...m
|
|
230
230
|
}, h) => {
|
|
231
|
-
const v = B(null), [
|
|
232
|
-
N || k(!0), !
|
|
233
|
-
}, E = (
|
|
234
|
-
u(
|
|
231
|
+
const v = B(null), [b, p] = z(f), [N, k] = z(!1), T = (g) => {
|
|
232
|
+
N || k(!0), !g.length && b && p(null), i(g);
|
|
233
|
+
}, E = (g) => {
|
|
234
|
+
u(g), i(g.label), p(g.label), k(!1);
|
|
235
235
|
}, I = Y(
|
|
236
|
-
(
|
|
237
|
-
v.current && !v.current.contains(
|
|
236
|
+
(g) => {
|
|
237
|
+
v.current && !v.current.contains(g.target) && (!b && f && i(""), b && f && i(b), k(!1));
|
|
238
238
|
},
|
|
239
|
-
[i,
|
|
240
|
-
), w = V(() => r.filter((
|
|
239
|
+
[i, b, f]
|
|
240
|
+
), w = V(() => r.filter((g) => g.label.toLowerCase().includes(f.toLowerCase())) ?? [], [r, f]);
|
|
241
241
|
return A(() => (document.addEventListener("click", I, !0), () => {
|
|
242
242
|
document.removeEventListener("click", I, !0);
|
|
243
243
|
}), [I]), /* @__PURE__ */ x(L, { className: "relative", ref: v, children: [
|
|
@@ -250,8 +250,8 @@ const Vt = ({
|
|
|
250
250
|
hint: o,
|
|
251
251
|
label: e,
|
|
252
252
|
name: t ?? e,
|
|
253
|
-
onChange: (
|
|
254
|
-
T(
|
|
253
|
+
onChange: (g) => {
|
|
254
|
+
T(g.target.value);
|
|
255
255
|
},
|
|
256
256
|
onFocus: () => k(!0),
|
|
257
257
|
ref: h,
|
|
@@ -259,7 +259,7 @@ const Vt = ({
|
|
|
259
259
|
...m
|
|
260
260
|
}
|
|
261
261
|
),
|
|
262
|
-
N ? /* @__PURE__ */ s(L, { className: "absolute top-[calc(100%+1px)] w-full z-50", children: /* @__PURE__ */ s(Qe, { className: "max-h-[300px] overflow-y-auto", children: w.length ? w.map((
|
|
262
|
+
N ? /* @__PURE__ */ s(L, { className: "absolute top-[calc(100%+1px)] w-full z-50", children: /* @__PURE__ */ s(Qe, { className: "max-h-[300px] overflow-y-auto", children: w.length ? w.map((g, c) => /* @__PURE__ */ s(me, { onClick: () => E(g), children: g.label }, `${g.value}-${c}`)) : /* @__PURE__ */ s(me, { children: l }) }) }) : null
|
|
263
263
|
] });
|
|
264
264
|
}, Ht = y(Vt);
|
|
265
265
|
Ht.displayName = "AutocompleteSelect";
|
|
@@ -593,7 +593,7 @@ const ot = ({ children: e, autoFocus: t = !0 }) => {
|
|
|
593
593
|
};
|
|
594
594
|
}
|
|
595
595
|
}, [t]), /* @__PURE__ */ s("div", { ref: r, children: e });
|
|
596
|
-
},
|
|
596
|
+
}, br = ({ children: e, className: t, disabled: r, type: n = "button", variant: a = "borderless", ...o }, l) => /* @__PURE__ */ s(
|
|
597
597
|
"button",
|
|
598
598
|
{
|
|
599
599
|
className: d([
|
|
@@ -608,9 +608,9 @@ const ot = ({ children: e, autoFocus: t = !0 }) => {
|
|
|
608
608
|
...o,
|
|
609
609
|
children: e
|
|
610
610
|
}
|
|
611
|
-
), st = y(
|
|
611
|
+
), st = y(br);
|
|
612
612
|
st.displayName = "IconButton";
|
|
613
|
-
const
|
|
613
|
+
const gr = {
|
|
614
614
|
1: "h1",
|
|
615
615
|
2: "h2",
|
|
616
616
|
3: "h3",
|
|
@@ -621,7 +621,7 @@ const br = {
|
|
|
621
621
|
L,
|
|
622
622
|
{
|
|
623
623
|
className: d(u, m, f, e),
|
|
624
|
-
component:
|
|
624
|
+
component: gr[n],
|
|
625
625
|
ref: i,
|
|
626
626
|
...l,
|
|
627
627
|
children: t
|
|
@@ -672,9 +672,9 @@ const xr = ({
|
|
|
672
672
|
) : null,
|
|
673
673
|
/* @__PURE__ */ s("div", { children: o ? /* @__PURE__ */ s(lt, { className: "pbe-1", size: "md", variant: "headline", children: o }) : null }),
|
|
674
674
|
/* @__PURE__ */ s("div", { children: t }),
|
|
675
|
-
/* @__PURE__ */ s("div", { className: "w-full flex justify-end items-center pbs-2", children: n == null ? void 0 : n.map(({ label: h, ...v },
|
|
675
|
+
/* @__PURE__ */ s("div", { className: "w-full flex justify-end items-center pbs-2", children: n == null ? void 0 : n.map(({ label: h, ...v }, b) => (
|
|
676
676
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
677
|
-
/* @__PURE__ */ s(ne, { "aria-label": h, size: "sm", variant: "all_caps", ...v, children: h }, `${h}${
|
|
677
|
+
/* @__PURE__ */ s(ne, { "aria-label": h, size: "sm", variant: "all_caps", ...v, children: h }, `${h}${b}`)
|
|
678
678
|
)) })
|
|
679
679
|
]
|
|
680
680
|
}
|
|
@@ -773,7 +773,7 @@ const Gr = ({
|
|
|
773
773
|
fileMinSizeError: m = (S) => `${S} is too small to upload. The minimum dimensions are ${c == null ? void 0 : c.minWidth}x${c == null ? void 0 : c.minHeight}. Please try again.`,
|
|
774
774
|
fileRatioError: h = (S) => `${S} must have a ratio of, ${c == null ? void 0 : c.imageRatio}. Please try again.`,
|
|
775
775
|
fileCallback: v,
|
|
776
|
-
hero:
|
|
776
|
+
hero: b = !1,
|
|
777
777
|
hint: p,
|
|
778
778
|
imageWidth: N = 160,
|
|
779
779
|
imageSrc: k,
|
|
@@ -781,10 +781,10 @@ const Gr = ({
|
|
|
781
781
|
name: E = "imageUpload",
|
|
782
782
|
onBlur: I,
|
|
783
783
|
preProcessing: w,
|
|
784
|
-
shape:
|
|
784
|
+
shape: g = "circle",
|
|
785
785
|
validation: c
|
|
786
786
|
}, Q) => {
|
|
787
|
-
const S = B(null), ce = xe({ forwardedRef: Q, innerRef: S }), [$, U] = z(void 0), [D, j] = z(k ? "resolved" : "idle"), [ue, q] = z(i),
|
|
787
|
+
const S = B(null), ce = xe({ forwardedRef: Q, innerRef: S }), [$, U] = z(void 0), [D, j] = z(k ? "resolved" : "idle"), [ue, q] = z(i), bt = () => S != null && S.current ? S.current.click() : void 0, we = V(() => $ && D !== "rejected" ? (j("resolved"), $.imageSrc) : k && D === "resolved" ? (j("resolved"), k) : null, [$, k, D]), gt = V(() => {
|
|
788
788
|
const C = () => {
|
|
789
789
|
o && o(k), U(void 0), j("idle");
|
|
790
790
|
};
|
|
@@ -799,10 +799,10 @@ const Gr = ({
|
|
|
799
799
|
alt: `${$ == null ? void 0 : $.id} preview`,
|
|
800
800
|
className: d([
|
|
801
801
|
"object-fit w-full h-full",
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
802
|
+
g === "circle" ? "rounded-full" : "rounded-0.5",
|
|
803
|
+
g !== "unset" || !b ? "aspect-square" : "",
|
|
804
|
+
g === "unset" && b ? "aspect-video" : "",
|
|
805
|
+
g === "unset" && !b ? "!aspect-auto" : ""
|
|
806
806
|
]),
|
|
807
807
|
onLoad: () => $ != null && $.imageSrc ? URL.revokeObjectURL($.imageSrc) : void 0,
|
|
808
808
|
src: we || void 0,
|
|
@@ -827,14 +827,14 @@ const Gr = ({
|
|
|
827
827
|
a,
|
|
828
828
|
o,
|
|
829
829
|
l,
|
|
830
|
-
|
|
830
|
+
b,
|
|
831
831
|
$ == null ? void 0 : $.id,
|
|
832
832
|
$ == null ? void 0 : $.imageSrc,
|
|
833
833
|
k,
|
|
834
834
|
D,
|
|
835
835
|
N,
|
|
836
836
|
we,
|
|
837
|
-
|
|
837
|
+
g
|
|
838
838
|
]), ht = ({ file: C, imageUrl: W }) => new Promise((F, _) => {
|
|
839
839
|
var ke;
|
|
840
840
|
const O = new Image(), Z = (ke = c == null ? void 0 : c.imageRatio) == null ? void 0 : ke.split("/");
|
|
@@ -869,11 +869,11 @@ const Gr = ({
|
|
|
869
869
|
if (W instanceof Error)
|
|
870
870
|
throw W;
|
|
871
871
|
}
|
|
872
|
-
}, yt = d([
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
]), kt = d([
|
|
872
|
+
}, yt = d([g === "circle" && !b ? "rounded-full aspect-square" : ""]), vt = d([g === "square" && !b ? "aspect-square rounded-1" : ""]), wt = d([
|
|
873
|
+
g === "unset" && !b ? "rounded-1" : "",
|
|
874
|
+
g === "unset" && D !== "idle" && !b ? "aspect-auto" : "",
|
|
875
|
+
g === "unset" && D !== "resolved" && !b ? "aspect-square" : ""
|
|
876
|
+
]), kt = d([b ? "rounded-1 aspect-video" : ""]);
|
|
877
877
|
return /* @__PURE__ */ x(L, { className: d([n]), children: [
|
|
878
878
|
/* @__PURE__ */ x(
|
|
879
879
|
L,
|
|
@@ -892,7 +892,7 @@ const Gr = ({
|
|
|
892
892
|
{
|
|
893
893
|
className: d([
|
|
894
894
|
"flex justify-center items-center relative mbe-2 md:mbe-0 md:mie-2",
|
|
895
|
-
|
|
895
|
+
b ? "w-full" : "md:w-1/2 w-4/5",
|
|
896
896
|
a ? "border-small border-solid border-tertiary-light" : "",
|
|
897
897
|
D !== "resolved" ? "bg-gray-10 dark:bg-gray-3" : "",
|
|
898
898
|
yt,
|
|
@@ -900,7 +900,7 @@ const Gr = ({
|
|
|
900
900
|
wt,
|
|
901
901
|
kt
|
|
902
902
|
]),
|
|
903
|
-
children:
|
|
903
|
+
children: gt
|
|
904
904
|
}
|
|
905
905
|
),
|
|
906
906
|
/* @__PURE__ */ s(
|
|
@@ -908,10 +908,10 @@ const Gr = ({
|
|
|
908
908
|
{
|
|
909
909
|
className: d([
|
|
910
910
|
"my-auto !ring-gray-15 dark:!ring-gray-30 !ring-1 disabled:!bg-gray-15 disabled:!ring-none",
|
|
911
|
-
|
|
911
|
+
b ? "!mbs-2" : ""
|
|
912
912
|
]),
|
|
913
913
|
disabled: a,
|
|
914
|
-
onClick:
|
|
914
|
+
onClick: bt,
|
|
915
915
|
size: "sm",
|
|
916
916
|
variant: "stroked",
|
|
917
917
|
children: D === "resolved" ? t : r
|
|
@@ -1041,7 +1041,7 @@ function nn() {
|
|
|
1041
1041
|
function an(e) {
|
|
1042
1042
|
return e.mozInputSource === 0 && e.isTrusted ? !0 : nn() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
|
|
1043
1043
|
}
|
|
1044
|
-
function
|
|
1044
|
+
function be(e, t, r) {
|
|
1045
1045
|
return t in e ? Object.defineProperty(e, t, {
|
|
1046
1046
|
value: r,
|
|
1047
1047
|
enumerable: !0,
|
|
@@ -1103,7 +1103,7 @@ function ln(e) {
|
|
|
1103
1103
|
}
|
|
1104
1104
|
}, []);
|
|
1105
1105
|
}
|
|
1106
|
-
let dn = /* @__PURE__ */ new Set(), ze = !1, H = !1,
|
|
1106
|
+
let dn = /* @__PURE__ */ new Set(), ze = !1, H = !1, ge = !1;
|
|
1107
1107
|
function ye(e, t) {
|
|
1108
1108
|
for (let r of dn)
|
|
1109
1109
|
r(e, t);
|
|
@@ -1121,10 +1121,10 @@ function un(e) {
|
|
|
1121
1121
|
an(e) && (H = !0);
|
|
1122
1122
|
}
|
|
1123
1123
|
function fn(e) {
|
|
1124
|
-
e.target === window || e.target === document || (!H && !
|
|
1124
|
+
e.target === window || e.target === document || (!H && !ge && ye("virtual", e), H = !1, ge = !1);
|
|
1125
1125
|
}
|
|
1126
1126
|
function pn() {
|
|
1127
|
-
H = !1,
|
|
1127
|
+
H = !1, ge = !0;
|
|
1128
1128
|
}
|
|
1129
1129
|
function Fe() {
|
|
1130
1130
|
if (typeof window > "u" || ze)
|
|
@@ -1163,7 +1163,7 @@ function mn(e) {
|
|
|
1163
1163
|
}
|
|
1164
1164
|
};
|
|
1165
1165
|
}
|
|
1166
|
-
function
|
|
1166
|
+
function bn(e) {
|
|
1167
1167
|
let { ref: t, onInteractOutside: r, isDisabled: n, onInteractOutsideStart: a } = e, l = B({
|
|
1168
1168
|
isPointerDown: !1,
|
|
1169
1169
|
ignoreEmulatedMouseEvents: !1,
|
|
@@ -1209,7 +1209,7 @@ function X(e, t) {
|
|
|
1209
1209
|
}
|
|
1210
1210
|
return t.current && !t.current.contains(e.target);
|
|
1211
1211
|
}
|
|
1212
|
-
let
|
|
1212
|
+
let gn = null;
|
|
1213
1213
|
function mt(e, t) {
|
|
1214
1214
|
return t.some((r) => r.contains(e));
|
|
1215
1215
|
}
|
|
@@ -1222,7 +1222,7 @@ function hn(e, t = null) {
|
|
|
1222
1222
|
return !1;
|
|
1223
1223
|
}
|
|
1224
1224
|
function xn(e) {
|
|
1225
|
-
return hn(e,
|
|
1225
|
+
return hn(e, gn);
|
|
1226
1226
|
}
|
|
1227
1227
|
class ve {
|
|
1228
1228
|
get size() {
|
|
@@ -1262,7 +1262,7 @@ class ve {
|
|
|
1262
1262
|
return t;
|
|
1263
1263
|
}
|
|
1264
1264
|
constructor() {
|
|
1265
|
-
|
|
1265
|
+
be(this, "fastMap", /* @__PURE__ */ new Map()), this.root = new _e({
|
|
1266
1266
|
scopeRef: null
|
|
1267
1267
|
}), this.fastMap.set(null, this.root);
|
|
1268
1268
|
}
|
|
@@ -1275,7 +1275,7 @@ class _e {
|
|
|
1275
1275
|
this.children.delete(t), t.parent = void 0;
|
|
1276
1276
|
}
|
|
1277
1277
|
constructor(t) {
|
|
1278
|
-
|
|
1278
|
+
be(this, "children", /* @__PURE__ */ new Set()), be(this, "contain", !1), this.scopeRef = t.scopeRef;
|
|
1279
1279
|
}
|
|
1280
1280
|
}
|
|
1281
1281
|
let Ve = new ve();
|
|
@@ -1298,7 +1298,7 @@ function yn(e, t) {
|
|
|
1298
1298
|
}, h = (p) => {
|
|
1299
1299
|
p.key === "Escape" && !l && (p.stopPropagation(), p.preventDefault(), u());
|
|
1300
1300
|
};
|
|
1301
|
-
|
|
1301
|
+
bn({
|
|
1302
1302
|
ref: t,
|
|
1303
1303
|
onInteractOutside: o ? m : null,
|
|
1304
1304
|
onInteractOutsideStart: f
|
|
@@ -1308,7 +1308,7 @@ function yn(e, t) {
|
|
|
1308
1308
|
onBlurWithin: (p) => {
|
|
1309
1309
|
p.relatedTarget && xn(p.relatedTarget) || (!i || i(p.relatedTarget)) && r();
|
|
1310
1310
|
}
|
|
1311
|
-
}),
|
|
1311
|
+
}), b = (p) => {
|
|
1312
1312
|
p.target === p.currentTarget && p.preventDefault();
|
|
1313
1313
|
};
|
|
1314
1314
|
return {
|
|
@@ -1317,7 +1317,7 @@ function yn(e, t) {
|
|
|
1317
1317
|
...v
|
|
1318
1318
|
},
|
|
1319
1319
|
underlayProps: {
|
|
1320
|
-
onPointerDown:
|
|
1320
|
+
onPointerDown: b
|
|
1321
1321
|
}
|
|
1322
1322
|
};
|
|
1323
1323
|
}
|
|
@@ -1424,20 +1424,20 @@ const En = "appearance-none outline-none bg-transparent disabled:bg-gray-10 dark
|
|
|
1424
1424
|
"font-aktiv-grotesk font-medium text-13 absolute inline-start-2 block-start-2 pointer-events-none opacity-0 h-1.5"
|
|
1425
1425
|
), Cn = "-translate-y-1 opacity-100", Pn = "text-overlay-text dark:text-text-dark", Bn = "!pbs-3 !pbe-1", Tn = "absolute block-end-2 inline-end-1.5 leading-0 pointer-events-none text-text-muted-light dark:text-text-muted-dark", Dn = ({ children: e, className: t, disabled: r = !1, error: n, hint: a, label: o, name: l, onChange: i, value: u, ...f }, m) => {
|
|
1426
1426
|
var I;
|
|
1427
|
-
const h = d(On, En), v = B(null),
|
|
1427
|
+
const h = d(On, En), v = B(null), b = xe({ forwardedRef: m, innerRef: v }), [p, N] = z(Boolean(u || ((I = b == null ? void 0 : b.current) == null ? void 0 : I.value)));
|
|
1428
1428
|
A(() => {
|
|
1429
1429
|
var w;
|
|
1430
|
-
N(Boolean(((w =
|
|
1431
|
-
}, [u,
|
|
1430
|
+
N(Boolean(((w = b == null ? void 0 : b.current) == null ? void 0 : w.value) || u));
|
|
1431
|
+
}, [u, b]);
|
|
1432
1432
|
const k = V(() => {
|
|
1433
|
-
const w = d(h, Pn, o ? Bn : null),
|
|
1434
|
-
return p ? w :
|
|
1433
|
+
const w = d(h, Pn, o ? Bn : null), g = d(h, he);
|
|
1434
|
+
return p ? w : g;
|
|
1435
1435
|
}, [h, p, o]), T = V(() => {
|
|
1436
|
-
const w = d(He, Cn),
|
|
1437
|
-
return p ? w :
|
|
1436
|
+
const w = d(He, Cn), g = d(He);
|
|
1437
|
+
return p ? w : g;
|
|
1438
1438
|
}, [p]), E = (w) => {
|
|
1439
|
-
var
|
|
1440
|
-
N(Boolean(((
|
|
1439
|
+
var g;
|
|
1440
|
+
N(Boolean(((g = b == null ? void 0 : b.current) == null ? void 0 : g.value) || u)), i && i(w);
|
|
1441
1441
|
};
|
|
1442
1442
|
return /* @__PURE__ */ x("div", { className: d(t), children: [
|
|
1443
1443
|
/* @__PURE__ */ x("div", { className: d("relative w-full border-none"), children: [
|
|
@@ -1450,7 +1450,7 @@ const En = "appearance-none outline-none bg-transparent disabled:bg-gray-10 dark
|
|
|
1450
1450
|
id: l,
|
|
1451
1451
|
name: l,
|
|
1452
1452
|
onChange: E,
|
|
1453
|
-
ref:
|
|
1453
|
+
ref: b,
|
|
1454
1454
|
value: u,
|
|
1455
1455
|
children: e
|
|
1456
1456
|
}
|
package/dist/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(p,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("react/jsx-runtime"),require("react"),require("clsx"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","clsx","react-dom"],a):(p=typeof globalThis<"u"?globalThis:p||self,a(p["design-system-components"]={},p["react/jsx-runtime"],p.React,p.clsx))})(this,function(p,a,d,c){"use strict";var kt=Object.defineProperty,St=Object.defineProperties,Nt=Object.getOwnPropertyDescriptors,G=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,Se=(e,t,r)=>t in e?kt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Et=(e,t)=>{for(var r in t||(t={}))we.call(t,r)&&Se(e,r,t[r]);if(G)for(var r of G(t))ke.call(t,r)&&Se(e,r,t[r]);return e},Ct=(e,t)=>St(e,Nt(t)),It=(e,t)=>{var r={};for(var n in e)we.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&G)for(var n of G(e))t.indexOf(n)<0&&ke.call(e,n)&&(r[n]=e[n]);return r},Lt=(e,t)=>{var r=e,{title:n,titleId:o}=r,l=It(r,["title","titleId"]);return a.jsxs("svg",Ct(Et({width:l.size||"24",height:l.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},l),{children:[n?a.jsx("title",{id:o,children:n}):null,a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.207 10a.5.5 0 0 0-.354.854l3.793 3.792a.5.5 0 0 0 .707 0l3.793-3.792a.5.5 0 0 0-.353-.854H8.207Z",fill:"currentColor"})]}))},Pt=d.forwardRef(Lt),Ne=Pt;const oe=e=>{if(e){if(typeof e!="string"&&e)return c(e.lightMode,e.darkMode);if(typeof e=="string")return e}},Ee=e=>{if(e){if(typeof e!="string"&&e)return c(e.block,e.blockEnd,e.blockStart,e.inline,e.inlineEnd,e.inlineStart);if(typeof e=="string")return e}},Bt=({background:e,borderColor:t,borderRadius:r,borderWidth:n,className:o,component:l="div",color:s,elevation:i=0,height:f,margin:g,padding:h,width:v,...x},m)=>{const b={0:"",1:"shadow-light-1 dark:shadow-dark-1",2:"shadow-light-2 dark:shadow-dark-2",4:"shadow-light-4 dark:shadow-dark-4",8:"shadow-light-8 dark:shadow-dark-8",12:"shadow-light-12 dark:shadow-dark-12"},E=oe(s),k=oe(e),M=oe(t),L=Ee(h),P=Ee(g),w=c(r,n,b[i],P,L,E,k,M,v,f,o);return d.createElement(l,{className:w,...x,ref:m})},N=d.forwardRef(Bt);N.displayName="Box";const X=({innerRef:e,forwardedRef:t})=>(d.useEffect(()=>{[e,t].forEach(r=>{r&&(typeof r=="function"?r(e.current||null):r.current=e.current||null)})},[e,t]),e);function Ce(){d.useLayoutEffect(()=>{const e=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",()=>document.body.style.overflow=e},[])}const Tt=({className:e,disabled:t,endIcon:r,error:n,hint:o,label:l,name:s,onChange:i,placeholder:f,startIcon:g,value:h,...v},x)=>{const m=d.useRef(null),b=X({forwardedRef:x,innerRef:m}),[E,k]=d.useState(Boolean(h)),[M,L]=d.useState(!1);d.useEffect(()=>{var u;k(Boolean((u=b==null?void 0:b.current)==null?void 0:u.value)||Boolean(h||f))},[h,f,b]);const P=u=>{var ae;k(Boolean((ae=b==null?void 0:b.current)==null?void 0:ae.value)||Boolean(h||f)),i&&i(u)},w=()=>{t||!b.current||(b.current.focus(),L(!0))},y=()=>{L(!1)};return a.jsxs("div",{className:c(["flex items-start flex-col gap-0.5",e]),children:[a.jsxs("div",{className:c(["items-center self-stretch rounded-1 border-small border-solid cursor-text flex flex-row relative focus-within:border-transparent focus-within:outline-2 focus-within:outline-info focus-within:outline focus-within:dark:border-transparent focus-within:dark:outline-info-dark",t?"bg-gray-10 dark:bg-gray-40":null,n?"border-alert dark:border-alert-dark":"border-tertiary-light dark:border-tertiary-dark"]),onClick:w,onFocus:w,children:[g?a.jsx("div",{className:"text-text-muted-light dark:text-text-muted-dark pis-1.5",children:g}):null,a.jsxs("span",{className:"relative flex flex-1 overflow-hidden",children:[a.jsx("input",{className:c(["self-stretch bg-transparent flex-auto outline-none overflow-hidden h-[56px]",g?"pis-1":"pis-2",r?"pie-1":"pie-2",l?"pbs-3 pbe-1":"pbs-2 pbe-2"]),disabled:t,id:s,onBlur:y,onChange:P,placeholder:f,ref:b,value:h,...v}),l?a.jsx("label",{className:c("items-center text-text-muted-light dark:text-text-muted-dark flex font-regular leading-loose pointer-events-none absolute top-2 select-none",g?"ltr:left-1 rtl:right-1":"ltr:left-2 rtl:right-2",M||E?"text-13 -translate-y-1.5":"text-16"),htmlFor:s,children:l}):null]}),r?a.jsx("div",{className:"text-text-muted-light dark:text-text-muted-dark pie-1.5",children:r}):null]}),n||o?a.jsxs("div",{className:"flex flex-col",children:[n?a.jsx("span",{className:"text-alert dark:text-alert-dark",children:n}):null,o?a.jsx("span",{className:"text-text-muted-light dark:text-text-muted-dark text-13 leading-default",children:o}):null]}):null]})},le=d.forwardRef(Tt);le.displayName="Input";const Dt=({children:e,className:t,...r},n)=>a.jsx("ul",{className:c(["bg-canvas-light dark:bg-canvas-secondary-dark rounded-1 py-0.5",t]),ref:n,...r,children:e}),se=d.forwardRef(Dt);se.displayName="List";const Mt=({children:e,className:t,disabled:r,divider:n,onClick:o,...l},s)=>{const i=f=>{o&&(f.code==="Enter"||f.key===" ")&&o()};return a.jsx("li",{className:c(["flex items-center box-border relative",n?"after:last:content-none after:absolute after:inset-x-0 after:bottom-0 after:mx-2 after:bg-gray-10 after:dark:bg-gray-40 after:h-px":null,t]),ref:s,...l,children:a.jsx("div",{className:c(["flex flex-1 py-2 gap-x-2 items-center pie-2 pis-2",o?"cursor-pointer hover:bg-gray-10 hover:dark:bg-gray-50":void 0,r?"pointer-events-none":""]),onClick:o,onKeyUp:i,onTouchEnd:o,tabIndex:o?0:void 0,children:e})})},J=d.forwardRef(Mt);J.displayName="ListItem";const jt=({label:e,name:t,options:r,disabled:n=!1,error:o,hint:l,noOptionsText:s,onChange:i,onSelect:f,value:g,...h},v)=>{const x=d.useRef(null),[m,b]=d.useState(g),[E,k]=d.useState(!1),M=y=>{E||k(!0),!y.length&&m&&b(null),i(y)},L=y=>{f(y),i(y.label),b(y.label),k(!1)},P=d.useCallback(y=>{x.current&&!x.current.contains(y.target)&&(!m&&g&&i(""),m&&g&&i(m),k(!1))},[i,m,g]),w=d.useMemo(()=>r.filter(y=>y.label.toLowerCase().includes(g.toLowerCase()))??[],[r,g]);return d.useEffect(()=>(document.addEventListener("click",P,!0),()=>{document.removeEventListener("click",P,!0)}),[P]),a.jsxs(N,{className:"relative",ref:x,children:[a.jsx(le,{disabled:n,endIcon:a.jsx(Ne,{size:"24"}),error:o,hint:l,label:e,name:t??e,onChange:y=>{M(y.target.value)},onFocus:()=>k(!0),ref:v,value:g??"",...h}),E?a.jsx(N,{className:"absolute top-[calc(100%+1px)] w-full z-50",children:a.jsx(se,{className:"max-h-[300px] overflow-y-auto",children:w.length?w.map((y,u)=>a.jsx(J,{onClick:()=>L(y),children:y.label},`${y.value}-${u}`)):a.jsx(J,{children:s})})}):null]})},Ie=d.forwardRef(jt);Ie.displayName="AutocompleteSelect";const Le={base:"font-bold",xs:"text-16 md:text-19 leading-default",sm:"text-19 md:text-23 leading-default md:leading-comfy",md:"text-23 md:text-28 leading-comfy",lg:"text-28 md:text-33 leading-comfy",xl:"text-33 md:text-40 leading-comfy",xxl:"text-33 md:text-57 leading-comfy"},Y={base:"font-medium leading-default",default:"text-16 md:text-19",xs:"text-11",sm:"text-13",md:"text-16",lg:"text-19",xl:"text-23 md:text-28 tracking-tight"},de={...Y,base:"font-regular leading-loose",xl:"text-23 md:text-28"},Pe={base:"font-medium leading-default tracking-wider uppercase text-text-muted-light dark:text-text-muted-dark",xs:"text-11",sm:"text-13",md:"text-16",lg:"text-19",xl:"text-23"},Be={base:"font-regular leading-default text-text-muted-light dark:text-text-muted-dark",sm:"text-11",md:"text-13",lg:"text-16"},Te={base:"font-bold leading-default",xs:"text-11",sm:"text-13",md:"text-16",lg:"text-19"},De={base:"font-medium leading-default text-text-muted-light dark:text-text-muted-dark",sm:"text-11",md:"text-13",lg:"text-16"},Me={base:"font-regular leading-loose",md:"text-16",lg:"text-19"},je=({size:e,variant:t})=>{switch(t){case"headline":return c(Le.base,Le[e]);case"label":return c(Y.base,e?Y[e]:Y.default);case"paragraph":return c(de.base,e?de[e]:de.default);case"eyebrow":return c(Pe.base,Pe[e]);case"caption":return c(Be.base,Be[e]);case"buttonLabel":return c(Te.base,Te[e]);case"fieldLabel":return c(De.base,De[e]);case"fieldTextInput":return c(Me.base,Me[e]);default:return e}},ze={primary:"font-aktiv-grotesk",secondary:"font-untitled-serif"},zt=({className:e,component:t="p",children:r,font:n="primary",size:o,variant:l,...s},i)=>{const f="text-text-light dark:text-text-dark",g=ze[n],h=je({size:o,variant:l});return a.jsx(N,{className:c(f,h,g,e),component:t,ref:i,...s,children:r})},B=d.forwardRef(zt);B.displayName="Text";const Oe=({children:e,component:t="a",className:r,disabled:n,active:o,...l})=>a.jsx(B,{className:c(["font-bold text-gray-50 leading-default whitespace-nowrap",o?"underline decoration-yv-red decoration-2 underline-offset-8 text-16 leading-loose":"text-13",n?"cursor-none pointer-events-none text-text-muted-light dark:text-text-muted-dark":"",r]),component:t,...l,children:e});Oe.displayName="Breadcrumb";var Ot=Object.defineProperty,Ft=Object.defineProperties,Wt=Object.getOwnPropertyDescriptors,R=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,$e=(e,t,r)=>t in e?Ot(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$t=(e,t)=>{for(var r in t||(t={}))Fe.call(t,r)&&$e(e,r,t[r]);if(R)for(var r of R(t))We.call(t,r)&&$e(e,r,t[r]);return e},_t=(e,t)=>Ft(e,Wt(t)),Ht=(e,t)=>{var r={};for(var n in e)Fe.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&R)for(var n of R(e))t.indexOf(n)<0&&We.call(e,n)&&(r[n]=e[n]);return r},Vt=(e,t)=>{var r=e,{title:n,titleId:o}=r,l=Ht(r,["title","titleId"]);return a.jsxs("svg",_t($t({width:l.size||"24",height:l.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},l),{children:[n?a.jsx("title",{id:o,children:n}):null,a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.293 18.707a1 1 0 0 1 0-1.414l4.94-4.94a.5.5 0 0 0 0-.707l-4.94-4.939a1 1 0 0 1 1.414-1.414l5.647 5.646a1.5 1.5 0 0 1 0 2.122l-5.647 5.646a1 1 0 0 1-1.414 0Z",fill:"currentColor"})]}))},At=d.forwardRef(Vt),Ut=At;const qt=({children:e,className:t,...r},n)=>{const o=d.Children.toArray(e),l=o.findIndex(s=>{var i;return d.isValidElement(s)?(i=s==null?void 0:s.props)==null?void 0:i.active:!1});return a.jsx("div",{className:c(["flex py-0.5 flex-row min-h-[48px] rtl:rotate-180",t]),ref:n,...r,children:o.map((s,i)=>a.jsxs("div",{className:"flex items-center",children:[i?a.jsx(Ut,{className:c(["mx-1",i>l&&"text-gray-15",i<=l&&"text-gray-25"]),size:"15"}):null,typeof s=="object"&&"type"in s?d.createElement(s.type,{...s.props,className:c([s.props.className??"",i<l?"bg-gray-10 dark:bg-gray-40 py-1 px-2 rounded-3 cursor-pointer":"px-0.5",i>l&&"[&>*]:text-gray-15 [&>*]:text-16 [&>*]:leading-loose [&>*]:font-medium","rtl:rotate-180"])}):s]},`${i}-${s.toString()}`))})},_e=d.forwardRef(qt);_e.displayName="Breadcrumbs";const Kt={lg:"lg",md:"md",sm:"sm",xl:"xl",xs:"xs"},ie=e=>{switch(e){case"start":return{lg:"rounded-4 text-19 pis-[20px] pie-4 py-2",md:"rounded-3 text-xs pis-2 pie-3 py-1.5",sm:"rounded-3 text-13 pis-1.5 pie-3 py-1.5",xl:"rounded-4 text-23 pis-3 pie-4 py-2",xs:"rounded-3 text-11 pis-1 pie-2 py-1"};case"end":return{lg:"rounded-4 text-19 pie-[20px] pis-4 py-2",md:"rounded-3 text-xs pie-2 pis-3 py-1.5",sm:"rounded-3 text-13 pie-1.5 pis-3 py-1.5",xl:"rounded-4 text-23 pie-3 pis-4 py-2",xs:"rounded-3 text-11 pie-1 pis-2 py-1"};default:return{lg:"rounded-4 text-19 px-4 py-2",md:"rounded-3 text-xs px-3 py-1.5",sm:"rounded-3 text-13 px-3 py-1.5",xl:"rounded-4 text-23 px-4 py-2",xs:"rounded-3 text-11 px-2 py-1"}}},V={lg:30,md:24,sm:18,xl:36,xs:12},ce="items-center leading-default font-bold ease-in-out duration-100 focus:ring-2 focus:ring-info-light dark:focus:ring-info-dark flex w-full max-w-fit h-fit",A={all_caps:"bg-transparent text-gray-50 dark:text-white hover:text-info-light dark:hover:text-info-dark active:text-blue-40 dark:active:text-blue-20 disabled:opacity-50 disabled:text-gray-50 dark:disabled:text-white uppercase",borderless:"bg-transparent text-gray-50 dark:text-white hover:bg-gray-10 dark:hover:bg-gray-40 disabled:opacity-50 dark:disabled:bg-transparent",brand:"bg-yv-red dark:bg-yv-red-dark text-white disabled:opacity-50 disabled:bg-gray-10 dark:disabled:bg-gray-40 disabled:text-gray-50 dark:disabled:text-white",primary:"bg-gray-50 dark:bg-gray-10 text-white dark:text-gray-50 hover:bg-gray-40 active:bg-gray-50 disabled:opacity-50 disabled:bg-gray-10 dark:disabled:bg-gray-40 disabled:text-gray-50 dark:disabled:text-white",risk:"bg-orange-30 dark:bg-alert-dark text-white disabled:opacity-50 disabled:bg-gray-10 dark:disabled:bg-gray-40 disabled:text-gray-50 dark:disabled:text-white","risk:all_caps":"bg-transparent text-alert dark:text-alert-dark active:bg-gray-10 dark:active:bg-gray-40 hover:text-alert-light-hover hover:bg-white dark:hover:bg-gray-40 dark:hover:text-alert-dark-hover hover:shadow-risk-light-2 dark:hover:shadow-risk-dark-2 disabled:opacity-50 disabled:text-gray-50 dark:disabled:text-white active:shadow-none dark:active:shadow-none uppercase","risk:borderless":"bg-transparent text-alert dark:text-alert-dark active:bg-gray-10 dark:active:bg-gray-40 hover:text-alert-light-hover hover:bg-white dark:hover:bg-gray-40 dark:hover:text-alert-dark-hover hover:shadow-risk-light-2 dark:hover:shadow-risk-dark-2 disabled:opacity-50 dark:disabled:bg-transparent active:shadow-none dark:active:shadow-none","risk:stroked":"bg-transparent ring ring-2 ring-alert dark:ring-alert-dark text-alert dark:text-alert-dark hover:bg-alert dark:hover:bg-alert-dark hover:text-white dark:hover:text-white active:bg-alert dark:active:bg-alert-dark disabled:opacity-50 disabled:bg-transparent dark:disabled:bg-transparent disabled:text-gray-50 dark:disabled:text-white hover:shadow-risk-light-2 dark:hover:shadow-risk-dark-2",secondary:"bg-gray-10 dark:bg-gray-40 text-gray-50 dark:text-white hover:bg-gray-40 dark:hover:bg-gray-10 hover:text-white dark:hover:text-gray-50 active:bg-gray-50 disabled:opacity-50 disabled:bg-gray-10 disabled:text-gray-50",stroked:"bg-transparent ring ring-2 ring-gray-50 dark:ring-white text-gray-50 dark:text-white hover:bg-gray-40 dark:hover:bg-gray-10 hover:text-white dark:hover:text-gray-50 active:bg-gray-50 disabled:opacity-50 disabled:bg-transparent dark:disabled:bg-transparent disabled:text-gray-50 dark:disabled:text-white"},He=({className:e,children:t,disabled:r,icon:n,iconAction:o,iconPosition:l,size:s="md",type:i="button",variant:f="primary",...g},h)=>{const v=ie(n!==void 0?l:void 0),x=c(ce,A[f],v[s],e);return a.jsxs("button",{className:x,disabled:r,ref:h,type:i,...g,children:[l==="start"&&n!==void 0?d.createElement(n,{className:"mr-0.5",onClick:o??void 0,size:V[s]}):null,a.jsx("span",{className:"truncate",children:t}),l==="end"&&n!==void 0?d.createElement(n,{className:"ml-0.5",onClick:o??void 0,size:V[s]}):null]})},U=d.forwardRef(He);U.displayName="Button";const Zt=({error:e,className:t,label:r,disabled:n,name:o,...l},s)=>{const i=d.useId(),f=d.useMemo(()=>`checkbox-label-${i}`,[i]);return a.jsxs("div",{className:c(["flex items-baseline rounded-0.5 w-fit focus-within:border-transparent focus-within:outline-2 focus-within:outline-info focus-within:outline focus-within:dark:border-transparent focus-within:dark:outline-info-dark",t]),children:[a.jsx("input",{"aria-labelledby":f,className:"w-1.5 h-1.5 mr-0.5 flex-none rounded-0.25 focus-within:outline-none peer",disabled:n,id:o,name:o,ref:s,type:"checkbox",...l}),r?a.jsx("div",{className:"peer-disabled:text-text-muted-light peer-disabled:dark:text-text-muted-dark text-text-light dark:text-text-dark",children:a.jsx("label",{htmlFor:o,id:f,children:r})}):null,e?a.jsx("div",{className:"text-alert-light dark:text-alert-dark text-13",children:e}):null]})},Ve=d.forwardRef(Zt);Ve.displayName="Checkbox";var Gt=Object.defineProperty,Xt=Object.defineProperties,Jt=Object.getOwnPropertyDescriptors,Q=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,qe=(e,t,r)=>t in e?Gt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Yt=(e,t)=>{for(var r in t||(t={}))Ae.call(t,r)&&qe(e,r,t[r]);if(Q)for(var r of Q(t))Ue.call(t,r)&&qe(e,r,t[r]);return e},Rt=(e,t)=>Xt(e,Jt(t)),Qt=(e,t)=>{var r={};for(var n in e)Ae.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Q)for(var n of Q(e))t.indexOf(n)<0&&Ue.call(e,n)&&(r[n]=e[n]);return r},er=(e,t)=>{var r=e,{title:n,titleId:o}=r,l=Qt(r,["title","titleId"]);return a.jsxs("svg",Rt(Yt({width:l.size||"24",height:l.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},l),{children:[n?a.jsx("title",{id:o,children:n}):null,a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.768 11.646a.5.5 0 0 0 0 .708l3.182 3.182a1 1 0 0 1-1.414 1.414l-3.182-3.182a.5.5 0 0 0-.708 0L8.464 16.95a1 1 0 1 1-1.414-1.414l3.182-3.182a.5.5 0 0 0 0-.708L7.05 8.464A1 1 0 1 1 8.464 7.05l3.182 3.182a.5.5 0 0 0 .707 0l3.183-3.182a1 1 0 1 1 1.414 1.414l-3.182 3.182Z",fill:"currentColor"})]}))},tr=d.forwardRef(er),rr=tr;const ue=({children:e,autoFocus:t=!0})=>{const r=d.useRef(null);return d.useEffect(()=>{if(r.current){const n=r.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');let o=document.activeElement;const l=n[0],s=n[n.length-1],i=h=>{if(h.key==="Tab"){if(h.shiftKey){if(document.activeElement===l)h.preventDefault(),s.focus(),o=s;else for(let v=0;v<n.length;v++)if(n[v]===document.activeElement){o=n[v-1];break}}else if(!h.shiftKey){if(document.activeElement===s)h.preventDefault(),l.focus(),o=l;else for(let v=0;v<n.length;v++)if(n[v]===document.activeElement){o=n[v+1];break}}}};t&&(()=>{if(r.current){const h=r.current.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');h&&h.focus()}})();const g=h=>{r.current&&!r.current.contains(h.target)&&o.focus()};return document.addEventListener("keydown",i),document.addEventListener("click",g),()=>{document.removeEventListener("keydown",i),document.removeEventListener("click",g)}}},[t]),a.jsx("div",{ref:r,children:e})},nr=({children:e,className:t,disabled:r,type:n="button",variant:o="borderless",...l},s)=>a.jsx("button",{className:c(["rounded-full inline-flex justify-center items-center p-1",t,A[o],r?"pointer-events-none":""]),disabled:r,ref:s,type:n,...l,children:e}),fe=d.forwardRef(nr);fe.displayName="IconButton";const ar={1:"h1",2:"h2",3:"h3",4:"h4"},or=({className:e,children:t,font:r="primary",level:n=1,size:o,variant:l,...s},i)=>{const f="text-text-light dark:text-text-dark",g=ze[r],h=je({size:o,variant:l});return a.jsx(N,{className:c(f,h,g,e),component:ar[n],ref:i,...s,children:t})},pe=d.forwardRef(or);pe.displayName="Heading";const lr=({autoFocus:e=!0,children:t,className:r,confirmationButtons:n,dialogType:o="confirmation",heading:l,isDismissableOnOutsideClick:s=!0,onClose:i,...f},g)=>{Ce();const h=o==="confirmation"?"max-w-[400px]":"max-w-[700px]";return a.jsxs("div",{className:"flex items-center justify-center w-full h-full z-20 absolute inset-0",children:[a.jsx("div",{className:"absolute inset-0 bg-overlay-light dark:bg-overlay-dark","data-testid":"dialog-overlay",id:"overlay",onClick:s?i:void 0}),a.jsx(ue,{autoFocus:e,children:a.jsxs("dialog",{className:c(" z-20 relative rounded-2 p-3 mlb-4 mli-2 bg-canvas-light dark:bg-canvas-dark",h,r),open:!0,ref:g,...f,children:[o==="modal"?a.jsx(fe,{className:"absolute inline-end-2 block-start-2","data-testid":"close-modal-button",onClick:i,children:a.jsx(rr,{})}):null,a.jsx("div",{children:l?a.jsx(pe,{className:"pbe-1",size:"md",variant:"headline",children:l}):null}),a.jsx("div",{children:t}),a.jsx("div",{className:"w-full flex justify-end items-center pbs-2",children:n==null?void 0:n.map(({label:v,...x},m)=>a.jsx(U,{"aria-label":v,size:"sm",variant:"all_caps",...x,children:v},`${v}${m}`))})]})})]})},Ke=d.forwardRef(lr);Ke.displayName="Dialog";const sr=({className:e,...t})=>a.jsx("hr",{...t,className:c("w-full border-gray-15 dark:border-gray-30 border-standard",e)}),dr=({className:e,progress:t})=>a.jsx("div",{className:c(["w-full bg-gray-15 h-2 rounded-3 overflow-hidden",e]),children:a.jsx("div",{className:"bg-blue-30 h-2 ease-in-out duration-300",style:{transitionProperty:"width",width:`${t}%`}})}),ir=({className:e,children:t,component:r="a",variant:n="borderless",...o},l)=>d.createElement(r,{...o,className:c(["rounded-full inline-flex justify-center items-center p-1 no-underline cursor-pointer",A[n],e]),ref:l},t),Ze=d.forwardRef(ir);Ze.displayName="IconLinkButton";var cr=Object.defineProperty,ur=Object.defineProperties,fr=Object.getOwnPropertyDescriptors,ee=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable,Je=(e,t,r)=>t in e?cr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,pr=(e,t)=>{for(var r in t||(t={}))Ge.call(t,r)&&Je(e,r,t[r]);if(ee)for(var r of ee(t))Xe.call(t,r)&&Je(e,r,t[r]);return e},gr=(e,t)=>ur(e,fr(t)),br=(e,t)=>{var r={};for(var n in e)Ge.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ee)for(var n of ee(e))t.indexOf(n)<0&&Xe.call(e,n)&&(r[n]=e[n]);return r},hr=(e,t)=>{var r=e,{title:n,titleId:o}=r,l=br(r,["title","titleId"]);return a.jsxs("svg",gr(pr({width:l.size||"24",height:l.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},l),{children:[n?a.jsx("title",{id:o,children:n}):null,a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.768 11.646a.5.5 0 0 0 0 .708l3.182 3.182a1 1 0 0 1-1.414 1.414l-3.182-3.182a.5.5 0 0 0-.708 0L8.464 16.95a1 1 0 1 1-1.414-1.414l3.182-3.182a.5.5 0 0 0 0-.708L7.05 8.464A1 1 0 0 1 8.464 7.05l3.182 3.182a.5.5 0 0 0 .707 0l3.183-3.182a1 1 0 1 1 1.414 1.414l-3.182 3.182Z",fill:"currentColor"})]}))},mr=d.forwardRef(hr),yr=mr,vr=Object.defineProperty,xr=Object.defineProperties,wr=Object.getOwnPropertyDescriptors,te=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,Qe=(e,t,r)=>t in e?vr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,kr=(e,t)=>{for(var r in t||(t={}))Ye.call(t,r)&&Qe(e,r,t[r]);if(te)for(var r of te(t))Re.call(t,r)&&Qe(e,r,t[r]);return e},Sr=(e,t)=>xr(e,wr(t)),Nr=(e,t)=>{var r={};for(var n in e)Ye.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&te)for(var n of te(e))t.indexOf(n)<0&&Re.call(e,n)&&(r[n]=e[n]);return r},Er=(e,t)=>{var r=e,{title:n,titleId:o}=r,l=Nr(r,["title","titleId"]);return a.jsxs("svg",Sr(kr({width:l.size||"24",height:l.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},l),{children:[n?a.jsx("title",{id:o,children:n}):null,a.jsx("path",{d:"M9.346 14.272c.15.228.499.228 1.194.228h5.628c.81 0 1.215 0 1.36-.262.145-.261-.07-.605-.5-1.292l-.667-1.068c-.386-.618-.58-.928-.861-.928s-.475.31-.861.928l-.453.724-1.252-2.924c-.4-.931-.6-1.397-.934-1.397-.335 0-.534.466-.934 1.397l-1.46 3.406c-.273.64-.41.96-.26 1.188ZM18 7a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z",fill:"currentColor"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.879 3.379C6 4.257 6 5.672 6 8.5v3c0 2.828 0 4.243.879 5.121.878.879 2.293.879 5.121.879h3c2.828 0 4.243 0 5.121-.879C21 15.743 21 14.328 21 11.5v-3c0-2.828 0-4.243-.879-5.121C19.243 2.5 17.828 2.5 15 2.5h-3c-2.828 0-4.243 0-5.121.879ZM18.02 4.623c-.65-.087-1.55-.092-3.021-.092h-3c-1.472 0-2.371.005-3.021.092-.301.04-.466.09-.554.126a.292.292 0 0 0-.11.066.292.292 0 0 0-.066.11 2.313 2.313 0 0 0-.126.554c-.087.65-.092 1.55-.092 3.021v3c0 1.472.005 2.371.092 3.021.04.301.09.466.126.554.03.072.05.095.066.11a.292.292 0 0 0 .11.066c.088.036.253.085.554.126.65.087 1.55.092 3.021.092h3c1.472 0 2.371-.005 3.021-.092.301-.04.466-.09.554-.126a.292.292 0 0 0 .11-.066.292.292 0 0 0 .066-.11c.036-.088.085-.253.126-.554.087-.65.092-1.55.092-3.021v-3c0-1.472-.005-2.371-.092-3.021a2.313 2.313 0 0 0-.126-.554.292.292 0 0 0-.066-.11.292.292 0 0 0-.11-.066 2.313 2.313 0 0 0-.554-.126Z",fill:"currentColor"}),a.jsx("path",{d:"M2 8.5c0-1 1-2 2-2v9a4 4 0 0 0 4 4h9c0 1-.887 2-2 2H8a6 6 0 0 1-6-6v-7Z",fill:"currentColor"})]}))},Cr=d.forwardRef(Er),Ir=Cr,Lr=Object.defineProperty,Pr=Object.defineProperties,Br=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,rt=(e,t,r)=>t in e?Lr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Tr=(e,t)=>{for(var r in t||(t={}))et.call(t,r)&&rt(e,r,t[r]);if(re)for(var r of re(t))tt.call(t,r)&&rt(e,r,t[r]);return e},Dr=(e,t)=>Pr(e,Br(t)),Mr=(e,t)=>{var r={};for(var n in e)et.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&re)for(var n of re(e))t.indexOf(n)<0&&tt.call(e,n)&&(r[n]=e[n]);return r},jr=(e,t)=>{var r=e,{title:n,titleId:o}=r,l=Mr(r,["title","titleId"]);return a.jsxs("svg",Dr(Tr({width:l.size||"24",height:l.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},l),{children:[n?a.jsx("title",{id:o,children:n}):null,a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 4a1 1 0 0 1 1-1 9 9 0 0 1 9 9 1 1 0 1 1-2 0 7.001 7.001 0 0 0-7-7 1 1 0 0 1-1-1Z",fill:"currentColor",children:a.jsx("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",from:"0 12 12",to:"360 12 12",dur:l.dur,repeatCount:"indefinite"})})]}))},zr=d.forwardRef(jr),Or=zr;const Fr=({acceptedFileTypes:e=["image/*"],changeImageButtonLabel:t="Change",chooseImageButtonLabel:r="Choose Image",className:n,disabled:o=!1,dismissCallback:l,dismissImageAriaLabel:s="Remove Image",error:i="",fileMaxKbSizeError:f=(C,ve)=>`${C} is too big to upload, the maximum size is ${ve}kb. Please try again.`,fileMaxSizeError:g=C=>`${C} is too large to upload. The maximum dimensions are ${u==null?void 0:u.maxWidth}x${u==null?void 0:u.maxHeight}. Please try again.`,fileMinSizeError:h=C=>`${C} is too small to upload. The minimum dimensions are ${u==null?void 0:u.minWidth}x${u==null?void 0:u.minHeight}. Please try again.`,fileRatioError:v=C=>`${C} must have a ratio of, ${u==null?void 0:u.imageRatio}. Please try again.`,fileCallback:x,hero:m=!1,hint:b,imageWidth:E=160,imageSrc:k,label:M="Upload Image",name:L="imageUpload",onBlur:P,preProcessing:w,shape:y="circle",validation:u},ae)=>{const C=d.useRef(null),ve=X({forwardedRef:ae,innerRef:C}),[S,H]=d.useState(void 0),[j,z]=d.useState(k?"resolved":"idle"),[xe,K]=d.useState(i),Dn=()=>C!=null&&C.current?C.current.click():void 0,xt=d.useMemo(()=>S&&j!=="rejected"?(z("resolved"),S.imageSrc):k&&j==="resolved"?(z("resolved"),k):null,[S,k,j]),Mn=d.useMemo(()=>{const T=()=>{l&&l(k),H(void 0),z("idle")};switch(j){case"pending":return a.jsx(N,{className:"animate-spin",children:a.jsx(Or,{className:"text-info-light dark:text-info-dark","data-testid":"loading spinner",size:"32"})});case"resolved":return a.jsxs(a.Fragment,{children:[a.jsx("img",{alt:`${S==null?void 0:S.id} preview`,className:c(["object-fit w-full h-full",y==="circle"?"rounded-full":"rounded-0.5",y!=="unset"||!m?"aspect-square":"",y==="unset"&&m?"aspect-video":"",y==="unset"&&!m?"!aspect-auto":""]),onLoad:()=>S!=null&&S.imageSrc?URL.revokeObjectURL(S.imageSrc):void 0,src:xt||void 0,width:E}),o?null:a.jsx(U,{"aria-label":s,className:"absolute -top-0.5 -right-0.5 rounded-3 !p-0 !text-text-muted-light dark:text-text-muted-dark bg-white dark:bg-gray-40 dark:hover:bg-white dark:hover:!text-gray-45 hover:!text-white shadow-light-1 dark:shadow-dark-1","data-testid":"remove image",onClick:T,children:a.jsx(yr,{})})]});default:return a.jsx(N,{className:"gray-10 dark:gray-30",children:a.jsx(Ir,{"data-testid":"placeholder image",size:"32"})})}},[o,l,s,m,S==null?void 0:S.id,S==null?void 0:S.imageSrc,k,j,E,xt,y]),jn=({file:T,imageUrl:F})=>new Promise((W,$)=>{var wt;const I=new Image,Z=(wt=u==null?void 0:u.imageRatio)==null?void 0:wt.split("/");I.onload=async()=>{if(u)if(u!=null&&u.maxByteSize&&T.size>u.maxByteSize){H(void 0),z("rejected");const _n=f(T.name,Math.round(u.maxByteSize/1e3));return K(_n),$(!1)}else{if(u!=null&&u.minWidth&&I.width<(u==null?void 0:u.minWidth)||u!=null&&u.minHeight&&I.height<(u==null?void 0:u.minHeight))return H(void 0),z("rejected"),K(h(T.name)),$(!1);if(u!=null&&u.maxHeight&&I.height>(u==null?void 0:u.maxHeight)||u!=null&&u.maxWidth&&I.width>(u==null?void 0:u.maxWidth))return H(void 0),z("rejected"),K(g(T.name)),$(!1);if(u!=null&&u.imageRatio&&(Z==null?void 0:Z.length)===2&&parseInt(Z[0])/parseInt(Z[1])!==I.width/I.height)return H(void 0),z("rejected"),K(v(T.name)),$(!1)}return E=I.width,typeof x=="function"&&(console.log("Callback"),await x(T,I)),K(""),W(!0)},I.src=F}),zn=async T=>{try{const{files:F}=T.target;if(F){const W=F[0],$=URL.createObjectURL(W);let I=!0;z("pending"),w&&await w(W),I=await jn({file:W,imageUrl:$}),I&&(H({file:W,id:W.name,imageSrc:$}),z("resolved"))}}catch(F){if(F instanceof Error)throw F}},On=c([y==="circle"&&!m?"rounded-full aspect-square":""]),Fn=c([y==="square"&&!m?"aspect-square rounded-1":""]),Wn=c([y==="unset"&&!m?"rounded-1":"",y==="unset"&&j!=="idle"&&!m?"aspect-auto":"",y==="unset"&&j!=="resolved"&&!m?"aspect-square":""]),$n=c([m?"rounded-1 aspect-video":""]);return a.jsxs(N,{className:c([n]),children:[a.jsxs(N,{className:c(["relative border-small border-solid rounded-1 mb-0.5 pt-1 pb-2 px-2 text-text-muted-light dark:text-text-muted-dark",,xe?"border-alert-light dark:border-alert-dark":"border-tertiary-light dark:border-tertiary-dark",o?"select-none bg-gray-10 dark:bg-gray-40 pointer-events-none":""]),children:[a.jsx(B,{className:"pb-1.5 text-text-muted-light dark:text-text-muted-dark",children:a.jsx("label",{htmlFor:L,children:M})}),a.jsxs(N,{className:"flex relative flex-wrap justify-center md:justify-start",children:[a.jsx(N,{className:c(["flex justify-center items-center relative mbe-2 md:mbe-0 md:mie-2",m?"w-full":"md:w-1/2 w-4/5",o?"border-small border-solid border-tertiary-light":"",j!=="resolved"?"bg-gray-10 dark:bg-gray-3":"",On,Fn,Wn,$n]),children:Mn}),a.jsx(U,{className:c(["my-auto !ring-gray-15 dark:!ring-gray-30 !ring-1 disabled:!bg-gray-15 disabled:!ring-none",m?"!mbs-2":""]),disabled:o,onClick:Dn,size:"sm",variant:"stroked",children:j==="resolved"?t:r}),a.jsx("input",{accept:e.toString(),className:"hidden",disabled:o,id:L,name:L,onBlur:P,onChange:zn,ref:ve,title:"",type:"file",value:""})]})]}),xe?a.jsx(B,{className:"dark:!text-alert-dark !text-alert-light text-13",children:xe}):null,b?a.jsx(B,{className:"text-text-muted-light dark:text-text-muted-dark text-13",children:b}):null]})},nt=d.forwardRef(Fr);nt.displayName="ImageUpload";const at=({className:e,children:t,component:r="a",icon:n,iconPosition:o,variant:l="primary",size:s="md",...i},f)=>{const g=ie(n!==void 0?o:void 0),h=({children:v})=>d.createElement(r,{...i,className:c([ce,A[l],g[s],"no-underline cursor-pointer",e]),ref:f},v);return a.jsxs(h,{children:[o==="start"&&n!==void 0?d.createElement(n,{className:"mie-0.5 flex-shrink-0",size:V[s]}):null,d.createElement("span",{className:"truncate"},t),o==="end"&&n!==void 0?d.createElement(n,{className:"mis-0.5 flex-shrink-0",size:V[s]}):null]})},ot=d.forwardRef(at);ot.displayName="LinkButton";function Wr({children:e,className:t,position:r}){let n="";return r&&(r==="start"?n="order-first":n="order-last"),a.jsx("div",{className:c("flex gap-1",n,t),children:e})}function $r({children:e,className:t}){return a.jsx("div",{className:c("flex-grow",t),children:e})}const _r=({children:e,className:t,endText:r,endTextProps:n,size:o="sm",subHeadline:l,subHeadlineProps:s})=>a.jsxs("div",{className:c(["flex items-center justify-between break-words",t]),children:[a.jsxs("div",{className:"flex flex-col",children:[a.jsx(B,{size:o,variant:"label",children:e}),l?a.jsx(B,{...s,children:l}):null]}),r?a.jsx(B,{...n,children:r}):null]}),Hr=({children:e,className:t,...r})=>a.jsx("div",{className:c(["relative",t]),...r,children:e}),Vr=typeof window<"u"?d.useLayoutEffect:()=>{};let q=new Map,lt=new Set;function st(){if(typeof window>"u")return;let e=r=>{let n=q.get(r.target);n||(n=new Set,q.set(r.target,n),r.target.addEventListener("transitioncancel",t)),n.add(r.propertyName)},t=r=>{let n=q.get(r.target);if(n&&(n.delete(r.propertyName),n.size===0&&(r.target.removeEventListener("transitioncancel",t),q.delete(r.target)),q.size===0)){for(let o of lt)o();lt.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?st():document.addEventListener("DOMContentLoaded",st));function Ar(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(r=>e.test(r.brand)))||e.test(window.navigator.userAgent)}function Ur(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function qr(){return Ur(/^Mac/i)}function Kr(){return Ar(/Android/i)}function Zr(e){return e.mozInputSource===0&&e.isTrusted?!0:Kr()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function ge(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Gr=d.createContext(null);Gr.displayName="PressResponderContext";class Xr{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,r){this.nativeEvent=r,this.target=r.target,this.currentTarget=r.currentTarget,this.relatedTarget=r.relatedTarget,this.bubbles=r.bubbles,this.cancelable=r.cancelable,this.defaultPrevented=r.defaultPrevented,this.eventPhase=r.eventPhase,this.isTrusted=r.isTrusted,this.timeStamp=r.timeStamp,this.type=t}}function Jr(e){let t=d.useRef({isFocused:!1,onBlur:e,observer:null});return t.current.onBlur=e,Vr(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]),d.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=r.target,o=l=>{var s,i;t.current.isFocused=!1,n.disabled&&((i=(s=t.current).onBlur)===null||i===void 0||i.call(s,new Xr("blur",l))),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};n.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{t.current.isFocused&&n.disabled&&(t.current.observer.disconnect(),n.dispatchEvent(new FocusEvent("blur")),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0})))}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[])}let Yr=new Set,dt=!1,O=!1,be=!1;function he(e,t){for(let r of Yr)r(e,t)}function Rr(e){return!(e.metaKey||!qr()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function it(e){O=!0,Rr(e)&&he("keyboard",e)}function _(e){(e.type==="mousedown"||e.type==="pointerdown")&&(O=!0,he("pointer",e))}function Qr(e){Zr(e)&&(O=!0)}function en(e){e.target===window||e.target===document||(!O&&!be&&he("virtual",e),O=!1,be=!1)}function tn(){O=!1,be=!0}function ct(){if(typeof window>"u"||dt)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){O=!0,e.apply(this,arguments)},document.addEventListener("keydown",it,!0),document.addEventListener("keyup",it,!0),document.addEventListener("click",Qr,!0),window.addEventListener("focus",en,!0),window.addEventListener("blur",tn,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",_,!0),document.addEventListener("pointermove",_,!0),document.addEventListener("pointerup",_,!0)):(document.addEventListener("mousedown",_,!0),document.addEventListener("mousemove",_,!0),document.addEventListener("mouseup",_,!0)),dt=!0}typeof document<"u"&&(document.readyState!=="loading"?ct():document.addEventListener("DOMContentLoaded",ct));function rn(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,l=d.useRef({isFocusWithin:!1}),s=d.useCallback(g=>{l.current.isFocusWithin&&!g.currentTarget.contains(g.relatedTarget)&&(l.current.isFocusWithin=!1,r&&r(g),o&&o(!1))},[r,o,l]),i=Jr(s),f=d.useCallback(g=>{!l.current.isFocusWithin&&document.activeElement===g.target&&(n&&n(g),o&&o(!0),l.current.isFocusWithin=!0,i(g))},[n,o,i]);return t?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:f,onBlur:s}}}function nn(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:o}=e,s=d.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1,onInteractOutside:r,onInteractOutsideStart:o}).current;s.onInteractOutside=r,s.onInteractOutsideStart=o,d.useEffect(()=>{if(n)return;let i=f=>{ne(f,t)&&s.onInteractOutside&&(s.onInteractOutsideStart&&s.onInteractOutsideStart(f),s.isPointerDown=!0)};if(typeof PointerEvent<"u"){let f=g=>{s.isPointerDown&&s.onInteractOutside&&ne(g,t)&&s.onInteractOutside(g),s.isPointerDown=!1};return document.addEventListener("pointerdown",i,!0),document.addEventListener("pointerup",f,!0),()=>{document.removeEventListener("pointerdown",i,!0),document.removeEventListener("pointerup",f,!0)}}else{let f=h=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&s.onInteractOutside&&ne(h,t)&&s.onInteractOutside(h),s.isPointerDown=!1},g=h=>{s.ignoreEmulatedMouseEvents=!0,s.onInteractOutside&&s.isPointerDown&&ne(h,t)&&s.onInteractOutside(h),s.isPointerDown=!1};return document.addEventListener("mousedown",i,!0),document.addEventListener("mouseup",f,!0),document.addEventListener("touchstart",i,!0),document.addEventListener("touchend",g,!0),()=>{document.removeEventListener("mousedown",i,!0),document.removeEventListener("mouseup",f,!0),document.removeEventListener("touchstart",i,!0),document.removeEventListener("touchend",g,!0)}}},[t,s,n])}function ne(e,t){if(e.button>0)return!1;if(e.target){const r=e.target.ownerDocument;if(!r||!r.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}let an=null;function ut(e,t){return t.some(r=>r.contains(e))}function on(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of pt.traverse(pt.getTreeNode(t)))if(ut(e,r.current))return!0;return!1}function ln(e){return on(e,an)}class me{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let o=this.fastMap.get(r??null),l=new ft({scopeRef:t});o.addChild(l),l.parent=o,this.fastMap.set(t,l),n&&(l.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t),n=r.parent;for(let l of this.traverse())l!==r&&r.nodeToRestore&&l.nodeToRestore&&r.scopeRef.current&&ut(l.nodeToRestore,r.scopeRef.current)&&(l.nodeToRestore=r.nodeToRestore);let o=r.children;n.removeChild(r),o.size>0&&o.forEach(l=>n.addChild(l)),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){let t=new me;for(let r of this.traverse())t.addTreeNode(r.scopeRef,r.parent.scopeRef,r.nodeToRestore);return t}constructor(){ge(this,"fastMap",new Map),this.root=new ft({scopeRef:null}),this.fastMap.set(null,this.root)}}class ft{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){ge(this,"children",new Set),ge(this,"contain",!1),this.scopeRef=t.scopeRef}}let pt=new me;const D=[];function sn(e,t){let{onClose:r,shouldCloseOnBlur:n,isOpen:o,isDismissable:l=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:i}=e;d.useEffect(()=>(o&&D.push(t),()=>{let b=D.indexOf(t);b>=0&&D.splice(b,1)}),[o,t]);let f=()=>{D[D.length-1]===t&&r&&r()},g=b=>{(!i||i(b.target))&&D[D.length-1]===t&&(b.stopPropagation(),b.preventDefault())},h=b=>{(!i||i(b.target))&&(D[D.length-1]===t&&(b.stopPropagation(),b.preventDefault()),f())},v=b=>{b.key==="Escape"&&!s&&(b.stopPropagation(),b.preventDefault(),f())};nn({ref:t,onInteractOutside:l?h:null,onInteractOutsideStart:g});let{focusWithinProps:x}=rn({isDisabled:!n,onBlurWithin:b=>{b.relatedTarget&&ln(b.relatedTarget)||(!i||i(b.relatedTarget))&&r()}}),m=b=>{b.target===b.currentTarget&&b.preventDefault()};return{overlayProps:{onKeyDown:v,...x},underlayProps:{onPointerDown:m}}}const dn=({align:e,children:t,className:r,...n})=>{const o=d.useMemo(()=>{const{horizontal:l,vertical:s}=e,i={center:"left-1/2",end:"inline-end-0",start:"inline-start-0"},f={bottom:"",top:"bottom-full"};return`${i[l]} ${f[s]}`},[e]);return a.jsx("div",{className:c(["absolute shadow-light-2 dark:shadow-dark-2 rounded-1 bg-canvas-light dark:bg-overlay-body-dark mb-0.5 w-max overflow-y-scroll min-h-[200px] max-h-[400px] scrollbar-hide z-10",o,r]),...n,children:t})},cn=({open:e,children:t})=>a.jsx(a.Fragment,{children:e?t:null}),un=({align:e={horizontal:"start",vertical:"bottom"},autoFocus:t=!0,children:r,className:n,isDismissible:o,isOpen:l,onClose:s,...i})=>{const f=d.useRef(null),{overlayProps:g}=sn({isDismissable:o,isKeyboardDismissDisabled:!o,isOpen:l,onClose:s},f);return a.jsx(cn,{open:l,children:a.jsx(ue,{autoFocus:t,children:a.jsx(dn,{align:e,className:n,onClose:s,...i,children:a.jsx("div",{ref:f,...g,onClick:s,children:r})})})})},fn=({onToggle:e,children:t,className:r,disabled:n})=>{const o=i=>{i.preventDefault(),i.stopPropagation(),e()},l=d.useRef(null),s=d.cloneElement(t,{className:r,disabled:n,onClick:o,ref:l});return a.jsx(a.Fragment,{children:s})},pn=(e,t)=>{const{children:r,error:n,hint:o,label:l}=e;return a.jsxs("div",{...e,className:"flex-col rounded-0.5 w-fit",ref:t,children:[a.jsx("label",{children:l}),n?a.jsx("p",{className:"text-alert-light dark:text-alert-dark text-13",children:n}):null,o?a.jsx("p",{className:"text-13 text-gray-25 dark:text-gray-20",children:o}):null,r]})},gt=d.forwardRef(pn);gt.displayName="Radio Set";const gn=({children:e,disabled:t,name:r,value:n,...o},l)=>a.jsxs("div",{className:"flex items-baseline rounded-0.5 w-fit focus-within:border-transparent focus-within:outline-2 focus-within:outline-info focus-within:outline focus-within:dark:border-transparent focus-within:dark:outline-info-dark",children:[a.jsx("input",{className:"w-1.5 h-1.5 mr-0.5 flex-none rounded-0.25 focus-within:outline-none peer display: inline",disabled:t,id:r,name:r,ref:l,...o,type:"radio",value:n}),a.jsx("label",{className:"peer-disabled:text-text-muted-light peer-disabled:dark:text-text-muted-dark text-text-light dark:text-text-dark",htmlFor:"name",children:e})]}),bt=d.forwardRef(gn);bt.displayName="RadioSetItem";const bn=({...e})=>a.jsx("option",{...e}),ht="_select_1dwiy_1",Hn={select:ht},hn="appearance-none outline-none bg-transparent disabled:bg-gray-10 dark:disabled:bg-gray-40 rounded-1 border-solid border-small font-aktiv-grotesk text-16 leading-loose p-2 w-full mlb-0",mn="border-alert-light dark:border-alert-dark",yn="border-tertiary-light dark:border-tertiary-dark",ye="text-text-muted-light dark:text-text-muted-dark",mt=c(ye,"font-aktiv-grotesk font-medium text-13 absolute inline-start-2 block-start-2 pointer-events-none opacity-0 h-1.5"),vn="-translate-y-1 opacity-100",xn="text-overlay-text dark:text-text-dark",wn="!pbs-3 !pbe-1",kn="absolute block-end-2 inline-end-1.5 leading-0 pointer-events-none text-text-muted-light dark:text-text-muted-dark",Sn=({children:e,className:t,disabled:r=!1,error:n,hint:o,label:l,name:s,onChange:i,value:f,...g},h)=>{var P;const v=c(ht,hn),x=d.useRef(null),m=X({forwardedRef:h,innerRef:x}),[b,E]=d.useState(Boolean(f||((P=m==null?void 0:m.current)==null?void 0:P.value)));d.useEffect(()=>{var w;E(Boolean(((w=m==null?void 0:m.current)==null?void 0:w.value)||f))},[f,m]);const k=d.useMemo(()=>{const w=c(v,xn,l?wn:null),y=c(v,ye);return b?w:y},[v,b,l]),M=d.useMemo(()=>{const w=c(mt,vn),y=c(mt);return b?w:y},[b]),L=w=>{var y;E(Boolean(((y=m==null?void 0:m.current)==null?void 0:y.value)||f)),i&&i(w)};return a.jsxs("div",{className:c(t),children:[a.jsxs("div",{className:c("relative w-full border-none"),children:[a.jsx("select",{...g,className:c([k,n?mn:yn]),disabled:r,id:s,name:s,onChange:L,ref:m,value:f,children:e}),a.jsx("label",{className:M,htmlFor:s,children:l}),a.jsx("div",{className:kn,children:a.jsx(Ne,{size:"24"})})]}),n||o?a.jsxs("div",{className:"mbs-0.5",children:[n?a.jsx("p",{className:"text-alert-light dark:text-alert-dark text-13 m-0",children:n}):null,o?a.jsx("p",{className:c(ye,"text-13 m-0"),children:o}):null]}):null]})},Nn=d.forwardRef(Sn);function En({active:e,children:t,component:r="a",className:n,href:o}){return a.jsx(B,{className:c("text-gray-50 whitespace-nowrap text-16 leading-loose mie-2",e?"font-bold underline decoration-yv-red decoration-2 underline-offset-8":"text-text-muted-light dark:text-text-muted-dark",n),component:r,href:o,children:t})}const Cn={default:"bg-gray-10 dark:bg-gray-40 text-light dark:text-dark",secondary:"bg-gray-10 dark:bg-gray-35 text-light dark:text-dark",error:"bg-orange-10 dark:bg-orange-50 text-orange-40 dark:text-orange-20",info:"bg-blue-10 dark:bg-blue-50 text-blue-40, dark:text-blue-20",success:"bg-green-10, dark:bg-green-50 text-green-40 dark:text-green-20",caution:"bg-yellow-10 dark:bg-yellow-50 text-yellow-40 dark:text-yellow-20"},In={sm:"text-11 w-fit rounded-0.5 plb-0.25 pli-0.5",lg:"text-16 w-fit rounded-0.5 plb-0.5 pli-1"},Ln=({message:e,variant:t="default",size:r="sm",className:n})=>{const o=Cn[t],l=In[r];return a.jsx(N,{className:c(o,l,n),children:a.jsx(B,{children:e})})},Pn={inputIcon:"_inputIcon_1pzdd_1"},Bn=({className:e,error:t,name:r,...n},o)=>a.jsxs(a.Fragment,{children:[a.jsx("input",{className:c(["rounded-1 text-black dark:text-white p-2 border-small border-tertiary-light dark:border-tertiary-dark hover:cursor-pointer bg-transparent disabled:bg-gray-10 disabled:dark:bg-gray-40 disabled:cursor-auto h-[58px]",Pn.inputIcon,e]),id:r,name:r,ref:o,role:"textbox",type:"time",...n}),t?a.jsx("div",{className:"text-alert-light dark:text-alert-dark text-13",children:t}):null]}),yt=d.forwardRef(Bn);yt.displayName="TimePicker";const vt={tooltipWrapper:"_tooltipWrapper_qu88w_1",tooltipContent:"_tooltipContent_qu88w_18"},Tn=({content:e,className:t,...r})=>a.jsx("div",{className:c(vt.tooltipWrapper,t),...r,children:a.jsx("span",{className:vt.tooltipContent,children:e})});p.AutocompleteSelect=Ie,p.Box=N,p.Breadcrumb=Oe,p.Breadcrumbs=_e,p.Button=U,p.ButtonComponent=He,p.Checkbox=Ve,p.Dialog=Ke,p.Divider=sr,p.FocusTrap=ue,p.Heading=pe,p.HorizontalLoader=dr,p.IconButton=fe,p.IconLinkButton=Ze,p.ImageUpload=nt,p.Input=le,p.LinkButton=ot,p.LinkButtonComponent=at,p.List=se,p.ListItem=J,p.ListItemActions=Wr,p.ListItemContent=$r,p.ListItemText=_r,p.Option=bn,p.Popover=Hr,p.PopoverBody=un,p.PopoverTrigger=fn,p.RadioSet=gt,p.RadioSetItem=bt,p.Select=Nn,p.Tab=En,p.Tag=Ln,p.Text=B,p.TimePicker=yt,p.Tooltip=Tn,p.buttonSizeOptions=Kt,p.defaultButtonClasses=ce,p.determineSizeClasses=ie,p.iconSizes=V,p.useCombinedRefs=X,p.useLockBodyScroll=Ce,p.variantClasses=A,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(p,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("react/jsx-runtime"),require("react"),require("clsx"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","clsx","react-dom"],a):(p=typeof globalThis<"u"?globalThis:p||self,a(p["design-system-components"]={},p["react/jsx-runtime"],p.React,p.clsx))})(this,function(p,a,d,c){"use strict";var kt=Object.defineProperty,St=Object.defineProperties,Nt=Object.getOwnPropertyDescriptors,G=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,Se=(e,t,r)=>t in e?kt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Et=(e,t)=>{for(var r in t||(t={}))we.call(t,r)&&Se(e,r,t[r]);if(G)for(var r of G(t))ke.call(t,r)&&Se(e,r,t[r]);return e},Ct=(e,t)=>St(e,Nt(t)),It=(e,t)=>{var r={};for(var n in e)we.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&G)for(var n of G(e))t.indexOf(n)<0&&ke.call(e,n)&&(r[n]=e[n]);return r},Lt=(e,t)=>{var r=e,{title:n,titleId:o}=r,l=It(r,["title","titleId"]);return a.jsxs("svg",Ct(Et({width:l.size||"24",height:l.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},l),{children:[n?a.jsx("title",{id:o,children:n}):null,a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.207 10a.5.5 0 0 0-.354.854l3.793 3.792a.5.5 0 0 0 .707 0l3.793-3.792a.5.5 0 0 0-.353-.854H8.207Z",fill:"currentColor"})]}))},Pt=d.forwardRef(Lt),Ne=Pt;const oe=e=>{if(e){if(typeof e!="string"&&e)return c(e.lightMode,e.darkMode);if(typeof e=="string")return e}},Ee=e=>{if(e){if(typeof e!="string"&&e)return c(e.block,e.blockEnd,e.blockStart,e.inline,e.inlineEnd,e.inlineStart);if(typeof e=="string")return e}},Bt=({background:e,borderColor:t,borderRadius:r,borderWidth:n,className:o,component:l="div",color:s,elevation:i=0,height:f,margin:b,padding:h,width:v,...x},m)=>{const g={0:"",1:"shadow-light-1 dark:shadow-dark-1",2:"shadow-light-2 dark:shadow-dark-2",4:"shadow-light-4 dark:shadow-dark-4",8:"shadow-light-8 dark:shadow-dark-8",12:"shadow-light-12 dark:shadow-dark-12"},E=oe(s),k=oe(e),M=oe(t),L=Ee(h),P=Ee(b),w=c(r,n,g[i],P,L,E,k,M,v,f,o);return d.createElement(l,{className:w,...x,ref:m})},N=d.forwardRef(Bt);N.displayName="Box";const X=({innerRef:e,forwardedRef:t})=>(d.useEffect(()=>{[e,t].forEach(r=>{r&&(typeof r=="function"?r(e.current||null):r.current=e.current||null)})},[e,t]),e);function Ce(){d.useLayoutEffect(()=>{const e=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",()=>document.body.style.overflow=e},[])}const Tt=({className:e,disabled:t,endIcon:r,error:n,hint:o,label:l,name:s,onChange:i,placeholder:f,startIcon:b,value:h,...v},x)=>{const m=d.useRef(null),g=X({forwardedRef:x,innerRef:m}),[E,k]=d.useState(Boolean(h)),[M,L]=d.useState(!1);d.useEffect(()=>{var u;k(Boolean((u=g==null?void 0:g.current)==null?void 0:u.value)||Boolean(h||f))},[h,f,g]);const P=u=>{var ae;k(Boolean((ae=g==null?void 0:g.current)==null?void 0:ae.value)||Boolean(h||f)),i&&i(u)},w=()=>{t||!g.current||(g.current.focus(),L(!0))},y=()=>{L(!1)};return a.jsxs("div",{className:c(["flex items-start flex-col gap-0.5",e]),children:[a.jsxs("div",{className:c(["items-center self-stretch rounded-1 border-small border-solid cursor-text flex flex-row relative focus-within:border-transparent focus-within:outline-2 focus-within:outline-info focus-within:outline focus-within:dark:border-transparent focus-within:dark:outline-info-dark",t?"bg-gray-10 dark:bg-gray-40":null,n?"border-alert dark:border-alert-dark":"border-tertiary-light dark:border-tertiary-dark"]),onClick:w,onFocus:w,children:[b?a.jsx("div",{className:"text-text-muted-light dark:text-text-muted-dark pis-1.5",children:b}):null,a.jsxs("span",{className:"relative flex flex-1 overflow-hidden",children:[a.jsx("input",{className:c(["self-stretch bg-transparent flex-auto outline-none overflow-hidden h-[56px]",b?"pis-1":"pis-2",r?"pie-1":"pie-2",l?"pbs-3 pbe-1":"pbs-2 pbe-2"]),disabled:t,id:s,onBlur:y,onChange:P,placeholder:f,ref:g,value:h,...v}),l?a.jsx("label",{className:c("items-center text-text-muted-light dark:text-text-muted-dark flex font-regular leading-loose pointer-events-none absolute block-start-2 select-none",b?"inline-start-1":"inline-start-2",M||E?"text-13 -translate-y-1.5":"text-16"),htmlFor:s,children:l}):null]}),r?a.jsx("div",{className:"text-text-muted-light dark:text-text-muted-dark pie-1.5",children:r}):null]}),n||o?a.jsxs("div",{className:"flex flex-col",children:[n?a.jsx("span",{className:"text-alert dark:text-alert-dark",children:n}):null,o?a.jsx("span",{className:"text-text-muted-light dark:text-text-muted-dark text-13 leading-default",children:o}):null]}):null]})},le=d.forwardRef(Tt);le.displayName="Input";const Dt=({children:e,className:t,...r},n)=>a.jsx("ul",{className:c(["bg-canvas-light dark:bg-canvas-secondary-dark rounded-1 py-0.5",t]),ref:n,...r,children:e}),se=d.forwardRef(Dt);se.displayName="List";const Mt=({children:e,className:t,disabled:r,divider:n,onClick:o,...l},s)=>{const i=f=>{o&&(f.code==="Enter"||f.key===" ")&&o()};return a.jsx("li",{className:c(["flex items-center box-border relative",n?"after:last:content-none after:absolute after:inset-x-0 after:bottom-0 after:mx-2 after:bg-gray-10 after:dark:bg-gray-40 after:h-px":null,t]),ref:s,...l,children:a.jsx("div",{className:c(["flex flex-1 py-2 gap-x-2 items-center pie-2 pis-2",o?"cursor-pointer hover:bg-gray-10 hover:dark:bg-gray-50":void 0,r?"pointer-events-none":""]),onClick:o,onKeyUp:i,onTouchEnd:o,tabIndex:o?0:void 0,children:e})})},J=d.forwardRef(Mt);J.displayName="ListItem";const jt=({label:e,name:t,options:r,disabled:n=!1,error:o,hint:l,noOptionsText:s,onChange:i,onSelect:f,value:b,...h},v)=>{const x=d.useRef(null),[m,g]=d.useState(b),[E,k]=d.useState(!1),M=y=>{E||k(!0),!y.length&&m&&g(null),i(y)},L=y=>{f(y),i(y.label),g(y.label),k(!1)},P=d.useCallback(y=>{x.current&&!x.current.contains(y.target)&&(!m&&b&&i(""),m&&b&&i(m),k(!1))},[i,m,b]),w=d.useMemo(()=>r.filter(y=>y.label.toLowerCase().includes(b.toLowerCase()))??[],[r,b]);return d.useEffect(()=>(document.addEventListener("click",P,!0),()=>{document.removeEventListener("click",P,!0)}),[P]),a.jsxs(N,{className:"relative",ref:x,children:[a.jsx(le,{disabled:n,endIcon:a.jsx(Ne,{size:"24"}),error:o,hint:l,label:e,name:t??e,onChange:y=>{M(y.target.value)},onFocus:()=>k(!0),ref:v,value:b??"",...h}),E?a.jsx(N,{className:"absolute top-[calc(100%+1px)] w-full z-50",children:a.jsx(se,{className:"max-h-[300px] overflow-y-auto",children:w.length?w.map((y,u)=>a.jsx(J,{onClick:()=>L(y),children:y.label},`${y.value}-${u}`)):a.jsx(J,{children:s})})}):null]})},Ie=d.forwardRef(jt);Ie.displayName="AutocompleteSelect";const Le={base:"font-bold",xs:"text-16 md:text-19 leading-default",sm:"text-19 md:text-23 leading-default md:leading-comfy",md:"text-23 md:text-28 leading-comfy",lg:"text-28 md:text-33 leading-comfy",xl:"text-33 md:text-40 leading-comfy",xxl:"text-33 md:text-57 leading-comfy"},Y={base:"font-medium leading-default",default:"text-16 md:text-19",xs:"text-11",sm:"text-13",md:"text-16",lg:"text-19",xl:"text-23 md:text-28 tracking-tight"},de={...Y,base:"font-regular leading-loose",xl:"text-23 md:text-28"},Pe={base:"font-medium leading-default tracking-wider uppercase text-text-muted-light dark:text-text-muted-dark",xs:"text-11",sm:"text-13",md:"text-16",lg:"text-19",xl:"text-23"},Be={base:"font-regular leading-default text-text-muted-light dark:text-text-muted-dark",sm:"text-11",md:"text-13",lg:"text-16"},Te={base:"font-bold leading-default",xs:"text-11",sm:"text-13",md:"text-16",lg:"text-19"},De={base:"font-medium leading-default text-text-muted-light dark:text-text-muted-dark",sm:"text-11",md:"text-13",lg:"text-16"},Me={base:"font-regular leading-loose",md:"text-16",lg:"text-19"},je=({size:e,variant:t})=>{switch(t){case"headline":return c(Le.base,Le[e]);case"label":return c(Y.base,e?Y[e]:Y.default);case"paragraph":return c(de.base,e?de[e]:de.default);case"eyebrow":return c(Pe.base,Pe[e]);case"caption":return c(Be.base,Be[e]);case"buttonLabel":return c(Te.base,Te[e]);case"fieldLabel":return c(De.base,De[e]);case"fieldTextInput":return c(Me.base,Me[e]);default:return e}},ze={primary:"font-aktiv-grotesk",secondary:"font-untitled-serif"},zt=({className:e,component:t="p",children:r,font:n="primary",size:o,variant:l,...s},i)=>{const f="text-text-light dark:text-text-dark",b=ze[n],h=je({size:o,variant:l});return a.jsx(N,{className:c(f,h,b,e),component:t,ref:i,...s,children:r})},B=d.forwardRef(zt);B.displayName="Text";const Oe=({children:e,component:t="a",className:r,disabled:n,active:o,...l})=>a.jsx(B,{className:c(["font-bold text-gray-50 leading-default whitespace-nowrap",o?"underline decoration-yv-red decoration-2 underline-offset-8 text-16 leading-loose":"text-13",n?"cursor-none pointer-events-none text-text-muted-light dark:text-text-muted-dark":"",r]),component:t,...l,children:e});Oe.displayName="Breadcrumb";var Ot=Object.defineProperty,Ft=Object.defineProperties,Wt=Object.getOwnPropertyDescriptors,R=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,$e=(e,t,r)=>t in e?Ot(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$t=(e,t)=>{for(var r in t||(t={}))Fe.call(t,r)&&$e(e,r,t[r]);if(R)for(var r of R(t))We.call(t,r)&&$e(e,r,t[r]);return e},_t=(e,t)=>Ft(e,Wt(t)),Ht=(e,t)=>{var r={};for(var n in e)Fe.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&R)for(var n of R(e))t.indexOf(n)<0&&We.call(e,n)&&(r[n]=e[n]);return r},Vt=(e,t)=>{var r=e,{title:n,titleId:o}=r,l=Ht(r,["title","titleId"]);return a.jsxs("svg",_t($t({width:l.size||"24",height:l.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},l),{children:[n?a.jsx("title",{id:o,children:n}):null,a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.293 18.707a1 1 0 0 1 0-1.414l4.94-4.94a.5.5 0 0 0 0-.707l-4.94-4.939a1 1 0 0 1 1.414-1.414l5.647 5.646a1.5 1.5 0 0 1 0 2.122l-5.647 5.646a1 1 0 0 1-1.414 0Z",fill:"currentColor"})]}))},At=d.forwardRef(Vt),Ut=At;const qt=({children:e,className:t,...r},n)=>{const o=d.Children.toArray(e),l=o.findIndex(s=>{var i;return d.isValidElement(s)?(i=s==null?void 0:s.props)==null?void 0:i.active:!1});return a.jsx("div",{className:c(["flex py-0.5 flex-row min-h-[48px] rtl:rotate-180",t]),ref:n,...r,children:o.map((s,i)=>a.jsxs("div",{className:"flex items-center",children:[i?a.jsx(Ut,{className:c(["mx-1",i>l&&"text-gray-15",i<=l&&"text-gray-25"]),size:"15"}):null,typeof s=="object"&&"type"in s?d.createElement(s.type,{...s.props,className:c([s.props.className??"",i<l?"bg-gray-10 dark:bg-gray-40 py-1 px-2 rounded-3 cursor-pointer":"px-0.5",i>l&&"[&>*]:text-gray-15 [&>*]:text-16 [&>*]:leading-loose [&>*]:font-medium","rtl:rotate-180"])}):s]},`${i}-${s.toString()}`))})},_e=d.forwardRef(qt);_e.displayName="Breadcrumbs";const Kt={lg:"lg",md:"md",sm:"sm",xl:"xl",xs:"xs"},ie=e=>{switch(e){case"start":return{lg:"rounded-4 text-19 pis-[20px] pie-4 py-2",md:"rounded-3 text-xs pis-2 pie-3 py-1.5",sm:"rounded-3 text-13 pis-1.5 pie-3 py-1.5",xl:"rounded-4 text-23 pis-3 pie-4 py-2",xs:"rounded-3 text-11 pis-1 pie-2 py-1"};case"end":return{lg:"rounded-4 text-19 pie-[20px] pis-4 py-2",md:"rounded-3 text-xs pie-2 pis-3 py-1.5",sm:"rounded-3 text-13 pie-1.5 pis-3 py-1.5",xl:"rounded-4 text-23 pie-3 pis-4 py-2",xs:"rounded-3 text-11 pie-1 pis-2 py-1"};default:return{lg:"rounded-4 text-19 px-4 py-2",md:"rounded-3 text-xs px-3 py-1.5",sm:"rounded-3 text-13 px-3 py-1.5",xl:"rounded-4 text-23 px-4 py-2",xs:"rounded-3 text-11 px-2 py-1"}}},V={lg:30,md:24,sm:18,xl:36,xs:12},ce="items-center leading-default font-bold ease-in-out duration-100 focus:ring-2 focus:ring-info-light dark:focus:ring-info-dark flex w-full max-w-fit h-fit",A={all_caps:"bg-transparent text-gray-50 dark:text-white hover:text-info-light dark:hover:text-info-dark active:text-blue-40 dark:active:text-blue-20 disabled:opacity-50 disabled:text-gray-50 dark:disabled:text-white uppercase",borderless:"bg-transparent text-gray-50 dark:text-white hover:bg-gray-10 dark:hover:bg-gray-40 disabled:opacity-50 dark:disabled:bg-transparent",brand:"bg-yv-red dark:bg-yv-red-dark text-white disabled:opacity-50 disabled:bg-gray-10 dark:disabled:bg-gray-40 disabled:text-gray-50 dark:disabled:text-white",primary:"bg-gray-50 dark:bg-gray-10 text-white dark:text-gray-50 hover:bg-gray-40 active:bg-gray-50 disabled:opacity-50 disabled:bg-gray-10 dark:disabled:bg-gray-40 disabled:text-gray-50 dark:disabled:text-white",risk:"bg-orange-30 dark:bg-alert-dark text-white disabled:opacity-50 disabled:bg-gray-10 dark:disabled:bg-gray-40 disabled:text-gray-50 dark:disabled:text-white","risk:all_caps":"bg-transparent text-alert dark:text-alert-dark active:bg-gray-10 dark:active:bg-gray-40 hover:text-alert-light-hover hover:bg-white dark:hover:bg-gray-40 dark:hover:text-alert-dark-hover hover:shadow-risk-light-2 dark:hover:shadow-risk-dark-2 disabled:opacity-50 disabled:text-gray-50 dark:disabled:text-white active:shadow-none dark:active:shadow-none uppercase","risk:borderless":"bg-transparent text-alert dark:text-alert-dark active:bg-gray-10 dark:active:bg-gray-40 hover:text-alert-light-hover hover:bg-white dark:hover:bg-gray-40 dark:hover:text-alert-dark-hover hover:shadow-risk-light-2 dark:hover:shadow-risk-dark-2 disabled:opacity-50 dark:disabled:bg-transparent active:shadow-none dark:active:shadow-none","risk:stroked":"bg-transparent ring ring-2 ring-alert dark:ring-alert-dark text-alert dark:text-alert-dark hover:bg-alert dark:hover:bg-alert-dark hover:text-white dark:hover:text-white active:bg-alert dark:active:bg-alert-dark disabled:opacity-50 disabled:bg-transparent dark:disabled:bg-transparent disabled:text-gray-50 dark:disabled:text-white hover:shadow-risk-light-2 dark:hover:shadow-risk-dark-2",secondary:"bg-gray-10 dark:bg-gray-40 text-gray-50 dark:text-white hover:bg-gray-40 dark:hover:bg-gray-10 hover:text-white dark:hover:text-gray-50 active:bg-gray-50 disabled:opacity-50 disabled:bg-gray-10 disabled:text-gray-50",stroked:"bg-transparent ring ring-2 ring-gray-50 dark:ring-white text-gray-50 dark:text-white hover:bg-gray-40 dark:hover:bg-gray-10 hover:text-white dark:hover:text-gray-50 active:bg-gray-50 disabled:opacity-50 disabled:bg-transparent dark:disabled:bg-transparent disabled:text-gray-50 dark:disabled:text-white"},He=({className:e,children:t,disabled:r,icon:n,iconAction:o,iconPosition:l,size:s="md",type:i="button",variant:f="primary",...b},h)=>{const v=ie(n!==void 0?l:void 0),x=c(ce,A[f],v[s],e);return a.jsxs("button",{className:x,disabled:r,ref:h,type:i,...b,children:[l==="start"&&n!==void 0?d.createElement(n,{className:"mr-0.5",onClick:o??void 0,size:V[s]}):null,a.jsx("span",{className:"truncate",children:t}),l==="end"&&n!==void 0?d.createElement(n,{className:"ml-0.5",onClick:o??void 0,size:V[s]}):null]})},U=d.forwardRef(He);U.displayName="Button";const Zt=({error:e,className:t,label:r,disabled:n,name:o,...l},s)=>{const i=d.useId(),f=d.useMemo(()=>`checkbox-label-${i}`,[i]);return a.jsxs("div",{className:c(["flex items-baseline rounded-0.5 w-fit focus-within:border-transparent focus-within:outline-2 focus-within:outline-info focus-within:outline focus-within:dark:border-transparent focus-within:dark:outline-info-dark",t]),children:[a.jsx("input",{"aria-labelledby":f,className:"w-1.5 h-1.5 mr-0.5 flex-none rounded-0.25 focus-within:outline-none peer",disabled:n,id:o,name:o,ref:s,type:"checkbox",...l}),r?a.jsx("div",{className:"peer-disabled:text-text-muted-light peer-disabled:dark:text-text-muted-dark text-text-light dark:text-text-dark",children:a.jsx("label",{htmlFor:o,id:f,children:r})}):null,e?a.jsx("div",{className:"text-alert-light dark:text-alert-dark text-13",children:e}):null]})},Ve=d.forwardRef(Zt);Ve.displayName="Checkbox";var Gt=Object.defineProperty,Xt=Object.defineProperties,Jt=Object.getOwnPropertyDescriptors,Q=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,qe=(e,t,r)=>t in e?Gt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Yt=(e,t)=>{for(var r in t||(t={}))Ae.call(t,r)&&qe(e,r,t[r]);if(Q)for(var r of Q(t))Ue.call(t,r)&&qe(e,r,t[r]);return e},Rt=(e,t)=>Xt(e,Jt(t)),Qt=(e,t)=>{var r={};for(var n in e)Ae.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Q)for(var n of Q(e))t.indexOf(n)<0&&Ue.call(e,n)&&(r[n]=e[n]);return r},er=(e,t)=>{var r=e,{title:n,titleId:o}=r,l=Qt(r,["title","titleId"]);return a.jsxs("svg",Rt(Yt({width:l.size||"24",height:l.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},l),{children:[n?a.jsx("title",{id:o,children:n}):null,a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.768 11.646a.5.5 0 0 0 0 .708l3.182 3.182a1 1 0 0 1-1.414 1.414l-3.182-3.182a.5.5 0 0 0-.708 0L8.464 16.95a1 1 0 1 1-1.414-1.414l3.182-3.182a.5.5 0 0 0 0-.708L7.05 8.464A1 1 0 1 1 8.464 7.05l3.182 3.182a.5.5 0 0 0 .707 0l3.183-3.182a1 1 0 1 1 1.414 1.414l-3.182 3.182Z",fill:"currentColor"})]}))},tr=d.forwardRef(er),rr=tr;const ue=({children:e,autoFocus:t=!0})=>{const r=d.useRef(null);return d.useEffect(()=>{if(r.current){const n=r.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');let o=document.activeElement;const l=n[0],s=n[n.length-1],i=h=>{if(h.key==="Tab"){if(h.shiftKey){if(document.activeElement===l)h.preventDefault(),s.focus(),o=s;else for(let v=0;v<n.length;v++)if(n[v]===document.activeElement){o=n[v-1];break}}else if(!h.shiftKey){if(document.activeElement===s)h.preventDefault(),l.focus(),o=l;else for(let v=0;v<n.length;v++)if(n[v]===document.activeElement){o=n[v+1];break}}}};t&&(()=>{if(r.current){const h=r.current.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');h&&h.focus()}})();const b=h=>{r.current&&!r.current.contains(h.target)&&o.focus()};return document.addEventListener("keydown",i),document.addEventListener("click",b),()=>{document.removeEventListener("keydown",i),document.removeEventListener("click",b)}}},[t]),a.jsx("div",{ref:r,children:e})},nr=({children:e,className:t,disabled:r,type:n="button",variant:o="borderless",...l},s)=>a.jsx("button",{className:c(["rounded-full inline-flex justify-center items-center p-1",t,A[o],r?"pointer-events-none":""]),disabled:r,ref:s,type:n,...l,children:e}),fe=d.forwardRef(nr);fe.displayName="IconButton";const ar={1:"h1",2:"h2",3:"h3",4:"h4"},or=({className:e,children:t,font:r="primary",level:n=1,size:o,variant:l,...s},i)=>{const f="text-text-light dark:text-text-dark",b=ze[r],h=je({size:o,variant:l});return a.jsx(N,{className:c(f,h,b,e),component:ar[n],ref:i,...s,children:t})},pe=d.forwardRef(or);pe.displayName="Heading";const lr=({autoFocus:e=!0,children:t,className:r,confirmationButtons:n,dialogType:o="confirmation",heading:l,isDismissableOnOutsideClick:s=!0,onClose:i,...f},b)=>{Ce();const h=o==="confirmation"?"max-w-[400px]":"max-w-[700px]";return a.jsxs("div",{className:"flex items-center justify-center w-full h-full z-20 absolute inset-0",children:[a.jsx("div",{className:"absolute inset-0 bg-overlay-light dark:bg-overlay-dark","data-testid":"dialog-overlay",id:"overlay",onClick:s?i:void 0}),a.jsx(ue,{autoFocus:e,children:a.jsxs("dialog",{className:c(" z-20 relative rounded-2 p-3 mlb-4 mli-2 bg-canvas-light dark:bg-canvas-dark",h,r),open:!0,ref:b,...f,children:[o==="modal"?a.jsx(fe,{className:"absolute inline-end-2 block-start-2","data-testid":"close-modal-button",onClick:i,children:a.jsx(rr,{})}):null,a.jsx("div",{children:l?a.jsx(pe,{className:"pbe-1",size:"md",variant:"headline",children:l}):null}),a.jsx("div",{children:t}),a.jsx("div",{className:"w-full flex justify-end items-center pbs-2",children:n==null?void 0:n.map(({label:v,...x},m)=>a.jsx(U,{"aria-label":v,size:"sm",variant:"all_caps",...x,children:v},`${v}${m}`))})]})})]})},Ke=d.forwardRef(lr);Ke.displayName="Dialog";const sr=({className:e,...t})=>a.jsx("hr",{...t,className:c("w-full border-gray-15 dark:border-gray-30 border-standard",e)}),dr=({className:e,progress:t})=>a.jsx("div",{className:c(["w-full bg-gray-15 h-2 rounded-3 overflow-hidden",e]),children:a.jsx("div",{className:"bg-blue-30 h-2 ease-in-out duration-300",style:{transitionProperty:"width",width:`${t}%`}})}),ir=({className:e,children:t,component:r="a",variant:n="borderless",...o},l)=>d.createElement(r,{...o,className:c(["rounded-full inline-flex justify-center items-center p-1 no-underline cursor-pointer",A[n],e]),ref:l},t),Ze=d.forwardRef(ir);Ze.displayName="IconLinkButton";var cr=Object.defineProperty,ur=Object.defineProperties,fr=Object.getOwnPropertyDescriptors,ee=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable,Je=(e,t,r)=>t in e?cr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,pr=(e,t)=>{for(var r in t||(t={}))Ge.call(t,r)&&Je(e,r,t[r]);if(ee)for(var r of ee(t))Xe.call(t,r)&&Je(e,r,t[r]);return e},br=(e,t)=>ur(e,fr(t)),gr=(e,t)=>{var r={};for(var n in e)Ge.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ee)for(var n of ee(e))t.indexOf(n)<0&&Xe.call(e,n)&&(r[n]=e[n]);return r},hr=(e,t)=>{var r=e,{title:n,titleId:o}=r,l=gr(r,["title","titleId"]);return a.jsxs("svg",br(pr({width:l.size||"24",height:l.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},l),{children:[n?a.jsx("title",{id:o,children:n}):null,a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.768 11.646a.5.5 0 0 0 0 .708l3.182 3.182a1 1 0 0 1-1.414 1.414l-3.182-3.182a.5.5 0 0 0-.708 0L8.464 16.95a1 1 0 1 1-1.414-1.414l3.182-3.182a.5.5 0 0 0 0-.708L7.05 8.464A1 1 0 0 1 8.464 7.05l3.182 3.182a.5.5 0 0 0 .707 0l3.183-3.182a1 1 0 1 1 1.414 1.414l-3.182 3.182Z",fill:"currentColor"})]}))},mr=d.forwardRef(hr),yr=mr,vr=Object.defineProperty,xr=Object.defineProperties,wr=Object.getOwnPropertyDescriptors,te=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,Qe=(e,t,r)=>t in e?vr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,kr=(e,t)=>{for(var r in t||(t={}))Ye.call(t,r)&&Qe(e,r,t[r]);if(te)for(var r of te(t))Re.call(t,r)&&Qe(e,r,t[r]);return e},Sr=(e,t)=>xr(e,wr(t)),Nr=(e,t)=>{var r={};for(var n in e)Ye.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&te)for(var n of te(e))t.indexOf(n)<0&&Re.call(e,n)&&(r[n]=e[n]);return r},Er=(e,t)=>{var r=e,{title:n,titleId:o}=r,l=Nr(r,["title","titleId"]);return a.jsxs("svg",Sr(kr({width:l.size||"24",height:l.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},l),{children:[n?a.jsx("title",{id:o,children:n}):null,a.jsx("path",{d:"M9.346 14.272c.15.228.499.228 1.194.228h5.628c.81 0 1.215 0 1.36-.262.145-.261-.07-.605-.5-1.292l-.667-1.068c-.386-.618-.58-.928-.861-.928s-.475.31-.861.928l-.453.724-1.252-2.924c-.4-.931-.6-1.397-.934-1.397-.335 0-.534.466-.934 1.397l-1.46 3.406c-.273.64-.41.96-.26 1.188ZM18 7a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z",fill:"currentColor"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.879 3.379C6 4.257 6 5.672 6 8.5v3c0 2.828 0 4.243.879 5.121.878.879 2.293.879 5.121.879h3c2.828 0 4.243 0 5.121-.879C21 15.743 21 14.328 21 11.5v-3c0-2.828 0-4.243-.879-5.121C19.243 2.5 17.828 2.5 15 2.5h-3c-2.828 0-4.243 0-5.121.879ZM18.02 4.623c-.65-.087-1.55-.092-3.021-.092h-3c-1.472 0-2.371.005-3.021.092-.301.04-.466.09-.554.126a.292.292 0 0 0-.11.066.292.292 0 0 0-.066.11 2.313 2.313 0 0 0-.126.554c-.087.65-.092 1.55-.092 3.021v3c0 1.472.005 2.371.092 3.021.04.301.09.466.126.554.03.072.05.095.066.11a.292.292 0 0 0 .11.066c.088.036.253.085.554.126.65.087 1.55.092 3.021.092h3c1.472 0 2.371-.005 3.021-.092.301-.04.466-.09.554-.126a.292.292 0 0 0 .11-.066.292.292 0 0 0 .066-.11c.036-.088.085-.253.126-.554.087-.65.092-1.55.092-3.021v-3c0-1.472-.005-2.371-.092-3.021a2.313 2.313 0 0 0-.126-.554.292.292 0 0 0-.066-.11.292.292 0 0 0-.11-.066 2.313 2.313 0 0 0-.554-.126Z",fill:"currentColor"}),a.jsx("path",{d:"M2 8.5c0-1 1-2 2-2v9a4 4 0 0 0 4 4h9c0 1-.887 2-2 2H8a6 6 0 0 1-6-6v-7Z",fill:"currentColor"})]}))},Cr=d.forwardRef(Er),Ir=Cr,Lr=Object.defineProperty,Pr=Object.defineProperties,Br=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,rt=(e,t,r)=>t in e?Lr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Tr=(e,t)=>{for(var r in t||(t={}))et.call(t,r)&&rt(e,r,t[r]);if(re)for(var r of re(t))tt.call(t,r)&&rt(e,r,t[r]);return e},Dr=(e,t)=>Pr(e,Br(t)),Mr=(e,t)=>{var r={};for(var n in e)et.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&re)for(var n of re(e))t.indexOf(n)<0&&tt.call(e,n)&&(r[n]=e[n]);return r},jr=(e,t)=>{var r=e,{title:n,titleId:o}=r,l=Mr(r,["title","titleId"]);return a.jsxs("svg",Dr(Tr({width:l.size||"24",height:l.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},l),{children:[n?a.jsx("title",{id:o,children:n}):null,a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 4a1 1 0 0 1 1-1 9 9 0 0 1 9 9 1 1 0 1 1-2 0 7.001 7.001 0 0 0-7-7 1 1 0 0 1-1-1Z",fill:"currentColor",children:a.jsx("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",from:"0 12 12",to:"360 12 12",dur:l.dur,repeatCount:"indefinite"})})]}))},zr=d.forwardRef(jr),Or=zr;const Fr=({acceptedFileTypes:e=["image/*"],changeImageButtonLabel:t="Change",chooseImageButtonLabel:r="Choose Image",className:n,disabled:o=!1,dismissCallback:l,dismissImageAriaLabel:s="Remove Image",error:i="",fileMaxKbSizeError:f=(C,ve)=>`${C} is too big to upload, the maximum size is ${ve}kb. Please try again.`,fileMaxSizeError:b=C=>`${C} is too large to upload. The maximum dimensions are ${u==null?void 0:u.maxWidth}x${u==null?void 0:u.maxHeight}. Please try again.`,fileMinSizeError:h=C=>`${C} is too small to upload. The minimum dimensions are ${u==null?void 0:u.minWidth}x${u==null?void 0:u.minHeight}. Please try again.`,fileRatioError:v=C=>`${C} must have a ratio of, ${u==null?void 0:u.imageRatio}. Please try again.`,fileCallback:x,hero:m=!1,hint:g,imageWidth:E=160,imageSrc:k,label:M="Upload Image",name:L="imageUpload",onBlur:P,preProcessing:w,shape:y="circle",validation:u},ae)=>{const C=d.useRef(null),ve=X({forwardedRef:ae,innerRef:C}),[S,H]=d.useState(void 0),[j,z]=d.useState(k?"resolved":"idle"),[xe,K]=d.useState(i),Dn=()=>C!=null&&C.current?C.current.click():void 0,xt=d.useMemo(()=>S&&j!=="rejected"?(z("resolved"),S.imageSrc):k&&j==="resolved"?(z("resolved"),k):null,[S,k,j]),Mn=d.useMemo(()=>{const T=()=>{l&&l(k),H(void 0),z("idle")};switch(j){case"pending":return a.jsx(N,{className:"animate-spin",children:a.jsx(Or,{className:"text-info-light dark:text-info-dark","data-testid":"loading spinner",size:"32"})});case"resolved":return a.jsxs(a.Fragment,{children:[a.jsx("img",{alt:`${S==null?void 0:S.id} preview`,className:c(["object-fit w-full h-full",y==="circle"?"rounded-full":"rounded-0.5",y!=="unset"||!m?"aspect-square":"",y==="unset"&&m?"aspect-video":"",y==="unset"&&!m?"!aspect-auto":""]),onLoad:()=>S!=null&&S.imageSrc?URL.revokeObjectURL(S.imageSrc):void 0,src:xt||void 0,width:E}),o?null:a.jsx(U,{"aria-label":s,className:"absolute -top-0.5 -right-0.5 rounded-3 !p-0 !text-text-muted-light dark:text-text-muted-dark bg-white dark:bg-gray-40 dark:hover:bg-white dark:hover:!text-gray-45 hover:!text-white shadow-light-1 dark:shadow-dark-1","data-testid":"remove image",onClick:T,children:a.jsx(yr,{})})]});default:return a.jsx(N,{className:"gray-10 dark:gray-30",children:a.jsx(Ir,{"data-testid":"placeholder image",size:"32"})})}},[o,l,s,m,S==null?void 0:S.id,S==null?void 0:S.imageSrc,k,j,E,xt,y]),jn=({file:T,imageUrl:F})=>new Promise((W,$)=>{var wt;const I=new Image,Z=(wt=u==null?void 0:u.imageRatio)==null?void 0:wt.split("/");I.onload=async()=>{if(u)if(u!=null&&u.maxByteSize&&T.size>u.maxByteSize){H(void 0),z("rejected");const _n=f(T.name,Math.round(u.maxByteSize/1e3));return K(_n),$(!1)}else{if(u!=null&&u.minWidth&&I.width<(u==null?void 0:u.minWidth)||u!=null&&u.minHeight&&I.height<(u==null?void 0:u.minHeight))return H(void 0),z("rejected"),K(h(T.name)),$(!1);if(u!=null&&u.maxHeight&&I.height>(u==null?void 0:u.maxHeight)||u!=null&&u.maxWidth&&I.width>(u==null?void 0:u.maxWidth))return H(void 0),z("rejected"),K(b(T.name)),$(!1);if(u!=null&&u.imageRatio&&(Z==null?void 0:Z.length)===2&&parseInt(Z[0])/parseInt(Z[1])!==I.width/I.height)return H(void 0),z("rejected"),K(v(T.name)),$(!1)}return E=I.width,typeof x=="function"&&(console.log("Callback"),await x(T,I)),K(""),W(!0)},I.src=F}),zn=async T=>{try{const{files:F}=T.target;if(F){const W=F[0],$=URL.createObjectURL(W);let I=!0;z("pending"),w&&await w(W),I=await jn({file:W,imageUrl:$}),I&&(H({file:W,id:W.name,imageSrc:$}),z("resolved"))}}catch(F){if(F instanceof Error)throw F}},On=c([y==="circle"&&!m?"rounded-full aspect-square":""]),Fn=c([y==="square"&&!m?"aspect-square rounded-1":""]),Wn=c([y==="unset"&&!m?"rounded-1":"",y==="unset"&&j!=="idle"&&!m?"aspect-auto":"",y==="unset"&&j!=="resolved"&&!m?"aspect-square":""]),$n=c([m?"rounded-1 aspect-video":""]);return a.jsxs(N,{className:c([n]),children:[a.jsxs(N,{className:c(["relative border-small border-solid rounded-1 mb-0.5 pt-1 pb-2 px-2 text-text-muted-light dark:text-text-muted-dark",,xe?"border-alert-light dark:border-alert-dark":"border-tertiary-light dark:border-tertiary-dark",o?"select-none bg-gray-10 dark:bg-gray-40 pointer-events-none":""]),children:[a.jsx(B,{className:"pb-1.5 text-text-muted-light dark:text-text-muted-dark",children:a.jsx("label",{htmlFor:L,children:M})}),a.jsxs(N,{className:"flex relative flex-wrap justify-center md:justify-start",children:[a.jsx(N,{className:c(["flex justify-center items-center relative mbe-2 md:mbe-0 md:mie-2",m?"w-full":"md:w-1/2 w-4/5",o?"border-small border-solid border-tertiary-light":"",j!=="resolved"?"bg-gray-10 dark:bg-gray-3":"",On,Fn,Wn,$n]),children:Mn}),a.jsx(U,{className:c(["my-auto !ring-gray-15 dark:!ring-gray-30 !ring-1 disabled:!bg-gray-15 disabled:!ring-none",m?"!mbs-2":""]),disabled:o,onClick:Dn,size:"sm",variant:"stroked",children:j==="resolved"?t:r}),a.jsx("input",{accept:e.toString(),className:"hidden",disabled:o,id:L,name:L,onBlur:P,onChange:zn,ref:ve,title:"",type:"file",value:""})]})]}),xe?a.jsx(B,{className:"dark:!text-alert-dark !text-alert-light text-13",children:xe}):null,g?a.jsx(B,{className:"text-text-muted-light dark:text-text-muted-dark text-13",children:g}):null]})},nt=d.forwardRef(Fr);nt.displayName="ImageUpload";const at=({className:e,children:t,component:r="a",icon:n,iconPosition:o,variant:l="primary",size:s="md",...i},f)=>{const b=ie(n!==void 0?o:void 0),h=({children:v})=>d.createElement(r,{...i,className:c([ce,A[l],b[s],"no-underline cursor-pointer",e]),ref:f},v);return a.jsxs(h,{children:[o==="start"&&n!==void 0?d.createElement(n,{className:"mie-0.5 flex-shrink-0",size:V[s]}):null,d.createElement("span",{className:"truncate"},t),o==="end"&&n!==void 0?d.createElement(n,{className:"mis-0.5 flex-shrink-0",size:V[s]}):null]})},ot=d.forwardRef(at);ot.displayName="LinkButton";function Wr({children:e,className:t,position:r}){let n="";return r&&(r==="start"?n="order-first":n="order-last"),a.jsx("div",{className:c("flex gap-1",n,t),children:e})}function $r({children:e,className:t}){return a.jsx("div",{className:c("flex-grow",t),children:e})}const _r=({children:e,className:t,endText:r,endTextProps:n,size:o="sm",subHeadline:l,subHeadlineProps:s})=>a.jsxs("div",{className:c(["flex items-center justify-between break-words",t]),children:[a.jsxs("div",{className:"flex flex-col",children:[a.jsx(B,{size:o,variant:"label",children:e}),l?a.jsx(B,{...s,children:l}):null]}),r?a.jsx(B,{...n,children:r}):null]}),Hr=({children:e,className:t,...r})=>a.jsx("div",{className:c(["relative",t]),...r,children:e}),Vr=typeof window<"u"?d.useLayoutEffect:()=>{};let q=new Map,lt=new Set;function st(){if(typeof window>"u")return;let e=r=>{let n=q.get(r.target);n||(n=new Set,q.set(r.target,n),r.target.addEventListener("transitioncancel",t)),n.add(r.propertyName)},t=r=>{let n=q.get(r.target);if(n&&(n.delete(r.propertyName),n.size===0&&(r.target.removeEventListener("transitioncancel",t),q.delete(r.target)),q.size===0)){for(let o of lt)o();lt.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?st():document.addEventListener("DOMContentLoaded",st));function Ar(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(r=>e.test(r.brand)))||e.test(window.navigator.userAgent)}function Ur(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function qr(){return Ur(/^Mac/i)}function Kr(){return Ar(/Android/i)}function Zr(e){return e.mozInputSource===0&&e.isTrusted?!0:Kr()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function be(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Gr=d.createContext(null);Gr.displayName="PressResponderContext";class Xr{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,r){this.nativeEvent=r,this.target=r.target,this.currentTarget=r.currentTarget,this.relatedTarget=r.relatedTarget,this.bubbles=r.bubbles,this.cancelable=r.cancelable,this.defaultPrevented=r.defaultPrevented,this.eventPhase=r.eventPhase,this.isTrusted=r.isTrusted,this.timeStamp=r.timeStamp,this.type=t}}function Jr(e){let t=d.useRef({isFocused:!1,onBlur:e,observer:null});return t.current.onBlur=e,Vr(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]),d.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=r.target,o=l=>{var s,i;t.current.isFocused=!1,n.disabled&&((i=(s=t.current).onBlur)===null||i===void 0||i.call(s,new Xr("blur",l))),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};n.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{t.current.isFocused&&n.disabled&&(t.current.observer.disconnect(),n.dispatchEvent(new FocusEvent("blur")),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0})))}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[])}let Yr=new Set,dt=!1,O=!1,ge=!1;function he(e,t){for(let r of Yr)r(e,t)}function Rr(e){return!(e.metaKey||!qr()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function it(e){O=!0,Rr(e)&&he("keyboard",e)}function _(e){(e.type==="mousedown"||e.type==="pointerdown")&&(O=!0,he("pointer",e))}function Qr(e){Zr(e)&&(O=!0)}function en(e){e.target===window||e.target===document||(!O&&!ge&&he("virtual",e),O=!1,ge=!1)}function tn(){O=!1,ge=!0}function ct(){if(typeof window>"u"||dt)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){O=!0,e.apply(this,arguments)},document.addEventListener("keydown",it,!0),document.addEventListener("keyup",it,!0),document.addEventListener("click",Qr,!0),window.addEventListener("focus",en,!0),window.addEventListener("blur",tn,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",_,!0),document.addEventListener("pointermove",_,!0),document.addEventListener("pointerup",_,!0)):(document.addEventListener("mousedown",_,!0),document.addEventListener("mousemove",_,!0),document.addEventListener("mouseup",_,!0)),dt=!0}typeof document<"u"&&(document.readyState!=="loading"?ct():document.addEventListener("DOMContentLoaded",ct));function rn(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,l=d.useRef({isFocusWithin:!1}),s=d.useCallback(b=>{l.current.isFocusWithin&&!b.currentTarget.contains(b.relatedTarget)&&(l.current.isFocusWithin=!1,r&&r(b),o&&o(!1))},[r,o,l]),i=Jr(s),f=d.useCallback(b=>{!l.current.isFocusWithin&&document.activeElement===b.target&&(n&&n(b),o&&o(!0),l.current.isFocusWithin=!0,i(b))},[n,o,i]);return t?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:f,onBlur:s}}}function nn(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:o}=e,s=d.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1,onInteractOutside:r,onInteractOutsideStart:o}).current;s.onInteractOutside=r,s.onInteractOutsideStart=o,d.useEffect(()=>{if(n)return;let i=f=>{ne(f,t)&&s.onInteractOutside&&(s.onInteractOutsideStart&&s.onInteractOutsideStart(f),s.isPointerDown=!0)};if(typeof PointerEvent<"u"){let f=b=>{s.isPointerDown&&s.onInteractOutside&&ne(b,t)&&s.onInteractOutside(b),s.isPointerDown=!1};return document.addEventListener("pointerdown",i,!0),document.addEventListener("pointerup",f,!0),()=>{document.removeEventListener("pointerdown",i,!0),document.removeEventListener("pointerup",f,!0)}}else{let f=h=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&s.onInteractOutside&&ne(h,t)&&s.onInteractOutside(h),s.isPointerDown=!1},b=h=>{s.ignoreEmulatedMouseEvents=!0,s.onInteractOutside&&s.isPointerDown&&ne(h,t)&&s.onInteractOutside(h),s.isPointerDown=!1};return document.addEventListener("mousedown",i,!0),document.addEventListener("mouseup",f,!0),document.addEventListener("touchstart",i,!0),document.addEventListener("touchend",b,!0),()=>{document.removeEventListener("mousedown",i,!0),document.removeEventListener("mouseup",f,!0),document.removeEventListener("touchstart",i,!0),document.removeEventListener("touchend",b,!0)}}},[t,s,n])}function ne(e,t){if(e.button>0)return!1;if(e.target){const r=e.target.ownerDocument;if(!r||!r.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}let an=null;function ut(e,t){return t.some(r=>r.contains(e))}function on(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of pt.traverse(pt.getTreeNode(t)))if(ut(e,r.current))return!0;return!1}function ln(e){return on(e,an)}class me{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let o=this.fastMap.get(r??null),l=new ft({scopeRef:t});o.addChild(l),l.parent=o,this.fastMap.set(t,l),n&&(l.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t),n=r.parent;for(let l of this.traverse())l!==r&&r.nodeToRestore&&l.nodeToRestore&&r.scopeRef.current&&ut(l.nodeToRestore,r.scopeRef.current)&&(l.nodeToRestore=r.nodeToRestore);let o=r.children;n.removeChild(r),o.size>0&&o.forEach(l=>n.addChild(l)),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){let t=new me;for(let r of this.traverse())t.addTreeNode(r.scopeRef,r.parent.scopeRef,r.nodeToRestore);return t}constructor(){be(this,"fastMap",new Map),this.root=new ft({scopeRef:null}),this.fastMap.set(null,this.root)}}class ft{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){be(this,"children",new Set),be(this,"contain",!1),this.scopeRef=t.scopeRef}}let pt=new me;const D=[];function sn(e,t){let{onClose:r,shouldCloseOnBlur:n,isOpen:o,isDismissable:l=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:i}=e;d.useEffect(()=>(o&&D.push(t),()=>{let g=D.indexOf(t);g>=0&&D.splice(g,1)}),[o,t]);let f=()=>{D[D.length-1]===t&&r&&r()},b=g=>{(!i||i(g.target))&&D[D.length-1]===t&&(g.stopPropagation(),g.preventDefault())},h=g=>{(!i||i(g.target))&&(D[D.length-1]===t&&(g.stopPropagation(),g.preventDefault()),f())},v=g=>{g.key==="Escape"&&!s&&(g.stopPropagation(),g.preventDefault(),f())};nn({ref:t,onInteractOutside:l?h:null,onInteractOutsideStart:b});let{focusWithinProps:x}=rn({isDisabled:!n,onBlurWithin:g=>{g.relatedTarget&&ln(g.relatedTarget)||(!i||i(g.relatedTarget))&&r()}}),m=g=>{g.target===g.currentTarget&&g.preventDefault()};return{overlayProps:{onKeyDown:v,...x},underlayProps:{onPointerDown:m}}}const dn=({align:e,children:t,className:r,...n})=>{const o=d.useMemo(()=>{const{horizontal:l,vertical:s}=e,i={center:"left-1/2",end:"inline-end-0",start:"inline-start-0"},f={bottom:"",top:"bottom-full"};return`${i[l]} ${f[s]}`},[e]);return a.jsx("div",{className:c(["absolute shadow-light-2 dark:shadow-dark-2 rounded-1 bg-canvas-light dark:bg-overlay-body-dark mb-0.5 w-max overflow-y-scroll min-h-[200px] max-h-[400px] scrollbar-hide z-10",o,r]),...n,children:t})},cn=({open:e,children:t})=>a.jsx(a.Fragment,{children:e?t:null}),un=({align:e={horizontal:"start",vertical:"bottom"},autoFocus:t=!0,children:r,className:n,isDismissible:o,isOpen:l,onClose:s,...i})=>{const f=d.useRef(null),{overlayProps:b}=sn({isDismissable:o,isKeyboardDismissDisabled:!o,isOpen:l,onClose:s},f);return a.jsx(cn,{open:l,children:a.jsx(ue,{autoFocus:t,children:a.jsx(dn,{align:e,className:n,onClose:s,...i,children:a.jsx("div",{ref:f,...b,onClick:s,children:r})})})})},fn=({onToggle:e,children:t,className:r,disabled:n})=>{const o=i=>{i.preventDefault(),i.stopPropagation(),e()},l=d.useRef(null),s=d.cloneElement(t,{className:r,disabled:n,onClick:o,ref:l});return a.jsx(a.Fragment,{children:s})},pn=(e,t)=>{const{children:r,error:n,hint:o,label:l}=e;return a.jsxs("div",{...e,className:"flex-col rounded-0.5 w-fit",ref:t,children:[a.jsx("label",{children:l}),n?a.jsx("p",{className:"text-alert-light dark:text-alert-dark text-13",children:n}):null,o?a.jsx("p",{className:"text-13 text-gray-25 dark:text-gray-20",children:o}):null,r]})},bt=d.forwardRef(pn);bt.displayName="Radio Set";const bn=({children:e,disabled:t,name:r,value:n,...o},l)=>a.jsxs("div",{className:"flex items-baseline rounded-0.5 w-fit focus-within:border-transparent focus-within:outline-2 focus-within:outline-info focus-within:outline focus-within:dark:border-transparent focus-within:dark:outline-info-dark",children:[a.jsx("input",{className:"w-1.5 h-1.5 mr-0.5 flex-none rounded-0.25 focus-within:outline-none peer display: inline",disabled:t,id:r,name:r,ref:l,...o,type:"radio",value:n}),a.jsx("label",{className:"peer-disabled:text-text-muted-light peer-disabled:dark:text-text-muted-dark text-text-light dark:text-text-dark",htmlFor:"name",children:e})]}),gt=d.forwardRef(bn);gt.displayName="RadioSetItem";const gn=({...e})=>a.jsx("option",{...e}),ht="_select_1dwiy_1",Hn={select:ht},hn="appearance-none outline-none bg-transparent disabled:bg-gray-10 dark:disabled:bg-gray-40 rounded-1 border-solid border-small font-aktiv-grotesk text-16 leading-loose p-2 w-full mlb-0",mn="border-alert-light dark:border-alert-dark",yn="border-tertiary-light dark:border-tertiary-dark",ye="text-text-muted-light dark:text-text-muted-dark",mt=c(ye,"font-aktiv-grotesk font-medium text-13 absolute inline-start-2 block-start-2 pointer-events-none opacity-0 h-1.5"),vn="-translate-y-1 opacity-100",xn="text-overlay-text dark:text-text-dark",wn="!pbs-3 !pbe-1",kn="absolute block-end-2 inline-end-1.5 leading-0 pointer-events-none text-text-muted-light dark:text-text-muted-dark",Sn=({children:e,className:t,disabled:r=!1,error:n,hint:o,label:l,name:s,onChange:i,value:f,...b},h)=>{var P;const v=c(ht,hn),x=d.useRef(null),m=X({forwardedRef:h,innerRef:x}),[g,E]=d.useState(Boolean(f||((P=m==null?void 0:m.current)==null?void 0:P.value)));d.useEffect(()=>{var w;E(Boolean(((w=m==null?void 0:m.current)==null?void 0:w.value)||f))},[f,m]);const k=d.useMemo(()=>{const w=c(v,xn,l?wn:null),y=c(v,ye);return g?w:y},[v,g,l]),M=d.useMemo(()=>{const w=c(mt,vn),y=c(mt);return g?w:y},[g]),L=w=>{var y;E(Boolean(((y=m==null?void 0:m.current)==null?void 0:y.value)||f)),i&&i(w)};return a.jsxs("div",{className:c(t),children:[a.jsxs("div",{className:c("relative w-full border-none"),children:[a.jsx("select",{...b,className:c([k,n?mn:yn]),disabled:r,id:s,name:s,onChange:L,ref:m,value:f,children:e}),a.jsx("label",{className:M,htmlFor:s,children:l}),a.jsx("div",{className:kn,children:a.jsx(Ne,{size:"24"})})]}),n||o?a.jsxs("div",{className:"mbs-0.5",children:[n?a.jsx("p",{className:"text-alert-light dark:text-alert-dark text-13 m-0",children:n}):null,o?a.jsx("p",{className:c(ye,"text-13 m-0"),children:o}):null]}):null]})},Nn=d.forwardRef(Sn);function En({active:e,children:t,component:r="a",className:n,href:o}){return a.jsx(B,{className:c("text-gray-50 whitespace-nowrap text-16 leading-loose mie-2",e?"font-bold underline decoration-yv-red decoration-2 underline-offset-8":"text-text-muted-light dark:text-text-muted-dark",n),component:r,href:o,children:t})}const Cn={default:"bg-gray-10 dark:bg-gray-40 text-light dark:text-dark",secondary:"bg-gray-10 dark:bg-gray-35 text-light dark:text-dark",error:"bg-orange-10 dark:bg-orange-50 text-orange-40 dark:text-orange-20",info:"bg-blue-10 dark:bg-blue-50 text-blue-40, dark:text-blue-20",success:"bg-green-10, dark:bg-green-50 text-green-40 dark:text-green-20",caution:"bg-yellow-10 dark:bg-yellow-50 text-yellow-40 dark:text-yellow-20"},In={sm:"text-11 w-fit rounded-0.5 plb-0.25 pli-0.5",lg:"text-16 w-fit rounded-0.5 plb-0.5 pli-1"},Ln=({message:e,variant:t="default",size:r="sm",className:n})=>{const o=Cn[t],l=In[r];return a.jsx(N,{className:c(o,l,n),children:a.jsx(B,{children:e})})},Pn={inputIcon:"_inputIcon_1pzdd_1"},Bn=({className:e,error:t,name:r,...n},o)=>a.jsxs(a.Fragment,{children:[a.jsx("input",{className:c(["rounded-1 text-black dark:text-white p-2 border-small border-tertiary-light dark:border-tertiary-dark hover:cursor-pointer bg-transparent disabled:bg-gray-10 disabled:dark:bg-gray-40 disabled:cursor-auto h-[58px]",Pn.inputIcon,e]),id:r,name:r,ref:o,role:"textbox",type:"time",...n}),t?a.jsx("div",{className:"text-alert-light dark:text-alert-dark text-13",children:t}):null]}),yt=d.forwardRef(Bn);yt.displayName="TimePicker";const vt={tooltipWrapper:"_tooltipWrapper_qu88w_1",tooltipContent:"_tooltipContent_qu88w_18"},Tn=({content:e,className:t,...r})=>a.jsx("div",{className:c(vt.tooltipWrapper,t),...r,children:a.jsx("span",{className:vt.tooltipContent,children:e})});p.AutocompleteSelect=Ie,p.Box=N,p.Breadcrumb=Oe,p.Breadcrumbs=_e,p.Button=U,p.ButtonComponent=He,p.Checkbox=Ve,p.Dialog=Ke,p.Divider=sr,p.FocusTrap=ue,p.Heading=pe,p.HorizontalLoader=dr,p.IconButton=fe,p.IconLinkButton=Ze,p.ImageUpload=nt,p.Input=le,p.LinkButton=ot,p.LinkButtonComponent=at,p.List=se,p.ListItem=J,p.ListItemActions=Wr,p.ListItemContent=$r,p.ListItemText=_r,p.Option=gn,p.Popover=Hr,p.PopoverBody=un,p.PopoverTrigger=fn,p.RadioSet=bt,p.RadioSetItem=gt,p.Select=Nn,p.Tab=En,p.Tag=Ln,p.Text=B,p.TimePicker=yt,p.Tooltip=Tn,p.buttonSizeOptions=Kt,p.defaultButtonClasses=ce,p.determineSizeClasses=ie,p.iconSizes=V,p.useCombinedRefs=X,p.useLockBodyScroll=Ce,p.variantClasses=A,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})});
|