@fluid-app/fluid-cli-theme-dev 0.1.355 → 0.1.356
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/dist-cli-preview/.vite/manifest.json +17 -17
- package/dist/dist-cli-preview/account-screens.js +1 -1
- package/dist/dist-cli-preview/chunks/{MediaScreen-C9WQuukD.js → MediaScreen-KY8P9C_w.js} +1 -1
- package/dist/dist-cli-preview/chunks/{MemberShareablesScreen-CGivIdIx.js → MemberShareablesScreen-CA_NrRwS.js} +1 -1
- package/dist/dist-cli-preview/chunks/{MessagingScreen-CTJ4f67B.js → MessagingScreen-qhSDQojd.js} +706 -701
- package/dist/dist-cli-preview/chunks/{PlaylistsScreen-3hqURzMW.js → PlaylistsScreen-Fy2GyHxX.js} +1 -1
- package/dist/dist-cli-preview/chunks/{cli-preview-DgxlJOy2.js → cli-preview-G_JREYuZ.js} +4 -4
- package/dist/dist-cli-preview/chunks/{mount-account-screen-D7zcxbU7.js → mount-account-screen-DE_Lt_k7.js} +2 -2
- package/dist/dist-cli-preview/chunks/{navigate-account-screen-CCvthmsS.js → navigate-account-screen-C43OcizS.js} +1 -1
- package/package.json +2 -2
package/dist/dist-cli-preview/chunks/{MessagingScreen-CTJ4f67B.js → MessagingScreen-qhSDQojd.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { c as Ge, l as S, az as Cv, j as m, ab as Sv, am as Av, M as Fe, aD as Ev, J as sn, G as wi, ay as Ee, K as Ht, X as nd, ax as Qa, O as Jm, R as eg, aw as tg, as as Tv, ar as Ya, H as Qo, L as Dv, ao as Mv, aE as jv, aF as Nv, D as Pv, a9 as Fv, N as Iv, Z as Lv, a8 as Rv, B as zv, E as Ov, z as $v } from "./account-screen-runtime-CVtcJ0Fb.js";
|
|
2
|
-
import { _ as rr, u as tr, o as
|
|
2
|
+
import { _ as rr, u as tr, o as Fr, d as Ne, s as P, n as Y, b as je, v as Bv, a as on, w as te, q as Se, r as Ir, e as Gr, c as ir, k as ng, P as rg, R as rd, C as ig, Z as Vv, x as Uv, y as Hv, z as qv, A as Wv, B as sr } from "./schemas-CK5ZjT20.js";
|
|
3
3
|
import { u as Hs, S as Kv } from "./useInfiniteQuery-pbRaLvNe.js";
|
|
4
4
|
import { a as Gv, c as Zv, b as Qv, S as ju, I as Wl, u as Yv } from "./sheet-haptics-context-N2vLfwOc.js";
|
|
5
5
|
import { I as Fn, S as sg, a as Jn, Q as Xv, b as Jv, s as og, d as e_, e as qn } from "./screen-route-slug-utils-MtfouJSS.js";
|
|
6
6
|
import { E as di, M as qs, D as Ci, a as Si, b as Ai, j as id, c as tt, i as Xa, C as fi, P as sd, g as od, h as ad } from "./MobileActionSheet-k67c8wJk.js";
|
|
7
7
|
import { E as ud } from "./eye-Br576SOE.js";
|
|
8
|
-
import { c as ld, M as cd, a as t_, T as n_, d as
|
|
8
|
+
import { c as ld, M as cd, a as t_, T as n_, d as Lr, m as r_, e as Jr, f as Ws, g as Ei, h as i_, i as s_, j as o_, k as a_, l as u_, n as l_, o as Kl, p as dd, q as c_, D as d_, N as bt, r as ag, F as Gl, s as f_, t as h_, v as p_, w as m_, R as g_, L as b_, b as x_, u as y_, S as v_, P as __, E as k_ } from "./index-oaLlxtXm.js";
|
|
9
9
|
import { t as pt, d as Ja, c as eu, u as Ti, v as wt, x as w_, m as fd, a as Zl, b as hd, L as pd, q as mt, r as C_ } from "./isAfter-DAVNjOeD.js";
|
|
10
10
|
import { U as S_ } from "./user-CRiDn40l.js";
|
|
11
11
|
import { L as A_ } from "./log-out-uqUyU7ZP.js";
|
|
@@ -431,7 +431,7 @@ function M2({
|
|
|
431
431
|
}
|
|
432
432
|
);
|
|
433
433
|
}
|
|
434
|
-
function
|
|
434
|
+
function Ur({
|
|
435
435
|
icon: e,
|
|
436
436
|
variant: t = "ghost",
|
|
437
437
|
size: n = "icon",
|
|
@@ -1240,7 +1240,7 @@ function Ft(e) {
|
|
|
1240
1240
|
}
|
|
1241
1241
|
return e;
|
|
1242
1242
|
}
|
|
1243
|
-
function
|
|
1243
|
+
function Dr(e) {
|
|
1244
1244
|
var t = Ft(e).Element;
|
|
1245
1245
|
return e instanceof t || e instanceof Element;
|
|
1246
1246
|
}
|
|
@@ -1299,7 +1299,7 @@ const wg = {
|
|
|
1299
1299
|
function bn(e) {
|
|
1300
1300
|
return e.split("-")[0];
|
|
1301
1301
|
}
|
|
1302
|
-
var
|
|
1302
|
+
var Ar = Math.max, na = Math.min, mi = Math.round;
|
|
1303
1303
|
function Jl() {
|
|
1304
1304
|
var e = navigator.userAgentData;
|
|
1305
1305
|
return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
|
|
@@ -1313,7 +1313,7 @@ function gi(e, t, n) {
|
|
|
1313
1313
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
1314
1314
|
var r = e.getBoundingClientRect(), i = 1, s = 1;
|
|
1315
1315
|
t && qt(e) && (i = e.offsetWidth > 0 && mi(r.width) / e.offsetWidth || 1, s = e.offsetHeight > 0 && mi(r.height) / e.offsetHeight || 1);
|
|
1316
|
-
var o =
|
|
1316
|
+
var o = Dr(e) ? Ft(e) : window, a = o.visualViewport, u = !Cg() && n, l = (r.left + (u && a ? a.offsetLeft : 0)) / i, c = (r.top + (u && a ? a.offsetTop : 0)) / s, d = r.width / i, f = r.height / s;
|
|
1317
1317
|
return {
|
|
1318
1318
|
width: d,
|
|
1319
1319
|
height: f,
|
|
@@ -1355,7 +1355,7 @@ function kk(e) {
|
|
|
1355
1355
|
return ["table", "td", "th"].indexOf(yn(e)) >= 0;
|
|
1356
1356
|
}
|
|
1357
1357
|
function cr(e) {
|
|
1358
|
-
return ((
|
|
1358
|
+
return ((Dr(e) ? e.ownerDocument : (
|
|
1359
1359
|
// $FlowFixMe[prop-missing]
|
|
1360
1360
|
e.document
|
|
1361
1361
|
)) || window.document).documentElement;
|
|
@@ -1401,7 +1401,7 @@ function vd(e) {
|
|
|
1401
1401
|
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
1402
1402
|
}
|
|
1403
1403
|
function ss(e, t, n) {
|
|
1404
|
-
return
|
|
1404
|
+
return Ar(e, na(t, n));
|
|
1405
1405
|
}
|
|
1406
1406
|
function Ck(e, t, n) {
|
|
1407
1407
|
var r = ss(e, t, n);
|
|
@@ -1493,20 +1493,20 @@ function bh(e) {
|
|
|
1493
1493
|
h -= C - r.width, h *= u ? 1 : -1;
|
|
1494
1494
|
}
|
|
1495
1495
|
}
|
|
1496
|
-
var
|
|
1496
|
+
var j = Object.assign({
|
|
1497
1497
|
position: a
|
|
1498
|
-
}, l && Dk),
|
|
1498
|
+
}, l && Dk), N = c === !0 ? Mk({
|
|
1499
1499
|
x: h,
|
|
1500
1500
|
y: b
|
|
1501
1501
|
}, Ft(n)) : {
|
|
1502
1502
|
x: h,
|
|
1503
1503
|
y: b
|
|
1504
1504
|
};
|
|
1505
|
-
if (h =
|
|
1506
|
-
var
|
|
1507
|
-
return Object.assign({},
|
|
1505
|
+
if (h = N.x, b = N.y, u) {
|
|
1506
|
+
var z;
|
|
1507
|
+
return Object.assign({}, j, (z = {}, z[v] = y ? "0" : "", z[_] = g ? "0" : "", z.transform = (w.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + b + "px)" : "translate3d(" + h + "px, " + b + "px, 0)", z));
|
|
1508
1508
|
}
|
|
1509
|
-
return Object.assign({},
|
|
1509
|
+
return Object.assign({}, j, (t = {}, t[v] = y ? b + "px" : "", t[_] = g ? h + "px" : "", t.transform = "", t));
|
|
1510
1510
|
}
|
|
1511
1511
|
function jk(e) {
|
|
1512
1512
|
var t = e.state, n = e.options, r = n.gpuAcceleration, i = r === void 0 ? !0 : r, s = n.adaptive, o = s === void 0 ? !0 : s, a = n.roundOffsets, u = a === void 0 ? !0 : a, l = {
|
|
@@ -1605,8 +1605,8 @@ function Rk(e, t) {
|
|
|
1605
1605
|
};
|
|
1606
1606
|
}
|
|
1607
1607
|
function zk(e) {
|
|
1608
|
-
var t, n = cr(e), r = _d(e), i = (t = e.ownerDocument) == null ? void 0 : t.body, s =
|
|
1609
|
-
return In(i || n).direction === "rtl" && (a +=
|
|
1608
|
+
var t, n = cr(e), r = _d(e), i = (t = e.ownerDocument) == null ? void 0 : t.body, s = Ar(n.scrollWidth, n.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), o = Ar(n.scrollHeight, n.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0), a = -r.scrollLeft + kd(e), u = -r.scrollTop;
|
|
1609
|
+
return In(i || n).direction === "rtl" && (a += Ar(n.clientWidth, i ? i.clientWidth : 0) - s), {
|
|
1610
1610
|
width: s,
|
|
1611
1611
|
height: o,
|
|
1612
1612
|
x: a,
|
|
@@ -1642,18 +1642,18 @@ function Ok(e, t) {
|
|
|
1642
1642
|
return n.top = n.top + e.clientTop, n.left = n.left + e.clientLeft, n.bottom = n.top + e.clientHeight, n.right = n.left + e.clientWidth, n.width = e.clientWidth, n.height = e.clientHeight, n.x = n.left, n.y = n.top, n;
|
|
1643
1643
|
}
|
|
1644
1644
|
function yh(e, t, n) {
|
|
1645
|
-
return t === _g ? ec(Rk(e, n)) :
|
|
1645
|
+
return t === _g ? ec(Rk(e, n)) : Dr(t) ? Ok(t, n) : ec(zk(cr(e)));
|
|
1646
1646
|
}
|
|
1647
1647
|
function $k(e) {
|
|
1648
1648
|
var t = os(nu(e)), n = ["absolute", "fixed"].indexOf(In(e).position) >= 0, r = n && qt(e) ? Gs(e) : e;
|
|
1649
|
-
return
|
|
1650
|
-
return
|
|
1649
|
+
return Dr(r) ? t.filter(function(i) {
|
|
1650
|
+
return Dr(i) && Sg(i, r) && yn(i) !== "body";
|
|
1651
1651
|
}) : [];
|
|
1652
1652
|
}
|
|
1653
1653
|
function Bk(e, t, n, r) {
|
|
1654
1654
|
var i = t === "clippingParents" ? $k(e) : [].concat(t), s = [].concat(i, [n]), o = s[0], a = s.reduce(function(u, l) {
|
|
1655
1655
|
var c = yh(e, l, r);
|
|
1656
|
-
return u.top =
|
|
1656
|
+
return u.top = Ar(c.top, u.top), u.right = na(c.right, u.right), u.bottom = na(c.bottom, u.bottom), u.left = Ar(c.left, u.left), u;
|
|
1657
1657
|
}, yh(e, o, r));
|
|
1658
1658
|
return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
|
|
1659
1659
|
}
|
|
@@ -1706,7 +1706,7 @@ function Mg(e) {
|
|
|
1706
1706
|
}
|
|
1707
1707
|
function ws(e, t) {
|
|
1708
1708
|
t === void 0 && (t = {});
|
|
1709
|
-
var n = t, r = n.placement, i = r === void 0 ? e.placement : r, s = n.strategy, o = s === void 0 ? e.strategy : s, a = n.boundary, u = a === void 0 ? uk : a, l = n.rootBoundary, c = l === void 0 ? _g : l, d = n.elementContext, f = d === void 0 ? Vi : d, h = n.altBoundary, p = h === void 0 ? !1 : h, b = n.padding, x = b === void 0 ? 0 : b, g = Eg(typeof x != "number" ? x : Tg(x, Ks)), y = f === Vi ? lk : Vi, _ = e.rects.popper, v = e.elements[p ? y : f], w = Bk(
|
|
1709
|
+
var n = t, r = n.placement, i = r === void 0 ? e.placement : r, s = n.strategy, o = s === void 0 ? e.strategy : s, a = n.boundary, u = a === void 0 ? uk : a, l = n.rootBoundary, c = l === void 0 ? _g : l, d = n.elementContext, f = d === void 0 ? Vi : d, h = n.altBoundary, p = h === void 0 ? !1 : h, b = n.padding, x = b === void 0 ? 0 : b, g = Eg(typeof x != "number" ? x : Tg(x, Ks)), y = f === Vi ? lk : Vi, _ = e.rects.popper, v = e.elements[p ? y : f], w = Bk(Dr(v) ? v : v.contextElement || cr(e.elements.popper), u, c, o), k = gi(e.elements.reference), E = Mg({
|
|
1710
1710
|
reference: k,
|
|
1711
1711
|
element: _,
|
|
1712
1712
|
placement: i
|
|
@@ -1715,12 +1715,12 @@ function ws(e, t) {
|
|
|
1715
1715
|
bottom: M.bottom - w.bottom + g.bottom,
|
|
1716
1716
|
left: w.left - M.left + g.left,
|
|
1717
1717
|
right: M.right - w.right + g.right
|
|
1718
|
-
},
|
|
1719
|
-
if (f === Vi &&
|
|
1720
|
-
var
|
|
1721
|
-
Object.keys(C).forEach(function(
|
|
1722
|
-
var B = [Gt, Kt].indexOf(
|
|
1723
|
-
C[
|
|
1718
|
+
}, j = e.modifiersData.offset;
|
|
1719
|
+
if (f === Vi && j) {
|
|
1720
|
+
var N = j[i];
|
|
1721
|
+
Object.keys(C).forEach(function(z) {
|
|
1722
|
+
var B = [Gt, Kt].indexOf(z) >= 0 ? 1 : -1, L = [At, Kt].indexOf(z) >= 0 ? "y" : "x";
|
|
1723
|
+
C[z] += N[L] * B;
|
|
1724
1724
|
});
|
|
1725
1725
|
}
|
|
1726
1726
|
return C;
|
|
@@ -1754,8 +1754,8 @@ function Uk(e) {
|
|
|
1754
1754
|
function Hk(e) {
|
|
1755
1755
|
var t = e.state, n = e.options, r = e.name;
|
|
1756
1756
|
if (!t.modifiersData[r]._skip) {
|
|
1757
|
-
for (var i = n.mainAxis, s = i === void 0 ? !0 : i, o = n.altAxis, a = o === void 0 ? !0 : o, u = n.fallbackPlacements, l = n.padding, c = n.boundary, d = n.rootBoundary, f = n.altBoundary, h = n.flipVariations, p = h === void 0 ? !0 : h, b = n.allowedAutoPlacements, x = t.options.placement, g = bn(x), y = g === x, _ = u || (y || !p ? [Oo(x)] : Uk(x)), v = [x].concat(_).reduce(function(
|
|
1758
|
-
return
|
|
1757
|
+
for (var i = n.mainAxis, s = i === void 0 ? !0 : i, o = n.altAxis, a = o === void 0 ? !0 : o, u = n.fallbackPlacements, l = n.padding, c = n.boundary, d = n.rootBoundary, f = n.altBoundary, h = n.flipVariations, p = h === void 0 ? !0 : h, b = n.allowedAutoPlacements, x = t.options.placement, g = bn(x), y = g === x, _ = u || (y || !p ? [Oo(x)] : Uk(x)), v = [x].concat(_).reduce(function(O, I) {
|
|
1758
|
+
return O.concat(bn(I) === bd ? Vk(t, {
|
|
1759
1759
|
placement: I,
|
|
1760
1760
|
boundary: c,
|
|
1761
1761
|
rootBoundary: d,
|
|
@@ -1764,22 +1764,22 @@ function Hk(e) {
|
|
|
1764
1764
|
allowedAutoPlacements: b
|
|
1765
1765
|
}) : I);
|
|
1766
1766
|
}, []), w = t.rects.reference, k = t.rects.popper, E = /* @__PURE__ */ new Map(), A = !0, M = v[0], C = 0; C < v.length; C++) {
|
|
1767
|
-
var
|
|
1768
|
-
placement:
|
|
1767
|
+
var j = v[C], N = bn(j), z = bi(j) === pi, B = [At, Kt].indexOf(N) >= 0, L = B ? "width" : "height", q = ws(t, {
|
|
1768
|
+
placement: j,
|
|
1769
1769
|
boundary: c,
|
|
1770
1770
|
rootBoundary: d,
|
|
1771
1771
|
altBoundary: f,
|
|
1772
1772
|
padding: l
|
|
1773
|
-
}), U = B ?
|
|
1773
|
+
}), U = B ? z ? Gt : Et : z ? Kt : At;
|
|
1774
1774
|
w[L] > k[L] && (U = Oo(U));
|
|
1775
1775
|
var X = Oo(U), le = [];
|
|
1776
|
-
if (s && le.push(q[
|
|
1777
|
-
return
|
|
1776
|
+
if (s && le.push(q[N] <= 0), a && le.push(q[U] <= 0, q[X] <= 0), le.every(function(O) {
|
|
1777
|
+
return O;
|
|
1778
1778
|
})) {
|
|
1779
|
-
M =
|
|
1779
|
+
M = j, A = !1;
|
|
1780
1780
|
break;
|
|
1781
1781
|
}
|
|
1782
|
-
E.set(
|
|
1782
|
+
E.set(j, le);
|
|
1783
1783
|
}
|
|
1784
1784
|
if (A)
|
|
1785
1785
|
for (var T = p ? 3 : 1, me = function(I) {
|
|
@@ -1905,23 +1905,23 @@ function ew(e) {
|
|
|
1905
1905
|
} : Object.assign({
|
|
1906
1906
|
mainAxis: 0,
|
|
1907
1907
|
altAxis: 0
|
|
1908
|
-
}, M),
|
|
1908
|
+
}, M), j = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, N = {
|
|
1909
1909
|
x: 0,
|
|
1910
1910
|
y: 0
|
|
1911
1911
|
};
|
|
1912
1912
|
if (k) {
|
|
1913
1913
|
if (s) {
|
|
1914
|
-
var
|
|
1914
|
+
var z, B = v === "y" ? At : Et, L = v === "y" ? Kt : Gt, q = v === "y" ? "height" : "width", U = k[v], X = U + x[B], le = U - x[L], T = h ? -A[q] / 2 : 0, me = y === pi ? E[q] : A[q], ve = y === pi ? -A[q] : -E[q], D = t.elements.arrow, O = h && D ? yd(D) : {
|
|
1915
1915
|
width: 0,
|
|
1916
1916
|
height: 0
|
|
1917
|
-
}, I = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Ag(), $ = I[B], W = I[L], V = ss(0, E[q],
|
|
1918
|
-
k[v] = Ie,
|
|
1917
|
+
}, I = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Ag(), $ = I[B], W = I[L], V = ss(0, E[q], O[q]), J = _ ? E[q] / 2 - T - V - $ - C.mainAxis : me - V - $ - C.mainAxis, K = _ ? -E[q] / 2 + T + V + W + C.mainAxis : ve + V + W + C.mainAxis, re = t.elements.arrow && Gs(t.elements.arrow), ie = re ? v === "y" ? re.clientTop || 0 : re.clientLeft || 0 : 0, pe = (z = j?.[v]) != null ? z : 0, ue = U + J - pe - ie, Me = U + K - pe, Ie = ss(h ? na(X, ue) : X, U, h ? Ar(le, Me) : le);
|
|
1918
|
+
k[v] = Ie, N[v] = Ie - U;
|
|
1919
1919
|
}
|
|
1920
1920
|
if (a) {
|
|
1921
|
-
var ge, Re = v === "x" ? At : Et, we = v === "x" ? Kt : Gt, ye = k[w], nt = w === "y" ? "height" : "width", ze = ye + x[Re], Oe = ye - x[we], be = [At, Et].indexOf(g) !== -1, $e = (ge =
|
|
1922
|
-
k[w] = se,
|
|
1921
|
+
var ge, Re = v === "x" ? At : Et, we = v === "x" ? Kt : Gt, ye = k[w], nt = w === "y" ? "height" : "width", ze = ye + x[Re], Oe = ye - x[we], be = [At, Et].indexOf(g) !== -1, $e = (ge = j?.[w]) != null ? ge : 0, F = be ? ze : ye - E[nt] - A[nt] - $e + C.altAxis, H = be ? ye + E[nt] + A[nt] - $e - C.altAxis : Oe, se = h && be ? Ck(F, ye, H) : ss(h ? F : ze, ye, h ? H : Oe);
|
|
1922
|
+
k[w] = se, N[w] = se - ye;
|
|
1923
1923
|
}
|
|
1924
|
-
t.modifiersData[r] =
|
|
1924
|
+
t.modifiersData[r] = N;
|
|
1925
1925
|
}
|
|
1926
1926
|
}
|
|
1927
1927
|
const tw = {
|
|
@@ -2043,7 +2043,7 @@ function cw(e) {
|
|
|
2043
2043
|
setOptions: function(g) {
|
|
2044
2044
|
var y = typeof g == "function" ? g(c.options) : g;
|
|
2045
2045
|
b(), c.options = Object.assign({}, s, c.options, y), c.scrollParents = {
|
|
2046
|
-
reference:
|
|
2046
|
+
reference: Dr(a) ? os(a) : a.contextElement ? os(a.contextElement) : [],
|
|
2047
2047
|
popper: os(u)
|
|
2048
2048
|
};
|
|
2049
2049
|
var _ = aw(lw([].concat(r, c.options.modifiers)));
|
|
@@ -2156,7 +2156,7 @@ function Ch(e, t) {
|
|
|
2156
2156
|
function mw(e) {
|
|
2157
2157
|
return e.split(/\s+/).filter(Boolean);
|
|
2158
2158
|
}
|
|
2159
|
-
function
|
|
2159
|
+
function Zr(e) {
|
|
2160
2160
|
return [].concat(e);
|
|
2161
2161
|
}
|
|
2162
2162
|
function Sh(e, t) {
|
|
@@ -2209,7 +2209,7 @@ function Eh(e, t) {
|
|
|
2209
2209
|
});
|
|
2210
2210
|
}
|
|
2211
2211
|
function kw(e) {
|
|
2212
|
-
var t, n =
|
|
2212
|
+
var t, n = Zr(e), r = n[0];
|
|
2213
2213
|
return r != null && (t = r.ownerDocument) != null && t.body ? r.ownerDocument : document;
|
|
2214
2214
|
}
|
|
2215
2215
|
function ww(e, t) {
|
|
@@ -2461,18 +2461,18 @@ function Lw(e, t) {
|
|
|
2461
2461
|
var R = v.props.touch;
|
|
2462
2462
|
return Array.isArray(R) ? R : [R, 0];
|
|
2463
2463
|
}
|
|
2464
|
-
function
|
|
2464
|
+
function j() {
|
|
2465
2465
|
return C()[0] === "hold";
|
|
2466
2466
|
}
|
|
2467
|
-
function
|
|
2467
|
+
function N() {
|
|
2468
2468
|
var R;
|
|
2469
2469
|
return !!((R = v.props.render) != null && R.$$tippy);
|
|
2470
2470
|
}
|
|
2471
|
-
function
|
|
2471
|
+
function z() {
|
|
2472
2472
|
return b || e;
|
|
2473
2473
|
}
|
|
2474
2474
|
function B() {
|
|
2475
|
-
var R =
|
|
2475
|
+
var R = z().parentNode;
|
|
2476
2476
|
return R ? kw(R) : document;
|
|
2477
2477
|
}
|
|
2478
2478
|
function L() {
|
|
@@ -2495,7 +2495,7 @@ function Lw(e, t) {
|
|
|
2495
2495
|
function le() {
|
|
2496
2496
|
var R = v.props.aria;
|
|
2497
2497
|
if (R.content) {
|
|
2498
|
-
var ee = "aria-" + R.content, ae = k.id, Q =
|
|
2498
|
+
var ee = "aria-" + R.content, ae = k.id, Q = Zr(v.props.triggerTarget || e);
|
|
2499
2499
|
Q.forEach(function(ne) {
|
|
2500
2500
|
var Te = ne.getAttribute(ee);
|
|
2501
2501
|
if (v.state.isVisible)
|
|
@@ -2509,9 +2509,9 @@ function Lw(e, t) {
|
|
|
2509
2509
|
}
|
|
2510
2510
|
function T() {
|
|
2511
2511
|
if (!(M || !v.props.aria.expanded)) {
|
|
2512
|
-
var R =
|
|
2512
|
+
var R = Zr(v.props.triggerTarget || e);
|
|
2513
2513
|
R.forEach(function(ee) {
|
|
2514
|
-
v.props.interactive ? ee.setAttribute("aria-expanded", v.state.isVisible && ee ===
|
|
2514
|
+
v.props.interactive ? ee.setAttribute("aria-expanded", v.state.isVisible && ee === z() ? "true" : "false") : ee.removeAttribute("aria-expanded");
|
|
2515
2515
|
});
|
|
2516
2516
|
}
|
|
2517
2517
|
}
|
|
@@ -2524,7 +2524,7 @@ function Lw(e, t) {
|
|
|
2524
2524
|
if (!(pn.isTouch && (u || R.type === "mousedown"))) {
|
|
2525
2525
|
var ee = R.composedPath && R.composedPath()[0] || R.target;
|
|
2526
2526
|
if (!(v.props.interactive && Th(k, ee))) {
|
|
2527
|
-
if (
|
|
2527
|
+
if (Zr(v.props.triggerTarget || e).some(function(ae) {
|
|
2528
2528
|
return Th(ae, ee);
|
|
2529
2529
|
})) {
|
|
2530
2530
|
if (pn.isTouch || v.state.isVisible && v.props.trigger.indexOf("click") >= 0)
|
|
@@ -2540,16 +2540,16 @@ function Lw(e, t) {
|
|
|
2540
2540
|
function D() {
|
|
2541
2541
|
u = !0;
|
|
2542
2542
|
}
|
|
2543
|
-
function
|
|
2543
|
+
function O() {
|
|
2544
2544
|
u = !1;
|
|
2545
2545
|
}
|
|
2546
2546
|
function I() {
|
|
2547
2547
|
var R = B();
|
|
2548
|
-
R.addEventListener("mousedown", ve, !0), R.addEventListener("touchend", ve, vr), R.addEventListener("touchstart",
|
|
2548
|
+
R.addEventListener("mousedown", ve, !0), R.addEventListener("touchend", ve, vr), R.addEventListener("touchstart", O, vr), R.addEventListener("touchmove", D, vr);
|
|
2549
2549
|
}
|
|
2550
2550
|
function $() {
|
|
2551
2551
|
var R = B();
|
|
2552
|
-
R.removeEventListener("mousedown", ve, !0), R.removeEventListener("touchend", ve, vr), R.removeEventListener("touchstart",
|
|
2552
|
+
R.removeEventListener("mousedown", ve, !0), R.removeEventListener("touchend", ve, vr), R.removeEventListener("touchstart", O, vr), R.removeEventListener("touchmove", D, vr);
|
|
2553
2553
|
}
|
|
2554
2554
|
function W(R, ee) {
|
|
2555
2555
|
J(R, function() {
|
|
@@ -2570,7 +2570,7 @@ function Lw(e, t) {
|
|
|
2570
2570
|
}
|
|
2571
2571
|
function K(R, ee, ae) {
|
|
2572
2572
|
ae === void 0 && (ae = !1);
|
|
2573
|
-
var Q =
|
|
2573
|
+
var Q = Zr(v.props.triggerTarget || e);
|
|
2574
2574
|
Q.forEach(function(ne) {
|
|
2575
2575
|
ne.addEventListener(R, ee, ae), h.push({
|
|
2576
2576
|
node: ne,
|
|
@@ -2581,7 +2581,7 @@ function Lw(e, t) {
|
|
|
2581
2581
|
});
|
|
2582
2582
|
}
|
|
2583
2583
|
function re() {
|
|
2584
|
-
|
|
2584
|
+
j() && (K("touchstart", pe, {
|
|
2585
2585
|
passive: !0
|
|
2586
2586
|
}), K("touchend", Me, {
|
|
2587
2587
|
passive: !0
|
|
@@ -2616,7 +2616,7 @@ function Lw(e, t) {
|
|
|
2616
2616
|
}
|
|
2617
2617
|
}
|
|
2618
2618
|
function ue(R) {
|
|
2619
|
-
var ee = R.target, ae =
|
|
2619
|
+
var ee = R.target, ae = z().contains(ee) || k.contains(ee);
|
|
2620
2620
|
if (!(R.type === "mousemove" && ae)) {
|
|
2621
2621
|
var Q = nt().concat(k).map(function(ne) {
|
|
2622
2622
|
var Te, rt = ne._tippy, jt = (Te = rt.popperInstance) == null ? void 0 : Te.state;
|
|
@@ -2640,16 +2640,16 @@ function Lw(e, t) {
|
|
|
2640
2640
|
}
|
|
2641
2641
|
}
|
|
2642
2642
|
function Ie(R) {
|
|
2643
|
-
v.props.trigger.indexOf("focusin") < 0 && R.target !==
|
|
2643
|
+
v.props.trigger.indexOf("focusin") < 0 && R.target !== z() || v.props.interactive && R.relatedTarget && k.contains(R.relatedTarget) || Oe(R);
|
|
2644
2644
|
}
|
|
2645
2645
|
function ge(R) {
|
|
2646
|
-
return pn.isTouch ?
|
|
2646
|
+
return pn.isTouch ? j() !== R.type.indexOf("touch") >= 0 : !1;
|
|
2647
2647
|
}
|
|
2648
2648
|
function Re() {
|
|
2649
2649
|
we();
|
|
2650
|
-
var R = v.props, ee = R.popperOptions, ae = R.placement, Q = R.offset, ne = R.getReferenceClientRect, Te = R.moveTransition, rt =
|
|
2650
|
+
var R = v.props, ee = R.popperOptions, ae = R.placement, Q = R.offset, ne = R.getReferenceClientRect, Te = R.moveTransition, rt = N() ? nc(k).arrow : null, jt = ne ? {
|
|
2651
2651
|
getBoundingClientRect: ne,
|
|
2652
|
-
contextElement: ne.contextElement ||
|
|
2652
|
+
contextElement: ne.contextElement || z()
|
|
2653
2653
|
} : e, ln = {
|
|
2654
2654
|
name: "$$tippy",
|
|
2655
2655
|
enabled: !0,
|
|
@@ -2657,10 +2657,10 @@ function Lw(e, t) {
|
|
|
2657
2657
|
requires: ["computeStyles"],
|
|
2658
2658
|
fn: function(Qt) {
|
|
2659
2659
|
var Hn = Qt.state;
|
|
2660
|
-
if (
|
|
2661
|
-
var
|
|
2660
|
+
if (N()) {
|
|
2661
|
+
var Br = L(), Vr = Br.box;
|
|
2662
2662
|
["placement", "reference-hidden", "escaped"].forEach(function(pr) {
|
|
2663
|
-
pr === "placement" ?
|
|
2663
|
+
pr === "placement" ? Vr.setAttribute("data-placement", Hn.placement) : Hn.attributes.popper["data-popper-" + pr] ? Vr.setAttribute("data-" + pr, "") : Vr.removeAttribute("data-" + pr);
|
|
2664
2664
|
}), Hn.attributes.popper = {};
|
|
2665
2665
|
}
|
|
2666
2666
|
}
|
|
@@ -2690,7 +2690,7 @@ function Lw(e, t) {
|
|
|
2690
2690
|
adaptive: !Te
|
|
2691
2691
|
}
|
|
2692
2692
|
}, ln];
|
|
2693
|
-
|
|
2693
|
+
N() && rt && ct.push({
|
|
2694
2694
|
name: "arrow",
|
|
2695
2695
|
options: {
|
|
2696
2696
|
element: rt,
|
|
@@ -2706,7 +2706,7 @@ function Lw(e, t) {
|
|
|
2706
2706
|
v.popperInstance && (v.popperInstance.destroy(), v.popperInstance = null);
|
|
2707
2707
|
}
|
|
2708
2708
|
function ye() {
|
|
2709
|
-
var R = v.props.appendTo, ee, ae =
|
|
2709
|
+
var R = v.props.appendTo, ee, ae = z();
|
|
2710
2710
|
v.props.interactive && R === Fg || R === "parent" ? ee = ae.parentNode : ee = Ig(R, [ae]), ee.contains(k) || ee.appendChild(k), v.state.isMounted = !0, Re();
|
|
2711
2711
|
}
|
|
2712
2712
|
function nt() {
|
|
@@ -2748,7 +2748,7 @@ function Lw(e, t) {
|
|
|
2748
2748
|
var ee = v.props, ae = Mh(e, Object.assign({}, ee, Ah(R), {
|
|
2749
2749
|
ignoreAttributes: !0
|
|
2750
2750
|
}));
|
|
2751
|
-
v.props = ae, re(), ee.interactiveDebounce !== ae.interactiveDebounce && (me(), p = Ch(ue, ae.interactiveDebounce)), ee.triggerTarget && !ae.triggerTarget ?
|
|
2751
|
+
v.props = ae, re(), ee.interactiveDebounce !== ae.interactiveDebounce && (me(), p = Ch(ue, ae.interactiveDebounce)), ee.triggerTarget && !ae.triggerTarget ? Zr(ee.triggerTarget).forEach(function(Q) {
|
|
2752
2752
|
Q.removeAttribute("aria-expanded");
|
|
2753
2753
|
}) : ae.triggerTarget && e.removeAttribute("aria-expanded"), T(), U(), E && E(ee, ae), v.popperInstance && (Re(), nt().forEach(function(Q) {
|
|
2754
2754
|
requestAnimationFrame(Q._tippy.popperInstance.forceUpdate);
|
|
@@ -2762,19 +2762,19 @@ function Lw(e, t) {
|
|
|
2762
2762
|
}
|
|
2763
2763
|
function fe() {
|
|
2764
2764
|
var R = v.state.isVisible, ee = v.state.isDestroyed, ae = !v.state.isEnabled, Q = pn.isTouch && !v.props.touch, ne = Fu(v.props.duration, 0, Jt.duration);
|
|
2765
|
-
if (!(R || ee || ae || Q) && !
|
|
2766
|
-
if (v.state.isVisible = !0,
|
|
2765
|
+
if (!(R || ee || ae || Q) && !z().hasAttribute("disabled") && (X("onShow", [v], !1), v.props.onShow(v) !== !1)) {
|
|
2766
|
+
if (v.state.isVisible = !0, N() && (k.style.visibility = "visible"), U(), I(), v.state.isMounted || (k.style.transition = "none"), N()) {
|
|
2767
2767
|
var Te = L(), rt = Te.box, jt = Te.content;
|
|
2768
2768
|
Iu([rt, jt], 0);
|
|
2769
2769
|
}
|
|
2770
2770
|
f = function() {
|
|
2771
2771
|
var ct;
|
|
2772
2772
|
if (!(!v.state.isVisible || l)) {
|
|
2773
|
-
if (l = !0, k.offsetHeight, k.style.transition = v.props.moveTransition,
|
|
2773
|
+
if (l = !0, k.offsetHeight, k.style.transition = v.props.moveTransition, N() && v.props.animation) {
|
|
2774
2774
|
var Le = L(), Qt = Le.box, Hn = Le.content;
|
|
2775
2775
|
Iu([Qt, Hn], ne), Eh([Qt, Hn], "visible");
|
|
2776
2776
|
}
|
|
2777
|
-
le(), T(), Sh(Ru, v), (ct = v.popperInstance) == null || ct.forceUpdate(), X("onMount", [v]), v.props.animation &&
|
|
2777
|
+
le(), T(), Sh(Ru, v), (ct = v.popperInstance) == null || ct.forceUpdate(), X("onMount", [v]), v.props.animation && N() && V(ne, function() {
|
|
2778
2778
|
v.state.isShown = !0, X("onShown", [v]);
|
|
2779
2779
|
});
|
|
2780
2780
|
}
|
|
@@ -2784,11 +2784,11 @@ function Lw(e, t) {
|
|
|
2784
2784
|
function xe() {
|
|
2785
2785
|
var R = !v.state.isVisible, ee = v.state.isDestroyed, ae = !v.state.isEnabled, Q = Fu(v.props.duration, 1, Jt.duration);
|
|
2786
2786
|
if (!(R || ee || ae) && (X("onHide", [v], !1), v.props.onHide(v) !== !1)) {
|
|
2787
|
-
if (v.state.isVisible = !1, v.state.isShown = !1, l = !1, o = !1,
|
|
2787
|
+
if (v.state.isVisible = !1, v.state.isShown = !1, l = !1, o = !1, N() && (k.style.visibility = "hidden"), me(), $(), U(!0), N()) {
|
|
2788
2788
|
var ne = L(), Te = ne.box, rt = ne.content;
|
|
2789
2789
|
v.props.animation && (Iu([Te, rt], Q), Eh([Te, rt], "hidden"));
|
|
2790
2790
|
}
|
|
2791
|
-
le(), T(), v.props.animation ?
|
|
2791
|
+
le(), T(), v.props.animation ? N() && W(Q, v.unmount) : v.unmount();
|
|
2792
2792
|
}
|
|
2793
2793
|
}
|
|
2794
2794
|
function Qe(R) {
|
|
@@ -2983,7 +2983,7 @@ function Ed(e, t, n) {
|
|
|
2983
2983
|
predicate: (i) => Bg(i.queryKey, t)
|
|
2984
2984
|
}).forEach((i) => n(i.queryKey));
|
|
2985
2985
|
}
|
|
2986
|
-
async function
|
|
2986
|
+
async function ei(e, t) {
|
|
2987
2987
|
const n = e.getQueryCache().findAll({
|
|
2988
2988
|
predicate: (r) => Ad(r.queryKey, t)
|
|
2989
2989
|
});
|
|
@@ -3386,7 +3386,7 @@ function Ph({
|
|
|
3386
3386
|
);
|
|
3387
3387
|
});
|
|
3388
3388
|
}
|
|
3389
|
-
function
|
|
3389
|
+
function ti(e) {
|
|
3390
3390
|
if (!e)
|
|
3391
3391
|
return [];
|
|
3392
3392
|
if (typeof Intl < "u" && typeof Intl.Segmenter == "function") {
|
|
@@ -3407,7 +3407,7 @@ function Hw(e) {
|
|
|
3407
3407
|
const r = e[n];
|
|
3408
3408
|
if (typeof r != "number" || r === 0)
|
|
3409
3409
|
continue;
|
|
3410
|
-
const i =
|
|
3410
|
+
const i = ti(n);
|
|
3411
3411
|
for (const s of i)
|
|
3412
3412
|
t[s] = (t[s] || 0) + r;
|
|
3413
3413
|
}
|
|
@@ -3467,7 +3467,7 @@ const en = (e) => {
|
|
|
3467
3467
|
return { isChannel: !0, type: "downline" };
|
|
3468
3468
|
throw new Error("Invalid conversation type");
|
|
3469
3469
|
}, Ww = (e, t) => t.phone === e.name ? "#" : t.email === e.name ? "@" : [t.first_name?.charAt(0), t.last_name?.charAt(0)].filter(Boolean).join("") || "?", Kw = (e) => e.startsWith("image/") ? "image" : e.startsWith("video/") ? "video" : e === "application/pdf" ? "pdf" : e.includes("spreadsheet") || e.includes("excel") || e.includes("sheet") || e === "text/csv" ? "sheets" : e.includes("powerpoint") || e.includes("presentation") ? "powerpoint" : e.includes("document") || e.includes("word") || e.includes("rtf") ? "docx" : e.startsWith("text/") ? "txt" : e.includes("zip") || e.includes("compressed") || e.includes("archive") || e.includes("tar") || e.includes("gzip") ? "compressed" : e.startsWith("audio/") ? "audio" : "unknown";
|
|
3470
|
-
function
|
|
3470
|
+
function Qr(e) {
|
|
3471
3471
|
const t = e.match(/^\p{Emoji_Presentation}/u);
|
|
3472
3472
|
if (t) {
|
|
3473
3473
|
const n = t[0], r = e.substring(n.length).trimStart();
|
|
@@ -3528,7 +3528,7 @@ function Qw(e) {
|
|
|
3528
3528
|
...Sd
|
|
3529
3529
|
});
|
|
3530
3530
|
}
|
|
3531
|
-
function
|
|
3531
|
+
function Rr(e) {
|
|
3532
3532
|
const t = _t(), n = sn();
|
|
3533
3533
|
return wi({
|
|
3534
3534
|
queryKey: oe.conversationMetadata(e),
|
|
@@ -3618,7 +3618,7 @@ function t3() {
|
|
|
3618
3618
|
},
|
|
3619
3619
|
onMutate: async (i) => {
|
|
3620
3620
|
const { conversationId: s, messageId: o, reactionString: a } = i;
|
|
3621
|
-
await
|
|
3621
|
+
await ei(t, s), await ic(t, s);
|
|
3622
3622
|
const u = ia(
|
|
3623
3623
|
t,
|
|
3624
3624
|
s,
|
|
@@ -3664,7 +3664,7 @@ function t3() {
|
|
|
3664
3664
|
},
|
|
3665
3665
|
onMutate: async (i) => {
|
|
3666
3666
|
const { conversationId: s, messageId: o } = i;
|
|
3667
|
-
await
|
|
3667
|
+
await ei(t, s), await ic(t, s);
|
|
3668
3668
|
const a = ia(
|
|
3669
3669
|
t,
|
|
3670
3670
|
s,
|
|
@@ -3955,7 +3955,7 @@ function i3(e, t) {
|
|
|
3955
3955
|
}
|
|
3956
3956
|
});
|
|
3957
3957
|
}
|
|
3958
|
-
const s3 =
|
|
3958
|
+
const s3 = Fr({
|
|
3959
3959
|
id: Y(),
|
|
3960
3960
|
first_name: P().nullable(),
|
|
3961
3961
|
last_name: P().nullable(),
|
|
@@ -3972,11 +3972,11 @@ const s3 = Ir({
|
|
|
3972
3972
|
last_online: P().nullable().optional(),
|
|
3973
3973
|
country_name: P().nullable(),
|
|
3974
3974
|
pro_user: Ne()
|
|
3975
|
-
}), o3 =
|
|
3975
|
+
}), o3 = Fr({
|
|
3976
3976
|
channelName: P().min(1, "Channel name is required"),
|
|
3977
3977
|
description: P().max(120, "120 character limit"),
|
|
3978
3978
|
visibility: rr(["public", "team", "broadcast"])
|
|
3979
|
-
}), a3 =
|
|
3979
|
+
}), a3 = Fr({
|
|
3980
3980
|
emoji: P().min(1).default("📣"),
|
|
3981
3981
|
autoAdd: Ne().default(!1),
|
|
3982
3982
|
addAllUsers: Ne().default(!1),
|
|
@@ -4340,10 +4340,10 @@ function x3(e) {
|
|
|
4340
4340
|
if (t)
|
|
4341
4341
|
return t.getAttribute("content");
|
|
4342
4342
|
}
|
|
4343
|
-
const y3 =
|
|
4343
|
+
const y3 = Ir(
|
|
4344
4344
|
P(),
|
|
4345
4345
|
Y()
|
|
4346
|
-
), zu =
|
|
4346
|
+
), zu = Fr({
|
|
4347
4347
|
id: Y(),
|
|
4348
4348
|
body: P(),
|
|
4349
4349
|
type: P(),
|
|
@@ -4353,17 +4353,17 @@ const y3 = Lr(
|
|
|
4353
4353
|
edited_at: P().nullable().optional(),
|
|
4354
4354
|
conversation_id: Y(),
|
|
4355
4355
|
status: P(),
|
|
4356
|
-
attachments: je(
|
|
4357
|
-
reaction_stats:
|
|
4356
|
+
attachments: je(Gr()),
|
|
4357
|
+
reaction_stats: Ir(P(), Y()).nullable(),
|
|
4358
4358
|
reaction: P().nullable().optional(),
|
|
4359
|
-
metadata:
|
|
4359
|
+
metadata: Gr().optional(),
|
|
4360
4360
|
emoji_only_count: Y().optional(),
|
|
4361
|
-
mentioned_recipients: je(
|
|
4361
|
+
mentioned_recipients: je(Gr()),
|
|
4362
4362
|
sent_at: P().optional(),
|
|
4363
4363
|
pinned: Ne().optional(),
|
|
4364
4364
|
scheduled_at: P().optional(),
|
|
4365
|
-
replied_to_message:
|
|
4366
|
-
sender_recipient:
|
|
4365
|
+
replied_to_message: Gr().nullable().optional(),
|
|
4366
|
+
sender_recipient: Gr(),
|
|
4367
4367
|
seen_by: ir(),
|
|
4368
4368
|
seen_by_count: ir()
|
|
4369
4369
|
}).passthrough(), v3 = te({
|
|
@@ -4416,7 +4416,7 @@ const y3 = Lr(
|
|
|
4416
4416
|
status: P().nullable(),
|
|
4417
4417
|
phone_status: P().nullable()
|
|
4418
4418
|
})
|
|
4419
|
-
}), T3 =
|
|
4419
|
+
}), T3 = Fr({
|
|
4420
4420
|
type: Se("scraped_message_link"),
|
|
4421
4421
|
message_id: Y(),
|
|
4422
4422
|
conversation_id: Y()
|
|
@@ -4454,7 +4454,7 @@ const y3 = Lr(
|
|
|
4454
4454
|
badge: Y(),
|
|
4455
4455
|
body: P(),
|
|
4456
4456
|
title: P().nullable().optional(),
|
|
4457
|
-
data:
|
|
4457
|
+
data: Ir(P(), Gr()),
|
|
4458
4458
|
redirect_url: P()
|
|
4459
4459
|
}), F3 = 1200;
|
|
4460
4460
|
function I3(e) {
|
|
@@ -4541,8 +4541,8 @@ function I3(e) {
|
|
|
4541
4541
|
p = null;
|
|
4542
4542
|
}, _ = (A, M) => {
|
|
4543
4543
|
try {
|
|
4544
|
-
const C = JSON.parse(A),
|
|
4545
|
-
return
|
|
4544
|
+
const C = JSON.parse(A), j = M.safeParse(C);
|
|
4545
|
+
return j.success ? j.data : (console.warn("[ws] schema validation failed", j.error.issues), C);
|
|
4546
4546
|
} catch (C) {
|
|
4547
4547
|
return console.warn("[ws] json parse failed", C), A;
|
|
4548
4548
|
}
|
|
@@ -4555,41 +4555,41 @@ function I3(e) {
|
|
|
4555
4555
|
const C = M.data;
|
|
4556
4556
|
switch (C.type) {
|
|
4557
4557
|
case "new_message": {
|
|
4558
|
-
const
|
|
4558
|
+
const j = _(C.message, zu);
|
|
4559
4559
|
try {
|
|
4560
|
-
const
|
|
4561
|
-
|
|
4560
|
+
const N = j;
|
|
4561
|
+
ei(u, N.conversation_id), sc({
|
|
4562
4562
|
queryClient: u,
|
|
4563
|
-
conversationId:
|
|
4564
|
-
message:
|
|
4563
|
+
conversationId: N.conversation_id,
|
|
4564
|
+
message: N,
|
|
4565
4565
|
clientMessageId: (() => {
|
|
4566
|
-
const q =
|
|
4566
|
+
const q = j?.metadata?.client_message_id;
|
|
4567
4567
|
return q != null ? String(q) : void 0;
|
|
4568
4568
|
})()
|
|
4569
4569
|
});
|
|
4570
|
-
const
|
|
4571
|
-
typeof r == "number" &&
|
|
4570
|
+
const z = j.sender_recipient?.id;
|
|
4571
|
+
typeof r == "number" && z === r || (sa({
|
|
4572
4572
|
queryClient: u,
|
|
4573
4573
|
conversation: {
|
|
4574
|
-
id:
|
|
4574
|
+
id: N.conversation_id,
|
|
4575
4575
|
unread: !0,
|
|
4576
4576
|
unread_messages_count: (() => {
|
|
4577
4577
|
const L = u.getQueryData(
|
|
4578
|
-
oe.conversationMetadata(
|
|
4578
|
+
oe.conversationMetadata(N.conversation_id)
|
|
4579
4579
|
);
|
|
4580
4580
|
return (typeof L?.unread_messages_count == "number" ? L.unread_messages_count : (() => {
|
|
4581
4581
|
const X = u.getQueryData(
|
|
4582
4582
|
oe.listConversations()
|
|
4583
|
-
)?.pages?.flatMap((le) => le[1].items).find((le) => le.id ===
|
|
4583
|
+
)?.pages?.flatMap((le) => le[1].items).find((le) => le.id === N.conversation_id);
|
|
4584
4584
|
return typeof X?.unread_messages_count == "number" ? X.unread_messages_count : 0;
|
|
4585
4585
|
})()) + 1;
|
|
4586
4586
|
})()
|
|
4587
4587
|
}
|
|
4588
|
-
}), Bw(u,
|
|
4588
|
+
}), Bw(u, N.conversation_id));
|
|
4589
4589
|
} catch {
|
|
4590
4590
|
console.debug(
|
|
4591
4591
|
"[ws] message:new_message",
|
|
4592
|
-
|
|
4592
|
+
j,
|
|
4593
4593
|
C.conversation ?? null
|
|
4594
4594
|
);
|
|
4595
4595
|
}
|
|
@@ -4605,30 +4605,30 @@ function I3(e) {
|
|
|
4605
4605
|
break;
|
|
4606
4606
|
}
|
|
4607
4607
|
case "message_updated": {
|
|
4608
|
-
const
|
|
4608
|
+
const j = _(C.message, zu);
|
|
4609
4609
|
try {
|
|
4610
|
-
const
|
|
4611
|
-
|
|
4610
|
+
const N = j;
|
|
4611
|
+
ei(u, N.conversation_id), sc({
|
|
4612
4612
|
queryClient: u,
|
|
4613
|
-
conversationId:
|
|
4614
|
-
message:
|
|
4613
|
+
conversationId: N.conversation_id,
|
|
4614
|
+
message: N
|
|
4615
4615
|
});
|
|
4616
4616
|
} catch {
|
|
4617
|
-
console.debug("[ws] message:message_updated",
|
|
4617
|
+
console.debug("[ws] message:message_updated", j);
|
|
4618
4618
|
}
|
|
4619
4619
|
break;
|
|
4620
4620
|
}
|
|
4621
4621
|
case "message_destroyed": {
|
|
4622
|
-
const
|
|
4622
|
+
const j = _(C.message, zu);
|
|
4623
4623
|
try {
|
|
4624
|
-
const
|
|
4625
|
-
|
|
4624
|
+
const N = j;
|
|
4625
|
+
ei(u, N.conversation_id), Vg({
|
|
4626
4626
|
queryClient: u,
|
|
4627
|
-
conversationId:
|
|
4628
|
-
messageId:
|
|
4627
|
+
conversationId: N.conversation_id,
|
|
4628
|
+
messageId: N.id
|
|
4629
4629
|
});
|
|
4630
4630
|
} catch {
|
|
4631
|
-
console.debug("[ws] message:message_destroyed",
|
|
4631
|
+
console.debug("[ws] message:message_destroyed", j);
|
|
4632
4632
|
}
|
|
4633
4633
|
break;
|
|
4634
4634
|
}
|
|
@@ -4642,8 +4642,8 @@ function I3(e) {
|
|
|
4642
4642
|
}
|
|
4643
4643
|
case "update_message_reaction": {
|
|
4644
4644
|
try {
|
|
4645
|
-
const
|
|
4646
|
-
|
|
4645
|
+
const j = r != null && C.actor_recipient_id === r;
|
|
4646
|
+
ei(u, C.conversation_id), ic(u, C.conversation_id), j ? Xi({
|
|
4647
4647
|
queryClient: u,
|
|
4648
4648
|
conversationId: C.conversation_id,
|
|
4649
4649
|
messageId: C.message_id,
|
|
@@ -4735,28 +4735,28 @@ function I3(e) {
|
|
|
4735
4735
|
window.location.href
|
|
4736
4736
|
)
|
|
4737
4737
|
);
|
|
4738
|
-
} catch (
|
|
4739
|
-
console.error("[ws] failed to create consumer",
|
|
4738
|
+
} catch (N) {
|
|
4739
|
+
console.error("[ws] failed to create consumer", N);
|
|
4740
4740
|
return;
|
|
4741
4741
|
}
|
|
4742
4742
|
d(p);
|
|
4743
4743
|
let M = !1;
|
|
4744
4744
|
const C = () => {
|
|
4745
4745
|
M || (M = !0, console.debug("[ws] open", A));
|
|
4746
|
-
},
|
|
4747
|
-
M = !1, console.debug(`[ws] close: ${
|
|
4746
|
+
}, j = (N) => {
|
|
4747
|
+
M = !1, console.debug(`[ws] close: ${N}`);
|
|
4748
4748
|
};
|
|
4749
4749
|
try {
|
|
4750
4750
|
r && (b = p.subscriptions.create(
|
|
4751
4751
|
{ channel: "MessageChannel", recipient_id: r },
|
|
4752
4752
|
{
|
|
4753
4753
|
connected: C,
|
|
4754
|
-
disconnected: () =>
|
|
4755
|
-
received: (
|
|
4754
|
+
disconnected: () => j("message channel"),
|
|
4755
|
+
received: (N) => {
|
|
4756
4756
|
try {
|
|
4757
|
-
v(
|
|
4758
|
-
} catch (
|
|
4759
|
-
console.error("[ws] error handling message",
|
|
4757
|
+
v(N);
|
|
4758
|
+
} catch (z) {
|
|
4759
|
+
console.error("[ws] error handling message", z);
|
|
4760
4760
|
}
|
|
4761
4761
|
},
|
|
4762
4762
|
rejected: () => {
|
|
@@ -4767,12 +4767,12 @@ function I3(e) {
|
|
|
4767
4767
|
{ channel: "AppearanceChannel", company_id: i },
|
|
4768
4768
|
{
|
|
4769
4769
|
connected: C,
|
|
4770
|
-
disconnected: () =>
|
|
4771
|
-
received: (
|
|
4770
|
+
disconnected: () => j("appearance channel"),
|
|
4771
|
+
received: (N) => {
|
|
4772
4772
|
try {
|
|
4773
|
-
w(
|
|
4774
|
-
} catch (
|
|
4775
|
-
console.error("[ws] error handling appearance",
|
|
4773
|
+
w(N);
|
|
4774
|
+
} catch (z) {
|
|
4775
|
+
console.error("[ws] error handling appearance", z);
|
|
4776
4776
|
}
|
|
4777
4777
|
},
|
|
4778
4778
|
rejected: () => {
|
|
@@ -4783,12 +4783,12 @@ function I3(e) {
|
|
|
4783
4783
|
{ channel: "NotificationsChannel" },
|
|
4784
4784
|
{
|
|
4785
4785
|
connected: C,
|
|
4786
|
-
disconnected: () =>
|
|
4787
|
-
received: (
|
|
4786
|
+
disconnected: () => j("notifications channel"),
|
|
4787
|
+
received: (N) => {
|
|
4788
4788
|
try {
|
|
4789
|
-
k(
|
|
4790
|
-
} catch (
|
|
4791
|
-
console.error("[ws] error handling notification",
|
|
4789
|
+
k(N);
|
|
4790
|
+
} catch (z) {
|
|
4791
|
+
console.error("[ws] error handling notification", z);
|
|
4792
4792
|
}
|
|
4793
4793
|
},
|
|
4794
4794
|
rejected: () => {
|
|
@@ -4796,8 +4796,8 @@ function I3(e) {
|
|
|
4796
4796
|
}
|
|
4797
4797
|
}
|
|
4798
4798
|
));
|
|
4799
|
-
} catch (
|
|
4800
|
-
console.error("[ws] failed to create subscriptions",
|
|
4799
|
+
} catch (N) {
|
|
4800
|
+
console.error("[ws] failed to create subscriptions", N), y();
|
|
4801
4801
|
}
|
|
4802
4802
|
};
|
|
4803
4803
|
try {
|
|
@@ -4929,7 +4929,7 @@ function su({
|
|
|
4929
4929
|
}
|
|
4930
4930
|
);
|
|
4931
4931
|
}
|
|
4932
|
-
const
|
|
4932
|
+
const Hr = /* @__PURE__ */ new Map();
|
|
4933
4933
|
function Pn(e, t) {
|
|
4934
4934
|
const n = t?.serializer, [r] = S.useState(t?.defaultValue), [i] = S.useState(t?.defaultServerValue);
|
|
4935
4935
|
return $3(e, r, i, t?.storageSync, n?.parse, n?.stringify);
|
|
@@ -4951,8 +4951,8 @@ function $3(e, t, n, r = !0, i = B3, s = JSON.stringify) {
|
|
|
4951
4951
|
// useSyncExternalStore.getSnapshot
|
|
4952
4952
|
() => {
|
|
4953
4953
|
const c = yo(() => localStorage.getItem(e)) ?? null;
|
|
4954
|
-
if (
|
|
4955
|
-
o.current.parsed =
|
|
4954
|
+
if (Hr.has(e))
|
|
4955
|
+
o.current.parsed = Hr.get(e);
|
|
4956
4956
|
else if (c !== o.current.string) {
|
|
4957
4957
|
let d;
|
|
4958
4958
|
try {
|
|
@@ -4972,13 +4972,13 @@ function $3(e, t, n, r = !0, i = B3, s = JSON.stringify) {
|
|
|
4972
4972
|
), u = S.useCallback((c) => {
|
|
4973
4973
|
const d = c instanceof Function ? c(o.current.parsed) : c;
|
|
4974
4974
|
try {
|
|
4975
|
-
localStorage.setItem(e, s(d)),
|
|
4975
|
+
localStorage.setItem(e, s(d)), Hr.delete(e);
|
|
4976
4976
|
} catch {
|
|
4977
|
-
|
|
4977
|
+
Hr.set(e, d);
|
|
4978
4978
|
}
|
|
4979
4979
|
$u(e);
|
|
4980
4980
|
}, [e, s]), l = S.useCallback(() => {
|
|
4981
|
-
yo(() => localStorage.removeItem(e)),
|
|
4981
|
+
yo(() => localStorage.removeItem(e)), Hr.delete(e), $u(e);
|
|
4982
4982
|
}, [e]);
|
|
4983
4983
|
return S.useEffect(() => {
|
|
4984
4984
|
if (!r)
|
|
@@ -4991,7 +4991,7 @@ function $3(e, t, n, r = !0, i = B3, s = JSON.stringify) {
|
|
|
4991
4991
|
a,
|
|
4992
4992
|
u,
|
|
4993
4993
|
{
|
|
4994
|
-
isPersistent: a === t || !
|
|
4994
|
+
isPersistent: a === t || !Hr.has(e),
|
|
4995
4995
|
removeItem: l
|
|
4996
4996
|
}
|
|
4997
4997
|
], [e, u, a, t, l]);
|
|
@@ -5363,7 +5363,7 @@ function zh({
|
|
|
5363
5363
|
history: n,
|
|
5364
5364
|
hideMobileBackButton: r = !1
|
|
5365
5365
|
}) {
|
|
5366
|
-
const { t: i } = Ae(), { auth: s, renderImage: o } = _n(), a = $n(), u = a.currentRoute, l = o ?? ou, c = "conversationId" in u ? u.conversationId : 0, { data: d } =
|
|
5366
|
+
const { t: i } = Ae(), { auth: s, renderImage: o } = _n(), a = $n(), u = a.currentRoute, l = o ?? ou, c = "conversationId" in u ? u.conversationId : 0, { data: d } = Rr(c), f = s.currentUser, h = W3(u), p = u.view === "index";
|
|
5367
5367
|
return /* @__PURE__ */ m.jsxs("div", { className: "flex min-h-14 w-full items-center justify-between px-3 py-2 md:p-4", children: [
|
|
5368
5368
|
/* @__PURE__ */ m.jsxs("div", { className: "flex items-center gap-4", children: [
|
|
5369
5369
|
/* @__PURE__ */ m.jsxs("div", { className: "flex gap-1", children: [
|
|
@@ -5734,7 +5734,7 @@ function Tn({
|
|
|
5734
5734
|
/* @__PURE__ */ m.jsx(m.Fragment, { children: !a && d })
|
|
5735
5735
|
] });
|
|
5736
5736
|
}
|
|
5737
|
-
function
|
|
5737
|
+
function Mr(e) {
|
|
5738
5738
|
const t = e.match(/^\p{Emoji_Presentation}/u);
|
|
5739
5739
|
if (t) {
|
|
5740
5740
|
const n = t[0], r = e.substring(n.length).trimStart();
|
|
@@ -5806,7 +5806,7 @@ function Y3({
|
|
|
5806
5806
|
item: e,
|
|
5807
5807
|
renderImage: t
|
|
5808
5808
|
}) {
|
|
5809
|
-
const { emoji: n, text: r } =
|
|
5809
|
+
const { emoji: n, text: r } = Mr(e.name), i = e.avatar_url ? t({
|
|
5810
5810
|
src: e.avatar_url,
|
|
5811
5811
|
alt: e.name,
|
|
5812
5812
|
width: 20,
|
|
@@ -5821,7 +5821,7 @@ function Y3({
|
|
|
5821
5821
|
function cn({
|
|
5822
5822
|
item: e
|
|
5823
5823
|
}) {
|
|
5824
|
-
const { t } = Ae(), { auth: n, renderImage: r } = _n(), i = $n(), { data: s } =
|
|
5824
|
+
const { t } = Ae(), { auth: n, renderImage: r } = _n(), i = $n(), { data: s } = Rr(e.id), o = r ?? ou, a = n.currentUser;
|
|
5825
5825
|
if (!a) return null;
|
|
5826
5826
|
const u = a.affiliateId, l = e.recipients.filter(
|
|
5827
5827
|
(g) => g.receivable_id !== u
|
|
@@ -6064,17 +6064,17 @@ function nC({
|
|
|
6064
6064
|
}), [f, w, k]);
|
|
6065
6065
|
const E = Qw({
|
|
6066
6066
|
per_page: J3
|
|
6067
|
-
}), { data: A, isLoading: M } = Xw(), C = o?.hasDownline ?? !1,
|
|
6067
|
+
}), { data: A, isLoading: M } = Xw(), C = o?.hasDownline ?? !1, j = o?.conversation ?? null, N = E.data?.pages.flatMap((W) => W[1].items) ?? [], z = N[0];
|
|
6068
6068
|
S.useEffect(() => {
|
|
6069
|
-
d === !1 && x.view === "index" && !E.isLoading && !E.isError && !M && (
|
|
6069
|
+
d === !1 && x.view === "index" && !E.isLoading && !E.isError && !M && (z ? c.navigate({
|
|
6070
6070
|
view: "conversation",
|
|
6071
|
-
conversationId:
|
|
6071
|
+
conversationId: z.id
|
|
6072
6072
|
}) : A && c.navigate({
|
|
6073
6073
|
view: "conversation",
|
|
6074
6074
|
conversationId: A.id
|
|
6075
6075
|
}));
|
|
6076
6076
|
}, [
|
|
6077
|
-
|
|
6077
|
+
z,
|
|
6078
6078
|
E.isError,
|
|
6079
6079
|
E.isLoading,
|
|
6080
6080
|
c,
|
|
@@ -6084,7 +6084,7 @@ function nC({
|
|
|
6084
6084
|
d
|
|
6085
6085
|
]);
|
|
6086
6086
|
const B = [], L = [], q = [], U = [], X = [], le = [], T = [], me = [], ve = [];
|
|
6087
|
-
for (const W of
|
|
6087
|
+
for (const W of N)
|
|
6088
6088
|
switch (en(W).type) {
|
|
6089
6089
|
case "sms":
|
|
6090
6090
|
B.push(W);
|
|
@@ -6116,8 +6116,8 @@ function nC({
|
|
|
6116
6116
|
ve.push(W);
|
|
6117
6117
|
break;
|
|
6118
6118
|
}
|
|
6119
|
-
A && X.unshift(A),
|
|
6120
|
-
const D = E.isError ? { status: "error" } : E.isFetchingNextPage ? { status: "pending" } : E.hasNextPage ? { status: "hasMore", load: E.fetchNextPage } : { status: "done" },
|
|
6119
|
+
A && X.unshift(A), j && C && T.unshift(j);
|
|
6120
|
+
const D = E.isError ? { status: "error" } : E.isFetchingNextPage ? { status: "pending" } : E.hasNextPage ? { status: "hasMore", load: E.fetchNextPage } : { status: "done" }, O = x.view === "index" && (E.isLoading || M), I = x.view === "index" && !z && !A && !E.isLoading && !M, $ = x.view === "index";
|
|
6121
6121
|
return /* @__PURE__ */ m.jsxs(
|
|
6122
6122
|
"div",
|
|
6123
6123
|
{
|
|
@@ -6152,7 +6152,7 @@ function nC({
|
|
|
6152
6152
|
directMessages: le,
|
|
6153
6153
|
otherConversations: ve,
|
|
6154
6154
|
loadMore: D,
|
|
6155
|
-
myDownlineConversation:
|
|
6155
|
+
myDownlineConversation: j,
|
|
6156
6156
|
canUseMyDownline: s,
|
|
6157
6157
|
renderLockedDownlineItem: n
|
|
6158
6158
|
}
|
|
@@ -6194,7 +6194,7 @@ function nC({
|
|
|
6194
6194
|
style: { writingMode: "initial" },
|
|
6195
6195
|
children: [
|
|
6196
6196
|
t && /* @__PURE__ */ m.jsx("div", { className: "sticky top-0 z-10", children: t }),
|
|
6197
|
-
/* @__PURE__ */ m.jsx("div", { className: g ? "" : "mt-auto", children:
|
|
6197
|
+
/* @__PURE__ */ m.jsx("div", { className: g ? "" : "mt-auto", children: O ? /* @__PURE__ */ m.jsx(su, { label: l("loading_messaging") }) : I ? /* @__PURE__ */ m.jsx("div", { className: "flex h-full min-h-[30vh] w-full items-center justify-center", children: /* @__PURE__ */ m.jsx("p", { className: "text-[color:var(--messaging-muted-foreground,var(--color-gray-500))]", children: l("no_conversations") }) }) : /* @__PURE__ */ m.jsx(Xg.Provider, { value: b, children: e }) })
|
|
6198
6198
|
]
|
|
6199
6199
|
}
|
|
6200
6200
|
)
|
|
@@ -6209,7 +6209,7 @@ function rC({
|
|
|
6209
6209
|
renderImage: t,
|
|
6210
6210
|
onToast: n
|
|
6211
6211
|
}) {
|
|
6212
|
-
const { t: r } = Ae(), { emoji: i, text: s } =
|
|
6212
|
+
const { t: r } = Ae(), { emoji: i, text: s } = Mr(
|
|
6213
6213
|
e.name
|
|
6214
6214
|
);
|
|
6215
6215
|
return /* @__PURE__ */ m.jsxs("div", { className: "flex flex-col items-center justify-end gap-6 px-4 py-10", children: [
|
|
@@ -7083,8 +7083,8 @@ Mt.prototype.property = "";
|
|
|
7083
7083
|
Mt.prototype.spaceSeparated = !1;
|
|
7084
7084
|
Mt.prototype.space = void 0;
|
|
7085
7085
|
let wC = 0;
|
|
7086
|
-
const ke =
|
|
7087
|
-
function
|
|
7086
|
+
const ke = zr(), st = zr(), lc = zr(), Z = zr(), He = zr(), ui = zr(), Nt = zr();
|
|
7087
|
+
function zr() {
|
|
7088
7088
|
return 2 ** ++wC;
|
|
7089
7089
|
}
|
|
7090
7090
|
const cc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -8196,7 +8196,7 @@ const NC = t1([n1, CC, s1, o1, a1], "html"), Rd = t1([n1, SC, s1, o1, a1], "svg"
|
|
|
8196
8196
|
function PC(e) {
|
|
8197
8197
|
return e.join(" ").trim();
|
|
8198
8198
|
}
|
|
8199
|
-
var
|
|
8199
|
+
var qr = {}, Hu, qh;
|
|
8200
8200
|
function FC() {
|
|
8201
8201
|
if (qh) return Hu;
|
|
8202
8202
|
qh = 1;
|
|
@@ -8242,11 +8242,11 @@ function FC() {
|
|
|
8242
8242
|
}
|
|
8243
8243
|
function C(B) {
|
|
8244
8244
|
var L;
|
|
8245
|
-
for (B = B || []; L =
|
|
8245
|
+
for (B = B || []; L = j(); )
|
|
8246
8246
|
L !== !1 && B.push(L);
|
|
8247
8247
|
return B;
|
|
8248
8248
|
}
|
|
8249
|
-
function
|
|
8249
|
+
function j() {
|
|
8250
8250
|
var B = w();
|
|
8251
8251
|
if (!(l != x.charAt(0) || c != x.charAt(1))) {
|
|
8252
8252
|
for (var L = 2; d != x.charAt(L) && (c != x.charAt(L) || l != x.charAt(L + 1)); )
|
|
@@ -8260,10 +8260,10 @@ function FC() {
|
|
|
8260
8260
|
});
|
|
8261
8261
|
}
|
|
8262
8262
|
}
|
|
8263
|
-
function
|
|
8263
|
+
function N() {
|
|
8264
8264
|
var B = w(), L = A(r);
|
|
8265
8265
|
if (L) {
|
|
8266
|
-
if (
|
|
8266
|
+
if (j(), !A(i)) return E("property missing ':'");
|
|
8267
8267
|
var q = A(s), U = B({
|
|
8268
8268
|
type: h,
|
|
8269
8269
|
property: b(L[0].replace(e, d)),
|
|
@@ -8272,14 +8272,14 @@ function FC() {
|
|
|
8272
8272
|
return A(o), U;
|
|
8273
8273
|
}
|
|
8274
8274
|
}
|
|
8275
|
-
function
|
|
8275
|
+
function z() {
|
|
8276
8276
|
var B = [];
|
|
8277
8277
|
C(B);
|
|
8278
|
-
for (var L; L =
|
|
8278
|
+
for (var L; L = N(); )
|
|
8279
8279
|
L !== !1 && (B.push(L), C(B));
|
|
8280
8280
|
return B;
|
|
8281
8281
|
}
|
|
8282
|
-
return M(),
|
|
8282
|
+
return M(), z();
|
|
8283
8283
|
}
|
|
8284
8284
|
function b(x) {
|
|
8285
8285
|
return x ? x.replace(a, d) : d;
|
|
@@ -8288,12 +8288,12 @@ function FC() {
|
|
|
8288
8288
|
}
|
|
8289
8289
|
var Wh;
|
|
8290
8290
|
function IC() {
|
|
8291
|
-
if (Wh) return
|
|
8291
|
+
if (Wh) return qr;
|
|
8292
8292
|
Wh = 1;
|
|
8293
|
-
var e =
|
|
8293
|
+
var e = qr && qr.__importDefault || function(r) {
|
|
8294
8294
|
return r && r.__esModule ? r : { default: r };
|
|
8295
8295
|
};
|
|
8296
|
-
Object.defineProperty(
|
|
8296
|
+
Object.defineProperty(qr, "__esModule", { value: !0 }), qr.default = n;
|
|
8297
8297
|
const t = e(FC());
|
|
8298
8298
|
function n(r, i) {
|
|
8299
8299
|
let s = null;
|
|
@@ -8307,7 +8307,7 @@ function IC() {
|
|
|
8307
8307
|
a ? i(l, c, u) : c && (s = s || {}, s[l] = c);
|
|
8308
8308
|
}), s;
|
|
8309
8309
|
}
|
|
8310
|
-
return
|
|
8310
|
+
return qr;
|
|
8311
8311
|
}
|
|
8312
8312
|
var qi = {}, Kh;
|
|
8313
8313
|
function LC() {
|
|
@@ -8882,7 +8882,7 @@ function Ue(e) {
|
|
|
8882
8882
|
function De(e) {
|
|
8883
8883
|
return e === -2 || e === -1 || e === 32;
|
|
8884
8884
|
}
|
|
8885
|
-
const uu = fr(/\p{P}|\p{S}/u),
|
|
8885
|
+
const uu = fr(/\p{P}|\p{S}/u), jr = fr(/\s/);
|
|
8886
8886
|
function fr(e) {
|
|
8887
8887
|
return t;
|
|
8888
8888
|
function t(n) {
|
|
@@ -9072,7 +9072,7 @@ function x6(e, t, n) {
|
|
|
9072
9072
|
return Pe(e, e.attempt(this.parser.constructs.document, t, n), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
|
|
9073
9073
|
}
|
|
9074
9074
|
function xi(e) {
|
|
9075
|
-
if (e === null || Ue(e) ||
|
|
9075
|
+
if (e === null || Ue(e) || jr(e))
|
|
9076
9076
|
return 1;
|
|
9077
9077
|
if (uu(e))
|
|
9078
9078
|
return 2;
|
|
@@ -9353,16 +9353,16 @@ function D6(e, t, n) {
|
|
|
9353
9353
|
let M = 0;
|
|
9354
9354
|
return C;
|
|
9355
9355
|
function C(L) {
|
|
9356
|
-
return k.enter("lineEnding"), k.consume(L), k.exit("lineEnding"),
|
|
9357
|
-
}
|
|
9358
|
-
function N(L) {
|
|
9359
|
-
return k.enter("codeFencedFence"), De(L) ? Pe(k, j, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(L) : j(L);
|
|
9356
|
+
return k.enter("lineEnding"), k.consume(L), k.exit("lineEnding"), j;
|
|
9360
9357
|
}
|
|
9361
9358
|
function j(L) {
|
|
9362
|
-
return L
|
|
9359
|
+
return k.enter("codeFencedFence"), De(L) ? Pe(k, N, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(L) : N(L);
|
|
9360
|
+
}
|
|
9361
|
+
function N(L) {
|
|
9362
|
+
return L === a ? (k.enter("codeFencedFenceSequence"), z(L)) : A(L);
|
|
9363
9363
|
}
|
|
9364
|
-
function
|
|
9365
|
-
return L === a ? (M++, k.consume(L),
|
|
9364
|
+
function z(L) {
|
|
9365
|
+
return L === a ? (M++, k.consume(L), z) : M >= o ? (k.exit("codeFencedFenceSequence"), De(L) ? Pe(k, B, "whitespace")(L) : B(L)) : A(L);
|
|
9366
9366
|
}
|
|
9367
9367
|
function B(L) {
|
|
9368
9368
|
return L === null || ce(L) ? (k.exit("codeFencedFence"), E(L)) : A(L);
|
|
@@ -10026,21 +10026,21 @@ function sS(e, t, n) {
|
|
|
10026
10026
|
return D === 45 ? (e.consume(D), r.interrupt ? t : T) : n(D);
|
|
10027
10027
|
}
|
|
10028
10028
|
function p(D) {
|
|
10029
|
-
const
|
|
10030
|
-
return D ===
|
|
10029
|
+
const O = "CDATA[";
|
|
10030
|
+
return D === O.charCodeAt(a++) ? (e.consume(D), a === O.length ? r.interrupt ? t : N : p) : n(D);
|
|
10031
10031
|
}
|
|
10032
10032
|
function b(D) {
|
|
10033
10033
|
return yt(D) ? (e.consume(D), o = String.fromCharCode(D), x) : n(D);
|
|
10034
10034
|
}
|
|
10035
10035
|
function x(D) {
|
|
10036
10036
|
if (D === null || D === 47 || D === 62 || Ue(D)) {
|
|
10037
|
-
const
|
|
10038
|
-
return !
|
|
10037
|
+
const O = D === 47, I = o.toLowerCase();
|
|
10038
|
+
return !O && !s && ip.includes(I) ? (i = 1, r.interrupt ? t(D) : N(D)) : eS.includes(o.toLowerCase()) ? (i = 6, O ? (e.consume(D), g) : r.interrupt ? t(D) : N(D)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(D) : s ? y(D) : _(D));
|
|
10039
10039
|
}
|
|
10040
10040
|
return D === 45 || gt(D) ? (e.consume(D), o += String.fromCharCode(D), x) : n(D);
|
|
10041
10041
|
}
|
|
10042
10042
|
function g(D) {
|
|
10043
|
-
return D === 62 ? (e.consume(D), r.interrupt ? t :
|
|
10043
|
+
return D === 62 ? (e.consume(D), r.interrupt ? t : N) : n(D);
|
|
10044
10044
|
}
|
|
10045
10045
|
function y(D) {
|
|
10046
10046
|
return De(D) ? (e.consume(D), y) : C(D);
|
|
@@ -10067,41 +10067,41 @@ function sS(e, t, n) {
|
|
|
10067
10067
|
return D === 47 || D === 62 || De(D) ? _(D) : n(D);
|
|
10068
10068
|
}
|
|
10069
10069
|
function C(D) {
|
|
10070
|
-
return D === 62 ? (e.consume(D),
|
|
10071
|
-
}
|
|
10072
|
-
function N(D) {
|
|
10073
|
-
return D === null || ce(D) ? j(D) : De(D) ? (e.consume(D), N) : n(D);
|
|
10070
|
+
return D === 62 ? (e.consume(D), j) : n(D);
|
|
10074
10071
|
}
|
|
10075
10072
|
function j(D) {
|
|
10076
|
-
return D ===
|
|
10073
|
+
return D === null || ce(D) ? N(D) : De(D) ? (e.consume(D), j) : n(D);
|
|
10077
10074
|
}
|
|
10078
|
-
function
|
|
10075
|
+
function N(D) {
|
|
10076
|
+
return D === 45 && i === 2 ? (e.consume(D), q) : D === 60 && i === 1 ? (e.consume(D), U) : D === 62 && i === 4 ? (e.consume(D), me) : D === 63 && i === 3 ? (e.consume(D), T) : D === 93 && i === 5 ? (e.consume(D), le) : ce(D) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(nS, ve, z)(D)) : D === null || ce(D) ? (e.exit("htmlFlowData"), z(D)) : (e.consume(D), N);
|
|
10077
|
+
}
|
|
10078
|
+
function z(D) {
|
|
10079
10079
|
return e.check(rS, B, ve)(D);
|
|
10080
10080
|
}
|
|
10081
10081
|
function B(D) {
|
|
10082
10082
|
return e.enter("lineEnding"), e.consume(D), e.exit("lineEnding"), L;
|
|
10083
10083
|
}
|
|
10084
10084
|
function L(D) {
|
|
10085
|
-
return D === null || ce(D) ?
|
|
10085
|
+
return D === null || ce(D) ? z(D) : (e.enter("htmlFlowData"), N(D));
|
|
10086
10086
|
}
|
|
10087
10087
|
function q(D) {
|
|
10088
|
-
return D === 45 ? (e.consume(D), T) :
|
|
10088
|
+
return D === 45 ? (e.consume(D), T) : N(D);
|
|
10089
10089
|
}
|
|
10090
10090
|
function U(D) {
|
|
10091
|
-
return D === 47 ? (e.consume(D), o = "", X) :
|
|
10091
|
+
return D === 47 ? (e.consume(D), o = "", X) : N(D);
|
|
10092
10092
|
}
|
|
10093
10093
|
function X(D) {
|
|
10094
10094
|
if (D === 62) {
|
|
10095
|
-
const
|
|
10096
|
-
return ip.includes(
|
|
10095
|
+
const O = o.toLowerCase();
|
|
10096
|
+
return ip.includes(O) ? (e.consume(D), me) : N(D);
|
|
10097
10097
|
}
|
|
10098
|
-
return yt(D) && o.length < 8 ? (e.consume(D), o += String.fromCharCode(D), X) :
|
|
10098
|
+
return yt(D) && o.length < 8 ? (e.consume(D), o += String.fromCharCode(D), X) : N(D);
|
|
10099
10099
|
}
|
|
10100
10100
|
function le(D) {
|
|
10101
|
-
return D === 93 ? (e.consume(D), T) :
|
|
10101
|
+
return D === 93 ? (e.consume(D), T) : N(D);
|
|
10102
10102
|
}
|
|
10103
10103
|
function T(D) {
|
|
10104
|
-
return D === 62 ? (e.consume(D), me) : D === 45 && i === 2 ? (e.consume(D), T) :
|
|
10104
|
+
return D === 62 ? (e.consume(D), me) : D === 45 && i === 2 ? (e.consume(D), T) : N(D);
|
|
10105
10105
|
}
|
|
10106
10106
|
function me(D) {
|
|
10107
10107
|
return D === null || ce(D) ? (e.exit("htmlFlowData"), ve(D)) : (e.consume(D), me);
|
|
@@ -10193,16 +10193,16 @@ function lS(e, t, n) {
|
|
|
10193
10193
|
return T === 47 ? (e.consume(T), q) : T === 58 || T === 95 || yt(T) ? (e.consume(T), C) : ce(T) ? (o = M, U(T)) : De(T) ? (e.consume(T), M) : q(T);
|
|
10194
10194
|
}
|
|
10195
10195
|
function C(T) {
|
|
10196
|
-
return T === 45 || T === 46 || T === 58 || T === 95 || gt(T) ? (e.consume(T), C) :
|
|
10197
|
-
}
|
|
10198
|
-
function N(T) {
|
|
10199
|
-
return T === 61 ? (e.consume(T), j) : ce(T) ? (o = N, U(T)) : De(T) ? (e.consume(T), N) : M(T);
|
|
10196
|
+
return T === 45 || T === 46 || T === 58 || T === 95 || gt(T) ? (e.consume(T), C) : j(T);
|
|
10200
10197
|
}
|
|
10201
10198
|
function j(T) {
|
|
10202
|
-
return T ===
|
|
10199
|
+
return T === 61 ? (e.consume(T), N) : ce(T) ? (o = j, U(T)) : De(T) ? (e.consume(T), j) : M(T);
|
|
10203
10200
|
}
|
|
10204
|
-
function
|
|
10205
|
-
return T ===
|
|
10201
|
+
function N(T) {
|
|
10202
|
+
return T === null || T === 60 || T === 61 || T === 62 || T === 96 ? n(T) : T === 34 || T === 39 ? (e.consume(T), i = T, z) : ce(T) ? (o = N, U(T)) : De(T) ? (e.consume(T), N) : (e.consume(T), B);
|
|
10203
|
+
}
|
|
10204
|
+
function z(T) {
|
|
10205
|
+
return T === i ? (e.consume(T), i = void 0, L) : T === null ? n(T) : ce(T) ? (o = z, U(T)) : (e.consume(T), z);
|
|
10206
10206
|
}
|
|
10207
10207
|
function B(T) {
|
|
10208
10208
|
return T === null || T === 34 || T === 39 || T === 60 || T === 61 || T === 96 ? n(T) : T === 47 || T === 62 || Ue(T) ? M(T) : (e.consume(T), B);
|
|
@@ -10776,71 +10776,71 @@ function QS(e, t, n) {
|
|
|
10776
10776
|
};
|
|
10777
10777
|
let c = t.tokenize.call(l, u);
|
|
10778
10778
|
return t.resolveAll && s.push(t), l;
|
|
10779
|
-
function d(
|
|
10780
|
-
return o = Bt(o,
|
|
10779
|
+
function d(j) {
|
|
10780
|
+
return o = Bt(o, j), x(), o[o.length - 1] !== null ? [] : (A(t, 0), l.events = lu(s, l.events, l), l.events);
|
|
10781
10781
|
}
|
|
10782
|
-
function f(
|
|
10783
|
-
return XS(h(
|
|
10782
|
+
function f(j, N) {
|
|
10783
|
+
return XS(h(j), N);
|
|
10784
10784
|
}
|
|
10785
|
-
function h(
|
|
10786
|
-
return YS(o,
|
|
10785
|
+
function h(j) {
|
|
10786
|
+
return YS(o, j);
|
|
10787
10787
|
}
|
|
10788
10788
|
function p() {
|
|
10789
10789
|
const {
|
|
10790
|
-
_bufferIndex:
|
|
10791
|
-
_index:
|
|
10792
|
-
line:
|
|
10790
|
+
_bufferIndex: j,
|
|
10791
|
+
_index: N,
|
|
10792
|
+
line: z,
|
|
10793
10793
|
column: B,
|
|
10794
10794
|
offset: L
|
|
10795
10795
|
} = r;
|
|
10796
10796
|
return {
|
|
10797
|
-
_bufferIndex:
|
|
10798
|
-
_index:
|
|
10799
|
-
line:
|
|
10797
|
+
_bufferIndex: j,
|
|
10798
|
+
_index: N,
|
|
10799
|
+
line: z,
|
|
10800
10800
|
column: B,
|
|
10801
10801
|
offset: L
|
|
10802
10802
|
};
|
|
10803
10803
|
}
|
|
10804
|
-
function b(
|
|
10805
|
-
i[
|
|
10804
|
+
function b(j) {
|
|
10805
|
+
i[j.line] = j.column, C();
|
|
10806
10806
|
}
|
|
10807
10807
|
function x() {
|
|
10808
|
-
let
|
|
10808
|
+
let j;
|
|
10809
10809
|
for (; r._index < o.length; ) {
|
|
10810
|
-
const
|
|
10811
|
-
if (typeof
|
|
10812
|
-
for (
|
|
10813
|
-
g(
|
|
10810
|
+
const N = o[r._index];
|
|
10811
|
+
if (typeof N == "string")
|
|
10812
|
+
for (j = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === j && r._bufferIndex < N.length; )
|
|
10813
|
+
g(N.charCodeAt(r._bufferIndex));
|
|
10814
10814
|
else
|
|
10815
|
-
g(
|
|
10815
|
+
g(N);
|
|
10816
10816
|
}
|
|
10817
10817
|
}
|
|
10818
|
-
function g(
|
|
10819
|
-
c = c(
|
|
10818
|
+
function g(j) {
|
|
10819
|
+
c = c(j);
|
|
10820
10820
|
}
|
|
10821
|
-
function y(
|
|
10822
|
-
ce(
|
|
10821
|
+
function y(j) {
|
|
10822
|
+
ce(j) ? (r.line++, r.column = 1, r.offset += j === -3 ? 2 : 1, C()) : j !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
|
|
10823
10823
|
// strings.
|
|
10824
10824
|
/** @type {string} */
|
|
10825
|
-
o[r._index].length && (r._bufferIndex = -1, r._index++)), l.previous =
|
|
10825
|
+
o[r._index].length && (r._bufferIndex = -1, r._index++)), l.previous = j;
|
|
10826
10826
|
}
|
|
10827
|
-
function _(
|
|
10828
|
-
const
|
|
10829
|
-
return
|
|
10827
|
+
function _(j, N) {
|
|
10828
|
+
const z = N || {};
|
|
10829
|
+
return z.type = j, z.start = p(), l.events.push(["enter", z, l]), a.push(z), z;
|
|
10830
10830
|
}
|
|
10831
|
-
function v(
|
|
10832
|
-
const
|
|
10833
|
-
return
|
|
10831
|
+
function v(j) {
|
|
10832
|
+
const N = a.pop();
|
|
10833
|
+
return N.end = p(), l.events.push(["exit", N, l]), N;
|
|
10834
10834
|
}
|
|
10835
|
-
function w(
|
|
10836
|
-
A(
|
|
10835
|
+
function w(j, N) {
|
|
10836
|
+
A(j, N.from);
|
|
10837
10837
|
}
|
|
10838
|
-
function k(
|
|
10839
|
-
|
|
10838
|
+
function k(j, N) {
|
|
10839
|
+
N.restore();
|
|
10840
10840
|
}
|
|
10841
|
-
function E(
|
|
10842
|
-
return
|
|
10843
|
-
function
|
|
10841
|
+
function E(j, N) {
|
|
10842
|
+
return z;
|
|
10843
|
+
function z(B, L, q) {
|
|
10844
10844
|
let U, X, le, T;
|
|
10845
10845
|
return Array.isArray(B) ? (
|
|
10846
10846
|
/* c8 ignore next 1 */
|
|
@@ -10874,32 +10874,32 @@ function QS(e, t, n) {
|
|
|
10874
10874
|
// If we do have fields, create an object w/ `context` as its
|
|
10875
10875
|
// prototype.
|
|
10876
10876
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
10877
|
-
|
|
10877
|
+
N ? Object.assign(Object.create(l), N) : l,
|
|
10878
10878
|
u,
|
|
10879
|
-
|
|
10879
|
+
O,
|
|
10880
10880
|
I
|
|
10881
10881
|
)(V);
|
|
10882
10882
|
}
|
|
10883
10883
|
}
|
|
10884
|
-
function
|
|
10885
|
-
return
|
|
10884
|
+
function O($) {
|
|
10885
|
+
return j(le, T), L;
|
|
10886
10886
|
}
|
|
10887
10887
|
function I($) {
|
|
10888
10888
|
return T.restore(), ++X < U.length ? D(U[X]) : q;
|
|
10889
10889
|
}
|
|
10890
10890
|
}
|
|
10891
10891
|
}
|
|
10892
|
-
function A(
|
|
10893
|
-
|
|
10892
|
+
function A(j, N) {
|
|
10893
|
+
j.resolveAll && !s.includes(j) && s.push(j), j.resolve && Pt(l.events, N, l.events.length - N, j.resolve(l.events.slice(N), l)), j.resolveTo && (l.events = j.resolveTo(l.events, l));
|
|
10894
10894
|
}
|
|
10895
10895
|
function M() {
|
|
10896
|
-
const
|
|
10896
|
+
const j = p(), N = l.previous, z = l.currentConstruct, B = l.events.length, L = Array.from(a);
|
|
10897
10897
|
return {
|
|
10898
10898
|
from: B,
|
|
10899
10899
|
restore: q
|
|
10900
10900
|
};
|
|
10901
10901
|
function q() {
|
|
10902
|
-
r =
|
|
10902
|
+
r = j, l.previous = N, l.currentConstruct = z, l.events.length = B, a = L, C();
|
|
10903
10903
|
}
|
|
10904
10904
|
}
|
|
10905
10905
|
function C() {
|
|
@@ -11113,22 +11113,22 @@ function o4(e) {
|
|
|
11113
11113
|
definitionLabelString: y,
|
|
11114
11114
|
definitionTitleString: _,
|
|
11115
11115
|
emphasis: u(),
|
|
11116
|
-
hardBreakEscape: u(
|
|
11117
|
-
hardBreakTrailing: u(
|
|
11118
|
-
htmlFlow: u(
|
|
11116
|
+
hardBreakEscape: u(N),
|
|
11117
|
+
hardBreakTrailing: u(N),
|
|
11118
|
+
htmlFlow: u(z),
|
|
11119
11119
|
htmlFlowData: C,
|
|
11120
11120
|
htmlText: u(B),
|
|
11121
11121
|
htmlTextData: C,
|
|
11122
11122
|
image: u(U),
|
|
11123
11123
|
label: le,
|
|
11124
11124
|
labelText: X,
|
|
11125
|
-
lineEnding:
|
|
11125
|
+
lineEnding: j,
|
|
11126
11126
|
link: u(q),
|
|
11127
11127
|
listItem: u(),
|
|
11128
11128
|
listOrdered: u(),
|
|
11129
11129
|
listUnordered: u(),
|
|
11130
11130
|
paragraph: u(),
|
|
11131
|
-
referenceString:
|
|
11131
|
+
referenceString: O,
|
|
11132
11132
|
resourceDestinationString: T,
|
|
11133
11133
|
resourceTitleString: me,
|
|
11134
11134
|
resource: ve,
|
|
@@ -11349,7 +11349,7 @@ function o4(e) {
|
|
|
11349
11349
|
const H = this.stack.pop();
|
|
11350
11350
|
H.value += this.sliceSerialize(F), H.position.end = Wn(F.end);
|
|
11351
11351
|
}
|
|
11352
|
-
function
|
|
11352
|
+
function j(F) {
|
|
11353
11353
|
const H = this.stack[this.stack.length - 1];
|
|
11354
11354
|
if (this.data.atHardBreak) {
|
|
11355
11355
|
const se = H.children[H.children.length - 1];
|
|
@@ -11358,10 +11358,10 @@ function o4(e) {
|
|
|
11358
11358
|
}
|
|
11359
11359
|
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(H.type) && (M.call(this, F), C.call(this, F));
|
|
11360
11360
|
}
|
|
11361
|
-
function
|
|
11361
|
+
function N() {
|
|
11362
11362
|
this.data.atHardBreak = !0;
|
|
11363
11363
|
}
|
|
11364
|
-
function
|
|
11364
|
+
function z() {
|
|
11365
11365
|
const F = this.resume(), H = this.stack[this.stack.length - 1];
|
|
11366
11366
|
H.value = F;
|
|
11367
11367
|
}
|
|
@@ -11417,7 +11417,7 @@ function o4(e) {
|
|
|
11417
11417
|
function D() {
|
|
11418
11418
|
this.data.referenceType = "collapsed";
|
|
11419
11419
|
}
|
|
11420
|
-
function
|
|
11420
|
+
function O(F) {
|
|
11421
11421
|
const H = this.resume(), se = this.stack[this.stack.length - 1];
|
|
11422
11422
|
se.label = H, se.identifier = tn(this.sliceSerialize(F)).toLowerCase(), this.data.referenceType = "full";
|
|
11423
11423
|
}
|
|
@@ -12027,24 +12027,24 @@ const M1 = -1, cu = 0, cs = 1, aa = 2, qd = 3, Wd = 4, Kd = 5, Gd = 6, j1 = 7, N
|
|
|
12027
12027
|
return n(new dp[s](o), i);
|
|
12028
12028
|
};
|
|
12029
12029
|
return r;
|
|
12030
|
-
}, fp = (e) => I4(/* @__PURE__ */ new Map(), e)(0),
|
|
12030
|
+
}, fp = (e) => I4(/* @__PURE__ */ new Map(), e)(0), Wr = "", { toString: L4 } = {}, { keys: R4 } = Object, Gi = (e) => {
|
|
12031
12031
|
const t = typeof e;
|
|
12032
12032
|
if (t !== "object" || !e)
|
|
12033
12033
|
return [cu, t];
|
|
12034
12034
|
const n = L4.call(e).slice(8, -1);
|
|
12035
12035
|
switch (n) {
|
|
12036
12036
|
case "Array":
|
|
12037
|
-
return [cs,
|
|
12037
|
+
return [cs, Wr];
|
|
12038
12038
|
case "Object":
|
|
12039
|
-
return [aa,
|
|
12039
|
+
return [aa, Wr];
|
|
12040
12040
|
case "Date":
|
|
12041
|
-
return [qd,
|
|
12041
|
+
return [qd, Wr];
|
|
12042
12042
|
case "RegExp":
|
|
12043
|
-
return [Wd,
|
|
12043
|
+
return [Wd, Wr];
|
|
12044
12044
|
case "Map":
|
|
12045
|
-
return [Kd,
|
|
12045
|
+
return [Kd, Wr];
|
|
12046
12046
|
case "Set":
|
|
12047
|
-
return [Gd,
|
|
12047
|
+
return [Gd, Wr];
|
|
12048
12048
|
case "DataView":
|
|
12049
12049
|
return [cs, n];
|
|
12050
12050
|
}
|
|
@@ -13956,7 +13956,7 @@ function GA(e) {
|
|
|
13956
13956
|
}
|
|
13957
13957
|
function L1(e, t) {
|
|
13958
13958
|
const n = e.input.charCodeAt(e.index - 1);
|
|
13959
|
-
return (e.index === 0 ||
|
|
13959
|
+
return (e.index === 0 || jr(n) || uu(n)) && // If it’s an email, the previous character should not be a slash.
|
|
13960
13960
|
(!t || n !== 47);
|
|
13961
13961
|
}
|
|
13962
13962
|
R1.peek = r5;
|
|
@@ -15057,7 +15057,7 @@ function fE(e, t, n) {
|
|
|
15057
15057
|
return d === 47 ? (e.consume(d), s ? l : (s = !0, u)) : n(d);
|
|
15058
15058
|
}
|
|
15059
15059
|
function l(d) {
|
|
15060
|
-
return d === null || oa(d) || Ue(d) ||
|
|
15060
|
+
return d === null || oa(d) || Ue(d) || jr(d) || uu(d) ? n(d) : e.attempt(Y1, e.attempt(X1, c), n)(d);
|
|
15061
15061
|
}
|
|
15062
15062
|
function c(d) {
|
|
15063
15063
|
return e.exit("literalAutolinkHttp"), e.exit("literalAutolink"), t(d);
|
|
@@ -15077,7 +15077,7 @@ function pE(e, t, n) {
|
|
|
15077
15077
|
let r, i, s;
|
|
15078
15078
|
return o;
|
|
15079
15079
|
function o(l) {
|
|
15080
|
-
return l === 46 || l === 95 ? e.check(J1, u, a)(l) : l === null || Ue(l) ||
|
|
15080
|
+
return l === 46 || l === 95 ? e.check(J1, u, a)(l) : l === null || Ue(l) || jr(l) || l !== 45 && uu(l) ? u(l) : (s = !0, e.consume(l), o);
|
|
15081
15081
|
}
|
|
15082
15082
|
function a(l) {
|
|
15083
15083
|
return l === 95 ? r = !0 : (i = r, r = void 0), e.consume(l), o;
|
|
@@ -15090,7 +15090,7 @@ function mE(e, t) {
|
|
|
15090
15090
|
let n = 0, r = 0;
|
|
15091
15091
|
return i;
|
|
15092
15092
|
function i(o) {
|
|
15093
|
-
return o === 40 ? (n++, e.consume(o), i) : o === 41 && r < n ? s(o) : o === 33 || o === 34 || o === 38 || o === 39 || o === 41 || o === 42 || o === 44 || o === 46 || o === 58 || o === 59 || o === 60 || o === 63 || o === 93 || o === 95 || o === 126 ? e.check(J1, t, s)(o) : o === null || Ue(o) ||
|
|
15093
|
+
return o === 40 ? (n++, e.consume(o), i) : o === 41 && r < n ? s(o) : o === 33 || o === 34 || o === 38 || o === 39 || o === 41 || o === 42 || o === 44 || o === 46 || o === 58 || o === 59 || o === 60 || o === 63 || o === 93 || o === 95 || o === 126 ? e.check(J1, t, s)(o) : o === null || Ue(o) || jr(o) ? t(o) : (e.consume(o), i);
|
|
15094
15094
|
}
|
|
15095
15095
|
function s(o) {
|
|
15096
15096
|
return o === 41 && r++, e.consume(o), i;
|
|
@@ -15102,11 +15102,11 @@ function gE(e, t, n) {
|
|
|
15102
15102
|
return a === 33 || a === 34 || a === 39 || a === 41 || a === 42 || a === 44 || a === 46 || a === 58 || a === 59 || a === 63 || a === 95 || a === 126 ? (e.consume(a), r) : a === 38 ? (e.consume(a), s) : a === 93 ? (e.consume(a), i) : (
|
|
15103
15103
|
// `<` is an end.
|
|
15104
15104
|
a === 60 || // So is whitespace.
|
|
15105
|
-
a === null || Ue(a) ||
|
|
15105
|
+
a === null || Ue(a) || jr(a) ? t(a) : n(a)
|
|
15106
15106
|
);
|
|
15107
15107
|
}
|
|
15108
15108
|
function i(a) {
|
|
15109
|
-
return a === null || a === 40 || a === 91 || Ue(a) ||
|
|
15109
|
+
return a === null || a === 40 || a === 91 || Ue(a) || jr(a) ? t(a) : r(a);
|
|
15110
15110
|
}
|
|
15111
15111
|
function s(a) {
|
|
15112
15112
|
return yt(a) ? o(a) : n(a);
|
|
@@ -15501,15 +15501,15 @@ function NE(e, t, n) {
|
|
|
15501
15501
|
let i = 0, s = 0, o;
|
|
15502
15502
|
return a;
|
|
15503
15503
|
function a(C) {
|
|
15504
|
-
let
|
|
15505
|
-
for (;
|
|
15506
|
-
const B = r.events[
|
|
15504
|
+
let j = r.events.length - 1;
|
|
15505
|
+
for (; j > -1; ) {
|
|
15506
|
+
const B = r.events[j][1].type;
|
|
15507
15507
|
if (B === "lineEnding" || // Note: markdown-rs uses `whitespace` instead of `linePrefix`
|
|
15508
|
-
B === "linePrefix")
|
|
15508
|
+
B === "linePrefix") j--;
|
|
15509
15509
|
else break;
|
|
15510
15510
|
}
|
|
15511
|
-
const
|
|
15512
|
-
return
|
|
15511
|
+
const N = j > -1 ? r.events[j][1].type : null, z = N === "tableHead" || N === "tableRow" ? k : u;
|
|
15512
|
+
return z === k && r.parser.lazy[r.now().line] ? n(C) : z(C);
|
|
15513
15513
|
}
|
|
15514
15514
|
function u(C) {
|
|
15515
15515
|
return e.enter("tableHead"), e.enter("tableRow"), l(C);
|
|
@@ -15591,15 +15591,15 @@ function PE(e, t) {
|
|
|
15591
15591
|
}
|
|
15592
15592
|
function wo(e, t, n, r, i, s) {
|
|
15593
15593
|
const o = r === 1 ? "tableHeader" : r === 2 ? "tableDelimiter" : "tableData", a = "tableContent";
|
|
15594
|
-
n[0] !== 0 && (s.end = Object.assign({},
|
|
15595
|
-
const u =
|
|
15594
|
+
n[0] !== 0 && (s.end = Object.assign({}, Yr(t.events, n[0])), e.add(n[0], 0, [["exit", s, t]]));
|
|
15595
|
+
const u = Yr(t.events, n[1]);
|
|
15596
15596
|
if (s = {
|
|
15597
15597
|
type: o,
|
|
15598
15598
|
start: Object.assign({}, u),
|
|
15599
15599
|
// Note: correct end is set later.
|
|
15600
15600
|
end: Object.assign({}, u)
|
|
15601
15601
|
}, e.add(n[1], 0, [["enter", s, t]]), n[2] !== 0) {
|
|
15602
|
-
const l =
|
|
15602
|
+
const l = Yr(t.events, n[2]), c = Yr(t.events, n[3]), d = {
|
|
15603
15603
|
type: a,
|
|
15604
15604
|
start: Object.assign({}, l),
|
|
15605
15605
|
end: Object.assign({}, c)
|
|
@@ -15613,13 +15613,13 @@ function wo(e, t, n, r, i, s) {
|
|
|
15613
15613
|
}
|
|
15614
15614
|
e.add(n[3] + 1, 0, [["exit", d, t]]);
|
|
15615
15615
|
}
|
|
15616
|
-
return i !== void 0 && (s.end = Object.assign({},
|
|
15616
|
+
return i !== void 0 && (s.end = Object.assign({}, Yr(t.events, i)), e.add(i, 0, [["exit", s, t]]), s = void 0), s;
|
|
15617
15617
|
}
|
|
15618
15618
|
function Dp(e, t, n, r, i) {
|
|
15619
|
-
const s = [], o =
|
|
15619
|
+
const s = [], o = Yr(t.events, n);
|
|
15620
15620
|
i && (i.end = Object.assign({}, o), s.push(["exit", i, t])), r.end = Object.assign({}, o), s.push(["exit", r, t]), e.add(n + 1, 0, s);
|
|
15621
15621
|
}
|
|
15622
|
-
function
|
|
15622
|
+
function Yr(e, t) {
|
|
15623
15623
|
const n = e[t], r = n[0] === "enter" ? "start" : "end";
|
|
15624
15624
|
return n[1][r];
|
|
15625
15625
|
}
|
|
@@ -15981,7 +15981,7 @@ const iT = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
|
|
|
15981
15981
|
}, sT = (e) => Ln(0, 255, e), al = {
|
|
15982
15982
|
...Pi,
|
|
15983
15983
|
transform: (e) => Math.round(sT(e))
|
|
15984
|
-
},
|
|
15984
|
+
}, wr = {
|
|
15985
15985
|
test: /* @__PURE__ */ ff("rgb", "red"),
|
|
15986
15986
|
parse: /* @__PURE__ */ Ab("red", "green", "blue"),
|
|
15987
15987
|
transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + al.transform(e) + ", " + al.transform(t) + ", " + al.transform(n) + ", " + ds(Es.transform(r)) + ")"
|
|
@@ -15998,7 +15998,7 @@ function oT(e) {
|
|
|
15998
15998
|
const yc = {
|
|
15999
15999
|
test: /* @__PURE__ */ ff("#"),
|
|
16000
16000
|
parse: oT,
|
|
16001
|
-
transform:
|
|
16001
|
+
transform: wr.transform
|
|
16002
16002
|
}, ro = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
|
|
16003
16003
|
test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
|
|
16004
16004
|
parse: parseFloat,
|
|
@@ -16012,9 +16012,9 @@ const yc = {
|
|
|
16012
16012
|
parse: /* @__PURE__ */ Ab("hue", "saturation", "lightness"),
|
|
16013
16013
|
transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + xn.transform(ds(t)) + ", " + xn.transform(ds(n)) + ", " + ds(Es.transform(r)) + ")"
|
|
16014
16014
|
}, at = {
|
|
16015
|
-
test: (e) =>
|
|
16016
|
-
parse: (e) =>
|
|
16017
|
-
transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ?
|
|
16015
|
+
test: (e) => wr.test(e) || yc.test(e) || ni.test(e),
|
|
16016
|
+
parse: (e) => wr.test(e) ? wr.parse(e) : ni.test(e) ? ni.parse(e) : yc.parse(e),
|
|
16017
|
+
transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? wr.transform(e) : ni.transform(e),
|
|
16018
16018
|
getAnimatableNone: (e) => {
|
|
16019
16019
|
const t = at.parse(e);
|
|
16020
16020
|
return t.alpha = 0, at.transform(t);
|
|
@@ -16085,7 +16085,7 @@ function ca(e, t) {
|
|
|
16085
16085
|
const Ze = (e, t, n) => e + (t - e) * n, ll = (e, t, n) => {
|
|
16086
16086
|
const r = e * e, i = n * (t * t - r) + r;
|
|
16087
16087
|
return i < 0 ? 0 : Math.sqrt(i);
|
|
16088
|
-
}, bT = [yc,
|
|
16088
|
+
}, bT = [yc, wr, ni], xT = (e) => bT.find((t) => t.test(e));
|
|
16089
16089
|
function Fp(e) {
|
|
16090
16090
|
const t = xT(e);
|
|
16091
16091
|
if (!t)
|
|
@@ -16098,7 +16098,7 @@ const Ip = (e, t) => {
|
|
|
16098
16098
|
if (!n || !r)
|
|
16099
16099
|
return ca(e, t);
|
|
16100
16100
|
const i = { ...n };
|
|
16101
|
-
return (s) => (i.red = ll(n.red, r.red, s), i.green = ll(n.green, r.green, s), i.blue = ll(n.blue, r.blue, s), i.alpha = Ze(n.alpha, r.alpha, s),
|
|
16101
|
+
return (s) => (i.red = ll(n.red, r.red, s), i.green = ll(n.green, r.green, s), i.blue = ll(n.blue, r.blue, s), i.alpha = Ze(n.alpha, r.alpha, s), wr.transform(i));
|
|
16102
16102
|
}, vc = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
16103
16103
|
function yT(e, t) {
|
|
16104
16104
|
return vc.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
|
|
@@ -16590,8 +16590,8 @@ function zT(e) {
|
|
|
16590
16590
|
for (let t = 1; t < e.length; t++)
|
|
16591
16591
|
e[t] ?? (e[t] = e[t - 1]);
|
|
16592
16592
|
}
|
|
16593
|
-
const
|
|
16594
|
-
const t =
|
|
16593
|
+
const Cr = (e) => e * 180 / Math.PI, wc = (e) => {
|
|
16594
|
+
const t = Cr(Math.atan2(e[1], e[0]));
|
|
16595
16595
|
return Cc(t);
|
|
16596
16596
|
}, OT = {
|
|
16597
16597
|
x: 4,
|
|
@@ -16603,8 +16603,8 @@ const Sr = (e) => e * 180 / Math.PI, wc = (e) => {
|
|
|
16603
16603
|
scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
|
|
16604
16604
|
rotate: wc,
|
|
16605
16605
|
rotateZ: wc,
|
|
16606
|
-
skewX: (e) =>
|
|
16607
|
-
skewY: (e) =>
|
|
16606
|
+
skewX: (e) => Cr(Math.atan(e[1])),
|
|
16607
|
+
skewY: (e) => Cr(Math.atan(e[2])),
|
|
16608
16608
|
skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
|
|
16609
16609
|
}, Cc = (e) => (e = e % 360, e < 0 && (e += 360), e), Rp = wc, zp = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), Op = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), $T = {
|
|
16610
16610
|
x: 12,
|
|
@@ -16616,12 +16616,12 @@ const Sr = (e) => e * 180 / Math.PI, wc = (e) => {
|
|
|
16616
16616
|
scaleX: zp,
|
|
16617
16617
|
scaleY: Op,
|
|
16618
16618
|
scale: (e) => (zp(e) + Op(e)) / 2,
|
|
16619
|
-
rotateX: (e) => Cc(
|
|
16620
|
-
rotateY: (e) => Cc(
|
|
16619
|
+
rotateX: (e) => Cc(Cr(Math.atan2(e[6], e[5]))),
|
|
16620
|
+
rotateY: (e) => Cc(Cr(Math.atan2(-e[2], e[0]))),
|
|
16621
16621
|
rotateZ: Rp,
|
|
16622
16622
|
rotate: Rp,
|
|
16623
|
-
skewX: (e) =>
|
|
16624
|
-
skewY: (e) =>
|
|
16623
|
+
skewX: (e) => Cr(Math.atan(e[4])),
|
|
16624
|
+
skewY: (e) => Cr(Math.atan(e[1])),
|
|
16625
16625
|
skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
|
|
16626
16626
|
};
|
|
16627
16627
|
function Sc(e) {
|
|
@@ -16676,7 +16676,7 @@ function qT(e) {
|
|
|
16676
16676
|
r !== void 0 && (t.push([n, r.get()]), r.set(n.startsWith("scale") ? 1 : 0));
|
|
16677
16677
|
}), t;
|
|
16678
16678
|
}
|
|
16679
|
-
const
|
|
16679
|
+
const Er = {
|
|
16680
16680
|
// Dimensions
|
|
16681
16681
|
width: ({ x: e }, { paddingLeft: t = "0", paddingRight: n = "0" }) => e.max - e.min - parseFloat(t) - parseFloat(n),
|
|
16682
16682
|
height: ({ y: e }, { paddingTop: t = "0", paddingBottom: n = "0" }) => e.max - e.min - parseFloat(t) - parseFloat(n),
|
|
@@ -16688,13 +16688,13 @@ const Tr = {
|
|
|
16688
16688
|
x: (e, { transform: t }) => Ac(t, "x"),
|
|
16689
16689
|
y: (e, { transform: t }) => Ac(t, "y")
|
|
16690
16690
|
};
|
|
16691
|
-
|
|
16692
|
-
|
|
16693
|
-
const
|
|
16691
|
+
Er.translateX = Er.x;
|
|
16692
|
+
Er.translateY = Er.y;
|
|
16693
|
+
const Tr = /* @__PURE__ */ new Set();
|
|
16694
16694
|
let Ec = !1, Tc = !1, Dc = !1;
|
|
16695
16695
|
function $b() {
|
|
16696
16696
|
if (Tc) {
|
|
16697
|
-
const e = Array.from(
|
|
16697
|
+
const e = Array.from(Tr).filter((r) => r.needsMeasurement), t = new Set(e.map((r) => r.element)), n = /* @__PURE__ */ new Map();
|
|
16698
16698
|
t.forEach((r) => {
|
|
16699
16699
|
const i = qT(r);
|
|
16700
16700
|
i.length && (n.set(r, i), r.render());
|
|
@@ -16708,10 +16708,10 @@ function $b() {
|
|
|
16708
16708
|
r.suspendedScrollY !== void 0 && window.scrollTo(0, r.suspendedScrollY);
|
|
16709
16709
|
});
|
|
16710
16710
|
}
|
|
16711
|
-
Tc = !1, Ec = !1,
|
|
16711
|
+
Tc = !1, Ec = !1, Tr.forEach((e) => e.complete(Dc)), Tr.clear();
|
|
16712
16712
|
}
|
|
16713
16713
|
function Bb() {
|
|
16714
|
-
|
|
16714
|
+
Tr.forEach((e) => {
|
|
16715
16715
|
e.readKeyframes(), e.needsMeasurement && (Tc = !0);
|
|
16716
16716
|
});
|
|
16717
16717
|
}
|
|
@@ -16723,7 +16723,7 @@ class bf {
|
|
|
16723
16723
|
this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...t], this.onComplete = n, this.name = r, this.motionValue = i, this.element = s, this.isAsync = o;
|
|
16724
16724
|
}
|
|
16725
16725
|
scheduleResolve() {
|
|
16726
|
-
this.state = "scheduled", this.isAsync ? (
|
|
16726
|
+
this.state = "scheduled", this.isAsync ? (Tr.add(this), Ec || (Ec = !0, Ve.read(Bb), Ve.resolveKeyframes($b))) : (this.readKeyframes(), this.complete());
|
|
16727
16727
|
}
|
|
16728
16728
|
readKeyframes() {
|
|
16729
16729
|
const { unresolvedKeyframes: t, name: n, element: r, motionValue: i } = this;
|
|
@@ -16748,10 +16748,10 @@ class bf {
|
|
|
16748
16748
|
measureEndState() {
|
|
16749
16749
|
}
|
|
16750
16750
|
complete(t = !1) {
|
|
16751
|
-
this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, t),
|
|
16751
|
+
this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, t), Tr.delete(this);
|
|
16752
16752
|
}
|
|
16753
16753
|
cancel() {
|
|
16754
|
-
this.state === "scheduled" && (
|
|
16754
|
+
this.state === "scheduled" && (Tr.delete(this), this.state = "pending");
|
|
16755
16755
|
}
|
|
16756
16756
|
resume() {
|
|
16757
16757
|
this.state === "pending" && this.scheduleResolve();
|
|
@@ -17333,7 +17333,7 @@ class CD extends bf {
|
|
|
17333
17333
|
const l = t[u];
|
|
17334
17334
|
typeof l == "string" && (t[u] = parseFloat(l));
|
|
17335
17335
|
}
|
|
17336
|
-
else
|
|
17336
|
+
else Er[r] && (this.needsMeasurement = !0);
|
|
17337
17337
|
}
|
|
17338
17338
|
resolveNoneKeyframes() {
|
|
17339
17339
|
const { unresolvedKeyframes: t, name: n } = this, r = [];
|
|
@@ -17345,7 +17345,7 @@ class CD extends bf {
|
|
|
17345
17345
|
const { element: t, unresolvedKeyframes: n, name: r } = this;
|
|
17346
17346
|
if (!t || !t.current)
|
|
17347
17347
|
return;
|
|
17348
|
-
r === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin =
|
|
17348
|
+
r === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = Er[r](t.measureViewportBox(), window.getComputedStyle(t.current)), n[0] = this.measuredOrigin;
|
|
17349
17349
|
const i = n[n.length - 1];
|
|
17350
17350
|
i !== void 0 && t.getValue(r, i).jump(i, !1);
|
|
17351
17351
|
}
|
|
@@ -17356,7 +17356,7 @@ class CD extends bf {
|
|
|
17356
17356
|
const i = t.getValue(n);
|
|
17357
17357
|
i && i.jump(this.measuredOrigin, !1);
|
|
17358
17358
|
const s = r.length - 1, o = r[s];
|
|
17359
|
-
r[s] =
|
|
17359
|
+
r[s] = Er[n](t.measureViewportBox(), window.getComputedStyle(t.current)), o !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = o), this.removedTransforms?.length && this.removedTransforms.forEach(([a, u]) => {
|
|
17360
17360
|
t.getValue(a).set(u);
|
|
17361
17361
|
}), this.resolveNoneKeyframes();
|
|
17362
17362
|
}
|
|
@@ -17577,7 +17577,7 @@ class AD {
|
|
|
17577
17577
|
this.dependents?.clear(), this.events.destroy?.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
|
|
17578
17578
|
}
|
|
17579
17579
|
}
|
|
17580
|
-
function
|
|
17580
|
+
function Nr(e, t) {
|
|
17581
17581
|
return new AD(e, t);
|
|
17582
17582
|
}
|
|
17583
17583
|
const { schedule: _f } = /* @__PURE__ */ Cb(queueMicrotask, !1), Xt = {
|
|
@@ -17873,8 +17873,8 @@ const Cf = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presen
|
|
|
17873
17873
|
else
|
|
17874
17874
|
return;
|
|
17875
17875
|
let C = !0;
|
|
17876
|
-
b.forEach((
|
|
17877
|
-
|
|
17876
|
+
b.forEach((j) => {
|
|
17877
|
+
j || (C = !1);
|
|
17878
17878
|
}), C && (w?.(), _(p.current), o && c?.(), r && r());
|
|
17879
17879
|
};
|
|
17880
17880
|
return m.jsx(BD, { isPresent: A, initial: !h.current || n ? void 0 : !1, custom: t, presenceAffectsLayout: i, mode: s, root: u, onExitComplete: A ? void 0 : M, anchorX: a, children: k }, E);
|
|
@@ -18592,14 +18592,14 @@ function N8(e, t, n) {
|
|
|
18592
18592
|
if (ut(i))
|
|
18593
18593
|
e.addValue(r, i);
|
|
18594
18594
|
else if (ut(s))
|
|
18595
|
-
e.addValue(r,
|
|
18595
|
+
e.addValue(r, Nr(i, { owner: e }));
|
|
18596
18596
|
else if (s !== i)
|
|
18597
18597
|
if (e.hasValue(r)) {
|
|
18598
18598
|
const o = e.getValue(r);
|
|
18599
18599
|
o.liveStyle === !0 ? o.jump(i) : o.hasAnimated || o.set(i);
|
|
18600
18600
|
} else {
|
|
18601
18601
|
const o = e.getStaticValue(r);
|
|
18602
|
-
e.addValue(r,
|
|
18602
|
+
e.addValue(r, Nr(o !== void 0 ? o : i, { owner: e }));
|
|
18603
18603
|
}
|
|
18604
18604
|
}
|
|
18605
18605
|
for (const r in n)
|
|
@@ -18773,7 +18773,7 @@ class Ax {
|
|
|
18773
18773
|
if (this.props.values && this.props.values[t])
|
|
18774
18774
|
return this.props.values[t];
|
|
18775
18775
|
let r = this.values.get(t);
|
|
18776
|
-
return r === void 0 && n !== void 0 && (r =
|
|
18776
|
+
return r === void 0 && n !== void 0 && (r = Nr(n === null ? void 0 : n, { owner: this }), this.addValue(t, r)), r;
|
|
18777
18777
|
}
|
|
18778
18778
|
/**
|
|
18779
18779
|
* If we're trying to animate to a previously unencountered value,
|
|
@@ -18938,7 +18938,7 @@ function li(e, t, n) {
|
|
|
18938
18938
|
}
|
|
18939
18939
|
const Ic = (e) => Array.isArray(e);
|
|
18940
18940
|
function I8(e, t, n) {
|
|
18941
|
-
e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t,
|
|
18941
|
+
e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, Nr(n));
|
|
18942
18942
|
}
|
|
18943
18943
|
function L8(e) {
|
|
18944
18944
|
return Ic(e) ? e[e.length - 1] || 0 : e;
|
|
@@ -19165,24 +19165,24 @@ function eM(e) {
|
|
|
19165
19165
|
g === u && y.isActive && !k && v || // If we removed a higher-priority variant (i is in reverse order)
|
|
19166
19166
|
x > p && v, M = !1;
|
|
19167
19167
|
const C = Array.isArray(_) ? _ : [_];
|
|
19168
|
-
let
|
|
19169
|
-
w === !1 && (
|
|
19170
|
-
const { prevResolvedValues:
|
|
19171
|
-
...
|
|
19172
|
-
...
|
|
19168
|
+
let j = C.reduce(i(g), {});
|
|
19169
|
+
w === !1 && (j = {});
|
|
19170
|
+
const { prevResolvedValues: N = {} } = y, z = {
|
|
19171
|
+
...N,
|
|
19172
|
+
...j
|
|
19173
19173
|
}, B = (U) => {
|
|
19174
19174
|
A = !0, f.has(U) && (M = !0, f.delete(U)), y.needsAnimating[U] = !0;
|
|
19175
19175
|
const X = e.getValue(U);
|
|
19176
19176
|
X && (X.liveStyle = !1);
|
|
19177
19177
|
};
|
|
19178
|
-
for (const U in
|
|
19179
|
-
const X =
|
|
19178
|
+
for (const U in z) {
|
|
19179
|
+
const X = j[U], le = N[U];
|
|
19180
19180
|
if (h.hasOwnProperty(U))
|
|
19181
19181
|
continue;
|
|
19182
19182
|
let T = !1;
|
|
19183
19183
|
Ic(X) && Ic(le) ? T = !Ix(X, le) : T = X !== le, T ? X != null ? B(U) : f.add(U) : X !== void 0 && f.has(U) ? B(U) : y.protectedKeys[U] = !0;
|
|
19184
19184
|
}
|
|
19185
|
-
y.prevProp = _, y.prevResolvedValues =
|
|
19185
|
+
y.prevProp = _, y.prevResolvedValues = j, y.isActive && (h = { ...h, ...j }), r && e.blockInitialAnimation && (A = !1);
|
|
19186
19186
|
const L = k && E;
|
|
19187
19187
|
A && (!L || M) && d.push(...C.map((U) => {
|
|
19188
19188
|
const X = { type: g };
|
|
@@ -19828,7 +19828,7 @@ function Ux(e) {
|
|
|
19828
19828
|
return m.jsx(AM, { ...e, layoutGroup: r, switchLayoutGroup: S.useContext(xx), isPresent: t, safeToRemove: n });
|
|
19829
19829
|
}
|
|
19830
19830
|
function Hx(e, t, n) {
|
|
19831
|
-
const r = ut(e) ? e :
|
|
19831
|
+
const r = ut(e) ? e : Nr(e);
|
|
19832
19832
|
return r.start(If("", r, t, n)), r.animation;
|
|
19833
19833
|
}
|
|
19834
19834
|
const EM = (e, t) => e.depth - t.depth;
|
|
@@ -20317,7 +20317,7 @@ function Qx({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
20317
20317
|
}
|
|
20318
20318
|
startAnimation(o) {
|
|
20319
20319
|
this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation && (zn(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = Ve.update(() => {
|
|
20320
|
-
Wo.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue =
|
|
20320
|
+
Wo.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = Nr(0)), this.currentAnimation = Hx(this.motionValue, [0, 1e3], {
|
|
20321
20321
|
...o,
|
|
20322
20322
|
velocity: 0,
|
|
20323
20323
|
isSync: !0,
|
|
@@ -20725,7 +20725,7 @@ const ey = {
|
|
|
20725
20725
|
...ey,
|
|
20726
20726
|
...Jx,
|
|
20727
20727
|
...ty
|
|
20728
|
-
},
|
|
20728
|
+
}, Pr = /* @__PURE__ */ vx(p9, Nx), m9 = {
|
|
20729
20729
|
renderer: Nx,
|
|
20730
20730
|
...Rx,
|
|
20731
20731
|
...ey
|
|
@@ -20738,7 +20738,7 @@ function G0(e, t, n) {
|
|
|
20738
20738
|
S.useInsertionEffect(() => e.on(t, n), [e, t, n]);
|
|
20739
20739
|
}
|
|
20740
20740
|
function ny(e) {
|
|
20741
|
-
const t = Ni(() =>
|
|
20741
|
+
const t = Ni(() => Nr(e)), { isStatic: n } = S.useContext(On);
|
|
20742
20742
|
if (n) {
|
|
20743
20743
|
const [, r] = S.useState(e);
|
|
20744
20744
|
S.useEffect(() => t.on("change", r), []);
|
|
@@ -20838,9 +20838,9 @@ function E9(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
|
|
|
20838
20838
|
g.at !== void 0 && (d = Q0(d, g.at, c, l));
|
|
20839
20839
|
let y = 0;
|
|
20840
20840
|
const _ = (v, w, k, E = 0, A = 0) => {
|
|
20841
|
-
const M = T9(v), { delay: C = 0, times:
|
|
20841
|
+
const M = T9(v), { delay: C = 0, times: j = zb(M), type: N = "keyframes", repeat: z, repeatType: B, repeatDelay: L = 0, ...q } = w;
|
|
20842
20842
|
let { ease: U = t.ease || "easeOut", duration: X } = w;
|
|
20843
|
-
const le = typeof C == "function" ? C(E, A) : C, T = M.length, me = xf(
|
|
20843
|
+
const le = typeof C == "function" ? C(E, A) : C, T = M.length, me = xf(N) ? N : i?.[N || "keyframes"];
|
|
20844
20844
|
if (T <= 2 && me) {
|
|
20845
20845
|
let I = 100;
|
|
20846
20846
|
if (T === 2 && j9(M)) {
|
|
@@ -20854,22 +20854,22 @@ function E9(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
|
|
|
20854
20854
|
}
|
|
20855
20855
|
X ?? (X = s);
|
|
20856
20856
|
const ve = d + le;
|
|
20857
|
-
|
|
20858
|
-
const D =
|
|
20859
|
-
if (D > 0 && Rb(
|
|
20860
|
-
X = _9(X,
|
|
20861
|
-
const I = [...M], $ = [...
|
|
20857
|
+
j.length === 1 && j[0] === 0 && (j[1] = 1);
|
|
20858
|
+
const D = j.length - M.length;
|
|
20859
|
+
if (D > 0 && Rb(j, D), M.length === 1 && M.unshift(null), z) {
|
|
20860
|
+
X = _9(X, z);
|
|
20861
|
+
const I = [...M], $ = [...j];
|
|
20862
20862
|
U = Array.isArray(U) ? [...U] : [U];
|
|
20863
20863
|
const W = [...U];
|
|
20864
|
-
for (let V = 0; V <
|
|
20864
|
+
for (let V = 0; V < z; V++) {
|
|
20865
20865
|
M.push(...I);
|
|
20866
20866
|
for (let J = 0; J < I.length; J++)
|
|
20867
|
-
|
|
20867
|
+
j.push($[J] + (V + 1)), U.push(J === 0 ? "linear" : kb(W, J - 1));
|
|
20868
20868
|
}
|
|
20869
|
-
C9(
|
|
20869
|
+
C9(j, z);
|
|
20870
20870
|
}
|
|
20871
|
-
const
|
|
20872
|
-
w9(k, M, U,
|
|
20871
|
+
const O = ve + X;
|
|
20872
|
+
w9(k, M, U, j, ve, O), y = Math.max(le + X, y), f = Math.max(O, f);
|
|
20873
20873
|
};
|
|
20874
20874
|
if (ut(b)) {
|
|
20875
20875
|
const v = Y0(b, a);
|
|
@@ -21081,17 +21081,17 @@ const $9 = O9(), B9 = (e, { locales: t, format: n }, r, i) => {
|
|
|
21081
21081
|
key: f(u[g].type)
|
|
21082
21082
|
});
|
|
21083
21083
|
return { pre: a, integer: x, fraction: l, post: c, formatted: h };
|
|
21084
|
-
}, Vt = "var(--mask-height, 0.15em)", $c = "var(--mask-width, 0.5em)",
|
|
21084
|
+
}, Vt = "var(--mask-height, 0.15em)", $c = "var(--mask-width, 0.5em)", kr = `calc(${$c} / var(--invert-x, 1))`, To = "#000 0, transparent 71%", V9 = (
|
|
21085
21085
|
// Horizontal:
|
|
21086
|
-
`linear-gradient(to right, transparent 0, #000 ${
|
|
21087
|
-
), U9 = `100% calc(100% - ${Vt} * 2),calc(100% - ${
|
|
21086
|
+
`linear-gradient(to right, transparent 0, #000 ${kr}, #000 calc(100% - ${kr}), transparent),linear-gradient(to bottom, transparent 0, #000 ${Vt}, #000 calc(100% - ${Vt}), transparent 100%),radial-gradient(at bottom right, ${To}),radial-gradient(at bottom left, ${To}), radial-gradient(at top left, ${To}), radial-gradient(at top right, ${To})`
|
|
21087
|
+
), U9 = `100% calc(100% - ${Vt} * 2),calc(100% - ${kr} * 2) 100%,${kr} ${Vt},${kr} ${Vt},${kr} ${Vt},${kr} ${Vt}`;
|
|
21088
21088
|
r8({
|
|
21089
21089
|
"--invert-x": {
|
|
21090
21090
|
correct: (e, { treeScale: t, projectionDelta: n }) => n.x.scale * t.x
|
|
21091
21091
|
}
|
|
21092
21092
|
});
|
|
21093
21093
|
function H9({ children: e }) {
|
|
21094
|
-
return m.jsx(
|
|
21094
|
+
return m.jsx(Pr.span, { layout: !0, "aria-hidden": !0, style: {
|
|
21095
21095
|
display: "inline-flex",
|
|
21096
21096
|
// Activates the scale correction, which gets stored in --invert-xion
|
|
21097
21097
|
"--invert-x": 1,
|
|
@@ -21147,7 +21147,7 @@ const ay = /* @__PURE__ */ new WeakMap(), q9 = S.forwardRef(function({ value: t,
|
|
|
21147
21147
|
display: "inline-block",
|
|
21148
21148
|
padding: `calc(${Vt}/2) 0`
|
|
21149
21149
|
}, ref: (y) => void (c.current[g] = y), children: g }, g);
|
|
21150
|
-
return m.jsx(
|
|
21150
|
+
return m.jsx(Pr.span, { ...r, ref: l, layout: "position", "data-state": d ? void 0 : "exiting", style: {
|
|
21151
21151
|
display: "inline-flex",
|
|
21152
21152
|
justifyContent: "center",
|
|
21153
21153
|
width: p
|
|
@@ -21176,14 +21176,14 @@ const ay = /* @__PURE__ */ new WeakMap(), q9 = S.forwardRef(function({ value: t,
|
|
|
21176
21176
|
justify: "left"
|
|
21177
21177
|
}), W9 = S.forwardRef(function({ partKey: t, type: n, children: r, ...i }, s) {
|
|
21178
21178
|
const o = sx(), { justify: a } = S.useContext(uy);
|
|
21179
|
-
return m.jsx(
|
|
21179
|
+
return m.jsx(Pr.span, { ...i, "data-state": o ? void 0 : "exiting", style: {
|
|
21180
21180
|
display: "inline-flex",
|
|
21181
21181
|
justifyContent: a,
|
|
21182
21182
|
padding: `calc(${Vt}/2) 0`,
|
|
21183
21183
|
// match digits
|
|
21184
21184
|
position: "relative"
|
|
21185
21185
|
// needed for AnimatePresent popLayout
|
|
21186
|
-
}, layout: "position", ref: s, children: m.jsx(Cf, { mode: "popLayout", anchorX: a, initial: !1, children: m.jsx(
|
|
21186
|
+
}, layout: "position", ref: s, children: m.jsx(Cf, { mode: "popLayout", anchorX: a, initial: !1, children: m.jsx(Pr.span, { layout: a === "right" ? "position" : !1, initial: { opacity: 0 }, animate: { opacity: [null, 1] }, exit: { opacity: [null, 0] }, style: {
|
|
21187
21187
|
display: "inline-block",
|
|
21188
21188
|
whiteSpace: "pre"
|
|
21189
21189
|
// some symbols are spaces or thin spaces
|
|
@@ -21221,7 +21221,7 @@ const ay = /* @__PURE__ */ new WeakMap(), q9 = S.forwardRef(function({ value: t,
|
|
|
21221
21221
|
const x = p[b];
|
|
21222
21222
|
x && x();
|
|
21223
21223
|
}
|
|
21224
|
-
}, [t.map((p) => p.value).join("")]), m.jsx(uy.Provider, { value: l, children: m.jsx(
|
|
21224
|
+
}, [t.map((p) => p.value).join("")]), m.jsx(uy.Provider, { value: l, children: m.jsx(Pr.span, { ...o, ref: u, className: `number-section-${s}`, style: {
|
|
21225
21225
|
...i,
|
|
21226
21226
|
display: "inline-flex",
|
|
21227
21227
|
justifyContent: n,
|
|
@@ -21243,7 +21243,7 @@ const ay = /* @__PURE__ */ new WeakMap(), q9 = S.forwardRef(function({ value: t,
|
|
|
21243
21243
|
y: { type: "spring", duration: 1, bounce: 0 }
|
|
21244
21244
|
}, G9 = S.forwardRef(function({ children: t, locales: n, format: r, transition: i, style: s, suffix: o, prefix: a, ...u }, l) {
|
|
21245
21245
|
const c = S.useMemo(() => B9(t, { locales: n, format: r }, a, o), [t, n, r]), { pre: d, integer: f, fraction: h, post: p, formatted: b } = c, x = S.useContext(On).transition;
|
|
21246
|
-
return i = i ?? x ?? K9, m.jsx(ZD, { children: m.jsx(JD, { transition: i, children: m.jsx(
|
|
21246
|
+
return i = i ?? x ?? K9, m.jsx(ZD, { children: m.jsx(JD, { transition: i, children: m.jsx(Pr.div, { ...u, ref: l, layout: !0, style: {
|
|
21247
21247
|
lineHeight: 1,
|
|
21248
21248
|
// make this one easy to override
|
|
21249
21249
|
...s,
|
|
@@ -21251,7 +21251,7 @@ const ay = /* @__PURE__ */ new WeakMap(), q9 = S.forwardRef(function({ value: t,
|
|
|
21251
21251
|
isolation: "isolate",
|
|
21252
21252
|
// so number can be underneath first/last
|
|
21253
21253
|
whiteSpace: "nowrap"
|
|
21254
|
-
}, children: m.jsxs(
|
|
21254
|
+
}, children: m.jsxs(Pr.div, { layout: !0, "aria-label": b, style: {
|
|
21255
21255
|
display: "inline-flex",
|
|
21256
21256
|
direction: "ltr",
|
|
21257
21257
|
// I think this is needed b/c numbers are always LTR?
|
|
@@ -21280,46 +21280,48 @@ function Z9({
|
|
|
21280
21280
|
Object.entries(u).sort(([l, c], [d, f]) => {
|
|
21281
21281
|
if (c !== f)
|
|
21282
21282
|
return f - c;
|
|
21283
|
-
const h =
|
|
21283
|
+
const h = ti(t).includes(l), p = ti(t).includes(d);
|
|
21284
21284
|
return h !== p ? h ? -1 : 1 : l.localeCompare(d);
|
|
21285
|
-
}).map(([l, c]) =>
|
|
21286
|
-
|
|
21287
|
-
|
|
21288
|
-
|
|
21289
|
-
|
|
21290
|
-
|
|
21291
|
-
|
|
21292
|
-
|
|
21293
|
-
|
|
21294
|
-
|
|
21295
|
-
|
|
21296
|
-
|
|
21297
|
-
|
|
21298
|
-
|
|
21299
|
-
|
|
21300
|
-
|
|
21301
|
-
|
|
21302
|
-
|
|
21303
|
-
|
|
21304
|
-
|
|
21305
|
-
|
|
21306
|
-
|
|
21307
|
-
|
|
21308
|
-
|
|
21309
|
-
|
|
21310
|
-
|
|
21311
|
-
|
|
21312
|
-
|
|
21313
|
-
|
|
21285
|
+
}).map(([l, c]) => {
|
|
21286
|
+
const d = ti(t), f = d.includes(l), h = $o(
|
|
21287
|
+
d.filter((b) => b !== l)
|
|
21288
|
+
), p = f && h === "" ? n : r;
|
|
21289
|
+
return /* @__PURE__ */ m.jsxs(
|
|
21290
|
+
pl.button,
|
|
21291
|
+
{
|
|
21292
|
+
disabled: !p,
|
|
21293
|
+
layoutId: a ? void 0 : `reaction-${o}-${l}`,
|
|
21294
|
+
layout: a ? !1 : "position",
|
|
21295
|
+
initial: a ? !1 : { opacity: 0 },
|
|
21296
|
+
animate: a ? void 0 : { opacity: 1 },
|
|
21297
|
+
exit: a ? void 0 : { opacity: 0 },
|
|
21298
|
+
className: Qa(
|
|
21299
|
+
"relative z-10 flex h-6 items-center gap-1.5 overflow-clip rounded-md border",
|
|
21300
|
+
f ? "border-[color:var(--messaging-border,var(--color-gray-200))] bg-[color:var(--messaging-muted,var(--color-gray-100))] px-1.5 text-[color:var(--messaging-muted-foreground,var(--color-gray-400))] hover:bg-[color:var(--messaging-muted,var(--color-gray-200))] active:border-[color:var(--messaging-border,var(--color-gray-300))] active:bg-[color:var(--messaging-muted,var(--color-gray-300))]" : "border-[color:var(--messaging-border,var(--color-gray-200))] bg-[color:var(--messaging-background,var(--color-white))] px-1.5 text-[color:var(--messaging-muted-foreground,var(--color-gray-400))] hover:bg-[color:var(--messaging-muted,var(--color-gray-200))] active:border-[color:var(--messaging-border,var(--color-gray-300))] active:bg-[color:var(--messaging-muted,var(--color-gray-300))]"
|
|
21301
|
+
),
|
|
21302
|
+
style: {
|
|
21303
|
+
"--emoji": `"${l}"`
|
|
21304
|
+
},
|
|
21305
|
+
onClick: () => {
|
|
21306
|
+
if (f)
|
|
21307
|
+
h === "" ? n?.() : r?.(h);
|
|
21308
|
+
else {
|
|
21309
|
+
const b = $o([
|
|
21310
|
+
...d,
|
|
21311
|
+
l
|
|
21312
|
+
]);
|
|
21313
|
+
r?.(b);
|
|
21314
|
+
}
|
|
21315
|
+
},
|
|
21316
|
+
children: [
|
|
21317
|
+
/* @__PURE__ */ m.jsx("div", { children: l }),
|
|
21318
|
+
/* @__PURE__ */ m.jsx(G9, { className: "text-xs font-medium", children: c })
|
|
21319
|
+
]
|
|
21314
21320
|
},
|
|
21315
|
-
|
|
21316
|
-
|
|
21317
|
-
|
|
21318
|
-
|
|
21319
|
-
},
|
|
21320
|
-
l
|
|
21321
|
-
)),
|
|
21322
|
-
/* @__PURE__ */ m.jsx(
|
|
21321
|
+
l
|
|
21322
|
+
);
|
|
21323
|
+
}),
|
|
21324
|
+
r && /* @__PURE__ */ m.jsx(
|
|
21323
21325
|
pl.div,
|
|
21324
21326
|
{
|
|
21325
21327
|
layout: a ? !1 : "position",
|
|
@@ -21334,7 +21336,7 @@ function Z9({
|
|
|
21334
21336
|
{
|
|
21335
21337
|
className: "h-[326px]",
|
|
21336
21338
|
onEmojiSelect: ({ emoji: l }) => {
|
|
21337
|
-
const c =
|
|
21339
|
+
const c = ti(t), d = $o([
|
|
21338
21340
|
...c,
|
|
21339
21341
|
l
|
|
21340
21342
|
]);
|
|
@@ -21468,50 +21470,51 @@ function ly({
|
|
|
21468
21470
|
onPinError: a,
|
|
21469
21471
|
onCopyLinkSuccess: u,
|
|
21470
21472
|
onCopyLinkError: l,
|
|
21471
|
-
getMessageLink: c
|
|
21473
|
+
getMessageLink: c,
|
|
21474
|
+
canUpdate: d = !0
|
|
21472
21475
|
}) {
|
|
21473
|
-
const { t:
|
|
21474
|
-
|
|
21476
|
+
const { t: f } = Ae(), h = Bn() === !0, [p, b] = S.useState(!1), [x, g] = S.useState(!1), y = sn(), { react: _, unreact: v } = t3(), w = _t(), k = (z) => {
|
|
21477
|
+
_({
|
|
21475
21478
|
conversationId: e.id,
|
|
21476
21479
|
messageId: t.id,
|
|
21477
|
-
reactionString:
|
|
21480
|
+
reactionString: z
|
|
21478
21481
|
});
|
|
21479
|
-
}, [
|
|
21482
|
+
}, [E, A] = S.useOptimistic(
|
|
21480
21483
|
t.pinned,
|
|
21481
|
-
(
|
|
21482
|
-
),
|
|
21483
|
-
|
|
21484
|
-
},
|
|
21484
|
+
(z, B) => B
|
|
21485
|
+
), M = () => {
|
|
21486
|
+
v({ conversationId: e.id, messageId: t.id });
|
|
21487
|
+
}, C = (z) => {
|
|
21485
21488
|
S.startTransition(async () => {
|
|
21486
21489
|
Ph({
|
|
21487
|
-
queryClient:
|
|
21490
|
+
queryClient: y,
|
|
21488
21491
|
conversationId: e.id,
|
|
21489
21492
|
messageId: t.id,
|
|
21490
|
-
pinned:
|
|
21491
|
-
message: ia(
|
|
21492
|
-
}),
|
|
21493
|
+
pinned: z,
|
|
21494
|
+
message: ia(y, e.id, t.id)
|
|
21495
|
+
}), A(z);
|
|
21493
21496
|
try {
|
|
21494
|
-
|
|
21497
|
+
z ? await w.pinMessage(e.id, t.id) : await w.unpinMessage(e.id, t.id);
|
|
21495
21498
|
} catch {
|
|
21496
21499
|
Ph({
|
|
21497
|
-
queryClient:
|
|
21500
|
+
queryClient: y,
|
|
21498
21501
|
conversationId: e.id,
|
|
21499
21502
|
messageId: t.id,
|
|
21500
|
-
pinned: !
|
|
21501
|
-
message: ia(
|
|
21502
|
-
}),
|
|
21503
|
-
t.pinned ?
|
|
21503
|
+
pinned: !z,
|
|
21504
|
+
message: ia(y, e.id, t.id)
|
|
21505
|
+
}), A(t.pinned ?? !1), a?.(
|
|
21506
|
+
t.pinned ? f("message_unpin_error") : f("message_pin_error")
|
|
21504
21507
|
);
|
|
21505
21508
|
}
|
|
21506
21509
|
});
|
|
21507
|
-
},
|
|
21510
|
+
}, j = async () => {
|
|
21508
21511
|
try {
|
|
21509
|
-
const
|
|
21510
|
-
await navigator.clipboard.writeText(
|
|
21511
|
-
} catch (
|
|
21512
|
-
console.error("Failed to copy message link:",
|
|
21512
|
+
const z = c?.(e.id, t.id) ?? `${window.location.origin}/messages/${e.id}/message/${t.id}`;
|
|
21513
|
+
await navigator.clipboard.writeText(z), u?.();
|
|
21514
|
+
} catch (z) {
|
|
21515
|
+
console.error("Failed to copy message link:", z), l?.();
|
|
21513
21516
|
}
|
|
21514
|
-
}, N = (
|
|
21517
|
+
}, N = (z, B) => i ? i({ conversation: e, senderRecipientId: z, children: B }) : B;
|
|
21515
21518
|
return /* @__PURE__ */ m.jsxs(
|
|
21516
21519
|
"div",
|
|
21517
21520
|
{
|
|
@@ -21522,21 +21525,21 @@ function ly({
|
|
|
21522
21525
|
// we only want to animate from optimistic -> real, not the other way around
|
|
21523
21526
|
"transition-opacity duration-1000"
|
|
21524
21527
|
),
|
|
21525
|
-
|
|
21526
|
-
|
|
21528
|
+
p && "z-20",
|
|
21529
|
+
x && "z-20"
|
|
21527
21530
|
),
|
|
21528
21531
|
children: [
|
|
21529
|
-
|
|
21532
|
+
E && r !== "never" && /* @__PURE__ */ m.jsxs(
|
|
21530
21533
|
"div",
|
|
21531
21534
|
{
|
|
21532
21535
|
className: Ee(
|
|
21533
21536
|
"text-messaging-6 mb-2 ml-10.5 flex items-center gap-1.5",
|
|
21534
|
-
|
|
21537
|
+
E && r === "auto" && "text-orange-600",
|
|
21535
21538
|
r === "search" && "text-[color:var(--messaging-primary,var(--color-blue-600))]"
|
|
21536
21539
|
),
|
|
21537
21540
|
children: [
|
|
21538
21541
|
/* @__PURE__ */ m.jsx(Jo, { className: "h-2!", fill: "currentColor" }),
|
|
21539
|
-
/* @__PURE__ */ m.jsx("div", { className: "capsize", children:
|
|
21542
|
+
/* @__PURE__ */ m.jsx("div", { className: "capsize", children: f("message_pinned") })
|
|
21540
21543
|
]
|
|
21541
21544
|
}
|
|
21542
21545
|
),
|
|
@@ -21546,7 +21549,7 @@ function ly({
|
|
|
21546
21549
|
{
|
|
21547
21550
|
className: Fe(
|
|
21548
21551
|
"absolute inset-0 top-4 -z-10 group-hover/message:bg-[color:var(--messaging-muted,var(--color-gray-50))]",
|
|
21549
|
-
|
|
21552
|
+
E && r === "auto" && "bg-amber-50 group-hover/message:bg-amber-100/75",
|
|
21550
21553
|
r === "search" && "bg-[color:var(--messaging-primary-tint,var(--color-blue-50))] group-hover/message:bg-[color:var(--messaging-primary-tint,var(--color-blue-100))]/75"
|
|
21551
21554
|
)
|
|
21552
21555
|
}
|
|
@@ -21556,17 +21559,17 @@ function ly({
|
|
|
21556
21559
|
{
|
|
21557
21560
|
className: Fe(
|
|
21558
21561
|
"text-muted-foreground md:border-border md:bg-background visible absolute top-2 right-2 flex items-center gap-1 rounded-full bg-transparent p-0 md:invisible md:top-0 md:right-4 md:rounded-md md:border md:p-1 md:shadow-lg md:group-hover/message:visible",
|
|
21559
|
-
|
|
21560
|
-
|
|
21562
|
+
p && "visible",
|
|
21563
|
+
x && "visible"
|
|
21561
21564
|
),
|
|
21562
21565
|
// reactions are not supported for sms or email conversations
|
|
21563
21566
|
children: [
|
|
21564
|
-
e.type !== "SmsConversation" && e.type !== "EmailConversation" && /* @__PURE__ */ m.jsxs(
|
|
21567
|
+
d && e.type !== "SmsConversation" && e.type !== "EmailConversation" && /* @__PURE__ */ m.jsxs(
|
|
21565
21568
|
sd,
|
|
21566
21569
|
{
|
|
21567
21570
|
modal: !1,
|
|
21568
|
-
open:
|
|
21569
|
-
onOpenChange:
|
|
21571
|
+
open: p,
|
|
21572
|
+
onOpenChange: b,
|
|
21570
21573
|
children: [
|
|
21571
21574
|
/* @__PURE__ */ m.jsx(od, { className: "hover:bg-accent active:bg-accent hidden size-8 place-items-center rounded-full md:grid md:size-6 md:rounded-sm", children: /* @__PURE__ */ m.jsx(dg, { className: "size-4" }) }),
|
|
21572
21575
|
/* @__PURE__ */ m.jsx(
|
|
@@ -21581,15 +21584,15 @@ function ly({
|
|
|
21581
21584
|
{
|
|
21582
21585
|
className: "h-[326px]",
|
|
21583
21586
|
onEmojiSelect: async ({
|
|
21584
|
-
emoji:
|
|
21587
|
+
emoji: z
|
|
21585
21588
|
}) => {
|
|
21586
|
-
const
|
|
21589
|
+
const B = ti(
|
|
21587
21590
|
t.reaction
|
|
21588
|
-
),
|
|
21589
|
-
...
|
|
21590
|
-
|
|
21591
|
+
), L = $o([
|
|
21592
|
+
...B,
|
|
21593
|
+
z
|
|
21591
21594
|
]);
|
|
21592
|
-
|
|
21595
|
+
k(L), b(!1);
|
|
21593
21596
|
},
|
|
21594
21597
|
children: [
|
|
21595
21598
|
/* @__PURE__ */ m.jsx(Nd, {}),
|
|
@@ -21603,33 +21606,35 @@ function ly({
|
|
|
21603
21606
|
]
|
|
21604
21607
|
}
|
|
21605
21608
|
),
|
|
21606
|
-
|
|
21609
|
+
h ? /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
21607
21610
|
/* @__PURE__ */ m.jsx(
|
|
21608
21611
|
"button",
|
|
21609
21612
|
{
|
|
21610
21613
|
type: "button",
|
|
21611
|
-
onClick: () =>
|
|
21614
|
+
onClick: () => g(!0),
|
|
21612
21615
|
className: "hover:bg-accent active:bg-accent grid size-10 touch-manipulation place-items-center rounded-full",
|
|
21613
|
-
"aria-label":
|
|
21616
|
+
"aria-label": f("header_more_options"),
|
|
21614
21617
|
children: /* @__PURE__ */ m.jsx(di, { className: "size-4" })
|
|
21615
21618
|
}
|
|
21616
21619
|
),
|
|
21617
21620
|
/* @__PURE__ */ m.jsx(
|
|
21618
21621
|
qs,
|
|
21619
21622
|
{
|
|
21620
|
-
open:
|
|
21621
|
-
onOpenChange:
|
|
21622
|
-
title:
|
|
21623
|
+
open: x,
|
|
21624
|
+
onOpenChange: g,
|
|
21625
|
+
title: f("header_more_options"),
|
|
21623
21626
|
actions: [
|
|
21624
|
-
|
|
21625
|
-
|
|
21626
|
-
|
|
21627
|
-
|
|
21628
|
-
|
|
21627
|
+
...d ? [
|
|
21628
|
+
{
|
|
21629
|
+
id: "pin",
|
|
21630
|
+
label: f(E ? "message_unpin" : "message_pin"),
|
|
21631
|
+
onSelect: () => C(!E)
|
|
21632
|
+
}
|
|
21633
|
+
] : [],
|
|
21629
21634
|
{
|
|
21630
21635
|
id: "copy-link",
|
|
21631
|
-
label:
|
|
21632
|
-
onSelect: () => void
|
|
21636
|
+
label: f("message_copy_link"),
|
|
21637
|
+
onSelect: () => void j()
|
|
21633
21638
|
}
|
|
21634
21639
|
]
|
|
21635
21640
|
}
|
|
@@ -21638,8 +21643,8 @@ function ly({
|
|
|
21638
21643
|
Ci,
|
|
21639
21644
|
{
|
|
21640
21645
|
modal: !1,
|
|
21641
|
-
open:
|
|
21642
|
-
onOpenChange:
|
|
21646
|
+
open: x,
|
|
21647
|
+
onOpenChange: g,
|
|
21643
21648
|
children: [
|
|
21644
21649
|
/* @__PURE__ */ m.jsx(Si, { className: "hover:bg-accent active:bg-accent grid size-10 touch-manipulation place-items-center rounded-full md:size-6 md:rounded-sm", children: /* @__PURE__ */ m.jsx(di, { className: "size-4" }) }),
|
|
21645
21650
|
/* @__PURE__ */ m.jsxs(
|
|
@@ -21650,27 +21655,27 @@ function ly({
|
|
|
21650
21655
|
alignOffset: -6,
|
|
21651
21656
|
className: "w-60",
|
|
21652
21657
|
children: [
|
|
21653
|
-
/* @__PURE__ */ m.jsxs(
|
|
21658
|
+
d && /* @__PURE__ */ m.jsxs(
|
|
21654
21659
|
tt,
|
|
21655
21660
|
{
|
|
21656
21661
|
onSelect: () => {
|
|
21657
|
-
|
|
21662
|
+
C(!E), g(!1);
|
|
21658
21663
|
},
|
|
21659
21664
|
className: "cursor-pointer text-sm font-medium text-[color:var(--messaging-foreground,var(--color-gray-700))]",
|
|
21660
21665
|
children: [
|
|
21661
21666
|
/* @__PURE__ */ m.jsx(Jo, { className: "text-[color:var(--messaging-muted-foreground,var(--color-gray-500))]" }),
|
|
21662
|
-
|
|
21667
|
+
f(E ? "message_unpin" : "message_pin")
|
|
21663
21668
|
]
|
|
21664
21669
|
}
|
|
21665
21670
|
),
|
|
21666
21671
|
/* @__PURE__ */ m.jsxs(
|
|
21667
21672
|
tt,
|
|
21668
21673
|
{
|
|
21669
|
-
onSelect:
|
|
21674
|
+
onSelect: j,
|
|
21670
21675
|
className: "cursor-pointer text-sm font-medium text-[color:var(--messaging-foreground,var(--color-gray-700))]",
|
|
21671
21676
|
children: [
|
|
21672
21677
|
/* @__PURE__ */ m.jsx(ug, { className: "text-[color:var(--messaging-muted-foreground,var(--color-gray-500))]" }),
|
|
21673
|
-
|
|
21678
|
+
f("message_copy_link")
|
|
21674
21679
|
]
|
|
21675
21680
|
}
|
|
21676
21681
|
)
|
|
@@ -21711,7 +21716,7 @@ function ly({
|
|
|
21711
21716
|
t.sender_recipient.first_name,
|
|
21712
21717
|
" ",
|
|
21713
21718
|
t.sender_recipient.last_name,
|
|
21714
|
-
!t.sender_recipient.first_name && !t.sender_recipient.last_name && /* @__PURE__ */ m.jsx(m.Fragment, { children: t.sender_recipient.phone || t.sender_recipient.email ||
|
|
21719
|
+
!t.sender_recipient.first_name && !t.sender_recipient.last_name && /* @__PURE__ */ m.jsx(m.Fragment, { children: t.sender_recipient.phone || t.sender_recipient.email || f("message_unknown_sender") })
|
|
21715
21720
|
] })
|
|
21716
21721
|
),
|
|
21717
21722
|
/* @__PURE__ */ m.jsx(Bc, { className: "capsize text-muted-foreground text-[11px] md:text-[9px]", children: t.sent_at ?? t.created_at })
|
|
@@ -21729,8 +21734,8 @@ function ly({
|
|
|
21729
21734
|
{
|
|
21730
21735
|
reactions: t.reaction_stats,
|
|
21731
21736
|
my_reaction: t.reaction,
|
|
21732
|
-
onUnreact:
|
|
21733
|
-
onReact:
|
|
21737
|
+
onUnreact: d ? M : void 0,
|
|
21738
|
+
onReact: d ? k : void 0
|
|
21734
21739
|
}
|
|
21735
21740
|
)
|
|
21736
21741
|
] })
|
|
@@ -21758,7 +21763,7 @@ function X9({
|
|
|
21758
21763
|
if (l && "conversation_name" in l) {
|
|
21759
21764
|
const { conversation_name: b, member_count: x, auto_add_recipients: g } = l, { isChannel: y } = en(t);
|
|
21760
21765
|
if (y) {
|
|
21761
|
-
const { text: _ } =
|
|
21766
|
+
const { text: _ } = Qr(b), v = Ui(_), w = t.broadcasting ? o("broadcast_channel") : o("channel");
|
|
21762
21767
|
return g ? o("system_created_channel_auto_add", {
|
|
21763
21768
|
prefix: w,
|
|
21764
21769
|
channelName: v,
|
|
@@ -21785,7 +21790,7 @@ function X9({
|
|
|
21785
21790
|
return n;
|
|
21786
21791
|
const { isChannel: b } = en(t);
|
|
21787
21792
|
if (b) {
|
|
21788
|
-
const { text: x } =
|
|
21793
|
+
const { text: x } = Qr(t.name), g = Ui(x), y = t.broadcasting ? o("broadcast_channel") : o("channel"), _ = t.recipients?.length || 0;
|
|
21789
21794
|
return o("system_created_channel_named", {
|
|
21790
21795
|
prefix: y,
|
|
21791
21796
|
channelName: g,
|
|
@@ -21809,14 +21814,14 @@ function X9({
|
|
|
21809
21814
|
if (c && "name" in c && "previous_name" in c) {
|
|
21810
21815
|
const { name: b, previous_name: x } = c;
|
|
21811
21816
|
if (!x || x.trim() === "") {
|
|
21812
|
-
const { text: k } =
|
|
21817
|
+
const { text: k } = Qr(b), { isChannel: E } = en(t);
|
|
21813
21818
|
if (E) {
|
|
21814
21819
|
const A = Ui(k);
|
|
21815
21820
|
return o("system_named_channel", { channelName: A });
|
|
21816
21821
|
} else
|
|
21817
21822
|
return o("system_named_group", { name: b });
|
|
21818
21823
|
}
|
|
21819
|
-
const { emoji: g, text: y } =
|
|
21824
|
+
const { emoji: g, text: y } = Qr(b), { emoji: _, text: v } = Qr(x);
|
|
21820
21825
|
if (y === v && g !== _)
|
|
21821
21826
|
return o("system_changed_emoji", {
|
|
21822
21827
|
oldEmoji: _ || o("none"),
|
|
@@ -22053,8 +22058,8 @@ function rj({
|
|
|
22053
22058
|
if (!A || A.hasAttribute("data-anchored-ignore")) continue;
|
|
22054
22059
|
const M = y[E];
|
|
22055
22060
|
if (M === void 0) continue;
|
|
22056
|
-
const
|
|
22057
|
-
w.push(
|
|
22061
|
+
const j = tm(A, b) - M;
|
|
22062
|
+
w.push(j);
|
|
22058
22063
|
}
|
|
22059
22064
|
const k = nj(w);
|
|
22060
22065
|
if (k !== null) {
|
|
@@ -22192,7 +22197,7 @@ const Vc = (e, t) => {
|
|
|
22192
22197
|
});
|
|
22193
22198
|
};
|
|
22194
22199
|
function oj(e) {
|
|
22195
|
-
const { data: t } =
|
|
22200
|
+
const { data: t } = Rr(e), n = sn(), r = !e, i = S.useRef(/* @__PURE__ */ new Map()), s = () => {
|
|
22196
22201
|
const g = t?.draft_message ?? void 0;
|
|
22197
22202
|
return {
|
|
22198
22203
|
body: g?.body || "",
|
|
@@ -22536,7 +22541,7 @@ const pj = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4
|
|
|
22536
22541
|
function xj(e, t) {
|
|
22537
22542
|
return e in t || (t[e] = []), t[e];
|
|
22538
22543
|
}
|
|
22539
|
-
function
|
|
22544
|
+
function Sr(e, t, n) {
|
|
22540
22545
|
t[Uc] && (t[gs] = !0, t[ts] = !0), t[Hc] && (t[gs] = !0, t[qc] = !0), t[gs] && (t[ts] = !0), t[qc] && (t[ts] = !0), t[ts] && (t[Wc] = !0), t[dy] && (t[Wc] = !0);
|
|
22541
22546
|
for (const r in t) {
|
|
22542
22547
|
const i = xj(r, n);
|
|
@@ -22608,7 +22613,7 @@ Ct.prototype = {
|
|
|
22608
22613
|
tr(e, t, n, r) {
|
|
22609
22614
|
r = r || Ct.groups;
|
|
22610
22615
|
let i;
|
|
22611
|
-
return t && t.j ? i = t : (i = new Ct(t), n && r &&
|
|
22616
|
+
return t && t.j ? i = t : (i = new Ct(t), n && r && Sr(t, n, r)), this.jr.push([e, i]), i;
|
|
22612
22617
|
},
|
|
22613
22618
|
/**
|
|
22614
22619
|
* Short for "take transitions", will take as many sequential transitions as
|
|
@@ -22666,14 +22671,14 @@ Ct.prototype = {
|
|
|
22666
22671
|
if (r)
|
|
22667
22672
|
if (o.t && typeof o.t == "string") {
|
|
22668
22673
|
const u = Object.assign(yj(o.t, r), n);
|
|
22669
|
-
|
|
22670
|
-
} else n &&
|
|
22674
|
+
Sr(s, u, r);
|
|
22675
|
+
} else n && Sr(s, n, r);
|
|
22671
22676
|
o.t = s;
|
|
22672
22677
|
}
|
|
22673
22678
|
return i.j[e] = o, o;
|
|
22674
22679
|
}
|
|
22675
22680
|
};
|
|
22676
|
-
const Ce = (e, t, n, r, i) => e.ta(t, n, r, i), Xe = (e, t, n, r, i) => e.tr(t, n, r, i), nm = (e, t, n, r, i) => e.ts(t, n, r, i), G = (e, t, n, r, i) => e.tt(t, n, r, i), jn = "WORD", Kc = "UWORD", fy = "ASCIINUMERICAL", hy = "ALPHANUMERICAL", Fs = "LOCALHOST", Gc = "TLD", Zc = "UTLD", Ko = "SCHEME",
|
|
22681
|
+
const Ce = (e, t, n, r, i) => e.ta(t, n, r, i), Xe = (e, t, n, r, i) => e.tr(t, n, r, i), nm = (e, t, n, r, i) => e.ts(t, n, r, i), G = (e, t, n, r, i) => e.tt(t, n, r, i), jn = "WORD", Kc = "UWORD", fy = "ASCIINUMERICAL", hy = "ALPHANUMERICAL", Fs = "LOCALHOST", Gc = "TLD", Zc = "UTLD", Ko = "SCHEME", Xr = "SLASH_SCHEME", Of = "NUM", Qc = "WS", $f = "NL", bs = "OPENBRACE", xs = "CLOSEBRACE", ba = "OPENBRACKET", xa = "CLOSEBRACKET", ya = "OPENPAREN", va = "CLOSEPAREN", _a = "OPENANGLEBRACKET", ka = "CLOSEANGLEBRACKET", wa = "FULLWIDTHLEFTPAREN", Ca = "FULLWIDTHRIGHTPAREN", Sa = "LEFTCORNERBRACKET", Aa = "RIGHTCORNERBRACKET", Ea = "LEFTWHITECORNERBRACKET", Ta = "RIGHTWHITECORNERBRACKET", Da = "FULLWIDTHLESSTHAN", Ma = "FULLWIDTHGREATERTHAN", ja = "AMPERSAND", Na = "APOSTROPHE", Pa = "ASTERISK", Qn = "AT", Fa = "BACKSLASH", Ia = "BACKTICK", La = "CARET", Xn = "COLON", Bf = "COMMA", Ra = "DOLLAR", fn = "DOT", za = "EQUALS", Vf = "EXCLAMATION", $t = "HYPHEN", ys = "PERCENT", Oa = "PIPE", $a = "PLUS", Ba = "POUND", vs = "QUERY", Uf = "QUOTE", py = "FULLWIDTHMIDDLEDOT", Hf = "SEMI", hn = "SLASH", _s = "TILDE", Va = "UNDERSCORE", my = "EMOJI", Ua = "SYM";
|
|
22677
22682
|
var gy = /* @__PURE__ */ Object.freeze({
|
|
22678
22683
|
__proto__: null,
|
|
22679
22684
|
ALPHANUMERICAL: hy,
|
|
@@ -22722,7 +22727,7 @@ var gy = /* @__PURE__ */ Object.freeze({
|
|
|
22722
22727
|
SCHEME: Ko,
|
|
22723
22728
|
SEMI: Hf,
|
|
22724
22729
|
SLASH: hn,
|
|
22725
|
-
SLASH_SCHEME:
|
|
22730
|
+
SLASH_SCHEME: Xr,
|
|
22726
22731
|
SYM: Ua,
|
|
22727
22732
|
TILDE: _s,
|
|
22728
22733
|
TLD: Gc,
|
|
@@ -22775,16 +22780,16 @@ function kj(e = []) {
|
|
|
22775
22780
|
Kn(n, Mo[b], Gc, jn, h);
|
|
22776
22781
|
for (let b = 0; b < jo.length; b++)
|
|
22777
22782
|
Kn(n, jo[b], Zc, Kc, p);
|
|
22778
|
-
|
|
22783
|
+
Sr(Gc, {
|
|
22779
22784
|
tld: !0,
|
|
22780
22785
|
ascii: !0
|
|
22781
|
-
}, t),
|
|
22786
|
+
}, t), Sr(Zc, {
|
|
22782
22787
|
utld: !0,
|
|
22783
22788
|
alpha: !0
|
|
22784
|
-
}, t), Kn(n, "file", Ko, jn, h), Kn(n, "mailto", Ko, jn, h), Kn(n, "http",
|
|
22789
|
+
}, t), Kn(n, "file", Ko, jn, h), Kn(n, "mailto", Ko, jn, h), Kn(n, "http", Xr, jn, h), Kn(n, "https", Xr, jn, h), Kn(n, "ftp", Xr, jn, h), Kn(n, "ftps", Xr, jn, h), Sr(Ko, {
|
|
22785
22790
|
scheme: !0,
|
|
22786
22791
|
ascii: !0
|
|
22787
|
-
}, t),
|
|
22792
|
+
}, t), Sr(Xr, {
|
|
22788
22793
|
slashscheme: !0,
|
|
22789
22794
|
ascii: !0
|
|
22790
22795
|
}, t), e = e.sort((b, x) => b[0] > x[0] ? 1 : -1);
|
|
@@ -23123,7 +23128,7 @@ function Sj({
|
|
|
23123
23128
|
Ce(w, t, w), Ce(w, n, k), Ce(k, t, w), Ce(k, n, k), G(y, hn, w), G(v, hn, w);
|
|
23124
23129
|
const E = G(a, Xn), A = G(u, Xn), M = G(A, hn), C = G(M, hn);
|
|
23125
23130
|
Ce(a, e.domain, o), G(a, fn, g), G(a, $t, x), Ce(u, e.domain, o), G(u, fn, g), G(u, $t, x), Ce(E, e.domain, w), G(E, hn, w), G(E, vs, w), Ce(C, e.domain, w), Ce(C, t, w), G(C, hn, w);
|
|
23126
|
-
const
|
|
23131
|
+
const j = [
|
|
23127
23132
|
[bs, xs],
|
|
23128
23133
|
// {}
|
|
23129
23134
|
[ba, xa],
|
|
@@ -23141,9 +23146,9 @@ function Sj({
|
|
|
23141
23146
|
[Da, Ma]
|
|
23142
23147
|
// <>
|
|
23143
23148
|
];
|
|
23144
|
-
for (let
|
|
23145
|
-
const [
|
|
23146
|
-
G(k,
|
|
23149
|
+
for (let N = 0; N < j.length; N++) {
|
|
23150
|
+
const [z, B] = j[N], L = G(w, z);
|
|
23151
|
+
G(k, z, L), G(L, B, w);
|
|
23147
23152
|
const q = zt(No);
|
|
23148
23153
|
Ce(L, t, q);
|
|
23149
23154
|
const U = zt();
|
|
@@ -23337,7 +23342,7 @@ function xr(e, t) {
|
|
|
23337
23342
|
"i"
|
|
23338
23343
|
));
|
|
23339
23344
|
}
|
|
23340
|
-
const zj =
|
|
23345
|
+
const zj = Lr.create({
|
|
23341
23346
|
name: "link",
|
|
23342
23347
|
priority: 1e3,
|
|
23343
23348
|
keepOnSplit: !1,
|
|
@@ -23413,9 +23418,9 @@ const zj = Rr.create({
|
|
|
23413
23418
|
defaultValidate: (t) => !!xr(t, this.options.protocols),
|
|
23414
23419
|
protocols: this.options.protocols,
|
|
23415
23420
|
defaultProtocol: this.options.defaultProtocol
|
|
23416
|
-
}) ? ["a",
|
|
23421
|
+
}) ? ["a", Jr(this.options.HTMLAttributes, e), 0] : [
|
|
23417
23422
|
"a",
|
|
23418
|
-
|
|
23423
|
+
Jr(this.options.HTMLAttributes, { ...e, href: "" }),
|
|
23419
23424
|
0
|
|
23420
23425
|
];
|
|
23421
23426
|
},
|
|
@@ -25124,8 +25129,8 @@ function tP(e, t, n, r) {
|
|
|
25124
25129
|
a = e.push("list_item_open", "li", 1), a.markup = String.fromCharCode(p);
|
|
25125
25130
|
const M = [u, 0];
|
|
25126
25131
|
a.map = M, d && (a.info = e.src.slice(o, h - 1));
|
|
25127
|
-
const C = e.tight,
|
|
25128
|
-
if (e.listIndent = e.blkIndent, e.blkIndent = A, e.tight = !0, e.tShift[u] = k - e.bMarks[u], e.sCount[u] = w, k >= i && e.isEmpty(u + 1) ? e.line = Math.min(e.line + 2, n) : e.md.block.tokenize(e, u, n, !0), (!e.tight || g) && (l = !1), g = e.line - u > 1 && e.isEmpty(e.line - 1), e.blkIndent = e.listIndent, e.listIndent =
|
|
25132
|
+
const C = e.tight, j = e.tShift[u], N = e.sCount[u], z = e.listIndent;
|
|
25133
|
+
if (e.listIndent = e.blkIndent, e.blkIndent = A, e.tight = !0, e.tShift[u] = k - e.bMarks[u], e.sCount[u] = w, k >= i && e.isEmpty(u + 1) ? e.line = Math.min(e.line + 2, n) : e.md.block.tokenize(e, u, n, !0), (!e.tight || g) && (l = !1), g = e.line - u > 1 && e.isEmpty(e.line - 1), e.blkIndent = e.listIndent, e.listIndent = z, e.tShift[u] = j, e.sCount[u] = N, e.tight = C, a = e.push("list_item_close", "li", -1), a.markup = String.fromCharCode(p), u = e.line, M[1] = u, u >= n || e.sCount[u] < e.blkIndent || e.sCount[u] - e.blkIndent >= 4)
|
|
25129
25134
|
break;
|
|
25130
25135
|
let B = !1;
|
|
25131
25136
|
for (let L = 0, q = y.length; L < q; L++)
|
|
@@ -25159,7 +25164,7 @@ function nP(e, t, n, r) {
|
|
|
25159
25164
|
const E = e.md.block.ruler.getRules("reference"), A = e.parentType;
|
|
25160
25165
|
e.parentType = "reference";
|
|
25161
25166
|
let M = !1;
|
|
25162
|
-
for (let C = 0,
|
|
25167
|
+
for (let C = 0, j = E.length; C < j; C++)
|
|
25163
25168
|
if (E[C](e, y, _, !0)) {
|
|
25164
25169
|
M = !0;
|
|
25165
25170
|
break;
|
|
@@ -28403,8 +28408,8 @@ function _I(e, t, n, r) {
|
|
|
28403
28408
|
a = e.push("list_item_open", "li", 1), a.markup = String.fromCharCode(p);
|
|
28404
28409
|
const M = [u, 0];
|
|
28405
28410
|
a.map = M, d && (a.info = e.src.slice(o, h - 1));
|
|
28406
|
-
const C = e.tight,
|
|
28407
|
-
if (e.listIndent = e.blkIndent, e.blkIndent = A, e.tight = !0, e.tShift[u] = k - e.bMarks[u], e.sCount[u] = w, k >= i && e.isEmpty(u + 1) ? e.line = Math.min(e.line + 2, n) : e.md.block.tokenize(e, u, n, !0), (!e.tight || g) && (l = !1), g = e.line - u > 1 && e.isEmpty(e.line - 1), e.blkIndent = e.listIndent, e.listIndent =
|
|
28411
|
+
const C = e.tight, j = e.tShift[u], N = e.sCount[u], z = e.listIndent;
|
|
28412
|
+
if (e.listIndent = e.blkIndent, e.blkIndent = A, e.tight = !0, e.tShift[u] = k - e.bMarks[u], e.sCount[u] = w, k >= i && e.isEmpty(u + 1) ? e.line = Math.min(e.line + 2, n) : e.md.block.tokenize(e, u, n, !0), (!e.tight || g) && (l = !1), g = e.line - u > 1 && e.isEmpty(e.line - 1), e.blkIndent = e.listIndent, e.listIndent = z, e.tShift[u] = j, e.sCount[u] = N, e.tight = C, a = e.push("list_item_close", "li", -1), a.markup = String.fromCharCode(p), u = e.line, M[1] = u, u >= n || e.sCount[u] < e.blkIndent || e.sCount[u] - e.blkIndent >= 4)
|
|
28408
28413
|
break;
|
|
28409
28414
|
let B = !1;
|
|
28410
28415
|
for (let L = 0, q = y.length; L < q; L++)
|
|
@@ -28438,7 +28443,7 @@ function kI(e, t, n, r) {
|
|
|
28438
28443
|
const E = e.md.block.ruler.getRules("reference"), A = e.parentType;
|
|
28439
28444
|
e.parentType = "reference";
|
|
28440
28445
|
let M = !1;
|
|
28441
|
-
for (let C = 0,
|
|
28446
|
+
for (let C = 0, j = E.length; C < j; C++)
|
|
28442
28447
|
if (E[C](e, y, _, !0)) {
|
|
28443
28448
|
M = !0;
|
|
28444
28449
|
break;
|
|
@@ -28579,7 +28584,7 @@ const wI = [
|
|
|
28579
28584
|
"tr",
|
|
28580
28585
|
"track",
|
|
28581
28586
|
"ul"
|
|
28582
|
-
], CI = "[a-zA-Z_:][a-zA-Z0-9:._-]*", SI = "[^\"'=<>`\\x00-\\x20]+", AI = "'[^']*'", EI = '"[^"]*"', TI = "(?:" + SI + "|" + AI + "|" + EI + ")", DI = "(?:\\s+" + CI + "(?:\\s*=\\s*" + TI + ")?)", Zy = "<[A-Za-z][A-Za-z0-9\\-]*" + DI + "*\\s*\\/?>", Qy = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", MI = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", jI = "<[?][\\s\\S]*?[?]>", NI = "<![A-Za-z][^>]*>", PI = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", FI = new RegExp("^(?:" + Zy + "|" + Qy + "|" + MI + "|" + jI + "|" + NI + "|" + PI + ")"), II = new RegExp("^(?:" + Zy + "|" + Qy + ")"),
|
|
28587
|
+
], CI = "[a-zA-Z_:][a-zA-Z0-9:._-]*", SI = "[^\"'=<>`\\x00-\\x20]+", AI = "'[^']*'", EI = '"[^"]*"', TI = "(?:" + SI + "|" + AI + "|" + EI + ")", DI = "(?:\\s+" + CI + "(?:\\s*=\\s*" + TI + ")?)", Zy = "<[A-Za-z][A-Za-z0-9\\-]*" + DI + "*\\s*\\/?>", Qy = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", MI = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", jI = "<[?][\\s\\S]*?[?]>", NI = "<![A-Za-z][^>]*>", PI = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", FI = new RegExp("^(?:" + Zy + "|" + Qy + "|" + MI + "|" + jI + "|" + NI + "|" + PI + ")"), II = new RegExp("^(?:" + Zy + "|" + Qy + ")"), Kr = [
|
|
28583
28588
|
[/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, !0],
|
|
28584
28589
|
[/^<!--/, /-->/, !0],
|
|
28585
28590
|
[/^<\?/, /\?>/, !0],
|
|
@@ -28593,16 +28598,16 @@ function LI(e, t, n, r) {
|
|
|
28593
28598
|
if (e.sCount[t] - e.blkIndent >= 4 || !e.md.options.html || e.src.charCodeAt(i) !== 60)
|
|
28594
28599
|
return !1;
|
|
28595
28600
|
let o = e.src.slice(i, s), a = 0;
|
|
28596
|
-
for (; a <
|
|
28601
|
+
for (; a < Kr.length && !Kr[a][0].test(o); a++)
|
|
28597
28602
|
;
|
|
28598
|
-
if (a ===
|
|
28603
|
+
if (a === Kr.length)
|
|
28599
28604
|
return !1;
|
|
28600
28605
|
if (r)
|
|
28601
|
-
return
|
|
28606
|
+
return Kr[a][2];
|
|
28602
28607
|
let u = t + 1;
|
|
28603
|
-
if (!
|
|
28608
|
+
if (!Kr[a][1].test(o)) {
|
|
28604
28609
|
for (; u < n && !(e.sCount[u] < e.blkIndent); u++)
|
|
28605
|
-
if (i = e.bMarks[u] + e.tShift[u], s = e.eMarks[u], o = e.src.slice(i, s),
|
|
28610
|
+
if (i = e.bMarks[u] + e.tShift[u], s = e.eMarks[u], o = e.src.slice(i, s), Kr[a][1].test(o)) {
|
|
28606
28611
|
o.length !== 0 && u++;
|
|
28607
28612
|
break;
|
|
28608
28613
|
}
|
|
@@ -29950,7 +29955,7 @@ class BL extends Hy {
|
|
|
29950
29955
|
};
|
|
29951
29956
|
}
|
|
29952
29957
|
}
|
|
29953
|
-
const rv =
|
|
29958
|
+
const rv = Lr.create({
|
|
29954
29959
|
name: "markdownHTMLMark",
|
|
29955
29960
|
/**
|
|
29956
29961
|
* @return {{markdown: MarkdownMarkSpec}}
|
|
@@ -30328,7 +30333,7 @@ const m7 = bt.create({
|
|
|
30328
30333
|
}
|
|
30329
30334
|
};
|
|
30330
30335
|
}
|
|
30331
|
-
}), _7 =
|
|
30336
|
+
}), _7 = Lr.create({
|
|
30332
30337
|
name: "bold"
|
|
30333
30338
|
}), k7 = _7.extend({
|
|
30334
30339
|
/**
|
|
@@ -30344,7 +30349,7 @@ const m7 = bt.create({
|
|
|
30344
30349
|
}
|
|
30345
30350
|
};
|
|
30346
30351
|
}
|
|
30347
|
-
}), w7 =
|
|
30352
|
+
}), w7 = Lr.create({
|
|
30348
30353
|
name: "code"
|
|
30349
30354
|
}), C7 = w7.extend({
|
|
30350
30355
|
/**
|
|
@@ -30360,7 +30365,7 @@ const m7 = bt.create({
|
|
|
30360
30365
|
}
|
|
30361
30366
|
};
|
|
30362
30367
|
}
|
|
30363
|
-
}), S7 =
|
|
30368
|
+
}), S7 = Lr.create({
|
|
30364
30369
|
name: "italic"
|
|
30365
30370
|
}), A7 = S7.extend({
|
|
30366
30371
|
/**
|
|
@@ -30376,7 +30381,7 @@ const m7 = bt.create({
|
|
|
30376
30381
|
}
|
|
30377
30382
|
};
|
|
30378
30383
|
}
|
|
30379
|
-
}), E7 =
|
|
30384
|
+
}), E7 = Lr.create({
|
|
30380
30385
|
name: "link"
|
|
30381
30386
|
}), T7 = E7.extend({
|
|
30382
30387
|
/**
|
|
@@ -30392,7 +30397,7 @@ const m7 = bt.create({
|
|
|
30392
30397
|
}
|
|
30393
30398
|
};
|
|
30394
30399
|
}
|
|
30395
|
-
}), D7 =
|
|
30400
|
+
}), D7 = Lr.create({
|
|
30396
30401
|
name: "strike"
|
|
30397
30402
|
}), M7 = D7.extend({
|
|
30398
30403
|
/**
|
|
@@ -30703,11 +30708,11 @@ function O7({ pluginKey: e = z7, editor: t, char: n = "@", allowSpaces: r = !1,
|
|
|
30703
30708
|
view() {
|
|
30704
30709
|
return {
|
|
30705
30710
|
update: async (_, v) => {
|
|
30706
|
-
var w, k, E, A, M, C,
|
|
30707
|
-
const
|
|
30711
|
+
var w, k, E, A, M, C, j;
|
|
30712
|
+
const N = (w = this.key) === null || w === void 0 ? void 0 : w.getState(v), z = (k = this.key) === null || k === void 0 ? void 0 : k.getState(_.state), B = N.active && z.active && N.range.from !== z.range.from, L = !N.active && z.active, q = N.active && !z.active, U = !L && !q && N.query !== z.query, X = L || B && U, le = U || B, T = q || B && U;
|
|
30708
30713
|
if (!X && !le && !T)
|
|
30709
30714
|
return;
|
|
30710
|
-
const me = T && !X ?
|
|
30715
|
+
const me = T && !X ? N : z, ve = _.dom.querySelector(`[data-decoration-id="${me.decorationId}"]`);
|
|
30711
30716
|
x = {
|
|
30712
30717
|
editor: t,
|
|
30713
30718
|
range: me.range,
|
|
@@ -30724,13 +30729,13 @@ function O7({ pluginKey: e = z7, editor: t, char: n = "@", allowSpaces: r = !1,
|
|
|
30724
30729
|
// this can be used for building popups without a DOM node
|
|
30725
30730
|
clientRect: ve ? () => {
|
|
30726
30731
|
var D;
|
|
30727
|
-
const { decorationId:
|
|
30732
|
+
const { decorationId: O } = (D = this.key) === null || D === void 0 ? void 0 : D.getState(t.state), I = _.dom.querySelector(`[data-decoration-id="${O}"]`);
|
|
30728
30733
|
return I?.getBoundingClientRect() || null;
|
|
30729
30734
|
} : null
|
|
30730
30735
|
}, X && ((E = g?.onBeforeStart) === null || E === void 0 || E.call(g, x)), le && ((A = g?.onBeforeUpdate) === null || A === void 0 || A.call(g, x)), (le || X) && (x.items = await f({
|
|
30731
30736
|
editor: t,
|
|
30732
30737
|
query: me.query
|
|
30733
|
-
})), T && ((M = g?.onExit) === null || M === void 0 || M.call(g, x)), le && ((C = g?.onUpdate) === null || C === void 0 || C.call(g, x)), X && ((
|
|
30738
|
+
})), T && ((M = g?.onExit) === null || M === void 0 || M.call(g, x)), le && ((C = g?.onUpdate) === null || C === void 0 || C.call(g, x)), X && ((j = g?.onStart) === null || j === void 0 || j.call(g, x));
|
|
30734
30739
|
},
|
|
30735
30740
|
destroy: () => {
|
|
30736
30741
|
var _;
|
|
@@ -30754,10 +30759,10 @@ function O7({ pluginKey: e = z7, editor: t, char: n = "@", allowSpaces: r = !1,
|
|
|
30754
30759
|
},
|
|
30755
30760
|
// Apply changes to the plugin state from a view transaction.
|
|
30756
30761
|
apply(_, v, w, k) {
|
|
30757
|
-
const { isEditable: E } = t, { composing: A } = t.view, { selection: M } = _, { empty: C, from:
|
|
30758
|
-
if (
|
|
30759
|
-
(
|
|
30760
|
-
const
|
|
30762
|
+
const { isEditable: E } = t, { composing: A } = t.view, { selection: M } = _, { empty: C, from: j } = M, N = { ...v };
|
|
30763
|
+
if (N.composing = A, E && (C || t.view.composing)) {
|
|
30764
|
+
(j < v.range.from || j > v.range.to) && !A && !v.composing && (N.active = !1);
|
|
30765
|
+
const z = b({
|
|
30761
30766
|
char: n,
|
|
30762
30767
|
allowSpaces: r,
|
|
30763
30768
|
allowToIncludeChar: i,
|
|
@@ -30765,15 +30770,15 @@ function O7({ pluginKey: e = z7, editor: t, char: n = "@", allowSpaces: r = !1,
|
|
|
30765
30770
|
startOfLine: o,
|
|
30766
30771
|
$position: M.$from
|
|
30767
30772
|
}), B = `id_${Math.floor(Math.random() * 4294967295)}`;
|
|
30768
|
-
|
|
30773
|
+
z && p({
|
|
30769
30774
|
editor: t,
|
|
30770
30775
|
state: k,
|
|
30771
|
-
range:
|
|
30776
|
+
range: z.range,
|
|
30772
30777
|
isActive: v.active
|
|
30773
|
-
}) ? (
|
|
30778
|
+
}) ? (N.active = !0, N.decorationId = v.decorationId ? v.decorationId : B, N.range = z.range, N.query = z.query, N.text = z.text) : N.active = !1;
|
|
30774
30779
|
} else
|
|
30775
|
-
|
|
30776
|
-
return
|
|
30780
|
+
N.active = !1;
|
|
30781
|
+
return N.active || (N.decorationId = null, N.range = { from: 0, to: 0 }, N.query = null, N.text = null), N;
|
|
30777
30782
|
}
|
|
30778
30783
|
},
|
|
30779
30784
|
props: {
|
|
@@ -30857,7 +30862,7 @@ const B7 = bt.create({
|
|
|
30857
30862
|
var r, i;
|
|
30858
30863
|
return [
|
|
30859
30864
|
"span",
|
|
30860
|
-
|
|
30865
|
+
Jr(this.HTMLAttributes, e.HTMLAttributes),
|
|
30861
30866
|
`${(r = n?.char) !== null && r !== void 0 ? r : "@"}${(i = t.attrs.label) !== null && i !== void 0 ? i : t.attrs.id}`
|
|
30862
30867
|
];
|
|
30863
30868
|
},
|
|
@@ -30907,7 +30912,7 @@ const B7 = bt.create({
|
|
|
30907
30912
|
if (this.options.renderLabel !== void 0)
|
|
30908
30913
|
return console.warn("renderLabel is deprecated use renderText and renderHTML instead"), [
|
|
30909
30914
|
"span",
|
|
30910
|
-
|
|
30915
|
+
Jr({ "data-type": this.name }, this.options.HTMLAttributes, t),
|
|
30911
30916
|
this.options.renderLabel({
|
|
30912
30917
|
options: this.options,
|
|
30913
30918
|
node: e,
|
|
@@ -30915,7 +30920,7 @@ const B7 = bt.create({
|
|
|
30915
30920
|
})
|
|
30916
30921
|
];
|
|
30917
30922
|
const r = { ...this.options };
|
|
30918
|
-
r.HTMLAttributes =
|
|
30923
|
+
r.HTMLAttributes = Jr({ "data-type": this.name }, this.options.HTMLAttributes, t);
|
|
30919
30924
|
const i = this.options.renderHTML({
|
|
30920
30925
|
options: r,
|
|
30921
30926
|
node: e,
|
|
@@ -30923,7 +30928,7 @@ const B7 = bt.create({
|
|
|
30923
30928
|
});
|
|
30924
30929
|
return typeof i == "string" ? [
|
|
30925
30930
|
"span",
|
|
30926
|
-
|
|
30931
|
+
Jr({ "data-type": this.name }, this.options.HTMLAttributes, t),
|
|
30927
30932
|
i
|
|
30928
30933
|
] : i;
|
|
30929
30934
|
},
|
|
@@ -30964,15 +30969,15 @@ function U7() {
|
|
|
30964
30969
|
((t, n) => {
|
|
30965
30970
|
e.exports ? e.exports = n() : t.fuzzysort = n();
|
|
30966
30971
|
})(V7, (t) => {
|
|
30967
|
-
var n = (
|
|
30968
|
-
if (!
|
|
30969
|
-
var $ = p(
|
|
30972
|
+
var n = (O, I) => {
|
|
30973
|
+
if (!O || !I) return T;
|
|
30974
|
+
var $ = p(O);
|
|
30970
30975
|
q(I) || (I = h(I));
|
|
30971
30976
|
var W = $.bitflags;
|
|
30972
30977
|
return (W & I._bitflags) !== W ? T : x($, I);
|
|
30973
|
-
}, r = (
|
|
30974
|
-
if (!
|
|
30975
|
-
var W = p(
|
|
30978
|
+
}, r = (O, I, $) => {
|
|
30979
|
+
if (!O) return $?.all ? b(I, $) : le;
|
|
30980
|
+
var W = p(O), V = W.bitflags, J = W.containsSpace, K = d($?.threshold || 0), re = $?.limit || U, ie = 0, pe = 0, ue = I.length;
|
|
30976
30981
|
function Me(xe) {
|
|
30977
30982
|
ie < re ? (D.add(xe), ++ie) : (++pe, xe._score > D.peek()._score && D.replaceTop(xe));
|
|
30978
30983
|
}
|
|
@@ -30992,16 +30997,16 @@ function U7() {
|
|
|
30992
30997
|
for (var Oe = 0, be = 0; be < ze; ++be) {
|
|
30993
30998
|
var Ie = nt[be], we = L(Re, Ie);
|
|
30994
30999
|
if (!we) {
|
|
30995
|
-
|
|
31000
|
+
z[be] = me;
|
|
30996
31001
|
continue;
|
|
30997
31002
|
}
|
|
30998
|
-
q(we) || (we = h(we)),
|
|
31003
|
+
q(we) || (we = h(we)), z[be] = we, Oe |= we._bitflags;
|
|
30999
31004
|
}
|
|
31000
31005
|
if ((V & Oe) !== V) continue;
|
|
31001
31006
|
}
|
|
31002
|
-
if (J) for (let de = 0; de < W.spaceSearches.length; de++)
|
|
31007
|
+
if (J) for (let de = 0; de < W.spaceSearches.length; de++) j[de] = X;
|
|
31003
31008
|
for (var be = 0; be < ze; ++be) {
|
|
31004
|
-
if (we =
|
|
31009
|
+
if (we = z[be], we === me) {
|
|
31005
31010
|
B[be] = me;
|
|
31006
31011
|
continue;
|
|
31007
31012
|
}
|
|
@@ -31017,16 +31022,16 @@ function U7() {
|
|
|
31017
31022
|
continue;
|
|
31018
31023
|
}
|
|
31019
31024
|
if (J) for (let _e = 0; _e < W.spaceSearches.length; _e++) {
|
|
31020
|
-
if (
|
|
31021
|
-
var $e = (
|
|
31022
|
-
$e >
|
|
31025
|
+
if (N[_e] > -1e3 && j[_e] > X) {
|
|
31026
|
+
var $e = (j[_e] + N[_e]) / 4;
|
|
31027
|
+
$e > j[_e] && (j[_e] = $e);
|
|
31023
31028
|
}
|
|
31024
|
-
|
|
31029
|
+
N[_e] > j[_e] && (j[_e] = N[_e]);
|
|
31025
31030
|
}
|
|
31026
31031
|
}
|
|
31027
31032
|
if (J) {
|
|
31028
31033
|
for (let de = 0; de < W.spaceSearches.length; de++)
|
|
31029
|
-
if (
|
|
31034
|
+
if (j[de] === X) continue e;
|
|
31030
31035
|
} else {
|
|
31031
31036
|
var F = !1;
|
|
31032
31037
|
for (let de = 0; de < ze; de++)
|
|
@@ -31041,7 +31046,7 @@ function U7() {
|
|
|
31041
31046
|
H[de] = B[de];
|
|
31042
31047
|
if (J) {
|
|
31043
31048
|
var se = 0;
|
|
31044
|
-
for (let de = 0; de < W.spaceSearches.length; de++) se +=
|
|
31049
|
+
for (let de = 0; de < W.spaceSearches.length; de++) se += j[de];
|
|
31045
31050
|
} else {
|
|
31046
31051
|
var se = X;
|
|
31047
31052
|
for (let _e = 0; _e < ze; _e++) {
|
|
@@ -31070,8 +31075,8 @@ function U7() {
|
|
|
31070
31075
|
if (ie === 0) return le;
|
|
31071
31076
|
for (var fe = new Array(ie), ge = ie - 1; ge >= 0; --ge) fe[ge] = D.poll();
|
|
31072
31077
|
return fe.total = ie + pe, fe;
|
|
31073
|
-
}, i = (
|
|
31074
|
-
for (var W = typeof I == "function" ? I : void 0, V =
|
|
31078
|
+
}, i = (O, I = "<b>", $ = "</b>") => {
|
|
31079
|
+
for (var W = typeof I == "function" ? I : void 0, V = O.target, J = V.length, K = O.indexes, re = "", ie = 0, pe = 0, ue = !1, Me = [], Ie = 0; Ie < J; ++Ie) {
|
|
31075
31080
|
var ge = V[Ie];
|
|
31076
31081
|
if (K[pe] === Ie) {
|
|
31077
31082
|
if (++pe, ue || (ue = !0, W ? (Me.push(re), re = "") : re += I), pe === K.length) {
|
|
@@ -31083,10 +31088,10 @@ function U7() {
|
|
|
31083
31088
|
re += ge;
|
|
31084
31089
|
}
|
|
31085
31090
|
return W ? Me : re;
|
|
31086
|
-
}, s = (
|
|
31087
|
-
typeof
|
|
31088
|
-
var I = _(
|
|
31089
|
-
return l(
|
|
31091
|
+
}, s = (O) => {
|
|
31092
|
+
typeof O == "number" ? O = "" + O : typeof O != "string" && (O = "");
|
|
31093
|
+
var I = _(O);
|
|
31094
|
+
return l(O, { _targetLower: I._lower, _targetLowerCodes: I.lowerCodes, _bitflags: I.bitflags });
|
|
31090
31095
|
}, o = () => {
|
|
31091
31096
|
k.clear(), E.clear();
|
|
31092
31097
|
};
|
|
@@ -31115,14 +31120,14 @@ function U7() {
|
|
|
31115
31120
|
this._score = d(I);
|
|
31116
31121
|
}
|
|
31117
31122
|
}
|
|
31118
|
-
var l = (
|
|
31123
|
+
var l = (O, I) => {
|
|
31119
31124
|
const $ = new a();
|
|
31120
|
-
return $.target =
|
|
31121
|
-
}, c = (
|
|
31122
|
-
typeof
|
|
31123
|
-
var I = _(
|
|
31125
|
+
return $.target = O, $.obj = I.obj ?? T, $._score = I._score ?? X, $._indexes = I._indexes ?? [], $._targetLower = I._targetLower ?? "", $._targetLowerCodes = I._targetLowerCodes ?? T, $._nextBeginningIndexes = I._nextBeginningIndexes ?? T, $._bitflags = I._bitflags ?? 0, $;
|
|
31126
|
+
}, c = (O) => O === X ? 0 : O > 1 ? O : Math.E ** (((-O + 1) ** 0.04307 - 1) * -2), d = (O) => O === 0 ? X : O > 1 ? O : 1 - Math.pow(Math.log(O) / -2 + 1, 1 / 0.04307), f = (O) => {
|
|
31127
|
+
typeof O == "number" ? O = "" + O : typeof O != "string" && (O = ""), O = O.trim();
|
|
31128
|
+
var I = _(O), $ = [];
|
|
31124
31129
|
if (I.containsSpace) {
|
|
31125
|
-
var W =
|
|
31130
|
+
var W = O.split(/\s+/);
|
|
31126
31131
|
W = [...new Set(W)];
|
|
31127
31132
|
for (var V = 0; V < W.length; V++)
|
|
31128
31133
|
if (W[V] !== "") {
|
|
@@ -31131,21 +31136,21 @@ function U7() {
|
|
|
31131
31136
|
}
|
|
31132
31137
|
}
|
|
31133
31138
|
return { lowerCodes: I.lowerCodes, _lower: I._lower, containsSpace: I.containsSpace, bitflags: I.bitflags, spaceSearches: $ };
|
|
31134
|
-
}, h = (
|
|
31135
|
-
if (
|
|
31136
|
-
var I = k.get(
|
|
31137
|
-
return I !== void 0 || (I = s(
|
|
31138
|
-
}, p = (
|
|
31139
|
-
if (
|
|
31140
|
-
var I = E.get(
|
|
31141
|
-
return I !== void 0 || (I = f(
|
|
31142
|
-
}, b = (
|
|
31139
|
+
}, h = (O) => {
|
|
31140
|
+
if (O.length > 999) return s(O);
|
|
31141
|
+
var I = k.get(O);
|
|
31142
|
+
return I !== void 0 || (I = s(O), k.set(O, I)), I;
|
|
31143
|
+
}, p = (O) => {
|
|
31144
|
+
if (O.length > 999) return f(O);
|
|
31145
|
+
var I = E.get(O);
|
|
31146
|
+
return I !== void 0 || (I = f(O), E.set(O, I)), I;
|
|
31147
|
+
}, b = (O, I) => {
|
|
31143
31148
|
var $ = [];
|
|
31144
|
-
$.total =
|
|
31149
|
+
$.total = O.length;
|
|
31145
31150
|
var W = I?.limit || U;
|
|
31146
31151
|
if (I?.key)
|
|
31147
|
-
for (var V = 0; V <
|
|
31148
|
-
var J =
|
|
31152
|
+
for (var V = 0; V < O.length; V++) {
|
|
31153
|
+
var J = O[V], K = L(J, I.key);
|
|
31149
31154
|
if (K != T) {
|
|
31150
31155
|
q(K) || (K = h(K));
|
|
31151
31156
|
var re = l(K.target, { _score: K._score, obj: J });
|
|
@@ -31153,8 +31158,8 @@ function U7() {
|
|
|
31153
31158
|
}
|
|
31154
31159
|
}
|
|
31155
31160
|
else if (I?.keys)
|
|
31156
|
-
for (var V = 0; V <
|
|
31157
|
-
for (var J =
|
|
31161
|
+
for (var V = 0; V < O.length; V++) {
|
|
31162
|
+
for (var J = O[V], ie = new u(I.keys.length), pe = I.keys.length - 1; pe >= 0; --pe) {
|
|
31158
31163
|
var K = L(J, I.keys[pe]);
|
|
31159
31164
|
if (!K) {
|
|
31160
31165
|
ie[pe] = me;
|
|
@@ -31165,15 +31170,15 @@ function U7() {
|
|
|
31165
31170
|
if (ie.obj = J, ie._score = X, $.push(ie), $.length >= W) return $;
|
|
31166
31171
|
}
|
|
31167
31172
|
else
|
|
31168
|
-
for (var V = 0; V <
|
|
31169
|
-
var K =
|
|
31173
|
+
for (var V = 0; V < O.length; V++) {
|
|
31174
|
+
var K = O[V];
|
|
31170
31175
|
if (K != T && (q(K) || (K = h(K)), K._score = X, K._indexes.len = 0, $.push(K), $.length >= W))
|
|
31171
31176
|
return $;
|
|
31172
31177
|
}
|
|
31173
31178
|
return $;
|
|
31174
|
-
}, x = (
|
|
31175
|
-
if ($ === !1 &&
|
|
31176
|
-
for (var V =
|
|
31179
|
+
}, x = (O, I, $ = !1, W = !1) => {
|
|
31180
|
+
if ($ === !1 && O.containsSpace) return g(O, I, W);
|
|
31181
|
+
for (var V = O._lower, J = O.lowerCodes, K = J[0], re = I._targetLowerCodes, ie = J.length, pe = re.length, ge = 0, ue = 0, Me = 0; ; ) {
|
|
31177
31182
|
var Ie = K === re[ue];
|
|
31178
31183
|
if (Ie) {
|
|
31179
31184
|
if (A[Me++] = ue, ++ge, ge === ie) break;
|
|
@@ -31239,11 +31244,11 @@ function U7() {
|
|
|
31239
31244
|
I._indexes.len = ie;
|
|
31240
31245
|
const Qe = new a();
|
|
31241
31246
|
return Qe.target = I.target, Qe._score = I._score, Qe._indexes = I._indexes, Qe;
|
|
31242
|
-
}, g = (
|
|
31243
|
-
for (var W = /* @__PURE__ */ new Set(), V = 0, J = T, K = 0, re =
|
|
31247
|
+
}, g = (O, I, $) => {
|
|
31248
|
+
for (var W = /* @__PURE__ */ new Set(), V = 0, J = T, K = 0, re = O.spaceSearches, ie = re.length, pe = 0, ue = () => {
|
|
31244
31249
|
for (let $e = pe - 1; $e >= 0; $e--) I._nextBeginningIndexes[C[$e * 2 + 0]] = C[$e * 2 + 1];
|
|
31245
31250
|
}, Me = !1, be = 0; be < ie; ++be) {
|
|
31246
|
-
|
|
31251
|
+
N[be] = X;
|
|
31247
31252
|
var Ie = re[be];
|
|
31248
31253
|
if (J = x(Ie, I), $) {
|
|
31249
31254
|
if (J === T) continue;
|
|
@@ -31264,13 +31269,13 @@ function U7() {
|
|
|
31264
31269
|
I._nextBeginningIndexes[F] = ye, C[pe * 2 + 0] = F, C[pe * 2 + 1] = nt, pe++;
|
|
31265
31270
|
}
|
|
31266
31271
|
}
|
|
31267
|
-
V += J._score / ie,
|
|
31272
|
+
V += J._score / ie, N[be] = J._score / ie, J._indexes[0] < K && (V -= (K - J._indexes[0]) * 2), K = J._indexes[0];
|
|
31268
31273
|
for (var ze = 0; ze < J._indexes.len; ++ze) W.add(J._indexes[ze]);
|
|
31269
31274
|
}
|
|
31270
31275
|
if ($ && !Me) return T;
|
|
31271
31276
|
ue();
|
|
31272
31277
|
var Oe = x(
|
|
31273
|
-
|
|
31278
|
+
O,
|
|
31274
31279
|
I,
|
|
31275
31280
|
/*allowSpaces=*/
|
|
31276
31281
|
!0
|
|
@@ -31278,16 +31283,16 @@ function U7() {
|
|
|
31278
31283
|
if (Oe !== T && Oe._score > V) {
|
|
31279
31284
|
if ($)
|
|
31280
31285
|
for (var be = 0; be < ie; ++be)
|
|
31281
|
-
|
|
31286
|
+
N[be] = Oe._score / ie;
|
|
31282
31287
|
return Oe;
|
|
31283
31288
|
}
|
|
31284
31289
|
$ && (J = I), J._score = V;
|
|
31285
31290
|
var be = 0;
|
|
31286
31291
|
for (let $e of W) J._indexes[be++] = $e;
|
|
31287
31292
|
return J._indexes.len = be, J;
|
|
31288
|
-
}, y = (
|
|
31289
|
-
|
|
31290
|
-
for (var I =
|
|
31293
|
+
}, y = (O) => O.replace(/\p{Script=Latin}+/gu, (I) => I.normalize("NFD")).replace(/[\u0300-\u036f]/g, ""), _ = (O) => {
|
|
31294
|
+
O = y(O);
|
|
31295
|
+
for (var I = O.length, $ = O.toLowerCase(), W = [], V = 0, J = !1, K = 0; K < I; ++K) {
|
|
31291
31296
|
var re = W[K] = $.charCodeAt(K);
|
|
31292
31297
|
if (re === 32) {
|
|
31293
31298
|
J = !0;
|
|
@@ -31297,28 +31302,28 @@ function U7() {
|
|
|
31297
31302
|
V |= 1 << ie;
|
|
31298
31303
|
}
|
|
31299
31304
|
return { lowerCodes: W, bitflags: V, containsSpace: J, _lower: $ };
|
|
31300
|
-
}, v = (
|
|
31301
|
-
for (var I =
|
|
31302
|
-
var re =
|
|
31305
|
+
}, v = (O) => {
|
|
31306
|
+
for (var I = O.length, $ = [], W = 0, V = !1, J = !1, K = 0; K < I; ++K) {
|
|
31307
|
+
var re = O.charCodeAt(K), ie = re >= 65 && re <= 90, pe = ie || re >= 97 && re <= 122 || re >= 48 && re <= 57, ue = ie && !V || !J || !pe;
|
|
31303
31308
|
V = ie, J = pe, ue && ($[W++] = K);
|
|
31304
31309
|
}
|
|
31305
31310
|
return $;
|
|
31306
|
-
}, w = (
|
|
31307
|
-
|
|
31308
|
-
for (var I =
|
|
31311
|
+
}, w = (O) => {
|
|
31312
|
+
O = y(O);
|
|
31313
|
+
for (var I = O.length, $ = v(O), W = [], V = $[0], J = 0, K = 0; K < I; ++K)
|
|
31309
31314
|
V > K ? W[K] = V : (V = $[++J], W[K] = V === void 0 ? I : V);
|
|
31310
31315
|
return W;
|
|
31311
|
-
}, k = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), A = [], M = [], C = [],
|
|
31312
|
-
var $ =
|
|
31316
|
+
}, k = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), A = [], M = [], C = [], j = [], N = [], z = [], B = [], L = (O, I) => {
|
|
31317
|
+
var $ = O[I];
|
|
31313
31318
|
if ($ !== void 0) return $;
|
|
31314
|
-
if (typeof I == "function") return I(
|
|
31319
|
+
if (typeof I == "function") return I(O);
|
|
31315
31320
|
var W = I;
|
|
31316
31321
|
Array.isArray(I) || (W = I.split("."));
|
|
31317
|
-
for (var V = W.length, J = -1;
|
|
31318
|
-
return
|
|
31319
|
-
}, q = (
|
|
31322
|
+
for (var V = W.length, J = -1; O && ++J < V; ) O = O[W[J]];
|
|
31323
|
+
return O;
|
|
31324
|
+
}, q = (O) => typeof O == "object" && typeof O._bitflags == "number", U = 1 / 0, X = -U, le = [];
|
|
31320
31325
|
le.total = 0;
|
|
31321
|
-
var T = null, me = s(""), ve = (
|
|
31326
|
+
var T = null, me = s(""), ve = (O) => {
|
|
31322
31327
|
var I = [], $ = 0, W = {}, V = (J) => {
|
|
31323
31328
|
for (var K = 0, re = I[K], ie = 1; ie < $; ) {
|
|
31324
31329
|
var pe = ie + 1;
|
|
@@ -31580,10 +31585,10 @@ function uv({
|
|
|
31580
31585
|
}, []);
|
|
31581
31586
|
const p = S.useMemo(() => {
|
|
31582
31587
|
if (r && !Number.isNaN(r.getTime())) return r;
|
|
31583
|
-
const C = Xl(d, 5),
|
|
31584
|
-
return ns(is(rs(C,
|
|
31588
|
+
const C = Xl(d, 5), j = Math.ceil(C.getMinutes() / 5) * 5;
|
|
31589
|
+
return ns(is(rs(C, j), 0), 0);
|
|
31585
31590
|
}, [r, d]), [b, x] = S.useState(() => p), [g, y] = S.useState(() => p), [_, v] = S.useState(() => mt(p, "HH:mm")), w = S.useMemo(() => {
|
|
31586
|
-
const C = _.split(":"),
|
|
31591
|
+
const C = _.split(":"), j = Number.parseInt(C[0] ?? "0", 10), N = Number.parseInt(C[1] ?? "0", 10), z = zo(b, Number.isFinite(j) ? j : 0), B = rs(z, Number.isFinite(N) ? N : 0);
|
|
31587
31592
|
return ns(is(B, 0), 0);
|
|
31588
31593
|
}, [b, _]), k = S.useMemo(
|
|
31589
31594
|
() => w >= h,
|
|
@@ -31631,8 +31636,8 @@ function uv({
|
|
|
31631
31636
|
type: "date",
|
|
31632
31637
|
value: mt(b, "yyyy-MM-dd"),
|
|
31633
31638
|
onChange: (C) => {
|
|
31634
|
-
const
|
|
31635
|
-
Number.isNaN(
|
|
31639
|
+
const j = new Date(C.target.value);
|
|
31640
|
+
Number.isNaN(j.getTime()) || (x(j), y(j));
|
|
31636
31641
|
},
|
|
31637
31642
|
min: mt(E, "yyyy-MM-dd"),
|
|
31638
31643
|
className: Ee(
|
|
@@ -31739,32 +31744,32 @@ function Q7({
|
|
|
31739
31744
|
"messages-custom-schedule-open",
|
|
31740
31745
|
{ defaultValue: !1 }
|
|
31741
31746
|
), [y, _] = Pn("messages-custom-schedule-value", { defaultValue: null }), [v, w] = S.useState(!1), k = /* @__PURE__ */ new Date(), E = (() => {
|
|
31742
|
-
const C = Xl(k, 5),
|
|
31743
|
-
let
|
|
31744
|
-
for (;
|
|
31745
|
-
const
|
|
31746
|
-
if (!F2(
|
|
31747
|
+
const C = Xl(k, 5), j = [];
|
|
31748
|
+
let N = 0;
|
|
31749
|
+
for (; j.length < 4 && N < 14; ) {
|
|
31750
|
+
const z = Zl(k, N);
|
|
31751
|
+
if (!F2(z)) {
|
|
31747
31752
|
const B = ns(
|
|
31748
|
-
is(rs(zo(new Date(
|
|
31753
|
+
is(rs(zo(new Date(z), 9), 0), 0),
|
|
31749
31754
|
0
|
|
31750
31755
|
);
|
|
31751
|
-
if (B >= C &&
|
|
31756
|
+
if (B >= C && j.push(B), j.length < 4) {
|
|
31752
31757
|
const L = ns(
|
|
31753
|
-
is(rs(zo(new Date(
|
|
31758
|
+
is(rs(zo(new Date(z), 13), 0), 0),
|
|
31754
31759
|
0
|
|
31755
31760
|
);
|
|
31756
|
-
L >= C &&
|
|
31761
|
+
L >= C && j.push(L);
|
|
31757
31762
|
}
|
|
31758
31763
|
}
|
|
31759
|
-
|
|
31764
|
+
N += 1;
|
|
31760
31765
|
}
|
|
31761
|
-
return
|
|
31766
|
+
return j.slice(0, 4);
|
|
31762
31767
|
})(), A = (C) => {
|
|
31763
|
-
const
|
|
31768
|
+
const j = C.toLocaleTimeString(void 0, {
|
|
31764
31769
|
hour: "numeric",
|
|
31765
31770
|
minute: "2-digit"
|
|
31766
31771
|
});
|
|
31767
|
-
return hi(C, k) ? `Today at ${
|
|
31772
|
+
return hi(C, k) ? `Today at ${j}` : hi(C, Zl(k, 1)) ? `Tomorrow at ${j}` : `${C.toLocaleDateString(void 0, { weekday: "long" })} at ${j}`;
|
|
31768
31773
|
}, M = (C) => {
|
|
31769
31774
|
r(C);
|
|
31770
31775
|
try {
|
|
@@ -31903,14 +31908,14 @@ function Q7({
|
|
|
31903
31908
|
/* @__PURE__ */ m.jsxs(Ai, { align: "end", className: "w-60 p-0", children: [
|
|
31904
31909
|
/* @__PURE__ */ m.jsx(id, { className: "border-b border-[color:var(--messaging-border,var(--color-gray-200))] px-4 py-3 text-sm font-semibold text-[color:var(--messaging-foreground,var(--color-slate-700))]", children: d("composer_schedule_send") }),
|
|
31905
31910
|
/* @__PURE__ */ m.jsxs("div", { className: "px-0 py-1", children: [
|
|
31906
|
-
E.map((C,
|
|
31911
|
+
E.map((C, j) => /* @__PURE__ */ m.jsx(
|
|
31907
31912
|
tt,
|
|
31908
31913
|
{
|
|
31909
31914
|
className: "mx-1.5 my-0 cursor-pointer rounded-md px-2.5 py-[9px] text-sm font-medium text-[color:var(--messaging-foreground,var(--color-slate-700))]",
|
|
31910
31915
|
onSelect: () => r(C),
|
|
31911
31916
|
children: A(C)
|
|
31912
31917
|
},
|
|
31913
|
-
|
|
31918
|
+
j
|
|
31914
31919
|
)),
|
|
31915
31920
|
/* @__PURE__ */ m.jsx(Xa, { className: "mx-0 my-1" }),
|
|
31916
31921
|
/* @__PURE__ */ m.jsx(
|
|
@@ -32000,7 +32005,7 @@ function Y7({
|
|
|
32000
32005
|
),
|
|
32001
32006
|
children: [
|
|
32002
32007
|
/* @__PURE__ */ m.jsx(
|
|
32003
|
-
|
|
32008
|
+
Ur,
|
|
32004
32009
|
{
|
|
32005
32010
|
size: "icon-xs",
|
|
32006
32011
|
onPressedChange: () => e.chain().focus().toggleBold().run(),
|
|
@@ -32010,7 +32015,7 @@ function Y7({
|
|
|
32010
32015
|
}
|
|
32011
32016
|
),
|
|
32012
32017
|
/* @__PURE__ */ m.jsx(
|
|
32013
|
-
|
|
32018
|
+
Ur,
|
|
32014
32019
|
{
|
|
32015
32020
|
size: "icon-xs",
|
|
32016
32021
|
onPressedChange: () => e.chain().focus().toggleItalic().run(),
|
|
@@ -32020,7 +32025,7 @@ function Y7({
|
|
|
32020
32025
|
}
|
|
32021
32026
|
),
|
|
32022
32027
|
/* @__PURE__ */ m.jsx(
|
|
32023
|
-
|
|
32028
|
+
Ur,
|
|
32024
32029
|
{
|
|
32025
32030
|
size: "icon-xs",
|
|
32026
32031
|
onPressedChange: () => e.chain().focus().toggleStrike().run(),
|
|
@@ -32031,7 +32036,7 @@ function Y7({
|
|
|
32031
32036
|
),
|
|
32032
32037
|
/* @__PURE__ */ m.jsx("div", { className: "mx-0.5 h-4 w-px rounded-full bg-[color:var(--messaging-muted,var(--color-gray-300))]" }),
|
|
32033
32038
|
/* @__PURE__ */ m.jsx(
|
|
32034
|
-
|
|
32039
|
+
Ur,
|
|
32035
32040
|
{
|
|
32036
32041
|
size: "icon-xs",
|
|
32037
32042
|
onPressedChange: () => u(),
|
|
@@ -32041,7 +32046,7 @@ function Y7({
|
|
|
32041
32046
|
}
|
|
32042
32047
|
),
|
|
32043
32048
|
/* @__PURE__ */ m.jsx(
|
|
32044
|
-
|
|
32049
|
+
Ur,
|
|
32045
32050
|
{
|
|
32046
32051
|
size: "icon-xs",
|
|
32047
32052
|
onPressedChange: () => e.chain().focus().toggleBulletList().run(),
|
|
@@ -32051,7 +32056,7 @@ function Y7({
|
|
|
32051
32056
|
}
|
|
32052
32057
|
),
|
|
32053
32058
|
/* @__PURE__ */ m.jsx(
|
|
32054
|
-
|
|
32059
|
+
Ur,
|
|
32055
32060
|
{
|
|
32056
32061
|
size: "icon-xs",
|
|
32057
32062
|
onPressedChange: () => e.chain().focus().toggleOrderedList().run(),
|
|
@@ -32190,23 +32195,23 @@ function eR({
|
|
|
32190
32195
|
})
|
|
32191
32196
|
);
|
|
32192
32197
|
try {
|
|
32193
|
-
const C = (
|
|
32194
|
-
const
|
|
32195
|
-
return
|
|
32196
|
-
},
|
|
32198
|
+
const C = (N) => {
|
|
32199
|
+
const z = aj.safeParse(N);
|
|
32200
|
+
return z.success ? z.data : lj;
|
|
32201
|
+
}, j = Ug(c);
|
|
32197
32202
|
await b.createScheduledMessage(d, {
|
|
32198
32203
|
scheduled_message: {
|
|
32199
32204
|
body: E,
|
|
32200
32205
|
theme: "inquiry",
|
|
32201
32206
|
scheduled_at: k.toISOString(),
|
|
32202
|
-
type:
|
|
32203
|
-
attachments_attributes: M.map((
|
|
32204
|
-
url:
|
|
32205
|
-
filename:
|
|
32206
|
-
kind: C(
|
|
32207
|
-
content_type:
|
|
32208
|
-
content_size:
|
|
32209
|
-
metadata:
|
|
32207
|
+
type: j,
|
|
32208
|
+
attachments_attributes: M.map((N) => ({
|
|
32209
|
+
url: N.url,
|
|
32210
|
+
filename: N.filename,
|
|
32211
|
+
kind: C(N.kind),
|
|
32212
|
+
content_type: N.content_type,
|
|
32213
|
+
content_size: N.content_size,
|
|
32214
|
+
metadata: N.metadata ?? void 0
|
|
32210
32215
|
}))
|
|
32211
32216
|
}
|
|
32212
32217
|
}), y(E, i), f?.(k), h?.();
|
|
@@ -32254,7 +32259,7 @@ function tR({
|
|
|
32254
32259
|
}) {
|
|
32255
32260
|
const { t: _ } = Ae(), v = r ?? _("composer_placeholder_default"), [w] = Pn("messages-send-with-enter", {
|
|
32256
32261
|
defaultValue: !0
|
|
32257
|
-
}), k = u ? a : 0, E = oj(k), { debouncedSave: A, saveImmediately: M, isSaving: C, clearDebounce:
|
|
32262
|
+
}), k = u ? a : 0, E = oj(k), { debouncedSave: A, saveImmediately: M, isSaving: C, clearDebounce: j } = hj(k), { handleFiles: N, handleRemoveFile: z } = cj({
|
|
32258
32263
|
uploader: d,
|
|
32259
32264
|
draftApi: {
|
|
32260
32265
|
addFile: E.addFile,
|
|
@@ -32263,7 +32268,7 @@ function tR({
|
|
|
32263
32268
|
},
|
|
32264
32269
|
onUploadError: y
|
|
32265
32270
|
}), { getRootProps: B, getInputProps: L, isDragActive: q, open: U } = I_({
|
|
32266
|
-
onDrop:
|
|
32271
|
+
onDrop: N,
|
|
32267
32272
|
noClick: !0,
|
|
32268
32273
|
noKeyboard: !0,
|
|
32269
32274
|
maxSize: 1024 * 1024 * 1024
|
|
@@ -32373,13 +32378,13 @@ function tR({
|
|
|
32373
32378
|
) || D.commands.setContent(Me);
|
|
32374
32379
|
}
|
|
32375
32380
|
}, [le, D, s]);
|
|
32376
|
-
const { canSend:
|
|
32381
|
+
const { canSend: O, handleSend: I, handleKeyDown: $, handleSchedule: W } = eR({
|
|
32377
32382
|
editor: D,
|
|
32378
32383
|
onSend: e,
|
|
32379
32384
|
onSaveScheduledEdit: n,
|
|
32380
32385
|
isUploadingFiles: me,
|
|
32381
32386
|
completedFiles: ve,
|
|
32382
|
-
clearDebounce:
|
|
32387
|
+
clearDebounce: j,
|
|
32383
32388
|
saveImmediately: M,
|
|
32384
32389
|
draft: E,
|
|
32385
32390
|
mode: l,
|
|
@@ -32414,7 +32419,7 @@ function tR({
|
|
|
32414
32419
|
files: V,
|
|
32415
32420
|
onRemove: (re) => {
|
|
32416
32421
|
const ie = V[re];
|
|
32417
|
-
ie &&
|
|
32422
|
+
ie && z(ie.client_id);
|
|
32418
32423
|
}
|
|
32419
32424
|
}
|
|
32420
32425
|
),
|
|
@@ -32427,7 +32432,7 @@ function tR({
|
|
|
32427
32432
|
onSchedule: W,
|
|
32428
32433
|
messageHasContent: K,
|
|
32429
32434
|
canMentionUsers: !!s && s.length > 0,
|
|
32430
|
-
canSendMessage:
|
|
32435
|
+
canSendMessage: O && K && !me && !i,
|
|
32431
32436
|
mode: l,
|
|
32432
32437
|
onSaveEdit: l === "editScheduled" ? I : void 0,
|
|
32433
32438
|
canSchedule: f,
|
|
@@ -32606,7 +32611,7 @@ function Zo({
|
|
|
32606
32611
|
onMarkRead: c,
|
|
32607
32612
|
uploader: d
|
|
32608
32613
|
}) {
|
|
32609
|
-
const f = sn(), { auth: h, renderImage: p } = _n(), b = $n(), x = tC(), { t: g } = Ae(), y = p ?? ou, [_, v] = S.useState(!1), [w, k] = S.useState(null), E = S.useRef(0), A = S.useRef(!1), M = b.currentRoute, C = M.view === "new",
|
|
32614
|
+
const f = sn(), { auth: h, renderImage: p } = _n(), b = $n(), x = tC(), { t: g } = Ae(), y = p ?? ou, [_, v] = S.useState(!1), [w, k] = S.useState(null), E = S.useRef(0), A = S.useRef(!1), M = b.currentRoute, C = M.view === "new", j = M.view === "message", N = M.view === "at", { scrollTo: z, issueCorrection: B } = ij(x), L = S.useRef(!1), q = S.useCallback(
|
|
32610
32615
|
(Q, ne) => {
|
|
32611
32616
|
if (Q) {
|
|
32612
32617
|
b.navigate({
|
|
@@ -32615,14 +32620,14 @@ function Zo({
|
|
|
32615
32620
|
});
|
|
32616
32621
|
return;
|
|
32617
32622
|
}
|
|
32618
|
-
L.current = !0,
|
|
32623
|
+
L.current = !0, z({
|
|
32619
32624
|
top: 0,
|
|
32620
32625
|
onComplete: () => {
|
|
32621
32626
|
L.current = !1, bo(f, e), v(!1), ne?.();
|
|
32622
32627
|
}
|
|
32623
32628
|
});
|
|
32624
32629
|
},
|
|
32625
|
-
[e, f, b,
|
|
32630
|
+
[e, f, b, z]
|
|
32626
32631
|
), {
|
|
32627
32632
|
messages: U,
|
|
32628
32633
|
fetchNextPage: X,
|
|
@@ -32631,7 +32636,7 @@ function Zo({
|
|
|
32631
32636
|
fetchPreviousPage: me,
|
|
32632
32637
|
hasPreviousPage: ve,
|
|
32633
32638
|
isFetchingPreviousPage: D,
|
|
32634
|
-
isLoading:
|
|
32639
|
+
isLoading: O,
|
|
32635
32640
|
isError: I,
|
|
32636
32641
|
error: $
|
|
32637
32642
|
} = uR({
|
|
@@ -32646,14 +32651,14 @@ function Zo({
|
|
|
32646
32651
|
data: V,
|
|
32647
32652
|
error: J,
|
|
32648
32653
|
isLoading: K
|
|
32649
|
-
} =
|
|
32654
|
+
} = Rr(e);
|
|
32650
32655
|
S.useEffect(() => {
|
|
32651
32656
|
A.current = !1, k(null), E.current = 0;
|
|
32652
32657
|
}, [e]);
|
|
32653
32658
|
const { stickToBottom: re, scrollToBottomNow: ie, isAutoScrolling: pe } = sj({
|
|
32654
32659
|
scrollerRef: x,
|
|
32655
32660
|
hasPreviousPage: ve,
|
|
32656
|
-
isLoading:
|
|
32661
|
+
isLoading: O,
|
|
32657
32662
|
itemsSignature: W,
|
|
32658
32663
|
initialStick: !t,
|
|
32659
32664
|
bottomTolerancePx: Gm,
|
|
@@ -32687,7 +32692,7 @@ function Zo({
|
|
|
32687
32692
|
conversationId: e,
|
|
32688
32693
|
user: be,
|
|
32689
32694
|
onSuccess: () => {
|
|
32690
|
-
e && (C ||
|
|
32695
|
+
e && (C || j || N) && b.navigate({
|
|
32691
32696
|
view: "conversation",
|
|
32692
32697
|
conversationId: e
|
|
32693
32698
|
});
|
|
@@ -32774,7 +32779,7 @@ function Zo({
|
|
|
32774
32779
|
let Q = !1;
|
|
32775
32780
|
const ne = !le, Te = U[0], rt = Te?.type === "SystemMessage" && Te?.body === "conversation_created", jt = ne && !rt, ln = U.reduce(
|
|
32776
32781
|
(ct, Le, Qt, Hn) => {
|
|
32777
|
-
const
|
|
32782
|
+
const Br = Hn[Qt - 1], Vr = Br?.sent_at, pr = Le.sent_at, hh = !Br || !Vr || !pr ? !0 : !hi(new Date(Vr), new Date(pr));
|
|
32778
32783
|
if (hh && ct.push(
|
|
32779
32784
|
/* @__PURE__ */ m.jsx(
|
|
32780
32785
|
uC,
|
|
@@ -32859,7 +32864,7 @@ function Zo({
|
|
|
32859
32864
|
{
|
|
32860
32865
|
conversation: V,
|
|
32861
32866
|
message: Le,
|
|
32862
|
-
isGrouped: !hh &&
|
|
32867
|
+
isGrouped: !hh && Br?.sender_recipient?.id === Le.sender_recipient?.id && oR(Br?.sent_at, Le.sent_at),
|
|
32863
32868
|
highlightType: t && Le.id.toString() === t ? "search" : "auto",
|
|
32864
32869
|
renderProfileTrigger: i,
|
|
32865
32870
|
renderProfileContent: s,
|
|
@@ -32875,9 +32880,9 @@ function Zo({
|
|
|
32875
32880
|
},
|
|
32876
32881
|
[]
|
|
32877
32882
|
);
|
|
32878
|
-
if ((r || ln.length === 0 &&
|
|
32883
|
+
if ((r || ln.length === 0 && N) && ln.push(
|
|
32879
32884
|
/* @__PURE__ */ m.jsx("div", { className: "flex justify-center py-2", children: /* @__PURE__ */ m.jsx("span", { className: "rounded-2xl border border-[color:var(--messaging-border,var(--color-gray-200))] bg-[color:var(--messaging-muted,var(--color-yellow-50))] px-3 py-0.5 text-xs font-medium text-[color:var(--messaging-foreground,var(--color-yellow-800))]", children: g("error_no_messages_on_date") }) }, "no-messages")
|
|
32880
|
-
), ln.length === 0 && !
|
|
32885
|
+
), ln.length === 0 && !N) {
|
|
32881
32886
|
const ct = V.creator?.id ?? null, Le = be?.recipient_id ?? null;
|
|
32882
32887
|
ct !== Le && ln.push(
|
|
32883
32888
|
/* @__PURE__ */ m.jsx("div", { className: "flex justify-center py-2", children: /* @__PURE__ */ m.jsx("span", { className: "rounded-2xl border border-[color:var(--messaging-border,var(--color-gray-200))] bg-[color:var(--messaging-muted,var(--color-gray-50))] px-3 py-0.5 text-xs font-medium text-[color:var(--messaging-foreground,var(--color-gray-700))]", children: g("error_joined_channel") }) }, "joined-fallback")
|
|
@@ -32889,7 +32894,7 @@ function Zo({
|
|
|
32889
32894
|
V,
|
|
32890
32895
|
le,
|
|
32891
32896
|
t,
|
|
32892
|
-
|
|
32897
|
+
N,
|
|
32893
32898
|
e,
|
|
32894
32899
|
r,
|
|
32895
32900
|
w,
|
|
@@ -32901,7 +32906,7 @@ function Zo({
|
|
|
32901
32906
|
o,
|
|
32902
32907
|
a,
|
|
32903
32908
|
g
|
|
32904
|
-
]), xe = Oe ||
|
|
32909
|
+
]), xe = Oe || O || K, Qe = T || D, de = S.useRef(!1);
|
|
32905
32910
|
S.useEffect(() => {
|
|
32906
32911
|
de.current = Qe;
|
|
32907
32912
|
}, [Qe]);
|
|
@@ -33195,7 +33200,7 @@ function hR({
|
|
|
33195
33200
|
initialPageParam: 1,
|
|
33196
33201
|
staleTime: Rw,
|
|
33197
33202
|
refetchInterval: zw
|
|
33198
|
-
}), { data: p } =
|
|
33203
|
+
}), { data: p } = Rr(e), b = S.useMemo(() => a?.pages ? a.pages.flatMap((g) => g[1].items) : [], [a]), x = S.useMemo(() => p ? b.map((g) => /* @__PURE__ */ m.jsx(
|
|
33199
33204
|
"div",
|
|
33200
33205
|
{
|
|
33201
33206
|
className: "relative isolate w-full rounded-xl border border-[color:var(--messaging-border,var(--color-gray-200))] bg-[color:var(--messaging-muted,var(--color-gray-50))] py-2.5",
|
|
@@ -33230,7 +33235,7 @@ function hR({
|
|
|
33230
33235
|
if (d)
|
|
33231
33236
|
return /* @__PURE__ */ m.jsx(su, { label: i("pinned_loading") });
|
|
33232
33237
|
if (f) {
|
|
33233
|
-
const g =
|
|
33238
|
+
const g = Fr({ status: Y() }).safeParse(h), y = g.success && g.data.status === 404;
|
|
33234
33239
|
return /* @__PURE__ */ m.jsx("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ m.jsx("div", { className: "rounded-md border border-[color:var(--messaging-border,var(--color-gray-200))] bg-[color:var(--messaging-background,var(--color-white))] p-4 text-center text-[color:var(--messaging-muted-foreground,var(--color-gray-600))] shadow-sm", children: y ? /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
33235
33240
|
/* @__PURE__ */ m.jsx("p", { className: "text-sm font-medium text-[color:var(--messaging-foreground,var(--color-gray-900))]", children: i("pinned_conversation_not_found") }),
|
|
33236
33241
|
/* @__PURE__ */ m.jsx("p", { className: "mt-1 text-xs text-[color:var(--messaging-muted-foreground,var(--color-gray-500))]", children: i("pinned_conversation_deleted") })
|
|
@@ -33319,7 +33324,7 @@ function lv({
|
|
|
33319
33324
|
);
|
|
33320
33325
|
}
|
|
33321
33326
|
if (e.imageType === "channel") {
|
|
33322
|
-
const { emoji: r } =
|
|
33327
|
+
const { emoji: r } = Qr(e.conversationName || e.label), i = e.userData?.image_url ? Zm(
|
|
33323
33328
|
n,
|
|
33324
33329
|
e.userData.image_url,
|
|
33325
33330
|
e.label,
|
|
@@ -33486,10 +33491,10 @@ function mR({
|
|
|
33486
33491
|
const M = g[d] ?? (g.length > 0 ? g[0] : void 0);
|
|
33487
33492
|
if (M) {
|
|
33488
33493
|
const C = t.some(
|
|
33489
|
-
(
|
|
33494
|
+
(j) => j.id === M.id
|
|
33490
33495
|
);
|
|
33491
33496
|
n(
|
|
33492
|
-
C ? t.filter((
|
|
33497
|
+
C ? t.filter((j) => j.id !== M.id) : [...t, M]
|
|
33493
33498
|
), u(""), c(!1);
|
|
33494
33499
|
}
|
|
33495
33500
|
} else if (A.key === "Backspace") {
|
|
@@ -33656,7 +33661,7 @@ function xR({
|
|
|
33656
33661
|
return v;
|
|
33657
33662
|
}, c = S.useMemo(() => e.map((p) => {
|
|
33658
33663
|
if (Qm(p)) {
|
|
33659
|
-
const g = p.first_name || "", { text: y } =
|
|
33664
|
+
const g = p.first_name || "", { text: y } = Mr(g);
|
|
33660
33665
|
return {
|
|
33661
33666
|
id: `${p.receivable_type === "ChannelConversation" ? "channel-" : "team-channel-"}${p.id}`,
|
|
33662
33667
|
label: Qs(y),
|
|
@@ -33950,7 +33955,7 @@ function Hl({
|
|
|
33950
33955
|
);
|
|
33951
33956
|
const { isChannel: o } = en(t);
|
|
33952
33957
|
if (o) {
|
|
33953
|
-
const { emoji: u } =
|
|
33958
|
+
const { emoji: u } = Mr(t.name), l = t.avatar_url ? s ? s({
|
|
33954
33959
|
src: t.avatar_url,
|
|
33955
33960
|
alt: t.name,
|
|
33956
33961
|
width: e === "lg" ? 32 : 24,
|
|
@@ -34198,14 +34203,14 @@ function ER({
|
|
|
34198
34203
|
message: e,
|
|
34199
34204
|
onToast: t
|
|
34200
34205
|
}) {
|
|
34201
|
-
const { t: n } = Ae(), { auth: r, renderImage: i } = _n(), { navigate: s } = $n(), o = sn(), a = _t(), [u, l] = S.useState(!1), [c, d] = S.useState(!1), [f, h] = S.useState(!1), [p, b] = S.useState(""), x = e.scheduled_at || e.metadata?.scheduled_at, g = e.conversation, y = g?.id ?? e.conversation_id ?? 0, _ = typeof y == "string" ? Number.parseInt(y, 10) : Number(y), { data: v } =
|
|
34202
|
-
const q = k?.name || "", { emoji: U } =
|
|
34206
|
+
const { t: n } = Ae(), { auth: r, renderImage: i } = _n(), { navigate: s } = $n(), o = sn(), a = _t(), [u, l] = S.useState(!1), [c, d] = S.useState(!1), [f, h] = S.useState(!1), [p, b] = S.useState(""), x = e.scheduled_at || e.metadata?.scheduled_at, g = e.conversation, y = g?.id ?? e.conversation_id ?? 0, _ = typeof y == "string" ? Number.parseInt(y, 10) : Number(y), { data: v } = Rr(_), w = e.type, k = v || g, E = r.currentUser?.affiliateId, A = v ? v.recipients.filter((q) => q.receivable_id !== E) : void 0, M = v ? en(v).type : void 0, C = (() => {
|
|
34207
|
+
const q = k?.name || "", { emoji: U } = Mr(q);
|
|
34203
34208
|
return U || "#";
|
|
34204
|
-
})(),
|
|
34209
|
+
})(), j = (() => {
|
|
34205
34210
|
const q = k?.name;
|
|
34206
34211
|
if (!q) return n("loading");
|
|
34207
34212
|
if (M === "public-channel" || M === "private-channel" || M === "broadcast") {
|
|
34208
|
-
const { text: U } =
|
|
34213
|
+
const { text: U } = Mr(q);
|
|
34209
34214
|
return Qs(U);
|
|
34210
34215
|
}
|
|
34211
34216
|
if (v && v.type === "GroupConversation") {
|
|
@@ -34218,7 +34223,7 @@ function ER({
|
|
|
34218
34223
|
return [U, X].filter(Boolean).join(" ");
|
|
34219
34224
|
}
|
|
34220
34225
|
return q;
|
|
34221
|
-
})(),
|
|
34226
|
+
})(), N = tr({
|
|
34222
34227
|
mutationFn: () => a.deliverScheduledMessage(_, e.id),
|
|
34223
34228
|
onSuccess: async () => {
|
|
34224
34229
|
await o.invalidateQueries({
|
|
@@ -34236,7 +34241,7 @@ function ER({
|
|
|
34236
34241
|
})
|
|
34237
34242
|
]), l(!1);
|
|
34238
34243
|
}
|
|
34239
|
-
}),
|
|
34244
|
+
}), z = tr({
|
|
34240
34245
|
mutationFn: async () => {
|
|
34241
34246
|
await a.destroyScheduledMessage(_, e.id);
|
|
34242
34247
|
},
|
|
@@ -34290,7 +34295,7 @@ function ER({
|
|
|
34290
34295
|
children: [
|
|
34291
34296
|
/* @__PURE__ */ m.jsx(Hl, { size: "lg", ...L }),
|
|
34292
34297
|
/* @__PURE__ */ m.jsxs("div", { className: "flex min-w-0 flex-col justify-center", children: [
|
|
34293
|
-
/* @__PURE__ */ m.jsx("div", { className: "text-messaging-2 capsize mb-2 text-[color:var(--messaging-foreground,var(--color-gray-900))]", children:
|
|
34298
|
+
/* @__PURE__ */ m.jsx("div", { className: "text-messaging-2 capsize mb-2 text-[color:var(--messaging-foreground,var(--color-gray-900))]", children: j }),
|
|
34294
34299
|
e.body && /* @__PURE__ */ m.jsx("div", { className: "-my-1 line-clamp-1 py-1 text-xs leading-4 text-[color:var(--messaging-foreground,var(--color-gray-900))]", children: /* @__PURE__ */ m.jsx(ob, { mentions: e.mentioned_recipients, children: e.body }) })
|
|
34295
34300
|
] })
|
|
34296
34301
|
]
|
|
@@ -34342,12 +34347,12 @@ function ER({
|
|
|
34342
34347
|
/* @__PURE__ */ m.jsx("div", { className: "text-sm font-semibold text-[color:var(--messaging-foreground,var(--color-black))]", children: n("scheduled_send_message_to") }),
|
|
34343
34348
|
/* @__PURE__ */ m.jsxs("div", { className: "inline-flex items-center gap-2", children: [
|
|
34344
34349
|
/* @__PURE__ */ m.jsx(Hl, { size: "sm", ...L }),
|
|
34345
|
-
/* @__PURE__ */ m.jsx("div", { className: "text-sm font-semibold text-[color:var(--messaging-foreground,var(--color-gray-900))]", children:
|
|
34350
|
+
/* @__PURE__ */ m.jsx("div", { className: "text-sm font-semibold text-[color:var(--messaging-foreground,var(--color-gray-900))]", children: j })
|
|
34346
34351
|
] })
|
|
34347
34352
|
] }),
|
|
34348
34353
|
confirmLabel: n("scheduled_send_now"),
|
|
34349
|
-
onConfirm: () =>
|
|
34350
|
-
isConfirming:
|
|
34354
|
+
onConfirm: () => N.mutate(),
|
|
34355
|
+
isConfirming: N.isPending,
|
|
34351
34356
|
confirmDisabled: !v
|
|
34352
34357
|
}
|
|
34353
34358
|
),
|
|
@@ -34373,14 +34378,14 @@ function ER({
|
|
|
34373
34378
|
/* @__PURE__ */ m.jsx("div", { className: "text-sm font-semibold text-[color:var(--messaging-foreground,var(--color-black))]", children: n("scheduled_delete_message_to") }),
|
|
34374
34379
|
/* @__PURE__ */ m.jsxs("div", { className: "inline-flex items-center gap-2", children: [
|
|
34375
34380
|
/* @__PURE__ */ m.jsx(Hl, { size: "sm", ...L }),
|
|
34376
|
-
/* @__PURE__ */ m.jsx("div", { className: "text-sm font-semibold text-[color:var(--messaging-foreground,var(--color-gray-900))]", children:
|
|
34381
|
+
/* @__PURE__ */ m.jsx("div", { className: "text-sm font-semibold text-[color:var(--messaging-foreground,var(--color-gray-900))]", children: j })
|
|
34377
34382
|
] })
|
|
34378
34383
|
] }),
|
|
34379
34384
|
description: n("scheduled_delete_undone"),
|
|
34380
34385
|
confirmLabel: n("scheduled_delete"),
|
|
34381
34386
|
confirmVariant: "destructive",
|
|
34382
|
-
onConfirm: () =>
|
|
34383
|
-
isConfirming:
|
|
34387
|
+
onConfirm: () => z.mutate(),
|
|
34388
|
+
isConfirming: z.isPending
|
|
34384
34389
|
}
|
|
34385
34390
|
)
|
|
34386
34391
|
] });
|
|
@@ -34582,7 +34587,7 @@ function MR({
|
|
|
34582
34587
|
return null;
|
|
34583
34588
|
}
|
|
34584
34589
|
}
|
|
34585
|
-
|
|
34590
|
+
Fr({
|
|
34586
34591
|
text: P().min(1, "Text is required"),
|
|
34587
34592
|
url: P().min(1, "Link is required").url("Please enter a valid URL")
|
|
34588
34593
|
});
|
|
@@ -34845,7 +34850,7 @@ const HR = te({
|
|
|
34845
34850
|
attachments: je(fv),
|
|
34846
34851
|
sender_recipient: Oi.optional(),
|
|
34847
34852
|
conversation: te({ id: Y(), name: et }).passthrough().optional()
|
|
34848
|
-
}), qR = Un(dh),
|
|
34853
|
+
}), qR = Un(dh), Or = te({
|
|
34849
34854
|
id: Y(),
|
|
34850
34855
|
name: P(),
|
|
34851
34856
|
description: et,
|
|
@@ -34874,42 +34879,42 @@ const HR = te({
|
|
|
34874
34879
|
pinned_messages_count: Y().nullable().optional(),
|
|
34875
34880
|
recipients: je(ch),
|
|
34876
34881
|
creator: Oi.nullable()
|
|
34877
|
-
}), WR =
|
|
34882
|
+
}), WR = Or.extend({
|
|
34878
34883
|
type: Se("EmailConversation"),
|
|
34879
34884
|
kind: sr(),
|
|
34880
34885
|
"sms_enabled?": Se(!1),
|
|
34881
34886
|
"email_enabled?": Se(!0),
|
|
34882
34887
|
broadcasting: sr()
|
|
34883
|
-
}), KR =
|
|
34888
|
+
}), KR = Or.extend({
|
|
34884
34889
|
type: Se("ChannelConversation"),
|
|
34885
34890
|
kind: Se("channel"),
|
|
34886
34891
|
"sms_enabled?": Se(!1),
|
|
34887
34892
|
"email_enabled?": Se(!1)
|
|
34888
|
-
}), GR =
|
|
34893
|
+
}), GR = Or.extend({
|
|
34889
34894
|
type: Se("GroupConversation"),
|
|
34890
34895
|
kind: Se("group"),
|
|
34891
34896
|
"sms_enabled?": Se(!1),
|
|
34892
34897
|
"email_enabled?": Se(!1),
|
|
34893
34898
|
broadcasting: sr()
|
|
34894
|
-
}), ZR =
|
|
34899
|
+
}), ZR = Or.extend({
|
|
34895
34900
|
type: Se("SmsConversation"),
|
|
34896
34901
|
kind: sr(),
|
|
34897
34902
|
"sms_enabled?": Se(!0),
|
|
34898
34903
|
"email_enabled?": Se(!1),
|
|
34899
34904
|
broadcasting: sr()
|
|
34900
|
-
}), QR =
|
|
34905
|
+
}), QR = Or.extend({
|
|
34901
34906
|
type: Se("DirectConversation"),
|
|
34902
34907
|
kind: Se("direct"),
|
|
34903
34908
|
"sms_enabled?": Se(!1),
|
|
34904
34909
|
"email_enabled?": Se(!1),
|
|
34905
34910
|
broadcasting: sr()
|
|
34906
|
-
}), YR =
|
|
34911
|
+
}), YR = Or.extend({
|
|
34907
34912
|
type: Se("BotConversation"),
|
|
34908
34913
|
kind: Se("direct"),
|
|
34909
34914
|
"sms_enabled?": Se(!1),
|
|
34910
34915
|
"email_enabled?": Se(!1),
|
|
34911
34916
|
broadcasting: sr()
|
|
34912
|
-
}), XR =
|
|
34917
|
+
}), XR = Or.extend({
|
|
34913
34918
|
type: Se("DownlineConversation"),
|
|
34914
34919
|
kind: Se("downline"),
|
|
34915
34920
|
"sms_enabled?": Se(!1),
|
|
@@ -34932,24 +34937,24 @@ te({
|
|
|
34932
34937
|
page: Y().optional(),
|
|
34933
34938
|
template: P().optional(),
|
|
34934
34939
|
search: P().optional(),
|
|
34935
|
-
filterrific:
|
|
34940
|
+
filterrific: Ir(P(), ir()).optional()
|
|
34936
34941
|
}).optional();
|
|
34937
34942
|
const pv = Un(fh), ez = te({
|
|
34938
34943
|
id: Y(),
|
|
34939
34944
|
name: P(),
|
|
34940
34945
|
avatar_url: vn
|
|
34941
|
-
}), tz = je(ez),
|
|
34942
|
-
|
|
34946
|
+
}), tz = je(ez), $r = fh;
|
|
34947
|
+
Ir(
|
|
34943
34948
|
P(),
|
|
34944
34949
|
on([
|
|
34945
34950
|
pv,
|
|
34946
34951
|
// general case
|
|
34947
|
-
|
|
34952
|
+
$r.nullable()
|
|
34948
34953
|
// announcement_channel, my_downline
|
|
34949
34954
|
])
|
|
34950
34955
|
);
|
|
34951
34956
|
te({ success: Ne() }).or(te({ success: Ne(), message: P() }));
|
|
34952
|
-
const nz =
|
|
34957
|
+
const nz = Ir(P(), Y()), mv = te({
|
|
34953
34958
|
id: Y(),
|
|
34954
34959
|
body: P(),
|
|
34955
34960
|
type: P(),
|
|
@@ -35088,7 +35093,7 @@ async function bz(e) {
|
|
|
35088
35093
|
return Be(e, {
|
|
35089
35094
|
endpoint: "/v1/messaging/announcement_channel",
|
|
35090
35095
|
method: "GET",
|
|
35091
|
-
outputSchema:
|
|
35096
|
+
outputSchema: $r
|
|
35092
35097
|
});
|
|
35093
35098
|
}
|
|
35094
35099
|
async function xz(e, t) {
|
|
@@ -35112,14 +35117,14 @@ async function vz(e, t) {
|
|
|
35112
35117
|
endpoint: "/v1/messaging/conversations/find",
|
|
35113
35118
|
method: "GET",
|
|
35114
35119
|
input: t,
|
|
35115
|
-
outputSchema:
|
|
35120
|
+
outputSchema: $r
|
|
35116
35121
|
});
|
|
35117
35122
|
}
|
|
35118
35123
|
async function _z(e, t) {
|
|
35119
35124
|
return Be(e, {
|
|
35120
35125
|
endpoint: `/v1/messaging/conversations/${t}`,
|
|
35121
35126
|
method: "GET",
|
|
35122
|
-
outputSchema:
|
|
35127
|
+
outputSchema: $r
|
|
35123
35128
|
});
|
|
35124
35129
|
}
|
|
35125
35130
|
const kz = te({
|
|
@@ -35129,7 +35134,7 @@ const kz = te({
|
|
|
35129
35134
|
name: P().optional(),
|
|
35130
35135
|
description: P().nullable().optional(),
|
|
35131
35136
|
broadcasting: Ne().optional(),
|
|
35132
|
-
filter:
|
|
35137
|
+
filter: Ir(P(), ir()).optional(),
|
|
35133
35138
|
auto_add_recipients: Ne().optional()
|
|
35134
35139
|
}),
|
|
35135
35140
|
recipients: je(
|
|
@@ -35150,7 +35155,7 @@ async function wz(e, t) {
|
|
|
35150
35155
|
method: "POST",
|
|
35151
35156
|
input: t,
|
|
35152
35157
|
inputSchema: kz,
|
|
35153
|
-
outputSchema:
|
|
35158
|
+
outputSchema: $r
|
|
35154
35159
|
});
|
|
35155
35160
|
}
|
|
35156
35161
|
const Cz = te({
|
|
@@ -35170,7 +35175,7 @@ async function Sz(e, t, n) {
|
|
|
35170
35175
|
method: "PUT",
|
|
35171
35176
|
input: n,
|
|
35172
35177
|
inputSchema: Cz,
|
|
35173
|
-
outputSchema:
|
|
35178
|
+
outputSchema: $r
|
|
35174
35179
|
});
|
|
35175
35180
|
}
|
|
35176
35181
|
async function Az(e, t) {
|
|
@@ -35186,7 +35191,7 @@ async function Ez(e, t, n) {
|
|
|
35186
35191
|
method: "DELETE",
|
|
35187
35192
|
input: n,
|
|
35188
35193
|
outputSchema: on([
|
|
35189
|
-
|
|
35194
|
+
$r,
|
|
35190
35195
|
te({ error: P() })
|
|
35191
35196
|
])
|
|
35192
35197
|
});
|
|
@@ -35455,7 +35460,7 @@ function Qz(e) {
|
|
|
35455
35460
|
);
|
|
35456
35461
|
}
|
|
35457
35462
|
function Yz() {
|
|
35458
|
-
const { t: e } = Ae(), { isMobile: t } = R_(), { auth: n, renderImage: r } = _n(), i = $n(), { currentRoute: s } = i, o = "conversationId" in s ? s.conversationId : 0, { data: a } =
|
|
35463
|
+
const { t: e } = Ae(), { isMobile: t } = R_(), { auth: n, renderImage: r } = _n(), i = $n(), { currentRoute: s } = i, o = "conversationId" in s ? s.conversationId : 0, { data: a } = Rr(o), u = r ?? Qz, l = n.currentUser, c = a?.name, d = Zz[s.view], f = d ? e(d) : void 0, h = s.view === "index";
|
|
35459
35464
|
Gz(t && !h);
|
|
35460
35465
|
const p = f ?? c ?? (h ? e("messaging_title") : null), b = p ? /* @__PURE__ */ m.jsx("div", { className: "flex min-w-0 items-center", children: /* @__PURE__ */ m.jsx("h1", { className: "text-foreground truncate text-lg font-semibold", children: p }) }) : null;
|
|
35461
35466
|
return t ? /* @__PURE__ */ m.jsx(m.Fragment, {}) : /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
@@ -35594,10 +35599,10 @@ function rO({
|
|
|
35594
35599
|
per_page: 10,
|
|
35595
35600
|
page: 1
|
|
35596
35601
|
}))?.[1]?.items ?? []).map((C) => {
|
|
35597
|
-
const
|
|
35602
|
+
const N = [C.first_name, C.last_name].filter(Boolean).length > 0 ? [C.first_name, C.last_name].filter(Boolean).join(" ") : `User ${C.id}`;
|
|
35598
35603
|
return {
|
|
35599
35604
|
id: String(C.id),
|
|
35600
|
-
label:
|
|
35605
|
+
label: N,
|
|
35601
35606
|
imageType: "user",
|
|
35602
35607
|
userData: {
|
|
35603
35608
|
first_name: C.first_name,
|
|
@@ -35606,7 +35611,7 @@ function rO({
|
|
|
35606
35611
|
phone: C.phone || void 0,
|
|
35607
35612
|
email: C.email || void 0
|
|
35608
35613
|
},
|
|
35609
|
-
conversationName:
|
|
35614
|
+
conversationName: N
|
|
35610
35615
|
};
|
|
35611
35616
|
}),
|
|
35612
35617
|
[c]
|
|
@@ -35614,7 +35619,7 @@ function rO({
|
|
|
35614
35619
|
async (E) => (await yz(l, {
|
|
35615
35620
|
filterrific: { search_query: E }
|
|
35616
35621
|
}) ?? []).map((M) => {
|
|
35617
|
-
const { text: C } =
|
|
35622
|
+
const { text: C } = Mr(M.name);
|
|
35618
35623
|
return {
|
|
35619
35624
|
id: `channel-${M.id}`,
|
|
35620
35625
|
label: Qs(C),
|