@stackable-labs/embeddables 1.69.0 → 1.70.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 +852 -817
- package/dist/stackable-widget.external.js +7 -7
- package/dist/stackable-widget.js +14 -14
- package/package.json +1 -1
package/dist/react.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as q, jsx as u, Fragment as _e } from "react/jsx-runtime";
|
|
2
2
|
import * as f from "react";
|
|
3
|
-
import _, { createContext as Zc, useState as le, useRef as Me, useEffect as ce, useContext as Jc, createElement as pn, useMemo as Bt, forwardRef as fs, useLayoutEffect as Qc, useCallback as
|
|
3
|
+
import _, { createContext as Zc, useState as le, useRef as Me, useEffect as ce, useContext as Jc, createElement as pn, useMemo as Bt, forwardRef as fs, useLayoutEffect as Qc, useCallback as ve } from "react";
|
|
4
4
|
import * as Cn from "react-dom";
|
|
5
5
|
import ps from "react-dom";
|
|
6
6
|
const el = () => {
|
|
7
7
|
try {
|
|
8
|
-
return "
|
|
8
|
+
return "401baec2-8f89-4f63-a947-3f142c848a20";
|
|
9
9
|
} catch {
|
|
10
10
|
return "dev";
|
|
11
11
|
}
|
|
@@ -356,7 +356,8 @@ const al = ["identity", "messaging"], il = {
|
|
|
356
356
|
}, cl = (e) => {
|
|
357
357
|
const t = async (n) => {
|
|
358
358
|
const o = n.data;
|
|
359
|
-
if ((o == null ? void 0 : o.type) !== "capability-request")
|
|
359
|
+
if ((o == null ? void 0 : o.type) !== "capability-request")
|
|
360
|
+
return;
|
|
360
361
|
const r = o;
|
|
361
362
|
console.warn("[CapabilityRPC] raw message data:", JSON.stringify(n.data));
|
|
362
363
|
const s = r.extensionId;
|
|
@@ -368,7 +369,8 @@ const al = ["identity", "messaging"], il = {
|
|
|
368
369
|
return;
|
|
369
370
|
}
|
|
370
371
|
const a = kt(s);
|
|
371
|
-
if (!a)
|
|
372
|
+
if (!a)
|
|
373
|
+
return;
|
|
372
374
|
const i = il[r.capability];
|
|
373
375
|
if (i && !a.manifest.permissions.includes(i)) {
|
|
374
376
|
const c = {
|
|
@@ -441,7 +443,8 @@ const al = ["identity", "messaging"], il = {
|
|
|
441
443
|
let d = !1;
|
|
442
444
|
return (async () => {
|
|
443
445
|
const l = a.current;
|
|
444
|
-
if (!l)
|
|
446
|
+
if (!l)
|
|
447
|
+
return;
|
|
445
448
|
console.log("[ExtensionProvider] Initializing with", e.length, "extensions");
|
|
446
449
|
const m = new Proxy({}, {
|
|
447
450
|
get: (h, b) => c.current[b]
|
|
@@ -457,7 +460,7 @@ const al = ["identity", "messaging"], il = {
|
|
|
457
460
|
nl(m.id);
|
|
458
461
|
(l = i.current) == null || l.call(i);
|
|
459
462
|
};
|
|
460
|
-
}, [e]), /* @__PURE__ */
|
|
463
|
+
}, [e]), /* @__PURE__ */ q(gs.Provider, { value: { extensions: e, components: n, ready: r }, children: [
|
|
461
464
|
/* @__PURE__ */ u("div", { ref: a, style: { display: "none" } }),
|
|
462
465
|
o
|
|
463
466
|
] });
|
|
@@ -466,7 +469,8 @@ const al = ["identity", "messaging"], il = {
|
|
|
466
469
|
var h, b, g;
|
|
467
470
|
if (s.type === "text")
|
|
468
471
|
return s.text || null;
|
|
469
|
-
if (!s.tag)
|
|
472
|
+
if (!s.tag)
|
|
473
|
+
return null;
|
|
470
474
|
if (s.tag === "__fragment")
|
|
471
475
|
return /* @__PURE__ */ u(_.Fragment, { children: (h = s.children) == null ? void 0 : h.map((v, y) => r(v, a, y)) }, i);
|
|
472
476
|
if (!dl(s.tag))
|
|
@@ -503,7 +507,8 @@ const al = ["identity", "messaging"], il = {
|
|
|
503
507
|
return r;
|
|
504
508
|
}, fl = (e, t) => {
|
|
505
509
|
const n = {}, o = [];
|
|
506
|
-
if (!t)
|
|
510
|
+
if (!t)
|
|
511
|
+
return { filtered: n, stripped: o };
|
|
507
512
|
const r = rl[e];
|
|
508
513
|
for (const [s, a] of Object.entries(t)) {
|
|
509
514
|
if (s === "data-onchange-id") {
|
|
@@ -515,7 +520,8 @@ const al = ["identity", "messaging"], il = {
|
|
|
515
520
|
return { filtered: n, stripped: o };
|
|
516
521
|
}, pl = (e, t) => {
|
|
517
522
|
const n = sl[e];
|
|
518
|
-
if (!n || !t)
|
|
523
|
+
if (!n || !t)
|
|
524
|
+
return [];
|
|
519
525
|
const o = [];
|
|
520
526
|
for (const r of t)
|
|
521
527
|
r.type !== "text" && (!r.tag || r.tag === "__fragment" || n.includes(r.tag) || o.push(r.tag));
|
|
@@ -540,30 +546,30 @@ const al = ["identity", "messaging"], il = {
|
|
|
540
546
|
return;
|
|
541
547
|
const y = (w) => {
|
|
542
548
|
const x = w.data;
|
|
543
|
-
if (!(!x || typeof x != "object" || !m.some((
|
|
544
|
-
const R = kt(
|
|
549
|
+
if (!(!x || typeof x != "object" || !m.some((N) => {
|
|
550
|
+
const R = kt(N.id);
|
|
545
551
|
return R && w.source === R.iframe.contentWindow;
|
|
546
552
|
}))) {
|
|
547
553
|
if (x.type === "surface-update" && x.surfaceId === e) {
|
|
548
|
-
const
|
|
549
|
-
const k = kt(
|
|
554
|
+
const N = m.find((E) => {
|
|
555
|
+
const k = kt(E.id);
|
|
550
556
|
return k && w.source === k.iframe.contentWindow;
|
|
551
557
|
});
|
|
552
|
-
if (!
|
|
558
|
+
if (!N)
|
|
553
559
|
return;
|
|
554
560
|
const R = h(x.tree, w.source ?? null);
|
|
555
|
-
p((
|
|
556
|
-
...
|
|
557
|
-
[
|
|
561
|
+
p((E) => ({
|
|
562
|
+
...E,
|
|
563
|
+
[N.id]: R
|
|
558
564
|
}));
|
|
559
565
|
}
|
|
560
566
|
if (x.type === "surface-ready" && x.surfaceId === e && t) {
|
|
561
|
-
const
|
|
567
|
+
const N = ml(t);
|
|
562
568
|
m.forEach((R) => {
|
|
563
569
|
var k;
|
|
564
|
-
const
|
|
565
|
-
(k =
|
|
566
|
-
{ type: "context-update", surfaceId: e, context:
|
|
570
|
+
const E = kt(R.id);
|
|
571
|
+
(k = E == null ? void 0 : E.iframe.contentWindow) == null || k.postMessage(
|
|
572
|
+
{ type: "context-update", surfaceId: e, context: N },
|
|
567
573
|
"*"
|
|
568
574
|
);
|
|
569
575
|
});
|
|
@@ -593,14 +599,14 @@ const al = ["identity", "messaging"], il = {
|
|
|
593
599
|
}) : /* @__PURE__ */ u(_.Fragment, { children: v.children }, v.id), C = /* @__PURE__ */ u(_.Fragment, { children: x }, `extension:${v.id}`);
|
|
594
600
|
if (y === 0 || !o)
|
|
595
601
|
return [C];
|
|
596
|
-
const
|
|
602
|
+
const N = w[y - 1], R = typeof o == "function" ? o({
|
|
597
603
|
index: y,
|
|
598
604
|
total: w.length,
|
|
599
|
-
previousExtensionId:
|
|
605
|
+
previousExtensionId: N.id,
|
|
600
606
|
extensionId: v.id
|
|
601
607
|
}) : o;
|
|
602
608
|
return [
|
|
603
|
-
/* @__PURE__ */ u(_.Fragment, { children: R }, `separator:${
|
|
609
|
+
/* @__PURE__ */ u(_.Fragment, { children: R }, `separator:${N.id}:${v.id}:${y}`),
|
|
604
610
|
C
|
|
605
611
|
];
|
|
606
612
|
}) : r;
|
|
@@ -894,7 +900,7 @@ function $l(e) {
|
|
|
894
900
|
}
|
|
895
901
|
const Fl = (e) => {
|
|
896
902
|
var t, n, o, r, s, a, i, c, d;
|
|
897
|
-
const { invert: p, toast: l, unstyled: m, interacting: h, setHeights: b, visibleToasts: g, heights: v, index: y, toasts: w, expanded: x, removeToast: C, defaultRichColors:
|
|
903
|
+
const { invert: p, toast: l, unstyled: m, interacting: h, setHeights: b, visibleToasts: g, heights: v, index: y, toasts: w, expanded: x, removeToast: C, defaultRichColors: N, closeButton: R, style: E, cancelButtonStyle: k, actionButtonStyle: L, className: W = "", descriptionClassName: M = "", duration: F, position: H, gap: O, expandByDefault: K, classNames: P, icons: D, closeButtonAriaLabel: U = "Close toast" } = e, [T, S] = _.useState(null), [A, z] = _.useState(null), [I, $] = _.useState(!1), [B, J] = _.useState(!1), [j, Y] = _.useState(!1), [ee, te] = _.useState(!1), [se, oe] = _.useState(!1), [ue, fe] = _.useState(0), [at, Ke] = _.useState(0), Te = _.useRef(l.duration || F || br), Kt = _.useRef(null), ye = _.useRef(null), Hc = y === 0, Vc = y + 1 <= g, Se = l.type, gt = l.dismissible !== !1, Wc = l.className || "", Uc = l.descriptionClassName || "", Xt = _.useMemo(() => v.findIndex((ne) => ne.toastId === l.id) || 0, [
|
|
898
904
|
v,
|
|
899
905
|
l.id
|
|
900
906
|
]), jc = _.useMemo(() => {
|
|
@@ -903,14 +909,14 @@ const Fl = (e) => {
|
|
|
903
909
|
}, [
|
|
904
910
|
l.closeButton,
|
|
905
911
|
R
|
|
906
|
-
]), dr = _.useMemo(() => l.duration ||
|
|
912
|
+
]), dr = _.useMemo(() => l.duration || F || br, [
|
|
907
913
|
l.duration,
|
|
908
|
-
|
|
909
|
-
]), Yn = _.useRef(0), vt = _.useRef(0), ur = _.useRef(0), bt = _.useRef(null), [Gc, Yc] =
|
|
914
|
+
F
|
|
915
|
+
]), Yn = _.useRef(0), vt = _.useRef(0), ur = _.useRef(0), bt = _.useRef(null), [Gc, Yc] = H.split("-"), fr = _.useMemo(() => v.reduce((ne, me, ge) => ge >= Xt ? ne : ne + me.height, 0), [
|
|
910
916
|
v,
|
|
911
917
|
Xt
|
|
912
918
|
]), pr = kl(), qc = l.invert || p, qn = Se === "loading";
|
|
913
|
-
vt.current = _.useMemo(() => Xt *
|
|
919
|
+
vt.current = _.useMemo(() => Xt * O + fr, [
|
|
914
920
|
Xt,
|
|
915
921
|
fr
|
|
916
922
|
]), _.useEffect(() => {
|
|
@@ -918,9 +924,9 @@ const Fl = (e) => {
|
|
|
918
924
|
}, [
|
|
919
925
|
dr
|
|
920
926
|
]), _.useEffect(() => {
|
|
921
|
-
|
|
927
|
+
$(!0);
|
|
922
928
|
}, []), _.useEffect(() => {
|
|
923
|
-
const ne =
|
|
929
|
+
const ne = ye.current;
|
|
924
930
|
if (ne) {
|
|
925
931
|
const me = ne.getBoundingClientRect().height;
|
|
926
932
|
return Ke(me), b((ge) => [
|
|
@@ -937,7 +943,7 @@ const Fl = (e) => {
|
|
|
937
943
|
l.id
|
|
938
944
|
]), _.useLayoutEffect(() => {
|
|
939
945
|
if (!I) return;
|
|
940
|
-
const ne =
|
|
946
|
+
const ne = ye.current, me = ne.style.height;
|
|
941
947
|
ne.style.height = "auto";
|
|
942
948
|
const ge = ne.getBoundingClientRect().height;
|
|
943
949
|
ne.style.height = me, Ke(ge), b((Ce) => Ce.find((he) => he.toastId === l.id) ? Ce.map((he) => he.toastId === l.id ? {
|
|
@@ -1000,37 +1006,37 @@ const Fl = (e) => {
|
|
|
1000
1006
|
]);
|
|
1001
1007
|
function Kc() {
|
|
1002
1008
|
var ne;
|
|
1003
|
-
if (
|
|
1009
|
+
if (D != null && D.loading) {
|
|
1004
1010
|
var me;
|
|
1005
1011
|
return /* @__PURE__ */ _.createElement("div", {
|
|
1006
|
-
className: ze(
|
|
1012
|
+
className: ze(P == null ? void 0 : P.loader, l == null || (me = l.classNames) == null ? void 0 : me.loader, "sonner-loader"),
|
|
1007
1013
|
"data-visible": Se === "loading"
|
|
1008
|
-
},
|
|
1014
|
+
}, D.loading);
|
|
1009
1015
|
}
|
|
1010
1016
|
return /* @__PURE__ */ _.createElement(bl, {
|
|
1011
|
-
className: ze(
|
|
1017
|
+
className: ze(P == null ? void 0 : P.loader, l == null || (ne = l.classNames) == null ? void 0 : ne.loader),
|
|
1012
1018
|
visible: Se === "loading"
|
|
1013
1019
|
});
|
|
1014
1020
|
}
|
|
1015
|
-
const Xc = l.icon || (
|
|
1021
|
+
const Xc = l.icon || (D == null ? void 0 : D[Se]) || gl(Se);
|
|
1016
1022
|
var mr, hr;
|
|
1017
1023
|
return /* @__PURE__ */ _.createElement("li", {
|
|
1018
1024
|
tabIndex: 0,
|
|
1019
|
-
ref:
|
|
1020
|
-
className: ze(
|
|
1025
|
+
ref: ye,
|
|
1026
|
+
className: ze(W, Wc, P == null ? void 0 : P.toast, l == null || (t = l.classNames) == null ? void 0 : t.toast, P == null ? void 0 : P.default, P == null ? void 0 : P[Se], l == null || (n = l.classNames) == null ? void 0 : n[Se]),
|
|
1021
1027
|
"data-sonner-toast": "",
|
|
1022
|
-
"data-rich-colors": (mr = l.richColors) != null ? mr :
|
|
1028
|
+
"data-rich-colors": (mr = l.richColors) != null ? mr : N,
|
|
1023
1029
|
"data-styled": !(l.jsx || l.unstyled || m),
|
|
1024
1030
|
"data-mounted": I,
|
|
1025
1031
|
"data-promise": !!l.promise,
|
|
1026
1032
|
"data-swiped": se,
|
|
1027
|
-
"data-removed":
|
|
1033
|
+
"data-removed": B,
|
|
1028
1034
|
"data-visible": Vc,
|
|
1029
1035
|
"data-y-position": Gc,
|
|
1030
1036
|
"data-x-position": Yc,
|
|
1031
1037
|
"data-index": y,
|
|
1032
1038
|
"data-front": Hc,
|
|
1033
|
-
"data-swiping":
|
|
1039
|
+
"data-swiping": j,
|
|
1034
1040
|
"data-dismissible": gt,
|
|
1035
1041
|
"data-type": Se,
|
|
1036
1042
|
"data-invert": qc,
|
|
@@ -1042,16 +1048,16 @@ const Fl = (e) => {
|
|
|
1042
1048
|
"--index": y,
|
|
1043
1049
|
"--toasts-before": y,
|
|
1044
1050
|
"--z-index": w.length - y,
|
|
1045
|
-
"--offset": `${
|
|
1051
|
+
"--offset": `${B ? ue : vt.current}px`,
|
|
1046
1052
|
"--initial-height": K ? "auto" : `${at}px`,
|
|
1047
|
-
...
|
|
1053
|
+
...E,
|
|
1048
1054
|
...l.style
|
|
1049
1055
|
},
|
|
1050
1056
|
onDragEnd: () => {
|
|
1051
|
-
|
|
1057
|
+
Y(!1), S(null), bt.current = null;
|
|
1052
1058
|
},
|
|
1053
1059
|
onPointerDown: (ne) => {
|
|
1054
|
-
ne.button !== 2 && (qn || !gt || (Kt.current = /* @__PURE__ */ new Date(), fe(vt.current), ne.target.setPointerCapture(ne.pointerId), ne.target.tagName !== "BUTTON" && (
|
|
1060
|
+
ne.button !== 2 && (qn || !gt || (Kt.current = /* @__PURE__ */ new Date(), fe(vt.current), ne.target.setPointerCapture(ne.pointerId), ne.target.tagName !== "BUTTON" && (Y(!0), bt.current = {
|
|
1055
1061
|
x: ne.clientX,
|
|
1056
1062
|
y: ne.clientY
|
|
1057
1063
|
})));
|
|
@@ -1060,22 +1066,22 @@ const Fl = (e) => {
|
|
|
1060
1066
|
var ne, me, ge;
|
|
1061
1067
|
if (ee || !gt) return;
|
|
1062
1068
|
bt.current = null;
|
|
1063
|
-
const Ce = Number(((ne =
|
|
1069
|
+
const Ce = Number(((ne = ye.current) == null ? void 0 : ne.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), Zt = Number(((me = ye.current) == null ? void 0 : me.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), he = (/* @__PURE__ */ new Date()).getTime() - ((ge = Kt.current) == null ? void 0 : ge.getTime()), Ne = T === "x" ? Ce : Zt, Jt = Math.abs(Ne) / he;
|
|
1064
1070
|
if (Math.abs(Ne) >= Dl || Jt > 0.11) {
|
|
1065
|
-
fe(vt.current), l.onDismiss == null || l.onDismiss.call(l, l),
|
|
1071
|
+
fe(vt.current), l.onDismiss == null || l.onDismiss.call(l, l), z(T === "x" ? Ce > 0 ? "right" : "left" : Zt > 0 ? "down" : "up"), Xe(), te(!0);
|
|
1066
1072
|
return;
|
|
1067
1073
|
} else {
|
|
1068
1074
|
var Pe, Ae;
|
|
1069
|
-
(Pe =
|
|
1075
|
+
(Pe = ye.current) == null || Pe.style.setProperty("--swipe-amount-x", "0px"), (Ae = ye.current) == null || Ae.style.setProperty("--swipe-amount-y", "0px");
|
|
1070
1076
|
}
|
|
1071
|
-
oe(!1),
|
|
1077
|
+
oe(!1), Y(!1), S(null);
|
|
1072
1078
|
},
|
|
1073
1079
|
onPointerMove: (ne) => {
|
|
1074
1080
|
var me, ge, Ce;
|
|
1075
1081
|
if (!bt.current || !gt || ((me = window.getSelection()) == null ? void 0 : me.toString().length) > 0) return;
|
|
1076
1082
|
const he = ne.clientY - bt.current.y, Ne = ne.clientX - bt.current.x;
|
|
1077
1083
|
var Jt;
|
|
1078
|
-
const Pe = (Jt = e.swipeDirections) != null ? Jt : $l(
|
|
1084
|
+
const Pe = (Jt = e.swipeDirections) != null ? Jt : $l(H);
|
|
1079
1085
|
!T && (Math.abs(Ne) > 1 || Math.abs(he) > 1) && S(Math.abs(Ne) > Math.abs(he) ? "x" : "y");
|
|
1080
1086
|
let Ae = {
|
|
1081
1087
|
x: 0,
|
|
@@ -1097,29 +1103,29 @@ const Fl = (e) => {
|
|
|
1097
1103
|
const it = Ne * gr(Ne);
|
|
1098
1104
|
Ae.x = Math.abs(it) < Math.abs(Ne) ? it : Ne;
|
|
1099
1105
|
}
|
|
1100
|
-
(Math.abs(Ae.x) > 0 || Math.abs(Ae.y) > 0) && oe(!0), (ge =
|
|
1106
|
+
(Math.abs(Ae.x) > 0 || Math.abs(Ae.y) > 0) && oe(!0), (ge = ye.current) == null || ge.style.setProperty("--swipe-amount-x", `${Ae.x}px`), (Ce = ye.current) == null || Ce.style.setProperty("--swipe-amount-y", `${Ae.y}px`);
|
|
1101
1107
|
}
|
|
1102
1108
|
}, jc && !l.jsx && Se !== "loading" ? /* @__PURE__ */ _.createElement("button", {
|
|
1103
|
-
"aria-label":
|
|
1109
|
+
"aria-label": U,
|
|
1104
1110
|
"data-disabled": qn,
|
|
1105
1111
|
"data-close-button": !0,
|
|
1106
1112
|
onClick: qn || !gt ? () => {
|
|
1107
1113
|
} : () => {
|
|
1108
1114
|
Xe(), l.onDismiss == null || l.onDismiss.call(l, l);
|
|
1109
1115
|
},
|
|
1110
|
-
className: ze(
|
|
1111
|
-
}, (hr =
|
|
1116
|
+
className: ze(P == null ? void 0 : P.closeButton, l == null || (o = l.classNames) == null ? void 0 : o.closeButton)
|
|
1117
|
+
}, (hr = D == null ? void 0 : D.close) != null ? hr : Cl) : null, (Se || l.icon || l.promise) && l.icon !== null && ((D == null ? void 0 : D[Se]) !== null || l.icon) ? /* @__PURE__ */ _.createElement("div", {
|
|
1112
1118
|
"data-icon": "",
|
|
1113
|
-
className: ze(
|
|
1119
|
+
className: ze(P == null ? void 0 : P.icon, l == null || (r = l.classNames) == null ? void 0 : r.icon)
|
|
1114
1120
|
}, l.promise || l.type === "loading" && !l.icon ? l.icon || Kc() : null, l.type !== "loading" ? Xc : null) : null, /* @__PURE__ */ _.createElement("div", {
|
|
1115
1121
|
"data-content": "",
|
|
1116
|
-
className: ze(
|
|
1122
|
+
className: ze(P == null ? void 0 : P.content, l == null || (s = l.classNames) == null ? void 0 : s.content)
|
|
1117
1123
|
}, /* @__PURE__ */ _.createElement("div", {
|
|
1118
1124
|
"data-title": "",
|
|
1119
|
-
className: ze(
|
|
1125
|
+
className: ze(P == null ? void 0 : P.title, l == null || (a = l.classNames) == null ? void 0 : a.title)
|
|
1120
1126
|
}, l.jsx ? l.jsx : typeof l.title == "function" ? l.title() : l.title), l.description ? /* @__PURE__ */ _.createElement("div", {
|
|
1121
1127
|
"data-description": "",
|
|
1122
|
-
className: ze(
|
|
1128
|
+
className: ze(M, Uc, P == null ? void 0 : P.description, l == null || (i = l.classNames) == null ? void 0 : i.description)
|
|
1123
1129
|
}, typeof l.description == "function" ? l.description() : l.description) : null), /* @__PURE__ */ _.isValidElement(l.cancel) ? l.cancel : l.cancel && en(l.cancel) ? /* @__PURE__ */ _.createElement("button", {
|
|
1124
1130
|
"data-button": !0,
|
|
1125
1131
|
"data-cancel": !0,
|
|
@@ -1127,15 +1133,15 @@ const Fl = (e) => {
|
|
|
1127
1133
|
onClick: (ne) => {
|
|
1128
1134
|
en(l.cancel) && gt && (l.cancel.onClick == null || l.cancel.onClick.call(l.cancel, ne), Xe());
|
|
1129
1135
|
},
|
|
1130
|
-
className: ze(
|
|
1136
|
+
className: ze(P == null ? void 0 : P.cancelButton, l == null || (c = l.classNames) == null ? void 0 : c.cancelButton)
|
|
1131
1137
|
}, l.cancel.label) : null, /* @__PURE__ */ _.isValidElement(l.action) ? l.action : l.action && en(l.action) ? /* @__PURE__ */ _.createElement("button", {
|
|
1132
1138
|
"data-button": !0,
|
|
1133
1139
|
"data-action": !0,
|
|
1134
|
-
style: l.actionButtonStyle ||
|
|
1140
|
+
style: l.actionButtonStyle || L,
|
|
1135
1141
|
onClick: (ne) => {
|
|
1136
1142
|
en(l.action) && (l.action.onClick == null || l.action.onClick.call(l.action, ne), !ne.defaultPrevented && Xe());
|
|
1137
1143
|
},
|
|
1138
|
-
className: ze(
|
|
1144
|
+
className: ze(P == null ? void 0 : P.actionButton, l == null || (d = l.classNames) == null ? void 0 : d.actionButton)
|
|
1139
1145
|
}, l.action.label) : null);
|
|
1140
1146
|
};
|
|
1141
1147
|
function yr() {
|
|
@@ -1174,44 +1180,44 @@ const Hl = /* @__PURE__ */ _.forwardRef(function(t, n) {
|
|
|
1174
1180
|
const { id: o, invert: r, position: s = "bottom-right", hotkey: a = [
|
|
1175
1181
|
"altKey",
|
|
1176
1182
|
"KeyT"
|
|
1177
|
-
], expand: i, closeButton: c, className: d, offset: p, mobileOffset: l, theme: m = "light", richColors: h, duration: b, style: g, visibleToasts: v = Il, toastOptions: y, dir: w = yr(), gap: x = Ll, icons: C, containerAriaLabel:
|
|
1183
|
+
], expand: i, closeButton: c, className: d, offset: p, mobileOffset: l, theme: m = "light", richColors: h, duration: b, style: g, visibleToasts: v = Il, toastOptions: y, dir: w = yr(), gap: x = Ll, icons: C, containerAriaLabel: N = "Notifications" } = t, [R, E] = _.useState([]), k = _.useMemo(() => o ? R.filter((I) => I.toasterId === o) : R.filter((I) => !I.toasterId), [
|
|
1178
1184
|
R,
|
|
1179
1185
|
o
|
|
1180
|
-
]),
|
|
1186
|
+
]), L = _.useMemo(() => Array.from(new Set([
|
|
1181
1187
|
s
|
|
1182
1188
|
].concat(k.filter((I) => I.position).map((I) => I.position)))), [
|
|
1183
1189
|
k,
|
|
1184
1190
|
s
|
|
1185
|
-
]), [
|
|
1186
|
-
|
|
1187
|
-
var
|
|
1188
|
-
return (
|
|
1191
|
+
]), [W, M] = _.useState([]), [F, H] = _.useState(!1), [O, K] = _.useState(!1), [P, D] = _.useState(m !== "system" ? m : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), U = _.useRef(null), T = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), S = _.useRef(null), A = _.useRef(!1), z = _.useCallback((I) => {
|
|
1192
|
+
E(($) => {
|
|
1193
|
+
var B;
|
|
1194
|
+
return (B = $.find((J) => J.id === I.id)) != null && B.delete || we.dismiss(I.id), $.filter(({ id: J }) => J !== I.id);
|
|
1189
1195
|
});
|
|
1190
1196
|
}, []);
|
|
1191
1197
|
return _.useEffect(() => we.subscribe((I) => {
|
|
1192
1198
|
if (I.dismiss) {
|
|
1193
1199
|
requestAnimationFrame(() => {
|
|
1194
|
-
|
|
1195
|
-
|
|
1200
|
+
E(($) => $.map((B) => B.id === I.id ? {
|
|
1201
|
+
...B,
|
|
1196
1202
|
delete: !0
|
|
1197
|
-
} :
|
|
1203
|
+
} : B));
|
|
1198
1204
|
});
|
|
1199
1205
|
return;
|
|
1200
1206
|
}
|
|
1201
1207
|
setTimeout(() => {
|
|
1202
1208
|
ps.flushSync(() => {
|
|
1203
|
-
|
|
1204
|
-
const
|
|
1205
|
-
return
|
|
1206
|
-
|
|
1209
|
+
E(($) => {
|
|
1210
|
+
const B = $.findIndex((J) => J.id === I.id);
|
|
1211
|
+
return B !== -1 ? [
|
|
1212
|
+
...$.slice(0, B),
|
|
1207
1213
|
{
|
|
1208
|
-
|
|
1214
|
+
...$[B],
|
|
1209
1215
|
...I
|
|
1210
1216
|
},
|
|
1211
|
-
|
|
1217
|
+
...$.slice(B + 1)
|
|
1212
1218
|
] : [
|
|
1213
1219
|
I,
|
|
1214
|
-
|
|
1220
|
+
...$
|
|
1215
1221
|
];
|
|
1216
1222
|
});
|
|
1217
1223
|
});
|
|
@@ -1220,19 +1226,19 @@ const Hl = /* @__PURE__ */ _.forwardRef(function(t, n) {
|
|
|
1220
1226
|
R
|
|
1221
1227
|
]), _.useEffect(() => {
|
|
1222
1228
|
if (m !== "system") {
|
|
1223
|
-
|
|
1229
|
+
D(m);
|
|
1224
1230
|
return;
|
|
1225
1231
|
}
|
|
1226
|
-
if (m === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ?
|
|
1232
|
+
if (m === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? D("dark") : D("light")), typeof window > "u") return;
|
|
1227
1233
|
const I = window.matchMedia("(prefers-color-scheme: dark)");
|
|
1228
1234
|
try {
|
|
1229
|
-
I.addEventListener("change", ({ matches:
|
|
1230
|
-
|
|
1235
|
+
I.addEventListener("change", ({ matches: $ }) => {
|
|
1236
|
+
D($ ? "dark" : "light");
|
|
1231
1237
|
});
|
|
1232
1238
|
} catch {
|
|
1233
|
-
I.addListener(({ matches:
|
|
1239
|
+
I.addListener(({ matches: B }) => {
|
|
1234
1240
|
try {
|
|
1235
|
-
B
|
|
1241
|
+
D(B ? "dark" : "light");
|
|
1236
1242
|
} catch (J) {
|
|
1237
1243
|
console.error(J);
|
|
1238
1244
|
}
|
|
@@ -1241,84 +1247,84 @@ const Hl = /* @__PURE__ */ _.forwardRef(function(t, n) {
|
|
|
1241
1247
|
}, [
|
|
1242
1248
|
m
|
|
1243
1249
|
]), _.useEffect(() => {
|
|
1244
|
-
R.length <= 1 &&
|
|
1250
|
+
R.length <= 1 && H(!1);
|
|
1245
1251
|
}, [
|
|
1246
1252
|
R
|
|
1247
1253
|
]), _.useEffect(() => {
|
|
1248
|
-
const I = (
|
|
1249
|
-
var
|
|
1250
|
-
if (a.every((
|
|
1251
|
-
var
|
|
1252
|
-
|
|
1254
|
+
const I = ($) => {
|
|
1255
|
+
var B;
|
|
1256
|
+
if (a.every((Y) => $[Y] || $.code === Y)) {
|
|
1257
|
+
var j;
|
|
1258
|
+
H(!0), (j = U.current) == null || j.focus();
|
|
1253
1259
|
}
|
|
1254
|
-
|
|
1260
|
+
$.code === "Escape" && (document.activeElement === U.current || (B = U.current) != null && B.contains(document.activeElement)) && H(!1);
|
|
1255
1261
|
};
|
|
1256
1262
|
return document.addEventListener("keydown", I), () => document.removeEventListener("keydown", I);
|
|
1257
1263
|
}, [
|
|
1258
1264
|
a
|
|
1259
1265
|
]), _.useEffect(() => {
|
|
1260
|
-
if (
|
|
1266
|
+
if (U.current)
|
|
1261
1267
|
return () => {
|
|
1262
1268
|
S.current && (S.current.focus({
|
|
1263
1269
|
preventScroll: !0
|
|
1264
1270
|
}), S.current = null, A.current = !1);
|
|
1265
1271
|
};
|
|
1266
1272
|
}, [
|
|
1267
|
-
|
|
1273
|
+
U.current
|
|
1268
1274
|
]), // Remove item from normal navigation flow, only available via hotkey
|
|
1269
1275
|
/* @__PURE__ */ _.createElement("section", {
|
|
1270
1276
|
ref: n,
|
|
1271
|
-
"aria-label": `${
|
|
1277
|
+
"aria-label": `${N} ${T}`,
|
|
1272
1278
|
tabIndex: -1,
|
|
1273
1279
|
"aria-live": "polite",
|
|
1274
1280
|
"aria-relevant": "additions text",
|
|
1275
1281
|
"aria-atomic": "false",
|
|
1276
1282
|
suppressHydrationWarning: !0
|
|
1277
|
-
},
|
|
1278
|
-
var
|
|
1279
|
-
const [J,
|
|
1283
|
+
}, L.map((I, $) => {
|
|
1284
|
+
var B;
|
|
1285
|
+
const [J, j] = I.split("-");
|
|
1280
1286
|
return k.length ? /* @__PURE__ */ _.createElement("ol", {
|
|
1281
1287
|
key: I,
|
|
1282
1288
|
dir: w === "auto" ? yr() : w,
|
|
1283
1289
|
tabIndex: -1,
|
|
1284
|
-
ref:
|
|
1290
|
+
ref: U,
|
|
1285
1291
|
className: d,
|
|
1286
1292
|
"data-sonner-toaster": !0,
|
|
1287
|
-
"data-sonner-theme":
|
|
1293
|
+
"data-sonner-theme": P,
|
|
1288
1294
|
"data-y-position": J,
|
|
1289
|
-
"data-x-position":
|
|
1295
|
+
"data-x-position": j,
|
|
1290
1296
|
style: {
|
|
1291
|
-
"--front-toast-height": `${((
|
|
1297
|
+
"--front-toast-height": `${((B = W[0]) == null ? void 0 : B.height) || 0}px`,
|
|
1292
1298
|
"--width": `${Ol}px`,
|
|
1293
1299
|
"--gap": `${x}px`,
|
|
1294
1300
|
...g,
|
|
1295
1301
|
...Bl(p, l)
|
|
1296
1302
|
},
|
|
1297
|
-
onBlur: (
|
|
1298
|
-
A.current && !
|
|
1303
|
+
onBlur: (Y) => {
|
|
1304
|
+
A.current && !Y.currentTarget.contains(Y.relatedTarget) && (A.current = !1, S.current && (S.current.focus({
|
|
1299
1305
|
preventScroll: !0
|
|
1300
1306
|
}), S.current = null));
|
|
1301
1307
|
},
|
|
1302
|
-
onFocus: (
|
|
1303
|
-
|
|
1308
|
+
onFocus: (Y) => {
|
|
1309
|
+
Y.target instanceof HTMLElement && Y.target.dataset.dismissible === "false" || A.current || (A.current = !0, S.current = Y.relatedTarget);
|
|
1304
1310
|
},
|
|
1305
|
-
onMouseEnter: () =>
|
|
1306
|
-
onMouseMove: () =>
|
|
1311
|
+
onMouseEnter: () => H(!0),
|
|
1312
|
+
onMouseMove: () => H(!0),
|
|
1307
1313
|
onMouseLeave: () => {
|
|
1308
|
-
|
|
1314
|
+
O || H(!1);
|
|
1309
1315
|
},
|
|
1310
|
-
onDragEnd: () =>
|
|
1311
|
-
onPointerDown: (
|
|
1312
|
-
|
|
1316
|
+
onDragEnd: () => H(!1),
|
|
1317
|
+
onPointerDown: (Y) => {
|
|
1318
|
+
Y.target instanceof HTMLElement && Y.target.dataset.dismissible === "false" || K(!0);
|
|
1313
1319
|
},
|
|
1314
1320
|
onPointerUp: () => K(!1)
|
|
1315
|
-
}, k.filter((
|
|
1321
|
+
}, k.filter((Y) => !Y.position && $ === 0 || Y.position === I).map((Y, ee) => {
|
|
1316
1322
|
var te, se;
|
|
1317
1323
|
return /* @__PURE__ */ _.createElement(Fl, {
|
|
1318
|
-
key:
|
|
1324
|
+
key: Y.id,
|
|
1319
1325
|
icons: C,
|
|
1320
1326
|
index: ee,
|
|
1321
|
-
toast:
|
|
1327
|
+
toast: Y,
|
|
1322
1328
|
defaultRichColors: h,
|
|
1323
1329
|
duration: (te = y == null ? void 0 : y.duration) != null ? te : b,
|
|
1324
1330
|
className: y == null ? void 0 : y.className,
|
|
@@ -1326,7 +1332,7 @@ const Hl = /* @__PURE__ */ _.forwardRef(function(t, n) {
|
|
|
1326
1332
|
invert: r,
|
|
1327
1333
|
visibleToasts: v,
|
|
1328
1334
|
closeButton: (se = y == null ? void 0 : y.closeButton) != null ? se : c,
|
|
1329
|
-
interacting:
|
|
1335
|
+
interacting: O,
|
|
1330
1336
|
position: I,
|
|
1331
1337
|
style: y == null ? void 0 : y.style,
|
|
1332
1338
|
unstyled: y == null ? void 0 : y.unstyled,
|
|
@@ -1334,13 +1340,13 @@ const Hl = /* @__PURE__ */ _.forwardRef(function(t, n) {
|
|
|
1334
1340
|
cancelButtonStyle: y == null ? void 0 : y.cancelButtonStyle,
|
|
1335
1341
|
actionButtonStyle: y == null ? void 0 : y.actionButtonStyle,
|
|
1336
1342
|
closeButtonAriaLabel: y == null ? void 0 : y.closeButtonAriaLabel,
|
|
1337
|
-
removeToast:
|
|
1338
|
-
toasts: k.filter((oe) => oe.position ==
|
|
1339
|
-
heights:
|
|
1340
|
-
setHeights:
|
|
1343
|
+
removeToast: z,
|
|
1344
|
+
toasts: k.filter((oe) => oe.position == Y.position),
|
|
1345
|
+
heights: W.filter((oe) => oe.position == Y.position),
|
|
1346
|
+
setHeights: M,
|
|
1341
1347
|
expandByDefault: i,
|
|
1342
1348
|
gap: x,
|
|
1343
|
-
expanded:
|
|
1349
|
+
expanded: F,
|
|
1344
1350
|
swipeDirections: t.swipeDirections
|
|
1345
1351
|
});
|
|
1346
1352
|
})) : null;
|
|
@@ -1358,7 +1364,8 @@ const Hl = /* @__PURE__ */ _.forwardRef(function(t, n) {
|
|
|
1358
1364
|
return atob(n);
|
|
1359
1365
|
}, Ul = (e, t) => {
|
|
1360
1366
|
const n = e.indexOf(":");
|
|
1361
|
-
if (n === -1)
|
|
1367
|
+
if (n === -1)
|
|
1368
|
+
return;
|
|
1362
1369
|
const o = e.slice(0, n), r = e.slice(n + 1);
|
|
1363
1370
|
if (!(!o || !r)) {
|
|
1364
1371
|
if (!r.startsWith("http")) {
|
|
@@ -1375,7 +1382,8 @@ const Hl = /* @__PURE__ */ _.forwardRef(function(t, n) {
|
|
|
1375
1382
|
}
|
|
1376
1383
|
}, xr = (e, t, n) => {
|
|
1377
1384
|
const o = e.getAll(t);
|
|
1378
|
-
if (o.length === 0)
|
|
1385
|
+
if (o.length === 0)
|
|
1386
|
+
return [];
|
|
1379
1387
|
const r = [];
|
|
1380
1388
|
for (const s of o) {
|
|
1381
1389
|
const a = s.split(",");
|
|
@@ -1400,7 +1408,8 @@ const Hl = /* @__PURE__ */ _.forwardRef(function(t, n) {
|
|
|
1400
1408
|
}, jl = async (e, t) => t.length === 0 ? e : Promise.all(
|
|
1401
1409
|
e.map(async (n) => {
|
|
1402
1410
|
const o = t.find((r) => r.extensionId === n.id);
|
|
1403
|
-
if (!o)
|
|
1411
|
+
if (!o)
|
|
1412
|
+
return n;
|
|
1404
1413
|
console.log(`[Stackable] Dev override active for ${n.id} → ${o.bundleUrl}`);
|
|
1405
1414
|
try {
|
|
1406
1415
|
const r = await fetch(`${o.bundleUrl}/manifest.json`);
|
|
@@ -2233,10 +2242,10 @@ const ru = (e, t) => {
|
|
|
2233
2242
|
if (a.indexOf(C) > -1)
|
|
2234
2243
|
continue;
|
|
2235
2244
|
a.push(C);
|
|
2236
|
-
const
|
|
2237
|
-
for (let R = 0; R <
|
|
2238
|
-
const
|
|
2239
|
-
a.push(x +
|
|
2245
|
+
const N = r(y, v);
|
|
2246
|
+
for (let R = 0; R < N.length; ++R) {
|
|
2247
|
+
const E = N[R];
|
|
2248
|
+
a.push(x + E);
|
|
2240
2249
|
}
|
|
2241
2250
|
c = p + (c.length > 0 ? " " + c : c);
|
|
2242
2251
|
}
|
|
@@ -2274,7 +2283,7 @@ const ru = (e, t) => {
|
|
|
2274
2283
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
2275
2284
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
2276
2285
|
Tu.test(e) && !Pu.test(e)
|
|
2277
|
-
), $o = () => !1, Mu = (e) => Au.test(e), Ou = (e) => Iu.test(e), Lu = (e) => !
|
|
2286
|
+
), $o = () => !1, Mu = (e) => Au.test(e), Ou = (e) => Iu.test(e), Lu = (e) => !V(e) && !G(e), Du = (e) => ot(e, Fs, $o), V = (e) => Os.test(e), ct = (e) => ot(e, Bs, _u), Nr = (e) => ot(e, Uu, re), zu = (e) => ot(e, Vs, Ds), $u = (e) => ot(e, Hs, $o), Rr = (e) => ot(e, zs, $o), Fu = (e) => ot(e, $s, Ou), tn = (e) => ot(e, Ws, Mu), G = (e) => Ls.test(e), Lt = (e) => mt(e, Bs), Bu = (e) => mt(e, Hs), Tr = (e) => mt(e, zs), Hu = (e) => mt(e, Fs), Vu = (e) => mt(e, $s), nn = (e) => mt(e, Ws, !0), Wu = (e) => mt(e, Vs, !0), ot = (e, t, n) => {
|
|
2278
2287
|
const o = Os.exec(e);
|
|
2279
2288
|
return o ? o[1] ? t(o[1]) : n(o[2]) : !1;
|
|
2280
2289
|
}, mt = (e, t, n = !1) => {
|
|
@@ -2299,30 +2308,30 @@ const ru = (e, t) => {
|
|
|
2299
2308
|
"bottom-left",
|
|
2300
2309
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
2301
2310
|
"left-bottom"
|
|
2302
|
-
],
|
|
2303
|
-
span: ["full", Je,
|
|
2304
|
-
}, Je,
|
|
2305
|
-
position: [
|
|
2306
|
-
}],
|
|
2311
|
+
], N = () => [...C(), G, V], R = () => ["auto", "hidden", "clip", "visible", "scroll"], E = () => ["auto", "contain", "none"], k = () => [G, V, c], L = () => [Ze, "full", "auto", ...k()], W = () => [Je, "none", "subgrid", G, V], M = () => ["auto", {
|
|
2312
|
+
span: ["full", Je, G, V]
|
|
2313
|
+
}, Je, G, V], F = () => [Je, "auto", G, V], H = () => ["auto", "min", "max", "fr", G, V], O = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], K = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], P = () => ["auto", ...k()], D = () => [Ze, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...k()], U = () => [Ze, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...k()], T = () => [Ze, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...k()], S = () => [e, G, V], A = () => [...C(), Tr, Rr, {
|
|
2314
|
+
position: [G, V]
|
|
2315
|
+
}], z = () => ["no-repeat", {
|
|
2307
2316
|
repeat: ["", "x", "y", "space", "round"]
|
|
2308
2317
|
}], I = () => ["auto", "cover", "contain", Hu, Du, {
|
|
2309
|
-
size: [
|
|
2310
|
-
}],
|
|
2318
|
+
size: [G, V]
|
|
2319
|
+
}], $ = () => [Xn, Lt, ct], B = () => [
|
|
2311
2320
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2312
2321
|
"",
|
|
2313
2322
|
"none",
|
|
2314
2323
|
"full",
|
|
2315
2324
|
d,
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
], J = () => ["", re, Lt, ct],
|
|
2325
|
+
G,
|
|
2326
|
+
V
|
|
2327
|
+
], J = () => ["", re, Lt, ct], j = () => ["solid", "dashed", "dotted", "double"], Y = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], ee = () => [re, Xn, Tr, Rr], te = () => [
|
|
2319
2328
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2320
2329
|
"",
|
|
2321
2330
|
"none",
|
|
2322
2331
|
b,
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
], se = () => ["none", re,
|
|
2332
|
+
G,
|
|
2333
|
+
V
|
|
2334
|
+
], se = () => ["none", re, G, V], oe = () => ["none", re, G, V], ue = () => [re, G, V], fe = () => [Ze, "full", ...k()];
|
|
2326
2335
|
return {
|
|
2327
2336
|
cacheSize: 500,
|
|
2328
2337
|
theme: {
|
|
@@ -2355,7 +2364,7 @@ const ru = (e, t) => {
|
|
|
2355
2364
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
2356
2365
|
*/
|
|
2357
2366
|
aspect: [{
|
|
2358
|
-
aspect: ["auto", "square", Ze,
|
|
2367
|
+
aspect: ["auto", "square", Ze, V, G, v]
|
|
2359
2368
|
}],
|
|
2360
2369
|
/**
|
|
2361
2370
|
* Container
|
|
@@ -2368,7 +2377,7 @@ const ru = (e, t) => {
|
|
|
2368
2377
|
* @see https://tailwindcss.com/docs/columns
|
|
2369
2378
|
*/
|
|
2370
2379
|
columns: [{
|
|
2371
|
-
columns: [re,
|
|
2380
|
+
columns: [re, V, G, i]
|
|
2372
2381
|
}],
|
|
2373
2382
|
/**
|
|
2374
2383
|
* Break After
|
|
@@ -2446,7 +2455,7 @@ const ru = (e, t) => {
|
|
|
2446
2455
|
* @see https://tailwindcss.com/docs/object-position
|
|
2447
2456
|
*/
|
|
2448
2457
|
"object-position": [{
|
|
2449
|
-
object:
|
|
2458
|
+
object: N()
|
|
2450
2459
|
}],
|
|
2451
2460
|
/**
|
|
2452
2461
|
* Overflow
|
|
@@ -2474,21 +2483,21 @@ const ru = (e, t) => {
|
|
|
2474
2483
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
2475
2484
|
*/
|
|
2476
2485
|
overscroll: [{
|
|
2477
|
-
overscroll:
|
|
2486
|
+
overscroll: E()
|
|
2478
2487
|
}],
|
|
2479
2488
|
/**
|
|
2480
2489
|
* Overscroll Behavior X
|
|
2481
2490
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
2482
2491
|
*/
|
|
2483
2492
|
"overscroll-x": [{
|
|
2484
|
-
"overscroll-x":
|
|
2493
|
+
"overscroll-x": E()
|
|
2485
2494
|
}],
|
|
2486
2495
|
/**
|
|
2487
2496
|
* Overscroll Behavior Y
|
|
2488
2497
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
2489
2498
|
*/
|
|
2490
2499
|
"overscroll-y": [{
|
|
2491
|
-
"overscroll-y":
|
|
2500
|
+
"overscroll-y": E()
|
|
2492
2501
|
}],
|
|
2493
2502
|
/**
|
|
2494
2503
|
* Position
|
|
@@ -2500,21 +2509,21 @@ const ru = (e, t) => {
|
|
|
2500
2509
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
2501
2510
|
*/
|
|
2502
2511
|
inset: [{
|
|
2503
|
-
inset:
|
|
2512
|
+
inset: L()
|
|
2504
2513
|
}],
|
|
2505
2514
|
/**
|
|
2506
2515
|
* Inset Inline
|
|
2507
2516
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
2508
2517
|
*/
|
|
2509
2518
|
"inset-x": [{
|
|
2510
|
-
"inset-x":
|
|
2519
|
+
"inset-x": L()
|
|
2511
2520
|
}],
|
|
2512
2521
|
/**
|
|
2513
2522
|
* Inset Block
|
|
2514
2523
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
2515
2524
|
*/
|
|
2516
2525
|
"inset-y": [{
|
|
2517
|
-
"inset-y":
|
|
2526
|
+
"inset-y": L()
|
|
2518
2527
|
}],
|
|
2519
2528
|
/**
|
|
2520
2529
|
* Inset Inline Start
|
|
@@ -2522,12 +2531,12 @@ const ru = (e, t) => {
|
|
|
2522
2531
|
* @todo class group will be renamed to `inset-s` in next major release
|
|
2523
2532
|
*/
|
|
2524
2533
|
start: [{
|
|
2525
|
-
"inset-s":
|
|
2534
|
+
"inset-s": L(),
|
|
2526
2535
|
/**
|
|
2527
2536
|
* @deprecated since Tailwind CSS v4.2.0 in favor of `inset-s-*` utilities.
|
|
2528
2537
|
* @see https://github.com/tailwindlabs/tailwindcss/pull/19613
|
|
2529
2538
|
*/
|
|
2530
|
-
start:
|
|
2539
|
+
start: L()
|
|
2531
2540
|
}],
|
|
2532
2541
|
/**
|
|
2533
2542
|
* Inset Inline End
|
|
@@ -2535,54 +2544,54 @@ const ru = (e, t) => {
|
|
|
2535
2544
|
* @todo class group will be renamed to `inset-e` in next major release
|
|
2536
2545
|
*/
|
|
2537
2546
|
end: [{
|
|
2538
|
-
"inset-e":
|
|
2547
|
+
"inset-e": L(),
|
|
2539
2548
|
/**
|
|
2540
2549
|
* @deprecated since Tailwind CSS v4.2.0 in favor of `inset-e-*` utilities.
|
|
2541
2550
|
* @see https://github.com/tailwindlabs/tailwindcss/pull/19613
|
|
2542
2551
|
*/
|
|
2543
|
-
end:
|
|
2552
|
+
end: L()
|
|
2544
2553
|
}],
|
|
2545
2554
|
/**
|
|
2546
2555
|
* Inset Block Start
|
|
2547
2556
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
2548
2557
|
*/
|
|
2549
2558
|
"inset-bs": [{
|
|
2550
|
-
"inset-bs":
|
|
2559
|
+
"inset-bs": L()
|
|
2551
2560
|
}],
|
|
2552
2561
|
/**
|
|
2553
2562
|
* Inset Block End
|
|
2554
2563
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
2555
2564
|
*/
|
|
2556
2565
|
"inset-be": [{
|
|
2557
|
-
"inset-be":
|
|
2566
|
+
"inset-be": L()
|
|
2558
2567
|
}],
|
|
2559
2568
|
/**
|
|
2560
2569
|
* Top
|
|
2561
2570
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
2562
2571
|
*/
|
|
2563
2572
|
top: [{
|
|
2564
|
-
top:
|
|
2573
|
+
top: L()
|
|
2565
2574
|
}],
|
|
2566
2575
|
/**
|
|
2567
2576
|
* Right
|
|
2568
2577
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
2569
2578
|
*/
|
|
2570
2579
|
right: [{
|
|
2571
|
-
right:
|
|
2580
|
+
right: L()
|
|
2572
2581
|
}],
|
|
2573
2582
|
/**
|
|
2574
2583
|
* Bottom
|
|
2575
2584
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
2576
2585
|
*/
|
|
2577
2586
|
bottom: [{
|
|
2578
|
-
bottom:
|
|
2587
|
+
bottom: L()
|
|
2579
2588
|
}],
|
|
2580
2589
|
/**
|
|
2581
2590
|
* Left
|
|
2582
2591
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
2583
2592
|
*/
|
|
2584
2593
|
left: [{
|
|
2585
|
-
left:
|
|
2594
|
+
left: L()
|
|
2586
2595
|
}],
|
|
2587
2596
|
/**
|
|
2588
2597
|
* Visibility
|
|
@@ -2594,7 +2603,7 @@ const ru = (e, t) => {
|
|
|
2594
2603
|
* @see https://tailwindcss.com/docs/z-index
|
|
2595
2604
|
*/
|
|
2596
2605
|
z: [{
|
|
2597
|
-
z: [Je, "auto",
|
|
2606
|
+
z: [Je, "auto", G, V]
|
|
2598
2607
|
}],
|
|
2599
2608
|
// ------------------------
|
|
2600
2609
|
// --- Flexbox and Grid ---
|
|
@@ -2625,84 +2634,84 @@ const ru = (e, t) => {
|
|
|
2625
2634
|
* @see https://tailwindcss.com/docs/flex
|
|
2626
2635
|
*/
|
|
2627
2636
|
flex: [{
|
|
2628
|
-
flex: [re, Ze, "auto", "initial", "none",
|
|
2637
|
+
flex: [re, Ze, "auto", "initial", "none", V]
|
|
2629
2638
|
}],
|
|
2630
2639
|
/**
|
|
2631
2640
|
* Flex Grow
|
|
2632
2641
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
2633
2642
|
*/
|
|
2634
2643
|
grow: [{
|
|
2635
|
-
grow: ["", re,
|
|
2644
|
+
grow: ["", re, G, V]
|
|
2636
2645
|
}],
|
|
2637
2646
|
/**
|
|
2638
2647
|
* Flex Shrink
|
|
2639
2648
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
2640
2649
|
*/
|
|
2641
2650
|
shrink: [{
|
|
2642
|
-
shrink: ["", re,
|
|
2651
|
+
shrink: ["", re, G, V]
|
|
2643
2652
|
}],
|
|
2644
2653
|
/**
|
|
2645
2654
|
* Order
|
|
2646
2655
|
* @see https://tailwindcss.com/docs/order
|
|
2647
2656
|
*/
|
|
2648
2657
|
order: [{
|
|
2649
|
-
order: [Je, "first", "last", "none",
|
|
2658
|
+
order: [Je, "first", "last", "none", G, V]
|
|
2650
2659
|
}],
|
|
2651
2660
|
/**
|
|
2652
2661
|
* Grid Template Columns
|
|
2653
2662
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
2654
2663
|
*/
|
|
2655
2664
|
"grid-cols": [{
|
|
2656
|
-
"grid-cols":
|
|
2665
|
+
"grid-cols": W()
|
|
2657
2666
|
}],
|
|
2658
2667
|
/**
|
|
2659
2668
|
* Grid Column Start / End
|
|
2660
2669
|
* @see https://tailwindcss.com/docs/grid-column
|
|
2661
2670
|
*/
|
|
2662
2671
|
"col-start-end": [{
|
|
2663
|
-
col:
|
|
2672
|
+
col: M()
|
|
2664
2673
|
}],
|
|
2665
2674
|
/**
|
|
2666
2675
|
* Grid Column Start
|
|
2667
2676
|
* @see https://tailwindcss.com/docs/grid-column
|
|
2668
2677
|
*/
|
|
2669
2678
|
"col-start": [{
|
|
2670
|
-
"col-start":
|
|
2679
|
+
"col-start": F()
|
|
2671
2680
|
}],
|
|
2672
2681
|
/**
|
|
2673
2682
|
* Grid Column End
|
|
2674
2683
|
* @see https://tailwindcss.com/docs/grid-column
|
|
2675
2684
|
*/
|
|
2676
2685
|
"col-end": [{
|
|
2677
|
-
"col-end":
|
|
2686
|
+
"col-end": F()
|
|
2678
2687
|
}],
|
|
2679
2688
|
/**
|
|
2680
2689
|
* Grid Template Rows
|
|
2681
2690
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
2682
2691
|
*/
|
|
2683
2692
|
"grid-rows": [{
|
|
2684
|
-
"grid-rows":
|
|
2693
|
+
"grid-rows": W()
|
|
2685
2694
|
}],
|
|
2686
2695
|
/**
|
|
2687
2696
|
* Grid Row Start / End
|
|
2688
2697
|
* @see https://tailwindcss.com/docs/grid-row
|
|
2689
2698
|
*/
|
|
2690
2699
|
"row-start-end": [{
|
|
2691
|
-
row:
|
|
2700
|
+
row: M()
|
|
2692
2701
|
}],
|
|
2693
2702
|
/**
|
|
2694
2703
|
* Grid Row Start
|
|
2695
2704
|
* @see https://tailwindcss.com/docs/grid-row
|
|
2696
2705
|
*/
|
|
2697
2706
|
"row-start": [{
|
|
2698
|
-
"row-start":
|
|
2707
|
+
"row-start": F()
|
|
2699
2708
|
}],
|
|
2700
2709
|
/**
|
|
2701
2710
|
* Grid Row End
|
|
2702
2711
|
* @see https://tailwindcss.com/docs/grid-row
|
|
2703
2712
|
*/
|
|
2704
2713
|
"row-end": [{
|
|
2705
|
-
"row-end":
|
|
2714
|
+
"row-end": F()
|
|
2706
2715
|
}],
|
|
2707
2716
|
/**
|
|
2708
2717
|
* Grid Auto Flow
|
|
@@ -2716,14 +2725,14 @@ const ru = (e, t) => {
|
|
|
2716
2725
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
2717
2726
|
*/
|
|
2718
2727
|
"auto-cols": [{
|
|
2719
|
-
"auto-cols":
|
|
2728
|
+
"auto-cols": H()
|
|
2720
2729
|
}],
|
|
2721
2730
|
/**
|
|
2722
2731
|
* Grid Auto Rows
|
|
2723
2732
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
2724
2733
|
*/
|
|
2725
2734
|
"auto-rows": [{
|
|
2726
|
-
"auto-rows":
|
|
2735
|
+
"auto-rows": H()
|
|
2727
2736
|
}],
|
|
2728
2737
|
/**
|
|
2729
2738
|
* Gap
|
|
@@ -2751,7 +2760,7 @@ const ru = (e, t) => {
|
|
|
2751
2760
|
* @see https://tailwindcss.com/docs/justify-content
|
|
2752
2761
|
*/
|
|
2753
2762
|
"justify-content": [{
|
|
2754
|
-
justify: [...
|
|
2763
|
+
justify: [...O(), "normal"]
|
|
2755
2764
|
}],
|
|
2756
2765
|
/**
|
|
2757
2766
|
* Justify Items
|
|
@@ -2772,7 +2781,7 @@ const ru = (e, t) => {
|
|
|
2772
2781
|
* @see https://tailwindcss.com/docs/align-content
|
|
2773
2782
|
*/
|
|
2774
2783
|
"align-content": [{
|
|
2775
|
-
content: ["normal", ...
|
|
2784
|
+
content: ["normal", ...O()]
|
|
2776
2785
|
}],
|
|
2777
2786
|
/**
|
|
2778
2787
|
* Align Items
|
|
@@ -2797,7 +2806,7 @@ const ru = (e, t) => {
|
|
|
2797
2806
|
* @see https://tailwindcss.com/docs/place-content
|
|
2798
2807
|
*/
|
|
2799
2808
|
"place-content": [{
|
|
2800
|
-
"place-content":
|
|
2809
|
+
"place-content": O()
|
|
2801
2810
|
}],
|
|
2802
2811
|
/**
|
|
2803
2812
|
* Place Items
|
|
@@ -2896,77 +2905,77 @@ const ru = (e, t) => {
|
|
|
2896
2905
|
* @see https://tailwindcss.com/docs/margin
|
|
2897
2906
|
*/
|
|
2898
2907
|
m: [{
|
|
2899
|
-
m:
|
|
2908
|
+
m: P()
|
|
2900
2909
|
}],
|
|
2901
2910
|
/**
|
|
2902
2911
|
* Margin Inline
|
|
2903
2912
|
* @see https://tailwindcss.com/docs/margin
|
|
2904
2913
|
*/
|
|
2905
2914
|
mx: [{
|
|
2906
|
-
mx:
|
|
2915
|
+
mx: P()
|
|
2907
2916
|
}],
|
|
2908
2917
|
/**
|
|
2909
2918
|
* Margin Block
|
|
2910
2919
|
* @see https://tailwindcss.com/docs/margin
|
|
2911
2920
|
*/
|
|
2912
2921
|
my: [{
|
|
2913
|
-
my:
|
|
2922
|
+
my: P()
|
|
2914
2923
|
}],
|
|
2915
2924
|
/**
|
|
2916
2925
|
* Margin Inline Start
|
|
2917
2926
|
* @see https://tailwindcss.com/docs/margin
|
|
2918
2927
|
*/
|
|
2919
2928
|
ms: [{
|
|
2920
|
-
ms:
|
|
2929
|
+
ms: P()
|
|
2921
2930
|
}],
|
|
2922
2931
|
/**
|
|
2923
2932
|
* Margin Inline End
|
|
2924
2933
|
* @see https://tailwindcss.com/docs/margin
|
|
2925
2934
|
*/
|
|
2926
2935
|
me: [{
|
|
2927
|
-
me:
|
|
2936
|
+
me: P()
|
|
2928
2937
|
}],
|
|
2929
2938
|
/**
|
|
2930
2939
|
* Margin Block Start
|
|
2931
2940
|
* @see https://tailwindcss.com/docs/margin
|
|
2932
2941
|
*/
|
|
2933
2942
|
mbs: [{
|
|
2934
|
-
mbs:
|
|
2943
|
+
mbs: P()
|
|
2935
2944
|
}],
|
|
2936
2945
|
/**
|
|
2937
2946
|
* Margin Block End
|
|
2938
2947
|
* @see https://tailwindcss.com/docs/margin
|
|
2939
2948
|
*/
|
|
2940
2949
|
mbe: [{
|
|
2941
|
-
mbe:
|
|
2950
|
+
mbe: P()
|
|
2942
2951
|
}],
|
|
2943
2952
|
/**
|
|
2944
2953
|
* Margin Top
|
|
2945
2954
|
* @see https://tailwindcss.com/docs/margin
|
|
2946
2955
|
*/
|
|
2947
2956
|
mt: [{
|
|
2948
|
-
mt:
|
|
2957
|
+
mt: P()
|
|
2949
2958
|
}],
|
|
2950
2959
|
/**
|
|
2951
2960
|
* Margin Right
|
|
2952
2961
|
* @see https://tailwindcss.com/docs/margin
|
|
2953
2962
|
*/
|
|
2954
2963
|
mr: [{
|
|
2955
|
-
mr:
|
|
2964
|
+
mr: P()
|
|
2956
2965
|
}],
|
|
2957
2966
|
/**
|
|
2958
2967
|
* Margin Bottom
|
|
2959
2968
|
* @see https://tailwindcss.com/docs/margin
|
|
2960
2969
|
*/
|
|
2961
2970
|
mb: [{
|
|
2962
|
-
mb:
|
|
2971
|
+
mb: P()
|
|
2963
2972
|
}],
|
|
2964
2973
|
/**
|
|
2965
2974
|
* Margin Left
|
|
2966
2975
|
* @see https://tailwindcss.com/docs/margin
|
|
2967
2976
|
*/
|
|
2968
2977
|
ml: [{
|
|
2969
|
-
ml:
|
|
2978
|
+
ml: P()
|
|
2970
2979
|
}],
|
|
2971
2980
|
/**
|
|
2972
2981
|
* Space Between X
|
|
@@ -3000,28 +3009,28 @@ const ru = (e, t) => {
|
|
|
3000
3009
|
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
3001
3010
|
*/
|
|
3002
3011
|
size: [{
|
|
3003
|
-
size:
|
|
3012
|
+
size: D()
|
|
3004
3013
|
}],
|
|
3005
3014
|
/**
|
|
3006
3015
|
* Inline Size
|
|
3007
3016
|
* @see https://tailwindcss.com/docs/width
|
|
3008
3017
|
*/
|
|
3009
3018
|
"inline-size": [{
|
|
3010
|
-
inline: ["auto", ...
|
|
3019
|
+
inline: ["auto", ...U()]
|
|
3011
3020
|
}],
|
|
3012
3021
|
/**
|
|
3013
3022
|
* Min-Inline Size
|
|
3014
3023
|
* @see https://tailwindcss.com/docs/min-width
|
|
3015
3024
|
*/
|
|
3016
3025
|
"min-inline-size": [{
|
|
3017
|
-
"min-inline": ["auto", ...
|
|
3026
|
+
"min-inline": ["auto", ...U()]
|
|
3018
3027
|
}],
|
|
3019
3028
|
/**
|
|
3020
3029
|
* Max-Inline Size
|
|
3021
3030
|
* @see https://tailwindcss.com/docs/max-width
|
|
3022
3031
|
*/
|
|
3023
3032
|
"max-inline-size": [{
|
|
3024
|
-
"max-inline": ["none", ...
|
|
3033
|
+
"max-inline": ["none", ...U()]
|
|
3025
3034
|
}],
|
|
3026
3035
|
/**
|
|
3027
3036
|
* Block Size
|
|
@@ -3049,7 +3058,7 @@ const ru = (e, t) => {
|
|
|
3049
3058
|
* @see https://tailwindcss.com/docs/width
|
|
3050
3059
|
*/
|
|
3051
3060
|
w: [{
|
|
3052
|
-
w: [i, "screen", ...
|
|
3061
|
+
w: [i, "screen", ...D()]
|
|
3053
3062
|
}],
|
|
3054
3063
|
/**
|
|
3055
3064
|
* Min-Width
|
|
@@ -3061,7 +3070,7 @@ const ru = (e, t) => {
|
|
|
3061
3070
|
"screen",
|
|
3062
3071
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
3063
3072
|
"none",
|
|
3064
|
-
...
|
|
3073
|
+
...D()
|
|
3065
3074
|
]
|
|
3066
3075
|
}],
|
|
3067
3076
|
/**
|
|
@@ -3079,7 +3088,7 @@ const ru = (e, t) => {
|
|
|
3079
3088
|
{
|
|
3080
3089
|
screen: [a]
|
|
3081
3090
|
},
|
|
3082
|
-
...
|
|
3091
|
+
...D()
|
|
3083
3092
|
]
|
|
3084
3093
|
}],
|
|
3085
3094
|
/**
|
|
@@ -3087,21 +3096,21 @@ const ru = (e, t) => {
|
|
|
3087
3096
|
* @see https://tailwindcss.com/docs/height
|
|
3088
3097
|
*/
|
|
3089
3098
|
h: [{
|
|
3090
|
-
h: ["screen", "lh", ...
|
|
3099
|
+
h: ["screen", "lh", ...D()]
|
|
3091
3100
|
}],
|
|
3092
3101
|
/**
|
|
3093
3102
|
* Min-Height
|
|
3094
3103
|
* @see https://tailwindcss.com/docs/min-height
|
|
3095
3104
|
*/
|
|
3096
3105
|
"min-h": [{
|
|
3097
|
-
"min-h": ["screen", "lh", "none", ...
|
|
3106
|
+
"min-h": ["screen", "lh", "none", ...D()]
|
|
3098
3107
|
}],
|
|
3099
3108
|
/**
|
|
3100
3109
|
* Max-Height
|
|
3101
3110
|
* @see https://tailwindcss.com/docs/max-height
|
|
3102
3111
|
*/
|
|
3103
3112
|
"max-h": [{
|
|
3104
|
-
"max-h": ["screen", "lh", ...
|
|
3113
|
+
"max-h": ["screen", "lh", ...D()]
|
|
3105
3114
|
}],
|
|
3106
3115
|
// ------------------
|
|
3107
3116
|
// --- Typography ---
|
|
@@ -3135,7 +3144,7 @@ const ru = (e, t) => {
|
|
|
3135
3144
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
3136
3145
|
*/
|
|
3137
3146
|
"font-stretch": [{
|
|
3138
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Xn,
|
|
3147
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Xn, V]
|
|
3139
3148
|
}],
|
|
3140
3149
|
/**
|
|
3141
3150
|
* Font Family
|
|
@@ -3149,7 +3158,7 @@ const ru = (e, t) => {
|
|
|
3149
3158
|
* @see https://tailwindcss.com/docs/font-feature-settings
|
|
3150
3159
|
*/
|
|
3151
3160
|
"font-features": [{
|
|
3152
|
-
"font-features": [
|
|
3161
|
+
"font-features": [V]
|
|
3153
3162
|
}],
|
|
3154
3163
|
/**
|
|
3155
3164
|
* Font Variant Numeric
|
|
@@ -3186,14 +3195,14 @@ const ru = (e, t) => {
|
|
|
3186
3195
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
3187
3196
|
*/
|
|
3188
3197
|
tracking: [{
|
|
3189
|
-
tracking: [r,
|
|
3198
|
+
tracking: [r, G, V]
|
|
3190
3199
|
}],
|
|
3191
3200
|
/**
|
|
3192
3201
|
* Line Clamp
|
|
3193
3202
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
3194
3203
|
*/
|
|
3195
3204
|
"line-clamp": [{
|
|
3196
|
-
"line-clamp": [re, "none",
|
|
3205
|
+
"line-clamp": [re, "none", G, Nr]
|
|
3197
3206
|
}],
|
|
3198
3207
|
/**
|
|
3199
3208
|
* Line Height
|
|
@@ -3211,7 +3220,7 @@ const ru = (e, t) => {
|
|
|
3211
3220
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
3212
3221
|
*/
|
|
3213
3222
|
"list-image": [{
|
|
3214
|
-
"list-image": ["none",
|
|
3223
|
+
"list-image": ["none", G, V]
|
|
3215
3224
|
}],
|
|
3216
3225
|
/**
|
|
3217
3226
|
* List Style Position
|
|
@@ -3225,7 +3234,7 @@ const ru = (e, t) => {
|
|
|
3225
3234
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
3226
3235
|
*/
|
|
3227
3236
|
"list-style-type": [{
|
|
3228
|
-
list: ["disc", "decimal", "none",
|
|
3237
|
+
list: ["disc", "decimal", "none", G, V]
|
|
3229
3238
|
}],
|
|
3230
3239
|
/**
|
|
3231
3240
|
* Text Alignment
|
|
@@ -3259,14 +3268,14 @@ const ru = (e, t) => {
|
|
|
3259
3268
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
3260
3269
|
*/
|
|
3261
3270
|
"text-decoration-style": [{
|
|
3262
|
-
decoration: [...
|
|
3271
|
+
decoration: [...j(), "wavy"]
|
|
3263
3272
|
}],
|
|
3264
3273
|
/**
|
|
3265
3274
|
* Text Decoration Thickness
|
|
3266
3275
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
3267
3276
|
*/
|
|
3268
3277
|
"text-decoration-thickness": [{
|
|
3269
|
-
decoration: [re, "from-font", "auto",
|
|
3278
|
+
decoration: [re, "from-font", "auto", G, ct]
|
|
3270
3279
|
}],
|
|
3271
3280
|
/**
|
|
3272
3281
|
* Text Decoration Color
|
|
@@ -3280,7 +3289,7 @@ const ru = (e, t) => {
|
|
|
3280
3289
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
3281
3290
|
*/
|
|
3282
3291
|
"underline-offset": [{
|
|
3283
|
-
"underline-offset": [re, "auto",
|
|
3292
|
+
"underline-offset": [re, "auto", G, V]
|
|
3284
3293
|
}],
|
|
3285
3294
|
/**
|
|
3286
3295
|
* Text Transform
|
|
@@ -3311,7 +3320,7 @@ const ru = (e, t) => {
|
|
|
3311
3320
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
3312
3321
|
*/
|
|
3313
3322
|
"vertical-align": [{
|
|
3314
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
3323
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", G, V]
|
|
3315
3324
|
}],
|
|
3316
3325
|
/**
|
|
3317
3326
|
* Whitespace
|
|
@@ -3346,7 +3355,7 @@ const ru = (e, t) => {
|
|
|
3346
3355
|
* @see https://tailwindcss.com/docs/content
|
|
3347
3356
|
*/
|
|
3348
3357
|
content: [{
|
|
3349
|
-
content: ["none",
|
|
3358
|
+
content: ["none", G, V]
|
|
3350
3359
|
}],
|
|
3351
3360
|
// -------------------
|
|
3352
3361
|
// --- Backgrounds ---
|
|
@@ -3384,7 +3393,7 @@ const ru = (e, t) => {
|
|
|
3384
3393
|
* @see https://tailwindcss.com/docs/background-repeat
|
|
3385
3394
|
*/
|
|
3386
3395
|
"bg-repeat": [{
|
|
3387
|
-
bg:
|
|
3396
|
+
bg: z()
|
|
3388
3397
|
}],
|
|
3389
3398
|
/**
|
|
3390
3399
|
* Background Size
|
|
@@ -3401,9 +3410,9 @@ const ru = (e, t) => {
|
|
|
3401
3410
|
bg: ["none", {
|
|
3402
3411
|
linear: [{
|
|
3403
3412
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
3404
|
-
}, Je,
|
|
3405
|
-
radial: ["",
|
|
3406
|
-
conic: [Je,
|
|
3413
|
+
}, Je, G, V],
|
|
3414
|
+
radial: ["", G, V],
|
|
3415
|
+
conic: [Je, G, V]
|
|
3407
3416
|
}, Vu, Fu]
|
|
3408
3417
|
}],
|
|
3409
3418
|
/**
|
|
@@ -3418,21 +3427,21 @@ const ru = (e, t) => {
|
|
|
3418
3427
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
3419
3428
|
*/
|
|
3420
3429
|
"gradient-from-pos": [{
|
|
3421
|
-
from:
|
|
3430
|
+
from: $()
|
|
3422
3431
|
}],
|
|
3423
3432
|
/**
|
|
3424
3433
|
* Gradient Color Stops Via Position
|
|
3425
3434
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
3426
3435
|
*/
|
|
3427
3436
|
"gradient-via-pos": [{
|
|
3428
|
-
via:
|
|
3437
|
+
via: $()
|
|
3429
3438
|
}],
|
|
3430
3439
|
/**
|
|
3431
3440
|
* Gradient Color Stops To Position
|
|
3432
3441
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
3433
3442
|
*/
|
|
3434
3443
|
"gradient-to-pos": [{
|
|
3435
|
-
to:
|
|
3444
|
+
to: $()
|
|
3436
3445
|
}],
|
|
3437
3446
|
/**
|
|
3438
3447
|
* Gradient Color Stops From
|
|
@@ -3463,105 +3472,105 @@ const ru = (e, t) => {
|
|
|
3463
3472
|
* @see https://tailwindcss.com/docs/border-radius
|
|
3464
3473
|
*/
|
|
3465
3474
|
rounded: [{
|
|
3466
|
-
rounded:
|
|
3475
|
+
rounded: B()
|
|
3467
3476
|
}],
|
|
3468
3477
|
/**
|
|
3469
3478
|
* Border Radius Start
|
|
3470
3479
|
* @see https://tailwindcss.com/docs/border-radius
|
|
3471
3480
|
*/
|
|
3472
3481
|
"rounded-s": [{
|
|
3473
|
-
"rounded-s":
|
|
3482
|
+
"rounded-s": B()
|
|
3474
3483
|
}],
|
|
3475
3484
|
/**
|
|
3476
3485
|
* Border Radius End
|
|
3477
3486
|
* @see https://tailwindcss.com/docs/border-radius
|
|
3478
3487
|
*/
|
|
3479
3488
|
"rounded-e": [{
|
|
3480
|
-
"rounded-e":
|
|
3489
|
+
"rounded-e": B()
|
|
3481
3490
|
}],
|
|
3482
3491
|
/**
|
|
3483
3492
|
* Border Radius Top
|
|
3484
3493
|
* @see https://tailwindcss.com/docs/border-radius
|
|
3485
3494
|
*/
|
|
3486
3495
|
"rounded-t": [{
|
|
3487
|
-
"rounded-t":
|
|
3496
|
+
"rounded-t": B()
|
|
3488
3497
|
}],
|
|
3489
3498
|
/**
|
|
3490
3499
|
* Border Radius Right
|
|
3491
3500
|
* @see https://tailwindcss.com/docs/border-radius
|
|
3492
3501
|
*/
|
|
3493
3502
|
"rounded-r": [{
|
|
3494
|
-
"rounded-r":
|
|
3503
|
+
"rounded-r": B()
|
|
3495
3504
|
}],
|
|
3496
3505
|
/**
|
|
3497
3506
|
* Border Radius Bottom
|
|
3498
3507
|
* @see https://tailwindcss.com/docs/border-radius
|
|
3499
3508
|
*/
|
|
3500
3509
|
"rounded-b": [{
|
|
3501
|
-
"rounded-b":
|
|
3510
|
+
"rounded-b": B()
|
|
3502
3511
|
}],
|
|
3503
3512
|
/**
|
|
3504
3513
|
* Border Radius Left
|
|
3505
3514
|
* @see https://tailwindcss.com/docs/border-radius
|
|
3506
3515
|
*/
|
|
3507
3516
|
"rounded-l": [{
|
|
3508
|
-
"rounded-l":
|
|
3517
|
+
"rounded-l": B()
|
|
3509
3518
|
}],
|
|
3510
3519
|
/**
|
|
3511
3520
|
* Border Radius Start Start
|
|
3512
3521
|
* @see https://tailwindcss.com/docs/border-radius
|
|
3513
3522
|
*/
|
|
3514
3523
|
"rounded-ss": [{
|
|
3515
|
-
"rounded-ss":
|
|
3524
|
+
"rounded-ss": B()
|
|
3516
3525
|
}],
|
|
3517
3526
|
/**
|
|
3518
3527
|
* Border Radius Start End
|
|
3519
3528
|
* @see https://tailwindcss.com/docs/border-radius
|
|
3520
3529
|
*/
|
|
3521
3530
|
"rounded-se": [{
|
|
3522
|
-
"rounded-se":
|
|
3531
|
+
"rounded-se": B()
|
|
3523
3532
|
}],
|
|
3524
3533
|
/**
|
|
3525
3534
|
* Border Radius End End
|
|
3526
3535
|
* @see https://tailwindcss.com/docs/border-radius
|
|
3527
3536
|
*/
|
|
3528
3537
|
"rounded-ee": [{
|
|
3529
|
-
"rounded-ee":
|
|
3538
|
+
"rounded-ee": B()
|
|
3530
3539
|
}],
|
|
3531
3540
|
/**
|
|
3532
3541
|
* Border Radius End Start
|
|
3533
3542
|
* @see https://tailwindcss.com/docs/border-radius
|
|
3534
3543
|
*/
|
|
3535
3544
|
"rounded-es": [{
|
|
3536
|
-
"rounded-es":
|
|
3545
|
+
"rounded-es": B()
|
|
3537
3546
|
}],
|
|
3538
3547
|
/**
|
|
3539
3548
|
* Border Radius Top Left
|
|
3540
3549
|
* @see https://tailwindcss.com/docs/border-radius
|
|
3541
3550
|
*/
|
|
3542
3551
|
"rounded-tl": [{
|
|
3543
|
-
"rounded-tl":
|
|
3552
|
+
"rounded-tl": B()
|
|
3544
3553
|
}],
|
|
3545
3554
|
/**
|
|
3546
3555
|
* Border Radius Top Right
|
|
3547
3556
|
* @see https://tailwindcss.com/docs/border-radius
|
|
3548
3557
|
*/
|
|
3549
3558
|
"rounded-tr": [{
|
|
3550
|
-
"rounded-tr":
|
|
3559
|
+
"rounded-tr": B()
|
|
3551
3560
|
}],
|
|
3552
3561
|
/**
|
|
3553
3562
|
* Border Radius Bottom Right
|
|
3554
3563
|
* @see https://tailwindcss.com/docs/border-radius
|
|
3555
3564
|
*/
|
|
3556
3565
|
"rounded-br": [{
|
|
3557
|
-
"rounded-br":
|
|
3566
|
+
"rounded-br": B()
|
|
3558
3567
|
}],
|
|
3559
3568
|
/**
|
|
3560
3569
|
* Border Radius Bottom Left
|
|
3561
3570
|
* @see https://tailwindcss.com/docs/border-radius
|
|
3562
3571
|
*/
|
|
3563
3572
|
"rounded-bl": [{
|
|
3564
|
-
"rounded-bl":
|
|
3573
|
+
"rounded-bl": B()
|
|
3565
3574
|
}],
|
|
3566
3575
|
/**
|
|
3567
3576
|
* Border Width
|
|
@@ -3669,14 +3678,14 @@ const ru = (e, t) => {
|
|
|
3669
3678
|
* @see https://tailwindcss.com/docs/border-style
|
|
3670
3679
|
*/
|
|
3671
3680
|
"border-style": [{
|
|
3672
|
-
border: [...
|
|
3681
|
+
border: [...j(), "hidden", "none"]
|
|
3673
3682
|
}],
|
|
3674
3683
|
/**
|
|
3675
3684
|
* Divide Style
|
|
3676
3685
|
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
3677
3686
|
*/
|
|
3678
3687
|
"divide-style": [{
|
|
3679
|
-
divide: [...
|
|
3688
|
+
divide: [...j(), "hidden", "none"]
|
|
3680
3689
|
}],
|
|
3681
3690
|
/**
|
|
3682
3691
|
* Border Color
|
|
@@ -3767,14 +3776,14 @@ const ru = (e, t) => {
|
|
|
3767
3776
|
* @see https://tailwindcss.com/docs/outline-style
|
|
3768
3777
|
*/
|
|
3769
3778
|
"outline-style": [{
|
|
3770
|
-
outline: [...
|
|
3779
|
+
outline: [...j(), "none", "hidden"]
|
|
3771
3780
|
}],
|
|
3772
3781
|
/**
|
|
3773
3782
|
* Outline Offset
|
|
3774
3783
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
3775
3784
|
*/
|
|
3776
3785
|
"outline-offset": [{
|
|
3777
|
-
"outline-offset": [re,
|
|
3786
|
+
"outline-offset": [re, G, V]
|
|
3778
3787
|
}],
|
|
3779
3788
|
/**
|
|
3780
3789
|
* Outline Width
|
|
@@ -3900,21 +3909,21 @@ const ru = (e, t) => {
|
|
|
3900
3909
|
* @see https://tailwindcss.com/docs/opacity
|
|
3901
3910
|
*/
|
|
3902
3911
|
opacity: [{
|
|
3903
|
-
opacity: [re,
|
|
3912
|
+
opacity: [re, G, V]
|
|
3904
3913
|
}],
|
|
3905
3914
|
/**
|
|
3906
3915
|
* Mix Blend Mode
|
|
3907
3916
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
3908
3917
|
*/
|
|
3909
3918
|
"mix-blend": [{
|
|
3910
|
-
"mix-blend": [...
|
|
3919
|
+
"mix-blend": [...Y(), "plus-darker", "plus-lighter"]
|
|
3911
3920
|
}],
|
|
3912
3921
|
/**
|
|
3913
3922
|
* Background Blend Mode
|
|
3914
3923
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
3915
3924
|
*/
|
|
3916
3925
|
"bg-blend": [{
|
|
3917
|
-
"bg-blend":
|
|
3926
|
+
"bg-blend": Y()
|
|
3918
3927
|
}],
|
|
3919
3928
|
/**
|
|
3920
3929
|
* Mask Clip
|
|
@@ -4022,7 +4031,7 @@ const ru = (e, t) => {
|
|
|
4022
4031
|
"mask-y-to": S()
|
|
4023
4032
|
}],
|
|
4024
4033
|
"mask-image-radial": [{
|
|
4025
|
-
"mask-radial": [
|
|
4034
|
+
"mask-radial": [G, V]
|
|
4026
4035
|
}],
|
|
4027
4036
|
"mask-image-radial-from-pos": [{
|
|
4028
4037
|
"mask-radial-from": ee()
|
|
@@ -4089,7 +4098,7 @@ const ru = (e, t) => {
|
|
|
4089
4098
|
* @see https://tailwindcss.com/docs/mask-repeat
|
|
4090
4099
|
*/
|
|
4091
4100
|
"mask-repeat": [{
|
|
4092
|
-
mask:
|
|
4101
|
+
mask: z()
|
|
4093
4102
|
}],
|
|
4094
4103
|
/**
|
|
4095
4104
|
* Mask Size
|
|
@@ -4110,7 +4119,7 @@ const ru = (e, t) => {
|
|
|
4110
4119
|
* @see https://tailwindcss.com/docs/mask-image
|
|
4111
4120
|
*/
|
|
4112
4121
|
"mask-image": [{
|
|
4113
|
-
mask: ["none",
|
|
4122
|
+
mask: ["none", G, V]
|
|
4114
4123
|
}],
|
|
4115
4124
|
// ---------------
|
|
4116
4125
|
// --- Filters ---
|
|
@@ -4124,8 +4133,8 @@ const ru = (e, t) => {
|
|
|
4124
4133
|
// Deprecated since Tailwind CSS v3.0.0
|
|
4125
4134
|
"",
|
|
4126
4135
|
"none",
|
|
4127
|
-
|
|
4128
|
-
|
|
4136
|
+
G,
|
|
4137
|
+
V
|
|
4129
4138
|
]
|
|
4130
4139
|
}],
|
|
4131
4140
|
/**
|
|
@@ -4140,14 +4149,14 @@ const ru = (e, t) => {
|
|
|
4140
4149
|
* @see https://tailwindcss.com/docs/brightness
|
|
4141
4150
|
*/
|
|
4142
4151
|
brightness: [{
|
|
4143
|
-
brightness: [re,
|
|
4152
|
+
brightness: [re, G, V]
|
|
4144
4153
|
}],
|
|
4145
4154
|
/**
|
|
4146
4155
|
* Contrast
|
|
4147
4156
|
* @see https://tailwindcss.com/docs/contrast
|
|
4148
4157
|
*/
|
|
4149
4158
|
contrast: [{
|
|
4150
|
-
contrast: [re,
|
|
4159
|
+
contrast: [re, G, V]
|
|
4151
4160
|
}],
|
|
4152
4161
|
/**
|
|
4153
4162
|
* Drop Shadow
|
|
@@ -4175,35 +4184,35 @@ const ru = (e, t) => {
|
|
|
4175
4184
|
* @see https://tailwindcss.com/docs/grayscale
|
|
4176
4185
|
*/
|
|
4177
4186
|
grayscale: [{
|
|
4178
|
-
grayscale: ["", re,
|
|
4187
|
+
grayscale: ["", re, G, V]
|
|
4179
4188
|
}],
|
|
4180
4189
|
/**
|
|
4181
4190
|
* Hue Rotate
|
|
4182
4191
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
4183
4192
|
*/
|
|
4184
4193
|
"hue-rotate": [{
|
|
4185
|
-
"hue-rotate": [re,
|
|
4194
|
+
"hue-rotate": [re, G, V]
|
|
4186
4195
|
}],
|
|
4187
4196
|
/**
|
|
4188
4197
|
* Invert
|
|
4189
4198
|
* @see https://tailwindcss.com/docs/invert
|
|
4190
4199
|
*/
|
|
4191
4200
|
invert: [{
|
|
4192
|
-
invert: ["", re,
|
|
4201
|
+
invert: ["", re, G, V]
|
|
4193
4202
|
}],
|
|
4194
4203
|
/**
|
|
4195
4204
|
* Saturate
|
|
4196
4205
|
* @see https://tailwindcss.com/docs/saturate
|
|
4197
4206
|
*/
|
|
4198
4207
|
saturate: [{
|
|
4199
|
-
saturate: [re,
|
|
4208
|
+
saturate: [re, G, V]
|
|
4200
4209
|
}],
|
|
4201
4210
|
/**
|
|
4202
4211
|
* Sepia
|
|
4203
4212
|
* @see https://tailwindcss.com/docs/sepia
|
|
4204
4213
|
*/
|
|
4205
4214
|
sepia: [{
|
|
4206
|
-
sepia: ["", re,
|
|
4215
|
+
sepia: ["", re, G, V]
|
|
4207
4216
|
}],
|
|
4208
4217
|
/**
|
|
4209
4218
|
* Backdrop Filter
|
|
@@ -4214,8 +4223,8 @@ const ru = (e, t) => {
|
|
|
4214
4223
|
// Deprecated since Tailwind CSS v3.0.0
|
|
4215
4224
|
"",
|
|
4216
4225
|
"none",
|
|
4217
|
-
|
|
4218
|
-
|
|
4226
|
+
G,
|
|
4227
|
+
V
|
|
4219
4228
|
]
|
|
4220
4229
|
}],
|
|
4221
4230
|
/**
|
|
@@ -4230,56 +4239,56 @@ const ru = (e, t) => {
|
|
|
4230
4239
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
4231
4240
|
*/
|
|
4232
4241
|
"backdrop-brightness": [{
|
|
4233
|
-
"backdrop-brightness": [re,
|
|
4242
|
+
"backdrop-brightness": [re, G, V]
|
|
4234
4243
|
}],
|
|
4235
4244
|
/**
|
|
4236
4245
|
* Backdrop Contrast
|
|
4237
4246
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
4238
4247
|
*/
|
|
4239
4248
|
"backdrop-contrast": [{
|
|
4240
|
-
"backdrop-contrast": [re,
|
|
4249
|
+
"backdrop-contrast": [re, G, V]
|
|
4241
4250
|
}],
|
|
4242
4251
|
/**
|
|
4243
4252
|
* Backdrop Grayscale
|
|
4244
4253
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
4245
4254
|
*/
|
|
4246
4255
|
"backdrop-grayscale": [{
|
|
4247
|
-
"backdrop-grayscale": ["", re,
|
|
4256
|
+
"backdrop-grayscale": ["", re, G, V]
|
|
4248
4257
|
}],
|
|
4249
4258
|
/**
|
|
4250
4259
|
* Backdrop Hue Rotate
|
|
4251
4260
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
4252
4261
|
*/
|
|
4253
4262
|
"backdrop-hue-rotate": [{
|
|
4254
|
-
"backdrop-hue-rotate": [re,
|
|
4263
|
+
"backdrop-hue-rotate": [re, G, V]
|
|
4255
4264
|
}],
|
|
4256
4265
|
/**
|
|
4257
4266
|
* Backdrop Invert
|
|
4258
4267
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
4259
4268
|
*/
|
|
4260
4269
|
"backdrop-invert": [{
|
|
4261
|
-
"backdrop-invert": ["", re,
|
|
4270
|
+
"backdrop-invert": ["", re, G, V]
|
|
4262
4271
|
}],
|
|
4263
4272
|
/**
|
|
4264
4273
|
* Backdrop Opacity
|
|
4265
4274
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
4266
4275
|
*/
|
|
4267
4276
|
"backdrop-opacity": [{
|
|
4268
|
-
"backdrop-opacity": [re,
|
|
4277
|
+
"backdrop-opacity": [re, G, V]
|
|
4269
4278
|
}],
|
|
4270
4279
|
/**
|
|
4271
4280
|
* Backdrop Saturate
|
|
4272
4281
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
4273
4282
|
*/
|
|
4274
4283
|
"backdrop-saturate": [{
|
|
4275
|
-
"backdrop-saturate": [re,
|
|
4284
|
+
"backdrop-saturate": [re, G, V]
|
|
4276
4285
|
}],
|
|
4277
4286
|
/**
|
|
4278
4287
|
* Backdrop Sepia
|
|
4279
4288
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
4280
4289
|
*/
|
|
4281
4290
|
"backdrop-sepia": [{
|
|
4282
|
-
"backdrop-sepia": ["", re,
|
|
4291
|
+
"backdrop-sepia": ["", re, G, V]
|
|
4283
4292
|
}],
|
|
4284
4293
|
// --------------
|
|
4285
4294
|
// --- Tables ---
|
|
@@ -4334,7 +4343,7 @@ const ru = (e, t) => {
|
|
|
4334
4343
|
* @see https://tailwindcss.com/docs/transition-property
|
|
4335
4344
|
*/
|
|
4336
4345
|
transition: [{
|
|
4337
|
-
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none",
|
|
4346
|
+
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", G, V]
|
|
4338
4347
|
}],
|
|
4339
4348
|
/**
|
|
4340
4349
|
* Transition Behavior
|
|
@@ -4348,28 +4357,28 @@ const ru = (e, t) => {
|
|
|
4348
4357
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
4349
4358
|
*/
|
|
4350
4359
|
duration: [{
|
|
4351
|
-
duration: [re, "initial",
|
|
4360
|
+
duration: [re, "initial", G, V]
|
|
4352
4361
|
}],
|
|
4353
4362
|
/**
|
|
4354
4363
|
* Transition Timing Function
|
|
4355
4364
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
4356
4365
|
*/
|
|
4357
4366
|
ease: [{
|
|
4358
|
-
ease: ["linear", "initial", y,
|
|
4367
|
+
ease: ["linear", "initial", y, G, V]
|
|
4359
4368
|
}],
|
|
4360
4369
|
/**
|
|
4361
4370
|
* Transition Delay
|
|
4362
4371
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
4363
4372
|
*/
|
|
4364
4373
|
delay: [{
|
|
4365
|
-
delay: [re,
|
|
4374
|
+
delay: [re, G, V]
|
|
4366
4375
|
}],
|
|
4367
4376
|
/**
|
|
4368
4377
|
* Animation
|
|
4369
4378
|
* @see https://tailwindcss.com/docs/animation
|
|
4370
4379
|
*/
|
|
4371
4380
|
animate: [{
|
|
4372
|
-
animate: ["none", w,
|
|
4381
|
+
animate: ["none", w, G, V]
|
|
4373
4382
|
}],
|
|
4374
4383
|
// ------------------
|
|
4375
4384
|
// --- Transforms ---
|
|
@@ -4386,14 +4395,14 @@ const ru = (e, t) => {
|
|
|
4386
4395
|
* @see https://tailwindcss.com/docs/perspective
|
|
4387
4396
|
*/
|
|
4388
4397
|
perspective: [{
|
|
4389
|
-
perspective: [g,
|
|
4398
|
+
perspective: [g, G, V]
|
|
4390
4399
|
}],
|
|
4391
4400
|
/**
|
|
4392
4401
|
* Perspective Origin
|
|
4393
4402
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
4394
4403
|
*/
|
|
4395
4404
|
"perspective-origin": [{
|
|
4396
|
-
"perspective-origin":
|
|
4405
|
+
"perspective-origin": N()
|
|
4397
4406
|
}],
|
|
4398
4407
|
/**
|
|
4399
4408
|
* Rotate
|
|
@@ -4482,14 +4491,14 @@ const ru = (e, t) => {
|
|
|
4482
4491
|
* @see https://tailwindcss.com/docs/transform
|
|
4483
4492
|
*/
|
|
4484
4493
|
transform: [{
|
|
4485
|
-
transform: [
|
|
4494
|
+
transform: [G, V, "", "none", "gpu", "cpu"]
|
|
4486
4495
|
}],
|
|
4487
4496
|
/**
|
|
4488
4497
|
* Transform Origin
|
|
4489
4498
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
4490
4499
|
*/
|
|
4491
4500
|
"transform-origin": [{
|
|
4492
|
-
origin:
|
|
4501
|
+
origin: N()
|
|
4493
4502
|
}],
|
|
4494
4503
|
/**
|
|
4495
4504
|
* Transform Style
|
|
@@ -4567,7 +4576,7 @@ const ru = (e, t) => {
|
|
|
4567
4576
|
* @see https://tailwindcss.com/docs/cursor
|
|
4568
4577
|
*/
|
|
4569
4578
|
cursor: [{
|
|
4570
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out",
|
|
4579
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", G, V]
|
|
4571
4580
|
}],
|
|
4572
4581
|
/**
|
|
4573
4582
|
* Field Sizing
|
|
@@ -4817,7 +4826,7 @@ const ru = (e, t) => {
|
|
|
4817
4826
|
* @see https://tailwindcss.com/docs/will-change
|
|
4818
4827
|
*/
|
|
4819
4828
|
"will-change": [{
|
|
4820
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
4829
|
+
"will-change": ["auto", "scroll", "contents", "transform", G, V]
|
|
4821
4830
|
}],
|
|
4822
4831
|
// -----------
|
|
4823
4832
|
// --- SVG ---
|
|
@@ -5170,8 +5179,8 @@ function Ks(e) {
|
|
|
5170
5179
|
d.displayName = i;
|
|
5171
5180
|
const p = e + "CollectionItemSlot", l = "data-radix-collection-item", m = /* @__PURE__ */ Ht(p), h = _.forwardRef(
|
|
5172
5181
|
(g, v) => {
|
|
5173
|
-
const { scope: y, children: w, ...x } = g, C = _.useRef(null),
|
|
5174
|
-
return _.useEffect(() => (R.itemMap.set(C, { ref: C, ...x }), () => void R.itemMap.delete(C))), /* @__PURE__ */ u(m, { [l]: "", ref:
|
|
5182
|
+
const { scope: y, children: w, ...x } = g, C = _.useRef(null), N = ie(v, C), R = s(p, y);
|
|
5183
|
+
return _.useEffect(() => (R.itemMap.set(C, { ref: C, ...x }), () => void R.itemMap.delete(C))), /* @__PURE__ */ u(m, { [l]: "", ref: N, children: w });
|
|
5175
5184
|
}
|
|
5176
5185
|
);
|
|
5177
5186
|
h.displayName = p;
|
|
@@ -5182,7 +5191,7 @@ function Ks(e) {
|
|
|
5182
5191
|
if (!w) return [];
|
|
5183
5192
|
const x = Array.from(w.querySelectorAll(`[${l}]`));
|
|
5184
5193
|
return Array.from(v.itemMap.values()).sort(
|
|
5185
|
-
(R,
|
|
5194
|
+
(R, E) => x.indexOf(R.ref.current) - x.indexOf(E.ref.current)
|
|
5186
5195
|
);
|
|
5187
5196
|
}, [v.collectionRef, v.itemMap]);
|
|
5188
5197
|
}
|
|
@@ -5426,7 +5435,7 @@ function jt(e) {
|
|
|
5426
5435
|
const t = f.useContext(vf);
|
|
5427
5436
|
return e || t || "ltr";
|
|
5428
5437
|
}
|
|
5429
|
-
function
|
|
5438
|
+
function be(e) {
|
|
5430
5439
|
const t = f.useRef(e);
|
|
5431
5440
|
return f.useEffect(() => {
|
|
5432
5441
|
t.current = e;
|
|
@@ -5436,7 +5445,7 @@ function ve(e) {
|
|
|
5436
5445
|
}, []);
|
|
5437
5446
|
}
|
|
5438
5447
|
function bf(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
5439
|
-
const n =
|
|
5448
|
+
const n = be(e);
|
|
5440
5449
|
f.useEffect(() => {
|
|
5441
5450
|
const o = (r) => {
|
|
5442
5451
|
r.key === "Escape" && n(r);
|
|
@@ -5458,15 +5467,15 @@ var yf = "DismissableLayer", vo = "dismissableLayer.update", wf = "dismissableLa
|
|
|
5458
5467
|
onInteractOutside: a,
|
|
5459
5468
|
onDismiss: i,
|
|
5460
5469
|
...c
|
|
5461
|
-
} = e, d = f.useContext(ea), [p, l] = f.useState(null), m = (p == null ? void 0 : p.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, h] = f.useState({}), b = ie(t, (
|
|
5462
|
-
const k =
|
|
5463
|
-
!C ||
|
|
5464
|
-
}, m), R = Ef((
|
|
5465
|
-
const k =
|
|
5466
|
-
[...d.branches].some((
|
|
5470
|
+
} = e, d = f.useContext(ea), [p, l] = f.useState(null), m = (p == null ? void 0 : p.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, h] = f.useState({}), b = ie(t, (E) => l(E)), g = Array.from(d.layers), [v] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), y = g.indexOf(v), w = p ? g.indexOf(p) : -1, x = d.layersWithOutsidePointerEventsDisabled.size > 0, C = w >= y, N = kf((E) => {
|
|
5471
|
+
const k = E.target, L = [...d.branches].some((W) => W.contains(k));
|
|
5472
|
+
!C || L || (r == null || r(E), a == null || a(E), E.defaultPrevented || i == null || i());
|
|
5473
|
+
}, m), R = Ef((E) => {
|
|
5474
|
+
const k = E.target;
|
|
5475
|
+
[...d.branches].some((W) => W.contains(k)) || (s == null || s(E), a == null || a(E), E.defaultPrevented || i == null || i());
|
|
5467
5476
|
}, m);
|
|
5468
|
-
return bf((
|
|
5469
|
-
w === d.layers.size - 1 && (o == null || o(
|
|
5477
|
+
return bf((E) => {
|
|
5478
|
+
w === d.layers.size - 1 && (o == null || o(E), !E.defaultPrevented && i && (E.preventDefault(), i()));
|
|
5470
5479
|
}, m), f.useEffect(() => {
|
|
5471
5480
|
if (p)
|
|
5472
5481
|
return n && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (_r = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(p)), d.layers.add(p), Mr(), () => {
|
|
@@ -5475,8 +5484,8 @@ var yf = "DismissableLayer", vo = "dismissableLayer.update", wf = "dismissableLa
|
|
|
5475
5484
|
}, [p, m, n, d]), f.useEffect(() => () => {
|
|
5476
5485
|
p && (d.layers.delete(p), d.layersWithOutsidePointerEventsDisabled.delete(p), Mr());
|
|
5477
5486
|
}, [p, d]), f.useEffect(() => {
|
|
5478
|
-
const
|
|
5479
|
-
return document.addEventListener(vo,
|
|
5487
|
+
const E = () => h({});
|
|
5488
|
+
return document.addEventListener(vo, E), () => document.removeEventListener(vo, E);
|
|
5480
5489
|
}, []), /* @__PURE__ */ u(
|
|
5481
5490
|
Z.div,
|
|
5482
5491
|
{
|
|
@@ -5490,7 +5499,7 @@ var yf = "DismissableLayer", vo = "dismissableLayer.update", wf = "dismissableLa
|
|
|
5490
5499
|
onBlurCapture: Q(e.onBlurCapture, R.onBlurCapture),
|
|
5491
5500
|
onPointerDownCapture: Q(
|
|
5492
5501
|
e.onPointerDownCapture,
|
|
5493
|
-
|
|
5502
|
+
N.onPointerDownCapture
|
|
5494
5503
|
)
|
|
5495
5504
|
}
|
|
5496
5505
|
);
|
|
@@ -5509,7 +5518,7 @@ var Sf = "DismissableLayerBranch", Cf = f.forwardRef((e, t) => {
|
|
|
5509
5518
|
});
|
|
5510
5519
|
Cf.displayName = Sf;
|
|
5511
5520
|
function kf(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
5512
|
-
const n =
|
|
5521
|
+
const n = be(e), o = f.useRef(!1), r = f.useRef(() => {
|
|
5513
5522
|
});
|
|
5514
5523
|
return f.useEffect(() => {
|
|
5515
5524
|
const s = (i) => {
|
|
@@ -5539,7 +5548,7 @@ function kf(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
5539
5548
|
};
|
|
5540
5549
|
}
|
|
5541
5550
|
function Ef(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
5542
|
-
const n =
|
|
5551
|
+
const n = be(e), o = f.useRef(!1);
|
|
5543
5552
|
return f.useEffect(() => {
|
|
5544
5553
|
const r = (s) => {
|
|
5545
5554
|
s.target && !o.current && ta(xf, n, { originalEvent: s }, {
|
|
@@ -5567,7 +5576,7 @@ var Zn = "focusScope.autoFocusOnMount", Jn = "focusScope.autoFocusOnUnmount", Or
|
|
|
5567
5576
|
onMountAutoFocus: r,
|
|
5568
5577
|
onUnmountAutoFocus: s,
|
|
5569
5578
|
...a
|
|
5570
|
-
} = e, [i, c] = f.useState(null), d =
|
|
5579
|
+
} = e, [i, c] = f.useState(null), d = be(r), p = be(s), l = f.useRef(null), m = ie(t, (g) => c(g)), h = f.useRef({
|
|
5571
5580
|
paused: !1,
|
|
5572
5581
|
pause() {
|
|
5573
5582
|
this.paused = !0;
|
|
@@ -5588,8 +5597,8 @@ var Zn = "focusScope.autoFocusOnMount", Jn = "focusScope.autoFocusOnUnmount", Or
|
|
|
5588
5597
|
C !== null && (i.contains(C) || Qe(l.current, { select: !0 }));
|
|
5589
5598
|
}, y = function(x) {
|
|
5590
5599
|
if (document.activeElement === document.body)
|
|
5591
|
-
for (const
|
|
5592
|
-
|
|
5600
|
+
for (const N of x)
|
|
5601
|
+
N.removedNodes.length > 0 && Qe(i);
|
|
5593
5602
|
};
|
|
5594
5603
|
document.addEventListener("focusin", g), document.addEventListener("focusout", v);
|
|
5595
5604
|
const w = new MutationObserver(y);
|
|
@@ -5859,12 +5868,12 @@ var aa = Wf(), to = function() {
|
|
|
5859
5868
|
onScrollCapture: to,
|
|
5860
5869
|
onWheelCapture: to,
|
|
5861
5870
|
onTouchMoveCapture: to
|
|
5862
|
-
}), r = o[0], s = o[1], a = e.forwardProps, i = e.children, c = e.className, d = e.removeScrollBar, p = e.enabled, l = e.shards, m = e.sideCar, h = e.noRelative, b = e.noIsolation, g = e.inert, v = e.allowPinchZoom, y = e.as, w = y === void 0 ? "div" : y, x = e.gapMode, C = ra(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]),
|
|
5871
|
+
}), r = o[0], s = o[1], a = e.forwardProps, i = e.children, c = e.className, d = e.removeScrollBar, p = e.enabled, l = e.shards, m = e.sideCar, h = e.noRelative, b = e.noIsolation, g = e.inert, v = e.allowPinchZoom, y = e.as, w = y === void 0 ? "div" : y, x = e.gapMode, C = ra(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), N = m, R = Bf([n, t]), E = Fe(Fe({}, C), r);
|
|
5863
5872
|
return f.createElement(
|
|
5864
5873
|
f.Fragment,
|
|
5865
5874
|
null,
|
|
5866
|
-
p && f.createElement(
|
|
5867
|
-
a ? f.cloneElement(f.Children.only(i), Fe(Fe({},
|
|
5875
|
+
p && f.createElement(N, { sideCar: aa, removeScrollBar: d, shards: l, noRelative: h, noIsolation: b, inert: g, setCallbacks: s, allowPinchZoom: !!v, lockRef: n, gapMode: x }),
|
|
5876
|
+
a ? f.cloneElement(f.Children.only(i), Fe(Fe({}, E), { ref: R })) : f.createElement(w, Fe({}, E, { className: c, ref: R }), i)
|
|
5868
5877
|
);
|
|
5869
5878
|
});
|
|
5870
5879
|
Rn.defaultProps = {
|
|
@@ -6110,34 +6119,34 @@ function mp(e) {
|
|
|
6110
6119
|
var i = f.useCallback(function(g, v) {
|
|
6111
6120
|
if ("touches" in g && g.touches.length === 2 || g.type === "wheel" && g.ctrlKey)
|
|
6112
6121
|
return !a.current.allowPinchZoom;
|
|
6113
|
-
var y = sn(g), w = n.current, x = "deltaX" in g ? g.deltaX : w[0] - y[0], C = "deltaY" in g ? g.deltaY : w[1] - y[1],
|
|
6114
|
-
if ("touches" in g &&
|
|
6122
|
+
var y = sn(g), w = n.current, x = "deltaX" in g ? g.deltaX : w[0] - y[0], C = "deltaY" in g ? g.deltaY : w[1] - y[1], N, R = g.target, E = Math.abs(x) > Math.abs(C) ? "h" : "v";
|
|
6123
|
+
if ("touches" in g && E === "h" && R.type === "range")
|
|
6115
6124
|
return !1;
|
|
6116
|
-
var k = window.getSelection(),
|
|
6117
|
-
if (
|
|
6125
|
+
var k = window.getSelection(), L = k && k.anchorNode, W = L ? L === R || L.contains(R) : !1;
|
|
6126
|
+
if (W)
|
|
6118
6127
|
return !1;
|
|
6119
|
-
var
|
|
6120
|
-
if (!
|
|
6128
|
+
var M = Hr(E, R);
|
|
6129
|
+
if (!M)
|
|
6121
6130
|
return !0;
|
|
6122
|
-
if (
|
|
6131
|
+
if (M ? N = E : (N = E === "v" ? "h" : "v", M = Hr(E, R)), !M)
|
|
6123
6132
|
return !1;
|
|
6124
|
-
if (!o.current && "changedTouches" in g && (x || C) && (o.current =
|
|
6133
|
+
if (!o.current && "changedTouches" in g && (x || C) && (o.current = N), !N)
|
|
6125
6134
|
return !0;
|
|
6126
|
-
var
|
|
6127
|
-
return dp(
|
|
6135
|
+
var F = o.current || N;
|
|
6136
|
+
return dp(F, v, g, F === "h" ? x : C);
|
|
6128
6137
|
}, []), c = f.useCallback(function(g) {
|
|
6129
6138
|
var v = g;
|
|
6130
6139
|
if (!(!xt.length || xt[xt.length - 1] !== s)) {
|
|
6131
|
-
var y = "deltaY" in v ? Vr(v) : sn(v), w = t.current.filter(function(
|
|
6132
|
-
return
|
|
6140
|
+
var y = "deltaY" in v ? Vr(v) : sn(v), w = t.current.filter(function(N) {
|
|
6141
|
+
return N.name === v.type && (N.target === v.target || v.target === N.shadowParent) && up(N.delta, y);
|
|
6133
6142
|
})[0];
|
|
6134
6143
|
if (w && w.should) {
|
|
6135
6144
|
v.cancelable && v.preventDefault();
|
|
6136
6145
|
return;
|
|
6137
6146
|
}
|
|
6138
6147
|
if (!w) {
|
|
6139
|
-
var x = (a.current.shards || []).map(Wr).filter(Boolean).filter(function(
|
|
6140
|
-
return
|
|
6148
|
+
var x = (a.current.shards || []).map(Wr).filter(Boolean).filter(function(N) {
|
|
6149
|
+
return N.contains(v.target);
|
|
6141
6150
|
}), C = x.length > 0 ? i(v, x[0]) : !a.current.noIsolation;
|
|
6142
6151
|
C && v.cancelable && v.preventDefault();
|
|
6143
6152
|
}
|
|
@@ -6318,7 +6327,7 @@ ma.displayName = Uo;
|
|
|
6318
6327
|
var ha = "AvatarImage", ga = f.forwardRef(
|
|
6319
6328
|
(e, t) => {
|
|
6320
6329
|
const { __scopeAvatar: n, src: o, onLoadingStatusChange: r = () => {
|
|
6321
|
-
}, ...s } = e, a = pa(ha, n), i = Tp(o, s), c =
|
|
6330
|
+
}, ...s } = e, a = pa(ha, n), i = Tp(o, s), c = be((d) => {
|
|
6322
6331
|
r(d), a.onImageLoadingStatusChange(d);
|
|
6323
6332
|
});
|
|
6324
6333
|
return de(() => {
|
|
@@ -6504,7 +6513,7 @@ var xa = f.forwardRef(
|
|
|
6504
6513
|
name: o,
|
|
6505
6514
|
form: p,
|
|
6506
6515
|
value: c,
|
|
6507
|
-
internal_do_not_use_render: ({ isFormControl: m }) => /* @__PURE__ */
|
|
6516
|
+
internal_do_not_use_render: ({ isFormControl: m }) => /* @__PURE__ */ q(_e, { children: [
|
|
6508
6517
|
/* @__PURE__ */ u(
|
|
6509
6518
|
wa,
|
|
6510
6519
|
{
|
|
@@ -6565,13 +6574,13 @@ var ka = "CheckboxBubbleInput", Ea = f.forwardRef(
|
|
|
6565
6574
|
f.useEffect(() => {
|
|
6566
6575
|
const w = m;
|
|
6567
6576
|
if (!w) return;
|
|
6568
|
-
const x = window.HTMLInputElement.prototype,
|
|
6577
|
+
const x = window.HTMLInputElement.prototype, N = Object.getOwnPropertyDescriptor(
|
|
6569
6578
|
x,
|
|
6570
6579
|
"checked"
|
|
6571
6580
|
).set, R = !r.current;
|
|
6572
|
-
if (g !== s &&
|
|
6573
|
-
const
|
|
6574
|
-
w.indeterminate = et(s),
|
|
6581
|
+
if (g !== s && N) {
|
|
6582
|
+
const E = new Event("click", { bubbles: R });
|
|
6583
|
+
w.indeterminate = et(s), N.call(w, et(s) ? !1 : s), w.dispatchEvent(E);
|
|
6575
6584
|
}
|
|
6576
6585
|
}, [m, g, s, r]);
|
|
6577
6586
|
const y = f.useRef(et(s) ? !1 : s);
|
|
@@ -6799,17 +6808,17 @@ async function jp(e, t) {
|
|
|
6799
6808
|
} : {
|
|
6800
6809
|
x: 1,
|
|
6801
6810
|
y: 1
|
|
6802
|
-
},
|
|
6811
|
+
}, N = vn(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
6803
6812
|
elements: i,
|
|
6804
6813
|
rect: w,
|
|
6805
6814
|
offsetParent: x,
|
|
6806
6815
|
strategy: c
|
|
6807
6816
|
}) : w);
|
|
6808
6817
|
return {
|
|
6809
|
-
top: (y.top -
|
|
6810
|
-
bottom: (
|
|
6811
|
-
left: (y.left -
|
|
6812
|
-
right: (
|
|
6818
|
+
top: (y.top - N.top + b.top) / C.y,
|
|
6819
|
+
bottom: (N.bottom - y.bottom + b.bottom) / C.y,
|
|
6820
|
+
left: (y.left - N.left + b.left) / C.x,
|
|
6821
|
+
right: (N.right - y.right + b.right) / C.x
|
|
6813
6822
|
};
|
|
6814
6823
|
}
|
|
6815
6824
|
const Gp = 50, Yp = async (e, t, n) => {
|
|
@@ -6841,7 +6850,7 @@ const Gp = 50, Yp = async (e, t, n) => {
|
|
|
6841
6850
|
} = v, {
|
|
6842
6851
|
x,
|
|
6843
6852
|
y: C,
|
|
6844
|
-
data:
|
|
6853
|
+
data: N,
|
|
6845
6854
|
reset: R
|
|
6846
6855
|
} = await w({
|
|
6847
6856
|
x: p,
|
|
@@ -6859,7 +6868,7 @@ const Gp = 50, Yp = async (e, t, n) => {
|
|
|
6859
6868
|
});
|
|
6860
6869
|
p = x ?? p, l = C ?? l, b[y] = {
|
|
6861
6870
|
...b[y],
|
|
6862
|
-
...
|
|
6871
|
+
...N
|
|
6863
6872
|
}, R && h < Gp && (h++, typeof R == "object" && (R.placement && (m = R.placement), R.rects && (d = R.rects === !0 ? await a.getElementRects({
|
|
6864
6873
|
reference: e,
|
|
6865
6874
|
floating: t,
|
|
@@ -6897,20 +6906,20 @@ const Gp = 50, Yp = async (e, t, n) => {
|
|
|
6897
6906
|
const l = Ra(p), m = {
|
|
6898
6907
|
x: n,
|
|
6899
6908
|
y: o
|
|
6900
|
-
}, h = qo(r), b = Yo(h), g = await a.getDimensions(d), v = h === "y", y = v ? "top" : "left", w = v ? "bottom" : "right", x = v ? "clientHeight" : "clientWidth", C = s.reference[b] + s.reference[h] - m[h] - s.floating[b],
|
|
6901
|
-
let
|
|
6902
|
-
(!
|
|
6903
|
-
const k = C / 2 -
|
|
6909
|
+
}, h = qo(r), b = Yo(h), g = await a.getDimensions(d), v = h === "y", y = v ? "top" : "left", w = v ? "bottom" : "right", x = v ? "clientHeight" : "clientWidth", C = s.reference[b] + s.reference[h] - m[h] - s.floating[b], N = m[h] - s.reference[h], R = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(d));
|
|
6910
|
+
let E = R ? R[x] : 0;
|
|
6911
|
+
(!E || !await (a.isElement == null ? void 0 : a.isElement(R))) && (E = i.floating[x] || s.floating[b]);
|
|
6912
|
+
const k = C / 2 - N / 2, L = E / 2 - g[b] / 2 - 1, W = tt(l[y], L), M = tt(l[w], L), F = W, H = E - g[b] - M, O = E / 2 - g[b] / 2 + k, K = yo(F, O, H), P = !c.arrow && It(r) != null && O !== K && s.reference[b] / 2 - (O < F ? W : M) - g[b] / 2 < 0, D = P ? O < F ? O - F : O - H : 0;
|
|
6904
6913
|
return {
|
|
6905
|
-
[h]: m[h] +
|
|
6914
|
+
[h]: m[h] + D,
|
|
6906
6915
|
data: {
|
|
6907
6916
|
[h]: K,
|
|
6908
|
-
centerOffset:
|
|
6909
|
-
...
|
|
6910
|
-
alignmentOffset:
|
|
6917
|
+
centerOffset: O - K - D,
|
|
6918
|
+
...P && {
|
|
6919
|
+
alignmentOffset: D
|
|
6911
6920
|
}
|
|
6912
6921
|
},
|
|
6913
|
-
reset:
|
|
6922
|
+
reset: P
|
|
6914
6923
|
};
|
|
6915
6924
|
}
|
|
6916
6925
|
}), Kp = function(e) {
|
|
@@ -6937,57 +6946,57 @@ const Gp = 50, Yp = async (e, t, n) => {
|
|
|
6937
6946
|
} = Ge(e, t);
|
|
6938
6947
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
6939
6948
|
return {};
|
|
6940
|
-
const y = Ye(r), w = Be(i), x = Ye(i) === i, C = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)),
|
|
6941
|
-
!m && R &&
|
|
6942
|
-
const
|
|
6943
|
-
let
|
|
6944
|
-
if (p &&
|
|
6945
|
-
const
|
|
6946
|
-
|
|
6949
|
+
const y = Ye(r), w = Be(i), x = Ye(i) === i, C = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), N = m || (x || !g ? [gn(i)] : Fp(i)), R = b !== "none";
|
|
6950
|
+
!m && R && N.push(...Wp(i, g, b, C));
|
|
6951
|
+
const E = [i, ...N], k = await c.detectOverflow(t, v), L = [];
|
|
6952
|
+
let W = ((o = s.flip) == null ? void 0 : o.overflows) || [];
|
|
6953
|
+
if (p && L.push(k[y]), l) {
|
|
6954
|
+
const O = $p(r, a, C);
|
|
6955
|
+
L.push(k[O[0]], k[O[1]]);
|
|
6947
6956
|
}
|
|
6948
|
-
if (
|
|
6957
|
+
if (W = [...W, {
|
|
6949
6958
|
placement: r,
|
|
6950
|
-
overflows:
|
|
6951
|
-
}], !
|
|
6952
|
-
var
|
|
6953
|
-
const
|
|
6959
|
+
overflows: L
|
|
6960
|
+
}], !L.every((O) => O <= 0)) {
|
|
6961
|
+
var M, F;
|
|
6962
|
+
const O = (((M = s.flip) == null ? void 0 : M.index) || 0) + 1, K = E[O];
|
|
6954
6963
|
if (K && (!(l === "alignment" ? w !== Be(K) : !1) || // We leave the current main axis only if every placement on that axis
|
|
6955
6964
|
// overflows the main axis.
|
|
6956
|
-
|
|
6965
|
+
W.every((U) => Be(U.placement) === w ? U.overflows[0] > 0 : !0)))
|
|
6957
6966
|
return {
|
|
6958
6967
|
data: {
|
|
6959
|
-
index:
|
|
6960
|
-
overflows:
|
|
6968
|
+
index: O,
|
|
6969
|
+
overflows: W
|
|
6961
6970
|
},
|
|
6962
6971
|
reset: {
|
|
6963
6972
|
placement: K
|
|
6964
6973
|
}
|
|
6965
6974
|
};
|
|
6966
|
-
let
|
|
6967
|
-
if (!
|
|
6975
|
+
let P = (F = W.filter((D) => D.overflows[0] <= 0).sort((D, U) => D.overflows[1] - U.overflows[1])[0]) == null ? void 0 : F.placement;
|
|
6976
|
+
if (!P)
|
|
6968
6977
|
switch (h) {
|
|
6969
6978
|
case "bestFit": {
|
|
6970
|
-
var
|
|
6971
|
-
const
|
|
6979
|
+
var H;
|
|
6980
|
+
const D = (H = W.filter((U) => {
|
|
6972
6981
|
if (R) {
|
|
6973
|
-
const T = Be(
|
|
6982
|
+
const T = Be(U.placement);
|
|
6974
6983
|
return T === w || // Create a bias to the `y` side axis due to horizontal
|
|
6975
6984
|
// reading directions favoring greater width.
|
|
6976
6985
|
T === "y";
|
|
6977
6986
|
}
|
|
6978
6987
|
return !0;
|
|
6979
|
-
}).map((
|
|
6980
|
-
|
|
6988
|
+
}).map((U) => [U.placement, U.overflows.filter((T) => T > 0).reduce((T, S) => T + S, 0)]).sort((U, T) => U[1] - T[1])[0]) == null ? void 0 : H[0];
|
|
6989
|
+
D && (P = D);
|
|
6981
6990
|
break;
|
|
6982
6991
|
}
|
|
6983
6992
|
case "initialPlacement":
|
|
6984
|
-
|
|
6993
|
+
P = i;
|
|
6985
6994
|
break;
|
|
6986
6995
|
}
|
|
6987
|
-
if (r !==
|
|
6996
|
+
if (r !== P)
|
|
6988
6997
|
return {
|
|
6989
6998
|
reset: {
|
|
6990
|
-
placement:
|
|
6999
|
+
placement: P
|
|
6991
7000
|
}
|
|
6992
7001
|
};
|
|
6993
7002
|
}
|
|
@@ -7183,13 +7192,13 @@ const Jp = function(e) {
|
|
|
7183
7192
|
...g
|
|
7184
7193
|
};
|
|
7185
7194
|
if (c) {
|
|
7186
|
-
const x = m === "y" ? "height" : "width", C = s.reference[m] - s.floating[x] + v.mainAxis,
|
|
7187
|
-
h < C ? h = C : h >
|
|
7195
|
+
const x = m === "y" ? "height" : "width", C = s.reference[m] - s.floating[x] + v.mainAxis, N = s.reference[m] + s.reference[x] - v.mainAxis;
|
|
7196
|
+
h < C ? h = C : h > N && (h = N);
|
|
7188
7197
|
}
|
|
7189
7198
|
if (d) {
|
|
7190
7199
|
var y, w;
|
|
7191
|
-
const x = m === "y" ? "width" : "height", C = Ta.has(Ye(r)),
|
|
7192
|
-
b <
|
|
7200
|
+
const x = m === "y" ? "width" : "height", C = Ta.has(Ye(r)), N = s.reference[l] - s.floating[x] + (C && ((y = a.offset) == null ? void 0 : y[l]) || 0) + (C ? 0 : v.crossAxis), R = s.reference[l] + s.reference[x] + (C ? 0 : ((w = a.offset) == null ? void 0 : w[l]) || 0) - (C ? v.crossAxis : 0);
|
|
7201
|
+
b < N ? b = N : b > R && (b = R);
|
|
7193
7202
|
}
|
|
7194
7203
|
return {
|
|
7195
7204
|
[m]: h,
|
|
@@ -7218,19 +7227,19 @@ const Jp = function(e) {
|
|
|
7218
7227
|
} = s.floating;
|
|
7219
7228
|
let v, y;
|
|
7220
7229
|
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");
|
|
7221
|
-
const w = g - p.top - p.bottom, x = b - p.left - p.right, C = tt(g - p[v], w),
|
|
7222
|
-
let
|
|
7223
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (k = x), (o = t.middlewareData.shift) != null && o.enabled.y && (
|
|
7224
|
-
const
|
|
7225
|
-
h ? k = b - 2 * (
|
|
7230
|
+
const w = g - p.top - p.bottom, x = b - p.left - p.right, C = tt(g - p[v], w), N = tt(b - p[y], x), R = !t.middlewareData.shift;
|
|
7231
|
+
let E = C, k = N;
|
|
7232
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (k = x), (o = t.middlewareData.shift) != null && o.enabled.y && (E = w), R && !m) {
|
|
7233
|
+
const W = ke(p.left, 0), M = ke(p.right, 0), F = ke(p.top, 0), H = ke(p.bottom, 0);
|
|
7234
|
+
h ? k = b - 2 * (W !== 0 || M !== 0 ? W + M : ke(p.left, p.right)) : E = g - 2 * (F !== 0 || H !== 0 ? F + H : ke(p.top, p.bottom));
|
|
7226
7235
|
}
|
|
7227
7236
|
await c({
|
|
7228
7237
|
...t,
|
|
7229
7238
|
availableWidth: k,
|
|
7230
|
-
availableHeight:
|
|
7239
|
+
availableHeight: E
|
|
7231
7240
|
});
|
|
7232
|
-
const
|
|
7233
|
-
return b !==
|
|
7241
|
+
const L = await a.getDimensions(i.floating);
|
|
7242
|
+
return b !== L.width || g !== L.height ? {
|
|
7234
7243
|
reset: {
|
|
7235
7244
|
rects: !0
|
|
7236
7245
|
}
|
|
@@ -7666,25 +7675,25 @@ function wm(e, t) {
|
|
|
7666
7675
|
threshold: ke(0, tt(1, c)) || 1
|
|
7667
7676
|
};
|
|
7668
7677
|
let C = !0;
|
|
7669
|
-
function
|
|
7670
|
-
const
|
|
7671
|
-
if (
|
|
7678
|
+
function N(R) {
|
|
7679
|
+
const E = R[0].intersectionRatio;
|
|
7680
|
+
if (E !== c) {
|
|
7672
7681
|
if (!C)
|
|
7673
7682
|
return a();
|
|
7674
|
-
|
|
7683
|
+
E ? a(!1, E) : o = setTimeout(() => {
|
|
7675
7684
|
a(!1, 1e-7);
|
|
7676
7685
|
}, 1e3);
|
|
7677
7686
|
}
|
|
7678
|
-
|
|
7687
|
+
E === 1 && !Da(d, e.getBoundingClientRect()) && a(), C = !1;
|
|
7679
7688
|
}
|
|
7680
7689
|
try {
|
|
7681
|
-
n = new IntersectionObserver(
|
|
7690
|
+
n = new IntersectionObserver(N, {
|
|
7682
7691
|
...x,
|
|
7683
7692
|
// Handle <iframe>s
|
|
7684
7693
|
root: r.ownerDocument
|
|
7685
7694
|
});
|
|
7686
7695
|
} catch {
|
|
7687
|
-
n = new IntersectionObserver(
|
|
7696
|
+
n = new IntersectionObserver(N, x);
|
|
7688
7697
|
}
|
|
7689
7698
|
n.observe(e);
|
|
7690
7699
|
}
|
|
@@ -7807,69 +7816,69 @@ function Im(e) {
|
|
|
7807
7816
|
isPositioned: !1
|
|
7808
7817
|
}), [m, h] = f.useState(o);
|
|
7809
7818
|
bn(m, o) || h(o);
|
|
7810
|
-
const [b, g] = f.useState(null), [v, y] = f.useState(null), w = f.useCallback((
|
|
7811
|
-
|
|
7812
|
-
}, []), x = f.useCallback((
|
|
7813
|
-
|
|
7814
|
-
}, []), C = s || b,
|
|
7815
|
-
if (!R.current || !
|
|
7819
|
+
const [b, g] = f.useState(null), [v, y] = f.useState(null), w = f.useCallback((U) => {
|
|
7820
|
+
U !== R.current && (R.current = U, g(U));
|
|
7821
|
+
}, []), x = f.useCallback((U) => {
|
|
7822
|
+
U !== E.current && (E.current = U, y(U));
|
|
7823
|
+
}, []), C = s || b, N = a || v, R = f.useRef(null), E = f.useRef(null), k = f.useRef(p), L = c != null, W = co(c), M = co(r), F = co(d), H = f.useCallback(() => {
|
|
7824
|
+
if (!R.current || !E.current)
|
|
7816
7825
|
return;
|
|
7817
|
-
const
|
|
7826
|
+
const U = {
|
|
7818
7827
|
placement: t,
|
|
7819
7828
|
strategy: n,
|
|
7820
7829
|
middleware: m
|
|
7821
7830
|
};
|
|
7822
|
-
|
|
7831
|
+
M.current && (U.platform = M.current), Tm(R.current, E.current, U).then((T) => {
|
|
7823
7832
|
const S = {
|
|
7824
7833
|
...T,
|
|
7825
7834
|
// The floating element's position may be recomputed while it's closed
|
|
7826
7835
|
// but still mounted (such as when transitioning out). To ensure
|
|
7827
7836
|
// `isPositioned` will be `false` initially on the next open, avoid
|
|
7828
7837
|
// setting it to `true` when `open === false` (must be specified).
|
|
7829
|
-
isPositioned:
|
|
7838
|
+
isPositioned: F.current !== !1
|
|
7830
7839
|
};
|
|
7831
|
-
|
|
7840
|
+
O.current && !bn(k.current, S) && (k.current = S, Cn.flushSync(() => {
|
|
7832
7841
|
l(S);
|
|
7833
7842
|
}));
|
|
7834
7843
|
});
|
|
7835
|
-
}, [m, t, n,
|
|
7844
|
+
}, [m, t, n, M, F]);
|
|
7836
7845
|
fn(() => {
|
|
7837
|
-
d === !1 && k.current.isPositioned && (k.current.isPositioned = !1, l((
|
|
7838
|
-
...
|
|
7846
|
+
d === !1 && k.current.isPositioned && (k.current.isPositioned = !1, l((U) => ({
|
|
7847
|
+
...U,
|
|
7839
7848
|
isPositioned: !1
|
|
7840
7849
|
})));
|
|
7841
7850
|
}, [d]);
|
|
7842
|
-
const
|
|
7843
|
-
fn(() => (
|
|
7844
|
-
|
|
7851
|
+
const O = f.useRef(!1);
|
|
7852
|
+
fn(() => (O.current = !0, () => {
|
|
7853
|
+
O.current = !1;
|
|
7845
7854
|
}), []), fn(() => {
|
|
7846
|
-
if (C && (R.current = C),
|
|
7847
|
-
if (
|
|
7848
|
-
return
|
|
7849
|
-
|
|
7855
|
+
if (C && (R.current = C), N && (E.current = N), C && N) {
|
|
7856
|
+
if (W.current)
|
|
7857
|
+
return W.current(C, N, H);
|
|
7858
|
+
H();
|
|
7850
7859
|
}
|
|
7851
|
-
}, [C,
|
|
7860
|
+
}, [C, N, H, W, L]);
|
|
7852
7861
|
const K = f.useMemo(() => ({
|
|
7853
7862
|
reference: R,
|
|
7854
|
-
floating:
|
|
7863
|
+
floating: E,
|
|
7855
7864
|
setReference: w,
|
|
7856
7865
|
setFloating: x
|
|
7857
|
-
}), [w, x]),
|
|
7866
|
+
}), [w, x]), P = f.useMemo(() => ({
|
|
7858
7867
|
reference: C,
|
|
7859
|
-
floating:
|
|
7860
|
-
}), [C,
|
|
7861
|
-
const
|
|
7868
|
+
floating: N
|
|
7869
|
+
}), [C, N]), D = f.useMemo(() => {
|
|
7870
|
+
const U = {
|
|
7862
7871
|
position: n,
|
|
7863
7872
|
left: 0,
|
|
7864
7873
|
top: 0
|
|
7865
7874
|
};
|
|
7866
|
-
if (!
|
|
7867
|
-
return
|
|
7868
|
-
const T = os(
|
|
7875
|
+
if (!P.floating)
|
|
7876
|
+
return U;
|
|
7877
|
+
const T = os(P.floating, p.x), S = os(P.floating, p.y);
|
|
7869
7878
|
return i ? {
|
|
7870
|
-
...
|
|
7879
|
+
...U,
|
|
7871
7880
|
transform: "translate(" + T + "px, " + S + "px)",
|
|
7872
|
-
...za(
|
|
7881
|
+
...za(P.floating) >= 1.5 && {
|
|
7873
7882
|
willChange: "transform"
|
|
7874
7883
|
}
|
|
7875
7884
|
} : {
|
|
@@ -7877,14 +7886,14 @@ function Im(e) {
|
|
|
7877
7886
|
left: T,
|
|
7878
7887
|
top: S
|
|
7879
7888
|
};
|
|
7880
|
-
}, [n, i,
|
|
7889
|
+
}, [n, i, P.floating, p.x, p.y]);
|
|
7881
7890
|
return f.useMemo(() => ({
|
|
7882
7891
|
...p,
|
|
7883
|
-
update:
|
|
7892
|
+
update: H,
|
|
7884
7893
|
refs: K,
|
|
7885
|
-
elements:
|
|
7886
|
-
floatingStyles:
|
|
7887
|
-
}), [p,
|
|
7894
|
+
elements: P,
|
|
7895
|
+
floatingStyles: D
|
|
7896
|
+
}), [p, H, K, P, D]);
|
|
7888
7897
|
}
|
|
7889
7898
|
const _m = (e) => {
|
|
7890
7899
|
function t(n) {
|
|
@@ -7986,7 +7995,7 @@ var Va = "PopperAnchor", Wa = f.forwardRef(
|
|
|
7986
7995
|
Wa.displayName = Va;
|
|
7987
7996
|
var Qo = "PopperContent", [Wm, Um] = Fa(Qo), Ua = f.forwardRef(
|
|
7988
7997
|
(e, t) => {
|
|
7989
|
-
var
|
|
7998
|
+
var j, Y, ee, te, se, oe;
|
|
7990
7999
|
const {
|
|
7991
8000
|
__scopePopper: n,
|
|
7992
8001
|
side: o = "bottom",
|
|
@@ -8002,15 +8011,15 @@ var Qo = "PopperContent", [Wm, Um] = Fa(Qo), Ua = f.forwardRef(
|
|
|
8002
8011
|
updatePositionStrategy: h = "optimized",
|
|
8003
8012
|
onPlaced: b,
|
|
8004
8013
|
...g
|
|
8005
|
-
} = e, v = Ba(Qo, n), [y, w] = f.useState(null), x = ie(t, (ue) => w(ue)), [C,
|
|
8006
|
-
padding:
|
|
8007
|
-
boundary:
|
|
8014
|
+
} = e, v = Ba(Qo, n), [y, w] = f.useState(null), x = ie(t, (ue) => w(ue)), [C, N] = f.useState(null), R = Pn(C), E = (R == null ? void 0 : R.width) ?? 0, k = (R == null ? void 0 : R.height) ?? 0, L = o + (s !== "center" ? "-" + s : ""), W = typeof p == "number" ? p : { top: 0, right: 0, bottom: 0, left: 0, ...p }, M = Array.isArray(d) ? d : [d], F = M.length > 0, H = {
|
|
8015
|
+
padding: W,
|
|
8016
|
+
boundary: M.filter(Gm),
|
|
8008
8017
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
8009
|
-
altBoundary:
|
|
8010
|
-
}, { refs:
|
|
8018
|
+
altBoundary: F
|
|
8019
|
+
}, { refs: O, floatingStyles: K, placement: P, isPositioned: D, middlewareData: U } = Im({
|
|
8011
8020
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
8012
8021
|
strategy: "fixed",
|
|
8013
|
-
placement:
|
|
8022
|
+
placement: L,
|
|
8014
8023
|
whileElementsMounted: (...ue) => xm(...ue, {
|
|
8015
8024
|
animationFrame: h === "always"
|
|
8016
8025
|
}),
|
|
@@ -8023,46 +8032,46 @@ var Qo = "PopperContent", [Wm, Um] = Fa(Qo), Ua = f.forwardRef(
|
|
|
8023
8032
|
mainAxis: !0,
|
|
8024
8033
|
crossAxis: !1,
|
|
8025
8034
|
limiter: l === "partial" ? Lm() : void 0,
|
|
8026
|
-
...
|
|
8035
|
+
...H
|
|
8027
8036
|
}),
|
|
8028
|
-
c && Dm({ ...
|
|
8037
|
+
c && Dm({ ...H }),
|
|
8029
8038
|
zm({
|
|
8030
|
-
...
|
|
8039
|
+
...H,
|
|
8031
8040
|
apply: ({ elements: ue, rects: fe, availableWidth: at, availableHeight: Ke }) => {
|
|
8032
|
-
const { width: Te, height: Kt } = fe.reference,
|
|
8033
|
-
|
|
8041
|
+
const { width: Te, height: Kt } = fe.reference, ye = ue.floating.style;
|
|
8042
|
+
ye.setProperty("--radix-popper-available-width", `${at}px`), ye.setProperty("--radix-popper-available-height", `${Ke}px`), ye.setProperty("--radix-popper-anchor-width", `${Te}px`), ye.setProperty("--radix-popper-anchor-height", `${Kt}px`);
|
|
8034
8043
|
}
|
|
8035
8044
|
}),
|
|
8036
8045
|
C && Fm({ element: C, padding: i }),
|
|
8037
|
-
Ym({ arrowWidth:
|
|
8038
|
-
m && $m({ strategy: "referenceHidden", ...
|
|
8046
|
+
Ym({ arrowWidth: E, arrowHeight: k }),
|
|
8047
|
+
m && $m({ strategy: "referenceHidden", ...H })
|
|
8039
8048
|
]
|
|
8040
|
-
}), [T, S] = Ya(
|
|
8049
|
+
}), [T, S] = Ya(P), A = be(b);
|
|
8041
8050
|
de(() => {
|
|
8042
|
-
|
|
8043
|
-
}, [
|
|
8044
|
-
const
|
|
8051
|
+
D && (A == null || A());
|
|
8052
|
+
}, [D, A]);
|
|
8053
|
+
const z = (j = U.arrow) == null ? void 0 : j.x, I = (Y = U.arrow) == null ? void 0 : Y.y, $ = ((ee = U.arrow) == null ? void 0 : ee.centerOffset) !== 0, [B, J] = f.useState();
|
|
8045
8054
|
return de(() => {
|
|
8046
8055
|
y && J(window.getComputedStyle(y).zIndex);
|
|
8047
8056
|
}, [y]), /* @__PURE__ */ u(
|
|
8048
8057
|
"div",
|
|
8049
8058
|
{
|
|
8050
|
-
ref:
|
|
8059
|
+
ref: O.setFloating,
|
|
8051
8060
|
"data-radix-popper-content-wrapper": "",
|
|
8052
8061
|
style: {
|
|
8053
8062
|
...K,
|
|
8054
|
-
transform:
|
|
8063
|
+
transform: D ? K.transform : "translate(0, -200%)",
|
|
8055
8064
|
// keep off the page when measuring
|
|
8056
8065
|
minWidth: "max-content",
|
|
8057
|
-
zIndex:
|
|
8066
|
+
zIndex: B,
|
|
8058
8067
|
"--radix-popper-transform-origin": [
|
|
8059
|
-
(te =
|
|
8060
|
-
(se =
|
|
8068
|
+
(te = U.transformOrigin) == null ? void 0 : te.x,
|
|
8069
|
+
(se = U.transformOrigin) == null ? void 0 : se.y
|
|
8061
8070
|
].join(" "),
|
|
8062
8071
|
// hide the content if using the hide middleware and should be hidden
|
|
8063
8072
|
// set visibility to hidden and disable pointer events so the UI behaves
|
|
8064
8073
|
// as if the PopperContent isn't there at all
|
|
8065
|
-
...((oe =
|
|
8074
|
+
...((oe = U.hide) == null ? void 0 : oe.referenceHidden) && {
|
|
8066
8075
|
visibility: "hidden",
|
|
8067
8076
|
pointerEvents: "none"
|
|
8068
8077
|
}
|
|
@@ -8073,10 +8082,10 @@ var Qo = "PopperContent", [Wm, Um] = Fa(Qo), Ua = f.forwardRef(
|
|
|
8073
8082
|
{
|
|
8074
8083
|
scope: n,
|
|
8075
8084
|
placedSide: T,
|
|
8076
|
-
onArrowChange:
|
|
8077
|
-
arrowX:
|
|
8085
|
+
onArrowChange: N,
|
|
8086
|
+
arrowX: z,
|
|
8078
8087
|
arrowY: I,
|
|
8079
|
-
shouldHideArrow:
|
|
8088
|
+
shouldHideArrow: $,
|
|
8080
8089
|
children: /* @__PURE__ */ u(
|
|
8081
8090
|
Z.div,
|
|
8082
8091
|
{
|
|
@@ -8088,7 +8097,7 @@ var Qo = "PopperContent", [Wm, Um] = Fa(Qo), Ua = f.forwardRef(
|
|
|
8088
8097
|
...g.style,
|
|
8089
8098
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
8090
8099
|
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
8091
|
-
animation:
|
|
8100
|
+
animation: D ? void 0 : "none"
|
|
8092
8101
|
}
|
|
8093
8102
|
}
|
|
8094
8103
|
)
|
|
@@ -8191,7 +8200,7 @@ var Qm = f.forwardRef((e, t) => {
|
|
|
8191
8200
|
defaultProp: i ?? null,
|
|
8192
8201
|
onChange: c,
|
|
8193
8202
|
caller: Yt
|
|
8194
|
-
}), [y, w] = f.useState(!1), x =
|
|
8203
|
+
}), [y, w] = f.useState(!1), x = be(d), C = Ja(n), N = f.useRef(!1), [R, E] = f.useState(0);
|
|
8195
8204
|
return f.useEffect(() => {
|
|
8196
8205
|
const k = m.current;
|
|
8197
8206
|
if (k)
|
|
@@ -8210,11 +8219,11 @@ var Qm = f.forwardRef((e, t) => {
|
|
|
8210
8219
|
),
|
|
8211
8220
|
onItemShiftTab: f.useCallback(() => w(!0), []),
|
|
8212
8221
|
onFocusableItemAdd: f.useCallback(
|
|
8213
|
-
() =>
|
|
8222
|
+
() => E((k) => k + 1),
|
|
8214
8223
|
[]
|
|
8215
8224
|
),
|
|
8216
8225
|
onFocusableItemRemove: f.useCallback(
|
|
8217
|
-
() =>
|
|
8226
|
+
() => E((k) => k - 1),
|
|
8218
8227
|
[]
|
|
8219
8228
|
),
|
|
8220
8229
|
children: /* @__PURE__ */ u(
|
|
@@ -8226,20 +8235,20 @@ var Qm = f.forwardRef((e, t) => {
|
|
|
8226
8235
|
ref: h,
|
|
8227
8236
|
style: { outline: "none", ...e.style },
|
|
8228
8237
|
onMouseDown: Q(e.onMouseDown, () => {
|
|
8229
|
-
|
|
8238
|
+
N.current = !0;
|
|
8230
8239
|
}),
|
|
8231
8240
|
onFocus: Q(e.onFocus, (k) => {
|
|
8232
|
-
const
|
|
8233
|
-
if (k.target === k.currentTarget &&
|
|
8234
|
-
const
|
|
8235
|
-
if (k.currentTarget.dispatchEvent(
|
|
8236
|
-
const
|
|
8241
|
+
const L = !N.current;
|
|
8242
|
+
if (k.target === k.currentTarget && L && !y) {
|
|
8243
|
+
const W = new CustomEvent(lo, qm);
|
|
8244
|
+
if (k.currentTarget.dispatchEvent(W), !W.defaultPrevented) {
|
|
8245
|
+
const M = C().filter((P) => P.focusable), F = M.find((P) => P.active), H = M.find((P) => P.id === g), K = [F, H, ...M].filter(
|
|
8237
8246
|
Boolean
|
|
8238
|
-
).map((
|
|
8247
|
+
).map((P) => P.ref.current);
|
|
8239
8248
|
ni(K, p);
|
|
8240
8249
|
}
|
|
8241
8250
|
}
|
|
8242
|
-
|
|
8251
|
+
N.current = !1;
|
|
8243
8252
|
}),
|
|
8244
8253
|
onBlur: Q(e.onBlur, () => w(!1))
|
|
8245
8254
|
}
|
|
@@ -8433,7 +8442,7 @@ var fh = ai, ph = ci, nr = "Radio", [mh, di] = xe(nr), [hh, gh] = mh(nr), ui = f
|
|
|
8433
8442
|
form: d,
|
|
8434
8443
|
...p
|
|
8435
8444
|
} = e, [l, m] = f.useState(null), h = ie(t, (v) => m(v)), b = f.useRef(!1), g = l ? d || !!l.closest("form") : !0;
|
|
8436
|
-
return /* @__PURE__ */
|
|
8445
|
+
return /* @__PURE__ */ q(hh, { scope: n, checked: r, disabled: a, children: [
|
|
8437
8446
|
/* @__PURE__ */ u(
|
|
8438
8447
|
Z.button,
|
|
8439
8448
|
{
|
|
@@ -8649,13 +8658,13 @@ var or = "ScrollArea", [Si] = xe(or), [Rh, Re] = Si(or), Ci = f.forwardRef(
|
|
|
8649
8658
|
dir: r,
|
|
8650
8659
|
scrollHideDelay: s = 600,
|
|
8651
8660
|
...a
|
|
8652
|
-
} = e, [i, c] = f.useState(null), [d, p] = f.useState(null), [l, m] = f.useState(null), [h, b] = f.useState(null), [g, v] = f.useState(null), [y, w] = f.useState(0), [x, C] = f.useState(0), [
|
|
8661
|
+
} = e, [i, c] = f.useState(null), [d, p] = f.useState(null), [l, m] = f.useState(null), [h, b] = f.useState(null), [g, v] = f.useState(null), [y, w] = f.useState(0), [x, C] = f.useState(0), [N, R] = f.useState(!1), [E, k] = f.useState(!1), L = ie(t, (M) => c(M)), W = jt(r);
|
|
8653
8662
|
return /* @__PURE__ */ u(
|
|
8654
8663
|
Rh,
|
|
8655
8664
|
{
|
|
8656
8665
|
scope: n,
|
|
8657
8666
|
type: o,
|
|
8658
|
-
dir:
|
|
8667
|
+
dir: W,
|
|
8659
8668
|
scrollHideDelay: s,
|
|
8660
8669
|
scrollArea: i,
|
|
8661
8670
|
viewport: d,
|
|
@@ -8664,20 +8673,20 @@ var or = "ScrollArea", [Si] = xe(or), [Rh, Re] = Si(or), Ci = f.forwardRef(
|
|
|
8664
8673
|
onContentChange: m,
|
|
8665
8674
|
scrollbarX: h,
|
|
8666
8675
|
onScrollbarXChange: b,
|
|
8667
|
-
scrollbarXEnabled:
|
|
8676
|
+
scrollbarXEnabled: N,
|
|
8668
8677
|
onScrollbarXEnabledChange: R,
|
|
8669
8678
|
scrollbarY: g,
|
|
8670
8679
|
onScrollbarYChange: v,
|
|
8671
|
-
scrollbarYEnabled:
|
|
8680
|
+
scrollbarYEnabled: E,
|
|
8672
8681
|
onScrollbarYEnabledChange: k,
|
|
8673
8682
|
onCornerWidthChange: w,
|
|
8674
8683
|
onCornerHeightChange: C,
|
|
8675
8684
|
children: /* @__PURE__ */ u(
|
|
8676
8685
|
Z.div,
|
|
8677
8686
|
{
|
|
8678
|
-
dir:
|
|
8687
|
+
dir: W,
|
|
8679
8688
|
...a,
|
|
8680
|
-
ref:
|
|
8689
|
+
ref: L,
|
|
8681
8690
|
style: {
|
|
8682
8691
|
position: "relative",
|
|
8683
8692
|
// Pass corner sizes as CSS vars to reduce re-renders of context consumers
|
|
@@ -8695,7 +8704,7 @@ Ci.displayName = or;
|
|
|
8695
8704
|
var ki = "ScrollAreaViewport", Ei = f.forwardRef(
|
|
8696
8705
|
(e, t) => {
|
|
8697
8706
|
const { __scopeScrollArea: n, children: o, nonce: r, ...s } = e, a = Re(ki, n), i = f.useRef(null), c = ie(t, i, a.onViewportChange);
|
|
8698
|
-
return /* @__PURE__ */
|
|
8707
|
+
return /* @__PURE__ */ q(_e, { children: [
|
|
8699
8708
|
/* @__PURE__ */ u(
|
|
8700
8709
|
"style",
|
|
8701
8710
|
{
|
|
@@ -8971,42 +8980,42 @@ var Th = f.forwardRef((e, t) => {
|
|
|
8971
8980
|
onWheelScroll: p,
|
|
8972
8981
|
onResize: l,
|
|
8973
8982
|
...m
|
|
8974
|
-
} = e, h = Re(We, n), [b, g] = f.useState(null), v = ie(t, (
|
|
8975
|
-
function k(
|
|
8983
|
+
} = e, h = Re(We, n), [b, g] = f.useState(null), v = ie(t, (L) => g(L)), y = f.useRef(null), w = f.useRef(""), x = h.viewport, C = o.content - o.viewport, N = be(p), R = be(c), E = Fn(l, 10);
|
|
8984
|
+
function k(L) {
|
|
8976
8985
|
if (y.current) {
|
|
8977
|
-
const
|
|
8978
|
-
d({ x:
|
|
8986
|
+
const W = L.clientX - y.current.left, M = L.clientY - y.current.top;
|
|
8987
|
+
d({ x: W, y: M });
|
|
8979
8988
|
}
|
|
8980
8989
|
}
|
|
8981
8990
|
return f.useEffect(() => {
|
|
8982
|
-
const
|
|
8983
|
-
const
|
|
8984
|
-
(b == null ? void 0 : b.contains(
|
|
8991
|
+
const L = (W) => {
|
|
8992
|
+
const M = W.target;
|
|
8993
|
+
(b == null ? void 0 : b.contains(M)) && N(W, C);
|
|
8985
8994
|
};
|
|
8986
|
-
return document.addEventListener("wheel",
|
|
8987
|
-
}, [x, b, C,
|
|
8995
|
+
return document.addEventListener("wheel", L, { passive: !1 }), () => document.removeEventListener("wheel", L, { passive: !1 });
|
|
8996
|
+
}, [x, b, C, N]), f.useEffect(R, [o, R]), Pt(b, E), Pt(h.content, E), /* @__PURE__ */ u(
|
|
8988
8997
|
_h,
|
|
8989
8998
|
{
|
|
8990
8999
|
scope: n,
|
|
8991
9000
|
scrollbar: b,
|
|
8992
9001
|
hasThumb: r,
|
|
8993
|
-
onThumbChange:
|
|
8994
|
-
onThumbPointerUp:
|
|
9002
|
+
onThumbChange: be(s),
|
|
9003
|
+
onThumbPointerUp: be(a),
|
|
8995
9004
|
onThumbPositionChange: R,
|
|
8996
|
-
onThumbPointerDown:
|
|
9005
|
+
onThumbPointerDown: be(i),
|
|
8997
9006
|
children: /* @__PURE__ */ u(
|
|
8998
9007
|
Z.div,
|
|
8999
9008
|
{
|
|
9000
9009
|
...m,
|
|
9001
9010
|
ref: v,
|
|
9002
9011
|
style: { position: "absolute", ...m.style },
|
|
9003
|
-
onPointerDown: Q(e.onPointerDown, (
|
|
9004
|
-
|
|
9012
|
+
onPointerDown: Q(e.onPointerDown, (L) => {
|
|
9013
|
+
L.button === 0 && (L.target.setPointerCapture(L.pointerId), y.current = b.getBoundingClientRect(), w.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", h.viewport && (h.viewport.style.scrollBehavior = "auto"), k(L));
|
|
9005
9014
|
}),
|
|
9006
9015
|
onPointerMove: Q(e.onPointerMove, k),
|
|
9007
|
-
onPointerUp: Q(e.onPointerUp, (
|
|
9008
|
-
const
|
|
9009
|
-
|
|
9016
|
+
onPointerUp: Q(e.onPointerUp, (L) => {
|
|
9017
|
+
const W = L.target;
|
|
9018
|
+
W.hasPointerCapture(L.pointerId) && W.releasePointerCapture(L.pointerId), document.body.style.webkitUserSelect = w.current, h.viewport && (h.viewport.style.scrollBehavior = ""), y.current = null;
|
|
9010
9019
|
})
|
|
9011
9020
|
}
|
|
9012
9021
|
)
|
|
@@ -9129,13 +9138,13 @@ var Dh = (e, t = () => {
|
|
|
9129
9138
|
})(), () => window.cancelAnimationFrame(o);
|
|
9130
9139
|
};
|
|
9131
9140
|
function Fn(e, t) {
|
|
9132
|
-
const n =
|
|
9141
|
+
const n = be(e), o = f.useRef(0);
|
|
9133
9142
|
return f.useEffect(() => () => window.clearTimeout(o.current), []), f.useCallback(() => {
|
|
9134
9143
|
window.clearTimeout(o.current), o.current = window.setTimeout(n, t);
|
|
9135
9144
|
}, [n, t]);
|
|
9136
9145
|
}
|
|
9137
9146
|
function Pt(e, t) {
|
|
9138
|
-
const n =
|
|
9147
|
+
const n = be(t);
|
|
9139
9148
|
de(() => {
|
|
9140
9149
|
let o = 0;
|
|
9141
9150
|
if (e) {
|
|
@@ -9167,18 +9176,18 @@ var zh = Ci, $h = Ei, Fh = Ii, Bh = [" ", "Enter", "ArrowUp", "ArrowDown"], Hh =
|
|
|
9167
9176
|
disabled: m,
|
|
9168
9177
|
required: h,
|
|
9169
9178
|
form: b
|
|
9170
|
-
} = e, g = Vn(t), [v, y] = f.useState(null), [w, x] = f.useState(null), [C,
|
|
9179
|
+
} = e, g = Vn(t), [v, y] = f.useState(null), [w, x] = f.useState(null), [C, N] = f.useState(!1), R = jt(d), [E, k] = je({
|
|
9171
9180
|
prop: o,
|
|
9172
9181
|
defaultProp: r ?? !1,
|
|
9173
9182
|
onChange: s,
|
|
9174
9183
|
caller: ft
|
|
9175
|
-
}), [
|
|
9184
|
+
}), [L, W] = je({
|
|
9176
9185
|
prop: a,
|
|
9177
9186
|
defaultProp: i,
|
|
9178
9187
|
onChange: c,
|
|
9179
9188
|
caller: ft
|
|
9180
|
-
}),
|
|
9181
|
-
return /* @__PURE__ */ u(qa, { ...g, children: /* @__PURE__ */
|
|
9189
|
+
}), M = f.useRef(null), F = v ? b || !!v.closest("form") : !0, [H, O] = f.useState(/* @__PURE__ */ new Set()), K = Array.from(H).map((P) => P.props.value).join(";");
|
|
9190
|
+
return /* @__PURE__ */ u(qa, { ...g, children: /* @__PURE__ */ q(
|
|
9182
9191
|
Wh,
|
|
9183
9192
|
{
|
|
9184
9193
|
required: h,
|
|
@@ -9188,33 +9197,33 @@ var zh = Ci, $h = Ei, Fh = Ii, Bh = [" ", "Enter", "ArrowUp", "ArrowDown"], Hh =
|
|
|
9188
9197
|
valueNode: w,
|
|
9189
9198
|
onValueNodeChange: x,
|
|
9190
9199
|
valueNodeHasChildren: C,
|
|
9191
|
-
onValueNodeHasChildrenChange:
|
|
9200
|
+
onValueNodeHasChildrenChange: N,
|
|
9192
9201
|
contentId: ht(),
|
|
9193
|
-
value:
|
|
9194
|
-
onValueChange:
|
|
9195
|
-
open:
|
|
9202
|
+
value: L,
|
|
9203
|
+
onValueChange: W,
|
|
9204
|
+
open: E,
|
|
9196
9205
|
onOpenChange: k,
|
|
9197
9206
|
dir: R,
|
|
9198
|
-
triggerPointerDownPosRef:
|
|
9207
|
+
triggerPointerDownPosRef: M,
|
|
9199
9208
|
disabled: m,
|
|
9200
9209
|
children: [
|
|
9201
9210
|
/* @__PURE__ */ u(Bn.Provider, { scope: t, children: /* @__PURE__ */ u(
|
|
9202
9211
|
Uh,
|
|
9203
9212
|
{
|
|
9204
9213
|
scope: e.__scopeSelect,
|
|
9205
|
-
onNativeOptionAdd: f.useCallback((
|
|
9206
|
-
|
|
9214
|
+
onNativeOptionAdd: f.useCallback((P) => {
|
|
9215
|
+
O((D) => new Set(D).add(P));
|
|
9207
9216
|
}, []),
|
|
9208
|
-
onNativeOptionRemove: f.useCallback((
|
|
9209
|
-
|
|
9210
|
-
const
|
|
9211
|
-
return
|
|
9217
|
+
onNativeOptionRemove: f.useCallback((P) => {
|
|
9218
|
+
O((D) => {
|
|
9219
|
+
const U = new Set(D);
|
|
9220
|
+
return U.delete(P), U;
|
|
9212
9221
|
});
|
|
9213
9222
|
}, []),
|
|
9214
9223
|
children: n
|
|
9215
9224
|
}
|
|
9216
9225
|
) }),
|
|
9217
|
-
|
|
9226
|
+
F ? /* @__PURE__ */ q(
|
|
9218
9227
|
oc,
|
|
9219
9228
|
{
|
|
9220
9229
|
"aria-hidden": !0,
|
|
@@ -9222,13 +9231,13 @@ var zh = Ci, $h = Ei, Fh = Ii, Bh = [" ", "Enter", "ArrowUp", "ArrowDown"], Hh =
|
|
|
9222
9231
|
tabIndex: -1,
|
|
9223
9232
|
name: p,
|
|
9224
9233
|
autoComplete: l,
|
|
9225
|
-
value:
|
|
9226
|
-
onChange: (
|
|
9234
|
+
value: L,
|
|
9235
|
+
onChange: (P) => W(P.target.value),
|
|
9227
9236
|
disabled: m,
|
|
9228
9237
|
form: b,
|
|
9229
9238
|
children: [
|
|
9230
|
-
|
|
9231
|
-
Array.from(
|
|
9239
|
+
L === void 0 ? /* @__PURE__ */ u("option", { value: "" }) : null,
|
|
9240
|
+
Array.from(H)
|
|
9232
9241
|
]
|
|
9233
9242
|
},
|
|
9234
9243
|
K
|
|
@@ -9346,65 +9355,65 @@ var Ie = 10, [Wi, st] = Mt(pt), qh = "SelectContentImpl", Kh = /* @__PURE__ */ H
|
|
|
9346
9355
|
avoidCollisions: v,
|
|
9347
9356
|
//
|
|
9348
9357
|
...y
|
|
9349
|
-
} = e, w = rt(pt, n), [x, C] = f.useState(null), [
|
|
9358
|
+
} = e, w = rt(pt, n), [x, C] = f.useState(null), [N, R] = f.useState(null), E = ie(t, (j) => C(j)), [k, L] = f.useState(null), [W, M] = f.useState(
|
|
9350
9359
|
null
|
|
9351
|
-
),
|
|
9360
|
+
), F = Hn(n), [H, O] = f.useState(!1), K = f.useRef(!1);
|
|
9352
9361
|
f.useEffect(() => {
|
|
9353
9362
|
if (x) return wp(x);
|
|
9354
9363
|
}, [x]), Of();
|
|
9355
|
-
const
|
|
9356
|
-
(
|
|
9357
|
-
const [
|
|
9358
|
-
for (const oe of
|
|
9359
|
-
if (oe === se || (oe == null || oe.scrollIntoView({ block: "nearest" }), oe ===
|
|
9364
|
+
const P = f.useCallback(
|
|
9365
|
+
(j) => {
|
|
9366
|
+
const [Y, ...ee] = F().map((oe) => oe.ref.current), [te] = ee.slice(-1), se = document.activeElement;
|
|
9367
|
+
for (const oe of j)
|
|
9368
|
+
if (oe === se || (oe == null || oe.scrollIntoView({ block: "nearest" }), oe === Y && N && (N.scrollTop = 0), oe === te && N && (N.scrollTop = N.scrollHeight), oe == null || oe.focus(), document.activeElement !== se)) return;
|
|
9360
9369
|
},
|
|
9361
|
-
[
|
|
9362
|
-
),
|
|
9363
|
-
() =>
|
|
9364
|
-
[
|
|
9370
|
+
[F, N]
|
|
9371
|
+
), D = f.useCallback(
|
|
9372
|
+
() => P([k, x]),
|
|
9373
|
+
[P, k, x]
|
|
9365
9374
|
);
|
|
9366
9375
|
f.useEffect(() => {
|
|
9367
|
-
|
|
9368
|
-
}, [
|
|
9369
|
-
const { onOpenChange:
|
|
9376
|
+
H && D();
|
|
9377
|
+
}, [H, D]);
|
|
9378
|
+
const { onOpenChange: U, triggerPointerDownPosRef: T } = w;
|
|
9370
9379
|
f.useEffect(() => {
|
|
9371
9380
|
if (x) {
|
|
9372
|
-
let
|
|
9373
|
-
const
|
|
9381
|
+
let j = { x: 0, y: 0 };
|
|
9382
|
+
const Y = (te) => {
|
|
9374
9383
|
var se, oe;
|
|
9375
|
-
|
|
9384
|
+
j = {
|
|
9376
9385
|
x: Math.abs(Math.round(te.pageX) - (((se = T.current) == null ? void 0 : se.x) ?? 0)),
|
|
9377
9386
|
y: Math.abs(Math.round(te.pageY) - (((oe = T.current) == null ? void 0 : oe.y) ?? 0))
|
|
9378
9387
|
};
|
|
9379
9388
|
}, ee = (te) => {
|
|
9380
|
-
|
|
9389
|
+
j.x <= 10 && j.y <= 10 ? te.preventDefault() : x.contains(te.target) || U(!1), document.removeEventListener("pointermove", Y), T.current = null;
|
|
9381
9390
|
};
|
|
9382
|
-
return T.current !== null && (document.addEventListener("pointermove",
|
|
9383
|
-
document.removeEventListener("pointermove",
|
|
9391
|
+
return T.current !== null && (document.addEventListener("pointermove", Y), document.addEventListener("pointerup", ee, { capture: !0, once: !0 })), () => {
|
|
9392
|
+
document.removeEventListener("pointermove", Y), document.removeEventListener("pointerup", ee, { capture: !0 });
|
|
9384
9393
|
};
|
|
9385
9394
|
}
|
|
9386
|
-
}, [x,
|
|
9387
|
-
const
|
|
9388
|
-
return window.addEventListener("blur",
|
|
9389
|
-
window.removeEventListener("blur",
|
|
9395
|
+
}, [x, U, T]), f.useEffect(() => {
|
|
9396
|
+
const j = () => U(!1);
|
|
9397
|
+
return window.addEventListener("blur", j), window.addEventListener("resize", j), () => {
|
|
9398
|
+
window.removeEventListener("blur", j), window.removeEventListener("resize", j);
|
|
9390
9399
|
};
|
|
9391
|
-
}, [
|
|
9392
|
-
const [S, A] = sc((
|
|
9393
|
-
const
|
|
9400
|
+
}, [U]);
|
|
9401
|
+
const [S, A] = sc((j) => {
|
|
9402
|
+
const Y = F().filter((se) => !se.disabled), ee = Y.find((se) => se.ref.current === document.activeElement), te = ac(Y, j, ee);
|
|
9394
9403
|
te && setTimeout(() => te.ref.current.focus());
|
|
9395
|
-
}),
|
|
9396
|
-
(
|
|
9404
|
+
}), z = f.useCallback(
|
|
9405
|
+
(j, Y, ee) => {
|
|
9397
9406
|
const te = !K.current && !ee;
|
|
9398
|
-
(w.value !== void 0 && w.value ===
|
|
9407
|
+
(w.value !== void 0 && w.value === Y || te) && (L(j), te && (K.current = !0));
|
|
9399
9408
|
},
|
|
9400
9409
|
[w.value]
|
|
9401
|
-
), I = f.useCallback(() => x == null ? void 0 : x.focus(), [x]),
|
|
9402
|
-
(
|
|
9410
|
+
), I = f.useCallback(() => x == null ? void 0 : x.focus(), [x]), $ = f.useCallback(
|
|
9411
|
+
(j, Y, ee) => {
|
|
9403
9412
|
const te = !K.current && !ee;
|
|
9404
|
-
(w.value !== void 0 && w.value ===
|
|
9413
|
+
(w.value !== void 0 && w.value === Y || te) && M(j);
|
|
9405
9414
|
},
|
|
9406
9415
|
[w.value]
|
|
9407
|
-
),
|
|
9416
|
+
), B = o === "popper" ? ko : ji, J = B === ko ? {
|
|
9408
9417
|
side: i,
|
|
9409
9418
|
sideOffset: c,
|
|
9410
9419
|
align: d,
|
|
@@ -9421,28 +9430,28 @@ var Ie = 10, [Wi, st] = Mt(pt), qh = "SelectContentImpl", Kh = /* @__PURE__ */ H
|
|
|
9421
9430
|
{
|
|
9422
9431
|
scope: n,
|
|
9423
9432
|
content: x,
|
|
9424
|
-
viewport:
|
|
9433
|
+
viewport: N,
|
|
9425
9434
|
onViewportChange: R,
|
|
9426
|
-
itemRefCallback:
|
|
9435
|
+
itemRefCallback: z,
|
|
9427
9436
|
selectedItem: k,
|
|
9428
9437
|
onItemLeave: I,
|
|
9429
|
-
itemTextRefCallback:
|
|
9430
|
-
focusSelectedItem:
|
|
9431
|
-
selectedItemText:
|
|
9438
|
+
itemTextRefCallback: $,
|
|
9439
|
+
focusSelectedItem: D,
|
|
9440
|
+
selectedItemText: W,
|
|
9432
9441
|
position: o,
|
|
9433
|
-
isPositioned:
|
|
9442
|
+
isPositioned: H,
|
|
9434
9443
|
searchRef: S,
|
|
9435
9444
|
children: /* @__PURE__ */ u(ua, { as: Kh, allowPinchZoom: !0, children: /* @__PURE__ */ u(
|
|
9436
9445
|
na,
|
|
9437
9446
|
{
|
|
9438
9447
|
asChild: !0,
|
|
9439
9448
|
trapped: w.open,
|
|
9440
|
-
onMountAutoFocus: (
|
|
9441
|
-
|
|
9449
|
+
onMountAutoFocus: (j) => {
|
|
9450
|
+
j.preventDefault();
|
|
9442
9451
|
},
|
|
9443
|
-
onUnmountAutoFocus: Q(r, (
|
|
9444
|
-
var
|
|
9445
|
-
(
|
|
9452
|
+
onUnmountAutoFocus: Q(r, (j) => {
|
|
9453
|
+
var Y;
|
|
9454
|
+
(Y = w.trigger) == null || Y.focus({ preventScroll: !0 }), j.preventDefault();
|
|
9446
9455
|
}),
|
|
9447
9456
|
children: /* @__PURE__ */ u(
|
|
9448
9457
|
Vo,
|
|
@@ -9451,20 +9460,20 @@ var Ie = 10, [Wi, st] = Mt(pt), qh = "SelectContentImpl", Kh = /* @__PURE__ */ H
|
|
|
9451
9460
|
disableOutsidePointerEvents: !0,
|
|
9452
9461
|
onEscapeKeyDown: s,
|
|
9453
9462
|
onPointerDownOutside: a,
|
|
9454
|
-
onFocusOutside: (
|
|
9463
|
+
onFocusOutside: (j) => j.preventDefault(),
|
|
9455
9464
|
onDismiss: () => w.onOpenChange(!1),
|
|
9456
9465
|
children: /* @__PURE__ */ u(
|
|
9457
|
-
|
|
9466
|
+
B,
|
|
9458
9467
|
{
|
|
9459
9468
|
role: "listbox",
|
|
9460
9469
|
id: w.contentId,
|
|
9461
9470
|
"data-state": w.open ? "open" : "closed",
|
|
9462
9471
|
dir: w.dir,
|
|
9463
|
-
onContextMenu: (
|
|
9472
|
+
onContextMenu: (j) => j.preventDefault(),
|
|
9464
9473
|
...y,
|
|
9465
9474
|
...J,
|
|
9466
|
-
onPlaced: () =>
|
|
9467
|
-
ref:
|
|
9475
|
+
onPlaced: () => O(!0),
|
|
9476
|
+
ref: E,
|
|
9468
9477
|
style: {
|
|
9469
9478
|
// flex layout so we can place the scroll buttons properly
|
|
9470
9479
|
display: "flex",
|
|
@@ -9473,15 +9482,15 @@ var Ie = 10, [Wi, st] = Mt(pt), qh = "SelectContentImpl", Kh = /* @__PURE__ */ H
|
|
|
9473
9482
|
outline: "none",
|
|
9474
9483
|
...y.style
|
|
9475
9484
|
},
|
|
9476
|
-
onKeyDown: Q(y.onKeyDown, (
|
|
9477
|
-
const
|
|
9478
|
-
if (
|
|
9479
|
-
let te =
|
|
9480
|
-
if (["ArrowUp", "End"].includes(
|
|
9481
|
-
const se =
|
|
9485
|
+
onKeyDown: Q(y.onKeyDown, (j) => {
|
|
9486
|
+
const Y = j.ctrlKey || j.altKey || j.metaKey;
|
|
9487
|
+
if (j.key === "Tab" && j.preventDefault(), !Y && j.key.length === 1 && A(j.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(j.key)) {
|
|
9488
|
+
let te = F().filter((se) => !se.disabled).map((se) => se.ref.current);
|
|
9489
|
+
if (["ArrowUp", "End"].includes(j.key) && (te = te.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(j.key)) {
|
|
9490
|
+
const se = j.target, oe = te.indexOf(se);
|
|
9482
9491
|
te = te.slice(oe + 1);
|
|
9483
9492
|
}
|
|
9484
|
-
setTimeout(() =>
|
|
9493
|
+
setTimeout(() => P(te)), j.preventDefault();
|
|
9485
9494
|
}
|
|
9486
9495
|
})
|
|
9487
9496
|
}
|
|
@@ -9496,11 +9505,11 @@ var Ie = 10, [Wi, st] = Mt(pt), qh = "SelectContentImpl", Kh = /* @__PURE__ */ H
|
|
|
9496
9505
|
);
|
|
9497
9506
|
Ui.displayName = qh;
|
|
9498
9507
|
var Xh = "SelectItemAlignedPosition", ji = f.forwardRef((e, t) => {
|
|
9499
|
-
const { __scopeSelect: n, onPlaced: o, ...r } = e, s = rt(pt, n), a = st(pt, n), [i, c] = f.useState(null), [d, p] = f.useState(null), l = ie(t, (
|
|
9508
|
+
const { __scopeSelect: n, onPlaced: o, ...r } = e, s = rt(pt, n), a = st(pt, n), [i, c] = f.useState(null), [d, p] = f.useState(null), l = ie(t, (E) => p(E)), m = Hn(n), h = f.useRef(!1), b = f.useRef(!0), { viewport: g, selectedItem: v, selectedItemText: y, focusSelectedItem: w } = a, x = f.useCallback(() => {
|
|
9500
9509
|
if (s.trigger && s.valueNode && i && d && g && v && y) {
|
|
9501
|
-
const
|
|
9510
|
+
const E = s.trigger.getBoundingClientRect(), k = d.getBoundingClientRect(), L = s.valueNode.getBoundingClientRect(), W = y.getBoundingClientRect();
|
|
9502
9511
|
if (s.dir !== "rtl") {
|
|
9503
|
-
const se =
|
|
9512
|
+
const se = W.left - k.left, oe = L.left - se, ue = E.left - oe, fe = E.width + ue, at = Math.max(fe, k.width), Ke = window.innerWidth - Ie, Te = Co(oe, [
|
|
9504
9513
|
Ie,
|
|
9505
9514
|
// Prevents the content from going off the starting edge of the
|
|
9506
9515
|
// viewport. It may still go off the ending edge, but this can be
|
|
@@ -9511,33 +9520,33 @@ var Xh = "SelectItemAlignedPosition", ji = f.forwardRef((e, t) => {
|
|
|
9511
9520
|
]);
|
|
9512
9521
|
i.style.minWidth = fe + "px", i.style.left = Te + "px";
|
|
9513
9522
|
} else {
|
|
9514
|
-
const se = k.right -
|
|
9523
|
+
const se = k.right - W.right, oe = window.innerWidth - L.right - se, ue = window.innerWidth - E.right - oe, fe = E.width + ue, at = Math.max(fe, k.width), Ke = window.innerWidth - Ie, Te = Co(oe, [
|
|
9515
9524
|
Ie,
|
|
9516
9525
|
Math.max(Ie, Ke - at)
|
|
9517
9526
|
]);
|
|
9518
9527
|
i.style.minWidth = fe + "px", i.style.right = Te + "px";
|
|
9519
9528
|
}
|
|
9520
|
-
const
|
|
9521
|
-
if (
|
|
9522
|
-
const se =
|
|
9529
|
+
const M = m(), F = window.innerHeight - Ie * 2, H = g.scrollHeight, O = window.getComputedStyle(d), K = parseInt(O.borderTopWidth, 10), P = parseInt(O.paddingTop, 10), D = parseInt(O.borderBottomWidth, 10), U = parseInt(O.paddingBottom, 10), T = K + P + H + U + D, S = Math.min(v.offsetHeight * 5, T), A = window.getComputedStyle(g), z = parseInt(A.paddingTop, 10), I = parseInt(A.paddingBottom, 10), $ = E.top + E.height / 2 - Ie, B = F - $, J = v.offsetHeight / 2, j = v.offsetTop + J, Y = K + P + j, ee = T - Y;
|
|
9530
|
+
if (Y <= $) {
|
|
9531
|
+
const se = M.length > 0 && v === M[M.length - 1].ref.current;
|
|
9523
9532
|
i.style.bottom = "0px";
|
|
9524
9533
|
const oe = d.clientHeight - g.offsetTop - g.offsetHeight, ue = Math.max(
|
|
9525
|
-
|
|
9534
|
+
B,
|
|
9526
9535
|
J + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
|
9527
|
-
(se ? I : 0) + oe +
|
|
9528
|
-
), fe =
|
|
9536
|
+
(se ? I : 0) + oe + D
|
|
9537
|
+
), fe = Y + ue;
|
|
9529
9538
|
i.style.height = fe + "px";
|
|
9530
9539
|
} else {
|
|
9531
|
-
const se =
|
|
9540
|
+
const se = M.length > 0 && v === M[0].ref.current;
|
|
9532
9541
|
i.style.top = "0px";
|
|
9533
9542
|
const ue = Math.max(
|
|
9534
|
-
|
|
9543
|
+
$,
|
|
9535
9544
|
K + g.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
9536
|
-
(se ?
|
|
9545
|
+
(se ? z : 0) + J
|
|
9537
9546
|
) + ee;
|
|
9538
|
-
i.style.height = ue + "px", g.scrollTop =
|
|
9547
|
+
i.style.height = ue + "px", g.scrollTop = Y - $ + g.offsetTop;
|
|
9539
9548
|
}
|
|
9540
|
-
i.style.margin = `${Ie}px 0`, i.style.minHeight = S + "px", i.style.maxHeight =
|
|
9549
|
+
i.style.margin = `${Ie}px 0`, i.style.minHeight = S + "px", i.style.maxHeight = F + "px", o == null || o(), requestAnimationFrame(() => h.current = !0);
|
|
9541
9550
|
}
|
|
9542
9551
|
}, [
|
|
9543
9552
|
m,
|
|
@@ -9552,13 +9561,13 @@ var Xh = "SelectItemAlignedPosition", ji = f.forwardRef((e, t) => {
|
|
|
9552
9561
|
o
|
|
9553
9562
|
]);
|
|
9554
9563
|
de(() => x(), [x]);
|
|
9555
|
-
const [C,
|
|
9564
|
+
const [C, N] = f.useState();
|
|
9556
9565
|
de(() => {
|
|
9557
|
-
d &&
|
|
9566
|
+
d && N(window.getComputedStyle(d).zIndex);
|
|
9558
9567
|
}, [d]);
|
|
9559
9568
|
const R = f.useCallback(
|
|
9560
|
-
(
|
|
9561
|
-
|
|
9569
|
+
(E) => {
|
|
9570
|
+
E && b.current === !0 && (x(), w == null || w(), b.current = !1);
|
|
9562
9571
|
},
|
|
9563
9572
|
[x, w]
|
|
9564
9573
|
);
|
|
@@ -9632,7 +9641,7 @@ ko.displayName = Zh;
|
|
|
9632
9641
|
var [Jh, ar] = Mt(pt, {}), Eo = "SelectViewport", Gi = f.forwardRef(
|
|
9633
9642
|
(e, t) => {
|
|
9634
9643
|
const { __scopeSelect: n, nonce: o, ...r } = e, s = st(Eo, n), a = ar(Eo, n), i = ie(t, s.onViewportChange), c = f.useRef(0);
|
|
9635
|
-
return /* @__PURE__ */
|
|
9644
|
+
return /* @__PURE__ */ q(_e, { children: [
|
|
9636
9645
|
/* @__PURE__ */ u(
|
|
9637
9646
|
"style",
|
|
9638
9647
|
{
|
|
@@ -9794,7 +9803,7 @@ var Dt = "SelectItemText", Zi = f.forwardRef(
|
|
|
9794
9803
|
() => /* @__PURE__ */ u("option", { value: c.value, disabled: c.disabled, children: h }, c.value),
|
|
9795
9804
|
[c.disabled, c.value, h]
|
|
9796
9805
|
), { onNativeOptionAdd: g, onNativeOptionRemove: v } = d;
|
|
9797
|
-
return de(() => (g(b), () => v(b)), [g, v, b]), /* @__PURE__ */
|
|
9806
|
+
return de(() => (g(b), () => v(b)), [g, v, b]), /* @__PURE__ */ q(_e, { children: [
|
|
9798
9807
|
/* @__PURE__ */ u(Z.span, { id: c.textId, ...s, ref: m }),
|
|
9799
9808
|
c.isSelected && a.valueNode && !a.valueNodeHasChildren ? Cn.createPortal(s.children, a.valueNode) : null
|
|
9800
9809
|
] });
|
|
@@ -9927,7 +9936,7 @@ function rc(e) {
|
|
|
9927
9936
|
return e === "" || e === void 0;
|
|
9928
9937
|
}
|
|
9929
9938
|
function sc(e) {
|
|
9930
|
-
const t =
|
|
9939
|
+
const t = be(e), n = f.useRef(""), o = f.useRef(0), r = f.useCallback(
|
|
9931
9940
|
(a) => {
|
|
9932
9941
|
const i = n.current + a;
|
|
9933
9942
|
t(i), (function c(d) {
|
|
@@ -9987,7 +9996,7 @@ var kg = ic, Wn = "Switch", [Eg] = xe(Wn), [Ng, Rg] = Eg(Wn), cc = f.forwardRef(
|
|
|
9987
9996
|
onChange: d,
|
|
9988
9997
|
caller: Wn
|
|
9989
9998
|
});
|
|
9990
|
-
return /* @__PURE__ */
|
|
9999
|
+
return /* @__PURE__ */ q(Ng, { scope: n, checked: y, disabled: i, children: [
|
|
9991
10000
|
/* @__PURE__ */ u(
|
|
9992
10001
|
Z.button,
|
|
9993
10002
|
{
|
|
@@ -10276,13 +10285,13 @@ var Wt = "Tooltip", [Fg, qt] = jn(Wt), Ec = (e) => {
|
|
|
10276
10285
|
} = e, c = cr(Wt, e.__scopeTooltip), d = Gn(t), [p, l] = f.useState(null), m = ht(), h = f.useRef(0), b = a ?? c.disableHoverableContent, g = i ?? c.delayDuration, v = f.useRef(!1), [y, w] = je({
|
|
10277
10286
|
prop: o,
|
|
10278
10287
|
defaultProp: r ?? !1,
|
|
10279
|
-
onChange: (
|
|
10280
|
-
|
|
10288
|
+
onChange: (E) => {
|
|
10289
|
+
E ? (c.onOpen(), document.dispatchEvent(new CustomEvent(Po))) : c.onClose(), s == null || s(E);
|
|
10281
10290
|
},
|
|
10282
10291
|
caller: Wt
|
|
10283
10292
|
}), x = f.useMemo(() => y ? v.current ? "delayed-open" : "instant-open" : "closed", [y]), C = f.useCallback(() => {
|
|
10284
10293
|
window.clearTimeout(h.current), h.current = 0, v.current = !1, w(!0);
|
|
10285
|
-
}, [w]),
|
|
10294
|
+
}, [w]), N = f.useCallback(() => {
|
|
10286
10295
|
window.clearTimeout(h.current), h.current = 0, w(!1);
|
|
10287
10296
|
}, [w]), R = f.useCallback(() => {
|
|
10288
10297
|
window.clearTimeout(h.current), h.current = window.setTimeout(() => {
|
|
@@ -10304,10 +10313,10 @@ var Wt = "Tooltip", [Fg, qt] = jn(Wt), Ec = (e) => {
|
|
|
10304
10313
|
c.isOpenDelayedRef.current ? R() : C();
|
|
10305
10314
|
}, [c.isOpenDelayedRef, R, C]),
|
|
10306
10315
|
onTriggerLeave: f.useCallback(() => {
|
|
10307
|
-
b ?
|
|
10308
|
-
}, [
|
|
10316
|
+
b ? N() : (window.clearTimeout(h.current), h.current = 0);
|
|
10317
|
+
}, [N, b]),
|
|
10309
10318
|
onOpen: C,
|
|
10310
|
-
onClose:
|
|
10319
|
+
onClose: N,
|
|
10311
10320
|
disableHoverableContent: b,
|
|
10312
10321
|
children: n
|
|
10313
10322
|
}
|
|
@@ -10360,8 +10369,8 @@ var At = "TooltipContent", Tc = f.forwardRef(
|
|
|
10360
10369
|
i(null), l(!1);
|
|
10361
10370
|
}, [l]), h = f.useCallback(
|
|
10362
10371
|
(b, g) => {
|
|
10363
|
-
const v = b.currentTarget, y = { x: b.clientX, y: b.clientY }, w = Gg(y, v.getBoundingClientRect()), x = Yg(y, w), C = qg(g.getBoundingClientRect()),
|
|
10364
|
-
i(
|
|
10372
|
+
const v = b.currentTarget, y = { x: b.clientX, y: b.clientY }, w = Gg(y, v.getBoundingClientRect()), x = Yg(y, w), C = qg(g.getBoundingClientRect()), N = Xg([...x, ...C]);
|
|
10373
|
+
i(N), l(!0);
|
|
10365
10374
|
},
|
|
10366
10375
|
[l]
|
|
10367
10376
|
);
|
|
@@ -10408,7 +10417,7 @@ var At = "TooltipContent", Tc = f.forwardRef(
|
|
|
10408
10417
|
onPointerDownOutside: a,
|
|
10409
10418
|
onFocusOutside: (l) => l.preventDefault(),
|
|
10410
10419
|
onDismiss: p,
|
|
10411
|
-
children: /* @__PURE__ */
|
|
10420
|
+
children: /* @__PURE__ */ q(
|
|
10412
10421
|
Xa,
|
|
10413
10422
|
{
|
|
10414
10423
|
"data-state": c.stateAttribute,
|
|
@@ -10673,7 +10682,7 @@ function fv({
|
|
|
10673
10682
|
children: n,
|
|
10674
10683
|
...o
|
|
10675
10684
|
}) {
|
|
10676
|
-
return /* @__PURE__ */
|
|
10685
|
+
return /* @__PURE__ */ q(
|
|
10677
10686
|
dg,
|
|
10678
10687
|
{
|
|
10679
10688
|
"data-slot": "select-trigger",
|
|
@@ -10697,7 +10706,7 @@ function pv({
|
|
|
10697
10706
|
align: o = "center",
|
|
10698
10707
|
...r
|
|
10699
10708
|
}) {
|
|
10700
|
-
return /* @__PURE__ */ u(pg, { children: /* @__PURE__ */
|
|
10709
|
+
return /* @__PURE__ */ u(pg, { children: /* @__PURE__ */ q(
|
|
10701
10710
|
mg,
|
|
10702
10711
|
{
|
|
10703
10712
|
"data-slot": "select-content",
|
|
@@ -10731,7 +10740,7 @@ function mv({
|
|
|
10731
10740
|
children: t,
|
|
10732
10741
|
...n
|
|
10733
10742
|
}) {
|
|
10734
|
-
return /* @__PURE__ */
|
|
10743
|
+
return /* @__PURE__ */ q(
|
|
10735
10744
|
gg,
|
|
10736
10745
|
{
|
|
10737
10746
|
"data-slot": "select-item",
|
|
@@ -10997,7 +11006,7 @@ function Tv({
|
|
|
10997
11006
|
children: t,
|
|
10998
11007
|
...n
|
|
10999
11008
|
}) {
|
|
11000
|
-
return /* @__PURE__ */
|
|
11009
|
+
return /* @__PURE__ */ q(
|
|
11001
11010
|
zh,
|
|
11002
11011
|
{
|
|
11003
11012
|
"data-slot": "scroll-area",
|
|
@@ -11131,7 +11140,7 @@ function Ov({
|
|
|
11131
11140
|
children: n,
|
|
11132
11141
|
...o
|
|
11133
11142
|
}) {
|
|
11134
|
-
return /* @__PURE__ */ u(tv, { children: /* @__PURE__ */
|
|
11143
|
+
return /* @__PURE__ */ u(tv, { children: /* @__PURE__ */ q(
|
|
11135
11144
|
nv,
|
|
11136
11145
|
{
|
|
11137
11146
|
"data-slot": "tooltip-content",
|
|
@@ -11339,7 +11348,7 @@ const Ot = (e) => e == null ? void 0 : e === !0 || e === "true", Mc = {
|
|
|
11339
11348
|
onChange: t,
|
|
11340
11349
|
...n
|
|
11341
11350
|
}
|
|
11342
|
-
), Xv = ({ children: e, className: t, value: n, defaultValue: o, onChange: r, placeholder: s, disabled: a }) => /* @__PURE__ */
|
|
11351
|
+
), Xv = ({ children: e, className: t, value: n, defaultValue: o, onChange: r, placeholder: s, disabled: a }) => /* @__PURE__ */ q(
|
|
11343
11352
|
dv,
|
|
11344
11353
|
{
|
|
11345
11354
|
value: n,
|
|
@@ -11419,7 +11428,7 @@ const Ot = (e) => e == null ? void 0 : e === !0 || e === "true", Mc = {
|
|
|
11419
11428
|
return /* @__PURE__ */ u(Cv, { value: o, onValueChange: r, className: n, children: e });
|
|
11420
11429
|
}, sb = ({ children: e, className: t }) => /* @__PURE__ */ u(Ev, { className: t, children: e }), ab = ({ children: e, value: t, className: n }) => /* @__PURE__ */ u(Nv, { className: n, value: t, children: e }), ib = ({ children: e, value: t, className: n }) => /* @__PURE__ */ u(Rv, { className: n, value: t, children: e }), cb = ({ children: e, className: t }) => /* @__PURE__ */ u(Tv, { className: t, children: e }), lb = ({ src: e, alt: t, className: n }) => {
|
|
11421
11430
|
var o;
|
|
11422
|
-
return /* @__PURE__ */
|
|
11431
|
+
return /* @__PURE__ */ q(Io, { className: n, children: [
|
|
11423
11432
|
/* @__PURE__ */ u(_o, { src: e, alt: t }),
|
|
11424
11433
|
/* @__PURE__ */ u(Mo, { children: ((o = t == null ? void 0 : t.charAt(0)) == null ? void 0 : o.toUpperCase()) || "?" })
|
|
11425
11434
|
] });
|
|
@@ -11432,7 +11441,7 @@ const Ot = (e) => e == null ? void 0 : e === !0 || e === "true", Mc = {
|
|
|
11432
11441
|
height: t
|
|
11433
11442
|
}
|
|
11434
11443
|
}
|
|
11435
|
-
), ub = ({ children: e, content: t, className: n }) => /* @__PURE__ */ u(Iv, { children: /* @__PURE__ */
|
|
11444
|
+
), ub = ({ children: e, content: t, className: n }) => /* @__PURE__ */ u(Iv, { children: /* @__PURE__ */ q(_v, { children: [
|
|
11436
11445
|
/* @__PURE__ */ u(Mv, { asChild: !0, children: /* @__PURE__ */ u("span", { className: n, children: e }) }),
|
|
11437
11446
|
/* @__PURE__ */ u(Ov, { children: /* @__PURE__ */ u("p", { children: String(t) }) })
|
|
11438
11447
|
] }) }), fb = ({ value: e, className: t }) => /* @__PURE__ */ u(
|
|
@@ -11446,7 +11455,7 @@ const Ot = (e) => e == null ? void 0 : e === !0 || e === "true", Mc = {
|
|
|
11446
11455
|
destructive: Ss
|
|
11447
11456
|
}, mb = ({ children: e, variant: t, title: n, className: o }) => {
|
|
11448
11457
|
const r = t, s = pb[r || "default"] || kn;
|
|
11449
|
-
return /* @__PURE__ */
|
|
11458
|
+
return /* @__PURE__ */ q(zv, { variant: r, className: o, children: [
|
|
11450
11459
|
/* @__PURE__ */ u(s, { className: "size-4" }),
|
|
11451
11460
|
n ? /* @__PURE__ */ u($v, { children: String(n) }) : null,
|
|
11452
11461
|
e ? /* @__PURE__ */ u(Fv, { children: e }) : null
|
|
@@ -11458,7 +11467,7 @@ const Ot = (e) => e == null ? void 0 : e === !0 || e === "true", Mc = {
|
|
|
11458
11467
|
className: n,
|
|
11459
11468
|
children: e
|
|
11460
11469
|
}
|
|
11461
|
-
), gb = ({ children: e, className: t }) => /* @__PURE__ */
|
|
11470
|
+
), gb = ({ children: e, className: t }) => /* @__PURE__ */ q(Hv, { className: X("flex items-center gap-1 cursor-pointer text-sm font-medium [&[data-state=open]>svg]:rotate-90", t), children: [
|
|
11462
11471
|
/* @__PURE__ */ u(Oo, { className: "size-4 shrink-0 transition-transform duration-200" }),
|
|
11463
11472
|
e
|
|
11464
11473
|
] }), vb = ({ children: e, className: t }) => /* @__PURE__ */ u(Vv, { className: t, children: e }), bb = ({ children: e, className: t, tone: n }) => /* @__PURE__ */ u("p", { className: X("text-sm", Oc[n] ?? "", t), children: e }), yb = ({ children: e, className: t, level: n }) => {
|
|
@@ -11479,12 +11488,12 @@ const Ot = (e) => e == null ? void 0 : e === !0 || e === "true", Mc = {
|
|
|
11479
11488
|
className: t,
|
|
11480
11489
|
children: e
|
|
11481
11490
|
}
|
|
11482
|
-
), Cb = ({ title: e, children: t, className: n }) => /* @__PURE__ */
|
|
11491
|
+
), Cb = ({ title: e, children: t, className: n }) => /* @__PURE__ */ q($t, { className: X("overflow-hidden p-0 gap-0 shadow-sm", n), children: [
|
|
11483
11492
|
e ? /* @__PURE__ */ u(Ft, { className: "px-6 py-3", children: /* @__PURE__ */ u("h3", { className: "text-xs font-semibold tracking-wider text-muted-foreground", children: String(e) }) }) : null,
|
|
11484
11493
|
/* @__PURE__ */ u("div", { className: "flex flex-col gap-0 divide-y divide-border", children: t })
|
|
11485
11494
|
] }), kb = ({ icon: e, label: t, description: n, onClick: o, className: r }) => {
|
|
11486
11495
|
const s = e, a = "size-5", i = s ? Mc[s] : null;
|
|
11487
|
-
return /* @__PURE__ */
|
|
11496
|
+
return /* @__PURE__ */ q(
|
|
11488
11497
|
"button",
|
|
11489
11498
|
{
|
|
11490
11499
|
type: "button",
|
|
@@ -11492,7 +11501,7 @@ const Ot = (e) => e == null ? void 0 : e === !0 || e === "true", Mc = {
|
|
|
11492
11501
|
onClick: o,
|
|
11493
11502
|
children: [
|
|
11494
11503
|
i && /* @__PURE__ */ u(i, { className: `${a} shrink-0 text-muted-foreground` }),
|
|
11495
|
-
/* @__PURE__ */
|
|
11504
|
+
/* @__PURE__ */ q("div", { className: "flex flex-col gap-0 flex-1 min-w-0 items-start", children: [
|
|
11496
11505
|
t ? /* @__PURE__ */ u("p", { className: "font-medium text-sm text-foreground", children: String(t) }) : null,
|
|
11497
11506
|
n ? /* @__PURE__ */ u("p", { className: "mt-0.5 text-xs text-muted-foreground", children: String(n) }) : null
|
|
11498
11507
|
] }),
|
|
@@ -11549,13 +11558,14 @@ const Ot = (e) => e == null ? void 0 : e === !0 || e === "true", Mc = {
|
|
|
11549
11558
|
if (!o.ok)
|
|
11550
11559
|
throw new Error(r.error || "API request failed");
|
|
11551
11560
|
return r.data;
|
|
11552
|
-
}, Rb = ({ className: e }) => /* @__PURE__ */
|
|
11561
|
+
}, Rb = ({ className: e }) => /* @__PURE__ */ q("svg", { width: "100%", height: "100%", viewBox: "0 0 190 190", version: "1.1", className: e, children: [
|
|
11553
11562
|
/* @__PURE__ */ u("g", { transform: "matrix(1,0,0,1,-160.365,27.97)", children: /* @__PURE__ */ u("path", { d: "M344.73,67.03C344.73,30.01 314.72,0 277.7,0C240.68,0 210.67,30.01 210.67,67.03L255.36,67.03C255.36,54.69 265.36,44.69 277.7,44.69C290.04,44.69 300.05,54.69 300.05,67.03L344.73,67.03Z", fill: "rgb(15,13,25)" }) }),
|
|
11554
11563
|
/* @__PURE__ */ u("g", { transform: "matrix(1,0,0,1,-160.365,27.97)", children: /* @__PURE__ */ u("path", { d: "M300.04,67.03C300.04,54.69 290.05,44.69 277.7,44.69C265.35,44.69 255.36,54.69 255.36,67.03L300.04,67.03Z", fill: "rgb(232,218,234)" }) }),
|
|
11555
11564
|
/* @__PURE__ */ u("g", { transform: "matrix(1,0,0,1,-160.365,27.97)", children: /* @__PURE__ */ u("path", { d: "M166,67.03C166,104.05 196.01,134.06 233.03,134.06C270.05,134.06 300.06,104.05 300.06,67.03L255.37,67.03C255.37,79.37 245.37,89.37 233.03,89.37C220.69,89.37 210.69,79.37 210.69,67.03L166,67.03Z", fill: "rgb(15,13,25)" }) }),
|
|
11556
11565
|
/* @__PURE__ */ u("g", { transform: "matrix(1,0,0,1,-160.365,27.97)", children: /* @__PURE__ */ u("path", { d: "M210.68,67.03C210.68,79.37 220.68,89.37 233.03,89.37C245.38,89.37 255.37,79.37 255.37,67.03L210.68,67.03Z", fill: "rgb(252,248,161)" }) })
|
|
11557
11566
|
] }), ds = "stackable-dev-badge-styles", Tb = () => {
|
|
11558
|
-
if (typeof document > "u" || document.getElementById(ds))
|
|
11567
|
+
if (typeof document > "u" || document.getElementById(ds))
|
|
11568
|
+
return;
|
|
11559
11569
|
const e = document.createElement("style");
|
|
11560
11570
|
e.id = ds, e.textContent = `
|
|
11561
11571
|
@keyframes stackable-icon-wiggle {
|
|
@@ -11573,7 +11583,8 @@ const Ot = (e) => e == null ? void 0 : e === !0 || e === "true", Mc = {
|
|
|
11573
11583
|
if (ce(() => {
|
|
11574
11584
|
Tb();
|
|
11575
11585
|
}, []), ce(() => {
|
|
11576
|
-
if (!m)
|
|
11586
|
+
if (!m)
|
|
11587
|
+
return;
|
|
11577
11588
|
const b = () => {
|
|
11578
11589
|
p(!0), setTimeout(() => p(!1), 600);
|
|
11579
11590
|
};
|
|
@@ -11581,7 +11592,8 @@ const Ot = (e) => e == null ? void 0 : e === !0 || e === "true", Mc = {
|
|
|
11581
11592
|
const g = setInterval(b, 4e3);
|
|
11582
11593
|
return () => clearInterval(g);
|
|
11583
11594
|
}, [m]), ce(() => {
|
|
11584
|
-
if (typeof window > "u")
|
|
11595
|
+
if (typeof window > "u")
|
|
11596
|
+
return;
|
|
11585
11597
|
const b = () => {
|
|
11586
11598
|
const v = bs(window.location.search);
|
|
11587
11599
|
r(v);
|
|
@@ -11592,11 +11604,12 @@ const Ot = (e) => e == null ? void 0 : e === !0 || e === "true", Mc = {
|
|
|
11592
11604
|
}, []), o.length === 0)
|
|
11593
11605
|
return null;
|
|
11594
11606
|
const h = (b) => {
|
|
11595
|
-
if (b.stopPropagation(), typeof window > "u")
|
|
11607
|
+
if (b.stopPropagation(), typeof window > "u")
|
|
11608
|
+
return;
|
|
11596
11609
|
const g = new URL(window.location.href);
|
|
11597
11610
|
g.searchParams.delete("_stackable_dev"), g.searchParams.delete("_stackable_staging"), window.location.href = g.toString();
|
|
11598
11611
|
};
|
|
11599
|
-
return /* @__PURE__ */
|
|
11612
|
+
return /* @__PURE__ */ q(
|
|
11600
11613
|
"div",
|
|
11601
11614
|
{
|
|
11602
11615
|
className: e,
|
|
@@ -11630,7 +11643,7 @@ const Ot = (e) => e == null ? void 0 : e === !0 || e === "true", Mc = {
|
|
|
11630
11643
|
},
|
|
11631
11644
|
children: o.map((b, g) => {
|
|
11632
11645
|
var v;
|
|
11633
|
-
return /* @__PURE__ */
|
|
11646
|
+
return /* @__PURE__ */ q(
|
|
11634
11647
|
"div",
|
|
11635
11648
|
{
|
|
11636
11649
|
style: {
|
|
@@ -11638,7 +11651,7 @@ const Ot = (e) => e == null ? void 0 : e === !0 || e === "true", Mc = {
|
|
|
11638
11651
|
borderBottom: g < o.length - 1 ? "1px solid #f3f4f6" : "none"
|
|
11639
11652
|
},
|
|
11640
11653
|
children: [
|
|
11641
|
-
/* @__PURE__ */
|
|
11654
|
+
/* @__PURE__ */ q(
|
|
11642
11655
|
"div",
|
|
11643
11656
|
{
|
|
11644
11657
|
style: {
|
|
@@ -11681,7 +11694,7 @@ const Ot = (e) => e == null ? void 0 : e === !0 || e === "true", Mc = {
|
|
|
11681
11694
|
]
|
|
11682
11695
|
}
|
|
11683
11696
|
),
|
|
11684
|
-
/* @__PURE__ */
|
|
11697
|
+
/* @__PURE__ */ q(
|
|
11685
11698
|
"div",
|
|
11686
11699
|
{
|
|
11687
11700
|
style: {
|
|
@@ -11700,7 +11713,7 @@ const Ot = (e) => e == null ? void 0 : e === !0 || e === "true", Mc = {
|
|
|
11700
11713
|
]
|
|
11701
11714
|
}
|
|
11702
11715
|
),
|
|
11703
|
-
n.get(b.extensionId) && /* @__PURE__ */
|
|
11716
|
+
n.get(b.extensionId) && /* @__PURE__ */ q(
|
|
11704
11717
|
"div",
|
|
11705
11718
|
{
|
|
11706
11719
|
style: {
|
|
@@ -11722,7 +11735,7 @@ const Ot = (e) => e == null ? void 0 : e === !0 || e === "true", Mc = {
|
|
|
11722
11735
|
})
|
|
11723
11736
|
}
|
|
11724
11737
|
),
|
|
11725
|
-
/* @__PURE__ */
|
|
11738
|
+
/* @__PURE__ */ q(
|
|
11726
11739
|
"div",
|
|
11727
11740
|
{
|
|
11728
11741
|
onClick: () => a(!s),
|
|
@@ -11754,7 +11767,7 @@ const Ot = (e) => e == null ? void 0 : e === !0 || e === "true", Mc = {
|
|
|
11754
11767
|
}
|
|
11755
11768
|
),
|
|
11756
11769
|
/* @__PURE__ */ u("span", { children: Pb(o) }),
|
|
11757
|
-
/* @__PURE__ */
|
|
11770
|
+
/* @__PURE__ */ q("span", { style: { fontSize: "12px", opacity: 0.75 }, children: [
|
|
11758
11771
|
"(",
|
|
11759
11772
|
o.length,
|
|
11760
11773
|
" extension",
|
|
@@ -11830,18 +11843,18 @@ const Ot = (e) => e == null ? void 0 : e === !0 || e === "true", Mc = {
|
|
|
11830
11843
|
customerEmail: a,
|
|
11831
11844
|
customerName: i
|
|
11832
11845
|
}) => {
|
|
11833
|
-
const [c, d] = le([]), [p, l] = le([]), [m, h] = le(/* @__PURE__ */ new Map()), [b, g] = le(/* @__PURE__ */ new Map()), [v, y] = le(!1), [w, x] = le({ authenticated: !1, user: null }), [C,
|
|
11846
|
+
const [c, d] = le([]), [p, l] = le([]), [m, h] = le(/* @__PURE__ */ new Map()), [b, g] = le(/* @__PURE__ */ new Map()), [v, y] = le(!1), [w, x] = le({ authenticated: !1, user: null }), [C, N] = le(void 0);
|
|
11834
11847
|
ce(() => {
|
|
11835
11848
|
window.stackable || (window.stackable = {
|
|
11836
11849
|
emit: (T, S = {}) => {
|
|
11837
|
-
const [A, ...
|
|
11850
|
+
const [A, ...z] = T.split(":"), I = z.join(":");
|
|
11838
11851
|
window.dispatchEvent(new CustomEvent(`stackable:${A}`, {
|
|
11839
11852
|
detail: { eventName: I, data: S }
|
|
11840
11853
|
}));
|
|
11841
11854
|
}
|
|
11842
11855
|
});
|
|
11843
11856
|
}, []);
|
|
11844
|
-
const R = Me(null),
|
|
11857
|
+
const R = Me(null), E = Me(/* @__PURE__ */ new Set()), k = Bt(() => c.filter((T) => T.manifest.permissions.includes("extend:identity")).map((T) => T.id), [c]);
|
|
11845
11858
|
ce(() => {
|
|
11846
11859
|
(async () => {
|
|
11847
11860
|
const S = e;
|
|
@@ -11859,8 +11872,8 @@ const Ot = (e) => e == null ? void 0 : e === !0 || e === "true", Mc = {
|
|
|
11859
11872
|
console.warn(`[ExtensionSetup] Instance not found or failed to load: ${S}`), d([]), y(!0);
|
|
11860
11873
|
return;
|
|
11861
11874
|
}
|
|
11862
|
-
const
|
|
11863
|
-
d(
|
|
11875
|
+
const z = await A.json(), I = bs(typeof window < "u" ? window.location.search : ""), $ = await jl(z, I), { tokens: B, errors: J } = await Mb($, n, o, I);
|
|
11876
|
+
d($), l(I), h(new Map(B)), g(J);
|
|
11864
11877
|
} catch (A) {
|
|
11865
11878
|
console.error("Failed to load extensions:", A);
|
|
11866
11879
|
} finally {
|
|
@@ -11873,27 +11886,27 @@ const Ot = (e) => e == null ? void 0 : e === !0 || e === "true", Mc = {
|
|
|
11873
11886
|
const S = setInterval(async () => {
|
|
11874
11887
|
const A = [];
|
|
11875
11888
|
await Promise.all(
|
|
11876
|
-
c.filter((
|
|
11877
|
-
const I = p.find((
|
|
11889
|
+
c.filter((z) => z.manifest.permissions.includes("data:fetch")).map(async (z) => {
|
|
11890
|
+
const I = p.find((Y) => Y.extensionId === z.id), $ = I == null ? void 0 : I.token, B = I == null ? void 0 : I.mode, J = zt(n, "/proxy-token"), j = await fetch(J, {
|
|
11878
11891
|
method: "POST",
|
|
11879
11892
|
headers: { "Content-Type": "application/json" },
|
|
11880
11893
|
body: JSON.stringify({
|
|
11881
11894
|
appId: o,
|
|
11882
|
-
extensionId:
|
|
11883
|
-
|
|
11884
|
-
|
|
11895
|
+
extensionId: z.id,
|
|
11896
|
+
...B && { mode: B },
|
|
11897
|
+
...$ && { devSessionToken: $ }
|
|
11885
11898
|
})
|
|
11886
11899
|
});
|
|
11887
|
-
if (
|
|
11888
|
-
const { token:
|
|
11889
|
-
A.push([
|
|
11900
|
+
if (j.ok) {
|
|
11901
|
+
const { token: Y, encryptionKey: ee } = await j.json();
|
|
11902
|
+
A.push([z.id, { token: Y, encryptionKey: ee }]);
|
|
11890
11903
|
} else
|
|
11891
|
-
console.warn(`[embeddables] Proxy token refresh failed for extension ${
|
|
11904
|
+
console.warn(`[embeddables] Proxy token refresh failed for extension ${z.id} (${j.status}) — using stale token`);
|
|
11892
11905
|
})
|
|
11893
|
-
), A.length > 0 && h((
|
|
11894
|
-
const I = new Map(
|
|
11895
|
-
for (const [
|
|
11896
|
-
I.set(
|
|
11906
|
+
), A.length > 0 && h((z) => {
|
|
11907
|
+
const I = new Map(z);
|
|
11908
|
+
for (const [$, B] of A)
|
|
11909
|
+
I.set($, B);
|
|
11897
11910
|
return I;
|
|
11898
11911
|
});
|
|
11899
11912
|
}, 3300 * 1e3);
|
|
@@ -11905,78 +11918,78 @@ const Ot = (e) => e == null ? void 0 : e === !0 || e === "true", Mc = {
|
|
|
11905
11918
|
const A = S.data;
|
|
11906
11919
|
if ((A == null ? void 0 : A.type) !== "extension-ready")
|
|
11907
11920
|
return;
|
|
11908
|
-
const
|
|
11921
|
+
const z = A.extensionId, I = c.find((J) => J.id === z);
|
|
11909
11922
|
if (!(I != null && I.bundleUrl))
|
|
11910
11923
|
return;
|
|
11911
|
-
const
|
|
11912
|
-
if (Vl(I.bundleUrl) && (
|
|
11924
|
+
const $ = p.find((J) => J.extensionId === z);
|
|
11925
|
+
if (Vl(I.bundleUrl) && ($ == null ? void 0 : $.mode) !== "staging")
|
|
11913
11926
|
return;
|
|
11914
|
-
const
|
|
11915
|
-
|
|
11927
|
+
const B = m.get(z);
|
|
11928
|
+
B && $e(z, { type: "extension-encryption-key", encryptionKey: B.encryptionKey });
|
|
11916
11929
|
};
|
|
11917
11930
|
return window.addEventListener("message", T), () => window.removeEventListener("message", T);
|
|
11918
11931
|
}, [c, p, m]);
|
|
11919
|
-
const
|
|
11932
|
+
const L = ve((T, S) => {
|
|
11920
11933
|
const A = Ct();
|
|
11921
|
-
for (const [
|
|
11934
|
+
for (const [z, I] of A) {
|
|
11922
11935
|
if (!I.manifest.permissions.includes("events:identity"))
|
|
11923
11936
|
continue;
|
|
11924
|
-
const
|
|
11925
|
-
|
|
11937
|
+
const $ = I.manifest.events ?? [];
|
|
11938
|
+
!$.includes("identity") && !$.includes(`identity:${T}`) || $e(z, {
|
|
11926
11939
|
type: "extension-event",
|
|
11927
11940
|
eventType: "identity",
|
|
11928
11941
|
payload: { eventName: T, data: { state: S, timestamp: Kn((/* @__PURE__ */ new Date()).toISOString()) } }
|
|
11929
11942
|
});
|
|
11930
11943
|
}
|
|
11931
|
-
}, []),
|
|
11944
|
+
}, []), W = ve((T) => {
|
|
11932
11945
|
const S = Ct();
|
|
11933
|
-
for (const [A,
|
|
11934
|
-
if (!
|
|
11946
|
+
for (const [A, z] of S) {
|
|
11947
|
+
if (!z.manifest.permissions.includes("events:messaging"))
|
|
11935
11948
|
continue;
|
|
11936
|
-
const I =
|
|
11949
|
+
const I = z.manifest.events ?? [];
|
|
11937
11950
|
!I.includes("messaging") && !I.includes("messaging:postback") && !I.includes(`messaging:postback:${T.data.actionName}`) || $e(A, {
|
|
11938
11951
|
type: "extension-event",
|
|
11939
11952
|
eventType: "messaging",
|
|
11940
11953
|
payload: T
|
|
11941
11954
|
});
|
|
11942
11955
|
}
|
|
11943
|
-
}, []),
|
|
11956
|
+
}, []), M = ve((T) => {
|
|
11944
11957
|
const S = Ct();
|
|
11945
|
-
for (const [A,
|
|
11946
|
-
if (!
|
|
11958
|
+
for (const [A, z] of S) {
|
|
11959
|
+
if (!z.manifest.permissions.includes("events:activity"))
|
|
11947
11960
|
continue;
|
|
11948
|
-
const I =
|
|
11961
|
+
const I = z.manifest.events ?? [];
|
|
11949
11962
|
!I.includes("activity") && !I.includes(`activity:${T.eventName}`) || $e(A, {
|
|
11950
11963
|
type: "extension-event",
|
|
11951
11964
|
eventType: "activity",
|
|
11952
11965
|
payload: T
|
|
11953
11966
|
});
|
|
11954
11967
|
}
|
|
11955
|
-
}, []),
|
|
11968
|
+
}, []), F = ve(async (T) => {
|
|
11956
11969
|
const S = Ct(), A = [];
|
|
11957
|
-
for (const [I,
|
|
11958
|
-
if (
|
|
11970
|
+
for (const [I, $] of S) {
|
|
11971
|
+
if (!$.manifest.permissions.includes("extend:identity"))
|
|
11959
11972
|
continue;
|
|
11960
|
-
const
|
|
11961
|
-
const
|
|
11973
|
+
const B = new Promise((J) => {
|
|
11974
|
+
const j = `enrich_${I}_${Date.now()}`, Y = (ee) => {
|
|
11962
11975
|
const te = ee.data;
|
|
11963
|
-
(te == null ? void 0 : te.type) !== "extend-identity-response" || te.id !==
|
|
11976
|
+
(te == null ? void 0 : te.type) !== "extend-identity-response" || te.id !== j || (window.removeEventListener("message", Y), te.additionalClaims ? J(te.additionalClaims) : J({}));
|
|
11964
11977
|
};
|
|
11965
|
-
window.addEventListener("message",
|
|
11966
|
-
window.removeEventListener("message",
|
|
11978
|
+
window.addEventListener("message", Y), setTimeout(() => {
|
|
11979
|
+
window.removeEventListener("message", Y), J({});
|
|
11967
11980
|
}, 5e3), $e(I, {
|
|
11968
11981
|
type: "extend-identity-request",
|
|
11969
|
-
id:
|
|
11982
|
+
id: j,
|
|
11970
11983
|
claims: T
|
|
11971
11984
|
});
|
|
11972
11985
|
});
|
|
11973
|
-
A.push(
|
|
11986
|
+
A.push(B);
|
|
11974
11987
|
}
|
|
11975
11988
|
if (A.length === 0)
|
|
11976
11989
|
return {};
|
|
11977
|
-
const
|
|
11978
|
-
return Object.assign({}, ...
|
|
11979
|
-
}, []),
|
|
11990
|
+
const z = await Promise.all(A);
|
|
11991
|
+
return Object.assign({}, ...z);
|
|
11992
|
+
}, []), H = ve(async (T) => {
|
|
11980
11993
|
if (!n || !o || !e)
|
|
11981
11994
|
return console.warn("[embeddables] signIdentity skipped — missing:", { apiBase: !!n, appId: !!o, instanceId: !!e }), null;
|
|
11982
11995
|
const S = zt(n, `/instances/${o}/${e}/identity`);
|
|
@@ -11989,40 +12002,40 @@ const Ot = (e) => e == null ? void 0 : e === !0 || e === "true", Mc = {
|
|
|
11989
12002
|
});
|
|
11990
12003
|
if (!A.ok)
|
|
11991
12004
|
return console.warn(`[embeddables] Identity sign failed (${A.status})`), null;
|
|
11992
|
-
const { token:
|
|
11993
|
-
return
|
|
12005
|
+
const { token: z } = await A.json();
|
|
12006
|
+
return z;
|
|
11994
12007
|
} catch (A) {
|
|
11995
12008
|
return console.warn("[embeddables] Identity sign request failed:", A), null;
|
|
11996
12009
|
}
|
|
11997
|
-
}, [n, o, e]),
|
|
12010
|
+
}, [n, o, e]), O = ve((T) => {
|
|
11998
12011
|
const S = window.zE;
|
|
11999
12012
|
S && S("messenger", "loginUser", async (A) => {
|
|
12000
12013
|
A(T);
|
|
12001
12014
|
});
|
|
12002
|
-
}, []), K =
|
|
12015
|
+
}, []), K = ve(() => {
|
|
12003
12016
|
const T = window.zE;
|
|
12004
12017
|
T && T("messenger", "logoutUser");
|
|
12005
|
-
}, []),
|
|
12018
|
+
}, []), P = ve((T) => {
|
|
12006
12019
|
console.log("[embeddables] Running sign lifecycle for user:", T.id);
|
|
12007
|
-
const { email: S, name: A } = T,
|
|
12020
|
+
const { email: S, name: A } = T, z = { external_id: String(T.id) };
|
|
12008
12021
|
(async () => {
|
|
12009
|
-
const I = await
|
|
12022
|
+
const I = await F({ ...z, email: S, name: A });
|
|
12010
12023
|
console.log("[embeddables] Enriched claims:", I);
|
|
12011
|
-
const
|
|
12012
|
-
...
|
|
12024
|
+
const $ = await H({
|
|
12025
|
+
...z,
|
|
12013
12026
|
...I,
|
|
12014
12027
|
email: S,
|
|
12015
12028
|
name: A
|
|
12016
12029
|
});
|
|
12017
|
-
console.log("[embeddables] Sign result:", { hasToken:
|
|
12030
|
+
console.log("[embeddables] Sign result:", { hasToken: !!$ }), $ && O($);
|
|
12018
12031
|
})();
|
|
12019
|
-
}, [
|
|
12020
|
-
if (k.length > 0 &&
|
|
12021
|
-
console.log(`[embeddables] Deferring sign lifecycle — waiting for extend:identity extensions: ${
|
|
12032
|
+
}, [F, H, O]), D = ve((T) => {
|
|
12033
|
+
if (k.length > 0 && E.current.size < k.length) {
|
|
12034
|
+
console.log(`[embeddables] Deferring sign lifecycle — waiting for extend:identity extensions: ${E.current.size}/${k.length} ready`), R.current = T;
|
|
12022
12035
|
return;
|
|
12023
12036
|
}
|
|
12024
|
-
console.log("[embeddables] No extend:identity extensions (or all ready) — signing immediately"),
|
|
12025
|
-
}, [k,
|
|
12037
|
+
console.log("[embeddables] No extend:identity extensions (or all ready) — signing immediately"), P(T);
|
|
12038
|
+
}, [k, P]);
|
|
12026
12039
|
ce(() => {
|
|
12027
12040
|
if (!v) {
|
|
12028
12041
|
console.log("[embeddables] Identity effect skipped — extensions not loaded yet");
|
|
@@ -12040,55 +12053,55 @@ const Ot = (e) => e == null ? void 0 : e === !0 || e === "true", Mc = {
|
|
|
12040
12053
|
}
|
|
12041
12054
|
};
|
|
12042
12055
|
x((S) => {
|
|
12043
|
-
var A,
|
|
12044
|
-
return S.authenticated && ((A = S.user) == null ? void 0 : A.id) === ((
|
|
12056
|
+
var A, z;
|
|
12057
|
+
return S.authenticated && ((A = S.user) == null ? void 0 : A.id) === ((z = T.user) == null ? void 0 : z.id) ? S : (console.log("[embeddables] Identity state changed (props), starting sign lifecycle"), D(T.user), L("login", T), T);
|
|
12045
12058
|
});
|
|
12046
12059
|
} else {
|
|
12047
12060
|
if (s === void 0)
|
|
12048
12061
|
return;
|
|
12049
|
-
x((T) => T.authenticated ? (console.log("[embeddables] Customer props cleared, logging out"), K(),
|
|
12062
|
+
x((T) => T.authenticated ? (console.log("[embeddables] Customer props cleared, logging out"), K(), L("logout", { authenticated: !1, user: null }), { authenticated: !1, user: null }) : T);
|
|
12050
12063
|
}
|
|
12051
|
-
}, [v, s, a, i, k,
|
|
12064
|
+
}, [v, s, a, i, k, D, L, K]), ce(() => {
|
|
12052
12065
|
if (!v || s !== void 0)
|
|
12053
12066
|
return;
|
|
12054
12067
|
const T = () => {
|
|
12055
12068
|
const A = document.getElementById("stackable-identity");
|
|
12056
12069
|
if (A)
|
|
12057
12070
|
try {
|
|
12058
|
-
const
|
|
12071
|
+
const z = JSON.parse(A.textContent ?? "{}"), I = {
|
|
12059
12072
|
authenticated: !0,
|
|
12060
12073
|
user: {
|
|
12061
|
-
id: String(
|
|
12062
|
-
email:
|
|
12063
|
-
name:
|
|
12074
|
+
id: String(z.customerId ?? ""),
|
|
12075
|
+
email: z.customerEmail,
|
|
12076
|
+
name: z.customerName,
|
|
12064
12077
|
provider: "shopify"
|
|
12065
12078
|
}
|
|
12066
12079
|
};
|
|
12067
|
-
x((
|
|
12068
|
-
var
|
|
12069
|
-
return
|
|
12080
|
+
x(($) => {
|
|
12081
|
+
var B, J;
|
|
12082
|
+
return $.authenticated && ((B = $.user) == null ? void 0 : B.id) === ((J = I.user) == null ? void 0 : J.id) ? $ : (console.log("[embeddables] Identity state changed (DOM), starting sign lifecycle"), D(I.user), L("login", I), I);
|
|
12070
12083
|
});
|
|
12071
12084
|
} catch {
|
|
12072
12085
|
console.warn("[embeddables] Failed to parse #stackable-identity JSON");
|
|
12073
12086
|
}
|
|
12074
12087
|
else
|
|
12075
|
-
x((
|
|
12088
|
+
x((z) => z.authenticated ? (K(), L("logout", { authenticated: !1, user: null }), { authenticated: !1, user: null }) : z);
|
|
12076
12089
|
};
|
|
12077
12090
|
T();
|
|
12078
12091
|
const S = new MutationObserver(T);
|
|
12079
12092
|
return S.observe(document.head, { childList: !0, subtree: !0 }), S.observe(document.body, { childList: !0, subtree: !0 }), () => S.disconnect();
|
|
12080
|
-
}, [v, s,
|
|
12093
|
+
}, [v, s, D, L, K]), ce(() => {
|
|
12081
12094
|
if (!w.authenticated)
|
|
12082
12095
|
return;
|
|
12083
12096
|
const T = (S) => {
|
|
12084
12097
|
const A = S.data;
|
|
12085
12098
|
if ((A == null ? void 0 : A.type) !== "extension-ready")
|
|
12086
12099
|
return;
|
|
12087
|
-
const
|
|
12100
|
+
const z = A.extensionId, I = c.find((B) => B.id === z);
|
|
12088
12101
|
if (!(I != null && I.manifest.permissions.includes("events:identity")))
|
|
12089
12102
|
return;
|
|
12090
|
-
const
|
|
12091
|
-
|
|
12103
|
+
const $ = I.manifest.events ?? [];
|
|
12104
|
+
!$.includes("identity") && !$.includes("identity:login") || $e(z, {
|
|
12092
12105
|
type: "extension-event",
|
|
12093
12106
|
eventType: "identity",
|
|
12094
12107
|
payload: { eventName: "login", data: { state: w, timestamp: Kn((/* @__PURE__ */ new Date()).toISOString()) } }
|
|
@@ -12099,50 +12112,50 @@ const Ot = (e) => e == null ? void 0 : e === !0 || e === "true", Mc = {
|
|
|
12099
12112
|
if (k.length === 0)
|
|
12100
12113
|
return;
|
|
12101
12114
|
const T = (A) => {
|
|
12102
|
-
const
|
|
12103
|
-
if ((
|
|
12115
|
+
const z = A.data;
|
|
12116
|
+
if ((z == null ? void 0 : z.type) !== "extension-ready")
|
|
12104
12117
|
return;
|
|
12105
|
-
const I =
|
|
12106
|
-
if (k.includes(I) && (
|
|
12118
|
+
const I = z.extensionId;
|
|
12119
|
+
if (k.includes(I) && (E.current.add(I), console.log(`[embeddables] extend:identity extension ready: ${I} (${E.current.size}/${k.length})`), E.current.size >= k.length && R.current)) {
|
|
12107
12120
|
console.log("[embeddables] All extend:identity extensions ready, running deferred sign lifecycle");
|
|
12108
|
-
const
|
|
12109
|
-
R.current = null,
|
|
12121
|
+
const $ = R.current;
|
|
12122
|
+
R.current = null, P($);
|
|
12110
12123
|
}
|
|
12111
12124
|
};
|
|
12112
12125
|
window.addEventListener("message", T);
|
|
12113
12126
|
const S = setTimeout(() => {
|
|
12114
12127
|
if (R.current) {
|
|
12115
|
-
console.warn(`[embeddables] extend:identity timeout (5s) — signing with ${
|
|
12128
|
+
console.warn(`[embeddables] extend:identity timeout (5s) — signing with ${E.current.size}/${k.length} extensions ready`);
|
|
12116
12129
|
const A = R.current;
|
|
12117
|
-
R.current = null,
|
|
12130
|
+
R.current = null, P(A);
|
|
12118
12131
|
}
|
|
12119
12132
|
}, 5e3);
|
|
12120
12133
|
return () => {
|
|
12121
12134
|
window.removeEventListener("message", T), clearTimeout(S);
|
|
12122
12135
|
};
|
|
12123
|
-
}, [k,
|
|
12136
|
+
}, [k, P]), ce(() => {
|
|
12124
12137
|
const T = (S) => {
|
|
12125
12138
|
const { detail: A } = S;
|
|
12126
|
-
A != null && A.eventName && (A.eventName === "postback" ?
|
|
12139
|
+
A != null && A.eventName && (A.eventName === "postback" ? W({
|
|
12127
12140
|
eventName: "postback",
|
|
12128
12141
|
data: {
|
|
12129
12142
|
actionName: A.data.actionName,
|
|
12130
12143
|
conversationId: A.data.conversationId ?? "",
|
|
12131
12144
|
timestamp: Kn((/* @__PURE__ */ new Date()).toISOString())
|
|
12132
12145
|
}
|
|
12133
|
-
}) : A.eventName === "context" &&
|
|
12146
|
+
}) : A.eventName === "context" && N((z) => ({ ...z, ...A.data })));
|
|
12134
12147
|
};
|
|
12135
12148
|
return window.addEventListener("stackable:messaging", T), () => window.removeEventListener("stackable:messaging", T);
|
|
12136
|
-
}, [
|
|
12149
|
+
}, [W]), ce(() => {
|
|
12137
12150
|
const T = (S) => {
|
|
12138
12151
|
const { detail: A } = S;
|
|
12139
|
-
A != null && A.eventName &&
|
|
12152
|
+
A != null && A.eventName && M({
|
|
12140
12153
|
eventName: A.eventName,
|
|
12141
12154
|
data: A.data ?? {}
|
|
12142
12155
|
});
|
|
12143
12156
|
};
|
|
12144
12157
|
return window.addEventListener("stackable:activity", T), () => window.removeEventListener("stackable:activity", T);
|
|
12145
|
-
}, [
|
|
12158
|
+
}, [M]), ce(() => {
|
|
12146
12159
|
if (!v)
|
|
12147
12160
|
return;
|
|
12148
12161
|
const T = {
|
|
@@ -12152,10 +12165,10 @@ const Ot = (e) => e == null ? void 0 : e === !0 || e === "true", Mc = {
|
|
|
12152
12165
|
messaging: C,
|
|
12153
12166
|
identity: w
|
|
12154
12167
|
}, S = Ct();
|
|
12155
|
-
for (const [A,
|
|
12156
|
-
|
|
12168
|
+
for (const [A, z] of S)
|
|
12169
|
+
z.manifest.permissions.includes("context:read") && $e(A, { type: "context-push", context: T });
|
|
12157
12170
|
}, [v, s, a, i, w, C]);
|
|
12158
|
-
const
|
|
12171
|
+
const U = Bt(
|
|
12159
12172
|
() => ({
|
|
12160
12173
|
// TODO(data.query-deprecation): Remove when data.query is deprecated — host-native ecommerce route replaced by extension + data.fetch
|
|
12161
12174
|
"data.query": async (T) => Dc(T, t),
|
|
@@ -12169,12 +12182,12 @@ const Ot = (e) => e == null ? void 0 : e === !0 || e === "true", Mc = {
|
|
|
12169
12182
|
error: "data.fetch: proxy token unavailable — ensure the extension has data:fetch permission and allowedDomains configured"
|
|
12170
12183
|
}
|
|
12171
12184
|
};
|
|
12172
|
-
const
|
|
12185
|
+
const z = Ob(S) ? S : {
|
|
12173
12186
|
url: S.url,
|
|
12174
12187
|
method: S.method ?? "GET",
|
|
12175
12188
|
headers: S.headers ?? {},
|
|
12176
12189
|
body: S.body ?? null
|
|
12177
|
-
}, I = zt(n, "/proxy"),
|
|
12190
|
+
}, I = zt(n, "/proxy"), $ = await fetch(I, {
|
|
12178
12191
|
method: "POST",
|
|
12179
12192
|
headers: {
|
|
12180
12193
|
"Content-Type": "application/json",
|
|
@@ -12182,12 +12195,12 @@ const Ot = (e) => e == null ? void 0 : e === !0 || e === "true", Mc = {
|
|
|
12182
12195
|
"X-Application-Id": o ?? "",
|
|
12183
12196
|
Authorization: `Bearer ${A.token}`
|
|
12184
12197
|
},
|
|
12185
|
-
body: JSON.stringify(
|
|
12186
|
-
}),
|
|
12198
|
+
body: JSON.stringify(z)
|
|
12199
|
+
}), B = await $.json();
|
|
12187
12200
|
return {
|
|
12188
|
-
status:
|
|
12189
|
-
ok:
|
|
12190
|
-
data:
|
|
12201
|
+
status: B.status ?? $.status,
|
|
12202
|
+
ok: B.ok ?? $.ok,
|
|
12203
|
+
data: B.data
|
|
12191
12204
|
};
|
|
12192
12205
|
},
|
|
12193
12206
|
"actions.toast": async (T, S) => {
|
|
@@ -12199,10 +12212,10 @@ const Ot = (e) => e == null ? void 0 : e === !0 || e === "true", Mc = {
|
|
|
12199
12212
|
...S.closeButton != null && { closeButton: S.closeButton }
|
|
12200
12213
|
};
|
|
12201
12214
|
if (S.fetch) {
|
|
12202
|
-
const
|
|
12203
|
-
|
|
12204
|
-
|
|
12205
|
-
]).then(([
|
|
12215
|
+
const z = ($) => new Promise((B) => setTimeout(B, $)), I = Promise.all([
|
|
12216
|
+
U["data.fetch"](T, S.fetch),
|
|
12217
|
+
z(_b)
|
|
12218
|
+
]).then(([$]) => $);
|
|
12206
12219
|
yt.promise(I, {
|
|
12207
12220
|
loading: S.loading ?? S.message,
|
|
12208
12221
|
success: S.success ?? S.message,
|
|
@@ -12245,8 +12258,8 @@ const Ot = (e) => e == null ? void 0 : e === !0 || e === "true", Mc = {
|
|
|
12245
12258
|
}),
|
|
12246
12259
|
[n, o, t, s, a, i, m, w, C]
|
|
12247
12260
|
);
|
|
12248
|
-
return v ? /* @__PURE__ */
|
|
12249
|
-
/* @__PURE__ */ u(ll, { extensions: c, capabilityHandlers:
|
|
12261
|
+
return v ? /* @__PURE__ */ q(_e, { children: [
|
|
12262
|
+
/* @__PURE__ */ u(ll, { extensions: c, capabilityHandlers: U, components: Nb(), children: r }),
|
|
12250
12263
|
/* @__PURE__ */ u(Ib, { extensions: c, tokenErrors: b })
|
|
12251
12264
|
] }) : null;
|
|
12252
12265
|
};
|
|
@@ -12302,7 +12315,7 @@ const Fb = ({ ...e }) => {
|
|
|
12302
12315
|
...e
|
|
12303
12316
|
}
|
|
12304
12317
|
);
|
|
12305
|
-
}, Bb = { dark: "dark", light: "widget-theme-light" }, Hb = { dark: "dark", light: "light" }, zc = ({ children: e, theme: t = "inherit" }) => /* @__PURE__ */
|
|
12318
|
+
}, Bb = { dark: "dark", light: "widget-theme-light" }, Hb = { dark: "dark", light: "light" }, zc = ({ children: e, theme: t = "inherit" }) => /* @__PURE__ */ q("div", { "data-id": "widget-body", className: Bb[t], style: { position: "relative", transform: "translateZ(0)" }, children: [
|
|
12306
12319
|
/* @__PURE__ */ u("div", { className: "h-[700px] w-[900px] overflow-hidden rounded-md ring ring-zinc-200 dark:ring-zinc-300", children: /* @__PURE__ */ u("div", { className: "flex h-full w-full flex-col overflow-hidden rounded-md bg-muted dark:bg-background text-foreground", children: e }) }),
|
|
12307
12320
|
/* @__PURE__ */ u(Fb, { position: "bottom-center", theme: Hb[t] ?? "system", toastOptions: { descriptionClassName: "!text-muted-foreground" } })
|
|
12308
12321
|
] }), Vb = {
|
|
@@ -12314,19 +12327,20 @@ const Fb = ({ ...e }) => {
|
|
|
12314
12327
|
bot: rd,
|
|
12315
12328
|
sparkles: Ns,
|
|
12316
12329
|
zap: ou
|
|
12317
|
-
}, Wb = ({ className: e }) => /* @__PURE__ */ u("svg", { className: X(e, "scale-125"), viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ u("path", { d: "M10,18 L6,22 L6,18 L10,18 Z M17,6 C19.7614237,6 22,8.23857625 22,11 C22,13.7614237 19.7614237,16 17,16 L7,16 C4.23857625,16 2,13.7614237 2,11 C2,8.23857625 4.23857625,6 7,6 Z", transform: "translate(12, 14) scale(-1, 1) translate(-12, -14)" }) }), Ub = ({ className: e }) => /* @__PURE__ */
|
|
12318
|
-
/* @__PURE__ */
|
|
12330
|
+
}, Wb = ({ className: e }) => /* @__PURE__ */ u("svg", { className: X(e, "scale-125"), viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ u("path", { d: "M10,18 L6,22 L6,18 L10,18 Z M17,6 C19.7614237,6 22,8.23857625 22,11 C22,13.7614237 19.7614237,16 17,16 L7,16 C4.23857625,16 2,13.7614237 2,11 C2,8.23857625 4.23857625,6 7,6 Z", transform: "translate(12, 14) scale(-1, 1) translate(-12, -14)" }) }), Ub = ({ className: e }) => /* @__PURE__ */ q("svg", { className: e, viewBox: "0 0 190 190", fill: "currentColor", "aria-hidden": "true", children: [
|
|
12331
|
+
/* @__PURE__ */ q("g", { id: "sl-half-right", children: [
|
|
12319
12332
|
/* @__PURE__ */ u("g", { transform: "translate(-160.365,27.97)", children: /* @__PURE__ */ u("path", { d: "M344.73,67.03C344.73,30.01 314.72,0 277.7,0C240.68,0 210.67,30.01 210.67,67.03L255.36,67.03C255.36,54.69 265.36,44.69 277.7,44.69C290.04,44.69 300.05,54.69 300.05,67.03L344.73,67.03Z" }) }),
|
|
12320
12333
|
/* @__PURE__ */ u("g", { transform: "translate(-160.365,27.97)", children: /* @__PURE__ */ u("path", { d: "M300.04,67.03C300.04,54.69 290.05,44.69 277.7,44.69C265.35,44.69 255.36,54.69 255.36,67.03L300.04,67.03Z", opacity: "0.3" }) })
|
|
12321
12334
|
] }),
|
|
12322
|
-
/* @__PURE__ */
|
|
12335
|
+
/* @__PURE__ */ q("g", { id: "sl-half-left", children: [
|
|
12323
12336
|
/* @__PURE__ */ u("g", { transform: "translate(-160.365,27.97)", children: /* @__PURE__ */ u("path", { d: "M166,67.03C166,104.05 196.01,134.06 233.03,134.06C270.05,134.06 300.06,104.05 300.06,67.03L255.37,67.03C255.37,79.37 245.37,89.37 233.03,89.37C220.69,89.37 210.69,79.37 210.69,67.03L166,67.03Z" }) }),
|
|
12324
12337
|
/* @__PURE__ */ u("g", { transform: "translate(-160.365,27.97)", children: /* @__PURE__ */ u("path", { d: "M210.68,67.03C210.68,79.37 220.68,89.37 233.03,89.37C245.38,89.37 255.37,79.37 255.37,67.03L210.68,67.03Z", opacity: "0.3" }) })
|
|
12325
12338
|
] })
|
|
12326
12339
|
] }), $c = 400, jb = $c * 0.35, Fc = ({ icon: e, isOpen: t, onClick: n }) => {
|
|
12327
12340
|
const o = Vb[e] ?? Wb, [r, s] = le("idle"), a = Me(t);
|
|
12328
12341
|
ce(() => {
|
|
12329
|
-
if (a.current === t)
|
|
12342
|
+
if (a.current === t)
|
|
12343
|
+
return;
|
|
12330
12344
|
a.current = t, s("interstitial");
|
|
12331
12345
|
const c = setTimeout(() => s("idle"), jb);
|
|
12332
12346
|
return () => clearTimeout(c);
|
|
@@ -12348,7 +12362,7 @@ const Fb = ({ ...e }) => {
|
|
|
12348
12362
|
}
|
|
12349
12363
|
) });
|
|
12350
12364
|
}, r0 = ({ children: e, icon: t, theme: n }) => {
|
|
12351
|
-
const [o, r] = le(!1), [s, a] = le(!0), [i, c] = le(!1), d =
|
|
12365
|
+
const [o, r] = le(!1), [s, a] = le(!0), [i, c] = le(!1), d = ve(() => {
|
|
12352
12366
|
r((p) => !p);
|
|
12353
12367
|
}, []);
|
|
12354
12368
|
return ce(() => {
|
|
@@ -12360,7 +12374,7 @@ const Fb = ({ ...e }) => {
|
|
|
12360
12374
|
return window.addEventListener("stackable:action:toggle", p), window.addEventListener("stackable:action:open", l), window.addEventListener("stackable:action:close", m), window.addEventListener("stackable:action:show", h), window.addEventListener("stackable:action:hide", b), () => {
|
|
12361
12375
|
window.removeEventListener("stackable:action:open", l), window.removeEventListener("stackable:action:close", m), window.removeEventListener("stackable:action:toggle", p), window.removeEventListener("stackable:action:show", h), window.removeEventListener("stackable:action:hide", b);
|
|
12362
12376
|
};
|
|
12363
|
-
}, []), /* @__PURE__ */
|
|
12377
|
+
}, []), /* @__PURE__ */ q(_e, { children: [
|
|
12364
12378
|
s && /* @__PURE__ */ u(
|
|
12365
12379
|
Fc,
|
|
12366
12380
|
{
|
|
@@ -12422,9 +12436,9 @@ const Fb = ({ ...e }) => {
|
|
|
12422
12436
|
return /* @__PURE__ */ u($t, { className: "border-none shadow-none bg-transparent", children: /* @__PURE__ */ u(Ft, { className: "flex items-center justify-center p-6", children: /* @__PURE__ */ u(Lo, { className: "h-6 w-6 animate-spin text-muted-foreground" }) }) });
|
|
12423
12437
|
if (a || !r) {
|
|
12424
12438
|
const p = t ? t.split("@")[0] : e ? `Customer ${e.slice(-4)}` : "Customer", l = p.split(/[\s._-]+/).map((m) => m[0]).join("").slice(0, 2).toUpperCase();
|
|
12425
|
-
return /* @__PURE__ */ u($t, { className: "border-none px-0 py-0 mb-4 shadow-none bg-transparent", children: /* @__PURE__ */
|
|
12426
|
-
/* @__PURE__ */
|
|
12427
|
-
/* @__PURE__ */
|
|
12439
|
+
return /* @__PURE__ */ u($t, { className: "border-none px-0 py-0 mb-4 shadow-none bg-transparent", children: /* @__PURE__ */ q(Ft, { className: "p-4 pb-0 pt-2", children: [
|
|
12440
|
+
/* @__PURE__ */ q("div", { className: "flex flex-col items-center", children: [
|
|
12441
|
+
/* @__PURE__ */ q(Io, { className: "h-16 w-16 mb-2 ring-2 ring-background shadow-sm", children: [
|
|
12428
12442
|
/* @__PURE__ */ u(
|
|
12429
12443
|
_o,
|
|
12430
12444
|
{
|
|
@@ -12434,12 +12448,12 @@ const Fb = ({ ...e }) => {
|
|
|
12434
12448
|
),
|
|
12435
12449
|
/* @__PURE__ */ u(Mo, { className: "text-lg", children: l })
|
|
12436
12450
|
] }),
|
|
12437
|
-
/* @__PURE__ */
|
|
12438
|
-
/* @__PURE__ */
|
|
12451
|
+
/* @__PURE__ */ q("div", { className: "text-center w-full space-y-1", children: [
|
|
12452
|
+
/* @__PURE__ */ q("div", { children: [
|
|
12439
12453
|
/* @__PURE__ */ u("p", { className: "text-xs text-foreground/70 font-medium tracking-wide", children: "Welcome," }),
|
|
12440
12454
|
/* @__PURE__ */ u("h2", { className: "text-lg font-bold text-foreground leading-tight", children: p })
|
|
12441
12455
|
] }),
|
|
12442
|
-
t && /* @__PURE__ */ u("div", { className: "pt-2 flex flex-col items-center gap-1", children: /* @__PURE__ */
|
|
12456
|
+
t && /* @__PURE__ */ u("div", { className: "pt-2 flex flex-col items-center gap-1", children: /* @__PURE__ */ q("div", { className: "flex items-center justify-center gap-1.5 text-xs font-semibold text-foreground/75", children: [
|
|
12443
12457
|
/* @__PURE__ */ u(ho, { className: "h-3 w-3", "aria-hidden": "true" }),
|
|
12444
12458
|
/* @__PURE__ */ u("span", { className: "truncate max-w-[200px]", children: t })
|
|
12445
12459
|
] }) }),
|
|
@@ -12450,8 +12464,8 @@ const Fb = ({ ...e }) => {
|
|
|
12450
12464
|
] }) });
|
|
12451
12465
|
}
|
|
12452
12466
|
const i = `${((c = r.first_name) == null ? void 0 : c[0]) || ""}${((d = r.last_name) == null ? void 0 : d[0]) || ""}`;
|
|
12453
|
-
return /* @__PURE__ */ u($t, { className: "border-none px-0 py-0 mb-4 shadow-none bg-transparent", children: /* @__PURE__ */ u(Ft, { className: "p-4 pb-0 pt-2", children: /* @__PURE__ */
|
|
12454
|
-
/* @__PURE__ */
|
|
12467
|
+
return /* @__PURE__ */ u($t, { className: "border-none px-0 py-0 mb-4 shadow-none bg-transparent", children: /* @__PURE__ */ u(Ft, { className: "p-4 pb-0 pt-2", children: /* @__PURE__ */ q("div", { className: "flex flex-col items-center", children: [
|
|
12468
|
+
/* @__PURE__ */ q(Io, { className: "h-16 w-16 mb-2 ring-2 ring-background shadow-sm", children: [
|
|
12455
12469
|
/* @__PURE__ */ u(
|
|
12456
12470
|
_o,
|
|
12457
12471
|
{
|
|
@@ -12461,12 +12475,12 @@ const Fb = ({ ...e }) => {
|
|
|
12461
12475
|
),
|
|
12462
12476
|
/* @__PURE__ */ u(Mo, { className: "text-lg", children: i })
|
|
12463
12477
|
] }),
|
|
12464
|
-
/* @__PURE__ */
|
|
12465
|
-
/* @__PURE__ */
|
|
12478
|
+
/* @__PURE__ */ q("div", { className: "text-center w-full space-y-1", children: [
|
|
12479
|
+
/* @__PURE__ */ q("div", { children: [
|
|
12466
12480
|
/* @__PURE__ */ u("p", { className: "text-xs text-foreground/70 font-medium tracking-wide", children: "Welcome," }),
|
|
12467
12481
|
/* @__PURE__ */ u("h2", { className: "text-lg font-bold text-foreground leading-tight", children: r.name })
|
|
12468
12482
|
] }),
|
|
12469
|
-
/* @__PURE__ */ u("div", { className: "pt-2 flex flex-col items-center gap-1", children: /* @__PURE__ */
|
|
12483
|
+
/* @__PURE__ */ u("div", { className: "pt-2 flex flex-col items-center gap-1", children: /* @__PURE__ */ q("div", { className: "flex items-center justify-center gap-1.5 text-xs font-semibold text-foreground/75", children: [
|
|
12470
12484
|
/* @__PURE__ */ u(ho, { className: "h-3 w-3", "aria-hidden": "true" }),
|
|
12471
12485
|
/* @__PURE__ */ u("span", { className: "truncate max-w-[200px]", children: r.email })
|
|
12472
12486
|
] }) }),
|
|
@@ -12476,7 +12490,8 @@ const Fb = ({ ...e }) => {
|
|
|
12476
12490
|
}, Bc = (e, t) => {
|
|
12477
12491
|
ce(() => {
|
|
12478
12492
|
const n = t.current;
|
|
12479
|
-
if (!n)
|
|
12493
|
+
if (!n)
|
|
12494
|
+
return;
|
|
12480
12495
|
let o = document.getElementById(e);
|
|
12481
12496
|
o || (o = document.createElement("div"), o.id = e, o.style.cssText = "position:absolute;width:0;height:0;overflow:hidden;pointer-events:none;", document.body.appendChild(o));
|
|
12482
12497
|
const r = new MutationObserver(() => {
|
|
@@ -12529,7 +12544,7 @@ const Fb = ({ ...e }) => {
|
|
|
12529
12544
|
const a = Math.max(
|
|
12530
12545
|
fo,
|
|
12531
12546
|
Math.min(po, s)
|
|
12532
|
-
), { extensions: i } = vs(), c = Bt(() => i.some((
|
|
12547
|
+
), { extensions: i } = vs(), c = Bt(() => i.some((M) => M.enabled && (M.manifest.targets.includes("slot.header") || M.manifest.targets.includes("slot.content"))), [i]), [d, p] = le(!1), [l, m] = le(!1), [h, b] = le("extensions"), [g, v] = le(a), [y, w] = le("loading"), x = Me(null), C = ve(() => !window.zE || !document.getElementById("widget_conversations") || !document.getElementById("widget_messages") ? !1 : (window.zE("messenger", "render", {
|
|
12533
12548
|
mode: "embedded",
|
|
12534
12549
|
messageLog: { targetElement: "#widget_messages" },
|
|
12535
12550
|
conversationList: { targetElement: "#widget_conversations" }
|
|
@@ -12539,118 +12554,138 @@ const Fb = ({ ...e }) => {
|
|
|
12539
12554
|
conversationList: { hideHeader: !0, hideNewConversationButton: !0 }
|
|
12540
12555
|
}), !0), []);
|
|
12541
12556
|
ce(() => {
|
|
12542
|
-
var
|
|
12543
|
-
const
|
|
12544
|
-
if (
|
|
12545
|
-
var
|
|
12546
|
-
const
|
|
12547
|
-
|
|
12557
|
+
var K, P;
|
|
12558
|
+
const M = document.querySelector('script[src*="zdassets.com/ekr/snippet"]'), F = (P = (K = M == null ? void 0 : M.src) == null ? void 0 : K.match(/key=([a-f0-9-]+)/)) == null ? void 0 : P[1];
|
|
12559
|
+
if (F && fetch(`https://ekr.zdassets.com/compose/${F}`).then((D) => D.text()).then((D) => {
|
|
12560
|
+
var T;
|
|
12561
|
+
const U = (T = D.match(/appId['"]?\s*:\s*['"]([a-f0-9]+)['"]/)) == null ? void 0 : T[1];
|
|
12562
|
+
U && uo({ appId: U });
|
|
12548
12563
|
}).catch(() => {
|
|
12549
12564
|
}), C()) {
|
|
12550
12565
|
w("ready");
|
|
12551
12566
|
return;
|
|
12552
12567
|
}
|
|
12553
|
-
const
|
|
12554
|
-
C() && (w("ready"), clearInterval(
|
|
12555
|
-
}, 100),
|
|
12556
|
-
clearInterval(
|
|
12568
|
+
const H = setInterval(() => {
|
|
12569
|
+
C() && (w("ready"), clearInterval(H));
|
|
12570
|
+
}, 100), O = setTimeout(() => {
|
|
12571
|
+
clearInterval(H), w((D) => D === "ready" ? D : (console.warn("Zendesk widget failed to load after 10 seconds"), "error"));
|
|
12557
12572
|
}, 1e4);
|
|
12558
12573
|
return () => {
|
|
12559
|
-
clearInterval(
|
|
12574
|
+
clearInterval(H), clearTimeout(O);
|
|
12560
12575
|
};
|
|
12561
12576
|
}, [C]);
|
|
12562
|
-
const
|
|
12563
|
-
window.zE
|
|
12564
|
-
}, []), R =
|
|
12565
|
-
|
|
12566
|
-
|
|
12577
|
+
const N = ve((M) => {
|
|
12578
|
+
!window.zE || !M.length || window.zE("messenger:set", "conversationTags", M);
|
|
12579
|
+
}, []), R = ve((M) => {
|
|
12580
|
+
!window.zE || !M.length || window.zE("messenger:set", "conversationFields", M);
|
|
12581
|
+
}, []), E = ve((M) => {
|
|
12582
|
+
if (!window.zE)
|
|
12583
|
+
return;
|
|
12584
|
+
M != null && M.tags && N(M.tags), M != null && M.fields && R(M.fields);
|
|
12585
|
+
const { tags: F, fields: H, ...O } = M ?? {};
|
|
12586
|
+
window.zE("messenger:ui", "newConversation", Object.keys(O).length ? O : void 0);
|
|
12587
|
+
}, [N, R]), k = ve((M) => {
|
|
12588
|
+
const { detail: F } = M;
|
|
12589
|
+
F != null && F.payload && E(F.payload);
|
|
12567
12590
|
}, [E]);
|
|
12568
|
-
ce(() => (window.addEventListener("stackable:action:newConversation",
|
|
12569
|
-
window.removeEventListener("stackable:action:newConversation",
|
|
12570
|
-
}), [
|
|
12571
|
-
|
|
12572
|
-
|
|
12573
|
-
|
|
12574
|
-
|
|
12575
|
-
|
|
12576
|
-
|
|
12577
|
-
|
|
12578
|
-
|
|
12579
|
-
|
|
12580
|
-
}
|
|
12581
|
-
|
|
12582
|
-
|
|
12583
|
-
|
|
12591
|
+
ce(() => (window.addEventListener("stackable:action:newConversation", k), () => {
|
|
12592
|
+
window.removeEventListener("stackable:action:newConversation", k);
|
|
12593
|
+
}), [k]), ce(() => {
|
|
12594
|
+
const M = (H) => {
|
|
12595
|
+
const { detail: O } = H;
|
|
12596
|
+
O != null && O.payload && N(O.payload);
|
|
12597
|
+
}, F = (H) => {
|
|
12598
|
+
const { detail: O } = H;
|
|
12599
|
+
O != null && O.payload && R(O.payload);
|
|
12600
|
+
};
|
|
12601
|
+
return window.addEventListener("stackable:action:setConversationTags", M), window.addEventListener("stackable:action:setConversationFields", F), () => {
|
|
12602
|
+
window.removeEventListener("stackable:action:setConversationTags", M), window.removeEventListener("stackable:action:setConversationFields", F);
|
|
12603
|
+
};
|
|
12604
|
+
}, [N, R]), ce(() => {
|
|
12605
|
+
if (y !== "ready" || !window.zE)
|
|
12606
|
+
return;
|
|
12607
|
+
const M = window.zE("messenger:on", "conversationStarted", (O) => {
|
|
12608
|
+
var P, D;
|
|
12609
|
+
const K = (D = (P = O == null ? void 0 : O.payload) == null ? void 0 : P.conversation) == null ? void 0 : D.id;
|
|
12610
|
+
K && uo({ conversationId: K });
|
|
12611
|
+
}), F = window.zE("messenger:on", "messagesShown", (O) => {
|
|
12612
|
+
var P, D;
|
|
12613
|
+
const K = (D = (P = O == null ? void 0 : O.payload) == null ? void 0 : P.conversation) == null ? void 0 : D.id;
|
|
12614
|
+
K && uo({ conversationId: K });
|
|
12615
|
+
}), H = window.zE("messenger:on", "postbackButtonClicked", (O) => {
|
|
12616
|
+
var P;
|
|
12617
|
+
const K = O == null ? void 0 : O.payload;
|
|
12618
|
+
K != null && K.actionName && window.dispatchEvent(new CustomEvent("stackable:messaging", {
|
|
12584
12619
|
detail: {
|
|
12585
12620
|
eventName: "postback",
|
|
12586
12621
|
data: {
|
|
12587
|
-
actionName:
|
|
12588
|
-
conversationId: ((
|
|
12622
|
+
actionName: K.actionName,
|
|
12623
|
+
conversationId: ((P = K.conversation) == null ? void 0 : P.id) ?? ""
|
|
12589
12624
|
}
|
|
12590
12625
|
}
|
|
12591
12626
|
}));
|
|
12592
12627
|
});
|
|
12593
12628
|
return () => {
|
|
12594
|
-
typeof
|
|
12629
|
+
typeof M == "function" && M(), typeof F == "function" && F(), typeof H == "function" && H();
|
|
12595
12630
|
};
|
|
12596
12631
|
}, [y]), ce(() => {
|
|
12597
12632
|
if (!d)
|
|
12598
12633
|
return;
|
|
12599
|
-
const
|
|
12634
|
+
const M = (H) => {
|
|
12600
12635
|
if (!x.current)
|
|
12601
12636
|
return;
|
|
12602
|
-
const
|
|
12603
|
-
if ((l ?
|
|
12637
|
+
const O = x.current.getBoundingClientRect();
|
|
12638
|
+
if ((l ? O.width : O.height) === 0)
|
|
12604
12639
|
return;
|
|
12605
|
-
const
|
|
12640
|
+
const P = l ? (H.clientX - O.left) / O.width * 100 : (H.clientY - O.top) / O.height * 100, D = Math.max(
|
|
12606
12641
|
fo,
|
|
12607
|
-
Math.min(po,
|
|
12642
|
+
Math.min(po, P)
|
|
12608
12643
|
);
|
|
12609
|
-
v(
|
|
12610
|
-
},
|
|
12644
|
+
v(D);
|
|
12645
|
+
}, F = () => {
|
|
12611
12646
|
p(!1), document.body.style.cursor = "", document.body.style.userSelect = "";
|
|
12612
12647
|
};
|
|
12613
|
-
return document.body.style.cursor = l ? "col-resize" : "row-resize", document.body.style.userSelect = "none", window.addEventListener("mousemove",
|
|
12614
|
-
window.removeEventListener("mousemove",
|
|
12648
|
+
return document.body.style.cursor = l ? "col-resize" : "row-resize", document.body.style.userSelect = "none", window.addEventListener("mousemove", M), window.addEventListener("mouseup", F), window.addEventListener("blur", F), () => {
|
|
12649
|
+
window.removeEventListener("mousemove", M), window.removeEventListener("mouseup", F), window.removeEventListener("blur", F), document.body.style.cursor = "", document.body.style.userSelect = "";
|
|
12615
12650
|
};
|
|
12616
12651
|
}, [d, l]), ce(() => {
|
|
12617
12652
|
if (!x.current)
|
|
12618
12653
|
return;
|
|
12619
|
-
const
|
|
12620
|
-
const
|
|
12621
|
-
m(
|
|
12654
|
+
const M = x.current, F = () => {
|
|
12655
|
+
const O = getComputedStyle(M).flexDirection === "row";
|
|
12656
|
+
m(O);
|
|
12622
12657
|
};
|
|
12623
|
-
|
|
12624
|
-
const
|
|
12625
|
-
return
|
|
12626
|
-
|
|
12658
|
+
F();
|
|
12659
|
+
const H = new ResizeObserver(F);
|
|
12660
|
+
return H.observe(M), () => {
|
|
12661
|
+
H.disconnect();
|
|
12627
12662
|
};
|
|
12628
12663
|
}, []);
|
|
12629
|
-
const
|
|
12630
|
-
if (
|
|
12664
|
+
const L = ve((M) => {
|
|
12665
|
+
if (M.detail === 2) {
|
|
12631
12666
|
v(a);
|
|
12632
12667
|
return;
|
|
12633
12668
|
}
|
|
12634
|
-
|
|
12635
|
-
}, [a]),
|
|
12636
|
-
return /* @__PURE__ */
|
|
12669
|
+
M.preventDefault(), p(!0);
|
|
12670
|
+
}, [a]), W = { customerId: o, customerEmail: r };
|
|
12671
|
+
return /* @__PURE__ */ q("div", { "data-component": "zendesk-wrapper", className: "flex-1 flex flex-col z-10 overflow-hidden", style: { containerType: "inline-size" }, children: [
|
|
12637
12672
|
/* @__PURE__ */ u("style", {
|
|
12638
12673
|
// eslint-disable-next-line @stylistic/quotes
|
|
12639
12674
|
children: '@container (min-width: 42rem) { [data-component="zendesk-wrapper"] > [data-id="panel-layout"] { flex-direction: row; } }'
|
|
12640
12675
|
}),
|
|
12641
|
-
/* @__PURE__ */
|
|
12642
|
-
c && /* @__PURE__ */
|
|
12676
|
+
/* @__PURE__ */ q("div", { ref: x, "data-id": "panel-layout", className: "relative flex-1 overflow-hidden flex flex-col", children: [
|
|
12677
|
+
c && /* @__PURE__ */ q(
|
|
12643
12678
|
"div",
|
|
12644
12679
|
{
|
|
12645
12680
|
"data-id": "primary-panel",
|
|
12646
12681
|
className: "min-h-0 min-w-0 flex-none overflow-hidden flex flex-col",
|
|
12647
12682
|
style: { flexBasis: `${g}%` },
|
|
12648
12683
|
children: [
|
|
12649
|
-
/* @__PURE__ */
|
|
12684
|
+
/* @__PURE__ */ q("div", { className: "flex items-center justify-between px-4 py-3", children: [
|
|
12650
12685
|
/* @__PURE__ */ u("h2", { className: "font-semibold text-sm text-foreground", children: h === "extensions" ? "My Profile" : "My Conversations" }),
|
|
12651
|
-
/* @__PURE__ */
|
|
12686
|
+
/* @__PURE__ */ q("div", { className: "flex items-center gap-1", children: [
|
|
12652
12687
|
e && /* @__PURE__ */ u("div", { className: "flex gap-1", children: e }),
|
|
12653
|
-
/* @__PURE__ */
|
|
12688
|
+
/* @__PURE__ */ q("div", { className: "flex rounded-lg bg-muted p-1", children: [
|
|
12654
12689
|
y === "ready" && /* @__PURE__ */ u(
|
|
12655
12690
|
"button",
|
|
12656
12691
|
{
|
|
@@ -12690,13 +12725,13 @@ const Fb = ({ ...e }) => {
|
|
|
12690
12725
|
] })
|
|
12691
12726
|
] })
|
|
12692
12727
|
] }),
|
|
12693
|
-
/* @__PURE__ */
|
|
12694
|
-
/* @__PURE__ */
|
|
12728
|
+
/* @__PURE__ */ q("div", { className: "flex-1 overflow-y-auto p-4 relative", children: [
|
|
12729
|
+
/* @__PURE__ */ q("div", { className: X("flex flex-col gap-2", h === "conversations" && "hidden"), children: [
|
|
12695
12730
|
/* @__PURE__ */ u(qb, { customerId: o, customerEmail: r, queryApiBase: n, children: /* @__PURE__ */ u(
|
|
12696
12731
|
Qt,
|
|
12697
12732
|
{
|
|
12698
12733
|
target: "slot.header",
|
|
12699
|
-
context:
|
|
12734
|
+
context: W,
|
|
12700
12735
|
className: "flex-none"
|
|
12701
12736
|
}
|
|
12702
12737
|
) }),
|
|
@@ -12704,7 +12739,7 @@ const Fb = ({ ...e }) => {
|
|
|
12704
12739
|
Qt,
|
|
12705
12740
|
{
|
|
12706
12741
|
target: "slot.content",
|
|
12707
|
-
context:
|
|
12742
|
+
context: W,
|
|
12708
12743
|
className: "flex flex-col gap-2"
|
|
12709
12744
|
}
|
|
12710
12745
|
)
|
|
@@ -12717,7 +12752,7 @@ const Fb = ({ ...e }) => {
|
|
|
12717
12752
|
]
|
|
12718
12753
|
}
|
|
12719
12754
|
),
|
|
12720
|
-
/* @__PURE__ */
|
|
12755
|
+
/* @__PURE__ */ q(
|
|
12721
12756
|
"div",
|
|
12722
12757
|
{
|
|
12723
12758
|
"data-id": "secondary-panel",
|
|
@@ -12725,14 +12760,14 @@ const Fb = ({ ...e }) => {
|
|
|
12725
12760
|
style: { flexBasis: c ? `${100 - g}%` : "100%" },
|
|
12726
12761
|
children: [
|
|
12727
12762
|
/* @__PURE__ */ u("div", { className: "flex-1 overflow-hidden", children: y === "error" ? /* @__PURE__ */ u("div", { className: "flex h-full items-center justify-center p-6 text-center text-sm text-muted-foreground", children: /* @__PURE__ */ u("p", { children: "Zendesk Messenger could not be loaded. Check that a valid Snippet Key is configured." }) }) : /* @__PURE__ */ u(Xb, {}) }),
|
|
12728
|
-
/* @__PURE__ */
|
|
12763
|
+
/* @__PURE__ */ q("div", { className: "flex flex-wrap items-center justify-end gap-1 py-1 mr-4 text-xs text-zinc-500", children: [
|
|
12729
12764
|
/* @__PURE__ */ u(
|
|
12730
12765
|
Qt,
|
|
12731
12766
|
{
|
|
12732
12767
|
target: "slot.footer",
|
|
12733
|
-
context:
|
|
12768
|
+
context: W,
|
|
12734
12769
|
className: "flex items-center gap-1",
|
|
12735
|
-
fallback: /* @__PURE__ */
|
|
12770
|
+
fallback: /* @__PURE__ */ q(_e, { children: [
|
|
12736
12771
|
/* @__PURE__ */ u("div", { children: "powered by" }),
|
|
12737
12772
|
/* @__PURE__ */ u(Gb, { href: "https://zendesk.com", children: "Zendesk" })
|
|
12738
12773
|
] })
|
|
@@ -12742,12 +12777,12 @@ const Fb = ({ ...e }) => {
|
|
|
12742
12777
|
Qt,
|
|
12743
12778
|
{
|
|
12744
12779
|
target: "slot.footer-links",
|
|
12745
|
-
context:
|
|
12780
|
+
context: W,
|
|
12746
12781
|
className: "flex items-center gap-1",
|
|
12747
12782
|
separator: /* @__PURE__ */ u("span", { className: "text-zinc-300", children: "/" }),
|
|
12748
|
-
render: ({ children:
|
|
12749
|
-
|
|
12750
|
-
|
|
12783
|
+
render: ({ children: M, index: F }) => /* @__PURE__ */ q(_e, { children: [
|
|
12784
|
+
F === 0 && /* @__PURE__ */ u("span", { className: "text-zinc-300", children: "+" }),
|
|
12785
|
+
M
|
|
12751
12786
|
] })
|
|
12752
12787
|
}
|
|
12753
12788
|
)
|
|
@@ -12755,7 +12790,7 @@ const Fb = ({ ...e }) => {
|
|
|
12755
12790
|
]
|
|
12756
12791
|
}
|
|
12757
12792
|
),
|
|
12758
|
-
c && /* @__PURE__ */
|
|
12793
|
+
c && /* @__PURE__ */ q(_e, { children: [
|
|
12759
12794
|
/* @__PURE__ */ u(
|
|
12760
12795
|
"div",
|
|
12761
12796
|
{
|
|
@@ -12764,7 +12799,7 @@ const Fb = ({ ...e }) => {
|
|
|
12764
12799
|
l ? "top-0 bottom-0 w-3 -ml-2.5 cursor-col-resize" : "w-full h-3 -mt-2.5 cursor-row-resize"
|
|
12765
12800
|
),
|
|
12766
12801
|
style: l ? { left: `${g}%` } : { top: `${g}%` },
|
|
12767
|
-
onMouseDown:
|
|
12802
|
+
onMouseDown: L,
|
|
12768
12803
|
role: "separator",
|
|
12769
12804
|
"aria-label": "Resize panels",
|
|
12770
12805
|
"aria-orientation": l ? "vertical" : "horizontal",
|