pptx-vue-viewer 4.33.2 → 4.34.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 +27 -0
- package/dist/{AiChatPanel-CFpccz4k.js → AiChatPanel-Xs90pv2f.js} +2 -2
- package/dist/AiChatPanel-Xs90pv2f.js.br +0 -0
- package/dist/AiChatPanel-Xs90pv2f.js.gz +0 -0
- package/dist/{AiChatPanel-PQ5I2MIX.cjs → AiChatPanel-pKzcrlCi.cjs} +1 -1
- package/dist/AiChatPanel-pKzcrlCi.cjs.br +0 -0
- package/dist/AiChatPanel-pKzcrlCi.cjs.gz +0 -0
- package/dist/i18n/de.cjs +9 -0
- package/dist/i18n/de.cjs.br +0 -0
- package/dist/i18n/de.cjs.gz +0 -0
- package/dist/i18n/de.mjs +9 -0
- package/dist/i18n/de.mjs.br +0 -0
- package/dist/i18n/de.mjs.gz +0 -0
- package/dist/i18n/es.cjs +9 -0
- package/dist/i18n/es.cjs.br +0 -0
- package/dist/i18n/es.cjs.gz +0 -0
- package/dist/i18n/es.mjs +9 -0
- package/dist/i18n/es.mjs.br +0 -0
- package/dist/i18n/es.mjs.gz +0 -0
- package/dist/i18n/fr.cjs +9 -0
- package/dist/i18n/fr.cjs.br +0 -0
- package/dist/i18n/fr.cjs.gz +0 -0
- package/dist/i18n/fr.mjs +9 -0
- package/dist/i18n/fr.mjs.br +0 -0
- package/dist/i18n/fr.mjs.gz +0 -0
- package/dist/i18n/zh-CN.cjs +9 -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 +9 -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 +6 -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 +14 -14
- package/dist/pptx-vue-viewer.css.br +0 -0
- package/dist/pptx-vue-viewer.css.gz +0 -0
- package/dist/{useViewerSettingsDialog-CJRpDAej.cjs → useViewerSettingsDialog-B4X5ChkE.cjs} +394 -374
- package/dist/useViewerSettingsDialog-B4X5ChkE.cjs.br +0 -0
- package/dist/useViewerSettingsDialog-B4X5ChkE.cjs.gz +0 -0
- package/dist/{useViewerSettingsDialog-CZtUjVf5.js → useViewerSettingsDialog-DxyBl4cB.js} +2498 -2478
- package/dist/useViewerSettingsDialog-DxyBl4cB.js.br +0 -0
- package/dist/useViewerSettingsDialog-DxyBl4cB.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.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-DmUdXlFL.cjs} +3186 -3075
- package/dist/viewer-DmUdXlFL.cjs.br +0 -0
- package/dist/viewer-DmUdXlFL.cjs.gz +0 -0
- package/dist/{viewer-Do8AxyT-.js → viewer-NLCorUCQ.js} +6357 -6246
- package/dist/viewer-NLCorUCQ.js.br +0 -0
- package/dist/viewer-NLCorUCQ.js.gz +0 -0
- package/dist/{y-webrtc-CDGNVw9J.cjs → y-webrtc-i3P367KW.cjs} +1 -1
- package/dist/y-webrtc-i3P367KW.cjs.br +0 -0
- package/dist/y-webrtc-i3P367KW.cjs.gz +0 -0
- package/dist/{y-webrtc-DgDM-2xF.js → y-webrtc-nDXsLBqD.js} +1 -1
- package/dist/y-webrtc-nDXsLBqD.js.br +0 -0
- package/dist/y-webrtc-nDXsLBqD.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,7 +6377,7 @@ 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
6382
|
}), [["__scopeId", "data-v-12ce2987"]]), zc = ["data-element-id", "data-pptx-element"], Rc = ["data-element-id", "data-pptx-element"], Vc = ["data-element-id", "data-pptx-element"], jc = { class: "pptx-vue-placeholder" }, $c = (0, d.defineComponent)({
|
|
6376
6383
|
__name: "ElementRenderer",
|
|
@@ -6393,7 +6400,7 @@ var Pc = [
|
|
|
6393
6400
|
};
|
|
6394
6401
|
return e.transform && t.transform && (n.transform = `${e.transform} ${t.transform}`), n;
|
|
6395
6402
|
}), f = (0, d.computed)(() => {
|
|
6396
|
-
const e = al(t.element), n = (0,
|
|
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
|
});
|
|
@@ -6404,9 +6411,9 @@ var Pc = [
|
|
|
6404
6411
|
};
|
|
6405
6412
|
return e.transform && o.transform && (l.transform = `${String(e.transform)} ${String(o.transform)}`), l;
|
|
6406
6413
|
}), g = (0, d.computed)(() => {
|
|
6407
|
-
const e = (0,
|
|
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
|
+
}), y = (0, d.computed)(() => "text" === t.element.type || "shape" === t.element.type), k = (0, d.computed)(() => "picture" === t.element.type || "image" === t.element.type), x = (0, d.computed)(() => (0, h.hasTextProperties)(t.element) && (0, u.isEquationOnlyText)(t.element.textSegments)), b = (0, d.computed)(() => (0, u.hasTextWarp)(t.element)), S = (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
|
}), w = (0, d.computed)(() => (0, u.buildParagraphs)(t.element, Qo(l), S.value)), E = (0, d.computed)(() => w.value.some((e) => e.runs.length > 0 || void 0 !== e.bulletMarker)), B = (0, d.computed)(() => E.value ? null : (0, u.placeholderPromptDescriptor)(t.element, t.interactive && !t.presenting ? "edit" : "present")), C = (0, d.computed)(() => t.templateEditing ? "pptx-vue-template-editing" : null), I = (0, d.computed)(() => t.interactive || t.marked ? "true" : void 0), P = (0, d.computed)(() => {
|
|
@@ -6668,7 +6675,7 @@ var Pc = [
|
|
|
6668
6675
|
"interactive",
|
|
6669
6676
|
"presenting",
|
|
6670
6677
|
"data-pptx-element"
|
|
6671
|
-
])) :
|
|
6678
|
+
])) : y.value ? ((0, d.openBlock)(), (0, d.createElementBlock)("div", {
|
|
6672
6679
|
key: 15,
|
|
6673
6680
|
class: (0, d.normalizeClass)(["pptx-vue-element pptx-vue-shape", C.value]),
|
|
6674
6681
|
style: (0, d.normalizeStyle)([v.value, P.value]),
|
|
@@ -6905,8 +6912,8 @@ function Zc(e = 768, t) {
|
|
|
6905
6912
|
o ? o.addEventListener("resize", l) : window.addEventListener("resize", l), (0, d.onScopeDispose)(() => {
|
|
6906
6913
|
window.removeEventListener("resize", e), t?.removeEventListener("change", e), o ? o.removeEventListener("resize", l) : window.removeEventListener("resize", l);
|
|
6907
6914
|
});
|
|
6908
|
-
},
|
|
6909
|
-
if (
|
|
6915
|
+
}, y = "undefined" != typeof window;
|
|
6916
|
+
if (y && "undefined" != typeof ResizeObserver && t) {
|
|
6910
6917
|
let e = null, n = null;
|
|
6911
6918
|
const o = () => {
|
|
6912
6919
|
f(window.innerWidth, window.innerHeight);
|
|
@@ -6926,8 +6933,8 @@ function Zc(e = 768, t) {
|
|
|
6926
6933
|
e?.disconnect(), l();
|
|
6927
6934
|
}), v;
|
|
6928
6935
|
}
|
|
6929
|
-
if (!(
|
|
6930
|
-
const
|
|
6936
|
+
if (!(y && "function" == typeof window.matchMedia)) return v;
|
|
6937
|
+
const h = () => {
|
|
6931
6938
|
f(window.innerWidth, window.innerHeight);
|
|
6932
6939
|
}, 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
6940
|
n.value = e.matches;
|
|
@@ -6938,8 +6945,8 @@ function Zc(e = 768, t) {
|
|
|
6938
6945
|
const b = (e) => {
|
|
6939
6946
|
x(e);
|
|
6940
6947
|
};
|
|
6941
|
-
return k.addEventListener("change", b), window.addEventListener("resize",
|
|
6942
|
-
k.removeEventListener("change", b), window.removeEventListener("resize",
|
|
6948
|
+
return k.addEventListener("change", b), window.addEventListener("resize", h), g(), (0, d.onScopeDispose)(() => {
|
|
6949
|
+
k.removeEventListener("change", b), window.removeEventListener("resize", h);
|
|
6943
6950
|
}), v;
|
|
6944
6951
|
}
|
|
6945
6952
|
function Jc(e, t) {
|
|
@@ -7198,15 +7205,15 @@ function ru(e, t, n, o = () => !0) {
|
|
|
7198
7205
|
o(r), r.chartData && n(r.chartData);
|
|
7199
7206
|
};
|
|
7200
7207
|
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,
|
|
7208
|
+
setAxisLogScale: (e, t) => o((n) => (0, h.setChartAxisLogScale)(n, e, t)),
|
|
7209
|
+
setAxisTitleStyle: (e, t) => o((n) => (0, h.setChartAxisTitleStyle)(n, e, t)),
|
|
7210
|
+
setGridlineStyle: (e, t, n) => o((o) => (0, h.setChartAxisGridlineStyle)(o, e, t, n)),
|
|
7211
|
+
setSeriesMarker: (e, t) => o((n) => (0, h.setChartSeriesMarker)(n, e, t)),
|
|
7212
|
+
setSeriesType: (e, t) => o((n) => (0, h.setChartSeriesChartType)(n, e, t)),
|
|
7213
|
+
setPointFill: (e, t, n) => o((o) => (0, h.setChartDataPointFill)(o, e, t, n)),
|
|
7214
|
+
setPointExplosion: (e, t, n) => o((o) => (0, h.setChartDataPointExplosion)(o, e, t, n)),
|
|
7215
|
+
setPointMarker: (e, t, n) => o((o) => (0, h.setChartDataPointMarker)(o, e, t, n)),
|
|
7216
|
+
setPointLabel: (e, t, n) => o((o) => (0, h.setChartDataPointLabel)(o, e, t, null !== n ? { text: n } : null))
|
|
7210
7217
|
};
|
|
7211
7218
|
}(e, t, l),
|
|
7212
7219
|
updateSeries: r,
|
|
@@ -7315,12 +7322,12 @@ function pu(e) {
|
|
|
7315
7322
|
};
|
|
7316
7323
|
});
|
|
7317
7324
|
}), { pendingFocusId: v, setInputEl: f, focusNode: g } = su();
|
|
7318
|
-
function
|
|
7325
|
+
function y(t, o) {
|
|
7319
7326
|
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
7327
|
n({ smartArtData: a }), g(o);
|
|
7321
7328
|
}
|
|
7322
7329
|
function k(e) {
|
|
7323
|
-
|
|
7330
|
+
y({
|
|
7324
7331
|
...t.value,
|
|
7325
7332
|
...e
|
|
7326
7333
|
});
|
|
@@ -7330,16 +7337,16 @@ function pu(e) {
|
|
|
7330
7337
|
return !!o.value.find((t) => t.id === e)?.parentId || (0, u.canRemoveTopLevelNode)(r.value, i.value);
|
|
7331
7338
|
}
|
|
7332
7339
|
function b(e) {
|
|
7333
|
-
const n = (0,
|
|
7334
|
-
n !== t.value &&
|
|
7340
|
+
const n = (0, h.promoteSmartArtNode)(t.value, e);
|
|
7341
|
+
n !== t.value && y(n, e);
|
|
7335
7342
|
}
|
|
7336
7343
|
function S(e) {
|
|
7337
7344
|
const n = (0, u.demote)(t.value, e);
|
|
7338
|
-
n &&
|
|
7345
|
+
n && y(n, e);
|
|
7339
7346
|
}
|
|
7340
7347
|
function w(e, n) {
|
|
7341
7348
|
const o = (0, u.reorder)(t.value, e, n);
|
|
7342
|
-
o &&
|
|
7349
|
+
o && y(o, e);
|
|
7343
7350
|
}
|
|
7344
7351
|
return {
|
|
7345
7352
|
nodes: o,
|
|
@@ -7354,20 +7361,20 @@ function pu(e) {
|
|
|
7354
7361
|
pendingFocusId: v,
|
|
7355
7362
|
setInputEl: f,
|
|
7356
7363
|
updateNodeText: function(e, n) {
|
|
7357
|
-
|
|
7364
|
+
y((0, h.updateSmartArtNodeText)(t.value, e, n));
|
|
7358
7365
|
},
|
|
7359
7366
|
setNodeStyle: function(e, n) {
|
|
7360
|
-
const o = (0,
|
|
7361
|
-
o !== t.value &&
|
|
7367
|
+
const o = (0, h.setSmartArtNodeStyle)(t.value, e, n);
|
|
7368
|
+
o !== t.value && y(o);
|
|
7362
7369
|
},
|
|
7363
7370
|
addItem: function() {
|
|
7364
|
-
s.value &&
|
|
7371
|
+
s.value && y((0, h.addSmartArtNode)(t.value, `Item ${o.value.length + 1}`));
|
|
7365
7372
|
},
|
|
7366
7373
|
addSubItem: function(e) {
|
|
7367
|
-
|
|
7374
|
+
y((0, h.addSmartArtNodeAsChild)(t.value, e, "Sub-item"));
|
|
7368
7375
|
},
|
|
7369
7376
|
removeNode: function(e) {
|
|
7370
|
-
x(e) &&
|
|
7377
|
+
x(e) && y((0, h.removeSmartArtNode)(t.value, e));
|
|
7371
7378
|
},
|
|
7372
7379
|
promote: b,
|
|
7373
7380
|
demote: S,
|
|
@@ -7378,13 +7385,13 @@ function pu(e) {
|
|
|
7378
7385
|
if ("Enter" === e.key) {
|
|
7379
7386
|
e.preventDefault();
|
|
7380
7387
|
const o = (0, u.addSiblingAfter)(t.value, n);
|
|
7381
|
-
o &&
|
|
7388
|
+
o && y(o.data, o.focusNodeId);
|
|
7382
7389
|
} 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
7390
|
else {
|
|
7384
7391
|
if (!x(n)) return;
|
|
7385
7392
|
e.preventDefault();
|
|
7386
7393
|
const o = (0, u.removeEmptyNode)(t.value, n);
|
|
7387
|
-
o &&
|
|
7394
|
+
o && y(o.data, o.focusNodeId);
|
|
7388
7395
|
}
|
|
7389
7396
|
},
|
|
7390
7397
|
setColorScheme: function(e) {
|
|
@@ -7412,10 +7419,10 @@ function gu(e, t) {
|
|
|
7412
7419
|
const n = (0, d.toRaw)(e), o = (0, u.removeTableElementColumn)(n, t);
|
|
7413
7420
|
return o === n ? null : o;
|
|
7414
7421
|
}
|
|
7415
|
-
function
|
|
7422
|
+
function yu(e, t) {
|
|
7416
7423
|
return !t || t.length < 2 || !(0, u.canMergeCells)(t, e) ? null : (0, u.mergeCells)(t, e);
|
|
7417
7424
|
}
|
|
7418
|
-
function
|
|
7425
|
+
function hu(e) {
|
|
7419
7426
|
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
7427
|
let r = null;
|
|
7421
7428
|
const i = [], s = (0, u.createActiveAnimationGroup)(), c = {
|
|
@@ -7437,14 +7444,14 @@ function yu(e) {
|
|
|
7437
7444
|
}
|
|
7438
7445
|
const f = (0, d.ref)(!1);
|
|
7439
7446
|
let g = !1;
|
|
7440
|
-
function
|
|
7447
|
+
function y(s) {
|
|
7441
7448
|
m(), f.value = !1;
|
|
7442
7449
|
const g = (0, d.toValue)(e.slide);
|
|
7443
7450
|
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
|
|
7451
|
+
const y = (0, d.toValue)(e.canvasSize);
|
|
7445
7452
|
if (r = u.PresentationAnimationController.fromSlide(g, {
|
|
7446
|
-
slideHeightPx:
|
|
7447
|
-
slideWidthPx:
|
|
7453
|
+
slideHeightPx: y?.height,
|
|
7454
|
+
slideWidthPx: y?.width,
|
|
7448
7455
|
themeColorMap: (0, d.toValue)(e.themeColorMap),
|
|
7449
7456
|
pixelateMosaic: (0, d.toValue)(e.pixelateMosaicAnimation)
|
|
7450
7457
|
}), 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 +7468,7 @@ function yu(e) {
|
|
|
7461
7468
|
}
|
|
7462
7469
|
return (0, d.watch)(() => [(0, d.toValue)(e.slide), (0, d.toValue)(e.showWithAnimation)], () => {
|
|
7463
7470
|
const e = g;
|
|
7464
|
-
g = !1,
|
|
7471
|
+
g = !1, y({ completed: e });
|
|
7465
7472
|
}, { immediate: !0 }), (0, d.onScopeDispose)(m), {
|
|
7466
7473
|
presentationElementStates: t,
|
|
7467
7474
|
presentationKeyframesCss: n,
|
|
@@ -7477,7 +7484,7 @@ function yu(e) {
|
|
|
7477
7484
|
const e = (0, u.advanceMainSequence)(r, c, s);
|
|
7478
7485
|
return v(), e;
|
|
7479
7486
|
},
|
|
7480
|
-
reset:
|
|
7487
|
+
reset: y,
|
|
7481
7488
|
handleInteractiveShapeClick: function(e) {
|
|
7482
7489
|
if (!r || !r.hasInteractiveSequence(e)) return !1;
|
|
7483
7490
|
const t = r.advanceInteractive(e);
|
|
@@ -7838,7 +7845,7 @@ var Cu = ["data-pptx-transition-fragment"], Iu = Xo((0, d.defineComponent)({
|
|
|
7838
7845
|
}), v = (0, d.computed)(() => l.value.outgoingOnTop ? 2 : 1), f = (0, d.computed)(() => l.value.outgoingOnTop ? 1 : 2), g = (0, d.computed)(() => ({
|
|
7839
7846
|
zIndex: i.value ? 2 : v.value,
|
|
7840
7847
|
animation: i.value ? void 0 : "none" !== l.value.outgoing ? l.value.outgoing : void 0
|
|
7841
|
-
})),
|
|
7848
|
+
})), y = (0, d.computed)(() => ({ zIndex: 3 })), h = (0, d.computed)(() => ({
|
|
7842
7849
|
zIndex: i.value ? 1 : f.value,
|
|
7843
7850
|
animation: i.value ? void 0 : "none" !== l.value.incoming ? l.value.incoming : void 0
|
|
7844
7851
|
}));
|
|
@@ -7906,7 +7913,7 @@ var Cu = ["data-pptx-transition-fragment"], Iu = Xo((0, d.defineComponent)({
|
|
|
7906
7913
|
"data-pptx-transition-layer": "incoming",
|
|
7907
7914
|
"data-pptx-morph-incoming": (0, d.unref)(i) ? "true" : void 0,
|
|
7908
7915
|
"data-pptx-transition-fragments": !(0, d.unref)(i) && r.value?.incoming ? r.value.incoming.keyframesName : void 0,
|
|
7909
|
-
style: (0, d.normalizeStyle)(
|
|
7916
|
+
style: (0, d.normalizeStyle)(h.value)
|
|
7910
7917
|
}, [!(0, d.unref)(i) && r.value?.incoming ? ((0, d.openBlock)(), (0, d.createBlock)(Iu, {
|
|
7911
7918
|
key: 0,
|
|
7912
7919
|
layer: r.value.incoming,
|
|
@@ -7937,7 +7944,7 @@ var Cu = ["data-pptx-transition-fragment"], Iu = Xo((0, d.defineComponent)({
|
|
|
7937
7944
|
]))], 12, Du),
|
|
7938
7945
|
(0, d.createVNode)(Tu, {
|
|
7939
7946
|
"lifted-slide": (0, d.unref)(c),
|
|
7940
|
-
"lifted-layer-style":
|
|
7947
|
+
"lifted-layer-style": y.value,
|
|
7941
7948
|
"crossfade-groups": (0, d.unref)(p),
|
|
7942
7949
|
"canvas-size": e.canvasSize,
|
|
7943
7950
|
"media-data-urls": e.mediaDataUrls,
|
|
@@ -7975,15 +7982,15 @@ function Mu(e = {}) {
|
|
|
7975
7982
|
p.value += 1;
|
|
7976
7983
|
}, n));
|
|
7977
7984
|
}
|
|
7978
|
-
const g = (0, d.computed)(() => (p.value, o.value ? Au(s.value, t(), c, u) : 0)),
|
|
7985
|
+
const g = (0, d.computed)(() => (p.value, o.value ? Au(s.value, t(), c, u) : 0)), y = (0, d.computed)(() => (p.value, o.value ? Au(i.value, t()) : 0)), h = (0, d.computed)(() => Object.values(r.value).reduce((e, t) => e + t, 0));
|
|
7979
7986
|
return (0, d.onScopeDispose)(v), {
|
|
7980
7987
|
rehearsing: o,
|
|
7981
7988
|
paused: l,
|
|
7982
7989
|
showSummary: a,
|
|
7983
7990
|
recordedTimings: r,
|
|
7984
7991
|
slideElapsedMs: g,
|
|
7985
|
-
totalElapsedMs:
|
|
7986
|
-
totalRecordedMs:
|
|
7992
|
+
totalElapsedMs: y,
|
|
7993
|
+
totalRecordedMs: h,
|
|
7987
7994
|
start: function() {
|
|
7988
7995
|
const e = t();
|
|
7989
7996
|
o.value = !0, l.value = !1, a.value = !1, r.value = {}, c = 0, u = null, i.value = e, s.value = e, f();
|
|
@@ -8041,9 +8048,9 @@ function Vu(e, t = {}) {
|
|
|
8041
8048
|
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
8049
|
for (let e = 0; e < n.length; e++) {
|
|
8043
8050
|
const t = n[e];
|
|
8044
|
-
i.push(...(0,
|
|
8051
|
+
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
8052
|
}
|
|
8046
|
-
return i.push(...(0,
|
|
8053
|
+
return i.push(...(0, h.checkDuplicateTitles)(n)), i.sort((e, t) => e.slideIndex - t.slideIndex || Ru[e.severity] - Ru[t.severity]), i;
|
|
8047
8054
|
});
|
|
8048
8055
|
return {
|
|
8049
8056
|
issues: n,
|
|
@@ -8085,7 +8092,7 @@ function ju(e) {
|
|
|
8085
8092
|
const e = t.value, a = o.value, i = l.value[a];
|
|
8086
8093
|
if (e.length < 2 || !i) return;
|
|
8087
8094
|
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,
|
|
8095
|
+
const { elements: s, groupId: c } = (0, u.groupElements)(i.elements, e.map((e) => e.id), (0, h.createEditorId)("grp"));
|
|
8089
8096
|
if (null === c) return;
|
|
8090
8097
|
r();
|
|
8091
8098
|
const d = l.value.slice();
|
|
@@ -8119,7 +8126,7 @@ function Wu(e) {
|
|
|
8119
8126
|
let p = null, m = null, v = null;
|
|
8120
8127
|
const f = () => !1 !== (0, d.toValue)(o), g = () => {
|
|
8121
8128
|
null !== p && (r.clearTimer(p), p = null);
|
|
8122
|
-
},
|
|
8129
|
+
}, y = async () => {
|
|
8123
8130
|
m && await m.catch(() => {}), g(), i.value = "saving";
|
|
8124
8131
|
const e = (async () => {
|
|
8125
8132
|
try {
|
|
@@ -8134,7 +8141,7 @@ function Wu(e) {
|
|
|
8134
8141
|
} finally {
|
|
8135
8142
|
m = null;
|
|
8136
8143
|
}
|
|
8137
|
-
},
|
|
8144
|
+
}, h = () => {
|
|
8138
8145
|
g();
|
|
8139
8146
|
const e = (0, u.nextAutosaveDelayMs)({
|
|
8140
8147
|
intervalMs: (0, d.toValue)(l),
|
|
@@ -8142,19 +8149,19 @@ function Wu(e) {
|
|
|
8142
8149
|
now: Date.now()
|
|
8143
8150
|
});
|
|
8144
8151
|
p = r.setTimer(() => {
|
|
8145
|
-
p = null, f() && c.value &&
|
|
8152
|
+
p = null, f() && c.value && y().catch(() => {});
|
|
8146
8153
|
}, e);
|
|
8147
8154
|
};
|
|
8148
8155
|
return (0, d.watch)(n ? [t, n] : [t], () => {
|
|
8149
|
-
c.value && null !== v || (v = Date.now()), c.value = !0, f() &&
|
|
8156
|
+
c.value && null !== v || (v = Date.now()), c.value = !0, f() && h();
|
|
8150
8157
|
}, { flush: "sync" }), (0, d.watch)(() => (0, d.toValue)(l), () => {
|
|
8151
|
-
null !== p &&
|
|
8158
|
+
null !== p && h();
|
|
8152
8159
|
}), (0, d.onScopeDispose)(() => {
|
|
8153
8160
|
g();
|
|
8154
8161
|
}), {
|
|
8155
8162
|
status: i,
|
|
8156
8163
|
lastSavedAt: s,
|
|
8157
|
-
saveNow: () =>
|
|
8164
|
+
saveNow: () => y(),
|
|
8158
8165
|
isDirty: c
|
|
8159
8166
|
};
|
|
8160
8167
|
}
|
|
@@ -8183,7 +8190,7 @@ function Uu(e, t) {
|
|
|
8183
8190
|
i = !1;
|
|
8184
8191
|
}
|
|
8185
8192
|
}
|
|
8186
|
-
const
|
|
8193
|
+
const y = (0, d.watch)(e.slides, f, { deep: !1 }), h = e.loadVersion ? (k = {
|
|
8187
8194
|
loadVersion: e.loadVersion,
|
|
8188
8195
|
getYDoc: () => l,
|
|
8189
8196
|
isConnected: () => !r?.externalSession && "connected" === t.value,
|
|
@@ -8211,18 +8218,18 @@ function Uu(e, t) {
|
|
|
8211
8218
|
},
|
|
8212
8219
|
attach: function(e, d) {
|
|
8213
8220
|
if (l = e, a = d, !r) return;
|
|
8214
|
-
const
|
|
8215
|
-
if (
|
|
8221
|
+
const y = r;
|
|
8222
|
+
if (y.externalSession) return void (c = (0, u.observeExternalCollaborationReadiness)(y.externalSession, {
|
|
8216
8223
|
gate: v,
|
|
8217
8224
|
livePatcher: o,
|
|
8218
8225
|
factories: a,
|
|
8219
|
-
role:
|
|
8220
|
-
sessionIntent:
|
|
8226
|
+
role: y.role,
|
|
8227
|
+
sessionIntent: y.sessionIntent,
|
|
8221
8228
|
onStatus: (e) => {
|
|
8222
8229
|
t.value = e;
|
|
8223
8230
|
},
|
|
8224
8231
|
adoptSlides: (e) => {
|
|
8225
|
-
g(e), m.schedule(
|
|
8232
|
+
g(e), m.schedule(y);
|
|
8226
8233
|
},
|
|
8227
8234
|
onReady: ({ seedEmptyRoom: e }) => {
|
|
8228
8235
|
e && (s = ""), f();
|
|
@@ -8232,17 +8239,17 @@ function Uu(e, t) {
|
|
|
8232
8239
|
n.value = e;
|
|
8233
8240
|
}
|
|
8234
8241
|
}));
|
|
8235
|
-
o.configure("viewer" ===
|
|
8242
|
+
o.configure("viewer" === y.role ? null : l, a), p = (0, u.observeYDocSlides)(l, (e, t) => {
|
|
8236
8243
|
if (t?.origin === u.LOCAL_SYNC_ORIGIN || i || !l) return;
|
|
8237
8244
|
const n = (0, u.readSlidesFromYDoc)(l);
|
|
8238
|
-
n.length && (g(n), m.schedule(
|
|
8245
|
+
n.length && (g(n), m.schedule(y));
|
|
8239
8246
|
});
|
|
8240
|
-
const
|
|
8241
|
-
|
|
8247
|
+
const h = (0, u.readSlidesFromYDoc)(l);
|
|
8248
|
+
h.length && g(h);
|
|
8242
8249
|
},
|
|
8243
8250
|
stop: b,
|
|
8244
8251
|
dispose: () => {
|
|
8245
|
-
b(),
|
|
8252
|
+
b(), y(), h?.(), x?.();
|
|
8246
8253
|
}
|
|
8247
8254
|
};
|
|
8248
8255
|
}
|
|
@@ -8334,10 +8341,10 @@ function Yu(e) {
|
|
|
8334
8341
|
status: t.value,
|
|
8335
8342
|
remoteUsers: r.remoteUsers.value
|
|
8336
8343
|
})), 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
|
|
8344
|
+
let p = null, m = null, v = null, f = null, g = null, y = 0;
|
|
8345
|
+
async function h(e) {
|
|
8339
8346
|
k();
|
|
8340
|
-
const n = ++
|
|
8347
|
+
const n = ++y;
|
|
8341
8348
|
g = e, l.value = e, a.value = e.role, i.begin(e);
|
|
8342
8349
|
const s = e.externalSession;
|
|
8343
8350
|
try {
|
|
@@ -8346,7 +8353,7 @@ function Yu(e) {
|
|
|
8346
8353
|
if (!s && "websocket" === l && (0, u.isMixedContentBlocked)(e.serverUrl)) throw new Error("Mixed-content connection blocked");
|
|
8347
8354
|
t.value = "connecting";
|
|
8348
8355
|
const a = await import("yjs");
|
|
8349
|
-
if (n !==
|
|
8356
|
+
if (n !== y) return;
|
|
8350
8357
|
const c = s ? null : new a.Doc(), d = s?.doc ?? c;
|
|
8351
8358
|
p = c;
|
|
8352
8359
|
const g = {
|
|
@@ -8364,9 +8371,9 @@ function Yu(e) {
|
|
|
8364
8371
|
v = t.dispose, r.start(t.awareness, e), o.value = !0, i.attach(d, g);
|
|
8365
8372
|
return;
|
|
8366
8373
|
}
|
|
8367
|
-
const
|
|
8374
|
+
const h = await async function(e, t, n) {
|
|
8368
8375
|
if ("webrtc" === e) {
|
|
8369
|
-
const { WebrtcProvider: e } = await Promise.resolve().then(() => require("./y-webrtc-
|
|
8376
|
+
const { WebrtcProvider: e } = await Promise.resolve().then(() => require("./y-webrtc-i3P367KW.cjs")), o = new e(t.roomId, n, {
|
|
8370
8377
|
signaling: t.signaling?.length ? t.signaling : void 0,
|
|
8371
8378
|
password: t.authToken || void 0
|
|
8372
8379
|
}), l = (0, u.createDepartureChannel)(t.roomId, o.awareness);
|
|
@@ -8399,25 +8406,25 @@ function Yu(e) {
|
|
|
8399
8406
|
}
|
|
8400
8407
|
};
|
|
8401
8408
|
}(l, e, c);
|
|
8402
|
-
if (n !==
|
|
8403
|
-
m =
|
|
8409
|
+
if (n !== y) return h.destroy(), void c.destroy();
|
|
8410
|
+
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
8411
|
e ? (null !== f && clearTimeout(f), f = null, t.value = "connected") : o.value && (t.value = "disconnected", i.gate.reset(), i.gate.arm());
|
|
8405
|
-
}), "webrtc" === l ||
|
|
8412
|
+
}), "webrtc" === l || h.connectedNow ? t.value = "connected" : f = setTimeout(() => {
|
|
8406
8413
|
f = null, "connected" !== t.value && (k(), t.value = "error");
|
|
8407
8414
|
}, u.CONNECTION_TIMEOUT_MS), o.value = !0;
|
|
8408
8415
|
} catch {
|
|
8409
|
-
if (n !==
|
|
8416
|
+
if (n !== y) return;
|
|
8410
8417
|
k(), t.value = "error";
|
|
8411
8418
|
}
|
|
8412
8419
|
}
|
|
8413
8420
|
function k() {
|
|
8414
|
-
|
|
8421
|
+
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
8422
|
}
|
|
8416
8423
|
async function x() {
|
|
8417
|
-
g && await
|
|
8424
|
+
g && await h(g);
|
|
8418
8425
|
}
|
|
8419
8426
|
(0, d.watch)(() => (0, d.toValue)(e.collaboration), (e) => {
|
|
8420
|
-
e && e !== l.value ?
|
|
8427
|
+
e && e !== l.value ? h(e) : !e && l.value && k();
|
|
8421
8428
|
}, { immediate: !0 });
|
|
8422
8429
|
const b = (0, u.registerCollaborationTeardown)({
|
|
8423
8430
|
leave: k,
|
|
@@ -8446,14 +8453,14 @@ function Yu(e) {
|
|
|
8446
8453
|
setSelection: r.setSelection,
|
|
8447
8454
|
setActiveSlide: r.setActiveSlide,
|
|
8448
8455
|
followUser: r.followUser,
|
|
8449
|
-
start:
|
|
8456
|
+
start: h,
|
|
8450
8457
|
stop: k,
|
|
8451
8458
|
retry: x,
|
|
8452
8459
|
livePatcher: i.livePatcher
|
|
8453
8460
|
};
|
|
8454
8461
|
}
|
|
8455
8462
|
function qu(e) {
|
|
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:
|
|
8463
|
+
const { slides: t, loadVersion: n, getLoadOrigin: o, getTemplateElements: l, getSourceBytes: a, getSaveOptions: r, initialUserColor: i, canvasWidth: s, canvasHeight: c, collaborationProp: p, selectedElementIds: m, activeSlideIndex: v, goTo: f, effectiveZoom: g, authorName: y, onStartCollaboration: h, onStopCollaboration: k } = e, x = Yu({
|
|
8457
8464
|
collaboration: p,
|
|
8458
8465
|
slides: t,
|
|
8459
8466
|
loadVersion: n,
|
|
@@ -8491,7 +8498,7 @@ function qu(e) {
|
|
|
8491
8498
|
role: "collaborator",
|
|
8492
8499
|
...e
|
|
8493
8500
|
};
|
|
8494
|
-
w.value = t, x.start(t),
|
|
8501
|
+
w.value = t, x.start(t), h(t), b.value = !1;
|
|
8495
8502
|
},
|
|
8496
8503
|
onShareStop: function() {
|
|
8497
8504
|
w.value = null, x.stop(), k(), b.value = !1;
|
|
@@ -8513,10 +8520,10 @@ function qu(e) {
|
|
|
8513
8520
|
B.value = e;
|
|
8514
8521
|
const t = {
|
|
8515
8522
|
...e,
|
|
8516
|
-
userName:
|
|
8523
|
+
userName: y() ?? "Presenter",
|
|
8517
8524
|
role: "owner"
|
|
8518
8525
|
};
|
|
8519
|
-
w.value = t, x.start(t),
|
|
8526
|
+
w.value = t, x.start(t), h(t), E.value = !1;
|
|
8520
8527
|
},
|
|
8521
8528
|
onBroadcastStop: function() {
|
|
8522
8529
|
w.value = null, B.value = null, x.stop(), k(), E.value = !1;
|
|
@@ -8642,7 +8649,7 @@ function Qu(e, t, n) {
|
|
|
8642
8649
|
}(o, r, i));
|
|
8643
8650
|
break;
|
|
8644
8651
|
case "table-merge-selected":
|
|
8645
|
-
l(
|
|
8652
|
+
l(yu(o, t.sel.selectedCells));
|
|
8646
8653
|
break;
|
|
8647
8654
|
case "table-split": l(function(e, t, n) {
|
|
8648
8655
|
const o = (0, u.computeSplitCell)(e, t, n);
|
|
@@ -8654,7 +8661,7 @@ function Qu(e, t, n) {
|
|
|
8654
8661
|
}
|
|
8655
8662
|
}
|
|
8656
8663
|
function ed(e) {
|
|
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:
|
|
8664
|
+
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
8665
|
open: !1,
|
|
8659
8666
|
x: 0,
|
|
8660
8667
|
y: 0,
|
|
@@ -8735,10 +8742,10 @@ function ed(e) {
|
|
|
8735
8742
|
g(n);
|
|
8736
8743
|
break;
|
|
8737
8744
|
case "copy":
|
|
8738
|
-
|
|
8745
|
+
y(n);
|
|
8739
8746
|
break;
|
|
8740
8747
|
case "paste":
|
|
8741
|
-
|
|
8748
|
+
h();
|
|
8742
8749
|
break;
|
|
8743
8750
|
case "duplicate":
|
|
8744
8751
|
f.duplicateElement(n);
|
|
@@ -8950,13 +8957,13 @@ function ld(e, t, n) {
|
|
|
8950
8957
|
l.value++;
|
|
8951
8958
|
}, r = (e) => {
|
|
8952
8959
|
const t = {};
|
|
8953
|
-
for (const [n, o] of Object.entries(e)) t[n] = o.map(
|
|
8960
|
+
for (const [n, o] of Object.entries(e)) t[n] = o.map(h.cloneElement);
|
|
8954
8961
|
return t;
|
|
8955
8962
|
}, i = () => ({
|
|
8956
|
-
slides: e.value.map(
|
|
8963
|
+
slides: e.value.map(h.cloneSlide),
|
|
8957
8964
|
template: r(t?.value ?? {})
|
|
8958
8965
|
}), s = (n) => {
|
|
8959
|
-
e.value = n.slides.map(
|
|
8966
|
+
e.value = n.slides.map(h.cloneSlide), t && (t.value = r(n.template));
|
|
8960
8967
|
};
|
|
8961
8968
|
return {
|
|
8962
8969
|
canUndo: (0, d.computed)(() => (l.value, o.canUndo)),
|
|
@@ -9008,7 +9015,7 @@ function rd(e) {
|
|
|
9008
9015
|
};
|
|
9009
9016
|
}
|
|
9010
9017
|
function id(e) {
|
|
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:
|
|
9018
|
+
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
9019
|
function j() {
|
|
9013
9020
|
a.value = (r.value?.elements ?? []).map((e) => e.id);
|
|
9014
9021
|
}
|
|
@@ -9064,7 +9071,7 @@ function id(e) {
|
|
|
9064
9071
|
pushHistory: p
|
|
9065
9072
|
});
|
|
9066
9073
|
function H(e) {
|
|
9067
|
-
const t = D.value[0], n = (t && (0,
|
|
9074
|
+
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
9075
|
L({ fontSize: (0, u.textFontSizePtToPx)(o) });
|
|
9069
9076
|
}
|
|
9070
9077
|
function G(e) {
|
|
@@ -9078,7 +9085,7 @@ function id(e) {
|
|
|
9078
9085
|
redo: v,
|
|
9079
9086
|
copy: $,
|
|
9080
9087
|
cut: W,
|
|
9081
|
-
paste:
|
|
9088
|
+
paste: y,
|
|
9082
9089
|
duplicate: x,
|
|
9083
9090
|
delete: b,
|
|
9084
9091
|
selectAll: j,
|
|
@@ -9154,7 +9161,7 @@ function sd(e) {
|
|
|
9154
9161
|
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
9162
|
const l = n.value;
|
|
9156
9163
|
t.value[l] && (o(), t.value = t.value.map((t, n) => n === l ? {
|
|
9157
|
-
...(0,
|
|
9164
|
+
...(0, h.cloneSlide)(t),
|
|
9158
9165
|
elements: e(t.elements)
|
|
9159
9166
|
} : t));
|
|
9160
9167
|
}, i = e.templateElementsBySlideId, s = (e, l) => {
|
|
@@ -9172,7 +9179,7 @@ function sd(e) {
|
|
|
9172
9179
|
return o ? i && (0, u.isTemplateElementId)(e) ? i.value[o.id] ?? [] : o.elements : [];
|
|
9173
9180
|
}, m = (e, t) => {
|
|
9174
9181
|
s(e, (n) => (0, u.isGroupMember)(n, e) ? (0, u.updateElementInTree)(n, e, t) : n.map((n) => n.id === e ? {
|
|
9175
|
-
...(0,
|
|
9182
|
+
...(0, h.cloneElement)(n),
|
|
9176
9183
|
...t
|
|
9177
9184
|
} : n));
|
|
9178
9185
|
}, v = (e, t) => {
|
|
@@ -9183,7 +9190,7 @@ function sd(e) {
|
|
|
9183
9190
|
activeSlide: a,
|
|
9184
9191
|
selectedElementIds: l,
|
|
9185
9192
|
addElement: (e) => {
|
|
9186
|
-
const t = (0,
|
|
9193
|
+
const t = (0, h.cloneElement)(e);
|
|
9187
9194
|
r((e) => [...e, t]), l.value = [t.id];
|
|
9188
9195
|
},
|
|
9189
9196
|
updateElement: m,
|
|
@@ -9195,7 +9202,7 @@ function sd(e) {
|
|
|
9195
9202
|
duplicateElement: (e) => {
|
|
9196
9203
|
const t = p(e).find((t) => t.id === e);
|
|
9197
9204
|
if (!t) return;
|
|
9198
|
-
const n = (0,
|
|
9205
|
+
const n = (0, h.duplicateElement)(t);
|
|
9199
9206
|
return n.x += 20, n.y += 20, r((e) => [...e, n]), l.value = [n.id], n.id;
|
|
9200
9207
|
},
|
|
9201
9208
|
bringForward: (e) => {
|
|
@@ -9223,11 +9230,11 @@ function sd(e) {
|
|
|
9223
9230
|
s(e, (o) => o.map((o) => {
|
|
9224
9231
|
if (o.id !== e) return o;
|
|
9225
9232
|
if ("smartArt" === o.type) return n && o.smartArtData ? {
|
|
9226
|
-
...(0,
|
|
9227
|
-
smartArtData: (0,
|
|
9233
|
+
...(0, h.cloneElement)(o),
|
|
9234
|
+
smartArtData: (0, h.updateSmartArtNodeText)(o.smartArtData, n, t)
|
|
9228
9235
|
} : o;
|
|
9229
9236
|
if ("text" === o.type || "shape" === o.type) {
|
|
9230
|
-
const e = (0,
|
|
9237
|
+
const e = (0, h.cloneElement)(o);
|
|
9231
9238
|
if (e.text = t, e.textSegments && e.textSegments.length > 0) {
|
|
9232
9239
|
const n = e.textSegments[0].style;
|
|
9233
9240
|
e.textSegments = [{
|
|
@@ -9252,7 +9259,7 @@ function cd(e) {
|
|
|
9252
9259
|
snapLines: o,
|
|
9253
9260
|
guides: l,
|
|
9254
9261
|
addGuide: function(t, n) {
|
|
9255
|
-
const o = (0, u.createGuide)((0,
|
|
9262
|
+
const o = (0, u.createGuide)((0, h.createEditorId)("guide"), t, e.value);
|
|
9256
9263
|
l.value = [...l.value, void 0 === n ? o : {
|
|
9257
9264
|
...o,
|
|
9258
9265
|
position: n
|
|
@@ -9265,7 +9272,7 @@ function cd(e) {
|
|
|
9265
9272
|
l.value = (0, u.removeGuide)(l.value, e);
|
|
9266
9273
|
}
|
|
9267
9274
|
};
|
|
9268
|
-
}(c), { snapToShape: f, snapToGrid: g, snapLines:
|
|
9275
|
+
}(c), { snapToShape: f, snapToGrid: g, snapLines: y, guides: k } = v, x = {
|
|
9269
9276
|
slides: i,
|
|
9270
9277
|
activeSlideIndex: r,
|
|
9271
9278
|
templateElementsBySlideId: s
|
|
@@ -9317,13 +9324,13 @@ function cd(e) {
|
|
|
9317
9324
|
E && n();
|
|
9318
9325
|
},
|
|
9319
9326
|
onPreview: (e, t) => {
|
|
9320
|
-
|
|
9327
|
+
y.value = t.map((e) => ({
|
|
9321
9328
|
axis: "v" === e.axis ? "x" : "y",
|
|
9322
9329
|
position: e.position
|
|
9323
9330
|
})), E && I(e);
|
|
9324
9331
|
},
|
|
9325
9332
|
onEnd: (e, t, n) => {
|
|
9326
|
-
|
|
9333
|
+
y.value.length > 0 && (y.value = []), !t && B && p(n), t && E && S(/* @__PURE__ */ new Set([n]));
|
|
9327
9334
|
}
|
|
9328
9335
|
});
|
|
9329
9336
|
function I(e) {
|
|
@@ -9423,7 +9430,7 @@ function ud(e) {
|
|
|
9423
9430
|
const i = n.value + 1;
|
|
9424
9431
|
l();
|
|
9425
9432
|
const s = {
|
|
9426
|
-
id: (0,
|
|
9433
|
+
id: (0, h.createEditorId)("slide"),
|
|
9427
9434
|
rId: "",
|
|
9428
9435
|
slideNumber: t.value.length + 1,
|
|
9429
9436
|
elements: [],
|
|
@@ -9454,17 +9461,17 @@ function ud(e) {
|
|
|
9454
9461
|
imageInputRef: i,
|
|
9455
9462
|
mediaInputRef: s,
|
|
9456
9463
|
addText: function() {
|
|
9457
|
-
const e = (0,
|
|
9464
|
+
const e = (0, h.createTextElement)("Text");
|
|
9458
9465
|
r(e, 320, 80), n.addElement(e), o.value = [e.id];
|
|
9459
9466
|
},
|
|
9460
9467
|
addShape: function(e) {
|
|
9461
|
-
const t = (0,
|
|
9468
|
+
const t = (0, h.createShapeElement)(e);
|
|
9462
9469
|
r(t, 240, 160), n.addElement(t), o.value = [t.id];
|
|
9463
9470
|
},
|
|
9464
9471
|
addTable: function() {
|
|
9465
9472
|
const e = {
|
|
9466
9473
|
...(0, u.newTableElement)(3, 3),
|
|
9467
|
-
id: (0,
|
|
9474
|
+
id: (0, h.createEditorId)("table")
|
|
9468
9475
|
};
|
|
9469
9476
|
r(e, 600, 250), n.addElement(e), o.value = [e.id];
|
|
9470
9477
|
},
|
|
@@ -9474,7 +9481,7 @@ function ud(e) {
|
|
|
9474
9481
|
},
|
|
9475
9482
|
addField: function(e, t) {
|
|
9476
9483
|
const a = (0, u.resolveInsertedFieldText)(e, l.value + 1, t), i = (0, u.newFieldElement)(e, a);
|
|
9477
|
-
i.id = (0,
|
|
9484
|
+
i.id = (0, h.createEditorId)("field"), r(i, i.width, i.height), n.addElement(i), o.value = [i.id];
|
|
9478
9485
|
},
|
|
9479
9486
|
openImagePicker: function() {
|
|
9480
9487
|
i.value?.click();
|
|
@@ -9489,7 +9496,7 @@ function ud(e) {
|
|
|
9489
9496
|
const l = new Image();
|
|
9490
9497
|
l.onload = () => {
|
|
9491
9498
|
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,
|
|
9499
|
+
id: (0, h.createEditorId)("image"),
|
|
9493
9500
|
type: "image",
|
|
9494
9501
|
x: 0,
|
|
9495
9502
|
y: 0,
|
|
@@ -9515,7 +9522,7 @@ function ud(e) {
|
|
|
9515
9522
|
if (!e) return;
|
|
9516
9523
|
const t = (t, i) => {
|
|
9517
9524
|
const s = {
|
|
9518
|
-
id: (0,
|
|
9525
|
+
id: (0, h.createEditorId)("media"),
|
|
9519
9526
|
type: "media",
|
|
9520
9527
|
mediaType: a,
|
|
9521
9528
|
mediaMimeType: l.type || void 0,
|
|
@@ -9540,7 +9547,7 @@ function ud(e) {
|
|
|
9540
9547
|
}, i.readAsDataURL(l);
|
|
9541
9548
|
},
|
|
9542
9549
|
addActionButton: function(e) {
|
|
9543
|
-
const t = (0, u.buildActionButtonElement)(e, (0,
|
|
9550
|
+
const t = (0, u.buildActionButtonElement)(e, (0, h.createEditorId)("action"));
|
|
9544
9551
|
t && (r(t, 120, 50), n.addElement(t), o.value = [t.id]);
|
|
9545
9552
|
},
|
|
9546
9553
|
...a
|
|
@@ -9578,8 +9585,8 @@ function gd(e) {
|
|
|
9578
9585
|
var l;
|
|
9579
9586
|
if (!vd()) return null;
|
|
9580
9587
|
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,
|
|
9588
|
+
if (e.rawFontData && e.rawFontData.length > 0 ? a = e.rawFontData : e.originalPartBytes && e.originalPartBytes.length > 0 && e.fontGuid && (a = (0, h.deobfuscateFont)(e.originalPartBytes, e.fontGuid)), !a || a.length < 4) return null;
|
|
9589
|
+
const r = (0, h.detectFontFormat)(a), i = pd.has(r) ? r : "truetype", s = fd[i] ?? "font/ttf", c = new Uint8Array(a.length);
|
|
9583
9590
|
c.set(a);
|
|
9584
9591
|
const u = new Blob([c], { type: s }), d = URL.createObjectURL(u);
|
|
9585
9592
|
return {
|
|
@@ -9591,7 +9598,7 @@ function gd(e) {
|
|
|
9591
9598
|
objectUrl: d
|
|
9592
9599
|
};
|
|
9593
9600
|
}
|
|
9594
|
-
function
|
|
9601
|
+
function yd(e) {
|
|
9595
9602
|
return [
|
|
9596
9603
|
"@font-face {",
|
|
9597
9604
|
`\tfont-family: "${e.name}";`,
|
|
@@ -9602,7 +9609,7 @@ function hd(e) {
|
|
|
9602
9609
|
"}"
|
|
9603
9610
|
].join("\n");
|
|
9604
9611
|
}
|
|
9605
|
-
function
|
|
9612
|
+
function hd(e) {
|
|
9606
9613
|
let t = [], n = null;
|
|
9607
9614
|
const o = (e) => {
|
|
9608
9615
|
if (vd()) for (const t of e) URL.revokeObjectURL(t);
|
|
@@ -9613,9 +9620,9 @@ function yd(e) {
|
|
|
9613
9620
|
t && (r.push(t), t.objectUrl && a.push(t.objectUrl));
|
|
9614
9621
|
}
|
|
9615
9622
|
return t = a, o(l), r;
|
|
9616
|
-
}), a = (0, d.computed)(() => l.value.map(
|
|
9623
|
+
}), a = (0, d.computed)(() => l.value.map(yd).join("\n\n")), r = (0, d.computed)(() => {
|
|
9617
9624
|
const e = /* @__PURE__ */ new Set(), t = [];
|
|
9618
|
-
for (const n of l.value) e.has(n.name) || (e.add(n.name), t.push((0,
|
|
9625
|
+
for (const n of l.value) e.has(n.name) || (e.add(n.name), t.push((0, h.getSubstituteFontFamily)(n.name)));
|
|
9619
9626
|
return t;
|
|
9620
9627
|
}), i = (0, d.watch)(() => (0, d.toValue)(e) ?? [], (e) => ac.registerEmbeddedFonts(e), { immediate: !0 }), s = (0, d.watch)(a, (e) => {
|
|
9621
9628
|
if ("undefined" != typeof document && "function" == typeof document.createElement && void 0 !== document.head) {
|
|
@@ -9800,8 +9807,8 @@ function _d(e) {
|
|
|
9800
9807
|
if (0 === t.length) throw new Error("[useMediaExport] No slides were captured for GIF export");
|
|
9801
9808
|
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
9809
|
new Uint8Array(g).set(f);
|
|
9803
|
-
const
|
|
9804
|
-
return m?.(s, s), r.value = 95, i(
|
|
9810
|
+
const y = new Blob([g], { type: "image/gif" });
|
|
9811
|
+
return m?.(s, s), r.value = 95, i(y, `${wd(e.fileName)}.gif`), r.value = 100, y;
|
|
9805
9812
|
} finally {
|
|
9806
9813
|
a.value = !1;
|
|
9807
9814
|
}
|
|
@@ -9818,16 +9825,16 @@ function _d(e) {
|
|
|
9818
9825
|
exportWebm: async function(o = {}) {
|
|
9819
9826
|
const c = t.value;
|
|
9820
9827
|
if (i.value || 0 === c) return;
|
|
9821
|
-
const { slideDurationMs: d = Bd, slideTimingsMs: p, fps: m = Cd, videoBitsPerSecond: v = Id, onProgress: f, onRecordProgress: g, signal:
|
|
9828
|
+
const { slideDurationMs: d = Bd, slideTimingsMs: p, fps: m = Cd, videoBitsPerSecond: v = Id, onProgress: f, onRecordProgress: g, signal: y } = o;
|
|
9822
9829
|
i.value = !0, s.value = 0;
|
|
9823
9830
|
try {
|
|
9824
9831
|
const t = [];
|
|
9825
|
-
for (let e = 0; e < c; e++) Td(
|
|
9832
|
+
for (let e = 0; e < c; e++) Td(y), f?.(e, c), t.push(await n(e)), s.value = Math.round((e + 1) / c * 45);
|
|
9826
9833
|
if (0 === t.length) throw new Error("[useMediaExport] No slides were captured for video export");
|
|
9827
9834
|
const o = t[0], i = a();
|
|
9828
9835
|
i.width = o.width, i.height = o.height;
|
|
9829
|
-
const
|
|
9830
|
-
if (!
|
|
9836
|
+
const h = i.getContext("2d");
|
|
9837
|
+
if (!h) throw new Error("[useMediaExport] Failed to create 2D context for video recording");
|
|
9831
9838
|
const k = l(i, m, {
|
|
9832
9839
|
mimeType: (0, u.pickSupportedMimeType)([...u.WEBM_MIME_CANDIDATES]),
|
|
9833
9840
|
videoBitsPerSecond: v
|
|
@@ -9846,13 +9853,13 @@ function _d(e) {
|
|
|
9846
9853
|
try {
|
|
9847
9854
|
const n = 1e3 / m;
|
|
9848
9855
|
for (let e = 0; e < t.length; e++) {
|
|
9849
|
-
if (
|
|
9856
|
+
if (y?.aborted) throw k.stop(), new DOMException("Export cancelled", "AbortError");
|
|
9850
9857
|
g?.(e, t.length);
|
|
9851
9858
|
const o = p?.[e] ?? d, l = Math.max(1, Math.ceil(o / n));
|
|
9852
|
-
|
|
9859
|
+
h.clearRect(0, 0, i.width, i.height), h.drawImage(t[e], 0, 0);
|
|
9853
9860
|
for (let o = 0; o < l; o++) {
|
|
9854
|
-
if (
|
|
9855
|
-
|
|
9861
|
+
if (y?.aborted) throw k.stop(), new DOMException("Export cancelled", "AbortError");
|
|
9862
|
+
h.drawImage(t[e], 0, 0), await new Promise((e) => {
|
|
9856
9863
|
setTimeout(e, n);
|
|
9857
9864
|
});
|
|
9858
9865
|
}
|
|
@@ -9932,12 +9939,12 @@ function Od(e) {
|
|
|
9932
9939
|
rasterizeSlide: m,
|
|
9933
9940
|
rasterizeSlideToRaster: v,
|
|
9934
9941
|
rasterizeSlideToTiles: f
|
|
9935
|
-
}),
|
|
9942
|
+
}), y = _d({
|
|
9936
9943
|
slideCount: o,
|
|
9937
9944
|
rasterizeSlide: m
|
|
9938
|
-
}),
|
|
9945
|
+
}), h = bd({
|
|
9939
9946
|
exporter: g,
|
|
9940
|
-
mediaExport:
|
|
9947
|
+
mediaExport: y
|
|
9941
9948
|
});
|
|
9942
9949
|
return {
|
|
9943
9950
|
exportStageRef: s,
|
|
@@ -9946,20 +9953,20 @@ function Od(e) {
|
|
|
9946
9953
|
rasterizeSlideToRaster: v,
|
|
9947
9954
|
rasterizeSlideToTiles: f,
|
|
9948
9955
|
exporter: g,
|
|
9949
|
-
mediaExport:
|
|
9950
|
-
exportProgressCtl:
|
|
9951
|
-
isExporting: (0, d.computed)(() => g.exporting.value ||
|
|
9956
|
+
mediaExport: y,
|
|
9957
|
+
exportProgressCtl: h,
|
|
9958
|
+
isExporting: (0, d.computed)(() => g.exporting.value || y.exporting.value),
|
|
9952
9959
|
onExportPng: function() {
|
|
9953
9960
|
g.exportSlidePng(a.value);
|
|
9954
9961
|
},
|
|
9955
9962
|
onExportPdf: function() {
|
|
9956
|
-
|
|
9963
|
+
h.runPdf();
|
|
9957
9964
|
},
|
|
9958
9965
|
onExportGif: function() {
|
|
9959
|
-
|
|
9966
|
+
h.runGif();
|
|
9960
9967
|
},
|
|
9961
9968
|
onExportWebm: function() {
|
|
9962
|
-
|
|
9969
|
+
h.runWebm();
|
|
9963
9970
|
},
|
|
9964
9971
|
onExportJson: function() {
|
|
9965
9972
|
try {
|
|
@@ -9993,38 +10000,48 @@ function Od(e) {
|
|
|
9993
10000
|
};
|
|
9994
10001
|
}
|
|
9995
10002
|
function Dd({ slides: e, activeSlideIndex: t, pushHistory: n }) {
|
|
9996
|
-
const o = (0, d.ref)(""), l = (0, d.ref)(""), a = (0, d.ref)(!1), r = (0, d.ref)(
|
|
9997
|
-
|
|
9998
|
-
|
|
10003
|
+
const o = (0, d.ref)(""), l = (0, d.ref)(""), a = (0, d.ref)(!1), r = (0, d.ref)(!1), i = (0, d.ref)(!0), s = (0, d.ref)(!1), c = (0, d.ref)(0), p = (0, d.computed)(() => (0, u.findInSlides)(e.value, o.value, {
|
|
10004
|
+
matchCase: a.value,
|
|
10005
|
+
includeNotes: r.value,
|
|
10006
|
+
includeChartTitles: i.value,
|
|
10007
|
+
includeChartData: s.value
|
|
10008
|
+
})), m = (0, d.computed)(() => p.value.length);
|
|
10009
|
+
function v() {
|
|
10010
|
+
0 !== m.value ? (c.value >= m.value && (c.value = m.value - 1), c.value < 0 && (c.value = 0)) : c.value = 0;
|
|
9999
10011
|
}
|
|
10000
|
-
function
|
|
10001
|
-
const e =
|
|
10012
|
+
function f() {
|
|
10013
|
+
const e = p.value[c.value];
|
|
10002
10014
|
e && (t.value = e.slideIndex);
|
|
10003
10015
|
}
|
|
10004
10016
|
return {
|
|
10005
10017
|
query: o,
|
|
10006
10018
|
replacement: l,
|
|
10007
10019
|
matchCase: a,
|
|
10008
|
-
|
|
10009
|
-
|
|
10010
|
-
|
|
10020
|
+
includeNotes: r,
|
|
10021
|
+
includeChartTitles: i,
|
|
10022
|
+
includeChartData: s,
|
|
10023
|
+
matches: p,
|
|
10024
|
+
matchCount: m,
|
|
10025
|
+
currentMatch: c,
|
|
10011
10026
|
next: function() {
|
|
10012
|
-
0 !==
|
|
10027
|
+
0 !== m.value && (c.value = (c.value + 1) % m.value, f());
|
|
10013
10028
|
},
|
|
10014
10029
|
prev: function() {
|
|
10015
|
-
0 !==
|
|
10030
|
+
0 !== m.value && (c.value = (c.value - 1 + m.value) % m.value, f());
|
|
10016
10031
|
},
|
|
10017
10032
|
replaceCurrent: function() {
|
|
10018
|
-
if (
|
|
10033
|
+
if (v(), p.value[c.value]?.readOnly) return;
|
|
10034
|
+
if (0 === p.value.length || 0 === o.value.length) return;
|
|
10019
10035
|
n();
|
|
10020
|
-
const t = (0, u.replaceMatch)(e.value,
|
|
10021
|
-
t.replacements > 0 && (e.value = t.slides),
|
|
10036
|
+
const t = (0, u.replaceMatch)(e.value, p.value, c.value, l.value);
|
|
10037
|
+
t.replacements > 0 && (e.value = t.slides), v(), f();
|
|
10022
10038
|
},
|
|
10023
10039
|
replaceAll: function() {
|
|
10024
|
-
if (
|
|
10040
|
+
if (p.value.some((e) => e.readOnly)) return;
|
|
10041
|
+
if (0 === p.value.length || 0 === o.value.length) return;
|
|
10025
10042
|
n();
|
|
10026
|
-
const t = (0, u.applyFindReplacements)(e.value,
|
|
10027
|
-
t.replacements > 0 && (e.value = t.slides),
|
|
10043
|
+
const t = (0, u.applyFindReplacements)(e.value, p.value, l.value);
|
|
10044
|
+
t.replacements > 0 && (e.value = t.slides), v();
|
|
10028
10045
|
}
|
|
10029
10046
|
};
|
|
10030
10047
|
}
|
|
@@ -10132,7 +10149,7 @@ function Fd(e) {
|
|
|
10132
10149
|
isInlineInputPending: p.isPending,
|
|
10133
10150
|
enterInlineEdit: function(t) {
|
|
10134
10151
|
const o = n(t);
|
|
10135
|
-
o && (0,
|
|
10152
|
+
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
10153
|
},
|
|
10137
10154
|
commitInlineEdit: function() {
|
|
10138
10155
|
if (p.isPending()) return;
|
|
@@ -10184,7 +10201,7 @@ function zd(e) {
|
|
|
10184
10201
|
t.addElement(e), n.value = [e.id], l.value = !1, a.value = !1, r.value = null, i.value = null;
|
|
10185
10202
|
},
|
|
10186
10203
|
openEquationEditorForElement: function(e) {
|
|
10187
|
-
if (!(0,
|
|
10204
|
+
if (!(0, h.hasTextProperties)(e)) return !1;
|
|
10188
10205
|
const t = e.textSegments?.find((e) => e.equationXml);
|
|
10189
10206
|
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
10207
|
},
|
|
@@ -10244,12 +10261,12 @@ async function jd(e) {
|
|
|
10244
10261
|
parseAttributeValue: !1,
|
|
10245
10262
|
parseTagValue: !1,
|
|
10246
10263
|
processEntities: !1,
|
|
10247
|
-
tagValueProcessor: (e, t) => (0,
|
|
10248
|
-
attributeValueProcessor: (e, t) => (0,
|
|
10264
|
+
tagValueProcessor: (e, t) => (0, h.decodeXmlEntities)(t),
|
|
10265
|
+
attributeValueProcessor: (e, t) => (0, h.decodeXmlEntities)(t)
|
|
10249
10266
|
}), o = [];
|
|
10250
10267
|
for (const e of Object.keys(t.files)) if (e.startsWith("_xmlsignatures/") && e.endsWith(".xml")) {
|
|
10251
10268
|
const l = await t.files[e].async("string");
|
|
10252
|
-
o.push((0,
|
|
10269
|
+
o.push((0, h.parseSignatureXml)(n.parse(l), e));
|
|
10253
10270
|
}
|
|
10254
10271
|
return o;
|
|
10255
10272
|
} catch {
|
|
@@ -10260,7 +10277,7 @@ function $d(e, t) {
|
|
|
10260
10277
|
const n = (0, d.shallowRef)([]), o = (0, d.shallowRef)({}), l = (0, d.ref)({
|
|
10261
10278
|
width: 1280,
|
|
10262
10279
|
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),
|
|
10280
|
+
}), a = (0, d.ref)(void 0), r = (0, d.shallowRef)(void 0), i = (0, d.shallowRef)(void 0), s = (0, d.shallowRef)([]), c = (0, d.shallowRef)([]), p = (0, d.shallowRef)(/* @__PURE__ */ new Map()), m = (0, d.ref)(!1), v = (0, d.ref)(null), f = (0, d.ref)(!1), g = (0, d.shallowRef)(null), y = (0, d.shallowRef)(void 0), k = (0, d.shallowRef)([]), x = (0, d.shallowRef)(void 0), b = (0, d.shallowRef)([]), S = (0, d.shallowRef)(void 0), w = (0, d.shallowRef)([]), E = (0, d.shallowRef)([]), B = (0, d.shallowRef)([]), C = (0, d.shallowRef)(void 0), I = (0, d.shallowRef)(void 0), P = (0, d.shallowRef)([]), T = (0, d.shallowRef)([]), _ = (0, d.shallowRef)([]), O = (0, d.shallowRef)([]), D = (0, d.shallowRef)([]), N = (0, d.shallowRef)({}), L = (0, d.shallowRef)(void 0), A = (0, d.shallowRef)(void 0), M = (0, d.shallowRef)(void 0), F = (0, d.shallowRef)(void 0), z = (0, d.shallowRef)([]), R = (0, d.ref)(void 0);
|
|
10264
10281
|
let V = 0, j = [];
|
|
10265
10282
|
const $ = (e) => {
|
|
10266
10283
|
for (const t of e) t.startsWith("blob:") && URL.revokeObjectURL(t);
|
|
@@ -10275,7 +10292,7 @@ function $d(e, t) {
|
|
|
10275
10292
|
elements: [...(0, u.overlayInlineTextSnapshot)(e.elements, i.snapshot, i.text)]
|
|
10276
10293
|
} : e);
|
|
10277
10294
|
return (0, u.saveDeckWithPassword)(g.value, p, (0, u.buildDeckSaveOptions)({
|
|
10278
|
-
coreProperties:
|
|
10295
|
+
coreProperties: y.value,
|
|
10279
10296
|
customProperties: k.value,
|
|
10280
10297
|
appProperties: S.value,
|
|
10281
10298
|
sections: T.value,
|
|
@@ -10303,12 +10320,12 @@ function $d(e, t) {
|
|
|
10303
10320
|
}, U = (e) => W(e, "user-file");
|
|
10304
10321
|
return (0, d.watch)(() => (0, d.toValue)(e), (e) => {
|
|
10305
10322
|
e && (async (e) => {
|
|
10306
|
-
const d = ++V, W = new
|
|
10323
|
+
const d = ++V, W = new h.PptxHandler(), U = (0, u.createPresentationLoadResources)(W), H = U.blobUrls;
|
|
10307
10324
|
try {
|
|
10308
10325
|
m.value = !0, v.value = null, f.value = !1;
|
|
10309
|
-
const
|
|
10326
|
+
const h = e instanceof Uint8Array ? e.buffer.slice(e.byteOffset, e.byteOffset + e.byteLength) : e, G = h.slice(0), K = h instanceof ArrayBuffer ? h.byteLength / 1048576 : 0;
|
|
10310
10327
|
K > 50 && console.warn(`[pptx] Large file detected (${K.toFixed(1)} MB). Loading may use significant memory.`);
|
|
10311
|
-
const Y = g.value, q = await W.load(
|
|
10328
|
+
const Y = g.value, q = await W.load(h, { allowExternalImages: t?.getAllowExternalImages?.() });
|
|
10312
10329
|
if (d !== V) return;
|
|
10313
10330
|
const X = [];
|
|
10314
10331
|
for (const e of q.slides) (0, u.collectMediaElements)(e.elements, X);
|
|
@@ -10357,12 +10374,12 @@ function $d(e, t) {
|
|
|
10357
10374
|
widthEmu: q.widthEmu,
|
|
10358
10375
|
heightEmu: q.heightEmu,
|
|
10359
10376
|
type: q.slideSizeType ?? ""
|
|
10360
|
-
} : void 0, r.value = q.theme, i.value = q.themeColorMap, s.value = q.slideMasters ?? [], c.value = q.layoutOptions ?? [],
|
|
10377
|
+
} : void 0, r.value = q.theme, i.value = q.themeColorMap, s.value = q.slideMasters ?? [], c.value = q.layoutOptions ?? [], y.value = q.coreProperties, k.value = q.customProperties ?? [], x.value = q.modifyVerifier, b.value = W.getCompatibilityWarnings(), S.value = q.appProperties, w.value = q.tags ?? [], E.value = q.embeddedFonts ?? [], C.value = ne, I.value = q.tableStylesDefaultId, P.value = [], T.value = q.sections ?? [], _.value = q.customShows ?? [], O.value = q.modernCommentAuthors ?? [], D.value = q.commentAuthors ?? [], N.value = q.presentationProperties ?? {}, L.value = q.viewProperties, A.value = q.headerFooter, M.value = q.notesMaster, F.value = q.handoutMaster, z.value = q.themeOptions ?? [], R.value = "number" == typeof q.notesWidthEmu && "number" == typeof q.notesHeightEmu && q.notesWidthEmu > 0 && q.notesHeightEmu > 0 ? {
|
|
10361
10378
|
width: Math.round(q.notesWidthEmu / 9525),
|
|
10362
10379
|
height: Math.round(q.notesHeightEmu / 9525)
|
|
10363
10380
|
} : void 0, B.value = oe, t?.onContentApplied?.();
|
|
10364
10381
|
} catch (e) {
|
|
10365
|
-
d === V && (e instanceof
|
|
10382
|
+
d === V && (e instanceof h.EncryptedFileError ? f.value = !0 : v.value = e instanceof Error ? e.message : String(e));
|
|
10366
10383
|
} finally {
|
|
10367
10384
|
U.releaseIfUncommitted(), d === V && (m.value = !1);
|
|
10368
10385
|
}
|
|
@@ -10383,7 +10400,7 @@ function $d(e, t) {
|
|
|
10383
10400
|
error: v,
|
|
10384
10401
|
isEncrypted: f,
|
|
10385
10402
|
handler: g,
|
|
10386
|
-
coreProperties:
|
|
10403
|
+
coreProperties: y,
|
|
10387
10404
|
customProperties: k,
|
|
10388
10405
|
modifyVerifier: x,
|
|
10389
10406
|
compatibilityWarnings: b,
|
|
@@ -10528,13 +10545,13 @@ function Yd(e) {
|
|
|
10528
10545
|
};
|
|
10529
10546
|
}
|
|
10530
10547
|
function qd(e, t, n, o = {}) {
|
|
10531
|
-
return
|
|
10548
|
+
return h.SvgExporter.exportSlide(e, t, n, o);
|
|
10532
10549
|
}
|
|
10533
10550
|
function Xd(e, t, n, o = {}) {
|
|
10534
10551
|
return new Blob([qd(e, t, n, o)], { type: "image/svg+xml;charset=utf-8" });
|
|
10535
10552
|
}
|
|
10536
10553
|
function Zd(e, t = {}) {
|
|
10537
|
-
return
|
|
10554
|
+
return h.SvgExporter.exportAll(e, t);
|
|
10538
10555
|
}
|
|
10539
10556
|
function Jd(e, t = {}) {
|
|
10540
10557
|
return Zd(e, t).map((e) => new Blob([e], { type: "image/svg+xml;charset=utf-8" }));
|
|
@@ -10648,7 +10665,7 @@ function lp(e) {
|
|
|
10648
10665
|
rows: i
|
|
10649
10666
|
} });
|
|
10650
10667
|
}(a, c));
|
|
10651
|
-
if (!(0,
|
|
10668
|
+
if (!(0, h.hasTextProperties)(a)) return;
|
|
10652
10669
|
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
10670
|
if (v && e.formatInlineSnapshot && !v.textSegments) return;
|
|
10654
10671
|
const f = v?.text ?? (d ? (0, u.readEditableText)(d) : void 0), g = void 0 === f ? a : {
|
|
@@ -10663,7 +10680,7 @@ function lp(e) {
|
|
|
10663
10680
|
...g,
|
|
10664
10681
|
...l
|
|
10665
10682
|
};
|
|
10666
|
-
if (!(l && (0,
|
|
10683
|
+
if (!(l && (0, h.hasTextProperties)(a) && a.textSegments && e.formatInlineSnapshot({
|
|
10667
10684
|
...v,
|
|
10668
10685
|
textSegments: a.textSegments
|
|
10669
10686
|
}))) return;
|
|
@@ -10673,20 +10690,20 @@ function lp(e) {
|
|
|
10673
10690
|
});
|
|
10674
10691
|
return;
|
|
10675
10692
|
}
|
|
10676
|
-
const
|
|
10693
|
+
const y = void 0 === s ? g : {
|
|
10677
10694
|
...g,
|
|
10678
10695
|
...(0, u.setElementBullets)(g, s)
|
|
10679
10696
|
};
|
|
10680
|
-
(0,
|
|
10697
|
+
(0, h.hasTextProperties)(y) && m.updateElement(o, {
|
|
10681
10698
|
...void 0 !== f ? { text: f } : {},
|
|
10682
|
-
...(0, u.applyTextStyleUpdate)(
|
|
10699
|
+
...(0, u.applyTextStyleUpdate)(y, c, null).patch
|
|
10683
10700
|
});
|
|
10684
10701
|
},
|
|
10685
10702
|
ribbonUpdateTextCase: function(t) {
|
|
10686
10703
|
const n = r.value[0];
|
|
10687
10704
|
if (!n) return;
|
|
10688
10705
|
const o = i.value?.elements.find((e) => e.id === n);
|
|
10689
|
-
if (!o || !(0,
|
|
10706
|
+
if (!o || !(0, h.hasTextProperties)(o)) return;
|
|
10690
10707
|
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
10708
|
if (s && e.endInlineListSession) {
|
|
10692
10709
|
if (!s.textSegments) return;
|
|
@@ -10923,11 +10940,14 @@ function up(e) {
|
|
|
10923
10940
|
if (e < 0 || e >= t.value.length) return;
|
|
10924
10941
|
o();
|
|
10925
10942
|
const l = t.value[e], a = {
|
|
10926
|
-
...(0,
|
|
10943
|
+
...(0, h.duplicateSlide)(l, t.value.length + 1),
|
|
10927
10944
|
id: (0, u.makeSlideId)()
|
|
10928
10945
|
}, r = [...t.value];
|
|
10929
10946
|
r.splice(e + 1, 0, a), t.value = r, n.value = e + 1;
|
|
10930
10947
|
},
|
|
10948
|
+
pasteSlides: (l) => {
|
|
10949
|
+
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);
|
|
10950
|
+
},
|
|
10931
10951
|
moveSlide: (e, l) => {
|
|
10932
10952
|
const a = t.value.length;
|
|
10933
10953
|
if (e === l || e < 0 || e >= a || l < 0 || l >= a) return;
|
|
@@ -10966,7 +10986,7 @@ function pp(e) {
|
|
|
10966
10986
|
return { insertSlideFromTemplate: function(e) {
|
|
10967
10987
|
const r = Math.max(0, Math.min(o.value + 1, n.value.length));
|
|
10968
10988
|
l();
|
|
10969
|
-
const i = (0, u.buildSlideTemplateSlide)(e, (0,
|
|
10989
|
+
const i = (0, u.buildSlideTemplateSlide)(e, (0, h.createEditorId)("slide"), n.value.length + 1, {
|
|
10970
10990
|
slideWidth: t.value.width,
|
|
10971
10991
|
slideHeight: t.value.height,
|
|
10972
10992
|
scheme: (0, u.templateSchemeFromTheme)(a.value?.colorScheme)
|
|
@@ -10989,7 +11009,7 @@ function mp(e) {
|
|
|
10989
11009
|
const i = n(e);
|
|
10990
11010
|
if (!i || "smartArt" !== i.type) return;
|
|
10991
11011
|
const s = i.smartArtData;
|
|
10992
|
-
s && o(e, { smartArtData: a(i, (0,
|
|
11012
|
+
s && o(e, { smartArtData: a(i, (0, h.updateSmartArtNodeText)(s, l, r)) });
|
|
10993
11013
|
},
|
|
10994
11014
|
commitStyle: (e, l) => {
|
|
10995
11015
|
if (!t()) return;
|
|
@@ -11038,14 +11058,14 @@ function fp(e) {
|
|
|
11038
11058
|
const t = (0, d.ref)(!1), { slides: n, pptxTheme: o, themeColorMap: l, pushHistory: a, themeGalleryOpen: r, themeEditorOpen: i, templateElementsBySlideId: s } = e;
|
|
11039
11059
|
function c(e, t, r) {
|
|
11040
11060
|
a();
|
|
11041
|
-
const i = l.value ?? {}, c = o.value?.fontScheme, u = (0,
|
|
11061
|
+
const i = l.value ?? {}, c = o.value?.fontScheme, u = (0, h.applyThemeToData)({
|
|
11042
11062
|
slides: n.value,
|
|
11043
11063
|
theme: o.value,
|
|
11044
11064
|
themeColorMap: i
|
|
11045
11065
|
}, e, t, r);
|
|
11046
11066
|
if (n.value = u.slides, o.value = u.theme, l.value = u.themeColorMap, Object.keys(s.value).length > 0) {
|
|
11047
11067
|
const n = {};
|
|
11048
|
-
for (const [o, l] of Object.entries(s.value)) n[o] = (0,
|
|
11068
|
+
for (const [o, l] of Object.entries(s.value)) n[o] = (0, h.reResolveElementFonts)((0, h.reResolveElementColors)(l, i, e), c, t ?? c ?? {});
|
|
11049
11069
|
s.value = n;
|
|
11050
11070
|
}
|
|
11051
11071
|
}
|
|
@@ -11068,11 +11088,11 @@ function fp(e) {
|
|
|
11068
11088
|
};
|
|
11069
11089
|
}
|
|
11070
11090
|
var gp = 0;
|
|
11071
|
-
function
|
|
11091
|
+
function yp(e) {
|
|
11072
11092
|
return `ver-${e}-${gp += 1}-${Math.random().toString(36).slice(2, 6)}`;
|
|
11073
11093
|
}
|
|
11074
|
-
function
|
|
11075
|
-
return e.map(
|
|
11094
|
+
function hp(e) {
|
|
11095
|
+
return e.map(h.cloneSlide);
|
|
11076
11096
|
}
|
|
11077
11097
|
function kp(e) {
|
|
11078
11098
|
const { slides: t, pushHistory: n } = e, o = Math.max(1, e.maxVersions ?? 50), l = (0, d.shallowRef)([]);
|
|
@@ -11080,8 +11100,8 @@ function kp(e) {
|
|
|
11080
11100
|
versions: l,
|
|
11081
11101
|
hasVersions: (0, d.computed)(() => l.value.length > 0),
|
|
11082
11102
|
capture: (e, n) => {
|
|
11083
|
-
const a =
|
|
11084
|
-
id:
|
|
11103
|
+
const a = hp(t.value), r = {
|
|
11104
|
+
id: yp(n),
|
|
11085
11105
|
label: e,
|
|
11086
11106
|
timestamp: n,
|
|
11087
11107
|
slideCount: a.length,
|
|
@@ -11092,7 +11112,7 @@ function kp(e) {
|
|
|
11092
11112
|
},
|
|
11093
11113
|
restore: (e) => {
|
|
11094
11114
|
const o = l.value.find((t) => t.id === e);
|
|
11095
|
-
return !!o && (n(), t.value =
|
|
11115
|
+
return !!o && (n(), t.value = hp(o.slides), !0);
|
|
11096
11116
|
},
|
|
11097
11117
|
remove: (e) => {
|
|
11098
11118
|
const t = l.value.filter((t) => t.id !== e);
|
|
@@ -11733,7 +11753,7 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
11733
11753
|
}), Object.defineProperty(exports, "applyMergeSelected", {
|
|
11734
11754
|
enumerable: !0,
|
|
11735
11755
|
get: function() {
|
|
11736
|
-
return
|
|
11756
|
+
return yu;
|
|
11737
11757
|
}
|
|
11738
11758
|
}), Object.defineProperty(exports, "computeCellSelection", {
|
|
11739
11759
|
enumerable: !0,
|
|
@@ -11753,7 +11773,7 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
11753
11773
|
}), Object.defineProperty(exports, "dist_exports", {
|
|
11754
11774
|
enumerable: !0,
|
|
11755
11775
|
get: function() {
|
|
11756
|
-
return
|
|
11776
|
+
return h;
|
|
11757
11777
|
}
|
|
11758
11778
|
}), Object.defineProperty(exports, "eraseStrokesAtPoint", {
|
|
11759
11779
|
enumerable: !0,
|
|
@@ -11918,7 +11938,7 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
11918
11938
|
}), Object.defineProperty(exports, "useAnimationPlayback", {
|
|
11919
11939
|
enumerable: !0,
|
|
11920
11940
|
get: function() {
|
|
11921
|
-
return
|
|
11941
|
+
return hu;
|
|
11922
11942
|
}
|
|
11923
11943
|
}), Object.defineProperty(exports, "useAutosave", {
|
|
11924
11944
|
enumerable: !0,
|
|
@@ -12018,7 +12038,7 @@ Object.defineProperty(exports, "ChartRenderer_default", {
|
|
|
12018
12038
|
}), Object.defineProperty(exports, "useEmbeddedFonts", {
|
|
12019
12039
|
enumerable: !0,
|
|
12020
12040
|
get: function() {
|
|
12021
|
-
return
|
|
12041
|
+
return hd;
|
|
12022
12042
|
}
|
|
12023
12043
|
}), Object.defineProperty(exports, "useExport", {
|
|
12024
12044
|
enumerable: !0,
|