sestek-component 0.0.49 → 0.0.51
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/index.cjs.js +6 -6
- package/dist/index.es.d.ts +4 -3
- package/dist/index.es.js +462 -457
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as C, Fragment as We, jsxs as
|
|
1
|
+
import { jsx as C, Fragment as We, jsxs as N } from "react/jsx-runtime";
|
|
2
2
|
import * as i from "react";
|
|
3
3
|
import L, { memo as Dg, useState as pe, forwardRef as Dt, useRef as Ee, useEffect as me, useMemo as yA, createElement as Ye, useContext as xu, createContext as xg, useLayoutEffect as Jn, useImperativeHandle as yu, useCallback as Pe } from "react";
|
|
4
4
|
import * as wr from "react-dom";
|
|
@@ -373,9 +373,9 @@ const Qe = (e) => {
|
|
|
373
373
|
const r = Lu.exec(e);
|
|
374
374
|
return r ? r[1] ? A(r[1]) : t : !1;
|
|
375
375
|
}, Tu = (e) => e === "position", fC = /* @__PURE__ */ new Set(["image", "url"]), Su = (e) => fC.has(e), IC = /* @__PURE__ */ new Set(["length", "size", "percentage"]), zu = (e) => IC.has(e), ku = (e) => e === "length", QC = (e) => e === "number", pC = (e) => e === "family-name", mC = (e) => e === "shadow", hC = () => {
|
|
376
|
-
const e = Qe("color"), A = Qe("font"), t = Qe("text"), r = Qe("font-weight"), n = Qe("tracking"), o = Qe("leading"), a = Qe("breakpoint"), u = Qe("container"), s = Qe("spacing"), c = Qe("radius"), l = Qe("shadow"), g = Qe("inset-shadow"), B = Qe("drop-shadow"), d = Qe("blur"), I = Qe("perspective"), E = Qe("aspect"), Q = Qe("ease"), p = Qe("animate"), v = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], b = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], w = () => ["auto", "hidden", "clip", "visible", "scroll"], h = () => ["auto", "contain", "none"], f = () => [U, Y, s], m = () => [TA, "full", "auto", ...f()], D = () => [mA, "none", "subgrid", U, Y],
|
|
376
|
+
const e = Qe("color"), A = Qe("font"), t = Qe("text"), r = Qe("font-weight"), n = Qe("tracking"), o = Qe("leading"), a = Qe("breakpoint"), u = Qe("container"), s = Qe("spacing"), c = Qe("radius"), l = Qe("shadow"), g = Qe("inset-shadow"), B = Qe("drop-shadow"), d = Qe("blur"), I = Qe("perspective"), E = Qe("aspect"), Q = Qe("ease"), p = Qe("animate"), v = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], b = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], w = () => ["auto", "hidden", "clip", "visible", "scroll"], h = () => ["auto", "contain", "none"], f = () => [U, Y, s], m = () => [TA, "full", "auto", ...f()], D = () => [mA, "none", "subgrid", U, Y], F = () => ["auto", {
|
|
377
377
|
span: ["full", mA, U, Y]
|
|
378
|
-
}, U, Y],
|
|
378
|
+
}, U, Y], P = () => [mA, "auto", U, Y], S = () => ["auto", "min", "max", "fr", U, Y], H = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline"], y = () => ["start", "end", "center", "stretch"], R = () => ["auto", ...f()], T = () => [TA, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...f()], O = () => [e, U, Y], q = () => [ua, hA], k = () => [
|
|
379
379
|
// Deprecated since Tailwind CSS v4.0.0
|
|
380
380
|
"",
|
|
381
381
|
"none",
|
|
@@ -701,21 +701,21 @@ const Qe = (e) => {
|
|
|
701
701
|
* @see https://tailwindcss.com/docs/grid-column
|
|
702
702
|
*/
|
|
703
703
|
"col-start-end": [{
|
|
704
|
-
col:
|
|
704
|
+
col: F()
|
|
705
705
|
}],
|
|
706
706
|
/**
|
|
707
707
|
* Grid Column Start
|
|
708
708
|
* @see https://tailwindcss.com/docs/grid-column
|
|
709
709
|
*/
|
|
710
710
|
"col-start": [{
|
|
711
|
-
"col-start":
|
|
711
|
+
"col-start": P()
|
|
712
712
|
}],
|
|
713
713
|
/**
|
|
714
714
|
* Grid Column End
|
|
715
715
|
* @see https://tailwindcss.com/docs/grid-column
|
|
716
716
|
*/
|
|
717
717
|
"col-end": [{
|
|
718
|
-
"col-end":
|
|
718
|
+
"col-end": P()
|
|
719
719
|
}],
|
|
720
720
|
/**
|
|
721
721
|
* Grid Template Rows
|
|
@@ -729,21 +729,21 @@ const Qe = (e) => {
|
|
|
729
729
|
* @see https://tailwindcss.com/docs/grid-row
|
|
730
730
|
*/
|
|
731
731
|
"row-start-end": [{
|
|
732
|
-
row:
|
|
732
|
+
row: F()
|
|
733
733
|
}],
|
|
734
734
|
/**
|
|
735
735
|
* Grid Row Start
|
|
736
736
|
* @see https://tailwindcss.com/docs/grid-row
|
|
737
737
|
*/
|
|
738
738
|
"row-start": [{
|
|
739
|
-
"row-start":
|
|
739
|
+
"row-start": P()
|
|
740
740
|
}],
|
|
741
741
|
/**
|
|
742
742
|
* Grid Row End
|
|
743
743
|
* @see https://tailwindcss.com/docs/grid-row
|
|
744
744
|
*/
|
|
745
745
|
"row-end": [{
|
|
746
|
-
"row-end":
|
|
746
|
+
"row-end": P()
|
|
747
747
|
}],
|
|
748
748
|
/**
|
|
749
749
|
* Grid Auto Flow
|
|
@@ -919,63 +919,63 @@ const Qe = (e) => {
|
|
|
919
919
|
* @see https://tailwindcss.com/docs/margin
|
|
920
920
|
*/
|
|
921
921
|
m: [{
|
|
922
|
-
m:
|
|
922
|
+
m: R()
|
|
923
923
|
}],
|
|
924
924
|
/**
|
|
925
925
|
* Margin X
|
|
926
926
|
* @see https://tailwindcss.com/docs/margin
|
|
927
927
|
*/
|
|
928
928
|
mx: [{
|
|
929
|
-
mx:
|
|
929
|
+
mx: R()
|
|
930
930
|
}],
|
|
931
931
|
/**
|
|
932
932
|
* Margin Y
|
|
933
933
|
* @see https://tailwindcss.com/docs/margin
|
|
934
934
|
*/
|
|
935
935
|
my: [{
|
|
936
|
-
my:
|
|
936
|
+
my: R()
|
|
937
937
|
}],
|
|
938
938
|
/**
|
|
939
939
|
* Margin Start
|
|
940
940
|
* @see https://tailwindcss.com/docs/margin
|
|
941
941
|
*/
|
|
942
942
|
ms: [{
|
|
943
|
-
ms:
|
|
943
|
+
ms: R()
|
|
944
944
|
}],
|
|
945
945
|
/**
|
|
946
946
|
* Margin End
|
|
947
947
|
* @see https://tailwindcss.com/docs/margin
|
|
948
948
|
*/
|
|
949
949
|
me: [{
|
|
950
|
-
me:
|
|
950
|
+
me: R()
|
|
951
951
|
}],
|
|
952
952
|
/**
|
|
953
953
|
* Margin Top
|
|
954
954
|
* @see https://tailwindcss.com/docs/margin
|
|
955
955
|
*/
|
|
956
956
|
mt: [{
|
|
957
|
-
mt:
|
|
957
|
+
mt: R()
|
|
958
958
|
}],
|
|
959
959
|
/**
|
|
960
960
|
* Margin Right
|
|
961
961
|
* @see https://tailwindcss.com/docs/margin
|
|
962
962
|
*/
|
|
963
963
|
mr: [{
|
|
964
|
-
mr:
|
|
964
|
+
mr: R()
|
|
965
965
|
}],
|
|
966
966
|
/**
|
|
967
967
|
* Margin Bottom
|
|
968
968
|
* @see https://tailwindcss.com/docs/margin
|
|
969
969
|
*/
|
|
970
970
|
mb: [{
|
|
971
|
-
mb:
|
|
971
|
+
mb: R()
|
|
972
972
|
}],
|
|
973
973
|
/**
|
|
974
974
|
* Margin Left
|
|
975
975
|
* @see https://tailwindcss.com/docs/margin
|
|
976
976
|
*/
|
|
977
977
|
ml: [{
|
|
978
|
-
ml:
|
|
978
|
+
ml: R()
|
|
979
979
|
}],
|
|
980
980
|
/**
|
|
981
981
|
* Space Between X
|
|
@@ -2868,7 +2868,7 @@ var PC = [
|
|
|
2868
2868
|
defaultProp: o,
|
|
2869
2869
|
onChange: c
|
|
2870
2870
|
});
|
|
2871
|
-
return /* @__PURE__ */
|
|
2871
|
+
return /* @__PURE__ */ N(OC, { scope: t, checked: p, disabled: u, children: [
|
|
2872
2872
|
/* @__PURE__ */ C(
|
|
2873
2873
|
he.button,
|
|
2874
2874
|
{
|
|
@@ -3128,10 +3128,10 @@ var _C = i.forwardRef((e, A) => {
|
|
|
3128
3128
|
h.current = !0;
|
|
3129
3129
|
}),
|
|
3130
3130
|
onFocus: Re(e.onFocus, (D) => {
|
|
3131
|
-
const
|
|
3132
|
-
if (D.target === D.currentTarget &&
|
|
3133
|
-
const
|
|
3134
|
-
if (D.currentTarget.dispatchEvent(
|
|
3131
|
+
const F = !h.current;
|
|
3132
|
+
if (D.target === D.currentTarget && F && !p) {
|
|
3133
|
+
const P = new CustomEvent(Xr, ZC);
|
|
3134
|
+
if (D.currentTarget.dispatchEvent(P), !P.defaultPrevented) {
|
|
3135
3135
|
const S = w().filter((O) => O.focusable), H = S.find((O) => O.active), y = S.find((O) => O.id === E), T = [H, y, ...S].filter(
|
|
3136
3136
|
Boolean
|
|
3137
3137
|
).map((O) => O.ref.current);
|
|
@@ -3307,7 +3307,7 @@ var oo = "Radio", [aB, Ai] = IA(oo), [uB, iB] = aB(oo), ti = i.forwardRef(
|
|
|
3307
3307
|
form: c,
|
|
3308
3308
|
...l
|
|
3309
3309
|
} = e, [g, B] = i.useState(null), d = CA(A, (Q) => B(Q)), I = i.useRef(!1), E = g ? c || !!g.closest("form") : !0;
|
|
3310
|
-
return /* @__PURE__ */
|
|
3310
|
+
return /* @__PURE__ */ N(uB, { scope: t, checked: n, disabled: a, children: [
|
|
3311
3311
|
/* @__PURE__ */ C(
|
|
3312
3312
|
he.button,
|
|
3313
3313
|
{
|
|
@@ -3621,8 +3621,8 @@ const J = Dg(lE), X0 = ({
|
|
|
3621
3621
|
onRefresh: o,
|
|
3622
3622
|
refreshTitle: a,
|
|
3623
3623
|
refreshDescription: u
|
|
3624
|
-
}) => /* @__PURE__ */ C("div", { className: "w-full border rounded-lg bg-popover shadow-[0px_4px_6px_1px_#0000001A] p-6 flex flex-col md:max-h-[70vh] max-h-[50vh] overflow-y-auto", children: /* @__PURE__ */
|
|
3625
|
-
/* @__PURE__ */
|
|
3624
|
+
}) => /* @__PURE__ */ C("div", { className: "w-full border rounded-lg bg-popover shadow-[0px_4px_6px_1px_#0000001A] p-6 flex flex-col md:max-h-[70vh] max-h-[50vh] overflow-y-auto", children: /* @__PURE__ */ N("div", { className: "flex flex-col gap-4", children: [
|
|
3625
|
+
/* @__PURE__ */ N("div", { className: "flex flex-row justify-between relative", children: [
|
|
3626
3626
|
e && /* @__PURE__ */ C("div", { className: "text-lg font-medium text-foreground", children: e }),
|
|
3627
3627
|
r && /* @__PURE__ */ C(
|
|
3628
3628
|
"button",
|
|
@@ -3640,7 +3640,7 @@ const J = Dg(lE), X0 = ({
|
|
|
3640
3640
|
}
|
|
3641
3641
|
)
|
|
3642
3642
|
] }),
|
|
3643
|
-
A.map((s) => /* @__PURE__ */
|
|
3643
|
+
A.map((s) => /* @__PURE__ */ N(
|
|
3644
3644
|
"div",
|
|
3645
3645
|
{
|
|
3646
3646
|
className: "flex flex-col gap-2 pb-4 border-b",
|
|
@@ -3651,7 +3651,7 @@ const J = Dg(lE), X0 = ({
|
|
|
3651
3651
|
const l = `${c.type}-${"label" in c ? c.label : crypto.randomUUID()}`;
|
|
3652
3652
|
switch (c.type) {
|
|
3653
3653
|
case "switch":
|
|
3654
|
-
return /* @__PURE__ */
|
|
3654
|
+
return /* @__PURE__ */ N(
|
|
3655
3655
|
"div",
|
|
3656
3656
|
{
|
|
3657
3657
|
className: "flex items-center justify-between",
|
|
@@ -3688,8 +3688,8 @@ const J = Dg(lE), X0 = ({
|
|
|
3688
3688
|
defaultValue: (v = c.props) == null ? void 0 : v.defaultValue,
|
|
3689
3689
|
onValueChange: (b = c.props) == null ? void 0 : b.onValueChange,
|
|
3690
3690
|
className: `flex ${((w = c.props) == null ? void 0 : w.orientation) === "horizontal" ? "flex-row gap-4" : "flex-col gap-3"} mt-1`,
|
|
3691
|
-
children: c.options.map((h) => /* @__PURE__ */
|
|
3692
|
-
/* @__PURE__ */
|
|
3691
|
+
children: c.options.map((h) => /* @__PURE__ */ N("div", { className: "flex flex-col gap-1", children: [
|
|
3692
|
+
/* @__PURE__ */ N("div", { className: "flex items-center space-x-2", children: [
|
|
3693
3693
|
/* @__PURE__ */ C(
|
|
3694
3694
|
QB,
|
|
3695
3695
|
{
|
|
@@ -3720,7 +3720,7 @@ const J = Dg(lE), X0 = ({
|
|
|
3720
3720
|
},
|
|
3721
3721
|
s.title ?? crypto.randomUUID()
|
|
3722
3722
|
)),
|
|
3723
|
-
(o || a || u) && /* @__PURE__ */
|
|
3723
|
+
(o || a || u) && /* @__PURE__ */ N(
|
|
3724
3724
|
"div",
|
|
3725
3725
|
{
|
|
3726
3726
|
className: "flex items-start gap-3 pb-2 border-b cursor-pointer",
|
|
@@ -3734,7 +3734,7 @@ const J = Dg(lE), X0 = ({
|
|
|
3734
3734
|
children: /* @__PURE__ */ C(J, { name: "Refresh", className: "w-5 h-5" })
|
|
3735
3735
|
}
|
|
3736
3736
|
),
|
|
3737
|
-
/* @__PURE__ */
|
|
3737
|
+
/* @__PURE__ */ N("div", { className: "flex flex-col", children: [
|
|
3738
3738
|
a && /* @__PURE__ */ C("div", { className: "font-medium text-base text-foreground", children: a }),
|
|
3739
3739
|
u && /* @__PURE__ */ C("div", { className: "text-sm text-muted-foreground", children: u })
|
|
3740
3740
|
] })
|
|
@@ -3943,7 +3943,7 @@ function mE({
|
|
|
3943
3943
|
}
|
|
3944
3944
|
);
|
|
3945
3945
|
}
|
|
3946
|
-
const hE = ({ items: e, defaultActiveTab: A, onTabChange: t }) => /* @__PURE__ */
|
|
3946
|
+
const hE = ({ items: e, defaultActiveTab: A, onTabChange: t }) => /* @__PURE__ */ N(
|
|
3947
3947
|
IE,
|
|
3948
3948
|
{
|
|
3949
3949
|
value: A,
|
|
@@ -3970,7 +3970,7 @@ const hE = ({ items: e, defaultActiveTab: A, onTabChange: t }) => /* @__PURE__ *
|
|
|
3970
3970
|
))
|
|
3971
3971
|
]
|
|
3972
3972
|
}
|
|
3973
|
-
), be = ({ isLoading: e = !1, children: A, disabled: t, ...r }) => /* @__PURE__ */
|
|
3973
|
+
), be = ({ isLoading: e = !1, children: A, disabled: t, ...r }) => /* @__PURE__ */ N(
|
|
3974
3974
|
yt,
|
|
3975
3975
|
{
|
|
3976
3976
|
disabled: t || e,
|
|
@@ -4099,8 +4099,8 @@ const ZA = ({
|
|
|
4099
4099
|
const [a, u] = A.split(" ");
|
|
4100
4100
|
return `${(a == null ? void 0 : a.charAt(0)) ?? ""}${(u == null ? void 0 : u.charAt(0)) ?? ""}`;
|
|
4101
4101
|
}, o = () => t === "primary" || t === "primary-light" ? "text-primary-foreground dark:text-white" : "text-secondary-foreground dark:text-white";
|
|
4102
|
-
return /* @__PURE__ */
|
|
4103
|
-
/* @__PURE__ */
|
|
4102
|
+
return /* @__PURE__ */ N("div", { className: "relative w-fit h-fit", children: [
|
|
4103
|
+
/* @__PURE__ */ N(FE, { children: [
|
|
4104
4104
|
/* @__PURE__ */ C(NE, { role: "img", src: e }),
|
|
4105
4105
|
/* @__PURE__ */ C(
|
|
4106
4106
|
PE,
|
|
@@ -4124,16 +4124,16 @@ const ZA = ({
|
|
|
4124
4124
|
isDefaultOpen: o = !1
|
|
4125
4125
|
}) => {
|
|
4126
4126
|
const [a, u] = pe(o);
|
|
4127
|
-
return /* @__PURE__ */
|
|
4127
|
+
return /* @__PURE__ */ N("div", { className: "flex items-center gap-2", children: [
|
|
4128
4128
|
/* @__PURE__ */ C("div", { onClick: () => {
|
|
4129
4129
|
a || u(!0);
|
|
4130
4130
|
}, className: `cursor-${a ? "default" : "pointer"}`, children: /* @__PURE__ */ C(ZA, { fullName: e, type: r }) }),
|
|
4131
|
-
/* @__PURE__ */
|
|
4132
|
-
/* @__PURE__ */
|
|
4131
|
+
/* @__PURE__ */ N("div", { className: `flex flex-row gap-2 overflow-hidden transition-all duration-300 ease-in-out ${a ? "max-w-[300px] opacity-100 translate-x-0" : "max-w-0 opacity-0 -translate-x-4"}`, children: [
|
|
4132
|
+
/* @__PURE__ */ N("div", { className: "flex flex-col gap-2", children: [
|
|
4133
4133
|
/* @__PURE__ */ C("span", { className: "text-sm font-medium text-foreground whitespace-nowrap", children: e }),
|
|
4134
|
-
/* @__PURE__ */
|
|
4134
|
+
/* @__PURE__ */ N("div", { className: "flex flex-row gap-2", children: [
|
|
4135
4135
|
/* @__PURE__ */ C("span", { className: "text-xs text-foreground whitespace-nowrap", children: A }),
|
|
4136
|
-
/* @__PURE__ */
|
|
4136
|
+
/* @__PURE__ */ N("span", { className: "text-xs text-muted-foreground whitespace-nowrap", children: [
|
|
4137
4137
|
n,
|
|
4138
4138
|
": ",
|
|
4139
4139
|
t
|
|
@@ -4170,10 +4170,10 @@ function ga() {
|
|
|
4170
4170
|
la = 1;
|
|
4171
4171
|
var e = Ae && Ae.__extends || /* @__PURE__ */ function() {
|
|
4172
4172
|
var h = function(f, m) {
|
|
4173
|
-
return h = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(D,
|
|
4174
|
-
D.__proto__ =
|
|
4175
|
-
} || function(D,
|
|
4176
|
-
for (var
|
|
4173
|
+
return h = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(D, F) {
|
|
4174
|
+
D.__proto__ = F;
|
|
4175
|
+
} || function(D, F) {
|
|
4176
|
+
for (var P in F) Object.prototype.hasOwnProperty.call(F, P) && (D[P] = F[P]);
|
|
4177
4177
|
}, h(f, m);
|
|
4178
4178
|
};
|
|
4179
4179
|
return function(f, m) {
|
|
@@ -4189,7 +4189,7 @@ function ga() {
|
|
|
4189
4189
|
return A = Object.assign || function(h) {
|
|
4190
4190
|
for (var f, m = 1, D = arguments.length; m < D; m++) {
|
|
4191
4191
|
f = arguments[m];
|
|
4192
|
-
for (var
|
|
4192
|
+
for (var F in f) Object.prototype.hasOwnProperty.call(f, F) && (h[F] = f[F]);
|
|
4193
4193
|
}
|
|
4194
4194
|
return h;
|
|
4195
4195
|
}, A.apply(this, arguments);
|
|
@@ -4313,8 +4313,8 @@ function ga() {
|
|
|
4313
4313
|
function(h) {
|
|
4314
4314
|
e(f, h);
|
|
4315
4315
|
function f(m, D) {
|
|
4316
|
-
var
|
|
4317
|
-
return
|
|
4316
|
+
var F = h.call(this, D) || this;
|
|
4317
|
+
return F.name = m, F.type = t.ElementType.Directive, F;
|
|
4318
4318
|
}
|
|
4319
4319
|
return Object.defineProperty(f.prototype, "nodeType", {
|
|
4320
4320
|
get: function() {
|
|
@@ -4407,10 +4407,10 @@ function ga() {
|
|
|
4407
4407
|
/** @class */
|
|
4408
4408
|
function(h) {
|
|
4409
4409
|
e(f, h);
|
|
4410
|
-
function f(m, D,
|
|
4411
|
-
|
|
4412
|
-
var S = h.call(this,
|
|
4413
|
-
return S.name = m, S.attribs = D, S.type =
|
|
4410
|
+
function f(m, D, F, P) {
|
|
4411
|
+
F === void 0 && (F = []), P === void 0 && (P = m === "script" ? t.ElementType.Script : m === "style" ? t.ElementType.Style : t.ElementType.Tag);
|
|
4412
|
+
var S = h.call(this, F) || this;
|
|
4413
|
+
return S.name = m, S.attribs = D, S.type = P, S;
|
|
4414
4414
|
}
|
|
4415
4415
|
return Object.defineProperty(f.prototype, "nodeType", {
|
|
4416
4416
|
get: function() {
|
|
@@ -4436,12 +4436,12 @@ function ga() {
|
|
|
4436
4436
|
get: function() {
|
|
4437
4437
|
var m = this;
|
|
4438
4438
|
return Object.keys(this.attribs).map(function(D) {
|
|
4439
|
-
var
|
|
4439
|
+
var F, P;
|
|
4440
4440
|
return {
|
|
4441
4441
|
name: D,
|
|
4442
4442
|
value: m.attribs[D],
|
|
4443
|
-
namespace: (
|
|
4444
|
-
prefix: (
|
|
4443
|
+
namespace: (F = m["x-attribsNamespace"]) === null || F === void 0 ? void 0 : F[D],
|
|
4444
|
+
prefix: (P = m["x-attribsPrefix"]) === null || P === void 0 ? void 0 : P[D]
|
|
4445
4445
|
};
|
|
4446
4446
|
});
|
|
4447
4447
|
},
|
|
@@ -4487,19 +4487,19 @@ function ga() {
|
|
|
4487
4487
|
else if (E(h))
|
|
4488
4488
|
m = new a(h.data);
|
|
4489
4489
|
else if (B(h)) {
|
|
4490
|
-
var D = f ? w(h.children) : [],
|
|
4490
|
+
var D = f ? w(h.children) : [], F = new g(h.name, A({}, h.attribs), D);
|
|
4491
4491
|
D.forEach(function(y) {
|
|
4492
|
-
return y.parent =
|
|
4493
|
-
}), h.namespace != null && (
|
|
4492
|
+
return y.parent = F;
|
|
4493
|
+
}), h.namespace != null && (F.namespace = h.namespace), h["x-attribsNamespace"] && (F["x-attribsNamespace"] = A({}, h["x-attribsNamespace"])), h["x-attribsPrefix"] && (F["x-attribsPrefix"] = A({}, h["x-attribsPrefix"])), m = F;
|
|
4494
4494
|
} else if (d(h)) {
|
|
4495
|
-
var D = f ? w(h.children) : [],
|
|
4496
|
-
D.forEach(function(
|
|
4497
|
-
return
|
|
4498
|
-
}), m =
|
|
4495
|
+
var D = f ? w(h.children) : [], P = new c(D);
|
|
4496
|
+
D.forEach(function(R) {
|
|
4497
|
+
return R.parent = P;
|
|
4498
|
+
}), m = P;
|
|
4499
4499
|
} else if (p(h)) {
|
|
4500
4500
|
var D = f ? w(h.children) : [], S = new l(D);
|
|
4501
|
-
D.forEach(function(
|
|
4502
|
-
return
|
|
4501
|
+
D.forEach(function(R) {
|
|
4502
|
+
return R.parent = S;
|
|
4503
4503
|
}), h["x-mode"] && (S["x-mode"] = h["x-mode"]), m = S;
|
|
4504
4504
|
} else if (Q(h)) {
|
|
4505
4505
|
var H = new u(h.name, h.data);
|
|
@@ -5277,8 +5277,8 @@ function TE() {
|
|
|
5277
5277
|
function u(h) {
|
|
5278
5278
|
return c.hasOwnProperty(h) ? c[h] : null;
|
|
5279
5279
|
}
|
|
5280
|
-
function s(h, f, m, D,
|
|
5281
|
-
this.acceptsBooleans = f === t || f === r || f === n, this.attributeName = D, this.attributeNamespace =
|
|
5280
|
+
function s(h, f, m, D, F, P, S) {
|
|
5281
|
+
this.acceptsBooleans = f === t || f === r || f === n, this.attributeName = D, this.attributeNamespace = F, this.mustUseProperty = m, this.propertyName = h, this.type = f, this.sanitizeURL = P, this.removeEmptyString = S;
|
|
5282
5282
|
}
|
|
5283
5283
|
const c = {};
|
|
5284
5284
|
[
|
|
@@ -5700,15 +5700,15 @@ function SE() {
|
|
|
5700
5700
|
Q = Q || {};
|
|
5701
5701
|
var p = 1, v = 1;
|
|
5702
5702
|
function b(y) {
|
|
5703
|
-
var
|
|
5704
|
-
|
|
5703
|
+
var R = y.match(A);
|
|
5704
|
+
R && (p += R.length);
|
|
5705
5705
|
var T = y.lastIndexOf(s);
|
|
5706
5706
|
v = ~T ? y.length - T : v + y.length;
|
|
5707
5707
|
}
|
|
5708
5708
|
function w() {
|
|
5709
5709
|
var y = { line: p, column: v };
|
|
5710
|
-
return function(
|
|
5711
|
-
return
|
|
5710
|
+
return function(R) {
|
|
5711
|
+
return R.position = new h(y), D(), R;
|
|
5712
5712
|
};
|
|
5713
5713
|
}
|
|
5714
5714
|
function h(y) {
|
|
@@ -5716,48 +5716,48 @@ function SE() {
|
|
|
5716
5716
|
}
|
|
5717
5717
|
h.prototype.content = E;
|
|
5718
5718
|
function f(y) {
|
|
5719
|
-
var
|
|
5719
|
+
var R = new Error(
|
|
5720
5720
|
Q.source + ":" + p + ":" + v + ": " + y
|
|
5721
5721
|
);
|
|
5722
|
-
if (
|
|
5722
|
+
if (R.reason = y, R.filename = Q.source, R.line = p, R.column = v, R.source = E, !Q.silent) throw R;
|
|
5723
5723
|
}
|
|
5724
5724
|
function m(y) {
|
|
5725
|
-
var
|
|
5726
|
-
if (
|
|
5727
|
-
var T =
|
|
5728
|
-
return b(T), E = E.slice(T.length),
|
|
5725
|
+
var R = y.exec(E);
|
|
5726
|
+
if (R) {
|
|
5727
|
+
var T = R[0];
|
|
5728
|
+
return b(T), E = E.slice(T.length), R;
|
|
5729
5729
|
}
|
|
5730
5730
|
}
|
|
5731
5731
|
function D() {
|
|
5732
5732
|
m(t);
|
|
5733
5733
|
}
|
|
5734
|
-
function
|
|
5735
|
-
var
|
|
5736
|
-
for (y = y || [];
|
|
5737
|
-
|
|
5734
|
+
function F(y) {
|
|
5735
|
+
var R;
|
|
5736
|
+
for (y = y || []; R = P(); )
|
|
5737
|
+
R !== !1 && y.push(R);
|
|
5738
5738
|
return y;
|
|
5739
5739
|
}
|
|
5740
|
-
function
|
|
5740
|
+
function P() {
|
|
5741
5741
|
var y = w();
|
|
5742
5742
|
if (!(c != E.charAt(0) || l != E.charAt(1))) {
|
|
5743
|
-
for (var
|
|
5744
|
-
++
|
|
5745
|
-
if (
|
|
5743
|
+
for (var R = 2; g != E.charAt(R) && (l != E.charAt(R) || c != E.charAt(R + 1)); )
|
|
5744
|
+
++R;
|
|
5745
|
+
if (R += 2, g === E.charAt(R - 1))
|
|
5746
5746
|
return f("End of comment missing");
|
|
5747
|
-
var T = E.slice(2,
|
|
5748
|
-
return v += 2, b(T), E = E.slice(
|
|
5747
|
+
var T = E.slice(2, R - 2);
|
|
5748
|
+
return v += 2, b(T), E = E.slice(R), v += 2, y({
|
|
5749
5749
|
type: B,
|
|
5750
5750
|
comment: T
|
|
5751
5751
|
});
|
|
5752
5752
|
}
|
|
5753
5753
|
}
|
|
5754
5754
|
function S() {
|
|
5755
|
-
var y = w(),
|
|
5756
|
-
if (
|
|
5757
|
-
if (
|
|
5755
|
+
var y = w(), R = m(r);
|
|
5756
|
+
if (R) {
|
|
5757
|
+
if (P(), !m(n)) return f("property missing ':'");
|
|
5758
5758
|
var T = m(o), O = y({
|
|
5759
5759
|
type: d,
|
|
5760
|
-
property: I(
|
|
5760
|
+
property: I(R[0].replace(e, g)),
|
|
5761
5761
|
value: T ? I(T[0].replace(e, g)) : g
|
|
5762
5762
|
});
|
|
5763
5763
|
return m(a), O;
|
|
@@ -5765,9 +5765,9 @@ function SE() {
|
|
|
5765
5765
|
}
|
|
5766
5766
|
function H() {
|
|
5767
5767
|
var y = [];
|
|
5768
|
-
|
|
5769
|
-
for (var
|
|
5770
|
-
|
|
5768
|
+
F(y);
|
|
5769
|
+
for (var R; R = S(); )
|
|
5770
|
+
R !== !1 && (y.push(R), F(y));
|
|
5771
5771
|
return y;
|
|
5772
5772
|
}
|
|
5773
5773
|
return D(), H();
|
|
@@ -6049,14 +6049,14 @@ function VE() {
|
|
|
6049
6049
|
if (x[K] == j)
|
|
6050
6050
|
return !0;
|
|
6051
6051
|
return !1;
|
|
6052
|
-
},
|
|
6052
|
+
}, F = function(x, j) {
|
|
6053
6053
|
if (!x)
|
|
6054
6054
|
return j;
|
|
6055
6055
|
var K = {}, ne;
|
|
6056
6056
|
for (ne in j)
|
|
6057
6057
|
K[ne] = m(x, ne) ? x[ne] : j[ne];
|
|
6058
6058
|
return K;
|
|
6059
|
-
},
|
|
6059
|
+
}, P = function(x, j) {
|
|
6060
6060
|
var K = "";
|
|
6061
6061
|
return x >= 55296 && x <= 57343 || x > 1114111 ? (j && y("character reference outside the permissible Unicode range"), "�") : m(v, x) ? (j && y("disallowed character reference"), v[x]) : (j && D(b, x) && y("disallowed character reference"), x > 65535 && (x -= 65536, K += w(x >>> 10 & 1023 | 55296), x = 56320 | x & 1023), K += w(x), K);
|
|
6062
6062
|
}, S = function(x) {
|
|
@@ -6065,8 +6065,8 @@ function VE() {
|
|
|
6065
6065
|
return "&#" + x + ";";
|
|
6066
6066
|
}, y = function(x) {
|
|
6067
6067
|
throw Error("Parse error: " + x);
|
|
6068
|
-
},
|
|
6069
|
-
j =
|
|
6068
|
+
}, R = function(x, j) {
|
|
6069
|
+
j = F(j, R.options);
|
|
6070
6070
|
var K = j.strict;
|
|
6071
6071
|
K && I.test(x) && y("forbidden code point");
|
|
6072
6072
|
var ne = j.encodeEverything, z = j.useNamedReferences, W = j.allowUnsafeSymbols, Z = j.decimal ? H : S, G = function(M) {
|
|
@@ -6085,7 +6085,7 @@ function VE() {
|
|
|
6085
6085
|
return Z(oe);
|
|
6086
6086
|
}).replace(s, G);
|
|
6087
6087
|
};
|
|
6088
|
-
|
|
6088
|
+
R.options = {
|
|
6089
6089
|
allowUnsafeSymbols: !1,
|
|
6090
6090
|
encodeEverything: !1,
|
|
6091
6091
|
strict: !1,
|
|
@@ -6093,13 +6093,13 @@ function VE() {
|
|
|
6093
6093
|
decimal: !1
|
|
6094
6094
|
};
|
|
6095
6095
|
var T = function(x, j) {
|
|
6096
|
-
j =
|
|
6096
|
+
j = F(j, T.options);
|
|
6097
6097
|
var K = j.strict;
|
|
6098
6098
|
return K && d.test(x) && y("malformed character reference"), x.replace(E, function(ne, z, W, Z, G, M, X, _, oe) {
|
|
6099
6099
|
var ce, ge, te, V, ve, we;
|
|
6100
6100
|
return z ? (ve = z, Q[ve]) : W ? (ve = W, we = Z, we && j.isAttributeValue ? (K && we == "=" && y("`&` did not start a character reference"), ne) : (K && y(
|
|
6101
6101
|
"named character reference was not terminated by a semicolon"
|
|
6102
|
-
), p[ve] + (we || ""))) : G ? (te = G, ge = M, K && !ge && y("character reference was not terminated by a semicolon"), ce = parseInt(te, 10),
|
|
6102
|
+
), p[ve] + (we || ""))) : G ? (te = G, ge = M, K && !ge && y("character reference was not terminated by a semicolon"), ce = parseInt(te, 10), P(ce, K)) : X ? (V = X, ge = _, K && !ge && y("character reference was not terminated by a semicolon"), ce = parseInt(V, 16), P(ce, K)) : (K && y(
|
|
6103
6103
|
"named character reference was not terminated by a semicolon"
|
|
6104
6104
|
), ne);
|
|
6105
6105
|
});
|
|
@@ -6114,7 +6114,7 @@ function VE() {
|
|
|
6114
6114
|
});
|
|
6115
6115
|
}, q = {
|
|
6116
6116
|
version: "1.2.0",
|
|
6117
|
-
encode:
|
|
6117
|
+
encode: R,
|
|
6118
6118
|
decode: T,
|
|
6119
6119
|
escape: O,
|
|
6120
6120
|
unescape: T
|
|
@@ -6147,7 +6147,7 @@ const XE = /* @__PURE__ */ Fi(ZE), OA = Dt(
|
|
|
6147
6147
|
className: g
|
|
6148
6148
|
}, B) => {
|
|
6149
6149
|
const d = XE.decode(A ?? "");
|
|
6150
|
-
return /* @__PURE__ */
|
|
6150
|
+
return /* @__PURE__ */ N(
|
|
6151
6151
|
"div",
|
|
6152
6152
|
{
|
|
6153
6153
|
ref: B,
|
|
@@ -6157,8 +6157,8 @@ const XE = /* @__PURE__ */ Fi(ZE), OA = Dt(
|
|
|
6157
6157
|
g
|
|
6158
6158
|
),
|
|
6159
6159
|
children: [
|
|
6160
|
-
/* @__PURE__ */
|
|
6161
|
-
/* @__PURE__ */
|
|
6160
|
+
/* @__PURE__ */ N("div", { className: "flex w-full flex-row items-center justify-between gap-6", children: [
|
|
6161
|
+
/* @__PURE__ */ N("div", { className: "flex flex-row", children: [
|
|
6162
6162
|
r,
|
|
6163
6163
|
/* @__PURE__ */ C("div", { className: "ml-2 mr-1 text-base font-medium leading-6 text-foreground", children: e }),
|
|
6164
6164
|
typeof n < "u" && n
|
|
@@ -6166,14 +6166,14 @@ const XE = /* @__PURE__ */ Fi(ZE), OA = Dt(
|
|
|
6166
6166
|
/* @__PURE__ */ C("div", { className: "bg-foreground-08 rounded-md p-1 flex items-center justify-center text-[11px] font-normal text-card-foreground", children: t })
|
|
6167
6167
|
] }),
|
|
6168
6168
|
/* @__PURE__ */ C("div", { className: "text-sm md:text-base w-full font-normal text-foreground", children: YE(d) }),
|
|
6169
|
-
o && /* @__PURE__ */
|
|
6169
|
+
o && /* @__PURE__ */ N("div", { className: "flex flex-row gap-1 items-center", children: [
|
|
6170
6170
|
/* @__PURE__ */ C(
|
|
6171
6171
|
be,
|
|
6172
6172
|
{
|
|
6173
6173
|
onClick: a,
|
|
6174
6174
|
size: "sm",
|
|
6175
6175
|
className: "bg-primary gap-2",
|
|
6176
|
-
children: /* @__PURE__ */
|
|
6176
|
+
children: /* @__PURE__ */ N("div", { className: "text-sm flex items-center justify-center gap-3 font-medium text-primary-foreground", children: [
|
|
6177
6177
|
/* @__PURE__ */ C(
|
|
6178
6178
|
J,
|
|
6179
6179
|
{
|
|
@@ -6193,7 +6193,7 @@ const XE = /* @__PURE__ */ Fi(ZE), OA = Dt(
|
|
|
6193
6193
|
onClick: u,
|
|
6194
6194
|
size: "sm",
|
|
6195
6195
|
className: "bg-primary gap-2",
|
|
6196
|
-
children: /* @__PURE__ */
|
|
6196
|
+
children: /* @__PURE__ */ N("div", { className: "text-sm flex items-center justify-center gap-3 font-medium text-primary-foreground", children: [
|
|
6197
6197
|
/* @__PURE__ */ C(
|
|
6198
6198
|
J,
|
|
6199
6199
|
{
|
|
@@ -6230,8 +6230,8 @@ const ft = ({
|
|
|
6230
6230
|
onClickShowOriginalMessage: B,
|
|
6231
6231
|
originalMessage: d
|
|
6232
6232
|
}) => {
|
|
6233
|
-
const I = () => /* @__PURE__ */
|
|
6234
|
-
/* @__PURE__ */
|
|
6233
|
+
const I = () => /* @__PURE__ */ N("div", { className: "flex flex-row gap-2 items-start w-full justify-end", children: [
|
|
6234
|
+
/* @__PURE__ */ N("div", { className: "px-4 py-3 min-w-[128px] relative flex flex-col gap-2 items-start rounded-2xl rounded-tr-none bg-secondary max-w-full", children: [
|
|
6235
6235
|
/* @__PURE__ */ C("div", { className: "text-sm font-medium text-foreground", children: A }),
|
|
6236
6236
|
d && d !== "" && /* @__PURE__ */ C(
|
|
6237
6237
|
"span",
|
|
@@ -6246,11 +6246,11 @@ const ft = ({
|
|
|
6246
6246
|
r && /* @__PURE__ */ C("div", { className: "border w-10 h-8 border-border flex items-center justify-center rounded-full bg-background absolute -bottom-[14px] ", children: r })
|
|
6247
6247
|
] }),
|
|
6248
6248
|
/* @__PURE__ */ C(ZA, { type: "secondary", fullName: e })
|
|
6249
|
-
] }), E = () => /* @__PURE__ */
|
|
6249
|
+
] }), E = () => /* @__PURE__ */ N("div", { className: "flex flex-row gap-2 items-start w-full", children: [
|
|
6250
6250
|
/* @__PURE__ */ C(ZA, { fullName: e }),
|
|
6251
|
-
/* @__PURE__ */
|
|
6251
|
+
/* @__PURE__ */ N("div", { className: "px-4 py-3 relative w-fit min-w-[128px] flex flex-col gap-2 items-start rounded-2xl rounded-tl-none bg-client-chat-background max-w-full", children: [
|
|
6252
6252
|
/* @__PURE__ */ C("div", { className: "text-sm font-normal text-client-chat-foreground", children: A }),
|
|
6253
|
-
/* @__PURE__ */
|
|
6253
|
+
/* @__PURE__ */ N("div", { className: "flex flex-row gap-2", children: [
|
|
6254
6254
|
c && /* @__PURE__ */ C(
|
|
6255
6255
|
be,
|
|
6256
6256
|
{
|
|
@@ -6300,22 +6300,22 @@ const ft = ({
|
|
|
6300
6300
|
/* @__PURE__ */ C("div", { className: "text-xs w-full font-normal text-client-chat-foreground text-right", children: t }),
|
|
6301
6301
|
r && /* @__PURE__ */ C("div", { className: "border w-10 h-8 border-border flex items-center justify-center rounded-full bg-background absolute -bottom-[14px] ", children: r })
|
|
6302
6302
|
] })
|
|
6303
|
-
] }), Q = () => /* @__PURE__ */
|
|
6304
|
-
/* @__PURE__ */
|
|
6305
|
-
/* @__PURE__ */
|
|
6306
|
-
/* @__PURE__ */
|
|
6303
|
+
] }), Q = () => /* @__PURE__ */ N("div", { className: "flex flex-row gap-2 items-start w-full justify-end", children: [
|
|
6304
|
+
/* @__PURE__ */ N("div", { className: "rounded-2xl w-fit rounded-tr-none min-w-[128px] max-w-full border border-border", children: [
|
|
6305
|
+
/* @__PURE__ */ N("div", { className: "p-3 relative flex w-full flex-col gap-3 items-start bg-transparent", children: [
|
|
6306
|
+
/* @__PURE__ */ N("div", { className: "flex flex-row items-center justify-between w-full gap-3 text-foreground", children: [
|
|
6307
6307
|
u,
|
|
6308
6308
|
/* @__PURE__ */ C("div", { className: "w-fit bg-destructive rounded-md p-1 text-[15px] text-primary-foreground font-normal", children: t })
|
|
6309
6309
|
] }),
|
|
6310
6310
|
/* @__PURE__ */ C("div", { className: "text-sm font-medium text-foreground", children: l })
|
|
6311
6311
|
] }),
|
|
6312
|
-
/* @__PURE__ */
|
|
6312
|
+
/* @__PURE__ */ N("div", { className: "rounded-br-2xl w-full rounded-bl-2xl bg-secondary flex flex-col items-start justify-center p-3 gap-2", children: [
|
|
6313
6313
|
/* @__PURE__ */ C("div", { className: "text-sm font-medium text-foreground", children: A }),
|
|
6314
6314
|
/* @__PURE__ */ C("div", { className: "text-xs w-full font-normal text-muted-foreground text-right", children: t })
|
|
6315
6315
|
] })
|
|
6316
6316
|
] }),
|
|
6317
6317
|
/* @__PURE__ */ C(ZA, { type: "secondary", fullName: e })
|
|
6318
|
-
] }), p = () => /* @__PURE__ */
|
|
6318
|
+
] }), p = () => /* @__PURE__ */ N("div", { className: "flex flex-row gap-2 items-start w-full", children: [
|
|
6319
6319
|
/* @__PURE__ */ C("div", { className: "w-10 h-10 flex rounded-full items-center justify-center bg-warning-background", children: /* @__PURE__ */ C(
|
|
6320
6320
|
J,
|
|
6321
6321
|
{
|
|
@@ -6325,10 +6325,10 @@ const ft = ({
|
|
|
6325
6325
|
className: "text-secondary-brew"
|
|
6326
6326
|
}
|
|
6327
6327
|
) }),
|
|
6328
|
-
/* @__PURE__ */
|
|
6328
|
+
/* @__PURE__ */ N("div", { className: "px-4 py-3 min-w-[128px] relative w-full flex-1 flex flex-col gap-2 items-start rounded-2xl rounded-tl-none bg-warning-background max-w-full", children: [
|
|
6329
6329
|
/* @__PURE__ */ C("div", { className: "text-sm font-medium text-secondary-brew-2", children: A }),
|
|
6330
|
-
/* @__PURE__ */
|
|
6331
|
-
/* @__PURE__ */
|
|
6330
|
+
/* @__PURE__ */ N("div", { className: "flex flex-row items-center justify-between w-full", children: [
|
|
6331
|
+
/* @__PURE__ */ N("div", { className: "flex flex-row items-start justify-center gap-1", children: [
|
|
6332
6332
|
/* @__PURE__ */ C(be, { className: "w-8 h-8 bg-transparent p-0 group", children: /* @__PURE__ */ C(
|
|
6333
6333
|
J,
|
|
6334
6334
|
{
|
|
@@ -6351,9 +6351,9 @@ const ft = ({
|
|
|
6351
6351
|
/* @__PURE__ */ C("div", { className: "text-xs font-normal text-secondary-brew-2", children: t })
|
|
6352
6352
|
] })
|
|
6353
6353
|
] })
|
|
6354
|
-
] }), v = () => /* @__PURE__ */
|
|
6355
|
-
/* @__PURE__ */
|
|
6356
|
-
/* @__PURE__ */
|
|
6354
|
+
] }), v = () => /* @__PURE__ */ N("div", { className: "bg-background border rounded-tl-2xl rounded-tr-3xl rounded-bl-2xl p-3 gap-3 flex flex-col", children: [
|
|
6355
|
+
/* @__PURE__ */ N("div", { className: "text-foreground text-base font-medium flex items-center justify-between", children: [
|
|
6356
|
+
/* @__PURE__ */ N("div", { className: "flex gap-2", children: [
|
|
6357
6357
|
r,
|
|
6358
6358
|
" ",
|
|
6359
6359
|
A
|
|
@@ -6373,8 +6373,8 @@ const ft = ({
|
|
|
6373
6373
|
icon: e,
|
|
6374
6374
|
title: A,
|
|
6375
6375
|
summary: t
|
|
6376
|
-
}) => /* @__PURE__ */
|
|
6377
|
-
/* @__PURE__ */
|
|
6376
|
+
}) => /* @__PURE__ */ N("div", { className: "bg-warning-background rounded-2xl pt-4 pb-6 px-6 flex flex-col gap-1 items-start w-full", children: [
|
|
6377
|
+
/* @__PURE__ */ N("div", { className: "flex flex-row gap-2 items-center w-full", children: [
|
|
6378
6378
|
e && /* @__PURE__ */ C("div", { className: "w-10 h-10 text-primary-brew bg-client-chat-background rounded-full flex items-center justify-center flex-shrink-0", children: e }),
|
|
6379
6379
|
/* @__PURE__ */ C("div", { className: "font-medium text-base text-secondary-brew-2", children: A })
|
|
6380
6380
|
] }),
|
|
@@ -6404,7 +6404,7 @@ const ft = ({
|
|
|
6404
6404
|
const v = e.filter(
|
|
6405
6405
|
(f) => f.label.toLowerCase().includes(B.toLowerCase()) && !f.disabled
|
|
6406
6406
|
), b = (f) => {
|
|
6407
|
-
E(f), t == null || t(f
|
|
6407
|
+
E(f), t == null || t(f), g(!1), d("");
|
|
6408
6408
|
}, w = () => {
|
|
6409
6409
|
n || (g(!l), l || setTimeout(() => {
|
|
6410
6410
|
var f;
|
|
@@ -6413,7 +6413,7 @@ const ft = ({
|
|
|
6413
6413
|
}, h = (f) => {
|
|
6414
6414
|
f.key === "Escape" && (g(!1), d(""));
|
|
6415
6415
|
};
|
|
6416
|
-
return /* @__PURE__ */
|
|
6416
|
+
return /* @__PURE__ */ N("div", { className: $("relative", o), ref: Q, children: [
|
|
6417
6417
|
c && /* @__PURE__ */ C(
|
|
6418
6418
|
"h3",
|
|
6419
6419
|
{
|
|
@@ -6423,8 +6423,8 @@ const ft = ({
|
|
|
6423
6423
|
}
|
|
6424
6424
|
),
|
|
6425
6425
|
s && /* @__PURE__ */ C("label", { className: "block text-sm font-medium text-foreground mb-2", children: s }),
|
|
6426
|
-
/* @__PURE__ */
|
|
6427
|
-
/* @__PURE__ */
|
|
6426
|
+
/* @__PURE__ */ N("div", { className: "relative", children: [
|
|
6427
|
+
/* @__PURE__ */ N(
|
|
6428
6428
|
yt,
|
|
6429
6429
|
{
|
|
6430
6430
|
type: "button",
|
|
@@ -6450,7 +6450,7 @@ const ft = ({
|
|
|
6450
6450
|
]
|
|
6451
6451
|
}
|
|
6452
6452
|
),
|
|
6453
|
-
l && /* @__PURE__ */
|
|
6453
|
+
l && /* @__PURE__ */ N("div", { className: "absolute z-50 w-full top-full mt-1 bg-background border border-border rounded-md shadow-lg transform-none", children: [
|
|
6454
6454
|
/* @__PURE__ */ C("div", { className: "p-2 border-b border-border", children: /* @__PURE__ */ C(
|
|
6455
6455
|
Hu,
|
|
6456
6456
|
{
|
|
@@ -6490,8 +6490,8 @@ const ft = ({
|
|
|
6490
6490
|
stopTranslationText: s = "Stop Translation",
|
|
6491
6491
|
sourceLanguagePlaceholder: c = "Auto-detect",
|
|
6492
6492
|
targetLanguagePlaceholder: l = "English",
|
|
6493
|
-
sourceLanguageTitle: g = "
|
|
6494
|
-
targetLanguageTitle: B = "
|
|
6493
|
+
sourceLanguageTitle: g = "Customer",
|
|
6494
|
+
targetLanguageTitle: B = "Agent",
|
|
6495
6495
|
sourceLanguageSearchPlaceholder: d = "Search Source Language",
|
|
6496
6496
|
targetLanguageSearchPlaceholder: I = "Search Target Language",
|
|
6497
6497
|
sourceLanguageOptions: E = [],
|
|
@@ -6499,70 +6499,73 @@ const ft = ({
|
|
|
6499
6499
|
sourceLanguage: p,
|
|
6500
6500
|
targetLanguage: v,
|
|
6501
6501
|
onSourceLanguageChange: b,
|
|
6502
|
-
onTargetLanguageChange: w
|
|
6502
|
+
onTargetLanguageChange: w,
|
|
6503
|
+
showTranslationButtonText: h = !0
|
|
6503
6504
|
}) => {
|
|
6504
|
-
const
|
|
6505
|
+
const f = Ee(null), [m, D] = pe(!0);
|
|
6505
6506
|
return me(() => {
|
|
6506
|
-
let
|
|
6507
|
-
return o === "translating" ?
|
|
6508
|
-
|
|
6509
|
-
}, 1e3) :
|
|
6510
|
-
|
|
6507
|
+
let F;
|
|
6508
|
+
return o === "translating" ? F = setInterval(() => {
|
|
6509
|
+
D((P) => !P);
|
|
6510
|
+
}, 1e3) : D(!0), () => {
|
|
6511
|
+
F && clearInterval(F);
|
|
6511
6512
|
};
|
|
6512
|
-
}, [o]), /* @__PURE__ */
|
|
6513
|
-
/* @__PURE__ */ C("div", { className: "w-full flex-shrink-0 mb-3 md:mb-[26px]", children: e ? /* @__PURE__ */
|
|
6513
|
+
}, [o]), /* @__PURE__ */ N("div", { className: "w-full flex flex-col h-full", children: [
|
|
6514
|
+
/* @__PURE__ */ C("div", { className: "w-full flex-shrink-0 mb-3 md:mb-[26px]", children: e ? /* @__PURE__ */ N("div", { className: "w-full flex flex-row items-center justify-between", children: [
|
|
6514
6515
|
/* @__PURE__ */ C("div", { className: "text-lg font-medium text-foreground", children: a }),
|
|
6515
|
-
n && /* @__PURE__ */
|
|
6516
|
-
/* @__PURE__ */
|
|
6517
|
-
/* @__PURE__ */
|
|
6518
|
-
|
|
6519
|
-
|
|
6520
|
-
|
|
6521
|
-
|
|
6522
|
-
|
|
6523
|
-
|
|
6524
|
-
|
|
6525
|
-
|
|
6526
|
-
|
|
6527
|
-
|
|
6528
|
-
|
|
6529
|
-
|
|
6530
|
-
"
|
|
6531
|
-
|
|
6532
|
-
|
|
6533
|
-
|
|
6534
|
-
|
|
6535
|
-
|
|
6536
|
-
|
|
6537
|
-
|
|
6538
|
-
|
|
6539
|
-
|
|
6540
|
-
|
|
6541
|
-
|
|
6542
|
-
|
|
6543
|
-
|
|
6544
|
-
|
|
6545
|
-
|
|
6546
|
-
|
|
6547
|
-
|
|
6548
|
-
|
|
6549
|
-
|
|
6550
|
-
|
|
6551
|
-
|
|
6552
|
-
|
|
6553
|
-
|
|
6554
|
-
|
|
6555
|
-
|
|
6556
|
-
|
|
6557
|
-
|
|
6558
|
-
|
|
6559
|
-
|
|
6516
|
+
n && /* @__PURE__ */ N(We, { children: [
|
|
6517
|
+
/* @__PURE__ */ N("div", { className: "hidden md:flex items-center gap-4 flex-col", children: [
|
|
6518
|
+
/* @__PURE__ */ N("div", { className: "flex flex-row items-center gap-4", children: [
|
|
6519
|
+
/* @__PURE__ */ C(
|
|
6520
|
+
sA,
|
|
6521
|
+
{
|
|
6522
|
+
options: E,
|
|
6523
|
+
value: p,
|
|
6524
|
+
onValueChange: b,
|
|
6525
|
+
placeholder: c,
|
|
6526
|
+
searchPlaceholder: d,
|
|
6527
|
+
className: "w-48",
|
|
6528
|
+
title: g
|
|
6529
|
+
}
|
|
6530
|
+
),
|
|
6531
|
+
/* @__PURE__ */ C("div", { className: "flex items-center justify-center w-8 h-8 mt-8", children: /* @__PURE__ */ C(
|
|
6532
|
+
"svg",
|
|
6533
|
+
{
|
|
6534
|
+
className: "w-4 h-4 text-muted-foreground",
|
|
6535
|
+
fill: "none",
|
|
6536
|
+
stroke: "currentColor",
|
|
6537
|
+
viewBox: "0 0 24 24",
|
|
6538
|
+
children: /* @__PURE__ */ C(
|
|
6539
|
+
"path",
|
|
6540
|
+
{
|
|
6541
|
+
strokeLinecap: "round",
|
|
6542
|
+
strokeLinejoin: "round",
|
|
6543
|
+
strokeWidth: 2,
|
|
6544
|
+
d: "M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"
|
|
6545
|
+
}
|
|
6546
|
+
)
|
|
6547
|
+
}
|
|
6548
|
+
) }),
|
|
6549
|
+
/* @__PURE__ */ C(
|
|
6550
|
+
sA,
|
|
6551
|
+
{
|
|
6552
|
+
options: Q,
|
|
6553
|
+
value: v,
|
|
6554
|
+
onValueChange: w,
|
|
6555
|
+
placeholder: l,
|
|
6556
|
+
searchPlaceholder: I,
|
|
6557
|
+
className: "w-48",
|
|
6558
|
+
title: B
|
|
6559
|
+
}
|
|
6560
|
+
)
|
|
6561
|
+
] }),
|
|
6562
|
+
/* @__PURE__ */ N(
|
|
6560
6563
|
be,
|
|
6561
6564
|
{
|
|
6562
6565
|
variant: "outline",
|
|
6563
6566
|
size: "lg",
|
|
6564
6567
|
onClick: t,
|
|
6565
|
-
className: "bg-background gap-2 px-6 py-
|
|
6568
|
+
className: "bg-background gap-2 px-6 py-3 h-10",
|
|
6566
6569
|
children: [
|
|
6567
6570
|
/* @__PURE__ */ C(
|
|
6568
6571
|
J,
|
|
@@ -6573,8 +6576,8 @@ const ft = ({
|
|
|
6573
6576
|
className: "text-primary-brew-2"
|
|
6574
6577
|
}
|
|
6575
6578
|
),
|
|
6576
|
-
/* @__PURE__ */
|
|
6577
|
-
o === "idle" ? u : s,
|
|
6579
|
+
/* @__PURE__ */ N("div", { className: "text-base text-primary-brew-2 font-medium flex items-center gap-2", children: [
|
|
6580
|
+
h && (o === "idle" ? u : s),
|
|
6578
6581
|
/* @__PURE__ */ C(
|
|
6579
6582
|
"span",
|
|
6580
6583
|
{
|
|
@@ -6584,7 +6587,7 @@ const ft = ({
|
|
|
6584
6587
|
height: 9,
|
|
6585
6588
|
borderRadius: "50%",
|
|
6586
6589
|
background: o === "idle" ? "#D9D9D9" : "#20B15A",
|
|
6587
|
-
opacity: o === "translating" ?
|
|
6590
|
+
opacity: o === "translating" ? m ? 1 : 0.2 : 1,
|
|
6588
6591
|
transition: "opacity 0.3s"
|
|
6589
6592
|
}
|
|
6590
6593
|
}
|
|
@@ -6594,8 +6597,8 @@ const ft = ({
|
|
|
6594
6597
|
}
|
|
6595
6598
|
)
|
|
6596
6599
|
] }),
|
|
6597
|
-
/* @__PURE__ */
|
|
6598
|
-
/* @__PURE__ */
|
|
6600
|
+
/* @__PURE__ */ N("div", { className: "flex md:hidden flex-col gap-2", children: [
|
|
6601
|
+
/* @__PURE__ */ N("div", { className: "flex flex-row items-center gap-4", children: [
|
|
6599
6602
|
/* @__PURE__ */ C(
|
|
6600
6603
|
sA,
|
|
6601
6604
|
{
|
|
@@ -6639,7 +6642,7 @@ const ft = ({
|
|
|
6639
6642
|
}
|
|
6640
6643
|
)
|
|
6641
6644
|
] }),
|
|
6642
|
-
/* @__PURE__ */
|
|
6645
|
+
/* @__PURE__ */ N(
|
|
6643
6646
|
be,
|
|
6644
6647
|
{
|
|
6645
6648
|
variant: "link",
|
|
@@ -6656,7 +6659,7 @@ const ft = ({
|
|
|
6656
6659
|
className: "text-primary-brew-2"
|
|
6657
6660
|
}
|
|
6658
6661
|
),
|
|
6659
|
-
/* @__PURE__ */
|
|
6662
|
+
/* @__PURE__ */ N("div", { className: "text-base text-primary-brew-2 font-medium flex items-center gap-2", children: [
|
|
6660
6663
|
o === "idle" ? u : s,
|
|
6661
6664
|
/* @__PURE__ */ C(
|
|
6662
6665
|
"span",
|
|
@@ -6667,7 +6670,7 @@ const ft = ({
|
|
|
6667
6670
|
height: 9,
|
|
6668
6671
|
borderRadius: "50%",
|
|
6669
6672
|
background: o === "idle" ? "#D9D9D9" : "#20B15A",
|
|
6670
|
-
opacity: o === "translating" ?
|
|
6673
|
+
opacity: o === "translating" ? m ? 1 : 0.2 : 1,
|
|
6671
6674
|
transition: "opacity 0.3s"
|
|
6672
6675
|
}
|
|
6673
6676
|
}
|
|
@@ -6678,57 +6681,59 @@ const ft = ({
|
|
|
6678
6681
|
)
|
|
6679
6682
|
] })
|
|
6680
6683
|
] })
|
|
6681
|
-
] }) : /* @__PURE__ */ C("div", { className: "w-full flex items-center justify-center", children: n && /* @__PURE__ */
|
|
6682
|
-
/* @__PURE__ */
|
|
6683
|
-
/* @__PURE__ */
|
|
6684
|
-
|
|
6685
|
-
|
|
6686
|
-
|
|
6687
|
-
|
|
6688
|
-
|
|
6689
|
-
|
|
6690
|
-
|
|
6691
|
-
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
"
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6709
|
-
|
|
6710
|
-
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
|
|
6719
|
-
|
|
6720
|
-
|
|
6721
|
-
|
|
6722
|
-
|
|
6723
|
-
|
|
6724
|
-
|
|
6725
|
-
|
|
6684
|
+
] }) : /* @__PURE__ */ C("div", { className: "w-full flex items-center justify-center", children: n && /* @__PURE__ */ N(We, { children: [
|
|
6685
|
+
/* @__PURE__ */ N("div", { className: "hidden md:flex items-center gap-4 flex-col", children: [
|
|
6686
|
+
/* @__PURE__ */ N("div", { className: "flex flex-row items-center gap-4", children: [
|
|
6687
|
+
/* @__PURE__ */ C(
|
|
6688
|
+
sA,
|
|
6689
|
+
{
|
|
6690
|
+
options: E,
|
|
6691
|
+
value: p,
|
|
6692
|
+
onValueChange: b,
|
|
6693
|
+
placeholder: c,
|
|
6694
|
+
title: g,
|
|
6695
|
+
searchPlaceholder: d,
|
|
6696
|
+
className: "w-48"
|
|
6697
|
+
}
|
|
6698
|
+
),
|
|
6699
|
+
/* @__PURE__ */ C("div", { className: "flex items-center justify-center w-8 h-8 mt-8", children: /* @__PURE__ */ C(
|
|
6700
|
+
"svg",
|
|
6701
|
+
{
|
|
6702
|
+
className: "w-4 h-4 text-muted-foreground",
|
|
6703
|
+
fill: "none",
|
|
6704
|
+
stroke: "currentColor",
|
|
6705
|
+
viewBox: "0 0 24 24",
|
|
6706
|
+
children: /* @__PURE__ */ C(
|
|
6707
|
+
"path",
|
|
6708
|
+
{
|
|
6709
|
+
strokeLinecap: "round",
|
|
6710
|
+
strokeLinejoin: "round",
|
|
6711
|
+
strokeWidth: 2,
|
|
6712
|
+
d: "M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"
|
|
6713
|
+
}
|
|
6714
|
+
)
|
|
6715
|
+
}
|
|
6716
|
+
) }),
|
|
6717
|
+
/* @__PURE__ */ C(
|
|
6718
|
+
sA,
|
|
6719
|
+
{
|
|
6720
|
+
options: Q,
|
|
6721
|
+
value: v,
|
|
6722
|
+
onValueChange: w,
|
|
6723
|
+
placeholder: l,
|
|
6724
|
+
title: B,
|
|
6725
|
+
searchPlaceholder: I,
|
|
6726
|
+
className: "w-48"
|
|
6727
|
+
}
|
|
6728
|
+
)
|
|
6729
|
+
] }),
|
|
6730
|
+
/* @__PURE__ */ N(
|
|
6726
6731
|
be,
|
|
6727
6732
|
{
|
|
6728
6733
|
variant: "outline",
|
|
6729
6734
|
size: "lg",
|
|
6730
6735
|
onClick: t,
|
|
6731
|
-
className: "bg-background gap-2 px-6 py-
|
|
6736
|
+
className: "bg-background gap-2 px-6 py-3 h-10",
|
|
6732
6737
|
children: [
|
|
6733
6738
|
/* @__PURE__ */ C(
|
|
6734
6739
|
J,
|
|
@@ -6739,8 +6744,8 @@ const ft = ({
|
|
|
6739
6744
|
className: "text-primary-brew-2"
|
|
6740
6745
|
}
|
|
6741
6746
|
),
|
|
6742
|
-
/* @__PURE__ */
|
|
6743
|
-
o === "idle" ? u : s,
|
|
6747
|
+
/* @__PURE__ */ N("div", { className: "text-base text-primary-brew-2 font-medium flex items-center gap-2", children: [
|
|
6748
|
+
h && (o === "idle" ? u : s),
|
|
6744
6749
|
/* @__PURE__ */ C(
|
|
6745
6750
|
"span",
|
|
6746
6751
|
{
|
|
@@ -6750,7 +6755,7 @@ const ft = ({
|
|
|
6750
6755
|
height: 9,
|
|
6751
6756
|
borderRadius: "50%",
|
|
6752
6757
|
background: o === "idle" ? "#D9D9D9" : "#20B15A",
|
|
6753
|
-
opacity: o === "translating" ?
|
|
6758
|
+
opacity: o === "translating" ? m ? 1 : 0.2 : 1,
|
|
6754
6759
|
transition: "opacity 0.3s"
|
|
6755
6760
|
}
|
|
6756
6761
|
}
|
|
@@ -6760,8 +6765,8 @@ const ft = ({
|
|
|
6760
6765
|
}
|
|
6761
6766
|
)
|
|
6762
6767
|
] }),
|
|
6763
|
-
/* @__PURE__ */
|
|
6764
|
-
/* @__PURE__ */
|
|
6768
|
+
/* @__PURE__ */ N("div", { className: "flex md:hidden flex-col gap-2", children: [
|
|
6769
|
+
/* @__PURE__ */ N("div", { className: "flex items-center gap-2 flex-row", children: [
|
|
6765
6770
|
/* @__PURE__ */ C(
|
|
6766
6771
|
sA,
|
|
6767
6772
|
{
|
|
@@ -6805,7 +6810,7 @@ const ft = ({
|
|
|
6805
6810
|
}
|
|
6806
6811
|
)
|
|
6807
6812
|
] }),
|
|
6808
|
-
/* @__PURE__ */
|
|
6813
|
+
/* @__PURE__ */ N(
|
|
6809
6814
|
be,
|
|
6810
6815
|
{
|
|
6811
6816
|
variant: "link",
|
|
@@ -6822,7 +6827,7 @@ const ft = ({
|
|
|
6822
6827
|
className: "text-primary-brew-2"
|
|
6823
6828
|
}
|
|
6824
6829
|
),
|
|
6825
|
-
/* @__PURE__ */
|
|
6830
|
+
/* @__PURE__ */ N("div", { className: "text-base text-primary-brew-2 font-medium flex items-center gap-2", children: [
|
|
6826
6831
|
o === "idle" ? u : s,
|
|
6827
6832
|
/* @__PURE__ */ C(
|
|
6828
6833
|
"span",
|
|
@@ -6833,7 +6838,7 @@ const ft = ({
|
|
|
6833
6838
|
height: 9,
|
|
6834
6839
|
borderRadius: "50%",
|
|
6835
6840
|
background: o === "idle" ? "#D9D9D9" : "#20B15A",
|
|
6836
|
-
opacity: o === "translating" ?
|
|
6841
|
+
opacity: o === "translating" ? m ? 1 : 0.2 : 1,
|
|
6837
6842
|
transition: "opacity 0.3s"
|
|
6838
6843
|
}
|
|
6839
6844
|
}
|
|
@@ -6847,14 +6852,14 @@ const ft = ({
|
|
|
6847
6852
|
/* @__PURE__ */ C(
|
|
6848
6853
|
"div",
|
|
6849
6854
|
{
|
|
6850
|
-
ref:
|
|
6855
|
+
ref: f,
|
|
6851
6856
|
className: "flex-grow overflow-y-auto w-full h-[calc(100%-48px)] max-h-[calc(100vh-68px)] sm:max-h-[calc(100vh-200px)]",
|
|
6852
|
-
children: /* @__PURE__ */
|
|
6857
|
+
children: /* @__PURE__ */ N("div", { className: "flex flex-col w-full items-center justify-center pb-4 ", children: [
|
|
6853
6858
|
/* @__PURE__ */ C(
|
|
6854
6859
|
"div",
|
|
6855
6860
|
{
|
|
6856
6861
|
className: `flex flex-col gap-6 w-full pb-8 ${r ? "border-b border-border" : ""}`,
|
|
6857
|
-
children: A.map((
|
|
6862
|
+
children: A.map((F) => /* @__PURE__ */ C(ft, { ...F }, F.id))
|
|
6858
6863
|
}
|
|
6859
6864
|
),
|
|
6860
6865
|
/* @__PURE__ */ C("div", { className: "w-full flex pt-8 max-w-11/12", children: r && /* @__PURE__ */ C(qE, { ...r }) })
|
|
@@ -6875,7 +6880,7 @@ const ft = ({
|
|
|
6875
6880
|
if (e > 80 && e <= 100)
|
|
6876
6881
|
return /* @__PURE__ */ C(J, { name: "SmilingWithHearts", width: 32, height: 32 });
|
|
6877
6882
|
}, [e]), t = yA(() => `${Math.max(0, Math.min(100, e))}%`, [e]);
|
|
6878
|
-
return /* @__PURE__ */
|
|
6883
|
+
return /* @__PURE__ */ N("div", { className: "w-full relative h-3 rounded-full", children: [
|
|
6879
6884
|
/* @__PURE__ */ C(
|
|
6880
6885
|
"div",
|
|
6881
6886
|
{
|
|
@@ -6906,7 +6911,7 @@ const ft = ({
|
|
|
6906
6911
|
checked: A,
|
|
6907
6912
|
onClick: t,
|
|
6908
6913
|
id: r
|
|
6909
|
-
}) => /* @__PURE__ */
|
|
6914
|
+
}) => /* @__PURE__ */ N(
|
|
6910
6915
|
"div",
|
|
6911
6916
|
{
|
|
6912
6917
|
onClick: () => t(r),
|
|
@@ -7326,8 +7331,8 @@ function Gi({
|
|
|
7326
7331
|
isPanelCollapsed: f,
|
|
7327
7332
|
reevaluatePanelConstraints: m,
|
|
7328
7333
|
registerPanel: D,
|
|
7329
|
-
resizePanel:
|
|
7330
|
-
unregisterPanel:
|
|
7334
|
+
resizePanel: F,
|
|
7335
|
+
unregisterPanel: P
|
|
7331
7336
|
} = Q, S = Bo(a), H = Ee({
|
|
7332
7337
|
callbacks: {
|
|
7333
7338
|
onCollapse: c,
|
|
@@ -7349,23 +7354,23 @@ function Gi({
|
|
|
7349
7354
|
didLogMissingDefaultSizeWarning: !1
|
|
7350
7355
|
}), xA(() => {
|
|
7351
7356
|
const {
|
|
7352
|
-
callbacks:
|
|
7357
|
+
callbacks: R,
|
|
7353
7358
|
constraints: T
|
|
7354
7359
|
} = H.current, O = {
|
|
7355
7360
|
...T
|
|
7356
7361
|
};
|
|
7357
|
-
H.current.id = S, H.current.idIsFromProps = a !== void 0, H.current.order = B,
|
|
7362
|
+
H.current.id = S, H.current.idIsFromProps = a !== void 0, H.current.order = B, R.onCollapse = c, R.onExpand = l, R.onResize = g, T.collapsedSize = t, T.collapsible = r, T.defaultSize = n, T.maxSize = u, T.minSize = s, (O.collapsedSize !== T.collapsedSize || O.collapsible !== T.collapsible || O.maxSize !== T.maxSize || O.minSize !== T.minSize) && m(H.current, O);
|
|
7358
7363
|
}), xA(() => {
|
|
7359
|
-
const
|
|
7360
|
-
return D(
|
|
7361
|
-
R
|
|
7364
|
+
const R = H.current;
|
|
7365
|
+
return D(R), () => {
|
|
7366
|
+
P(R);
|
|
7362
7367
|
};
|
|
7363
|
-
}, [B, S, D,
|
|
7368
|
+
}, [B, S, D, P]), yu(o, () => ({
|
|
7364
7369
|
collapse: () => {
|
|
7365
7370
|
p(H.current);
|
|
7366
7371
|
},
|
|
7367
|
-
expand: (
|
|
7368
|
-
v(H.current,
|
|
7372
|
+
expand: (R) => {
|
|
7373
|
+
v(H.current, R);
|
|
7369
7374
|
},
|
|
7370
7375
|
getId() {
|
|
7371
7376
|
return S;
|
|
@@ -7379,10 +7384,10 @@ function Gi({
|
|
|
7379
7384
|
isExpanded() {
|
|
7380
7385
|
return !f(H.current);
|
|
7381
7386
|
},
|
|
7382
|
-
resize: (
|
|
7383
|
-
|
|
7387
|
+
resize: (R) => {
|
|
7388
|
+
F(H.current, R);
|
|
7384
7389
|
}
|
|
7385
|
-
}), [p, v, b, f, S,
|
|
7390
|
+
}), [p, v, b, f, S, F]);
|
|
7386
7391
|
const y = w(H.current, n);
|
|
7387
7392
|
return Ye(I, {
|
|
7388
7393
|
...E,
|
|
@@ -7959,7 +7964,7 @@ function Fd({
|
|
|
7959
7964
|
const D = Ct({
|
|
7960
7965
|
delta: Le(w, h) ? m - h : h - w,
|
|
7961
7966
|
initialLayout: r,
|
|
7962
|
-
panelConstraints: s.map((
|
|
7967
|
+
panelConstraints: s.map((F) => F.constraints),
|
|
7963
7968
|
pivotIndices: $i(t, d, o),
|
|
7964
7969
|
prevLayout: r,
|
|
7965
7970
|
trigger: "keyboard"
|
|
@@ -8327,7 +8332,7 @@ function os({
|
|
|
8327
8332
|
Kt(Z, te) || (p(te), m.current.layout = te, W && W(te), jA(G, te, b.current));
|
|
8328
8333
|
}
|
|
8329
8334
|
}
|
|
8330
|
-
}, []),
|
|
8335
|
+
}, []), F = Pe((z, W) => {
|
|
8331
8336
|
const {
|
|
8332
8337
|
onLayout: Z
|
|
8333
8338
|
} = f.current, {
|
|
@@ -8353,7 +8358,7 @@ function os({
|
|
|
8353
8358
|
Kt(G, de) || (p(de), m.current.layout = de, Z && Z(de), jA(M, de, b.current));
|
|
8354
8359
|
}
|
|
8355
8360
|
}
|
|
8356
|
-
}, []),
|
|
8361
|
+
}, []), P = Pe((z) => {
|
|
8357
8362
|
const {
|
|
8358
8363
|
layout: W,
|
|
8359
8364
|
panelDataArray: Z
|
|
@@ -8392,7 +8397,7 @@ function os({
|
|
|
8392
8397
|
panelSize: X
|
|
8393
8398
|
} = bA(Z, z, W);
|
|
8394
8399
|
return re(X != null, `Panel size not found for panel "${z.id}"`), !M || NA(X, G) > 0;
|
|
8395
|
-
}, []),
|
|
8400
|
+
}, []), R = Pe((z) => {
|
|
8396
8401
|
const {
|
|
8397
8402
|
panelDataArray: W
|
|
8398
8403
|
} = m.current;
|
|
@@ -8529,21 +8534,21 @@ function os({
|
|
|
8529
8534
|
collapsePanel: D,
|
|
8530
8535
|
direction: r,
|
|
8531
8536
|
dragState: I,
|
|
8532
|
-
expandPanel:
|
|
8533
|
-
getPanelSize:
|
|
8537
|
+
expandPanel: F,
|
|
8538
|
+
getPanelSize: P,
|
|
8534
8539
|
getPanelStyle: S,
|
|
8535
8540
|
groupId: B,
|
|
8536
8541
|
isPanelCollapsed: H,
|
|
8537
8542
|
isPanelExpanded: y,
|
|
8538
8543
|
reevaluatePanelConstraints: q,
|
|
8539
|
-
registerPanel:
|
|
8544
|
+
registerPanel: R,
|
|
8540
8545
|
registerResizeHandle: T,
|
|
8541
8546
|
resizePanel: O,
|
|
8542
8547
|
startDragging: k,
|
|
8543
8548
|
stopDragging: x,
|
|
8544
8549
|
unregisterPanel: j,
|
|
8545
8550
|
panelGroupElement: d.current
|
|
8546
|
-
}), [D, I, r,
|
|
8551
|
+
}), [D, I, r, F, P, S, B, H, y, q, R, T, O, k, x, j]), ne = {
|
|
8547
8552
|
display: "flex",
|
|
8548
8553
|
flexDirection: r === "horizontal" ? "row" : "column",
|
|
8549
8554
|
height: "100%",
|
|
@@ -8662,8 +8667,8 @@ function us({
|
|
|
8662
8667
|
registerResizeHandle: f,
|
|
8663
8668
|
startDragging: m,
|
|
8664
8669
|
stopDragging: D,
|
|
8665
|
-
panelGroupElement:
|
|
8666
|
-
} = b,
|
|
8670
|
+
panelGroupElement: F
|
|
8671
|
+
} = b, P = Bo(n), [S, H] = pe("inactive"), [y, R] = pe(!1), [T, O] = pe(null), q = Ee({
|
|
8667
8672
|
state: S
|
|
8668
8673
|
});
|
|
8669
8674
|
xA(() => {
|
|
@@ -8672,10 +8677,10 @@ function us({
|
|
|
8672
8677
|
if (t)
|
|
8673
8678
|
O(null);
|
|
8674
8679
|
else {
|
|
8675
|
-
const K = f(
|
|
8680
|
+
const K = f(P);
|
|
8676
8681
|
O(() => K);
|
|
8677
8682
|
}
|
|
8678
|
-
}, [t,
|
|
8683
|
+
}, [t, P, f]);
|
|
8679
8684
|
const k = (E = r == null ? void 0 : r.coarse) !== null && E !== void 0 ? E : 15, x = (Q = r == null ? void 0 : r.fine) !== null && Q !== void 0 ? Q : 5;
|
|
8680
8685
|
return me(() => {
|
|
8681
8686
|
if (t || T == null)
|
|
@@ -8683,14 +8688,14 @@ function us({
|
|
|
8683
8688
|
const K = p.current;
|
|
8684
8689
|
re(K, "Element ref not attached");
|
|
8685
8690
|
let ne = !1;
|
|
8686
|
-
return wd(
|
|
8691
|
+
return wd(P, K, w, {
|
|
8687
8692
|
coarse: k,
|
|
8688
8693
|
fine: x
|
|
8689
8694
|
}, (W, Z, G) => {
|
|
8690
8695
|
if (Z)
|
|
8691
8696
|
switch (W) {
|
|
8692
8697
|
case "down": {
|
|
8693
|
-
H("drag"), ne = !1, re(G, 'Expected event to be defined for "down" action'), m(
|
|
8698
|
+
H("drag"), ne = !1, re(G, 'Expected event to be defined for "down" action'), m(P, G);
|
|
8694
8699
|
const {
|
|
8695
8700
|
onDragging: M,
|
|
8696
8701
|
onPointerDown: X
|
|
@@ -8719,21 +8724,21 @@ function us({
|
|
|
8719
8724
|
else
|
|
8720
8725
|
H("inactive");
|
|
8721
8726
|
});
|
|
8722
|
-
}, [k, w, t, x, f,
|
|
8727
|
+
}, [k, w, t, x, f, P, T, m, D]), zd({
|
|
8723
8728
|
disabled: t,
|
|
8724
|
-
handleId:
|
|
8729
|
+
handleId: P,
|
|
8725
8730
|
resizeHandler: T,
|
|
8726
|
-
panelGroupElement:
|
|
8731
|
+
panelGroupElement: F
|
|
8727
8732
|
}), Ye(d, {
|
|
8728
8733
|
...I,
|
|
8729
8734
|
children: e,
|
|
8730
8735
|
className: A,
|
|
8731
8736
|
id: n,
|
|
8732
8737
|
onBlur: () => {
|
|
8733
|
-
|
|
8738
|
+
R(!1), o == null || o();
|
|
8734
8739
|
},
|
|
8735
8740
|
onFocus: () => {
|
|
8736
|
-
|
|
8741
|
+
R(!0), s == null || s();
|
|
8737
8742
|
},
|
|
8738
8743
|
ref: p,
|
|
8739
8744
|
role: "separator",
|
|
@@ -8752,7 +8757,7 @@ function us({
|
|
|
8752
8757
|
"data-resize-handle-active": S === "drag" ? "pointer" : y ? "keyboard" : void 0,
|
|
8753
8758
|
"data-resize-handle-state": S,
|
|
8754
8759
|
"data-panel-resize-handle-enabled": !t,
|
|
8755
|
-
"data-panel-resize-handle-id":
|
|
8760
|
+
"data-panel-resize-handle-id": P
|
|
8756
8761
|
});
|
|
8757
8762
|
}
|
|
8758
8763
|
us.displayName = "PanelResizeHandle";
|
|
@@ -8819,10 +8824,10 @@ const Nt = () => {
|
|
|
8819
8824
|
const v = () => {
|
|
8820
8825
|
if (!s.current) return;
|
|
8821
8826
|
const f = s.current.getBoundingClientRect(), m = [];
|
|
8822
|
-
c.current.forEach((D,
|
|
8827
|
+
c.current.forEach((D, F) => {
|
|
8823
8828
|
if (!D) return;
|
|
8824
|
-
const
|
|
8825
|
-
|
|
8829
|
+
const P = D.getBoundingClientRect();
|
|
8830
|
+
P.top < f.bottom && P.bottom > f.top && m.push(F);
|
|
8826
8831
|
}), g(m);
|
|
8827
8832
|
};
|
|
8828
8833
|
me(() => {
|
|
@@ -8851,7 +8856,7 @@ const Nt = () => {
|
|
|
8851
8856
|
const b = (f) => {
|
|
8852
8857
|
if (I === f || Q || l.length <= 5 || !l.includes(f))
|
|
8853
8858
|
return 1;
|
|
8854
|
-
const D = [...l].sort((
|
|
8859
|
+
const D = [...l].sort((P, S) => P - S).indexOf(f);
|
|
8855
8860
|
return D < 5 ? 1 : Math.max(0, 0.6 - (D - 5) * 0.1);
|
|
8856
8861
|
}, w = (f) => {
|
|
8857
8862
|
switch (f.type) {
|
|
@@ -8946,7 +8951,7 @@ const Nt = () => {
|
|
|
8946
8951
|
"relative",
|
|
8947
8952
|
!t && !r ? "max-h-[500px]" : "h-full"
|
|
8948
8953
|
),
|
|
8949
|
-
children: !t && r ? /* @__PURE__ */
|
|
8954
|
+
children: !t && r ? /* @__PURE__ */ N(
|
|
8950
8955
|
is,
|
|
8951
8956
|
{
|
|
8952
8957
|
direction: "vertical",
|
|
@@ -8956,8 +8961,8 @@ const Nt = () => {
|
|
|
8956
8961
|
Br,
|
|
8957
8962
|
{
|
|
8958
8963
|
defaultSize: Q ? 60 : 35,
|
|
8959
|
-
children: e.length == 1 ? /* @__PURE__ */
|
|
8960
|
-
/* @__PURE__ */
|
|
8964
|
+
children: e.length == 1 ? /* @__PURE__ */ N("div", { className: "w-full flex flex-col gap-2 md:px-6 md:py-4 px-3 py-3", children: [
|
|
8965
|
+
/* @__PURE__ */ N("div", { className: "flex flex-row gap-2 items-center justify-start h-10", children: [
|
|
8961
8966
|
/* @__PURE__ */ C("span", { className: "text-lg font-medium text-foreground", children: n }),
|
|
8962
8967
|
/* @__PURE__ */ C("div", { className: "w-6 h-6 flex items-center justify-center bg-foreground-08 text-secondary-foreground rounded-full", children: e.length })
|
|
8963
8968
|
] }),
|
|
@@ -8971,7 +8976,7 @@ const Nt = () => {
|
|
|
8971
8976
|
},
|
|
8972
8977
|
`item-${f.id || m}`
|
|
8973
8978
|
))
|
|
8974
|
-
] }) : /* @__PURE__ */ C("div", { className: "h-full flex flex-col md:px-6 md:py-4 px-3 py-3", children: /* @__PURE__ */
|
|
8979
|
+
] }) : /* @__PURE__ */ C("div", { className: "h-full flex flex-col md:px-6 md:py-4 px-3 py-3", children: /* @__PURE__ */ N(
|
|
8975
8980
|
xn,
|
|
8976
8981
|
{
|
|
8977
8982
|
defaultOpen: A,
|
|
@@ -8981,8 +8986,8 @@ const Nt = () => {
|
|
|
8981
8986
|
},
|
|
8982
8987
|
className: "h-full flex flex-col",
|
|
8983
8988
|
children: [
|
|
8984
|
-
/* @__PURE__ */
|
|
8985
|
-
/* @__PURE__ */
|
|
8989
|
+
/* @__PURE__ */ N(yn, { className: "w-full flex flex-row items-center justify-between mb-2", children: [
|
|
8990
|
+
/* @__PURE__ */ N("div", { className: "flex flex-row gap-2 items-center justify-center", children: [
|
|
8986
8991
|
/* @__PURE__ */ C("span", { className: "text-lg font-medium text-foreground", children: n }),
|
|
8987
8992
|
/* @__PURE__ */ C("div", { className: "w-6 h-6 flex items-center justify-center bg-foreground-08 text-secondary-foreground rounded-full", children: e.length })
|
|
8988
8993
|
] }),
|
|
@@ -8996,7 +9001,7 @@ const Nt = () => {
|
|
|
8996
9001
|
}
|
|
8997
9002
|
) })
|
|
8998
9003
|
] }),
|
|
8999
|
-
!o && p.length > 0 && /* @__PURE__ */
|
|
9004
|
+
!o && p.length > 0 && /* @__PURE__ */ N("div", { className: "w-full relative flex items-center justify-center rounded-xl md:rounded-3xl", children: [
|
|
9000
9005
|
/* @__PURE__ */ C(
|
|
9001
9006
|
"div",
|
|
9002
9007
|
{
|
|
@@ -9051,8 +9056,8 @@ const Nt = () => {
|
|
|
9051
9056
|
]
|
|
9052
9057
|
},
|
|
9053
9058
|
`panel-group-${Q}`
|
|
9054
|
-
) : /* @__PURE__ */ C(We, { children: e.length == 1 ? /* @__PURE__ */
|
|
9055
|
-
/* @__PURE__ */
|
|
9059
|
+
) : /* @__PURE__ */ C(We, { children: e.length == 1 ? /* @__PURE__ */ N("div", { className: "w-full flex flex-col gap-2 px-6 py-4", children: [
|
|
9060
|
+
/* @__PURE__ */ N("div", { className: "flex flex-row gap-2 items-center justify-start h-10", children: [
|
|
9056
9061
|
/* @__PURE__ */ C("span", { className: "text-lg font-medium text-foreground", children: n }),
|
|
9057
9062
|
/* @__PURE__ */ C("div", { className: "w-6 h-6 flex items-center justify-center bg-foreground-08 text-secondary-foreground rounded-full", children: e.length })
|
|
9058
9063
|
] }),
|
|
@@ -9066,7 +9071,7 @@ const Nt = () => {
|
|
|
9066
9071
|
},
|
|
9067
9072
|
`item-${f.id || m}`
|
|
9068
9073
|
))
|
|
9069
|
-
] }) : /* @__PURE__ */ C("div", { className: "h-full flex flex-col px-6 py-4", children: /* @__PURE__ */
|
|
9074
|
+
] }) : /* @__PURE__ */ C("div", { className: "h-full flex flex-col px-6 py-4", children: /* @__PURE__ */ N(
|
|
9070
9075
|
xn,
|
|
9071
9076
|
{
|
|
9072
9077
|
defaultOpen: A,
|
|
@@ -9076,8 +9081,8 @@ const Nt = () => {
|
|
|
9076
9081
|
},
|
|
9077
9082
|
className: "h-full flex flex-col",
|
|
9078
9083
|
children: [
|
|
9079
|
-
/* @__PURE__ */
|
|
9080
|
-
/* @__PURE__ */
|
|
9084
|
+
/* @__PURE__ */ N(yn, { className: "w-full flex flex-row items-center justify-between mb-2", children: [
|
|
9085
|
+
/* @__PURE__ */ N("div", { className: "flex flex-row gap-2 items-center justify-center", children: [
|
|
9081
9086
|
/* @__PURE__ */ C("span", { className: "text-lg font-medium text-foreground", children: n }),
|
|
9082
9087
|
/* @__PURE__ */ C("div", { className: "w-6 h-6 flex items-center justify-center bg-foreground-08 text-secondary-foreground rounded-full", children: e.length })
|
|
9083
9088
|
] }),
|
|
@@ -9091,7 +9096,7 @@ const Nt = () => {
|
|
|
9091
9096
|
}
|
|
9092
9097
|
) })
|
|
9093
9098
|
] }),
|
|
9094
|
-
!o && p.length > 0 && /* @__PURE__ */
|
|
9099
|
+
!o && p.length > 0 && /* @__PURE__ */ N("div", { className: "w-full relative flex items-center justify-center rounded-xl md:rounded-3xl", children: [
|
|
9095
9100
|
/* @__PURE__ */ C(
|
|
9096
9101
|
"div",
|
|
9097
9102
|
{
|
|
@@ -9164,7 +9169,7 @@ const cs = ({
|
|
|
9164
9169
|
c
|
|
9165
9170
|
);
|
|
9166
9171
|
u.style.height = `${g}px`, u.style.overflowY = u.scrollHeight > c ? "auto" : "hidden";
|
|
9167
|
-
}, [e]), /* @__PURE__ */
|
|
9172
|
+
}, [e]), /* @__PURE__ */ N("div", { className: "relative w-full", children: [
|
|
9168
9173
|
/* @__PURE__ */ C(
|
|
9169
9174
|
kd,
|
|
9170
9175
|
{
|
|
@@ -9189,7 +9194,7 @@ const cs = ({
|
|
|
9189
9194
|
}
|
|
9190
9195
|
)
|
|
9191
9196
|
] });
|
|
9192
|
-
}, rh = ({ isShown: e, personList: A, onClick: t }) => e ? /* @__PURE__ */ C("div", { className: "flex flex-col items-center justify-center gap-3", children: A.map((r) => /* @__PURE__ */
|
|
9197
|
+
}, rh = ({ isShown: e, personList: A, onClick: t }) => e ? /* @__PURE__ */ C("div", { className: "flex flex-col items-center justify-center gap-3", children: A.map((r) => /* @__PURE__ */ N(
|
|
9193
9198
|
"div",
|
|
9194
9199
|
{
|
|
9195
9200
|
className: `w-fit cursor-pointer h-fit relative${r.isDisable ? " opacity-50" : ""}`,
|
|
@@ -9226,9 +9231,9 @@ const cs = ({
|
|
|
9226
9231
|
}
|
|
9227
9232
|
}
|
|
9228
9233
|
};
|
|
9229
|
-
return /* @__PURE__ */
|
|
9234
|
+
return /* @__PURE__ */ N("div", { className: "flex flex-col h-full w-full bg-background gap-6 rounded-b-xl rounded-t-4xl", children: [
|
|
9230
9235
|
/* @__PURE__ */ C("div", { className: "flex-1 overflow-y-auto", children: /* @__PURE__ */ C("div", { className: "flex flex-col gap-2 ", children: A == null ? void 0 : A.map((Q) => /* @__PURE__ */ Ye(ft, { ...Q, key: Q.id })) }) }),
|
|
9231
|
-
e && /* @__PURE__ */
|
|
9236
|
+
e && /* @__PURE__ */ N("div", { className: "flex flex-col gap-2.5", children: [
|
|
9232
9237
|
e.messages && e.messages.length > 0 && ((E = e.messages) == null ? void 0 : E.map((Q) => /* @__PURE__ */ C("div", { className: "border-t pt-4", children: /* @__PURE__ */ C(ft, { ...Q }) }, Q.id))),
|
|
9233
9238
|
e.items && e.items.length > 0 && /* @__PURE__ */ C("div", { className: "flex flex-wrap gap-2 items-start justify-end", children: e.items.map((Q, p) => /* @__PURE__ */ C(
|
|
9234
9239
|
be,
|
|
@@ -9240,14 +9245,14 @@ const cs = ({
|
|
|
9240
9245
|
p
|
|
9241
9246
|
)) })
|
|
9242
9247
|
] }),
|
|
9243
|
-
/* @__PURE__ */
|
|
9248
|
+
/* @__PURE__ */ N("div", { className: "border-t p-4 flex flex-col gap-2", children: [
|
|
9244
9249
|
/* @__PURE__ */ C(
|
|
9245
9250
|
be,
|
|
9246
9251
|
{
|
|
9247
9252
|
className: "flex rounded-lg text-primary py-1 px-3 bg-secondary hover:bg-secondary/70 items-center justify-center",
|
|
9248
9253
|
onClick: I,
|
|
9249
9254
|
disabled: g,
|
|
9250
|
-
children: g ? /* @__PURE__ */
|
|
9255
|
+
children: g ? /* @__PURE__ */ N(We, { children: [
|
|
9251
9256
|
/* @__PURE__ */ C(gd, { className: "animate-spin mr-2 h-4 w-4" }),
|
|
9252
9257
|
l
|
|
9253
9258
|
] }) : c
|
|
@@ -9280,9 +9285,9 @@ const cs = ({
|
|
|
9280
9285
|
}, c = () => {
|
|
9281
9286
|
t.trim() && (o(t.trim()), n(""));
|
|
9282
9287
|
};
|
|
9283
|
-
return /* @__PURE__ */
|
|
9288
|
+
return /* @__PURE__ */ N("div", { className: "flex flex-col h-full w-full bg-background gap-6 rounded-b-xl rounded-t-4xl", children: [
|
|
9284
9289
|
/* @__PURE__ */ C("div", { className: "flex-1 overflow-y-auto", children: /* @__PURE__ */ C("div", { className: "flex flex-col gap-2.5", children: A == null ? void 0 : A.map((g) => /* @__PURE__ */ Ye(ft, { ...g, key: g.id })) }) }),
|
|
9285
|
-
e && /* @__PURE__ */
|
|
9290
|
+
e && /* @__PURE__ */ N("div", { className: "flex flex-col gap-2.5 ", children: [
|
|
9286
9291
|
e.messages && e.messages.length > 0 && ((l = e.messages) == null ? void 0 : l.map((g) => /* @__PURE__ */ C("div", { className: "border-t pt-4", children: /* @__PURE__ */ C(ft, { ...g }) }, g.id))),
|
|
9287
9292
|
e.items && e.items.length > 0 && /* @__PURE__ */ C("div", { className: "flex flex-wrap gap-2 items-start justify-end", children: e.items.map((g, B) => /* @__PURE__ */ C(
|
|
9288
9293
|
be,
|
|
@@ -9313,11 +9318,11 @@ const cs = ({
|
|
|
9313
9318
|
onToggleStep: o
|
|
9314
9319
|
}) => {
|
|
9315
9320
|
const a = A.filter((c) => c.isCompleted).length, u = A.length, s = Nt();
|
|
9316
|
-
return /* @__PURE__ */ C(xn, { open: r, onOpenChange: n, children: /* @__PURE__ */
|
|
9317
|
-
/* @__PURE__ */
|
|
9318
|
-
/* @__PURE__ */
|
|
9321
|
+
return /* @__PURE__ */ C(xn, { open: r, onOpenChange: n, children: /* @__PURE__ */ N("div", { className: "bg-background md:bg-secondary md:px-6 md:py-4 px-3 py-3 rounded-2xl w-full h-full flex flex-col", children: [
|
|
9322
|
+
/* @__PURE__ */ N("div", { className: "flex items-center justify-between", children: [
|
|
9323
|
+
/* @__PURE__ */ N("div", { className: "flex items-center gap-1 md:gap-2", children: [
|
|
9319
9324
|
/* @__PURE__ */ C("span", { className: "font-medium text-lg text-foreground", children: e }),
|
|
9320
|
-
/* @__PURE__ */
|
|
9325
|
+
/* @__PURE__ */ N("span", { className: "text-xs font-medium bg-foreground-08 text-foreground px-2.5 py-0.5 rounded-full", children: [
|
|
9321
9326
|
String(a).padStart(2, "0"),
|
|
9322
9327
|
" /",
|
|
9323
9328
|
" ",
|
|
@@ -9333,7 +9338,7 @@ const cs = ({
|
|
|
9333
9338
|
}
|
|
9334
9339
|
) })
|
|
9335
9340
|
] }),
|
|
9336
|
-
!r && s && A.length > 0 && /* @__PURE__ */ C("div", { className: "mt-4", children: /* @__PURE__ */ C("div", { className: "bg-secondary md:bg-background p-4 rounded-2xl flex flex-col gap-6 h-full", children: /* @__PURE__ */ C("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */
|
|
9341
|
+
!r && s && A.length > 0 && /* @__PURE__ */ C("div", { className: "mt-4", children: /* @__PURE__ */ C("div", { className: "bg-secondary md:bg-background p-4 rounded-2xl flex flex-col gap-6 h-full", children: /* @__PURE__ */ C("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ N(
|
|
9337
9342
|
"div",
|
|
9338
9343
|
{
|
|
9339
9344
|
className: "relative flex gap-3 items-start",
|
|
@@ -9373,7 +9378,7 @@ const cs = ({
|
|
|
9373
9378
|
),
|
|
9374
9379
|
children: A.map((c, l) => {
|
|
9375
9380
|
const g = c.isCompleted;
|
|
9376
|
-
return /* @__PURE__ */
|
|
9381
|
+
return /* @__PURE__ */ N(
|
|
9377
9382
|
"div",
|
|
9378
9383
|
{
|
|
9379
9384
|
className: $(
|
|
@@ -9694,11 +9699,11 @@ var tf = "DismissableLayer", Rn = "dismissableLayer.update", rf = "dismissableLa
|
|
|
9694
9699
|
onDismiss: u,
|
|
9695
9700
|
...s
|
|
9696
9701
|
} = e, c = i.useContext(fs), [l, g] = i.useState(null), B = (l == null ? void 0 : l.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, d] = i.useState({}), I = Bs(A, (m) => g(m)), E = Array.from(c.layers), [Q] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), p = E.indexOf(Q), v = l ? E.indexOf(l) : -1, b = c.layersWithOutsidePointerEventsDisabled.size > 0, w = v >= p, h = uf((m) => {
|
|
9697
|
-
const D = m.target,
|
|
9698
|
-
!w ||
|
|
9702
|
+
const D = m.target, F = [...c.branches].some((P) => P.contains(D));
|
|
9703
|
+
!w || F || (n == null || n(m), a == null || a(m), m.defaultPrevented || u == null || u());
|
|
9699
9704
|
}, B), f = sf((m) => {
|
|
9700
9705
|
const D = m.target;
|
|
9701
|
-
[...c.branches].some((
|
|
9706
|
+
[...c.branches].some((P) => P.contains(D)) || (o == null || o(m), a == null || a(m), m.defaultPrevented || u == null || u());
|
|
9702
9707
|
}, B);
|
|
9703
9708
|
return Qo((m) => {
|
|
9704
9709
|
v === c.layers.size - 1 && (r == null || r(m), !m.defaultPrevented && u && (m.preventDefault(), u()));
|
|
@@ -10670,8 +10675,8 @@ function bI(e) {
|
|
|
10670
10675
|
return !1;
|
|
10671
10676
|
if (!r.current && "changedTouches" in E && (b || w) && (r.current = h), !h)
|
|
10672
10677
|
return !0;
|
|
10673
|
-
var
|
|
10674
|
-
return mI(
|
|
10678
|
+
var F = r.current || h;
|
|
10679
|
+
return mI(F, Q, E, F === "h" ? b : w);
|
|
10675
10680
|
}, []), s = i.useCallback(function(E) {
|
|
10676
10681
|
var Q = E;
|
|
10677
10682
|
if (!(!WA.length || WA[WA.length - 1] !== o)) {
|
|
@@ -10922,7 +10927,7 @@ var TI = i.forwardRef(
|
|
|
10922
10927
|
), Gs = i.forwardRef(
|
|
10923
10928
|
(e, A) => {
|
|
10924
10929
|
const { __scopeDialog: t, trapFocus: r, onOpenAutoFocus: n, onCloseAutoFocus: o, ...a } = e, u = Ze(PA, t), s = i.useRef(null), c = Or(A, s);
|
|
10925
|
-
return bs(), /* @__PURE__ */
|
|
10930
|
+
return bs(), /* @__PURE__ */ N(We, { children: [
|
|
10926
10931
|
/* @__PURE__ */ C(
|
|
10927
10932
|
ms,
|
|
10928
10933
|
{
|
|
@@ -10946,7 +10951,7 @@ var TI = i.forwardRef(
|
|
|
10946
10951
|
)
|
|
10947
10952
|
}
|
|
10948
10953
|
),
|
|
10949
|
-
/* @__PURE__ */
|
|
10954
|
+
/* @__PURE__ */ N(We, { children: [
|
|
10950
10955
|
/* @__PURE__ */ C(kI, { titleId: u.titleId }),
|
|
10951
10956
|
/* @__PURE__ */ C(jI, { contentRef: s, descriptionId: u.descriptionId })
|
|
10952
10957
|
] })
|
|
@@ -11078,9 +11083,9 @@ function KI({
|
|
|
11078
11083
|
}
|
|
11079
11084
|
);
|
|
11080
11085
|
}
|
|
11081
|
-
const $s = i.forwardRef(({ className: e, children: A, hideCloseButton: t = !1, ...r }, n) => /* @__PURE__ */
|
|
11086
|
+
const $s = i.forwardRef(({ className: e, children: A, hideCloseButton: t = !1, ...r }, n) => /* @__PURE__ */ N(qI, { "data-slot": "dialog-portal", children: [
|
|
11082
11087
|
/* @__PURE__ */ C(KI, {}),
|
|
11083
|
-
/* @__PURE__ */
|
|
11088
|
+
/* @__PURE__ */ N(
|
|
11084
11089
|
bo,
|
|
11085
11090
|
{
|
|
11086
11091
|
ref: n,
|
|
@@ -11093,7 +11098,7 @@ const $s = i.forwardRef(({ className: e, children: A, hideCloseButton: t = !1, .
|
|
|
11093
11098
|
children: [
|
|
11094
11099
|
/* @__PURE__ */ C(Tr, { children: /* @__PURE__ */ C(JI, {}) }),
|
|
11095
11100
|
A,
|
|
11096
|
-
!t && /* @__PURE__ */
|
|
11101
|
+
!t && /* @__PURE__ */ N(GI, { className: "...", children: [
|
|
11097
11102
|
/* @__PURE__ */ C(J, { name: "Close", width: 16, height: 16, color: "inherit" }),
|
|
11098
11103
|
/* @__PURE__ */ C("span", { className: "sr-only", children: "Close" })
|
|
11099
11104
|
] })
|
|
@@ -11522,11 +11527,11 @@ var EQ = "DismissableLayer", Ln = "dismissableLayer.update", dQ = "dismissableLa
|
|
|
11522
11527
|
onDismiss: u,
|
|
11523
11528
|
...s
|
|
11524
11529
|
} = e, c = i.useContext(uc), [l, g] = i.useState(null), B = (l == null ? void 0 : l.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, d] = i.useState({}), I = Oe(A, (m) => g(m)), E = Array.from(c.layers), [Q] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), p = E.indexOf(Q), v = l ? E.indexOf(l) : -1, b = c.layersWithOutsidePointerEventsDisabled.size > 0, w = v >= p, h = pQ((m) => {
|
|
11525
|
-
const D = m.target,
|
|
11526
|
-
!w ||
|
|
11530
|
+
const D = m.target, F = [...c.branches].some((P) => P.contains(D));
|
|
11531
|
+
!w || F || (n == null || n(m), a == null || a(m), m.defaultPrevented || u == null || u());
|
|
11527
11532
|
}, B), f = mQ((m) => {
|
|
11528
11533
|
const D = m.target;
|
|
11529
|
-
[...c.branches].some((
|
|
11534
|
+
[...c.branches].some((P) => P.contains(D)) || (o == null || o(m), a == null || a(m), m.defaultPrevented || u == null || u());
|
|
11530
11535
|
}, B);
|
|
11531
11536
|
return Qo((m) => {
|
|
11532
11537
|
v === c.layers.size - 1 && (r == null || r(m), !m.defaultPrevented && u && (m.preventDefault(), u()));
|
|
@@ -12044,12 +12049,12 @@ const jQ = (e) => ({
|
|
|
12044
12049
|
}, d = No(n), I = Fo(d), E = await a.getDimensions(c), Q = d === "y", p = Q ? "top" : "left", v = Q ? "bottom" : "right", b = Q ? "clientHeight" : "clientWidth", w = o.reference[I] + o.reference[d] - B[d] - o.floating[I], h = B[d] - o.reference[d], f = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(c));
|
|
12045
12050
|
let m = f ? f[b] : 0;
|
|
12046
12051
|
(!m || !await (a.isElement == null ? void 0 : a.isElement(f))) && (m = u.floating[b] || o.floating[I]);
|
|
12047
|
-
const D = w / 2 - h / 2,
|
|
12052
|
+
const D = w / 2 - h / 2, F = m / 2 - E[I] / 2 - 1, P = dA(g[p], F), S = dA(g[v], F), H = P, y = m - E[I] - S, R = m / 2 - E[I] / 2 + D, T = Tn(H, R, y), O = !s.arrow && At(n) != null && R !== T && o.reference[I] / 2 - (R < H ? P : S) - E[I] / 2 < 0, q = O ? R < H ? R - H : R - y : 0;
|
|
12048
12053
|
return {
|
|
12049
12054
|
[d]: B[d] + q,
|
|
12050
12055
|
data: {
|
|
12051
12056
|
[d]: T,
|
|
12052
|
-
centerOffset:
|
|
12057
|
+
centerOffset: R - T - q,
|
|
12053
12058
|
...O && {
|
|
12054
12059
|
alignmentOffset: q
|
|
12055
12060
|
}
|
|
@@ -12083,38 +12088,38 @@ const jQ = (e) => ({
|
|
|
12083
12088
|
return {};
|
|
12084
12089
|
const p = rA(n), v = AA(u), b = rA(u) === u, w = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), h = B || (b || !E ? [Qr(u)] : TQ(u)), f = I !== "none";
|
|
12085
12090
|
!B && f && h.push(...zQ(u, E, I, w));
|
|
12086
|
-
const m = [u, ...h], D = await pt(A, Q),
|
|
12087
|
-
let
|
|
12088
|
-
if (l &&
|
|
12091
|
+
const m = [u, ...h], D = await pt(A, Q), F = [];
|
|
12092
|
+
let P = ((r = o.flip) == null ? void 0 : r.overflows) || [];
|
|
12093
|
+
if (l && F.push(D[p]), g) {
|
|
12089
12094
|
const T = LQ(n, a, w);
|
|
12090
|
-
|
|
12095
|
+
F.push(D[T[0]], D[T[1]]);
|
|
12091
12096
|
}
|
|
12092
|
-
if (
|
|
12097
|
+
if (P = [...P, {
|
|
12093
12098
|
placement: n,
|
|
12094
|
-
overflows:
|
|
12095
|
-
}], !
|
|
12099
|
+
overflows: F
|
|
12100
|
+
}], !F.every((T) => T <= 0)) {
|
|
12096
12101
|
var S, H;
|
|
12097
12102
|
const T = (((S = o.flip) == null ? void 0 : S.index) || 0) + 1, O = m[T];
|
|
12098
12103
|
if (O) {
|
|
12099
12104
|
var y;
|
|
12100
|
-
const k = g === "alignment" ? v !== AA(O) : !1, x = ((y =
|
|
12105
|
+
const k = g === "alignment" ? v !== AA(O) : !1, x = ((y = P[0]) == null ? void 0 : y.overflows[0]) > 0;
|
|
12101
12106
|
if (!k || x)
|
|
12102
12107
|
return {
|
|
12103
12108
|
data: {
|
|
12104
12109
|
index: T,
|
|
12105
|
-
overflows:
|
|
12110
|
+
overflows: P
|
|
12106
12111
|
},
|
|
12107
12112
|
reset: {
|
|
12108
12113
|
placement: O
|
|
12109
12114
|
}
|
|
12110
12115
|
};
|
|
12111
12116
|
}
|
|
12112
|
-
let q = (H =
|
|
12117
|
+
let q = (H = P.filter((k) => k.overflows[0] <= 0).sort((k, x) => k.overflows[1] - x.overflows[1])[0]) == null ? void 0 : H.placement;
|
|
12113
12118
|
if (!q)
|
|
12114
12119
|
switch (d) {
|
|
12115
12120
|
case "bestFit": {
|
|
12116
|
-
var
|
|
12117
|
-
const k = (
|
|
12121
|
+
var R;
|
|
12122
|
+
const k = (R = P.filter((x) => {
|
|
12118
12123
|
if (f) {
|
|
12119
12124
|
const j = AA(x.placement);
|
|
12120
12125
|
return j === v || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -12122,7 +12127,7 @@ const jQ = (e) => ({
|
|
|
12122
12127
|
j === "y";
|
|
12123
12128
|
}
|
|
12124
12129
|
return !0;
|
|
12125
|
-
}).map((x) => [x.placement, x.overflows.filter((j) => j > 0).reduce((j, K) => j + K, 0)]).sort((x, j) => x[1] - j[1])[0]) == null ? void 0 :
|
|
12130
|
+
}).map((x) => [x.placement, x.overflows.filter((j) => j > 0).reduce((j, K) => j + K, 0)]).sort((x, j) => x[1] - j[1])[0]) == null ? void 0 : R[0];
|
|
12126
12131
|
k && (q = k);
|
|
12127
12132
|
break;
|
|
12128
12133
|
}
|
|
@@ -12365,16 +12370,16 @@ const UQ = function(e) {
|
|
|
12365
12370
|
const v = E - l.top - l.bottom, b = I - l.left - l.right, w = dA(E - l[Q], v), h = dA(I - l[p], b), f = !A.middlewareData.shift;
|
|
12366
12371
|
let m = w, D = h;
|
|
12367
12372
|
if ((t = A.middlewareData.shift) != null && t.enabled.x && (D = b), (r = A.middlewareData.shift) != null && r.enabled.y && (m = v), f && !B) {
|
|
12368
|
-
const
|
|
12369
|
-
d ? D = I - 2 * (
|
|
12373
|
+
const P = Te(l.left, 0), S = Te(l.right, 0), H = Te(l.top, 0), y = Te(l.bottom, 0);
|
|
12374
|
+
d ? D = I - 2 * (P !== 0 || S !== 0 ? P + S : Te(l.left, l.right)) : m = E - 2 * (H !== 0 || y !== 0 ? H + y : Te(l.top, l.bottom));
|
|
12370
12375
|
}
|
|
12371
12376
|
await s({
|
|
12372
12377
|
...A,
|
|
12373
12378
|
availableWidth: D,
|
|
12374
12379
|
availableHeight: m
|
|
12375
12380
|
});
|
|
12376
|
-
const
|
|
12377
|
-
return I !==
|
|
12381
|
+
const F = await a.getDimensions(u.floating);
|
|
12382
|
+
return I !== F.width || E !== F.height ? {
|
|
12378
12383
|
reset: {
|
|
12379
12384
|
rects: !0
|
|
12380
12385
|
}
|
|
@@ -12945,7 +12950,7 @@ function vc(e) {
|
|
|
12945
12950
|
k !== f.current && (f.current = k, E(k));
|
|
12946
12951
|
}, []), b = i.useCallback((k) => {
|
|
12947
12952
|
k !== m.current && (m.current = k, p(k));
|
|
12948
|
-
}, []), w = o || I, h = a || Q, f = i.useRef(null), m = i.useRef(null), D = i.useRef(l),
|
|
12953
|
+
}, []), w = o || I, h = a || Q, f = i.useRef(null), m = i.useRef(null), D = i.useRef(l), F = s != null, P = Cn(s), S = Cn(n), H = Cn(c), y = i.useCallback(() => {
|
|
12949
12954
|
if (!f.current || !m.current)
|
|
12950
12955
|
return;
|
|
12951
12956
|
const k = {
|
|
@@ -12962,7 +12967,7 @@ function vc(e) {
|
|
|
12962
12967
|
// setting it to `true` when `open === false` (must be specified).
|
|
12963
12968
|
isPositioned: H.current !== !1
|
|
12964
12969
|
};
|
|
12965
|
-
|
|
12970
|
+
R.current && !mr(D.current, j) && (D.current = j, wr.flushSync(() => {
|
|
12966
12971
|
g(j);
|
|
12967
12972
|
}));
|
|
12968
12973
|
});
|
|
@@ -12973,16 +12978,16 @@ function vc(e) {
|
|
|
12973
12978
|
isPositioned: !1
|
|
12974
12979
|
})));
|
|
12975
12980
|
}, [c]);
|
|
12976
|
-
const
|
|
12977
|
-
lr(() => (
|
|
12978
|
-
|
|
12981
|
+
const R = i.useRef(!1);
|
|
12982
|
+
lr(() => (R.current = !0, () => {
|
|
12983
|
+
R.current = !1;
|
|
12979
12984
|
}), []), lr(() => {
|
|
12980
12985
|
if (w && (f.current = w), h && (m.current = h), w && h) {
|
|
12981
|
-
if (
|
|
12982
|
-
return
|
|
12986
|
+
if (P.current)
|
|
12987
|
+
return P.current(w, h, y);
|
|
12983
12988
|
y();
|
|
12984
12989
|
}
|
|
12985
|
-
}, [w, h, y,
|
|
12990
|
+
}, [w, h, y, P, F]);
|
|
12986
12991
|
const T = i.useMemo(() => ({
|
|
12987
12992
|
reference: f,
|
|
12988
12993
|
floating: m,
|
|
@@ -13134,15 +13139,15 @@ var To = "PopperContent", [w2, b2] = Rc(To), zc = i.forwardRef(
|
|
|
13134
13139
|
updatePositionStrategy: d = "optimized",
|
|
13135
13140
|
onPlaced: I,
|
|
13136
13141
|
...E
|
|
13137
|
-
} = e, Q = Mc(To, t), [p, v] = i.useState(null), b = Oe(A, (te) => v(te)), [w, h] = i.useState(null), f = h2(w), m = (f == null ? void 0 : f.width) ?? 0, D = (f == null ? void 0 : f.height) ?? 0,
|
|
13138
|
-
padding:
|
|
13142
|
+
} = e, Q = Mc(To, t), [p, v] = i.useState(null), b = Oe(A, (te) => v(te)), [w, h] = i.useState(null), f = h2(w), m = (f == null ? void 0 : f.width) ?? 0, D = (f == null ? void 0 : f.height) ?? 0, F = r + (o !== "center" ? "-" + o : ""), P = typeof l == "number" ? l : { top: 0, right: 0, bottom: 0, left: 0, ...l }, S = Array.isArray(c) ? c : [c], H = S.length > 0, y = {
|
|
13143
|
+
padding: P,
|
|
13139
13144
|
boundary: S.filter(x2),
|
|
13140
13145
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
13141
13146
|
altBoundary: H
|
|
13142
|
-
}, { refs:
|
|
13147
|
+
}, { refs: R, floatingStyles: T, placement: O, isPositioned: q, middlewareData: k } = vc({
|
|
13143
13148
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
13144
13149
|
strategy: "fixed",
|
|
13145
|
-
placement:
|
|
13150
|
+
placement: F,
|
|
13146
13151
|
whileElementsMounted: (...te) => mc(...te, {
|
|
13147
13152
|
animationFrame: d === "always"
|
|
13148
13153
|
}),
|
|
@@ -13179,7 +13184,7 @@ var To = "PopperContent", [w2, b2] = Rc(To), zc = i.forwardRef(
|
|
|
13179
13184
|
}, [p]), /* @__PURE__ */ C(
|
|
13180
13185
|
"div",
|
|
13181
13186
|
{
|
|
13182
|
-
ref:
|
|
13187
|
+
ref: R.setFloating,
|
|
13183
13188
|
"data-radix-popper-content-wrapper": "",
|
|
13184
13189
|
style: {
|
|
13185
13190
|
...T,
|
|
@@ -13483,10 +13488,10 @@ var V2 = i.forwardRef((e, A) => {
|
|
|
13483
13488
|
h.current = !0;
|
|
13484
13489
|
}),
|
|
13485
13490
|
onFocus: ie(e.onFocus, (D) => {
|
|
13486
|
-
const
|
|
13487
|
-
if (D.target === D.currentTarget &&
|
|
13488
|
-
const
|
|
13489
|
-
if (D.currentTarget.dispatchEvent(
|
|
13491
|
+
const F = !h.current;
|
|
13492
|
+
if (D.target === D.currentTarget && F && !p) {
|
|
13493
|
+
const P = new CustomEvent(Bn, j2);
|
|
13494
|
+
if (D.currentTarget.dispatchEvent(P), !P.defaultPrevented) {
|
|
13490
13495
|
const S = w().filter((O) => O.focusable), H = S.find((O) => O.active), y = S.find((O) => O.id === E), T = [H, y, ...S].filter(
|
|
13491
13496
|
Boolean
|
|
13492
13497
|
).map((O) => O.ref.current);
|
|
@@ -13699,14 +13704,14 @@ var ke = "MenuContent", [cp, ko] = MA(ke), el = i.forwardRef(
|
|
|
13699
13704
|
onDismiss: d,
|
|
13700
13705
|
disableOutsideScroll: I,
|
|
13701
13706
|
...E
|
|
13702
|
-
} = e, Q = LA(ke, t), p = Tt(ke, t), v = jr(t), b = Kc(t), w = rp(t), [h, f] = i.useState(null), m = i.useRef(null), D = Oe(A, m, Q.onContentChange),
|
|
13707
|
+
} = e, Q = LA(ke, t), p = Tt(ke, t), v = jr(t), b = Kc(t), w = rp(t), [h, f] = i.useState(null), m = i.useRef(null), D = Oe(A, m, Q.onContentChange), F = i.useRef(0), P = i.useRef(""), S = i.useRef(0), H = i.useRef(null), y = i.useRef("right"), R = i.useRef(0), T = I ? po : i.Fragment, O = I ? { as: Cp, allowPinchZoom: !0 } : void 0, q = (x) => {
|
|
13703
13708
|
var M, X;
|
|
13704
|
-
const j =
|
|
13709
|
+
const j = P.current + x, K = w().filter((_) => !_.disabled), ne = document.activeElement, z = (M = K.find((_) => _.ref.current === ne)) == null ? void 0 : M.textValue, W = K.map((_) => _.textValue), Z = bp(W, j, z), G = (X = K.find((_) => _.textValue === Z)) == null ? void 0 : X.ref.current;
|
|
13705
13710
|
(function _(oe) {
|
|
13706
|
-
|
|
13711
|
+
P.current = oe, window.clearTimeout(F.current), oe !== "" && (F.current = window.setTimeout(() => _(""), 1e3));
|
|
13707
13712
|
})(j), G && setTimeout(() => G.focus());
|
|
13708
13713
|
};
|
|
13709
|
-
i.useEffect(() => () => window.clearTimeout(
|
|
13714
|
+
i.useEffect(() => () => window.clearTimeout(F.current), []), bs();
|
|
13710
13715
|
const k = i.useCallback((x) => {
|
|
13711
13716
|
var K, ne;
|
|
13712
13717
|
return y.current === ((K = H.current) == null ? void 0 : K.side) && xp(x, (ne = H.current) == null ? void 0 : ne.area);
|
|
@@ -13715,7 +13720,7 @@ var ke = "MenuContent", [cp, ko] = MA(ke), el = i.forwardRef(
|
|
|
13715
13720
|
cp,
|
|
13716
13721
|
{
|
|
13717
13722
|
scope: t,
|
|
13718
|
-
searchRef:
|
|
13723
|
+
searchRef: P,
|
|
13719
13724
|
onItemEnter: i.useCallback(
|
|
13720
13725
|
(x) => {
|
|
13721
13726
|
k(x) && x.preventDefault();
|
|
@@ -13795,15 +13800,15 @@ var ke = "MenuContent", [cp, ko] = MA(ke), el = i.forwardRef(
|
|
|
13795
13800
|
qc.includes(x.key) && G.reverse(), vp(G);
|
|
13796
13801
|
}),
|
|
13797
13802
|
onBlur: ie(e.onBlur, (x) => {
|
|
13798
|
-
x.currentTarget.contains(x.target) || (window.clearTimeout(
|
|
13803
|
+
x.currentTarget.contains(x.target) || (window.clearTimeout(F.current), P.current = "");
|
|
13799
13804
|
}),
|
|
13800
13805
|
onPointerMove: ie(
|
|
13801
13806
|
e.onPointerMove,
|
|
13802
13807
|
vt((x) => {
|
|
13803
|
-
const j = x.target, K =
|
|
13808
|
+
const j = x.target, K = R.current !== x.clientX;
|
|
13804
13809
|
if (x.currentTarget.contains(j) && K) {
|
|
13805
|
-
const ne = x.clientX >
|
|
13806
|
-
y.current = ne,
|
|
13810
|
+
const ne = x.clientX > R.current ? "right" : "left";
|
|
13811
|
+
y.current = ne, R.current = x.clientX;
|
|
13807
13812
|
}
|
|
13808
13813
|
})
|
|
13809
13814
|
)
|
|
@@ -14301,10 +14306,10 @@ var $p = i.forwardRef((e, A) => {
|
|
|
14301
14306
|
h.current = !0;
|
|
14302
14307
|
}),
|
|
14303
14308
|
onFocus: xe(e.onFocus, (D) => {
|
|
14304
|
-
const
|
|
14305
|
-
if (D.target === D.currentTarget &&
|
|
14306
|
-
const
|
|
14307
|
-
if (D.currentTarget.dispatchEvent(
|
|
14309
|
+
const F = !h.current;
|
|
14310
|
+
if (D.target === D.currentTarget && F && !p) {
|
|
14311
|
+
const P = new CustomEvent(En, Xp);
|
|
14312
|
+
if (D.currentTarget.dispatchEvent(P), !P.defaultPrevented) {
|
|
14308
14313
|
const S = w().filter((O) => O.focusable), H = S.find((O) => O.active), y = S.find((O) => O.id === E), T = [H, y, ...S].filter(
|
|
14309
14314
|
Boolean
|
|
14310
14315
|
).map((O) => O.ref.current);
|
|
@@ -14785,30 +14790,30 @@ function Y1({
|
|
|
14785
14790
|
}
|
|
14786
14791
|
);
|
|
14787
14792
|
}
|
|
14788
|
-
const U1 = ({ fullName: e, onLogout: A, type: t = "primary", logoutText: r = "Logout" }) => /* @__PURE__ */ C(k1, { className: "p-0 bg-transparent border-none shadow-none", children: /* @__PURE__ */
|
|
14793
|
+
const U1 = ({ fullName: e, onLogout: A, type: t = "primary", logoutText: r = "Logout" }) => /* @__PURE__ */ C(k1, { className: "p-0 bg-transparent border-none shadow-none", children: /* @__PURE__ */ N(H1, { children: [
|
|
14789
14794
|
/* @__PURE__ */ C(G1, { className: "p-0", children: /* @__PURE__ */ C(ZA, { fullName: e, type: t }) }),
|
|
14790
|
-
/* @__PURE__ */
|
|
14795
|
+
/* @__PURE__ */ N(
|
|
14791
14796
|
W1,
|
|
14792
14797
|
{
|
|
14793
14798
|
align: "end",
|
|
14794
14799
|
className: "bg-popover min-w-32 border-radius-md border-border border shadow-md p-1",
|
|
14795
14800
|
children: [
|
|
14796
14801
|
/* @__PURE__ */ C("div", { className: "text-sm font-semibold text-popover-foreground py-1 px-2", children: e }),
|
|
14797
|
-
/* @__PURE__ */
|
|
14802
|
+
/* @__PURE__ */ N(Y1, { onClick: A, "data-testid": "logout-button", className: "cursor-pointer", children: [
|
|
14798
14803
|
/* @__PURE__ */ C(J, { name: "Logout", className: "w-4 h-4 text-foreground" }),
|
|
14799
14804
|
/* @__PURE__ */ C("span", { className: "text-sm font-medium text-secondary-foreground", children: r })
|
|
14800
14805
|
] })
|
|
14801
14806
|
]
|
|
14802
14807
|
}
|
|
14803
14808
|
)
|
|
14804
|
-
] }) }), gh = ({ fullName: e, logo: A, action: t, avatarType: r = "primary", logoutText: n = "Logout", onLogout: o }) => /* @__PURE__ */
|
|
14809
|
+
] }) }), gh = ({ fullName: e, logo: A, action: t, avatarType: r = "primary", logoutText: n = "Logout", onLogout: o }) => /* @__PURE__ */ N(
|
|
14805
14810
|
"div",
|
|
14806
14811
|
{
|
|
14807
14812
|
className: "w-full h-[56px] px-6 py-2 flex items-center justify-between bg-background",
|
|
14808
14813
|
"data-testid": "header-container",
|
|
14809
14814
|
children: [
|
|
14810
14815
|
A,
|
|
14811
|
-
/* @__PURE__ */
|
|
14816
|
+
/* @__PURE__ */ N("div", { className: "flex items-center gap-2", children: [
|
|
14812
14817
|
/* @__PURE__ */ C(U1, { fullName: e, onLogout: o, type: r, logoutText: n }),
|
|
14813
14818
|
t
|
|
14814
14819
|
] })
|
|
@@ -14819,7 +14824,7 @@ const U1 = ({ fullName: e, onLogout: A, type: t = "primary", logoutText: r = "Lo
|
|
|
14819
14824
|
const r = (n = e.find(
|
|
14820
14825
|
(a) => a.id === A
|
|
14821
14826
|
)) == null ? void 0 : n.isDarkBg;
|
|
14822
|
-
return /* @__PURE__ */
|
|
14827
|
+
return /* @__PURE__ */ N("div", { className: "hidden md:flex gap-3 flex-row-reverse h-full max-h-screen", children: [
|
|
14823
14828
|
/* @__PURE__ */ C("div", { className: "flex gap-2 flex-col", children: e.map((a) => /* @__PURE__ */ C(
|
|
14824
14829
|
"div",
|
|
14825
14830
|
{
|
|
@@ -14857,7 +14862,7 @@ const U1 = ({ fullName: e, onLogout: A, type: t = "primary", logoutText: r = "Lo
|
|
|
14857
14862
|
className: A,
|
|
14858
14863
|
tabs: t,
|
|
14859
14864
|
onClickClose: r
|
|
14860
|
-
}) => /* @__PURE__ */
|
|
14865
|
+
}) => /* @__PURE__ */ N(
|
|
14861
14866
|
"div",
|
|
14862
14867
|
{
|
|
14863
14868
|
className: $(
|
|
@@ -14865,7 +14870,7 @@ const U1 = ({ fullName: e, onLogout: A, type: t = "primary", logoutText: r = "Lo
|
|
|
14865
14870
|
A
|
|
14866
14871
|
),
|
|
14867
14872
|
children: [
|
|
14868
|
-
/* @__PURE__ */
|
|
14873
|
+
/* @__PURE__ */ N(
|
|
14869
14874
|
"div",
|
|
14870
14875
|
{
|
|
14871
14876
|
className: $(
|
|
@@ -15226,14 +15231,14 @@ function gm({ activeSnapPointProp: e, setActiveSnapPointProp: A, snapPoints: t,
|
|
|
15226
15231
|
height: 0
|
|
15227
15232
|
};
|
|
15228
15233
|
var D;
|
|
15229
|
-
return (D = t == null ? void 0 : t.map((
|
|
15230
|
-
const
|
|
15234
|
+
return (D = t == null ? void 0 : t.map((F) => {
|
|
15235
|
+
const P = typeof F == "string";
|
|
15231
15236
|
let S = 0;
|
|
15232
|
-
if (
|
|
15233
|
-
const y =
|
|
15237
|
+
if (P && (S = parseInt(F, 10)), fe(u)) {
|
|
15238
|
+
const y = P ? S : B ? F * m.height : 0;
|
|
15234
15239
|
return B ? u === "bottom" ? m.height - y : -m.height + y : y;
|
|
15235
15240
|
}
|
|
15236
|
-
const H =
|
|
15241
|
+
const H = P ? S : B ? F * m.width : 0;
|
|
15237
15242
|
return B ? u === "right" ? m.width - H : -m.width + H : H;
|
|
15238
15243
|
})) != null ? D : [];
|
|
15239
15244
|
}, [
|
|
@@ -15245,17 +15250,17 @@ function gm({ activeSnapPointProp: e, setActiveSnapPointProp: A, snapPoints: t,
|
|
|
15245
15250
|
E
|
|
15246
15251
|
]), b = L.useCallback((m) => {
|
|
15247
15252
|
var D;
|
|
15248
|
-
const
|
|
15249
|
-
a(
|
|
15253
|
+
const F = (D = p == null ? void 0 : p.findIndex((P) => P === m)) != null ? D : null;
|
|
15254
|
+
a(F), Ie(r.current, {
|
|
15250
15255
|
transition: `transform ${Ce.DURATION}s cubic-bezier(${Ce.EASE.join(",")})`,
|
|
15251
15256
|
transform: fe(u) ? `translate3d(0, ${m}px, 0)` : `translate3d(${m}px, 0, 0)`
|
|
15252
|
-
}), p &&
|
|
15257
|
+
}), p && F !== p.length - 1 && o !== void 0 && F !== o && F < o ? Ie(n.current, {
|
|
15253
15258
|
transition: `opacity ${Ce.DURATION}s cubic-bezier(${Ce.EASE.join(",")})`,
|
|
15254
15259
|
opacity: "0"
|
|
15255
15260
|
}) : Ie(n.current, {
|
|
15256
15261
|
transition: `opacity ${Ce.DURATION}s cubic-bezier(${Ce.EASE.join(",")})`,
|
|
15257
15262
|
opacity: "1"
|
|
15258
|
-
}), g(t == null ? void 0 : t[Math.max(
|
|
15263
|
+
}), g(t == null ? void 0 : t[Math.max(F, 0)]);
|
|
15259
15264
|
}, [
|
|
15260
15265
|
r.current,
|
|
15261
15266
|
t,
|
|
@@ -15267,7 +15272,7 @@ function gm({ activeSnapPointProp: e, setActiveSnapPointProp: A, snapPoints: t,
|
|
|
15267
15272
|
L.useEffect(() => {
|
|
15268
15273
|
if (l || e) {
|
|
15269
15274
|
var m;
|
|
15270
|
-
const D = (m = t == null ? void 0 : t.findIndex((
|
|
15275
|
+
const D = (m = t == null ? void 0 : t.findIndex((F) => F === e || F === l)) != null ? m : -1;
|
|
15271
15276
|
p && D !== -1 && typeof p[D] == "number" && b(p[D]);
|
|
15272
15277
|
}
|
|
15273
15278
|
}, [
|
|
@@ -15277,27 +15282,27 @@ function gm({ activeSnapPointProp: e, setActiveSnapPointProp: A, snapPoints: t,
|
|
|
15277
15282
|
p,
|
|
15278
15283
|
b
|
|
15279
15284
|
]);
|
|
15280
|
-
function w({ draggedDistance: m, closeDrawer: D, velocity:
|
|
15285
|
+
function w({ draggedDistance: m, closeDrawer: D, velocity: F, dismissible: P }) {
|
|
15281
15286
|
if (o === void 0) return;
|
|
15282
|
-
const S = u === "bottom" || u === "right" ? (v ?? 0) - m : (v ?? 0) + m, H = E === o - 1, y = E === 0,
|
|
15287
|
+
const S = u === "bottom" || u === "right" ? (v ?? 0) - m : (v ?? 0) + m, H = E === o - 1, y = E === 0, R = m > 0;
|
|
15283
15288
|
if (H && Ie(n.current, {
|
|
15284
15289
|
transition: `opacity ${Ce.DURATION}s cubic-bezier(${Ce.EASE.join(",")})`
|
|
15285
|
-
}), !c &&
|
|
15286
|
-
|
|
15290
|
+
}), !c && F > 2 && !R) {
|
|
15291
|
+
P ? D() : b(p[0]);
|
|
15287
15292
|
return;
|
|
15288
15293
|
}
|
|
15289
|
-
if (!c &&
|
|
15294
|
+
if (!c && F > 2 && R && p && t) {
|
|
15290
15295
|
b(p[t.length - 1]);
|
|
15291
15296
|
return;
|
|
15292
15297
|
}
|
|
15293
15298
|
const T = p == null ? void 0 : p.reduce((q, k) => typeof q != "number" || typeof k != "number" ? q : Math.abs(k - S) < Math.abs(q - S) ? k : q), O = fe(u) ? window.innerHeight : window.innerWidth;
|
|
15294
|
-
if (
|
|
15295
|
-
const q =
|
|
15299
|
+
if (F > zl && Math.abs(m) < O * 0.4) {
|
|
15300
|
+
const q = R ? 1 : -1;
|
|
15296
15301
|
if (q > 0 && I && t) {
|
|
15297
15302
|
b(p[t.length - 1]);
|
|
15298
15303
|
return;
|
|
15299
15304
|
}
|
|
15300
|
-
if (y && q < 0 &&
|
|
15305
|
+
if (y && q < 0 && P && D(), E === null) return;
|
|
15301
15306
|
b(p[E + q]);
|
|
15302
15307
|
return;
|
|
15303
15308
|
}
|
|
@@ -15312,13 +15317,13 @@ function gm({ activeSnapPointProp: e, setActiveSnapPointProp: A, snapPoints: t,
|
|
|
15312
15317
|
}
|
|
15313
15318
|
function f(m, D) {
|
|
15314
15319
|
if (!t || typeof E != "number" || !p || o === void 0) return null;
|
|
15315
|
-
const
|
|
15320
|
+
const F = E === o - 1;
|
|
15316
15321
|
if (E >= o && D)
|
|
15317
15322
|
return 0;
|
|
15318
|
-
if (
|
|
15319
|
-
if (!Q && !
|
|
15320
|
-
const S =
|
|
15321
|
-
return
|
|
15323
|
+
if (F && !D) return 1;
|
|
15324
|
+
if (!Q && !F) return null;
|
|
15325
|
+
const S = F ? E + 1 : E - 1, H = F ? p[S] - p[S - 1] : p[S + 1] - p[S], y = m / Math.abs(H);
|
|
15326
|
+
return F ? 1 - y : y;
|
|
15322
15327
|
}
|
|
15323
15328
|
return {
|
|
15324
15329
|
isLastSnapPoint: I,
|
|
@@ -15442,19 +15447,19 @@ function Em({ isOpen: e, modal: A, nested: t, hasBeenOpened: r, preventScrollRes
|
|
|
15442
15447
|
restorePositionSetting: l
|
|
15443
15448
|
};
|
|
15444
15449
|
}
|
|
15445
|
-
function dm({ open: e, onOpenChange: A, children: t, onDrag: r, onRelease: n, snapPoints: o, shouldScaleBackground: a = !1, setBackgroundColorOnScale: u = !0, closeThreshold: s = sm, scrollLockTimeout: c = cm, dismissible: l = !0, handleOnly: g = !1, fadeFromIndex: B = o && o.length - 1, activeSnapPoint: d, setActiveSnapPoint: I, fixed: E, modal: Q = !0, onClose: p, nested: v, noBodyStyles: b = !1, direction: w = "bottom", defaultOpen: h = !1, disablePreventScroll: f = !0, snapToSequentialPoint: m = !1, preventScrollRestoration: D = !1, repositionInputs:
|
|
15446
|
-
var y,
|
|
15450
|
+
function dm({ open: e, onOpenChange: A, children: t, onDrag: r, onRelease: n, snapPoints: o, shouldScaleBackground: a = !1, setBackgroundColorOnScale: u = !0, closeThreshold: s = sm, scrollLockTimeout: c = cm, dismissible: l = !0, handleOnly: g = !1, fadeFromIndex: B = o && o.length - 1, activeSnapPoint: d, setActiveSnapPoint: I, fixed: E, modal: Q = !0, onClose: p, nested: v, noBodyStyles: b = !1, direction: w = "bottom", defaultOpen: h = !1, disablePreventScroll: f = !0, snapToSequentialPoint: m = !1, preventScrollRestoration: D = !1, repositionInputs: F = !0, onAnimationEnd: P, container: S, autoFocus: H = !1 }) {
|
|
15451
|
+
var y, R;
|
|
15447
15452
|
const [T = !1, O] = jl({
|
|
15448
15453
|
defaultProp: h,
|
|
15449
15454
|
prop: e,
|
|
15450
15455
|
onChange: (ee) => {
|
|
15451
15456
|
A == null || A(ee), !ee && !v && Ig(), setTimeout(() => {
|
|
15452
|
-
|
|
15457
|
+
P == null || P(ee);
|
|
15453
15458
|
}, Ce.DURATION * 1e3), ee && !Q && typeof window < "u" && window.requestAnimationFrame(() => {
|
|
15454
15459
|
document.body.style.pointerEvents = "auto";
|
|
15455
15460
|
}), ee || (document.body.style.pointerEvents = "auto");
|
|
15456
15461
|
}
|
|
15457
|
-
}), [q, k] = L.useState(!1), [x, j] = L.useState(!1), [K, ne] = L.useState(!1), z = L.useRef(null), W = L.useRef(null), Z = L.useRef(null), G = L.useRef(null), M = L.useRef(null), X = L.useRef(!1), _ = L.useRef(null), oe = L.useRef(0), ce = L.useRef(!1), ge = L.useRef(!h), te = L.useRef(0), V = L.useRef(null), ve = L.useRef(((y = V.current) == null ? void 0 : y.getBoundingClientRect().height) || 0), we = L.useRef(((
|
|
15462
|
+
}), [q, k] = L.useState(!1), [x, j] = L.useState(!1), [K, ne] = L.useState(!1), z = L.useRef(null), W = L.useRef(null), Z = L.useRef(null), G = L.useRef(null), M = L.useRef(null), X = L.useRef(!1), _ = L.useRef(null), oe = L.useRef(0), ce = L.useRef(!1), ge = L.useRef(!h), te = L.useRef(0), V = L.useRef(null), ve = L.useRef(((y = V.current) == null ? void 0 : y.getBoundingClientRect().height) || 0), we = L.useRef(((R = V.current) == null ? void 0 : R.getBoundingClientRect().width) || 0), He = L.useRef(0), de = L.useCallback((ee) => {
|
|
15458
15463
|
o && ee === QA.length - 1 && (W.current = /* @__PURE__ */ new Date());
|
|
15459
15464
|
}, []), { activeSnapPoint: Fe, activeSnapPointIndex: nA, setActiveSnapPoint: oA, onRelease: Wt, snapPointsOffset: QA, onDrag: dg, shouldFade: _o, getPercentageDragged: fg } = gm({
|
|
15460
15465
|
snapPoints: o,
|
|
@@ -15469,7 +15474,7 @@ function dm({ open: e, onOpenChange: A, children: t, onDrag: r, onRelease: n, sn
|
|
|
15469
15474
|
snapToSequentialPoint: m
|
|
15470
15475
|
});
|
|
15471
15476
|
Am({
|
|
15472
|
-
isDisabled: !T || x || !Q || K || !q || !
|
|
15477
|
+
isDisabled: !T || x || !Q || K || !q || !F || !f
|
|
15473
15478
|
});
|
|
15474
15479
|
const { restorePositionSetting: Ig } = Em({
|
|
15475
15480
|
isOpen: T,
|
|
@@ -15563,7 +15568,7 @@ function dm({ open: e, onOpenChange: A, children: t, onDrag: r, onRelease: n, sn
|
|
|
15563
15568
|
}, []), L.useEffect(() => {
|
|
15564
15569
|
var ee;
|
|
15565
15570
|
function se() {
|
|
15566
|
-
if (!V.current || !
|
|
15571
|
+
if (!V.current || !F) return;
|
|
15567
15572
|
const le = document.activeElement;
|
|
15568
15573
|
if (Un(le) || ce.current) {
|
|
15569
15574
|
var ue;
|
|
@@ -15760,34 +15765,34 @@ const Gl = /* @__PURE__ */ L.forwardRef(function({ ...e }, A) {
|
|
|
15760
15765
|
});
|
|
15761
15766
|
Gl.displayName = "Drawer.Overlay";
|
|
15762
15767
|
const Wl = /* @__PURE__ */ L.forwardRef(function({ onPointerDownOutside: e, style: A, onOpenAutoFocus: t, ...r }, n) {
|
|
15763
|
-
const { drawerRef: o, onPress: a, onRelease: u, onDrag: s, keyboardIsOpen: c, snapPointsOffset: l, activeSnapPointIndex: g, modal: B, isOpen: d, direction: I, snapPoints: E, container: Q, handleOnly: p, shouldAnimate: v, autoFocus: b } = kt(), [w, h] = L.useState(!1), f = Tl(n, o), m = L.useRef(null), D = L.useRef(null),
|
|
15768
|
+
const { drawerRef: o, onPress: a, onRelease: u, onDrag: s, keyboardIsOpen: c, snapPointsOffset: l, activeSnapPointIndex: g, modal: B, isOpen: d, direction: I, snapPoints: E, container: Q, handleOnly: p, shouldAnimate: v, autoFocus: b } = kt(), [w, h] = L.useState(!1), f = Tl(n, o), m = L.useRef(null), D = L.useRef(null), F = L.useRef(!1), P = E && E.length > 0;
|
|
15764
15769
|
Bm();
|
|
15765
|
-
const S = (y,
|
|
15766
|
-
if (
|
|
15770
|
+
const S = (y, R, T = 0) => {
|
|
15771
|
+
if (F.current) return !0;
|
|
15767
15772
|
const O = Math.abs(y.y), q = Math.abs(y.x), k = q > O, x = [
|
|
15768
15773
|
"bottom",
|
|
15769
15774
|
"right"
|
|
15770
|
-
].includes(
|
|
15771
|
-
if (
|
|
15775
|
+
].includes(R) ? 1 : -1;
|
|
15776
|
+
if (R === "left" || R === "right") {
|
|
15772
15777
|
if (!(y.x * x < 0) && q >= 0 && q <= T)
|
|
15773
15778
|
return k;
|
|
15774
15779
|
} else if (!(y.y * x < 0) && O >= 0 && O <= T)
|
|
15775
15780
|
return !k;
|
|
15776
|
-
return
|
|
15781
|
+
return F.current = !0, !0;
|
|
15777
15782
|
};
|
|
15778
15783
|
L.useEffect(() => {
|
|
15779
|
-
|
|
15784
|
+
P && window.requestAnimationFrame(() => {
|
|
15780
15785
|
h(!0);
|
|
15781
15786
|
});
|
|
15782
15787
|
}, []);
|
|
15783
15788
|
function H(y) {
|
|
15784
|
-
m.current = null,
|
|
15789
|
+
m.current = null, F.current = !1, u(y);
|
|
15785
15790
|
}
|
|
15786
15791
|
return /* @__PURE__ */ L.createElement(bo, {
|
|
15787
15792
|
"data-vaul-drawer-direction": I,
|
|
15788
15793
|
"data-vaul-drawer": "",
|
|
15789
15794
|
"data-vaul-delayed-snap-points": w ? "true" : "false",
|
|
15790
|
-
"data-vaul-snap-points": d &&
|
|
15795
|
+
"data-vaul-snap-points": d && P ? "true" : "false",
|
|
15791
15796
|
"data-vaul-custom-container": Q ? "true" : "false",
|
|
15792
15797
|
"data-vaul-animate": v != null && v.current ? "true" : "false",
|
|
15793
15798
|
...r,
|
|
@@ -15820,14 +15825,14 @@ const Wl = /* @__PURE__ */ L.forwardRef(function({ onPointerDownOutside: e, styl
|
|
|
15820
15825
|
},
|
|
15821
15826
|
onPointerMove: (y) => {
|
|
15822
15827
|
if (D.current = y, p || (r.onPointerMove == null || r.onPointerMove.call(r, y), !m.current)) return;
|
|
15823
|
-
const
|
|
15828
|
+
const R = y.pageY - m.current.y, T = y.pageX - m.current.x, O = y.pointerType === "touch" ? 10 : 2;
|
|
15824
15829
|
S({
|
|
15825
15830
|
x: T,
|
|
15826
|
-
y:
|
|
15827
|
-
}, I, O) ? s(y) : (Math.abs(T) > O || Math.abs(
|
|
15831
|
+
y: R
|
|
15832
|
+
}, I, O) ? s(y) : (Math.abs(T) > O || Math.abs(R) > O) && (m.current = null);
|
|
15828
15833
|
},
|
|
15829
15834
|
onPointerUp: (y) => {
|
|
15830
|
-
r.onPointerUp == null || r.onPointerUp.call(r, y), m.current = null,
|
|
15835
|
+
r.onPointerUp == null || r.onPointerUp.call(r, y), m.current = null, F.current = !1, u(y);
|
|
15831
15836
|
},
|
|
15832
15837
|
onPointerOut: (y) => {
|
|
15833
15838
|
r.onPointerOut == null || r.onPointerOut.call(r, y), H(D.current);
|
|
@@ -15941,9 +15946,9 @@ function wm({
|
|
|
15941
15946
|
children: A,
|
|
15942
15947
|
...t
|
|
15943
15948
|
}) {
|
|
15944
|
-
return /* @__PURE__ */
|
|
15949
|
+
return /* @__PURE__ */ N(hm, { "data-slot": "drawer-portal", children: [
|
|
15945
15950
|
/* @__PURE__ */ C(vm, {}),
|
|
15946
|
-
/* @__PURE__ */
|
|
15951
|
+
/* @__PURE__ */ N(
|
|
15947
15952
|
Ht.Content,
|
|
15948
15953
|
{
|
|
15949
15954
|
"data-slot": "drawer-content",
|
|
@@ -15957,7 +15962,7 @@ function wm({
|
|
|
15957
15962
|
),
|
|
15958
15963
|
...t,
|
|
15959
15964
|
children: [
|
|
15960
|
-
/* @__PURE__ */
|
|
15965
|
+
/* @__PURE__ */ N(Tr, { children: [
|
|
15961
15966
|
" ",
|
|
15962
15967
|
/* @__PURE__ */ C(bm, {})
|
|
15963
15968
|
] }),
|
|
@@ -15985,7 +15990,7 @@ const Dm = ({ content: e, isOpen: A, onOpenChange: t }) => /* @__PURE__ */ C(mm,
|
|
|
15985
15990
|
onOpenChange: A,
|
|
15986
15991
|
supportProps: t,
|
|
15987
15992
|
buttonClassName: r
|
|
15988
|
-
}) => /* @__PURE__ */
|
|
15993
|
+
}) => /* @__PURE__ */ N(We, { children: [
|
|
15989
15994
|
/* @__PURE__ */ C(
|
|
15990
15995
|
be,
|
|
15991
15996
|
{
|
|
@@ -16023,8 +16028,8 @@ const Dm = ({ content: e, isOpen: A, onOpenChange: t }) => /* @__PURE__ */ C(mm,
|
|
|
16023
16028
|
buttonClassName: o
|
|
16024
16029
|
}) => {
|
|
16025
16030
|
const a = Nt();
|
|
16026
|
-
return /* @__PURE__ */
|
|
16027
|
-
/* @__PURE__ */
|
|
16031
|
+
return /* @__PURE__ */ N(We, { children: [
|
|
16032
|
+
/* @__PURE__ */ N(
|
|
16028
16033
|
is,
|
|
16029
16034
|
{
|
|
16030
16035
|
direction: a ? "vertical" : "horizontal",
|
|
@@ -16196,11 +16201,11 @@ var Om = "DismissableLayer", Zn = "dismissableLayer.update", Mm = "dismissableLa
|
|
|
16196
16201
|
onDismiss: u,
|
|
16197
16202
|
...s
|
|
16198
16203
|
} = e, c = i.useContext(Ul), [l, g] = i.useState(null), B = (l == null ? void 0 : l.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, d] = i.useState({}), I = jt(A, (m) => g(m)), E = Array.from(c.layers), [Q] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), p = E.indexOf(Q), v = l ? E.indexOf(l) : -1, b = c.layersWithOutsidePointerEventsDisabled.size > 0, w = v >= p, h = zm((m) => {
|
|
16199
|
-
const D = m.target,
|
|
16200
|
-
!w ||
|
|
16204
|
+
const D = m.target, F = [...c.branches].some((P) => P.contains(D));
|
|
16205
|
+
!w || F || (n == null || n(m), a == null || a(m), m.defaultPrevented || u == null || u());
|
|
16201
16206
|
}, B), f = km((m) => {
|
|
16202
16207
|
const D = m.target;
|
|
16203
|
-
[...c.branches].some((
|
|
16208
|
+
[...c.branches].some((P) => P.contains(D)) || (o == null || o(m), a == null || a(m), m.defaultPrevented || u == null || u());
|
|
16204
16209
|
}, B);
|
|
16205
16210
|
return Qo((m) => {
|
|
16206
16211
|
v === c.layers.size - 1 && (r == null || r(m), !m.defaultPrevented && u && (m.preventDefault(), u()));
|
|
@@ -16511,15 +16516,15 @@ var Xo = "PopperContent", [e0, A0] = Jl(Xo), rg = i.forwardRef(
|
|
|
16511
16516
|
updatePositionStrategy: d = "optimized",
|
|
16512
16517
|
onPlaced: I,
|
|
16513
16518
|
...E
|
|
16514
|
-
} = e, Q = $l(Xo, t), [p, v] = i.useState(null), b = ql(A, (te) => v(te)), [w, h] = i.useState(null), f = _m(w), m = (f == null ? void 0 : f.width) ?? 0, D = (f == null ? void 0 : f.height) ?? 0,
|
|
16515
|
-
padding:
|
|
16519
|
+
} = e, Q = $l(Xo, t), [p, v] = i.useState(null), b = ql(A, (te) => v(te)), [w, h] = i.useState(null), f = _m(w), m = (f == null ? void 0 : f.width) ?? 0, D = (f == null ? void 0 : f.height) ?? 0, F = r + (o !== "center" ? "-" + o : ""), P = typeof l == "number" ? l : { top: 0, right: 0, bottom: 0, left: 0, ...l }, S = Array.isArray(c) ? c : [c], H = S.length > 0, y = {
|
|
16520
|
+
padding: P,
|
|
16516
16521
|
boundary: S.filter(r0),
|
|
16517
16522
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
16518
16523
|
altBoundary: H
|
|
16519
|
-
}, { refs:
|
|
16524
|
+
}, { refs: R, floatingStyles: T, placement: O, isPositioned: q, middlewareData: k } = vc({
|
|
16520
16525
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
16521
16526
|
strategy: "fixed",
|
|
16522
|
-
placement:
|
|
16527
|
+
placement: F,
|
|
16523
16528
|
whileElementsMounted: (...te) => mc(...te, {
|
|
16524
16529
|
animationFrame: d === "always"
|
|
16525
16530
|
}),
|
|
@@ -16556,7 +16561,7 @@ var Xo = "PopperContent", [e0, A0] = Jl(Xo), rg = i.forwardRef(
|
|
|
16556
16561
|
}, [p]), /* @__PURE__ */ C(
|
|
16557
16562
|
"div",
|
|
16558
16563
|
{
|
|
16559
|
-
ref:
|
|
16564
|
+
ref: R.setFloating,
|
|
16560
16565
|
"data-radix-popper-content-wrapper": "",
|
|
16561
16566
|
style: {
|
|
16562
16567
|
...T,
|
|
@@ -16980,7 +16985,7 @@ var _A = "TooltipContent", Cg = i.forwardRef(
|
|
|
16980
16985
|
onPointerDownOutside: a,
|
|
16981
16986
|
onFocusOutside: (g) => g.preventDefault(),
|
|
16982
16987
|
onDismiss: l,
|
|
16983
|
-
children: /* @__PURE__ */
|
|
16988
|
+
children: /* @__PURE__ */ N(
|
|
16984
16989
|
u0,
|
|
16985
16990
|
{
|
|
16986
16991
|
"data-state": s.stateAttribute,
|
|
@@ -17177,13 +17182,13 @@ const G0 = {
|
|
|
17177
17182
|
if (n) {
|
|
17178
17183
|
const g = [], B = n || 0;
|
|
17179
17184
|
if (s && (B === 2 || B === 3))
|
|
17180
|
-
return B === 3 ? /* @__PURE__ */
|
|
17181
|
-
/* @__PURE__ */
|
|
17185
|
+
return B === 3 ? /* @__PURE__ */ N("div", { className: "flex flex-col items-center", children: [
|
|
17186
|
+
/* @__PURE__ */ N("div", { className: "flex", children: [
|
|
17182
17187
|
l("size-3"),
|
|
17183
17188
|
l("size-3")
|
|
17184
17189
|
] }),
|
|
17185
17190
|
/* @__PURE__ */ C("div", { className: "flex justify-center -mt-1", children: l("size-3") })
|
|
17186
|
-
] }) : /* @__PURE__ */
|
|
17191
|
+
] }) : /* @__PURE__ */ N("div", { className: "flex gap-0.5", children: [
|
|
17187
17192
|
l("size-4"),
|
|
17188
17193
|
l("size-4")
|
|
17189
17194
|
] });
|
|
@@ -17193,17 +17198,17 @@ const G0 = {
|
|
|
17193
17198
|
} else
|
|
17194
17199
|
return l("size-5");
|
|
17195
17200
|
};
|
|
17196
|
-
return a && o ? /* @__PURE__ */
|
|
17197
|
-
/* @__PURE__ */ C(H0, { asChild: !0, children: /* @__PURE__ */
|
|
17201
|
+
return a && o ? /* @__PURE__ */ N(k0, { children: [
|
|
17202
|
+
/* @__PURE__ */ C(H0, { asChild: !0, children: /* @__PURE__ */ N("div", { className: "flex items-center gap-1", children: [
|
|
17198
17203
|
c(),
|
|
17199
17204
|
!s && /* @__PURE__ */ C("span", { className: `${A} text-sm font-medium`, children: e })
|
|
17200
17205
|
] }) }),
|
|
17201
|
-
/* @__PURE__ */ C(j0, { className: "bg-background text-foreground m-1 border", side: u, children: /* @__PURE__ */
|
|
17206
|
+
/* @__PURE__ */ C(j0, { className: "bg-background text-foreground m-1 border", side: u, children: /* @__PURE__ */ N("p", { className: "text-sm font-medium", children: [
|
|
17202
17207
|
a,
|
|
17203
17208
|
": ",
|
|
17204
17209
|
o
|
|
17205
17210
|
] }) })
|
|
17206
|
-
] }) : /* @__PURE__ */
|
|
17211
|
+
] }) : /* @__PURE__ */ N("div", { className: "flex items-center gap-1", children: [
|
|
17207
17212
|
c(),
|
|
17208
17213
|
!s && /* @__PURE__ */ C("span", { className: `${A} text-sm font-medium`, children: e })
|
|
17209
17214
|
] });
|
|
@@ -17222,18 +17227,18 @@ const G0 = {
|
|
|
17222
17227
|
className: t
|
|
17223
17228
|
}) => {
|
|
17224
17229
|
const r = Nt(), n = A !== void 0 ? `(%${A})` : "";
|
|
17225
|
-
return r ? /* @__PURE__ */ C("div", { className: "flex gap-2 items-center", children: /* @__PURE__ */
|
|
17230
|
+
return r ? /* @__PURE__ */ C("div", { className: "flex gap-2 items-center", children: /* @__PURE__ */ N("div", { className: "bg-secondary-foreground rounded-xl p-2 flex items-center gap-2", children: [
|
|
17226
17231
|
/* @__PURE__ */ C(J, { name: "Camera", className: "text-primary-brew" }),
|
|
17227
|
-
A !== void 0 && /* @__PURE__ */
|
|
17232
|
+
A !== void 0 && /* @__PURE__ */ N("div", { className: "text-primary-foreground text-sm font-medium", children: [
|
|
17228
17233
|
"%",
|
|
17229
17234
|
A
|
|
17230
17235
|
] })
|
|
17231
|
-
] }) }) : /* @__PURE__ */ C("div", { className: "flex items-center gap-2", children: /* @__PURE__ */
|
|
17236
|
+
] }) }) : /* @__PURE__ */ C("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ N(
|
|
17232
17237
|
"div",
|
|
17233
17238
|
{
|
|
17234
17239
|
className: `w-full bg-secondary-foreground rounded-xl h-[3.250rem] p-2 flex flex-col justify-center gap-1.5 ${t || ""}`,
|
|
17235
17240
|
children: [
|
|
17236
|
-
/* @__PURE__ */
|
|
17241
|
+
/* @__PURE__ */ N("span", { className: "text-primary-foreground text-sm font-medium", children: [
|
|
17237
17242
|
e,
|
|
17238
17243
|
" ",
|
|
17239
17244
|
n
|