pptx-vue-viewer 1.1.12 → 1.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.br +0 -0
- package/dist/index.cjs.gz +0 -0
- package/dist/index.js +1 -1
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/viewer/PowerPointViewer.vue.d.ts.map +1 -1
- package/dist/viewer/components/SlideCanvas.vue.d.ts +12 -1
- package/dist/viewer/components/SlideCanvas.vue.d.ts.map +1 -1
- 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.js +1 -1
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/{viewer-hGgMcu9l.js → viewer-DOKNVF1b.js} +385 -366
- package/dist/viewer-DOKNVF1b.js.br +0 -0
- package/dist/{viewer-hGgMcu9l.js.gz → viewer-DOKNVF1b.js.gz} +0 -0
- package/dist/{viewer-CuMsRAEv.cjs → viewer-QVDbby6z.cjs} +389 -370
- package/dist/viewer-QVDbby6z.cjs.br +0 -0
- package/dist/{viewer-CuMsRAEv.cjs.gz → viewer-QVDbby6z.cjs.gz} +0 -0
- package/package.json +1 -1
- package/dist/viewer-CuMsRAEv.cjs.br +0 -0
- package/dist/viewer-hGgMcu9l.js.br +0 -0
|
@@ -46639,7 +46639,7 @@ var fk = {
|
|
|
46639
46639
|
e.certificate ? a("", !0) : (x(), i(t, { key: 3 }, [n[4] || (n[4] = o("dt", null, "Certificate", -1)), n[5] || (n[5] = o("dd", null, "Not available", -1))], 64))
|
|
46640
46640
|
])], 2))), 128))])) : (x(), i("p", xk, " This presentation has no digital signatures. "))]));
|
|
46641
46641
|
}
|
|
46642
|
-
}), [["__scopeId", "data-v-f2f00ee5"]]), Tk =
|
|
46642
|
+
}), [["__scopeId", "data-v-f2f00ee5"]]), Tk = c({
|
|
46643
46643
|
__name: "SlideCanvas",
|
|
46644
46644
|
props: {
|
|
46645
46645
|
slide: {},
|
|
@@ -46647,22 +46647,40 @@ var fk = {
|
|
|
46647
46647
|
mediaDataUrls: {},
|
|
46648
46648
|
zoom: {}
|
|
46649
46649
|
},
|
|
46650
|
-
|
|
46651
|
-
|
|
46652
|
-
|
|
46653
|
-
|
|
46650
|
+
emits: ["update:fitScale"],
|
|
46651
|
+
setup(t, { emit: e }) {
|
|
46652
|
+
const r = t, a = e, s = n(() => r.zoom ?? 1), c = n(() => ({
|
|
46653
|
+
width: r.canvasSize.width * s.value + "px",
|
|
46654
|
+
height: r.canvasSize.height * s.value + "px",
|
|
46654
46655
|
position: "relative",
|
|
46655
46656
|
margin: "1rem auto",
|
|
46656
46657
|
boxShadow: "0 10px 40px rgba(0, 0, 0, 0.35)"
|
|
46657
|
-
}));
|
|
46658
|
-
|
|
46658
|
+
})), d = S(null);
|
|
46659
|
+
function p() {
|
|
46660
|
+
const t = d.value, { width: e, height: n } = r.canvasSize;
|
|
46661
|
+
if (!t || !e || !n) return void a("update:fitScale", 1);
|
|
46662
|
+
const i = Math.max(t.clientWidth - 16, 0), o = Math.max(t.clientHeight - 32, 0);
|
|
46663
|
+
if (!i || !o) return void a("update:fitScale", 1);
|
|
46664
|
+
const s = Math.min(i / e, o / n, 1);
|
|
46665
|
+
a("update:fitScale", s > 0 ? s : 1);
|
|
46666
|
+
}
|
|
46667
|
+
let u = null;
|
|
46668
|
+
return g(() => {
|
|
46669
|
+
p(), "undefined" != typeof ResizeObserver && d.value && (u = new ResizeObserver(() => p()), u.observe(d.value));
|
|
46670
|
+
}), f(() => {
|
|
46671
|
+
u?.disconnect(), u = null;
|
|
46672
|
+
}), $(() => [r.canvasSize.width, r.canvasSize.height], p), (e, n) => (x(), i("div", {
|
|
46673
|
+
ref_key: "viewportRef",
|
|
46674
|
+
ref: d,
|
|
46675
|
+
class: "pptx-vue-canvas-viewport"
|
|
46676
|
+
}, [o("div", {
|
|
46659
46677
|
class: "pptx-vue-canvas-wrapper",
|
|
46660
|
-
style: m(
|
|
46678
|
+
style: m(c.value)
|
|
46661
46679
|
}, [l(Ow, {
|
|
46662
46680
|
slide: t.slide,
|
|
46663
46681
|
"canvas-size": t.canvasSize,
|
|
46664
46682
|
"media-data-urls": t.mediaDataUrls,
|
|
46665
|
-
scale:
|
|
46683
|
+
scale: s.value
|
|
46666
46684
|
}, {
|
|
46667
46685
|
default: N(() => [k(e.$slots, "default")]),
|
|
46668
46686
|
_: 3
|
|
@@ -46671,13 +46689,13 @@ var fk = {
|
|
|
46671
46689
|
"canvas-size",
|
|
46672
46690
|
"media-data-urls",
|
|
46673
46691
|
"scale"
|
|
46674
|
-
])], 4)]));
|
|
46692
|
+
])], 4)], 512));
|
|
46675
46693
|
}
|
|
46676
|
-
}),
|
|
46694
|
+
}), Ck = {
|
|
46677
46695
|
class: "pptx-vue-sorter",
|
|
46678
46696
|
role: "dialog",
|
|
46679
46697
|
"aria-label": "Slide sorter"
|
|
46680
|
-
},
|
|
46698
|
+
}, _k = { class: "pptx-vue-sorter-head" }, Mk = { class: "pptx-vue-sorter-grid" }, Ik = [
|
|
46681
46699
|
"data-index",
|
|
46682
46700
|
"aria-label",
|
|
46683
46701
|
"aria-current",
|
|
@@ -46685,7 +46703,7 @@ var fk = {
|
|
|
46685
46703
|
"onDragstart",
|
|
46686
46704
|
"onDragover",
|
|
46687
46705
|
"onDrop"
|
|
46688
|
-
],
|
|
46706
|
+
], Pk = { class: "pptx-vue-sorter-index" }, Ak = Um(c({
|
|
46689
46707
|
__name: "SlideSorter",
|
|
46690
46708
|
props: {
|
|
46691
46709
|
slides: {},
|
|
@@ -46706,12 +46724,12 @@ var fk = {
|
|
|
46706
46724
|
function g() {
|
|
46707
46725
|
u.value = null, f.value = null;
|
|
46708
46726
|
}
|
|
46709
|
-
return (n, r) => (x(), i("div",
|
|
46727
|
+
return (n, r) => (x(), i("div", Ck, [o("header", _k, [r[1] || (r[1] = o("h2", { class: "pptx-vue-sorter-title" }, "Slide sorter", -1)), o("button", {
|
|
46710
46728
|
type: "button",
|
|
46711
46729
|
class: "pptx-vue-sorter-close",
|
|
46712
46730
|
"aria-label": "Close slide sorter",
|
|
46713
46731
|
onClick: r[0] || (r[0] = (t) => s("close"))
|
|
46714
|
-
}, " × ")]), o("div",
|
|
46732
|
+
}, " × ")]), o("div", Mk, [(x(!0), i(t, null, w(e.slides, (t, n) => (x(), i("div", {
|
|
46715
46733
|
key: t.id ?? n,
|
|
46716
46734
|
class: h(["pptx-vue-sorter-tile", {
|
|
46717
46735
|
"is-active": n === e.activeIndex,
|
|
@@ -46751,13 +46769,13 @@ var fk = {
|
|
|
46751
46769
|
"canvas-size",
|
|
46752
46770
|
"media-data-urls",
|
|
46753
46771
|
"scale"
|
|
46754
|
-
])], 4), o("span",
|
|
46772
|
+
])], 4), o("span", Pk, M(n + 1), 1)], 42, Ik))), 128))])]));
|
|
46755
46773
|
}
|
|
46756
|
-
}), [["__scopeId", "data-v-0d2c8435"]]),
|
|
46774
|
+
}), [["__scopeId", "data-v-0d2c8435"]]), Fk = {
|
|
46757
46775
|
class: "pptx-vue-slides-controls",
|
|
46758
46776
|
role: "toolbar",
|
|
46759
46777
|
"aria-label": "Slide actions"
|
|
46760
|
-
},
|
|
46778
|
+
}, Lk = ["disabled"], Bk = Um(c({
|
|
46761
46779
|
__name: "SlidesPaneControls",
|
|
46762
46780
|
props: { canDelete: { type: Boolean } },
|
|
46763
46781
|
emits: [
|
|
@@ -46767,7 +46785,7 @@ var fk = {
|
|
|
46767
46785
|
],
|
|
46768
46786
|
setup(t, { emit: e }) {
|
|
46769
46787
|
const n = e;
|
|
46770
|
-
return (e, r) => (x(), i("div",
|
|
46788
|
+
return (e, r) => (x(), i("div", Fk, [
|
|
46771
46789
|
o("button", {
|
|
46772
46790
|
type: "button",
|
|
46773
46791
|
class: "pptx-vue-slides-controls__btn",
|
|
@@ -46835,10 +46853,10 @@ var fk = {
|
|
|
46835
46853
|
"stroke-width": "1.4",
|
|
46836
46854
|
"stroke-linecap": "round",
|
|
46837
46855
|
"stroke-linejoin": "round"
|
|
46838
|
-
})], -1), o("span", { class: "pptx-vue-slides-controls__label" }, "Delete", -1)])], 8,
|
|
46856
|
+
})], -1), o("span", { class: "pptx-vue-slides-controls__label" }, "Delete", -1)])], 8, Lk)
|
|
46839
46857
|
]));
|
|
46840
46858
|
}
|
|
46841
|
-
}), [["__scopeId", "data-v-a34cba33"]]),
|
|
46859
|
+
}), [["__scopeId", "data-v-a34cba33"]]), Dk = { class: "pptx-vue-transition-panel" }, Rk = { class: "pptx-vue-transition-panel__field" }, $k = ["value"], Nk = ["value"], Ek = { class: "pptx-vue-transition-panel__field" }, jk = ["value", "disabled"], Ok = "__none__", Xk = c({
|
|
46842
46860
|
__name: "SlideTransitionPanel",
|
|
46843
46861
|
props: { slide: {} },
|
|
46844
46862
|
emits: ["update"],
|
|
@@ -46891,11 +46909,11 @@ var fk = {
|
|
|
46891
46909
|
"orbit"
|
|
46892
46910
|
], c = n(() => a.slide?.transition), d = n(() => {
|
|
46893
46911
|
const t = c.value?.type;
|
|
46894
|
-
return t && "none" !== t ? t :
|
|
46895
|
-
}), p = n(() => c.value?.durationMs ?? 1e3), u = n(() => d.value !==
|
|
46912
|
+
return t && "none" !== t ? t : Ok;
|
|
46913
|
+
}), p = n(() => c.value?.durationMs ?? 1e3), u = n(() => d.value !== Ok);
|
|
46896
46914
|
function h(t) {
|
|
46897
46915
|
const e = t.target.value;
|
|
46898
|
-
if (e ===
|
|
46916
|
+
if (e === Ok) return void s("update", void 0);
|
|
46899
46917
|
const n = e;
|
|
46900
46918
|
s("update", {
|
|
46901
46919
|
...c.value,
|
|
@@ -46910,15 +46928,15 @@ var fk = {
|
|
|
46910
46928
|
durationMs: n
|
|
46911
46929
|
});
|
|
46912
46930
|
}
|
|
46913
|
-
return (e, n) => (x(), i("div",
|
|
46931
|
+
return (e, n) => (x(), i("div", Dk, [o("label", Rk, [n[0] || (n[0] = o("span", { class: "pptx-vue-transition-panel__label" }, "Transition", -1)), o("select", {
|
|
46914
46932
|
class: "pptx-vue-transition-panel__select",
|
|
46915
46933
|
value: d.value,
|
|
46916
46934
|
"data-testid": "transition-type",
|
|
46917
46935
|
onChange: h
|
|
46918
|
-
}, [o("option", { value:
|
|
46936
|
+
}, [o("option", { value: Ok }, "None"), (x(), i(t, null, w(l, (t) => o("option", {
|
|
46919
46937
|
key: t,
|
|
46920
46938
|
value: t
|
|
46921
|
-
}, M(t), 9,
|
|
46939
|
+
}, M(t), 9, Nk)), 64))], 40, $k)]), o("label", Ek, [n[1] || (n[1] = o("span", { class: "pptx-vue-transition-panel__label" }, "Duration (ms)", -1)), o("input", {
|
|
46922
46940
|
class: "pptx-vue-transition-panel__duration",
|
|
46923
46941
|
type: "number",
|
|
46924
46942
|
min: "0",
|
|
@@ -46927,14 +46945,14 @@ var fk = {
|
|
|
46927
46945
|
disabled: !u.value,
|
|
46928
46946
|
"data-testid": "transition-duration",
|
|
46929
46947
|
onChange: m
|
|
46930
|
-
}, null, 40,
|
|
46948
|
+
}, null, 40, jk)])]));
|
|
46931
46949
|
}
|
|
46932
|
-
}),
|
|
46950
|
+
}), zk = {
|
|
46933
46951
|
error: 0,
|
|
46934
46952
|
warning: 1,
|
|
46935
46953
|
tip: 2
|
|
46936
46954
|
};
|
|
46937
|
-
function
|
|
46955
|
+
function Gk(t, e = {}) {
|
|
46938
46956
|
const r = n(() => {
|
|
46939
46957
|
const n = P(t), r = P(e), a = r.minContrastRatio ?? 4.5, i = r.skipContrast ?? !1, o = r.skipBlankSlide ?? !1, s = [];
|
|
46940
46958
|
for (let t = 0; t < n.length; t++) {
|
|
@@ -46959,21 +46977,21 @@ function Wk(t, e = {}) {
|
|
|
46959
46977
|
suggestion: "Use unique titles to help screen reader users distinguish slides."
|
|
46960
46978
|
});
|
|
46961
46979
|
return e;
|
|
46962
|
-
}(n)), s.sort((t, e) => t.slideIndex - e.slideIndex ||
|
|
46980
|
+
}(n)), s.sort((t, e) => t.slideIndex - e.slideIndex || zk[t.severity] - zk[e.severity]), s;
|
|
46963
46981
|
});
|
|
46964
46982
|
return {
|
|
46965
46983
|
issues: r,
|
|
46966
46984
|
issueCount: n(() => r.value.length)
|
|
46967
46985
|
};
|
|
46968
46986
|
}
|
|
46969
|
-
var
|
|
46987
|
+
var Wk = {
|
|
46970
46988
|
setTimer: (t, e) => setTimeout(t, e),
|
|
46971
46989
|
clearTimer: (t) => {
|
|
46972
46990
|
clearTimeout(t);
|
|
46973
46991
|
}
|
|
46974
46992
|
};
|
|
46975
|
-
function
|
|
46976
|
-
const { slides: e, enabled: n = !0, intervalMs: r, onSave: a } = t, i = t.timers ??
|
|
46993
|
+
function Hk(t) {
|
|
46994
|
+
const { slides: e, enabled: n = !0, intervalMs: r, onSave: a } = t, i = t.timers ?? Wk, o = S("idle"), s = S(null), l = S(!1);
|
|
46977
46995
|
let c = null, d = null;
|
|
46978
46996
|
const p = () => !1 !== P(n), u = () => {
|
|
46979
46997
|
null !== c && (i.clearTimer(c), c = null);
|
|
@@ -47006,13 +47024,13 @@ function Vk(t) {
|
|
|
47006
47024
|
isDirty: l
|
|
47007
47025
|
};
|
|
47008
47026
|
}
|
|
47009
|
-
var
|
|
47010
|
-
function
|
|
47027
|
+
var Vk = "#4c8bf5";
|
|
47028
|
+
function Yk() {
|
|
47011
47029
|
if ("undefined" != typeof crypto && "function" == typeof crypto.randomUUID) return `comment-${crypto.randomUUID()}`;
|
|
47012
47030
|
const t = Math.random().toString(36).slice(2);
|
|
47013
47031
|
return `comment-${Date.now().toString(36)}-${t}`;
|
|
47014
47032
|
}
|
|
47015
|
-
function
|
|
47033
|
+
function qk(t) {
|
|
47016
47034
|
const e = _([]), r = _([]), a = n(() => e.value.length > 0), i = n(() => r.value.length > 0), o = (t) => t.map(wi);
|
|
47017
47035
|
return {
|
|
47018
47036
|
canUndo: a,
|
|
@@ -47036,7 +47054,7 @@ function Kk(t) {
|
|
|
47036
47054
|
}
|
|
47037
47055
|
};
|
|
47038
47056
|
}
|
|
47039
|
-
function
|
|
47057
|
+
function Kk(t) {
|
|
47040
47058
|
const { slides: e, activeSlideIndex: r, pushHistory: a } = t, i = t.selectedElementIds ?? S([]), o = n(() => e.value[r.value]), s = (t) => {
|
|
47041
47059
|
const n = r.value;
|
|
47042
47060
|
e.value[n] && (a(), e.value = e.value.map((e, r) => r === n ? {
|
|
@@ -47118,27 +47136,27 @@ function Zk(t) {
|
|
|
47118
47136
|
}
|
|
47119
47137
|
};
|
|
47120
47138
|
}
|
|
47121
|
-
var
|
|
47139
|
+
var Zk = /["\\\n\r;}<>]/u, Jk = new Set([
|
|
47122
47140
|
"truetype",
|
|
47123
47141
|
"opentype",
|
|
47124
47142
|
"woff",
|
|
47125
47143
|
"woff2"
|
|
47126
|
-
]),
|
|
47127
|
-
function
|
|
47144
|
+
]), Qk = /^data:font\/[a-z0-9+.-]+(?:;charset=[a-z0-9-]+)?;base64,[a-z0-9+/=]+$/iu;
|
|
47145
|
+
function tT() {
|
|
47128
47146
|
return "undefined" != typeof URL && "function" == typeof URL.createObjectURL && "function" == typeof URL.revokeObjectURL && "undefined" != typeof Blob;
|
|
47129
47147
|
}
|
|
47130
|
-
var
|
|
47148
|
+
var eT = {
|
|
47131
47149
|
truetype: "font/ttf",
|
|
47132
47150
|
opentype: "font/otf",
|
|
47133
47151
|
woff: "font/woff",
|
|
47134
47152
|
woff2: "font/woff2"
|
|
47135
47153
|
};
|
|
47136
|
-
function
|
|
47154
|
+
function nT(t) {
|
|
47137
47155
|
const e = "string" == typeof t.name ? t.name.trim() : "";
|
|
47138
|
-
if (0 === e.length ||
|
|
47156
|
+
if (0 === e.length || Zk.test(e)) return null;
|
|
47139
47157
|
const n = t.bold ? "700" : "400", r = t.italic ? "italic" : "normal";
|
|
47140
|
-
if ("string" == typeof (a = t.dataUrl) && 0 !== a.length && (a.startsWith("blob:") ||
|
|
47141
|
-
const a = t.format &&
|
|
47158
|
+
if ("string" == typeof (a = t.dataUrl) && 0 !== a.length && (a.startsWith("blob:") || Qk.test(a))) {
|
|
47159
|
+
const a = t.format && Jk.has(t.format) ? t.format : "truetype";
|
|
47142
47160
|
return {
|
|
47143
47161
|
name: e,
|
|
47144
47162
|
url: t.dataUrl,
|
|
@@ -47148,10 +47166,10 @@ function rT(t) {
|
|
|
47148
47166
|
};
|
|
47149
47167
|
}
|
|
47150
47168
|
var a;
|
|
47151
|
-
if (!
|
|
47169
|
+
if (!tT()) return null;
|
|
47152
47170
|
let i;
|
|
47153
47171
|
if (t.rawFontData && t.rawFontData.length > 0 ? i = t.rawFontData : t.originalPartBytes && t.originalPartBytes.length > 0 && t.fontGuid && (i = da(t.originalPartBytes, t.fontGuid)), !i || i.length < 4) return null;
|
|
47154
|
-
const o = ha(i), s =
|
|
47172
|
+
const o = ha(i), s = Jk.has(o) ? o : "truetype", l = eT[s] ?? "font/ttf", c = new Uint8Array(i.length);
|
|
47155
47173
|
c.set(i);
|
|
47156
47174
|
const d = new Blob([c], { type: l }), p = URL.createObjectURL(d);
|
|
47157
47175
|
return {
|
|
@@ -47163,7 +47181,7 @@ function rT(t) {
|
|
|
47163
47181
|
objectUrl: p
|
|
47164
47182
|
};
|
|
47165
47183
|
}
|
|
47166
|
-
function
|
|
47184
|
+
function rT(t) {
|
|
47167
47185
|
return [
|
|
47168
47186
|
"@font-face {",
|
|
47169
47187
|
`\tfont-family: "${t.name}";`,
|
|
@@ -47174,18 +47192,18 @@ function aT(t) {
|
|
|
47174
47192
|
"}"
|
|
47175
47193
|
].join("\n");
|
|
47176
47194
|
}
|
|
47177
|
-
function
|
|
47195
|
+
function aT(t) {
|
|
47178
47196
|
let e = [], r = null;
|
|
47179
47197
|
const a = (t) => {
|
|
47180
|
-
if (
|
|
47198
|
+
if (tT()) for (const e of t) URL.revokeObjectURL(e);
|
|
47181
47199
|
}, i = n(() => {
|
|
47182
47200
|
const n = P(t) ?? [], r = e, i = [], o = [];
|
|
47183
47201
|
for (const t of n) {
|
|
47184
|
-
const e =
|
|
47202
|
+
const e = nT(t);
|
|
47185
47203
|
e && (o.push(e), e.objectUrl && i.push(e.objectUrl));
|
|
47186
47204
|
}
|
|
47187
47205
|
return e = i, a(r), o;
|
|
47188
|
-
}), o = n(() => i.value.map(
|
|
47206
|
+
}), o = n(() => i.value.map(rT).join("\n\n")), s = n(() => {
|
|
47189
47207
|
const t = /* @__PURE__ */ new Set(), e = [];
|
|
47190
47208
|
for (const n of i.value) t.has(n.name) || (t.add(n.name), e.push(Ms(n.name)));
|
|
47191
47209
|
return e;
|
|
@@ -47202,12 +47220,12 @@ function iT(t) {
|
|
|
47202
47220
|
fontFamilies: s
|
|
47203
47221
|
};
|
|
47204
47222
|
}
|
|
47205
|
-
function
|
|
47223
|
+
function iT(t) {
|
|
47206
47224
|
if (void 0 === t) return "presentation";
|
|
47207
47225
|
const e = ("string" == typeof t ? t : t.value).trim().replace(/\.(?:pptx|pdf|png)$/iu, "");
|
|
47208
47226
|
return "" === e ? "presentation" : e;
|
|
47209
47227
|
}
|
|
47210
|
-
function
|
|
47228
|
+
function oT(t) {
|
|
47211
47229
|
const { slides: e, canvasSize: n, rasterizeSlide: r } = t, a = S(!1);
|
|
47212
47230
|
return {
|
|
47213
47231
|
exporting: a,
|
|
@@ -47218,7 +47236,7 @@ function sT(t) {
|
|
|
47218
47236
|
(function(t, e) {
|
|
47219
47237
|
const n = document.createElement("a");
|
|
47220
47238
|
n.href = t, n.download = e, document.body.appendChild(n), n.click(), n.remove();
|
|
47221
|
-
})((await r(n)).toDataURL("image/png"), `${
|
|
47239
|
+
})((await r(n)).toDataURL("image/png"), `${iT(t.fileName)}-slide-${n + 1}.png`);
|
|
47222
47240
|
} finally {
|
|
47223
47241
|
a.value = !1;
|
|
47224
47242
|
}
|
|
@@ -47238,7 +47256,7 @@ function sT(t) {
|
|
|
47238
47256
|
const e = await r(t);
|
|
47239
47257
|
t > 0 && l.addPage([i, o], s), l.addImage(e.toDataURL("image/png"), "PNG", 0, 0, i, o);
|
|
47240
47258
|
}
|
|
47241
|
-
l.save(`${
|
|
47259
|
+
l.save(`${iT(t.fileName)}.pdf`);
|
|
47242
47260
|
} finally {
|
|
47243
47261
|
a.value = !1;
|
|
47244
47262
|
}
|
|
@@ -47246,14 +47264,14 @@ function sT(t) {
|
|
|
47246
47264
|
}
|
|
47247
47265
|
};
|
|
47248
47266
|
}
|
|
47249
|
-
function
|
|
47267
|
+
function sT(t, e) {
|
|
47250
47268
|
const n = t.replace(/[.*+?^${}()|[\]\\]/gu, "\\$&");
|
|
47251
47269
|
return new RegExp(n, e ? "gu" : "giu");
|
|
47252
47270
|
}
|
|
47253
|
-
function
|
|
47254
|
-
const a =
|
|
47271
|
+
function lT(t, e, n, r) {
|
|
47272
|
+
const a = sT(e, r), i = t.textSegments?.map((t) => ({
|
|
47255
47273
|
...t,
|
|
47256
|
-
text: (t.text ?? "").replace(
|
|
47274
|
+
text: (t.text ?? "").replace(sT(e, r), n)
|
|
47257
47275
|
})), o = "string" == typeof t.text ? t.text.replace(a, n) : t.text;
|
|
47258
47276
|
return {
|
|
47259
47277
|
...t,
|
|
@@ -47261,7 +47279,7 @@ function cT(t, e, n, r) {
|
|
|
47261
47279
|
...i ? { textSegments: i } : {}
|
|
47262
47280
|
};
|
|
47263
47281
|
}
|
|
47264
|
-
function
|
|
47282
|
+
function cT({ slides: t, activeSlideIndex: e, pushHistory: r }) {
|
|
47265
47283
|
const a = S(""), i = S(""), o = S(!1), s = S(0), l = n(() => function(t, e, n) {
|
|
47266
47284
|
if (0 === e.length) return [];
|
|
47267
47285
|
const r = n ? e : e.toLowerCase(), a = [];
|
|
@@ -47294,7 +47312,7 @@ function dT({ slides: t, activeSlideIndex: e, pushHistory: r }) {
|
|
|
47294
47312
|
}
|
|
47295
47313
|
for (const [e, r] of n) {
|
|
47296
47314
|
const n = t.value[e];
|
|
47297
|
-
n?.elements && (n.elements = n.elements.map((t) => r.has(t.id) && H(t) ?
|
|
47315
|
+
n?.elements && (n.elements = n.elements.map((t) => r.has(t.id) && H(t) ? lT(t, a.value, i.value, o.value) : t));
|
|
47298
47316
|
}
|
|
47299
47317
|
}
|
|
47300
47318
|
return {
|
|
@@ -47320,7 +47338,7 @@ function dT({ slides: t, activeSlideIndex: e, pushHistory: r }) {
|
|
|
47320
47338
|
}
|
|
47321
47339
|
};
|
|
47322
47340
|
}
|
|
47323
|
-
function
|
|
47341
|
+
function dT(t) {
|
|
47324
47342
|
const e = _([]), n = S({
|
|
47325
47343
|
width: 1280,
|
|
47326
47344
|
height: 720
|
|
@@ -47452,10 +47470,10 @@ function pT(t) {
|
|
|
47452
47470
|
}
|
|
47453
47471
|
};
|
|
47454
47472
|
}
|
|
47455
|
-
function
|
|
47473
|
+
function pT() {
|
|
47456
47474
|
return `slide-${Date.now()}-${Math.random().toString(36).slice(2, 6)}`;
|
|
47457
47475
|
}
|
|
47458
|
-
function
|
|
47476
|
+
function uT(t) {
|
|
47459
47477
|
const { slides: e, activeSlideIndex: n, pushHistory: r } = t;
|
|
47460
47478
|
return {
|
|
47461
47479
|
addSlide: () => {
|
|
@@ -47463,7 +47481,7 @@ function hT(t) {
|
|
|
47463
47481
|
const t = [...e.value], a = Math.max(0, Math.min(n.value + 1, t.length));
|
|
47464
47482
|
var i;
|
|
47465
47483
|
t.splice(a, 0, (i = t.length + 1, {
|
|
47466
|
-
id:
|
|
47484
|
+
id: pT(),
|
|
47467
47485
|
rId: "",
|
|
47468
47486
|
slideNumber: i,
|
|
47469
47487
|
elements: []
|
|
@@ -47480,7 +47498,7 @@ function hT(t) {
|
|
|
47480
47498
|
r();
|
|
47481
47499
|
const a = {
|
|
47482
47500
|
...wi(e.value[t]),
|
|
47483
|
-
id:
|
|
47501
|
+
id: pT()
|
|
47484
47502
|
}, i = [...e.value];
|
|
47485
47503
|
i.splice(t + 1, 0, a), e.value = i, n.value = t + 1;
|
|
47486
47504
|
},
|
|
@@ -47493,29 +47511,29 @@ function hT(t) {
|
|
|
47493
47511
|
}
|
|
47494
47512
|
};
|
|
47495
47513
|
}
|
|
47496
|
-
var
|
|
47514
|
+
var hT = ["tabindex"], mT = {
|
|
47497
47515
|
key: 0,
|
|
47498
47516
|
class: "pptx-vue-state pptx-vue-loading"
|
|
47499
|
-
},
|
|
47517
|
+
}, fT = {
|
|
47500
47518
|
key: 1,
|
|
47501
47519
|
class: "pptx-vue-state pptx-vue-error"
|
|
47502
|
-
},
|
|
47520
|
+
}, gT = {
|
|
47503
47521
|
key: 2,
|
|
47504
47522
|
class: "pptx-vue-state pptx-vue-error"
|
|
47505
|
-
},
|
|
47523
|
+
}, yT = { class: "pptx-vue-error-detail" }, xT = {
|
|
47506
47524
|
key: 0,
|
|
47507
47525
|
class: "pptx-vue-toolbar"
|
|
47508
|
-
},
|
|
47526
|
+
}, vT = { class: "pptx-vue-nav" }, bT = ["disabled"], ST = { class: "pptx-vue-slide-counter" }, wT = ["disabled"], kT = { class: "pptx-vue-zoom" }, TT = ["title"], CT = ["title"], _T = ["title"], MT = { class: "pptx-vue-body" }, IT = {
|
|
47509
47527
|
class: "pptx-vue-thumbnails",
|
|
47510
47528
|
"aria-label": "Slides"
|
|
47511
|
-
},
|
|
47529
|
+
}, PT = [
|
|
47512
47530
|
"aria-label",
|
|
47513
47531
|
"aria-current",
|
|
47514
47532
|
"onClick"
|
|
47515
|
-
],
|
|
47533
|
+
], AT = {
|
|
47516
47534
|
class: "pptx-vue-thumb-stage",
|
|
47517
47535
|
"aria-hidden": "true"
|
|
47518
|
-
},
|
|
47536
|
+
}, FT = { class: "pptx-vue-thumb-index" }, BT = c({
|
|
47519
47537
|
__name: "PowerPointViewer",
|
|
47520
47538
|
props: {
|
|
47521
47539
|
content: {},
|
|
@@ -47543,16 +47561,16 @@ var mT = ["tabindex"], fT = {
|
|
|
47543
47561
|
setup(e, { expose: s, emit: c }) {
|
|
47544
47562
|
const d = e, p = c, f = I(d, "theme");
|
|
47545
47563
|
km(f);
|
|
47546
|
-
const g = Cm(f), { slides: v, canvasSize: k, mediaDataUrls: T, loading: C, error: _, isEncrypted: F, coreProperties: L, embeddedFonts: B, signatures: D, getContent: R } =
|
|
47547
|
-
|
|
47564
|
+
const g = Cm(f), { slides: v, canvasSize: k, mediaDataUrls: T, loading: C, error: _, isEncrypted: F, coreProperties: L, embeddedFonts: B, signatures: D, getContent: R } = dT(() => d.content);
|
|
47565
|
+
aT(B);
|
|
47548
47566
|
const E = S(0), j = n(() => v.value.length), O = n(() => v.value[E.value]);
|
|
47549
47567
|
function U(t) {
|
|
47550
47568
|
t < 0 || t >= j.value || (E.value = t);
|
|
47551
47569
|
}
|
|
47552
47570
|
$(v, () => {
|
|
47553
|
-
E.value = 0,
|
|
47571
|
+
E.value = 0, nt.value = [], rt.clearHistory();
|
|
47554
47572
|
}), $(E, (t) => {
|
|
47555
|
-
p("active-slide-change", t),
|
|
47573
|
+
p("active-slide-change", t), nt.value = [];
|
|
47556
47574
|
});
|
|
47557
47575
|
const X = () => U(E.value - 1), z = () => U(E.value + 1), G = S(null);
|
|
47558
47576
|
function W(t) {
|
|
@@ -47577,26 +47595,26 @@ var mT = ["tabindex"], fT = {
|
|
|
47577
47595
|
V.value = Math.max(.2, Number((V.value - .1).toFixed(2)));
|
|
47578
47596
|
}, K = () => {
|
|
47579
47597
|
V.value = 1;
|
|
47580
|
-
}, Z = n(() => Math.round(100 * V.value)), J = n(() => 104 / Math.max(1, k.value.width)),
|
|
47598
|
+
}, Z = n(() => Math.round(100 * V.value)), J = S(1), Q = n(() => J.value * V.value), tt = n(() => 104 / Math.max(1, k.value.width)), et = n(() => Math.round(k.value.height * tt.value)), nt = S([]), rt = qk(v), at = Kk({
|
|
47581
47599
|
slides: v,
|
|
47582
47600
|
activeSlideIndex: E,
|
|
47583
|
-
pushHistory:
|
|
47584
|
-
selectedElementIds:
|
|
47585
|
-
}),
|
|
47586
|
-
const t = O.value?.elements ?? [], e = new Set(
|
|
47601
|
+
pushHistory: rt.pushHistory,
|
|
47602
|
+
selectedElementIds: nt
|
|
47603
|
+
}), it = n(() => nt.value.length > 0), ot = n(() => {
|
|
47604
|
+
const t = O.value?.elements ?? [], e = new Set(nt.value);
|
|
47587
47605
|
return t.filter((t) => e.has(t.id));
|
|
47588
47606
|
});
|
|
47589
|
-
function
|
|
47590
|
-
|
|
47607
|
+
function st() {
|
|
47608
|
+
nt.value = [];
|
|
47591
47609
|
}
|
|
47592
|
-
function
|
|
47610
|
+
function lt(t) {
|
|
47593
47611
|
if (!d.canEdit) return;
|
|
47594
47612
|
const e = (t.target?.closest("[data-element-id]"))?.dataset.elementId;
|
|
47595
47613
|
e ? function(t, e) {
|
|
47596
|
-
|
|
47597
|
-
}(e, t.shiftKey || t.ctrlKey || t.metaKey) :
|
|
47614
|
+
nt.value = e ? nt.value.includes(t) ? nt.value.filter((e) => e !== t) : [...nt.value, t] : [t];
|
|
47615
|
+
}(e, t.shiftKey || t.ctrlKey || t.metaKey) : st();
|
|
47598
47616
|
}
|
|
47599
|
-
function
|
|
47617
|
+
function ct(t) {
|
|
47600
47618
|
const e = E.value, n = v.value[e];
|
|
47601
47619
|
if (!n) return;
|
|
47602
47620
|
const r = n.elements.map((e) => e.id === t.id ? {
|
|
@@ -47612,43 +47630,43 @@ var mT = ["tabindex"], fT = {
|
|
|
47612
47630
|
elements: r
|
|
47613
47631
|
}, v.value = a;
|
|
47614
47632
|
}
|
|
47615
|
-
function
|
|
47616
|
-
|
|
47633
|
+
function dt() {
|
|
47634
|
+
rt.pushHistory();
|
|
47617
47635
|
}
|
|
47618
|
-
function
|
|
47619
|
-
|
|
47636
|
+
function pt(t) {
|
|
47637
|
+
ct(t);
|
|
47620
47638
|
}
|
|
47621
|
-
function
|
|
47622
|
-
|
|
47639
|
+
function ut(t) {
|
|
47640
|
+
ct(t);
|
|
47623
47641
|
}
|
|
47624
|
-
function
|
|
47642
|
+
function ht(t, e, n) {
|
|
47625
47643
|
t.width = e, t.height = n, t.x = Math.max(0, Math.round((k.value.width - e) / 2)), t.y = Math.max(0, Math.round((k.value.height - n) / 2));
|
|
47626
47644
|
}
|
|
47627
|
-
function
|
|
47645
|
+
function mt() {
|
|
47628
47646
|
const t = vt("Text");
|
|
47629
|
-
|
|
47647
|
+
ht(t, 320, 80), at.addElement(t), nt.value = [t.id];
|
|
47630
47648
|
}
|
|
47631
|
-
function
|
|
47649
|
+
function ft(t) {
|
|
47632
47650
|
const e = bt(t);
|
|
47633
|
-
|
|
47651
|
+
ht(e, 240, 160), at.addElement(e), nt.value = [e.id];
|
|
47634
47652
|
}
|
|
47635
|
-
function
|
|
47636
|
-
for (const t of [...
|
|
47637
|
-
|
|
47653
|
+
function gt() {
|
|
47654
|
+
for (const t of [...nt.value]) at.removeElement(t);
|
|
47655
|
+
st();
|
|
47638
47656
|
}
|
|
47639
|
-
function
|
|
47657
|
+
function yt() {
|
|
47640
47658
|
const t = [];
|
|
47641
|
-
for (const e of [...
|
|
47642
|
-
const n =
|
|
47659
|
+
for (const e of [...nt.value]) {
|
|
47660
|
+
const n = at.duplicateElement(e);
|
|
47643
47661
|
n && t.push(n);
|
|
47644
47662
|
}
|
|
47645
|
-
t.length > 0 && (
|
|
47663
|
+
t.length > 0 && (nt.value = t);
|
|
47646
47664
|
}
|
|
47647
|
-
function
|
|
47648
|
-
for (const t of [...
|
|
47665
|
+
function xt() {
|
|
47666
|
+
for (const t of [...nt.value]) at.bringForward(t);
|
|
47649
47667
|
}
|
|
47650
|
-
const
|
|
47651
|
-
const t =
|
|
47668
|
+
const wt = n(() => 1 === ot.value.length ? ot.value[0] : void 0), kt = n(() => {
|
|
47669
|
+
const t = wt.value;
|
|
47652
47670
|
if (!t) return;
|
|
47653
47671
|
const e = (O.value?.animations ?? []).filter((e) => e.elementId === t.id);
|
|
47654
47672
|
return {
|
|
@@ -47656,56 +47674,56 @@ var mT = ["tabindex"], fT = {
|
|
|
47656
47674
|
animations: e
|
|
47657
47675
|
};
|
|
47658
47676
|
});
|
|
47659
|
-
function
|
|
47660
|
-
const e =
|
|
47677
|
+
function Tt(t) {
|
|
47678
|
+
const e = wt.value;
|
|
47661
47679
|
if (e) {
|
|
47662
47680
|
if ("animations" in t) {
|
|
47663
47681
|
const { animations: n, ...r } = t;
|
|
47664
47682
|
(function(t, e) {
|
|
47665
47683
|
const n = E.value, r = v.value[n];
|
|
47666
47684
|
if (!r) return;
|
|
47667
|
-
|
|
47685
|
+
rt.pushHistory();
|
|
47668
47686
|
const a = (r.animations ?? []).filter((e) => e.elementId !== t), i = v.value.slice();
|
|
47669
47687
|
i[n] = {
|
|
47670
47688
|
...r,
|
|
47671
47689
|
animations: [...a, ...e ?? []]
|
|
47672
47690
|
}, v.value = i;
|
|
47673
|
-
})(e.id, n ?? []), Object.keys(r).length > 0 &&
|
|
47691
|
+
})(e.id, n ?? []), Object.keys(r).length > 0 && at.updateElement(e.id, r);
|
|
47674
47692
|
return;
|
|
47675
47693
|
}
|
|
47676
|
-
|
|
47694
|
+
at.updateElement(e.id, t);
|
|
47677
47695
|
}
|
|
47678
47696
|
}
|
|
47679
|
-
const
|
|
47697
|
+
const Ct = uT({
|
|
47680
47698
|
slides: v,
|
|
47681
47699
|
activeSlideIndex: E,
|
|
47682
|
-
pushHistory:
|
|
47683
|
-
}),
|
|
47684
|
-
function
|
|
47700
|
+
pushHistory: rt.pushHistory
|
|
47701
|
+
}), _t = n(() => v.value.length > 1), Mt = S(null), It = n(() => null !== Mt.value);
|
|
47702
|
+
function Pt(t) {
|
|
47685
47703
|
const e = O.value?.elements.find((e) => e.id === t);
|
|
47686
|
-
e && (
|
|
47687
|
-
}
|
|
47688
|
-
function It() {
|
|
47689
|
-
if (!Ct.value) return;
|
|
47690
|
-
const t = Si(Ct.value);
|
|
47691
|
-
t.id = `el-${Date.now()}-${Math.floor(1e4 * Math.random())}`, t.x = (t.x ?? 0) + 16, t.y = (t.y ?? 0) + 16, nt.addElement(t), tt.value = [t.id];
|
|
47704
|
+
e && (Mt.value = Si(e));
|
|
47692
47705
|
}
|
|
47693
|
-
const Pt = S(!1);
|
|
47694
47706
|
function At() {
|
|
47695
|
-
|
|
47707
|
+
if (!Mt.value) return;
|
|
47708
|
+
const t = Si(Mt.value);
|
|
47709
|
+
t.id = `el-${Date.now()}-${Math.floor(1e4 * Math.random())}`, t.x = (t.x ?? 0) + 16, t.y = (t.y ?? 0) + 16, at.addElement(t), nt.value = [t.id];
|
|
47696
47710
|
}
|
|
47697
|
-
|
|
47698
|
-
|
|
47711
|
+
const Ft = S(!1);
|
|
47712
|
+
function Lt() {
|
|
47713
|
+
Ft.value = !0;
|
|
47699
47714
|
}
|
|
47700
|
-
function
|
|
47715
|
+
function Bt() {
|
|
47716
|
+
Ft.value = !1;
|
|
47717
|
+
}
|
|
47718
|
+
function Dt(t) {
|
|
47701
47719
|
E.value = t;
|
|
47702
47720
|
}
|
|
47703
|
-
const
|
|
47721
|
+
const Rt = S({
|
|
47704
47722
|
open: !1,
|
|
47705
47723
|
x: 0,
|
|
47706
47724
|
y: 0,
|
|
47707
47725
|
elementId: null
|
|
47708
|
-
}),
|
|
47726
|
+
}), $t = n(() => [
|
|
47709
47727
|
{
|
|
47710
47728
|
id: "cut",
|
|
47711
47729
|
label: "Cut"
|
|
@@ -47717,7 +47735,7 @@ var mT = ["tabindex"], fT = {
|
|
|
47717
47735
|
{
|
|
47718
47736
|
id: "paste",
|
|
47719
47737
|
label: "Paste",
|
|
47720
|
-
disabled: !
|
|
47738
|
+
disabled: !It.value
|
|
47721
47739
|
},
|
|
47722
47740
|
{
|
|
47723
47741
|
id: "sep1",
|
|
@@ -47755,64 +47773,64 @@ var mT = ["tabindex"], fT = {
|
|
|
47755
47773
|
label: "Hyperlink…"
|
|
47756
47774
|
}
|
|
47757
47775
|
]);
|
|
47758
|
-
function
|
|
47776
|
+
function Nt(t) {
|
|
47759
47777
|
if (!d.canEdit) return;
|
|
47760
47778
|
const e = (t.target?.closest("[data-element-id]"))?.dataset.elementId;
|
|
47761
|
-
e && (t.preventDefault(),
|
|
47779
|
+
e && (t.preventDefault(), nt.value.includes(e) || (nt.value = [e]), Rt.value = {
|
|
47762
47780
|
open: !0,
|
|
47763
47781
|
x: t.clientX,
|
|
47764
47782
|
y: t.clientY,
|
|
47765
47783
|
elementId: e
|
|
47766
47784
|
});
|
|
47767
47785
|
}
|
|
47768
|
-
function
|
|
47769
|
-
const e =
|
|
47786
|
+
function Et(t) {
|
|
47787
|
+
const e = Rt.value.elementId;
|
|
47770
47788
|
var n;
|
|
47771
47789
|
if (e) switch (t) {
|
|
47772
47790
|
case "cut":
|
|
47773
|
-
|
|
47791
|
+
Pt(n = e), at.removeElement(n), nt.value = nt.value.filter((t) => t !== n);
|
|
47774
47792
|
break;
|
|
47775
47793
|
case "copy":
|
|
47776
|
-
|
|
47794
|
+
Pt(e);
|
|
47777
47795
|
break;
|
|
47778
47796
|
case "paste":
|
|
47779
|
-
|
|
47797
|
+
At();
|
|
47780
47798
|
break;
|
|
47781
47799
|
case "duplicate":
|
|
47782
|
-
|
|
47800
|
+
at.duplicateElement(e);
|
|
47783
47801
|
break;
|
|
47784
47802
|
case "delete":
|
|
47785
|
-
|
|
47803
|
+
at.removeElement(e), nt.value = nt.value.filter((t) => t !== e);
|
|
47786
47804
|
break;
|
|
47787
47805
|
case "bring-forward":
|
|
47788
|
-
|
|
47806
|
+
at.bringForward(e);
|
|
47789
47807
|
break;
|
|
47790
47808
|
case "send-backward":
|
|
47791
|
-
|
|
47809
|
+
at.sendBackward(e);
|
|
47792
47810
|
break;
|
|
47793
47811
|
case "hyperlink": (function(t) {
|
|
47794
47812
|
const e = O.value?.elements.find((e) => e.id === t);
|
|
47795
|
-
e && (
|
|
47813
|
+
e && (Ot.value = e, jt.value = !0);
|
|
47796
47814
|
})(e);
|
|
47797
47815
|
}
|
|
47798
47816
|
}
|
|
47799
|
-
const
|
|
47800
|
-
function
|
|
47801
|
-
|
|
47817
|
+
const jt = S(!1), Ot = S(null);
|
|
47818
|
+
function Ut(t) {
|
|
47819
|
+
Ot.value && at.updateElement(Ot.value.id, t), jt.value = !1;
|
|
47802
47820
|
}
|
|
47803
|
-
const
|
|
47821
|
+
const Xt = S(!1), zt = cT({
|
|
47804
47822
|
slides: v,
|
|
47805
47823
|
activeSlideIndex: E,
|
|
47806
|
-
pushHistory:
|
|
47807
|
-
}),
|
|
47808
|
-
const
|
|
47824
|
+
pushHistory: rt.pushHistory
|
|
47825
|
+
}), Gt = S(null), Wt = S(0), Ht = n(() => v.value[Wt.value]);
|
|
47826
|
+
const Vt = oT({
|
|
47809
47827
|
slides: v,
|
|
47810
47828
|
canvasSize: k,
|
|
47811
47829
|
rasterizeSlide: async function(t) {
|
|
47812
|
-
|
|
47830
|
+
Wt.value = t, await u(), await new Promise((t) => {
|
|
47813
47831
|
requestAnimationFrame(() => t());
|
|
47814
47832
|
});
|
|
47815
|
-
const e =
|
|
47833
|
+
const e = Gt.value?.querySelector(".pptx-vue-stage");
|
|
47816
47834
|
if (!e) throw new Error("Export stage not ready");
|
|
47817
47835
|
const { default: n } = await import("html2canvas-pro");
|
|
47818
47836
|
return n(e, {
|
|
@@ -47824,46 +47842,46 @@ var mT = ["tabindex"], fT = {
|
|
|
47824
47842
|
});
|
|
47825
47843
|
}
|
|
47826
47844
|
});
|
|
47827
|
-
function
|
|
47828
|
-
|
|
47845
|
+
function Yt() {
|
|
47846
|
+
Vt.exportSlidePng(E.value);
|
|
47829
47847
|
}
|
|
47830
|
-
function
|
|
47831
|
-
|
|
47848
|
+
function qt() {
|
|
47849
|
+
Vt.exportPdf();
|
|
47832
47850
|
}
|
|
47833
|
-
const
|
|
47834
|
-
function
|
|
47835
|
-
U(t),
|
|
47851
|
+
const Kt = S(!1);
|
|
47852
|
+
function Zt(t) {
|
|
47853
|
+
U(t), Kt.value = !1;
|
|
47836
47854
|
}
|
|
47837
|
-
function
|
|
47838
|
-
|
|
47855
|
+
function Jt(t, e) {
|
|
47856
|
+
Ct.moveSlide(t, e);
|
|
47839
47857
|
}
|
|
47840
|
-
const
|
|
47841
|
-
function
|
|
47858
|
+
const Qt = S(!1), te = Gk(v);
|
|
47859
|
+
function ee(t) {
|
|
47842
47860
|
const e = E.value, n = v.value[e];
|
|
47843
47861
|
if (!n) return;
|
|
47844
|
-
|
|
47862
|
+
rt.pushHistory();
|
|
47845
47863
|
const r = v.value.slice();
|
|
47846
47864
|
r[e] = {
|
|
47847
47865
|
...n,
|
|
47848
47866
|
notes: t
|
|
47849
47867
|
}, v.value = r;
|
|
47850
47868
|
}
|
|
47851
|
-
function
|
|
47869
|
+
function ne(t) {
|
|
47852
47870
|
const e = E.value, n = v.value[e];
|
|
47853
47871
|
if (!n) return;
|
|
47854
|
-
|
|
47872
|
+
rt.pushHistory();
|
|
47855
47873
|
const r = v.value.slice();
|
|
47856
47874
|
r[e] = {
|
|
47857
47875
|
...n,
|
|
47858
47876
|
transition: t
|
|
47859
47877
|
}, v.value = r;
|
|
47860
47878
|
}
|
|
47861
|
-
const
|
|
47862
|
-
function
|
|
47879
|
+
const re = n(() => ot.value.length >= 2), ae = n(() => 1 === ot.value.length && "group" === ot.value[0]?.type);
|
|
47880
|
+
function ie(t) {
|
|
47863
47881
|
if (0 === t.size) return;
|
|
47864
47882
|
const e = E.value, n = v.value[e];
|
|
47865
47883
|
if (!n) return;
|
|
47866
|
-
|
|
47884
|
+
rt.pushHistory();
|
|
47867
47885
|
const r = n.elements.map((e) => {
|
|
47868
47886
|
const n = t.get(e.id);
|
|
47869
47887
|
return n ? {
|
|
@@ -47877,8 +47895,8 @@ var mT = ["tabindex"], fT = {
|
|
|
47877
47895
|
elements: r
|
|
47878
47896
|
}, v.value = a;
|
|
47879
47897
|
}
|
|
47880
|
-
function
|
|
47881
|
-
|
|
47898
|
+
function oe(t) {
|
|
47899
|
+
ie(function(t, e) {
|
|
47882
47900
|
const n = /* @__PURE__ */ new Map();
|
|
47883
47901
|
if (t.length < 2) return n;
|
|
47884
47902
|
const r = Math.min(...t.map((t) => t.x)), a = Math.min(...t.map((t) => t.y)), i = Math.max(...t.map((t) => t.x + t.width)), o = Math.max(...t.map((t) => t.y + t.height)), s = (r + i) / 2, l = (a + o) / 2;
|
|
@@ -47901,10 +47919,10 @@ var mT = ["tabindex"], fT = {
|
|
|
47901
47919
|
case "middle": n.set(c.id, { y: l - c.height / 2 });
|
|
47902
47920
|
}
|
|
47903
47921
|
return n;
|
|
47904
|
-
}(
|
|
47922
|
+
}(ot.value, t));
|
|
47905
47923
|
}
|
|
47906
|
-
function
|
|
47907
|
-
|
|
47924
|
+
function se(t) {
|
|
47925
|
+
ie(function(t, e) {
|
|
47908
47926
|
const n = /* @__PURE__ */ new Map();
|
|
47909
47927
|
if (t.length < 3) return n;
|
|
47910
47928
|
const r = "horizontal" === e, a = (t) => r ? t.x : t.y, i = (t) => r ? t.width : t.height, o = [...t].sort((t, e) => a(t) - a(e)), s = o[0], l = o[o.length - 1], c = (a(l) + i(l) - a(s) - o.reduce((t, e) => t + i(e), 0)) / (o.length - 1);
|
|
@@ -47914,10 +47932,10 @@ var mT = ["tabindex"], fT = {
|
|
|
47914
47932
|
r ? n.set(t.id, { x: e }) : n.set(t.id, { y: e }), d += i(t) + c;
|
|
47915
47933
|
}
|
|
47916
47934
|
return n;
|
|
47917
|
-
}(
|
|
47935
|
+
}(ot.value, t));
|
|
47918
47936
|
}
|
|
47919
|
-
function
|
|
47920
|
-
const t =
|
|
47937
|
+
function le() {
|
|
47938
|
+
const t = ot.value, e = E.value, n = v.value[e];
|
|
47921
47939
|
if (t.length < 2 || !n) return;
|
|
47922
47940
|
const r = Math.min(...t.map((t) => t.x)), a = Math.min(...t.map((t) => t.y)), i = Math.max(...t.map((t) => t.x + t.width)), o = Math.max(...t.map((t) => t.y + t.height)), s = St(t.map((t) => ({
|
|
47923
47941
|
...t,
|
|
@@ -47929,36 +47947,36 @@ var mT = ["tabindex"], fT = {
|
|
|
47929
47947
|
width: i - r,
|
|
47930
47948
|
height: o - a
|
|
47931
47949
|
});
|
|
47932
|
-
|
|
47950
|
+
rt.pushHistory();
|
|
47933
47951
|
const l = new Set(t.map((t) => t.id)), c = v.value.slice();
|
|
47934
47952
|
c[e] = {
|
|
47935
47953
|
...n,
|
|
47936
47954
|
elements: [...n.elements.filter((t) => !l.has(t.id)), s]
|
|
47937
|
-
}, v.value = c,
|
|
47955
|
+
}, v.value = c, nt.value = [s.id];
|
|
47938
47956
|
}
|
|
47939
|
-
function
|
|
47940
|
-
const t =
|
|
47957
|
+
function ce() {
|
|
47958
|
+
const t = ot.value[0], e = E.value, n = v.value[e];
|
|
47941
47959
|
if (!t || "group" !== t.type || !n) return;
|
|
47942
47960
|
const r = (t.children ?? []).map((e) => ({
|
|
47943
47961
|
...e,
|
|
47944
47962
|
x: e.x + t.x,
|
|
47945
47963
|
y: e.y + t.y
|
|
47946
47964
|
}));
|
|
47947
|
-
|
|
47965
|
+
rt.pushHistory();
|
|
47948
47966
|
const a = v.value.slice();
|
|
47949
47967
|
a[e] = {
|
|
47950
47968
|
...n,
|
|
47951
47969
|
elements: n.elements.flatMap((e) => e.id === t.id ? r : [e])
|
|
47952
|
-
}, v.value = a,
|
|
47970
|
+
}, v.value = a, nt.value = r.map((t) => t.id);
|
|
47953
47971
|
}
|
|
47954
|
-
const
|
|
47972
|
+
const de = n(() => d.canEdit && (d.autosave ?? !1)), pe = Hk({
|
|
47955
47973
|
slides: v,
|
|
47956
|
-
enabled:
|
|
47974
|
+
enabled: de,
|
|
47957
47975
|
intervalMs: d.autosaveIntervalMs ?? 2e3,
|
|
47958
47976
|
onSave: async () => {
|
|
47959
47977
|
p("autosave", await R());
|
|
47960
47978
|
}
|
|
47961
|
-
}),
|
|
47979
|
+
}), ue = S(!1), he = n(() => O.value?.comments ?? []), me = n(() => d.authorName ?? "You"), fe = function(t) {
|
|
47962
47980
|
const e = n(() => P(t.comments) ?? []);
|
|
47963
47981
|
return {
|
|
47964
47982
|
slideComments: e,
|
|
@@ -47966,7 +47984,7 @@ var mT = ["tabindex"], fT = {
|
|
|
47966
47984
|
const i = n.trim();
|
|
47967
47985
|
if (0 === i.length) return null;
|
|
47968
47986
|
const o = {
|
|
47969
|
-
id:
|
|
47987
|
+
id: Yk(),
|
|
47970
47988
|
text: i,
|
|
47971
47989
|
author: P(t.authorName),
|
|
47972
47990
|
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
@@ -47991,22 +48009,22 @@ var mT = ["tabindex"], fT = {
|
|
|
47991
48009
|
}
|
|
47992
48010
|
};
|
|
47993
48011
|
}({
|
|
47994
|
-
comments:
|
|
48012
|
+
comments: he,
|
|
47995
48013
|
activeSlideIndex: E,
|
|
47996
|
-
authorName:
|
|
48014
|
+
authorName: me
|
|
47997
48015
|
});
|
|
47998
|
-
function
|
|
48016
|
+
function ge(t) {
|
|
47999
48017
|
if (!t) return;
|
|
48000
48018
|
const e = E.value, n = v.value[e];
|
|
48001
48019
|
if (!n) return;
|
|
48002
|
-
|
|
48020
|
+
rt.pushHistory();
|
|
48003
48021
|
const r = v.value.slice();
|
|
48004
48022
|
r[e] = {
|
|
48005
48023
|
...n,
|
|
48006
48024
|
comments: t
|
|
48007
48025
|
}, v.value = r;
|
|
48008
48026
|
}
|
|
48009
|
-
const
|
|
48027
|
+
const ye = function(t) {
|
|
48010
48028
|
const e = S(!1), n = S([]), r = S(!1);
|
|
48011
48029
|
let a = null, i = null, o = null, s = null, l = -1, c = !1, d = null;
|
|
48012
48030
|
function p() {
|
|
@@ -48018,7 +48036,7 @@ var mT = ["tabindex"], fT = {
|
|
|
48018
48036
|
r && t.push({
|
|
48019
48037
|
clientId: e,
|
|
48020
48038
|
userName: a?.name ?? "Guest",
|
|
48021
|
-
color: a?.color ??
|
|
48039
|
+
color: a?.color ?? Vk,
|
|
48022
48040
|
x: r.x,
|
|
48023
48041
|
y: r.y
|
|
48024
48042
|
});
|
|
@@ -48045,7 +48063,7 @@ var mT = ["tabindex"], fT = {
|
|
|
48045
48063
|
const y = new m(n.serverUrl, n.roomId, f);
|
|
48046
48064
|
i = y, s = y.awareness, l = s.clientID ?? -1, s.setLocalStateField("user", {
|
|
48047
48065
|
name: n.userName,
|
|
48048
|
-
color: t.userColor ??
|
|
48066
|
+
color: t.userColor ?? Vk
|
|
48049
48067
|
}), s.on("change", p), y.on("status", (t) => {
|
|
48050
48068
|
e.value = "connected" === t.status;
|
|
48051
48069
|
}), g.observe(() => {
|
|
@@ -48073,38 +48091,38 @@ var mT = ["tabindex"], fT = {
|
|
|
48073
48091
|
onRemoteSlides: (t) => {
|
|
48074
48092
|
v.value = t;
|
|
48075
48093
|
}
|
|
48076
|
-
}),
|
|
48077
|
-
function
|
|
48078
|
-
|
|
48094
|
+
}), xe = S(!1), ve = ye.active;
|
|
48095
|
+
function be(t) {
|
|
48096
|
+
ye.start(t), p("start-collaboration", t), xe.value = !1;
|
|
48079
48097
|
}
|
|
48080
|
-
function
|
|
48081
|
-
|
|
48098
|
+
function Se() {
|
|
48099
|
+
ye.stop(), p("stop-collaboration"), xe.value = !1;
|
|
48082
48100
|
}
|
|
48083
|
-
function
|
|
48084
|
-
if (!
|
|
48101
|
+
function we(t) {
|
|
48102
|
+
if (!ye.active.value) return;
|
|
48085
48103
|
const e = t.currentTarget?.querySelector(".pptx-vue-stage");
|
|
48086
48104
|
if (!e) return;
|
|
48087
48105
|
const n = e.getBoundingClientRect();
|
|
48088
|
-
|
|
48106
|
+
ye.setCursor((t.clientX - n.left) / Q.value, (t.clientY - n.top) / Q.value);
|
|
48089
48107
|
}
|
|
48090
|
-
const
|
|
48091
|
-
if (!
|
|
48092
|
-
const { roomId: t, serverUrl: e } =
|
|
48108
|
+
const ke = S(!1), Te = mk(D), Ce = S(!1), _e = S(null), Me = n(() => {
|
|
48109
|
+
if (!_e.value || "undefined" == typeof window) return "";
|
|
48110
|
+
const { roomId: t, serverUrl: e } = _e.value;
|
|
48093
48111
|
return `${window.location.origin}${window.location.pathname}?broadcast=${encodeURIComponent(t)}&server=${encodeURIComponent(e)}`;
|
|
48094
48112
|
});
|
|
48095
|
-
function
|
|
48096
|
-
|
|
48113
|
+
function Ie(t) {
|
|
48114
|
+
_e.value = t, ye.start({
|
|
48097
48115
|
...t,
|
|
48098
48116
|
userName: d.authorName ?? "Presenter"
|
|
48099
48117
|
}), p("start-collaboration", {
|
|
48100
48118
|
...t,
|
|
48101
48119
|
userName: d.authorName ?? "Presenter"
|
|
48102
|
-
}),
|
|
48120
|
+
}), Ce.value = !1;
|
|
48103
48121
|
}
|
|
48104
|
-
function
|
|
48105
|
-
|
|
48122
|
+
function Pe() {
|
|
48123
|
+
_e.value = null, ye.stop(), p("stop-collaboration"), Ce.value = !1;
|
|
48106
48124
|
}
|
|
48107
|
-
const { isMobile:
|
|
48125
|
+
const { isMobile: Ae } = function(t = 768) {
|
|
48108
48126
|
const e = S(!1);
|
|
48109
48127
|
if ("undefined" == typeof window || "function" != typeof window.matchMedia) return { isMobile: b(e) };
|
|
48110
48128
|
const n = window.matchMedia(`(max-width: ${t}px)`), r = (t) => {
|
|
@@ -48118,47 +48136,47 @@ var mT = ["tabindex"], fT = {
|
|
|
48118
48136
|
n.removeEventListener("change", a);
|
|
48119
48137
|
}), { isMobile: b(e) };
|
|
48120
48138
|
}();
|
|
48121
|
-
function
|
|
48122
|
-
|
|
48139
|
+
function Fe() {
|
|
48140
|
+
Ft.value = !0;
|
|
48123
48141
|
}
|
|
48124
|
-
const
|
|
48125
|
-
function
|
|
48142
|
+
const Le = S(!1), Be = n(() => L.value ?? {});
|
|
48143
|
+
function De(t) {
|
|
48126
48144
|
L.value = {
|
|
48127
48145
|
...L.value,
|
|
48128
48146
|
...t
|
|
48129
|
-
},
|
|
48147
|
+
}, Le.value = !1;
|
|
48130
48148
|
}
|
|
48131
|
-
function
|
|
48132
|
-
for (const t of [...
|
|
48149
|
+
function Re() {
|
|
48150
|
+
for (const t of [...nt.value]) at.sendBackward(t);
|
|
48133
48151
|
}
|
|
48134
|
-
function
|
|
48152
|
+
function $e(t) {
|
|
48135
48153
|
if (!d.canEdit) return;
|
|
48136
48154
|
const e = t.ctrlKey || t.metaKey;
|
|
48137
|
-
e && "f" === t.key.toLowerCase() ? (t.preventDefault(),
|
|
48155
|
+
e && "f" === t.key.toLowerCase() ? (t.preventDefault(), Xt.value = !Xt.value) : e && "z" === t.key.toLowerCase() ? (t.preventDefault(), t.shiftKey ? rt.redo() : rt.undo()) : e && "y" === t.key.toLowerCase() ? (t.preventDefault(), rt.redo()) : "Delete" !== t.key && "Backspace" !== t.key || !it.value || (t.preventDefault(), gt());
|
|
48138
48156
|
}
|
|
48139
48157
|
return s({ getContent: R }), (e, n) => (x(), i("div", {
|
|
48140
48158
|
class: h(["pptx-vue-viewer", d.class]),
|
|
48141
48159
|
style: m(A(g)),
|
|
48142
48160
|
tabindex: d.canEdit ? 0 : void 0,
|
|
48143
|
-
onKeydown:
|
|
48161
|
+
onKeydown: $e
|
|
48144
48162
|
}, [
|
|
48145
|
-
A(C) ? (x(), i("div",
|
|
48163
|
+
A(C) ? (x(), i("div", mT, [...n[25] || (n[25] = [o("div", {
|
|
48146
48164
|
class: "pptx-vue-spinner",
|
|
48147
48165
|
"aria-hidden": "true"
|
|
48148
|
-
}, null, -1), o("p", null, "Loading presentation…", -1)])])) : A(F) ? (x(), i("div",
|
|
48149
|
-
A(
|
|
48166
|
+
}, null, -1), o("p", null, "Loading presentation…", -1)])])) : A(F) ? (x(), i("div", fT, [...n[26] || (n[26] = [o("p", null, "This presentation is password-protected and cannot be opened.", -1)])])) : A(_) ? (x(), i("div", gT, [n[27] || (n[27] = o("p", null, "Failed to load presentation.", -1)), o("pre", yT, M(A(_)), 1)])) : (x(), i(t, { key: 3 }, [
|
|
48167
|
+
A(Ae) ? a("", !0) : (x(), i("header", xT, [o("div", vT, [
|
|
48150
48168
|
o("button", {
|
|
48151
48169
|
type: "button",
|
|
48152
48170
|
disabled: E.value <= 0,
|
|
48153
48171
|
onClick: X
|
|
48154
|
-
}, "‹", 8,
|
|
48155
|
-
o("span",
|
|
48172
|
+
}, "‹", 8, bT),
|
|
48173
|
+
o("span", ST, M(0 === j.value ? 0 : E.value + 1) + " / " + M(j.value), 1),
|
|
48156
48174
|
o("button", {
|
|
48157
48175
|
type: "button",
|
|
48158
48176
|
disabled: E.value >= j.value - 1,
|
|
48159
48177
|
onClick: z
|
|
48160
|
-
}, " › ", 8,
|
|
48161
|
-
]), o("div",
|
|
48178
|
+
}, " › ", 8, wT)
|
|
48179
|
+
]), o("div", kT, [
|
|
48162
48180
|
o("button", {
|
|
48163
48181
|
type: "button",
|
|
48164
48182
|
onClick: q
|
|
@@ -48178,13 +48196,13 @@ var mT = ["tabindex"], fT = {
|
|
|
48178
48196
|
class: "pptx-vue-present-btn",
|
|
48179
48197
|
title: "Present",
|
|
48180
48198
|
"aria-label": "Present",
|
|
48181
|
-
onClick:
|
|
48199
|
+
onClick: Lt
|
|
48182
48200
|
}, " ▶ ")) : a("", !0),
|
|
48183
48201
|
j.value > 0 ? (x(), r(kg, {
|
|
48184
48202
|
key: 1,
|
|
48185
|
-
exporting: A(
|
|
48186
|
-
onExportPng:
|
|
48187
|
-
onExportPdf:
|
|
48203
|
+
exporting: A(Vt).exporting.value,
|
|
48204
|
+
onExportPng: Yt,
|
|
48205
|
+
onExportPdf: qt
|
|
48188
48206
|
}, null, 8, ["exporting"])) : a("", !0),
|
|
48189
48207
|
j.value > 0 ? (x(), i("button", {
|
|
48190
48208
|
key: 2,
|
|
@@ -48192,76 +48210,76 @@ var mT = ["tabindex"], fT = {
|
|
|
48192
48210
|
class: "pptx-vue-sorter-btn",
|
|
48193
48211
|
title: "Slide sorter",
|
|
48194
48212
|
"aria-label": "Slide sorter",
|
|
48195
|
-
onClick: n[0] || (n[0] = (t) =>
|
|
48213
|
+
onClick: n[0] || (n[0] = (t) => Kt.value = !0)
|
|
48196
48214
|
}, " ▦ ")) : a("", !0),
|
|
48197
48215
|
d.canEdit ? (x(), i("button", {
|
|
48198
48216
|
key: 3,
|
|
48199
48217
|
type: "button",
|
|
48200
48218
|
class: "pptx-vue-a11y-btn",
|
|
48201
|
-
title: `Accessibility (${A(
|
|
48219
|
+
title: `Accessibility (${A(te).issueCount.value})`,
|
|
48202
48220
|
"aria-label": "Accessibility checker",
|
|
48203
|
-
onClick: n[1] || (n[1] = (t) =>
|
|
48204
|
-
}, " ♿ " + M(A(
|
|
48205
|
-
|
|
48221
|
+
onClick: n[1] || (n[1] = (t) => Qt.value = !Qt.value)
|
|
48222
|
+
}, " ♿ " + M(A(te).issueCount.value), 9, TT)) : a("", !0),
|
|
48223
|
+
de.value ? (x(), r(sf, {
|
|
48206
48224
|
key: 4,
|
|
48207
|
-
status: A(
|
|
48208
|
-
"is-dirty": A(
|
|
48225
|
+
status: A(pe).status.value,
|
|
48226
|
+
"is-dirty": A(pe).isDirty.value
|
|
48209
48227
|
}, null, 8, ["status", "is-dirty"])) : a("", !0),
|
|
48210
48228
|
d.canEdit ? (x(), i("button", {
|
|
48211
48229
|
key: 5,
|
|
48212
48230
|
type: "button",
|
|
48213
48231
|
class: "pptx-vue-comments-btn",
|
|
48214
|
-
title: `Comments (${
|
|
48232
|
+
title: `Comments (${he.value.length})`,
|
|
48215
48233
|
"aria-label": "Comments",
|
|
48216
|
-
onClick: n[2] || (n[2] = (t) =>
|
|
48217
|
-
}, " 💬 " + M(
|
|
48234
|
+
onClick: n[2] || (n[2] = (t) => ue.value = !ue.value)
|
|
48235
|
+
}, " 💬 " + M(he.value.length), 9, CT)) : a("", !0),
|
|
48218
48236
|
o("button", {
|
|
48219
48237
|
type: "button",
|
|
48220
48238
|
class: "pptx-vue-share-btn",
|
|
48221
48239
|
title: "Share",
|
|
48222
48240
|
"aria-label": "Share",
|
|
48223
|
-
onClick: n[3] || (n[3] = (t) =>
|
|
48241
|
+
onClick: n[3] || (n[3] = (t) => xe.value = !0)
|
|
48224
48242
|
}, " ⤴ "),
|
|
48225
48243
|
o("button", {
|
|
48226
48244
|
type: "button",
|
|
48227
48245
|
class: "pptx-vue-broadcast-btn",
|
|
48228
48246
|
title: "Broadcast",
|
|
48229
48247
|
"aria-label": "Broadcast",
|
|
48230
|
-
onClick: n[4] || (n[4] = (t) =>
|
|
48248
|
+
onClick: n[4] || (n[4] = (t) => Ce.value = !0)
|
|
48231
48249
|
}, " 📡 "),
|
|
48232
48250
|
o("button", {
|
|
48233
48251
|
type: "button",
|
|
48234
48252
|
class: "pptx-vue-props-btn",
|
|
48235
48253
|
title: "Properties",
|
|
48236
48254
|
"aria-label": "Document properties",
|
|
48237
|
-
onClick: n[5] || (n[5] = (t) =>
|
|
48255
|
+
onClick: n[5] || (n[5] = (t) => Le.value = !0)
|
|
48238
48256
|
}, " ⓘ "),
|
|
48239
|
-
A(
|
|
48257
|
+
A(Te).isSigned.value ? (x(), i("button", {
|
|
48240
48258
|
key: 6,
|
|
48241
48259
|
type: "button",
|
|
48242
48260
|
class: "pptx-vue-sig-btn",
|
|
48243
|
-
title: `Digital signatures (${A(
|
|
48261
|
+
title: `Digital signatures (${A(Te).overall.value})`,
|
|
48244
48262
|
"aria-label": "Digital signatures",
|
|
48245
|
-
onClick: n[6] || (n[6] = (t) =>
|
|
48246
|
-
}, " 🔏 ", 8,
|
|
48263
|
+
onClick: n[6] || (n[6] = (t) => ke.value = !ke.value)
|
|
48264
|
+
}, " 🔏 ", 8, _T)) : a("", !0)
|
|
48247
48265
|
])])),
|
|
48248
48266
|
d.canEdit ? (x(), r(vg, {
|
|
48249
48267
|
key: 1,
|
|
48250
|
-
"can-undo": A(
|
|
48251
|
-
"can-redo": A(
|
|
48268
|
+
"can-undo": A(rt).canUndo.value,
|
|
48269
|
+
"can-redo": A(rt).canRedo.value,
|
|
48252
48270
|
"zoom-percent": Z.value,
|
|
48253
|
-
"has-selection":
|
|
48254
|
-
onUndo: A(
|
|
48255
|
-
onRedo: A(
|
|
48271
|
+
"has-selection": it.value,
|
|
48272
|
+
onUndo: A(rt).undo,
|
|
48273
|
+
onRedo: A(rt).redo,
|
|
48256
48274
|
onZoomIn: Y,
|
|
48257
48275
|
onZoomOut: q,
|
|
48258
48276
|
onZoomReset: K,
|
|
48259
|
-
onAddText:
|
|
48260
|
-
onAddShape:
|
|
48261
|
-
onDeleteSelected:
|
|
48262
|
-
onDuplicateSelected:
|
|
48263
|
-
onBringForward:
|
|
48264
|
-
onSendBackward:
|
|
48277
|
+
onAddText: mt,
|
|
48278
|
+
onAddShape: ft,
|
|
48279
|
+
onDeleteSelected: gt,
|
|
48280
|
+
onDuplicateSelected: yt,
|
|
48281
|
+
onBringForward: xt,
|
|
48282
|
+
onSendBackward: Re
|
|
48265
48283
|
}, null, 8, [
|
|
48266
48284
|
"can-undo",
|
|
48267
48285
|
"can-redo",
|
|
@@ -48270,30 +48288,30 @@ var mT = ["tabindex"], fT = {
|
|
|
48270
48288
|
"onUndo",
|
|
48271
48289
|
"onRedo"
|
|
48272
48290
|
])) : a("", !0),
|
|
48273
|
-
d.canEdit &&
|
|
48291
|
+
d.canEdit && it.value ? (x(), r(nf, {
|
|
48274
48292
|
key: 2,
|
|
48275
|
-
"can-group":
|
|
48276
|
-
"can-ungroup":
|
|
48277
|
-
onAlign:
|
|
48278
|
-
onDistribute:
|
|
48279
|
-
onGroup:
|
|
48280
|
-
onUngroup:
|
|
48293
|
+
"can-group": re.value,
|
|
48294
|
+
"can-ungroup": ae.value,
|
|
48295
|
+
onAlign: oe,
|
|
48296
|
+
onDistribute: se,
|
|
48297
|
+
onGroup: le,
|
|
48298
|
+
onUngroup: ce
|
|
48281
48299
|
}, null, 8, ["can-group", "can-ungroup"])) : a("", !0),
|
|
48282
|
-
d.canEdit &&
|
|
48300
|
+
d.canEdit && Xt.value ? (x(), r(Bg, {
|
|
48283
48301
|
key: 3,
|
|
48284
|
-
query: A(
|
|
48285
|
-
"onUpdate:query": n[7] || (n[7] = (t) => A(
|
|
48286
|
-
replacement: A(
|
|
48287
|
-
"onUpdate:replacement": n[8] || (n[8] = (t) => A(
|
|
48288
|
-
"match-case": A(
|
|
48289
|
-
"onUpdate:matchCase": n[9] || (n[9] = (t) => A(
|
|
48290
|
-
"match-count": A(
|
|
48291
|
-
"current-index": A(
|
|
48292
|
-
onNext: A(
|
|
48293
|
-
onPrev: A(
|
|
48294
|
-
onReplace: A(
|
|
48295
|
-
onReplaceAll: A(
|
|
48296
|
-
onClose: n[10] || (n[10] = (t) =>
|
|
48302
|
+
query: A(zt).query.value,
|
|
48303
|
+
"onUpdate:query": n[7] || (n[7] = (t) => A(zt).query.value = t),
|
|
48304
|
+
replacement: A(zt).replacement.value,
|
|
48305
|
+
"onUpdate:replacement": n[8] || (n[8] = (t) => A(zt).replacement.value = t),
|
|
48306
|
+
"match-case": A(zt).matchCase.value,
|
|
48307
|
+
"onUpdate:matchCase": n[9] || (n[9] = (t) => A(zt).matchCase.value = t),
|
|
48308
|
+
"match-count": A(zt).matchCount.value,
|
|
48309
|
+
"current-index": A(zt).currentMatch.value,
|
|
48310
|
+
onNext: A(zt).next,
|
|
48311
|
+
onPrev: A(zt).prev,
|
|
48312
|
+
onReplace: A(zt).replaceCurrent,
|
|
48313
|
+
onReplaceAll: A(zt).replaceAll,
|
|
48314
|
+
onClose: n[10] || (n[10] = (t) => Xt.value = !1)
|
|
48297
48315
|
}, null, 8, [
|
|
48298
48316
|
"query",
|
|
48299
48317
|
"replacement",
|
|
@@ -48305,69 +48323,70 @@ var mT = ["tabindex"], fT = {
|
|
|
48305
48323
|
"onReplace",
|
|
48306
48324
|
"onReplaceAll"
|
|
48307
48325
|
])) : a("", !0),
|
|
48308
|
-
o("div",
|
|
48309
|
-
o("nav",
|
|
48310
|
-
d.canEdit ? (x(), r(
|
|
48326
|
+
o("div", MT, [
|
|
48327
|
+
o("nav", IT, [
|
|
48328
|
+
d.canEdit ? (x(), r(Bk, {
|
|
48311
48329
|
key: 0,
|
|
48312
|
-
"can-delete":
|
|
48313
|
-
onAdd: n[11] || (n[11] = (t) => A(
|
|
48314
|
-
onDuplicate: n[12] || (n[12] = (t) => A(
|
|
48315
|
-
onDelete: n[13] || (n[13] = (t) => A(
|
|
48330
|
+
"can-delete": _t.value,
|
|
48331
|
+
onAdd: n[11] || (n[11] = (t) => A(Ct).addSlide()),
|
|
48332
|
+
onDuplicate: n[12] || (n[12] = (t) => A(Ct).duplicateSlide(E.value)),
|
|
48333
|
+
onDelete: n[13] || (n[13] = (t) => A(Ct).deleteSlide(E.value))
|
|
48316
48334
|
}, null, 8, ["can-delete"])) : a("", !0),
|
|
48317
|
-
d.canEdit && O.value ? (x(), r(
|
|
48335
|
+
d.canEdit && O.value ? (x(), r(Xk, {
|
|
48318
48336
|
key: 1,
|
|
48319
48337
|
slide: O.value,
|
|
48320
|
-
onUpdate:
|
|
48338
|
+
onUpdate: ne
|
|
48321
48339
|
}, null, 8, ["slide"])) : a("", !0),
|
|
48322
48340
|
(x(!0), i(t, null, w(A(v), (t, e) => (x(), i("button", {
|
|
48323
48341
|
key: t.id ?? e,
|
|
48324
48342
|
type: "button",
|
|
48325
48343
|
class: h(["pptx-vue-thumb", { "is-active": e === E.value }]),
|
|
48326
|
-
style: m({ height: `${
|
|
48344
|
+
style: m({ height: `${et.value}px` }),
|
|
48327
48345
|
"aria-label": `Slide ${e + 1}`,
|
|
48328
48346
|
"aria-current": e === E.value ? "true" : void 0,
|
|
48329
48347
|
onClick: (t) => U(e)
|
|
48330
|
-
}, [o("div",
|
|
48348
|
+
}, [o("div", AT, [l(Ow, {
|
|
48331
48349
|
slide: t,
|
|
48332
48350
|
"canvas-size": A(k),
|
|
48333
48351
|
"media-data-urls": A(T),
|
|
48334
|
-
scale:
|
|
48352
|
+
scale: tt.value
|
|
48335
48353
|
}, null, 8, [
|
|
48336
48354
|
"slide",
|
|
48337
48355
|
"canvas-size",
|
|
48338
48356
|
"media-data-urls",
|
|
48339
48357
|
"scale"
|
|
48340
|
-
])]), o("span",
|
|
48358
|
+
])]), o("span", FT, M(e + 1), 1)], 14, PT))), 128))
|
|
48341
48359
|
]),
|
|
48342
48360
|
o("main", {
|
|
48343
48361
|
class: h(["pptx-vue-main", { "is-editable": d.canEdit }]),
|
|
48344
|
-
onPointerdown:
|
|
48345
|
-
onContextmenu:
|
|
48346
|
-
onPointermove:
|
|
48362
|
+
onPointerdown: lt,
|
|
48363
|
+
onContextmenu: Nt,
|
|
48364
|
+
onPointermove: we,
|
|
48347
48365
|
onTouchstart: W,
|
|
48348
48366
|
onTouchend: H
|
|
48349
|
-
}, [l(
|
|
48367
|
+
}, [l(Tk, {
|
|
48350
48368
|
slide: O.value,
|
|
48351
48369
|
"canvas-size": A(k),
|
|
48352
48370
|
"media-data-urls": A(T),
|
|
48353
|
-
zoom:
|
|
48371
|
+
zoom: Q.value,
|
|
48372
|
+
"onUpdate:fitScale": n[14] || (n[14] = (t) => J.value = t)
|
|
48354
48373
|
}, {
|
|
48355
48374
|
default: N(() => [d.canEdit ? (x(), r(ik, {
|
|
48356
48375
|
key: 0,
|
|
48357
|
-
elements:
|
|
48358
|
-
"selected-ids":
|
|
48359
|
-
zoom:
|
|
48360
|
-
onTransformStart:
|
|
48361
|
-
onTransform:
|
|
48362
|
-
onTransformEnd:
|
|
48376
|
+
elements: ot.value,
|
|
48377
|
+
"selected-ids": nt.value,
|
|
48378
|
+
zoom: Q.value,
|
|
48379
|
+
onTransformStart: dt,
|
|
48380
|
+
onTransform: pt,
|
|
48381
|
+
onTransformEnd: ut
|
|
48363
48382
|
}, null, 8, [
|
|
48364
48383
|
"elements",
|
|
48365
48384
|
"selected-ids",
|
|
48366
48385
|
"zoom"
|
|
48367
|
-
])) : a("", !0), A(
|
|
48386
|
+
])) : a("", !0), A(ve) ? (x(), r(Bf, {
|
|
48368
48387
|
key: 1,
|
|
48369
|
-
cursors: A(
|
|
48370
|
-
zoom:
|
|
48388
|
+
cursors: A(ye).cursors.value,
|
|
48389
|
+
zoom: Q.value
|
|
48371
48390
|
}, null, 8, ["cursors", "zoom"])) : a("", !0)]),
|
|
48372
48391
|
_: 1
|
|
48373
48392
|
}, 8, [
|
|
@@ -48378,38 +48397,38 @@ var mT = ["tabindex"], fT = {
|
|
|
48378
48397
|
]), d.canEdit ? (x(), r(Wv, {
|
|
48379
48398
|
key: 0,
|
|
48380
48399
|
slide: O.value,
|
|
48381
|
-
onUpdate:
|
|
48400
|
+
onUpdate: ee
|
|
48382
48401
|
}, null, 8, ["slide"])) : a("", !0)], 34),
|
|
48383
|
-
d.canEdit &&
|
|
48402
|
+
d.canEdit && kt.value ? (x(), r(Bv, {
|
|
48384
48403
|
key: 0,
|
|
48385
|
-
element:
|
|
48386
|
-
onUpdate:
|
|
48404
|
+
element: kt.value,
|
|
48405
|
+
onUpdate: Tt
|
|
48387
48406
|
}, null, 8, ["element"])) : a("", !0),
|
|
48388
|
-
d.canEdit &&
|
|
48407
|
+
d.canEdit && Qt.value ? (x(), r(Xm, {
|
|
48389
48408
|
key: 1,
|
|
48390
|
-
issues: A(
|
|
48409
|
+
issues: A(te).issues.value,
|
|
48391
48410
|
onSelectSlide: U
|
|
48392
48411
|
}, null, 8, ["issues"])) : a("", !0),
|
|
48393
|
-
d.canEdit &&
|
|
48412
|
+
d.canEdit && ue.value ? (x(), r(Kf, {
|
|
48394
48413
|
key: 2,
|
|
48395
|
-
comments: A(
|
|
48396
|
-
"author-name":
|
|
48397
|
-
onAdd: n[
|
|
48398
|
-
onRemove: n[
|
|
48399
|
-
onResolve: n[
|
|
48414
|
+
comments: A(fe).slideComments.value,
|
|
48415
|
+
"author-name": me.value,
|
|
48416
|
+
onAdd: n[15] || (n[15] = (t) => ge(A(fe).addComment(t))),
|
|
48417
|
+
onRemove: n[16] || (n[16] = (t) => ge(A(fe).removeComment(t))),
|
|
48418
|
+
onResolve: n[17] || (n[17] = (t) => ge(A(fe).resolveComment(t)))
|
|
48400
48419
|
}, null, 8, ["comments", "author-name"])) : a("", !0),
|
|
48401
|
-
|
|
48420
|
+
ke.value ? (x(), r(kk, {
|
|
48402
48421
|
key: 3,
|
|
48403
48422
|
signatures: A(D)
|
|
48404
48423
|
}, null, 8, ["signatures"])) : a("", !0)
|
|
48405
48424
|
]),
|
|
48406
48425
|
l(tg, {
|
|
48407
|
-
open:
|
|
48408
|
-
x:
|
|
48409
|
-
y:
|
|
48410
|
-
items:
|
|
48411
|
-
onSelect:
|
|
48412
|
-
onClose: n[
|
|
48426
|
+
open: Rt.value.open,
|
|
48427
|
+
x: Rt.value.x,
|
|
48428
|
+
y: Rt.value.y,
|
|
48429
|
+
items: $t.value,
|
|
48430
|
+
onSelect: Et,
|
|
48431
|
+
onClose: n[18] || (n[18] = (t) => Rt.value.open = !1)
|
|
48413
48432
|
}, null, 8, [
|
|
48414
48433
|
"open",
|
|
48415
48434
|
"x",
|
|
@@ -48417,44 +48436,44 @@ var mT = ["tabindex"], fT = {
|
|
|
48417
48436
|
"items"
|
|
48418
48437
|
]),
|
|
48419
48438
|
l(jg, {
|
|
48420
|
-
open:
|
|
48421
|
-
element:
|
|
48422
|
-
onSave:
|
|
48423
|
-
onClose: n[
|
|
48439
|
+
open: jt.value,
|
|
48440
|
+
element: Ot.value,
|
|
48441
|
+
onSave: Ut,
|
|
48442
|
+
onClose: n[19] || (n[19] = (t) => jt.value = !1)
|
|
48424
48443
|
}, null, 8, ["open", "element"]),
|
|
48425
48444
|
l(uk, {
|
|
48426
|
-
open:
|
|
48445
|
+
open: xe.value,
|
|
48427
48446
|
defaults: d.shareDefaults,
|
|
48428
|
-
active: A(
|
|
48429
|
-
onStart:
|
|
48430
|
-
onStop:
|
|
48431
|
-
onClose: n[
|
|
48447
|
+
active: A(ve),
|
|
48448
|
+
onStart: be,
|
|
48449
|
+
onStop: Se,
|
|
48450
|
+
onClose: n[20] || (n[20] = (t) => xe.value = !1)
|
|
48432
48451
|
}, null, 8, [
|
|
48433
48452
|
"open",
|
|
48434
48453
|
"defaults",
|
|
48435
48454
|
"active"
|
|
48436
48455
|
]),
|
|
48437
48456
|
l(tk, {
|
|
48438
|
-
open:
|
|
48439
|
-
properties:
|
|
48440
|
-
onSave:
|
|
48441
|
-
onClose: n[
|
|
48457
|
+
open: Le.value,
|
|
48458
|
+
properties: Be.value,
|
|
48459
|
+
onSave: De,
|
|
48460
|
+
onClose: n[21] || (n[21] = (t) => Le.value = !1)
|
|
48442
48461
|
}, null, 8, ["open", "properties"]),
|
|
48443
48462
|
l(Mf, {
|
|
48444
|
-
open:
|
|
48445
|
-
active: A(
|
|
48446
|
-
"viewer-url":
|
|
48463
|
+
open: Ce.value,
|
|
48464
|
+
active: A(ve),
|
|
48465
|
+
"viewer-url": Me.value,
|
|
48447
48466
|
defaults: { serverUrl: d.shareDefaults?.serverUrl },
|
|
48448
|
-
onStart:
|
|
48449
|
-
onStop:
|
|
48450
|
-
onClose: n[
|
|
48467
|
+
onStart: Ie,
|
|
48468
|
+
onStop: Pe,
|
|
48469
|
+
onClose: n[22] || (n[22] = (t) => Ce.value = !1)
|
|
48451
48470
|
}, null, 8, [
|
|
48452
48471
|
"open",
|
|
48453
48472
|
"active",
|
|
48454
48473
|
"viewer-url",
|
|
48455
48474
|
"defaults"
|
|
48456
48475
|
]),
|
|
48457
|
-
A(
|
|
48476
|
+
A(Ae) ? (x(), r(jv, {
|
|
48458
48477
|
key: 4,
|
|
48459
48478
|
"slide-index": E.value,
|
|
48460
48479
|
"slide-count": j.value,
|
|
@@ -48463,8 +48482,8 @@ var mT = ["tabindex"], fT = {
|
|
|
48463
48482
|
onNext: z,
|
|
48464
48483
|
onZoomIn: Y,
|
|
48465
48484
|
onZoomOut: q,
|
|
48466
|
-
onPresent:
|
|
48467
|
-
onMenu: n[
|
|
48485
|
+
onPresent: Fe,
|
|
48486
|
+
onMenu: n[23] || (n[23] = (t) => Kt.value = !0)
|
|
48468
48487
|
}, null, 8, [
|
|
48469
48488
|
"slide-index",
|
|
48470
48489
|
"slide-count",
|
|
@@ -48472,7 +48491,7 @@ var mT = ["tabindex"], fT = {
|
|
|
48472
48491
|
])) : a("", !0),
|
|
48473
48492
|
o("div", {
|
|
48474
48493
|
ref_key: "exportStageRef",
|
|
48475
|
-
ref:
|
|
48494
|
+
ref: Gt,
|
|
48476
48495
|
class: "pptx-vue-export-stage",
|
|
48477
48496
|
"aria-hidden": "true",
|
|
48478
48497
|
style: {
|
|
@@ -48482,9 +48501,9 @@ var mT = ["tabindex"], fT = {
|
|
|
48482
48501
|
"pointer-events": "none",
|
|
48483
48502
|
opacity: "0"
|
|
48484
48503
|
}
|
|
48485
|
-
}, [
|
|
48504
|
+
}, [Ht.value ? (x(), r(Ow, {
|
|
48486
48505
|
key: 0,
|
|
48487
|
-
slide:
|
|
48506
|
+
slide: Ht.value,
|
|
48488
48507
|
"canvas-size": A(k),
|
|
48489
48508
|
"media-data-urls": A(T),
|
|
48490
48509
|
scale: 1
|
|
@@ -48494,36 +48513,36 @@ var mT = ["tabindex"], fT = {
|
|
|
48494
48513
|
"media-data-urls"
|
|
48495
48514
|
])) : a("", !0)], 512)
|
|
48496
48515
|
], 64)),
|
|
48497
|
-
|
|
48516
|
+
Kt.value ? (x(), r(Ak, {
|
|
48498
48517
|
key: 4,
|
|
48499
48518
|
slides: A(v),
|
|
48500
48519
|
"canvas-size": A(k),
|
|
48501
48520
|
"media-data-urls": A(T),
|
|
48502
48521
|
"active-index": E.value,
|
|
48503
|
-
onSelect:
|
|
48504
|
-
onReorder:
|
|
48505
|
-
onClose: n[
|
|
48522
|
+
onSelect: Zt,
|
|
48523
|
+
onReorder: Jt,
|
|
48524
|
+
onClose: n[24] || (n[24] = (t) => Kt.value = !1)
|
|
48506
48525
|
}, null, 8, [
|
|
48507
48526
|
"slides",
|
|
48508
48527
|
"canvas-size",
|
|
48509
48528
|
"media-data-urls",
|
|
48510
48529
|
"active-index"
|
|
48511
48530
|
])) : a("", !0),
|
|
48512
|
-
|
|
48531
|
+
Ft.value ? (x(), r(zw, {
|
|
48513
48532
|
key: 5,
|
|
48514
48533
|
slides: A(v),
|
|
48515
48534
|
"canvas-size": A(k),
|
|
48516
48535
|
"media-data-urls": A(T),
|
|
48517
48536
|
"start-index": E.value,
|
|
48518
|
-
onClose:
|
|
48519
|
-
onSlideChange:
|
|
48537
|
+
onClose: Bt,
|
|
48538
|
+
onSlideChange: Dt
|
|
48520
48539
|
}, null, 8, [
|
|
48521
48540
|
"slides",
|
|
48522
48541
|
"canvas-size",
|
|
48523
48542
|
"media-data-urls",
|
|
48524
48543
|
"start-index"
|
|
48525
48544
|
])) : a("", !0)
|
|
48526
|
-
], 46,
|
|
48545
|
+
], 46, hT));
|
|
48527
48546
|
}
|
|
48528
48547
|
});
|
|
48529
|
-
export { Au as A, Cm as C, Du as D, Fu as E, wu as F, Nu as I, $u as L, Mu as M, _u as N, Ru as O, ku as P, Cu as R, km as S, Lu as T, Nb as _,
|
|
48548
|
+
export { Au as A, Cm as C, Du as D, Fu as E, wu as F, Nu as I, $u as L, Mu as M, _u as N, Ru as O, ku as P, Cu as R, km as S, Lu as T, Nb as _, Tk as a, Qv as b, _w as c, tw as d, HS as f, Vb as g, tS as h, qk as i, Iu as j, Bu as k, xw as l, aS as m, dT as n, Ow as o, lS as p, Kk as r, jw as s, BT as t, cw as u, Jv as v, Tm as w, tb as x, eb as y };
|