pptx-vue-viewer 1.1.39 → 1.1.41

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.
Files changed (48) hide show
  1. package/dist/{dist-Vxk81GQT.js → dist-TmAaMB8H.js} +12 -10
  2. package/dist/dist-TmAaMB8H.js.br +0 -0
  3. package/dist/dist-TmAaMB8H.js.gz +0 -0
  4. package/dist/{dist-BEmeDRsX.cjs → dist-bnIMvyoS.cjs} +12 -10
  5. package/dist/dist-bnIMvyoS.cjs.br +0 -0
  6. package/dist/dist-bnIMvyoS.cjs.gz +0 -0
  7. package/dist/gif-encoder-CeDn2_Nz.js +2 -0
  8. package/dist/gif-encoder-CeDn2_Nz.js.br +3 -0
  9. package/dist/gif-encoder-CeDn2_Nz.js.gz +0 -0
  10. package/dist/gif-encoder-DBQviJ_n.cjs +2 -0
  11. package/dist/gif-encoder-DBQviJ_n.cjs.br +0 -0
  12. package/dist/gif-encoder-DBQviJ_n.cjs.gz +0 -0
  13. package/dist/index.cjs +1 -1
  14. package/dist/index.cjs.br +0 -0
  15. package/dist/index.cjs.gz +0 -0
  16. package/dist/index.js +1 -1
  17. package/dist/index.js.br +0 -0
  18. package/dist/index.js.gz +0 -0
  19. package/dist/viewer/PowerPointViewer.vue.d.ts.map +1 -1
  20. package/dist/viewer/composables/useIsMobile.d.ts +47 -16
  21. package/dist/viewer/composables/useIsMobile.d.ts.map +1 -1
  22. package/dist/viewer/index.cjs +1 -1
  23. package/dist/viewer/index.cjs.br +0 -0
  24. package/dist/viewer/index.cjs.gz +0 -0
  25. package/dist/viewer/index.js +1 -1
  26. package/dist/viewer/index.js.br +0 -0
  27. package/dist/viewer/index.js.gz +0 -0
  28. package/dist/{viewer-R_Ip8luV.js → viewer-PzGNcFSq.js} +299 -270
  29. package/dist/viewer-PzGNcFSq.js.br +0 -0
  30. package/dist/viewer-PzGNcFSq.js.gz +0 -0
  31. package/dist/{viewer-Dd68DWt2.cjs → viewer-cxxYzJNo.cjs} +299 -270
  32. package/dist/viewer-cxxYzJNo.cjs.br +0 -0
  33. package/dist/viewer-cxxYzJNo.cjs.gz +0 -0
  34. package/package.json +1 -1
  35. package/dist/dist-BEmeDRsX.cjs.br +0 -0
  36. package/dist/dist-BEmeDRsX.cjs.gz +0 -0
  37. package/dist/dist-Vxk81GQT.js.br +0 -0
  38. package/dist/dist-Vxk81GQT.js.gz +0 -0
  39. package/dist/gif-encoder-CrGhNA-_.js +0 -2
  40. package/dist/gif-encoder-CrGhNA-_.js.br +0 -3
  41. package/dist/gif-encoder-CrGhNA-_.js.gz +0 -0
  42. package/dist/gif-encoder-Cu23-Czt.cjs +0 -2
  43. package/dist/gif-encoder-Cu23-Czt.cjs.br +0 -0
  44. package/dist/gif-encoder-Cu23-Czt.cjs.gz +0 -0
  45. package/dist/viewer-Dd68DWt2.cjs.br +0 -0
  46. package/dist/viewer-Dd68DWt2.cjs.gz +0 -0
  47. package/dist/viewer-R_Ip8luV.js.br +0 -0
  48. package/dist/viewer-R_Ip8luV.js.gz +0 -0
@@ -1,4 +1,4 @@
1
- import { $ as e, A as t, B as n, C as o, D as a, E as r, F as l, G as i, H as s, I as u, K as d, L as p, M as m, N as v, O as f, P as h, Q as g, R as x, S as y, T as b, U as w, V as k, W as S, X as $, Y as M, Z as C, _ as F, at as P, b as I, d as D, et as E, g as _, h as L, i as z, it as R, k as O, l as U, m as W, n as N, nt as j, o as Y, ot as H, p as X, q as G, r as V, rt as Z, s as q, st as K, t as J, tt as Q, u as ee, v as te, w as ne, x as oe, y as ae } from "./dist-Vxk81GQT.js";
1
+ import { $ as e, A as t, B as n, C as o, D as a, E as r, F as l, G as i, H as s, I as u, K as d, L as p, M as m, N as v, O as f, P as h, Q as g, R as x, S as y, T as b, U as w, V as k, W as S, X as $, Y as M, Z as C, _ as F, at as P, b as I, d as D, et as E, g as _, h as L, i as z, it as R, k as O, l as U, m as W, n as N, nt as j, o as Y, ot as H, p as X, q as G, r as V, rt as Z, s as q, st as K, t as J, tt as Q, u as ee, v as te, w as ne, x as oe, y as ae } from "./dist-TmAaMB8H.js";
2
2
  import { Fragment as le, Teleport as ie, computed as se, createBlock as ue, createCommentVNode as ce, createElementBlock as de, createElementVNode as pe, createTextVNode as me, createVNode as ve, defineComponent as fe, guardReactiveProps as he, inject as ge, mergeModels as xe, mergeProps as ye, nextTick as be, normalizeClass as we, normalizeProps as ke, normalizeStyle as Se, onBeforeUnmount as $e, onMounted as Me, onScopeDispose as Ce, openBlock as Fe, provide as Te, readonly as Pe, ref as Ie, renderList as Ae, renderSlot as De, resolveComponent as Ee, resolveDynamicComponent as Be, shallowRef as _e, toDisplayString as Le, toRef as ze, toValue as Re, unref as Oe, useModel as Ue, vModelCheckbox as We, vModelSelect as Ne, vModelText as je, vShow as Ye, watch as He, withCtx as Xe, withDirectives as Ge, withKeys as Ve, withModifiers as Ze } from "vue";
3
3
  import qe from "dompurify";
4
4
  import { AArrowDown as Ke, AArrowUp as Je, AlignCenter as Qe, AlignJustify as et, AlignLeft as tt, AlignRight as nt, Bold as ot, Captions as at, Cast as rt, Check as lt, ChevronDown as it, ChevronUp as st, Circle as ut, ClipboardList as ct, ClipboardPaste as dt, Clock as pt, Columns2 as mt, Copy as vt, Database as ft, Diamond as ht, Download as gt, Ellipsis as xt, EyeOff as yt, File as bt, FileText as wt, FolderOpen as kt, GitCompare as St, Highlighter as $t, Image as Mt, IndentDecrease as Ct, IndentIncrease as Ft, Info as Tt, Italic as Pt, Layers as It, LayoutGrid as At, List as Dt, ListOrdered as Et, Lock as Bt, Menu as _t, MessageSquare as Lt, Minus as zt, Monitor as Rt, MoveRight as Ot, Package as Ut, PaintBucket as Wt, Paintbrush as Nt, Palette as jt, PanelLeft as Yt, PanelRight as Ht, Pencil as Xt, Pipette as Gt, Play as Vt, Plus as Zt, Presentation as qt, Printer as Kt, Radio as Jt, Redo as Qt, RemoveFormatting as en, Scissors as tn, Search as nn, Settings as on, Shapes as an, Share2 as rn, ShieldAlert as ln, Sparkles as sn, SpellCheck as un, Spline as cn, Square as dn, StickyNote as pn, Strikethrough as mn, TextCursorInput as vn, Trash2 as fn, Triangle as hn, Type as gn, Underline as xn, Undo as yn, Video as bn, Wand as wn } from "lucide-vue-next";
@@ -6504,16 +6504,16 @@ function ns(e, t) {
6504
6504
  }
