@kedataindo/docflow-vue 0.0.82 → 0.0.83

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 CHANGED
@@ -1113,7 +1113,7 @@ const Hd = {
1113
1113
  preview: "Pratinjau"
1114
1114
  },
1115
1115
  toc: {
1116
- title: "Daftar Isi",
1116
+ title: "DAFTAR ISI",
1117
1117
  empty: "Belum ada judul.",
1118
1118
  untitledHeading: "Judul Tanpa Nama {level}",
1119
1119
  newSection: "Bagian {tag} Baru",
@@ -30373,18 +30373,18 @@ const ks = Ve.create({
30373
30373
  });
30374
30374
  function Y5(e, t) {
30375
30375
  const i = e.type.schema, n = Em(ie.from(e), i);
30376
- return e.isBlock && (t instanceof ie || t.type.name === i.topNodeType.name) ? e6(n) : n;
30376
+ return e.isBlock && (t instanceof ie || t.type.name === i.topNodeType.name) ? eA(n) : n;
30377
30377
  }
30378
- function e6(e) {
30378
+ function eA(e) {
30379
30379
  const i = cc(e).firstElementChild;
30380
30380
  return i.innerHTML = i.innerHTML.trim() ? `
30381
30381
  ${i.innerHTML}
30382
30382
  ` : `
30383
30383
  `, i.outerHTML;
30384
30384
  }
30385
- const t6 = Ve.create({
30385
+ const tA = Ve.create({
30386
30386
  name: "blockquote"
30387
- }), i6 = t6.extend({
30387
+ }), iA = tA.extend({
30388
30388
  /**
30389
30389
  * @return {{markdown: MarkdownNodeSpec}}
30390
30390
  */
@@ -30398,9 +30398,9 @@ const t6 = Ve.create({
30398
30398
  }
30399
30399
  };
30400
30400
  }
30401
- }), n6 = Ve.create({
30401
+ }), nA = Ve.create({
30402
30402
  name: "bulletList"
30403
- }), Rh = n6.extend({
30403
+ }), Rh = nA.extend({
30404
30404
  /**
30405
30405
  * @return {{markdown: MarkdownNodeSpec}}
30406
30406
  */
@@ -30416,9 +30416,9 @@ const t6 = Ve.create({
30416
30416
  }
30417
30417
  };
30418
30418
  }
30419
- }), r6 = Ve.create({
30419
+ }), rA = Ve.create({
30420
30420
  name: "codeBlock"
30421
- }), a6 = r6.extend({
30421
+ }), aA = rA.extend({
30422
30422
  /**
30423
30423
  * @return {{markdown: MarkdownNodeSpec}}
30424
30424
  */
@@ -30443,9 +30443,9 @@ const t6 = Ve.create({
30443
30443
  }
30444
30444
  };
30445
30445
  }
30446
- }), o6 = Ve.create({
30446
+ }), oA = Ve.create({
30447
30447
  name: "hardBreak"
30448
- }), Lh = o6.extend({
30448
+ }), Lh = oA.extend({
30449
30449
  /**
30450
30450
  * @return {{markdown: MarkdownNodeSpec}}
30451
30451
  */
@@ -30466,9 +30466,9 @@ const t6 = Ve.create({
30466
30466
  }
30467
30467
  };
30468
30468
  }
30469
- }), s6 = Ve.create({
30469
+ }), sA = Ve.create({
30470
30470
  name: "heading"
30471
- }), l6 = s6.extend({
30471
+ }), lA = sA.extend({
30472
30472
  /**
30473
30473
  * @return {{markdown: MarkdownNodeSpec}}
30474
30474
  */
@@ -30482,9 +30482,9 @@ const t6 = Ve.create({
30482
30482
  }
30483
30483
  };
30484
30484
  }
30485
- }), u6 = Ve.create({
30485
+ }), uA = Ve.create({
30486
30486
  name: "horizontalRule"
30487
- }), c6 = u6.extend({
30487
+ }), cA = uA.extend({
30488
30488
  /**
30489
30489
  * @return {{markdown: MarkdownNodeSpec}}
30490
30490
  */
@@ -30498,9 +30498,9 @@ const t6 = Ve.create({
30498
30498
  }
30499
30499
  };
30500
30500
  }
30501
- }), f6 = Ve.create({
30501
+ }), fA = Ve.create({
30502
30502
  name: "image"
30503
- }), d6 = f6.extend({
30503
+ }), dA = fA.extend({
30504
30504
  /**
30505
30505
  * @return {{markdown: MarkdownNodeSpec}}
30506
30506
  */
@@ -30514,9 +30514,9 @@ const t6 = Ve.create({
30514
30514
  }
30515
30515
  };
30516
30516
  }
30517
- }), p6 = Ve.create({
30517
+ }), pA = Ve.create({
30518
30518
  name: "listItem"
30519
- }), m6 = p6.extend({
30519
+ }), mA = pA.extend({
30520
30520
  /**
30521
30521
  * @return {{markdown: MarkdownNodeSpec}}
30522
30522
  */
@@ -30530,16 +30530,16 @@ const t6 = Ve.create({
30530
30530
  }
30531
30531
  };
30532
30532
  }
30533
- }), h6 = Ve.create({
30533
+ }), hA = Ve.create({
30534
30534
  name: "orderedList"
30535
30535
  });
