@aivex/ui 1.2.0-dev.8 → 1.2.0-dev.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/DatePicker/DatePicker.d.ts +5 -3
- package/dist/components/InputBase/InputBase.d.ts +5 -7
- package/dist/components/Modal/Modal.d.ts +9 -2
- package/dist/components/Modal/index.d.ts +1 -1
- package/dist/components/SelectBox/SelectBox.d.ts +7 -4
- package/dist/components/Tagbox/Tagbox.d.ts +1 -4
- package/dist/components/Textarea/Textarea.d.ts +1 -4
- package/dist/components/Textbox/Textbox.d.ts +1 -5
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +848 -880
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "./styles.css";
|
|
3
|
-
import { $ as e, $i as t, $n as n, $r as r, $t as i, A as a, Aa as o, Ai as s, An as c, Ar as l, At as u, B as d, Bi as f, Bn as p, Br as m, Bt as h, C as g, Ca as _, Ci as v, Cn as y, Cr as b, Ct as x, D as S, Da as C, Di as w, Dn as T, Dr as E, Dt as D, E as O, Ea as k, Ei as A, En as j, Er as
|
|
3
|
+
import { $ as e, $i as t, $n as n, $r as r, $t as i, A as a, Aa as o, Ai as s, An as c, Ar as l, At as u, B as d, Bi as f, Bn as p, Br as m, Bt as h, C as g, Ca as _, Ci as v, Cn as y, Cr as b, Ct as x, D as S, Da as C, Di as w, Dn as T, Dr as E, Dt as D, E as O, Ea as k, Ei as A, En as j, Er as M, Et as ee, F as te, Fa as N, Fi as P, Fn as F, Fr as I, Ft as ne, G as re, Gi as ie, Gn as ae, Gr as oe, Gt as se, H as ce, Hi as le, Hn as ue, Hr as de, Ht as fe, I as pe, Ia as me, Ii as he, In as ge, Ir as _e, It as ve, J as ye, Ji as be, Jn as xe, Jr as Se, Jt as Ce, K as we, Ki as Te, Kn as Ee, Kr as De, Kt as Oe, L as ke, Li as Ae, Ln as je, Lr as Me, Lt as Ne, M as Pe, Ma as Fe, Mi as Ie, Mn as Le, Mr as Re, Mt as ze, N as Be, Na as L, Ni as Ve, Nn as He, Nr as Ue, Nt as We, O as Ge, Oa as Ke, Oi as qe, On as Je, Or as Ye, Ot as Xe, P as Ze, Pi as Qe, Pn as $e, Pr as et, Pt as tt, Q as nt, Qi as rt, Qn as it, Qr as at, Qt as ot, R as st, Ra as ct, Ri as lt, Rn as ut, Rr as dt, Rt as ft, S as pt, Sa as mt, Si as ht, Sn as gt, Sr as _t, St as vt, T as yt, Ta as bt, Ti as xt, Tn as St, Tr as Ct, Tt as wt, U as Tt, Ui as Et, Un as Dt, Ur as Ot, Ut as kt, V as At, Vi as jt, Vn as Mt, Vr as Nt, Vt as Pt, W as Ft, Wi as It, Wn as Lt, Wr as Rt, Wt as zt, X as Bt, Xi as Vt, Xn as Ht, Xr as Ut, Xt as Wt, Y as Gt, Yi as Kt, Yn as qt, Yr as Jt, Yt, Z as Xt, Zi as Zt, Zn as Qt, Zr as $t, Zt as en, _ as tn, _a as nn, _i as rn, _n as an, _r as on, _t as sn, a as cn, aa as ln, ai as un, an as dn, ar as fn, at as pn, b as mn, ba as hn, bi as gn, bn as _n, br as vn, bt as yn, c as bn, ca as xn, ci as Sn, cn as Cn, cr as wn, ct as Tn, d as En, da as Dn, di as On, dn as kn, dr as An, dt as jn, ea as Mn, ei as Nn, en as Pn, er as Fn, et as In, f as Ln, fa as Rn, fi as zn, fn as Bn, fr as Vn, ft as Hn, g as Un, ga as Wn, gi as Gn, gn as Kn, gr as qn, gt as Jn, h as Yn, ha as Xn, hi as Zn, hn as Qn, hr as $n, ht as er, i as tr, ia as nr, ii as rr, in as ir, ir as ar, it as or, j as sr, ja as cr, ji as lr, jn as ur, jr as dr, jt as fr, k as pr, ka as mr, ki as hr, kn as gr, kr as _r, kt as vr, l as yr, la as br, li as xr, ln as Sr, lr as Cr, lt as wr, m as Tr, ma as Er, mi as Dr, mn as Or, mr as kr, mt as Ar, n as jr, na as Mr, ni as Nr, nn as Pr, nr as Fr, nt as Ir, o as Lr, oa as Rr, oi as zr, on as Br, or as Vr, ot as Hr, p as Ur, pa as Wr, pi as Gr, pn as Kr, pr as qr, pt as Jr, q as Yr, qi as Xr, qn as Zr, qr as Qr, qt as $r, r as ei, ra as ti, ri as ni, rn as ri, rr as ii, rt as ai, s as oi, sa as si, si as ci, sn as li, sr as ui, st as di, t as fi, ta as pi, ti as mi, tn as hi, tr as gi, tt as _i, u as vi, ua as R, ui as yi, un as bi, ur as xi, ut as Si, v as Ci, va as wi, vi as Ti, vn as Ei, vr as Di, vt as Oi, w as ki, wa as Ai, wi as ji, wn as Mi, wr as Ni, wt as Pi, x as Fi, xa as Ii, xi as Li, xn as Ri, xr as zi, xt as Bi, y as Vi, yi as Hi, yn as Ui, yr as Wi, yt as Gi, z as Ki, za as z, zi as qi, zn as Ji, zr as Yi, zt as Xi } from "./Button-CzqDPqUT.js";
|
|
4
4
|
import { a as Zi, i as Qi, n as $i, o as ea, r as ta, t as na } from "./IconButton-DTGSfJme.js";
|
|
5
5
|
import { C as ra, S as ia, _ as aa, a as oa, b as sa, c as ca, d as B, f as la, g as ua, h as da, i as fa, l as V, m as pa, n as ma, o as H, p as ha, r as ga, s as U, t as _a, u as va, v as ya, x as ba, y as xa } from "./Switch-B2irM7Pp.js";
|
|
6
6
|
import { cva as W } from "class-variance-authority";
|
|
@@ -513,7 +513,7 @@ function to({ className: e, shape: t, size: n, variant: r, active: i, defaultAct
|
|
|
513
513
|
}
|
|
514
514
|
//#endregion
|
|
515
515
|
//#region src/components/Chips/index.ts
|
|
516
|
-
var no = to, ro = eo, io = "Popover", [ao, oo] =
|
|
516
|
+
var no = to, ro = eo, io = "Popover", [ao, oo] = me(io, [wi]), so = wi(), [co, lo] = ao(io), uo = (e) => {
|
|
517
517
|
let { __scopePopover: t, children: n, open: r, defaultOpen: i, onOpenChange: a, modal: o = !1 } = e, s = so(t), c = G.useRef(null), [l, u] = G.useState(!1), [d, f] = Dn({
|
|
518
518
|
prop: r,
|
|
519
519
|
defaultProp: i ?? !1,
|
|
@@ -548,7 +548,7 @@ var fo = "PopoverAnchor", po = G.forwardRef((e, t) => {
|
|
|
548
548
|
});
|
|
549
549
|
po.displayName = fo;
|
|
550
550
|
var mo = "PopoverTrigger", ho = G.forwardRef((e, t) => {
|
|
551
|
-
let { __scopePopover: n, ...r } = e, i = lo(mo, n), a = so(n), o =
|
|
551
|
+
let { __scopePopover: n, ...r } = e, i = lo(mo, n), a = so(n), o = ct(t, i.triggerRef), s = /* @__PURE__ */ q(L.button, {
|
|
552
552
|
type: "button",
|
|
553
553
|
"aria-haspopup": "dialog",
|
|
554
554
|
"aria-expanded": i.open,
|
|
@@ -596,7 +596,7 @@ var bo = "PopoverContent", xo = G.forwardRef((e, t) => {
|
|
|
596
596
|
});
|
|
597
597
|
xo.displayName = bo;
|
|
598
598
|
var So = Ia("PopoverContent.RemoveScroll"), Co = G.forwardRef((e, t) => {
|
|
599
|
-
let n = lo(bo, e.__scopePopover), r = G.useRef(null), i =
|
|
599
|
+
let n = lo(bo, e.__scopePopover), r = G.useRef(null), i = ct(t, r), a = G.useRef(!1);
|
|
600
600
|
return G.useEffect(() => {
|
|
601
601
|
let e = r.current;
|
|
602
602
|
if (e) return aa(e);
|
|
@@ -670,7 +670,7 @@ var So = Ia("PopoverContent.RemoveScroll"), Co = G.forwardRef((e, t) => {
|
|
|
670
670
|
});
|
|
671
671
|
}), Eo = "PopoverClose", Do = G.forwardRef((e, t) => {
|
|
672
672
|
let { __scopePopover: n, ...r } = e, i = lo(Eo, n);
|
|
673
|
-
return /* @__PURE__ */ q(
|
|
673
|
+
return /* @__PURE__ */ q(L.button, {
|
|
674
674
|
type: "button",
|
|
675
675
|
...r,
|
|
676
676
|
ref: t,
|
|
@@ -2429,8 +2429,8 @@ function xc(e) {
|
|
|
2429
2429
|
function Sc(e, t) {
|
|
2430
2430
|
return G.useReducer((e, n) => t[e][n] ?? e, e);
|
|
2431
2431
|
}
|
|
2432
|
-
var Cc = "ScrollArea", [wc, Tc] =
|
|
2433
|
-
let { __scopeScrollArea: n, type: r = "hover", dir: i, scrollHideDelay: a = 600, ...o } = e, [s, c] = G.useState(null), [l, u] = G.useState(null), [d, f] = G.useState(null), [p, m] = G.useState(null), [h, g] = G.useState(null), [_, v] = G.useState(0), [y, b] = G.useState(0), [x, S] = G.useState(!1), [C, w] = G.useState(!1), T =
|
|
2432
|
+
var Cc = "ScrollArea", [wc, Tc] = me(Cc), [Ec, Dc] = wc(Cc), Oc = G.forwardRef((e, t) => {
|
|
2433
|
+
let { __scopeScrollArea: n, type: r = "hover", dir: i, scrollHideDelay: a = 600, ...o } = e, [s, c] = G.useState(null), [l, u] = G.useState(null), [d, f] = G.useState(null), [p, m] = G.useState(null), [h, g] = G.useState(null), [_, v] = G.useState(0), [y, b] = G.useState(0), [x, S] = G.useState(!1), [C, w] = G.useState(!1), T = ct(t, (e) => c(e)), E = ra(i);
|
|
2434
2434
|
return /* @__PURE__ */ q(Ec, {
|
|
2435
2435
|
scope: n,
|
|
2436
2436
|
type: r,
|
|
@@ -2451,7 +2451,7 @@ var Cc = "ScrollArea", [wc, Tc] = he(Cc), [Ec, Dc] = wc(Cc), Oc = G.forwardRef((
|
|
|
2451
2451
|
onScrollbarYEnabledChange: w,
|
|
2452
2452
|
onCornerWidthChange: v,
|
|
2453
2453
|
onCornerHeightChange: b,
|
|
2454
|
-
children: /* @__PURE__ */ q(
|
|
2454
|
+
children: /* @__PURE__ */ q(L.div, {
|
|
2455
2455
|
dir: E,
|
|
2456
2456
|
...o,
|
|
2457
2457
|
ref: T,
|
|
@@ -2466,11 +2466,11 @@ var Cc = "ScrollArea", [wc, Tc] = he(Cc), [Ec, Dc] = wc(Cc), Oc = G.forwardRef((
|
|
|
2466
2466
|
});
|
|
2467
2467
|
Oc.displayName = Cc;
|
|
2468
2468
|
var kc = "ScrollAreaViewport", Ac = G.forwardRef((e, t) => {
|
|
2469
|
-
let { __scopeScrollArea: n, children: r, nonce: i, ...a } = e, o = Dc(kc, n), s =
|
|
2469
|
+
let { __scopeScrollArea: n, children: r, nonce: i, ...a } = e, o = Dc(kc, n), s = ct(t, G.useRef(null), o.onViewportChange);
|
|
2470
2470
|
return /* @__PURE__ */ J(Na, { children: [/* @__PURE__ */ q("style", {
|
|
2471
2471
|
dangerouslySetInnerHTML: { __html: "[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}" },
|
|
2472
2472
|
nonce: i
|
|
2473
|
-
}), /* @__PURE__ */ q(
|
|
2473
|
+
}), /* @__PURE__ */ q(L.div, {
|
|
2474
2474
|
"data-radix-scroll-area-viewport": "",
|
|
2475
2475
|
...a,
|
|
2476
2476
|
ref: s,
|
|
@@ -2656,7 +2656,7 @@ var Nc = G.forwardRef((e, t) => {
|
|
|
2656
2656
|
}
|
|
2657
2657
|
}) : null;
|
|
2658
2658
|
}), Lc = G.forwardRef((e, t) => {
|
|
2659
|
-
let { sizes: n, onSizesChange: r, ...i } = e, a = Dc(jc, e.__scopeScrollArea), [o, s] = G.useState(), c = G.useRef(null), l =
|
|
2659
|
+
let { sizes: n, onSizesChange: r, ...i } = e, a = Dc(jc, e.__scopeScrollArea), [o, s] = G.useState(), c = G.useRef(null), l = ct(t, c, a.onScrollbarXChange);
|
|
2660
2660
|
return G.useEffect(() => {
|
|
2661
2661
|
c.current && s(getComputedStyle(c.current));
|
|
2662
2662
|
}, [c]), /* @__PURE__ */ q(Vc, {
|
|
@@ -2692,7 +2692,7 @@ var Nc = G.forwardRef((e, t) => {
|
|
|
2692
2692
|
}
|
|
2693
2693
|
});
|
|
2694
2694
|
}), Rc = G.forwardRef((e, t) => {
|
|
2695
|
-
let { sizes: n, onSizesChange: r, ...i } = e, a = Dc(jc, e.__scopeScrollArea), [o, s] = G.useState(), c = G.useRef(null), l =
|
|
2695
|
+
let { sizes: n, onSizesChange: r, ...i } = e, a = Dc(jc, e.__scopeScrollArea), [o, s] = G.useState(), c = G.useRef(null), l = ct(t, c, a.onScrollbarYChange);
|
|
2696
2696
|
return G.useEffect(() => {
|
|
2697
2697
|
c.current && s(getComputedStyle(c.current));
|
|
2698
2698
|
}, [c]), /* @__PURE__ */ q(Vc, {
|
|
@@ -2729,7 +2729,7 @@ var Nc = G.forwardRef((e, t) => {
|
|
|
2729
2729
|
}
|
|
2730
2730
|
});
|
|
2731
2731
|
}), [zc, Bc] = wc(jc), Vc = G.forwardRef((e, t) => {
|
|
2732
|
-
let { __scopeScrollArea: n, sizes: r, hasThumb: i, onThumbChange: a, onThumbPointerUp: o, onThumbPointerDown: s, onThumbPositionChange: c, onDragScroll: l, onWheelScroll: u, onResize: d, ...f } = e, p = Dc(jc, n), [m, h] = G.useState(null), g =
|
|
2732
|
+
let { __scopeScrollArea: n, sizes: r, hasThumb: i, onThumbChange: a, onThumbPointerUp: o, onThumbPointerDown: s, onThumbPositionChange: c, onDragScroll: l, onWheelScroll: u, onResize: d, ...f } = e, p = Dc(jc, n), [m, h] = G.useState(null), g = ct(t, (e) => h(e)), _ = G.useRef(null), v = G.useRef(""), y = p.viewport, b = r.content - r.viewport, x = Fe(u), S = Fe(c), C = nl(d, 10);
|
|
2733
2733
|
function w(e) {
|
|
2734
2734
|
_.current && l({
|
|
2735
2735
|
x: e.clientX - _.current.left,
|
|
@@ -2751,11 +2751,11 @@ var Nc = G.forwardRef((e, t) => {
|
|
|
2751
2751
|
scope: n,
|
|
2752
2752
|
scrollbar: m,
|
|
2753
2753
|
hasThumb: i,
|
|
2754
|
-
onThumbChange:
|
|
2755
|
-
onThumbPointerUp:
|
|
2754
|
+
onThumbChange: Fe(a),
|
|
2755
|
+
onThumbPointerUp: Fe(o),
|
|
2756
2756
|
onThumbPositionChange: S,
|
|
2757
|
-
onThumbPointerDown:
|
|
2758
|
-
children: /* @__PURE__ */ q(
|
|
2757
|
+
onThumbPointerDown: Fe(s),
|
|
2758
|
+
children: /* @__PURE__ */ q(L.div, {
|
|
2759
2759
|
...f,
|
|
2760
2760
|
ref: g,
|
|
2761
2761
|
style: {
|
|
@@ -2782,7 +2782,7 @@ var Nc = G.forwardRef((e, t) => {
|
|
|
2782
2782
|
})
|
|
2783
2783
|
});
|
|
2784
2784
|
}), Wc = G.forwardRef((e, t) => {
|
|
2785
|
-
let { __scopeScrollArea: n, style: r, ...i } = e, a = Dc(Hc, n), o = Bc(Hc, n), { onThumbPositionChange: s } = o, c =
|
|
2785
|
+
let { __scopeScrollArea: n, style: r, ...i } = e, a = Dc(Hc, n), o = Bc(Hc, n), { onThumbPositionChange: s } = o, c = ct(t, (e) => o.onThumbChange(e)), l = G.useRef(void 0), u = nl(() => {
|
|
2786
2786
|
l.current &&= (l.current(), void 0);
|
|
2787
2787
|
}, 100);
|
|
2788
2788
|
return G.useEffect(() => {
|
|
@@ -2797,7 +2797,7 @@ var Nc = G.forwardRef((e, t) => {
|
|
|
2797
2797
|
a.viewport,
|
|
2798
2798
|
u,
|
|
2799
2799
|
s
|
|
2800
|
-
]), /* @__PURE__ */ q(
|
|
2800
|
+
]), /* @__PURE__ */ q(L.div, {
|
|
2801
2801
|
"data-state": o.hasThumb ? "visible" : "hidden",
|
|
2802
2802
|
...i,
|
|
2803
2803
|
ref: c,
|
|
@@ -2833,7 +2833,7 @@ var qc = G.forwardRef((e, t) => {
|
|
|
2833
2833
|
}), rl(i.scrollbarY, () => {
|
|
2834
2834
|
let e = i.scrollbarY?.offsetWidth || 0;
|
|
2835
2835
|
i.onCornerWidthChange(e), o(e);
|
|
2836
|
-
}), l ? /* @__PURE__ */ q(
|
|
2836
|
+
}), l ? /* @__PURE__ */ q(L.div, {
|
|
2837
2837
|
...r,
|
|
2838
2838
|
ref: t,
|
|
2839
2839
|
style: {
|
|
@@ -2890,13 +2890,13 @@ var tl = (e, t = () => {}) => {
|
|
|
2890
2890
|
})(), () => window.cancelAnimationFrame(r);
|
|
2891
2891
|
};
|
|
2892
2892
|
function nl(e, t) {
|
|
2893
|
-
let n =
|
|
2893
|
+
let n = Fe(e), r = G.useRef(0);
|
|
2894
2894
|
return G.useEffect(() => () => window.clearTimeout(r.current), []), G.useCallback(() => {
|
|
2895
2895
|
window.clearTimeout(r.current), r.current = window.setTimeout(n, t);
|
|
2896
2896
|
}, [n, t]);
|
|
2897
2897
|
}
|
|
2898
2898
|
function rl(e, t) {
|
|
2899
|
-
let n =
|
|
2899
|
+
let n = Fe(t);
|
|
2900
2900
|
o(() => {
|
|
2901
2901
|
let t = 0;
|
|
2902
2902
|
if (e) {
|
|
@@ -3428,37 +3428,23 @@ var Ql = W("aivex:flex aivex:w-full aivex:border aivex:bg-bg-primary aivex:trans
|
|
|
3428
3428
|
layout: "inline"
|
|
3429
3429
|
}
|
|
3430
3430
|
});
|
|
3431
|
-
function $l({
|
|
3432
|
-
let
|
|
3431
|
+
function $l({ error: e, disabled: t, focused: n, filled: r, size: i = "md", layout: a = "inline", startContent: o, endContent: s, className: c, children: l }) {
|
|
3432
|
+
let u = t ? "disabled" : e ? "error" : n ? "focused" : r ? "filled" : "default", d = R("aivex:flex aivex:shrink-0 aivex:items-center aivex:justify-center aivex:gap-xs", i === "sm" ? "aivex:size-4 aivex:[&_svg]:size-4" : "aivex:size-5 aivex:[&_svg]:size-5", u === "disabled" ? "aivex:text-text-disabled" : u === "default" ? "aivex:text-icon-tertiary" : "aivex:text-icon-secondary");
|
|
3433
3433
|
return /* @__PURE__ */ J("div", {
|
|
3434
|
-
className: R(
|
|
3434
|
+
className: R(Ql({
|
|
3435
|
+
state: u,
|
|
3436
|
+
size: i,
|
|
3437
|
+
layout: a
|
|
3438
|
+
}), c),
|
|
3435
3439
|
children: [
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
children: t
|
|
3440
|
-
}),
|
|
3441
|
-
/* @__PURE__ */ J("div", {
|
|
3442
|
-
className: R(Ql({
|
|
3443
|
-
state: m,
|
|
3444
|
-
size: s,
|
|
3445
|
-
layout: c
|
|
3446
|
-
}), d),
|
|
3447
|
-
children: [
|
|
3448
|
-
l && /* @__PURE__ */ q("span", {
|
|
3449
|
-
className: h,
|
|
3450
|
-
children: l
|
|
3451
|
-
}),
|
|
3452
|
-
p,
|
|
3453
|
-
u && /* @__PURE__ */ q("span", {
|
|
3454
|
-
className: h,
|
|
3455
|
-
children: u
|
|
3456
|
-
})
|
|
3457
|
-
]
|
|
3440
|
+
o && /* @__PURE__ */ q("span", {
|
|
3441
|
+
className: d,
|
|
3442
|
+
children: o
|
|
3458
3443
|
}),
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3444
|
+
l,
|
|
3445
|
+
s && /* @__PURE__ */ q("span", {
|
|
3446
|
+
className: d,
|
|
3447
|
+
children: s
|
|
3462
3448
|
})
|
|
3463
3449
|
]
|
|
3464
3450
|
});
|
|
@@ -3595,45 +3581,45 @@ function xu(e) {
|
|
|
3595
3581
|
return !e || e instanceof Date ? null : e.start instanceof Date && e.end instanceof Date ? e : null;
|
|
3596
3582
|
}
|
|
3597
3583
|
function Su(e) {
|
|
3598
|
-
let { size: t = "md", placeholder: n = "날짜 선택",
|
|
3584
|
+
let { size: t = "md", placeholder: n = "날짜 선택", error: r, disabled: i = !1, id: a, "aria-describedby": o, "aria-invalid": s, markedDates: c, minDate: l, maxDate: u, disabledDate: d, title: f = "기간 설정", startTimeLabel: p = "시작 시점", endTimeLabel: m = "종료 시점", resetLabel: h = "초기화", applyLabel: g = "적용하기", weekdayLabels: _, formatMonthTitle: v, defaultMonth: y, className: b } = e, x = e.time ?? "none", S = e.timePrecision ?? "second", C = e.endBoundary ?? "exact", w = e.date === "range", T = e.defaultStartTime ? $(pu(e.defaultStartTime), S) : uu, E = e.defaultEndTime ? $(pu(e.defaultEndTime), S) : du(S), D = !w && x === "range", O = w && x === "single", k = x !== "none", A = e.numberOfMonths ?? (w ? 2 : 1), [j, M] = K(!1), [ee, te] = K(!1), [N, P] = K(() => {
|
|
3599
3585
|
let t = e.value ?? e.defaultValue;
|
|
3600
|
-
return Wl((t == null ? null : t instanceof Date ? t : t.start) ??
|
|
3601
|
-
}), [
|
|
3586
|
+
return Wl((t == null ? null : t instanceof Date ? t : t.start) ?? y ?? /* @__PURE__ */ new Date());
|
|
3587
|
+
}), [F, I] = K(null), [ne, re] = K(null), [ie, ae] = K(T), [oe, se] = K(E), ce = (t) => {
|
|
3602
3588
|
if (t) if (e.date === "range") {
|
|
3603
|
-
let t = xu(e.value ?? e.defaultValue), n = t &&
|
|
3604
|
-
|
|
3589
|
+
let t = xu(e.value ?? e.defaultValue), n = t && C === "exclusive" && x !== "single" ? /* @__PURE__ */ new Date(t.end.getTime() - 1) : t?.end ?? null;
|
|
3590
|
+
I(t ? Bl(t.start) : null), re(n ? Bl(n) : null), ae(t ? $(yu(t.start), S) : T), se(n ? $(yu(n), S) : E), t && P(Wl(t.start));
|
|
3605
3591
|
} else if (e.time === "range") {
|
|
3606
|
-
let t = xu(e.value ?? e.defaultValue), n = t &&
|
|
3607
|
-
|
|
3592
|
+
let t = xu(e.value ?? e.defaultValue), n = t && C === "exclusive" ? /* @__PURE__ */ new Date(t.end.getTime() - 1) : t?.end ?? null;
|
|
3593
|
+
I(t ? Bl(t.start) : null), re(null), ae(t ? $(yu(t.start), S) : T), se(n ? $(yu(n), S) : E), t && P(Wl(t.start));
|
|
3608
3594
|
} else {
|
|
3609
3595
|
let t = bu(e.value ?? e.defaultValue);
|
|
3610
|
-
|
|
3596
|
+
I(t ? Bl(t) : null), re(null), ae(t ? $(yu(t), S) : T), t && P(Wl(t));
|
|
3611
3597
|
}
|
|
3612
|
-
|
|
3598
|
+
M(t);
|
|
3613
3599
|
}, le = (e) => {
|
|
3614
|
-
if (!
|
|
3615
|
-
|
|
3600
|
+
if (!w) {
|
|
3601
|
+
I(e);
|
|
3616
3602
|
return;
|
|
3617
3603
|
}
|
|
3618
|
-
!
|
|
3604
|
+
!F || F && ne ? (I(e), re(null)) : Hl(e, F) ? I(e) : re(e);
|
|
3619
3605
|
}, ue = (e) => {
|
|
3620
3606
|
let t = e();
|
|
3621
|
-
t instanceof Date ? (
|
|
3607
|
+
t instanceof Date ? (I(Bl(t)), re(null), ae($(yu(t), S)), P(Wl(t))) : (I(Bl(t.start)), re(w ? Bl(t.end) : null), ae($(yu(t.start), S)), se($(yu(t.end), S)), P(Wl(t.start)));
|
|
3622
3608
|
}, de = () => {
|
|
3623
|
-
|
|
3609
|
+
I(null), re(null), ae(T), se(E);
|
|
3624
3610
|
}, fe = () => {
|
|
3625
|
-
let t = $(ie,
|
|
3611
|
+
let t = $(ie, S), n = $(oe, S);
|
|
3626
3612
|
if (e.date === "range") {
|
|
3627
3613
|
let r = e.onChange;
|
|
3628
|
-
if (!
|
|
3614
|
+
if (!F) r?.(null);
|
|
3629
3615
|
else {
|
|
3630
|
-
let e = ne ??
|
|
3631
|
-
if (
|
|
3632
|
-
else if (
|
|
3616
|
+
let e = ne ?? F, [i, a] = Ul(F, e) ? [e, F] : [F, e], o, s;
|
|
3617
|
+
if (x === "none") o = ql(i, T), s = hu(ql(a, E), C, mu(S));
|
|
3618
|
+
else if (x === "single") o = ql(i, t), s = ql(a, t);
|
|
3633
3619
|
else {
|
|
3634
3620
|
o = ql(i, t);
|
|
3635
3621
|
let e = ql(a, n);
|
|
3636
|
-
e < o && ([o, e] = [e, o]), s = hu(e,
|
|
3622
|
+
e < o && ([o, e] = [e, o]), s = hu(e, C, mu(S));
|
|
3637
3623
|
}
|
|
3638
3624
|
r?.({
|
|
3639
3625
|
start: o,
|
|
@@ -3642,152 +3628,140 @@ function Su(e) {
|
|
|
3642
3628
|
}
|
|
3643
3629
|
} else if (e.time === "range") {
|
|
3644
3630
|
let r = e.onChange;
|
|
3645
|
-
if (!
|
|
3631
|
+
if (!F) r?.(null);
|
|
3646
3632
|
else {
|
|
3647
|
-
let e = ql(
|
|
3633
|
+
let e = ql(F, t), i = ql(F, n);
|
|
3648
3634
|
i < e && ([e, i] = [i, e]), r?.({
|
|
3649
3635
|
start: e,
|
|
3650
|
-
end: hu(i,
|
|
3636
|
+
end: hu(i, C, mu(S))
|
|
3651
3637
|
});
|
|
3652
3638
|
}
|
|
3653
3639
|
} else {
|
|
3654
3640
|
let n = e.onChange;
|
|
3655
|
-
|
|
3641
|
+
F ? n?.(k ? ql(F, t) : Bl(F)) : n?.(null);
|
|
3656
3642
|
}
|
|
3657
|
-
|
|
3643
|
+
M(!1);
|
|
3658
3644
|
}, pe = () => {
|
|
3659
3645
|
if (e.date === "range") {
|
|
3660
3646
|
let t = xu(e.value);
|
|
3661
|
-
return t ? e.formatValue ? e.formatValue(t) : `${_u(t.start,
|
|
3647
|
+
return t ? e.formatValue ? e.formatValue(t) : `${_u(t.start, k)} ~ ${_u(t.end, k)}` : null;
|
|
3662
3648
|
}
|
|
3663
3649
|
if (e.time === "range") {
|
|
3664
3650
|
let t = xu(e.value);
|
|
3665
3651
|
return t ? e.formatValue ? e.formatValue(t) : `${_u(t.start, !1)} ${gu(t.start)} ~ ${gu(t.end)}` : null;
|
|
3666
3652
|
}
|
|
3667
3653
|
let t = bu(e.value);
|
|
3668
|
-
return t ? e.formatValue ? e.formatValue(t) : _u(t,
|
|
3669
|
-
}, me = (e) => e.h * 3600 + e.m * 60 + e.s, he =
|
|
3670
|
-
selected:
|
|
3671
|
-
rangeStart:
|
|
3672
|
-
rangeEnd:
|
|
3654
|
+
return t ? e.formatValue ? e.formatValue(t) : _u(t, k) : null;
|
|
3655
|
+
}, me = (e) => e.h * 3600 + e.m * 60 + e.s, he = w && F !== null && ne === null, ge = w && x === "range" && F !== null && ne !== null && Vl(F, ne) && me($(oe, S)) < me($(ie, S)), _e = D && me($(oe, S)) < me($(ie, S)), ve = he || ge || _e, ye = pe(), be = t === "sm" ? 16 : 20, xe = Gl(N, 1), Ce = {
|
|
3656
|
+
selected: w ? void 0 : F,
|
|
3657
|
+
rangeStart: w ? F : void 0,
|
|
3658
|
+
rangeEnd: w ? ne : void 0,
|
|
3673
3659
|
onSelectDay: le,
|
|
3674
|
-
markedDates:
|
|
3675
|
-
minDate:
|
|
3676
|
-
maxDate:
|
|
3677
|
-
disabledDate:
|
|
3678
|
-
weekdayLabels:
|
|
3679
|
-
formatMonthTitle:
|
|
3680
|
-
};
|
|
3681
|
-
return /* @__PURE__ */ J(
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
size: t,
|
|
3707
|
-
layout: "inline",
|
|
3708
|
-
startContent: /* @__PURE__ */ q(In, { size: be }),
|
|
3709
|
-
children: /* @__PURE__ */ q("span", {
|
|
3710
|
-
className: R("aivex:flex-1 aivex:min-w-0 aivex:truncate", t === "sm" ? "aivex:text-body-md-regular" : "aivex:text-body-lg-regular", ye ? "aivex:text-text-primary" : "aivex:text-text-tertiary"),
|
|
3711
|
-
children: ye ?? n
|
|
3712
|
-
})
|
|
3713
|
-
})
|
|
3660
|
+
markedDates: c,
|
|
3661
|
+
minDate: l,
|
|
3662
|
+
maxDate: u,
|
|
3663
|
+
disabledDate: d,
|
|
3664
|
+
weekdayLabels: _,
|
|
3665
|
+
formatMonthTitle: v
|
|
3666
|
+
}, we = r || s === !0 || s === "true";
|
|
3667
|
+
return /* @__PURE__ */ J(lu, {
|
|
3668
|
+
open: j,
|
|
3669
|
+
onOpenChange: ce,
|
|
3670
|
+
children: [/* @__PURE__ */ q(lu.Trigger, {
|
|
3671
|
+
asChild: !0,
|
|
3672
|
+
disabled: i,
|
|
3673
|
+
children: /* @__PURE__ */ q("button", {
|
|
3674
|
+
type: "button",
|
|
3675
|
+
id: a,
|
|
3676
|
+
"aria-describedby": o,
|
|
3677
|
+
"aria-invalid": we || void 0,
|
|
3678
|
+
onFocus: () => te(!0),
|
|
3679
|
+
onBlur: () => te(!1),
|
|
3680
|
+
className: R("aivex:w-full aivex:cursor-pointer aivex:rounded-md aivex:text-left aivex:outline-none", i && "aivex:cursor-not-allowed", b),
|
|
3681
|
+
children: /* @__PURE__ */ q($l, {
|
|
3682
|
+
disabled: i,
|
|
3683
|
+
focused: j || ee,
|
|
3684
|
+
error: we,
|
|
3685
|
+
filled: !!ye,
|
|
3686
|
+
size: t,
|
|
3687
|
+
layout: "inline",
|
|
3688
|
+
startContent: /* @__PURE__ */ q(In, { size: be }),
|
|
3689
|
+
children: /* @__PURE__ */ q("span", {
|
|
3690
|
+
className: R("aivex:flex-1 aivex:min-w-0 aivex:truncate", t === "sm" ? "aivex:text-body-md-regular" : "aivex:text-body-lg-regular", ye ? "aivex:text-text-primary" : "aivex:text-text-tertiary"),
|
|
3691
|
+
children: ye ?? n
|
|
3714
3692
|
})
|
|
3715
|
-
})
|
|
3716
|
-
|
|
3717
|
-
|
|
3693
|
+
})
|
|
3694
|
+
})
|
|
3695
|
+
}), /* @__PURE__ */ J(lu.Content, {
|
|
3696
|
+
className: "aivex:w-auto aivex:max-h-none aivex:gap-2xl aivex:rounded-2xl aivex:p-2xl",
|
|
3697
|
+
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
3698
|
+
children: [
|
|
3699
|
+
/* @__PURE__ */ q(lu.Title, { children: f }),
|
|
3700
|
+
/* @__PURE__ */ J("div", {
|
|
3701
|
+
className: "aivex:flex aivex:gap-3xl",
|
|
3702
|
+
children: [/* @__PURE__ */ q(Xl, {
|
|
3703
|
+
month: N,
|
|
3704
|
+
onPrevMonth: () => P(Gl(N, -1)),
|
|
3705
|
+
onNextMonth: A === 1 ? () => P(Gl(N, 1)) : void 0,
|
|
3706
|
+
...Ce
|
|
3707
|
+
}), A === 2 && /* @__PURE__ */ q(Xl, {
|
|
3708
|
+
month: xe,
|
|
3709
|
+
onNextMonth: () => P(Gl(N, 1)),
|
|
3710
|
+
...Ce
|
|
3711
|
+
})]
|
|
3712
|
+
}),
|
|
3713
|
+
k && /* @__PURE__ */ J("div", {
|
|
3714
|
+
className: R("aivex:flex aivex:w-full aivex:gap-3xl", A === 1 && "aivex:flex-col aivex:gap-lg"),
|
|
3715
|
+
children: [/* @__PURE__ */ q(Cu, {
|
|
3716
|
+
label: p,
|
|
3717
|
+
date: F,
|
|
3718
|
+
time: ie,
|
|
3719
|
+
precision: S,
|
|
3720
|
+
onTimeChange: ae
|
|
3721
|
+
}), (w || D) && /* @__PURE__ */ q(Cu, {
|
|
3722
|
+
label: m,
|
|
3723
|
+
date: w ? ne ?? F : F,
|
|
3724
|
+
time: oe,
|
|
3725
|
+
precision: S,
|
|
3726
|
+
showTimeFields: !O,
|
|
3727
|
+
onTimeChange: se
|
|
3728
|
+
})]
|
|
3729
|
+
}),
|
|
3730
|
+
/* @__PURE__ */ q("div", { className: "aivex:w-full aivex:border-t aivex:border-border-subtle" }),
|
|
3731
|
+
/* @__PURE__ */ J("div", {
|
|
3732
|
+
className: "aivex:flex aivex:w-full aivex:items-center aivex:gap-md",
|
|
3718
3733
|
children: [
|
|
3719
|
-
/* @__PURE__ */ q(
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
onNextMonth: () => N(Gl(M, 1)),
|
|
3730
|
-
...Se
|
|
3731
|
-
})]
|
|
3734
|
+
/* @__PURE__ */ q("div", {
|
|
3735
|
+
className: "aivex:flex aivex:min-w-0 aivex:flex-1 aivex:items-center aivex:gap-sm",
|
|
3736
|
+
children: e.presets?.map((e, t) => /* @__PURE__ */ q(fi, {
|
|
3737
|
+
variant: "solid",
|
|
3738
|
+
color: "secondary",
|
|
3739
|
+
size: "md",
|
|
3740
|
+
className: "aivex:rounded-sm aivex:text-label-md aivex:min-w-[72px]",
|
|
3741
|
+
onClick: () => ue(e.getValue),
|
|
3742
|
+
children: e.label
|
|
3743
|
+
}, t))
|
|
3732
3744
|
}),
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
onTimeChange: ae
|
|
3741
|
-
}), (C || E) && /* @__PURE__ */ q(Cu, {
|
|
3742
|
-
label: p,
|
|
3743
|
-
date: C ? ne ?? P : P,
|
|
3744
|
-
time: oe,
|
|
3745
|
-
precision: x,
|
|
3746
|
-
showTimeFields: !D,
|
|
3747
|
-
onTimeChange: se
|
|
3748
|
-
})]
|
|
3745
|
+
/* @__PURE__ */ q(fi, {
|
|
3746
|
+
variant: "ghost",
|
|
3747
|
+
color: "secondary",
|
|
3748
|
+
size: "md",
|
|
3749
|
+
startContent: /* @__PURE__ */ q(Se, { size: 20 }),
|
|
3750
|
+
onClick: de,
|
|
3751
|
+
children: h
|
|
3749
3752
|
}),
|
|
3750
|
-
/* @__PURE__ */ q(
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
variant: "solid",
|
|
3758
|
-
color: "secondary",
|
|
3759
|
-
size: "md",
|
|
3760
|
-
className: "aivex:rounded-sm aivex:text-label-md aivex:min-w-[72px]",
|
|
3761
|
-
onClick: () => ue(e.getValue),
|
|
3762
|
-
children: e.label
|
|
3763
|
-
}, t))
|
|
3764
|
-
}),
|
|
3765
|
-
/* @__PURE__ */ q(fi, {
|
|
3766
|
-
variant: "ghost",
|
|
3767
|
-
color: "secondary",
|
|
3768
|
-
size: "md",
|
|
3769
|
-
startContent: /* @__PURE__ */ q(Ce, { size: 20 }),
|
|
3770
|
-
onClick: de,
|
|
3771
|
-
children: m
|
|
3772
|
-
}),
|
|
3773
|
-
/* @__PURE__ */ q(fi, {
|
|
3774
|
-
variant: "solid",
|
|
3775
|
-
color: "primary",
|
|
3776
|
-
size: "md",
|
|
3777
|
-
disabled: ve,
|
|
3778
|
-
onClick: fe,
|
|
3779
|
-
children: h
|
|
3780
|
-
})
|
|
3781
|
-
]
|
|
3753
|
+
/* @__PURE__ */ q(fi, {
|
|
3754
|
+
variant: "solid",
|
|
3755
|
+
color: "primary",
|
|
3756
|
+
size: "md",
|
|
3757
|
+
disabled: ve,
|
|
3758
|
+
onClick: fe,
|
|
3759
|
+
children: g
|
|
3782
3760
|
})
|
|
3783
3761
|
]
|
|
3784
|
-
})
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
className: R("aivex:text-caption-md aivex:text-text-secondary aivex:line-clamp-2", !o && a && "aivex:text-text-danger"),
|
|
3788
|
-
children: i
|
|
3789
|
-
})
|
|
3790
|
-
]
|
|
3762
|
+
})
|
|
3763
|
+
]
|
|
3764
|
+
})]
|
|
3791
3765
|
});
|
|
3792
3766
|
}
|
|
3793
3767
|
function Cu({ label: e, date: t, time: n, precision: r, showTimeFields: i = !0, onTimeChange: a }) {
|
|
@@ -3869,7 +3843,7 @@ function Tu({ value: e, max: t, ariaLabel: n, disabled: r, onChange: i }) {
|
|
|
3869
3843
|
}
|
|
3870
3844
|
//#endregion
|
|
3871
3845
|
//#region node_modules/.pnpm/@radix-ui+react-dialog@1.1.15_@types+react-dom@19.2.3_@types+react@19.2.14__@types+reac_2bb6e144a4a4887664c34982a66175eb/node_modules/@radix-ui/react-dialog/dist/index.mjs
|
|
3872
|
-
var Eu = "Dialog", [Du, Ou] =
|
|
3846
|
+
var Eu = "Dialog", [Du, Ou] = me(Eu), [ku, Au] = Du(Eu), ju = (e) => {
|
|
3873
3847
|
let { __scopeDialog: t, children: n, open: r, defaultOpen: i, onOpenChange: a, modal: o = !0 } = e, s = G.useRef(null), c = G.useRef(null), [l, u] = Dn({
|
|
3874
3848
|
prop: r,
|
|
3875
3849
|
defaultProp: i ?? !1,
|
|
@@ -3892,8 +3866,8 @@ var Eu = "Dialog", [Du, Ou] = he(Eu), [ku, Au] = Du(Eu), ju = (e) => {
|
|
|
3892
3866
|
};
|
|
3893
3867
|
ju.displayName = Eu;
|
|
3894
3868
|
var Mu = "DialogTrigger", Nu = G.forwardRef((e, t) => {
|
|
3895
|
-
let { __scopeDialog: n, ...r } = e, i = Au(Mu, n), a =
|
|
3896
|
-
return /* @__PURE__ */ q(
|
|
3869
|
+
let { __scopeDialog: n, ...r } = e, i = Au(Mu, n), a = ct(t, i.triggerRef);
|
|
3870
|
+
return /* @__PURE__ */ q(L.button, {
|
|
3897
3871
|
type: "button",
|
|
3898
3872
|
"aria-haspopup": "dialog",
|
|
3899
3873
|
"aria-expanded": i.open,
|
|
@@ -3938,7 +3912,7 @@ var Bu = Ia("DialogOverlay.RemoveScroll"), Vu = G.forwardRef((e, t) => {
|
|
|
3938
3912
|
as: Bu,
|
|
3939
3913
|
allowPinchZoom: !0,
|
|
3940
3914
|
shards: [i.contentRef],
|
|
3941
|
-
children: /* @__PURE__ */ q(
|
|
3915
|
+
children: /* @__PURE__ */ q(L.div, {
|
|
3942
3916
|
"data-state": $u(i.open),
|
|
3943
3917
|
...r,
|
|
3944
3918
|
ref: t,
|
|
@@ -3963,7 +3937,7 @@ var Bu = Ia("DialogOverlay.RemoveScroll"), Vu = G.forwardRef((e, t) => {
|
|
|
3963
3937
|
});
|
|
3964
3938
|
Uu.displayName = Hu;
|
|
3965
3939
|
var Wu = G.forwardRef((e, t) => {
|
|
3966
|
-
let n = Au(Hu, e.__scopeDialog), r = G.useRef(null), i =
|
|
3940
|
+
let n = Au(Hu, e.__scopeDialog), r = G.useRef(null), i = ct(t, n.contentRef, r);
|
|
3967
3941
|
return G.useEffect(() => {
|
|
3968
3942
|
let e = r.current;
|
|
3969
3943
|
if (e) return aa(e);
|
|
@@ -3998,7 +3972,7 @@ var Wu = G.forwardRef((e, t) => {
|
|
|
3998
3972
|
}
|
|
3999
3973
|
});
|
|
4000
3974
|
}), Ku = G.forwardRef((e, t) => {
|
|
4001
|
-
let { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, ...o } = e, s = Au(Hu, n), c = G.useRef(null), l =
|
|
3975
|
+
let { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, ...o } = e, s = Au(Hu, n), c = G.useRef(null), l = ct(t, c);
|
|
4002
3976
|
return ia(), /* @__PURE__ */ J(Na, { children: [/* @__PURE__ */ q(ba, {
|
|
4003
3977
|
asChild: !0,
|
|
4004
3978
|
loop: !0,
|
|
@@ -4021,7 +3995,7 @@ var Wu = G.forwardRef((e, t) => {
|
|
|
4021
3995
|
})] })] });
|
|
4022
3996
|
}), qu = "DialogTitle", Ju = G.forwardRef((e, t) => {
|
|
4023
3997
|
let { __scopeDialog: n, ...r } = e, i = Au(qu, n);
|
|
4024
|
-
return /* @__PURE__ */ q(
|
|
3998
|
+
return /* @__PURE__ */ q(L.h2, {
|
|
4025
3999
|
id: i.titleId,
|
|
4026
4000
|
...r,
|
|
4027
4001
|
ref: t
|
|
@@ -4030,7 +4004,7 @@ var Wu = G.forwardRef((e, t) => {
|
|
|
4030
4004
|
Ju.displayName = qu;
|
|
4031
4005
|
var Yu = "DialogDescription", Xu = G.forwardRef((e, t) => {
|
|
4032
4006
|
let { __scopeDialog: n, ...r } = e, i = Au(Yu, n);
|
|
4033
|
-
return /* @__PURE__ */ q(
|
|
4007
|
+
return /* @__PURE__ */ q(L.p, {
|
|
4034
4008
|
id: i.descriptionId,
|
|
4035
4009
|
...r,
|
|
4036
4010
|
ref: t
|
|
@@ -4039,7 +4013,7 @@ var Yu = "DialogDescription", Xu = G.forwardRef((e, t) => {
|
|
|
4039
4013
|
Xu.displayName = Yu;
|
|
4040
4014
|
var Zu = "DialogClose", Qu = G.forwardRef((e, t) => {
|
|
4041
4015
|
let { __scopeDialog: n, ...r } = e, i = Au(Zu, n);
|
|
4042
|
-
return /* @__PURE__ */ q(
|
|
4016
|
+
return /* @__PURE__ */ q(L.button, {
|
|
4043
4017
|
type: "button",
|
|
4044
4018
|
...r,
|
|
4045
4019
|
ref: t,
|
|
@@ -4073,7 +4047,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
4073
4047
|
e,
|
|
4074
4048
|
t
|
|
4075
4049
|
]), null;
|
|
4076
|
-
}, od = ju, sd = Nu, cd = Lu, ld = zu, ud = Uu, dd = Ju, fd = Xu, pd = Qu, md = "AlertDialog", [hd, gd] =
|
|
4050
|
+
}, od = ju, sd = Nu, cd = Lu, ld = zu, ud = Uu, dd = Ju, fd = Xu, pd = Qu, md = "AlertDialog", [hd, gd] = me(md, [Ou]), _d = Ou(), vd = (e) => {
|
|
4077
4051
|
let { __scopeAlertDialog: t, ...n } = e;
|
|
4078
4052
|
return /* @__PURE__ */ q(od, {
|
|
4079
4053
|
..._d(t),
|
|
@@ -4109,7 +4083,7 @@ var Cd = "AlertDialogOverlay", wd = G.forwardRef((e, t) => {
|
|
|
4109
4083
|
});
|
|
4110
4084
|
wd.displayName = Cd;
|
|
4111
4085
|
var Td = "AlertDialogContent", [Ed, Dd] = hd(Td), Od = La("AlertDialogContent"), kd = G.forwardRef((e, t) => {
|
|
4112
|
-
let { __scopeAlertDialog: n, children: r, ...i } = e, a = _d(n), o = G.useRef(null), s =
|
|
4086
|
+
let { __scopeAlertDialog: n, children: r, ...i } = e, a = _d(n), o = G.useRef(null), s = ct(t, o), c = G.useRef(null);
|
|
4113
4087
|
return /* @__PURE__ */ q(td, {
|
|
4114
4088
|
contentName: Td,
|
|
4115
4089
|
titleName: Ad,
|
|
@@ -4161,7 +4135,7 @@ var Pd = "AlertDialogAction", Fd = G.forwardRef((e, t) => {
|
|
|
4161
4135
|
});
|
|
4162
4136
|
Fd.displayName = Pd;
|
|
4163
4137
|
var Id = "AlertDialogCancel", Ld = G.forwardRef((e, t) => {
|
|
4164
|
-
let { __scopeAlertDialog: n, ...r } = e, { cancelRef: i } = Dd(Id, n), a = _d(n), o =
|
|
4138
|
+
let { __scopeAlertDialog: n, ...r } = e, { cancelRef: i } = Dd(Id, n), a = _d(n), o = ct(t, i);
|
|
4165
4139
|
return /* @__PURE__ */ q(pd, {
|
|
4166
4140
|
...a,
|
|
4167
4141
|
...r,
|
|
@@ -4406,44 +4380,57 @@ var lf = Ta(!1), uf = {
|
|
|
4406
4380
|
xl: "aivex:max-w-[960px]",
|
|
4407
4381
|
full: "aivex:h-[calc(100dvh-32px)] aivex:max-w-[calc(100vw-32px)]"
|
|
4408
4382
|
}, df = R("aivex:flex aivex:max-h-[80dvh] aivex:w-[85vw] aivex:flex-col aivex:gap-2xl aivex:overflow-hidden aivex:p-2xl", "aivex:rounded-2xl aivex:border aivex:border-border-subtle aivex:bg-bg-primary aivex:shadow-xl aivex:outline-none"), ff = "aivex:flex aivex:w-full aivex:flex-col aivex:gap-xs";
|
|
4409
|
-
function pf({ title: e, titleId: t, description: n,
|
|
4410
|
-
let
|
|
4383
|
+
function pf({ title: e, titleId: t, description: n, headingButton: r, onClose: i, closeAriaLabel: a = "Close modal", ref: o, ...s }) {
|
|
4384
|
+
let c = ka(lf), l = /* @__PURE__ */ q("h2", {
|
|
4411
4385
|
...t ? { id: t } : {},
|
|
4412
4386
|
className: "aivex:m-0 aivex:whitespace-pre-line aivex:text-heading-xs aivex:text-text-primary aivex:break-words",
|
|
4413
4387
|
children: e
|
|
4414
|
-
}),
|
|
4388
|
+
}), u = n ? /* @__PURE__ */ q("p", {
|
|
4415
4389
|
className: "aivex:m-0 aivex:whitespace-pre-line aivex:text-body-md-regular aivex:text-text-secondary aivex:break-words",
|
|
4416
4390
|
children: n
|
|
4417
|
-
}) : null,
|
|
4391
|
+
}) : null, d = /* @__PURE__ */ q(na, {
|
|
4418
4392
|
size: "md",
|
|
4419
|
-
onClick:
|
|
4393
|
+
onClick: i,
|
|
4420
4394
|
className: "aivex:shrink-0",
|
|
4421
|
-
"aria-label":
|
|
4395
|
+
"aria-label": a,
|
|
4422
4396
|
children: /* @__PURE__ */ q(Bi, { size: 24 })
|
|
4423
|
-
});
|
|
4397
|
+
}), f = r ? /* @__PURE__ */ q(mf, { button: r }) : null;
|
|
4424
4398
|
return /* @__PURE__ */ J("div", {
|
|
4425
|
-
ref:
|
|
4399
|
+
ref: o,
|
|
4426
4400
|
className: ff,
|
|
4427
|
-
...
|
|
4401
|
+
...s,
|
|
4428
4402
|
children: [/* @__PURE__ */ J("div", {
|
|
4429
|
-
className: "aivex:flex aivex:w-full aivex:items-
|
|
4430
|
-
children: [
|
|
4431
|
-
|
|
4432
|
-
|
|
4403
|
+
className: "aivex:flex aivex:w-full aivex:items-center aivex:justify-center aivex:gap-md",
|
|
4404
|
+
children: [
|
|
4405
|
+
f,
|
|
4406
|
+
/* @__PURE__ */ q("div", {
|
|
4407
|
+
className: "aivex:flex aivex:min-w-0 aivex:flex-1 aivex:flex-col aivex:justify-center",
|
|
4408
|
+
children: c ? /* @__PURE__ */ q(dd, {
|
|
4409
|
+
asChild: !0,
|
|
4410
|
+
children: l
|
|
4411
|
+
}) : l
|
|
4412
|
+
}),
|
|
4413
|
+
i ? d : c && /* @__PURE__ */ q(pd, {
|
|
4433
4414
|
asChild: !0,
|
|
4434
|
-
children:
|
|
4435
|
-
})
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
children: u
|
|
4439
|
-
})]
|
|
4440
|
-
}), s && l ? /* @__PURE__ */ q(fd, {
|
|
4415
|
+
children: d
|
|
4416
|
+
})
|
|
4417
|
+
]
|
|
4418
|
+
}), c && u ? /* @__PURE__ */ q(fd, {
|
|
4441
4419
|
asChild: !0,
|
|
4442
|
-
children:
|
|
4443
|
-
}) :
|
|
4420
|
+
children: u
|
|
4421
|
+
}) : u]
|
|
4422
|
+
});
|
|
4423
|
+
}
|
|
4424
|
+
function mf({ button: e }) {
|
|
4425
|
+
let { children: t, ...n } = e;
|
|
4426
|
+
return /* @__PURE__ */ q(na, {
|
|
4427
|
+
size: "md",
|
|
4428
|
+
className: "aivex:shrink-0",
|
|
4429
|
+
...n,
|
|
4430
|
+
children: t
|
|
4444
4431
|
});
|
|
4445
4432
|
}
|
|
4446
|
-
function
|
|
4433
|
+
function hf({ children: e, ref: t, ...n }) {
|
|
4447
4434
|
return /* @__PURE__ */ q("div", {
|
|
4448
4435
|
ref: t,
|
|
4449
4436
|
className: "aivex:min-h-0 aivex:flex-1 aivex:overflow-y-auto",
|
|
@@ -4451,14 +4438,14 @@ function mf({ children: e, ref: t, ...n }) {
|
|
|
4451
4438
|
children: e
|
|
4452
4439
|
});
|
|
4453
4440
|
}
|
|
4454
|
-
function
|
|
4441
|
+
function gf({ tertiaryButton: e, secondaryButton: t, primaryButton: n, ref: r, ...i }) {
|
|
4455
4442
|
return /* @__PURE__ */ J("div", {
|
|
4456
4443
|
ref: r,
|
|
4457
4444
|
className: "aivex:flex aivex:h-10 aivex:w-full aivex:items-center aivex:justify-end aivex:gap-lg",
|
|
4458
4445
|
...i,
|
|
4459
4446
|
children: [/* @__PURE__ */ q("div", {
|
|
4460
4447
|
className: "aivex:flex aivex:min-w-0 aivex:flex-1 aivex:items-center aivex:justify-start",
|
|
4461
|
-
children: e && /* @__PURE__ */ q(
|
|
4448
|
+
children: e && /* @__PURE__ */ q(_f, {
|
|
4462
4449
|
button: e,
|
|
4463
4450
|
variant: "ghost",
|
|
4464
4451
|
color: "secondary",
|
|
@@ -4466,12 +4453,12 @@ function hf({ tertiaryButton: e, secondaryButton: t, primaryButton: n, ref: r, .
|
|
|
4466
4453
|
})
|
|
4467
4454
|
}), /* @__PURE__ */ J("div", {
|
|
4468
4455
|
className: "aivex:flex aivex:shrink-0 aivex:items-center aivex:justify-end aivex:gap-lg",
|
|
4469
|
-
children: [t && /* @__PURE__ */ q(
|
|
4456
|
+
children: [t && /* @__PURE__ */ q(_f, {
|
|
4470
4457
|
button: t,
|
|
4471
4458
|
variant: "solid",
|
|
4472
4459
|
color: "secondary",
|
|
4473
4460
|
className: "aivex:min-w-[84px]"
|
|
4474
|
-
}), n && /* @__PURE__ */ q(
|
|
4461
|
+
}), n && /* @__PURE__ */ q(_f, {
|
|
4475
4462
|
button: n,
|
|
4476
4463
|
variant: "solid",
|
|
4477
4464
|
color: "primary",
|
|
@@ -4480,7 +4467,7 @@ function hf({ tertiaryButton: e, secondaryButton: t, primaryButton: n, ref: r, .
|
|
|
4480
4467
|
})]
|
|
4481
4468
|
});
|
|
4482
4469
|
}
|
|
4483
|
-
function
|
|
4470
|
+
function _f({ button: e, variant: t, color: n, className: r }) {
|
|
4484
4471
|
let { children: i, ...a } = e;
|
|
4485
4472
|
return /* @__PURE__ */ q(fi, {
|
|
4486
4473
|
variant: t,
|
|
@@ -4491,7 +4478,7 @@ function gf({ button: e, variant: t, color: n, className: r }) {
|
|
|
4491
4478
|
children: i
|
|
4492
4479
|
});
|
|
4493
4480
|
}
|
|
4494
|
-
function
|
|
4481
|
+
function vf({ open: e, defaultOpen: t, onOpenChange: n, children: r, size: i = "md", closeOnInteractOutside: a = !0, stopKeyboardPropagation: o = !0, onOpenAutoFocus: s, onInteractOutside: c, onKeyDown: l, ref: u, ...d }) {
|
|
4495
4482
|
return /* @__PURE__ */ q(od, {
|
|
4496
4483
|
open: e,
|
|
4497
4484
|
defaultOpen: t,
|
|
@@ -4514,57 +4501,59 @@ function _f({ open: e, defaultOpen: t, onOpenChange: n, children: r, size: i = "
|
|
|
4514
4501
|
})] })
|
|
4515
4502
|
});
|
|
4516
4503
|
}
|
|
4517
|
-
function
|
|
4518
|
-
let
|
|
4504
|
+
function yf({ title: e, description: t, headingButton: n, children: r, tertiaryButton: i, secondaryButton: a, primaryButton: o, size: s = "md", onClose: c, closeAriaLabel: l, ref: u }) {
|
|
4505
|
+
let d = ja(), f = !!(i || a || o);
|
|
4519
4506
|
return /* @__PURE__ */ J("div", {
|
|
4520
|
-
ref:
|
|
4507
|
+
ref: u,
|
|
4521
4508
|
role: "dialog",
|
|
4522
4509
|
"aria-modal": "true",
|
|
4523
|
-
"aria-labelledby":
|
|
4524
|
-
className: R(df, uf[
|
|
4510
|
+
"aria-labelledby": d,
|
|
4511
|
+
className: R(df, uf[s]),
|
|
4525
4512
|
children: [
|
|
4526
4513
|
/* @__PURE__ */ q(pf, {
|
|
4527
4514
|
title: e,
|
|
4528
|
-
titleId:
|
|
4515
|
+
titleId: d,
|
|
4529
4516
|
description: t,
|
|
4530
|
-
|
|
4531
|
-
|
|
4517
|
+
headingButton: n,
|
|
4518
|
+
onClose: c,
|
|
4519
|
+
closeAriaLabel: l
|
|
4532
4520
|
}),
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
tertiaryButton:
|
|
4536
|
-
secondaryButton:
|
|
4537
|
-
primaryButton:
|
|
4521
|
+
r && /* @__PURE__ */ q(hf, { children: r }),
|
|
4522
|
+
f && /* @__PURE__ */ q(gf, {
|
|
4523
|
+
tertiaryButton: i,
|
|
4524
|
+
secondaryButton: a,
|
|
4525
|
+
primaryButton: o
|
|
4538
4526
|
})
|
|
4539
4527
|
]
|
|
4540
4528
|
});
|
|
4541
4529
|
}
|
|
4542
|
-
function
|
|
4543
|
-
return /* @__PURE__ */ J(
|
|
4530
|
+
function bf({ open: e, defaultOpen: t, onOpenChange: n, title: r, description: i, headingButton: a, children: o, tertiaryButton: s, secondaryButton: c, primaryButton: l, size: u, closeOnInteractOutside: d, onOpenAutoFocus: f, closeAriaLabel: p }) {
|
|
4531
|
+
return /* @__PURE__ */ J(vf, {
|
|
4544
4532
|
open: e,
|
|
4545
4533
|
defaultOpen: t,
|
|
4546
4534
|
onOpenChange: n,
|
|
4547
|
-
size:
|
|
4548
|
-
closeOnInteractOutside:
|
|
4549
|
-
onOpenAutoFocus:
|
|
4535
|
+
size: u,
|
|
4536
|
+
closeOnInteractOutside: d,
|
|
4537
|
+
onOpenAutoFocus: f,
|
|
4550
4538
|
children: [
|
|
4551
4539
|
/* @__PURE__ */ q(pf, {
|
|
4552
4540
|
title: r,
|
|
4553
4541
|
description: i,
|
|
4554
|
-
|
|
4542
|
+
headingButton: a,
|
|
4543
|
+
closeAriaLabel: p
|
|
4555
4544
|
}),
|
|
4556
|
-
|
|
4557
|
-
!!(
|
|
4558
|
-
tertiaryButton:
|
|
4559
|
-
secondaryButton:
|
|
4560
|
-
primaryButton:
|
|
4545
|
+
o && /* @__PURE__ */ q(hf, { children: o }),
|
|
4546
|
+
!!(s || c || l) && /* @__PURE__ */ q(gf, {
|
|
4547
|
+
tertiaryButton: s,
|
|
4548
|
+
secondaryButton: c,
|
|
4549
|
+
primaryButton: l
|
|
4561
4550
|
})
|
|
4562
4551
|
]
|
|
4563
4552
|
});
|
|
4564
4553
|
}
|
|
4565
4554
|
//#endregion
|
|
4566
4555
|
//#region src/components/Tag/Tag.tsx
|
|
4567
|
-
var
|
|
4556
|
+
var xf = W("aivex:inline-flex aivex:items-center aivex:gap-[2px] aivex:rounded-full aivex:overflow-hidden", {
|
|
4568
4557
|
variants: {
|
|
4569
4558
|
size: {
|
|
4570
4559
|
sm: "aivex:min-h-6 aivex:px-[6px] aivex:py-[2px]",
|
|
@@ -4580,10 +4569,10 @@ var bf = W("aivex:inline-flex aivex:items-center aivex:gap-[2px] aivex:rounded-f
|
|
|
4580
4569
|
type: "default"
|
|
4581
4570
|
}
|
|
4582
4571
|
});
|
|
4583
|
-
function
|
|
4572
|
+
function Sf({ className: e, size: t = "sm", type: n = "default", startContent: r, showIcon: i = !1, disabled: a = !1, onRemove: o, children: s, ref: c, ...l }) {
|
|
4584
4573
|
return /* @__PURE__ */ J("div", {
|
|
4585
4574
|
ref: c,
|
|
4586
|
-
className: R(
|
|
4575
|
+
className: R(xf({
|
|
4587
4576
|
size: t,
|
|
4588
4577
|
type: n
|
|
4589
4578
|
}), a && "aivex:opacity-disable", e),
|
|
@@ -4615,7 +4604,7 @@ function xf({ className: e, size: t = "sm", type: n = "default", startContent: r
|
|
|
4615
4604
|
}
|
|
4616
4605
|
//#endregion
|
|
4617
4606
|
//#region src/components/FilterModal/FilterModal.tsx
|
|
4618
|
-
var
|
|
4607
|
+
var Cf = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", wf = Da(function({ open: e, onClose: t, onApply: n, options: r, values: i, title: a, clearLabel: o, applyLabel: s, emptyText: c }) {
|
|
4619
4608
|
let [l, u] = K(i), d = Ma(null), [f, p] = K(!1), m = Oa(() => {
|
|
4620
4609
|
let e = d.current;
|
|
4621
4610
|
e && p(e.scrollTop + e.clientHeight < e.scrollHeight - 1);
|
|
@@ -4652,7 +4641,7 @@ var Sf = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", Cf =
|
|
|
4652
4641
|
r,
|
|
4653
4642
|
e,
|
|
4654
4643
|
m
|
|
4655
|
-
]), /* @__PURE__ */ q(
|
|
4644
|
+
]), /* @__PURE__ */ q(bf, {
|
|
4656
4645
|
open: e,
|
|
4657
4646
|
onOpenChange: (e) => {
|
|
4658
4647
|
e || t();
|
|
@@ -4675,8 +4664,8 @@ var Sf = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", Cf =
|
|
|
4675
4664
|
onScroll: m,
|
|
4676
4665
|
className: "aivex:flex aivex:min-h-0 aivex:flex-col aivex:gap-2xl aivex:overflow-y-auto",
|
|
4677
4666
|
style: f ? {
|
|
4678
|
-
maskImage:
|
|
4679
|
-
WebkitMaskImage:
|
|
4667
|
+
maskImage: Cf,
|
|
4668
|
+
WebkitMaskImage: Cf
|
|
4680
4669
|
} : void 0,
|
|
4681
4670
|
children: r.map((e) => /* @__PURE__ */ q("div", {
|
|
4682
4671
|
className: "aivex:flex aivex:flex-col",
|
|
@@ -4710,7 +4699,7 @@ var Sf = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", Cf =
|
|
|
4710
4699
|
className: "aivex:shrink-0",
|
|
4711
4700
|
children: /* @__PURE__ */ q("div", {
|
|
4712
4701
|
className: "aivex:flex aivex:gap-md",
|
|
4713
|
-
children: g.map((e) => /* @__PURE__ */ q(
|
|
4702
|
+
children: g.map((e) => /* @__PURE__ */ q(Sf, {
|
|
4714
4703
|
size: "md",
|
|
4715
4704
|
startContent: e.icon,
|
|
4716
4705
|
onRemove: () => b(e.value),
|
|
@@ -4724,14 +4713,14 @@ var Sf = "linear-gradient(to bottom, #000 calc(100% - 24px), transparent)", Cf =
|
|
|
4724
4713
|
});
|
|
4725
4714
|
//#endregion
|
|
4726
4715
|
//#region src/components/Logo/index.tsx
|
|
4727
|
-
function
|
|
4716
|
+
function Tf(e, t) {
|
|
4728
4717
|
if (!Ea(e)) return;
|
|
4729
4718
|
let n = e.props;
|
|
4730
4719
|
typeof n.id == "string" && t.add(n.id);
|
|
4731
4720
|
let r = n.children;
|
|
4732
|
-
if (r != null) for (let e of Array.isArray(r) ? r : [r])
|
|
4721
|
+
if (r != null) for (let e of Array.isArray(r) ? r : [r]) Tf(e, t);
|
|
4733
4722
|
}
|
|
4734
|
-
function
|
|
4723
|
+
function Ef(e, t) {
|
|
4735
4724
|
if (!Ea(e)) return e;
|
|
4736
4725
|
let n = { ...e.props };
|
|
4737
4726
|
typeof n.id == "string" && t.has(n.id) && (n.id = t.get(n.id));
|
|
@@ -4744,20 +4733,20 @@ function Tf(e, t) {
|
|
|
4744
4733
|
}
|
|
4745
4734
|
let r = n.children;
|
|
4746
4735
|
return r != null && (n.children = (Array.isArray(r) ? r : [r]).map((e, n) => {
|
|
4747
|
-
let r =
|
|
4736
|
+
let r = Ef(e, t);
|
|
4748
4737
|
return Ea(r) && r.key == null ? wa(r, { key: n }) : r;
|
|
4749
4738
|
})), wa(e, n);
|
|
4750
4739
|
}
|
|
4751
|
-
function
|
|
4740
|
+
function Df(e) {
|
|
4752
4741
|
return (t) => {
|
|
4753
4742
|
let n = ja().replace(/:/g, ""), r = e(t), i = /* @__PURE__ */ new Set();
|
|
4754
|
-
if (
|
|
4743
|
+
if (Tf(r, i), i.size === 0) return r;
|
|
4755
4744
|
let a = /* @__PURE__ */ new Map();
|
|
4756
4745
|
for (let e of i) a.set(e, `${e}_${n}`);
|
|
4757
|
-
return
|
|
4746
|
+
return Ef(r, a);
|
|
4758
4747
|
};
|
|
4759
4748
|
}
|
|
4760
|
-
var
|
|
4749
|
+
var Of = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ J("svg", {
|
|
4761
4750
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4762
4751
|
viewBox: "0 0 251.366 52",
|
|
4763
4752
|
width: "251.366",
|
|
@@ -4798,7 +4787,7 @@ var Df = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ J("svg",
|
|
|
4798
4787
|
fill: e
|
|
4799
4788
|
})
|
|
4800
4789
|
]
|
|
4801
|
-
}),
|
|
4790
|
+
}), kf = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ J("svg", {
|
|
4802
4791
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4803
4792
|
viewBox: "0 0 105 24",
|
|
4804
4793
|
width: "105",
|
|
@@ -4958,7 +4947,7 @@ var Df = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ J("svg",
|
|
|
4958
4947
|
})
|
|
4959
4948
|
] })
|
|
4960
4949
|
]
|
|
4961
|
-
}),
|
|
4950
|
+
}), Af = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ J("svg", {
|
|
4962
4951
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4963
4952
|
viewBox: "0 0 127 24",
|
|
4964
4953
|
width: "127",
|
|
@@ -5168,7 +5157,7 @@ var Df = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ J("svg",
|
|
|
5168
5157
|
})
|
|
5169
5158
|
] })
|
|
5170
5159
|
]
|
|
5171
|
-
}),
|
|
5160
|
+
}), jf = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ J("svg", {
|
|
5172
5161
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5173
5162
|
viewBox: "0 0 127 24",
|
|
5174
5163
|
width: "127",
|
|
@@ -5336,7 +5325,7 @@ var Df = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ J("svg",
|
|
|
5336
5325
|
})
|
|
5337
5326
|
] })
|
|
5338
5327
|
]
|
|
5339
|
-
}),
|
|
5328
|
+
}), Mf = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ J("svg", {
|
|
5340
5329
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5341
5330
|
viewBox: "0 0 133 24",
|
|
5342
5331
|
width: "133",
|
|
@@ -5504,7 +5493,7 @@ var Df = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ J("svg",
|
|
|
5504
5493
|
})
|
|
5505
5494
|
] })
|
|
5506
5495
|
]
|
|
5507
|
-
}),
|
|
5496
|
+
}), Nf = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ J("svg", {
|
|
5508
5497
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5509
5498
|
viewBox: "0 0 24 24",
|
|
5510
5499
|
width: "24",
|
|
@@ -5619,7 +5608,7 @@ var Df = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ J("svg",
|
|
|
5619
5608
|
})
|
|
5620
5609
|
] })
|
|
5621
5610
|
]
|
|
5622
|
-
}),
|
|
5611
|
+
}), Pf = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ J("svg", {
|
|
5623
5612
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5624
5613
|
viewBox: "0 0 108 24",
|
|
5625
5614
|
width: "108",
|
|
@@ -5768,7 +5757,7 @@ var Df = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ J("svg",
|
|
|
5768
5757
|
})
|
|
5769
5758
|
] })
|
|
5770
5759
|
]
|
|
5771
|
-
}),
|
|
5760
|
+
}), Ff = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ J("svg", {
|
|
5772
5761
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5773
5762
|
viewBox: "0 0 100 24",
|
|
5774
5763
|
width: "100",
|
|
@@ -5907,7 +5896,7 @@ var Df = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ J("svg",
|
|
|
5907
5896
|
})
|
|
5908
5897
|
] })
|
|
5909
5898
|
]
|
|
5910
|
-
}),
|
|
5899
|
+
}), If = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ J("svg", {
|
|
5911
5900
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5912
5901
|
viewBox: "0 0 81 24",
|
|
5913
5902
|
width: "81",
|
|
@@ -6011,7 +6000,7 @@ var Df = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ J("svg",
|
|
|
6011
6000
|
]
|
|
6012
6001
|
})] })
|
|
6013
6002
|
]
|
|
6014
|
-
}),
|
|
6003
|
+
}), Lf = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ J("svg", {
|
|
6015
6004
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6016
6005
|
viewBox: "0 0 95 24",
|
|
6017
6006
|
width: "95",
|
|
@@ -6211,7 +6200,7 @@ var Df = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ J("svg",
|
|
|
6211
6200
|
})
|
|
6212
6201
|
] })
|
|
6213
6202
|
]
|
|
6214
|
-
}),
|
|
6203
|
+
}), Rf = Df(Of), zf = Df(kf), Bf = Df(Af), Vf = Df(jf), Hf = Df(Mf), Uf = Df(Pf), Wf = Df(Nf), Gf = Df(Ff), Kf = Df(If), qf = Df(Lf), Jf = W("aivex:inline-flex aivex:max-w-full aivex:items-start aivex:gap-md aivex:rounded-md aivex:border aivex:px-lg aivex:py-xs", {
|
|
6215
6204
|
variants: { type: {
|
|
6216
6205
|
basic: "aivex:bg-bg-secondary aivex:border-border-default",
|
|
6217
6206
|
info: "aivex:bg-bg-info-subtle aivex:border-border-info-subtle",
|
|
@@ -6220,13 +6209,13 @@ var Df = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ J("svg",
|
|
|
6220
6209
|
danger: "aivex:bg-bg-danger-subtle aivex:border-border-danger-subtle"
|
|
6221
6210
|
} },
|
|
6222
6211
|
defaultVariants: { type: "basic" }
|
|
6223
|
-
}),
|
|
6212
|
+
}), Yf = {
|
|
6224
6213
|
basic: {
|
|
6225
|
-
Icon:
|
|
6214
|
+
Icon: $e,
|
|
6226
6215
|
className: "aivex:text-icon-secondary"
|
|
6227
6216
|
},
|
|
6228
6217
|
info: {
|
|
6229
|
-
Icon:
|
|
6218
|
+
Icon: $e,
|
|
6230
6219
|
className: "aivex:text-icon-info"
|
|
6231
6220
|
},
|
|
6232
6221
|
success: {
|
|
@@ -6242,12 +6231,12 @@ var Df = ({ color: e = "#0D0D12", title: t, ...n }) => /* @__PURE__ */ J("svg",
|
|
|
6242
6231
|
className: "aivex:text-icon-danger"
|
|
6243
6232
|
}
|
|
6244
6233
|
};
|
|
6245
|
-
function
|
|
6246
|
-
let { Icon: c, className: l } =
|
|
6234
|
+
function Xf({ className: e, type: t = "basic", message: n, subText: r, children: i, onClose: a, ref: o, ...s }) {
|
|
6235
|
+
let { Icon: c, className: l } = Yf[t ?? "basic"];
|
|
6247
6236
|
return /* @__PURE__ */ q("div", {
|
|
6248
6237
|
ref: o,
|
|
6249
6238
|
role: "status",
|
|
6250
|
-
className: R(
|
|
6239
|
+
className: R(Jf({ type: t }), e),
|
|
6251
6240
|
...s,
|
|
6252
6241
|
children: /* @__PURE__ */ J("div", {
|
|
6253
6242
|
className: "aivex:flex aivex:w-full aivex:min-w-0 aivex:items-start aivex:gap-md aivex:py-sm",
|
|
@@ -6286,20 +6275,20 @@ function Yf({ className: e, type: t = "basic", message: n, subText: r, children:
|
|
|
6286
6275
|
}
|
|
6287
6276
|
//#endregion
|
|
6288
6277
|
//#region src/components/Nav/Nav.tsx
|
|
6289
|
-
var
|
|
6278
|
+
var Zf = W("aivex:relative aivex:overflow-hidden aivex:group aivex:inline-flex aivex:flex-col aivex:items-center aivex:w-14 aivex:px-0.5 aivex:py-1 aivex:rounded-[6px] aivex:transition-colors aivex:cursor-pointer aivex:select-none", {
|
|
6290
6279
|
variants: { active: {
|
|
6291
6280
|
true: "aivex:bg-bg-brand-subtle",
|
|
6292
6281
|
false: "aivex:bg-transparent"
|
|
6293
6282
|
} },
|
|
6294
6283
|
defaultVariants: { active: !1 }
|
|
6295
6284
|
});
|
|
6296
|
-
function
|
|
6285
|
+
function Qf({ className: e, active: t, icon: n, children: r, ref: i, ...a }) {
|
|
6297
6286
|
let o = t ?? !1;
|
|
6298
6287
|
return /* @__PURE__ */ J("button", {
|
|
6299
6288
|
ref: i,
|
|
6300
6289
|
type: "button",
|
|
6301
6290
|
"aria-pressed": o,
|
|
6302
|
-
className: R(
|
|
6291
|
+
className: R(Zf({ active: t }), e),
|
|
6303
6292
|
...a,
|
|
6304
6293
|
children: [
|
|
6305
6294
|
/* @__PURE__ */ q(br, {}),
|
|
@@ -6317,19 +6306,19 @@ function Zf({ className: e, active: t, icon: n, children: r, ref: i, ...a }) {
|
|
|
6317
6306
|
]
|
|
6318
6307
|
});
|
|
6319
6308
|
}
|
|
6320
|
-
var
|
|
6309
|
+
var $f = W("aivex:relative aivex:overflow-hidden aivex:group aivex:flex aivex:min-h-10 aivex:w-full aivex:items-center aivex:gap-md aivex:px-lg aivex:py-md aivex:rounded-md aivex:text-body-lg-medium aivex:leading-6 aivex:text-left aivex:transition-colors aivex:cursor-pointer", {
|
|
6321
6310
|
variants: { active: {
|
|
6322
6311
|
true: "aivex:bg-bg-brand-subtle aivex:text-text-brand",
|
|
6323
6312
|
false: "aivex:bg-transparent aivex:text-text-secondary"
|
|
6324
6313
|
} },
|
|
6325
6314
|
defaultVariants: { active: !1 }
|
|
6326
6315
|
});
|
|
6327
|
-
function
|
|
6316
|
+
function ep({ className: e, active: t, icon: n, children: r, ref: i, ...a }) {
|
|
6328
6317
|
return /* @__PURE__ */ J("button", {
|
|
6329
6318
|
ref: i,
|
|
6330
6319
|
type: "button",
|
|
6331
6320
|
"aria-current": t ? "page" : void 0,
|
|
6332
|
-
className: R(
|
|
6321
|
+
className: R($f({ active: t }), e),
|
|
6333
6322
|
...a,
|
|
6334
6323
|
children: [
|
|
6335
6324
|
/* @__PURE__ */ q(br, {}),
|
|
@@ -6341,7 +6330,7 @@ function $f({ className: e, active: t, icon: n, children: r, ref: i, ...a }) {
|
|
|
6341
6330
|
]
|
|
6342
6331
|
});
|
|
6343
6332
|
}
|
|
6344
|
-
function
|
|
6333
|
+
function tp({ className: e, children: t, ref: n, ...r }) {
|
|
6345
6334
|
return /* @__PURE__ */ q("nav", {
|
|
6346
6335
|
ref: n,
|
|
6347
6336
|
className: R("aivex:flex aivex:flex-col aivex:gap-xs", e),
|
|
@@ -6351,12 +6340,12 @@ function ep({ className: e, children: t, ref: n, ...r }) {
|
|
|
6351
6340
|
}
|
|
6352
6341
|
//#endregion
|
|
6353
6342
|
//#region node_modules/.pnpm/@radix-ui+number@1.1.2/node_modules/@radix-ui/number/dist/index.mjs
|
|
6354
|
-
function
|
|
6343
|
+
function np(e, [t, n]) {
|
|
6355
6344
|
return Math.min(n, Math.max(t, e));
|
|
6356
6345
|
}
|
|
6357
6346
|
//#endregion
|
|
6358
6347
|
//#region node_modules/.pnpm/@radix-ui+react-collection@1.1.10_@types+react-dom@19.2.3_@types+react@19.2.14__@types+_65c396047026fe85ecbd1fde002c71b9/node_modules/@radix-ui/react-collection/dist/index.mjs
|
|
6359
|
-
function
|
|
6348
|
+
function rp(e) {
|
|
6360
6349
|
let t = e + "CollectionProvider", [n, r] = va(t), [i, a] = n(t, {
|
|
6361
6350
|
collectionRef: { current: null },
|
|
6362
6351
|
itemMap: /* @__PURE__ */ new Map()
|
|
@@ -6411,14 +6400,14 @@ function np(e) {
|
|
|
6411
6400
|
}
|
|
6412
6401
|
//#endregion
|
|
6413
6402
|
//#region node_modules/.pnpm/@radix-ui+react-direction@1.1.2_@types+react@19.2.14_react@19.2.5/node_modules/@radix-ui/react-direction/dist/index.mjs
|
|
6414
|
-
var
|
|
6415
|
-
function
|
|
6416
|
-
let t = G.useContext(
|
|
6403
|
+
var ip = G.createContext(void 0);
|
|
6404
|
+
function ap(e) {
|
|
6405
|
+
let t = G.useContext(ip);
|
|
6417
6406
|
return e || t || "ltr";
|
|
6418
6407
|
}
|
|
6419
6408
|
//#endregion
|
|
6420
6409
|
//#region node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.2_@types+react@19.2.14_react@19.2.5/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
|
|
6421
|
-
function
|
|
6410
|
+
function op(e) {
|
|
6422
6411
|
let t = G.useRef(e);
|
|
6423
6412
|
return G.useEffect(() => {
|
|
6424
6413
|
t.current = e;
|
|
@@ -6426,8 +6415,8 @@ function ap(e) {
|
|
|
6426
6415
|
}
|
|
6427
6416
|
//#endregion
|
|
6428
6417
|
//#region node_modules/.pnpm/@radix-ui+react-use-escape-keydown@1.1.2_@types+react@19.2.14_react@19.2.5/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs
|
|
6429
|
-
function
|
|
6430
|
-
let n =
|
|
6418
|
+
function sp(e, t = globalThis?.document) {
|
|
6419
|
+
let n = op(e);
|
|
6431
6420
|
G.useEffect(() => {
|
|
6432
6421
|
let e = (e) => {
|
|
6433
6422
|
e.key === "Escape" && n(e);
|
|
@@ -6437,13 +6426,13 @@ function op(e, t = globalThis?.document) {
|
|
|
6437
6426
|
}
|
|
6438
6427
|
//#endregion
|
|
6439
6428
|
//#region node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.13_@types+react-dom@19.2.3_@types+react@19.2.14___74dcc3948ef5696e96a2f46582289dd8/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
|
|
6440
|
-
var
|
|
6429
|
+
var cp = "DismissableLayer", lp = "dismissableLayer.update", up = "dismissableLayer.pointerDownOutside", dp = "dismissableLayer.focusOutside", fp, pp = G.createContext({
|
|
6441
6430
|
layers: /* @__PURE__ */ new Set(),
|
|
6442
6431
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
6443
6432
|
branches: /* @__PURE__ */ new Set(),
|
|
6444
6433
|
dismissableSurfaces: /* @__PURE__ */ new Set()
|
|
6445
|
-
}),
|
|
6446
|
-
let { disableOutsidePointerEvents: n = !1, deferPointerDownOutside: r = !1, onEscapeKeyDown: i, onPointerDownOutside: a, onFocusOutside: o, onInteractOutside: s, onDismiss: c, ...l } = e, u = G.useContext(
|
|
6434
|
+
}), mp = G.forwardRef((e, t) => {
|
|
6435
|
+
let { disableOutsidePointerEvents: n = !1, deferPointerDownOutside: r = !1, onEscapeKeyDown: i, onPointerDownOutside: a, onFocusOutside: o, onInteractOutside: s, onDismiss: c, ...l } = e, u = G.useContext(pp), [d, f] = G.useState(null), p = d?.ownerDocument ?? globalThis?.document, [, m] = G.useState({}), h = V(t, (e) => f(e)), g = Array.from(u.layers), [_] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), v = g.indexOf(_), y = d ? g.indexOf(d) : -1, b = u.layersWithOutsidePointerEventsDisabled.size > 0, x = y >= v, S = G.useRef(!1), C = _p((e) => {
|
|
6447
6436
|
let t = e.target;
|
|
6448
6437
|
if (!(t instanceof Node)) return;
|
|
6449
6438
|
let n = [...u.branches].some((e) => e.contains(t));
|
|
@@ -6453,16 +6442,16 @@ var sp = "DismissableLayer", cp = "dismissableLayer.update", lp = "dismissableLa
|
|
|
6453
6442
|
deferPointerDownOutside: r,
|
|
6454
6443
|
isDeferredPointerDownOutsideRef: S,
|
|
6455
6444
|
dismissableSurfaces: u.dismissableSurfaces
|
|
6456
|
-
}), w =
|
|
6445
|
+
}), w = vp((e) => {
|
|
6457
6446
|
if (r && S.current) return;
|
|
6458
6447
|
let t = e.target;
|
|
6459
6448
|
[...u.branches].some((e) => e.contains(t)) || (o?.(e), s?.(e), e.defaultPrevented || c?.());
|
|
6460
6449
|
}, p);
|
|
6461
|
-
return
|
|
6450
|
+
return sp((e) => {
|
|
6462
6451
|
y === u.layers.size - 1 && (i?.(e), !e.defaultPrevented && c && (e.preventDefault(), c()));
|
|
6463
6452
|
}, p), G.useEffect(() => {
|
|
6464
|
-
if (d) return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (
|
|
6465
|
-
n && (u.layersWithOutsidePointerEventsDisabled.delete(d), u.layersWithOutsidePointerEventsDisabled.size === 0 && (p.body.style.pointerEvents =
|
|
6453
|
+
if (d) return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (fp = p.body.style.pointerEvents, p.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(d)), u.layers.add(d), yp(), () => {
|
|
6454
|
+
n && (u.layersWithOutsidePointerEventsDisabled.delete(d), u.layersWithOutsidePointerEventsDisabled.size === 0 && (p.body.style.pointerEvents = fp));
|
|
6466
6455
|
};
|
|
6467
6456
|
}, [
|
|
6468
6457
|
d,
|
|
@@ -6470,10 +6459,10 @@ var sp = "DismissableLayer", cp = "dismissableLayer.update", lp = "dismissableLa
|
|
|
6470
6459
|
n,
|
|
6471
6460
|
u
|
|
6472
6461
|
]), G.useEffect(() => () => {
|
|
6473
|
-
d && (u.layers.delete(d), u.layersWithOutsidePointerEventsDisabled.delete(d),
|
|
6462
|
+
d && (u.layers.delete(d), u.layersWithOutsidePointerEventsDisabled.delete(d), yp());
|
|
6474
6463
|
}, [d, u]), G.useEffect(() => {
|
|
6475
6464
|
let e = () => m({});
|
|
6476
|
-
return document.addEventListener(
|
|
6465
|
+
return document.addEventListener(lp, e), () => document.removeEventListener(lp, e);
|
|
6477
6466
|
}, []), /* @__PURE__ */ q(U.div, {
|
|
6478
6467
|
...l,
|
|
6479
6468
|
ref: h,
|
|
@@ -6486,9 +6475,9 @@ var sp = "DismissableLayer", cp = "dismissableLayer.update", lp = "dismissableLa
|
|
|
6486
6475
|
onPointerDownCapture: B(e.onPointerDownCapture, C.onPointerDownCapture)
|
|
6487
6476
|
});
|
|
6488
6477
|
});
|
|
6489
|
-
|
|
6490
|
-
var
|
|
6491
|
-
let n = G.useContext(
|
|
6478
|
+
mp.displayName = cp;
|
|
6479
|
+
var hp = "DismissableLayerBranch", gp = G.forwardRef((e, t) => {
|
|
6480
|
+
let n = G.useContext(pp), r = G.useRef(null), i = V(t, r);
|
|
6492
6481
|
return G.useEffect(() => {
|
|
6493
6482
|
let e = r.current;
|
|
6494
6483
|
if (e) return n.branches.add(e), () => {
|
|
@@ -6499,9 +6488,9 @@ var mp = "DismissableLayerBranch", hp = G.forwardRef((e, t) => {
|
|
|
6499
6488
|
ref: i
|
|
6500
6489
|
});
|
|
6501
6490
|
});
|
|
6502
|
-
|
|
6503
|
-
function
|
|
6504
|
-
let { ownerDocument: n = globalThis?.document, deferPointerDownOutside: r = !1, isDeferredPointerDownOutsideRef: i, dismissableSurfaces: a } = t, o =
|
|
6491
|
+
gp.displayName = hp;
|
|
6492
|
+
function _p(e, t) {
|
|
6493
|
+
let { ownerDocument: n = globalThis?.document, deferPointerDownOutside: r = !1, isDeferredPointerDownOutsideRef: i, dismissableSurfaces: a } = t, o = op(e), s = G.useRef(!1), c = G.useRef(!1), l = G.useRef(/* @__PURE__ */ new Map()), u = G.useRef(() => {});
|
|
6505
6494
|
return G.useEffect(() => {
|
|
6506
6495
|
function e() {
|
|
6507
6496
|
c.current = !1, i.current = !1, l.current.clear();
|
|
@@ -6524,7 +6513,7 @@ function gp(e, t) {
|
|
|
6524
6513
|
let s = function() {
|
|
6525
6514
|
n.removeEventListener("click", u.current);
|
|
6526
6515
|
let r = t();
|
|
6527
|
-
e(), r ||
|
|
6516
|
+
e(), r || bp(up, o, d, { discrete: !0 });
|
|
6528
6517
|
}, d = { originalEvent: a };
|
|
6529
6518
|
c.current = !0, i.current = r && a.button === 0, l.current.clear(), !r || a.button !== 0 ? s() : (n.removeEventListener("click", u.current), u.current = s, n.addEventListener("click", u.current, { once: !0 }));
|
|
6530
6519
|
} else n.removeEventListener("click", u.current), e();
|
|
@@ -6553,11 +6542,11 @@ function gp(e, t) {
|
|
|
6553
6542
|
a
|
|
6554
6543
|
]), { onPointerDownCapture: () => s.current = !0 };
|
|
6555
6544
|
}
|
|
6556
|
-
function
|
|
6557
|
-
let n =
|
|
6545
|
+
function vp(e, t = globalThis?.document) {
|
|
6546
|
+
let n = op(e), r = G.useRef(!1);
|
|
6558
6547
|
return G.useEffect(() => {
|
|
6559
6548
|
let e = (e) => {
|
|
6560
|
-
e.target && !r.current &&
|
|
6549
|
+
e.target && !r.current && bp(dp, n, { originalEvent: e }, { discrete: !1 });
|
|
6561
6550
|
};
|
|
6562
6551
|
return t.addEventListener("focusin", e), () => t.removeEventListener("focusin", e);
|
|
6563
6552
|
}, [t, n]), {
|
|
@@ -6565,11 +6554,11 @@ function _p(e, t = globalThis?.document) {
|
|
|
6565
6554
|
onBlurCapture: () => r.current = !1
|
|
6566
6555
|
};
|
|
6567
6556
|
}
|
|
6568
|
-
function
|
|
6569
|
-
let e = new CustomEvent(
|
|
6557
|
+
function yp() {
|
|
6558
|
+
let e = new CustomEvent(lp);
|
|
6570
6559
|
document.dispatchEvent(e);
|
|
6571
6560
|
}
|
|
6572
|
-
function
|
|
6561
|
+
function bp(e, t, n, { discrete: r }) {
|
|
6573
6562
|
let i = n.originalEvent.target, a = new CustomEvent(e, {
|
|
6574
6563
|
bubbles: !1,
|
|
6575
6564
|
cancelable: !0,
|
|
@@ -6579,30 +6568,30 @@ function yp(e, t, n, { discrete: r }) {
|
|
|
6579
6568
|
}
|
|
6580
6569
|
//#endregion
|
|
6581
6570
|
//#region node_modules/.pnpm/@radix-ui+react-focus-guards@1.1.4_@types+react@19.2.14_react@19.2.5/node_modules/@radix-ui/react-focus-guards/dist/index.mjs
|
|
6582
|
-
var
|
|
6583
|
-
function
|
|
6571
|
+
var xp = 0, Sp = null;
|
|
6572
|
+
function Cp() {
|
|
6584
6573
|
G.useEffect(() => {
|
|
6585
|
-
|
|
6586
|
-
start:
|
|
6587
|
-
end:
|
|
6574
|
+
Sp ||= {
|
|
6575
|
+
start: wp(),
|
|
6576
|
+
end: wp()
|
|
6588
6577
|
};
|
|
6589
|
-
let { start: e, end: t } =
|
|
6590
|
-
return document.body.firstElementChild !== e && document.body.insertAdjacentElement("afterbegin", e), document.body.lastElementChild !== t && document.body.insertAdjacentElement("beforeend", t),
|
|
6591
|
-
|
|
6578
|
+
let { start: e, end: t } = Sp;
|
|
6579
|
+
return document.body.firstElementChild !== e && document.body.insertAdjacentElement("afterbegin", e), document.body.lastElementChild !== t && document.body.insertAdjacentElement("beforeend", t), xp++, () => {
|
|
6580
|
+
xp === 1 && (Sp?.start.remove(), Sp?.end.remove(), Sp = null), xp = Math.max(0, xp - 1);
|
|
6592
6581
|
};
|
|
6593
6582
|
}, []);
|
|
6594
6583
|
}
|
|
6595
|
-
function
|
|
6584
|
+
function wp() {
|
|
6596
6585
|
let e = document.createElement("span");
|
|
6597
6586
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
6598
6587
|
}
|
|
6599
6588
|
//#endregion
|
|
6600
6589
|
//#region node_modules/.pnpm/@radix-ui+react-focus-scope@1.1.10_@types+react-dom@19.2.3_@types+react@19.2.14__@types_e60b43ba8965db89e83f29772a75dac0/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
|
|
6601
|
-
var
|
|
6590
|
+
var Tp = "focusScope.autoFocusOnMount", Ep = "focusScope.autoFocusOnUnmount", Dp = {
|
|
6602
6591
|
bubbles: !1,
|
|
6603
6592
|
cancelable: !0
|
|
6604
|
-
},
|
|
6605
|
-
let { loop: n = !1, trapped: r = !1, onMountAutoFocus: i, onUnmountAutoFocus: a, ...o } = e, [s, c] = G.useState(null), l =
|
|
6593
|
+
}, Op = "FocusScope", kp = G.forwardRef((e, t) => {
|
|
6594
|
+
let { loop: n = !1, trapped: r = !1, onMountAutoFocus: i, onUnmountAutoFocus: a, ...o } = e, [s, c] = G.useState(null), l = op(i), u = op(a), d = G.useRef(null), f = V(t, (e) => c(e)), p = G.useRef({
|
|
6606
6595
|
paused: !1,
|
|
6607
6596
|
pause() {
|
|
6608
6597
|
this.paused = !0;
|
|
@@ -6616,13 +6605,13 @@ var wp = "focusScope.autoFocusOnMount", Tp = "focusScope.autoFocusOnUnmount", Ep
|
|
|
6616
6605
|
let e = function(e) {
|
|
6617
6606
|
if (p.paused || !s) return;
|
|
6618
6607
|
let t = e.target;
|
|
6619
|
-
s.contains(t) ? d.current = t :
|
|
6608
|
+
s.contains(t) ? d.current = t : Ip(d.current, { select: !0 });
|
|
6620
6609
|
}, t = function(e) {
|
|
6621
6610
|
if (p.paused || !s) return;
|
|
6622
6611
|
let t = e.relatedTarget;
|
|
6623
|
-
t !== null && (s.contains(t) ||
|
|
6612
|
+
t !== null && (s.contains(t) || Ip(d.current, { select: !0 }));
|
|
6624
6613
|
}, n = function(e) {
|
|
6625
|
-
if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 &&
|
|
6614
|
+
if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 && Ip(s);
|
|
6626
6615
|
};
|
|
6627
6616
|
document.addEventListener("focusin", e), document.addEventListener("focusout", t);
|
|
6628
6617
|
let r = new MutationObserver(n);
|
|
@@ -6639,16 +6628,16 @@ var wp = "focusScope.autoFocusOnMount", Tp = "focusScope.autoFocusOnUnmount", Ep
|
|
|
6639
6628
|
p.paused
|
|
6640
6629
|
]), G.useEffect(() => {
|
|
6641
6630
|
if (s) {
|
|
6642
|
-
|
|
6631
|
+
Lp.add(p);
|
|
6643
6632
|
let e = document.activeElement;
|
|
6644
6633
|
if (!s.contains(e)) {
|
|
6645
|
-
let t = new CustomEvent(
|
|
6646
|
-
s.addEventListener(
|
|
6634
|
+
let t = new CustomEvent(Tp, Dp);
|
|
6635
|
+
s.addEventListener(Tp, l), s.dispatchEvent(t), t.defaultPrevented || (Ap(Bp(Mp(s)), { select: !0 }), document.activeElement === e && Ip(s));
|
|
6647
6636
|
}
|
|
6648
6637
|
return () => {
|
|
6649
|
-
s.removeEventListener(
|
|
6650
|
-
let t = new CustomEvent(
|
|
6651
|
-
s.addEventListener(
|
|
6638
|
+
s.removeEventListener(Tp, l), setTimeout(() => {
|
|
6639
|
+
let t = new CustomEvent(Ep, Dp);
|
|
6640
|
+
s.addEventListener(Ep, u), s.dispatchEvent(t), t.defaultPrevented || Ip(e ?? document.body, { select: !0 }), s.removeEventListener(Ep, u), Lp.remove(p);
|
|
6652
6641
|
}, 0);
|
|
6653
6642
|
};
|
|
6654
6643
|
}
|
|
@@ -6662,8 +6651,8 @@ var wp = "focusScope.autoFocusOnMount", Tp = "focusScope.autoFocusOnUnmount", Ep
|
|
|
6662
6651
|
if (!n && !r || p.paused) return;
|
|
6663
6652
|
let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey, i = document.activeElement;
|
|
6664
6653
|
if (t && i) {
|
|
6665
|
-
let t = e.currentTarget, [r, a] =
|
|
6666
|
-
r && a ? !e.shiftKey && i === a ? (e.preventDefault(), n &&
|
|
6654
|
+
let t = e.currentTarget, [r, a] = jp(t);
|
|
6655
|
+
r && a ? !e.shiftKey && i === a ? (e.preventDefault(), n && Ip(r, { select: !0 })) : e.shiftKey && i === r && (e.preventDefault(), n && Ip(a, { select: !0 })) : i === t && e.preventDefault();
|
|
6667
6656
|
}
|
|
6668
6657
|
}, [
|
|
6669
6658
|
n,
|
|
@@ -6677,16 +6666,16 @@ var wp = "focusScope.autoFocusOnMount", Tp = "focusScope.autoFocusOnUnmount", Ep
|
|
|
6677
6666
|
onKeyDown: m
|
|
6678
6667
|
});
|
|
6679
6668
|
});
|
|
6680
|
-
|
|
6681
|
-
function
|
|
6669
|
+
kp.displayName = Op;
|
|
6670
|
+
function Ap(e, { select: t = !1 } = {}) {
|
|
6682
6671
|
let n = document.activeElement;
|
|
6683
|
-
for (let r of e) if (
|
|
6684
|
-
}
|
|
6685
|
-
function Ap(e) {
|
|
6686
|
-
let t = jp(e);
|
|
6687
|
-
return [Mp(t, e), Mp(t.reverse(), e)];
|
|
6672
|
+
for (let r of e) if (Ip(r, { select: t }), document.activeElement !== n) return;
|
|
6688
6673
|
}
|
|
6689
6674
|
function jp(e) {
|
|
6675
|
+
let t = Mp(e);
|
|
6676
|
+
return [Np(t, e), Np(t.reverse(), e)];
|
|
6677
|
+
}
|
|
6678
|
+
function Mp(e) {
|
|
6690
6679
|
let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (e) => {
|
|
6691
6680
|
let t = e.tagName === "INPUT" && e.type === "hidden";
|
|
6692
6681
|
return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
@@ -6694,10 +6683,10 @@ function jp(e) {
|
|
|
6694
6683
|
for (; n.nextNode();) t.push(n.currentNode);
|
|
6695
6684
|
return t;
|
|
6696
6685
|
}
|
|
6697
|
-
function
|
|
6698
|
-
for (let n of e) if (!
|
|
6686
|
+
function Np(e, t) {
|
|
6687
|
+
for (let n of e) if (!Pp(n, { upTo: t })) return n;
|
|
6699
6688
|
}
|
|
6700
|
-
function
|
|
6689
|
+
function Pp(e, { upTo: t }) {
|
|
6701
6690
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
6702
6691
|
for (; e;) {
|
|
6703
6692
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -6706,47 +6695,47 @@ function Np(e, { upTo: t }) {
|
|
|
6706
6695
|
}
|
|
6707
6696
|
return !1;
|
|
6708
6697
|
}
|
|
6709
|
-
function
|
|
6698
|
+
function Fp(e) {
|
|
6710
6699
|
return e instanceof HTMLInputElement && "select" in e;
|
|
6711
6700
|
}
|
|
6712
|
-
function
|
|
6701
|
+
function Ip(e, { select: t = !1 } = {}) {
|
|
6713
6702
|
if (e && e.focus) {
|
|
6714
6703
|
let n = document.activeElement;
|
|
6715
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
6704
|
+
e.focus({ preventScroll: !0 }), e !== n && Fp(e) && t && e.select();
|
|
6716
6705
|
}
|
|
6717
6706
|
}
|
|
6718
|
-
var
|
|
6719
|
-
function
|
|
6707
|
+
var Lp = Rp();
|
|
6708
|
+
function Rp() {
|
|
6720
6709
|
let e = [];
|
|
6721
6710
|
return {
|
|
6722
6711
|
add(t) {
|
|
6723
6712
|
let n = e[0];
|
|
6724
|
-
t !== n && n?.pause(), e =
|
|
6713
|
+
t !== n && n?.pause(), e = zp(e, t), e.unshift(t);
|
|
6725
6714
|
},
|
|
6726
6715
|
remove(t) {
|
|
6727
|
-
e =
|
|
6716
|
+
e = zp(e, t), e[0]?.resume();
|
|
6728
6717
|
}
|
|
6729
6718
|
};
|
|
6730
6719
|
}
|
|
6731
|
-
function
|
|
6720
|
+
function zp(e, t) {
|
|
6732
6721
|
let n = [...e], r = n.indexOf(t);
|
|
6733
6722
|
return r !== -1 && n.splice(r, 1), n;
|
|
6734
6723
|
}
|
|
6735
|
-
function
|
|
6724
|
+
function Bp(e) {
|
|
6736
6725
|
return e.filter((e) => e.tagName !== "A");
|
|
6737
6726
|
}
|
|
6738
6727
|
//#endregion
|
|
6739
6728
|
//#region node_modules/.pnpm/@radix-ui+react-id@1.1.2_@types+react@19.2.14_react@19.2.5/node_modules/@radix-ui/react-id/dist/index.mjs
|
|
6740
|
-
var
|
|
6741
|
-
function
|
|
6742
|
-
let [t, n] = G.useState(
|
|
6729
|
+
var Vp = G.useId || (() => void 0), Hp = 0;
|
|
6730
|
+
function Up(e) {
|
|
6731
|
+
let [t, n] = G.useState(Vp());
|
|
6743
6732
|
return H(() => {
|
|
6744
|
-
e || n((e) => e ?? String(
|
|
6733
|
+
e || n((e) => e ?? String(Hp++));
|
|
6745
6734
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
6746
6735
|
}
|
|
6747
6736
|
//#endregion
|
|
6748
6737
|
//#region node_modules/.pnpm/@radix-ui+react-arrow@1.1.10_@types+react-dom@19.2.3_@types+react@19.2.14__@types+react_6c01b894d93396d8227ca8bf721dd865/node_modules/@radix-ui/react-arrow/dist/index.mjs
|
|
6749
|
-
var
|
|
6738
|
+
var Wp = "Arrow", Gp = G.forwardRef((e, t) => {
|
|
6750
6739
|
let { children: n, width: r = 10, height: i = 5, ...a } = e;
|
|
6751
6740
|
return /* @__PURE__ */ q(U.svg, {
|
|
6752
6741
|
...a,
|
|
@@ -6758,10 +6747,10 @@ var Up = "Arrow", Wp = G.forwardRef((e, t) => {
|
|
|
6758
6747
|
children: e.asChild ? n : /* @__PURE__ */ q("polygon", { points: "0,0 30,0 15,10" })
|
|
6759
6748
|
});
|
|
6760
6749
|
});
|
|
6761
|
-
|
|
6762
|
-
var
|
|
6750
|
+
Gp.displayName = Wp;
|
|
6751
|
+
var Kp = Gp, qp = "Popper", [Jp, Yp] = va(qp), [Xp, Zp] = Jp(qp), Qp = (e) => {
|
|
6763
6752
|
let { __scopePopper: t, children: n } = e, [r, i] = G.useState(null), [a, o] = G.useState(void 0);
|
|
6764
|
-
return /* @__PURE__ */ q(
|
|
6753
|
+
return /* @__PURE__ */ q(Xp, {
|
|
6765
6754
|
scope: t,
|
|
6766
6755
|
anchor: r,
|
|
6767
6756
|
onAnchorChange: i,
|
|
@@ -6770,9 +6759,9 @@ var Gp = Wp, Kp = "Popper", [qp, Jp] = va(Kp), [Yp, Xp] = qp(Kp), Zp = (e) => {
|
|
|
6770
6759
|
children: n
|
|
6771
6760
|
});
|
|
6772
6761
|
};
|
|
6773
|
-
|
|
6774
|
-
var
|
|
6775
|
-
let { __scopePopper: n, virtualRef: r, ...i } = e, a =
|
|
6762
|
+
Qp.displayName = qp;
|
|
6763
|
+
var $p = "PopperAnchor", em = G.forwardRef((e, t) => {
|
|
6764
|
+
let { __scopePopper: n, virtualRef: r, ...i } = e, a = Zp($p, n), o = G.useRef(null), s = a.onAnchorChange, c = V(t, G.useCallback((e) => {
|
|
6776
6765
|
o.current = e, e && s(e);
|
|
6777
6766
|
}, [s])), l = G.useRef(null);
|
|
6778
6767
|
G.useEffect(() => {
|
|
@@ -6780,7 +6769,7 @@ var Qp = "PopperAnchor", $p = G.forwardRef((e, t) => {
|
|
|
6780
6769
|
let e = l.current;
|
|
6781
6770
|
l.current = r.current, e !== l.current && s(l.current);
|
|
6782
6771
|
});
|
|
6783
|
-
let u = a.placementState &&
|
|
6772
|
+
let u = a.placementState && um(a.placementState), d = u?.[0], f = u?.[1];
|
|
6784
6773
|
return r ? null : /* @__PURE__ */ q(U.div, {
|
|
6785
6774
|
"data-radix-popper-side": d,
|
|
6786
6775
|
"data-radix-popper-align": f,
|
|
@@ -6788,22 +6777,22 @@ var Qp = "PopperAnchor", $p = G.forwardRef((e, t) => {
|
|
|
6788
6777
|
ref: c
|
|
6789
6778
|
});
|
|
6790
6779
|
});
|
|
6791
|
-
|
|
6792
|
-
var
|
|
6793
|
-
let { __scopePopper: n, side: r = "bottom", sideOffset: i = 0, align: a = "center", alignOffset: o = 0, arrowPadding: s = 0, avoidCollisions: c = !0, collisionBoundary: l = [], collisionPadding: u = 0, sticky: d = "partial", hideWhenDetached: f = !1, updatePositionStrategy: p = "optimized", onPlaced: m, ...h } = e, g =
|
|
6780
|
+
em.displayName = $p;
|
|
6781
|
+
var tm = "PopperContent", [nm, rm] = Jp(tm), im = G.forwardRef((e, t) => {
|
|
6782
|
+
let { __scopePopper: n, side: r = "bottom", sideOffset: i = 0, align: a = "center", alignOffset: o = 0, arrowPadding: s = 0, avoidCollisions: c = !0, collisionBoundary: l = [], collisionPadding: u = 0, sticky: d = "partial", hideWhenDetached: f = !1, updatePositionStrategy: p = "optimized", onPlaced: m, ...h } = e, g = Zp(tm, n), [v, y] = G.useState(null), b = V(t, (e) => y(e)), [x, S] = G.useState(null), w = oa(x), T = w?.width ?? 0, E = w?.height ?? 0, D = r + (a === "center" ? "" : "-" + a), O = typeof u == "number" ? u : {
|
|
6794
6783
|
top: 0,
|
|
6795
6784
|
right: 0,
|
|
6796
6785
|
bottom: 0,
|
|
6797
6786
|
left: 0,
|
|
6798
6787
|
...u
|
|
6799
|
-
}, A = Array.isArray(l) ? l : [l], j = A.length > 0,
|
|
6788
|
+
}, A = Array.isArray(l) ? l : [l], j = A.length > 0, M = {
|
|
6800
6789
|
padding: O,
|
|
6801
|
-
boundary: A.filter(
|
|
6790
|
+
boundary: A.filter(cm),
|
|
6802
6791
|
altBoundary: j
|
|
6803
|
-
}, { refs:
|
|
6792
|
+
}, { refs: ee, floatingStyles: te, placement: N, isPositioned: P, middlewareData: F } = C({
|
|
6804
6793
|
strategy: "fixed",
|
|
6805
6794
|
placement: D,
|
|
6806
|
-
whileElementsMounted: (...e) =>
|
|
6795
|
+
whileElementsMounted: (...e) => Ke(...e, { animationFrame: p === "always" }),
|
|
6807
6796
|
elements: { reference: g.anchor },
|
|
6808
6797
|
middleware: [
|
|
6809
6798
|
Ai({
|
|
@@ -6814,11 +6803,11 @@ var em = "PopperContent", [tm, nm] = qp(em), rm = G.forwardRef((e, t) => {
|
|
|
6814
6803
|
mainAxis: !0,
|
|
6815
6804
|
crossAxis: !1,
|
|
6816
6805
|
limiter: d === "partial" ? _() : void 0,
|
|
6817
|
-
...
|
|
6806
|
+
...M
|
|
6818
6807
|
}),
|
|
6819
|
-
c && Ii({ ...
|
|
6808
|
+
c && Ii({ ...M }),
|
|
6820
6809
|
k({
|
|
6821
|
-
...
|
|
6810
|
+
...M,
|
|
6822
6811
|
apply: ({ elements: e, rects: t, availableWidth: n, availableHeight: r }) => {
|
|
6823
6812
|
let { width: i, height: a } = t.reference, o = e.floating.style;
|
|
6824
6813
|
o.setProperty("--radix-popper-available-width", `${n}px`), o.setProperty("--radix-popper-available-height", `${r}px`), o.setProperty("--radix-popper-anchor-width", `${i}px`), o.setProperty("--radix-popper-anchor-height", `${a}px`);
|
|
@@ -6828,35 +6817,35 @@ var em = "PopperContent", [tm, nm] = qp(em), rm = G.forwardRef((e, t) => {
|
|
|
6828
6817
|
element: x,
|
|
6829
6818
|
padding: s
|
|
6830
6819
|
}),
|
|
6831
|
-
|
|
6820
|
+
lm({
|
|
6832
6821
|
arrowWidth: T,
|
|
6833
6822
|
arrowHeight: E
|
|
6834
6823
|
}),
|
|
6835
6824
|
f && mt({
|
|
6836
6825
|
strategy: "referenceHidden",
|
|
6837
|
-
...
|
|
6838
|
-
boundary: j ?
|
|
6826
|
+
...M,
|
|
6827
|
+
boundary: j ? M.boundary : void 0
|
|
6839
6828
|
})
|
|
6840
6829
|
]
|
|
6841
|
-
}),
|
|
6842
|
-
H(() => (
|
|
6843
|
-
|
|
6844
|
-
}), [N,
|
|
6845
|
-
let [
|
|
6830
|
+
}), I = g.setPlacementState;
|
|
6831
|
+
H(() => (I(N), () => {
|
|
6832
|
+
I(void 0);
|
|
6833
|
+
}), [N, I]);
|
|
6834
|
+
let [ne, re] = um(N), ie = op(m);
|
|
6846
6835
|
H(() => {
|
|
6847
|
-
P &&
|
|
6848
|
-
}, [P,
|
|
6849
|
-
let
|
|
6836
|
+
P && ie?.();
|
|
6837
|
+
}, [P, ie]);
|
|
6838
|
+
let ae = F.arrow?.x, oe = F.arrow?.y, se = F.arrow?.centerOffset !== 0, [ce, le] = G.useState();
|
|
6850
6839
|
return H(() => {
|
|
6851
|
-
v &&
|
|
6840
|
+
v && le(window.getComputedStyle(v).zIndex);
|
|
6852
6841
|
}, [v]), /* @__PURE__ */ q("div", {
|
|
6853
|
-
ref:
|
|
6842
|
+
ref: ee.setFloating,
|
|
6854
6843
|
"data-radix-popper-content-wrapper": "",
|
|
6855
6844
|
style: {
|
|
6856
|
-
...
|
|
6857
|
-
transform: P ?
|
|
6845
|
+
...te,
|
|
6846
|
+
transform: P ? te.transform : "translate(0, -200%)",
|
|
6858
6847
|
minWidth: "max-content",
|
|
6859
|
-
zIndex:
|
|
6848
|
+
zIndex: ce,
|
|
6860
6849
|
"--radix-popper-transform-origin": [F.transformOrigin?.x, F.transformOrigin?.y].join(" "),
|
|
6861
6850
|
...F.hide?.referenceHidden && {
|
|
6862
6851
|
visibility: "hidden",
|
|
@@ -6864,17 +6853,17 @@ var em = "PopperContent", [tm, nm] = qp(em), rm = G.forwardRef((e, t) => {
|
|
|
6864
6853
|
}
|
|
6865
6854
|
},
|
|
6866
6855
|
dir: e.dir,
|
|
6867
|
-
children: /* @__PURE__ */ q(
|
|
6856
|
+
children: /* @__PURE__ */ q(nm, {
|
|
6868
6857
|
scope: n,
|
|
6869
|
-
placedSide:
|
|
6870
|
-
placedAlign:
|
|
6858
|
+
placedSide: ne,
|
|
6859
|
+
placedAlign: re,
|
|
6871
6860
|
onArrowChange: S,
|
|
6872
|
-
arrowX:
|
|
6873
|
-
arrowY:
|
|
6874
|
-
shouldHideArrow:
|
|
6861
|
+
arrowX: ae,
|
|
6862
|
+
arrowY: oe,
|
|
6863
|
+
shouldHideArrow: se,
|
|
6875
6864
|
children: /* @__PURE__ */ q(U.div, {
|
|
6876
|
-
"data-side":
|
|
6877
|
-
"data-align":
|
|
6865
|
+
"data-side": ne,
|
|
6866
|
+
"data-align": re,
|
|
6878
6867
|
...h,
|
|
6879
6868
|
ref: b,
|
|
6880
6869
|
style: {
|
|
@@ -6885,14 +6874,14 @@ var em = "PopperContent", [tm, nm] = qp(em), rm = G.forwardRef((e, t) => {
|
|
|
6885
6874
|
})
|
|
6886
6875
|
});
|
|
6887
6876
|
});
|
|
6888
|
-
|
|
6889
|
-
var
|
|
6877
|
+
im.displayName = tm;
|
|
6878
|
+
var am = "PopperArrow", om = {
|
|
6890
6879
|
top: "bottom",
|
|
6891
6880
|
right: "left",
|
|
6892
6881
|
bottom: "top",
|
|
6893
6882
|
left: "right"
|
|
6894
|
-
},
|
|
6895
|
-
let { __scopePopper: n, ...r } = e, i =
|
|
6883
|
+
}, sm = G.forwardRef(function(e, t) {
|
|
6884
|
+
let { __scopePopper: n, ...r } = e, i = rm(am, n), a = om[i.placedSide];
|
|
6896
6885
|
return /* @__PURE__ */ q("span", {
|
|
6897
6886
|
ref: i.onArrowChange,
|
|
6898
6887
|
style: {
|
|
@@ -6914,7 +6903,7 @@ var im = "PopperArrow", am = {
|
|
|
6914
6903
|
}[i.placedSide],
|
|
6915
6904
|
visibility: i.shouldHideArrow ? "hidden" : void 0
|
|
6916
6905
|
},
|
|
6917
|
-
children: /* @__PURE__ */ q(
|
|
6906
|
+
children: /* @__PURE__ */ q(Kp, {
|
|
6918
6907
|
...r,
|
|
6919
6908
|
ref: t,
|
|
6920
6909
|
style: {
|
|
@@ -6924,15 +6913,15 @@ var im = "PopperArrow", am = {
|
|
|
6924
6913
|
})
|
|
6925
6914
|
});
|
|
6926
6915
|
});
|
|
6927
|
-
|
|
6928
|
-
function
|
|
6916
|
+
sm.displayName = am;
|
|
6917
|
+
function cm(e) {
|
|
6929
6918
|
return e !== null;
|
|
6930
6919
|
}
|
|
6931
|
-
var
|
|
6920
|
+
var lm = (e) => ({
|
|
6932
6921
|
name: "transformOrigin",
|
|
6933
6922
|
options: e,
|
|
6934
6923
|
fn(t) {
|
|
6935
|
-
let { placement: n, rects: r, middlewareData: i } = t, a = i.arrow?.centerOffset !== 0, o = a ? 0 : e.arrowWidth, s = a ? 0 : e.arrowHeight, [c, l] =
|
|
6924
|
+
let { placement: n, rects: r, middlewareData: i } = t, a = i.arrow?.centerOffset !== 0, o = a ? 0 : e.arrowWidth, s = a ? 0 : e.arrowHeight, [c, l] = um(n), u = {
|
|
6936
6925
|
start: "0%",
|
|
6937
6926
|
center: "50%",
|
|
6938
6927
|
end: "100%"
|
|
@@ -6943,11 +6932,11 @@ var cm = (e) => ({
|
|
|
6943
6932
|
} };
|
|
6944
6933
|
}
|
|
6945
6934
|
});
|
|
6946
|
-
function
|
|
6935
|
+
function um(e) {
|
|
6947
6936
|
let [t, n = "center"] = e.split("-");
|
|
6948
6937
|
return [t, n];
|
|
6949
6938
|
}
|
|
6950
|
-
var
|
|
6939
|
+
var dm = Qp, fm = em, pm = im, mm = sm, hm = "Portal", gm = G.forwardRef((e, t) => {
|
|
6951
6940
|
let { container: n, ...r } = e, [i, a] = G.useState(!1);
|
|
6952
6941
|
H(() => a(!0), []);
|
|
6953
6942
|
let o = n || i && globalThis?.document?.body;
|
|
@@ -6956,19 +6945,19 @@ var um = Zp, dm = $p, fm = rm, pm = om, mm = "Portal", hm = G.forwardRef((e, t)
|
|
|
6956
6945
|
ref: t
|
|
6957
6946
|
}), o) : null;
|
|
6958
6947
|
});
|
|
6959
|
-
|
|
6948
|
+
gm.displayName = hm;
|
|
6960
6949
|
//#endregion
|
|
6961
6950
|
//#region node_modules/.pnpm/@radix-ui+react-presence@1.1.6_@types+react-dom@19.2.3_@types+react@19.2.14__@types+rea_385b3110950623b51c55043bffa79fe3/node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
6962
|
-
function
|
|
6951
|
+
function _m(e, t) {
|
|
6963
6952
|
return G.useReducer((e, n) => t[e][n] ?? e, e);
|
|
6964
6953
|
}
|
|
6965
|
-
var
|
|
6966
|
-
let { present: t, children: n } = e, r =
|
|
6954
|
+
var vm = (e) => {
|
|
6955
|
+
let { present: t, children: n } = e, r = ym(t), i = typeof n == "function" ? n({ present: r.isPresent }) : G.Children.only(n), a = xm(r.ref, Cm(i));
|
|
6967
6956
|
return typeof n == "function" || r.isPresent ? G.cloneElement(i, { ref: a }) : null;
|
|
6968
6957
|
};
|
|
6969
|
-
|
|
6970
|
-
function
|
|
6971
|
-
let [t, n] = G.useState(), r = G.useRef(null), i = G.useRef(e), a = G.useRef("none"), [o, s] =
|
|
6958
|
+
vm.displayName = "Presence";
|
|
6959
|
+
function ym(e) {
|
|
6960
|
+
let [t, n] = G.useState(), r = G.useRef(null), i = G.useRef(e), a = G.useRef("none"), [o, s] = _m(e ? "mounted" : "unmounted", {
|
|
6972
6961
|
mounted: {
|
|
6973
6962
|
UNMOUNT: "unmounted",
|
|
6974
6963
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -6980,18 +6969,18 @@ function vm(e) {
|
|
|
6980
6969
|
unmounted: { MOUNT: "mounted" }
|
|
6981
6970
|
});
|
|
6982
6971
|
return G.useEffect(() => {
|
|
6983
|
-
let e =
|
|
6972
|
+
let e = Sm(r.current);
|
|
6984
6973
|
a.current = o === "mounted" ? e : "none";
|
|
6985
6974
|
}, [o]), H(() => {
|
|
6986
6975
|
let t = r.current, n = i.current;
|
|
6987
6976
|
if (n !== e) {
|
|
6988
|
-
let r = a.current, o =
|
|
6977
|
+
let r = a.current, o = Sm(t);
|
|
6989
6978
|
e ? s("MOUNT") : o === "none" || t?.display === "none" ? s("UNMOUNT") : s(n && r !== o ? "ANIMATION_OUT" : "UNMOUNT"), i.current = e;
|
|
6990
6979
|
}
|
|
6991
6980
|
}, [e, s]), H(() => {
|
|
6992
6981
|
if (t) {
|
|
6993
6982
|
let e, n = t.ownerDocument.defaultView ?? window, o = (a) => {
|
|
6994
|
-
let o =
|
|
6983
|
+
let o = Sm(r.current).includes(CSS.escape(a.animationName));
|
|
6995
6984
|
if (a.target === t && o && (s("ANIMATION_END"), !i.current)) {
|
|
6996
6985
|
let r = t.style.animationFillMode;
|
|
6997
6986
|
t.style.animationFillMode = "forwards", e = n.setTimeout(() => {
|
|
@@ -6999,7 +6988,7 @@ function vm(e) {
|
|
|
6999
6988
|
});
|
|
7000
6989
|
}
|
|
7001
6990
|
}, c = (e) => {
|
|
7002
|
-
e.target === t && (a.current =
|
|
6991
|
+
e.target === t && (a.current = Sm(r.current));
|
|
7003
6992
|
};
|
|
7004
6993
|
return t.addEventListener("animationstart", c), t.addEventListener("animationcancel", o), t.addEventListener("animationend", o), () => {
|
|
7005
6994
|
n.clearTimeout(e), t.removeEventListener("animationstart", c), t.removeEventListener("animationcancel", o), t.removeEventListener("animationend", o);
|
|
@@ -7012,35 +7001,35 @@ function vm(e) {
|
|
|
7012
7001
|
}, [])
|
|
7013
7002
|
};
|
|
7014
7003
|
}
|
|
7015
|
-
function
|
|
7004
|
+
function bm(e, t) {
|
|
7016
7005
|
if (typeof e == "function") return e(t);
|
|
7017
7006
|
e != null && (e.current = t);
|
|
7018
7007
|
}
|
|
7019
|
-
function
|
|
7008
|
+
function xm(...e) {
|
|
7020
7009
|
let t = G.useRef(e);
|
|
7021
7010
|
return t.current = e, G.useCallback((e) => {
|
|
7022
7011
|
let n = t.current, r = !1, i = n.map((t) => {
|
|
7023
|
-
let n =
|
|
7012
|
+
let n = bm(t, e);
|
|
7024
7013
|
return !r && typeof n == "function" && (r = !0), n;
|
|
7025
7014
|
});
|
|
7026
7015
|
if (r) return () => {
|
|
7027
7016
|
for (let e = 0; e < i.length; e++) {
|
|
7028
7017
|
let t = i[e];
|
|
7029
|
-
typeof t == "function" ? t() :
|
|
7018
|
+
typeof t == "function" ? t() : bm(n[e], null);
|
|
7030
7019
|
}
|
|
7031
7020
|
};
|
|
7032
7021
|
}, []);
|
|
7033
7022
|
}
|
|
7034
|
-
function
|
|
7023
|
+
function Sm(e) {
|
|
7035
7024
|
return e?.animationName || "none";
|
|
7036
7025
|
}
|
|
7037
|
-
function
|
|
7026
|
+
function Cm(e) {
|
|
7038
7027
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
7039
7028
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
7040
7029
|
}
|
|
7041
7030
|
//#endregion
|
|
7042
7031
|
//#region node_modules/.pnpm/@radix-ui+react-visually-hidden@1.2.6_@types+react-dom@19.2.3_@types+react@19.2.14__@ty_665fa0a3cb3246aed343ea5f7039280f/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
|
|
7043
|
-
var
|
|
7032
|
+
var wm = Object.freeze({
|
|
7044
7033
|
position: "absolute",
|
|
7045
7034
|
border: 0,
|
|
7046
7035
|
width: 1,
|
|
@@ -7051,35 +7040,35 @@ var Cm = Object.freeze({
|
|
|
7051
7040
|
clip: "rect(0, 0, 0, 0)",
|
|
7052
7041
|
whiteSpace: "nowrap",
|
|
7053
7042
|
wordWrap: "normal"
|
|
7054
|
-
}),
|
|
7043
|
+
}), Tm = "VisuallyHidden", Em = G.forwardRef((e, t) => /* @__PURE__ */ q(U.span, {
|
|
7055
7044
|
...e,
|
|
7056
7045
|
ref: t,
|
|
7057
7046
|
style: {
|
|
7058
|
-
...
|
|
7047
|
+
...wm,
|
|
7059
7048
|
...e.style
|
|
7060
7049
|
}
|
|
7061
7050
|
}));
|
|
7062
|
-
|
|
7051
|
+
Em.displayName = Tm;
|
|
7063
7052
|
//#endregion
|
|
7064
7053
|
//#region node_modules/.pnpm/@radix-ui+react-select@2.3.1_@types+react-dom@19.2.3_@types+react@19.2.14__@types+react_16de9db144256e09560591e0c1352a6a/node_modules/@radix-ui/react-select/dist/index.mjs
|
|
7065
|
-
var
|
|
7054
|
+
var Dm = [
|
|
7066
7055
|
" ",
|
|
7067
7056
|
"Enter",
|
|
7068
7057
|
"ArrowUp",
|
|
7069
7058
|
"ArrowDown"
|
|
7070
|
-
],
|
|
7071
|
-
function
|
|
7072
|
-
let { __scopeSelect: t, children: n, open: r, defaultOpen: i, onOpenChange: a, value: o, defaultValue: s, onValueChange: c, dir: l, name: u, autoComplete: d, disabled: f, required: p, form: m, internal_do_not_use_render: h } = e, g =
|
|
7059
|
+
], Om = [" ", "Enter"], km = "Select", [Am, jm, Mm] = rp(km), [Nm, Pm] = va(km, [Mm, Yp]), Fm = Yp(), [Im, Lm] = Nm(km), [Rm, zm] = Nm(km), Bm = "SelectProvider";
|
|
7060
|
+
function Vm(e) {
|
|
7061
|
+
let { __scopeSelect: t, children: n, open: r, defaultOpen: i, onOpenChange: a, value: o, defaultValue: s, onValueChange: c, dir: l, name: u, autoComplete: d, disabled: f, required: p, form: m, internal_do_not_use_render: h } = e, g = Fm(t), [_, v] = G.useState(null), [y, b] = G.useState(null), [x, S] = G.useState(!1), C = ap(l), [w, T] = fa({
|
|
7073
7062
|
prop: r,
|
|
7074
7063
|
defaultProp: i ?? !1,
|
|
7075
7064
|
onChange: a,
|
|
7076
|
-
caller:
|
|
7065
|
+
caller: km
|
|
7077
7066
|
}), [E, D] = fa({
|
|
7078
7067
|
prop: o,
|
|
7079
7068
|
defaultProp: s,
|
|
7080
7069
|
onChange: c,
|
|
7081
|
-
caller:
|
|
7082
|
-
}), O = G.useRef(null), k = _ ? !!m || !!_.closest("form") : !0, [A, j] = G.useState(/* @__PURE__ */ new Set()),
|
|
7070
|
+
caller: km
|
|
7071
|
+
}), O = G.useRef(null), k = _ ? !!m || !!_.closest("form") : !0, [A, j] = G.useState(/* @__PURE__ */ new Set()), M = Up(), ee = Array.from(A).map((e) => e.props.value).join(";"), te = G.useCallback((e) => {
|
|
7083
7072
|
j((t) => new Set(t).add(e));
|
|
7084
7073
|
}, []), N = G.useCallback((e) => {
|
|
7085
7074
|
j((t) => {
|
|
@@ -7094,7 +7083,7 @@ function Bm(e) {
|
|
|
7094
7083
|
onValueNodeChange: b,
|
|
7095
7084
|
valueNodeHasChildren: x,
|
|
7096
7085
|
onValueNodeHasChildrenChange: S,
|
|
7097
|
-
contentId:
|
|
7086
|
+
contentId: M,
|
|
7098
7087
|
value: E,
|
|
7099
7088
|
onValueChange: D,
|
|
7100
7089
|
open: w,
|
|
@@ -7106,39 +7095,39 @@ function Bm(e) {
|
|
|
7106
7095
|
autoComplete: d,
|
|
7107
7096
|
form: m,
|
|
7108
7097
|
nativeOptions: A,
|
|
7109
|
-
nativeSelectKey:
|
|
7098
|
+
nativeSelectKey: ee,
|
|
7110
7099
|
isFormControl: k
|
|
7111
7100
|
};
|
|
7112
|
-
return /* @__PURE__ */ q(
|
|
7101
|
+
return /* @__PURE__ */ q(dm, {
|
|
7113
7102
|
...g,
|
|
7114
|
-
children: /* @__PURE__ */ q(
|
|
7103
|
+
children: /* @__PURE__ */ q(Im, {
|
|
7115
7104
|
scope: t,
|
|
7116
7105
|
...P,
|
|
7117
|
-
children: /* @__PURE__ */ q(
|
|
7106
|
+
children: /* @__PURE__ */ q(Am.Provider, {
|
|
7118
7107
|
scope: t,
|
|
7119
|
-
children: /* @__PURE__ */ q(
|
|
7108
|
+
children: /* @__PURE__ */ q(Rm, {
|
|
7120
7109
|
scope: t,
|
|
7121
|
-
onNativeOptionAdd:
|
|
7110
|
+
onNativeOptionAdd: te,
|
|
7122
7111
|
onNativeOptionRemove: N,
|
|
7123
|
-
children:
|
|
7112
|
+
children: Vh(h) ? h(P) : n
|
|
7124
7113
|
})
|
|
7125
7114
|
})
|
|
7126
7115
|
})
|
|
7127
7116
|
});
|
|
7128
7117
|
}
|
|
7129
|
-
|
|
7130
|
-
var
|
|
7118
|
+
Vm.displayName = Bm;
|
|
7119
|
+
var Hm = (e) => {
|
|
7131
7120
|
let { __scopeSelect: t, children: n, ...r } = e;
|
|
7132
|
-
return /* @__PURE__ */ q(
|
|
7121
|
+
return /* @__PURE__ */ q(Vm, {
|
|
7133
7122
|
__scopeSelect: t,
|
|
7134
7123
|
...r,
|
|
7135
|
-
internal_do_not_use_render: ({ isFormControl: e }) => /* @__PURE__ */ J(Na, { children: [n, e ? /* @__PURE__ */ q(
|
|
7124
|
+
internal_do_not_use_render: ({ isFormControl: e }) => /* @__PURE__ */ J(Na, { children: [n, e ? /* @__PURE__ */ q(Bh, { __scopeSelect: t }) : null] })
|
|
7136
7125
|
});
|
|
7137
7126
|
};
|
|
7138
|
-
|
|
7139
|
-
var
|
|
7140
|
-
let { __scopeSelect: n, disabled: r = !1, ...i } = e, a =
|
|
7141
|
-
let t = l().filter((e) => !e.disabled), n =
|
|
7127
|
+
Hm.displayName = km;
|
|
7128
|
+
var Um = "SelectTrigger", Wm = G.forwardRef((e, t) => {
|
|
7129
|
+
let { __scopeSelect: n, disabled: r = !1, ...i } = e, a = Fm(n), o = Lm(Um, n), s = o.disabled || r, c = V(t, o.onTriggerChange), l = jm(n), u = G.useRef("touch"), [d, f, p] = Uh((e) => {
|
|
7130
|
+
let t = l().filter((e) => !e.disabled), n = Wh(t, e, t.find((e) => e.value === o.value));
|
|
7142
7131
|
n !== void 0 && o.onValueChange(n.value);
|
|
7143
7132
|
}), m = (e) => {
|
|
7144
7133
|
s || (o.onOpenChange(!0), p()), e && (o.triggerPointerDownPosRef.current = {
|
|
@@ -7146,7 +7135,7 @@ var Hm = "SelectTrigger", Um = G.forwardRef((e, t) => {
|
|
|
7146
7135
|
y: Math.round(e.pageY)
|
|
7147
7136
|
});
|
|
7148
7137
|
};
|
|
7149
|
-
return /* @__PURE__ */ q(
|
|
7138
|
+
return /* @__PURE__ */ q(fm, {
|
|
7150
7139
|
asChild: !0,
|
|
7151
7140
|
...a,
|
|
7152
7141
|
children: /* @__PURE__ */ q(U.button, {
|
|
@@ -7160,7 +7149,7 @@ var Hm = "SelectTrigger", Um = G.forwardRef((e, t) => {
|
|
|
7160
7149
|
"data-state": o.open ? "open" : "closed",
|
|
7161
7150
|
disabled: s,
|
|
7162
7151
|
"data-disabled": s ? "" : void 0,
|
|
7163
|
-
"data-placeholder":
|
|
7152
|
+
"data-placeholder": Hh(o.value) ? "" : void 0,
|
|
7164
7153
|
...i,
|
|
7165
7154
|
ref: c,
|
|
7166
7155
|
onClick: B(i.onClick, (e) => {
|
|
@@ -7173,18 +7162,18 @@ var Hm = "SelectTrigger", Um = G.forwardRef((e, t) => {
|
|
|
7173
7162
|
}),
|
|
7174
7163
|
onKeyDown: B(i.onKeyDown, (e) => {
|
|
7175
7164
|
let t = d.current !== "";
|
|
7176
|
-
!(e.ctrlKey || e.altKey || e.metaKey) && e.key.length === 1 && f(e.key), !(t && e.key === " ") &&
|
|
7165
|
+
!(e.ctrlKey || e.altKey || e.metaKey) && e.key.length === 1 && f(e.key), !(t && e.key === " ") && Dm.includes(e.key) && (m(), e.preventDefault());
|
|
7177
7166
|
})
|
|
7178
7167
|
})
|
|
7179
7168
|
});
|
|
7180
7169
|
});
|
|
7181
|
-
|
|
7182
|
-
var
|
|
7183
|
-
let { __scopeSelect: n, className: r, style: i, children: a, placeholder: o = "", ...s } = e, c =
|
|
7170
|
+
Wm.displayName = Um;
|
|
7171
|
+
var Gm = "SelectValue", Km = G.forwardRef((e, t) => {
|
|
7172
|
+
let { __scopeSelect: n, className: r, style: i, children: a, placeholder: o = "", ...s } = e, c = Lm(Gm, n), { onValueNodeHasChildrenChange: l } = c, u = a !== void 0, d = V(t, c.onValueNodeChange);
|
|
7184
7173
|
H(() => {
|
|
7185
7174
|
l(u);
|
|
7186
7175
|
}, [l, u]);
|
|
7187
|
-
let f =
|
|
7176
|
+
let f = Hh(c.value);
|
|
7188
7177
|
return /* @__PURE__ */ q(U.span, {
|
|
7189
7178
|
...s,
|
|
7190
7179
|
asChild: f ? !1 : s.asChild,
|
|
@@ -7193,8 +7182,8 @@ var Wm = "SelectValue", Gm = G.forwardRef((e, t) => {
|
|
|
7193
7182
|
children: /* @__PURE__ */ q(G.Fragment, { children: f ? o : a }, f ? "placeholder" : "value")
|
|
7194
7183
|
});
|
|
7195
7184
|
});
|
|
7196
|
-
|
|
7197
|
-
var
|
|
7185
|
+
Km.displayName = Gm;
|
|
7186
|
+
var qm = "SelectIcon", Jm = G.forwardRef((e, t) => {
|
|
7198
7187
|
let { __scopeSelect: n, children: r, ...i } = e;
|
|
7199
7188
|
return /* @__PURE__ */ q(U.span, {
|
|
7200
7189
|
"aria-hidden": !0,
|
|
@@ -7203,40 +7192,40 @@ var Km = "SelectIcon", qm = G.forwardRef((e, t) => {
|
|
|
7203
7192
|
children: r || "▼"
|
|
7204
7193
|
});
|
|
7205
7194
|
});
|
|
7206
|
-
|
|
7207
|
-
var
|
|
7195
|
+
Jm.displayName = qm;
|
|
7196
|
+
var Ym = "SelectPortal", [Xm, Zm] = Nm(Ym, { forceMount: void 0 }), Qm = (e) => {
|
|
7208
7197
|
let { __scopeSelect: t, forceMount: n, ...r } = e;
|
|
7209
|
-
return /* @__PURE__ */ q(
|
|
7198
|
+
return /* @__PURE__ */ q(Xm, {
|
|
7210
7199
|
scope: e.__scopeSelect,
|
|
7211
7200
|
forceMount: n,
|
|
7212
|
-
children: /* @__PURE__ */ q(
|
|
7201
|
+
children: /* @__PURE__ */ q(gm, {
|
|
7213
7202
|
asChild: !0,
|
|
7214
7203
|
...r
|
|
7215
7204
|
})
|
|
7216
7205
|
});
|
|
7217
7206
|
};
|
|
7218
|
-
|
|
7219
|
-
var
|
|
7220
|
-
let n =
|
|
7207
|
+
Qm.displayName = Ym;
|
|
7208
|
+
var $m = "SelectContent", eh = G.forwardRef((e, t) => {
|
|
7209
|
+
let n = Zm($m, e.__scopeSelect), { forceMount: r = n.forceMount, ...i } = e, a = Lm($m, e.__scopeSelect), [o, s] = G.useState();
|
|
7221
7210
|
return H(() => {
|
|
7222
7211
|
s(new DocumentFragment());
|
|
7223
|
-
}, []), /* @__PURE__ */ q(
|
|
7212
|
+
}, []), /* @__PURE__ */ q(vm, {
|
|
7224
7213
|
present: r || a.open,
|
|
7225
|
-
children: ({ present: e }) => e ? /* @__PURE__ */ q(
|
|
7214
|
+
children: ({ present: e }) => e ? /* @__PURE__ */ q(sh, {
|
|
7226
7215
|
...i,
|
|
7227
7216
|
ref: t
|
|
7228
|
-
}) : /* @__PURE__ */ q(
|
|
7217
|
+
}) : /* @__PURE__ */ q(th, {
|
|
7229
7218
|
...i,
|
|
7230
7219
|
fragment: o
|
|
7231
7220
|
})
|
|
7232
7221
|
});
|
|
7233
7222
|
});
|
|
7234
|
-
|
|
7235
|
-
var
|
|
7223
|
+
eh.displayName = $m;
|
|
7224
|
+
var th = G.forwardRef((e, t) => {
|
|
7236
7225
|
let { __scopeSelect: n, children: r, fragment: i } = e;
|
|
7237
|
-
return i ? Pa.createPortal(/* @__PURE__ */ q(
|
|
7226
|
+
return i ? Pa.createPortal(/* @__PURE__ */ q(rh, {
|
|
7238
7227
|
scope: n,
|
|
7239
|
-
children: /* @__PURE__ */ q(
|
|
7228
|
+
children: /* @__PURE__ */ q(Am.Slot, {
|
|
7240
7229
|
scope: n,
|
|
7241
7230
|
children: /* @__PURE__ */ q("div", {
|
|
7242
7231
|
ref: t,
|
|
@@ -7245,24 +7234,24 @@ var eh = G.forwardRef((e, t) => {
|
|
|
7245
7234
|
})
|
|
7246
7235
|
}), i) : null;
|
|
7247
7236
|
});
|
|
7248
|
-
|
|
7249
|
-
var
|
|
7250
|
-
let { __scopeSelect: n } = e, { position: r = "item-aligned", onCloseAutoFocus: i, onEscapeKeyDown: a, onPointerDownOutside: o, side: s, sideOffset: c, align: l, alignOffset: u, arrowPadding: d, collisionBoundary: f, collisionPadding: p, sticky: m, hideWhenDetached: h, avoidCollisions: g, ..._ } = e, v =
|
|
7237
|
+
th.displayName = "SelectContentFragment";
|
|
7238
|
+
var nh = 10, [rh, ih] = Nm($m), ah = "SelectContentImpl", oh = Ia("SelectContent.RemoveScroll"), sh = G.forwardRef((e, t) => {
|
|
7239
|
+
let { __scopeSelect: n } = e, { position: r = "item-aligned", onCloseAutoFocus: i, onEscapeKeyDown: a, onPointerDownOutside: o, side: s, sideOffset: c, align: l, alignOffset: u, arrowPadding: d, collisionBoundary: f, collisionPadding: p, sticky: m, hideWhenDetached: h, avoidCollisions: g, ..._ } = e, v = Lm($m, n), [y, b] = G.useState(null), [x, S] = G.useState(null), C = V(t, (e) => b(e)), [w, T] = G.useState(null), [E, D] = G.useState(null), O = jm(n), [k, A] = G.useState(!1), j = G.useRef(!1);
|
|
7251
7240
|
G.useEffect(() => {
|
|
7252
7241
|
if (y) return aa(y);
|
|
7253
|
-
}, [y]),
|
|
7254
|
-
let
|
|
7242
|
+
}, [y]), Cp();
|
|
7243
|
+
let M = G.useCallback((e) => {
|
|
7255
7244
|
let [t, ...n] = O().map((e) => e.ref.current), [r] = n.slice(-1), i = document.activeElement;
|
|
7256
7245
|
for (let n of e) if (n === i || (n?.scrollIntoView({ block: "nearest" }), n === t && x && (x.scrollTop = 0), n === r && x && (x.scrollTop = x.scrollHeight), n?.focus(), document.activeElement !== i)) return;
|
|
7257
|
-
}, [O, x]),
|
|
7258
|
-
|
|
7246
|
+
}, [O, x]), ee = G.useCallback(() => M([w, y]), [
|
|
7247
|
+
M,
|
|
7259
7248
|
w,
|
|
7260
7249
|
y
|
|
7261
7250
|
]);
|
|
7262
7251
|
G.useEffect(() => {
|
|
7263
|
-
k &&
|
|
7264
|
-
}, [k,
|
|
7265
|
-
let { onOpenChange:
|
|
7252
|
+
k && ee();
|
|
7253
|
+
}, [k, ee]);
|
|
7254
|
+
let { onOpenChange: te, triggerPointerDownPosRef: N } = v;
|
|
7266
7255
|
G.useEffect(() => {
|
|
7267
7256
|
if (y) {
|
|
7268
7257
|
let e = {
|
|
@@ -7274,7 +7263,7 @@ var th = 10, [nh, rh] = Mm(Qm), ih = "SelectContentImpl", ah = Ia("SelectContent
|
|
|
7274
7263
|
y: Math.abs(Math.round(t.pageY) - (N.current?.y ?? 0))
|
|
7275
7264
|
};
|
|
7276
7265
|
}, n = (n) => {
|
|
7277
|
-
e.x <= 10 && e.y <= 10 ? n.preventDefault() : n.composedPath().includes(y) ||
|
|
7266
|
+
e.x <= 10 && e.y <= 10 ? n.preventDefault() : n.composedPath().includes(y) || te(!1), document.removeEventListener("pointermove", t), N.current = null;
|
|
7278
7267
|
};
|
|
7279
7268
|
return N.current !== null && (document.addEventListener("pointermove", t), document.addEventListener("pointerup", n, {
|
|
7280
7269
|
capture: !0,
|
|
@@ -7285,24 +7274,24 @@ var th = 10, [nh, rh] = Mm(Qm), ih = "SelectContentImpl", ah = Ia("SelectContent
|
|
|
7285
7274
|
}
|
|
7286
7275
|
}, [
|
|
7287
7276
|
y,
|
|
7288
|
-
|
|
7277
|
+
te,
|
|
7289
7278
|
N
|
|
7290
7279
|
]), G.useEffect(() => {
|
|
7291
|
-
let e = () =>
|
|
7280
|
+
let e = () => te(!1);
|
|
7292
7281
|
return window.addEventListener("blur", e), window.addEventListener("resize", e), () => {
|
|
7293
7282
|
window.removeEventListener("blur", e), window.removeEventListener("resize", e);
|
|
7294
7283
|
};
|
|
7295
|
-
}, [
|
|
7296
|
-
let [P, F] =
|
|
7297
|
-
let t = O().filter((e) => !e.disabled), n =
|
|
7284
|
+
}, [te]);
|
|
7285
|
+
let [P, F] = Uh((e) => {
|
|
7286
|
+
let t = O().filter((e) => !e.disabled), n = Wh(t, e, t.find((e) => e.ref.current === document.activeElement));
|
|
7298
7287
|
n && setTimeout(() => n.ref.current?.focus());
|
|
7299
|
-
}),
|
|
7288
|
+
}), I = G.useCallback((e, t, n) => {
|
|
7300
7289
|
let r = !j.current && !n;
|
|
7301
7290
|
(v.value !== void 0 && v.value === t || r) && (T(e), r && (j.current = !0));
|
|
7302
|
-
}, [v.value]),
|
|
7291
|
+
}, [v.value]), ne = G.useCallback(() => y?.focus(), [y]), re = G.useCallback((e, t, n) => {
|
|
7303
7292
|
let r = !j.current && !n;
|
|
7304
7293
|
(v.value !== void 0 && v.value === t || r) && D(e);
|
|
7305
|
-
}, [v.value]),
|
|
7294
|
+
}, [v.value]), ie = r === "popper" ? dh : lh, ae = ie === dh ? {
|
|
7306
7295
|
side: s,
|
|
7307
7296
|
sideOffset: c,
|
|
7308
7297
|
align: l,
|
|
@@ -7314,24 +7303,24 @@ var th = 10, [nh, rh] = Mm(Qm), ih = "SelectContentImpl", ah = Ia("SelectContent
|
|
|
7314
7303
|
hideWhenDetached: h,
|
|
7315
7304
|
avoidCollisions: g
|
|
7316
7305
|
} : {};
|
|
7317
|
-
return /* @__PURE__ */ q(
|
|
7306
|
+
return /* @__PURE__ */ q(rh, {
|
|
7318
7307
|
scope: n,
|
|
7319
7308
|
content: y,
|
|
7320
7309
|
viewport: x,
|
|
7321
7310
|
onViewportChange: S,
|
|
7322
|
-
itemRefCallback:
|
|
7311
|
+
itemRefCallback: I,
|
|
7323
7312
|
selectedItem: w,
|
|
7324
|
-
onItemLeave:
|
|
7325
|
-
itemTextRefCallback:
|
|
7326
|
-
focusSelectedItem:
|
|
7313
|
+
onItemLeave: ne,
|
|
7314
|
+
itemTextRefCallback: re,
|
|
7315
|
+
focusSelectedItem: ee,
|
|
7327
7316
|
selectedItemText: E,
|
|
7328
7317
|
position: r,
|
|
7329
7318
|
isPositioned: k,
|
|
7330
7319
|
searchRef: P,
|
|
7331
7320
|
children: /* @__PURE__ */ q(ua, {
|
|
7332
|
-
as:
|
|
7321
|
+
as: oh,
|
|
7333
7322
|
allowPinchZoom: !0,
|
|
7334
|
-
children: /* @__PURE__ */ q(
|
|
7323
|
+
children: /* @__PURE__ */ q(kp, {
|
|
7335
7324
|
asChild: !0,
|
|
7336
7325
|
trapped: v.open,
|
|
7337
7326
|
onMountAutoFocus: (e) => {
|
|
@@ -7340,21 +7329,21 @@ var th = 10, [nh, rh] = Mm(Qm), ih = "SelectContentImpl", ah = Ia("SelectContent
|
|
|
7340
7329
|
onUnmountAutoFocus: B(i, (e) => {
|
|
7341
7330
|
v.trigger?.focus({ preventScroll: !0 }), e.preventDefault();
|
|
7342
7331
|
}),
|
|
7343
|
-
children: /* @__PURE__ */ q(
|
|
7332
|
+
children: /* @__PURE__ */ q(mp, {
|
|
7344
7333
|
asChild: !0,
|
|
7345
7334
|
disableOutsidePointerEvents: !0,
|
|
7346
7335
|
onEscapeKeyDown: a,
|
|
7347
7336
|
onPointerDownOutside: o,
|
|
7348
7337
|
onFocusOutside: (e) => e.preventDefault(),
|
|
7349
7338
|
onDismiss: () => v.onOpenChange(!1),
|
|
7350
|
-
children: /* @__PURE__ */ q(
|
|
7339
|
+
children: /* @__PURE__ */ q(ie, {
|
|
7351
7340
|
role: "listbox",
|
|
7352
7341
|
id: v.contentId,
|
|
7353
7342
|
"data-state": v.open ? "open" : "closed",
|
|
7354
7343
|
dir: v.dir,
|
|
7355
7344
|
onContextMenu: (e) => e.preventDefault(),
|
|
7356
7345
|
..._,
|
|
7357
|
-
...
|
|
7346
|
+
...ae,
|
|
7358
7347
|
onPlaced: () => A(!0),
|
|
7359
7348
|
ref: C,
|
|
7360
7349
|
style: {
|
|
@@ -7376,7 +7365,7 @@ var th = 10, [nh, rh] = Mm(Qm), ih = "SelectContentImpl", ah = Ia("SelectContent
|
|
|
7376
7365
|
let n = e.target, r = t.indexOf(n);
|
|
7377
7366
|
t = t.slice(r + 1);
|
|
7378
7367
|
}
|
|
7379
|
-
setTimeout(() =>
|
|
7368
|
+
setTimeout(() => M(t)), e.preventDefault();
|
|
7380
7369
|
}
|
|
7381
7370
|
})
|
|
7382
7371
|
})
|
|
@@ -7385,19 +7374,19 @@ var th = 10, [nh, rh] = Mm(Qm), ih = "SelectContentImpl", ah = Ia("SelectContent
|
|
|
7385
7374
|
})
|
|
7386
7375
|
});
|
|
7387
7376
|
});
|
|
7388
|
-
|
|
7389
|
-
var
|
|
7390
|
-
let { __scopeSelect: n, onPlaced: r, ...i } = e, a =
|
|
7377
|
+
sh.displayName = ah;
|
|
7378
|
+
var ch = "SelectItemAlignedPosition", lh = G.forwardRef((e, t) => {
|
|
7379
|
+
let { __scopeSelect: n, onPlaced: r, ...i } = e, a = Lm($m, n), o = ih($m, n), [s, c] = G.useState(null), [l, u] = G.useState(null), d = V(t, (e) => u(e)), f = jm(n), p = G.useRef(!1), m = G.useRef(!0), { viewport: h, selectedItem: g, selectedItemText: _, focusSelectedItem: v } = o, y = G.useCallback(() => {
|
|
7391
7380
|
if (a.trigger && a.valueNode && s && l && h && g && _) {
|
|
7392
7381
|
let e = a.trigger.getBoundingClientRect(), t = l.getBoundingClientRect(), n = a.valueNode.getBoundingClientRect(), i = _.getBoundingClientRect();
|
|
7393
7382
|
if (a.dir !== "rtl") {
|
|
7394
|
-
let r = i.left - t.left, a = n.left - r, o = e.left - a, c = e.width + o, l = Math.max(c, t.width), u = window.innerWidth -
|
|
7383
|
+
let r = i.left - t.left, a = n.left - r, o = e.left - a, c = e.width + o, l = Math.max(c, t.width), u = window.innerWidth - nh, d = np(a, [nh, Math.max(nh, u - l)]);
|
|
7395
7384
|
s.style.minWidth = c + "px", s.style.left = d + "px";
|
|
7396
7385
|
} else {
|
|
7397
|
-
let r = t.right - i.right, a = window.innerWidth - n.right - r, o = window.innerWidth - e.right - a, c = e.width + o, l = Math.max(c, t.width), u = window.innerWidth -
|
|
7386
|
+
let r = t.right - i.right, a = window.innerWidth - n.right - r, o = window.innerWidth - e.right - a, c = e.width + o, l = Math.max(c, t.width), u = window.innerWidth - nh, d = np(a, [nh, Math.max(nh, u - l)]);
|
|
7398
7387
|
s.style.minWidth = c + "px", s.style.right = d + "px";
|
|
7399
7388
|
}
|
|
7400
|
-
let o = f(), c = window.innerHeight -
|
|
7389
|
+
let o = f(), c = window.innerHeight - nh * 2, u = h.scrollHeight, d = window.getComputedStyle(l), m = parseInt(d.borderTopWidth, 10), v = parseInt(d.paddingTop, 10), y = parseInt(d.borderBottomWidth, 10), b = parseInt(d.paddingBottom, 10), x = m + v + u + b + y, S = Math.min(g.offsetHeight * 5, x), C = window.getComputedStyle(h), w = parseInt(C.paddingTop, 10), T = parseInt(C.paddingBottom, 10), E = e.top + e.height / 2 - nh, D = c - E, O = g.offsetHeight / 2, k = g.offsetTop + O, A = m + v + k, j = x - A;
|
|
7401
7390
|
if (A <= E) {
|
|
7402
7391
|
let e = o.length > 0 && g === o[o.length - 1].ref.current;
|
|
7403
7392
|
s.style.bottom = "0px";
|
|
@@ -7409,7 +7398,7 @@ var sh = "SelectItemAlignedPosition", ch = G.forwardRef((e, t) => {
|
|
|
7409
7398
|
let t = Math.max(E, m + h.offsetTop + (e ? w : 0) + O) + j;
|
|
7410
7399
|
s.style.height = t + "px", h.scrollTop = A - E + h.offsetTop;
|
|
7411
7400
|
}
|
|
7412
|
-
s.style.margin = `${
|
|
7401
|
+
s.style.margin = `${nh}px 0`, s.style.minHeight = S + "px", s.style.maxHeight = c + "px", r?.(), requestAnimationFrame(() => p.current = !0);
|
|
7413
7402
|
}
|
|
7414
7403
|
}, [
|
|
7415
7404
|
f,
|
|
@@ -7427,7 +7416,7 @@ var sh = "SelectItemAlignedPosition", ch = G.forwardRef((e, t) => {
|
|
|
7427
7416
|
let [b, x] = G.useState();
|
|
7428
7417
|
return H(() => {
|
|
7429
7418
|
l && x(window.getComputedStyle(l).zIndex);
|
|
7430
|
-
}, [l]), /* @__PURE__ */ q(
|
|
7419
|
+
}, [l]), /* @__PURE__ */ q(fh, {
|
|
7431
7420
|
scope: n,
|
|
7432
7421
|
contentWrapper: s,
|
|
7433
7422
|
shouldExpandOnScrollRef: p,
|
|
@@ -7454,11 +7443,11 @@ var sh = "SelectItemAlignedPosition", ch = G.forwardRef((e, t) => {
|
|
|
7454
7443
|
})
|
|
7455
7444
|
});
|
|
7456
7445
|
});
|
|
7457
|
-
|
|
7458
|
-
var
|
|
7459
|
-
let { __scopeSelect: n, align: r = "start", collisionPadding: i =
|
|
7460
|
-
return /* @__PURE__ */ q(
|
|
7461
|
-
...
|
|
7446
|
+
lh.displayName = ch;
|
|
7447
|
+
var uh = "SelectPopperPosition", dh = G.forwardRef((e, t) => {
|
|
7448
|
+
let { __scopeSelect: n, align: r = "start", collisionPadding: i = nh, ...a } = e;
|
|
7449
|
+
return /* @__PURE__ */ q(pm, {
|
|
7450
|
+
...Fm(n),
|
|
7462
7451
|
...a,
|
|
7463
7452
|
ref: t,
|
|
7464
7453
|
align: r,
|
|
@@ -7474,13 +7463,13 @@ var lh = "SelectPopperPosition", uh = G.forwardRef((e, t) => {
|
|
|
7474
7463
|
}
|
|
7475
7464
|
});
|
|
7476
7465
|
});
|
|
7477
|
-
|
|
7478
|
-
var [
|
|
7479
|
-
let { __scopeSelect: n, nonce: r, ...i } = e, a =
|
|
7466
|
+
dh.displayName = uh;
|
|
7467
|
+
var [fh, ph] = Nm($m, {}), mh = "SelectViewport", hh = G.forwardRef((e, t) => {
|
|
7468
|
+
let { __scopeSelect: n, nonce: r, ...i } = e, a = ih(mh, n), o = ph(mh, n), s = V(t, a.onViewportChange), c = G.useRef(0);
|
|
7480
7469
|
return /* @__PURE__ */ J(Na, { children: [/* @__PURE__ */ q("style", {
|
|
7481
7470
|
dangerouslySetInnerHTML: { __html: "[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}" },
|
|
7482
7471
|
nonce: r
|
|
7483
|
-
}), /* @__PURE__ */ q(
|
|
7472
|
+
}), /* @__PURE__ */ q(Am.Slot, {
|
|
7484
7473
|
scope: n,
|
|
7485
7474
|
children: /* @__PURE__ */ q(U.div, {
|
|
7486
7475
|
"data-radix-select-viewport": "",
|
|
@@ -7498,7 +7487,7 @@ var [dh, fh] = Mm(Qm, {}), ph = "SelectViewport", mh = G.forwardRef((e, t) => {
|
|
|
7498
7487
|
if (r?.current && n) {
|
|
7499
7488
|
let e = Math.abs(c.current - t.scrollTop);
|
|
7500
7489
|
if (e > 0) {
|
|
7501
|
-
let r = window.innerHeight -
|
|
7490
|
+
let r = window.innerHeight - nh * 2, i = parseFloat(n.style.minHeight), a = parseFloat(n.style.height), o = Math.max(i, a);
|
|
7502
7491
|
if (o < r) {
|
|
7503
7492
|
let i = o + e, a = Math.min(r, i), s = i - a;
|
|
7504
7493
|
n.style.height = a + "px", n.style.bottom === "0px" && (t.scrollTop = s > 0 ? s : 0, n.style.justifyContent = "flex-end");
|
|
@@ -7510,10 +7499,10 @@ var [dh, fh] = Mm(Qm, {}), ph = "SelectViewport", mh = G.forwardRef((e, t) => {
|
|
|
7510
7499
|
})
|
|
7511
7500
|
})] });
|
|
7512
7501
|
});
|
|
7513
|
-
|
|
7514
|
-
var
|
|
7515
|
-
let { __scopeSelect: n, ...r } = e, i =
|
|
7516
|
-
return /* @__PURE__ */ q(
|
|
7502
|
+
hh.displayName = mh;
|
|
7503
|
+
var gh = "SelectGroup", [_h, vh] = Nm(gh), yh = G.forwardRef((e, t) => {
|
|
7504
|
+
let { __scopeSelect: n, ...r } = e, i = Up();
|
|
7505
|
+
return /* @__PURE__ */ q(_h, {
|
|
7517
7506
|
scope: n,
|
|
7518
7507
|
id: i,
|
|
7519
7508
|
children: /* @__PURE__ */ q(U.div, {
|
|
@@ -7524,21 +7513,21 @@ var hh = "SelectGroup", [gh, _h] = Mm(hh), vh = G.forwardRef((e, t) => {
|
|
|
7524
7513
|
})
|
|
7525
7514
|
});
|
|
7526
7515
|
});
|
|
7527
|
-
|
|
7528
|
-
var
|
|
7529
|
-
let { __scopeSelect: n, ...r } = e, i =
|
|
7516
|
+
yh.displayName = gh;
|
|
7517
|
+
var bh = "SelectLabel", xh = G.forwardRef((e, t) => {
|
|
7518
|
+
let { __scopeSelect: n, ...r } = e, i = vh(bh, n);
|
|
7530
7519
|
return /* @__PURE__ */ q(U.div, {
|
|
7531
7520
|
id: i.id,
|
|
7532
7521
|
...r,
|
|
7533
7522
|
ref: t
|
|
7534
7523
|
});
|
|
7535
7524
|
});
|
|
7536
|
-
|
|
7537
|
-
var
|
|
7538
|
-
let { __scopeSelect: n, value: r, disabled: i = !1, textValue: a, ...o } = e, s =
|
|
7525
|
+
xh.displayName = bh;
|
|
7526
|
+
var Sh = "SelectItem", [Ch, wh] = Nm(Sh), Th = G.forwardRef((e, t) => {
|
|
7527
|
+
let { __scopeSelect: n, value: r, disabled: i = !1, textValue: a, ...o } = e, s = Lm(Sh, n), c = ih(Sh, n), l = s.value === r, [u, d] = G.useState(a ?? ""), [f, p] = G.useState(!1), m = V(t, (e) => c.itemRefCallback?.(e, r, i)), h = Up(), g = G.useRef("touch"), _ = () => {
|
|
7539
7528
|
i || (s.onValueChange(r), s.onOpenChange(!1));
|
|
7540
7529
|
};
|
|
7541
|
-
return /* @__PURE__ */ q(
|
|
7530
|
+
return /* @__PURE__ */ q(Ch, {
|
|
7542
7531
|
scope: n,
|
|
7543
7532
|
value: r,
|
|
7544
7533
|
disabled: i,
|
|
@@ -7547,7 +7536,7 @@ var xh = "SelectItem", [Sh, Ch] = Mm(xh), wh = G.forwardRef((e, t) => {
|
|
|
7547
7536
|
onItemTextChange: G.useCallback((e) => {
|
|
7548
7537
|
d((t) => t || (e?.textContent ?? "").trim());
|
|
7549
7538
|
}, []),
|
|
7550
|
-
children: /* @__PURE__ */ q(
|
|
7539
|
+
children: /* @__PURE__ */ q(Am.ItemSlot, {
|
|
7551
7540
|
scope: n,
|
|
7552
7541
|
value: r,
|
|
7553
7542
|
disabled: i,
|
|
@@ -7581,15 +7570,15 @@ var xh = "SelectItem", [Sh, Ch] = Mm(xh), wh = G.forwardRef((e, t) => {
|
|
|
7581
7570
|
e.currentTarget === document.activeElement && c.onItemLeave?.();
|
|
7582
7571
|
}),
|
|
7583
7572
|
onKeyDown: B(o.onKeyDown, (e) => {
|
|
7584
|
-
c.searchRef?.current !== "" && e.key === " " || (
|
|
7573
|
+
c.searchRef?.current !== "" && e.key === " " || (Om.includes(e.key) && _(), e.key === " " && e.preventDefault());
|
|
7585
7574
|
})
|
|
7586
7575
|
})
|
|
7587
7576
|
})
|
|
7588
7577
|
});
|
|
7589
7578
|
});
|
|
7590
|
-
|
|
7591
|
-
var
|
|
7592
|
-
let { __scopeSelect: n, className: r, style: i, ...a } = e, o =
|
|
7579
|
+
Th.displayName = Sh;
|
|
7580
|
+
var Eh = "SelectItemText", Dh = G.forwardRef((e, t) => {
|
|
7581
|
+
let { __scopeSelect: n, className: r, style: i, ...a } = e, o = Lm(Eh, n), s = ih(Eh, n), c = wh(Eh, n), l = zm(Eh, n), [u, d] = G.useState(null), f = V(t, (e) => d(e), c.onItemTextChange, (e) => s.itemTextRefCallback?.(e, c.value, c.disabled)), p = u?.textContent, m = G.useMemo(() => /* @__PURE__ */ q("option", {
|
|
7593
7582
|
value: c.value,
|
|
7594
7583
|
disabled: c.disabled,
|
|
7595
7584
|
children: p
|
|
@@ -7606,20 +7595,20 @@ var Th = "SelectItemText", Eh = G.forwardRef((e, t) => {
|
|
|
7606
7595
|
id: c.textId,
|
|
7607
7596
|
...a,
|
|
7608
7597
|
ref: f
|
|
7609
|
-
}), c.isSelected && o.valueNode && !o.valueNodeHasChildren && !
|
|
7598
|
+
}), c.isSelected && o.valueNode && !o.valueNodeHasChildren && !Hh(o.value) ? Pa.createPortal(a.children, o.valueNode) : null] });
|
|
7610
7599
|
});
|
|
7611
|
-
|
|
7612
|
-
var
|
|
7600
|
+
Dh.displayName = Eh;
|
|
7601
|
+
var Oh = "SelectItemIndicator", kh = G.forwardRef((e, t) => {
|
|
7613
7602
|
let { __scopeSelect: n, ...r } = e;
|
|
7614
|
-
return
|
|
7603
|
+
return wh(Oh, n).isSelected ? /* @__PURE__ */ q(U.span, {
|
|
7615
7604
|
"aria-hidden": !0,
|
|
7616
7605
|
...r,
|
|
7617
7606
|
ref: t
|
|
7618
7607
|
}) : null;
|
|
7619
7608
|
});
|
|
7620
|
-
|
|
7621
|
-
var
|
|
7622
|
-
let n =
|
|
7609
|
+
kh.displayName = Oh;
|
|
7610
|
+
var Ah = "SelectScrollUpButton", jh = G.forwardRef((e, t) => {
|
|
7611
|
+
let n = ih(Ah, e.__scopeSelect), r = ph(Ah, e.__scopeSelect), [i, a] = G.useState(!1), o = V(t, r.onScrollButtonChange);
|
|
7623
7612
|
return H(() => {
|
|
7624
7613
|
if (n.viewport && n.isPositioned) {
|
|
7625
7614
|
let e = function() {
|
|
@@ -7627,7 +7616,7 @@ var kh = "SelectScrollUpButton", Ah = G.forwardRef((e, t) => {
|
|
|
7627
7616
|
}, t = n.viewport;
|
|
7628
7617
|
return e(), t.addEventListener("scroll", e), () => t.removeEventListener("scroll", e);
|
|
7629
7618
|
}
|
|
7630
|
-
}, [n.viewport, n.isPositioned]), i ? /* @__PURE__ */ q(
|
|
7619
|
+
}, [n.viewport, n.isPositioned]), i ? /* @__PURE__ */ q(Ph, {
|
|
7631
7620
|
...e,
|
|
7632
7621
|
ref: o,
|
|
7633
7622
|
onAutoScroll: () => {
|
|
@@ -7636,9 +7625,9 @@ var kh = "SelectScrollUpButton", Ah = G.forwardRef((e, t) => {
|
|
|
7636
7625
|
}
|
|
7637
7626
|
}) : null;
|
|
7638
7627
|
});
|
|
7639
|
-
|
|
7640
|
-
var
|
|
7641
|
-
let n =
|
|
7628
|
+
jh.displayName = Ah;
|
|
7629
|
+
var Mh = "SelectScrollDownButton", Nh = G.forwardRef((e, t) => {
|
|
7630
|
+
let n = ih(Mh, e.__scopeSelect), r = ph(Mh, e.__scopeSelect), [i, a] = G.useState(!1), o = V(t, r.onScrollButtonChange);
|
|
7642
7631
|
return H(() => {
|
|
7643
7632
|
if (n.viewport && n.isPositioned) {
|
|
7644
7633
|
let e = function() {
|
|
@@ -7647,7 +7636,7 @@ var jh = "SelectScrollDownButton", Mh = G.forwardRef((e, t) => {
|
|
|
7647
7636
|
}, t = n.viewport;
|
|
7648
7637
|
return e(), t.addEventListener("scroll", e), () => t.removeEventListener("scroll", e);
|
|
7649
7638
|
}
|
|
7650
|
-
}, [n.viewport, n.isPositioned]), i ? /* @__PURE__ */ q(
|
|
7639
|
+
}, [n.viewport, n.isPositioned]), i ? /* @__PURE__ */ q(Ph, {
|
|
7651
7640
|
...e,
|
|
7652
7641
|
ref: o,
|
|
7653
7642
|
onAutoScroll: () => {
|
|
@@ -7656,9 +7645,9 @@ var jh = "SelectScrollDownButton", Mh = G.forwardRef((e, t) => {
|
|
|
7656
7645
|
}
|
|
7657
7646
|
}) : null;
|
|
7658
7647
|
});
|
|
7659
|
-
|
|
7660
|
-
var
|
|
7661
|
-
let { __scopeSelect: n, onAutoScroll: r, ...i } = e, a =
|
|
7648
|
+
Nh.displayName = Mh;
|
|
7649
|
+
var Ph = G.forwardRef((e, t) => {
|
|
7650
|
+
let { __scopeSelect: n, onAutoScroll: r, ...i } = e, a = ih("SelectScrollButton", n), o = G.useRef(null), s = jm(n), c = G.useCallback(() => {
|
|
7662
7651
|
o.current !== null && (window.clearInterval(o.current), o.current = null);
|
|
7663
7652
|
}, []);
|
|
7664
7653
|
return G.useEffect(() => () => c(), [c]), H(() => {
|
|
@@ -7681,7 +7670,7 @@ var Nh = G.forwardRef((e, t) => {
|
|
|
7681
7670
|
c();
|
|
7682
7671
|
})
|
|
7683
7672
|
});
|
|
7684
|
-
}),
|
|
7673
|
+
}), Fh = "SelectSeparator", Ih = G.forwardRef((e, t) => {
|
|
7685
7674
|
let { __scopeSelect: n, ...r } = e;
|
|
7686
7675
|
return /* @__PURE__ */ q(U.div, {
|
|
7687
7676
|
"aria-hidden": !0,
|
|
@@ -7689,18 +7678,18 @@ var Nh = G.forwardRef((e, t) => {
|
|
|
7689
7678
|
ref: t
|
|
7690
7679
|
});
|
|
7691
7680
|
});
|
|
7692
|
-
|
|
7693
|
-
var
|
|
7694
|
-
let { __scopeSelect: n, ...r } = e, i =
|
|
7695
|
-
return
|
|
7681
|
+
Ih.displayName = Fh;
|
|
7682
|
+
var Lh = "SelectArrow", Rh = G.forwardRef((e, t) => {
|
|
7683
|
+
let { __scopeSelect: n, ...r } = e, i = Fm(n);
|
|
7684
|
+
return ih(Lh, n).position === "popper" ? /* @__PURE__ */ q(mm, {
|
|
7696
7685
|
...i,
|
|
7697
7686
|
...r,
|
|
7698
7687
|
ref: t
|
|
7699
7688
|
}) : null;
|
|
7700
7689
|
});
|
|
7701
|
-
|
|
7702
|
-
var
|
|
7703
|
-
let r =
|
|
7690
|
+
Rh.displayName = Lh;
|
|
7691
|
+
var zh = "SelectBubbleInput", Bh = G.forwardRef(({ __scopeSelect: e, ...t }, n) => {
|
|
7692
|
+
let r = Lm(zh, e), { value: i, onValueChange: a, required: o, disabled: s, name: c, autoComplete: l, form: u } = r, { nativeOptions: d, nativeSelectKey: f } = r, p = G.useRef(null), m = V(n, p), h = i ?? "", g = ga(h), _ = Array.from(d).some((e) => (e.props.value ?? "") === "");
|
|
7704
7693
|
return G.useEffect(() => {
|
|
7705
7694
|
let e = p.current;
|
|
7706
7695
|
if (!e) return;
|
|
@@ -7720,23 +7709,23 @@ var Rh = "SelectBubbleInput", zh = G.forwardRef(({ __scopeSelect: e, ...t }, n)
|
|
|
7720
7709
|
onChange: (e) => a(e.target.value),
|
|
7721
7710
|
...t,
|
|
7722
7711
|
style: {
|
|
7723
|
-
...
|
|
7712
|
+
...wm,
|
|
7724
7713
|
...t.style
|
|
7725
7714
|
},
|
|
7726
7715
|
ref: m,
|
|
7727
7716
|
defaultValue: h,
|
|
7728
|
-
children: [
|
|
7717
|
+
children: [Hh(i) && !_ ? /* @__PURE__ */ q("option", { value: "" }) : null, Array.from(d)]
|
|
7729
7718
|
}, f);
|
|
7730
7719
|
});
|
|
7731
|
-
|
|
7732
|
-
function
|
|
7720
|
+
Bh.displayName = zh;
|
|
7721
|
+
function Vh(e) {
|
|
7733
7722
|
return typeof e == "function";
|
|
7734
7723
|
}
|
|
7735
|
-
function
|
|
7724
|
+
function Hh(e) {
|
|
7736
7725
|
return e === "" || e === void 0;
|
|
7737
7726
|
}
|
|
7738
|
-
function
|
|
7739
|
-
let t =
|
|
7727
|
+
function Uh(e) {
|
|
7728
|
+
let t = op(e), n = G.useRef(""), r = G.useRef(0), i = G.useCallback((e) => {
|
|
7740
7729
|
let i = n.current + e;
|
|
7741
7730
|
t(i), (function e(t) {
|
|
7742
7731
|
n.current = t, window.clearTimeout(r.current), t !== "" && (r.current = window.setTimeout(() => e(""), 1e3));
|
|
@@ -7750,97 +7739,85 @@ function Hh(e) {
|
|
|
7750
7739
|
a
|
|
7751
7740
|
];
|
|
7752
7741
|
}
|
|
7753
|
-
function
|
|
7754
|
-
let r = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1, a =
|
|
7742
|
+
function Wh(e, t, n) {
|
|
7743
|
+
let r = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1, a = Gh(e, Math.max(i, 0));
|
|
7755
7744
|
r.length === 1 && (a = a.filter((e) => e !== n));
|
|
7756
7745
|
let o = a.find((e) => e.textValue.toLowerCase().startsWith(r.toLowerCase()));
|
|
7757
7746
|
return o === n ? void 0 : o;
|
|
7758
7747
|
}
|
|
7759
|
-
function
|
|
7748
|
+
function Gh(e, t) {
|
|
7760
7749
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
7761
7750
|
}
|
|
7762
7751
|
//#endregion
|
|
7763
7752
|
//#region src/components/SelectBox/SelectBox.tsx
|
|
7764
|
-
function
|
|
7765
|
-
let [
|
|
7753
|
+
function Kh({ groups: e, value: t, placeholder: n = "", disabled: r = !1, size: i = "md", onChange: a, renderValue: o, className: s, error: c, id: l, "aria-describedby": u, "aria-invalid": d }) {
|
|
7754
|
+
let [f, p] = K(!1), [m, h] = K(!1), g = c || d === !0 || d === "true", _ = (() => {
|
|
7766
7755
|
for (let n of e) {
|
|
7767
7756
|
let e = n.options.find((e) => e.value === t);
|
|
7768
7757
|
if (e) return o ? o(e, n) : e.label;
|
|
7769
7758
|
}
|
|
7770
|
-
})(),
|
|
7771
|
-
return /* @__PURE__ */ J(
|
|
7772
|
-
|
|
7773
|
-
|
|
7774
|
-
|
|
7775
|
-
|
|
7776
|
-
|
|
7777
|
-
|
|
7778
|
-
|
|
7779
|
-
|
|
7780
|
-
|
|
7781
|
-
|
|
7782
|
-
|
|
7783
|
-
|
|
7784
|
-
|
|
7785
|
-
|
|
7786
|
-
|
|
7787
|
-
|
|
7788
|
-
|
|
7789
|
-
|
|
7790
|
-
|
|
7791
|
-
|
|
7792
|
-
|
|
7793
|
-
|
|
7794
|
-
|
|
7795
|
-
|
|
7796
|
-
|
|
7797
|
-
|
|
7798
|
-
size:
|
|
7799
|
-
layout: "inline",
|
|
7800
|
-
endContent: /* @__PURE__ */ q(qm, {
|
|
7801
|
-
asChild: !0,
|
|
7802
|
-
children: /* @__PURE__ */ q("span", {
|
|
7803
|
-
className: R("aivex:transition-transform aivex:duration-200 aivex:text-text-secondary", d && "aivex:rotate-180"),
|
|
7804
|
-
children: /* @__PURE__ */ q(pe, { size: g })
|
|
7805
|
-
})
|
|
7806
|
-
}),
|
|
7807
|
-
children: /* @__PURE__ */ q("span", {
|
|
7808
|
-
className: R("aivex:flex-1 aivex:min-w-0 aivex:truncate", i === "sm" ? "aivex:text-body-md-regular" : "aivex:text-body-lg-regular", h ? "aivex:text-text-primary" : "aivex:text-text-tertiary"),
|
|
7809
|
-
children: h ?? n
|
|
7810
|
-
})
|
|
7759
|
+
})(), v = i === "sm" ? 16 : 20;
|
|
7760
|
+
return /* @__PURE__ */ J(Hm, {
|
|
7761
|
+
value: t || void 0,
|
|
7762
|
+
onValueChange: a,
|
|
7763
|
+
disabled: r,
|
|
7764
|
+
open: f,
|
|
7765
|
+
onOpenChange: p,
|
|
7766
|
+
children: [/* @__PURE__ */ q(Wm, {
|
|
7767
|
+
asChild: !0,
|
|
7768
|
+
"aria-invalid": g || void 0,
|
|
7769
|
+
children: /* @__PURE__ */ q("button", {
|
|
7770
|
+
type: "button",
|
|
7771
|
+
id: l,
|
|
7772
|
+
"aria-describedby": u,
|
|
7773
|
+
onFocus: () => h(!0),
|
|
7774
|
+
onBlur: () => h(!1),
|
|
7775
|
+
className: R("aivex:w-full aivex:cursor-pointer aivex:rounded-md aivex:text-left aivex:outline-none", r && "aivex:cursor-not-allowed", s),
|
|
7776
|
+
children: /* @__PURE__ */ q($l, {
|
|
7777
|
+
disabled: r,
|
|
7778
|
+
focused: f || m,
|
|
7779
|
+
error: g,
|
|
7780
|
+
filled: !!_,
|
|
7781
|
+
size: i,
|
|
7782
|
+
layout: "inline",
|
|
7783
|
+
endContent: /* @__PURE__ */ q(Jm, {
|
|
7784
|
+
asChild: !0,
|
|
7785
|
+
children: /* @__PURE__ */ q("span", {
|
|
7786
|
+
className: R("aivex:transition-transform aivex:duration-200 aivex:text-text-secondary", f && "aivex:rotate-180"),
|
|
7787
|
+
children: /* @__PURE__ */ q(fe, { size: v })
|
|
7811
7788
|
})
|
|
7789
|
+
}),
|
|
7790
|
+
children: /* @__PURE__ */ q("span", {
|
|
7791
|
+
className: R("aivex:flex-1 aivex:min-w-0 aivex:truncate", i === "sm" ? "aivex:text-body-md-regular" : "aivex:text-body-lg-regular", _ ? "aivex:text-text-primary" : "aivex:text-text-tertiary"),
|
|
7792
|
+
children: _ ?? n
|
|
7812
7793
|
})
|
|
7813
|
-
})
|
|
7814
|
-
position: "popper",
|
|
7815
|
-
sideOffset: 4,
|
|
7816
|
-
className: R("aivex:z-50 aivex:min-w-[var(--radix-select-trigger-width)] aivex:max-w-[var(--radix-select-trigger-width)]", "aivex:rounded-md aivex:bg-bg-primary aivex:shadow-md aivex:border aivex:border-border-subtle", "aivex:max-h-[312px] aivex:overflow-hidden", "aivex:data-[state=open]:animate-in aivex:data-[state=open]:fade-in-0 aivex:data-[state=open]:zoom-in-95", "aivex:data-[state=closed]:animate-out aivex:data-[state=closed]:fade-out-0 aivex:data-[state=closed]:zoom-out-95"),
|
|
7817
|
-
children: /* @__PURE__ */ q(mh, {
|
|
7818
|
-
className: "aivex:p-xs",
|
|
7819
|
-
children: e.map((e, t) => /* @__PURE__ */ J(Ca, { children: [t > 0 && /* @__PURE__ */ q(Fh, { className: "aivex:my-xs aivex:border-t aivex:border-border-default" }), /* @__PURE__ */ J(vh, { children: [e.title && /* @__PURE__ */ q(bh, {
|
|
7820
|
-
className: "aivex:px-lg aivex:py-xs aivex:text-caption-md aivex:text-text-tertiary aivex:select-none",
|
|
7821
|
-
children: e.title
|
|
7822
|
-
}), e.options.map((e) => /* @__PURE__ */ J(wh, {
|
|
7823
|
-
value: e.value,
|
|
7824
|
-
disabled: e.disabled,
|
|
7825
|
-
className: R("aivex:relative aivex:overflow-hidden aivex:group", "aivex:flex aivex:h-8 aivex:w-full aivex:items-center", "aivex:px-lg aivex:rounded-sm aivex:transition-colors", "aivex:cursor-pointer aivex:select-none aivex:outline-none", "aivex:data-[disabled]:cursor-not-allowed aivex:data-[disabled]:opacity-disable", i === "sm" ? "aivex:text-body-md-regular" : "aivex:text-body-lg-regular", e.danger ? "aivex:text-text-danger" : "aivex:text-text-primary"),
|
|
7826
|
-
children: [/* @__PURE__ */ q("span", { className: R("aivex:pointer-events-none aivex:absolute aivex:inset-0 aivex:opacity-0 aivex:transition-opacity", e.danger ? "aivex:bg-bg-danger aivex:group-data-[highlighted]:opacity-8 aivex:group-active:opacity-16" : "aivex:bg-bg-inverse-strong aivex:group-data-[highlighted]:opacity-4 aivex:group-active:opacity-8") }), /* @__PURE__ */ q(Eh, { children: /* @__PURE__ */ q("span", {
|
|
7827
|
-
className: "aivex:truncate",
|
|
7828
|
-
children: e.label
|
|
7829
|
-
}) })]
|
|
7830
|
-
}, e.key ?? e.value))] })] }, e.title ?? `group-${t}`))
|
|
7831
|
-
})
|
|
7832
|
-
}) })]
|
|
7833
|
-
}),
|
|
7834
|
-
l && /* @__PURE__ */ q("p", {
|
|
7835
|
-
className: R("aivex:text-caption-md aivex:text-text-secondary aivex:line-clamp-2", !r && u && "aivex:text-text-danger"),
|
|
7836
|
-
children: l
|
|
7794
|
+
})
|
|
7837
7795
|
})
|
|
7838
|
-
|
|
7796
|
+
}), /* @__PURE__ */ q(Qm, { children: /* @__PURE__ */ q(eh, {
|
|
7797
|
+
position: "popper",
|
|
7798
|
+
sideOffset: 4,
|
|
7799
|
+
className: R("aivex:z-50 aivex:min-w-[var(--radix-select-trigger-width)] aivex:max-w-[var(--radix-select-trigger-width)]", "aivex:rounded-md aivex:bg-bg-primary aivex:shadow-md aivex:border aivex:border-border-subtle", "aivex:max-h-[312px] aivex:overflow-hidden", "aivex:data-[state=open]:animate-in aivex:data-[state=open]:fade-in-0 aivex:data-[state=open]:zoom-in-95", "aivex:data-[state=closed]:animate-out aivex:data-[state=closed]:fade-out-0 aivex:data-[state=closed]:zoom-out-95"),
|
|
7800
|
+
children: /* @__PURE__ */ q(hh, {
|
|
7801
|
+
className: "aivex:p-xs",
|
|
7802
|
+
children: e.map((e, t) => /* @__PURE__ */ J(Ca, { children: [t > 0 && /* @__PURE__ */ q(Ih, { className: "aivex:my-xs aivex:border-t aivex:border-border-default" }), /* @__PURE__ */ J(yh, { children: [e.title && /* @__PURE__ */ q(xh, {
|
|
7803
|
+
className: "aivex:px-lg aivex:py-xs aivex:text-caption-md aivex:text-text-tertiary aivex:select-none",
|
|
7804
|
+
children: e.title
|
|
7805
|
+
}), e.options.map((e) => /* @__PURE__ */ J(Th, {
|
|
7806
|
+
value: e.value,
|
|
7807
|
+
disabled: e.disabled,
|
|
7808
|
+
className: R("aivex:relative aivex:overflow-hidden aivex:group", "aivex:flex aivex:h-8 aivex:w-full aivex:items-center", "aivex:px-lg aivex:rounded-sm aivex:transition-colors", "aivex:cursor-pointer aivex:select-none aivex:outline-none", "aivex:data-[disabled]:cursor-not-allowed aivex:data-[disabled]:opacity-disable", i === "sm" ? "aivex:text-body-md-regular" : "aivex:text-body-lg-regular", e.danger ? "aivex:text-text-danger" : "aivex:text-text-primary"),
|
|
7809
|
+
children: [/* @__PURE__ */ q("span", { className: R("aivex:pointer-events-none aivex:absolute aivex:inset-0 aivex:opacity-0 aivex:transition-opacity", e.danger ? "aivex:bg-bg-danger aivex:group-data-[highlighted]:opacity-8 aivex:group-active:opacity-16" : "aivex:bg-bg-inverse-strong aivex:group-data-[highlighted]:opacity-4 aivex:group-active:opacity-8") }), /* @__PURE__ */ q(Dh, { children: /* @__PURE__ */ q("span", {
|
|
7810
|
+
className: "aivex:truncate",
|
|
7811
|
+
children: e.label
|
|
7812
|
+
}) })]
|
|
7813
|
+
}, e.key ?? e.value))] })] }, e.title ?? `group-${t}`))
|
|
7814
|
+
})
|
|
7815
|
+
}) })]
|
|
7839
7816
|
});
|
|
7840
7817
|
}
|
|
7841
7818
|
//#endregion
|
|
7842
7819
|
//#region src/components/Pagination/Pagination.tsx
|
|
7843
|
-
function
|
|
7820
|
+
function qh({ onClick: e, disabled: t, "aria-label": n, children: r }) {
|
|
7844
7821
|
return /* @__PURE__ */ J("button", {
|
|
7845
7822
|
type: "button",
|
|
7846
7823
|
"aria-label": n,
|
|
@@ -7850,7 +7827,7 @@ function Kh({ onClick: e, disabled: t, "aria-label": n, children: r }) {
|
|
|
7850
7827
|
children: [/* @__PURE__ */ q(br, { variant: "default" }), r]
|
|
7851
7828
|
});
|
|
7852
7829
|
}
|
|
7853
|
-
function
|
|
7830
|
+
function Jh({ page: e, isActive: t, disabled: n, onClick: r }) {
|
|
7854
7831
|
return /* @__PURE__ */ J("button", {
|
|
7855
7832
|
type: "button",
|
|
7856
7833
|
"aria-label": `Page ${e}`,
|
|
@@ -7864,7 +7841,7 @@ function qh({ page: e, isActive: t, disabled: n, onClick: r }) {
|
|
|
7864
7841
|
})]
|
|
7865
7842
|
});
|
|
7866
7843
|
}
|
|
7867
|
-
function
|
|
7844
|
+
function Yh({ className: e, totalPages: t, page: n, pageSize: r, disabled: i, pageSizeOptions: a, onChange: o, onPageSizeChange: s, ref: c, ...l }) {
|
|
7868
7845
|
let u = Ma(void 0);
|
|
7869
7846
|
t != null && (u.current = t);
|
|
7870
7847
|
let d = t ?? u.current;
|
|
@@ -7884,12 +7861,12 @@ function Jh({ className: e, totalPages: t, page: n, pageSize: r, disabled: i, pa
|
|
|
7884
7861
|
children: [
|
|
7885
7862
|
/* @__PURE__ */ J("div", {
|
|
7886
7863
|
className: "aivex:flex aivex:gap-2",
|
|
7887
|
-
children: [/* @__PURE__ */ q(
|
|
7864
|
+
children: [/* @__PURE__ */ q(qh, {
|
|
7888
7865
|
"aria-label": "First page",
|
|
7889
7866
|
disabled: i || y,
|
|
7890
7867
|
onClick: () => o(1),
|
|
7891
7868
|
children: /* @__PURE__ */ q(Xi, { size: 16 })
|
|
7892
|
-
}), /* @__PURE__ */ q(
|
|
7869
|
+
}), /* @__PURE__ */ q(qh, {
|
|
7893
7870
|
"aria-label": "Previous page group",
|
|
7894
7871
|
disabled: i || y,
|
|
7895
7872
|
onClick: () => o(g - 10),
|
|
@@ -7898,7 +7875,7 @@ function Jh({ className: e, totalPages: t, page: n, pageSize: r, disabled: i, pa
|
|
|
7898
7875
|
}),
|
|
7899
7876
|
/* @__PURE__ */ q("div", {
|
|
7900
7877
|
className: "aivex:flex aivex:gap-2",
|
|
7901
|
-
children: v.map((e) => /* @__PURE__ */ q(
|
|
7878
|
+
children: v.map((e) => /* @__PURE__ */ q(Jh, {
|
|
7902
7879
|
page: e,
|
|
7903
7880
|
isActive: e === p,
|
|
7904
7881
|
disabled: i,
|
|
@@ -7907,12 +7884,12 @@ function Jh({ className: e, totalPages: t, page: n, pageSize: r, disabled: i, pa
|
|
|
7907
7884
|
}),
|
|
7908
7885
|
/* @__PURE__ */ J("div", {
|
|
7909
7886
|
className: "aivex:flex aivex:gap-2",
|
|
7910
|
-
children: [/* @__PURE__ */ q(
|
|
7887
|
+
children: [/* @__PURE__ */ q(qh, {
|
|
7911
7888
|
"aria-label": "Next page group",
|
|
7912
7889
|
disabled: i || b,
|
|
7913
7890
|
onClick: () => o(_ + 1),
|
|
7914
7891
|
children: /* @__PURE__ */ q(zt, { size: 16 })
|
|
7915
|
-
}), /* @__PURE__ */ q(
|
|
7892
|
+
}), /* @__PURE__ */ q(qh, {
|
|
7916
7893
|
"aria-label": "Last page",
|
|
7917
7894
|
disabled: i || b,
|
|
7918
7895
|
onClick: () => o(f),
|
|
@@ -7923,7 +7900,7 @@ function Jh({ className: e, totalPages: t, page: n, pageSize: r, disabled: i, pa
|
|
|
7923
7900
|
}),
|
|
7924
7901
|
/* @__PURE__ */ q("div", {
|
|
7925
7902
|
className: "aivex:flex-1 aivex:flex aivex:items-center aivex:justify-end",
|
|
7926
|
-
children: a && /* @__PURE__ */ q(
|
|
7903
|
+
children: a && /* @__PURE__ */ q(Kh, {
|
|
7927
7904
|
size: "sm",
|
|
7928
7905
|
className: "aivex:w-[116px] aivex:shrink-0",
|
|
7929
7906
|
value: String(r),
|
|
@@ -7940,21 +7917,21 @@ function Jh({ className: e, totalPages: t, page: n, pageSize: r, disabled: i, pa
|
|
|
7940
7917
|
}
|
|
7941
7918
|
//#endregion
|
|
7942
7919
|
//#region src/components/Panel/Panel.tsx
|
|
7943
|
-
var
|
|
7920
|
+
var Xh = {
|
|
7944
7921
|
left: "aivex:left-0 aivex:border-r",
|
|
7945
7922
|
right: "aivex:right-0 aivex:border-l"
|
|
7946
|
-
},
|
|
7923
|
+
}, Zh = {
|
|
7947
7924
|
md: "aivex:w-[384px]",
|
|
7948
7925
|
lg: "aivex:w-[450px]"
|
|
7949
7926
|
};
|
|
7950
|
-
function
|
|
7927
|
+
function Qh({ open: e, onOpenChange: t, title: n, children: r, headerAction: i, side: a = "right", size: o = "md", ref: s }) {
|
|
7951
7928
|
return /* @__PURE__ */ q(od, {
|
|
7952
7929
|
open: e,
|
|
7953
7930
|
onOpenChange: t,
|
|
7954
7931
|
children: /* @__PURE__ */ J(cd, { children: [/* @__PURE__ */ q(ld, { className: "aivex:panel-overlay aivex:fixed aivex:inset-0 aivex:z-50 aivex:bg-black/30" }), /* @__PURE__ */ J(ud, {
|
|
7955
7932
|
ref: s,
|
|
7956
7933
|
"data-side": a,
|
|
7957
|
-
className: R("aivex:panel-content aivex:fixed aivex:top-0 aivex:z-50 aivex:flex aivex:h-dvh aivex:max-w-[calc(100vw-32px)] aivex:flex-col aivex:overflow-hidden", "aivex:border-border-subtle aivex:bg-bg-primary aivex:shadow-xl aivex:outline-none",
|
|
7934
|
+
className: R("aivex:panel-content aivex:fixed aivex:top-0 aivex:z-50 aivex:flex aivex:h-dvh aivex:max-w-[calc(100vw-32px)] aivex:flex-col aivex:overflow-hidden", "aivex:border-border-subtle aivex:bg-bg-primary aivex:shadow-xl aivex:outline-none", Xh[a], Zh[o]),
|
|
7958
7935
|
onKeyDown: (e) => {
|
|
7959
7936
|
e.stopPropagation();
|
|
7960
7937
|
},
|
|
@@ -7984,14 +7961,14 @@ function Zh({ open: e, onOpenChange: t, title: n, children: r, headerAction: i,
|
|
|
7984
7961
|
}
|
|
7985
7962
|
//#endregion
|
|
7986
7963
|
//#region src/components/ProgressBar/ProgressBar.tsx
|
|
7987
|
-
var
|
|
7964
|
+
var $h = {
|
|
7988
7965
|
success: { fill: "var(--aivex-bg-success-glow)" },
|
|
7989
7966
|
warning: { fill: "var(--aivex-bg-warning-glow)" },
|
|
7990
7967
|
info: { fill: "var(--aivex-bg-info-glow)" },
|
|
7991
7968
|
danger: { fill: "var(--aivex-bg-danger-glow)" }
|
|
7992
|
-
},
|
|
7993
|
-
function
|
|
7994
|
-
let u =
|
|
7969
|
+
}, eg = (e) => typeof e == "number" ? `${e}px` : e, tg = (e, t) => !Number.isFinite(e) || !Number.isFinite(t) || t <= 0 ? 0 : Math.min(100, Math.max(0, e / t * 100));
|
|
7970
|
+
function ng({ className: e, current: t, total: n, color: r = "success", width: i = "100%", height: a = 6, isProgressing: o = !1, ref: s, style: c, ...l }) {
|
|
7971
|
+
let u = tg(t, n), d = eg(i), f = eg(a), p = $h[r], m = o ? {
|
|
7995
7972
|
width: "100%",
|
|
7996
7973
|
backgroundImage: `linear-gradient(90deg, ${p.fill} 0%, color-mix(in srgb, ${p.fill}, #fff 35%) 50%, ${p.fill} 100%)`
|
|
7997
7974
|
} : {
|
|
@@ -8019,20 +7996,20 @@ function tg({ className: e, current: t, total: n, color: r = "success", width: i
|
|
|
8019
7996
|
}
|
|
8020
7997
|
//#endregion
|
|
8021
7998
|
//#region src/components/Radio/Radio.tsx
|
|
8022
|
-
var
|
|
7999
|
+
var rg = W("aivex:peer aivex:relative aivex:m-0 aivex:shrink-0 aivex:rounded-full aivex:border aivex:border-border-default aivex:bg-bg-primary aivex:appearance-none aivex:cursor-pointer aivex:transition-colors aivex:checked:border-transparent aivex:checked:bg-bg-brand", {
|
|
8023
8000
|
variants: { size: {
|
|
8024
8001
|
sm: "aivex:w-4 aivex:h-4",
|
|
8025
8002
|
md: "aivex:w-[18px] aivex:h-[18px]"
|
|
8026
8003
|
} },
|
|
8027
8004
|
defaultVariants: { size: "md" }
|
|
8028
|
-
}),
|
|
8005
|
+
}), ig = {
|
|
8029
8006
|
sm: "aivex:w-5 aivex:h-5",
|
|
8030
8007
|
md: "aivex:w-6 aivex:h-6"
|
|
8031
|
-
},
|
|
8008
|
+
}, ag = {
|
|
8032
8009
|
sm: "aivex:h-5",
|
|
8033
8010
|
md: "aivex:h-6"
|
|
8034
8011
|
};
|
|
8035
|
-
function
|
|
8012
|
+
function og({ className: e, label: t, size: n = "md", disabled: r, checked: i, id: a, ref: o, ...s }) {
|
|
8036
8013
|
let c = n ?? "md", l = {
|
|
8037
8014
|
sm: "aivex:w-2 aivex:h-2",
|
|
8038
8015
|
md: "aivex:w-2.5 aivex:h-2.5"
|
|
@@ -8040,7 +8017,7 @@ function ag({ className: e, label: t, size: n = "md", disabled: r, checked: i, i
|
|
|
8040
8017
|
return /* @__PURE__ */ J("span", {
|
|
8041
8018
|
className: R("aivex:inline-flex aivex:items-center aivex:gap-md", r && "aivex:opacity-disable aivex:pointer-events-none"),
|
|
8042
8019
|
children: [/* @__PURE__ */ J("span", {
|
|
8043
|
-
className: R("aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:group",
|
|
8020
|
+
className: R("aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:group", ig[c]),
|
|
8044
8021
|
children: [
|
|
8045
8022
|
/* @__PURE__ */ q("span", { className: "aivex:absolute aivex:-inset-1 aivex:rounded-full aivex:bg-bg-inverse-strong aivex:opacity-0 aivex:group-hover:opacity-4 aivex:group-active:opacity-8 aivex:pointer-events-none aivex:transition-opacity" }),
|
|
8046
8023
|
/* @__PURE__ */ q("input", {
|
|
@@ -8049,28 +8026,28 @@ function ag({ className: e, label: t, size: n = "md", disabled: r, checked: i, i
|
|
|
8049
8026
|
type: "radio",
|
|
8050
8027
|
disabled: r,
|
|
8051
8028
|
checked: i,
|
|
8052
|
-
className: R(
|
|
8029
|
+
className: R(rg({ size: c }), e),
|
|
8053
8030
|
...s
|
|
8054
8031
|
}),
|
|
8055
8032
|
/* @__PURE__ */ q("span", { className: R("aivex:pointer-events-none aivex:absolute aivex:rounded-full aivex:bg-white aivex:opacity-0 aivex:transition-opacity aivex:peer-checked:opacity-100", l) })
|
|
8056
8033
|
]
|
|
8057
8034
|
}), t && /* @__PURE__ */ q("label", {
|
|
8058
8035
|
htmlFor: d,
|
|
8059
|
-
className: R("aivex:inline-flex aivex:items-center aivex:cursor-pointer aivex:select-none aivex:text-label-lg aivex:text-text-primary", r && "aivex:cursor-not-allowed",
|
|
8036
|
+
className: R("aivex:inline-flex aivex:items-center aivex:cursor-pointer aivex:select-none aivex:text-label-lg aivex:text-text-primary", r && "aivex:cursor-not-allowed", ag[c]),
|
|
8060
8037
|
children: t
|
|
8061
8038
|
})]
|
|
8062
8039
|
});
|
|
8063
8040
|
}
|
|
8064
8041
|
//#endregion
|
|
8065
8042
|
//#region node_modules/.pnpm/@radix-ui+react-toggle@1.1.10_@types+react-dom@19.2.3_@types+react@19.2.14__@types+reac_5aafffea7332d28773a4c35f8d29c0fc/node_modules/@radix-ui/react-toggle/dist/index.mjs
|
|
8066
|
-
var
|
|
8043
|
+
var sg = "Toggle", cg = G.forwardRef((e, t) => {
|
|
8067
8044
|
let { pressed: n, defaultPressed: r, onPressedChange: i, ...a } = e, [o, s] = Dn({
|
|
8068
8045
|
prop: n,
|
|
8069
8046
|
onChange: i,
|
|
8070
8047
|
defaultProp: r ?? !1,
|
|
8071
|
-
caller:
|
|
8048
|
+
caller: sg
|
|
8072
8049
|
});
|
|
8073
|
-
return /* @__PURE__ */ q(
|
|
8050
|
+
return /* @__PURE__ */ q(L.button, {
|
|
8074
8051
|
type: "button",
|
|
8075
8052
|
"aria-pressed": o,
|
|
8076
8053
|
"data-state": o ? "on" : "off",
|
|
@@ -8082,67 +8059,67 @@ var og = "Toggle", sg = G.forwardRef((e, t) => {
|
|
|
8082
8059
|
})
|
|
8083
8060
|
});
|
|
8084
8061
|
});
|
|
8085
|
-
|
|
8062
|
+
cg.displayName = sg;
|
|
8086
8063
|
//#endregion
|
|
8087
8064
|
//#region node_modules/.pnpm/@radix-ui+react-toggle-group@1.1.11_@types+react-dom@19.2.3_@types+react@19.2.14__@type_fed8a0bacc2c1488680f0197ab4d1eba/node_modules/@radix-ui/react-toggle-group/dist/index.mjs
|
|
8088
|
-
var
|
|
8065
|
+
var lg = "ToggleGroup", [ug, dg] = me(lg, [sa]), fg = sa(), pg = Sa.forwardRef((e, t) => {
|
|
8089
8066
|
let { type: n, ...r } = e;
|
|
8090
|
-
if (n === "single") return /* @__PURE__ */ q(
|
|
8067
|
+
if (n === "single") return /* @__PURE__ */ q(gg, {
|
|
8091
8068
|
...r,
|
|
8092
8069
|
ref: t
|
|
8093
8070
|
});
|
|
8094
|
-
if (n === "multiple") return /* @__PURE__ */ q(
|
|
8071
|
+
if (n === "multiple") return /* @__PURE__ */ q(_g, {
|
|
8095
8072
|
...r,
|
|
8096
8073
|
ref: t
|
|
8097
8074
|
});
|
|
8098
|
-
throw Error(`Missing prop \`type\` expected on \`${
|
|
8075
|
+
throw Error(`Missing prop \`type\` expected on \`${lg}\``);
|
|
8099
8076
|
});
|
|
8100
|
-
|
|
8101
|
-
var [
|
|
8077
|
+
pg.displayName = lg;
|
|
8078
|
+
var [mg, hg] = ug(lg), gg = Sa.forwardRef((e, t) => {
|
|
8102
8079
|
let { value: n, defaultValue: r, onValueChange: i = () => {}, ...a } = e, [o, s] = Dn({
|
|
8103
8080
|
prop: n,
|
|
8104
8081
|
defaultProp: r ?? "",
|
|
8105
8082
|
onChange: i,
|
|
8106
|
-
caller:
|
|
8083
|
+
caller: lg
|
|
8107
8084
|
});
|
|
8108
|
-
return /* @__PURE__ */ q(
|
|
8085
|
+
return /* @__PURE__ */ q(mg, {
|
|
8109
8086
|
scope: e.__scopeToggleGroup,
|
|
8110
8087
|
type: "single",
|
|
8111
8088
|
value: Sa.useMemo(() => o ? [o] : [], [o]),
|
|
8112
8089
|
onItemActivate: s,
|
|
8113
8090
|
onItemDeactivate: Sa.useCallback(() => s(""), [s]),
|
|
8114
|
-
children: /* @__PURE__ */ q(
|
|
8091
|
+
children: /* @__PURE__ */ q(bg, {
|
|
8115
8092
|
...a,
|
|
8116
8093
|
ref: t
|
|
8117
8094
|
})
|
|
8118
8095
|
});
|
|
8119
|
-
}),
|
|
8096
|
+
}), _g = Sa.forwardRef((e, t) => {
|
|
8120
8097
|
let { value: n, defaultValue: r, onValueChange: i = () => {}, ...a } = e, [o, s] = Dn({
|
|
8121
8098
|
prop: n,
|
|
8122
8099
|
defaultProp: r ?? [],
|
|
8123
8100
|
onChange: i,
|
|
8124
|
-
caller:
|
|
8101
|
+
caller: lg
|
|
8125
8102
|
}), c = Sa.useCallback((e) => s((t = []) => [...t, e]), [s]), l = Sa.useCallback((e) => s((t = []) => t.filter((t) => t !== e)), [s]);
|
|
8126
|
-
return /* @__PURE__ */ q(
|
|
8103
|
+
return /* @__PURE__ */ q(mg, {
|
|
8127
8104
|
scope: e.__scopeToggleGroup,
|
|
8128
8105
|
type: "multiple",
|
|
8129
8106
|
value: o,
|
|
8130
8107
|
onItemActivate: c,
|
|
8131
8108
|
onItemDeactivate: l,
|
|
8132
|
-
children: /* @__PURE__ */ q(
|
|
8109
|
+
children: /* @__PURE__ */ q(bg, {
|
|
8133
8110
|
...a,
|
|
8134
8111
|
ref: t
|
|
8135
8112
|
})
|
|
8136
8113
|
});
|
|
8137
8114
|
});
|
|
8138
|
-
|
|
8139
|
-
var [
|
|
8140
|
-
let { __scopeToggleGroup: n, disabled: r = !1, rovingFocus: i = !0, orientation: a, dir: o, loop: s = !0, ...c } = e, l =
|
|
8115
|
+
pg.displayName = lg;
|
|
8116
|
+
var [vg, yg] = ug(lg), bg = Sa.forwardRef((e, t) => {
|
|
8117
|
+
let { __scopeToggleGroup: n, disabled: r = !1, rovingFocus: i = !0, orientation: a, dir: o, loop: s = !0, ...c } = e, l = fg(n), u = ra(o), d = {
|
|
8141
8118
|
role: "group",
|
|
8142
8119
|
dir: u,
|
|
8143
8120
|
...c
|
|
8144
8121
|
};
|
|
8145
|
-
return /* @__PURE__ */ q(
|
|
8122
|
+
return /* @__PURE__ */ q(vg, {
|
|
8146
8123
|
scope: n,
|
|
8147
8124
|
rovingFocus: i,
|
|
8148
8125
|
disabled: r,
|
|
@@ -8152,17 +8129,17 @@ var [_g, vg] = lg(cg), yg = Sa.forwardRef((e, t) => {
|
|
|
8152
8129
|
orientation: a,
|
|
8153
8130
|
dir: u,
|
|
8154
8131
|
loop: s,
|
|
8155
|
-
children: /* @__PURE__ */ q(
|
|
8132
|
+
children: /* @__PURE__ */ q(L.div, {
|
|
8156
8133
|
...d,
|
|
8157
8134
|
ref: t
|
|
8158
8135
|
})
|
|
8159
|
-
}) : /* @__PURE__ */ q(
|
|
8136
|
+
}) : /* @__PURE__ */ q(L.div, {
|
|
8160
8137
|
...d,
|
|
8161
8138
|
ref: t
|
|
8162
8139
|
})
|
|
8163
8140
|
});
|
|
8164
|
-
}),
|
|
8165
|
-
let n =
|
|
8141
|
+
}), xg = "ToggleGroupItem", Sg = Sa.forwardRef((e, t) => {
|
|
8142
|
+
let n = hg(xg, e.__scopeToggleGroup), r = yg(xg, e.__scopeToggleGroup), i = fg(e.__scopeToggleGroup), a = n.value.includes(e.value), o = r.disabled || e.disabled, s = {
|
|
8166
8143
|
...e,
|
|
8167
8144
|
pressed: a,
|
|
8168
8145
|
disabled: o
|
|
@@ -8173,23 +8150,23 @@ var [_g, vg] = lg(cg), yg = Sa.forwardRef((e, t) => {
|
|
|
8173
8150
|
focusable: !o,
|
|
8174
8151
|
active: a,
|
|
8175
8152
|
ref: c,
|
|
8176
|
-
children: /* @__PURE__ */ q(
|
|
8153
|
+
children: /* @__PURE__ */ q(Cg, {
|
|
8177
8154
|
...s,
|
|
8178
8155
|
ref: t
|
|
8179
8156
|
})
|
|
8180
|
-
}) : /* @__PURE__ */ q(
|
|
8157
|
+
}) : /* @__PURE__ */ q(Cg, {
|
|
8181
8158
|
...s,
|
|
8182
8159
|
ref: t
|
|
8183
8160
|
});
|
|
8184
8161
|
});
|
|
8185
|
-
|
|
8186
|
-
var
|
|
8187
|
-
let { __scopeToggleGroup: n, value: r, ...i } = e, a =
|
|
8162
|
+
Sg.displayName = xg;
|
|
8163
|
+
var Cg = Sa.forwardRef((e, t) => {
|
|
8164
|
+
let { __scopeToggleGroup: n, value: r, ...i } = e, a = hg(xg, n), o = {
|
|
8188
8165
|
role: "radio",
|
|
8189
8166
|
"aria-checked": e.pressed,
|
|
8190
8167
|
"aria-pressed": void 0
|
|
8191
8168
|
};
|
|
8192
|
-
return /* @__PURE__ */ q(
|
|
8169
|
+
return /* @__PURE__ */ q(cg, {
|
|
8193
8170
|
...a.type === "single" ? o : void 0,
|
|
8194
8171
|
...i,
|
|
8195
8172
|
ref: t,
|
|
@@ -8197,7 +8174,7 @@ var Sg = Sa.forwardRef((e, t) => {
|
|
|
8197
8174
|
e ? a.onItemActivate(r) : a.onItemDeactivate(r);
|
|
8198
8175
|
}
|
|
8199
8176
|
});
|
|
8200
|
-
}),
|
|
8177
|
+
}), wg = pg, Tg = Sg, Eg = Ta({ size: "md" }), Dg = {
|
|
8201
8178
|
sm: "aivex:h-7",
|
|
8202
8179
|
md: "aivex:h-8",
|
|
8203
8180
|
lg: "aivex:h-10 aivex:rounded-md",
|
|
@@ -8205,27 +8182,27 @@ var Sg = Sa.forwardRef((e, t) => {
|
|
|
8205
8182
|
"icon-md": "aivex:h-8",
|
|
8206
8183
|
"icon-lg": "aivex:h-10 aivex:rounded-md"
|
|
8207
8184
|
};
|
|
8208
|
-
function
|
|
8185
|
+
function Og({ className: e, size: t = "md", value: n, defaultValue: r, onValueChange: i, fullWidth: a, children: o, ref: s, ...c }) {
|
|
8209
8186
|
let l = n !== void 0, [u, d] = K(r ?? n ?? ""), f = l ? n : u;
|
|
8210
|
-
return /* @__PURE__ */ q(
|
|
8187
|
+
return /* @__PURE__ */ q(Eg.Provider, {
|
|
8211
8188
|
value: {
|
|
8212
8189
|
size: t,
|
|
8213
8190
|
fullWidth: a
|
|
8214
8191
|
},
|
|
8215
|
-
children: /* @__PURE__ */ q(
|
|
8192
|
+
children: /* @__PURE__ */ q(wg, {
|
|
8216
8193
|
ref: s,
|
|
8217
8194
|
type: "single",
|
|
8218
8195
|
value: f,
|
|
8219
8196
|
onValueChange: (e) => {
|
|
8220
8197
|
e && (l || d(e), i?.(e));
|
|
8221
8198
|
},
|
|
8222
|
-
className: R("aivex:inline-flex aivex:items-center aivex:justify-center aivex:rounded-sm aivex:bg-bg-tertiary aivex:p-2xs", a ? "aivex:w-full" : "aivex:w-fit",
|
|
8199
|
+
className: R("aivex:inline-flex aivex:items-center aivex:justify-center aivex:rounded-sm aivex:bg-bg-tertiary aivex:p-2xs", a ? "aivex:w-full" : "aivex:w-fit", Dg[t], e),
|
|
8223
8200
|
...c,
|
|
8224
8201
|
children: o
|
|
8225
8202
|
})
|
|
8226
8203
|
});
|
|
8227
8204
|
}
|
|
8228
|
-
var
|
|
8205
|
+
var kg = {
|
|
8229
8206
|
sm: "aivex:h-6 aivex:px-md aivex:text-label-sm aivex:[&>svg]:size-4",
|
|
8230
8207
|
md: "aivex:h-7 aivex:px-md aivex:text-label-lg aivex:[&>svg]:size-4",
|
|
8231
8208
|
lg: "aivex:h-9 aivex:px-lg aivex:text-label-xl aivex:rounded-sm aivex:[&>svg]:size-5",
|
|
@@ -8233,41 +8210,41 @@ var Og = {
|
|
|
8233
8210
|
"icon-md": "aivex:h-7 aivex:w-7 aivex:px-xs aivex:[&>svg]:size-5",
|
|
8234
8211
|
"icon-lg": "aivex:h-9 aivex:w-9 aivex:px-sm aivex:rounded-sm aivex:[&>svg]:size-6"
|
|
8235
8212
|
};
|
|
8236
|
-
function
|
|
8237
|
-
let { size: i, fullWidth: a } = ka(
|
|
8238
|
-
return /* @__PURE__ */ q(
|
|
8213
|
+
function Ag({ className: e, children: t, ref: n, ...r }) {
|
|
8214
|
+
let { size: i, fullWidth: a } = ka(Eg);
|
|
8215
|
+
return /* @__PURE__ */ q(Tg, {
|
|
8239
8216
|
ref: n,
|
|
8240
|
-
className: R("aivex:inline-flex aivex:min-w-px aivex:shrink-0 aivex:items-center aivex:justify-center aivex:gap-xs aivex:rounded-xs aivex:text-text-secondary aivex:transition-colors aivex:duration-150 aivex:cursor-pointer aivex:select-none aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand aivex:data-[state=on]:bg-bg-float aivex:data-[state=on]:text-text-primary aivex:data-[state=on]:shadow-sm aivex:hover:text-text-primary aivex:data-[disabled]:pointer-events-none aivex:data-[disabled]:cursor-not-allowed aivex:data-[disabled]:!text-text-disabled",
|
|
8217
|
+
className: R("aivex:inline-flex aivex:min-w-px aivex:shrink-0 aivex:items-center aivex:justify-center aivex:gap-xs aivex:rounded-xs aivex:text-text-secondary aivex:transition-colors aivex:duration-150 aivex:cursor-pointer aivex:select-none aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand aivex:data-[state=on]:bg-bg-float aivex:data-[state=on]:text-text-primary aivex:data-[state=on]:shadow-sm aivex:hover:text-text-primary aivex:data-[disabled]:pointer-events-none aivex:data-[disabled]:cursor-not-allowed aivex:data-[disabled]:!text-text-disabled", kg[i], a && "aivex:flex-1", e),
|
|
8241
8218
|
...r,
|
|
8242
8219
|
children: t
|
|
8243
8220
|
});
|
|
8244
8221
|
}
|
|
8245
8222
|
//#endregion
|
|
8246
8223
|
//#region src/components/Shortcut/Shortcut.tsx
|
|
8247
|
-
function
|
|
8224
|
+
function jg(e) {
|
|
8248
8225
|
return typeof e != "string";
|
|
8249
8226
|
}
|
|
8250
|
-
function
|
|
8227
|
+
function Mg({ className: e, keys: t, ref: n, ...r }) {
|
|
8251
8228
|
return /* @__PURE__ */ q("span", {
|
|
8252
8229
|
ref: n,
|
|
8253
8230
|
className: R("aivex:inline-flex aivex:items-start aivex:gap-xs", e),
|
|
8254
8231
|
...r,
|
|
8255
8232
|
children: t.map((e, t) => /* @__PURE__ */ q("kbd", {
|
|
8256
|
-
className: R("aivex:inline-flex aivex:items-center aivex:justify-center", "aivex:min-w-5 aivex:min-h-5 aivex:max-h-5", "aivex:rounded-xs aivex:border aivex:border-border-default", "aivex:text-text-secondary aivex:text-label-lg aivex:font-sans aivex:select-none",
|
|
8233
|
+
className: R("aivex:inline-flex aivex:items-center aivex:justify-center", "aivex:min-w-5 aivex:min-h-5 aivex:max-h-5", "aivex:rounded-xs aivex:border aivex:border-border-default", "aivex:text-text-secondary aivex:text-label-lg aivex:font-sans aivex:select-none", jg(e) ? "aivex:p-2xs" : "aivex:p-xs"),
|
|
8257
8234
|
children: e
|
|
8258
8235
|
}, t))
|
|
8259
8236
|
});
|
|
8260
8237
|
}
|
|
8261
8238
|
//#endregion
|
|
8262
8239
|
//#region node_modules/.pnpm/@radix-ui+react-tabs@1.1.13_@types+react-dom@19.2.3_@types+react@19.2.14__@types+react@_5e386818c1a7a76f48d01b1b7ff302b8/node_modules/@radix-ui/react-tabs/dist/index.mjs
|
|
8263
|
-
var
|
|
8240
|
+
var Ng = "Tabs", [Pg, Fg] = me(Ng, [sa]), Ig = sa(), [Lg, Rg] = Pg(Ng), zg = G.forwardRef((e, t) => {
|
|
8264
8241
|
let { __scopeTabs: n, value: r, onValueChange: i, defaultValue: a, orientation: o = "horizontal", dir: s, activationMode: c = "automatic", ...l } = e, u = ra(s), [d, f] = Dn({
|
|
8265
8242
|
prop: r,
|
|
8266
8243
|
onChange: i,
|
|
8267
8244
|
defaultProp: a ?? "",
|
|
8268
|
-
caller:
|
|
8245
|
+
caller: Ng
|
|
8269
8246
|
});
|
|
8270
|
-
return /* @__PURE__ */ q(
|
|
8247
|
+
return /* @__PURE__ */ q(Lg, {
|
|
8271
8248
|
scope: n,
|
|
8272
8249
|
baseId: mr(),
|
|
8273
8250
|
value: d,
|
|
@@ -8275,7 +8252,7 @@ var Mg = "Tabs", [Ng, Pg] = he(Mg, [sa]), Fg = sa(), [Ig, Lg] = Ng(Mg), Rg = G.f
|
|
|
8275
8252
|
orientation: o,
|
|
8276
8253
|
dir: u,
|
|
8277
8254
|
activationMode: c,
|
|
8278
|
-
children: /* @__PURE__ */ q(
|
|
8255
|
+
children: /* @__PURE__ */ q(L.div, {
|
|
8279
8256
|
dir: u,
|
|
8280
8257
|
"data-orientation": o,
|
|
8281
8258
|
...l,
|
|
@@ -8283,16 +8260,16 @@ var Mg = "Tabs", [Ng, Pg] = he(Mg, [sa]), Fg = sa(), [Ig, Lg] = Ng(Mg), Rg = G.f
|
|
|
8283
8260
|
})
|
|
8284
8261
|
});
|
|
8285
8262
|
});
|
|
8286
|
-
|
|
8287
|
-
var
|
|
8288
|
-
let { __scopeTabs: n, loop: r = !0, ...i } = e, a =
|
|
8263
|
+
zg.displayName = Ng;
|
|
8264
|
+
var Bg = "TabsList", Vg = G.forwardRef((e, t) => {
|
|
8265
|
+
let { __scopeTabs: n, loop: r = !0, ...i } = e, a = Rg(Bg, n);
|
|
8289
8266
|
return /* @__PURE__ */ q(xa, {
|
|
8290
8267
|
asChild: !0,
|
|
8291
|
-
...
|
|
8268
|
+
...Ig(n),
|
|
8292
8269
|
orientation: a.orientation,
|
|
8293
8270
|
dir: a.dir,
|
|
8294
8271
|
loop: r,
|
|
8295
|
-
children: /* @__PURE__ */ q(
|
|
8272
|
+
children: /* @__PURE__ */ q(L.div, {
|
|
8296
8273
|
role: "tablist",
|
|
8297
8274
|
"aria-orientation": a.orientation,
|
|
8298
8275
|
...i,
|
|
@@ -8300,15 +8277,15 @@ var zg = "TabsList", Bg = G.forwardRef((e, t) => {
|
|
|
8300
8277
|
})
|
|
8301
8278
|
});
|
|
8302
8279
|
});
|
|
8303
|
-
|
|
8304
|
-
var
|
|
8305
|
-
let { __scopeTabs: n, value: r, disabled: i = !1, ...a } = e, o =
|
|
8280
|
+
Vg.displayName = Bg;
|
|
8281
|
+
var Hg = "TabsTrigger", Ug = G.forwardRef((e, t) => {
|
|
8282
|
+
let { __scopeTabs: n, value: r, disabled: i = !1, ...a } = e, o = Rg(Hg, n), s = Ig(n), c = Kg(o.baseId, r), l = qg(o.baseId, r), u = r === o.value;
|
|
8306
8283
|
return /* @__PURE__ */ q(ya, {
|
|
8307
8284
|
asChild: !0,
|
|
8308
8285
|
...s,
|
|
8309
8286
|
focusable: !i,
|
|
8310
8287
|
active: u,
|
|
8311
|
-
children: /* @__PURE__ */ q(
|
|
8288
|
+
children: /* @__PURE__ */ q(L.button, {
|
|
8312
8289
|
type: "button",
|
|
8313
8290
|
role: "tab",
|
|
8314
8291
|
"aria-selected": u,
|
|
@@ -8332,15 +8309,15 @@ var Vg = "TabsTrigger", Hg = G.forwardRef((e, t) => {
|
|
|
8332
8309
|
})
|
|
8333
8310
|
});
|
|
8334
8311
|
});
|
|
8335
|
-
|
|
8336
|
-
var
|
|
8337
|
-
let { __scopeTabs: n, value: r, forceMount: i, children: a, ...o } = e, s =
|
|
8312
|
+
Ug.displayName = Hg;
|
|
8313
|
+
var Wg = "TabsContent", Gg = G.forwardRef((e, t) => {
|
|
8314
|
+
let { __scopeTabs: n, value: r, forceMount: i, children: a, ...o } = e, s = Rg(Wg, n), c = Kg(s.baseId, r), l = qg(s.baseId, r), u = r === s.value, d = G.useRef(u);
|
|
8338
8315
|
return G.useEffect(() => {
|
|
8339
8316
|
let e = requestAnimationFrame(() => d.current = !1);
|
|
8340
8317
|
return () => cancelAnimationFrame(e);
|
|
8341
8318
|
}, []), /* @__PURE__ */ q(Rn, {
|
|
8342
8319
|
present: i || u,
|
|
8343
|
-
children: ({ present: n }) => /* @__PURE__ */ q(
|
|
8320
|
+
children: ({ present: n }) => /* @__PURE__ */ q(L.div, {
|
|
8344
8321
|
"data-state": u ? "active" : "inactive",
|
|
8345
8322
|
"data-orientation": s.orientation,
|
|
8346
8323
|
role: "tabpanel",
|
|
@@ -8358,41 +8335,41 @@ var Ug = "TabsContent", Wg = G.forwardRef((e, t) => {
|
|
|
8358
8335
|
})
|
|
8359
8336
|
});
|
|
8360
8337
|
});
|
|
8361
|
-
|
|
8362
|
-
function
|
|
8338
|
+
Gg.displayName = Wg;
|
|
8339
|
+
function Kg(e, t) {
|
|
8363
8340
|
return `${e}-trigger-${t}`;
|
|
8364
8341
|
}
|
|
8365
|
-
function
|
|
8342
|
+
function qg(e, t) {
|
|
8366
8343
|
return `${e}-content-${t}`;
|
|
8367
8344
|
}
|
|
8368
|
-
var
|
|
8345
|
+
var Jg = zg, Yg = Vg, Xg = Ug, Zg = Gg;
|
|
8369
8346
|
//#endregion
|
|
8370
8347
|
//#region src/components/Tab/Tab.tsx
|
|
8371
|
-
function
|
|
8372
|
-
return /* @__PURE__ */ q(
|
|
8348
|
+
function Qg({ className: e, ref: t, ...n }) {
|
|
8349
|
+
return /* @__PURE__ */ q(Jg, {
|
|
8373
8350
|
ref: t,
|
|
8374
8351
|
className: R("aivex:flex aivex:flex-col", e),
|
|
8375
8352
|
...n
|
|
8376
8353
|
});
|
|
8377
8354
|
}
|
|
8378
|
-
var
|
|
8379
|
-
function
|
|
8380
|
-
return /* @__PURE__ */ q(
|
|
8355
|
+
var $g = "aivex:flex aivex:items-center aivex:gap-3 aivex:border-b aivex:border-border-default";
|
|
8356
|
+
function e_({ className: e, ref: t, ...n }) {
|
|
8357
|
+
return /* @__PURE__ */ q(Yg, {
|
|
8381
8358
|
ref: t,
|
|
8382
|
-
className: R(
|
|
8359
|
+
className: R($g, e),
|
|
8383
8360
|
...n
|
|
8384
8361
|
});
|
|
8385
8362
|
}
|
|
8386
|
-
var
|
|
8387
|
-
function
|
|
8388
|
-
return /* @__PURE__ */ q(
|
|
8363
|
+
var t_ = "aivex:relative aivex:inline-flex aivex:h-12 aivex:items-center aivex:justify-center aivex:gap-sm aivex:overflow-hidden aivex:px-md aivex:text-body-lg-medium aivex:text-text-primary aivex:transition-colors aivex:before:absolute aivex:before:inset-x-0 aivex:before:top-md aivex:before:bottom-md aivex:before:rounded-md aivex:before:bg-bg-inverse-strong aivex:before:opacity-0 aivex:before:pointer-events-none aivex:before:transition-opacity aivex:before:content-[''] aivex:hover:before:opacity-4 aivex:active:before:opacity-8 aivex:focus-visible:outline-none aivex:focus-visible:before:opacity-8 aivex:disabled:cursor-not-allowed aivex:disabled:opacity-40 aivex:data-[state=active]:after:absolute aivex:data-[state=active]:after:bottom-0 aivex:data-[state=active]:after:left-0 aivex:data-[state=active]:after:right-0 aivex:data-[state=active]:after:h-0.5 aivex:data-[state=active]:after:bg-bg-inverse aivex:data-[state=active]:after:content-['']";
|
|
8364
|
+
function n_({ className: e, ref: t, ...n }) {
|
|
8365
|
+
return /* @__PURE__ */ q(Xg, {
|
|
8389
8366
|
ref: t,
|
|
8390
|
-
className: R(
|
|
8367
|
+
className: R(t_, e),
|
|
8391
8368
|
...n
|
|
8392
8369
|
});
|
|
8393
8370
|
}
|
|
8394
|
-
function
|
|
8395
|
-
return /* @__PURE__ */ q(
|
|
8371
|
+
function r_({ className: e, ref: t, ...n }) {
|
|
8372
|
+
return /* @__PURE__ */ q(Zg, {
|
|
8396
8373
|
ref: t,
|
|
8397
8374
|
className: R("aivex:flex-1 aivex:outline-none", e),
|
|
8398
8375
|
...n
|
|
@@ -8400,182 +8377,173 @@ function n_({ className: e, ref: t, ...n }) {
|
|
|
8400
8377
|
}
|
|
8401
8378
|
//#endregion
|
|
8402
8379
|
//#region src/components/Tagbox/Tagbox.tsx
|
|
8403
|
-
function
|
|
8404
|
-
let
|
|
8380
|
+
function i_({ className: e, size: t = "sm", error: n, disabled: r, readOnly: i, value: a, defaultValue: o = [], onChange: s, parsePaste: c, validate: l, renderTag: u, placeholder: d, id: f, ref: p, onBlur: m, onCompositionEnd: h, onCompositionStart: g, onFocus: _, onKeyDown: v, onPaste: y, ...b }) {
|
|
8381
|
+
let x = a !== void 0, [S, C] = K(o), w = x ? a : S, [T, E] = K(""), D = Ma(!1), [O, k] = K(!1), A = O && !i, j = b["aria-invalid"], M = l ? w.some((e) => !l(e)) : !1, ee = n || j === !0 || j === "true" || M, te = (e) => {
|
|
8405
8382
|
let t = e.trim();
|
|
8406
8383
|
if (!t) return;
|
|
8407
|
-
let n = [...
|
|
8408
|
-
|
|
8384
|
+
let n = [...w, t];
|
|
8385
|
+
x || C(n), s?.(n), E("");
|
|
8386
|
+
}, N = (e) => {
|
|
8387
|
+
let t = w.filter((t, n) => n !== e);
|
|
8388
|
+
x || C(t), s?.(t);
|
|
8409
8389
|
}, P = (e) => {
|
|
8410
|
-
|
|
8411
|
-
|
|
8390
|
+
if (v?.(e), !e.defaultPrevented && !i) if (e.key === "Enter") {
|
|
8391
|
+
if (D.current || e.nativeEvent.isComposing || e.nativeEvent.keyCode === 229) return;
|
|
8392
|
+
e.preventDefault(), T && te(T);
|
|
8393
|
+
} else e.key === "Backspace" && !T && w.length > 0 && N(w.length - 1);
|
|
8412
8394
|
}, F = (e) => {
|
|
8413
|
-
if (
|
|
8414
|
-
if (k.current || e.nativeEvent.isComposing || e.nativeEvent.keyCode === 229) return;
|
|
8415
|
-
e.preventDefault(), D && N(D);
|
|
8416
|
-
} else e.key === "Backspace" && !D && E.length > 0 && P(E.length - 1);
|
|
8417
|
-
}, ne = (e) => {
|
|
8418
|
-
if (x?.(e), e.defaultPrevented || o || !u) return;
|
|
8395
|
+
if (y?.(e), e.defaultPrevented || i || !c) return;
|
|
8419
8396
|
e.preventDefault();
|
|
8420
|
-
let t =
|
|
8397
|
+
let t = c(e.clipboardData.getData("text")), n = [...new Set(t)].map((e) => e.trim()).filter((e) => e && !w.includes(e));
|
|
8421
8398
|
if (n.length > 0) {
|
|
8422
|
-
let e = [...
|
|
8423
|
-
|
|
8399
|
+
let e = [...w, ...n];
|
|
8400
|
+
x || C(e), s?.(e);
|
|
8424
8401
|
}
|
|
8425
|
-
|
|
8426
|
-
},
|
|
8427
|
-
let
|
|
8428
|
-
return
|
|
8429
|
-
remove:
|
|
8402
|
+
E("");
|
|
8403
|
+
}, I = w.map((e, n) => {
|
|
8404
|
+
let i = () => N(n), a = l ? l(e) ? "default" : "error" : ee ? "error" : "default";
|
|
8405
|
+
return u ? /* @__PURE__ */ q(Ca, { children: u(e, n, {
|
|
8406
|
+
remove: i,
|
|
8430
8407
|
size: t,
|
|
8431
|
-
disabled:
|
|
8432
|
-
type:
|
|
8433
|
-
}) }, `${e}-${n}`) : /* @__PURE__ */ q(
|
|
8408
|
+
disabled: r,
|
|
8409
|
+
type: a
|
|
8410
|
+
}) }, `${e}-${n}`) : /* @__PURE__ */ q(Sf, {
|
|
8434
8411
|
size: t === "md" ? "md" : "sm",
|
|
8435
|
-
type:
|
|
8436
|
-
disabled:
|
|
8437
|
-
onRemove:
|
|
8412
|
+
type: a,
|
|
8413
|
+
disabled: r,
|
|
8414
|
+
onRemove: i,
|
|
8438
8415
|
children: e
|
|
8439
8416
|
}, `${e}-${n}`);
|
|
8440
|
-
}),
|
|
8441
|
-
ref:
|
|
8442
|
-
id:
|
|
8443
|
-
value:
|
|
8444
|
-
disabled:
|
|
8445
|
-
readOnly:
|
|
8446
|
-
placeholder:
|
|
8417
|
+
}), ne = /* @__PURE__ */ q("input", {
|
|
8418
|
+
ref: p,
|
|
8419
|
+
id: f,
|
|
8420
|
+
value: T,
|
|
8421
|
+
disabled: r,
|
|
8422
|
+
readOnly: i,
|
|
8423
|
+
placeholder: w.length === 0 ? d : void 0,
|
|
8447
8424
|
onChange: (e) => {
|
|
8448
|
-
|
|
8425
|
+
i || E(e.target.value);
|
|
8449
8426
|
},
|
|
8450
|
-
onKeyDown:
|
|
8451
|
-
onPaste:
|
|
8427
|
+
onKeyDown: P,
|
|
8428
|
+
onPaste: F,
|
|
8452
8429
|
onCompositionStart: (e) => {
|
|
8453
|
-
|
|
8430
|
+
D.current = !0, g?.(e);
|
|
8454
8431
|
},
|
|
8455
8432
|
onCompositionEnd: (e) => {
|
|
8456
|
-
|
|
8433
|
+
D.current = !1, i || E(e.currentTarget.value), h?.(e);
|
|
8457
8434
|
},
|
|
8458
8435
|
onFocus: (e) => {
|
|
8459
|
-
|
|
8436
|
+
i || k(!0), _?.(e);
|
|
8460
8437
|
},
|
|
8461
8438
|
onBlur: (e) => {
|
|
8462
|
-
|
|
8439
|
+
k(!1), m?.(e), !i && !D.current && T && te(T);
|
|
8463
8440
|
},
|
|
8464
|
-
className: R("aivex:bg-transparent aivex:outline-none aivex:text-text-primary aivex:placeholder:text-text-tertiary aivex:min-w-[80px] aivex:flex-1",
|
|
8465
|
-
...
|
|
8441
|
+
className: R("aivex:bg-transparent aivex:outline-none aivex:text-text-primary aivex:placeholder:text-text-tertiary aivex:min-w-[80px] aivex:flex-1", i && "aivex:cursor-default", t === "sm" ? "aivex:text-body-md-regular aivex:h-6" : "aivex:text-body-lg-regular aivex:h-8"),
|
|
8442
|
+
...b
|
|
8466
8443
|
});
|
|
8467
8444
|
return /* @__PURE__ */ J($l, {
|
|
8468
|
-
|
|
8469
|
-
|
|
8470
|
-
|
|
8471
|
-
error: M,
|
|
8472
|
-
disabled: a,
|
|
8473
|
-
focused: ee,
|
|
8445
|
+
error: ee,
|
|
8446
|
+
disabled: r,
|
|
8447
|
+
focused: A,
|
|
8474
8448
|
size: t,
|
|
8475
8449
|
layout: "wrap",
|
|
8476
|
-
|
|
8477
|
-
children: [
|
|
8450
|
+
className: R(e, i && "aivex:cursor-default"),
|
|
8451
|
+
children: [I, ne]
|
|
8478
8452
|
});
|
|
8479
8453
|
}
|
|
8480
8454
|
//#endregion
|
|
8481
8455
|
//#region src/components/Textarea/Textarea.tsx
|
|
8482
|
-
function
|
|
8483
|
-
let [
|
|
8484
|
-
|
|
8485
|
-
},
|
|
8486
|
-
|
|
8487
|
-
let
|
|
8488
|
-
ref:
|
|
8489
|
-
id:
|
|
8490
|
-
disabled:
|
|
8491
|
-
style:
|
|
8492
|
-
value:
|
|
8493
|
-
defaultValue:
|
|
8494
|
-
className: R("aivex:w-full aivex:min-w-0 aivex:bg-transparent aivex:text-text-primary aivex:placeholder:text-text-tertiary aivex:outline-none",
|
|
8495
|
-
onChange:
|
|
8456
|
+
function a_({ className: e, error: t, disabled: n, size: r = "md", minHeight: i, fixedHeight: a, startContent: o, endContent: s, id: c, ref: l, onFocus: u, onBlur: d, maxCount: f, value: p, defaultValue: m, onChange: h, ...g }) {
|
|
8457
|
+
let [_, v] = K(!1), y = f != null, b = (e) => e == null ? 0 : String(e).length, [x, S] = K(() => b(p ?? m)), C = p == null ? x : b(p), w = g["aria-invalid"], T = !!(t || w === !0 || w === "true") || y && C > f, E = (e) => {
|
|
8458
|
+
S(e.target.value.length), h?.(e);
|
|
8459
|
+
}, D = {};
|
|
8460
|
+
i !== void 0 && (D.minHeight = typeof i == "number" ? `${i}px` : i), a && i !== void 0 && (D.height = D.minHeight, D.maxHeight = D.minHeight);
|
|
8461
|
+
let O = /* @__PURE__ */ q("textarea", {
|
|
8462
|
+
ref: l,
|
|
8463
|
+
id: c,
|
|
8464
|
+
disabled: n,
|
|
8465
|
+
style: D,
|
|
8466
|
+
value: p,
|
|
8467
|
+
defaultValue: m,
|
|
8468
|
+
className: R("aivex:w-full aivex:min-w-0 aivex:bg-transparent aivex:text-text-primary aivex:placeholder:text-text-tertiary aivex:outline-none", r === "sm" ? "aivex:text-body-md-regular" : "aivex:text-body-lg-regular", "aivex:resize-none aivex:overflow-auto", e),
|
|
8469
|
+
onChange: y ? E : h,
|
|
8496
8470
|
onFocus: (e) => {
|
|
8497
|
-
|
|
8471
|
+
v(!0), u?.(e);
|
|
8498
8472
|
},
|
|
8499
8473
|
onBlur: (e) => {
|
|
8500
|
-
|
|
8474
|
+
v(!1), d?.(e);
|
|
8501
8475
|
},
|
|
8502
|
-
...
|
|
8476
|
+
...g
|
|
8503
8477
|
});
|
|
8504
8478
|
return /* @__PURE__ */ q($l, {
|
|
8505
|
-
|
|
8506
|
-
|
|
8507
|
-
|
|
8508
|
-
|
|
8509
|
-
disabled: i,
|
|
8510
|
-
focused: y,
|
|
8511
|
-
size: a,
|
|
8479
|
+
error: T,
|
|
8480
|
+
disabled: n,
|
|
8481
|
+
focused: _,
|
|
8482
|
+
size: r,
|
|
8512
8483
|
layout: "block",
|
|
8513
|
-
startContent:
|
|
8514
|
-
endContent:
|
|
8515
|
-
children:
|
|
8484
|
+
startContent: o,
|
|
8485
|
+
endContent: s,
|
|
8486
|
+
children: y ? /* @__PURE__ */ J("div", {
|
|
8516
8487
|
className: "aivex:flex aivex:w-full aivex:flex-col aivex:gap-xs",
|
|
8517
|
-
children: [
|
|
8488
|
+
children: [O, /* @__PURE__ */ J("div", {
|
|
8518
8489
|
className: "aivex:flex aivex:w-full aivex:items-center aivex:justify-end aivex:gap-2xs aivex:text-body-sm-regular aivex:whitespace-nowrap",
|
|
8519
8490
|
children: [/* @__PURE__ */ q("span", {
|
|
8520
|
-
className:
|
|
8521
|
-
children:
|
|
8491
|
+
className: T ? "aivex:text-text-danger" : "aivex:text-text-tertiary",
|
|
8492
|
+
children: C
|
|
8522
8493
|
}), /* @__PURE__ */ q("span", {
|
|
8523
8494
|
className: "aivex:text-text-tertiary",
|
|
8524
|
-
children: `/ ${
|
|
8495
|
+
children: `/ ${f}`
|
|
8525
8496
|
})]
|
|
8526
8497
|
})]
|
|
8527
|
-
}) :
|
|
8498
|
+
}) : O
|
|
8528
8499
|
});
|
|
8529
8500
|
}
|
|
8530
8501
|
//#endregion
|
|
8531
8502
|
//#region src/components/Textbox/Textbox.tsx
|
|
8532
|
-
function
|
|
8533
|
-
let [
|
|
8534
|
-
|
|
8535
|
-
},
|
|
8536
|
-
size:
|
|
8503
|
+
function o_({ className: e, error: t, disabled: n, clearable: r, startContent: i, endContent: a, size: o = "md", id: s, ref: c, value: l, defaultValue: u, onChange: d, onFocus: f, onBlur: p, ...m }) {
|
|
8504
|
+
let [h, g] = K(!1), [_, v] = K(typeof u == "string" ? u : u?.toString() ?? ""), y = l !== void 0, b = y ? String(l ?? "") : _, x = r && b.length > 0, S = (e) => {
|
|
8505
|
+
y || v(e.target.value), d?.(e);
|
|
8506
|
+
}, C = /* @__PURE__ */ J(Na, { children: [a, x && /* @__PURE__ */ q(na, {
|
|
8507
|
+
size: o === "sm" ? "xs" : "sm",
|
|
8537
8508
|
onClick: () => {
|
|
8538
|
-
|
|
8509
|
+
y || v(""), d?.({ target: { value: "" } });
|
|
8539
8510
|
},
|
|
8540
8511
|
onMouseDown: (e) => e.preventDefault(),
|
|
8541
8512
|
tabIndex: -1,
|
|
8542
8513
|
className: "aivex:shrink-0",
|
|
8543
8514
|
"aria-label": "입력값 삭제",
|
|
8544
|
-
children: /* @__PURE__ */ q(Bi, { size:
|
|
8545
|
-
})] }),
|
|
8515
|
+
children: /* @__PURE__ */ q(Bi, { size: o === "sm" ? 14 : 16 })
|
|
8516
|
+
})] }), w = a || x, T = m["aria-invalid"];
|
|
8546
8517
|
return /* @__PURE__ */ q($l, {
|
|
8547
|
-
|
|
8548
|
-
|
|
8549
|
-
|
|
8550
|
-
|
|
8551
|
-
|
|
8552
|
-
focused: _,
|
|
8553
|
-
filled: S.length > 0,
|
|
8554
|
-
size: c,
|
|
8518
|
+
error: t || T === !0 || T === "true",
|
|
8519
|
+
disabled: n,
|
|
8520
|
+
focused: h,
|
|
8521
|
+
filled: b.length > 0,
|
|
8522
|
+
size: o,
|
|
8555
8523
|
layout: "inline",
|
|
8556
|
-
startContent:
|
|
8557
|
-
endContent:
|
|
8524
|
+
startContent: i,
|
|
8525
|
+
endContent: w ? C : void 0,
|
|
8558
8526
|
children: /* @__PURE__ */ q("input", {
|
|
8559
|
-
ref:
|
|
8560
|
-
id:
|
|
8561
|
-
disabled:
|
|
8562
|
-
value:
|
|
8563
|
-
defaultValue:
|
|
8564
|
-
onChange:
|
|
8565
|
-
className: R("aivex:m-0 aivex:w-full aivex:min-w-0 aivex:appearance-none aivex:border-0 aivex:bg-transparent aivex:p-0 aivex:text-text-primary aivex:placeholder:text-text-tertiary aivex:outline-none",
|
|
8527
|
+
ref: c,
|
|
8528
|
+
id: s,
|
|
8529
|
+
disabled: n,
|
|
8530
|
+
value: r ? b : l,
|
|
8531
|
+
defaultValue: r ? void 0 : u,
|
|
8532
|
+
onChange: r || y ? S : d,
|
|
8533
|
+
className: R("aivex:m-0 aivex:w-full aivex:min-w-0 aivex:appearance-none aivex:border-0 aivex:bg-transparent aivex:p-0 aivex:text-text-primary aivex:placeholder:text-text-tertiary aivex:outline-none", o === "sm" ? "aivex:text-body-md-regular" : "aivex:text-body-lg-regular", e),
|
|
8566
8534
|
onFocus: (e) => {
|
|
8567
|
-
|
|
8535
|
+
g(!0), f?.(e);
|
|
8568
8536
|
},
|
|
8569
8537
|
onBlur: (e) => {
|
|
8570
|
-
|
|
8538
|
+
g(!1), p?.(e);
|
|
8571
8539
|
},
|
|
8572
|
-
...
|
|
8540
|
+
...m
|
|
8573
8541
|
})
|
|
8574
8542
|
});
|
|
8575
8543
|
}
|
|
8576
8544
|
//#endregion
|
|
8577
8545
|
//#region src/components/Toast/Toast.tsx
|
|
8578
|
-
var
|
|
8546
|
+
var s_ = W("aivex:inline-flex aivex:min-h-10 aivex:w-fit aivex:items-center aivex:justify-center aivex:gap-md aivex:rounded-xs aivex:bg-static-gray aivex:px-xl aivex:py-md", {
|
|
8579
8547
|
variants: { type: {
|
|
8580
8548
|
default: "",
|
|
8581
8549
|
success: "",
|
|
@@ -8583,12 +8551,12 @@ var o_ = W("aivex:inline-flex aivex:min-h-10 aivex:w-fit aivex:items-center aive
|
|
|
8583
8551
|
} },
|
|
8584
8552
|
defaultVariants: { type: "default" }
|
|
8585
8553
|
});
|
|
8586
|
-
function
|
|
8554
|
+
function c_({ className: e, type: t = "default", open: n = !0, message: r, onClose: i, ref: a, ...o }) {
|
|
8587
8555
|
return n ? /* @__PURE__ */ J("div", {
|
|
8588
8556
|
ref: a,
|
|
8589
8557
|
role: "status",
|
|
8590
8558
|
"aria-live": "polite",
|
|
8591
|
-
className: R(
|
|
8559
|
+
className: R(s_({ type: t }), e),
|
|
8592
8560
|
...o,
|
|
8593
8561
|
children: [/* @__PURE__ */ q("p", {
|
|
8594
8562
|
className: "aivex:max-w-[720px] aivex:text-center aivex:text-body-lg-regular aivex:text-static-white",
|
|
@@ -8602,7 +8570,7 @@ function s_({ className: e, type: t = "default", open: n = !0, message: r, onClo
|
|
|
8602
8570
|
})]
|
|
8603
8571
|
}) : null;
|
|
8604
8572
|
}
|
|
8605
|
-
function
|
|
8573
|
+
function l_({ position: e = "bottom-center", duration: t = 4e3, visibleToasts: n = 3, gap: r = 8, toastOptions: i, ...a }) {
|
|
8606
8574
|
return /* @__PURE__ */ q(Ra, {
|
|
8607
8575
|
position: e,
|
|
8608
8576
|
duration: t,
|
|
@@ -8611,7 +8579,7 @@ function c_({ position: e = "bottom-center", duration: t = 4e3, visibleToasts: n
|
|
|
8611
8579
|
toastOptions: {
|
|
8612
8580
|
...i,
|
|
8613
8581
|
unstyled: !0,
|
|
8614
|
-
className: R(
|
|
8582
|
+
className: R(s_({ type: "default" }), i?.className),
|
|
8615
8583
|
classNames: {
|
|
8616
8584
|
title: "aivex:max-w-[720px] aivex:text-center aivex:text-body-lg-regular aivex:text-static-white",
|
|
8617
8585
|
description: "aivex:mt-xs aivex:max-w-[720px] aivex:text-center aivex:text-body-md-regular aivex:text-static-white aivex:opacity-80",
|
|
@@ -8624,7 +8592,7 @@ function c_({ position: e = "bottom-center", duration: t = 4e3, visibleToasts: n
|
|
|
8624
8592
|
}
|
|
8625
8593
|
//#endregion
|
|
8626
8594
|
//#region src/components/Typography/Typography.tsx
|
|
8627
|
-
var
|
|
8595
|
+
var u_ = W("", {
|
|
8628
8596
|
variants: { variant: {
|
|
8629
8597
|
"display-lg": "aivex:text-display-lg",
|
|
8630
8598
|
"display-md": "aivex:text-display-md",
|
|
@@ -8646,7 +8614,7 @@ var l_ = W("", {
|
|
|
8646
8614
|
"caption-md": "aivex:text-caption-md"
|
|
8647
8615
|
} },
|
|
8648
8616
|
defaultVariants: { variant: "body-md-regular" }
|
|
8649
|
-
}),
|
|
8617
|
+
}), d_ = {
|
|
8650
8618
|
"display-lg": "h1",
|
|
8651
8619
|
"display-md": "h1",
|
|
8652
8620
|
"heading-xl": "h1",
|
|
@@ -8666,17 +8634,17 @@ var l_ = W("", {
|
|
|
8666
8634
|
"label-sm": "span",
|
|
8667
8635
|
"caption-md": "span"
|
|
8668
8636
|
};
|
|
8669
|
-
function
|
|
8670
|
-
return /* @__PURE__ */ q(e ??
|
|
8637
|
+
function f_({ as: e, variant: t = "body-md-regular", className: n, children: r, ref: i, ...a }) {
|
|
8638
|
+
return /* @__PURE__ */ q(e ?? d_[t], {
|
|
8671
8639
|
ref: i,
|
|
8672
|
-
className: R(
|
|
8640
|
+
className: R(u_({ variant: t }), n),
|
|
8673
8641
|
...a,
|
|
8674
8642
|
children: r
|
|
8675
8643
|
});
|
|
8676
8644
|
}
|
|
8677
8645
|
//#endregion
|
|
8678
8646
|
//#region src/components/UploadArea/UploadArea.tsx
|
|
8679
|
-
function
|
|
8647
|
+
function p_({ className: e, formats: t = [
|
|
8680
8648
|
"jpg",
|
|
8681
8649
|
"bmp",
|
|
8682
8650
|
"png",
|
|
@@ -8766,6 +8734,6 @@ function f_({ className: e, formats: t = [
|
|
|
8766
8734
|
});
|
|
8767
8735
|
}
|
|
8768
8736
|
//#endregion
|
|
8769
|
-
export { ei as AddFolderIcon, tr as AddPointIcon, cn as AdjustIcon, Lr as AiSparkleGradientIcon, oi as AiSparkleIcon, bn as AiVDataIcon,
|
|
8737
|
+
export { ei as AddFolderIcon, tr as AddPointIcon, cn as AdjustIcon, Lr as AiSparkleGradientIcon, oi as AiSparkleIcon, bn as AiVDataIcon, Uf as AiVDataLogo, Wf as AiVDataSymbol, yr as AiVOpsIcon, Gf as AiVOpsLogo, vi as AiViewIcon, qf as AiViewLogo, En as AiVisionIcon, zf as AiVisionLogo, Hf as AiVisionMLogo, Vf as AiVisionSLogo, Bf as AiVisionTLogo, Ln as AiVotIcon, Kf as AiVotLogo, Rf as AivexLogo, Ur as AlignCenterIcon, Tr as AlignLeftIcon, Yn as AlignRightIcon, Un as AngleIcon, tn as ApertureIcon, Ci as ArchiveIcon, Vi as ArrowCircleDownFilledIcon, mn as ArrowCircleDownIcon, Fi as ArrowCircleLeftFilledIcon, pt as ArrowCircleLeftIcon, g as ArrowCircleRightFilledIcon, ki as ArrowCircleRightIcon, yt as ArrowCircleUpFilledIcon, O as ArrowCircleUpIcon, S as ArrowControlIcon, Ge as ArrowCornerLeftTopIcon, pr as ArrowDownIcon, a as ArrowElbowDownLeftIcon, sr as ArrowFlowIcon, Pe as ArrowGoingDownIcon, Be as ArrowGoingUpIcon, Ze as ArrowLeftDownIcon, te as ArrowLeftIcon, pe as ArrowLeftRightIcon, ke as ArrowLeftUpIcon, st as ArrowRightDownIcon, Ki as ArrowRightIcon, d as ArrowRightUpIcon, At as ArrowUpDownIcon, ce as ArrowUpIcon, Tt as ArrowelbowDownRightIcon, Ft as AssistantPolyIcon, re as AssistantRectIcon, we as AtIcon, ta as Avatar, Va as Badge, Yr as BarcodeIcon, ye as BellIcon, Gt as BookmarkFilledIcon, Bt as BookmarkIcon, Xt as BoundingBoxIcon, qa as BreadCrumb, nt as BrightIcon, fi as Button, e as CSVFileIcon, Xl as Calendar, In as CalendarIcon, _i as CameraIcon, Ja as Card, Ir as CaretLineDownIcon, ai as CaretLineLeftIcon, or as CaretLineRightIcon, pn as CaretLineUpIcon, Hr as CaretUpDownIcon, di as ChatIcon, Tn as CheckCircleFilledIcon, wr as CheckCircleIcon, Si as CheckDoubleIcon, jn as CheckIcon, Qa as Checkbox, Hn as CheckboxCheckIcon, Jr as CheckboxIndeterminateIcon, no as Chips, $a as ChipsCheckbox, Ar as CircleDashedIcon, er as CircleFilledIcon, Jn as CircleOutlineIcon, sn as ClipIcon, Oi as ClipboardIcon, Gi as CloseCircleFilledIcon, yn as CloseCircleIcon, Bi as CloseIcon, vt as ClosedEyesIcon, Wo as Coachmark, x as CodeIcon, Pi as CompareIcon, wt as ConfirmIcon, ee as ConnectedIcon, D as ContrastIcon, Xe as Copy1Icon, vr as Copy2Icon, u as CopyIcon, fr as CreditCardIcon, ze as CropIcon, We as CuttingIcon, Rl as DataGrid, Al as DataGridBody, Ml as DataGridCell, Pl as DataGridEmpty, kl as DataGridHeader, Nl as DataGridHeaderCell, Il as DataGridInfiniteTrigger, Fl as DataGridLoading, Dl as DataGridRoot, jl as DataGridRow, Ol as DataGridViewport, tt as DatabaseIcon, Su as DatePicker, ne as DefectGeneratorIcon, ve as DeleteIcon, Ne as DeletePointIcon, Yd as Dialog, ft as DirectionDoubleDownIcon, Xi as DirectionDoubleLeftIcon, h as DirectionDoubleRightIcon, Pt as DirectionDoubleUpIcon, fe as DirectionDownIcon, kt as DirectionLeftIcon, zt as DirectionRightIcon, se as DirectionUpIcon, Oe as DisconnectedIcon, la as Divider, Ua as Dot, $r as DotIcon, Ce as DownloadIcon, Yt as DragHandleIcon, Qd as DraggableScroll, Wt as EditIcon, en as EmptyIcon, ot as EnglishIcon, i as EqualIcon, Pn as EraserIcon, hi as ExpandIcon, Pr as ExperimentIcon, ri as ExportIcon, ir as FailedIcon, nf as Field, af as FieldContent, of as FieldControl, sf as FieldDescription, cf as FieldError, rf as FieldLabel, dn as FileIcon, Br as FilterFilledIcon, li as FilterIcon, wf as FilterModal, Cn as FitIcon, Sr as FloppyDiskIcon, bi as FolderCloseIcon, kn as FolderOpenIcon, Bn as GalleryViewLargeIcon, Kr as GalleryViewMediumIcon, Or as GalleryViewSmallIcon, Qn as GlobalIcon, Kn as GraphIcon, an as GraphPieIcon, Ei as GraphScatterIcon, Ui as GridIcon, _n as GuideHandleIcon, Ri as GuideLineIcon, gt as HamburgerIcon, y as HandIcon, Mi as HeadphonesIcon, St as HelpIcon, j as HistoryIcon, T as HomeIcon, Je as HourglassIcon, na as IconButton, gr as ImageBrokenIcon, c as ImageIcon, ur as ImagesIcon, Le as ImportIcon, He as InfoFilledIcon, $e as InfoIcon, $l as InputBase, br as InteractionLayer, F as KebabIcon, ge as KeyDeleteIcon, je as KeyIcon, ut as KeyReturnIcon, Ji as KeyboardIcon, p as KoreanIcon, Mt as LabelPointIcon, ue as LanguageIcon, Dt as LightbulbIcon, Lt as LightingFilledIcon, ae as LightingIcon, Ee as LineIcon, Zr as LinkIcon, xe as LinkedInIcon, qt as ListPlayIcon, Ht as LockIcon, Qt as LoginIcon, it as LogoutIcon, n as MagicWandIcon, Fn as MailIcon, gi as MapIcon, Fr as MapPinIcon, ii as MeatballIcon, da as Menu, Xf as Messagebox, ar as MicroscopeIcon, fn as MinimizeIcon, Vr as MinimizeWindowIcon, ui as MinusCircleIcon, wn as MinusIcon, bf as Modal, yf as ModalSurface, Cr as ModelIcon, xi as MonitorIcon, An as MouseClickLeftIcon, Vn as MouseClickRightIcon, qr as MoveFolderIcon, kr as MoveIcon, $n as MultiSelectionIcon, qn as MuteIcon, tp as Nav, ep as NavItem, Qf as NavTile, on as NewTabIcon, Di as NotEqualIcon, Wi as OpenEyesIcon, vn as OpenedMailIcon, qd as Overlay, zi as PackageIcon, _t as PageIcon, Yh as Pagination, Qh as Panel, b as PasteIcon, Ni as PauseCircleFilledIcon, Ct as PauseCircleIcon, M as PauseIcon, E as PenIcon, Ye as PencilIcon, _r as PhoneIcon, l as PinIcon, dr as PipelineIcon, Re as PixelIcon, Ue as PlayCircleFilledIcon, et as PlayCircleIcon, I as PlayIcon, _e as PlayProgressIcon, Me as PlusCircleFilledIcon, dt as PlusCircleIcon, Yi as PlusIcon, m as PointEditIcon, Nt as PointIcon, lu as Popover, ng as ProgressBar, de as PushPinFilledIcon, Ot as PushPinIcon, Rt as QuestionIcon, og as Radio, oe as RectDashedIcon, De as RectIcon, Qr as RedoIcon, Se as RefreshIcon, Jt as RepeatIcon, Ut as RepeatOnceIcon, $t as RequestStatusIcon, at as RocketIcon, r as RotateRectIcon, Nn as RotateRectOCRIcon, mi as RulerIcon, Nr as ScaleLeftBottomIcon, ni as ScaleLeftTopIcon, rr as ScaleRightBottomIcon, un as ScaleRightTopIcon, ll as ScrollArea, ul as ScrollBar, zr as SearchIcon, Ag as SegmentedItem, Og as SegmentedRoot, Kh as SelectBox, ci as SendIcon, Sn as SettingIcon, xr as ShapesIcon, Mg as Shortcut, yi as ShrinkIcon, On as ShuffleIcon, zn as SidebarIcon, Gr as SimplificationIcon, dl as Skeleton, ma as Slider, Dr as SmoothIcon, Zn as SortAscendingIcon, Gn as SortDescendingIcon, rn as SoundIcon, Ti as SpecificAreaIcon, Hi as StarFilledIcon, gn as StarIcon, Li as StopCircleFilledIcon, ht as StopCircleIcon, v as StopIcon, ji as StorageIcon, xt as StrokeIcon, _a as Switch, r_ as TabContent, e_ as TabList, Qg as TabRoot, n_ as TabTrigger, hl as Table, yl as TableBody, vl as TableCaption, Sl as TableCell, Cl as TableEmpty, _l as TableFooter, xl as TableHead, gl as TableHeader, wl as TableLoading, bl as TableRow, Sf as Tag, A as TagFilledIcon, w as TagFilledOpacityIcon, qe as TagIcon, i_ as Tagbox, hr as TargetIcon, s as TaskQueueIcon, lr as TeamIcon, Ie as TempIcon, Ve as TestIcon, Qe as TextBoldIcon, P as TextH1Icon, he as TextH2Icon, Ae as TextH3Icon, lt as TextIcon, qi as TextItalicIcon, f as TextStrikethroughIcon, jt as TextUnderlineIcon, a_ as Textarea, o_ as Textbox, le as ThumbsDownFilledIcon, Et as ThumbsDownIcon, It as ThumbsUpIcon, ie as TimeIcon, c_ as Toast, l_ as ToastToaster, to as ToggleButton, Te as ToolIcon, Zi as Tooltip, Xr as TriangleDashedIcon, f_ as Typography, be as UndoIcon, Kt as UneditableIcon, Vt as UnlockIcon, Zt as UnreadIcon, p_ as UploadArea, rt as UploadIcon, t as UserIcon, Mn as WarningCircleFilledIcon, pi as WarningCircleIcon, Mr as WarningTriangleFilledIcon, ti as WarningTriangleIcon, nr as WheelIcon, ln as WorkspaceIcon, Rr as Zoom100Icon, si as ZoomInIcon, xn as ZoomOutIcon, Qi as avatarVariants, Ba as badgeVariants, jr as buttonVariants, Ya as checkboxVariants, ro as chipsVariants, R as cn, ha as dividerVariants, Ha as dotVariants, tf as fieldVariants, rc as getCoreRowModel, ic as getExpandedRowModel, oc as getFacetedMinMaxValues, uc as getFacetedRowModel, dc as getFacetedUniqueValues, fc as getFilteredRowModel, pc as getGroupedRowModel, hc as getPaginationRowModel, gc as getSortedRowModel, $i as iconButtonVariants, Ql as inputContainerVariants, Ql as inputWrapperVariants, Jf as messageboxVariants, $f as navItemVariants, Zf as navTileVariants, Kd as overlayVariants, rg as radioVariants, xf as tagVariants, za as toast, s_ as toastVariants, eo as toggleButtonVariants, ea as tooltipContentVariants, u_ as typographyVariants };
|
|
8770
8738
|
|
|
8771
8739
|
//# sourceMappingURL=index.js.map
|