@danxbot/ui 24.0.0 → 24.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +323 -317
- package/dist/index.js.map +1 -1
- package/dist/types/icons/data.d.ts +51 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -178,6 +178,12 @@ const UO = {
|
|
|
178
178
|
signature: [["path", { d: "m21 17-2.156-1.868A.5.5 0 0 0 18 15.5v.5a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1c0-2.545-3.991-3.97-8.5-4a1 1 0 0 0 0 5c4.153 0 4.745-11.295 5.708-13.5a2.5 2.5 0 1 1 3.31 3.284" }], ["path", { d: "M3 21h18" }]],
|
|
179
179
|
/* --- pacing --- */
|
|
180
180
|
timer: [["line", { x1: "10", x2: "14", y1: "2", y2: "2" }], ["line", { x1: "12", x2: "15", y1: "14", y2: "11" }], ["circle", { cx: "12", cy: "14", r: "8" }]],
|
|
181
|
+
/* --- tournament --- */
|
|
182
|
+
"circle-pause": [["circle", { cx: "12", cy: "12", r: "10" }], ["line", { x1: "10", x2: "10", y1: "15", y2: "9" }], ["line", { x1: "14", x2: "14", y1: "15", y2: "9" }]],
|
|
183
|
+
crown: [["path", { d: "M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z" }], ["path", { d: "M5 21h14" }]],
|
|
184
|
+
medal: [["path", { d: "M7.21 15 2.66 7.14a2 2 0 0 1 .13-2.2L4.4 2.8A2 2 0 0 1 6 2h12a2 2 0 0 1 1.6.8l1.6 2.14a2 2 0 0 1 .14 2.2L16.79 15" }], ["path", { d: "M11 12 5.12 2.2" }], ["path", { d: "m13 12 5.88-9.8" }], ["path", { d: "M8 7h8" }], ["circle", { cx: "12", cy: "17", r: "5" }], ["path", { d: "M12 18v-2h-.5" }]],
|
|
185
|
+
mountain: [["path", { d: "m8 3 4 8 5-5 5 15H2L8 3z" }]],
|
|
186
|
+
trophy: [["path", { d: "M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978" }], ["path", { d: "M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978" }], ["path", { d: "M18 9h1.5a1 1 0 0 0 0-5H18" }], ["path", { d: "M4 22h16" }], ["path", { d: "M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z" }], ["path", { d: "M6 9H4.5a1 1 0 0 1 0-5H6" }]],
|
|
181
187
|
/* --- text authoring --- */
|
|
182
188
|
"align-center": [["path", { d: "M21 5H3" }], ["path", { d: "M17 12H7" }], ["path", { d: "M19 19H5" }]],
|
|
183
189
|
"align-left": [["path", { d: "M21 5H3" }], ["path", { d: "M15 12H3" }], ["path", { d: "M17 19H3" }]],
|
|
@@ -44367,7 +44373,7 @@ const Y8 = {
|
|
|
44367
44373
|
return t.filter((s) => !o.has(s.id));
|
|
44368
44374
|
}, ct(e.options, "debugRows", "getCenterRows"));
|
|
44369
44375
|
}
|
|
44370
|
-
},
|
|
44376
|
+
}, e9 = {
|
|
44371
44377
|
getInitialState: (e) => ({
|
|
44372
44378
|
rowSelection: {},
|
|
44373
44379
|
...e
|
|
@@ -44523,10 +44529,10 @@ function cm(e, t, n) {
|
|
|
44523
44529
|
}
|
|
44524
44530
|
}), o ? "all" : s ? "some" : !1;
|
|
44525
44531
|
}
|
|
44526
|
-
const um = /([0-9]+)/gm,
|
|
44532
|
+
const um = /([0-9]+)/gm, t9 = (e, t, n) => ZT(Ko(e.getValue(n)).toLowerCase(), Ko(t.getValue(n)).toLowerCase()), n9 = (e, t, n) => ZT(Ko(e.getValue(n)), Ko(t.getValue(n))), r9 = (e, t, n) => rx(Ko(e.getValue(n)).toLowerCase(), Ko(t.getValue(n)).toLowerCase()), o9 = (e, t, n) => rx(Ko(e.getValue(n)), Ko(t.getValue(n))), s9 = (e, t, n) => {
|
|
44527
44533
|
const r = e.getValue(n), o = t.getValue(n);
|
|
44528
44534
|
return r > o ? 1 : r < o ? -1 : 0;
|
|
44529
|
-
},
|
|
44535
|
+
}, i9 = (e, t, n) => rx(e.getValue(n), t.getValue(n));
|
|
44530
44536
|
function rx(e, t) {
|
|
44531
44537
|
return e === t ? 0 : e > t ? 1 : -1;
|
|
44532
44538
|
}
|
|
@@ -44554,13 +44560,13 @@ function ZT(e, t) {
|
|
|
44554
44560
|
return n.length - r.length;
|
|
44555
44561
|
}
|
|
44556
44562
|
const da = {
|
|
44557
|
-
alphanumeric:
|
|
44558
|
-
alphanumericCaseSensitive:
|
|
44559
|
-
text:
|
|
44560
|
-
textCaseSensitive:
|
|
44561
|
-
datetime:
|
|
44562
|
-
basic:
|
|
44563
|
-
},
|
|
44563
|
+
alphanumeric: t9,
|
|
44564
|
+
alphanumericCaseSensitive: n9,
|
|
44565
|
+
text: r9,
|
|
44566
|
+
textCaseSensitive: o9,
|
|
44567
|
+
datetime: s9,
|
|
44568
|
+
basic: i9
|
|
44569
|
+
}, a9 = {
|
|
44564
44570
|
getInitialState: (e) => ({
|
|
44565
44571
|
sorting: [],
|
|
44566
44572
|
...e
|
|
@@ -44649,7 +44655,7 @@ const da = {
|
|
|
44649
44655
|
e.setSorting(t ? [] : (n = (r = e.initialState) == null ? void 0 : r.sorting) != null ? n : []);
|
|
44650
44656
|
}, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
|
|
44651
44657
|
}
|
|
44652
|
-
},
|
|
44658
|
+
}, l9 = [
|
|
44653
44659
|
M8,
|
|
44654
44660
|
K8,
|
|
44655
44661
|
U8,
|
|
@@ -44660,19 +44666,19 @@ const da = {
|
|
|
44660
44666
|
//depends on ColumnFaceting
|
|
44661
44667
|
X8,
|
|
44662
44668
|
//depends on ColumnFiltering
|
|
44663
|
-
|
|
44669
|
+
a9,
|
|
44664
44670
|
B8,
|
|
44665
44671
|
//depends on RowSorting
|
|
44666
44672
|
Z8,
|
|
44667
44673
|
J8,
|
|
44668
44674
|
Q8,
|
|
44669
|
-
|
|
44675
|
+
e9,
|
|
44670
44676
|
W8
|
|
44671
44677
|
];
|
|
44672
|
-
function
|
|
44678
|
+
function c9(e) {
|
|
44673
44679
|
var t, n;
|
|
44674
44680
|
process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
|
|
44675
|
-
const r = [...
|
|
44681
|
+
const r = [...l9, ...(t = e._features) != null ? t : []];
|
|
44676
44682
|
let o = {
|
|
44677
44683
|
_features: r
|
|
44678
44684
|
};
|
|
@@ -44776,7 +44782,7 @@ function cW(e) {
|
|
|
44776
44782
|
}
|
|
44777
44783
|
return o;
|
|
44778
44784
|
}
|
|
44779
|
-
function
|
|
44785
|
+
function u9() {
|
|
44780
44786
|
return (e) => lt(() => [e.options.data], (t) => {
|
|
44781
44787
|
const n = {
|
|
44782
44788
|
rows: [],
|
|
@@ -44797,7 +44803,7 @@ function uW() {
|
|
|
44797
44803
|
return n.rows = r(t), n;
|
|
44798
44804
|
}, ct(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
|
|
44799
44805
|
}
|
|
44800
|
-
function
|
|
44806
|
+
function d9(e) {
|
|
44801
44807
|
const t = [], n = (r) => {
|
|
44802
44808
|
var o;
|
|
44803
44809
|
t.push(r), (o = r.subRows) != null && o.length && r.getIsExpanded() && r.subRows.forEach(n);
|
|
@@ -44808,10 +44814,10 @@ function dW(e) {
|
|
|
44808
44814
|
rowsById: e.rowsById
|
|
44809
44815
|
};
|
|
44810
44816
|
}
|
|
44811
|
-
function
|
|
44812
|
-
return n.options.filterFromLeafRows ?
|
|
44817
|
+
function f9(e, t, n) {
|
|
44818
|
+
return n.options.filterFromLeafRows ? p9(e, t, n) : h9(e, t, n);
|
|
44813
44819
|
}
|
|
44814
|
-
function
|
|
44820
|
+
function p9(e, t, n) {
|
|
44815
44821
|
var r;
|
|
44816
44822
|
const o = [], s = {}, i = (r = n.options.maxLeafRowFilterDepth) != null ? r : 100, a = function(l, c) {
|
|
44817
44823
|
c === void 0 && (c = 0);
|
|
@@ -44840,7 +44846,7 @@ function pW(e, t, n) {
|
|
|
44840
44846
|
rowsById: s
|
|
44841
44847
|
};
|
|
44842
44848
|
}
|
|
44843
|
-
function
|
|
44849
|
+
function h9(e, t, n) {
|
|
44844
44850
|
var r;
|
|
44845
44851
|
const o = [], s = {}, i = (r = n.options.maxLeafRowFilterDepth) != null ? r : 100, a = function(l, c) {
|
|
44846
44852
|
c === void 0 && (c = 0);
|
|
@@ -44864,7 +44870,7 @@ function hW(e, t, n) {
|
|
|
44864
44870
|
rowsById: s
|
|
44865
44871
|
};
|
|
44866
44872
|
}
|
|
44867
|
-
function
|
|
44873
|
+
function m9() {
|
|
44868
44874
|
return (e) => lt(() => [e.getPreFilteredRowModel(), e.getState().columnFilters, e.getState().globalFilter], (t, n, r) => {
|
|
44869
44875
|
if (!t.rows.length || !(n != null && n.length) && !r) {
|
|
44870
44876
|
for (let p = 0; p < t.flatRows.length; p++)
|
|
@@ -44928,10 +44934,10 @@ function mW() {
|
|
|
44928
44934
|
return !1;
|
|
44929
44935
|
return !0;
|
|
44930
44936
|
};
|
|
44931
|
-
return
|
|
44937
|
+
return f9(t.rows, f, e);
|
|
44932
44938
|
}, ct(e.options, "debugTable", "getFilteredRowModel", () => e._autoResetPageIndex()));
|
|
44933
44939
|
}
|
|
44934
|
-
function
|
|
44940
|
+
function g9(e) {
|
|
44935
44941
|
return (t) => lt(() => [t.getState().pagination, t.getPrePaginationRowModel(), t.options.paginateExpandedRows ? void 0 : t.getState().expanded], (n, r) => {
|
|
44936
44942
|
if (!r.rows.length)
|
|
44937
44943
|
return r;
|
|
@@ -44951,7 +44957,7 @@ function gW(e) {
|
|
|
44951
44957
|
rows: i,
|
|
44952
44958
|
flatRows: a,
|
|
44953
44959
|
rowsById: l
|
|
44954
|
-
} : f =
|
|
44960
|
+
} : f = d9({
|
|
44955
44961
|
rows: i,
|
|
44956
44962
|
flatRows: a,
|
|
44957
44963
|
rowsById: l
|
|
@@ -44962,7 +44968,7 @@ function gW(e) {
|
|
|
44962
44968
|
return f.rows.forEach(p), f;
|
|
44963
44969
|
}, ct(t.options, "debugTable", "getPaginationRowModel"));
|
|
44964
44970
|
}
|
|
44965
|
-
function
|
|
44971
|
+
function b9() {
|
|
44966
44972
|
return (e) => lt(() => [e.getState().sorting, e.getPreSortedRowModel()], (t, n) => {
|
|
44967
44973
|
if (!n.rows.length || !(t != null && t.length))
|
|
44968
44974
|
return n;
|
|
@@ -45012,21 +45018,21 @@ function bW() {
|
|
|
45012
45018
|
}, ct(e.options, "debugTable", "getSortedRowModel", () => e._autoResetPageIndex()));
|
|
45013
45019
|
}
|
|
45014
45020
|
function Dc(e, t) {
|
|
45015
|
-
return e ?
|
|
45021
|
+
return e ? v9(e) ? /* @__PURE__ */ k.createElement(e, t) : e : null;
|
|
45016
45022
|
}
|
|
45017
|
-
function
|
|
45018
|
-
return
|
|
45023
|
+
function v9(e) {
|
|
45024
|
+
return x9(e) || typeof e == "function" || y9(e);
|
|
45019
45025
|
}
|
|
45020
|
-
function
|
|
45026
|
+
function x9(e) {
|
|
45021
45027
|
return typeof e == "function" && (() => {
|
|
45022
45028
|
const t = Object.getPrototypeOf(e);
|
|
45023
45029
|
return t.prototype && t.prototype.isReactComponent;
|
|
45024
45030
|
})();
|
|
45025
45031
|
}
|
|
45026
|
-
function
|
|
45032
|
+
function y9(e) {
|
|
45027
45033
|
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
|
|
45028
45034
|
}
|
|
45029
|
-
function
|
|
45035
|
+
function w9(e) {
|
|
45030
45036
|
const t = {
|
|
45031
45037
|
state: {},
|
|
45032
45038
|
// Dummy state
|
|
@@ -45036,7 +45042,7 @@ function wW(e) {
|
|
|
45036
45042
|
renderFallbackValue: null,
|
|
45037
45043
|
...e
|
|
45038
45044
|
}, [n] = k.useState(() => ({
|
|
45039
|
-
current:
|
|
45045
|
+
current: c9(t)
|
|
45040
45046
|
})), [r, o] = k.useState(() => n.current.initialState);
|
|
45041
45047
|
return n.current.setOptions((s) => ({
|
|
45042
45048
|
...s,
|
|
@@ -45052,7 +45058,7 @@ function wW(e) {
|
|
|
45052
45058
|
}
|
|
45053
45059
|
})), n.current;
|
|
45054
45060
|
}
|
|
45055
|
-
const
|
|
45061
|
+
const k9 = (e) => /* @__PURE__ */ u("span", { className: "font-semibold text-accent-text", children: e }), C9 = [10, 25, 50, 100], d1 = {
|
|
45056
45062
|
comfortable: "h-16",
|
|
45057
45063
|
cozy: "h-[3.25rem]",
|
|
45058
45064
|
compact: "h-11"
|
|
@@ -45061,7 +45067,7 @@ const kW = (e) => /* @__PURE__ */ u("span", { className: "font-semibold text-acc
|
|
|
45061
45067
|
cozy: "px-4 text-sm",
|
|
45062
45068
|
compact: "px-3 text-xs"
|
|
45063
45069
|
};
|
|
45064
|
-
function
|
|
45070
|
+
function S9(e, t) {
|
|
45065
45071
|
const n = [];
|
|
45066
45072
|
for (let r = 0; r < e.length; ) {
|
|
45067
45073
|
const o = Math.max(1, Math.min(t(e[r].column.id) ?? 1, e.length - r));
|
|
@@ -45120,25 +45126,25 @@ function Of({
|
|
|
45120
45126
|
}
|
|
45121
45127
|
) })
|
|
45122
45128
|
)
|
|
45123
|
-
}, ...t] : t, [t, r, y, w]), P =
|
|
45129
|
+
}, ...t] : t, [t, r, y, w]), P = w9({
|
|
45124
45130
|
data: e,
|
|
45125
45131
|
columns: D,
|
|
45126
45132
|
state: N ? { sorting: C, rowSelection: R, pagination: I } : { sorting: C, rowSelection: R },
|
|
45127
45133
|
onSortingChange: S,
|
|
45128
45134
|
onRowSelectionChange: E,
|
|
45129
45135
|
enableRowSelection: r,
|
|
45130
|
-
getCoreRowModel:
|
|
45131
|
-
getSortedRowModel:
|
|
45132
|
-
getFilteredRowModel:
|
|
45136
|
+
getCoreRowModel: u9(),
|
|
45137
|
+
getSortedRowModel: b9(),
|
|
45138
|
+
getFilteredRowModel: m9(),
|
|
45133
45139
|
/* CONDITIONAL ON PURPOSE. TanStack paginates whenever this row model is
|
|
45134
45140
|
registered — there is no "register it but leave it off". Registering it
|
|
45135
45141
|
unconditionally would silently truncate every existing table that never
|
|
45136
45142
|
asked for pages, which is exactly the regression `pageSize` being
|
|
45137
45143
|
opt-in is meant to prevent. */
|
|
45138
|
-
...N ? { getPaginationRowModel:
|
|
45144
|
+
...N ? { getPaginationRowModel: g9(), onPaginationChange: A } : {},
|
|
45139
45145
|
...v ? { getRowId: v } : {}
|
|
45140
45146
|
}), T = P.getRowModel().rows, $ = !i && T.length === 0, L = D.length, F = P.getFilteredRowModel().rows.length, _ = P.getAllLeafColumns().some((V) => V.columnDef.footer !== void 0), z = Array.from(
|
|
45141
|
-
/* @__PURE__ */ new Set([...d ??
|
|
45147
|
+
/* @__PURE__ */ new Set([...d ?? C9, I.pageSize])
|
|
45142
45148
|
).sort((V, U) => V - U);
|
|
45143
45149
|
function O(V) {
|
|
45144
45150
|
A({ pageIndex: 0, pageSize: V }), f?.(V);
|
|
@@ -45239,7 +45245,7 @@ function Of({
|
|
|
45239
45245
|
it — see the prop's own doc for what that costs. */
|
|
45240
45246
|
h?.(V.original, V.index)
|
|
45241
45247
|
),
|
|
45242
|
-
children:
|
|
45248
|
+
children: S9(V.getVisibleCells(), (B) => g?.(V.original, B)).map(
|
|
45243
45249
|
({ cell: B, span: j }) => /* @__PURE__ */ u(
|
|
45244
45250
|
"td",
|
|
45245
45251
|
{
|
|
@@ -45281,7 +45287,7 @@ function Of({
|
|
|
45281
45287
|
)
|
|
45282
45288
|
}
|
|
45283
45289
|
),
|
|
45284
|
-
r && Object.keys(R).length > 0 && /* @__PURE__ */ u("p", { className: "text-xs text-secondary animate-fade-in", "aria-live": "polite", children: y.selectedCount(P.getSelectedRowModel().rows.length, w(P.getSelectedRowModel().rows.length), w(F),
|
|
45290
|
+
r && Object.keys(R).length > 0 && /* @__PURE__ */ u("p", { className: "text-xs text-secondary animate-fade-in", "aria-live": "polite", children: y.selectedCount(P.getSelectedRowModel().rows.length, w(P.getSelectedRowModel().rows.length), w(F), k9) }),
|
|
45285
45291
|
N && !i && F > 0 && /* @__PURE__ */ u(
|
|
45286
45292
|
bG,
|
|
45287
45293
|
{
|
|
@@ -45336,24 +45342,24 @@ const f1 = ht({
|
|
|
45336
45342
|
gap: "bg-surface-inset text-tertiary italic"
|
|
45337
45343
|
}
|
|
45338
45344
|
}
|
|
45339
|
-
}),
|
|
45345
|
+
}), E9 = {
|
|
45340
45346
|
unchanged: " ",
|
|
45341
45347
|
removed: "−",
|
|
45342
45348
|
added: "+"
|
|
45343
45349
|
};
|
|
45344
45350
|
function yte({ before: e, after: t, label: n, context: r, className: o }) {
|
|
45345
|
-
const s = he().lineDiff, i = zt(), a =
|
|
45351
|
+
const s = he().lineDiff, i = zt(), a = N9(R9(p1(e), p1(t)), r);
|
|
45346
45352
|
return /* @__PURE__ */ u("div", { role: "group", "aria-label": n, "data-slot": "line-diff", className: H("flex flex-col", o), children: a.map(
|
|
45347
45353
|
(l, c) => l.kind === "gap" ? /* @__PURE__ */ M("div", { "data-slot": "line-diff-gap", className: f1({ kind: "gap" }), children: [
|
|
45348
45354
|
/* @__PURE__ */ u("span", { "aria-hidden": !0, className: "select-none opacity-60", children: "⋯" }),
|
|
45349
45355
|
/* @__PURE__ */ u("span", { children: s.unchangedLines(l.hidden, i(l.hidden)) })
|
|
45350
45356
|
] }, c) : /* @__PURE__ */ M("div", { className: f1({ kind: l.kind }), children: [
|
|
45351
|
-
/* @__PURE__ */ u("span", { "aria-hidden": !0, className: "select-none opacity-60", children:
|
|
45357
|
+
/* @__PURE__ */ u("span", { "aria-hidden": !0, className: "select-none opacity-60", children: E9[l.kind] }),
|
|
45352
45358
|
/* @__PURE__ */ u("span", { children: l.text.length === 0 ? " " : l.text })
|
|
45353
45359
|
] }, c)
|
|
45354
45360
|
) });
|
|
45355
45361
|
}
|
|
45356
|
-
function
|
|
45362
|
+
function N9(e, t) {
|
|
45357
45363
|
if (t === void 0) return e;
|
|
45358
45364
|
const n = e.map(() => !1);
|
|
45359
45365
|
e.forEach((s, i) => {
|
|
@@ -45370,7 +45376,7 @@ function p1(e) {
|
|
|
45370
45376
|
return e.length === 0 ? [] : e.split(`
|
|
45371
45377
|
`);
|
|
45372
45378
|
}
|
|
45373
|
-
function
|
|
45379
|
+
function R9(e, t) {
|
|
45374
45380
|
const n = e.length, r = t.length, o = Array.from({ length: n + 1 }, () => new Array(r + 1).fill(0));
|
|
45375
45381
|
for (let l = n - 1; l >= 0; l--)
|
|
45376
45382
|
for (let c = r - 1; c >= 0; c--)
|
|
@@ -45385,7 +45391,7 @@ function RW(e, t) {
|
|
|
45385
45391
|
s.push({ kind: "added", text: t[a] }), a++;
|
|
45386
45392
|
return s;
|
|
45387
45393
|
}
|
|
45388
|
-
const
|
|
45394
|
+
const I9 = {
|
|
45389
45395
|
neutral: "border-border bg-surface-raised text-secondary",
|
|
45390
45396
|
accent: "border-accent-border bg-accent-subtle text-accent-text",
|
|
45391
45397
|
success: "border-success-border bg-success-subtle text-success-text",
|
|
@@ -45393,7 +45399,7 @@ const IW = {
|
|
|
45393
45399
|
danger: "border-danger-border bg-danger-subtle text-danger-text",
|
|
45394
45400
|
info: "border-info-border bg-info-subtle text-info-text",
|
|
45395
45401
|
muted: "border-muted-border bg-muted-subtle text-muted-text"
|
|
45396
|
-
},
|
|
45402
|
+
}, M9 = "border-dashed border-muted-border bg-surface text-muted-text", T9 = {
|
|
45397
45403
|
neutral: "text-secondary",
|
|
45398
45404
|
accent: "text-accent-text",
|
|
45399
45405
|
success: "text-success-text",
|
|
@@ -45401,13 +45407,13 @@ const IW = {
|
|
|
45401
45407
|
danger: "text-danger-text",
|
|
45402
45408
|
info: "text-info-text",
|
|
45403
45409
|
muted: "text-muted-text"
|
|
45404
|
-
},
|
|
45410
|
+
}, P9 = {
|
|
45405
45411
|
sm: { chip: "size-5", overlap: "-ml-1.5", badge: "size-2.5", glyph: "xs" },
|
|
45406
45412
|
md: { chip: "size-6", overlap: "-ml-2", badge: "size-3", glyph: "sm" },
|
|
45407
45413
|
lg: { chip: "size-7", overlap: "-ml-2.5", badge: "size-3.5", glyph: "sm" }
|
|
45408
45414
|
};
|
|
45409
45415
|
function wte({ items: e, label: t, size: n = "md", className: r, ref: o, ...s }) {
|
|
45410
|
-
const i =
|
|
45416
|
+
const i = P9[n];
|
|
45411
45417
|
return /* @__PURE__ */ u(
|
|
45412
45418
|
"span",
|
|
45413
45419
|
{
|
|
@@ -45425,7 +45431,7 @@ function wte({ items: e, label: t, size: n = "md", className: r, ref: o, ...s })
|
|
|
45425
45431
|
"transition-[var(--tx-colors)] duration-(--dur-fast)",
|
|
45426
45432
|
i.chip,
|
|
45427
45433
|
l > 0 && i.overlap,
|
|
45428
|
-
a.empty ?
|
|
45434
|
+
a.empty ? M9 : I9[a.tone ?? "neutral"]
|
|
45429
45435
|
),
|
|
45430
45436
|
children: [
|
|
45431
45437
|
/* @__PURE__ */ u(ue, { name: a.icon, size: i.glyph }),
|
|
@@ -45435,7 +45441,7 @@ function wte({ items: e, label: t, size: n = "md", className: r, ref: o, ...s })
|
|
|
45435
45441
|
className: H(
|
|
45436
45442
|
"absolute -right-1 -bottom-1 grid place-items-center rounded-full bg-surface ring-1 ring-surface",
|
|
45437
45443
|
i.badge,
|
|
45438
|
-
|
|
45444
|
+
T9[a.badge.tone ?? "neutral"]
|
|
45439
45445
|
),
|
|
45440
45446
|
children: /* @__PURE__ */ u(ue, { name: a.badge.icon, className: "size-full" })
|
|
45441
45447
|
}
|
|
@@ -45447,7 +45453,7 @@ function wte({ items: e, label: t, size: n = "md", className: r, ref: o, ...s })
|
|
|
45447
45453
|
}
|
|
45448
45454
|
);
|
|
45449
45455
|
}
|
|
45450
|
-
const dm = "danx-design:appearance", Gu = "danx-design:ready", Wu = "danx-design:error",
|
|
45456
|
+
const dm = "danx-design:appearance", Gu = "danx-design:ready", Wu = "danx-design:error", O9 = 500, Fl = {
|
|
45451
45457
|
theme: "theme",
|
|
45452
45458
|
contrast: "contrast",
|
|
45453
45459
|
uiScale: "ui-scale",
|
|
@@ -45469,7 +45475,7 @@ function h1(e) {
|
|
|
45469
45475
|
}
|
|
45470
45476
|
return t;
|
|
45471
45477
|
}
|
|
45472
|
-
function
|
|
45478
|
+
function A9(e) {
|
|
45473
45479
|
if (!e2(e) || e.type !== dm) return null;
|
|
45474
45480
|
const t = { type: dm };
|
|
45475
45481
|
for (const n of QT) {
|
|
@@ -45481,41 +45487,41 @@ function AW(e) {
|
|
|
45481
45487
|
}
|
|
45482
45488
|
return t;
|
|
45483
45489
|
}
|
|
45484
|
-
function
|
|
45490
|
+
function D9(e) {
|
|
45485
45491
|
return e2(e) ? e.type === Gu ? { type: Gu } : e.type === Wu && typeof e.message == "string" ? { type: Wu, message: e.message } : null : null;
|
|
45486
45492
|
}
|
|
45487
45493
|
const t2 = "default-src 'none'; script-src 'unsafe-inline'; style-src 'unsafe-inline'; img-src data: blob:; font-src data:; media-src data: blob:; connect-src 'none'; form-action 'none'; base-uri 'none'";
|
|
45488
|
-
function
|
|
45494
|
+
function _9(e) {
|
|
45489
45495
|
const t = e.createElement("meta");
|
|
45490
45496
|
return t.setAttribute("http-equiv", "Content-Security-Policy"), t.setAttribute("content", t2), t;
|
|
45491
45497
|
}
|
|
45492
|
-
const $
|
|
45498
|
+
const $9 = tv.map(
|
|
45493
45499
|
(e) => `:root[data-theme="${e}"]{color-scheme:${e}}`
|
|
45494
45500
|
).join("");
|
|
45495
|
-
function
|
|
45501
|
+
function L9(e) {
|
|
45496
45502
|
const t = e.createElement("style");
|
|
45497
|
-
return t.textContent = $
|
|
45503
|
+
return t.textContent = $9, t;
|
|
45498
45504
|
}
|
|
45499
|
-
function
|
|
45505
|
+
function F9(e) {
|
|
45500
45506
|
return (e.doctype ? new XMLSerializer().serializeToString(e.doctype) : "") + e.documentElement.outerHTML;
|
|
45501
45507
|
}
|
|
45502
|
-
function
|
|
45508
|
+
function V9(e, t) {
|
|
45503
45509
|
if (typeof e != "string" || e.trim() === "")
|
|
45504
45510
|
throw new Error("SandboxedFrame: html must be a non-empty string");
|
|
45505
45511
|
const n = new DOMParser().parseFromString(e, "text/html");
|
|
45506
|
-
n.head.prepend(
|
|
45512
|
+
n.head.prepend(L9(n)), n.head.prepend(_9(n));
|
|
45507
45513
|
for (const [s, i] of Object.entries(Fl)) {
|
|
45508
45514
|
const a = t[s];
|
|
45509
45515
|
a !== void 0 && n.documentElement.setAttribute(`data-${i}`, a);
|
|
45510
45516
|
}
|
|
45511
|
-
const r =
|
|
45517
|
+
const r = F9(n), o = new DOMParser().parseFromString(r, "text/html").head.firstElementChild;
|
|
45512
45518
|
if (!o || o.tagName !== "META" || o.getAttribute("http-equiv") !== "Content-Security-Policy" || o.getAttribute("content") !== t2)
|
|
45513
45519
|
throw new Error(
|
|
45514
45520
|
"SandboxedFrame: the Content-Security-Policy was not first in the document head; refusing to render"
|
|
45515
45521
|
);
|
|
45516
45522
|
return r;
|
|
45517
45523
|
}
|
|
45518
|
-
const Gp = { colorScheme: "normal" },
|
|
45524
|
+
const Gp = { colorScheme: "normal" }, z9 = Object.values(Fl).map((e) => `data-${e}`);
|
|
45519
45525
|
function kte({
|
|
45520
45526
|
html: e,
|
|
45521
45527
|
title: t,
|
|
@@ -45527,7 +45533,7 @@ function kte({
|
|
|
45527
45533
|
}) {
|
|
45528
45534
|
const a = xe(null), l = xe(null), c = xe({ onReady: o, onError: s });
|
|
45529
45535
|
c.current = { onReady: o, onError: s };
|
|
45530
|
-
const d = Oe(() =>
|
|
45536
|
+
const d = Oe(() => V9(e, h1(document.documentElement)), [e]), f = () => {
|
|
45531
45537
|
const g = a.current?.contentWindow;
|
|
45532
45538
|
if (!g) return;
|
|
45533
45539
|
const b = {
|
|
@@ -45541,12 +45547,12 @@ function kte({
|
|
|
45541
45547
|
if (!g) return;
|
|
45542
45548
|
const b = (v) => {
|
|
45543
45549
|
if (v.source !== g.contentWindow) return;
|
|
45544
|
-
const y =
|
|
45545
|
-
y && (y.type === Gu ? (f(), c.current.onReady?.()) : y.type === Wu && c.current.onError?.(y.message.slice(0,
|
|
45550
|
+
const y = D9(v.data);
|
|
45551
|
+
y && (y.type === Gu ? (f(), c.current.onReady?.()) : y.type === Wu && c.current.onError?.(y.message.slice(0, O9)));
|
|
45546
45552
|
};
|
|
45547
45553
|
window.addEventListener("message", b), g.addEventListener("load", f);
|
|
45548
45554
|
const x = new MutationObserver(f);
|
|
45549
|
-
return x.observe(document.documentElement, { attributes: !0, attributeFilter:
|
|
45555
|
+
return x.observe(document.documentElement, { attributes: !0, attributeFilter: z9 }), () => {
|
|
45550
45556
|
window.removeEventListener("message", b), g.removeEventListener("load", f), x.disconnect();
|
|
45551
45557
|
};
|
|
45552
45558
|
}, []), Qt(() => {
|
|
@@ -45602,10 +45608,10 @@ function kte({
|
|
|
45602
45608
|
}
|
|
45603
45609
|
) });
|
|
45604
45610
|
}
|
|
45605
|
-
function
|
|
45611
|
+
function B9(e) {
|
|
45606
45612
|
const t = (n) => {
|
|
45607
45613
|
if (n.source !== window.parent) return;
|
|
45608
|
-
const r =
|
|
45614
|
+
const r = A9(n.data);
|
|
45609
45615
|
if (!r) return;
|
|
45610
45616
|
const o = {};
|
|
45611
45617
|
for (const [s, i] of Object.entries(Fl)) {
|
|
@@ -45616,16 +45622,16 @@ function BW(e) {
|
|
|
45616
45622
|
};
|
|
45617
45623
|
return window.addEventListener("message", t), () => window.removeEventListener("message", t);
|
|
45618
45624
|
}
|
|
45619
|
-
function
|
|
45625
|
+
function H9() {
|
|
45620
45626
|
const e = { type: Gu };
|
|
45621
45627
|
window.parent.postMessage(e, "*");
|
|
45622
45628
|
}
|
|
45623
|
-
function
|
|
45629
|
+
function U9(e) {
|
|
45624
45630
|
const t = { type: Wu, message: String(e) };
|
|
45625
45631
|
window.parent.postMessage(t, "*");
|
|
45626
45632
|
}
|
|
45627
|
-
const Cte = { onAppearance:
|
|
45628
|
-
function
|
|
45633
|
+
const Cte = { onAppearance: B9, ready: H9, reportError: U9 };
|
|
45634
|
+
function j9(e, t) {
|
|
45629
45635
|
const n = [];
|
|
45630
45636
|
for (const o of e)
|
|
45631
45637
|
n.push({
|
|
@@ -45647,7 +45653,7 @@ function jW(e, t) {
|
|
|
45647
45653
|
});
|
|
45648
45654
|
return { items: n, containers: r };
|
|
45649
45655
|
}
|
|
45650
|
-
function
|
|
45656
|
+
function G9(e, t) {
|
|
45651
45657
|
return t.x >= e.left && t.x <= e.right && t.y >= e.top && t.y <= e.bottom;
|
|
45652
45658
|
}
|
|
45653
45659
|
function qu(e) {
|
|
@@ -45656,17 +45662,17 @@ function qu(e) {
|
|
|
45656
45662
|
function n2(e, t) {
|
|
45657
45663
|
let n = null;
|
|
45658
45664
|
for (const r of e.containers)
|
|
45659
|
-
|
|
45665
|
+
G9(r.rect, t) && (!n || qu(r.rect) < qu(n.rect)) && (n = r);
|
|
45660
45666
|
return n;
|
|
45661
45667
|
}
|
|
45662
|
-
function
|
|
45668
|
+
function W9(e, t) {
|
|
45663
45669
|
const n = Math.max(e.left - t.x, 0, t.x - e.right), r = Math.max(e.top - t.y, 0, t.y - e.bottom);
|
|
45664
45670
|
return Math.hypot(n, r);
|
|
45665
45671
|
}
|
|
45666
|
-
function
|
|
45672
|
+
function q9(e, t) {
|
|
45667
45673
|
let n = null, r = 1 / 0;
|
|
45668
45674
|
for (const o of e.containers) {
|
|
45669
|
-
const s =
|
|
45675
|
+
const s = W9(o.rect, t);
|
|
45670
45676
|
s > r + 1e-3 || (s < r - 1e-3 || n === null || qu(o.rect) < qu(n.rect)) && (n = o, r = s);
|
|
45671
45677
|
}
|
|
45672
45678
|
return n;
|
|
@@ -45676,7 +45682,7 @@ function eu(e, t, n) {
|
|
|
45676
45682
|
(r) => r.container === t && r.id !== n
|
|
45677
45683
|
);
|
|
45678
45684
|
}
|
|
45679
|
-
function
|
|
45685
|
+
function K9(e, t, n, r) {
|
|
45680
45686
|
const o = eu(e, t.id, r), s = t.axis === "x" ? n.x : n.y;
|
|
45681
45687
|
for (let i = 0; i < o.length; i++) {
|
|
45682
45688
|
const a = o[i].rect, l = t.axis === "x" ? a.left + a.width / 2 : a.top + a.height / 2;
|
|
@@ -45685,8 +45691,8 @@ function KW(e, t, n, r) {
|
|
|
45685
45691
|
return o.length;
|
|
45686
45692
|
}
|
|
45687
45693
|
function Wp(e, t, n) {
|
|
45688
|
-
const r = n2(e, t) ??
|
|
45689
|
-
return r ? { container: r.id, index:
|
|
45694
|
+
const r = n2(e, t) ?? q9(e, t);
|
|
45695
|
+
return r ? { container: r.id, index: K9(e, r, t, n) } : null;
|
|
45690
45696
|
}
|
|
45691
45697
|
function fm(e, t) {
|
|
45692
45698
|
return e === t ? !0 : !e || !t ? !1 : e.container === t.container && e.index === t.index;
|
|
@@ -45704,7 +45710,7 @@ function Vl(e, t, n) {
|
|
|
45704
45710
|
function s2(e, t) {
|
|
45705
45711
|
return e.phase !== "dragging" || e.over?.container !== t ? null : e.from?.container === t ? "own" : "other";
|
|
45706
45712
|
}
|
|
45707
|
-
function
|
|
45713
|
+
function Y9(e, t) {
|
|
45708
45714
|
const n = e.getBoundingClientRect();
|
|
45709
45715
|
return { x: t.x - n.left, y: t.y - n.top };
|
|
45710
45716
|
}
|
|
@@ -45717,7 +45723,7 @@ const fa = {
|
|
|
45717
45723
|
point: null,
|
|
45718
45724
|
grab: null
|
|
45719
45725
|
};
|
|
45720
|
-
class
|
|
45726
|
+
class X9 {
|
|
45721
45727
|
state = fa;
|
|
45722
45728
|
listeners = /* @__PURE__ */ new Set();
|
|
45723
45729
|
items = /* @__PURE__ */ new Map();
|
|
@@ -45815,7 +45821,7 @@ class XW {
|
|
|
45815
45821
|
* in flight without the drag having caused it.
|
|
45816
45822
|
*/
|
|
45817
45823
|
remeasure() {
|
|
45818
|
-
return this.layout =
|
|
45824
|
+
return this.layout = j9(this.items.values(), this.containers.values()), this.layout;
|
|
45819
45825
|
}
|
|
45820
45826
|
getLayout() {
|
|
45821
45827
|
return this.layout;
|
|
@@ -45840,7 +45846,7 @@ class XW {
|
|
|
45840
45846
|
answer was 17.0,28.0, putting the clone ~8px left and ~14px above the
|
|
45841
45847
|
card. The session is the only place that holds the item's registered
|
|
45842
45848
|
element, so it is the only place that can be right. */
|
|
45843
|
-
grab: t.point ?
|
|
45849
|
+
grab: t.point ? Y9(n.element, t.point) : null
|
|
45844
45850
|
}), t.pending || this.fan("onDragStart", { id: t.id, from: r, mode: t.mode }), !0;
|
|
45845
45851
|
}
|
|
45846
45852
|
/** Promote a `pending` pointer into a real drag once its constraint is met. */
|
|
@@ -45946,7 +45952,7 @@ class XW {
|
|
|
45946
45952
|
return eu(n, t, this.state.id).length;
|
|
45947
45953
|
}
|
|
45948
45954
|
}
|
|
45949
|
-
const
|
|
45955
|
+
const Z9 = {
|
|
45950
45956
|
/* 5px is below the travel of a deliberate click on every pointing device
|
|
45951
45957
|
tested by the platforms that publish a figure, and above the jitter of a
|
|
45952
45958
|
hand resting on a trackpad. */
|
|
@@ -45960,7 +45966,7 @@ const ZW = {
|
|
|
45960
45966
|
tolerance: 8
|
|
45961
45967
|
};
|
|
45962
45968
|
function el(e, t, n = {}) {
|
|
45963
|
-
const r = { ...
|
|
45969
|
+
const r = { ...Z9, ...n.activation };
|
|
45964
45970
|
let o = null, s = null, i = null, a = null, l = !1;
|
|
45965
45971
|
const c = (S) => ({ x: S.clientX, y: S.clientY });
|
|
45966
45972
|
function d() {
|
|
@@ -46027,7 +46033,7 @@ function el(e, t, n = {}) {
|
|
|
46027
46033
|
g(), e.removeEventListener("pointerdown", v);
|
|
46028
46034
|
};
|
|
46029
46035
|
}
|
|
46030
|
-
function
|
|
46036
|
+
function J9(e, t, n) {
|
|
46031
46037
|
return el(
|
|
46032
46038
|
t,
|
|
46033
46039
|
{
|
|
@@ -46042,7 +46048,7 @@ function JW(e, t, n) {
|
|
|
46042
46048
|
{ activation: n.activation }
|
|
46043
46049
|
);
|
|
46044
46050
|
}
|
|
46045
|
-
function
|
|
46051
|
+
function Q9(e) {
|
|
46046
46052
|
function t(r) {
|
|
46047
46053
|
r.key === "Escape" && e.getState().phase !== "idle" && (r.preventDefault(), e.cancel());
|
|
46048
46054
|
}
|
|
@@ -46053,14 +46059,14 @@ function QW(e) {
|
|
|
46053
46059
|
window.removeEventListener("keydown", t), window.removeEventListener("scroll", n, !0), window.removeEventListener("resize", n);
|
|
46054
46060
|
};
|
|
46055
46061
|
}
|
|
46056
|
-
const
|
|
46062
|
+
const e7 = {
|
|
46057
46063
|
y: { ArrowUp: -1, ArrowDown: 1 },
|
|
46058
46064
|
x: { ArrowLeft: -1, ArrowRight: 1 }
|
|
46059
|
-
},
|
|
46065
|
+
}, t7 = {
|
|
46060
46066
|
y: { ArrowLeft: -1, ArrowRight: 1 },
|
|
46061
46067
|
x: { ArrowUp: -1, ArrowDown: 1 }
|
|
46062
46068
|
};
|
|
46063
|
-
function
|
|
46069
|
+
function n7(e, t, n) {
|
|
46064
46070
|
const r = n.axis ?? "y";
|
|
46065
46071
|
function o() {
|
|
46066
46072
|
const a = e.getState();
|
|
@@ -46079,12 +46085,12 @@ function n9(e, t, n) {
|
|
|
46079
46085
|
return;
|
|
46080
46086
|
}
|
|
46081
46087
|
if (!o()) return;
|
|
46082
|
-
const l =
|
|
46088
|
+
const l = e7[r][a.key];
|
|
46083
46089
|
if (l !== void 0) {
|
|
46084
46090
|
a.preventDefault(), e.moveIndex(l);
|
|
46085
46091
|
return;
|
|
46086
46092
|
}
|
|
46087
|
-
const c =
|
|
46093
|
+
const c = t7[r][a.key];
|
|
46088
46094
|
c !== void 0 && (a.preventDefault(), e.moveContainer(c));
|
|
46089
46095
|
}
|
|
46090
46096
|
function i(a) {
|
|
@@ -46096,12 +46102,12 @@ function n9(e, t, n) {
|
|
|
46096
46102
|
t.removeEventListener("keydown", s), t.removeEventListener("focusout", i);
|
|
46097
46103
|
};
|
|
46098
46104
|
}
|
|
46099
|
-
const
|
|
46105
|
+
const r7 = /^(auto|scroll|overlay)$/;
|
|
46100
46106
|
function i2(e, { axes: t = ["y"], mustOverflow: n = !1 } = {}) {
|
|
46101
46107
|
const r = getComputedStyle(e);
|
|
46102
46108
|
return t.some((o) => {
|
|
46103
46109
|
const s = o === "y" ? r.overflowY : r.overflowX;
|
|
46104
|
-
return
|
|
46110
|
+
return r7.test(s) ? n ? o === "y" ? e.scrollHeight > e.clientHeight : e.scrollWidth > e.clientWidth : !0 : !1;
|
|
46105
46111
|
});
|
|
46106
46112
|
}
|
|
46107
46113
|
function ox(e, { includeSelf: t, ...n }) {
|
|
@@ -46176,7 +46182,7 @@ function sx(e, t = {}) {
|
|
|
46176
46182
|
}
|
|
46177
46183
|
return l = mI() ? n.reducedMaxSpeed : n.maxSpeed, r = requestAnimationFrame(d), c;
|
|
46178
46184
|
}
|
|
46179
|
-
function
|
|
46185
|
+
function o7(e, t = {}) {
|
|
46180
46186
|
function n() {
|
|
46181
46187
|
const i = e.getState();
|
|
46182
46188
|
if (i.phase !== "dragging" || i.mode !== "keyboard" || !i.over || !i.id) return;
|
|
@@ -46224,33 +46230,33 @@ function o9(e, t = {}) {
|
|
|
46224
46230
|
s(), o?.();
|
|
46225
46231
|
};
|
|
46226
46232
|
}
|
|
46227
|
-
const ix = Rn(null),
|
|
46233
|
+
const ix = Rn(null), s7 = ix.Provider;
|
|
46228
46234
|
function Ste(e) {
|
|
46229
46235
|
const t = gn(ix);
|
|
46230
46236
|
if (!t)
|
|
46231
46237
|
throw new Error(`<${e}> must be rendered inside a <DragDrop>.`);
|
|
46232
46238
|
return t;
|
|
46233
46239
|
}
|
|
46234
|
-
function
|
|
46240
|
+
function i7(e) {
|
|
46235
46241
|
const t = xe(null);
|
|
46236
|
-
t.current ??= new
|
|
46242
|
+
t.current ??= new X9(e);
|
|
46237
46243
|
const n = t.current;
|
|
46238
|
-
return n.setCallbacks(e), _e(() =>
|
|
46244
|
+
return n.setCallbacks(e), _e(() => Q9(n), [n]), n;
|
|
46239
46245
|
}
|
|
46240
46246
|
function qi(e) {
|
|
46241
46247
|
return Yn(e.subscribe, e.getState, e.getState);
|
|
46242
46248
|
}
|
|
46243
|
-
const
|
|
46249
|
+
const a7 = () => () => {
|
|
46244
46250
|
};
|
|
46245
|
-
function
|
|
46251
|
+
function l7() {
|
|
46246
46252
|
const e = gn(ix);
|
|
46247
46253
|
return Yn(
|
|
46248
|
-
e ? e.subscribe :
|
|
46254
|
+
e ? e.subscribe : a7,
|
|
46249
46255
|
() => e?.getState().phase === "dragging",
|
|
46250
46256
|
() => !1
|
|
46251
46257
|
);
|
|
46252
46258
|
}
|
|
46253
|
-
function
|
|
46259
|
+
function c7(e, t) {
|
|
46254
46260
|
const { id: n, container: r, index: o, axis: s = "y", disabled: i = !1, activation: a } = t, [l, c] = ne(null), [d, f] = ne(null);
|
|
46255
46261
|
_e(() => {
|
|
46256
46262
|
if (l)
|
|
@@ -46259,10 +46265,10 @@ function c9(e, t) {
|
|
|
46259
46265
|
const p = `${a?.distance ?? ""}/${a?.delay ?? ""}/${a?.tolerance ?? ""}`, h = xe(a);
|
|
46260
46266
|
h.current = a, _e(() => {
|
|
46261
46267
|
if (!d || i) return;
|
|
46262
|
-
const g =
|
|
46268
|
+
const g = J9(e, d, {
|
|
46263
46269
|
id: n,
|
|
46264
46270
|
activation: h.current
|
|
46265
|
-
}), b =
|
|
46271
|
+
}), b = n7(e, d, { id: n, axis: s });
|
|
46266
46272
|
return () => {
|
|
46267
46273
|
g(), b();
|
|
46268
46274
|
};
|
|
@@ -46274,7 +46280,7 @@ function c9(e, t) {
|
|
|
46274
46280
|
isDragging: m.phase === "dragging" && m.id === n
|
|
46275
46281
|
};
|
|
46276
46282
|
}
|
|
46277
|
-
function
|
|
46283
|
+
function u7(e, t) {
|
|
46278
46284
|
const { id: n, axis: r = "y", offset: o, total: s, crossDrop: i } = t, [a, l] = ne(null);
|
|
46279
46285
|
_e(() => {
|
|
46280
46286
|
if (a)
|
|
@@ -46287,7 +46293,7 @@ function u9(e, t) {
|
|
|
46287
46293
|
overIndex: d ? c.over?.index ?? null : null
|
|
46288
46294
|
};
|
|
46289
46295
|
}
|
|
46290
|
-
const c2 = "danxbot-dnd-instructions",
|
|
46296
|
+
const c2 = "danxbot-dnd-instructions", d7 = 150;
|
|
46291
46297
|
function g1(e, t, n) {
|
|
46292
46298
|
return Vl(e.crossDropOf(n.container), t.container, n.container);
|
|
46293
46299
|
}
|
|
@@ -46304,7 +46310,7 @@ function Kp(e, t, n, r, o, s) {
|
|
|
46304
46310
|
totalText: a.format(i.total)
|
|
46305
46311
|
};
|
|
46306
46312
|
}
|
|
46307
|
-
function
|
|
46313
|
+
function f7(e, t = {}) {
|
|
46308
46314
|
const [n, r] = ne(""), o = xe(t);
|
|
46309
46315
|
o.current = t;
|
|
46310
46316
|
const s = he().dragDrop, i = xe(s);
|
|
@@ -46320,7 +46326,7 @@ function f9(e, t = {}) {
|
|
|
46320
46326
|
h(), p.current = Date.now(), r((y) => y === v ? y : v);
|
|
46321
46327
|
}
|
|
46322
46328
|
function g(v) {
|
|
46323
|
-
const y =
|
|
46329
|
+
const y = d7 - (Date.now() - p.current);
|
|
46324
46330
|
if (y <= 0) {
|
|
46325
46331
|
m(v);
|
|
46326
46332
|
return;
|
|
@@ -46377,8 +46383,8 @@ function f9(e, t = {}) {
|
|
|
46377
46383
|
};
|
|
46378
46384
|
}, [e]), { message: n, instructionsId: c2 };
|
|
46379
46385
|
}
|
|
46380
|
-
function
|
|
46381
|
-
const { message: n } =
|
|
46386
|
+
function p7({ session: e, ...t }) {
|
|
46387
|
+
const { message: n } = f7(e, t);
|
|
46382
46388
|
return /* @__PURE__ */ u(
|
|
46383
46389
|
"div",
|
|
46384
46390
|
{
|
|
@@ -46390,11 +46396,11 @@ function p9({ session: e, ...t }) {
|
|
|
46390
46396
|
}
|
|
46391
46397
|
);
|
|
46392
46398
|
}
|
|
46393
|
-
function
|
|
46399
|
+
function h7({ id: e } = {}) {
|
|
46394
46400
|
const t = he().dragDrop;
|
|
46395
46401
|
return /* @__PURE__ */ u("p", { "data-dnd-instructions": "", id: e ?? c2, className: "sr-only", children: t.instructions });
|
|
46396
46402
|
}
|
|
46397
|
-
const u2 = Rn(null), d2 = Rn(null), f2 = Rn(null), p2 = Rn(!1),
|
|
46403
|
+
const u2 = Rn(null), d2 = Rn(null), f2 = Rn(null), p2 = Rn(!1), m7 = u2.Provider, g7 = d2.Provider, b1 = f2.Provider, b7 = p2.Provider;
|
|
46398
46404
|
function h2() {
|
|
46399
46405
|
return gn(p2);
|
|
46400
46406
|
}
|
|
@@ -46647,8 +46653,8 @@ const Gs = ht({
|
|
|
46647
46653
|
}
|
|
46648
46654
|
},
|
|
46649
46655
|
defaultVariants: { axis: "y", mode: "pointer", moving: !1 }
|
|
46650
|
-
}), pm = { x: "left", y: "top" }, g2 = { x: "right", y: "bottom" },
|
|
46651
|
-
function
|
|
46656
|
+
}), pm = { x: "left", y: "top" }, g2 = { x: "right", y: "bottom" }, v7 = { x: "width", y: "height" };
|
|
46657
|
+
function x7(e, t, n) {
|
|
46652
46658
|
const r = v1(e, t, n);
|
|
46653
46659
|
if (r !== null) return r;
|
|
46654
46660
|
for (const o of e.containers) {
|
|
@@ -46666,14 +46672,14 @@ function v1(e, t, n) {
|
|
|
46666
46672
|
}
|
|
46667
46673
|
return null;
|
|
46668
46674
|
}
|
|
46669
|
-
function
|
|
46675
|
+
function y7(e) {
|
|
46670
46676
|
return e.phase !== "dragging" || !e.id || !e.point || !e.grab ? null : { x: e.point.x - e.grab.x, y: e.point.y - e.grab.y };
|
|
46671
46677
|
}
|
|
46672
46678
|
function b2(e, t, n) {
|
|
46673
46679
|
if (t.phase !== "dragging" || !t.id || !t.from || !t.over || !e) return null;
|
|
46674
46680
|
const r = e.containers.find((p) => p.id === n), o = e.items.find((p) => p.id === t.id);
|
|
46675
46681
|
if (!r || !o) return null;
|
|
46676
|
-
const s = r.axis, i = o.rect[
|
|
46682
|
+
const s = r.axis, i = o.rect[v7[s]], a = x7(e, n, s), l = i + a, c = t.from.container === n ? t.from.index : null, d = t.over.container === n && !Vl(r.crossDrop, t.from.container, n) ? t.over.index : null, f = (p) => c !== null && p >= c ? -l : 0;
|
|
46677
46683
|
return {
|
|
46678
46684
|
axis: s,
|
|
46679
46685
|
restCount: e.items.filter(
|
|
@@ -46687,7 +46693,7 @@ function b2(e, t, n) {
|
|
|
46687
46693
|
markerShift: f
|
|
46688
46694
|
};
|
|
46689
46695
|
}
|
|
46690
|
-
function
|
|
46696
|
+
function w7(e, t) {
|
|
46691
46697
|
if (t.phase !== "dragging" || !t.id || !t.over || !e) return null;
|
|
46692
46698
|
const n = t.over.container, r = b2(e, t, n), o = e.containers.find((h) => h.id === n);
|
|
46693
46699
|
if (!r || !o) return null;
|
|
@@ -46712,9 +46718,9 @@ function w9(e, t) {
|
|
|
46712
46718
|
function v2(e, t) {
|
|
46713
46719
|
return { translate: e === "x" ? `${t}px 0` : `0 ${t}px` };
|
|
46714
46720
|
}
|
|
46715
|
-
const
|
|
46721
|
+
const k7 = () => {
|
|
46716
46722
|
};
|
|
46717
|
-
function
|
|
46723
|
+
function C7(e) {
|
|
46718
46724
|
const t = xe([]), n = xe([]), r = xe(null), o = Re(() => {
|
|
46719
46725
|
const i = t.current;
|
|
46720
46726
|
if (i.length === 0) return;
|
|
@@ -46777,11 +46783,11 @@ function ax({
|
|
|
46777
46783
|
children: r,
|
|
46778
46784
|
...o
|
|
46779
46785
|
}) {
|
|
46780
|
-
const s =
|
|
46786
|
+
const s = i7(o), i = C7(o.onDragEnd !== void 0), a = Tt(), l = Gs(), { threshold: c, maxSpeed: d, reducedMaxSpeed: f } = e ?? {}, p = Oe(
|
|
46781
46787
|
() => ({ threshold: c, maxSpeed: d, reducedMaxSpeed: f }),
|
|
46782
46788
|
[c, d, f]
|
|
46783
46789
|
);
|
|
46784
|
-
_e(() =>
|
|
46790
|
+
_e(() => o7(s, p), [s, p]);
|
|
46785
46791
|
const h = xe({
|
|
46786
46792
|
item: /* @__PURE__ */ new Map(),
|
|
46787
46793
|
container: /* @__PURE__ */ new Map()
|
|
@@ -46796,16 +46802,16 @@ function ax({
|
|
|
46796
46802
|
[s, a, t, m, i]
|
|
46797
46803
|
);
|
|
46798
46804
|
return /* @__PURE__ */ M("div", { className: H(l.root(), n), children: [
|
|
46799
|
-
/* @__PURE__ */ u(
|
|
46805
|
+
/* @__PURE__ */ u(h7, { id: a }),
|
|
46800
46806
|
/* @__PURE__ */ u(
|
|
46801
|
-
|
|
46807
|
+
p7,
|
|
46802
46808
|
{
|
|
46803
46809
|
session: s,
|
|
46804
46810
|
labelOf: (b) => h.current.item.get(b) ?? b,
|
|
46805
46811
|
containerLabelOf: (b) => h.current.container.get(b) ?? b
|
|
46806
46812
|
}
|
|
46807
46813
|
),
|
|
46808
|
-
/* @__PURE__ */ u(
|
|
46814
|
+
/* @__PURE__ */ u(s7, { value: s, children: /* @__PURE__ */ u(m7, { value: g, children: r }) })
|
|
46809
46815
|
] });
|
|
46810
46816
|
}
|
|
46811
46817
|
function lx({
|
|
@@ -46818,7 +46824,7 @@ function lx({
|
|
|
46818
46824
|
className: i,
|
|
46819
46825
|
children: a
|
|
46820
46826
|
}) {
|
|
46821
|
-
const { session: l, registerLabel: c } = Ki("DragDropContainer"), { setContainerRef: d, isOver: f } =
|
|
46827
|
+
const { session: l, registerLabel: c } = Ki("DragDropContainer"), { setContainerRef: d, isOver: f } = u7(l, { id: e, axis: n, offset: r, total: o, crossDrop: s }), p = qi(l), h = Gs({ axis: n });
|
|
46822
46828
|
_e(
|
|
46823
46829
|
() => c("container", e, t),
|
|
46824
46830
|
[c, e, t]
|
|
@@ -46831,7 +46837,7 @@ function lx({
|
|
|
46831
46837
|
"data-dnd-container": e,
|
|
46832
46838
|
"data-dnd-over": f ? "true" : void 0,
|
|
46833
46839
|
className: H(h.container(), i),
|
|
46834
|
-
children: /* @__PURE__ */ M(
|
|
46840
|
+
children: /* @__PURE__ */ M(g7, { value: g, children: [
|
|
46835
46841
|
a,
|
|
46836
46842
|
m && m.markerAt !== null && m.restCount === 0 && /* @__PURE__ */ u(w2, { shift: m, at: m.restCount })
|
|
46837
46843
|
] })
|
|
@@ -46845,7 +46851,7 @@ function cx({
|
|
|
46845
46851
|
className: r,
|
|
46846
46852
|
children: o
|
|
46847
46853
|
}) {
|
|
46848
|
-
const { session: s, renderCarried: i, registerLabel: a, census: l } = Ki("DragDropItem"), { id: c, axis: d, shift: f } = Df("DragDropItem"), { setItemRef: p, setHandleRef: h } =
|
|
46854
|
+
const { session: s, renderCarried: i, registerLabel: a, census: l } = Ki("DragDropItem"), { id: c, axis: d, shift: f } = Df("DragDropItem"), { setItemRef: p, setHandleRef: h } = c7(s, {
|
|
46849
46855
|
id: e,
|
|
46850
46856
|
container: c,
|
|
46851
46857
|
index: t,
|
|
@@ -46897,17 +46903,17 @@ function cx({
|
|
|
46897
46903
|
}
|
|
46898
46904
|
),
|
|
46899
46905
|
y && w,
|
|
46900
|
-
g && /* @__PURE__ */ u(
|
|
46906
|
+
g && /* @__PURE__ */ u(S7, { id: e, state: m, layout: s.getLayout(), children: /* @__PURE__ */ u(b1, { value: { id: e, setHandleRef: k7, label: n }, children: i ? i(e) : o }) })
|
|
46901
46907
|
] })
|
|
46902
46908
|
);
|
|
46903
46909
|
}
|
|
46904
|
-
function
|
|
46910
|
+
function S7({
|
|
46905
46911
|
id: e,
|
|
46906
46912
|
state: t,
|
|
46907
46913
|
layout: n,
|
|
46908
46914
|
children: r
|
|
46909
46915
|
}) {
|
|
46910
|
-
const o = t.mode ?? "pointer", s = Gs({ mode: o }), i =
|
|
46916
|
+
const o = t.mode ?? "pointer", s = Gs({ mode: o }), i = y7(t), a = i ? null : w7(n, t), l = i ? { left: i.x, top: i.y, width: n?.items.find((c) => c.id === e)?.rect.width } : a && { left: a.left, top: a.top, width: a.width };
|
|
46911
46917
|
return l ? HO(
|
|
46912
46918
|
/* @__PURE__ */ u(
|
|
46913
46919
|
"div",
|
|
@@ -46916,13 +46922,13 @@ function S9({
|
|
|
46916
46922
|
"aria-hidden": "true",
|
|
46917
46923
|
className: s.overlay(),
|
|
46918
46924
|
style: { translate: `${l.left}px ${l.top}px`, width: l.width },
|
|
46919
|
-
children: /* @__PURE__ */ u(
|
|
46925
|
+
children: /* @__PURE__ */ u(b7, { value: !0, children: r })
|
|
46920
46926
|
}
|
|
46921
46927
|
),
|
|
46922
46928
|
document.body
|
|
46923
46929
|
) : null;
|
|
46924
46930
|
}
|
|
46925
|
-
const
|
|
46931
|
+
const E7 = 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
|
46926
46932
|
function x2({ label: e, className: t, children: n }) {
|
|
46927
46933
|
const { instructionsId: r, census: o } = Ki("DragDropSurface"), { axis: s } = Df("DragDropSurface"), { id: i, setHandleRef: a, label: l } = m2("DragDropSurface"), c = h2();
|
|
46928
46934
|
_e(() => c ? void 0 : o.source(i), [o, i, c]);
|
|
@@ -46934,7 +46940,7 @@ function x2({ label: e, className: t, children: n }) {
|
|
|
46934
46940
|
);
|
|
46935
46941
|
return _e(() => {
|
|
46936
46942
|
if (!f || c) return;
|
|
46937
|
-
const b = f.querySelector(
|
|
46943
|
+
const b = f.querySelector(E7);
|
|
46938
46944
|
if (m(b === null), !b) return;
|
|
46939
46945
|
const x = b.getAttribute("aria-describedby"), v = x ? x.split(/\s+/).filter(Boolean) : [];
|
|
46940
46946
|
if (!v.includes(r))
|
|
@@ -47001,8 +47007,8 @@ function w2({
|
|
|
47001
47007
|
}
|
|
47002
47008
|
);
|
|
47003
47009
|
}
|
|
47004
|
-
const
|
|
47005
|
-
function
|
|
47010
|
+
const N7 = 200, k2 = (e) => ox(e, { includeSelf: !1 });
|
|
47011
|
+
function R7(e) {
|
|
47006
47012
|
const t = e.getBoundingClientRect(), n = k2(e);
|
|
47007
47013
|
if (n === null) {
|
|
47008
47014
|
const i = e.ownerDocument.defaultView;
|
|
@@ -47011,7 +47017,7 @@ function R9(e) {
|
|
|
47011
47017
|
const r = n.getBoundingClientRect(), o = parseFloat(getComputedStyle(n).borderTopWidth) || 0, s = t.top - r.top - o + n.scrollTop;
|
|
47012
47018
|
return n.clientHeight - s;
|
|
47013
47019
|
}
|
|
47014
|
-
function
|
|
47020
|
+
function I7(e = !0) {
|
|
47015
47021
|
const [t, n] = ne(null);
|
|
47016
47022
|
return Qt(() => {
|
|
47017
47023
|
if (t === null) return;
|
|
@@ -47020,8 +47026,8 @@ function I9(e = !0) {
|
|
|
47020
47026
|
t.style.removeProperty("height");
|
|
47021
47027
|
return;
|
|
47022
47028
|
}
|
|
47023
|
-
const i =
|
|
47024
|
-
if (!(i >=
|
|
47029
|
+
const i = R7(t);
|
|
47030
|
+
if (!(i >= N7)) {
|
|
47025
47031
|
t.style.removeProperty("height");
|
|
47026
47032
|
return;
|
|
47027
47033
|
}
|
|
@@ -47050,7 +47056,7 @@ function C2(e, t) {
|
|
|
47050
47056
|
function ux(e, t) {
|
|
47051
47057
|
return (e?.offset ?? 0) + t;
|
|
47052
47058
|
}
|
|
47053
|
-
function
|
|
47059
|
+
function M7(e, t, n) {
|
|
47054
47060
|
const r = /* @__PURE__ */ new Map();
|
|
47055
47061
|
for (const i of t) r.set(i.id, []);
|
|
47056
47062
|
const o = [];
|
|
@@ -47113,7 +47119,7 @@ function Ete(e, t, n) {
|
|
|
47113
47119
|
);
|
|
47114
47120
|
return o < r.length ? { beforeId: n(r[o]) } : o > 0 ? { afterId: n(r[o - 1]) } : {};
|
|
47115
47121
|
}
|
|
47116
|
-
function
|
|
47122
|
+
function T7(e, t, n) {
|
|
47117
47123
|
const { from: r, to: o } = e;
|
|
47118
47124
|
if (r.columnId !== o.columnId) return !1;
|
|
47119
47125
|
if (o.lane) return !0;
|
|
@@ -47125,7 +47131,7 @@ function T9(e, t, n) {
|
|
|
47125
47131
|
const s = ux(t, r.index);
|
|
47126
47132
|
return o.edge === "top" ? s === 0 : s === C2(t, n) - 1;
|
|
47127
47133
|
}
|
|
47128
|
-
function
|
|
47134
|
+
function P7(e, t) {
|
|
47129
47135
|
const { items: n, columns: r, accessors: o, validateMove: s } = e;
|
|
47130
47136
|
if (t.moves.length === 0)
|
|
47131
47137
|
return { verdict: { ok: !0 }, commit: [] };
|
|
@@ -47136,7 +47142,7 @@ function P9(e, t) {
|
|
|
47136
47142
|
const g = o.getColumnId(m);
|
|
47137
47143
|
l.set(g, (l.get(g) ?? 0) + 1);
|
|
47138
47144
|
}
|
|
47139
|
-
const c = new Map(r.map((m) => [m.id, m])), d = (m) =>
|
|
47145
|
+
const c = new Map(r.map((m) => [m.id, m])), d = (m) => T7(m, c.get(m.from.columnId), l.get(m.from.columnId) ?? 0), f = /* @__PURE__ */ new Map();
|
|
47140
47146
|
for (const m of t.moves)
|
|
47141
47147
|
d(m) || f.set(
|
|
47142
47148
|
m.from.columnId,
|
|
@@ -47267,18 +47273,18 @@ function x1(e, t, n) {
|
|
|
47267
47273
|
o.has(s) || (o.add(s), r.push(s));
|
|
47268
47274
|
return r.flatMap((s) => n.get(s) ?? []);
|
|
47269
47275
|
}
|
|
47270
|
-
const
|
|
47276
|
+
const O7 = [];
|
|
47271
47277
|
function E2(e) {
|
|
47272
47278
|
const { items: t, columns: n, accessors: r, validateMove: o, onMove: s, selection: i } = e, a = Oe(
|
|
47273
|
-
() =>
|
|
47279
|
+
() => M7(t, n, r),
|
|
47274
47280
|
[t, n, r]
|
|
47275
47281
|
), l = Re(
|
|
47276
47282
|
(g) => {
|
|
47277
|
-
const b =
|
|
47283
|
+
const b = P7({ items: t, columns: n, accessors: r, validateMove: o }, g);
|
|
47278
47284
|
return b.verdict.ok && b.commit.length > 0 && s({ moves: b.commit, source: g.source }), b.verdict;
|
|
47279
47285
|
},
|
|
47280
47286
|
[t, n, r, o, s]
|
|
47281
|
-
), c = i?.selected, d = i?.onChange, f = c ??
|
|
47287
|
+
), c = i?.selected, d = i?.onChange, f = c ?? O7, p = Re(
|
|
47282
47288
|
(g) => {
|
|
47283
47289
|
d?.(g);
|
|
47284
47290
|
},
|
|
@@ -47456,7 +47462,7 @@ function Rte({
|
|
|
47456
47462
|
className: d,
|
|
47457
47463
|
...f
|
|
47458
47464
|
}) {
|
|
47459
|
-
const p = y1({ fill: c }), h = he(), m = h.kanban, g = h.board, b = xt(), x =
|
|
47465
|
+
const p = y1({ fill: c }), h = he(), m = h.kanban, g = h.board, b = xt(), x = I7(c), [v, y] = ne(null), w = Oe(() => t.flatMap((T) => T.items), [t]), C = Oe(
|
|
47460
47466
|
() => t.map((T) => ({
|
|
47461
47467
|
id: T.id,
|
|
47462
47468
|
label: T.label,
|
|
@@ -47645,21 +47651,21 @@ function Rte({
|
|
|
47645
47651
|
);
|
|
47646
47652
|
}
|
|
47647
47653
|
const N2 = Rn(!1);
|
|
47648
|
-
function
|
|
47654
|
+
function A7() {
|
|
47649
47655
|
return gn(N2);
|
|
47650
47656
|
}
|
|
47651
|
-
const R2 = Rn(null), I2 = Rn(null), M2 = Rn(null),
|
|
47657
|
+
const R2 = Rn(null), I2 = Rn(null), M2 = Rn(null), D7 = R2.Provider, _7 = I2.Provider, $7 = M2.Provider;
|
|
47652
47658
|
function T2(e) {
|
|
47653
47659
|
const t = gn(R2);
|
|
47654
47660
|
if (!t) throw new Error(`<${e}> must be rendered inside a <Board>.`);
|
|
47655
47661
|
return t;
|
|
47656
47662
|
}
|
|
47657
|
-
function
|
|
47663
|
+
function L7(e) {
|
|
47658
47664
|
const t = gn(I2);
|
|
47659
47665
|
if (!t) throw new Error(`<${e}> must be rendered inside a <BoardColumn>.`);
|
|
47660
47666
|
return t;
|
|
47661
47667
|
}
|
|
47662
|
-
function
|
|
47668
|
+
function F7(e) {
|
|
47663
47669
|
const t = gn(M2);
|
|
47664
47670
|
if (!t) throw new Error(`<${e}> must be rendered inside a <BoardCard>.`);
|
|
47665
47671
|
return t;
|
|
@@ -47812,7 +47818,7 @@ function Ite({
|
|
|
47812
47818
|
renderCarried: w,
|
|
47813
47819
|
className: H("flex flex-col gap-3", c),
|
|
47814
47820
|
children: [
|
|
47815
|
-
/* @__PURE__ */ u(
|
|
47821
|
+
/* @__PURE__ */ u(D7, { value: E, children: /* @__PURE__ */ u("div", { className: H("flex min-h-0 flex-1 gap-4", d), children: p(h) }) }),
|
|
47816
47822
|
b && /* @__PURE__ */ M("div", { role: "status", "aria-live": "polite", className: zl().rejection(), children: [
|
|
47817
47823
|
/* @__PURE__ */ u(ue, { name: "triangle-alert", size: "xs" }),
|
|
47818
47824
|
b
|
|
@@ -47849,7 +47855,7 @@ function Tte({
|
|
|
47849
47855
|
className: l.empty()
|
|
47850
47856
|
}
|
|
47851
47857
|
), m = /* @__PURE__ */ u(
|
|
47852
|
-
|
|
47858
|
+
U7,
|
|
47853
47859
|
{
|
|
47854
47860
|
count: e.counting ? null : e.count,
|
|
47855
47861
|
wipLimit: e.wipLimit,
|
|
@@ -47874,8 +47880,8 @@ function Tte({
|
|
|
47874
47880
|
] })
|
|
47875
47881
|
] }),
|
|
47876
47882
|
/* @__PURE__ */ M("div", { className: "relative flex min-h-0 flex-1 flex-col", children: [
|
|
47877
|
-
e.reorderLocked !== void 0 && /* @__PURE__ */ u(
|
|
47878
|
-
p === "lane" && /* @__PURE__ */ u(
|
|
47883
|
+
e.reorderLocked !== void 0 && /* @__PURE__ */ u(z7, { columnId: e.id, message: e.reorderLocked }),
|
|
47884
|
+
p === "lane" && /* @__PURE__ */ u(B7, { columnId: e.id }),
|
|
47879
47885
|
/* @__PURE__ */ u("div", { role: "list", "aria-label": e.label, className: l.list(), children: /* @__PURE__ */ u(
|
|
47880
47886
|
lx,
|
|
47881
47887
|
{
|
|
@@ -47886,8 +47892,8 @@ function Tte({
|
|
|
47886
47892
|
total: e.counting ? void 0 : e.count,
|
|
47887
47893
|
crossDrop: p,
|
|
47888
47894
|
className: H("min-h-24 flex-1 p-2", r),
|
|
47889
|
-
children: /* @__PURE__ */ u(
|
|
47890
|
-
|
|
47895
|
+
children: /* @__PURE__ */ u(_7, { value: f, children: /* @__PURE__ */ u(
|
|
47896
|
+
V7,
|
|
47891
47897
|
{
|
|
47892
47898
|
isEmpty: e.count === 0 && !e.counting,
|
|
47893
47899
|
emptyState: h,
|
|
@@ -47901,7 +47907,7 @@ function Tte({
|
|
|
47901
47907
|
}
|
|
47902
47908
|
);
|
|
47903
47909
|
}
|
|
47904
|
-
function
|
|
47910
|
+
function V7({
|
|
47905
47911
|
isEmpty: e,
|
|
47906
47912
|
emptyState: t,
|
|
47907
47913
|
children: n
|
|
@@ -47909,19 +47915,19 @@ function V9({
|
|
|
47909
47915
|
const { shift: r } = Df("BoardColumn");
|
|
47910
47916
|
return e ? r && r.markerAt !== null ? null : /* @__PURE__ */ u(We, { children: t }) : /* @__PURE__ */ u(We, { children: n });
|
|
47911
47917
|
}
|
|
47912
|
-
function
|
|
47918
|
+
function z7({ columnId: e, message: t }) {
|
|
47913
47919
|
const { session: n } = Ki("BoardColumn"), r = qi(n);
|
|
47914
47920
|
return s2(r, e) !== "own" ? null : /* @__PURE__ */ M("div", { role: "status", "data-board-reorder-locked": "", className: zl().reorderLocked(), children: [
|
|
47915
47921
|
/* @__PURE__ */ u(ue, { name: "info", size: "xs" }),
|
|
47916
47922
|
t
|
|
47917
47923
|
] });
|
|
47918
47924
|
}
|
|
47919
|
-
function
|
|
47925
|
+
function B7({ columnId: e }) {
|
|
47920
47926
|
const { session: t } = Ki("BoardColumn"), n = qi(t);
|
|
47921
47927
|
return s2(n, e) !== "other" ? null : /* @__PURE__ */ u("div", { "aria-hidden": "true", "data-board-lane-drop": "", className: zl().laneDrop() });
|
|
47922
47928
|
}
|
|
47923
|
-
const
|
|
47924
|
-
function
|
|
47929
|
+
const H7 = "–";
|
|
47930
|
+
function U7({
|
|
47925
47931
|
count: e,
|
|
47926
47932
|
wipLimit: t,
|
|
47927
47933
|
overWip: n,
|
|
@@ -47938,13 +47944,13 @@ function U9({
|
|
|
47938
47944
|
),
|
|
47939
47945
|
children: [
|
|
47940
47946
|
n && /* @__PURE__ */ u(ue, { name: "triangle-alert", size: "xs" }),
|
|
47941
|
-
n && e !== null && t !== void 0 ? s(i.format(e), i.format(t)) : e === null ?
|
|
47947
|
+
n && e !== null && t !== void 0 ? s(i.format(e), i.format(t)) : e === null ? H7 : i.format(e)
|
|
47942
47948
|
]
|
|
47943
47949
|
}
|
|
47944
47950
|
);
|
|
47945
47951
|
}
|
|
47946
47952
|
function Pte({ id: e, index: t, label: n, className: r, children: o }) {
|
|
47947
|
-
const { columnId: s } =
|
|
47953
|
+
const { columnId: s } = L7("BoardCard"), i = xe(!1), a = Re(() => (i.current = !0, () => {
|
|
47948
47954
|
i.current = !1;
|
|
47949
47955
|
}), []);
|
|
47950
47956
|
_e(() => {
|
|
@@ -47956,10 +47962,10 @@ function Pte({ id: e, index: t, label: n, className: r, children: o }) {
|
|
|
47956
47962
|
() => ({ itemId: e, index: t, label: n, registerHandle: a }),
|
|
47957
47963
|
[e, t, n, a]
|
|
47958
47964
|
);
|
|
47959
|
-
return /* @__PURE__ */ u(cx, { id: e, index: t, label: n, className: r, children: /* @__PURE__ */ u($
|
|
47965
|
+
return /* @__PURE__ */ u(cx, { id: e, index: t, label: n, className: r, children: /* @__PURE__ */ u($7, { value: l, children: /* @__PURE__ */ u("div", { role: "listitem", children: o(/* @__PURE__ */ u(j7, { columnId: s })) }) }) });
|
|
47960
47966
|
}
|
|
47961
|
-
function
|
|
47962
|
-
const t = T2("BoardCardHandle"), n =
|
|
47967
|
+
function j7({ columnId: e }) {
|
|
47968
|
+
const t = T2("BoardCardHandle"), n = F7("BoardCardHandle"), r = A7(), [o, s] = ne(!1), i = zl(), a = he().board, { registerHandle: l } = n;
|
|
47963
47969
|
_e(() => l(), [l]);
|
|
47964
47970
|
const c = t.columns.find((w) => w.id === e), d = t.columns.filter((w) => w.id !== e), f = ux(c, n.index), p = c?.items.length ?? 0;
|
|
47965
47971
|
function h(w) {
|
|
@@ -47998,17 +48004,17 @@ function j9({ columnId: e }) {
|
|
|
47998
48004
|
)
|
|
47999
48005
|
] });
|
|
48000
48006
|
}
|
|
48001
|
-
function
|
|
48007
|
+
function G7(e) {
|
|
48002
48008
|
return e ? e.shown ? "ready" : e.status === "ready" ? "waiting" : e.status : "unheld";
|
|
48003
48009
|
}
|
|
48004
|
-
function
|
|
48010
|
+
function W7(e, t) {
|
|
48005
48011
|
return e > 0 ? e : t > 0 ? 1 : 0;
|
|
48006
48012
|
}
|
|
48007
|
-
function
|
|
48013
|
+
function q7(e, t, n, r) {
|
|
48008
48014
|
return Math.min(t, n - e * t) * r;
|
|
48009
48015
|
}
|
|
48010
|
-
const
|
|
48011
|
-
function
|
|
48016
|
+
const K7 = 0.5;
|
|
48017
|
+
function Y7(e) {
|
|
48012
48018
|
const [t, n] = ne(e), r = xe(/* @__PURE__ */ new Set()), o = xe(/* @__PURE__ */ new Map()), s = xe({ height: 0, count: 0 }), i = xe(null), a = Re((c) => {
|
|
48013
48019
|
const d = o.current.get(c);
|
|
48014
48020
|
d && (s.current.height += d.height, s.current.count += d.count, o.current.delete(c));
|
|
@@ -48024,7 +48030,7 @@ function Y9(e) {
|
|
|
48024
48030
|
f += m.height, p += m.count;
|
|
48025
48031
|
if (p === 0) return;
|
|
48026
48032
|
const h = f / p;
|
|
48027
|
-
n((m) => Math.abs(m - h) <
|
|
48033
|
+
n((m) => Math.abs(m - h) < K7 ? m : h);
|
|
48028
48034
|
});
|
|
48029
48035
|
i.current = c;
|
|
48030
48036
|
for (const d of r.current) c.observe(d);
|
|
@@ -48040,15 +48046,15 @@ function Y9(e) {
|
|
|
48040
48046
|
);
|
|
48041
48047
|
return { pitch: t, observe: l };
|
|
48042
48048
|
}
|
|
48043
|
-
function
|
|
48049
|
+
function X7(e) {
|
|
48044
48050
|
return Number(e.dataset.page);
|
|
48045
48051
|
}
|
|
48046
|
-
function
|
|
48052
|
+
function Z7(e) {
|
|
48047
48053
|
if (e.size === 0) return null;
|
|
48048
|
-
const t = [...e].map(
|
|
48054
|
+
const t = [...e].map(X7).sort((n, r) => n - r);
|
|
48049
48055
|
return t[Math.floor((t.length - 1) / 2)];
|
|
48050
48056
|
}
|
|
48051
|
-
function
|
|
48057
|
+
function J7(e, t) {
|
|
48052
48058
|
const n = xe(/* @__PURE__ */ new Set()), r = xe(/* @__PURE__ */ new Set()), o = xe(null);
|
|
48053
48059
|
return _e(() => {
|
|
48054
48060
|
if (!e) return;
|
|
@@ -48056,7 +48062,7 @@ function J9(e, t) {
|
|
|
48056
48062
|
(a) => {
|
|
48057
48063
|
for (const c of a)
|
|
48058
48064
|
c.isIntersecting ? r.current.add(c.target) : r.current.delete(c.target);
|
|
48059
|
-
const l =
|
|
48065
|
+
const l = Z7(r.current);
|
|
48060
48066
|
l !== null && t(l);
|
|
48061
48067
|
},
|
|
48062
48068
|
{ root: e.el }
|
|
@@ -48070,20 +48076,20 @@ function J9(e, t) {
|
|
|
48070
48076
|
n.current.delete(i), o.current?.unobserve(i), r.current.delete(i);
|
|
48071
48077
|
}), []) };
|
|
48072
48078
|
}
|
|
48073
|
-
function
|
|
48079
|
+
function Q7() {
|
|
48074
48080
|
const [e, t] = ne(null);
|
|
48075
48081
|
return { ref: Re((r) => {
|
|
48076
48082
|
t(r ? { el: ox(r, { includeSelf: !0 }) } : null);
|
|
48077
48083
|
}, []), scroller: e };
|
|
48078
48084
|
}
|
|
48079
|
-
const
|
|
48080
|
-
function
|
|
48081
|
-
const t = Math.min(
|
|
48085
|
+
const eW = 0.1, tW = 12;
|
|
48086
|
+
function nW(e) {
|
|
48087
|
+
const t = Math.min(tW, Math.round(e * eW)), n = Math.max(1, e - t);
|
|
48082
48088
|
return {
|
|
48083
48089
|
backgroundImage: `repeating-linear-gradient(to bottom, var(--surface-raised) 0, var(--surface-raised) ${n}px, transparent ${n}px, transparent ${e}px)`
|
|
48084
48090
|
};
|
|
48085
48091
|
}
|
|
48086
|
-
function
|
|
48092
|
+
function rW({
|
|
48087
48093
|
page: e,
|
|
48088
48094
|
status: t,
|
|
48089
48095
|
children: n,
|
|
@@ -48105,7 +48111,7 @@ function r7({
|
|
|
48105
48111
|
"data-count": d ? r : void 0,
|
|
48106
48112
|
"aria-hidden": d || t === "error" ? void 0 : !0,
|
|
48107
48113
|
className: H("min-w-0 shrink-0", t === "loading" && "animate-pulse"),
|
|
48108
|
-
style: d ? void 0 : { minHeight: o, ...t === "loading" ?
|
|
48114
|
+
style: d ? void 0 : { minHeight: o, ...t === "loading" ? nW(s) : null },
|
|
48109
48115
|
children: [
|
|
48110
48116
|
d && n,
|
|
48111
48117
|
t === "error" && /* @__PURE__ */ M("div", { role: "alert", className: "flex items-center gap-2 px-3 py-2 text-xs text-danger-text", children: [
|
|
@@ -48123,9 +48129,9 @@ function Ote({
|
|
|
48123
48129
|
estimatedItemHeight: r,
|
|
48124
48130
|
className: o
|
|
48125
48131
|
}) {
|
|
48126
|
-
const s = he().pagedWindowList, { setAnchorPage: i, setFrozen: a, invalidatePage: l, pageSize: c, pageCount: d, epoch: f, offset: p } = e, h =
|
|
48132
|
+
const s = he().pagedWindowList, { setAnchorPage: i, setFrozen: a, invalidatePage: l, pageSize: c, pageCount: d, epoch: f, offset: p } = e, h = l7();
|
|
48127
48133
|
_e(() => (a(h), () => a(!1)), [h, a]);
|
|
48128
|
-
const { ref: m, scroller: g } =
|
|
48134
|
+
const { ref: m, scroller: g } = Q7(), { observe: b } = J7(g, i), { pitch: x, observe: v } = Y7(r), y = Re(
|
|
48129
48135
|
(D) => {
|
|
48130
48136
|
if (!D) return;
|
|
48131
48137
|
const P = b(D), T = v(D);
|
|
@@ -48140,17 +48146,17 @@ function Ote({
|
|
|
48140
48146
|
}, [f, g]);
|
|
48141
48147
|
const C = new Map(e.pages.map((D) => [D.page, D])), S = e.total ?? c, R = Math.max(1, Math.round(x)), E = [];
|
|
48142
48148
|
let N = 0;
|
|
48143
|
-
const I =
|
|
48149
|
+
const I = W7(d, C.size);
|
|
48144
48150
|
for (let D = 0; D < I; D++) {
|
|
48145
|
-
const P = C.get(D), T =
|
|
48151
|
+
const P = C.get(D), T = G7(P), $ = N, L = T === "ready" ? P.items : [];
|
|
48146
48152
|
N += L.length, E.push(
|
|
48147
48153
|
/* @__PURE__ */ u(
|
|
48148
|
-
|
|
48154
|
+
rW,
|
|
48149
48155
|
{
|
|
48150
48156
|
page: D,
|
|
48151
48157
|
status: T,
|
|
48152
48158
|
count: L.length,
|
|
48153
|
-
height:
|
|
48159
|
+
height: q7(D, c, S, R),
|
|
48154
48160
|
pitch: R,
|
|
48155
48161
|
blockRef: y,
|
|
48156
48162
|
errorText: s.failed,
|
|
@@ -48174,13 +48180,13 @@ function Ote({
|
|
|
48174
48180
|
}
|
|
48175
48181
|
);
|
|
48176
48182
|
}
|
|
48177
|
-
const
|
|
48178
|
-
function
|
|
48183
|
+
const oW = 200;
|
|
48184
|
+
function sW(e, t, n) {
|
|
48179
48185
|
const r = Math.floor((n - 1) / 2), o = Math.max(0, e - r), s = Math.min(t - 1, e + (n - 1 - r)), i = [];
|
|
48180
48186
|
for (let a = o; a <= s; a++) i.push(a);
|
|
48181
48187
|
return i;
|
|
48182
48188
|
}
|
|
48183
|
-
class
|
|
48189
|
+
class iW {
|
|
48184
48190
|
pageSize;
|
|
48185
48191
|
windowPages;
|
|
48186
48192
|
settleMs;
|
|
@@ -48214,7 +48220,7 @@ class i7 {
|
|
|
48214
48220
|
loadPage: r,
|
|
48215
48221
|
loadCount: o,
|
|
48216
48222
|
mode: s = "pages",
|
|
48217
|
-
settleMs: i =
|
|
48223
|
+
settleMs: i = oW
|
|
48218
48224
|
}) {
|
|
48219
48225
|
if (!Number.isInteger(t) || t < 1)
|
|
48220
48226
|
throw new Error(`PagedWindowStore: pageSize must be a positive integer, got ${t}.`);
|
|
@@ -48319,7 +48325,7 @@ class i7 {
|
|
|
48319
48325
|
if (this.mode === "count") return [];
|
|
48320
48326
|
if (this.total === null || this.total === 0) return [0];
|
|
48321
48327
|
const t = Math.min(this.appliedAnchor, this.pageCount() - 1);
|
|
48322
|
-
return
|
|
48328
|
+
return sW(t, this.pageCount(), this.windowPages);
|
|
48323
48329
|
}
|
|
48324
48330
|
/** Bring the held pages to the wanted ones — unless frozen, when that waits for the thaw. */
|
|
48325
48331
|
sync() {
|
|
@@ -48482,7 +48488,7 @@ function Ate({
|
|
|
48482
48488
|
settleMs: i
|
|
48483
48489
|
}) {
|
|
48484
48490
|
const a = xe(null);
|
|
48485
|
-
a.current ??= new
|
|
48491
|
+
a.current ??= new iW({ pageSize: e, windowPages: t, loadPage: n, loadCount: r, mode: s, settleMs: i });
|
|
48486
48492
|
const l = a.current, c = xe({ pageSize: e, windowPages: t, settleMs: i });
|
|
48487
48493
|
if (c.current.pageSize !== e || c.current.windowPages !== t || c.current.settleMs !== i)
|
|
48488
48494
|
throw new Error(
|
|
@@ -48516,7 +48522,7 @@ const P2 = (e) => (t) => {
|
|
|
48516
48522
|
archive: "folder",
|
|
48517
48523
|
table: "table",
|
|
48518
48524
|
file: "file"
|
|
48519
|
-
},
|
|
48525
|
+
}, aW = [
|
|
48520
48526
|
[/^image\//, "image"],
|
|
48521
48527
|
[/^video\//, "video"],
|
|
48522
48528
|
[/^audio\//, "audio"],
|
|
@@ -48525,15 +48531,15 @@ const P2 = (e) => (t) => {
|
|
|
48525
48531
|
[/pdf/, "text"],
|
|
48526
48532
|
[/zip|tar|gzip|compressed/, "archive"],
|
|
48527
48533
|
[/csv|sheet|excel/, "table"]
|
|
48528
|
-
],
|
|
48534
|
+
], lW = ["png", "jpg", "jpeg", "gif", "webp", "svg", "avif"], cW = ["mp4", "webm", "mov", "m4v", "ogv"], uW = ["ts", "tsx", "js", "jsx", "py", "rs", "go", "json", "sh", "css"], dW = ["md", "txt", "rtf", "pdf", "doc", "docx", "ppt", "pptx"], fW = ["csv", "xlsx", "xls"];
|
|
48529
48535
|
function dx(e) {
|
|
48530
|
-
const t = e.mimeType ?? "", n =
|
|
48536
|
+
const t = e.mimeType ?? "", n = aW.find(([o]) => o.test(t));
|
|
48531
48537
|
if (n) return n[1];
|
|
48532
48538
|
const r = e.name.split(".").pop()?.toLowerCase() ?? "";
|
|
48533
|
-
return
|
|
48539
|
+
return lW.includes(r) ? "image" : cW.includes(r) ? "video" : uW.includes(r) ? "code" : dW.includes(r) ? "text" : fW.includes(r) ? "table" : "file";
|
|
48534
48540
|
}
|
|
48535
|
-
const
|
|
48536
|
-
function
|
|
48541
|
+
const pW = (e) => O2[e], fx = (e) => O2[dx(e)], px = (e) => dx(e) === "image", hx = (e) => dx(e) === "video";
|
|
48542
|
+
function hW(e) {
|
|
48537
48543
|
return e.includes("#") ? e : `${e}#t=0.001`;
|
|
48538
48544
|
}
|
|
48539
48545
|
function hm({ file: e, iconSize: t, className: n }) {
|
|
@@ -48541,7 +48547,7 @@ function hm({ file: e, iconSize: t, className: n }) {
|
|
|
48541
48547
|
return s && r !== s ? /* @__PURE__ */ u("img", { src: s, alt: "", loading: "lazy", className: n, onError: () => o(s) }) : hx(e) && e.url && r !== e.url ? /* @__PURE__ */ u(
|
|
48542
48548
|
"video",
|
|
48543
48549
|
{
|
|
48544
|
-
src:
|
|
48550
|
+
src: hW(e.url),
|
|
48545
48551
|
preload: "metadata",
|
|
48546
48552
|
muted: !0,
|
|
48547
48553
|
playsInline: !0,
|
|
@@ -48758,7 +48764,7 @@ function D2({
|
|
|
48758
48764
|
}
|
|
48759
48765
|
);
|
|
48760
48766
|
}
|
|
48761
|
-
function
|
|
48767
|
+
function mW({
|
|
48762
48768
|
value: e,
|
|
48763
48769
|
onValueChange: t,
|
|
48764
48770
|
onSubmit: n,
|
|
@@ -48934,15 +48940,15 @@ function Yo(e, t, n = {}) {
|
|
|
48934
48940
|
const o = n.zone ?? _2(), s = Kn(o, r);
|
|
48935
48941
|
return wU(Nn(t, xU).format(yU(s)));
|
|
48936
48942
|
}
|
|
48937
|
-
const
|
|
48943
|
+
const gW = String.raw`(?:,?\s+(\d{1,2}):(\d{2})(?::(\d{2}))?(?:\s*([^\d\s].*?))?)?`, bW = /^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(:\d{2}(\.\d+)?)?\s*(Z|[+-]\d{2}:?\d{2})$/;
|
|
48938
48944
|
function Dte(e, t, n = {}) {
|
|
48939
48945
|
const r = VI(e, t).trim();
|
|
48940
48946
|
if (r === "") return null;
|
|
48941
|
-
if (
|
|
48947
|
+
if (bW.test(r)) {
|
|
48942
48948
|
const g = $2(r);
|
|
48943
48949
|
return g === null ? null : new Date(g).toISOString();
|
|
48944
48950
|
}
|
|
48945
|
-
const { order: o, source: s } = zI(t), i = new RegExp(`^${s}${
|
|
48951
|
+
const { order: o, source: s } = zI(t), i = new RegExp(`^${s}${gW}$`).exec(r);
|
|
48946
48952
|
if (!i) return null;
|
|
48947
48953
|
const { year: a, month: l, day: c } = BI(o, i);
|
|
48948
48954
|
if (l < 1 || l > 12 || c < 1 || c > Ni(a, l)) return null;
|
|
@@ -48983,7 +48989,7 @@ function Fte(e, t) {
|
|
|
48983
48989
|
function mx(e) {
|
|
48984
48990
|
return typeof e == "number" ? e : e instanceof Date ? e.getTime() : Date.parse(e);
|
|
48985
48991
|
}
|
|
48986
|
-
function
|
|
48992
|
+
function vW(e, t, n, r = Date.now()) {
|
|
48987
48993
|
const o = Ut(n, {}).format, s = mx(e);
|
|
48988
48994
|
if (Number.isNaN(s)) return t.unknown;
|
|
48989
48995
|
const i = Math.max(0, Math.round((r - s) / 1e3));
|
|
@@ -48997,11 +49003,11 @@ function v7(e, t, n, r = Date.now()) {
|
|
|
48997
49003
|
const f = Math.round(c / 7);
|
|
48998
49004
|
return t.weeksAgo(f, o(f));
|
|
48999
49005
|
}
|
|
49000
|
-
const
|
|
49006
|
+
const xW = 1e3, Yp = 3600 * 1e3, _o = /* @__PURE__ */ new Set();
|
|
49001
49007
|
let tu;
|
|
49002
|
-
function
|
|
49008
|
+
function yW(e, t, n) {
|
|
49003
49009
|
const r = t(e, n);
|
|
49004
|
-
let o = n, s =
|
|
49010
|
+
let o = n, s = xW, i;
|
|
49005
49011
|
for (; ; ) {
|
|
49006
49012
|
const a = n + Math.min(s, Yp);
|
|
49007
49013
|
if (t(e, a) !== r) {
|
|
@@ -49025,12 +49031,12 @@ function Ku() {
|
|
|
49025
49031
|
if (gx(), _o.size === 0 || document.visibilityState === "hidden") return;
|
|
49026
49032
|
let e = 1 / 0;
|
|
49027
49033
|
for (const { nextChangeAt: t } of _o) e = Math.min(e, t);
|
|
49028
|
-
tu = setTimeout(
|
|
49034
|
+
tu = setTimeout(wW, Math.max(1, e - Date.now()));
|
|
49029
49035
|
}
|
|
49030
49036
|
function bx(e) {
|
|
49031
|
-
e.nextChangeAt =
|
|
49037
|
+
e.nextChangeAt = yW(e.at, e.format, Date.now());
|
|
49032
49038
|
}
|
|
49033
|
-
function
|
|
49039
|
+
function wW() {
|
|
49034
49040
|
const e = Date.now();
|
|
49035
49041
|
for (const t of [..._o])
|
|
49036
49042
|
t.nextChangeAt > e || (t.onChange(), bx(t));
|
|
@@ -49045,19 +49051,19 @@ function k1() {
|
|
|
49045
49051
|
e.onChange(), bx(e);
|
|
49046
49052
|
Ku();
|
|
49047
49053
|
}
|
|
49048
|
-
function
|
|
49054
|
+
function kW(e, t, n) {
|
|
49049
49055
|
const r = { at: e, format: t, onChange: n, nextChangeAt: 0 };
|
|
49050
49056
|
return bx(r), _o.size === 0 && document.addEventListener("visibilitychange", k1), _o.add(r), Ku(), () => {
|
|
49051
49057
|
_o.delete(r), _o.size === 0 ? (gx(), document.removeEventListener("visibilitychange", k1)) : Ku();
|
|
49052
49058
|
};
|
|
49053
49059
|
}
|
|
49054
|
-
function
|
|
49060
|
+
function CW() {
|
|
49055
49061
|
const e = he().relativeAge, t = xt();
|
|
49056
|
-
return Oe(() => (n, r) =>
|
|
49062
|
+
return Oe(() => (n, r) => vW(n, e, t, r), [e, t]);
|
|
49057
49063
|
}
|
|
49058
49064
|
function vx(e, t) {
|
|
49059
|
-
const n =
|
|
49060
|
-
(a) => s ?
|
|
49065
|
+
const n = CW(), r = t ?? n, o = mx(e), s = !Number.isNaN(o), i = Re(
|
|
49066
|
+
(a) => s ? kW(o, r, a) : () => {
|
|
49061
49067
|
},
|
|
49062
49068
|
[o, s, r]
|
|
49063
49069
|
);
|
|
@@ -49067,13 +49073,13 @@ function Xo({ at: e, format: t, tooltip: n, className: r }) {
|
|
|
49067
49073
|
const o = xt(), s = vx(e, t), i = mx(e), a = !Number.isNaN(i), l = n === !1 ? null : n ?? (a ? Yo(i, o) : null), c = /* @__PURE__ */ u("time", { dateTime: a ? new Date(i).toISOString() : void 0, className: r, children: s });
|
|
49068
49074
|
return l === null ? c : /* @__PURE__ */ u(Gt, { content: l, children: c });
|
|
49069
49075
|
}
|
|
49070
|
-
function
|
|
49076
|
+
function SW(e) {
|
|
49071
49077
|
let t = e;
|
|
49072
49078
|
(t.match(/`/g) ?? []).length % 2 === 1 && (t += "`"), (t.match(/\*\*/g) ?? []).length % 2 === 1 && (t += "**");
|
|
49073
49079
|
const o = (t.match(/\[/g) ?? []).length - (t.match(/\]/g) ?? []).length;
|
|
49074
49080
|
return o > 0 && (t += "]".repeat(o)), t;
|
|
49075
49081
|
}
|
|
49076
|
-
function
|
|
49082
|
+
function EW(e) {
|
|
49077
49083
|
const t = e.split(`
|
|
49078
49084
|
`), n = [];
|
|
49079
49085
|
let r = 0;
|
|
@@ -49082,7 +49088,7 @@ function E7(e) {
|
|
|
49082
49088
|
if (!o) {
|
|
49083
49089
|
const l = r;
|
|
49084
49090
|
for (; r < t.length && !Ha.test(t[r]); ) r++;
|
|
49085
|
-
n.push(
|
|
49091
|
+
n.push(SW(t.slice(l, r).join(`
|
|
49086
49092
|
`)));
|
|
49087
49093
|
continue;
|
|
49088
49094
|
}
|
|
@@ -49094,11 +49100,11 @@ function E7(e) {
|
|
|
49094
49100
|
return n.join(`
|
|
49095
49101
|
`);
|
|
49096
49102
|
}
|
|
49097
|
-
const
|
|
49103
|
+
const NW = fd(function({
|
|
49098
49104
|
children: t,
|
|
49099
49105
|
...n
|
|
49100
49106
|
}) {
|
|
49101
|
-
const r = Oe(() =>
|
|
49107
|
+
const r = Oe(() => EW(t), [t]);
|
|
49102
49108
|
return /* @__PURE__ */ u(Si, { ...n, children: r });
|
|
49103
49109
|
}), Lc = [
|
|
49104
49110
|
"var(--color-accent)",
|
|
@@ -49107,7 +49113,7 @@ const N7 = fd(function({
|
|
|
49107
49113
|
"var(--color-success)",
|
|
49108
49114
|
"var(--color-brand)"
|
|
49109
49115
|
];
|
|
49110
|
-
function
|
|
49116
|
+
function RW({
|
|
49111
49117
|
segments: e,
|
|
49112
49118
|
capacity: t,
|
|
49113
49119
|
limits: n,
|
|
@@ -49235,7 +49241,7 @@ function R7({
|
|
|
49235
49241
|
l
|
|
49236
49242
|
),
|
|
49237
49243
|
children: [
|
|
49238
|
-
/* @__PURE__ */ u(
|
|
49244
|
+
/* @__PURE__ */ u(IW, { fraction: m, tone: b, label: d.dialLabel }),
|
|
49239
49245
|
/* @__PURE__ */ u(
|
|
49240
49246
|
"span",
|
|
49241
49247
|
{
|
|
@@ -49261,7 +49267,7 @@ function R7({
|
|
|
49261
49267
|
}
|
|
49262
49268
|
);
|
|
49263
49269
|
}
|
|
49264
|
-
function
|
|
49270
|
+
function IW({ fraction: e, tone: t, label: n }) {
|
|
49265
49271
|
const r = t === "danger" ? "danger" : t === "warning" ? "warning" : "accent";
|
|
49266
49272
|
return /* @__PURE__ */ u(
|
|
49267
49273
|
oU,
|
|
@@ -49288,13 +49294,13 @@ function L2({ children: e, active: t = !0, className: n }) {
|
|
|
49288
49294
|
}
|
|
49289
49295
|
);
|
|
49290
49296
|
}
|
|
49291
|
-
const
|
|
49297
|
+
const MW = {
|
|
49292
49298
|
running: { icon: "loader-circle", className: "animate-spin text-accent-text" },
|
|
49293
49299
|
success: { icon: "check", className: "text-success" },
|
|
49294
49300
|
error: { icon: "circle-x", className: "text-danger" }
|
|
49295
49301
|
};
|
|
49296
|
-
function
|
|
49297
|
-
const r = he().chat.message, o =
|
|
49302
|
+
function TW({ part: e, defaultOpen: t = !1, className: n }) {
|
|
49303
|
+
const r = he().chat.message, o = MW[e.status], { added: s, removed: i } = e.stats ?? {}, a = /* @__PURE__ */ M("span", { className: "flex w-full items-center gap-2 text-left", children: [
|
|
49298
49304
|
/* @__PURE__ */ u(ue, { name: o.icon, size: "xs", className: H("shrink-0", o.className) }),
|
|
49299
49305
|
/* @__PURE__ */ u("span", { className: "min-w-0 flex-1 truncate text-xs text-secondary", children: e.status === "running" ? /* @__PURE__ */ u(L2, { children: e.summary }) : e.summary }),
|
|
49300
49306
|
s !== void 0 && s > 0 && /* @__PURE__ */ M("span", { className: "shrink-0 font-mono text-2xs text-success", children: [
|
|
@@ -49344,7 +49350,7 @@ function T7({ part: e, defaultOpen: t = !1, className: n }) {
|
|
|
49344
49350
|
}
|
|
49345
49351
|
);
|
|
49346
49352
|
}
|
|
49347
|
-
function
|
|
49353
|
+
function PW({ text: e, label: t, streaming: n }) {
|
|
49348
49354
|
const r = he().chat.message;
|
|
49349
49355
|
return /* @__PURE__ */ u(
|
|
49350
49356
|
Vb,
|
|
@@ -49388,7 +49394,7 @@ function C1({ reason: e, name: t }) {
|
|
|
49388
49394
|
}
|
|
49389
49395
|
);
|
|
49390
49396
|
}
|
|
49391
|
-
function
|
|
49397
|
+
function OW({
|
|
49392
49398
|
part: e,
|
|
49393
49399
|
context: t,
|
|
49394
49400
|
renderers: n,
|
|
@@ -49399,13 +49405,13 @@ function O7({
|
|
|
49399
49405
|
const i = he().chat.message;
|
|
49400
49406
|
switch (e.type) {
|
|
49401
49407
|
case "text":
|
|
49402
|
-
return n?.text ? /* @__PURE__ */ u(We, { children: n.text(e, t) }) : /* @__PURE__ */ u(
|
|
49408
|
+
return n?.text ? /* @__PURE__ */ u(We, { children: n.text(e, t) }) : /* @__PURE__ */ u(NW, { children: e.text });
|
|
49403
49409
|
case "code":
|
|
49404
49410
|
return n?.code ? /* @__PURE__ */ u(We, { children: n.code(e, t) }) : /* @__PURE__ */ u(fb, { code: e.code, language: e.language, filename: e.filename });
|
|
49405
49411
|
case "reasoning":
|
|
49406
|
-
return n?.reasoning ? /* @__PURE__ */ u(We, { children: n.reasoning(e, t) }) : /* @__PURE__ */ u(
|
|
49412
|
+
return n?.reasoning ? /* @__PURE__ */ u(We, { children: n.reasoning(e, t) }) : /* @__PURE__ */ u(PW, { text: e.text, label: e.label, streaming: e.streaming });
|
|
49407
49413
|
case "tool":
|
|
49408
|
-
return n?.tool ? /* @__PURE__ */ u(We, { children: n.tool(e, t) }) : /* @__PURE__ */ u(
|
|
49414
|
+
return n?.tool ? /* @__PURE__ */ u(We, { children: n.tool(e, t) }) : /* @__PURE__ */ u(TW, { part: e });
|
|
49409
49415
|
case "file":
|
|
49410
49416
|
return n?.file ? /* @__PURE__ */ u(We, { children: n.file(e, t) }) : /* @__PURE__ */ u("div", { className: "my-1.5", children: /* @__PURE__ */ u(
|
|
49411
49417
|
A2,
|
|
@@ -49432,7 +49438,7 @@ function O7({
|
|
|
49432
49438
|
}
|
|
49433
49439
|
}
|
|
49434
49440
|
}
|
|
49435
|
-
function
|
|
49441
|
+
function AW({
|
|
49436
49442
|
message: e,
|
|
49437
49443
|
renderers: t,
|
|
49438
49444
|
components: n,
|
|
@@ -49462,7 +49468,7 @@ function A7({
|
|
|
49462
49468
|
}
|
|
49463
49469
|
),
|
|
49464
49470
|
e.parts.map((C, S) => /* @__PURE__ */ u(
|
|
49465
|
-
|
|
49471
|
+
OW,
|
|
49466
49472
|
{
|
|
49467
49473
|
part: C,
|
|
49468
49474
|
context: x,
|
|
@@ -49616,7 +49622,7 @@ function S1({
|
|
|
49616
49622
|
}
|
|
49617
49623
|
) });
|
|
49618
49624
|
}
|
|
49619
|
-
function
|
|
49625
|
+
function DW({
|
|
49620
49626
|
children: e,
|
|
49621
49627
|
threshold: t = 64,
|
|
49622
49628
|
jumpLabel: n,
|
|
@@ -49696,7 +49702,7 @@ function D7({
|
|
|
49696
49702
|
)
|
|
49697
49703
|
] });
|
|
49698
49704
|
}
|
|
49699
|
-
function
|
|
49705
|
+
function _W(e) {
|
|
49700
49706
|
const t = e.flatMap(
|
|
49701
49707
|
(n) => n.pages && n.pages.length > 0 ? n.pages.map((r) => ({ file: n, page: r })) : [{ file: n, page: null }]
|
|
49702
49708
|
);
|
|
@@ -49708,7 +49714,7 @@ function Xp(e) {
|
|
|
49708
49714
|
function _f(e) {
|
|
49709
49715
|
return `${e.file.id}\0${e.page?.id ?? ""}`;
|
|
49710
49716
|
}
|
|
49711
|
-
function $
|
|
49717
|
+
function $W(e, t) {
|
|
49712
49718
|
if (e.length === 0) return null;
|
|
49713
49719
|
if (t) {
|
|
49714
49720
|
const n = e.find((r) => r.file.id === t.fileId && (r.page?.id ?? null) === t.pageId);
|
|
@@ -49716,7 +49722,7 @@ function $7(e, t) {
|
|
|
49716
49722
|
}
|
|
49717
49723
|
return e[0] ?? null;
|
|
49718
49724
|
}
|
|
49719
|
-
function
|
|
49725
|
+
function LW(e, t) {
|
|
49720
49726
|
const n = (i) => !t.fileId || i.file.id === t.fileId, r = e.filter(n), o = r.length > 0 ? r : e;
|
|
49721
49727
|
return (t.pageId ? o.find((i) => i.page?.id === t.pageId) : void 0) ?? o.find((i) => i.page?.marked) ?? o[0] ?? null;
|
|
49722
49728
|
}
|
|
@@ -49724,13 +49730,13 @@ function mm(e, t, n) {
|
|
|
49724
49730
|
const { file: r, page: o } = e;
|
|
49725
49731
|
return o ? o.number === null || o.number === void 0 ? t.unnumberedPageOf(r.name) : t.pageOf(r.name, n(o.number)) : r.name;
|
|
49726
49732
|
}
|
|
49727
|
-
function
|
|
49733
|
+
function FW({ open: e, files: t, initialFileId: n, initialPageId: r, onFrameChange: o }) {
|
|
49728
49734
|
const [s, i] = ne(t);
|
|
49729
49735
|
t.length > 0 && t !== s && i(t);
|
|
49730
|
-
const a = t.length > 0 ? t : s, l = Oe(() =>
|
|
49731
|
-
const v =
|
|
49736
|
+
const a = t.length > 0 ? t : s, l = Oe(() => _W(a), [a]), c = () => {
|
|
49737
|
+
const v = LW(l, { fileId: n, pageId: r });
|
|
49732
49738
|
return v ? Xp(v) : null;
|
|
49733
|
-
}, [d, f] = ne(() => e ? c() : null), [p, h] = ne(e), m = $
|
|
49739
|
+
}, [d, f] = ne(() => e ? c() : null), [p, h] = ne(e), m = $W(l, d);
|
|
49734
49740
|
if (e !== p)
|
|
49735
49741
|
h(e), e && f(c());
|
|
49736
49742
|
else if (e && m) {
|
|
@@ -49750,14 +49756,14 @@ function F7({ open: e, files: t, initialFileId: n, initialPageId: r, onFrameChan
|
|
|
49750
49756
|
e && m && b.current?.(m);
|
|
49751
49757
|
}, [e, x]), { frames: l, frame: m, go: g };
|
|
49752
49758
|
}
|
|
49753
|
-
const
|
|
49754
|
-
function
|
|
49759
|
+
const VW = "input, textarea, select, video, audio, [contenteditable]:not([contenteditable='false'])";
|
|
49760
|
+
function zW(e) {
|
|
49755
49761
|
const [t, n] = ne(null), r = xe(e);
|
|
49756
49762
|
return r.current = e, _e(() => {
|
|
49757
49763
|
if (!t) return;
|
|
49758
49764
|
const o = (s) => {
|
|
49759
49765
|
const i = s.target;
|
|
49760
|
-
if (!(i instanceof Element) || s.ctrlKey || s.metaKey || s.altKey || i.closest(
|
|
49766
|
+
if (!(i instanceof Element) || s.ctrlKey || s.metaKey || s.altKey || i.closest(VW)) return;
|
|
49761
49767
|
const { go: a, index: l, total: c, zoom: d } = r.current;
|
|
49762
49768
|
switch (s.key) {
|
|
49763
49769
|
case "ArrowRight":
|
|
@@ -49812,7 +49818,7 @@ function Yu(e, t = {}) {
|
|
|
49812
49818
|
const n = t.minScale ?? Hr.minScale, r = t.maxScale ?? Hr.maxScale;
|
|
49813
49819
|
return Math.min(Math.max(e, n), r);
|
|
49814
49820
|
}
|
|
49815
|
-
function
|
|
49821
|
+
function BW(e, t) {
|
|
49816
49822
|
return {
|
|
49817
49823
|
x: (t.x - e.x) / e.scale,
|
|
49818
49824
|
y: (t.y - e.y) / e.scale
|
|
@@ -49825,7 +49831,7 @@ function E1(e, t) {
|
|
|
49825
49831
|
};
|
|
49826
49832
|
}
|
|
49827
49833
|
function tl(e, t, n, r = {}) {
|
|
49828
|
-
const o = Yu(e.scale * n, r), s =
|
|
49834
|
+
const o = Yu(e.scale * n, r), s = BW(e, t);
|
|
49829
49835
|
return {
|
|
49830
49836
|
scale: o,
|
|
49831
49837
|
x: t.x - s.x * o,
|
|
@@ -49840,7 +49846,7 @@ function gm(e, t, n) {
|
|
|
49840
49846
|
y: t.height / 2 - r.y * n
|
|
49841
49847
|
};
|
|
49842
49848
|
}
|
|
49843
|
-
function
|
|
49849
|
+
function HW(e) {
|
|
49844
49850
|
if (e.length === 0) return null;
|
|
49845
49851
|
let t = 1 / 0, n = 1 / 0, r = -1 / 0, o = -1 / 0;
|
|
49846
49852
|
for (const s of e)
|
|
@@ -49857,7 +49863,7 @@ function xx(e, t, n = {}) {
|
|
|
49857
49863
|
});
|
|
49858
49864
|
return gm(e, t, l);
|
|
49859
49865
|
}
|
|
49860
|
-
function
|
|
49866
|
+
function UW(e, t, n = {}) {
|
|
49861
49867
|
if (e.width <= 0 || e.height <= 0 || t.width <= 0)
|
|
49862
49868
|
return { scale: Yu(1, n), x: 0, y: 0 };
|
|
49863
49869
|
const r = Yu(t.width / e.width, n);
|
|
@@ -49873,7 +49879,7 @@ function N1(e, t, n) {
|
|
|
49873
49879
|
bottom: o.y > t.height + Fc
|
|
49874
49880
|
};
|
|
49875
49881
|
}
|
|
49876
|
-
function
|
|
49882
|
+
function jW(e, t, n = {}) {
|
|
49877
49883
|
const { minReadableScale: r, focusBox: o = e, ...s } = n, i = xx(e, t, s);
|
|
49878
49884
|
if (r === void 0 || i.scale >= r)
|
|
49879
49885
|
return { camera: i, overflow: N1(e, t, i) };
|
|
@@ -49884,11 +49890,11 @@ function j7(e, t, n = {}) {
|
|
|
49884
49890
|
};
|
|
49885
49891
|
return { camera: d, overflow: N1(e, t, d) };
|
|
49886
49892
|
}
|
|
49887
|
-
const
|
|
49893
|
+
const GW = "button, a, input, textarea, select, [role='button']";
|
|
49888
49894
|
function yx(e) {
|
|
49889
|
-
return e instanceof Element && e.closest(
|
|
49895
|
+
return e instanceof Element && e.closest(GW) !== null;
|
|
49890
49896
|
}
|
|
49891
|
-
const
|
|
49897
|
+
const WW = 5, R1 = 240, qW = 1.0025;
|
|
49892
49898
|
function I1(e, t) {
|
|
49893
49899
|
return Math.hypot(e.x - t.x, e.y - t.y);
|
|
49894
49900
|
}
|
|
@@ -49922,7 +49928,7 @@ function F2(e) {
|
|
|
49922
49928
|
const c = (g) => {
|
|
49923
49929
|
if (r.current.disabled) return;
|
|
49924
49930
|
g.preventDefault(), r.current.onGestureStart?.();
|
|
49925
|
-
const b = a.getBoundingClientRect(), x = { x: g.clientX - b.left, y: g.clientY - b.top }, v = Math.max(-R1, Math.min(R1, g.deltaY)), y = Math.pow(
|
|
49931
|
+
const b = a.getBoundingClientRect(), x = { x: g.clientX - b.left, y: g.clientY - b.top }, v = Math.max(-R1, Math.min(R1, g.deltaY)), y = Math.pow(qW, -v);
|
|
49926
49932
|
r.current.setCamera((w) => tl(w, x, y, r.current.zoomBounds));
|
|
49927
49933
|
};
|
|
49928
49934
|
a.addEventListener("wheel", c, { passive: !1 });
|
|
@@ -49931,7 +49937,7 @@ function F2(e) {
|
|
|
49931
49937
|
if (!x.pointers.has(g)) return;
|
|
49932
49938
|
const v = x.mode === "pan", y = x.downTarget, w = x.travelled;
|
|
49933
49939
|
if (x.pointers.delete(g), a.hasPointerCapture(g) && a.releasePointerCapture(g), x.pointers.size === 0)
|
|
49934
|
-
x.mode = "idle", x.originPoint = null, x.originCamera = null, x.pinchDistance = null, x.pinchMidpoint = null, x.downTarget = null, x.frame = null, n(!1), !b && v && w <
|
|
49940
|
+
x.mode = "idle", x.originPoint = null, x.originCamera = null, x.pinchDistance = null, x.pinchMidpoint = null, x.downTarget = null, x.frame = null, n(!1), !b && v && w < WW && y && !r.current.disabled && r.current.onClick?.({ target: y });
|
|
49935
49941
|
else {
|
|
49936
49942
|
const [[, C]] = x.pointers;
|
|
49937
49943
|
x.mode = "pan", x.originPoint = C, x.originCamera = r.current.camera, x.pinchDistance = null, x.pinchMidpoint = null, x.travelled = 1 / 0;
|
|
@@ -49987,16 +49993,16 @@ function F2(e) {
|
|
|
49987
49993
|
);
|
|
49988
49994
|
return { panning: t, bindViewport: i };
|
|
49989
49995
|
}
|
|
49990
|
-
const Oa = { minScale: 0.05, maxScale: 8 }, T1 = 1.25, V2 = 1e-3,
|
|
49996
|
+
const Oa = { minScale: 0.05, maxScale: 8 }, T1 = 1.25, V2 = 1e-3, KW = { x: 0, y: 0, scale: 1 };
|
|
49991
49997
|
function Zp(e, t) {
|
|
49992
49998
|
return t !== null && Math.abs(e.scale - t.scale) < V2;
|
|
49993
49999
|
}
|
|
49994
|
-
function
|
|
49995
|
-
return e === "width" ?
|
|
50000
|
+
function YW(e, t, n) {
|
|
50001
|
+
return e === "width" ? UW(t, n, Oa) : xx({ x: 0, y: 0, ...t }, n, { ...Oa, padding: 0, maxScale: 1 });
|
|
49996
50002
|
}
|
|
49997
|
-
function
|
|
49998
|
-
const [n, r] = ne(
|
|
49999
|
-
() => t && l && o && o.width > 0 && o.height > 0 ?
|
|
50003
|
+
function XW({ frameKey: e, fit: t }) {
|
|
50004
|
+
const [n, r] = ne(KW), [o, s] = ne(null), [i, a] = ne(null), l = i?.key === e ? i.size : null, c = Oe(
|
|
50005
|
+
() => t && l && o && o.width > 0 && o.height > 0 ? YW(t, l, o) : null,
|
|
50000
50006
|
[t, l, o]
|
|
50001
50007
|
), d = xe({ key: "", fit: null }), f = l ? `${e}|${l.width}x${l.height}` : e;
|
|
50002
50008
|
Qt(() => {
|
|
@@ -50047,7 +50053,7 @@ function X7({ frameKey: e, fit: t }) {
|
|
|
50047
50053
|
toggleActual: x
|
|
50048
50054
|
};
|
|
50049
50055
|
}
|
|
50050
|
-
function
|
|
50056
|
+
function ZW({ onJump: e, noMatch: t }) {
|
|
50051
50057
|
const n = he().fileViewer, [r, o] = ne(""), [s, i] = ne(null), a = () => {
|
|
50052
50058
|
const l = r.trim();
|
|
50053
50059
|
if (!/^\d+$/.test(l)) {
|
|
@@ -50085,7 +50091,7 @@ function Z7({ onJump: e, noMatch: t }) {
|
|
|
50085
50091
|
s ? /* @__PURE__ */ u("p", { className: "text-2xs text-danger-text", children: s }) : null
|
|
50086
50092
|
] });
|
|
50087
50093
|
}
|
|
50088
|
-
function
|
|
50094
|
+
function JW({ frame: e, onGo: t }) {
|
|
50089
50095
|
const n = he().fileViewer, r = zt(), o = e.page?.number;
|
|
50090
50096
|
return /* @__PURE__ */ M("div", { className: "flex items-center gap-1", children: [
|
|
50091
50097
|
/* @__PURE__ */ u(
|
|
@@ -50111,7 +50117,7 @@ function J7({ frame: e, onGo: t }) {
|
|
|
50111
50117
|
)
|
|
50112
50118
|
] });
|
|
50113
50119
|
}
|
|
50114
|
-
function
|
|
50120
|
+
function QW({ frame: e, frames: t, go: n, zoom: r, zoomable: o, markLabel: s, headerActions: i, onDownload: a, labelled: l = !1 }) {
|
|
50115
50121
|
const c = he().fileViewer, d = xt(), f = zt(), p = Oe(
|
|
50116
50122
|
() => t.filter((v) => v.page?.marked).map((v) => v.index),
|
|
50117
50123
|
[t]
|
|
@@ -50154,7 +50160,7 @@ function Q7({ frame: e, frames: t, go: n, zoom: r, zoomable: o, markLabel: s, he
|
|
|
50154
50160
|
"aria-label": c.jumpToPage,
|
|
50155
50161
|
trigger: l ? /* @__PURE__ */ u(et, { size: "xs", variant: "ghost", leadingIcon: /* @__PURE__ */ u(ue, { name: "list-ordered", size: "xs" }), children: c.jumpToPage }) : /* @__PURE__ */ u(st, { size: "xs", icon: /* @__PURE__ */ u(ue, { name: "list-ordered", size: "xs" }), label: c.jumpToPage }),
|
|
50156
50162
|
children: /* @__PURE__ */ u("div", { className: "flex w-52 flex-col gap-1.5 p-2", children: /* @__PURE__ */ u(
|
|
50157
|
-
|
|
50163
|
+
ZW,
|
|
50158
50164
|
{
|
|
50159
50165
|
onJump: (v) => {
|
|
50160
50166
|
const y = m(v);
|
|
@@ -50255,7 +50261,7 @@ function z2({
|
|
|
50255
50261
|
role: "status",
|
|
50256
50262
|
className: "flex size-full flex-col items-center justify-center gap-1.5 bg-surface-inset p-2 text-center @min-[16rem]:min-h-32 @min-[16rem]:gap-3 @min-[16rem]:p-4",
|
|
50257
50263
|
children: [
|
|
50258
|
-
/* @__PURE__ */ u(ue, { name:
|
|
50264
|
+
/* @__PURE__ */ u(ue, { name: pW("video"), size: "lg", className: "text-tertiary" }),
|
|
50259
50265
|
/* @__PURE__ */ u("p", { className: "text-sm text-secondary", children: l.cannotPlay }),
|
|
50260
50266
|
s && /* @__PURE__ */ M(et, { variant: "outline", size: "sm", onClick: s, children: [
|
|
50261
50267
|
/* @__PURE__ */ u(ue, { name: "download", size: "sm" }),
|
|
@@ -50400,8 +50406,8 @@ function oq({
|
|
|
50400
50406
|
overlay: f,
|
|
50401
50407
|
renderBody: p
|
|
50402
50408
|
}) {
|
|
50403
|
-
const h = he().fileViewer, m = xt(), g = c ?? h.marked, { frames: b, frame: x, go: v } =
|
|
50404
|
-
|
|
50409
|
+
const h = he().fileViewer, m = xt(), g = c ?? h.marked, { frames: b, frame: x, go: v } = FW({ open: e, files: n, initialFileId: r, initialPageId: o, onFrameChange: s }), y = x?.index ?? 0, w = x && !x.page && p ? p(x.file) : null, C = x ? nq(x, w) : { kind: "file", fit: null }, S = XW({ frameKey: x ? _f(x) : "", fit: C.fit }), R = C.fit !== null, E = zW({ go: v, index: y, total: b.length, zoom: R ? S : null }), N = Ui("lg"), [I, A] = ne(!0), D = x ? /* @__PURE__ */ u(
|
|
50410
|
+
QW,
|
|
50405
50411
|
{
|
|
50406
50412
|
frame: x,
|
|
50407
50413
|
frames: b,
|
|
@@ -50434,7 +50440,7 @@ function oq({
|
|
|
50434
50440
|
onClick: () => A((L) => !L)
|
|
50435
50441
|
}
|
|
50436
50442
|
),
|
|
50437
|
-
x ? /* @__PURE__ */ u(
|
|
50443
|
+
x ? /* @__PURE__ */ u(JW, { frame: x, onGo: v }) : null,
|
|
50438
50444
|
N ? /* @__PURE__ */ u(
|
|
50439
50445
|
wn,
|
|
50440
50446
|
{
|
|
@@ -50761,7 +50767,7 @@ function cq({
|
|
|
50761
50767
|
),
|
|
50762
50768
|
h !== void 0 && m && /* @__PURE__ */ u(aq, { levels: p, value: h, onValueChange: m }),
|
|
50763
50769
|
g && /* @__PURE__ */ u(
|
|
50764
|
-
|
|
50770
|
+
RW,
|
|
50765
50771
|
{
|
|
50766
50772
|
segments: g.segments,
|
|
50767
50773
|
capacity: g.capacity,
|
|
@@ -50788,7 +50794,7 @@ function cq({
|
|
|
50788
50794
|
] }),
|
|
50789
50795
|
i && /* @__PURE__ */ u("div", { className: "ml-auto flex items-center gap-1", children: i })
|
|
50790
50796
|
] }),
|
|
50791
|
-
/* @__PURE__ */ u(
|
|
50797
|
+
/* @__PURE__ */ u(DW, { className: "px-4 py-4", children: e.length === 0 ? a ?? /* @__PURE__ */ u(
|
|
50792
50798
|
Il,
|
|
50793
50799
|
{
|
|
50794
50800
|
icon: "message-square",
|
|
@@ -50796,7 +50802,7 @@ function cq({
|
|
|
50796
50802
|
description: R.emptyDescription
|
|
50797
50803
|
}
|
|
50798
50804
|
) : e.map((T, $) => /* @__PURE__ */ u(
|
|
50799
|
-
|
|
50805
|
+
AW,
|
|
50800
50806
|
{
|
|
50801
50807
|
message: T,
|
|
50802
50808
|
renderers: t,
|
|
@@ -50813,7 +50819,7 @@ function cq({
|
|
|
50813
50819
|
/* @__PURE__ */ M("div", { className: "shrink-0 px-4 pt-1 pb-4", children: [
|
|
50814
50820
|
v && /* @__PURE__ */ u("div", { className: "px-1 pb-1.5", children: v }),
|
|
50815
50821
|
/* @__PURE__ */ u(
|
|
50816
|
-
|
|
50822
|
+
mW,
|
|
50817
50823
|
{
|
|
50818
50824
|
...S,
|
|
50819
50825
|
hint: y,
|
|
@@ -58849,7 +58855,7 @@ function FZ(e, t) {
|
|
|
58849
58855
|
const f = n.get(d.to);
|
|
58850
58856
|
f && o.push(f);
|
|
58851
58857
|
}
|
|
58852
|
-
const s =
|
|
58858
|
+
const s = HW(o), i = e.edges.find((d) => d.to === t)?.from, a = i ? n.get(i) : void 0;
|
|
58853
58859
|
if (!a) return s;
|
|
58854
58860
|
const l = Math.min(s.y, a.y), c = Math.max(s.y + s.height, a.y + a.height);
|
|
58855
58861
|
return { x: s.x, y: l, width: s.width, height: c - l };
|
|
@@ -58911,7 +58917,7 @@ function HZ(e) {
|
|
|
58911
58917
|
}, [S]), N = xe(!1), [I, A] = ne(zZ);
|
|
58912
58918
|
_e(() => {
|
|
58913
58919
|
if (!v) return;
|
|
58914
|
-
const _ = x.current, z = w.current.frameBox ?? w.current.contentBox, O = { ...w.current.fitBounds, padding: w.current.framePadding ?? Hr.fitPadding }, { camera: V, overflow: U } =
|
|
58920
|
+
const _ = x.current, z = w.current.frameBox ?? w.current.contentBox, O = { ...w.current.fitBounds, padding: w.current.framePadding ?? Hr.fitPadding }, { camera: V, overflow: U } = jW(z, _, {
|
|
58915
58921
|
...O,
|
|
58916
58922
|
minReadableScale: w.current.minReadableScale,
|
|
58917
58923
|
focusBox: w.current.focusBox ?? z
|
|
@@ -61777,18 +61783,18 @@ export {
|
|
|
61777
61783
|
Xee as ComboboxGroup,
|
|
61778
61784
|
Yee as ComboboxItem,
|
|
61779
61785
|
jee as CommandPalette,
|
|
61780
|
-
|
|
61786
|
+
mW as Composer,
|
|
61781
61787
|
pte as ConcentricRing,
|
|
61782
61788
|
WK as ConfidenceBar,
|
|
61783
61789
|
G1 as ConfidenceMeter,
|
|
61784
61790
|
qK as ConfidenceReadout,
|
|
61785
61791
|
Nee as ConnectionCard,
|
|
61786
|
-
|
|
61792
|
+
RW as ContextMeter,
|
|
61787
61793
|
Bte as CopyValue,
|
|
61788
61794
|
$1 as DEFAULT_PALETTE_KEY,
|
|
61789
61795
|
dm as DESIGN_FRAME_APPEARANCE,
|
|
61790
61796
|
Wu as DESIGN_FRAME_ERROR,
|
|
61791
|
-
|
|
61797
|
+
O9 as DESIGN_FRAME_ERROR_MAX_LENGTH,
|
|
61792
61798
|
Gu as DESIGN_FRAME_READY,
|
|
61793
61799
|
c2 as DRAG_INSTRUCTIONS_ID,
|
|
61794
61800
|
gne as DangerZone,
|
|
@@ -61807,10 +61813,10 @@ export {
|
|
|
61807
61813
|
y2 as DragDropHandle,
|
|
61808
61814
|
cx as DragDropItem,
|
|
61809
61815
|
x2 as DragDropSurface,
|
|
61810
|
-
|
|
61811
|
-
|
|
61812
|
-
|
|
61813
|
-
|
|
61816
|
+
h7 as DragInstructions,
|
|
61817
|
+
p7 as DragLiveRegion,
|
|
61818
|
+
X9 as DragSession,
|
|
61819
|
+
s7 as DragSessionProvider,
|
|
61814
61820
|
ree as ENGLISH_UI_STRINGS,
|
|
61815
61821
|
kq as EVENT_PALETTE,
|
|
61816
61822
|
aee as EditGutter,
|
|
@@ -61859,9 +61865,9 @@ export {
|
|
|
61859
61865
|
IB as MenuRadioGroup,
|
|
61860
61866
|
MB as MenuRadioItem,
|
|
61861
61867
|
QN as MenuSeparator,
|
|
61862
|
-
|
|
61863
|
-
|
|
61864
|
-
|
|
61868
|
+
AW as Message,
|
|
61869
|
+
OW as MessagePartView,
|
|
61870
|
+
DW as MessageScroller,
|
|
61865
61871
|
eU as Meter,
|
|
61866
61872
|
sq as ModelSelector,
|
|
61867
61873
|
Zee as MultiCombobox,
|
|
@@ -61872,11 +61878,11 @@ export {
|
|
|
61872
61878
|
_ne as OperationCard,
|
|
61873
61879
|
ZP as OperationDetail,
|
|
61874
61880
|
XP as OperationHeader,
|
|
61875
|
-
|
|
61881
|
+
oW as PAGED_WINDOW_SETTLE_MS,
|
|
61876
61882
|
bk as PARENT_POSITION,
|
|
61877
|
-
|
|
61883
|
+
ZW as PageNumberJumpField,
|
|
61878
61884
|
Ote as PagedWindowList,
|
|
61879
|
-
|
|
61885
|
+
iW as PagedWindowStore,
|
|
61880
61886
|
mG as Pagination,
|
|
61881
61887
|
bG as PaginationBar,
|
|
61882
61888
|
ute as Panel,
|
|
@@ -61948,7 +61954,7 @@ export {
|
|
|
61948
61954
|
lte as StatusChecklist,
|
|
61949
61955
|
tT as StatusSelect,
|
|
61950
61956
|
ate as Stepper,
|
|
61951
|
-
|
|
61957
|
+
NW as StreamingMarkdown,
|
|
61952
61958
|
bQ as SubscriptionRegistry,
|
|
61953
61959
|
Gb as Switch,
|
|
61954
61960
|
Ree as SwitchField,
|
|
@@ -61968,7 +61974,7 @@ export {
|
|
|
61968
61974
|
Tee as Toaster,
|
|
61969
61975
|
Iu as Toggle,
|
|
61970
61976
|
JE as ToggleGroup,
|
|
61971
|
-
|
|
61977
|
+
TW as ToolCall,
|
|
61972
61978
|
fee as Toolbar,
|
|
61973
61979
|
hee as ToolbarButton,
|
|
61974
61980
|
gee as ToolbarGroup,
|
|
@@ -62001,14 +62007,14 @@ export {
|
|
|
62001
62007
|
If as assertSteps,
|
|
62002
62008
|
Fee as atMidnight,
|
|
62003
62009
|
Vee as atTime,
|
|
62004
|
-
|
|
62010
|
+
o7 as attachAutoScroll,
|
|
62005
62011
|
W3 as attachInput,
|
|
62006
|
-
|
|
62007
|
-
|
|
62008
|
-
|
|
62012
|
+
n7 as attachKeyboardSensor,
|
|
62013
|
+
J9 as attachPointerSensor,
|
|
62014
|
+
Q9 as attachSessionWindowListeners,
|
|
62009
62015
|
jQ as beginOptimisticWrite,
|
|
62010
62016
|
Au as blockAt,
|
|
62011
|
-
|
|
62017
|
+
M7 as buildBoardModel,
|
|
62012
62018
|
Qp as calendarDragResult,
|
|
62013
62019
|
Qw as caretMap,
|
|
62014
62020
|
CN as cellAt,
|
|
@@ -62063,8 +62069,8 @@ export {
|
|
|
62063
62069
|
fx as fileIconFor,
|
|
62064
62070
|
r3 as findUnstoredImages,
|
|
62065
62071
|
xx as fitBox,
|
|
62066
|
-
|
|
62067
|
-
|
|
62072
|
+
jW as fitBoxWithFloor,
|
|
62073
|
+
UW as fitWidth,
|
|
62068
62074
|
Ho as flushRecordNotifications,
|
|
62069
62075
|
Lte as formatBoolean,
|
|
62070
62076
|
vs as formatBytes,
|
|
@@ -62165,7 +62171,7 @@ export {
|
|
|
62165
62171
|
Bne as recordStoreStats,
|
|
62166
62172
|
pO as registerActiveRead,
|
|
62167
62173
|
dee as registerGrammar,
|
|
62168
|
-
|
|
62174
|
+
vW as relativeAge,
|
|
62169
62175
|
Yne as resetActiveReads,
|
|
62170
62176
|
nre as resetOptimisticWrites,
|
|
62171
62177
|
jne as resetRealtimeSignals,
|
|
@@ -62176,7 +62182,7 @@ export {
|
|
|
62176
62182
|
pa as resolveCalendarTarget,
|
|
62177
62183
|
O3 as resolveKey,
|
|
62178
62184
|
uee as resolveLanguage,
|
|
62179
|
-
|
|
62185
|
+
P7 as resolveMove,
|
|
62180
62186
|
Ff as resolveSchema,
|
|
62181
62187
|
Wp as resolveTarget,
|
|
62182
62188
|
yJ as resolveWebhooks,
|
|
@@ -62221,7 +62227,7 @@ export {
|
|
|
62221
62227
|
mo as timeOfDay,
|
|
62222
62228
|
gq as timeSegments,
|
|
62223
62229
|
bm as timedBandSegment,
|
|
62224
|
-
|
|
62230
|
+
BW as toContentPoint,
|
|
62225
62231
|
mx as toEpochMs,
|
|
62226
62232
|
E1 as toScreenPoint,
|
|
62227
62233
|
vN as toggleBold,
|
|
@@ -62237,21 +62243,21 @@ export {
|
|
|
62237
62243
|
j1 as toneForIndex,
|
|
62238
62244
|
Cx as trackIds,
|
|
62239
62245
|
OK as trackProgress,
|
|
62240
|
-
|
|
62246
|
+
HW as unionBox,
|
|
62241
62247
|
$B as unwrapConstruct,
|
|
62242
62248
|
E2 as useBoard,
|
|
62243
62249
|
_q as useCalendarDrag,
|
|
62244
62250
|
Gee as useCommandPalette,
|
|
62245
62251
|
M6 as useContrast,
|
|
62246
|
-
|
|
62247
|
-
|
|
62248
|
-
|
|
62252
|
+
i7 as useCreateDragSession,
|
|
62253
|
+
f7 as useDragAnnouncements,
|
|
62254
|
+
l7 as useDragLive,
|
|
62249
62255
|
Ste as useDragSession,
|
|
62250
62256
|
qi as useDragState,
|
|
62251
|
-
|
|
62252
|
-
|
|
62257
|
+
c7 as useDraggable,
|
|
62258
|
+
u7 as useDropContainer,
|
|
62253
62259
|
zq as useEventKeyboard,
|
|
62254
|
-
|
|
62260
|
+
I7 as useFillHeight,
|
|
62255
62261
|
Nq as useGridNavigation,
|
|
62256
62262
|
Xte as useHasPermission,
|
|
62257
62263
|
T6 as useMotionPreference,
|
|
@@ -62279,7 +62285,7 @@ export {
|
|
|
62279
62285
|
he as useUiStrings,
|
|
62280
62286
|
Lee as weekDays,
|
|
62281
62287
|
vm as weekdayName,
|
|
62282
|
-
|
|
62288
|
+
sW as windowPageNumbers,
|
|
62283
62289
|
zr as write,
|
|
62284
62290
|
HJ as writeAll,
|
|
62285
62291
|
wa as writeSelection,
|