30536
- function b6(e, t, i) {
30536
+ function bA(e, t, i) {
30537
30537
  let n = 0;
30538
30538
  for (; i - n > 0 && t.child(i - n - 1).type.name === e.type.name; n++)
30539
30539
  ;
30540
30540
  return n;
30541
30541
  }
30542
- const g6 = h6.extend({
30542
+ const gA = hA.extend({
30543
30543
  /**
30544
30544
  * @return {{markdown: MarkdownNodeSpec}}
30545
30545
  */
@@ -30547,7 +30547,7 @@ const g6 = h6.extend({
30547
30547
  return {
30548
30548
  markdown: {
30549
30549
  serialize(e, t, i, n) {
30550
- const r = t.attrs.start || 1, a = String(r + t.childCount - 1).length, o = e.repeat(" ", a + 2), l = b6(t, i, n) % 2 ? ") " : ". ";
30550
+ const r = t.attrs.start || 1, a = String(r + t.childCount - 1).length, o = e.repeat(" ", a + 2), l = bA(t, i, n) % 2 ? ") " : ". ";
30551
30551
  e.renderList(t, o, (u) => {
30552
30552
  const f = String(r + u);
30553
30553
  return e.repeat(" ", a - f.length) + f + l;
@@ -30559,9 +30559,9 @@ const g6 = h6.extend({
30559
30559
  }
30560
30560
  };
30561
30561
  }
30562
- }), v6 = Ve.create({
30562
+ }), vA = Ve.create({
30563
30563
  name: "paragraph"
30564
- }), x6 = v6.extend({
30564
+ }), xA = vA.extend({
30565
30565
  /**
30566
30566
  * @return {{markdown: MarkdownNodeSpec}}
30567
30567
  */
@@ -30580,9 +30580,9 @@ function dl(e) {
30580
30580
  var t, i;
30581
30581
  return (t = e == null || (i = e.content) === null || i === void 0 ? void 0 : i.content) !== null && t !== void 0 ? t : [];
30582
30582
  }
30583
- const y6 = Ve.create({
30583
+ const yA = Ve.create({
30584
30584
  name: "table"
30585
- }), k6 = y6.extend({
30585
+ }), kA = yA.extend({
30586
30586
  /**
30587
30587
  * @return {{markdown: MarkdownNodeSpec}}
30588
30588
  */
@@ -30590,7 +30590,7 @@ const y6 = Ve.create({
30590
30590
  return {
30591
30591
  markdown: {
30592
30592
  serialize(e, t, i) {
30593
- if (!w6(t)) {
30593
+ if (!wA(t)) {
30594
30594
  ks.storage.markdown.serialize.call(this, e, t, i);
30595
30595
  return;
30596
30596
  }
@@ -30617,13 +30617,13 @@ const y6 = Ve.create({
30617
30617
  function Cd(e) {
30618
30618
  return e.attrs.colspan > 1 || e.attrs.rowspan > 1;
30619
30619
  }
30620
- function w6(e) {
30620
+ function wA(e) {
30621
30621
  const t = dl(e), i = t[0], n = t.slice(1);
30622
30622
  return !(dl(i).some((r) => r.type.name !== "tableHeader" || Cd(r) || r.childCount > 1) || n.some((r) => dl(r).some((a) => a.type.name === "tableHeader" || Cd(a) || a.childCount > 1)));
30623
30623
  }
30624
- const _6 = Ve.create({
30624
+ const _A = Ve.create({
30625
30625
  name: "taskItem"
30626
- }), S6 = _6.extend({
30626
+ }), SA = _A.extend({
30627
30627
  /**
30628
30628
  * @return {{markdown: MarkdownNodeSpec}}
30629
30629
  */
@@ -30645,9 +30645,9 @@ const _6 = Ve.create({
30645
30645
  }
30646
30646
  };
30647
30647
  }
30648
- }), C6 = Ve.create({
30648
+ }), CA = Ve.create({
30649
30649
  name: "taskList"
30650
- }), A6 = C6.extend({
30650
+ }), AA = CA.extend({
30651
30651
  /**
30652
30652
  * @return {{markdown: MarkdownNodeSpec}}
30653
30653
  */
@@ -30668,9 +30668,9 @@ const _6 = Ve.create({
30668
30668
  }
30669
30669
  };
30670
30670
  }
30671
- }), T6 = Ve.create({
30671
+ }), TA = Ve.create({
30672
30672
  name: "text"
30673
- }), E6 = T6.extend({
30673
+ }), EA = TA.extend({
30674
30674
  /**
30675
30675
  * @return {{markdown: MarkdownNodeSpec}}
30676
30676
  */
@@ -30686,9 +30686,9 @@ const _6 = Ve.create({
30686
30686
  }
30687
30687
  };
30688
30688
  }
30689
- }), O6 = Xt.create({
30689
+ }), OA = Xt.create({
30690
30690
  name: "bold"
30691
- }), M6 = O6.extend({
30691
+ }), MA = OA.extend({
30692
30692
  /**
30693
30693
  * @return {{markdown: MarkdownMarkSpec}}
30694
30694
  */
@@ -30702,9 +30702,9 @@ const _6 = Ve.create({
30702
30702
  }
30703
30703
  };
30704
30704
  }
30705
- }), D6 = Xt.create({
30705
+ }), DA = Xt.create({
30706
30706
  name: "code"
30707
- }), I6 = D6.extend({
30707
+ }), IA = DA.extend({
30708
30708
  /**
30709
30709
  * @return {{markdown: MarkdownMarkSpec}}
30710
30710
  */
@@ -30718,9 +30718,9 @@ const _6 = Ve.create({
30718
30718
  }
30719
30719
  };
30720
30720
  }
30721
- }), N6 = Xt.create({
30721
+ }), NA = Xt.create({
30722
30722
  name: "italic"
30723
- }), z6 = N6.extend({
30723
+ }), zA = NA.extend({
30724
30724
  /**
30725
30725
  * @return {{markdown: MarkdownMarkSpec}}
30726
30726
  */
@@ -30734,9 +30734,9 @@ const _6 = Ve.create({
30734
30734
  }
30735
30735
  };
30736
30736
  }
30737
- }), R6 = Xt.create({
30737
+ }), RA = Xt.create({
30738
30738
  name: "link"
30739
- }), L6 = R6.extend({
30739
+ }), LA = RA.extend({
30740
30740
  /**
30741
30741
  * @return {{markdown: MarkdownMarkSpec}}
30742
30742
  */
@@ -30750,9 +30750,9 @@ const _6 = Ve.create({
30750
30750
  }
30751
30751
  };
30752
30752
  }
30753
- }), P6 = Xt.create({
30753
+ }), PA = Xt.create({
30754
30754
  name: "strike"
30755
- }), F6 = P6.extend({
30755
+ }), FA = PA.extend({
30756
30756
  /**
30757
30757
  * @return {{markdown: MarkdownMarkSpec}}
30758
30758
  */
@@ -30770,16 +30770,16 @@ const _6 = Ve.create({
30770
30770
  }
30771
30771
  };
30772
30772
  }
30773
- }), B6 = [i6, Rh, a6, Lh, l6, c6, ks, d6, m6, g6, x6, k6, S6, A6, E6, M6, I6, zh, z6, L6, F6];
30773
+ }), BA = [iA, Rh, aA, Lh, lA, cA, ks, dA, mA, gA, xA, kA, SA, AA, EA, MA, IA, zh, zA, LA, FA];
30774
30774
  function as(e) {
30775
30775
  var t, i;
30776
- const n = (t = e.storage) === null || t === void 0 ? void 0 : t.markdown, r = (i = B6.find((a) => a.name === e.name)) === null || i === void 0 ? void 0 : i.storage.markdown;
30776
+ const n = (t = e.storage) === null || t === void 0 ? void 0 : t.markdown, r = (i = BA.find((a) => a.name === e.name)) === null || i === void 0 ? void 0 : i.storage.markdown;
30777
30777
  return n || r ? {
30778
30778
  ...r,
30779
30779
  ...n
30780
30780
  } : null;
30781
30781
  }
30782
- class U6 {
30782
+ class UA {
30783
30783
  constructor(t) {
30784
30784
  rs(this, "editor", null), this.editor = t;
30785
30785
  }
@@ -30826,7 +30826,7 @@ class U6 {
30826
30826
  } : null;
30827
30827
  }
30828
30828
  }
30829
- class H6 {
30829
+ class HA {
30830
30830
  constructor(t, i) {
30831
30831
  rs(this, "editor", null), rs(this, "md", null);
30832
30832
  let {
@@ -30912,7 +30912,7 @@ class H6 {
30912
30912
  return t.renderer.rules.hardbreak = i(t.renderer.rules.hardbreak), t.renderer.rules.softbreak = i(t.renderer.rules.softbreak), t.renderer.rules.fence = i(t.renderer.rules.fence), t.renderer.rules.code_block = i(t.renderer.rules.code_block), t.renderer.renderToken = i(t.renderer.renderToken.bind(t.renderer)), t;
30913
30913
  }
30914
30914
  }
30915
- const q6 = ft.create({
30915
+ const qA = ft.create({
30916
30916
  name: "markdownClipboard",
30917
30917
  addOptions() {
30918
30918
  return {
@@ -30942,7 +30942,7 @@ const q6 = ft.create({
30942
30942
  }
30943
30943
  })];
30944
30944
  }
30945
- }), j6 = ft.create({
30945
+ }), jA = ft.create({
30946
30946
  name: "markdown",
30947
30947
  priority: 50,
30948
30948
  addOptions() {
@@ -30971,8 +30971,8 @@ const q6 = ft.create({
30971
30971
  options: {
30972
30972
  ...this.options
30973
30973
  },
30974
- parser: new H6(this.editor, this.options),
30975
- serializer: new U6(this.editor),
30974
+ parser: new HA(this.editor, this.options),
30975
+ serializer: new UA(this.editor),
30976
30976
  getMarkdown: () => this.editor.storage.markdown.serializer.serialize(this.editor.state.doc)
30977
30977
  }, this.editor.options.initialContent = this.editor.options.content, this.editor.options.content = this.editor.storage.markdown.parser.parse(this.editor.options.content);
30978
30978
  },
@@ -30988,7 +30988,7 @@ const q6 = ft.create({
30988
30988
  return [V5.configure({
30989
30989
  tight: this.options.tightLists,
30990
30990
  tightClass: this.options.tightListClass
30991
- }), q6.configure({
30991
+ }), qA.configure({
30992
30992
  transformPastedText: this.options.transformPastedText,
30993
30993
  transformCopiedText: this.options.transformCopiedText
30994
30994
  })];
@@ -31082,7 +31082,7 @@ gt({
31082
31082
  }
31083
31083
  }
31084
31084
  });
31085
- function $6() {
31085
+ function $A() {
31086
31086
  return typeof document > "u" ? Promise.resolve(null) : new Promise((e) => {
31087
31087
  const t = document.createElement("input");
31088
31088
  t.type = "file", t.accept = "image/*";
@@ -31108,7 +31108,7 @@ gt({
31108
31108
  return e.commands.setImage({ src: i.src, alt: i.alt, title: i.title });
31109
31109
  const n = e.storage.editorContext, r = n == null ? void 0 : n.onImageUpload;
31110
31110
  if (r)
31111
- return $6().then(async (a) => {
31111
+ return $A().then(async (a) => {
31112
31112
  if (a)
31113
31113
  try {
31114
31114
  const o = await r(a);
@@ -31125,7 +31125,7 @@ gt({
31125
31125
  }
31126
31126
  }
31127
31127
  });
31128
- var V6 = C4.extend({
31128
+ var VA = C4.extend({
31129
31129
  addAttributes() {
31130
31130
  var e;
31131
31131
  return {
@@ -31183,7 +31183,7 @@ var V6 = C4.extend({
31183
31183
  ["tbody", 0]
31184
31184
  ];
31185
31185
  }
31186
- }), W6 = T4.extend({
31186
+ }), WA = T4.extend({
31187
31187
  addAttributes() {
31188
31188
  var e;
31189
31189
  return {
@@ -31215,7 +31215,7 @@ var V6 = C4.extend({
31215
31215
  }
31216
31216
  };
31217
31217
  }
31218
- }), G6 = E4.extend({
31218
+ }), GA = E4.extend({
31219
31219
  addAttributes() {
31220
31220
  var e;
31221
31221
  return {
@@ -31251,10 +31251,10 @@ var V6 = C4.extend({
31251
31251
  gt({
31252
31252
  id: "table",
31253
31253
  tiptapExtensions: [
31254
- V6.configure({ resizable: !1 }),
31254
+ VA.configure({ resizable: !1 }),
31255
31255
  A4,
31256
- W6,
31257
- G6
31256
+ WA,
31257
+ GA
31258
31258
  ],
31259
31259
  toolbar: [
31260
31260
  { id: "insert-table", label: "Insert Table", action: "insertTable", args: [{ rows: 3, cols: 3, withHeaderRow: !0 }], iconComponent: "Table" }
@@ -31271,7 +31271,7 @@ gt({
31271
31271
  toolbar: [{ id: "code-block", label: "Code Block", action: "toggleCodeBlock", iconComponent: "Code" }],
31272
31272
  slashCommands: [{ name: "Code Block", command: "toggleCodeBlock" }]
31273
31273
  });
31274
- function K6(e = {}) {
31274
+ function KA(e = {}) {
31275
31275
  return gt({
31276
31276
  id: "placeholder",
31277
31277
  tiptapExtensions: [
@@ -31281,8 +31281,8 @@ function K6(e = {}) {
31281
31281
  ]
31282
31282
  });
31283
31283
  }
31284
- K6();
31285
- var X6 = Ve.create({
31284
+ KA();
31285
+ var XA = Ve.create({
31286
31286
  name: "pageBreak",
31287
31287
  group: "block",
31288
31288
  selectable: !1,
@@ -31319,7 +31319,7 @@ var X6 = Ve.create({
31319
31319
  });
31320
31320
  gt({
31321
31321
  id: "pageBreak",
31322
- tiptapExtensions: [X6],
31322
+ tiptapExtensions: [XA],
31323
31323
  toolbar: [
31324
31324
  { id: "insert-page-break", label: "Page Break", action: "insertPageBreak", iconComponent: "FileText" }
31325
31325
  ],
@@ -31331,7 +31331,7 @@ gt({
31331
31331
  ]).run()
31332
31332
  }
31333
31333
  });
31334
- var J6 = Ve.create({
31334
+ var JA = Ve.create({
31335
31335
  name: "footnote",
31336
31336
  group: "inline",
31337
31337
  inline: !0,
@@ -31398,7 +31398,7 @@ var J6 = Ve.create({
31398
31398
  });
31399
31399
  gt({
31400
31400
  id: "footnote",
31401
- tiptapExtensions: [J6],
31401
+ tiptapExtensions: [JA],
31402
31402
  toolbar: [
31403
31403
  { id: "insert-footnote", label: "Catatan Kaki", action: "insertFootnote", iconComponent: "FileText" }
31404
31404
  ],
@@ -31420,7 +31420,7 @@ function Ph(e) {
31420
31420
  return !0;
31421
31421
  }), t;
31422
31422
  }
31423
- function Z6(e) {
31423
+ function ZA(e) {
31424
31424
  return Ph(e.state.doc);
31425
31425
  }
31426
31426
  function Fh(e) {
@@ -31446,7 +31446,7 @@ function Fh(e) {
31446
31446
  }
31447
31447
  };
31448
31448
  }
31449
- function Q6(e, t, i) {
31449
+ function QA(e, t, i) {
31450
31450
  const n = e.nodes.tocEntry;
31451
31451
  return t.length === 0 ? [n.create({ level: 1, pos: 0 })] : t.map((r) => {
31452
31452
  const a = [];
@@ -31455,8 +31455,8 @@ function Q6(e, t, i) {
31455
31455
  return o !== null && a.push(e.nodes.tocPageNum.create({ page: o })), n.create({ level: r.level, pos: r.pos }, a);
31456
31456
  });
31457
31457
  }
31458
- function Y6(e) {
31459
- const t = Z6(e);
31458
+ function YA(e) {
31459
+ const t = ZA(e);
31460
31460
  if (t.length === 0)
31461
31461
  return [{ type: "tocEntry", attrs: { level: 1, pos: 0 } }];
31462
31462
  const i = Fh(e);
@@ -31476,7 +31476,7 @@ function Bh(e, t) {
31476
31476
  if (!i) return !1;
31477
31477
  const n = [];
31478
31478
  if (t.doc.descendants((a, o) => a.type.name === "toc" ? (n.push({ pos: o, nodeSize: a.nodeSize }), !1) : !0), n.length === 0) return !1;
31479
- const r = Q6(e.schema, Ph(t.doc), Fh(e));
31479
+ const r = QA(e.schema, Ph(t.doc), Fh(e));
31480
31480
  for (const a of n.reverse())
31481
31481
  t.replaceWith(a.pos, a.pos + a.nodeSize, i.create(null, r));
31482
31482
  return !0;
@@ -31485,15 +31485,15 @@ function Uh(e) {
31485
31485
  const t = e.state.tr;
31486
31486
  return Bh(e, t) ? (e.view.dispatch(t), !0) : !1;
31487
31487
  }
31488
- var eA = ft.create({
31488
+ var e6 = ft.create({
31489
31489
  name: "tocCommands",
31490
31490
  addCommands() {
31491
31491
  return {
31492
- insertToc: () => ({ editor: e, chain: t }) => t().focus().insertContent({ type: "toc", content: Y6(e) }).run(),
31492
+ insertToc: () => ({ editor: e, chain: t }) => t().focus().insertContent({ type: "toc", content: YA(e) }).run(),
31493
31493
  refreshToc: () => ({ editor: e, tr: t }) => Bh(e, t)
31494
31494
  };
31495
31495
  }
31496
- }), tA = Ve.create({
31496
+ }), t6 = Ve.create({
31497
31497
  name: "tocPageNum",
31498
31498
  inline: !0,
31499
31499
  group: "inline",
@@ -31517,7 +31517,7 @@ var eA = ft.create({
31517
31517
  class: "docs-toc__page"
31518
31518
  }), String(e.attrs.page ?? "")];
31519
31519
  }
31520
- }), iA = Ve.create({
31520
+ }), i6 = Ve.create({
31521
31521
  name: "tocEntry",
31522
31522
  content: "inline*",
31523
31523
  defining: !0,
@@ -31544,7 +31544,7 @@ var eA = ft.create({
31544
31544
  class: "docs-toc__entry"
31545
31545
  }), 0];
31546
31546
  }
31547
- }), nA = Ve.create({
31547
+ }), n6 = Ve.create({
31548
31548
  name: "toc",
31549
31549
  group: "block",
31550
31550
  content: "tocEntry+",
@@ -31599,7 +31599,7 @@ var eA = ft.create({
31599
31599
  });
31600
31600
  gt({
31601
31601
  id: "toc",
31602
- tiptapExtensions: [tA, iA, nA, eA],
31602
+ tiptapExtensions: [t6, i6, n6, e6],
31603
31603
  slashCommands: [{ name: "Table of contents", description: "Daftar isi", command: "insertToc" }],
31604
31604
  commands: {
31605
31605
  insertToc: (e) => e.commands.insertToc(),
@@ -31629,7 +31629,7 @@ gt({
31629
31629
  }
31630
31630
  }
31631
31631
  });
31632
- var rA = z4.extend({
31632
+ var r6 = z4.extend({
31633
31633
  parseHTML() {
31634
31634
  return [
31635
31635
  // Standard <mark> tag (default TipTap behavior)
@@ -31645,7 +31645,7 @@ var rA = z4.extend({
31645
31645
  gt({
31646
31646
  id: "highlight",
31647
31647
  tiptapExtensions: [
31648
- rA.configure({
31648
+ r6.configure({
31649
31649
  multicolor: !0
31650
31650
  })
31651
31651
  ],
@@ -31659,7 +31659,7 @@ gt({
31659
31659
  }
31660
31660
  }
31661
31661
  });
31662
- var aA = `<?xml version="1.0" encoding="utf-8"?>
31662
+ var a6 = `<?xml version="1.0" encoding="utf-8"?>
31663
31663
  <style xmlns="http://purl.org/net/xbiblio/csl" class="note" initialize-with=". " page-range-format="chicago-16" version="1.0">
31664
31664
  <!-- This file was generated by the Style Variant Builder <https://github.com/citation-style-language/style-variant-builder>. To contribute changes, modify the template and regenerate variants. -->
31665
31665
  <info>
@@ -37665,7 +37665,7 @@ var aA = `<?xml version="1.0" encoding="utf-8"?>
37665
37665
  </layout>
37666
37666
  </bibliography>
37667
37667
  </style>
37668
- `, oA = aA, sA = `<?xml version="1.0" encoding="utf-8"?>
37668
+ `, o6 = a6, s6 = `<?xml version="1.0" encoding="utf-8"?>
37669
37669
  <style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" initialize-with=". " page-range-format="chicago-16" version="1.0">
37670
37670
  <!-- This file was generated by the Style Variant Builder <https://github.com/citation-style-language/style-variant-builder>. To contribute changes, modify the template and regenerate variants. -->
37671
37671
  <info>
@@ -41881,7 +41881,7 @@ var aA = `<?xml version="1.0" encoding="utf-8"?>
41881
41881
  </layout>
41882
41882
  </bibliography>
41883
41883
  </style>
41884
- `, lA = sA, uA = `<?xml version="1.0" encoding="utf-8"?>
41884
+ `, l6 = s6, u6 = `<?xml version="1.0" encoding="utf-8"?>
41885
41885
  <style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" demote-non-dropping-particle="never" initialize-with=". " names-delimiter=", " page-range-format="expanded" version="1.0">
41886
41886
  <!-- This file was generated by the Style Variant Builder <https://github.com/citation-style-language/style-variant-builder>. To contribute changes, modify the template and regenerate variants. -->
41887
41887
  <info>
@@ -44154,7 +44154,7 @@ var aA = `<?xml version="1.0" encoding="utf-8"?>
44154
44154
  </layout>
44155
44155
  </bibliography>
44156
44156
  </style>
44157
- `, cA = uA, fA = `<?xml version="1.0" encoding="utf-8"?>
44157
+ `, c6 = u6, f6 = `<?xml version="1.0" encoding="utf-8"?>
44158
44158
  <style xmlns="http://purl.org/net/xbiblio/csl" and="text" class="in-text" demote-non-dropping-particle="never" initialize-with=". " page-range-format="minimal-two" version="1.0">
44159
44159
  <!-- This file was generated by the Style Variant Builder <https://github.com/citation-style-language/style-variant-builder>. To contribute changes, modify the template and regenerate variants. -->
44160
44160
  <info>
@@ -45338,7 +45338,7 @@ var aA = `<?xml version="1.0" encoding="utf-8"?>
45338
45338
  </layout>
45339
45339
  </bibliography>
45340
45340
  </style>
45341
- `, dA = fA, pA = `<?xml version="1.0" encoding="utf-8"?>
45341
+ `, d6 = f6, p6 = `<?xml version="1.0" encoding="utf-8"?>
45342
45342
  <locale xmlns="http://purl.org/net/xbiblio/csl" version="1.0" xml:lang="en-US">
45343
45343
  <!-- The abbreviations in this file follow the recommendations of The Chicago Manual of Style, 18th ed. (2024), sec. 10.48 (cited hereafter as CMOS), unless stated otherwise. -->
45344
45344
  <!-- Additional abbreviations are from:
@@ -46202,40 +46202,40 @@ var aA = `<?xml version="1.0" encoding="utf-8"?>
46202
46202
  <term name="season-04">Winter</term>
46203
46203
  </terms>
46204
46204
  </locale>
46205
- `, mA = pA, io = {
46205
+ `, m6 = p6, io = {
46206
46206
  "chicago-notes-bibliography": {
46207
46207
  id: "chicago-notes-bibliography",
46208
46208
  name: "Chicago (notes & bibliography)",
46209
46209
  category: "note",
46210
- xml: oA
46210
+ xml: o6
46211
46211
  },
46212
46212
  "chicago-author-date": {
46213
46213
  id: "chicago-author-date",
46214
46214
  name: "Chicago (author-date)",
46215
46215
  category: "in-text",
46216
- xml: lA
46216
+ xml: l6
46217
46217
  },
46218
46218
  apa: {
46219
46219
  id: "apa",
46220
46220
  name: "APA",
46221
46221
  category: "in-text",
46222
- xml: cA
46222
+ xml: c6
46223
46223
  },
46224
46224
  "modern-language-association": {
46225
46225
  id: "modern-language-association",
46226
46226
  name: "MLA",
46227
46227
  category: "in-text",
46228
- xml: dA
46228
+ xml: d6
46229
46229
  }
46230
- }, hA = "chicago-notes-bibliography", bA = mA, Ad = 0;
46230
+ }, h6 = "chicago-notes-bibliography", b6 = m6, Ad = 0;
46231
46231
  function Hh() {
46232
46232
  return Ad += 1, `cite-${Date.now().toString(36)}-${Ad.toString(36)}`;
46233
46233
  }
46234
- var gA = /^<\/?(i|b|em|strong|sup|sub|span|nobr)( style="font-variant: ?small-caps;?")?\/?>$|^<div class="csl-entry">$|^<\/div>$/;
46234
+ var g6 = /^<\/?(i|b|em|strong|sup|sub|span|nobr)( style="font-variant: ?small-caps;?")?\/?>$|^<div class="csl-entry">$|^<\/div>$/;
46235
46235
  function Td(e) {
46236
- return e.replace(/<[^>]*>/g, (t) => gA.test(t) ? t : t.replace(/</g, "&lt;").replace(/>/g, "&gt;"));
46236
+ return e.replace(/<[^>]*>/g, (t) => g6.test(t) ? t : t.replace(/</g, "&lt;").replace(/>/g, "&gt;"));
46237
46237
  }
46238
- var vA = class {
46238
+ var v6 = class {
46239
46239
  constructor(e = {}) {
46240
46240
  qi(this, "sources", /* @__PURE__ */ new Map());
46241
46241
  qi(this, "style");
@@ -46245,7 +46245,7 @@ var vA = class {
46245
46245
  qi(this, "bibliography", []);
46246
46246
  qi(this, "listeners", /* @__PURE__ */ new Set());
46247
46247
  qi(this, "lastSignature", "");
46248
- this.style = e.style && io[e.style] ? e.style : hA, this.updateSources(e.sources ?? [], !1);
46248
+ this.style = e.style && io[e.style] ? e.style : h6, this.updateSources(e.sources ?? [], !1);
46249
46249
  }
46250
46250
  getStyle() {
46251
46251
  return this.style;
@@ -46312,7 +46312,7 @@ var vA = class {
46312
46312
  recompute() {
46313
46313
  const e = io[this.style], t = new L4.Engine(
46314
46314
  {
46315
- retrieveLocale: () => bA,
46315
+ retrieveLocale: () => b6,
46316
46316
  retrieveItem: (a) => this.sources.get(a)
46317
46317
  },
46318
46318
  e.xml,
@@ -46373,7 +46373,7 @@ function Mr(e) {
46373
46373
  function no(e) {
46374
46374
  return typeof e == "string" && e !== "" ? e : "Bibliography";
46375
46375
  }
46376
- var xA = Ve.create({
46376
+ var x6 = Ve.create({
46377
46377
  name: "bibliography",
46378
46378
  group: "block",
46379
46379
  selectable: !0,
@@ -46469,7 +46469,7 @@ function qh(e, t) {
46469
46469
  function mr(e) {
46470
46470
  return e.storage.citationEngine ? e.storage.citationEngine.engine ?? null : null;
46471
46471
  }
46472
- var yA = ft.create({
46472
+ var y6 = ft.create({
46473
46473
  name: "citationEngine",
46474
46474
  addStorage() {
46475
46475
  return {
@@ -46548,7 +46548,7 @@ function jh(e) {
46548
46548
  }
46549
46549
  }
46550
46550
  }
46551
- var kA = Ve.create({
46551
+ var k6 = Ve.create({
46552
46552
  name: "citation",
46553
46553
  group: "inline",
46554
46554
  inline: !0,
@@ -46641,7 +46641,7 @@ function Od(e, t, i) {
46641
46641
  }
46642
46642
  gt({
46643
46643
  id: "citation",
46644
- tiptapExtensions: [yA, kA, xA],
46644
+ tiptapExtensions: [y6, k6, x6],
46645
46645
  toolbar: [{ id: "insert-citation", label: "Citation", action: "insertCitation", iconComponent: "Quote" }],
46646
46646
  slashCommands: [
46647
46647
  { name: "Citation", command: "insertCitation" },
@@ -46682,7 +46682,7 @@ gt({
46682
46682
  onInit(e) {
46683
46683
  const t = e.storage.editorContext, i = t == null ? void 0 : t.citation;
46684
46684
  if (!i) return;
46685
- const n = typeof i.sources == "function" ? i.sources() : i.sources, r = new vA({ sources: n, style: i.style });
46685
+ const n = typeof i.sources == "function" ? i.sources() : i.sources, r = new v6({ sources: n, style: i.style });
46686
46686
  e.storage.citationEngine.engine = r, e.emit("citationEngineReady", { editor: e }), jh(e);
46687
46687
  },
46688
46688
  onDestroy(e) {
@@ -46690,7 +46690,7 @@ gt({
46690
46690
  }
46691
46691
  }
46692
46692
  });
46693
- function wA(e) {
46693
+ function w6(e) {
46694
46694
  const t = e.storage.markdown;
46695
46695
  if (!t || typeof t != "object") return;
46696
46696
  const i = t.parser;
@@ -46698,7 +46698,7 @@ function wA(e) {
46698
46698
  return i;
46699
46699
  }
46700
46700
  function $h(e, t, i) {
46701
- const n = wA(e);
46701
+ const n = w6(e);
46702
46702
  if (!n) return null;
46703
46703
  let r;
46704
46704
  try {
@@ -46715,7 +46715,7 @@ function $h(e, t, i) {
46715
46715
  const o = a;
46716
46716
  return o && typeof o.forEach == "function" && typeof o.size == "number" ? o : ie.from(a);
46717
46717
  }
46718
- function _A(e, t, i) {
46718
+ function _6(e, t, i) {
46719
46719
  const n = e.steps.length - 1;
46720
46720
  if (n < t) return;
46721
46721
  const r = e.steps[n];
@@ -46753,7 +46753,7 @@ function Md(e, t, i, n, r) {
46753
46753
  }), o.insertText(f, s, l);
46754
46754
  } else
46755
46755
  o.replaceWith(s, l, a);
46756
- _A(o, 0, -1), t.dispatch(o);
46756
+ _6(o, 0, -1), t.dispatch(o);
46757
46757
  }
46758
46758
  var Tt = new At("docflow-ai"), Dd = 1500;
46759
46759
  function su(e) {
@@ -46793,7 +46793,7 @@ function zd(e) {
46793
46793
  const t = e.storage.ai;
46794
46794
  (i = t.abort) == null || i.abort(), t.abort = null;
46795
46795
  }
46796
- var SA = ft.create({
46796
+ var S6 = ft.create({
46797
46797
  name: "ai",
46798
46798
  addStorage() {
46799
46799
  return {
@@ -47036,7 +47036,7 @@ gt({
47036
47036
  // nodes instead of literal pipe/asterisk text. Its `insertContentAt` /
47037
47037
  // `setContent` command overrides are intentionally NOT used by the AI
47038
47038
  // paths (they force `inline:true`); see `markdownInsert.ts`.
47039
- tiptapExtensions: [SA, j6.configure({ html: !0, linkify: !0, breaks: !1 })],
47039
+ tiptapExtensions: [S6, jA.configure({ html: !0, linkify: !0, breaks: !1 })],
47040
47040
  slashCommands: [{ name: "AI", description: "Generate text with AI", command: "aiGenerate" }]
47041
47041
  });
47042
47042
  Xt.create({
@@ -47074,14 +47074,14 @@ function Rd(e) {
47074
47074
  const t = /* @__PURE__ */ new Date(e + "T00:00:00");
47075
47075
  return isNaN(t.getTime()) ? "Pick a date" : t.toLocaleDateString(void 0, { month: "short", day: "numeric", year: "numeric" });
47076
47076
  }
47077
- function CA(e) {
47077
+ function C6(e) {
47078
47078
  return (e || "?").trim().charAt(0).toUpperCase() || "?";
47079
47079
  }
47080
47080
  var Mn = ["To Do", "In Progress", "Review", "Approved"];
47081
47081
  function Ld(e) {
47082
47082
  return e.toLowerCase().replace(/\s+/g, "-").replace(/[^a-z0-9-]/g, "");
47083
47083
  }
47084
- var AA = Ve.create({
47084
+ var A6 = Ve.create({
47085
47085
  name: "dateChip",
47086
47086
  group: "inline",
47087
47087
  inline: !0,
@@ -47131,7 +47131,7 @@ var AA = Ve.create({
47131
47131
  };
47132
47132
  };
47133
47133
  }
47134
- }), TA = Ve.create({
47134
+ }), T6 = Ve.create({
47135
47135
  name: "peopleChip",
47136
47136
  group: "inline",
47137
47137
  inline: !0,
@@ -47170,7 +47170,7 @@ var AA = Ve.create({
47170
47170
  const r = t.attrs.name || "user";
47171
47171
  i.innerHTML = "";
47172
47172
  const a = document.createElement("span");
47173
- a.className = "docs-chip-avatar", a.textContent = CA(r), i.appendChild(a);
47173
+ a.className = "docs-chip-avatar", a.textContent = C6(r), i.appendChild(a);
47174
47174
  const o = document.createElement("span");
47175
47175
  o.className = "docs-chip-label", o.textContent = "@" + r, i.appendChild(o);
47176
47176
  };
@@ -47182,7 +47182,7 @@ var AA = Ve.create({
47182
47182
  };
47183
47183
  };
47184
47184
  }
47185
- }), EA = Ve.create({
47185
+ }), E6 = Ve.create({
47186
47186
  name: "fileChip",
47187
47187
  group: "inline",
47188
47188
  inline: !0,
@@ -47233,7 +47233,7 @@ var AA = Ve.create({
47233
47233
  };
47234
47234
  };
47235
47235
  }
47236
- }), OA = Ve.create({
47236
+ }), O6 = Ve.create({
47237
47237
  name: "dropdownChip",
47238
47238
  group: "inline",
47239
47239
  inline: !0,
@@ -47298,7 +47298,7 @@ var AA = Ve.create({
47298
47298
  };
47299
47299
  };
47300
47300
  }
47301
- }), MA = Ve.create({
47301
+ }), M6 = Ve.create({
47302
47302
  name: "locationChip",
47303
47303
  group: "inline",
47304
47304
  inline: !0,
@@ -47364,11 +47364,11 @@ var AA = Ve.create({
47364
47364
  gt({
47365
47365
  id: "smart-elements",
47366
47366
  tiptapExtensions: [
47367
- AA,
47368
- TA,
47369
- EA,
47370
- OA,
47371
- MA
47367
+ A6,
47368
+ T6,
47369
+ E6,
47370
+ O6,
47371
+ M6
47372
47372
  ],
47373
47373
  slashCommands: [
47374
47374
  { name: "Date", command: "insertDateChip" },
@@ -47414,7 +47414,7 @@ gt({
47414
47414
  }
47415
47415
  });
47416
47416
  var uu = new At("docflow/table-page-split"), Vh = "head", Wh = 16;
47417
- function DA(e, t) {
47417
+ function D6(e, t) {
47418
47418
  var r, a, o, s, l;
47419
47419
  const i = (r = t == null ? void 0 : t.storage) == null ? void 0 : r.PaginationPlus;
47420
47420
  if (i && typeof i.pageHeight == "number") {
@@ -47428,10 +47428,10 @@ function DA(e, t) {
47428
47428
  }
47429
47429
  return null;
47430
47430
  }
47431
- function IA(e) {
47431
+ function I6(e) {
47432
47432
  return !e || !(e instanceof HTMLElement) ? 0 : e.getBoundingClientRect().height;
47433
47433
  }
47434
- function NA(e, t, i) {
47434
+ function N6(e, t, i) {
47435
47435
  try {
47436
47436
  const r = e.coordsAtPos(t + 1).top, a = e.dom.querySelector("[data-rm-pagination]");
47437
47437
  if (!a) return i;
@@ -47448,13 +47448,13 @@ function NA(e, t, i) {
47448
47448
  return null;
47449
47449
  }
47450
47450
  }
47451
- function zA(e, t) {
47451
+ function z6(e, t) {
47452
47452
  const i = e.childCount, n = t.querySelectorAll(":scope > tbody > tr");
47453
47453
  if (n.length !== i) return null;
47454
47454
  const r = [];
47455
47455
  let a = 0;
47456
47456
  for (let o = 0; o < n.length; o++) {
47457
- const s = IA(n[o]);
47457
+ const s = I6(n[o]);
47458
47458
  a += s, r.push({ rowIndex: o, heightPx: s, cumulativePx: a });
47459
47459
  }
47460
47460
  return r;
@@ -47468,7 +47468,7 @@ function Gh(e, t) {
47468
47468
  }
47469
47469
  return r;
47470
47470
  }
47471
- function RA(e, t) {
47471
+ function R6(e, t) {
47472
47472
  if (t < 0 || e.childCount === 0) return 0;
47473
47473
  let i = 0;
47474
47474
  return e.forEach((n, r, a) => {
@@ -47486,7 +47486,7 @@ function Xh(e, t, i, n, r, a, o) {
47486
47486
  const l = Gh(t, o === 0 ? i : n);
47487
47487
  if (l < 0) return [e];
47488
47488
  if (o >= Wh) return [e];
47489
- const u = RA(e, l), f = e.content, p = f.cut(0, u), d = f.cut(u), m = { ...e.attrs, tablePageSplit: Vh }, b = { ...e.attrs, tablePageSplit: null }, h = a.create(m, p, e.marks), x = a.create(b, d, e.marks), g = e.childCount, v = h.childCount, y = x.childCount;
47489
+ const u = R6(e, l), f = e.content, p = f.cut(0, u), d = f.cut(u), m = { ...e.attrs, tablePageSplit: Vh }, b = { ...e.attrs, tablePageSplit: null }, h = a.create(m, p, e.marks), x = a.create(b, d, e.marks), g = e.childCount, v = h.childCount, y = x.childCount;
47490
47490
  if (v + y !== g)
47491
47491
  throw new Error(
47492
47492
  `[tablePageSplitPlugin] row-count invariant violated: expected ${g}, got ${v} + ${y} = ${v + y}`
@@ -47494,7 +47494,7 @@ function Xh(e, t, i, n, r, a, o) {
47494
47494
  const k = Kh(t, l), C = Xh(x, k, i, n, r, a, o + 1);
47495
47495
  return C.length === 1 ? [h, x] : [h, ...C];
47496
47496
  }
47497
- function LA(e, t, i) {
47497
+ function L6(e, t, i) {
47498
47498
  var o, s;
47499
47499
  let n = e, r = t, a = 0;
47500
47500
  for (let l = 0; l < Wh; l++) {
@@ -47505,27 +47505,27 @@ function LA(e, t, i) {
47505
47505
  }
47506
47506
  return ((s = n[n.length - 1]) == null ? void 0 : s.cumulativePx) ?? 0;
47507
47507
  }
47508
- function PA(e, t) {
47508
+ function P6(e, t) {
47509
47509
  var p;
47510
47510
  if (!e || e.isDestroyed) return;
47511
47511
  const i = e, n = i.state, { schema: r } = n, a = r.nodes.table;
47512
47512
  if (!a) return;
47513
- const o = DA(i, t);
47513
+ const o = D6(i, t);
47514
47514
  if (o == null) return;
47515
47515
  const s = [];
47516
47516
  if (n.doc.descendants((d, m) => {
47517
47517
  if (d.type !== a || d.attrs.tablePageSplit === Vh) return !0;
47518
47518
  const b = i.nodeDOM(m);
47519
47519
  if (!(b instanceof HTMLElement)) return !0;
47520
- const h = zA(d, b);
47520
+ const h = z6(d, b);
47521
47521
  return h && s.push({ pos: m, node: d, measurements: h }), !0;
47522
47522
  }), s.length === 0) return;
47523
47523
  const l = [];
47524
47524
  let u = null;
47525
47525
  for (let d = 0; d < s.length; d++) {
47526
- const { pos: m, node: b, measurements: h } = s[d], x = d === 0 ? NA(i, m, o) ?? o : u ?? o, g = Xh(b, h, x, o, r, a, 0);
47526
+ const { pos: m, node: b, measurements: h } = s[d], x = d === 0 ? N6(i, m, o) ?? o : u ?? o, g = Xh(b, h, x, o, r, a, 0);
47527
47527
  g.length > 1 && l.push({ pos: m, node: b, chain: g });
47528
- const v = LA(h, x, o);
47528
+ const v = L6(h, x, o);
47529
47529
  if (v === null) {
47530
47530
  const y = ((p = h[h.length - 1]) == null ? void 0 : p.cumulativePx) ?? 0;
47531
47531
  u = Math.max(0, x - y);
@@ -47539,7 +47539,7 @@ function PA(e, t) {
47539
47539
  f.replaceWith(d, d + m.nodeSize, b);
47540
47540
  f.setMeta(uu, { splitAtRow: -1 }), i.dispatch(f);
47541
47541
  }
47542
- var FA = ft.create({
47542
+ var F6 = ft.create({
47543
47543
  name: "tablePageSplit",
47544
47544
  addProseMirrorPlugins() {
47545
47545
  let e = null, t = !1;
@@ -47559,7 +47559,7 @@ var FA = ft.create({
47559
47559
  const l = s.getMeta(uu);
47560
47560
  return l !== void 0 && l.splitAtRow !== void 0;
47561
47561
  }) || !e || e.isDestroyed || t || (t = !0, queueMicrotask(() => {
47562
- t = !1, !(!e || e.isDestroyed) && PA(e, n);
47562
+ t = !1, !(!e || e.isDestroyed) && P6(e, n);
47563
47563
  })), null;
47564
47564
  }
47565
47565
  })
@@ -47568,7 +47568,7 @@ var FA = ft.create({
47568
47568
  });
47569
47569
  gt({
47570
47570
  id: "tablePageSplit",
47571
- tiptapExtensions: [FA]
47571
+ tiptapExtensions: [F6]
47572
47572
  });
47573
47573
  var Ut = {
47574
47574
  open: !1,
@@ -47576,15 +47576,15 @@ var Ut = {
47576
47576
  position: { top: 0, left: 0 },
47577
47577
  commands: [],
47578
47578
  selectedIndex: 0
47579
- }, BA = [];
47579
+ }, B6 = [];
47580
47580
  function ss() {
47581
- BA.forEach((e) => e());
47581
+ B6.forEach((e) => e());
47582
47582
  }
47583
47583
  function pl() {
47584
47584
  Ut = { ...Ut, open: !1, query: "" }, ss();
47585
47585
  }
47586
47586
  function ro(e, t) {
47587
- const { selection: i } = e.state, n = i.head, r = e.coordsAtPos(n), a = HA(), o = t ? a.filter((s) => s.name.toLowerCase().includes(t.toLowerCase())) : a;
47587
+ const { selection: i } = e.state, n = i.head, r = e.coordsAtPos(n), a = H6(), o = t ? a.filter((s) => s.name.toLowerCase().includes(t.toLowerCase())) : a;
47588
47588
  Ut = {
47589
47589
  open: !0,
47590
47590
  query: t,
@@ -47594,11 +47594,11 @@ function ro(e, t) {
47594
47594
  }, ss();
47595
47595
  }
47596
47596
  var cu = /* @__PURE__ */ new Map();
47597
- function UA(e, t) {
47597
+ function U6(e, t) {
47598
47598
  const i = cu.get(e) || [];
47599
47599
  cu.set(e, [...i, ...t]);
47600
47600
  }
47601
- function HA() {
47601
+ function H6() {
47602
47602
  const e = [];
47603
47603
  cu.forEach((i) => {
47604
47604
  e.push(...i);
@@ -47606,7 +47606,7 @@ function HA() {
47606
47606
  const t = /* @__PURE__ */ new Set();
47607
47607
  return e.filter((i) => t.has(i.name) ? !1 : (t.add(i.name), !0));
47608
47608
  }
47609
- var qA = ft.create({
47609
+ var q6 = ft.create({
47610
47610
  name: "slashMenu",
47611
47611
  addProseMirrorPlugins() {
47612
47612
  return [
@@ -47671,18 +47671,18 @@ var qA = ft.create({
47671
47671
  });
47672
47672
  gt({
47673
47673
  id: "slash-menu",
47674
- tiptapExtensions: [qA],
47674
+ tiptapExtensions: [q6],
47675
47675
  hooks: {
47676
47676
  onInit(e) {
47677
- UA("default", []);
47677
+ U6("default", []);
47678
47678
  }
47679
47679
  }
47680
47680
  });
47681
47681
  const fu = /\[(\d{1,3})\]/g;
47682
- function jA(e) {
47682
+ function j6(e) {
47683
47683
  return e.replace(fu, "");
47684
47684
  }
47685
- function $A(e, t, i) {
47685
+ function $6(e, t, i) {
47686
47686
  const n = [];
47687
47687
  let r = 0;
47688
47688
  fu.lastIndex = 0;
@@ -47698,10 +47698,10 @@ function $A(e, t, i) {
47698
47698
  const o = e.slice(r);
47699
47699
  return o && n.push(o), n;
47700
47700
  }
47701
- const VA = { class: "ai-sidebar flex h-full w-80 flex-shrink-0 flex-col border-l border-slate-200 bg-white/80 text-slate-800 backdrop-blur-xl transition-all dark:border-white/5 dark:bg-[#0a0f1e]/85 dark:text-slate-100" }, WA = { class: "flex items-start justify-between border-b border-slate-200 p-4 dark:border-white/5" }, GA = { class: "flex items-center gap-1.5 font-mono text-xs font-bold uppercase tracking-widest text-slate-500 dark:text-slate-400" }, KA = { class: "mt-1.5 text-[10px] leading-relaxed text-slate-400 dark:text-slate-500" }, XA = ["aria-label"], JA = {
47701
+ const V6 = { class: "ai-sidebar flex h-full w-80 flex-shrink-0 flex-col border-l border-slate-200 bg-white/80 text-slate-800 backdrop-blur-xl transition-all dark:border-white/5 dark:bg-[#0a0f1e]/85 dark:text-slate-100" }, W6 = { class: "flex items-start justify-between border-b border-slate-200 p-4 dark:border-white/5" }, G6 = { class: "flex items-center gap-1.5 font-mono text-xs font-bold uppercase tracking-widest text-slate-500 dark:text-slate-400" }, K6 = { class: "mt-1.5 text-[10px] leading-relaxed text-slate-400 dark:text-slate-500" }, X6 = ["aria-label"], J6 = {
47702
47702
  key: 0,
47703
47703
  class: "flex flex-1 flex-col items-center justify-center p-6 text-center text-slate-400 dark:text-slate-500"
47704
- }, ZA = { class: "text-xs" }, QA = { class: "space-y-2 border-b border-slate-200 p-4 dark:border-white/5" }, YA = { class: "block font-mono text-[10px] font-bold uppercase tracking-widest text-slate-400 dark:text-slate-500" }, e8 = { class: "grid grid-cols-2 gap-2" }, t8 = ["disabled", "title", "onClick"], i8 = {
47704
+ }, Z6 = { class: "text-xs" }, Q6 = { class: "space-y-2 border-b border-slate-200 p-4 dark:border-white/5" }, Y6 = { class: "block font-mono text-[10px] font-bold uppercase tracking-widest text-slate-400 dark:text-slate-500" }, e8 = { class: "grid grid-cols-2 gap-2" }, t8 = ["disabled", "title", "onClick"], i8 = {
47705
47705
  key: 0,
47706
47706
  class: "flex h-full flex-col items-center justify-center p-4 text-center text-slate-400 dark:text-slate-500"
47707
47707
  }, n8 = { class: "text-[10px]" }, r8 = { class: "flex items-center gap-1 font-mono text-[9px] font-bold uppercase tracking-widest text-slate-400 dark:text-slate-500" }, a8 = {
@@ -47897,10 +47897,10 @@ const VA = { class: "ai-sidebar flex h-full w-80 flex-shrink-0 flex-col border-l
47897
47897
  }
47898
47898
  const fe = mr(U);
47899
47899
  if (!fe) {
47900
- Md(U, ee, ue, se, jA(B.text)), ee.focus(), ae(M);
47900
+ Md(U, ee, ue, se, j6(B.text)), ee.focus(), ae(M);
47901
47901
  return;
47902
47902
  }
47903
- const Y = new Map(B.citations.map((xe) => [xe.ref, xe])), G = $A(B.text, Y, fe), K = R.schema, de = G.map((xe) => typeof xe == "string" ? K.text(xe) : K.nodeFromJSON(xe)).filter((xe) => !!xe), be = new pe(ie.from(de), 0, 0);
47903
+ const Y = new Map(B.citations.map((xe) => [xe.ref, xe])), G = $6(B.text, Y, fe), K = R.schema, de = G.map((xe) => typeof xe == "string" ? K.text(xe) : K.nodeFromJSON(xe)).filter((xe) => !!xe), be = new pe(ie.from(de), 0, 0);
47904
47904
  ee.dispatch(R.tr.replace(ue, se, be)), ee.focus(), ae(M);
47905
47905
  }
47906
47906
  Ji(() => {
@@ -47917,14 +47917,14 @@ const VA = { class: "ai-sidebar flex h-full w-80 flex-shrink-0 flex-col border-l
47917
47917
  d == null || d.abort(), (B = a()) == null || B.off("transaction", g);
47918
47918
  }), (B, M) => {
47919
47919
  var U;
47920
- return D(), L("div", VA, [
47921
- w("div", WA, [
47920
+ return D(), L("div", V6, [
47921
+ w("div", W6, [
47922
47922
  w("div", null, [
47923
- w("h3", GA, [
47923
+ w("h3", G6, [
47924
47924
  Z(S(cn), { class: "h-4 w-4 animate-pulse text-cyan-400" }),
47925
47925
  je(" " + N(S(r)("sidebars.ai.title")), 1)
47926
47926
  ]),
47927
- w("p", KA, N(S(r)("sidebars.ai.description")), 1)
47927
+ w("p", K6, N(S(r)("sidebars.ai.description")), 1)
47928
47928
  ]),
47929
47929
  w("button", {
47930
47930
  type: "button",
@@ -47933,11 +47933,11 @@ const VA = { class: "ai-sidebar flex h-full w-80 flex-shrink-0 flex-col border-l
47933
47933
  onClick: he
47934
47934
  }, [
47935
47935
  Z(S(bi), { class: "h-4 w-4" })
47936
- ], 8, XA)
47936
+ ], 8, X6)
47937
47937
  ]),
47938
47938
  m.value ? (D(), L(Te, { key: 1 }, [
47939
- w("div", QA, [
47940
- w("span", YA, N(S(r)("sidebars.ai.quickMacros")), 1),
47939
+ w("div", Q6, [
47940
+ w("span", Y6, N(S(r)("sidebars.ai.quickMacros")), 1),
47941
47941
  w("div", e8, [
47942
47942
  (D(!0), L(Te, null, Be(X.value, (R) => (D(), L("button", {
47943
47943
  key: R.label,
@@ -48062,9 +48062,9 @@ const VA = { class: "ai-sidebar flex h-full w-80 flex-shrink-0 flex-col border-l
48062
48062
  ])
48063
48063
  ], 32)
48064
48064
  ])
48065
- ], 64)) : (D(), L("div", JA, [
48065
+ ], 64)) : (D(), L("div", J6, [
48066
48066
  Z(S(cn), { class: "mb-2 h-6 w-6 text-cyan-500 opacity-30" }),
48067
- w("p", ZA, N(S(r)("sidebars.ai.notConfigured")), 1)
48067
+ w("p", Z6, N(S(r)("sidebars.ai.notConfigured")), 1)
48068
48068
  ]))
48069
48069
  ]);
48070
48070
  };