jit-pdf 0.1.2 → 0.1.3

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.
@@ -1,4 +1,4 @@
1
- import { defineComponent as q, shallowRef as Rt, ref as j, computed as f, provide as Nr, onMounted as so, onBeforeUnmount as Uo, openBlock as v, createBlock as ee, withCtx as De, renderSlot as he, toValue as lt, createElementBlock as E, Fragment as de, renderList as xe, resolveDynamicComponent as Wt, resolveComponent as zd, watch as ce, inject as jr, markRaw as Ao, onUnmounted as Bo, toRaw as Bt, isRef as Li, unref as M, isReactive as Wd, isProxy as Hd, watchEffect as hn, mergeProps as ue, createCommentVNode as V, createVNode as je, normalizeProps as ht, guardReactiveProps as Tt, useSlots as zo, createElementVNode as P, normalizeStyle as U, normalizeClass as Dt, createSlots as Vd, Teleport as $i, toDisplayString as oe, nextTick as Ni, toRef as wa, useAttrs as Yd, createStaticVNode as ln, withDirectives as Dn, vModelText as kn, withKeys as qd, withModifiers as sr, vModelSelect as Xd } from "vue";
1
+ import { defineComponent as q, shallowRef as Rt, ref as j, computed as P, provide as Nr, onMounted as so, onBeforeUnmount as Uo, openBlock as v, createBlock as ee, withCtx as De, renderSlot as he, toValue as lt, createElementBlock as E, Fragment as de, renderList as xe, resolveDynamicComponent as Wt, resolveComponent as zd, watch as ce, inject as jr, markRaw as Ao, onUnmounted as Bo, toRaw as Bt, isRef as Li, unref as M, isReactive as Wd, isProxy as Hd, watchEffect as hn, mergeProps as ue, createCommentVNode as V, createVNode as je, normalizeProps as ht, guardReactiveProps as Tt, useSlots as zo, createElementVNode as f, normalizeStyle as U, normalizeClass as Dt, createSlots as Vd, Teleport as $i, toDisplayString as oe, nextTick as Ni, toRef as wa, useAttrs as Yd, createStaticVNode as ln, withDirectives as Dn, vModelText as kn, withKeys as qd, withModifiers as sr, vModelSelect as Xd } from "vue";
2
2
  var lo = /* @__PURE__ */ ((n) => (n[n.Degree0 = 0] = "Degree0", n[n.Degree90 = 1] = "Degree90", n[n.Degree180 = 2] = "Degree180", n[n.Degree270 = 3] = "Degree270", n))(lo || {});