6505
6505
  function os(e) {
6506
6506
  const { getScale: t, minScale: n, maxScale: o, callbacks: a } = e;
6507
- let r = 0, l = 1, i = !1, s = 0, u = 0, c = null, d = 0, p = 0;
6508
- const m = () => {
6509
- null !== c && (clearTimeout(c), c = null);
6510
- }, v = () => {
6511
- i = !1, r = 0, m();
6507
+ let r = 0, l = 1, i = !1, s = 0, u = 0, c = 0, d = 0, p = null, m = 0, v = 0;
6508
+ const f = () => {
6509
+ null !== p && (clearTimeout(p), p = null);
6510
+ }, h = () => {
6511
+ i = !1, r = 0, f();
6512
6512
  };
6513
6513
  return {
6514
6514
  onTouchStart: (e) => {
6515
- 2 === e.touches.length ? (i = !0, r = ns(e.touches[0], e.touches[1]), l = t(), m(), e.preventDefault()) : 1 === e.touches.length && (s = e.touches[0].clientX, u = e.touches[0].clientY, d = e.touches[0].clientX, p = e.touches[0].clientY, m(), c = setTimeout(() => {
6516
- c = null, a.onLongPress?.(d, p);
6515
+ 2 === e.touches.length ? (i = !0, r = ns(e.touches[0], e.touches[1]), l = t(), f(), e.preventDefault()) : 1 === e.touches.length && (s = e.touches[0].clientX, u = e.touches[0].clientY, c = s, d = u, m = e.touches[0].clientX, v = e.touches[0].clientY, f(), p = setTimeout(() => {
6516
+ p = null, a.onLongPress?.(m, v);
6517
6517
  }, 500));
6518
6518
  },
6519
6519
  onTouchMove: (e) => {
@@ -6527,19 +6527,20 @@ function os(e) {
6527
6527
  a.onPinchZoom?.(e);
6528
6528
  }
6529
6529
  } else if (1 === e.touches.length) {
6530
- const t = e.touches[0].clientX - d, n = e.touches[0].clientY - p;
6531
- (Math.abs(t) > 10 || Math.abs(n) > 10) && m();
6530
+ c = e.touches[0].clientX, d = e.touches[0].clientY;
6531
+ const t = e.touches[0].clientX - m, n = e.touches[0].clientY - v;
6532
+ (Math.abs(t) > 10 || Math.abs(n) > 10) && f();
6532
6533
  }
6533
6534
  },
6534
6535
  onTouchEnd: (e) => {
6535
6536
  if (i) return i = !1, void (r = 0);
6536
- if (m(), 1 === e.changedTouches.length && 0 === e.touches.length) {
6537
- const t = e.changedTouches[0].clientX, n = e.changedTouches[0].clientY, o = t - s, r = n - u;
6537
+ if (f(), 0 === e.touches.length) {
6538
+ const t = e.changedTouches.length >= 1 ? e.changedTouches[0].clientX : c, n = e.changedTouches.length >= 1 ? e.changedTouches[0].clientY : d, o = t - s, r = n - u;
6538
6539
  Math.abs(o) >= 50 && Math.abs(r) < 100 && a.onSwipe?.(o > 0 ? 1 : -1);
6539
6540
  }
6540
6541
  },
6541
- onTouchCancel: v,
6542
- cancel: v
6542
+ onTouchCancel: h,
6543
+ cancel: h
6543
6544
  };
6544
6545
  }
6545
6546
  var as = [
@@ -17012,42 +17013,68 @@ function E$(e) {
17012
17013
  function B$() {
17013
17014
  return "undefined" == typeof window ? "landscape" : "undefined" != typeof screen && screen.orientation ? screen.orientation.type.startsWith("portrait") ? "portrait" : "landscape" : window.innerHeight > window.innerWidth ? "portrait" : "landscape";
17014
17015
  }
17015
- function _$(e = 768) {
17016
- const t = Ie(!1), n = Ie(function() {
17016
+ function _$(e = 768, t) {
17017
+ const n = Ie(!1), o = Ie(!1), a = Ie(!1), r = Ie(function() {
17017
17018
  if ("undefined" == typeof window) return !1;
17018
17019
  if ("ontouchstart" in window) return !0;
17019
17020
  if ("undefined" == typeof navigator) return !1;
17020
17021
  if (navigator.maxTouchPoints > 0) return !0;
17021
17022
  const e = navigator.msMaxTouchPoints;
17022
17023
  return "number" == typeof e && e > 0;
17023
- }()), o = Ie(B$()), a = Ie(!1), r = {
17024
- isMobile: Pe(t),
17025
- isTouchDevice: Pe(n),
17026
- orientation: Pe(o),
17027
- isVirtualKeyboardOpen: Pe(a)
17028
- };
17029
- if (!("undefined" != typeof window && "function" == typeof window.matchMedia)) return r;
17030
- const l = window.matchMedia(`(max-width: ${e}px), (max-height: 499px) and (pointer: coarse) and (max-width: 1023px)`), i = (e) => {
17031
- t.value = e.matches;
17032
- };
17033
- i(l);
17034
- const s = (e) => {
17035
- i(e);
17036
- };
17037
- l.addEventListener("change", s);
17038
- const u = () => {
17039
- o.value = B$();
17024
+ }()), l = Ie(B$()), i = Ie(!1), s = Ie("undefined" != typeof window ? window.innerWidth : 1024), u = {
17025
+ isMobile: Pe(n),
17026
+ isTablet: Pe(o),
17027
+ isDesktop: Pe(a),
17028
+ isTouchDevice: Pe(r),
17029
+ orientation: Pe(l),
17030
+ isVirtualKeyboardOpen: Pe(i),
17031
+ containerWidth: Pe(s)
17032
+ }, c = (e, t) => {
17033
+ s.value = e;
17034
+ const l = function(e, t, n) {
17035
+ return e < 768 || n && t > 0 && t < 500 && e < 1024;
17036
+ }(e, t, r.value);
17037
+ n.value = l, o.value = !l && e >= 768 && e < 1024, a.value = !l && e >= 1024;
17038
+ }, d = () => {
17039
+ const e = () => {
17040
+ l.value = B$();
17041
+ };
17042
+ window.addEventListener("resize", e);
17043
+ const t = "undefined" != typeof screen ? screen.orientation : void 0;
17044
+ t?.addEventListener("change", e);
17045
+ const n = window.innerHeight || 800, o = window.visualViewport ?? void 0, a = () => {
17046
+ if (!r.value) return;
17047
+ i.value = (o?.height ?? window.innerHeight) / n < .7;
17048
+ };
17049
+ o ? o.addEventListener("resize", a) : window.addEventListener("resize", a), Ce(() => {
17050
+ window.removeEventListener("resize", e), t?.removeEventListener("change", e), o ? o.removeEventListener("resize", a) : window.removeEventListener("resize", a);
17051
+ });
17052
+ }, p = "undefined" != typeof window, m = p && "undefined" != typeof ResizeObserver, v = (f = t) ? ("function" == typeof f ? f() : f.value) ?? null : null;
17053
+ var f;
17054
+ if (m && v) {
17055
+ const e = new ResizeObserver((e) => {
17056
+ const t = e[0];
17057
+ t && c(t.contentRect.width, t.contentRect.height);
17058
+ });
17059
+ return e.observe(v), c(v.clientWidth, v.clientHeight), d(), Ce(() => {
17060
+ e.disconnect();
17061
+ }), u;
17062
+ }
17063
+ if (!(p && "function" == typeof window.matchMedia)) return u;
17064
+ const h = () => {
17065
+ c(window.innerWidth, window.innerHeight);
17066
+ }, g = window.matchMedia(`(max-width: ${e}px), (max-height: 499px) and (pointer: coarse) and (max-width: 1023px)`), x = (e) => {
17067
+ n.value = e.matches;
17068
+ const t = window.innerWidth;
17069
+ s.value = t, o.value = !e.matches && t >= 768 && t < 1024, a.value = !e.matches && t >= 1024;
17040
17070
  };
17041
- window.addEventListener("resize", u);
17042
- const c = "undefined" != typeof screen ? screen.orientation : void 0;
17043
- c?.addEventListener("change", u);
17044
- const d = window.innerHeight || 800, p = window.visualViewport ?? void 0, m = () => {
17045
- if (!n.value) return;
17046
- a.value = (p?.height ?? window.innerHeight) / d < .7;
17071
+ x(g);
17072
+ const y = (e) => {
17073
+ x(e);
17047
17074
  };
17048
- return p ? p.addEventListener("resize", m) : window.addEventListener("resize", m), Ce(() => {
17049
- l.removeEventListener("change", s), window.removeEventListener("resize", u), c?.removeEventListener("change", u), p ? p.removeEventListener("resize", m) : window.removeEventListener("resize", m);
17050
- }), r;
17075
+ return g.addEventListener("change", y), window.addEventListener("resize", h), d(), Ce(() => {
17076
+ g.removeEventListener("change", y), window.removeEventListener("resize", h);
17077
+ }), u;
17051
17078
  }
17052
17079
  var L$ = 0;
17053
17080
  function z$(e) {
@@ -21043,7 +21070,7 @@ function jT(e) {
21043
21070
  if (y = null, !S || !t.onWriteBack) return;
21044
21071
  const n = e.getSourceBytes?.();
21045
21072
  if (n) try {
21046
- const { PptxHandler: e } = await import("./dist-Vxk81GQT.js").then((e) => e.j), o = new e();
21073
+ const { PptxHandler: e } = await import("./dist-TmAaMB8H.js").then((e) => e.j), o = new e();
21047
21074
  await o.load(n.buffer);
21048
21075
  const a = ci(S), r = await o.save(a);
21049
21076
  t.onWriteBack(r);
@@ -22394,7 +22421,7 @@ var IP = ["tabindex"], AP = {
22394
22421
  if (!t.moved && (Math.abs(n) > 2 || Math.abs(o) > 2) && (t.moved = !0, $e.pushHistory()), !t.moved) return;
22395
22422
  const a = Sl(t.startBox, n, o, ge.value);
22396
22423
  let r = a.x, l = a.y;
22397
- if (qo.value && !a.rotation) {
22424
+ if (Ko.value && !a.rotation) {
22398
22425
  const e = (H.value?.elements ?? []).map((e) => ({
22399
22426
  id: e.id,
22400
22427
  x: e.x,
@@ -22475,12 +22502,12 @@ var IP = ["tabindex"], AP = {
22475
22502
  y: d,
22476
22503
  lines: p
22477
22504
  };
22478
- }(a.x, a.y, a.width, a.height, e, new Set([t.id]), Jo.value);
22479
- r = n.x, l = n.y, Ko.value = n.lines.map((e) => ({
22505
+ }(a.x, a.y, a.width, a.height, e, new Set([t.id]), Qo.value);
22506
+ r = n.x, l = n.y, Jo.value = n.lines.map((e) => ({
22480
22507
  axis: "v" === e.axis ? "x" : "y",
22481
22508
  position: e.position
22482
22509
  }));
22483
- } else Ko.value.length > 0 && (Ko.value = []);
22510
+ } else Jo.value.length > 0 && (Jo.value = []);
22484
22511
  rt({
22485
22512
  id: t.id,
22486
22513
  x: r,
@@ -22492,12 +22519,12 @@ var IP = ["tabindex"], AP = {
22492
22519
  }
22493
22520
  function at() {
22494
22521
  const e = nt;
22495
- nt = null, Ko.value.length > 0 && (Ko.value = []), window.removeEventListener("pointermove", ot), window.removeEventListener("pointerup", at), window.removeEventListener("pointercancel", at), e && !e.moved && e.wasSelected && Ke(e.id);
22522
+ nt = null, Jo.value.length > 0 && (Jo.value = []), window.removeEventListener("pointermove", ot), window.removeEventListener("pointerup", at), window.removeEventListener("pointercancel", at), e && !e.moved && e.wasSelected && Ke(e.id);
22496
22523
  }
22497
22524
  function rt(e) {
22498
22525
  const t = j.value, n = v.value[t];
22499
22526
  if (!n) return;
22500
- const { x: a, y: r, width: l, height: i } = Go.value && !e.rotation ? (u = 8, {
22527
+ const { x: a, y: r, width: l, height: i } = Vo.value && !e.rotation ? (u = 8, {
22501
22528
  x: Cl((s = e).x, u),
22502
22529
  y: Cl(s.y, u),
22503
22530
  width: Math.max(u, Cl(s.width, u)),
@@ -22952,7 +22979,7 @@ var IP = ["tabindex"], AP = {
22952
22979
  canvasSize: f,
22953
22980
  rasterizeSlide: Kt
22954
22981
  }), Qt = function(e) {
22955
- const { slideCount: t, rasterizeSlide: n } = e, o = e.loadGifEncoder ?? (async () => (await import("./gif-encoder-CrGhNA-_.js")).encodeGif), a = e.createRecorder ?? xP, r = e.createCanvas ?? (() => document.createElement("canvas")), l = e.downloadBlob ?? hP, i = Ie(!1), s = Ie(0);
22982
+ const { slideCount: t, rasterizeSlide: n } = e, o = e.loadGifEncoder ?? (async () => (await import("./gif-encoder-CeDn2_Nz.js")).encodeGif), a = e.createRecorder ?? xP, r = e.createCanvas ?? (() => document.createElement("canvas")), l = e.downloadBlob ?? hP, i = Ie(!1), s = Ie(0);
22956
22983
  return {
22957
22984
  exporting: i,
22958
22985
  progress: s,
@@ -23208,7 +23235,7 @@ var IP = ["tabindex"], AP = {
23208
23235
  enabled: $n,
23209
23236
  intervalMs: l.autosaveIntervalMs ?? 2e3,
23210
23237
  onSave: async () => {
23211
- i("autosave", await W()), Co.capture("Autosave", Date.now());
23238
+ i("autosave", await W()), Fo.capture("Autosave", Date.now());
23212
23239
  }
23213
23240
  }), Cn = Ie(!1), Fn = se(() => H.value?.comments ?? []), Tn = se(() => l.authorName ?? "You"), Pn = function(e) {
23214
23241
  const t = se(() => Re(e.comments) ?? []);
@@ -23310,7 +23337,7 @@ var IP = ["tabindex"], AP = {
23310
23337
  function Yn() {
23311
23338
  Wn.value = null, En.stop(), i("stop-collaboration"), Un.value = !1;
23312
23339
  }
23313
- const { isMobile: Hn, isTouchDevice: Xn } = _$(), { keyboardInset: Gn } = function() {
23340
+ const Hn = Ie(null), { isMobile: Xn, isTouchDevice: Gn } = _$(768, Hn), { keyboardInset: Vn } = function() {
23314
23341
  const e = Ie(0), t = Ie(!1);
23315
23342
  return Me(() => {
23316
23343
  if ("undefined" == typeof window) return;
@@ -23334,13 +23361,13 @@ var IP = ["tabindex"], AP = {
23334
23361
  keyboardInset: Pe(e),
23335
23362
  isKeyboardOpen: Pe(t)
23336
23363
  };
23337
- }(), Vn = Ie(null);
23364
+ }(), Zn = Ie(null);
23338
23365
  O$({
23339
- targetRef: Vn,
23366
+ targetRef: Zn,
23340
23367
  currentScale: ee,
23341
23368
  minScale: .2,
23342
23369
  maxScale: 3,
23343
- enabled: Xn,
23370
+ enabled: Gn,
23344
23371
  callbacks: {
23345
23372
  onPinchZoom: (e) => {
23346
23373
  ee.value = Number(e.toFixed(2));
@@ -23357,75 +23384,75 @@ var IP = ["tabindex"], AP = {
23357
23384
  }
23358
23385
  }
23359
23386
  });
23360
- const Zn = Ie(!1), qn = Ie(!1), Kn = Ie(!1), Jn = Ie(!1);
23361
- function Qn(e) {
23362
- Jn.value = "slides" === e, qn.value = "format" === e, Kn.value = "comments" === e, Zn.value = "notes" === e;
23387
+ const qn = Ie(!1), Kn = Ie(!1), Jn = Ie(!1), Qn = Ie(!1);
23388
+ function eo(e) {
23389
+ Qn.value = "slides" === e, Kn.value = "format" === e, Jn.value = "comments" === e, qn.value = "notes" === e;
23363
23390
  }
23364
- function eo() {
23391
+ function to() {
23365
23392
  vt();
23366
23393
  }
23367
- function to() {
23394
+ function no() {
23368
23395
  _t.value = !0;
23369
23396
  }
23370
- const no = Ie(!1);
23371
- function oo(e) {
23397
+ const oo = Ie(!1);
23398
+ function ao(e) {
23372
23399
  w.value = {
23373
23400
  ...w.value,
23374
23401
  ...e.core
23375
23402
  }, k.value = e.custom, e.app && (S.value = {
23376
23403
  ...S.value,
23377
23404
  ...e.app
23378
- }), no.value = !1;
23405
+ }), oo.value = !1;
23379
23406
  }
23380
- const ao = Ie(!1), ro = Ie("slides"), lo = Ie(0), io = Ie(null), so = Ie(6);
23381
- function uo(e) {
23382
- lo.value = e, io.value = null;
23407
+ const ro = Ie(!1), lo = Ie("slides"), io = Ie(0), so = Ie(null), uo = Ie(6);
23408
+ function co(e) {
23409
+ io.value = e, so.value = null;
23383
23410
  }
23384
- function co(e, t) {
23385
- lo.value = e, io.value = t;
23411
+ function po(e, t) {
23412
+ io.value = e, so.value = t;
23386
23413
  }
23387
- const po = Ie(!1);
23388
- function mo(e) {
23389
- E.value = e, po.value = !1;
23414
+ const mo = Ie(!1);
23415
+ function vo(e) {
23416
+ E.value = e, mo.value = !1;
23390
23417
  }
23391
- const vo = $P({
23418
+ const fo = $P({
23392
23419
  sections: A,
23393
23420
  slides: v,
23394
23421
  activeSlideIndex: j,
23395
23422
  pushHistory: $e.pushHistory
23396
- }), fo = se(() => A.value.length > 0), ho = Ie(!1), go = Ie(null), xo = HT({
23423
+ }), ho = se(() => A.value.length > 0), go = Ie(!1), xo = Ie(null), yo = HT({
23397
23424
  customShows: D,
23398
23425
  slides: v,
23399
23426
  activeSlideIndex: j,
23400
23427
  pushHistory: $e.pushHistory
23401
23428
  });
23402
- function yo(e) {
23403
- go.value = xo.createCustomShow(e);
23404
- }
23405
23429
  function bo(e) {
23406
- xo.deleteCustomShow(e), go.value === e && (go.value = null);
23430
+ xo.value = yo.createCustomShow(e);
23407
23431
  }
23408
- const wo = se(() => H.value?.rId), ko = se(() => {
23409
- const e = go.value, t = wo.value;
23432
+ function wo(e) {
23433
+ yo.deleteCustomShow(e), xo.value === e && (xo.value = null);
23434
+ }
23435
+ const ko = se(() => H.value?.rId), So = se(() => {
23436
+ const e = xo.value, t = ko.value;
23410
23437
  return null !== e && void 0 !== t && (D.value.find((t) => t.id === e)?.slideRIds.includes(t) ?? !1);
23411
23438
  });
23412
- function So() {
23413
- const e = go.value;
23439
+ function $o() {
23440
+ const e = xo.value;
23414
23441
  if (null === e) return;
23415
23442
  const t = D.value.find((t) => t.id === e), n = window.prompt("Rename custom show", t?.name ?? "")?.trim();
23416
- n && xo.renameCustomShow(e, n);
23443
+ n && yo.renameCustomShow(e, n);
23417
23444
  }
23418
- function $o() {
23419
- const e = go.value;
23445
+ function Mo() {
23446
+ const e = xo.value;
23420
23447
  if (null === e) return;
23421
23448
  const t = D.value.find((t) => t.id === e);
23422
- window.confirm(`Delete custom show "${t?.name ?? ""}"?`) && bo(e);
23449
+ window.confirm(`Delete custom show "${t?.name ?? ""}"?`) && wo(e);
23423
23450
  }
23424
- function Mo() {
23425
- const e = go.value, t = wo.value;
23426
- null !== e && void 0 !== t && xo.toggleSlideInShow(e, t);
23451
+ function Co() {
23452
+ const e = xo.value, t = ko.value;
23453
+ null !== e && void 0 !== t && yo.toggleSlideInShow(e, t);
23427
23454
  }
23428
- const Co = function(e) {
23455
+ const Fo = function(e) {
23429
23456
  const { slides: t, pushHistory: n } = e, o = Math.max(1, e.maxVersions ?? 50), a = _e([]);
23430
23457
  return {
23431
23458
  versions: a,
@@ -23456,26 +23483,26 @@ var IP = ["tabindex"], AP = {
23456
23483
  }({
23457
23484
  slides: v,
23458
23485
  pushHistory: $e.pushHistory
23459
- }), Fo = Ie(!1), To = Ie(null);
23460
- Ie(null), se(() => null !== To.value);
23461
- const Po = Ie(!1), Io = Ie(!1);
23462
- const Ao = Ie(!1);
23463
- Ie({ ...BT });
23486
+ }), To = Ie(!1), Po = Ie(null);
23487
+ Ie(null), se(() => null !== Po.value);
23488
+ const Io = Ie(!1), Ao = Ie(!1);
23464
23489
  const Do = Ie(!1);
23465
- function Eo() {
23490
+ Ie({ ...BT });
23491
+ const Eo = Ie(!1);
23492
+ function Bo() {
23466
23493
  const e = xe.value[0];
23467
23494
  e && Dt(e);
23468
23495
  }
23469
- function Bo() {
23496
+ function _o() {
23470
23497
  const e = xe.value[0];
23471
23498
  e && Et(e);
23472
23499
  }
23473
- const _o = WF({
23500
+ const Lo = WF({
23474
23501
  actions: {
23475
23502
  undo: $e.undo,
23476
23503
  redo: $e.redo,
23477
- copy: Eo,
23478
- cut: Bo,
23504
+ copy: Bo,
23505
+ cut: _o,
23479
23506
  paste: Bt,
23480
23507
  duplicate: Mt,
23481
23508
  delete: $t,
@@ -23508,16 +23535,16 @@ var IP = ["tabindex"], AP = {
23508
23535
  hasSelection: De,
23509
23536
  isPresenting: _t
23510
23537
  });
23511
- function Lo(e) {
23538
+ function zo(e) {
23512
23539
  const t = e.ctrlKey || e.metaKey;
23513
- l.canEdit && t && "f" === e.key.toLowerCase() ? (e.preventDefault(), Xt.value = !Xt.value) : t && "/" === e.key ? (e.preventDefault(), Do.value = !Do.value) : _o.handleKeyDown(e);
23514
- }
23515
- const zo = Ie("home"), Ro = Ie("rect"), Oo = Ie("select"), Uo = Ie("#000000"), Wo = Ie(2), No = Ie(!0), jo = Ie(!1), Yo = Ie(!1), Ho = Ie(!0), Xo = Ie(!1), Go = Ie(!1), Vo = Ie(!1), Zo = Ie(!0), qo = Ie(!1), Ko = Ie([]), Jo = Ie([]);
23516
- function Qo(e) {
23517
- Jo.value = [...Jo.value, ts(ne("guide"), e, f.value)];
23540
+ l.canEdit && t && "f" === e.key.toLowerCase() ? (e.preventDefault(), Xt.value = !Xt.value) : t && "/" === e.key ? (e.preventDefault(), Eo.value = !Eo.value) : Lo.handleKeyDown(e);
23518
23541
  }
23542
+ const Ro = Ie("home"), Oo = Ie("rect"), Uo = Ie("select"), Wo = Ie("#000000"), No = Ie(2), jo = Ie(!0), Yo = Ie(!1), Ho = Ie(!1), Xo = Ie(!0), Go = Ie(!1), Vo = Ie(!1), Zo = Ie(!1), qo = Ie(!0), Ko = Ie(!1), Jo = Ie([]), Qo = Ie([]);
23519
23543
  function ea(e) {
23520
- Jo.value = function(e, t, n, o) {
23544
+ Qo.value = [...Qo.value, ts(ne("guide"), e, f.value)];
23545
+ }
23546
+ function ta(e) {
23547
+ Qo.value = function(e, t, n, o) {
23521
23548
  return e.map((e) => {
23522
23549
  if (e.id !== t) return e;
23523
23550
  const a = "h" === e.axis ? o.height : o.width;
@@ -23526,15 +23553,15 @@ var IP = ["tabindex"], AP = {
23526
23553
  position: Math.max(0, Math.min(a, n))
23527
23554
  };
23528
23555
  });
23529
- }(Jo.value, e.id, e.position, f.value);
23556
+ }(Qo.value, e.id, e.position, f.value);
23530
23557
  }
23531
- function ta(e) {
23532
- Jo.value = function(e, t) {
23558
+ function na(e) {
23559
+ Qo.value = function(e, t) {
23533
23560
  return e.filter((e) => e.id !== t);
23534
- }(Jo.value, e);
23561
+ }(Qo.value, e);
23535
23562
  }
23536
- const na = Ie(!1), oa = se(() => l.canEdit && !_t.value && "select" !== Oo.value);
23537
- function aa(e) {
23563
+ const oa = Ie(!1), aa = se(() => l.canEdit && !_t.value && "select" !== Uo.value);
23564
+ function ra(e) {
23538
23565
  const t = e.points;
23539
23566
  if (t.length < 2) return;
23540
23567
  const n = "highlighter" === e.tool, o = n ? 3 * e.width : e.width, a = Math.max(2, o), r = t.map((e) => e.x), l = t.map((e) => e.y), i = Math.min(...r) - a, s = Math.min(...l) - a, u = Math.max(...r) + a, c = Math.max(...l) + a, d = `M ${t.map((e) => `${(e.x - i).toFixed(1)} ${(e.y - s).toFixed(1)}`).join(" L ")}`, p = {
@@ -23552,15 +23579,15 @@ var IP = ["tabindex"], AP = {
23552
23579
  };
23553
23580
  Ae.addElement(p), xe.value = [];
23554
23581
  }
23555
- function ra(e) {
23582
+ function la(e) {
23556
23583
  const t = H.value;
23557
23584
  if (t) for (let n = t.elements.length - 1; n >= 0; n--) {
23558
23585
  const o = t.elements[n];
23559
23586
  if ("ink" === o.type && e.x >= o.x && e.x <= o.x + o.width && e.y >= o.y && e.y <= o.y + o.height) return void Ae.removeElement(o.id);
23560
23587
  }
23561
23588
  }
23562
- const la = Ie(!1);
23563
- function ia(e, t, n) {
23589
+ const ia = Ie(!1);
23590
+ function sa(e, t, n) {
23564
23591
  $e.pushHistory();
23565
23592
  const o = X({
23566
23593
  slides: v.value,
@@ -23569,13 +23596,13 @@ var IP = ["tabindex"], AP = {
23569
23596
  }, e, t, n);
23570
23597
  v.value = o.slides, R.value = o.theme, O.value = o.themeColorMap;
23571
23598
  }
23572
- function sa(e) {
23573
- ia(e.colorScheme, e.fontScheme, e.name), na.value = !1;
23574
- }
23575
23599
  function ua(e) {
23576
- ia(e.colorScheme, e.fontScheme, e.name), la.value = !1;
23600
+ sa(e.colorScheme, e.fontScheme, e.name), oa.value = !1;
23577
23601
  }
23578
- const ca = se(() => _t.value ? "present" : ao.value ? "master" : l.canEdit ? "edit" : "preview"), da = {
23602
+ function ca(e) {
23603
+ sa(e.colorScheme, e.fontScheme, e.name), ia.value = !1;
23604
+ }
23605
+ const da = se(() => _t.value ? "present" : ro.value ? "master" : l.canEdit ? "edit" : "preview"), pa = {
23579
23606
  left: "left",
23580
23607
  center: "centerH",
23581
23608
  right: "right",
@@ -23583,7 +23610,7 @@ var IP = ["tabindex"], AP = {
23583
23610
  middle: "middle",
23584
23611
  bottom: "bottom"
23585
23612
  };
23586
- function pa(e) {
23613
+ function ma(e) {
23587
23614
  const t = xe.value[0];
23588
23615
  if (!t) return;
23589
23616
  const n = H.value?.elements.find((e) => e.id === t);
@@ -23603,7 +23630,7 @@ var IP = ["tabindex"], AP = {
23603
23630
  textSegments: a
23604
23631
  } : { textStyle: o });
23605
23632
  }
23606
- function ma(e) {
23633
+ function va(e) {
23607
23634
  const t = new Set(xe.value), n = j.value, o = v.value[n];
23608
23635
  if (0 === t.size || !o) return;
23609
23636
  $e.pushHistory();
@@ -23619,20 +23646,20 @@ var IP = ["tabindex"], AP = {
23619
23646
  elements: a
23620
23647
  }, v.value = r;
23621
23648
  }
23622
- function va(e) {
23649
+ function fa(e) {
23623
23650
  const t = xe.value[0], n = H.value;
23624
23651
  if (!t || !n) return;
23625
23652
  const o = "front" === e || "forward" === e || "up" === e;
23626
23653
  Ae.reorder(t, o ? n.elements.length - 1 : 0);
23627
23654
  }
23628
- const fa = () => {}, ha = se(() => ({
23629
- mode: ca.value,
23655
+ const ha = () => {}, ga = se(() => ({
23656
+ mode: da.value,
23630
23657
  canEdit: l.canEdit,
23631
- isNarrowViewport: Hn.value,
23632
- isSidebarCollapsed: jo.value,
23633
- isInspectorPaneOpen: No.value,
23658
+ isNarrowViewport: Xn.value,
23659
+ isSidebarCollapsed: Yo.value,
23660
+ isInspectorPaneOpen: jo.value,
23634
23661
  isCompactToolbarOpen: !0,
23635
- toolbarSection: zo.value,
23662
+ toolbarSection: Ro.value,
23636
23663
  scale: ee.value,
23637
23664
  canUndo: $e.canUndo.value,
23638
23665
  canRedo: $e.canRedo.value,
@@ -23642,24 +23669,24 @@ var IP = ["tabindex"], AP = {
23642
23669
  selectedElement: Ee.value[0] ?? null,
23643
23670
  tableEditorState: null,
23644
23671
  editTemplateMode: !1,
23645
- newShapeType: Ro.value,
23646
- activeTool: Oo.value,
23647
- drawingColor: Uo.value,
23648
- drawingWidth: Wo.value,
23672
+ newShapeType: Oo.value,
23673
+ activeTool: Uo.value,
23674
+ drawingColor: Wo.value,
23675
+ drawingWidth: No.value,
23649
23676
  clipboardPayload: It.value ? { kind: "element" } : null,
23650
- spellCheckEnabled: Zo.value,
23651
- showGrid: Xo.value,
23652
- showRulers: Vo.value,
23653
- snapToGrid: Go.value,
23654
- snapToShape: qo.value,
23655
- isOverflowMenuOpen: Yo.value,
23677
+ spellCheckEnabled: qo.value,
23678
+ showGrid: Go.value,
23679
+ showRulers: Zo.value,
23680
+ snapToGrid: Vo.value,
23681
+ snapToShape: Ko.value,
23682
+ isOverflowMenuOpen: Ho.value,
23656
23683
  layoutOptions: P.value,
23657
23684
  customShows: D.value,
23658
- activeCustomShowId: go.value,
23659
- isCurrentSlideInActiveShow: ko.value,
23685
+ activeCustomShowId: xo.value,
23686
+ isCurrentSlideInActiveShow: So.value,
23660
23687
  hasMacros: !1,
23661
- isThemeEditorOpen: la.value,
23662
- isThemeGalleryOpen: na.value,
23688
+ isThemeEditorOpen: ia.value,
23689
+ isThemeGalleryOpen: oa.value,
23663
23690
  isCommentsPanelOpen: Cn.value,
23664
23691
  slideCommentCount: Fn.value.length,
23665
23692
  formatPainterActive: Ue.value,
@@ -23672,19 +23699,19 @@ var IP = ["tabindex"], AP = {
23672
23699
  "present" === e ? Lt() : _t.value = !1;
23673
23700
  },
23674
23701
  onToggleSidebar: () => {
23675
- jo.value = !jo.value;
23702
+ Yo.value = !Yo.value;
23676
23703
  },
23677
23704
  onToggleInspector: () => {
23678
- No.value = !No.value;
23705
+ jo.value = !jo.value;
23679
23706
  },
23680
23707
  onOpenAnimationPanel: () => {
23681
- zo.value = "animations";
23708
+ Ro.value = "animations";
23682
23709
  },
23683
23710
  onAddAnimation: yn,
23684
23711
  onRemoveAnimation: bn,
23685
- onToggleCompactToolbar: fa,
23712
+ onToggleCompactToolbar: ha,
23686
23713
  onSetToolbarSection: (e) => {
23687
- zo.value = e;
23714
+ Ro.value = e;
23688
23715
  },
23689
23716
  onZoomIn: re,
23690
23717
  onZoomOut: ie,
@@ -23695,62 +23722,62 @@ var IP = ["tabindex"], AP = {
23695
23722
  Xt.value = !Xt.value;
23696
23723
  },
23697
23724
  onSetNewShapeType: (e) => {
23698
- Ro.value = e;
23725
+ Oo.value = e;
23699
23726
  },
23700
23727
  onAddTextBox: vt,
23701
23728
  onAddShape: () => {
23702
23729
  return function(e) {
23703
23730
  const t = r(e);
23704
23731
  mt(t, 240, 160), Ae.addElement(t), xe.value = [t.id];
23705
- }("ellipse" === (e = Ro.value) || "roundRect" === e || "triangle" === e ? e : "rect");
23732
+ }("ellipse" === (e = Oo.value) || "roundRect" === e || "triangle" === e ? e : "rect");
23706
23733
  var e;
23707
23734
  },
23708
23735
  onAddTable: ft,
23709
23736
  onAddChart: ht,
23710
23737
  onAddSmartArt: () => {
23711
- Po.value = !0;
23738
+ Io.value = !0;
23712
23739
  },
23713
23740
  onAddEquation: () => {
23714
- Io.value = !0;
23741
+ Ao.value = !0;
23715
23742
  },
23716
23743
  onAddActionButton: St,
23717
23744
  onInsertField: void 0,
23718
23745
  onOpenImagePicker: xt,
23719
23746
  onOpenMediaPicker: wt,
23720
23747
  onSetActiveTool: (e) => {
23721
- Oo.value = e;
23748
+ Uo.value = e;
23722
23749
  },
23723
23750
  onSetDrawingColor: (e) => {
23724
- Uo.value = e;
23751
+ Wo.value = e;
23725
23752
  },
23726
23753
  onSetDrawingWidth: (e) => {
23727
- Wo.value = e;
23754
+ No.value = e;
23728
23755
  },
23729
- onSetEditTemplateMode: fa,
23756
+ onSetEditTemplateMode: ha,
23730
23757
  onSetSpellCheckEnabled: (e) => {
23731
- Zo.value = e;
23758
+ qo.value = e;
23732
23759
  },
23733
23760
  onSetShowGrid: (e) => {
23734
- Xo.value = e;
23761
+ Go.value = e;
23735
23762
  },
23736
23763
  onSetShowRulers: (e) => {
23737
- Vo.value = e;
23764
+ Zo.value = e;
23738
23765
  },
23739
23766
  onSetSnapToGrid: (e) => {
23740
- Go.value = e;
23767
+ Vo.value = e;
23741
23768
  },
23742
23769
  onSetSnapToShape: (e) => {
23743
- qo.value = e;
23770
+ Ko.value = e;
23744
23771
  },
23745
- onAddGuide: Qo,
23772
+ onAddGuide: ea,
23746
23773
  onAlignElements: (e) => {
23747
- const t = da[e];
23774
+ const t = pa[e];
23748
23775
  t && Sn(t);
23749
23776
  },
23750
- onCopy: Eo,
23751
- onCut: Bo,
23777
+ onCopy: Bo,
23778
+ onCut: _o,
23752
23779
  onPaste: Bt,
23753
- onFlip: ma,
23780
+ onFlip: va,
23754
23781
  onMoveLayer: (e) => {
23755
23782
  "forward" === e || "up" === e || "front" === e ? function() {
23756
23783
  for (const e of [...xe.value]) Ae.bringForward(e);
@@ -23758,7 +23785,7 @@ var IP = ["tabindex"], AP = {
23758
23785
  for (const e of [...xe.value]) Ae.sendBackward(e);
23759
23786
  }();
23760
23787
  },
23761
- onMoveLayerToEdge: va,
23788
+ onMoveLayerToEdge: fa,
23762
23789
  onDuplicate: Mt,
23763
23790
  onDelete: $t,
23764
23791
  onOpenFile: m,
@@ -23795,10 +23822,10 @@ var IP = ["tabindex"], AP = {
23795
23822
  },
23796
23823
  onPrint: ln.openPrintDialog,
23797
23824
  onToggleShortcuts: () => {
23798
- Do.value = !Do.value;
23825
+ Eo.value = !Eo.value;
23799
23826
  },
23800
23827
  onOpenSettings: () => {
23801
- Ao.value = !0;
23828
+ Do.value = !0;
23802
23829
  },
23803
23830
  onRunAccessibilityCheck: () => {
23804
23831
  dn.value = !0;
@@ -23806,9 +23833,9 @@ var IP = ["tabindex"], AP = {
23806
23833
  onToggleSlideSorter: () => {
23807
23834
  sn.value = !0;
23808
23835
  },
23809
- onUpdateTextStyle: pa,
23836
+ onUpdateTextStyle: ma,
23810
23837
  onSetOverflowMenuOpen: (e) => {
23811
- Yo.value = e;
23838
+ Ho.value = e;
23812
23839
  },
23813
23840
  onInsertSlideFromLayout: (e, t) => {
23814
23841
  (async function(e, t) {
@@ -23833,38 +23860,38 @@ var IP = ["tabindex"], AP = {
23833
23860
  })(e, t);
23834
23861
  },
23835
23862
  onSetActiveCustomShowId: (e) => {
23836
- go.value = e;
23863
+ xo.value = e;
23837
23864
  },
23838
23865
  onCreateCustomShow: () => {
23839
- ho.value = !0;
23866
+ go.value = !0;
23840
23867
  },
23841
- onRenameActiveCustomShow: So,
23842
- onDeleteActiveCustomShow: $o,
23843
- onToggleCurrentSlideInActiveShow: Mo,
23868
+ onRenameActiveCustomShow: $o,
23869
+ onDeleteActiveCustomShow: Mo,
23870
+ onToggleCurrentSlideInActiveShow: Co,
23844
23871
  onToggleVersionHistory: () => {
23845
- Fo.value = !0;
23872
+ To.value = !0;
23846
23873
  },
23847
23874
  onOpenPasswordProtection: void 0,
23848
23875
  onOpenDocumentProperties: () => {
23849
- no.value = !0;
23876
+ oo.value = !0;
23850
23877
  },
23851
23878
  onOpenFontEmbedding: void 0,
23852
23879
  onOpenDigitalSignatures: () => {
23853
23880
  On.value = !0;
23854
23881
  },
23855
23882
  onEnterMasterView: () => {
23856
- ao.value = !0;
23883
+ ro.value = !0;
23857
23884
  },
23858
23885
  onCloseMasterView: () => {
23859
- ao.value = !1;
23886
+ ro.value = !1;
23860
23887
  },
23861
23888
  onEnterPresenterView: void 0,
23862
23889
  onEnterRehearsalMode: void 0,
23863
23890
  onToggleThemeEditor: () => {
23864
- la.value = !la.value;
23891
+ ia.value = !ia.value;
23865
23892
  },
23866
23893
  onToggleThemeGallery: () => {
23867
- na.value = !na.value;
23894
+ oa.value = !oa.value;
23868
23895
  },
23869
23896
  onCompare: void 0,
23870
23897
  onToggleComments: () => {
@@ -23882,17 +23909,19 @@ var IP = ["tabindex"], AP = {
23882
23909
  onApplyTransitionToAll: gn
23883
23910
  }));
23884
23911
  return t({ getContent: W }), (e, t) => (Fe(), de("div", {
23912
+ ref_key: "viewerRootRef",
23913
+ ref: Hn,
23885
23914
  class: we(["pptx-vue-viewer", l.class]),
23886
23915
  style: Se(Oe(u)),
23887
23916
  tabindex: l.canEdit ? 0 : void 0,
23888
- onKeydown: Lo
23917
+ onKeydown: zo
23889
23918
  }, [
23890
23919
  Oe(g) ? (Fe(), de("div", AP, [...t[51] || (t[51] = [pe("div", {
23891
23920
  class: "pptx-vue-spinner",
23892
23921
  "aria-hidden": "true"
23893
23922
  }, null, -1), pe("p", null, "Loading presentation…", -1)])])) : Oe(y) ? (Fe(), de("div", DP, [...t[52] || (t[52] = [pe("p", null, "This presentation is password-protected and cannot be opened.", -1)])])) : Oe(x) ? (Fe(), de("div", EP, [t[53] || (t[53] = pe("p", null, "Failed to load presentation.", -1)), pe("pre", BP, Le(Oe(x)), 1)])) : (Fe(), de(le, { key: 3 }, [
23894
- Oe(Hn) ? ce("", !0) : (Fe(), ue(cF, ke(ye({ key: 0 }, ha.value)), null, 16)),
23895
- Oe(Hn) ? (Fe(), ue(C$, ke(ye({ key: 1 }, ha.value)), null, 16)) : ce("", !0),
23923
+ Oe(Xn) ? ce("", !0) : (Fe(), ue(cF, ke(ye({ key: 0 }, ga.value)), null, 16)),
23924
+ Oe(Xn) ? (Fe(), ue(C$, ke(ye({ key: 1 }, ga.value)), null, 16)) : ce("", !0),
23896
23925
  pe("input", {
23897
23926
  ref_key: "imageInputRef",
23898
23927
  ref: gt,
@@ -23938,19 +23967,19 @@ var IP = ["tabindex"], AP = {
23938
23967
  "onReplaceAll"
23939
23968
  ])) : ce("", !0),
23940
23969
  pe("div", _P, [
23941
- Oe(Hn) || fo.value || jo.value ? Oe(Hn) || jo.value ? ce("", !0) : (Fe(), de("nav", LP, [ve($F, {
23942
- groups: Oe(vo).slidesBySection.value,
23970
+ Oe(Xn) || ho.value || Yo.value ? Oe(Xn) || Yo.value ? ce("", !0) : (Fe(), de("nav", LP, [ve($F, {
23971
+ groups: Oe(fo).slidesBySection.value,
23943
23972
  "canvas-size": Oe(f),
23944
23973
  "media-data-urls": Oe(h),
23945
23974
  "active-index": j.value,
23946
23975
  "can-edit": l.canEdit,
23947
23976
  onSelect: V,
23948
- onToggleCollapse: Oe(vo).toggleSectionCollapse,
23949
- onRename: Oe(vo).renameSection,
23950
- onMoveUp: Oe(vo).moveSectionUp,
23951
- onMoveDown: Oe(vo).moveSectionDown,
23952
- onDelete: Oe(vo).deleteSection,
23953
- onAddSection: t[8] || (t[8] = (e) => Oe(vo).addSection("Untitled Section", e))
23977
+ onToggleCollapse: Oe(fo).toggleSectionCollapse,
23978
+ onRename: Oe(fo).renameSection,
23979
+ onMoveUp: Oe(fo).moveSectionUp,
23980
+ onMoveDown: Oe(fo).moveSectionDown,
23981
+ onDelete: Oe(fo).deleteSection,
23982
+ onAddSection: t[8] || (t[8] = (e) => Oe(fo).addSection("Untitled Section", e))
23954
23983
  }, null, 8, [
23955
23984
  "groups",
23956
23985
  "canvas-size",
@@ -23985,7 +24014,7 @@ var IP = ["tabindex"], AP = {
23985
24014
  ])),
23986
24015
  pe("main", {
23987
24016
  ref_key: "mainRef",
23988
- ref: Vn,
24017
+ ref: Zn,
23989
24018
  class: we(["pptx-vue-main", { "is-editable": l.canEdit }]),
23990
24019
  onPointerdown: tt,
23991
24020
  onContextmenu: Wt,
@@ -23997,35 +24026,35 @@ var IP = ["tabindex"], AP = {
23997
24026
  "canvas-size": Oe(f),
23998
24027
  "media-data-urls": Oe(h),
23999
24028
  zoom: ge.value,
24000
- "show-rulers": Vo.value && !_t.value,
24029
+ "show-rulers": Zo.value && !_t.value,
24001
24030
  "onUpdate:fitScale": t[11] || (t[11] = (e) => he.value = e)
24002
24031
  }, {
24003
24032
  default: Xe(() => [
24004
24033
  ve(hd, {
24005
24034
  "canvas-size": Oe(f),
24006
- visible: Xo.value && !_t.value
24035
+ visible: Go.value && !_t.value
24007
24036
  }, null, 8, ["canvas-size", "visible"]),
24008
24037
  l.canEdit && !_t.value ? (Fe(), ue(du, {
24009
24038
  key: 0,
24010
- guides: Jo.value,
24039
+ guides: Qo.value,
24011
24040
  scale: ge.value,
24012
- onMove: ea,
24013
- onRemove: ta
24041
+ onMove: ta,
24042
+ onRemove: na
24014
24043
  }, null, 8, ["guides", "scale"])) : ce("", !0),
24015
- Ko.value.length > 0 ? (Fe(), ue(wT, {
24044
+ Jo.value.length > 0 ? (Fe(), ue(wT, {
24016
24045
  key: 1,
24017
- "snap-lines": Ko.value
24046
+ "snap-lines": Jo.value
24018
24047
  }, null, 8, ["snap-lines"])) : ce("", !0),
24019
24048
  l.canEdit ? (Fe(), ue(Oc, {
24020
24049
  key: 2,
24021
24050
  "canvas-size": Oe(f),
24022
- active: oa.value,
24023
- tool: Oo.value,
24024
- color: Uo.value,
24025
- width: Wo.value,
24051
+ active: aa.value,
24052
+ tool: Uo.value,
24053
+ color: Wo.value,
24054
+ width: No.value,
24026
24055
  scale: ge.value,
24027
- onStroke: aa,
24028
- onErase: ra
24056
+ onStroke: ra,
24057
+ onErase: la
24029
24058
  }, null, 8, [
24030
24059
  "canvas-size",
24031
24060
  "active",
@@ -24054,7 +24083,7 @@ var IP = ["tabindex"], AP = {
24054
24083
  l.canEdit && qe.value ? (Fe(), ue(Hd, {
24055
24084
  key: 4,
24056
24085
  element: qe.value,
24057
- "spell-check": Zo.value,
24086
+ "spell-check": qo.value,
24058
24087
  onChange: t[10] || (t[10] = (e) => Ve.value = e),
24059
24088
  onCommit: Je,
24060
24089
  onCancel: Qe
@@ -24084,16 +24113,16 @@ var IP = ["tabindex"], AP = {
24084
24113
  "media-data-urls",
24085
24114
  "zoom",
24086
24115
  "show-rulers"
24087
- ]), l.canEdit && !Oe(Hn) && Ho.value ? (Fe(), ue(D$, {
24116
+ ]), l.canEdit && !Oe(Xn) && Xo.value ? (Fe(), ue(D$, {
24088
24117
  key: 0,
24089
24118
  slide: H.value,
24090
24119
  onUpdate: mn
24091
24120
  }, null, 8, ["slide"])) : ce("", !0)], 34),
24092
- l.canEdit && !Oe(Hn) && Ft.value && No.value ? (Fe(), ue(wf, {
24121
+ l.canEdit && !Oe(Xn) && Ft.value && jo.value ? (Fe(), ue(wf, {
24093
24122
  key: 2,
24094
24123
  element: Ft.value,
24095
24124
  onUpdate: Tt
24096
- }, null, 8, ["element"])) : l.canEdit && !Oe(Hn) && No.value && Y.value > 0 ? (Fe(), ue(Ef, {
24125
+ }, null, 8, ["element"])) : l.canEdit && !Oe(Xn) && jo.value && Y.value > 0 ? (Fe(), ue(Ef, {
24097
24126
  key: 3,
24098
24127
  slide: H.value,
24099
24128
  onTransitionUpdate: fn
@@ -24103,7 +24132,7 @@ var IP = ["tabindex"], AP = {
24103
24132
  issues: Oe(pn).issues.value,
24104
24133
  onSelectSlide: V
24105
24134
  }, null, 8, ["issues"])) : ce("", !0),
24106
- l.canEdit && !Oe(Hn) && Cn.value ? (Fe(), ue(_u, {
24135
+ l.canEdit && !Oe(Xn) && Cn.value ? (Fe(), ue(_u, {
24107
24136
  key: 5,
24108
24137
  comments: Oe(Pn).slideComments.value,
24109
24138
  "author-name": Tn.value,
@@ -24134,17 +24163,17 @@ var IP = ["tabindex"], AP = {
24134
24163
  "connected-count",
24135
24164
  "onRetry"
24136
24165
  ])])) : ce("", !0),
24137
- l.canEdit && ho.value ? (Fe(), ue(tc, {
24166
+ l.canEdit && go.value ? (Fe(), ue(tc, {
24138
24167
  key: 9,
24139
24168
  "custom-shows": Oe(D),
24140
24169
  slides: Oe(v),
24141
- "active-show-id": go.value,
24142
- onCreate: yo,
24143
- onRename: Oe(xo).renameCustomShow,
24144
- onDelete: bo,
24145
- onSelect: t[15] || (t[15] = (e) => go.value = e),
24146
- onToggleSlide: Oe(xo).toggleSlideInShow,
24147
- onMoveSlide: Oe(xo).moveSlideInShow
24170
+ "active-show-id": xo.value,
24171
+ onCreate: bo,
24172
+ onRename: Oe(yo).renameCustomShow,
24173
+ onDelete: wo,
24174
+ onSelect: t[15] || (t[15] = (e) => xo.value = e),
24175
+ onToggleSlide: Oe(yo).toggleSlideInShow,
24176
+ onMoveSlide: Oe(yo).moveSlideInShow
24148
24177
  }, null, 8, [
24149
24178
  "custom-shows",
24150
24179
  "slides",
@@ -24154,20 +24183,20 @@ var IP = ["tabindex"], AP = {
24154
24183
  "onMoveSlide"
24155
24184
  ])) : ce("", !0)
24156
24185
  ]),
24157
- !Oe(Hn) && Y.value > 0 ? (Fe(), ue(FT, {
24186
+ !Oe(Xn) && Y.value > 0 ? (Fe(), ue(FT, {
24158
24187
  key: 3,
24159
24188
  "slide-count": Y.value,
24160
24189
  "active-slide-index": j.value,
24161
24190
  "is-dirty": Oe(Mn).isDirty.value,
24162
24191
  "autosave-status": $n.value ? Oe(Mn).status.value : void 0,
24163
24192
  scale: ee.value,
24164
- mode: ca.value,
24165
- "is-notes-expanded": Ho.value,
24193
+ mode: da.value,
24194
+ "is-notes-expanded": Xo.value,
24166
24195
  "show-notes": l.canEdit,
24167
24196
  onZoomIn: re,
24168
24197
  onZoomOut: ie,
24169
24198
  onZoomToFit: me,
24170
- onToggleNotes: t[16] || (t[16] = (e) => Ho.value = !Ho.value),
24199
+ onToggleNotes: t[16] || (t[16] = (e) => Xo.value = !Xo.value),
24171
24200
  onToggleSlideSorter: t[17] || (t[17] = (e) => sn.value = !0),
24172
24201
  onSetMode: t[18] || (t[18] = (e) => "present" === e ? Lt() : _t.value = !1)
24173
24202
  }, null, 8, [
@@ -24181,17 +24210,17 @@ var IP = ["tabindex"], AP = {
24181
24210
  "show-notes"
24182
24211
  ])) : ce("", !0),
24183
24212
  ve(ET, {
24184
- open: na.value,
24213
+ open: oa.value,
24185
24214
  "active-name": Oe(R)?.name,
24186
- onApply: sa,
24187
- onClose: t[19] || (t[19] = (e) => na.value = !1)
24215
+ onApply: ua,
24216
+ onClose: t[19] || (t[19] = (e) => oa.value = !1)
24188
24217
  }, null, 8, ["open", "active-name"]),
24189
- la.value && l.canEdit ? (Fe(), ue(qf, {
24218
+ ia.value && l.canEdit ? (Fe(), ue(qf, {
24190
24219
  key: 4,
24191
24220
  theme: Oe(R),
24192
24221
  "can-edit": l.canEdit,
24193
- onApply: ua,
24194
- onClose: t[20] || (t[20] = (e) => la.value = !1)
24222
+ onApply: ca,
24223
+ onClose: t[20] || (t[20] = (e) => ia.value = !1)
24195
24224
  }, null, 8, ["theme", "can-edit"])) : ce("", !0),
24196
24225
  ve(Ru, {
24197
24226
  open: Ot.value.open,
@@ -24225,13 +24254,13 @@ var IP = ["tabindex"], AP = {
24225
24254
  "active"
24226
24255
  ]),
24227
24256
  ve(Lc, {
24228
- open: no.value,
24257
+ open: oo.value,
24229
24258
  "core-properties": Oe(w),
24230
24259
  "custom-properties": Oe(k),
24231
24260
  "app-properties": Oe(S),
24232
24261
  slides: Oe(v),
24233
- onSave: oo,
24234
- onClose: t[24] || (t[24] = (e) => no.value = !1)
24262
+ onSave: ao,
24263
+ onClose: t[24] || (t[24] = (e) => oo.value = !1)
24235
24264
  }, null, 8, [
24236
24265
  "open",
24237
24266
  "core-properties",
@@ -24253,22 +24282,22 @@ var IP = ["tabindex"], AP = {
24253
24282
  "onClose"
24254
24283
  ]),
24255
24284
  ve(ZF, {
24256
- open: Do.value,
24257
- onClose: t[25] || (t[25] = (e) => Do.value = !1)
24285
+ open: Eo.value,
24286
+ onClose: t[25] || (t[25] = (e) => Eo.value = !1)
24258
24287
  }, null, 8, ["open"]),
24259
24288
  ve(Js, {
24260
- open: po.value,
24289
+ open: mo.value,
24261
24290
  title: "Header & footer",
24262
- onClose: t[27] || (t[27] = (e) => po.value = !1)
24291
+ onClose: t[27] || (t[27] = (e) => mo.value = !1)
24263
24292
  }, {
24264
24293
  default: Xe(() => [ve(Ld, {
24265
24294
  "header-footer": Oe(E),
24266
- onUpdate: mo,
24267
- onClose: t[26] || (t[26] = (e) => po.value = !1)
24295
+ onUpdate: vo,
24296
+ onClose: t[26] || (t[26] = (e) => mo.value = !1)
24268
24297
  }, null, 8, ["header-footer"])]),
24269
24298
  _: 1
24270
24299
  }, 8, ["open"]),
24271
- ao.value ? (Fe(), de("div", {
24300
+ ro.value ? (Fe(), de("div", {
24272
24301
  key: 5,
24273
24302
  class: "pptx-vue-master-overlay",
24274
24303
  role: "dialog",
@@ -24281,22 +24310,22 @@ var IP = ["tabindex"], AP = {
24281
24310
  "justify-content": "flex-start",
24282
24311
  background: "rgba(0, 0, 0, 0.45)"
24283
24312
  },
24284
- onClick: t[31] || (t[31] = Ze((e) => ao.value = !1, ["self"]))
24313
+ onClick: t[31] || (t[31] = Ze((e) => ro.value = !1, ["self"]))
24285
24314
  }, [ve(ew, {
24286
24315
  "slide-masters": Oe(T),
24287
- "active-master-index": lo.value,
24288
- "active-layout-index": io.value,
24316
+ "active-master-index": io.value,
24317
+ "active-layout-index": so.value,
24289
24318
  "canvas-size": Oe(f),
24290
24319
  "media-data-urls": Oe(h),
24291
- "master-view-tab": ro.value,
24320
+ "master-view-tab": lo.value,
24292
24321
  "notes-master": Oe(B),
24293
24322
  "handout-master": Oe(z),
24294
- "handout-slides-per-page": so.value,
24295
- onSelectMaster: uo,
24296
- onSelectLayout: co,
24297
- onTabChange: t[28] || (t[28] = (e) => ro.value = e),
24298
- onHandoutSlidesPerPageChange: t[29] || (t[29] = (e) => so.value = e),
24299
- onCollapse: t[30] || (t[30] = (e) => ao.value = !1)
24323
+ "handout-slides-per-page": uo.value,
24324
+ onSelectMaster: co,
24325
+ onSelectLayout: po,
24326
+ onTabChange: t[28] || (t[28] = (e) => lo.value = e),
24327
+ onHandoutSlidesPerPageChange: t[29] || (t[29] = (e) => uo.value = e),
24328
+ onCollapse: t[30] || (t[30] = (e) => ro.value = !1)
24300
24329
  }, null, 8, [
24301
24330
  "slide-masters",
24302
24331
  "active-master-index",
@@ -24322,25 +24351,25 @@ var IP = ["tabindex"], AP = {
24322
24351
  "viewer-url",
24323
24352
  "defaults"
24324
24353
  ]),
24325
- Oe(Hn) ? (Fe(), ue(lw, {
24354
+ Oe(Xn) ? (Fe(), ue(lw, {
24326
24355
  key: 6,
24327
24356
  "slide-index": j.value,
24328
24357
  "slide-count": Y.value,
24329
24358
  "zoom-percent": fe.value,
24330
24359
  "can-edit": l.canEdit,
24331
- "keyboard-inset": Oe(Gn),
24360
+ "keyboard-inset": Oe(Vn),
24332
24361
  "comment-count": Fn.value.length,
24333
24362
  onPrev: Z,
24334
24363
  onNext: q,
24335
24364
  onZoomIn: re,
24336
24365
  onZoomOut: ie,
24337
- onPresent: to,
24338
- onSlides: t[33] || (t[33] = (e) => Jn.value ? Jn.value = !1 : Qn("slides")),
24339
- onInsert: eo,
24340
- onFormat: t[34] || (t[34] = (e) => qn.value ? qn.value = !1 : Qn("format")),
24341
- onComments: t[35] || (t[35] = (e) => Kn.value ? Kn.value = !1 : Qn("comments")),
24366
+ onPresent: no,
24367
+ onSlides: t[33] || (t[33] = (e) => Qn.value ? Qn.value = !1 : eo("slides")),
24368
+ onInsert: to,
24369
+ onFormat: t[34] || (t[34] = (e) => Kn.value ? Kn.value = !1 : eo("format")),
24370
+ onComments: t[35] || (t[35] = (e) => Jn.value ? Jn.value = !1 : eo("comments")),
24342
24371
  onSave: t[36] || (t[36] = (e) => rn("pptx")),
24343
- onNotes: t[37] || (t[37] = (e) => Zn.value ? Zn.value = !1 : Qn("notes")),
24372
+ onNotes: t[37] || (t[37] = (e) => qn.value ? qn.value = !1 : eo("notes")),
24344
24373
  onMenu: t[38] || (t[38] = (e) => sn.value = !0)
24345
24374
  }, null, 8, [
24346
24375
  "slide-index",
@@ -24350,15 +24379,15 @@ var IP = ["tabindex"], AP = {
24350
24379
  "keyboard-inset",
24351
24380
  "comment-count"
24352
24381
  ])) : ce("", !0),
24353
- Oe(Hn) ? (Fe(), ue(bw, {
24382
+ Oe(Xn) ? (Fe(), ue(bw, {
24354
24383
  key: 7,
24355
- open: Jn.value,
24384
+ open: Qn.value,
24356
24385
  slides: Oe(v),
24357
24386
  "active-index": j.value,
24358
24387
  "canvas-size": Oe(f),
24359
24388
  "media-data-urls": Oe(h),
24360
24389
  "can-edit": l.canEdit,
24361
- onClose: t[39] || (t[39] = (e) => Jn.value = !1),
24390
+ onClose: t[39] || (t[39] = (e) => Qn.value = !1),
24362
24391
  onSelect: V,
24363
24392
  onReorder: t[40] || (t[40] = (e) => Oe(Pt).moveSlide(e.from, e.to)),
24364
24393
  onAddSlide: t[41] || (t[41] = (e) => Oe(Pt).addSlide()),
@@ -24373,11 +24402,11 @@ var IP = ["tabindex"], AP = {
24373
24402
  "media-data-urls",
24374
24403
  "can-edit"
24375
24404
  ])) : ce("", !0),
24376
- Oe(Hn) ? (Fe(), ue(dw, {
24405
+ Oe(Xn) ? (Fe(), ue(dw, {
24377
24406
  key: 8,
24378
- open: Zn.value,
24407
+ open: qn.value,
24379
24408
  title: "Notes",
24380
- onClose: t[44] || (t[44] = (e) => Zn.value = !1)
24409
+ onClose: t[44] || (t[44] = (e) => qn.value = !1)
24381
24410
  }, {
24382
24411
  default: Xe(() => [ve(D$, {
24383
24412
  slide: H.value,
@@ -24385,11 +24414,11 @@ var IP = ["tabindex"], AP = {
24385
24414
  }, null, 8, ["slide"])]),
24386
24415
  _: 1
24387
24416
  }, 8, ["open"])) : ce("", !0),
24388
- Oe(Hn) && l.canEdit ? (Fe(), ue(dw, {
24417
+ Oe(Xn) && l.canEdit ? (Fe(), ue(dw, {
24389
24418
  key: 9,
24390
- open: qn.value,
24419
+ open: Kn.value,
24391
24420
  title: "Format",
24392
- onClose: t[45] || (t[45] = (e) => qn.value = !1)
24421
+ onClose: t[45] || (t[45] = (e) => Kn.value = !1)
24393
24422
  }, {
24394
24423
  default: Xe(() => [Ft.value ? (Fe(), ue(wf, {
24395
24424
  key: 0,
@@ -24404,11 +24433,11 @@ var IP = ["tabindex"], AP = {
24404
24433
  }, null, 8, ["slide"])) : (Fe(), de("p", RP, "No slide selected."))]),
24405
24434
  _: 1
24406
24435
  }, 8, ["open"])) : ce("", !0),
24407
- Oe(Hn) && l.canEdit ? (Fe(), ue(dw, {
24436
+ Oe(Xn) && l.canEdit ? (Fe(), ue(dw, {
24408
24437
  key: 10,
24409
- open: Kn.value,
24438
+ open: Jn.value,
24410
24439
  title: "Comments",
24411
- onClose: t[49] || (t[49] = (e) => Kn.value = !1)
24440
+ onClose: t[49] || (t[49] = (e) => Jn.value = !1)
24412
24441
  }, {
24413
24442
  default: Xe(() => [ve(_u, {
24414
24443
  comments: Oe(Pn).slideComments.value,