pptx-vue-viewer 4.34.0 → 4.35.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.
- package/CHANGELOG.md +23 -0
- package/dist/{AiChatPanel-pKzcrlCi.cjs → AiChatPanel-Cd_hGrkY.cjs} +1 -1
- package/dist/AiChatPanel-Cd_hGrkY.cjs.br +0 -0
- package/dist/AiChatPanel-Cd_hGrkY.cjs.gz +0 -0
- package/dist/{AiChatPanel-Xs90pv2f.js → AiChatPanel-tkjlmY6U.js} +2 -2
- package/dist/AiChatPanel-tkjlmY6U.js.br +0 -0
- package/dist/AiChatPanel-tkjlmY6U.js.gz +0 -0
- package/dist/i18n/de.cjs +1 -0
- package/dist/i18n/de.cjs.br +0 -0
- package/dist/i18n/de.cjs.gz +0 -0
- package/dist/i18n/de.mjs +1 -0
- package/dist/i18n/de.mjs.br +0 -0
- package/dist/i18n/de.mjs.gz +0 -0
- package/dist/i18n/es.cjs +1 -0
- package/dist/i18n/es.cjs.br +0 -0
- package/dist/i18n/es.cjs.gz +0 -0
- package/dist/i18n/es.mjs +1 -0
- package/dist/i18n/es.mjs.br +0 -0
- package/dist/i18n/es.mjs.gz +0 -0
- package/dist/i18n/fr.cjs +1 -0
- package/dist/i18n/fr.cjs.br +0 -0
- package/dist/i18n/fr.cjs.gz +0 -0
- package/dist/i18n/fr.mjs +1 -0
- package/dist/i18n/fr.mjs.br +0 -0
- package/dist/i18n/fr.mjs.gz +0 -0
- package/dist/i18n/zh-CN.cjs +1 -0
- package/dist/i18n/zh-CN.cjs.br +0 -0
- package/dist/i18n/zh-CN.cjs.gz +0 -0
- package/dist/i18n/zh-CN.mjs +1 -0
- package/dist/i18n/zh-CN.mjs.br +0 -0
- package/dist/i18n/zh-CN.mjs.gz +0 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.br +0 -0
- package/dist/index.cjs.gz +0 -0
- package/dist/index.js +2 -2
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/internals.cjs +1 -1
- package/dist/internals.cjs.br +0 -0
- package/dist/internals.cjs.gz +0 -0
- package/dist/internals.d.ts +1 -0
- package/dist/internals.js +1 -1
- package/dist/internals.js.br +0 -0
- package/dist/internals.js.gz +0 -0
- package/dist/pptx-vue-viewer.css +12 -12
- package/dist/pptx-vue-viewer.css.br +0 -0
- package/dist/pptx-vue-viewer.css.gz +0 -0
- package/dist/{useViewerSettingsDialog-B4X5ChkE.cjs → useViewerSettingsDialog-DLlAB_cd.cjs} +472 -465
- package/dist/useViewerSettingsDialog-DLlAB_cd.cjs.br +0 -0
- package/dist/{useViewerSettingsDialog-B4X5ChkE.cjs.gz → useViewerSettingsDialog-DLlAB_cd.cjs.gz} +0 -0
- package/dist/{useViewerSettingsDialog-DxyBl4cB.js → useViewerSettingsDialog-aHldkvT_.js} +2415 -2408
- package/dist/useViewerSettingsDialog-aHldkvT_.js.br +0 -0
- package/dist/useViewerSettingsDialog-aHldkvT_.js.gz +0 -0
- package/dist/viewer/index.cjs +1 -1
- package/dist/viewer/index.cjs.br +0 -0
- package/dist/viewer/index.cjs.gz +0 -0
- package/dist/viewer/index.d.ts +1 -0
- package/dist/viewer/index.js +2 -2
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/{viewer-DmUdXlFL.cjs → viewer-3HAffHnt.cjs} +2860 -2785
- package/dist/viewer-3HAffHnt.cjs.br +0 -0
- package/dist/viewer-3HAffHnt.cjs.gz +0 -0
- package/dist/{viewer-NLCorUCQ.js → viewer-BKNXx63U.js} +6538 -6463
- package/dist/viewer-BKNXx63U.js.br +0 -0
- package/dist/viewer-BKNXx63U.js.gz +0 -0
- package/dist/{y-webrtc-i3P367KW.cjs → y-webrtc-B3osMP9B.cjs} +1 -1
- package/dist/y-webrtc-B3osMP9B.cjs.br +0 -0
- package/dist/y-webrtc-B3osMP9B.cjs.gz +0 -0
- package/dist/{y-webrtc-nDXsLBqD.js → y-webrtc-DqOotPw6.js} +1 -1
- package/dist/y-webrtc-DqOotPw6.js.br +0 -0
- package/dist/y-webrtc-DqOotPw6.js.gz +0 -0
- package/package.json +3 -3
- package/dist/AiChatPanel-Xs90pv2f.js.br +0 -0
- package/dist/AiChatPanel-Xs90pv2f.js.gz +0 -0
- package/dist/AiChatPanel-pKzcrlCi.cjs.br +0 -0
- package/dist/AiChatPanel-pKzcrlCi.cjs.gz +0 -0
- package/dist/useViewerSettingsDialog-B4X5ChkE.cjs.br +0 -0
- package/dist/useViewerSettingsDialog-DxyBl4cB.js.br +0 -0
- package/dist/useViewerSettingsDialog-DxyBl4cB.js.gz +0 -0
- package/dist/viewer-DmUdXlFL.cjs.br +0 -0
- package/dist/viewer-DmUdXlFL.cjs.gz +0 -0
- package/dist/viewer-NLCorUCQ.js.br +0 -0
- package/dist/viewer-NLCorUCQ.js.gz +0 -0
- package/dist/y-webrtc-i3P367KW.cjs.br +0 -0
- package/dist/y-webrtc-i3P367KW.cjs.gz +0 -0
- package/dist/y-webrtc-nDXsLBqD.js.br +0 -0
- package/dist/y-webrtc-nDXsLBqD.js.gz +0 -0
|
@@ -6379,7 +6379,7 @@ var Pc = [
|
|
|
6379
6379
|
style: (0, d.normalizeStyle)(g.value)
|
|
6380
6380
|
}, [(0, d.createElementVNode)("div", Nc, (0, d.toDisplayString)(y.value), 1), k.value ? ((0, d.openBlock)(), (0, d.createElementBlock)("div", Lc, (0, d.toDisplayString)(k.value), 1)) : (0, d.createCommentVNode)("", !0)], 4)), (0, d.createElementVNode)("div", Ac, (0, d.toDisplayString)(p.value), 1)]))], 46, Pc));
|
|
6381
6381
|
}
|
|
6382
|
-
}), [["__scopeId", "data-v-12ce2987"]]), zc = ["data-element-id", "data-pptx-element"], Rc = ["data-element-id", "data-pptx-element"], Vc = ["data-element-id", "data-pptx-element"],
|
|
6382
|
+
}), [["__scopeId", "data-v-12ce2987"]]), zc = ["data-element-id", "data-pptx-element"], Rc = ["data-element-id", "data-pptx-element"], Vc = ["data-anim-id", "data-pptx-animation-layer"], jc = ["data-element-id", "data-pptx-element"], $c = { class: "pptx-vue-placeholder" }, Wc = (0, d.defineComponent)({
|
|
6383
6383
|
__name: "ElementRenderer",
|
|
6384
6384
|
props: {
|
|
6385
6385
|
element: {},
|
|
@@ -6393,13 +6393,13 @@ var Pc = [
|
|
|
6393
6393
|
inlineEditingElementId: {}
|
|
6394
6394
|
},
|
|
6395
6395
|
setup(e) {
|
|
6396
|
-
const t = e, n = pl(), o = (0, d.computed)(() => n.value.smartArt3D), l = Jo(), a = (0, d.inject)(el, void 0), r = (0, d.inject)(sl, () => (0, d.shallowRef)(/* @__PURE__ */ new Map()), !0), i = (0, d.computed)(() => r.value.get(t.element.id)), s = (0, d.computed)(() => (0, u.buildTextStyleOverrideCss)(t.element.id, i.value?.textStyle)),
|
|
6397
|
-
const e =
|
|
6396
|
+
const t = e, n = pl(), o = (0, d.computed)(() => n.value.smartArt3D), l = Jo(), a = (0, d.inject)(el, void 0), r = (0, d.inject)(sl, () => (0, d.shallowRef)(/* @__PURE__ */ new Map()), !0), i = (0, d.computed)(() => r.value.get(t.element.id)), s = (0, d.computed)(() => (0, u.getBackgroundAnimationState)(t.element, r.value)), c = (0, d.computed)(() => (0, u.buildTextStyleOverrideCss)(t.element.id, i.value?.textStyle)), p = (0, d.computed)(() => ol(t.element, t.zIndex)), m = (0, d.computed)(() => ll(t.element, t.parentGroupFill, (s.value ?? i.value)?.animatesFill, (s.value ?? i.value)?.animatesStroke)), v = (0, d.computed)(() => (0, u.getGroupChildParentFill)(t.element, t.parentGroupFill)), f = (0, d.computed)(() => {
|
|
6397
|
+
const e = p.value, t = m.value, n = {
|
|
6398
6398
|
...e,
|
|
6399
6399
|
...t
|
|
6400
6400
|
};
|
|
6401
6401
|
return e.transform && t.transform && (n.transform = `${e.transform} ${t.transform}`), n;
|
|
6402
|
-
}), f = (0, d.computed)(() => {
|
|
6402
|
+
}), g = (0, d.computed)(() => (0, u.getBackgroundAnimationLayers)(t.element, f.value, s.value)), y = (0, d.computed)(() => {
|
|
6403
6403
|
const e = al(t.element), n = (0, h.hasTextProperties)(t.element) ? t.element.textStyle : void 0, o = (0, u.buildTextBody3DSceneStyle)(n, {
|
|
6404
6404
|
width: t.element.width,
|
|
6405
6405
|
height: t.element.height
|
|
@@ -6410,33 +6410,33 @@ var Pc = [
|
|
|
6410
6410
|
...o
|
|
6411
6411
|
};
|
|
6412
6412
|
return e.transform && o.transform && (l.transform = `${String(e.transform)} ${String(o.transform)}`), l;
|
|
6413
|
-
}),
|
|
6413
|
+
}), k = (0, d.computed)(() => {
|
|
6414
6414
|
const e = (0, h.hasShapeProperties)(t.element) ? t.element.shapeStyle : void 0;
|
|
6415
6415
|
return (0, u.build3DExtrusionData)(e?.shape3d, e?.scene3d, e?.fillColor, t.element.width, t.element.height);
|
|
6416
|
-
}),
|
|
6416
|
+
}), x = (0, d.computed)(() => "text" === t.element.type || "shape" === t.element.type), b = (0, d.computed)(() => "picture" === t.element.type || "image" === t.element.type), S = (0, d.computed)(() => (0, h.hasTextProperties)(t.element) && (0, u.isEquationOnlyText)(t.element.textSegments)), w = (0, d.computed)(() => (0, u.hasTextWarp)(t.element)), E = (0, d.computed)(() => {
|
|
6417
6417
|
return (0, u.getOverflowSegments)(t.element, (e = a) ? (0, d.toValue)(e) : void 0);
|
|
6418
6418
|
var e;
|
|
6419
|
-
}),
|
|
6419
|
+
}), B = (0, d.computed)(() => (0, u.buildParagraphs)(t.element, Qo(l), E.value)), C = (0, d.computed)(() => B.value.some((e) => e.runs.length > 0 || void 0 !== e.bulletMarker)), I = (0, d.computed)(() => C.value ? null : (0, u.placeholderPromptDescriptor)(t.element, t.interactive && !t.presenting ? "edit" : "present")), P = (0, d.computed)(() => t.templateEditing ? "pptx-vue-template-editing" : null), T = (0, d.computed)(() => t.interactive || t.marked ? "true" : void 0), _ = (0, d.computed)(() => {
|
|
6420
6420
|
const e = (0, u.inlineElementPointerEvents)({
|
|
6421
6421
|
interactive: !0 === t.interactive,
|
|
6422
6422
|
presenting: !0 === t.presenting
|
|
6423
6423
|
});
|
|
6424
6424
|
return e ? { pointerEvents: e } : null;
|
|
6425
|
-
}),
|
|
6425
|
+
}), O = (0, d.computed)(() => (0, u.isElementRendered)(t.element)), D = (0, d.computed)(() => t.element.id === t.inlineEditingElementId), N = il(() => t.element, () => t.interactive, () => t.presenting);
|
|
6426
6426
|
return (t, n) => {
|
|
6427
6427
|
const l = (0, d.resolveComponent)("ElementRenderer", !0);
|
|
6428
|
-
return
|
|
6428
|
+
return O.value ? "group" === e.element.type ? ((0, d.openBlock)(), (0, d.createElementBlock)("div", {
|
|
6429
6429
|
key: 1,
|
|
6430
|
-
class: (0, d.normalizeClass)(["pptx-vue-element pptx-vue-group",
|
|
6431
|
-
style: (0, d.normalizeStyle)([
|
|
6430
|
+
class: (0, d.normalizeClass)(["pptx-vue-element pptx-vue-group", P.value]),
|
|
6431
|
+
style: (0, d.normalizeStyle)([f.value, _.value]),
|
|
6432
6432
|
"data-element-id": e.element.id,
|
|
6433
|
-
"data-pptx-element":
|
|
6433
|
+
"data-pptx-element": T.value
|
|
6434
6434
|
}, [
|
|
6435
|
-
(0, d.unref)(
|
|
6435
|
+
(0, d.unref)(N) ? ((0, d.openBlock)(), (0, d.createElementBlock)("div", {
|
|
6436
6436
|
key: 0,
|
|
6437
6437
|
"aria-hidden": "true",
|
|
6438
6438
|
"data-pptx-hit-target": "true",
|
|
6439
|
-
style: (0, d.normalizeStyle)((0, d.unref)(
|
|
6439
|
+
style: (0, d.normalizeStyle)((0, d.unref)(N))
|
|
6440
6440
|
}, null, 4)) : (0, d.createCommentVNode)("", !0),
|
|
6441
6441
|
(0, d.createVNode)(jr, {
|
|
6442
6442
|
element: e.element,
|
|
@@ -6450,7 +6450,7 @@ var Pc = [
|
|
|
6450
6450
|
interactive: e.interactive,
|
|
6451
6451
|
marked: e.marked,
|
|
6452
6452
|
presenting: e.presenting,
|
|
6453
|
-
"parent-group-fill":
|
|
6453
|
+
"parent-group-fill": v.value,
|
|
6454
6454
|
"inline-editing-element-id": e.inlineEditingElementId
|
|
6455
6455
|
}, null, 8, [
|
|
6456
6456
|
"element",
|
|
@@ -6462,7 +6462,7 @@ var Pc = [
|
|
|
6462
6462
|
"parent-group-fill",
|
|
6463
6463
|
"inline-editing-element-id"
|
|
6464
6464
|
]))), 128))
|
|
6465
|
-
], 14, zc)) :
|
|
6465
|
+
], 14, zc)) : b.value ? ((0, d.openBlock)(), (0, d.createBlock)(Hr, {
|
|
6466
6466
|
key: 2,
|
|
6467
6467
|
element: e.element,
|
|
6468
6468
|
"media-data-urls": e.mediaDataUrls,
|
|
@@ -6470,7 +6470,7 @@ var Pc = [
|
|
|
6470
6470
|
interactive: e.interactive,
|
|
6471
6471
|
marked: e.marked,
|
|
6472
6472
|
presenting: e.presenting,
|
|
6473
|
-
class: (0, d.normalizeClass)(
|
|
6473
|
+
class: (0, d.normalizeClass)(P.value)
|
|
6474
6474
|
}, null, 8, [
|
|
6475
6475
|
"element",
|
|
6476
6476
|
"media-data-urls",
|
|
@@ -6487,7 +6487,7 @@ var Pc = [
|
|
|
6487
6487
|
interactive: e.interactive,
|
|
6488
6488
|
marked: e.marked,
|
|
6489
6489
|
presenting: e.presenting,
|
|
6490
|
-
class: (0, d.normalizeClass)(
|
|
6490
|
+
class: (0, d.normalizeClass)(P.value)
|
|
6491
6491
|
}, null, 8, [
|
|
6492
6492
|
"element",
|
|
6493
6493
|
"media-data-urls",
|
|
@@ -6501,8 +6501,8 @@ var Pc = [
|
|
|
6501
6501
|
element: e.element,
|
|
6502
6502
|
"z-index": e.zIndex,
|
|
6503
6503
|
"animation-state": i.value,
|
|
6504
|
-
"text-style-override-css":
|
|
6505
|
-
"data-pptx-element":
|
|
6504
|
+
"text-style-override-css": c.value,
|
|
6505
|
+
"data-pptx-element": T.value
|
|
6506
6506
|
}, null, 8, [
|
|
6507
6507
|
"element",
|
|
6508
6508
|
"z-index",
|
|
@@ -6517,7 +6517,7 @@ var Pc = [
|
|
|
6517
6517
|
interactive: e.interactive,
|
|
6518
6518
|
marked: e.marked,
|
|
6519
6519
|
presenting: e.presenting,
|
|
6520
|
-
"text-style-override-css":
|
|
6520
|
+
"text-style-override-css": c.value
|
|
6521
6521
|
}, null, 8, [
|
|
6522
6522
|
"element",
|
|
6523
6523
|
"media-data-urls",
|
|
@@ -6535,7 +6535,7 @@ var Pc = [
|
|
|
6535
6535
|
marked: e.marked,
|
|
6536
6536
|
presenting: e.presenting,
|
|
6537
6537
|
"animation-state": i.value,
|
|
6538
|
-
"text-style-override-css":
|
|
6538
|
+
"text-style-override-css": c.value
|
|
6539
6539
|
}, null, 8, [
|
|
6540
6540
|
"element",
|
|
6541
6541
|
"media-data-urls",
|
|
@@ -6554,8 +6554,8 @@ var Pc = [
|
|
|
6554
6554
|
presenting: e.presenting,
|
|
6555
6555
|
replay: e.presenting,
|
|
6556
6556
|
"text-style": i.value?.textStyle,
|
|
6557
|
-
"text-style-override-css":
|
|
6558
|
-
"data-pptx-element":
|
|
6557
|
+
"text-style-override-css": c.value,
|
|
6558
|
+
"data-pptx-element": T.value
|
|
6559
6559
|
}, null, 8, [
|
|
6560
6560
|
"element",
|
|
6561
6561
|
"media-data-urls",
|
|
@@ -6575,7 +6575,7 @@ var Pc = [
|
|
|
6575
6575
|
marked: e.marked,
|
|
6576
6576
|
presenting: e.presenting,
|
|
6577
6577
|
"animation-state": i.value,
|
|
6578
|
-
"text-style-override-css":
|
|
6578
|
+
"text-style-override-css": c.value
|
|
6579
6579
|
}, null, 8, [
|
|
6580
6580
|
"element",
|
|
6581
6581
|
"media-data-urls",
|
|
@@ -6593,7 +6593,7 @@ var Pc = [
|
|
|
6593
6593
|
interactive: e.interactive,
|
|
6594
6594
|
presenting: e.presenting,
|
|
6595
6595
|
replay: e.presenting,
|
|
6596
|
-
"data-pptx-element":
|
|
6596
|
+
"data-pptx-element": T.value
|
|
6597
6597
|
}, null, 8, [
|
|
6598
6598
|
"element",
|
|
6599
6599
|
"media-data-urls",
|
|
@@ -6608,7 +6608,7 @@ var Pc = [
|
|
|
6608
6608
|
"z-index": e.zIndex,
|
|
6609
6609
|
interactive: e.interactive,
|
|
6610
6610
|
presenting: e.presenting,
|
|
6611
|
-
"data-pptx-element":
|
|
6611
|
+
"data-pptx-element": T.value
|
|
6612
6612
|
}, null, 8, [
|
|
6613
6613
|
"element",
|
|
6614
6614
|
"z-index",
|
|
@@ -6622,7 +6622,7 @@ var Pc = [
|
|
|
6622
6622
|
"z-index": e.zIndex,
|
|
6623
6623
|
interactive: e.interactive,
|
|
6624
6624
|
presenting: e.presenting,
|
|
6625
|
-
"data-pptx-element":
|
|
6625
|
+
"data-pptx-element": T.value
|
|
6626
6626
|
}, null, 8, [
|
|
6627
6627
|
"element",
|
|
6628
6628
|
"media-data-urls",
|
|
@@ -6637,7 +6637,7 @@ var Pc = [
|
|
|
6637
6637
|
"z-index": e.zIndex,
|
|
6638
6638
|
interactive: e.interactive,
|
|
6639
6639
|
presenting: e.presenting,
|
|
6640
|
-
"data-pptx-element":
|
|
6640
|
+
"data-pptx-element": T.value
|
|
6641
6641
|
}, null, 8, [
|
|
6642
6642
|
"element",
|
|
6643
6643
|
"media-data-urls",
|
|
@@ -6652,7 +6652,7 @@ var Pc = [
|
|
|
6652
6652
|
"z-index": e.zIndex,
|
|
6653
6653
|
interactive: e.interactive,
|
|
6654
6654
|
presenting: e.presenting,
|
|
6655
|
-
"data-pptx-element":
|
|
6655
|
+
"data-pptx-element": T.value
|
|
6656
6656
|
}, null, 8, [
|
|
6657
6657
|
"element",
|
|
6658
6658
|
"media-data-urls",
|
|
@@ -6660,14 +6660,14 @@ var Pc = [
|
|
|
6660
6660
|
"interactive",
|
|
6661
6661
|
"presenting",
|
|
6662
6662
|
"data-pptx-element"
|
|
6663
|
-
])) :
|
|
6663
|
+
])) : S.value ? ((0, d.openBlock)(), (0, d.createBlock)(fi, {
|
|
6664
6664
|
key: 14,
|
|
6665
6665
|
element: e.element,
|
|
6666
6666
|
"media-data-urls": e.mediaDataUrls,
|
|
6667
6667
|
"z-index": e.zIndex,
|
|
6668
6668
|
interactive: e.interactive,
|
|
6669
6669
|
presenting: e.presenting,
|
|
6670
|
-
"data-pptx-element":
|
|
6670
|
+
"data-pptx-element": T.value
|
|
6671
6671
|
}, null, 8, [
|
|
6672
6672
|
"element",
|
|
6673
6673
|
"media-data-urls",
|
|
@@ -6675,41 +6675,47 @@ var Pc = [
|
|
|
6675
6675
|
"interactive",
|
|
6676
6676
|
"presenting",
|
|
6677
6677
|
"data-pptx-element"
|
|
6678
|
-
])) :
|
|
6678
|
+
])) : x.value ? ((0, d.openBlock)(), (0, d.createElementBlock)("div", {
|
|
6679
6679
|
key: 15,
|
|
6680
|
-
class: (0, d.normalizeClass)(["pptx-vue-element pptx-vue-shape",
|
|
6681
|
-
style: (0, d.normalizeStyle)([
|
|
6680
|
+
class: (0, d.normalizeClass)(["pptx-vue-element pptx-vue-shape", P.value]),
|
|
6681
|
+
style: (0, d.normalizeStyle)([g.value.box, _.value]),
|
|
6682
6682
|
"data-element-id": e.element.id,
|
|
6683
|
-
"data-pptx-element":
|
|
6683
|
+
"data-pptx-element": T.value
|
|
6684
6684
|
}, [
|
|
6685
6685
|
(0, d.createVNode)(Xa, { element: e.element }, null, 8, ["element"]),
|
|
6686
|
-
(0, d.unref)(
|
|
6686
|
+
(0, d.unref)(N) ? ((0, d.openBlock)(), (0, d.createElementBlock)("div", {
|
|
6687
6687
|
key: 0,
|
|
6688
6688
|
"aria-hidden": "true",
|
|
6689
6689
|
"data-pptx-hit-target": "true",
|
|
6690
|
-
style: (0, d.normalizeStyle)((0, d.unref)(
|
|
6690
|
+
style: (0, d.normalizeStyle)((0, d.unref)(N))
|
|
6691
6691
|
}, null, 4)) : (0, d.createCommentVNode)("", !0),
|
|
6692
|
-
|
|
6693
|
-
default: (0, d.withCtx)(() => [(0, d.createTextVNode)((0, d.toDisplayString)(
|
|
6692
|
+
c.value ? ((0, d.openBlock)(), (0, d.createBlock)((0, d.resolveDynamicComponent)("style"), { key: 1 }, {
|
|
6693
|
+
default: (0, d.withCtx)(() => [(0, d.createTextVNode)((0, d.toDisplayString)(c.value), 1)]),
|
|
6694
6694
|
_: 1
|
|
6695
6695
|
})) : (0, d.createCommentVNode)("", !0),
|
|
6696
|
-
(0, d.
|
|
6697
|
-
|
|
6698
|
-
"
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
|
|
6696
|
+
(0, d.createElementVNode)("div", {
|
|
6697
|
+
style: (0, d.normalizeStyle)(g.value.paint || { display: "contents" }),
|
|
6698
|
+
"data-anim-id": g.value.targetId,
|
|
6699
|
+
"data-pptx-animation-layer": s.value ? "background" : void 0
|
|
6700
|
+
}, [
|
|
6701
|
+
(0, d.createVNode)(jr, {
|
|
6702
|
+
element: e.element,
|
|
6703
|
+
"media-data-urls": e.mediaDataUrls
|
|
6704
|
+
}, null, 8, ["element", "media-data-urls"]),
|
|
6705
|
+
k.value.hasExtrusion ? ((0, d.openBlock)(), (0, d.createBlock)(gi, {
|
|
6706
|
+
key: 0,
|
|
6707
|
+
data: k.value
|
|
6708
|
+
}, null, 8, ["data"])) : (0, d.createCommentVNode)("", !0),
|
|
6709
|
+
(0, d.createVNode)(fl, { element: e.element }, null, 8, ["element"])
|
|
6710
|
+
], 12, Vc),
|
|
6711
|
+
D.value ? (0, d.createCommentVNode)("", !0) : ((0, d.openBlock)(), (0, d.createElementBlock)(d.Fragment, { key: 2 }, [w.value ? ((0, d.openBlock)(), (0, d.createBlock)(Sc, {
|
|
6706
6712
|
key: 0,
|
|
6707
6713
|
element: e.element,
|
|
6708
6714
|
"z-index": 0
|
|
6709
|
-
}, null, 8, ["element"])) :
|
|
6715
|
+
}, null, 8, ["element"])) : C.value ? ((0, d.openBlock)(), (0, d.createBlock)(kr, {
|
|
6710
6716
|
key: 1,
|
|
6711
|
-
paragraphs:
|
|
6712
|
-
"text-style":
|
|
6717
|
+
paragraphs: B.value,
|
|
6718
|
+
"text-style": y.value,
|
|
6713
6719
|
"element-id": e.element.id,
|
|
6714
6720
|
"sub-element-anim-states": (0, d.unref)(r)
|
|
6715
6721
|
}, null, 8, [
|
|
@@ -6717,26 +6723,26 @@ var Pc = [
|
|
|
6717
6723
|
"text-style",
|
|
6718
6724
|
"element-id",
|
|
6719
6725
|
"sub-element-anim-states"
|
|
6720
|
-
])) :
|
|
6726
|
+
])) : I.value ? ((0, d.openBlock)(), (0, d.createElementBlock)("div", {
|
|
6721
6727
|
key: 2,
|
|
6722
6728
|
class: "pptx-vue-text pptx-vue-placeholder-prompt",
|
|
6723
|
-
style: (0, d.normalizeStyle)([
|
|
6724
|
-
}, (0, d.toDisplayString)(
|
|
6729
|
+
style: (0, d.normalizeStyle)([y.value, I.value.style])
|
|
6730
|
+
}, (0, d.toDisplayString)(I.value.text), 5)) : (0, d.createCommentVNode)("", !0)], 64))
|
|
6725
6731
|
], 14, Rc)) : ((0, d.openBlock)(), (0, d.createElementBlock)("div", {
|
|
6726
6732
|
key: 16,
|
|
6727
|
-
class: (0, d.normalizeClass)(["pptx-vue-element pptx-vue-unsupported",
|
|
6728
|
-
style: (0, d.normalizeStyle)([
|
|
6733
|
+
class: (0, d.normalizeClass)(["pptx-vue-element pptx-vue-unsupported", P.value]),
|
|
6734
|
+
style: (0, d.normalizeStyle)([p.value, _.value]),
|
|
6729
6735
|
"data-element-id": e.element.id,
|
|
6730
|
-
"data-pptx-element":
|
|
6731
|
-
}, [(0, d.createElementVNode)("div",
|
|
6736
|
+
"data-pptx-element": T.value
|
|
6737
|
+
}, [(0, d.createElementVNode)("div", $c, (0, d.toDisplayString)(e.element.type), 1)], 14, jc)) : ((0, d.openBlock)(), (0, d.createElementBlock)(d.Fragment, { key: 0 }, [], 64));
|
|
6732
6738
|
};
|
|
6733
6739
|
}
|
|
6734
|
-
}),
|
|
6740
|
+
}), Uc = [
|
|
6735
6741
|
"role",
|
|
6736
6742
|
"aria-roledescription",
|
|
6737
6743
|
"aria-label",
|
|
6738
6744
|
"aria-hidden"
|
|
6739
|
-
],
|
|
6745
|
+
], Hc = (0, d.defineComponent)({
|
|
6740
6746
|
__name: "SlideStage",
|
|
6741
6747
|
props: {
|
|
6742
6748
|
slide: {},
|
|
@@ -6801,7 +6807,7 @@ var Pc = [
|
|
|
6801
6807
|
"aria-label": e.presenting ? (0, d.unref)(n)("pptx.canvas.slide") : void 0,
|
|
6802
6808
|
"aria-hidden": e.interactive || e.presenting ? void 0 : "true"
|
|
6803
6809
|
}, [
|
|
6804
|
-
((0, d.openBlock)(!0), (0, d.createElementBlock)(d.Fragment, null, (0, d.renderList)(l.value, (t, n) => ((0, d.openBlock)(), (0, d.createBlock)(
|
|
6810
|
+
((0, d.openBlock)(!0), (0, d.createElementBlock)(d.Fragment, null, (0, d.renderList)(l.value, (t, n) => ((0, d.openBlock)(), (0, d.createBlock)(Wc, {
|
|
6805
6811
|
key: t.id,
|
|
6806
6812
|
element: t,
|
|
6807
6813
|
"media-data-urls": e.mediaDataUrls,
|
|
@@ -6819,7 +6825,7 @@ var Pc = [
|
|
|
6819
6825
|
"template-editing",
|
|
6820
6826
|
"inline-editing-element-id"
|
|
6821
6827
|
]))), 128)),
|
|
6822
|
-
((0, d.openBlock)(!0), (0, d.createElementBlock)(d.Fragment, null, (0, d.renderList)(e.slide?.elements ?? [], (t, n) => ((0, d.openBlock)(), (0, d.createBlock)(
|
|
6828
|
+
((0, d.openBlock)(!0), (0, d.createElementBlock)(d.Fragment, null, (0, d.renderList)(e.slide?.elements ?? [], (t, n) => ((0, d.openBlock)(), (0, d.createBlock)(Wc, {
|
|
6823
6829
|
key: t.id,
|
|
6824
6830
|
element: t,
|
|
6825
6831
|
"media-data-urls": e.mediaDataUrls,
|
|
@@ -6836,10 +6842,10 @@ var Pc = [
|
|
|
6836
6842
|
"inline-editing-element-id"
|
|
6837
6843
|
]))), 128)),
|
|
6838
6844
|
(0, d.renderSlot)(t.$slots, "default")
|
|
6839
|
-
], 12,
|
|
6845
|
+
], 12, Uc));
|
|
6840
6846
|
}
|
|
6841
6847
|
});
|
|
6842
|
-
function
|
|
6848
|
+
function Gc(e) {
|
|
6843
6849
|
return {
|
|
6844
6850
|
x: e.x,
|
|
6845
6851
|
y: e.y,
|
|
@@ -6848,7 +6854,7 @@ function Hc(e) {
|
|
|
6848
6854
|
rotation: e.rotation ?? 0
|
|
6849
6855
|
};
|
|
6850
6856
|
}
|
|
6851
|
-
function
|
|
6857
|
+
function Kc(e, t) {
|
|
6852
6858
|
const n = (0, d.computed)(() => function(e, t) {
|
|
6853
6859
|
const n = new Set(t), o = /* @__PURE__ */ new Map();
|
|
6854
6860
|
for (const t of e) n.has(t.id) && o.set(t.id, (0, u.resolveElementInteractivity)(t));
|
|
@@ -6859,7 +6865,7 @@ function Gc(e, t) {
|
|
|
6859
6865
|
canRotate: (e) => !1 !== n.value.get(e)?.rotatable
|
|
6860
6866
|
};
|
|
6861
6867
|
}
|
|
6862
|
-
function
|
|
6868
|
+
function Yc(e, t) {
|
|
6863
6869
|
return {
|
|
6864
6870
|
isHidden: (t) => (0, u.isActionHidden)(t, e()),
|
|
6865
6871
|
visibleTabs: (0, d.computed)(() => {
|
|
@@ -6868,14 +6874,14 @@ function Kc(e, t) {
|
|
|
6868
6874
|
})
|
|
6869
6875
|
};
|
|
6870
6876
|
}
|
|
6871
|
-
var
|
|
6872
|
-
function
|
|
6873
|
-
|
|
6877
|
+
var qc = null;
|
|
6878
|
+
function Xc(e, t = !1) {
|
|
6879
|
+
Zc(), "undefined" != typeof Audio && ((qc = new Audio(e)).loop = t, qc.play().catch(() => {}));
|
|
6874
6880
|
}
|
|
6875
|
-
function
|
|
6876
|
-
|
|
6881
|
+
function Zc() {
|
|
6882
|
+
qc && (qc.pause(), qc.currentTime = 0, qc = null);
|
|
6877
6883
|
}
|
|
6878
|
-
function
|
|
6884
|
+
function Jc(e = 768, t) {
|
|
6879
6885
|
const n = (0, d.ref)(!1), o = (0, d.ref)(!1), l = (0, d.ref)(!1), a = (0, d.ref)((0, u.detectTouchDevice)()), r = (0, d.ref)((0, u.detectOrientation)()), i = (0, d.ref)(!1), s = (0, d.ref)("undefined" != typeof window ? window.innerWidth : u.TABLET_BREAKPOINT), c = "undefined" != typeof window, p = (0, d.ref)(c ? window.innerWidth : u.TABLET_BREAKPOINT), m = (0, d.ref)(c ? window.innerHeight : 800), v = {
|
|
6880
6886
|
isMobile: (0, d.readonly)(n),
|
|
6881
6887
|
isTablet: (0, d.readonly)(o),
|
|
@@ -6949,10 +6955,10 @@ function Zc(e = 768, t) {
|
|
|
6949
6955
|
k.removeEventListener("change", b), window.removeEventListener("resize", h);
|
|
6950
6956
|
}), v;
|
|
6951
6957
|
}
|
|
6952
|
-
function
|
|
6958
|
+
function Qc(e, t) {
|
|
6953
6959
|
return (0, d.computed)(() => (0, u.computeDocumentStatistics)((0, d.toValue)(e), (0, d.toValue)(t)));
|
|
6954
6960
|
}
|
|
6955
|
-
var
|
|
6961
|
+
var eu = [
|
|
6956
6962
|
{
|
|
6957
6963
|
id: "undo",
|
|
6958
6964
|
combo: "Mod+Z",
|
|
@@ -7073,21 +7079,21 @@ var Qc = [
|
|
|
7073
7079
|
group: "general",
|
|
7074
7080
|
descriptionKey: "pptx.slideShow.fromCurrent"
|
|
7075
7081
|
}
|
|
7076
|
-
],
|
|
7082
|
+
], tu = {
|
|
7077
7083
|
history: "pptx.editorToolbar.history",
|
|
7078
7084
|
clipboard: "pptx.ribbon.clipboard",
|
|
7079
7085
|
editing: "pptx.shortcuts.group.editing",
|
|
7080
7086
|
navigation: "pptx.shortcuts.group.navigation",
|
|
7081
7087
|
general: "pptx.settings.general"
|
|
7082
7088
|
};
|
|
7083
|
-
function
|
|
7084
|
-
return Object.keys(
|
|
7089
|
+
function nu(e = eu) {
|
|
7090
|
+
return Object.keys(tu).map((t) => ({
|
|
7085
7091
|
group: t,
|
|
7086
|
-
labelKey:
|
|
7092
|
+
labelKey: tu[t],
|
|
7087
7093
|
shortcuts: e.filter((e) => e.group === t)
|
|
7088
7094
|
})).filter((e) => e.shortcuts.length > 0);
|
|
7089
7095
|
}
|
|
7090
|
-
function
|
|
7096
|
+
function ou(e, t, n, o, l = !1, a) {
|
|
7091
7097
|
return (0, u.mapCustomizedEditorKey)({
|
|
7092
7098
|
key: e,
|
|
7093
7099
|
ctrlKey: t,
|
|
@@ -7104,23 +7110,23 @@ function nu(e, t, n, o, l = !1, a) {
|
|
|
7104
7110
|
isControlTarget: o.isControl ?? !1
|
|
7105
7111
|
}, a);
|
|
7106
7112
|
}
|
|
7107
|
-
function
|
|
7113
|
+
function lu(e) {
|
|
7108
7114
|
return (0, u.isEditorTextInputTarget)(e.target);
|
|
7109
7115
|
}
|
|
7110
|
-
function
|
|
7116
|
+
function au(e) {
|
|
7111
7117
|
const { actions: t } = e;
|
|
7112
7118
|
function n(t) {
|
|
7113
7119
|
const n = t.metaKey || t.ctrlKey;
|
|
7114
|
-
return
|
|
7120
|
+
return ou(t.key, n, t.shiftKey, function(t) {
|
|
7115
7121
|
return {
|
|
7116
|
-
canEdit:
|
|
7117
|
-
canPaste:
|
|
7118
|
-
isPresenting:
|
|
7119
|
-
hasSelection:
|
|
7120
|
-
inlineEditingElementId:
|
|
7121
|
-
tableEditorIsEditing:
|
|
7122
|
-
activeTool:
|
|
7123
|
-
isTextInput:
|
|
7122
|
+
canEdit: ru(e.canEdit, !0),
|
|
7123
|
+
canPaste: ru(e.canPaste, !0),
|
|
7124
|
+
isPresenting: ru(e.isPresenting, !1),
|
|
7125
|
+
hasSelection: ru(e.hasSelection, !1),
|
|
7126
|
+
inlineEditingElementId: ru(e.inlineEditingElementId, null),
|
|
7127
|
+
tableEditorIsEditing: ru(e.tableEditorIsEditing, !1),
|
|
7128
|
+
activeTool: ru(e.activeTool, "select"),
|
|
7129
|
+
isTextInput: lu(t),
|
|
7124
7130
|
isControl: (0, u.isEditorControlTarget)(t.target)
|
|
7125
7131
|
};
|
|
7126
7132
|
}(t), t.altKey, e.keyboard?.());
|
|
@@ -7151,10 +7157,10 @@ function lu(e) {
|
|
|
7151
7157
|
attach: l
|
|
7152
7158
|
};
|
|
7153
7159
|
}
|
|
7154
|
-
function
|
|
7160
|
+
function ru(e, t) {
|
|
7155
7161
|
return void 0 === e ? t : (0, d.toValue)(e);
|
|
7156
7162
|
}
|
|
7157
|
-
function
|
|
7163
|
+
function iu(e, t, n, o = () => !0) {
|
|
7158
7164
|
const l = (e) => n(e), a = (e) => {
|
|
7159
7165
|
const n = t.value;
|
|
7160
7166
|
n && l((0, u.patchChartData)(n, e));
|
|
@@ -7259,7 +7265,7 @@ function ru(e, t, n, o = () => !0) {
|
|
|
7259
7265
|
}
|
|
7260
7266
|
};
|
|
7261
7267
|
}
|
|
7262
|
-
function
|
|
7268
|
+
function su(e, t = 180) {
|
|
7263
7269
|
let n, o;
|
|
7264
7270
|
const l = () => {
|
|
7265
7271
|
void 0 !== n && (clearTimeout(n), n = void 0), o = void 0;
|
|
@@ -7275,7 +7281,7 @@ function iu(e, t = 180) {
|
|
|
7275
7281
|
void 0 !== n && (clearTimeout(n), a());
|
|
7276
7282
|
}, (0, d.onScopeDispose)(l), r;
|
|
7277
7283
|
}
|
|
7278
|
-
function
|
|
7284
|
+
function cu() {
|
|
7279
7285
|
const e = /* @__PURE__ */ new Map(), t = (0, d.ref)(null);
|
|
7280
7286
|
return {
|
|
7281
7287
|
pendingFocusId: t,
|
|
@@ -7289,21 +7295,21 @@ function su() {
|
|
|
7289
7295
|
}
|
|
7290
7296
|
};
|
|
7291
7297
|
}
|
|
7292
|
-
var
|
|
7298
|
+
var uu = [
|
|
7293
7299
|
"colorful1",
|
|
7294
7300
|
"colorful2",
|
|
7295
7301
|
"colorful3",
|
|
7296
7302
|
"monochromatic1",
|
|
7297
7303
|
"monochromatic2"
|
|
7298
|
-
],
|
|
7304
|
+
], du = [
|
|
7299
7305
|
"flat",
|
|
7300
7306
|
"moderate",
|
|
7301
7307
|
"intense"
|
|
7302
7308
|
];
|
|
7303
|
-
function
|
|
7309
|
+
function pu(e, t) {
|
|
7304
7310
|
return (0, u.schemaLabel)(u.SMARTART_LAYOUT_LABEL_KEYS, e, t);
|
|
7305
7311
|
}
|
|
7306
|
-
function
|
|
7312
|
+
function mu(e) {
|
|
7307
7313
|
const { smartArtData: t, apply: n } = e, o = (0, d.computed)(() => t.value.nodes ?? []), l = (0, d.computed)(() => t.value.colorScheme ?? "colorful1"), a = (0, d.computed)(() => t.value.style ?? "flat"), r = (0, d.computed)(() => t.value.resolvedLayoutType ?? "list"), i = (0, d.computed)(() => (0, u.countTopLevel)(t.value)), s = (0, d.computed)(() => (0, u.canAddTopLevelNode)(r.value, i.value)), c = (0, d.computed)(() => (0, u.describeSmartArtBounds)(r.value)), p = (0, d.computed)(() => (0, u.extraConnectionCount)(t.value)), m = (0, d.computed)(() => {
|
|
7308
7314
|
const e = t.value, n = (0, u.canRemoveTopLevelNode)(r.value, i.value);
|
|
7309
7315
|
let l = 0;
|
|
@@ -7321,7 +7327,7 @@ function pu(e) {
|
|
|
7321
7327
|
removeDisabled: o.value.length <= 1 || !r && !n
|
|
7322
7328
|
};
|
|
7323
7329
|
});
|
|
7324
|
-
}), { pendingFocusId: v, setInputEl: f, focusNode: g } =
|
|
7330
|
+
}), { pendingFocusId: v, setInputEl: f, focusNode: g } = cu();
|
|
7325
7331
|
function y(t, o) {
|
|
7326
7332
|
const l = e.box?.value, a = l ? (0, u.rebuildDrawingShapesIfCleared)(t, t.layout, (0, u.resolvePalette)(t), t.style ?? "flat", e.elementId ?? "smartart", l) : t;
|
|
7327
7333
|
n({ smartArtData: a }), g(o);
|
|
@@ -7405,24 +7411,24 @@ function pu(e) {
|
|
|
7405
7411
|
}
|
|
7406
7412
|
};
|
|
7407
7413
|
}
|
|
7408
|
-
function
|
|
7414
|
+
function vu(e, t, n) {
|
|
7409
7415
|
return (0, u.insertTableElementRow)((0, d.toRaw)(e), t, n);
|
|
7410
7416
|
}
|
|
7411
|
-
function
|
|
7417
|
+
function fu(e, t) {
|
|
7412
7418
|
const n = (0, d.toRaw)(e), o = (0, u.removeTableElementRow)(n, t);
|
|
7413
7419
|
return o === n ? null : o;
|
|
7414
7420
|
}
|
|
7415
|
-
function
|
|
7421
|
+
function gu(e, t, n) {
|
|
7416
7422
|
return (0, u.insertTableElementColumn)((0, d.toRaw)(e), t, n);
|
|
7417
7423
|
}
|
|
7418
|
-
function
|
|
7424
|
+
function yu(e, t) {
|
|
7419
7425
|
const n = (0, d.toRaw)(e), o = (0, u.removeTableElementColumn)(n, t);
|
|
7420
7426
|
return o === n ? null : o;
|
|
7421
7427
|
}
|
|
7422
|
-
function
|
|
7428
|
+
function hu(e, t) {
|
|
7423
7429
|
return !t || t.length < 2 || !(0, u.canMergeCells)(t, e) ? null : (0, u.mergeCells)(t, e);
|
|
7424
7430
|
}
|
|
7425
|
-
function
|
|
7431
|
+
function ku(e) {
|
|
7426
7432
|
const t = (0, d.shallowRef)(/* @__PURE__ */ new Map()), n = (0, d.shallowRef)(""), o = (0, d.shallowRef)(/* @__PURE__ */ new Set()), l = (0, d.shallowRef)(/* @__PURE__ */ new Set()), a = (0, d.shallowRef)(!0);
|
|
7427
7433
|
let r = null;
|
|
7428
7434
|
const i = [], s = (0, u.createActiveAnimationGroup)(), c = {
|
|
@@ -7432,8 +7438,8 @@ function hu(e) {
|
|
|
7432
7438
|
timers: i,
|
|
7433
7439
|
buildHandle: { current: null },
|
|
7434
7440
|
onPlayActionSound: e.onPlayActionSound,
|
|
7435
|
-
playSound:
|
|
7436
|
-
stopSound:
|
|
7441
|
+
playSound: Xc,
|
|
7442
|
+
stopSound: Zc,
|
|
7437
7443
|
frameRoot: e.frameRoot
|
|
7438
7444
|
}, p = () => !1 !== (0, d.toValue)(e.showWithAnimation);
|
|
7439
7445
|
function m() {
|
|
@@ -7502,11 +7508,11 @@ function hu(e) {
|
|
|
7502
7508
|
clearTimers: m
|
|
7503
7509
|
};
|
|
7504
7510
|
}
|
|
7505
|
-
var
|
|
7506
|
-
function
|
|
7511
|
+
var xu = 0;
|
|
7512
|
+
function bu(e, t, n, o, l) {
|
|
7507
7513
|
const a = "pen" === e;
|
|
7508
7514
|
return {
|
|
7509
|
-
id: `stroke-${
|
|
7515
|
+
id: `stroke-${xu += 1}`,
|
|
7510
7516
|
points: [{
|
|
7511
7517
|
x: t,
|
|
7512
7518
|
y: n
|
|
@@ -7516,14 +7522,14 @@ function xu(e, t, n, o, l) {
|
|
|
7516
7522
|
opacity: a ? 1 : .4
|
|
7517
7523
|
};
|
|
7518
7524
|
}
|
|
7519
|
-
function
|
|
7525
|
+
function Su(e, t, n, o = 16) {
|
|
7520
7526
|
const l = o * o, a = e.filter((e) => !e.points.some((e) => {
|
|
7521
7527
|
const o = e.x - t, a = e.y - n;
|
|
7522
7528
|
return o * o + a * a < l;
|
|
7523
7529
|
}));
|
|
7524
7530
|
return a.length === e.length ? e : a;
|
|
7525
7531
|
}
|
|
7526
|
-
function
|
|
7532
|
+
function wu(e) {
|
|
7527
7533
|
const t = (0, d.ref)("none"), n = (0, d.ref)("#ff0000"), o = (0, d.ref)("#ffff00"), l = (0, d.ref)([]), a = (0, d.ref)(null), r = (0, d.ref)(null), i = /* @__PURE__ */ new Map(), s = (0, d.ref)(0);
|
|
7528
7534
|
let c = !1, u = (0, d.toValue)(e.activeSlideIndex);
|
|
7529
7535
|
function p() {
|
|
@@ -7553,7 +7559,7 @@ function Su(e) {
|
|
|
7553
7559
|
handlePointerDown: function(l, r) {
|
|
7554
7560
|
if (!(0, d.toValue)(e.isActive)) return;
|
|
7555
7561
|
const i = t.value;
|
|
7556
|
-
"pen" !== i && "highlighter" !== i || (c = !0, a.value =
|
|
7562
|
+
"pen" !== i && "highlighter" !== i || (c = !0, a.value = bu(i, l, r, n.value, o.value));
|
|
7557
7563
|
},
|
|
7558
7564
|
handlePointerMove: function(t, n) {
|
|
7559
7565
|
if (!(0, d.toValue)(e.isActive) || !c) return;
|
|
@@ -7587,7 +7593,7 @@ function Su(e) {
|
|
|
7587
7593
|
},
|
|
7588
7594
|
eraseAtPoint: function(n, o) {
|
|
7589
7595
|
if (!(0, d.toValue)(e.isActive) || "eraser" !== t.value) return;
|
|
7590
|
-
const a =
|
|
7596
|
+
const a = Su(l.value, n, o);
|
|
7591
7597
|
if (a === l.value) return;
|
|
7592
7598
|
l.value = a;
|
|
7593
7599
|
const r = (0, d.toValue)(e.activeSlideIndex);
|
|
@@ -7607,7 +7613,7 @@ function Su(e) {
|
|
|
7607
7613
|
hasAnyAnnotations: (0, d.computed)(() => (s.value, l.value.length > 0 || i.size > 0))
|
|
7608
7614
|
};
|
|
7609
7615
|
}
|
|
7610
|
-
function
|
|
7616
|
+
function Eu(e) {
|
|
7611
7617
|
const t = (0, d.ref)(!1);
|
|
7612
7618
|
let n = null;
|
|
7613
7619
|
function o() {
|
|
@@ -7629,7 +7635,7 @@ function wu(e) {
|
|
|
7629
7635
|
}
|
|
7630
7636
|
};
|
|
7631
7637
|
}
|
|
7632
|
-
function
|
|
7638
|
+
function Bu(e) {
|
|
7633
7639
|
const { targetRef: t, currentScale: n, minScale: o, maxScale: l, callbacks: a, enabled: r = !0 } = e;
|
|
7634
7640
|
let i = null;
|
|
7635
7641
|
const s = () => {
|
|
@@ -7653,7 +7659,7 @@ function Eu(e) {
|
|
|
7653
7659
|
})(e);
|
|
7654
7660
|
}, { immediate: !0 }), (0, d.onScopeDispose)(s);
|
|
7655
7661
|
}
|
|
7656
|
-
function
|
|
7662
|
+
function Cu(e) {
|
|
7657
7663
|
const t = (0, d.computed)(() => {
|
|
7658
7664
|
const t = e.transition();
|
|
7659
7665
|
return "morph" === t?.type ? (0, u.buildMorphTransitionPlan)(e.outgoingSlide(), e.incomingSlide(), e.durationMs(), (0, u.morphOptionToMode)(t.morphOption)) : void 0;
|
|
@@ -7710,7 +7716,7 @@ function Bu(e) {
|
|
|
7710
7716
|
})
|
|
7711
7717
|
};
|
|
7712
7718
|
}
|
|
7713
|
-
var
|
|
7719
|
+
var Iu = ["data-pptx-transition-fragment"], Pu = Xo((0, d.defineComponent)({
|
|
7714
7720
|
__name: "FragmentedTransitionLayer",
|
|
7715
7721
|
props: {
|
|
7716
7722
|
layer: {},
|
|
@@ -7743,7 +7749,7 @@ var Cu = ["data-pptx-transition-fragment"], Iu = Xo((0, d.defineComponent)({
|
|
|
7743
7749
|
"data-pptx-transition-fragment": t.id,
|
|
7744
7750
|
class: "pptx-vue-transition-fragment",
|
|
7745
7751
|
style: (0, d.normalizeStyle)(o(t))
|
|
7746
|
-
}, [(0, d.createVNode)(
|
|
7752
|
+
}, [(0, d.createVNode)(Hc, {
|
|
7747
7753
|
slide: e.slide,
|
|
7748
7754
|
"canvas-size": e.canvasSize,
|
|
7749
7755
|
"media-data-urls": e.mediaDataUrls,
|
|
@@ -7753,9 +7759,9 @@ var Cu = ["data-pptx-transition-fragment"], Iu = Xo((0, d.defineComponent)({
|
|
|
7753
7759
|
"canvas-size",
|
|
7754
7760
|
"media-data-urls",
|
|
7755
7761
|
"scale"
|
|
7756
|
-
])], 12,
|
|
7762
|
+
])], 12, Iu))), 128));
|
|
7757
7763
|
}
|
|
7758
|
-
}), [["__scopeId", "data-v-f67781fa"]]),
|
|
7764
|
+
}), [["__scopeId", "data-v-f67781fa"]]), Tu = ["data-pptx-morph-crossfade"], _u = Xo((0, d.defineComponent)({
|
|
7759
7765
|
__name: "MorphExtraLayers",
|
|
7760
7766
|
props: {
|
|
7761
7767
|
liftedSlide: {},
|
|
@@ -7771,7 +7777,7 @@ var Cu = ["data-pptx-transition-fragment"], Iu = Xo((0, d.defineComponent)({
|
|
|
7771
7777
|
"data-pptx-transition-layer": "lifted",
|
|
7772
7778
|
"data-pptx-morph-lifted": "true",
|
|
7773
7779
|
style: (0, d.normalizeStyle)(e.liftedLayerStyle)
|
|
7774
|
-
}, [(0, d.createVNode)(
|
|
7780
|
+
}, [(0, d.createVNode)(Hc, {
|
|
7775
7781
|
slide: e.liftedSlide,
|
|
7776
7782
|
"canvas-size": e.canvasSize,
|
|
7777
7783
|
"media-data-urls": e.mediaDataUrls,
|
|
@@ -7792,7 +7798,7 @@ var Cu = ["data-pptx-transition-fragment"], Iu = Xo((0, d.defineComponent)({
|
|
|
7792
7798
|
"data-pptx-transition-layer": "outgoing",
|
|
7793
7799
|
"data-pptx-morph-outgoing": "true",
|
|
7794
7800
|
style: (0, d.normalizeStyle)(t.outgoingStyle)
|
|
7795
|
-
}, [(0, d.createVNode)(
|
|
7801
|
+
}, [(0, d.createVNode)(Hc, {
|
|
7796
7802
|
slide: t.outgoingSlide,
|
|
7797
7803
|
"canvas-size": e.canvasSize,
|
|
7798
7804
|
"media-data-urls": e.mediaDataUrls,
|
|
@@ -7809,7 +7815,7 @@ var Cu = ["data-pptx-transition-fragment"], Iu = Xo((0, d.defineComponent)({
|
|
|
7809
7815
|
"data-pptx-transition-layer": "lifted",
|
|
7810
7816
|
"data-pptx-morph-lifted": "true",
|
|
7811
7817
|
style: (0, d.normalizeStyle)(t.incomingStyle)
|
|
7812
|
-
}, [(0, d.createVNode)(
|
|
7818
|
+
}, [(0, d.createVNode)(Hc, {
|
|
7813
7819
|
slide: t.incomingSlide,
|
|
7814
7820
|
"canvas-size": e.canvasSize,
|
|
7815
7821
|
"media-data-urls": e.mediaDataUrls,
|
|
@@ -7821,11 +7827,11 @@ var Cu = ["data-pptx-transition-fragment"], Iu = Xo((0, d.defineComponent)({
|
|
|
7821
7827
|
"canvas-size",
|
|
7822
7828
|
"media-data-urls",
|
|
7823
7829
|
"scale"
|
|
7824
|
-
])], 4)], 12,
|
|
7825
|
-
}), [["__scopeId", "data-v-adf1a9bf"]]),
|
|
7830
|
+
])], 4)], 12, Tu))), 128))], 64))
|
|
7831
|
+
}), [["__scopeId", "data-v-adf1a9bf"]]), Ou = {
|
|
7826
7832
|
class: "pptx-vue-transition-overlay",
|
|
7827
7833
|
"data-pptx-transition-overlay": ""
|
|
7828
|
-
},
|
|
7834
|
+
}, Du = ["data-pptx-morph-outgoing", "data-pptx-transition-fragments"], Nu = ["data-pptx-morph-incoming", "data-pptx-transition-fragments"], Lu = Xo((0, d.defineComponent)({
|
|
7829
7835
|
__name: "PresentationTransitionOverlay",
|
|
7830
7836
|
props: {
|
|
7831
7837
|
outgoingSlide: {},
|
|
@@ -7837,7 +7843,7 @@ var Cu = ["data-pptx-transition-fragment"], Iu = Xo((0, d.defineComponent)({
|
|
|
7837
7843
|
},
|
|
7838
7844
|
emits: ["done"],
|
|
7839
7845
|
setup(e, { emit: t }) {
|
|
7840
|
-
const n = e, o = t, l = (0, d.computed)(() => (0, u.resolveSlideTransition)(n.transition)), a = (0, d.computed)(() => (0, u.resolveTransitionDurationMs)(n.transition)), r = (0, d.computed)(() => n.transition ? (0, u.getFragmentedTransitionDescriptor)(n.transition.type, a.value, n.transition.direction, n.transition.spokes, n.transition.pattern) : void 0), { morphPlan: i, morphOutgoingSlide: s, morphLiftedSlide: c, morphCrossfadeGroups: p, morphCss: m } =
|
|
7846
|
+
const n = e, o = t, l = (0, d.computed)(() => (0, u.resolveSlideTransition)(n.transition)), a = (0, d.computed)(() => (0, u.resolveTransitionDurationMs)(n.transition)), r = (0, d.computed)(() => n.transition ? (0, u.getFragmentedTransitionDescriptor)(n.transition.type, a.value, n.transition.direction, n.transition.spokes, n.transition.pattern) : void 0), { morphPlan: i, morphOutgoingSlide: s, morphLiftedSlide: c, morphCrossfadeGroups: p, morphCss: m } = Cu({
|
|
7841
7847
|
transition: () => n.transition,
|
|
7842
7848
|
outgoingSlide: () => n.outgoingSlide,
|
|
7843
7849
|
incomingSlide: () => n.incomingSlide,
|
|
@@ -7851,8 +7857,8 @@ var Cu = ["data-pptx-transition-fragment"], Iu = Xo((0, d.defineComponent)({
|
|
|
7851
7857
|
}));
|
|
7852
7858
|
(0, d.watch)(() => n.transition, (e) => {
|
|
7853
7859
|
(0, u.applySlideTransitionSound)(e, (e) => n.mediaDataUrls.get(e), {
|
|
7854
|
-
play:
|
|
7855
|
-
stop:
|
|
7860
|
+
play: Xc,
|
|
7861
|
+
stop: Zc
|
|
7856
7862
|
});
|
|
7857
7863
|
}, { immediate: !0 });
|
|
7858
7864
|
let k = null;
|
|
@@ -7863,7 +7869,7 @@ var Cu = ["data-pptx-transition-fragment"], Iu = Xo((0, d.defineComponent)({
|
|
|
7863
7869
|
}, e);
|
|
7864
7870
|
}), (0, d.onBeforeUnmount)(function() {
|
|
7865
7871
|
null !== k && (clearTimeout(k), k = null);
|
|
7866
|
-
}), (t, n) => ((0, d.openBlock)(), (0, d.createElementBlock)("div",
|
|
7872
|
+
}), (t, n) => ((0, d.openBlock)(), (0, d.createElementBlock)("div", Ou, [
|
|
7867
7873
|
((0, d.openBlock)(), (0, d.createBlock)((0, d.resolveDynamicComponent)("style"), null, {
|
|
7868
7874
|
default: (0, d.withCtx)(() => [(0, d.createTextVNode)((0, d.toDisplayString)((0, d.unref)(u.SLIDE_TRANSITION_KEYFRAMES_CSS)), 1)]),
|
|
7869
7875
|
_: 1
|
|
@@ -7878,7 +7884,7 @@ var Cu = ["data-pptx-transition-fragment"], Iu = Xo((0, d.defineComponent)({
|
|
|
7878
7884
|
"data-pptx-morph-outgoing": (0, d.unref)(i) ? "true" : void 0,
|
|
7879
7885
|
"data-pptx-transition-fragments": !(0, d.unref)(i) && r.value?.outgoing ? r.value.outgoing.keyframesName : void 0,
|
|
7880
7886
|
style: (0, d.normalizeStyle)(g.value)
|
|
7881
|
-
}, [!(0, d.unref)(i) && r.value?.outgoing ? ((0, d.openBlock)(), (0, d.createBlock)(
|
|
7887
|
+
}, [!(0, d.unref)(i) && r.value?.outgoing ? ((0, d.openBlock)(), (0, d.createBlock)(Pu, {
|
|
7882
7888
|
key: 0,
|
|
7883
7889
|
layer: r.value.outgoing,
|
|
7884
7890
|
slide: e.outgoingSlide,
|
|
@@ -7892,7 +7898,7 @@ var Cu = ["data-pptx-transition-fragment"], Iu = Xo((0, d.defineComponent)({
|
|
|
7892
7898
|
"canvas-size",
|
|
7893
7899
|
"media-data-urls",
|
|
7894
7900
|
"scale"
|
|
7895
|
-
])) : ((0, d.openBlock)(), (0, d.createBlock)(
|
|
7901
|
+
])) : ((0, d.openBlock)(), (0, d.createBlock)(Hc, {
|
|
7896
7902
|
key: 1,
|
|
7897
7903
|
slide: (0, d.unref)(i) ? (0, d.unref)(s) : e.outgoingSlide,
|
|
7898
7904
|
"canvas-size": e.canvasSize,
|
|
@@ -7907,14 +7913,14 @@ var Cu = ["data-pptx-transition-fragment"], Iu = Xo((0, d.defineComponent)({
|
|
|
7907
7913
|
"scale",
|
|
7908
7914
|
"preserve-element-ids",
|
|
7909
7915
|
"transparent-background"
|
|
7910
|
-
]))], 12,
|
|
7916
|
+
]))], 12, Du),
|
|
7911
7917
|
(0, d.createElementVNode)("div", {
|
|
7912
7918
|
class: "pptx-vue-transition-layer",
|
|
7913
7919
|
"data-pptx-transition-layer": "incoming",
|
|
7914
7920
|
"data-pptx-morph-incoming": (0, d.unref)(i) ? "true" : void 0,
|
|
7915
7921
|
"data-pptx-transition-fragments": !(0, d.unref)(i) && r.value?.incoming ? r.value.incoming.keyframesName : void 0,
|
|
7916
7922
|
style: (0, d.normalizeStyle)(h.value)
|
|
7917
|
-
}, [!(0, d.unref)(i) && r.value?.incoming ? ((0, d.openBlock)(), (0, d.createBlock)(
|
|
7923
|
+
}, [!(0, d.unref)(i) && r.value?.incoming ? ((0, d.openBlock)(), (0, d.createBlock)(Pu, {
|
|
7918
7924
|
key: 0,
|
|
7919
7925
|
layer: r.value.incoming,
|
|
7920
7926
|
slide: e.incomingSlide,
|
|
@@ -7928,7 +7934,7 @@ var Cu = ["data-pptx-transition-fragment"], Iu = Xo((0, d.defineComponent)({
|
|
|
7928
7934
|
"canvas-size",
|
|
7929
7935
|
"media-data-urls",
|
|
7930
7936
|
"scale"
|
|
7931
|
-
])) : ((0, d.openBlock)(), (0, d.createBlock)(
|
|
7937
|
+
])) : ((0, d.openBlock)(), (0, d.createBlock)(Hc, {
|
|
7932
7938
|
key: 1,
|
|
7933
7939
|
slide: e.incomingSlide,
|
|
7934
7940
|
"canvas-size": e.canvasSize,
|
|
@@ -7941,8 +7947,8 @@ var Cu = ["data-pptx-transition-fragment"], Iu = Xo((0, d.defineComponent)({
|
|
|
7941
7947
|
"media-data-urls",
|
|
7942
7948
|
"scale",
|
|
7943
7949
|
"preserve-element-ids"
|
|
7944
|
-
]))], 12,
|
|
7945
|
-
(0, d.createVNode)(
|
|
7950
|
+
]))], 12, Nu),
|
|
7951
|
+
(0, d.createVNode)(_u, {
|
|
7946
7952
|
"lifted-slide": (0, d.unref)(c),
|
|
7947
7953
|
"lifted-layer-style": y.value,
|
|
7948
7954
|
"crossfade-groups": (0, d.unref)(p),
|
|
@@ -7960,16 +7966,16 @@ var Cu = ["data-pptx-transition-fragment"], Iu = Xo((0, d.defineComponent)({
|
|
|
7960
7966
|
]));
|
|
7961
7967
|
}
|
|
7962
7968
|
}), [["__scopeId", "data-v-be6bfe13"]]);
|
|
7963
|
-
function
|
|
7969
|
+
function Au(e) {
|
|
7964
7970
|
const t = Math.max(0, Math.floor(e / 1e3)), n = Math.floor(t / 60), o = t % 60;
|
|
7965
7971
|
return `${String(n)}:${String(o).padStart(2, "0")}`;
|
|
7966
7972
|
}
|
|
7967
|
-
function
|
|
7973
|
+
function Mu(e, t, n = 0, o = null) {
|
|
7968
7974
|
if (null === e) return 0;
|
|
7969
7975
|
let l = n;
|
|
7970
7976
|
return null !== o && (l += t - o), Math.max(0, t - e - l);
|
|
7971
7977
|
}
|
|
7972
|
-
function
|
|
7978
|
+
function Fu(e = {}) {
|
|
7973
7979
|
const t = e.now ?? Date.now, n = e.tickIntervalMs ?? 250, o = (0, d.ref)(!1), l = (0, d.ref)(!1), a = (0, d.ref)(!1), r = (0, d.ref)({}), i = (0, d.ref)(null), s = (0, d.ref)(null);
|
|
7974
7980
|
let c = 0, u = null;
|
|
7975
7981
|
const p = (0, d.ref)(0);
|
|
@@ -7982,7 +7988,7 @@ function Mu(e = {}) {
|
|
|
7982
7988
|
p.value += 1;
|
|
7983
7989
|
}, n));
|
|
7984
7990
|
}
|
|
7985
|
-
const g = (0, d.computed)(() => (p.value, o.value ?
|
|
7991
|
+
const g = (0, d.computed)(() => (p.value, o.value ? Mu(s.value, t(), c, u) : 0)), y = (0, d.computed)(() => (p.value, o.value ? Mu(i.value, t()) : 0)), h = (0, d.computed)(() => Object.values(r.value).reduce((e, t) => e + t, 0));
|
|
7986
7992
|
return (0, d.onScopeDispose)(v), {
|
|
7987
7993
|
rehearsing: o,
|
|
7988
7994
|
paused: l,
|
|
@@ -7997,7 +8003,7 @@ function Mu(e = {}) {
|
|
|
7997
8003
|
},
|
|
7998
8004
|
recordCurrentSlideTime: function(e) {
|
|
7999
8005
|
if (null === s.value) return;
|
|
8000
|
-
const n =
|
|
8006
|
+
const n = Mu(s.value, t(), c, u);
|
|
8001
8007
|
r.value = {
|
|
8002
8008
|
...r.value,
|
|
8003
8009
|
[e]: n
|
|
@@ -8017,18 +8023,18 @@ function Mu(e = {}) {
|
|
|
8017
8023
|
}
|
|
8018
8024
|
};
|
|
8019
8025
|
}
|
|
8020
|
-
var
|
|
8026
|
+
var zu = {
|
|
8021
8027
|
valid: 0,
|
|
8022
8028
|
unverified: 1,
|
|
8023
8029
|
unknownCA: 2,
|
|
8024
8030
|
expired: 3,
|
|
8025
8031
|
invalid: 4
|
|
8026
8032
|
};
|
|
8027
|
-
function
|
|
8033
|
+
function Ru(e) {
|
|
8028
8034
|
const t = (0, d.computed)(() => (0, d.toValue)(e) ?? []), n = (0, d.computed)(() => t.value.length > 0), o = (0, d.computed)(() => {
|
|
8029
8035
|
if (0 === t.value.length) return;
|
|
8030
8036
|
let e = "valid";
|
|
8031
|
-
for (const n of t.value)
|
|
8037
|
+
for (const n of t.value) zu[n.status] > zu[e] && (e = n.status);
|
|
8032
8038
|
return e;
|
|
8033
8039
|
});
|
|
8034
8040
|
return {
|
|
@@ -8038,26 +8044,26 @@ function zu(e) {
|
|
|
8038
8044
|
overall: (0, d.computed)(() => n.value ? "invalid" === o.value ? "invalid" : "signed" : "unsigned")
|
|
8039
8045
|
};
|
|
8040
8046
|
}
|
|
8041
|
-
var
|
|
8047
|
+
var Vu = {
|
|
8042
8048
|
error: 0,
|
|
8043
8049
|
warning: 1,
|
|
8044
8050
|
tip: 2
|
|
8045
8051
|
};
|
|
8046
|
-
function
|
|
8052
|
+
function ju(e, t = {}) {
|
|
8047
8053
|
const n = (0, d.computed)(() => {
|
|
8048
8054
|
const n = (0, d.toValue)(e), o = (0, d.toValue)(t), l = o.minContrastRatio ?? 4.5, a = o.skipContrast ?? !1, r = o.skipBlankSlide ?? !1, i = [];
|
|
8049
8055
|
for (let e = 0; e < n.length; e++) {
|
|
8050
8056
|
const t = n[e];
|
|
8051
8057
|
i.push(...(0, h.checkMissingAltText)(t, e)), i.push(...(0, h.checkMissingSlideTitle)(t, e)), a || i.push(...(0, h.checkLowContrast)(t, e, l, t.backgroundColor)), i.push(...(0, h.checkComplexTables)(t, e)), r || i.push(...(0, h.checkBlankSlide)(t, e));
|
|
8052
8058
|
}
|
|
8053
|
-
return i.push(...(0, h.checkDuplicateTitles)(n)), i.sort((e, t) => e.slideIndex - t.slideIndex ||
|
|
8059
|
+
return i.push(...(0, h.checkDuplicateTitles)(n)), i.sort((e, t) => e.slideIndex - t.slideIndex || Vu[e.severity] - Vu[t.severity]), i;
|
|
8054
8060
|
});
|
|
8055
8061
|
return {
|
|
8056
8062
|
issues: n,
|
|
8057
8063
|
issueCount: (0, d.computed)(() => n.value.length)
|
|
8058
8064
|
};
|
|
8059
8065
|
}
|
|
8060
|
-
function
|
|
8066
|
+
function $u(e) {
|
|
8061
8067
|
const { selectedElements: t, selectedElementIds: n, activeSlideIndex: o, slides: l, canvasSize: a, pushHistory: r } = e;
|
|
8062
8068
|
function i(e) {
|
|
8063
8069
|
if (0 === e.size) return;
|
|
@@ -8115,14 +8121,14 @@ function ju(e) {
|
|
|
8115
8121
|
}
|
|
8116
8122
|
};
|
|
8117
8123
|
}
|
|
8118
|
-
var
|
|
8124
|
+
var Wu = {
|
|
8119
8125
|
setTimer: (e, t) => setTimeout(e, t),
|
|
8120
8126
|
clearTimer: (e) => {
|
|
8121
8127
|
clearTimeout(e);
|
|
8122
8128
|
}
|
|
8123
8129
|
};
|
|
8124
|
-
function
|
|
8125
|
-
const { slides: t, templateElements: n, enabled: o = !0, intervalMs: l, onSave: a } = e, r = e.timers ??
|
|
8130
|
+
function Uu(e) {
|
|
8131
|
+
const { slides: t, templateElements: n, enabled: o = !0, intervalMs: l, onSave: a } = e, r = e.timers ?? Wu, i = (0, d.ref)("idle"), s = (0, d.ref)(null), c = (0, d.ref)(!1);
|
|
8126
8132
|
let p = null, m = null, v = null;
|
|
8127
8133
|
const f = () => !1 !== (0, d.toValue)(o), g = () => {
|
|
8128
8134
|
null !== p && (r.clearTimer(p), p = null);
|
|
@@ -8165,7 +8171,7 @@ function Wu(e) {
|
|
|
8165
8171
|
isDirty: c
|
|
8166
8172
|
};
|
|
8167
8173
|
}
|
|
8168
|
-
function
|
|
8174
|
+
function Hu(e, t) {
|
|
8169
8175
|
const n = (0, d.ref)(!1), o = (0, u.createCollaborationLivePatcher)();
|
|
8170
8176
|
let l = null, a = null, r = null, i = !1, s = "", c = null, p = null;
|
|
8171
8177
|
const m = (0, u.createWriteBackScheduler)({
|
|
@@ -8253,13 +8259,13 @@ function Uu(e, t) {
|
|
|
8253
8259
|
}
|
|
8254
8260
|
};
|
|
8255
8261
|
}
|
|
8256
|
-
var
|
|
8257
|
-
function
|
|
8258
|
-
if (void 0 === e) return
|
|
8262
|
+
var Gu = 1e5;
|
|
8263
|
+
function Ku(e) {
|
|
8264
|
+
if (void 0 === e) return Gu;
|
|
8259
8265
|
const t = "number" == typeof e ? e : e.value;
|
|
8260
|
-
return t > 0 ? t :
|
|
8266
|
+
return t > 0 ? t : Gu;
|
|
8261
8267
|
}
|
|
8262
|
-
function
|
|
8268
|
+
function Yu(e) {
|
|
8263
8269
|
const t = (0, d.ref)([]), n = (0, d.ref)([]), o = (0, d.ref)([]), l = (0, d.ref)(null), a = (0, d.computed)(() => t.value.find((e) => e.clientId === l.value)?.activeSlide ?? null), r = (0, d.computed)(() => t.value.find((e) => "owner" === e.role)?.activeSlide ?? null), i = function() {
|
|
8264
8270
|
const e = (0, u.createPresenceProjector)();
|
|
8265
8271
|
let t = [];
|
|
@@ -8297,7 +8303,7 @@ function Ku(e) {
|
|
|
8297
8303
|
let s = null, c = null, p = 0, m = null;
|
|
8298
8304
|
function v() {
|
|
8299
8305
|
if (!s) return;
|
|
8300
|
-
const a = i.project(s.getStates(), s.clientID ?? -1,
|
|
8306
|
+
const a = i.project(s.getStates(), s.clientID ?? -1, Ku(e.canvasWidth), Ku(e.canvasHeight), p);
|
|
8301
8307
|
a.changed && (t.value = a.presences, n.value = a.remoteUsers, o.value = a.cursors, null === l.value || a.presences.some((e) => e.clientId === l.value) || (l.value = null));
|
|
8302
8308
|
}
|
|
8303
8309
|
return {
|
|
@@ -8331,8 +8337,8 @@ function Ku(e) {
|
|
|
8331
8337
|
}
|
|
8332
8338
|
};
|
|
8333
8339
|
}
|
|
8334
|
-
function
|
|
8335
|
-
const t = (0, d.ref)("disconnected"), n = (0, d.computed)(() => "connected" === t.value), o = (0, d.ref)(!1), l = (0, d.shallowRef)(null), a = (0, d.ref)(void 0), r =
|
|
8340
|
+
function qu(e) {
|
|
8341
|
+
const t = (0, d.ref)("disconnected"), n = (0, d.computed)(() => "connected" === t.value), o = (0, d.ref)(!1), l = (0, d.shallowRef)(null), a = (0, d.ref)(void 0), r = Yu(e), i = Hu(e, t), s = (0, d.computed)(() => (0, u.resolveCollaborationShellState)({
|
|
8336
8342
|
authorizedCanEdit: (0, d.toValue)(e.canEdit) ?? !0,
|
|
8337
8343
|
configured: Boolean((0, d.toValue)(e.collaboration) || l.value),
|
|
8338
8344
|
readOnly: i.readOnly.value,
|
|
@@ -8373,7 +8379,7 @@ function Yu(e) {
|
|
|
8373
8379
|
}
|
|
8374
8380
|
const h = await async function(e, t, n) {
|
|
8375
8381
|
if ("webrtc" === e) {
|
|
8376
|
-
const { WebrtcProvider: e } = await Promise.resolve().then(() => require("./y-webrtc-
|
|
8382
|
+
const { WebrtcProvider: e } = await Promise.resolve().then(() => require("./y-webrtc-B3osMP9B.cjs")), o = new e(t.roomId, n, {
|
|
8377
8383
|
signaling: t.signaling?.length ? t.signaling : void 0,
|
|
8378
8384
|
password: t.authToken || void 0
|
|
8379
8385
|
}), l = (0, u.createDepartureChannel)(t.roomId, o.awareness);
|
|
@@ -8459,8 +8465,8 @@ function Yu(e) {
|
|
|
8459
8465
|
livePatcher: i.livePatcher
|
|
8460
8466
|
};
|
|
8461
8467
|
}
|
|
8462
|
-
function
|
|
8463
|
-
const { slides: t, loadVersion: n, getLoadOrigin: o, getTemplateElements: l, getSourceBytes: a, getSaveOptions: r, initialUserColor: i, canvasWidth: s, canvasHeight: c, collaborationProp: p, selectedElementIds: m, activeSlideIndex: v, goTo: f, effectiveZoom: g, authorName: y, onStartCollaboration: h, onStopCollaboration: k } = e, x =
|
|
8468
|
+
function Xu(e) {
|
|
8469
|
+
const { slides: t, loadVersion: n, getLoadOrigin: o, getTemplateElements: l, getSourceBytes: a, getSaveOptions: r, initialUserColor: i, canvasWidth: s, canvasHeight: c, collaborationProp: p, selectedElementIds: m, activeSlideIndex: v, goTo: f, effectiveZoom: g, authorName: y, onStartCollaboration: h, onStopCollaboration: k } = e, x = qu({
|
|
8464
8470
|
collaboration: p,
|
|
8465
8471
|
slides: t,
|
|
8466
8472
|
loadVersion: n,
|
|
@@ -8530,7 +8536,7 @@ function qu(e) {
|
|
|
8530
8536
|
}
|
|
8531
8537
|
};
|
|
8532
8538
|
}
|
|
8533
|
-
function
|
|
8539
|
+
function Zu(e) {
|
|
8534
8540
|
const t = (0, d.computed)(() => (0, d.toValue)(e.comments) ?? []);
|
|
8535
8541
|
return {
|
|
8536
8542
|
slideComments: t,
|
|
@@ -8565,12 +8571,12 @@ function Xu(e) {
|
|
|
8565
8571
|
}
|
|
8566
8572
|
};
|
|
8567
8573
|
}
|
|
8568
|
-
function
|
|
8574
|
+
function Ju(e) {
|
|
8569
8575
|
const { activeSlide: t, activeSlideIndex: n, slides: o, authorName: l, pushHistory: a } = e, r = (0, d.ref)(!1), i = (0, d.computed)(() => t.value?.comments ?? []);
|
|
8570
8576
|
return {
|
|
8571
8577
|
showComments: r,
|
|
8572
8578
|
activeComments: i,
|
|
8573
|
-
commentsApi:
|
|
8579
|
+
commentsApi: Zu({
|
|
8574
8580
|
comments: i,
|
|
8575
8581
|
activeSlideIndex: n,
|
|
8576
8582
|
authorName: l
|
|
@@ -8591,7 +8597,7 @@ function Zu(e) {
|
|
|
8591
8597
|
}
|
|
8592
8598
|
};
|
|
8593
8599
|
}
|
|
8594
|
-
async function
|
|
8600
|
+
async function Qu(e, t = {}) {
|
|
8595
8601
|
const { default: n } = await import("html2canvas-pro"), o = t.onclone;
|
|
8596
8602
|
return n(e, {
|
|
8597
8603
|
...t,
|
|
@@ -8600,7 +8606,7 @@ async function Ju(e, t = {}) {
|
|
|
8600
8606
|
}
|
|
8601
8607
|
});
|
|
8602
8608
|
}
|
|
8603
|
-
function
|
|
8609
|
+
function ed(e, t, n) {
|
|
8604
8610
|
const o = t?.el.tableData;
|
|
8605
8611
|
if (!t || !o) return;
|
|
8606
8612
|
const l = (e) => {
|
|
@@ -8613,22 +8619,22 @@ function Qu(e, t, n) {
|
|
|
8613
8619
|
}, { rowIndex: r, columnIndex: i } = t.sel;
|
|
8614
8620
|
switch (e) {
|
|
8615
8621
|
case "table-insert-row-above":
|
|
8616
|
-
a(
|
|
8622
|
+
a(vu(t.el, r, "above"));
|
|
8617
8623
|
break;
|
|
8618
8624
|
case "table-insert-row-below":
|
|
8619
|
-
a(
|
|
8625
|
+
a(vu(t.el, r, "below"));
|
|
8620
8626
|
break;
|
|
8621
8627
|
case "table-delete-row":
|
|
8622
|
-
a(
|
|
8628
|
+
a(fu(t.el, r));
|
|
8623
8629
|
break;
|
|
8624
8630
|
case "table-insert-col-left":
|
|
8625
|
-
a(
|
|
8631
|
+
a(gu(t.el, i, "left"));
|
|
8626
8632
|
break;
|
|
8627
8633
|
case "table-insert-col-right":
|
|
8628
|
-
a(
|
|
8634
|
+
a(gu(t.el, i, "right"));
|
|
8629
8635
|
break;
|
|
8630
8636
|
case "table-delete-col":
|
|
8631
|
-
a(
|
|
8637
|
+
a(yu(t.el, i));
|
|
8632
8638
|
break;
|
|
8633
8639
|
case "table-merge-right":
|
|
8634
8640
|
l(function(e, t, n) {
|
|
@@ -8649,7 +8655,7 @@ function Qu(e, t, n) {
|
|
|
8649
8655
|
}(o, r, i));
|
|
8650
8656
|
break;
|
|
8651
8657
|
case "table-merge-selected":
|
|
8652
|
-
l(
|
|
8658
|
+
l(hu(o, t.sel.selectedCells));
|
|
8653
8659
|
break;
|
|
8654
8660
|
case "table-split": l(function(e, t, n) {
|
|
8655
8661
|
const o = (0, u.computeSplitCell)(e, t, n);
|
|
@@ -8660,7 +8666,7 @@ function Qu(e, t, n) {
|
|
|
8660
8666
|
}(o, r, i));
|
|
8661
8667
|
}
|
|
8662
8668
|
}
|
|
8663
|
-
function
|
|
8669
|
+
function td(e) {
|
|
8664
8670
|
const { t } = Ho(), { canEdit: n, findActiveElement: o, tableSelection: l, hasClipboard: a, canGroup: r, selectionGroupable: i, editTemplateMode: s, selectedElementIds: c, inlineEditingElementId: p, inspectorOpen: m, enterInlineEdit: v, ops: f, cutElement: g, copyElement: y, pasteElement: h, onGroup: k, onUngroup: x, openHyperlinkDialog: b, onAddComment: S, aiEnabled: w, onAskAi: E, onFixAi: B, onEmptyCanvasContextMenu: C, customization: I, onEditPoints: P, mergeCrop: T } = e, _ = (0, d.ref)({
|
|
8665
8671
|
open: !1,
|
|
8666
8672
|
x: 0,
|
|
@@ -8796,7 +8802,7 @@ function ed(e) {
|
|
|
8796
8802
|
const l = o.getBoundingClientRect(), a = l.width || o.offsetWidth, r = l.height || o.offsetHeight;
|
|
8797
8803
|
await (0, u.saveElementAsPicture)(o, a, r, document, (0, u.elementPictureFilename)(t, n), {
|
|
8798
8804
|
scale: 2,
|
|
8799
|
-
html2canvasFallback: (e, t) =>
|
|
8805
|
+
html2canvasFallback: (e, t) => Qu(o, {
|
|
8800
8806
|
scale: t.width / (e.width || 1),
|
|
8801
8807
|
x: e.x,
|
|
8802
8808
|
y: e.y,
|
|
@@ -8823,14 +8829,14 @@ function ed(e) {
|
|
|
8823
8829
|
break;
|
|
8824
8830
|
default: {
|
|
8825
8831
|
const t = (0, u.mergeOperationForCommand)(e);
|
|
8826
|
-
t ? T?.merge(t) :
|
|
8832
|
+
t ? T?.merge(t) : ed(e, D.value, f);
|
|
8827
8833
|
break;
|
|
8828
8834
|
}
|
|
8829
8835
|
}
|
|
8830
8836
|
}
|
|
8831
8837
|
};
|
|
8832
8838
|
}
|
|
8833
|
-
function
|
|
8839
|
+
function nd(e) {
|
|
8834
8840
|
const { customShows: t, slides: n, activeSlideIndex: o, pushHistory: l } = e, a = (0, d.computed)(() => {
|
|
8835
8841
|
const e = n.value[o.value];
|
|
8836
8842
|
return e?.rId && e.rId.length > 0 ? e.rId : void 0;
|
|
@@ -8893,8 +8899,8 @@ function td(e) {
|
|
|
8893
8899
|
activeSlideRId: a
|
|
8894
8900
|
};
|
|
8895
8901
|
}
|
|
8896
|
-
function
|
|
8897
|
-
const { customShows: t, slides: n, activeSlideIndex: o, activeSlide: l, pushHistory: a } = e, { t: r } = Ho(), i = (0, d.ref)(!1), s = (0, d.ref)(null), c =
|
|
8902
|
+
function od(e) {
|
|
8903
|
+
const { customShows: t, slides: n, activeSlideIndex: o, activeSlide: l, pushHistory: a } = e, { t: r } = Ho(), i = (0, d.ref)(!1), s = (0, d.ref)(null), c = nd({
|
|
8898
8904
|
customShows: t,
|
|
8899
8905
|
slides: n,
|
|
8900
8906
|
activeSlideIndex: o,
|
|
@@ -8937,7 +8943,7 @@ function nd(e) {
|
|
|
8937
8943
|
}
|
|
8938
8944
|
};
|
|
8939
8945
|
}
|
|
8940
|
-
function
|
|
8946
|
+
function ld(e) {
|
|
8941
8947
|
const { coreProperties: t, customProperties: n, appProperties: o } = e, l = (0, d.ref)(!1);
|
|
8942
8948
|
return {
|
|
8943
8949
|
propertiesOpen: l,
|
|
@@ -8952,7 +8958,7 @@ function od(e) {
|
|
|
8952
8958
|
}
|
|
8953
8959
|
};
|
|
8954
8960
|
}
|
|
8955
|
-
function
|
|
8961
|
+
function ad(e, t, n) {
|
|
8956
8962
|
const o = new u.EditorHistory({ maxDepth: n?.maxDepth ?? 120 }), l = (0, d.shallowRef)(0), a = () => {
|
|
8957
8963
|
l.value++;
|
|
8958
8964
|
}, r = (e) => {
|
|
@@ -8989,17 +8995,17 @@ function ld(e, t, n) {
|
|
|
8989
8995
|
}
|
|
8990
8996
|
};
|
|
8991
8997
|
}
|
|
8992
|
-
function
|
|
8998
|
+
function rd(e, t) {
|
|
8993
8999
|
return 0 === t.size ? e : (0, u.applyReroutedConnectors)(e, (0, u.rerouteConnectorsForMovedElements)(e, t));
|
|
8994
9000
|
}
|
|
8995
|
-
function
|
|
9001
|
+
function id(e) {
|
|
8996
9002
|
const { slides: t, activeSlideIndex: n, templateElementsBySlideId: o } = e;
|
|
8997
9003
|
return function(e) {
|
|
8998
9004
|
if (0 === e.size) return;
|
|
8999
9005
|
const l = n.value, a = function(e, t, n) {
|
|
9000
9006
|
const o = e[t];
|
|
9001
9007
|
if (!o) return e;
|
|
9002
|
-
const l =
|
|
9008
|
+
const l = rd(o.elements, n);
|
|
9003
9009
|
if (l === o.elements) return e;
|
|
9004
9010
|
const a = e.slice();
|
|
9005
9011
|
return a[t] = {
|
|
@@ -9010,11 +9016,11 @@ function rd(e) {
|
|
|
9010
9016
|
a !== t.value && (t.value = a);
|
|
9011
9017
|
const r = t.value[l], i = r ? o.value[r.id] : void 0;
|
|
9012
9018
|
if (!r || !i) return;
|
|
9013
|
-
const s =
|
|
9019
|
+
const s = rd(i, e);
|
|
9014
9020
|
s !== i && (o.value = (0, u.setTemplateElements)(o.value, r.id, s));
|
|
9015
9021
|
};
|
|
9016
9022
|
}
|
|
9017
|
-
function
|
|
9023
|
+
function sd(e) {
|
|
9018
9024
|
const { canEdit: t, hasSelection: n, presenting: o, findOpen: l, selectedElementIds: a, activeSlide: r, activeSlideIndex: i, slides: s, templateElementsBySlideId: c, pushHistory: p, undo: m, redo: v, copyElement: f, cutElement: g, pasteElement: y, onPasteSpecial: k, duplicateSelected: x, deleteSelected: b, goPrev: S, goNext: w, onEscape: E, onGroup: B, onUngroup: C, presentFromBeginning: I, startPresenting: P, inlineEditingElementId: T, tableEditorIsEditing: _, activeTool: O, selectedElements: D, selectElement: N, ribbonUpdateTextStyle: L, addSlide: A, openHyperlinkForSelection: M, toggleFormatPainter: F, applyFormatToTarget: z, cancelFormatPainter: R } = e, V = (0, d.ref)(!1);
|
|
9019
9025
|
function j() {
|
|
9020
9026
|
a.value = (r.value?.elements ?? []).map((e) => e.id);
|
|
@@ -9028,7 +9034,7 @@ function id(e) {
|
|
|
9028
9034
|
e && g(e);
|
|
9029
9035
|
}
|
|
9030
9036
|
const U = function(e) {
|
|
9031
|
-
const { selectedElementIds: t, activeSlideIndex: n, slides: o, templateElementsBySlideId: l, pushHistory: a } = e, r =
|
|
9037
|
+
const { selectedElementIds: t, activeSlideIndex: n, slides: o, templateElementsBySlideId: l, pushHistory: a } = e, r = id({
|
|
9032
9038
|
slides: o,
|
|
9033
9039
|
activeSlideIndex: n,
|
|
9034
9040
|
templateElementsBySlideId: l
|
|
@@ -9078,7 +9084,7 @@ function id(e) {
|
|
|
9078
9084
|
const t = (r.value?.elements ?? []).map((e) => e.id), n = (0, u.cycleSelectableElement)(t, a.value[0] ?? null, e);
|
|
9079
9085
|
n && N(n, !1);
|
|
9080
9086
|
}
|
|
9081
|
-
const K =
|
|
9087
|
+
const K = au({
|
|
9082
9088
|
canPaste: e.canPaste,
|
|
9083
9089
|
actions: {
|
|
9084
9090
|
undo: m,
|
|
@@ -9157,7 +9163,7 @@ function id(e) {
|
|
|
9157
9163
|
selectAllElements: j
|
|
9158
9164
|
};
|
|
9159
9165
|
}
|
|
9160
|
-
function
|
|
9166
|
+
function cd(e) {
|
|
9161
9167
|
const { slides: t, activeSlideIndex: n, pushHistory: o } = e, l = e.selectedElementIds ?? (0, d.ref)([]), a = (0, d.computed)(() => t.value[n.value]), r = (e) => {
|
|
9162
9168
|
const l = n.value;
|
|
9163
9169
|
t.value[l] && (o(), t.value = t.value.map((t, n) => n === l ? {
|
|
@@ -9250,7 +9256,7 @@ function sd(e) {
|
|
|
9250
9256
|
}
|
|
9251
9257
|
};
|
|
9252
9258
|
}
|
|
9253
|
-
function
|
|
9259
|
+
function ud(e) {
|
|
9254
9260
|
const { findActiveElement: t, pushHistory: n, effectiveZoom: o, activeTemplateElements: l, activeSlide: a, activeSlideIndex: r, slides: i, templateElementsBySlideId: s, canvasSize: c, enterInlineEdit: p, gridSpacingPx: m } = e, v = function(e) {
|
|
9255
9261
|
const t = (0, d.ref)(!1), n = (0, d.ref)(!1), o = (0, d.ref)([]), l = (0, d.ref)([]);
|
|
9256
9262
|
return {
|
|
@@ -9295,13 +9301,13 @@ function cd(e) {
|
|
|
9295
9301
|
elements: c
|
|
9296
9302
|
}, t.value = d;
|
|
9297
9303
|
};
|
|
9298
|
-
}(x), S =
|
|
9304
|
+
}(x), S = id(x);
|
|
9299
9305
|
let w = null, E = !0, B = !1;
|
|
9300
9306
|
const C = (0, u.createGestureController)({
|
|
9301
9307
|
getScale: () => o.value,
|
|
9302
9308
|
getElementBox: (e) => {
|
|
9303
9309
|
const n = t(e);
|
|
9304
|
-
return n ?
|
|
9310
|
+
return n ? Gc(n) : void 0;
|
|
9305
9311
|
},
|
|
9306
9312
|
getSiblings: () => {
|
|
9307
9313
|
if (!w) return [];
|
|
@@ -9383,7 +9389,7 @@ function cd(e) {
|
|
|
9383
9389
|
cancelElementDrag: () => C.dispose(),
|
|
9384
9390
|
onTransformStart: function(e) {
|
|
9385
9391
|
const o = e ? t(e.id) : void 0;
|
|
9386
|
-
P = o ? (0, u.resolveElementInteractivity)(o) : null, T = o ?
|
|
9392
|
+
P = o ? (0, u.resolveElementInteractivity)(o) : null, T = o ? Gc(o) : null, n();
|
|
9387
9393
|
},
|
|
9388
9394
|
onTransform: function(e) {
|
|
9389
9395
|
I(_(e));
|
|
@@ -9405,7 +9411,7 @@ function cd(e) {
|
|
|
9405
9411
|
}
|
|
9406
9412
|
};
|
|
9407
9413
|
}
|
|
9408
|
-
function
|
|
9414
|
+
function dd(e) {
|
|
9409
9415
|
const { canvasSize: t, ops: n, selectedElementIds: o, activeSlideIndex: l } = e, a = function(e) {
|
|
9410
9416
|
const { slides: t, activeSlideIndex: n, handler: o, pushHistory: l, templateElementsBySlideId: a } = e;
|
|
9411
9417
|
return {
|
|
@@ -9553,27 +9559,27 @@ function ud(e) {
|
|
|
9553
9559
|
...a
|
|
9554
9560
|
};
|
|
9555
9561
|
}
|
|
9556
|
-
var
|
|
9562
|
+
var pd = /["\\\n\r;}<>]/u, md = /* @__PURE__ */ new Set([
|
|
9557
9563
|
"truetype",
|
|
9558
9564
|
"opentype",
|
|
9559
9565
|
"woff",
|
|
9560
9566
|
"woff2"
|
|
9561
|
-
]),
|
|
9562
|
-
function
|
|
9567
|
+
]), vd = /^data:font\/[a-z0-9+.-]+(?:;charset=[a-z0-9-]+)?;base64,[a-z0-9+/=]+$/iu;
|
|
9568
|
+
function fd() {
|
|
9563
9569
|
return "undefined" != typeof URL && "function" == typeof URL.createObjectURL && "function" == typeof URL.revokeObjectURL && "undefined" != typeof Blob;
|
|
9564
9570
|
}
|
|
9565
|
-
var
|
|
9571
|
+
var gd = {
|
|
9566
9572
|
truetype: "font/ttf",
|
|
9567
9573
|
opentype: "font/otf",
|
|
9568
9574
|
woff: "font/woff",
|
|
9569
9575
|
woff2: "font/woff2"
|
|
9570
9576
|
};
|
|
9571
|
-
function
|
|
9577
|
+
function yd(e) {
|
|
9572
9578
|
const t = "string" == typeof e.name ? e.name.trim() : "";
|
|
9573
|
-
if (0 === t.length ||
|
|
9579
|
+
if (0 === t.length || pd.test(t)) return null;
|
|
9574
9580
|
const n = e.bold ? "700" : "400", o = e.italic ? "italic" : "normal";
|
|
9575
|
-
if ("string" == typeof (l = e.dataUrl) && 0 !== l.length && (l.startsWith("blob:") ||
|
|
9576
|
-
const l = e.format &&
|
|
9581
|
+
if ("string" == typeof (l = e.dataUrl) && 0 !== l.length && (l.startsWith("blob:") || vd.test(l))) {
|
|
9582
|
+
const l = e.format && md.has(e.format) ? e.format : "truetype";
|
|
9577
9583
|
return {
|
|
9578
9584
|
name: t,
|
|
9579
9585
|
url: e.dataUrl,
|
|
@@ -9583,10 +9589,10 @@ function gd(e) {
|
|
|
9583
9589
|
};
|
|
9584
9590
|
}
|
|
9585
9591
|
var l;
|
|
9586
|
-
if (!
|
|
9592
|
+
if (!fd()) return null;
|
|
9587
9593
|
let a;
|
|
9588
9594
|
if (e.rawFontData && e.rawFontData.length > 0 ? a = e.rawFontData : e.originalPartBytes && e.originalPartBytes.length > 0 && e.fontGuid && (a = (0, h.deobfuscateFont)(e.originalPartBytes, e.fontGuid)), !a || a.length < 4) return null;
|
|
9589
|
-
const r = (0, h.detectFontFormat)(a), i =
|
|
9595
|
+
const r = (0, h.detectFontFormat)(a), i = md.has(r) ? r : "truetype", s = gd[i] ?? "font/ttf", c = new Uint8Array(a.length);
|
|
9590
9596
|
c.set(a);
|
|
9591
9597
|
const u = new Blob([c], { type: s }), d = URL.createObjectURL(u);
|
|
9592
9598
|
return {
|
|
@@ -9598,7 +9604,7 @@ function gd(e) {
|
|
|
9598
9604
|
objectUrl: d
|
|
9599
9605
|
};
|
|
9600
9606
|
}
|
|
9601
|
-
function
|
|
9607
|
+
function hd(e) {
|
|
9602
9608
|
return [
|
|
9603
9609
|
"@font-face {",
|
|
9604
9610
|
`\tfont-family: "${e.name}";`,
|
|
@@ -9609,18 +9615,18 @@ function yd(e) {
|
|
|
9609
9615
|
"}"
|
|
9610
9616
|
].join("\n");
|
|
9611
9617
|
}
|
|
9612
|
-
function
|
|
9618
|
+
function kd(e) {
|
|
9613
9619
|
let t = [], n = null;
|
|
9614
9620
|
const o = (e) => {
|
|
9615
|
-
if (
|
|
9621
|
+
if (fd()) for (const t of e) URL.revokeObjectURL(t);
|
|
9616
9622
|
}, l = (0, d.computed)(() => {
|
|
9617
9623
|
const n = (0, d.toValue)(e) ?? [], l = t, a = [], r = [];
|
|
9618
9624
|
for (const e of n) {
|
|
9619
|
-
const t =
|
|
9625
|
+
const t = yd(e);
|
|
9620
9626
|
t && (r.push(t), t.objectUrl && a.push(t.objectUrl));
|
|
9621
9627
|
}
|
|
9622
9628
|
return t = a, o(l), r;
|
|
9623
|
-
}), a = (0, d.computed)(() => l.value.map(
|
|
9629
|
+
}), a = (0, d.computed)(() => l.value.map(hd).join("\n\n")), r = (0, d.computed)(() => {
|
|
9624
9630
|
const e = /* @__PURE__ */ new Set(), t = [];
|
|
9625
9631
|
for (const n of l.value) e.has(n.name) || (e.add(n.name), t.push((0, h.getSubstituteFontFamily)(n.name)));
|
|
9626
9632
|
return t;
|
|
@@ -9637,11 +9643,11 @@ function hd(e) {
|
|
|
9637
9643
|
fontFamilies: r
|
|
9638
9644
|
};
|
|
9639
9645
|
}
|
|
9640
|
-
function
|
|
9646
|
+
function xd(e) {
|
|
9641
9647
|
const t = "string" == typeof e || void 0 === e ? e : e.value;
|
|
9642
9648
|
return (0, u.resolveExportBaseName)(t);
|
|
9643
9649
|
}
|
|
9644
|
-
function
|
|
9650
|
+
function bd(e) {
|
|
9645
9651
|
const { slides: t, canvasSize: n, rasterizeSlide: o } = e, l = (0, d.ref)(!1);
|
|
9646
9652
|
return {
|
|
9647
9653
|
exporting: l,
|
|
@@ -9650,7 +9656,7 @@ function xd(e) {
|
|
|
9650
9656
|
l.value = !0;
|
|
9651
9657
|
try {
|
|
9652
9658
|
const t = e.rasterizeSlideToRaster ? await (0, u.rasterResultToPngDataUrl)(await e.rasterizeSlideToRaster(n)) : (await o(n)).toDataURL("image/png");
|
|
9653
|
-
(0, u.downloadDataUrl)(t, `${
|
|
9659
|
+
(0, u.downloadDataUrl)(t, `${xd(e.fileName)}-slide-${n + 1}.png`);
|
|
9654
9660
|
} finally {
|
|
9655
9661
|
l.value = !1;
|
|
9656
9662
|
}
|
|
@@ -9680,14 +9686,14 @@ function xd(e) {
|
|
|
9680
9686
|
d.addImage(e.toDataURL("image/png"), "PNG", 0, 0, a, s);
|
|
9681
9687
|
}
|
|
9682
9688
|
}
|
|
9683
|
-
d.save(`${
|
|
9689
|
+
d.save(`${xd(e.fileName)}.pdf`);
|
|
9684
9690
|
} finally {
|
|
9685
9691
|
l.value = !1;
|
|
9686
9692
|
}
|
|
9687
9693
|
}
|
|
9688
9694
|
};
|
|
9689
9695
|
}
|
|
9690
|
-
function
|
|
9696
|
+
function Sd(e) {
|
|
9691
9697
|
const { exporter: t, mediaExport: n } = e, { t: o } = Ho(), l = (0, d.ref)(!1), a = (0, d.ref)(""), r = (0, d.ref)(0), i = (0, d.ref)("");
|
|
9692
9698
|
let s = null;
|
|
9693
9699
|
function c(e) {
|
|
@@ -9755,12 +9761,12 @@ function bd(e) {
|
|
|
9755
9761
|
}
|
|
9756
9762
|
};
|
|
9757
9763
|
}
|
|
9758
|
-
var
|
|
9759
|
-
function
|
|
9764
|
+
var wd = 2e3;
|
|
9765
|
+
function Ed(e) {
|
|
9760
9766
|
const t = "string" == typeof e || void 0 === e ? e : e.value;
|
|
9761
9767
|
return (0, u.resolveExportBaseName)(t);
|
|
9762
9768
|
}
|
|
9763
|
-
function
|
|
9769
|
+
function Bd(e, t) {
|
|
9764
9770
|
const { width: n, height: o } = (0, u.clampGifDimensions)(e.width, e.height, t);
|
|
9765
9771
|
let l = e;
|
|
9766
9772
|
if (n !== e.width || o !== e.height) {
|
|
@@ -9777,16 +9783,16 @@ function Ed(e, t) {
|
|
|
9777
9783
|
height: o
|
|
9778
9784
|
};
|
|
9779
9785
|
}
|
|
9780
|
-
var
|
|
9781
|
-
function
|
|
9786
|
+
var Cd = 3e3, Id = 30, Pd = 5e6;
|
|
9787
|
+
function Td(e, t, n) {
|
|
9782
9788
|
const o = e.captureStream(t);
|
|
9783
9789
|
return new MediaRecorder(o, n);
|
|
9784
9790
|
}
|
|
9785
|
-
function
|
|
9791
|
+
function _d(e) {
|
|
9786
9792
|
if (e?.aborted) throw new DOMException("Export cancelled", "AbortError");
|
|
9787
9793
|
}
|
|
9788
|
-
function
|
|
9789
|
-
const { slideCount: t, rasterizeSlide: n } = e, o = e.loadGifEncoder ?? (async () => (await Promise.resolve().then(() => require("./gif-encoder-3CbwLFoo.cjs"))).encodeGif), l = e.createRecorder ??
|
|
9794
|
+
function Od(e) {
|
|
9795
|
+
const { slideCount: t, rasterizeSlide: n } = e, o = e.loadGifEncoder ?? (async () => (await Promise.resolve().then(() => require("./gif-encoder-3CbwLFoo.cjs"))).encodeGif), l = e.createRecorder ?? Td, a = e.createCanvas ?? (() => document.createElement("canvas")), r = e.downloadBlob ?? u.downloadBlob, i = (0, d.ref)(!1), s = (0, d.ref)(0);
|
|
9790
9796
|
return {
|
|
9791
9797
|
exporting: i,
|
|
9792
9798
|
progress: s,
|
|
@@ -9794,21 +9800,21 @@ function _d(e) {
|
|
|
9794
9800
|
return async function(e, t = {}) {
|
|
9795
9801
|
const { slideCount: n, rasterizeSlide: o, loadGifEncoder: l, exporting: a, progress: r } = e, i = e.downloadBlob ?? u.downloadBlob, s = n.value;
|
|
9796
9802
|
if (a.value || 0 === s) return;
|
|
9797
|
-
const { slideDurationMs: c =
|
|
9803
|
+
const { slideDurationMs: c = wd, slideTimingsMs: d, maxSide: p = u.GIF_POST_CAPTURE_MAX_SIDE, onProgress: m, signal: v } = t;
|
|
9798
9804
|
a.value = !0, r.value = 0;
|
|
9799
9805
|
try {
|
|
9800
9806
|
const t = [];
|
|
9801
9807
|
for (let e = 0; e < s; e++) {
|
|
9802
9808
|
if (v?.aborted) throw new DOMException("Export cancelled", "AbortError");
|
|
9803
9809
|
m?.(e, s);
|
|
9804
|
-
const n =
|
|
9810
|
+
const n = Bd(await o(e), p);
|
|
9805
9811
|
n && (t.push(n), r.value = Math.round((e + 1) / s * 90));
|
|
9806
9812
|
}
|
|
9807
9813
|
if (0 === t.length) throw new Error("[useMediaExport] No slides were captured for GIF export");
|
|
9808
9814
|
const n = await l(), a = d?.[0], u = void 0 !== a && d?.every((e) => e === a) ? a : c, f = n(t, Math.max(1, Math.round(u / 10))), g = new ArrayBuffer(f.length);
|
|
9809
9815
|
new Uint8Array(g).set(f);
|
|
9810
9816
|
const y = new Blob([g], { type: "image/gif" });
|
|
9811
|
-
return m?.(s, s), r.value = 95, i(y, `${
|
|
9817
|
+
return m?.(s, s), r.value = 95, i(y, `${Ed(e.fileName)}.gif`), r.value = 100, y;
|
|
9812
9818
|
} finally {
|
|
9813
9819
|
a.value = !1;
|
|
9814
9820
|
}
|
|
@@ -9825,11 +9831,11 @@ function _d(e) {
|
|
|
9825
9831
|
exportWebm: async function(o = {}) {
|
|
9826
9832
|
const c = t.value;
|
|
9827
9833
|
if (i.value || 0 === c) return;
|
|
9828
|
-
const { slideDurationMs: d =
|
|
9834
|
+
const { slideDurationMs: d = Cd, slideTimingsMs: p, fps: m = Id, videoBitsPerSecond: v = Pd, onProgress: f, onRecordProgress: g, signal: y } = o;
|
|
9829
9835
|
i.value = !0, s.value = 0;
|
|
9830
9836
|
try {
|
|
9831
9837
|
const t = [];
|
|
9832
|
-
for (let e = 0; e < c; e++)
|
|
9838
|
+
for (let e = 0; e < c; e++) _d(y), f?.(e, c), t.push(await n(e)), s.value = Math.round((e + 1) / c * 45);
|
|
9833
9839
|
if (0 === t.length) throw new Error("[useMediaExport] No slides were captured for video export");
|
|
9834
9840
|
const o = t[0], i = a();
|
|
9835
9841
|
i.width = o.width, i.height = o.height;
|
|
@@ -9867,7 +9873,7 @@ function _d(e) {
|
|
|
9867
9873
|
}
|
|
9868
9874
|
k.stop(), await b;
|
|
9869
9875
|
const o = new Blob(x, { type: "video/webm" });
|
|
9870
|
-
return f?.(c, c), s.value = 95, r(o, `${
|
|
9876
|
+
return f?.(c, c), s.value = 95, r(o, `${Ed(e.fileName)}.webm`), s.value = 100, o;
|
|
9871
9877
|
} finally {
|
|
9872
9878
|
(0, u.stopCaptureStream)(k.stream);
|
|
9873
9879
|
}
|
|
@@ -9877,7 +9883,7 @@ function _d(e) {
|
|
|
9877
9883
|
}
|
|
9878
9884
|
};
|
|
9879
9885
|
}
|
|
9880
|
-
function
|
|
9886
|
+
function Dd(e) {
|
|
9881
9887
|
const { mergedSlides: t, slides: n, slideCount: o, canvasSize: l, activeSlideIndex: a, saveAs: r, imageExportScale: i } = e, s = (0, d.ref)(null), c = (0, d.ref)(0), p = (0, d.computed)(() => t.value[c.value]), { rasterizeSlide: m, rasterizeSlideToRaster: v, rasterizeSlideToTiles: f } = function(e) {
|
|
9882
9888
|
const { exportStageRef: t, exportIndex: n, canvasSize: o, imageExportScale: l } = e;
|
|
9883
9889
|
async function a(e) {
|
|
@@ -9892,7 +9898,7 @@ function Od(e) {
|
|
|
9892
9898
|
return 2 * (l?.() ?? 1) * e;
|
|
9893
9899
|
}
|
|
9894
9900
|
function i(e, t, n) {
|
|
9895
|
-
return
|
|
9901
|
+
return Qu(e, {
|
|
9896
9902
|
backgroundColor: "#ffffff",
|
|
9897
9903
|
scale: n.width / (t.width || 1),
|
|
9898
9904
|
x: t.x,
|
|
@@ -9933,16 +9939,16 @@ function Od(e) {
|
|
|
9933
9939
|
exportIndex: c,
|
|
9934
9940
|
canvasSize: l,
|
|
9935
9941
|
imageExportScale: i
|
|
9936
|
-
}), g =
|
|
9942
|
+
}), g = bd({
|
|
9937
9943
|
slides: n,
|
|
9938
9944
|
canvasSize: l,
|
|
9939
9945
|
rasterizeSlide: m,
|
|
9940
9946
|
rasterizeSlideToRaster: v,
|
|
9941
9947
|
rasterizeSlideToTiles: f
|
|
9942
|
-
}), y =
|
|
9948
|
+
}), y = Od({
|
|
9943
9949
|
slideCount: o,
|
|
9944
9950
|
rasterizeSlide: m
|
|
9945
|
-
}), h =
|
|
9951
|
+
}), h = Sd({
|
|
9946
9952
|
exporter: g,
|
|
9947
9953
|
mediaExport: y
|
|
9948
9954
|
});
|
|
@@ -9999,7 +10005,7 @@ function Od(e) {
|
|
|
9999
10005
|
}
|
|
10000
10006
|
};
|
|
10001
10007
|
}
|
|
10002
|
-
function
|
|
10008
|
+
function Nd({ slides: e, activeSlideIndex: t, pushHistory: n }) {
|
|
10003
10009
|
const o = (0, d.ref)(""), l = (0, d.ref)(""), a = (0, d.ref)(!1), r = (0, d.ref)(!1), i = (0, d.ref)(!0), s = (0, d.ref)(!1), c = (0, d.ref)(0), p = (0, d.computed)(() => (0, u.findInSlides)(e.value, o.value, {
|
|
10004
10010
|
matchCase: a.value,
|
|
10005
10011
|
includeNotes: r.value,
|
|
@@ -10045,7 +10051,7 @@ function Dd({ slides: e, activeSlideIndex: t, pushHistory: n }) {
|
|
|
10045
10051
|
}
|
|
10046
10052
|
};
|
|
10047
10053
|
}
|
|
10048
|
-
function
|
|
10054
|
+
function Ld(e) {
|
|
10049
10055
|
const { slides: t, embeddedFonts: n } = e, o = (0, d.ref)(!1), l = (0, d.computed)(() => (0, u.collectUsedFonts)(t.value)), a = (0, d.computed)(() => n.value.map((e) => e.name)), r = (0, d.computed)(() => (0, u.describeFontEmbedding)(a.value)), i = (0, d.ref)(r.value.initialEnabled);
|
|
10050
10056
|
return (0, d.watch)(r, (e) => {
|
|
10051
10057
|
i.value = e.initialEnabled;
|
|
@@ -10057,7 +10063,7 @@ function Nd(e) {
|
|
|
10057
10063
|
fontEmbedding: r
|
|
10058
10064
|
};
|
|
10059
10065
|
}
|
|
10060
|
-
function
|
|
10066
|
+
function Ad(e) {
|
|
10061
10067
|
const { selectedElements: t, findActiveElement: n, ops: o } = e, l = (0, d.ref)(!1), a = (0, d.ref)(null), r = (0, d.computed)(() => 1 === t.value.length && (0, u.hasCopyableFormat)(t.value[0]));
|
|
10062
10068
|
function i() {
|
|
10063
10069
|
l.value = !1, a.value = null;
|
|
@@ -10079,7 +10085,7 @@ function Ld(e) {
|
|
|
10079
10085
|
}
|
|
10080
10086
|
};
|
|
10081
10087
|
}
|
|
10082
|
-
function
|
|
10088
|
+
function Md(e) {
|
|
10083
10089
|
const { headerFooter: t } = e, n = (0, d.ref)(!1);
|
|
10084
10090
|
return {
|
|
10085
10091
|
showHeaderFooter: n,
|
|
@@ -10088,7 +10094,7 @@ function Ad(e) {
|
|
|
10088
10094
|
}
|
|
10089
10095
|
};
|
|
10090
10096
|
}
|
|
10091
|
-
function
|
|
10097
|
+
function Fd(e) {
|
|
10092
10098
|
const { canEdit: t, presenting: n, activeTool: o, activeSlide: l, selectedElementIds: a, ops: r } = e;
|
|
10093
10099
|
return {
|
|
10094
10100
|
drawingActive: (0, d.computed)(() => t() && !n.value && "select" !== o.value),
|
|
@@ -10109,7 +10115,7 @@ function Md(e) {
|
|
|
10109
10115
|
}
|
|
10110
10116
|
};
|
|
10111
10117
|
}
|
|
10112
|
-
function
|
|
10118
|
+
function zd(e) {
|
|
10113
10119
|
const { canEdit: t, findActiveElement: n, ops: o } = e;
|
|
10114
10120
|
function l(t) {
|
|
10115
10121
|
const n = e.proofing?.();
|
|
@@ -10188,7 +10194,7 @@ function Fd(e) {
|
|
|
10188
10194
|
}
|
|
10189
10195
|
};
|
|
10190
10196
|
}
|
|
10191
|
-
function
|
|
10197
|
+
function Rd(e) {
|
|
10192
10198
|
const { ops: t, selectedElementIds: n, findActiveElement: o } = e, l = (0, d.ref)(!1), a = (0, d.ref)(!1), r = (0, d.ref)(null), i = (0, d.ref)(null);
|
|
10193
10199
|
function s() {
|
|
10194
10200
|
a.value = !1, r.value = null, i.value = null;
|
|
@@ -10213,7 +10219,7 @@ function zd(e) {
|
|
|
10213
10219
|
closeEquationEditor: s
|
|
10214
10220
|
};
|
|
10215
10221
|
}
|
|
10216
|
-
function
|
|
10222
|
+
function Vd(e) {
|
|
10217
10223
|
if (e <= 0 || "undefined" == typeof document) return;
|
|
10218
10224
|
const t = document.activeElement;
|
|
10219
10225
|
if (!function(e) {
|
|
@@ -10230,7 +10236,7 @@ function Rd(e) {
|
|
|
10230
10236
|
behavior: "smooth"
|
|
10231
10237
|
});
|
|
10232
10238
|
}
|
|
10233
|
-
function
|
|
10239
|
+
function jd() {
|
|
10234
10240
|
const e = (0, d.ref)(0), t = (0, d.ref)(!1);
|
|
10235
10241
|
return (0, d.onMounted)(() => {
|
|
10236
10242
|
if ("undefined" == typeof window) return;
|
|
@@ -10238,11 +10244,11 @@ function Vd() {
|
|
|
10238
10244
|
if (!n) return;
|
|
10239
10245
|
const o = () => {
|
|
10240
10246
|
const n = (0, u.readViewportMetrics)(window), o = n ? (0, u.computeKeyboardInset)(n) : 0;
|
|
10241
|
-
e.value = o, t.value = (0, u.isKeyboardOpen)(o), o > 0 && window.requestAnimationFrame(() =>
|
|
10247
|
+
e.value = o, t.value = (0, u.isKeyboardOpen)(o), o > 0 && window.requestAnimationFrame(() => Vd(o));
|
|
10242
10248
|
}, l = () => {
|
|
10243
10249
|
window.requestAnimationFrame(() => {
|
|
10244
10250
|
const e = (0, u.readViewportMetrics)(window), t = e ? (0, u.computeKeyboardInset)(e) : 0;
|
|
10245
|
-
t > 0 &&
|
|
10251
|
+
t > 0 && Vd(t);
|
|
10246
10252
|
});
|
|
10247
10253
|
};
|
|
10248
10254
|
o(), n.addEventListener("resize", o), n.addEventListener("scroll", o), document.addEventListener("focusin", l), (0, d.onScopeDispose)(() => {
|
|
@@ -10253,7 +10259,7 @@ function Vd() {
|
|
|
10253
10259
|
isKeyboardOpen: (0, d.readonly)(t)
|
|
10254
10260
|
};
|
|
10255
10261
|
}
|
|
10256
|
-
async function
|
|
10262
|
+
async function $d(e) {
|
|
10257
10263
|
try {
|
|
10258
10264
|
const t = await v.default.loadAsync(e), n = new m.XMLParser({
|
|
10259
10265
|
ignoreAttributes: !1,
|
|
@@ -10273,20 +10279,20 @@ async function jd(e) {
|
|
|
10273
10279
|
return [];
|
|
10274
10280
|
}
|
|
10275
10281
|
}
|
|
10276
|
-
function
|
|
10282
|
+
function Wd(e, t) {
|
|
10277
10283
|
const n = (0, d.shallowRef)([]), o = (0, d.shallowRef)({}), l = (0, d.ref)({
|
|
10278
10284
|
width: 1280,
|
|
10279
10285
|
height: 720
|
|
10280
|
-
}), a = (0, d.ref)(void 0), r = (0, d.shallowRef)(void 0), i = (0, d.shallowRef)(void 0), s = (0, d.shallowRef)([]), c = (0, d.shallowRef)([]), p = (0, d.shallowRef)(/* @__PURE__ */ new Map()), m = (0, d.ref)(!1), v = (0, d.ref)(null), f = (0, d.ref)(!1), g = (0, d.shallowRef)(null), y = (0, d.shallowRef)(void 0), k = (0, d.shallowRef)([]), x = (0, d.shallowRef)(void 0), b = (0, d.shallowRef)([]), S = (0, d.shallowRef)(void 0), w = (0, d.shallowRef)([]), E = (0, d.shallowRef)([]), B = (0, d.shallowRef)([]), C = (0, d.shallowRef)(void 0), I = (0, d.shallowRef)(void 0), P = (0, d.shallowRef)([]), T = (0, d.shallowRef)([]), _ = (0, d.shallowRef)([]), O = (0, d.shallowRef)([]), D = (0, d.shallowRef)([]), N = (0, d.shallowRef)({}), L = (0, d.shallowRef)(void 0), A = (0, d.shallowRef)(void 0), M = (0, d.shallowRef)(void 0), F = (0, d.shallowRef)(void 0), z = (0, d.shallowRef)([]),
|
|
10281
|
-
let
|
|
10282
|
-
const
|
|
10286
|
+
}), a = (0, d.ref)(void 0), r = (0, d.shallowRef)(void 0), i = (0, d.shallowRef)(void 0), s = (0, d.shallowRef)([]), c = (0, d.shallowRef)([]), p = (0, d.shallowRef)(/* @__PURE__ */ new Map()), m = (0, d.ref)(!1), v = (0, d.ref)(null), f = (0, d.ref)(!1), g = (0, d.shallowRef)(null), y = (0, d.shallowRef)(void 0), k = (0, d.shallowRef)([]), x = (0, d.shallowRef)(void 0), b = (0, d.shallowRef)([]), S = (0, d.shallowRef)(void 0), w = (0, d.shallowRef)([]), E = (0, d.shallowRef)([]), B = (0, d.shallowRef)([]), C = (0, d.shallowRef)(void 0), I = (0, d.shallowRef)(void 0), P = (0, d.shallowRef)([]), T = (0, d.shallowRef)([]), _ = (0, d.shallowRef)([]), O = (0, d.shallowRef)([]), D = (0, d.shallowRef)([]), N = (0, d.shallowRef)({}), L = (0, d.shallowRef)(void 0), A = (0, d.shallowRef)(void 0), M = (0, d.shallowRef)(void 0), F = (0, d.shallowRef)(void 0), z = (0, d.shallowRef)(void 0), R = (0, d.shallowRef)([]), V = (0, d.ref)(void 0);
|
|
10287
|
+
let j = 0, $ = [];
|
|
10288
|
+
const W = (e) => {
|
|
10283
10289
|
for (const t of e) t.startsWith("blob:") && URL.revokeObjectURL(t);
|
|
10284
|
-
},
|
|
10290
|
+
}, U = async (e, r) => {
|
|
10285
10291
|
if (!g.value) throw new Error("No presentation is loaded.");
|
|
10286
10292
|
const i = t?.getPendingInlineEdit?.(), c = {
|
|
10287
10293
|
slideMasters: s.value,
|
|
10288
|
-
notesMaster:
|
|
10289
|
-
handoutMaster:
|
|
10294
|
+
notesMaster: F.value,
|
|
10295
|
+
handoutMaster: z.value
|
|
10290
10296
|
}, d = i && "masterView" in i.target ? (0, u.overlayMasterViewInlineSnapshot)(c, i.target.masterView, i.snapshot, i.text) : null, p = (0, u.buildSaveSlides)(n.value, o.value).map((e) => i && "slideId" in i.target && e.id === i.target.slideId ? {
|
|
10291
10297
|
...e,
|
|
10292
10298
|
elements: [...(0, u.overlayInlineTextSnapshot)(e.elements, i.snapshot, i.text)]
|
|
@@ -10304,8 +10310,8 @@ function $d(e, t) {
|
|
|
10304
10310
|
canvas: l.value
|
|
10305
10311
|
}).size,
|
|
10306
10312
|
slideMasters: d?.slideMasters ?? s.value,
|
|
10307
|
-
notesMaster: d?.notesMaster ??
|
|
10308
|
-
handoutMaster: d?.handoutMaster ??
|
|
10313
|
+
notesMaster: d?.notesMaster ?? F.value,
|
|
10314
|
+
handoutMaster: d?.handoutMaster ?? z.value,
|
|
10309
10315
|
tagCollections: w.value,
|
|
10310
10316
|
viewProperties: L.value,
|
|
10311
10317
|
tableStyleMap: C.value,
|
|
@@ -10317,75 +10323,75 @@ function $d(e, t) {
|
|
|
10317
10323
|
...t?.getSaveIntent?.(),
|
|
10318
10324
|
purpose: r
|
|
10319
10325
|
});
|
|
10320
|
-
},
|
|
10326
|
+
}, H = (e) => U(e, "user-file");
|
|
10321
10327
|
return (0, d.watch)(() => (0, d.toValue)(e), (e) => {
|
|
10322
10328
|
e && (async (e) => {
|
|
10323
|
-
const d = ++
|
|
10329
|
+
const d = ++j, U = new h.PptxHandler(), H = (0, u.createPresentationLoadResources)(U), G = H.blobUrls;
|
|
10324
10330
|
try {
|
|
10325
10331
|
m.value = !0, v.value = null, f.value = !1;
|
|
10326
|
-
const h = e instanceof Uint8Array ? e.buffer.slice(e.byteOffset, e.byteOffset + e.byteLength) : e,
|
|
10327
|
-
|
|
10328
|
-
const
|
|
10329
|
-
if (d !==
|
|
10330
|
-
const
|
|
10331
|
-
for (const e of
|
|
10332
|
-
const
|
|
10333
|
-
await Promise.all(
|
|
10334
|
-
const t = await (0, u.resolveMediaElementSource)(e,
|
|
10335
|
-
!t.missing && t.mediaPath && t.url ? (
|
|
10332
|
+
const h = e instanceof Uint8Array ? e.buffer.slice(e.byteOffset, e.byteOffset + e.byteLength) : e, K = h.slice(0), Y = h instanceof ArrayBuffer ? h.byteLength / 1048576 : 0;
|
|
10333
|
+
Y > 50 && console.warn(`[pptx] Large file detected (${Y.toFixed(1)} MB). Loading may use significant memory.`);
|
|
10334
|
+
const q = g.value, X = await U.load(h, { allowExternalImages: t?.getAllowExternalImages?.() });
|
|
10335
|
+
if (d !== j) return;
|
|
10336
|
+
const Z = [];
|
|
10337
|
+
for (const e of X.slides) (0, u.collectMediaElements)(e.elements, Z);
|
|
10338
|
+
const J = /* @__PURE__ */ new Map();
|
|
10339
|
+
await Promise.all(Z.map(async (e) => {
|
|
10340
|
+
const t = await (0, u.resolveMediaElementSource)(e, U);
|
|
10341
|
+
!t.missing && t.mediaPath && t.url ? (J.set(t.mediaPath, t.url), t.isBlobUrl && G.push(t.url)) : e.mediaMissing = !0;
|
|
10336
10342
|
}));
|
|
10337
|
-
const
|
|
10338
|
-
await Promise.all(
|
|
10343
|
+
const Q = (0, u.collectAnimationSoundPaths)(X.slides).filter((e) => !J.has(e));
|
|
10344
|
+
await Promise.all(Q.map(async (e) => {
|
|
10339
10345
|
try {
|
|
10340
|
-
const t = await
|
|
10346
|
+
const t = await U.getMediaArrayBuffer(e);
|
|
10341
10347
|
if (t) {
|
|
10342
10348
|
const n = URL.createObjectURL(new Blob([t]));
|
|
10343
|
-
|
|
10349
|
+
G.push(n), J.set(e, n);
|
|
10344
10350
|
}
|
|
10345
10351
|
} catch {}
|
|
10346
10352
|
}));
|
|
10347
|
-
const { paths:
|
|
10348
|
-
let
|
|
10349
|
-
if (
|
|
10353
|
+
const { paths: ee, refs: te } = (0, u.collectImagePaths)(X.slides);
|
|
10354
|
+
let ne = X.slides;
|
|
10355
|
+
if (ee.size > 0) {
|
|
10350
10356
|
const e = /* @__PURE__ */ new Map();
|
|
10351
|
-
await Promise.all(Array.from(
|
|
10357
|
+
await Promise.all(Array.from(ee).map(async (t) => {
|
|
10352
10358
|
try {
|
|
10353
|
-
const n = await
|
|
10359
|
+
const n = await U.getImageData(t);
|
|
10354
10360
|
n && e.set(t, n);
|
|
10355
10361
|
} catch {}
|
|
10356
|
-
})),
|
|
10357
|
-
const n = (0, u.applyImagePathPatches)(t.elements, e,
|
|
10362
|
+
})), ne = X.slides.map((t) => {
|
|
10363
|
+
const n = (0, u.applyImagePathPatches)(t.elements, e, te);
|
|
10358
10364
|
return n === t.elements ? t : {
|
|
10359
10365
|
...t,
|
|
10360
10366
|
elements: n
|
|
10361
10367
|
};
|
|
10362
10368
|
});
|
|
10363
10369
|
}
|
|
10364
|
-
|
|
10365
|
-
const
|
|
10366
|
-
|
|
10367
|
-
const
|
|
10368
|
-
if (d !==
|
|
10369
|
-
const
|
|
10370
|
-
|
|
10371
|
-
width:
|
|
10372
|
-
height:
|
|
10373
|
-
}, a.value = "number" == typeof
|
|
10374
|
-
widthEmu:
|
|
10375
|
-
heightEmu:
|
|
10376
|
-
type:
|
|
10377
|
-
} : void 0, r.value =
|
|
10378
|
-
width: Math.round(
|
|
10379
|
-
height: Math.round(
|
|
10380
|
-
} : void 0, B.value =
|
|
10370
|
+
ne = await (0, u.resolveTableCellImageUrls)(ne, (e) => U.getImageData(e));
|
|
10371
|
+
const oe = await (0, u.resolveTableStyleImageUrls)(X.tableStyleMap, (e) => U.getImageData(e));
|
|
10372
|
+
ne = await (0, u.resolveTextFillBlipUrls)(ne, (e) => U.getImageData(e));
|
|
10373
|
+
const le = X.hasDigitalSignatures && K instanceof ArrayBuffer ? await $d(K) : [];
|
|
10374
|
+
if (d !== j) return;
|
|
10375
|
+
const ae = (0, u.partitionTemplateElements)(ne);
|
|
10376
|
+
q?.dispose(), W(Array.from(p.value.values())), W($), $ = G, H.commit(), g.value = U, n.value = ae.slides, o.value = ae.templateElementsBySlideId, p.value = J, l.value = {
|
|
10377
|
+
width: X.width ?? 1280,
|
|
10378
|
+
height: X.height ?? 720
|
|
10379
|
+
}, a.value = "number" == typeof X.widthEmu && "number" == typeof X.heightEmu && X.widthEmu > 0 && X.heightEmu > 0 ? {
|
|
10380
|
+
widthEmu: X.widthEmu,
|
|
10381
|
+
heightEmu: X.heightEmu,
|
|
10382
|
+
type: X.slideSizeType ?? ""
|
|
10383
|
+
} : void 0, r.value = X.theme, i.value = X.themeColorMap, s.value = X.slideMasters ?? [], c.value = X.layoutOptions ?? [], y.value = X.coreProperties, k.value = X.customProperties ?? [], x.value = X.modifyVerifier, b.value = U.getCompatibilityWarnings(), S.value = X.appProperties, w.value = X.tags ?? [], E.value = X.embeddedFonts ?? [], C.value = oe, I.value = X.tableStylesDefaultId, P.value = [], T.value = X.sections ?? [], _.value = X.customShows ?? [], O.value = X.modernCommentAuthors ?? [], D.value = X.commentAuthors ?? [], N.value = X.presentationProperties ?? {}, L.value = X.viewProperties, A.value = X.headerFooter, M.value = X.firstSlideNumber, F.value = X.notesMaster, z.value = X.handoutMaster, R.value = X.themeOptions ?? [], V.value = "number" == typeof X.notesWidthEmu && "number" == typeof X.notesHeightEmu && X.notesWidthEmu > 0 && X.notesHeightEmu > 0 ? {
|
|
10384
|
+
width: Math.round(X.notesWidthEmu / 9525),
|
|
10385
|
+
height: Math.round(X.notesHeightEmu / 9525)
|
|
10386
|
+
} : void 0, B.value = le, t?.onContentApplied?.();
|
|
10381
10387
|
} catch (e) {
|
|
10382
|
-
d ===
|
|
10388
|
+
d === j && (e instanceof h.EncryptedFileError ? f.value = !0 : v.value = e instanceof Error ? e.message : String(e));
|
|
10383
10389
|
} finally {
|
|
10384
|
-
|
|
10390
|
+
H.releaseIfUncommitted(), d === j && (m.value = !1);
|
|
10385
10391
|
}
|
|
10386
10392
|
})(e);
|
|
10387
10393
|
}, { immediate: !0 }), (0, d.onScopeDispose)(() => {
|
|
10388
|
-
|
|
10394
|
+
j++, W($), W(Array.from(p.value.values())), g.value && (g.value.dispose(), g.value = null);
|
|
10389
10395
|
}), {
|
|
10390
10396
|
slides: n,
|
|
10391
10397
|
templateElementsBySlideId: o,
|
|
@@ -10418,16 +10424,17 @@ function $d(e, t) {
|
|
|
10418
10424
|
presentationProperties: N,
|
|
10419
10425
|
viewProperties: L,
|
|
10420
10426
|
headerFooter: A,
|
|
10421
|
-
|
|
10422
|
-
|
|
10423
|
-
|
|
10424
|
-
|
|
10425
|
-
|
|
10426
|
-
|
|
10427
|
-
|
|
10427
|
+
firstSlideNumber: M,
|
|
10428
|
+
notesMaster: F,
|
|
10429
|
+
handoutMaster: z,
|
|
10430
|
+
themeOptions: R,
|
|
10431
|
+
notesCanvasSize: V,
|
|
10432
|
+
saveAs: H,
|
|
10433
|
+
getContent: () => H("pptx"),
|
|
10434
|
+
getRecoverySnapshot: () => U("pptx", "recovery-snapshot")
|
|
10428
10435
|
};
|
|
10429
10436
|
}
|
|
10430
|
-
function
|
|
10437
|
+
function Ud() {
|
|
10431
10438
|
const e = (0, d.ref)(!1), t = (0, d.ref)("slides"), n = (0, d.ref)(0), o = (0, d.ref)(null);
|
|
10432
10439
|
return {
|
|
10433
10440
|
showMasterView: e,
|
|
@@ -10443,13 +10450,13 @@ function Wd() {
|
|
|
10443
10450
|
}
|
|
10444
10451
|
};
|
|
10445
10452
|
}
|
|
10446
|
-
var
|
|
10453
|
+
var Hd = {
|
|
10447
10454
|
slides: "slides",
|
|
10448
10455
|
format: "inspector",
|
|
10449
10456
|
comments: "comments",
|
|
10450
10457
|
notes: "notes"
|
|
10451
10458
|
};
|
|
10452
|
-
function
|
|
10459
|
+
function Gd(e) {
|
|
10453
10460
|
const { presenting: t, addText: n } = e, o = (0, d.ref)(!1), l = (0, d.ref)(!1), a = (0, d.ref)(!1), r = (0, d.ref)(!1);
|
|
10454
10461
|
function i(e) {
|
|
10455
10462
|
o.value = "slides" === e, l.value = "format" === e, a.value = "comments" === e, r.value = "notes" === e;
|
|
@@ -10462,8 +10469,8 @@ function Hd(e) {
|
|
|
10462
10469
|
mobileNotesOpen: r,
|
|
10463
10470
|
openMobileSheet: i,
|
|
10464
10471
|
toggleMobileSheet: function(e) {
|
|
10465
|
-
const t = s.value ?
|
|
10466
|
-
null === (0, u.toggleSheet)(t,
|
|
10472
|
+
const t = s.value ? Hd[s.value] : null;
|
|
10473
|
+
null === (0, u.toggleSheet)(t, Hd[e]) ? (o.value = !1, l.value = !1, a.value = !1, r.value = !1) : i(e);
|
|
10467
10474
|
},
|
|
10468
10475
|
activeSheet: s,
|
|
10469
10476
|
mobileQuickInsert: function() {
|
|
@@ -10474,7 +10481,7 @@ function Hd(e) {
|
|
|
10474
10481
|
}
|
|
10475
10482
|
};
|
|
10476
10483
|
}
|
|
10477
|
-
function
|
|
10484
|
+
function Kd(e) {
|
|
10478
10485
|
const { selectedElementIds: t, ops: n, clearSelection: o } = e;
|
|
10479
10486
|
return {
|
|
10480
10487
|
deleteSelected: function() {
|
|
@@ -10497,7 +10504,7 @@ function Gd(e) {
|
|
|
10497
10504
|
}
|
|
10498
10505
|
};
|
|
10499
10506
|
}
|
|
10500
|
-
function
|
|
10507
|
+
function Yd() {
|
|
10501
10508
|
const e = (0, d.ref)(!1), t = (0, d.ref)(!1), n = (0, d.ref)(null);
|
|
10502
10509
|
return {
|
|
10503
10510
|
showPasswordDialog: e,
|
|
@@ -10511,7 +10518,7 @@ function Kd() {
|
|
|
10511
10518
|
}
|
|
10512
10519
|
};
|
|
10513
10520
|
}
|
|
10514
|
-
function
|
|
10521
|
+
function qd(e) {
|
|
10515
10522
|
const { slides: t, activeSlideIndex: n, pushHistory: o } = e, l = (0, d.ref)("undefined" != typeof window && (0, u.isPresentationAudience)(window.location.hash));
|
|
10516
10523
|
return {
|
|
10517
10524
|
presenting: l,
|
|
@@ -10544,22 +10551,22 @@ function Yd(e) {
|
|
|
10544
10551
|
}
|
|
10545
10552
|
};
|
|
10546
10553
|
}
|
|
10547
|
-
function
|
|
10554
|
+
function Xd(e, t, n, o = {}) {
|
|
10548
10555
|
return h.SvgExporter.exportSlide(e, t, n, o);
|
|
10549
10556
|
}
|
|
10550
|
-
function
|
|
10551
|
-
return new Blob([
|
|
10557
|
+
function Zd(e, t, n, o = {}) {
|
|
10558
|
+
return new Blob([Xd(e, t, n, o)], { type: "image/svg+xml;charset=utf-8" });
|
|
10552
10559
|
}
|
|
10553
|
-
function
|
|
10560
|
+
function Jd(e, t = {}) {
|
|
10554
10561
|
return h.SvgExporter.exportAll(e, t);
|
|
10555
10562
|
}
|
|
10556
|
-
function
|
|
10557
|
-
return
|
|
10563
|
+
function Qd(e, t = {}) {
|
|
10564
|
+
return Jd(e, t).map((e) => new Blob([e], { type: "image/svg+xml;charset=utf-8" }));
|
|
10558
10565
|
}
|
|
10559
|
-
function
|
|
10566
|
+
function ep(e) {
|
|
10560
10567
|
return (0, u.openPrintWindow)(e);
|
|
10561
10568
|
}
|
|
10562
|
-
function
|
|
10569
|
+
function tp(e, t, n, o, l, a) {
|
|
10563
10570
|
return (0, u.buildPrintHtmlDocument)({
|
|
10564
10571
|
title: e,
|
|
10565
10572
|
bodyHtml: t,
|
|
@@ -10569,7 +10576,7 @@ function ep(e, t, n, o, l, a) {
|
|
|
10569
10576
|
scaleToFit: a
|
|
10570
10577
|
});
|
|
10571
10578
|
}
|
|
10572
|
-
function
|
|
10579
|
+
function np(e) {
|
|
10573
10580
|
const { slides: t, activeSlideIndex: n, rasterizeSlide: o } = e, l = e.openPrintWindow, a = e.slideSize ?? (0, d.ref)({
|
|
10574
10581
|
width: 960,
|
|
10575
10582
|
height: 540
|
|
@@ -10587,13 +10594,13 @@ function tp(e) {
|
|
|
10587
10594
|
const d = t.value, p = (0, u.computeColorFilter)(c.colorMode), m = i?.value ?? u.DEFAULT_VIEWER_OPTIONS, v = (0, u.filterHiddenSlideIndices)((0, u.computeSlideIndices)(c.slideRange, n.value, d.length, c.customRangeFrom, c.customRangeTo), d, m.advanced.printHiddenSlides);
|
|
10588
10595
|
if ("outline" === c.printWhat) {
|
|
10589
10596
|
const e = (0, u.buildOutlineHtml)(v, d);
|
|
10590
|
-
(l ??
|
|
10597
|
+
(l ?? ep)(tp("Outline", `<div class="outline-page">${e}</div>`, c.orientation, p, c.frameSlides, c.scaleToFit));
|
|
10591
10598
|
return;
|
|
10592
10599
|
}
|
|
10593
10600
|
if (0 === v.length) return;
|
|
10594
10601
|
if ("slides" === c.printWhat) try {
|
|
10595
|
-
const { width: e, height: t } = a.value, n = v.map((n) =>
|
|
10596
|
-
(l ??
|
|
10602
|
+
const { width: e, height: t } = a.value, n = v.map((n) => Xd(d[n], e, t));
|
|
10603
|
+
(l ?? ep)((0, u.buildPrintDocument)(n, e, t, {
|
|
10597
10604
|
title: "Slides (Vector)",
|
|
10598
10605
|
orientation: c.orientation,
|
|
10599
10606
|
colorFilter: p,
|
|
@@ -10614,17 +10621,17 @@ function tp(e) {
|
|
|
10614
10621
|
const l = await o(e, t);
|
|
10615
10622
|
n.push(l.toDataURL("image/png"));
|
|
10616
10623
|
}
|
|
10617
|
-
if ("slides" === c.printWhat) return void g(
|
|
10618
|
-
if ("notes" === c.printWhat) return void g(
|
|
10624
|
+
if ("slides" === c.printWhat) return void g(tp("Slides", (0, u.buildSlidesHtml)(n, v), c.orientation, p, c.frameSlides, c.scaleToFit));
|
|
10625
|
+
if ("notes" === c.printWhat) return void g(tp("Notes Pages", (0, u.buildNotesHtml)(n, v, d), "portrait", p, c.frameSlides, c.scaleToFit));
|
|
10619
10626
|
const l = c.slidesPerPage;
|
|
10620
|
-
g(
|
|
10627
|
+
g(tp(`Handout ${l} per page`, (0, u.buildHandoutsHtml)(n, v, l, e.handoutMaster?.value), "portrait", p, c.frameSlides, c.scaleToFit));
|
|
10621
10628
|
} catch (e) {
|
|
10622
10629
|
console.error("[PowerPointViewer] Print layout failed:", e), f?.close();
|
|
10623
10630
|
}
|
|
10624
10631
|
}
|
|
10625
10632
|
};
|
|
10626
10633
|
}
|
|
10627
|
-
var
|
|
10634
|
+
var op = {
|
|
10628
10635
|
left: "left",
|
|
10629
10636
|
center: "centerH",
|
|
10630
10637
|
right: "right",
|
|
@@ -10632,10 +10639,10 @@ var np = {
|
|
|
10632
10639
|
middle: "middle",
|
|
10633
10640
|
bottom: "bottom"
|
|
10634
10641
|
};
|
|
10635
|
-
function
|
|
10642
|
+
function lp(e) {
|
|
10636
10643
|
return "ellipse" === e || "roundRect" === e || "triangle" === e ? e : "rect";
|
|
10637
10644
|
}
|
|
10638
|
-
function
|
|
10645
|
+
function ap(e) {
|
|
10639
10646
|
const { canEdit: t, presenting: n, showMasterView: o, tableSelection: l, selectedElements: a, selectedElementIds: r, activeSlide: i, activeSlideIndex: s, slides: c, pushHistory: p, ops: m } = e;
|
|
10640
10647
|
return {
|
|
10641
10648
|
ribbonMode: (0, d.computed)(() => n.value ? "present" : o.value ? "master" : t() ? "edit" : "preview"),
|
|
@@ -10745,7 +10752,7 @@ function lp(e) {
|
|
|
10745
10752
|
}
|
|
10746
10753
|
};
|
|
10747
10754
|
}
|
|
10748
|
-
function
|
|
10755
|
+
function rp() {
|
|
10749
10756
|
return {
|
|
10750
10757
|
toolbarSection: (0, d.ref)("home"),
|
|
10751
10758
|
newShapeType: (0, d.ref)("rect"),
|
|
@@ -10766,7 +10773,7 @@ function ap() {
|
|
|
10766
10773
|
eyedropperActive: (0, d.ref)(!1)
|
|
10767
10774
|
};
|
|
10768
10775
|
}
|
|
10769
|
-
function
|
|
10776
|
+
function ip(e) {
|
|
10770
10777
|
const { sections: t, slides: n, activeSlideIndex: o, pushHistory: l } = e;
|
|
10771
10778
|
return {
|
|
10772
10779
|
addSection: (e, o) => {
|
|
@@ -10808,7 +10815,7 @@ function rp(e) {
|
|
|
10808
10815
|
slidesBySection: (0, d.computed)(() => (0, u.groupSlidesBySection)(t.value, n.value))
|
|
10809
10816
|
};
|
|
10810
10817
|
}
|
|
10811
|
-
function
|
|
10818
|
+
function sp(e) {
|
|
10812
10819
|
const { findActiveElement: t, activeSlide: n, selectedElementIds: o, ops: l } = e;
|
|
10813
10820
|
return {
|
|
10814
10821
|
showSelectionPane: (0, d.ref)(!1),
|
|
@@ -10828,8 +10835,8 @@ function ip(e) {
|
|
|
10828
10835
|
}
|
|
10829
10836
|
};
|
|
10830
10837
|
}
|
|
10831
|
-
function
|
|
10832
|
-
const { signatures: t, isDirty: n } = e, o = (0, d.ref)(!1), l =
|
|
10838
|
+
function cp(e) {
|
|
10839
|
+
const { signatures: t, isDirty: n } = e, o = (0, d.ref)(!1), l = Ru(t), a = (0, d.computed)(() => t.value.length > 0), r = (0, d.ref)(!1), i = (0, d.ref)(!1);
|
|
10833
10840
|
return (0, d.watch)(() => n.value, (e) => {
|
|
10834
10841
|
e && a.value && !i.value && (r.value = !0);
|
|
10835
10842
|
}), {
|
|
@@ -10842,7 +10849,7 @@ function sp(e) {
|
|
|
10842
10849
|
}
|
|
10843
10850
|
};
|
|
10844
10851
|
}
|
|
10845
|
-
function
|
|
10852
|
+
function up(e) {
|
|
10846
10853
|
const { slides: t, activeSlideIndex: n, activeSlide: o, pushHistory: l, selectedElements: a } = e;
|
|
10847
10854
|
function r(e) {
|
|
10848
10855
|
const o = n.value, a = t.value[o];
|
|
@@ -10922,7 +10929,7 @@ function cp(e) {
|
|
|
10922
10929
|
}
|
|
10923
10930
|
};
|
|
10924
10931
|
}
|
|
10925
|
-
function
|
|
10932
|
+
function dp(e) {
|
|
10926
10933
|
const { slides: t, activeSlideIndex: n, pushHistory: o } = e;
|
|
10927
10934
|
return {
|
|
10928
10935
|
addSlide: (e = n.value) => {
|
|
@@ -10957,7 +10964,7 @@ function up(e) {
|
|
|
10957
10964
|
}
|
|
10958
10965
|
};
|
|
10959
10966
|
}
|
|
10960
|
-
function
|
|
10967
|
+
function pp(e) {
|
|
10961
10968
|
const { presentationProperties: t } = e, n = (0, d.ref)(!1), o = (0, d.ref)(!1);
|
|
10962
10969
|
return (0, d.watch)(() => t.value.showSubtitles, (e) => {
|
|
10963
10970
|
o.value = Boolean(e);
|
|
@@ -10981,7 +10988,7 @@ function dp(e) {
|
|
|
10981
10988
|
}
|
|
10982
10989
|
};
|
|
10983
10990
|
}
|
|
10984
|
-
function
|
|
10991
|
+
function mp(e) {
|
|
10985
10992
|
const { canvasSize: t, slides: n, activeSlideIndex: o, pushHistory: l, theme: a } = e;
|
|
10986
10993
|
return { insertSlideFromTemplate: function(e) {
|
|
10987
10994
|
const r = Math.max(0, Math.min(o.value + 1, n.value.length));
|
|
@@ -10994,7 +11001,7 @@ function pp(e) {
|
|
|
10994
11001
|
s.splice(r, 0, i), n.value = s, o.value = r;
|
|
10995
11002
|
} };
|
|
10996
11003
|
}
|
|
10997
|
-
function
|
|
11004
|
+
function vp(e) {
|
|
10998
11005
|
const { canEdit: t, findActiveElement: n, updateElement: o, canEditInline: l } = e;
|
|
10999
11006
|
function a(e, t) {
|
|
11000
11007
|
return (0, u.rebuildDrawingShapesIfCleared)(t, t.layout, (0, u.resolvePalette)(t), t.style ?? "flat", e.id, {
|
|
@@ -11021,7 +11028,7 @@ function mp(e) {
|
|
|
11021
11028
|
}
|
|
11022
11029
|
});
|
|
11023
11030
|
}
|
|
11024
|
-
function
|
|
11031
|
+
function fp(e) {
|
|
11025
11032
|
const { canEdit: t, canEditInline: n, findActiveElement: o, updateElement: l, commitTableCell: a } = e;
|
|
11026
11033
|
(0, d.provide)(zs, {
|
|
11027
11034
|
canEdit: n,
|
|
@@ -11054,7 +11061,7 @@ function vp(e) {
|
|
|
11054
11061
|
}
|
|
11055
11062
|
}), { tableSelection: r };
|
|
11056
11063
|
}
|
|
11057
|
-
function
|
|
11064
|
+
function gp(e) {
|
|
11058
11065
|
const t = (0, d.ref)(!1), { slides: n, pptxTheme: o, themeColorMap: l, pushHistory: a, themeGalleryOpen: r, themeEditorOpen: i, templateElementsBySlideId: s } = e;
|
|
11059
11066
|
function c(e, t, r) {
|
|
11060
11067
|
a();
|
|
@@ -11087,21 +11094,21 @@ function fp(e) {
|
|
|
11087
11094
|
themeEditorBusy: t
|
|
11088
11095
|
};
|
|
11089
11096
|
}
|
|
11090
|
-
var
|
|
11091
|
-
function yp(e) {
|
|
11092
|
-
return `ver-${e}-${gp += 1}-${Math.random().toString(36).slice(2, 6)}`;
|
|
11093
|
-
}
|
|
11097
|
+
var yp = 0;
|
|
11094
11098
|
function hp(e) {
|
|
11095
|
-
return e.
|
|
11099
|
+
return `ver-${e}-${yp += 1}-${Math.random().toString(36).slice(2, 6)}`;
|
|
11096
11100
|
}
|
|
11097
11101
|
function kp(e) {
|
|
11102
|
+
return e.map(h.cloneSlide);
|
|
11103
|
+
}
|
|
11104
|
+
function xp(e) {
|
|
11098
11105
|
const { slides: t, pushHistory: n } = e, o = Math.max(1, e.maxVersions ?? 50), l = (0, d.shallowRef)([]);
|
|
11099
11106
|
return {
|
|
11100
11107
|
versions: l,
|
|
11101
11108
|
hasVersions: (0, d.computed)(() => l.value.length > 0),
|
|
11102
11109
|
capture: (e, n) => {
|
|
11103
|
-
const a =
|
|
11104
|
-
id:
|
|
11110
|
+
const a = kp(t.value), r = {
|
|
11111
|
+
id: hp(n),
|
|
11105
11112
|
label: e,
|
|
11106
11113
|
timestamp: n,
|
|
11107
11114
|
slideCount: a.length,
|
|
@@ -11112,7 +11119,7 @@ function kp(e) {
|
|
|
11112
11119
|
},
|
|
11113
11120
|
restore: (e) => {
|
|
11114
11121
|
const o = l.value.find((t) => t.id === e);
|
|
11115
|
-
return !!o && (n(), t.value =
|
|
11122
|
+
return !!o && (n(), t.value = kp(o.slides), !0);
|
|
11116
11123
|
},
|
|
11117
11124
|
remove: (e) => {
|
|
11118
11125
|
const t = l.value.filter((t) => t.id !== e);
|
|
@@ -11123,8 +11130,8 @@ function kp(e) {
|
|
|
11123
11130
|
}
|
|
11124
11131
|
};
|
|
11125
11132
|
}
|
|
11126
|
-
function
|
|
11127
|
-
const { slides: t, pushHistory: n } = e, o =
|
|
11133
|
+
function bp(e) {
|
|
11134
|
+
const { slides: t, pushHistory: n } = e, o = xp({
|
|
11128
11135
|
slides: t,
|
|
11129
11136
|
pushHistory: n
|
|
11130
11137
|
}), l = (0, d.ref)(!1), a = (0, d.ref)(null), r = (0, d.ref)(null), i = (0, d.ref)(null), s = (0, d.computed)(() => null !== a.value);
|
|
@@ -11156,7 +11163,7 @@ function xp(e) {
|
|
|
11156
11163
|
}
|
|
11157
11164
|
};
|
|
11158
11165
|
}
|
|
11159
|
-
function
|
|
11166
|
+
function Sp(e) {
|
|
11160
11167
|
return {
|
|
11161
11168
|
onSetMode: (t) => {
|
|
11162
11169
|
"present" === t ? e.startPresenting() : e.presenting.value = !1;
|
|
@@ -11191,7 +11198,7 @@ function bp(e) {
|
|
|
11191
11198
|
e.newShapeType.value = t;
|
|
11192
11199
|
},
|
|
11193
11200
|
onAddTextBox: e.addText,
|
|
11194
|
-
onAddShape: () => e.addShape(
|
|
11201
|
+
onAddShape: () => e.addShape(lp(e.newShapeType.value)),
|
|
11195
11202
|
onAddTable: e.addTable,
|
|
11196
11203
|
onAddChart: e.addChart,
|
|
11197
11204
|
onAddSmartArt: () => {
|
|
@@ -11239,7 +11246,7 @@ function bp(e) {
|
|
|
11239
11246
|
},
|
|
11240
11247
|
onAddGuide: e.addGuide,
|
|
11241
11248
|
onAlignElements: (t) => {
|
|
11242
|
-
const n =
|
|
11249
|
+
const n = op[t];
|
|
11243
11250
|
n && e.onAlign(n);
|
|
11244
11251
|
},
|
|
11245
11252
|
onDistributeElements: (t) => {
|
|
@@ -11398,7 +11405,7 @@ function bp(e) {
|
|
|
11398
11405
|
onPresentationPropertiesChange: e.onPresentationPropertiesUpdate
|
|
11399
11406
|
};
|
|
11400
11407
|
}
|
|
11401
|
-
function
|
|
11408
|
+
function wp(e) {
|
|
11402
11409
|
return {
|
|
11403
11410
|
mode: e.ribbonMode.value,
|
|
11404
11411
|
canEdit: e.canEdit(),
|
|
@@ -11459,13 +11466,13 @@ function Sp(e) {
|
|
|
11459
11466
|
collaboratorCount: e.collab.connectedCount.value
|
|
11460
11467
|
};
|
|
11461
11468
|
}
|
|
11462
|
-
function
|
|
11469
|
+
function Ep(e) {
|
|
11463
11470
|
return (0, d.computed)(() => ({
|
|
11464
|
-
...
|
|
11465
|
-
...
|
|
11471
|
+
...wp(e),
|
|
11472
|
+
...Sp(e)
|
|
11466
11473
|
}));
|
|
11467
11474
|
}
|
|
11468
|
-
function
|
|
11475
|
+
function Bp(e) {
|
|
11469
11476
|
const t = (0, d.ref)(!1), n = (0, d.ref)({
|
|
11470
11477
|
...u.DEFAULT_VIEWER_SETTINGS,
|
|
11471
11478
|
autoSave: e.autoSave.value,
|
|
@@ -11578,7 +11585,7 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
11578
11585
|
}), Object.defineProperty(exports, "ElementRenderer_default", {
|
|
11579
11586
|
enumerable: !0,
|
|
11580
11587
|
get: function() {
|
|
11581
|
-
return
|
|
11588
|
+
return Wc;
|
|
11582
11589
|
}
|
|
11583
11590
|
}), Object.defineProperty(exports, "EquationRenderer_default", {
|
|
11584
11591
|
enumerable: !0,
|
|
@@ -11593,7 +11600,7 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
11593
11600
|
}), Object.defineProperty(exports, "FragmentedTransitionLayer_default", {
|
|
11594
11601
|
enumerable: !0,
|
|
11595
11602
|
get: function() {
|
|
11596
|
-
return
|
|
11603
|
+
return Pu;
|
|
11597
11604
|
}
|
|
11598
11605
|
}), Object.defineProperty(exports, "HIGHLIGHTER_OPACITY", {
|
|
11599
11606
|
enumerable: !0,
|
|
@@ -11618,7 +11625,7 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
11618
11625
|
}), Object.defineProperty(exports, "MorphExtraLayers_default", {
|
|
11619
11626
|
enumerable: !0,
|
|
11620
11627
|
get: function() {
|
|
11621
|
-
return
|
|
11628
|
+
return _u;
|
|
11622
11629
|
}
|
|
11623
11630
|
}), Object.defineProperty(exports, "OleRenderer_default", {
|
|
11624
11631
|
enumerable: !0,
|
|
@@ -11633,12 +11640,12 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
11633
11640
|
}), Object.defineProperty(exports, "PresentationTransitionOverlay_default", {
|
|
11634
11641
|
enumerable: !0,
|
|
11635
11642
|
get: function() {
|
|
11636
|
-
return
|
|
11643
|
+
return Lu;
|
|
11637
11644
|
}
|
|
11638
11645
|
}), Object.defineProperty(exports, "RIBBON_ALIGN", {
|
|
11639
11646
|
enumerable: !0,
|
|
11640
11647
|
get: function() {
|
|
11641
|
-
return
|
|
11648
|
+
return op;
|
|
11642
11649
|
}
|
|
11643
11650
|
}), Object.defineProperty(exports, "Rendering3DFlagsKey", {
|
|
11644
11651
|
enumerable: !0,
|
|
@@ -11648,22 +11655,22 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
11648
11655
|
}), Object.defineProperty(exports, "SHORTCUT_CATALOG", {
|
|
11649
11656
|
enumerable: !0,
|
|
11650
11657
|
get: function() {
|
|
11651
|
-
return
|
|
11658
|
+
return eu;
|
|
11652
11659
|
}
|
|
11653
11660
|
}), Object.defineProperty(exports, "SHORTCUT_GROUP_LABEL_KEYS", {
|
|
11654
11661
|
enumerable: !0,
|
|
11655
11662
|
get: function() {
|
|
11656
|
-
return
|
|
11663
|
+
return tu;
|
|
11657
11664
|
}
|
|
11658
11665
|
}), Object.defineProperty(exports, "SMARTART_COLOR_SCHEMES", {
|
|
11659
11666
|
enumerable: !0,
|
|
11660
11667
|
get: function() {
|
|
11661
|
-
return
|
|
11668
|
+
return uu;
|
|
11662
11669
|
}
|
|
11663
11670
|
}), Object.defineProperty(exports, "SMARTART_STYLE_OPTIONS", {
|
|
11664
11671
|
enumerable: !0,
|
|
11665
11672
|
get: function() {
|
|
11666
|
-
return
|
|
11673
|
+
return du;
|
|
11667
11674
|
}
|
|
11668
11675
|
}), Object.defineProperty(exports, "ScreenTipKey", {
|
|
11669
11676
|
enumerable: !0,
|
|
@@ -11673,7 +11680,7 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
11673
11680
|
}), Object.defineProperty(exports, "SlideStage_default", {
|
|
11674
11681
|
enumerable: !0,
|
|
11675
11682
|
get: function() {
|
|
11676
|
-
return
|
|
11683
|
+
return Hc;
|
|
11677
11684
|
}
|
|
11678
11685
|
}), Object.defineProperty(exports, "SmartArtRenderer_default", {
|
|
11679
11686
|
enumerable: !0,
|
|
@@ -11733,27 +11740,27 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
11733
11740
|
}), Object.defineProperty(exports, "applyDeleteColumn", {
|
|
11734
11741
|
enumerable: !0,
|
|
11735
11742
|
get: function() {
|
|
11736
|
-
return
|
|
11743
|
+
return yu;
|
|
11737
11744
|
}
|
|
11738
11745
|
}), Object.defineProperty(exports, "applyDeleteRow", {
|
|
11739
11746
|
enumerable: !0,
|
|
11740
11747
|
get: function() {
|
|
11741
|
-
return
|
|
11748
|
+
return fu;
|
|
11742
11749
|
}
|
|
11743
11750
|
}), Object.defineProperty(exports, "applyInsertColumn", {
|
|
11744
11751
|
enumerable: !0,
|
|
11745
11752
|
get: function() {
|
|
11746
|
-
return
|
|
11753
|
+
return gu;
|
|
11747
11754
|
}
|
|
11748
11755
|
}), Object.defineProperty(exports, "applyInsertRow", {
|
|
11749
11756
|
enumerable: !0,
|
|
11750
11757
|
get: function() {
|
|
11751
|
-
return
|
|
11758
|
+
return vu;
|
|
11752
11759
|
}
|
|
11753
11760
|
}), Object.defineProperty(exports, "applyMergeSelected", {
|
|
11754
11761
|
enumerable: !0,
|
|
11755
11762
|
get: function() {
|
|
11756
|
-
return
|
|
11763
|
+
return hu;
|
|
11757
11764
|
}
|
|
11758
11765
|
}), Object.defineProperty(exports, "computeCellSelection", {
|
|
11759
11766
|
enumerable: !0,
|
|
@@ -11763,12 +11770,12 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
11763
11770
|
}), Object.defineProperty(exports, "computeElapsed", {
|
|
11764
11771
|
enumerable: !0,
|
|
11765
11772
|
get: function() {
|
|
11766
|
-
return
|
|
11773
|
+
return Mu;
|
|
11767
11774
|
}
|
|
11768
11775
|
}), Object.defineProperty(exports, "createStroke", {
|
|
11769
11776
|
enumerable: !0,
|
|
11770
11777
|
get: function() {
|
|
11771
|
-
return
|
|
11778
|
+
return bu;
|
|
11772
11779
|
}
|
|
11773
11780
|
}), Object.defineProperty(exports, "dist_exports", {
|
|
11774
11781
|
enumerable: !0,
|
|
@@ -11778,32 +11785,32 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
11778
11785
|
}), Object.defineProperty(exports, "eraseStrokesAtPoint", {
|
|
11779
11786
|
enumerable: !0,
|
|
11780
11787
|
get: function() {
|
|
11781
|
-
return
|
|
11788
|
+
return Su;
|
|
11782
11789
|
}
|
|
11783
11790
|
}), Object.defineProperty(exports, "exportAllSlidesToSvg", {
|
|
11784
11791
|
enumerable: !0,
|
|
11785
11792
|
get: function() {
|
|
11786
|
-
return
|
|
11793
|
+
return Jd;
|
|
11787
11794
|
}
|
|
11788
11795
|
}), Object.defineProperty(exports, "exportAllSlidesToSvgBlobs", {
|
|
11789
11796
|
enumerable: !0,
|
|
11790
11797
|
get: function() {
|
|
11791
|
-
return
|
|
11798
|
+
return Qd;
|
|
11792
11799
|
}
|
|
11793
11800
|
}), Object.defineProperty(exports, "exportSlideToSvg", {
|
|
11794
11801
|
enumerable: !0,
|
|
11795
11802
|
get: function() {
|
|
11796
|
-
return
|
|
11803
|
+
return Xd;
|
|
11797
11804
|
}
|
|
11798
11805
|
}), Object.defineProperty(exports, "exportSlideToSvgBlob", {
|
|
11799
11806
|
enumerable: !0,
|
|
11800
11807
|
get: function() {
|
|
11801
|
-
return
|
|
11808
|
+
return Zd;
|
|
11802
11809
|
}
|
|
11803
11810
|
}), Object.defineProperty(exports, "formatRehearseMs", {
|
|
11804
11811
|
enumerable: !0,
|
|
11805
11812
|
get: function() {
|
|
11806
|
-
return
|
|
11813
|
+
return Au;
|
|
11807
11814
|
}
|
|
11808
11815
|
}), Object.defineProperty(exports, "getContainerStyle", {
|
|
11809
11816
|
enumerable: !0,
|
|
@@ -11838,7 +11845,7 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
11838
11845
|
}), Object.defineProperty(exports, "groupShortcutCatalog", {
|
|
11839
11846
|
enumerable: !0,
|
|
11840
11847
|
get: function() {
|
|
11841
|
-
return
|
|
11848
|
+
return nu;
|
|
11842
11849
|
}
|
|
11843
11850
|
}), Object.defineProperty(exports, "injectChartCanvasEdit", {
|
|
11844
11851
|
enumerable: !0,
|
|
@@ -11863,12 +11870,12 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
11863
11870
|
}), Object.defineProperty(exports, "parseSignaturesFromBuffer", {
|
|
11864
11871
|
enumerable: !0,
|
|
11865
11872
|
get: function() {
|
|
11866
|
-
return
|
|
11873
|
+
return $d;
|
|
11867
11874
|
}
|
|
11868
11875
|
}), Object.defineProperty(exports, "playAnimationSound", {
|
|
11869
11876
|
enumerable: !0,
|
|
11870
11877
|
get: function() {
|
|
11871
|
-
return
|
|
11878
|
+
return Xc;
|
|
11872
11879
|
}
|
|
11873
11880
|
}), Object.defineProperty(exports, "providePresentationElementStates", {
|
|
11874
11881
|
enumerable: !0,
|
|
@@ -11893,22 +11900,22 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
11893
11900
|
}), Object.defineProperty(exports, "renderToCanvas", {
|
|
11894
11901
|
enumerable: !0,
|
|
11895
11902
|
get: function() {
|
|
11896
|
-
return
|
|
11903
|
+
return Qu;
|
|
11897
11904
|
}
|
|
11898
11905
|
}), Object.defineProperty(exports, "resolveShortcutAction", {
|
|
11899
11906
|
enumerable: !0,
|
|
11900
11907
|
get: function() {
|
|
11901
|
-
return
|
|
11908
|
+
return ou;
|
|
11902
11909
|
}
|
|
11903
11910
|
}), Object.defineProperty(exports, "smartArtLayoutLabel", {
|
|
11904
11911
|
enumerable: !0,
|
|
11905
11912
|
get: function() {
|
|
11906
|
-
return
|
|
11913
|
+
return pu;
|
|
11907
11914
|
}
|
|
11908
11915
|
}), Object.defineProperty(exports, "stopAnimationSound", {
|
|
11909
11916
|
enumerable: !0,
|
|
11910
11917
|
get: function() {
|
|
11911
|
-
return
|
|
11918
|
+
return Zc;
|
|
11912
11919
|
}
|
|
11913
11920
|
}), Object.defineProperty(exports, "textNodeIdsInRenderOrder", {
|
|
11914
11921
|
enumerable: !0,
|
|
@@ -11918,7 +11925,7 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
11918
11925
|
}), Object.defineProperty(exports, "toShapePreset", {
|
|
11919
11926
|
enumerable: !0,
|
|
11920
11927
|
get: function() {
|
|
11921
|
-
return
|
|
11928
|
+
return lp;
|
|
11922
11929
|
}
|
|
11923
11930
|
}), Object.defineProperty(exports, "toZoomTargetInfo", {
|
|
11924
11931
|
enumerable: !0,
|
|
@@ -11928,22 +11935,22 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
11928
11935
|
}), Object.defineProperty(exports, "useAccessibility", {
|
|
11929
11936
|
enumerable: !0,
|
|
11930
11937
|
get: function() {
|
|
11931
|
-
return
|
|
11938
|
+
return ju;
|
|
11932
11939
|
}
|
|
11933
11940
|
}), Object.defineProperty(exports, "useAlignGroup", {
|
|
11934
11941
|
enumerable: !0,
|
|
11935
11942
|
get: function() {
|
|
11936
|
-
return
|
|
11943
|
+
return $u;
|
|
11937
11944
|
}
|
|
11938
11945
|
}), Object.defineProperty(exports, "useAnimationPlayback", {
|
|
11939
11946
|
enumerable: !0,
|
|
11940
11947
|
get: function() {
|
|
11941
|
-
return
|
|
11948
|
+
return ku;
|
|
11942
11949
|
}
|
|
11943
11950
|
}), Object.defineProperty(exports, "useAutosave", {
|
|
11944
11951
|
enumerable: !0,
|
|
11945
11952
|
get: function() {
|
|
11946
|
-
return
|
|
11953
|
+
return Uu;
|
|
11947
11954
|
}
|
|
11948
11955
|
}), Object.defineProperty(exports, "useChartCanvasEditContext", {
|
|
11949
11956
|
enumerable: !0,
|
|
@@ -11953,17 +11960,17 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
11953
11960
|
}), Object.defineProperty(exports, "useChartEditing", {
|
|
11954
11961
|
enumerable: !0,
|
|
11955
11962
|
get: function() {
|
|
11956
|
-
return
|
|
11963
|
+
return iu;
|
|
11957
11964
|
}
|
|
11958
11965
|
}), Object.defineProperty(exports, "useCollaboration", {
|
|
11959
11966
|
enumerable: !0,
|
|
11960
11967
|
get: function() {
|
|
11961
|
-
return
|
|
11968
|
+
return qu;
|
|
11962
11969
|
}
|
|
11963
11970
|
}), Object.defineProperty(exports, "useCollaborationWiring", {
|
|
11964
11971
|
enumerable: !0,
|
|
11965
11972
|
get: function() {
|
|
11966
|
-
return
|
|
11973
|
+
return Xu;
|
|
11967
11974
|
}
|
|
11968
11975
|
}), Object.defineProperty(exports, "useColorChangeImage", {
|
|
11969
11976
|
enumerable: !0,
|
|
@@ -11973,107 +11980,107 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
11973
11980
|
}), Object.defineProperty(exports, "useComments", {
|
|
11974
11981
|
enumerable: !0,
|
|
11975
11982
|
get: function() {
|
|
11976
|
-
return
|
|
11983
|
+
return Zu;
|
|
11977
11984
|
}
|
|
11978
11985
|
}), Object.defineProperty(exports, "useCommentsWiring", {
|
|
11979
11986
|
enumerable: !0,
|
|
11980
11987
|
get: function() {
|
|
11981
|
-
return
|
|
11988
|
+
return Ju;
|
|
11982
11989
|
}
|
|
11983
11990
|
}), Object.defineProperty(exports, "useContextMenu", {
|
|
11984
11991
|
enumerable: !0,
|
|
11985
11992
|
get: function() {
|
|
11986
|
-
return
|
|
11993
|
+
return td;
|
|
11987
11994
|
}
|
|
11988
11995
|
}), Object.defineProperty(exports, "useCustomShows", {
|
|
11989
11996
|
enumerable: !0,
|
|
11990
11997
|
get: function() {
|
|
11991
|
-
return
|
|
11998
|
+
return nd;
|
|
11992
11999
|
}
|
|
11993
12000
|
}), Object.defineProperty(exports, "useCustomShowsWiring", {
|
|
11994
12001
|
enumerable: !0,
|
|
11995
12002
|
get: function() {
|
|
11996
|
-
return
|
|
12003
|
+
return od;
|
|
11997
12004
|
}
|
|
11998
12005
|
}), Object.defineProperty(exports, "useDebouncedCallback", {
|
|
11999
12006
|
enumerable: !0,
|
|
12000
12007
|
get: function() {
|
|
12001
|
-
return
|
|
12008
|
+
return su;
|
|
12002
12009
|
}
|
|
12003
12010
|
}), Object.defineProperty(exports, "useDocumentPropertiesDialog", {
|
|
12004
12011
|
enumerable: !0,
|
|
12005
12012
|
get: function() {
|
|
12006
|
-
return
|
|
12013
|
+
return ld;
|
|
12007
12014
|
}
|
|
12008
12015
|
}), Object.defineProperty(exports, "useDocumentStatistics", {
|
|
12009
12016
|
enumerable: !0,
|
|
12010
12017
|
get: function() {
|
|
12011
|
-
return
|
|
12018
|
+
return Qc;
|
|
12012
12019
|
}
|
|
12013
12020
|
}), Object.defineProperty(exports, "useEditorHistory", {
|
|
12014
12021
|
enumerable: !0,
|
|
12015
12022
|
get: function() {
|
|
12016
|
-
return
|
|
12023
|
+
return ad;
|
|
12017
12024
|
}
|
|
12018
12025
|
}), Object.defineProperty(exports, "useEditorKeyboard", {
|
|
12019
12026
|
enumerable: !0,
|
|
12020
12027
|
get: function() {
|
|
12021
|
-
return
|
|
12028
|
+
return sd;
|
|
12022
12029
|
}
|
|
12023
12030
|
}), Object.defineProperty(exports, "useEditorOperations", {
|
|
12024
12031
|
enumerable: !0,
|
|
12025
12032
|
get: function() {
|
|
12026
|
-
return
|
|
12033
|
+
return cd;
|
|
12027
12034
|
}
|
|
12028
12035
|
}), Object.defineProperty(exports, "useElementDrag", {
|
|
12029
12036
|
enumerable: !0,
|
|
12030
12037
|
get: function() {
|
|
12031
|
-
return
|
|
12038
|
+
return ud;
|
|
12032
12039
|
}
|
|
12033
12040
|
}), Object.defineProperty(exports, "useElementInsertion", {
|
|
12034
12041
|
enumerable: !0,
|
|
12035
12042
|
get: function() {
|
|
12036
|
-
return
|
|
12043
|
+
return dd;
|
|
12037
12044
|
}
|
|
12038
12045
|
}), Object.defineProperty(exports, "useEmbeddedFonts", {
|
|
12039
12046
|
enumerable: !0,
|
|
12040
12047
|
get: function() {
|
|
12041
|
-
return
|
|
12048
|
+
return kd;
|
|
12042
12049
|
}
|
|
12043
12050
|
}), Object.defineProperty(exports, "useExport", {
|
|
12044
12051
|
enumerable: !0,
|
|
12045
12052
|
get: function() {
|
|
12046
|
-
return
|
|
12053
|
+
return bd;
|
|
12047
12054
|
}
|
|
12048
12055
|
}), Object.defineProperty(exports, "useExportProgress", {
|
|
12049
12056
|
enumerable: !0,
|
|
12050
12057
|
get: function() {
|
|
12051
|
-
return
|
|
12058
|
+
return Sd;
|
|
12052
12059
|
}
|
|
12053
12060
|
}), Object.defineProperty(exports, "useExportWiring", {
|
|
12054
12061
|
enumerable: !0,
|
|
12055
12062
|
get: function() {
|
|
12056
|
-
return
|
|
12063
|
+
return Dd;
|
|
12057
12064
|
}
|
|
12058
12065
|
}), Object.defineProperty(exports, "useFindReplace", {
|
|
12059
12066
|
enumerable: !0,
|
|
12060
12067
|
get: function() {
|
|
12061
|
-
return
|
|
12068
|
+
return Nd;
|
|
12062
12069
|
}
|
|
12063
12070
|
}), Object.defineProperty(exports, "useFontEmbedding", {
|
|
12064
12071
|
enumerable: !0,
|
|
12065
12072
|
get: function() {
|
|
12066
|
-
return
|
|
12073
|
+
return Ld;
|
|
12067
12074
|
}
|
|
12068
12075
|
}), Object.defineProperty(exports, "useFormatPainter", {
|
|
12069
12076
|
enumerable: !0,
|
|
12070
12077
|
get: function() {
|
|
12071
|
-
return
|
|
12078
|
+
return Ad;
|
|
12072
12079
|
}
|
|
12073
12080
|
}), Object.defineProperty(exports, "useHeaderFooterDialog", {
|
|
12074
12081
|
enumerable: !0,
|
|
12075
12082
|
get: function() {
|
|
12076
|
-
return
|
|
12083
|
+
return Md;
|
|
12077
12084
|
}
|
|
12078
12085
|
}), Object.defineProperty(exports, "useI18n", {
|
|
12079
12086
|
enumerable: !0,
|
|
@@ -12083,12 +12090,12 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
12083
12090
|
}), Object.defineProperty(exports, "useInkDrawing", {
|
|
12084
12091
|
enumerable: !0,
|
|
12085
12092
|
get: function() {
|
|
12086
|
-
return
|
|
12093
|
+
return Fd;
|
|
12087
12094
|
}
|
|
12088
12095
|
}), Object.defineProperty(exports, "useInlineEditing", {
|
|
12089
12096
|
enumerable: !0,
|
|
12090
12097
|
get: function() {
|
|
12091
|
-
return
|
|
12098
|
+
return zd;
|
|
12092
12099
|
}
|
|
12093
12100
|
}), Object.defineProperty(exports, "useInlineListSession", {
|
|
12094
12101
|
enumerable: !0,
|
|
@@ -12098,42 +12105,42 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
12098
12105
|
}), Object.defineProperty(exports, "useInsertElementDialogs", {
|
|
12099
12106
|
enumerable: !0,
|
|
12100
12107
|
get: function() {
|
|
12101
|
-
return
|
|
12108
|
+
return Rd;
|
|
12102
12109
|
}
|
|
12103
12110
|
}), Object.defineProperty(exports, "useIsMobile", {
|
|
12104
12111
|
enumerable: !0,
|
|
12105
12112
|
get: function() {
|
|
12106
|
-
return
|
|
12113
|
+
return Jc;
|
|
12107
12114
|
}
|
|
12108
12115
|
}), Object.defineProperty(exports, "useKeyboardInsets", {
|
|
12109
12116
|
enumerable: !0,
|
|
12110
12117
|
get: function() {
|
|
12111
|
-
return
|
|
12118
|
+
return jd;
|
|
12112
12119
|
}
|
|
12113
12120
|
}), Object.defineProperty(exports, "useKeyboardShortcuts", {
|
|
12114
12121
|
enumerable: !0,
|
|
12115
12122
|
get: function() {
|
|
12116
|
-
return
|
|
12123
|
+
return au;
|
|
12117
12124
|
}
|
|
12118
12125
|
}), Object.defineProperty(exports, "useLoadContent", {
|
|
12119
12126
|
enumerable: !0,
|
|
12120
12127
|
get: function() {
|
|
12121
|
-
return
|
|
12128
|
+
return Wd;
|
|
12122
12129
|
}
|
|
12123
12130
|
}), Object.defineProperty(exports, "useMasterViewState", {
|
|
12124
12131
|
enumerable: !0,
|
|
12125
12132
|
get: function() {
|
|
12126
|
-
return
|
|
12133
|
+
return Ud;
|
|
12127
12134
|
}
|
|
12128
12135
|
}), Object.defineProperty(exports, "useMediaExport", {
|
|
12129
12136
|
enumerable: !0,
|
|
12130
12137
|
get: function() {
|
|
12131
|
-
return
|
|
12138
|
+
return Od;
|
|
12132
12139
|
}
|
|
12133
12140
|
}), Object.defineProperty(exports, "useMobileChrome", {
|
|
12134
12141
|
enumerable: !0,
|
|
12135
12142
|
get: function() {
|
|
12136
|
-
return
|
|
12143
|
+
return Gd;
|
|
12137
12144
|
}
|
|
12138
12145
|
}), Object.defineProperty(exports, "useModel3dScene", {
|
|
12139
12146
|
enumerable: !0,
|
|
@@ -12143,37 +12150,37 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
12143
12150
|
}), Object.defineProperty(exports, "useMorphTransitionOverlay", {
|
|
12144
12151
|
enumerable: !0,
|
|
12145
12152
|
get: function() {
|
|
12146
|
-
return
|
|
12153
|
+
return Cu;
|
|
12147
12154
|
}
|
|
12148
12155
|
}), Object.defineProperty(exports, "useMultiSelectOps", {
|
|
12149
12156
|
enumerable: !0,
|
|
12150
12157
|
get: function() {
|
|
12151
|
-
return
|
|
12158
|
+
return Kd;
|
|
12152
12159
|
}
|
|
12153
12160
|
}), Object.defineProperty(exports, "usePasswordProtection", {
|
|
12154
12161
|
enumerable: !0,
|
|
12155
12162
|
get: function() {
|
|
12156
|
-
return
|
|
12163
|
+
return Yd;
|
|
12157
12164
|
}
|
|
12158
12165
|
}), Object.defineProperty(exports, "usePresentationAnnotations", {
|
|
12159
12166
|
enumerable: !0,
|
|
12160
12167
|
get: function() {
|
|
12161
|
-
return
|
|
12168
|
+
return wu;
|
|
12162
12169
|
}
|
|
12163
12170
|
}), Object.defineProperty(exports, "usePresentationModeWiring", {
|
|
12164
12171
|
enumerable: !0,
|
|
12165
12172
|
get: function() {
|
|
12166
|
-
return
|
|
12173
|
+
return qd;
|
|
12167
12174
|
}
|
|
12168
12175
|
}), Object.defineProperty(exports, "usePrint", {
|
|
12169
12176
|
enumerable: !0,
|
|
12170
12177
|
get: function() {
|
|
12171
|
-
return
|
|
12178
|
+
return np;
|
|
12172
12179
|
}
|
|
12173
12180
|
}), Object.defineProperty(exports, "useRehearseTimings", {
|
|
12174
12181
|
enumerable: !0,
|
|
12175
12182
|
get: function() {
|
|
12176
|
-
return
|
|
12183
|
+
return Fu;
|
|
12177
12184
|
}
|
|
12178
12185
|
}), Object.defineProperty(exports, "useRendering3DFlags", {
|
|
12179
12186
|
enumerable: !0,
|
|
@@ -12183,32 +12190,32 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
12183
12190
|
}), Object.defineProperty(exports, "useRibbonActions", {
|
|
12184
12191
|
enumerable: !0,
|
|
12185
12192
|
get: function() {
|
|
12186
|
-
return
|
|
12193
|
+
return ap;
|
|
12187
12194
|
}
|
|
12188
12195
|
}), Object.defineProperty(exports, "useRibbonProps", {
|
|
12189
12196
|
enumerable: !0,
|
|
12190
12197
|
get: function() {
|
|
12191
|
-
return
|
|
12198
|
+
return Ep;
|
|
12192
12199
|
}
|
|
12193
12200
|
}), Object.defineProperty(exports, "useRibbonUiState", {
|
|
12194
12201
|
enumerable: !0,
|
|
12195
12202
|
get: function() {
|
|
12196
|
-
return
|
|
12203
|
+
return rp;
|
|
12197
12204
|
}
|
|
12198
12205
|
}), Object.defineProperty(exports, "useSectionOperations", {
|
|
12199
12206
|
enumerable: !0,
|
|
12200
12207
|
get: function() {
|
|
12201
|
-
return
|
|
12208
|
+
return ip;
|
|
12202
12209
|
}
|
|
12203
12210
|
}), Object.defineProperty(exports, "useSelectionAffordances", {
|
|
12204
12211
|
enumerable: !0,
|
|
12205
12212
|
get: function() {
|
|
12206
|
-
return
|
|
12213
|
+
return Kc;
|
|
12207
12214
|
}
|
|
12208
12215
|
}), Object.defineProperty(exports, "useSelectionPaneWiring", {
|
|
12209
12216
|
enumerable: !0,
|
|
12210
12217
|
get: function() {
|
|
12211
|
-
return
|
|
12218
|
+
return sp;
|
|
12212
12219
|
}
|
|
12213
12220
|
}), Object.defineProperty(exports, "useSheetDismissDrag", {
|
|
12214
12221
|
enumerable: !0,
|
|
@@ -12218,42 +12225,42 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
12218
12225
|
}), Object.defineProperty(exports, "useSignatureWorkflow", {
|
|
12219
12226
|
enumerable: !0,
|
|
12220
12227
|
get: function() {
|
|
12221
|
-
return
|
|
12228
|
+
return cp;
|
|
12222
12229
|
}
|
|
12223
12230
|
}), Object.defineProperty(exports, "useSignatures", {
|
|
12224
12231
|
enumerable: !0,
|
|
12225
12232
|
get: function() {
|
|
12226
|
-
return
|
|
12233
|
+
return Ru;
|
|
12227
12234
|
}
|
|
12228
12235
|
}), Object.defineProperty(exports, "useSlideMutations", {
|
|
12229
12236
|
enumerable: !0,
|
|
12230
12237
|
get: function() {
|
|
12231
|
-
return
|
|
12238
|
+
return up;
|
|
12232
12239
|
}
|
|
12233
12240
|
}), Object.defineProperty(exports, "useSlideOperations", {
|
|
12234
12241
|
enumerable: !0,
|
|
12235
12242
|
get: function() {
|
|
12236
|
-
return
|
|
12243
|
+
return dp;
|
|
12237
12244
|
}
|
|
12238
12245
|
}), Object.defineProperty(exports, "useSlideShowSettings", {
|
|
12239
12246
|
enumerable: !0,
|
|
12240
12247
|
get: function() {
|
|
12241
|
-
return
|
|
12248
|
+
return pp;
|
|
12242
12249
|
}
|
|
12243
12250
|
}), Object.defineProperty(exports, "useSlideTemplateInsertion", {
|
|
12244
12251
|
enumerable: !0,
|
|
12245
12252
|
get: function() {
|
|
12246
|
-
return
|
|
12253
|
+
return mp;
|
|
12247
12254
|
}
|
|
12248
12255
|
}), Object.defineProperty(exports, "useSmartArtEditing", {
|
|
12249
12256
|
enumerable: !0,
|
|
12250
12257
|
get: function() {
|
|
12251
|
-
return
|
|
12258
|
+
return mu;
|
|
12252
12259
|
}
|
|
12253
12260
|
}), Object.defineProperty(exports, "useSmartArtFocus", {
|
|
12254
12261
|
enumerable: !0,
|
|
12255
12262
|
get: function() {
|
|
12256
|
-
return
|
|
12263
|
+
return cu;
|
|
12257
12264
|
}
|
|
12258
12265
|
}), Object.defineProperty(exports, "useSmartArtHoverRect", {
|
|
12259
12266
|
enumerable: !0,
|
|
@@ -12268,12 +12275,12 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
12268
12275
|
}), Object.defineProperty(exports, "useSmartArtNodeEditContext", {
|
|
12269
12276
|
enumerable: !0,
|
|
12270
12277
|
get: function() {
|
|
12271
|
-
return
|
|
12278
|
+
return vp;
|
|
12272
12279
|
}
|
|
12273
12280
|
}), Object.defineProperty(exports, "useTableCellEditingContext", {
|
|
12274
12281
|
enumerable: !0,
|
|
12275
12282
|
get: function() {
|
|
12276
|
-
return
|
|
12283
|
+
return fp;
|
|
12277
12284
|
}
|
|
12278
12285
|
}), Object.defineProperty(exports, "useTableCellSelection", {
|
|
12279
12286
|
enumerable: !0,
|
|
@@ -12283,32 +12290,32 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
12283
12290
|
}), Object.defineProperty(exports, "useThemeEditing", {
|
|
12284
12291
|
enumerable: !0,
|
|
12285
12292
|
get: function() {
|
|
12286
|
-
return
|
|
12293
|
+
return gp;
|
|
12287
12294
|
}
|
|
12288
12295
|
}), Object.defineProperty(exports, "useToolbarAutoHide", {
|
|
12289
12296
|
enumerable: !0,
|
|
12290
12297
|
get: function() {
|
|
12291
|
-
return
|
|
12298
|
+
return Eu;
|
|
12292
12299
|
}
|
|
12293
12300
|
}), Object.defineProperty(exports, "useToolbarVisibility", {
|
|
12294
12301
|
enumerable: !0,
|
|
12295
12302
|
get: function() {
|
|
12296
|
-
return
|
|
12303
|
+
return Yc;
|
|
12297
12304
|
}
|
|
12298
12305
|
}), Object.defineProperty(exports, "useTouchGestures", {
|
|
12299
12306
|
enumerable: !0,
|
|
12300
12307
|
get: function() {
|
|
12301
|
-
return
|
|
12308
|
+
return Bu;
|
|
12302
12309
|
}
|
|
12303
12310
|
}), Object.defineProperty(exports, "useVersionHistory", {
|
|
12304
12311
|
enumerable: !0,
|
|
12305
12312
|
get: function() {
|
|
12306
|
-
return
|
|
12313
|
+
return xp;
|
|
12307
12314
|
}
|
|
12308
12315
|
}), Object.defineProperty(exports, "useVersionHistoryWiring", {
|
|
12309
12316
|
enumerable: !0,
|
|
12310
12317
|
get: function() {
|
|
12311
|
-
return
|
|
12318
|
+
return bp;
|
|
12312
12319
|
}
|
|
12313
12320
|
}), Object.defineProperty(exports, "useViewerOptionsStore", {
|
|
12314
12321
|
enumerable: !0,
|
|
@@ -12318,6 +12325,6 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
12318
12325
|
}), Object.defineProperty(exports, "useViewerSettingsDialog", {
|
|
12319
12326
|
enumerable: !0,
|
|
12320
12327
|
get: function() {
|
|
12321
|
-
return
|
|
12328
|
+
return Bp;
|
|
12322
12329
|
}
|
|
12323
12330
|
});
|