tcce-design-system-test 0.3.1 → 0.3.3
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.
|
@@ -1328,7 +1328,7 @@ const Sa = {
|
|
|
1328
1328
|
${({ size: t = 24 }) => Sa[t]}
|
|
1329
1329
|
margin: 0;
|
|
1330
1330
|
color: ${({ color: t }) => t || "var(--color-main-blue-primary)"};
|
|
1331
|
-
`,
|
|
1331
|
+
`, Xy = k.h2`
|
|
1332
1332
|
${({ size: t = 24 }) => Yu[t]}
|
|
1333
1333
|
margin: 0;
|
|
1334
1334
|
color: ${({ color: t }) => t || "var(--color-main-blue-primary)"};
|
|
@@ -6293,7 +6293,7 @@ const Ap = {
|
|
|
6293
6293
|
${Sa[30]}
|
|
6294
6294
|
color: var(--color-main-blue-primary);
|
|
6295
6295
|
margin: 0;
|
|
6296
|
-
`,
|
|
6296
|
+
`, Zy = ({ message: t = "Loading...", color: e = "primary", variant: n = "rotate" }) => /* @__PURE__ */ R(Np, { role: "status", "aria-live": "polite", children: [
|
|
6297
6297
|
/* @__PURE__ */ p(Lp, { children: /* @__PURE__ */ p(
|
|
6298
6298
|
_i,
|
|
6299
6299
|
{
|
|
@@ -6311,7 +6311,7 @@ const Ap = {
|
|
|
6311
6311
|
align-items: center;
|
|
6312
6312
|
justify-content: center;
|
|
6313
6313
|
padding: 3rem 1rem;
|
|
6314
|
-
`,
|
|
6314
|
+
`, Jy = ({ message: t, color: e = "primary", variant: n = "rotate" }) => /* @__PURE__ */ p(Op, { role: "status", "aria-live": "polite", children: /* @__PURE__ */ p(
|
|
6315
6315
|
_i,
|
|
6316
6316
|
{
|
|
6317
6317
|
size: "lg",
|
|
@@ -6695,8 +6695,7 @@ const vt = new tg(), eg = (t, e) => {
|
|
|
6695
6695
|
...e,
|
|
6696
6696
|
id: n
|
|
6697
6697
|
}), n;
|
|
6698
|
-
}, ng = (t) => t && typeof t == "object" && "ok" in t && typeof t.ok == "boolean" && "status" in t && typeof t.status == "number", rg = eg, ig = () => vt.toasts, og = () => vt.getActiveToasts()
|
|
6699
|
-
Object.assign(rg, {
|
|
6698
|
+
}, ng = (t) => t && typeof t == "object" && "ok" in t && typeof t.ok == "boolean" && "status" in t && typeof t.status == "number", rg = eg, ig = () => vt.toasts, og = () => vt.getActiveToasts(), sg = Object.assign(rg, {
|
|
6700
6699
|
success: vt.success,
|
|
6701
6700
|
info: vt.info,
|
|
6702
6701
|
warning: vt.warning,
|
|
@@ -6714,15 +6713,15 @@ Up("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;
|
|
|
6714
6713
|
function Tn(t) {
|
|
6715
6714
|
return t.label !== void 0;
|
|
6716
6715
|
}
|
|
6717
|
-
const
|
|
6716
|
+
const ag = 3, lg = "24px", cg = "16px", Os = 4e3, ug = 356, dg = 14, hg = 45, fg = 200;
|
|
6718
6717
|
function Lt(...t) {
|
|
6719
6718
|
return t.filter(Boolean).join(" ");
|
|
6720
6719
|
}
|
|
6721
|
-
function
|
|
6720
|
+
function mg(t) {
|
|
6722
6721
|
const [e, n] = t.split("-"), r = [];
|
|
6723
6722
|
return e && r.push(e), n && r.push(n), r;
|
|
6724
6723
|
}
|
|
6725
|
-
const
|
|
6724
|
+
const pg = (t) => {
|
|
6726
6725
|
var e, n, r, i, s, o, a, l, u;
|
|
6727
6726
|
const { invert: d, toast: c, unstyled: h, interacting: f, setHeights: m, visibleToasts: y, heights: b, index: g, toasts: w, expanded: v, removeToast: A, defaultRichColors: T, closeButton: S, style: C, cancelButtonStyle: E, actionButtonStyle: M, className: _ = "", descriptionClassName: D = "", duration: K, position: U, gap: Tt, expandByDefault: et, classNames: O, icons: V, closeButtonAriaLabel: F = "Close toast" } = t, [I, j] = x.useState(null), [nt, rt] = x.useState(null), [B, G] = x.useState(!1), [Y, st] = x.useState(!1), [$t, H] = x.useState(!1), [yt, qt] = x.useState(!1), [_t, pt] = x.useState(!1), [Sc, nr] = x.useState(0), [Tc, Ki] = x.useState(0), Ke = x.useRef(c.duration || K || Os), Yi = x.useRef(null), Ht = x.useRef(null), Cc = g === 0, kc = g + 1 <= y, wt = c.type, ve = c.dismissible !== !1, Pc = c.className || "", Ac = c.descriptionClassName || "", hn = x.useMemo(() => b.findIndex((N) => N.toastId === c.id) || 0, [
|
|
6728
6727
|
b,
|
|
@@ -6794,7 +6793,7 @@ const mg = (t) => {
|
|
|
6794
6793
|
const Zt = x.useCallback(() => {
|
|
6795
6794
|
st(!0), nr(be.current), m((N) => N.filter((at) => at.toastId !== c.id)), setTimeout(() => {
|
|
6796
6795
|
A(c);
|
|
6797
|
-
},
|
|
6796
|
+
}, fg);
|
|
6798
6797
|
}, [
|
|
6799
6798
|
c,
|
|
6800
6799
|
A,
|
|
@@ -6891,7 +6890,7 @@ const mg = (t) => {
|
|
|
6891
6890
|
if (yt || !ve) return;
|
|
6892
6891
|
xe.current = null;
|
|
6893
6892
|
const St = Number(((N = Ht.current) == null ? void 0 : N.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), fn = Number(((at = Ht.current) == null ? void 0 : at.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), ut = (/* @__PURE__ */ new Date()).getTime() - ((ht = Yi.current) == null ? void 0 : ht.getTime()), Ct = I === "x" ? St : fn, mn = Math.abs(Ct) / ut;
|
|
6894
|
-
if (Math.abs(Ct) >=
|
|
6893
|
+
if (Math.abs(Ct) >= hg || mn > 0.11) {
|
|
6895
6894
|
nr(be.current), c.onDismiss == null || c.onDismiss.call(c, c), rt(I === "x" ? St > 0 ? "right" : "left" : fn > 0 ? "down" : "up"), Zt(), qt(!0);
|
|
6896
6895
|
return;
|
|
6897
6896
|
} else {
|
|
@@ -6905,7 +6904,7 @@ const mg = (t) => {
|
|
|
6905
6904
|
if (!xe.current || !ve || ((at = window.getSelection()) == null ? void 0 : at.toString().length) > 0) return;
|
|
6906
6905
|
const ut = N.clientY - xe.current.y, Ct = N.clientX - xe.current.x;
|
|
6907
6906
|
var mn;
|
|
6908
|
-
const Mt = (mn = t.swipeDirections) != null ? mn :
|
|
6907
|
+
const Mt = (mn = t.swipeDirections) != null ? mn : mg(U);
|
|
6909
6908
|
!I && (Math.abs(Ct) > 1 || Math.abs(ut) > 1) && j(Math.abs(Ct) > Math.abs(ut) ? "x" : "y");
|
|
6910
6909
|
let Vt = {
|
|
6911
6910
|
x: 0,
|
|
@@ -6973,13 +6972,13 @@ function js() {
|
|
|
6973
6972
|
const t = document.documentElement.getAttribute("dir");
|
|
6974
6973
|
return t === "auto" || !t ? window.getComputedStyle(document.documentElement).direction : t;
|
|
6975
6974
|
}
|
|
6976
|
-
function
|
|
6975
|
+
function gg(t, e) {
|
|
6977
6976
|
const n = {};
|
|
6978
6977
|
return [
|
|
6979
6978
|
t,
|
|
6980
6979
|
e
|
|
6981
6980
|
].forEach((r, i) => {
|
|
6982
|
-
const s = i === 1, o = s ? "--mobile-offset" : "--offset", a = s ?
|
|
6981
|
+
const s = i === 1, o = s ? "--mobile-offset" : "--offset", a = s ? cg : lg;
|
|
6983
6982
|
function l(u) {
|
|
6984
6983
|
[
|
|
6985
6984
|
"top",
|
|
@@ -7000,11 +6999,11 @@ function pg(t, e) {
|
|
|
7000
6999
|
}) : l(a);
|
|
7001
7000
|
}), n;
|
|
7002
7001
|
}
|
|
7003
|
-
const
|
|
7002
|
+
const yg = /* @__PURE__ */ x.forwardRef(function(e, n) {
|
|
7004
7003
|
const { id: r, invert: i, position: s = "bottom-right", hotkey: o = [
|
|
7005
7004
|
"altKey",
|
|
7006
7005
|
"KeyT"
|
|
7007
|
-
], expand: a, closeButton: l, className: u, offset: d, mobileOffset: c, theme: h = "light", richColors: f, duration: m, style: y, visibleToasts: b =
|
|
7006
|
+
], expand: a, closeButton: l, className: u, offset: d, mobileOffset: c, theme: h = "light", richColors: f, duration: m, style: y, visibleToasts: b = ag, toastOptions: g, dir: w = js(), gap: v = dg, icons: A, containerAriaLabel: T = "Notifications" } = e, [S, C] = x.useState([]), E = x.useMemo(() => r ? S.filter((B) => B.toasterId === r) : S.filter((B) => !B.toasterId), [
|
|
7008
7007
|
S,
|
|
7009
7008
|
r
|
|
7010
7009
|
]), M = x.useMemo(() => Array.from(new Set([
|
|
@@ -7119,10 +7118,10 @@ const gg = /* @__PURE__ */ x.forwardRef(function(e, n) {
|
|
|
7119
7118
|
"data-x-position": $t,
|
|
7120
7119
|
style: {
|
|
7121
7120
|
"--front-toast-height": `${((Y = _[0]) == null ? void 0 : Y.height) || 0}px`,
|
|
7122
|
-
"--width": `${
|
|
7121
|
+
"--width": `${ug}px`,
|
|
7123
7122
|
"--gap": `${v}px`,
|
|
7124
7123
|
...y,
|
|
7125
|
-
...
|
|
7124
|
+
...gg(d, c)
|
|
7126
7125
|
},
|
|
7127
7126
|
onBlur: (H) => {
|
|
7128
7127
|
nt.current && !H.currentTarget.contains(H.relatedTarget) && (nt.current = !1, j.current && (j.current.focus({
|
|
@@ -7144,7 +7143,7 @@ const gg = /* @__PURE__ */ x.forwardRef(function(e, n) {
|
|
|
7144
7143
|
onPointerUp: () => et(!1)
|
|
7145
7144
|
}, E.filter((H) => !H.position && G === 0 || H.position === B).map((H, yt) => {
|
|
7146
7145
|
var qt, _t;
|
|
7147
|
-
return /* @__PURE__ */ x.createElement(
|
|
7146
|
+
return /* @__PURE__ */ x.createElement(pg, {
|
|
7148
7147
|
key: H.id,
|
|
7149
7148
|
icons: A,
|
|
7150
7149
|
index: yt,
|
|
@@ -7175,8 +7174,8 @@ const gg = /* @__PURE__ */ x.forwardRef(function(e, n) {
|
|
|
7175
7174
|
});
|
|
7176
7175
|
})) : null;
|
|
7177
7176
|
}));
|
|
7178
|
-
}),
|
|
7179
|
-
|
|
7177
|
+
}), Qy = () => /* @__PURE__ */ p(
|
|
7178
|
+
yg,
|
|
7180
7179
|
{
|
|
7181
7180
|
position: "bottom-center",
|
|
7182
7181
|
theme: "light",
|
|
@@ -7192,7 +7191,7 @@ const gg = /* @__PURE__ */ x.forwardRef(function(e, n) {
|
|
|
7192
7191
|
loading: /* @__PURE__ */ p(jp, { color: "orange" })
|
|
7193
7192
|
}
|
|
7194
7193
|
}
|
|
7195
|
-
),
|
|
7194
|
+
), tv = sg, vg = {
|
|
7196
7195
|
elevated: P`
|
|
7197
7196
|
background-color: var(--color-main-white);
|
|
7198
7197
|
box-shadow: var(--shadow-black-card);
|
|
@@ -7223,7 +7222,7 @@ const gg = /* @__PURE__ */ x.forwardRef(function(e, n) {
|
|
|
7223
7222
|
border: none;
|
|
7224
7223
|
}
|
|
7225
7224
|
`
|
|
7226
|
-
},
|
|
7225
|
+
}, bg = {
|
|
7227
7226
|
sm: P`
|
|
7228
7227
|
padding: 0.75rem;
|
|
7229
7228
|
gap: 0.5rem;
|
|
@@ -7236,7 +7235,7 @@ const gg = /* @__PURE__ */ x.forwardRef(function(e, n) {
|
|
|
7236
7235
|
padding: 1.25rem;
|
|
7237
7236
|
gap: 0.5rem;
|
|
7238
7237
|
`
|
|
7239
|
-
},
|
|
7238
|
+
}, xg = P`
|
|
7240
7239
|
transition:
|
|
7241
7240
|
box-shadow 0.3s ease-out,
|
|
7242
7241
|
background-color 0.3s ease-out,
|
|
@@ -7256,7 +7255,7 @@ const gg = /* @__PURE__ */ x.forwardRef(function(e, n) {
|
|
|
7256
7255
|
&:focus-visible {
|
|
7257
7256
|
outline-color: var(--color-main-blue-primary);
|
|
7258
7257
|
}
|
|
7259
|
-
`,
|
|
7258
|
+
`, wg = P`
|
|
7260
7259
|
opacity: 0.6;
|
|
7261
7260
|
cursor: not-allowed;
|
|
7262
7261
|
pointer-events: none;
|
|
@@ -7265,7 +7264,7 @@ const gg = /* @__PURE__ */ x.forwardRef(function(e, n) {
|
|
|
7265
7264
|
transform: none;
|
|
7266
7265
|
box-shadow: inherit;
|
|
7267
7266
|
}
|
|
7268
|
-
`,
|
|
7267
|
+
`, Sg = k.div`
|
|
7269
7268
|
display: flex;
|
|
7270
7269
|
flex-direction: column;
|
|
7271
7270
|
border-radius: var(--border-radius-card);
|
|
@@ -7273,11 +7272,11 @@ const gg = /* @__PURE__ */ x.forwardRef(function(e, n) {
|
|
|
7273
7272
|
height: 100%;
|
|
7274
7273
|
outline: 2px solid transparent;
|
|
7275
7274
|
outline-offset: -1px;
|
|
7276
|
-
${({ $variant: t }) =>
|
|
7277
|
-
${({ $clickable: t }) => t &&
|
|
7278
|
-
${({ $disabled: t }) => t &&
|
|
7279
|
-
${({ $size: t }) =>
|
|
7280
|
-
`,
|
|
7275
|
+
${({ $variant: t }) => vg[t]}
|
|
7276
|
+
${({ $clickable: t }) => t && xg}
|
|
7277
|
+
${({ $disabled: t }) => t && wg}
|
|
7278
|
+
${({ $size: t }) => bg[t]}
|
|
7279
|
+
`, ev = ({
|
|
7281
7280
|
variant: t = "elevated",
|
|
7282
7281
|
size: e = "md",
|
|
7283
7282
|
disabled: n = !1,
|
|
@@ -7289,7 +7288,7 @@ const gg = /* @__PURE__ */ x.forwardRef(function(e, n) {
|
|
|
7289
7288
|
n || r && r(a);
|
|
7290
7289
|
};
|
|
7291
7290
|
return /* @__PURE__ */ p(
|
|
7292
|
-
|
|
7291
|
+
Sg,
|
|
7293
7292
|
{
|
|
7294
7293
|
$variant: t,
|
|
7295
7294
|
$size: e,
|
|
@@ -7305,30 +7304,30 @@ const gg = /* @__PURE__ */ x.forwardRef(function(e, n) {
|
|
|
7305
7304
|
children: i
|
|
7306
7305
|
}
|
|
7307
7306
|
);
|
|
7308
|
-
},
|
|
7307
|
+
}, Tg = k.div`
|
|
7309
7308
|
display: flex;
|
|
7310
7309
|
align-items: center;
|
|
7311
7310
|
align-self: stretch;
|
|
7312
7311
|
gap: 0.5rem;
|
|
7313
|
-
`,
|
|
7312
|
+
`, nv = ({
|
|
7314
7313
|
children: t,
|
|
7315
7314
|
...e
|
|
7316
|
-
}) => /* @__PURE__ */ p(
|
|
7315
|
+
}) => /* @__PURE__ */ p(Tg, { ...e, children: t }), Cg = k.div`
|
|
7317
7316
|
flex: 1;
|
|
7318
7317
|
display: flex;
|
|
7319
7318
|
flex-direction: column;
|
|
7320
|
-
`,
|
|
7319
|
+
`, rv = ({
|
|
7321
7320
|
children: t,
|
|
7322
7321
|
...e
|
|
7323
|
-
}) => /* @__PURE__ */ p(
|
|
7322
|
+
}) => /* @__PURE__ */ p(Cg, { ...e, children: t }), kg = k.div`
|
|
7324
7323
|
display: flex;
|
|
7325
7324
|
align-items: center;
|
|
7326
7325
|
align-self: stretch;
|
|
7327
7326
|
gap: 0.5rem;
|
|
7328
|
-
`,
|
|
7327
|
+
`, iv = ({
|
|
7329
7328
|
children: t,
|
|
7330
7329
|
...e
|
|
7331
|
-
}) => /* @__PURE__ */ p(
|
|
7330
|
+
}) => /* @__PURE__ */ p(kg, { ...e, children: t }), Pg = {
|
|
7332
7331
|
sm: P`
|
|
7333
7332
|
${z[12]}
|
|
7334
7333
|
`,
|
|
@@ -7338,9 +7337,9 @@ const gg = /* @__PURE__ */ x.forwardRef(function(e, n) {
|
|
|
7338
7337
|
lg: P`
|
|
7339
7338
|
${z[18]}
|
|
7340
7339
|
`
|
|
7341
|
-
},
|
|
7340
|
+
}, Ag = k.div`
|
|
7342
7341
|
color: var(--color-main-warning-state);
|
|
7343
|
-
${({ $size: t }) =>
|
|
7342
|
+
${({ $size: t }) => Pg[t]}
|
|
7344
7343
|
font-weight: 400;
|
|
7345
7344
|
margin-top: 0.25rem;
|
|
7346
7345
|
display: flex;
|
|
@@ -7351,7 +7350,7 @@ const gg = /* @__PURE__ */ x.forwardRef(function(e, n) {
|
|
|
7351
7350
|
className: e,
|
|
7352
7351
|
size: n = "md",
|
|
7353
7352
|
...r
|
|
7354
|
-
}) => /* @__PURE__ */ p(
|
|
7353
|
+
}) => /* @__PURE__ */ p(Ag, { className: e, $size: n, ...r, children: t }), Eg = {
|
|
7355
7354
|
sm: P`
|
|
7356
7355
|
${z[16]}
|
|
7357
7356
|
`,
|
|
@@ -7361,12 +7360,12 @@ const gg = /* @__PURE__ */ x.forwardRef(function(e, n) {
|
|
|
7361
7360
|
lg: P`
|
|
7362
7361
|
${z[30]}
|
|
7363
7362
|
`
|
|
7364
|
-
},
|
|
7363
|
+
}, Dg = k.label`
|
|
7365
7364
|
color: var(--color-main-blue-primary);
|
|
7366
|
-
${({ $size: t }) =>
|
|
7367
|
-
${({ $disabled: t }) => t &&
|
|
7365
|
+
${({ $size: t }) => Eg[t]}
|
|
7366
|
+
${({ $disabled: t }) => t && $g}
|
|
7368
7367
|
cursor: ${({ $disabled: t, $htmlFor: e }) => t || !e ? "default" : "pointer"};
|
|
7369
|
-
`,
|
|
7368
|
+
`, $g = P`
|
|
7370
7369
|
cursor: not-allowed;
|
|
7371
7370
|
opacity: 0.6;
|
|
7372
7371
|
`, Hi = ({
|
|
@@ -7378,7 +7377,7 @@ const gg = /* @__PURE__ */ x.forwardRef(function(e, n) {
|
|
|
7378
7377
|
size: s = "md",
|
|
7379
7378
|
...o
|
|
7380
7379
|
}) => /* @__PURE__ */ R(
|
|
7381
|
-
|
|
7380
|
+
Dg,
|
|
7382
7381
|
{
|
|
7383
7382
|
className: n,
|
|
7384
7383
|
htmlFor: e,
|
|
@@ -7391,7 +7390,7 @@ const gg = /* @__PURE__ */ x.forwardRef(function(e, n) {
|
|
|
7391
7390
|
r && /* @__PURE__ */ p("span", { style: { color: "var(--color-main-warning-state)" }, children: "*" })
|
|
7392
7391
|
]
|
|
7393
7392
|
}
|
|
7394
|
-
),
|
|
7393
|
+
), Mg = [
|
|
7395
7394
|
"text",
|
|
7396
7395
|
"email",
|
|
7397
7396
|
"password",
|
|
@@ -7407,10 +7406,10 @@ const gg = /* @__PURE__ */ x.forwardRef(function(e, n) {
|
|
|
7407
7406
|
"checkbox",
|
|
7408
7407
|
"radio",
|
|
7409
7408
|
"pin"
|
|
7410
|
-
],
|
|
7409
|
+
], ov = (t) => t.map((e) => ({
|
|
7411
7410
|
name: e.name || "",
|
|
7412
7411
|
label: e.label || "",
|
|
7413
|
-
type:
|
|
7412
|
+
type: Mg.includes(e.type) ? e.type : "text",
|
|
7414
7413
|
placeholder: e.placeholder,
|
|
7415
7414
|
required: e.required || !1,
|
|
7416
7415
|
disabled: e.disabled || !1,
|
|
@@ -7421,10 +7420,10 @@ const gg = /* @__PURE__ */ x.forwardRef(function(e, n) {
|
|
|
7421
7420
|
pinLength: e.pinLength || 6,
|
|
7422
7421
|
pinType: e.pinType || "number",
|
|
7423
7422
|
rows: e.rows || 4
|
|
7424
|
-
})),
|
|
7423
|
+
})), sv = (t) => t.map((e) => ({
|
|
7425
7424
|
value: e.value,
|
|
7426
7425
|
label: e.label
|
|
7427
|
-
})),
|
|
7426
|
+
})), av = {
|
|
7428
7427
|
/**
|
|
7429
7428
|
* Creates a text input field configuration
|
|
7430
7429
|
*/
|
|
@@ -7512,7 +7511,7 @@ const gg = /* @__PURE__ */ x.forwardRef(function(e, n) {
|
|
|
7512
7511
|
},
|
|
7513
7512
|
...r
|
|
7514
7513
|
})
|
|
7515
|
-
},
|
|
7514
|
+
}, lv = (t, e, n, r, i, s, o, a) => {
|
|
7516
7515
|
const { field: l, ...u } = e, d = {
|
|
7517
7516
|
...l,
|
|
7518
7517
|
...u,
|
|
@@ -7654,7 +7653,7 @@ const gg = /* @__PURE__ */ x.forwardRef(function(e, n) {
|
|
|
7654
7653
|
border: var(--border-input-disabled) !important;
|
|
7655
7654
|
cursor: not-allowed;
|
|
7656
7655
|
opacity: 0.6;
|
|
7657
|
-
`,
|
|
7656
|
+
`, Vg = P`
|
|
7658
7657
|
border: none;
|
|
7659
7658
|
border-top: 0;
|
|
7660
7659
|
border-right: 0;
|
|
@@ -7702,13 +7701,13 @@ const gg = /* @__PURE__ */ x.forwardRef(function(e, n) {
|
|
|
7702
7701
|
justify-content: center;
|
|
7703
7702
|
flex-shrink: 0;
|
|
7704
7703
|
user-select: none;
|
|
7705
|
-
`,
|
|
7704
|
+
`, Rg = k.div`
|
|
7706
7705
|
${Ue}
|
|
7707
7706
|
${({ $size: t }) => tr[t]}
|
|
7708
7707
|
${({ $hasError: t }) => t && We}
|
|
7709
7708
|
${({ $disabled: t }) => t && ye}
|
|
7710
|
-
${({ $isFlushed: t }) => t &&
|
|
7711
|
-
`,
|
|
7709
|
+
${({ $isFlushed: t }) => t && Vg}
|
|
7710
|
+
`, Ig = k.input`
|
|
7712
7711
|
${Ui}
|
|
7713
7712
|
`, nc = zt(
|
|
7714
7713
|
({
|
|
@@ -7724,7 +7723,7 @@ const gg = /* @__PURE__ */ x.forwardRef(function(e, n) {
|
|
|
7724
7723
|
className: u,
|
|
7725
7724
|
...d
|
|
7726
7725
|
}, c) => /* @__PURE__ */ R(
|
|
7727
|
-
|
|
7726
|
+
Rg,
|
|
7728
7727
|
{
|
|
7729
7728
|
$size: t,
|
|
7730
7729
|
$hasError: e,
|
|
@@ -7740,7 +7739,7 @@ const gg = /* @__PURE__ */ x.forwardRef(function(e, n) {
|
|
|
7740
7739
|
}
|
|
7741
7740
|
),
|
|
7742
7741
|
/* @__PURE__ */ p(
|
|
7743
|
-
|
|
7742
|
+
Ig,
|
|
7744
7743
|
{
|
|
7745
7744
|
ref: c,
|
|
7746
7745
|
type: r,
|
|
@@ -7762,18 +7761,18 @@ const gg = /* @__PURE__ */ x.forwardRef(function(e, n) {
|
|
|
7762
7761
|
)
|
|
7763
7762
|
);
|
|
7764
7763
|
nc.displayName = "BaseInput";
|
|
7765
|
-
const
|
|
7764
|
+
const Ng = ({ color: t = "currentColor", size: e = 24, className: n, ...r }) => x.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", width: e, height: e, fill: t, ...r, className: "remixicon " + (n || "") }, x.createElement("path", { d: "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" })), Lg = ({ color: t = "currentColor", size: e = 24, className: n, ...r }) => x.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", width: e, height: e, fill: t, ...r, className: "remixicon " + (n || "") }, x.createElement("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })), Bg = ({ color: t = "currentColor", size: e = 24, className: n, ...r }) => x.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", width: e, height: e, fill: t, ...r, className: "remixicon " + (n || "") }, x.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), Og = ({ color: t = "currentColor", size: e = 24, className: n, ...r }) => x.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", width: e, height: e, fill: t, ...r, className: "remixicon " + (n || "") }, x.createElement("path", { d: "M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z" })), jg = ({ color: t = "currentColor", size: e = 24, className: n, ...r }) => x.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", width: e, height: e, fill: t, ...r, className: "remixicon " + (n || "") }, x.createElement("path", { d: "M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z" })), Fg = ({ color: t = "currentColor", size: e = 24, className: n, ...r }) => x.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", width: e, height: e, fill: t, ...r, className: "remixicon " + (n || "") }, x.createElement("path", { d: "M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z" })), zg = ({ color: t = "currentColor", size: e = 24, className: n, ...r }) => x.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", width: e, height: e, fill: t, ...r, className: "remixicon " + (n || "") }, x.createElement("path", { d: "M17.8827 19.2968C16.1814 20.3755 14.1638 21.0002 12.0003 21.0002C6.60812 21.0002 2.12215 17.1204 1.18164 12.0002C1.61832 9.62282 2.81932 7.5129 4.52047 5.93457L1.39366 2.80777L2.80788 1.39355L22.6069 21.1925L21.1927 22.6068L17.8827 19.2968ZM5.9356 7.3497C4.60673 8.56015 3.6378 10.1672 3.22278 12.0002C4.14022 16.0521 7.7646 19.0002 12.0003 19.0002C13.5997 19.0002 15.112 18.5798 16.4243 17.8384L14.396 15.8101C13.7023 16.2472 12.8808 16.5002 12.0003 16.5002C9.51498 16.5002 7.50026 14.4854 7.50026 12.0002C7.50026 11.1196 7.75317 10.2981 8.19031 9.60442L5.9356 7.3497ZM12.9139 14.328L9.67246 11.0866C9.5613 11.3696 9.50026 11.6777 9.50026 12.0002C9.50026 13.3809 10.6196 14.5002 12.0003 14.5002C12.3227 14.5002 12.6309 14.4391 12.9139 14.328ZM20.8068 16.5925L19.376 15.1617C20.0319 14.2268 20.5154 13.1586 20.7777 12.0002C19.8603 7.94818 16.2359 5.00016 12.0003 5.00016C11.1544 5.00016 10.3329 5.11773 9.55249 5.33818L7.97446 3.76015C9.22127 3.26959 10.5793 3.00016 12.0003 3.00016C17.3924 3.00016 21.8784 6.87992 22.8189 12.0002C22.5067 13.6998 21.8038 15.2628 20.8068 16.5925ZM11.7229 7.50857C11.8146 7.50299 11.9071 7.50016 12.0003 7.50016C14.4855 7.50016 16.5003 9.51488 16.5003 12.0002C16.5003 12.0933 16.4974 12.1858 16.4919 12.2775L11.7229 7.50857Z" })), zs = ({ color: t = "currentColor", size: e = 24, className: n, ...r }) => x.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", width: e, height: e, fill: t, ...r, className: "remixicon " + (n || "") }, x.createElement("path", { d: "M3 4H21V6H3V4ZM3 11H21V13H3V11ZM3 18H21V20H3V18Z" })), _g = ({ color: t = "currentColor", size: e = 24, className: n, ...r }) => x.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", width: e, height: e, fill: t, ...r, className: "remixicon " + (n || "") }, x.createElement("path", { d: "M20 17H22V19H2V17H4V10C4 5.58172 7.58172 2 12 2C16.4183 2 20 5.58172 20 10V17ZM9 21H15V23H9V21Z" })), Hg = ({ color: t = "currentColor", size: e = 24, className: n, ...r }) => x.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", width: e, height: e, fill: t, ...r, className: "remixicon " + (n || "") }, x.createElement("path", { d: "M20 17H22V19H2V17H4V10C4 5.58172 7.58172 2 12 2C16.4183 2 20 5.58172 20 10V17ZM18 17V10C18 6.68629 15.3137 4 12 4C8.68629 4 6 6.68629 6 10V17H18ZM9 21H15V23H9V21Z" })), _s = ({ color: t = "currentColor", size: e = 24, className: n, ...r }) => x.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", width: e, height: e, fill: t, ...r, className: "remixicon " + (n || "") }, x.createElement("path", { d: "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z" })), Ug = k.div`
|
|
7766
7765
|
${Ue}
|
|
7767
7766
|
${({ $size: t }) => tr[t ?? "md"]}
|
|
7768
7767
|
${({ $hasError: t }) => t && We}
|
|
7769
7768
|
${({ $disabled: t }) => t && ye}
|
|
7770
7769
|
position: relative;
|
|
7771
|
-
`,
|
|
7770
|
+
`, Wg = k.input`
|
|
7772
7771
|
${Ui}
|
|
7773
|
-
`,
|
|
7772
|
+
`, Kg = k.span`
|
|
7774
7773
|
${er}
|
|
7775
7774
|
cursor: ${({ $disabled: t }) => t ? "not-allowed" : "pointer"};
|
|
7776
|
-
`,
|
|
7775
|
+
`, Yg = ({
|
|
7777
7776
|
size: t = "md",
|
|
7778
7777
|
leftIcon: e,
|
|
7779
7778
|
iconSize: n = "sm",
|
|
@@ -7786,7 +7785,7 @@ const Ig = ({ color: t = "currentColor", size: e = 24, className: n, ...r }) =>
|
|
|
7786
7785
|
}) => {
|
|
7787
7786
|
const [u, d] = Wt(!1), c = () => d((h) => !h);
|
|
7788
7787
|
return /* @__PURE__ */ R(
|
|
7789
|
-
|
|
7788
|
+
Ug,
|
|
7790
7789
|
{
|
|
7791
7790
|
$size: t,
|
|
7792
7791
|
$hasError: s,
|
|
@@ -7802,7 +7801,7 @@ const Ig = ({ color: t = "currentColor", size: e = 24, className: n, ...r }) =>
|
|
|
7802
7801
|
}
|
|
7803
7802
|
),
|
|
7804
7803
|
/* @__PURE__ */ p(
|
|
7805
|
-
|
|
7804
|
+
Wg,
|
|
7806
7805
|
{
|
|
7807
7806
|
type: u ? "text" : "password",
|
|
7808
7807
|
placeholder: i,
|
|
@@ -7810,10 +7809,10 @@ const Ig = ({ color: t = "currentColor", size: e = 24, className: n, ...r }) =>
|
|
|
7810
7809
|
...l
|
|
7811
7810
|
}
|
|
7812
7811
|
),
|
|
7813
|
-
/* @__PURE__ */ p(
|
|
7812
|
+
/* @__PURE__ */ p(Kg, { $disabled: o, onClick: o ? void 0 : c, children: /* @__PURE__ */ p(
|
|
7814
7813
|
q,
|
|
7815
7814
|
{
|
|
7816
|
-
component: u ?
|
|
7815
|
+
component: u ? zg : Fg,
|
|
7817
7816
|
size: n,
|
|
7818
7817
|
color: o ? "var(--color-dark-200)" : r
|
|
7819
7818
|
}
|
|
@@ -7824,19 +7823,19 @@ const Ig = ({ color: t = "currentColor", size: e = 24, className: n, ...r }) =>
|
|
|
7824
7823
|
}, rc = (t) => {
|
|
7825
7824
|
const e = t.findIndex((n) => !n.disabled);
|
|
7826
7825
|
return e !== -1 ? e : 0;
|
|
7827
|
-
},
|
|
7826
|
+
}, Gg = (t) => {
|
|
7828
7827
|
const e = t.map((n, r) => ({ ...n, index: r })).reverse().find((n) => !n.disabled)?.index;
|
|
7829
7828
|
return e !== void 0 ? e : t.length - 1;
|
|
7830
|
-
},
|
|
7829
|
+
}, Xg = (t, e, n) => {
|
|
7831
7830
|
let r = t;
|
|
7832
7831
|
do
|
|
7833
7832
|
r = (r + e + n.length) % n.length;
|
|
7834
7833
|
while (n[r]?.disabled && r !== t);
|
|
7835
7834
|
return r;
|
|
7836
|
-
},
|
|
7835
|
+
}, qg = (t, e) => ({
|
|
7837
7836
|
target: { value: String(t), name: e },
|
|
7838
7837
|
currentTarget: { value: String(t), name: e }
|
|
7839
|
-
}),
|
|
7838
|
+
}), Zg = (t, e) => {
|
|
7840
7839
|
if (e >= 0 && t.current) {
|
|
7841
7840
|
const n = t.current.children[e];
|
|
7842
7841
|
n && n.scrollIntoView({
|
|
@@ -7844,17 +7843,17 @@ const Ig = ({ color: t = "currentColor", size: e = 24, className: n, ...r }) =>
|
|
|
7844
7843
|
behavior: "smooth"
|
|
7845
7844
|
});
|
|
7846
7845
|
}
|
|
7847
|
-
},
|
|
7846
|
+
}, Jg = (t, e) => {
|
|
7848
7847
|
if (typeof t == "string" || typeof t == "number") {
|
|
7849
7848
|
const n = e.findIndex((r) => r.value === t);
|
|
7850
7849
|
if (n !== -1 && !e[n].disabled)
|
|
7851
7850
|
return n;
|
|
7852
7851
|
}
|
|
7853
7852
|
return rc(e);
|
|
7854
|
-
},
|
|
7853
|
+
}, Qg = k.div`
|
|
7855
7854
|
position: relative;
|
|
7856
7855
|
width: 100%;
|
|
7857
|
-
`,
|
|
7856
|
+
`, t0 = k.div`
|
|
7858
7857
|
${er}
|
|
7859
7858
|
position: absolute;
|
|
7860
7859
|
right: 1rem;
|
|
@@ -7862,7 +7861,7 @@ const Ig = ({ color: t = "currentColor", size: e = 24, className: n, ...r }) =>
|
|
|
7862
7861
|
transform: translateY(-50%) rotate(${({ $open: t }) => t ? "180deg" : "0deg"});
|
|
7863
7862
|
pointer-events: none;
|
|
7864
7863
|
transition: transform 0.3s ease-out;
|
|
7865
|
-
`,
|
|
7864
|
+
`, e0 = k.button`
|
|
7866
7865
|
${Ue}
|
|
7867
7866
|
${({ $size: t }) => tr[t]}
|
|
7868
7867
|
${({ $hasError: t }) => t && We}
|
|
@@ -7884,7 +7883,7 @@ const Ig = ({ color: t = "currentColor", size: e = 24, className: n, ...r }) =>
|
|
|
7884
7883
|
&:hover {
|
|
7885
7884
|
background-color: var(--color-main-alternative-secondary);
|
|
7886
7885
|
}
|
|
7887
|
-
`,
|
|
7886
|
+
`, n0 = k(ge.ul)`
|
|
7888
7887
|
position: absolute;
|
|
7889
7888
|
z-index: 50;
|
|
7890
7889
|
left: 0;
|
|
@@ -7906,11 +7905,11 @@ const Ig = ({ color: t = "currentColor", size: e = 24, className: n, ...r }) =>
|
|
|
7906
7905
|
border: var(--border-input-focus);
|
|
7907
7906
|
outline: none;
|
|
7908
7907
|
}
|
|
7909
|
-
`,
|
|
7908
|
+
`, r0 = k.div`
|
|
7910
7909
|
max-height: 15rem;
|
|
7911
7910
|
overflow-y: auto;
|
|
7912
7911
|
outline: none;
|
|
7913
|
-
`,
|
|
7912
|
+
`, i0 = k.li`
|
|
7914
7913
|
display: flex;
|
|
7915
7914
|
align-items: center;
|
|
7916
7915
|
gap: 0.5rem;
|
|
@@ -7920,11 +7919,11 @@ const Ig = ({ color: t = "currentColor", size: e = 24, className: n, ...r }) =>
|
|
|
7920
7919
|
cursor: ${({ $disabled: t }) => t ? "not-allowed" : "pointer"};
|
|
7921
7920
|
user-select: none;
|
|
7922
7921
|
|
|
7923
|
-
${({ $size: t }) =>
|
|
7922
|
+
${({ $size: t }) => o0[t ?? "md"]}
|
|
7924
7923
|
|
|
7925
7924
|
background-color: ${({ $active: t }) => t ? "var(--color-main-alternative-secondary)" : "transparent"};
|
|
7926
7925
|
color: ${({ $disabled: t }) => t ? "var(--color-dark-200)" : "var(--color-main-blue-primary)"};
|
|
7927
|
-
`,
|
|
7926
|
+
`, o0 = {
|
|
7928
7927
|
sm: P`
|
|
7929
7928
|
${z[16]}
|
|
7930
7929
|
`,
|
|
@@ -7952,9 +7951,9 @@ const Ig = ({ color: t = "currentColor", size: e = 24, className: n, ...r }) =>
|
|
|
7952
7951
|
}, f) => {
|
|
7953
7952
|
const m = ft(null), y = ft(null), b = ft(null), g = ft(null), w = Xt(), [v, A] = Wt(!1), [T, S] = Wt(-1), C = r.find((D) => D.value === a);
|
|
7954
7953
|
Ot(() => {
|
|
7955
|
-
v && y.current && (y.current.focus(), S(
|
|
7954
|
+
v && y.current && (y.current.focus(), S(Jg(a, r)));
|
|
7956
7955
|
}, [v, r, a]), Ot(() => {
|
|
7957
|
-
|
|
7956
|
+
Zg(b, T);
|
|
7958
7957
|
}, [T]), Ot(() => {
|
|
7959
7958
|
if (!v) return;
|
|
7960
7959
|
const D = (K) => {
|
|
@@ -7967,7 +7966,7 @@ const Ig = ({ color: t = "currentColor", size: e = 24, className: n, ...r }) =>
|
|
|
7967
7966
|
});
|
|
7968
7967
|
}, [v, f]);
|
|
7969
7968
|
const E = (D) => {
|
|
7970
|
-
D.disabled || (s?.(D), o && o(
|
|
7969
|
+
D.disabled || (s?.(D), o && o(qg(D.value, l)), A(!1), S(-1));
|
|
7971
7970
|
}, M = (D) => {
|
|
7972
7971
|
n || (D.key === "ArrowDown" || D.key === "ArrowUp" ? (D.preventDefault(), A(!0)) : (D.key === "Enter" || D.key === " ") && (D.preventDefault(), A((K) => !K)));
|
|
7973
7972
|
}, _ = (D) => {
|
|
@@ -7978,17 +7977,17 @@ const Ig = ({ color: t = "currentColor", size: e = 24, className: n, ...r }) =>
|
|
|
7978
7977
|
if (D.key === "ArrowDown" || D.key === "ArrowUp") {
|
|
7979
7978
|
D.preventDefault();
|
|
7980
7979
|
const K = D.key === "ArrowDown" ? 1 : -1;
|
|
7981
|
-
S(
|
|
7980
|
+
S(Xg(T, K, r));
|
|
7982
7981
|
} else if (D.key === "Enter") {
|
|
7983
7982
|
D.preventDefault();
|
|
7984
7983
|
const K = r[T];
|
|
7985
7984
|
K && !K.disabled && E(K);
|
|
7986
|
-
} else D.key === "Home" ? (D.preventDefault(), S(rc(r))) : D.key === "End" && (D.preventDefault(), S(
|
|
7985
|
+
} else D.key === "Home" ? (D.preventDefault(), S(rc(r))) : D.key === "End" && (D.preventDefault(), S(Gg(r)));
|
|
7987
7986
|
};
|
|
7988
|
-
return /* @__PURE__ */ R(
|
|
7987
|
+
return /* @__PURE__ */ R(Qg, { ref: m, className: u, children: [
|
|
7989
7988
|
l && /* @__PURE__ */ p("input", { type: "hidden", name: l, value: C?.value ?? "" }),
|
|
7990
7989
|
/* @__PURE__ */ p(
|
|
7991
|
-
|
|
7990
|
+
e0,
|
|
7992
7991
|
{
|
|
7993
7992
|
type: "button",
|
|
7994
7993
|
$size: t,
|
|
@@ -8010,16 +8009,16 @@ const Ig = ({ color: t = "currentColor", size: e = 24, className: n, ...r }) =>
|
|
|
8010
8009
|
children: C?.label ?? i ?? ""
|
|
8011
8010
|
}
|
|
8012
8011
|
),
|
|
8013
|
-
/* @__PURE__ */ p(
|
|
8012
|
+
/* @__PURE__ */ p(t0, { $size: t, $disabled: n, $open: v, children: /* @__PURE__ */ p(
|
|
8014
8013
|
q,
|
|
8015
8014
|
{
|
|
8016
|
-
component:
|
|
8015
|
+
component: Bg,
|
|
8017
8016
|
size: t === "sm" || t === "md" ? "sm" : "md",
|
|
8018
8017
|
color: n ? "var(--color-dark-200)" : "var(--color-main-blue-primary)"
|
|
8019
8018
|
}
|
|
8020
8019
|
) }),
|
|
8021
8020
|
/* @__PURE__ */ p(qn, { children: v && /* @__PURE__ */ p(
|
|
8022
|
-
|
|
8021
|
+
n0,
|
|
8023
8022
|
{
|
|
8024
8023
|
ref: y,
|
|
8025
8024
|
className: "custom-scrollbar",
|
|
@@ -8047,10 +8046,10 @@ const Ig = ({ color: t = "currentColor", size: e = 24, className: n, ...r }) =>
|
|
|
8047
8046
|
ease: [0.4, 0, 0.2, 1]
|
|
8048
8047
|
},
|
|
8049
8048
|
onKeyDown: _,
|
|
8050
|
-
children: /* @__PURE__ */ p(
|
|
8049
|
+
children: /* @__PURE__ */ p(r0, { ref: b, className: c, children: r.map((D, K) => {
|
|
8051
8050
|
const U = K === T;
|
|
8052
8051
|
return /* @__PURE__ */ p(
|
|
8053
|
-
|
|
8052
|
+
i0,
|
|
8054
8053
|
{
|
|
8055
8054
|
id: `${w}-option-${K}`,
|
|
8056
8055
|
className: h,
|
|
@@ -8074,9 +8073,9 @@ const Ig = ({ color: t = "currentColor", size: e = 24, className: n, ...r }) =>
|
|
|
8074
8073
|
}
|
|
8075
8074
|
);
|
|
8076
8075
|
ic.displayName = "SelectInput";
|
|
8077
|
-
const
|
|
8076
|
+
const s0 = k.textarea`
|
|
8078
8077
|
${Ue}
|
|
8079
|
-
${({ $size: t }) =>
|
|
8078
|
+
${({ $size: t }) => a0[t]}
|
|
8080
8079
|
${({ $hasError: t }) => t && We}
|
|
8081
8080
|
${({ $disabled: t }) => t && ye}
|
|
8082
8081
|
${z[20]}
|
|
@@ -8092,7 +8091,7 @@ const o0 = k.textarea`
|
|
|
8092
8091
|
color: var(--color-dark-200);
|
|
8093
8092
|
opacity: 1;
|
|
8094
8093
|
}
|
|
8095
|
-
`,
|
|
8094
|
+
`, a0 = {
|
|
8096
8095
|
sm: `
|
|
8097
8096
|
${z[20]}
|
|
8098
8097
|
height: 6rem;
|
|
@@ -8124,7 +8123,7 @@ const o0 = k.textarea`
|
|
|
8124
8123
|
onChange: l,
|
|
8125
8124
|
...u
|
|
8126
8125
|
}, d) => /* @__PURE__ */ p(
|
|
8127
|
-
|
|
8126
|
+
s0,
|
|
8128
8127
|
{
|
|
8129
8128
|
ref: d,
|
|
8130
8129
|
$size: t,
|
|
@@ -8149,12 +8148,12 @@ const o0 = k.textarea`
|
|
|
8149
8148
|
)
|
|
8150
8149
|
);
|
|
8151
8150
|
oc.displayName = "TextAreaInput";
|
|
8152
|
-
const
|
|
8151
|
+
const l0 = k.div`
|
|
8153
8152
|
${Ue}
|
|
8154
8153
|
${({ $size: t }) => tr[t ?? "md"]}
|
|
8155
|
-
`,
|
|
8154
|
+
`, c0 = k.input`
|
|
8156
8155
|
${Ui}
|
|
8157
|
-
`,
|
|
8156
|
+
`, u0 = ({
|
|
8158
8157
|
size: t = "md",
|
|
8159
8158
|
leftIcon: e,
|
|
8160
8159
|
rightIcon: n = _s,
|
|
@@ -8163,15 +8162,15 @@ const a0 = k.div`
|
|
|
8163
8162
|
placeholder: s = "Buscar...",
|
|
8164
8163
|
onSearch: o,
|
|
8165
8164
|
className: a
|
|
8166
|
-
}) => /* @__PURE__ */ R(
|
|
8165
|
+
}) => /* @__PURE__ */ R(l0, { $size: t, className: a, children: [
|
|
8167
8166
|
e && /* @__PURE__ */ p(q, { component: e, size: r, color: i }),
|
|
8168
|
-
/* @__PURE__ */ p(
|
|
8167
|
+
/* @__PURE__ */ p(c0, { placeholder: s, onChange: (u) => {
|
|
8169
8168
|
o?.(u.target.value);
|
|
8170
8169
|
} }),
|
|
8171
8170
|
n ? /* @__PURE__ */ p(q, { component: n, size: r, color: i }) : /* @__PURE__ */ p(q, { component: _s, size: r, color: i })
|
|
8172
|
-
] }),
|
|
8171
|
+
] }), d0 = k.div`
|
|
8173
8172
|
position: relative;
|
|
8174
|
-
`,
|
|
8173
|
+
`, h0 = k.input`
|
|
8175
8174
|
position: absolute;
|
|
8176
8175
|
height: 1.5rem;
|
|
8177
8176
|
width: 1.5rem;
|
|
@@ -8188,7 +8187,7 @@ const a0 = k.div`
|
|
|
8188
8187
|
outline-color: var(--color-main-orange-primary);
|
|
8189
8188
|
outline-offset: 2px;
|
|
8190
8189
|
}
|
|
8191
|
-
`,
|
|
8190
|
+
`, f0 = k.div`
|
|
8192
8191
|
height: 1.5rem;
|
|
8193
8192
|
width: 1.5rem;
|
|
8194
8193
|
border: 2px solid;
|
|
@@ -8209,17 +8208,17 @@ const a0 = k.div`
|
|
|
8209
8208
|
|
|
8210
8209
|
${({ $hasError: t }) => t && We}
|
|
8211
8210
|
${({ $disabled: t }) => t && ye}
|
|
8212
|
-
${({ $checked: t }) => t &&
|
|
8213
|
-
`,
|
|
8211
|
+
${({ $checked: t }) => t && m0}
|
|
8212
|
+
`, m0 = P`
|
|
8214
8213
|
background-color: var(--color-main-orange-primary);
|
|
8215
8214
|
border-color: var(--color-main-orange-primary);
|
|
8216
|
-
`,
|
|
8215
|
+
`, p0 = k.svg`
|
|
8217
8216
|
height: 1.5rem;
|
|
8218
8217
|
width: 1.5rem;
|
|
8219
8218
|
color: ${({ $disabled: t }) => t ? "var(--color-dark-200)" : "white"};
|
|
8220
8219
|
fill: none;
|
|
8221
8220
|
stroke: currentColor;
|
|
8222
|
-
`,
|
|
8221
|
+
`, g0 = k.span`
|
|
8223
8222
|
display: block;
|
|
8224
8223
|
width: 60%;
|
|
8225
8224
|
height: 2px;
|
|
@@ -8251,9 +8250,9 @@ const a0 = k.div`
|
|
|
8251
8250
|
);
|
|
8252
8251
|
return Ot(() => {
|
|
8253
8252
|
m.current && (m.current.indeterminate = !!e);
|
|
8254
|
-
}, [e]), /* @__PURE__ */ R(
|
|
8253
|
+
}, [e]), /* @__PURE__ */ R(d0, { className: s, children: [
|
|
8255
8254
|
/* @__PURE__ */ p(
|
|
8256
|
-
|
|
8255
|
+
h0,
|
|
8257
8256
|
{
|
|
8258
8257
|
ref: y,
|
|
8259
8258
|
type: "checkbox",
|
|
@@ -8269,14 +8268,14 @@ const a0 = k.div`
|
|
|
8269
8268
|
}
|
|
8270
8269
|
),
|
|
8271
8270
|
/* @__PURE__ */ R(
|
|
8272
|
-
|
|
8271
|
+
f0,
|
|
8273
8272
|
{
|
|
8274
8273
|
$checked: !!c || !!e,
|
|
8275
8274
|
$hasError: t,
|
|
8276
8275
|
$disabled: r,
|
|
8277
8276
|
className: o,
|
|
8278
8277
|
children: [
|
|
8279
|
-
c && !e && /* @__PURE__ */ p(
|
|
8278
|
+
c && !e && /* @__PURE__ */ p(p0, { $disabled: r, viewBox: "0 0 24 24", children: /* @__PURE__ */ p(
|
|
8280
8279
|
"path",
|
|
8281
8280
|
{
|
|
8282
8281
|
strokeLinecap: "round",
|
|
@@ -8285,7 +8284,7 @@ const a0 = k.div`
|
|
|
8285
8284
|
d: "M5 13l4 4L19 7"
|
|
8286
8285
|
}
|
|
8287
8286
|
) }),
|
|
8288
|
-
e && /* @__PURE__ */ p(
|
|
8287
|
+
e && /* @__PURE__ */ p(g0, {})
|
|
8289
8288
|
]
|
|
8290
8289
|
}
|
|
8291
8290
|
)
|
|
@@ -8293,7 +8292,7 @@ const a0 = k.div`
|
|
|
8293
8292
|
}
|
|
8294
8293
|
);
|
|
8295
8294
|
sc.displayName = "CheckboxInput";
|
|
8296
|
-
const
|
|
8295
|
+
const y0 = ({
|
|
8297
8296
|
children: t,
|
|
8298
8297
|
size: e = "md",
|
|
8299
8298
|
disabled: n = !1,
|
|
@@ -8315,7 +8314,7 @@ const g0 = ({
|
|
|
8315
8314
|
...a,
|
|
8316
8315
|
children: t
|
|
8317
8316
|
}
|
|
8318
|
-
),
|
|
8317
|
+
), v0 = k.section`
|
|
8319
8318
|
display: flex;
|
|
8320
8319
|
align-items: center;
|
|
8321
8320
|
justify-content: center;
|
|
@@ -8336,7 +8335,7 @@ const g0 = ({
|
|
|
8336
8335
|
...c
|
|
8337
8336
|
}, h) => {
|
|
8338
8337
|
const f = Xt(), m = c.id ?? f;
|
|
8339
|
-
return /* @__PURE__ */ R(
|
|
8338
|
+
return /* @__PURE__ */ R(v0, { className: l, children: [
|
|
8340
8339
|
/* @__PURE__ */ p(
|
|
8341
8340
|
sc,
|
|
8342
8341
|
{
|
|
@@ -8353,7 +8352,7 @@ const g0 = ({
|
|
|
8353
8352
|
}
|
|
8354
8353
|
),
|
|
8355
8354
|
e && /* @__PURE__ */ p(
|
|
8356
|
-
|
|
8355
|
+
y0,
|
|
8357
8356
|
{
|
|
8358
8357
|
size: t,
|
|
8359
8358
|
disabled: s,
|
|
@@ -8367,10 +8366,10 @@ const g0 = ({
|
|
|
8367
8366
|
}
|
|
8368
8367
|
);
|
|
8369
8368
|
Wi.displayName = "Checkbox";
|
|
8370
|
-
const
|
|
8369
|
+
const b0 = k.div`
|
|
8371
8370
|
position: relative;
|
|
8372
8371
|
display: inline-block;
|
|
8373
|
-
`,
|
|
8372
|
+
`, x0 = k.input`
|
|
8374
8373
|
${Ue}
|
|
8375
8374
|
text-align: center;
|
|
8376
8375
|
padding: 0;
|
|
@@ -8384,15 +8383,15 @@ const v0 = k.div`
|
|
|
8384
8383
|
&[type='number'] {
|
|
8385
8384
|
-moz-appearance: textfield;
|
|
8386
8385
|
}
|
|
8387
|
-
${({ $size: t }) =>
|
|
8388
|
-
${({ $variant: t }) => t &&
|
|
8386
|
+
${({ $size: t }) => S0[t]}
|
|
8387
|
+
${({ $variant: t }) => t && w0[t ?? "outlined"]}
|
|
8389
8388
|
${({ $hasError: t }) => t && We}
|
|
8390
8389
|
${({ $disabled: t }) => t && ye}
|
|
8391
8390
|
|
|
8392
8391
|
&:focus {
|
|
8393
8392
|
border: 2px solid var(--color-main-blue-primary);
|
|
8394
8393
|
}
|
|
8395
|
-
`,
|
|
8394
|
+
`, w0 = {
|
|
8396
8395
|
outlined: `
|
|
8397
8396
|
background-color: var(--color-main-white);
|
|
8398
8397
|
border: 2px solid var(--color-main-input-borders);
|
|
@@ -8414,7 +8413,7 @@ const v0 = k.div`
|
|
|
8414
8413
|
border: 2px solid var(--color-main-blue-primary);
|
|
8415
8414
|
}
|
|
8416
8415
|
`
|
|
8417
|
-
},
|
|
8416
|
+
}, S0 = {
|
|
8418
8417
|
sm: `
|
|
8419
8418
|
padding: 0.375rem;
|
|
8420
8419
|
width: 2.5rem;
|
|
@@ -8445,8 +8444,8 @@ const v0 = k.div`
|
|
|
8445
8444
|
...a
|
|
8446
8445
|
}, l) => {
|
|
8447
8446
|
const u = Xt(), d = a.id ?? u;
|
|
8448
|
-
return /* @__PURE__ */ p(
|
|
8449
|
-
|
|
8447
|
+
return /* @__PURE__ */ p(b0, { children: /* @__PURE__ */ p(
|
|
8448
|
+
x0,
|
|
8450
8449
|
{
|
|
8451
8450
|
ref: l,
|
|
8452
8451
|
$size: t,
|
|
@@ -8466,7 +8465,7 @@ const v0 = k.div`
|
|
|
8466
8465
|
}
|
|
8467
8466
|
);
|
|
8468
8467
|
ac.displayName = "PinInput";
|
|
8469
|
-
const
|
|
8468
|
+
const T0 = (t, e, n, r, i, s, o = "text", a, l) => {
|
|
8470
8469
|
const u = t.target.value;
|
|
8471
8470
|
if (u.length > 1) return;
|
|
8472
8471
|
const d = s ?? i.length;
|
|
@@ -8475,7 +8474,7 @@ const S0 = (t, e, n, r, i, s, o = "text", a, l) => {
|
|
|
8475
8474
|
c[e] = u, r(c);
|
|
8476
8475
|
const h = c.join("");
|
|
8477
8476
|
a?.(h), u && e < s - 1 && i[e + 1].current?.focus(), c.every((f) => f !== "") && c.length >= d && l?.(h);
|
|
8478
|
-
},
|
|
8477
|
+
}, C0 = (t, e, n, r, i, s) => {
|
|
8479
8478
|
if (t.key === "Backspace" && !n[e] && e > 0) {
|
|
8480
8479
|
if (n[e]) {
|
|
8481
8480
|
if (i) {
|
|
@@ -8491,7 +8490,7 @@ const S0 = (t, e, n, r, i, s, o = "text", a, l) => {
|
|
|
8491
8490
|
}
|
|
8492
8491
|
}
|
|
8493
8492
|
t.key === "ArrowLeft" && e > 0 && r[e - 1]?.current?.focus(), t.key === "ArrowRight" && e < r.length - 1 && r[e + 1]?.current?.focus();
|
|
8494
|
-
},
|
|
8493
|
+
}, k0 = (t, e, n, r, i, s, o = "text", a, l) => {
|
|
8495
8494
|
t.preventDefault();
|
|
8496
8495
|
const u = t.clipboardData.getData("text");
|
|
8497
8496
|
if (!u) return;
|
|
@@ -8507,7 +8506,7 @@ const S0 = (t, e, n, r, i, s, o = "text", a, l) => {
|
|
|
8507
8506
|
i[f].current?.focus();
|
|
8508
8507
|
const m = c.join("");
|
|
8509
8508
|
c.every((y) => y !== "") && c.length >= d && l?.(m);
|
|
8510
|
-
},
|
|
8509
|
+
}, P0 = (t) => Array(t).fill(null).map(() => x.createRef()), cv = (t, e, n = "text") => !(t.length !== e || n === "number" && !/^\d+$/.test(t)), A0 = k.div`
|
|
8511
8510
|
display: flex;
|
|
8512
8511
|
gap: 8px;
|
|
8513
8512
|
align-items: center;
|
|
@@ -8522,8 +8521,8 @@ const S0 = (t, e, n, r, i, s, o = "text", a, l) => {
|
|
|
8522
8521
|
className: a,
|
|
8523
8522
|
pinInputClassName: l
|
|
8524
8523
|
}) => {
|
|
8525
|
-
const [u, d] = Wt(Array(t).fill("")), c = Ft(() =>
|
|
8526
|
-
return /* @__PURE__ */ p(
|
|
8524
|
+
const [u, d] = Wt(Array(t).fill("")), c = Ft(() => P0(t), [t]);
|
|
8525
|
+
return /* @__PURE__ */ p(A0, { className: a, children: Array.from({ length: t }, (h, f) => /* @__PURE__ */ p(
|
|
8527
8526
|
ac,
|
|
8528
8527
|
{
|
|
8529
8528
|
className: l,
|
|
@@ -8531,7 +8530,7 @@ const S0 = (t, e, n, r, i, s, o = "text", a, l) => {
|
|
|
8531
8530
|
variant: n,
|
|
8532
8531
|
hasError: r,
|
|
8533
8532
|
value: u[f],
|
|
8534
|
-
onChange: (m) =>
|
|
8533
|
+
onChange: (m) => T0(
|
|
8535
8534
|
m,
|
|
8536
8535
|
f,
|
|
8537
8536
|
u,
|
|
@@ -8542,8 +8541,8 @@ const S0 = (t, e, n, r, i, s, o = "text", a, l) => {
|
|
|
8542
8541
|
s,
|
|
8543
8542
|
o
|
|
8544
8543
|
),
|
|
8545
|
-
onKeyDown: (m) =>
|
|
8546
|
-
onPaste: (m) =>
|
|
8544
|
+
onKeyDown: (m) => C0(m, f, u, c, d, s),
|
|
8545
|
+
onPaste: (m) => k0(
|
|
8547
8546
|
m,
|
|
8548
8547
|
f,
|
|
8549
8548
|
u,
|
|
@@ -8560,9 +8559,9 @@ const S0 = (t, e, n, r, i, s, o = "text", a, l) => {
|
|
|
8560
8559
|
)) });
|
|
8561
8560
|
};
|
|
8562
8561
|
lc.displayName = "PinInputGroup";
|
|
8563
|
-
const
|
|
8562
|
+
const E0 = k.div`
|
|
8564
8563
|
position: relative;
|
|
8565
|
-
`,
|
|
8564
|
+
`, D0 = k.input`
|
|
8566
8565
|
position: absolute;
|
|
8567
8566
|
height: 1.5rem;
|
|
8568
8567
|
width: 1.5rem;
|
|
@@ -8570,6 +8569,7 @@ const A0 = k.div`
|
|
|
8570
8569
|
cursor: pointer;
|
|
8571
8570
|
opacity: 0;
|
|
8572
8571
|
border: 2px solid transparent;
|
|
8572
|
+
z-index: 10;
|
|
8573
8573
|
|
|
8574
8574
|
&:disabled {
|
|
8575
8575
|
cursor: not-allowed;
|
|
@@ -8579,9 +8579,9 @@ const A0 = k.div`
|
|
|
8579
8579
|
outline-color: var(--color-main-orange-primary);
|
|
8580
8580
|
outline-offset: 2px;
|
|
8581
8581
|
}
|
|
8582
|
-
`,
|
|
8582
|
+
`, $0 = P`
|
|
8583
8583
|
border-color: var(--color-main-orange-primary);
|
|
8584
|
-
`,
|
|
8584
|
+
`, M0 = k.div`
|
|
8585
8585
|
height: 1.5rem;
|
|
8586
8586
|
width: 1.5rem;
|
|
8587
8587
|
border: 2px solid var(--color-main-input-borders);
|
|
@@ -8595,10 +8595,6 @@ const A0 = k.div`
|
|
|
8595
8595
|
outline: 2px solid transparent;
|
|
8596
8596
|
outline-offset: 2px;
|
|
8597
8597
|
|
|
8598
|
-
&:hover {
|
|
8599
|
-
border-color: var(--color-main-orange-primary);
|
|
8600
|
-
}
|
|
8601
|
-
|
|
8602
8598
|
${({ $hasError: t }) => t && `
|
|
8603
8599
|
border-color: var(--color-main-warning-state);
|
|
8604
8600
|
`}
|
|
@@ -8606,8 +8602,8 @@ const A0 = k.div`
|
|
|
8606
8602
|
${ye}
|
|
8607
8603
|
border: 2px solid var(--color-dark-200) !important;
|
|
8608
8604
|
`}
|
|
8609
|
-
${({ $checked: t }) => t &&
|
|
8610
|
-
`,
|
|
8605
|
+
${({ $checked: t }) => t && $0}
|
|
8606
|
+
`, V0 = k.span`
|
|
8611
8607
|
display: block;
|
|
8612
8608
|
height: 0.625rem;
|
|
8613
8609
|
width: 0.625rem;
|
|
@@ -8627,9 +8623,9 @@ const A0 = k.div`
|
|
|
8627
8623
|
...o
|
|
8628
8624
|
}, a) => {
|
|
8629
8625
|
const l = Xt(), u = o.id ?? l, d = !!e, { size: c, ...h } = o;
|
|
8630
|
-
return /* @__PURE__ */ R(
|
|
8626
|
+
return /* @__PURE__ */ R(E0, { className: i, children: [
|
|
8631
8627
|
/* @__PURE__ */ p(
|
|
8632
|
-
|
|
8628
|
+
D0,
|
|
8633
8629
|
{
|
|
8634
8630
|
ref: a,
|
|
8635
8631
|
type: "radio",
|
|
@@ -8644,13 +8640,13 @@ const A0 = k.div`
|
|
|
8644
8640
|
}
|
|
8645
8641
|
),
|
|
8646
8642
|
/* @__PURE__ */ p(
|
|
8647
|
-
|
|
8643
|
+
M0,
|
|
8648
8644
|
{
|
|
8649
8645
|
$checked: !!d,
|
|
8650
8646
|
$hasError: t,
|
|
8651
8647
|
$disabled: n,
|
|
8652
8648
|
className: s,
|
|
8653
|
-
children: /* @__PURE__ */ p(
|
|
8649
|
+
children: /* @__PURE__ */ p(V0, { $disabled: n, $checked: d })
|
|
8654
8650
|
}
|
|
8655
8651
|
)
|
|
8656
8652
|
] });
|
|
@@ -8666,7 +8662,7 @@ const uc = ({
|
|
|
8666
8662
|
...s
|
|
8667
8663
|
}) => /* @__PURE__ */ p(Hi, { className: n, htmlFor: e, size: i, disabled: r, ...s, children: t });
|
|
8668
8664
|
uc.displayName = "RadioInputLabel";
|
|
8669
|
-
const
|
|
8665
|
+
const R0 = k.section`
|
|
8670
8666
|
display: flex;
|
|
8671
8667
|
align-items: center;
|
|
8672
8668
|
justify-content: center;
|
|
@@ -8685,7 +8681,7 @@ const V0 = k.section`
|
|
|
8685
8681
|
...u
|
|
8686
8682
|
}, d) => {
|
|
8687
8683
|
const c = Xt(), h = u.id ?? c;
|
|
8688
|
-
return /* @__PURE__ */ R(
|
|
8684
|
+
return /* @__PURE__ */ R(R0, { className: o, children: [
|
|
8689
8685
|
/* @__PURE__ */ p(
|
|
8690
8686
|
cc,
|
|
8691
8687
|
{
|
|
@@ -8719,11 +8715,11 @@ const Hs = k.div`
|
|
|
8719
8715
|
flex-direction: column;
|
|
8720
8716
|
gap: 0.5rem;
|
|
8721
8717
|
width: 100%;
|
|
8722
|
-
`,
|
|
8718
|
+
`, I0 = k.div`
|
|
8723
8719
|
display: flex;
|
|
8724
8720
|
flex-direction: column;
|
|
8725
8721
|
gap: 0.75rem;
|
|
8726
|
-
`,
|
|
8722
|
+
`, uv = ({
|
|
8727
8723
|
id: t,
|
|
8728
8724
|
name: e,
|
|
8729
8725
|
label: n,
|
|
@@ -8833,7 +8829,7 @@ const Hs = k.div`
|
|
|
8833
8829
|
break;
|
|
8834
8830
|
}
|
|
8835
8831
|
case "radio": {
|
|
8836
|
-
F = /* @__PURE__ */ p(
|
|
8832
|
+
F = /* @__PURE__ */ p(I0, { children: l.map((j) => /* @__PURE__ */ p(
|
|
8837
8833
|
dc,
|
|
8838
8834
|
{
|
|
8839
8835
|
name: d || e,
|
|
@@ -8874,7 +8870,7 @@ const Hs = k.div`
|
|
|
8874
8870
|
case "password": {
|
|
8875
8871
|
const { rightIcon: I, ...j } = M;
|
|
8876
8872
|
F = /* @__PURE__ */ p(
|
|
8877
|
-
|
|
8873
|
+
Yg,
|
|
8878
8874
|
{
|
|
8879
8875
|
id: et,
|
|
8880
8876
|
name: e,
|
|
@@ -8895,7 +8891,7 @@ const Hs = k.div`
|
|
|
8895
8891
|
}
|
|
8896
8892
|
case "search": {
|
|
8897
8893
|
F = /* @__PURE__ */ p(
|
|
8898
|
-
|
|
8894
|
+
u0,
|
|
8899
8895
|
{
|
|
8900
8896
|
className: m,
|
|
8901
8897
|
size: i,
|
|
@@ -8969,7 +8965,7 @@ const Hs = k.div`
|
|
|
8969
8965
|
F,
|
|
8970
8966
|
U && /* @__PURE__ */ p(Fs, { id: `${et}-error`, size: i, className: b, children: Tt })
|
|
8971
8967
|
] });
|
|
8972
|
-
},
|
|
8968
|
+
}, N0 = {
|
|
8973
8969
|
initial: { opacity: 0, scale: 0.95 },
|
|
8974
8970
|
animate: { opacity: 1, scale: 1 },
|
|
8975
8971
|
exit: { opacity: 0, scale: 0.95 },
|
|
@@ -8986,12 +8982,12 @@ const Hs = k.div`
|
|
|
8986
8982
|
duration: 0.3,
|
|
8987
8983
|
ease: "easeInOut"
|
|
8988
8984
|
}
|
|
8989
|
-
},
|
|
8985
|
+
}, L0 = {
|
|
8990
8986
|
initial: { height: 0, opacity: 0, y: -6 },
|
|
8991
8987
|
animate: { height: "auto", opacity: 1, y: 0 },
|
|
8992
8988
|
exit: { height: 0, opacity: 0, y: -6 },
|
|
8993
8989
|
transition: { duration: 0.2, ease: "easeInOut" }
|
|
8994
|
-
},
|
|
8990
|
+
}, B0 = k(ge.div)`
|
|
8995
8991
|
position: fixed;
|
|
8996
8992
|
inset: 0;
|
|
8997
8993
|
z-index: 50;
|
|
@@ -9005,7 +9001,7 @@ const Hs = k.div`
|
|
|
9005
9001
|
@media (max-width: 768px) {
|
|
9006
9002
|
padding: 0.5rem;
|
|
9007
9003
|
}
|
|
9008
|
-
`,
|
|
9004
|
+
`, O0 = k(ge.div)`
|
|
9009
9005
|
position: relative;
|
|
9010
9006
|
display: flex;
|
|
9011
9007
|
flex-direction: column;
|
|
@@ -9043,7 +9039,7 @@ const Hs = k.div`
|
|
|
9043
9039
|
outline: none;
|
|
9044
9040
|
box-shadow: var(--shadow-hover-black-card);
|
|
9045
9041
|
}
|
|
9046
|
-
`,
|
|
9042
|
+
`, j0 = k.button`
|
|
9047
9043
|
position: absolute;
|
|
9048
9044
|
top: 1rem;
|
|
9049
9045
|
right: 1rem;
|
|
@@ -9062,7 +9058,7 @@ const Hs = k.div`
|
|
|
9062
9058
|
transform: scale(1.1);
|
|
9063
9059
|
outline: none;
|
|
9064
9060
|
}
|
|
9065
|
-
`,
|
|
9061
|
+
`, F0 = ({
|
|
9066
9062
|
isOpen: t,
|
|
9067
9063
|
onClose: e,
|
|
9068
9064
|
children: n,
|
|
@@ -9124,10 +9120,10 @@ const Hs = k.div`
|
|
|
9124
9120
|
window.clearTimeout(w), document.removeEventListener("keydown", A), f.current && f.current.focus();
|
|
9125
9121
|
};
|
|
9126
9122
|
}, [t]);
|
|
9127
|
-
const y = /* @__PURE__ */ p(qn, { children: t && /* @__PURE__ */ p(
|
|
9128
|
-
|
|
9123
|
+
const y = /* @__PURE__ */ p(qn, { children: t && /* @__PURE__ */ p(B0, { ...hc, onClick: m, children: /* @__PURE__ */ R(
|
|
9124
|
+
O0,
|
|
9129
9125
|
{
|
|
9130
|
-
...
|
|
9126
|
+
...N0,
|
|
9131
9127
|
ref: h,
|
|
9132
9128
|
$size: o,
|
|
9133
9129
|
$fullScreen: a,
|
|
@@ -9140,12 +9136,12 @@ const Hs = k.div`
|
|
|
9140
9136
|
"aria-describedby": c,
|
|
9141
9137
|
children: [
|
|
9142
9138
|
s && /* @__PURE__ */ p(
|
|
9143
|
-
|
|
9139
|
+
j0,
|
|
9144
9140
|
{
|
|
9145
9141
|
className: `${er} cursor-pointer`,
|
|
9146
9142
|
onClick: e,
|
|
9147
9143
|
"aria-label": "Close dialog",
|
|
9148
|
-
children: /* @__PURE__ */ p(q, { component:
|
|
9144
|
+
children: /* @__PURE__ */ p(q, { component: Og, size: "sm" })
|
|
9149
9145
|
}
|
|
9150
9146
|
),
|
|
9151
9147
|
n
|
|
@@ -9153,7 +9149,7 @@ const Hs = k.div`
|
|
|
9153
9149
|
}
|
|
9154
9150
|
) }) });
|
|
9155
9151
|
return typeof document > "u" ? y : jc(y, document.body);
|
|
9156
|
-
},
|
|
9152
|
+
}, z0 = k.div`
|
|
9157
9153
|
display: flex;
|
|
9158
9154
|
align-items: center;
|
|
9159
9155
|
justify-content: space-between;
|
|
@@ -9186,14 +9182,14 @@ const Hs = k.div`
|
|
|
9186
9182
|
flex-shrink: 0;
|
|
9187
9183
|
margin-left: auto;
|
|
9188
9184
|
}
|
|
9189
|
-
`,
|
|
9185
|
+
`, _0 = ({
|
|
9190
9186
|
showDivider: t = !1,
|
|
9191
9187
|
variant: e = "default",
|
|
9192
9188
|
children: n,
|
|
9193
9189
|
className: r,
|
|
9194
9190
|
...i
|
|
9195
9191
|
}) => /* @__PURE__ */ p(
|
|
9196
|
-
|
|
9192
|
+
z0,
|
|
9197
9193
|
{
|
|
9198
9194
|
$showDivider: t,
|
|
9199
9195
|
$variant: e,
|
|
@@ -9201,7 +9197,7 @@ const Hs = k.div`
|
|
|
9201
9197
|
...i,
|
|
9202
9198
|
children: n
|
|
9203
9199
|
}
|
|
9204
|
-
),
|
|
9200
|
+
), H0 = k.div`
|
|
9205
9201
|
position: relative;
|
|
9206
9202
|
display: flex;
|
|
9207
9203
|
flex-direction: column;
|
|
@@ -9214,7 +9210,7 @@ const Hs = k.div`
|
|
|
9214
9210
|
${({ $showTopDivider: t }) => t && "border-top: 1px solid var(--color-main-light-borders);"}
|
|
9215
9211
|
|
|
9216
9212
|
${({ $showBottomDivider: t }) => t && "border-bottom: 1px solid var(--color-main-light-borders);"}
|
|
9217
|
-
`,
|
|
9213
|
+
`, U0 = ({
|
|
9218
9214
|
children: t,
|
|
9219
9215
|
padded: e = !0,
|
|
9220
9216
|
showTopDivider: n = !1,
|
|
@@ -9222,7 +9218,7 @@ const Hs = k.div`
|
|
|
9222
9218
|
className: i,
|
|
9223
9219
|
...s
|
|
9224
9220
|
}) => /* @__PURE__ */ p(
|
|
9225
|
-
|
|
9221
|
+
H0,
|
|
9226
9222
|
{
|
|
9227
9223
|
$padded: e,
|
|
9228
9224
|
$showTopDivider: n,
|
|
@@ -9231,7 +9227,7 @@ const Hs = k.div`
|
|
|
9231
9227
|
...s,
|
|
9232
9228
|
children: t
|
|
9233
9229
|
}
|
|
9234
|
-
),
|
|
9230
|
+
), W0 = k.div`
|
|
9235
9231
|
display: flex;
|
|
9236
9232
|
align-items: center;
|
|
9237
9233
|
width: 100%;
|
|
@@ -9247,7 +9243,7 @@ const Hs = k.div`
|
|
|
9247
9243
|
bottom: 0;
|
|
9248
9244
|
background: var(--color-main-white);
|
|
9249
9245
|
`}
|
|
9250
|
-
`,
|
|
9246
|
+
`, K0 = ({
|
|
9251
9247
|
align: t = "end",
|
|
9252
9248
|
showDivider: e = !1,
|
|
9253
9249
|
gap: n = 8,
|
|
@@ -9256,7 +9252,7 @@ const Hs = k.div`
|
|
|
9256
9252
|
className: s,
|
|
9257
9253
|
...o
|
|
9258
9254
|
}) => /* @__PURE__ */ p(
|
|
9259
|
-
|
|
9255
|
+
W0,
|
|
9260
9256
|
{
|
|
9261
9257
|
$align: t,
|
|
9262
9258
|
$showDivider: e,
|
|
@@ -9266,7 +9262,7 @@ const Hs = k.div`
|
|
|
9266
9262
|
...o,
|
|
9267
9263
|
children: i
|
|
9268
9264
|
}
|
|
9269
|
-
),
|
|
9265
|
+
), dv = ({
|
|
9270
9266
|
isOpen: t,
|
|
9271
9267
|
onAccept: e,
|
|
9272
9268
|
onCancel: n,
|
|
@@ -9296,7 +9292,7 @@ const Hs = k.div`
|
|
|
9296
9292
|
T(C), v?.(C);
|
|
9297
9293
|
};
|
|
9298
9294
|
return /* @__PURE__ */ R(
|
|
9299
|
-
|
|
9295
|
+
F0,
|
|
9300
9296
|
{
|
|
9301
9297
|
isOpen: t,
|
|
9302
9298
|
onClose: n,
|
|
@@ -9308,13 +9304,13 @@ const Hs = k.div`
|
|
|
9308
9304
|
ariaDescribedBy: "tac-subtitle",
|
|
9309
9305
|
className: `${m} !h-fit !max-w-[60rem]`,
|
|
9310
9306
|
children: [
|
|
9311
|
-
/* @__PURE__ */ p(
|
|
9312
|
-
/* @__PURE__ */ R(
|
|
9307
|
+
/* @__PURE__ */ p(_0, { showDivider: !0, className: y, children: /* @__PURE__ */ p(si, { id: "tac-title", size: 20, children: r }) }),
|
|
9308
|
+
/* @__PURE__ */ R(U0, { padded: !0, showBottomDivider: !0, className: b, children: [
|
|
9313
9309
|
i && /* @__PURE__ */ p(ai, { id: "tac-subtitle", size: 16, children: i }),
|
|
9314
9310
|
s,
|
|
9315
9311
|
o
|
|
9316
9312
|
] }),
|
|
9317
|
-
/* @__PURE__ */ R(
|
|
9313
|
+
/* @__PURE__ */ R(K0, { showDivider: !0, align: "space-between", className: g, children: [
|
|
9318
9314
|
/* @__PURE__ */ p(
|
|
9319
9315
|
Wi,
|
|
9320
9316
|
{
|
|
@@ -9331,7 +9327,7 @@ const Hs = k.div`
|
|
|
9331
9327
|
]
|
|
9332
9328
|
}
|
|
9333
9329
|
);
|
|
9334
|
-
}, fc = pe(void 0),
|
|
9330
|
+
}, fc = pe(void 0), Y0 = ({ children: t }) => {
|
|
9335
9331
|
const [e, n] = Wt(!1), [r, i] = Wt(!1);
|
|
9336
9332
|
return /* @__PURE__ */ p(
|
|
9337
9333
|
fc.Provider,
|
|
@@ -9350,7 +9346,7 @@ const Hs = k.div`
|
|
|
9350
9346
|
if (!t)
|
|
9351
9347
|
throw new Error("useSidebar must be used within a SidebarProvider");
|
|
9352
9348
|
return t;
|
|
9353
|
-
}, Us = (t = [], e = []) => !e || e.length === 0 ? !1 : e.includes("all") ? !0 : e.some((n) => t.includes(n)),
|
|
9349
|
+
}, Us = (t = [], e = []) => !e || e.length === 0 ? !1 : e.includes("all") ? !0 : e.some((n) => t.includes(n)), G0 = k.button`
|
|
9354
9350
|
width: 100%;
|
|
9355
9351
|
display: flex;
|
|
9356
9352
|
align-items: center;
|
|
@@ -9385,31 +9381,31 @@ const Hs = k.div`
|
|
|
9385
9381
|
}
|
|
9386
9382
|
|
|
9387
9383
|
${({ $collapsed: t }) => t ? "justify-content: center;" : ""}
|
|
9388
|
-
`,
|
|
9384
|
+
`, X0 = k.span`
|
|
9389
9385
|
display: inline-flex;
|
|
9390
9386
|
align-items: center;
|
|
9391
9387
|
gap: 0.75rem;
|
|
9392
9388
|
min-width: 0;
|
|
9393
|
-
`,
|
|
9389
|
+
`, q0 = k(ai)`
|
|
9394
9390
|
font-weight: ${({ $level: t }) => t === 0 ? 600 : 500};
|
|
9395
9391
|
color: var(--color-main-blue-primary);
|
|
9396
9392
|
white-space: nowrap;
|
|
9397
9393
|
overflow: hidden;
|
|
9398
9394
|
text-overflow: ellipsis;
|
|
9399
|
-
`,
|
|
9395
|
+
`, Z0 = k(ge.div)`
|
|
9400
9396
|
background-color: transparent;
|
|
9401
9397
|
overflow: hidden;
|
|
9402
9398
|
will-change: height, opacity, transform;
|
|
9403
|
-
`,
|
|
9399
|
+
`, J0 = k.div`
|
|
9404
9400
|
width: 100%;
|
|
9405
9401
|
${({ $level: t }) => t > 0 ? "border-top: 1px solid var(--color-light-200);" : ""}
|
|
9406
|
-
`,
|
|
9402
|
+
`, Q0 = k.span`
|
|
9407
9403
|
width: 0.625rem;
|
|
9408
9404
|
height: 0.125rem;
|
|
9409
9405
|
background: var(--color-main-blue-primary);
|
|
9410
9406
|
border-radius: 1px;
|
|
9411
9407
|
flex: 0 0 auto;
|
|
9412
|
-
`,
|
|
9408
|
+
`, ty = k.div`
|
|
9413
9409
|
${er}
|
|
9414
9410
|
transform: rotate(${({ $open: t }) => t ? "90deg" : "0deg"});
|
|
9415
9411
|
pointer-events: none;
|
|
@@ -9424,9 +9420,9 @@ const Hs = k.div`
|
|
|
9424
9420
|
[e, t.permissions]
|
|
9425
9421
|
)) return null;
|
|
9426
9422
|
const d = l.length > 0, c = !!(t.path && i && i.startsWith(t.path));
|
|
9427
|
-
return /* @__PURE__ */ R(
|
|
9423
|
+
return /* @__PURE__ */ R(J0, { $level: n, children: [
|
|
9428
9424
|
/* @__PURE__ */ R(
|
|
9429
|
-
|
|
9425
|
+
G0,
|
|
9430
9426
|
{
|
|
9431
9427
|
onClick: () => {
|
|
9432
9428
|
d ? o((f) => !f) : t.path && r(t.path);
|
|
@@ -9437,8 +9433,8 @@ const Hs = k.div`
|
|
|
9437
9433
|
$expanded: s && d,
|
|
9438
9434
|
title: a ? t.label : "",
|
|
9439
9435
|
children: [
|
|
9440
|
-
/* @__PURE__ */ R(
|
|
9441
|
-
n > 0 && !a && /* @__PURE__ */ p(
|
|
9436
|
+
/* @__PURE__ */ R(X0, { children: [
|
|
9437
|
+
n > 0 && !a && /* @__PURE__ */ p(Q0, {}),
|
|
9442
9438
|
t.icon && /* @__PURE__ */ p(
|
|
9443
9439
|
q,
|
|
9444
9440
|
{
|
|
@@ -9448,7 +9444,7 @@ const Hs = k.div`
|
|
|
9448
9444
|
}
|
|
9449
9445
|
),
|
|
9450
9446
|
!a && /* @__PURE__ */ p(
|
|
9451
|
-
|
|
9447
|
+
q0,
|
|
9452
9448
|
{
|
|
9453
9449
|
$level: n,
|
|
9454
9450
|
size: n === 0 ? 16 : n === 1 ? 14 : 12,
|
|
@@ -9457,10 +9453,10 @@ const Hs = k.div`
|
|
|
9457
9453
|
}
|
|
9458
9454
|
)
|
|
9459
9455
|
] }),
|
|
9460
|
-
!a && d && /* @__PURE__ */ p(
|
|
9456
|
+
!a && d && /* @__PURE__ */ p(ty, { $disabled: a, $open: s, children: /* @__PURE__ */ p(
|
|
9461
9457
|
q,
|
|
9462
9458
|
{
|
|
9463
|
-
component:
|
|
9459
|
+
component: Lg,
|
|
9464
9460
|
size: "sm",
|
|
9465
9461
|
color: "var(--color-main-blue-primary)"
|
|
9466
9462
|
}
|
|
@@ -9468,7 +9464,7 @@ const Hs = k.div`
|
|
|
9468
9464
|
]
|
|
9469
9465
|
}
|
|
9470
9466
|
),
|
|
9471
|
-
/* @__PURE__ */ p(qn, { initial: !1, children: !a && s && d && /* @__PURE__ */ p(
|
|
9467
|
+
/* @__PURE__ */ p(qn, { initial: !1, children: !a && s && d && /* @__PURE__ */ p(Z0, { $level: n + 1, ...L0, children: l.map((f) => /* @__PURE__ */ p(
|
|
9472
9468
|
pc,
|
|
9473
9469
|
{
|
|
9474
9470
|
item: f,
|
|
@@ -9480,7 +9476,7 @@ const Hs = k.div`
|
|
|
9480
9476
|
f.id
|
|
9481
9477
|
)) }) })
|
|
9482
9478
|
] });
|
|
9483
|
-
},
|
|
9479
|
+
}, ey = k(ge.div)`
|
|
9484
9480
|
position: fixed;
|
|
9485
9481
|
inset: 0;
|
|
9486
9482
|
background: rgba(0, 0, 0, 0.5);
|
|
@@ -9489,7 +9485,7 @@ const Hs = k.div`
|
|
|
9489
9485
|
@media (max-width: 767px) {
|
|
9490
9486
|
display: block;
|
|
9491
9487
|
}
|
|
9492
|
-
`,
|
|
9488
|
+
`, ny = k.aside`
|
|
9493
9489
|
position: fixed;
|
|
9494
9490
|
left: 0;
|
|
9495
9491
|
top: 0;
|
|
@@ -9508,7 +9504,7 @@ const Hs = k.div`
|
|
|
9508
9504
|
@media (min-width: 768px) {
|
|
9509
9505
|
transform: translateX(0);
|
|
9510
9506
|
}
|
|
9511
|
-
`,
|
|
9507
|
+
`, ry = k.div`
|
|
9512
9508
|
display: flex;
|
|
9513
9509
|
align-items: center;
|
|
9514
9510
|
justify-content: space-between;
|
|
@@ -9516,11 +9512,11 @@ const Hs = k.div`
|
|
|
9516
9512
|
padding: 1rem;
|
|
9517
9513
|
|
|
9518
9514
|
${({ $collapsed: t }) => t ? "flex-direction: column" : ""};
|
|
9519
|
-
`,
|
|
9515
|
+
`, iy = k.div`
|
|
9520
9516
|
display: flex;
|
|
9521
9517
|
align-items: center;
|
|
9522
9518
|
gap: 0.5rem;
|
|
9523
|
-
`,
|
|
9519
|
+
`, oy = k.nav`
|
|
9524
9520
|
display: flex;
|
|
9525
9521
|
flex-direction: column;
|
|
9526
9522
|
justify-content: flex-start;
|
|
@@ -9528,7 +9524,7 @@ const Hs = k.div`
|
|
|
9528
9524
|
flex: 1;
|
|
9529
9525
|
overflow-y: auto;
|
|
9530
9526
|
padding: 0.25rem 0;
|
|
9531
|
-
`,
|
|
9527
|
+
`, sy = k.button`
|
|
9532
9528
|
display: flex;
|
|
9533
9529
|
align-items: center;
|
|
9534
9530
|
justify-content: center;
|
|
@@ -9554,7 +9550,7 @@ const Hs = k.div`
|
|
|
9554
9550
|
@media (max-width: 767px) {
|
|
9555
9551
|
display: none;
|
|
9556
9552
|
}
|
|
9557
|
-
`,
|
|
9553
|
+
`, ay = k.button`
|
|
9558
9554
|
position: fixed;
|
|
9559
9555
|
top: 0.5rem;
|
|
9560
9556
|
left: 1rem;
|
|
@@ -9571,19 +9567,19 @@ const Hs = k.div`
|
|
|
9571
9567
|
onNavigate: n = () => {
|
|
9572
9568
|
},
|
|
9573
9569
|
activePath: r,
|
|
9574
|
-
|
|
9575
|
-
|
|
9570
|
+
logoImgExpanded: i,
|
|
9571
|
+
logoImgCollapsed: s
|
|
9576
9572
|
}) => {
|
|
9577
9573
|
const { isCollapsed: o, setIsCollapsed: a, isMobileOpen: l, setIsMobileOpen: u } = mc(), d = (c) => {
|
|
9578
9574
|
n(c), typeof window < "u" && window.innerWidth < 768 && u(!1);
|
|
9579
9575
|
};
|
|
9580
9576
|
return /* @__PURE__ */ R(Zs, { children: [
|
|
9581
|
-
/* @__PURE__ */ p(qn, { children: l && /* @__PURE__ */ p(
|
|
9582
|
-
/* @__PURE__ */ R(
|
|
9583
|
-
/* @__PURE__ */ R(
|
|
9584
|
-
/* @__PURE__ */ p(
|
|
9577
|
+
/* @__PURE__ */ p(qn, { children: l && /* @__PURE__ */ p(ey, { ...hc, onClick: () => u(!1) }) }),
|
|
9578
|
+
/* @__PURE__ */ R(ny, { $collapsed: l ? !1 : o, $open: l, children: [
|
|
9579
|
+
/* @__PURE__ */ R(ry, { $collapsed: o, children: [
|
|
9580
|
+
/* @__PURE__ */ p(iy, { children: o ? s : i }),
|
|
9585
9581
|
/* @__PURE__ */ p(
|
|
9586
|
-
|
|
9582
|
+
sy,
|
|
9587
9583
|
{
|
|
9588
9584
|
onClick: () => a(!o),
|
|
9589
9585
|
"aria-label": "Toggle collapse",
|
|
@@ -9598,7 +9594,7 @@ const Hs = k.div`
|
|
|
9598
9594
|
}
|
|
9599
9595
|
)
|
|
9600
9596
|
] }),
|
|
9601
|
-
/* @__PURE__ */ p(
|
|
9597
|
+
/* @__PURE__ */ p(oy, { children: t.map((c) => /* @__PURE__ */ p(
|
|
9602
9598
|
pc,
|
|
9603
9599
|
{
|
|
9604
9600
|
item: c,
|
|
@@ -9610,7 +9606,7 @@ const Hs = k.div`
|
|
|
9610
9606
|
)) })
|
|
9611
9607
|
] }),
|
|
9612
9608
|
/* @__PURE__ */ p(
|
|
9613
|
-
|
|
9609
|
+
ay,
|
|
9614
9610
|
{
|
|
9615
9611
|
onClick: () => {
|
|
9616
9612
|
u(!0), a(!1);
|
|
@@ -9622,7 +9618,7 @@ const Hs = k.div`
|
|
|
9622
9618
|
] });
|
|
9623
9619
|
};
|
|
9624
9620
|
gc.displayName = "Sidebar";
|
|
9625
|
-
const
|
|
9621
|
+
const ly = {
|
|
9626
9622
|
underlined: P`
|
|
9627
9623
|
color: var(--color-main-orange-primary);
|
|
9628
9624
|
text-decoration-thickness: 1px;
|
|
@@ -9685,7 +9681,7 @@ const ay = {
|
|
|
9685
9681
|
text-underline-offset: 2px;
|
|
9686
9682
|
}
|
|
9687
9683
|
`
|
|
9688
|
-
},
|
|
9684
|
+
}, cy = P`
|
|
9689
9685
|
color: var(--color-dark-200);
|
|
9690
9686
|
cursor: not-allowed;
|
|
9691
9687
|
pointer-events: none;
|
|
@@ -9703,7 +9699,7 @@ const ay = {
|
|
|
9703
9699
|
text-decoration: none;
|
|
9704
9700
|
transform: none;
|
|
9705
9701
|
}
|
|
9706
|
-
`,
|
|
9702
|
+
`, uy = {
|
|
9707
9703
|
sm: P`
|
|
9708
9704
|
gap: 0.25rem;
|
|
9709
9705
|
${z[14]}
|
|
@@ -9716,7 +9712,7 @@ const ay = {
|
|
|
9716
9712
|
gap: 0.75rem;
|
|
9717
9713
|
${z[20]}
|
|
9718
9714
|
`
|
|
9719
|
-
},
|
|
9715
|
+
}, dy = k.a`
|
|
9720
9716
|
display: inline-flex;
|
|
9721
9717
|
align-items: center;
|
|
9722
9718
|
border-radius: 0.25rem;
|
|
@@ -9728,10 +9724,10 @@ const ay = {
|
|
|
9728
9724
|
|
|
9729
9725
|
cursor: pointer;
|
|
9730
9726
|
|
|
9731
|
-
${({ $size: t }) =>
|
|
9732
|
-
${({ $variant: t }) =>
|
|
9733
|
-
${({ $disabled: t }) => t &&
|
|
9734
|
-
`,
|
|
9727
|
+
${({ $size: t }) => uy[t]}
|
|
9728
|
+
${({ $variant: t }) => ly[t]}
|
|
9729
|
+
${({ $disabled: t }) => t && cy}
|
|
9730
|
+
`, hy = k.span`
|
|
9735
9731
|
flex: 1 1 auto;
|
|
9736
9732
|
min-width: 0;
|
|
9737
9733
|
max-width: 18ch;
|
|
@@ -9740,7 +9736,7 @@ const ay = {
|
|
|
9740
9736
|
text-overflow: ellipsis;
|
|
9741
9737
|
white-space: nowrap;
|
|
9742
9738
|
`}
|
|
9743
|
-
`,
|
|
9739
|
+
`, fy = zt(
|
|
9744
9740
|
({
|
|
9745
9741
|
id: t,
|
|
9746
9742
|
size: e = "md",
|
|
@@ -9783,7 +9779,7 @@ const ay = {
|
|
|
9783
9779
|
...w
|
|
9784
9780
|
};
|
|
9785
9781
|
return /* @__PURE__ */ R(
|
|
9786
|
-
|
|
9782
|
+
dy,
|
|
9787
9783
|
{
|
|
9788
9784
|
id: t,
|
|
9789
9785
|
$variant: n,
|
|
@@ -9794,11 +9790,11 @@ const ay = {
|
|
|
9794
9790
|
...T,
|
|
9795
9791
|
children: [
|
|
9796
9792
|
d && /* @__PURE__ */ p(q, { component: d, size: h, color: f }),
|
|
9797
|
-
/* @__PURE__ */ p(
|
|
9793
|
+
/* @__PURE__ */ p(hy, { $truncate: m, children: r }),
|
|
9798
9794
|
/* @__PURE__ */ p(
|
|
9799
9795
|
q,
|
|
9800
9796
|
{
|
|
9801
|
-
component: c ||
|
|
9797
|
+
component: c || jg,
|
|
9802
9798
|
size: e === "lg" ? "sm" : h,
|
|
9803
9799
|
color: f
|
|
9804
9800
|
}
|
|
@@ -9808,15 +9804,23 @@ const ay = {
|
|
|
9808
9804
|
);
|
|
9809
9805
|
}
|
|
9810
9806
|
);
|
|
9811
|
-
|
|
9812
|
-
const
|
|
9807
|
+
fy.displayName = "Link";
|
|
9808
|
+
const my = {
|
|
9813
9809
|
default: P`
|
|
9814
9810
|
thead tr:last-child th:first-child {
|
|
9815
|
-
border-radius: var(--border-radius-article)
|
|
9811
|
+
border-top-left-radius: var(--border-radius-article);
|
|
9816
9812
|
}
|
|
9817
9813
|
|
|
9818
9814
|
thead tr:last-child th:last-child {
|
|
9819
|
-
border-radius:
|
|
9815
|
+
border-top-right-radius: var(--border-radius-article);
|
|
9816
|
+
}
|
|
9817
|
+
|
|
9818
|
+
tbody tr:last-child td:first-child {
|
|
9819
|
+
border-bottom-left-radius: var(--border-radius-article);
|
|
9820
|
+
}
|
|
9821
|
+
|
|
9822
|
+
tbody tr:last-child td:last-child {
|
|
9823
|
+
border-bottom-right-radius: var(--border-radius-article);
|
|
9820
9824
|
}
|
|
9821
9825
|
`,
|
|
9822
9826
|
striped: P`
|
|
@@ -9836,12 +9840,20 @@ const fy = {
|
|
|
9836
9840
|
thead tr:last-child th:last-child {
|
|
9837
9841
|
border-radius: 0 var(--border-radius-article) 0 0;
|
|
9838
9842
|
}
|
|
9843
|
+
|
|
9844
|
+
tbody tr:last-child td:first-child {
|
|
9845
|
+
border-bottom-left-radius: var(--border-radius-article);
|
|
9846
|
+
}
|
|
9847
|
+
|
|
9848
|
+
tbody tr:last-child td:last-child {
|
|
9849
|
+
border-bottom-right-radius: var(--border-radius-article);
|
|
9850
|
+
}
|
|
9839
9851
|
`
|
|
9840
|
-
},
|
|
9852
|
+
}, py = P`
|
|
9841
9853
|
tbody tr:hover td {
|
|
9842
9854
|
background-color: var(--color-main-alternative-secondary);
|
|
9843
9855
|
}
|
|
9844
|
-
`,
|
|
9856
|
+
`, gy = P`
|
|
9845
9857
|
@media (max-width: 768px) {
|
|
9846
9858
|
font-size: 0.875rem;
|
|
9847
9859
|
|
|
@@ -9873,7 +9885,7 @@ const fy = {
|
|
|
9873
9885
|
display: inline-flex;
|
|
9874
9886
|
align-items: center;
|
|
9875
9887
|
flex-shrink: 0;
|
|
9876
|
-
`,
|
|
9888
|
+
`, yy = {
|
|
9877
9889
|
sm: P`
|
|
9878
9890
|
${De.sm}
|
|
9879
9891
|
${z[16]}
|
|
@@ -9886,20 +9898,13 @@ const fy = {
|
|
|
9886
9898
|
${De.lg}
|
|
9887
9899
|
${z[24]}
|
|
9888
9900
|
`
|
|
9889
|
-
},
|
|
9901
|
+
}, vy = k.th`
|
|
9890
9902
|
background-color: var(--color-main-blue-primary);
|
|
9891
|
-
${({ $size: t }) =>
|
|
9903
|
+
${({ $size: t }) => yy[t]}
|
|
9892
9904
|
transition: background-color 0.3s ease-out, box-shadow 0.3s ease-out, border-color 0.3s ease-out;
|
|
9893
9905
|
min-width: 8rem;
|
|
9894
9906
|
width: ${({ $width: t }) => t ? typeof t == "number" ? `${t}px` : t : "fit-content"};
|
|
9895
9907
|
|
|
9896
|
-
${({ $sticky: t }) => t && P`
|
|
9897
|
-
position: sticky;
|
|
9898
|
-
top: 0;
|
|
9899
|
-
z-index: 10;
|
|
9900
|
-
box-shadow: var(--shadow-black-card);
|
|
9901
|
-
`}
|
|
9902
|
-
|
|
9903
9908
|
&:hover {
|
|
9904
9909
|
background-color: var(--color-purple-600);
|
|
9905
9910
|
}
|
|
@@ -9907,10 +9912,10 @@ const fy = {
|
|
|
9907
9912
|
${({ $active: t }) => t && P`
|
|
9908
9913
|
background-color: var(--color-blue-400);
|
|
9909
9914
|
`}
|
|
9910
|
-
`,
|
|
9915
|
+
`, by = k.div`
|
|
9911
9916
|
${yc}
|
|
9912
9917
|
justify-content: ${({ $align: t }) => t || "space-between"};
|
|
9913
|
-
`,
|
|
9918
|
+
`, xy = k.button`
|
|
9914
9919
|
all: unset;
|
|
9915
9920
|
display: inline-flex;
|
|
9916
9921
|
align-items: center;
|
|
@@ -9929,7 +9934,7 @@ const fy = {
|
|
|
9929
9934
|
outline-color: var(--color-main-white);
|
|
9930
9935
|
outline-offset: 2px;
|
|
9931
9936
|
}
|
|
9932
|
-
`,
|
|
9937
|
+
`, wy = k.span`
|
|
9933
9938
|
transition: transform 0.3s ease-out;
|
|
9934
9939
|
display: inline-flex;
|
|
9935
9940
|
transform: ${({ $dir: t }) => t === "asc" ? "rotate(-180deg)" : "none"};
|
|
@@ -9942,7 +9947,7 @@ const fy = {
|
|
|
9942
9947
|
text-overflow: ellipsis;
|
|
9943
9948
|
white-space: nowrap;
|
|
9944
9949
|
flex-shrink: 1;
|
|
9945
|
-
`,
|
|
9950
|
+
`, Sy = k(si)`
|
|
9946
9951
|
overflow: hidden;
|
|
9947
9952
|
text-overflow: ellipsis;
|
|
9948
9953
|
white-space: nowrap;
|
|
@@ -9960,36 +9965,34 @@ const fy = {
|
|
|
9960
9965
|
rightIcon: s,
|
|
9961
9966
|
iconSize: o = "sm",
|
|
9962
9967
|
iconColor: a = "var(--color-main-white)",
|
|
9963
|
-
|
|
9964
|
-
|
|
9965
|
-
|
|
9966
|
-
|
|
9967
|
-
|
|
9968
|
-
|
|
9969
|
-
...m
|
|
9968
|
+
align: l = "left",
|
|
9969
|
+
width: u,
|
|
9970
|
+
sortable: d,
|
|
9971
|
+
className: c,
|
|
9972
|
+
onSort: h,
|
|
9973
|
+
...f
|
|
9970
9974
|
}) => {
|
|
9971
|
-
const
|
|
9975
|
+
const m = r === "asc" ? "desc" : "asc";
|
|
9972
9976
|
return /* @__PURE__ */ p(
|
|
9973
|
-
|
|
9977
|
+
vy,
|
|
9974
9978
|
{
|
|
9975
9979
|
$size: e,
|
|
9976
9980
|
$active: n,
|
|
9977
|
-
$width:
|
|
9978
|
-
|
|
9979
|
-
className: h,
|
|
9981
|
+
$width: u,
|
|
9982
|
+
className: c,
|
|
9980
9983
|
scope: "col",
|
|
9981
|
-
"aria-sort":
|
|
9982
|
-
...
|
|
9983
|
-
children:
|
|
9984
|
+
"aria-sort": h ? r === "none" ? "none" : r === "asc" ? "ascending" : "descending" : void 0,
|
|
9985
|
+
...f,
|
|
9986
|
+
children: h || d ? /* @__PURE__ */ R(xy, { onClick: () => h?.(m), "aria-label": `Sort ${m}`, children: [
|
|
9984
9987
|
/* @__PURE__ */ R(Ws, { children: [
|
|
9985
9988
|
i && /* @__PURE__ */ p(q, { component: i, size: o, color: a }),
|
|
9986
|
-
/* @__PURE__ */ p(
|
|
9989
|
+
/* @__PURE__ */ p(Sy, { size: e === "sm" ? 16 : e === "md" ? 20 : 24, children: t })
|
|
9987
9990
|
] }),
|
|
9988
9991
|
/* @__PURE__ */ R(Ks, { children: [
|
|
9989
|
-
/* @__PURE__ */ p(
|
|
9992
|
+
/* @__PURE__ */ p(wy, { $dir: r, children: /* @__PURE__ */ p(q, { component: Ng, size: o, color: a }) }),
|
|
9990
9993
|
s && /* @__PURE__ */ p(q, { component: s, size: o, color: a })
|
|
9991
9994
|
] })
|
|
9992
|
-
] }) : /* @__PURE__ */ R(
|
|
9995
|
+
] }) : /* @__PURE__ */ R(by, { $align: l, children: [
|
|
9993
9996
|
/* @__PURE__ */ R(Ws, { children: [
|
|
9994
9997
|
i && /* @__PURE__ */ p(q, { component: i, size: o, color: a }),
|
|
9995
9998
|
/* @__PURE__ */ p(
|
|
@@ -10013,7 +10016,7 @@ const fy = {
|
|
|
10013
10016
|
);
|
|
10014
10017
|
};
|
|
10015
10018
|
bc.displayName = "TableHeaderCell";
|
|
10016
|
-
const
|
|
10019
|
+
const Ty = {
|
|
10017
10020
|
sm: P`
|
|
10018
10021
|
${De.sm}
|
|
10019
10022
|
${z[14]}
|
|
@@ -10026,10 +10029,10 @@ const Sy = {
|
|
|
10026
10029
|
${De.lg}
|
|
10027
10030
|
${z[16]}
|
|
10028
10031
|
`
|
|
10029
|
-
},
|
|
10032
|
+
}, Cy = k.td`
|
|
10030
10033
|
vertical-align: middle;
|
|
10031
10034
|
color: var(--color-main-blue-primary);
|
|
10032
|
-
${({ $size: t }) =>
|
|
10035
|
+
${({ $size: t }) => Ty[t]}
|
|
10033
10036
|
text-align: ${({ $align: t, $variant: e }) => t || (e === "numeric" ? "right" : "left")};
|
|
10034
10037
|
border-left: 1px solid var(--color-main-light-borders);
|
|
10035
10038
|
border-top: 1px solid var(--color-main-light-borders);
|
|
@@ -10047,10 +10050,10 @@ const Sy = {
|
|
|
10047
10050
|
font-variant-numeric: tabular-nums;
|
|
10048
10051
|
font-family: ui-monospace, monospace;
|
|
10049
10052
|
`}
|
|
10050
|
-
`,
|
|
10053
|
+
`, ky = k.div`
|
|
10051
10054
|
${yc}
|
|
10052
10055
|
justify-content: ${({ $align: t }) => t === "center" ? "center" : t === "right" ? "flex-end" : "flex-start"};
|
|
10053
|
-
`,
|
|
10056
|
+
`, Py = k(ai)`
|
|
10054
10057
|
flex: 1;
|
|
10055
10058
|
min-width: 0;
|
|
10056
10059
|
`, Ys = k.span`
|
|
@@ -10069,7 +10072,7 @@ const Sy = {
|
|
|
10069
10072
|
iconColor: d = "var(--color-main-blue-primary)",
|
|
10070
10073
|
...c
|
|
10071
10074
|
}) => /* @__PURE__ */ p(
|
|
10072
|
-
|
|
10075
|
+
Cy,
|
|
10073
10076
|
{
|
|
10074
10077
|
$size: e,
|
|
10075
10078
|
$align: n,
|
|
@@ -10078,86 +10081,106 @@ const Sy = {
|
|
|
10078
10081
|
$variant: s,
|
|
10079
10082
|
className: o,
|
|
10080
10083
|
...c,
|
|
10081
|
-
children: a || l ? /* @__PURE__ */ R(
|
|
10084
|
+
children: a || l ? /* @__PURE__ */ R(ky, { $align: n, children: [
|
|
10082
10085
|
a && /* @__PURE__ */ p(Ys, { children: /* @__PURE__ */ p(q, { component: a, size: u, color: d }) }),
|
|
10083
|
-
/* @__PURE__ */ p(
|
|
10086
|
+
/* @__PURE__ */ p(Py, { children: t }),
|
|
10084
10087
|
l && /* @__PURE__ */ p(Ys, { children: /* @__PURE__ */ p(q, { component: l, size: u, color: d }) })
|
|
10085
10088
|
] }) : t
|
|
10086
10089
|
}
|
|
10087
10090
|
);
|
|
10088
10091
|
xc.displayName = "TableCell";
|
|
10089
|
-
const
|
|
10090
|
-
width:
|
|
10092
|
+
const Ay = k.table`
|
|
10093
|
+
width: 100%;
|
|
10091
10094
|
table-layout: auto;
|
|
10092
10095
|
border-collapse: separate;
|
|
10093
10096
|
border-spacing: 0;
|
|
10094
10097
|
overflow: visible;
|
|
10095
|
-
box-shadow: var(--shadow-black-card);
|
|
10096
10098
|
border-radius: var(--border-radius-article);
|
|
10097
10099
|
border: 1px solid var(--color-main-light-borders);
|
|
10098
10100
|
|
|
10099
|
-
${({ $variant: t }) =>
|
|
10101
|
+
${({ $variant: t }) => my[t]}
|
|
10102
|
+
${gy}
|
|
10100
10103
|
${py}
|
|
10101
|
-
|
|
10102
|
-
|
|
10104
|
+
`, Ey = k.thead`
|
|
10105
|
+
${({ $sticky: t }) => t && P`
|
|
10106
|
+
position: sticky;
|
|
10107
|
+
top: 0;
|
|
10108
|
+
z-index: 10;
|
|
10109
|
+
`}
|
|
10110
|
+
`, Dy = k.div`
|
|
10111
|
+
max-height: 37.5rem;
|
|
10112
|
+
overflow: auto;
|
|
10113
|
+
position: relative;
|
|
10114
|
+
border-radius: var(--border-radius-article);
|
|
10115
|
+
box-shadow: var(--shadow-black-card);
|
|
10116
|
+
|
|
10117
|
+
&::before {
|
|
10118
|
+
content: '';
|
|
10119
|
+
position: absolute;
|
|
10120
|
+
inset: 0;
|
|
10121
|
+
border-radius: 20px;
|
|
10122
|
+
pointer-events: none;
|
|
10123
|
+
z-index: 3;
|
|
10124
|
+
}
|
|
10125
|
+
`, $y = ({
|
|
10103
10126
|
columns: t,
|
|
10104
10127
|
rows: e,
|
|
10105
10128
|
size: n = "md",
|
|
10106
10129
|
variant: r = "default",
|
|
10107
|
-
|
|
10108
|
-
|
|
10109
|
-
|
|
10130
|
+
tableWrapperClassName: i,
|
|
10131
|
+
tableClassName: s,
|
|
10132
|
+
stickyHeader: o = !1,
|
|
10133
|
+
onSortChange: a
|
|
10110
10134
|
}) => {
|
|
10111
|
-
const
|
|
10112
|
-
|
|
10135
|
+
const l = (u, d) => (c) => {
|
|
10136
|
+
u.onSort?.(c), a?.({ columnId: u.id ?? String(d), direction: c });
|
|
10113
10137
|
};
|
|
10114
|
-
return /* @__PURE__ */ R(
|
|
10115
|
-
/* @__PURE__ */ p(
|
|
10138
|
+
return /* @__PURE__ */ p(Dy, { className: i, children: /* @__PURE__ */ R(Ay, { $variant: r, className: s, children: [
|
|
10139
|
+
/* @__PURE__ */ p(Ey, { $sticky: o, children: /* @__PURE__ */ p("tr", { children: t.map((u, d) => /* @__PURE__ */ p(
|
|
10116
10140
|
bc,
|
|
10117
10141
|
{
|
|
10118
10142
|
size: n,
|
|
10119
|
-
leftIcon:
|
|
10120
|
-
rightIcon:
|
|
10121
|
-
iconSize:
|
|
10122
|
-
iconColor:
|
|
10123
|
-
sortDirection:
|
|
10124
|
-
onSort:
|
|
10125
|
-
|
|
10126
|
-
|
|
10127
|
-
|
|
10128
|
-
|
|
10129
|
-
|
|
10130
|
-
children: l.header
|
|
10143
|
+
leftIcon: u.leftIcon,
|
|
10144
|
+
rightIcon: u.rightIcon,
|
|
10145
|
+
iconSize: u.iconSize,
|
|
10146
|
+
iconColor: u.iconColor,
|
|
10147
|
+
sortDirection: u.sortDirection,
|
|
10148
|
+
onSort: u.onSort ?? (a ? l(u, d) : void 0),
|
|
10149
|
+
width: u.width,
|
|
10150
|
+
align: u.align,
|
|
10151
|
+
sortable: u.sortable || !!u.onSort || !!a,
|
|
10152
|
+
className: u.className,
|
|
10153
|
+
children: u.header
|
|
10131
10154
|
},
|
|
10132
|
-
|
|
10155
|
+
u.id || `col-${d}`
|
|
10133
10156
|
)) }) }),
|
|
10134
|
-
/* @__PURE__ */ p("tbody", { children: e.map((
|
|
10135
|
-
const
|
|
10136
|
-
return !
|
|
10137
|
-
const
|
|
10157
|
+
/* @__PURE__ */ p("tbody", { children: e.map((u, d) => {
|
|
10158
|
+
const c = u.cells;
|
|
10159
|
+
return !c || !Array.isArray(c) ? null : /* @__PURE__ */ p("tr", { children: c.map((h, f) => {
|
|
10160
|
+
const m = t[f];
|
|
10138
10161
|
return /* @__PURE__ */ p(
|
|
10139
10162
|
xc,
|
|
10140
10163
|
{
|
|
10141
|
-
size:
|
|
10142
|
-
align:
|
|
10143
|
-
width:
|
|
10144
|
-
truncate:
|
|
10145
|
-
variant:
|
|
10146
|
-
className:
|
|
10147
|
-
leftIcon:
|
|
10148
|
-
rightIcon:
|
|
10149
|
-
iconSize:
|
|
10150
|
-
iconColor:
|
|
10151
|
-
children:
|
|
10164
|
+
size: h.size || u.size || n,
|
|
10165
|
+
align: h.align || u.align || m?.align,
|
|
10166
|
+
width: h.width || u.width || m?.width,
|
|
10167
|
+
truncate: h.truncate || u.truncate,
|
|
10168
|
+
variant: h.variant || u.variant,
|
|
10169
|
+
className: h.className || u.className || m?.className,
|
|
10170
|
+
leftIcon: h.leftIcon,
|
|
10171
|
+
rightIcon: h.rightIcon,
|
|
10172
|
+
iconSize: h.iconSize,
|
|
10173
|
+
iconColor: h.iconColor,
|
|
10174
|
+
children: h.content
|
|
10152
10175
|
},
|
|
10153
|
-
`${
|
|
10176
|
+
`${u.id || d}-${f}`
|
|
10154
10177
|
);
|
|
10155
|
-
}) },
|
|
10178
|
+
}) }, u.id || d);
|
|
10156
10179
|
}) })
|
|
10157
|
-
] });
|
|
10180
|
+
] }) });
|
|
10158
10181
|
};
|
|
10159
|
-
|
|
10160
|
-
const
|
|
10182
|
+
$y.displayName = "Table";
|
|
10183
|
+
const My = k.header`
|
|
10161
10184
|
position: fixed;
|
|
10162
10185
|
top: 0;
|
|
10163
10186
|
left: 0;
|
|
@@ -10176,15 +10199,15 @@ const Ey = k.header`
|
|
|
10176
10199
|
@media (min-width: 768px) {
|
|
10177
10200
|
padding-left: ${({ $sidebarCollapsed: t }) => t ? "6rem" : "17rem"};
|
|
10178
10201
|
}
|
|
10179
|
-
`,
|
|
10202
|
+
`, Vy = k.div`
|
|
10180
10203
|
display: flex;
|
|
10181
10204
|
align-items: center;
|
|
10182
10205
|
gap: 1rem;
|
|
10183
|
-
`,
|
|
10206
|
+
`, Ry = k.div`
|
|
10184
10207
|
display: flex;
|
|
10185
10208
|
align-items: center;
|
|
10186
10209
|
gap: 1rem;
|
|
10187
|
-
`,
|
|
10210
|
+
`, Iy = k.button`
|
|
10188
10211
|
position: relative;
|
|
10189
10212
|
display: flex;
|
|
10190
10213
|
align-items: center;
|
|
@@ -10208,7 +10231,7 @@ const Ey = k.header`
|
|
|
10208
10231
|
&:active {
|
|
10209
10232
|
transform: scale(0.92);
|
|
10210
10233
|
}
|
|
10211
|
-
`,
|
|
10234
|
+
`, Ny = k.span`
|
|
10212
10235
|
position: absolute;
|
|
10213
10236
|
top: 0.35rem;
|
|
10214
10237
|
right: 0.35rem;
|
|
@@ -10224,7 +10247,7 @@ const Ey = k.header`
|
|
|
10224
10247
|
display: flex;
|
|
10225
10248
|
align-items: center;
|
|
10226
10249
|
justify-content: center;
|
|
10227
|
-
`,
|
|
10250
|
+
`, Ly = k.div`
|
|
10228
10251
|
display: flex;
|
|
10229
10252
|
align-items: center;
|
|
10230
10253
|
gap: 0.75rem;
|
|
@@ -10241,7 +10264,7 @@ const Ey = k.header`
|
|
|
10241
10264
|
outline: 2px solid var(--color-main-blue-primary);
|
|
10242
10265
|
outline-offset: 2px;
|
|
10243
10266
|
}
|
|
10244
|
-
`,
|
|
10267
|
+
`, By = k.div`
|
|
10245
10268
|
width: 2rem;
|
|
10246
10269
|
height: 2rem;
|
|
10247
10270
|
border-radius: 50%;
|
|
@@ -10252,7 +10275,7 @@ const Ey = k.header`
|
|
|
10252
10275
|
color: var(--color-main-white);
|
|
10253
10276
|
font-weight: 600;
|
|
10254
10277
|
font-size: 0.875rem;
|
|
10255
|
-
`,
|
|
10278
|
+
`, Oy = k.div`
|
|
10256
10279
|
display: flex;
|
|
10257
10280
|
flex-direction: column;
|
|
10258
10281
|
align-items: flex-start;
|
|
@@ -10260,12 +10283,12 @@ const Ey = k.header`
|
|
|
10260
10283
|
@media (max-width: 640px) {
|
|
10261
10284
|
display: none;
|
|
10262
10285
|
}
|
|
10263
|
-
`,
|
|
10286
|
+
`, jy = k.span`
|
|
10264
10287
|
font-weight: 600;
|
|
10265
10288
|
font-size: 0.875rem;
|
|
10266
10289
|
color: var(--color-main-dark-text);
|
|
10267
10290
|
line-height: 1.2;
|
|
10268
|
-
`,
|
|
10291
|
+
`, Fy = k.span`
|
|
10269
10292
|
font-size: 0.75rem;
|
|
10270
10293
|
color: var(--color-main-gray-text);
|
|
10271
10294
|
line-height: 1.2;
|
|
@@ -10279,11 +10302,11 @@ const Ey = k.header`
|
|
|
10279
10302
|
children: o
|
|
10280
10303
|
}) => {
|
|
10281
10304
|
const a = (h) => h.split(" ").map((f) => f[0]).join("").toUpperCase().slice(0, 2), l = (r ?? 0) > 0 || n, u = r && r > 0 ? r : void 0, d = u ? `${u} notification${u === 1 ? "" : "s"}` : l ? "New notifications" : "No notifications", c = `Notifications: ${d}`;
|
|
10282
|
-
return /* @__PURE__ */ R(
|
|
10283
|
-
/* @__PURE__ */ p(
|
|
10284
|
-
/* @__PURE__ */ R(
|
|
10305
|
+
return /* @__PURE__ */ R(My, { $sidebarCollapsed: t, children: [
|
|
10306
|
+
/* @__PURE__ */ p(Vy, { children: o }),
|
|
10307
|
+
/* @__PURE__ */ R(Ry, { children: [
|
|
10285
10308
|
/* @__PURE__ */ R(
|
|
10286
|
-
|
|
10309
|
+
Iy,
|
|
10287
10310
|
{
|
|
10288
10311
|
onClick: i,
|
|
10289
10312
|
"aria-label": c,
|
|
@@ -10293,17 +10316,17 @@ const Ey = k.header`
|
|
|
10293
10316
|
/* @__PURE__ */ p(
|
|
10294
10317
|
q,
|
|
10295
10318
|
{
|
|
10296
|
-
component: l ?
|
|
10319
|
+
component: l ? _g : Hg,
|
|
10297
10320
|
size: "md",
|
|
10298
10321
|
color: "var(--color-main-blue-primary)"
|
|
10299
10322
|
}
|
|
10300
10323
|
),
|
|
10301
|
-
l && /* @__PURE__ */ p(
|
|
10324
|
+
l && /* @__PURE__ */ p(Ny, { $withCount: !!u, "aria-hidden": !!u, children: u && (u > 99 ? "99+" : u) })
|
|
10302
10325
|
]
|
|
10303
10326
|
}
|
|
10304
10327
|
),
|
|
10305
10328
|
e && /* @__PURE__ */ R(
|
|
10306
|
-
|
|
10329
|
+
Ly,
|
|
10307
10330
|
{
|
|
10308
10331
|
onClick: s,
|
|
10309
10332
|
role: "button",
|
|
@@ -10312,7 +10335,7 @@ const Ey = k.header`
|
|
|
10312
10335
|
(h.key === "Enter" || h.key === " ") && (h.preventDefault(), s?.());
|
|
10313
10336
|
},
|
|
10314
10337
|
children: [
|
|
10315
|
-
/* @__PURE__ */ p(
|
|
10338
|
+
/* @__PURE__ */ p(By, { children: e.avatarUrl ? /* @__PURE__ */ p(
|
|
10316
10339
|
"img",
|
|
10317
10340
|
{
|
|
10318
10341
|
src: e.avatarUrl,
|
|
@@ -10320,9 +10343,9 @@ const Ey = k.header`
|
|
|
10320
10343
|
style: { width: "100%", height: "100%", borderRadius: "50%" }
|
|
10321
10344
|
}
|
|
10322
10345
|
) : a(e.name) }),
|
|
10323
|
-
/* @__PURE__ */ R(
|
|
10324
|
-
/* @__PURE__ */ p(
|
|
10325
|
-
/* @__PURE__ */ p(
|
|
10346
|
+
/* @__PURE__ */ R(Oy, { children: [
|
|
10347
|
+
/* @__PURE__ */ p(jy, { children: e.name }),
|
|
10348
|
+
/* @__PURE__ */ p(Fy, { children: e.role })
|
|
10326
10349
|
] })
|
|
10327
10350
|
]
|
|
10328
10351
|
}
|
|
@@ -10331,12 +10354,12 @@ const Ey = k.header`
|
|
|
10331
10354
|
] });
|
|
10332
10355
|
};
|
|
10333
10356
|
wc.displayName = "Header";
|
|
10334
|
-
const
|
|
10357
|
+
const zy = k.div`
|
|
10335
10358
|
display: flex;
|
|
10336
10359
|
flex-direction: column;
|
|
10337
10360
|
height: 100vh;
|
|
10338
10361
|
overflow: hidden;
|
|
10339
|
-
`,
|
|
10362
|
+
`, _y = k.main`
|
|
10340
10363
|
flex: 1;
|
|
10341
10364
|
margin-top: 4rem;
|
|
10342
10365
|
/* Mobile-first: no lateral offset so content occupies full width */
|
|
@@ -10352,7 +10375,7 @@ const Oy = k.div`
|
|
|
10352
10375
|
@media (min-width: 1200px) {
|
|
10353
10376
|
margin-left: 5rem;
|
|
10354
10377
|
}
|
|
10355
|
-
`,
|
|
10378
|
+
`, Hy = ({
|
|
10356
10379
|
children: t,
|
|
10357
10380
|
navigationConfig: e,
|
|
10358
10381
|
userRoles: n = [],
|
|
@@ -10363,9 +10386,9 @@ const Oy = k.div`
|
|
|
10363
10386
|
onNotificationClick: a,
|
|
10364
10387
|
onUserProfileClick: l,
|
|
10365
10388
|
contentClassName: u,
|
|
10366
|
-
|
|
10367
|
-
|
|
10368
|
-
}) => /* @__PURE__ */ R(
|
|
10389
|
+
logoImgCollapsed: d,
|
|
10390
|
+
logoImgExpanded: c
|
|
10391
|
+
}) => /* @__PURE__ */ R(zy, { children: [
|
|
10369
10392
|
/* @__PURE__ */ p(
|
|
10370
10393
|
gc,
|
|
10371
10394
|
{
|
|
@@ -10373,8 +10396,8 @@ const Oy = k.div`
|
|
|
10373
10396
|
userRoles: n,
|
|
10374
10397
|
onNavigate: o,
|
|
10375
10398
|
activePath: r,
|
|
10376
|
-
|
|
10377
|
-
|
|
10399
|
+
logoImgCollapsed: d,
|
|
10400
|
+
logoImgExpanded: c
|
|
10378
10401
|
}
|
|
10379
10402
|
),
|
|
10380
10403
|
/* @__PURE__ */ p(
|
|
@@ -10386,75 +10409,79 @@ const Oy = k.div`
|
|
|
10386
10409
|
onUserProfileClick: l
|
|
10387
10410
|
}
|
|
10388
10411
|
),
|
|
10389
|
-
/* @__PURE__ */ p(
|
|
10390
|
-
] }),
|
|
10412
|
+
/* @__PURE__ */ p(_y, { className: u, children: t })
|
|
10413
|
+
] }), hv = (t) => /* @__PURE__ */ p(Y0, { children: /* @__PURE__ */ p(Hy, { ...t }) });
|
|
10391
10414
|
export {
|
|
10392
|
-
|
|
10415
|
+
Mg as ALLOWED_INPUT_TYPES,
|
|
10393
10416
|
nc as BaseInput,
|
|
10394
10417
|
Bs as Button,
|
|
10395
10418
|
jp as ButtonSpinner,
|
|
10396
|
-
|
|
10397
|
-
|
|
10398
|
-
|
|
10399
|
-
|
|
10419
|
+
ev as Card,
|
|
10420
|
+
rv as CardBody,
|
|
10421
|
+
iv as CardFooter,
|
|
10422
|
+
nv as CardHeader,
|
|
10400
10423
|
Wi as Checkbox,
|
|
10401
10424
|
sc as CheckboxInput,
|
|
10402
|
-
|
|
10403
|
-
|
|
10404
|
-
|
|
10405
|
-
|
|
10406
|
-
|
|
10425
|
+
y0 as CheckboxLabel,
|
|
10426
|
+
F0 as Dialog,
|
|
10427
|
+
U0 as DialogBody,
|
|
10428
|
+
K0 as DialogFooter,
|
|
10429
|
+
_0 as DialogHeader,
|
|
10407
10430
|
Fs as ErrorMessage,
|
|
10408
|
-
|
|
10409
|
-
|
|
10431
|
+
uv as FormField,
|
|
10432
|
+
Zy as FullScreenSpinner,
|
|
10410
10433
|
wc as Header,
|
|
10411
10434
|
si as HeadingBold,
|
|
10412
|
-
|
|
10435
|
+
Xy as HeadingRegular,
|
|
10413
10436
|
q as Icon,
|
|
10414
10437
|
er as IconWrapperStyles,
|
|
10415
10438
|
Hi as Label,
|
|
10416
|
-
|
|
10417
|
-
|
|
10418
|
-
|
|
10439
|
+
hv as Layout,
|
|
10440
|
+
fy as Link,
|
|
10441
|
+
Yg as PasswordInput,
|
|
10419
10442
|
ac as PinInput,
|
|
10420
10443
|
lc as PinInputGroup,
|
|
10421
10444
|
dc as RadioInput,
|
|
10422
10445
|
cc as RadioInputDot,
|
|
10423
10446
|
uc as RadioInputLabel,
|
|
10424
|
-
|
|
10425
|
-
|
|
10447
|
+
u0 as SearchInput,
|
|
10448
|
+
Jy as SectionSpinner,
|
|
10426
10449
|
ic as SelectInput,
|
|
10427
10450
|
gc as Sidebar,
|
|
10428
10451
|
fc as SidebarContext,
|
|
10429
|
-
|
|
10452
|
+
Y0 as SidebarProvider,
|
|
10430
10453
|
_i as Spinner,
|
|
10431
|
-
|
|
10454
|
+
$y as Table,
|
|
10432
10455
|
xc as TableCell,
|
|
10433
10456
|
bc as TableHeaderCell,
|
|
10434
|
-
|
|
10457
|
+
dv as TermsAndConditions,
|
|
10435
10458
|
ai as Text,
|
|
10436
10459
|
oc as TextAreaInput,
|
|
10437
|
-
|
|
10460
|
+
Qy as ToastProvider,
|
|
10438
10461
|
yc as baseContentTableStyles,
|
|
10439
10462
|
Ue as baseFieldStyles,
|
|
10440
10463
|
Ui as baseInputStyles,
|
|
10441
10464
|
De as baseTableCellsSizes,
|
|
10442
|
-
|
|
10443
|
-
|
|
10465
|
+
z as bodyTextStyles,
|
|
10466
|
+
av as createFieldConfig,
|
|
10467
|
+
P0 as createInputRefs,
|
|
10444
10468
|
ye as disabledStyles,
|
|
10445
10469
|
We as errorStyles,
|
|
10446
|
-
|
|
10447
|
-
|
|
10448
|
-
|
|
10449
|
-
|
|
10450
|
-
|
|
10470
|
+
Vg as flushedStyles,
|
|
10471
|
+
lv as getPropsForInputType,
|
|
10472
|
+
T0 as handleDigitChange,
|
|
10473
|
+
C0 as handleKeyDown,
|
|
10474
|
+
k0 as handlePaste,
|
|
10451
10475
|
Us as hasPermission,
|
|
10452
|
-
|
|
10453
|
-
|
|
10476
|
+
Sa as headingBoldStyles,
|
|
10477
|
+
Yu as headingRegularStyles,
|
|
10478
|
+
ov as normalizeFieldTypes,
|
|
10479
|
+
sv as normalizeSelectOptions,
|
|
10454
10480
|
tr as sizeStyles,
|
|
10455
|
-
|
|
10481
|
+
py as tableHoverMixin,
|
|
10456
10482
|
vc as tableIconContainerStyles,
|
|
10457
|
-
|
|
10458
|
-
|
|
10459
|
-
|
|
10483
|
+
gy as tableResponsiveMixin,
|
|
10484
|
+
my as tableVariants,
|
|
10485
|
+
tv as toast,
|
|
10486
|
+
cv as validateCode
|
|
10460
10487
|
};
|