pptx-vue-viewer 4.66.0 → 4.67.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/index.cjs +1 -1
  3. package/dist/index.cjs.br +0 -0
  4. package/dist/index.cjs.gz +0 -0
  5. package/dist/index.d.ts +2 -1
  6. package/dist/index.js +2 -2
  7. package/dist/index.js.br +0 -0
  8. package/dist/index.js.gz +0 -0
  9. package/dist/internals.cjs +1 -1
  10. package/dist/internals.cjs.br +0 -0
  11. package/dist/internals.cjs.gz +0 -0
  12. package/dist/internals.js +1 -1
  13. package/dist/internals.js.br +0 -0
  14. package/dist/internals.js.gz +0 -0
  15. package/dist/{useViewerSettingsDialog-Cd52v93-.cjs → useViewerSettingsDialog-BNnWGJwV.cjs} +170 -164
  16. package/dist/useViewerSettingsDialog-BNnWGJwV.cjs.br +0 -0
  17. package/dist/useViewerSettingsDialog-BNnWGJwV.cjs.gz +0 -0
  18. package/dist/{useViewerSettingsDialog-DgmgQcw4.js → useViewerSettingsDialog-CGI6HR0i.js} +89 -83
  19. package/dist/useViewerSettingsDialog-CGI6HR0i.js.br +0 -0
  20. package/dist/useViewerSettingsDialog-CGI6HR0i.js.gz +0 -0
  21. package/dist/viewer/index.cjs +1 -1
  22. package/dist/viewer/index.cjs.br +0 -0
  23. package/dist/viewer/index.cjs.gz +0 -0
  24. package/dist/viewer/index.d.ts +2 -1
  25. package/dist/viewer/index.js +3 -3
  26. package/dist/viewer/index.js.br +0 -0
  27. package/dist/viewer/index.js.gz +0 -0
  28. package/dist/{viewer-Te3FWYIB.cjs → viewer-B-B4pL2o.cjs} +83 -86
  29. package/dist/viewer-B-B4pL2o.cjs.br +0 -0
  30. package/dist/viewer-B-B4pL2o.cjs.gz +0 -0
  31. package/dist/{viewer-CuueXklz.js → viewer-DYs723bH.js} +6610 -6613
  32. package/dist/viewer-DYs723bH.js.br +0 -0
  33. package/dist/viewer-DYs723bH.js.gz +0 -0
  34. package/dist/{y-webrtc-CU4hfjTK.js → y-webrtc-BxRkXfn3.js} +1 -1
  35. package/dist/y-webrtc-BxRkXfn3.js.br +0 -0
  36. package/dist/{y-webrtc-CU4hfjTK.js.gz → y-webrtc-BxRkXfn3.js.gz} +0 -0
  37. package/dist/{y-webrtc-C8MpOfL3.cjs → y-webrtc-D9l3ByiO.cjs} +1 -1
  38. package/dist/y-webrtc-D9l3ByiO.cjs.br +0 -0
  39. package/dist/y-webrtc-D9l3ByiO.cjs.gz +0 -0
  40. package/package.json +3 -3
  41. package/dist/useViewerSettingsDialog-Cd52v93-.cjs.br +0 -0
  42. package/dist/useViewerSettingsDialog-Cd52v93-.cjs.gz +0 -0
  43. package/dist/useViewerSettingsDialog-DgmgQcw4.js.br +0 -0
  44. package/dist/useViewerSettingsDialog-DgmgQcw4.js.gz +0 -0
  45. package/dist/viewer-CuueXklz.js.br +0 -0
  46. package/dist/viewer-CuueXklz.js.gz +0 -0
  47. package/dist/viewer-Te3FWYIB.cjs.br +0 -0
  48. package/dist/viewer-Te3FWYIB.cjs.gz +0 -0
  49. package/dist/y-webrtc-C8MpOfL3.cjs.br +0 -0
  50. package/dist/y-webrtc-C8MpOfL3.cjs.gz +0 -0
  51. package/dist/y-webrtc-CU4hfjTK.js.br +0 -0
@@ -91,19 +91,11 @@ var b = (e, t) => {
91
91
  const n = e.__vccOpts || e;
92
92
  for (const [e, l] of t) n[e] = l;
93
93
  return n;
94
- }, w = Symbol("pptx-vue-field-context");
95
- function E() {
96
- return (0, p.inject)(w, void 0);
97
- }
98
- function B(e) {
99
- return e ? (0, p.toValue)(e) : void 0;
100
- }
101
- var C = Symbol("pptx-vue-slide-elements");
102
- var I = "#111827", P = "#1f2937";
103
- function T(e, t) {
94
+ }, w = "#111827", E = "#1f2937";
95
+ function B(e, t) {
104
96
  return (0, d.getContainerStyle)(e, t);
105
97
  }
