pptx-vue-viewer 4.33.2 → 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 +50 -0
- package/dist/{AiChatPanel-PQ5I2MIX.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-CFpccz4k.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 +10 -0
- package/dist/i18n/de.cjs.br +0 -0
- package/dist/i18n/de.cjs.gz +0 -0
- package/dist/i18n/de.mjs +10 -0
- package/dist/i18n/de.mjs.br +0 -0
- package/dist/i18n/de.mjs.gz +0 -0
- package/dist/i18n/es.cjs +10 -0
- package/dist/i18n/es.cjs.br +0 -0
- package/dist/i18n/es.cjs.gz +0 -0
- package/dist/i18n/es.mjs +10 -0
- package/dist/i18n/es.mjs.br +0 -0
- package/dist/i18n/es.mjs.gz +0 -0
- package/dist/i18n/fr.cjs +10 -0
- package/dist/i18n/fr.cjs.br +0 -0
- package/dist/i18n/fr.cjs.gz +0 -0
- package/dist/i18n/fr.mjs +10 -0
- package/dist/i18n/fr.mjs.br +0 -0
- package/dist/i18n/fr.mjs.gz +0 -0
- package/dist/i18n/zh-CN.cjs +10 -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 +10 -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 +7 -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 +26 -26
- package/dist/pptx-vue-viewer.css.br +0 -0
- package/dist/pptx-vue-viewer.css.gz +0 -0
- package/dist/{useViewerSettingsDialog-CJRpDAej.cjs → useViewerSettingsDialog-DLlAB_cd.cjs} +826 -799
- package/dist/useViewerSettingsDialog-DLlAB_cd.cjs.br +0 -0
- package/dist/useViewerSettingsDialog-DLlAB_cd.cjs.gz +0 -0
- package/dist/{useViewerSettingsDialog-CZtUjVf5.js → useViewerSettingsDialog-aHldkvT_.js} +2575 -2548
- 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-D1D6ky_y.cjs → viewer-3HAffHnt.cjs} +3320 -3134
- package/dist/viewer-3HAffHnt.cjs.br +0 -0
- package/dist/viewer-3HAffHnt.cjs.gz +0 -0
- package/dist/{viewer-Do8AxyT-.js → viewer-BKNXx63U.js} +6658 -6472
- package/dist/viewer-BKNXx63U.js.br +0 -0
- package/dist/viewer-BKNXx63U.js.gz +0 -0
- package/dist/{y-webrtc-CDGNVw9J.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-DgDM-2xF.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 +5 -5
- package/dist/AiChatPanel-CFpccz4k.js.br +0 -0
- package/dist/AiChatPanel-CFpccz4k.js.gz +0 -0
- package/dist/AiChatPanel-PQ5I2MIX.cjs.br +0 -0
- package/dist/AiChatPanel-PQ5I2MIX.cjs.gz +0 -0
- package/dist/useViewerSettingsDialog-CJRpDAej.cjs.br +0 -0
- package/dist/useViewerSettingsDialog-CJRpDAej.cjs.gz +0 -0
- package/dist/useViewerSettingsDialog-CZtUjVf5.js.br +0 -0
- package/dist/useViewerSettingsDialog-CZtUjVf5.js.gz +0 -0
- package/dist/viewer-D1D6ky_y.cjs.br +0 -0
- package/dist/viewer-D1D6ky_y.cjs.gz +0 -0
- package/dist/viewer-Do8AxyT-.js.br +0 -0
- package/dist/viewer-Do8AxyT-.js.gz +0 -0
- package/dist/y-webrtc-CDGNVw9J.cjs.br +0 -0
- package/dist/y-webrtc-CDGNVw9J.cjs.gz +0 -0
- package/dist/y-webrtc-DgDM-2xF.js.br +0 -0
- package/dist/y-webrtc-DgDM-2xF.js.gz +0 -0
|
@@ -17,8 +17,8 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
17
17
|
}), n));
|
|
18
18
|
let u = require("ooxml-ui/pptx"), d = require("vue"), p = require("ooxml-ui/pptx/i18n"), m = require("fast-xml-parser"), v = require("jszip");
|
|
19
19
|
v = c(v, 1);
|
|
20
|
-
var f, g,
|
|
21
|
-
f =
|
|
20
|
+
var f, g, y, h = i({});
|
|
21
|
+
f = h, g = require("ooxml-core/pptx"), s(f, g, "default"), y && s(y, g, "default");
|
|
22
22
|
var k, x, b = "undefined" != typeof window;
|
|
23
23
|
if ("production" !== process.env.NODE_ENV) {
|
|
24
24
|
const e = b && window.performance;
|
|
@@ -138,13 +138,13 @@ function pe(e, t, n) {
|
|
|
138
138
|
};
|
|
139
139
|
return null != n && (o.source = n), o;
|
|
140
140
|
}
|
|
141
|
-
var me = 1, ve = 2, fe = 3, ge = 4,
|
|
141
|
+
var me = 1, ve = 2, fe = 3, ge = 4, ye = 5, he = 6, ke = 7, xe = 8, be = 9, Se = 10, we = 11, Ee = 12, Be = 13, Ce = 14, Ie = 15, Pe = 16, Te = {
|
|
142
142
|
[me]: "Expected token: '{0}'",
|
|
143
143
|
[ve]: "Invalid token in placeholder: '{0}'",
|
|
144
144
|
[fe]: "Unterminated single quote in placeholder",
|
|
145
145
|
[ge]: "Unknown escape sequence: \\{0}",
|
|
146
|
-
[
|
|
147
|
-
[
|
|
146
|
+
[ye]: "Invalid unicode escape sequence: {0}",
|
|
147
|
+
[he]: "Unbalanced closing brace",
|
|
148
148
|
[ke]: "Unterminated closing brace",
|
|
149
149
|
[xe]: "Empty placeholder",
|
|
150
150
|
[be]: "Not allowed nest placeholder",
|
|
@@ -246,12 +246,12 @@ function Re(e, t = {}) {
|
|
|
246
246
|
const t = f(e);
|
|
247
247
|
return e.skipToPeek(), t;
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function y(e) {
|
|
250
250
|
if (e === ze) return !1;
|
|
251
251
|
const t = e.charCodeAt(0);
|
|
252
252
|
return t >= 97 && t <= 122 || t >= 65 && t <= 90 || 95 === t;
|
|
253
253
|
}
|
|
254
|
-
function
|
|
254
|
+
function h(e, t) {
|
|
255
255
|
const { currentType: n } = t;
|
|
256
256
|
if (2 !== n) return !1;
|
|
257
257
|
f(e);
|
|
@@ -330,7 +330,7 @@ function Re(e, t = {}) {
|
|
|
330
330
|
for (let l = 0; l < n; l++) {
|
|
331
331
|
const n = T(e);
|
|
332
332
|
if (!n) {
|
|
333
|
-
d(
|
|
333
|
+
d(ye, a(), 0, `\\${t}${o}${e.currentChar()}`);
|
|
334
334
|
break;
|
|
335
335
|
}
|
|
336
336
|
o += n;
|
|
@@ -365,7 +365,7 @@ function Re(e, t = {}) {
|
|
|
365
365
|
const { currentType: n } = t;
|
|
366
366
|
if (2 !== n) return !1;
|
|
367
367
|
f(e);
|
|
368
|
-
const o =
|
|
368
|
+
const o = y(e.currentPeek());
|
|
369
369
|
return e.resetPeek(), o;
|
|
370
370
|
}(e, t)) return n = p(t, 4, function(e) {
|
|
371
371
|
g(e);
|
|
@@ -378,7 +378,7 @@ function Re(e, t = {}) {
|
|
|
378
378
|
}
|
|
379
379
|
return e.currentChar() === ze && d(ke, a(), 0), n;
|
|
380
380
|
}(e)), g(e), n;
|
|
381
|
-
if (l =
|
|
381
|
+
if (l = h(e, t)) return n = p(t, 5, function(e) {
|
|
382
382
|
g(e);
|
|
383
383
|
let t = "";
|
|
384
384
|
return "-" === e.currentChar() ? (e.next(), t += `-${_(e)}`) : t += _(e), e.currentChar() === ze && d(ke, a(), 0), t;
|
|
@@ -426,7 +426,7 @@ function Re(e, t = {}) {
|
|
|
426
426
|
const { currentType: n } = t;
|
|
427
427
|
if (8 !== n) return !1;
|
|
428
428
|
f(e);
|
|
429
|
-
const o =
|
|
429
|
+
const o = y(e.currentPeek());
|
|
430
430
|
return e.resetPeek(), o;
|
|
431
431
|
}(e, t) ? (g(e), p(t, 11, function(e) {
|
|
432
432
|
let t = "", n = "";
|
|
@@ -437,7 +437,7 @@ function Re(e, t = {}) {
|
|
|
437
437
|
if (9 !== n) return !1;
|
|
438
438
|
const o = () => {
|
|
439
439
|
const t = e.currentPeek();
|
|
440
|
-
return "{" === t ?
|
|
440
|
+
return "{" === t ? y(e.peek()) : !("@" === t || "|" === t || ":" === t || "." === t || t === Ne || !t) && (t === Le ? (e.peek(), o()) : x(e, !1));
|
|
441
441
|
}, l = o();
|
|
442
442
|
return e.resetPeek(), l;
|
|
443
443
|
}(e, t) ? (g(e), "{" === l ? F(e, t) || o : p(t, 10, function(e) {
|
|
@@ -455,7 +455,7 @@ function Re(e, t = {}) {
|
|
|
455
455
|
if (t.inLinked) return z(e, t) || m(t);
|
|
456
456
|
switch (e.currentChar()) {
|
|
457
457
|
case "{": return F(e, t) || m(t);
|
|
458
|
-
case "}": return d(
|
|
458
|
+
case "}": return d(he, a(), 0), e.next(), p(t, 3, "}");
|
|
459
459
|
case "@": return z(e, t) || m(t);
|
|
460
460
|
default:
|
|
461
461
|
if (k(e)) return n = p(t, 1, M(e)), t.braceNest = 0, t.inLinked = !1, n;
|
|
@@ -953,7 +953,7 @@ function ft(e, t) {
|
|
|
953
953
|
function gt(e, t) {
|
|
954
954
|
t && ((e) => De.test(e))(e) && K(w("Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.", { source: e }));
|
|
955
955
|
}
|
|
956
|
-
var
|
|
956
|
+
var yt = (e) => e, ht = L();
|
|
957
957
|
var kt = null;
|
|
958
958
|
var xt = bt("function:translate");
|
|
959
959
|
function bt(e) {
|
|
@@ -1126,7 +1126,7 @@ function vn(e = {}) {
|
|
|
1126
1126
|
upper: (e, t) => "text" === t && V(e) ? e.toUpperCase() : "vnode" === t && $(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1127
1127
|
lower: (e, t) => "text" === t && V(e) ? e.toLowerCase() : "vnode" === t && $(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1128
1128
|
capitalize: (e, t) => "text" === t && V(e) ? rn(e) : "vnode" === t && $(e) && "__v_isVNode" in e ? rn(e.children) : e
|
|
1129
|
-
}), u = e.pluralRules || L(), d = R(e.missing) ? e.missing : null, p = !j(e.missingWarn) && !_(e.missingWarn) || e.missingWarn, m = !j(e.fallbackWarn) && !_(e.fallbackWarn) || e.fallbackWarn, v = !!e.fallbackFormat, f = !!e.unresolving, g = R(e.postTranslation) ? e.postTranslation : null,
|
|
1129
|
+
}), u = e.pluralRules || L(), d = R(e.missing) ? e.missing : null, p = !j(e.missingWarn) && !_(e.missingWarn) || e.missingWarn, m = !j(e.fallbackWarn) && !_(e.fallbackWarn) || e.fallbackWarn, v = !!e.fallbackFormat, f = !!e.unresolving, g = R(e.postTranslation) ? e.postTranslation : null, y = H(e.processor) ? e.processor : null, h = !j(e.warnHtmlMessage) || e.warnHtmlMessage, k = !!e.escapeParameter, x = R(e.messageCompiler) ? e.messageCompiler : nn;
|
|
1130
1130
|
"production" !== process.env.NODE_ENV && R(e.messageCompiler) && q(tn(Zt));
|
|
1131
1131
|
const b = R(e.messageResolver) ? e.messageResolver : on || Ut, S = R(e.localeFallbacker) ? e.localeFallbacker : ln || Lt, w = $(e.fallbackContext) ? e.fallbackContext : void 0, E = e, B = $(E.__datetimeFormatters) ? E.__datetimeFormatters : /* @__PURE__ */ new Map(), C = $(E.__numberFormatters) ? E.__numberFormatters : /* @__PURE__ */ new Map(), I = $(E.__meta) ? E.__meta : {}, P = {
|
|
1132
1132
|
version: n,
|
|
@@ -1142,8 +1142,8 @@ function vn(e = {}) {
|
|
|
1142
1142
|
fallbackFormat: v,
|
|
1143
1143
|
unresolving: f,
|
|
1144
1144
|
postTranslation: g,
|
|
1145
|
-
processor:
|
|
1146
|
-
warnHtmlMessage:
|
|
1145
|
+
processor: y,
|
|
1146
|
+
warnHtmlMessage: h,
|
|
1147
1147
|
escapeParameter: k,
|
|
1148
1148
|
messageCompiler: x,
|
|
1149
1149
|
messageResolver: b,
|
|
@@ -1165,10 +1165,10 @@ var fn = (e) => ({ [e]: L() });
|
|
|
1165
1165
|
function gn(e, t) {
|
|
1166
1166
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1167
1167
|
}
|
|
1168
|
-
function
|
|
1168
|
+
function yn(e, t) {
|
|
1169
1169
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1170
1170
|
}
|
|
1171
|
-
function
|
|
1171
|
+
function hn(e, t, n, o, l) {
|
|
1172
1172
|
const { missing: a, onWarn: r } = e;
|
|
1173
1173
|
if ("production" !== process.env.NODE_ENV) {
|
|
1174
1174
|
const o = e.__v_emitter;
|
|
@@ -1183,7 +1183,7 @@ function yn(e, t, n, o, l) {
|
|
|
1183
1183
|
const o = a(e, n, t, l);
|
|
1184
1184
|
return V(o) ? o : t;
|
|
1185
1185
|
}
|
|
1186
|
-
return "production" !== process.env.NODE_ENV &&
|
|
1186
|
+
return "production" !== process.env.NODE_ENV && yn(o, t) && r(tn(Ht, {
|
|
1187
1187
|
key: t,
|
|
1188
1188
|
locale: n
|
|
1189
1189
|
})), t;
|
|
@@ -1224,7 +1224,7 @@ function wn(e, t, n, o, l, a, r) {
|
|
|
1224
1224
|
}
|
|
1225
1225
|
const p = (o[s] || {})[t];
|
|
1226
1226
|
if (H(p) && V(s)) return s;
|
|
1227
|
-
|
|
1227
|
+
hn(e, t, s, l, r), d = s;
|
|
1228
1228
|
}
|
|
1229
1229
|
return null;
|
|
1230
1230
|
}
|
|
@@ -1258,8 +1258,8 @@ function _n(e, ...t) {
|
|
|
1258
1258
|
const v = wn(e, r, m, n, u, d, "datetime format");
|
|
1259
1259
|
if (!V(v)) return o ? -1 : r;
|
|
1260
1260
|
const f = n[v][r], g = En(v, r, c);
|
|
1261
|
-
let
|
|
1262
|
-
return
|
|
1261
|
+
let y = a.get(g);
|
|
1262
|
+
return y || (y = new Intl.DateTimeFormat(v, D({}, f, c)), a.set(g, y)), p ? y.formatToParts(i) : y.format(i);
|
|
1263
1263
|
}
|
|
1264
1264
|
var On = [
|
|
1265
1265
|
"localeMatcher",
|
|
@@ -1326,8 +1326,8 @@ function Ln(e, ...t) {
|
|
|
1326
1326
|
const v = wn(e, r, m, n, u, d, "number format");
|
|
1327
1327
|
if (!V(v)) return o ? -1 : r;
|
|
1328
1328
|
const f = n[v][r], g = En(v, r, c);
|
|
1329
|
-
let
|
|
1330
|
-
return
|
|
1329
|
+
let y = a.get(g);
|
|
1330
|
+
return y || (y = new Intl.NumberFormat(v, D({}, f, c)), a.set(g, y)), p ? y.formatToParts(i) : y.format(i);
|
|
1331
1331
|
}
|
|
1332
1332
|
var An = [
|
|
1333
1333
|
"localeMatcher",
|
|
@@ -1406,15 +1406,15 @@ function Gn(e, ...t) {
|
|
|
1406
1406
|
V(e.named[t]) && (e.named[t] = X(e.named[t]));
|
|
1407
1407
|
});
|
|
1408
1408
|
}(c);
|
|
1409
|
-
let [
|
|
1409
|
+
let [y, h, S] = m ? [
|
|
1410
1410
|
s,
|
|
1411
1411
|
g,
|
|
1412
1412
|
i[g] || L()
|
|
1413
|
-
] : Kn(e, s, g, r, d, u), w =
|
|
1414
|
-
if (m || V(w) || Qe(w) || Hn(w) || f && (w = v, E = w), !(m || (V(w) || Qe(w) || Hn(w)) && V(
|
|
1413
|
+
] : Kn(e, s, g, r, d, u), w = y, E = s;
|
|
1414
|
+
if (m || V(w) || Qe(w) || Hn(w) || f && (w = v, E = w), !(m || (V(w) || Qe(w) || Hn(w)) && V(h))) return l ? -1 : s;
|
|
1415
1415
|
if ("production" !== process.env.NODE_ENV && V(w) && null == e.messageCompiler) return K(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${s}'.`), s;
|
|
1416
1416
|
let B = !1;
|
|
1417
|
-
const P = Hn(w) ? w : Yn(e, s,
|
|
1417
|
+
const P = Hn(w) ? w : Yn(e, s, h, w, E, () => {
|
|
1418
1418
|
B = !0;
|
|
1419
1419
|
});
|
|
1420
1420
|
if (B) return w;
|
|
@@ -1459,14 +1459,14 @@ function Gn(e, ...t) {
|
|
|
1459
1459
|
o.named && (p.named = o.named);
|
|
1460
1460
|
C(o.plural) && (p.pluralIndex = o.plural);
|
|
1461
1461
|
return p;
|
|
1462
|
-
}(e,
|
|
1462
|
+
}(e, h, S, c)));
|
|
1463
1463
|
let O = o ? o(_, s) : _;
|
|
1464
1464
|
var N;
|
|
1465
1465
|
if (p && V(O) && (N = (N = (N = O).replace(/([\w:-]+)\s*=\s*"([^"]*)"/g, (e, t, n) => `${t}="${se(t, n)}"`)).replace(/([\w:-]+)\s*=\s*'([^']*)'/g, (e, t, n) => `${t}='${se(t, n)}'`), oe.test(N) && ("production" !== process.env.NODE_ENV && K("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."), N = N.replace(le, "$1on$2")), O = N.replace(ae, (e, t, n, o) => ie(o) ? `${t}${n}about:blank` : e)), "production" !== process.env.NODE_ENV || __INTLIFY_PROD_DEVTOOLS__) {
|
|
1466
1466
|
const t = {
|
|
1467
1467
|
timestamp: Date.now(),
|
|
1468
1468
|
key: V(s) ? s : Hn(w) ? w.key : "",
|
|
1469
|
-
locale:
|
|
1469
|
+
locale: h || (Hn(w) ? w.locale : ""),
|
|
1470
1470
|
format: V(w) ? w : Hn(w) ? w.source : "",
|
|
1471
1471
|
message: O
|
|
1472
1472
|
};
|
|
@@ -1491,8 +1491,8 @@ function Kn(e, t, n, o, l, a) {
|
|
|
1491
1491
|
to: f,
|
|
1492
1492
|
groupId: I(g, t)
|
|
1493
1493
|
}), p = r[d] || L();
|
|
1494
|
-
let
|
|
1495
|
-
if ("production" !== process.env.NODE_ENV && b && c && (S = window.performance.now(),
|
|
1494
|
+
let y, h, S = null;
|
|
1495
|
+
if ("production" !== process.env.NODE_ENV && b && c && (S = window.performance.now(), y = "intlify-message-resolve-start", h = "intlify-message-resolve-end", k && k(y)), null === (m = s(p, t)) && (m = p[t]), "production" !== process.env.NODE_ENV && b && c) {
|
|
1496
1496
|
const e = window.performance.now();
|
|
1497
1497
|
c && S && m && c.emit("message-resolve", {
|
|
1498
1498
|
type: "message-resolve",
|
|
@@ -1500,11 +1500,11 @@ function Kn(e, t, n, o, l, a) {
|
|
|
1500
1500
|
message: m,
|
|
1501
1501
|
time: e - S,
|
|
1502
1502
|
groupId: I(g, t)
|
|
1503
|
-
}),
|
|
1503
|
+
}), y && h && k && x && (k(h), x("intlify message resolve", y, h));
|
|
1504
1504
|
}
|
|
1505
1505
|
if (V(m) || Qe(m) || Hn(m)) break;
|
|
1506
1506
|
if (!Sn(d, u)) {
|
|
1507
|
-
const n =
|
|
1507
|
+
const n = hn(e, t, d, a, g);
|
|
1508
1508
|
n !== t && (m = n);
|
|
1509
1509
|
}
|
|
1510
1510
|
v = f;
|
|
@@ -1621,8 +1621,8 @@ var so = {
|
|
|
1621
1621
|
[ro]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
1622
1622
|
}, co = E("__translateVNode"), uo = E("__datetimeParts"), po = E("__numberParts"), mo = E("__enableEmitter"), vo = E("__disableEmitter"), fo = E("__setPluralRules");
|
|
1623
1623
|
E("__intlifyMeta");
|
|
1624
|
-
var go = E("__injectWithOption"),
|
|
1625
|
-
[
|
|
1624
|
+
var go = E("__injectWithOption"), yo = E("__dispose"), ho = 10, ko = 11, xo = 12, bo = 13, So = 14, wo = 15, Eo = {
|
|
1625
|
+
[ho]: "Fall back to {type} '{key}' with root locale.",
|
|
1626
1626
|
[ko]: "Not found parent scope. use the global scope.",
|
|
1627
1627
|
[xo]: "Ignore object flatten: '{key}' key has an string value",
|
|
1628
1628
|
[bo]: "Legacy API mode has been deprecated in v11. Use Composition API mode instead.\nAbout how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html",
|
|
@@ -1709,7 +1709,7 @@ function zo(e = {}) {
|
|
|
1709
1709
|
const { __root: t, __injectWithOption: n } = e, o = void 0 === t, l = e.flatJson, a = b ? d.ref : d.shallowRef;
|
|
1710
1710
|
let r = !j(e.inheritLocale) || e.inheritLocale;
|
|
1711
1711
|
const i = a(t && r ? t.locale.value : V(e.locale) ? e.locale : an), s = a(t && r ? t.fallbackLocale.value : V(e.fallbackLocale) || z(e.fallbackLocale) || H(e.fallbackLocale) || !1 === e.fallbackLocale ? e.fallbackLocale : i.value), c = a(Po(i.value, e)), u = a(H(e.datetimeFormats) ? e.datetimeFormats : { [i.value]: {} }), p = a(H(e.numberFormats) ? e.numberFormats : { [i.value]: {} });
|
|
1712
|
-
let m = t ? t.missingWarn : !j(e.missingWarn) && !_(e.missingWarn) || e.missingWarn, v = t ? t.fallbackWarn : !j(e.fallbackWarn) && !_(e.fallbackWarn) || e.fallbackWarn, f = t ? t.fallbackRoot : !j(e.fallbackRoot) || e.fallbackRoot, g = !!e.fallbackFormat,
|
|
1712
|
+
let m = t ? t.missingWarn : !j(e.missingWarn) && !_(e.missingWarn) || e.missingWarn, v = t ? t.fallbackWarn : !j(e.fallbackWarn) && !_(e.fallbackWarn) || e.fallbackWarn, f = t ? t.fallbackRoot : !j(e.fallbackRoot) || e.fallbackRoot, g = !!e.fallbackFormat, y = R(e.missing) ? e.missing : null, h = R(e.missing) ? Fo(e.missing) : null, k = R(e.postTranslation) ? e.postTranslation : null, x = t ? t.warnHtmlMessage : !j(e.warnHtmlMessage) || e.warnHtmlMessage, S = !!e.escapeParameter;
|
|
1713
1713
|
const w = t ? t.modifiers : H(e.modifiers) ? e.modifiers : {};
|
|
1714
1714
|
let E, B = e.pluralRules || t && t.pluralRules;
|
|
1715
1715
|
E = (() => {
|
|
@@ -1721,7 +1721,7 @@ function zo(e = {}) {
|
|
|
1721
1721
|
messages: c.value,
|
|
1722
1722
|
modifiers: w,
|
|
1723
1723
|
pluralRules: B,
|
|
1724
|
-
missing: null ===
|
|
1724
|
+
missing: null === h ? void 0 : h,
|
|
1725
1725
|
missingWarn: m,
|
|
1726
1726
|
fallbackWarn: v,
|
|
1727
1727
|
fallbackFormat: g,
|
|
@@ -1771,7 +1771,7 @@ function zo(e = {}) {
|
|
|
1771
1771
|
}
|
|
1772
1772
|
if ("translate exists" !== l && C(g) && -1 === g || "translate exists" === l && !g) {
|
|
1773
1773
|
const [e, o] = n();
|
|
1774
|
-
if ("production" !== process.env.NODE_ENV && t && V(e) && (
|
|
1774
|
+
if ("production" !== process.env.NODE_ENV && t && V(e) && (y = o, "translate" !== l || !y.resolvedMessage) && (f && (gn(v, e) || yn(m, e)) && K(Bo(ho, {
|
|
1775
1775
|
key: e,
|
|
1776
1776
|
type: l
|
|
1777
1777
|
})), "production" !== process.env.NODE_ENV)) {
|
|
@@ -1787,7 +1787,7 @@ function zo(e = {}) {
|
|
|
1787
1787
|
}
|
|
1788
1788
|
if (d(g)) return g;
|
|
1789
1789
|
throw io(Xn);
|
|
1790
|
-
var
|
|
1790
|
+
var y;
|
|
1791
1791
|
};
|
|
1792
1792
|
function W(...e) {
|
|
1793
1793
|
return M((t) => Reflect.apply(Gn, null, [t, ...e]), () => qn(...e), "translate", (t) => Reflect.apply(t.t, t, [...e]), (e) => e, (e) => V(e));
|
|
@@ -1892,10 +1892,10 @@ function zo(e = {}) {
|
|
|
1892
1892
|
k = e, E.postTranslation = e;
|
|
1893
1893
|
},
|
|
1894
1894
|
getMissingHandler: function() {
|
|
1895
|
-
return
|
|
1895
|
+
return y;
|
|
1896
1896
|
},
|
|
1897
1897
|
setMissingHandler: function(e) {
|
|
1898
|
-
null !== e && (
|
|
1898
|
+
null !== e && (h = Fo(e)), y = e, E.missing = h;
|
|
1899
1899
|
},
|
|
1900
1900
|
[fo]: function(e) {
|
|
1901
1901
|
B = e, E.pluralRules = B;
|
|
@@ -2035,7 +2035,7 @@ function Ho(e = {}) {
|
|
|
2035
2035
|
const l = n, a = D({}, e);
|
|
2036
2036
|
a.__root = Go(n, t) || o;
|
|
2037
2037
|
const i = zo(a);
|
|
2038
|
-
l.__composerExtend && (i[
|
|
2038
|
+
l.__composerExtend && (i[yo] = l.__composerExtend(i));
|
|
2039
2039
|
let s = null;
|
|
2040
2040
|
if ("production" !== process.env.NODE_ENV) {
|
|
2041
2041
|
s = ce();
|
|
@@ -2048,15 +2048,15 @@ function Ho(e = {}) {
|
|
|
2048
2048
|
const e = i;
|
|
2049
2049
|
e[vo] && e[vo]();
|
|
2050
2050
|
}
|
|
2051
|
-
const e = i[
|
|
2052
|
-
e && (e(), delete i[
|
|
2051
|
+
const e = i[yo];
|
|
2052
|
+
e && (e(), delete i[yo]);
|
|
2053
2053
|
}), i;
|
|
2054
2054
|
}
|
|
2055
2055
|
const r = n;
|
|
2056
2056
|
let i = r.__getInstance(t);
|
|
2057
2057
|
if (null == i) {
|
|
2058
2058
|
const n = D({}, e);
|
|
2059
|
-
"__i18n" in l && (n.__i18n = l.__i18n), o && (n.__root = o), i = zo(n), r.__composerExtend && (i[
|
|
2059
|
+
"__i18n" in l && (n.__i18n = l.__i18n), o && (n.__root = o), i = zo(n), r.__composerExtend && (i[yo] = r.__composerExtend(i)), function(e, t, n) {
|
|
2060
2060
|
let o = null;
|
|
2061
2061
|
(0, d.onMounted)(() => {
|
|
2062
2062
|
if ("production" !== process.env.NODE_ENV) {
|
|
@@ -2067,8 +2067,8 @@ function Ho(e = {}) {
|
|
|
2067
2067
|
}, t), (0, d.onUnmounted)(() => {
|
|
2068
2068
|
const l = n;
|
|
2069
2069
|
"production" !== process.env.NODE_ENV && (o && o.off("*", Vo), l[vo] && l[vo](), delete t.__VUE_I18N__), e.__deleteInstance(t);
|
|
2070
|
-
const a = l[
|
|
2071
|
-
a && (a(), delete l[
|
|
2070
|
+
const a = l[yo];
|
|
2071
|
+
a && (a(), delete l[yo]);
|
|
2072
2072
|
}, t);
|
|
2073
2073
|
}(r, t, i), r.__setInstance(t, i);
|
|
2074
2074
|
} else "production" !== process.env.NODE_ENV && "local" === a && K(Bo(wo));
|
|
@@ -2106,7 +2106,7 @@ if ("boolean" != typeof __VUE_I18N_FULL_INSTALL__ && (A().__VUE_I18N_FULL_INSTAL
|
|
|
2106
2106
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && V(e)) {
|
|
2107
2107
|
const n = !j(t.warnHtmlMessage) || t.warnHtmlMessage;
|
|
2108
2108
|
"production" !== process.env.NODE_ENV && gt(e, n);
|
|
2109
|
-
const o = (t.onCacheKey ||
|
|
2109
|
+
const o = (t.onCacheKey || yt)(e), l = ht[o];
|
|
2110
2110
|
if (l) return l;
|
|
2111
2111
|
const { ast: a, detectError: r } = function(e, t = {}) {
|
|
2112
2112
|
let n = !1;
|
|
@@ -2122,12 +2122,12 @@ if ("boolean" != typeof __VUE_I18N_FULL_INSTALL__ && (A().__VUE_I18N_FULL_INSTAL
|
|
|
2122
2122
|
location: "production" !== process.env.NODE_ENV,
|
|
2123
2123
|
jit: !0
|
|
2124
2124
|
}), i = mt(a);
|
|
2125
|
-
return r ? i :
|
|
2125
|
+
return r ? i : ht[o] = i;
|
|
2126
2126
|
}
|
|
2127
2127
|
{
|
|
2128
2128
|
if ("production" !== process.env.NODE_ENV && !Qe(e)) return K(`the message that is resolve with key '${t.key}' is not supported for jit compilation`), () => e;
|
|
2129
2129
|
const n = e.cacheKey;
|
|
2130
|
-
if (n) return
|
|
2130
|
+
if (n) return ht[n] || (ht[n] = mt(e));
|
|
2131
2131
|
return mt(e);
|
|
2132
2132
|
}
|
|
2133
2133
|
}, on = function(e, t) {
|
|
@@ -2266,7 +2266,7 @@ function ll(e, t, n, o) {
|
|
|
2266
2266
|
const t = (0, u.getComputedEffectStyle)(e), n = {};
|
|
2267
2267
|
return t.filter && (n.filter = t.filter), t.overflowVisible && (n.overflow = "visible"), n;
|
|
2268
2268
|
}
|
|
2269
|
-
if (!(0,
|
|
2269
|
+
if (!(0, h.hasShapeProperties)(e)) return {};
|
|
2270
2270
|
const l = {};
|
|
2271
2271
|
if (e.shapeStyle) {
|
|
2272
2272
|
const a = n ? void 0 : (0, u.getComputedFillStyle)(e, t);
|
|
@@ -2295,7 +2295,7 @@ function ll(e, t, n, o) {
|
|
|
2295
2295
|
}
|
|
2296
2296
|
}
|
|
2297
2297
|
function al(e) {
|
|
2298
|
-
return (0,
|
|
2298
|
+
return (0, h.hasTextProperties)(e) ? (0, u.buildTextBlockStyle)(e, {
|
|
2299
2299
|
fallbackColor: tl,
|
|
2300
2300
|
bodyLayout: !0,
|
|
2301
2301
|
pxLengths: !0
|
|
@@ -2367,7 +2367,7 @@ var ml = {
|
|
|
2367
2367
|
}
|
|
2368
2368
|
});
|
|
2369
2369
|
u.CHART_DRAG_THRESHOLD_PX;
|
|
2370
|
-
var gl = u.ensureChartInteractionStyles,
|
|
2370
|
+
var gl = u.ensureChartInteractionStyles, yl = u.applyChartPartHighlight, hl = u.beginChartValueDrag, kl = u.advanceChartValueDrag, xl = u.buildChartMarkDragGeometry, bl = u.beginChartMarkDrag, Sl = u.advanceChartMarkDrag, wl = Symbol("pptx-vue-chart-canvas-edit");
|
|
2371
2371
|
function El() {
|
|
2372
2372
|
return (0, d.inject)(wl, void 0);
|
|
2373
2373
|
}
|
|
@@ -3018,7 +3018,7 @@ var ga = (0, d.defineComponent)({
|
|
|
3018
3018
|
e.textStyle
|
|
3019
3019
|
], i, { flush: "post" }), () => (0, d.h)(u.THREE_VIEW_TAG, { ref: o }, n.default?.());
|
|
3020
3020
|
}
|
|
3021
|
-
}),
|
|
3021
|
+
}), ya = ["data-element-id", "data-pptx-element"], ha = {
|
|
3022
3022
|
key: 2,
|
|
3023
3023
|
class: "pptx-vue-placeholder pptx-vue-chart-placeholder"
|
|
3024
3024
|
}, xa = Xo((0, d.defineComponent)({
|
|
@@ -3034,7 +3034,7 @@ var ga = (0, d.defineComponent)({
|
|
|
3034
3034
|
textStyleOverrideCss: {}
|
|
3035
3035
|
},
|
|
3036
3036
|
setup(e) {
|
|
3037
|
-
const t = e, { t: n } = Ho(), o = (0, d.computed)(() => ol(t.element, t.zIndex)), l = il(() => t.element, () => t.interactive, () => t.presenting), a = (0, d.ref)(null), { interactiveClass: r, renderedElement: i, dragLabel: s, titleDraft: c, onPointerdown: p, onPointermove: m, onPointerup: v, onDblclick: f, setTitleDraft: g, commitTitle:
|
|
3037
|
+
const t = e, { t: n } = Ho(), o = (0, d.computed)(() => ol(t.element, t.zIndex)), l = il(() => t.element, () => t.interactive, () => t.presenting), a = (0, d.ref)(null), { interactiveClass: r, renderedElement: i, dragLabel: s, titleDraft: c, onPointerdown: p, onPointermove: m, onPointerup: v, onDblclick: f, setTitleDraft: g, commitTitle: y, cancelTitle: h } = function(e) {
|
|
3038
3038
|
const t = El(), n = (0, d.shallowRef)(null), o = (0, d.ref)(null), l = (0, d.ref)(null);
|
|
3039
3039
|
let a = null, r = null;
|
|
3040
3040
|
const i = (0, d.computed)(() => e.interactive() && Boolean(t?.canEditChart(e.element().id)) && (0, u.canDrillDown)(e.element())), s = (0, d.computed)(() => e.interactive() && Boolean(t?.canSelectCharts())), c = (0, d.computed)(() => [...s.value ? ["pptx-vue-chart-selectable"] : [], ...i.value ? ["pptx-chart-interactive"] : []]), p = (0, d.computed)(() => n.value ? {
|
|
@@ -3051,14 +3051,14 @@ var ga = (0, d.defineComponent)({
|
|
|
3051
3051
|
const i = a, s = r;
|
|
3052
3052
|
a = null, r = null, window.removeEventListener("keydown", f), n.value = null, o.value = null, l && t && (i?.moved && i.lastData ? t.updateElement(e.element().id, { chartData: i.lastData }) : s?.moved && s.lastData && t.updateElement(e.element().id, { chartData: s.lastData }));
|
|
3053
3053
|
}
|
|
3054
|
-
function
|
|
3055
|
-
|
|
3054
|
+
function y() {
|
|
3055
|
+
yl(e.rootEl.value, i.value ? v.value : null);
|
|
3056
3056
|
}
|
|
3057
3057
|
return (0, d.onUnmounted)(() => {
|
|
3058
3058
|
a = null, r = null, window.removeEventListener("keydown", f);
|
|
3059
3059
|
}), (0, d.onMounted)(() => {
|
|
3060
|
-
gl(),
|
|
3061
|
-
}), (0, d.onUpdated)(
|
|
3060
|
+
gl(), y();
|
|
3061
|
+
}), (0, d.onUpdated)(y), (0, d.watch)([v, i], y, { flush: "post" }), {
|
|
3062
3062
|
canEdit: i,
|
|
3063
3063
|
interactiveClass: c,
|
|
3064
3064
|
renderedElement: p,
|
|
@@ -3097,7 +3097,7 @@ var ga = (0, d.defineComponent)({
|
|
|
3097
3097
|
t && (r = t, c = !0);
|
|
3098
3098
|
}
|
|
3099
3099
|
if (!c) {
|
|
3100
|
-
const e =
|
|
3100
|
+
const e = hl({
|
|
3101
3101
|
part: o,
|
|
3102
3102
|
viewModel: s,
|
|
3103
3103
|
chartData: l.chartData,
|
|
@@ -3223,7 +3223,7 @@ var ga = (0, d.defineComponent)({
|
|
|
3223
3223
|
default: (0, d.withCtx)(() => [(0, d.createTextVNode)((0, d.toDisplayString)(e.textStyleOverrideCss), 1)]),
|
|
3224
3224
|
_: 1
|
|
3225
3225
|
})) : (0, d.createCommentVNode)("", !0),
|
|
3226
|
-
w.value ? ((0, d.openBlock)(), (0, d.createElementBlock)("div",
|
|
3226
|
+
w.value ? ((0, d.openBlock)(), (0, d.createElementBlock)("div", ha, (0, d.toDisplayString)(C.value), 1)) : (0, d.unref)(B) && P.value ? ((0, d.openBlock)(), (0, d.createBlock)((0, d.unref)(ga), {
|
|
3227
3227
|
key: 3,
|
|
3228
3228
|
spec: (0, d.unref)(B),
|
|
3229
3229
|
interactive: (0, d.unref)(E).interactive.value,
|
|
@@ -3263,8 +3263,8 @@ var ga = (0, d.defineComponent)({
|
|
|
3263
3263
|
"drag-label": (0, d.unref)(s) ?? (0, d.unref)(E).dragLabel.value,
|
|
3264
3264
|
"title-draft": (0, d.unref)(c),
|
|
3265
3265
|
onTitleInput: (0, d.unref)(g),
|
|
3266
|
-
onTitleCommit: (0, d.unref)(
|
|
3267
|
-
onTitleCancel: (0, d.unref)(
|
|
3266
|
+
onTitleCommit: (0, d.unref)(y),
|
|
3267
|
+
onTitleCancel: (0, d.unref)(h)
|
|
3268
3268
|
}, null, 8, [
|
|
3269
3269
|
"drag-label",
|
|
3270
3270
|
"title-draft",
|
|
@@ -3272,7 +3272,7 @@ var ga = (0, d.defineComponent)({
|
|
|
3272
3272
|
"onTitleCommit",
|
|
3273
3273
|
"onTitleCancel"
|
|
3274
3274
|
])
|
|
3275
|
-
], 46,
|
|
3275
|
+
], 46, ya));
|
|
3276
3276
|
}
|
|
3277
3277
|
}), [["__scopeId", "data-v-c8cd67e8"]]), ba = Xo((0, d.defineComponent)({
|
|
3278
3278
|
__name: "ConnectorTextOverlay",
|
|
@@ -3376,17 +3376,17 @@ var ga = (0, d.defineComponent)({
|
|
|
3376
3376
|
textStyleOverrideCss: {}
|
|
3377
3377
|
},
|
|
3378
3378
|
setup(e) {
|
|
3379
|
-
const t = e, n = (0, d.computed)(() => (0,
|
|
3379
|
+
const t = e, n = (0, d.computed)(() => (0, h.hasShapeProperties)(t.element) ? t.element.shapeStyle : void 0), o = (0, d.computed)(() => Math.max(0, n.value?.strokeWidth ?? 2)), l = (0, d.computed)(() => t.animationState?.animatesStroke ? "inherit" : n.value?.strokeColor ?? "#1f2937"), a = (0, d.computed)(() => n.value?.strokeOpacity ?? 1), r = (0, d.computed)(() => {
|
|
3380
3380
|
const e = n.value?.strokeDash, t = Math.max(o.value, 1);
|
|
3381
3381
|
if (e && "solid" !== e) return "dot" === e || "sysDot" === e ? `${t} ${t}` : `${3 * t} ${t}`;
|
|
3382
3382
|
}), i = (0, d.computed)(() => Math.max(t.element.width, 1)), s = (0, d.computed)(() => Math.max(t.element.height, 1)), c = (0, d.computed)(() => n.value?.compoundLine), p = (0, d.computed)(() => (0, u.getCompoundLineOffsets)(c.value, o.value)), m = (0, d.computed)(() => (0, u.getCompoundLineWidths)(c.value, o.value)), v = (0, d.computed)(() => {
|
|
3383
|
-
const e = (0,
|
|
3383
|
+
const e = (0, h.hasShapeProperties)(t.element) ? t.element.shapeType : void 0;
|
|
3384
3384
|
return (0, u.connectorNeedsPath)(e);
|
|
3385
3385
|
}), f = (0, d.computed)(() => {
|
|
3386
3386
|
if (!v.value) return null;
|
|
3387
3387
|
const e = t.element;
|
|
3388
|
-
return (0,
|
|
3389
|
-
}), g = (0, d.computed)(() => t.element.flipHorizontal ? i.value : 0),
|
|
3388
|
+
return (0, h.hasShapeProperties)(e) ? (0, h.getConnectorPathGeometry)(e) : null;
|
|
3389
|
+
}), g = (0, d.computed)(() => t.element.flipHorizontal ? i.value : 0), y = (0, d.computed)(() => t.element.flipVertical ? s.value : 0), k = (0, d.computed)(() => t.element.flipHorizontal ? 0 : i.value), x = (0, d.computed)(() => t.element.flipVertical ? 0 : s.value), b = (0, d.computed)(() => Math.max(3 * o.value, 14)), S = (0, d.computed)(() => v.value && f.value ? f.value.pathData : `M ${g.value} ${y.value} L ${k.value} ${x.value}`), w = (0, d.computed)(() => B(n.value?.connectorStartArrow)), E = (0, d.computed)(() => B(n.value?.connectorEndArrow));
|
|
3390
3390
|
function B(e) {
|
|
3391
3391
|
return e && "none" !== e ? e : void 0;
|
|
3392
3392
|
}
|
|
@@ -3402,7 +3402,7 @@ var ga = (0, d.defineComponent)({
|
|
|
3402
3402
|
overflow: "visible"
|
|
3403
3403
|
};
|
|
3404
3404
|
return e.rotation && (n.transform = `rotate(${e.rotation}deg)`), "number" == typeof e.opacity && (n.opacity = e.opacity), N.value && (n.filter = N.value), e.hidden && (n.display = "none"), n;
|
|
3405
|
-
}), _ = (0, d.computed)(() => w.value ? (0, u.markerPath)(w.value, n.value?.connectorStartArrowWidth, n.value?.connectorStartArrowLength) : null), O = (0, d.computed)(() => E.value ? (0, u.markerPath)(E.value, n.value?.connectorEndArrowWidth, n.value?.connectorEndArrowLength) : null), D = (0, d.computed)(() => (0, u.getLineShadowParams)(n.value)), N = (0, d.computed)(() => (0, u.getLineGlowFilterCss)(n.value)), L = (0, d.computed)(() => `${C.value}-line-shadow`), A = (0, d.computed)(() => (0,
|
|
3405
|
+
}), _ = (0, d.computed)(() => w.value ? (0, u.markerPath)(w.value, n.value?.connectorStartArrowWidth, n.value?.connectorStartArrowLength) : null), O = (0, d.computed)(() => E.value ? (0, u.markerPath)(E.value, n.value?.connectorEndArrowWidth, n.value?.connectorEndArrowLength) : null), D = (0, d.computed)(() => (0, u.getLineShadowParams)(n.value)), N = (0, d.computed)(() => (0, u.getLineGlowFilterCss)(n.value)), L = (0, d.computed)(() => `${C.value}-line-shadow`), A = (0, d.computed)(() => (0, h.hasTextProperties)(t.element) ? t.element : void 0), M = (0, d.computed)(() => A.value?.text?.trim() ?? ""), F = (0, d.computed)(() => A.value?.textSegments), z = (0, d.computed)(() => A.value?.textStyle);
|
|
3406
3406
|
function R(e) {
|
|
3407
3407
|
if (0 !== e) return `translate(0, ${e}px)`;
|
|
3408
3408
|
}
|
|
@@ -3520,7 +3520,7 @@ var ga = (0, d.defineComponent)({
|
|
|
3520
3520
|
}, null, 12, Na))), 128)) : ((0, d.openBlock)(!0), (0, d.createElementBlock)(d.Fragment, { key: 1 }, (0, d.renderList)(p.value, (e, t) => ((0, d.openBlock)(), (0, d.createElementBlock)("line", {
|
|
3521
3521
|
key: t,
|
|
3522
3522
|
x1: g.value,
|
|
3523
|
-
y1:
|
|
3523
|
+
y1: y.value + e,
|
|
3524
3524
|
x2: k.value,
|
|
3525
3525
|
y2: x.value + e,
|
|
3526
3526
|
stroke: l.value,
|
|
@@ -3672,7 +3672,7 @@ var Fa = ["data-element-id"], za = ["viewBox"], Ra = ["opacity"], Va = [
|
|
|
3672
3672
|
props: { element: {} },
|
|
3673
3673
|
setup(e) {
|
|
3674
3674
|
const t = e, n = (0, d.computed)(() => {
|
|
3675
|
-
if (!(0,
|
|
3675
|
+
if (!(0, h.hasShapeProperties)(t.element)) return;
|
|
3676
3676
|
const e = t.element.shapeStyle;
|
|
3677
3677
|
return e?.dagDuotone ? (0, u.getDuotoneSvgFilter)(e, t.element.id) : void 0;
|
|
3678
3678
|
});
|
|
@@ -3811,7 +3811,7 @@ var nr = { style: {
|
|
|
3811
3811
|
key: 1,
|
|
3812
3812
|
run: e.run
|
|
3813
3813
|
}, null, 8, ["run"]))
|
|
3814
|
-
}), pr = ["src", "alt"], mr = ["aria-label"], vr = ["data-anim-id"], fr = { key: 0 }, gr = ["data-anim-id"],
|
|
3814
|
+
}), pr = ["src", "alt"], mr = ["aria-label"], vr = ["data-anim-id"], fr = { key: 0 }, gr = ["data-anim-id"], yr = { key: 0 }, hr = { key: 4 }, kr = (0, d.defineComponent)({
|
|
3815
3815
|
__name: "SlideTextBlock",
|
|
3816
3816
|
props: {
|
|
3817
3817
|
paragraphs: {},
|
|
@@ -3875,11 +3875,11 @@ var nr = { style: {
|
|
|
3875
3875
|
...e.style ?? {},
|
|
3876
3876
|
...(0, d.unref)(u.textBuildSpanStyle)(e)
|
|
3877
3877
|
})
|
|
3878
|
-
}, (0, d.toDisplayString)(e.text), 13, gr))), 128))], 64)) : ((0, d.openBlock)(!0), (0, d.createElementBlock)(d.Fragment, { key: 3 }, (0, d.renderList)(e.runs, (e, t) => ((0, d.openBlock)(), (0, d.createElementBlock)(d.Fragment, { key: t }, ["\n" === e.text ? ((0, d.openBlock)(), (0, d.createElementBlock)("br",
|
|
3878
|
+
}, (0, d.toDisplayString)(e.text), 13, gr))), 128))], 64)) : ((0, d.openBlock)(!0), (0, d.createElementBlock)(d.Fragment, { key: 3 }, (0, d.renderList)(e.runs, (e, t) => ((0, d.openBlock)(), (0, d.createElementBlock)(d.Fragment, { key: t }, ["\n" === e.text ? ((0, d.openBlock)(), (0, d.createElementBlock)("br", yr)) : ((0, d.openBlock)(), (0, d.createBlock)(dr, {
|
|
3879
3879
|
key: 1,
|
|
3880
3880
|
run: e
|
|
3881
3881
|
}, null, 8, ["run"]))], 64))), 128)),
|
|
3882
|
-
e.isEmpty ? ((0, d.openBlock)(), (0, d.createElementBlock)("br",
|
|
3882
|
+
e.isEmpty ? ((0, d.openBlock)(), (0, d.createElementBlock)("br", hr)) : (0, d.createCommentVNode)("", !0)
|
|
3883
3883
|
], 4))), 128))], 4));
|
|
3884
3884
|
}
|
|
3885
3885
|
}), xr = ["src"], br = (0, d.defineComponent)({
|
|
@@ -3894,7 +3894,7 @@ var nr = { style: {
|
|
|
3894
3894
|
}
|
|
3895
3895
|
},
|
|
3896
3896
|
setup(e) {
|
|
3897
|
-
const t = e, n = (0, d.computed)(() => "group" === t.element.type), o = (0, d.computed)(() => (0,
|
|
3897
|
+
const t = e, n = (0, d.computed)(() => "group" === t.element.type), o = (0, d.computed)(() => (0, h.isImageLikeElement)(t.element)), l = (0, d.computed)(() => t.mediaDataUrls ?? /* @__PURE__ */ new Map()), a = (0, d.computed)(() => ll(t.element, t.parentGroupFill)), r = (0, d.computed)(() => (0, u.buildParagraphs)(t.element)), i = (0, d.computed)(() => r.value.some((e) => e.runs.length > 0)), s = (0, d.computed)(() => al(t.element)), c = (0, d.computed)(() => o.value ? (0, u.getImageSrc)(t.element, l.value) : void 0), p = (0, d.computed)(() => (0, u.getImageFitStyle)(t.element)), m = (0, d.computed)(() => (0, u.getGroupChildParentFill)(t.element, t.parentGroupFill)), v = (0, d.computed)(() => n.value ? t.element.children ?? [] : []);
|
|
3898
3898
|
return (t, o) => {
|
|
3899
3899
|
const l = (0, d.resolveComponent)("ReflectionMirrorContent", !0);
|
|
3900
3900
|
return n.value ? ((0, d.openBlock)(), (0, d.createElementBlock)("div", {
|
|
@@ -4180,15 +4180,17 @@ var nr = { style: {
|
|
|
4180
4180
|
},
|
|
4181
4181
|
setup(e) {
|
|
4182
4182
|
const t = e, n = (0, d.computed)(() => {
|
|
4183
|
-
if (!(0,
|
|
4183
|
+
if (!(0, h.isImageLikeElement)(t.element)) return;
|
|
4184
4184
|
const e = (0, u.resolveShapeGeometry)(t.element);
|
|
4185
4185
|
return "borderRadius" === e.kind ? { borderRadius: e.radius } : "clipPath" === e.kind ? { clipPath: e.clipPath } : void 0;
|
|
4186
|
-
}), o = (0, d.computed)(() => (0,
|
|
4187
|
-
...ol(t.element, t.zIndex),
|
|
4186
|
+
}), o = (0, d.computed)(() => (0, h.isImageLikeElement)(t.element) ? (0, u.getCropShapeClipPath)(t.element.cropShape, t.element.width, t.element.height) : void 0), l = (0, d.computed)(() => (0, u.getPictureFrameLayers)(t.element, {
|
|
4188
4187
|
overflow: (0, u.getImageOverflow)(t.element),
|
|
4189
|
-
|
|
4188
|
+
borderRadius: n.value?.borderRadius,
|
|
4190
4189
|
clipPath: n.value?.clipPath ?? o.value
|
|
4191
|
-
})), a = (0, d.computed)(() => (
|
|
4190
|
+
})), a = (0, d.computed)(() => ({
|
|
4191
|
+
...ol(t.element, t.zIndex),
|
|
4192
|
+
...l.value.box
|
|
4193
|
+
})), r = (0, d.computed)(() => l.value.surface ?? { display: "contents" }), i = (0, d.computed)(() => (0, u.getImageFitStyle)(t.element)), s = (0, d.computed)(() => (0, u.getImageFillCounterTransform)(t.element, Boolean(i.value.transform))), c = (0, d.computed)(() => rl(t.element, t.mediaDataUrls)), p = function(e) {
|
|
4192
4194
|
const t = (0, d.ref)((0, u.getCachedNativeImageSize)(e.value));
|
|
4193
4195
|
return (0, d.watch)(e, (n) => {
|
|
4194
4196
|
if (!n) return void (t.value = void 0);
|
|
@@ -4197,79 +4199,84 @@ var nr = { style: {
|
|
|
4197
4199
|
o && e.value === n && (t.value = o);
|
|
4198
4200
|
}).catch(() => {}));
|
|
4199
4201
|
}, { immediate: !0 }), t;
|
|
4200
|
-
}(
|
|
4202
|
+
}(c), m = (0, d.computed)(() => (0, u.getImageTilingStyle)(t.element, p.value)), v = (0, d.computed)(() => (0, u.getComputedImageStyle)(t.element)), f = (0, d.computed)(() => {
|
|
4201
4203
|
const e = t.element.imageEffects;
|
|
4202
4204
|
return (0, u.getImageColorWashStyle)(e?.colorWash);
|
|
4203
|
-
}), { displaySrc:
|
|
4204
|
-
src:
|
|
4205
|
+
}), { displaySrc: y } = Za({
|
|
4206
|
+
src: c,
|
|
4205
4207
|
clrChange: (0, d.computed)(() => {
|
|
4206
4208
|
const n = t.element.imageEffects?.clrChange;
|
|
4207
4209
|
return n?.clrFrom ? n : void 0;
|
|
4208
4210
|
})
|
|
4209
|
-
}),
|
|
4211
|
+
}), k = (0, d.computed)(() => t.interactive ? null : { pointerEvents: "none" }), x = il(() => t.element, () => t.interactive, () => t.presenting);
|
|
4210
4212
|
return (t, n) => ((0, d.openBlock)(), (0, d.createElementBlock)("div", {
|
|
4211
4213
|
class: "pptx-vue-element pptx-vue-image",
|
|
4212
|
-
style: (0, d.normalizeStyle)([
|
|
4214
|
+
style: (0, d.normalizeStyle)([a.value, k.value]),
|
|
4213
4215
|
"data-element-id": e.element.id,
|
|
4214
4216
|
"data-pptx-element": e.interactive || e.marked ? "true" : void 0
|
|
4215
4217
|
}, [
|
|
4216
|
-
(0, d.unref)(
|
|
4218
|
+
(0, d.unref)(x) ? ((0, d.openBlock)(), (0, d.createElementBlock)("div", {
|
|
4217
4219
|
key: 0,
|
|
4218
4220
|
"aria-hidden": "true",
|
|
4219
4221
|
"data-pptx-hit-target": "true",
|
|
4220
|
-
style: (0, d.normalizeStyle)((0, d.unref)(
|
|
4222
|
+
style: (0, d.normalizeStyle)((0, d.unref)(x))
|
|
4221
4223
|
}, null, 4)) : (0, d.createCommentVNode)("", !0),
|
|
4222
|
-
(
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
position: "absolute",
|
|
4224
|
+
(0, d.createElementVNode)("div", {
|
|
4225
|
+
class: "pptx-vue-image-surface",
|
|
4226
|
+
style: (0, d.normalizeStyle)(r.value)
|
|
4227
|
+
}, [
|
|
4228
|
+
((0, d.openBlock)(!0), (0, d.createElementBlock)(d.Fragment, null, (0, d.renderList)(v.value.svgFilters, (e) => ((0, d.openBlock)(), (0, d.createElementBlock)("svg", {
|
|
4229
|
+
key: e.id,
|
|
4229
4230
|
width: "0",
|
|
4230
4231
|
height: "0",
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4232
|
+
"aria-hidden": "true",
|
|
4233
|
+
style: {
|
|
4234
|
+
position: "absolute",
|
|
4235
|
+
width: "0",
|
|
4236
|
+
height: "0",
|
|
4237
|
+
overflow: "hidden"
|
|
4238
|
+
}
|
|
4239
|
+
}, [(0, d.createElementVNode)("defs", null, [(0, d.createElementVNode)("filter", {
|
|
4240
|
+
id: e.id,
|
|
4241
|
+
"color-interpolation-filters": "sRGB",
|
|
4242
|
+
innerHTML: e.markup
|
|
4243
|
+
}, null, 8, Wr)])]))), 128)),
|
|
4244
|
+
m.value ? ((0, d.openBlock)(), (0, d.createElementBlock)("div", {
|
|
4245
|
+
key: 0,
|
|
4246
|
+
class: "pptx-vue-image-tile",
|
|
4247
|
+
style: (0, d.normalizeStyle)({
|
|
4248
|
+
...m.value,
|
|
4249
|
+
filter: v.value.filter,
|
|
4250
|
+
opacity: v.value.opacity
|
|
4251
|
+
})
|
|
4252
|
+
}, null, 4)) : c.value ? ((0, d.openBlock)(), (0, d.createElementBlock)("img", {
|
|
4253
|
+
key: 1,
|
|
4254
|
+
src: (0, d.unref)(y) ?? c.value,
|
|
4255
|
+
alt: "",
|
|
4256
|
+
draggable: "false",
|
|
4257
|
+
style: (0, d.normalizeStyle)({
|
|
4258
|
+
...i.value,
|
|
4259
|
+
display: "block",
|
|
4260
|
+
filter: v.value.filter,
|
|
4261
|
+
opacity: v.value.opacity,
|
|
4262
|
+
...s.value ? {
|
|
4263
|
+
transform: s.value,
|
|
4264
|
+
transformOrigin: "center"
|
|
4265
|
+
} : {}
|
|
4266
|
+
})
|
|
4267
|
+
}, null, 12, Ur)) : (0, d.createCommentVNode)("", !0),
|
|
4268
|
+
f.value ? ((0, d.openBlock)(), (0, d.createElementBlock)("div", {
|
|
4269
|
+
key: 2,
|
|
4270
|
+
class: "pptx-vue-image-color-wash",
|
|
4271
|
+
style: (0, d.normalizeStyle)({
|
|
4272
|
+
position: "absolute",
|
|
4273
|
+
inset: "0",
|
|
4274
|
+
pointerEvents: "none",
|
|
4275
|
+
backgroundColor: f.value.backgroundColor,
|
|
4276
|
+
opacity: f.value.opacity
|
|
4277
|
+
})
|
|
4278
|
+
}, null, 4)) : (0, d.createCommentVNode)("", !0)
|
|
4279
|
+
], 4),
|
|
4273
4280
|
(0, d.createVNode)(jr, {
|
|
4274
4281
|
element: e.element,
|
|
4275
4282
|
"media-data-urls": e.mediaDataUrls
|
|
@@ -4371,7 +4378,7 @@ var Gr = ["data-element-id", "data-pptx-element"], Kr = [
|
|
|
4371
4378
|
})), p = (0, d.computed)(() => rl(t.element, t.mediaDataUrls)), m = (0, d.computed)(() => {
|
|
4372
4379
|
const e = t.element;
|
|
4373
4380
|
if ("media" === e.type) return e.mediaData ?? (e.mediaPath ? t.mediaDataUrls.get(e.mediaPath) : void 0);
|
|
4374
|
-
}), v = (0, d.computed)(() => "media" === t.element.type ? t.element.mediaType : void 0), f = (0, d.computed)(() => (0, u.getOnlineVideoEmbed)(t.element)?.embedUrl), g = (0, d.computed)(() => "media" === t.element.type ? t.element.posterFrameData ?? p.value : p.value),
|
|
4381
|
+
}), v = (0, d.computed)(() => "media" === t.element.type ? t.element.mediaType : void 0), f = (0, d.computed)(() => (0, u.getOnlineVideoEmbed)(t.element)?.embedUrl), g = (0, d.computed)(() => "media" === t.element.type ? t.element.posterFrameData ?? p.value : p.value), y = (0, d.computed)(() => (0, u.mediaPlaybackAttributes)(a.value).loop), h = (0, d.computed)(() => "media" === t.element.type && !0 === t.element.autoPlay), k = (0, d.computed)(() => (0, u.mediaSurfaceOf)({
|
|
4375
4382
|
interactive: !0 === t.interactive,
|
|
4376
4383
|
presenting: !0 === t.presenting
|
|
4377
4384
|
})), x = (0, d.computed)(() => (0, u.mediaTransportVisible)({
|
|
@@ -4414,9 +4421,9 @@ var Gr = ["data-element-id", "data-pptx-element"], Kr = [
|
|
|
4414
4421
|
src: m.value,
|
|
4415
4422
|
controls: x.value,
|
|
4416
4423
|
poster: g.value,
|
|
4417
|
-
loop:
|
|
4418
|
-
autoplay:
|
|
4419
|
-
muted:
|
|
4424
|
+
loop: y.value,
|
|
4425
|
+
autoplay: h.value,
|
|
4426
|
+
muted: h.value && !e.presenting,
|
|
4420
4427
|
preload: "metadata",
|
|
4421
4428
|
playsinline: "",
|
|
4422
4429
|
style: (0, d.normalizeStyle)({
|
|
@@ -4432,8 +4439,8 @@ var Gr = ["data-element-id", "data-pptx-element"], Kr = [
|
|
|
4432
4439
|
ref: o,
|
|
4433
4440
|
src: m.value,
|
|
4434
4441
|
controls: x.value,
|
|
4435
|
-
loop:
|
|
4436
|
-
autoplay:
|
|
4442
|
+
loop: y.value,
|
|
4443
|
+
autoplay: h.value,
|
|
4437
4444
|
style: (0, d.normalizeStyle)({
|
|
4438
4445
|
width: "100%",
|
|
4439
4446
|
pointerEvents: e.interactive ? "none" : "auto"
|
|
@@ -4504,7 +4511,7 @@ var Gr = ["data-element-id", "data-pptx-element"], Kr = [
|
|
|
4504
4511
|
setup(e) {
|
|
4505
4512
|
const t = e, n = (0, d.computed)(() => ol(t.element, t.zIndex)), o = il(() => t.element, () => t.interactive, () => t.presenting), l = (0, d.computed)(() => {
|
|
4506
4513
|
const e = t.element;
|
|
4507
|
-
if (!(0,
|
|
4514
|
+
if (!(0, h.hasTextProperties)(e)) return [];
|
|
4508
4515
|
const n = e.textSegments ?? [], o = [];
|
|
4509
4516
|
return n.forEach((t, n) => {
|
|
4510
4517
|
if (!t.equationXml) return;
|
|
@@ -4577,7 +4584,7 @@ var Gr = ["data-element-id", "data-pptx-element"], Kr = [
|
|
|
4577
4584
|
style: (0, d.normalizeStyle)(a.value)
|
|
4578
4585
|
}, null, 4)) : (0, d.createCommentVNode)("", !0)], 4)) : (0, d.createCommentVNode)("", !0);
|
|
4579
4586
|
}
|
|
4580
|
-
}),
|
|
4587
|
+
}), yi = ["data-element-id"], hi = ["viewBox"], ki = ["opacity"], xi = [
|
|
4581
4588
|
"cx",
|
|
4582
4589
|
"cy",
|
|
4583
4590
|
"rx",
|
|
@@ -4605,7 +4612,7 @@ var Gr = ["data-element-id", "data-pptx-element"], Kr = [
|
|
|
4605
4612
|
presenting: { type: Boolean }
|
|
4606
4613
|
},
|
|
4607
4614
|
setup(e) {
|
|
4608
|
-
const t = e, n = (0, d.computed)(() => ol(t.element, t.zIndex)), o = il(() => t.element, () => t.interactive, () => t.presenting), l = (0, d.computed)(() => (0,
|
|
4615
|
+
const t = e, n = (0, d.computed)(() => ol(t.element, t.zIndex)), o = il(() => t.element, () => t.interactive, () => t.presenting), l = (0, d.computed)(() => (0, h.isInkElement)(t.element) ? t.element : void 0), a = (0, d.computed)(() => Math.max(t.element.width, 1)), r = (0, d.computed)(() => Math.max(t.element.height, 1)), i = (0, d.computed)(() => {
|
|
4609
4616
|
const e = l.value;
|
|
4610
4617
|
return e ? (0, u.buildInkGroupStrokes)(e, {
|
|
4611
4618
|
color: nl,
|
|
@@ -4678,7 +4685,7 @@ var Gr = ["data-element-id", "data-pptx-element"], Kr = [
|
|
|
4678
4685
|
"stroke-linejoin": "round",
|
|
4679
4686
|
"vector-effect": "non-scaling-stroke",
|
|
4680
4687
|
style: (0, d.normalizeStyle)(p(t, e.blendMode))
|
|
4681
|
-
}, null, 12, wi))], 64))), 128))], 8,
|
|
4688
|
+
}, null, 12, wi))], 64))), 128))], 8, hi)) : (0, d.createCommentVNode)("", !0)], 12, yi));
|
|
4682
4689
|
}
|
|
4683
4690
|
}), [["__scopeId", "data-v-f3e260df"]]);
|
|
4684
4691
|
function Ci(e) {
|
|
@@ -4826,9 +4833,9 @@ var Ii = ["data-element-id"], Pi = ["src", "alt"], Ti = {
|
|
|
4826
4833
|
}))), r = (0, d.computed)(() => "ole" === t.element.type ? t.element : void 0), i = (0, d.computed)(() => {
|
|
4827
4834
|
const e = r.value;
|
|
4828
4835
|
return e ? (0, u.resolveOleType)(e) : "unknown";
|
|
4829
|
-
}), s = (0, d.computed)(() => (0, u.getOleTypeColor)(i.value)), c = (0, d.computed)(() => (0, u.getOleTypeLabel)(i.value)), p = (0, d.computed)(() => (0, u.getOleIconShapes)(i.value)), m = (0, d.computed)(() => r.value?.previewImageData), v = (0, d.computed)(() => r.value?.fileName), f = (0, d.computed)(() => r.value?.oleEmbeddedData), g = (0, d.computed)(() => r.value?.oleEmbeddedFileName ?? v.value ?? `${c.value}`),
|
|
4836
|
+
}), s = (0, d.computed)(() => (0, u.getOleTypeColor)(i.value)), c = (0, d.computed)(() => (0, u.getOleTypeLabel)(i.value)), p = (0, d.computed)(() => (0, u.getOleIconShapes)(i.value)), m = (0, d.computed)(() => r.value?.previewImageData), v = (0, d.computed)(() => r.value?.fileName), f = (0, d.computed)(() => r.value?.oleEmbeddedData), g = (0, d.computed)(() => r.value?.oleEmbeddedFileName ?? v.value ?? `${c.value}`), y = (0, d.computed)(() => r.value ? (0, u.getOleDisplayName)(r.value) : c.value), h = (0, d.computed)(() => (0, u.formatBytes)(r.value?.oleEmbeddedByteSize)), k = (0, d.computed)(() => r.value?.oleEmbeddedMimeType), x = (0, d.computed)(() => Boolean(f.value) && (0, u.isBrowserOpenableMime)(k.value)), b = (0, d.computed)(() => r.value?.oleProgId), S = (0, d.computed)(() => {
|
|
4830
4837
|
const e = [c.value], t = r.value?.oleEmbeddedFileName ?? v.value;
|
|
4831
|
-
return t && e.push(t),
|
|
4838
|
+
return t && e.push(t), h.value && e.push(h.value), b.value && e.push(b.value), e;
|
|
4832
4839
|
}), w = (0, d.computed)(() => S.value.join("\n")), E = (0, d.computed)(() => r.value ? (0, u.getOleAriaLabel)(r.value) : c.value);
|
|
4833
4840
|
function B() {
|
|
4834
4841
|
const e = f.value;
|
|
@@ -4893,7 +4900,7 @@ var Ii = ["data-element-id"], Pi = ["src", "alt"], Ti = {
|
|
|
4893
4900
|
(0, d.createElementVNode)("span", {
|
|
4894
4901
|
class: "pptx-vue-ole-name",
|
|
4895
4902
|
style: (0, d.normalizeStyle)({ color: s.value })
|
|
4896
|
-
}, (0, d.toDisplayString)(
|
|
4903
|
+
}, (0, d.toDisplayString)(y.value), 5),
|
|
4897
4904
|
v.value ? ((0, d.openBlock)(), (0, d.createElementBlock)("span", $i, (0, d.toDisplayString)(c.value), 1)) : (0, d.createCommentVNode)("", !0)
|
|
4898
4905
|
], 4)),
|
|
4899
4906
|
f.value && a.value ? ((0, d.openBlock)(), (0, d.createElementBlock)("div", {
|
|
@@ -4903,7 +4910,7 @@ var Ii = ["data-element-id"], Pi = ["src", "alt"], Ti = {
|
|
|
4903
4910
|
onMousedown: C,
|
|
4904
4911
|
onClick: C
|
|
4905
4912
|
}, [
|
|
4906
|
-
|
|
4913
|
+
h.value ? ((0, d.openBlock)(), (0, d.createElementBlock)("span", Wi, (0, d.toDisplayString)(h.value), 1)) : (0, d.createCommentVNode)("", !0),
|
|
4907
4914
|
(0, d.createElementVNode)("a", {
|
|
4908
4915
|
class: "pptx-vue-ole-action",
|
|
4909
4916
|
href: f.value,
|
|
@@ -5052,14 +5059,14 @@ var ns = ["aria-label", "onClick"], os = (0, d.defineComponent)({
|
|
|
5052
5059
|
"stroke",
|
|
5053
5060
|
"stroke-width",
|
|
5054
5061
|
"transform"
|
|
5055
|
-
],
|
|
5062
|
+
], ys = [
|
|
5056
5063
|
"d",
|
|
5057
5064
|
"fill",
|
|
5058
5065
|
"fill-opacity",
|
|
5059
5066
|
"stroke",
|
|
5060
5067
|
"stroke-width",
|
|
5061
5068
|
"transform"
|
|
5062
|
-
],
|
|
5069
|
+
], hs = [
|
|
5063
5070
|
"x",
|
|
5064
5071
|
"y",
|
|
5065
5072
|
"width",
|
|
@@ -5148,8 +5155,8 @@ var ns = ["aria-label", "onClick"], os = (0, d.defineComponent)({
|
|
|
5148
5155
|
function i(e) {
|
|
5149
5156
|
return e ? r.value.get(e) : void 0;
|
|
5150
5157
|
}
|
|
5151
|
-
const s = (0, d.computed)(() => (0, u.resolvePalette)(o.value)), c = (0, d.computed)(() => o.value?.style ?? "flat"), p = (0, d.computed)(() => o.value?.chrome), m = (0, d.computed)(() => ol(t.element, t.zIndex)), v = (0, d.computed)(() => t.interactive ? null : { pointerEvents: "none" }), f = il(() => t.element, () => t.interactive, () => t.presenting), g = (0, d.computed)(() => (0, u.buildChromeStyle)(p.value)),
|
|
5152
|
-
const e = S.value, n = (0, u.resolveRevealedDrawingShapeNodeIds)(
|
|
5158
|
+
const s = (0, d.computed)(() => (0, u.resolvePalette)(o.value)), c = (0, d.computed)(() => o.value?.style ?? "flat"), p = (0, d.computed)(() => o.value?.chrome), m = (0, d.computed)(() => ol(t.element, t.zIndex)), v = (0, d.computed)(() => t.interactive ? null : { pointerEvents: "none" }), f = il(() => t.element, () => t.interactive, () => t.presenting), g = (0, d.computed)(() => (0, u.buildChromeStyle)(p.value)), y = (0, d.computed)(() => o.value?.drawingShapes ?? []), k = (0, d.computed)(() => y.value.length > 0), x = (0, d.computed)(() => (0, u.resolveRevealedSmartArtNodes)(l.value, t.animationState, o.value?.presLayoutVars)), b = (0, d.computed)(() => x.value.nodes), S = (0, d.computed)(() => 0 === y.value.length ? y.value : (0, u.resolveRevealedDrawingShapes)(y.value, l.value, t.animationState)), w = (0, d.computed)(() => (0, u.computeDrawingViewBox)(y.value)), E = (0, d.computed)(() => {
|
|
5159
|
+
const e = S.value, n = (0, u.resolveRevealedDrawingShapeNodeIds)(y.value, e, l.value);
|
|
5153
5160
|
return (0, u.projectDrawingShapes)(t.element.id, e, w.value, s.value, c.value).map((e, t) => ({
|
|
5154
5161
|
...e,
|
|
5155
5162
|
nodeId: n[t]
|
|
@@ -5294,7 +5301,7 @@ var ns = ["aria-label", "onClick"], os = (0, d.defineComponent)({
|
|
|
5294
5301
|
stroke: e.stroke,
|
|
5295
5302
|
"stroke-width": e.strokeWidth,
|
|
5296
5303
|
transform: e.pathTransform
|
|
5297
|
-
}, null, 8,
|
|
5304
|
+
}, null, 8, ys)) : ((0, d.openBlock)(), (0, d.createElementBlock)("rect", {
|
|
5298
5305
|
key: 5,
|
|
5299
5306
|
x: e.x,
|
|
5300
5307
|
y: e.y,
|
|
@@ -5306,7 +5313,7 @@ var ns = ["aria-label", "onClick"], os = (0, d.defineComponent)({
|
|
|
5306
5313
|
stroke: e.stroke,
|
|
5307
5314
|
"stroke-width": e.strokeWidth,
|
|
5308
5315
|
transform: e.transform
|
|
5309
|
-
}, null, 8,
|
|
5316
|
+
}, null, 8, hs)),
|
|
5310
5317
|
e.textLines.length > 0 ? ((0, d.openBlock)(), (0, d.createElementBlock)("text", {
|
|
5311
5318
|
key: 6,
|
|
5312
5319
|
x: e.textX,
|
|
@@ -5403,7 +5410,7 @@ var ns = ["aria-label", "onClick"], os = (0, d.defineComponent)({
|
|
|
5403
5410
|
onPickFill: r[0] || (r[0] = (e) => function(e, n) {
|
|
5404
5411
|
const l = o.value;
|
|
5405
5412
|
if (!l || !O) return;
|
|
5406
|
-
const a = (0,
|
|
5413
|
+
const a = (0, h.setSmartArtNodeStyle)(l, e, { fillColor: n });
|
|
5407
5414
|
a !== l && O.commitStyle?.(t.element.id, { smartArtData: a });
|
|
5408
5415
|
}((0, d.unref)(z), e))
|
|
5409
5416
|
}, null, 8, ["palette"])], 4)) : (0, d.createCommentVNode)("", !0),
|
|
@@ -5455,7 +5462,7 @@ var ns = ["aria-label", "onClick"], os = (0, d.defineComponent)({
|
|
|
5455
5462
|
textStyleOverrideCss: {}
|
|
5456
5463
|
},
|
|
5457
5464
|
setup(e) {
|
|
5458
|
-
const t = e, { t: n } = Ho(), o = (0, d.computed)(() => "smartArt" === t.element.type ? t.element.smartArtData : void 0), l = pl(), a = (0, d.computed)(() => (0, u.resolveSmartArtThreeViewSpec)(t.element, l.value.smartArt3D)), r = (0, d.computed)(() => (0, u.elementInLocalFrame)(t.element)), i = (0, d.ref)(null), s = (0, d.ref)(null), c = (0, d.computed)(() => ol(t.element, t.zIndex)), p = il(() => t.element, () => t.interactive, () => t.presenting), m = Qi(), v = (0, d.computed)(() => Boolean(m?.canEdit())), f = Zi(), g = (0, d.computed)(() => (0, u.resolvePalette)(o.value)),
|
|
5465
|
+
const t = e, { t: n } = Ho(), o = (0, d.computed)(() => "smartArt" === t.element.type ? t.element.smartArtData : void 0), l = pl(), a = (0, d.computed)(() => (0, u.resolveSmartArtThreeViewSpec)(t.element, l.value.smartArt3D)), r = (0, d.computed)(() => (0, u.elementInLocalFrame)(t.element)), i = (0, d.ref)(null), s = (0, d.ref)(null), c = (0, d.computed)(() => ol(t.element, t.zIndex)), p = il(() => t.element, () => t.interactive, () => t.presenting), m = Qi(), v = (0, d.computed)(() => Boolean(m?.canEdit())), f = Zi(), g = (0, d.computed)(() => (0, u.resolvePalette)(o.value)), y = (0, d.ref)(null), { hoveredNodeId: h, hoveredNodeRect: k, onMouseMove: x, onMouseLeave: b } = ts(i), S = (0, d.computed)(() => {
|
|
5459
5466
|
const e = k.value, t = i.value;
|
|
5460
5467
|
if (!e || !t) return;
|
|
5461
5468
|
const n = Math.max(0, t.clientWidth - 168), o = Math.max(0, t.clientHeight - 40);
|
|
@@ -5527,25 +5534,25 @@ var ns = ["aria-label", "onClick"], os = (0, d.defineComponent)({
|
|
|
5527
5534
|
(0, d.createElementVNode)("div", {
|
|
5528
5535
|
class: "pptx-vue-smartart-3d-hittest",
|
|
5529
5536
|
onDblclick: (0, d.withModifiers)(E, ["stop"]),
|
|
5530
|
-
onMousemove: l[0] || (l[0] = (e) => (0, d.unref)(x)(e,
|
|
5537
|
+
onMousemove: l[0] || (l[0] = (e) => (0, d.unref)(x)(e, y.value)),
|
|
5531
5538
|
onMouseleave: w
|
|
5532
5539
|
}, [(0, d.createVNode)(Ns, {
|
|
5533
5540
|
element: r.value,
|
|
5534
5541
|
zIndex: 0
|
|
5535
5542
|
}, null, 8, ["element"])], 32),
|
|
5536
|
-
(0, d.unref)(
|
|
5543
|
+
(0, d.unref)(h) && !(0, d.unref)(f).isEditing.value && (0, d.unref)(k) ? ((0, d.openBlock)(), (0, d.createElementBlock)("div", {
|
|
5537
5544
|
key: 0,
|
|
5538
5545
|
ref_key: "styleBarEl",
|
|
5539
|
-
ref:
|
|
5546
|
+
ref: y,
|
|
5540
5547
|
style: (0, d.normalizeStyle)(S.value),
|
|
5541
|
-
onMousemove: l[2] || (l[2] = (e) => (0, d.unref)(x)(e,
|
|
5548
|
+
onMousemove: l[2] || (l[2] = (e) => (0, d.unref)(x)(e, y.value)),
|
|
5542
5549
|
onMouseleave: w
|
|
5543
5550
|
}, [(0, d.createVNode)(os, {
|
|
5544
5551
|
palette: g.value,
|
|
5545
5552
|
onPickFill: l[1] || (l[1] = (e) => function(e, n) {
|
|
5546
5553
|
const o = (0, u.commitSmartArtNodeFill)(t.element, e, n);
|
|
5547
5554
|
o && m?.commitStyle?.(t.element.id, { smartArtData: o });
|
|
5548
|
-
}((0, d.unref)(
|
|
5555
|
+
}((0, d.unref)(h), e))
|
|
5549
5556
|
}, null, 8, ["palette"])], 36)) : (0, d.createCommentVNode)("", !0),
|
|
5550
5557
|
(0, d.unref)(f).isEditing.value && (0, d.unref)(f).rect.value ? (0, d.withDirectives)(((0, d.openBlock)(), (0, d.createElementBlock)("textarea", {
|
|
5551
5558
|
key: 1,
|
|
@@ -5849,12 +5856,12 @@ var Gs = Xo((0, d.defineComponent)({
|
|
|
5849
5856
|
function f(e) {
|
|
5850
5857
|
return (0, u.cellRunStyle)(e);
|
|
5851
5858
|
}
|
|
5852
|
-
const g = (0, d.inject)(zs, void 0),
|
|
5859
|
+
const g = (0, d.inject)(zs, void 0), y = js(), h = Ws(() => t.element.id, () => r.value);
|
|
5853
5860
|
function k(e) {
|
|
5854
|
-
|
|
5861
|
+
y?.resizeColumns(t.element.id, e);
|
|
5855
5862
|
}
|
|
5856
5863
|
function x(e, n) {
|
|
5857
|
-
|
|
5864
|
+
y?.resizeRow(t.element.id, e, n);
|
|
5858
5865
|
}
|
|
5859
5866
|
const b = (0, d.ref)(null), S = (0, d.ref)(""), w = (0, d.ref)(null);
|
|
5860
5867
|
function E(e) {
|
|
@@ -5928,8 +5935,8 @@ var Gs = Xo((0, d.defineComponent)({
|
|
|
5928
5935
|
}, [((0, d.openBlock)(!0), (0, d.createElementBlock)(d.Fragment, null, (0, d.renderList)(e.cells, (e) => ((0, d.openBlock)(), (0, d.createElementBlock)("td", {
|
|
5929
5936
|
key: e.key,
|
|
5930
5937
|
class: (0, d.normalizeClass)(["pptx-vue-table__cell", {
|
|
5931
|
-
"pptx-vue-table__cell--selected": (0, d.unref)(
|
|
5932
|
-
"pptx-vue-table__cell--in-selection": (0, d.unref)(
|
|
5938
|
+
"pptx-vue-table__cell--selected": (0, d.unref)(h).isCellSelected(e.rowIndex, e.colIndex),
|
|
5939
|
+
"pptx-vue-table__cell--in-selection": (0, d.unref)(h).isCellInSelection(e.rowIndex, e.colIndex) && !(0, d.unref)(h).isCellSelected(e.rowIndex, e.colIndex),
|
|
5933
5940
|
"pptx-vue-table__cell--editable": B.value
|
|
5934
5941
|
}]),
|
|
5935
5942
|
colspan: e.colSpan,
|
|
@@ -5939,14 +5946,14 @@ var Gs = Xo((0, d.defineComponent)({
|
|
|
5939
5946
|
t = e, B.value && "extend" === (0, u.tableCellPointerIntent)({
|
|
5940
5947
|
isTableCell: !0,
|
|
5941
5948
|
shiftKey: t.shiftKey,
|
|
5942
|
-
elementSelected: null !==
|
|
5943
|
-
rangeOnSameElement: null !==
|
|
5949
|
+
elementSelected: null !== h.activeSelection.value,
|
|
5950
|
+
rangeOnSameElement: null !== h.activeSelection.value
|
|
5944
5951
|
}) && t.stopPropagation();
|
|
5945
5952
|
return;
|
|
5946
5953
|
var t;
|
|
5947
5954
|
}),
|
|
5948
5955
|
onClick: (t) => function(e, t) {
|
|
5949
|
-
B.value && (e.stopPropagation(),
|
|
5956
|
+
B.value && (e.stopPropagation(), h.selectCell(t.rowIndex, t.colIndex, e.shiftKey));
|
|
5950
5957
|
}(t, e),
|
|
5951
5958
|
onDblclick: (t) => I(t, e)
|
|
5952
5959
|
}, [e.diagonals ? ((0, d.openBlock)(), (0, d.createElementBlock)("svg", Xs, [e.diagonals.diagDownColor && e.diagonals.diagDownWidth ? ((0, d.openBlock)(), (0, d.createElementBlock)("line", {
|
|
@@ -6087,7 +6094,7 @@ var sc = ["d", "fill"], cc = [
|
|
|
6087
6094
|
"width",
|
|
6088
6095
|
"height",
|
|
6089
6096
|
"viewBox"
|
|
6090
|
-
],
|
|
6097
|
+
], yc = ["id", "d"], hc = [
|
|
6091
6098
|
"font-size",
|
|
6092
6099
|
"font-family",
|
|
6093
6100
|
"fill",
|
|
@@ -6111,7 +6118,7 @@ var sc = ["d", "fill"], cc = [
|
|
|
6111
6118
|
zIndex: {}
|
|
6112
6119
|
},
|
|
6113
6120
|
setup(e) {
|
|
6114
|
-
const t = e, n = (0, d.computed)(() => (0,
|
|
6121
|
+
const t = e, n = (0, d.computed)(() => (0, h.hasTextProperties)(t.element) ? t.element : null), o = (0, d.computed)(() => n.value?.textStyle?.textWarpPreset), l = (0, d.computed)(() => Boolean(n.value) && (0, u.shouldUseSvgWarp)(o.value)), a = (0, d.computed)(() => Math.max(t.element.width, 1)), r = (0, d.computed)(() => Math.max(t.element.height, 1)), i = Jo(), s = (0, d.computed)(() => {
|
|
6115
6122
|
const e = n.value;
|
|
6116
6123
|
if (!e) return [];
|
|
6117
6124
|
const t = Qo(i);
|
|
@@ -6140,7 +6147,7 @@ var sc = ["d", "fill"], cc = [
|
|
|
6140
6147
|
textAnchor: "start"
|
|
6141
6148
|
};
|
|
6142
6149
|
}
|
|
6143
|
-
}), f = (0, d.computed)(() => n.value?.textStyle?.fontSize ?? 24), g = (0, d.computed)(() => n.value?.textStyle?.fontFamily ? (0,
|
|
6150
|
+
}), f = (0, d.computed)(() => n.value?.textStyle?.fontSize ?? 24), g = (0, d.computed)(() => n.value?.textStyle?.fontFamily ? (0, h.getSubstituteFontFamily)(n.value.textStyle.fontFamily) : u.DEFAULT_FONT_FAMILY), y = (0, d.computed)(() => (0, u.normalizeHexColor)(n.value?.textStyle?.color, bc)), k = (0, d.computed)(() => n.value?.textStyle?.bold ? 700 : 400), x = (0, d.computed)(() => n.value?.textStyle?.italic ? "italic" : "normal");
|
|
6144
6151
|
function b(e) {
|
|
6145
6152
|
const t = e.style ?? {}, o = [];
|
|
6146
6153
|
(t.underline || t.hyperlink) && o.push("underline"), t.strikethrough && o.push("line-through");
|
|
@@ -6150,7 +6157,7 @@ var sc = ["d", "fill"], cc = [
|
|
|
6150
6157
|
fontSize: t.fontSize ?? l?.fontSize ?? 24,
|
|
6151
6158
|
fontWeight: t.bold ? 700 : 400,
|
|
6152
6159
|
fontStyle: t.italic ? "italic" : "normal",
|
|
6153
|
-
fontFamily: r ? (0,
|
|
6160
|
+
fontFamily: r ? (0, h.getSubstituteFontFamily)(r) : u.DEFAULT_FONT_FAMILY,
|
|
6154
6161
|
textDecoration: o.length > 0 ? o.join(" ") : void 0
|
|
6155
6162
|
};
|
|
6156
6163
|
}
|
|
@@ -6162,7 +6169,7 @@ var sc = ["d", "fill"], cc = [
|
|
|
6162
6169
|
function m(e) {
|
|
6163
6170
|
const n = e.style ?? {}, o = t.value?.textStyle, l = n.fontFamily ?? o?.fontFamily;
|
|
6164
6171
|
return {
|
|
6165
|
-
fontFamily: l ? (0,
|
|
6172
|
+
fontFamily: l ? (0, h.getSubstituteFontFamily)(l) : s,
|
|
6166
6173
|
fontSizePx: n.fontSize ?? o?.fontSize ?? c,
|
|
6167
6174
|
bold: n.bold ?? o?.bold,
|
|
6168
6175
|
italic: n.italic ?? o?.italic
|
|
@@ -6231,11 +6238,11 @@ var sc = ["d", "fill"], cc = [
|
|
|
6231
6238
|
key: `def-${t}`,
|
|
6232
6239
|
d: S(t),
|
|
6233
6240
|
fill: "none"
|
|
6234
|
-
}, null, 8,
|
|
6241
|
+
}, null, 8, yc))), 128))]), ((0, d.openBlock)(!0), (0, d.createElementBlock)(d.Fragment, null, (0, d.renderList)(s.value, (e, t) => ((0, d.openBlock)(), (0, d.createElementBlock)("text", {
|
|
6235
6242
|
key: `txt-${t}`,
|
|
6236
6243
|
"font-size": f.value,
|
|
6237
6244
|
"font-family": g.value,
|
|
6238
|
-
fill:
|
|
6245
|
+
fill: y.value,
|
|
6239
6246
|
"font-weight": k.value,
|
|
6240
6247
|
"font-style": x.value
|
|
6241
6248
|
}, [(0, d.createElementVNode)("textPath", {
|
|
@@ -6250,7 +6257,7 @@ var sc = ["d", "fill"], cc = [
|
|
|
6250
6257
|
"font-style": b(e).fontStyle,
|
|
6251
6258
|
"font-family": b(e).fontFamily,
|
|
6252
6259
|
"text-decoration": b(e).textDecoration
|
|
6253
|
-
}, (0, d.toDisplayString)(e.text), 9, xc))), 128))], 8, kc)], 8,
|
|
6260
|
+
}, (0, d.toDisplayString)(e.text), 9, xc))), 128))], 8, kc)], 8, hc))), 128))], 12, gc)) : (0, d.createCommentVNode)("", !0);
|
|
6254
6261
|
}
|
|
6255
6262
|
}), [["__scopeId", "data-v-51c1eadc"]]), wc = Symbol("pptx-vue-zoom-navigation");
|
|
6256
6263
|
function Ec(e) {
|
|
@@ -6298,7 +6305,7 @@ var Pc = [
|
|
|
6298
6305
|
presenting: { type: Boolean }
|
|
6299
6306
|
},
|
|
6300
6307
|
setup(e) {
|
|
6301
|
-
const t = e, { t: n } = Ho(), o = (0, d.computed)(() => ol(t.element, t.zIndex)), l = il(() => t.element, () => t.interactive, () => t.presenting), a = (0, d.computed)(() => (0,
|
|
6308
|
+
const t = e, { t: n } = Ho(), o = (0, d.computed)(() => ol(t.element, t.zIndex)), l = il(() => t.element, () => t.interactive, () => t.presenting), a = (0, d.computed)(() => (0, h.isZoomElement)(t.element) ? t.element : void 0), r = (0, d.computed)(() => a.value?.imageData), i = (0, d.computed)(() => a.value?.targetSlideIndex ?? 0), s = (0, d.computed)(() => a.value?.zoomType ?? "slide"), c = (0, d.computed)(() => a.value?.targetSectionId), p = (0, d.computed)(() => "section" === s.value ? n("pptx.zoom.sectionZoom") : n("pptx.zoom.slideZoom")), m = (0, d.inject)(Bc, void 0), v = (0, d.computed)(() => m?.(i.value)), f = (0, d.computed)(() => a.value ? (0, u.buildSummaryZoomView)(a.value, m, (e, t) => n(e, t ?? {})) : void 0), g = (0, d.computed)(() => ({ backgroundColor: v.value?.backgroundColor ?? "#f0f0f0" })), y = (0, d.computed)(() => void 0 !== v.value?.slideNumber ? n("pptx.notes.slideN", { n: v.value.slideNumber }) : n("pptx.notes.slideN", { n: i.value + 1 })), k = (0, d.computed)(() => v.value?.sectionName ?? c.value), x = (0, d.computed)(() => "section" === s.value && c.value ? n("pptx.zoom.ariaLabelSection", {
|
|
6302
6309
|
number: i.value + 1,
|
|
6303
6310
|
section: c.value
|
|
6304
6311
|
}) : n("pptx.zoom.ariaLabel", { number: i.value + 1 })), b = (0, d.inject)(wc, void 0), S = (0, d.computed)(() => Boolean(b && a.value));
|
|
@@ -6370,9 +6377,9 @@ var Pc = [
|
|
|
6370
6377
|
key: 1,
|
|
6371
6378
|
class: "pptx-vue-zoom-thumbnail",
|
|
6372
6379
|
style: (0, d.normalizeStyle)(g.value)
|
|
6373
|
-
}, [(0, d.createElementVNode)("div", Nc, (0, d.toDisplayString)(
|
|
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));
|
|
6374
6381
|
}
|
|
6375
|
-
}), [["__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)({
|
|
6376
6383
|
__name: "ElementRenderer",
|
|
6377
6384
|
props: {
|
|
6378
6385
|
element: {},
|
|
@@ -6386,14 +6393,14 @@ var Pc = [
|
|
|
6386
6393
|
inlineEditingElementId: {}
|
|
6387
6394
|
},
|
|
6388
6395
|
setup(e) {
|
|
6389
|
-
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)),
|
|
6390
|
-
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 = {
|
|
6391
6398
|
...e,
|
|
6392
6399
|
...t
|
|
6393
6400
|
};
|
|
6394
6401
|
return e.transform && t.transform && (n.transform = `${e.transform} ${t.transform}`), n;
|
|
6395
|
-
}), f = (0, d.computed)(() => {
|
|
6396
|
-
const e = al(t.element), n = (0,
|
|
6402
|
+
}), g = (0, d.computed)(() => (0, u.getBackgroundAnimationLayers)(t.element, f.value, s.value)), y = (0, d.computed)(() => {
|
|
6403
|
+
const e = al(t.element), n = (0, h.hasTextProperties)(t.element) ? t.element.textStyle : void 0, o = (0, u.buildTextBody3DSceneStyle)(n, {
|
|
6397
6404
|
width: t.element.width,
|
|
6398
6405
|
height: t.element.height
|
|
6399
6406
|
});
|
|
@@ -6403,33 +6410,33 @@ var Pc = [
|
|
|
6403
6410
|
...o
|
|
6404
6411
|
};
|
|
6405
6412
|
return e.transform && o.transform && (l.transform = `${String(e.transform)} ${String(o.transform)}`), l;
|
|
6406
|
-
}),
|
|
6407
|
-
const e = (0,
|
|
6413
|
+
}), k = (0, d.computed)(() => {
|
|
6414
|
+
const e = (0, h.hasShapeProperties)(t.element) ? t.element.shapeStyle : void 0;
|
|
6408
6415
|
return (0, u.build3DExtrusionData)(e?.shape3d, e?.scene3d, e?.fillColor, t.element.width, t.element.height);
|
|
6409
|
-
}),
|
|
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)(() => {
|
|
6410
6417
|
return (0, u.getOverflowSegments)(t.element, (e = a) ? (0, d.toValue)(e) : void 0);
|
|
6411
6418
|
var e;
|
|
6412
|
-
}),
|
|
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)(() => {
|
|
6413
6420
|
const e = (0, u.inlineElementPointerEvents)({
|
|
6414
6421
|
interactive: !0 === t.interactive,
|
|
6415
6422
|
presenting: !0 === t.presenting
|
|
6416
6423
|
});
|
|
6417
6424
|
return e ? { pointerEvents: e } : null;
|
|
6418
|
-
}),
|
|
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);
|
|
6419
6426
|
return (t, n) => {
|
|
6420
6427
|
const l = (0, d.resolveComponent)("ElementRenderer", !0);
|
|
6421
|
-
return
|
|
6428
|
+
return O.value ? "group" === e.element.type ? ((0, d.openBlock)(), (0, d.createElementBlock)("div", {
|
|
6422
6429
|
key: 1,
|
|
6423
|
-
class: (0, d.normalizeClass)(["pptx-vue-element pptx-vue-group",
|
|
6424
|
-
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]),
|
|
6425
6432
|
"data-element-id": e.element.id,
|
|
6426
|
-
"data-pptx-element":
|
|
6433
|
+
"data-pptx-element": T.value
|
|
6427
6434
|
}, [
|
|
6428
|
-
(0, d.unref)(
|
|
6435
|
+
(0, d.unref)(N) ? ((0, d.openBlock)(), (0, d.createElementBlock)("div", {
|
|
6429
6436
|
key: 0,
|
|
6430
6437
|
"aria-hidden": "true",
|
|
6431
6438
|
"data-pptx-hit-target": "true",
|
|
6432
|
-
style: (0, d.normalizeStyle)((0, d.unref)(
|
|
6439
|
+
style: (0, d.normalizeStyle)((0, d.unref)(N))
|
|
6433
6440
|
}, null, 4)) : (0, d.createCommentVNode)("", !0),
|
|
6434
6441
|
(0, d.createVNode)(jr, {
|
|
6435
6442
|
element: e.element,
|
|
@@ -6443,7 +6450,7 @@ var Pc = [
|
|
|
6443
6450
|
interactive: e.interactive,
|
|
6444
6451
|
marked: e.marked,
|
|
6445
6452
|
presenting: e.presenting,
|
|
6446
|
-
"parent-group-fill":
|
|
6453
|
+
"parent-group-fill": v.value,
|
|
6447
6454
|
"inline-editing-element-id": e.inlineEditingElementId
|
|
6448
6455
|
}, null, 8, [
|
|
6449
6456
|
"element",
|
|
@@ -6455,7 +6462,7 @@ var Pc = [
|
|
|
6455
6462
|
"parent-group-fill",
|
|
6456
6463
|
"inline-editing-element-id"
|
|
6457
6464
|
]))), 128))
|
|
6458
|
-
], 14, zc)) :
|
|
6465
|
+
], 14, zc)) : b.value ? ((0, d.openBlock)(), (0, d.createBlock)(Hr, {
|
|
6459
6466
|
key: 2,
|
|
6460
6467
|
element: e.element,
|
|
6461
6468
|
"media-data-urls": e.mediaDataUrls,
|
|
@@ -6463,7 +6470,7 @@ var Pc = [
|
|
|
6463
6470
|
interactive: e.interactive,
|
|
6464
6471
|
marked: e.marked,
|
|
6465
6472
|
presenting: e.presenting,
|
|
6466
|
-
class: (0, d.normalizeClass)(
|
|
6473
|
+
class: (0, d.normalizeClass)(P.value)
|
|
6467
6474
|
}, null, 8, [
|
|
6468
6475
|
"element",
|
|
6469
6476
|
"media-data-urls",
|
|
@@ -6480,7 +6487,7 @@ var Pc = [
|
|
|
6480
6487
|
interactive: e.interactive,
|
|
6481
6488
|
marked: e.marked,
|
|
6482
6489
|
presenting: e.presenting,
|
|
6483
|
-
class: (0, d.normalizeClass)(
|
|
6490
|
+
class: (0, d.normalizeClass)(P.value)
|
|
6484
6491
|
}, null, 8, [
|
|
6485
6492
|
"element",
|
|
6486
6493
|
"media-data-urls",
|
|
@@ -6494,8 +6501,8 @@ var Pc = [
|
|
|
6494
6501
|
element: e.element,
|
|
6495
6502
|
"z-index": e.zIndex,
|
|
6496
6503
|
"animation-state": i.value,
|
|
6497
|
-
"text-style-override-css":
|
|
6498
|
-
"data-pptx-element":
|
|
6504
|
+
"text-style-override-css": c.value,
|
|
6505
|
+
"data-pptx-element": T.value
|
|
6499
6506
|
}, null, 8, [
|
|
6500
6507
|
"element",
|
|
6501
6508
|
"z-index",
|
|
@@ -6510,7 +6517,7 @@ var Pc = [
|
|
|
6510
6517
|
interactive: e.interactive,
|
|
6511
6518
|
marked: e.marked,
|
|
6512
6519
|
presenting: e.presenting,
|
|
6513
|
-
"text-style-override-css":
|
|
6520
|
+
"text-style-override-css": c.value
|
|
6514
6521
|
}, null, 8, [
|
|
6515
6522
|
"element",
|
|
6516
6523
|
"media-data-urls",
|
|
@@ -6528,7 +6535,7 @@ var Pc = [
|
|
|
6528
6535
|
marked: e.marked,
|
|
6529
6536
|
presenting: e.presenting,
|
|
6530
6537
|
"animation-state": i.value,
|
|
6531
|
-
"text-style-override-css":
|
|
6538
|
+
"text-style-override-css": c.value
|
|
6532
6539
|
}, null, 8, [
|
|
6533
6540
|
"element",
|
|
6534
6541
|
"media-data-urls",
|
|
@@ -6547,8 +6554,8 @@ var Pc = [
|
|
|
6547
6554
|
presenting: e.presenting,
|
|
6548
6555
|
replay: e.presenting,
|
|
6549
6556
|
"text-style": i.value?.textStyle,
|
|
6550
|
-
"text-style-override-css":
|
|
6551
|
-
"data-pptx-element":
|
|
6557
|
+
"text-style-override-css": c.value,
|
|
6558
|
+
"data-pptx-element": T.value
|
|
6552
6559
|
}, null, 8, [
|
|
6553
6560
|
"element",
|
|
6554
6561
|
"media-data-urls",
|
|
@@ -6568,7 +6575,7 @@ var Pc = [
|
|
|
6568
6575
|
marked: e.marked,
|
|
6569
6576
|
presenting: e.presenting,
|
|
6570
6577
|
"animation-state": i.value,
|
|
6571
|
-
"text-style-override-css":
|
|
6578
|
+
"text-style-override-css": c.value
|
|
6572
6579
|
}, null, 8, [
|
|
6573
6580
|
"element",
|
|
6574
6581
|
"media-data-urls",
|
|
@@ -6586,7 +6593,7 @@ var Pc = [
|
|
|
6586
6593
|
interactive: e.interactive,
|
|
6587
6594
|
presenting: e.presenting,
|
|
6588
6595
|
replay: e.presenting,
|
|
6589
|
-
"data-pptx-element":
|
|
6596
|
+
"data-pptx-element": T.value
|
|
6590
6597
|
}, null, 8, [
|
|
6591
6598
|
"element",
|
|
6592
6599
|
"media-data-urls",
|
|
@@ -6601,7 +6608,7 @@ var Pc = [
|
|
|
6601
6608
|
"z-index": e.zIndex,
|
|
6602
6609
|
interactive: e.interactive,
|
|
6603
6610
|
presenting: e.presenting,
|
|
6604
|
-
"data-pptx-element":
|
|
6611
|
+
"data-pptx-element": T.value
|
|
6605
6612
|
}, null, 8, [
|
|
6606
6613
|
"element",
|
|
6607
6614
|
"z-index",
|
|
@@ -6615,7 +6622,7 @@ var Pc = [
|
|
|
6615
6622
|
"z-index": e.zIndex,
|
|
6616
6623
|
interactive: e.interactive,
|
|
6617
6624
|
presenting: e.presenting,
|
|
6618
|
-
"data-pptx-element":
|
|
6625
|
+
"data-pptx-element": T.value
|
|
6619
6626
|
}, null, 8, [
|
|
6620
6627
|
"element",
|
|
6621
6628
|
"media-data-urls",
|
|
@@ -6630,7 +6637,7 @@ var Pc = [
|
|
|
6630
6637
|
"z-index": e.zIndex,
|
|
6631
6638
|
interactive: e.interactive,
|
|
6632
6639
|
presenting: e.presenting,
|
|
6633
|
-
"data-pptx-element":
|
|
6640
|
+
"data-pptx-element": T.value
|
|
6634
6641
|
}, null, 8, [
|
|
6635
6642
|
"element",
|
|
6636
6643
|
"media-data-urls",
|
|
@@ -6645,7 +6652,7 @@ var Pc = [
|
|
|
6645
6652
|
"z-index": e.zIndex,
|
|
6646
6653
|
interactive: e.interactive,
|
|
6647
6654
|
presenting: e.presenting,
|
|
6648
|
-
"data-pptx-element":
|
|
6655
|
+
"data-pptx-element": T.value
|
|
6649
6656
|
}, null, 8, [
|
|
6650
6657
|
"element",
|
|
6651
6658
|
"media-data-urls",
|
|
@@ -6653,14 +6660,14 @@ var Pc = [
|
|
|
6653
6660
|
"interactive",
|
|
6654
6661
|
"presenting",
|
|
6655
6662
|
"data-pptx-element"
|
|
6656
|
-
])) :
|
|
6663
|
+
])) : S.value ? ((0, d.openBlock)(), (0, d.createBlock)(fi, {
|
|
6657
6664
|
key: 14,
|
|
6658
6665
|
element: e.element,
|
|
6659
6666
|
"media-data-urls": e.mediaDataUrls,
|
|
6660
6667
|
"z-index": e.zIndex,
|
|
6661
6668
|
interactive: e.interactive,
|
|
6662
6669
|
presenting: e.presenting,
|
|
6663
|
-
"data-pptx-element":
|
|
6670
|
+
"data-pptx-element": T.value
|
|
6664
6671
|
}, null, 8, [
|
|
6665
6672
|
"element",
|
|
6666
6673
|
"media-data-urls",
|
|
@@ -6668,41 +6675,47 @@ var Pc = [
|
|
|
6668
6675
|
"interactive",
|
|
6669
6676
|
"presenting",
|
|
6670
6677
|
"data-pptx-element"
|
|
6671
|
-
])) :
|
|
6678
|
+
])) : x.value ? ((0, d.openBlock)(), (0, d.createElementBlock)("div", {
|
|
6672
6679
|
key: 15,
|
|
6673
|
-
class: (0, d.normalizeClass)(["pptx-vue-element pptx-vue-shape",
|
|
6674
|
-
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]),
|
|
6675
6682
|
"data-element-id": e.element.id,
|
|
6676
|
-
"data-pptx-element":
|
|
6683
|
+
"data-pptx-element": T.value
|
|
6677
6684
|
}, [
|
|
6678
6685
|
(0, d.createVNode)(Xa, { element: e.element }, null, 8, ["element"]),
|
|
6679
|
-
(0, d.unref)(
|
|
6686
|
+
(0, d.unref)(N) ? ((0, d.openBlock)(), (0, d.createElementBlock)("div", {
|
|
6680
6687
|
key: 0,
|
|
6681
6688
|
"aria-hidden": "true",
|
|
6682
6689
|
"data-pptx-hit-target": "true",
|
|
6683
|
-
style: (0, d.normalizeStyle)((0, d.unref)(
|
|
6690
|
+
style: (0, d.normalizeStyle)((0, d.unref)(N))
|
|
6684
6691
|
}, null, 4)) : (0, d.createCommentVNode)("", !0),
|
|
6685
|
-
|
|
6686
|
-
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)]),
|
|
6687
6694
|
_: 1
|
|
6688
6695
|
})) : (0, d.createCommentVNode)("", !0),
|
|
6689
|
-
(0, d.
|
|
6690
|
-
|
|
6691
|
-
"
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
|
|
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, {
|
|
6699
6712
|
key: 0,
|
|
6700
6713
|
element: e.element,
|
|
6701
6714
|
"z-index": 0
|
|
6702
|
-
}, null, 8, ["element"])) :
|
|
6715
|
+
}, null, 8, ["element"])) : C.value ? ((0, d.openBlock)(), (0, d.createBlock)(kr, {
|
|
6703
6716
|
key: 1,
|
|
6704
|
-
paragraphs:
|
|
6705
|
-
"text-style":
|
|
6717
|
+
paragraphs: B.value,
|
|
6718
|
+
"text-style": y.value,
|
|
6706
6719
|
"element-id": e.element.id,
|
|
6707
6720
|
"sub-element-anim-states": (0, d.unref)(r)
|
|
6708
6721
|
}, null, 8, [
|
|
@@ -6710,26 +6723,26 @@ var Pc = [
|
|
|
6710
6723
|
"text-style",
|
|
6711
6724
|
"element-id",
|
|
6712
6725
|
"sub-element-anim-states"
|
|
6713
|
-
])) :
|
|
6726
|
+
])) : I.value ? ((0, d.openBlock)(), (0, d.createElementBlock)("div", {
|
|
6714
6727
|
key: 2,
|
|
6715
6728
|
class: "pptx-vue-text pptx-vue-placeholder-prompt",
|
|
6716
|
-
style: (0, d.normalizeStyle)([
|
|
6717
|
-
}, (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))
|
|
6718
6731
|
], 14, Rc)) : ((0, d.openBlock)(), (0, d.createElementBlock)("div", {
|
|
6719
6732
|
key: 16,
|
|
6720
|
-
class: (0, d.normalizeClass)(["pptx-vue-element pptx-vue-unsupported",
|
|
6721
|
-
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]),
|
|
6722
6735
|
"data-element-id": e.element.id,
|
|
6723
|
-
"data-pptx-element":
|
|
6724
|
-
}, [(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));
|
|
6725
6738
|
};
|
|
6726
6739
|
}
|
|
6727
|
-
}),
|
|
6740
|
+
}), Uc = [
|
|
6728
6741
|
"role",
|
|
6729
6742
|
"aria-roledescription",
|
|
6730
6743
|
"aria-label",
|
|
6731
6744
|
"aria-hidden"
|
|
6732
|
-
],
|
|
6745
|
+
], Hc = (0, d.defineComponent)({
|
|
6733
6746
|
__name: "SlideStage",
|
|
6734
6747
|
props: {
|
|
6735
6748
|
slide: {},
|
|
@@ -6794,7 +6807,7 @@ var Pc = [
|
|
|
6794
6807
|
"aria-label": e.presenting ? (0, d.unref)(n)("pptx.canvas.slide") : void 0,
|
|
6795
6808
|
"aria-hidden": e.interactive || e.presenting ? void 0 : "true"
|
|
6796
6809
|
}, [
|
|
6797
|
-
((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, {
|
|
6798
6811
|
key: t.id,
|
|
6799
6812
|
element: t,
|
|
6800
6813
|
"media-data-urls": e.mediaDataUrls,
|
|
@@ -6812,7 +6825,7 @@ var Pc = [
|
|
|
6812
6825
|
"template-editing",
|
|
6813
6826
|
"inline-editing-element-id"
|
|
6814
6827
|
]))), 128)),
|
|
6815
|
-
((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, {
|
|
6816
6829
|
key: t.id,
|
|
6817
6830
|
element: t,
|
|
6818
6831
|
"media-data-urls": e.mediaDataUrls,
|
|
@@ -6829,10 +6842,10 @@ var Pc = [
|
|
|
6829
6842
|
"inline-editing-element-id"
|
|
6830
6843
|
]))), 128)),
|
|
6831
6844
|
(0, d.renderSlot)(t.$slots, "default")
|
|
6832
|
-
], 12,
|
|
6845
|
+
], 12, Uc));
|
|
6833
6846
|
}
|
|
6834
6847
|
});
|
|
6835
|
-
function
|
|
6848
|
+
function Gc(e) {
|
|
6836
6849
|
return {
|
|
6837
6850
|
x: e.x,
|
|
6838
6851
|
y: e.y,
|
|
@@ -6841,7 +6854,7 @@ function Hc(e) {
|
|
|
6841
6854
|
rotation: e.rotation ?? 0
|
|
6842
6855
|
};
|
|
6843
6856
|
}
|
|
6844
|
-
function
|
|
6857
|
+
function Kc(e, t) {
|
|
6845
6858
|
const n = (0, d.computed)(() => function(e, t) {
|
|
6846
6859
|
const n = new Set(t), o = /* @__PURE__ */ new Map();
|
|
6847
6860
|
for (const t of e) n.has(t.id) && o.set(t.id, (0, u.resolveElementInteractivity)(t));
|
|
@@ -6852,7 +6865,7 @@ function Gc(e, t) {
|
|
|
6852
6865
|
canRotate: (e) => !1 !== n.value.get(e)?.rotatable
|
|
6853
6866
|
};
|
|
6854
6867
|
}
|
|
6855
|
-
function
|
|
6868
|
+
function Yc(e, t) {
|
|
6856
6869
|
return {
|
|
6857
6870
|
isHidden: (t) => (0, u.isActionHidden)(t, e()),
|
|
6858
6871
|
visibleTabs: (0, d.computed)(() => {
|
|
@@ -6861,14 +6874,14 @@ function Kc(e, t) {
|
|
|
6861
6874
|
})
|
|
6862
6875
|
};
|
|
6863
6876
|
}
|
|
6864
|
-
var
|
|
6865
|
-
function
|
|
6866
|
-
|
|
6877
|
+
var qc = null;
|
|
6878
|
+
function Xc(e, t = !1) {
|
|
6879
|
+
Zc(), "undefined" != typeof Audio && ((qc = new Audio(e)).loop = t, qc.play().catch(() => {}));
|
|
6867
6880
|
}
|
|
6868
|
-
function
|
|
6869
|
-
|
|
6881
|
+
function Zc() {
|
|
6882
|
+
qc && (qc.pause(), qc.currentTime = 0, qc = null);
|
|
6870
6883
|
}
|
|
6871
|
-
function
|
|
6884
|
+
function Jc(e = 768, t) {
|
|
6872
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 = {
|
|
6873
6886
|
isMobile: (0, d.readonly)(n),
|
|
6874
6887
|
isTablet: (0, d.readonly)(o),
|
|
@@ -6905,8 +6918,8 @@ function Zc(e = 768, t) {
|
|
|
6905
6918
|
o ? o.addEventListener("resize", l) : window.addEventListener("resize", l), (0, d.onScopeDispose)(() => {
|
|
6906
6919
|
window.removeEventListener("resize", e), t?.removeEventListener("change", e), o ? o.removeEventListener("resize", l) : window.removeEventListener("resize", l);
|
|
6907
6920
|
});
|
|
6908
|
-
},
|
|
6909
|
-
if (
|
|
6921
|
+
}, y = "undefined" != typeof window;
|
|
6922
|
+
if (y && "undefined" != typeof ResizeObserver && t) {
|
|
6910
6923
|
let e = null, n = null;
|
|
6911
6924
|
const o = () => {
|
|
6912
6925
|
f(window.innerWidth, window.innerHeight);
|
|
@@ -6926,8 +6939,8 @@ function Zc(e = 768, t) {
|
|
|
6926
6939
|
e?.disconnect(), l();
|
|
6927
6940
|
}), v;
|
|
6928
6941
|
}
|
|
6929
|
-
if (!(
|
|
6930
|
-
const
|
|
6942
|
+
if (!(y && "function" == typeof window.matchMedia)) return v;
|
|
6943
|
+
const h = () => {
|
|
6931
6944
|
f(window.innerWidth, window.innerHeight);
|
|
6932
6945
|
}, k = window.matchMedia(`(max-width: ${e}px), (max-height: ${u.MOBILE_LANDSCAPE_MAX_HEIGHT - 1}px) and (pointer: coarse) and (max-width: ${u.TABLET_BREAKPOINT - 1}px)`), x = (e) => {
|
|
6933
6946
|
n.value = e.matches;
|
|
@@ -6938,14 +6951,14 @@ function Zc(e = 768, t) {
|
|
|
6938
6951
|
const b = (e) => {
|
|
6939
6952
|
x(e);
|
|
6940
6953
|
};
|
|
6941
|
-
return k.addEventListener("change", b), window.addEventListener("resize",
|
|
6942
|
-
k.removeEventListener("change", b), window.removeEventListener("resize",
|
|
6954
|
+
return k.addEventListener("change", b), window.addEventListener("resize", h), g(), (0, d.onScopeDispose)(() => {
|
|
6955
|
+
k.removeEventListener("change", b), window.removeEventListener("resize", h);
|
|
6943
6956
|
}), v;
|
|
6944
6957
|
}
|
|
6945
|
-
function
|
|
6958
|
+
function Qc(e, t) {
|
|
6946
6959
|
return (0, d.computed)(() => (0, u.computeDocumentStatistics)((0, d.toValue)(e), (0, d.toValue)(t)));
|
|
6947
6960
|
}
|
|
6948
|
-
var
|
|
6961
|
+
var eu = [
|
|
6949
6962
|
{
|
|
6950
6963
|
id: "undo",
|
|
6951
6964
|
combo: "Mod+Z",
|
|
@@ -7066,21 +7079,21 @@ var Qc = [
|
|
|
7066
7079
|
group: "general",
|
|
7067
7080
|
descriptionKey: "pptx.slideShow.fromCurrent"
|
|
7068
7081
|
}
|
|
7069
|
-
],
|
|
7082
|
+
], tu = {
|
|
7070
7083
|
history: "pptx.editorToolbar.history",
|
|
7071
7084
|
clipboard: "pptx.ribbon.clipboard",
|
|
7072
7085
|
editing: "pptx.shortcuts.group.editing",
|
|
7073
7086
|
navigation: "pptx.shortcuts.group.navigation",
|
|
7074
7087
|
general: "pptx.settings.general"
|
|
7075
7088
|
};
|
|
7076
|
-
function
|
|
7077
|
-
return Object.keys(
|
|
7089
|
+
function nu(e = eu) {
|
|
7090
|
+
return Object.keys(tu).map((t) => ({
|
|
7078
7091
|
group: t,
|
|
7079
|
-
labelKey:
|
|
7092
|
+
labelKey: tu[t],
|
|
7080
7093
|
shortcuts: e.filter((e) => e.group === t)
|
|
7081
7094
|
})).filter((e) => e.shortcuts.length > 0);
|
|
7082
7095
|
}
|
|
7083
|
-
function
|
|
7096
|
+
function ou(e, t, n, o, l = !1, a) {
|
|
7084
7097
|
return (0, u.mapCustomizedEditorKey)({
|
|
7085
7098
|
key: e,
|
|
7086
7099
|
ctrlKey: t,
|
|
@@ -7097,23 +7110,23 @@ function nu(e, t, n, o, l = !1, a) {
|
|
|
7097
7110
|
isControlTarget: o.isControl ?? !1
|
|
7098
7111
|
}, a);
|
|
7099
7112
|
}
|
|
7100
|
-
function
|
|
7113
|
+
function lu(e) {
|
|
7101
7114
|
return (0, u.isEditorTextInputTarget)(e.target);
|
|
7102
7115
|
}
|
|
7103
|
-
function
|
|
7116
|
+
function au(e) {
|
|
7104
7117
|
const { actions: t } = e;
|
|
7105
7118
|
function n(t) {
|
|
7106
7119
|
const n = t.metaKey || t.ctrlKey;
|
|
7107
|
-
return
|
|
7120
|
+
return ou(t.key, n, t.shiftKey, function(t) {
|
|
7108
7121
|
return {
|
|
7109
|
-
canEdit:
|
|
7110
|
-
canPaste:
|
|
7111
|
-
isPresenting:
|
|
7112
|
-
hasSelection:
|
|
7113
|
-
inlineEditingElementId:
|
|
7114
|
-
tableEditorIsEditing:
|
|
7115
|
-
activeTool:
|
|
7116
|
-
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),
|
|
7117
7130
|
isControl: (0, u.isEditorControlTarget)(t.target)
|
|
7118
7131
|
};
|
|
7119
7132
|
}(t), t.altKey, e.keyboard?.());
|
|
@@ -7144,10 +7157,10 @@ function lu(e) {
|
|
|
7144
7157
|
attach: l
|
|
7145
7158
|
};
|
|
7146
7159
|
}
|
|
7147
|
-
function
|
|
7160
|
+
function ru(e, t) {
|
|
7148
7161
|
return void 0 === e ? t : (0, d.toValue)(e);
|
|
7149
7162
|
}
|
|
7150
|
-
function
|
|
7163
|
+
function iu(e, t, n, o = () => !0) {
|
|
7151
7164
|
const l = (e) => n(e), a = (e) => {
|
|
7152
7165
|
const n = t.value;
|
|
7153
7166
|
n && l((0, u.patchChartData)(n, e));
|
|
@@ -7198,15 +7211,15 @@ function ru(e, t, n, o = () => !0) {
|
|
|
7198
7211
|
o(r), r.chartData && n(r.chartData);
|
|
7199
7212
|
};
|
|
7200
7213
|
return {
|
|
7201
|
-
setAxisLogScale: (e, t) => o((n) => (0,
|
|
7202
|
-
setAxisTitleStyle: (e, t) => o((n) => (0,
|
|
7203
|
-
setGridlineStyle: (e, t, n) => o((o) => (0,
|
|
7204
|
-
setSeriesMarker: (e, t) => o((n) => (0,
|
|
7205
|
-
setSeriesType: (e, t) => o((n) => (0,
|
|
7206
|
-
setPointFill: (e, t, n) => o((o) => (0,
|
|
7207
|
-
setPointExplosion: (e, t, n) => o((o) => (0,
|
|
7208
|
-
setPointMarker: (e, t, n) => o((o) => (0,
|
|
7209
|
-
setPointLabel: (e, t, n) => o((o) => (0,
|
|
7214
|
+
setAxisLogScale: (e, t) => o((n) => (0, h.setChartAxisLogScale)(n, e, t)),
|
|
7215
|
+
setAxisTitleStyle: (e, t) => o((n) => (0, h.setChartAxisTitleStyle)(n, e, t)),
|
|
7216
|
+
setGridlineStyle: (e, t, n) => o((o) => (0, h.setChartAxisGridlineStyle)(o, e, t, n)),
|
|
7217
|
+
setSeriesMarker: (e, t) => o((n) => (0, h.setChartSeriesMarker)(n, e, t)),
|
|
7218
|
+
setSeriesType: (e, t) => o((n) => (0, h.setChartSeriesChartType)(n, e, t)),
|
|
7219
|
+
setPointFill: (e, t, n) => o((o) => (0, h.setChartDataPointFill)(o, e, t, n)),
|
|
7220
|
+
setPointExplosion: (e, t, n) => o((o) => (0, h.setChartDataPointExplosion)(o, e, t, n)),
|
|
7221
|
+
setPointMarker: (e, t, n) => o((o) => (0, h.setChartDataPointMarker)(o, e, t, n)),
|
|
7222
|
+
setPointLabel: (e, t, n) => o((o) => (0, h.setChartDataPointLabel)(o, e, t, null !== n ? { text: n } : null))
|
|
7210
7223
|
};
|
|
7211
7224
|
}(e, t, l),
|
|
7212
7225
|
updateSeries: r,
|
|
@@ -7252,7 +7265,7 @@ function ru(e, t, n, o = () => !0) {
|
|
|
7252
7265
|
}
|
|
7253
7266
|
};
|
|
7254
7267
|
}
|
|
7255
|
-
function
|
|
7268
|
+
function su(e, t = 180) {
|
|
7256
7269
|
let n, o;
|
|
7257
7270
|
const l = () => {
|
|
7258
7271
|
void 0 !== n && (clearTimeout(n), n = void 0), o = void 0;
|
|
@@ -7268,7 +7281,7 @@ function iu(e, t = 180) {
|
|
|
7268
7281
|
void 0 !== n && (clearTimeout(n), a());
|
|
7269
7282
|
}, (0, d.onScopeDispose)(l), r;
|
|
7270
7283
|
}
|
|
7271
|
-
function
|
|
7284
|
+
function cu() {
|
|
7272
7285
|
const e = /* @__PURE__ */ new Map(), t = (0, d.ref)(null);
|
|
7273
7286
|
return {
|
|
7274
7287
|
pendingFocusId: t,
|
|
@@ -7282,21 +7295,21 @@ function su() {
|
|
|
7282
7295
|
}
|
|
7283
7296
|
};
|
|
7284
7297
|
}
|
|
7285
|
-
var
|
|
7298
|
+
var uu = [
|
|
7286
7299
|
"colorful1",
|
|
7287
7300
|
"colorful2",
|
|
7288
7301
|
"colorful3",
|
|
7289
7302
|
"monochromatic1",
|
|
7290
7303
|
"monochromatic2"
|
|
7291
|
-
],
|
|
7304
|
+
], du = [
|
|
7292
7305
|
"flat",
|
|
7293
7306
|
"moderate",
|
|
7294
7307
|
"intense"
|
|
7295
7308
|
];
|
|
7296
|
-
function
|
|
7309
|
+
function pu(e, t) {
|
|
7297
7310
|
return (0, u.schemaLabel)(u.SMARTART_LAYOUT_LABEL_KEYS, e, t);
|
|
7298
7311
|
}
|
|
7299
|
-
function
|
|
7312
|
+
function mu(e) {
|
|
7300
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)(() => {
|
|
7301
7314
|
const e = t.value, n = (0, u.canRemoveTopLevelNode)(r.value, i.value);
|
|
7302
7315
|
let l = 0;
|
|
@@ -7314,13 +7327,13 @@ function pu(e) {
|
|
|
7314
7327
|
removeDisabled: o.value.length <= 1 || !r && !n
|
|
7315
7328
|
};
|
|
7316
7329
|
});
|
|
7317
|
-
}), { pendingFocusId: v, setInputEl: f, focusNode: g } =
|
|
7318
|
-
function
|
|
7330
|
+
}), { pendingFocusId: v, setInputEl: f, focusNode: g } = cu();
|
|
7331
|
+
function y(t, o) {
|
|
7319
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;
|
|
7320
7333
|
n({ smartArtData: a }), g(o);
|
|
7321
7334
|
}
|
|
7322
7335
|
function k(e) {
|
|
7323
|
-
|
|
7336
|
+
y({
|
|
7324
7337
|
...t.value,
|
|
7325
7338
|
...e
|
|
7326
7339
|
});
|
|
@@ -7330,16 +7343,16 @@ function pu(e) {
|
|
|
7330
7343
|
return !!o.value.find((t) => t.id === e)?.parentId || (0, u.canRemoveTopLevelNode)(r.value, i.value);
|
|
7331
7344
|
}
|
|
7332
7345
|
function b(e) {
|
|
7333
|
-
const n = (0,
|
|
7334
|
-
n !== t.value &&
|
|
7346
|
+
const n = (0, h.promoteSmartArtNode)(t.value, e);
|
|
7347
|
+
n !== t.value && y(n, e);
|
|
7335
7348
|
}
|
|
7336
7349
|
function S(e) {
|
|
7337
7350
|
const n = (0, u.demote)(t.value, e);
|
|
7338
|
-
n &&
|
|
7351
|
+
n && y(n, e);
|
|
7339
7352
|
}
|
|
7340
7353
|
function w(e, n) {
|
|
7341
7354
|
const o = (0, u.reorder)(t.value, e, n);
|
|
7342
|
-
o &&
|
|
7355
|
+
o && y(o, e);
|
|
7343
7356
|
}
|
|
7344
7357
|
return {
|
|
7345
7358
|
nodes: o,
|
|
@@ -7354,20 +7367,20 @@ function pu(e) {
|
|
|
7354
7367
|
pendingFocusId: v,
|
|
7355
7368
|
setInputEl: f,
|
|
7356
7369
|
updateNodeText: function(e, n) {
|
|
7357
|
-
|
|
7370
|
+
y((0, h.updateSmartArtNodeText)(t.value, e, n));
|
|
7358
7371
|
},
|
|
7359
7372
|
setNodeStyle: function(e, n) {
|
|
7360
|
-
const o = (0,
|
|
7361
|
-
o !== t.value &&
|
|
7373
|
+
const o = (0, h.setSmartArtNodeStyle)(t.value, e, n);
|
|
7374
|
+
o !== t.value && y(o);
|
|
7362
7375
|
},
|
|
7363
7376
|
addItem: function() {
|
|
7364
|
-
s.value &&
|
|
7377
|
+
s.value && y((0, h.addSmartArtNode)(t.value, `Item ${o.value.length + 1}`));
|
|
7365
7378
|
},
|
|
7366
7379
|
addSubItem: function(e) {
|
|
7367
|
-
|
|
7380
|
+
y((0, h.addSmartArtNodeAsChild)(t.value, e, "Sub-item"));
|
|
7368
7381
|
},
|
|
7369
7382
|
removeNode: function(e) {
|
|
7370
|
-
x(e) &&
|
|
7383
|
+
x(e) && y((0, h.removeSmartArtNode)(t.value, e));
|
|
7371
7384
|
},
|
|
7372
7385
|
promote: b,
|
|
7373
7386
|
demote: S,
|
|
@@ -7378,13 +7391,13 @@ function pu(e) {
|
|
|
7378
7391
|
if ("Enter" === e.key) {
|
|
7379
7392
|
e.preventDefault();
|
|
7380
7393
|
const o = (0, u.addSiblingAfter)(t.value, n);
|
|
7381
|
-
o &&
|
|
7394
|
+
o && y(o.data, o.focusNodeId);
|
|
7382
7395
|
} else if ("Backspace" !== e.key && "Delete" !== e.key || !a) "Tab" !== e.key || e.shiftKey ? "Tab" === e.key && e.shiftKey && (e.preventDefault(), b(n)) : (e.preventDefault(), S(n));
|
|
7383
7396
|
else {
|
|
7384
7397
|
if (!x(n)) return;
|
|
7385
7398
|
e.preventDefault();
|
|
7386
7399
|
const o = (0, u.removeEmptyNode)(t.value, n);
|
|
7387
|
-
o &&
|
|
7400
|
+
o && y(o.data, o.focusNodeId);
|
|
7388
7401
|
}
|
|
7389
7402
|
},
|
|
7390
7403
|
setColorScheme: function(e) {
|
|
@@ -7398,24 +7411,24 @@ function pu(e) {
|
|
|
7398
7411
|
}
|
|
7399
7412
|
};
|
|
7400
7413
|
}
|
|
7401
|
-
function
|
|
7414
|
+
function vu(e, t, n) {
|
|
7402
7415
|
return (0, u.insertTableElementRow)((0, d.toRaw)(e), t, n);
|
|
7403
7416
|
}
|
|
7404
|
-
function
|
|
7417
|
+
function fu(e, t) {
|
|
7405
7418
|
const n = (0, d.toRaw)(e), o = (0, u.removeTableElementRow)(n, t);
|
|
7406
7419
|
return o === n ? null : o;
|
|
7407
7420
|
}
|
|
7408
|
-
function
|
|
7421
|
+
function gu(e, t, n) {
|
|
7409
7422
|
return (0, u.insertTableElementColumn)((0, d.toRaw)(e), t, n);
|
|
7410
7423
|
}
|
|
7411
|
-
function
|
|
7424
|
+
function yu(e, t) {
|
|
7412
7425
|
const n = (0, d.toRaw)(e), o = (0, u.removeTableElementColumn)(n, t);
|
|
7413
7426
|
return o === n ? null : o;
|
|
7414
7427
|
}
|
|
7415
7428
|
function hu(e, t) {
|
|
7416
7429
|
return !t || t.length < 2 || !(0, u.canMergeCells)(t, e) ? null : (0, u.mergeCells)(t, e);
|
|
7417
7430
|
}
|
|
7418
|
-
function
|
|
7431
|
+
function ku(e) {
|
|
7419
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);
|
|
7420
7433
|
let r = null;
|
|
7421
7434
|
const i = [], s = (0, u.createActiveAnimationGroup)(), c = {
|
|
@@ -7425,8 +7438,8 @@ function yu(e) {
|
|
|
7425
7438
|
timers: i,
|
|
7426
7439
|
buildHandle: { current: null },
|
|
7427
7440
|
onPlayActionSound: e.onPlayActionSound,
|
|
7428
|
-
playSound:
|
|
7429
|
-
stopSound:
|
|
7441
|
+
playSound: Xc,
|
|
7442
|
+
stopSound: Zc,
|
|
7430
7443
|
frameRoot: e.frameRoot
|
|
7431
7444
|
}, p = () => !1 !== (0, d.toValue)(e.showWithAnimation);
|
|
7432
7445
|
function m() {
|
|
@@ -7437,14 +7450,14 @@ function yu(e) {
|
|
|
7437
7450
|
}
|
|
7438
7451
|
const f = (0, d.ref)(!1);
|
|
7439
7452
|
let g = !1;
|
|
7440
|
-
function
|
|
7453
|
+
function y(s) {
|
|
7441
7454
|
m(), f.value = !1;
|
|
7442
7455
|
const g = (0, d.toValue)(e.slide);
|
|
7443
7456
|
if (!g || !p()) return r = null, c.mediaTimeNodeElementIds = /* @__PURE__ */ new Map(), c.mediaBookmarkTimesMs = /* @__PURE__ */ new Map(), t.value = /* @__PURE__ */ new Map(), n.value = "", o.value = /* @__PURE__ */ new Set(), l.value = /* @__PURE__ */ new Set(), void (a.value = !0);
|
|
7444
|
-
const
|
|
7457
|
+
const y = (0, d.toValue)(e.canvasSize);
|
|
7445
7458
|
if (r = u.PresentationAnimationController.fromSlide(g, {
|
|
7446
|
-
slideHeightPx:
|
|
7447
|
-
slideWidthPx:
|
|
7459
|
+
slideHeightPx: y?.height,
|
|
7460
|
+
slideWidthPx: y?.width,
|
|
7448
7461
|
themeColorMap: (0, d.toValue)(e.themeColorMap),
|
|
7449
7462
|
pixelateMosaic: (0, d.toValue)(e.pixelateMosaicAnimation)
|
|
7450
7463
|
}), c.mediaTimeNodeElementIds = (0, u.resolveMediaTimeNodeElementIds)(g.nativeAnimations ?? []), c.mediaBookmarkTimesMs = (0, u.resolveMediaBookmarkTimesMs)(g.elements), n.value = r.keyframesCss, o.value = r.interactiveTriggerShapeIds, l.value = r.hoverTriggerShapeIds, t.value = r.computeStates(), v(), s?.completed) return f.value = r.hasMoreSteps(), r.completeAll(), t.value = r.computeStates(), void v();
|
|
@@ -7461,7 +7474,7 @@ function yu(e) {
|
|
|
7461
7474
|
}
|
|
7462
7475
|
return (0, d.watch)(() => [(0, d.toValue)(e.slide), (0, d.toValue)(e.showWithAnimation)], () => {
|
|
7463
7476
|
const e = g;
|
|
7464
|
-
g = !1,
|
|
7477
|
+
g = !1, y({ completed: e });
|
|
7465
7478
|
}, { immediate: !0 }), (0, d.onScopeDispose)(m), {
|
|
7466
7479
|
presentationElementStates: t,
|
|
7467
7480
|
presentationKeyframesCss: n,
|
|
@@ -7477,7 +7490,7 @@ function yu(e) {
|
|
|
7477
7490
|
const e = (0, u.advanceMainSequence)(r, c, s);
|
|
7478
7491
|
return v(), e;
|
|
7479
7492
|
},
|
|
7480
|
-
reset:
|
|
7493
|
+
reset: y,
|
|
7481
7494
|
handleInteractiveShapeClick: function(e) {
|
|
7482
7495
|
if (!r || !r.hasInteractiveSequence(e)) return !1;
|
|
7483
7496
|
const t = r.advanceInteractive(e);
|
|
@@ -7495,11 +7508,11 @@ function yu(e) {
|
|
|
7495
7508
|
clearTimers: m
|
|
7496
7509
|
};
|
|
7497
7510
|
}
|
|
7498
|
-
var
|
|
7499
|
-
function
|
|
7511
|
+
var xu = 0;
|
|
7512
|
+
function bu(e, t, n, o, l) {
|
|
7500
7513
|
const a = "pen" === e;
|
|
7501
7514
|
return {
|
|
7502
|
-
id: `stroke-${
|
|
7515
|
+
id: `stroke-${xu += 1}`,
|
|
7503
7516
|
points: [{
|
|
7504
7517
|
x: t,
|
|
7505
7518
|
y: n
|
|
@@ -7509,14 +7522,14 @@ function xu(e, t, n, o, l) {
|
|
|
7509
7522
|
opacity: a ? 1 : .4
|
|
7510
7523
|
};
|
|
7511
7524
|
}
|
|
7512
|
-
function
|
|
7525
|
+
function Su(e, t, n, o = 16) {
|
|
7513
7526
|
const l = o * o, a = e.filter((e) => !e.points.some((e) => {
|
|
7514
7527
|
const o = e.x - t, a = e.y - n;
|
|
7515
7528
|
return o * o + a * a < l;
|
|
7516
7529
|
}));
|
|
7517
7530
|
return a.length === e.length ? e : a;
|
|
7518
7531
|
}
|
|
7519
|
-
function
|
|
7532
|
+
function wu(e) {
|
|
7520
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);
|
|
7521
7534
|
let c = !1, u = (0, d.toValue)(e.activeSlideIndex);
|
|
7522
7535
|
function p() {
|
|
@@ -7546,7 +7559,7 @@ function Su(e) {
|
|
|
7546
7559
|
handlePointerDown: function(l, r) {
|
|
7547
7560
|
if (!(0, d.toValue)(e.isActive)) return;
|
|
7548
7561
|
const i = t.value;
|
|
7549
|
-
"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));
|
|
7550
7563
|
},
|
|
7551
7564
|
handlePointerMove: function(t, n) {
|
|
7552
7565
|
if (!(0, d.toValue)(e.isActive) || !c) return;
|
|
@@ -7580,7 +7593,7 @@ function Su(e) {
|
|
|
7580
7593
|
},
|
|
7581
7594
|
eraseAtPoint: function(n, o) {
|
|
7582
7595
|
if (!(0, d.toValue)(e.isActive) || "eraser" !== t.value) return;
|
|
7583
|
-
const a =
|
|
7596
|
+
const a = Su(l.value, n, o);
|
|
7584
7597
|
if (a === l.value) return;
|
|
7585
7598
|
l.value = a;
|
|
7586
7599
|
const r = (0, d.toValue)(e.activeSlideIndex);
|
|
@@ -7600,7 +7613,7 @@ function Su(e) {
|
|
|
7600
7613
|
hasAnyAnnotations: (0, d.computed)(() => (s.value, l.value.length > 0 || i.size > 0))
|
|
7601
7614
|
};
|
|
7602
7615
|
}
|
|
7603
|
-
function
|
|
7616
|
+
function Eu(e) {
|
|
7604
7617
|
const t = (0, d.ref)(!1);
|
|
7605
7618
|
let n = null;
|
|
7606
7619
|
function o() {
|
|
@@ -7622,7 +7635,7 @@ function wu(e) {
|
|
|
7622
7635
|
}
|
|
7623
7636
|
};
|
|
7624
7637
|
}
|
|
7625
|
-
function
|
|
7638
|
+
function Bu(e) {
|
|
7626
7639
|
const { targetRef: t, currentScale: n, minScale: o, maxScale: l, callbacks: a, enabled: r = !0 } = e;
|
|
7627
7640
|
let i = null;
|
|
7628
7641
|
const s = () => {
|
|
@@ -7646,7 +7659,7 @@ function Eu(e) {
|
|
|
7646
7659
|
})(e);
|
|
7647
7660
|
}, { immediate: !0 }), (0, d.onScopeDispose)(s);
|
|
7648
7661
|
}
|
|
7649
|
-
function
|
|
7662
|
+
function Cu(e) {
|
|
7650
7663
|
const t = (0, d.computed)(() => {
|
|
7651
7664
|
const t = e.transition();
|
|
7652
7665
|
return "morph" === t?.type ? (0, u.buildMorphTransitionPlan)(e.outgoingSlide(), e.incomingSlide(), e.durationMs(), (0, u.morphOptionToMode)(t.morphOption)) : void 0;
|
|
@@ -7703,7 +7716,7 @@ function Bu(e) {
|
|
|
7703
7716
|
})
|
|
7704
7717
|
};
|
|
7705
7718
|
}
|
|
7706
|
-
var
|
|
7719
|
+
var Iu = ["data-pptx-transition-fragment"], Pu = Xo((0, d.defineComponent)({
|
|
7707
7720
|
__name: "FragmentedTransitionLayer",
|
|
7708
7721
|
props: {
|
|
7709
7722
|
layer: {},
|
|
@@ -7736,7 +7749,7 @@ var Cu = ["data-pptx-transition-fragment"], Iu = Xo((0, d.defineComponent)({
|
|
|
7736
7749
|
"data-pptx-transition-fragment": t.id,
|
|
7737
7750
|
class: "pptx-vue-transition-fragment",
|
|
7738
7751
|
style: (0, d.normalizeStyle)(o(t))
|
|
7739
|
-
}, [(0, d.createVNode)(
|
|
7752
|
+
}, [(0, d.createVNode)(Hc, {
|
|
7740
7753
|
slide: e.slide,
|
|
7741
7754
|
"canvas-size": e.canvasSize,
|
|
7742
7755
|
"media-data-urls": e.mediaDataUrls,
|
|
@@ -7746,9 +7759,9 @@ var Cu = ["data-pptx-transition-fragment"], Iu = Xo((0, d.defineComponent)({
|
|
|
7746
7759
|
"canvas-size",
|
|
7747
7760
|
"media-data-urls",
|
|
7748
7761
|
"scale"
|
|
7749
|
-
])], 12,
|
|
7762
|
+
])], 12, Iu))), 128));
|
|
7750
7763
|
}
|
|
7751
|
-
}), [["__scopeId", "data-v-f67781fa"]]),
|
|
7764
|
+
}), [["__scopeId", "data-v-f67781fa"]]), Tu = ["data-pptx-morph-crossfade"], _u = Xo((0, d.defineComponent)({
|
|
7752
7765
|
__name: "MorphExtraLayers",
|
|
7753
7766
|
props: {
|
|
7754
7767
|
liftedSlide: {},
|
|
@@ -7764,7 +7777,7 @@ var Cu = ["data-pptx-transition-fragment"], Iu = Xo((0, d.defineComponent)({
|
|
|
7764
7777
|
"data-pptx-transition-layer": "lifted",
|
|
7765
7778
|
"data-pptx-morph-lifted": "true",
|
|
7766
7779
|
style: (0, d.normalizeStyle)(e.liftedLayerStyle)
|
|
7767
|
-
}, [(0, d.createVNode)(
|
|
7780
|
+
}, [(0, d.createVNode)(Hc, {
|
|
7768
7781
|
slide: e.liftedSlide,
|
|
7769
7782
|
"canvas-size": e.canvasSize,
|
|
7770
7783
|
"media-data-urls": e.mediaDataUrls,
|
|
@@ -7785,7 +7798,7 @@ var Cu = ["data-pptx-transition-fragment"], Iu = Xo((0, d.defineComponent)({
|
|
|
7785
7798
|
"data-pptx-transition-layer": "outgoing",
|
|
7786
7799
|
"data-pptx-morph-outgoing": "true",
|
|
7787
7800
|
style: (0, d.normalizeStyle)(t.outgoingStyle)
|
|
7788
|
-
}, [(0, d.createVNode)(
|
|
7801
|
+
}, [(0, d.createVNode)(Hc, {
|
|
7789
7802
|
slide: t.outgoingSlide,
|
|
7790
7803
|
"canvas-size": e.canvasSize,
|
|
7791
7804
|
"media-data-urls": e.mediaDataUrls,
|
|
@@ -7802,7 +7815,7 @@ var Cu = ["data-pptx-transition-fragment"], Iu = Xo((0, d.defineComponent)({
|
|
|
7802
7815
|
"data-pptx-transition-layer": "lifted",
|
|
7803
7816
|
"data-pptx-morph-lifted": "true",
|
|
7804
7817
|
style: (0, d.normalizeStyle)(t.incomingStyle)
|
|
7805
|
-
}, [(0, d.createVNode)(
|
|
7818
|
+
}, [(0, d.createVNode)(Hc, {
|
|
7806
7819
|
slide: t.incomingSlide,
|
|
7807
7820
|
"canvas-size": e.canvasSize,
|
|
7808
7821
|
"media-data-urls": e.mediaDataUrls,
|
|
@@ -7814,11 +7827,11 @@ var Cu = ["data-pptx-transition-fragment"], Iu = Xo((0, d.defineComponent)({
|
|
|
7814
7827
|
"canvas-size",
|
|
7815
7828
|
"media-data-urls",
|
|
7816
7829
|
"scale"
|
|
7817
|
-
])], 4)], 12,
|
|
7818
|
-
}), [["__scopeId", "data-v-adf1a9bf"]]),
|
|
7830
|
+
])], 4)], 12, Tu))), 128))], 64))
|
|
7831
|
+
}), [["__scopeId", "data-v-adf1a9bf"]]), Ou = {
|
|
7819
7832
|
class: "pptx-vue-transition-overlay",
|
|
7820
7833
|
"data-pptx-transition-overlay": ""
|
|
7821
|
-
},
|
|
7834
|
+
}, Du = ["data-pptx-morph-outgoing", "data-pptx-transition-fragments"], Nu = ["data-pptx-morph-incoming", "data-pptx-transition-fragments"], Lu = Xo((0, d.defineComponent)({
|
|
7822
7835
|
__name: "PresentationTransitionOverlay",
|
|
7823
7836
|
props: {
|
|
7824
7837
|
outgoingSlide: {},
|
|
@@ -7830,7 +7843,7 @@ var Cu = ["data-pptx-transition-fragment"], Iu = Xo((0, d.defineComponent)({
|
|
|
7830
7843
|
},
|
|
7831
7844
|
emits: ["done"],
|
|
7832
7845
|
setup(e, { emit: t }) {
|
|
7833
|
-
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({
|
|
7834
7847
|
transition: () => n.transition,
|
|
7835
7848
|
outgoingSlide: () => n.outgoingSlide,
|
|
7836
7849
|
incomingSlide: () => n.incomingSlide,
|
|
@@ -7838,14 +7851,14 @@ var Cu = ["data-pptx-transition-fragment"], Iu = Xo((0, d.defineComponent)({
|
|
|
7838
7851
|
}), v = (0, d.computed)(() => l.value.outgoingOnTop ? 2 : 1), f = (0, d.computed)(() => l.value.outgoingOnTop ? 1 : 2), g = (0, d.computed)(() => ({
|
|
7839
7852
|
zIndex: i.value ? 2 : v.value,
|
|
7840
7853
|
animation: i.value ? void 0 : "none" !== l.value.outgoing ? l.value.outgoing : void 0
|
|
7841
|
-
})),
|
|
7854
|
+
})), y = (0, d.computed)(() => ({ zIndex: 3 })), h = (0, d.computed)(() => ({
|
|
7842
7855
|
zIndex: i.value ? 1 : f.value,
|
|
7843
7856
|
animation: i.value ? void 0 : "none" !== l.value.incoming ? l.value.incoming : void 0
|
|
7844
7857
|
}));
|
|
7845
7858
|
(0, d.watch)(() => n.transition, (e) => {
|
|
7846
7859
|
(0, u.applySlideTransitionSound)(e, (e) => n.mediaDataUrls.get(e), {
|
|
7847
|
-
play:
|
|
7848
|
-
stop:
|
|
7860
|
+
play: Xc,
|
|
7861
|
+
stop: Zc
|
|
7849
7862
|
});
|
|
7850
7863
|
}, { immediate: !0 });
|
|
7851
7864
|
let k = null;
|
|
@@ -7856,7 +7869,7 @@ var Cu = ["data-pptx-transition-fragment"], Iu = Xo((0, d.defineComponent)({
|
|
|
7856
7869
|
}, e);
|
|
7857
7870
|
}), (0, d.onBeforeUnmount)(function() {
|
|
7858
7871
|
null !== k && (clearTimeout(k), k = null);
|
|
7859
|
-
}), (t, n) => ((0, d.openBlock)(), (0, d.createElementBlock)("div",
|
|
7872
|
+
}), (t, n) => ((0, d.openBlock)(), (0, d.createElementBlock)("div", Ou, [
|
|
7860
7873
|
((0, d.openBlock)(), (0, d.createBlock)((0, d.resolveDynamicComponent)("style"), null, {
|
|
7861
7874
|
default: (0, d.withCtx)(() => [(0, d.createTextVNode)((0, d.toDisplayString)((0, d.unref)(u.SLIDE_TRANSITION_KEYFRAMES_CSS)), 1)]),
|
|
7862
7875
|
_: 1
|
|
@@ -7871,7 +7884,7 @@ var Cu = ["data-pptx-transition-fragment"], Iu = Xo((0, d.defineComponent)({
|
|
|
7871
7884
|
"data-pptx-morph-outgoing": (0, d.unref)(i) ? "true" : void 0,
|
|
7872
7885
|
"data-pptx-transition-fragments": !(0, d.unref)(i) && r.value?.outgoing ? r.value.outgoing.keyframesName : void 0,
|
|
7873
7886
|
style: (0, d.normalizeStyle)(g.value)
|
|
7874
|
-
}, [!(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, {
|
|
7875
7888
|
key: 0,
|
|
7876
7889
|
layer: r.value.outgoing,
|
|
7877
7890
|
slide: e.outgoingSlide,
|
|
@@ -7885,7 +7898,7 @@ var Cu = ["data-pptx-transition-fragment"], Iu = Xo((0, d.defineComponent)({
|
|
|
7885
7898
|
"canvas-size",
|
|
7886
7899
|
"media-data-urls",
|
|
7887
7900
|
"scale"
|
|
7888
|
-
])) : ((0, d.openBlock)(), (0, d.createBlock)(
|
|
7901
|
+
])) : ((0, d.openBlock)(), (0, d.createBlock)(Hc, {
|
|
7889
7902
|
key: 1,
|
|
7890
7903
|
slide: (0, d.unref)(i) ? (0, d.unref)(s) : e.outgoingSlide,
|
|
7891
7904
|
"canvas-size": e.canvasSize,
|
|
@@ -7900,14 +7913,14 @@ var Cu = ["data-pptx-transition-fragment"], Iu = Xo((0, d.defineComponent)({
|
|
|
7900
7913
|
"scale",
|
|
7901
7914
|
"preserve-element-ids",
|
|
7902
7915
|
"transparent-background"
|
|
7903
|
-
]))], 12,
|
|
7916
|
+
]))], 12, Du),
|
|
7904
7917
|
(0, d.createElementVNode)("div", {
|
|
7905
7918
|
class: "pptx-vue-transition-layer",
|
|
7906
7919
|
"data-pptx-transition-layer": "incoming",
|
|
7907
7920
|
"data-pptx-morph-incoming": (0, d.unref)(i) ? "true" : void 0,
|
|
7908
7921
|
"data-pptx-transition-fragments": !(0, d.unref)(i) && r.value?.incoming ? r.value.incoming.keyframesName : void 0,
|
|
7909
|
-
style: (0, d.normalizeStyle)(
|
|
7910
|
-
}, [!(0, d.unref)(i) && r.value?.incoming ? ((0, d.openBlock)(), (0, d.createBlock)(
|
|
7922
|
+
style: (0, d.normalizeStyle)(h.value)
|
|
7923
|
+
}, [!(0, d.unref)(i) && r.value?.incoming ? ((0, d.openBlock)(), (0, d.createBlock)(Pu, {
|
|
7911
7924
|
key: 0,
|
|
7912
7925
|
layer: r.value.incoming,
|
|
7913
7926
|
slide: e.incomingSlide,
|
|
@@ -7921,7 +7934,7 @@ var Cu = ["data-pptx-transition-fragment"], Iu = Xo((0, d.defineComponent)({
|
|
|
7921
7934
|
"canvas-size",
|
|
7922
7935
|
"media-data-urls",
|
|
7923
7936
|
"scale"
|
|
7924
|
-
])) : ((0, d.openBlock)(), (0, d.createBlock)(
|
|
7937
|
+
])) : ((0, d.openBlock)(), (0, d.createBlock)(Hc, {
|
|
7925
7938
|
key: 1,
|
|
7926
7939
|
slide: e.incomingSlide,
|
|
7927
7940
|
"canvas-size": e.canvasSize,
|
|
@@ -7934,10 +7947,10 @@ var Cu = ["data-pptx-transition-fragment"], Iu = Xo((0, d.defineComponent)({
|
|
|
7934
7947
|
"media-data-urls",
|
|
7935
7948
|
"scale",
|
|
7936
7949
|
"preserve-element-ids"
|
|
7937
|
-
]))], 12,
|
|
7938
|
-
(0, d.createVNode)(
|
|
7950
|
+
]))], 12, Nu),
|
|
7951
|
+
(0, d.createVNode)(_u, {
|
|
7939
7952
|
"lifted-slide": (0, d.unref)(c),
|
|
7940
|
-
"lifted-layer-style":
|
|
7953
|
+
"lifted-layer-style": y.value,
|
|
7941
7954
|
"crossfade-groups": (0, d.unref)(p),
|
|
7942
7955
|
"canvas-size": e.canvasSize,
|
|
7943
7956
|
"media-data-urls": e.mediaDataUrls,
|
|
@@ -7953,16 +7966,16 @@ var Cu = ["data-pptx-transition-fragment"], Iu = Xo((0, d.defineComponent)({
|
|
|
7953
7966
|
]));
|
|
7954
7967
|
}
|
|
7955
7968
|
}), [["__scopeId", "data-v-be6bfe13"]]);
|
|
7956
|
-
function
|
|
7969
|
+
function Au(e) {
|
|
7957
7970
|
const t = Math.max(0, Math.floor(e / 1e3)), n = Math.floor(t / 60), o = t % 60;
|
|
7958
7971
|
return `${String(n)}:${String(o).padStart(2, "0")}`;
|
|
7959
7972
|
}
|
|
7960
|
-
function
|
|
7973
|
+
function Mu(e, t, n = 0, o = null) {
|
|
7961
7974
|
if (null === e) return 0;
|
|
7962
7975
|
let l = n;
|
|
7963
7976
|
return null !== o && (l += t - o), Math.max(0, t - e - l);
|
|
7964
7977
|
}
|
|
7965
|
-
function
|
|
7978
|
+
function Fu(e = {}) {
|
|
7966
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);
|
|
7967
7980
|
let c = 0, u = null;
|
|
7968
7981
|
const p = (0, d.ref)(0);
|
|
@@ -7975,22 +7988,22 @@ function Mu(e = {}) {
|
|
|
7975
7988
|
p.value += 1;
|
|
7976
7989
|
}, n));
|
|
7977
7990
|
}
|
|
7978
|
-
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));
|
|
7979
7992
|
return (0, d.onScopeDispose)(v), {
|
|
7980
7993
|
rehearsing: o,
|
|
7981
7994
|
paused: l,
|
|
7982
7995
|
showSummary: a,
|
|
7983
7996
|
recordedTimings: r,
|
|
7984
7997
|
slideElapsedMs: g,
|
|
7985
|
-
totalElapsedMs:
|
|
7986
|
-
totalRecordedMs:
|
|
7998
|
+
totalElapsedMs: y,
|
|
7999
|
+
totalRecordedMs: h,
|
|
7987
8000
|
start: function() {
|
|
7988
8001
|
const e = t();
|
|
7989
8002
|
o.value = !0, l.value = !1, a.value = !1, r.value = {}, c = 0, u = null, i.value = e, s.value = e, f();
|
|
7990
8003
|
},
|
|
7991
8004
|
recordCurrentSlideTime: function(e) {
|
|
7992
8005
|
if (null === s.value) return;
|
|
7993
|
-
const n =
|
|
8006
|
+
const n = Mu(s.value, t(), c, u);
|
|
7994
8007
|
r.value = {
|
|
7995
8008
|
...r.value,
|
|
7996
8009
|
[e]: n
|
|
@@ -8010,18 +8023,18 @@ function Mu(e = {}) {
|
|
|
8010
8023
|
}
|
|
8011
8024
|
};
|
|
8012
8025
|
}
|
|
8013
|
-
var
|
|
8026
|
+
var zu = {
|
|
8014
8027
|
valid: 0,
|
|
8015
8028
|
unverified: 1,
|
|
8016
8029
|
unknownCA: 2,
|
|
8017
8030
|
expired: 3,
|
|
8018
8031
|
invalid: 4
|
|
8019
8032
|
};
|
|
8020
|
-
function
|
|
8033
|
+
function Ru(e) {
|
|
8021
8034
|
const t = (0, d.computed)(() => (0, d.toValue)(e) ?? []), n = (0, d.computed)(() => t.value.length > 0), o = (0, d.computed)(() => {
|
|
8022
8035
|
if (0 === t.value.length) return;
|
|
8023
8036
|
let e = "valid";
|
|
8024
|
-
for (const n of t.value)
|
|
8037
|
+
for (const n of t.value) zu[n.status] > zu[e] && (e = n.status);
|
|
8025
8038
|
return e;
|
|
8026
8039
|
});
|
|
8027
8040
|
return {
|
|
@@ -8031,26 +8044,26 @@ function zu(e) {
|
|
|
8031
8044
|
overall: (0, d.computed)(() => n.value ? "invalid" === o.value ? "invalid" : "signed" : "unsigned")
|
|
8032
8045
|
};
|
|
8033
8046
|
}
|
|
8034
|
-
var
|
|
8047
|
+
var Vu = {
|
|
8035
8048
|
error: 0,
|
|
8036
8049
|
warning: 1,
|
|
8037
8050
|
tip: 2
|
|
8038
8051
|
};
|
|
8039
|
-
function
|
|
8052
|
+
function ju(e, t = {}) {
|
|
8040
8053
|
const n = (0, d.computed)(() => {
|
|
8041
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 = [];
|
|
8042
8055
|
for (let e = 0; e < n.length; e++) {
|
|
8043
8056
|
const t = n[e];
|
|
8044
|
-
i.push(...(0,
|
|
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));
|
|
8045
8058
|
}
|
|
8046
|
-
return i.push(...(0,
|
|
8059
|
+
return i.push(...(0, h.checkDuplicateTitles)(n)), i.sort((e, t) => e.slideIndex - t.slideIndex || Vu[e.severity] - Vu[t.severity]), i;
|
|
8047
8060
|
});
|
|
8048
8061
|
return {
|
|
8049
8062
|
issues: n,
|
|
8050
8063
|
issueCount: (0, d.computed)(() => n.value.length)
|
|
8051
8064
|
};
|
|
8052
8065
|
}
|
|
8053
|
-
function
|
|
8066
|
+
function $u(e) {
|
|
8054
8067
|
const { selectedElements: t, selectedElementIds: n, activeSlideIndex: o, slides: l, canvasSize: a, pushHistory: r } = e;
|
|
8055
8068
|
function i(e) {
|
|
8056
8069
|
if (0 === e.size) return;
|
|
@@ -8085,7 +8098,7 @@ function ju(e) {
|
|
|
8085
8098
|
const e = t.value, a = o.value, i = l.value[a];
|
|
8086
8099
|
if (e.length < 2 || !i) return;
|
|
8087
8100
|
if (!e.every((e) => (0, u.canInteractWithElement)(e, "group"))) return;
|
|
8088
|
-
const { elements: s, groupId: c } = (0, u.groupElements)(i.elements, e.map((e) => e.id), (0,
|
|
8101
|
+
const { elements: s, groupId: c } = (0, u.groupElements)(i.elements, e.map((e) => e.id), (0, h.createEditorId)("grp"));
|
|
8089
8102
|
if (null === c) return;
|
|
8090
8103
|
r();
|
|
8091
8104
|
const d = l.value.slice();
|
|
@@ -8108,18 +8121,18 @@ function ju(e) {
|
|
|
8108
8121
|
}
|
|
8109
8122
|
};
|
|
8110
8123
|
}
|
|
8111
|
-
var
|
|
8124
|
+
var Wu = {
|
|
8112
8125
|
setTimer: (e, t) => setTimeout(e, t),
|
|
8113
8126
|
clearTimer: (e) => {
|
|
8114
8127
|
clearTimeout(e);
|
|
8115
8128
|
}
|
|
8116
8129
|
};
|
|
8117
|
-
function
|
|
8118
|
-
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);
|
|
8119
8132
|
let p = null, m = null, v = null;
|
|
8120
8133
|
const f = () => !1 !== (0, d.toValue)(o), g = () => {
|
|
8121
8134
|
null !== p && (r.clearTimer(p), p = null);
|
|
8122
|
-
},
|
|
8135
|
+
}, y = async () => {
|
|
8123
8136
|
m && await m.catch(() => {}), g(), i.value = "saving";
|
|
8124
8137
|
const e = (async () => {
|
|
8125
8138
|
try {
|
|
@@ -8134,7 +8147,7 @@ function Wu(e) {
|
|
|
8134
8147
|
} finally {
|
|
8135
8148
|
m = null;
|
|
8136
8149
|
}
|
|
8137
|
-
},
|
|
8150
|
+
}, h = () => {
|
|
8138
8151
|
g();
|
|
8139
8152
|
const e = (0, u.nextAutosaveDelayMs)({
|
|
8140
8153
|
intervalMs: (0, d.toValue)(l),
|
|
@@ -8142,23 +8155,23 @@ function Wu(e) {
|
|
|
8142
8155
|
now: Date.now()
|
|
8143
8156
|
});
|
|
8144
8157
|
p = r.setTimer(() => {
|
|
8145
|
-
p = null, f() && c.value &&
|
|
8158
|
+
p = null, f() && c.value && y().catch(() => {});
|
|
8146
8159
|
}, e);
|
|
8147
8160
|
};
|
|
8148
8161
|
return (0, d.watch)(n ? [t, n] : [t], () => {
|
|
8149
|
-
c.value && null !== v || (v = Date.now()), c.value = !0, f() &&
|
|
8162
|
+
c.value && null !== v || (v = Date.now()), c.value = !0, f() && h();
|
|
8150
8163
|
}, { flush: "sync" }), (0, d.watch)(() => (0, d.toValue)(l), () => {
|
|
8151
|
-
null !== p &&
|
|
8164
|
+
null !== p && h();
|
|
8152
8165
|
}), (0, d.onScopeDispose)(() => {
|
|
8153
8166
|
g();
|
|
8154
8167
|
}), {
|
|
8155
8168
|
status: i,
|
|
8156
8169
|
lastSavedAt: s,
|
|
8157
|
-
saveNow: () =>
|
|
8170
|
+
saveNow: () => y(),
|
|
8158
8171
|
isDirty: c
|
|
8159
8172
|
};
|
|
8160
8173
|
}
|
|
8161
|
-
function
|
|
8174
|
+
function Hu(e, t) {
|
|
8162
8175
|
const n = (0, d.ref)(!1), o = (0, u.createCollaborationLivePatcher)();
|
|
8163
8176
|
let l = null, a = null, r = null, i = !1, s = "", c = null, p = null;
|
|
8164
8177
|
const m = (0, u.createWriteBackScheduler)({
|
|
@@ -8183,7 +8196,7 @@ function Uu(e, t) {
|
|
|
8183
8196
|
i = !1;
|
|
8184
8197
|
}
|
|
8185
8198
|
}
|
|
8186
|
-
const
|
|
8199
|
+
const y = (0, d.watch)(e.slides, f, { deep: !1 }), h = e.loadVersion ? (k = {
|
|
8187
8200
|
loadVersion: e.loadVersion,
|
|
8188
8201
|
getYDoc: () => l,
|
|
8189
8202
|
isConnected: () => !r?.externalSession && "connected" === t.value,
|
|
@@ -8211,18 +8224,18 @@ function Uu(e, t) {
|
|
|
8211
8224
|
},
|
|
8212
8225
|
attach: function(e, d) {
|
|
8213
8226
|
if (l = e, a = d, !r) return;
|
|
8214
|
-
const
|
|
8215
|
-
if (
|
|
8227
|
+
const y = r;
|
|
8228
|
+
if (y.externalSession) return void (c = (0, u.observeExternalCollaborationReadiness)(y.externalSession, {
|
|
8216
8229
|
gate: v,
|
|
8217
8230
|
livePatcher: o,
|
|
8218
8231
|
factories: a,
|
|
8219
|
-
role:
|
|
8220
|
-
sessionIntent:
|
|
8232
|
+
role: y.role,
|
|
8233
|
+
sessionIntent: y.sessionIntent,
|
|
8221
8234
|
onStatus: (e) => {
|
|
8222
8235
|
t.value = e;
|
|
8223
8236
|
},
|
|
8224
8237
|
adoptSlides: (e) => {
|
|
8225
|
-
g(e), m.schedule(
|
|
8238
|
+
g(e), m.schedule(y);
|
|
8226
8239
|
},
|
|
8227
8240
|
onReady: ({ seedEmptyRoom: e }) => {
|
|
8228
8241
|
e && (s = ""), f();
|
|
@@ -8232,27 +8245,27 @@ function Uu(e, t) {
|
|
|
8232
8245
|
n.value = e;
|
|
8233
8246
|
}
|
|
8234
8247
|
}));
|
|
8235
|
-
o.configure("viewer" ===
|
|
8248
|
+
o.configure("viewer" === y.role ? null : l, a), p = (0, u.observeYDocSlides)(l, (e, t) => {
|
|
8236
8249
|
if (t?.origin === u.LOCAL_SYNC_ORIGIN || i || !l) return;
|
|
8237
8250
|
const n = (0, u.readSlidesFromYDoc)(l);
|
|
8238
|
-
n.length && (g(n), m.schedule(
|
|
8251
|
+
n.length && (g(n), m.schedule(y));
|
|
8239
8252
|
});
|
|
8240
|
-
const
|
|
8241
|
-
|
|
8253
|
+
const h = (0, u.readSlidesFromYDoc)(l);
|
|
8254
|
+
h.length && g(h);
|
|
8242
8255
|
},
|
|
8243
8256
|
stop: b,
|
|
8244
8257
|
dispose: () => {
|
|
8245
|
-
b(),
|
|
8258
|
+
b(), y(), h?.(), x?.();
|
|
8246
8259
|
}
|
|
8247
8260
|
};
|
|
8248
8261
|
}
|
|
8249
|
-
var
|
|
8250
|
-
function
|
|
8251
|
-
if (void 0 === e) return
|
|
8262
|
+
var Gu = 1e5;
|
|
8263
|
+
function Ku(e) {
|
|
8264
|
+
if (void 0 === e) return Gu;
|
|
8252
8265
|
const t = "number" == typeof e ? e : e.value;
|
|
8253
|
-
return t > 0 ? t :
|
|
8266
|
+
return t > 0 ? t : Gu;
|
|
8254
8267
|
}
|
|
8255
|
-
function
|
|
8268
|
+
function Yu(e) {
|
|
8256
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() {
|
|
8257
8270
|
const e = (0, u.createPresenceProjector)();
|
|
8258
8271
|
let t = [];
|
|
@@ -8290,7 +8303,7 @@ function Ku(e) {
|
|
|
8290
8303
|
let s = null, c = null, p = 0, m = null;
|
|
8291
8304
|
function v() {
|
|
8292
8305
|
if (!s) return;
|
|
8293
|
-
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);
|
|
8294
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));
|
|
8295
8308
|
}
|
|
8296
8309
|
return {
|
|
@@ -8324,8 +8337,8 @@ function Ku(e) {
|
|
|
8324
8337
|
}
|
|
8325
8338
|
};
|
|
8326
8339
|
}
|
|
8327
|
-
function
|
|
8328
|
-
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)({
|
|
8329
8342
|
authorizedCanEdit: (0, d.toValue)(e.canEdit) ?? !0,
|
|
8330
8343
|
configured: Boolean((0, d.toValue)(e.collaboration) || l.value),
|
|
8331
8344
|
readOnly: i.readOnly.value,
|
|
@@ -8334,10 +8347,10 @@ function Yu(e) {
|
|
|
8334
8347
|
status: t.value,
|
|
8335
8348
|
remoteUsers: r.remoteUsers.value
|
|
8336
8349
|
})), c = (0, d.computed)(() => r.remotePresences.value.length + (o.value ? 1 : 0));
|
|
8337
|
-
let p = null, m = null, v = null, f = null, g = null,
|
|
8338
|
-
async function
|
|
8350
|
+
let p = null, m = null, v = null, f = null, g = null, y = 0;
|
|
8351
|
+
async function h(e) {
|
|
8339
8352
|
k();
|
|
8340
|
-
const n = ++
|
|
8353
|
+
const n = ++y;
|
|
8341
8354
|
g = e, l.value = e, a.value = e.role, i.begin(e);
|
|
8342
8355
|
const s = e.externalSession;
|
|
8343
8356
|
try {
|
|
@@ -8346,7 +8359,7 @@ function Yu(e) {
|
|
|
8346
8359
|
if (!s && "websocket" === l && (0, u.isMixedContentBlocked)(e.serverUrl)) throw new Error("Mixed-content connection blocked");
|
|
8347
8360
|
t.value = "connecting";
|
|
8348
8361
|
const a = await import("yjs");
|
|
8349
|
-
if (n !==
|
|
8362
|
+
if (n !== y) return;
|
|
8350
8363
|
const c = s ? null : new a.Doc(), d = s?.doc ?? c;
|
|
8351
8364
|
p = c;
|
|
8352
8365
|
const g = {
|
|
@@ -8364,9 +8377,9 @@ function Yu(e) {
|
|
|
8364
8377
|
v = t.dispose, r.start(t.awareness, e), o.value = !0, i.attach(d, g);
|
|
8365
8378
|
return;
|
|
8366
8379
|
}
|
|
8367
|
-
const
|
|
8380
|
+
const h = await async function(e, t, n) {
|
|
8368
8381
|
if ("webrtc" === e) {
|
|
8369
|
-
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, {
|
|
8370
8383
|
signaling: t.signaling?.length ? t.signaling : void 0,
|
|
8371
8384
|
password: t.authToken || void 0
|
|
8372
8385
|
}), l = (0, u.createDepartureChannel)(t.roomId, o.awareness);
|
|
@@ -8399,25 +8412,25 @@ function Yu(e) {
|
|
|
8399
8412
|
}
|
|
8400
8413
|
};
|
|
8401
8414
|
}(l, e, c);
|
|
8402
|
-
if (n !==
|
|
8403
|
-
m =
|
|
8415
|
+
if (n !== y) return h.destroy(), void c.destroy();
|
|
8416
|
+
m = h, r.start(h.awareness, e), i.attach(d, g), h.onSynced(() => i.gate.open()), h.syncedNow ? i.gate.open() : i.gate.arm(), h.onStatus((e) => {
|
|
8404
8417
|
e ? (null !== f && clearTimeout(f), f = null, t.value = "connected") : o.value && (t.value = "disconnected", i.gate.reset(), i.gate.arm());
|
|
8405
|
-
}), "webrtc" === l ||
|
|
8418
|
+
}), "webrtc" === l || h.connectedNow ? t.value = "connected" : f = setTimeout(() => {
|
|
8406
8419
|
f = null, "connected" !== t.value && (k(), t.value = "error");
|
|
8407
8420
|
}, u.CONNECTION_TIMEOUT_MS), o.value = !0;
|
|
8408
8421
|
} catch {
|
|
8409
|
-
if (n !==
|
|
8422
|
+
if (n !== y) return;
|
|
8410
8423
|
k(), t.value = "error";
|
|
8411
8424
|
}
|
|
8412
8425
|
}
|
|
8413
8426
|
function k() {
|
|
8414
|
-
|
|
8427
|
+
y++, i.stop(), null !== f && clearTimeout(f), f = null, r.stop(), v?.(), v = null, m?.destroy(), p?.destroy(), m = null, p = null, t.value = "disconnected", o.value = !1, l.value = null, a.value = void 0;
|
|
8415
8428
|
}
|
|
8416
8429
|
async function x() {
|
|
8417
|
-
g && await
|
|
8430
|
+
g && await h(g);
|
|
8418
8431
|
}
|
|
8419
8432
|
(0, d.watch)(() => (0, d.toValue)(e.collaboration), (e) => {
|
|
8420
|
-
e && e !== l.value ?
|
|
8433
|
+
e && e !== l.value ? h(e) : !e && l.value && k();
|
|
8421
8434
|
}, { immediate: !0 });
|
|
8422
8435
|
const b = (0, u.registerCollaborationTeardown)({
|
|
8423
8436
|
leave: k,
|
|
@@ -8446,14 +8459,14 @@ function Yu(e) {
|
|
|
8446
8459
|
setSelection: r.setSelection,
|
|
8447
8460
|
setActiveSlide: r.setActiveSlide,
|
|
8448
8461
|
followUser: r.followUser,
|
|
8449
|
-
start:
|
|
8462
|
+
start: h,
|
|
8450
8463
|
stop: k,
|
|
8451
8464
|
retry: x,
|
|
8452
8465
|
livePatcher: i.livePatcher
|
|
8453
8466
|
};
|
|
8454
8467
|
}
|
|
8455
|
-
function
|
|
8456
|
-
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:
|
|
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({
|
|
8457
8470
|
collaboration: p,
|
|
8458
8471
|
slides: t,
|
|
8459
8472
|
loadVersion: n,
|
|
@@ -8491,7 +8504,7 @@ function qu(e) {
|
|
|
8491
8504
|
role: "collaborator",
|
|
8492
8505
|
...e
|
|
8493
8506
|
};
|
|
8494
|
-
w.value = t, x.start(t),
|
|
8507
|
+
w.value = t, x.start(t), h(t), b.value = !1;
|
|
8495
8508
|
},
|
|
8496
8509
|
onShareStop: function() {
|
|
8497
8510
|
w.value = null, x.stop(), k(), b.value = !1;
|
|
@@ -8513,17 +8526,17 @@ function qu(e) {
|
|
|
8513
8526
|
B.value = e;
|
|
8514
8527
|
const t = {
|
|
8515
8528
|
...e,
|
|
8516
|
-
userName:
|
|
8529
|
+
userName: y() ?? "Presenter",
|
|
8517
8530
|
role: "owner"
|
|
8518
8531
|
};
|
|
8519
|
-
w.value = t, x.start(t),
|
|
8532
|
+
w.value = t, x.start(t), h(t), E.value = !1;
|
|
8520
8533
|
},
|
|
8521
8534
|
onBroadcastStop: function() {
|
|
8522
8535
|
w.value = null, B.value = null, x.stop(), k(), E.value = !1;
|
|
8523
8536
|
}
|
|
8524
8537
|
};
|
|
8525
8538
|
}
|
|
8526
|
-
function
|
|
8539
|
+
function Zu(e) {
|
|
8527
8540
|
const t = (0, d.computed)(() => (0, d.toValue)(e.comments) ?? []);
|
|
8528
8541
|
return {
|
|
8529
8542
|
slideComments: t,
|
|
@@ -8558,12 +8571,12 @@ function Xu(e) {
|
|
|
8558
8571
|
}
|
|
8559
8572
|
};
|
|
8560
8573
|
}
|
|
8561
|
-
function
|
|
8574
|
+
function Ju(e) {
|
|
8562
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 ?? []);
|
|
8563
8576
|
return {
|
|
8564
8577
|
showComments: r,
|
|
8565
8578
|
activeComments: i,
|
|
8566
|
-
commentsApi:
|
|
8579
|
+
commentsApi: Zu({
|
|
8567
8580
|
comments: i,
|
|
8568
8581
|
activeSlideIndex: n,
|
|
8569
8582
|
authorName: l
|
|
@@ -8584,7 +8597,7 @@ function Zu(e) {
|
|
|
8584
8597
|
}
|
|
8585
8598
|
};
|
|
8586
8599
|
}
|
|
8587
|
-
async function
|
|
8600
|
+
async function Qu(e, t = {}) {
|
|
8588
8601
|
const { default: n } = await import("html2canvas-pro"), o = t.onclone;
|
|
8589
8602
|
return n(e, {
|
|
8590
8603
|
...t,
|
|
@@ -8593,7 +8606,7 @@ async function Ju(e, t = {}) {
|
|
|
8593
8606
|
}
|
|
8594
8607
|
});
|
|
8595
8608
|
}
|
|
8596
|
-
function
|
|
8609
|
+
function ed(e, t, n) {
|
|
8597
8610
|
const o = t?.el.tableData;
|
|
8598
8611
|
if (!t || !o) return;
|
|
8599
8612
|
const l = (e) => {
|
|
@@ -8606,22 +8619,22 @@ function Qu(e, t, n) {
|
|
|
8606
8619
|
}, { rowIndex: r, columnIndex: i } = t.sel;
|
|
8607
8620
|
switch (e) {
|
|
8608
8621
|
case "table-insert-row-above":
|
|
8609
|
-
a(
|
|
8622
|
+
a(vu(t.el, r, "above"));
|
|
8610
8623
|
break;
|
|
8611
8624
|
case "table-insert-row-below":
|
|
8612
|
-
a(
|
|
8625
|
+
a(vu(t.el, r, "below"));
|
|
8613
8626
|
break;
|
|
8614
8627
|
case "table-delete-row":
|
|
8615
|
-
a(
|
|
8628
|
+
a(fu(t.el, r));
|
|
8616
8629
|
break;
|
|
8617
8630
|
case "table-insert-col-left":
|
|
8618
|
-
a(
|
|
8631
|
+
a(gu(t.el, i, "left"));
|
|
8619
8632
|
break;
|
|
8620
8633
|
case "table-insert-col-right":
|
|
8621
|
-
a(
|
|
8634
|
+
a(gu(t.el, i, "right"));
|
|
8622
8635
|
break;
|
|
8623
8636
|
case "table-delete-col":
|
|
8624
|
-
a(
|
|
8637
|
+
a(yu(t.el, i));
|
|
8625
8638
|
break;
|
|
8626
8639
|
case "table-merge-right":
|
|
8627
8640
|
l(function(e, t, n) {
|
|
@@ -8653,8 +8666,8 @@ function Qu(e, t, n) {
|
|
|
8653
8666
|
}(o, r, i));
|
|
8654
8667
|
}
|
|
8655
8668
|
}
|
|
8656
|
-
function
|
|
8657
|
-
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:
|
|
8669
|
+
function td(e) {
|
|
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)({
|
|
8658
8671
|
open: !1,
|
|
8659
8672
|
x: 0,
|
|
8660
8673
|
y: 0,
|
|
@@ -8735,10 +8748,10 @@ function ed(e) {
|
|
|
8735
8748
|
g(n);
|
|
8736
8749
|
break;
|
|
8737
8750
|
case "copy":
|
|
8738
|
-
|
|
8751
|
+
y(n);
|
|
8739
8752
|
break;
|
|
8740
8753
|
case "paste":
|
|
8741
|
-
|
|
8754
|
+
h();
|
|
8742
8755
|
break;
|
|
8743
8756
|
case "duplicate":
|
|
8744
8757
|
f.duplicateElement(n);
|
|
@@ -8789,7 +8802,7 @@ function ed(e) {
|
|
|
8789
8802
|
const l = o.getBoundingClientRect(), a = l.width || o.offsetWidth, r = l.height || o.offsetHeight;
|
|
8790
8803
|
await (0, u.saveElementAsPicture)(o, a, r, document, (0, u.elementPictureFilename)(t, n), {
|
|
8791
8804
|
scale: 2,
|
|
8792
|
-
html2canvasFallback: (e, t) =>
|
|
8805
|
+
html2canvasFallback: (e, t) => Qu(o, {
|
|
8793
8806
|
scale: t.width / (e.width || 1),
|
|
8794
8807
|
x: e.x,
|
|
8795
8808
|
y: e.y,
|
|
@@ -8816,14 +8829,14 @@ function ed(e) {
|
|
|
8816
8829
|
break;
|
|
8817
8830
|
default: {
|
|
8818
8831
|
const t = (0, u.mergeOperationForCommand)(e);
|
|
8819
|
-
t ? T?.merge(t) :
|
|
8832
|
+
t ? T?.merge(t) : ed(e, D.value, f);
|
|
8820
8833
|
break;
|
|
8821
8834
|
}
|
|
8822
8835
|
}
|
|
8823
8836
|
}
|
|
8824
8837
|
};
|
|
8825
8838
|
}
|
|
8826
|
-
function
|
|
8839
|
+
function nd(e) {
|
|
8827
8840
|
const { customShows: t, slides: n, activeSlideIndex: o, pushHistory: l } = e, a = (0, d.computed)(() => {
|
|
8828
8841
|
const e = n.value[o.value];
|
|
8829
8842
|
return e?.rId && e.rId.length > 0 ? e.rId : void 0;
|
|
@@ -8886,8 +8899,8 @@ function td(e) {
|
|
|
8886
8899
|
activeSlideRId: a
|
|
8887
8900
|
};
|
|
8888
8901
|
}
|
|
8889
|
-
function
|
|
8890
|
-
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({
|
|
8891
8904
|
customShows: t,
|
|
8892
8905
|
slides: n,
|
|
8893
8906
|
activeSlideIndex: o,
|
|
@@ -8930,7 +8943,7 @@ function nd(e) {
|
|
|
8930
8943
|
}
|
|
8931
8944
|
};
|
|
8932
8945
|
}
|
|
8933
|
-
function
|
|
8946
|
+
function ld(e) {
|
|
8934
8947
|
const { coreProperties: t, customProperties: n, appProperties: o } = e, l = (0, d.ref)(!1);
|
|
8935
8948
|
return {
|
|
8936
8949
|
propertiesOpen: l,
|
|
@@ -8945,18 +8958,18 @@ function od(e) {
|
|
|
8945
8958
|
}
|
|
8946
8959
|
};
|
|
8947
8960
|
}
|
|
8948
|
-
function
|
|
8961
|
+
function ad(e, t, n) {
|
|
8949
8962
|
const o = new u.EditorHistory({ maxDepth: n?.maxDepth ?? 120 }), l = (0, d.shallowRef)(0), a = () => {
|
|
8950
8963
|
l.value++;
|
|
8951
8964
|
}, r = (e) => {
|
|
8952
8965
|
const t = {};
|
|
8953
|
-
for (const [n, o] of Object.entries(e)) t[n] = o.map(
|
|
8966
|
+
for (const [n, o] of Object.entries(e)) t[n] = o.map(h.cloneElement);
|
|
8954
8967
|
return t;
|
|
8955
8968
|
}, i = () => ({
|
|
8956
|
-
slides: e.value.map(
|
|
8969
|
+
slides: e.value.map(h.cloneSlide),
|
|
8957
8970
|
template: r(t?.value ?? {})
|
|
8958
8971
|
}), s = (n) => {
|
|
8959
|
-
e.value = n.slides.map(
|
|
8972
|
+
e.value = n.slides.map(h.cloneSlide), t && (t.value = r(n.template));
|
|
8960
8973
|
};
|
|
8961
8974
|
return {
|
|
8962
8975
|
canUndo: (0, d.computed)(() => (l.value, o.canUndo)),
|
|
@@ -8982,17 +8995,17 @@ function ld(e, t, n) {
|
|
|
8982
8995
|
}
|
|
8983
8996
|
};
|
|
8984
8997
|
}
|
|
8985
|
-
function
|
|
8998
|
+
function rd(e, t) {
|
|
8986
8999
|
return 0 === t.size ? e : (0, u.applyReroutedConnectors)(e, (0, u.rerouteConnectorsForMovedElements)(e, t));
|
|
8987
9000
|
}
|
|
8988
|
-
function
|
|
9001
|
+
function id(e) {
|
|
8989
9002
|
const { slides: t, activeSlideIndex: n, templateElementsBySlideId: o } = e;
|
|
8990
9003
|
return function(e) {
|
|
8991
9004
|
if (0 === e.size) return;
|
|
8992
9005
|
const l = n.value, a = function(e, t, n) {
|
|
8993
9006
|
const o = e[t];
|
|
8994
9007
|
if (!o) return e;
|
|
8995
|
-
const l =
|
|
9008
|
+
const l = rd(o.elements, n);
|
|
8996
9009
|
if (l === o.elements) return e;
|
|
8997
9010
|
const a = e.slice();
|
|
8998
9011
|
return a[t] = {
|
|
@@ -9003,12 +9016,12 @@ function rd(e) {
|
|
|
9003
9016
|
a !== t.value && (t.value = a);
|
|
9004
9017
|
const r = t.value[l], i = r ? o.value[r.id] : void 0;
|
|
9005
9018
|
if (!r || !i) return;
|
|
9006
|
-
const s =
|
|
9019
|
+
const s = rd(i, e);
|
|
9007
9020
|
s !== i && (o.value = (0, u.setTemplateElements)(o.value, r.id, s));
|
|
9008
9021
|
};
|
|
9009
9022
|
}
|
|
9010
|
-
function
|
|
9011
|
-
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:
|
|
9023
|
+
function sd(e) {
|
|
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);
|
|
9012
9025
|
function j() {
|
|
9013
9026
|
a.value = (r.value?.elements ?? []).map((e) => e.id);
|
|
9014
9027
|
}
|
|
@@ -9021,7 +9034,7 @@ function id(e) {
|
|
|
9021
9034
|
e && g(e);
|
|
9022
9035
|
}
|
|
9023
9036
|
const U = function(e) {
|
|
9024
|
-
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({
|
|
9025
9038
|
slides: o,
|
|
9026
9039
|
activeSlideIndex: n,
|
|
9027
9040
|
templateElementsBySlideId: l
|
|
@@ -9064,21 +9077,21 @@ function id(e) {
|
|
|
9064
9077
|
pushHistory: p
|
|
9065
9078
|
});
|
|
9066
9079
|
function H(e) {
|
|
9067
|
-
const t = D.value[0], n = (t && (0,
|
|
9080
|
+
const t = D.value[0], n = (t && (0, h.hasTextProperties)(t) ? t.textStyle?.fontSize : void 0) ?? (0, u.textFontSizePtToPx)(18), o = (0, u.stepFontSizePt)((0, u.textFontSizePxToPt)(n), e);
|
|
9068
9081
|
L({ fontSize: (0, u.textFontSizePtToPx)(o) });
|
|
9069
9082
|
}
|
|
9070
9083
|
function G(e) {
|
|
9071
9084
|
const t = (r.value?.elements ?? []).map((e) => e.id), n = (0, u.cycleSelectableElement)(t, a.value[0] ?? null, e);
|
|
9072
9085
|
n && N(n, !1);
|
|
9073
9086
|
}
|
|
9074
|
-
const K =
|
|
9087
|
+
const K = au({
|
|
9075
9088
|
canPaste: e.canPaste,
|
|
9076
9089
|
actions: {
|
|
9077
9090
|
undo: m,
|
|
9078
9091
|
redo: v,
|
|
9079
9092
|
copy: $,
|
|
9080
9093
|
cut: W,
|
|
9081
|
-
paste:
|
|
9094
|
+
paste: y,
|
|
9082
9095
|
duplicate: x,
|
|
9083
9096
|
delete: b,
|
|
9084
9097
|
selectAll: j,
|
|
@@ -9150,11 +9163,11 @@ function id(e) {
|
|
|
9150
9163
|
selectAllElements: j
|
|
9151
9164
|
};
|
|
9152
9165
|
}
|
|
9153
|
-
function
|
|
9166
|
+
function cd(e) {
|
|
9154
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) => {
|
|
9155
9168
|
const l = n.value;
|
|
9156
9169
|
t.value[l] && (o(), t.value = t.value.map((t, n) => n === l ? {
|
|
9157
|
-
...(0,
|
|
9170
|
+
...(0, h.cloneSlide)(t),
|
|
9158
9171
|
elements: e(t.elements)
|
|
9159
9172
|
} : t));
|
|
9160
9173
|
}, i = e.templateElementsBySlideId, s = (e, l) => {
|
|
@@ -9172,7 +9185,7 @@ function sd(e) {
|
|
|
9172
9185
|
return o ? i && (0, u.isTemplateElementId)(e) ? i.value[o.id] ?? [] : o.elements : [];
|
|
9173
9186
|
}, m = (e, t) => {
|
|
9174
9187
|
s(e, (n) => (0, u.isGroupMember)(n, e) ? (0, u.updateElementInTree)(n, e, t) : n.map((n) => n.id === e ? {
|
|
9175
|
-
...(0,
|
|
9188
|
+
...(0, h.cloneElement)(n),
|
|
9176
9189
|
...t
|
|
9177
9190
|
} : n));
|
|
9178
9191
|
}, v = (e, t) => {
|
|
@@ -9183,7 +9196,7 @@ function sd(e) {
|
|
|
9183
9196
|
activeSlide: a,
|
|
9184
9197
|
selectedElementIds: l,
|
|
9185
9198
|
addElement: (e) => {
|
|
9186
|
-
const t = (0,
|
|
9199
|
+
const t = (0, h.cloneElement)(e);
|
|
9187
9200
|
r((e) => [...e, t]), l.value = [t.id];
|
|
9188
9201
|
},
|
|
9189
9202
|
updateElement: m,
|
|
@@ -9195,7 +9208,7 @@ function sd(e) {
|
|
|
9195
9208
|
duplicateElement: (e) => {
|
|
9196
9209
|
const t = p(e).find((t) => t.id === e);
|
|
9197
9210
|
if (!t) return;
|
|
9198
|
-
const n = (0,
|
|
9211
|
+
const n = (0, h.duplicateElement)(t);
|
|
9199
9212
|
return n.x += 20, n.y += 20, r((e) => [...e, n]), l.value = [n.id], n.id;
|
|
9200
9213
|
},
|
|
9201
9214
|
bringForward: (e) => {
|
|
@@ -9223,11 +9236,11 @@ function sd(e) {
|
|
|
9223
9236
|
s(e, (o) => o.map((o) => {
|
|
9224
9237
|
if (o.id !== e) return o;
|
|
9225
9238
|
if ("smartArt" === o.type) return n && o.smartArtData ? {
|
|
9226
|
-
...(0,
|
|
9227
|
-
smartArtData: (0,
|
|
9239
|
+
...(0, h.cloneElement)(o),
|
|
9240
|
+
smartArtData: (0, h.updateSmartArtNodeText)(o.smartArtData, n, t)
|
|
9228
9241
|
} : o;
|
|
9229
9242
|
if ("text" === o.type || "shape" === o.type) {
|
|
9230
|
-
const e = (0,
|
|
9243
|
+
const e = (0, h.cloneElement)(o);
|
|
9231
9244
|
if (e.text = t, e.textSegments && e.textSegments.length > 0) {
|
|
9232
9245
|
const n = e.textSegments[0].style;
|
|
9233
9246
|
e.textSegments = [{
|
|
@@ -9243,7 +9256,7 @@ function sd(e) {
|
|
|
9243
9256
|
}
|
|
9244
9257
|
};
|
|
9245
9258
|
}
|
|
9246
|
-
function
|
|
9259
|
+
function ud(e) {
|
|
9247
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) {
|
|
9248
9261
|
const t = (0, d.ref)(!1), n = (0, d.ref)(!1), o = (0, d.ref)([]), l = (0, d.ref)([]);
|
|
9249
9262
|
return {
|
|
@@ -9252,7 +9265,7 @@ function cd(e) {
|
|
|
9252
9265
|
snapLines: o,
|
|
9253
9266
|
guides: l,
|
|
9254
9267
|
addGuide: function(t, n) {
|
|
9255
|
-
const o = (0, u.createGuide)((0,
|
|
9268
|
+
const o = (0, u.createGuide)((0, h.createEditorId)("guide"), t, e.value);
|
|
9256
9269
|
l.value = [...l.value, void 0 === n ? o : {
|
|
9257
9270
|
...o,
|
|
9258
9271
|
position: n
|
|
@@ -9265,7 +9278,7 @@ function cd(e) {
|
|
|
9265
9278
|
l.value = (0, u.removeGuide)(l.value, e);
|
|
9266
9279
|
}
|
|
9267
9280
|
};
|
|
9268
|
-
}(c), { snapToShape: f, snapToGrid: g, snapLines:
|
|
9281
|
+
}(c), { snapToShape: f, snapToGrid: g, snapLines: y, guides: k } = v, x = {
|
|
9269
9282
|
slides: i,
|
|
9270
9283
|
activeSlideIndex: r,
|
|
9271
9284
|
templateElementsBySlideId: s
|
|
@@ -9288,13 +9301,13 @@ function cd(e) {
|
|
|
9288
9301
|
elements: c
|
|
9289
9302
|
}, t.value = d;
|
|
9290
9303
|
};
|
|
9291
|
-
}(x), S =
|
|
9304
|
+
}(x), S = id(x);
|
|
9292
9305
|
let w = null, E = !0, B = !1;
|
|
9293
9306
|
const C = (0, u.createGestureController)({
|
|
9294
9307
|
getScale: () => o.value,
|
|
9295
9308
|
getElementBox: (e) => {
|
|
9296
9309
|
const n = t(e);
|
|
9297
|
-
return n ?
|
|
9310
|
+
return n ? Gc(n) : void 0;
|
|
9298
9311
|
},
|
|
9299
9312
|
getSiblings: () => {
|
|
9300
9313
|
if (!w) return [];
|
|
@@ -9317,13 +9330,13 @@ function cd(e) {
|
|
|
9317
9330
|
E && n();
|
|
9318
9331
|
},
|
|
9319
9332
|
onPreview: (e, t) => {
|
|
9320
|
-
|
|
9333
|
+
y.value = t.map((e) => ({
|
|
9321
9334
|
axis: "v" === e.axis ? "x" : "y",
|
|
9322
9335
|
position: e.position
|
|
9323
9336
|
})), E && I(e);
|
|
9324
9337
|
},
|
|
9325
9338
|
onEnd: (e, t, n) => {
|
|
9326
|
-
|
|
9339
|
+
y.value.length > 0 && (y.value = []), !t && B && p(n), t && E && S(/* @__PURE__ */ new Set([n]));
|
|
9327
9340
|
}
|
|
9328
9341
|
});
|
|
9329
9342
|
function I(e) {
|
|
@@ -9376,7 +9389,7 @@ function cd(e) {
|
|
|
9376
9389
|
cancelElementDrag: () => C.dispose(),
|
|
9377
9390
|
onTransformStart: function(e) {
|
|
9378
9391
|
const o = e ? t(e.id) : void 0;
|
|
9379
|
-
P = o ? (0, u.resolveElementInteractivity)(o) : null, T = o ?
|
|
9392
|
+
P = o ? (0, u.resolveElementInteractivity)(o) : null, T = o ? Gc(o) : null, n();
|
|
9380
9393
|
},
|
|
9381
9394
|
onTransform: function(e) {
|
|
9382
9395
|
I(_(e));
|
|
@@ -9398,7 +9411,7 @@ function cd(e) {
|
|
|
9398
9411
|
}
|
|
9399
9412
|
};
|
|
9400
9413
|
}
|
|
9401
|
-
function
|
|
9414
|
+
function dd(e) {
|
|
9402
9415
|
const { canvasSize: t, ops: n, selectedElementIds: o, activeSlideIndex: l } = e, a = function(e) {
|
|
9403
9416
|
const { slides: t, activeSlideIndex: n, handler: o, pushHistory: l, templateElementsBySlideId: a } = e;
|
|
9404
9417
|
return {
|
|
@@ -9423,7 +9436,7 @@ function ud(e) {
|
|
|
9423
9436
|
const i = n.value + 1;
|
|
9424
9437
|
l();
|
|
9425
9438
|
const s = {
|
|
9426
|
-
id: (0,
|
|
9439
|
+
id: (0, h.createEditorId)("slide"),
|
|
9427
9440
|
rId: "",
|
|
9428
9441
|
slideNumber: t.value.length + 1,
|
|
9429
9442
|
elements: [],
|
|
@@ -9454,17 +9467,17 @@ function ud(e) {
|
|
|
9454
9467
|
imageInputRef: i,
|
|
9455
9468
|
mediaInputRef: s,
|
|
9456
9469
|
addText: function() {
|
|
9457
|
-
const e = (0,
|
|
9470
|
+
const e = (0, h.createTextElement)("Text");
|
|
9458
9471
|
r(e, 320, 80), n.addElement(e), o.value = [e.id];
|
|
9459
9472
|
},
|
|
9460
9473
|
addShape: function(e) {
|
|
9461
|
-
const t = (0,
|
|
9474
|
+
const t = (0, h.createShapeElement)(e);
|
|
9462
9475
|
r(t, 240, 160), n.addElement(t), o.value = [t.id];
|
|
9463
9476
|
},
|
|
9464
9477
|
addTable: function() {
|
|
9465
9478
|
const e = {
|
|
9466
9479
|
...(0, u.newTableElement)(3, 3),
|
|
9467
|
-
id: (0,
|
|
9480
|
+
id: (0, h.createEditorId)("table")
|
|
9468
9481
|
};
|
|
9469
9482
|
r(e, 600, 250), n.addElement(e), o.value = [e.id];
|
|
9470
9483
|
},
|
|
@@ -9474,7 +9487,7 @@ function ud(e) {
|
|
|
9474
9487
|
},
|
|
9475
9488
|
addField: function(e, t) {
|
|
9476
9489
|
const a = (0, u.resolveInsertedFieldText)(e, l.value + 1, t), i = (0, u.newFieldElement)(e, a);
|
|
9477
|
-
i.id = (0,
|
|
9490
|
+
i.id = (0, h.createEditorId)("field"), r(i, i.width, i.height), n.addElement(i), o.value = [i.id];
|
|
9478
9491
|
},
|
|
9479
9492
|
openImagePicker: function() {
|
|
9480
9493
|
i.value?.click();
|
|
@@ -9489,7 +9502,7 @@ function ud(e) {
|
|
|
9489
9502
|
const l = new Image();
|
|
9490
9503
|
l.onload = () => {
|
|
9491
9504
|
const a = Math.round(.6 * t.value.width), i = l.width / Math.max(1, l.height), s = Math.min(a, l.width || a), c = Math.max(1, Math.round(s / (i || 1))), u = {
|
|
9492
|
-
id: (0,
|
|
9505
|
+
id: (0, h.createEditorId)("image"),
|
|
9493
9506
|
type: "image",
|
|
9494
9507
|
x: 0,
|
|
9495
9508
|
y: 0,
|
|
@@ -9515,7 +9528,7 @@ function ud(e) {
|
|
|
9515
9528
|
if (!e) return;
|
|
9516
9529
|
const t = (t, i) => {
|
|
9517
9530
|
const s = {
|
|
9518
|
-
id: (0,
|
|
9531
|
+
id: (0, h.createEditorId)("media"),
|
|
9519
9532
|
type: "media",
|
|
9520
9533
|
mediaType: a,
|
|
9521
9534
|
mediaMimeType: l.type || void 0,
|
|
@@ -9540,33 +9553,33 @@ function ud(e) {
|
|
|
9540
9553
|
}, i.readAsDataURL(l);
|
|
9541
9554
|
},
|
|
9542
9555
|
addActionButton: function(e) {
|
|
9543
|
-
const t = (0, u.buildActionButtonElement)(e, (0,
|
|
9556
|
+
const t = (0, u.buildActionButtonElement)(e, (0, h.createEditorId)("action"));
|
|
9544
9557
|
t && (r(t, 120, 50), n.addElement(t), o.value = [t.id]);
|
|
9545
9558
|
},
|
|
9546
9559
|
...a
|
|
9547
9560
|
};
|
|
9548
9561
|
}
|
|
9549
|
-
var
|
|
9562
|
+
var pd = /["\\\n\r;}<>]/u, md = /* @__PURE__ */ new Set([
|
|
9550
9563
|
"truetype",
|
|
9551
9564
|
"opentype",
|
|
9552
9565
|
"woff",
|
|
9553
9566
|
"woff2"
|
|
9554
|
-
]),
|
|
9555
|
-
function
|
|
9567
|
+
]), vd = /^data:font\/[a-z0-9+.-]+(?:;charset=[a-z0-9-]+)?;base64,[a-z0-9+/=]+$/iu;
|
|
9568
|
+
function fd() {
|
|
9556
9569
|
return "undefined" != typeof URL && "function" == typeof URL.createObjectURL && "function" == typeof URL.revokeObjectURL && "undefined" != typeof Blob;
|
|
9557
9570
|
}
|
|
9558
|
-
var
|
|
9571
|
+
var gd = {
|
|
9559
9572
|
truetype: "font/ttf",
|
|
9560
9573
|
opentype: "font/otf",
|
|
9561
9574
|
woff: "font/woff",
|
|
9562
9575
|
woff2: "font/woff2"
|
|
9563
9576
|
};
|
|
9564
|
-
function
|
|
9577
|
+
function yd(e) {
|
|
9565
9578
|
const t = "string" == typeof e.name ? e.name.trim() : "";
|
|
9566
|
-
if (0 === t.length ||
|
|
9579
|
+
if (0 === t.length || pd.test(t)) return null;
|
|
9567
9580
|
const n = e.bold ? "700" : "400", o = e.italic ? "italic" : "normal";
|
|
9568
|
-
if ("string" == typeof (l = e.dataUrl) && 0 !== l.length && (l.startsWith("blob:") ||
|
|
9569
|
-
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";
|
|
9570
9583
|
return {
|
|
9571
9584
|
name: t,
|
|
9572
9585
|
url: e.dataUrl,
|
|
@@ -9576,10 +9589,10 @@ function gd(e) {
|
|
|
9576
9589
|
};
|
|
9577
9590
|
}
|
|
9578
9591
|
var l;
|
|
9579
|
-
if (!
|
|
9592
|
+
if (!fd()) return null;
|
|
9580
9593
|
let a;
|
|
9581
|
-
if (e.rawFontData && e.rawFontData.length > 0 ? a = e.rawFontData : e.originalPartBytes && e.originalPartBytes.length > 0 && e.fontGuid && (a = (0,
|
|
9582
|
-
const r = (0,
|
|
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;
|
|
9595
|
+
const r = (0, h.detectFontFormat)(a), i = md.has(r) ? r : "truetype", s = gd[i] ?? "font/ttf", c = new Uint8Array(a.length);
|
|
9583
9596
|
c.set(a);
|
|
9584
9597
|
const u = new Blob([c], { type: s }), d = URL.createObjectURL(u);
|
|
9585
9598
|
return {
|
|
@@ -9602,20 +9615,20 @@ function hd(e) {
|
|
|
9602
9615
|
"}"
|
|
9603
9616
|
].join("\n");
|
|
9604
9617
|
}
|
|
9605
|
-
function
|
|
9618
|
+
function kd(e) {
|
|
9606
9619
|
let t = [], n = null;
|
|
9607
9620
|
const o = (e) => {
|
|
9608
|
-
if (
|
|
9621
|
+
if (fd()) for (const t of e) URL.revokeObjectURL(t);
|
|
9609
9622
|
}, l = (0, d.computed)(() => {
|
|
9610
9623
|
const n = (0, d.toValue)(e) ?? [], l = t, a = [], r = [];
|
|
9611
9624
|
for (const e of n) {
|
|
9612
|
-
const t =
|
|
9625
|
+
const t = yd(e);
|
|
9613
9626
|
t && (r.push(t), t.objectUrl && a.push(t.objectUrl));
|
|
9614
9627
|
}
|
|
9615
9628
|
return t = a, o(l), r;
|
|
9616
9629
|
}), a = (0, d.computed)(() => l.value.map(hd).join("\n\n")), r = (0, d.computed)(() => {
|
|
9617
9630
|
const e = /* @__PURE__ */ new Set(), t = [];
|
|
9618
|
-
for (const n of l.value) e.has(n.name) || (e.add(n.name), t.push((0,
|
|
9631
|
+
for (const n of l.value) e.has(n.name) || (e.add(n.name), t.push((0, h.getSubstituteFontFamily)(n.name)));
|
|
9619
9632
|
return t;
|
|
9620
9633
|
}), i = (0, d.watch)(() => (0, d.toValue)(e) ?? [], (e) => ac.registerEmbeddedFonts(e), { immediate: !0 }), s = (0, d.watch)(a, (e) => {
|
|
9621
9634
|
if ("undefined" != typeof document && "function" == typeof document.createElement && void 0 !== document.head) {
|
|
@@ -9630,11 +9643,11 @@ function yd(e) {
|
|
|
9630
9643
|
fontFamilies: r
|
|
9631
9644
|
};
|
|
9632
9645
|
}
|
|
9633
|
-
function
|
|
9646
|
+
function xd(e) {
|
|
9634
9647
|
const t = "string" == typeof e || void 0 === e ? e : e.value;
|
|
9635
9648
|
return (0, u.resolveExportBaseName)(t);
|
|
9636
9649
|
}
|
|
9637
|
-
function
|
|
9650
|
+
function bd(e) {
|
|
9638
9651
|
const { slides: t, canvasSize: n, rasterizeSlide: o } = e, l = (0, d.ref)(!1);
|
|
9639
9652
|
return {
|
|
9640
9653
|
exporting: l,
|
|
@@ -9643,7 +9656,7 @@ function xd(e) {
|
|
|
9643
9656
|
l.value = !0;
|
|
9644
9657
|
try {
|
|
9645
9658
|
const t = e.rasterizeSlideToRaster ? await (0, u.rasterResultToPngDataUrl)(await e.rasterizeSlideToRaster(n)) : (await o(n)).toDataURL("image/png");
|
|
9646
|
-
(0, u.downloadDataUrl)(t, `${
|
|
9659
|
+
(0, u.downloadDataUrl)(t, `${xd(e.fileName)}-slide-${n + 1}.png`);
|
|
9647
9660
|
} finally {
|
|
9648
9661
|
l.value = !1;
|
|
9649
9662
|
}
|
|
@@ -9673,14 +9686,14 @@ function xd(e) {
|
|
|
9673
9686
|
d.addImage(e.toDataURL("image/png"), "PNG", 0, 0, a, s);
|
|
9674
9687
|
}
|
|
9675
9688
|
}
|
|
9676
|
-
d.save(`${
|
|
9689
|
+
d.save(`${xd(e.fileName)}.pdf`);
|
|
9677
9690
|
} finally {
|
|
9678
9691
|
l.value = !1;
|
|
9679
9692
|
}
|
|
9680
9693
|
}
|
|
9681
9694
|
};
|
|
9682
9695
|
}
|
|
9683
|
-
function
|
|
9696
|
+
function Sd(e) {
|
|
9684
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)("");
|
|
9685
9698
|
let s = null;
|
|
9686
9699
|
function c(e) {
|
|
@@ -9748,12 +9761,12 @@ function bd(e) {
|
|
|
9748
9761
|
}
|
|
9749
9762
|
};
|
|
9750
9763
|
}
|
|
9751
|
-
var
|
|
9752
|
-
function
|
|
9764
|
+
var wd = 2e3;
|
|
9765
|
+
function Ed(e) {
|
|
9753
9766
|
const t = "string" == typeof e || void 0 === e ? e : e.value;
|
|
9754
9767
|
return (0, u.resolveExportBaseName)(t);
|
|
9755
9768
|
}
|
|
9756
|
-
function
|
|
9769
|
+
function Bd(e, t) {
|
|
9757
9770
|
const { width: n, height: o } = (0, u.clampGifDimensions)(e.width, e.height, t);
|
|
9758
9771
|
let l = e;
|
|
9759
9772
|
if (n !== e.width || o !== e.height) {
|
|
@@ -9770,16 +9783,16 @@ function Ed(e, t) {
|
|
|
9770
9783
|
height: o
|
|
9771
9784
|
};
|
|
9772
9785
|
}
|
|
9773
|
-
var
|
|
9774
|
-
function
|
|
9786
|
+
var Cd = 3e3, Id = 30, Pd = 5e6;
|
|
9787
|
+
function Td(e, t, n) {
|
|
9775
9788
|
const o = e.captureStream(t);
|
|
9776
9789
|
return new MediaRecorder(o, n);
|
|
9777
9790
|
}
|
|
9778
|
-
function
|
|
9791
|
+
function _d(e) {
|
|
9779
9792
|
if (e?.aborted) throw new DOMException("Export cancelled", "AbortError");
|
|
9780
9793
|
}
|
|
9781
|
-
function
|
|
9782
|
-
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);
|
|
9783
9796
|
return {
|
|
9784
9797
|
exporting: i,
|
|
9785
9798
|
progress: s,
|
|
@@ -9787,21 +9800,21 @@ function _d(e) {
|
|
|
9787
9800
|
return async function(e, t = {}) {
|
|
9788
9801
|
const { slideCount: n, rasterizeSlide: o, loadGifEncoder: l, exporting: a, progress: r } = e, i = e.downloadBlob ?? u.downloadBlob, s = n.value;
|
|
9789
9802
|
if (a.value || 0 === s) return;
|
|
9790
|
-
const { slideDurationMs: c =
|
|
9803
|
+
const { slideDurationMs: c = wd, slideTimingsMs: d, maxSide: p = u.GIF_POST_CAPTURE_MAX_SIDE, onProgress: m, signal: v } = t;
|
|
9791
9804
|
a.value = !0, r.value = 0;
|
|
9792
9805
|
try {
|
|
9793
9806
|
const t = [];
|
|
9794
9807
|
for (let e = 0; e < s; e++) {
|
|
9795
9808
|
if (v?.aborted) throw new DOMException("Export cancelled", "AbortError");
|
|
9796
9809
|
m?.(e, s);
|
|
9797
|
-
const n =
|
|
9810
|
+
const n = Bd(await o(e), p);
|
|
9798
9811
|
n && (t.push(n), r.value = Math.round((e + 1) / s * 90));
|
|
9799
9812
|
}
|
|
9800
9813
|
if (0 === t.length) throw new Error("[useMediaExport] No slides were captured for GIF export");
|
|
9801
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);
|
|
9802
9815
|
new Uint8Array(g).set(f);
|
|
9803
|
-
const
|
|
9804
|
-
return m?.(s, s), r.value = 95, i(
|
|
9816
|
+
const y = new Blob([g], { type: "image/gif" });
|
|
9817
|
+
return m?.(s, s), r.value = 95, i(y, `${Ed(e.fileName)}.gif`), r.value = 100, y;
|
|
9805
9818
|
} finally {
|
|
9806
9819
|
a.value = !1;
|
|
9807
9820
|
}
|
|
@@ -9818,16 +9831,16 @@ function _d(e) {
|
|
|
9818
9831
|
exportWebm: async function(o = {}) {
|
|
9819
9832
|
const c = t.value;
|
|
9820
9833
|
if (i.value || 0 === c) return;
|
|
9821
|
-
const { slideDurationMs: d =
|
|
9834
|
+
const { slideDurationMs: d = Cd, slideTimingsMs: p, fps: m = Id, videoBitsPerSecond: v = Pd, onProgress: f, onRecordProgress: g, signal: y } = o;
|
|
9822
9835
|
i.value = !0, s.value = 0;
|
|
9823
9836
|
try {
|
|
9824
9837
|
const t = [];
|
|
9825
|
-
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);
|
|
9826
9839
|
if (0 === t.length) throw new Error("[useMediaExport] No slides were captured for video export");
|
|
9827
9840
|
const o = t[0], i = a();
|
|
9828
9841
|
i.width = o.width, i.height = o.height;
|
|
9829
|
-
const
|
|
9830
|
-
if (!
|
|
9842
|
+
const h = i.getContext("2d");
|
|
9843
|
+
if (!h) throw new Error("[useMediaExport] Failed to create 2D context for video recording");
|
|
9831
9844
|
const k = l(i, m, {
|
|
9832
9845
|
mimeType: (0, u.pickSupportedMimeType)([...u.WEBM_MIME_CANDIDATES]),
|
|
9833
9846
|
videoBitsPerSecond: v
|
|
@@ -9846,13 +9859,13 @@ function _d(e) {
|
|
|
9846
9859
|
try {
|
|
9847
9860
|
const n = 1e3 / m;
|
|
9848
9861
|
for (let e = 0; e < t.length; e++) {
|
|
9849
|
-
if (
|
|
9862
|
+
if (y?.aborted) throw k.stop(), new DOMException("Export cancelled", "AbortError");
|
|
9850
9863
|
g?.(e, t.length);
|
|
9851
9864
|
const o = p?.[e] ?? d, l = Math.max(1, Math.ceil(o / n));
|
|
9852
|
-
|
|
9865
|
+
h.clearRect(0, 0, i.width, i.height), h.drawImage(t[e], 0, 0);
|
|
9853
9866
|
for (let o = 0; o < l; o++) {
|
|
9854
|
-
if (
|
|
9855
|
-
|
|
9867
|
+
if (y?.aborted) throw k.stop(), new DOMException("Export cancelled", "AbortError");
|
|
9868
|
+
h.drawImage(t[e], 0, 0), await new Promise((e) => {
|
|
9856
9869
|
setTimeout(e, n);
|
|
9857
9870
|
});
|
|
9858
9871
|
}
|
|
@@ -9860,7 +9873,7 @@ function _d(e) {
|
|
|
9860
9873
|
}
|
|
9861
9874
|
k.stop(), await b;
|
|
9862
9875
|
const o = new Blob(x, { type: "video/webm" });
|
|
9863
|
-
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;
|
|
9864
9877
|
} finally {
|
|
9865
9878
|
(0, u.stopCaptureStream)(k.stream);
|
|
9866
9879
|
}
|
|
@@ -9870,7 +9883,7 @@ function _d(e) {
|
|
|
9870
9883
|
}
|
|
9871
9884
|
};
|
|
9872
9885
|
}
|
|
9873
|
-
function
|
|
9886
|
+
function Dd(e) {
|
|
9874
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) {
|
|
9875
9888
|
const { exportStageRef: t, exportIndex: n, canvasSize: o, imageExportScale: l } = e;
|
|
9876
9889
|
async function a(e) {
|
|
@@ -9885,7 +9898,7 @@ function Od(e) {
|
|
|
9885
9898
|
return 2 * (l?.() ?? 1) * e;
|
|
9886
9899
|
}
|
|
9887
9900
|
function i(e, t, n) {
|
|
9888
|
-
return
|
|
9901
|
+
return Qu(e, {
|
|
9889
9902
|
backgroundColor: "#ffffff",
|
|
9890
9903
|
scale: n.width / (t.width || 1),
|
|
9891
9904
|
x: t.x,
|
|
@@ -9926,18 +9939,18 @@ function Od(e) {
|
|
|
9926
9939
|
exportIndex: c,
|
|
9927
9940
|
canvasSize: l,
|
|
9928
9941
|
imageExportScale: i
|
|
9929
|
-
}), g =
|
|
9942
|
+
}), g = bd({
|
|
9930
9943
|
slides: n,
|
|
9931
9944
|
canvasSize: l,
|
|
9932
9945
|
rasterizeSlide: m,
|
|
9933
9946
|
rasterizeSlideToRaster: v,
|
|
9934
9947
|
rasterizeSlideToTiles: f
|
|
9935
|
-
}),
|
|
9948
|
+
}), y = Od({
|
|
9936
9949
|
slideCount: o,
|
|
9937
9950
|
rasterizeSlide: m
|
|
9938
|
-
}),
|
|
9951
|
+
}), h = Sd({
|
|
9939
9952
|
exporter: g,
|
|
9940
|
-
mediaExport:
|
|
9953
|
+
mediaExport: y
|
|
9941
9954
|
});
|
|
9942
9955
|
return {
|
|
9943
9956
|
exportStageRef: s,
|
|
@@ -9946,20 +9959,20 @@ function Od(e) {
|
|
|
9946
9959
|
rasterizeSlideToRaster: v,
|
|
9947
9960
|
rasterizeSlideToTiles: f,
|
|
9948
9961
|
exporter: g,
|
|
9949
|
-
mediaExport:
|
|
9950
|
-
exportProgressCtl:
|
|
9951
|
-
isExporting: (0, d.computed)(() => g.exporting.value ||
|
|
9962
|
+
mediaExport: y,
|
|
9963
|
+
exportProgressCtl: h,
|
|
9964
|
+
isExporting: (0, d.computed)(() => g.exporting.value || y.exporting.value),
|
|
9952
9965
|
onExportPng: function() {
|
|
9953
9966
|
g.exportSlidePng(a.value);
|
|
9954
9967
|
},
|
|
9955
9968
|
onExportPdf: function() {
|
|
9956
|
-
|
|
9969
|
+
h.runPdf();
|
|
9957
9970
|
},
|
|
9958
9971
|
onExportGif: function() {
|
|
9959
|
-
|
|
9972
|
+
h.runGif();
|
|
9960
9973
|
},
|
|
9961
9974
|
onExportWebm: function() {
|
|
9962
|
-
|
|
9975
|
+
h.runWebm();
|
|
9963
9976
|
},
|
|
9964
9977
|
onExportJson: function() {
|
|
9965
9978
|
try {
|
|
@@ -9992,43 +10005,53 @@ function Od(e) {
|
|
|
9992
10005
|
}
|
|
9993
10006
|
};
|
|
9994
10007
|
}
|
|
9995
|
-
function
|
|
9996
|
-
const o = (0, d.ref)(""), l = (0, d.ref)(""), a = (0, d.ref)(!1), r = (0, d.ref)(
|
|
9997
|
-
|
|
9998
|
-
|
|
10008
|
+
function Nd({ slides: e, activeSlideIndex: t, pushHistory: n }) {
|
|
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, {
|
|
10010
|
+
matchCase: a.value,
|
|
10011
|
+
includeNotes: r.value,
|
|
10012
|
+
includeChartTitles: i.value,
|
|
10013
|
+
includeChartData: s.value
|
|
10014
|
+
})), m = (0, d.computed)(() => p.value.length);
|
|
10015
|
+
function v() {
|
|
10016
|
+
0 !== m.value ? (c.value >= m.value && (c.value = m.value - 1), c.value < 0 && (c.value = 0)) : c.value = 0;
|
|
9999
10017
|
}
|
|
10000
|
-
function
|
|
10001
|
-
const e =
|
|
10018
|
+
function f() {
|
|
10019
|
+
const e = p.value[c.value];
|
|
10002
10020
|
e && (t.value = e.slideIndex);
|
|
10003
10021
|
}
|
|
10004
10022
|
return {
|
|
10005
10023
|
query: o,
|
|
10006
10024
|
replacement: l,
|
|
10007
10025
|
matchCase: a,
|
|
10008
|
-
|
|
10009
|
-
|
|
10010
|
-
|
|
10026
|
+
includeNotes: r,
|
|
10027
|
+
includeChartTitles: i,
|
|
10028
|
+
includeChartData: s,
|
|
10029
|
+
matches: p,
|
|
10030
|
+
matchCount: m,
|
|
10031
|
+
currentMatch: c,
|
|
10011
10032
|
next: function() {
|
|
10012
|
-
0 !==
|
|
10033
|
+
0 !== m.value && (c.value = (c.value + 1) % m.value, f());
|
|
10013
10034
|
},
|
|
10014
10035
|
prev: function() {
|
|
10015
|
-
0 !==
|
|
10036
|
+
0 !== m.value && (c.value = (c.value - 1 + m.value) % m.value, f());
|
|
10016
10037
|
},
|
|
10017
10038
|
replaceCurrent: function() {
|
|
10018
|
-
if (
|
|
10039
|
+
if (v(), p.value[c.value]?.readOnly) return;
|
|
10040
|
+
if (0 === p.value.length || 0 === o.value.length) return;
|
|
10019
10041
|
n();
|
|
10020
|
-
const t = (0, u.replaceMatch)(e.value,
|
|
10021
|
-
t.replacements > 0 && (e.value = t.slides),
|
|
10042
|
+
const t = (0, u.replaceMatch)(e.value, p.value, c.value, l.value);
|
|
10043
|
+
t.replacements > 0 && (e.value = t.slides), v(), f();
|
|
10022
10044
|
},
|
|
10023
10045
|
replaceAll: function() {
|
|
10024
|
-
if (
|
|
10046
|
+
if (p.value.some((e) => e.readOnly)) return;
|
|
10047
|
+
if (0 === p.value.length || 0 === o.value.length) return;
|
|
10025
10048
|
n();
|
|
10026
|
-
const t = (0, u.applyFindReplacements)(e.value,
|
|
10027
|
-
t.replacements > 0 && (e.value = t.slides),
|
|
10049
|
+
const t = (0, u.applyFindReplacements)(e.value, p.value, l.value);
|
|
10050
|
+
t.replacements > 0 && (e.value = t.slides), v();
|
|
10028
10051
|
}
|
|
10029
10052
|
};
|
|
10030
10053
|
}
|
|
10031
|
-
function
|
|
10054
|
+
function Ld(e) {
|
|
10032
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);
|
|
10033
10056
|
return (0, d.watch)(r, (e) => {
|
|
10034
10057
|
i.value = e.initialEnabled;
|
|
@@ -10040,7 +10063,7 @@ function Nd(e) {
|
|
|
10040
10063
|
fontEmbedding: r
|
|
10041
10064
|
};
|
|
10042
10065
|
}
|
|
10043
|
-
function
|
|
10066
|
+
function Ad(e) {
|
|
10044
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]));
|
|
10045
10068
|
function i() {
|
|
10046
10069
|
l.value = !1, a.value = null;
|
|
@@ -10062,7 +10085,7 @@ function Ld(e) {
|
|
|
10062
10085
|
}
|
|
10063
10086
|
};
|
|
10064
10087
|
}
|
|
10065
|
-
function
|
|
10088
|
+
function Md(e) {
|
|
10066
10089
|
const { headerFooter: t } = e, n = (0, d.ref)(!1);
|
|
10067
10090
|
return {
|
|
10068
10091
|
showHeaderFooter: n,
|
|
@@ -10071,7 +10094,7 @@ function Ad(e) {
|
|
|
10071
10094
|
}
|
|
10072
10095
|
};
|
|
10073
10096
|
}
|
|
10074
|
-
function
|
|
10097
|
+
function Fd(e) {
|
|
10075
10098
|
const { canEdit: t, presenting: n, activeTool: o, activeSlide: l, selectedElementIds: a, ops: r } = e;
|
|
10076
10099
|
return {
|
|
10077
10100
|
drawingActive: (0, d.computed)(() => t() && !n.value && "select" !== o.value),
|
|
@@ -10092,7 +10115,7 @@ function Md(e) {
|
|
|
10092
10115
|
}
|
|
10093
10116
|
};
|
|
10094
10117
|
}
|
|
10095
|
-
function
|
|
10118
|
+
function zd(e) {
|
|
10096
10119
|
const { canEdit: t, findActiveElement: n, ops: o } = e;
|
|
10097
10120
|
function l(t) {
|
|
10098
10121
|
const n = e.proofing?.();
|
|
@@ -10132,7 +10155,7 @@ function Fd(e) {
|
|
|
10132
10155
|
isInlineInputPending: p.isPending,
|
|
10133
10156
|
enterInlineEdit: function(t) {
|
|
10134
10157
|
const o = n(t);
|
|
10135
|
-
o && (0,
|
|
10158
|
+
o && (0, h.hasTextProperties)(o) && (0, u.canInteractWithElement)(o, "textEdit") && (o.textSegments?.some((e) => e.equationXml) || (r = e.activeSlide?.()?.id, a.value = t, s.value = void 0, i.value = o.text ?? ""));
|
|
10136
10159
|
},
|
|
10137
10160
|
commitInlineEdit: function() {
|
|
10138
10161
|
if (p.isPending()) return;
|
|
@@ -10171,7 +10194,7 @@ function Fd(e) {
|
|
|
10171
10194
|
}
|
|
10172
10195
|
};
|
|
10173
10196
|
}
|
|
10174
|
-
function
|
|
10197
|
+
function Rd(e) {
|
|
10175
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);
|
|
10176
10199
|
function s() {
|
|
10177
10200
|
a.value = !1, r.value = null, i.value = null;
|
|
@@ -10184,7 +10207,7 @@ function zd(e) {
|
|
|
10184
10207
|
t.addElement(e), n.value = [e.id], l.value = !1, a.value = !1, r.value = null, i.value = null;
|
|
10185
10208
|
},
|
|
10186
10209
|
openEquationEditorForElement: function(e) {
|
|
10187
|
-
if (!(0,
|
|
10210
|
+
if (!(0, h.hasTextProperties)(e)) return !1;
|
|
10188
10211
|
const t = e.textSegments?.find((e) => e.equationXml);
|
|
10189
10212
|
return !!t?.equationXml && (i.value = e.id, r.value = t.equationXml, n.value.includes(e.id) || (n.value = [e.id]), a.value = !0, !0);
|
|
10190
10213
|
},
|
|
@@ -10196,7 +10219,7 @@ function zd(e) {
|
|
|
10196
10219
|
closeEquationEditor: s
|
|
10197
10220
|
};
|
|
10198
10221
|
}
|
|
10199
|
-
function
|
|
10222
|
+
function Vd(e) {
|
|
10200
10223
|
if (e <= 0 || "undefined" == typeof document) return;
|
|
10201
10224
|
const t = document.activeElement;
|
|
10202
10225
|
if (!function(e) {
|
|
@@ -10213,7 +10236,7 @@ function Rd(e) {
|
|
|
10213
10236
|
behavior: "smooth"
|
|
10214
10237
|
});
|
|
10215
10238
|
}
|
|
10216
|
-
function
|
|
10239
|
+
function jd() {
|
|
10217
10240
|
const e = (0, d.ref)(0), t = (0, d.ref)(!1);
|
|
10218
10241
|
return (0, d.onMounted)(() => {
|
|
10219
10242
|
if ("undefined" == typeof window) return;
|
|
@@ -10221,11 +10244,11 @@ function Vd() {
|
|
|
10221
10244
|
if (!n) return;
|
|
10222
10245
|
const o = () => {
|
|
10223
10246
|
const n = (0, u.readViewportMetrics)(window), o = n ? (0, u.computeKeyboardInset)(n) : 0;
|
|
10224
|
-
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));
|
|
10225
10248
|
}, l = () => {
|
|
10226
10249
|
window.requestAnimationFrame(() => {
|
|
10227
10250
|
const e = (0, u.readViewportMetrics)(window), t = e ? (0, u.computeKeyboardInset)(e) : 0;
|
|
10228
|
-
t > 0 &&
|
|
10251
|
+
t > 0 && Vd(t);
|
|
10229
10252
|
});
|
|
10230
10253
|
};
|
|
10231
10254
|
o(), n.addEventListener("resize", o), n.addEventListener("scroll", o), document.addEventListener("focusin", l), (0, d.onScopeDispose)(() => {
|
|
@@ -10236,7 +10259,7 @@ function Vd() {
|
|
|
10236
10259
|
isKeyboardOpen: (0, d.readonly)(t)
|
|
10237
10260
|
};
|
|
10238
10261
|
}
|
|
10239
|
-
async function
|
|
10262
|
+
async function $d(e) {
|
|
10240
10263
|
try {
|
|
10241
10264
|
const t = await v.default.loadAsync(e), n = new m.XMLParser({
|
|
10242
10265
|
ignoreAttributes: !1,
|
|
@@ -10244,38 +10267,38 @@ async function jd(e) {
|
|
|
10244
10267
|
parseAttributeValue: !1,
|
|
10245
10268
|
parseTagValue: !1,
|
|
10246
10269
|
processEntities: !1,
|
|
10247
|
-
tagValueProcessor: (e, t) => (0,
|
|
10248
|
-
attributeValueProcessor: (e, t) => (0,
|
|
10270
|
+
tagValueProcessor: (e, t) => (0, h.decodeXmlEntities)(t),
|
|
10271
|
+
attributeValueProcessor: (e, t) => (0, h.decodeXmlEntities)(t)
|
|
10249
10272
|
}), o = [];
|
|
10250
10273
|
for (const e of Object.keys(t.files)) if (e.startsWith("_xmlsignatures/") && e.endsWith(".xml")) {
|
|
10251
10274
|
const l = await t.files[e].async("string");
|
|
10252
|
-
o.push((0,
|
|
10275
|
+
o.push((0, h.parseSignatureXml)(n.parse(l), e));
|
|
10253
10276
|
}
|
|
10254
10277
|
return o;
|
|
10255
10278
|
} catch {
|
|
10256
10279
|
return [];
|
|
10257
10280
|
}
|
|
10258
10281
|
}
|
|
10259
|
-
function
|
|
10282
|
+
function Wd(e, t) {
|
|
10260
10283
|
const n = (0, d.shallowRef)([]), o = (0, d.shallowRef)({}), l = (0, d.ref)({
|
|
10261
10284
|
width: 1280,
|
|
10262
10285
|
height: 720
|
|
10263
|
-
}), 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),
|
|
10264
|
-
let
|
|
10265
|
-
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) => {
|
|
10266
10289
|
for (const t of e) t.startsWith("blob:") && URL.revokeObjectURL(t);
|
|
10267
|
-
},
|
|
10290
|
+
}, U = async (e, r) => {
|
|
10268
10291
|
if (!g.value) throw new Error("No presentation is loaded.");
|
|
10269
10292
|
const i = t?.getPendingInlineEdit?.(), c = {
|
|
10270
10293
|
slideMasters: s.value,
|
|
10271
|
-
notesMaster:
|
|
10272
|
-
handoutMaster:
|
|
10294
|
+
notesMaster: F.value,
|
|
10295
|
+
handoutMaster: z.value
|
|
10273
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 ? {
|
|
10274
10297
|
...e,
|
|
10275
10298
|
elements: [...(0, u.overlayInlineTextSnapshot)(e.elements, i.snapshot, i.text)]
|
|
10276
10299
|
} : e);
|
|
10277
10300
|
return (0, u.saveDeckWithPassword)(g.value, p, (0, u.buildDeckSaveOptions)({
|
|
10278
|
-
coreProperties:
|
|
10301
|
+
coreProperties: y.value,
|
|
10279
10302
|
customProperties: k.value,
|
|
10280
10303
|
appProperties: S.value,
|
|
10281
10304
|
sections: T.value,
|
|
@@ -10287,8 +10310,8 @@ function $d(e, t) {
|
|
|
10287
10310
|
canvas: l.value
|
|
10288
10311
|
}).size,
|
|
10289
10312
|
slideMasters: d?.slideMasters ?? s.value,
|
|
10290
|
-
notesMaster: d?.notesMaster ??
|
|
10291
|
-
handoutMaster: d?.handoutMaster ??
|
|
10313
|
+
notesMaster: d?.notesMaster ?? F.value,
|
|
10314
|
+
handoutMaster: d?.handoutMaster ?? z.value,
|
|
10292
10315
|
tagCollections: w.value,
|
|
10293
10316
|
viewProperties: L.value,
|
|
10294
10317
|
tableStyleMap: C.value,
|
|
@@ -10300,75 +10323,75 @@ function $d(e, t) {
|
|
|
10300
10323
|
...t?.getSaveIntent?.(),
|
|
10301
10324
|
purpose: r
|
|
10302
10325
|
});
|
|
10303
|
-
},
|
|
10326
|
+
}, H = (e) => U(e, "user-file");
|
|
10304
10327
|
return (0, d.watch)(() => (0, d.toValue)(e), (e) => {
|
|
10305
10328
|
e && (async (e) => {
|
|
10306
|
-
const d = ++
|
|
10329
|
+
const d = ++j, U = new h.PptxHandler(), H = (0, u.createPresentationLoadResources)(U), G = H.blobUrls;
|
|
10307
10330
|
try {
|
|
10308
10331
|
m.value = !0, v.value = null, f.value = !1;
|
|
10309
|
-
const
|
|
10310
|
-
|
|
10311
|
-
const
|
|
10312
|
-
if (d !==
|
|
10313
|
-
const
|
|
10314
|
-
for (const e of
|
|
10315
|
-
const
|
|
10316
|
-
await Promise.all(
|
|
10317
|
-
const t = await (0, u.resolveMediaElementSource)(e,
|
|
10318
|
-
!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;
|
|
10319
10342
|
}));
|
|
10320
|
-
const
|
|
10321
|
-
await Promise.all(
|
|
10343
|
+
const Q = (0, u.collectAnimationSoundPaths)(X.slides).filter((e) => !J.has(e));
|
|
10344
|
+
await Promise.all(Q.map(async (e) => {
|
|
10322
10345
|
try {
|
|
10323
|
-
const t = await
|
|
10346
|
+
const t = await U.getMediaArrayBuffer(e);
|
|
10324
10347
|
if (t) {
|
|
10325
10348
|
const n = URL.createObjectURL(new Blob([t]));
|
|
10326
|
-
|
|
10349
|
+
G.push(n), J.set(e, n);
|
|
10327
10350
|
}
|
|
10328
10351
|
} catch {}
|
|
10329
10352
|
}));
|
|
10330
|
-
const { paths:
|
|
10331
|
-
let
|
|
10332
|
-
if (
|
|
10353
|
+
const { paths: ee, refs: te } = (0, u.collectImagePaths)(X.slides);
|
|
10354
|
+
let ne = X.slides;
|
|
10355
|
+
if (ee.size > 0) {
|
|
10333
10356
|
const e = /* @__PURE__ */ new Map();
|
|
10334
|
-
await Promise.all(Array.from(
|
|
10357
|
+
await Promise.all(Array.from(ee).map(async (t) => {
|
|
10335
10358
|
try {
|
|
10336
|
-
const n = await
|
|
10359
|
+
const n = await U.getImageData(t);
|
|
10337
10360
|
n && e.set(t, n);
|
|
10338
10361
|
} catch {}
|
|
10339
|
-
})),
|
|
10340
|
-
const n = (0, u.applyImagePathPatches)(t.elements, e,
|
|
10362
|
+
})), ne = X.slides.map((t) => {
|
|
10363
|
+
const n = (0, u.applyImagePathPatches)(t.elements, e, te);
|
|
10341
10364
|
return n === t.elements ? t : {
|
|
10342
10365
|
...t,
|
|
10343
10366
|
elements: n
|
|
10344
10367
|
};
|
|
10345
10368
|
});
|
|
10346
10369
|
}
|
|
10347
|
-
|
|
10348
|
-
const
|
|
10349
|
-
|
|
10350
|
-
const
|
|
10351
|
-
if (d !==
|
|
10352
|
-
const
|
|
10353
|
-
|
|
10354
|
-
width:
|
|
10355
|
-
height:
|
|
10356
|
-
}, a.value = "number" == typeof
|
|
10357
|
-
widthEmu:
|
|
10358
|
-
heightEmu:
|
|
10359
|
-
type:
|
|
10360
|
-
} : void 0, r.value =
|
|
10361
|
-
width: Math.round(
|
|
10362
|
-
height: Math.round(
|
|
10363
|
-
} : 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?.();
|
|
10364
10387
|
} catch (e) {
|
|
10365
|
-
d ===
|
|
10388
|
+
d === j && (e instanceof h.EncryptedFileError ? f.value = !0 : v.value = e instanceof Error ? e.message : String(e));
|
|
10366
10389
|
} finally {
|
|
10367
|
-
|
|
10390
|
+
H.releaseIfUncommitted(), d === j && (m.value = !1);
|
|
10368
10391
|
}
|
|
10369
10392
|
})(e);
|
|
10370
10393
|
}, { immediate: !0 }), (0, d.onScopeDispose)(() => {
|
|
10371
|
-
|
|
10394
|
+
j++, W($), W(Array.from(p.value.values())), g.value && (g.value.dispose(), g.value = null);
|
|
10372
10395
|
}), {
|
|
10373
10396
|
slides: n,
|
|
10374
10397
|
templateElementsBySlideId: o,
|
|
@@ -10383,7 +10406,7 @@ function $d(e, t) {
|
|
|
10383
10406
|
error: v,
|
|
10384
10407
|
isEncrypted: f,
|
|
10385
10408
|
handler: g,
|
|
10386
|
-
coreProperties:
|
|
10409
|
+
coreProperties: y,
|
|
10387
10410
|
customProperties: k,
|
|
10388
10411
|
modifyVerifier: x,
|
|
10389
10412
|
compatibilityWarnings: b,
|
|
@@ -10401,16 +10424,17 @@ function $d(e, t) {
|
|
|
10401
10424
|
presentationProperties: N,
|
|
10402
10425
|
viewProperties: L,
|
|
10403
10426
|
headerFooter: A,
|
|
10404
|
-
|
|
10405
|
-
|
|
10406
|
-
|
|
10407
|
-
|
|
10408
|
-
|
|
10409
|
-
|
|
10410
|
-
|
|
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")
|
|
10411
10435
|
};
|
|
10412
10436
|
}
|
|
10413
|
-
function
|
|
10437
|
+
function Ud() {
|
|
10414
10438
|
const e = (0, d.ref)(!1), t = (0, d.ref)("slides"), n = (0, d.ref)(0), o = (0, d.ref)(null);
|
|
10415
10439
|
return {
|
|
10416
10440
|
showMasterView: e,
|
|
@@ -10426,13 +10450,13 @@ function Wd() {
|
|
|
10426
10450
|
}
|
|
10427
10451
|
};
|
|
10428
10452
|
}
|
|
10429
|
-
var
|
|
10453
|
+
var Hd = {
|
|
10430
10454
|
slides: "slides",
|
|
10431
10455
|
format: "inspector",
|
|
10432
10456
|
comments: "comments",
|
|
10433
10457
|
notes: "notes"
|
|
10434
10458
|
};
|
|
10435
|
-
function
|
|
10459
|
+
function Gd(e) {
|
|
10436
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);
|
|
10437
10461
|
function i(e) {
|
|
10438
10462
|
o.value = "slides" === e, l.value = "format" === e, a.value = "comments" === e, r.value = "notes" === e;
|
|
@@ -10445,8 +10469,8 @@ function Hd(e) {
|
|
|
10445
10469
|
mobileNotesOpen: r,
|
|
10446
10470
|
openMobileSheet: i,
|
|
10447
10471
|
toggleMobileSheet: function(e) {
|
|
10448
|
-
const t = s.value ?
|
|
10449
|
-
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);
|
|
10450
10474
|
},
|
|
10451
10475
|
activeSheet: s,
|
|
10452
10476
|
mobileQuickInsert: function() {
|
|
@@ -10457,7 +10481,7 @@ function Hd(e) {
|
|
|
10457
10481
|
}
|
|
10458
10482
|
};
|
|
10459
10483
|
}
|
|
10460
|
-
function
|
|
10484
|
+
function Kd(e) {
|
|
10461
10485
|
const { selectedElementIds: t, ops: n, clearSelection: o } = e;
|
|
10462
10486
|
return {
|
|
10463
10487
|
deleteSelected: function() {
|
|
@@ -10480,7 +10504,7 @@ function Gd(e) {
|
|
|
10480
10504
|
}
|
|
10481
10505
|
};
|
|
10482
10506
|
}
|
|
10483
|
-
function
|
|
10507
|
+
function Yd() {
|
|
10484
10508
|
const e = (0, d.ref)(!1), t = (0, d.ref)(!1), n = (0, d.ref)(null);
|
|
10485
10509
|
return {
|
|
10486
10510
|
showPasswordDialog: e,
|
|
@@ -10494,7 +10518,7 @@ function Kd() {
|
|
|
10494
10518
|
}
|
|
10495
10519
|
};
|
|
10496
10520
|
}
|
|
10497
|
-
function
|
|
10521
|
+
function qd(e) {
|
|
10498
10522
|
const { slides: t, activeSlideIndex: n, pushHistory: o } = e, l = (0, d.ref)("undefined" != typeof window && (0, u.isPresentationAudience)(window.location.hash));
|
|
10499
10523
|
return {
|
|
10500
10524
|
presenting: l,
|
|
@@ -10527,22 +10551,22 @@ function Yd(e) {
|
|
|
10527
10551
|
}
|
|
10528
10552
|
};
|
|
10529
10553
|
}
|
|
10530
|
-
function qd(e, t, n, o = {}) {
|
|
10531
|
-
return y.SvgExporter.exportSlide(e, t, n, o);
|
|
10532
|
-
}
|
|
10533
10554
|
function Xd(e, t, n, o = {}) {
|
|
10534
|
-
return
|
|
10555
|
+
return h.SvgExporter.exportSlide(e, t, n, o);
|
|
10535
10556
|
}
|
|
10536
|
-
function Zd(e, t = {}) {
|
|
10537
|
-
return
|
|
10557
|
+
function Zd(e, t, n, o = {}) {
|
|
10558
|
+
return new Blob([Xd(e, t, n, o)], { type: "image/svg+xml;charset=utf-8" });
|
|
10538
10559
|
}
|
|
10539
10560
|
function Jd(e, t = {}) {
|
|
10540
|
-
return
|
|
10561
|
+
return h.SvgExporter.exportAll(e, t);
|
|
10541
10562
|
}
|
|
10542
|
-
function Qd(e) {
|
|
10563
|
+
function Qd(e, t = {}) {
|
|
10564
|
+
return Jd(e, t).map((e) => new Blob([e], { type: "image/svg+xml;charset=utf-8" }));
|
|
10565
|
+
}
|
|
10566
|
+
function ep(e) {
|
|
10543
10567
|
return (0, u.openPrintWindow)(e);
|
|
10544
10568
|
}
|
|
10545
|
-
function
|
|
10569
|
+
function tp(e, t, n, o, l, a) {
|
|
10546
10570
|
return (0, u.buildPrintHtmlDocument)({
|
|
10547
10571
|
title: e,
|
|
10548
10572
|
bodyHtml: t,
|
|
@@ -10552,7 +10576,7 @@ function ep(e, t, n, o, l, a) {
|
|
|
10552
10576
|
scaleToFit: a
|
|
10553
10577
|
});
|
|
10554
10578
|
}
|
|
10555
|
-
function
|
|
10579
|
+
function np(e) {
|
|
10556
10580
|
const { slides: t, activeSlideIndex: n, rasterizeSlide: o } = e, l = e.openPrintWindow, a = e.slideSize ?? (0, d.ref)({
|
|
10557
10581
|
width: 960,
|
|
10558
10582
|
height: 540
|
|
@@ -10570,13 +10594,13 @@ function tp(e) {
|
|
|
10570
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);
|
|
10571
10595
|
if ("outline" === c.printWhat) {
|
|
10572
10596
|
const e = (0, u.buildOutlineHtml)(v, d);
|
|
10573
|
-
(l ??
|
|
10597
|
+
(l ?? ep)(tp("Outline", `<div class="outline-page">${e}</div>`, c.orientation, p, c.frameSlides, c.scaleToFit));
|
|
10574
10598
|
return;
|
|
10575
10599
|
}
|
|
10576
10600
|
if (0 === v.length) return;
|
|
10577
10601
|
if ("slides" === c.printWhat) try {
|
|
10578
|
-
const { width: e, height: t } = a.value, n = v.map((n) =>
|
|
10579
|
-
(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, {
|
|
10580
10604
|
title: "Slides (Vector)",
|
|
10581
10605
|
orientation: c.orientation,
|
|
10582
10606
|
colorFilter: p,
|
|
@@ -10597,17 +10621,17 @@ function tp(e) {
|
|
|
10597
10621
|
const l = await o(e, t);
|
|
10598
10622
|
n.push(l.toDataURL("image/png"));
|
|
10599
10623
|
}
|
|
10600
|
-
if ("slides" === c.printWhat) return void g(
|
|
10601
|
-
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));
|
|
10602
10626
|
const l = c.slidesPerPage;
|
|
10603
|
-
g(
|
|
10627
|
+
g(tp(`Handout ${l} per page`, (0, u.buildHandoutsHtml)(n, v, l, e.handoutMaster?.value), "portrait", p, c.frameSlides, c.scaleToFit));
|
|
10604
10628
|
} catch (e) {
|
|
10605
10629
|
console.error("[PowerPointViewer] Print layout failed:", e), f?.close();
|
|
10606
10630
|
}
|
|
10607
10631
|
}
|
|
10608
10632
|
};
|
|
10609
10633
|
}
|
|
10610
|
-
var
|
|
10634
|
+
var op = {
|
|
10611
10635
|
left: "left",
|
|
10612
10636
|
center: "centerH",
|
|
10613
10637
|
right: "right",
|
|
@@ -10615,10 +10639,10 @@ var np = {
|
|
|
10615
10639
|
middle: "middle",
|
|
10616
10640
|
bottom: "bottom"
|
|
10617
10641
|
};
|
|
10618
|
-
function
|
|
10642
|
+
function lp(e) {
|
|
10619
10643
|
return "ellipse" === e || "roundRect" === e || "triangle" === e ? e : "rect";
|
|
10620
10644
|
}
|
|
10621
|
-
function
|
|
10645
|
+
function ap(e) {
|
|
10622
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;
|
|
10623
10647
|
return {
|
|
10624
10648
|
ribbonMode: (0, d.computed)(() => n.value ? "present" : o.value ? "master" : t() ? "edit" : "preview"),
|
|
@@ -10648,7 +10672,7 @@ function lp(e) {
|
|
|
10648
10672
|
rows: i
|
|
10649
10673
|
} });
|
|
10650
10674
|
}(a, c));
|
|
10651
|
-
if (!(0,
|
|
10675
|
+
if (!(0, h.hasTextProperties)(a)) return;
|
|
10652
10676
|
const d = void 0 !== s && "undefined" != typeof document ? document.querySelector("[data-inline-editor]") : null, p = e.readInlineSnapshot?.(), v = p?.elementId === a.id ? p : void 0;
|
|
10653
10677
|
if (v && e.formatInlineSnapshot && !v.textSegments) return;
|
|
10654
10678
|
const f = v?.text ?? (d ? (0, u.readEditableText)(d) : void 0), g = void 0 === f ? a : {
|
|
@@ -10663,7 +10687,7 @@ function lp(e) {
|
|
|
10663
10687
|
...g,
|
|
10664
10688
|
...l
|
|
10665
10689
|
};
|
|
10666
|
-
if (!(l && (0,
|
|
10690
|
+
if (!(l && (0, h.hasTextProperties)(a) && a.textSegments && e.formatInlineSnapshot({
|
|
10667
10691
|
...v,
|
|
10668
10692
|
textSegments: a.textSegments
|
|
10669
10693
|
}))) return;
|
|
@@ -10673,20 +10697,20 @@ function lp(e) {
|
|
|
10673
10697
|
});
|
|
10674
10698
|
return;
|
|
10675
10699
|
}
|
|
10676
|
-
const
|
|
10700
|
+
const y = void 0 === s ? g : {
|
|
10677
10701
|
...g,
|
|
10678
10702
|
...(0, u.setElementBullets)(g, s)
|
|
10679
10703
|
};
|
|
10680
|
-
(0,
|
|
10704
|
+
(0, h.hasTextProperties)(y) && m.updateElement(o, {
|
|
10681
10705
|
...void 0 !== f ? { text: f } : {},
|
|
10682
|
-
...(0, u.applyTextStyleUpdate)(
|
|
10706
|
+
...(0, u.applyTextStyleUpdate)(y, c, null).patch
|
|
10683
10707
|
});
|
|
10684
10708
|
},
|
|
10685
10709
|
ribbonUpdateTextCase: function(t) {
|
|
10686
10710
|
const n = r.value[0];
|
|
10687
10711
|
if (!n) return;
|
|
10688
10712
|
const o = i.value?.elements.find((e) => e.id === n);
|
|
10689
|
-
if (!o || !(0,
|
|
10713
|
+
if (!o || !(0, h.hasTextProperties)(o)) return;
|
|
10690
10714
|
const l = "undefined" == typeof document ? null : document.querySelector("[data-inline-editor]"), a = e.readInlineSnapshot?.(), s = a?.elementId === o.id ? a : void 0, c = s?.text ?? (l ? (0, u.readEditableText)(l) : void 0), d = s?.textSegments ?? (void 0 !== c && o.textSegments ? (0, u.remapTextToSegments)(c, o.textSegments, o.textStyle) : o.textSegments), p = c ?? o.text;
|
|
10691
10715
|
if (s && e.endInlineListSession) {
|
|
10692
10716
|
if (!s.textSegments) return;
|
|
@@ -10728,7 +10752,7 @@ function lp(e) {
|
|
|
10728
10752
|
}
|
|
10729
10753
|
};
|
|
10730
10754
|
}
|
|
10731
|
-
function
|
|
10755
|
+
function rp() {
|
|
10732
10756
|
return {
|
|
10733
10757
|
toolbarSection: (0, d.ref)("home"),
|
|
10734
10758
|
newShapeType: (0, d.ref)("rect"),
|
|
@@ -10749,7 +10773,7 @@ function ap() {
|
|
|
10749
10773
|
eyedropperActive: (0, d.ref)(!1)
|
|
10750
10774
|
};
|
|
10751
10775
|
}
|
|
10752
|
-
function
|
|
10776
|
+
function ip(e) {
|
|
10753
10777
|
const { sections: t, slides: n, activeSlideIndex: o, pushHistory: l } = e;
|
|
10754
10778
|
return {
|
|
10755
10779
|
addSection: (e, o) => {
|
|
@@ -10791,7 +10815,7 @@ function rp(e) {
|
|
|
10791
10815
|
slidesBySection: (0, d.computed)(() => (0, u.groupSlidesBySection)(t.value, n.value))
|
|
10792
10816
|
};
|
|
10793
10817
|
}
|
|
10794
|
-
function
|
|
10818
|
+
function sp(e) {
|
|
10795
10819
|
const { findActiveElement: t, activeSlide: n, selectedElementIds: o, ops: l } = e;
|
|
10796
10820
|
return {
|
|
10797
10821
|
showSelectionPane: (0, d.ref)(!1),
|
|
@@ -10811,8 +10835,8 @@ function ip(e) {
|
|
|
10811
10835
|
}
|
|
10812
10836
|
};
|
|
10813
10837
|
}
|
|
10814
|
-
function
|
|
10815
|
-
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);
|
|
10816
10840
|
return (0, d.watch)(() => n.value, (e) => {
|
|
10817
10841
|
e && a.value && !i.value && (r.value = !0);
|
|
10818
10842
|
}), {
|
|
@@ -10825,7 +10849,7 @@ function sp(e) {
|
|
|
10825
10849
|
}
|
|
10826
10850
|
};
|
|
10827
10851
|
}
|
|
10828
|
-
function
|
|
10852
|
+
function up(e) {
|
|
10829
10853
|
const { slides: t, activeSlideIndex: n, activeSlide: o, pushHistory: l, selectedElements: a } = e;
|
|
10830
10854
|
function r(e) {
|
|
10831
10855
|
const o = n.value, a = t.value[o];
|
|
@@ -10905,7 +10929,7 @@ function cp(e) {
|
|
|
10905
10929
|
}
|
|
10906
10930
|
};
|
|
10907
10931
|
}
|
|
10908
|
-
function
|
|
10932
|
+
function dp(e) {
|
|
10909
10933
|
const { slides: t, activeSlideIndex: n, pushHistory: o } = e;
|
|
10910
10934
|
return {
|
|
10911
10935
|
addSlide: (e = n.value) => {
|
|
@@ -10923,11 +10947,14 @@ function up(e) {
|
|
|
10923
10947
|
if (e < 0 || e >= t.value.length) return;
|
|
10924
10948
|
o();
|
|
10925
10949
|
const l = t.value[e], a = {
|
|
10926
|
-
...(0,
|
|
10950
|
+
...(0, h.duplicateSlide)(l, t.value.length + 1),
|
|
10927
10951
|
id: (0, u.makeSlideId)()
|
|
10928
10952
|
}, r = [...t.value];
|
|
10929
10953
|
r.splice(e + 1, 0, a), t.value = r, n.value = e + 1;
|
|
10930
10954
|
},
|
|
10955
|
+
pasteSlides: (l) => {
|
|
10956
|
+
l.copies.length && (o(), t.value = (0, u.insertSlidePaste)(t.value, l), e.templateElementsBySlideId && (e.templateElementsBySlideId.value = (0, u.applySlidePasteTemplates)(e.templateElementsBySlideId.value, l)), n.value = l.insertAt);
|
|
10957
|
+
},
|
|
10931
10958
|
moveSlide: (e, l) => {
|
|
10932
10959
|
const a = t.value.length;
|
|
10933
10960
|
if (e === l || e < 0 || e >= a || l < 0 || l >= a) return;
|
|
@@ -10937,7 +10964,7 @@ function up(e) {
|
|
|
10937
10964
|
}
|
|
10938
10965
|
};
|
|
10939
10966
|
}
|
|
10940
|
-
function
|
|
10967
|
+
function pp(e) {
|
|
10941
10968
|
const { presentationProperties: t } = e, n = (0, d.ref)(!1), o = (0, d.ref)(!1);
|
|
10942
10969
|
return (0, d.watch)(() => t.value.showSubtitles, (e) => {
|
|
10943
10970
|
o.value = Boolean(e);
|
|
@@ -10961,12 +10988,12 @@ function dp(e) {
|
|
|
10961
10988
|
}
|
|
10962
10989
|
};
|
|
10963
10990
|
}
|
|
10964
|
-
function
|
|
10991
|
+
function mp(e) {
|
|
10965
10992
|
const { canvasSize: t, slides: n, activeSlideIndex: o, pushHistory: l, theme: a } = e;
|
|
10966
10993
|
return { insertSlideFromTemplate: function(e) {
|
|
10967
10994
|
const r = Math.max(0, Math.min(o.value + 1, n.value.length));
|
|
10968
10995
|
l();
|
|
10969
|
-
const i = (0, u.buildSlideTemplateSlide)(e, (0,
|
|
10996
|
+
const i = (0, u.buildSlideTemplateSlide)(e, (0, h.createEditorId)("slide"), n.value.length + 1, {
|
|
10970
10997
|
slideWidth: t.value.width,
|
|
10971
10998
|
slideHeight: t.value.height,
|
|
10972
10999
|
scheme: (0, u.templateSchemeFromTheme)(a.value?.colorScheme)
|
|
@@ -10974,7 +11001,7 @@ function pp(e) {
|
|
|
10974
11001
|
s.splice(r, 0, i), n.value = s, o.value = r;
|
|
10975
11002
|
} };
|
|
10976
11003
|
}
|
|
10977
|
-
function
|
|
11004
|
+
function vp(e) {
|
|
10978
11005
|
const { canEdit: t, findActiveElement: n, updateElement: o, canEditInline: l } = e;
|
|
10979
11006
|
function a(e, t) {
|
|
10980
11007
|
return (0, u.rebuildDrawingShapesIfCleared)(t, t.layout, (0, u.resolvePalette)(t), t.style ?? "flat", e.id, {
|
|
@@ -10989,7 +11016,7 @@ function mp(e) {
|
|
|
10989
11016
|
const i = n(e);
|
|
10990
11017
|
if (!i || "smartArt" !== i.type) return;
|
|
10991
11018
|
const s = i.smartArtData;
|
|
10992
|
-
s && o(e, { smartArtData: a(i, (0,
|
|
11019
|
+
s && o(e, { smartArtData: a(i, (0, h.updateSmartArtNodeText)(s, l, r)) });
|
|
10993
11020
|
},
|
|
10994
11021
|
commitStyle: (e, l) => {
|
|
10995
11022
|
if (!t()) return;
|
|
@@ -11001,7 +11028,7 @@ function mp(e) {
|
|
|
11001
11028
|
}
|
|
11002
11029
|
});
|
|
11003
11030
|
}
|
|
11004
|
-
function
|
|
11031
|
+
function fp(e) {
|
|
11005
11032
|
const { canEdit: t, canEditInline: n, findActiveElement: o, updateElement: l, commitTableCell: a } = e;
|
|
11006
11033
|
(0, d.provide)(zs, {
|
|
11007
11034
|
canEdit: n,
|
|
@@ -11034,18 +11061,18 @@ function vp(e) {
|
|
|
11034
11061
|
}
|
|
11035
11062
|
}), { tableSelection: r };
|
|
11036
11063
|
}
|
|
11037
|
-
function
|
|
11064
|
+
function gp(e) {
|
|
11038
11065
|
const t = (0, d.ref)(!1), { slides: n, pptxTheme: o, themeColorMap: l, pushHistory: a, themeGalleryOpen: r, themeEditorOpen: i, templateElementsBySlideId: s } = e;
|
|
11039
11066
|
function c(e, t, r) {
|
|
11040
11067
|
a();
|
|
11041
|
-
const i = l.value ?? {}, c = o.value?.fontScheme, u = (0,
|
|
11068
|
+
const i = l.value ?? {}, c = o.value?.fontScheme, u = (0, h.applyThemeToData)({
|
|
11042
11069
|
slides: n.value,
|
|
11043
11070
|
theme: o.value,
|
|
11044
11071
|
themeColorMap: i
|
|
11045
11072
|
}, e, t, r);
|
|
11046
11073
|
if (n.value = u.slides, o.value = u.theme, l.value = u.themeColorMap, Object.keys(s.value).length > 0) {
|
|
11047
11074
|
const n = {};
|
|
11048
|
-
for (const [o, l] of Object.entries(s.value)) n[o] = (0,
|
|
11075
|
+
for (const [o, l] of Object.entries(s.value)) n[o] = (0, h.reResolveElementFonts)((0, h.reResolveElementColors)(l, i, e), c, t ?? c ?? {});
|
|
11049
11076
|
s.value = n;
|
|
11050
11077
|
}
|
|
11051
11078
|
}
|
|
@@ -11067,20 +11094,20 @@ function fp(e) {
|
|
|
11067
11094
|
themeEditorBusy: t
|
|
11068
11095
|
};
|
|
11069
11096
|
}
|
|
11070
|
-
var
|
|
11097
|
+
var yp = 0;
|
|
11071
11098
|
function hp(e) {
|
|
11072
|
-
return `ver-${e}-${
|
|
11073
|
-
}
|
|
11074
|
-
function yp(e) {
|
|
11075
|
-
return e.map(y.cloneSlide);
|
|
11099
|
+
return `ver-${e}-${yp += 1}-${Math.random().toString(36).slice(2, 6)}`;
|
|
11076
11100
|
}
|
|
11077
11101
|
function kp(e) {
|
|
11102
|
+
return e.map(h.cloneSlide);
|
|
11103
|
+
}
|
|
11104
|
+
function xp(e) {
|
|
11078
11105
|
const { slides: t, pushHistory: n } = e, o = Math.max(1, e.maxVersions ?? 50), l = (0, d.shallowRef)([]);
|
|
11079
11106
|
return {
|
|
11080
11107
|
versions: l,
|
|
11081
11108
|
hasVersions: (0, d.computed)(() => l.value.length > 0),
|
|
11082
11109
|
capture: (e, n) => {
|
|
11083
|
-
const a =
|
|
11110
|
+
const a = kp(t.value), r = {
|
|
11084
11111
|
id: hp(n),
|
|
11085
11112
|
label: e,
|
|
11086
11113
|
timestamp: n,
|
|
@@ -11092,7 +11119,7 @@ function kp(e) {
|
|
|
11092
11119
|
},
|
|
11093
11120
|
restore: (e) => {
|
|
11094
11121
|
const o = l.value.find((t) => t.id === e);
|
|
11095
|
-
return !!o && (n(), t.value =
|
|
11122
|
+
return !!o && (n(), t.value = kp(o.slides), !0);
|
|
11096
11123
|
},
|
|
11097
11124
|
remove: (e) => {
|
|
11098
11125
|
const t = l.value.filter((t) => t.id !== e);
|
|
@@ -11103,8 +11130,8 @@ function kp(e) {
|
|
|
11103
11130
|
}
|
|
11104
11131
|
};
|
|
11105
11132
|
}
|
|
11106
|
-
function
|
|
11107
|
-
const { slides: t, pushHistory: n } = e, o =
|
|
11133
|
+
function bp(e) {
|
|
11134
|
+
const { slides: t, pushHistory: n } = e, o = xp({
|
|
11108
11135
|
slides: t,
|
|
11109
11136
|
pushHistory: n
|
|
11110
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);
|
|
@@ -11136,7 +11163,7 @@ function xp(e) {
|
|
|
11136
11163
|
}
|
|
11137
11164
|
};
|
|
11138
11165
|
}
|
|
11139
|
-
function
|
|
11166
|
+
function Sp(e) {
|
|
11140
11167
|
return {
|
|
11141
11168
|
onSetMode: (t) => {
|
|
11142
11169
|
"present" === t ? e.startPresenting() : e.presenting.value = !1;
|
|
@@ -11171,7 +11198,7 @@ function bp(e) {
|
|
|
11171
11198
|
e.newShapeType.value = t;
|
|
11172
11199
|
},
|
|
11173
11200
|
onAddTextBox: e.addText,
|
|
11174
|
-
onAddShape: () => e.addShape(
|
|
11201
|
+
onAddShape: () => e.addShape(lp(e.newShapeType.value)),
|
|
11175
11202
|
onAddTable: e.addTable,
|
|
11176
11203
|
onAddChart: e.addChart,
|
|
11177
11204
|
onAddSmartArt: () => {
|
|
@@ -11219,7 +11246,7 @@ function bp(e) {
|
|
|
11219
11246
|
},
|
|
11220
11247
|
onAddGuide: e.addGuide,
|
|
11221
11248
|
onAlignElements: (t) => {
|
|
11222
|
-
const n =
|
|
11249
|
+
const n = op[t];
|
|
11223
11250
|
n && e.onAlign(n);
|
|
11224
11251
|
},
|
|
11225
11252
|
onDistributeElements: (t) => {
|
|
@@ -11378,7 +11405,7 @@ function bp(e) {
|
|
|
11378
11405
|
onPresentationPropertiesChange: e.onPresentationPropertiesUpdate
|
|
11379
11406
|
};
|
|
11380
11407
|
}
|
|
11381
|
-
function
|
|
11408
|
+
function wp(e) {
|
|
11382
11409
|
return {
|
|
11383
11410
|
mode: e.ribbonMode.value,
|
|
11384
11411
|
canEdit: e.canEdit(),
|
|
@@ -11439,13 +11466,13 @@ function Sp(e) {
|
|
|
11439
11466
|
collaboratorCount: e.collab.connectedCount.value
|
|
11440
11467
|
};
|
|
11441
11468
|
}
|
|
11442
|
-
function
|
|
11469
|
+
function Ep(e) {
|
|
11443
11470
|
return (0, d.computed)(() => ({
|
|
11444
|
-
...
|
|
11445
|
-
...
|
|
11471
|
+
...wp(e),
|
|
11472
|
+
...Sp(e)
|
|
11446
11473
|
}));
|
|
11447
11474
|
}
|
|
11448
|
-
function
|
|
11475
|
+
function Bp(e) {
|
|
11449
11476
|
const t = (0, d.ref)(!1), n = (0, d.ref)({
|
|
11450
11477
|
...u.DEFAULT_VIEWER_SETTINGS,
|
|
11451
11478
|
autoSave: e.autoSave.value,
|
|
@@ -11558,7 +11585,7 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
11558
11585
|
}), Object.defineProperty(exports, "ElementRenderer_default", {
|
|
11559
11586
|
enumerable: !0,
|
|
11560
11587
|
get: function() {
|
|
11561
|
-
return
|
|
11588
|
+
return Wc;
|
|
11562
11589
|
}
|
|
11563
11590
|
}), Object.defineProperty(exports, "EquationRenderer_default", {
|
|
11564
11591
|
enumerable: !0,
|
|
@@ -11573,7 +11600,7 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
11573
11600
|
}), Object.defineProperty(exports, "FragmentedTransitionLayer_default", {
|
|
11574
11601
|
enumerable: !0,
|
|
11575
11602
|
get: function() {
|
|
11576
|
-
return
|
|
11603
|
+
return Pu;
|
|
11577
11604
|
}
|
|
11578
11605
|
}), Object.defineProperty(exports, "HIGHLIGHTER_OPACITY", {
|
|
11579
11606
|
enumerable: !0,
|
|
@@ -11598,7 +11625,7 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
11598
11625
|
}), Object.defineProperty(exports, "MorphExtraLayers_default", {
|
|
11599
11626
|
enumerable: !0,
|
|
11600
11627
|
get: function() {
|
|
11601
|
-
return
|
|
11628
|
+
return _u;
|
|
11602
11629
|
}
|
|
11603
11630
|
}), Object.defineProperty(exports, "OleRenderer_default", {
|
|
11604
11631
|
enumerable: !0,
|
|
@@ -11613,12 +11640,12 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
11613
11640
|
}), Object.defineProperty(exports, "PresentationTransitionOverlay_default", {
|
|
11614
11641
|
enumerable: !0,
|
|
11615
11642
|
get: function() {
|
|
11616
|
-
return
|
|
11643
|
+
return Lu;
|
|
11617
11644
|
}
|
|
11618
11645
|
}), Object.defineProperty(exports, "RIBBON_ALIGN", {
|
|
11619
11646
|
enumerable: !0,
|
|
11620
11647
|
get: function() {
|
|
11621
|
-
return
|
|
11648
|
+
return op;
|
|
11622
11649
|
}
|
|
11623
11650
|
}), Object.defineProperty(exports, "Rendering3DFlagsKey", {
|
|
11624
11651
|
enumerable: !0,
|
|
@@ -11628,22 +11655,22 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
11628
11655
|
}), Object.defineProperty(exports, "SHORTCUT_CATALOG", {
|
|
11629
11656
|
enumerable: !0,
|
|
11630
11657
|
get: function() {
|
|
11631
|
-
return
|
|
11658
|
+
return eu;
|
|
11632
11659
|
}
|
|
11633
11660
|
}), Object.defineProperty(exports, "SHORTCUT_GROUP_LABEL_KEYS", {
|
|
11634
11661
|
enumerable: !0,
|
|
11635
11662
|
get: function() {
|
|
11636
|
-
return
|
|
11663
|
+
return tu;
|
|
11637
11664
|
}
|
|
11638
11665
|
}), Object.defineProperty(exports, "SMARTART_COLOR_SCHEMES", {
|
|
11639
11666
|
enumerable: !0,
|
|
11640
11667
|
get: function() {
|
|
11641
|
-
return
|
|
11668
|
+
return uu;
|
|
11642
11669
|
}
|
|
11643
11670
|
}), Object.defineProperty(exports, "SMARTART_STYLE_OPTIONS", {
|
|
11644
11671
|
enumerable: !0,
|
|
11645
11672
|
get: function() {
|
|
11646
|
-
return
|
|
11673
|
+
return du;
|
|
11647
11674
|
}
|
|
11648
11675
|
}), Object.defineProperty(exports, "ScreenTipKey", {
|
|
11649
11676
|
enumerable: !0,
|
|
@@ -11653,7 +11680,7 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
11653
11680
|
}), Object.defineProperty(exports, "SlideStage_default", {
|
|
11654
11681
|
enumerable: !0,
|
|
11655
11682
|
get: function() {
|
|
11656
|
-
return
|
|
11683
|
+
return Hc;
|
|
11657
11684
|
}
|
|
11658
11685
|
}), Object.defineProperty(exports, "SmartArtRenderer_default", {
|
|
11659
11686
|
enumerable: !0,
|
|
@@ -11713,22 +11740,22 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
11713
11740
|
}), Object.defineProperty(exports, "applyDeleteColumn", {
|
|
11714
11741
|
enumerable: !0,
|
|
11715
11742
|
get: function() {
|
|
11716
|
-
return
|
|
11743
|
+
return yu;
|
|
11717
11744
|
}
|
|
11718
11745
|
}), Object.defineProperty(exports, "applyDeleteRow", {
|
|
11719
11746
|
enumerable: !0,
|
|
11720
11747
|
get: function() {
|
|
11721
|
-
return
|
|
11748
|
+
return fu;
|
|
11722
11749
|
}
|
|
11723
11750
|
}), Object.defineProperty(exports, "applyInsertColumn", {
|
|
11724
11751
|
enumerable: !0,
|
|
11725
11752
|
get: function() {
|
|
11726
|
-
return
|
|
11753
|
+
return gu;
|
|
11727
11754
|
}
|
|
11728
11755
|
}), Object.defineProperty(exports, "applyInsertRow", {
|
|
11729
11756
|
enumerable: !0,
|
|
11730
11757
|
get: function() {
|
|
11731
|
-
return
|
|
11758
|
+
return vu;
|
|
11732
11759
|
}
|
|
11733
11760
|
}), Object.defineProperty(exports, "applyMergeSelected", {
|
|
11734
11761
|
enumerable: !0,
|
|
@@ -11743,47 +11770,47 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
11743
11770
|
}), Object.defineProperty(exports, "computeElapsed", {
|
|
11744
11771
|
enumerable: !0,
|
|
11745
11772
|
get: function() {
|
|
11746
|
-
return
|
|
11773
|
+
return Mu;
|
|
11747
11774
|
}
|
|
11748
11775
|
}), Object.defineProperty(exports, "createStroke", {
|
|
11749
11776
|
enumerable: !0,
|
|
11750
11777
|
get: function() {
|
|
11751
|
-
return
|
|
11778
|
+
return bu;
|
|
11752
11779
|
}
|
|
11753
11780
|
}), Object.defineProperty(exports, "dist_exports", {
|
|
11754
11781
|
enumerable: !0,
|
|
11755
11782
|
get: function() {
|
|
11756
|
-
return
|
|
11783
|
+
return h;
|
|
11757
11784
|
}
|
|
11758
11785
|
}), Object.defineProperty(exports, "eraseStrokesAtPoint", {
|
|
11759
11786
|
enumerable: !0,
|
|
11760
11787
|
get: function() {
|
|
11761
|
-
return
|
|
11788
|
+
return Su;
|
|
11762
11789
|
}
|
|
11763
11790
|
}), Object.defineProperty(exports, "exportAllSlidesToSvg", {
|
|
11764
11791
|
enumerable: !0,
|
|
11765
11792
|
get: function() {
|
|
11766
|
-
return
|
|
11793
|
+
return Jd;
|
|
11767
11794
|
}
|
|
11768
11795
|
}), Object.defineProperty(exports, "exportAllSlidesToSvgBlobs", {
|
|
11769
11796
|
enumerable: !0,
|
|
11770
11797
|
get: function() {
|
|
11771
|
-
return
|
|
11798
|
+
return Qd;
|
|
11772
11799
|
}
|
|
11773
11800
|
}), Object.defineProperty(exports, "exportSlideToSvg", {
|
|
11774
11801
|
enumerable: !0,
|
|
11775
11802
|
get: function() {
|
|
11776
|
-
return
|
|
11803
|
+
return Xd;
|
|
11777
11804
|
}
|
|
11778
11805
|
}), Object.defineProperty(exports, "exportSlideToSvgBlob", {
|
|
11779
11806
|
enumerable: !0,
|
|
11780
11807
|
get: function() {
|
|
11781
|
-
return
|
|
11808
|
+
return Zd;
|
|
11782
11809
|
}
|
|
11783
11810
|
}), Object.defineProperty(exports, "formatRehearseMs", {
|
|
11784
11811
|
enumerable: !0,
|
|
11785
11812
|
get: function() {
|
|
11786
|
-
return
|
|
11813
|
+
return Au;
|
|
11787
11814
|
}
|
|
11788
11815
|
}), Object.defineProperty(exports, "getContainerStyle", {
|
|
11789
11816
|
enumerable: !0,
|
|
@@ -11818,7 +11845,7 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
11818
11845
|
}), Object.defineProperty(exports, "groupShortcutCatalog", {
|
|
11819
11846
|
enumerable: !0,
|
|
11820
11847
|
get: function() {
|
|
11821
|
-
return
|
|
11848
|
+
return nu;
|
|
11822
11849
|
}
|
|
11823
11850
|
}), Object.defineProperty(exports, "injectChartCanvasEdit", {
|
|
11824
11851
|
enumerable: !0,
|
|
@@ -11843,12 +11870,12 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
11843
11870
|
}), Object.defineProperty(exports, "parseSignaturesFromBuffer", {
|
|
11844
11871
|
enumerable: !0,
|
|
11845
11872
|
get: function() {
|
|
11846
|
-
return
|
|
11873
|
+
return $d;
|
|
11847
11874
|
}
|
|
11848
11875
|
}), Object.defineProperty(exports, "playAnimationSound", {
|
|
11849
11876
|
enumerable: !0,
|
|
11850
11877
|
get: function() {
|
|
11851
|
-
return
|
|
11878
|
+
return Xc;
|
|
11852
11879
|
}
|
|
11853
11880
|
}), Object.defineProperty(exports, "providePresentationElementStates", {
|
|
11854
11881
|
enumerable: !0,
|
|
@@ -11873,22 +11900,22 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
11873
11900
|
}), Object.defineProperty(exports, "renderToCanvas", {
|
|
11874
11901
|
enumerable: !0,
|
|
11875
11902
|
get: function() {
|
|
11876
|
-
return
|
|
11903
|
+
return Qu;
|
|
11877
11904
|
}
|
|
11878
11905
|
}), Object.defineProperty(exports, "resolveShortcutAction", {
|
|
11879
11906
|
enumerable: !0,
|
|
11880
11907
|
get: function() {
|
|
11881
|
-
return
|
|
11908
|
+
return ou;
|
|
11882
11909
|
}
|
|
11883
11910
|
}), Object.defineProperty(exports, "smartArtLayoutLabel", {
|
|
11884
11911
|
enumerable: !0,
|
|
11885
11912
|
get: function() {
|
|
11886
|
-
return
|
|
11913
|
+
return pu;
|
|
11887
11914
|
}
|
|
11888
11915
|
}), Object.defineProperty(exports, "stopAnimationSound", {
|
|
11889
11916
|
enumerable: !0,
|
|
11890
11917
|
get: function() {
|
|
11891
|
-
return
|
|
11918
|
+
return Zc;
|
|
11892
11919
|
}
|
|
11893
11920
|
}), Object.defineProperty(exports, "textNodeIdsInRenderOrder", {
|
|
11894
11921
|
enumerable: !0,
|
|
@@ -11898,7 +11925,7 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
11898
11925
|
}), Object.defineProperty(exports, "toShapePreset", {
|
|
11899
11926
|
enumerable: !0,
|
|
11900
11927
|
get: function() {
|
|
11901
|
-
return
|
|
11928
|
+
return lp;
|
|
11902
11929
|
}
|
|
11903
11930
|
}), Object.defineProperty(exports, "toZoomTargetInfo", {
|
|
11904
11931
|
enumerable: !0,
|
|
@@ -11908,22 +11935,22 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
11908
11935
|
}), Object.defineProperty(exports, "useAccessibility", {
|
|
11909
11936
|
enumerable: !0,
|
|
11910
11937
|
get: function() {
|
|
11911
|
-
return
|
|
11938
|
+
return ju;
|
|
11912
11939
|
}
|
|
11913
11940
|
}), Object.defineProperty(exports, "useAlignGroup", {
|
|
11914
11941
|
enumerable: !0,
|
|
11915
11942
|
get: function() {
|
|
11916
|
-
return
|
|
11943
|
+
return $u;
|
|
11917
11944
|
}
|
|
11918
11945
|
}), Object.defineProperty(exports, "useAnimationPlayback", {
|
|
11919
11946
|
enumerable: !0,
|
|
11920
11947
|
get: function() {
|
|
11921
|
-
return
|
|
11948
|
+
return ku;
|
|
11922
11949
|
}
|
|
11923
11950
|
}), Object.defineProperty(exports, "useAutosave", {
|
|
11924
11951
|
enumerable: !0,
|
|
11925
11952
|
get: function() {
|
|
11926
|
-
return
|
|
11953
|
+
return Uu;
|
|
11927
11954
|
}
|
|
11928
11955
|
}), Object.defineProperty(exports, "useChartCanvasEditContext", {
|
|
11929
11956
|
enumerable: !0,
|
|
@@ -11933,17 +11960,17 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
11933
11960
|
}), Object.defineProperty(exports, "useChartEditing", {
|
|
11934
11961
|
enumerable: !0,
|
|
11935
11962
|
get: function() {
|
|
11936
|
-
return
|
|
11963
|
+
return iu;
|
|
11937
11964
|
}
|
|
11938
11965
|
}), Object.defineProperty(exports, "useCollaboration", {
|
|
11939
11966
|
enumerable: !0,
|
|
11940
11967
|
get: function() {
|
|
11941
|
-
return
|
|
11968
|
+
return qu;
|
|
11942
11969
|
}
|
|
11943
11970
|
}), Object.defineProperty(exports, "useCollaborationWiring", {
|
|
11944
11971
|
enumerable: !0,
|
|
11945
11972
|
get: function() {
|
|
11946
|
-
return
|
|
11973
|
+
return Xu;
|
|
11947
11974
|
}
|
|
11948
11975
|
}), Object.defineProperty(exports, "useColorChangeImage", {
|
|
11949
11976
|
enumerable: !0,
|
|
@@ -11953,107 +11980,107 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
11953
11980
|
}), Object.defineProperty(exports, "useComments", {
|
|
11954
11981
|
enumerable: !0,
|
|
11955
11982
|
get: function() {
|
|
11956
|
-
return
|
|
11983
|
+
return Zu;
|
|
11957
11984
|
}
|
|
11958
11985
|
}), Object.defineProperty(exports, "useCommentsWiring", {
|
|
11959
11986
|
enumerable: !0,
|
|
11960
11987
|
get: function() {
|
|
11961
|
-
return
|
|
11988
|
+
return Ju;
|
|
11962
11989
|
}
|
|
11963
11990
|
}), Object.defineProperty(exports, "useContextMenu", {
|
|
11964
11991
|
enumerable: !0,
|
|
11965
11992
|
get: function() {
|
|
11966
|
-
return
|
|
11993
|
+
return td;
|
|
11967
11994
|
}
|
|
11968
11995
|
}), Object.defineProperty(exports, "useCustomShows", {
|
|
11969
11996
|
enumerable: !0,
|
|
11970
11997
|
get: function() {
|
|
11971
|
-
return
|
|
11998
|
+
return nd;
|
|
11972
11999
|
}
|
|
11973
12000
|
}), Object.defineProperty(exports, "useCustomShowsWiring", {
|
|
11974
12001
|
enumerable: !0,
|
|
11975
12002
|
get: function() {
|
|
11976
|
-
return
|
|
12003
|
+
return od;
|
|
11977
12004
|
}
|
|
11978
12005
|
}), Object.defineProperty(exports, "useDebouncedCallback", {
|
|
11979
12006
|
enumerable: !0,
|
|
11980
12007
|
get: function() {
|
|
11981
|
-
return
|
|
12008
|
+
return su;
|
|
11982
12009
|
}
|
|
11983
12010
|
}), Object.defineProperty(exports, "useDocumentPropertiesDialog", {
|
|
11984
12011
|
enumerable: !0,
|
|
11985
12012
|
get: function() {
|
|
11986
|
-
return
|
|
12013
|
+
return ld;
|
|
11987
12014
|
}
|
|
11988
12015
|
}), Object.defineProperty(exports, "useDocumentStatistics", {
|
|
11989
12016
|
enumerable: !0,
|
|
11990
12017
|
get: function() {
|
|
11991
|
-
return
|
|
12018
|
+
return Qc;
|
|
11992
12019
|
}
|
|
11993
12020
|
}), Object.defineProperty(exports, "useEditorHistory", {
|
|
11994
12021
|
enumerable: !0,
|
|
11995
12022
|
get: function() {
|
|
11996
|
-
return
|
|
12023
|
+
return ad;
|
|
11997
12024
|
}
|
|
11998
12025
|
}), Object.defineProperty(exports, "useEditorKeyboard", {
|
|
11999
12026
|
enumerable: !0,
|
|
12000
12027
|
get: function() {
|
|
12001
|
-
return
|
|
12028
|
+
return sd;
|
|
12002
12029
|
}
|
|
12003
12030
|
}), Object.defineProperty(exports, "useEditorOperations", {
|
|
12004
12031
|
enumerable: !0,
|
|
12005
12032
|
get: function() {
|
|
12006
|
-
return
|
|
12033
|
+
return cd;
|
|
12007
12034
|
}
|
|
12008
12035
|
}), Object.defineProperty(exports, "useElementDrag", {
|
|
12009
12036
|
enumerable: !0,
|
|
12010
12037
|
get: function() {
|
|
12011
|
-
return
|
|
12038
|
+
return ud;
|
|
12012
12039
|
}
|
|
12013
12040
|
}), Object.defineProperty(exports, "useElementInsertion", {
|
|
12014
12041
|
enumerable: !0,
|
|
12015
12042
|
get: function() {
|
|
12016
|
-
return
|
|
12043
|
+
return dd;
|
|
12017
12044
|
}
|
|
12018
12045
|
}), Object.defineProperty(exports, "useEmbeddedFonts", {
|
|
12019
12046
|
enumerable: !0,
|
|
12020
12047
|
get: function() {
|
|
12021
|
-
return
|
|
12048
|
+
return kd;
|
|
12022
12049
|
}
|
|
12023
12050
|
}), Object.defineProperty(exports, "useExport", {
|
|
12024
12051
|
enumerable: !0,
|
|
12025
12052
|
get: function() {
|
|
12026
|
-
return
|
|
12053
|
+
return bd;
|
|
12027
12054
|
}
|
|
12028
12055
|
}), Object.defineProperty(exports, "useExportProgress", {
|
|
12029
12056
|
enumerable: !0,
|
|
12030
12057
|
get: function() {
|
|
12031
|
-
return
|
|
12058
|
+
return Sd;
|
|
12032
12059
|
}
|
|
12033
12060
|
}), Object.defineProperty(exports, "useExportWiring", {
|
|
12034
12061
|
enumerable: !0,
|
|
12035
12062
|
get: function() {
|
|
12036
|
-
return
|
|
12063
|
+
return Dd;
|
|
12037
12064
|
}
|
|
12038
12065
|
}), Object.defineProperty(exports, "useFindReplace", {
|
|
12039
12066
|
enumerable: !0,
|
|
12040
12067
|
get: function() {
|
|
12041
|
-
return
|
|
12068
|
+
return Nd;
|
|
12042
12069
|
}
|
|
12043
12070
|
}), Object.defineProperty(exports, "useFontEmbedding", {
|
|
12044
12071
|
enumerable: !0,
|
|
12045
12072
|
get: function() {
|
|
12046
|
-
return
|
|
12073
|
+
return Ld;
|
|
12047
12074
|
}
|
|
12048
12075
|
}), Object.defineProperty(exports, "useFormatPainter", {
|
|
12049
12076
|
enumerable: !0,
|
|
12050
12077
|
get: function() {
|
|
12051
|
-
return
|
|
12078
|
+
return Ad;
|
|
12052
12079
|
}
|
|
12053
12080
|
}), Object.defineProperty(exports, "useHeaderFooterDialog", {
|
|
12054
12081
|
enumerable: !0,
|
|
12055
12082
|
get: function() {
|
|
12056
|
-
return
|
|
12083
|
+
return Md;
|
|
12057
12084
|
}
|
|
12058
12085
|
}), Object.defineProperty(exports, "useI18n", {
|
|
12059
12086
|
enumerable: !0,
|
|
@@ -12063,12 +12090,12 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
12063
12090
|
}), Object.defineProperty(exports, "useInkDrawing", {
|
|
12064
12091
|
enumerable: !0,
|
|
12065
12092
|
get: function() {
|
|
12066
|
-
return
|
|
12093
|
+
return Fd;
|
|
12067
12094
|
}
|
|
12068
12095
|
}), Object.defineProperty(exports, "useInlineEditing", {
|
|
12069
12096
|
enumerable: !0,
|
|
12070
12097
|
get: function() {
|
|
12071
|
-
return
|
|
12098
|
+
return zd;
|
|
12072
12099
|
}
|
|
12073
12100
|
}), Object.defineProperty(exports, "useInlineListSession", {
|
|
12074
12101
|
enumerable: !0,
|
|
@@ -12078,42 +12105,42 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
12078
12105
|
}), Object.defineProperty(exports, "useInsertElementDialogs", {
|
|
12079
12106
|
enumerable: !0,
|
|
12080
12107
|
get: function() {
|
|
12081
|
-
return
|
|
12108
|
+
return Rd;
|
|
12082
12109
|
}
|
|
12083
12110
|
}), Object.defineProperty(exports, "useIsMobile", {
|
|
12084
12111
|
enumerable: !0,
|
|
12085
12112
|
get: function() {
|
|
12086
|
-
return
|
|
12113
|
+
return Jc;
|
|
12087
12114
|
}
|
|
12088
12115
|
}), Object.defineProperty(exports, "useKeyboardInsets", {
|
|
12089
12116
|
enumerable: !0,
|
|
12090
12117
|
get: function() {
|
|
12091
|
-
return
|
|
12118
|
+
return jd;
|
|
12092
12119
|
}
|
|
12093
12120
|
}), Object.defineProperty(exports, "useKeyboardShortcuts", {
|
|
12094
12121
|
enumerable: !0,
|
|
12095
12122
|
get: function() {
|
|
12096
|
-
return
|
|
12123
|
+
return au;
|
|
12097
12124
|
}
|
|
12098
12125
|
}), Object.defineProperty(exports, "useLoadContent", {
|
|
12099
12126
|
enumerable: !0,
|
|
12100
12127
|
get: function() {
|
|
12101
|
-
return
|
|
12128
|
+
return Wd;
|
|
12102
12129
|
}
|
|
12103
12130
|
}), Object.defineProperty(exports, "useMasterViewState", {
|
|
12104
12131
|
enumerable: !0,
|
|
12105
12132
|
get: function() {
|
|
12106
|
-
return
|
|
12133
|
+
return Ud;
|
|
12107
12134
|
}
|
|
12108
12135
|
}), Object.defineProperty(exports, "useMediaExport", {
|
|
12109
12136
|
enumerable: !0,
|
|
12110
12137
|
get: function() {
|
|
12111
|
-
return
|
|
12138
|
+
return Od;
|
|
12112
12139
|
}
|
|
12113
12140
|
}), Object.defineProperty(exports, "useMobileChrome", {
|
|
12114
12141
|
enumerable: !0,
|
|
12115
12142
|
get: function() {
|
|
12116
|
-
return
|
|
12143
|
+
return Gd;
|
|
12117
12144
|
}
|
|
12118
12145
|
}), Object.defineProperty(exports, "useModel3dScene", {
|
|
12119
12146
|
enumerable: !0,
|
|
@@ -12123,37 +12150,37 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
12123
12150
|
}), Object.defineProperty(exports, "useMorphTransitionOverlay", {
|
|
12124
12151
|
enumerable: !0,
|
|
12125
12152
|
get: function() {
|
|
12126
|
-
return
|
|
12153
|
+
return Cu;
|
|
12127
12154
|
}
|
|
12128
12155
|
}), Object.defineProperty(exports, "useMultiSelectOps", {
|
|
12129
12156
|
enumerable: !0,
|
|
12130
12157
|
get: function() {
|
|
12131
|
-
return
|
|
12158
|
+
return Kd;
|
|
12132
12159
|
}
|
|
12133
12160
|
}), Object.defineProperty(exports, "usePasswordProtection", {
|
|
12134
12161
|
enumerable: !0,
|
|
12135
12162
|
get: function() {
|
|
12136
|
-
return
|
|
12163
|
+
return Yd;
|
|
12137
12164
|
}
|
|
12138
12165
|
}), Object.defineProperty(exports, "usePresentationAnnotations", {
|
|
12139
12166
|
enumerable: !0,
|
|
12140
12167
|
get: function() {
|
|
12141
|
-
return
|
|
12168
|
+
return wu;
|
|
12142
12169
|
}
|
|
12143
12170
|
}), Object.defineProperty(exports, "usePresentationModeWiring", {
|
|
12144
12171
|
enumerable: !0,
|
|
12145
12172
|
get: function() {
|
|
12146
|
-
return
|
|
12173
|
+
return qd;
|
|
12147
12174
|
}
|
|
12148
12175
|
}), Object.defineProperty(exports, "usePrint", {
|
|
12149
12176
|
enumerable: !0,
|
|
12150
12177
|
get: function() {
|
|
12151
|
-
return
|
|
12178
|
+
return np;
|
|
12152
12179
|
}
|
|
12153
12180
|
}), Object.defineProperty(exports, "useRehearseTimings", {
|
|
12154
12181
|
enumerable: !0,
|
|
12155
12182
|
get: function() {
|
|
12156
|
-
return
|
|
12183
|
+
return Fu;
|
|
12157
12184
|
}
|
|
12158
12185
|
}), Object.defineProperty(exports, "useRendering3DFlags", {
|
|
12159
12186
|
enumerable: !0,
|
|
@@ -12163,32 +12190,32 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
12163
12190
|
}), Object.defineProperty(exports, "useRibbonActions", {
|
|
12164
12191
|
enumerable: !0,
|
|
12165
12192
|
get: function() {
|
|
12166
|
-
return
|
|
12193
|
+
return ap;
|
|
12167
12194
|
}
|
|
12168
12195
|
}), Object.defineProperty(exports, "useRibbonProps", {
|
|
12169
12196
|
enumerable: !0,
|
|
12170
12197
|
get: function() {
|
|
12171
|
-
return
|
|
12198
|
+
return Ep;
|
|
12172
12199
|
}
|
|
12173
12200
|
}), Object.defineProperty(exports, "useRibbonUiState", {
|
|
12174
12201
|
enumerable: !0,
|
|
12175
12202
|
get: function() {
|
|
12176
|
-
return
|
|
12203
|
+
return rp;
|
|
12177
12204
|
}
|
|
12178
12205
|
}), Object.defineProperty(exports, "useSectionOperations", {
|
|
12179
12206
|
enumerable: !0,
|
|
12180
12207
|
get: function() {
|
|
12181
|
-
return
|
|
12208
|
+
return ip;
|
|
12182
12209
|
}
|
|
12183
12210
|
}), Object.defineProperty(exports, "useSelectionAffordances", {
|
|
12184
12211
|
enumerable: !0,
|
|
12185
12212
|
get: function() {
|
|
12186
|
-
return
|
|
12213
|
+
return Kc;
|
|
12187
12214
|
}
|
|
12188
12215
|
}), Object.defineProperty(exports, "useSelectionPaneWiring", {
|
|
12189
12216
|
enumerable: !0,
|
|
12190
12217
|
get: function() {
|
|
12191
|
-
return
|
|
12218
|
+
return sp;
|
|
12192
12219
|
}
|
|
12193
12220
|
}), Object.defineProperty(exports, "useSheetDismissDrag", {
|
|
12194
12221
|
enumerable: !0,
|
|
@@ -12198,42 +12225,42 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
12198
12225
|
}), Object.defineProperty(exports, "useSignatureWorkflow", {
|
|
12199
12226
|
enumerable: !0,
|
|
12200
12227
|
get: function() {
|
|
12201
|
-
return
|
|
12228
|
+
return cp;
|
|
12202
12229
|
}
|
|
12203
12230
|
}), Object.defineProperty(exports, "useSignatures", {
|
|
12204
12231
|
enumerable: !0,
|
|
12205
12232
|
get: function() {
|
|
12206
|
-
return
|
|
12233
|
+
return Ru;
|
|
12207
12234
|
}
|
|
12208
12235
|
}), Object.defineProperty(exports, "useSlideMutations", {
|
|
12209
12236
|
enumerable: !0,
|
|
12210
12237
|
get: function() {
|
|
12211
|
-
return
|
|
12238
|
+
return up;
|
|
12212
12239
|
}
|
|
12213
12240
|
}), Object.defineProperty(exports, "useSlideOperations", {
|
|
12214
12241
|
enumerable: !0,
|
|
12215
12242
|
get: function() {
|
|
12216
|
-
return
|
|
12243
|
+
return dp;
|
|
12217
12244
|
}
|
|
12218
12245
|
}), Object.defineProperty(exports, "useSlideShowSettings", {
|
|
12219
12246
|
enumerable: !0,
|
|
12220
12247
|
get: function() {
|
|
12221
|
-
return
|
|
12248
|
+
return pp;
|
|
12222
12249
|
}
|
|
12223
12250
|
}), Object.defineProperty(exports, "useSlideTemplateInsertion", {
|
|
12224
12251
|
enumerable: !0,
|
|
12225
12252
|
get: function() {
|
|
12226
|
-
return
|
|
12253
|
+
return mp;
|
|
12227
12254
|
}
|
|
12228
12255
|
}), Object.defineProperty(exports, "useSmartArtEditing", {
|
|
12229
12256
|
enumerable: !0,
|
|
12230
12257
|
get: function() {
|
|
12231
|
-
return
|
|
12258
|
+
return mu;
|
|
12232
12259
|
}
|
|
12233
12260
|
}), Object.defineProperty(exports, "useSmartArtFocus", {
|
|
12234
12261
|
enumerable: !0,
|
|
12235
12262
|
get: function() {
|
|
12236
|
-
return
|
|
12263
|
+
return cu;
|
|
12237
12264
|
}
|
|
12238
12265
|
}), Object.defineProperty(exports, "useSmartArtHoverRect", {
|
|
12239
12266
|
enumerable: !0,
|
|
@@ -12248,12 +12275,12 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
12248
12275
|
}), Object.defineProperty(exports, "useSmartArtNodeEditContext", {
|
|
12249
12276
|
enumerable: !0,
|
|
12250
12277
|
get: function() {
|
|
12251
|
-
return
|
|
12278
|
+
return vp;
|
|
12252
12279
|
}
|
|
12253
12280
|
}), Object.defineProperty(exports, "useTableCellEditingContext", {
|
|
12254
12281
|
enumerable: !0,
|
|
12255
12282
|
get: function() {
|
|
12256
|
-
return
|
|
12283
|
+
return fp;
|
|
12257
12284
|
}
|
|
12258
12285
|
}), Object.defineProperty(exports, "useTableCellSelection", {
|
|
12259
12286
|
enumerable: !0,
|
|
@@ -12263,32 +12290,32 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
12263
12290
|
}), Object.defineProperty(exports, "useThemeEditing", {
|
|
12264
12291
|
enumerable: !0,
|
|
12265
12292
|
get: function() {
|
|
12266
|
-
return
|
|
12293
|
+
return gp;
|
|
12267
12294
|
}
|
|
12268
12295
|
}), Object.defineProperty(exports, "useToolbarAutoHide", {
|
|
12269
12296
|
enumerable: !0,
|
|
12270
12297
|
get: function() {
|
|
12271
|
-
return
|
|
12298
|
+
return Eu;
|
|
12272
12299
|
}
|
|
12273
12300
|
}), Object.defineProperty(exports, "useToolbarVisibility", {
|
|
12274
12301
|
enumerable: !0,
|
|
12275
12302
|
get: function() {
|
|
12276
|
-
return
|
|
12303
|
+
return Yc;
|
|
12277
12304
|
}
|
|
12278
12305
|
}), Object.defineProperty(exports, "useTouchGestures", {
|
|
12279
12306
|
enumerable: !0,
|
|
12280
12307
|
get: function() {
|
|
12281
|
-
return
|
|
12308
|
+
return Bu;
|
|
12282
12309
|
}
|
|
12283
12310
|
}), Object.defineProperty(exports, "useVersionHistory", {
|
|
12284
12311
|
enumerable: !0,
|
|
12285
12312
|
get: function() {
|
|
12286
|
-
return
|
|
12313
|
+
return xp;
|
|
12287
12314
|
}
|
|
12288
12315
|
}), Object.defineProperty(exports, "useVersionHistoryWiring", {
|
|
12289
12316
|
enumerable: !0,
|
|
12290
12317
|
get: function() {
|
|
12291
|
-
return
|
|
12318
|
+
return bp;
|
|
12292
12319
|
}
|
|
12293
12320
|
}), Object.defineProperty(exports, "useViewerOptionsStore", {
|
|
12294
12321
|
enumerable: !0,
|
|
@@ -12298,6 +12325,6 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
12298
12325
|
}), Object.defineProperty(exports, "useViewerSettingsDialog", {
|
|
12299
12326
|
enumerable: !0,
|
|
12300
12327
|
get: function() {
|
|
12301
|
-
return
|
|
12328
|
+
return Bp;
|
|
12302
12329
|
}
|
|
12303
12330
|
});
|