@stackable-labs/embeddables 2.17.0 → 2.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/react.js +517 -515
- package/dist/stackable-widget.external.js +7 -7
- package/dist/stackable-widget.js +17 -17
- package/package.json +1 -1
package/dist/react.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as K, jsx as f, Fragment as Me } from "react/jsx-runtime";
|
|
2
2
|
import * as m from "react";
|
|
3
|
-
import
|
|
3
|
+
import B, { useState as le, useRef as Re, useEffect as ae, useContext as md, createContext as hd, createElement as xn, useMemo as Ye, forwardRef as Si, useLayoutEffect as gd, useCallback as ve } from "react";
|
|
4
4
|
import * as In from "react-dom";
|
|
5
5
|
import Ei from "react-dom";
|
|
6
6
|
const vd = () => {
|
|
7
7
|
try {
|
|
8
|
-
return "
|
|
8
|
+
return "fabd4198-4c68-4d6d-8bee-c42040768934";
|
|
9
9
|
} catch {
|
|
10
10
|
return "dev";
|
|
11
11
|
}
|
|
@@ -529,12 +529,12 @@ const Tt = {
|
|
|
529
529
|
if (!s.tag)
|
|
530
530
|
return null;
|
|
531
531
|
if (s.tag === "__fragment")
|
|
532
|
-
return /* @__PURE__ */ f(
|
|
532
|
+
return /* @__PURE__ */ f(B.Fragment, { children: (h = s.children) == null ? void 0 : h.map((b, y) => r(b, i, y)) }, a);
|
|
533
533
|
if (!kd(s.tag))
|
|
534
534
|
return console.warn(`${o} Unknown UI tag rejected: <${s.tag}>`), null;
|
|
535
535
|
const c = e[s.tag];
|
|
536
536
|
if (!c)
|
|
537
|
-
return s.tag.startsWith("ui-") ? (console.warn(`${o} Unregistered UI tag: <${s.tag}>`), null) : /* @__PURE__ */ f(
|
|
537
|
+
return s.tag.startsWith("ui-") ? (console.warn(`${o} Unregistered UI tag: <${s.tag}>`), null) : /* @__PURE__ */ f(B.Fragment, { children: (v = s.children) == null ? void 0 : v.map((b, y) => r(b, i, y)) }, a);
|
|
538
538
|
const { filtered: d, stripped: u } = Nd(s.tag, s.attrs);
|
|
539
539
|
u.length > 0 && console.warn(`${o} Attributes not allowed on <${s.tag}>, stripped: ${u.join(", ")}`);
|
|
540
540
|
const l = Rd(s.tag, s.children);
|
|
@@ -653,7 +653,7 @@ const Tt = {
|
|
|
653
653
|
children: b.children,
|
|
654
654
|
index: y,
|
|
655
655
|
total: w.length
|
|
656
|
-
}) : /* @__PURE__ */ f(
|
|
656
|
+
}) : /* @__PURE__ */ f(B.Fragment, { children: b.children }, b.id), C = /* @__PURE__ */ f(B.Fragment, { children: x }, `extension:${b.id}`);
|
|
657
657
|
if (y === 0 || !o)
|
|
658
658
|
return [C];
|
|
659
659
|
const N = w[y - 1], E = typeof o == "function" ? o({
|
|
@@ -663,7 +663,7 @@ const Tt = {
|
|
|
663
663
|
extensionId: b.id
|
|
664
664
|
}) : o;
|
|
665
665
|
return [
|
|
666
|
-
/* @__PURE__ */ f(
|
|
666
|
+
/* @__PURE__ */ f(B.Fragment, { children: E }, `separator:${N.id}:${b.id}:${y}`),
|
|
667
667
|
C
|
|
668
668
|
];
|
|
669
669
|
}) : r;
|
|
@@ -742,7 +742,7 @@ const Tt = {
|
|
|
742
742
|
if (v.groupId === null)
|
|
743
743
|
return /* @__PURE__ */ f("div", { "data-extension-group": "__unassigned", children: v.extensions.map((b) => {
|
|
744
744
|
const y = a[b.id];
|
|
745
|
-
return y ? /* @__PURE__ */ f(
|
|
745
|
+
return y ? /* @__PURE__ */ f(B.Fragment, { children: y }, b.id) : null;
|
|
746
746
|
}) }, "unassigned");
|
|
747
747
|
const g = i == null ? void 0 : i.find((b) => b.id === v.groupId);
|
|
748
748
|
return g ? /* @__PURE__ */ f(
|
|
@@ -762,9 +762,9 @@ const Tt = {
|
|
|
762
762
|
}, [o.length, r]), o.length === 0)
|
|
763
763
|
return null;
|
|
764
764
|
if (o.length === 1)
|
|
765
|
-
return /* @__PURE__ */ f("div", { "data-extension-group": e.id, children: /* @__PURE__ */ f(
|
|
765
|
+
return /* @__PURE__ */ f("div", { "data-extension-group": e.id, children: /* @__PURE__ */ f(B.Fragment, { children: n[o[0].id] }, o[0].id) });
|
|
766
766
|
if (!e.paginated)
|
|
767
|
-
return /* @__PURE__ */ f("div", { "data-extension-group": e.id, className: "flex flex-col", children: o.map((c) => /* @__PURE__ */ f(
|
|
767
|
+
return /* @__PURE__ */ f("div", { "data-extension-group": e.id, className: "flex flex-col", children: o.map((c) => /* @__PURE__ */ f(B.Fragment, { children: n[c.id] }, c.id)) });
|
|
768
768
|
const i = Math.min(r, o.length - 1), a = {
|
|
769
769
|
transform: `translateX(-${i * 100}%)`,
|
|
770
770
|
transition: "transform 200ms ease-out",
|
|
@@ -861,58 +861,58 @@ const Od = (e) => {
|
|
|
861
861
|
default:
|
|
862
862
|
return null;
|
|
863
863
|
}
|
|
864
|
-
},
|
|
864
|
+
}, Dd = Array(12).fill(0), zd = ({ visible: e, className: t }) => /* @__PURE__ */ B.createElement("div", {
|
|
865
865
|
className: [
|
|
866
866
|
"sonner-loading-wrapper",
|
|
867
867
|
t
|
|
868
868
|
].filter(Boolean).join(" "),
|
|
869
869
|
"data-visible": e
|
|
870
|
-
}, /* @__PURE__ */
|
|
870
|
+
}, /* @__PURE__ */ B.createElement("div", {
|
|
871
871
|
className: "sonner-spinner"
|
|
872
|
-
},
|
|
872
|
+
}, Dd.map((n, o) => /* @__PURE__ */ B.createElement("div", {
|
|
873
873
|
className: "sonner-loading-bar",
|
|
874
874
|
key: `spinner-bar-${o}`
|
|
875
|
-
})))), Bd = /* @__PURE__ */
|
|
875
|
+
})))), Bd = /* @__PURE__ */ B.createElement("svg", {
|
|
876
876
|
xmlns: "http://www.w3.org/2000/svg",
|
|
877
877
|
viewBox: "0 0 20 20",
|
|
878
878
|
fill: "currentColor",
|
|
879
879
|
height: "20",
|
|
880
880
|
width: "20"
|
|
881
|
-
}, /* @__PURE__ */
|
|
881
|
+
}, /* @__PURE__ */ B.createElement("path", {
|
|
882
882
|
fillRule: "evenodd",
|
|
883
883
|
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",
|
|
884
884
|
clipRule: "evenodd"
|
|
885
|
-
})), Fd = /* @__PURE__ */
|
|
885
|
+
})), Fd = /* @__PURE__ */ B.createElement("svg", {
|
|
886
886
|
xmlns: "http://www.w3.org/2000/svg",
|
|
887
887
|
viewBox: "0 0 24 24",
|
|
888
888
|
fill: "currentColor",
|
|
889
889
|
height: "20",
|
|
890
890
|
width: "20"
|
|
891
|
-
}, /* @__PURE__ */
|
|
891
|
+
}, /* @__PURE__ */ B.createElement("path", {
|
|
892
892
|
fillRule: "evenodd",
|
|
893
893
|
d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",
|
|
894
894
|
clipRule: "evenodd"
|
|
895
|
-
})), $d = /* @__PURE__ */
|
|
895
|
+
})), $d = /* @__PURE__ */ B.createElement("svg", {
|
|
896
896
|
xmlns: "http://www.w3.org/2000/svg",
|
|
897
897
|
viewBox: "0 0 20 20",
|
|
898
898
|
fill: "currentColor",
|
|
899
899
|
height: "20",
|
|
900
900
|
width: "20"
|
|
901
|
-
}, /* @__PURE__ */
|
|
901
|
+
}, /* @__PURE__ */ B.createElement("path", {
|
|
902
902
|
fillRule: "evenodd",
|
|
903
903
|
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",
|
|
904
904
|
clipRule: "evenodd"
|
|
905
|
-
})), Hd = /* @__PURE__ */
|
|
905
|
+
})), Hd = /* @__PURE__ */ B.createElement("svg", {
|
|
906
906
|
xmlns: "http://www.w3.org/2000/svg",
|
|
907
907
|
viewBox: "0 0 20 20",
|
|
908
908
|
fill: "currentColor",
|
|
909
909
|
height: "20",
|
|
910
910
|
width: "20"
|
|
911
|
-
}, /* @__PURE__ */
|
|
911
|
+
}, /* @__PURE__ */ B.createElement("path", {
|
|
912
912
|
fillRule: "evenodd",
|
|
913
913
|
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",
|
|
914
914
|
clipRule: "evenodd"
|
|
915
|
-
})), Vd = /* @__PURE__ */
|
|
915
|
+
})), Vd = /* @__PURE__ */ B.createElement("svg", {
|
|
916
916
|
xmlns: "http://www.w3.org/2000/svg",
|
|
917
917
|
width: "12",
|
|
918
918
|
height: "12",
|
|
@@ -922,19 +922,19 @@ const Od = (e) => {
|
|
|
922
922
|
strokeWidth: "1.5",
|
|
923
923
|
strokeLinecap: "round",
|
|
924
924
|
strokeLinejoin: "round"
|
|
925
|
-
}, /* @__PURE__ */
|
|
925
|
+
}, /* @__PURE__ */ B.createElement("line", {
|
|
926
926
|
x1: "18",
|
|
927
927
|
y1: "6",
|
|
928
928
|
x2: "6",
|
|
929
929
|
y2: "18"
|
|
930
|
-
}), /* @__PURE__ */
|
|
930
|
+
}), /* @__PURE__ */ B.createElement("line", {
|
|
931
931
|
x1: "6",
|
|
932
932
|
y1: "6",
|
|
933
933
|
x2: "18",
|
|
934
934
|
y2: "18"
|
|
935
935
|
})), Ud = () => {
|
|
936
|
-
const [e, t] =
|
|
937
|
-
return
|
|
936
|
+
const [e, t] = B.useState(document.hidden);
|
|
937
|
+
return B.useEffect(() => {
|
|
938
938
|
const n = () => {
|
|
939
939
|
t(document.hidden);
|
|
940
940
|
};
|
|
@@ -1022,7 +1022,7 @@ class jd {
|
|
|
1022
1022
|
if (i = [
|
|
1023
1023
|
"resolve",
|
|
1024
1024
|
d
|
|
1025
|
-
],
|
|
1025
|
+
], B.isValidElement(d))
|
|
1026
1026
|
s = !1, this.create({
|
|
1027
1027
|
id: o,
|
|
1028
1028
|
type: "default",
|
|
@@ -1030,7 +1030,7 @@ class jd {
|
|
|
1030
1030
|
});
|
|
1031
1031
|
else if (qd(d) && !d.ok) {
|
|
1032
1032
|
s = !1;
|
|
1033
|
-
const l = typeof n.error == "function" ? await n.error(`HTTP error! status: ${d.status}`) : n.error, p = typeof n.description == "function" ? await n.description(`HTTP error! status: ${d.status}`) : n.description, v = typeof l == "object" && !
|
|
1033
|
+
const l = typeof n.error == "function" ? await n.error(`HTTP error! status: ${d.status}`) : n.error, p = typeof n.description == "function" ? await n.description(`HTTP error! status: ${d.status}`) : n.description, v = typeof l == "object" && !B.isValidElement(l) ? l : {
|
|
1034
1034
|
message: l
|
|
1035
1035
|
};
|
|
1036
1036
|
this.create({
|
|
@@ -1041,7 +1041,7 @@ class jd {
|
|
|
1041
1041
|
});
|
|
1042
1042
|
} else if (d instanceof Error) {
|
|
1043
1043
|
s = !1;
|
|
1044
|
-
const l = typeof n.error == "function" ? await n.error(d) : n.error, p = typeof n.description == "function" ? await n.description(d) : n.description, v = typeof l == "object" && !
|
|
1044
|
+
const l = typeof n.error == "function" ? await n.error(d) : n.error, p = typeof n.description == "function" ? await n.description(d) : n.description, v = typeof l == "object" && !B.isValidElement(l) ? l : {
|
|
1045
1045
|
message: l
|
|
1046
1046
|
};
|
|
1047
1047
|
this.create({
|
|
@@ -1052,7 +1052,7 @@ class jd {
|
|
|
1052
1052
|
});
|
|
1053
1053
|
} else if (n.success !== void 0) {
|
|
1054
1054
|
s = !1;
|
|
1055
|
-
const l = typeof n.success == "function" ? await n.success(d) : n.success, p = typeof n.description == "function" ? await n.description(d) : n.description, v = typeof l == "object" && !
|
|
1055
|
+
const l = typeof n.success == "function" ? await n.success(d) : n.success, p = typeof n.description == "function" ? await n.description(d) : n.description, v = typeof l == "object" && !B.isValidElement(l) ? l : {
|
|
1056
1056
|
message: l
|
|
1057
1057
|
};
|
|
1058
1058
|
this.create({
|
|
@@ -1068,7 +1068,7 @@ class jd {
|
|
|
1068
1068
|
d
|
|
1069
1069
|
], n.error !== void 0) {
|
|
1070
1070
|
s = !1;
|
|
1071
|
-
const u = typeof n.error == "function" ? await n.error(d) : n.error, l = typeof n.description == "function" ? await n.description(d) : n.description, h = typeof u == "object" && !
|
|
1071
|
+
const u = typeof n.error == "function" ? await n.error(d) : n.error, l = typeof n.description == "function" ? await n.description(d) : n.description, h = typeof u == "object" && !B.isValidElement(u) ? u : {
|
|
1072
1072
|
message: u
|
|
1073
1073
|
};
|
|
1074
1074
|
this.create({
|
|
@@ -1122,7 +1122,7 @@ function cn(e) {
|
|
|
1122
1122
|
return e.label !== void 0;
|
|
1123
1123
|
}
|
|
1124
1124
|
const Xd = 3, Zd = "24px", Jd = "16px", Qr = 4e3, Qd = 356, eu = 14, tu = 45, nu = 200;
|
|
1125
|
-
function
|
|
1125
|
+
function ze(...e) {
|
|
1126
1126
|
return e.filter(Boolean).join(" ");
|
|
1127
1127
|
}
|
|
1128
1128
|
function ou(e) {
|
|
@@ -1131,32 +1131,32 @@ function ou(e) {
|
|
|
1131
1131
|
}
|
|
1132
1132
|
const ru = (e) => {
|
|
1133
1133
|
var t, n, o, r, s, i, a, c, d;
|
|
1134
|
-
const { invert: u, toast: l, unstyled: p, interacting: h, setHeights: v, visibleToasts: g, heights: b, index: y, toasts: w, expanded: x, removeToast: C, defaultRichColors: N, closeButton: E, style: k, cancelButtonStyle: S, actionButtonStyle: R, className: I = "", descriptionClassName: _ = "", duration: T, position: P, gap: O, expandByDefault: H, classNames: L, icons: q, closeButtonAriaLabel: U = "Close toast" } = e, [
|
|
1134
|
+
const { invert: u, toast: l, unstyled: p, interacting: h, setHeights: v, visibleToasts: g, heights: b, index: y, toasts: w, expanded: x, removeToast: C, defaultRichColors: N, closeButton: E, style: k, cancelButtonStyle: S, actionButtonStyle: R, className: I = "", descriptionClassName: _ = "", duration: T, position: P, gap: O, expandByDefault: H, classNames: L, icons: q, closeButtonAriaLabel: U = "Close toast" } = e, [ne, V] = B.useState(null), [D, F] = B.useState(null), [A, z] = B.useState(!1), [M, W] = B.useState(!1), [$, j] = B.useState(!1), [Z, te] = B.useState(!1), [oe, Q] = B.useState(!1), [ue, fe] = B.useState(0), [ft, Qe] = B.useState(0), Ae = B.useRef(l.duration || T || Qr), on = B.useRef(null), ye = B.useRef(null), rd = y === 0, sd = y + 1 <= g, Ce = l.type, kt = l.dismissible !== !1, id = l.className || "", ad = l.descriptionClassName || "", rn = B.useMemo(() => b.findIndex((se) => se.toastId === l.id) || 0, [
|
|
1135
1135
|
b,
|
|
1136
1136
|
l.id
|
|
1137
|
-
]), cd =
|
|
1137
|
+
]), cd = B.useMemo(() => {
|
|
1138
1138
|
var se;
|
|
1139
1139
|
return (se = l.closeButton) != null ? se : E;
|
|
1140
1140
|
}, [
|
|
1141
1141
|
l.closeButton,
|
|
1142
1142
|
E
|
|
1143
|
-
]), Wr =
|
|
1143
|
+
]), Wr = B.useMemo(() => l.duration || T || Qr, [
|
|
1144
1144
|
l.duration,
|
|
1145
1145
|
T
|
|
1146
|
-
]), to =
|
|
1146
|
+
]), to = B.useRef(0), Nt = B.useRef(0), qr = B.useRef(0), Rt = B.useRef(null), [ld, dd] = P.split("-"), Gr = B.useMemo(() => b.reduce((se, me, ge) => ge >= rn ? se : se + me.height, 0), [
|
|
1147
1147
|
b,
|
|
1148
1148
|
rn
|
|
1149
1149
|
]), Yr = Ud(), ud = l.invert || u, no = Ce === "loading";
|
|
1150
|
-
Nt.current =
|
|
1150
|
+
Nt.current = B.useMemo(() => rn * O + Gr, [
|
|
1151
1151
|
rn,
|
|
1152
1152
|
Gr
|
|
1153
|
-
]),
|
|
1153
|
+
]), B.useEffect(() => {
|
|
1154
1154
|
Ae.current = Wr;
|
|
1155
1155
|
}, [
|
|
1156
1156
|
Wr
|
|
1157
|
-
]),
|
|
1158
|
-
|
|
1159
|
-
}, []),
|
|
1157
|
+
]), B.useEffect(() => {
|
|
1158
|
+
z(!0);
|
|
1159
|
+
}, []), B.useEffect(() => {
|
|
1160
1160
|
const se = ye.current;
|
|
1161
1161
|
if (se) {
|
|
1162
1162
|
const me = se.getBoundingClientRect().height;
|
|
@@ -1172,7 +1172,7 @@ const ru = (e) => {
|
|
|
1172
1172
|
}, [
|
|
1173
1173
|
v,
|
|
1174
1174
|
l.id
|
|
1175
|
-
]),
|
|
1175
|
+
]), B.useLayoutEffect(() => {
|
|
1176
1176
|
if (!A) return;
|
|
1177
1177
|
const se = ye.current, me = se.style.height;
|
|
1178
1178
|
se.style.height = "auto";
|
|
@@ -1198,8 +1198,8 @@ const ru = (e) => {
|
|
|
1198
1198
|
l.action,
|
|
1199
1199
|
l.cancel
|
|
1200
1200
|
]);
|
|
1201
|
-
const et =
|
|
1202
|
-
|
|
1201
|
+
const et = B.useCallback(() => {
|
|
1202
|
+
W(!0), fe(Nt.current), v((se) => se.filter((me) => me.toastId !== l.id)), setTimeout(() => {
|
|
1203
1203
|
C(l);
|
|
1204
1204
|
}, nu);
|
|
1205
1205
|
}, [
|
|
@@ -1208,7 +1208,7 @@ const ru = (e) => {
|
|
|
1208
1208
|
v,
|
|
1209
1209
|
Nt
|
|
1210
1210
|
]);
|
|
1211
|
-
|
|
1211
|
+
B.useEffect(() => {
|
|
1212
1212
|
if (l.promise && Ce === "loading" || l.duration === 1 / 0 || l.type === "loading") return;
|
|
1213
1213
|
let se;
|
|
1214
1214
|
return x || h || Yr ? (() => {
|
|
@@ -1229,7 +1229,7 @@ const ru = (e) => {
|
|
|
1229
1229
|
Ce,
|
|
1230
1230
|
Yr,
|
|
1231
1231
|
et
|
|
1232
|
-
]),
|
|
1232
|
+
]), B.useEffect(() => {
|
|
1233
1233
|
l.delete && (et(), l.onDismiss == null || l.onDismiss.call(l, l));
|
|
1234
1234
|
}, [
|
|
1235
1235
|
et,
|
|
@@ -1239,28 +1239,28 @@ const ru = (e) => {
|
|
|
1239
1239
|
var se;
|
|
1240
1240
|
if (q != null && q.loading) {
|
|
1241
1241
|
var me;
|
|
1242
|
-
return /* @__PURE__ */
|
|
1243
|
-
className:
|
|
1242
|
+
return /* @__PURE__ */ B.createElement("div", {
|
|
1243
|
+
className: ze(L == null ? void 0 : L.loader, l == null || (me = l.classNames) == null ? void 0 : me.loader, "sonner-loader"),
|
|
1244
1244
|
"data-visible": Ce === "loading"
|
|
1245
1245
|
}, q.loading);
|
|
1246
1246
|
}
|
|
1247
|
-
return /* @__PURE__ */
|
|
1248
|
-
className:
|
|
1247
|
+
return /* @__PURE__ */ B.createElement(zd, {
|
|
1248
|
+
className: ze(L == null ? void 0 : L.loader, l == null || (se = l.classNames) == null ? void 0 : se.loader),
|
|
1249
1249
|
visible: Ce === "loading"
|
|
1250
1250
|
});
|
|
1251
1251
|
}
|
|
1252
1252
|
const pd = l.icon || (q == null ? void 0 : q[Ce]) || Od(Ce);
|
|
1253
1253
|
var Kr, Xr;
|
|
1254
|
-
return /* @__PURE__ */
|
|
1254
|
+
return /* @__PURE__ */ B.createElement("li", {
|
|
1255
1255
|
tabIndex: 0,
|
|
1256
1256
|
ref: ye,
|
|
1257
|
-
className:
|
|
1257
|
+
className: ze(I, id, L == null ? void 0 : L.toast, l == null || (t = l.classNames) == null ? void 0 : t.toast, L == null ? void 0 : L.default, L == null ? void 0 : L[Ce], l == null || (n = l.classNames) == null ? void 0 : n[Ce]),
|
|
1258
1258
|
"data-sonner-toast": "",
|
|
1259
1259
|
"data-rich-colors": (Kr = l.richColors) != null ? Kr : N,
|
|
1260
1260
|
"data-styled": !(l.jsx || l.unstyled || p),
|
|
1261
1261
|
"data-mounted": A,
|
|
1262
1262
|
"data-promise": !!l.promise,
|
|
1263
|
-
"data-swiped":
|
|
1263
|
+
"data-swiped": oe,
|
|
1264
1264
|
"data-removed": M,
|
|
1265
1265
|
"data-visible": sd,
|
|
1266
1266
|
"data-y-position": ld,
|
|
@@ -1272,7 +1272,7 @@ const ru = (e) => {
|
|
|
1272
1272
|
"data-type": Ce,
|
|
1273
1273
|
"data-invert": ud,
|
|
1274
1274
|
"data-swipe-out": Z,
|
|
1275
|
-
"data-swipe-direction":
|
|
1275
|
+
"data-swipe-direction": D,
|
|
1276
1276
|
"data-expanded": !!(x || H && A),
|
|
1277
1277
|
"data-testid": l.testId,
|
|
1278
1278
|
style: {
|
|
@@ -1285,10 +1285,10 @@ const ru = (e) => {
|
|
|
1285
1285
|
...l.style
|
|
1286
1286
|
},
|
|
1287
1287
|
onDragEnd: () => {
|
|
1288
|
-
|
|
1288
|
+
j(!1), V(null), Rt.current = null;
|
|
1289
1289
|
},
|
|
1290
1290
|
onPointerDown: (se) => {
|
|
1291
|
-
se.button !== 2 && (no || !kt || (on.current = /* @__PURE__ */ new Date(), fe(Nt.current), se.target.setPointerCapture(se.pointerId), se.target.tagName !== "BUTTON" && (
|
|
1291
|
+
se.button !== 2 && (no || !kt || (on.current = /* @__PURE__ */ new Date(), fe(Nt.current), se.target.setPointerCapture(se.pointerId), se.target.tagName !== "BUTTON" && (j(!0), Rt.current = {
|
|
1292
1292
|
x: se.clientX,
|
|
1293
1293
|
y: se.clientY
|
|
1294
1294
|
})));
|
|
@@ -1297,15 +1297,15 @@ const ru = (e) => {
|
|
|
1297
1297
|
var se, me, ge;
|
|
1298
1298
|
if (Z || !kt) return;
|
|
1299
1299
|
Rt.current = null;
|
|
1300
|
-
const Se = Number(((se = ye.current) == null ? void 0 : se.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), sn = Number(((me = ye.current) == null ? void 0 : me.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), he = (/* @__PURE__ */ new Date()).getTime() - ((ge = on.current) == null ? void 0 : ge.getTime()), Ne =
|
|
1300
|
+
const Se = Number(((se = ye.current) == null ? void 0 : se.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), sn = Number(((me = ye.current) == null ? void 0 : me.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), he = (/* @__PURE__ */ new Date()).getTime() - ((ge = on.current) == null ? void 0 : ge.getTime()), Ne = ne === "x" ? Se : sn, an = Math.abs(Ne) / he;
|
|
1301
1301
|
if (Math.abs(Ne) >= tu || an > 0.11) {
|
|
1302
|
-
fe(Nt.current), l.onDismiss == null || l.onDismiss.call(l, l), F(
|
|
1302
|
+
fe(Nt.current), l.onDismiss == null || l.onDismiss.call(l, l), F(ne === "x" ? Se > 0 ? "right" : "left" : sn > 0 ? "down" : "up"), et(), te(!0);
|
|
1303
1303
|
return;
|
|
1304
1304
|
} else {
|
|
1305
1305
|
var Pe, Ie;
|
|
1306
1306
|
(Pe = ye.current) == null || Pe.style.setProperty("--swipe-amount-x", "0px"), (Ie = ye.current) == null || Ie.style.setProperty("--swipe-amount-y", "0px");
|
|
1307
1307
|
}
|
|
1308
|
-
Q(!1),
|
|
1308
|
+
Q(!1), j(!1), V(null);
|
|
1309
1309
|
},
|
|
1310
1310
|
onPointerMove: (se) => {
|
|
1311
1311
|
var me, ge, Se;
|
|
@@ -1313,13 +1313,13 @@ const ru = (e) => {
|
|
|
1313
1313
|
const he = se.clientY - Rt.current.y, Ne = se.clientX - Rt.current.x;
|
|
1314
1314
|
var an;
|
|
1315
1315
|
const Pe = (an = e.swipeDirections) != null ? an : ou(P);
|
|
1316
|
-
!
|
|
1316
|
+
!ne && (Math.abs(Ne) > 1 || Math.abs(he) > 1) && V(Math.abs(Ne) > Math.abs(he) ? "x" : "y");
|
|
1317
1317
|
let Ie = {
|
|
1318
1318
|
x: 0,
|
|
1319
1319
|
y: 0
|
|
1320
1320
|
};
|
|
1321
1321
|
const Zr = (pt) => 1 / (1.5 + Math.abs(pt) / 20);
|
|
1322
|
-
if (
|
|
1322
|
+
if (ne === "y") {
|
|
1323
1323
|
if (Pe.includes("top") || Pe.includes("bottom"))
|
|
1324
1324
|
if (Pe.includes("top") && he < 0 || Pe.includes("bottom") && he > 0)
|
|
1325
1325
|
Ie.y = he;
|
|
@@ -1327,7 +1327,7 @@ const ru = (e) => {
|
|
|
1327
1327
|
const pt = he * Zr(he);
|
|
1328
1328
|
Ie.y = Math.abs(pt) < Math.abs(he) ? pt : he;
|
|
1329
1329
|
}
|
|
1330
|
-
} else if (
|
|
1330
|
+
} else if (ne === "x" && (Pe.includes("left") || Pe.includes("right")))
|
|
1331
1331
|
if (Pe.includes("left") && Ne < 0 || Pe.includes("right") && Ne > 0)
|
|
1332
1332
|
Ie.x = Ne;
|
|
1333
1333
|
else {
|
|
@@ -1336,7 +1336,7 @@ const ru = (e) => {
|
|
|
1336
1336
|
}
|
|
1337
1337
|
(Math.abs(Ie.x) > 0 || Math.abs(Ie.y) > 0) && Q(!0), (ge = ye.current) == null || ge.style.setProperty("--swipe-amount-x", `${Ie.x}px`), (Se = ye.current) == null || Se.style.setProperty("--swipe-amount-y", `${Ie.y}px`);
|
|
1338
1338
|
}
|
|
1339
|
-
}, cd && !l.jsx && Ce !== "loading" ? /* @__PURE__ */
|
|
1339
|
+
}, cd && !l.jsx && Ce !== "loading" ? /* @__PURE__ */ B.createElement("button", {
|
|
1340
1340
|
"aria-label": U,
|
|
1341
1341
|
"data-disabled": no,
|
|
1342
1342
|
"data-close-button": !0,
|
|
@@ -1344,35 +1344,35 @@ const ru = (e) => {
|
|
|
1344
1344
|
} : () => {
|
|
1345
1345
|
et(), l.onDismiss == null || l.onDismiss.call(l, l);
|
|
1346
1346
|
},
|
|
1347
|
-
className:
|
|
1348
|
-
}, (Xr = q == null ? void 0 : q.close) != null ? Xr : Vd) : null, (Ce || l.icon || l.promise) && l.icon !== null && ((q == null ? void 0 : q[Ce]) !== null || l.icon) ? /* @__PURE__ */
|
|
1347
|
+
className: ze(L == null ? void 0 : L.closeButton, l == null || (o = l.classNames) == null ? void 0 : o.closeButton)
|
|
1348
|
+
}, (Xr = q == null ? void 0 : q.close) != null ? Xr : Vd) : null, (Ce || l.icon || l.promise) && l.icon !== null && ((q == null ? void 0 : q[Ce]) !== null || l.icon) ? /* @__PURE__ */ B.createElement("div", {
|
|
1349
1349
|
"data-icon": "",
|
|
1350
|
-
className:
|
|
1351
|
-
}, l.promise || l.type === "loading" && !l.icon ? l.icon || fd() : null, l.type !== "loading" ? pd : null) : null, /* @__PURE__ */
|
|
1350
|
+
className: ze(L == null ? void 0 : L.icon, l == null || (r = l.classNames) == null ? void 0 : r.icon)
|
|
1351
|
+
}, l.promise || l.type === "loading" && !l.icon ? l.icon || fd() : null, l.type !== "loading" ? pd : null) : null, /* @__PURE__ */ B.createElement("div", {
|
|
1352
1352
|
"data-content": "",
|
|
1353
|
-
className:
|
|
1354
|
-
}, /* @__PURE__ */
|
|
1353
|
+
className: ze(L == null ? void 0 : L.content, l == null || (s = l.classNames) == null ? void 0 : s.content)
|
|
1354
|
+
}, /* @__PURE__ */ B.createElement("div", {
|
|
1355
1355
|
"data-title": "",
|
|
1356
|
-
className:
|
|
1357
|
-
}, l.jsx ? l.jsx : typeof l.title == "function" ? l.title() : l.title), l.description ? /* @__PURE__ */
|
|
1356
|
+
className: ze(L == null ? void 0 : L.title, l == null || (i = l.classNames) == null ? void 0 : i.title)
|
|
1357
|
+
}, l.jsx ? l.jsx : typeof l.title == "function" ? l.title() : l.title), l.description ? /* @__PURE__ */ B.createElement("div", {
|
|
1358
1358
|
"data-description": "",
|
|
1359
|
-
className:
|
|
1360
|
-
}, typeof l.description == "function" ? l.description() : l.description) : null), /* @__PURE__ */
|
|
1359
|
+
className: ze(_, ad, L == null ? void 0 : L.description, l == null || (a = l.classNames) == null ? void 0 : a.description)
|
|
1360
|
+
}, typeof l.description == "function" ? l.description() : l.description) : null), /* @__PURE__ */ B.isValidElement(l.cancel) ? l.cancel : l.cancel && cn(l.cancel) ? /* @__PURE__ */ B.createElement("button", {
|
|
1361
1361
|
"data-button": !0,
|
|
1362
1362
|
"data-cancel": !0,
|
|
1363
1363
|
style: l.cancelButtonStyle || S,
|
|
1364
1364
|
onClick: (se) => {
|
|
1365
1365
|
cn(l.cancel) && kt && (l.cancel.onClick == null || l.cancel.onClick.call(l.cancel, se), et());
|
|
1366
1366
|
},
|
|
1367
|
-
className:
|
|
1368
|
-
}, l.cancel.label) : null, /* @__PURE__ */
|
|
1367
|
+
className: ze(L == null ? void 0 : L.cancelButton, l == null || (c = l.classNames) == null ? void 0 : c.cancelButton)
|
|
1368
|
+
}, l.cancel.label) : null, /* @__PURE__ */ B.isValidElement(l.action) ? l.action : l.action && cn(l.action) ? /* @__PURE__ */ B.createElement("button", {
|
|
1369
1369
|
"data-button": !0,
|
|
1370
1370
|
"data-action": !0,
|
|
1371
1371
|
style: l.actionButtonStyle || R,
|
|
1372
1372
|
onClick: (se) => {
|
|
1373
1373
|
cn(l.action) && (l.action.onClick == null || l.action.onClick.call(l.action, se), !se.defaultPrevented && et());
|
|
1374
1374
|
},
|
|
1375
|
-
className:
|
|
1375
|
+
className: ze(L == null ? void 0 : L.actionButton, l == null || (d = l.classNames) == null ? void 0 : d.actionButton)
|
|
1376
1376
|
}, l.action.label) : null);
|
|
1377
1377
|
};
|
|
1378
1378
|
function es() {
|
|
@@ -1407,28 +1407,28 @@ function su(e, t) {
|
|
|
1407
1407
|
}) : c(a);
|
|
1408
1408
|
}), n;
|
|
1409
1409
|
}
|
|
1410
|
-
const iu = /* @__PURE__ */
|
|
1410
|
+
const iu = /* @__PURE__ */ B.forwardRef(function(t, n) {
|
|
1411
1411
|
const { id: o, invert: r, position: s = "bottom-right", hotkey: i = [
|
|
1412
1412
|
"altKey",
|
|
1413
1413
|
"KeyT"
|
|
1414
|
-
], expand: a, closeButton: c, className: d, offset: u, mobileOffset: l, theme: p = "light", richColors: h, duration: v, style: g, visibleToasts: b = Xd, toastOptions: y, dir: w = es(), gap: x = eu, icons: C, containerAriaLabel: N = "Notifications" } = t, [E, k] =
|
|
1414
|
+
], expand: a, closeButton: c, className: d, offset: u, mobileOffset: l, theme: p = "light", richColors: h, duration: v, style: g, visibleToasts: b = Xd, toastOptions: y, dir: w = es(), gap: x = eu, icons: C, containerAriaLabel: N = "Notifications" } = t, [E, k] = B.useState([]), S = B.useMemo(() => o ? E.filter((A) => A.toasterId === o) : E.filter((A) => !A.toasterId), [
|
|
1415
1415
|
E,
|
|
1416
1416
|
o
|
|
1417
|
-
]), R =
|
|
1417
|
+
]), R = B.useMemo(() => Array.from(new Set([
|
|
1418
1418
|
s
|
|
1419
1419
|
].concat(S.filter((A) => A.position).map((A) => A.position)))), [
|
|
1420
1420
|
S,
|
|
1421
1421
|
s
|
|
1422
|
-
]), [I, _] =
|
|
1423
|
-
k((
|
|
1422
|
+
]), [I, _] = B.useState([]), [T, P] = B.useState(!1), [O, H] = B.useState(!1), [L, q] = B.useState(p !== "system" ? p : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), U = B.useRef(null), ne = i.join("+").replace(/Key/g, "").replace(/Digit/g, ""), V = B.useRef(null), D = B.useRef(!1), F = B.useCallback((A) => {
|
|
1423
|
+
k((z) => {
|
|
1424
1424
|
var M;
|
|
1425
|
-
return (M =
|
|
1425
|
+
return (M = z.find((W) => W.id === A.id)) != null && M.delete || we.dismiss(A.id), z.filter(({ id: W }) => W !== A.id);
|
|
1426
1426
|
});
|
|
1427
1427
|
}, []);
|
|
1428
|
-
return
|
|
1428
|
+
return B.useEffect(() => we.subscribe((A) => {
|
|
1429
1429
|
if (A.dismiss) {
|
|
1430
1430
|
requestAnimationFrame(() => {
|
|
1431
|
-
k((
|
|
1431
|
+
k((z) => z.map((M) => M.id === A.id ? {
|
|
1432
1432
|
...M,
|
|
1433
1433
|
delete: !0
|
|
1434
1434
|
} : M));
|
|
@@ -1437,25 +1437,25 @@ const iu = /* @__PURE__ */ D.forwardRef(function(t, n) {
|
|
|
1437
1437
|
}
|
|
1438
1438
|
setTimeout(() => {
|
|
1439
1439
|
Ei.flushSync(() => {
|
|
1440
|
-
k((
|
|
1441
|
-
const M =
|
|
1440
|
+
k((z) => {
|
|
1441
|
+
const M = z.findIndex((W) => W.id === A.id);
|
|
1442
1442
|
return M !== -1 ? [
|
|
1443
|
-
...
|
|
1443
|
+
...z.slice(0, M),
|
|
1444
1444
|
{
|
|
1445
|
-
...
|
|
1445
|
+
...z[M],
|
|
1446
1446
|
...A
|
|
1447
1447
|
},
|
|
1448
|
-
...
|
|
1448
|
+
...z.slice(M + 1)
|
|
1449
1449
|
] : [
|
|
1450
1450
|
A,
|
|
1451
|
-
...
|
|
1451
|
+
...z
|
|
1452
1452
|
];
|
|
1453
1453
|
});
|
|
1454
1454
|
});
|
|
1455
1455
|
});
|
|
1456
1456
|
}), [
|
|
1457
1457
|
E
|
|
1458
|
-
]),
|
|
1458
|
+
]), B.useEffect(() => {
|
|
1459
1459
|
if (p !== "system") {
|
|
1460
1460
|
q(p);
|
|
1461
1461
|
return;
|
|
@@ -1463,58 +1463,58 @@ const iu = /* @__PURE__ */ D.forwardRef(function(t, n) {
|
|
|
1463
1463
|
if (p === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? q("dark") : q("light")), typeof window > "u") return;
|
|
1464
1464
|
const A = window.matchMedia("(prefers-color-scheme: dark)");
|
|
1465
1465
|
try {
|
|
1466
|
-
A.addEventListener("change", ({ matches:
|
|
1467
|
-
q(
|
|
1466
|
+
A.addEventListener("change", ({ matches: z }) => {
|
|
1467
|
+
q(z ? "dark" : "light");
|
|
1468
1468
|
});
|
|
1469
1469
|
} catch {
|
|
1470
1470
|
A.addListener(({ matches: M }) => {
|
|
1471
1471
|
try {
|
|
1472
1472
|
q(M ? "dark" : "light");
|
|
1473
|
-
} catch (
|
|
1474
|
-
console.error(
|
|
1473
|
+
} catch (W) {
|
|
1474
|
+
console.error(W);
|
|
1475
1475
|
}
|
|
1476
1476
|
});
|
|
1477
1477
|
}
|
|
1478
1478
|
}, [
|
|
1479
1479
|
p
|
|
1480
|
-
]),
|
|
1480
|
+
]), B.useEffect(() => {
|
|
1481
1481
|
E.length <= 1 && P(!1);
|
|
1482
1482
|
}, [
|
|
1483
1483
|
E
|
|
1484
|
-
]),
|
|
1485
|
-
const A = (
|
|
1484
|
+
]), B.useEffect(() => {
|
|
1485
|
+
const A = (z) => {
|
|
1486
1486
|
var M;
|
|
1487
|
-
if (i.every((
|
|
1487
|
+
if (i.every((j) => z[j] || z.code === j)) {
|
|
1488
1488
|
var $;
|
|
1489
1489
|
P(!0), ($ = U.current) == null || $.focus();
|
|
1490
1490
|
}
|
|
1491
|
-
|
|
1491
|
+
z.code === "Escape" && (document.activeElement === U.current || (M = U.current) != null && M.contains(document.activeElement)) && P(!1);
|
|
1492
1492
|
};
|
|
1493
1493
|
return document.addEventListener("keydown", A), () => document.removeEventListener("keydown", A);
|
|
1494
1494
|
}, [
|
|
1495
1495
|
i
|
|
1496
|
-
]),
|
|
1496
|
+
]), B.useEffect(() => {
|
|
1497
1497
|
if (U.current)
|
|
1498
1498
|
return () => {
|
|
1499
1499
|
V.current && (V.current.focus({
|
|
1500
1500
|
preventScroll: !0
|
|
1501
|
-
}), V.current = null,
|
|
1501
|
+
}), V.current = null, D.current = !1);
|
|
1502
1502
|
};
|
|
1503
1503
|
}, [
|
|
1504
1504
|
U.current
|
|
1505
1505
|
]), // Remove item from normal navigation flow, only available via hotkey
|
|
1506
|
-
/* @__PURE__ */
|
|
1506
|
+
/* @__PURE__ */ B.createElement("section", {
|
|
1507
1507
|
ref: n,
|
|
1508
|
-
"aria-label": `${N} ${
|
|
1508
|
+
"aria-label": `${N} ${ne}`,
|
|
1509
1509
|
tabIndex: -1,
|
|
1510
1510
|
"aria-live": "polite",
|
|
1511
1511
|
"aria-relevant": "additions text",
|
|
1512
1512
|
"aria-atomic": "false",
|
|
1513
1513
|
suppressHydrationWarning: !0
|
|
1514
|
-
}, R.map((A,
|
|
1514
|
+
}, R.map((A, z) => {
|
|
1515
1515
|
var M;
|
|
1516
|
-
const [
|
|
1517
|
-
return S.length ? /* @__PURE__ */
|
|
1516
|
+
const [W, $] = A.split("-");
|
|
1517
|
+
return S.length ? /* @__PURE__ */ B.createElement("ol", {
|
|
1518
1518
|
key: A,
|
|
1519
1519
|
dir: w === "auto" ? es() : w,
|
|
1520
1520
|
tabIndex: -1,
|
|
@@ -1522,7 +1522,7 @@ const iu = /* @__PURE__ */ D.forwardRef(function(t, n) {
|
|
|
1522
1522
|
className: d,
|
|
1523
1523
|
"data-sonner-toaster": !0,
|
|
1524
1524
|
"data-sonner-theme": L,
|
|
1525
|
-
"data-y-position":
|
|
1525
|
+
"data-y-position": W,
|
|
1526
1526
|
"data-x-position": $,
|
|
1527
1527
|
style: {
|
|
1528
1528
|
"--front-toast-height": `${((M = I[0]) == null ? void 0 : M.height) || 0}px`,
|
|
@@ -1531,13 +1531,13 @@ const iu = /* @__PURE__ */ D.forwardRef(function(t, n) {
|
|
|
1531
1531
|
...g,
|
|
1532
1532
|
...su(u, l)
|
|
1533
1533
|
},
|
|
1534
|
-
onBlur: (
|
|
1535
|
-
|
|
1534
|
+
onBlur: (j) => {
|
|
1535
|
+
D.current && !j.currentTarget.contains(j.relatedTarget) && (D.current = !1, V.current && (V.current.focus({
|
|
1536
1536
|
preventScroll: !0
|
|
1537
1537
|
}), V.current = null));
|
|
1538
1538
|
},
|
|
1539
|
-
onFocus: (
|
|
1540
|
-
|
|
1539
|
+
onFocus: (j) => {
|
|
1540
|
+
j.target instanceof HTMLElement && j.target.dataset.dismissible === "false" || D.current || (D.current = !0, V.current = j.relatedTarget);
|
|
1541
1541
|
},
|
|
1542
1542
|
onMouseEnter: () => P(!0),
|
|
1543
1543
|
onMouseMove: () => P(!0),
|
|
@@ -1545,24 +1545,24 @@ const iu = /* @__PURE__ */ D.forwardRef(function(t, n) {
|
|
|
1545
1545
|
O || P(!1);
|
|
1546
1546
|
},
|
|
1547
1547
|
onDragEnd: () => P(!1),
|
|
1548
|
-
onPointerDown: (
|
|
1549
|
-
|
|
1548
|
+
onPointerDown: (j) => {
|
|
1549
|
+
j.target instanceof HTMLElement && j.target.dataset.dismissible === "false" || H(!0);
|
|
1550
1550
|
},
|
|
1551
1551
|
onPointerUp: () => H(!1)
|
|
1552
|
-
}, S.filter((
|
|
1553
|
-
var
|
|
1554
|
-
return /* @__PURE__ */
|
|
1555
|
-
key:
|
|
1552
|
+
}, S.filter((j) => !j.position && z === 0 || j.position === A).map((j, Z) => {
|
|
1553
|
+
var te, oe;
|
|
1554
|
+
return /* @__PURE__ */ B.createElement(ru, {
|
|
1555
|
+
key: j.id,
|
|
1556
1556
|
icons: C,
|
|
1557
1557
|
index: Z,
|
|
1558
|
-
toast:
|
|
1558
|
+
toast: j,
|
|
1559
1559
|
defaultRichColors: h,
|
|
1560
|
-
duration: (
|
|
1560
|
+
duration: (te = y == null ? void 0 : y.duration) != null ? te : v,
|
|
1561
1561
|
className: y == null ? void 0 : y.className,
|
|
1562
1562
|
descriptionClassName: y == null ? void 0 : y.descriptionClassName,
|
|
1563
1563
|
invert: r,
|
|
1564
1564
|
visibleToasts: b,
|
|
1565
|
-
closeButton: (
|
|
1565
|
+
closeButton: (oe = y == null ? void 0 : y.closeButton) != null ? oe : c,
|
|
1566
1566
|
interacting: O,
|
|
1567
1567
|
position: A,
|
|
1568
1568
|
style: y == null ? void 0 : y.style,
|
|
@@ -1572,8 +1572,8 @@ const iu = /* @__PURE__ */ D.forwardRef(function(t, n) {
|
|
|
1572
1572
|
actionButtonStyle: y == null ? void 0 : y.actionButtonStyle,
|
|
1573
1573
|
closeButtonAriaLabel: y == null ? void 0 : y.closeButtonAriaLabel,
|
|
1574
1574
|
removeToast: F,
|
|
1575
|
-
toasts: S.filter((Q) => Q.position ==
|
|
1576
|
-
heights: I.filter((Q) => Q.position ==
|
|
1575
|
+
toasts: S.filter((Q) => Q.position == j.position),
|
|
1576
|
+
heights: I.filter((Q) => Q.position == j.position),
|
|
1577
1577
|
setHeights: _,
|
|
1578
1578
|
expandByDefault: a,
|
|
1579
1579
|
gap: x,
|
|
@@ -1758,7 +1758,7 @@ const hu = Si(
|
|
|
1758
1758
|
* This source code is licensed under the ISC license.
|
|
1759
1759
|
* See the LICENSE file in the root directory of this source tree.
|
|
1760
1760
|
*/
|
|
1761
|
-
const
|
|
1761
|
+
const re = (e, t) => {
|
|
1762
1762
|
const n = Si(
|
|
1763
1763
|
({ className: o, ...r }, s) => xn(hu, {
|
|
1764
1764
|
ref: s,
|
|
@@ -1788,7 +1788,7 @@ const gu = [
|
|
|
1788
1788
|
}
|
|
1789
1789
|
],
|
|
1790
1790
|
["path", { d: "m12 15 5 6H7Z", key: "14qnn2" }]
|
|
1791
|
-
], vu =
|
|
1791
|
+
], vu = re("airplay", gu);
|
|
1792
1792
|
/**
|
|
1793
1793
|
* @license lucide-react v0.577.0 - ISC
|
|
1794
1794
|
*
|
|
@@ -1798,7 +1798,7 @@ const gu = [
|
|
|
1798
1798
|
const bu = [
|
|
1799
1799
|
["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
|
|
1800
1800
|
["path", { d: "M19 12H5", key: "x3x0zl" }]
|
|
1801
|
-
], yu =
|
|
1801
|
+
], yu = re("arrow-left", bu);
|
|
1802
1802
|
/**
|
|
1803
1803
|
* @license lucide-react v0.577.0 - ISC
|
|
1804
1804
|
*
|
|
@@ -1814,7 +1814,7 @@ const wu = [
|
|
|
1814
1814
|
key: "ruj8y"
|
|
1815
1815
|
}
|
|
1816
1816
|
]
|
|
1817
|
-
], xu =
|
|
1817
|
+
], xu = re("book-open", wu);
|
|
1818
1818
|
/**
|
|
1819
1819
|
* @license lucide-react v0.577.0 - ISC
|
|
1820
1820
|
*
|
|
@@ -1828,7 +1828,7 @@ const Cu = [
|
|
|
1828
1828
|
["path", { d: "M20 14h2", key: "4cs60a" }],
|
|
1829
1829
|
["path", { d: "M15 13v2", key: "1xurst" }],
|
|
1830
1830
|
["path", { d: "M9 13v2", key: "rq6x2g" }]
|
|
1831
|
-
], Su =
|
|
1831
|
+
], Su = re("bot", Cu);
|
|
1832
1832
|
/**
|
|
1833
1833
|
* @license lucide-react v0.577.0 - ISC
|
|
1834
1834
|
*
|
|
@@ -1840,42 +1840,42 @@ const Eu = [
|
|
|
1840
1840
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
1841
1841
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
1842
1842
|
["path", { d: "M3 10h18", key: "8toen8" }]
|
|
1843
|
-
], ku =
|
|
1843
|
+
], ku = re("calendar", Eu);
|
|
1844
1844
|
/**
|
|
1845
1845
|
* @license lucide-react v0.577.0 - ISC
|
|
1846
1846
|
*
|
|
1847
1847
|
* This source code is licensed under the ISC license.
|
|
1848
1848
|
* See the LICENSE file in the root directory of this source tree.
|
|
1849
1849
|
*/
|
|
1850
|
-
const Nu = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], _i =
|
|
1850
|
+
const Nu = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], _i = re("check", Nu);
|
|
1851
1851
|
/**
|
|
1852
1852
|
* @license lucide-react v0.577.0 - ISC
|
|
1853
1853
|
*
|
|
1854
1854
|
* This source code is licensed under the ISC license.
|
|
1855
1855
|
* See the LICENSE file in the root directory of this source tree.
|
|
1856
1856
|
*/
|
|
1857
|
-
const Ru = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Mi =
|
|
1857
|
+
const Ru = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Mi = re("chevron-down", Ru);
|
|
1858
1858
|
/**
|
|
1859
1859
|
* @license lucide-react v0.577.0 - ISC
|
|
1860
1860
|
*
|
|
1861
1861
|
* This source code is licensed under the ISC license.
|
|
1862
1862
|
* See the LICENSE file in the root directory of this source tree.
|
|
1863
1863
|
*/
|
|
1864
|
-
const Tu = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Au =
|
|
1864
|
+
const Tu = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Au = re("chevron-left", Tu);
|
|
1865
1865
|
/**
|
|
1866
1866
|
* @license lucide-react v0.577.0 - ISC
|
|
1867
1867
|
*
|
|
1868
1868
|
* This source code is licensed under the ISC license.
|
|
1869
1869
|
* See the LICENSE file in the root directory of this source tree.
|
|
1870
1870
|
*/
|
|
1871
|
-
const Pu = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], pr =
|
|
1871
|
+
const Pu = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], pr = re("chevron-right", Pu);
|
|
1872
1872
|
/**
|
|
1873
1873
|
* @license lucide-react v0.577.0 - ISC
|
|
1874
1874
|
*
|
|
1875
1875
|
* This source code is licensed under the ISC license.
|
|
1876
1876
|
* See the LICENSE file in the root directory of this source tree.
|
|
1877
1877
|
*/
|
|
1878
|
-
const Iu = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], _u =
|
|
1878
|
+
const Iu = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], _u = re("chevron-up", Iu);
|
|
1879
1879
|
/**
|
|
1880
1880
|
* @license lucide-react v0.577.0 - ISC
|
|
1881
1881
|
*
|
|
@@ -1886,7 +1886,7 @@ const Mu = [
|
|
|
1886
1886
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
1887
1887
|
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
1888
1888
|
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
1889
|
-
], Li =
|
|
1889
|
+
], Li = re("circle-alert", Mu);
|
|
1890
1890
|
/**
|
|
1891
1891
|
* @license lucide-react v0.577.0 - ISC
|
|
1892
1892
|
*
|
|
@@ -1896,7 +1896,7 @@ const Mu = [
|
|
|
1896
1896
|
const Lu = [
|
|
1897
1897
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
1898
1898
|
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
1899
|
-
], Oi =
|
|
1899
|
+
], Oi = re("circle-check", Lu);
|
|
1900
1900
|
/**
|
|
1901
1901
|
* @license lucide-react v0.577.0 - ISC
|
|
1902
1902
|
*
|
|
@@ -1912,18 +1912,18 @@ const Ou = [
|
|
|
1912
1912
|
}
|
|
1913
1913
|
],
|
|
1914
1914
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]
|
|
1915
|
-
],
|
|
1915
|
+
], Du = re("circle-play", Ou);
|
|
1916
1916
|
/**
|
|
1917
1917
|
* @license lucide-react v0.577.0 - ISC
|
|
1918
1918
|
*
|
|
1919
1919
|
* This source code is licensed under the ISC license.
|
|
1920
1920
|
* See the LICENSE file in the root directory of this source tree.
|
|
1921
1921
|
*/
|
|
1922
|
-
const
|
|
1922
|
+
const zu = [
|
|
1923
1923
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
1924
1924
|
["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }],
|
|
1925
1925
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
1926
|
-
],
|
|
1926
|
+
], Di = re("circle-question-mark", zu);
|
|
1927
1927
|
/**
|
|
1928
1928
|
* @license lucide-react v0.577.0 - ISC
|
|
1929
1929
|
*
|
|
@@ -1934,14 +1934,14 @@ const Bu = [
|
|
|
1934
1934
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
1935
1935
|
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
1936
1936
|
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
1937
|
-
], Fu =
|
|
1937
|
+
], Fu = re("circle-x", Bu);
|
|
1938
1938
|
/**
|
|
1939
1939
|
* @license lucide-react v0.577.0 - ISC
|
|
1940
1940
|
*
|
|
1941
1941
|
* This source code is licensed under the ISC license.
|
|
1942
1942
|
* See the LICENSE file in the root directory of this source tree.
|
|
1943
1943
|
*/
|
|
1944
|
-
const $u = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], Hu =
|
|
1944
|
+
const $u = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], Hu = re("circle", $u);
|
|
1945
1945
|
/**
|
|
1946
1946
|
* @license lucide-react v0.577.0 - ISC
|
|
1947
1947
|
*
|
|
@@ -1951,7 +1951,7 @@ const $u = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], Hu = oe
|
|
|
1951
1951
|
const Vu = [
|
|
1952
1952
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
1953
1953
|
["path", { d: "M12 6v6l4 2", key: "mmk7yg" }]
|
|
1954
|
-
], Uu =
|
|
1954
|
+
], Uu = re("clock", Vu);
|
|
1955
1955
|
/**
|
|
1956
1956
|
* @license lucide-react v0.577.0 - ISC
|
|
1957
1957
|
*
|
|
@@ -1961,7 +1961,7 @@ const Vu = [
|
|
|
1961
1961
|
const ju = [
|
|
1962
1962
|
["path", { d: "m10 15 5 5 5-5", key: "1hpjnr" }],
|
|
1963
1963
|
["path", { d: "M4 4h7a4 4 0 0 1 4 4v12", key: "wcbgct" }]
|
|
1964
|
-
], Wu =
|
|
1964
|
+
], Wu = re("corner-right-down", ju);
|
|
1965
1965
|
/**
|
|
1966
1966
|
* @license lucide-react v0.577.0 - ISC
|
|
1967
1967
|
*
|
|
@@ -1971,7 +1971,7 @@ const ju = [
|
|
|
1971
1971
|
const qu = [
|
|
1972
1972
|
["rect", { width: "20", height: "14", x: "2", y: "5", rx: "2", key: "ynyp8z" }],
|
|
1973
1973
|
["line", { x1: "2", x2: "22", y1: "10", y2: "10", key: "1b3vmo" }]
|
|
1974
|
-
], Gu =
|
|
1974
|
+
], Gu = re("credit-card", qu);
|
|
1975
1975
|
/**
|
|
1976
1976
|
* @license lucide-react v0.577.0 - ISC
|
|
1977
1977
|
*
|
|
@@ -1982,7 +1982,7 @@ const Yu = [
|
|
|
1982
1982
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
1983
1983
|
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
1984
1984
|
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
1985
|
-
], Ku =
|
|
1985
|
+
], Ku = re("external-link", Yu);
|
|
1986
1986
|
/**
|
|
1987
1987
|
* @license lucide-react v0.577.0 - ISC
|
|
1988
1988
|
*
|
|
@@ -1997,7 +1997,7 @@ const Xu = [
|
|
|
1997
1997
|
key: "1xhozi"
|
|
1998
1998
|
}
|
|
1999
1999
|
]
|
|
2000
|
-
], Zu =
|
|
2000
|
+
], Zu = re("headphones", Xu);
|
|
2001
2001
|
/**
|
|
2002
2002
|
* @license lucide-react v0.577.0 - ISC
|
|
2003
2003
|
*
|
|
@@ -2017,7 +2017,7 @@ const Ju = [
|
|
|
2017
2017
|
}
|
|
2018
2018
|
],
|
|
2019
2019
|
["path", { d: "M21 15V5a2 2 0 0 0-2-2H9", key: "43el77" }]
|
|
2020
|
-
], mr =
|
|
2020
|
+
], mr = re("image-off", Ju);
|
|
2021
2021
|
/**
|
|
2022
2022
|
* @license lucide-react v0.577.0 - ISC
|
|
2023
2023
|
*
|
|
@@ -2028,7 +2028,7 @@ const Qu = [
|
|
|
2028
2028
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
|
|
2029
2029
|
["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }],
|
|
2030
2030
|
["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }]
|
|
2031
|
-
], ef =
|
|
2031
|
+
], ef = re("image", Qu);
|
|
2032
2032
|
/**
|
|
2033
2033
|
* @license lucide-react v0.577.0 - ISC
|
|
2034
2034
|
*
|
|
@@ -2039,14 +2039,14 @@ const tf = [
|
|
|
2039
2039
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
2040
2040
|
["path", { d: "M12 16v-4", key: "1dtifu" }],
|
|
2041
2041
|
["path", { d: "M12 8h.01", key: "e9boi3" }]
|
|
2042
|
-
], _n =
|
|
2042
|
+
], _n = re("info", tf);
|
|
2043
2043
|
/**
|
|
2044
2044
|
* @license lucide-react v0.577.0 - ISC
|
|
2045
2045
|
*
|
|
2046
2046
|
* This source code is licensed under the ISC license.
|
|
2047
2047
|
* See the LICENSE file in the root directory of this source tree.
|
|
2048
2048
|
*/
|
|
2049
|
-
const nf = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], hr =
|
|
2049
|
+
const nf = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], hr = re("loader-circle", nf);
|
|
2050
2050
|
/**
|
|
2051
2051
|
* @license lucide-react v0.577.0 - ISC
|
|
2052
2052
|
*
|
|
@@ -2056,7 +2056,7 @@ const nf = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], hr =
|
|
|
2056
2056
|
const of = [
|
|
2057
2057
|
["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7", key: "132q7q" }],
|
|
2058
2058
|
["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2", key: "izxlao" }]
|
|
2059
|
-
], Go =
|
|
2059
|
+
], Go = re("mail", of);
|
|
2060
2060
|
/**
|
|
2061
2061
|
* @license lucide-react v0.577.0 - ISC
|
|
2062
2062
|
*
|
|
@@ -2072,7 +2072,7 @@ const rf = [
|
|
|
2072
2072
|
}
|
|
2073
2073
|
],
|
|
2074
2074
|
["circle", { cx: "12", cy: "10", r: "3", key: "ilqhr7" }]
|
|
2075
|
-
], sf =
|
|
2075
|
+
], sf = re("map-pin", rf);
|
|
2076
2076
|
/**
|
|
2077
2077
|
* @license lucide-react v0.577.0 - ISC
|
|
2078
2078
|
*
|
|
@@ -2087,7 +2087,7 @@ const af = [
|
|
|
2087
2087
|
key: "1sd12s"
|
|
2088
2088
|
}
|
|
2089
2089
|
]
|
|
2090
|
-
],
|
|
2090
|
+
], zi = re("message-circle", af);
|
|
2091
2091
|
/**
|
|
2092
2092
|
* @license lucide-react v0.577.0 - ISC
|
|
2093
2093
|
*
|
|
@@ -2102,7 +2102,7 @@ const cf = [
|
|
|
2102
2102
|
key: "18887p"
|
|
2103
2103
|
}
|
|
2104
2104
|
]
|
|
2105
|
-
], gr =
|
|
2105
|
+
], gr = re("message-square", cf);
|
|
2106
2106
|
/**
|
|
2107
2107
|
* @license lucide-react v0.577.0 - ISC
|
|
2108
2108
|
*
|
|
@@ -2119,7 +2119,7 @@ const lf = [
|
|
|
2119
2119
|
}
|
|
2120
2120
|
],
|
|
2121
2121
|
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
2122
|
-
], df =
|
|
2122
|
+
], df = re("octagon-x", lf);
|
|
2123
2123
|
/**
|
|
2124
2124
|
* @license lucide-react v0.577.0 - ISC
|
|
2125
2125
|
*
|
|
@@ -2137,7 +2137,7 @@ const uf = [
|
|
|
2137
2137
|
["path", { d: "M12 22V12", key: "d0xqtd" }],
|
|
2138
2138
|
["polyline", { points: "3.29 7 12 12 20.71 7", key: "ousv84" }],
|
|
2139
2139
|
["path", { d: "m7.5 4.27 9 5.15", key: "1c824w" }]
|
|
2140
|
-
], ff =
|
|
2140
|
+
], ff = re("package", uf);
|
|
2141
2141
|
/**
|
|
2142
2142
|
* @license lucide-react v0.577.0 - ISC
|
|
2143
2143
|
*
|
|
@@ -2152,7 +2152,7 @@ const pf = [
|
|
|
2152
2152
|
key: "9njp5v"
|
|
2153
2153
|
}
|
|
2154
2154
|
]
|
|
2155
|
-
], mf =
|
|
2155
|
+
], mf = re("phone", pf);
|
|
2156
2156
|
/**
|
|
2157
2157
|
* @license lucide-react v0.577.0 - ISC
|
|
2158
2158
|
*
|
|
@@ -2162,7 +2162,7 @@ const pf = [
|
|
|
2162
2162
|
const hf = [
|
|
2163
2163
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
2164
2164
|
["path", { d: "M12 5v14", key: "s699le" }]
|
|
2165
|
-
], gf =
|
|
2165
|
+
], gf = re("plus", hf);
|
|
2166
2166
|
/**
|
|
2167
2167
|
* @license lucide-react v0.577.0 - ISC
|
|
2168
2168
|
*
|
|
@@ -2182,7 +2182,7 @@ const vf = [
|
|
|
2182
2182
|
["path", { d: "M16 12h1", key: "1slzba" }],
|
|
2183
2183
|
["path", { d: "M21 12v.01", key: "1lwtk9" }],
|
|
2184
2184
|
["path", { d: "M12 21v-1", key: "1880an" }]
|
|
2185
|
-
], bf =
|
|
2185
|
+
], bf = re("qr-code", vf);
|
|
2186
2186
|
/**
|
|
2187
2187
|
* @license lucide-react v0.577.0 - ISC
|
|
2188
2188
|
*
|
|
@@ -2192,7 +2192,7 @@ const vf = [
|
|
|
2192
2192
|
const yf = [
|
|
2193
2193
|
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
2194
2194
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
2195
|
-
], wf =
|
|
2195
|
+
], wf = re("search", yf);
|
|
2196
2196
|
/**
|
|
2197
2197
|
* @license lucide-react v0.577.0 - ISC
|
|
2198
2198
|
*
|
|
@@ -2209,7 +2209,7 @@ const xf = [
|
|
|
2209
2209
|
key: "o988cm"
|
|
2210
2210
|
}
|
|
2211
2211
|
]
|
|
2212
|
-
], Cf =
|
|
2212
|
+
], Cf = re("shopping-bag", xf);
|
|
2213
2213
|
/**
|
|
2214
2214
|
* @license lucide-react v0.577.0 - ISC
|
|
2215
2215
|
*
|
|
@@ -2227,7 +2227,7 @@ const Sf = [
|
|
|
2227
2227
|
["path", { d: "M20 2v4", key: "1rf3ol" }],
|
|
2228
2228
|
["path", { d: "M22 4h-4", key: "gwowj6" }],
|
|
2229
2229
|
["circle", { cx: "4", cy: "20", r: "2", key: "6kqj1y" }]
|
|
2230
|
-
], Bi =
|
|
2230
|
+
], Bi = re("sparkles", Sf);
|
|
2231
2231
|
/**
|
|
2232
2232
|
* @license lucide-react v0.577.0 - ISC
|
|
2233
2233
|
*
|
|
@@ -2244,7 +2244,7 @@ const Ef = [
|
|
|
2244
2244
|
],
|
|
2245
2245
|
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
2246
2246
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
2247
|
-
], kf =
|
|
2247
|
+
], kf = re("triangle-alert", Ef);
|
|
2248
2248
|
/**
|
|
2249
2249
|
* @license lucide-react v0.577.0 - ISC
|
|
2250
2250
|
*
|
|
@@ -2263,7 +2263,7 @@ const Nf = [
|
|
|
2263
2263
|
],
|
|
2264
2264
|
["circle", { cx: "17", cy: "18", r: "2", key: "332jqn" }],
|
|
2265
2265
|
["circle", { cx: "7", cy: "18", r: "2", key: "19iecd" }]
|
|
2266
|
-
], Rf =
|
|
2266
|
+
], Rf = re("truck", Nf);
|
|
2267
2267
|
/**
|
|
2268
2268
|
* @license lucide-react v0.577.0 - ISC
|
|
2269
2269
|
*
|
|
@@ -2280,7 +2280,7 @@ const Tf = [
|
|
|
2280
2280
|
],
|
|
2281
2281
|
["path", { d: "M7 21h10", key: "1b0cd5" }],
|
|
2282
2282
|
["rect", { width: "20", height: "14", x: "2", y: "3", rx: "2", key: "48i651" }]
|
|
2283
|
-
], Af =
|
|
2283
|
+
], Af = re("tv-minimal-play", Tf);
|
|
2284
2284
|
/**
|
|
2285
2285
|
* @license lucide-react v0.577.0 - ISC
|
|
2286
2286
|
*
|
|
@@ -2290,7 +2290,7 @@ const Tf = [
|
|
|
2290
2290
|
const Pf = [
|
|
2291
2291
|
["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
|
|
2292
2292
|
["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
|
|
2293
|
-
], Fi =
|
|
2293
|
+
], Fi = re("user", Pf);
|
|
2294
2294
|
/**
|
|
2295
2295
|
* @license lucide-react v0.577.0 - ISC
|
|
2296
2296
|
*
|
|
@@ -2304,7 +2304,7 @@ const If = [
|
|
|
2304
2304
|
],
|
|
2305
2305
|
["path", { d: "M16 16a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h2", key: "1xawa7" }],
|
|
2306
2306
|
["path", { d: "m2 2 20 20", key: "1ooewy" }]
|
|
2307
|
-
], _f =
|
|
2307
|
+
], _f = re("video-off", If);
|
|
2308
2308
|
/**
|
|
2309
2309
|
* @license lucide-react v0.577.0 - ISC
|
|
2310
2310
|
*
|
|
@@ -2320,7 +2320,7 @@ const Mf = [
|
|
|
2320
2320
|
}
|
|
2321
2321
|
],
|
|
2322
2322
|
["rect", { x: "2", y: "6", width: "14", height: "12", rx: "2", key: "158x01" }]
|
|
2323
|
-
], Lf =
|
|
2323
|
+
], Lf = re("video", Mf);
|
|
2324
2324
|
/**
|
|
2325
2325
|
* @license lucide-react v0.577.0 - ISC
|
|
2326
2326
|
*
|
|
@@ -2335,7 +2335,7 @@ const Of = [
|
|
|
2335
2335
|
key: "1xq2db"
|
|
2336
2336
|
}
|
|
2337
2337
|
]
|
|
2338
|
-
],
|
|
2338
|
+
], Df = re("zap", Of);
|
|
2339
2339
|
function $i(e) {
|
|
2340
2340
|
var t, n, o = "";
|
|
2341
2341
|
if (typeof e == "string" || typeof e == "number") o += e;
|
|
@@ -2349,7 +2349,7 @@ function Hi() {
|
|
|
2349
2349
|
for (var e, t, n = 0, o = "", r = arguments.length; n < r; n++) (e = arguments[n]) && (t = $i(e)) && (o && (o += " "), o += t);
|
|
2350
2350
|
return o;
|
|
2351
2351
|
}
|
|
2352
|
-
const
|
|
2352
|
+
const zf = (e, t) => {
|
|
2353
2353
|
const n = new Array(e.length + t.length);
|
|
2354
2354
|
for (let o = 0; o < e.length; o++)
|
|
2355
2355
|
n[o] = e[o];
|
|
@@ -2378,7 +2378,7 @@ const Df = (e, t) => {
|
|
|
2378
2378
|
getConflictingClassGroupIds: (i, a) => {
|
|
2379
2379
|
if (a) {
|
|
2380
2380
|
const c = o[i], d = n[i];
|
|
2381
|
-
return c ? d ?
|
|
2381
|
+
return c ? d ? zf(d, c) : c : d || rs;
|
|
2382
2382
|
}
|
|
2383
2383
|
return n[i] || rs;
|
|
2384
2384
|
}
|
|
@@ -2655,13 +2655,13 @@ const Df = (e, t) => {
|
|
|
2655
2655
|
"left-bottom"
|
|
2656
2656
|
], N = () => [...C(), Y, G], E = () => ["auto", "hidden", "clip", "visible", "scroll"], k = () => ["auto", "contain", "none"], S = () => [Y, G, c], R = () => [tt, "full", "auto", ...S()], I = () => [nt, "none", "subgrid", Y, G], _ = () => ["auto", {
|
|
2657
2657
|
span: ["full", nt, Y, G]
|
|
2658
|
-
}, nt, Y, G], T = () => [nt, "auto", Y, G], P = () => ["auto", "min", "max", "fr", Y, G], O = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], H = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], L = () => ["auto", ...S()], q = () => [tt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...S()], U = () => [tt, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...S()],
|
|
2658
|
+
}, nt, Y, G], T = () => [nt, "auto", Y, G], P = () => ["auto", "min", "max", "fr", Y, G], O = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], H = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], L = () => ["auto", ...S()], q = () => [tt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...S()], U = () => [tt, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...S()], ne = () => [tt, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...S()], V = () => [e, Y, G], D = () => [...C(), ls, cs, {
|
|
2659
2659
|
position: [Y, G]
|
|
2660
2660
|
}], F = () => ["no-repeat", {
|
|
2661
2661
|
repeat: ["", "x", "y", "space", "round"]
|
|
2662
2662
|
}], A = () => ["auto", "cover", "contain", wp, hp, {
|
|
2663
2663
|
size: [Y, G]
|
|
2664
|
-
}],
|
|
2664
|
+
}], z = () => [so, jt, mt], M = () => [
|
|
2665
2665
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2666
2666
|
"",
|
|
2667
2667
|
"none",
|
|
@@ -2669,14 +2669,14 @@ const Df = (e, t) => {
|
|
|
2669
2669
|
d,
|
|
2670
2670
|
Y,
|
|
2671
2671
|
G
|
|
2672
|
-
],
|
|
2672
|
+
], W = () => ["", ie, jt, mt], $ = () => ["solid", "dashed", "dotted", "double"], j = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Z = () => [ie, so, ls, cs], te = () => [
|
|
2673
2673
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2674
2674
|
"",
|
|
2675
2675
|
"none",
|
|
2676
2676
|
v,
|
|
2677
2677
|
Y,
|
|
2678
2678
|
G
|
|
2679
|
-
],
|
|
2679
|
+
], oe = () => ["none", ie, Y, G], Q = () => ["none", ie, Y, G], ue = () => [ie, Y, G], fe = () => [tt, "full", ...S()];
|
|
2680
2680
|
return {
|
|
2681
2681
|
cacheSize: 500,
|
|
2682
2682
|
theme: {
|
|
@@ -3382,21 +3382,21 @@ const Df = (e, t) => {
|
|
|
3382
3382
|
* @see https://tailwindcss.com/docs/height
|
|
3383
3383
|
*/
|
|
3384
3384
|
"block-size": [{
|
|
3385
|
-
block: ["auto", ...
|
|
3385
|
+
block: ["auto", ...ne()]
|
|
3386
3386
|
}],
|
|
3387
3387
|
/**
|
|
3388
3388
|
* Min-Block Size
|
|
3389
3389
|
* @see https://tailwindcss.com/docs/min-height
|
|
3390
3390
|
*/
|
|
3391
3391
|
"min-block-size": [{
|
|
3392
|
-
"min-block": ["auto", ...
|
|
3392
|
+
"min-block": ["auto", ...ne()]
|
|
3393
3393
|
}],
|
|
3394
3394
|
/**
|
|
3395
3395
|
* Max-Block Size
|
|
3396
3396
|
* @see https://tailwindcss.com/docs/max-height
|
|
3397
3397
|
*/
|
|
3398
3398
|
"max-block-size": [{
|
|
3399
|
-
"max-block": ["none", ...
|
|
3399
|
+
"max-block": ["none", ...ne()]
|
|
3400
3400
|
}],
|
|
3401
3401
|
/**
|
|
3402
3402
|
* Width
|
|
@@ -3731,7 +3731,7 @@ const Df = (e, t) => {
|
|
|
3731
3731
|
* @see https://tailwindcss.com/docs/background-position
|
|
3732
3732
|
*/
|
|
3733
3733
|
"bg-position": [{
|
|
3734
|
-
bg:
|
|
3734
|
+
bg: D()
|
|
3735
3735
|
}],
|
|
3736
3736
|
/**
|
|
3737
3737
|
* Background Repeat
|
|
@@ -3772,21 +3772,21 @@ const Df = (e, t) => {
|
|
|
3772
3772
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
3773
3773
|
*/
|
|
3774
3774
|
"gradient-from-pos": [{
|
|
3775
|
-
from:
|
|
3775
|
+
from: z()
|
|
3776
3776
|
}],
|
|
3777
3777
|
/**
|
|
3778
3778
|
* Gradient Color Stops Via Position
|
|
3779
3779
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
3780
3780
|
*/
|
|
3781
3781
|
"gradient-via-pos": [{
|
|
3782
|
-
via:
|
|
3782
|
+
via: z()
|
|
3783
3783
|
}],
|
|
3784
3784
|
/**
|
|
3785
3785
|
* Gradient Color Stops To Position
|
|
3786
3786
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
3787
3787
|
*/
|
|
3788
3788
|
"gradient-to-pos": [{
|
|
3789
|
-
to:
|
|
3789
|
+
to: z()
|
|
3790
3790
|
}],
|
|
3791
3791
|
/**
|
|
3792
3792
|
* Gradient Color Stops From
|
|
@@ -3922,84 +3922,84 @@ const Df = (e, t) => {
|
|
|
3922
3922
|
* @see https://tailwindcss.com/docs/border-width
|
|
3923
3923
|
*/
|
|
3924
3924
|
"border-w": [{
|
|
3925
|
-
border:
|
|
3925
|
+
border: W()
|
|
3926
3926
|
}],
|
|
3927
3927
|
/**
|
|
3928
3928
|
* Border Width Inline
|
|
3929
3929
|
* @see https://tailwindcss.com/docs/border-width
|
|
3930
3930
|
*/
|
|
3931
3931
|
"border-w-x": [{
|
|
3932
|
-
"border-x":
|
|
3932
|
+
"border-x": W()
|
|
3933
3933
|
}],
|
|
3934
3934
|
/**
|
|
3935
3935
|
* Border Width Block
|
|
3936
3936
|
* @see https://tailwindcss.com/docs/border-width
|
|
3937
3937
|
*/
|
|
3938
3938
|
"border-w-y": [{
|
|
3939
|
-
"border-y":
|
|
3939
|
+
"border-y": W()
|
|
3940
3940
|
}],
|
|
3941
3941
|
/**
|
|
3942
3942
|
* Border Width Inline Start
|
|
3943
3943
|
* @see https://tailwindcss.com/docs/border-width
|
|
3944
3944
|
*/
|
|
3945
3945
|
"border-w-s": [{
|
|
3946
|
-
"border-s":
|
|
3946
|
+
"border-s": W()
|
|
3947
3947
|
}],
|
|
3948
3948
|
/**
|
|
3949
3949
|
* Border Width Inline End
|
|
3950
3950
|
* @see https://tailwindcss.com/docs/border-width
|
|
3951
3951
|
*/
|
|
3952
3952
|
"border-w-e": [{
|
|
3953
|
-
"border-e":
|
|
3953
|
+
"border-e": W()
|
|
3954
3954
|
}],
|
|
3955
3955
|
/**
|
|
3956
3956
|
* Border Width Block Start
|
|
3957
3957
|
* @see https://tailwindcss.com/docs/border-width
|
|
3958
3958
|
*/
|
|
3959
3959
|
"border-w-bs": [{
|
|
3960
|
-
"border-bs":
|
|
3960
|
+
"border-bs": W()
|
|
3961
3961
|
}],
|
|
3962
3962
|
/**
|
|
3963
3963
|
* Border Width Block End
|
|
3964
3964
|
* @see https://tailwindcss.com/docs/border-width
|
|
3965
3965
|
*/
|
|
3966
3966
|
"border-w-be": [{
|
|
3967
|
-
"border-be":
|
|
3967
|
+
"border-be": W()
|
|
3968
3968
|
}],
|
|
3969
3969
|
/**
|
|
3970
3970
|
* Border Width Top
|
|
3971
3971
|
* @see https://tailwindcss.com/docs/border-width
|
|
3972
3972
|
*/
|
|
3973
3973
|
"border-w-t": [{
|
|
3974
|
-
"border-t":
|
|
3974
|
+
"border-t": W()
|
|
3975
3975
|
}],
|
|
3976
3976
|
/**
|
|
3977
3977
|
* Border Width Right
|
|
3978
3978
|
* @see https://tailwindcss.com/docs/border-width
|
|
3979
3979
|
*/
|
|
3980
3980
|
"border-w-r": [{
|
|
3981
|
-
"border-r":
|
|
3981
|
+
"border-r": W()
|
|
3982
3982
|
}],
|
|
3983
3983
|
/**
|
|
3984
3984
|
* Border Width Bottom
|
|
3985
3985
|
* @see https://tailwindcss.com/docs/border-width
|
|
3986
3986
|
*/
|
|
3987
3987
|
"border-w-b": [{
|
|
3988
|
-
"border-b":
|
|
3988
|
+
"border-b": W()
|
|
3989
3989
|
}],
|
|
3990
3990
|
/**
|
|
3991
3991
|
* Border Width Left
|
|
3992
3992
|
* @see https://tailwindcss.com/docs/border-width
|
|
3993
3993
|
*/
|
|
3994
3994
|
"border-w-l": [{
|
|
3995
|
-
"border-l":
|
|
3995
|
+
"border-l": W()
|
|
3996
3996
|
}],
|
|
3997
3997
|
/**
|
|
3998
3998
|
* Divide Width X
|
|
3999
3999
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
4000
4000
|
*/
|
|
4001
4001
|
"divide-x": [{
|
|
4002
|
-
"divide-x":
|
|
4002
|
+
"divide-x": W()
|
|
4003
4003
|
}],
|
|
4004
4004
|
/**
|
|
4005
4005
|
* Divide Width X Reverse
|
|
@@ -4011,7 +4011,7 @@ const Df = (e, t) => {
|
|
|
4011
4011
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
4012
4012
|
*/
|
|
4013
4013
|
"divide-y": [{
|
|
4014
|
-
"divide-y":
|
|
4014
|
+
"divide-y": W()
|
|
4015
4015
|
}],
|
|
4016
4016
|
/**
|
|
4017
4017
|
* Divide Width Y Reverse
|
|
@@ -4187,7 +4187,7 @@ const Df = (e, t) => {
|
|
|
4187
4187
|
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
4188
4188
|
*/
|
|
4189
4189
|
"ring-w": [{
|
|
4190
|
-
ring:
|
|
4190
|
+
ring: W()
|
|
4191
4191
|
}],
|
|
4192
4192
|
/**
|
|
4193
4193
|
* Ring Width Inset
|
|
@@ -4226,7 +4226,7 @@ const Df = (e, t) => {
|
|
|
4226
4226
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
4227
4227
|
*/
|
|
4228
4228
|
"inset-ring-w": [{
|
|
4229
|
-
"inset-ring":
|
|
4229
|
+
"inset-ring": W()
|
|
4230
4230
|
}],
|
|
4231
4231
|
/**
|
|
4232
4232
|
* Inset Ring Color
|
|
@@ -4261,14 +4261,14 @@ const Df = (e, t) => {
|
|
|
4261
4261
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
4262
4262
|
*/
|
|
4263
4263
|
"mix-blend": [{
|
|
4264
|
-
"mix-blend": [...
|
|
4264
|
+
"mix-blend": [...j(), "plus-darker", "plus-lighter"]
|
|
4265
4265
|
}],
|
|
4266
4266
|
/**
|
|
4267
4267
|
* Background Blend Mode
|
|
4268
4268
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
4269
4269
|
*/
|
|
4270
4270
|
"bg-blend": [{
|
|
4271
|
-
"bg-blend":
|
|
4271
|
+
"bg-blend": j()
|
|
4272
4272
|
}],
|
|
4273
4273
|
/**
|
|
4274
4274
|
* Mask Clip
|
|
@@ -4436,7 +4436,7 @@ const Df = (e, t) => {
|
|
|
4436
4436
|
* @see https://tailwindcss.com/docs/mask-position
|
|
4437
4437
|
*/
|
|
4438
4438
|
"mask-position": [{
|
|
4439
|
-
mask:
|
|
4439
|
+
mask: D()
|
|
4440
4440
|
}],
|
|
4441
4441
|
/**
|
|
4442
4442
|
* Mask Repeat
|
|
@@ -4487,7 +4487,7 @@ const Df = (e, t) => {
|
|
|
4487
4487
|
* @see https://tailwindcss.com/docs/blur
|
|
4488
4488
|
*/
|
|
4489
4489
|
blur: [{
|
|
4490
|
-
blur:
|
|
4490
|
+
blur: te()
|
|
4491
4491
|
}],
|
|
4492
4492
|
/**
|
|
4493
4493
|
* Brightness
|
|
@@ -4577,7 +4577,7 @@ const Df = (e, t) => {
|
|
|
4577
4577
|
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
4578
4578
|
*/
|
|
4579
4579
|
"backdrop-blur": [{
|
|
4580
|
-
"backdrop-blur":
|
|
4580
|
+
"backdrop-blur": te()
|
|
4581
4581
|
}],
|
|
4582
4582
|
/**
|
|
4583
4583
|
* Backdrop Brightness
|
|
@@ -4754,28 +4754,28 @@ const Df = (e, t) => {
|
|
|
4754
4754
|
* @see https://tailwindcss.com/docs/rotate
|
|
4755
4755
|
*/
|
|
4756
4756
|
rotate: [{
|
|
4757
|
-
rotate:
|
|
4757
|
+
rotate: oe()
|
|
4758
4758
|
}],
|
|
4759
4759
|
/**
|
|
4760
4760
|
* Rotate X
|
|
4761
4761
|
* @see https://tailwindcss.com/docs/rotate
|
|
4762
4762
|
*/
|
|
4763
4763
|
"rotate-x": [{
|
|
4764
|
-
"rotate-x":
|
|
4764
|
+
"rotate-x": oe()
|
|
4765
4765
|
}],
|
|
4766
4766
|
/**
|
|
4767
4767
|
* Rotate Y
|
|
4768
4768
|
* @see https://tailwindcss.com/docs/rotate
|
|
4769
4769
|
*/
|
|
4770
4770
|
"rotate-y": [{
|
|
4771
|
-
"rotate-y":
|
|
4771
|
+
"rotate-y": oe()
|
|
4772
4772
|
}],
|
|
4773
4773
|
/**
|
|
4774
4774
|
* Rotate Z
|
|
4775
4775
|
* @see https://tailwindcss.com/docs/rotate
|
|
4776
4776
|
*/
|
|
4777
4777
|
"rotate-z": [{
|
|
4778
|
-
"rotate-z":
|
|
4778
|
+
"rotate-z": oe()
|
|
4779
4779
|
}],
|
|
4780
4780
|
/**
|
|
4781
4781
|
* Scale
|
|
@@ -5486,9 +5486,9 @@ function xe(e, t = []) {
|
|
|
5486
5486
|
);
|
|
5487
5487
|
};
|
|
5488
5488
|
};
|
|
5489
|
-
return r.scopeName = e, [o,
|
|
5489
|
+
return r.scopeName = e, [o, Dp(r, ...t)];
|
|
5490
5490
|
}
|
|
5491
|
-
function
|
|
5491
|
+
function Dp(...e) {
|
|
5492
5492
|
const t = e[0];
|
|
5493
5493
|
if (e.length === 1) return t;
|
|
5494
5494
|
const n = () => {
|
|
@@ -5511,27 +5511,27 @@ function aa(e) {
|
|
|
5511
5511
|
t,
|
|
5512
5512
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
5513
5513
|
), i = (g) => {
|
|
5514
|
-
const { scope: b, children: y } = g, w =
|
|
5514
|
+
const { scope: b, children: y } = g, w = B.useRef(null), x = B.useRef(/* @__PURE__ */ new Map()).current;
|
|
5515
5515
|
return /* @__PURE__ */ f(r, { scope: b, itemMap: x, collectionRef: w, children: y });
|
|
5516
5516
|
};
|
|
5517
5517
|
i.displayName = t;
|
|
5518
|
-
const a = e + "CollectionSlot", c = /* @__PURE__ */ Xt(a), d =
|
|
5518
|
+
const a = e + "CollectionSlot", c = /* @__PURE__ */ Xt(a), d = B.forwardRef(
|
|
5519
5519
|
(g, b) => {
|
|
5520
5520
|
const { scope: y, children: w } = g, x = s(a, y), C = ce(b, x.collectionRef);
|
|
5521
5521
|
return /* @__PURE__ */ f(c, { ref: C, children: w });
|
|
5522
5522
|
}
|
|
5523
5523
|
);
|
|
5524
5524
|
d.displayName = a;
|
|
5525
|
-
const u = e + "CollectionItemSlot", l = "data-radix-collection-item", p = /* @__PURE__ */ Xt(u), h =
|
|
5525
|
+
const u = e + "CollectionItemSlot", l = "data-radix-collection-item", p = /* @__PURE__ */ Xt(u), h = B.forwardRef(
|
|
5526
5526
|
(g, b) => {
|
|
5527
|
-
const { scope: y, children: w, ...x } = g, C =
|
|
5528
|
-
return
|
|
5527
|
+
const { scope: y, children: w, ...x } = g, C = B.useRef(null), N = ce(b, C), E = s(u, y);
|
|
5528
|
+
return B.useEffect(() => (E.itemMap.set(C, { ref: C, ...x }), () => void E.itemMap.delete(C))), /* @__PURE__ */ f(p, { [l]: "", ref: N, children: w });
|
|
5529
5529
|
}
|
|
5530
5530
|
);
|
|
5531
5531
|
h.displayName = u;
|
|
5532
5532
|
function v(g) {
|
|
5533
5533
|
const b = s(e + "CollectionConsumer", g);
|
|
5534
|
-
return
|
|
5534
|
+
return B.useCallback(() => {
|
|
5535
5535
|
const w = b.collectionRef.current;
|
|
5536
5536
|
if (!w) return [];
|
|
5537
5537
|
const x = Array.from(w.querySelectorAll(`[${l}]`));
|
|
@@ -5553,7 +5553,7 @@ function ee(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
|
5553
5553
|
};
|
|
5554
5554
|
}
|
|
5555
5555
|
var de = globalThis != null && globalThis.document ? m.useLayoutEffect : () => {
|
|
5556
|
-
},
|
|
5556
|
+
}, zp = m[" useInsertionEffect ".trim().toString()] || de;
|
|
5557
5557
|
function Ke({
|
|
5558
5558
|
prop: e,
|
|
5559
5559
|
defaultProp: t,
|
|
@@ -5592,7 +5592,7 @@ function Bp({
|
|
|
5592
5592
|
onChange: t
|
|
5593
5593
|
}) {
|
|
5594
5594
|
const [n, o] = m.useState(e), r = m.useRef(n), s = m.useRef(t);
|
|
5595
|
-
return
|
|
5595
|
+
return zp(() => {
|
|
5596
5596
|
s.current = t;
|
|
5597
5597
|
}, [t]), m.useEffect(() => {
|
|
5598
5598
|
var i;
|
|
@@ -5605,11 +5605,11 @@ function Fp(e) {
|
|
|
5605
5605
|
function $p(e, t) {
|
|
5606
5606
|
return m.useReducer((n, o) => t[n][o] ?? n, e);
|
|
5607
5607
|
}
|
|
5608
|
-
var
|
|
5608
|
+
var De = (e) => {
|
|
5609
5609
|
const { present: t, children: n } = e, o = Hp(t), r = typeof n == "function" ? n({ present: o.isPresent }) : m.Children.only(n), s = ce(o.ref, Vp(r));
|
|
5610
5610
|
return typeof n == "function" || o.isPresent ? m.cloneElement(r, { ref: s }) : null;
|
|
5611
5611
|
};
|
|
5612
|
-
|
|
5612
|
+
De.displayName = "Presence";
|
|
5613
5613
|
function Hp(e) {
|
|
5614
5614
|
const [t, n] = m.useState(), o = m.useRef(null), r = m.useRef(e), s = m.useRef("none"), i = e ? "mounted" : "unmounted", [a, c] = $p(i, {
|
|
5615
5615
|
mounted: {
|
|
@@ -5735,7 +5735,7 @@ da.displayName = la;
|
|
|
5735
5735
|
var wr = "CollapsibleContent", ua = m.forwardRef(
|
|
5736
5736
|
(e, t) => {
|
|
5737
5737
|
const { forceMount: n, ...o } = e, r = yr(wr, e.__scopeCollapsible);
|
|
5738
|
-
return /* @__PURE__ */ f(
|
|
5738
|
+
return /* @__PURE__ */ f(De, { present: n || r.open, children: ({ present: s }) => /* @__PURE__ */ f(Gp, { ...o, ref: t, present: s }) });
|
|
5739
5739
|
}
|
|
5740
5740
|
);
|
|
5741
5741
|
ua.displayName = wr;
|
|
@@ -6294,14 +6294,14 @@ var Rm = function() {
|
|
|
6294
6294
|
right: t[2],
|
|
6295
6295
|
gap: Math.max(0, o - n + t[2] - t[0])
|
|
6296
6296
|
};
|
|
6297
|
-
}, _m = ya(),
|
|
6297
|
+
}, _m = ya(), Dt = "data-scroll-locked", Mm = function(e, t, n, o) {
|
|
6298
6298
|
var r = e.left, s = e.top, i = e.right, a = e.gap;
|
|
6299
6299
|
return n === void 0 && (n = "margin"), `
|
|
6300
6300
|
.`.concat(mm, ` {
|
|
6301
6301
|
overflow: hidden `).concat(o, `;
|
|
6302
6302
|
padding-right: `).concat(a, "px ").concat(o, `;
|
|
6303
6303
|
}
|
|
6304
|
-
body[`).concat(
|
|
6304
|
+
body[`).concat(Dt, `] {
|
|
6305
6305
|
overflow: hidden `).concat(o, `;
|
|
6306
6306
|
overscroll-behavior: contain;
|
|
6307
6307
|
`).concat([
|
|
@@ -6334,18 +6334,18 @@ var Rm = function() {
|
|
|
6334
6334
|
margin-right: 0 `).concat(o, `;
|
|
6335
6335
|
}
|
|
6336
6336
|
|
|
6337
|
-
body[`).concat(
|
|
6337
|
+
body[`).concat(Dt, `] {
|
|
6338
6338
|
`).concat(hm, ": ").concat(a, `px;
|
|
6339
6339
|
}
|
|
6340
6340
|
`);
|
|
6341
6341
|
}, xs = function() {
|
|
6342
|
-
var e = parseInt(document.body.getAttribute(
|
|
6342
|
+
var e = parseInt(document.body.getAttribute(Dt) || "0", 10);
|
|
6343
6343
|
return isFinite(e) ? e : 0;
|
|
6344
6344
|
}, Lm = function() {
|
|
6345
6345
|
m.useEffect(function() {
|
|
6346
|
-
return document.body.setAttribute(
|
|
6346
|
+
return document.body.setAttribute(Dt, (xs() + 1).toString()), function() {
|
|
6347
6347
|
var e = xs() - 1;
|
|
6348
|
-
e <= 0 ? document.body.removeAttribute(
|
|
6348
|
+
e <= 0 ? document.body.removeAttribute(Dt) : document.body.setAttribute(Dt, e.toString());
|
|
6349
6349
|
};
|
|
6350
6350
|
}, []);
|
|
6351
6351
|
}, Om = function(e) {
|
|
@@ -6367,7 +6367,7 @@ if (typeof window < "u")
|
|
|
6367
6367
|
} catch {
|
|
6368
6368
|
Xo = !1;
|
|
6369
6369
|
}
|
|
6370
|
-
var Pt = Xo ? { passive: !1 } : !1,
|
|
6370
|
+
var Pt = Xo ? { passive: !1 } : !1, Dm = function(e) {
|
|
6371
6371
|
return e.tagName === "TEXTAREA";
|
|
6372
6372
|
}, wa = function(e, t) {
|
|
6373
6373
|
if (!(e instanceof Element))
|
|
@@ -6376,9 +6376,9 @@ var Pt = Xo ? { passive: !1 } : !1, zm = function(e) {
|
|
|
6376
6376
|
return (
|
|
6377
6377
|
// not-not-scrollable
|
|
6378
6378
|
n[t] !== "hidden" && // contains scroll inside self
|
|
6379
|
-
!(n.overflowY === n.overflowX && !
|
|
6379
|
+
!(n.overflowY === n.overflowX && !Dm(e) && n[t] === "visible")
|
|
6380
6380
|
);
|
|
6381
|
-
},
|
|
6381
|
+
}, zm = function(e) {
|
|
6382
6382
|
return wa(e, "overflowY");
|
|
6383
6383
|
}, Bm = function(e) {
|
|
6384
6384
|
return wa(e, "overflowX");
|
|
@@ -6410,7 +6410,7 @@ var Pt = Xo ? { passive: !1 } : !1, zm = function(e) {
|
|
|
6410
6410
|
o
|
|
6411
6411
|
];
|
|
6412
6412
|
}, xa = function(e, t) {
|
|
6413
|
-
return e === "v" ?
|
|
6413
|
+
return e === "v" ? zm(t) : Bm(t);
|
|
6414
6414
|
}, Ca = function(e, t) {
|
|
6415
6415
|
return e === "v" ? Fm(t) : $m(t);
|
|
6416
6416
|
}, Hm = function(e, t) {
|
|
@@ -6605,7 +6605,7 @@ var ks;
|
|
|
6605
6605
|
function eh() {
|
|
6606
6606
|
if (ks) return ho;
|
|
6607
6607
|
ks = 1;
|
|
6608
|
-
var e =
|
|
6608
|
+
var e = B;
|
|
6609
6609
|
function t(l, p) {
|
|
6610
6610
|
return l === p && (l !== 0 || 1 / l === 1 / p) || l !== l && p !== p;
|
|
6611
6611
|
}
|
|
@@ -6718,11 +6718,11 @@ function ah(e, { referrerPolicy: t, crossOrigin: n }) {
|
|
|
6718
6718
|
}, [s, n, t]), i;
|
|
6719
6719
|
}
|
|
6720
6720
|
var ch = Na, lh = Ta, dh = Pa;
|
|
6721
|
-
function
|
|
6721
|
+
function Dn(e) {
|
|
6722
6722
|
const t = m.useRef({ value: e, previous: e });
|
|
6723
6723
|
return m.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
|
|
6724
6724
|
}
|
|
6725
|
-
function
|
|
6725
|
+
function zn(e) {
|
|
6726
6726
|
const [t, n] = m.useState(void 0);
|
|
6727
6727
|
return de(() => {
|
|
6728
6728
|
if (e) {
|
|
@@ -6872,7 +6872,7 @@ var Ma = m.forwardRef(
|
|
|
6872
6872
|
}
|
|
6873
6873
|
),
|
|
6874
6874
|
p && /* @__PURE__ */ f(
|
|
6875
|
-
|
|
6875
|
+
za,
|
|
6876
6876
|
{
|
|
6877
6877
|
__scopeCheckbox: n
|
|
6878
6878
|
}
|
|
@@ -6887,7 +6887,7 @@ var La = "CheckboxIndicator", Oa = m.forwardRef(
|
|
|
6887
6887
|
(e, t) => {
|
|
6888
6888
|
const { __scopeCheckbox: n, forceMount: o, ...r } = e, s = kr(La, n);
|
|
6889
6889
|
return /* @__PURE__ */ f(
|
|
6890
|
-
|
|
6890
|
+
De,
|
|
6891
6891
|
{
|
|
6892
6892
|
present: o || st(s.checked) || s.checked === !0,
|
|
6893
6893
|
children: /* @__PURE__ */ f(
|
|
@@ -6905,7 +6905,7 @@ var La = "CheckboxIndicator", Oa = m.forwardRef(
|
|
|
6905
6905
|
}
|
|
6906
6906
|
);
|
|
6907
6907
|
Oa.displayName = La;
|
|
6908
|
-
var
|
|
6908
|
+
var Da = "CheckboxBubbleInput", za = m.forwardRef(
|
|
6909
6909
|
({ __scopeCheckbox: e, ...t }, n) => {
|
|
6910
6910
|
const {
|
|
6911
6911
|
control: o,
|
|
@@ -6919,7 +6919,7 @@ var za = "CheckboxBubbleInput", Da = m.forwardRef(
|
|
|
6919
6919
|
form: l,
|
|
6920
6920
|
bubbleInput: p,
|
|
6921
6921
|
setBubbleInput: h
|
|
6922
|
-
} = kr(
|
|
6922
|
+
} = kr(Da, e), v = ce(n, h), g = Dn(s), b = zn(o);
|
|
6923
6923
|
m.useEffect(() => {
|
|
6924
6924
|
const w = p;
|
|
6925
6925
|
if (!w) return;
|
|
@@ -6963,7 +6963,7 @@ var za = "CheckboxBubbleInput", Da = m.forwardRef(
|
|
|
6963
6963
|
);
|
|
6964
6964
|
}
|
|
6965
6965
|
);
|
|
6966
|
-
|
|
6966
|
+
za.displayName = Da;
|
|
6967
6967
|
function mh(e) {
|
|
6968
6968
|
return typeof e == "function";
|
|
6969
6969
|
}
|
|
@@ -7328,13 +7328,13 @@ const kh = 50, Nh = async (e, t, n) => {
|
|
|
7328
7328
|
var P;
|
|
7329
7329
|
const q = (P = I.filter((U) => {
|
|
7330
7330
|
if (E) {
|
|
7331
|
-
const
|
|
7332
|
-
return
|
|
7331
|
+
const ne = Ve(U.placement);
|
|
7332
|
+
return ne === w || // Create a bias to the `y` side axis due to horizontal
|
|
7333
7333
|
// reading directions favoring greater width.
|
|
7334
|
-
|
|
7334
|
+
ne === "y";
|
|
7335
7335
|
}
|
|
7336
7336
|
return !0;
|
|
7337
|
-
}).map((U) => [U.placement, U.overflows.filter((
|
|
7337
|
+
}).map((U) => [U.placement, U.overflows.filter((ne) => ne > 0).reduce((ne, V) => ne + V, 0)]).sort((U, ne) => U[1] - ne[1])[0]) == null ? void 0 : P[0];
|
|
7338
7338
|
q && (L = q);
|
|
7339
7339
|
break;
|
|
7340
7340
|
}
|
|
@@ -7646,11 +7646,11 @@ function $n(e) {
|
|
|
7646
7646
|
return !1;
|
|
7647
7647
|
}
|
|
7648
7648
|
}
|
|
7649
|
-
const
|
|
7649
|
+
const Dh = /transform|translate|scale|rotate|perspective|filter/, zh = /paint|layout|strict|content/, ht = (e) => !!e && e !== "none";
|
|
7650
7650
|
let go;
|
|
7651
7651
|
function Ar(e) {
|
|
7652
7652
|
const t = Le(e) ? Oe(e) : e;
|
|
7653
|
-
return ht(t.transform) || ht(t.translate) || ht(t.scale) || ht(t.rotate) || ht(t.perspective) || !Pr() && (ht(t.backdropFilter) || ht(t.filter)) ||
|
|
7653
|
+
return ht(t.transform) || ht(t.translate) || ht(t.scale) || ht(t.rotate) || ht(t.perspective) || !Pr() && (ht(t.backdropFilter) || ht(t.filter)) || Dh.test(t.willChange || "") || zh.test(t.contain || "");
|
|
7654
7654
|
}
|
|
7655
7655
|
function Bh(e) {
|
|
7656
7656
|
let t = ct(e);
|
|
@@ -7723,7 +7723,7 @@ function Ua(e) {
|
|
|
7723
7723
|
function Ir(e) {
|
|
7724
7724
|
return Le(e) ? e : e.contextElement;
|
|
7725
7725
|
}
|
|
7726
|
-
function
|
|
7726
|
+
function zt(e) {
|
|
7727
7727
|
const t = Ir(e);
|
|
7728
7728
|
if (!Je(t))
|
|
7729
7729
|
return Ue(1);
|
|
@@ -7753,14 +7753,14 @@ function vt(e, t, n, o) {
|
|
|
7753
7753
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
7754
7754
|
const r = e.getBoundingClientRect(), s = Ir(e);
|
|
7755
7755
|
let i = Ue(1);
|
|
7756
|
-
t && (o ? Le(o) && (i =
|
|
7756
|
+
t && (o ? Le(o) && (i = zt(o)) : i = zt(e));
|
|
7757
7757
|
const a = $h(s, n, o) ? ja(s) : Ue(0);
|
|
7758
7758
|
let c = (r.left + a.x) / i.x, d = (r.top + a.y) / i.y, u = r.width / i.x, l = r.height / i.y;
|
|
7759
7759
|
if (s) {
|
|
7760
7760
|
const p = ke(s), h = o && Le(o) ? ke(o) : o;
|
|
7761
7761
|
let v = p, g = Qo(v);
|
|
7762
7762
|
for (; g && o && h !== v; ) {
|
|
7763
|
-
const b =
|
|
7763
|
+
const b = zt(g), y = g.getBoundingClientRect(), w = Oe(g), x = y.left + (g.clientLeft + parseFloat(w.paddingLeft)) * b.x, C = y.top + (g.clientTop + parseFloat(w.paddingTop)) * b.y;
|
|
7764
7764
|
c *= b.x, d *= b.y, u *= b.x, l *= b.y, c += x, d += C, v = ke(g), g = Qo(v);
|
|
7765
7765
|
}
|
|
7766
7766
|
}
|
|
@@ -7799,7 +7799,7 @@ function Hh(e) {
|
|
|
7799
7799
|
const u = Ue(0), l = Je(o);
|
|
7800
7800
|
if ((l || !l && !s) && ((Vt(o) !== "body" || en(i)) && (c = Hn(o)), l)) {
|
|
7801
7801
|
const h = vt(o);
|
|
7802
|
-
d =
|
|
7802
|
+
d = zt(o), u.x = h.x + o.clientLeft, u.y = h.y + o.clientTop;
|
|
7803
7803
|
}
|
|
7804
7804
|
const p = i && !l && !s ? Wa(i, c) : Ue(0);
|
|
7805
7805
|
return {
|
|
@@ -7845,7 +7845,7 @@ function jh(e, t) {
|
|
|
7845
7845
|
};
|
|
7846
7846
|
}
|
|
7847
7847
|
function Wh(e, t) {
|
|
7848
|
-
const n = vt(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, s = Je(e) ?
|
|
7848
|
+
const n = vt(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, s = Je(e) ? zt(e) : Ue(1), i = e.clientWidth * s.x, a = e.clientHeight * s.y, c = r * s.x, d = o * s.y;
|
|
7849
7849
|
return {
|
|
7850
7850
|
width: i,
|
|
7851
7851
|
height: a,
|
|
@@ -7946,7 +7946,7 @@ function Kh(e, t, n) {
|
|
|
7946
7946
|
function vo(e) {
|
|
7947
7947
|
return Oe(e).position === "static";
|
|
7948
7948
|
}
|
|
7949
|
-
function
|
|
7949
|
+
function Ds(e, t) {
|
|
7950
7950
|
if (!Je(e) || Oe(e).position === "fixed")
|
|
7951
7951
|
return null;
|
|
7952
7952
|
if (t)
|
|
@@ -7967,9 +7967,9 @@ function Ga(e, t) {
|
|
|
7967
7967
|
}
|
|
7968
7968
|
return n;
|
|
7969
7969
|
}
|
|
7970
|
-
let o =
|
|
7970
|
+
let o = Ds(e, t);
|
|
7971
7971
|
for (; o && Oh(o) && vo(o); )
|
|
7972
|
-
o =
|
|
7972
|
+
o = Ds(o, t);
|
|
7973
7973
|
return o && Bt(o) && vo(o) && !Ar(o) ? n : o || Bh(e) || n;
|
|
7974
7974
|
}
|
|
7975
7975
|
const Xh = async function(e) {
|
|
@@ -7995,7 +7995,7 @@ const Jh = {
|
|
|
7995
7995
|
getElementRects: Xh,
|
|
7996
7996
|
getClientRects: Vh,
|
|
7997
7997
|
getDimensions: Yh,
|
|
7998
|
-
getScale:
|
|
7998
|
+
getScale: zt,
|
|
7999
7999
|
isElement: Le,
|
|
8000
8000
|
isRTL: Zh
|
|
8001
8001
|
};
|
|
@@ -8084,7 +8084,7 @@ function eg(e, t, n, o) {
|
|
|
8084
8084
|
}), l == null || l(), (y = h) == null || y.disconnect(), h = null, c && cancelAnimationFrame(v);
|
|
8085
8085
|
};
|
|
8086
8086
|
}
|
|
8087
|
-
const tg = Ih, ng = _h, og = Th, rg = Lh, sg = Ah,
|
|
8087
|
+
const tg = Ih, ng = _h, og = Th, rg = Lh, sg = Ah, zs = Rh, ig = Mh, ag = (e, t, n) => {
|
|
8088
8088
|
const o = /* @__PURE__ */ new Map(), r = {
|
|
8089
8089
|
platform: Jh,
|
|
8090
8090
|
...n
|
|
@@ -8177,9 +8177,9 @@ function dg(e) {
|
|
|
8177
8177
|
strategy: n,
|
|
8178
8178
|
middleware: p
|
|
8179
8179
|
};
|
|
8180
|
-
_.current && (U.platform = _.current), ag(E.current, k.current, U).then((
|
|
8180
|
+
_.current && (U.platform = _.current), ag(E.current, k.current, U).then((ne) => {
|
|
8181
8181
|
const V = {
|
|
8182
|
-
...
|
|
8182
|
+
...ne,
|
|
8183
8183
|
// The floating element's position may be recomputed while it's closed
|
|
8184
8184
|
// but still mounted (such as when transitioning out). To ensure
|
|
8185
8185
|
// `isPositioned` will be `false` initially on the next open, avoid
|
|
@@ -8223,16 +8223,16 @@ function dg(e) {
|
|
|
8223
8223
|
};
|
|
8224
8224
|
if (!L.floating)
|
|
8225
8225
|
return U;
|
|
8226
|
-
const
|
|
8226
|
+
const ne = Bs(L.floating, u.x), V = Bs(L.floating, u.y);
|
|
8227
8227
|
return a ? {
|
|
8228
8228
|
...U,
|
|
8229
|
-
transform: "translate(" +
|
|
8229
|
+
transform: "translate(" + ne + "px, " + V + "px)",
|
|
8230
8230
|
...Ka(L.floating) >= 1.5 && {
|
|
8231
8231
|
willChange: "transform"
|
|
8232
8232
|
}
|
|
8233
8233
|
} : {
|
|
8234
8234
|
position: n,
|
|
8235
|
-
left:
|
|
8235
|
+
left: ne,
|
|
8236
8236
|
top: V
|
|
8237
8237
|
};
|
|
8238
8238
|
}, [n, a, L.floating, u.x, u.y]);
|
|
@@ -8256,10 +8256,10 @@ const ug = (e) => {
|
|
|
8256
8256
|
element: o,
|
|
8257
8257
|
padding: r
|
|
8258
8258
|
} = typeof e == "function" ? e(n) : e;
|
|
8259
|
-
return o && t(o) ? o.current != null ?
|
|
8259
|
+
return o && t(o) ? o.current != null ? zs({
|
|
8260
8260
|
element: o.current,
|
|
8261
8261
|
padding: r
|
|
8262
|
-
}).fn(n) : {} : o ?
|
|
8262
|
+
}).fn(n) : {} : o ? zs({
|
|
8263
8263
|
element: o,
|
|
8264
8264
|
padding: r
|
|
8265
8265
|
}).fn(n) : {};
|
|
@@ -8344,7 +8344,7 @@ var ec = "PopperAnchor", tc = m.forwardRef(
|
|
|
8344
8344
|
tc.displayName = ec;
|
|
8345
8345
|
var Mr = "PopperContent", [Cg, Sg] = Za(Mr), nc = m.forwardRef(
|
|
8346
8346
|
(e, t) => {
|
|
8347
|
-
var $,
|
|
8347
|
+
var $, j, Z, te, oe, Q;
|
|
8348
8348
|
const {
|
|
8349
8349
|
__scopePopper: n,
|
|
8350
8350
|
side: o = "bottom",
|
|
@@ -8360,7 +8360,7 @@ var Mr = "PopperContent", [Cg, Sg] = Za(Mr), nc = m.forwardRef(
|
|
|
8360
8360
|
updatePositionStrategy: h = "optimized",
|
|
8361
8361
|
onPlaced: v,
|
|
8362
8362
|
...g
|
|
8363
|
-
} = e, b = Ja(Mr, n), [y, w] = m.useState(null), x = ce(t, (ue) => w(ue)), [C, N] = m.useState(null), E =
|
|
8363
|
+
} = e, b = Ja(Mr, n), [y, w] = m.useState(null), x = ce(t, (ue) => w(ue)), [C, N] = m.useState(null), E = zn(C), k = (E == null ? void 0 : E.width) ?? 0, S = (E == null ? void 0 : E.height) ?? 0, R = o + (s !== "center" ? "-" + s : ""), I = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, _ = Array.isArray(d) ? d : [d], T = _.length > 0, P = {
|
|
8364
8364
|
padding: I,
|
|
8365
8365
|
boundary: _.filter(kg),
|
|
8366
8366
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -8395,13 +8395,13 @@ var Mr = "PopperContent", [Cg, Sg] = Za(Mr), nc = m.forwardRef(
|
|
|
8395
8395
|
Ng({ arrowWidth: k, arrowHeight: S }),
|
|
8396
8396
|
p && vg({ strategy: "referenceHidden", ...P })
|
|
8397
8397
|
]
|
|
8398
|
-
}), [
|
|
8398
|
+
}), [ne, V] = sc(L), D = be(v);
|
|
8399
8399
|
de(() => {
|
|
8400
|
-
q && (
|
|
8401
|
-
}, [q,
|
|
8402
|
-
const F = ($ = U.arrow) == null ? void 0 : $.x, A = (
|
|
8400
|
+
q && (D == null || D());
|
|
8401
|
+
}, [q, D]);
|
|
8402
|
+
const F = ($ = U.arrow) == null ? void 0 : $.x, A = (j = U.arrow) == null ? void 0 : j.y, z = ((Z = U.arrow) == null ? void 0 : Z.centerOffset) !== 0, [M, W] = m.useState();
|
|
8403
8403
|
return de(() => {
|
|
8404
|
-
y &&
|
|
8404
|
+
y && W(window.getComputedStyle(y).zIndex);
|
|
8405
8405
|
}, [y]), /* @__PURE__ */ f(
|
|
8406
8406
|
"div",
|
|
8407
8407
|
{
|
|
@@ -8414,8 +8414,8 @@ var Mr = "PopperContent", [Cg, Sg] = Za(Mr), nc = m.forwardRef(
|
|
|
8414
8414
|
minWidth: "max-content",
|
|
8415
8415
|
zIndex: M,
|
|
8416
8416
|
"--radix-popper-transform-origin": [
|
|
8417
|
-
(
|
|
8418
|
-
(
|
|
8417
|
+
(te = U.transformOrigin) == null ? void 0 : te.x,
|
|
8418
|
+
(oe = U.transformOrigin) == null ? void 0 : oe.y
|
|
8419
8419
|
].join(" "),
|
|
8420
8420
|
// hide the content if using the hide middleware and should be hidden
|
|
8421
8421
|
// set visibility to hidden and disable pointer events so the UI behaves
|
|
@@ -8430,15 +8430,15 @@ var Mr = "PopperContent", [Cg, Sg] = Za(Mr), nc = m.forwardRef(
|
|
|
8430
8430
|
Cg,
|
|
8431
8431
|
{
|
|
8432
8432
|
scope: n,
|
|
8433
|
-
placedSide:
|
|
8433
|
+
placedSide: ne,
|
|
8434
8434
|
onArrowChange: N,
|
|
8435
8435
|
arrowX: F,
|
|
8436
8436
|
arrowY: A,
|
|
8437
|
-
shouldHideArrow:
|
|
8437
|
+
shouldHideArrow: z,
|
|
8438
8438
|
children: /* @__PURE__ */ f(
|
|
8439
8439
|
J.div,
|
|
8440
8440
|
{
|
|
8441
|
-
"data-side":
|
|
8441
|
+
"data-side": ne,
|
|
8442
8442
|
"data-align": V,
|
|
8443
8443
|
...g,
|
|
8444
8444
|
ref: x,
|
|
@@ -8650,7 +8650,7 @@ var _g = m.forwardRef((e, t) => {
|
|
|
8650
8650
|
else if (y === "prev" || y === "next") {
|
|
8651
8651
|
y === "prev" && x.reverse();
|
|
8652
8652
|
const C = x.indexOf(b.currentTarget);
|
|
8653
|
-
x = u.loop ?
|
|
8653
|
+
x = u.loop ? Dg(x, C + 1) : x.slice(C + 1);
|
|
8654
8654
|
}
|
|
8655
8655
|
setTimeout(() => mc(x));
|
|
8656
8656
|
}
|
|
@@ -8686,10 +8686,10 @@ function mc(e, t = !1) {
|
|
|
8686
8686
|
for (const o of e)
|
|
8687
8687
|
if (o === n || (o.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
8688
8688
|
}
|
|
8689
|
-
function
|
|
8689
|
+
function Dg(e, t) {
|
|
8690
8690
|
return e.map((n, o) => e[(t + o) % e.length]);
|
|
8691
8691
|
}
|
|
8692
|
-
var hc = uc, gc = pc,
|
|
8692
|
+
var hc = uc, gc = pc, zg = "Label", vc = m.forwardRef((e, t) => /* @__PURE__ */ f(
|
|
8693
8693
|
J.label,
|
|
8694
8694
|
{
|
|
8695
8695
|
...e,
|
|
@@ -8700,7 +8700,7 @@ var hc = uc, gc = pc, Dg = "Label", vc = m.forwardRef((e, t) => /* @__PURE__ */
|
|
|
8700
8700
|
}
|
|
8701
8701
|
}
|
|
8702
8702
|
));
|
|
8703
|
-
vc.displayName =
|
|
8703
|
+
vc.displayName = zg;
|
|
8704
8704
|
var Bg = vc;
|
|
8705
8705
|
function tr(e, [t, n]) {
|
|
8706
8706
|
return Math.min(n, Math.max(t, e));
|
|
@@ -8778,7 +8778,7 @@ function jg(e, t) {
|
|
|
8778
8778
|
|
|
8779
8779
|
Defaulting to \`null\`.`;
|
|
8780
8780
|
}
|
|
8781
|
-
var Wg = bc, qg = wc,
|
|
8781
|
+
var Wg = bc, qg = wc, Dr = "Radio", [Gg, Cc] = xe(Dr), [Yg, Kg] = Gg(Dr), Sc = m.forwardRef(
|
|
8782
8782
|
(e, t) => {
|
|
8783
8783
|
const {
|
|
8784
8784
|
__scopeRadio: n,
|
|
@@ -8826,11 +8826,11 @@ var Wg = bc, qg = wc, zr = "Radio", [Gg, Cc] = xe(zr), [Yg, Kg] = Gg(zr), Sc = m
|
|
|
8826
8826
|
] });
|
|
8827
8827
|
}
|
|
8828
8828
|
);
|
|
8829
|
-
Sc.displayName =
|
|
8829
|
+
Sc.displayName = Dr;
|
|
8830
8830
|
var Ec = "RadioIndicator", kc = m.forwardRef(
|
|
8831
8831
|
(e, t) => {
|
|
8832
8832
|
const { __scopeRadio: n, forceMount: o, ...r } = e, s = Kg(Ec, n);
|
|
8833
|
-
return /* @__PURE__ */ f(
|
|
8833
|
+
return /* @__PURE__ */ f(De, { present: o || s.checked, children: /* @__PURE__ */ f(
|
|
8834
8834
|
J.span,
|
|
8835
8835
|
{
|
|
8836
8836
|
"data-state": Rc(s.checked),
|
|
@@ -8850,7 +8850,7 @@ var Xg = "RadioBubbleInput", Nc = m.forwardRef(
|
|
|
8850
8850
|
bubbles: o = !0,
|
|
8851
8851
|
...r
|
|
8852
8852
|
}, s) => {
|
|
8853
|
-
const i = m.useRef(null), a = ce(i, s), c =
|
|
8853
|
+
const i = m.useRef(null), a = ce(i, s), c = Dn(n), d = zn(t);
|
|
8854
8854
|
return m.useEffect(() => {
|
|
8855
8855
|
const u = i.current;
|
|
8856
8856
|
if (!u) return;
|
|
@@ -8999,7 +8999,7 @@ var nv = Pc, ov = _c, rv = Mc;
|
|
|
8999
8999
|
function sv(e, t) {
|
|
9000
9000
|
return m.useReducer((n, o) => t[n][o] ?? n, e);
|
|
9001
9001
|
}
|
|
9002
|
-
var
|
|
9002
|
+
var zr = "ScrollArea", [Lc] = xe(zr), [iv, Te] = Lc(zr), Oc = m.forwardRef(
|
|
9003
9003
|
(e, t) => {
|
|
9004
9004
|
const {
|
|
9005
9005
|
__scopeScrollArea: n,
|
|
@@ -9049,10 +9049,10 @@ var Dr = "ScrollArea", [Lc] = xe(Dr), [iv, Te] = Lc(Dr), Oc = m.forwardRef(
|
|
|
9049
9049
|
);
|
|
9050
9050
|
}
|
|
9051
9051
|
);
|
|
9052
|
-
Oc.displayName =
|
|
9053
|
-
var
|
|
9052
|
+
Oc.displayName = zr;
|
|
9053
|
+
var Dc = "ScrollAreaViewport", zc = m.forwardRef(
|
|
9054
9054
|
(e, t) => {
|
|
9055
|
-
const { __scopeScrollArea: n, children: o, nonce: r, ...s } = e, i = Te(
|
|
9055
|
+
const { __scopeScrollArea: n, children: o, nonce: r, ...s } = e, i = Te(Dc, n), a = m.useRef(null), c = ce(t, a, i.onViewportChange);
|
|
9056
9056
|
return /* @__PURE__ */ K(Me, { children: [
|
|
9057
9057
|
/* @__PURE__ */ f(
|
|
9058
9058
|
"style",
|
|
@@ -9091,7 +9091,7 @@ var zc = "ScrollAreaViewport", Dc = m.forwardRef(
|
|
|
9091
9091
|
] });
|
|
9092
9092
|
}
|
|
9093
9093
|
);
|
|
9094
|
-
|
|
9094
|
+
zc.displayName = Dc;
|
|
9095
9095
|
var We = "ScrollAreaScrollbar", Bc = m.forwardRef(
|
|
9096
9096
|
(e, t) => {
|
|
9097
9097
|
const { forceMount: n, ...o } = e, r = Te(We, e.__scopeScrollArea), { onScrollbarXEnabledChange: s, onScrollbarYEnabledChange: i } = r, a = e.orientation === "horizontal";
|
|
@@ -9116,7 +9116,7 @@ var av = m.forwardRef((e, t) => {
|
|
|
9116
9116
|
window.clearTimeout(c), a.removeEventListener("pointerenter", d), a.removeEventListener("pointerleave", u);
|
|
9117
9117
|
};
|
|
9118
9118
|
}
|
|
9119
|
-
}, [r.scrollArea, r.scrollHideDelay]), /* @__PURE__ */ f(
|
|
9119
|
+
}, [r.scrollArea, r.scrollHideDelay]), /* @__PURE__ */ f(De, { present: n || s, children: /* @__PURE__ */ f(
|
|
9120
9120
|
Fc,
|
|
9121
9121
|
{
|
|
9122
9122
|
"data-state": s ? "visible" : "hidden",
|
|
@@ -9158,7 +9158,7 @@ var av = m.forwardRef((e, t) => {
|
|
|
9158
9158
|
};
|
|
9159
9159
|
return d.addEventListener("scroll", p), () => d.removeEventListener("scroll", p);
|
|
9160
9160
|
}
|
|
9161
|
-
}, [r.viewport, s, c, i]), /* @__PURE__ */ f(
|
|
9161
|
+
}, [r.viewport, s, c, i]), /* @__PURE__ */ f(De, { present: n || a !== "hidden", children: /* @__PURE__ */ f(
|
|
9162
9162
|
Br,
|
|
9163
9163
|
{
|
|
9164
9164
|
"data-state": a === "hidden" ? "hidden" : "visible",
|
|
@@ -9175,7 +9175,7 @@ var av = m.forwardRef((e, t) => {
|
|
|
9175
9175
|
i(a ? d : u);
|
|
9176
9176
|
}
|
|
9177
9177
|
}, 10);
|
|
9178
|
-
return Ft(n.viewport, c), Ft(n.content, c), /* @__PURE__ */ f(
|
|
9178
|
+
return Ft(n.viewport, c), Ft(n.content, c), /* @__PURE__ */ f(De, { present: o || s, children: /* @__PURE__ */ f(
|
|
9179
9179
|
Br,
|
|
9180
9180
|
{
|
|
9181
9181
|
"data-state": s ? "visible" : "hidden",
|
|
@@ -9373,7 +9373,7 @@ var av = m.forwardRef((e, t) => {
|
|
|
9373
9373
|
}), Tn = "ScrollAreaThumb", Vc = m.forwardRef(
|
|
9374
9374
|
(e, t) => {
|
|
9375
9375
|
const { forceMount: n, ...o } = e, r = $c(Tn, e.__scopeScrollArea);
|
|
9376
|
-
return /* @__PURE__ */ f(
|
|
9376
|
+
return /* @__PURE__ */ f(De, { present: n || r.hasThumb, children: /* @__PURE__ */ f(fv, { ref: t, ...o }) });
|
|
9377
9377
|
}
|
|
9378
9378
|
), fv = m.forwardRef(
|
|
9379
9379
|
(e, t) => {
|
|
@@ -9506,7 +9506,7 @@ function Ft(e, t) {
|
|
|
9506
9506
|
}
|
|
9507
9507
|
}, [e, n]);
|
|
9508
9508
|
}
|
|
9509
|
-
var gv = Oc, vv =
|
|
9509
|
+
var gv = Oc, vv = zc, bv = Uc, yv = [" ", "Enter", "ArrowUp", "ArrowDown"], wv = [" ", "Enter"], bt = "Select", [Yn, Kn, xv] = aa(bt), [Ut] = xe(bt, [
|
|
9510
9510
|
xv,
|
|
9511
9511
|
Un
|
|
9512
9512
|
]), Xn = Un(), [Cv, dt] = Ut(bt), [Sv, Ev] = Ut(bt), Gc = (e) => {
|
|
@@ -9712,9 +9712,9 @@ var _e = 10, [tl, ut] = Ut(yt), Rv = "SelectContentImpl", Tv = /* @__PURE__ */ X
|
|
|
9712
9712
|
}, [x]), fm();
|
|
9713
9713
|
const L = m.useCallback(
|
|
9714
9714
|
($) => {
|
|
9715
|
-
const [
|
|
9715
|
+
const [j, ...Z] = T().map((Q) => Q.ref.current), [te] = Z.slice(-1), oe = document.activeElement;
|
|
9716
9716
|
for (const Q of $)
|
|
9717
|
-
if (Q ===
|
|
9717
|
+
if (Q === oe || (Q == null || Q.scrollIntoView({ block: "nearest" }), Q === j && N && (N.scrollTop = 0), Q === te && N && (N.scrollTop = N.scrollHeight), Q == null || Q.focus(), document.activeElement !== oe)) return;
|
|
9718
9718
|
},
|
|
9719
9719
|
[T, N]
|
|
9720
9720
|
), q = m.useCallback(
|
|
@@ -9724,45 +9724,45 @@ var _e = 10, [tl, ut] = Ut(yt), Rv = "SelectContentImpl", Tv = /* @__PURE__ */ X
|
|
|
9724
9724
|
m.useEffect(() => {
|
|
9725
9725
|
P && q();
|
|
9726
9726
|
}, [P, q]);
|
|
9727
|
-
const { onOpenChange: U, triggerPointerDownPosRef:
|
|
9727
|
+
const { onOpenChange: U, triggerPointerDownPosRef: ne } = w;
|
|
9728
9728
|
m.useEffect(() => {
|
|
9729
9729
|
if (x) {
|
|
9730
9730
|
let $ = { x: 0, y: 0 };
|
|
9731
|
-
const
|
|
9732
|
-
var
|
|
9731
|
+
const j = (te) => {
|
|
9732
|
+
var oe, Q;
|
|
9733
9733
|
$ = {
|
|
9734
|
-
x: Math.abs(Math.round(
|
|
9735
|
-
y: Math.abs(Math.round(
|
|
9734
|
+
x: Math.abs(Math.round(te.pageX) - (((oe = ne.current) == null ? void 0 : oe.x) ?? 0)),
|
|
9735
|
+
y: Math.abs(Math.round(te.pageY) - (((Q = ne.current) == null ? void 0 : Q.y) ?? 0))
|
|
9736
9736
|
};
|
|
9737
|
-
}, Z = (
|
|
9738
|
-
$.x <= 10 && $.y <= 10 ?
|
|
9737
|
+
}, Z = (te) => {
|
|
9738
|
+
$.x <= 10 && $.y <= 10 ? te.preventDefault() : x.contains(te.target) || U(!1), document.removeEventListener("pointermove", j), ne.current = null;
|
|
9739
9739
|
};
|
|
9740
|
-
return
|
|
9741
|
-
document.removeEventListener("pointermove",
|
|
9740
|
+
return ne.current !== null && (document.addEventListener("pointermove", j), document.addEventListener("pointerup", Z, { capture: !0, once: !0 })), () => {
|
|
9741
|
+
document.removeEventListener("pointermove", j), document.removeEventListener("pointerup", Z, { capture: !0 });
|
|
9742
9742
|
};
|
|
9743
9743
|
}
|
|
9744
|
-
}, [x, U,
|
|
9744
|
+
}, [x, U, ne]), m.useEffect(() => {
|
|
9745
9745
|
const $ = () => U(!1);
|
|
9746
9746
|
return window.addEventListener("blur", $), window.addEventListener("resize", $), () => {
|
|
9747
9747
|
window.removeEventListener("blur", $), window.removeEventListener("resize", $);
|
|
9748
9748
|
};
|
|
9749
9749
|
}, [U]);
|
|
9750
|
-
const [V,
|
|
9751
|
-
const
|
|
9752
|
-
|
|
9750
|
+
const [V, D] = vl(($) => {
|
|
9751
|
+
const j = T().filter((oe) => !oe.disabled), Z = j.find((oe) => oe.ref.current === document.activeElement), te = bl(j, $, Z);
|
|
9752
|
+
te && setTimeout(() => te.ref.current.focus());
|
|
9753
9753
|
}), F = m.useCallback(
|
|
9754
|
-
($,
|
|
9755
|
-
const
|
|
9756
|
-
(w.value !== void 0 && w.value ===
|
|
9754
|
+
($, j, Z) => {
|
|
9755
|
+
const te = !H.current && !Z;
|
|
9756
|
+
(w.value !== void 0 && w.value === j || te) && (R($), te && (H.current = !0));
|
|
9757
9757
|
},
|
|
9758
9758
|
[w.value]
|
|
9759
|
-
), A = m.useCallback(() => x == null ? void 0 : x.focus(), [x]),
|
|
9760
|
-
($,
|
|
9761
|
-
const
|
|
9762
|
-
(w.value !== void 0 && w.value ===
|
|
9759
|
+
), A = m.useCallback(() => x == null ? void 0 : x.focus(), [x]), z = m.useCallback(
|
|
9760
|
+
($, j, Z) => {
|
|
9761
|
+
const te = !H.current && !Z;
|
|
9762
|
+
(w.value !== void 0 && w.value === j || te) && _($);
|
|
9763
9763
|
},
|
|
9764
9764
|
[w.value]
|
|
9765
|
-
), M = o === "popper" ? nr : ol,
|
|
9765
|
+
), M = o === "popper" ? nr : ol, W = M === nr ? {
|
|
9766
9766
|
side: a,
|
|
9767
9767
|
sideOffset: c,
|
|
9768
9768
|
align: d,
|
|
@@ -9784,7 +9784,7 @@ var _e = 10, [tl, ut] = Ut(yt), Rv = "SelectContentImpl", Tv = /* @__PURE__ */ X
|
|
|
9784
9784
|
itemRefCallback: F,
|
|
9785
9785
|
selectedItem: S,
|
|
9786
9786
|
onItemLeave: A,
|
|
9787
|
-
itemTextRefCallback:
|
|
9787
|
+
itemTextRefCallback: z,
|
|
9788
9788
|
focusSelectedItem: q,
|
|
9789
9789
|
selectedItemText: I,
|
|
9790
9790
|
position: o,
|
|
@@ -9799,8 +9799,8 @@ var _e = 10, [tl, ut] = Ut(yt), Rv = "SelectContentImpl", Tv = /* @__PURE__ */ X
|
|
|
9799
9799
|
$.preventDefault();
|
|
9800
9800
|
},
|
|
9801
9801
|
onUnmountAutoFocus: ee(r, ($) => {
|
|
9802
|
-
var
|
|
9803
|
-
(
|
|
9802
|
+
var j;
|
|
9803
|
+
(j = w.trigger) == null || j.focus({ preventScroll: !0 }), $.preventDefault();
|
|
9804
9804
|
}),
|
|
9805
9805
|
children: /* @__PURE__ */ f(
|
|
9806
9806
|
Cr,
|
|
@@ -9820,7 +9820,7 @@ var _e = 10, [tl, ut] = Ut(yt), Rv = "SelectContentImpl", Tv = /* @__PURE__ */ X
|
|
|
9820
9820
|
dir: w.dir,
|
|
9821
9821
|
onContextMenu: ($) => $.preventDefault(),
|
|
9822
9822
|
...y,
|
|
9823
|
-
...
|
|
9823
|
+
...W,
|
|
9824
9824
|
onPlaced: () => O(!0),
|
|
9825
9825
|
ref: k,
|
|
9826
9826
|
style: {
|
|
@@ -9832,14 +9832,14 @@ var _e = 10, [tl, ut] = Ut(yt), Rv = "SelectContentImpl", Tv = /* @__PURE__ */ X
|
|
|
9832
9832
|
...y.style
|
|
9833
9833
|
},
|
|
9834
9834
|
onKeyDown: ee(y.onKeyDown, ($) => {
|
|
9835
|
-
const
|
|
9836
|
-
if ($.key === "Tab" && $.preventDefault(), !
|
|
9837
|
-
let
|
|
9838
|
-
if (["ArrowUp", "End"].includes($.key) && (
|
|
9839
|
-
const
|
|
9840
|
-
|
|
9835
|
+
const j = $.ctrlKey || $.altKey || $.metaKey;
|
|
9836
|
+
if ($.key === "Tab" && $.preventDefault(), !j && $.key.length === 1 && D($.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes($.key)) {
|
|
9837
|
+
let te = T().filter((oe) => !oe.disabled).map((oe) => oe.ref.current);
|
|
9838
|
+
if (["ArrowUp", "End"].includes($.key) && (te = te.slice().reverse()), ["ArrowUp", "ArrowDown"].includes($.key)) {
|
|
9839
|
+
const oe = $.target, Q = te.indexOf(oe);
|
|
9840
|
+
te = te.slice(Q + 1);
|
|
9841
9841
|
}
|
|
9842
|
-
setTimeout(() => L(
|
|
9842
|
+
setTimeout(() => L(te)), $.preventDefault();
|
|
9843
9843
|
}
|
|
9844
9844
|
})
|
|
9845
9845
|
}
|
|
@@ -9858,7 +9858,7 @@ var Av = "SelectItemAlignedPosition", ol = m.forwardRef((e, t) => {
|
|
|
9858
9858
|
if (s.trigger && s.valueNode && a && d && g && b && y) {
|
|
9859
9859
|
const k = s.trigger.getBoundingClientRect(), S = d.getBoundingClientRect(), R = s.valueNode.getBoundingClientRect(), I = y.getBoundingClientRect();
|
|
9860
9860
|
if (s.dir !== "rtl") {
|
|
9861
|
-
const
|
|
9861
|
+
const oe = I.left - S.left, Q = R.left - oe, ue = k.left - Q, fe = k.width + ue, ft = Math.max(fe, S.width), Qe = window.innerWidth - _e, Ae = tr(Q, [
|
|
9862
9862
|
_e,
|
|
9863
9863
|
// Prevents the content from going off the starting edge of the
|
|
9864
9864
|
// viewport. It may still go off the ending edge, but this can be
|
|
@@ -9869,31 +9869,31 @@ var Av = "SelectItemAlignedPosition", ol = m.forwardRef((e, t) => {
|
|
|
9869
9869
|
]);
|
|
9870
9870
|
a.style.minWidth = fe + "px", a.style.left = Ae + "px";
|
|
9871
9871
|
} else {
|
|
9872
|
-
const
|
|
9872
|
+
const oe = S.right - I.right, Q = window.innerWidth - R.right - oe, ue = window.innerWidth - k.right - Q, fe = k.width + ue, ft = Math.max(fe, S.width), Qe = window.innerWidth - _e, Ae = tr(Q, [
|
|
9873
9873
|
_e,
|
|
9874
9874
|
Math.max(_e, Qe - ft)
|
|
9875
9875
|
]);
|
|
9876
9876
|
a.style.minWidth = fe + "px", a.style.right = Ae + "px";
|
|
9877
9877
|
}
|
|
9878
|
-
const _ = p(), T = window.innerHeight - _e * 2, P = g.scrollHeight, O = window.getComputedStyle(d), H = parseInt(O.borderTopWidth, 10), L = parseInt(O.paddingTop, 10), q = parseInt(O.borderBottomWidth, 10), U = parseInt(O.paddingBottom, 10),
|
|
9879
|
-
if (
|
|
9880
|
-
const
|
|
9878
|
+
const _ = p(), T = window.innerHeight - _e * 2, P = g.scrollHeight, O = window.getComputedStyle(d), H = parseInt(O.borderTopWidth, 10), L = parseInt(O.paddingTop, 10), q = parseInt(O.borderBottomWidth, 10), U = parseInt(O.paddingBottom, 10), ne = H + L + P + U + q, V = Math.min(b.offsetHeight * 5, ne), D = window.getComputedStyle(g), F = parseInt(D.paddingTop, 10), A = parseInt(D.paddingBottom, 10), z = k.top + k.height / 2 - _e, M = T - z, W = b.offsetHeight / 2, $ = b.offsetTop + W, j = H + L + $, Z = ne - j;
|
|
9879
|
+
if (j <= z) {
|
|
9880
|
+
const oe = _.length > 0 && b === _[_.length - 1].ref.current;
|
|
9881
9881
|
a.style.bottom = "0px";
|
|
9882
9882
|
const Q = d.clientHeight - g.offsetTop - g.offsetHeight, ue = Math.max(
|
|
9883
9883
|
M,
|
|
9884
|
-
|
|
9885
|
-
(
|
|
9886
|
-
), fe =
|
|
9884
|
+
W + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
|
9885
|
+
(oe ? A : 0) + Q + q
|
|
9886
|
+
), fe = j + ue;
|
|
9887
9887
|
a.style.height = fe + "px";
|
|
9888
9888
|
} else {
|
|
9889
|
-
const
|
|
9889
|
+
const oe = _.length > 0 && b === _[0].ref.current;
|
|
9890
9890
|
a.style.top = "0px";
|
|
9891
9891
|
const ue = Math.max(
|
|
9892
|
-
|
|
9892
|
+
z,
|
|
9893
9893
|
H + g.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
9894
|
-
(
|
|
9894
|
+
(oe ? F : 0) + W
|
|
9895
9895
|
) + Z;
|
|
9896
|
-
a.style.height = ue + "px", g.scrollTop =
|
|
9896
|
+
a.style.height = ue + "px", g.scrollTop = j - z + g.offsetTop;
|
|
9897
9897
|
}
|
|
9898
9898
|
a.style.margin = `${_e}px 0`, a.style.minHeight = V + "px", a.style.maxHeight = T + "px", o == null || o(), requestAnimationFrame(() => h.current = !0);
|
|
9899
9899
|
}
|
|
@@ -10054,7 +10054,7 @@ var il = "SelectLabel", Ov = m.forwardRef(
|
|
|
10054
10054
|
}
|
|
10055
10055
|
);
|
|
10056
10056
|
Ov.displayName = il;
|
|
10057
|
-
var Pn = "SelectItem", [
|
|
10057
|
+
var Pn = "SelectItem", [Dv, al] = Ut(Pn), cl = m.forwardRef(
|
|
10058
10058
|
(e, t) => {
|
|
10059
10059
|
const {
|
|
10060
10060
|
__scopeSelect: n,
|
|
@@ -10076,7 +10076,7 @@ var Pn = "SelectItem", [zv, al] = Ut(Pn), cl = m.forwardRef(
|
|
|
10076
10076
|
"A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder."
|
|
10077
10077
|
);
|
|
10078
10078
|
return /* @__PURE__ */ f(
|
|
10079
|
-
|
|
10079
|
+
Dv,
|
|
10080
10080
|
{
|
|
10081
10081
|
scope: n,
|
|
10082
10082
|
value: o,
|
|
@@ -10241,13 +10241,13 @@ var ml = m.forwardRef((e, t) => {
|
|
|
10241
10241
|
})
|
|
10242
10242
|
}
|
|
10243
10243
|
);
|
|
10244
|
-
}),
|
|
10244
|
+
}), zv = "SelectSeparator", Bv = m.forwardRef(
|
|
10245
10245
|
(e, t) => {
|
|
10246
10246
|
const { __scopeSelect: n, ...o } = e;
|
|
10247
10247
|
return /* @__PURE__ */ f(J.div, { "aria-hidden": !0, ...o, ref: t });
|
|
10248
10248
|
}
|
|
10249
10249
|
);
|
|
10250
|
-
Bv.displayName =
|
|
10250
|
+
Bv.displayName = zv;
|
|
10251
10251
|
var ir = "SelectArrow", Fv = m.forwardRef(
|
|
10252
10252
|
(e, t) => {
|
|
10253
10253
|
const { __scopeSelect: n, ...o } = e, r = Xn(n), s = dt(ir, n), i = ut(ir, n);
|
|
@@ -10257,7 +10257,7 @@ var ir = "SelectArrow", Fv = m.forwardRef(
|
|
|
10257
10257
|
Fv.displayName = ir;
|
|
10258
10258
|
var $v = "SelectBubbleInput", hl = m.forwardRef(
|
|
10259
10259
|
({ __scopeSelect: e, value: t, ...n }, o) => {
|
|
10260
|
-
const r = m.useRef(null), s = ce(o, r), i =
|
|
10260
|
+
const r = m.useRef(null), s = ce(o, r), i = Dn(t);
|
|
10261
10261
|
return m.useEffect(() => {
|
|
10262
10262
|
const a = r.current;
|
|
10263
10263
|
if (!a) return;
|
|
@@ -10405,7 +10405,7 @@ var ab = "SwitchBubbleInput", Sl = m.forwardRef(
|
|
|
10405
10405
|
bubbles: o = !0,
|
|
10406
10406
|
...r
|
|
10407
10407
|
}, s) => {
|
|
10408
|
-
const i = m.useRef(null), a = ce(i, s), c =
|
|
10408
|
+
const i = m.useRef(null), a = ce(i, s), c = Dn(n), d = zn(t);
|
|
10409
10409
|
return m.useEffect(() => {
|
|
10410
10410
|
const u = i.current;
|
|
10411
10411
|
if (!u) return;
|
|
@@ -10556,7 +10556,7 @@ var Il = "TabsContent", _l = m.forwardRef(
|
|
|
10556
10556
|
return m.useEffect(() => {
|
|
10557
10557
|
const p = requestAnimationFrame(() => l.current = !1);
|
|
10558
10558
|
return () => cancelAnimationFrame(p);
|
|
10559
|
-
}, []), /* @__PURE__ */ f(
|
|
10559
|
+
}, []), /* @__PURE__ */ f(De, { present: r || u, children: ({ present: p }) => /* @__PURE__ */ f(
|
|
10560
10560
|
J.div,
|
|
10561
10561
|
{
|
|
10562
10562
|
"data-state": u ? "active" : "inactive",
|
|
@@ -10586,7 +10586,7 @@ function Ll(e, t) {
|
|
|
10586
10586
|
}
|
|
10587
10587
|
var fb = Nl, pb = Tl, mb = Pl, hb = _l, [Qn] = xe("Tooltip", [
|
|
10588
10588
|
Un
|
|
10589
|
-
]), eo = Un(), Ol = "TooltipProvider", gb = 700, ar = "tooltip.open", [vb, Vr] = Qn(Ol),
|
|
10589
|
+
]), eo = Un(), Ol = "TooltipProvider", gb = 700, ar = "tooltip.open", [vb, Vr] = Qn(Ol), Dl = (e) => {
|
|
10590
10590
|
const {
|
|
10591
10591
|
__scopeTooltip: t,
|
|
10592
10592
|
delayDuration: n = gb,
|
|
@@ -10621,8 +10621,8 @@ var fb = Nl, pb = Tl, mb = Pl, hb = _l, [Qn] = xe("Tooltip", [
|
|
|
10621
10621
|
}
|
|
10622
10622
|
);
|
|
10623
10623
|
};
|
|
10624
|
-
|
|
10625
|
-
var Jt = "Tooltip", [bb, nn] = Qn(Jt),
|
|
10624
|
+
Dl.displayName = Ol;
|
|
10625
|
+
var Jt = "Tooltip", [bb, nn] = Qn(Jt), zl = (e) => {
|
|
10626
10626
|
const {
|
|
10627
10627
|
__scopeTooltip: t,
|
|
10628
10628
|
children: n,
|
|
@@ -10671,7 +10671,7 @@ var Jt = "Tooltip", [bb, nn] = Qn(Jt), Dl = (e) => {
|
|
|
10671
10671
|
}
|
|
10672
10672
|
) });
|
|
10673
10673
|
};
|
|
10674
|
-
|
|
10674
|
+
zl.displayName = Jt;
|
|
10675
10675
|
var cr = "TooltipTrigger", Bl = m.forwardRef(
|
|
10676
10676
|
(e, t) => {
|
|
10677
10677
|
const { __scopeTooltip: n, ...o } = e, r = nn(cr, n), s = Vr(cr, n), i = eo(n), a = m.useRef(null), c = ce(t, a, r.onTriggerChange), d = m.useRef(!1), u = m.useRef(!1), l = m.useCallback(() => d.current = !1, []);
|
|
@@ -10705,13 +10705,13 @@ var Ur = "TooltipPortal", [yb, wb] = Qn(Ur, {
|
|
|
10705
10705
|
forceMount: void 0
|
|
10706
10706
|
}), Fl = (e) => {
|
|
10707
10707
|
const { __scopeTooltip: t, forceMount: n, children: o, container: r } = e, s = nn(Ur, t);
|
|
10708
|
-
return /* @__PURE__ */ f(yb, { scope: t, forceMount: n, children: /* @__PURE__ */ f(
|
|
10708
|
+
return /* @__PURE__ */ f(yb, { scope: t, forceMount: n, children: /* @__PURE__ */ f(De, { present: n || s.open, children: /* @__PURE__ */ f(Sr, { asChild: !0, container: r, children: o }) }) });
|
|
10709
10709
|
};
|
|
10710
10710
|
Fl.displayName = Ur;
|
|
10711
10711
|
var $t = "TooltipContent", $l = m.forwardRef(
|
|
10712
10712
|
(e, t) => {
|
|
10713
10713
|
const n = wb($t, e.__scopeTooltip), { forceMount: o = n.forceMount, side: r = "top", ...s } = e, i = nn($t, e.__scopeTooltip);
|
|
10714
|
-
return /* @__PURE__ */ f(
|
|
10714
|
+
return /* @__PURE__ */ f(De, { present: o || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ f(Hl, { side: r, ...s, ref: t }) : /* @__PURE__ */ f(xb, { side: r, ...s, ref: t }) });
|
|
10715
10715
|
}
|
|
10716
10716
|
), xb = m.forwardRef((e, t) => {
|
|
10717
10717
|
const n = nn($t, e.__scopeTooltip), o = Vr($t, e.__scopeTooltip), r = m.useRef(null), s = ce(t, r), [i, a] = m.useState(null), { trigger: c, onClose: d } = n, u = r.current, { onPointerInTransitChange: l } = o, p = m.useCallback(() => {
|
|
@@ -10894,8 +10894,8 @@ function Pb(e) {
|
|
|
10894
10894
|
}
|
|
10895
10895
|
return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
|
|
10896
10896
|
}
|
|
10897
|
-
var Ib =
|
|
10898
|
-
const
|
|
10897
|
+
var Ib = Dl, _b = zl, Mb = Bl, Lb = Fl, Ob = $l, Db = Ul;
|
|
10898
|
+
const zb = Mn(
|
|
10899
10899
|
"inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
10900
10900
|
{
|
|
10901
10901
|
variants: {
|
|
@@ -10937,7 +10937,7 @@ function jl({
|
|
|
10937
10937
|
"data-slot": "button",
|
|
10938
10938
|
"data-variant": t,
|
|
10939
10939
|
"data-size": n,
|
|
10940
|
-
className: X(
|
|
10940
|
+
className: X(zb({ variant: t, size: n, className: e })),
|
|
10941
10941
|
...r
|
|
10942
10942
|
}
|
|
10943
10943
|
);
|
|
@@ -12361,9 +12361,9 @@ function w0() {
|
|
|
12361
12361
|
a > 0 && (s = this.data.substr(r), i = parseInt(s, 10), o.put(i, a * 3 + 1));
|
|
12362
12362
|
}, Oo = t, Oo;
|
|
12363
12363
|
}
|
|
12364
|
-
var
|
|
12364
|
+
var Do, ai;
|
|
12365
12365
|
function x0() {
|
|
12366
|
-
if (ai) return
|
|
12366
|
+
if (ai) return Do;
|
|
12367
12367
|
ai = 1;
|
|
12368
12368
|
const e = Et(), t = [
|
|
12369
12369
|
"0",
|
|
@@ -12428,11 +12428,11 @@ function x0() {
|
|
|
12428
12428
|
i += t.indexOf(this.data[s + 1]), r.put(i, 11);
|
|
12429
12429
|
}
|
|
12430
12430
|
this.data.length % 2 && r.put(t.indexOf(this.data[s]), 6);
|
|
12431
|
-
},
|
|
12431
|
+
}, Do = n, Do;
|
|
12432
12432
|
}
|
|
12433
|
-
var
|
|
12433
|
+
var zo, ci;
|
|
12434
12434
|
function C0() {
|
|
12435
|
-
if (ci) return
|
|
12435
|
+
if (ci) return zo;
|
|
12436
12436
|
ci = 1;
|
|
12437
12437
|
const e = Et();
|
|
12438
12438
|
function t(n) {
|
|
@@ -12447,7 +12447,7 @@ function C0() {
|
|
|
12447
12447
|
}, t.prototype.write = function(n) {
|
|
12448
12448
|
for (let o = 0, r = this.data.length; o < r; o++)
|
|
12449
12449
|
n.put(this.data[o], 8);
|
|
12450
|
-
},
|
|
12450
|
+
}, zo = t, zo;
|
|
12451
12451
|
}
|
|
12452
12452
|
var Bo, li;
|
|
12453
12453
|
function S0() {
|
|
@@ -12756,23 +12756,23 @@ function N0() {
|
|
|
12756
12756
|
return C(R, E, k);
|
|
12757
12757
|
}
|
|
12758
12758
|
function C(E, k, S) {
|
|
12759
|
-
const R = e.getSymbolTotalCodewords(k), I = a.getTotalCodewordsCount(k, S), _ = R - I, T = a.getBlocksCount(k, S), P = R % T, O = T - P, H = Math.floor(R / T), L = Math.floor(_ / T), q = L + 1, U = H - L,
|
|
12759
|
+
const R = e.getSymbolTotalCodewords(k), I = a.getTotalCodewordsCount(k, S), _ = R - I, T = a.getBlocksCount(k, S), P = R % T, O = T - P, H = Math.floor(R / T), L = Math.floor(_ / T), q = L + 1, U = H - L, ne = new c(U);
|
|
12760
12760
|
let V = 0;
|
|
12761
|
-
const
|
|
12761
|
+
const D = new Array(T), F = new Array(T);
|
|
12762
12762
|
let A = 0;
|
|
12763
|
-
const
|
|
12763
|
+
const z = new Uint8Array(E.buffer);
|
|
12764
12764
|
for (let Z = 0; Z < T; Z++) {
|
|
12765
|
-
const
|
|
12766
|
-
|
|
12765
|
+
const te = Z < O ? L : q;
|
|
12766
|
+
D[Z] = z.slice(V, V + te), F[Z] = ne.encode(D[Z]), V += te, A = Math.max(A, te);
|
|
12767
12767
|
}
|
|
12768
12768
|
const M = new Uint8Array(R);
|
|
12769
|
-
let
|
|
12769
|
+
let W = 0, $, j;
|
|
12770
12770
|
for ($ = 0; $ < A; $++)
|
|
12771
|
-
for (
|
|
12772
|
-
$ <
|
|
12771
|
+
for (j = 0; j < T; j++)
|
|
12772
|
+
$ < D[j].length && (M[W++] = D[j][$]);
|
|
12773
12773
|
for ($ = 0; $ < U; $++)
|
|
12774
|
-
for (
|
|
12775
|
-
M[
|
|
12774
|
+
for (j = 0; j < T; j++)
|
|
12775
|
+
M[W++] = F[j][$];
|
|
12776
12776
|
return M;
|
|
12777
12777
|
}
|
|
12778
12778
|
function N(E, k, S, R) {
|
|
@@ -12996,7 +12996,7 @@ const _0 = {
|
|
|
12996
12996
|
default: "bg-white",
|
|
12997
12997
|
inverted: "bg-black"
|
|
12998
12998
|
};
|
|
12999
|
-
function
|
|
12999
|
+
function D0({
|
|
13000
13000
|
value: e,
|
|
13001
13001
|
color: t,
|
|
13002
13002
|
margin: n = 0,
|
|
@@ -13053,7 +13053,7 @@ function z0({
|
|
|
13053
13053
|
}
|
|
13054
13054
|
) : /* @__PURE__ */ f(Kl, { className: X(v, r === "inverted" && "bg-black") });
|
|
13055
13055
|
}
|
|
13056
|
-
const
|
|
13056
|
+
const z0 = {
|
|
13057
13057
|
horizontal: "aspect-video",
|
|
13058
13058
|
vertical: "aspect-portrait",
|
|
13059
13059
|
square: "aspect-square",
|
|
@@ -13073,7 +13073,7 @@ function B0({
|
|
|
13073
13073
|
allowTracking: u,
|
|
13074
13074
|
className: l
|
|
13075
13075
|
}) {
|
|
13076
|
-
const p = X(
|
|
13076
|
+
const p = X(z0[t], "w-full", l);
|
|
13077
13077
|
if (!o && !n)
|
|
13078
13078
|
return /* @__PURE__ */ f(
|
|
13079
13079
|
"div",
|
|
@@ -13170,7 +13170,7 @@ function U0({
|
|
|
13170
13170
|
...o,
|
|
13171
13171
|
children: [
|
|
13172
13172
|
n,
|
|
13173
|
-
/* @__PURE__ */ f(
|
|
13173
|
+
/* @__PURE__ */ f(Db, { className: "z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground" })
|
|
13174
13174
|
]
|
|
13175
13175
|
}
|
|
13176
13176
|
) });
|
|
@@ -13294,12 +13294,12 @@ const Ge = (e) => e == null ? void 0 : e === !0 || e === "true", Xl = {
|
|
|
13294
13294
|
clock: Uu,
|
|
13295
13295
|
"credit-card": Gu,
|
|
13296
13296
|
"external-link": Ku,
|
|
13297
|
-
"help-circle":
|
|
13297
|
+
"help-circle": Di,
|
|
13298
13298
|
info: _n,
|
|
13299
13299
|
"loader-2": hr,
|
|
13300
13300
|
mail: Go,
|
|
13301
13301
|
"map-pin": sf,
|
|
13302
|
-
"message-circle":
|
|
13302
|
+
"message-circle": zi,
|
|
13303
13303
|
"message-square": gr,
|
|
13304
13304
|
package: ff,
|
|
13305
13305
|
phone: mf,
|
|
@@ -13314,7 +13314,7 @@ const Ge = (e) => e == null ? void 0 : e === !0 || e === "true", Xl = {
|
|
|
13314
13314
|
"qr-code": bf,
|
|
13315
13315
|
image: ef,
|
|
13316
13316
|
"image-off": mr,
|
|
13317
|
-
"circle-play":
|
|
13317
|
+
"circle-play": Du,
|
|
13318
13318
|
video: Lf,
|
|
13319
13319
|
"tv-minimal-play": Af
|
|
13320
13320
|
}, vi = {
|
|
@@ -13448,7 +13448,7 @@ const Ge = (e) => e == null ? void 0 : e === !0 || e === "true", Xl = {
|
|
|
13448
13448
|
id: o
|
|
13449
13449
|
}
|
|
13450
13450
|
), fy = ({ className: e }) => /* @__PURE__ */ f(t0, { className: e }), py = ({ children: e, defaultValue: t, className: n }) => {
|
|
13451
|
-
const [o, r] =
|
|
13451
|
+
const [o, r] = B.useState(t);
|
|
13452
13452
|
return /* @__PURE__ */ f(n0, { value: o, onValueChange: r, className: n, children: e });
|
|
13453
13453
|
}, my = ({ children: e, className: t }) => /* @__PURE__ */ f(r0, { className: t, children: e }), hy = ({ children: e, value: t, className: n }) => /* @__PURE__ */ f(s0, { className: n, value: t, children: e }), gy = ({ children: e, value: t, className: n }) => /* @__PURE__ */ f(i0, { className: n, value: t, children: e }), vy = ({ children: e, className: t }) => /* @__PURE__ */ f(a0, { className: t, children: e }), by = ({ src: e, alt: t, className: n }) => {
|
|
13454
13454
|
var o;
|
|
@@ -13537,7 +13537,7 @@ const Ge = (e) => e == null ? void 0 : e === !0 || e === "true", Xl = {
|
|
|
13537
13537
|
const r = { sm: "size-3", md: "size-5", lg: "size-6" }[t] ?? "size-4", s = e, i = Xl[s], a = s === "sparkles" ? "sparkle-icon" : "";
|
|
13538
13538
|
return i ? /* @__PURE__ */ f(i, { className: X(r, a, n) }) : /* @__PURE__ */ f("span", { className: X("inline-block", r, a, n), "data-icon": s });
|
|
13539
13539
|
}, Oy = ({ value: e, size: t, variant: n, level: o, alt: r, className: s }) => /* @__PURE__ */ f(
|
|
13540
|
-
|
|
13540
|
+
D0,
|
|
13541
13541
|
{
|
|
13542
13542
|
value: e,
|
|
13543
13543
|
alt: r,
|
|
@@ -13546,7 +13546,7 @@ const Ge = (e) => e == null ? void 0 : e === !0 || e === "true", Xl = {
|
|
|
13546
13546
|
errorCorrectionLevel: o,
|
|
13547
13547
|
className: s
|
|
13548
13548
|
}
|
|
13549
|
-
),
|
|
13549
|
+
), Dy = ({
|
|
13550
13550
|
videoId: e,
|
|
13551
13551
|
autoPlay: t,
|
|
13552
13552
|
showControls: n,
|
|
@@ -13565,7 +13565,7 @@ const Ge = (e) => e == null ? void 0 : e === !0 || e === "true", Xl = {
|
|
|
13565
13565
|
shape: r,
|
|
13566
13566
|
className: i
|
|
13567
13567
|
}
|
|
13568
|
-
),
|
|
13568
|
+
), zy = ({ src: e, alt: t, loading: n, width: o, height: r, className: s }) => /* @__PURE__ */ f(
|
|
13569
13569
|
F0,
|
|
13570
13570
|
{
|
|
13571
13571
|
src: e,
|
|
@@ -13603,8 +13603,8 @@ const Ge = (e) => e == null ? void 0 : e === !0 || e === "true", Xl = {
|
|
|
13603
13603
|
"ui-avatar": by,
|
|
13604
13604
|
"ui-icon": Ly,
|
|
13605
13605
|
"ui-qr-code": Oy,
|
|
13606
|
-
"ui-video":
|
|
13607
|
-
"ui-image":
|
|
13606
|
+
"ui-video": Dy,
|
|
13607
|
+
"ui-image": zy,
|
|
13608
13608
|
"ui-link": Iy,
|
|
13609
13609
|
"ui-menu-item": My,
|
|
13610
13610
|
"ui-menu": _y,
|
|
@@ -13916,15 +13916,15 @@ const Ge = (e) => e == null ? void 0 : e === !0 || e === "true", Xl = {
|
|
|
13916
13916
|
const [c, d] = le([]), [u, l] = le(void 0), [p, h] = le([]), [v, g] = le(/* @__PURE__ */ new Map()), [b, y] = le(/* @__PURE__ */ new Map()), [w, x] = le(!1), [C, N] = le({ authenticated: !1, user: null }), [E, k] = le(void 0);
|
|
13917
13917
|
ae(() => {
|
|
13918
13918
|
window.stackable || (window.stackable = {
|
|
13919
|
-
emit: (
|
|
13920
|
-
const [A, ...
|
|
13919
|
+
emit: (D, F = {}) => {
|
|
13920
|
+
const [A, ...z] = D.split(":"), M = z.join(":");
|
|
13921
13921
|
window.dispatchEvent(new CustomEvent(`stackable:${A}`, {
|
|
13922
13922
|
detail: { eventName: M, data: F }
|
|
13923
13923
|
}));
|
|
13924
13924
|
}
|
|
13925
13925
|
});
|
|
13926
13926
|
}, []);
|
|
13927
|
-
const S = Re(null), R = Re(/* @__PURE__ */ new Set()), I = Ye(() => c.filter((
|
|
13927
|
+
const S = Re(null), R = Re(/* @__PURE__ */ new Set()), I = Ye(() => c.filter((D) => D.manifest.permissions.includes("extend:identity")).map((D) => D.id), [c]);
|
|
13928
13928
|
ae(() => {
|
|
13929
13929
|
(async () => {
|
|
13930
13930
|
const F = e;
|
|
@@ -13942,8 +13942,10 @@ const Ge = (e) => e == null ? void 0 : e === !0 || e === "true", Xl = {
|
|
|
13942
13942
|
console.warn(`[ExtensionSetup] Instance not found or failed to load: ${F}`), d([]), x(!0);
|
|
13943
13943
|
return;
|
|
13944
13944
|
}
|
|
13945
|
-
const
|
|
13946
|
-
|
|
13945
|
+
const z = await A.json(), M = Array.isArray(z);
|
|
13946
|
+
M && console.warn("[ExtensionSetup] Received legacy array response shape from /instances/{appId}/{instanceId}. Your local SDK build or the deployed API is out of sync — expected { extensions, extensionGroups }. Falling back to legacy render path (always-open stack, no groups).");
|
|
13947
|
+
const W = M ? z : z.extensions, $ = M ? void 0 : z.extensionGroups, j = Pi(typeof window < "u" ? window.location.search : ""), Z = await du(W, j), { tokens: te, errors: oe } = await Wy(Z, n, o, F, j);
|
|
13948
|
+
d(Z), l($), h(j), g(new Map(te)), y(oe);
|
|
13947
13949
|
} catch (A) {
|
|
13948
13950
|
console.error("Failed to load extensions:", A);
|
|
13949
13951
|
} finally {
|
|
@@ -13956,31 +13958,31 @@ const Ge = (e) => e == null ? void 0 : e === !0 || e === "true", Xl = {
|
|
|
13956
13958
|
const F = setInterval(async () => {
|
|
13957
13959
|
const A = [];
|
|
13958
13960
|
await Promise.all(
|
|
13959
|
-
c.filter((
|
|
13961
|
+
c.filter((z) => {
|
|
13960
13962
|
var M;
|
|
13961
|
-
return
|
|
13962
|
-
}).map(async (
|
|
13963
|
-
const M = p.find((
|
|
13963
|
+
return z.manifest.permissions.includes("data:fetch") || (((M = z.manifest.settingsSchema) == null ? void 0 : M.length) ?? 0) > 0;
|
|
13964
|
+
}).map(async (z) => {
|
|
13965
|
+
const M = p.find((te) => te.extensionId === z.id), W = M == null ? void 0 : M.token, $ = M == null ? void 0 : M.mode, j = Gt(n, "/proxy-token"), Z = await fetch(j, {
|
|
13964
13966
|
method: "POST",
|
|
13965
13967
|
headers: { "Content-Type": "application/json" },
|
|
13966
13968
|
body: JSON.stringify({
|
|
13967
13969
|
appId: o,
|
|
13968
13970
|
instanceId: e,
|
|
13969
|
-
extensionId:
|
|
13971
|
+
extensionId: z.id,
|
|
13970
13972
|
...$ && { mode: $ },
|
|
13971
|
-
...
|
|
13973
|
+
...W && { devSessionToken: W }
|
|
13972
13974
|
})
|
|
13973
13975
|
});
|
|
13974
13976
|
if (Z.ok) {
|
|
13975
|
-
const { token:
|
|
13976
|
-
A.push([
|
|
13977
|
+
const { token: te, encryptionKey: oe, settings: Q } = await Z.json();
|
|
13978
|
+
A.push([z.id, { token: te, encryptionKey: oe, settings: Q }]);
|
|
13977
13979
|
} else
|
|
13978
|
-
console.warn(`[embeddables] Proxy token refresh failed for extension ${
|
|
13980
|
+
console.warn(`[embeddables] Proxy token refresh failed for extension ${z.id} (${Z.status}) — using stale token`);
|
|
13979
13981
|
})
|
|
13980
|
-
), A.length > 0 && g((
|
|
13981
|
-
const M = new Map(
|
|
13982
|
-
for (const [
|
|
13983
|
-
M.set(
|
|
13982
|
+
), A.length > 0 && g((z) => {
|
|
13983
|
+
const M = new Map(z);
|
|
13984
|
+
for (const [W, $] of A)
|
|
13985
|
+
M.set(W, $);
|
|
13984
13986
|
return M;
|
|
13985
13987
|
});
|
|
13986
13988
|
}, 3300 * 1e3);
|
|
@@ -13988,127 +13990,127 @@ const Ge = (e) => e == null ? void 0 : e === !0 || e === "true", Xl = {
|
|
|
13988
13990
|
}, [c, p, n, o, e]), ae(() => {
|
|
13989
13991
|
if (v.size === 0)
|
|
13990
13992
|
return;
|
|
13991
|
-
const
|
|
13993
|
+
const D = (F) => {
|
|
13992
13994
|
const A = F.data;
|
|
13993
13995
|
if ((A == null ? void 0 : A.type) !== "extension-ready")
|
|
13994
13996
|
return;
|
|
13995
|
-
const
|
|
13997
|
+
const z = A.extensionId, M = c.find((j) => j.id === z);
|
|
13996
13998
|
if (!(M != null && M.bundleUrl))
|
|
13997
13999
|
return;
|
|
13998
|
-
const
|
|
13999
|
-
if (au(M.bundleUrl) && (
|
|
14000
|
+
const W = p.find((j) => j.extensionId === z);
|
|
14001
|
+
if (au(M.bundleUrl) && (W == null ? void 0 : W.mode) !== "staging")
|
|
14000
14002
|
return;
|
|
14001
|
-
const $ = v.get(
|
|
14002
|
-
$ && Fe(
|
|
14003
|
+
const $ = v.get(z);
|
|
14004
|
+
$ && Fe(z, { type: "extension-encryption-key", encryptionKey: $.encryptionKey });
|
|
14003
14005
|
};
|
|
14004
|
-
return window.addEventListener("message",
|
|
14006
|
+
return window.addEventListener("message", D), () => window.removeEventListener("message", D);
|
|
14005
14007
|
}, [c, p, v]);
|
|
14006
|
-
const _ = ve((
|
|
14008
|
+
const _ = ve((D, F) => {
|
|
14007
14009
|
const A = Ot();
|
|
14008
|
-
for (const [
|
|
14010
|
+
for (const [z, M] of A) {
|
|
14009
14011
|
if (!M.manifest.permissions.includes("events:identity"))
|
|
14010
14012
|
continue;
|
|
14011
|
-
const
|
|
14012
|
-
!
|
|
14013
|
+
const W = M.manifest.events ?? [];
|
|
14014
|
+
!W.includes("identity") && !W.includes(`identity:${D}`) || Fe(z, {
|
|
14013
14015
|
type: "extension-event",
|
|
14014
14016
|
eventType: "identity",
|
|
14015
|
-
payload: { eventName:
|
|
14017
|
+
payload: { eventName: D, data: { state: F, timestamp: oo((/* @__PURE__ */ new Date()).toISOString()) } }
|
|
14016
14018
|
});
|
|
14017
14019
|
}
|
|
14018
|
-
}, []), T = ve((
|
|
14020
|
+
}, []), T = ve((D) => {
|
|
14019
14021
|
const F = Ot();
|
|
14020
|
-
for (const [A,
|
|
14021
|
-
if (!
|
|
14022
|
+
for (const [A, z] of F) {
|
|
14023
|
+
if (!z.manifest.permissions.includes("events:messaging"))
|
|
14022
14024
|
continue;
|
|
14023
|
-
const M =
|
|
14024
|
-
!M.includes("messaging") && !M.includes("messaging:postback") && !M.includes(`messaging:postback:${
|
|
14025
|
+
const M = z.manifest.events ?? [];
|
|
14026
|
+
!M.includes("messaging") && !M.includes("messaging:postback") && !M.includes(`messaging:postback:${D.data.actionName}`) || Fe(A, {
|
|
14025
14027
|
type: "extension-event",
|
|
14026
14028
|
eventType: "messaging",
|
|
14027
|
-
payload:
|
|
14029
|
+
payload: D
|
|
14028
14030
|
});
|
|
14029
14031
|
}
|
|
14030
|
-
}, []), P = ve((
|
|
14032
|
+
}, []), P = ve((D) => {
|
|
14031
14033
|
const F = Ot();
|
|
14032
|
-
for (const [A,
|
|
14033
|
-
if (!
|
|
14034
|
+
for (const [A, z] of F) {
|
|
14035
|
+
if (!z.manifest.permissions.includes("events:activity"))
|
|
14034
14036
|
continue;
|
|
14035
|
-
const M =
|
|
14036
|
-
!M.includes("activity") && !M.includes(`activity:${
|
|
14037
|
+
const M = z.manifest.events ?? [];
|
|
14038
|
+
!M.includes("activity") && !M.includes(`activity:${D.eventName}`) || Fe(A, {
|
|
14037
14039
|
type: "extension-event",
|
|
14038
14040
|
eventType: "activity",
|
|
14039
|
-
payload:
|
|
14041
|
+
payload: D
|
|
14040
14042
|
});
|
|
14041
14043
|
}
|
|
14042
|
-
}, []), O = ve(async (
|
|
14044
|
+
}, []), O = ve(async (D) => {
|
|
14043
14045
|
const F = Ot(), A = [];
|
|
14044
|
-
for (const [M,
|
|
14045
|
-
if (!
|
|
14046
|
+
for (const [M, W] of F) {
|
|
14047
|
+
if (!W.manifest.permissions.includes("extend:identity"))
|
|
14046
14048
|
continue;
|
|
14047
|
-
const $ = new Promise((
|
|
14048
|
-
const Z = `enrich_${M}_${Date.now()}`,
|
|
14049
|
-
const Q =
|
|
14050
|
-
(Q == null ? void 0 : Q.type) !== "extend-identity-response" || Q.id !== Z || (window.removeEventListener("message",
|
|
14049
|
+
const $ = new Promise((j) => {
|
|
14050
|
+
const Z = `enrich_${M}_${Date.now()}`, te = (oe) => {
|
|
14051
|
+
const Q = oe.data;
|
|
14052
|
+
(Q == null ? void 0 : Q.type) !== "extend-identity-response" || Q.id !== Z || (window.removeEventListener("message", te), Q.additionalClaims ? j(Q.additionalClaims) : j({}));
|
|
14051
14053
|
};
|
|
14052
|
-
window.addEventListener("message",
|
|
14053
|
-
window.removeEventListener("message",
|
|
14054
|
+
window.addEventListener("message", te), setTimeout(() => {
|
|
14055
|
+
window.removeEventListener("message", te), j({});
|
|
14054
14056
|
}, 5e3), Fe(M, {
|
|
14055
14057
|
type: "extend-identity-request",
|
|
14056
14058
|
id: Z,
|
|
14057
|
-
claims:
|
|
14059
|
+
claims: D
|
|
14058
14060
|
});
|
|
14059
14061
|
});
|
|
14060
14062
|
A.push($);
|
|
14061
14063
|
}
|
|
14062
14064
|
if (A.length === 0)
|
|
14063
14065
|
return {};
|
|
14064
|
-
const
|
|
14065
|
-
return Object.assign({}, ...
|
|
14066
|
-
}, []), H = ve(async (
|
|
14066
|
+
const z = await Promise.all(A);
|
|
14067
|
+
return Object.assign({}, ...z);
|
|
14068
|
+
}, []), H = ve(async (D) => {
|
|
14067
14069
|
if (!n || !o || !e)
|
|
14068
14070
|
return console.warn("[embeddables] signIdentity skipped — missing:", { apiBase: !!n, appId: !!o, instanceId: !!e }), null;
|
|
14069
14071
|
const F = Gt(n, `/instances/${o}/${e}/identity`);
|
|
14070
|
-
console.log("[embeddables] Calling identity sign:", { url: F, claims: Object.keys(
|
|
14072
|
+
console.log("[embeddables] Calling identity sign:", { url: F, claims: Object.keys(D) });
|
|
14071
14073
|
try {
|
|
14072
14074
|
const A = await fetch(F, {
|
|
14073
14075
|
method: "POST",
|
|
14074
14076
|
headers: { "Content-Type": "application/json" },
|
|
14075
|
-
body: JSON.stringify(
|
|
14077
|
+
body: JSON.stringify(D)
|
|
14076
14078
|
});
|
|
14077
14079
|
if (!A.ok)
|
|
14078
14080
|
return console.warn(`[embeddables] Identity sign failed (${A.status})`), null;
|
|
14079
|
-
const { token:
|
|
14080
|
-
return
|
|
14081
|
+
const { token: z } = await A.json();
|
|
14082
|
+
return z;
|
|
14081
14083
|
} catch (A) {
|
|
14082
14084
|
return console.warn("[embeddables] Identity sign request failed:", A), null;
|
|
14083
14085
|
}
|
|
14084
|
-
}, [n, o, e]), L = ve((
|
|
14086
|
+
}, [n, o, e]), L = ve((D) => {
|
|
14085
14087
|
const F = window.zE;
|
|
14086
14088
|
F && F("messenger", "loginUser", async (A) => {
|
|
14087
|
-
A(
|
|
14089
|
+
A(D);
|
|
14088
14090
|
});
|
|
14089
14091
|
}, []), q = ve(() => {
|
|
14090
|
-
const
|
|
14091
|
-
|
|
14092
|
-
}, []), U = ve((
|
|
14093
|
-
console.log("[embeddables] Running sign lifecycle for user:",
|
|
14094
|
-
const { email: F, name: A } =
|
|
14092
|
+
const D = window.zE;
|
|
14093
|
+
D && D("messenger", "logoutUser");
|
|
14094
|
+
}, []), U = ve((D) => {
|
|
14095
|
+
console.log("[embeddables] Running sign lifecycle for user:", D.id);
|
|
14096
|
+
const { email: F, name: A } = D, z = { external_id: String(D.id) };
|
|
14095
14097
|
(async () => {
|
|
14096
|
-
const M = await O({ ...
|
|
14098
|
+
const M = await O({ ...z, email: F, name: A });
|
|
14097
14099
|
console.log("[embeddables] Enriched claims:", M);
|
|
14098
|
-
const
|
|
14099
|
-
...
|
|
14100
|
+
const W = await H({
|
|
14101
|
+
...z,
|
|
14100
14102
|
...M,
|
|
14101
14103
|
email: F,
|
|
14102
14104
|
name: A
|
|
14103
14105
|
});
|
|
14104
|
-
console.log("[embeddables] Sign result:", { hasToken: !!
|
|
14106
|
+
console.log("[embeddables] Sign result:", { hasToken: !!W }), W && L(W);
|
|
14105
14107
|
})();
|
|
14106
|
-
}, [O, H, L]),
|
|
14108
|
+
}, [O, H, L]), ne = ve((D) => {
|
|
14107
14109
|
if (I.length > 0 && R.current.size < I.length) {
|
|
14108
|
-
console.log(`[embeddables] Deferring sign lifecycle — waiting for extend:identity extensions: ${R.current.size}/${I.length} ready`), S.current =
|
|
14110
|
+
console.log(`[embeddables] Deferring sign lifecycle — waiting for extend:identity extensions: ${R.current.size}/${I.length} ready`), S.current = D;
|
|
14109
14111
|
return;
|
|
14110
14112
|
}
|
|
14111
|
-
console.log("[embeddables] No extend:identity extensions (or all ready) — signing immediately"), U(
|
|
14113
|
+
console.log("[embeddables] No extend:identity extensions (or all ready) — signing immediately"), U(D);
|
|
14112
14114
|
}, [I, U]);
|
|
14113
14115
|
ae(() => {
|
|
14114
14116
|
if (!w) {
|
|
@@ -14117,7 +14119,7 @@ const Ge = (e) => e == null ? void 0 : e === !0 || e === "true", Xl = {
|
|
|
14117
14119
|
}
|
|
14118
14120
|
if (s) {
|
|
14119
14121
|
console.log("[embeddables] Identity from props success");
|
|
14120
|
-
const
|
|
14122
|
+
const D = {
|
|
14121
14123
|
authenticated: !0,
|
|
14122
14124
|
user: {
|
|
14123
14125
|
id: String(s),
|
|
@@ -14127,76 +14129,76 @@ const Ge = (e) => e == null ? void 0 : e === !0 || e === "true", Xl = {
|
|
|
14127
14129
|
}
|
|
14128
14130
|
};
|
|
14129
14131
|
N((F) => {
|
|
14130
|
-
var A,
|
|
14131
|
-
return F.authenticated && ((A = F.user) == null ? void 0 : A.id) === ((
|
|
14132
|
+
var A, z;
|
|
14133
|
+
return F.authenticated && ((A = F.user) == null ? void 0 : A.id) === ((z = D.user) == null ? void 0 : z.id) ? F : (console.log("[embeddables] Identity state changed (props), starting sign lifecycle"), ne(D.user), _("login", D), D);
|
|
14132
14134
|
});
|
|
14133
14135
|
} else {
|
|
14134
14136
|
if (s === void 0)
|
|
14135
14137
|
return;
|
|
14136
|
-
N((
|
|
14138
|
+
N((D) => D.authenticated ? (console.log("[embeddables] Customer props cleared, logging out"), q(), _("logout", { authenticated: !1, user: null }), { authenticated: !1, user: null }) : D);
|
|
14137
14139
|
}
|
|
14138
|
-
}, [w, s, i, a, I,
|
|
14140
|
+
}, [w, s, i, a, I, ne, _, q]), ae(() => {
|
|
14139
14141
|
if (!w || s !== void 0)
|
|
14140
14142
|
return;
|
|
14141
|
-
const
|
|
14143
|
+
const D = () => {
|
|
14142
14144
|
const A = document.getElementById("stackable-identity");
|
|
14143
14145
|
if (A)
|
|
14144
14146
|
try {
|
|
14145
|
-
const
|
|
14147
|
+
const z = JSON.parse(A.textContent ?? "{}"), M = {
|
|
14146
14148
|
authenticated: !0,
|
|
14147
14149
|
user: {
|
|
14148
|
-
id: String(
|
|
14149
|
-
email:
|
|
14150
|
-
name:
|
|
14150
|
+
id: String(z.customerId ?? ""),
|
|
14151
|
+
email: z.customerEmail,
|
|
14152
|
+
name: z.customerName,
|
|
14151
14153
|
provider: "shopify"
|
|
14152
14154
|
}
|
|
14153
14155
|
};
|
|
14154
|
-
N((
|
|
14155
|
-
var $,
|
|
14156
|
-
return
|
|
14156
|
+
N((W) => {
|
|
14157
|
+
var $, j;
|
|
14158
|
+
return W.authenticated && (($ = W.user) == null ? void 0 : $.id) === ((j = M.user) == null ? void 0 : j.id) ? W : (console.log("[embeddables] Identity state changed (DOM), starting sign lifecycle"), ne(M.user), _("login", M), M);
|
|
14157
14159
|
});
|
|
14158
14160
|
} catch {
|
|
14159
14161
|
console.warn("[embeddables] Failed to parse #stackable-identity JSON");
|
|
14160
14162
|
}
|
|
14161
14163
|
else
|
|
14162
|
-
N((
|
|
14164
|
+
N((z) => z.authenticated ? (q(), _("logout", { authenticated: !1, user: null }), { authenticated: !1, user: null }) : z);
|
|
14163
14165
|
};
|
|
14164
|
-
|
|
14165
|
-
const F = new MutationObserver(
|
|
14166
|
+
D();
|
|
14167
|
+
const F = new MutationObserver(D);
|
|
14166
14168
|
return F.observe(document.head, { childList: !0, subtree: !0 }), F.observe(document.body, { childList: !0, subtree: !0 }), () => F.disconnect();
|
|
14167
|
-
}, [w, s,
|
|
14169
|
+
}, [w, s, ne, _, q]), ae(() => {
|
|
14168
14170
|
if (!C.authenticated)
|
|
14169
14171
|
return;
|
|
14170
|
-
const
|
|
14172
|
+
const D = (F) => {
|
|
14171
14173
|
const A = F.data;
|
|
14172
14174
|
if ((A == null ? void 0 : A.type) !== "extension-ready")
|
|
14173
14175
|
return;
|
|
14174
|
-
const
|
|
14176
|
+
const z = A.extensionId, M = c.find(($) => $.id === z);
|
|
14175
14177
|
if (!(M != null && M.manifest.permissions.includes("events:identity")))
|
|
14176
14178
|
return;
|
|
14177
|
-
const
|
|
14178
|
-
!
|
|
14179
|
+
const W = M.manifest.events ?? [];
|
|
14180
|
+
!W.includes("identity") && !W.includes("identity:login") || Fe(z, {
|
|
14179
14181
|
type: "extension-event",
|
|
14180
14182
|
eventType: "identity",
|
|
14181
14183
|
payload: { eventName: "login", data: { state: C, timestamp: oo((/* @__PURE__ */ new Date()).toISOString()) } }
|
|
14182
14184
|
});
|
|
14183
14185
|
};
|
|
14184
|
-
return window.addEventListener("message",
|
|
14186
|
+
return window.addEventListener("message", D), () => window.removeEventListener("message", D);
|
|
14185
14187
|
}, [C, c]), ae(() => {
|
|
14186
14188
|
if (I.length === 0)
|
|
14187
14189
|
return;
|
|
14188
|
-
const
|
|
14189
|
-
const
|
|
14190
|
-
if ((
|
|
14190
|
+
const D = (A) => {
|
|
14191
|
+
const z = A.data;
|
|
14192
|
+
if ((z == null ? void 0 : z.type) !== "extension-ready")
|
|
14191
14193
|
return;
|
|
14192
|
-
const M =
|
|
14194
|
+
const M = z.extensionId;
|
|
14193
14195
|
if (I.includes(M) && (R.current.add(M), console.log(`[embeddables] extend:identity extension ready: ${M} (${R.current.size}/${I.length})`), R.current.size >= I.length && S.current)) {
|
|
14194
14196
|
console.log("[embeddables] All extend:identity extensions ready, running deferred sign lifecycle");
|
|
14195
|
-
const
|
|
14196
|
-
S.current = null, U(
|
|
14197
|
+
const W = S.current;
|
|
14198
|
+
S.current = null, U(W);
|
|
14197
14199
|
}
|
|
14198
14200
|
};
|
|
14199
|
-
window.addEventListener("message",
|
|
14201
|
+
window.addEventListener("message", D);
|
|
14200
14202
|
const F = setTimeout(() => {
|
|
14201
14203
|
if (S.current) {
|
|
14202
14204
|
console.warn(`[embeddables] extend:identity timeout (5s) — signing with ${R.current.size}/${I.length} extensions ready`);
|
|
@@ -14205,10 +14207,10 @@ const Ge = (e) => e == null ? void 0 : e === !0 || e === "true", Xl = {
|
|
|
14205
14207
|
}
|
|
14206
14208
|
}, 5e3);
|
|
14207
14209
|
return () => {
|
|
14208
|
-
window.removeEventListener("message",
|
|
14210
|
+
window.removeEventListener("message", D), clearTimeout(F);
|
|
14209
14211
|
};
|
|
14210
14212
|
}, [I, U]), ae(() => {
|
|
14211
|
-
const
|
|
14213
|
+
const D = (F) => {
|
|
14212
14214
|
const { detail: A } = F;
|
|
14213
14215
|
A != null && A.eventName && (A.eventName === "postback" ? T({
|
|
14214
14216
|
eventName: "postback",
|
|
@@ -14217,42 +14219,42 @@ const Ge = (e) => e == null ? void 0 : e === !0 || e === "true", Xl = {
|
|
|
14217
14219
|
conversationId: A.data.conversationId ?? "",
|
|
14218
14220
|
timestamp: oo((/* @__PURE__ */ new Date()).toISOString())
|
|
14219
14221
|
}
|
|
14220
|
-
}) : A.eventName === "context" && k((
|
|
14222
|
+
}) : A.eventName === "context" && k((z) => ({ ...z, ...A.data })));
|
|
14221
14223
|
};
|
|
14222
|
-
return window.addEventListener("stackable:messaging",
|
|
14224
|
+
return window.addEventListener("stackable:messaging", D), () => window.removeEventListener("stackable:messaging", D);
|
|
14223
14225
|
}, [T]), ae(() => {
|
|
14224
|
-
const
|
|
14226
|
+
const D = (F) => {
|
|
14225
14227
|
const { detail: A } = F;
|
|
14226
14228
|
A != null && A.eventName && P({
|
|
14227
14229
|
eventName: A.eventName,
|
|
14228
14230
|
data: A.data ?? {}
|
|
14229
14231
|
});
|
|
14230
14232
|
};
|
|
14231
|
-
return window.addEventListener("stackable:activity",
|
|
14233
|
+
return window.addEventListener("stackable:activity", D), () => window.removeEventListener("stackable:activity", D);
|
|
14232
14234
|
}, [P]), ae(() => {
|
|
14233
14235
|
var A;
|
|
14234
14236
|
if (!w)
|
|
14235
14237
|
return;
|
|
14236
|
-
const
|
|
14238
|
+
const D = {
|
|
14237
14239
|
customerId: s ?? "",
|
|
14238
14240
|
customerEmail: i ?? "",
|
|
14239
14241
|
customerName: a ?? "",
|
|
14240
14242
|
messaging: E,
|
|
14241
14243
|
identity: C
|
|
14242
14244
|
}, F = Ot();
|
|
14243
|
-
for (const [
|
|
14245
|
+
for (const [z, M] of F) {
|
|
14244
14246
|
if (!M.manifest.permissions.includes("context:read"))
|
|
14245
14247
|
continue;
|
|
14246
|
-
const
|
|
14247
|
-
Fe(
|
|
14248
|
+
const W = (A = v.get(z)) == null ? void 0 : A.settings, $ = W ? { ...D, settings: W } : D;
|
|
14249
|
+
Fe(z, { type: "context-push", context: $ });
|
|
14248
14250
|
}
|
|
14249
14251
|
}, [w, s, i, a, C, E, v]);
|
|
14250
14252
|
const V = Ye(
|
|
14251
14253
|
() => ({
|
|
14252
14254
|
// TODO(data.query-deprecation): Remove when data.query is deprecated — host-native ecommerce route replaced by extension + data.fetch
|
|
14253
|
-
"data.query": async (
|
|
14254
|
-
"data.fetch": async (
|
|
14255
|
-
const A = v.get(
|
|
14255
|
+
"data.query": async (D) => Ql(D, t),
|
|
14256
|
+
"data.fetch": async (D, F) => {
|
|
14257
|
+
const A = v.get(D);
|
|
14256
14258
|
if (!A)
|
|
14257
14259
|
return {
|
|
14258
14260
|
status: 0,
|
|
@@ -14261,28 +14263,28 @@ const Ge = (e) => e == null ? void 0 : e === !0 || e === "true", Xl = {
|
|
|
14261
14263
|
error: "data.fetch: proxy token unavailable — ensure the extension has data:fetch permission and allowedDomains configured"
|
|
14262
14264
|
}
|
|
14263
14265
|
};
|
|
14264
|
-
const
|
|
14266
|
+
const z = qy(F) ? F : {
|
|
14265
14267
|
url: F.url,
|
|
14266
14268
|
method: F.method ?? "GET",
|
|
14267
14269
|
headers: F.headers ?? {},
|
|
14268
14270
|
body: F.body ?? null
|
|
14269
|
-
}, M = Gt(n, "/proxy"),
|
|
14271
|
+
}, M = Gt(n, "/proxy"), W = await fetch(M, {
|
|
14270
14272
|
method: "POST",
|
|
14271
14273
|
headers: {
|
|
14272
14274
|
"Content-Type": "application/json",
|
|
14273
|
-
"X-Extension-Id":
|
|
14275
|
+
"X-Extension-Id": D,
|
|
14274
14276
|
"X-Application-Id": o ?? "",
|
|
14275
14277
|
Authorization: `Bearer ${A.token}`
|
|
14276
14278
|
},
|
|
14277
|
-
body: JSON.stringify(
|
|
14278
|
-
}), $ = await
|
|
14279
|
+
body: JSON.stringify(z)
|
|
14280
|
+
}), $ = await W.json();
|
|
14279
14281
|
return {
|
|
14280
|
-
status: $.status ??
|
|
14281
|
-
ok: $.ok ??
|
|
14282
|
+
status: $.status ?? W.status,
|
|
14283
|
+
ok: $.ok ?? W.ok,
|
|
14282
14284
|
data: $.data
|
|
14283
14285
|
};
|
|
14284
14286
|
},
|
|
14285
|
-
"actions.toast": async (
|
|
14287
|
+
"actions.toast": async (D, F) => {
|
|
14286
14288
|
const A = {
|
|
14287
14289
|
...F.description && { description: F.description },
|
|
14288
14290
|
...F.duration && { duration: F.duration },
|
|
@@ -14291,10 +14293,10 @@ const Ge = (e) => e == null ? void 0 : e === !0 || e === "true", Xl = {
|
|
|
14291
14293
|
...F.closeButton != null && { closeButton: F.closeButton }
|
|
14292
14294
|
};
|
|
14293
14295
|
if (F.fetch) {
|
|
14294
|
-
const
|
|
14295
|
-
V["data.fetch"](
|
|
14296
|
-
|
|
14297
|
-
]).then(([
|
|
14296
|
+
const z = (W) => new Promise(($) => setTimeout($, W)), M = Promise.all([
|
|
14297
|
+
V["data.fetch"](D, F.fetch),
|
|
14298
|
+
z(jy)
|
|
14299
|
+
]).then(([W]) => W);
|
|
14298
14300
|
At.promise(M, {
|
|
14299
14301
|
loading: F.loading ?? F.message,
|
|
14300
14302
|
success: F.success ?? F.message,
|
|
@@ -14324,8 +14326,8 @@ const Ge = (e) => e == null ? void 0 : e === !0 || e === "true", Xl = {
|
|
|
14324
14326
|
At(F.message, A);
|
|
14325
14327
|
}
|
|
14326
14328
|
},
|
|
14327
|
-
"actions.invoke": async (
|
|
14328
|
-
"context.read": async (
|
|
14329
|
+
"actions.invoke": async (D) => (window.dispatchEvent(new CustomEvent(`stackable:action:${D.action}`, { detail: D })), { success: !0 }),
|
|
14330
|
+
"context.read": async (D) => {
|
|
14329
14331
|
var F;
|
|
14330
14332
|
return {
|
|
14331
14333
|
customerId: s ?? "",
|
|
@@ -14335,7 +14337,7 @@ const Ge = (e) => e == null ? void 0 : e === !0 || e === "true", Xl = {
|
|
|
14335
14337
|
// inside identity object (breaking change for extensions reading top-level fields)
|
|
14336
14338
|
identity: C,
|
|
14337
14339
|
messaging: E,
|
|
14338
|
-
...((F = v.get(
|
|
14340
|
+
...((F = v.get(D)) == null ? void 0 : F.settings) && { settings: v.get(D).settings }
|
|
14339
14341
|
};
|
|
14340
14342
|
}
|
|
14341
14343
|
}),
|
|
@@ -14409,13 +14411,13 @@ const Zy = ({ ...e }) => {
|
|
|
14409
14411
|
/* @__PURE__ */ f(Zy, { position: "bottom-center", theme: Qy[t] ?? "system", toastOptions: { descriptionClassName: "!text-muted-foreground" } })
|
|
14410
14412
|
] }), ew = {
|
|
14411
14413
|
airplay: vu,
|
|
14412
|
-
"message-circle":
|
|
14414
|
+
"message-circle": zi,
|
|
14413
14415
|
"message-square": gr,
|
|
14414
14416
|
headphones: Zu,
|
|
14415
|
-
"help-circle":
|
|
14417
|
+
"help-circle": Di,
|
|
14416
14418
|
bot: Su,
|
|
14417
14419
|
sparkles: Bi,
|
|
14418
|
-
zap:
|
|
14420
|
+
zap: Df
|
|
14419
14421
|
}, tw = ({ className: e }) => /* @__PURE__ */ f("svg", { className: X(e, "scale-125"), viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ f("path", { d: "M10,18 L6,22 L6,18 L10,18 Z M17,6 C19.7614237,6 22,8.23857625 22,11 C22,13.7614237 19.7614237,16 17,16 L7,16 C4.23857625,16 2,13.7614237 2,11 C2,8.23857625 4.23857625,6 7,6 Z", transform: "translate(12, 14) scale(-1, 1) translate(-12, -14)" }) }), nw = ({ className: e }) => /* @__PURE__ */ K("svg", { className: e, viewBox: "0 0 190 190", fill: "currentColor", "aria-hidden": "true", children: [
|
|
14420
14422
|
/* @__PURE__ */ K("g", { id: "sl-half-right", children: [
|
|
14421
14423
|
/* @__PURE__ */ f("g", { transform: "translate(-160.365,27.97)", children: /* @__PURE__ */ f("path", { d: "M344.73,67.03C344.73,30.01 314.72,0 277.7,0C240.68,0 210.67,30.01 210.67,67.03L255.36,67.03C255.36,54.69 265.36,44.69 277.7,44.69C290.04,44.69 300.05,54.69 300.05,67.03L344.73,67.03Z" }) }),
|
|
@@ -14707,8 +14709,8 @@ const Zy = ({ ...e }) => {
|
|
|
14707
14709
|
const T = document.querySelector('script[src*="zdassets.com/ekr/snippet"]'), P = (q = (L = T == null ? void 0 : T.src) == null ? void 0 : L.match(/key=([a-f0-9-]+)/)) == null ? void 0 : q[1];
|
|
14708
14710
|
if (P && fetch(`https://ekr.zdassets.com/compose/${P}`).then((U) => U.text()).then((U) => {
|
|
14709
14711
|
var V;
|
|
14710
|
-
const
|
|
14711
|
-
|
|
14712
|
+
const ne = (V = U.match(/appId['"]?\s*:\s*['"]([a-f0-9]+)['"]/)) == null ? void 0 : V[1];
|
|
14713
|
+
ne && Uo({ appId: ne });
|
|
14712
14714
|
}).catch(() => {
|
|
14713
14715
|
}), N()) {
|
|
14714
14716
|
x("ready");
|