3
3
  function Er(n) {
4
4
  const { width: e, height: t } = n;
@@ -2565,7 +2565,7 @@ function Ki() {
2565
2565
  }
2566
2566
  function Ht(n) {
2567
2567
  const e = Ki();
2568
- return f(() => {
2568
+ return P(() => {
2569
2569
  const o = e.value, r = lt(n);
2570
2570
  return !o || !r ? null : o.documents[r] ?? null;
2571
2571
  });
@@ -2611,7 +2611,7 @@ function ap(n, e) {
2611
2611
  }
2612
2612
  function na(n) {
2613
2613
  const e = Ki();
2614
- return f(() => {
2614
+ return P(() => {
2615
2615
  var t, o;
2616
2616
  const r = lt(n), a = e.value;
2617
2617
  if (!a)
@@ -2659,7 +2659,7 @@ function tn(n) {
2659
2659
  }
2660
2660
  function rt(n) {
2661
2661
  const { plugin: e, isLoading: t, ready: o } = tn(n);
2662
- return { provides: f(() => {
2662
+ return { provides: P(() => {
2663
2663
  if (!e.value) return null;
2664
2664
  if (!e.value.provides)
2665
2665
  throw new Error(`Plugin ${n} does not implement provides()`);
@@ -2703,7 +2703,7 @@ const ip = /* @__PURE__ */ q({
2703
2703
  plugins: {}
2704
2704
  },
2705
2705
  setup(n) {
2706
- const e = n, t = f(() => {
2706
+ const e = n, t = P(() => {
2707
2707
  const o = [], r = [];
2708
2708
  for (const a of e.plugins) {
2709
2709
  const i = a.package;
@@ -2742,19 +2742,19 @@ const ip = /* @__PURE__ */ q({
2742
2742
  autoMountDomElements: { type: Boolean, default: !0 }
2743
2743
  },
2744
2744
  setup(n) {
2745
- const e = n, t = Rt(null), o = j(null), r = j(!0), a = j(!1), i = f(() => {
2745
+ const e = n, t = Rt(null), o = j(null), r = j(!0), a = j(!1), i = P(() => {
2746
2746
  var u;
2747
2747
  return ((u = o.value) == null ? void 0 : u.activeDocumentId) ?? null;
2748
- }), s = f(() => {
2748
+ }), s = P(() => {
2749
2749
  var u;
2750
2750
  return ((u = o.value) == null ? void 0 : u.documents) ?? {};
2751
- }), l = f(() => {
2751
+ }), l = P(() => {
2752
2752
  var u;
2753
2753
  return ((u = o.value) == null ? void 0 : u.documentOrder) ?? [];
2754
- }), c = f(() => {
2754
+ }), c = P(() => {
2755
2755
  const u = i.value, g = s.value;
2756
2756
  return u && g[u] ? g[u] : null;
2757
- }), d = f(() => {
2757
+ }), d = P(() => {
2758
2758
  const u = s.value;
2759
2759
  return l.value.map((p) => u[p]).filter((p) => p != null);
2760
2760
  });
@@ -7816,7 +7816,7 @@ const io = /* @__PURE__ */ q({
7816
7816
  rotation: {}
7817
7817
  },
7818
7818
  setup(n) {
7819
- const e = n, t = f(() => js(e.rect, e.rotation)), o = f(() => ({
7819
+ const e = n, t = P(() => js(e.rect, e.rotation)), o = P(() => ({
7820
7820
  style: {
7821
7821
  position: "absolute",
7822
7822
  left: `${e.rect.origin.x}px`,
@@ -7834,7 +7834,7 @@ const io = /* @__PURE__ */ q({
7834
7834
  onTouchstart: (a) => {
7835
7835
  a.stopPropagation(), a.preventDefault();
7836
7836
  }
7837
- })), r = f(() => ({
7837
+ })), r = P(() => ({
7838
7838
  origin: { x: e.rect.origin.x, y: e.rect.origin.y },
7839
7839
  size: { width: t.value.width, height: t.value.height }
7840
7840
  }));
@@ -8519,7 +8519,7 @@ function rh(n) {
8519
8519
  onPointerup: y,
8520
8520
  onPointercancel: _
8521
8521
  });
8522
- return { dragProps: f(
8522
+ return { dragProps: P(
8523
8523
  () => h() ? {
8524
8524
  onPointerdown: m,
8525
8525
  onPointermove: b,
@@ -8554,17 +8554,17 @@ function zs(n) {
8554
8554
  handleAttrs: l,
8555
8555
  vertexAttrs: c,
8556
8556
  rotationAttrs: d
8557
- } = n, { dragProps: u, createResizeProps: g, createVertexProps: p, createRotationProps: h } = rh(e), m = f(() => Nn(Ae(e.element))), b = f(
8557
+ } = n, { dragProps: u, createResizeProps: g, createVertexProps: p, createRotationProps: h } = rh(e), m = P(() => Nn(Ae(e.element))), b = P(
8558
8558
  () => e.vertices ? Ir(Ae(e.vertices)) : void 0
8559
- ), y = f(() => Number(Ae(e.scale ?? 1))), _ = f(() => Number(Ae(e.pageRotation ?? 0))), S = f(
8559
+ ), y = P(() => Number(Ae(e.scale ?? 1))), _ = P(() => Number(Ae(e.pageRotation ?? 0))), S = P(
8560
8560
  () => e.annotationRotation !== void 0 ? Number(Ae(e.annotationRotation)) : void 0
8561
- ), x = f(
8561
+ ), x = P(
8562
8562
  () => e.maintainAspectRatio === void 0 ? void 0 : !!Ae(e.maintainAspectRatio)
8563
- ), C = f(() => Ae(e.constraints ?? void 0)), W = f(
8563
+ ), C = P(() => Ae(e.constraints ?? void 0)), W = P(
8564
8564
  () => e.rotationCenter ? Ae(e.rotationCenter) : void 0
8565
- ), O = f(
8565
+ ), O = P(
8566
8566
  () => e.rotationElement ? Nn(Ae(e.rotationElement)) : void 0
8567
- ), G = f(() => eh(
8567
+ ), G = P(() => eh(
8568
8568
  {
8569
8569
  element: m.value,
8570
8570
  scale: y.value,
@@ -8583,7 +8583,7 @@ function zs(n) {
8583
8583
  ...Z.attrs ?? {},
8584
8584
  ...(l == null ? void 0 : l(Z.handle)) ?? {}
8585
8585
  };
8586
- })), B = f(() => {
8586
+ })), B = P(() => {
8587
8587
  if (!a) return [];
8588
8588
  const te = b.value ?? [];
8589
8589
  return th(
@@ -8597,7 +8597,7 @@ function zs(n) {
8597
8597
  ...H.attrs ?? {},
8598
8598
  ...(c == null ? void 0 : c(ne)) ?? {}
8599
8599
  }));
8600
- }), Y = f(() => {
8600
+ }), Y = P(() => {
8601
8601
  if (!!!Ae(i ?? !1)) return null;
8602
8602
  const Z = Number(Ae(s ?? 0)), H = nh(
8603
8603
  {
@@ -9495,24 +9495,24 @@ const Th = /* @__PURE__ */ q({
9495
9495
  convertEventToPoint: { type: Function }
9496
9496
  },
9497
9497
  setup(n) {
9498
- const e = n, t = j(null), { provides: o } = Jo(), r = Mh(() => e.documentId), a = Ht(() => e.documentId), i = f(() => {
9498
+ const e = n, t = j(null), { provides: o } = Jo(), r = Mh(() => e.documentId), a = Ht(() => e.documentId), i = P(() => {
9499
9499
  var p, h, m;
9500
9500
  return (m = (h = (p = a.value) == null ? void 0 : p.document) == null ? void 0 : h.pages) == null ? void 0 : m[e.pageIndex];
9501
- }), s = f(() => {
9501
+ }), s = P(() => {
9502
9502
  var p;
9503
9503
  return ((p = i.value) == null ? void 0 : p.size) ?? { width: 0, height: 0 };
9504
- }), l = f(() => {
9504
+ }), l = P(() => {
9505
9505
  var p;
9506
9506
  return ((p = i.value) == null ? void 0 : p.rotation) ?? 0;
9507
- }), c = f(() => {
9507
+ }), c = P(() => {
9508
9508
  var p;
9509
9509
  if (e.rotation !== void 0) return e.rotation;
9510
9510
  const h = ((p = a.value) == null ? void 0 : p.rotation) ?? 0;
9511
9511
  return (l.value + h) % 4;
9512
- }), d = f(() => {
9512
+ }), d = P(() => {
9513
9513
  var p;
9514
9514
  return e.scale ?? ((p = a.value) == null ? void 0 : p.scale) ?? 1;
9515
- }), u = f(() => ko(s.value, 0, d.value)), g = f(() => (p, h) => {
9515
+ }), u = P(() => ko(s.value, 0, d.value)), g = P(() => (p, h) => {
9516
9516
  const m = h.getBoundingClientRect(), b = {
9517
9517
  x: p.clientX - m.left,
9518
9518
  y: p.clientY - m.top
@@ -10542,18 +10542,18 @@ const Qh = {
10542
10542
  selectionMenu: {}
10543
10543
  },
10544
10544
  setup(n) {
10545
- const e = n, t = zo(), { plugin: o } = _l(), r = Ht(() => e.documentId), a = f(() => {
10545
+ const e = n, t = zo(), { plugin: o } = _l(), r = Ht(() => e.documentId), a = P(() => {
10546
10546
  var m, b, y;
10547
10547
  return (y = (b = (m = r.value) == null ? void 0 : m.document) == null ? void 0 : b.pages) == null ? void 0 : y[e.pageIndex];
10548
- }), i = j([]), s = j(null), l = j(null), c = f(() => {
10548
+ }), i = j([]), s = j(null), l = j(null), c = P(() => {
10549
10549
  var m;
10550
10550
  return e.scale !== void 0 ? e.scale : ((m = r.value) == null ? void 0 : m.scale) ?? 1;
10551
- }), d = f(() => {
10551
+ }), d = P(() => {
10552
10552
  var m, b;
10553
10553
  if (e.rotation !== void 0) return e.rotation;
10554
10554
  const y = ((m = a.value) == null ? void 0 : m.rotation) ?? 0, _ = ((b = r.value) == null ? void 0 : b.rotation) ?? 0;
10555
10555
  return (y + _) % 4;
10556
- }), u = f(() => !l.value || l.value.pageIndex !== e.pageIndex || !l.value.isVisible ? !1 : !!e.selectionMenu || !!t["selection-menu"]);
10556
+ }), u = P(() => !l.value || l.value.pageIndex !== e.pageIndex || !l.value.isVisible ? !1 : !!e.selectionMenu || !!t["selection-menu"]);
10557
10557
  ce(
10558
10558
  [() => o.value, () => e.documentId, () => e.pageIndex],
10559
10559
  ([m, b, y], _, S) => {
@@ -10604,7 +10604,7 @@ const Qh = {
10604
10604
  context: g()
10605
10605
  }) : null;
10606
10606
  return (m, b) => s.value ? (v(), E(de, { key: 0 }, [
10607
- P("div", {
10607
+ f("div", {
10608
10608
  style: U({
10609
10609
  position: "absolute",
10610
10610
  left: `${s.value.origin.x * c.value}px`,
@@ -10670,9 +10670,9 @@ const Qh = {
10670
10670
  fill: {}
10671
10671
  },
10672
10672
  setup(n) {
10673
- const e = n, t = f(
10673
+ const e = n, t = P(
10674
10674
  () => e.borderColor ?? e.stroke ?? "rgba(0,122,204,0.8)"
10675
- ), o = f(() => e.background ?? e.fill ?? "rgba(0,122,204,0.15)"), r = f(() => e.borderStyle), { plugin: a } = _l(), i = Ht(() => e.documentId), s = j(null), l = f(() => {
10675
+ ), o = P(() => e.background ?? e.fill ?? "rgba(0,122,204,0.15)"), r = P(() => e.borderStyle), { plugin: a } = _l(), i = Ht(() => e.documentId), s = j(null), l = P(() => {
10676
10676
  var c;
10677
10677
  return e.scale !== void 0 ? e.scale : ((c = i.value) == null ? void 0 : c.scale) ?? 1;
10678
10678
  });
@@ -10725,7 +10725,7 @@ const Qh = {
10725
10725
  selectionMenu: {}
10726
10726
  },
10727
10727
  setup(n) {
10728
- const e = n, t = f(() => {
10728
+ const e = n, t = P(() => {
10729
10729
  var o;
10730
10730
  return ((o = e.textStyle) == null ? void 0 : o.background) ?? e.background;
10731
10731
  });
@@ -10821,7 +10821,7 @@ function sm() {
10821
10821
  }
10822
10822
  function lm(n, e) {
10823
10823
  const t = sm();
10824
- return f(() => {
10824
+ return P(() => {
10825
10825
  const o = lt(n), r = lt(e), a = t && r && o > 0 && o < Pr, i = a ? Pr : o, s = a ? o / Pr : 1, l = a ? {
10826
10826
  width: `${100 / s}%`,
10827
10827
  height: `${100 / s}%`,
@@ -10867,93 +10867,93 @@ const cm = ["width", "height", "stroke"], dm = ["width", "height", "stroke"], um
10867
10867
  style: {}
10868
10868
  },
10869
10869
  setup(n) {
10870
- const e = n, t = f(() => {
10870
+ const e = n, t = P(() => {
10871
10871
  var N;
10872
10872
  return ((N = e.resizeUi) == null ? void 0 : N.color) ?? "#007ACC";
10873
- }), o = f(() => {
10873
+ }), o = P(() => {
10874
10874
  var N;
10875
10875
  return ((N = e.vertexUi) == null ? void 0 : N.color) ?? "#007ACC";
10876
- }), r = f(() => {
10876
+ }), r = P(() => {
10877
10877
  var N;
10878
10878
  return ((N = e.resizeUi) == null ? void 0 : N.size) ?? 12;
10879
- }), a = f(() => {
10879
+ }), a = P(() => {
10880
10880
  var N;
10881
10881
  return ((N = e.vertexUi) == null ? void 0 : N.size) ?? 12;
10882
- }), i = f(() => {
10882
+ }), i = P(() => {
10883
10883
  var N;
10884
10884
  return ((N = e.rotationUi) == null ? void 0 : N.size) ?? 32;
10885
- }), s = f(() => {
10885
+ }), s = P(() => {
10886
10886
  var N;
10887
10887
  return ((N = e.rotationUi) == null ? void 0 : N.color) ?? "white";
10888
- }), l = f(() => {
10888
+ }), l = P(() => {
10889
10889
  var N;
10890
10890
  return ((N = e.rotationUi) == null ? void 0 : N.connectorColor) ?? "#007ACC";
10891
- }), c = f(() => {
10891
+ }), c = P(() => {
10892
10892
  var N;
10893
10893
  return ((N = e.rotationUi) == null ? void 0 : N.iconColor) ?? "#007ACC";
10894
- }), d = f(() => {
10894
+ }), d = P(() => {
10895
10895
  var N;
10896
10896
  return ((N = e.rotationUi) == null ? void 0 : N.showConnector) ?? !1;
10897
- }), u = f(() => {
10897
+ }), u = P(() => {
10898
10898
  var N;
10899
10899
  return (N = e.rotationUi) == null ? void 0 : N.margin;
10900
- }), g = f(() => {
10900
+ }), g = P(() => {
10901
10901
  var N, me;
10902
10902
  return ((me = (N = e.rotationUi) == null ? void 0 : N.border) == null ? void 0 : me.color) ?? "#007ACC";
10903
- }), p = f(() => {
10903
+ }), p = P(() => {
10904
10904
  var N, me;
10905
10905
  return ((me = (N = e.rotationUi) == null ? void 0 : N.border) == null ? void 0 : me.width) ?? 1;
10906
- }), h = f(() => {
10906
+ }), h = P(() => {
10907
10907
  var N, me;
10908
10908
  return ((me = (N = e.rotationUi) == null ? void 0 : N.border) == null ? void 0 : me.style) ?? "solid";
10909
- }), m = f(
10909
+ }), m = P(
10910
10910
  () => {
10911
10911
  var N;
10912
10912
  return ((N = e.selectionOutline) == null ? void 0 : N.color) ?? e.selectionOutlineColor ?? "#007ACC";
10913
10913
  }
10914
- ), b = f(() => {
10914
+ ), b = P(() => {
10915
10915
  var N;
10916
10916
  return ((N = e.selectionOutline) == null ? void 0 : N.style) ?? "solid";
10917
- }), y = f(() => {
10917
+ }), y = P(() => {
10918
10918
  var N;
10919
10919
  return ((N = e.selectionOutline) == null ? void 0 : N.width) ?? 1;
10920
- }), _ = f(() => {
10920
+ }), _ = P(() => {
10921
10921
  var N;
10922
10922
  return ((N = e.selectionOutline) == null ? void 0 : N.offset) ?? e.outlineOffset ?? 1;
10923
- }), S = Rt(Bt(e.trackedAnnotation.object)), x = j(null), C = j(null), W = j(!1), O = j(!1), { provides: G } = en(), { plugin: B } = er(), Y = na(e.documentId), te = j(null), Z = Rt(null), H = f(
10923
+ }), S = Rt(Bt(e.trackedAnnotation.object)), x = j(null), C = j(null), W = j(!1), O = j(!1), { provides: G } = en(), { plugin: B } = er(), Y = na(e.documentId), te = j(null), Z = Rt(null), H = P(
10924
10924
  () => Y.value.canModifyAnnotations && e.isDraggable && !e.isMultiSelected
10925
- ), ne = f(
10925
+ ), ne = P(
10926
10926
  () => Y.value.canModifyAnnotations && e.isResizable && !e.isMultiSelected
10927
- ), ie = f(
10927
+ ), ie = P(
10928
10928
  () => Y.value.canModifyAnnotations && e.isRotatable && !e.isMultiSelected
10929
10929
  ), fe = e.onDoubleClick ? (N) => {
10930
10930
  var me;
10931
10931
  Y.value.canModifyAnnotations && ((me = e.onDoubleClick) == null || me.call(e, N));
10932
- } : void 0, Le = f(
10932
+ } : void 0, Le = P(
10933
10933
  () => G.value ? G.value.forDocument(e.documentId) : null
10934
- ), se = f(
10934
+ ), se = P(
10935
10935
  () => ({ ...Bt(e.trackedAnnotation.object), ...Bt(S.value) })
10936
- ), ke = f(() => (e.trackedAnnotation.object.flags ?? []).includes("noZoom")), Xe = f(
10936
+ ), ke = P(() => (e.trackedAnnotation.object.flags ?? []).includes("noZoom")), Xe = P(
10937
10937
  () => (e.trackedAnnotation.object.flags ?? []).includes("noRotate")
10938
- ), Ie = f(() => ke.value ? 1 : e.scale), T = f(() => Xe.value ? 0 : e.rotation), $ = f(
10938
+ ), Ie = P(() => ke.value ? 1 : e.scale), T = P(() => Xe.value ? 0 : e.rotation), $ = P(
10939
10939
  () => x.value ?? se.value.rotation ?? 0
10940
- ), L = f(
10940
+ ), L = P(
10941
10941
  () => x.value ?? se.value.rotation ?? 0
10942
- ), X = f(() => {
10942
+ ), X = P(() => {
10943
10943
  const N = L.value;
10944
10944
  return Number.isFinite(N) ? Math.round(N * 10) / 10 : 0;
10945
- }), R = f(() => x.value !== null), Q = f(
10945
+ }), R = P(() => x.value !== null), Q = P(
10946
10946
  () => se.value.unrotatedRect
10947
- ), re = f(
10947
+ ), re = P(
10948
10948
  () => Q.value ?? se.value.rect
10949
- ), pe = f(() => {
10949
+ ), pe = P(() => {
10950
10950
  if (Q.value && $.value !== 0)
10951
10951
  return zi(
10952
10952
  re.value,
10953
10953
  se.value.rect,
10954
10954
  $.value
10955
10955
  );
10956
- }), At = f(() => re.value), dt = f(() => Q.value ? { ...se.value, rect: Q.value } : se.value), nn = f(() => e.isSelected && !e.isMultiSelected), Me = f(() => e.isSelected && !e.isMultiSelected && (e.selectionMenu || Lt["selection-menu"])), xt = f(() => ({
10956
+ }), At = P(() => re.value), dt = P(() => Q.value ? { ...se.value, rect: Q.value } : se.value), nn = P(() => e.isSelected && !e.isMultiSelected), Me = P(() => e.isSelected && !e.isMultiSelected && (e.selectionMenu || Lt["selection-menu"])), xt = P(() => ({
10957
10957
  origin: {
10958
10958
  x: se.value.rect.origin.x * e.scale,
10959
10959
  y: se.value.rect.origin.y * e.scale
@@ -10962,11 +10962,11 @@ const cm = ["width", "height", "stroke"], dm = ["width", "height", "stroke"], um
10962
10962
  width: se.value.rect.size.width * Ie.value,
10963
10963
  height: se.value.rect.size.height * Ie.value
10964
10964
  }
10965
- })), et = f(() => ({
10965
+ })), et = P(() => ({
10966
10966
  type: "annotation",
10967
10967
  annotation: e.trackedAnnotation,
10968
10968
  pageIndex: e.pageIndex
10969
- })), tt = f(() => {
10969
+ })), tt = P(() => {
10970
10970
  const N = (($.value + T.value * 90) % 360 + 360) % 360;
10971
10971
  return {
10972
10972
  suggestTop: ie.value && N > 90 && N < 270
@@ -10977,11 +10977,11 @@ const cm = ["width", "height", "stroke"], dm = ["width", "height", "stroke"], um
10977
10977
  selected: e.isSelected,
10978
10978
  placement: tt.value,
10979
10979
  context: et.value
10980
- }) : null, bt = f(() => {
10980
+ }) : null, bt = P(() => {
10981
10981
  var N;
10982
10982
  const me = Bt(se.value);
10983
10983
  return ((N = e.vertexConfig) == null ? void 0 : N.extractVertices(me)) ?? [];
10984
- }), Ve = f(() => ({
10984
+ }), Ve = P(() => ({
10985
10985
  minWidth: 10,
10986
10986
  minHeight: 10,
10987
10987
  boundingBox: {
@@ -10998,14 +10998,14 @@ const cm = ["width", "height", "stroke"], dm = ["width", "height", "stroke"], um
10998
10998
  element: At,
10999
10999
  vertices: bt,
11000
11000
  constraints: Ve,
11001
- maintainAspectRatio: f(() => e.lockAspectRatio),
11002
- pageRotation: f(() => e.rotation),
11003
- annotationRotation: f(() => $.value),
11004
- rotationCenter: f(() => pe.value),
11005
- rotationElement: f(() => se.value.rect),
11006
- scale: f(() => e.scale),
11001
+ maintainAspectRatio: P(() => e.lockAspectRatio),
11002
+ pageRotation: P(() => e.rotation),
11003
+ annotationRotation: P(() => $.value),
11004
+ rotationCenter: P(() => pe.value),
11005
+ rotationElement: P(() => se.value.rect),
11006
+ scale: P(() => e.scale),
11007
11007
  // Disable interaction handles when multi-selected
11008
- enabled: f(() => e.isSelected && !e.isMultiSelected),
11008
+ enabled: P(() => e.isSelected && !e.isMultiSelected),
11009
11009
  onUpdate: (N) => {
11010
11010
  var me, pt, We;
11011
11011
  if (!((me = N.transformData) != null && me.type) || e.isMultiSelected) return;
@@ -11085,27 +11085,27 @@ const cm = ["width", "height", "stroke"], dm = ["width", "height", "stroke"], um
11085
11085
  ];
11086
11086
  N(() => Re.forEach((_e) => _e()));
11087
11087
  });
11088
- const ut = f(() => se.value.rect.size.width * Ie.value), at = f(() => se.value.rect.size.height * Ie.value), Ye = f(() => re.value.size.width * Ie.value), I = f(() => re.value.size.height * Ie.value), Pe = f(
11088
+ const ut = P(() => se.value.rect.size.width * Ie.value), at = P(() => se.value.rect.size.height * Ie.value), Ye = P(() => re.value.size.width * Ie.value), I = P(() => re.value.size.height * Ie.value), Pe = P(
11089
11089
  () => !!Q.value && $.value !== 0
11090
- ), Ee = f(
11090
+ ), Ee = P(
11091
11091
  () => Pe.value ? (re.value.origin.x - se.value.rect.origin.x) * Ie.value : (ut.value - Ye.value) / 2
11092
- ), Be = f(
11092
+ ), Be = P(
11093
11093
  () => Pe.value ? (re.value.origin.y - se.value.rect.origin.y) * Ie.value : (at.value - I.value) / 2
11094
- ), Te = f(() => Pe.value && pe.value ? `${(pe.value.x - re.value.origin.x) * Ie.value}px ${(pe.value.y - re.value.origin.y) * Ie.value}px` : "center center"), kt = f(
11094
+ ), Te = P(() => Pe.value && pe.value ? `${(pe.value.x - re.value.origin.x) * Ie.value}px ${(pe.value.y - re.value.origin.y) * Ie.value}px` : "center center"), kt = P(
11095
11095
  () => pe.value ? (pe.value.x - se.value.rect.origin.x) * Ie.value : ut.value / 2
11096
- ), It = f(
11096
+ ), It = P(
11097
11097
  () => pe.value ? (pe.value.y - se.value.rect.origin.y) * Ie.value : at.value / 2
11098
- ), ze = f(() => Math.max(300, Math.max(ut.value, at.value) + 80)), it = f(
11098
+ ), ze = P(() => Math.max(300, Math.max(ut.value, at.value) + 80)), it = P(
11099
11099
  () => Xe.value ? js(
11100
11100
  { size: { width: ut.value, height: at.value } },
11101
11101
  e.rotation
11102
11102
  ) : null
11103
- ), nt = f(() => Math.round(i.value * 0.6)), Ne = f(
11103
+ ), nt = P(() => Math.round(i.value * 0.6)), Ne = P(
11104
11104
  () => {
11105
11105
  var N;
11106
11106
  return !!((N = e.appearance) != null && N.normal) && !O.value && !e.isEditing && !e.trackedAnnotation.dictMode;
11107
11107
  }
11108
- ), ot = { display: "contents" }, ve = f(() => ({
11108
+ ), ot = { display: "contents" }, ve = P(() => ({
11109
11109
  position: "absolute",
11110
11110
  left: `${se.value.rect.origin.x * e.scale}px`,
11111
11111
  top: `${se.value.rect.origin.y * e.scale}px`,
@@ -11114,11 +11114,11 @@ const cm = ["width", "height", "stroke"], dm = ["width", "height", "stroke"], um
11114
11114
  pointerEvents: "none",
11115
11115
  zIndex: e.zIndex,
11116
11116
  ...it.value ? { transform: it.value.matrix, transformOrigin: "0 0" } : {}
11117
- })), yt = f(() => ({
11117
+ })), yt = P(() => ({
11118
11118
  ...ve.value,
11119
11119
  ...e.blendMode ? { mixBlendMode: e.blendMode } : {},
11120
11120
  ...e.style
11121
- })), Gt = f(() => ve.value), Vn = f(() => ({
11121
+ })), Gt = P(() => ve.value), Vn = P(() => ({
11122
11122
  position: "absolute",
11123
11123
  left: `${Ee.value}px`,
11124
11124
  top: `${Be.value}px`,
@@ -11127,7 +11127,7 @@ const cm = ["width", "height", "stroke"], dm = ["width", "height", "stroke"], um
11127
11127
  transform: $.value !== 0 ? `rotate(${$.value}deg)` : void 0,
11128
11128
  transformOrigin: Te.value,
11129
11129
  pointerEvents: e.isEditing ? "auto" : "none"
11130
- })), rn = f(() => ({
11130
+ })), rn = P(() => ({
11131
11131
  position: "absolute",
11132
11132
  left: `${Ee.value}px`,
11133
11133
  top: `${Be.value}px`,
@@ -11140,7 +11140,7 @@ const cm = ["width", "height", "stroke"], dm = ["width", "height", "stroke"], um
11140
11140
  pointerEvents: e.isSelected && !e.isMultiSelected && !e.isEditing ? "auto" : "none",
11141
11141
  touchAction: "none",
11142
11142
  cursor: e.isSelected && H.value ? "move" : "default"
11143
- })), go = f(() => ({
11143
+ })), go = P(() => ({
11144
11144
  position: "absolute",
11145
11145
  left: `${kt.value - ze.value / 2}px`,
11146
11146
  top: `${It.value}px`,
@@ -11149,7 +11149,7 @@ const cm = ["width", "height", "stroke"], dm = ["width", "height", "stroke"], um
11149
11149
  backgroundColor: l.value,
11150
11150
  opacity: 0.35,
11151
11151
  pointerEvents: "none"
11152
- })), tr = f(() => ({
11152
+ })), tr = P(() => ({
11153
11153
  position: "absolute",
11154
11154
  left: `${kt.value}px`,
11155
11155
  top: `${It.value - ze.value / 2}px`,
@@ -11158,7 +11158,7 @@ const cm = ["width", "height", "stroke"], dm = ["width", "height", "stroke"], um
11158
11158
  backgroundColor: l.value,
11159
11159
  opacity: 0.35,
11160
11160
  pointerEvents: "none"
11161
- })), ho = f(() => ({
11161
+ })), ho = P(() => ({
11162
11162
  position: "absolute",
11163
11163
  left: `${kt.value - ze.value / 2}px`,
11164
11164
  top: `${It.value}px`,
@@ -11169,14 +11169,14 @@ const cm = ["width", "height", "stroke"], dm = ["width", "height", "stroke"], um
11169
11169
  backgroundColor: l.value,
11170
11170
  opacity: 0.8,
11171
11171
  pointerEvents: "none"
11172
- })), an = f(() => {
11172
+ })), an = P(() => {
11173
11173
  var N;
11174
11174
  return {
11175
11175
  ...((N = Ct.value) == null ? void 0 : N.connector.style) ?? {},
11176
11176
  backgroundColor: l.value,
11177
11177
  opacity: R.value ? 0 : 1
11178
11178
  };
11179
- }), sn = f(() => {
11179
+ }), sn = P(() => {
11180
11180
  var N;
11181
11181
  return {
11182
11182
  ...((N = Ct.value) == null ? void 0 : N.handle.style) ?? {},
@@ -11189,11 +11189,11 @@ const cm = ["width", "height", "stroke"], dm = ["width", "height", "stroke"], um
11189
11189
  pointerEvents: "auto",
11190
11190
  opacity: R.value ? 0 : 1
11191
11191
  };
11192
- }), Rn = f(() => {
11192
+ }), Rn = P(() => {
11193
11193
  if (!Ct.value) return {};
11194
11194
  const { style: N, ...me } = Ct.value.handle;
11195
11195
  return me;
11196
- }), vn = f(() => Ct.value ? {
11196
+ }), vn = P(() => Ct.value ? {
11197
11197
  ...Ct.value.handle,
11198
11198
  backgroundColor: s.value,
11199
11199
  iconColor: c.value,
@@ -11205,7 +11205,7 @@ const cm = ["width", "height", "stroke"], dm = ["width", "height", "stroke"], um
11205
11205
  width: p.value,
11206
11206
  style: h.value
11207
11207
  }
11208
- } : {}), nr = f(() => ({
11208
+ } : {}), nr = P(() => ({
11209
11209
  position: "fixed",
11210
11210
  left: C.value ? `${C.value.x + 16}px` : "0",
11211
11211
  top: C.value ? `${C.value.y - 16}px` : "0",
@@ -11225,10 +11225,10 @@ const cm = ["width", "height", "stroke"], dm = ["width", "height", "stroke"], um
11225
11225
  "data-no-interaction": "",
11226
11226
  style: ot
11227
11227
  }, [
11228
- P("div", {
11228
+ f("div", {
11229
11229
  style: U(yt.value)
11230
11230
  }, [
11231
- P("div", {
11231
+ f("div", {
11232
11232
  style: U(Vn.value)
11233
11233
  }, [
11234
11234
  he(N.$slots, "default", {
@@ -11242,17 +11242,17 @@ const cm = ["width", "height", "stroke"], dm = ["width", "height", "stroke"], um
11242
11242
  }, null, 8, ["appearance", "style"])) : V("", !0)
11243
11243
  ], 4)
11244
11244
  ], 4),
11245
- P("div", {
11245
+ f("div", {
11246
11246
  style: U(Gt.value)
11247
11247
  }, [
11248
11248
  R.value ? (v(), E(de, { key: 0 }, [
11249
- P("div", {
11249
+ f("div", {
11250
11250
  style: U(go.value)
11251
11251
  }, null, 4),
11252
- P("div", {
11252
+ f("div", {
11253
11253
  style: U(tr.value)
11254
11254
  }, null, 4),
11255
- P("div", {
11255
+ f("div", {
11256
11256
  style: U(ho.value)
11257
11257
  }, null, 4)
11258
11258
  ], 64)) : V("", !0),
@@ -11270,7 +11270,7 @@ const cm = ["width", "height", "stroke"], dm = ["width", "height", "stroke"], um
11270
11270
  style: U(an.value)
11271
11271
  }, null, 4)) : V("", !0),
11272
11272
  M(Lt)["rotation-handle"] ? he(N.$slots, "rotation-handle", ht(ue({ key: 1 }, vn.value)), () => [
11273
- P("div", ue(Rn.value, { style: sn.value }), [
11273
+ f("div", ue(Rn.value, { style: sn.value }), [
11274
11274
  (v(), E("svg", {
11275
11275
  width: nt.value,
11276
11276
  height: nt.value,
@@ -11281,8 +11281,8 @@ const cm = ["width", "height", "stroke"], dm = ["width", "height", "stroke"], um
11281
11281
  "stroke-linecap": "round",
11282
11282
  "stroke-linejoin": "round"
11283
11283
  }, [...me[2] || (me[2] = [
11284
- P("path", { d: "M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8" }, null, -1),
11285
- P("path", { d: "M21 3v5h-5" }, null, -1)
11284
+ f("path", { d: "M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8" }, null, -1),
11285
+ f("path", { d: "M21 3v5h-5" }, null, -1)
11286
11286
  ])], 8, cm))
11287
11287
  ], 16)
11288
11288
  ]) : (v(), E("div", ue({ key: 2 }, Rn.value, { style: sn.value }), [
@@ -11296,18 +11296,18 @@ const cm = ["width", "height", "stroke"], dm = ["width", "height", "stroke"], um
11296
11296
  "stroke-linecap": "round",
11297
11297
  "stroke-linejoin": "round"
11298
11298
  }, [...me[3] || (me[3] = [
11299
- P("path", { d: "M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8" }, null, -1),
11300
- P("path", { d: "M21 3v5h-5" }, null, -1)
11299
+ f("path", { d: "M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8" }, null, -1),
11300
+ f("path", { d: "M21 3v5h-5" }, null, -1)
11301
11301
  ])], 8, dm))
11302
11302
  ], 16))
11303
11303
  ], 32)) : V("", !0),
11304
- P("div", ue({ ...H.value && n.isSelected ? M(Ue) : {}, ...M(Hn) }, { style: rn.value }), [
11304
+ f("div", ue({ ...H.value && n.isSelected ? M(Ue) : {}, ...M(Hn) }, { style: rn.value }), [
11305
11305
  n.isSelected && ne.value && !R.value ? (v(!0), E(de, { key: 0 }, xe(M(yn), ({ key: We, style: Re, ..._e }) => (v(), E(de, { key: We }, [
11306
11306
  M(Lt)["resize-handle"] ? he(N.$slots, "resize-handle", ue({
11307
11307
  key: 0,
11308
11308
  ref_for: !0
11309
11309
  }, { key: We, style: Re, ..._e, backgroundColor: t.value }), () => [
11310
- P("div", ue({ ref_for: !0 }, _e, {
11310
+ f("div", ue({ ref_for: !0 }, _e, {
11311
11311
  style: [Re, { backgroundColor: t.value }]
11312
11312
  }), null, 16)
11313
11313
  ]) : (v(), E("div", ue({
@@ -11322,7 +11322,7 @@ const cm = ["width", "height", "stroke"], dm = ["width", "height", "stroke"], um
11322
11322
  key: 0,
11323
11323
  ref_for: !0
11324
11324
  }, { key: We, style: Re, ..._e, backgroundColor: o.value }), () => [
11325
- P("div", ue({ ref_for: !0 }, _e, {
11325
+ f("div", ue({ ref_for: !0 }, _e, {
11326
11326
  style: [Re, { backgroundColor: o.value }]
11327
11327
  }), null, 16)
11328
11328
  ]) : (v(), E("div", ue({
@@ -11355,7 +11355,7 @@ const cm = ["width", "height", "stroke"], dm = ["width", "height", "stroke"], um
11355
11355
  key: 1,
11356
11356
  to: "body"
11357
11357
  }, [
11358
- P("div", {
11358
+ f("div", {
11359
11359
  style: U(nr.value)
11360
11360
  }, oe(X.value.toFixed(0)) + "°", 5)
11361
11361
  ])) : V("", !0)
@@ -11427,63 +11427,63 @@ const hm = {
11427
11427
  groupSelectionMenu: {}
11428
11428
  },
11429
11429
  setup(n) {
11430
- const e = n, t = zo(), { plugin: o } = er(), r = na(() => e.documentId), a = Rt(null), i = j(!1), s = j(!1), l = j(null), c = j(null), d = j(!1), u = f(
11430
+ const e = n, t = zo(), { plugin: o } = er(), r = na(() => e.documentId), a = Rt(null), i = j(!1), s = j(!1), l = j(null), c = j(null), d = j(!1), u = P(
11431
11431
  () => r.value.canModifyAnnotations && e.isDraggable
11432
- ), g = f(
11432
+ ), g = P(
11433
11433
  () => r.value.canModifyAnnotations && e.isResizable
11434
- ), p = f(
11434
+ ), p = P(
11435
11435
  () => r.value.canModifyAnnotations && e.isRotatable
11436
- ), h = f(() => {
11436
+ ), h = P(() => {
11437
11437
  var I;
11438
11438
  return ((I = e.resizeUi) == null ? void 0 : I.color) ?? "#007ACC";
11439
- }), m = f(() => {
11439
+ }), m = P(() => {
11440
11440
  var I;
11441
11441
  return ((I = e.resizeUi) == null ? void 0 : I.size) ?? 12;
11442
- }), b = f(() => {
11442
+ }), b = P(() => {
11443
11443
  var I;
11444
11444
  return ((I = e.rotationUi) == null ? void 0 : I.size) ?? 32;
11445
- }), y = f(() => {
11445
+ }), y = P(() => {
11446
11446
  var I;
11447
11447
  return ((I = e.rotationUi) == null ? void 0 : I.color) ?? "white";
11448
- }), _ = f(() => {
11448
+ }), _ = P(() => {
11449
11449
  var I;
11450
11450
  return ((I = e.rotationUi) == null ? void 0 : I.connectorColor) ?? "#007ACC";
11451
- }), S = f(() => {
11451
+ }), S = P(() => {
11452
11452
  var I;
11453
11453
  return ((I = e.rotationUi) == null ? void 0 : I.iconColor) ?? "#007ACC";
11454
- }), x = f(() => {
11454
+ }), x = P(() => {
11455
11455
  var I;
11456
11456
  return ((I = e.rotationUi) == null ? void 0 : I.showConnector) ?? !1;
11457
- }), C = f(() => {
11457
+ }), C = P(() => {
11458
11458
  var I;
11459
11459
  return (I = e.rotationUi) == null ? void 0 : I.margin;
11460
- }), W = f(() => {
11460
+ }), W = P(() => {
11461
11461
  var I, Pe;
11462
11462
  return ((Pe = (I = e.rotationUi) == null ? void 0 : I.border) == null ? void 0 : Pe.color) ?? "#007ACC";
11463
- }), O = f(() => {
11463
+ }), O = P(() => {
11464
11464
  var I, Pe;
11465
11465
  return ((Pe = (I = e.rotationUi) == null ? void 0 : I.border) == null ? void 0 : Pe.width) ?? 1;
11466
- }), G = f(() => {
11466
+ }), G = P(() => {
11467
11467
  var I, Pe;
11468
11468
  return ((Pe = (I = e.rotationUi) == null ? void 0 : I.border) == null ? void 0 : Pe.style) ?? "solid";
11469
- }), B = f(
11469
+ }), B = P(
11470
11470
  () => {
11471
11471
  var I;
11472
11472
  return ((I = e.selectionOutline) == null ? void 0 : I.color) ?? e.selectionOutlineColor ?? "#007ACC";
11473
11473
  }
11474
- ), Y = f(() => {
11474
+ ), Y = P(() => {
11475
11475
  var I;
11476
11476
  return ((I = e.selectionOutline) == null ? void 0 : I.style) ?? "dashed";
11477
- }), te = f(() => {
11477
+ }), te = P(() => {
11478
11478
  var I;
11479
11479
  return ((I = e.selectionOutline) == null ? void 0 : I.width) ?? 2;
11480
- }), Z = f(() => {
11480
+ }), Z = P(() => {
11481
11481
  var I;
11482
11482
  return ((I = e.selectionOutline) == null ? void 0 : I.offset) ?? e.outlineOffset ?? 2;
11483
- }), H = f(() => l.value ?? 0), ne = f(() => l.value !== null), ie = f(() => {
11483
+ }), H = P(() => l.value ?? 0), ne = P(() => l.value !== null), ie = P(() => {
11484
11484
  const I = H.value;
11485
11485
  return Number.isFinite(I) ? Math.round(I * 10) / 10 : 0;
11486
- }), fe = f(() => Math.round(b.value * 0.6)), Le = f(() => {
11486
+ }), fe = P(() => Math.round(b.value * 0.6)), Le = P(() => {
11487
11487
  const I = e.selectedAnnotations.map((Pe) => Pe.object.rect);
11488
11488
  return nu(I);
11489
11489
  }), se = Rt(Le.value);
@@ -11504,7 +11504,7 @@ const hm = {
11504
11504
  },
11505
11505
  { immediate: !0 }
11506
11506
  );
11507
- const ke = f(() => {
11507
+ const ke = P(() => {
11508
11508
  let I = 1 / 0, Pe = 1 / 0, Ee = -1 / 0, Be = -1 / 0;
11509
11509
  for (const nt of e.selectedAnnotations) {
11510
11510
  const Ne = gm(nt, e.scale, e.rotation);
@@ -11517,17 +11517,17 @@ const hm = {
11517
11517
  right: Ee - ze,
11518
11518
  bottom: Be - it
11519
11519
  };
11520
- }), Xe = f(
11520
+ }), Xe = P(
11521
11521
  () => se.value.origin.x * e.scale + ke.value.left
11522
- ), Ie = f(
11522
+ ), Ie = P(
11523
11523
  () => se.value.origin.y * e.scale + ke.value.top
11524
- ), T = f(
11524
+ ), T = P(
11525
11525
  () => se.value.size.width * e.scale + (ke.value.right - ke.value.left)
11526
- ), $ = f(
11526
+ ), $ = P(
11527
11527
  () => se.value.size.height * e.scale + (ke.value.bottom - ke.value.top)
11528
- ), L = f(() => T.value / 2), X = f(() => $.value / 2), R = f(
11528
+ ), L = P(() => T.value / 2), X = P(() => $.value / 2), R = P(
11529
11529
  () => Math.max(300, Math.max(T.value, $.value) + 80)
11530
- ), Q = { display: "contents" }, re = f(() => ({
11530
+ ), Q = { display: "contents" }, re = P(() => ({
11531
11531
  position: "absolute",
11532
11532
  left: `${Xe.value}px`,
11533
11533
  top: `${Ie.value}px`,
@@ -11535,7 +11535,7 @@ const hm = {
11535
11535
  height: `${$.value}px`,
11536
11536
  pointerEvents: "none",
11537
11537
  zIndex: e.zIndex
11538
- })), pe = f(() => ({
11538
+ })), pe = P(() => ({
11539
11539
  position: "absolute",
11540
11540
  left: 0,
11541
11541
  top: 0,
@@ -11546,7 +11546,7 @@ const hm = {
11546
11546
  cursor: u.value ? "move" : "default",
11547
11547
  touchAction: "none",
11548
11548
  pointerEvents: "auto"
11549
- })), At = f(() => ({
11549
+ })), At = P(() => ({
11550
11550
  position: "absolute",
11551
11551
  left: `${L.value - R.value / 2}px`,
11552
11552
  top: `${X.value}px`,
@@ -11555,7 +11555,7 @@ const hm = {
11555
11555
  backgroundColor: h.value,
11556
11556
  opacity: 0.35,
11557
11557
  pointerEvents: "none"
11558
- })), dt = f(() => ({
11558
+ })), dt = P(() => ({
11559
11559
  position: "absolute",
11560
11560
  left: `${L.value}px`,
11561
11561
  top: `${X.value - R.value / 2}px`,
@@ -11564,7 +11564,7 @@ const hm = {
11564
11564
  backgroundColor: h.value,
11565
11565
  opacity: 0.35,
11566
11566
  pointerEvents: "none"
11567
- })), nn = f(() => ({
11567
+ })), nn = P(() => ({
11568
11568
  position: "absolute",
11569
11569
  left: `${L.value - R.value / 2}px`,
11570
11570
  top: `${X.value}px`,
@@ -11575,14 +11575,14 @@ const hm = {
11575
11575
  backgroundColor: h.value,
11576
11576
  opacity: 0.8,
11577
11577
  pointerEvents: "none"
11578
- })), Me = f(() => {
11578
+ })), Me = P(() => {
11579
11579
  var I;
11580
11580
  return {
11581
11581
  ...((I = Ye.value) == null ? void 0 : I.connector.style) ?? {},
11582
11582
  backgroundColor: _.value,
11583
11583
  opacity: ne.value ? 0 : 1
11584
11584
  };
11585
- }), xt = f(() => {
11585
+ }), xt = P(() => {
11586
11586
  var I;
11587
11587
  return {
11588
11588
  ...((I = Ye.value) == null ? void 0 : I.handle.style) ?? {},
@@ -11595,11 +11595,11 @@ const hm = {
11595
11595
  pointerEvents: "auto",
11596
11596
  opacity: ne.value ? 0 : 1
11597
11597
  };
11598
- }), et = f(() => {
11598
+ }), et = P(() => {
11599
11599
  if (!Ye.value) return {};
11600
11600
  const { style: I, ...Pe } = Ye.value.handle;
11601
11601
  return Pe;
11602
- }), tt = f(() => Ye.value ? {
11602
+ }), tt = P(() => Ye.value ? {
11603
11603
  ...Ye.value.handle,
11604
11604
  backgroundColor: y.value,
11605
11605
  iconColor: S.value,
@@ -11611,7 +11611,7 @@ const hm = {
11611
11611
  width: O.value,
11612
11612
  style: G.value
11613
11613
  }
11614
- } : {}), Ft = f(() => ({
11614
+ } : {}), Ft = P(() => ({
11615
11615
  position: "fixed",
11616
11616
  left: c.value ? `${c.value.x + 16}px` : "0",
11617
11617
  top: c.value ? `${c.value.y - 16}px` : "0",
@@ -11624,7 +11624,7 @@ const hm = {
11624
11624
  pointerEvents: "none",
11625
11625
  zIndex: 1e4,
11626
11626
  whiteSpace: "nowrap"
11627
- })), bt = f(() => ({
11627
+ })), bt = P(() => ({
11628
11628
  origin: {
11629
11629
  x: Xe.value,
11630
11630
  y: Ie.value
@@ -11633,16 +11633,16 @@ const hm = {
11633
11633
  width: T.value,
11634
11634
  height: $.value
11635
11635
  }
11636
- })), Ve = f(() => ({
11636
+ })), Ve = P(() => ({
11637
11637
  type: "group",
11638
11638
  annotations: e.selectedAnnotations,
11639
11639
  pageIndex: e.pageIndex
11640
- })), Ue = f(() => {
11640
+ })), Ue = P(() => {
11641
11641
  const I = ((H.value + e.rotation * 90) % 360 + 360) % 360;
11642
11642
  return {
11643
11643
  suggestTop: p.value && I > 90 && I < 270
11644
11644
  };
11645
- }), Ot = f(() => e.groupSelectionMenu || t["group-selection-menu"]), yn = (I, Pe) => e.groupSelectionMenu ? e.groupSelectionMenu({
11645
+ }), Ot = P(() => e.groupSelectionMenu || t["group-selection-menu"]), yn = (I, Pe) => e.groupSelectionMenu ? e.groupSelectionMenu({
11646
11646
  rect: I,
11647
11647
  menuWrapperProps: Pe,
11648
11648
  selected: !0,
@@ -11650,7 +11650,7 @@ const hm = {
11650
11650
  context: Ve.value
11651
11651
  }) : null, Ct = (I) => {
11652
11652
  ne.value || (c.value = { x: I.clientX, y: I.clientY });
11653
- }, Hn = f(() => se.value), on = f(() => ({
11653
+ }, Hn = P(() => se.value), on = P(() => ({
11654
11654
  minWidth: 20,
11655
11655
  minHeight: 20,
11656
11656
  boundingBox: {
@@ -11664,12 +11664,12 @@ const hm = {
11664
11664
  } = zs({
11665
11665
  controller: {
11666
11666
  element: Hn,
11667
- vertices: f(() => []),
11667
+ vertices: P(() => []),
11668
11668
  constraints: on,
11669
- maintainAspectRatio: f(() => e.lockAspectRatio),
11670
- pageRotation: f(() => e.rotation),
11671
- scale: f(() => e.scale),
11672
- enabled: f(() => !0),
11669
+ maintainAspectRatio: P(() => e.lockAspectRatio),
11670
+ pageRotation: P(() => e.rotation),
11671
+ scale: P(() => e.scale),
11672
+ enabled: P(() => !0),
11673
11673
  onUpdate: (I) => {
11674
11674
  var Pe, Ee, Be, Te, kt, It;
11675
11675
  if (!((Pe = I.transformData) != null && Pe.type) || !o.value) return;
@@ -11735,20 +11735,20 @@ const hm = {
11735
11735
  },
11736
11736
  includeVertices: !1,
11737
11737
  includeRotation: p,
11738
- currentRotation: f(() => l.value ?? 0)
11738
+ currentRotation: P(() => l.value ?? 0)
11739
11739
  });
11740
11740
  return (I, Pe) => n.selectedAnnotations.length >= 2 ? (v(), E("div", hm, [
11741
- P("div", {
11741
+ f("div", {
11742
11742
  style: U(re.value)
11743
11743
  }, [
11744
11744
  ne.value ? (v(), E(de, { key: 0 }, [
11745
- P("div", {
11745
+ f("div", {
11746
11746
  style: U(At.value)
11747
11747
  }, null, 4),
11748
- P("div", {
11748
+ f("div", {
11749
11749
  style: U(dt.value)
11750
11750
  }, null, 4),
11751
- P("div", {
11751
+ f("div", {
11752
11752
  style: U(nn.value)
11753
11753
  }, null, 4)
11754
11754
  ], 64)) : V("", !0),
@@ -11766,7 +11766,7 @@ const hm = {
11766
11766
  style: U(Me.value)
11767
11767
  }, null, 4)) : V("", !0),
11768
11768
  M(t)["rotation-handle"] ? he(I.$slots, "rotation-handle", ht(ue({ key: 1 }, tt.value)), () => [
11769
- P("div", ue(et.value, { style: xt.value }), [
11769
+ f("div", ue(et.value, { style: xt.value }), [
11770
11770
  (v(), E("svg", {
11771
11771
  width: fe.value,
11772
11772
  height: fe.value,
@@ -11777,8 +11777,8 @@ const hm = {
11777
11777
  "stroke-linecap": "round",
11778
11778
  "stroke-linejoin": "round"
11779
11779
  }, [...Pe[2] || (Pe[2] = [
11780
- P("path", { d: "M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8" }, null, -1),
11781
- P("path", { d: "M21 3v5h-5" }, null, -1)
11780
+ f("path", { d: "M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8" }, null, -1),
11781
+ f("path", { d: "M21 3v5h-5" }, null, -1)
11782
11782
  ])], 8, mm))
11783
11783
  ], 16)
11784
11784
  ]) : (v(), E("div", ue({ key: 2 }, et.value, { style: xt.value }), [
@@ -11792,12 +11792,12 @@ const hm = {
11792
11792
  "stroke-linecap": "round",
11793
11793
  "stroke-linejoin": "round"
11794
11794
  }, [...Pe[3] || (Pe[3] = [
11795
- P("path", { d: "M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8" }, null, -1),
11796
- P("path", { d: "M21 3v5h-5" }, null, -1)
11795
+ f("path", { d: "M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8" }, null, -1),
11796
+ f("path", { d: "M21 3v5h-5" }, null, -1)
11797
11797
  ])], 8, fm))
11798
11798
  ], 16))
11799
11799
  ], 32)) : V("", !0),
11800
- P("div", ue(
11800
+ f("div", ue(
11801
11801
  u.value ? M(ut) : { onPointerdown: (Ee) => Ee.stopPropagation() },
11802
11802
  { style: pe.value }
11803
11803
  ), [
@@ -11806,7 +11806,7 @@ const hm = {
11806
11806
  key: 0,
11807
11807
  ref_for: !0
11808
11808
  }, { key: Ee, style: Be, ...Te, backgroundColor: h.value }), () => [
11809
- P("div", ue({ ref_for: !0 }, Te, {
11809
+ f("div", ue({ ref_for: !0 }, Te, {
11810
11810
  style: [Be, { backgroundColor: h.value }]
11811
11811
  }), null, 16)
11812
11812
  ]) : (v(), E("div", ue({
@@ -11839,7 +11839,7 @@ const hm = {
11839
11839
  key: 1,
11840
11840
  to: "body"
11841
11841
  }, [
11842
- P("div", {
11842
+ f("div", {
11843
11843
  style: U(Ft.value)
11844
11844
  }, oe(ie.value.toFixed(0)) + "°", 5)
11845
11845
  ])) : V("", !0)
@@ -11932,7 +11932,7 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
11932
11932
  scale: {}
11933
11933
  },
11934
11934
  setup(n) {
11935
- const e = n, t = f(() => ({
11935
+ const e = n, t = P(() => ({
11936
11936
  position: "absolute",
11937
11937
  left: 0,
11938
11938
  top: 0,
@@ -11961,13 +11961,13 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
11961
11961
  appearanceActive: { type: Boolean, default: !1 }
11962
11962
  },
11963
11963
  setup(n) {
11964
- const t = n, o = f(() => t.strokeColor ?? "#000000"), r = f(() => t.inkList.map(({ points: l }) => {
11964
+ const t = n, o = P(() => t.strokeColor ?? "#000000"), r = P(() => t.inkList.map(({ points: l }) => {
11965
11965
  let c = "";
11966
11966
  return l.forEach(({ x: d, y: u }, g) => {
11967
11967
  const p = d - t.rect.origin.x, h = u - t.rect.origin.y;
11968
11968
  c += (g === 0 ? "M" : "L") + `${p} ${h} `;
11969
11969
  }), c.trim();
11970
- })), a = f(() => t.rect.size.width * t.scale), i = f(() => t.rect.size.height * t.scale), s = f(
11970
+ })), a = P(() => t.rect.size.width * t.scale), i = P(() => t.rect.size.height * t.scale), s = P(
11971
11971
  () => Math.max(t.strokeWidth, 20 / t.scale)
11972
11972
  );
11973
11973
  return (l, c) => (v(), E("svg", {
@@ -12053,7 +12053,7 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
12053
12053
  rectangleDifferences: {}
12054
12054
  },
12055
12055
  setup(n) {
12056
- const t = n, o = f(() => (t.cloudyBorderIntensity ?? 0) > 0), r = f(() => {
12056
+ const t = n, o = P(() => (t.cloudyBorderIntensity ?? 0) > 0), r = P(() => {
12057
12057
  const c = t.rect.size.width, d = t.rect.size.height, u = Math.max(c - t.strokeWidth, 0), g = Math.max(d - t.strokeWidth, 0);
12058
12058
  return {
12059
12059
  width: u,
@@ -12061,12 +12061,12 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
12061
12061
  x: t.strokeWidth / 2,
12062
12062
  y: t.strokeWidth / 2
12063
12063
  };
12064
- }), a = f(() => o.value ? cg(
12064
+ }), a = P(() => o.value ? cg(
12065
12065
  { width: t.rect.size.width, height: t.rect.size.height },
12066
12066
  t.rectangleDifferences,
12067
12067
  t.cloudyBorderIntensity,
12068
12068
  t.strokeWidth
12069
- ) : null), i = f(() => t.rect.size.width * t.scale), s = f(() => t.rect.size.height * t.scale), l = f(
12069
+ ) : null), i = P(() => t.rect.size.width * t.scale), s = P(() => t.rect.size.height * t.scale), l = P(
12070
12070
  () => Math.max(t.strokeWidth, 20 / t.scale)
12071
12071
  );
12072
12072
  return (c, d) => {
@@ -12185,7 +12185,7 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
12185
12185
  rectangleDifferences: {}
12186
12186
  },
12187
12187
  setup(n) {
12188
- const t = n, o = f(() => (t.cloudyBorderIntensity ?? 0) > 0), r = f(() => {
12188
+ const t = n, o = P(() => (t.cloudyBorderIntensity ?? 0) > 0), r = P(() => {
12189
12189
  const c = t.rect.size.width, d = t.rect.size.height, u = Math.max(c - t.strokeWidth, 0), g = Math.max(d - t.strokeWidth, 0);
12190
12190
  return {
12191
12191
  width: c,
@@ -12195,12 +12195,12 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
12195
12195
  rx: u / 2,
12196
12196
  ry: g / 2
12197
12197
  };
12198
- }), a = f(() => o.value ? dg(
12198
+ }), a = P(() => o.value ? dg(
12199
12199
  { width: t.rect.size.width, height: t.rect.size.height },
12200
12200
  t.rectangleDifferences,
12201
12201
  t.cloudyBorderIntensity,
12202
12202
  t.strokeWidth
12203
- ) : null), i = f(() => r.value.width * t.scale), s = f(() => r.value.height * t.scale), l = f(
12203
+ ) : null), i = P(() => r.value.width * t.scale), s = P(() => r.value.height * t.scale), l = P(
12204
12204
  () => Math.max(t.strokeWidth, 20 / t.scale)
12205
12205
  );
12206
12206
  return (c, d) => {
@@ -12319,12 +12319,12 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
12319
12319
  appearanceActive: { type: Boolean, default: !1 }
12320
12320
  },
12321
12321
  setup(n) {
12322
- const t = n, o = f(() => ({
12322
+ const t = n, o = P(() => ({
12323
12323
  x1: t.linePoints.start.x - t.rect.origin.x,
12324
12324
  y1: t.linePoints.start.y - t.rect.origin.y,
12325
12325
  x2: t.linePoints.end.x - t.rect.origin.x,
12326
12326
  y2: t.linePoints.end.y - t.rect.origin.y
12327
- })), r = f(() => {
12327
+ })), r = P(() => {
12328
12328
  var l, c;
12329
12329
  const { x1: d, y1: u, x2: g, y2: p } = o.value, h = Math.atan2(p - u, g - d);
12330
12330
  return {
@@ -12337,7 +12337,7 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
12337
12337
  ),
12338
12338
  end: No.createEnding((c = t.lineEndings) == null ? void 0 : c.end, t.strokeWidth, h, g, p)
12339
12339
  };
12340
- }), a = f(() => t.rect.size.width * t.scale), i = f(() => t.rect.size.height * t.scale), s = f(
12340
+ }), a = P(() => t.rect.size.width * t.scale), i = P(() => t.rect.size.height * t.scale), s = P(
12341
12341
  () => Math.max(t.strokeWidth, 20 / t.scale)
12342
12342
  );
12343
12343
  return (l, c) => {
@@ -12355,7 +12355,7 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
12355
12355
  height: i.value,
12356
12356
  viewBox: `0 0 ${n.rect.size.width} ${n.rect.size.height}`
12357
12357
  }, [
12358
- P("line", {
12358
+ f("line", {
12359
12359
  x1: o.value.x1,
12360
12360
  y1: o.value.y1,
12361
12361
  x2: o.value.x2,
@@ -12401,7 +12401,7 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
12401
12401
  })
12402
12402
  }, null, 44, Vm)) : V("", !0),
12403
12403
  n.appearanceActive ? V("", !0) : (v(), E(de, { key: 2 }, [
12404
- P("line", {
12404
+ f("line", {
12405
12405
  x1: o.value.x1,
12406
12406
  y1: o.value.y1,
12407
12407
  x2: o.value.x2,
@@ -12491,16 +12491,16 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
12491
12491
  appearanceActive: { type: Boolean, default: !1 }
12492
12492
  },
12493
12493
  setup(n) {
12494
- const t = n, o = f(
12494
+ const t = n, o = P(
12495
12495
  () => t.vertices.map(({ x: c, y: d }) => ({
12496
12496
  x: c - t.rect.origin.x,
12497
12497
  y: d - t.rect.origin.y
12498
12498
  }))
12499
- ), r = f(() => {
12499
+ ), r = P(() => {
12500
12500
  if (o.value.length === 0) return "";
12501
12501
  const [c, ...d] = o.value;
12502
12502
  return (`M ${c.x} ${c.y} ` + d.map((u) => `L ${u.x} ${u.y} `).join("")).trim();
12503
- }), a = f(() => {
12503
+ }), a = P(() => {
12504
12504
  var c, d;
12505
12505
  if (o.value.length < 2) return { start: null, end: null };
12506
12506
  const u = (h, m) => Math.atan2(m.y - h.y, m.x - h.x), g = u(o.value[0], o.value[1]), p = u(
@@ -12523,7 +12523,7 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
12523
12523
  o.value[o.value.length - 1].y
12524
12524
  )
12525
12525
  };
12526
- }), i = f(() => t.rect.size.width * t.scale), s = f(() => t.rect.size.height * t.scale), l = f(
12526
+ }), i = P(() => t.rect.size.width * t.scale), s = P(() => t.rect.size.height * t.scale), l = P(
12527
12527
  () => Math.max(t.strokeWidth, 20 / t.scale)
12528
12528
  );
12529
12529
  return (c, d) => {
@@ -12541,7 +12541,7 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
12541
12541
  height: s.value,
12542
12542
  viewBox: `0 0 ${n.rect.size.width} ${n.rect.size.height}`
12543
12543
  }, [
12544
- P("path", {
12544
+ f("path", {
12545
12545
  d: r.value,
12546
12546
  fill: "none",
12547
12547
  stroke: "transparent",
@@ -12586,7 +12586,7 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
12586
12586
  })
12587
12587
  }, null, 44, tf)) : V("", !0),
12588
12588
  n.appearanceActive ? V("", !0) : (v(), E(de, { key: 2 }, [
12589
- P("path", {
12589
+ f("path", {
12590
12590
  d: r.value,
12591
12591
  opacity: n.opacity,
12592
12592
  style: U({
@@ -12677,23 +12677,23 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
12677
12677
  cloudyBorderIntensity: {}
12678
12678
  },
12679
12679
  setup(n) {
12680
- const t = n, o = f(() => (t.cloudyBorderIntensity ?? 0) > 0), r = f(
12680
+ const t = n, o = P(() => (t.cloudyBorderIntensity ?? 0) > 0), r = P(
12681
12681
  () => t.currentVertex ? [...t.vertices, t.currentVertex] : t.vertices
12682
- ), a = f(
12682
+ ), a = P(
12683
12683
  () => r.value.map(({ x: g, y: p }) => ({
12684
12684
  x: g - t.rect.origin.x,
12685
12685
  y: p - t.rect.origin.y
12686
12686
  }))
12687
- ), i = f(() => {
12687
+ ), i = P(() => {
12688
12688
  if (!a.value.length) return "";
12689
12689
  const [g, ...p] = a.value, h = !!t.currentVertex;
12690
12690
  return (`M ${g.x} ${g.y} ` + p.map((m) => `L ${m.x} ${m.y}`).join(" ") + (h ? "" : " Z")).trim();
12691
- }), s = f(() => !o.value || r.value.length < 3 ? null : ug(
12691
+ }), s = P(() => !o.value || r.value.length < 3 ? null : ug(
12692
12692
  r.value,
12693
12693
  t.rect.origin,
12694
12694
  t.cloudyBorderIntensity,
12695
12695
  t.strokeWidth
12696
- )), l = f(() => t.currentVertex && t.vertices.length > 0), c = f(() => t.rect.size.width * t.scale), d = f(() => t.rect.size.height * t.scale), u = f(
12696
+ )), l = P(() => t.currentVertex && t.vertices.length > 0), c = P(() => t.rect.size.width * t.scale), d = P(() => t.rect.size.height * t.scale), u = P(
12697
12697
  () => Math.max(t.strokeWidth, 20 / t.scale)
12698
12698
  );
12699
12699
  return (g, p) => {
@@ -12711,7 +12711,7 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
12711
12711
  height: d.value,
12712
12712
  viewBox: `0 0 ${n.rect.size.width} ${n.rect.size.height}`
12713
12713
  }, [
12714
- P("path", {
12714
+ f("path", {
12715
12715
  d: o.value && s.value ? s.value.path : i.value,
12716
12716
  fill: "transparent",
12717
12717
  stroke: "transparent",
@@ -12738,7 +12738,7 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
12738
12738
  strokeLinejoin: "round"
12739
12739
  })
12740
12740
  }, null, 12, df)) : (v(), E(de, { key: 1 }, [
12741
- P("path", {
12741
+ f("path", {
12742
12742
  d: i.value,
12743
12743
  opacity: n.opacity,
12744
12744
  style: U({
@@ -12817,7 +12817,7 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
12817
12817
  appearanceActive: { type: Boolean, default: !1 }
12818
12818
  },
12819
12819
  setup(n) {
12820
- const e = n, t = j(null), o = j(!1), { provides: r } = en(), a = f(
12820
+ const e = n, t = j(null), o = j(!1), { provides: r } = en(), a = P(
12821
12821
  () => {
12822
12822
  var c;
12823
12823
  return ((c = r.value) == null ? void 0 : c.forDocument(e.documentId)) ?? null;
@@ -12846,7 +12846,7 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
12846
12846
  o.value && (o.value = !1, !(!a.value || !t.value) && a.value.updateAnnotation(e.pageIndex, e.annotation.object.id, {
12847
12847
  contents: t.value.innerText.replace(/\u00A0/g, " ")
12848
12848
  }));
12849
- }, l = f(() => {
12849
+ }, l = P(() => {
12850
12850
  const { object: c } = e.annotation, { needsComp: d, adjustedFontPx: u, scaleComp: g } = i.value, p = d ? 100 / g : 100;
12851
12851
  return {
12852
12852
  color: c.fontColor,
@@ -12881,7 +12881,7 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
12881
12881
  onPointerdown: d[0] || (d[0] = //@ts-ignore
12882
12882
  (...u) => n.onClick && n.onClick(...u))
12883
12883
  }, [
12884
- P("span", {
12884
+ f("span", {
12885
12885
  ref_key: "editorRef",
12886
12886
  ref: t,
12887
12887
  onBlur: s,
@@ -12927,7 +12927,7 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
12927
12927
  style: {}
12928
12928
  },
12929
12929
  setup(n) {
12930
- const e = n, { provides: t } = en(), o = j(null), r = j(null), a = j(null), i = f(() => e.annotation.id), s = f(() => e.annotation.rect.size.width), l = f(() => e.annotation.rect.size.height);
12930
+ const e = n, { provides: t } = en(), o = j(null), r = j(null), a = j(null), i = P(() => e.annotation.id), s = P(() => e.annotation.rect.size.width), l = P(() => e.annotation.rect.size.height);
12931
12931
  ce(
12932
12932
  () => [
12933
12933
  e.pageIndex,
@@ -12996,7 +12996,7 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
12996
12996
  onClick: { type: Function }
12997
12997
  },
12998
12998
  setup(n) {
12999
- const e = n, t = f(
12999
+ const e = n, t = P(
13000
13000
  () => !!e.annotation.object.rotation && !!e.annotation.object.unrotatedRect
13001
13001
  );
13002
13002
  return (o, r) => (v(), E("div", {
@@ -13058,13 +13058,13 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
13058
13058
  hasIRT: { type: Boolean, default: !1 }
13059
13059
  },
13060
13060
  setup(n) {
13061
- const e = n, t = f(() => e.rect.size.width), o = f(() => e.rect.size.height), r = f(() => t.value * e.scale), a = f(() => o.value * e.scale), i = f(() => {
13061
+ const e = n, t = P(() => e.rect.size.width), o = P(() => e.rect.size.height), r = P(() => t.value * e.scale), a = P(() => o.value * e.scale), i = P(() => {
13062
13062
  var d;
13063
13063
  if (e.strokeStyle === Ce.DASHED)
13064
13064
  return ((d = e.strokeDashArray) == null ? void 0 : d.join(",")) ?? `${e.strokeWidth * 3},${e.strokeWidth}`;
13065
- }), s = f(() => e.strokeStyle === Ce.UNDERLINE), l = f(
13065
+ }), s = P(() => e.strokeStyle === Ce.UNDERLINE), l = P(
13066
13066
  () => e.hasIRT || !e.onClick ? "default" : e.isSelected ? "move" : "pointer"
13067
- ), c = f(
13067
+ ), c = P(
13068
13068
  () => e.hasIRT || !e.onClick || e.isSelected ? "none" : "visible"
13069
13069
  );
13070
13070
  return (d, u) => (v(), E("svg", {
@@ -13079,7 +13079,7 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
13079
13079
  height: a.value,
13080
13080
  viewBox: `0 0 ${t.value} ${o.value}`
13081
13081
  }, [
13082
- P("rect", {
13082
+ f("rect", {
13083
13083
  x: 0,
13084
13084
  y: 0,
13085
13085
  width: t.value,
@@ -13152,7 +13152,7 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
13152
13152
  appearanceActive: { type: Boolean, default: !1 }
13153
13153
  },
13154
13154
  setup(n) {
13155
- const e = n, t = f(() => e.strokeColor ?? "#FFFF00");
13155
+ const e = n, t = P(() => e.strokeColor ?? "#FFFF00");
13156
13156
  return (o, r) => (v(!0), E(de, null, xe(n.segmentRects, (a, i) => (v(), E("div", {
13157
13157
  key: i,
13158
13158
  onPointerdown: r[0] || (r[0] = //@ts-ignore
@@ -13204,7 +13204,7 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
13204
13204
  appearanceActive: { type: Boolean, default: !1 }
13205
13205
  },
13206
13206
  setup(n) {
13207
- const e = n, t = f(() => e.strokeColor ?? "#FFFF00"), o = f(() => 2 * e.scale);
13207
+ const e = n, t = P(() => e.strokeColor ?? "#FFFF00"), o = P(() => 2 * e.scale);
13208
13208
  return (r, a) => (v(!0), E(de, null, xe(n.segmentRects, (i, s) => (v(), E("div", {
13209
13209
  key: s,
13210
13210
  onPointerdown: a[0] || (a[0] = //@ts-ignore
@@ -13269,7 +13269,7 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
13269
13269
  appearanceActive: { type: Boolean, default: !1 }
13270
13270
  },
13271
13271
  setup(n) {
13272
- const e = n, t = f(() => e.strokeColor ?? "#FFFF00"), o = f(() => 2 * e.scale);
13272
+ const e = n, t = P(() => e.strokeColor ?? "#FFFF00"), o = P(() => 2 * e.scale);
13273
13273
  return (r, a) => (v(!0), E(de, null, xe(n.segmentRects, (i, s) => (v(), E("div", {
13274
13274
  key: s,
13275
13275
  onPointerdown: a[0] || (a[0] = //@ts-ignore
@@ -13335,7 +13335,7 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
13335
13335
  appearanceActive: { type: Boolean, default: !1 }
13336
13336
  },
13337
13337
  setup(n) {
13338
- const e = n, t = f(() => e.strokeColor ?? "#FFFF00"), o = f(() => 2 * e.scale), r = f(() => 6 * e.scale), a = f(() => {
13338
+ const e = n, t = P(() => e.strokeColor ?? "#FFFF00"), o = P(() => 2 * e.scale), r = P(() => 6 * e.scale), a = P(() => {
13339
13339
  const i = o.value, s = r.value, l = `<svg xmlns="http://www.w3.org/2000/svg" width="${s}" height="${i * 2}" viewBox="0 0 ${s} ${i * 2}">
13340
13340
  <path d="M0 ${i} Q ${s / 4} 0 ${s / 2} ${i} T ${s} ${i}"
13341
13341
  fill="none" stroke="${t.value}" stroke-width="${i}" stroke-linecap="round"/>
@@ -13408,7 +13408,7 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
13408
13408
  appearanceActive: { type: Boolean, default: !1 }
13409
13409
  },
13410
13410
  setup(n) {
13411
- const e = n, t = f(() => e.rect.size.width), o = f(() => e.rect.size.height), r = f(() => {
13411
+ const e = n, t = P(() => e.rect.size.width), o = P(() => e.rect.size.height), r = P(() => {
13412
13412
  const s = t.value, l = o.value, c = s / 2;
13413
13413
  return [
13414
13414
  `M 0 ${l}`,
@@ -13416,7 +13416,7 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
13416
13416
  `C ${c} ${l - l * 0.44} ${s - s * 0.27} ${l} ${s} ${l}`,
13417
13417
  "Z"
13418
13418
  ].join(" ");
13419
- }), a = f(() => t.value * e.scale), i = f(() => o.value * e.scale);
13419
+ }), a = P(() => t.value * e.scale), i = P(() => o.value * e.scale);
13420
13420
  return (s, l) => (v(), E("svg", {
13421
13421
  style: U({
13422
13422
  position: "absolute",
@@ -13430,7 +13430,7 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
13430
13430
  viewBox: `0 0 ${t.value} ${o.value}`,
13431
13431
  overflow: "visible"
13432
13432
  }, [
13433
- P("path", {
13433
+ f("path", {
13434
13434
  d: r.value,
13435
13435
  fill: "transparent",
13436
13436
  stroke: "transparent",
@@ -13491,7 +13491,7 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
13491
13491
  appearanceActive: { type: Boolean, default: !1 }
13492
13492
  },
13493
13493
  setup(n) {
13494
- const e = n, t = f(() => bu(e.color));
13494
+ const e = n, t = P(() => bu(e.color));
13495
13495
  return (o, r) => (v(), E("div", {
13496
13496
  style: U({
13497
13497
  position: "absolute",
@@ -13504,7 +13504,7 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
13504
13504
  (...a) => n.onClick && n.onClick(...a))
13505
13505
  }, [
13506
13506
  n.appearanceActive ? V("", !0) : (v(), E("svg", Vf, [
13507
- P("path", {
13507
+ f("path", {
13508
13508
  d: "M 0.5 15.5 L 0.5 0.5 L 19.5 0.5 L 19.5 15.5 L 8.5 15.5 L 6.5 19.5 L 4.5 15.5 Z",
13509
13509
  fill: n.color,
13510
13510
  opacity: n.opacity,
@@ -13512,7 +13512,7 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
13512
13512
  "stroke-width": "1",
13513
13513
  "stroke-linejoin": "miter"
13514
13514
  }, null, 8, Yf),
13515
- P("line", {
13515
+ f("line", {
13516
13516
  x1: "2.5",
13517
13517
  y1: "4.25",
13518
13518
  x2: "17.5",
@@ -13520,7 +13520,7 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
13520
13520
  stroke: t.value,
13521
13521
  "stroke-width": "1"
13522
13522
  }, null, 8, qf),
13523
- P("line", {
13523
+ f("line", {
13524
13524
  x1: "2.5",
13525
13525
  y1: "8",
13526
13526
  x2: "17.5",
@@ -13528,7 +13528,7 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
13528
13528
  stroke: t.value,
13529
13529
  "stroke-width": "1"
13530
13530
  }, null, 8, Xf),
13531
- P("line", {
13531
+ f("line", {
13532
13532
  x1: "2.5",
13533
13533
  y1: "11.75",
13534
13534
  x2: "17.5",
@@ -13716,9 +13716,9 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
13716
13716
  pageIndex: e.pageIndex
13717
13717
  }), s = j(null), l = Rt({}), c = Rt({ type: Zt.None });
13718
13718
  let d = e.scale;
13719
- const u = f(
13719
+ const u = P(
13720
13720
  () => t.value ? t.value.forDocument(e.documentId) : null
13721
- ), g = f(() => a.value.length > 1), p = f(() => {
13721
+ ), g = P(() => a.value.length > 1), p = P(() => {
13722
13722
  const T = e.annotationRenderers ?? [], $ = new Set(T.map((L) => L.id));
13723
13723
  return [...T, ...Jf.filter((L) => !$.has(L.id))];
13724
13724
  }), h = (T) => p.value.find(($) => $.matches(T.object)) ?? null, m = (T) => {
@@ -13770,7 +13770,7 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
13770
13770
  },
13771
13771
  { immediate: !0 }
13772
13772
  );
13773
- const b = f(
13773
+ const b = P(
13774
13774
  () => r.value.map((T) => {
13775
13775
  var $;
13776
13776
  const L = h(T);
@@ -13854,9 +13854,9 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
13854
13854
  },
13855
13855
  { immediate: !0 }
13856
13856
  );
13857
- const Z = f(
13857
+ const Z = P(
13858
13858
  () => r.value.filter((T) => a.value.includes(T.object.id))
13859
- ), H = f(() => Z.value.length < 2 ? !1 : Z.value.every((T) => {
13859
+ ), H = P(() => Z.value.length < 2 ? !1 : Z.value.every((T) => {
13860
13860
  var $;
13861
13861
  const L = ($ = u.value) == null ? void 0 : $.findToolForAnnotation(T.object), X = _t(
13862
13862
  L == null ? void 0 : L.interaction.isGroupDraggable,
@@ -13864,7 +13864,7 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
13864
13864
  !0
13865
13865
  ), R = _t(L == null ? void 0 : L.interaction.isDraggable, T.object, !0);
13866
13866
  return (L == null ? void 0 : L.interaction.isGroupDraggable) !== void 0 ? X : R;
13867
- })), ne = f(() => Z.value.length < 2 ? !1 : Z.value.every((T) => {
13867
+ })), ne = P(() => Z.value.length < 2 ? !1 : Z.value.every((T) => {
13868
13868
  var $;
13869
13869
  const L = ($ = u.value) == null ? void 0 : $.findToolForAnnotation(T.object), X = _t(
13870
13870
  L == null ? void 0 : L.interaction.isGroupResizable,
@@ -13872,7 +13872,7 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
13872
13872
  !0
13873
13873
  ), R = _t(L == null ? void 0 : L.interaction.isResizable, T.object, !0);
13874
13874
  return (L == null ? void 0 : L.interaction.isGroupResizable) !== void 0 ? X : R;
13875
- })), ie = f(() => Z.value.length < 2 ? !1 : Z.value.every((T) => {
13875
+ })), ie = P(() => Z.value.length < 2 ? !1 : Z.value.every((T) => {
13876
13876
  var $;
13877
13877
  const L = ($ = u.value) == null ? void 0 : $.findToolForAnnotation(T.object), X = _t(
13878
13878
  L == null ? void 0 : L.interaction.isGroupRotatable,
@@ -13880,7 +13880,7 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
13880
13880
  !0
13881
13881
  ), R = _t(L == null ? void 0 : L.interaction.isRotatable, T.object, !0);
13882
13882
  return (L == null ? void 0 : L.interaction.isGroupRotatable) !== void 0 ? X : R;
13883
- })), fe = f(() => Z.value.length < 2 ? !1 : Z.value.some((T) => {
13883
+ })), fe = P(() => Z.value.length < 2 ? !1 : Z.value.some((T) => {
13884
13884
  var $;
13885
13885
  const L = ($ = u.value) == null ? void 0 : $.findToolForAnnotation(T.object), X = _t(
13886
13886
  L == null ? void 0 : L.interaction.lockGroupAspectRatio,
@@ -13888,7 +13888,7 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
13888
13888
  !1
13889
13889
  ), R = _t(L == null ? void 0 : L.interaction.lockAspectRatio, T.object, !1);
13890
13890
  return (L == null ? void 0 : L.interaction.lockGroupAspectRatio) !== void 0 ? X : R;
13891
- })), Le = f(() => !u.value || a.value.length < 2 ? !1 : u.value.getSelectedAnnotations().every(($) => $.object.pageIndex === e.pageIndex)), se = (T, $, L) => {
13891
+ })), Le = P(() => !u.value || a.value.length < 2 ? !1 : u.value.getSelectedAnnotations().every(($) => $.object.pageIndex === e.pageIndex)), se = (T, $, L) => {
13892
13892
  if (!L && T.onDoubleClick)
13893
13893
  return (X) => {
13894
13894
  X.stopPropagation(), T.onDoubleClick($.object.id, Y);
@@ -13900,7 +13900,7 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
13900
13900
  if (L && $.renderLocked) return;
13901
13901
  const Q = (X = u.value) == null ? void 0 : X.findToolForAnnotation(T.object);
13902
13902
  return ((R = Q == null ? void 0 : Q.behavior) == null ? void 0 : R.useAppearanceStream) ?? $.useAppearanceStream ?? !0 ? m(T) : void 0;
13903
- }, Ie = f(() => {
13903
+ }, Ie = P(() => {
13904
13904
  const {
13905
13905
  selectionMenu: T,
13906
13906
  groupSelectionMenu: $,
@@ -14024,7 +14024,7 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
14024
14024
  c.forEach((d) => d());
14025
14025
  });
14026
14026
  });
14027
- const s = f(() => {
14027
+ const s = P(() => {
14028
14028
  if (!i.value) return Go(Oe.Normal);
14029
14029
  const l = i.value.defaults.type === A.HIGHLIGHT ? Oe.Multiply : Oe.Normal;
14030
14030
  return Go(i.value.defaults.blendMode ?? l);
@@ -14073,9 +14073,9 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
14073
14073
  scale: {}
14074
14074
  },
14075
14075
  setup(n) {
14076
- const e = n, t = pa(), o = f(
14076
+ const e = n, t = pa(), o = P(
14077
14077
  () => (t == null ? void 0 : t.getAll().find((a) => a.id === e.toolId && a.renderPreview)) ?? null
14078
- ), r = f(() => {
14078
+ ), r = P(() => {
14079
14079
  const a = {
14080
14080
  position: "absolute",
14081
14081
  left: `${e.preview.bounds.origin.x * e.scale}px`,
@@ -14141,7 +14141,7 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
14141
14141
  scale: {}
14142
14142
  },
14143
14143
  setup(n) {
14144
- const e = n, { plugin: t } = er(), o = j(/* @__PURE__ */ new Map()), r = j(null), a = j(null), i = f(() => ({
14144
+ const e = n, { plugin: t } = er(), o = j(/* @__PURE__ */ new Map()), r = j(null), a = j(null), i = P(() => ({
14145
14145
  requestFile: ({ accept: l, onFile: c }) => {
14146
14146
  const d = r.value;
14147
14147
  d && (d.accept = l, d.onchange = (u) => {
@@ -14182,13 +14182,13 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
14182
14182
  s == null || s();
14183
14183
  });
14184
14184
  }), (l, c) => (v(), E(de, null, [
14185
- P("input", {
14185
+ f("input", {
14186
14186
  ref_key: "fileInputRef",
14187
14187
  ref: r,
14188
14188
  type: "file",
14189
14189
  style: { display: "none" }
14190
14190
  }, null, 512),
14191
- P("canvas", {
14191
+ f("canvas", {
14192
14192
  ref_key: "canvasRef",
14193
14193
  ref: a,
14194
14194
  style: { display: "none" }
@@ -14221,7 +14221,7 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
14221
14221
  annotationRenderers: {}
14222
14222
  },
14223
14223
  setup(n) {
14224
- const e = n, t = f(() => e.resizeUi ?? e.resizeUI), o = f(() => e.vertexUi ?? e.vertexUI);
14224
+ const e = n, t = P(() => e.resizeUi ?? e.resizeUI), o = P(() => e.vertexUi ?? e.vertexUI);
14225
14225
  so(() => {
14226
14226
  e.resizeUI && console.warn(
14227
14227
  '[AnnotationLayer] The "resizeUI" prop is deprecated. Use :resize-ui in templates instead.'
@@ -14229,26 +14229,26 @@ const vm = { inheritAttrs: !1 }, _m = /* @__PURE__ */ q({
14229
14229
  '[AnnotationLayer] The "vertexUI" prop is deprecated. Use :vertex-ui in templates instead.'
14230
14230
  );
14231
14231
  });
14232
- const r = pa(), a = f(() => {
14232
+ const r = pa(), a = P(() => {
14233
14233
  const g = (r == null ? void 0 : r.getAll()) ?? [], p = e.annotationRenderers ?? [], h = [...g];
14234
14234
  for (const m of p) {
14235
14235
  const b = h.findIndex((y) => y.id === m.id);
14236
14236
  b >= 0 ? h[b] = m : h.push(m);
14237
14237
  }
14238
14238
  return h;
14239
- }), i = Ht(() => e.documentId), s = f(() => {
14239
+ }), i = Ht(() => e.documentId), s = P(() => {
14240
14240
  var g, p, h;
14241
14241
  return (h = (p = (g = i.value) == null ? void 0 : g.document) == null ? void 0 : p.pages) == null ? void 0 : h[e.pageIndex];
14242
- }), l = f(() => {
14242
+ }), l = P(() => {
14243
14243
  var g, p;
14244
14244
  return ((p = (g = s.value) == null ? void 0 : g.size) == null ? void 0 : p.width) ?? 0;
14245
- }), c = f(() => {
14245
+ }), c = P(() => {
14246
14246
  var g, p;
14247
14247
  return ((p = (g = s.value) == null ? void 0 : g.size) == null ? void 0 : p.height) ?? 0;
14248
- }), d = f(() => {
14248
+ }), d = P(() => {
14249
14249
  var g;
14250
14250
  return e.scale !== void 0 ? e.scale : ((g = i.value) == null ? void 0 : g.scale) ?? 1;
14251
- }), u = f(() => {
14251
+ }), u = P(() => {
14252
14252
  var g, p;
14253
14253
  if (e.rotation !== void 0) return e.rotation;
14254
14254
  const h = ((g = s.value) == null ? void 0 : g.rotation) ?? 0, m = ((p = i.value) == null ? void 0 : p.rotation) ?? 0;
@@ -14776,13 +14776,13 @@ const Gl = "document-manager", lP = {
14776
14776
  documentId: {}
14777
14777
  },
14778
14778
  setup(n) {
14779
- const e = n, t = Ht(() => lt(e.documentId)), o = f(() => {
14779
+ const e = n, t = Ht(() => lt(e.documentId)), o = P(() => {
14780
14780
  var i;
14781
14781
  return ((i = t.value) == null ? void 0 : i.status) === "loading";
14782
- }), r = f(() => {
14782
+ }), r = P(() => {
14783
14783
  var i;
14784
14784
  return ((i = t.value) == null ? void 0 : i.status) === "error";
14785
- }), a = f(() => {
14785
+ }), a = P(() => {
14786
14786
  var i;
14787
14787
  return ((i = t.value) == null ? void 0 : i.status) === "loaded";
14788
14788
  });
@@ -16488,10 +16488,10 @@ const sc = "redaction", IP = {
16488
16488
  fill: { default: "transparent" }
16489
16489
  },
16490
16490
  setup(n) {
16491
- const e = n, { plugin: t } = cc(), o = Ht(() => e.documentId), r = j(null), a = f(() => {
16491
+ const e = n, { plugin: t } = cc(), o = Ht(() => e.documentId), r = j(null), a = P(() => {
16492
16492
  var s;
16493
16493
  return e.scale !== void 0 ? e.scale : ((s = o.value) == null ? void 0 : s.scale) ?? 1;
16494
- }), i = f(
16494
+ }), i = P(
16495
16495
  () => {
16496
16496
  var s;
16497
16497
  return e.stroke ?? ((s = t.value) == null ? void 0 : s.getPreviewStrokeColor()) ?? "red";
@@ -16539,7 +16539,7 @@ const sc = "redaction", IP = {
16539
16539
  scale: {}
16540
16540
  },
16541
16541
  setup(n) {
16542
- const e = n, { plugin: t } = cc(), o = j([]), r = j(null), a = f(() => {
16542
+ const e = n, { plugin: t } = cc(), o = j([]), r = j(null), a = P(() => {
16543
16543
  var i;
16544
16544
  return ((i = t.value) == null ? void 0 : i.getPreviewStrokeColor()) ?? "red";
16545
16545
  });
@@ -16626,7 +16626,7 @@ const sc = "redaction", IP = {
16626
16626
  key: p.id
16627
16627
  }, [
16628
16628
  p.kind === "area" ? (v(), E(de, { key: 0 }, [
16629
- P("div", {
16629
+ f("div", {
16630
16630
  style: U({
16631
16631
  position: "absolute",
16632
16632
  left: `${p.rect.origin.x * n.scale}px`,
@@ -16663,7 +16663,7 @@ const sc = "redaction", IP = {
16663
16663
  _: 2
16664
16664
  }, 1032, ["rect", "rotation"])) : V("", !0)
16665
16665
  ], 64)) : (v(), E(de, { key: 1 }, [
16666
- P("div", {
16666
+ f("div", {
16667
16667
  style: U({
16668
16668
  position: "absolute",
16669
16669
  left: `${p.rect.origin.x * n.scale}px`,
@@ -16727,13 +16727,13 @@ const sc = "redaction", IP = {
16727
16727
  selectionMenu: {}
16728
16728
  },
16729
16729
  setup(n) {
16730
- const e = n, t = Ht(() => e.documentId), o = f(() => {
16730
+ const e = n, t = Ht(() => e.documentId), o = P(() => {
16731
16731
  var i, s, l;
16732
16732
  return (l = (s = (i = t.value) == null ? void 0 : i.document) == null ? void 0 : s.pages) == null ? void 0 : l[e.pageIndex];
16733
- }), r = f(() => {
16733
+ }), r = P(() => {
16734
16734
  var i;
16735
16735
  return e.scale !== void 0 ? e.scale : ((i = t.value) == null ? void 0 : i.scale) ?? 1;
16736
- }), a = f(() => {
16736
+ }), a = P(() => {
16737
16737
  var i, s;
16738
16738
  if (e.rotation !== void 0) return e.rotation;
16739
16739
  const l = ((i = o.value) == null ? void 0 : i.rotation) ?? 0, c = ((s = t.value) == null ? void 0 : s.rotation) ?? 0;
@@ -16779,9 +16779,9 @@ const sc = "redaction", IP = {
16779
16779
  appearanceActive: { type: Boolean }
16780
16780
  },
16781
16781
  setup(n) {
16782
- const e = n, t = j(!1), o = f(() => e.annotation.object.segmentRects ?? []), r = f(() => e.annotation.object.rect), a = f(() => e.annotation.object.strokeColor ?? "#FF0000"), i = f(() => e.annotation.object.color ?? "#000000"), s = f(() => e.annotation.object.opacity ?? 1), l = f(
16782
+ const e = n, t = j(!1), o = P(() => e.annotation.object.segmentRects ?? []), r = P(() => e.annotation.object.rect), a = P(() => e.annotation.object.strokeColor ?? "#FF0000"), i = P(() => e.annotation.object.color ?? "#000000"), s = P(() => e.annotation.object.opacity ?? 1), l = P(
16783
16783
  () => e.annotation.object.fontColor ?? e.annotation.object.overlayColor ?? "#FFFFFF"
16784
- ), c = f(() => e.annotation.object.overlayText), d = f(() => e.annotation.object.overlayTextRepeat ?? !1), u = f(() => e.annotation.object.fontSize ?? 12), g = f(() => e.annotation.object.fontFamily ?? He.Helvetica), p = f(() => e.annotation.object.textAlign ?? ft.Center), h = f(() => c.value ? d.value ? Array(10).fill(c.value).join(" ") : c.value : ""), m = (y) => ({
16784
+ ), c = P(() => e.annotation.object.overlayText), d = P(() => e.annotation.object.overlayTextRepeat ?? !1), u = P(() => e.annotation.object.fontSize ?? 12), g = P(() => e.annotation.object.fontFamily ?? He.Helvetica), p = P(() => e.annotation.object.textAlign ?? ft.Center), h = P(() => c.value ? d.value ? Array(10).fill(c.value).join(" ") : c.value : ""), m = (y) => ({
16785
16785
  position: "absolute",
16786
16786
  left: `${(r.value ? y.origin.x - r.value.origin.x : y.origin.x) * e.scale}px`,
16787
16787
  top: `${(r.value ? y.origin.y - r.value.origin.y : y.origin.y) * e.scale}px`,
@@ -16841,9 +16841,9 @@ const sc = "redaction", IP = {
16841
16841
  appearanceActive: { type: Boolean }
16842
16842
  },
16843
16843
  setup(n) {
16844
- const e = n, t = j(!1), o = f(() => e.annotation.object.strokeColor ?? "#FF0000"), r = f(() => e.annotation.object.color ?? "#000000"), a = f(() => e.annotation.object.opacity ?? 1), i = f(
16844
+ const e = n, t = j(!1), o = P(() => e.annotation.object.strokeColor ?? "#FF0000"), r = P(() => e.annotation.object.color ?? "#000000"), a = P(() => e.annotation.object.opacity ?? 1), i = P(
16845
16845
  () => e.annotation.object.fontColor ?? e.annotation.object.overlayColor ?? "#FFFFFF"
16846
- ), s = f(() => e.annotation.object.overlayText), l = f(() => e.annotation.object.overlayTextRepeat ?? !1), c = f(() => e.annotation.object.fontSize ?? 12), d = f(() => e.annotation.object.fontFamily ?? He.Helvetica), u = f(() => e.annotation.object.textAlign ?? ft.Center), g = f(() => s.value ? l.value ? Array(10).fill(s.value).join(" ") : s.value : ""), p = f(() => ({
16846
+ ), s = P(() => e.annotation.object.overlayText), l = P(() => e.annotation.object.overlayTextRepeat ?? !1), c = P(() => e.annotation.object.fontSize ?? 12), d = P(() => e.annotation.object.fontFamily ?? He.Helvetica), u = P(() => e.annotation.object.textAlign ?? ft.Center), g = P(() => s.value ? l.value ? Array(10).fill(s.value).join(" ") : s.value : ""), p = P(() => ({
16847
16847
  position: "absolute",
16848
16848
  inset: 0,
16849
16849
  // Default: transparent background with strokeColor (C) border
@@ -16858,7 +16858,7 @@ const sc = "redaction", IP = {
16858
16858
  alignItems: "center",
16859
16859
  justifyContent: u.value === ft.Left ? "flex-start" : u.value === ft.Right ? "flex-end" : "center",
16860
16860
  overflow: "hidden"
16861
- })), h = f(() => ({
16861
+ })), h = P(() => ({
16862
16862
  color: i.value,
16863
16863
  fontSize: `${c.value * e.scale}px`,
16864
16864
  ...qr(d.value),
@@ -40323,7 +40323,7 @@ const yb = /* @__PURE__ */ q({
40323
40323
  height: "100%"
40324
40324
  }
40325
40325
  }, s.$attrs), [
40326
- P("div", {
40326
+ f("div", {
40327
40327
  style: U({ height: `${((c = a.value) == null ? void 0 : c.totalHeight) ?? 0}px`, position: "relative" })
40328
40328
  }, [
40329
40329
  (v(!0), E(de, null, xe(((d = a.value) == null ? void 0 : d.items) ?? [], (u) => he(s.$slots, "default", {
@@ -40394,10 +40394,10 @@ const yb = /* @__PURE__ */ q({
40394
40394
  activeHighlightColor: { default: "#FFBF00" }
40395
40395
  },
40396
40396
  setup(n) {
40397
- const e = n, { provides: t } = Ed(), o = Ht(() => e.documentId), r = j(null), a = f(() => {
40397
+ const e = n, { provides: t } = Ed(), o = Ht(() => e.documentId), r = j(null), a = P(() => {
40398
40398
  var c;
40399
40399
  return ((c = t.value) == null ? void 0 : c.forDocument(e.documentId)) ?? null;
40400
- }), i = f(() => {
40400
+ }), i = P(() => {
40401
40401
  var c;
40402
40402
  return e.scale !== void 0 ? e.scale : ((c = o.value) == null ? void 0 : c.scale) ?? 1;
40403
40403
  });
@@ -40422,7 +40422,7 @@ const yb = /* @__PURE__ */ q({
40422
40422
  },
40423
40423
  { immediate: !0 }
40424
40424
  );
40425
- const s = f(() => r.value ? r.value.results.map((c, d) => ({ result: c, originalIndex: d })).filter(({ result: c }) => c.pageIndex === e.pageIndex) : []), l = f(() => r.value ? s.value.filter(
40425
+ const s = P(() => r.value ? r.value.results.map((c, d) => ({ result: c, originalIndex: d })).filter(({ result: c }) => c.pageIndex === e.pageIndex) : []), l = P(() => r.value ? s.value.filter(
40426
40426
  ({ originalIndex: c }) => r.value.showAllResults || c === r.value.activeResultIndex
40427
40427
  ) : []);
40428
40428
  return (c, d) => r.value && r.value.active ? (v(), E("div", ue({
@@ -40478,7 +40478,7 @@ const yb = /* @__PURE__ */ q({
40478
40478
  immediate: !0
40479
40479
  }
40480
40480
  );
40481
- const r = f(() => o.value.docId === e.documentId ? o.value.layout : null);
40481
+ const r = P(() => o.value.docId === e.documentId ? o.value.layout : null);
40482
40482
  return ce(
40483
40483
  [t, () => e.documentId, r],
40484
40484
  ([a, i, s]) => {
@@ -40499,7 +40499,7 @@ const yb = /* @__PURE__ */ q({
40499
40499
  }
40500
40500
  }
40501
40501
  }, a.$attrs), [
40502
- P("div", {
40502
+ f("div", {
40503
40503
  style: U(
40504
40504
  r.value.strategy === M(gn).Horizontal ? {
40505
40505
  width: `${r.value.startSpacing}px`,
@@ -40511,7 +40511,7 @@ const yb = /* @__PURE__ */ q({
40511
40511
  }
40512
40512
  )
40513
40513
  }, null, 4),
40514
- P("div", {
40514
+ f("div", {
40515
40515
  style: U({
40516
40516
  gap: `${r.value.pageGap}px`,
40517
40517
  display: "flex",
@@ -40548,7 +40548,7 @@ const yb = /* @__PURE__ */ q({
40548
40548
  ], 4))), 128))
40549
40549
  ], 4))), 128))
40550
40550
  ], 4),
40551
- P("div", {
40551
+ f("div", {
40552
40552
  style: U(
40553
40553
  r.value.strategy === M(gn).Horizontal ? {
40554
40554
  width: `${r.value.endSpacing}px`,
@@ -40668,7 +40668,7 @@ const Ob = /* @__PURE__ */ q({
40668
40668
  dpr: { default: () => typeof window < "u" ? window.devicePixelRatio : 1 }
40669
40669
  },
40670
40670
  setup(n) {
40671
- const e = n, { provides: t } = Ad(), o = j(), r = f(() => e.scale / e.tile.srcScale);
40671
+ const e = n, { provides: t } = Ad(), o = j(), r = P(() => e.scale / e.tile.srcScale);
40672
40672
  let a, i = null;
40673
40673
  return ce(
40674
40674
  [() => e.tile.id, () => e.documentId, t],
@@ -40707,7 +40707,7 @@ const Ob = /* @__PURE__ */ q({
40707
40707
  scale: {}
40708
40708
  },
40709
40709
  setup(n) {
40710
- const e = n, { provides: t } = Ad(), o = Ht(() => e.documentId), r = j([]), a = f(() => {
40710
+ const e = n, { provides: t } = Ad(), o = Ht(() => e.documentId), r = j([]), a = P(() => {
40711
40711
  var i;
40712
40712
  return e.scale !== void 0 ? e.scale : ((i = o.value) == null ? void 0 : i.scale) ?? 1;
40713
40713
  });
@@ -40745,10 +40745,10 @@ const Ob = /* @__PURE__ */ q({
40745
40745
  setup(n) {
40746
40746
  const e = n, { provides: t } = Lb(), o = Ht(() => e.documentId), r = j(null);
40747
40747
  let a = null, i = !1;
40748
- const s = f(() => o.value && o.value.pageRefreshVersions[e.pageIndex] || 0), l = f(() => {
40748
+ const s = P(() => o.value && o.value.pageRefreshVersions[e.pageIndex] || 0), l = P(() => {
40749
40749
  var u;
40750
40750
  return e.scale !== void 0 ? e.scale : ((u = o.value) == null ? void 0 : u.scale) ?? 1;
40751
- }), c = f(() => e.dpr !== void 0 ? e.dpr : window.devicePixelRatio);
40751
+ }), c = P(() => e.dpr !== void 0 ? e.dpr : window.devicePixelRatio);
40752
40752
  ce(
40753
40753
  [
40754
40754
  () => e.documentId,
@@ -40803,7 +40803,7 @@ const Ob = /* @__PURE__ */ q({
40803
40803
  search: !0
40804
40804
  };
40805
40805
  function Ub(n) {
40806
- const e = j("正在初始化 PDF 编辑器"), t = j(!1), o = j(!1), r = f(() => {
40806
+ const e = j("正在初始化 PDF 编辑器"), t = j(!1), o = j(!1), r = P(() => {
40807
40807
  var i, s, l, c, d;
40808
40808
  return {
40809
40809
  ...jb,
@@ -40814,7 +40814,7 @@ function Ub(n) {
40814
40814
  redaction: n.readonly ? !1 : ((c = n.capabilities) == null ? void 0 : c.redaction) ?? !0,
40815
40815
  export: ((d = n.capabilities) == null ? void 0 : d.export) ?? !0
40816
40816
  };
40817
- }), a = f(() => n.source.type !== "url" && r.value.export);
40817
+ }), a = P(() => n.source.type !== "url" && r.value.export);
40818
40818
  return {
40819
40819
  capabilities: r,
40820
40820
  canSaveToService: a,
@@ -40948,7 +40948,7 @@ const Bb = { class: "jit-pdf-editor" }, zb = { class: "jit-ribbon" }, Wb = { cla
40948
40948
  }, m_ = {
40949
40949
  key: 3,
40950
40950
  class: "jit-state"
40951
- }, f_ = /* @__PURE__ */ q({
40951
+ }, f_ = "https://jitword.com/jit-pdf.html", P_ = /* @__PURE__ */ q({
40952
40952
  __name: "JitPdfEditorInner",
40953
40953
  props: {
40954
40954
  source: {},
@@ -40969,9 +40969,9 @@ const Bb = { class: "jit-pdf-editor" }, zb = { class: "jit-ribbon" }, Wb = { cla
40969
40969
  leftDrawerOpen: i,
40970
40970
  rightDrawerOpen: s,
40971
40971
  statusMessage: l
40972
- } = Ub(t), c = j(""), d = j(""), u = j("浏览"), g = j(!1), p = j("home"), h = f(
40972
+ } = Ub(t), c = j(""), d = j(""), u = j("浏览"), g = j(!1), p = j("home"), h = P(
40973
40973
  () => t.source.type === "url" ? `url:${t.source.url}` : `${t.source.type}:${t.source.fileId}`
40974
- ), m = f(
40974
+ ), m = P(
40975
40975
  () => t.source.type === "url" ? null : t.source.fileId
40976
40976
  ), { provides: b } = Ll(), { provides: y } = en(), { provides: _ } = Mb(), S = na(() => t.activeDocumentId ?? "");
40977
40977
  function x(D) {
@@ -40998,7 +40998,7 @@ const Bb = { class: "jit-pdf-editor" }, zb = { class: "jit-ribbon" }, Wb = { cla
40998
40998
  { immediate: !0 }
40999
40999
  ), {
41000
41000
  state: k,
41001
- provides: f(() => {
41001
+ provides: P(() => {
41002
41002
  const K = D.value;
41003
41003
  return K && F.value ? F.value.forDocument(K) : null;
41004
41004
  })
@@ -41028,7 +41028,7 @@ const Bb = { class: "jit-pdf-editor" }, zb = { class: "jit-ribbon" }, Wb = { cla
41028
41028
  { immediate: !0 }
41029
41029
  ), {
41030
41030
  state: k,
41031
- provides: f(() => {
41031
+ provides: P(() => {
41032
41032
  const K = D.value;
41033
41033
  return K && F.value ? F.value.forDocument(K) : null;
41034
41034
  })
@@ -41058,7 +41058,7 @@ const Bb = { class: "jit-pdf-editor" }, zb = { class: "jit-ribbon" }, Wb = { cla
41058
41058
  { immediate: !0 }
41059
41059
  ), {
41060
41060
  state: k,
41061
- provides: f(() => {
41061
+ provides: P(() => {
41062
41062
  const K = D.value;
41063
41063
  return K && F.value ? F.value.forDocument(K) : null;
41064
41064
  })
@@ -41088,7 +41088,7 @@ const Bb = { class: "jit-pdf-editor" }, zb = { class: "jit-ribbon" }, Wb = { cla
41088
41088
  { immediate: !0 }
41089
41089
  ), {
41090
41090
  state: k,
41091
- provides: f(() => {
41091
+ provides: P(() => {
41092
41092
  const K = D.value;
41093
41093
  return K && F.value ? F.value.forDocument(K) : null;
41094
41094
  })
@@ -41125,7 +41125,7 @@ const Bb = { class: "jit-pdf-editor" }, zb = { class: "jit-ribbon" }, Wb = { cla
41125
41125
  { immediate: !0 }
41126
41126
  ), {
41127
41127
  state: k,
41128
- provides: f(() => {
41128
+ provides: P(() => {
41129
41129
  const K = D.value;
41130
41130
  return K && F.value ? F.value.forDocument(K) : null;
41131
41131
  })
@@ -41134,25 +41134,25 @@ const Bb = { class: "jit-pdf-editor" }, zb = { class: "jit-ribbon" }, Wb = { cla
41134
41134
  function B(D) {
41135
41135
  const { provides: F } = jl();
41136
41136
  return {
41137
- provides: f(() => {
41137
+ provides: P(() => {
41138
41138
  const k = D.value;
41139
41139
  return k && F.value ? F.value.forDocument(k) : null;
41140
41140
  })
41141
41141
  };
41142
41142
  }
41143
- const Y = f(() => t.activeDocumentId ?? null), { provides: te, state: Z } = x(Y), { provides: H, state: ne } = C(Y), { provides: ie, state: fe } = W(Y), { provides: Le, state: se } = O(Y), { provides: ke } = B(Y), { provides: Xe, state: Ie } = G(Y), T = f(
41143
+ const Y = P(() => t.activeDocumentId ?? null), { provides: te, state: Z } = x(Y), { provides: H, state: ne } = C(Y), { provides: ie, state: fe } = W(Y), { provides: Le, state: se } = O(Y), { provides: ke } = B(Y), { provides: Xe, state: Ie } = G(Y), T = P(
41144
41144
  () => fe.value.hasPendingChanges || se.value.pendingCount > 0
41145
- ), $ = f(() => Z.value.currentZoomLevel || 1), L = f(() => Ie.value.currentPage || 1), X = f(() => Ie.value.totalPages || 0), R = f(() => {
41145
+ ), $ = P(() => Z.value.currentZoomLevel || 1), L = P(() => Ie.value.currentPage || 1), X = P(() => Ie.value.totalPages || 0), R = P(() => {
41146
41146
  var D;
41147
41147
  return ((D = _.value) == null ? void 0 : D.canUndo()) ?? !1;
41148
- }), Q = f(() => {
41148
+ }), Q = P(() => {
41149
41149
  var D;
41150
41150
  return ((D = _.value) == null ? void 0 : D.canRedo()) ?? !1;
41151
- }), re = f(() => ne.value.total || 0), pe = f(() => `${Math.round($.value * 100)}%`), At = f(
41151
+ }), re = P(() => ne.value.total || 0), pe = P(() => `${Math.round($.value * 100)}%`), At = P(
41152
41152
  () => !t.readonly && S.value.canModifyAnnotations
41153
- ), dt = f(
41153
+ ), dt = P(
41154
41154
  () => t.readonly ? "只读" : At.value ? "可批注" : "受限"
41155
- ), nn = f(() => {
41155
+ ), nn = P(() => {
41156
41156
  var D;
41157
41157
  return [
41158
41158
  ...((D = y.value) == null ? void 0 : D.getColorPresets()) ?? [],
@@ -41164,25 +41164,25 @@ const Bb = { class: "jit-pdf-editor" }, zb = { class: "jit-ribbon" }, Wb = { cla
41164
41164
  ].filter((F, k, K) => K.indexOf(F) === k);
41165
41165
  }), Me = j(null), xt = j("#1677FF"), et = j(0.7), tt = j(6), Ft = j(14), bt = j(""), Ve = j("idle");
41166
41166
  let Ue = null;
41167
- const Ot = f(() => ["highlight", "textComment", "freeText", "ink"].includes(Me.value ?? "")), yn = f(() => ["highlight", "textComment", "freeText", "ink"].includes(Me.value ?? "")), Ct = f(() => Me.value === "ink"), Hn = f(() => Me.value === "freeText"), on = f(() => fe.value.selectedUids ?? []), ut = f(() => on.value.length), at = f(() => on.value[0] ?? null), Ye = f(
41167
+ const Ot = P(() => ["highlight", "textComment", "freeText", "ink"].includes(Me.value ?? "")), yn = P(() => ["highlight", "textComment", "freeText", "ink"].includes(Me.value ?? "")), Ct = P(() => Me.value === "ink"), Hn = P(() => Me.value === "freeText"), on = P(() => fe.value.selectedUids ?? []), ut = P(() => on.value.length), at = P(() => on.value[0] ?? null), Ye = P(
41168
41168
  () => at.value ? fe.value.byUid[at.value] ?? null : null
41169
- ), I = f(
41169
+ ), I = P(
41170
41170
  () => at.value ? _e(at.value) : null
41171
- ), Pe = f(
41171
+ ), Pe = P(
41172
41172
  () => {
41173
41173
  var D, F;
41174
41174
  return Ye.value ? ((F = (D = ie.value) == null ? void 0 : D.findToolForAnnotation(Ye.value.object)) == null ? void 0 : F.id) ?? null : null;
41175
41175
  }
41176
- ), Ee = f(() => Pe.value === "textComment"), Be = f(() => {
41176
+ ), Ee = P(() => Pe.value === "textComment"), Be = P(() => {
41177
41177
  if (!Ee.value || !Ye.value)
41178
41178
  return "";
41179
41179
  const { contents: D } = Ye.value.object;
41180
41180
  return typeof D == "string" ? D : "";
41181
- }), Te = f(() => !Ee.value || !Ye.value ? null : {
41181
+ }), Te = P(() => !Ee.value || !Ye.value ? null : {
41182
41182
  id: at.value,
41183
41183
  pageIndex: I.value,
41184
41184
  pageLabel: I.value === null ? "-" : String(I.value + 1)
41185
- }), kt = f(() => bt.value.length), It = f(() => {
41185
+ }), kt = P(() => bt.value.length), It = P(() => {
41186
41186
  if (!Ee.value)
41187
41187
  return "未选中便签";
41188
41188
  switch (Ve.value) {
@@ -41197,11 +41197,11 @@ const Bb = { class: "jit-pdf-editor" }, zb = { class: "jit-ribbon" }, Wb = { cla
41197
41197
  default:
41198
41198
  return "可编辑";
41199
41199
  }
41200
- }), ze = f(() => zp(fe.value)), it = f(() => ze.value.length), nt = j(""), Ne = j("all"), ot = j(!1), ve = j([]), yt = j(!1);
41200
+ }), ze = P(() => zp(fe.value)), it = P(() => ze.value.length), nt = j(""), Ne = j("all"), ot = j(!1), ve = j([]), yt = j(!1);
41201
41201
  function Gt(D) {
41202
41202
  return xd(D);
41203
41203
  }
41204
- const Vn = f(
41204
+ const Vn = P(
41205
41205
  () => Gt(
41206
41206
  Object.values(fe.value.byUid).filter((D) => D.commitState !== "deleted").map((D) => D.object)
41207
41207
  )
@@ -41217,7 +41217,7 @@ const Bb = { class: "jit-pdf-editor" }, zb = { class: "jit-ribbon" }, Wb = { cla
41217
41217
  { id: "annotate", label: "批注", description: "高亮、便签、文本框、涂鸦、脱敏" },
41218
41218
  { id: "view", label: "视图", description: "页面定位、目录和阅读布局" },
41219
41219
  { id: "review", label: "审阅", description: "搜索、结果导航和脱敏提交" }
41220
- ], tr = f(() => [
41220
+ ], tr = P(() => [
41221
41221
  {
41222
41222
  id: "browse",
41223
41223
  label: "浏览",
@@ -41542,7 +41542,7 @@ const Bb = { class: "jit-pdf-editor" }, zb = { class: "jit-ribbon" }, Wb = { cla
41542
41542
  const K = D.replies.map((w) => w.object.contents).find((w) => typeof w == "string" && w.trim().length > 0);
41543
41543
  return K ? K.trim() : `${ar(D)} · 第 ${D.page + 1} 页`;
41544
41544
  }
41545
- const fo = f(
41545
+ const fo = P(
41546
41546
  () => ze.value.map((D) => {
41547
41547
  var le, we, ye;
41548
41548
  const F = gt(D.annotation), k = ((we = (le = ie.value) == null ? void 0 : le.findToolForAnnotation(D.annotation.object)) == null ? void 0 : we.id) ?? "annotation", K = rn[k] ?? "批注", w = kd(D);
@@ -41559,7 +41559,7 @@ const Bb = { class: "jit-pdf-editor" }, zb = { class: "jit-ribbon" }, Wb = { cla
41559
41559
  searchText: `${K} ${w} 第 ${D.page + 1} 页`.toLowerCase()
41560
41560
  };
41561
41561
  })
41562
- ), ba = f(() => {
41562
+ ), ba = P(() => {
41563
41563
  const D = /* @__PURE__ */ new Map();
41564
41564
  for (const F of fo.value) {
41565
41565
  const k = D.get(F.kindId);
@@ -41577,20 +41577,20 @@ const Bb = { class: "jit-pdf-editor" }, zb = { class: "jit-ribbon" }, Wb = { cla
41577
41577
  { id: "all", label: "全部类型", count: fo.value.length },
41578
41578
  ...[...D.values()].sort((F, k) => F.label.localeCompare(k.label, "zh-CN"))
41579
41579
  ];
41580
- }), ya = f(() => {
41580
+ }), ya = P(() => {
41581
41581
  const D = nt.value.trim().toLowerCase();
41582
41582
  return fo.value.filter((F) => {
41583
41583
  const k = Ne.value === "all" || F.kindId === Ne.value, K = !D || F.searchText.includes(D);
41584
41584
  return k && K;
41585
41585
  });
41586
- }), va = f(() => {
41586
+ }), va = P(() => {
41587
41587
  const D = /* @__PURE__ */ new Map();
41588
41588
  for (const F of ya.value) {
41589
41589
  const k = D.get(F.page) ?? [];
41590
41590
  k.push(F), D.set(F.page, k);
41591
41591
  }
41592
41592
  return [...D.entries()].sort(([F], [k]) => F - k).map(([F, k]) => ({ page: F, items: k }));
41593
- }), qn = f(() => ya.value.map((D) => D.id)), Po = f(() => ve.value.length), _a = f(
41593
+ }), qn = P(() => ya.value.map((D) => D.id)), Po = P(() => ve.value.length), _a = P(
41594
41594
  () => qn.value.length > 0 && qn.value.every((D) => ve.value.includes(D))
41595
41595
  );
41596
41596
  ce(fo, (D) => {
@@ -41699,7 +41699,7 @@ const Bb = { class: "jit-pdf-editor" }, zb = { class: "jit-ribbon" }, Wb = { cla
41699
41699
  }
41700
41700
  await ir("redaction-save");
41701
41701
  }
41702
- const Bd = f(() => t.readonly ? "只读状态" : Ee.value ? "便签编辑" : se.value.pendingCount > 0 ? "待提交脱敏" : "编辑状态");
41702
+ const Bd = P(() => t.readonly ? "只读状态" : Ee.value ? "便签编辑" : se.value.pendingCount > 0 ? "待提交脱敏" : "编辑状态");
41703
41703
  return so(() => {
41704
41704
  window.addEventListener("keydown", Da);
41705
41705
  }), Uo(() => {
@@ -41712,58 +41712,58 @@ const Bb = { class: "jit-pdf-editor" }, zb = { class: "jit-ribbon" }, Wb = { cla
41712
41712
  ), (D, F) => {
41713
41713
  var k, K;
41714
41714
  return v(), E("div", Bb, [
41715
- P("header", zb, [
41716
- P("div", Wb, [
41717
- P("div", Hb, [
41718
- P("button", {
41715
+ f("header", zb, [
41716
+ f("div", Wb, [
41717
+ f("div", Hb, [
41718
+ f("button", {
41719
41719
  class: "jit-toolbar__toggle",
41720
41720
  onClick: F[0] || (F[0] = (w) => i.value = !M(i))
41721
41721
  }, "目录"),
41722
- P("div", Vb, [
41723
- P("strong", null, oe(n.source.name ?? "未命名文档"), 1),
41724
- P("span", null, oe(M(l)), 1)
41722
+ f("div", Vb, [
41723
+ f("strong", null, oe(n.source.name ?? "未命名文档"), 1),
41724
+ f("span", null, oe(M(l)), 1)
41725
41725
  ])
41726
41726
  ]),
41727
- P("div", Yb, [
41728
- P("span", qb, oe(((k = go.find((w) => w.id === p.value)) == null ? void 0 : k.label) ?? "开始"), 1),
41729
- P("span", Xb, "第 " + oe(L.value) + " 页 / 共 " + oe(X.value || "-") + " 页", 1)
41727
+ f("div", Yb, [
41728
+ f("span", qb, oe(((k = go.find((w) => w.id === p.value)) == null ? void 0 : k.label) ?? "开始"), 1),
41729
+ f("span", Xb, "第 " + oe(L.value) + " 页 / 共 " + oe(X.value || "-") + " 页", 1)
41730
41730
  ]),
41731
- P("div", Kb, [
41732
- P("button", {
41731
+ f("div", Kb, [
41732
+ f("button", {
41733
41733
  class: "jit-ribbon__action",
41734
41734
  "data-tooltip": "撤销最近一次操作",
41735
41735
  disabled: !R.value,
41736
41736
  onClick: Ma
41737
41737
  }, "撤销", 8, Zb),
41738
- P("button", {
41738
+ f("button", {
41739
41739
  class: "jit-ribbon__action",
41740
41740
  "data-tooltip": "重做刚刚撤销的内容",
41741
41741
  disabled: !Q.value,
41742
41742
  onClick: Ta
41743
41743
  }, "重做", 8, Qb),
41744
- P("button", {
41744
+ f("button", {
41745
41745
  class: "jit-ribbon__action",
41746
41746
  "data-tooltip": g.value ? "展开左侧缩略图导航" : "收起左侧缩略图导航",
41747
41747
  onClick: me
41748
41748
  }, oe(g.value ? "展开目录" : "收起目录"), 9, Jb),
41749
- P("button", {
41749
+ f("button", {
41750
41750
  class: "jit-ribbon__action",
41751
41751
  "data-tooltip": ot.value ? "隐藏批注管理抽屉" : "显示批注管理抽屉",
41752
41752
  onClick: rr
41753
41753
  }, oe(ot.value ? "隐藏批注" : "显示批注"), 9, ey),
41754
- P("button", {
41754
+ f("button", {
41755
41755
  class: "jit-ribbon__action",
41756
41756
  "data-tooltip": M(s) ? "隐藏悬浮属性面板" : "显示悬浮属性面板",
41757
41757
  onClick: pt
41758
41758
  }, oe(M(s) ? "隐藏属性" : "显示属性"), 9, ty),
41759
- P("button", {
41759
+ f("button", {
41760
41760
  class: "jit-toolbar__toggle",
41761
41761
  onClick: pt
41762
41762
  }, "状态")
41763
41763
  ])
41764
41764
  ]),
41765
- P("div", ny, [
41766
- (v(), E(de, null, xe(go, (w) => P("button", {
41765
+ f("div", ny, [
41766
+ (v(), E(de, null, xe(go, (w) => f("button", {
41767
41767
  key: w.id,
41768
41768
  class: Dt(["jit-ribbon__tab", { "is-active": p.value === w.id }]),
41769
41769
  "data-tooltip": w.description,
@@ -41771,77 +41771,77 @@ const Bb = { class: "jit-pdf-editor" }, zb = { class: "jit-ribbon" }, Wb = { cla
41771
41771
  onClick: (le) => p.value = w.id
41772
41772
  }, oe(w.label), 11, oy)), 64))
41773
41773
  ]),
41774
- P("div", ry, [
41774
+ f("div", ry, [
41775
41775
  p.value === "home" ? (v(), E("div", ay, [
41776
- P("section", { class: "jit-ribbon__section jit-ribbon__section--nav" }, [
41777
- P("div", { class: "jit-ribbon__section-body" }, [
41778
- P("button", {
41776
+ f("section", { class: "jit-ribbon__section jit-ribbon__section--nav" }, [
41777
+ f("div", { class: "jit-ribbon__section-body" }, [
41778
+ f("button", {
41779
41779
  class: "jit-icon-button",
41780
41780
  "aria-label": "上一页",
41781
41781
  onClick: xa
41782
41782
  }, [...F[12] || (F[12] = [
41783
- P("svg", {
41783
+ f("svg", {
41784
41784
  viewBox: "0 0 24 24",
41785
41785
  "aria-hidden": "true"
41786
41786
  }, [
41787
- P("path", { d: "M15 18l-6-6 6-6" })
41787
+ f("path", { d: "M15 18l-6-6 6-6" })
41788
41788
  ], -1),
41789
- P("span", null, "上一页", -1)
41789
+ f("span", null, "上一页", -1)
41790
41790
  ])]),
41791
- P("button", {
41791
+ f("button", {
41792
41792
  class: "jit-icon-button",
41793
41793
  "aria-label": "下一页",
41794
41794
  onClick: Ca
41795
41795
  }, [...F[13] || (F[13] = [
41796
- P("svg", {
41796
+ f("svg", {
41797
41797
  viewBox: "0 0 24 24",
41798
41798
  "aria-hidden": "true"
41799
41799
  }, [
41800
- P("path", { d: "M9 6l6 6-6 6" })
41800
+ f("path", { d: "M9 6l6 6-6 6" })
41801
41801
  ], -1),
41802
- P("span", null, "下一页", -1)
41802
+ f("span", null, "下一页", -1)
41803
41803
  ])])
41804
41804
  ]),
41805
- F[14] || (F[14] = P("div", { class: "jit-ribbon__section-label" }, "页面浏览", -1))
41805
+ F[14] || (F[14] = f("div", { class: "jit-ribbon__section-label" }, "页面浏览", -1))
41806
41806
  ]),
41807
- P("section", iy, [
41808
- P("div", sy, [
41809
- P("button", {
41807
+ f("section", iy, [
41808
+ f("div", sy, [
41809
+ f("button", {
41810
41810
  class: "jit-icon-button",
41811
41811
  "aria-label": "缩小",
41812
41812
  onClick: jd
41813
41813
  }, [...F[15] || (F[15] = [
41814
- P("svg", {
41814
+ f("svg", {
41815
41815
  viewBox: "0 0 24 24",
41816
41816
  "aria-hidden": "true"
41817
41817
  }, [
41818
- P("path", { d: "M5 12h8" }),
41819
- P("path", { d: "M14.5 14.5L20 20" }),
41820
- P("circle", {
41818
+ f("path", { d: "M5 12h8" }),
41819
+ f("path", { d: "M14.5 14.5L20 20" }),
41820
+ f("circle", {
41821
41821
  cx: "10",
41822
41822
  cy: "10",
41823
41823
  r: "6"
41824
41824
  })
41825
41825
  ], -1),
41826
- P("span", null, "缩小", -1)
41826
+ f("span", null, "缩小", -1)
41827
41827
  ])]),
41828
- P("button", {
41828
+ f("button", {
41829
41829
  class: "jit-icon-button",
41830
41830
  "aria-label": "放大",
41831
41831
  onClick: Nd
41832
41832
  }, [...F[16] || (F[16] = [
41833
41833
  ln('<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M10 7v6"></path><path d="M7 10h6"></path><path d="M14.5 14.5L20 20"></path><circle cx="10" cy="10" r="6"></circle></svg><span>放大</span>', 2)
41834
41834
  ])]),
41835
- P("button", {
41835
+ f("button", {
41836
41836
  class: "jit-icon-button",
41837
41837
  "aria-label": "适应整页",
41838
41838
  onClick: Aa
41839
41839
  }, [...F[17] || (F[17] = [
41840
- P("svg", {
41840
+ f("svg", {
41841
41841
  viewBox: "0 0 24 24",
41842
41842
  "aria-hidden": "true"
41843
41843
  }, [
41844
- P("rect", {
41844
+ f("rect", {
41845
41845
  x: "7",
41846
41846
  y: "4",
41847
41847
  width: "10",
@@ -41849,73 +41849,73 @@ const Bb = { class: "jit-pdf-editor" }, zb = { class: "jit-ribbon" }, Wb = { cla
41849
41849
  rx: "1.5"
41850
41850
  })
41851
41851
  ], -1),
41852
- P("span", null, "整页", -1)
41852
+ f("span", null, "整页", -1)
41853
41853
  ])]),
41854
- P("button", {
41854
+ f("button", {
41855
41855
  class: "jit-icon-button",
41856
41856
  "aria-label": "适应页宽",
41857
41857
  onClick: Sa
41858
41858
  }, [...F[18] || (F[18] = [
41859
41859
  ln('<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 8V5h3"></path><path d="M20 8V5h-3"></path><path d="M4 16v3h3"></path><path d="M20 16v3h-3"></path><path d="M8 12h8"></path></svg><span>页宽</span>', 2)
41860
41860
  ])]),
41861
- P("div", ly, oe(pe.value), 1)
41861
+ f("div", ly, oe(pe.value), 1)
41862
41862
  ]),
41863
- F[19] || (F[19] = P("div", { class: "jit-ribbon__section-label" }, "缩放与阅读", -1))
41863
+ F[19] || (F[19] = f("div", { class: "jit-ribbon__section-label" }, "缩放与阅读", -1))
41864
41864
  ]),
41865
- P("section", cy, [
41866
- P("div", dy, [
41867
- P("button", {
41865
+ f("section", cy, [
41866
+ f("div", dy, [
41867
+ f("button", {
41868
41868
  class: "jit-icon-button",
41869
41869
  "aria-label": "撤销",
41870
41870
  disabled: !R.value,
41871
41871
  onClick: Ma
41872
41872
  }, [...F[20] || (F[20] = [
41873
- P("svg", {
41873
+ f("svg", {
41874
41874
  viewBox: "0 0 24 24",
41875
41875
  "aria-hidden": "true"
41876
41876
  }, [
41877
- P("path", { d: "M9 7H5v4" }),
41878
- P("path", { d: "M5 11c2-3 5-5 9-5 3 0 6 2 7 5" })
41877
+ f("path", { d: "M9 7H5v4" }),
41878
+ f("path", { d: "M5 11c2-3 5-5 9-5 3 0 6 2 7 5" })
41879
41879
  ], -1),
41880
- P("span", null, "撤销", -1)
41880
+ f("span", null, "撤销", -1)
41881
41881
  ])], 8, uy),
41882
- P("button", {
41882
+ f("button", {
41883
41883
  class: "jit-icon-button",
41884
41884
  "aria-label": "重做",
41885
41885
  disabled: !Q.value,
41886
41886
  onClick: Ta
41887
41887
  }, [...F[21] || (F[21] = [
41888
- P("svg", {
41888
+ f("svg", {
41889
41889
  viewBox: "0 0 24 24",
41890
41890
  "aria-hidden": "true"
41891
41891
  }, [
41892
- P("path", { d: "M15 7h4v4" }),
41893
- P("path", { d: "M19 11c-2-3-5-5-9-5-3 0-6 2-7 5" })
41892
+ f("path", { d: "M15 7h4v4" }),
41893
+ f("path", { d: "M19 11c-2-3-5-5-9-5-3 0-6 2-7 5" })
41894
41894
  ], -1),
41895
- P("span", null, "重做", -1)
41895
+ f("span", null, "重做", -1)
41896
41896
  ])], 8, py)
41897
41897
  ]),
41898
- F[22] || (F[22] = P("div", { class: "jit-ribbon__section-label" }, "历史记录", -1))
41898
+ F[22] || (F[22] = f("div", { class: "jit-ribbon__section-label" }, "历史记录", -1))
41899
41899
  ]),
41900
- P("section", gy, [
41901
- P("div", hy, [
41902
- P("button", {
41900
+ f("section", gy, [
41901
+ f("div", hy, [
41902
+ f("button", {
41903
41903
  class: "jit-icon-button jit-icon-button--primary",
41904
41904
  "aria-label": "另存副本",
41905
41905
  disabled: !M(a),
41906
41906
  onClick: F[1] || (F[1] = (w) => ir())
41907
41907
  }, [...F[23] || (F[23] = [
41908
- P("svg", {
41908
+ f("svg", {
41909
41909
  viewBox: "0 0 24 24",
41910
41910
  "aria-hidden": "true"
41911
41911
  }, [
41912
- P("path", { d: "M6 4h9l3 3v13H6z" }),
41913
- P("path", { d: "M9 4v5h6" }),
41914
- P("path", { d: "M9 16h6" })
41912
+ f("path", { d: "M6 4h9l3 3v13H6z" }),
41913
+ f("path", { d: "M9 4v5h6" }),
41914
+ f("path", { d: "M9 16h6" })
41915
41915
  ], -1),
41916
- P("span", null, "另存副本", -1)
41916
+ f("span", null, "另存副本", -1)
41917
41917
  ])], 8, my),
41918
- P("button", {
41918
+ f("button", {
41919
41919
  class: "jit-icon-button is-danger",
41920
41920
  "aria-label": "提交脱敏并导出",
41921
41921
  disabled: !M(r).redaction || !M(se).pendingCount,
@@ -41924,11 +41924,11 @@ const Bb = { class: "jit-pdf-editor" }, zb = { class: "jit-ribbon" }, Wb = { cla
41924
41924
  ln('<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M5 7h14"></path><path d="M8 7V5h8v2"></path><path d="M8 10v7"></path><path d="M12 10v7"></path><path d="M16 10v7"></path><path d="M6 7l1 12h10l1-12"></path></svg><span>提交脱敏</span>', 2)
41925
41925
  ])], 8, fy)
41926
41926
  ]),
41927
- F[25] || (F[25] = P("div", { class: "jit-ribbon__section-label" }, "保存导出", -1))
41927
+ F[25] || (F[25] = f("div", { class: "jit-ribbon__section-label" }, "保存导出", -1))
41928
41928
  ])
41929
41929
  ])) : p.value === "annotate" ? (v(), E("div", Py, [
41930
- P("section", Fy, [
41931
- P("div", by, [
41930
+ f("section", Fy, [
41931
+ f("div", by, [
41932
41932
  (v(!0), E(de, null, xe(tr.value, (w) => (v(), E("button", {
41933
41933
  key: w.id,
41934
41934
  class: Dt(["jit-icon-button jit-icon-button--tool", { "is-active": w.active, "is-danger": w.danger }]),
@@ -41937,36 +41937,36 @@ const Bb = { class: "jit-pdf-editor" }, zb = { class: "jit-ribbon" }, Wb = { cla
41937
41937
  onClick: w.onClick
41938
41938
  }, [
41939
41939
  w.icon === "pointer" ? (v(), E("svg", vy, [...F[26] || (F[26] = [
41940
- P("path", { d: "M6 4l10 8-5 1 2 5-2 1-2-5-3 3z" }, null, -1)
41940
+ f("path", { d: "M6 4l10 8-5 1 2 5-2 1-2-5-3 3z" }, null, -1)
41941
41941
  ])])) : w.icon === "highlight" ? (v(), E("svg", _y, [...F[27] || (F[27] = [
41942
- P("path", { d: "M6 15l5-5 4 4-5 5H6z" }, null, -1),
41943
- P("path", { d: "M13 8l2-2 3 3-2 2z" }, null, -1),
41944
- P("path", { d: "M5 19h9" }, null, -1)
41942
+ f("path", { d: "M6 15l5-5 4 4-5 5H6z" }, null, -1),
41943
+ f("path", { d: "M13 8l2-2 3 3-2 2z" }, null, -1),
41944
+ f("path", { d: "M5 19h9" }, null, -1)
41945
41945
  ])])) : w.icon === "note" ? (v(), E("svg", Dy, [...F[28] || (F[28] = [
41946
- P("path", { d: "M7 4h10v12H7z" }, null, -1),
41947
- P("path", { d: "M9 8h6" }, null, -1),
41948
- P("path", { d: "M9 12h4" }, null, -1),
41949
- P("path", { d: "M7 16h3" }, null, -1)
41946
+ f("path", { d: "M7 4h10v12H7z" }, null, -1),
41947
+ f("path", { d: "M9 8h6" }, null, -1),
41948
+ f("path", { d: "M9 12h4" }, null, -1),
41949
+ f("path", { d: "M7 16h3" }, null, -1)
41950
41950
  ])])) : w.icon === "text" ? (v(), E("svg", Ey, [...F[29] || (F[29] = [
41951
- P("path", { d: "M6 6h12" }, null, -1),
41952
- P("path", { d: "M12 6v12" }, null, -1),
41953
- P("path", { d: "M8 18h8" }, null, -1)
41951
+ f("path", { d: "M6 6h12" }, null, -1),
41952
+ f("path", { d: "M12 6v12" }, null, -1),
41953
+ f("path", { d: "M8 18h8" }, null, -1)
41954
41954
  ])])) : w.icon === "draw" ? (v(), E("svg", Sy, [...F[30] || (F[30] = [
41955
- P("path", { d: "M4 16c2-4 5-6 8-7 2-1 4 0 5 2 1 2 0 4-2 5-3 2-7 2-11 0z" }, null, -1),
41956
- P("path", { d: "M14 6l2-2 4 4-2 2z" }, null, -1)
41955
+ f("path", { d: "M4 16c2-4 5-6 8-7 2-1 4 0 5 2 1 2 0 4-2 5-3 2-7 2-11 0z" }, null, -1),
41956
+ f("path", { d: "M14 6l2-2 4 4-2 2z" }, null, -1)
41957
41957
  ])])) : (v(), E("svg", Ay, [...F[31] || (F[31] = [
41958
41958
  ln('<path d="M5 7h14"></path><path d="M8 7V5h8v2"></path><path d="M7 11h10"></path><path d="M7 15h10"></path><path d="M7 19h10"></path>', 5)
41959
41959
  ])])),
41960
- P("span", null, oe(w.label), 1)
41960
+ f("span", null, oe(w.label), 1)
41961
41961
  ], 10, yy))), 128))
41962
41962
  ]),
41963
- F[32] || (F[32] = P("div", { class: "jit-ribbon__section-label" }, "批注工具", -1))
41963
+ F[32] || (F[32] = f("div", { class: "jit-ribbon__section-label" }, "批注工具", -1))
41964
41964
  ]),
41965
- P("section", xy, [
41966
- P("div", Cy, [
41967
- P("div", My, [
41968
- F[33] || (F[33] = P("span", { class: "jit-style-label" }, "颜色", -1)),
41969
- P("div", Ty, [
41965
+ f("section", xy, [
41966
+ f("div", Cy, [
41967
+ f("div", My, [
41968
+ F[33] || (F[33] = f("span", { class: "jit-style-label" }, "颜色", -1)),
41969
+ f("div", Ty, [
41970
41970
  (v(!0), E(de, null, xe(nn.value, (w) => (v(), E("button", {
41971
41971
  key: w,
41972
41972
  class: Dt(["jit-color-swatch", { "is-active": xt.value === w }]),
@@ -41978,12 +41978,12 @@ const Bb = { class: "jit-pdf-editor" }, zb = { class: "jit-ribbon" }, Wb = { cla
41978
41978
  ])
41979
41979
  ]),
41980
41980
  Ct.value ? (v(), E("div", wy, [
41981
- F[34] || (F[34] = P("label", {
41981
+ F[34] || (F[34] = f("label", {
41982
41982
  class: "jit-style-label",
41983
41983
  for: "jit-stroke-width"
41984
41984
  }, "线条粗细", -1)),
41985
- P("div", Oy, [
41986
- Dn(P("input", {
41985
+ f("div", Oy, [
41986
+ Dn(f("input", {
41987
41987
  id: "jit-stroke-width",
41988
41988
  "onUpdate:modelValue": F[2] || (F[2] = (w) => tt.value = w),
41989
41989
  type: "range",
@@ -41999,16 +41999,16 @@ const Bb = { class: "jit-pdf-editor" }, zb = { class: "jit-ribbon" }, Wb = { cla
41999
41999
  { number: !0 }
42000
42000
  ]
42001
42001
  ]),
42002
- P("span", null, oe(tt.value), 1)
42002
+ f("span", null, oe(tt.value), 1)
42003
42003
  ])
42004
42004
  ])) : V("", !0),
42005
42005
  Hn.value ? (v(), E("div", ky, [
42006
- F[35] || (F[35] = P("label", {
42006
+ F[35] || (F[35] = f("label", {
42007
42007
  class: "jit-style-label",
42008
42008
  for: "jit-font-size"
42009
42009
  }, "字号", -1)),
42010
- P("div", Iy, [
42011
- Dn(P("input", {
42010
+ f("div", Iy, [
42011
+ Dn(f("input", {
42012
42012
  id: "jit-font-size",
42013
42013
  "onUpdate:modelValue": F[3] || (F[3] = (w) => Ft.value = w),
42014
42014
  type: "range",
@@ -42024,16 +42024,16 @@ const Bb = { class: "jit-pdf-editor" }, zb = { class: "jit-ribbon" }, Wb = { cla
42024
42024
  { number: !0 }
42025
42025
  ]
42026
42026
  ]),
42027
- P("span", null, oe(Ft.value), 1)
42027
+ f("span", null, oe(Ft.value), 1)
42028
42028
  ])
42029
42029
  ])) : V("", !0),
42030
42030
  yn.value ? (v(), E("div", Gy, [
42031
- F[36] || (F[36] = P("label", {
42031
+ F[36] || (F[36] = f("label", {
42032
42032
  class: "jit-style-label",
42033
42033
  for: "jit-opacity"
42034
42034
  }, "透明度", -1)),
42035
- P("div", Ly, [
42036
- Dn(P("input", {
42035
+ f("div", Ly, [
42036
+ Dn(f("input", {
42037
42037
  id: "jit-opacity",
42038
42038
  "onUpdate:modelValue": F[4] || (F[4] = (w) => et.value = w),
42039
42039
  type: "range",
@@ -42049,74 +42049,74 @@ const Bb = { class: "jit-pdf-editor" }, zb = { class: "jit-ribbon" }, Wb = { cla
42049
42049
  { number: !0 }
42050
42050
  ]
42051
42051
  ]),
42052
- P("span", null, oe(Math.round(et.value * 100)) + "%", 1)
42052
+ f("span", null, oe(Math.round(et.value * 100)) + "%", 1)
42053
42053
  ])
42054
42054
  ])) : V("", !0)
42055
42055
  ]),
42056
- F[37] || (F[37] = P("div", { class: "jit-ribbon__section-label" }, "样式属性", -1))
42056
+ F[37] || (F[37] = f("div", { class: "jit-ribbon__section-label" }, "样式属性", -1))
42057
42057
  ]),
42058
- P("section", $y, [
42059
- P("div", Ny, [
42060
- P("div", jy, [
42061
- F[38] || (F[38] = P("em", null, "当前工具", -1)),
42062
- P("strong", null, oe(u.value), 1)
42058
+ f("section", $y, [
42059
+ f("div", Ny, [
42060
+ f("div", jy, [
42061
+ F[38] || (F[38] = f("em", null, "当前工具", -1)),
42062
+ f("strong", null, oe(u.value), 1)
42063
42063
  ]),
42064
- P("span", {
42064
+ f("span", {
42065
42065
  class: Dt(["jit-ribbon__hint-chip", { "is-danger": dt.value === "受限" }])
42066
42066
  }, oe(dt.value), 3),
42067
- P("span", Uy, "待脱敏 " + oe(M(se).pendingCount) + " 处", 1),
42068
- P("button", {
42067
+ f("span", Uy, "待脱敏 " + oe(M(se).pendingCount) + " 处", 1),
42068
+ f("button", {
42069
42069
  class: "jit-ribbon__hint-action",
42070
42070
  disabled: !ut.value,
42071
42071
  onClick: or
42072
42072
  }, " 删除选中 " + oe(ut.value || ""), 9, By)
42073
42073
  ]),
42074
- F[39] || (F[39] = P("div", { class: "jit-ribbon__section-label" }, "使用提示", -1))
42074
+ F[39] || (F[39] = f("div", { class: "jit-ribbon__section-label" }, "使用提示", -1))
42075
42075
  ])
42076
42076
  ])) : p.value === "view" ? (v(), E("div", zy, [
42077
- P("section", { class: "jit-ribbon__section jit-ribbon__section--nav" }, [
42078
- P("div", { class: "jit-ribbon__section-body" }, [
42079
- P("button", {
42077
+ f("section", { class: "jit-ribbon__section jit-ribbon__section--nav" }, [
42078
+ f("div", { class: "jit-ribbon__section-body" }, [
42079
+ f("button", {
42080
42080
  class: "jit-icon-button",
42081
42081
  "aria-label": "上一页",
42082
42082
  onClick: xa
42083
42083
  }, [...F[40] || (F[40] = [
42084
- P("svg", {
42084
+ f("svg", {
42085
42085
  viewBox: "0 0 24 24",
42086
42086
  "aria-hidden": "true"
42087
42087
  }, [
42088
- P("path", { d: "M15 18l-6-6 6-6" })
42088
+ f("path", { d: "M15 18l-6-6 6-6" })
42089
42089
  ], -1),
42090
- P("span", null, "上一页", -1)
42090
+ f("span", null, "上一页", -1)
42091
42091
  ])]),
42092
- P("button", {
42092
+ f("button", {
42093
42093
  class: "jit-icon-button",
42094
42094
  "aria-label": "下一页",
42095
42095
  onClick: Ca
42096
42096
  }, [...F[41] || (F[41] = [
42097
- P("svg", {
42097
+ f("svg", {
42098
42098
  viewBox: "0 0 24 24",
42099
42099
  "aria-hidden": "true"
42100
42100
  }, [
42101
- P("path", { d: "M9 6l6 6-6 6" })
42101
+ f("path", { d: "M9 6l6 6-6 6" })
42102
42102
  ], -1),
42103
- P("span", null, "下一页", -1)
42103
+ f("span", null, "下一页", -1)
42104
42104
  ])])
42105
42105
  ]),
42106
- F[42] || (F[42] = P("div", { class: "jit-ribbon__section-label" }, "翻页", -1))
42106
+ F[42] || (F[42] = f("div", { class: "jit-ribbon__section-label" }, "翻页", -1))
42107
42107
  ]),
42108
- P("section", Wy, [
42109
- P("div", Hy, [
42110
- P("button", {
42108
+ f("section", Wy, [
42109
+ f("div", Hy, [
42110
+ f("button", {
42111
42111
  class: "jit-icon-button",
42112
42112
  "aria-label": "适应整页",
42113
42113
  onClick: Aa
42114
42114
  }, [...F[43] || (F[43] = [
42115
- P("svg", {
42115
+ f("svg", {
42116
42116
  viewBox: "0 0 24 24",
42117
42117
  "aria-hidden": "true"
42118
42118
  }, [
42119
- P("rect", {
42119
+ f("rect", {
42120
42120
  x: "7",
42121
42121
  y: "4",
42122
42122
  width: "10",
@@ -42124,100 +42124,100 @@ const Bb = { class: "jit-pdf-editor" }, zb = { class: "jit-ribbon" }, Wb = { cla
42124
42124
  rx: "1.5"
42125
42125
  })
42126
42126
  ], -1),
42127
- P("span", null, "整页", -1)
42127
+ f("span", null, "整页", -1)
42128
42128
  ])]),
42129
- P("button", {
42129
+ f("button", {
42130
42130
  class: "jit-icon-button",
42131
42131
  "aria-label": "适应页宽",
42132
42132
  onClick: Sa
42133
42133
  }, [...F[44] || (F[44] = [
42134
42134
  ln('<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 8V5h3"></path><path d="M20 8V5h-3"></path><path d="M4 16v3h3"></path><path d="M20 16v3h-3"></path><path d="M8 12h8"></path></svg><span>页宽</span>', 2)
42135
42135
  ])]),
42136
- P("button", {
42136
+ f("button", {
42137
42137
  class: "jit-icon-button",
42138
42138
  "aria-label": "自动缩放",
42139
42139
  onClick: Ud
42140
42140
  }, [...F[45] || (F[45] = [
42141
- P("svg", {
42141
+ f("svg", {
42142
42142
  viewBox: "0 0 24 24",
42143
42143
  "aria-hidden": "true"
42144
42144
  }, [
42145
- P("circle", {
42145
+ f("circle", {
42146
42146
  cx: "12",
42147
42147
  cy: "12",
42148
42148
  r: "8"
42149
42149
  }),
42150
- P("path", { d: "M12 8v4l3 2" })
42150
+ f("path", { d: "M12 8v4l3 2" })
42151
42151
  ], -1),
42152
- P("span", null, "自动", -1)
42152
+ f("span", null, "自动", -1)
42153
42153
  ])]),
42154
- P("div", Vy, oe(pe.value), 1)
42154
+ f("div", Vy, oe(pe.value), 1)
42155
42155
  ]),
42156
- F[46] || (F[46] = P("div", { class: "jit-ribbon__section-label" }, "阅读模式", -1))
42156
+ F[46] || (F[46] = f("div", { class: "jit-ribbon__section-label" }, "阅读模式", -1))
42157
42157
  ]),
42158
- P("section", Yy, [
42159
- P("div", qy, [
42160
- P("button", {
42158
+ f("section", Yy, [
42159
+ f("div", qy, [
42160
+ f("button", {
42161
42161
  class: "jit-icon-button",
42162
42162
  "aria-label": g.value ? "展开缩略图" : "收起缩略图",
42163
42163
  onClick: me
42164
42164
  }, [
42165
- F[47] || (F[47] = P("svg", {
42165
+ F[47] || (F[47] = f("svg", {
42166
42166
  viewBox: "0 0 24 24",
42167
42167
  "aria-hidden": "true"
42168
42168
  }, [
42169
- P("path", { d: "M4 6h16" }),
42170
- P("path", { d: "M4 12h10" }),
42171
- P("path", { d: "M4 18h16" })
42169
+ f("path", { d: "M4 6h16" }),
42170
+ f("path", { d: "M4 12h10" }),
42171
+ f("path", { d: "M4 18h16" })
42172
42172
  ], -1)),
42173
- P("span", null, oe(g.value ? "展开目录" : "收起目录"), 1)
42173
+ f("span", null, oe(g.value ? "展开目录" : "收起目录"), 1)
42174
42174
  ], 8, Xy),
42175
- P("button", {
42175
+ f("button", {
42176
42176
  class: "jit-icon-button",
42177
42177
  "aria-label": M(s) ? "隐藏属性面板" : "显示属性面板",
42178
42178
  onClick: pt
42179
42179
  }, [
42180
- F[48] || (F[48] = P("svg", {
42180
+ F[48] || (F[48] = f("svg", {
42181
42181
  viewBox: "0 0 24 24",
42182
42182
  "aria-hidden": "true"
42183
42183
  }, [
42184
- P("path", { d: "M5 5h14v14H5z" }),
42185
- P("path", { d: "M12 5v14" })
42184
+ f("path", { d: "M5 5h14v14H5z" }),
42185
+ f("path", { d: "M12 5v14" })
42186
42186
  ], -1)),
42187
- P("span", null, oe(M(s) ? "隐藏侧栏" : "显示侧栏"), 1)
42187
+ f("span", null, oe(M(s) ? "隐藏侧栏" : "显示侧栏"), 1)
42188
42188
  ], 8, Ky)
42189
42189
  ]),
42190
- F[49] || (F[49] = P("div", { class: "jit-ribbon__section-label" }, "界面布局", -1))
42190
+ F[49] || (F[49] = f("div", { class: "jit-ribbon__section-label" }, "界面布局", -1))
42191
42191
  ]),
42192
- P("section", Zy, [
42193
- P("div", Qy, [
42194
- P("div", Jy, [
42195
- F[50] || (F[50] = P("em", null, "工具", -1)),
42196
- P("strong", null, oe(u.value), 1)
42192
+ f("section", Zy, [
42193
+ f("div", Qy, [
42194
+ f("div", Jy, [
42195
+ F[50] || (F[50] = f("em", null, "工具", -1)),
42196
+ f("strong", null, oe(u.value), 1)
42197
42197
  ]),
42198
- P("div", ev, [
42199
- F[51] || (F[51] = P("em", null, "搜索", -1)),
42200
- P("strong", null, oe(re.value) + " 处", 1)
42198
+ f("div", ev, [
42199
+ F[51] || (F[51] = f("em", null, "搜索", -1)),
42200
+ f("strong", null, oe(re.value) + " 处", 1)
42201
42201
  ])
42202
42202
  ]),
42203
- F[52] || (F[52] = P("div", { class: "jit-ribbon__section-label" }, "阅读摘要", -1))
42203
+ F[52] || (F[52] = f("div", { class: "jit-ribbon__section-label" }, "阅读摘要", -1))
42204
42204
  ])
42205
42205
  ])) : (v(), E("div", tv, [
42206
- P("section", nv, [
42207
- P("div", ov, [
42208
- P("div", rv, [
42209
- F[53] || (F[53] = P("svg", {
42206
+ f("section", nv, [
42207
+ f("div", ov, [
42208
+ f("div", rv, [
42209
+ F[53] || (F[53] = f("svg", {
42210
42210
  viewBox: "0 0 24 24",
42211
42211
  "aria-hidden": "true"
42212
42212
  }, [
42213
- P("path", { d: "M14.5 14.5L20 20" }),
42214
- P("circle", {
42213
+ f("path", { d: "M14.5 14.5L20 20" }),
42214
+ f("circle", {
42215
42215
  cx: "10",
42216
42216
  cy: "10",
42217
42217
  r: "6"
42218
42218
  })
42219
42219
  ], -1)),
42220
- Dn(P("input", {
42220
+ Dn(f("input", {
42221
42221
  "onUpdate:modelValue": F[5] || (F[5] = (w) => c.value = w),
42222
42222
  placeholder: "搜索全文",
42223
42223
  onKeydown: qd(sr(Ea, ["prevent"]), ["enter"])
@@ -42225,26 +42225,26 @@ const Bb = { class: "jit-pdf-editor" }, zb = { class: "jit-ribbon" }, Wb = { cla
42225
42225
  [kn, c.value]
42226
42226
  ])
42227
42227
  ]),
42228
- P("button", {
42228
+ f("button", {
42229
42229
  class: "jit-icon-button",
42230
42230
  "aria-label": "执行搜索",
42231
42231
  disabled: !M(r).search,
42232
42232
  onClick: Ea
42233
42233
  }, [...F[54] || (F[54] = [
42234
- P("svg", {
42234
+ f("svg", {
42235
42235
  viewBox: "0 0 24 24",
42236
42236
  "aria-hidden": "true"
42237
42237
  }, [
42238
- P("path", { d: "M14.5 14.5L20 20" }),
42239
- P("circle", {
42238
+ f("path", { d: "M14.5 14.5L20 20" }),
42239
+ f("circle", {
42240
42240
  cx: "10",
42241
42241
  cy: "10",
42242
42242
  r: "6"
42243
42243
  })
42244
42244
  ], -1),
42245
- P("span", null, "查找", -1)
42245
+ f("span", null, "查找", -1)
42246
42246
  ])], 8, iv),
42247
- P("button", {
42247
+ f("button", {
42248
42248
  class: "jit-icon-button",
42249
42249
  "aria-label": "上一个结果",
42250
42250
  disabled: !M(r).search || !re.value,
@@ -42253,15 +42253,15 @@ const Bb = { class: "jit-pdf-editor" }, zb = { class: "jit-ribbon" }, Wb = { cla
42253
42253
  return (le = M(H)) == null ? void 0 : le.previousResult();
42254
42254
  })
42255
42255
  }, [...F[55] || (F[55] = [
42256
- P("svg", {
42256
+ f("svg", {
42257
42257
  viewBox: "0 0 24 24",
42258
42258
  "aria-hidden": "true"
42259
42259
  }, [
42260
- P("path", { d: "M15 6l-6 6 6 6" })
42260
+ f("path", { d: "M15 6l-6 6 6 6" })
42261
42261
  ], -1),
42262
- P("span", null, "上一个", -1)
42262
+ f("span", null, "上一个", -1)
42263
42263
  ])], 8, sv),
42264
- P("button", {
42264
+ f("button", {
42265
42265
  class: "jit-icon-button",
42266
42266
  "aria-label": "下一个结果",
42267
42267
  disabled: !M(r).search || !re.value,
@@ -42270,36 +42270,36 @@ const Bb = { class: "jit-pdf-editor" }, zb = { class: "jit-ribbon" }, Wb = { cla
42270
42270
  return (le = M(H)) == null ? void 0 : le.nextResult();
42271
42271
  })
42272
42272
  }, [...F[56] || (F[56] = [
42273
- P("svg", {
42273
+ f("svg", {
42274
42274
  viewBox: "0 0 24 24",
42275
42275
  "aria-hidden": "true"
42276
42276
  }, [
42277
- P("path", { d: "M9 6l6 6-6 6" })
42277
+ f("path", { d: "M9 6l6 6-6 6" })
42278
42278
  ], -1),
42279
- P("span", null, "下一个", -1)
42279
+ f("span", null, "下一个", -1)
42280
42280
  ])], 8, lv)
42281
42281
  ]),
42282
- F[57] || (F[57] = P("div", { class: "jit-ribbon__section-label" }, "全文检索", -1))
42282
+ F[57] || (F[57] = f("div", { class: "jit-ribbon__section-label" }, "全文检索", -1))
42283
42283
  ]),
42284
- P("section", cv, [
42285
- P("div", dv, [
42286
- P("button", {
42284
+ f("section", cv, [
42285
+ f("div", dv, [
42286
+ f("button", {
42287
42287
  class: "jit-icon-button jit-icon-button--primary",
42288
42288
  "aria-label": "另存副本",
42289
42289
  disabled: !M(a),
42290
42290
  onClick: F[8] || (F[8] = (w) => ir())
42291
42291
  }, [...F[58] || (F[58] = [
42292
- P("svg", {
42292
+ f("svg", {
42293
42293
  viewBox: "0 0 24 24",
42294
42294
  "aria-hidden": "true"
42295
42295
  }, [
42296
- P("path", { d: "M6 4h9l3 3v13H6z" }),
42297
- P("path", { d: "M9 4v5h6" }),
42298
- P("path", { d: "M9 16h6" })
42296
+ f("path", { d: "M6 4h9l3 3v13H6z" }),
42297
+ f("path", { d: "M9 4v5h6" }),
42298
+ f("path", { d: "M9 16h6" })
42299
42299
  ], -1),
42300
- P("span", null, "另存副本", -1)
42300
+ f("span", null, "另存副本", -1)
42301
42301
  ])], 8, uv),
42302
- P("button", {
42302
+ f("button", {
42303
42303
  class: "jit-icon-button is-danger",
42304
42304
  "aria-label": "提交脱敏并导出",
42305
42305
  disabled: !M(r).redaction || !M(se).pendingCount,
@@ -42308,44 +42308,44 @@ const Bb = { class: "jit-pdf-editor" }, zb = { class: "jit-ribbon" }, Wb = { cla
42308
42308
  ln('<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M5 7h14"></path><path d="M8 7V5h8v2"></path><path d="M8 10v7"></path><path d="M12 10v7"></path><path d="M16 10v7"></path><path d="M6 7l1 12h10l1-12"></path></svg><span>提交脱敏</span>', 2)
42309
42309
  ])], 8, pv)
42310
42310
  ]),
42311
- F[60] || (F[60] = P("div", { class: "jit-ribbon__section-label" }, "审阅输出", -1))
42311
+ F[60] || (F[60] = f("div", { class: "jit-ribbon__section-label" }, "审阅输出", -1))
42312
42312
  ]),
42313
- P("section", gv, [
42314
- P("div", hv, [
42315
- P("div", mv, [
42316
- F[61] || (F[61] = P("em", null, "搜索", -1)),
42317
- P("strong", null, oe(re.value) + " 处", 1)
42313
+ f("section", gv, [
42314
+ f("div", hv, [
42315
+ f("div", mv, [
42316
+ F[61] || (F[61] = f("em", null, "搜索", -1)),
42317
+ f("strong", null, oe(re.value) + " 处", 1)
42318
42318
  ]),
42319
- P("div", fv, [
42320
- F[62] || (F[62] = P("em", null, "修改", -1)),
42321
- P("strong", null, oe(T.value ? "待保存" : "已同步"), 1)
42319
+ f("div", fv, [
42320
+ F[62] || (F[62] = f("em", null, "修改", -1)),
42321
+ f("strong", null, oe(T.value ? "待保存" : "已同步"), 1)
42322
42322
  ])
42323
42323
  ]),
42324
- F[63] || (F[63] = P("div", { class: "jit-ribbon__section-label" }, "当前状态", -1))
42324
+ F[63] || (F[63] = f("div", { class: "jit-ribbon__section-label" }, "当前状态", -1))
42325
42325
  ])
42326
42326
  ]))
42327
42327
  ])
42328
42328
  ]),
42329
- P("div", {
42329
+ f("div", {
42330
42330
  class: Dt(["jit-layout", { "is-left-collapsed": g.value }])
42331
42331
  }, [
42332
- P("aside", {
42332
+ f("aside", {
42333
42333
  class: Dt(["jit-sidebar jit-sidebar--left", { "is-open": M(i), "is-collapsed": g.value }])
42334
42334
  }, [
42335
- P("div", Pv, [
42335
+ f("div", Pv, [
42336
42336
  g.value ? V("", !0) : (v(), E("div", Fv, [
42337
- F[64] || (F[64] = P("strong", null, "缩略图", -1)),
42338
- P("span", null, "第 " + oe(L.value) + " / " + oe(X.value || "-") + " 页", 1)
42337
+ F[64] || (F[64] = f("strong", null, "缩略图", -1)),
42338
+ f("span", null, "第 " + oe(L.value) + " / " + oe(X.value || "-") + " 页", 1)
42339
42339
  ])),
42340
- P("button", {
42340
+ f("button", {
42341
42341
  class: "jit-sidebar__collapse",
42342
42342
  "aria-label": g.value ? "展开缩略图" : "收起缩略图",
42343
42343
  onClick: me
42344
42344
  }, [
42345
42345
  g.value ? (v(), E("svg", yv, [...F[65] || (F[65] = [
42346
- P("path", { d: "M9 6l6 6-6 6" }, null, -1)
42346
+ f("path", { d: "M9 6l6 6-6 6" }, null, -1)
42347
42347
  ])])) : (v(), E("svg", vv, [...F[66] || (F[66] = [
42348
- P("path", { d: "M15 6l-6 6 6 6" }, null, -1)
42348
+ f("path", { d: "M15 6l-6 6 6 6" }, null, -1)
42349
42349
  ])]))
42350
42350
  ], 8, bv)
42351
42351
  ]),
@@ -42355,20 +42355,20 @@ const Bb = { class: "jit-pdf-editor" }, zb = { class: "jit-ribbon" }, Wb = { cla
42355
42355
  "document-id": n.activeDocumentId
42356
42356
  }, {
42357
42357
  default: De(({ meta: w }) => [
42358
- P("button", {
42358
+ f("button", {
42359
42359
  class: Dt(["jit-thumbnail", { "is-active": L.value === w.pageIndex + 1 }]),
42360
42360
  style: U({ top: `${w.top}px`, height: `${w.wrapperHeight}px` }),
42361
42361
  onClick: (le) => We(w.pageIndex)
42362
42362
  }, [
42363
- P("div", Dv, [
42363
+ f("div", Dv, [
42364
42364
  je(M(Eb), {
42365
42365
  "document-id": n.activeDocumentId,
42366
42366
  meta: w,
42367
42367
  class: "jit-thumbnail__image"
42368
42368
  }, null, 8, ["document-id", "meta"])
42369
42369
  ]),
42370
- P("div", Ev, [
42371
- P("span", Sv, "第 " + oe(w.pageIndex + 1) + " 页", 1),
42370
+ f("div", Ev, [
42371
+ f("span", Sv, "第 " + oe(w.pageIndex + 1) + " 页", 1),
42372
42372
  L.value === w.pageIndex + 1 ? (v(), E("span", Av, "当前")) : V("", !0)
42373
42373
  ])
42374
42374
  ], 14, _v)
@@ -42376,64 +42376,64 @@ const Bb = { class: "jit-pdf-editor" }, zb = { class: "jit-ribbon" }, Wb = { cla
42376
42376
  _: 1
42377
42377
  }, 8, ["document-id"])) : g.value ? V("", !0) : (v(), E("p", xv, "缩略图已关闭"))
42378
42378
  ], 2),
42379
- P("main", Cv, [
42380
- P("div", Mv, [
42381
- P("button", {
42379
+ f("main", Cv, [
42380
+ f("div", Mv, [
42381
+ f("button", {
42382
42382
  class: "jit-annotation-drawer-toggle",
42383
42383
  "aria-label": ot.value ? "隐藏批注管理抽屉" : "显示批注管理抽屉",
42384
42384
  onClick: rr
42385
42385
  }, [...F[67] || (F[67] = [
42386
- P("svg", {
42386
+ f("svg", {
42387
42387
  viewBox: "0 0 24 24",
42388
42388
  "aria-hidden": "true"
42389
42389
  }, [
42390
- P("path", { d: "M5 6h14" }),
42391
- P("path", { d: "M5 12h14" }),
42392
- P("path", { d: "M5 18h10" })
42390
+ f("path", { d: "M5 6h14" }),
42391
+ f("path", { d: "M5 12h14" }),
42392
+ f("path", { d: "M5 18h10" })
42393
42393
  ], -1)
42394
42394
  ])], 8, Tv),
42395
- P("button", {
42395
+ f("button", {
42396
42396
  class: "jit-inspector-toggle",
42397
42397
  "aria-label": M(s) ? "隐藏属性面板" : "显示属性面板",
42398
42398
  onClick: pt
42399
42399
  }, [...F[68] || (F[68] = [
42400
- P("svg", {
42400
+ f("svg", {
42401
42401
  viewBox: "0 0 24 24",
42402
42402
  "aria-hidden": "true"
42403
42403
  }, [
42404
- P("path", { d: "M5 5h14v14H5z" }),
42405
- P("path", { d: "M12 5v14" })
42404
+ f("path", { d: "M5 5h14v14H5z" }),
42405
+ f("path", { d: "M12 5v14" })
42406
42406
  ], -1)
42407
42407
  ])], 8, Rv),
42408
- P("aside", {
42408
+ f("aside", {
42409
42409
  class: Dt(["jit-inspector", { "is-open": M(s) }])
42410
42410
  }, [
42411
- P("div", wv, [
42412
- P("div", null, [
42413
- P("strong", null, oe(Bd.value), 1),
42414
- P("span", null, oe(u.value) + " · " + oe(Math.round($.value * 100)) + "%", 1)
42411
+ f("div", wv, [
42412
+ f("div", null, [
42413
+ f("strong", null, oe(Bd.value), 1),
42414
+ f("span", null, oe(u.value) + " · " + oe(Math.round($.value * 100)) + "%", 1)
42415
42415
  ]),
42416
- P("button", {
42416
+ f("button", {
42417
42417
  class: "jit-inspector__close",
42418
42418
  "aria-label": "收起属性面板",
42419
42419
  onClick: pt
42420
42420
  }, [...F[69] || (F[69] = [
42421
- P("svg", {
42421
+ f("svg", {
42422
42422
  viewBox: "0 0 24 24",
42423
42423
  "aria-hidden": "true"
42424
42424
  }, [
42425
- P("path", { d: "M6 6l12 12" }),
42426
- P("path", { d: "M18 6L6 18" })
42425
+ f("path", { d: "M6 6l12 12" }),
42426
+ f("path", { d: "M18 6L6 18" })
42427
42427
  ], -1)
42428
42428
  ])])
42429
42429
  ]),
42430
- P("div", Ov, [
42430
+ f("div", Ov, [
42431
42431
  Ee.value ? (v(), E("section", kv, [
42432
- P("div", Iv, [
42433
- P("div", null, [
42434
- P("div", Gv, [
42435
- F[71] || (F[71] = P("strong", null, "便签内容", -1)),
42436
- P("button", {
42432
+ f("div", Iv, [
42433
+ f("div", null, [
42434
+ f("div", Gv, [
42435
+ F[71] || (F[71] = f("strong", null, "便签内容", -1)),
42436
+ f("button", {
42437
42437
  class: "jit-note-editor__delete",
42438
42438
  disabled: !ut.value,
42439
42439
  "aria-label": "删除便签",
@@ -42442,12 +42442,12 @@ const Bb = { class: "jit-pdf-editor" }, zb = { class: "jit-ribbon" }, Wb = { cla
42442
42442
  ln('<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M5 7h14"></path><path d="M8 7V5h8v2"></path><path d="M8 10v7"></path><path d="M12 10v7"></path><path d="M16 10v7"></path><path d="M6 7l1 12h10l1-12"></path></svg>', 1)
42443
42443
  ])], 8, Lv)
42444
42444
  ]),
42445
- P("span", null, "第 " + oe((K = Te.value) == null ? void 0 : K.pageLabel) + " 页 · " + oe(It.value), 1)
42445
+ f("span", null, "第 " + oe((K = Te.value) == null ? void 0 : K.pageLabel) + " 页 · " + oe(It.value), 1)
42446
42446
  ])
42447
42447
  ]),
42448
- P("label", $v, [
42449
- F[72] || (F[72] = P("span", null, "说明内容", -1)),
42450
- Dn(P("textarea", {
42448
+ f("label", $v, [
42449
+ F[72] || (F[72] = f("span", null, "说明内容", -1)),
42450
+ Dn(f("textarea", {
42451
42451
  "onUpdate:modelValue": F[9] || (F[9] = (w) => bt.value = w),
42452
42452
  placeholder: "为这条便签补充说明、结论或处理意见",
42453
42453
  onInput: wn,
@@ -42456,107 +42456,107 @@ const Bb = { class: "jit-pdf-editor" }, zb = { class: "jit-ribbon" }, Wb = { cla
42456
42456
  [kn, bt.value]
42457
42457
  ])
42458
42458
  ]),
42459
- P("div", Nv, [
42460
- F[73] || (F[73] = P("span", null, "便签会在停止输入后自动保存", -1)),
42461
- P("strong", null, oe(kt.value) + " 字", 1)
42459
+ f("div", Nv, [
42460
+ F[73] || (F[73] = f("span", null, "便签会在停止输入后自动保存", -1)),
42461
+ f("strong", null, oe(kt.value) + " 字", 1)
42462
42462
  ])
42463
42463
  ])) : V("", !0),
42464
- P("dl", jv, [
42465
- P("div", null, [
42466
- F[74] || (F[74] = P("dt", null, "当前工具", -1)),
42467
- P("dd", null, oe(u.value), 1)
42464
+ f("dl", jv, [
42465
+ f("div", null, [
42466
+ F[74] || (F[74] = f("dt", null, "当前工具", -1)),
42467
+ f("dd", null, oe(u.value), 1)
42468
42468
  ]),
42469
- P("div", null, [
42470
- F[75] || (F[75] = P("dt", null, "批注权限", -1)),
42471
- P("dd", null, oe(dt.value), 1)
42469
+ f("div", null, [
42470
+ F[75] || (F[75] = f("dt", null, "批注权限", -1)),
42471
+ f("dd", null, oe(dt.value), 1)
42472
42472
  ]),
42473
- P("div", null, [
42474
- F[76] || (F[76] = P("dt", null, "缩放", -1)),
42475
- P("dd", null, oe(Math.round($.value * 100)) + "%", 1)
42473
+ f("div", null, [
42474
+ F[76] || (F[76] = f("dt", null, "缩放", -1)),
42475
+ f("dd", null, oe(Math.round($.value * 100)) + "%", 1)
42476
42476
  ]),
42477
- P("div", null, [
42478
- F[77] || (F[77] = P("dt", null, "搜索结果", -1)),
42479
- P("dd", null, oe(re.value) + " 处", 1)
42477
+ f("div", null, [
42478
+ F[77] || (F[77] = f("dt", null, "搜索结果", -1)),
42479
+ f("dd", null, oe(re.value) + " 处", 1)
42480
42480
  ]),
42481
- P("div", null, [
42482
- F[78] || (F[78] = P("dt", null, "待提交脱敏", -1)),
42483
- P("dd", null, oe(M(se).pendingCount) + " 处", 1)
42481
+ f("div", null, [
42482
+ F[78] || (F[78] = f("dt", null, "待提交脱敏", -1)),
42483
+ f("dd", null, oe(M(se).pendingCount) + " 处", 1)
42484
42484
  ]),
42485
- P("div", null, [
42486
- F[79] || (F[79] = P("dt", null, "待保存修改", -1)),
42487
- P("dd", null, oe(T.value ? "是" : "否"), 1)
42485
+ f("div", null, [
42486
+ F[79] || (F[79] = f("dt", null, "待保存修改", -1)),
42487
+ f("dd", null, oe(T.value ? "是" : "否"), 1)
42488
42488
  ]),
42489
- F[80] || (F[80] = P("div", null, [
42490
- P("dt", null, "保存策略"),
42491
- P("dd", null, "仅另存新副本")
42489
+ F[80] || (F[80] = f("div", null, [
42490
+ f("dt", null, "保存策略"),
42491
+ f("dd", null, "仅另存新副本")
42492
42492
  ], -1))
42493
42493
  ]),
42494
- P("div", Uv, [
42495
- F[81] || (F[81] = P("p", null, "属性面板已改成悬浮检查器,需要时展开,不占主阅读空间。", -1)),
42494
+ f("div", Uv, [
42495
+ F[81] || (F[81] = f("p", null, "属性面板已改成悬浮检查器,需要时展开,不占主阅读空间。", -1)),
42496
42496
  Ee.value ? (v(), E("p", Bv, "当前便签已接入内容编辑器,支持随写随存,适合记录审核意见和处理说明。")) : (v(), E("p", zv, "高亮类工具需要先框选文本;涂鸦和文本框工具可以直接在画布中绘制或点击创建。")),
42497
42497
  d.value ? (v(), E("p", Wv, oe(d.value), 1)) : V("", !0)
42498
42498
  ])
42499
42499
  ])
42500
42500
  ], 2)
42501
42501
  ]),
42502
- P("aside", {
42502
+ f("aside", {
42503
42503
  class: Dt(["jit-annotation-drawer", { "is-open": ot.value }])
42504
42504
  }, [
42505
- P("div", Hv, [
42506
- P("div", null, [
42507
- F[82] || (F[82] = P("strong", null, "批注管理", -1)),
42508
- P("span", null, oe(it.value) + " 个批注," + oe(Po.value) + " 个待批量操作", 1)
42505
+ f("div", Hv, [
42506
+ f("div", null, [
42507
+ F[82] || (F[82] = f("strong", null, "批注管理", -1)),
42508
+ f("span", null, oe(it.value) + " 个批注," + oe(Po.value) + " 个待批量操作", 1)
42509
42509
  ]),
42510
- P("div", Vv, [
42511
- P("button", {
42510
+ f("div", Vv, [
42511
+ f("button", {
42512
42512
  class: "jit-annotation-panel__action jit-annotation-panel__action--secondary",
42513
42513
  disabled: !qn.value.length,
42514
42514
  onClick: wd
42515
42515
  }, oe(_a.value ? "清空当前结果" : "全选当前结果"), 9, Yv),
42516
- P("button", {
42516
+ f("button", {
42517
42517
  class: "jit-annotation-panel__action",
42518
42518
  disabled: !Po.value,
42519
42519
  onClick: Od
42520
42520
  }, " 批量删除 " + oe(Po.value || ""), 9, qv),
42521
- P("button", {
42521
+ f("button", {
42522
42522
  class: "jit-annotation-panel__close",
42523
42523
  "aria-label": "关闭批注管理抽屉",
42524
42524
  onClick: rr
42525
42525
  }, [...F[83] || (F[83] = [
42526
- P("svg", {
42526
+ f("svg", {
42527
42527
  viewBox: "0 0 24 24",
42528
42528
  "aria-hidden": "true"
42529
42529
  }, [
42530
- P("path", { d: "M6 6l12 12" }),
42531
- P("path", { d: "M18 6L6 18" })
42530
+ f("path", { d: "M6 6l12 12" }),
42531
+ f("path", { d: "M18 6L6 18" })
42532
42532
  ], -1)
42533
42533
  ])])
42534
42534
  ])
42535
42535
  ]),
42536
- P("div", Xv, [
42537
- P("div", Kv, [
42538
- P("label", Zv, [
42539
- F[84] || (F[84] = P("svg", {
42536
+ f("div", Xv, [
42537
+ f("div", Kv, [
42538
+ f("label", Zv, [
42539
+ F[84] || (F[84] = f("svg", {
42540
42540
  viewBox: "0 0 24 24",
42541
42541
  "aria-hidden": "true"
42542
42542
  }, [
42543
- P("path", { d: "M14.5 14.5L20 20" }),
42544
- P("circle", {
42543
+ f("path", { d: "M14.5 14.5L20 20" }),
42544
+ f("circle", {
42545
42545
  cx: "10",
42546
42546
  cy: "10",
42547
42547
  r: "6"
42548
42548
  })
42549
42549
  ], -1)),
42550
- Dn(P("input", {
42550
+ Dn(f("input", {
42551
42551
  "onUpdate:modelValue": F[10] || (F[10] = (w) => nt.value = w),
42552
42552
  placeholder: "搜索批注内容、页码或类型"
42553
42553
  }, null, 512), [
42554
42554
  [kn, nt.value]
42555
42555
  ])
42556
42556
  ]),
42557
- P("label", Qv, [
42558
- F[85] || (F[85] = P("span", null, "类型", -1)),
42559
- Dn(P("select", {
42557
+ f("label", Qv, [
42558
+ F[85] || (F[85] = f("span", null, "类型", -1)),
42559
+ Dn(f("select", {
42560
42560
  "onUpdate:modelValue": F[11] || (F[11] = (w) => Ne.value = w)
42561
42561
  }, [
42562
42562
  (v(!0), E(de, null, xe(ba.value, (w) => (v(), E("option", {
@@ -42573,38 +42573,38 @@ const Bb = { class: "jit-pdf-editor" }, zb = { class: "jit-ribbon" }, Wb = { cla
42573
42573
  key: w.page,
42574
42574
  class: "jit-annotation-group"
42575
42575
  }, [
42576
- P("header", t_, [
42577
- P("strong", null, "第 " + oe(w.page + 1) + " 页", 1),
42578
- P("span", null, oe(w.items.length) + " 条批注", 1)
42576
+ f("header", t_, [
42577
+ f("strong", null, "第 " + oe(w.page + 1) + " 页", 1),
42578
+ f("span", null, oe(w.items.length) + " 条批注", 1)
42579
42579
  ]),
42580
42580
  (v(!0), E(de, null, xe(w.items, (le) => (v(), E("article", {
42581
42581
  key: le.id,
42582
42582
  class: Dt(["jit-annotation-item", { "is-selected": le.isCanvasSelected, "is-batch-selected": ve.value.includes(le.id) }])
42583
42583
  }, [
42584
- P("button", {
42584
+ f("button", {
42585
42585
  class: "jit-annotation-item__selector",
42586
42586
  "aria-label": ve.value.includes(le.id) ? "取消批量选择" : "加入批量选择",
42587
42587
  onClick: sr((we) => Rd(le.id), ["stop"])
42588
42588
  }, [
42589
42589
  ve.value.includes(le.id) ? (v(), E("span", o_)) : V("", !0)
42590
42590
  ], 8, n_),
42591
- P("button", {
42591
+ f("button", {
42592
42592
  class: "jit-annotation-item__main",
42593
42593
  onClick: (we) => Yn(le.entry)
42594
42594
  }, [
42595
- P("div", a_, [
42596
- P("strong", null, oe(le.kindLabel), 1),
42597
- P("span", null, "第 " + oe(le.page + 1) + " 页", 1)
42595
+ f("div", a_, [
42596
+ f("strong", null, oe(le.kindLabel), 1),
42597
+ f("span", null, "第 " + oe(le.page + 1) + " 页", 1)
42598
42598
  ]),
42599
- P("p", null, oe(le.summary), 1),
42600
- P("div", i_, [
42599
+ f("p", null, oe(le.summary), 1),
42600
+ f("div", i_, [
42601
42601
  le.groupCount > 1 ? (v(), E("span", s_, " 组合 " + oe(le.groupCount), 1)) : V("", !0),
42602
42602
  le.repliesCount ? (v(), E("span", l_, " 回复 " + oe(le.repliesCount), 1)) : V("", !0),
42603
42603
  le.isCanvasSelected ? (v(), E("span", c_, " 画布已选中 ")) : V("", !0),
42604
42604
  ve.value.includes(le.id) ? (v(), E("span", d_, " 待批量处理 ")) : V("", !0)
42605
42605
  ])
42606
42606
  ], 8, r_),
42607
- P("button", {
42607
+ f("button", {
42608
42608
  class: "jit-annotation-item__delete",
42609
42609
  "aria-label": `删除第 ${le.page + 1} 页的${le.kindLabel}`,
42610
42610
  onClick: sr((we) => Td(le.entry), ["stop"])
@@ -42614,10 +42614,21 @@ const Bb = { class: "jit-pdf-editor" }, zb = { class: "jit-ribbon" }, Wb = { cla
42614
42614
  ], 2))), 128))
42615
42615
  ]))), 128))
42616
42616
  ])) : (v(), E("div", p_, [...F[87] || (F[87] = [
42617
- P("p", null, "当前筛选条件下没有批注。你可以修改类型筛选,或直接搜索批注内容与页码。", -1)
42617
+ f("p", null, "当前筛选条件下没有批注。你可以修改类型筛选,或直接搜索批注内容与页码。", -1)
42618
42618
  ])]))
42619
42619
  ])
42620
42620
  ], 2),
42621
+ f("a", {
42622
+ class: "jit-copyright-badge",
42623
+ href: f_,
42624
+ target: "_blank",
42625
+ rel: "noopener noreferrer",
42626
+ "aria-label": "查看 Jit PDF 版权信息",
42627
+ title: "Jit PDF 版权所有,点击查看"
42628
+ }, [...F[88] || (F[88] = [
42629
+ f("span", { class: "jit-copyright-badge__mark" }, "©", -1),
42630
+ f("span", { class: "jit-copyright-badge__text" }, "Jit PDF", -1)
42631
+ ])]),
42621
42632
  je(M(dP), { "document-id": n.activeDocumentId }, {
42622
42633
  default: De(({ isLoading: w, isError: le, isLoaded: we }) => [
42623
42634
  w || n.isInitializing ? (v(), E("div", g_, "正在分段加载文档")) : le ? (v(), E("div", h_, " 文档加载失败,请检查本地文件服务和 PDF 路径 ")) : we && n.activeDocumentId ? (v(), ee(M(Ob), {
@@ -42732,7 +42743,7 @@ const Bb = { class: "jit-pdf-editor" }, zb = { class: "jit-ribbon" }, Wb = { cla
42732
42743
  ]);
42733
42744
  };
42734
42745
  }
42735
- }), U_ = /* @__PURE__ */ q({
42746
+ }), B_ = /* @__PURE__ */ q({
42736
42747
  __name: "JitPdfEditor",
42737
42748
  props: {
42738
42749
  source: {},
@@ -42747,7 +42758,7 @@ const Bb = { class: "jit-pdf-editor" }, zb = { class: "jit-ribbon" }, Wb = { cla
42747
42758
  const t = n, o = e, r = ub(fb, {
42748
42759
  encoderPoolSize: 2,
42749
42760
  fontFallback: mb
42750
- }), a = f(() => ({
42761
+ }), a = P(() => ({
42751
42762
  permissions: {
42752
42763
  enforceDocumentPermissions: !1,
42753
42764
  overrides: {
@@ -42757,7 +42768,7 @@ const Bb = { class: "jit-pdf-editor" }, zb = { class: "jit-ribbon" }, Wb = { cla
42757
42768
  print: !0
42758
42769
  }
42759
42770
  }
42760
- })), i = f(
42771
+ })), i = P(
42761
42772
  () => [
42762
42773
  {
42763
42774
  package: gP
@@ -42836,7 +42847,7 @@ const Bb = { class: "jit-pdf-editor" }, zb = { class: "jit-ribbon" }, Wb = { cla
42836
42847
  "auto-mount-dom-elements": !0
42837
42848
  }, {
42838
42849
  default: De(({ activeDocumentId: c, pluginsReady: d, isInitializing: u }) => [
42839
- je(f_, ue(t, {
42850
+ je(P_, ue(t, {
42840
42851
  "active-document-id": c,
42841
42852
  "plugins-ready": d,
42842
42853
  "is-initializing": u,
@@ -42855,7 +42866,7 @@ const Bb = { class: "jit-pdf-editor" }, zb = { class: "jit-ribbon" }, Wb = { cla
42855
42866
  function Ii(n) {
42856
42867
  return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? `${n}-${crypto.randomUUID()}` : `${n}-${Date.now()}-${Math.random().toString(16).slice(2)}`;
42857
42868
  }
42858
- function P_(n = /* @__PURE__ */ new Date()) {
42869
+ function F_(n = /* @__PURE__ */ new Date()) {
42859
42870
  const e = (t) => t.toString().padStart(2, "0");
42860
42871
  return [
42861
42872
  n.getFullYear(),
@@ -42863,21 +42874,21 @@ function P_(n = /* @__PURE__ */ new Date()) {
42863
42874
  e(n.getDate())
42864
42875
  ].join("") + `-${e(n.getHours())}${e(n.getMinutes())}${e(n.getSeconds())}`;
42865
42876
  }
42866
- function F_(n) {
42877
+ function b_(n) {
42867
42878
  const e = n.lastIndexOf(".");
42868
42879
  return e >= 0 ? n.slice(0, e) : n;
42869
42880
  }
42870
- function b_(n) {
42881
+ function y_(n) {
42871
42882
  const e = n.lastIndexOf(".");
42872
42883
  return e >= 0 ? n.slice(e) : ".pdf";
42873
42884
  }
42874
- function y_(n) {
42875
- return `${F_(n)}-副本-${P_()}${b_(n)}`;
42885
+ function v_(n) {
42886
+ return `${b_(n)}-副本-${F_()}${y_(n)}`;
42876
42887
  }
42877
42888
  function Gi(n) {
42878
42889
  return xd(n);
42879
42890
  }
42880
- function v_(n) {
42891
+ function __(n) {
42881
42892
  return new Promise((e, t) => {
42882
42893
  const o = indexedDB.open(n, 1);
42883
42894
  o.onupgradeneeded = () => {
@@ -42896,7 +42907,7 @@ function $r(n) {
42896
42907
  });
42897
42908
  }
42898
42909
  async function An(n, e, t, o) {
42899
- const r = await v_(n);
42910
+ const r = await __(n);
42900
42911
  try {
42901
42912
  const a = r.transaction(e, t), i = a.objectStore(e), s = await o(i);
42902
42913
  return await new Promise((l, c) => {
@@ -42906,7 +42917,7 @@ async function An(n, e, t, o) {
42906
42917
  r.close();
42907
42918
  }
42908
42919
  }
42909
- function __(n) {
42920
+ function D_(n) {
42910
42921
  return {
42911
42922
  id: n.id,
42912
42923
  name: n.name,
@@ -42916,7 +42927,7 @@ function __(n) {
42916
42927
  pageCount: null
42917
42928
  };
42918
42929
  }
42919
- function D_(n) {
42930
+ function E_(n) {
42920
42931
  return {
42921
42932
  id: n.id,
42922
42933
  name: n.name,
@@ -42925,7 +42936,7 @@ function D_(n) {
42925
42936
  updatedAt: n.updatedAt
42926
42937
  };
42927
42938
  }
42928
- function E_(n) {
42939
+ function S_(n) {
42929
42940
  return {
42930
42941
  kind: "file",
42931
42942
  id: n.id,
@@ -42962,7 +42973,7 @@ function Md(n) {
42962
42973
  }
42963
42974
  };
42964
42975
  }
42965
- function B_(n = {}) {
42976
+ function z_(n = {}) {
42966
42977
  const e = n.databaseName ?? Cd, t = Md(e), o = /* @__PURE__ */ new Map();
42967
42978
  function r(s) {
42968
42979
  const l = o.get(s.id);
@@ -42995,15 +43006,15 @@ function B_(n = {}) {
42995
43006
  async getFileList() {
42996
43007
  return {
42997
43008
  rootDir: "IndexedDB",
42998
- items: (await a()).map(E_)
43009
+ items: (await a()).map(S_)
42999
43010
  };
43000
43011
  },
43001
43012
  async getFileMeta(s) {
43002
- return __(await i(s));
43013
+ return D_(await i(s));
43003
43014
  },
43004
43015
  async getFileHistory(s) {
43005
43016
  const l = await i(s), c = l.originId || l.id;
43006
- return (await a()).filter((u) => u.id !== l.id && u.originId === c).map(D_);
43017
+ return (await a()).filter((u) => u.id !== l.id && u.originId === c).map(E_);
43007
43018
  },
43008
43019
  getFileStreamUrl(s) {
43009
43020
  return o.get(s) ?? "";
@@ -43052,7 +43063,7 @@ function B_(n = {}) {
43052
43063
  };
43053
43064
  },
43054
43065
  async saveCopy(s) {
43055
- const l = await i(s.fileId), c = new Blob([await s.content.arrayBuffer()], { type: "application/pdf" }), d = Ii("local-copy"), u = y_(s.fileName || l.name), g = (/* @__PURE__ */ new Date()).toISOString(), p = {
43066
+ const l = await i(s.fileId), c = new Blob([await s.content.arrayBuffer()], { type: "application/pdf" }), d = Ii("local-copy"), u = v_(s.fileName || l.name), g = (/* @__PURE__ */ new Date()).toISOString(), p = {
43056
43067
  id: d,
43057
43068
  name: u,
43058
43069
  relativePath: `indexeddb/${d}/${u}`,
@@ -43087,11 +43098,11 @@ function B_(n = {}) {
43087
43098
  }
43088
43099
  };
43089
43100
  }
43090
- function S_(n = {}) {
43101
+ function A_(n = {}) {
43091
43102
  const e = n.databaseName ?? Cd;
43092
43103
  return Md(e);
43093
43104
  }
43094
- function A_(n) {
43105
+ function x_(n) {
43095
43106
  return encodeURIComponent(n);
43096
43107
  }
43097
43108
  async function Ln(n) {
@@ -43106,8 +43117,8 @@ async function Ln(n) {
43106
43117
  }
43107
43118
  return await n.json();
43108
43119
  }
43109
- function z_(n = {}) {
43110
- const e = n.baseUrl ?? "", t = S_({
43120
+ function W_(n = {}) {
43121
+ const e = n.baseUrl ?? "", t = A_({
43111
43122
  databaseName: n.annotationDatabaseName
43112
43123
  });
43113
43124
  return {
@@ -43146,7 +43157,7 @@ function z_(n = {}) {
43146
43157
  method: "POST",
43147
43158
  headers: {
43148
43159
  "Content-Type": "application/pdf",
43149
- "X-File-Name": A_(o.fileName),
43160
+ "X-File-Name": x_(o.fileName),
43150
43161
  "X-Save-Reason": o.reason ?? "manual-save"
43151
43162
  },
43152
43163
  body: r
@@ -43162,8 +43173,8 @@ function z_(n = {}) {
43162
43173
  };
43163
43174
  }
43164
43175
  export {
43165
- U_ as _,
43166
- B_ as a,
43167
- z_ as c,
43176
+ B_ as _,
43177
+ z_ as a,
43178
+ W_ as c,
43168
43179
  Ub as u
43169
43180
  };