@fileverse-dev/ddoc 3.0.45-patch-4 → 3.0.45-patch-6
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.
|
@@ -5081,7 +5081,7 @@ class gO {
|
|
|
5081
5081
|
}
|
|
5082
5082
|
}
|
|
5083
5083
|
const XM = /* @__PURE__ */ Object.create(null);
|
|
5084
|
-
class
|
|
5084
|
+
class Vt {
|
|
5085
5085
|
/**
|
|
5086
5086
|
Initialize a selection with the head and anchor and ranges. If no
|
|
5087
5087
|
ranges are given, constructs a single range across `$anchor` and
|
|
@@ -5245,7 +5245,7 @@ class qt {
|
|
|
5245
5245
|
return Ct.between(this.$anchor, this.$head).getBookmark();
|
|
5246
5246
|
}
|
|
5247
5247
|
}
|
|
5248
|
-
|
|
5248
|
+
Vt.prototype.visible = !0;
|
|
5249
5249
|
class mO {
|
|
5250
5250
|
/**
|
|
5251
5251
|
Create a range.
|
|
@@ -5258,7 +5258,7 @@ let v$ = !1;
|
|
|
5258
5258
|
function x$(e) {
|
|
5259
5259
|
!v$ && !e.parent.inlineContent && (v$ = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + e.parent.type.name + ")"));
|
|
5260
5260
|
}
|
|
5261
|
-
class Ct extends
|
|
5261
|
+
class Ct extends Vt {
|
|
5262
5262
|
/**
|
|
5263
5263
|
Construct a text selection between the given points.
|
|
5264
5264
|
*/
|
|
@@ -5275,7 +5275,7 @@ class Ct extends qt {
|
|
|
5275
5275
|
map(t, n) {
|
|
5276
5276
|
let r = t.resolve(n.map(this.head));
|
|
5277
5277
|
if (!r.parent.inlineContent)
|
|
5278
|
-
return
|
|
5278
|
+
return Vt.near(r);
|
|
5279
5279
|
let o = t.resolve(n.map(this.anchor));
|
|
5280
5280
|
return new Ct(o.parent.inlineContent ? o : r, r);
|
|
5281
5281
|
}
|
|
@@ -5320,16 +5320,16 @@ class Ct extends qt {
|
|
|
5320
5320
|
static between(t, n, r) {
|
|
5321
5321
|
let o = t.pos - n.pos;
|
|
5322
5322
|
if ((!r || o) && (r = o >= 0 ? 1 : -1), !n.parent.inlineContent) {
|
|
5323
|
-
let i =
|
|
5323
|
+
let i = Vt.findFrom(n, r, !0) || Vt.findFrom(n, -r, !0);
|
|
5324
5324
|
if (i)
|
|
5325
5325
|
n = i.$head;
|
|
5326
5326
|
else
|
|
5327
|
-
return
|
|
5327
|
+
return Vt.near(n, r);
|
|
5328
5328
|
}
|
|
5329
|
-
return t.parent.inlineContent || (o == 0 ? t = n : (t = (
|
|
5329
|
+
return t.parent.inlineContent || (o == 0 ? t = n : (t = (Vt.findFrom(t, -r, !0) || Vt.findFrom(t, r, !0)).$anchor, t.pos < n.pos != o < 0 && (t = n))), new Ct(t, n);
|
|
5330
5330
|
}
|
|
5331
5331
|
}
|
|
5332
|
-
|
|
5332
|
+
Vt.jsonID("text", Ct);
|
|
5333
5333
|
class Hk {
|
|
5334
5334
|
constructor(t, n) {
|
|
5335
5335
|
this.anchor = t, this.head = n;
|
|
@@ -5341,7 +5341,7 @@ class Hk {
|
|
|
5341
5341
|
return Ct.between(t.resolve(this.anchor), t.resolve(this.head));
|
|
5342
5342
|
}
|
|
5343
5343
|
}
|
|
5344
|
-
class Mt extends
|
|
5344
|
+
class Mt extends Vt {
|
|
5345
5345
|
/**
|
|
5346
5346
|
Create a node selection. Does not verify the validity of its
|
|
5347
5347
|
argument.
|
|
@@ -5352,7 +5352,7 @@ class Mt extends qt {
|
|
|
5352
5352
|
}
|
|
5353
5353
|
map(t, n) {
|
|
5354
5354
|
let { deleted: r, pos: o } = n.mapResult(this.anchor), i = t.resolve(o);
|
|
5355
|
-
return r ?
|
|
5355
|
+
return r ? Vt.near(i) : new Mt(i);
|
|
5356
5356
|
}
|
|
5357
5357
|
content() {
|
|
5358
5358
|
return new ft($e.from(this.node), 0, 0);
|
|
@@ -5389,7 +5389,7 @@ class Mt extends qt {
|
|
|
5389
5389
|
}
|
|
5390
5390
|
}
|
|
5391
5391
|
Mt.prototype.visible = !1;
|
|
5392
|
-
|
|
5392
|
+
Vt.jsonID("node", Mt);
|
|
5393
5393
|
class yO {
|
|
5394
5394
|
constructor(t) {
|
|
5395
5395
|
this.anchor = t;
|
|
@@ -5400,10 +5400,10 @@ class yO {
|
|
|
5400
5400
|
}
|
|
5401
5401
|
resolve(t) {
|
|
5402
5402
|
let n = t.resolve(this.anchor), r = n.nodeAfter;
|
|
5403
|
-
return r && Mt.isSelectable(r) ? new Mt(n) :
|
|
5403
|
+
return r && Mt.isSelectable(r) ? new Mt(n) : Vt.near(n);
|
|
5404
5404
|
}
|
|
5405
5405
|
}
|
|
5406
|
-
class pa extends
|
|
5406
|
+
class pa extends Vt {
|
|
5407
5407
|
/**
|
|
5408
5408
|
Create an all-selection over the given document.
|
|
5409
5409
|
*/
|
|
@@ -5413,7 +5413,7 @@ class pa extends qt {
|
|
|
5413
5413
|
replace(t, n = ft.empty) {
|
|
5414
5414
|
if (n == ft.empty) {
|
|
5415
5415
|
t.delete(0, t.doc.content.size);
|
|
5416
|
-
let r =
|
|
5416
|
+
let r = Vt.atStart(t.doc);
|
|
5417
5417
|
r.eq(t.selection) || t.setSelection(r);
|
|
5418
5418
|
} else
|
|
5419
5419
|
super.replace(t, n);
|
|
@@ -5437,7 +5437,7 @@ class pa extends qt {
|
|
|
5437
5437
|
return tAe;
|
|
5438
5438
|
}
|
|
5439
5439
|
}
|
|
5440
|
-
|
|
5440
|
+
Vt.jsonID("all", pa);
|
|
5441
5441
|
const tAe = {
|
|
5442
5442
|
map() {
|
|
5443
5443
|
return this;
|
|
@@ -5473,7 +5473,7 @@ function w$(e, t, n) {
|
|
|
5473
5473
|
let i = e.mapping.maps[r], a;
|
|
5474
5474
|
i.forEach((s, l, u, c) => {
|
|
5475
5475
|
a == null && (a = c);
|
|
5476
|
-
}), e.setSelection(
|
|
5476
|
+
}), e.setSelection(Vt.near(e.doc.resolve(a), n));
|
|
5477
5477
|
}
|
|
5478
5478
|
const k$ = 1, Rv = 2, F$ = 4;
|
|
5479
5479
|
let nAe = class extends gO {
|
|
@@ -5588,7 +5588,7 @@ let nAe = class extends gO {
|
|
|
5588
5588
|
let a = this.doc.resolve(n);
|
|
5589
5589
|
i = r == n ? a.marks() : a.marksAcross(this.doc.resolve(r));
|
|
5590
5590
|
}
|
|
5591
|
-
return this.replaceRangeWith(n, r, o.text(t, i)), !this.selection.empty && this.selection.to == n + t.length && this.setSelection(
|
|
5591
|
+
return this.replaceRangeWith(n, r, o.text(t, i)), !this.selection.empty && this.selection.to == n + t.length && this.setSelection(Vt.near(this.selection.$to)), this;
|
|
5592
5592
|
}
|
|
5593
5593
|
}
|
|
5594
5594
|
/**
|
|
@@ -5646,7 +5646,7 @@ const rAe = [
|
|
|
5646
5646
|
}),
|
|
5647
5647
|
new by("selection", {
|
|
5648
5648
|
init(e, t) {
|
|
5649
|
-
return e.selection ||
|
|
5649
|
+
return e.selection || Vt.atStart(t.doc);
|
|
5650
5650
|
},
|
|
5651
5651
|
apply(e) {
|
|
5652
5652
|
return e.selection;
|
|
@@ -5826,7 +5826,7 @@ class k2 {
|
|
|
5826
5826
|
if (a.name == "doc")
|
|
5827
5827
|
i.doc = t0.fromJSON(t.schema, n.doc);
|
|
5828
5828
|
else if (a.name == "selection")
|
|
5829
|
-
i.selection =
|
|
5829
|
+
i.selection = Vt.fromJSON(i.doc, n.selection);
|
|
5830
5830
|
else if (a.name == "storedMarks")
|
|
5831
5831
|
n.storedMarks && (i.storedMarks = n.storedMarks.map(t.schema.markFromJSON));
|
|
5832
5832
|
else {
|
|
@@ -5912,7 +5912,7 @@ const gle = (e, t, n) => {
|
|
|
5912
5912
|
if (s && s.slice.size < s.to - s.from) {
|
|
5913
5913
|
if (t) {
|
|
5914
5914
|
let l = e.tr.step(s);
|
|
5915
|
-
l.setSelection(bg(i, "end") ?
|
|
5915
|
+
l.setSelection(bg(i, "end") ? Vt.findFrom(l.doc.resolve(l.mapping.map(o.pos, -1)), -1) : Mt.create(l.doc, o.pos - i.nodeSize)), t(l.scrollIntoView());
|
|
5916
5916
|
}
|
|
5917
5917
|
return !0;
|
|
5918
5918
|
}
|
|
@@ -6011,7 +6011,7 @@ const vle = (e, t, n) => {
|
|
|
6011
6011
|
if (a && a.slice.size < a.to - a.from) {
|
|
6012
6012
|
if (t) {
|
|
6013
6013
|
let s = e.tr.step(a);
|
|
6014
|
-
s.setSelection(bg(i, "start") ?
|
|
6014
|
+
s.setSelection(bg(i, "start") ? Vt.findFrom(s.doc.resolve(s.mapping.map(o.pos)), 1) : Mt.create(s.doc, s.mapping.map(o.pos))), t(s.scrollIntoView());
|
|
6015
6015
|
}
|
|
6016
6016
|
return !0;
|
|
6017
6017
|
}
|
|
@@ -6087,7 +6087,7 @@ const uAe = (e, t) => {
|
|
|
6087
6087
|
return !1;
|
|
6088
6088
|
if (t) {
|
|
6089
6089
|
let s = n.after(), l = e.tr.replaceWith(s, s, a.createAndFill());
|
|
6090
|
-
l.setSelection(
|
|
6090
|
+
l.setSelection(Vt.near(l.doc.resolve(s), 1)), t(l.scrollIntoView());
|
|
6091
6091
|
}
|
|
6092
6092
|
return !0;
|
|
6093
6093
|
}, kle = (e, t) => {
|
|
@@ -6167,7 +6167,7 @@ function Cle(e, t, n, r) {
|
|
|
6167
6167
|
}
|
|
6168
6168
|
return !0;
|
|
6169
6169
|
}
|
|
6170
|
-
let c = i.type.spec.isolating || r > 0 && l ? null :
|
|
6170
|
+
let c = i.type.spec.isolating || r > 0 && l ? null : Vt.findFrom(t, 1), d = c && c.$from.blockRange(c.$to), f = d && vm(d);
|
|
6171
6171
|
if (f != null && f >= t.depth)
|
|
6172
6172
|
return n && n(e.tr.lift(d, f).scrollIntoView()), !0;
|
|
6173
6173
|
if (u && bg(i, "start", !0) && bg(o, "end")) {
|
|
@@ -7926,7 +7926,7 @@ function iSe(e) {
|
|
|
7926
7926
|
}
|
|
7927
7927
|
function IL(e, t) {
|
|
7928
7928
|
let { $anchor: n, $head: r } = e.selection, o = t > 0 ? n.max(r) : n.min(r), i = o.parent.inlineContent ? o.depth ? e.doc.resolve(t > 0 ? o.after() : o.before()) : null : o;
|
|
7929
|
-
return i &&
|
|
7929
|
+
return i && Vt.findFrom(i, t);
|
|
7930
7930
|
}
|
|
7931
7931
|
function Ld(e, t) {
|
|
7932
7932
|
return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()), !0;
|
|
@@ -8113,7 +8113,7 @@ function q$(e, t, n) {
|
|
|
8113
8113
|
return Ld(e, a);
|
|
8114
8114
|
}
|
|
8115
8115
|
if (!o.parent.inlineContent) {
|
|
8116
|
-
let a = t < 0 ? o : i, s = r instanceof pa ?
|
|
8116
|
+
let a = t < 0 ? o : i, s = r instanceof pa ? Vt.near(a, t) : Vt.findFrom(a, t);
|
|
8117
8117
|
return s ? Ld(e, s) : !1;
|
|
8118
8118
|
}
|
|
8119
8119
|
return !1;
|
|
@@ -8561,7 +8561,7 @@ class LSe {
|
|
|
8561
8561
|
// (hidden) cursor is doesn't change the selection, and
|
|
8562
8562
|
// thus doesn't get a reaction from ProseMirror. This
|
|
8563
8563
|
// works around that.
|
|
8564
|
-
fi && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (W2(this.view,
|
|
8564
|
+
fi && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (W2(this.view, Vt.near(this.view.state.doc.resolve(n.pos))), t.preventDefault()) : Gd(this.view, "pointer");
|
|
8565
8565
|
}
|
|
8566
8566
|
move(t) {
|
|
8567
8567
|
this.updateAllowDefault(t), Gd(this.view, "pointer"), t.buttons == 0 && this.done();
|
|
@@ -9432,7 +9432,7 @@ class $Se {
|
|
|
9432
9432
|
}
|
|
9433
9433
|
}
|
|
9434
9434
|
let u = null;
|
|
9435
|
-
i < 0 && o && t.input.lastFocus > Date.now() - 200 && Math.max(t.input.lastTouch, t.input.lastClick.time) < Date.now() - 300 && qk(r) && (u = CO(t)) && u.eq(
|
|
9435
|
+
i < 0 && o && t.input.lastFocus > Date.now() - 200 && Math.max(t.input.lastTouch, t.input.lastClick.time) < Date.now() - 300 && qk(r) && (u = CO(t)) && u.eq(Vt.near(t.state.doc.resolve(0), 1)) ? (t.input.lastFocus = 0, p1(t), this.currentSelection.set(r), t.scrollToSelection()) : (i > -1 || o) && (i > -1 && (t.docView.markDirty(i, a), GSe(t)), this.handleDOMChange(i, a, s, l), t.docView && t.docView.dirty ? t.updateState(t.state) : this.currentSelection.eq(r) || p1(t), this.currentSelection.set(r));
|
|
9436
9436
|
}
|
|
9437
9437
|
registerMutation(t, n) {
|
|
9438
9438
|
if (n.indexOf(t.target) > -1)
|
|
@@ -10507,7 +10507,7 @@ function u1(e = 0, t = 0, n = 0) {
|
|
|
10507
10507
|
function uue(e, t = null) {
|
|
10508
10508
|
if (!t)
|
|
10509
10509
|
return null;
|
|
10510
|
-
const n =
|
|
10510
|
+
const n = Vt.atStart(e), r = Vt.atEnd(e);
|
|
10511
10511
|
if (t === "start" || t === !0)
|
|
10512
10512
|
return n;
|
|
10513
10513
|
if (t === "end")
|
|
@@ -10614,7 +10614,7 @@ function jTe(e, t, n) {
|
|
|
10614
10614
|
let a = 0;
|
|
10615
10615
|
i.forEach((s, l, u, c) => {
|
|
10616
10616
|
a === 0 && (a = c);
|
|
10617
|
-
}), e.setSelection(
|
|
10617
|
+
}), e.setSelection(Vt.near(e.doc.resolve(a), n));
|
|
10618
10618
|
}
|
|
10619
10619
|
var LTe = (e) => !("type" in e), NTe = (e, t, n) => ({ tr: r, dispatch: o, editor: i }) => {
|
|
10620
10620
|
var a;
|
|
@@ -12446,7 +12446,7 @@ var Pt = class Eue extends PO {
|
|
|
12446
12446
|
() => a.undoInputRule(),
|
|
12447
12447
|
// maybe convert first text block node to default node
|
|
12448
12448
|
() => a.command(({ tr: s }) => {
|
|
12449
|
-
const { selection: l, doc: u } = s, { empty: c, $anchor: d } = l, { pos: f, parent: h } = d, p = d.parent.isTextblock && f > 0 ? s.doc.resolve(f - 1) : d, g = p.parent.type.spec.isolating, m = d.pos - d.parentOffset, y = g && p.parent.childCount === 1 ? m === d.pos :
|
|
12449
|
+
const { selection: l, doc: u } = s, { empty: c, $anchor: d } = l, { pos: f, parent: h } = d, p = d.parent.isTextblock && f > 0 ? s.doc.resolve(f - 1) : d, g = p.parent.type.spec.isolating, m = d.pos - d.parentOffset, y = g && p.parent.childCount === 1 ? m === d.pos : Vt.atStart(u).from === f;
|
|
12450
12450
|
return !c || !h.type.isTextblock || h.textContent.length || !y || y && d.parent.type.name === "paragraph" ? !1 : a.clearNodes();
|
|
12451
12451
|
}),
|
|
12452
12452
|
() => a.deleteSelection(),
|
|
@@ -12501,7 +12501,7 @@ var Pt = class Eue extends PO {
|
|
|
12501
12501
|
const r = e.some((g) => g.docChanged) && !t.doc.eq(n.doc), o = e.some((g) => g.getMeta("preventClearDocument"));
|
|
12502
12502
|
if (!r || o)
|
|
12503
12503
|
return;
|
|
12504
|
-
const { empty: i, from: a, to: s } = t.selection, l =
|
|
12504
|
+
const { empty: i, from: a, to: s } = t.selection, l = Vt.atStart(t.doc).from, u = Vt.atEnd(t.doc).to;
|
|
12505
12505
|
if (i || !(a === l && s === u) || !Qk(n.doc))
|
|
12506
12506
|
return;
|
|
12507
12507
|
const f = n.tr, h = $k({
|
|
@@ -16051,7 +16051,7 @@ function kNe(e, t, n) {
|
|
|
16051
16051
|
return !1;
|
|
16052
16052
|
return !0;
|
|
16053
16053
|
}
|
|
16054
|
-
var ar = class Zc extends
|
|
16054
|
+
var ar = class Zc extends Vt {
|
|
16055
16055
|
// A table selection is identified by its anchor and head cells. The
|
|
16056
16056
|
// positions given to this constructor should point _before_ two
|
|
16057
16057
|
// cells in the same table. They may be the same, to select a single
|
|
@@ -16138,7 +16138,7 @@ var ar = class Zc extends qt {
|
|
|
16138
16138
|
a ? ft.empty : n
|
|
16139
16139
|
);
|
|
16140
16140
|
}
|
|
16141
|
-
const i =
|
|
16141
|
+
const i = Vt.findFrom(
|
|
16142
16142
|
t.doc.resolve(t.mapping.slice(r).map(this.to)),
|
|
16143
16143
|
-1
|
|
16144
16144
|
);
|
|
@@ -16216,7 +16216,7 @@ var ar = class Zc extends qt {
|
|
|
16216
16216
|
}
|
|
16217
16217
|
};
|
|
16218
16218
|
ar.prototype.visible = !1;
|
|
16219
|
-
|
|
16219
|
+
Vt.jsonID("cell", ar);
|
|
16220
16220
|
var FNe = class yce {
|
|
16221
16221
|
constructor(t, n) {
|
|
16222
16222
|
this.anchor = t, this.head = n;
|
|
@@ -16226,7 +16226,7 @@ var FNe = class yce {
|
|
|
16226
16226
|
}
|
|
16227
16227
|
resolve(t) {
|
|
16228
16228
|
const n = t.resolve(this.anchor), r = t.resolve(this.head);
|
|
16229
|
-
return n.parent.type.spec.tableRole == "row" && r.parent.type.spec.tableRole == "row" && n.index() < n.parent.childCount && r.index() < r.parent.childCount && KO(n, r) ? new ar(n, r) :
|
|
16229
|
+
return n.parent.type.spec.tableRole == "row" && r.parent.type.spec.tableRole == "row" && n.index() < n.parent.childCount && r.index() < r.parent.childCount && KO(n, r) ? new ar(n, r) : Vt.near(r, 1);
|
|
16230
16230
|
}
|
|
16231
16231
|
};
|
|
16232
16232
|
function CNe(e) {
|
|
@@ -17016,7 +17016,7 @@ function Vv(e, t) {
|
|
|
17016
17016
|
return q8(
|
|
17017
17017
|
n,
|
|
17018
17018
|
r,
|
|
17019
|
-
|
|
17019
|
+
Vt.near(i.$headCell, t)
|
|
17020
17020
|
);
|
|
17021
17021
|
if (e != "horiz" && !i.empty) return !1;
|
|
17022
17022
|
const a = kce(o, e, t);
|
|
@@ -17025,12 +17025,12 @@ function Vv(e, t) {
|
|
|
17025
17025
|
return q8(
|
|
17026
17026
|
n,
|
|
17027
17027
|
r,
|
|
17028
|
-
|
|
17028
|
+
Vt.near(n.doc.resolve(i.head + t), t)
|
|
17029
17029
|
);
|
|
17030
17030
|
{
|
|
17031
17031
|
const s = n.doc.resolve(a), l = gce(s, e, t);
|
|
17032
17032
|
let u;
|
|
17033
|
-
return l ? u =
|
|
17033
|
+
return l ? u = Vt.near(l, 1) : t < 0 ? u = Vt.near(n.doc.resolve(s.before(-1)), -1) : u = Vt.near(n.doc.resolve(s.after(-1)), 1), q8(n, r, u);
|
|
17034
17034
|
}
|
|
17035
17035
|
};
|
|
17036
17036
|
}
|
|
@@ -47050,7 +47050,7 @@ const _At = ul(
|
|
|
47050
47050
|
size: "md"
|
|
47051
47051
|
}
|
|
47052
47052
|
}
|
|
47053
|
-
),
|
|
47053
|
+
), Wt = W.forwardRef(
|
|
47054
47054
|
({
|
|
47055
47055
|
className: e,
|
|
47056
47056
|
variant: t,
|
|
@@ -47110,7 +47110,7 @@ const _At = ul(
|
|
|
47110
47110
|
}
|
|
47111
47111
|
)
|
|
47112
47112
|
);
|
|
47113
|
-
|
|
47113
|
+
Wt.displayName = "Button";
|
|
47114
47114
|
const JO = ({ children: e, className: t }) => {
|
|
47115
47115
|
const n = Te("flex space-x-2", t);
|
|
47116
47116
|
return /* @__PURE__ */ A.jsx("div", { className: n, children: e });
|
|
@@ -47126,7 +47126,7 @@ const JO = ({ children: e, className: t }) => {
|
|
|
47126
47126
|
fill: s,
|
|
47127
47127
|
...l
|
|
47128
47128
|
}, u) => /* @__PURE__ */ A.jsx(
|
|
47129
|
-
|
|
47129
|
+
Wt,
|
|
47130
47130
|
{
|
|
47131
47131
|
ref: u,
|
|
47132
47132
|
variant: t,
|
|
@@ -50229,46 +50229,46 @@ const Em = [
|
|
|
50229
50229
|
test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
|
|
50230
50230
|
parse: parseFloat,
|
|
50231
50231
|
transform: (t) => `${t}${e}`
|
|
50232
|
-
}), Ed = /* @__PURE__ */ n5("deg"), Gu = /* @__PURE__ */ n5("%"),
|
|
50232
|
+
}), Ed = /* @__PURE__ */ n5("deg"), Gu = /* @__PURE__ */ n5("%"), Ht = /* @__PURE__ */ n5("px"), Mjt = /* @__PURE__ */ n5("vh"), Ejt = /* @__PURE__ */ n5("vw"), hZ = {
|
|
50233
50233
|
...Gu,
|
|
50234
50234
|
parse: (e) => Gu.parse(e) / 100,
|
|
50235
50235
|
transform: (e) => Gu.transform(e * 100)
|
|
50236
50236
|
}, Ajt = {
|
|
50237
50237
|
// Border props
|
|
50238
|
-
borderWidth:
|
|
50239
|
-
borderTopWidth:
|
|
50240
|
-
borderRightWidth:
|
|
50241
|
-
borderBottomWidth:
|
|
50242
|
-
borderLeftWidth:
|
|
50243
|
-
borderRadius:
|
|
50244
|
-
radius:
|
|
50245
|
-
borderTopLeftRadius:
|
|
50246
|
-
borderTopRightRadius:
|
|
50247
|
-
borderBottomRightRadius:
|
|
50248
|
-
borderBottomLeftRadius:
|
|
50238
|
+
borderWidth: Ht,
|
|
50239
|
+
borderTopWidth: Ht,
|
|
50240
|
+
borderRightWidth: Ht,
|
|
50241
|
+
borderBottomWidth: Ht,
|
|
50242
|
+
borderLeftWidth: Ht,
|
|
50243
|
+
borderRadius: Ht,
|
|
50244
|
+
radius: Ht,
|
|
50245
|
+
borderTopLeftRadius: Ht,
|
|
50246
|
+
borderTopRightRadius: Ht,
|
|
50247
|
+
borderBottomRightRadius: Ht,
|
|
50248
|
+
borderBottomLeftRadius: Ht,
|
|
50249
50249
|
// Positioning props
|
|
50250
|
-
width:
|
|
50251
|
-
maxWidth:
|
|
50252
|
-
height:
|
|
50253
|
-
maxHeight:
|
|
50254
|
-
top:
|
|
50255
|
-
right:
|
|
50256
|
-
bottom:
|
|
50257
|
-
left:
|
|
50250
|
+
width: Ht,
|
|
50251
|
+
maxWidth: Ht,
|
|
50252
|
+
height: Ht,
|
|
50253
|
+
maxHeight: Ht,
|
|
50254
|
+
top: Ht,
|
|
50255
|
+
right: Ht,
|
|
50256
|
+
bottom: Ht,
|
|
50257
|
+
left: Ht,
|
|
50258
50258
|
// Spacing props
|
|
50259
|
-
padding:
|
|
50260
|
-
paddingTop:
|
|
50261
|
-
paddingRight:
|
|
50262
|
-
paddingBottom:
|
|
50263
|
-
paddingLeft:
|
|
50264
|
-
margin:
|
|
50265
|
-
marginTop:
|
|
50266
|
-
marginRight:
|
|
50267
|
-
marginBottom:
|
|
50268
|
-
marginLeft:
|
|
50259
|
+
padding: Ht,
|
|
50260
|
+
paddingTop: Ht,
|
|
50261
|
+
paddingRight: Ht,
|
|
50262
|
+
paddingBottom: Ht,
|
|
50263
|
+
paddingLeft: Ht,
|
|
50264
|
+
margin: Ht,
|
|
50265
|
+
marginTop: Ht,
|
|
50266
|
+
marginRight: Ht,
|
|
50267
|
+
marginBottom: Ht,
|
|
50268
|
+
marginLeft: Ht,
|
|
50269
50269
|
// Misc
|
|
50270
|
-
backgroundPositionX:
|
|
50271
|
-
backgroundPositionY:
|
|
50270
|
+
backgroundPositionX: Ht,
|
|
50271
|
+
backgroundPositionY: Ht
|
|
50272
50272
|
}, Sjt = {
|
|
50273
50273
|
rotate: Ed,
|
|
50274
50274
|
rotateX: Ed,
|
|
@@ -50281,19 +50281,19 @@ const Em = [
|
|
|
50281
50281
|
skew: Ed,
|
|
50282
50282
|
skewX: Ed,
|
|
50283
50283
|
skewY: Ed,
|
|
50284
|
-
distance:
|
|
50285
|
-
translateX:
|
|
50286
|
-
translateY:
|
|
50287
|
-
translateZ:
|
|
50288
|
-
x:
|
|
50289
|
-
y:
|
|
50290
|
-
z:
|
|
50291
|
-
perspective:
|
|
50292
|
-
transformPerspective:
|
|
50284
|
+
distance: Ht,
|
|
50285
|
+
translateX: Ht,
|
|
50286
|
+
translateY: Ht,
|
|
50287
|
+
translateZ: Ht,
|
|
50288
|
+
x: Ht,
|
|
50289
|
+
y: Ht,
|
|
50290
|
+
z: Ht,
|
|
50291
|
+
perspective: Ht,
|
|
50292
|
+
transformPerspective: Ht,
|
|
50293
50293
|
opacity: Z4,
|
|
50294
50294
|
originX: hZ,
|
|
50295
50295
|
originY: hZ,
|
|
50296
|
-
originZ:
|
|
50296
|
+
originZ: Ht
|
|
50297
50297
|
}, pZ = {
|
|
50298
50298
|
...Am,
|
|
50299
50299
|
transform: Math.round
|
|
@@ -50301,7 +50301,7 @@ const Em = [
|
|
|
50301
50301
|
...Ajt,
|
|
50302
50302
|
...Sjt,
|
|
50303
50303
|
zIndex: pZ,
|
|
50304
|
-
size:
|
|
50304
|
+
size: Ht,
|
|
50305
50305
|
// SVG
|
|
50306
50306
|
fillOpacity: Z4,
|
|
50307
50307
|
strokeOpacity: Z4,
|
|
@@ -50362,12 +50362,12 @@ const Njt = {
|
|
|
50362
50362
|
function Ijt(e, t, n = 1, r = 0, o = !0) {
|
|
50363
50363
|
e.pathLength = 1;
|
|
50364
50364
|
const i = o ? Njt : _jt;
|
|
50365
|
-
e[i.offset] =
|
|
50366
|
-
const a =
|
|
50365
|
+
e[i.offset] = Ht.transform(-r);
|
|
50366
|
+
const a = Ht.transform(t), s = Ht.transform(n);
|
|
50367
50367
|
e[i.array] = `${a} ${s}`;
|
|
50368
50368
|
}
|
|
50369
50369
|
function gZ(e, t, n) {
|
|
50370
|
-
return typeof e == "string" ? e :
|
|
50370
|
+
return typeof e == "string" ? e : Ht.transform(t + n * e);
|
|
50371
50371
|
}
|
|
50372
50372
|
function Bjt(e, t, n) {
|
|
50373
50373
|
const r = gZ(t, e.x, e.width), o = gZ(n, e.y, e.height);
|
|
@@ -51247,7 +51247,7 @@ function jLt(e, t, n) {
|
|
|
51247
51247
|
for (const i of t)
|
|
51248
51248
|
e[i] = mde(n, o);
|
|
51249
51249
|
}
|
|
51250
|
-
const FZ = (e) => e === Am || e ===
|
|
51250
|
+
const FZ = (e) => e === Am || e === Ht, CZ = (e, t) => parseFloat(e.split(", ")[t]), DZ = (e, t) => (n, { transform: r }) => {
|
|
51251
51251
|
if (r === "none" || !r)
|
|
51252
51252
|
return 0;
|
|
51253
51253
|
const o = r.match(/^matrix3d\((.+)\)$/u);
|
|
@@ -51376,7 +51376,7 @@ function xde(e, t, n = 1) {
|
|
|
51376
51376
|
const wde = (e) => (t) => t.test(e), PLt = {
|
|
51377
51377
|
test: (e) => e === "auto",
|
|
51378
51378
|
parse: (e) => e
|
|
51379
|
-
}, kde = [Am,
|
|
51379
|
+
}, kde = [Am, Ht, Gu, Ed, Ejt, Mjt, PLt], MZ = (e) => kde.find(wde(e));
|
|
51380
51380
|
class Fde extends UR {
|
|
51381
51381
|
constructor(t, n, r, o, i) {
|
|
51382
51382
|
super(t, n, r, o, i, !0);
|
|
@@ -53130,7 +53130,7 @@ const A3 = {
|
|
|
53130
53130
|
if (!t.target)
|
|
53131
53131
|
return e;
|
|
53132
53132
|
if (typeof e == "string")
|
|
53133
|
-
if (
|
|
53133
|
+
if (Ht.test(e))
|
|
53134
53134
|
e = parseFloat(e);
|
|
53135
53135
|
else
|
|
53136
53136
|
return e;
|
|
@@ -53237,7 +53237,7 @@ function F_t(e, t) {
|
|
|
53237
53237
|
};
|
|
53238
53238
|
return br.read(r, !0), () => y0(r);
|
|
53239
53239
|
}
|
|
53240
|
-
const qde = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], C_t = qde.length, eK = (e) => typeof e == "string" ? parseFloat(e) : e, tK = (e) => typeof e == "number" ||
|
|
53240
|
+
const qde = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], C_t = qde.length, eK = (e) => typeof e == "string" ? parseFloat(e) : e, tK = (e) => typeof e == "number" || Ht.test(e);
|
|
53241
53241
|
function D_t(e, t, n, r, o, i) {
|
|
53242
53242
|
o ? (e.opacity = _r(
|
|
53243
53243
|
0,
|
|
@@ -54923,7 +54923,7 @@ const a0e = ({
|
|
|
54923
54923
|
);
|
|
54924
54924
|
return r ? null : /* @__PURE__ */ A.jsx("div", { ref: l, children: /* @__PURE__ */ A.jsxs(S1, { open: a, onOpenChange: s, children: [
|
|
54925
54925
|
/* @__PURE__ */ A.jsx(T1, { asChild: !0, children: /* @__PURE__ */ A.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ A.jsxs(
|
|
54926
|
-
|
|
54926
|
+
Wt,
|
|
54927
54927
|
{
|
|
54928
54928
|
onClick: d,
|
|
54929
54929
|
size: "md",
|
|
@@ -61613,7 +61613,7 @@ const Mpe = ({
|
|
|
61613
61613
|
),
|
|
61614
61614
|
(a || i) && /* @__PURE__ */ A.jsxs(pP, { className: "px-6 gap-2 w-full", children: [
|
|
61615
61615
|
a && /* @__PURE__ */ A.jsx(GF, { asChild: !0, children: /* @__PURE__ */ A.jsx(
|
|
61616
|
-
|
|
61616
|
+
Wt,
|
|
61617
61617
|
{
|
|
61618
61618
|
disabled: (a == null ? void 0 : a.isLoading) || (i == null ? void 0 : i.isDisabled),
|
|
61619
61619
|
isLoading: a == null ? void 0 : a.isLoading,
|
|
@@ -61624,7 +61624,7 @@ const Mpe = ({
|
|
|
61624
61624
|
}
|
|
61625
61625
|
) }),
|
|
61626
61626
|
i && /* @__PURE__ */ A.jsx(
|
|
61627
|
-
|
|
61627
|
+
Wt,
|
|
61628
61628
|
{
|
|
61629
61629
|
disabled: (i == null ? void 0 : i.isLoading) || (i == null ? void 0 : i.isDisabled),
|
|
61630
61630
|
isLoading: i == null ? void 0 : i.isLoading,
|
|
@@ -61667,7 +61667,7 @@ const Mpe = ({
|
|
|
61667
61667
|
),
|
|
61668
61668
|
(a || i) && /* @__PURE__ */ A.jsxs(kpe, { className: "px-4 gap-2", children: [
|
|
61669
61669
|
a && /* @__PURE__ */ A.jsx(bpe, { asChild: !0, children: /* @__PURE__ */ A.jsx(
|
|
61670
|
-
|
|
61670
|
+
Wt,
|
|
61671
61671
|
{
|
|
61672
61672
|
disabled: (a == null ? void 0 : a.isLoading) || (a == null ? void 0 : a.isDisabled),
|
|
61673
61673
|
isLoading: a == null ? void 0 : a.isLoading,
|
|
@@ -61678,7 +61678,7 @@ const Mpe = ({
|
|
|
61678
61678
|
}
|
|
61679
61679
|
) }),
|
|
61680
61680
|
i && /* @__PURE__ */ A.jsx(
|
|
61681
|
-
|
|
61681
|
+
Wt,
|
|
61682
61682
|
{
|
|
61683
61683
|
disabled: (i == null ? void 0 : i.isLoading) || (i == null ? void 0 : i.isDisabled),
|
|
61684
61684
|
isLoading: i == null ? void 0 : i.isLoading,
|
|
@@ -82739,7 +82739,7 @@ hn(
|
|
|
82739
82739
|
)
|
|
82740
82740
|
] }),
|
|
82741
82741
|
/* @__PURE__ */ A.jsx(
|
|
82742
|
-
|
|
82742
|
+
Wt,
|
|
82743
82743
|
{
|
|
82744
82744
|
variant: "ghost",
|
|
82745
82745
|
className: "min-w-fit bg-transparent hidden lg:block color-text-default",
|
|
@@ -82761,7 +82761,7 @@ hn(
|
|
|
82761
82761
|
}
|
|
82762
82762
|
) }) : /* @__PURE__ */ A.jsxs("div", { className: "w-full h-full mt-4 space-y-3", children: [
|
|
82763
82763
|
/* @__PURE__ */ A.jsx(
|
|
82764
|
-
|
|
82764
|
+
Wt,
|
|
82765
82765
|
{
|
|
82766
82766
|
size: "lg",
|
|
82767
82767
|
variant: "secondary",
|
|
@@ -82829,7 +82829,7 @@ const rVt = ({
|
|
|
82829
82829
|
),
|
|
82830
82830
|
/* @__PURE__ */ A.jsxs(pP, { className: Te("px-5 pb-5 gap-2 w-full", d), children: [
|
|
82831
82831
|
a && /* @__PURE__ */ A.jsx(GF, { asChild: !0, children: /* @__PURE__ */ A.jsx(
|
|
82832
|
-
|
|
82832
|
+
Wt,
|
|
82833
82833
|
{
|
|
82834
82834
|
disabled: a == null ? void 0 : a.isLoading,
|
|
82835
82835
|
isLoading: a == null ? void 0 : a.isLoading,
|
|
@@ -82840,7 +82840,7 @@ const rVt = ({
|
|
|
82840
82840
|
}
|
|
82841
82841
|
) }),
|
|
82842
82842
|
i && /* @__PURE__ */ A.jsx(
|
|
82843
|
-
|
|
82843
|
+
Wt,
|
|
82844
82844
|
{
|
|
82845
82845
|
disabled: i == null ? void 0 : i.isLoading,
|
|
82846
82846
|
isLoading: i == null ? void 0 : i.isLoading,
|
|
@@ -94001,7 +94001,7 @@ async function SC(e, t) {
|
|
|
94001
94001
|
});
|
|
94002
94002
|
return ie === "0x" ? { data: void 0 } : { data: ie };
|
|
94003
94003
|
} catch (B) {
|
|
94004
|
-
const I = jJt(B), { offchainLookup: U, offchainLookupSignature: $ } = await import("./ccip-
|
|
94004
|
+
const I = jJt(B), { offchainLookup: U, offchainLookupSignature: $ } = await import("./ccip-DoTilXE-.mjs");
|
|
94005
94005
|
if (e.ccipRead !== !1 && (I == null ? void 0 : I.slice(0, 10)) === $ && x)
|
|
94006
94006
|
return { data: await U(e, { data: I, to: x }) };
|
|
94007
94007
|
throw _ && (I == null ? void 0 : I.slice(0, 10)) === "0x101bb98d" ? new cXt({ factory: f }) : k3e(B, {
|
|
@@ -107757,7 +107757,7 @@ const KA = (e) => {
|
|
|
107757
107757
|
);
|
|
107758
107758
|
}),
|
|
107759
107759
|
/* @__PURE__ */ M.jsxs(
|
|
107760
|
-
|
|
107760
|
+
Wt,
|
|
107761
107761
|
{
|
|
107762
107762
|
variant: "ghost",
|
|
107763
107763
|
onMouseDown: (r) => r.preventDefault(),
|
|
@@ -107911,9 +107911,9 @@ const KA = (e) => {
|
|
|
107911
107911
|
}
|
|
107912
107912
|
),
|
|
107913
107913
|
/* @__PURE__ */ M.jsxs("div", { className: "h-full flex items-center gap-2", children: [
|
|
107914
|
-
/* @__PURE__ */ M.jsx(
|
|
107914
|
+
/* @__PURE__ */ M.jsx(Wt, { onClick: () => l(), className: "min-w-fit h-[36px]", children: "Apply" }),
|
|
107915
107915
|
/* @__PURE__ */ M.jsx(
|
|
107916
|
-
|
|
107916
|
+
Wt,
|
|
107917
107917
|
{
|
|
107918
107918
|
variant: "secondary",
|
|
107919
107919
|
onClick: () => {
|
|
@@ -107952,7 +107952,7 @@ const KA = (e) => {
|
|
|
107952
107952
|
}
|
|
107953
107953
|
];
|
|
107954
107954
|
return /* @__PURE__ */ M.jsx("div", { ref: e, className: "z-50 w-48 color-bg-default rounded p-1", children: /* @__PURE__ */ M.jsx("div", { className: "flex flex-col gap-1 justify-center w-fit sm:w-full transition-all", children: n.map((r) => /* @__PURE__ */ M.jsxs(
|
|
107955
|
-
|
|
107955
|
+
Wt,
|
|
107956
107956
|
{
|
|
107957
107957
|
variant: "ghost",
|
|
107958
107958
|
onMouseDown: (o) => o.preventDefault(),
|
|
@@ -108014,7 +108014,7 @@ const KA = (e) => {
|
|
|
108014
108014
|
);
|
|
108015
108015
|
}),
|
|
108016
108016
|
/* @__PURE__ */ M.jsxs(
|
|
108017
|
-
|
|
108017
|
+
Wt,
|
|
108018
108018
|
{
|
|
108019
108019
|
variant: "ghost",
|
|
108020
108020
|
onMouseDown: (r) => r.preventDefault(),
|
|
@@ -109405,7 +109405,7 @@ const KA = (e) => {
|
|
|
109405
109405
|
}
|
|
109406
109406
|
),
|
|
109407
109407
|
/* @__PURE__ */ M.jsx("div", { className: "h-full flex items-center justify-end", children: /* @__PURE__ */ M.jsx(
|
|
109408
|
-
|
|
109408
|
+
Wt,
|
|
109409
109409
|
{
|
|
109410
109410
|
"data-testid": "comment-dropdown-send",
|
|
109411
109411
|
onClick: te,
|
|
@@ -109530,7 +109530,7 @@ const KA = (e) => {
|
|
|
109530
109530
|
}
|
|
109531
109531
|
),
|
|
109532
109532
|
/* @__PURE__ */ M.jsx("div", { className: "h-full flex justify-end pt-2", children: /* @__PURE__ */ M.jsx(
|
|
109533
|
-
|
|
109533
|
+
Wt,
|
|
109534
109534
|
{
|
|
109535
109535
|
onClick: re,
|
|
109536
109536
|
className: "px-4 py-2 w-20 min-w-20 h-9",
|
|
@@ -110095,7 +110095,7 @@ const Qsn = /* @__PURE__ */ H0(Jsn), Z3 = () => {
|
|
|
110095
110095
|
),
|
|
110096
110096
|
/* @__PURE__ */ M.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
110097
110097
|
/* @__PURE__ */ M.jsx("div", { className: "grid grid-cols-2 gap-2", children: bf.slice(0, -1).map((F) => /* @__PURE__ */ M.jsxs(
|
|
110098
|
-
|
|
110098
|
+
Wt,
|
|
110099
110099
|
{
|
|
110100
110100
|
variant: "ghost",
|
|
110101
110101
|
size: "md",
|
|
@@ -110109,7 +110109,7 @@ const Qsn = /* @__PURE__ */ H0(Jsn), Z3 = () => {
|
|
|
110109
110109
|
F.label
|
|
110110
110110
|
)) }),
|
|
110111
110111
|
/* @__PURE__ */ M.jsxs(
|
|
110112
|
-
|
|
110112
|
+
Wt,
|
|
110113
110113
|
{
|
|
110114
110114
|
variant: "ghost",
|
|
110115
110115
|
size: "md",
|
|
@@ -110170,7 +110170,7 @@ const Qsn = /* @__PURE__ */ H0(Jsn), Z3 = () => {
|
|
|
110170
110170
|
}
|
|
110171
110171
|
),
|
|
110172
110172
|
/* @__PURE__ */ M.jsx(
|
|
110173
|
-
|
|
110173
|
+
Wt,
|
|
110174
110174
|
{
|
|
110175
110175
|
variant: "ghost",
|
|
110176
110176
|
size: "md",
|
|
@@ -110183,7 +110183,7 @@ const Qsn = /* @__PURE__ */ H0(Jsn), Z3 = () => {
|
|
|
110183
110183
|
] }),
|
|
110184
110184
|
d && /* @__PURE__ */ M.jsx("div", { className: "text-helper-text-sm color-text-danger", children: d }),
|
|
110185
110185
|
/* @__PURE__ */ M.jsx(
|
|
110186
|
-
|
|
110186
|
+
Wt,
|
|
110187
110187
|
{
|
|
110188
110188
|
variant: "default",
|
|
110189
110189
|
size: "md",
|
|
@@ -110786,7 +110786,7 @@ const Qsn = /* @__PURE__ */ H0(Jsn), Z3 = () => {
|
|
|
110786
110786
|
}
|
|
110787
110787
|
throw Error("no ancestor found");
|
|
110788
110788
|
};
|
|
110789
|
-
class Uw extends
|
|
110789
|
+
class Uw extends Vt {
|
|
110790
110790
|
constructor(n) {
|
|
110791
110791
|
const { $from: r, $to: o } = n;
|
|
110792
110792
|
super(r, o);
|
|
@@ -111705,46 +111705,46 @@ const $m = [
|
|
|
111705
111705
|
test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
|
|
111706
111706
|
parse: parseFloat,
|
|
111707
111707
|
transform: (t) => `${t}${e}`
|
|
111708
|
-
}), Sd = /* @__PURE__ */ W5("deg"), Xu = /* @__PURE__ */ W5("%"),
|
|
111708
|
+
}), Sd = /* @__PURE__ */ W5("deg"), Xu = /* @__PURE__ */ W5("%"), qt = /* @__PURE__ */ W5("px"), qln = /* @__PURE__ */ W5("vh"), Vln = /* @__PURE__ */ W5("vw"), kJ = {
|
|
111709
111709
|
...Xu,
|
|
111710
111710
|
parse: (e) => Xu.parse(e) / 100,
|
|
111711
111711
|
transform: (e) => Xu.transform(e * 100)
|
|
111712
111712
|
}, Wln = {
|
|
111713
111713
|
// Border props
|
|
111714
|
-
borderWidth:
|
|
111715
|
-
borderTopWidth:
|
|
111716
|
-
borderRightWidth:
|
|
111717
|
-
borderBottomWidth:
|
|
111718
|
-
borderLeftWidth:
|
|
111719
|
-
borderRadius:
|
|
111720
|
-
radius:
|
|
111721
|
-
borderTopLeftRadius:
|
|
111722
|
-
borderTopRightRadius:
|
|
111723
|
-
borderBottomRightRadius:
|
|
111724
|
-
borderBottomLeftRadius:
|
|
111714
|
+
borderWidth: qt,
|
|
111715
|
+
borderTopWidth: qt,
|
|
111716
|
+
borderRightWidth: qt,
|
|
111717
|
+
borderBottomWidth: qt,
|
|
111718
|
+
borderLeftWidth: qt,
|
|
111719
|
+
borderRadius: qt,
|
|
111720
|
+
radius: qt,
|
|
111721
|
+
borderTopLeftRadius: qt,
|
|
111722
|
+
borderTopRightRadius: qt,
|
|
111723
|
+
borderBottomRightRadius: qt,
|
|
111724
|
+
borderBottomLeftRadius: qt,
|
|
111725
111725
|
// Positioning props
|
|
111726
|
-
width:
|
|
111727
|
-
maxWidth:
|
|
111728
|
-
height:
|
|
111729
|
-
maxHeight:
|
|
111730
|
-
top:
|
|
111731
|
-
right:
|
|
111732
|
-
bottom:
|
|
111733
|
-
left:
|
|
111726
|
+
width: qt,
|
|
111727
|
+
maxWidth: qt,
|
|
111728
|
+
height: qt,
|
|
111729
|
+
maxHeight: qt,
|
|
111730
|
+
top: qt,
|
|
111731
|
+
right: qt,
|
|
111732
|
+
bottom: qt,
|
|
111733
|
+
left: qt,
|
|
111734
111734
|
// Spacing props
|
|
111735
|
-
padding:
|
|
111736
|
-
paddingTop:
|
|
111737
|
-
paddingRight:
|
|
111738
|
-
paddingBottom:
|
|
111739
|
-
paddingLeft:
|
|
111740
|
-
margin:
|
|
111741
|
-
marginTop:
|
|
111742
|
-
marginRight:
|
|
111743
|
-
marginBottom:
|
|
111744
|
-
marginLeft:
|
|
111735
|
+
padding: qt,
|
|
111736
|
+
paddingTop: qt,
|
|
111737
|
+
paddingRight: qt,
|
|
111738
|
+
paddingBottom: qt,
|
|
111739
|
+
paddingLeft: qt,
|
|
111740
|
+
margin: qt,
|
|
111741
|
+
marginTop: qt,
|
|
111742
|
+
marginRight: qt,
|
|
111743
|
+
marginBottom: qt,
|
|
111744
|
+
marginLeft: qt,
|
|
111745
111745
|
// Misc
|
|
111746
|
-
backgroundPositionX:
|
|
111747
|
-
backgroundPositionY:
|
|
111746
|
+
backgroundPositionX: qt,
|
|
111747
|
+
backgroundPositionY: qt
|
|
111748
111748
|
}, $ln = {
|
|
111749
111749
|
rotate: Sd,
|
|
111750
111750
|
rotateX: Sd,
|
|
@@ -111757,19 +111757,19 @@ const $m = [
|
|
|
111757
111757
|
skew: Sd,
|
|
111758
111758
|
skewX: Sd,
|
|
111759
111759
|
skewY: Sd,
|
|
111760
|
-
distance:
|
|
111761
|
-
translateX:
|
|
111762
|
-
translateY:
|
|
111763
|
-
translateZ:
|
|
111764
|
-
x:
|
|
111765
|
-
y:
|
|
111766
|
-
z:
|
|
111767
|
-
perspective:
|
|
111768
|
-
transformPerspective:
|
|
111760
|
+
distance: qt,
|
|
111761
|
+
translateX: qt,
|
|
111762
|
+
translateY: qt,
|
|
111763
|
+
translateZ: qt,
|
|
111764
|
+
x: qt,
|
|
111765
|
+
y: qt,
|
|
111766
|
+
z: qt,
|
|
111767
|
+
perspective: qt,
|
|
111768
|
+
transformPerspective: qt,
|
|
111769
111769
|
opacity: $b,
|
|
111770
111770
|
originX: kJ,
|
|
111771
111771
|
originY: kJ,
|
|
111772
|
-
originZ:
|
|
111772
|
+
originZ: qt
|
|
111773
111773
|
}, FJ = {
|
|
111774
111774
|
...Gm,
|
|
111775
111775
|
transform: Math.round
|
|
@@ -111777,7 +111777,7 @@ const $m = [
|
|
|
111777
111777
|
...Wln,
|
|
111778
111778
|
...$ln,
|
|
111779
111779
|
zIndex: FJ,
|
|
111780
|
-
size:
|
|
111780
|
+
size: qt,
|
|
111781
111781
|
// SVG
|
|
111782
111782
|
fillOpacity: $b,
|
|
111783
111783
|
strokeOpacity: $b,
|
|
@@ -111838,12 +111838,12 @@ const Yln = {
|
|
|
111838
111838
|
function Jln(e, t, n = 1, r = 0, o = !0) {
|
|
111839
111839
|
e.pathLength = 1;
|
|
111840
111840
|
const i = o ? Yln : Xln;
|
|
111841
|
-
e[i.offset] =
|
|
111842
|
-
const a =
|
|
111841
|
+
e[i.offset] = qt.transform(-r);
|
|
111842
|
+
const a = qt.transform(t), s = qt.transform(n);
|
|
111843
111843
|
e[i.array] = `${a} ${s}`;
|
|
111844
111844
|
}
|
|
111845
111845
|
function CJ(e, t, n) {
|
|
111846
|
-
return typeof e == "string" ? e :
|
|
111846
|
+
return typeof e == "string" ? e : qt.transform(t + n * e);
|
|
111847
111847
|
}
|
|
111848
111848
|
function Qln(e, t, n) {
|
|
111849
111849
|
const r = CJ(t, e.x, e.width), o = CJ(n, e.y, e.height);
|
|
@@ -112723,7 +112723,7 @@ function Zun(e, t, n) {
|
|
|
112723
112723
|
for (const i of t)
|
|
112724
112724
|
e[i] = Lbe(n, o);
|
|
112725
112725
|
}
|
|
112726
|
-
const LJ = (e) => e === Gm || e ===
|
|
112726
|
+
const LJ = (e) => e === Gm || e === qt, NJ = (e, t) => parseFloat(e.split(", ")[t]), _J = (e, t) => (n, { transform: r }) => {
|
|
112727
112727
|
if (r === "none" || !r)
|
|
112728
112728
|
return 0;
|
|
112729
112729
|
const o = r.match(/^matrix3d\((.+)\)$/u);
|
|
@@ -112852,7 +112852,7 @@ function Bbe(e, t, n = 1) {
|
|
|
112852
112852
|
const Obe = (e) => (t) => t.test(e), ncn = {
|
|
112853
112853
|
test: (e) => e === "auto",
|
|
112854
112854
|
parse: (e) => e
|
|
112855
|
-
}, Rbe = [Gm,
|
|
112855
|
+
}, Rbe = [Gm, qt, Xu, Sd, Vln, qln, ncn], IJ = (e) => Rbe.find(Obe(e));
|
|
112856
112856
|
class Pbe extends BU {
|
|
112857
112857
|
constructor(t, n, r, o, i) {
|
|
112858
112858
|
super(t, n, r, o, i, !0);
|
|
@@ -114606,7 +114606,7 @@ const K3 = {
|
|
|
114606
114606
|
if (!t.target)
|
|
114607
114607
|
return e;
|
|
114608
114608
|
if (typeof e == "string")
|
|
114609
|
-
if (
|
|
114609
|
+
if (qt.test(e))
|
|
114610
114610
|
e = parseFloat(e);
|
|
114611
114611
|
else
|
|
114612
114612
|
return e;
|
|
@@ -114713,7 +114713,7 @@ function z1n(e, t) {
|
|
|
114713
114713
|
};
|
|
114714
114714
|
return xr.read(r, !0), () => A0(r);
|
|
114715
114715
|
}
|
|
114716
|
-
const i6e = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], U1n = i6e.length, uQ = (e) => typeof e == "string" ? parseFloat(e) : e, cQ = (e) => typeof e == "number" ||
|
|
114716
|
+
const i6e = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], U1n = i6e.length, uQ = (e) => typeof e == "string" ? parseFloat(e) : e, cQ = (e) => typeof e == "number" || qt.test(e);
|
|
114717
114717
|
function H1n(e, t, n, r, o, i) {
|
|
114718
114718
|
o ? (e.opacity = Or(
|
|
114719
114719
|
0,
|
|
@@ -124390,7 +124390,7 @@ ${n}
|
|
|
124390
124390
|
if (!i || o.parent.type !== this.type || !(o.parentOffset === o.parent.nodeSize - 2))
|
|
124391
124391
|
return !1;
|
|
124392
124392
|
const s = o.after();
|
|
124393
|
-
return s === void 0 ? !1 : r.nodeAt(s) ? e.commands.command(({ tr: u }) => (u.setSelection(
|
|
124393
|
+
return s === void 0 ? !1 : r.nodeAt(s) ? e.commands.command(({ tr: u }) => (u.setSelection(Vt.near(r.resolve(s))), !0)) : e.commands.exitCode();
|
|
124394
124394
|
}
|
|
124395
124395
|
};
|
|
124396
124396
|
},
|
|
@@ -126602,7 +126602,7 @@ class L2n {
|
|
|
126602
126602
|
this.editorView.dom.contains(t.relatedTarget) || this.setCursor(null);
|
|
126603
126603
|
}
|
|
126604
126604
|
}
|
|
126605
|
-
class Hr extends
|
|
126605
|
+
class Hr extends Vt {
|
|
126606
126606
|
/**
|
|
126607
126607
|
Create a gap cursor.
|
|
126608
126608
|
*/
|
|
@@ -126611,7 +126611,7 @@ class Hr extends qt {
|
|
|
126611
126611
|
}
|
|
126612
126612
|
map(t, n) {
|
|
126613
126613
|
let r = t.resolve(n.map(this.head));
|
|
126614
|
-
return Hr.valid(r) ? new Hr(r) :
|
|
126614
|
+
return Hr.valid(r) ? new Hr(r) : Vt.near(r);
|
|
126615
126615
|
}
|
|
126616
126616
|
content() {
|
|
126617
126617
|
return ft.empty;
|
|
@@ -126689,7 +126689,7 @@ class Hr extends qt {
|
|
|
126689
126689
|
}
|
|
126690
126690
|
Hr.prototype.visible = !1;
|
|
126691
126691
|
Hr.findFrom = Hr.findGapCursorFrom;
|
|
126692
|
-
|
|
126692
|
+
Vt.jsonID("gapcursor", Hr);
|
|
126693
126693
|
class wH {
|
|
126694
126694
|
constructor(t) {
|
|
126695
126695
|
this.pos = t;
|
|
@@ -126699,7 +126699,7 @@ class wH {
|
|
|
126699
126699
|
}
|
|
126700
126700
|
resolve(t) {
|
|
126701
126701
|
let n = t.resolve(this.pos);
|
|
126702
|
-
return Hr.valid(n) ? new Hr(n) :
|
|
126702
|
+
return Hr.valid(n) ? new Hr(n) : Vt.near(n);
|
|
126703
126703
|
}
|
|
126704
126704
|
}
|
|
126705
126705
|
function V5e(e) {
|
|
@@ -133371,7 +133371,7 @@ const yyn = (e) => {
|
|
|
133371
133371
|
}
|
|
133372
133372
|
) : typeof e == "string" ? /* @__PURE__ */ M.jsx("span", { className: t, children: e }) : null, Wee = (e, t, n, r, o, i, a) => i || a ? null : /* @__PURE__ */ M.jsxs(JO, { className: "template-buttons space-x-0 gap-2 absolute top-8 left-0 md:!left-[unset] md:-translate-y-1 md:!right-0 md:!top-0 z-40", children: [
|
|
133373
133373
|
e.map((s, l) => /* @__PURE__ */ M.jsxs(
|
|
133374
|
-
|
|
133374
|
+
Wt,
|
|
133375
133375
|
{
|
|
133376
133376
|
onClick: s.onClick,
|
|
133377
133377
|
variant: "ghost",
|
|
@@ -133389,7 +133389,7 @@ const yyn = (e) => {
|
|
|
133389
133389
|
align: "end",
|
|
133390
133390
|
sideOffset: 10,
|
|
133391
133391
|
anchorTrigger: /* @__PURE__ */ M.jsx(
|
|
133392
|
-
|
|
133392
|
+
Wt,
|
|
133393
133393
|
{
|
|
133394
133394
|
variant: "ghost",
|
|
133395
133395
|
className: "gap-2 color-bg-default-hover text-body-sm color-text-default rounded-lg hover:brightness-95 transition-all w-full min-w-0 !p-[10px]",
|
|
@@ -133398,7 +133398,7 @@ const yyn = (e) => {
|
|
|
133398
133398
|
),
|
|
133399
133399
|
content: /* @__PURE__ */ M.jsxs("div", { className: "flex flex-col gap-1 p-2 w-[12rem]", children: [
|
|
133400
133400
|
/* @__PURE__ */ M.jsx("div", { className: "max-h-44 overflow-auto gap-1 flex flex-col", children: t.slice(0, n).map((s, l) => /* @__PURE__ */ M.jsxs(
|
|
133401
|
-
|
|
133401
|
+
Wt,
|
|
133402
133402
|
{
|
|
133403
133403
|
onClick: s.onClick,
|
|
133404
133404
|
variant: "ghost",
|
|
@@ -133412,7 +133412,7 @@ const yyn = (e) => {
|
|
|
133412
133412
|
)) }),
|
|
133413
133413
|
/* @__PURE__ */ M.jsx(Rh, { className: "w-full !border-t-[1px]" }),
|
|
133414
133414
|
/* @__PURE__ */ M.jsxs(
|
|
133415
|
-
|
|
133415
|
+
Wt,
|
|
133416
133416
|
{
|
|
133417
133417
|
variant: "ghost",
|
|
133418
133418
|
className: "justify-between gap-2 text-body-sm color-text-default min-w-fit px-2 rounded-lg",
|
|
@@ -133436,7 +133436,7 @@ const yyn = (e) => {
|
|
|
133436
133436
|
)
|
|
133437
133437
|
] }), Sy = Le.memo(
|
|
133438
133438
|
hn(({ onClick: e, icon: t, text: n, variant: r = "ghost", className: o = "" }, i) => /* @__PURE__ */ M.jsx(jzt, { asChild: !0, children: /* @__PURE__ */ M.jsxs(
|
|
133439
|
-
|
|
133439
|
+
Wt,
|
|
133440
133440
|
{
|
|
133441
133441
|
ref: i,
|
|
133442
133442
|
variant: r,
|
|
@@ -136844,7 +136844,7 @@ const Hbn = [
|
|
|
136844
136844
|
)
|
|
136845
136845
|
).map(([f, h], p, g) => /* @__PURE__ */ M.jsxs("div", { children: [
|
|
136846
136846
|
h.map((m) => /* @__PURE__ */ M.jsx("div", { children: /* @__PURE__ */ M.jsxs(
|
|
136847
|
-
|
|
136847
|
+
Wt,
|
|
136848
136848
|
{
|
|
136849
136849
|
variant: "ghost",
|
|
136850
136850
|
className: "!items-center w-full !justify-start text-body-sm-bold gap-3 !px-2",
|
|
@@ -174968,7 +174968,7 @@ function LLn({
|
|
|
174968
174968
|
),
|
|
174969
174969
|
/* @__PURE__ */ M.jsx("div", { className: "w-[1px] h-4 vertical-divider mx-1" }),
|
|
174970
174970
|
/* @__PURE__ */ M.jsx(_n, { text: "Copy code", children: /* @__PURE__ */ M.jsx(
|
|
174971
|
-
|
|
174971
|
+
Wt,
|
|
174972
174972
|
{
|
|
174973
174973
|
variant: "ghost",
|
|
174974
174974
|
size: "sm",
|
|
@@ -175002,7 +175002,7 @@ function LLn({
|
|
|
175002
175002
|
) }),
|
|
175003
175003
|
/* @__PURE__ */ M.jsx("div", { className: "w-[1px] h-4 vertical-divider mx-1" }),
|
|
175004
175004
|
/* @__PURE__ */ M.jsx(_n, { text: "Line numbers", children: /* @__PURE__ */ M.jsx(
|
|
175005
|
-
|
|
175005
|
+
Wt,
|
|
175006
175006
|
{
|
|
175007
175007
|
variant: "ghost",
|
|
175008
175008
|
size: "sm",
|
|
@@ -175016,7 +175016,7 @@ function LLn({
|
|
|
175016
175016
|
) }),
|
|
175017
175017
|
/* @__PURE__ */ M.jsx("div", { className: "w-[1px] h-4 vertical-divider mx-1" }),
|
|
175018
175018
|
/* @__PURE__ */ M.jsx(_n, { text: "Word wrap", children: /* @__PURE__ */ M.jsx(
|
|
175019
|
-
|
|
175019
|
+
Wt,
|
|
175020
175020
|
{
|
|
175021
175021
|
variant: "ghost",
|
|
175022
175022
|
size: "sm",
|
|
@@ -250934,7 +250934,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
250934
250934
|
) }),
|
|
250935
250935
|
/* @__PURE__ */ M.jsxs("div", { className: "flex justify-end gap-2 mt-2", children: [
|
|
250936
250936
|
/* @__PURE__ */ M.jsx(
|
|
250937
|
-
|
|
250937
|
+
Wt,
|
|
250938
250938
|
{
|
|
250939
250939
|
variant: "ghost",
|
|
250940
250940
|
onClick: fe,
|
|
@@ -250943,7 +250943,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
250943
250943
|
}
|
|
250944
250944
|
),
|
|
250945
250945
|
/* @__PURE__ */ M.jsx(
|
|
250946
|
-
|
|
250946
|
+
Wt,
|
|
250947
250947
|
{
|
|
250948
250948
|
variant: "default",
|
|
250949
250949
|
onClick: ee,
|
|
@@ -251051,7 +251051,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
251051
251051
|
] })
|
|
251052
251052
|
] }),
|
|
251053
251053
|
/* @__PURE__ */ M.jsx(
|
|
251054
|
-
|
|
251054
|
+
Wt,
|
|
251055
251055
|
{
|
|
251056
251056
|
onClick: s ? ae : K,
|
|
251057
251057
|
disabled: !u.trim() || i && !s,
|
|
@@ -251064,7 +251064,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
251064
251064
|
),
|
|
251065
251065
|
d && /* @__PURE__ */ M.jsxs("div", { className: "flex flex-row gap-2 w-full border-t color-border-default py-2 justify-between", children: [
|
|
251066
251066
|
/* @__PURE__ */ M.jsxs(
|
|
251067
|
-
|
|
251067
|
+
Wt,
|
|
251068
251068
|
{
|
|
251069
251069
|
variant: "ghost",
|
|
251070
251070
|
onClick: X,
|
|
@@ -251077,7 +251077,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
251077
251077
|
),
|
|
251078
251078
|
/* @__PURE__ */ M.jsxs("div", { className: "flex gap-0", children: [
|
|
251079
251079
|
!y && /* @__PURE__ */ M.jsxs(
|
|
251080
|
-
|
|
251080
|
+
Wt,
|
|
251081
251081
|
{
|
|
251082
251082
|
variant: "ghost",
|
|
251083
251083
|
onClick: ne,
|
|
@@ -251092,7 +251092,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
251092
251092
|
}
|
|
251093
251093
|
),
|
|
251094
251094
|
/* @__PURE__ */ M.jsxs(
|
|
251095
|
-
|
|
251095
|
+
Wt,
|
|
251096
251096
|
{
|
|
251097
251097
|
variant: "ghost",
|
|
251098
251098
|
onClick: P,
|
|
@@ -251108,7 +251108,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
251108
251108
|
}
|
|
251109
251109
|
),
|
|
251110
251110
|
/* @__PURE__ */ M.jsxs(
|
|
251111
|
-
|
|
251111
|
+
Wt,
|
|
251112
251112
|
{
|
|
251113
251113
|
variant: "ghost",
|
|
251114
251114
|
onClick: ie,
|
|
@@ -251616,13 +251616,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
251616
251616
|
s,
|
|
251617
251617
|
l
|
|
251618
251618
|
),
|
|
251619
|
-
[
|
|
251620
|
-
t,
|
|
251621
|
-
n,
|
|
251622
|
-
u,
|
|
251623
|
-
s,
|
|
251624
|
-
l
|
|
251625
|
-
]
|
|
251619
|
+
[u, s, l]
|
|
251626
251620
|
), v = lt(
|
|
251627
251621
|
() => QFe.configure({
|
|
251628
251622
|
HTMLAttributes: {
|
|
@@ -264288,7 +264282,7 @@ const nqn = ({
|
|
|
264288
264282
|
}
|
|
264289
264283
|
),
|
|
264290
264284
|
/* @__PURE__ */ M.jsx(
|
|
264291
|
-
|
|
264285
|
+
Wt,
|
|
264292
264286
|
{
|
|
264293
264287
|
"data-testid": "comment-join-btn",
|
|
264294
264288
|
onClick: () => o == null ? void 0 : o(e),
|
|
@@ -264321,7 +264315,7 @@ const nqn = ({
|
|
|
264321
264315
|
)
|
|
264322
264316
|
] }),
|
|
264323
264317
|
/* @__PURE__ */ M.jsx("div", { className: "text-center", children: /* @__PURE__ */ M.jsxs(
|
|
264324
|
-
|
|
264318
|
+
Wt,
|
|
264325
264319
|
{
|
|
264326
264320
|
"data-testid": "comment-ens-btn",
|
|
264327
264321
|
onClick: r ? () => null : i,
|
|
@@ -264488,7 +264482,7 @@ const nqn = ({
|
|
|
264488
264482
|
q.resolved && "hidden"
|
|
264489
264483
|
),
|
|
264490
264484
|
children: h !== q.id ? /* @__PURE__ */ M.jsxs(
|
|
264491
|
-
|
|
264485
|
+
Wt,
|
|
264492
264486
|
{
|
|
264493
264487
|
onClick: (ae) => {
|
|
264494
264488
|
ae.stopPropagation(), d(q.id);
|
|
@@ -264530,7 +264524,7 @@ const nqn = ({
|
|
|
264530
264524
|
),
|
|
264531
264525
|
q.id === e && /* @__PURE__ */ M.jsxs(JO, { className: "w-full justify-end", children: [
|
|
264532
264526
|
/* @__PURE__ */ M.jsx(
|
|
264533
|
-
|
|
264527
|
+
Wt,
|
|
264534
264528
|
{
|
|
264535
264529
|
variant: "ghost",
|
|
264536
264530
|
className: "px-4 py-2 w-20 min-w-20 h-9",
|
|
@@ -264541,7 +264535,7 @@ const nqn = ({
|
|
|
264541
264535
|
}
|
|
264542
264536
|
),
|
|
264543
264537
|
/* @__PURE__ */ M.jsx(
|
|
264544
|
-
|
|
264538
|
+
Wt,
|
|
264545
264539
|
{
|
|
264546
264540
|
"data-testid": "comment-reply-send",
|
|
264547
264541
|
className: "px-4 py-2 w-20 min-w-20 h-9",
|
|
@@ -264591,7 +264585,7 @@ const nqn = ({
|
|
|
264591
264585
|
}
|
|
264592
264586
|
),
|
|
264593
264587
|
/* @__PURE__ */ M.jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ M.jsx(
|
|
264594
|
-
|
|
264588
|
+
Wt,
|
|
264595
264589
|
{
|
|
264596
264590
|
"data-testid": "comment-section-send",
|
|
264597
264591
|
onClick: v,
|
|
@@ -268830,7 +268824,7 @@ const QWn = [
|
|
|
268830
268824
|
"data-emoji-picker": !0,
|
|
268831
268825
|
onClick: (c) => c.stopPropagation(),
|
|
268832
268826
|
children: /* @__PURE__ */ M.jsx(
|
|
268833
|
-
|
|
268827
|
+
Wt,
|
|
268834
268828
|
{
|
|
268835
268829
|
variant: "ghost",
|
|
268836
268830
|
className: Te(
|
|
@@ -269893,7 +269887,7 @@ const u$n = (e) => {
|
|
|
269893
269887
|
children: /* @__PURE__ */ M.jsxs("div", { className: "flex flex-col gap-0.5", ref: r, children: [
|
|
269894
269888
|
/* @__PURE__ */ M.jsx("p", { className: "text-helper-sm text-xs color-text-secondary p-2", children: "Paste as" }),
|
|
269895
269889
|
/* @__PURE__ */ M.jsxs(
|
|
269896
|
-
|
|
269890
|
+
Wt,
|
|
269897
269891
|
{
|
|
269898
269892
|
variant: "ghost",
|
|
269899
269893
|
className: "text-body-sm justify-start px-2 py-[5px] gap-0 focus-visible:bg-[hsl(var(--color-button-secondary-hover))] focus-visible:ring-0 focus-visible:ring-offset-0",
|
|
@@ -269908,7 +269902,7 @@ const u$n = (e) => {
|
|
|
269908
269902
|
}
|
|
269909
269903
|
),
|
|
269910
269904
|
/* @__PURE__ */ M.jsxs(
|
|
269911
|
-
|
|
269905
|
+
Wt,
|
|
269912
269906
|
{
|
|
269913
269907
|
variant: "ghost",
|
|
269914
269908
|
className: "text-body-sm justify-start px-2 py-[5px] gap-0 focus-visible:bg-[hsl(var(--color-button-secondary-hover))] focus-visible:ring-0 focus-visible:ring-offset-0",
|
|
@@ -270013,20 +270007,20 @@ const u$n = (e) => {
|
|
|
270013
270007
|
const [bt, jt] = _e(!1), [Zt, Tt] = _e(!1), on = (() => {
|
|
270014
270008
|
if (!et)
|
|
270015
270009
|
return { canvas: void 0, background: void 0 };
|
|
270016
|
-
const
|
|
270017
|
-
return et.canvasBackground && (
|
|
270018
|
-
canvas: Object.keys(
|
|
270019
|
-
background: Object.keys(
|
|
270010
|
+
const zt = {}, Ut = {};
|
|
270011
|
+
return et.canvasBackground && (zt.backgroundColor = et.canvasBackground), et.textColor && (zt.color = et.textColor), et.fontFamily && (zt.fontFamily = et.fontFamily), et.background && (Ut.background = et.background), {
|
|
270012
|
+
canvas: Object.keys(zt).length > 0 ? zt : void 0,
|
|
270013
|
+
background: Object.keys(Ut).length > 0 ? Ut : void 0
|
|
270020
270014
|
};
|
|
270021
270015
|
})(), gn = () => on.canvas, dn = () => on.background, wn = () => {
|
|
270022
270016
|
if (vt)
|
|
270023
270017
|
return {
|
|
270024
270018
|
minHeight: "100vh"
|
|
270025
270019
|
};
|
|
270026
|
-
const
|
|
270027
|
-
if (!
|
|
270028
|
-
const Nt = {}, or = g$n[
|
|
270029
|
-
return typeof
|
|
270020
|
+
const zt = (et == null ? void 0 : et.orientation) === "landscape" ? "landscape" : "portrait", Ut = m$n[zt][L];
|
|
270021
|
+
if (!Ut) return {};
|
|
270022
|
+
const Nt = {}, or = g$n[zt];
|
|
270023
|
+
return typeof Ut.width == "number" ? (Nt.width = `${Ut.width}px`, Nt.maxWidth = `${Ut.width}px`) : (Nt.width = or.zoomFitWidth, Nt.maxWidth = `${or.zoomFitMaxWidth}px`), Ut.minHeight && (Nt.minHeight = Ut.minHeight), Nt;
|
|
270030
270024
|
}, Sn = ze(null), J = Br("(min-width: 1500px)"), Se = Br("(min-width: 3000px)"), qe = Br("(min-width: 1600px)"), Ke = Br("(min-width: 1360px)"), { isNativeMobile: vt, isIOS: Et } = td(), [yt, pt] = _e(!1), kn = ze(null), Qe = (k == null ? void 0 : k.slice(0, 4)) || [], Ce = k ? Math.max(0, k.length - 4) : 0;
|
|
270031
270025
|
D5(kn, () => {
|
|
270032
270026
|
pt(!1);
|
|
@@ -270108,10 +270102,11 @@ const u$n = (e) => {
|
|
|
270108
270102
|
activeTabId: w3
|
|
270109
270103
|
});
|
|
270110
270104
|
YW.current += 1, Ne(() => {
|
|
270111
|
-
const
|
|
270112
|
-
|
|
270105
|
+
const zt = [], Ut = XW.current;
|
|
270106
|
+
Ut.onChange !== l && zt.push("onChange"), Ut.renderNavbar !== a && zt.push("renderNavbar"), Ut.extensions !== Ae && zt.push("extensions"), Ut.metadataProxyUrl !== Ee && zt.push("metadataProxyUrl"), Ut.collabConfig !== Ze && zt.push("collabConfig"), Ut.activeTabId !== w3 && zt.push("activeTabId"), Zo("DdocEditor", "render", {
|
|
270113
270107
|
count: YW.current,
|
|
270114
|
-
changedProps:
|
|
270108
|
+
changedProps: zt,
|
|
270109
|
+
changedPropsLabel: zt.length ? zt.join(",") : "none",
|
|
270115
270110
|
activeTabId: w3,
|
|
270116
270111
|
tabsCount: KW.length,
|
|
270117
270112
|
hasEditor: !!Oe,
|
|
@@ -270135,105 +270130,105 @@ const u$n = (e) => {
|
|
|
270135
270130
|
getEditor: () => Oe,
|
|
270136
270131
|
getYdoc: () => Rt,
|
|
270137
270132
|
refreshYjsIndexedDbProvider: Vn,
|
|
270138
|
-
mergeYjsContents: (
|
|
270139
|
-
const
|
|
270140
|
-
|
|
270133
|
+
mergeYjsContents: (zt) => {
|
|
270134
|
+
const Ut = Ru(
|
|
270135
|
+
zt.map((Nt) => ir(Nt))
|
|
270141
270136
|
);
|
|
270142
|
-
return yc(Rt,
|
|
270137
|
+
return yc(Rt, Ut, "self"), mo(Ut);
|
|
270143
270138
|
},
|
|
270144
|
-
exportContentAsMarkDown: async (
|
|
270139
|
+
exportContentAsMarkDown: async (zt) => {
|
|
270145
270140
|
if (Oe) {
|
|
270146
|
-
const
|
|
270147
|
-
if (
|
|
270148
|
-
const Nt =
|
|
270149
|
-
or.href = Nt, or.download =
|
|
270141
|
+
const Ut = await Oe.commands.exportMarkdownFile();
|
|
270142
|
+
if (Ut) {
|
|
270143
|
+
const Nt = Ut, or = document.createElement("a");
|
|
270144
|
+
or.href = Nt, or.download = zt, document.body.appendChild(or), or.click(), document.body.removeChild(or), URL.revokeObjectURL(Nt);
|
|
270150
270145
|
}
|
|
270151
270146
|
}
|
|
270152
270147
|
},
|
|
270153
270148
|
updateReminderNode: ({
|
|
270154
|
-
id:
|
|
270155
|
-
status:
|
|
270149
|
+
id: zt,
|
|
270150
|
+
status: Ut
|
|
270156
270151
|
}) => {
|
|
270157
270152
|
if (!Oe) throw new Error("cannot update node without editor");
|
|
270158
270153
|
Oe.commands.command(({ tr: Nt, state: or, dispatch: gu }) => {
|
|
270159
270154
|
const { doc: mu } = or;
|
|
270160
270155
|
let HM = !1;
|
|
270161
270156
|
return mu.descendants((ff, qM) => {
|
|
270162
|
-
if (ff.type.name === "reminderBlock" && ff.attrs.reminder.id ===
|
|
270163
|
-
return
|
|
270157
|
+
if (ff.type.name === "reminderBlock" && ff.attrs.reminder.id === zt)
|
|
270158
|
+
return Ut === "cancelled" ? Nt.delete(qM, qM + ff.nodeSize) : Nt.setNodeMarkup(qM, void 0, {
|
|
270164
270159
|
...ff.attrs,
|
|
270165
270160
|
reminder: {
|
|
270166
270161
|
...ff.attrs.reminder,
|
|
270167
|
-
status:
|
|
270162
|
+
status: Ut
|
|
270168
270163
|
}
|
|
270169
270164
|
}), HM = !0, !1;
|
|
270170
270165
|
}), HM && gu ? (gu(Nt), !0) : !1;
|
|
270171
270166
|
});
|
|
270172
270167
|
},
|
|
270173
|
-
updateCollaboratorName: (
|
|
270168
|
+
updateCollaboratorName: (zt) => {
|
|
270174
270169
|
var or, gu;
|
|
270175
270170
|
if (!Oe) {
|
|
270176
270171
|
console.debug("collab: cannot find editor");
|
|
270177
270172
|
return;
|
|
270178
270173
|
}
|
|
270179
|
-
const
|
|
270174
|
+
const Ut = (gu = (or = Oe.storage.collaborationCaret) == null ? void 0 : or.users) == null ? void 0 : gu.find(
|
|
270180
270175
|
(mu) => (mu == null ? void 0 : mu.clientId) === Rt.clientID
|
|
270181
270176
|
), Nt = {
|
|
270182
|
-
name:
|
|
270177
|
+
name: zt
|
|
270183
270178
|
};
|
|
270184
|
-
|
|
270179
|
+
Ut && (Nt.color = Ut.color, Nt.isEns = Ut.isEns), typeof Oe.commands.updateUser == "function" && (Oe.commands.updateUser(Nt), Oe.setEditable(!0));
|
|
270185
270180
|
},
|
|
270186
270181
|
terminateSession: WMe
|
|
270187
270182
|
}),
|
|
270188
270183
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
270189
270184
|
[Oe]
|
|
270190
270185
|
);
|
|
270191
|
-
const JMe = (
|
|
270192
|
-
F == null || F((
|
|
270193
|
-
if (
|
|
270194
|
-
return
|
|
270195
|
-
const Nt =
|
|
270186
|
+
const JMe = (zt) => {
|
|
270187
|
+
F == null || F((Ut) => {
|
|
270188
|
+
if (Ut.length >= 6)
|
|
270189
|
+
return Ut;
|
|
270190
|
+
const Nt = zt.name.split(",").map((gu) => {
|
|
270196
270191
|
const mu = gu.trim();
|
|
270197
270192
|
return (x == null ? void 0 : x.find(
|
|
270198
270193
|
(ff) => ff.name.toLowerCase() === mu.toLowerCase()
|
|
270199
|
-
)) || { name: mu, color:
|
|
270200
|
-
}), or = [...
|
|
270194
|
+
)) || { name: mu, color: zt.color };
|
|
270195
|
+
}), or = [...Ut];
|
|
270201
270196
|
return Nt.forEach((gu) => {
|
|
270202
270197
|
or.some(
|
|
270203
270198
|
(mu) => mu.name.toLowerCase() === gu.name.toLowerCase()
|
|
270204
270199
|
) || or.push(gu);
|
|
270205
270200
|
}), or.slice(0, 6);
|
|
270206
270201
|
});
|
|
270207
|
-
}, JW = (
|
|
270202
|
+
}, JW = (zt) => {
|
|
270208
270203
|
F == null || F(
|
|
270209
|
-
(
|
|
270204
|
+
(Ut) => Ut.filter((Nt) => Nt.name !== zt)
|
|
270210
270205
|
);
|
|
270211
270206
|
}, QMe = () => {
|
|
270212
270207
|
N == null || N(!1);
|
|
270213
|
-
const
|
|
270214
|
-
or && or.startsWith("slides=") && (
|
|
270208
|
+
const zt = new URL(window.location.href), Ut = zt.hash, [Nt, or] = Ut.split("&");
|
|
270209
|
+
or && or.startsWith("slides=") && (zt.hash = Nt, window.history.replaceState({}, "", zt.toString()));
|
|
270215
270210
|
};
|
|
270216
270211
|
Ne(() => {
|
|
270217
270212
|
if (Oe && vt) {
|
|
270218
|
-
const { selection:
|
|
270213
|
+
const { selection: zt } = Oe.state, Ut = Kk(zt), Nt = () => {
|
|
270219
270214
|
jt(!0);
|
|
270220
270215
|
}, or = () => {
|
|
270221
270216
|
jt(!1);
|
|
270222
270217
|
};
|
|
270223
|
-
return !
|
|
270218
|
+
return !Ut && Oe.on("focus", Nt), Ut && Oe.on("blur", or), () => {
|
|
270224
270219
|
Oe.off("focus", Nt), Oe.off("blur", or);
|
|
270225
270220
|
};
|
|
270226
270221
|
}
|
|
270227
270222
|
}, [vt, Oe]), Ne(() => {
|
|
270228
270223
|
if (Oe)
|
|
270229
270224
|
try {
|
|
270230
|
-
const
|
|
270231
|
-
if (!
|
|
270232
|
-
const
|
|
270225
|
+
const zt = Oe.view.dom;
|
|
270226
|
+
if (!zt) return;
|
|
270227
|
+
const Ut = (Nt) => {
|
|
270233
270228
|
Nt.key === "Enter" && Oe.commands.scrollIntoView();
|
|
270234
270229
|
};
|
|
270235
|
-
return
|
|
270236
|
-
|
|
270230
|
+
return zt.addEventListener("keydown", Ut), () => {
|
|
270231
|
+
zt.removeEventListener("keydown", Ut);
|
|
270237
270232
|
};
|
|
270238
270233
|
} catch {
|
|
270239
270234
|
return;
|
|
@@ -270241,20 +270236,20 @@ const u$n = (e) => {
|
|
|
270241
270236
|
}, [Oe]), Ne(() => {
|
|
270242
270237
|
if (!(!vt || !Oe))
|
|
270243
270238
|
try {
|
|
270244
|
-
const
|
|
270245
|
-
if (!
|
|
270246
|
-
const
|
|
270239
|
+
const zt = Oe.view.dom;
|
|
270240
|
+
if (!zt) return;
|
|
270241
|
+
const Ut = () => {
|
|
270247
270242
|
ht.current && ht.current.scrollIntoView();
|
|
270248
270243
|
};
|
|
270249
|
-
return
|
|
270250
|
-
|
|
270244
|
+
return zt.addEventListener("resize", Ut), () => {
|
|
270245
|
+
zt.removeEventListener("resize", Ut);
|
|
270251
270246
|
};
|
|
270252
270247
|
} catch {
|
|
270253
270248
|
return;
|
|
270254
270249
|
}
|
|
270255
270250
|
}, [Oe, ht, vt]);
|
|
270256
270251
|
const QW = Br("(max-width: 768px)"), e$ = () => {
|
|
270257
|
-
var
|
|
270252
|
+
var zt, Ut;
|
|
270258
270253
|
return /* @__PURE__ */ M.jsx(Vm, { children: /* @__PURE__ */ M.jsxs(M.Fragment, { children: [
|
|
270259
270254
|
!e && /* @__PURE__ */ M.jsx(
|
|
270260
270255
|
"div",
|
|
@@ -270409,9 +270404,9 @@ const u$n = (e) => {
|
|
|
270409
270404
|
ipfsImageFetchFn: Ue,
|
|
270410
270405
|
fetchV1ImageFn: Ge,
|
|
270411
270406
|
ipfsImageUploadFn: g,
|
|
270412
|
-
onReminderCreate: (
|
|
270407
|
+
onReminderCreate: (Ut = (zt = Ae == null ? void 0 : Ae.find(
|
|
270413
270408
|
(Nt) => Nt.name === "reminderBlock"
|
|
270414
|
-
)) == null ? void 0 :
|
|
270409
|
+
)) == null ? void 0 : zt.options) == null ? void 0 : Ut.onReminderCreate,
|
|
270415
270410
|
isConnected: pe,
|
|
270416
270411
|
isCollabDocOwner: Ze != null && Ze.roomKey ? Ze == null ? void 0 : Ze.isOwner : !0,
|
|
270417
270412
|
enableCollaboration: n
|
|
@@ -270463,7 +270458,7 @@ const u$n = (e) => {
|
|
|
270463
270458
|
or
|
|
270464
270459
|
)),
|
|
270465
270460
|
Ce > 0 && !yt && /* @__PURE__ */ M.jsxs(
|
|
270466
|
-
|
|
270461
|
+
Wt,
|
|
270467
270462
|
{
|
|
270468
270463
|
variant: "ghost",
|
|
270469
270464
|
className: "!h-6 rounded min-w-fit !px-2 color-bg-secondary text-helper-text-sm",
|
|
@@ -270534,7 +270529,7 @@ const u$n = (e) => {
|
|
|
270534
270529
|
}
|
|
270535
270530
|
),
|
|
270536
270531
|
h && !vt && /* @__PURE__ */ M.jsx(
|
|
270537
|
-
|
|
270532
|
+
Wt,
|
|
270538
270533
|
{
|
|
270539
270534
|
ref: Sn,
|
|
270540
270535
|
onClick: () => {
|
|
@@ -270800,7 +270795,7 @@ const u$n = (e) => {
|
|
|
270800
270795
|
z
|
|
270801
270796
|
)),
|
|
270802
270797
|
L > 0 && !T && /* @__PURE__ */ M.jsxs(
|
|
270803
|
-
|
|
270798
|
+
Wt,
|
|
270804
270799
|
{
|
|
270805
270800
|
variant: "ghost",
|
|
270806
270801
|
className: "!h-6 rounded min-w-fit !px-2 color-bg-secondary text-helper-text-sm",
|