106
- function D(e, t, n, l) {
98
+ function C(e, t, n, l) {
107
99
  const o = (0, d.getFrameEffectStyle)(e);
108
100
  if (o) return { ...o };
109
101
  if (!(0, k.hasShapeProperties)(e)) return {};
@@ -134,16 +126,24 @@ function D(e, t, n, l) {
134
126
  default: return a;
135
127
  }
136
128
  }
137
- function z(e) {
129
+ function I(e) {
138
130
  return (0, k.hasTextProperties)(e) ? (0, d.buildTextBlockStyle)(e, {
139
- fallbackColor: I,
131
+ fallbackColor: w,
140
132
  bodyLayout: !0,
141
133
  pxLengths: !0
142
134
  }) : {};
143
135
  }
144
- function A(e, t) {
136
+ function P(e, t) {
145
137
  return (0, d.getImageSrc)(e, t);
146
138
  }
139
+ var T = Symbol("pptx-vue-field-context");
140
+ function D() {
141
+ return (0, p.inject)(T, void 0);
142
+ }
143
+ function z(e) {
144
+ return e ? (0, p.toValue)(e) : void 0;
145
+ }
146
+ var A = Symbol("pptx-vue-slide-elements");
147
147
  function O(e, t, n) {
148
148
  return (0, p.computed)(() => {
149
149
  return (0, d.shouldRenderHitTarget)(!0 === t(), !0 === n()) ? (l = e(), (0, d.elementHitTargetStyle)(l)) : void 0;
@@ -872,7 +872,7 @@ var Ue = (0, p.defineComponent)({
872
872
  },
873
873
  setup(e) {
874
874
  const t = e, { t: n } = c.useI18n(), l = (0, p.computed)(() => ({
875
- ...T(t.element, t.zIndex),
875
+ ...B(t.element, t.zIndex),
876
876
  ...(0, d.getFrameEffectStyle)(t.element)
877
877
  })), o = O(() => t.element, () => t.interactive, () => t.presenting), a = (0, p.ref)(null), { interactiveClass: r, renderedElement: i, dragLabel: s, titleDraft: u, onPointerdown: m, onPointermove: v, onPointerup: f, onDblclick: h, setTitleDraft: y, commitTitle: g, cancelTitle: k } = function(e) {
878
878
  const t = X(), n = q(), l = (t) => (0, d.chartFormatTargetFromEvent)(t, e.rootEl.value, e.element()), o = (0, p.shallowRef)(null), a = (0, p.ref)(null), r = (0, p.ref)(null);
@@ -1006,7 +1006,7 @@ var Ue = (0, p.defineComponent)({
1006
1006
  if ("chart" !== e.type) return;
1007
1007
  const t = e.chartData;
1008
1008
  return t && 0 !== t.series.length ? t : void 0;
1009
- }), b = (0, p.computed)(() => S.value?.chartType ?? "bar"), w = (0, p.computed)(() => S.value ? (0, d.resolveChartKind)(b.value) : "unsupported"), E = (0, p.computed)(() => "unsupported" === w.value), B = function(e, t) {
1009
+ }), b = (0, p.computed)(() => S.value?.chartType ?? "bar"), w = (0, p.computed)(() => S.value ? (0, d.resolveChartKind)(b.value) : "unsupported"), E = (0, p.computed)(() => "unsupported" === w.value), C = function(e, t) {
1010
1010
  const n = V(), l = X(), o = (0, p.ref)(null), a = (0, p.computed)(() => (0, d.resolveChartThreeViewSpec)(e(), n.value)), r = (0, p.computed)(() => {
1011
1011
  const t = l?.selection.value;
1012
1012
  return t && t.elementId === e().id ? t.part : null;
@@ -1033,7 +1033,7 @@ var Ue = (0, p.defineComponent)({
1033
1033
  onSelect: (e) => (0, d.applyChart3DSelect)(s(), e),
1034
1034
  onDrag: (e) => (0, d.applyChart3DDrag)(s(), e)
1035
1035
  };
1036
- }(() => t.element, () => !0 === t.interactive), C = B.spec, I = (0, p.computed)(() => (0, d.chartPlaceholderLabel)(b.value, (e, t) => n(e, t ?? {}))), P = function() {
1036
+ }(() => t.element, () => !0 === t.interactive), I = C.spec, P = (0, p.computed)(() => (0, d.chartPlaceholderLabel)(b.value, (e, t) => n(e, t ?? {}))), T = function() {
1037
1037
  const e = (0, p.ref)((0, d.getBarFacePicturePixelSampleVersion)());
1038
1038
  let t;
1039
1039
  return (0, p.onMounted)(() => {
@@ -1041,7 +1041,7 @@ var Ue = (0, p.defineComponent)({
1041
1041
  e.value = (0, d.getBarFacePicturePixelSampleVersion)();
1042
1042
  });
1043
1043
  }), (0, p.onBeforeUnmount)(() => t?.()), e;
1044
- }(), D = (0, p.computed)(() => (P.value, E.value ? void 0 : J(x.value))), z = (0, p.computed)(() => (0, d.chartPreserveAspectRatio)(w.value)), A = (0, p.computed)(() => t.animationState?.textStyle);
1044
+ }(), D = (0, p.computed)(() => (T.value, E.value ? void 0 : J(x.value))), z = (0, p.computed)(() => (0, d.chartPreserveAspectRatio)(w.value)), A = (0, p.computed)(() => t.animationState?.textStyle);
1045
1045
  return (t, n) => ((0, p.openBlock)(), (0, p.createElementBlock)("div", {
1046
1046
  ref_key: "rootEl",
1047
1047
  ref: a,
@@ -1064,14 +1064,14 @@ var Ue = (0, p.defineComponent)({
1064
1064
  default: (0, p.withCtx)(() => [(0, p.createTextVNode)((0, p.toDisplayString)(e.textStyleOverrideCss), 1)]),
1065
1065
  _: 1
1066
1066
  })) : (0, p.createCommentVNode)("", !0),
1067
- E.value ? ((0, p.openBlock)(), (0, p.createElementBlock)("div", We, (0, p.toDisplayString)(I.value), 1)) : (0, p.unref)(C) && D.value ? ((0, p.openBlock)(), (0, p.createBlock)((0, p.unref)(Ue), {
1067
+ E.value ? ((0, p.openBlock)(), (0, p.createElementBlock)("div", We, (0, p.toDisplayString)(P.value), 1)) : (0, p.unref)(I) && D.value ? ((0, p.openBlock)(), (0, p.createBlock)((0, p.unref)(Ue), {
1068
1068
  key: 3,
1069
- spec: (0, p.unref)(C),
1070
- interactive: (0, p.unref)(B).interactive.value,
1071
- "selected-part": (0, p.unref)(B).selectedPart.value,
1069
+ spec: (0, p.unref)(I),
1070
+ interactive: (0, p.unref)(C).interactive.value,
1071
+ "selected-part": (0, p.unref)(C).selectedPart.value,
1072
1072
  "text-style": A.value,
1073
- onSelect: (0, p.unref)(B).onSelect,
1074
- onDrag: (0, p.unref)(B).onDrag
1073
+ onSelect: (0, p.unref)(C).onSelect,
1074
+ onDrag: (0, p.unref)(C).onDrag
1075
1075
  }, {
1076
1076
  default: (0, p.withCtx)(() => [(0, p.createVNode)(je, {
1077
1077
  "element-id": e.element.id,
@@ -1101,7 +1101,7 @@ var Ue = (0, p.defineComponent)({
1101
1101
  "preserve-aspect-ratio"
1102
1102
  ])) : (0, p.createCommentVNode)("", !0),
1103
1103
  (0, p.createVNode)(te, {
1104
- "drag-label": (0, p.unref)(s) ?? (0, p.unref)(B).dragLabel.value,
1104
+ "drag-label": (0, p.unref)(s) ?? (0, p.unref)(C).dragLabel.value,
1105
1105
  "title-draft": (0, p.unref)(u),
1106
1106
  onTitleInput: (0, p.unref)(y),
1107
1107
  onTitleCommit: (0, p.unref)(g),
@@ -1433,7 +1433,7 @@ var ut = ["data-element-id"], ct = ["viewBox"], dt = ["opacity"], pt = [
1433
1433
  interactive: { type: Boolean }
1434
1434
  },
1435
1435
  setup(e) {
1436
- const t = e, n = st(), l = (0, p.computed)(() => T(t.element, t.zIndex)), o = O(() => t.element, () => t.interactive, () => t.presenting), a = (0, p.computed)(() => "contentPart" === t.element.type ? t.element : void 0), r = (0, p.computed)(() => a.value ? (0, d.buildContentPartStrokes)(a.value) : []), i = (0, p.computed)(() => a.value ? (0, d.contentPartViewBox)(a.value) : "0 0 1 1"), s = (0, p.computed)(() => t.presenting && a.value ? (0, d.getContentPartReplayStyles)(a.value.inkStrokes ?? []) : []);
1436
+ const t = e, n = st(), l = (0, p.computed)(() => B(t.element, t.zIndex)), o = O(() => t.element, () => t.interactive, () => t.presenting), a = (0, p.computed)(() => "contentPart" === t.element.type ? t.element : void 0), r = (0, p.computed)(() => a.value ? (0, d.buildContentPartStrokes)(a.value) : []), i = (0, p.computed)(() => a.value ? (0, d.contentPartViewBox)(a.value) : "0 0 1 1"), s = (0, p.computed)(() => t.presenting && a.value ? (0, d.getContentPartReplayStyles)(a.value.inkStrokes ?? []) : []);
1437
1437
  function u(e) {
1438
1438
  return "multiply" === e ? { mixBlendMode: "multiply" } : void 0;
1439
1439
  }
@@ -1741,7 +1741,7 @@ var Pt = { style: {
1741
1741
  }
1742
1742
  },
1743
1743
  setup(e) {
1744
- const t = e, n = (0, p.computed)(() => "group" === t.element.type), l = (0, p.computed)(() => (0, k.isImageLikeElement)(t.element)), o = (0, p.computed)(() => t.mediaDataUrls ?? /* @__PURE__ */ new Map()), a = (0, p.computed)(() => D(t.element, t.parentGroupFill)), r = (0, p.computed)(() => (0, d.buildParagraphs)(t.element)), i = (0, p.computed)(() => r.value.some((e) => e.runs.length > 0)), s = (0, p.computed)(() => z(t.element)), u = (0, p.computed)(() => l.value ? (0, d.getImageSrc)(t.element, o.value) : void 0), c = (0, p.computed)(() => (0, d.getImageFitStyle)(t.element)), m = (0, p.computed)(() => (0, d.getGroupChildParentFill)(t.element, t.parentGroupFill)), v = (0, p.computed)(() => n.value ? t.element.children ?? [] : []);
1744
+ const t = e, n = (0, p.computed)(() => "group" === t.element.type), l = (0, p.computed)(() => (0, k.isImageLikeElement)(t.element)), o = (0, p.computed)(() => t.mediaDataUrls ?? /* @__PURE__ */ new Map()), a = (0, p.computed)(() => C(t.element, t.parentGroupFill)), r = (0, p.computed)(() => (0, d.buildParagraphs)(t.element)), i = (0, p.computed)(() => r.value.some((e) => e.runs.length > 0)), s = (0, p.computed)(() => I(t.element)), u = (0, p.computed)(() => l.value ? (0, d.getImageSrc)(t.element, o.value) : void 0), c = (0, p.computed)(() => (0, d.getImageFitStyle)(t.element)), m = (0, p.computed)(() => (0, d.getGroupChildParentFill)(t.element, t.parentGroupFill)), v = (0, p.computed)(() => n.value ? t.element.children ?? [] : []);
1745
1745
  return (t, l) => {
1746
1746
  const o = (0, p.resolveComponent)("ReflectionMirrorContent", !0);
1747
1747
  return n.value ? ((0, p.openBlock)(), (0, p.createElementBlock)("div", {
@@ -2064,9 +2064,9 @@ var Pt = { style: {
2064
2064
  borderRadius: n.value?.borderRadius,
2065
2065
  clipPath: n.value?.clipPath ?? l.value
2066
2066
  })), a = (0, p.computed)(() => ({
2067
- ...T(t.element, t.zIndex),
2067
+ ...B(t.element, t.zIndex),
2068
2068
  ...o.value.box
2069
- })), r = (0, p.computed)(() => o.value.surface ?? { display: "contents" }), i = (0, p.computed)(() => (0, d.getImageFitStyle)(t.element)), s = (0, p.computed)(() => (0, d.getImageFillCounterTransform)(t.element, Boolean(i.value.transform))), u = (0, p.computed)(() => A(t.element, t.mediaDataUrls)), c = function(e) {
2069
+ })), r = (0, p.computed)(() => o.value.surface ?? { display: "contents" }), i = (0, p.computed)(() => (0, d.getImageFitStyle)(t.element)), s = (0, p.computed)(() => (0, d.getImageFillCounterTransform)(t.element, Boolean(i.value.transform))), u = (0, p.computed)(() => P(t.element, t.mediaDataUrls)), c = function(e) {
2070
2070
  const t = (0, p.ref)((0, d.getCachedNativeImageSize)(e.value));
2071
2071
  return (0, p.watch)(e, (n) => {
2072
2072
  if (!n) return void (t.value = void 0);
@@ -2250,9 +2250,9 @@ var xn = ["data-element-id", "data-pptx-element"], Sn = [
2250
2250
  }
2251
2251
  };
2252
2252
  }(() => t.element, () => l.value, () => !0 === t.presenting), u = (0, p.computed)(() => ({
2253
- ...T(t.element, t.zIndex),
2253
+ ...B(t.element, t.zIndex),
2254
2254
  ...s.overlayStyle.value
2255
- })), m = (0, p.computed)(() => A(t.element, t.mediaDataUrls)), v = (0, p.computed)(() => {
2255
+ })), m = (0, p.computed)(() => P(t.element, t.mediaDataUrls)), v = (0, p.computed)(() => {
2256
2256
  const e = t.element;
2257
2257
  if ("media" === e.type) return e.mediaData ?? (e.mediaPath ? t.mediaDataUrls.get(e.mediaPath) : void 0);
2258
2258
  }), f = (0, p.computed)(() => "media" === t.element.type ? t.element.mediaType : void 0), h = (0, p.computed)(() => (0, d.getOnlineVideoEmbed)(t.element)?.embedUrl), y = (0, p.computed)(() => "media" === t.element.type ? t.element.posterFrameData ?? m.value : m.value), g = (0, p.computed)(() => (0, d.mediaPlaybackAttributes)(a.value).loop), k = (0, p.computed)(() => "media" === t.element.type && !0 === t.element.autoPlay), x = (0, p.computed)(() => (0, d.mediaSurfaceOf)({
@@ -2271,18 +2271,18 @@ var xn = ["data-element-id", "data-pptx-element"], Sn = [
2271
2271
  const w = (0, p.computed)(() => (0, d.mediaFallbackVisual)(x.value, {
2272
2272
  hasPoster: Boolean(y.value),
2273
2273
  missing: "media" === t.element.type && !0 === t.element.mediaMissing
2274
- })), E = (0, p.computed)(() => (0, d.mediaFallbackIcon)(w.value, f.value)), B = (0, p.computed)(() => (0, d.mediaFallbackLabelKey)(w.value, f.value)), C = (0, p.computed)(() => s.active.value ? { pointerEvents: "auto" } : t.interactive ? null : { pointerEvents: "none" }), I = O(() => t.element, () => t.interactive, () => t.presenting);
2274
+ })), E = (0, p.computed)(() => (0, d.mediaFallbackIcon)(w.value, f.value)), C = (0, p.computed)(() => (0, d.mediaFallbackLabelKey)(w.value, f.value)), I = (0, p.computed)(() => s.active.value ? { pointerEvents: "auto" } : t.interactive ? null : { pointerEvents: "none" }), T = O(() => t.element, () => t.interactive, () => t.presenting);
2275
2275
  return (t, o) => ((0, p.openBlock)(), (0, p.createElementBlock)("div", {
2276
2276
  class: "pptx-vue-element pptx-vue-media",
2277
- style: (0, p.normalizeStyle)([u.value, C.value]),
2277
+ style: (0, p.normalizeStyle)([u.value, I.value]),
2278
2278
  "data-element-id": e.element.id,
2279
2279
  "data-pptx-element": e.interactive || e.marked ? "true" : void 0
2280
2280
  }, [
2281
- (0, p.unref)(I) ? ((0, p.openBlock)(), (0, p.createElementBlock)("div", {
2281
+ (0, p.unref)(T) ? ((0, p.openBlock)(), (0, p.createElementBlock)("div", {
2282
2282
  key: 0,
2283
2283
  "aria-hidden": "true",
2284
2284
  "data-pptx-hit-target": "true",
2285
- style: (0, p.normalizeStyle)((0, p.unref)(I))
2285
+ style: (0, p.normalizeStyle)((0, p.unref)(T))
2286
2286
  }, null, 4)) : (0, p.createCommentVNode)("", !0),
2287
2287
  h.value && "video" === f.value ? ((0, p.openBlock)(), (0, p.createElementBlock)("iframe", {
2288
2288
  key: 1,
@@ -2347,14 +2347,14 @@ var xn = ["data-element-id", "data-pptx-element"], Sn = [
2347
2347
  }, [((0, p.openBlock)(), (0, p.createElementBlock)("svg", Cn, [((0, p.openBlock)(!0), (0, p.createElementBlock)(p.Fragment, null, (0, p.renderList)(E.value, (e) => ((0, p.openBlock)(), (0, p.createElementBlock)("path", {
2348
2348
  key: e,
2349
2349
  d: e
2350
- }, null, 8, In))), 128))])), B.value && "missing" === w.value.badge ? ((0, p.openBlock)(), (0, p.createElementBlock)("span", Pn, (0, p.toDisplayString)((0, p.unref)(n)(B.value)), 1)) : (0, p.createCommentVNode)("", !0)], 10, Bn)) : (0, p.createCommentVNode)("", !0)], 64)) : "none" !== w.value.placeholder ? ((0, p.openBlock)(), (0, p.createElementBlock)("div", {
2350
+ }, null, 8, In))), 128))])), C.value && "missing" === w.value.badge ? ((0, p.openBlock)(), (0, p.createElementBlock)("span", Pn, (0, p.toDisplayString)((0, p.unref)(n)(C.value)), 1)) : (0, p.createCommentVNode)("", !0)], 10, Bn)) : (0, p.createCommentVNode)("", !0)], 64)) : "none" !== w.value.placeholder ? ((0, p.openBlock)(), (0, p.createElementBlock)("div", {
2351
2351
  key: 5,
2352
2352
  class: "pptx-vue-placeholder pptx-vue-media-placeholder",
2353
2353
  "data-pptx-media-chrome": w.value.placeholder
2354
2354
  }, [E.value.length > 0 ? ((0, p.openBlock)(), (0, p.createElementBlock)("svg", Dn, [((0, p.openBlock)(!0), (0, p.createElementBlock)(p.Fragment, null, (0, p.renderList)(E.value, (e) => ((0, p.openBlock)(), (0, p.createElementBlock)("path", {
2355
2355
  key: e,
2356
2356
  d: e
2357
- }, null, 8, zn))), 128))])) : (0, p.createCommentVNode)("", !0), B.value ? ((0, p.openBlock)(), (0, p.createElementBlock)("span", An, (0, p.toDisplayString)((0, p.unref)(n)(B.value)), 1)) : (0, p.createCommentVNode)("", !0)], 8, Tn)) : (0, p.createCommentVNode)("", !0),
2357
+ }, null, 8, zn))), 128))])) : (0, p.createCommentVNode)("", !0), C.value ? ((0, p.openBlock)(), (0, p.createElementBlock)("span", An, (0, p.toDisplayString)((0, p.unref)(n)(C.value)), 1)) : (0, p.createCommentVNode)("", !0)], 8, Tn)) : (0, p.createCommentVNode)("", !0),
2358
2358
  (0, p.unref)(s).active.value ? ((0, p.openBlock)(), (0, p.createElementBlock)("button", {
2359
2359
  key: 6,
2360
2360
  type: "button",
@@ -2394,8 +2394,8 @@ var xn = ["data-element-id", "data-pptx-element"], Sn = [
2394
2394
  },
2395
2395
  setup(e) {
2396
2396
  const t = e, n = (0, p.computed)(() => ({
2397
- ...(0, d.buildEquationBlockStyle)(z(t.element)),
2398
- ...T(t.element, t.zIndex)
2397
+ ...(0, d.buildEquationBlockStyle)(I(t.element)),
2398
+ ...B(t.element, t.zIndex)
2399
2399
  })), l = O(() => t.element, () => t.interactive, () => t.presenting), o = (0, p.computed)(() => {
2400
2400
  const e = t.element;
2401
2401
  if (!(0, k.hasTextProperties)(e)) return [];
@@ -2499,10 +2499,10 @@ var xn = ["data-element-id", "data-pptx-element"], Sn = [
2499
2499
  presenting: { type: Boolean }
2500
2500
  },
2501
2501
  setup(e) {
2502
- const t = e, n = (0, p.computed)(() => T(t.element, t.zIndex)), l = O(() => t.element, () => t.interactive, () => t.presenting), o = (0, p.computed)(() => (0, k.isInkElement)(t.element) ? t.element : void 0), a = (0, p.computed)(() => Math.max(t.element.width, 1)), r = (0, p.computed)(() => Math.max(t.element.height, 1)), i = (0, p.computed)(() => {
2502
+ const t = e, n = (0, p.computed)(() => B(t.element, t.zIndex)), l = O(() => t.element, () => t.interactive, () => t.presenting), o = (0, p.computed)(() => (0, k.isInkElement)(t.element) ? t.element : void 0), a = (0, p.computed)(() => Math.max(t.element.width, 1)), r = (0, p.computed)(() => Math.max(t.element.height, 1)), i = (0, p.computed)(() => {
2503
2503
  const e = o.value;
2504
2504
  return e ? (0, d.buildInkGroupStrokes)(e, {
2505
- color: P,
2505
+ color: E,
2506
2506
  width: 1
2507
2507
  }) : [];
2508
2508
  }), s = (0, p.computed)(() => t.replay && o.value ? (0, d.getInkReplayStyles)(o.value) : []);
@@ -2620,7 +2620,7 @@ var tl = ["data-element-id"], nl = ["src", "alt"], ll = {
2620
2620
  presenting: { type: Boolean }
2621
2621
  },
2622
2622
  setup(e) {
2623
- const t = e, { t: n } = c.useI18n(), l = (0, p.computed)(() => T(t.element, t.zIndex)), o = O(() => t.element, () => t.interactive, () => t.presenting), a = (0, p.computed)(() => "model3d" === t.element.type ? t.element : void 0), r = (0, p.computed)(() => {
2623
+ const t = e, { t: n } = c.useI18n(), l = (0, p.computed)(() => B(t.element, t.zIndex)), o = O(() => t.element, () => t.interactive, () => t.presenting), a = (0, p.computed)(() => "model3d" === t.element.type ? t.element : void 0), r = (0, p.computed)(() => {
2624
2624
  const e = a.value;
2625
2625
  if (e) return e.posterImage ?? e.imageData;
2626
2626
  }), i = (0, p.ref)(null), { mounted: m } = el({
@@ -2714,7 +2714,7 @@ var tl = ["data-element-id"], nl = ["src", "alt"], ll = {
2714
2714
  presenting: { type: Boolean }
2715
2715
  },
2716
2716
  setup(e) {
2717
- const t = e, { t: n } = c.useI18n(), l = (0, p.computed)(() => T(t.element, t.zIndex)), o = O(() => t.element, () => t.interactive, () => t.presenting), a = (0, p.computed)(() => (0, d.oleActionsVisible)((0, d.mediaSurfaceOf)({
2717
+ const t = e, { t: n } = c.useI18n(), l = (0, p.computed)(() => B(t.element, t.zIndex)), o = O(() => t.element, () => t.interactive, () => t.presenting), a = (0, p.computed)(() => (0, d.oleActionsVisible)((0, d.mediaSurfaceOf)({
2718
2718
  interactive: !0 === t.interactive,
2719
2719
  presenting: !0 === t.presenting
2720
2720
  }))), r = (0, p.computed)(() => "ole" === t.element.type ? t.element : void 0), i = (0, p.computed)(() => {
@@ -2723,15 +2723,15 @@ var tl = ["data-element-id"], nl = ["src", "alt"], ll = {
2723
2723
  }), s = (0, p.computed)(() => (0, d.getOleTypeColor)(i.value)), u = (0, p.computed)(() => (0, d.getOleTypeLabel)(i.value)), m = (0, p.computed)(() => (0, d.getOleIconShapes)(i.value)), v = (0, p.computed)(() => r.value?.previewImageData), f = (0, p.computed)(() => r.value?.fileName), h = (0, p.computed)(() => r.value?.oleEmbeddedData), y = (0, p.computed)(() => r.value?.oleEmbeddedFileName ?? f.value ?? `${u.value}`), g = (0, p.computed)(() => r.value ? (0, d.getOleDisplayName)(r.value) : u.value), k = (0, p.computed)(() => (0, d.formatBytes)(r.value?.oleEmbeddedByteSize)), x = (0, p.computed)(() => r.value?.oleEmbeddedMimeType), S = (0, p.computed)(() => Boolean(h.value) && (0, d.isBrowserOpenableMime)(x.value)), b = (0, p.computed)(() => r.value?.oleProgId), w = (0, p.computed)(() => {
2724
2724
  const e = [u.value], t = r.value?.oleEmbeddedFileName ?? f.value;
2725
2725
  return t && e.push(t), k.value && e.push(k.value), b.value && e.push(b.value), e;
2726
- }), E = (0, p.computed)(() => w.value.join("\n")), B = (0, p.computed)(() => r.value ? (0, d.getOleAriaLabel)(r.value) : u.value);
2727
- function C() {
2726
+ }), E = (0, p.computed)(() => w.value.join("\n")), C = (0, p.computed)(() => r.value ? (0, d.getOleAriaLabel)(r.value) : u.value);
2727
+ function I() {
2728
2728
  const e = h.value;
2729
2729
  e && (0, d.openUrlInNewTab)(e);
2730
2730
  }
2731
- function I(e) {
2731
+ function P(e) {
2732
2732
  e.stopPropagation();
2733
2733
  }
2734
- const P = (0, p.computed)(() => (0, d.getOleBadgeLabel)(i.value)), D = (0, p.computed)(() => ({
2734
+ const T = (0, p.computed)(() => (0, d.getOleBadgeLabel)(i.value)), D = (0, p.computed)(() => ({
2735
2735
  border: `2px solid ${s.value}33`,
2736
2736
  borderRadius: "6px",
2737
2737
  backgroundColor: `${s.value}0d`
@@ -2741,7 +2741,7 @@ var tl = ["data-element-id"], nl = ["src", "alt"], ll = {
2741
2741
  style: (0, p.normalizeStyle)(l.value),
2742
2742
  "data-element-id": e.element.id,
2743
2743
  role: "group",
2744
- "aria-label": B.value,
2744
+ "aria-label": C.value,
2745
2745
  title: E.value
2746
2746
  }, [
2747
2747
  (0, p.unref)(o) ? ((0, p.openBlock)(), (0, p.createElementBlock)("div", {
@@ -2752,7 +2752,7 @@ var tl = ["data-element-id"], nl = ["src", "alt"], ll = {
2752
2752
  }, null, 4)) : (0, p.createCommentVNode)("", !0),
2753
2753
  v.value ? ((0, p.openBlock)(), (0, p.createElementBlock)("div", il, [(0, p.createElementVNode)("img", {
2754
2754
  src: v.value,
2755
- alt: B.value,
2755
+ alt: C.value,
2756
2756
  class: "pptx-vue-ole-img",
2757
2757
  draggable: "false"
2758
2758
  }, null, 8, sl), ((0, p.openBlock)(), (0, p.createElementBlock)("svg", ul, [(0, p.createElementVNode)("rect", {
@@ -2767,9 +2767,9 @@ var tl = ["data-element-id"], nl = ["src", "alt"], ll = {
2767
2767
  y: "16",
2768
2768
  "text-anchor": "middle",
2769
2769
  fill: "white",
2770
- "font-size": P.value.length > 4 ? 6 : 10,
2770
+ "font-size": T.value.length > 4 ? 6 : 10,
2771
2771
  "font-weight": "bold"
2772
- }, (0, p.toDisplayString)(P.value), 9, dl)]))])) : ((0, p.openBlock)(), (0, p.createElementBlock)("div", {
2772
+ }, (0, p.toDisplayString)(T.value), 9, dl)]))])) : ((0, p.openBlock)(), (0, p.createElementBlock)("div", {
2773
2773
  key: 2,
2774
2774
  class: "pptx-vue-ole-placeholder",
2775
2775
  style: (0, p.normalizeStyle)(D.value)
@@ -2793,9 +2793,9 @@ var tl = ["data-element-id"], nl = ["src", "alt"], ll = {
2793
2793
  h.value && a.value ? ((0, p.openBlock)(), (0, p.createElementBlock)("div", {
2794
2794
  key: 3,
2795
2795
  class: "pptx-vue-ole-actions",
2796
- onPointerdown: I,
2797
- onMousedown: I,
2798
- onClick: I
2796
+ onPointerdown: P,
2797
+ onMousedown: P,
2798
+ onClick: P
2799
2799
  }, [
2800
2800
  k.value ? ((0, p.openBlock)(), (0, p.createElementBlock)("span", yl, (0, p.toDisplayString)(k.value), 1)) : (0, p.createCommentVNode)("", !0),
2801
2801
  (0, p.createElementVNode)("a", {
@@ -2811,7 +2811,7 @@ var tl = ["data-element-id"], nl = ["src", "alt"], ll = {
2811
2811
  class: "pptx-vue-ole-action",
2812
2812
  "aria-label": (0, p.unref)(n)("pptx.ole.openName", { name: y.value }),
2813
2813
  title: (0, p.unref)(n)("pptx.ole.openName", { name: y.value }),
2814
- onClick: C
2814
+ onClick: I
2815
2815
  }, (0, p.toDisplayString)((0, p.unref)(n)("pptx.ole.open")), 9, kl)) : (0, p.createCommentVNode)("", !0)
2816
2816
  ], 32)) : (0, p.createCommentVNode)("", !0)
2817
2817
  ], 12, rl));
@@ -3043,24 +3043,24 @@ var Dl = ["aria-label", "onClick"], zl = (0, p.defineComponent)({
3043
3043
  function i(e) {
3044
3044
  return e ? r.value.get(e) : void 0;
3045
3045
  }
3046
- const s = (0, p.computed)(() => (0, d.resolvePalette)(l.value)), u = (0, p.computed)(() => l.value?.style ?? "flat"), m = (0, p.computed)(() => l.value?.chrome), v = (0, p.computed)(() => T(t.element, t.zIndex)), f = (0, p.computed)(() => t.interactive ? null : { pointerEvents: "none" }), h = O(() => t.element, () => t.interactive, () => t.presenting), y = (0, p.computed)(() => (0, d.buildChromeStyle)(m.value)), g = (0, p.computed)(() => l.value?.drawingShapes ?? []), x = (0, p.computed)(() => g.value.length > 0), S = (0, p.computed)(() => (0, d.resolveRevealedSmartArtNodes)(o.value, t.animationState, l.value?.presLayoutVars)), b = (0, p.computed)(() => S.value.nodes), w = (0, p.computed)(() => 0 === g.value.length ? g.value : (0, d.resolveRevealedDrawingShapes)(g.value, o.value, t.animationState)), E = (0, p.computed)(() => (0, d.computeDrawingViewBox)(g.value)), B = (0, p.computed)(() => {
3046
+ const s = (0, p.computed)(() => (0, d.resolvePalette)(l.value)), u = (0, p.computed)(() => l.value?.style ?? "flat"), m = (0, p.computed)(() => l.value?.chrome), v = (0, p.computed)(() => B(t.element, t.zIndex)), f = (0, p.computed)(() => t.interactive ? null : { pointerEvents: "none" }), h = O(() => t.element, () => t.interactive, () => t.presenting), y = (0, p.computed)(() => (0, d.buildChromeStyle)(m.value)), g = (0, p.computed)(() => l.value?.drawingShapes ?? []), x = (0, p.computed)(() => g.value.length > 0), S = (0, p.computed)(() => (0, d.resolveRevealedSmartArtNodes)(o.value, t.animationState, l.value?.presLayoutVars)), b = (0, p.computed)(() => S.value.nodes), w = (0, p.computed)(() => 0 === g.value.length ? g.value : (0, d.resolveRevealedDrawingShapes)(g.value, o.value, t.animationState)), E = (0, p.computed)(() => (0, d.computeDrawingViewBox)(g.value)), C = (0, p.computed)(() => {
3047
3047
  const e = w.value, n = (0, d.resolveRevealedDrawingShapeNodeIds)(g.value, e, o.value);
3048
3048
  return (0, d.projectDrawingShapes)(t.element.id, e, E.value, s.value, u.value).map((e, t) => ({
3049
3049
  ...e,
3050
3050
  nodeId: n[t]
3051
3051
  }));
3052
3052
  });
3053
- function C(e) {
3053
+ function I(e) {
3054
3054
  return e.textLines.map((e) => e.text).join(" ");
3055
3055
  }
3056
- const I = (0, p.computed)(() => (0, d.styleShadowFilter)(u.value)), P = (0, p.computed)(() => {
3056
+ const P = (0, p.computed)(() => (0, d.styleShadowFilter)(u.value)), T = (0, p.computed)(() => {
3057
3057
  if (x.value || 0 === o.value.length) return;
3058
3058
  const e = l.value;
3059
3059
  return (0, d.computeSmartArtElementLayout)(e ?? {}, b.value, {
3060
3060
  width: t.element.width,
3061
3061
  height: t.element.height
3062
3062
  }, s.value, u.value, t.element.id);
3063
- }), D = (0, p.computed)(() => (P.value?.connectors ?? []).map((e) => (0, d.smartArtConnectorPaint)(e))), z = (0, p.computed)(() => (P.value?.nodes ?? []).map((e) => (0, d.smartArtNodeLabel)(e))), A = (0, p.computed)(() => 0 === o.value.length && !x.value), M = Il(), F = (0, p.computed)(() => Boolean(M?.canEdit()) && (0, d.canDrillDown)(t.element)), L = (0, p.computed)(() => P.value ? bl(b.value) : []), R = Bl(), V = (0, p.ref)(null), N = (0, p.ref)(null), _ = (0, p.ref)(null), { hoveredNodeId: j, hoveredNodeRect: U, onMouseMove: $, onMouseLeave: W } = Tl(V);
3063
+ }), D = (0, p.computed)(() => (T.value?.connectors ?? []).map((e) => (0, d.smartArtConnectorPaint)(e))), z = (0, p.computed)(() => (T.value?.nodes ?? []).map((e) => (0, d.smartArtNodeLabel)(e))), A = (0, p.computed)(() => 0 === o.value.length && !x.value), M = Il(), F = (0, p.computed)(() => Boolean(M?.canEdit()) && (0, d.canDrillDown)(t.element)), L = (0, p.computed)(() => T.value ? bl(b.value) : []), R = Bl(), V = (0, p.ref)(null), N = (0, p.ref)(null), _ = (0, p.ref)(null), { hoveredNodeId: j, hoveredNodeRect: U, onMouseMove: $, onMouseLeave: W } = Tl(V);
3064
3064
  function H(e) {
3065
3065
  $(e, _.value);
3066
3066
  }
@@ -3124,7 +3124,7 @@ var Dl = ["aria-label", "onClick"], zl = (0, p.defineComponent)({
3124
3124
  "data-testid": t.interactive ? "smartart-drawing-shapes" : void 0,
3125
3125
  viewBox: `0 0 ${E.value.width} ${E.value.height}`,
3126
3126
  preserveAspectRatio: "xMidYMid meet"
3127
- }, [((0, p.openBlock)(!0), (0, p.createElementBlock)(p.Fragment, null, (0, p.renderList)(B.value, (e) => ((0, p.openBlock)(), (0, p.createElementBlock)("g", {
3127
+ }, [((0, p.openBlock)(!0), (0, p.createElementBlock)(p.Fragment, null, (0, p.renderList)(C.value, (e) => ((0, p.openBlock)(), (0, p.createElementBlock)("g", {
3128
3128
  key: e.key,
3129
3129
  class: (0, p.normalizeClass)({ "pptx-vue-smartart-editable": F.value && e.nodeId }),
3130
3130
  "data-node-id": e.nodeId,
@@ -3132,9 +3132,9 @@ var Dl = ["aria-label", "onClick"], zl = (0, p.defineComponent)({
3132
3132
  tabindex: F.value && e.nodeId ? 0 : void 0,
3133
3133
  role: i(e.nodeId) ? "img" : void 0,
3134
3134
  "aria-label": i(e.nodeId),
3135
- style: (0, p.normalizeStyle)(I.value ? { filter: I.value } : void 0),
3136
- onDblclick: (t) => K(e.nodeId, C(e), t),
3137
- onKeydown: (0, p.withKeys)((0, p.withModifiers)((t) => K(e.nodeId, C(e), t), ["prevent"]), ["enter"])
3135
+ style: (0, p.normalizeStyle)(P.value ? { filter: P.value } : void 0),
3136
+ onDblclick: (t) => K(e.nodeId, I(e), t),
3137
+ onKeydown: (0, p.withKeys)((0, p.withModifiers)((t) => K(e.nodeId, I(e), t), ["prevent"]), ["enter"])
3138
3138
  }, [
3139
3139
  i(e.nodeId) ? ((0, p.openBlock)(), (0, p.createElementBlock)("title", Rl, (0, p.toDisplayString)(i(e.nodeId)), 1)) : (0, p.createCommentVNode)("", !0),
3140
3140
  e.gradient ? ((0, p.openBlock)(), (0, p.createElementBlock)("defs", Vl, ["radial" === e.gradient.kind ? ((0, p.openBlock)(), (0, p.createElementBlock)("radialGradient", {
@@ -3218,14 +3218,14 @@ var Dl = ["aria-label", "onClick"], zl = (0, p.defineComponent)({
3218
3218
  x: e.textX,
3219
3219
  y: t.y
3220
3220
  }, (0, p.toDisplayString)(t.text), 9, ql))), 128))], 8, Kl)) : (0, p.createCommentVNode)("", !0)
3221
- ], 46, Ll))), 128))], 8, Fl)) : P.value ? ((0, p.openBlock)(), (0, p.createElementBlock)("svg", {
3221
+ ], 46, Ll))), 128))], 8, Fl)) : T.value ? ((0, p.openBlock)(), (0, p.createElementBlock)("svg", {
3222
3222
  key: 2,
3223
3223
  class: "pptx-vue-smartart-svg",
3224
- viewBox: P.value.viewBox,
3224
+ viewBox: T.value.viewBox,
3225
3225
  preserveAspectRatio: "xMidYMid meet",
3226
- "data-testid": t.interactive ? `smartart-${P.value.family}` : void 0,
3227
- "data-layout-family": P.value.family
3228
- }, [((0, p.openBlock)(!0), (0, p.createElementBlock)(p.Fragment, null, (0, p.renderList)(P.value.connectors, (e, t) => ((0, p.openBlock)(), (0, p.createElementBlock)("path", {
3226
+ "data-testid": t.interactive ? `smartart-${T.value.family}` : void 0,
3227
+ "data-layout-family": T.value.family
3228
+ }, [((0, p.openBlock)(!0), (0, p.createElementBlock)(p.Fragment, null, (0, p.renderList)(T.value.connectors, (e, t) => ((0, p.openBlock)(), (0, p.createElementBlock)("path", {
3229
3229
  key: e.key,
3230
3230
  d: D.value[t].d,
3231
3231
  fill: "none",
@@ -3233,7 +3233,7 @@ var Dl = ["aria-label", "onClick"], zl = (0, p.defineComponent)({
3233
3233
  "stroke-width": D.value[t].strokeWidth,
3234
3234
  opacity: D.value[t].opacity,
3235
3235
  "stroke-dasharray": D.value[t].dash
3236
- }, null, 8, Xl))), 128)), ((0, p.openBlock)(!0), (0, p.createElementBlock)(p.Fragment, null, (0, p.renderList)(P.value.nodes, (e, t) => ((0, p.openBlock)(), (0, p.createElementBlock)("g", {
3236
+ }, null, 8, Xl))), 128)), ((0, p.openBlock)(!0), (0, p.createElementBlock)(p.Fragment, null, (0, p.renderList)(T.value.nodes, (e, t) => ((0, p.openBlock)(), (0, p.createElementBlock)("g", {
3237
3237
  key: e.key,
3238
3238
  class: (0, p.normalizeClass)({ "pptx-vue-smartart-editable": F.value && L.value[t] }),
3239
3239
  "data-node-id": L.value[t],
@@ -3241,7 +3241,7 @@ var Dl = ["aria-label", "onClick"], zl = (0, p.defineComponent)({
3241
3241
  tabindex: F.value && L.value[t] ? 0 : void 0,
3242
3242
  role: i(L.value[t]) ? "img" : void 0,
3243
3243
  "aria-label": i(L.value[t]),
3244
- style: (0, p.normalizeStyle)(P.value.shadowFilter ? { filter: P.value.shadowFilter } : void 0),
3244
+ style: (0, p.normalizeStyle)(T.value.shadowFilter ? { filter: T.value.shadowFilter } : void 0),
3245
3245
  onDblclick: (n) => K(L.value[t], e.text, n),
3246
3246
  onKeydown: (0, p.withKeys)((0, p.withModifiers)((n) => K(L.value[t], e.text, n), ["prevent"]), ["enter"])
3247
3247
  }, [
@@ -3351,7 +3351,7 @@ var Dl = ["aria-label", "onClick"], zl = (0, p.defineComponent)({
3351
3351
  textStyleOverrideCss: {}
3352
3352
  },
3353
3353
  setup(e) {
3354
- const t = e, { t: n } = c.useI18n(), l = (0, p.computed)(() => "smartArt" === t.element.type ? t.element.smartArtData : void 0), o = V(), a = (0, p.computed)(() => (0, d.resolveSmartArtThreeViewSpec)(t.element, o.value.smartArt3D)), r = (0, p.computed)(() => (0, d.elementInLocalFrame)(t.element)), i = (0, p.ref)(null), s = (0, p.ref)(null), u = (0, p.computed)(() => T(t.element, t.zIndex)), m = O(() => t.element, () => t.interactive, () => t.presenting), v = Il(), f = (0, p.computed)(() => Boolean(v?.canEdit())), h = Bl(), y = (0, p.computed)(() => (0, d.resolvePalette)(l.value)), g = (0, p.ref)(null), { hoveredNodeId: k, hoveredNodeRect: x, onMouseMove: S, onMouseLeave: b } = Tl(i), w = (0, p.computed)(() => {
3354
+ const t = e, { t: n } = c.useI18n(), l = (0, p.computed)(() => "smartArt" === t.element.type ? t.element.smartArtData : void 0), o = V(), a = (0, p.computed)(() => (0, d.resolveSmartArtThreeViewSpec)(t.element, o.value.smartArt3D)), r = (0, p.computed)(() => (0, d.elementInLocalFrame)(t.element)), i = (0, p.ref)(null), s = (0, p.ref)(null), u = (0, p.computed)(() => B(t.element, t.zIndex)), m = O(() => t.element, () => t.interactive, () => t.presenting), v = Il(), f = (0, p.computed)(() => Boolean(v?.canEdit())), h = Bl(), y = (0, p.computed)(() => (0, d.resolvePalette)(l.value)), g = (0, p.ref)(null), { hoveredNodeId: k, hoveredNodeRect: x, onMouseMove: S, onMouseLeave: b } = Tl(i), w = (0, p.computed)(() => {
3355
3355
  const e = x.value, t = i.value;
3356
3356
  if (!e || !t) return;
3357
3357
  const n = Math.max(0, t.clientWidth - 168), l = Math.max(0, t.clientHeight - 40);
@@ -3366,7 +3366,7 @@ var Dl = ["aria-label", "onClick"], zl = (0, p.defineComponent)({
3366
3366
  const t = e.relatedTarget, n = i.value;
3367
3367
  t instanceof Node && n?.contains(t) && !(t instanceof HTMLTextAreaElement) || b();
3368
3368
  }
3369
- function B(e) {
3369
+ function C(e) {
3370
3370
  const t = e.currentTarget, n = i.value;
3371
3371
  if (!(t instanceof Element && n)) return;
3372
3372
  const o = (0, d.smartArtNodeAtPoint)(t, e.clientX, e.clientY);
@@ -3380,7 +3380,7 @@ var Dl = ["aria-label", "onClick"], zl = (0, p.defineComponent)({
3380
3380
  s.value?.focus(), s.value?.select();
3381
3381
  }));
3382
3382
  }
3383
- function C() {
3383
+ function I() {
3384
3384
  const e = h.editingNodeId.value, n = l.value;
3385
3385
  e && n && v && (0, d.shouldCommitSmartArtNodeText)(n, e, h.draft.value) && v.commit(t.element.id, e, h.draft.value), h.cancel();
3386
3386
  }
@@ -3422,7 +3422,7 @@ var Dl = ["aria-label", "onClick"], zl = (0, p.defineComponent)({
3422
3422
  f.value ? ((0, p.openBlock)(), (0, p.createElementBlock)(p.Fragment, { key: 1 }, [
3423
3423
  (0, p.createElementVNode)("div", {
3424
3424
  class: "pptx-vue-smartart-3d-hittest",
3425
- onDblclick: (0, p.withModifiers)(B, ["stop"]),
3425
+ onDblclick: (0, p.withModifiers)(C, ["stop"]),
3426
3426
  onMousemove: o[0] || (o[0] = (e) => (0, p.unref)(S)(e, g.value)),
3427
3427
  onMouseleave: E
3428
3428
  }, [(0, p.createVNode)(io, {
@@ -3460,9 +3460,9 @@ var Dl = ["aria-label", "onClick"], zl = (0, p.defineComponent)({
3460
3460
  onMousedown: o[4] || (o[4] = (0, p.withModifiers)(() => {}, ["stop"])),
3461
3461
  onClick: o[5] || (o[5] = (0, p.withModifiers)(() => {}, ["stop"])),
3462
3462
  onDblclick: o[6] || (o[6] = (0, p.withModifiers)(() => {}, ["stop"])),
3463
- onBlur: C,
3463
+ onBlur: I,
3464
3464
  onKeydown: [
3465
- (0, p.withKeys)((0, p.withModifiers)(C, ["prevent"]), ["enter"]),
3465
+ (0, p.withKeys)((0, p.withModifiers)(I, ["prevent"]), ["enter"]),
3466
3466
  o[7] || (o[7] = (0, p.withKeys)((0, p.withModifiers)((e) => (0, p.unref)(h).cancel(), ["prevent"]), ["esc"])),
3467
3467
  o[8] || (o[8] = (0, p.withModifiers)(() => {}, ["stop"]))
3468
3468
  ]
@@ -3701,7 +3701,7 @@ var wo = b((0, p.defineComponent)({
3701
3701
  fontScheme: e?.fontScheme,
3702
3702
  formatScheme: e?.formatScheme
3703
3703
  }),
3704
- ...T(t.element, t.zIndex)
3704
+ ...B(t.element, t.zIndex)
3705
3705
  };
3706
3706
  }), l = (0, p.computed)(() => t.interactive ? null : { pointerEvents: "none" }), o = O(() => t.element, () => t.interactive, () => t.presenting), a = (0, p.inject)(ko, void 0), r = (0, p.computed)(() => {
3707
3707
  const e = t.element;
@@ -3780,25 +3780,25 @@ var wo = b((0, p.defineComponent)({
3780
3780
  function E(e) {
3781
3781
  w.value = e instanceof HTMLInputElement ? e : null;
3782
3782
  }
3783
- const B = (0, p.computed)(() => t.interactive && (h?.canEdit() ?? !1) && (0, d.canDrillDown)(t.element));
3784
- function C(e) {
3783
+ const C = (0, p.computed)(() => t.interactive && (h?.canEdit() ?? !1) && (0, d.canDrillDown)(t.element));
3784
+ function I(e) {
3785
3785
  const t = S.value;
3786
3786
  return null !== t && t.rowIndex === e.rowIndex && t.colIndex === e.colIndex;
3787
3787
  }
3788
- function I(e, t) {
3789
- B.value && (e.stopPropagation(), function(e) {
3788
+ function P(e, t) {
3789
+ C.value && (e.stopPropagation(), function(e) {
3790
3790
  b.value = " " === e.text ? "" : e.text, S.value = {
3791
3791
  rowIndex: e.rowIndex,
3792
3792
  colIndex: e.colIndex
3793
3793
  };
3794
3794
  }(t));
3795
3795
  }
3796
- function P() {
3796
+ function T() {
3797
3797
  const e = S.value;
3798
3798
  e && (S.value = null, h?.commit(t.element.id, e.rowIndex, e.colIndex, b.value));
3799
3799
  }
3800
3800
  function D(e) {
3801
- e.stopPropagation(), "Enter" === e.key || "Tab" === e.key ? (e.preventDefault(), P()) : "Escape" === e.key && (e.preventDefault(), S.value = null);
3801
+ e.stopPropagation(), "Enter" === e.key || "Tab" === e.key ? (e.preventDefault(), T()) : "Escape" === e.key && (e.preventDefault(), S.value = null);
3802
3802
  }
3803
3803
  let z = null;
3804
3804
  return (0, p.watch)(S, (e) => {
@@ -3832,7 +3832,7 @@ var wo = b((0, p.defineComponent)({
3832
3832
  (0, p.createVNode)(wo, {
3833
3833
  "column-widths": r.value.columnWidths,
3834
3834
  rows: r.value.rows,
3835
- editable: B.value,
3835
+ editable: C.value,
3836
3836
  onResizeColumns: k,
3837
3837
  onResizeRow: x
3838
3838
  }, {
@@ -3850,13 +3850,13 @@ var wo = b((0, p.defineComponent)({
3850
3850
  class: (0, p.normalizeClass)(["pptx-vue-table__cell", {
3851
3851
  "pptx-vue-table__cell--selected": (0, p.unref)(g).isCellSelected(e.rowIndex, e.colIndex),
3852
3852
  "pptx-vue-table__cell--in-selection": (0, p.unref)(g).isCellInSelection(e.rowIndex, e.colIndex) && !(0, p.unref)(g).isCellSelected(e.rowIndex, e.colIndex),
3853
- "pptx-vue-table__cell--editable": B.value
3853
+ "pptx-vue-table__cell--editable": C.value
3854
3854
  }]),
3855
3855
  colspan: e.colSpan,
3856
3856
  rowspan: e.rowSpan,
3857
3857
  style: (0, p.normalizeStyle)(v(e)),
3858
3858
  onPointerdown: a[5] || (a[5] = (e) => {
3859
- t = e, B.value && "extend" === (0, d.tableCellPointerIntent)({
3859
+ t = e, C.value && "extend" === (0, d.tableCellPointerIntent)({
3860
3860
  isTableCell: !0,
3861
3861
  shiftKey: t.shiftKey,
3862
3862
  elementSelected: null !== g.activeSelection.value,
@@ -3866,9 +3866,9 @@ var wo = b((0, p.defineComponent)({
3866
3866
  var t;
3867
3867
  }),
3868
3868
  onClick: (t) => function(e, t) {
3869
- B.value && (e.stopPropagation(), g.selectCell(t.rowIndex, t.colIndex, e.shiftKey));
3869
+ C.value && (e.stopPropagation(), g.selectCell(t.rowIndex, t.colIndex, e.shiftKey));
3870
3870
  }(t, e),
3871
- onDblclick: (t) => I(t, e)
3871
+ onDblclick: (t) => P(t, e)
3872
3872
  }, [e.diagonals ? ((0, p.openBlock)(), (0, p.createElementBlock)("svg", Io, [e.diagonals.diagDownColor && e.diagonals.diagDownWidth ? ((0, p.openBlock)(), (0, p.createElementBlock)("line", {
3873
3873
  key: 0,
3874
3874
  x1: "0",
@@ -3887,7 +3887,7 @@ var wo = b((0, p.defineComponent)({
3887
3887
  stroke: e.diagonals.diagUpColor,
3888
3888
  "stroke-width": e.diagonals.diagUpWidth,
3889
3889
  style: (0, p.normalizeStyle)({ strokeWidth: (0, p.unref)(d.screenStrokeWidth)(e.diagonals.diagUpWidth) })
3890
- }, null, 12, To)) : (0, p.createCommentVNode)("", !0)])) : (0, p.createCommentVNode)("", !0), C(e) ? (0, p.withDirectives)(((0, p.openBlock)(), (0, p.createElementBlock)("input", {
3890
+ }, null, 12, To)) : (0, p.createCommentVNode)("", !0)])) : (0, p.createCommentVNode)("", !0), I(e) ? (0, p.withDirectives)(((0, p.openBlock)(), (0, p.createElementBlock)("input", {
3891
3891
  key: 1,
3892
3892
  ref_for: !0,
3893
3893
  ref: E,
@@ -3898,7 +3898,7 @@ var wo = b((0, p.defineComponent)({
3898
3898
  onMousedown: a[2] || (a[2] = (0, p.withModifiers)(() => {}, ["stop"])),
3899
3899
  onClick: a[3] || (a[3] = (0, p.withModifiers)(() => {}, ["stop"])),
3900
3900
  onDblclick: a[4] || (a[4] = (0, p.withModifiers)(() => {}, ["stop"])),
3901
- onBlur: P,
3901
+ onBlur: T,
3902
3902
  onKeydown: D
3903
3903
  }, null, 544)), [[p.vModelText, b.value]]) : e.paragraphs ? ((0, p.openBlock)(!0), (0, p.createElementBlock)(p.Fragment, { key: 2 }, (0, p.renderList)(e.paragraphs, (t, n) => ((0, p.openBlock)(), (0, p.createElementBlock)("div", {
3904
3904
  key: `${e.key}-para-${n}`,
@@ -4035,10 +4035,10 @@ var No = ["d", "fill"], _o = [
4035
4035
  zIndex: {}
4036
4036
  },
4037
4037
  setup(e) {
4038
- const t = e, n = (0, p.computed)(() => (0, k.hasTextProperties)(t.element) ? t.element : null), l = (0, p.computed)(() => n.value?.textStyle?.textWarpPreset), o = (0, p.computed)(() => Boolean(n.value) && (0, d.shouldUseSvgWarp)(l.value)), a = (0, p.computed)(() => Math.max(t.element.width, 1)), r = (0, p.computed)(() => Math.max(t.element.height, 1)), i = E(), s = (0, p.computed)(() => {
4038
+ const t = e, n = (0, p.computed)(() => (0, k.hasTextProperties)(t.element) ? t.element : null), l = (0, p.computed)(() => n.value?.textStyle?.textWarpPreset), o = (0, p.computed)(() => Boolean(n.value) && (0, d.shouldUseSvgWarp)(l.value)), a = (0, p.computed)(() => Math.max(t.element.width, 1)), r = (0, p.computed)(() => Math.max(t.element.height, 1)), i = D(), s = (0, p.computed)(() => {
4039
4039
  const e = n.value;
4040
4040
  if (!e) return [];
4041
- const t = B(i);
4041
+ const t = z(i);
4042
4042
  return (0, d.groupIntoParagraphs)(e, (e) => {
4043
4043
  if (e.fieldType) {
4044
4044
  const n = (0, d.substituteFieldText)(e.text, e.fieldType, t, e.style?.language);
@@ -4080,10 +4080,10 @@ var No = ["d", "fill"], _o = [
4080
4080
  function w(e) {
4081
4081
  return b.value[e]?.d ?? "";
4082
4082
  }
4083
- function C(e) {
4083
+ function E(e) {
4084
4084
  return b.value[e]?.fitScale ?? 1;
4085
4085
  }
4086
- const { useGlyphEnvelope: I, glyphLines: P } = function(e) {
4086
+ const { useGlyphEnvelope: B, glyphLines: C } = function(e) {
4087
4087
  const { textEl: t, preset: n, paragraphs: l, width: o, height: a, warpAdj: r, warpAdj2: i, defaultFontFamily: s, defaultFontSize: u } = e, c = (0, p.computed)(() => l.value.length > 0 && (0, d.hasGlyphEnvelope)(n.value ?? ""));
4088
4088
  function m(e) {
4089
4089
  const n = e.style ?? {}, l = t.value?.textStyle, o = n.fontFamily ?? l?.fontFamily;
@@ -4122,7 +4122,7 @@ var No = ["d", "fill"], _o = [
4122
4122
  defaultFontFamily: d.DEFAULT_FONT_FAMILY,
4123
4123
  defaultFontSize: 24
4124
4124
  });
4125
- return (t, n) => (0, p.unref)(I) ? ((0, p.openBlock)(), (0, p.createElementBlock)("svg", {
4125
+ return (t, n) => (0, p.unref)(B) ? ((0, p.openBlock)(), (0, p.createElementBlock)("svg", {
4126
4126
  key: 0,
4127
4127
  class: "pptx-vue-wordart",
4128
4128
  width: a.value,
@@ -4131,7 +4131,7 @@ var No = ["d", "fill"], _o = [
4131
4131
  xmlns: "http://www.w3.org/2000/svg",
4132
4132
  "aria-hidden": "true",
4133
4133
  style: (0, p.normalizeStyle)({ zIndex: e.zIndex })
4134
- }, [((0, p.openBlock)(!0), (0, p.createElementBlock)(p.Fragment, null, (0, p.renderList)((0, p.unref)(P), (e) => ((0, p.openBlock)(), (0, p.createElementBlock)(p.Fragment, { key: `line-${e.lineIndex}` }, [((0, p.openBlock)(!0), (0, p.createElementBlock)(p.Fragment, null, (0, p.renderList)(e.glyphs, (t, n) => {
4134
+ }, [((0, p.openBlock)(!0), (0, p.createElementBlock)(p.Fragment, null, (0, p.renderList)((0, p.unref)(C), (e) => ((0, p.openBlock)(), (0, p.createElementBlock)(p.Fragment, { key: `line-${e.lineIndex}` }, [((0, p.openBlock)(!0), (0, p.createElementBlock)(p.Fragment, null, (0, p.renderList)(e.glyphs, (t, n) => {
4135
4135
  return (0, p.openBlock)(), (0, p.createBlock)(Ho, {
4136
4136
  key: `g-${e.lineIndex}-${n}`,
4137
4137
  glyph: t,
@@ -4170,8 +4170,8 @@ var No = ["d", "fill"], _o = [
4170
4170
  "text-anchor": v.value.textAnchor
4171
4171
  }, [((0, p.openBlock)(!0), (0, p.createElementBlock)(p.Fragment, null, (0, p.renderList)(e.segments, (e, n) => ((0, p.openBlock)(), (0, p.createElementBlock)("tspan", {
4172
4172
  key: `ts-${t}-${n}`,
4173
- fill: S(e, C(t)).fill,
4174
- "font-size": S(e, C(t)).fontSize,
4173
+ fill: S(e, E(t)).fill,
4174
+ "font-size": S(e, E(t)).fontSize,
4175
4175
  "font-weight": S(e).fontWeight,
4176
4176
  "font-style": S(e).fontStyle,
4177
4177
  "font-family": S(e).fontFamily,
@@ -4224,7 +4224,7 @@ var aa = [
4224
4224
  presenting: { type: Boolean }
4225
4225
  },
4226
4226
  setup(e) {
4227
- const t = e, { t: n } = c.useI18n(), l = (0, p.computed)(() => T(t.element, t.zIndex)), o = O(() => t.element, () => t.interactive, () => t.presenting), a = (0, p.computed)(() => (0, k.isZoomElement)(t.element) ? t.element : void 0), r = (0, p.computed)(() => a.value?.imageData), i = (0, p.computed)(() => a.value?.targetSlideIndex ?? 0), s = (0, p.computed)(() => a.value?.zoomType ?? "slide"), u = (0, p.computed)(() => a.value?.targetSectionId), m = (0, p.computed)(() => "section" === s.value ? n("pptx.zoom.sectionZoom") : n("pptx.zoom.slideZoom")), v = (0, p.inject)(na, void 0), f = (0, p.computed)(() => v?.(i.value)), h = (0, p.computed)(() => a.value ? (0, d.buildSummaryZoomView)(a.value, v, (e, t) => n(e, t ?? {})) : void 0), y = (0, p.computed)(() => ({ backgroundColor: f.value?.backgroundColor ?? "#f0f0f0" })), g = (0, p.computed)(() => void 0 !== f.value?.slideNumber ? n("pptx.notes.slideN", { n: f.value.slideNumber }) : n("pptx.notes.slideN", { n: i.value + 1 })), x = (0, p.computed)(() => f.value?.sectionName ?? u.value), S = (0, p.computed)(() => "section" === s.value && u.value ? n("pptx.zoom.ariaLabelSection", {
4227
+ const t = e, { t: n } = c.useI18n(), l = (0, p.computed)(() => B(t.element, t.zIndex)), o = O(() => t.element, () => t.interactive, () => t.presenting), a = (0, p.computed)(() => (0, k.isZoomElement)(t.element) ? t.element : void 0), r = (0, p.computed)(() => a.value?.imageData), i = (0, p.computed)(() => a.value?.targetSlideIndex ?? 0), s = (0, p.computed)(() => a.value?.zoomType ?? "slide"), u = (0, p.computed)(() => a.value?.targetSectionId), m = (0, p.computed)(() => "section" === s.value ? n("pptx.zoom.sectionZoom") : n("pptx.zoom.slideZoom")), v = (0, p.inject)(na, void 0), f = (0, p.computed)(() => v?.(i.value)), h = (0, p.computed)(() => a.value ? (0, d.buildSummaryZoomView)(a.value, v, (e, t) => n(e, t ?? {})) : void 0), y = (0, p.computed)(() => ({ backgroundColor: f.value?.backgroundColor ?? "#f0f0f0" })), g = (0, p.computed)(() => void 0 !== f.value?.slideNumber ? n("pptx.notes.slideN", { n: f.value.slideNumber }) : n("pptx.notes.slideN", { n: i.value + 1 })), x = (0, p.computed)(() => f.value?.sectionName ?? u.value), S = (0, p.computed)(() => "section" === s.value && u.value ? n("pptx.zoom.ariaLabelSection", {
4228
4228
  number: i.value + 1,
4229
4229
  section: u.value
4230
4230
  }) : n("pptx.zoom.ariaLabel", { number: i.value + 1 })), b = (0, p.inject)(ea, void 0), w = (0, p.computed)(() => Boolean(b && a.value));
@@ -4233,7 +4233,7 @@ var aa = [
4233
4233
  const e = (0, d.resolveZoomNavigationTarget)(a.value);
4234
4234
  e && b.navigateToZoomTarget(e);
4235
4235
  }
4236
- function B(e, t) {
4236
+ function C(e, t) {
4237
4237
  w.value && b && (e.preventDefault(), e.stopPropagation(), b.navigateToZoomTarget({
4238
4238
  targetSlideIndex: t.targetSlideIndex,
4239
4239
  targetSectionId: t.sectionId,
@@ -4241,10 +4241,10 @@ var aa = [
4241
4241
  transitionDurationMs: t.transitionDurationMs
4242
4242
  }));
4243
4243
  }
4244
- function C(e) {
4244
+ function I(e) {
4245
4245
  w.value && (e.stopPropagation(), E());
4246
4246
  }
4247
- function I(e) {
4247
+ function P(e) {
4248
4248
  !w.value || "Enter" !== e.key && " " !== e.key || (e.preventDefault(), e.stopPropagation(), E());
4249
4249
  }
4250
4250
  return (t, a) => ((0, p.openBlock)(), (0, p.createElementBlock)("div", {
@@ -4256,8 +4256,8 @@ var aa = [
4256
4256
  "aria-label": h.value?.ariaLabel ?? S.value,
4257
4257
  role: h.value ? "group" : w.value ? "button" : void 0,
4258
4258
  tabindex: !h.value && w.value ? 0 : void 0,
4259
- onClick: C,
4260
- onKeydown: I
4259
+ onClick: I,
4260
+ onKeydown: P
4261
4261
  }, [(0, p.unref)(o) ? ((0, p.openBlock)(), (0, p.createElementBlock)("div", {
4262
4262
  key: 0,
4263
4263
  "aria-hidden": "true",
@@ -4279,8 +4279,8 @@ var aa = [
4279
4279
  "aria-label": e.ariaLabel,
4280
4280
  role: w.value ? "button" : void 0,
4281
4281
  tabindex: w.value ? 0 : void 0,
4282
- onClick: (t) => B(t, e),
4283
- onKeydown: [(0, p.withKeys)((t) => B(t, e), ["enter"]), (0, p.withKeys)((t) => B(t, e), ["space"])]
4282
+ onClick: (t) => C(t, e),
4283
+ onKeydown: [(0, p.withKeys)((t) => C(t, e), ["enter"]), (0, p.withKeys)((t) => C(t, e), ["space"])]
4284
4284
  }, [e.imageSrc ? ((0, p.openBlock)(), (0, p.createElementBlock)("img", {
4285
4285
  key: 0,
4286
4286
  src: e.imageSrc,
@@ -4314,7 +4314,7 @@ var aa = [
4314
4314
  inlineEditingElementId: {}
4315
4315
  },
4316
4316
  setup(e) {
4317
- const t = e, n = V(), l = (0, p.computed)(() => n.value.smartArt3D), o = E(), a = (0, p.inject)(C, void 0), r = (0, p.inject)(M, () => (0, p.shallowRef)(/* @__PURE__ */ new Map()), !0), i = (0, p.computed)(() => r.value.get(t.element.id)), s = (0, p.computed)(() => (0, d.getBackgroundAnimationState)(t.element, r.value)), u = (0, p.computed)(() => (0, d.buildTextStyleOverrideCss)(t.element.id, i.value?.textStyle)), c = (0, p.computed)(() => T(t.element, t.zIndex)), m = (0, p.computed)(() => D(t.element, t.parentGroupFill, (s.value ?? i.value)?.animatesFill, (s.value ?? i.value)?.animatesStroke)), v = (0, p.computed)(() => (0, d.getGroupChildParentFill)(t.element, t.parentGroupFill)), f = (0, p.computed)(() => {
4317
+ const t = e, n = V(), l = (0, p.computed)(() => n.value.smartArt3D), o = D(), a = (0, p.inject)(A, void 0), r = (0, p.inject)(M, () => (0, p.shallowRef)(/* @__PURE__ */ new Map()), !0), i = (0, p.computed)(() => r.value.get(t.element.id)), s = (0, p.computed)(() => (0, d.getBackgroundAnimationState)(t.element, r.value)), u = (0, p.computed)(() => (0, d.buildTextStyleOverrideCss)(t.element.id, i.value?.textStyle)), c = (0, p.computed)(() => B(t.element, t.zIndex)), m = (0, p.computed)(() => C(t.element, t.parentGroupFill, (s.value ?? i.value)?.animatesFill, (s.value ?? i.value)?.animatesStroke)), v = (0, p.computed)(() => (0, d.getGroupChildParentFill)(t.element, t.parentGroupFill)), f = (0, p.computed)(() => {
4318
4318
  const e = c.value, n = m.value, l = {
4319
4319
  ...e,
4320
4320
  ...n
@@ -4324,7 +4324,7 @@ var aa = [
4324
4324
  ...(0, d.abuttingEdgeBleedStyle)(t.element, t.edgeBleed, l)
4325
4325
  };
4326
4326
  }), h = (0, p.computed)(() => (0, d.getBackgroundAnimationLayers)(t.element, f.value, s.value)), y = (0, p.computed)(() => {
4327
- const e = z(t.element), n = (0, k.hasTextProperties)(t.element) ? t.element.textStyle : void 0, l = (0, d.buildTextBody3DSceneStyle)(n, {
4327
+ const e = I(t.element), n = (0, k.hasTextProperties)(t.element) ? t.element.textStyle : void 0, l = (0, d.buildTextBody3DSceneStyle)(n, {
4328
4328
  width: t.element.width,
4329
4329
  height: t.element.height
4330
4330
  });
@@ -4337,10 +4337,10 @@ var aa = [
4337
4337
  }), g = (0, p.computed)(() => {
4338
4338
  const e = (0, k.hasShapeProperties)(t.element) ? t.element.shapeStyle : void 0;
4339
4339
  return (0, d.build3DExtrusionData)(e?.shape3d, e?.scene3d, e?.fillColor, t.element.width, t.element.height);
4340
- }), x = (0, p.computed)(() => "text" === t.element.type || "shape" === t.element.type), S = (0, p.computed)(() => "picture" === t.element.type || "image" === t.element.type), b = (0, p.computed)(() => (0, k.hasTextProperties)(t.element) && (0, d.isEquationOnlyText)(t.element.textSegments)), w = (0, p.computed)(() => (0, d.hasTextWarp)(t.element)), I = (0, p.computed)(() => {
4340
+ }), x = (0, p.computed)(() => "text" === t.element.type || "shape" === t.element.type), S = (0, p.computed)(() => "picture" === t.element.type || "image" === t.element.type), b = (0, p.computed)(() => (0, k.hasTextProperties)(t.element) && (0, d.isEquationOnlyText)(t.element.textSegments)), w = (0, p.computed)(() => (0, d.hasTextWarp)(t.element)), E = (0, p.computed)(() => {
4341
4341
  return (0, d.getOverflowSegments)(t.element, (e = a) ? (0, p.toValue)(e) : void 0);
4342
4342
  var e;
4343
- }), P = (0, p.computed)(() => (0, d.buildParagraphs)(t.element, B(o), I.value)), A = (0, p.computed)(() => P.value.some((e) => e.runs.length > 0 || void 0 !== e.bulletMarker)), F = (0, p.computed)(() => A.value ? null : (0, d.placeholderPromptDescriptor)(t.element, t.interactive && !t.presenting ? "edit" : "present")), L = (0, p.computed)(() => t.templateEditing ? "pptx-vue-template-editing" : null), R = (0, p.computed)(() => t.interactive || t.marked ? "true" : void 0), N = (0, p.computed)(() => {
4343
+ }), P = (0, p.computed)(() => (0, d.buildParagraphs)(t.element, z(o), E.value)), T = (0, p.computed)(() => P.value.some((e) => e.runs.length > 0 || void 0 !== e.bulletMarker)), F = (0, p.computed)(() => T.value ? null : (0, d.placeholderPromptDescriptor)(t.element, t.interactive && !t.presenting ? "edit" : "present")), L = (0, p.computed)(() => t.templateEditing ? "pptx-vue-template-editing" : null), R = (0, p.computed)(() => t.interactive || t.marked ? "true" : void 0), N = (0, p.computed)(() => {
4344
4344
  const e = (0, d.inlineElementPointerEvents)({
4345
4345
  interactive: !0 === t.interactive,
4346
4346
  presenting: !0 === t.presenting
@@ -4634,7 +4634,7 @@ var aa = [
4634
4634
  key: 0,
4635
4635
  element: e.element,
4636
4636
  "z-index": 0
4637
- }, null, 8, ["element"])) : A.value ? ((0, p.openBlock)(), (0, p.createBlock)(Ht, {
4637
+ }, null, 8, ["element"])) : T.value ? ((0, p.openBlock)(), (0, p.createBlock)(Ht, {
4638
4638
  key: 1,
4639
4639
  paragraphs: P.value,
4640
4640
  "text-style": y.value,
@@ -4683,12 +4683,12 @@ var aa = [
4683
4683
  setup(e) {
4684
4684
  const t = e, { t: n } = c.useI18n(), l = (0, p.ref)(null);
4685
4685
  (function(e) {
4686
- const t = E();
4687
- (0, p.provide)(w, () => (0, d.deriveSlideFieldContext)(B(t), e()));
4686
+ const t = D();
4687
+ (0, p.provide)(T, () => (0, d.deriveSlideFieldContext)(z(t), e()));
4688
4688
  })(() => t.slide);
4689
4689
  const o = (0, p.computed)(() => [...(0, d.visibleTemplateElements)(t.slide, t.templateElements ?? [])]);
4690
4690
  var a = () => [...o.value, ...t.slide?.elements ?? []];
4691
- (0, p.provide)(C, a);
4691
+ (0, p.provide)(A, a);
4692
4692
  const r = (0, p.computed)(() => t.preserveElementIds ? /* @__PURE__ */ new Map() : (0, d.resolveStageEdgeBleeds)(o.value, t.slide, t.selectedElementIds?.length ? new Set(t.selectedElementIds) : void 0)), i = (0, p.computed)(() => o.value.length), s = (0, p.computed)(() => [...o.value, ...t.slide?.elements ?? []]), u = (0, p.computed)(() => (t.interactive ?? !1) && (t.editTemplateMode ?? !1));
4693
4693
  (0, p.watchPostEffect)(() => {
4694
4694
  const e = l.value, a = s.value;
@@ -5779,7 +5779,7 @@ function fr(e) {
5779
5779
  var hr = {
5780
5780
  loadYjs: () => import("yjs"),
5781
5781
  loadWebsocket: () => import("y-websocket"),
5782
- loadWebrtc: () => Promise.resolve().then(() => require("./y-webrtc-C8MpOfL3.cjs"))
5782
+ loadWebrtc: () => Promise.resolve().then(() => require("./y-webrtc-D9l3ByiO.cjs"))
5783
5783
  };
5784
5784
  function yr(e, t) {
5785
5785
  const n = (0, p.ref)(!1), l = (0, p.ref)(!1), o = (0, p.ref)(void 0), a = (0, d.createCollaborationLivePatcher)();
@@ -7997,72 +7997,78 @@ function fi(e, t) {
7997
7997
  m.value = !0, v.value = null, f.value = null, h.value = !1;
7998
7998
  const k = e instanceof Uint8Array ? e.buffer.slice(e.byteOffset, e.byteOffset + e.byteLength) : e, q = k.slice(0), Y = k instanceof ArrayBuffer ? k.byteLength / 1048576 : 0;
7999
7999
  Y > 50 && console.warn(`[pptx] Large file detected (${Y.toFixed(1)} MB). Loading may use significant memory.`);
8000
- const X = y.value, Z = await H.load(k, {
8000
+ const X = y.value;
8001
+ let Z;
8002
+ const J = (e, n) => {
8003
+ "undefined" != typeof document && p === U && (Z = (0, d.prepareDeckWebfonts)({
8004
+ document,
8005
+ linkId: ai,
8006
+ slides: (0, d.partitionTemplateElements)(e).slides,
8007
+ embeddedFonts: n,
8008
+ googleFontsBase: (0, d.resolveGoogleFontsCss2Base)(t?.getGoogleFonts?.()),
8009
+ onProgress: (e) => {
8010
+ p === U && (v.value = e);
8011
+ }
8012
+ }));
8013
+ }, Q = await H.load(k, {
8001
8014
  allowExternalImages: t?.getAllowExternalImages?.(),
8002
- limits: t?.getLimits?.()
8015
+ limits: t?.getLimits?.(),
8016
+ onSlidesParsed: (e) => J([...e.slides], [...e.embeddedFonts])
8003
8017
  });
8004
8018
  if (p !== U) return;
8005
- const J = [];
8006
- for (const e of Z.slides) (0, d.collectMediaElements)(e.elements, J);
8007
- const Q = /* @__PURE__ */ new Map();
8008
- await Promise.all(J.map(async (e) => {
8019
+ Z || J(Q.slides, Q.embeddedFonts ?? []);
8020
+ const ee = [];
8021
+ for (const e of Q.slides) (0, d.collectMediaElements)(e.elements, ee);
8022
+ const te = /* @__PURE__ */ new Map();
8023
+ await Promise.all(ee.map(async (e) => {
8009
8024
  const t = await (0, d.resolveMediaElementSource)(e, H);
8010
- !t.missing && t.mediaPath && t.url ? (Q.set(t.mediaPath, t.url), t.isBlobUrl && K.push(t.url)) : e.mediaMissing = !0;
8025
+ !t.missing && t.mediaPath && t.url ? (te.set(t.mediaPath, t.url), t.isBlobUrl && K.push(t.url)) : e.mediaMissing = !0;
8011
8026
  }));
8012
- const ee = (0, d.collectAnimationSoundPaths)(Z.slides).filter((e) => !Q.has(e));
8013
- await Promise.all(ee.map(async (e) => {
8027
+ const ne = (0, d.collectAnimationSoundPaths)(Q.slides).filter((e) => !te.has(e));
8028
+ await Promise.all(ne.map(async (e) => {
8014
8029
  try {
8015
8030
  const t = await H.getMediaArrayBuffer(e);
8016
8031
  if (t) {
8017
8032
  const n = URL.createObjectURL(new Blob([t]));
8018
- K.push(n), Q.set(e, n);
8033
+ K.push(n), te.set(e, n);
8019
8034
  }
8020
8035
  } catch {}
8021
8036
  }));
8022
- const { paths: te, refs: ne } = (0, d.collectImagePaths)(Z.slides);
8023
- let le = Z.slides;
8024
- if (te.size > 0) {
8037
+ const { paths: le, refs: oe } = (0, d.collectImagePaths)(Q.slides);
8038
+ let ae = Q.slides;
8039
+ if (le.size > 0) {
8025
8040
  const e = /* @__PURE__ */ new Map();
8026
- await Promise.all(Array.from(te).map(async (t) => {
8041
+ await Promise.all(Array.from(le).map(async (t) => {
8027
8042
  try {
8028
8043
  const n = await H.getImageData(t);
8029
8044
  n && e.set(t, n);
8030
8045
  } catch {}
8031
- })), le = Z.slides.map((t) => {
8032
- const n = (0, d.applyImagePathPatches)(t.elements, e, ne);
8046
+ })), ae = Q.slides.map((t) => {
8047
+ const n = (0, d.applyImagePathPatches)(t.elements, e, oe);
8033
8048
  return n === t.elements ? t : {
8034
8049
  ...t,
8035
8050
  elements: n
8036
8051
  };
8037
8052
  });
8038
8053
  }
8039
- le = await (0, d.resolveTableCellImageUrls)(le, (e) => H.getImageData(e));
8040
- const oe = await (0, d.resolveTableStyleImageUrls)(Z.tableStyleMap, (e) => H.getImageData(e));
8041
- le = await (0, d.resolveTextFillBlipUrls)(le, (e) => H.getImageData(e));
8042
- const ae = Z.hasDigitalSignatures && q instanceof ArrayBuffer ? await vi(q) : [];
8054
+ ae = await (0, d.resolveTableCellImageUrls)(ae, (e) => H.getImageData(e));
8055
+ const re = await (0, d.resolveTableStyleImageUrls)(Q.tableStyleMap, (e) => H.getImageData(e));
8056
+ ae = await (0, d.resolveTextFillBlipUrls)(ae, (e) => H.getImageData(e));
8057
+ const ie = Q.hasDigitalSignatures && q instanceof ArrayBuffer ? await vi(q) : [];
8043
8058
  if (p !== U) return;
8044
- const re = (0, d.partitionTemplateElements)(le);
8045
- if ("undefined" != typeof document && (await (0, d.prepareDeckWebfonts)({
8046
- document,
8047
- linkId: ai,
8048
- slides: re.slides,
8049
- embeddedFonts: Z.embeddedFonts ?? [],
8050
- googleFontsBase: (0, d.resolveGoogleFontsCss2Base)(t?.getGoogleFonts?.()),
8051
- onProgress: (e) => {
8052
- p === U && (v.value = e);
8053
- }
8054
- }), p !== U)) return;
8055
- X?.dispose(), W(Array.from(c.value.values())), W($), $ = K, G.commit(), y.value = H, n.value = re.slides, l.value = re.templateElementsBySlideId, c.value = Q, o.value = {
8056
- width: Z.width ?? 1280,
8057
- height: Z.height ?? 720
8058
- }, a.value = "number" == typeof Z.widthEmu && "number" == typeof Z.heightEmu && Z.widthEmu > 0 && Z.heightEmu > 0 ? {
8059
- widthEmu: Z.widthEmu,
8060
- heightEmu: Z.heightEmu,
8061
- type: Z.slideSizeType ?? ""
8062
- } : void 0, r.value = Z.theme, i.value = Z.themeColorMap, s.value = Z.slideMasters ?? [], u.value = Z.layoutOptions ?? [], g.value = Z.coreProperties, x.value = Z.customProperties ?? [], S.value = Z.modifyVerifier, b.value = H.getCompatibilityWarnings(), w.value = Z.appProperties, E.value = Z.tags ?? [], B.value = Z.embeddedFonts ?? [], I.value = oe, P.value = Z.tableStylesDefaultId, T.value = [], D.value = Z.sections ?? [], z.value = Z.customShows ?? [], A.value = Z.modernCommentAuthors ?? [], O.value = Z.commentAuthors ?? [], M.value = Z.presentationProperties ?? {}, F.value = Z.viewProperties, L.value = Z.headerFooter, R.value = Z.firstSlideNumber, V.value = Z.notesMaster, N.value = Z.handoutMaster, _.value = Z.themeOptions ?? [], j.value = "number" == typeof Z.notesWidthEmu && "number" == typeof Z.notesHeightEmu && Z.notesWidthEmu > 0 && Z.notesHeightEmu > 0 ? {
8063
- width: Math.round(Z.notesWidthEmu / 9525),
8064
- height: Math.round(Z.notesHeightEmu / 9525)
8065
- } : void 0, C.value = ae, t?.onContentApplied?.();
8059
+ const se = (0, d.partitionTemplateElements)(ae);
8060
+ if (Z && (await Z, p !== U)) return;
8061
+ X?.dispose(), W(Array.from(c.value.values())), W($), $ = K, G.commit(), y.value = H, n.value = se.slides, l.value = se.templateElementsBySlideId, c.value = te, o.value = {
8062
+ width: Q.width ?? 1280,
8063
+ height: Q.height ?? 720
8064
+ }, a.value = "number" == typeof Q.widthEmu && "number" == typeof Q.heightEmu && Q.widthEmu > 0 && Q.heightEmu > 0 ? {
8065
+ widthEmu: Q.widthEmu,
8066
+ heightEmu: Q.heightEmu,
8067
+ type: Q.slideSizeType ?? ""
8068
+ } : void 0, r.value = Q.theme, i.value = Q.themeColorMap, s.value = Q.slideMasters ?? [], u.value = Q.layoutOptions ?? [], g.value = Q.coreProperties, x.value = Q.customProperties ?? [], S.value = Q.modifyVerifier, b.value = H.getCompatibilityWarnings(), w.value = Q.appProperties, E.value = Q.tags ?? [], B.value = Q.embeddedFonts ?? [], I.value = re, P.value = Q.tableStylesDefaultId, T.value = [], D.value = Q.sections ?? [], z.value = Q.customShows ?? [], A.value = Q.modernCommentAuthors ?? [], O.value = Q.commentAuthors ?? [], M.value = Q.presentationProperties ?? {}, F.value = Q.viewProperties, L.value = Q.headerFooter, R.value = Q.firstSlideNumber, V.value = Q.notesMaster, N.value = Q.handoutMaster, _.value = Q.themeOptions ?? [], j.value = "number" == typeof Q.notesWidthEmu && "number" == typeof Q.notesHeightEmu && Q.notesWidthEmu > 0 && Q.notesHeightEmu > 0 ? {
8069
+ width: Math.round(Q.notesWidthEmu / 9525),
8070
+ height: Math.round(Q.notesHeightEmu / 9525)
8071
+ } : void 0, C.value = ie, t?.onContentApplied?.();
8066
8072
  } catch (e) {
8067
8073
  if (p === U) if (e instanceof k.EncryptedFileError) h.value = !0;
8068
8074
  else {
@@ -9255,12 +9261,12 @@ Object.defineProperty(exports, "ChartRenderer_default", {
9255
9261
  }), Object.defineProperty(exports, "DEFAULT_STROKE_COLOR", {
9256
9262
  enumerable: !0,
9257
9263
  get: function() {
9258
- return P;
9264
+ return E;
9259
9265
  }
9260
9266
  }), Object.defineProperty(exports, "DEFAULT_TEXT_COLOR", {
9261
9267
  enumerable: !0,
9262
9268
  get: function() {
9263
- return I;
9269
+ return w;
9264
9270
  }
9265
9271
  }), Object.defineProperty(exports, "ERASER_RADIUS", {
9266
9272
  enumerable: !0,
@@ -9280,7 +9286,7 @@ Object.defineProperty(exports, "ChartRenderer_default", {
9280
9286
  }), Object.defineProperty(exports, "FieldContextKey", {
9281
9287
  enumerable: !0,
9282
9288
  get: function() {
9283
- return w;
9289
+ return T;
9284
9290
  }
9285
9291
  }), Object.defineProperty(exports, "FragmentedTransitionLayer_default", {
9286
9292
  enumerable: !0,
@@ -9490,22 +9496,22 @@ Object.defineProperty(exports, "ChartRenderer_default", {
9490
9496
  }), Object.defineProperty(exports, "getContainerStyle", {
9491
9497
  enumerable: !0,
9492
9498
  get: function() {
9493
- return T;
9499
+ return B;
9494
9500
  }
9495
9501
  }), Object.defineProperty(exports, "getImageSrc", {
9496
9502
  enumerable: !0,
9497
9503
  get: function() {
9498
- return A;
9504
+ return P;
9499
9505
  }
9500
9506
  }), Object.defineProperty(exports, "getShapeFillStrokeStyle", {
9501
9507
  enumerable: !0,
9502
9508
  get: function() {
9503
- return D;
9509
+ return C;
9504
9510
  }
9505
9511
  }), Object.defineProperty(exports, "getTextBlockStyle", {
9506
9512
  enumerable: !0,
9507
9513
  get: function() {
9508
- return z;
9514
+ return I;
9509
9515
  }
9510
9516
  }), Object.defineProperty(exports, "injectChartCanvasEdit", {
9511
9517
  enumerable: !0,