@danxbot/ui 20.23.0 → 20.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +69 -69
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as u, jsxs as R, Fragment as Ke } from "react/jsx-runtime";
|
|
2
2
|
import * as w from "react";
|
|
3
|
-
import Hu, { createElement as vv, useLayoutEffect as
|
|
3
|
+
import Hu, { createElement as vv, useLayoutEffect as qt, createContext as kn, useState as ne, useContext as mn, useRef as ge, useMemo as De, useEffect as Ae, useId as Rt, Component as DP, useCallback as Re, memo as Uu, useImperativeHandle as _P, Fragment as ju, useSyncExternalStore as Yn, Children as $P, isValidElement as FP, cloneElement as LP } from "react";
|
|
4
4
|
import * as Tn from "react-dom";
|
|
5
5
|
import { createPortal as VP } from "react-dom";
|
|
6
6
|
const zP = {
|
|
@@ -9538,7 +9538,7 @@ const v$ = e$, y$ = t$, w$ = Q_, C$ = r$, E$ = n$, S$ = (e, t, n) => {
|
|
|
9538
9538
|
});
|
|
9539
9539
|
};
|
|
9540
9540
|
var k$ = typeof document < "u", N$ = function() {
|
|
9541
|
-
}, Pc = k$ ?
|
|
9541
|
+
}, Pc = k$ ? qt : N$;
|
|
9542
9542
|
function qc(e, t) {
|
|
9543
9543
|
if (e === t)
|
|
9544
9544
|
return !0;
|
|
@@ -13626,7 +13626,7 @@ function nL({
|
|
|
13626
13626
|
function vo({ children: e }) {
|
|
13627
13627
|
return /* @__PURE__ */ u(jE, { render: e });
|
|
13628
13628
|
}
|
|
13629
|
-
function
|
|
13629
|
+
function Yt({ content: e, children: t, side: n = "top", className: r, defaultOpen: o, enterable: s = !1, open: i, onOpenChange: a }) {
|
|
13630
13630
|
return /* @__PURE__ */ R(
|
|
13631
13631
|
GE,
|
|
13632
13632
|
{
|
|
@@ -13969,7 +13969,7 @@ function Ze({
|
|
|
13969
13969
|
...y
|
|
13970
13970
|
}
|
|
13971
13971
|
});
|
|
13972
|
-
return !N || !m ? D : /* @__PURE__ */ u(
|
|
13972
|
+
return !N || !m ? D : /* @__PURE__ */ u(Yt, { content: h, side: "top", children: D });
|
|
13973
13973
|
}
|
|
13974
13974
|
function nQ({
|
|
13975
13975
|
leading: e,
|
|
@@ -14051,7 +14051,7 @@ function ot({
|
|
|
14051
14051
|
children: e
|
|
14052
14052
|
}
|
|
14053
14053
|
);
|
|
14054
|
-
return i ? p : /* @__PURE__ */ u(
|
|
14054
|
+
return i ? p : /* @__PURE__ */ u(Yt, { content: s ?? t, side: a, children: p });
|
|
14055
14055
|
}
|
|
14056
14056
|
const sL = ft({
|
|
14057
14057
|
base: [
|
|
@@ -14319,7 +14319,7 @@ function rQ({
|
|
|
14319
14319
|
`\`interval\` does nothing for effect="${E.join(" ")}" — it only sizes the rest between bursts of beacon, shimmer, bounce and wiggle. Use \`speed\` for the others.`
|
|
14320
14320
|
);
|
|
14321
14321
|
const k = (O) => dL(O, i, d).cycleMs, I = E.find((O) => O === "bounce" || O === "wiggle"), M = hL(c);
|
|
14322
|
-
return
|
|
14322
|
+
return qt(() => {
|
|
14323
14323
|
const O = x.current;
|
|
14324
14324
|
if (!O) return;
|
|
14325
14325
|
const _ = () => {
|
|
@@ -16347,7 +16347,7 @@ function aQ(e) {
|
|
|
16347
16347
|
L && /* @__PURE__ */ u("span", { id: A, className: "sr-only", children: d.reason }),
|
|
16348
16348
|
H !== null && /* @__PURE__ */ u(RS, { id: z, className: x, children: H })
|
|
16349
16349
|
] });
|
|
16350
|
-
return L ? /* @__PURE__ */ u(
|
|
16350
|
+
return L ? /* @__PURE__ */ u(Yt, { content: d.reason, children: ue }) : ue;
|
|
16351
16351
|
}
|
|
16352
16352
|
function VL({
|
|
16353
16353
|
editing: e,
|
|
@@ -17947,7 +17947,7 @@ function LV(e) {
|
|
|
17947
17947
|
const VV = Pd;
|
|
17948
17948
|
function jS(e) {
|
|
17949
17949
|
const t = ge(null), n = ge(!1);
|
|
17950
|
-
return
|
|
17950
|
+
return qt(() => {
|
|
17951
17951
|
if (e && !n.current) {
|
|
17952
17952
|
const r = document.activeElement;
|
|
17953
17953
|
t.current = r instanceof HTMLElement && r !== document.body ? r : null;
|
|
@@ -17960,7 +17960,7 @@ function jS(e) {
|
|
|
17960
17960
|
}
|
|
17961
17961
|
function GS(e, t) {
|
|
17962
17962
|
const n = mn(ah), [r, o] = ne(!1), s = e ?? r;
|
|
17963
|
-
return
|
|
17963
|
+
return qt(() => {
|
|
17964
17964
|
if (s)
|
|
17965
17965
|
return ZF(n), QF(n);
|
|
17966
17966
|
}, [s, n]), (i) => {
|
|
@@ -18211,7 +18211,7 @@ function zV({
|
|
|
18211
18211
|
] });
|
|
18212
18212
|
}
|
|
18213
18213
|
function qS({ title: e, children: t }) {
|
|
18214
|
-
return e ? /* @__PURE__ */ u(
|
|
18214
|
+
return e ? /* @__PURE__ */ u(Yt, { content: e, children: t }) : t;
|
|
18215
18215
|
}
|
|
18216
18216
|
function ol({ nodes: e, renderCode: t }) {
|
|
18217
18217
|
return e.map((n, r) => /* @__PURE__ */ u(HV, { node: n, renderCode: t }, r));
|
|
@@ -20421,7 +20421,7 @@ function mk({ className: e }) {
|
|
|
20421
20421
|
}
|
|
20422
20422
|
function n5({ className: e }) {
|
|
20423
20423
|
const { copy: t, copied: n } = sl("CodeEditorCopyButton"), r = Ms();
|
|
20424
|
-
return /* @__PURE__ */ u(
|
|
20424
|
+
return /* @__PURE__ */ u(Yt, { content: n ? "Copied" : "Copy", children: /* @__PURE__ */ u(
|
|
20425
20425
|
"button",
|
|
20426
20426
|
{
|
|
20427
20427
|
type: "button",
|
|
@@ -20435,7 +20435,7 @@ function n5({ className: e }) {
|
|
|
20435
20435
|
}
|
|
20436
20436
|
function r5({ className: e }) {
|
|
20437
20437
|
const { wrap: t, setWrap: n } = sl("CodeEditorWrapToggle");
|
|
20438
|
-
return /* @__PURE__ */ u(
|
|
20438
|
+
return /* @__PURE__ */ u(Yt, { content: t ? "Stop wrapping long lines" : "Wrap long lines", children: /* @__PURE__ */ u(
|
|
20439
20439
|
au,
|
|
20440
20440
|
{
|
|
20441
20441
|
size: "sm",
|
|
@@ -20468,7 +20468,7 @@ function s5({ className: e }) {
|
|
|
20468
20468
|
"aria-label": "View",
|
|
20469
20469
|
"data-code-views": "",
|
|
20470
20470
|
className: B("shrink-0 p-0.5", e),
|
|
20471
|
-
children: r.map((o) => /* @__PURE__ */ u(
|
|
20471
|
+
children: r.map((o) => /* @__PURE__ */ u(Yt, { content: dw[o], children: /* @__PURE__ */ u(
|
|
20472
20472
|
au,
|
|
20473
20473
|
{
|
|
20474
20474
|
size: "sm",
|
|
@@ -20974,7 +20974,7 @@ function xQ(e, t, n) {
|
|
|
20974
20974
|
const r = Math.max(0, Math.min(t, e.length));
|
|
20975
20975
|
if (n === 1 && r >= e.length) return e.length;
|
|
20976
20976
|
if (n === -1 && r <= 0) return 0;
|
|
20977
|
-
const o =
|
|
20977
|
+
const o = Kt(e, r), s = o.start, i = e.slice(s, o.end), a = r - s;
|
|
20978
20978
|
if (n === -1 && a <= 0) return r - 1;
|
|
20979
20979
|
const c = [0];
|
|
20980
20980
|
for (const d of k5.segment(i)) c.push(d.index + d.segment.length);
|
|
@@ -20989,7 +20989,7 @@ function xQ(e, t, n) {
|
|
|
20989
20989
|
}
|
|
20990
20990
|
return s + l;
|
|
20991
20991
|
}
|
|
20992
|
-
function
|
|
20992
|
+
function Kt(e, t) {
|
|
20993
20993
|
const n = Math.max(0, Math.min(t, e.length));
|
|
20994
20994
|
let r = n;
|
|
20995
20995
|
for (; r > 0 && e[r - 1] !== `
|
|
@@ -21167,10 +21167,10 @@ const cn = (e) => ({ anchor: e, head: e }), en = (e) => ({
|
|
|
21167
21167
|
to: Math.max(e.anchor, e.head)
|
|
21168
21168
|
});
|
|
21169
21169
|
function oo(e, t) {
|
|
21170
|
-
const { from: n, to: r } = en(t), o =
|
|
21170
|
+
const { from: n, to: r } = en(t), o = Kt(e, n), s = Kt(e, r), i = [];
|
|
21171
21171
|
let a = o.start;
|
|
21172
21172
|
for (; ; ) {
|
|
21173
|
-
const c =
|
|
21173
|
+
const c = Kt(e, a);
|
|
21174
21174
|
if (i.push({ start: c.start, end: c.end, text: e.slice(c.start, c.end) }), c.end >= s.end) break;
|
|
21175
21175
|
a = c.end + 1;
|
|
21176
21176
|
}
|
|
@@ -21259,12 +21259,12 @@ function mw(e) {
|
|
|
21259
21259
|
}
|
|
21260
21260
|
const Ma = " ", Ug = /^\[([ xX])\]\s?/;
|
|
21261
21261
|
function F5(e, t) {
|
|
21262
|
-
const n = xr(e.slice(t.start,
|
|
21262
|
+
const n = xr(e.slice(t.start, Kt(e, t.start).end));
|
|
21263
21263
|
if (!n) return !1;
|
|
21264
21264
|
const r = n.indent.length;
|
|
21265
21265
|
let o = t.start;
|
|
21266
21266
|
for (; o > 0; ) {
|
|
21267
|
-
const s =
|
|
21267
|
+
const s = Kt(e, o - 1), i = e.slice(s.start, s.end);
|
|
21268
21268
|
if (i.trim().length === 0) return !1;
|
|
21269
21269
|
const a = xr(i);
|
|
21270
21270
|
if (!a) return !1;
|
|
@@ -21320,7 +21320,7 @@ function ki(e, t) {
|
|
|
21320
21320
|
const n = [];
|
|
21321
21321
|
let r = 0;
|
|
21322
21322
|
for (; ; ) {
|
|
21323
|
-
const i =
|
|
21323
|
+
const i = Kt(e, r);
|
|
21324
21324
|
if (n.push({ start: i.start, end: i.end, text: e.slice(i.start, i.end) }), i.end >= e.length) break;
|
|
21325
21325
|
r = i.end + 1;
|
|
21326
21326
|
}
|
|
@@ -21340,7 +21340,7 @@ function ki(e, t) {
|
|
|
21340
21340
|
return s && t >= s.start ? { start: s.start, end: e.length, bodyStart: s.end + 1, bodyEnd: e.length } : null;
|
|
21341
21341
|
}
|
|
21342
21342
|
const U5 = (e, t) => {
|
|
21343
|
-
const n =
|
|
21343
|
+
const n = Kt(e, en(t).from), r = e.slice(n.start, n.end).trim().length === 0, o = r ? "---" : `
|
|
21344
21344
|
|
|
21345
21345
|
---
|
|
21346
21346
|
`, s = r ? n.start : n.end;
|
|
@@ -21368,14 +21368,14 @@ function vQ(e, t) {
|
|
|
21368
21368
|
}
|
|
21369
21369
|
const G5 = /^[ \t]*\|?[ \t]*:?-+:?[ \t]*(?:\|[ \t]*:?-+:?[ \t]*)*\|?[ \t]*$/;
|
|
21370
21370
|
function ll(e, t) {
|
|
21371
|
-
const n =
|
|
21372
|
-
const a =
|
|
21371
|
+
const n = Kt(e, t), r = (i) => {
|
|
21372
|
+
const a = Kt(e, i);
|
|
21373
21373
|
return { start: a.start, end: a.end, text: e.slice(a.start, a.end) };
|
|
21374
21374
|
}, o = (i) => i.includes("|");
|
|
21375
21375
|
if (!o(e.slice(n.start, n.end))) return null;
|
|
21376
21376
|
const s = [r(n.start)];
|
|
21377
21377
|
for (let i = n.start; i > 0; ) {
|
|
21378
|
-
const a = r(
|
|
21378
|
+
const a = r(Kt(e, i - 1).start);
|
|
21379
21379
|
if (!o(a.text) || (s.unshift(a), i = a.start, i === 0)) break;
|
|
21380
21380
|
}
|
|
21381
21381
|
for (let i = n.end; i < e.length; ) {
|
|
@@ -21400,7 +21400,7 @@ function $k(e, t, n) {
|
|
|
21400
21400
|
}
|
|
21401
21401
|
function W5(e = 3, t = 2) {
|
|
21402
21402
|
return (n, r) => {
|
|
21403
|
-
const o =
|
|
21403
|
+
const o = Kt(n, en(r).from), s = cs(Array.from({ length: e }, (p, h) => `Column ${h + 1}`)), i = cs(Array.from({ length: e }, () => "---")), a = Array.from({ length: t }, () => cs(Array.from({ length: e }, () => " "))).join(`
|
|
21404
21404
|
`), c = `${s}
|
|
21405
21405
|
${i}
|
|
21406
21406
|
${a}`, l = n.slice(o.start, o.end).trim().length === 0, d = l ? c : `
|
|
@@ -21488,7 +21488,7 @@ function zk(e) {
|
|
|
21488
21488
|
const q5 = (e, t) => {
|
|
21489
21489
|
const { from: n, to: r } = en(t);
|
|
21490
21490
|
if (n !== r) return null;
|
|
21491
|
-
const o =
|
|
21491
|
+
const o = Kt(e, n), s = e.slice(o.start, o.end), i = (d, f) => ({
|
|
21492
21492
|
splice: { start: o.start, end: o.end, text: d },
|
|
21493
21493
|
select: cn(f)
|
|
21494
21494
|
}), a = xr(s);
|
|
@@ -21514,7 +21514,7 @@ const q5 = (e, t) => {
|
|
|
21514
21514
|
}
|
|
21515
21515
|
return null;
|
|
21516
21516
|
}, K5 = (e, t) => {
|
|
21517
|
-
const { from: n, to: r } = en(t), o =
|
|
21517
|
+
const { from: n, to: r } = en(t), o = Kt(e, n), s = e.slice(o.start, o.end), i = xr(s);
|
|
21518
21518
|
if (i) {
|
|
21519
21519
|
const c = Ug.exec(i.body);
|
|
21520
21520
|
if ((c ? i.body.slice(c[0].length) : i.body).trim().length === 0) {
|
|
@@ -21545,12 +21545,12 @@ ${a[0]}`;
|
|
|
21545
21545
|
}, Bk = (e, t) => {
|
|
21546
21546
|
const n = zk(!0)(e, t);
|
|
21547
21547
|
if (n) return n;
|
|
21548
|
-
const r =
|
|
21548
|
+
const r = Kt(e, en(t).from), o = e.slice(r.start, r.end);
|
|
21549
21549
|
return !xr(o) && !ki(e, en(t).from) ? null : L5(e, t);
|
|
21550
21550
|
}, Hk = (e, t) => {
|
|
21551
21551
|
const n = zk(!1)(e, t);
|
|
21552
21552
|
if (n) return n;
|
|
21553
|
-
const r =
|
|
21553
|
+
const r = Kt(e, en(t).from), o = e.slice(r.start, r.end);
|
|
21554
21554
|
return !xr(o) && !ki(e, en(t).from) ? null : V5(e, t);
|
|
21555
21555
|
}, gw = /* @__PURE__ */ new Set([
|
|
21556
21556
|
"inline",
|
|
@@ -24271,7 +24271,7 @@ function s3(e) {
|
|
|
24271
24271
|
const t = [];
|
|
24272
24272
|
let n = 0;
|
|
24273
24273
|
for (; ; ) {
|
|
24274
|
-
const r =
|
|
24274
|
+
const r = Kt(e, n);
|
|
24275
24275
|
if (t.push({ start: r.start, end: r.end, text: e.slice(r.start, r.end) }), r.end >= e.length) break;
|
|
24276
24276
|
n = r.end + 1;
|
|
24277
24277
|
}
|
|
@@ -24280,10 +24280,10 @@ function s3(e) {
|
|
|
24280
24280
|
function fu(e, t) {
|
|
24281
24281
|
const n = ki(e, t);
|
|
24282
24282
|
if (n)
|
|
24283
|
-
return { kind: "code", language: e.slice(n.start,
|
|
24283
|
+
return { kind: "code", language: e.slice(n.start, Kt(e, n.start).end).replace(/^ {0,3}(`{3,}|~{3,})/, "").trim(), start: n.start, end: n.end };
|
|
24284
24284
|
const r = ll(e, t);
|
|
24285
24285
|
if (r) return { kind: "table", start: r.start, end: r.end };
|
|
24286
|
-
const o =
|
|
24286
|
+
const o = Kt(e, t), s = e.slice(o.start, o.end), i = { start: o.start, end: o.end };
|
|
24287
24287
|
if (o3.test(s)) return { kind: "rule", ...i };
|
|
24288
24288
|
const a = mN.exec(s);
|
|
24289
24289
|
if (a) return { kind: "heading", level: a[1].length, ...i };
|
|
@@ -24348,7 +24348,7 @@ function a3(e, t, n, r) {
|
|
|
24348
24348
|
}
|
|
24349
24349
|
function xN(e, t = {}) {
|
|
24350
24350
|
return (n, r) => {
|
|
24351
|
-
const o = Math.min(r.anchor, r.head), s = Math.max(r.anchor, r.head), i = fu(n, o), a = i.kind === "code" || i.kind === "table" ? i.start :
|
|
24351
|
+
const o = Math.min(r.anchor, r.head), s = Math.max(r.anchor, r.head), i = fu(n, o), a = i.kind === "code" || i.kind === "table" ? i.start : Kt(n, o).start, c = i.kind === "code" || i.kind === "table" ? i.end : Kt(n, s).end, l = t.level ?? i.level ?? 1, d = t.language ?? i.language ?? "", f = i3(n, { ...i, start: a, end: c }), p = a3(e, l, d, f);
|
|
24352
24352
|
if (p === n.slice(a, c)) return null;
|
|
24353
24353
|
const h = p.split(`
|
|
24354
24354
|
`)[0];
|
|
@@ -24359,7 +24359,7 @@ function l3(e) {
|
|
|
24359
24359
|
return (t, n) => {
|
|
24360
24360
|
const r = ki(t, Math.min(n.anchor, n.head));
|
|
24361
24361
|
if (!r) return null;
|
|
24362
|
-
const o =
|
|
24362
|
+
const o = Kt(t, r.start), s = t.slice(o.start, o.end), i = /^ {0,3}(`{3,}|~{3,})/.exec(s);
|
|
24363
24363
|
if (!i) return null;
|
|
24364
24364
|
const a = `${i[0]}${e}`;
|
|
24365
24365
|
return a === s ? null : {
|
|
@@ -24539,7 +24539,7 @@ function f3(e) {
|
|
|
24539
24539
|
}
|
|
24540
24540
|
function p3({ surface: e, state: t, run: n, container: r }) {
|
|
24541
24541
|
const o = t.construct && !(t.construct.kind === "image" && Hg(t.construct.target)) ? t.construct : null, s = o ?? (t.block?.kind === "code" || t.block?.kind === "table" ? t.block : null), i = ge(null), [a, c] = ne(null), [l, d] = ne("above");
|
|
24542
|
-
return
|
|
24542
|
+
return qt(() => {
|
|
24543
24543
|
if (d("above"), !e || !r || !s) {
|
|
24544
24544
|
c(null);
|
|
24545
24545
|
return;
|
|
@@ -24563,7 +24563,7 @@ function p3({ surface: e, state: t, run: n, container: r }) {
|
|
|
24563
24563
|
h.removeEventListener("load", p), h.removeEventListener("error", p);
|
|
24564
24564
|
};
|
|
24565
24565
|
}
|
|
24566
|
-
}, [e, r, s, o, t.source]),
|
|
24566
|
+
}, [e, r, s, o, t.source]), qt(() => {
|
|
24567
24567
|
if (!a || l === "below" || !r) return;
|
|
24568
24568
|
const f = i.current?.getBoundingClientRect(), p = r.getBoundingClientRect().top;
|
|
24569
24569
|
f && f.top < p && d("below");
|
|
@@ -24670,7 +24670,7 @@ function g3({ run: e }) {
|
|
|
24670
24670
|
}
|
|
24671
24671
|
const kw = () => /* @__PURE__ */ u("span", { className: "mx-0.5 h-4 w-px bg-border-subtle" });
|
|
24672
24672
|
function Tr({ icon: e, label: t, onClick: n }) {
|
|
24673
|
-
return /* @__PURE__ */ u(
|
|
24673
|
+
return /* @__PURE__ */ u(Yt, { content: t, children: /* @__PURE__ */ u(
|
|
24674
24674
|
Ze,
|
|
24675
24675
|
{
|
|
24676
24676
|
variant: "ghost",
|
|
@@ -25058,7 +25058,7 @@ function I3({
|
|
|
25058
25058
|
children: [
|
|
25059
25059
|
k3.map((W) => {
|
|
25060
25060
|
const j = W.isActive?.(Y) ?? !1;
|
|
25061
|
-
return /* @__PURE__ */ u(
|
|
25061
|
+
return /* @__PURE__ */ u(Yt, { content: W.hotkey ? `${W.label} · ${W.hotkey}` : W.label, children: /* @__PURE__ */ u(
|
|
25062
25062
|
Ze,
|
|
25063
25063
|
{
|
|
25064
25064
|
variant: "ghost",
|
|
@@ -25316,7 +25316,7 @@ function D3({
|
|
|
25316
25316
|
}
|
|
25317
25317
|
L(U);
|
|
25318
25318
|
}).current;
|
|
25319
|
-
|
|
25319
|
+
qt(() => {
|
|
25320
25320
|
const z = k.current;
|
|
25321
25321
|
if (!z) return;
|
|
25322
25322
|
function L(U) {
|
|
@@ -25330,7 +25330,7 @@ function D3({
|
|
|
25330
25330
|
const L = m.current, U = A3(z, L), G = U.length > L, Y = G ? Math.min(U[L - 1].bottom, U[L].top) : null, q = U[L - 1] ? U[L - 1].bottom - U[L - 1].top : 0, X = L >= 2 && U[L - 2] ? U[L - 2].bottom : 0, W = G ? Math.max(0, Y - X) : 0, j = G ? Math.min(q * Math.min(1, (L - 1) / 2), W) : 0;
|
|
25331
25331
|
E.current = G, S.current = Y, x(G), y(Y), C(j), _();
|
|
25332
25332
|
}).current;
|
|
25333
|
-
|
|
25333
|
+
qt(() => {
|
|
25334
25334
|
const z = N.current;
|
|
25335
25335
|
if (!z) return;
|
|
25336
25336
|
P();
|
|
@@ -25338,7 +25338,7 @@ function D3({
|
|
|
25338
25338
|
return L.observe(z), () => L.disconnect();
|
|
25339
25339
|
}, []);
|
|
25340
25340
|
const $ = ge(!1);
|
|
25341
|
-
|
|
25341
|
+
qt(() => {
|
|
25342
25342
|
if (!$.current) {
|
|
25343
25343
|
$.current = !0;
|
|
25344
25344
|
return;
|
|
@@ -25346,13 +25346,13 @@ function D3({
|
|
|
25346
25346
|
P();
|
|
25347
25347
|
}, [e]);
|
|
25348
25348
|
const V = ge(!1);
|
|
25349
|
-
|
|
25349
|
+
qt(() => {
|
|
25350
25350
|
if (!V.current) {
|
|
25351
25351
|
V.current = !0;
|
|
25352
25352
|
return;
|
|
25353
25353
|
}
|
|
25354
25354
|
!f && N.current?.contains(document.activeElement) && I.current?.focus(), _();
|
|
25355
|
-
}, [f]),
|
|
25355
|
+
}, [f]), qt(() => () => T.current.forEach((z) => cancelAnimationFrame(z)), []);
|
|
25356
25356
|
function F() {
|
|
25357
25357
|
p(!f);
|
|
25358
25358
|
}
|
|
@@ -25434,7 +25434,7 @@ function $3({ value: e, label: t, placeholder: n = "Empty", collapsedLines: r, r
|
|
|
25434
25434
|
]
|
|
25435
25435
|
}
|
|
25436
25436
|
);
|
|
25437
|
-
return o === void 0 ? c : /* @__PURE__ */ u(
|
|
25437
|
+
return o === void 0 ? c : /* @__PURE__ */ u(Yt, { content: o.reason, children: c });
|
|
25438
25438
|
}
|
|
25439
25439
|
function F3({
|
|
25440
25440
|
value: e,
|
|
@@ -27261,7 +27261,7 @@ function RQ({
|
|
|
27261
27261
|
/* @__PURE__ */ u(dt, { size: "sm", tone: d.tone, icon: d.icon, children: d.label })
|
|
27262
27262
|
] }),
|
|
27263
27263
|
o != null && /* @__PURE__ */ u("p", { className: "text-xs text-tertiary text-pretty", children: o }),
|
|
27264
|
-
x && /* @__PURE__ */ u($N, { children: f ? /* @__PURE__ */ u(
|
|
27264
|
+
x && /* @__PURE__ */ u($N, { children: f ? /* @__PURE__ */ u(Yt, { content: a, children: x }) : x })
|
|
27265
27265
|
] });
|
|
27266
27266
|
}
|
|
27267
27267
|
function uB(e) {
|
|
@@ -31098,7 +31098,7 @@ function vH({
|
|
|
31098
31098
|
]
|
|
31099
31099
|
}
|
|
31100
31100
|
);
|
|
31101
|
-
return n ? /* @__PURE__ */ u(
|
|
31101
|
+
return n ? /* @__PURE__ */ u(Yt, { content: e.label, side: "right", children: o }) : o;
|
|
31102
31102
|
}
|
|
31103
31103
|
const yH = (e) => typeof e == "boolean";
|
|
31104
31104
|
function _Q({
|
|
@@ -39921,7 +39921,7 @@ function lJ({
|
|
|
39921
39921
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
39922
39922
|
[p, S]
|
|
39923
39923
|
), k = N.some((A) => A.id === x) ? x : N[0]?.id ?? null, I = l === "tabs" && N.length >= 2, M = Rt(), T = Re((A) => `${M}-tab-${A}`, [M]), D = Re((A) => `${M}-panel-${A}`, [M]);
|
|
39924
|
-
|
|
39924
|
+
qt(() => {
|
|
39925
39925
|
const A = S();
|
|
39926
39926
|
if (A.length === 0) return;
|
|
39927
39927
|
const z = A.map((X) => X.id), L = Object.keys(y);
|
|
@@ -40099,7 +40099,7 @@ function cJ({
|
|
|
40099
40099
|
ref: l
|
|
40100
40100
|
}) {
|
|
40101
40101
|
const d = NM("Panel"), f = ge(null), { register: p } = d;
|
|
40102
|
-
|
|
40102
|
+
qt(() => {
|
|
40103
40103
|
const v = f.current;
|
|
40104
40104
|
if (v)
|
|
40105
40105
|
return p({
|
|
@@ -40705,7 +40705,7 @@ function yx(e) {
|
|
|
40705
40705
|
}
|
|
40706
40706
|
function wx({ content: e, children: t }) {
|
|
40707
40707
|
const [n, r] = ne(!1);
|
|
40708
|
-
return /* @__PURE__ */ u(
|
|
40708
|
+
return /* @__PURE__ */ u(Yt, { content: e, open: n, onOpenChange: r, children: LP(t, { onFocus: () => r(!0), onBlur: () => r(!1) }) });
|
|
40709
40709
|
}
|
|
40710
40710
|
function Cx({ label: e, lines: t }) {
|
|
40711
40711
|
return /* @__PURE__ */ R("div", { className: "flex flex-col gap-0.5", children: [
|
|
@@ -40997,7 +40997,7 @@ function bJ(e) {
|
|
|
40997
40997
|
className: g,
|
|
40998
40998
|
ref: x
|
|
40999
40999
|
} = e, b = e.formatAxis ?? c, y = Rt().replace(/:/g, ""), v = ge(null), [C, E] = ne(0), [S, N] = ne(/* @__PURE__ */ new Set()), [k, I] = ne(null), [M, T] = ne(null), [D, O] = ne(0);
|
|
41000
|
-
|
|
41000
|
+
qt(() => {
|
|
41001
41001
|
const he = v.current;
|
|
41002
41002
|
if (!he) return;
|
|
41003
41003
|
const pe = () => E(he.getBoundingClientRect().width);
|
|
@@ -43656,7 +43656,7 @@ function yJ({
|
|
|
43656
43656
|
};
|
|
43657
43657
|
g.postMessage(x, "*");
|
|
43658
43658
|
};
|
|
43659
|
-
|
|
43659
|
+
qt(() => {
|
|
43660
43660
|
const g = a.current;
|
|
43661
43661
|
if (!g) return;
|
|
43662
43662
|
const x = (y) => {
|
|
@@ -43669,11 +43669,11 @@ function yJ({
|
|
|
43669
43669
|
return b.observe(document.documentElement, { attributes: !0, attributeFilter: LG }), () => {
|
|
43670
43670
|
window.removeEventListener("message", x), g.removeEventListener("load", f), b.disconnect();
|
|
43671
43671
|
};
|
|
43672
|
-
}, []),
|
|
43672
|
+
}, []), qt(() => {
|
|
43673
43673
|
a.current && (a.current.srcdoc = d);
|
|
43674
43674
|
}, [d]);
|
|
43675
43675
|
const p = typeof n == "object" ? n.scaleToWidth : null, [h, m] = ne(null);
|
|
43676
|
-
if (
|
|
43676
|
+
if (qt(() => {
|
|
43677
43677
|
if (p === null) return;
|
|
43678
43678
|
const g = c.current;
|
|
43679
43679
|
if (!g) return;
|
|
@@ -45143,7 +45143,7 @@ function N8(e) {
|
|
|
45143
45143
|
}
|
|
45144
45144
|
function R8(e = !0) {
|
|
45145
45145
|
const [t, n] = ne(null);
|
|
45146
|
-
return
|
|
45146
|
+
return qt(() => {
|
|
45147
45147
|
if (t === null) return;
|
|
45148
45148
|
const r = () => {
|
|
45149
45149
|
if (!e) {
|
|
@@ -45709,7 +45709,7 @@ function kJ({
|
|
|
45709
45709
|
/* @__PURE__ */ u("span", { className: h.laneLabel(), children: T.label }),
|
|
45710
45710
|
T.hint && /* @__PURE__ */ u("span", { className: h.laneHint(), children: T.hint })
|
|
45711
45711
|
] }),
|
|
45712
|
-
T.refusal !== void 0 && /* @__PURE__ */ u(
|
|
45712
|
+
T.refusal !== void 0 && /* @__PURE__ */ u(Yt, { content: T.refusal, children: /* @__PURE__ */ u(
|
|
45713
45713
|
"button",
|
|
45714
45714
|
{
|
|
45715
45715
|
type: "button",
|
|
@@ -46620,7 +46620,7 @@ function PJ({
|
|
|
46620
46620
|
"usePagedWindow: pageSize, windowPages and settleMs cannot change after mount. Mount a new list (a React `key`) for a differently-paged list."
|
|
46621
46621
|
);
|
|
46622
46622
|
const d = Yn(c.subscribe, c.getSnapshot, c.getSnapshot);
|
|
46623
|
-
|
|
46623
|
+
qt(() => c.setLoaders(n, r)), Ae(() => c.setMode(s), [c, s]);
|
|
46624
46624
|
const f = ge(o);
|
|
46625
46625
|
Ae(() => {
|
|
46626
46626
|
f.current !== o && (f.current = o, c.reset());
|
|
@@ -46822,7 +46822,7 @@ function L0({
|
|
|
46822
46822
|
disabled: r,
|
|
46823
46823
|
tinted: o
|
|
46824
46824
|
}) {
|
|
46825
|
-
return /* @__PURE__ */ u(
|
|
46825
|
+
return /* @__PURE__ */ u(Yt, { content: t, children: /* @__PURE__ */ u(
|
|
46826
46826
|
"button",
|
|
46827
46827
|
{
|
|
46828
46828
|
type: "button",
|
|
@@ -46992,7 +46992,7 @@ function m9({
|
|
|
46992
46992
|
"aria-hidden": !0
|
|
46993
46993
|
}
|
|
46994
46994
|
),
|
|
46995
|
-
/* @__PURE__ */ u(
|
|
46995
|
+
/* @__PURE__ */ u(Yt, { content: "Attach files", children: /* @__PURE__ */ u(
|
|
46996
46996
|
"button",
|
|
46997
46997
|
{
|
|
46998
46998
|
type: "button",
|
|
@@ -47013,7 +47013,7 @@ function m9({
|
|
|
47013
47013
|
f && /* @__PURE__ */ u("div", { className: "flex min-w-0 items-center gap-0.5", children: f }),
|
|
47014
47014
|
/* @__PURE__ */ R("div", { className: "ml-auto flex items-center gap-2", children: [
|
|
47015
47015
|
h && /* @__PURE__ */ u("span", { className: "hidden text-2xs text-tertiary @sm:inline", children: h }),
|
|
47016
|
-
i && a ? /* @__PURE__ */ u(
|
|
47016
|
+
i && a ? /* @__PURE__ */ u(Yt, { content: "Stop generating", children: /* @__PURE__ */ u(
|
|
47017
47017
|
"button",
|
|
47018
47018
|
{
|
|
47019
47019
|
type: "button",
|
|
@@ -47732,7 +47732,7 @@ function B0({
|
|
|
47732
47732
|
action: e,
|
|
47733
47733
|
message: t
|
|
47734
47734
|
}) {
|
|
47735
|
-
return /* @__PURE__ */ u(
|
|
47735
|
+
return /* @__PURE__ */ u(Yt, { content: e.label, children: /* @__PURE__ */ u(
|
|
47736
47736
|
"button",
|
|
47737
47737
|
{
|
|
47738
47738
|
type: "button",
|
|
@@ -47766,7 +47766,7 @@ function M9({
|
|
|
47766
47766
|
const g = h.scrollHeight - h.scrollTop - h.clientHeight <= t;
|
|
47767
47767
|
c.current = g, d(!g);
|
|
47768
47768
|
}, [t]);
|
|
47769
|
-
return
|
|
47769
|
+
return qt(() => {
|
|
47770
47770
|
const h = i.current;
|
|
47771
47771
|
h && (h.scrollTop = h.scrollHeight);
|
|
47772
47772
|
}, []), Ae(() => {
|
|
@@ -48132,7 +48132,7 @@ function G9({ frameKey: e, fit: t }) {
|
|
|
48132
48132
|
() => t && c && o && o.width > 0 && o.height > 0 ? j9(t, c, o) : null,
|
|
48133
48133
|
[t, c, o]
|
|
48134
48134
|
), d = ge({ key: "", fit: null }), f = c ? `${e}|${c.width}x${c.height}` : e;
|
|
48135
|
-
|
|
48135
|
+
qt(() => {
|
|
48136
48136
|
if (!l) return;
|
|
48137
48137
|
const y = d.current, v = y.key === f;
|
|
48138
48138
|
d.current = { key: f, fit: l }, r(
|
|
@@ -48779,7 +48779,7 @@ function n7({
|
|
|
48779
48779
|
/* @__PURE__ */ R("div", { className: "flex items-baseline gap-1.5", children: [
|
|
48780
48780
|
/* @__PURE__ */ u("span", { className: "text-sm font-semibold text-primary", children: "Effort" }),
|
|
48781
48781
|
/* @__PURE__ */ u("span", { className: "text-sm text-secondary", children: d?.label }),
|
|
48782
|
-
r && /* @__PURE__ */ u(
|
|
48782
|
+
r && /* @__PURE__ */ u(Yt, { content: r, children: /* @__PURE__ */ u(
|
|
48783
48783
|
"button",
|
|
48784
48784
|
{
|
|
48785
48785
|
type: "button",
|
|
@@ -51234,7 +51234,7 @@ function tW({
|
|
|
51234
51234
|
}
|
|
51235
51235
|
) }),
|
|
51236
51236
|
i.items.map((c) => /* @__PURE__ */ R("tr", { className: "border-b border-border-subtle last:border-b-0", children: [
|
|
51237
|
-
/* @__PURE__ */ u("td", { className: "px-5 py-3 text-sm text-primary", children: c.description ? /* @__PURE__ */ u(
|
|
51237
|
+
/* @__PURE__ */ u("td", { className: "px-5 py-3 text-sm text-primary", children: c.description ? /* @__PURE__ */ u(Yt, { content: c.description, children: /* @__PURE__ */ u(
|
|
51238
51238
|
"span",
|
|
51239
51239
|
{
|
|
51240
51240
|
tabIndex: 0,
|
|
@@ -54086,7 +54086,7 @@ function YW({
|
|
|
54086
54086
|
className: o
|
|
54087
54087
|
}) {
|
|
54088
54088
|
const s = e === null ? null : qW(e, t), i = s === null || e === null ? `${n} — not rated` : `${n} ${String(Math.round(e))} of ${String(Math.round(t))}`, a = KW({ size: r, level: s ?? "none" });
|
|
54089
|
-
return /* @__PURE__ */ u(
|
|
54089
|
+
return /* @__PURE__ */ u(Yt, { content: i, children: /* @__PURE__ */ u(
|
|
54090
54090
|
"span",
|
|
54091
54091
|
{
|
|
54092
54092
|
role: "img",
|
|
@@ -57051,7 +57051,7 @@ function Aee({
|
|
|
57051
57051
|
},
|
|
57052
57052
|
Z.id
|
|
57053
57053
|
);
|
|
57054
|
-
return Oe != null ? /* @__PURE__ */ u(
|
|
57054
|
+
return Oe != null ? /* @__PURE__ */ u(Yt, { content: Oe, children: Me }, Z.id) : Me;
|
|
57055
57055
|
})
|
|
57056
57056
|
}
|
|
57057
57057
|
)
|
|
@@ -57856,7 +57856,7 @@ function Dee({
|
|
|
57856
57856
|
}
|
|
57857
57857
|
}
|
|
57858
57858
|
const O = !!a;
|
|
57859
|
-
|
|
57859
|
+
qt(() => {
|
|
57860
57860
|
const P = h.current;
|
|
57861
57861
|
if (!P) return;
|
|
57862
57862
|
const $ = () => {
|
|
@@ -60276,7 +60276,7 @@ export {
|
|
|
60276
60276
|
bQ as ToolbarGroup,
|
|
60277
60277
|
gQ as ToolbarInput,
|
|
60278
60278
|
hQ as ToolbarSeparator,
|
|
60279
|
-
|
|
60279
|
+
Yt as Tooltip,
|
|
60280
60280
|
tQ as TooltipProvider,
|
|
60281
60281
|
Nee as TrackManager,
|
|
60282
60282
|
HQ as Tree,
|
|
@@ -60417,7 +60417,7 @@ export {
|
|
|
60417
60417
|
iX as layoutRing,
|
|
60418
60418
|
uW as leastPrivilegeRoleId,
|
|
60419
60419
|
fa as legalSectionAnchor,
|
|
60420
|
-
|
|
60420
|
+
Kt as lineAt,
|
|
60421
60421
|
J5 as lineStartStop,
|
|
60422
60422
|
Fz as listLanguages,
|
|
60423
60423
|
Ru as longDate,
|