@stackable-labs/embeddables 1.41.0 → 1.43.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 +498 -489
- package/dist/stackable-widget.external.js +8 -8
- package/dist/stackable-widget.js +22 -22
- package/package.json +1 -1
package/dist/react.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as H, jsx as p, Fragment as Fe } from "react/jsx-runtime";
|
|
2
2
|
import * as f from "react";
|
|
3
|
-
import _, { createContext as Wc, useState as ie, useRef as lt, useEffect as
|
|
3
|
+
import _, { createContext as Wc, useState as ie, useRef as lt, useEffect as ce, useContext as Uc, createElement as dn, useMemo as co, forwardRef as cs, useLayoutEffect as jc, useCallback as Le } from "react";
|
|
4
4
|
import * as wn from "react-dom";
|
|
5
5
|
import ls from "react-dom";
|
|
6
6
|
const Gc = () => {
|
|
7
7
|
try {
|
|
8
|
-
return "
|
|
8
|
+
return "d10a2b2f-e909-434d-b009-d5e98b304c26";
|
|
9
9
|
} catch {
|
|
10
10
|
return "dev";
|
|
11
11
|
}
|
|
@@ -437,7 +437,7 @@ const Qc = (e) => {
|
|
|
437
437
|
children: o
|
|
438
438
|
}) => {
|
|
439
439
|
const [r, s] = ie(!1), a = lt(null), i = lt(null);
|
|
440
|
-
return
|
|
440
|
+
return ce(() => {
|
|
441
441
|
if (!a.current) return;
|
|
442
442
|
let c = !1;
|
|
443
443
|
return (async () => {
|
|
@@ -534,30 +534,30 @@ const Qc = (e) => {
|
|
|
534
534
|
() => ol(i, { surfaceId: e, logPrefix: "[ExtensionSlot]" }),
|
|
535
535
|
[e, i]
|
|
536
536
|
);
|
|
537
|
-
if (
|
|
537
|
+
if (ce(() => {
|
|
538
538
|
const v = m.map((w) => w.id).join(",");
|
|
539
539
|
if (l.current !== v && (l.current = v, u({})), !c || m.length === 0) return;
|
|
540
540
|
const y = (w) => {
|
|
541
541
|
const x = w.data;
|
|
542
|
-
if (!(!x || typeof x != "object" || !m.some((
|
|
543
|
-
const E = Ct(
|
|
542
|
+
if (!(!x || typeof x != "object" || !m.some((N) => {
|
|
543
|
+
const E = Ct(N.id);
|
|
544
544
|
return E && w.source === E.iframe.contentWindow;
|
|
545
545
|
}))) {
|
|
546
546
|
if (x.type === "surface-update" && x.surfaceId === e) {
|
|
547
|
-
const
|
|
547
|
+
const N = m.find((k) => {
|
|
548
548
|
const C = Ct(k.id);
|
|
549
549
|
return C && w.source === C.iframe.contentWindow;
|
|
550
550
|
});
|
|
551
|
-
if (!
|
|
551
|
+
if (!N) return;
|
|
552
552
|
const E = g(x.tree, w.source ?? null);
|
|
553
553
|
u((k) => ({
|
|
554
554
|
...k,
|
|
555
|
-
[
|
|
555
|
+
[N.id]: E
|
|
556
556
|
}));
|
|
557
557
|
}
|
|
558
|
-
x.type === "surface-ready" && x.surfaceId === e && t && m.forEach((
|
|
558
|
+
x.type === "surface-ready" && x.surfaceId === e && t && m.forEach((N) => {
|
|
559
559
|
var k;
|
|
560
|
-
const E = Ct(
|
|
560
|
+
const E = Ct(N.id);
|
|
561
561
|
(k = E == null ? void 0 : E.iframe.contentWindow) == null || k.postMessage(
|
|
562
562
|
{ type: "context-update", surfaceId: e, context: t },
|
|
563
563
|
"*"
|
|
@@ -588,14 +588,14 @@ const Qc = (e) => {
|
|
|
588
588
|
}) : /* @__PURE__ */ p(_.Fragment, { children: v.children }, v.id), S = /* @__PURE__ */ p(_.Fragment, { children: x }, `extension:${v.id}`);
|
|
589
589
|
if (y === 0 || !o)
|
|
590
590
|
return [S];
|
|
591
|
-
const
|
|
591
|
+
const N = w[y - 1], E = typeof o == "function" ? o({
|
|
592
592
|
index: y,
|
|
593
593
|
total: w.length,
|
|
594
|
-
previousExtensionId:
|
|
594
|
+
previousExtensionId: N.id,
|
|
595
595
|
extensionId: v.id
|
|
596
596
|
}) : o;
|
|
597
597
|
return [
|
|
598
|
-
/* @__PURE__ */ p(_.Fragment, { children: E }, `separator:${
|
|
598
|
+
/* @__PURE__ */ p(_.Fragment, { children: E }, `separator:${N.id}:${v.id}:${y}`),
|
|
599
599
|
S
|
|
600
600
|
];
|
|
601
601
|
}) : r;
|
|
@@ -889,7 +889,7 @@ function Pl(e) {
|
|
|
889
889
|
}
|
|
890
890
|
const Al = (e) => {
|
|
891
891
|
var t, n, o, r, s, a, i, c, d;
|
|
892
|
-
const { invert: u, toast: l, unstyled: m, interacting: g, setHeights: b, visibleToasts: h, heights: v, index: y, toasts: w, expanded: x, removeToast: S, defaultRichColors:
|
|
892
|
+
const { invert: u, toast: l, unstyled: m, interacting: g, setHeights: b, visibleToasts: h, heights: v, index: y, toasts: w, expanded: x, removeToast: S, defaultRichColors: N, closeButton: E, style: k, cancelButtonStyle: C, actionButtonStyle: I, className: B = "", descriptionClassName: A = "", duration: T, position: P, gap: M, expandByDefault: L, classNames: R, icons: D, closeButtonAriaLabel: z = "Close toast" } = e, [q, O] = _.useState(null), [ae, de] = _.useState(null), [K, oe] = _.useState(!1), [Y, te] = _.useState(!1), [V, W] = _.useState(!1), [X, re] = _.useState(!1), [ee, J] = _.useState(!1), [ue, fe] = _.useState(0), [rt, Ye] = _.useState(0), Ne = _.useRef(l.duration || T || mr), Gt = _.useRef(null), be = _.useRef(null), Mc = y === 0, Oc = y + 1 <= h, xe = l.type, gt = l.dismissible !== !1, Lc = l.className || "", Dc = l.descriptionClassName || "", Yt = _.useMemo(() => v.findIndex((Z) => Z.toastId === l.id) || 0, [
|
|
893
893
|
v,
|
|
894
894
|
l.id
|
|
895
895
|
]), zc = _.useMemo(() => {
|
|
@@ -905,7 +905,7 @@ const Al = (e) => {
|
|
|
905
905
|
v,
|
|
906
906
|
Yt
|
|
907
907
|
]), lr = hl(), Bc = l.invert || u, jn = xe === "loading";
|
|
908
|
-
vt.current = _.useMemo(() => Yt *
|
|
908
|
+
vt.current = _.useMemo(() => Yt * M + cr, [
|
|
909
909
|
Yt,
|
|
910
910
|
cr
|
|
911
911
|
]), _.useEffect(() => {
|
|
@@ -931,7 +931,7 @@ const Al = (e) => {
|
|
|
931
931
|
b,
|
|
932
932
|
l.id
|
|
933
933
|
]), _.useLayoutEffect(() => {
|
|
934
|
-
if (!
|
|
934
|
+
if (!K) return;
|
|
935
935
|
const Z = be.current, me = Z.style.height;
|
|
936
936
|
Z.style.height = "auto";
|
|
937
937
|
const ge = Z.getBoundingClientRect().height;
|
|
@@ -947,7 +947,7 @@ const Al = (e) => {
|
|
|
947
947
|
...Se
|
|
948
948
|
]);
|
|
949
949
|
}, [
|
|
950
|
-
|
|
950
|
+
K,
|
|
951
951
|
l.title,
|
|
952
952
|
l.description,
|
|
953
953
|
b,
|
|
@@ -998,12 +998,12 @@ const Al = (e) => {
|
|
|
998
998
|
if (D != null && D.loading) {
|
|
999
999
|
var me;
|
|
1000
1000
|
return /* @__PURE__ */ _.createElement("div", {
|
|
1001
|
-
className: Oe(
|
|
1001
|
+
className: Oe(R == null ? void 0 : R.loader, l == null || (me = l.classNames) == null ? void 0 : me.loader, "sonner-loader"),
|
|
1002
1002
|
"data-visible": xe === "loading"
|
|
1003
1003
|
}, D.loading);
|
|
1004
1004
|
}
|
|
1005
1005
|
return /* @__PURE__ */ _.createElement(ll, {
|
|
1006
|
-
className: Oe(
|
|
1006
|
+
className: Oe(R == null ? void 0 : R.loader, l == null || (Z = l.classNames) == null ? void 0 : Z.loader),
|
|
1007
1007
|
visible: xe === "loading"
|
|
1008
1008
|
});
|
|
1009
1009
|
}
|
|
@@ -1012,14 +1012,14 @@ const Al = (e) => {
|
|
|
1012
1012
|
return /* @__PURE__ */ _.createElement("li", {
|
|
1013
1013
|
tabIndex: 0,
|
|
1014
1014
|
ref: be,
|
|
1015
|
-
className: Oe(B, Lc,
|
|
1015
|
+
className: Oe(B, Lc, R == null ? void 0 : R.toast, l == null || (t = l.classNames) == null ? void 0 : t.toast, R == null ? void 0 : R.default, R == null ? void 0 : R[xe], l == null || (n = l.classNames) == null ? void 0 : n[xe]),
|
|
1016
1016
|
"data-sonner-toast": "",
|
|
1017
|
-
"data-rich-colors": (dr = l.richColors) != null ? dr :
|
|
1017
|
+
"data-rich-colors": (dr = l.richColors) != null ? dr : N,
|
|
1018
1018
|
"data-styled": !(l.jsx || l.unstyled || m),
|
|
1019
|
-
"data-mounted":
|
|
1019
|
+
"data-mounted": K,
|
|
1020
1020
|
"data-promise": !!l.promise,
|
|
1021
1021
|
"data-swiped": ee,
|
|
1022
|
-
"data-removed":
|
|
1022
|
+
"data-removed": Y,
|
|
1023
1023
|
"data-visible": Oc,
|
|
1024
1024
|
"data-y-position": $c,
|
|
1025
1025
|
"data-x-position": Fc,
|
|
@@ -1031,19 +1031,19 @@ const Al = (e) => {
|
|
|
1031
1031
|
"data-invert": Bc,
|
|
1032
1032
|
"data-swipe-out": X,
|
|
1033
1033
|
"data-swipe-direction": ae,
|
|
1034
|
-
"data-expanded": !!(x || L &&
|
|
1034
|
+
"data-expanded": !!(x || L && K),
|
|
1035
1035
|
"data-testid": l.testId,
|
|
1036
1036
|
style: {
|
|
1037
1037
|
"--index": y,
|
|
1038
1038
|
"--toasts-before": y,
|
|
1039
1039
|
"--z-index": w.length - y,
|
|
1040
|
-
"--offset": `${
|
|
1040
|
+
"--offset": `${Y ? ue : vt.current}px`,
|
|
1041
1041
|
"--initial-height": L ? "auto" : `${rt}px`,
|
|
1042
1042
|
...k,
|
|
1043
1043
|
...l.style
|
|
1044
1044
|
},
|
|
1045
1045
|
onDragEnd: () => {
|
|
1046
|
-
W(!1),
|
|
1046
|
+
W(!1), O(null), bt.current = null;
|
|
1047
1047
|
},
|
|
1048
1048
|
onPointerDown: (Z) => {
|
|
1049
1049
|
Z.button !== 2 && (jn || !gt || (Gt.current = /* @__PURE__ */ new Date(), fe(vt.current), Z.target.setPointerCapture(Z.pointerId), Z.target.tagName !== "BUTTON" && (W(!0), bt.current = {
|
|
@@ -1055,15 +1055,15 @@ const Al = (e) => {
|
|
|
1055
1055
|
var Z, me, ge;
|
|
1056
1056
|
if (X || !gt) return;
|
|
1057
1057
|
bt.current = null;
|
|
1058
|
-
const Se = Number(((Z = be.current) == null ? void 0 : Z.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), qt = Number(((me = be.current) == null ? void 0 : me.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), he = (/* @__PURE__ */ new Date()).getTime() - ((ge = Gt.current) == null ? void 0 : ge.getTime()), Ee =
|
|
1058
|
+
const Se = Number(((Z = be.current) == null ? void 0 : Z.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), qt = Number(((me = be.current) == null ? void 0 : me.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), he = (/* @__PURE__ */ new Date()).getTime() - ((ge = Gt.current) == null ? void 0 : ge.getTime()), Ee = q === "x" ? Se : qt, Kt = Math.abs(Ee) / he;
|
|
1059
1059
|
if (Math.abs(Ee) >= Nl || Kt > 0.11) {
|
|
1060
|
-
fe(vt.current), l.onDismiss == null || l.onDismiss.call(l, l),
|
|
1060
|
+
fe(vt.current), l.onDismiss == null || l.onDismiss.call(l, l), de(q === "x" ? Se > 0 ? "right" : "left" : qt > 0 ? "down" : "up"), qe(), re(!0);
|
|
1061
1061
|
return;
|
|
1062
1062
|
} else {
|
|
1063
1063
|
var Te, Pe;
|
|
1064
1064
|
(Te = be.current) == null || Te.style.setProperty("--swipe-amount-x", "0px"), (Pe = be.current) == null || Pe.style.setProperty("--swipe-amount-y", "0px");
|
|
1065
1065
|
}
|
|
1066
|
-
J(!1), W(!1),
|
|
1066
|
+
J(!1), W(!1), O(null);
|
|
1067
1067
|
},
|
|
1068
1068
|
onPointerMove: (Z) => {
|
|
1069
1069
|
var me, ge, Se;
|
|
@@ -1071,13 +1071,13 @@ const Al = (e) => {
|
|
|
1071
1071
|
const he = Z.clientY - bt.current.y, Ee = Z.clientX - bt.current.x;
|
|
1072
1072
|
var Kt;
|
|
1073
1073
|
const Te = (Kt = e.swipeDirections) != null ? Kt : Pl(P);
|
|
1074
|
-
!
|
|
1074
|
+
!q && (Math.abs(Ee) > 1 || Math.abs(he) > 1) && O(Math.abs(Ee) > Math.abs(he) ? "x" : "y");
|
|
1075
1075
|
let Pe = {
|
|
1076
1076
|
x: 0,
|
|
1077
1077
|
y: 0
|
|
1078
1078
|
};
|
|
1079
1079
|
const fr = (st) => 1 / (1.5 + Math.abs(st) / 20);
|
|
1080
|
-
if (
|
|
1080
|
+
if (q === "y") {
|
|
1081
1081
|
if (Te.includes("top") || Te.includes("bottom"))
|
|
1082
1082
|
if (Te.includes("top") && he < 0 || Te.includes("bottom") && he > 0)
|
|
1083
1083
|
Pe.y = he;
|
|
@@ -1085,7 +1085,7 @@ const Al = (e) => {
|
|
|
1085
1085
|
const st = he * fr(he);
|
|
1086
1086
|
Pe.y = Math.abs(st) < Math.abs(he) ? st : he;
|
|
1087
1087
|
}
|
|
1088
|
-
} else if (
|
|
1088
|
+
} else if (q === "x" && (Te.includes("left") || Te.includes("right")))
|
|
1089
1089
|
if (Te.includes("left") && Ee < 0 || Te.includes("right") && Ee > 0)
|
|
1090
1090
|
Pe.x = Ee;
|
|
1091
1091
|
else {
|
|
@@ -1102,19 +1102,19 @@ const Al = (e) => {
|
|
|
1102
1102
|
} : () => {
|
|
1103
1103
|
qe(), l.onDismiss == null || l.onDismiss.call(l, l);
|
|
1104
1104
|
},
|
|
1105
|
-
className: Oe(
|
|
1105
|
+
className: Oe(R == null ? void 0 : R.closeButton, l == null || (o = l.classNames) == null ? void 0 : o.closeButton)
|
|
1106
1106
|
}, (ur = D == null ? void 0 : D.close) != null ? ur : ml) : null, (xe || l.icon || l.promise) && l.icon !== null && ((D == null ? void 0 : D[xe]) !== null || l.icon) ? /* @__PURE__ */ _.createElement("div", {
|
|
1107
1107
|
"data-icon": "",
|
|
1108
|
-
className: Oe(
|
|
1108
|
+
className: Oe(R == null ? void 0 : R.icon, l == null || (r = l.classNames) == null ? void 0 : r.icon)
|
|
1109
1109
|
}, l.promise || l.type === "loading" && !l.icon ? l.icon || Hc() : null, l.type !== "loading" ? Vc : null) : null, /* @__PURE__ */ _.createElement("div", {
|
|
1110
1110
|
"data-content": "",
|
|
1111
|
-
className: Oe(
|
|
1111
|
+
className: Oe(R == null ? void 0 : R.content, l == null || (s = l.classNames) == null ? void 0 : s.content)
|
|
1112
1112
|
}, /* @__PURE__ */ _.createElement("div", {
|
|
1113
1113
|
"data-title": "",
|
|
1114
|
-
className: Oe(
|
|
1114
|
+
className: Oe(R == null ? void 0 : R.title, l == null || (a = l.classNames) == null ? void 0 : a.title)
|
|
1115
1115
|
}, l.jsx ? l.jsx : typeof l.title == "function" ? l.title() : l.title), l.description ? /* @__PURE__ */ _.createElement("div", {
|
|
1116
1116
|
"data-description": "",
|
|
1117
|
-
className: Oe(A, Dc,
|
|
1117
|
+
className: Oe(A, Dc, R == null ? void 0 : R.description, l == null || (i = l.classNames) == null ? void 0 : i.description)
|
|
1118
1118
|
}, typeof l.description == "function" ? l.description() : l.description) : null), /* @__PURE__ */ _.isValidElement(l.cancel) ? l.cancel : l.cancel && Zt(l.cancel) ? /* @__PURE__ */ _.createElement("button", {
|
|
1119
1119
|
"data-button": !0,
|
|
1120
1120
|
"data-cancel": !0,
|
|
@@ -1122,15 +1122,15 @@ const Al = (e) => {
|
|
|
1122
1122
|
onClick: (Z) => {
|
|
1123
1123
|
Zt(l.cancel) && gt && (l.cancel.onClick == null || l.cancel.onClick.call(l.cancel, Z), qe());
|
|
1124
1124
|
},
|
|
1125
|
-
className: Oe(
|
|
1125
|
+
className: Oe(R == null ? void 0 : R.cancelButton, l == null || (c = l.classNames) == null ? void 0 : c.cancelButton)
|
|
1126
1126
|
}, l.cancel.label) : null, /* @__PURE__ */ _.isValidElement(l.action) ? l.action : l.action && Zt(l.action) ? /* @__PURE__ */ _.createElement("button", {
|
|
1127
1127
|
"data-button": !0,
|
|
1128
1128
|
"data-action": !0,
|
|
1129
|
-
style: l.actionButtonStyle ||
|
|
1129
|
+
style: l.actionButtonStyle || I,
|
|
1130
1130
|
onClick: (Z) => {
|
|
1131
1131
|
Zt(l.action) && (l.action.onClick == null || l.action.onClick.call(l.action, Z), !Z.defaultPrevented && qe());
|
|
1132
1132
|
},
|
|
1133
|
-
className: Oe(
|
|
1133
|
+
className: Oe(R == null ? void 0 : R.actionButton, l == null || (d = l.classNames) == null ? void 0 : d.actionButton)
|
|
1134
1134
|
}, l.action.label) : null);
|
|
1135
1135
|
};
|
|
1136
1136
|
function hr() {
|
|
@@ -1169,43 +1169,43 @@ const Il = /* @__PURE__ */ _.forwardRef(function(t, n) {
|
|
|
1169
1169
|
const { id: o, invert: r, position: s = "bottom-right", hotkey: a = [
|
|
1170
1170
|
"altKey",
|
|
1171
1171
|
"KeyT"
|
|
1172
|
-
], expand: i, closeButton: c, className: d, offset: u, mobileOffset: l, theme: m = "light", richColors: g, duration: b, style: h, visibleToasts: v = Sl, toastOptions: y, dir: w = hr(), gap: x = Rl, icons: S, containerAriaLabel:
|
|
1172
|
+
], expand: i, closeButton: c, className: d, offset: u, mobileOffset: l, theme: m = "light", richColors: g, duration: b, style: h, visibleToasts: v = Sl, toastOptions: y, dir: w = hr(), gap: x = Rl, icons: S, containerAriaLabel: N = "Notifications" } = t, [E, k] = _.useState([]), C = _.useMemo(() => o ? E.filter((K) => K.toasterId === o) : E.filter((K) => !K.toasterId), [
|
|
1173
1173
|
E,
|
|
1174
1174
|
o
|
|
1175
|
-
]),
|
|
1175
|
+
]), I = _.useMemo(() => Array.from(new Set([
|
|
1176
1176
|
s
|
|
1177
|
-
].concat(C.filter((
|
|
1177
|
+
].concat(C.filter((K) => K.position).map((K) => K.position)))), [
|
|
1178
1178
|
C,
|
|
1179
1179
|
s
|
|
1180
|
-
]), [B, A] = _.useState([]), [T, P] = _.useState(!1), [
|
|
1180
|
+
]), [B, A] = _.useState([]), [T, P] = _.useState(!1), [M, L] = _.useState(!1), [R, D] = _.useState(m !== "system" ? m : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), z = _.useRef(null), q = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), O = _.useRef(null), ae = _.useRef(!1), de = _.useCallback((K) => {
|
|
1181
1181
|
k((oe) => {
|
|
1182
|
-
var
|
|
1183
|
-
return (
|
|
1182
|
+
var Y;
|
|
1183
|
+
return (Y = oe.find((te) => te.id === K.id)) != null && Y.delete || ye.dismiss(K.id), oe.filter(({ id: te }) => te !== K.id);
|
|
1184
1184
|
});
|
|
1185
1185
|
}, []);
|
|
1186
|
-
return _.useEffect(() => ye.subscribe((
|
|
1187
|
-
if (
|
|
1186
|
+
return _.useEffect(() => ye.subscribe((K) => {
|
|
1187
|
+
if (K.dismiss) {
|
|
1188
1188
|
requestAnimationFrame(() => {
|
|
1189
|
-
k((oe) => oe.map((
|
|
1190
|
-
...
|
|
1189
|
+
k((oe) => oe.map((Y) => Y.id === K.id ? {
|
|
1190
|
+
...Y,
|
|
1191
1191
|
delete: !0
|
|
1192
|
-
} :
|
|
1192
|
+
} : Y));
|
|
1193
1193
|
});
|
|
1194
1194
|
return;
|
|
1195
1195
|
}
|
|
1196
1196
|
setTimeout(() => {
|
|
1197
1197
|
ls.flushSync(() => {
|
|
1198
1198
|
k((oe) => {
|
|
1199
|
-
const
|
|
1200
|
-
return
|
|
1201
|
-
...oe.slice(0,
|
|
1199
|
+
const Y = oe.findIndex((te) => te.id === K.id);
|
|
1200
|
+
return Y !== -1 ? [
|
|
1201
|
+
...oe.slice(0, Y),
|
|
1202
1202
|
{
|
|
1203
|
-
...oe[
|
|
1204
|
-
...
|
|
1203
|
+
...oe[Y],
|
|
1204
|
+
...K
|
|
1205
1205
|
},
|
|
1206
|
-
...oe.slice(
|
|
1206
|
+
...oe.slice(Y + 1)
|
|
1207
1207
|
] : [
|
|
1208
|
-
|
|
1208
|
+
K,
|
|
1209
1209
|
...oe
|
|
1210
1210
|
];
|
|
1211
1211
|
});
|
|
@@ -1219,15 +1219,15 @@ const Il = /* @__PURE__ */ _.forwardRef(function(t, n) {
|
|
|
1219
1219
|
return;
|
|
1220
1220
|
}
|
|
1221
1221
|
if (m === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? D("dark") : D("light")), typeof window > "u") return;
|
|
1222
|
-
const
|
|
1222
|
+
const K = window.matchMedia("(prefers-color-scheme: dark)");
|
|
1223
1223
|
try {
|
|
1224
|
-
|
|
1224
|
+
K.addEventListener("change", ({ matches: oe }) => {
|
|
1225
1225
|
D(oe ? "dark" : "light");
|
|
1226
1226
|
});
|
|
1227
1227
|
} catch {
|
|
1228
|
-
|
|
1228
|
+
K.addListener(({ matches: Y }) => {
|
|
1229
1229
|
try {
|
|
1230
|
-
D(
|
|
1230
|
+
D(Y ? "dark" : "light");
|
|
1231
1231
|
} catch (te) {
|
|
1232
1232
|
console.error(te);
|
|
1233
1233
|
}
|
|
@@ -1240,74 +1240,74 @@ const Il = /* @__PURE__ */ _.forwardRef(function(t, n) {
|
|
|
1240
1240
|
}, [
|
|
1241
1241
|
E
|
|
1242
1242
|
]), _.useEffect(() => {
|
|
1243
|
-
const
|
|
1244
|
-
var
|
|
1243
|
+
const K = (oe) => {
|
|
1244
|
+
var Y;
|
|
1245
1245
|
if (a.every((W) => oe[W] || oe.code === W)) {
|
|
1246
1246
|
var V;
|
|
1247
1247
|
P(!0), (V = z.current) == null || V.focus();
|
|
1248
1248
|
}
|
|
1249
|
-
oe.code === "Escape" && (document.activeElement === z.current || (
|
|
1249
|
+
oe.code === "Escape" && (document.activeElement === z.current || (Y = z.current) != null && Y.contains(document.activeElement)) && P(!1);
|
|
1250
1250
|
};
|
|
1251
|
-
return document.addEventListener("keydown",
|
|
1251
|
+
return document.addEventListener("keydown", K), () => document.removeEventListener("keydown", K);
|
|
1252
1252
|
}, [
|
|
1253
1253
|
a
|
|
1254
1254
|
]), _.useEffect(() => {
|
|
1255
1255
|
if (z.current)
|
|
1256
1256
|
return () => {
|
|
1257
|
-
|
|
1257
|
+
O.current && (O.current.focus({
|
|
1258
1258
|
preventScroll: !0
|
|
1259
|
-
}),
|
|
1259
|
+
}), O.current = null, ae.current = !1);
|
|
1260
1260
|
};
|
|
1261
1261
|
}, [
|
|
1262
1262
|
z.current
|
|
1263
1263
|
]), // Remove item from normal navigation flow, only available via hotkey
|
|
1264
1264
|
/* @__PURE__ */ _.createElement("section", {
|
|
1265
1265
|
ref: n,
|
|
1266
|
-
"aria-label": `${
|
|
1266
|
+
"aria-label": `${N} ${q}`,
|
|
1267
1267
|
tabIndex: -1,
|
|
1268
1268
|
"aria-live": "polite",
|
|
1269
1269
|
"aria-relevant": "additions text",
|
|
1270
1270
|
"aria-atomic": "false",
|
|
1271
1271
|
suppressHydrationWarning: !0
|
|
1272
|
-
},
|
|
1273
|
-
var
|
|
1274
|
-
const [te, V] =
|
|
1272
|
+
}, I.map((K, oe) => {
|
|
1273
|
+
var Y;
|
|
1274
|
+
const [te, V] = K.split("-");
|
|
1275
1275
|
return C.length ? /* @__PURE__ */ _.createElement("ol", {
|
|
1276
|
-
key:
|
|
1276
|
+
key: K,
|
|
1277
1277
|
dir: w === "auto" ? hr() : w,
|
|
1278
1278
|
tabIndex: -1,
|
|
1279
1279
|
ref: z,
|
|
1280
1280
|
className: d,
|
|
1281
1281
|
"data-sonner-toaster": !0,
|
|
1282
|
-
"data-sonner-theme":
|
|
1282
|
+
"data-sonner-theme": R,
|
|
1283
1283
|
"data-y-position": te,
|
|
1284
1284
|
"data-x-position": V,
|
|
1285
1285
|
style: {
|
|
1286
|
-
"--front-toast-height": `${((
|
|
1286
|
+
"--front-toast-height": `${((Y = B[0]) == null ? void 0 : Y.height) || 0}px`,
|
|
1287
1287
|
"--width": `${El}px`,
|
|
1288
1288
|
"--gap": `${x}px`,
|
|
1289
1289
|
...h,
|
|
1290
1290
|
..._l(u, l)
|
|
1291
1291
|
},
|
|
1292
1292
|
onBlur: (W) => {
|
|
1293
|
-
ae.current && !W.currentTarget.contains(W.relatedTarget) && (ae.current = !1,
|
|
1293
|
+
ae.current && !W.currentTarget.contains(W.relatedTarget) && (ae.current = !1, O.current && (O.current.focus({
|
|
1294
1294
|
preventScroll: !0
|
|
1295
|
-
}),
|
|
1295
|
+
}), O.current = null));
|
|
1296
1296
|
},
|
|
1297
1297
|
onFocus: (W) => {
|
|
1298
|
-
W.target instanceof HTMLElement && W.target.dataset.dismissible === "false" || ae.current || (ae.current = !0,
|
|
1298
|
+
W.target instanceof HTMLElement && W.target.dataset.dismissible === "false" || ae.current || (ae.current = !0, O.current = W.relatedTarget);
|
|
1299
1299
|
},
|
|
1300
1300
|
onMouseEnter: () => P(!0),
|
|
1301
1301
|
onMouseMove: () => P(!0),
|
|
1302
1302
|
onMouseLeave: () => {
|
|
1303
|
-
|
|
1303
|
+
M || P(!1);
|
|
1304
1304
|
},
|
|
1305
1305
|
onDragEnd: () => P(!1),
|
|
1306
1306
|
onPointerDown: (W) => {
|
|
1307
1307
|
W.target instanceof HTMLElement && W.target.dataset.dismissible === "false" || L(!0);
|
|
1308
1308
|
},
|
|
1309
1309
|
onPointerUp: () => L(!1)
|
|
1310
|
-
}, C.filter((W) => !W.position && oe === 0 || W.position ===
|
|
1310
|
+
}, C.filter((W) => !W.position && oe === 0 || W.position === K).map((W, X) => {
|
|
1311
1311
|
var re, ee;
|
|
1312
1312
|
return /* @__PURE__ */ _.createElement(Al, {
|
|
1313
1313
|
key: W.id,
|
|
@@ -1321,15 +1321,15 @@ const Il = /* @__PURE__ */ _.forwardRef(function(t, n) {
|
|
|
1321
1321
|
invert: r,
|
|
1322
1322
|
visibleToasts: v,
|
|
1323
1323
|
closeButton: (ee = y == null ? void 0 : y.closeButton) != null ? ee : c,
|
|
1324
|
-
interacting:
|
|
1325
|
-
position:
|
|
1324
|
+
interacting: M,
|
|
1325
|
+
position: K,
|
|
1326
1326
|
style: y == null ? void 0 : y.style,
|
|
1327
1327
|
unstyled: y == null ? void 0 : y.unstyled,
|
|
1328
1328
|
classNames: y == null ? void 0 : y.classNames,
|
|
1329
1329
|
cancelButtonStyle: y == null ? void 0 : y.cancelButtonStyle,
|
|
1330
1330
|
actionButtonStyle: y == null ? void 0 : y.actionButtonStyle,
|
|
1331
1331
|
closeButtonAriaLabel: y == null ? void 0 : y.closeButtonAriaLabel,
|
|
1332
|
-
removeToast:
|
|
1332
|
+
removeToast: de,
|
|
1333
1333
|
toasts: C.filter((J) => J.position == W.position),
|
|
1334
1334
|
heights: B.filter((J) => J.position == W.position),
|
|
1335
1335
|
setHeights: A,
|
|
@@ -2164,9 +2164,9 @@ const Vd = (e, t) => {
|
|
|
2164
2164
|
if (a.indexOf(S) > -1)
|
|
2165
2165
|
continue;
|
|
2166
2166
|
a.push(S);
|
|
2167
|
-
const
|
|
2168
|
-
for (let E = 0; E <
|
|
2169
|
-
const k =
|
|
2167
|
+
const N = r(y, v);
|
|
2168
|
+
for (let E = 0; E < N.length; ++E) {
|
|
2169
|
+
const k = N[E];
|
|
2170
2170
|
a.push(x + k);
|
|
2171
2171
|
}
|
|
2172
2172
|
c = u + (c.length > 0 ? " " + c : c);
|
|
@@ -2230,15 +2230,15 @@ const Vd = (e, t) => {
|
|
|
2230
2230
|
"bottom-left",
|
|
2231
2231
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
2232
2232
|
"left-bottom"
|
|
2233
|
-
],
|
|
2233
|
+
], N = () => [...S(), F, $], E = () => ["auto", "hidden", "clip", "visible", "scroll"], k = () => ["auto", "contain", "none"], C = () => [F, $, c], I = () => [Ke, "full", "auto", ...C()], B = () => [Xe, "none", "subgrid", F, $], A = () => ["auto", {
|
|
2234
2234
|
span: ["full", Xe, F, $]
|
|
2235
|
-
}, Xe, F, $], T = () => [Xe, "auto", F, $], P = () => ["auto", "min", "max", "fr", F, $],
|
|
2235
|
+
}, Xe, F, $], T = () => [Xe, "auto", F, $], P = () => ["auto", "min", "max", "fr", F, $], M = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], L = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], R = () => ["auto", ...C()], D = () => [Ke, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...C()], z = () => [Ke, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...C()], q = () => [Ke, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...C()], O = () => [e, F, $], ae = () => [...S(), kr, Cr, {
|
|
2236
2236
|
position: [F, $]
|
|
2237
|
-
}],
|
|
2237
|
+
}], de = () => ["no-repeat", {
|
|
2238
2238
|
repeat: ["", "x", "y", "space", "round"]
|
|
2239
|
-
}],
|
|
2239
|
+
}], K = () => ["auto", "cover", "contain", Eu, wu, {
|
|
2240
2240
|
size: [F, $]
|
|
2241
|
-
}], oe = () => [Gn, Mt, at],
|
|
2241
|
+
}], oe = () => [Gn, Mt, at], Y = () => [
|
|
2242
2242
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2243
2243
|
"",
|
|
2244
2244
|
"none",
|
|
@@ -2377,7 +2377,7 @@ const Vd = (e, t) => {
|
|
|
2377
2377
|
* @see https://tailwindcss.com/docs/object-position
|
|
2378
2378
|
*/
|
|
2379
2379
|
"object-position": [{
|
|
2380
|
-
object:
|
|
2380
|
+
object: N()
|
|
2381
2381
|
}],
|
|
2382
2382
|
/**
|
|
2383
2383
|
* Overflow
|
|
@@ -2431,21 +2431,21 @@ const Vd = (e, t) => {
|
|
|
2431
2431
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
2432
2432
|
*/
|
|
2433
2433
|
inset: [{
|
|
2434
|
-
inset:
|
|
2434
|
+
inset: I()
|
|
2435
2435
|
}],
|
|
2436
2436
|
/**
|
|
2437
2437
|
* Inset Inline
|
|
2438
2438
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
2439
2439
|
*/
|
|
2440
2440
|
"inset-x": [{
|
|
2441
|
-
"inset-x":
|
|
2441
|
+
"inset-x": I()
|
|
2442
2442
|
}],
|
|
2443
2443
|
/**
|
|
2444
2444
|
* Inset Block
|
|
2445
2445
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
2446
2446
|
*/
|
|
2447
2447
|
"inset-y": [{
|
|
2448
|
-
"inset-y":
|
|
2448
|
+
"inset-y": I()
|
|
2449
2449
|
}],
|
|
2450
2450
|
/**
|
|
2451
2451
|
* Inset Inline Start
|
|
@@ -2453,12 +2453,12 @@ const Vd = (e, t) => {
|
|
|
2453
2453
|
* @todo class group will be renamed to `inset-s` in next major release
|
|
2454
2454
|
*/
|
|
2455
2455
|
start: [{
|
|
2456
|
-
"inset-s":
|
|
2456
|
+
"inset-s": I(),
|
|
2457
2457
|
/**
|
|
2458
2458
|
* @deprecated since Tailwind CSS v4.2.0 in favor of `inset-s-*` utilities.
|
|
2459
2459
|
* @see https://github.com/tailwindlabs/tailwindcss/pull/19613
|
|
2460
2460
|
*/
|
|
2461
|
-
start:
|
|
2461
|
+
start: I()
|
|
2462
2462
|
}],
|
|
2463
2463
|
/**
|
|
2464
2464
|
* Inset Inline End
|
|
@@ -2466,54 +2466,54 @@ const Vd = (e, t) => {
|
|
|
2466
2466
|
* @todo class group will be renamed to `inset-e` in next major release
|
|
2467
2467
|
*/
|
|
2468
2468
|
end: [{
|
|
2469
|
-
"inset-e":
|
|
2469
|
+
"inset-e": I(),
|
|
2470
2470
|
/**
|
|
2471
2471
|
* @deprecated since Tailwind CSS v4.2.0 in favor of `inset-e-*` utilities.
|
|
2472
2472
|
* @see https://github.com/tailwindlabs/tailwindcss/pull/19613
|
|
2473
2473
|
*/
|
|
2474
|
-
end:
|
|
2474
|
+
end: I()
|
|
2475
2475
|
}],
|
|
2476
2476
|
/**
|
|
2477
2477
|
* Inset Block Start
|
|
2478
2478
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
2479
2479
|
*/
|
|
2480
2480
|
"inset-bs": [{
|
|
2481
|
-
"inset-bs":
|
|
2481
|
+
"inset-bs": I()
|
|
2482
2482
|
}],
|
|
2483
2483
|
/**
|
|
2484
2484
|
* Inset Block End
|
|
2485
2485
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
2486
2486
|
*/
|
|
2487
2487
|
"inset-be": [{
|
|
2488
|
-
"inset-be":
|
|
2488
|
+
"inset-be": I()
|
|
2489
2489
|
}],
|
|
2490
2490
|
/**
|
|
2491
2491
|
* Top
|
|
2492
2492
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
2493
2493
|
*/
|
|
2494
2494
|
top: [{
|
|
2495
|
-
top:
|
|
2495
|
+
top: I()
|
|
2496
2496
|
}],
|
|
2497
2497
|
/**
|
|
2498
2498
|
* Right
|
|
2499
2499
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
2500
2500
|
*/
|
|
2501
2501
|
right: [{
|
|
2502
|
-
right:
|
|
2502
|
+
right: I()
|
|
2503
2503
|
}],
|
|
2504
2504
|
/**
|
|
2505
2505
|
* Bottom
|
|
2506
2506
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
2507
2507
|
*/
|
|
2508
2508
|
bottom: [{
|
|
2509
|
-
bottom:
|
|
2509
|
+
bottom: I()
|
|
2510
2510
|
}],
|
|
2511
2511
|
/**
|
|
2512
2512
|
* Left
|
|
2513
2513
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
2514
2514
|
*/
|
|
2515
2515
|
left: [{
|
|
2516
|
-
left:
|
|
2516
|
+
left: I()
|
|
2517
2517
|
}],
|
|
2518
2518
|
/**
|
|
2519
2519
|
* Visibility
|
|
@@ -2682,7 +2682,7 @@ const Vd = (e, t) => {
|
|
|
2682
2682
|
* @see https://tailwindcss.com/docs/justify-content
|
|
2683
2683
|
*/
|
|
2684
2684
|
"justify-content": [{
|
|
2685
|
-
justify: [...
|
|
2685
|
+
justify: [...M(), "normal"]
|
|
2686
2686
|
}],
|
|
2687
2687
|
/**
|
|
2688
2688
|
* Justify Items
|
|
@@ -2703,7 +2703,7 @@ const Vd = (e, t) => {
|
|
|
2703
2703
|
* @see https://tailwindcss.com/docs/align-content
|
|
2704
2704
|
*/
|
|
2705
2705
|
"align-content": [{
|
|
2706
|
-
content: ["normal", ...
|
|
2706
|
+
content: ["normal", ...M()]
|
|
2707
2707
|
}],
|
|
2708
2708
|
/**
|
|
2709
2709
|
* Align Items
|
|
@@ -2728,7 +2728,7 @@ const Vd = (e, t) => {
|
|
|
2728
2728
|
* @see https://tailwindcss.com/docs/place-content
|
|
2729
2729
|
*/
|
|
2730
2730
|
"place-content": [{
|
|
2731
|
-
"place-content":
|
|
2731
|
+
"place-content": M()
|
|
2732
2732
|
}],
|
|
2733
2733
|
/**
|
|
2734
2734
|
* Place Items
|
|
@@ -2827,77 +2827,77 @@ const Vd = (e, t) => {
|
|
|
2827
2827
|
* @see https://tailwindcss.com/docs/margin
|
|
2828
2828
|
*/
|
|
2829
2829
|
m: [{
|
|
2830
|
-
m:
|
|
2830
|
+
m: R()
|
|
2831
2831
|
}],
|
|
2832
2832
|
/**
|
|
2833
2833
|
* Margin Inline
|
|
2834
2834
|
* @see https://tailwindcss.com/docs/margin
|
|
2835
2835
|
*/
|
|
2836
2836
|
mx: [{
|
|
2837
|
-
mx:
|
|
2837
|
+
mx: R()
|
|
2838
2838
|
}],
|
|
2839
2839
|
/**
|
|
2840
2840
|
* Margin Block
|
|
2841
2841
|
* @see https://tailwindcss.com/docs/margin
|
|
2842
2842
|
*/
|
|
2843
2843
|
my: [{
|
|
2844
|
-
my:
|
|
2844
|
+
my: R()
|
|
2845
2845
|
}],
|
|
2846
2846
|
/**
|
|
2847
2847
|
* Margin Inline Start
|
|
2848
2848
|
* @see https://tailwindcss.com/docs/margin
|
|
2849
2849
|
*/
|
|
2850
2850
|
ms: [{
|
|
2851
|
-
ms:
|
|
2851
|
+
ms: R()
|
|
2852
2852
|
}],
|
|
2853
2853
|
/**
|
|
2854
2854
|
* Margin Inline End
|
|
2855
2855
|
* @see https://tailwindcss.com/docs/margin
|
|
2856
2856
|
*/
|
|
2857
2857
|
me: [{
|
|
2858
|
-
me:
|
|
2858
|
+
me: R()
|
|
2859
2859
|
}],
|
|
2860
2860
|
/**
|
|
2861
2861
|
* Margin Block Start
|
|
2862
2862
|
* @see https://tailwindcss.com/docs/margin
|
|
2863
2863
|
*/
|
|
2864
2864
|
mbs: [{
|
|
2865
|
-
mbs:
|
|
2865
|
+
mbs: R()
|
|
2866
2866
|
}],
|
|
2867
2867
|
/**
|
|
2868
2868
|
* Margin Block End
|
|
2869
2869
|
* @see https://tailwindcss.com/docs/margin
|
|
2870
2870
|
*/
|
|
2871
2871
|
mbe: [{
|
|
2872
|
-
mbe:
|
|
2872
|
+
mbe: R()
|
|
2873
2873
|
}],
|
|
2874
2874
|
/**
|
|
2875
2875
|
* Margin Top
|
|
2876
2876
|
* @see https://tailwindcss.com/docs/margin
|
|
2877
2877
|
*/
|
|
2878
2878
|
mt: [{
|
|
2879
|
-
mt:
|
|
2879
|
+
mt: R()
|
|
2880
2880
|
}],
|
|
2881
2881
|
/**
|
|
2882
2882
|
* Margin Right
|
|
2883
2883
|
* @see https://tailwindcss.com/docs/margin
|
|
2884
2884
|
*/
|
|
2885
2885
|
mr: [{
|
|
2886
|
-
mr:
|
|
2886
|
+
mr: R()
|
|
2887
2887
|
}],
|
|
2888
2888
|
/**
|
|
2889
2889
|
* Margin Bottom
|
|
2890
2890
|
* @see https://tailwindcss.com/docs/margin
|
|
2891
2891
|
*/
|
|
2892
2892
|
mb: [{
|
|
2893
|
-
mb:
|
|
2893
|
+
mb: R()
|
|
2894
2894
|
}],
|
|
2895
2895
|
/**
|
|
2896
2896
|
* Margin Left
|
|
2897
2897
|
* @see https://tailwindcss.com/docs/margin
|
|
2898
2898
|
*/
|
|
2899
2899
|
ml: [{
|
|
2900
|
-
ml:
|
|
2900
|
+
ml: R()
|
|
2901
2901
|
}],
|
|
2902
2902
|
/**
|
|
2903
2903
|
* Space Between X
|
|
@@ -2959,21 +2959,21 @@ const Vd = (e, t) => {
|
|
|
2959
2959
|
* @see https://tailwindcss.com/docs/height
|
|
2960
2960
|
*/
|
|
2961
2961
|
"block-size": [{
|
|
2962
|
-
block: ["auto", ...
|
|
2962
|
+
block: ["auto", ...q()]
|
|
2963
2963
|
}],
|
|
2964
2964
|
/**
|
|
2965
2965
|
* Min-Block Size
|
|
2966
2966
|
* @see https://tailwindcss.com/docs/min-height
|
|
2967
2967
|
*/
|
|
2968
2968
|
"min-block-size": [{
|
|
2969
|
-
"min-block": ["auto", ...
|
|
2969
|
+
"min-block": ["auto", ...q()]
|
|
2970
2970
|
}],
|
|
2971
2971
|
/**
|
|
2972
2972
|
* Max-Block Size
|
|
2973
2973
|
* @see https://tailwindcss.com/docs/max-height
|
|
2974
2974
|
*/
|
|
2975
2975
|
"max-block-size": [{
|
|
2976
|
-
"max-block": ["none", ...
|
|
2976
|
+
"max-block": ["none", ...q()]
|
|
2977
2977
|
}],
|
|
2978
2978
|
/**
|
|
2979
2979
|
* Width
|
|
@@ -3171,14 +3171,14 @@ const Vd = (e, t) => {
|
|
|
3171
3171
|
* @see https://v3.tailwindcss.com/docs/placeholder-color
|
|
3172
3172
|
*/
|
|
3173
3173
|
"placeholder-color": [{
|
|
3174
|
-
placeholder:
|
|
3174
|
+
placeholder: O()
|
|
3175
3175
|
}],
|
|
3176
3176
|
/**
|
|
3177
3177
|
* Text Color
|
|
3178
3178
|
* @see https://tailwindcss.com/docs/text-color
|
|
3179
3179
|
*/
|
|
3180
3180
|
"text-color": [{
|
|
3181
|
-
text:
|
|
3181
|
+
text: O()
|
|
3182
3182
|
}],
|
|
3183
3183
|
/**
|
|
3184
3184
|
* Text Decoration
|
|
@@ -3204,7 +3204,7 @@ const Vd = (e, t) => {
|
|
|
3204
3204
|
* @see https://tailwindcss.com/docs/text-decoration-color
|
|
3205
3205
|
*/
|
|
3206
3206
|
"text-decoration-color": [{
|
|
3207
|
-
decoration:
|
|
3207
|
+
decoration: O()
|
|
3208
3208
|
}],
|
|
3209
3209
|
/**
|
|
3210
3210
|
* Text Underline Offset
|
|
@@ -3315,14 +3315,14 @@ const Vd = (e, t) => {
|
|
|
3315
3315
|
* @see https://tailwindcss.com/docs/background-repeat
|
|
3316
3316
|
*/
|
|
3317
3317
|
"bg-repeat": [{
|
|
3318
|
-
bg:
|
|
3318
|
+
bg: de()
|
|
3319
3319
|
}],
|
|
3320
3320
|
/**
|
|
3321
3321
|
* Background Size
|
|
3322
3322
|
* @see https://tailwindcss.com/docs/background-size
|
|
3323
3323
|
*/
|
|
3324
3324
|
"bg-size": [{
|
|
3325
|
-
bg:
|
|
3325
|
+
bg: K()
|
|
3326
3326
|
}],
|
|
3327
3327
|
/**
|
|
3328
3328
|
* Background Image
|
|
@@ -3342,7 +3342,7 @@ const Vd = (e, t) => {
|
|
|
3342
3342
|
* @see https://tailwindcss.com/docs/background-color
|
|
3343
3343
|
*/
|
|
3344
3344
|
"bg-color": [{
|
|
3345
|
-
bg:
|
|
3345
|
+
bg: O()
|
|
3346
3346
|
}],
|
|
3347
3347
|
/**
|
|
3348
3348
|
* Gradient Color Stops From Position
|
|
@@ -3370,21 +3370,21 @@ const Vd = (e, t) => {
|
|
|
3370
3370
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
3371
3371
|
*/
|
|
3372
3372
|
"gradient-from": [{
|
|
3373
|
-
from:
|
|
3373
|
+
from: O()
|
|
3374
3374
|
}],
|
|
3375
3375
|
/**
|
|
3376
3376
|
* Gradient Color Stops Via
|
|
3377
3377
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
3378
3378
|
*/
|
|
3379
3379
|
"gradient-via": [{
|
|
3380
|
-
via:
|
|
3380
|
+
via: O()
|
|
3381
3381
|
}],
|
|
3382
3382
|
/**
|
|
3383
3383
|
* Gradient Color Stops To
|
|
3384
3384
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
3385
3385
|
*/
|
|
3386
3386
|
"gradient-to": [{
|
|
3387
|
-
to:
|
|
3387
|
+
to: O()
|
|
3388
3388
|
}],
|
|
3389
3389
|
// ---------------
|
|
3390
3390
|
// --- Borders ---
|
|
@@ -3394,105 +3394,105 @@ const Vd = (e, t) => {
|
|
|
3394
3394
|
* @see https://tailwindcss.com/docs/border-radius
|
|
3395
3395
|
*/
|
|
3396
3396
|
rounded: [{
|
|
3397
|
-
rounded:
|
|
3397
|
+
rounded: Y()
|
|
3398
3398
|
}],
|
|
3399
3399
|
/**
|
|
3400
3400
|
* Border Radius Start
|
|
3401
3401
|
* @see https://tailwindcss.com/docs/border-radius
|
|
3402
3402
|
*/
|
|
3403
3403
|
"rounded-s": [{
|
|
3404
|
-
"rounded-s":
|
|
3404
|
+
"rounded-s": Y()
|
|
3405
3405
|
}],
|
|
3406
3406
|
/**
|
|
3407
3407
|
* Border Radius End
|
|
3408
3408
|
* @see https://tailwindcss.com/docs/border-radius
|
|
3409
3409
|
*/
|
|
3410
3410
|
"rounded-e": [{
|
|
3411
|
-
"rounded-e":
|
|
3411
|
+
"rounded-e": Y()
|
|
3412
3412
|
}],
|
|
3413
3413
|
/**
|
|
3414
3414
|
* Border Radius Top
|
|
3415
3415
|
* @see https://tailwindcss.com/docs/border-radius
|
|
3416
3416
|
*/
|
|
3417
3417
|
"rounded-t": [{
|
|
3418
|
-
"rounded-t":
|
|
3418
|
+
"rounded-t": Y()
|
|
3419
3419
|
}],
|
|
3420
3420
|
/**
|
|
3421
3421
|
* Border Radius Right
|
|
3422
3422
|
* @see https://tailwindcss.com/docs/border-radius
|
|
3423
3423
|
*/
|
|
3424
3424
|
"rounded-r": [{
|
|
3425
|
-
"rounded-r":
|
|
3425
|
+
"rounded-r": Y()
|
|
3426
3426
|
}],
|
|
3427
3427
|
/**
|
|
3428
3428
|
* Border Radius Bottom
|
|
3429
3429
|
* @see https://tailwindcss.com/docs/border-radius
|
|
3430
3430
|
*/
|
|
3431
3431
|
"rounded-b": [{
|
|
3432
|
-
"rounded-b":
|
|
3432
|
+
"rounded-b": Y()
|
|
3433
3433
|
}],
|
|
3434
3434
|
/**
|
|
3435
3435
|
* Border Radius Left
|
|
3436
3436
|
* @see https://tailwindcss.com/docs/border-radius
|
|
3437
3437
|
*/
|
|
3438
3438
|
"rounded-l": [{
|
|
3439
|
-
"rounded-l":
|
|
3439
|
+
"rounded-l": Y()
|
|
3440
3440
|
}],
|
|
3441
3441
|
/**
|
|
3442
3442
|
* Border Radius Start Start
|
|
3443
3443
|
* @see https://tailwindcss.com/docs/border-radius
|
|
3444
3444
|
*/
|
|
3445
3445
|
"rounded-ss": [{
|
|
3446
|
-
"rounded-ss":
|
|
3446
|
+
"rounded-ss": Y()
|
|
3447
3447
|
}],
|
|
3448
3448
|
/**
|
|
3449
3449
|
* Border Radius Start End
|
|
3450
3450
|
* @see https://tailwindcss.com/docs/border-radius
|
|
3451
3451
|
*/
|
|
3452
3452
|
"rounded-se": [{
|
|
3453
|
-
"rounded-se":
|
|
3453
|
+
"rounded-se": Y()
|
|
3454
3454
|
}],
|
|
3455
3455
|
/**
|
|
3456
3456
|
* Border Radius End End
|
|
3457
3457
|
* @see https://tailwindcss.com/docs/border-radius
|
|
3458
3458
|
*/
|
|
3459
3459
|
"rounded-ee": [{
|
|
3460
|
-
"rounded-ee":
|
|
3460
|
+
"rounded-ee": Y()
|
|
3461
3461
|
}],
|
|
3462
3462
|
/**
|
|
3463
3463
|
* Border Radius End Start
|
|
3464
3464
|
* @see https://tailwindcss.com/docs/border-radius
|
|
3465
3465
|
*/
|
|
3466
3466
|
"rounded-es": [{
|
|
3467
|
-
"rounded-es":
|
|
3467
|
+
"rounded-es": Y()
|
|
3468
3468
|
}],
|
|
3469
3469
|
/**
|
|
3470
3470
|
* Border Radius Top Left
|
|
3471
3471
|
* @see https://tailwindcss.com/docs/border-radius
|
|
3472
3472
|
*/
|
|
3473
3473
|
"rounded-tl": [{
|
|
3474
|
-
"rounded-tl":
|
|
3474
|
+
"rounded-tl": Y()
|
|
3475
3475
|
}],
|
|
3476
3476
|
/**
|
|
3477
3477
|
* Border Radius Top Right
|
|
3478
3478
|
* @see https://tailwindcss.com/docs/border-radius
|
|
3479
3479
|
*/
|
|
3480
3480
|
"rounded-tr": [{
|
|
3481
|
-
"rounded-tr":
|
|
3481
|
+
"rounded-tr": Y()
|
|
3482
3482
|
}],
|
|
3483
3483
|
/**
|
|
3484
3484
|
* Border Radius Bottom Right
|
|
3485
3485
|
* @see https://tailwindcss.com/docs/border-radius
|
|
3486
3486
|
*/
|
|
3487
3487
|
"rounded-br": [{
|
|
3488
|
-
"rounded-br":
|
|
3488
|
+
"rounded-br": Y()
|
|
3489
3489
|
}],
|
|
3490
3490
|
/**
|
|
3491
3491
|
* Border Radius Bottom Left
|
|
3492
3492
|
* @see https://tailwindcss.com/docs/border-radius
|
|
3493
3493
|
*/
|
|
3494
3494
|
"rounded-bl": [{
|
|
3495
|
-
"rounded-bl":
|
|
3495
|
+
"rounded-bl": Y()
|
|
3496
3496
|
}],
|
|
3497
3497
|
/**
|
|
3498
3498
|
* Border Width
|
|
@@ -3614,84 +3614,84 @@ const Vd = (e, t) => {
|
|
|
3614
3614
|
* @see https://tailwindcss.com/docs/border-color
|
|
3615
3615
|
*/
|
|
3616
3616
|
"border-color": [{
|
|
3617
|
-
border:
|
|
3617
|
+
border: O()
|
|
3618
3618
|
}],
|
|
3619
3619
|
/**
|
|
3620
3620
|
* Border Color Inline
|
|
3621
3621
|
* @see https://tailwindcss.com/docs/border-color
|
|
3622
3622
|
*/
|
|
3623
3623
|
"border-color-x": [{
|
|
3624
|
-
"border-x":
|
|
3624
|
+
"border-x": O()
|
|
3625
3625
|
}],
|
|
3626
3626
|
/**
|
|
3627
3627
|
* Border Color Block
|
|
3628
3628
|
* @see https://tailwindcss.com/docs/border-color
|
|
3629
3629
|
*/
|
|
3630
3630
|
"border-color-y": [{
|
|
3631
|
-
"border-y":
|
|
3631
|
+
"border-y": O()
|
|
3632
3632
|
}],
|
|
3633
3633
|
/**
|
|
3634
3634
|
* Border Color Inline Start
|
|
3635
3635
|
* @see https://tailwindcss.com/docs/border-color
|
|
3636
3636
|
*/
|
|
3637
3637
|
"border-color-s": [{
|
|
3638
|
-
"border-s":
|
|
3638
|
+
"border-s": O()
|
|
3639
3639
|
}],
|
|
3640
3640
|
/**
|
|
3641
3641
|
* Border Color Inline End
|
|
3642
3642
|
* @see https://tailwindcss.com/docs/border-color
|
|
3643
3643
|
*/
|
|
3644
3644
|
"border-color-e": [{
|
|
3645
|
-
"border-e":
|
|
3645
|
+
"border-e": O()
|
|
3646
3646
|
}],
|
|
3647
3647
|
/**
|
|
3648
3648
|
* Border Color Block Start
|
|
3649
3649
|
* @see https://tailwindcss.com/docs/border-color
|
|
3650
3650
|
*/
|
|
3651
3651
|
"border-color-bs": [{
|
|
3652
|
-
"border-bs":
|
|
3652
|
+
"border-bs": O()
|
|
3653
3653
|
}],
|
|
3654
3654
|
/**
|
|
3655
3655
|
* Border Color Block End
|
|
3656
3656
|
* @see https://tailwindcss.com/docs/border-color
|
|
3657
3657
|
*/
|
|
3658
3658
|
"border-color-be": [{
|
|
3659
|
-
"border-be":
|
|
3659
|
+
"border-be": O()
|
|
3660
3660
|
}],
|
|
3661
3661
|
/**
|
|
3662
3662
|
* Border Color Top
|
|
3663
3663
|
* @see https://tailwindcss.com/docs/border-color
|
|
3664
3664
|
*/
|
|
3665
3665
|
"border-color-t": [{
|
|
3666
|
-
"border-t":
|
|
3666
|
+
"border-t": O()
|
|
3667
3667
|
}],
|
|
3668
3668
|
/**
|
|
3669
3669
|
* Border Color Right
|
|
3670
3670
|
* @see https://tailwindcss.com/docs/border-color
|
|
3671
3671
|
*/
|
|
3672
3672
|
"border-color-r": [{
|
|
3673
|
-
"border-r":
|
|
3673
|
+
"border-r": O()
|
|
3674
3674
|
}],
|
|
3675
3675
|
/**
|
|
3676
3676
|
* Border Color Bottom
|
|
3677
3677
|
* @see https://tailwindcss.com/docs/border-color
|
|
3678
3678
|
*/
|
|
3679
3679
|
"border-color-b": [{
|
|
3680
|
-
"border-b":
|
|
3680
|
+
"border-b": O()
|
|
3681
3681
|
}],
|
|
3682
3682
|
/**
|
|
3683
3683
|
* Border Color Left
|
|
3684
3684
|
* @see https://tailwindcss.com/docs/border-color
|
|
3685
3685
|
*/
|
|
3686
3686
|
"border-color-l": [{
|
|
3687
|
-
"border-l":
|
|
3687
|
+
"border-l": O()
|
|
3688
3688
|
}],
|
|
3689
3689
|
/**
|
|
3690
3690
|
* Divide Color
|
|
3691
3691
|
* @see https://tailwindcss.com/docs/divide-color
|
|
3692
3692
|
*/
|
|
3693
3693
|
"divide-color": [{
|
|
3694
|
-
divide:
|
|
3694
|
+
divide: O()
|
|
3695
3695
|
}],
|
|
3696
3696
|
/**
|
|
3697
3697
|
* Outline Style
|
|
@@ -3719,7 +3719,7 @@ const Vd = (e, t) => {
|
|
|
3719
3719
|
* @see https://tailwindcss.com/docs/outline-color
|
|
3720
3720
|
*/
|
|
3721
3721
|
"outline-color": [{
|
|
3722
|
-
outline:
|
|
3722
|
+
outline: O()
|
|
3723
3723
|
}],
|
|
3724
3724
|
// ---------------
|
|
3725
3725
|
// --- Effects ---
|
|
@@ -3743,7 +3743,7 @@ const Vd = (e, t) => {
|
|
|
3743
3743
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
|
|
3744
3744
|
*/
|
|
3745
3745
|
"shadow-color": [{
|
|
3746
|
-
shadow:
|
|
3746
|
+
shadow: O()
|
|
3747
3747
|
}],
|
|
3748
3748
|
/**
|
|
3749
3749
|
* Inset Box Shadow
|
|
@@ -3757,7 +3757,7 @@ const Vd = (e, t) => {
|
|
|
3757
3757
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
|
|
3758
3758
|
*/
|
|
3759
3759
|
"inset-shadow-color": [{
|
|
3760
|
-
"inset-shadow":
|
|
3760
|
+
"inset-shadow": O()
|
|
3761
3761
|
}],
|
|
3762
3762
|
/**
|
|
3763
3763
|
* Ring Width
|
|
@@ -3778,7 +3778,7 @@ const Vd = (e, t) => {
|
|
|
3778
3778
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
|
|
3779
3779
|
*/
|
|
3780
3780
|
"ring-color": [{
|
|
3781
|
-
ring:
|
|
3781
|
+
ring: O()
|
|
3782
3782
|
}],
|
|
3783
3783
|
/**
|
|
3784
3784
|
* Ring Offset Width
|
|
@@ -3796,7 +3796,7 @@ const Vd = (e, t) => {
|
|
|
3796
3796
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
3797
3797
|
*/
|
|
3798
3798
|
"ring-offset-color": [{
|
|
3799
|
-
"ring-offset":
|
|
3799
|
+
"ring-offset": O()
|
|
3800
3800
|
}],
|
|
3801
3801
|
/**
|
|
3802
3802
|
* Inset Ring Width
|
|
@@ -3810,7 +3810,7 @@ const Vd = (e, t) => {
|
|
|
3810
3810
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
|
|
3811
3811
|
*/
|
|
3812
3812
|
"inset-ring-color": [{
|
|
3813
|
-
"inset-ring":
|
|
3813
|
+
"inset-ring": O()
|
|
3814
3814
|
}],
|
|
3815
3815
|
/**
|
|
3816
3816
|
* Text Shadow
|
|
@@ -3824,7 +3824,7 @@ const Vd = (e, t) => {
|
|
|
3824
3824
|
* @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
|
|
3825
3825
|
*/
|
|
3826
3826
|
"text-shadow-color": [{
|
|
3827
|
-
"text-shadow":
|
|
3827
|
+
"text-shadow": O()
|
|
3828
3828
|
}],
|
|
3829
3829
|
/**
|
|
3830
3830
|
* Opacity
|
|
@@ -3875,10 +3875,10 @@ const Vd = (e, t) => {
|
|
|
3875
3875
|
"mask-linear-to": X()
|
|
3876
3876
|
}],
|
|
3877
3877
|
"mask-image-linear-from-color": [{
|
|
3878
|
-
"mask-linear-from":
|
|
3878
|
+
"mask-linear-from": O()
|
|
3879
3879
|
}],
|
|
3880
3880
|
"mask-image-linear-to-color": [{
|
|
3881
|
-
"mask-linear-to":
|
|
3881
|
+
"mask-linear-to": O()
|
|
3882
3882
|
}],
|
|
3883
3883
|
"mask-image-t-from-pos": [{
|
|
3884
3884
|
"mask-t-from": X()
|
|
@@ -3887,10 +3887,10 @@ const Vd = (e, t) => {
|
|
|
3887
3887
|
"mask-t-to": X()
|
|
3888
3888
|
}],
|
|
3889
3889
|
"mask-image-t-from-color": [{
|
|
3890
|
-
"mask-t-from":
|
|
3890
|
+
"mask-t-from": O()
|
|
3891
3891
|
}],
|
|
3892
3892
|
"mask-image-t-to-color": [{
|
|
3893
|
-
"mask-t-to":
|
|
3893
|
+
"mask-t-to": O()
|
|
3894
3894
|
}],
|
|
3895
3895
|
"mask-image-r-from-pos": [{
|
|
3896
3896
|
"mask-r-from": X()
|
|
@@ -3899,10 +3899,10 @@ const Vd = (e, t) => {
|
|
|
3899
3899
|
"mask-r-to": X()
|
|
3900
3900
|
}],
|
|
3901
3901
|
"mask-image-r-from-color": [{
|
|
3902
|
-
"mask-r-from":
|
|
3902
|
+
"mask-r-from": O()
|
|
3903
3903
|
}],
|
|
3904
3904
|
"mask-image-r-to-color": [{
|
|
3905
|
-
"mask-r-to":
|
|
3905
|
+
"mask-r-to": O()
|
|
3906
3906
|
}],
|
|
3907
3907
|
"mask-image-b-from-pos": [{
|
|
3908
3908
|
"mask-b-from": X()
|
|
@@ -3911,10 +3911,10 @@ const Vd = (e, t) => {
|
|
|
3911
3911
|
"mask-b-to": X()
|
|
3912
3912
|
}],
|
|
3913
3913
|
"mask-image-b-from-color": [{
|
|
3914
|
-
"mask-b-from":
|
|
3914
|
+
"mask-b-from": O()
|
|
3915
3915
|
}],
|
|
3916
3916
|
"mask-image-b-to-color": [{
|
|
3917
|
-
"mask-b-to":
|
|
3917
|
+
"mask-b-to": O()
|
|
3918
3918
|
}],
|
|
3919
3919
|
"mask-image-l-from-pos": [{
|
|
3920
3920
|
"mask-l-from": X()
|
|
@@ -3923,10 +3923,10 @@ const Vd = (e, t) => {
|
|
|
3923
3923
|
"mask-l-to": X()
|
|
3924
3924
|
}],
|
|
3925
3925
|
"mask-image-l-from-color": [{
|
|
3926
|
-
"mask-l-from":
|
|
3926
|
+
"mask-l-from": O()
|
|
3927
3927
|
}],
|
|
3928
3928
|
"mask-image-l-to-color": [{
|
|
3929
|
-
"mask-l-to":
|
|
3929
|
+
"mask-l-to": O()
|
|
3930
3930
|
}],
|
|
3931
3931
|
"mask-image-x-from-pos": [{
|
|
3932
3932
|
"mask-x-from": X()
|
|
@@ -3935,10 +3935,10 @@ const Vd = (e, t) => {
|
|
|
3935
3935
|
"mask-x-to": X()
|
|
3936
3936
|
}],
|
|
3937
3937
|
"mask-image-x-from-color": [{
|
|
3938
|
-
"mask-x-from":
|
|
3938
|
+
"mask-x-from": O()
|
|
3939
3939
|
}],
|
|
3940
3940
|
"mask-image-x-to-color": [{
|
|
3941
|
-
"mask-x-to":
|
|
3941
|
+
"mask-x-to": O()
|
|
3942
3942
|
}],
|
|
3943
3943
|
"mask-image-y-from-pos": [{
|
|
3944
3944
|
"mask-y-from": X()
|
|
@@ -3947,10 +3947,10 @@ const Vd = (e, t) => {
|
|
|
3947
3947
|
"mask-y-to": X()
|
|
3948
3948
|
}],
|
|
3949
3949
|
"mask-image-y-from-color": [{
|
|
3950
|
-
"mask-y-from":
|
|
3950
|
+
"mask-y-from": O()
|
|
3951
3951
|
}],
|
|
3952
3952
|
"mask-image-y-to-color": [{
|
|
3953
|
-
"mask-y-to":
|
|
3953
|
+
"mask-y-to": O()
|
|
3954
3954
|
}],
|
|
3955
3955
|
"mask-image-radial": [{
|
|
3956
3956
|
"mask-radial": [F, $]
|
|
@@ -3962,10 +3962,10 @@ const Vd = (e, t) => {
|
|
|
3962
3962
|
"mask-radial-to": X()
|
|
3963
3963
|
}],
|
|
3964
3964
|
"mask-image-radial-from-color": [{
|
|
3965
|
-
"mask-radial-from":
|
|
3965
|
+
"mask-radial-from": O()
|
|
3966
3966
|
}],
|
|
3967
3967
|
"mask-image-radial-to-color": [{
|
|
3968
|
-
"mask-radial-to":
|
|
3968
|
+
"mask-radial-to": O()
|
|
3969
3969
|
}],
|
|
3970
3970
|
"mask-image-radial-shape": [{
|
|
3971
3971
|
"mask-radial": ["circle", "ellipse"]
|
|
@@ -3989,10 +3989,10 @@ const Vd = (e, t) => {
|
|
|
3989
3989
|
"mask-conic-to": X()
|
|
3990
3990
|
}],
|
|
3991
3991
|
"mask-image-conic-from-color": [{
|
|
3992
|
-
"mask-conic-from":
|
|
3992
|
+
"mask-conic-from": O()
|
|
3993
3993
|
}],
|
|
3994
3994
|
"mask-image-conic-to-color": [{
|
|
3995
|
-
"mask-conic-to":
|
|
3995
|
+
"mask-conic-to": O()
|
|
3996
3996
|
}],
|
|
3997
3997
|
/**
|
|
3998
3998
|
* Mask Mode
|
|
@@ -4020,14 +4020,14 @@ const Vd = (e, t) => {
|
|
|
4020
4020
|
* @see https://tailwindcss.com/docs/mask-repeat
|
|
4021
4021
|
*/
|
|
4022
4022
|
"mask-repeat": [{
|
|
4023
|
-
mask:
|
|
4023
|
+
mask: de()
|
|
4024
4024
|
}],
|
|
4025
4025
|
/**
|
|
4026
4026
|
* Mask Size
|
|
4027
4027
|
* @see https://tailwindcss.com/docs/mask-size
|
|
4028
4028
|
*/
|
|
4029
4029
|
"mask-size": [{
|
|
4030
|
-
mask:
|
|
4030
|
+
mask: K()
|
|
4031
4031
|
}],
|
|
4032
4032
|
/**
|
|
4033
4033
|
* Mask Type
|
|
@@ -4099,7 +4099,7 @@ const Vd = (e, t) => {
|
|
|
4099
4099
|
* @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
|
|
4100
4100
|
*/
|
|
4101
4101
|
"drop-shadow-color": [{
|
|
4102
|
-
"drop-shadow":
|
|
4102
|
+
"drop-shadow": O()
|
|
4103
4103
|
}],
|
|
4104
4104
|
/**
|
|
4105
4105
|
* Grayscale
|
|
@@ -4324,7 +4324,7 @@ const Vd = (e, t) => {
|
|
|
4324
4324
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
4325
4325
|
*/
|
|
4326
4326
|
"perspective-origin": [{
|
|
4327
|
-
"perspective-origin":
|
|
4327
|
+
"perspective-origin": N()
|
|
4328
4328
|
}],
|
|
4329
4329
|
/**
|
|
4330
4330
|
* Rotate
|
|
@@ -4420,7 +4420,7 @@ const Vd = (e, t) => {
|
|
|
4420
4420
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
4421
4421
|
*/
|
|
4422
4422
|
"transform-origin": [{
|
|
4423
|
-
origin:
|
|
4423
|
+
origin: N()
|
|
4424
4424
|
}],
|
|
4425
4425
|
/**
|
|
4426
4426
|
* Transform Style
|
|
@@ -4470,7 +4470,7 @@ const Vd = (e, t) => {
|
|
|
4470
4470
|
* @see https://tailwindcss.com/docs/accent-color
|
|
4471
4471
|
*/
|
|
4472
4472
|
accent: [{
|
|
4473
|
-
accent:
|
|
4473
|
+
accent: O()
|
|
4474
4474
|
}],
|
|
4475
4475
|
/**
|
|
4476
4476
|
* Appearance
|
|
@@ -4484,7 +4484,7 @@ const Vd = (e, t) => {
|
|
|
4484
4484
|
* @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
|
|
4485
4485
|
*/
|
|
4486
4486
|
"caret-color": [{
|
|
4487
|
-
caret:
|
|
4487
|
+
caret: O()
|
|
4488
4488
|
}],
|
|
4489
4489
|
/**
|
|
4490
4490
|
* Color Scheme
|
|
@@ -4758,7 +4758,7 @@ const Vd = (e, t) => {
|
|
|
4758
4758
|
* @see https://tailwindcss.com/docs/fill
|
|
4759
4759
|
*/
|
|
4760
4760
|
fill: [{
|
|
4761
|
-
fill: ["none", ...
|
|
4761
|
+
fill: ["none", ...O()]
|
|
4762
4762
|
}],
|
|
4763
4763
|
/**
|
|
4764
4764
|
* Stroke Width
|
|
@@ -4772,7 +4772,7 @@ const Vd = (e, t) => {
|
|
|
4772
4772
|
* @see https://tailwindcss.com/docs/stroke
|
|
4773
4773
|
*/
|
|
4774
4774
|
stroke: [{
|
|
4775
|
-
stroke: ["none", ...
|
|
4775
|
+
stroke: ["none", ...O()]
|
|
4776
4776
|
}],
|
|
4777
4777
|
// ---------------------
|
|
4778
4778
|
// --- Accessibility ---
|
|
@@ -5101,8 +5101,8 @@ function Vs(e) {
|
|
|
5101
5101
|
d.displayName = i;
|
|
5102
5102
|
const u = e + "CollectionItemSlot", l = "data-radix-collection-item", m = /* @__PURE__ */ $t(u), g = _.forwardRef(
|
|
5103
5103
|
(h, v) => {
|
|
5104
|
-
const { scope: y, children: w, ...x } = h, S = _.useRef(null),
|
|
5105
|
-
return _.useEffect(() => (E.itemMap.set(S, { ref: S, ...x }), () => void E.itemMap.delete(S))), /* @__PURE__ */ p(m, { [l]: "", ref:
|
|
5104
|
+
const { scope: y, children: w, ...x } = h, S = _.useRef(null), N = ne(v, S), E = s(u, y);
|
|
5105
|
+
return _.useEffect(() => (E.itemMap.set(S, { ref: S, ...x }), () => void E.itemMap.delete(S))), /* @__PURE__ */ p(m, { [l]: "", ref: N, children: w });
|
|
5106
5106
|
}
|
|
5107
5107
|
);
|
|
5108
5108
|
g.displayName = u;
|
|
@@ -5129,8 +5129,8 @@ function G(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
|
5129
5129
|
return t == null ? void 0 : t(r);
|
|
5130
5130
|
};
|
|
5131
5131
|
}
|
|
5132
|
-
var
|
|
5133
|
-
}, Vu = f[" useInsertionEffect ".trim().toString()] ||
|
|
5132
|
+
var le = globalThis != null && globalThis.document ? f.useLayoutEffect : () => {
|
|
5133
|
+
}, Vu = f[" useInsertionEffect ".trim().toString()] || le;
|
|
5134
5134
|
function We({
|
|
5135
5135
|
prop: e,
|
|
5136
5136
|
defaultProp: t,
|
|
@@ -5204,13 +5204,13 @@ function Gu(e) {
|
|
|
5204
5204
|
return f.useEffect(() => {
|
|
5205
5205
|
const d = en(o.current);
|
|
5206
5206
|
s.current = i === "mounted" ? d : "none";
|
|
5207
|
-
}, [i]),
|
|
5207
|
+
}, [i]), le(() => {
|
|
5208
5208
|
const d = o.current, u = r.current;
|
|
5209
5209
|
if (u !== e) {
|
|
5210
5210
|
const m = s.current, g = en(d);
|
|
5211
5211
|
e ? c("MOUNT") : g === "none" || (d == null ? void 0 : d.display) === "none" ? c("UNMOUNT") : c(u && m !== g ? "ANIMATION_OUT" : "UNMOUNT"), r.current = e;
|
|
5212
5212
|
}
|
|
5213
|
-
}, [e, c]),
|
|
5213
|
+
}, [e, c]), le(() => {
|
|
5214
5214
|
if (t) {
|
|
5215
5215
|
let d;
|
|
5216
5216
|
const u = t.ownerDocument.defaultView ?? window, l = (g) => {
|
|
@@ -5248,7 +5248,7 @@ var qu = f[" useId ".trim().toString()] || (() => {
|
|
|
5248
5248
|
}), Ku = 0;
|
|
5249
5249
|
function ht(e) {
|
|
5250
5250
|
const [t, n] = f.useState(qu());
|
|
5251
|
-
return
|
|
5251
|
+
return le(() => {
|
|
5252
5252
|
n((o) => o ?? String(Ku++));
|
|
5253
5253
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
5254
5254
|
}
|
|
@@ -5321,7 +5321,7 @@ var Ju = f.forwardRef((e, t) => {
|
|
|
5321
5321
|
return f.useEffect(() => {
|
|
5322
5322
|
const w = requestAnimationFrame(() => v.current = !1);
|
|
5323
5323
|
return () => cancelAnimationFrame(w);
|
|
5324
|
-
}, []),
|
|
5324
|
+
}, []), le(() => {
|
|
5325
5325
|
const w = d.current;
|
|
5326
5326
|
if (w) {
|
|
5327
5327
|
y.current = y.current || {
|
|
@@ -5389,9 +5389,9 @@ var nf = "DismissableLayer", mo = "dismissableLayer.update", of = "dismissableLa
|
|
|
5389
5389
|
onInteractOutside: a,
|
|
5390
5390
|
onDismiss: i,
|
|
5391
5391
|
...c
|
|
5392
|
-
} = e, d = f.useContext(Ys), [u, l] = f.useState(null), m = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = f.useState({}), b = ne(t, (k) => l(k)), h = Array.from(d.layers), [v] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), y = h.indexOf(v), w = u ? h.indexOf(u) : -1, x = d.layersWithOutsidePointerEventsDisabled.size > 0, S = w >= y,
|
|
5393
|
-
const C = k.target,
|
|
5394
|
-
!S ||
|
|
5392
|
+
} = e, d = f.useContext(Ys), [u, l] = f.useState(null), m = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = f.useState({}), b = ne(t, (k) => l(k)), h = Array.from(d.layers), [v] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), y = h.indexOf(v), w = u ? h.indexOf(u) : -1, x = d.layersWithOutsidePointerEventsDisabled.size > 0, S = w >= y, N = cf((k) => {
|
|
5393
|
+
const C = k.target, I = [...d.branches].some((B) => B.contains(C));
|
|
5394
|
+
!S || I || (r == null || r(k), a == null || a(k), k.defaultPrevented || i == null || i());
|
|
5395
5395
|
}, m), E = lf((k) => {
|
|
5396
5396
|
const C = k.target;
|
|
5397
5397
|
[...d.branches].some((B) => B.contains(C)) || (s == null || s(k), a == null || a(k), k.defaultPrevented || i == null || i());
|
|
@@ -5421,7 +5421,7 @@ var nf = "DismissableLayer", mo = "dismissableLayer.update", of = "dismissableLa
|
|
|
5421
5421
|
onBlurCapture: G(e.onBlurCapture, E.onBlurCapture),
|
|
5422
5422
|
onPointerDownCapture: G(
|
|
5423
5423
|
e.onPointerDownCapture,
|
|
5424
|
-
|
|
5424
|
+
N.onPointerDownCapture
|
|
5425
5425
|
)
|
|
5426
5426
|
}
|
|
5427
5427
|
);
|
|
@@ -5519,8 +5519,8 @@ var Yn = "focusScope.autoFocusOnMount", qn = "focusScope.autoFocusOnUnmount", Ar
|
|
|
5519
5519
|
S !== null && (i.contains(S) || Ze(l.current, { select: !0 }));
|
|
5520
5520
|
}, y = function(x) {
|
|
5521
5521
|
if (document.activeElement === document.body)
|
|
5522
|
-
for (const
|
|
5523
|
-
|
|
5522
|
+
for (const N of x)
|
|
5523
|
+
N.removedNodes.length > 0 && Ze(i);
|
|
5524
5524
|
};
|
|
5525
5525
|
document.addEventListener("focusin", h), document.addEventListener("focusout", v);
|
|
5526
5526
|
const w = new MutationObserver(y);
|
|
@@ -5623,7 +5623,7 @@ function gf(e) {
|
|
|
5623
5623
|
var vf = "Portal", Fo = f.forwardRef((e, t) => {
|
|
5624
5624
|
var i;
|
|
5625
5625
|
const { container: n, ...o } = e, [r, s] = f.useState(!1);
|
|
5626
|
-
|
|
5626
|
+
le(() => s(!0), []);
|
|
5627
5627
|
const a = n || r && ((i = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : i.body);
|
|
5628
5628
|
return a ? ls.createPortal(/* @__PURE__ */ p(j.div, { ...o, ref: t }), a) : null;
|
|
5629
5629
|
});
|
|
@@ -5790,11 +5790,11 @@ var Qs = Nf(), Zn = function() {
|
|
|
5790
5790
|
onScrollCapture: Zn,
|
|
5791
5791
|
onWheelCapture: Zn,
|
|
5792
5792
|
onTouchMoveCapture: Zn
|
|
5793
|
-
}), r = o[0], s = o[1], a = e.forwardProps, i = e.children, c = e.className, d = e.removeScrollBar, u = e.enabled, l = e.shards, m = e.sideCar, g = e.noRelative, b = e.noIsolation, h = e.inert, v = e.allowPinchZoom, y = e.as, w = y === void 0 ? "div" : y, x = e.gapMode, S = Zs(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]),
|
|
5793
|
+
}), r = o[0], s = o[1], a = e.forwardProps, i = e.children, c = e.className, d = e.removeScrollBar, u = e.enabled, l = e.shards, m = e.sideCar, g = e.noRelative, b = e.noIsolation, h = e.inert, v = e.allowPinchZoom, y = e.as, w = y === void 0 ? "div" : y, x = e.gapMode, S = Zs(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), N = m, E = kf([n, t]), k = De(De({}, S), r);
|
|
5794
5794
|
return f.createElement(
|
|
5795
5795
|
f.Fragment,
|
|
5796
5796
|
null,
|
|
5797
|
-
u && f.createElement(
|
|
5797
|
+
u && f.createElement(N, { sideCar: Qs, removeScrollBar: d, shards: l, noRelative: g, noIsolation: b, inert: h, setCallbacks: s, allowPinchZoom: !!v, lockRef: n, gapMode: x }),
|
|
5798
5798
|
a ? f.cloneElement(f.Children.only(i), De(De({}, k), { ref: E })) : f.createElement(w, De({}, k, { className: c, ref: E }), i)
|
|
5799
5799
|
);
|
|
5800
5800
|
});
|
|
@@ -6041,34 +6041,34 @@ function Jf(e) {
|
|
|
6041
6041
|
var i = f.useCallback(function(h, v) {
|
|
6042
6042
|
if ("touches" in h && h.touches.length === 2 || h.type === "wheel" && h.ctrlKey)
|
|
6043
6043
|
return !a.current.allowPinchZoom;
|
|
6044
|
-
var y = nn(h), w = n.current, x = "deltaX" in h ? h.deltaX : w[0] - y[0], S = "deltaY" in h ? h.deltaY : w[1] - y[1],
|
|
6044
|
+
var y = nn(h), w = n.current, x = "deltaX" in h ? h.deltaX : w[0] - y[0], S = "deltaY" in h ? h.deltaY : w[1] - y[1], N, E = h.target, k = Math.abs(x) > Math.abs(S) ? "h" : "v";
|
|
6045
6045
|
if ("touches" in h && k === "h" && E.type === "range")
|
|
6046
6046
|
return !1;
|
|
6047
|
-
var C = window.getSelection(),
|
|
6047
|
+
var C = window.getSelection(), I = C && C.anchorNode, B = I ? I === E || I.contains(E) : !1;
|
|
6048
6048
|
if (B)
|
|
6049
6049
|
return !1;
|
|
6050
6050
|
var A = zr(k, E);
|
|
6051
6051
|
if (!A)
|
|
6052
6052
|
return !0;
|
|
6053
|
-
if (A ?
|
|
6053
|
+
if (A ? N = k : (N = k === "v" ? "h" : "v", A = zr(k, E)), !A)
|
|
6054
6054
|
return !1;
|
|
6055
|
-
if (!o.current && "changedTouches" in h && (x || S) && (o.current =
|
|
6055
|
+
if (!o.current && "changedTouches" in h && (x || S) && (o.current = N), !N)
|
|
6056
6056
|
return !0;
|
|
6057
|
-
var T = o.current ||
|
|
6057
|
+
var T = o.current || N;
|
|
6058
6058
|
return qf(T, v, h, T === "h" ? x : S);
|
|
6059
6059
|
}, []), c = f.useCallback(function(h) {
|
|
6060
6060
|
var v = h;
|
|
6061
6061
|
if (!(!xt.length || xt[xt.length - 1] !== s)) {
|
|
6062
|
-
var y = "deltaY" in v ? $r(v) : nn(v), w = t.current.filter(function(
|
|
6063
|
-
return
|
|
6062
|
+
var y = "deltaY" in v ? $r(v) : nn(v), w = t.current.filter(function(N) {
|
|
6063
|
+
return N.name === v.type && (N.target === v.target || v.target === N.shadowParent) && Kf(N.delta, y);
|
|
6064
6064
|
})[0];
|
|
6065
6065
|
if (w && w.should) {
|
|
6066
6066
|
v.cancelable && v.preventDefault();
|
|
6067
6067
|
return;
|
|
6068
6068
|
}
|
|
6069
6069
|
if (!w) {
|
|
6070
|
-
var x = (a.current.shards || []).map(Fr).filter(Boolean).filter(function(
|
|
6071
|
-
return
|
|
6070
|
+
var x = (a.current.shards || []).map(Fr).filter(Boolean).filter(function(N) {
|
|
6071
|
+
return N.contains(v.target);
|
|
6072
6072
|
}), S = x.length > 0 ? i(v, x[0]) : !a.current.noIsolation;
|
|
6073
6073
|
S && v.cancelable && v.preventDefault();
|
|
6074
6074
|
}
|
|
@@ -6252,7 +6252,7 @@ var ca = "AvatarImage", la = f.forwardRef(
|
|
|
6252
6252
|
}, ...s } = e, a = aa(ca, n), i = fp(o, s), c = ve((d) => {
|
|
6253
6253
|
r(d), a.onImageLoadingStatusChange(d);
|
|
6254
6254
|
});
|
|
6255
|
-
return
|
|
6255
|
+
return le(() => {
|
|
6256
6256
|
i !== "idle" && c(i);
|
|
6257
6257
|
}, [i, c]), i === "loaded" ? /* @__PURE__ */ p(j.img, { ...s, ref: t, src: o }) : null;
|
|
6258
6258
|
}
|
|
@@ -6277,9 +6277,9 @@ function fp(e, { referrerPolicy: t, crossOrigin: n }) {
|
|
|
6277
6277
|
const o = cp(), r = f.useRef(null), s = o ? (r.current || (r.current = new window.Image()), r.current) : null, [a, i] = f.useState(
|
|
6278
6278
|
() => Vr(s, e)
|
|
6279
6279
|
);
|
|
6280
|
-
return
|
|
6280
|
+
return le(() => {
|
|
6281
6281
|
i(Vr(s, e));
|
|
6282
|
-
}, [s, e]),
|
|
6282
|
+
}, [s, e]), le(() => {
|
|
6283
6283
|
const c = (l) => () => {
|
|
6284
6284
|
i(l);
|
|
6285
6285
|
};
|
|
@@ -6297,7 +6297,7 @@ function En(e) {
|
|
|
6297
6297
|
}
|
|
6298
6298
|
function Rn(e) {
|
|
6299
6299
|
const [t, n] = f.useState(void 0);
|
|
6300
|
-
return
|
|
6300
|
+
return le(() => {
|
|
6301
6301
|
if (e) {
|
|
6302
6302
|
n({ width: e.offsetWidth, height: e.offsetHeight });
|
|
6303
6303
|
const o = new ResizeObserver((r) => {
|
|
@@ -6496,13 +6496,13 @@ var va = "CheckboxBubbleInput", ba = f.forwardRef(
|
|
|
6496
6496
|
f.useEffect(() => {
|
|
6497
6497
|
const w = m;
|
|
6498
6498
|
if (!w) return;
|
|
6499
|
-
const x = window.HTMLInputElement.prototype,
|
|
6499
|
+
const x = window.HTMLInputElement.prototype, N = Object.getOwnPropertyDescriptor(
|
|
6500
6500
|
x,
|
|
6501
6501
|
"checked"
|
|
6502
6502
|
).set, E = !r.current;
|
|
6503
|
-
if (h !== s &&
|
|
6503
|
+
if (h !== s && N) {
|
|
6504
6504
|
const k = new Event("click", { bubbles: E });
|
|
6505
|
-
w.indeterminate = Je(s),
|
|
6505
|
+
w.indeterminate = Je(s), N.call(w, Je(s) ? !1 : s), w.dispatchEvent(k);
|
|
6506
6506
|
}
|
|
6507
6507
|
}, [m, h, s, r]);
|
|
6508
6508
|
const y = f.useRef(Je(s) ? !1 : s);
|
|
@@ -6730,17 +6730,17 @@ async function Pp(e, t) {
|
|
|
6730
6730
|
} : {
|
|
6731
6731
|
x: 1,
|
|
6732
6732
|
y: 1
|
|
6733
|
-
},
|
|
6733
|
+
}, N = mn(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
6734
6734
|
elements: i,
|
|
6735
6735
|
rect: w,
|
|
6736
6736
|
offsetParent: x,
|
|
6737
6737
|
strategy: c
|
|
6738
6738
|
}) : w);
|
|
6739
6739
|
return {
|
|
6740
|
-
top: (y.top -
|
|
6741
|
-
bottom: (
|
|
6742
|
-
left: (y.left -
|
|
6743
|
-
right: (
|
|
6740
|
+
top: (y.top - N.top + b.top) / S.y,
|
|
6741
|
+
bottom: (N.bottom - y.bottom + b.bottom) / S.y,
|
|
6742
|
+
left: (y.left - N.left + b.left) / S.x,
|
|
6743
|
+
right: (N.right - y.right + b.right) / S.x
|
|
6744
6744
|
};
|
|
6745
6745
|
}
|
|
6746
6746
|
const Ap = 50, _p = async (e, t, n) => {
|
|
@@ -6772,7 +6772,7 @@ const Ap = 50, _p = async (e, t, n) => {
|
|
|
6772
6772
|
} = v, {
|
|
6773
6773
|
x,
|
|
6774
6774
|
y: S,
|
|
6775
|
-
data:
|
|
6775
|
+
data: N,
|
|
6776
6776
|
reset: E
|
|
6777
6777
|
} = await w({
|
|
6778
6778
|
x: u,
|
|
@@ -6790,7 +6790,7 @@ const Ap = 50, _p = async (e, t, n) => {
|
|
|
6790
6790
|
});
|
|
6791
6791
|
u = x ?? u, l = S ?? l, b[y] = {
|
|
6792
6792
|
...b[y],
|
|
6793
|
-
...
|
|
6793
|
+
...N
|
|
6794
6794
|
}, E && g < Ap && (g++, typeof E == "object" && (E.placement && (m = E.placement), E.rects && (d = E.rects === !0 ? await a.getElementRects({
|
|
6795
6795
|
reference: e,
|
|
6796
6796
|
floating: t,
|
|
@@ -6828,20 +6828,20 @@ const Ap = 50, _p = async (e, t, n) => {
|
|
|
6828
6828
|
const l = wa(u), m = {
|
|
6829
6829
|
x: n,
|
|
6830
6830
|
y: o
|
|
6831
|
-
}, g = Uo(r), b = Wo(g), h = await a.getDimensions(d), v = g === "y", y = v ? "top" : "left", w = v ? "bottom" : "right", x = v ? "clientHeight" : "clientWidth", S = s.reference[b] + s.reference[g] - m[g] - s.floating[b],
|
|
6831
|
+
}, g = Uo(r), b = Wo(g), h = await a.getDimensions(d), v = g === "y", y = v ? "top" : "left", w = v ? "bottom" : "right", x = v ? "clientHeight" : "clientWidth", S = s.reference[b] + s.reference[g] - m[g] - s.floating[b], N = m[g] - s.reference[g], E = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(d));
|
|
6832
6832
|
let k = E ? E[x] : 0;
|
|
6833
6833
|
(!k || !await (a.isElement == null ? void 0 : a.isElement(E))) && (k = i.floating[x] || s.floating[b]);
|
|
6834
|
-
const C = S / 2 -
|
|
6834
|
+
const C = S / 2 - N / 2, I = k / 2 - h[b] / 2 - 1, B = Qe(l[y], I), A = Qe(l[w], I), T = B, P = k - h[b] - A, M = k / 2 - h[b] / 2 + C, L = go(T, M, P), R = !c.arrow && At(r) != null && M !== L && s.reference[b] / 2 - (M < T ? B : A) - h[b] / 2 < 0, D = R ? M < T ? M - T : M - P : 0;
|
|
6835
6835
|
return {
|
|
6836
6836
|
[g]: m[g] + D,
|
|
6837
6837
|
data: {
|
|
6838
6838
|
[g]: L,
|
|
6839
|
-
centerOffset:
|
|
6840
|
-
...
|
|
6839
|
+
centerOffset: M - L - D,
|
|
6840
|
+
...R && {
|
|
6841
6841
|
alignmentOffset: D
|
|
6842
6842
|
}
|
|
6843
6843
|
},
|
|
6844
|
-
reset:
|
|
6844
|
+
reset: R
|
|
6845
6845
|
};
|
|
6846
6846
|
}
|
|
6847
6847
|
}), Mp = function(e) {
|
|
@@ -6868,57 +6868,57 @@ const Ap = 50, _p = async (e, t, n) => {
|
|
|
6868
6868
|
} = Ue(e, t);
|
|
6869
6869
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
6870
6870
|
return {};
|
|
6871
|
-
const y = je(r), w = ze(i), x = je(i) === i, S = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)),
|
|
6872
|
-
!m && E &&
|
|
6873
|
-
const k = [i, ...
|
|
6871
|
+
const y = je(r), w = ze(i), x = je(i) === i, S = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), N = m || (x || !h ? [pn(i)] : Cp(i)), E = b !== "none";
|
|
6872
|
+
!m && E && N.push(...Np(i, h, b, S));
|
|
6873
|
+
const k = [i, ...N], C = await c.detectOverflow(t, v), I = [];
|
|
6874
6874
|
let B = ((o = s.flip) == null ? void 0 : o.overflows) || [];
|
|
6875
|
-
if (u &&
|
|
6876
|
-
const
|
|
6877
|
-
|
|
6875
|
+
if (u && I.push(C[y]), l) {
|
|
6876
|
+
const M = Sp(r, a, S);
|
|
6877
|
+
I.push(C[M[0]], C[M[1]]);
|
|
6878
6878
|
}
|
|
6879
6879
|
if (B = [...B, {
|
|
6880
6880
|
placement: r,
|
|
6881
|
-
overflows:
|
|
6882
|
-
}], !
|
|
6881
|
+
overflows: I
|
|
6882
|
+
}], !I.every((M) => M <= 0)) {
|
|
6883
6883
|
var A, T;
|
|
6884
|
-
const
|
|
6884
|
+
const M = (((A = s.flip) == null ? void 0 : A.index) || 0) + 1, L = k[M];
|
|
6885
6885
|
if (L && (!(l === "alignment" ? w !== ze(L) : !1) || // We leave the current main axis only if every placement on that axis
|
|
6886
6886
|
// overflows the main axis.
|
|
6887
6887
|
B.every((z) => ze(z.placement) === w ? z.overflows[0] > 0 : !0)))
|
|
6888
6888
|
return {
|
|
6889
6889
|
data: {
|
|
6890
|
-
index:
|
|
6890
|
+
index: M,
|
|
6891
6891
|
overflows: B
|
|
6892
6892
|
},
|
|
6893
6893
|
reset: {
|
|
6894
6894
|
placement: L
|
|
6895
6895
|
}
|
|
6896
6896
|
};
|
|
6897
|
-
let
|
|
6898
|
-
if (!
|
|
6897
|
+
let R = (T = B.filter((D) => D.overflows[0] <= 0).sort((D, z) => D.overflows[1] - z.overflows[1])[0]) == null ? void 0 : T.placement;
|
|
6898
|
+
if (!R)
|
|
6899
6899
|
switch (g) {
|
|
6900
6900
|
case "bestFit": {
|
|
6901
6901
|
var P;
|
|
6902
6902
|
const D = (P = B.filter((z) => {
|
|
6903
6903
|
if (E) {
|
|
6904
|
-
const
|
|
6905
|
-
return
|
|
6904
|
+
const q = ze(z.placement);
|
|
6905
|
+
return q === w || // Create a bias to the `y` side axis due to horizontal
|
|
6906
6906
|
// reading directions favoring greater width.
|
|
6907
|
-
|
|
6907
|
+
q === "y";
|
|
6908
6908
|
}
|
|
6909
6909
|
return !0;
|
|
6910
|
-
}).map((z) => [z.placement, z.overflows.filter((
|
|
6911
|
-
D && (
|
|
6910
|
+
}).map((z) => [z.placement, z.overflows.filter((q) => q > 0).reduce((q, O) => q + O, 0)]).sort((z, q) => z[1] - q[1])[0]) == null ? void 0 : P[0];
|
|
6911
|
+
D && (R = D);
|
|
6912
6912
|
break;
|
|
6913
6913
|
}
|
|
6914
6914
|
case "initialPlacement":
|
|
6915
|
-
|
|
6915
|
+
R = i;
|
|
6916
6916
|
break;
|
|
6917
6917
|
}
|
|
6918
|
-
if (r !==
|
|
6918
|
+
if (r !== R)
|
|
6919
6919
|
return {
|
|
6920
6920
|
reset: {
|
|
6921
|
-
placement:
|
|
6921
|
+
placement: R
|
|
6922
6922
|
}
|
|
6923
6923
|
};
|
|
6924
6924
|
}
|
|
@@ -7114,13 +7114,13 @@ const Dp = function(e) {
|
|
|
7114
7114
|
...h
|
|
7115
7115
|
};
|
|
7116
7116
|
if (c) {
|
|
7117
|
-
const x = m === "y" ? "height" : "width", S = s.reference[m] - s.floating[x] + v.mainAxis,
|
|
7118
|
-
g < S ? g = S : g >
|
|
7117
|
+
const x = m === "y" ? "height" : "width", S = s.reference[m] - s.floating[x] + v.mainAxis, N = s.reference[m] + s.reference[x] - v.mainAxis;
|
|
7118
|
+
g < S ? g = S : g > N && (g = N);
|
|
7119
7119
|
}
|
|
7120
7120
|
if (d) {
|
|
7121
7121
|
var y, w;
|
|
7122
|
-
const x = m === "y" ? "width" : "height", S = xa.has(je(r)),
|
|
7123
|
-
b <
|
|
7122
|
+
const x = m === "y" ? "width" : "height", S = xa.has(je(r)), N = s.reference[l] - s.floating[x] + (S && ((y = a.offset) == null ? void 0 : y[l]) || 0) + (S ? 0 : v.crossAxis), E = s.reference[l] + s.reference[x] + (S ? 0 : ((w = a.offset) == null ? void 0 : w[l]) || 0) - (S ? v.crossAxis : 0);
|
|
7123
|
+
b < N ? b = N : b > E && (b = E);
|
|
7124
7124
|
}
|
|
7125
7125
|
return {
|
|
7126
7126
|
[m]: g,
|
|
@@ -7149,8 +7149,8 @@ const Dp = function(e) {
|
|
|
7149
7149
|
} = s.floating;
|
|
7150
7150
|
let v, y;
|
|
7151
7151
|
l === "top" || l === "bottom" ? (v = l, y = m === (await (a.isRTL == null ? void 0 : a.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (y = l, v = m === "end" ? "top" : "bottom");
|
|
7152
|
-
const w = h - u.top - u.bottom, x = b - u.left - u.right, S = Qe(h - u[v], w),
|
|
7153
|
-
let k = S, C =
|
|
7152
|
+
const w = h - u.top - u.bottom, x = b - u.left - u.right, S = Qe(h - u[v], w), N = Qe(b - u[y], x), E = !t.middlewareData.shift;
|
|
7153
|
+
let k = S, C = N;
|
|
7154
7154
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (C = x), (o = t.middlewareData.shift) != null && o.enabled.y && (k = w), E && !m) {
|
|
7155
7155
|
const B = Ce(u.left, 0), A = Ce(u.right, 0), T = Ce(u.top, 0), P = Ce(u.bottom, 0);
|
|
7156
7156
|
g ? C = b - 2 * (B !== 0 || A !== 0 ? B + A : Ce(u.left, u.right)) : k = h - 2 * (T !== 0 || P !== 0 ? T + P : Ce(u.top, u.bottom));
|
|
@@ -7160,8 +7160,8 @@ const Dp = function(e) {
|
|
|
7160
7160
|
availableWidth: C,
|
|
7161
7161
|
availableHeight: k
|
|
7162
7162
|
});
|
|
7163
|
-
const
|
|
7164
|
-
return b !==
|
|
7163
|
+
const I = await a.getDimensions(i.floating);
|
|
7164
|
+
return b !== I.width || h !== I.height ? {
|
|
7165
7165
|
reset: {
|
|
7166
7166
|
rects: !0
|
|
7167
7167
|
}
|
|
@@ -7597,7 +7597,7 @@ function rm(e, t) {
|
|
|
7597
7597
|
threshold: Ce(0, Qe(1, c)) || 1
|
|
7598
7598
|
};
|
|
7599
7599
|
let S = !0;
|
|
7600
|
-
function
|
|
7600
|
+
function N(E) {
|
|
7601
7601
|
const k = E[0].intersectionRatio;
|
|
7602
7602
|
if (k !== c) {
|
|
7603
7603
|
if (!S)
|
|
@@ -7609,13 +7609,13 @@ function rm(e, t) {
|
|
|
7609
7609
|
k === 1 && !Pa(d, e.getBoundingClientRect()) && a(), S = !1;
|
|
7610
7610
|
}
|
|
7611
7611
|
try {
|
|
7612
|
-
n = new IntersectionObserver(
|
|
7612
|
+
n = new IntersectionObserver(N, {
|
|
7613
7613
|
...x,
|
|
7614
7614
|
// Handle <iframe>s
|
|
7615
7615
|
root: r.ownerDocument
|
|
7616
7616
|
});
|
|
7617
7617
|
} catch {
|
|
7618
|
-
n = new IntersectionObserver(
|
|
7618
|
+
n = new IntersectionObserver(N, x);
|
|
7619
7619
|
}
|
|
7620
7620
|
n.observe(e);
|
|
7621
7621
|
}
|
|
@@ -7742,7 +7742,7 @@ function hm(e) {
|
|
|
7742
7742
|
z !== E.current && (E.current = z, h(z));
|
|
7743
7743
|
}, []), x = f.useCallback((z) => {
|
|
7744
7744
|
z !== k.current && (k.current = z, y(z));
|
|
7745
|
-
}, []), S = s || b,
|
|
7745
|
+
}, []), S = s || b, N = a || v, E = f.useRef(null), k = f.useRef(null), C = f.useRef(u), I = c != null, B = ro(c), A = ro(r), T = ro(d), P = f.useCallback(() => {
|
|
7746
7746
|
if (!E.current || !k.current)
|
|
7747
7747
|
return;
|
|
7748
7748
|
const z = {
|
|
@@ -7750,17 +7750,17 @@ function hm(e) {
|
|
|
7750
7750
|
strategy: n,
|
|
7751
7751
|
middleware: m
|
|
7752
7752
|
};
|
|
7753
|
-
A.current && (z.platform = A.current), fm(E.current, k.current, z).then((
|
|
7754
|
-
const
|
|
7755
|
-
...
|
|
7753
|
+
A.current && (z.platform = A.current), fm(E.current, k.current, z).then((q) => {
|
|
7754
|
+
const O = {
|
|
7755
|
+
...q,
|
|
7756
7756
|
// The floating element's position may be recomputed while it's closed
|
|
7757
7757
|
// but still mounted (such as when transitioning out). To ensure
|
|
7758
7758
|
// `isPositioned` will be `false` initially on the next open, avoid
|
|
7759
7759
|
// setting it to `true` when `open === false` (must be specified).
|
|
7760
7760
|
isPositioned: T.current !== !1
|
|
7761
7761
|
};
|
|
7762
|
-
|
|
7763
|
-
l(
|
|
7762
|
+
M.current && !hn(C.current, O) && (C.current = O, wn.flushSync(() => {
|
|
7763
|
+
l(O);
|
|
7764
7764
|
}));
|
|
7765
7765
|
});
|
|
7766
7766
|
}, [m, t, n, A, T]);
|
|
@@ -7770,52 +7770,52 @@ function hm(e) {
|
|
|
7770
7770
|
isPositioned: !1
|
|
7771
7771
|
})));
|
|
7772
7772
|
}, [d]);
|
|
7773
|
-
const
|
|
7774
|
-
ln(() => (
|
|
7775
|
-
|
|
7773
|
+
const M = f.useRef(!1);
|
|
7774
|
+
ln(() => (M.current = !0, () => {
|
|
7775
|
+
M.current = !1;
|
|
7776
7776
|
}), []), ln(() => {
|
|
7777
|
-
if (S && (E.current = S),
|
|
7777
|
+
if (S && (E.current = S), N && (k.current = N), S && N) {
|
|
7778
7778
|
if (B.current)
|
|
7779
|
-
return B.current(S,
|
|
7779
|
+
return B.current(S, N, P);
|
|
7780
7780
|
P();
|
|
7781
7781
|
}
|
|
7782
|
-
}, [S,
|
|
7782
|
+
}, [S, N, P, B, I]);
|
|
7783
7783
|
const L = f.useMemo(() => ({
|
|
7784
7784
|
reference: E,
|
|
7785
7785
|
floating: k,
|
|
7786
7786
|
setReference: w,
|
|
7787
7787
|
setFloating: x
|
|
7788
|
-
}), [w, x]),
|
|
7788
|
+
}), [w, x]), R = f.useMemo(() => ({
|
|
7789
7789
|
reference: S,
|
|
7790
|
-
floating:
|
|
7791
|
-
}), [S,
|
|
7790
|
+
floating: N
|
|
7791
|
+
}), [S, N]), D = f.useMemo(() => {
|
|
7792
7792
|
const z = {
|
|
7793
7793
|
position: n,
|
|
7794
7794
|
left: 0,
|
|
7795
7795
|
top: 0
|
|
7796
7796
|
};
|
|
7797
|
-
if (!
|
|
7797
|
+
if (!R.floating)
|
|
7798
7798
|
return z;
|
|
7799
|
-
const
|
|
7799
|
+
const q = Qr(R.floating, u.x), O = Qr(R.floating, u.y);
|
|
7800
7800
|
return i ? {
|
|
7801
7801
|
...z,
|
|
7802
|
-
transform: "translate(" +
|
|
7803
|
-
...Aa(
|
|
7802
|
+
transform: "translate(" + q + "px, " + O + "px)",
|
|
7803
|
+
...Aa(R.floating) >= 1.5 && {
|
|
7804
7804
|
willChange: "transform"
|
|
7805
7805
|
}
|
|
7806
7806
|
} : {
|
|
7807
7807
|
position: n,
|
|
7808
|
-
left:
|
|
7809
|
-
top:
|
|
7808
|
+
left: q,
|
|
7809
|
+
top: O
|
|
7810
7810
|
};
|
|
7811
|
-
}, [n, i,
|
|
7811
|
+
}, [n, i, R.floating, u.x, u.y]);
|
|
7812
7812
|
return f.useMemo(() => ({
|
|
7813
7813
|
...u,
|
|
7814
7814
|
update: P,
|
|
7815
7815
|
refs: L,
|
|
7816
|
-
elements:
|
|
7816
|
+
elements: R,
|
|
7817
7817
|
floatingStyles: D
|
|
7818
|
-
}), [u, P, L,
|
|
7818
|
+
}), [u, P, L, R, D]);
|
|
7819
7819
|
}
|
|
7820
7820
|
const gm = (e) => {
|
|
7821
7821
|
function t(n) {
|
|
@@ -7933,15 +7933,15 @@ var Ko = "PopperContent", [Nm, Tm] = Ia(Ko), za = f.forwardRef(
|
|
|
7933
7933
|
updatePositionStrategy: g = "optimized",
|
|
7934
7934
|
onPlaced: b,
|
|
7935
7935
|
...h
|
|
7936
|
-
} = e, v = Ma(Ko, n), [y, w] = f.useState(null), x = ne(t, (ue) => w(ue)), [S,
|
|
7936
|
+
} = e, v = Ma(Ko, n), [y, w] = f.useState(null), x = ne(t, (ue) => w(ue)), [S, N] = f.useState(null), E = Rn(S), k = (E == null ? void 0 : E.width) ?? 0, C = (E == null ? void 0 : E.height) ?? 0, I = o + (s !== "center" ? "-" + s : ""), B = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, A = Array.isArray(d) ? d : [d], T = A.length > 0, P = {
|
|
7937
7937
|
padding: B,
|
|
7938
7938
|
boundary: A.filter(Am),
|
|
7939
7939
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
7940
7940
|
altBoundary: T
|
|
7941
|
-
}, { refs:
|
|
7941
|
+
}, { refs: M, floatingStyles: L, placement: R, isPositioned: D, middlewareData: z } = hm({
|
|
7942
7942
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
7943
7943
|
strategy: "fixed",
|
|
7944
|
-
placement:
|
|
7944
|
+
placement: I,
|
|
7945
7945
|
whileElementsMounted: (...ue) => sm(...ue, {
|
|
7946
7946
|
animationFrame: g === "always"
|
|
7947
7947
|
}),
|
|
@@ -7968,24 +7968,24 @@ var Ko = "PopperContent", [Nm, Tm] = Ia(Ko), za = f.forwardRef(
|
|
|
7968
7968
|
_m({ arrowWidth: k, arrowHeight: C }),
|
|
7969
7969
|
m && Sm({ strategy: "referenceHidden", ...P })
|
|
7970
7970
|
]
|
|
7971
|
-
}), [
|
|
7972
|
-
|
|
7971
|
+
}), [q, O] = Ba(R), ae = ve(b);
|
|
7972
|
+
le(() => {
|
|
7973
7973
|
D && (ae == null || ae());
|
|
7974
7974
|
}, [D, ae]);
|
|
7975
|
-
const
|
|
7976
|
-
return
|
|
7975
|
+
const de = (V = z.arrow) == null ? void 0 : V.x, K = (W = z.arrow) == null ? void 0 : W.y, oe = ((X = z.arrow) == null ? void 0 : X.centerOffset) !== 0, [Y, te] = f.useState();
|
|
7976
|
+
return le(() => {
|
|
7977
7977
|
y && te(window.getComputedStyle(y).zIndex);
|
|
7978
7978
|
}, [y]), /* @__PURE__ */ p(
|
|
7979
7979
|
"div",
|
|
7980
7980
|
{
|
|
7981
|
-
ref:
|
|
7981
|
+
ref: M.setFloating,
|
|
7982
7982
|
"data-radix-popper-content-wrapper": "",
|
|
7983
7983
|
style: {
|
|
7984
7984
|
...L,
|
|
7985
7985
|
transform: D ? L.transform : "translate(0, -200%)",
|
|
7986
7986
|
// keep off the page when measuring
|
|
7987
7987
|
minWidth: "max-content",
|
|
7988
|
-
zIndex:
|
|
7988
|
+
zIndex: Y,
|
|
7989
7989
|
"--radix-popper-transform-origin": [
|
|
7990
7990
|
(re = z.transformOrigin) == null ? void 0 : re.x,
|
|
7991
7991
|
(ee = z.transformOrigin) == null ? void 0 : ee.y
|
|
@@ -8003,16 +8003,16 @@ var Ko = "PopperContent", [Nm, Tm] = Ia(Ko), za = f.forwardRef(
|
|
|
8003
8003
|
Nm,
|
|
8004
8004
|
{
|
|
8005
8005
|
scope: n,
|
|
8006
|
-
placedSide:
|
|
8007
|
-
onArrowChange:
|
|
8008
|
-
arrowX:
|
|
8009
|
-
arrowY:
|
|
8006
|
+
placedSide: q,
|
|
8007
|
+
onArrowChange: N,
|
|
8008
|
+
arrowX: de,
|
|
8009
|
+
arrowY: K,
|
|
8010
8010
|
shouldHideArrow: oe,
|
|
8011
8011
|
children: /* @__PURE__ */ p(
|
|
8012
8012
|
j.div,
|
|
8013
8013
|
{
|
|
8014
|
-
"data-side":
|
|
8015
|
-
"data-align":
|
|
8014
|
+
"data-side": q,
|
|
8015
|
+
"data-align": O,
|
|
8016
8016
|
...h,
|
|
8017
8017
|
ref: x,
|
|
8018
8018
|
style: {
|
|
@@ -8122,7 +8122,7 @@ var zm = f.forwardRef((e, t) => {
|
|
|
8122
8122
|
defaultProp: i ?? null,
|
|
8123
8123
|
onChange: c,
|
|
8124
8124
|
caller: Ut
|
|
8125
|
-
}), [y, w] = f.useState(!1), x = ve(d), S = ja(n),
|
|
8125
|
+
}), [y, w] = f.useState(!1), x = ve(d), S = ja(n), N = f.useRef(!1), [E, k] = f.useState(0);
|
|
8126
8126
|
return f.useEffect(() => {
|
|
8127
8127
|
const C = m.current;
|
|
8128
8128
|
if (C)
|
|
@@ -8157,20 +8157,20 @@ var zm = f.forwardRef((e, t) => {
|
|
|
8157
8157
|
ref: g,
|
|
8158
8158
|
style: { outline: "none", ...e.style },
|
|
8159
8159
|
onMouseDown: G(e.onMouseDown, () => {
|
|
8160
|
-
|
|
8160
|
+
N.current = !0;
|
|
8161
8161
|
}),
|
|
8162
8162
|
onFocus: G(e.onFocus, (C) => {
|
|
8163
|
-
const
|
|
8164
|
-
if (C.target === C.currentTarget &&
|
|
8163
|
+
const I = !N.current;
|
|
8164
|
+
if (C.target === C.currentTarget && I && !y) {
|
|
8165
8165
|
const B = new CustomEvent(so, Im);
|
|
8166
8166
|
if (C.currentTarget.dispatchEvent(B), !B.defaultPrevented) {
|
|
8167
|
-
const A = S().filter((
|
|
8167
|
+
const A = S().filter((R) => R.focusable), T = A.find((R) => R.active), P = A.find((R) => R.id === h), L = [T, P, ...A].filter(
|
|
8168
8168
|
Boolean
|
|
8169
|
-
).map((
|
|
8169
|
+
).map((R) => R.ref.current);
|
|
8170
8170
|
Ka(L, u);
|
|
8171
8171
|
}
|
|
8172
8172
|
}
|
|
8173
|
-
|
|
8173
|
+
N.current = !1;
|
|
8174
8174
|
}),
|
|
8175
8175
|
onBlur: G(e.onBlur, () => w(!1))
|
|
8176
8176
|
}
|
|
@@ -8580,7 +8580,7 @@ var Qo = "ScrollArea", [hi] = we(Qo), [uh, Re] = hi(Qo), gi = f.forwardRef(
|
|
|
8580
8580
|
dir: r,
|
|
8581
8581
|
scrollHideDelay: s = 600,
|
|
8582
8582
|
...a
|
|
8583
|
-
} = e, [i, c] = f.useState(null), [d, u] = f.useState(null), [l, m] = f.useState(null), [g, b] = f.useState(null), [h, v] = f.useState(null), [y, w] = f.useState(0), [x, S] = f.useState(0), [
|
|
8583
|
+
} = e, [i, c] = f.useState(null), [d, u] = f.useState(null), [l, m] = f.useState(null), [g, b] = f.useState(null), [h, v] = f.useState(null), [y, w] = f.useState(0), [x, S] = f.useState(0), [N, E] = f.useState(!1), [k, C] = f.useState(!1), I = ne(t, (A) => c(A)), B = Vt(r);
|
|
8584
8584
|
return /* @__PURE__ */ p(
|
|
8585
8585
|
uh,
|
|
8586
8586
|
{
|
|
@@ -8595,7 +8595,7 @@ var Qo = "ScrollArea", [hi] = we(Qo), [uh, Re] = hi(Qo), gi = f.forwardRef(
|
|
|
8595
8595
|
onContentChange: m,
|
|
8596
8596
|
scrollbarX: g,
|
|
8597
8597
|
onScrollbarXChange: b,
|
|
8598
|
-
scrollbarXEnabled:
|
|
8598
|
+
scrollbarXEnabled: N,
|
|
8599
8599
|
onScrollbarXEnabledChange: E,
|
|
8600
8600
|
scrollbarY: h,
|
|
8601
8601
|
onScrollbarYChange: v,
|
|
@@ -8608,7 +8608,7 @@ var Qo = "ScrollArea", [hi] = we(Qo), [uh, Re] = hi(Qo), gi = f.forwardRef(
|
|
|
8608
8608
|
{
|
|
8609
8609
|
dir: B,
|
|
8610
8610
|
...a,
|
|
8611
|
-
ref:
|
|
8611
|
+
ref: I,
|
|
8612
8612
|
style: {
|
|
8613
8613
|
position: "relative",
|
|
8614
8614
|
// Pass corner sizes as CSS vars to reduce re-renders of context consumers
|
|
@@ -8902,20 +8902,20 @@ var fh = f.forwardRef((e, t) => {
|
|
|
8902
8902
|
onWheelScroll: u,
|
|
8903
8903
|
onResize: l,
|
|
8904
8904
|
...m
|
|
8905
|
-
} = e, g = Re(He, n), [b, h] = f.useState(null), v = ne(t, (
|
|
8906
|
-
function C(
|
|
8905
|
+
} = e, g = Re(He, n), [b, h] = f.useState(null), v = ne(t, (I) => h(I)), y = f.useRef(null), w = f.useRef(""), x = g.viewport, S = o.content - o.viewport, N = ve(u), E = ve(c), k = Dn(l, 10);
|
|
8906
|
+
function C(I) {
|
|
8907
8907
|
if (y.current) {
|
|
8908
|
-
const B =
|
|
8908
|
+
const B = I.clientX - y.current.left, A = I.clientY - y.current.top;
|
|
8909
8909
|
d({ x: B, y: A });
|
|
8910
8910
|
}
|
|
8911
8911
|
}
|
|
8912
8912
|
return f.useEffect(() => {
|
|
8913
|
-
const
|
|
8913
|
+
const I = (B) => {
|
|
8914
8914
|
const A = B.target;
|
|
8915
|
-
(b == null ? void 0 : b.contains(A)) &&
|
|
8915
|
+
(b == null ? void 0 : b.contains(A)) && N(B, S);
|
|
8916
8916
|
};
|
|
8917
|
-
return document.addEventListener("wheel",
|
|
8918
|
-
}, [x, b, S,
|
|
8917
|
+
return document.addEventListener("wheel", I, { passive: !1 }), () => document.removeEventListener("wheel", I, { passive: !1 });
|
|
8918
|
+
}, [x, b, S, N]), f.useEffect(E, [o, E]), Tt(b, k), Tt(g.content, k), /* @__PURE__ */ p(
|
|
8919
8919
|
gh,
|
|
8920
8920
|
{
|
|
8921
8921
|
scope: n,
|
|
@@ -8931,13 +8931,13 @@ var fh = f.forwardRef((e, t) => {
|
|
|
8931
8931
|
...m,
|
|
8932
8932
|
ref: v,
|
|
8933
8933
|
style: { position: "absolute", ...m.style },
|
|
8934
|
-
onPointerDown: G(e.onPointerDown, (
|
|
8935
|
-
|
|
8934
|
+
onPointerDown: G(e.onPointerDown, (I) => {
|
|
8935
|
+
I.button === 0 && (I.target.setPointerCapture(I.pointerId), y.current = b.getBoundingClientRect(), w.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", g.viewport && (g.viewport.style.scrollBehavior = "auto"), C(I));
|
|
8936
8936
|
}),
|
|
8937
8937
|
onPointerMove: G(e.onPointerMove, C),
|
|
8938
|
-
onPointerUp: G(e.onPointerUp, (
|
|
8939
|
-
const B =
|
|
8940
|
-
B.hasPointerCapture(
|
|
8938
|
+
onPointerUp: G(e.onPointerUp, (I) => {
|
|
8939
|
+
const B = I.target;
|
|
8940
|
+
B.hasPointerCapture(I.pointerId) && B.releasePointerCapture(I.pointerId), document.body.style.webkitUserSelect = w.current, g.viewport && (g.viewport.style.scrollBehavior = ""), y.current = null;
|
|
8941
8941
|
})
|
|
8942
8942
|
}
|
|
8943
8943
|
)
|
|
@@ -9067,7 +9067,7 @@ function Dn(e, t) {
|
|
|
9067
9067
|
}
|
|
9068
9068
|
function Tt(e, t) {
|
|
9069
9069
|
const n = ve(t);
|
|
9070
|
-
|
|
9070
|
+
le(() => {
|
|
9071
9071
|
let o = 0;
|
|
9072
9072
|
if (e) {
|
|
9073
9073
|
const r = new ResizeObserver(() => {
|
|
@@ -9098,17 +9098,17 @@ var xh = gi, Sh = bi, Ch = ki, kh = [" ", "Enter", "ArrowUp", "ArrowDown"], Eh =
|
|
|
9098
9098
|
disabled: m,
|
|
9099
9099
|
required: g,
|
|
9100
9100
|
form: b
|
|
9101
|
-
} = e, h = Fn(t), [v, y] = f.useState(null), [w, x] = f.useState(null), [S,
|
|
9101
|
+
} = e, h = Fn(t), [v, y] = f.useState(null), [w, x] = f.useState(null), [S, N] = f.useState(!1), E = Vt(d), [k, C] = We({
|
|
9102
9102
|
prop: o,
|
|
9103
9103
|
defaultProp: r ?? !1,
|
|
9104
9104
|
onChange: s,
|
|
9105
9105
|
caller: ft
|
|
9106
|
-
}), [
|
|
9106
|
+
}), [I, B] = We({
|
|
9107
9107
|
prop: a,
|
|
9108
9108
|
defaultProp: i,
|
|
9109
9109
|
onChange: c,
|
|
9110
9110
|
caller: ft
|
|
9111
|
-
}), A = f.useRef(null), T = v ? b || !!v.closest("form") : !0, [P,
|
|
9111
|
+
}), A = f.useRef(null), T = v ? b || !!v.closest("form") : !0, [P, M] = f.useState(/* @__PURE__ */ new Set()), L = Array.from(P).map((R) => R.props.value).join(";");
|
|
9112
9112
|
return /* @__PURE__ */ p(Ha, { ...h, children: /* @__PURE__ */ H(
|
|
9113
9113
|
Nh,
|
|
9114
9114
|
{
|
|
@@ -9119,9 +9119,9 @@ var xh = gi, Sh = bi, Ch = ki, kh = [" ", "Enter", "ArrowUp", "ArrowDown"], Eh =
|
|
|
9119
9119
|
valueNode: w,
|
|
9120
9120
|
onValueNodeChange: x,
|
|
9121
9121
|
valueNodeHasChildren: S,
|
|
9122
|
-
onValueNodeHasChildrenChange:
|
|
9122
|
+
onValueNodeHasChildrenChange: N,
|
|
9123
9123
|
contentId: ht(),
|
|
9124
|
-
value:
|
|
9124
|
+
value: I,
|
|
9125
9125
|
onValueChange: B,
|
|
9126
9126
|
open: k,
|
|
9127
9127
|
onOpenChange: C,
|
|
@@ -9133,13 +9133,13 @@ var xh = gi, Sh = bi, Ch = ki, kh = [" ", "Enter", "ArrowUp", "ArrowDown"], Eh =
|
|
|
9133
9133
|
Th,
|
|
9134
9134
|
{
|
|
9135
9135
|
scope: e.__scopeSelect,
|
|
9136
|
-
onNativeOptionAdd: f.useCallback((
|
|
9137
|
-
|
|
9136
|
+
onNativeOptionAdd: f.useCallback((R) => {
|
|
9137
|
+
M((D) => new Set(D).add(R));
|
|
9138
9138
|
}, []),
|
|
9139
|
-
onNativeOptionRemove: f.useCallback((
|
|
9140
|
-
|
|
9139
|
+
onNativeOptionRemove: f.useCallback((R) => {
|
|
9140
|
+
M((D) => {
|
|
9141
9141
|
const z = new Set(D);
|
|
9142
|
-
return z.delete(
|
|
9142
|
+
return z.delete(R), z;
|
|
9143
9143
|
});
|
|
9144
9144
|
}, []),
|
|
9145
9145
|
children: n
|
|
@@ -9153,12 +9153,12 @@ var xh = gi, Sh = bi, Ch = ki, kh = [" ", "Enter", "ArrowUp", "ArrowDown"], Eh =
|
|
|
9153
9153
|
tabIndex: -1,
|
|
9154
9154
|
name: u,
|
|
9155
9155
|
autoComplete: l,
|
|
9156
|
-
value:
|
|
9157
|
-
onChange: (
|
|
9156
|
+
value: I,
|
|
9157
|
+
onChange: (R) => B(R.target.value),
|
|
9158
9158
|
disabled: m,
|
|
9159
9159
|
form: b,
|
|
9160
9160
|
children: [
|
|
9161
|
-
|
|
9161
|
+
I === void 0 ? /* @__PURE__ */ p("option", { value: "" }) : null,
|
|
9162
9162
|
Array.from(P)
|
|
9163
9163
|
]
|
|
9164
9164
|
},
|
|
@@ -9216,7 +9216,7 @@ Ai.displayName = Pi;
|
|
|
9216
9216
|
var _i = "SelectValue", Ii = f.forwardRef(
|
|
9217
9217
|
(e, t) => {
|
|
9218
9218
|
const { __scopeSelect: n, className: o, style: r, children: s, placeholder: a = "", ...i } = e, c = nt(_i, n), { onValueNodeHasChildrenChange: d } = c, u = s !== void 0, l = ne(t, c.onValueNodeChange);
|
|
9219
|
-
return
|
|
9219
|
+
return le(() => {
|
|
9220
9220
|
d(u);
|
|
9221
9221
|
}, [d, u]), /* @__PURE__ */ p(
|
|
9222
9222
|
j.span,
|
|
@@ -9242,7 +9242,7 @@ Oi.displayName = _h;
|
|
|
9242
9242
|
var pt = "SelectContent", Li = f.forwardRef(
|
|
9243
9243
|
(e, t) => {
|
|
9244
9244
|
const n = nt(pt, e.__scopeSelect), [o, r] = f.useState();
|
|
9245
|
-
if (
|
|
9245
|
+
if (le(() => {
|
|
9246
9246
|
r(new DocumentFragment());
|
|
9247
9247
|
}, []), !n.open) {
|
|
9248
9248
|
const s = o;
|
|
@@ -9277,65 +9277,65 @@ var Ae = 10, [Di, ot] = It(pt), Ih = "SelectContentImpl", Mh = /* @__PURE__ */ $
|
|
|
9277
9277
|
avoidCollisions: v,
|
|
9278
9278
|
//
|
|
9279
9279
|
...y
|
|
9280
|
-
} = e, w = nt(pt, n), [x, S] = f.useState(null), [
|
|
9280
|
+
} = e, w = nt(pt, n), [x, S] = f.useState(null), [N, E] = f.useState(null), k = ne(t, (V) => S(V)), [C, I] = f.useState(null), [B, A] = f.useState(
|
|
9281
9281
|
null
|
|
9282
|
-
), T = $n(n), [P,
|
|
9282
|
+
), T = $n(n), [P, M] = f.useState(!1), L = f.useRef(!1);
|
|
9283
9283
|
f.useEffect(() => {
|
|
9284
9284
|
if (x) return rp(x);
|
|
9285
9285
|
}, [x]), bf();
|
|
9286
|
-
const
|
|
9286
|
+
const R = f.useCallback(
|
|
9287
9287
|
(V) => {
|
|
9288
9288
|
const [W, ...X] = T().map((J) => J.ref.current), [re] = X.slice(-1), ee = document.activeElement;
|
|
9289
9289
|
for (const J of V)
|
|
9290
|
-
if (J === ee || (J == null || J.scrollIntoView({ block: "nearest" }), J === W &&
|
|
9290
|
+
if (J === ee || (J == null || J.scrollIntoView({ block: "nearest" }), J === W && N && (N.scrollTop = 0), J === re && N && (N.scrollTop = N.scrollHeight), J == null || J.focus(), document.activeElement !== ee)) return;
|
|
9291
9291
|
},
|
|
9292
|
-
[T,
|
|
9292
|
+
[T, N]
|
|
9293
9293
|
), D = f.useCallback(
|
|
9294
|
-
() =>
|
|
9295
|
-
[
|
|
9294
|
+
() => R([C, x]),
|
|
9295
|
+
[R, C, x]
|
|
9296
9296
|
);
|
|
9297
9297
|
f.useEffect(() => {
|
|
9298
9298
|
P && D();
|
|
9299
9299
|
}, [P, D]);
|
|
9300
|
-
const { onOpenChange: z, triggerPointerDownPosRef:
|
|
9300
|
+
const { onOpenChange: z, triggerPointerDownPosRef: q } = w;
|
|
9301
9301
|
f.useEffect(() => {
|
|
9302
9302
|
if (x) {
|
|
9303
9303
|
let V = { x: 0, y: 0 };
|
|
9304
9304
|
const W = (re) => {
|
|
9305
9305
|
var ee, J;
|
|
9306
9306
|
V = {
|
|
9307
|
-
x: Math.abs(Math.round(re.pageX) - (((ee =
|
|
9308
|
-
y: Math.abs(Math.round(re.pageY) - (((J =
|
|
9307
|
+
x: Math.abs(Math.round(re.pageX) - (((ee = q.current) == null ? void 0 : ee.x) ?? 0)),
|
|
9308
|
+
y: Math.abs(Math.round(re.pageY) - (((J = q.current) == null ? void 0 : J.y) ?? 0))
|
|
9309
9309
|
};
|
|
9310
9310
|
}, X = (re) => {
|
|
9311
|
-
V.x <= 10 && V.y <= 10 ? re.preventDefault() : x.contains(re.target) || z(!1), document.removeEventListener("pointermove", W),
|
|
9311
|
+
V.x <= 10 && V.y <= 10 ? re.preventDefault() : x.contains(re.target) || z(!1), document.removeEventListener("pointermove", W), q.current = null;
|
|
9312
9312
|
};
|
|
9313
|
-
return
|
|
9313
|
+
return q.current !== null && (document.addEventListener("pointermove", W), document.addEventListener("pointerup", X, { capture: !0, once: !0 })), () => {
|
|
9314
9314
|
document.removeEventListener("pointermove", W), document.removeEventListener("pointerup", X, { capture: !0 });
|
|
9315
9315
|
};
|
|
9316
9316
|
}
|
|
9317
|
-
}, [x, z,
|
|
9317
|
+
}, [x, z, q]), f.useEffect(() => {
|
|
9318
9318
|
const V = () => z(!1);
|
|
9319
9319
|
return window.addEventListener("blur", V), window.addEventListener("resize", V), () => {
|
|
9320
9320
|
window.removeEventListener("blur", V), window.removeEventListener("resize", V);
|
|
9321
9321
|
};
|
|
9322
9322
|
}, [z]);
|
|
9323
|
-
const [
|
|
9323
|
+
const [O, ae] = Ji((V) => {
|
|
9324
9324
|
const W = T().filter((ee) => !ee.disabled), X = W.find((ee) => ee.ref.current === document.activeElement), re = Qi(W, V, X);
|
|
9325
9325
|
re && setTimeout(() => re.ref.current.focus());
|
|
9326
|
-
}),
|
|
9326
|
+
}), de = f.useCallback(
|
|
9327
9327
|
(V, W, X) => {
|
|
9328
9328
|
const re = !L.current && !X;
|
|
9329
|
-
(w.value !== void 0 && w.value === W || re) && (
|
|
9329
|
+
(w.value !== void 0 && w.value === W || re) && (I(V), re && (L.current = !0));
|
|
9330
9330
|
},
|
|
9331
9331
|
[w.value]
|
|
9332
|
-
),
|
|
9332
|
+
), K = f.useCallback(() => x == null ? void 0 : x.focus(), [x]), oe = f.useCallback(
|
|
9333
9333
|
(V, W, X) => {
|
|
9334
9334
|
const re = !L.current && !X;
|
|
9335
9335
|
(w.value !== void 0 && w.value === W || re) && A(V);
|
|
9336
9336
|
},
|
|
9337
9337
|
[w.value]
|
|
9338
|
-
),
|
|
9338
|
+
), Y = o === "popper" ? xo : $i, te = Y === xo ? {
|
|
9339
9339
|
side: i,
|
|
9340
9340
|
sideOffset: c,
|
|
9341
9341
|
align: d,
|
|
@@ -9352,17 +9352,17 @@ var Ae = 10, [Di, ot] = It(pt), Ih = "SelectContentImpl", Mh = /* @__PURE__ */ $
|
|
|
9352
9352
|
{
|
|
9353
9353
|
scope: n,
|
|
9354
9354
|
content: x,
|
|
9355
|
-
viewport:
|
|
9355
|
+
viewport: N,
|
|
9356
9356
|
onViewportChange: E,
|
|
9357
|
-
itemRefCallback:
|
|
9357
|
+
itemRefCallback: de,
|
|
9358
9358
|
selectedItem: C,
|
|
9359
|
-
onItemLeave:
|
|
9359
|
+
onItemLeave: K,
|
|
9360
9360
|
itemTextRefCallback: oe,
|
|
9361
9361
|
focusSelectedItem: D,
|
|
9362
9362
|
selectedItemText: B,
|
|
9363
9363
|
position: o,
|
|
9364
9364
|
isPositioned: P,
|
|
9365
|
-
searchRef:
|
|
9365
|
+
searchRef: O,
|
|
9366
9366
|
children: /* @__PURE__ */ p(ra, { as: Mh, allowPinchZoom: !0, children: /* @__PURE__ */ p(
|
|
9367
9367
|
Ks,
|
|
9368
9368
|
{
|
|
@@ -9385,7 +9385,7 @@ var Ae = 10, [Di, ot] = It(pt), Ih = "SelectContentImpl", Mh = /* @__PURE__ */ $
|
|
|
9385
9385
|
onFocusOutside: (V) => V.preventDefault(),
|
|
9386
9386
|
onDismiss: () => w.onOpenChange(!1),
|
|
9387
9387
|
children: /* @__PURE__ */ p(
|
|
9388
|
-
|
|
9388
|
+
Y,
|
|
9389
9389
|
{
|
|
9390
9390
|
role: "listbox",
|
|
9391
9391
|
id: w.contentId,
|
|
@@ -9394,7 +9394,7 @@ var Ae = 10, [Di, ot] = It(pt), Ih = "SelectContentImpl", Mh = /* @__PURE__ */ $
|
|
|
9394
9394
|
onContextMenu: (V) => V.preventDefault(),
|
|
9395
9395
|
...y,
|
|
9396
9396
|
...te,
|
|
9397
|
-
onPlaced: () =>
|
|
9397
|
+
onPlaced: () => M(!0),
|
|
9398
9398
|
ref: k,
|
|
9399
9399
|
style: {
|
|
9400
9400
|
// flex layout so we can place the scroll buttons properly
|
|
@@ -9412,7 +9412,7 @@ var Ae = 10, [Di, ot] = It(pt), Ih = "SelectContentImpl", Mh = /* @__PURE__ */ $
|
|
|
9412
9412
|
const ee = V.target, J = re.indexOf(ee);
|
|
9413
9413
|
re = re.slice(J + 1);
|
|
9414
9414
|
}
|
|
9415
|
-
setTimeout(() =>
|
|
9415
|
+
setTimeout(() => R(re)), V.preventDefault();
|
|
9416
9416
|
}
|
|
9417
9417
|
})
|
|
9418
9418
|
}
|
|
@@ -9429,9 +9429,9 @@ zi.displayName = Ih;
|
|
|
9429
9429
|
var Oh = "SelectItemAlignedPosition", $i = f.forwardRef((e, t) => {
|
|
9430
9430
|
const { __scopeSelect: n, onPlaced: o, ...r } = e, s = nt(pt, n), a = ot(pt, n), [i, c] = f.useState(null), [d, u] = f.useState(null), l = ne(t, (k) => u(k)), m = $n(n), g = f.useRef(!1), b = f.useRef(!0), { viewport: h, selectedItem: v, selectedItemText: y, focusSelectedItem: w } = a, x = f.useCallback(() => {
|
|
9431
9431
|
if (s.trigger && s.valueNode && i && d && h && v && y) {
|
|
9432
|
-
const k = s.trigger.getBoundingClientRect(), C = d.getBoundingClientRect(),
|
|
9432
|
+
const k = s.trigger.getBoundingClientRect(), C = d.getBoundingClientRect(), I = s.valueNode.getBoundingClientRect(), B = y.getBoundingClientRect();
|
|
9433
9433
|
if (s.dir !== "rtl") {
|
|
9434
|
-
const ee = B.left - C.left, J =
|
|
9434
|
+
const ee = B.left - C.left, J = I.left - ee, ue = k.left - J, fe = k.width + ue, rt = Math.max(fe, C.width), Ye = window.innerWidth - Ae, Ne = wo(J, [
|
|
9435
9435
|
Ae,
|
|
9436
9436
|
// Prevents the content from going off the starting edge of the
|
|
9437
9437
|
// viewport. It may still go off the ending edge, but this can be
|
|
@@ -9442,20 +9442,20 @@ var Oh = "SelectItemAlignedPosition", $i = f.forwardRef((e, t) => {
|
|
|
9442
9442
|
]);
|
|
9443
9443
|
i.style.minWidth = fe + "px", i.style.left = Ne + "px";
|
|
9444
9444
|
} else {
|
|
9445
|
-
const ee = C.right - B.right, J = window.innerWidth -
|
|
9445
|
+
const ee = C.right - B.right, J = window.innerWidth - I.right - ee, ue = window.innerWidth - k.right - J, fe = k.width + ue, rt = Math.max(fe, C.width), Ye = window.innerWidth - Ae, Ne = wo(J, [
|
|
9446
9446
|
Ae,
|
|
9447
9447
|
Math.max(Ae, Ye - rt)
|
|
9448
9448
|
]);
|
|
9449
9449
|
i.style.minWidth = fe + "px", i.style.right = Ne + "px";
|
|
9450
9450
|
}
|
|
9451
|
-
const A = m(), T = window.innerHeight - Ae * 2, P = h.scrollHeight,
|
|
9451
|
+
const A = m(), T = window.innerHeight - Ae * 2, P = h.scrollHeight, M = window.getComputedStyle(d), L = parseInt(M.borderTopWidth, 10), R = parseInt(M.paddingTop, 10), D = parseInt(M.borderBottomWidth, 10), z = parseInt(M.paddingBottom, 10), q = L + R + P + z + D, O = Math.min(v.offsetHeight * 5, q), ae = window.getComputedStyle(h), de = parseInt(ae.paddingTop, 10), K = parseInt(ae.paddingBottom, 10), oe = k.top + k.height / 2 - Ae, Y = T - oe, te = v.offsetHeight / 2, V = v.offsetTop + te, W = L + R + V, X = q - W;
|
|
9452
9452
|
if (W <= oe) {
|
|
9453
9453
|
const ee = A.length > 0 && v === A[A.length - 1].ref.current;
|
|
9454
9454
|
i.style.bottom = "0px";
|
|
9455
9455
|
const J = d.clientHeight - h.offsetTop - h.offsetHeight, ue = Math.max(
|
|
9456
|
-
|
|
9456
|
+
Y,
|
|
9457
9457
|
te + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
|
9458
|
-
(ee ?
|
|
9458
|
+
(ee ? K : 0) + J + D
|
|
9459
9459
|
), fe = W + ue;
|
|
9460
9460
|
i.style.height = fe + "px";
|
|
9461
9461
|
} else {
|
|
@@ -9464,11 +9464,11 @@ var Oh = "SelectItemAlignedPosition", $i = f.forwardRef((e, t) => {
|
|
|
9464
9464
|
const ue = Math.max(
|
|
9465
9465
|
oe,
|
|
9466
9466
|
L + h.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
9467
|
-
(ee ?
|
|
9467
|
+
(ee ? de : 0) + te
|
|
9468
9468
|
) + X;
|
|
9469
9469
|
i.style.height = ue + "px", h.scrollTop = W - oe + h.offsetTop;
|
|
9470
9470
|
}
|
|
9471
|
-
i.style.margin = `${Ae}px 0`, i.style.minHeight =
|
|
9471
|
+
i.style.margin = `${Ae}px 0`, i.style.minHeight = O + "px", i.style.maxHeight = T + "px", o == null || o(), requestAnimationFrame(() => g.current = !0);
|
|
9472
9472
|
}
|
|
9473
9473
|
}, [
|
|
9474
9474
|
m,
|
|
@@ -9482,10 +9482,10 @@ var Oh = "SelectItemAlignedPosition", $i = f.forwardRef((e, t) => {
|
|
|
9482
9482
|
s.dir,
|
|
9483
9483
|
o
|
|
9484
9484
|
]);
|
|
9485
|
-
|
|
9486
|
-
const [S,
|
|
9487
|
-
|
|
9488
|
-
d &&
|
|
9485
|
+
le(() => x(), [x]);
|
|
9486
|
+
const [S, N] = f.useState();
|
|
9487
|
+
le(() => {
|
|
9488
|
+
d && N(window.getComputedStyle(d).zIndex);
|
|
9489
9489
|
}, [d]);
|
|
9490
9490
|
const E = f.useCallback(
|
|
9491
9491
|
(k) => {
|
|
@@ -9725,7 +9725,7 @@ var Ot = "SelectItemText", Ui = f.forwardRef(
|
|
|
9725
9725
|
() => /* @__PURE__ */ p("option", { value: c.value, disabled: c.disabled, children: g }, c.value),
|
|
9726
9726
|
[c.disabled, c.value, g]
|
|
9727
9727
|
), { onNativeOptionAdd: h, onNativeOptionRemove: v } = d;
|
|
9728
|
-
return
|
|
9728
|
+
return le(() => (h(b), () => v(b)), [h, v, b]), /* @__PURE__ */ H(Fe, { children: [
|
|
9729
9729
|
/* @__PURE__ */ p(j.span, { id: c.textId, ...s, ref: m }),
|
|
9730
9730
|
c.isSelected && a.valueNode && !a.valueNodeHasChildren ? wn.createPortal(s.children, a.valueNode) : null
|
|
9731
9731
|
] });
|
|
@@ -9741,7 +9741,7 @@ var ji = "SelectItemIndicator", Gi = f.forwardRef(
|
|
|
9741
9741
|
Gi.displayName = ji;
|
|
9742
9742
|
var Co = "SelectScrollUpButton", Yi = f.forwardRef((e, t) => {
|
|
9743
9743
|
const n = ot(Co, e.__scopeSelect), o = nr(Co, e.__scopeSelect), [r, s] = f.useState(!1), a = ne(t, o.onScrollButtonChange);
|
|
9744
|
-
return
|
|
9744
|
+
return le(() => {
|
|
9745
9745
|
if (n.viewport && n.isPositioned) {
|
|
9746
9746
|
let i = function() {
|
|
9747
9747
|
const d = c.scrollTop > 0;
|
|
@@ -9765,7 +9765,7 @@ var Co = "SelectScrollUpButton", Yi = f.forwardRef((e, t) => {
|
|
|
9765
9765
|
Yi.displayName = Co;
|
|
9766
9766
|
var ko = "SelectScrollDownButton", qi = f.forwardRef((e, t) => {
|
|
9767
9767
|
const n = ot(ko, e.__scopeSelect), o = nr(ko, e.__scopeSelect), [r, s] = f.useState(!1), a = ne(t, o.onScrollButtonChange);
|
|
9768
|
-
return
|
|
9768
|
+
return le(() => {
|
|
9769
9769
|
if (n.viewport && n.isPositioned) {
|
|
9770
9770
|
let i = function() {
|
|
9771
9771
|
const d = c.scrollHeight - c.clientHeight, u = Math.ceil(c.scrollTop) < d;
|
|
@@ -9791,7 +9791,7 @@ var Ki = f.forwardRef((e, t) => {
|
|
|
9791
9791
|
const { __scopeSelect: n, onAutoScroll: o, ...r } = e, s = ot("SelectScrollButton", n), a = f.useRef(null), i = $n(n), c = f.useCallback(() => {
|
|
9792
9792
|
a.current !== null && (window.clearInterval(a.current), a.current = null);
|
|
9793
9793
|
}, []);
|
|
9794
|
-
return f.useEffect(() => () => c(), [c]),
|
|
9794
|
+
return f.useEffect(() => () => c(), [c]), le(() => {
|
|
9795
9795
|
var u;
|
|
9796
9796
|
const d = i().find((l) => l.ref.current === document.activeElement);
|
|
9797
9797
|
(u = d == null ? void 0 : d.ref.current) == null || u.scrollIntoView({ block: "nearest" });
|
|
@@ -10213,7 +10213,7 @@ var Bt = "Tooltip", [Cg, jt] = Vn(Bt), bc = (e) => {
|
|
|
10213
10213
|
caller: Bt
|
|
10214
10214
|
}), x = f.useMemo(() => y ? v.current ? "delayed-open" : "instant-open" : "closed", [y]), S = f.useCallback(() => {
|
|
10215
10215
|
window.clearTimeout(g.current), g.current = 0, v.current = !1, w(!0);
|
|
10216
|
-
}, [w]),
|
|
10216
|
+
}, [w]), N = f.useCallback(() => {
|
|
10217
10217
|
window.clearTimeout(g.current), g.current = 0, w(!1);
|
|
10218
10218
|
}, [w]), E = f.useCallback(() => {
|
|
10219
10219
|
window.clearTimeout(g.current), g.current = window.setTimeout(() => {
|
|
@@ -10235,10 +10235,10 @@ var Bt = "Tooltip", [Cg, jt] = Vn(Bt), bc = (e) => {
|
|
|
10235
10235
|
c.isOpenDelayedRef.current ? E() : S();
|
|
10236
10236
|
}, [c.isOpenDelayedRef, E, S]),
|
|
10237
10237
|
onTriggerLeave: f.useCallback(() => {
|
|
10238
|
-
b ?
|
|
10239
|
-
}, [
|
|
10238
|
+
b ? N() : (window.clearTimeout(g.current), g.current = 0);
|
|
10239
|
+
}, [N, b]),
|
|
10240
10240
|
onOpen: S,
|
|
10241
|
-
onClose:
|
|
10241
|
+
onClose: N,
|
|
10242
10242
|
disableHoverableContent: b,
|
|
10243
10243
|
children: n
|
|
10244
10244
|
}
|
|
@@ -10291,8 +10291,8 @@ var Pt = "TooltipContent", xc = f.forwardRef(
|
|
|
10291
10291
|
i(null), l(!1);
|
|
10292
10292
|
}, [l]), g = f.useCallback(
|
|
10293
10293
|
(b, h) => {
|
|
10294
|
-
const v = b.currentTarget, y = { x: b.clientX, y: b.clientY }, w = Ag(y, v.getBoundingClientRect()), x = _g(y, w), S = Ig(h.getBoundingClientRect()),
|
|
10295
|
-
i(
|
|
10294
|
+
const v = b.currentTarget, y = { x: b.clientX, y: b.clientY }, w = Ag(y, v.getBoundingClientRect()), x = _g(y, w), S = Ig(h.getBoundingClientRect()), N = Og([...x, ...S]);
|
|
10295
|
+
i(N), l(!0);
|
|
10296
10296
|
},
|
|
10297
10297
|
[l]
|
|
10298
10298
|
);
|
|
@@ -11501,9 +11501,9 @@ const Rc = {
|
|
|
11501
11501
|
return t && n ? "Dev + Staging" : t ? "Staging Mode" : "Dev Mode";
|
|
11502
11502
|
}, mb = (e) => e.mode === "staging" ? "STAGING" : "DEV", hb = ({ className: e = "", extensions: t = [], tokenErrors: n = /* @__PURE__ */ new Map() }) => {
|
|
11503
11503
|
const [o, r] = ie([]), [s, a] = ie(!1), [i, c] = ie(!1), [d, u] = ie(!1), l = lt(null), m = n.size > 0;
|
|
11504
|
-
if (
|
|
11504
|
+
if (ce(() => {
|
|
11505
11505
|
fb();
|
|
11506
|
-
}, []),
|
|
11506
|
+
}, []), ce(() => {
|
|
11507
11507
|
if (!m) return;
|
|
11508
11508
|
const b = () => {
|
|
11509
11509
|
u(!0), setTimeout(() => u(!1), 600);
|
|
@@ -11511,7 +11511,7 @@ const Rc = {
|
|
|
11511
11511
|
b();
|
|
11512
11512
|
const h = setInterval(b, 4e3);
|
|
11513
11513
|
return () => clearInterval(h);
|
|
11514
|
-
}, [m]),
|
|
11514
|
+
}, [m]), ce(() => {
|
|
11515
11515
|
if (typeof window > "u") return;
|
|
11516
11516
|
const b = () => {
|
|
11517
11517
|
const v = ps(window.location.search);
|
|
@@ -11758,7 +11758,7 @@ const Rc = {
|
|
|
11758
11758
|
customerName: i
|
|
11759
11759
|
}) => {
|
|
11760
11760
|
const [c, d] = ie([]), [u, l] = ie([]), [m, g] = ie(/* @__PURE__ */ new Map()), [b, h] = ie(/* @__PURE__ */ new Map()), [v, y] = ie(!1), [w, x] = ie({ authenticated: !1, user: null });
|
|
11761
|
-
|
|
11761
|
+
ce(() => {
|
|
11762
11762
|
(async () => {
|
|
11763
11763
|
const T = e;
|
|
11764
11764
|
try {
|
|
@@ -11775,90 +11775,88 @@ const Rc = {
|
|
|
11775
11775
|
console.warn(`[ExtensionSetup] Instance not found or failed to load: ${T}`), d([]), y(!0);
|
|
11776
11776
|
return;
|
|
11777
11777
|
}
|
|
11778
|
-
const
|
|
11779
|
-
d(
|
|
11778
|
+
const M = await P.json(), L = ps(typeof window < "u" ? window.location.search : ""), R = await Dl(M, L), { tokens: D, errors: z } = await vb(R, t, o, L);
|
|
11779
|
+
d(R), l(L), g(new Map(D)), h(z);
|
|
11780
11780
|
} catch (P) {
|
|
11781
11781
|
console.error("Failed to load extensions:", P);
|
|
11782
11782
|
} finally {
|
|
11783
11783
|
y(!0);
|
|
11784
11784
|
}
|
|
11785
11785
|
})();
|
|
11786
|
-
}, [e, o, t]),
|
|
11786
|
+
}, [e, o, t]), ce(() => {
|
|
11787
11787
|
if (!t || !o || c.length === 0) return;
|
|
11788
11788
|
const T = setInterval(async () => {
|
|
11789
11789
|
const P = [];
|
|
11790
11790
|
await Promise.all(
|
|
11791
|
-
c.filter((
|
|
11792
|
-
const L = u.find((
|
|
11791
|
+
c.filter((M) => M.manifest.permissions.includes("data:fetch")).map(async (M) => {
|
|
11792
|
+
const L = u.find((O) => O.extensionId === M.id), R = L == null ? void 0 : L.token, D = L == null ? void 0 : L.mode, z = Lt(t, "/proxy-token"), q = await fetch(z, {
|
|
11793
11793
|
method: "POST",
|
|
11794
11794
|
headers: { "Content-Type": "application/json" },
|
|
11795
11795
|
body: JSON.stringify({
|
|
11796
11796
|
appId: o,
|
|
11797
|
-
extensionId:
|
|
11797
|
+
extensionId: M.id,
|
|
11798
11798
|
...D && { mode: D },
|
|
11799
|
-
...
|
|
11799
|
+
...R && { devSessionToken: R }
|
|
11800
11800
|
})
|
|
11801
11801
|
});
|
|
11802
|
-
if (
|
|
11803
|
-
const { token:
|
|
11804
|
-
P.push([
|
|
11802
|
+
if (q.ok) {
|
|
11803
|
+
const { token: O, encryptionKey: ae } = await q.json();
|
|
11804
|
+
P.push([M.id, { token: O, encryptionKey: ae }]);
|
|
11805
11805
|
} else
|
|
11806
|
-
console.warn(`[embeddables] Proxy token refresh failed for extension ${
|
|
11806
|
+
console.warn(`[embeddables] Proxy token refresh failed for extension ${M.id} (${q.status}) — using stale token`);
|
|
11807
11807
|
})
|
|
11808
|
-
), P.length > 0 && g((
|
|
11809
|
-
const L = new Map(
|
|
11810
|
-
for (const [
|
|
11811
|
-
L.set(
|
|
11808
|
+
), P.length > 0 && g((M) => {
|
|
11809
|
+
const L = new Map(M);
|
|
11810
|
+
for (const [R, D] of P)
|
|
11811
|
+
L.set(R, D);
|
|
11812
11812
|
return L;
|
|
11813
11813
|
});
|
|
11814
11814
|
}, 3300 * 1e3);
|
|
11815
11815
|
return () => clearInterval(T);
|
|
11816
|
-
}, [c, u, t, o]),
|
|
11816
|
+
}, [c, u, t, o]), ce(() => {
|
|
11817
11817
|
if (m.size === 0) return;
|
|
11818
11818
|
const A = (T) => {
|
|
11819
11819
|
const P = T.data;
|
|
11820
11820
|
if ((P == null ? void 0 : P.type) !== "extension-ready") return;
|
|
11821
|
-
const
|
|
11821
|
+
const M = P.extensionId, L = c.find((z) => z.id === M);
|
|
11822
11822
|
if (!(L != null && L.bundleUrl)) return;
|
|
11823
|
-
const
|
|
11824
|
-
if (Ml(L.bundleUrl) && (
|
|
11825
|
-
const D = m.get(
|
|
11826
|
-
D && ct(
|
|
11823
|
+
const R = u.find((z) => z.extensionId === M);
|
|
11824
|
+
if (Ml(L.bundleUrl) && (R == null ? void 0 : R.mode) !== "staging") return;
|
|
11825
|
+
const D = m.get(M);
|
|
11826
|
+
D && ct(M, { type: "extension-encryption-key", encryptionKey: D.encryptionKey });
|
|
11827
11827
|
};
|
|
11828
11828
|
return window.addEventListener("message", A), () => window.removeEventListener("message", A);
|
|
11829
11829
|
}, [c, u, m]);
|
|
11830
11830
|
const S = Le((A, T) => {
|
|
11831
11831
|
const P = lo();
|
|
11832
|
-
for (const [
|
|
11833
|
-
L.manifest.permissions.includes("identity:subscribe") && ct(
|
|
11832
|
+
for (const [M, L] of P)
|
|
11833
|
+
L.manifest.permissions.includes("identity:subscribe") && ct(M, {
|
|
11834
11834
|
type: "extension-event",
|
|
11835
11835
|
eventType: A,
|
|
11836
11836
|
payload: { type: A, state: T, timestamp: (/* @__PURE__ */ new Date()).toISOString() }
|
|
11837
11837
|
});
|
|
11838
|
-
}, []),
|
|
11838
|
+
}, []), N = Le(async (A) => {
|
|
11839
11839
|
const T = lo(), P = [];
|
|
11840
|
-
for (const [L,
|
|
11841
|
-
if (!
|
|
11840
|
+
for (const [L, R] of T) {
|
|
11841
|
+
if (!R.manifest.permissions.includes("identity:extend")) continue;
|
|
11842
11842
|
const D = new Promise((z) => {
|
|
11843
|
-
const
|
|
11844
|
-
|
|
11845
|
-
|
|
11846
|
-
(ce == null ? void 0 : ce.type) !== "capability-response" || ce.id !== K || (window.removeEventListener("message", I), ce.success && ((Y = ce.data) != null && Y.additionalClaims) ? z(ce.data.additionalClaims) : z({}));
|
|
11843
|
+
const q = `enrich_${L}_${Date.now()}`, O = (ae) => {
|
|
11844
|
+
const de = ae.data;
|
|
11845
|
+
(de == null ? void 0 : de.type) !== "identity-extend-response" || de.id !== q || (window.removeEventListener("message", O), de.additionalClaims ? z(de.additionalClaims) : z({}));
|
|
11847
11846
|
};
|
|
11848
|
-
window.addEventListener("message",
|
|
11849
|
-
window.removeEventListener("message",
|
|
11847
|
+
window.addEventListener("message", O), setTimeout(() => {
|
|
11848
|
+
window.removeEventListener("message", O), z({});
|
|
11850
11849
|
}, 5e3), ct(L, {
|
|
11851
|
-
type: "
|
|
11852
|
-
id:
|
|
11853
|
-
|
|
11854
|
-
data: { type: "identity.extend", claims: A }
|
|
11850
|
+
type: "identity-extend-request",
|
|
11851
|
+
id: q,
|
|
11852
|
+
claims: A
|
|
11855
11853
|
});
|
|
11856
11854
|
});
|
|
11857
11855
|
P.push(D);
|
|
11858
11856
|
}
|
|
11859
11857
|
if (P.length === 0) return {};
|
|
11860
|
-
const
|
|
11861
|
-
return Object.assign({}, ...
|
|
11858
|
+
const M = await Promise.all(P);
|
|
11859
|
+
return Object.assign({}, ...M);
|
|
11862
11860
|
}, []), E = Le(async (A) => {
|
|
11863
11861
|
if (!t || !o || !e)
|
|
11864
11862
|
return console.warn("[embeddables] signIdentity skipped — missing:", { apiBase: !!t, appId: !!o, instanceId: !!e }), null;
|
|
@@ -11872,8 +11870,8 @@ const Rc = {
|
|
|
11872
11870
|
});
|
|
11873
11871
|
if (!P.ok)
|
|
11874
11872
|
return console.warn(`[embeddables] Identity sign failed (${P.status})`), null;
|
|
11875
|
-
const { token:
|
|
11876
|
-
return
|
|
11873
|
+
const { token: M } = await P.json();
|
|
11874
|
+
return M;
|
|
11877
11875
|
} catch (P) {
|
|
11878
11876
|
return console.warn("[embeddables] Identity sign request failed:", P), null;
|
|
11879
11877
|
}
|
|
@@ -11885,21 +11883,21 @@ const Rc = {
|
|
|
11885
11883
|
}, []), C = Le(() => {
|
|
11886
11884
|
const A = window.zE;
|
|
11887
11885
|
A && A("messenger", "logoutUser");
|
|
11888
|
-
}, []),
|
|
11889
|
-
const { email: T, name: P } = A,
|
|
11886
|
+
}, []), I = Le((A) => {
|
|
11887
|
+
const { email: T, name: P } = A, M = { external_id: String(A.id) };
|
|
11890
11888
|
(async () => {
|
|
11891
|
-
const L = await
|
|
11889
|
+
const L = await N({ ...M, email: T, name: P });
|
|
11892
11890
|
console.log("[embeddables] Enriched claims:", L);
|
|
11893
|
-
const
|
|
11894
|
-
...
|
|
11891
|
+
const R = await E({
|
|
11892
|
+
...M,
|
|
11895
11893
|
...L,
|
|
11896
11894
|
email: T,
|
|
11897
11895
|
name: P
|
|
11898
11896
|
});
|
|
11899
|
-
console.log("[embeddables] Sign result:", { hasToken: !!
|
|
11897
|
+
console.log("[embeddables] Sign result:", { hasToken: !!R }), R && k(R);
|
|
11900
11898
|
})();
|
|
11901
|
-
}, [
|
|
11902
|
-
|
|
11899
|
+
}, [N, E, k]);
|
|
11900
|
+
ce(() => {
|
|
11903
11901
|
if (s) {
|
|
11904
11902
|
console.log("[embeddables] Identity from props:", { customerId: s, customerEmail: a, customerName: i });
|
|
11905
11903
|
const A = {
|
|
@@ -11912,56 +11910,67 @@ const Rc = {
|
|
|
11912
11910
|
}
|
|
11913
11911
|
};
|
|
11914
11912
|
x((T) => {
|
|
11915
|
-
var P,
|
|
11916
|
-
return T.authenticated && ((P = T.user) == null ? void 0 : P.id) === ((
|
|
11913
|
+
var P, M;
|
|
11914
|
+
return T.authenticated && ((P = T.user) == null ? void 0 : P.id) === ((M = A.user) == null ? void 0 : M.id) ? T : (console.log("[embeddables] Identity state changed (props), starting sign lifecycle"), I(A.user), S("identity.login", A), A);
|
|
11917
11915
|
});
|
|
11918
11916
|
} else {
|
|
11919
11917
|
if (s === void 0)
|
|
11920
11918
|
return;
|
|
11921
11919
|
x((A) => A.authenticated ? (console.log("[embeddables] Customer props cleared, logging out"), C(), S("identity.logout", { authenticated: !1, user: null }), { authenticated: !1, user: null }) : A);
|
|
11922
11920
|
}
|
|
11923
|
-
}, [s, a, i,
|
|
11921
|
+
}, [s, a, i, I, S, C]), ce(() => {
|
|
11924
11922
|
if (s !== void 0) return;
|
|
11925
11923
|
const A = () => {
|
|
11926
11924
|
const P = document.getElementById("stackable-identity");
|
|
11927
11925
|
if (P)
|
|
11928
11926
|
try {
|
|
11929
|
-
const
|
|
11927
|
+
const M = JSON.parse(P.textContent ?? "{}"), L = {
|
|
11930
11928
|
authenticated: !0,
|
|
11931
11929
|
user: {
|
|
11932
|
-
id: String(
|
|
11933
|
-
email:
|
|
11934
|
-
name:
|
|
11930
|
+
id: String(M.customerId ?? ""),
|
|
11931
|
+
email: M.customerEmail,
|
|
11932
|
+
name: M.customerName,
|
|
11935
11933
|
provider: "shopify"
|
|
11936
11934
|
}
|
|
11937
11935
|
};
|
|
11938
|
-
x((
|
|
11936
|
+
x((R) => {
|
|
11939
11937
|
var D, z;
|
|
11940
|
-
return
|
|
11938
|
+
return R.authenticated && ((D = R.user) == null ? void 0 : D.id) === ((z = L.user) == null ? void 0 : z.id) ? R : (console.log("[embeddables] Identity state changed (DOM), starting sign lifecycle"), I(L.user), S("identity.login", L), L);
|
|
11941
11939
|
});
|
|
11942
11940
|
} catch {
|
|
11943
11941
|
console.warn("[embeddables] Failed to parse #stackable-identity JSON");
|
|
11944
11942
|
}
|
|
11945
11943
|
else
|
|
11946
|
-
x((
|
|
11944
|
+
x((M) => M.authenticated ? (C(), S("identity.logout", { authenticated: !1, user: null }), { authenticated: !1, user: null }) : M);
|
|
11947
11945
|
};
|
|
11948
11946
|
A();
|
|
11949
11947
|
const T = new MutationObserver(A);
|
|
11950
11948
|
return T.observe(document.head, { childList: !0, subtree: !0 }), T.observe(document.body, { childList: !0, subtree: !0 }), () => T.disconnect();
|
|
11951
|
-
}, [s,
|
|
11952
|
-
if (!w.authenticated)
|
|
11949
|
+
}, [s, I, S, C]), ce(() => {
|
|
11950
|
+
if (!w.authenticated)
|
|
11951
|
+
return;
|
|
11953
11952
|
const A = (T) => {
|
|
11954
11953
|
const P = T.data;
|
|
11955
11954
|
if ((P == null ? void 0 : P.type) !== "extension-ready") return;
|
|
11956
|
-
const
|
|
11957
|
-
L != null && L.manifest.permissions.includes("identity:subscribe") && ct(
|
|
11955
|
+
const M = P.extensionId, L = c.find((R) => R.id === M);
|
|
11956
|
+
L != null && L.manifest.permissions.includes("identity:subscribe") && ct(M, {
|
|
11958
11957
|
type: "extension-event",
|
|
11959
11958
|
eventType: "identity.login",
|
|
11960
11959
|
payload: { type: "identity.login", state: w, timestamp: (/* @__PURE__ */ new Date()).toISOString() }
|
|
11961
11960
|
});
|
|
11962
11961
|
};
|
|
11963
11962
|
return window.addEventListener("message", A), () => window.removeEventListener("message", A);
|
|
11964
|
-
}, [w, c])
|
|
11963
|
+
}, [w, c]), ce(() => {
|
|
11964
|
+
if (!w.authenticated || !w.user)
|
|
11965
|
+
return;
|
|
11966
|
+
const A = (T) => {
|
|
11967
|
+
const P = T.data;
|
|
11968
|
+
if ((P == null ? void 0 : P.type) !== "extension-ready") return;
|
|
11969
|
+
const M = P.extensionId, L = c.find((R) => R.id === M);
|
|
11970
|
+
L != null && L.manifest.permissions.includes("identity:extend") && (console.log("[embeddables] Extension with identity:extend ready, re-running sign lifecycle"), I(w.user));
|
|
11971
|
+
};
|
|
11972
|
+
return window.addEventListener("message", A), () => window.removeEventListener("message", A);
|
|
11973
|
+
}, [w, c, I]);
|
|
11965
11974
|
const B = co(
|
|
11966
11975
|
() => ({
|
|
11967
11976
|
// TODO(data.query-deprecation): Remove when data.query is deprecated — host-native ecommerce route replaced by extension + data.fetch
|
|
@@ -11976,12 +11985,12 @@ const Rc = {
|
|
|
11976
11985
|
error: "data.fetch: proxy token unavailable — ensure the extension has data:fetch permission and allowedDomains configured"
|
|
11977
11986
|
}
|
|
11978
11987
|
};
|
|
11979
|
-
const
|
|
11988
|
+
const M = bb(T) ? T : {
|
|
11980
11989
|
url: T.url,
|
|
11981
11990
|
method: T.method ?? "GET",
|
|
11982
11991
|
headers: T.headers ?? {},
|
|
11983
11992
|
body: T.body ?? null
|
|
11984
|
-
}, L = Lt(t, "/proxy"),
|
|
11993
|
+
}, L = Lt(t, "/proxy"), R = await fetch(L, {
|
|
11985
11994
|
method: "POST",
|
|
11986
11995
|
headers: {
|
|
11987
11996
|
"Content-Type": "application/json",
|
|
@@ -11989,11 +11998,11 @@ const Rc = {
|
|
|
11989
11998
|
"X-Application-Id": o ?? "",
|
|
11990
11999
|
Authorization: `Bearer ${P.token}`
|
|
11991
12000
|
},
|
|
11992
|
-
body: JSON.stringify(
|
|
11993
|
-
}), D = await
|
|
12001
|
+
body: JSON.stringify(M)
|
|
12002
|
+
}), D = await R.json();
|
|
11994
12003
|
return {
|
|
11995
|
-
status: D.status ??
|
|
11996
|
-
ok: D.ok ??
|
|
12004
|
+
status: D.status ?? R.status,
|
|
12005
|
+
ok: D.ok ?? R.ok,
|
|
11997
12006
|
data: D.data
|
|
11998
12007
|
};
|
|
11999
12008
|
},
|
|
@@ -12006,10 +12015,10 @@ const Rc = {
|
|
|
12006
12015
|
...T.closeButton != null && { closeButton: T.closeButton }
|
|
12007
12016
|
};
|
|
12008
12017
|
if (T.fetch) {
|
|
12009
|
-
const
|
|
12018
|
+
const M = (R) => new Promise((D) => setTimeout(D, R)), L = Promise.all([
|
|
12010
12019
|
B["data.fetch"](A, T.fetch),
|
|
12011
|
-
|
|
12012
|
-
]).then(([
|
|
12020
|
+
M(gb)
|
|
12021
|
+
]).then(([R]) => R);
|
|
12013
12022
|
yt.promise(L, {
|
|
12014
12023
|
loading: T.loading ?? T.message,
|
|
12015
12024
|
success: T.success ?? T.message,
|
|
@@ -12121,7 +12130,7 @@ const Cb = ({ ...e }) => {
|
|
|
12121
12130
|
const [o, r] = ie(!1), [s, a] = ie(!0), i = Le(() => {
|
|
12122
12131
|
r((c) => !c);
|
|
12123
12132
|
}, []);
|
|
12124
|
-
return
|
|
12133
|
+
return ce(() => {
|
|
12125
12134
|
const c = () => r((g) => !g), d = () => r(!0), u = () => r(!1), l = () => a(!0), m = () => {
|
|
12126
12135
|
r(!1), a(!1);
|
|
12127
12136
|
};
|
|
@@ -12147,7 +12156,7 @@ const Cb = ({ ...e }) => {
|
|
|
12147
12156
|
}
|
|
12148
12157
|
), Nb = (e, t) => {
|
|
12149
12158
|
const [n, o] = ie(null), [r, s] = ie(!1), [a, i] = ie(null);
|
|
12150
|
-
return
|
|
12159
|
+
return ce(() => {
|
|
12151
12160
|
if (!e) {
|
|
12152
12161
|
o(null);
|
|
12153
12162
|
return;
|
|
@@ -12226,7 +12235,7 @@ const Cb = ({ ...e }) => {
|
|
|
12226
12235
|
] })
|
|
12227
12236
|
] }) }) });
|
|
12228
12237
|
}, Ic = (e, t) => {
|
|
12229
|
-
|
|
12238
|
+
ce(() => {
|
|
12230
12239
|
const n = t.current;
|
|
12231
12240
|
if (!n) return;
|
|
12232
12241
|
let o = document.getElementById(e);
|
|
@@ -12241,7 +12250,7 @@ const Cb = ({ ...e }) => {
|
|
|
12241
12250
|
}, [e, t]);
|
|
12242
12251
|
}, Pb = ({ customization: e }) => {
|
|
12243
12252
|
const t = lt(null);
|
|
12244
|
-
return Ic("widget_conversations", t),
|
|
12253
|
+
return Ic("widget_conversations", t), ce(() => {
|
|
12245
12254
|
!window.zE || !t.current || e && window.zE("messenger:set", "customization", {
|
|
12246
12255
|
conversationList: e
|
|
12247
12256
|
});
|
|
@@ -12254,7 +12263,7 @@ const Cb = ({ ...e }) => {
|
|
|
12254
12263
|
);
|
|
12255
12264
|
}, Ab = ({ customization: e }) => {
|
|
12256
12265
|
const t = lt(null);
|
|
12257
|
-
return Ic("widget_messages", t),
|
|
12266
|
+
return Ic("widget_messages", t), ce(() => {
|
|
12258
12267
|
!window.zE || !t.current || e && window.zE("messenger:set", "customization", {
|
|
12259
12268
|
messageLog: e
|
|
12260
12269
|
});
|
|
@@ -12285,7 +12294,7 @@ const Cb = ({ ...e }) => {
|
|
|
12285
12294
|
conversationList: { hideHeader: !0, hideNewConversationButton: !0 },
|
|
12286
12295
|
messageLog: { hideHeader: !0 }
|
|
12287
12296
|
}), !0), []);
|
|
12288
|
-
|
|
12297
|
+
ce(() => {
|
|
12289
12298
|
if (w()) {
|
|
12290
12299
|
b(!0);
|
|
12291
12300
|
return;
|
|
@@ -12303,15 +12312,15 @@ const Cb = ({ ...e }) => {
|
|
|
12303
12312
|
const { detail: k } = E;
|
|
12304
12313
|
!window.zE || !(k != null && k.payload) || window.zE("messenger:ui", "newConversation", k.payload);
|
|
12305
12314
|
}, []);
|
|
12306
|
-
|
|
12315
|
+
ce(() => (window.addEventListener("ext-action-newConversation", x), () => {
|
|
12307
12316
|
window.removeEventListener("ext-action-newConversation", x);
|
|
12308
|
-
}), [x]),
|
|
12317
|
+
}), [x]), ce(() => {
|
|
12309
12318
|
if (!h) return;
|
|
12310
12319
|
const E = (C) => {
|
|
12311
12320
|
if (!y.current) return;
|
|
12312
|
-
const
|
|
12313
|
-
if ((l ?
|
|
12314
|
-
const A = l ? (C.clientX -
|
|
12321
|
+
const I = y.current.getBoundingClientRect();
|
|
12322
|
+
if ((l ? I.width : I.height) === 0) return;
|
|
12323
|
+
const A = l ? (C.clientX - I.left) / I.width * 100 : (C.clientY - I.top) / I.height * 100, T = Math.max(
|
|
12315
12324
|
ao,
|
|
12316
12325
|
Math.min(io, A)
|
|
12317
12326
|
);
|
|
@@ -12322,11 +12331,11 @@ const Cb = ({ ...e }) => {
|
|
|
12322
12331
|
return document.body.style.cursor = l ? "col-resize" : "row-resize", document.body.style.userSelect = "none", window.addEventListener("mousemove", E), window.addEventListener("mouseup", k), window.addEventListener("blur", k), () => {
|
|
12323
12332
|
window.removeEventListener("mousemove", E), window.removeEventListener("mouseup", k), window.removeEventListener("blur", k), document.body.style.cursor = "", document.body.style.userSelect = "";
|
|
12324
12333
|
};
|
|
12325
|
-
}, [h, l]),
|
|
12334
|
+
}, [h, l]), ce(() => {
|
|
12326
12335
|
if (!y.current) return;
|
|
12327
12336
|
const E = y.current, k = () => {
|
|
12328
|
-
const
|
|
12329
|
-
m(
|
|
12337
|
+
const I = getComputedStyle(E).flexDirection === "row";
|
|
12338
|
+
m(I);
|
|
12330
12339
|
};
|
|
12331
12340
|
k();
|
|
12332
12341
|
const C = new ResizeObserver(k);
|
|
@@ -12340,7 +12349,7 @@ const Cb = ({ ...e }) => {
|
|
|
12340
12349
|
return;
|
|
12341
12350
|
}
|
|
12342
12351
|
E.preventDefault(), v(!0);
|
|
12343
|
-
}, [a]),
|
|
12352
|
+
}, [a]), N = { customerId: o, customerEmail: r };
|
|
12344
12353
|
return /* @__PURE__ */ H("div", { "data-component": "zendesk-wrapper", className: "flex-1 flex flex-col z-10 overflow-hidden", style: { containerType: "inline-size" }, children: [
|
|
12345
12354
|
/* @__PURE__ */ p("style", {
|
|
12346
12355
|
// eslint-disable-next-line @stylistic/quotes
|
|
@@ -12395,7 +12404,7 @@ const Cb = ({ ...e }) => {
|
|
|
12395
12404
|
Xt,
|
|
12396
12405
|
{
|
|
12397
12406
|
target: "slot.header",
|
|
12398
|
-
context:
|
|
12407
|
+
context: N,
|
|
12399
12408
|
className: "flex-none"
|
|
12400
12409
|
}
|
|
12401
12410
|
) }),
|
|
@@ -12403,7 +12412,7 @@ const Cb = ({ ...e }) => {
|
|
|
12403
12412
|
Xt,
|
|
12404
12413
|
{
|
|
12405
12414
|
target: "slot.content",
|
|
12406
|
-
context:
|
|
12415
|
+
context: N,
|
|
12407
12416
|
className: "flex flex-col gap-2"
|
|
12408
12417
|
}
|
|
12409
12418
|
)
|
|
@@ -12429,7 +12438,7 @@ const Cb = ({ ...e }) => {
|
|
|
12429
12438
|
Xt,
|
|
12430
12439
|
{
|
|
12431
12440
|
target: "slot.footer",
|
|
12432
|
-
context:
|
|
12441
|
+
context: N,
|
|
12433
12442
|
className: "flex items-center gap-1",
|
|
12434
12443
|
fallback: /* @__PURE__ */ H(Fe, { children: [
|
|
12435
12444
|
/* @__PURE__ */ p("div", { children: "powered by" }),
|
|
@@ -12441,7 +12450,7 @@ const Cb = ({ ...e }) => {
|
|
|
12441
12450
|
Xt,
|
|
12442
12451
|
{
|
|
12443
12452
|
target: "slot.footer-links",
|
|
12444
|
-
context:
|
|
12453
|
+
context: N,
|
|
12445
12454
|
className: "flex items-center gap-1",
|
|
12446
12455
|
separator: /* @__PURE__ */ p("span", { className: "text-zinc-300", children: "/" }),
|
|
12447
12456
|
render: ({ children: E, index: k }) => /* @__PURE__ */ H(Fe, { children: [
|
|
@@ -12505,7 +12514,7 @@ const Cb = ({ ...e }) => {
|
|
|
12505
12514
|
const i = document.createElement("script");
|
|
12506
12515
|
i.id = o, i.src = is(e), i.async = !0, i.onload = () => s(), i.onerror = () => a(new Error("Failed to load Zendesk snippet")), document.head.appendChild(i);
|
|
12507
12516
|
});
|
|
12508
|
-
}, Hb = ({ config: e }) => (
|
|
12517
|
+
}, Hb = ({ config: e }) => (ce(() => {
|
|
12509
12518
|
e.snippetKey && Ib(e.snippetKey, { autorender: e.autorender }).catch((t) => {
|
|
12510
12519
|
console.error("Failed to initialize Zendesk snippet:", t);
|
|
12511
12520
|
});
|