pptx-svelte-viewer 4.1.3 → 4.1.4
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 +11 -0
- package/dist/{AiChatPanel-bzw26j0l.js → AiChatPanel-que5Axy5.js} +2 -2
- package/dist/{export-DFc5l3nx.js → export-B2Ws2H1S.js} +377 -372
- package/dist/index.js +2 -2
- package/dist/internals.js +1 -1
- package/dist/{transition-overlay-6-XCGrBb.js → transition-overlay-DIPxa90i.js} +53 -51
- package/dist/viewer/index.d.ts +2 -0
- package/dist/viewer/index.js +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as Ho, $a as Mv, $c as Vo, $d as Av, $f as zv, $g as Ko, $h as Wo, $i as Dv, $l as Zo, $m as Ov, $n as qv, $o as Rv, $p as Nv, $r as Fv, $s as xi, $t as yi, $u as Lv, A as Bv, Aa as Go, Ac as jv, Ad as Uv, Af as Hv, Ag as Vv, Ah as Kv, Ai as Wv, Al as Vr, Am as Zv, An as Fn, Ao as Gv, Ap as Xv, Ar as Yv, As as Jv, At as Qv, Au as $v, B as ep, Ba as tp, Bc as wi, Bd as ap, Bf as np, Bg as Si, Bh as ip, Bi as rp, Bl as Xo, Bm as sp, Bo as ki, Bp as lp, Br as Yo, Bs as op, Bt as dp, Bu as Jo, C as cp, Ca as dt, Cc as up, Cd as vp, Cf as Qo, Cg as pp, Ci as hp, Cl as gp, Cm as fp, Cn as mp, Co as $o, Cp as Qe, Cr as _p, Cs as Gt, Ct as bp, Cu as xp, D as yp, Da as wp, Dc as Sp, Dd as Kr, Df as kp, Dg as Tp, Dh as Cp, Di as Ep, Dl as Pp, Dm as Ip, Dn as Mp, Do as Ap, Dp as zp, Dr as Dp, Ds as Op, Dt as qp, Du as ir, E as Rp, Ea as Np, Ec as Fp, Ed as Lp, Ef as Bp, Eg as jp, Eh as Up, Ei as Hp, El as Vp, Em as Kp, En as Wp, Eo as Zp, Ep as Gp, Er as Xp, Es as Yp, Et as Jp, Eu as ed, F as oe, Fa as Wr, Fd as Qp, Ff as $p, Fg as tt, Fh as eh, Fi as th, Fl as ah, Fm as nh, Fn as td, Fo as ih, Fp as rh, Fr as sh, Fs as lh, Ft as oh, Fu as dh, G as ch, Ga as uh, Gc as vh, Gd as ph, Gf as hh, Gg as ad, Gh as Ln, Gi as gh, Gl as fh, Gm as mh, Gn as _h, Go as bh, Gp as xh, Gr as yh, Gs as nd, Gu as Zr, H as Bn, Ha as wh, Hc as Sh, Hd as kh, Hf as Th, Hg as Ch, Hh as Gr, Hi as Eh, Hl as Ph, Hm as Ot, Hn as Ih, Ho as Mh, Hp as Ah, Hr as zh, Hs as Dh, Ht as Oh, Hu as qh, I as Rh, Ia as Nh, Ic as Fh, Id as Ti, If as Ea, Ig as Fe, Ih as Lh, Ii as Bh, Il as jh, Im as id, In as Uh, Io as Hh, Ip as Vh, Ir as Kh, Is as Wh, It as Zh, Iu as Gh, J as Xh, Ja as rd, Jc as Xr, Jf as Yh, Jg as Jh, Jh as Qh, Ji as $h, Jl as eg, Jm as tg, Jn as ag, Jo as ng, Jp as ig, Jr as rg, Js as Yr, Jt as sg, Ju as lg, K as og, Ka as dg, Kc as cg, Kd as ug, Kg as vg, Kh as pg, Ki as hg, Kl as qt, Km as gg, Kn as fg, Ko as mg, Kp as _g, Kr as ia, Ks as sd, Kt as bg, Ku as xg, L as yg, La as wg, Lc as Sg, Ld as kg, Lf as Tg, Lg as Cg, Lh as Eg, Li as ld, Ll as Pg, Lm as Ig, Ln as Jr, Lo as Mg, Lp as Ag, Lr as zg, Ls as Ja, Lt as od, Lu as Dg, M as Og, Ma as qg, Mc as Rg, Md as Ng, Mg as Fg, Mh as Lg, Mi as Bg, Ml as jg, Mm as Ug, Mn as Hg, Mo as dd, Mp as cd, Mr as ud, Ms as Qr, Mt as Vg, Mu as Kg, N as Wg, Na as Zg, Nc as Gg, Nd as Xg, Nf as Yg, Ng as Jg, Nh as Qg, Ni as $g, Nl as ef, Nm as tf, Nn as af, No as vd, Np as nf, Nr as rf, Ns as sf, Nt as lf, Nu as of, O as rr, Oa as df, Od as At, Of as cf, Og as Ci, Oh as uf, Oi as vf, Ol as pf, Om as hf, On as gf, Oo as ff, Op as mf, Or as _f, Os as bf, Ot as xf, Ou as yf, P as wf, Pa as Sf, Pc as kf, Pd as sr, Pf as Tf, Pg as pd, Ph as Cf, Pi as Ef, Pl as Pf, Pm as If, Pn as Ht, Po as Mf, Pp as Af, Pr as zf, Ps as Df, Pt as $r, Pu as Of, Q as qf, Qa as Rf, Qc as Nf, Qd as Ff, Qf as Lf, Qg as Bf, Qh as hd, Qi as vn, Ql as jf, Qm as Uf, Qn as Hf, Qo as gd, Qp as Vf, Qr as Kf, Qs as Wf, Qt as Zf, Qu as jn, R as Gf, Ra as es, Rc as Xf, Rd as Yf, Rf as Jf, Rg as Ei, Rh as Qf, Ri as $f, Rm as em, Rn as ts, Ro as as, Rp as tm, Rr as am, Rs as nm, Rt as fd, Ru as im, S as rm, S_ as Qa, Sa as sm, Sc as md, Sd as lm, Sf as _d, Sg as bd, Sh as om, Si as dm, Sl as cm, Sm as um, Sn as vm, So as pm, Sp as hm, Sr as gm, Ss as fm, St as mm, Su as _m, T as _t, Ta as bm, Tc as xm, Td as ym, Tf as wm, Tg as Sm, Ti as km, Tm as xd, Tn as Tm, To as Cm, Tp as Em, Tr as Pm, Ts as Im, Tt as Mm, Tu as Un, U as Am, Ua as ns, Uc as yd, Ud as zm, Uf as Dm, Ug as Om, Ui as qm, Ul as Rm, Um as Nm, Un as Fm, Uo as is, Up as Lm, Ur as Bm, Us as jm, Uu as wd, V as Um, Va as Hm, Vc as Vm, Vd as Km, Vf as Wm, Vg as Zm, Vh as Gm, Vi as Xm, Vl as ba, Vm as Ym, Vn as Jm, Vp as Qm, Vr as $m, Vs as Sd, Vt as rs, Vu as e_, W as t_, Wa as kd, Wc as a_, Wd as Pi, Wf as n_, Wg as ss, Wi as i_, Wl as r_, Wm as s_, Wn as l_, Wo as ls, Wp as o_, Wr as d_, Ws as c_, Wt as u_, Wu as v_, X as p_, Xa as h_, Xc as g_, Xd as f_, Xf as $a, Xg as m_, Xh as Td, Xi as __, Xl as os, Xm as b_, Xn as x_, Xo as y_, Xp as w_, Xr as S_, Xs as k_, Xt as Cd, Xu as T_, Y as C_, Ya as E_, Yc as P_, Yd as I_, Yf as Ed, Yg as M_, Yh as Pd, Yi as Id, Yl as A_, Ym as z_, Yn as D_, Yo as O_, Yp as q_, Yr as R_, Ys as N_, Yt as F_, Yu as L_, Z as B_, Za as j_, Zc as U_, Zd as H_, Zg as V_, Zh as K_, Zi as W_, Zl as Z_, Zm as G_, Zn as X_, Zo as Y_, Zp as J_, Zr as Md, Zs as Q_, Zt as Hn, Zu as $_, _ as eb, __ as Ad, _a as tb, _d as ab, _f as nb, _g as zd, _h as ib, _i as rb, _l as sb, _m as lb, _n as wt, _o as ob, _p as Ii, _r as db, _s as cb, _t as ds, _u as Dd, a as ub, a_ as vb, aa as Od, ac as qd, af as pb, ag as hb, ah as gb, ai as fb, al as mb, am as _b, an as bb, ao as xb, ap as lr, ar as yb, at as wb, au as Sb, b as kb, b_ as Tb, ba as Cb, bc as ka, bd as Eb, bf as Pb, bg as Ib, bh as Mb, bi as Ab, bl as zb, bm as Db, bn as Mi, bo as Rd, bp as Ob, br as Nd, bs as qb, bt as Rb, bu as Nb, c as Fb, c_ as Lb, ca as Bb, cc as Fd, cd as cs, cf as jb, cg as Ub, ch as Vn, ci as Hb, cl as Vb, cm as Kb, cn as Wb, co as Zb, ct as Gb, cu as Xb, d as Yb, d_ as Jb, da as Qb, dc as $b, dd as ex, df as tx, dg as Ld, dh as ra, di as ax, dl as nt, dm as nx, dn as Kn, do as ix, dp as rx, dr as sx, ds as lx, dt as us, du as ox, e_ as dx, ea as cx, ec as ux, ed as vx, ef as px, eg as Wn, eh as hx, ei as gx, el as Bd, em as fx, en as mx, eo as jd, ep as _x, er as bx, es as Ud, et as xx, eu as yx, f as wx, f_ as Sx, fa as kx, fc as Tx, fd as Cx, ff as Ex, fg as Px, fh as gt, fi as Ix, fl as Mx, fm as Ax, fo as zx, fr as Dx, fs as Ox, fu as qx, g as Rx, g_ as Nx, ga as Fx, gc as Lx, gd as Bx, gf as jx, gg as Hd, gh as Ux, gi as Hx, gl as Vx, gm as Kx, gn as Wx, go as Vd, gp as Zx, gs as Gx, gt as Xx, gu as Ai, h as Yx, h_ as Jx, ha as Qx, hc as $x, hd as e1, hf as t1, hg as Kd, hh as a1, hi as n1, hl as i1, hm as Zn, hn as Pa, ho as r1, hp as vs, hr as s1, hs as l1, hu as o1, i as Wd, i_ as d1, ia as c1, ic as or, id as u1, if as v1, ig as p1, ih as h1, ii as g1, il as f1, im as m1, io as Zd, ir as _1, is as b1, it as x1, iu as y1, j as Rt, ja as w1, jc as S1, jd as k1, jg as zi, jh as T1, ji as C1, jl as E1, jm as P1, jn as ps, jo as I1, jp as M1, jr as A1, js as z1, jt as D1, ju as O1, k as Gd, ka as q1, kc as R1, kd as N1, kf as F1, kg as Di, kh as L1, ki as dr, km as B1, kn as j1, ko as U1, kp as Gn, kr as H1, ks as V1, kt as K1, ku as W1, l as Z1, l_ as G1, la as X1, lc as Y1, ld as J1, lf as Xd, lg as Yd, lh as sa, li as Q1, ll as Oi, lm as $1, ln as ey, lo as Jd, lp as ty, lr as ay, ls as qi, lu as ny, m as iy, m_ as ry, ma as sy, mc as ly, md as oy, mf as dy, mg as cy, mh as hs, mi as uy, ml as vy, mm as py, mn as cr, mo as hy, mp as gy, mr as fy, ms as gs, mt as my, mu as _y, n as lt, n_ as Qd, na as by, nd as xy, nf as yy, ng as $d, nh as wy, ni as Sy, nl as ky, nm as Ty, no as Cy, np as Ey, nr as Py, ns as Iy, nt as My, nu as Ay, o as zy, o_ as Ri, oa as Dy, oc as ur, od as Oy, of as vr, og as ec, oh as qy, oi as Ry, ol as pr, om as Ny, on as Fy, oo as Ly, op as By, ot as jy, ou as Uy, p as Hy, p_ as Vy, pa as tc, pc as fs, pd as Ky, pf as Wy, pg as Zy, ph as Gy, pi as Xy, pl as Yy, pm as Jy, pn as Qy, po as $y, pp as e2, pr as Xn, pt as t2, pu as ac, q as a2, qa as n2, qc as i2, qd as hr, qf as r2, qg as s2, qh as Ia, qi as l2, ql as o2, qm as d2, qn as c2, qo as nc, qp as u2, qr as v2, qs as p2, qt as h2, qu as g2, r as f2, r_ as m2, ra as _2, rc as b2, rd as x2, rf as y2, rg as w2, rh as S2, ri as ic, rl as k2, rm as T2, ro as C2, rp as ms, rr as _s, rs as E2, rt as Ma, ru as P2, s as I2, s_ as M2, sa as A2, sc as z2, sd as rc, sf as gr, sg as D2, sh as Yn, si as O2, sl as q2, sm as sc, so as R2, sp as N2, ss as F2, st as L2, su as B2, t as j2, t_ as Ni, ta as U2, tc as lc, td as Fi, tf as H2, tg as V2, th as oc, ti as K2, tl as Jn, tm as W2, tn as Z2, to as G2, tp as X2, tr as Y2, ts as J2, tu as Li, u as Q2, u_ as $2, ua as ew, uc as tw, ud as aw, uf as nw, ug as dc, uh as Ft, ui as iw, ul as Bi, um as rw, un as sw, uo as lw, up as cc, ur as ow, us as dw, ut as cw, uu as uw, v as vw, v_ as pw, va as hw, vc as gw, vd as fw, vf as mw, vg as _w, vh as bw, vi as xw, vl as uc, vm as yw, vn as Qn, vo as ww, vp as Sw, vr as vc, vs as kw, vt as Tw, vu as Cw, w as Ew, wa as Pw, wc as pc, wd as Iw, wf as Mw, wg as Aw, wh as zw, wi as Dw, wl as Ow, wm as hc, wo as qw, wp as Rw, wr as Nw, ws as gc, wt as Fw, wu as Lw, x as Bw, x_ as jw, xa as Uw, xc as Hw, xd as Vw, xf as Kw, xg as Ww, xi as Zw, xl as Gw, xm as Xw, xn as Yw, xo as bs, xp as Jw, xr as Qw, xs as $w, xu as e0, y as t0, y_ as fc, ya as xs, yc as mc, yd as a0, yf as n0, yg as i0, yh as r0, yi as s0, yl as la, ym as Aa, yn as _c, yo as bc, yp as ys, yr as l0, ys as o0, yt as d0, yu as c0, z as u0, za as v0, zc as xc, zd as p0, zf as h0, zg as g0, zh as f0, zi as m0, zm as yc, zn as _0, zo as b0, zp as x0, zr as y0, zs as wc, zt as Sc, zu as w0 } from "./transition-overlay-DIPxa90i.js";
|
|
2
2
|
import { n as S0, o as k0, t as T0 } from "./translator-D7duxy6A.js";
|
|
3
3
|
import "svelte/internal/disclose-version";
|
|
4
4
|
import * as e from "svelte/internal/client";
|
|
@@ -18,7 +18,7 @@ function I0() {
|
|
|
18
18
|
var M0 = e.from_html('<div class="pptx-svelte-ai-dock svelte-1h57n9l"><!></div>');
|
|
19
19
|
function A0(a, t) {
|
|
20
20
|
var n = M0(), i = e.child(n);
|
|
21
|
-
e.await(i, () => import("./AiChatPanel-
|
|
21
|
+
e.await(i, () => import("./AiChatPanel-que5Axy5.js"), null, (r, s) => {
|
|
22
22
|
var l = e.derived(() => {
|
|
23
23
|
var { default: u } = e.get(s);
|
|
24
24
|
return { AiChatPanel: u };
|
|
@@ -97,7 +97,7 @@ function U0(a, t) {
|
|
|
97
97
|
const o = e.derived(() => wp({
|
|
98
98
|
roomId: e.get(i),
|
|
99
99
|
serverUrl: e.get(r)
|
|
100
|
-
})), d = e.derived(() => lr(e.get(r)) === "webrtc"), c = e.derived(() => t.active ? n("pptx.broadcast.broadcastingTitle") : n("pptx.broadcast.startTitle")), u = e.derived(() => typeof navigator < "u" &&
|
|
100
|
+
})), d = e.derived(() => lr(e.get(r)) === "webrtc"), c = e.derived(() => t.active ? n("pptx.broadcast.broadcastingTitle") : n("pptx.broadcast.startTitle")), u = e.derived(() => typeof navigator < "u" && Go(navigator));
|
|
101
101
|
function p() {
|
|
102
102
|
const f = C1({
|
|
103
103
|
roomId: e.get(i),
|
|
@@ -584,12 +584,12 @@ var Pt = {
|
|
|
584
584
|
"stroke-width": 2,
|
|
585
585
|
"stroke-linecap": "round",
|
|
586
586
|
"stroke-linejoin": "round"
|
|
587
|
-
},
|
|
587
|
+
}, ji = (...a) => a.filter((t, n, i) => !!t && t.trim() !== "" && i.indexOf(t) === n).join(" ").trim();
|
|
588
588
|
function $n(a) {
|
|
589
589
|
return a != null;
|
|
590
590
|
}
|
|
591
591
|
function fS(a, t = {}) {
|
|
592
|
-
const n = t.attributeNames ?? {}, i = (p) => n[p] ?? p, r = a.size ?? a.width ?? Pt.width, s = a.size ?? a.height ?? Pt.height, l = a.aliases?.filter((p) => typeof p == "string" && p.trim() !== "").map((p) => `lucide-${p}`) ?? [], o = [...a.name ? [`lucide-${a.name}`] : [], ...l], d = t.className?.split(" ").filter(Boolean) ?? [], c = t.includeDefaultClasses === !1 ?
|
|
592
|
+
const n = t.attributeNames ?? {}, i = (p) => n[p] ?? p, r = a.size ?? a.width ?? Pt.width, s = a.size ?? a.height ?? Pt.height, l = a.aliases?.filter((p) => typeof p == "string" && p.trim() !== "").map((p) => `lucide-${p}`) ?? [], o = [...a.name ? [`lucide-${a.name}`] : [], ...l], d = t.className?.split(" ").filter(Boolean) ?? [], c = t.includeDefaultClasses === !1 ? ji(...d) : ji("lucide", ...o, ...d), u = t.absoluteStrokeWidth ? Number(t.strokeWidth ?? Pt["stroke-width"]) * Number(a.size ?? a.width ?? Pt.width) / Number(t.size ?? t.width ?? Pt.width) : t.strokeWidth ?? Pt["stroke-width"];
|
|
593
593
|
return [
|
|
594
594
|
"svg",
|
|
595
595
|
{
|
|
@@ -652,7 +652,7 @@ function ke(a, t) {
|
|
|
652
652
|
strokeWidth: o(),
|
|
653
653
|
absoluteStrokeWidth: d(),
|
|
654
654
|
nonScalingStroke: c(),
|
|
655
|
-
className:
|
|
655
|
+
className: ji("lucide-icon", n.class),
|
|
656
656
|
hasA11yProp: e.get(f),
|
|
657
657
|
attributes: v
|
|
658
658
|
})), m = e.derived(() => e.to_array(e.get(h), 3)), g = e.derived(() => e.get(m)[1]), y = e.derived(() => e.fallback(e.get(m)[2], () => [], !0)), S = e.derived(() => ({
|
|
@@ -822,7 +822,7 @@ function OS(a, t, n, i = []) {
|
|
|
822
822
|
} : null;
|
|
823
823
|
}
|
|
824
824
|
case "table-split": {
|
|
825
|
-
const l =
|
|
825
|
+
const l = $o(t, r, s);
|
|
826
826
|
return l ? {
|
|
827
827
|
...t,
|
|
828
828
|
rows: l
|
|
@@ -842,15 +842,15 @@ function qS(a, t, n) {
|
|
|
842
842
|
const { rowIndex: i, columnIndex: r } = n;
|
|
843
843
|
switch (a) {
|
|
844
844
|
case "table-insert-row-above":
|
|
845
|
-
return
|
|
845
|
+
return Bi(t, i, "above");
|
|
846
846
|
case "table-insert-row-below":
|
|
847
|
-
return
|
|
847
|
+
return Bi(t, i, "below");
|
|
848
848
|
case "table-delete-row":
|
|
849
849
|
return gr(t, i);
|
|
850
850
|
case "table-insert-col-left":
|
|
851
|
-
return
|
|
851
|
+
return Oi(t, r, "left");
|
|
852
852
|
case "table-insert-col-right":
|
|
853
|
-
return
|
|
853
|
+
return Oi(t, r, "right");
|
|
854
854
|
case "table-delete-col":
|
|
855
855
|
return vr(t, r);
|
|
856
856
|
default:
|
|
@@ -938,7 +938,7 @@ function Ic(a) {
|
|
|
938
938
|
}
|
|
939
939
|
function LS(a) {
|
|
940
940
|
if (a.length === 1) return Ic(a[0]);
|
|
941
|
-
const t =
|
|
941
|
+
const t = cd(a);
|
|
942
942
|
return t ? {
|
|
943
943
|
...t,
|
|
944
944
|
rotation: 0
|
|
@@ -1155,7 +1155,7 @@ function ZS(a) {
|
|
|
1155
1155
|
}, a.onMarquee(c), l();
|
|
1156
1156
|
},
|
|
1157
1157
|
beginTransform(o, d, c) {
|
|
1158
|
-
const u = new Set(a.getTransformIds?.(o) ?? a.getSelectedIds()), p = a.getElements().filter((f) => u.has(f.id)), v =
|
|
1158
|
+
const u = new Set(a.getTransformIds?.(o) ?? a.getSelectedIds()), p = a.getElements().filter((f) => u.has(f.id)), v = cd(p);
|
|
1159
1159
|
return p.length < 2 || !v ? !1 : (d.preventDefault(), d.stopPropagation(), t = {
|
|
1160
1160
|
kind: o,
|
|
1161
1161
|
pointerId: d.pointerId,
|
|
@@ -1523,7 +1523,7 @@ var Cs = 400, Es = 40, dk = class {
|
|
|
1523
1523
|
this.connectorEndpointDrag = null;
|
|
1524
1524
|
const l = this.selectedConnector;
|
|
1525
1525
|
if (!s || !l) return;
|
|
1526
|
-
const o = this.#g(r), d = this.#v(), c =
|
|
1526
|
+
const o = this.#g(r), d = this.#v(), c = sd(jd(d.filter((v) => v.id !== l.id)), o.x, o.y), u = cf(l, d, s.kind, o, c), p = Qf(l, u);
|
|
1527
1527
|
this.#e.pushHistory(), this.#e.replaceActiveElements(d.map((v) => v.id === l.id ? p : v)), this.#e.commitChange();
|
|
1528
1528
|
};
|
|
1529
1529
|
window.addEventListener("pointermove", n), window.addEventListener("pointerup", i), window.addEventListener("pointercancel", i);
|
|
@@ -1624,7 +1624,7 @@ var Cs = 400, Es = 40, dk = class {
|
|
|
1624
1624
|
if (t.masterViewTarget || !i.checkModel(s)) return !0;
|
|
1625
1625
|
const l = i.readAccepted();
|
|
1626
1626
|
if (l && r) {
|
|
1627
|
-
const o =
|
|
1627
|
+
const o = Jo(r.elements, l);
|
|
1628
1628
|
o !== r.elements && (t.slides = t.slides.map((d) => d === r ? {
|
|
1629
1629
|
...r,
|
|
1630
1630
|
elements: [...o]
|
|
@@ -1714,7 +1714,7 @@ function hk(a, t, n, i = !1) {
|
|
|
1714
1714
|
if (!r?.some((o) => n.includes(o.id)) || !n.map((o) => r.find((d) => d.id === o)).every((o) => dt(o, "group"))) return null;
|
|
1715
1715
|
let s = null;
|
|
1716
1716
|
const l = qt(a, t, (o) => {
|
|
1717
|
-
const d =
|
|
1717
|
+
const d = pd(o, n, i ? Xo(!0, n[0] ?? "group") : Tx());
|
|
1718
1718
|
return s = d.groupId, d.elements;
|
|
1719
1719
|
});
|
|
1720
1720
|
return s ? {
|
|
@@ -1725,7 +1725,7 @@ function hk(a, t, n, i = !1) {
|
|
|
1725
1725
|
function gk(a, t, n, i = !1) {
|
|
1726
1726
|
const r = a[t]?.elements.find((d) => d.id === n);
|
|
1727
1727
|
if (!r || r.type !== "group" || !dt(r, "group")) return null;
|
|
1728
|
-
const s = r.children.map((d) =>
|
|
1728
|
+
const s = r.children.map((d) => Xo(i, d.id));
|
|
1729
1729
|
let l = [];
|
|
1730
1730
|
const o = qt(a, t, (d) => {
|
|
1731
1731
|
const c = fc(d, n, s, { intoTemplate: i });
|
|
@@ -1806,7 +1806,7 @@ function _k(a, t, n) {
|
|
|
1806
1806
|
}
|
|
1807
1807
|
function bk(a, t, n, i = !1) {
|
|
1808
1808
|
if (!a[t]) return null;
|
|
1809
|
-
const r =
|
|
1809
|
+
const r = rd(n.element, { intoTemplate: i });
|
|
1810
1810
|
return {
|
|
1811
1811
|
slides: qt(a, t, (s) => [...s, r]),
|
|
1812
1812
|
newId: r.id
|
|
@@ -1858,7 +1858,7 @@ function mr(a) {
|
|
|
1858
1858
|
}
|
|
1859
1859
|
async function zc(a, t, n = "pptx", i, r = !0, s, l, o) {
|
|
1860
1860
|
const d = {
|
|
1861
|
-
...
|
|
1861
|
+
...ld({
|
|
1862
1862
|
headerFooter: t.headerFooter,
|
|
1863
1863
|
presentationProperties: t.presentationProperties,
|
|
1864
1864
|
viewProperties: l,
|
|
@@ -1879,26 +1879,26 @@ async function zc(a, t, n = "pptx", i, r = !0, s, l, o) {
|
|
|
1879
1879
|
}),
|
|
1880
1880
|
...o
|
|
1881
1881
|
};
|
|
1882
|
-
return t.slideMasters.length > 0 || t.notesMaster !== void 0 || t.handoutMaster !== void 0 ?
|
|
1882
|
+
return t.slideMasters.length > 0 || t.notesMaster !== void 0 || t.handoutMaster !== void 0 ? Ii(a, t.slides, {
|
|
1883
1883
|
...d,
|
|
1884
1884
|
slideMasters: t.slideMasters,
|
|
1885
1885
|
notesMaster: t.notesMaster,
|
|
1886
1886
|
handoutMaster: t.handoutMaster,
|
|
1887
1887
|
outputFormat: n
|
|
1888
|
-
}, i) :
|
|
1888
|
+
}, i) : Ii(a, t.slides, {
|
|
1889
1889
|
...d,
|
|
1890
1890
|
outputFormat: n
|
|
1891
1891
|
}, i);
|
|
1892
1892
|
}
|
|
1893
1893
|
function yk(a, ...t) {
|
|
1894
|
-
const [n, i = [], r, s, l = [], o, d, c = [], u = {}, p = {}, v = []] = t, f =
|
|
1894
|
+
const [n, i = [], r, s, l = [], o, d, c = [], u = {}, p = {}, v = []] = t, f = wd(n);
|
|
1895
1895
|
a.slides = f.slides, a.templateElementsBySlideId = f.templateElementsBySlideId, a.slideMasters = structuredClone(i), a.notesMaster = structuredClone(r), a.handoutMaster = structuredClone(s), a.sections = structuredClone(l), a.coreProperties = structuredClone(o), a.appProperties = structuredClone(d), a.customProperties = structuredClone(c), a.tagCollections = [], a.presentationMetadata.set(u, p, v), a.seedNonce += 1, Dc(a);
|
|
1896
1896
|
}
|
|
1897
1897
|
function Dc(a) {
|
|
1898
1898
|
a.cancelInlineListEdit?.(), a.cancelInlineListEdit = void 0, a.readPendingInlineTextEdit = void 0, a.inlineListController = void 0, a.masterViewTarget = null, a.selection.clear(), a.editTemplateMode = !1, a.dirty = !1, a.interactionActive = !1, a.history.clear(), a.elementOps.resetNudge(), a.inkOps.setTool("select");
|
|
1899
1899
|
}
|
|
1900
1900
|
function wk(a, t) {
|
|
1901
|
-
const n =
|
|
1901
|
+
const n = wd(t);
|
|
1902
1902
|
a.slides = n.slides, a.templateElementsBySlideId = n.templateElementsBySlideId, a.selection.prune((i) => a.activeElements.some((r) => r.id === i));
|
|
1903
1903
|
}
|
|
1904
1904
|
function Ps(a, t) {
|
|
@@ -1924,7 +1924,7 @@ async function Oc(a, t = "pptx") {
|
|
|
1924
1924
|
if (!n) throw new Error("No presentation is loaded.");
|
|
1925
1925
|
const i = a.readPendingInlineTextEdit?.(), r = a.snapshot(), s = i && "masterView" in i.target ? e_(r, i.target.masterView, i.snapshot, i.text) : null, l = a.renderedSlides.map((o) => i && "slideId" in i.target && i.target.slideId === o.id ? {
|
|
1926
1926
|
...o,
|
|
1927
|
-
elements: [...
|
|
1927
|
+
elements: [...Jo(o.elements, i.snapshot, i.text)]
|
|
1928
1928
|
} : o);
|
|
1929
1929
|
return zc(n, {
|
|
1930
1930
|
...r,
|
|
@@ -2003,7 +2003,7 @@ var Mk = 800, Ak = class {
|
|
|
2003
2003
|
duplicateSelected() {
|
|
2004
2004
|
const a = this.#e.selectedElement;
|
|
2005
2005
|
if (!this.#e.editable || !a) return null;
|
|
2006
|
-
const t =
|
|
2006
|
+
const t = rd(a, { intoTemplate: this.#e.editTemplateMode });
|
|
2007
2007
|
return this.#e.pushHistory(), this.#e.replaceActiveElements([...this.#e.activeElements, t]), this.#e.selection.set(t.id), this.#e.commitChange(), t.id;
|
|
2008
2008
|
}
|
|
2009
2009
|
applyElementPatch(a, t) {
|
|
@@ -2252,7 +2252,7 @@ var Rk = "#000000", Nk = 3, Fk = class {
|
|
|
2252
2252
|
}
|
|
2253
2253
|
previewStroke(a) {
|
|
2254
2254
|
const t = [...a];
|
|
2255
|
-
this.livePathD =
|
|
2255
|
+
this.livePathD = Fi(t), this.liveStrokeView = $h({
|
|
2256
2256
|
points: t,
|
|
2257
2257
|
color: this.color,
|
|
2258
2258
|
width: this.width,
|
|
@@ -2266,7 +2266,7 @@ var Rk = "#000000", Nk = 3, Fk = class {
|
|
|
2266
2266
|
return;
|
|
2267
2267
|
}
|
|
2268
2268
|
if (this.tool !== "pen" && this.tool !== "highlighter") return;
|
|
2269
|
-
const t =
|
|
2269
|
+
const t = xd({
|
|
2270
2270
|
points: [...a],
|
|
2271
2271
|
color: this.color,
|
|
2272
2272
|
width: this.width,
|
|
@@ -2448,7 +2448,7 @@ var jk = class {
|
|
|
2448
2448
|
this.editor = a;
|
|
2449
2449
|
}
|
|
2450
2450
|
get groups() {
|
|
2451
|
-
return
|
|
2451
|
+
return yd(this.editor.sections, this.editor.slides);
|
|
2452
2452
|
}
|
|
2453
2453
|
add(a, t = this.editor.currentSlideIndex) {
|
|
2454
2454
|
if (!this.editor.editable || this.editor.slides.length === 0) return null;
|
|
@@ -2535,7 +2535,7 @@ function hn(a) {
|
|
|
2535
2535
|
}
|
|
2536
2536
|
function Wk(a, t) {
|
|
2537
2537
|
const n = Math.min(Math.max(t + 1, 0), a.length), i = [...a];
|
|
2538
|
-
return i.splice(n, 0,
|
|
2538
|
+
return i.splice(n, 0, vd(n + 1, ba)), {
|
|
2539
2539
|
slides: hn(i),
|
|
2540
2540
|
newIndex: n
|
|
2541
2541
|
};
|
|
@@ -2634,11 +2634,13 @@ var Jk = class {
|
|
|
2634
2634
|
if (!this.#e.editable) return null;
|
|
2635
2635
|
const t = this.#e.getHandler();
|
|
2636
2636
|
if (!t) return null;
|
|
2637
|
-
const n = this.#e.currentSlideIndex, i =
|
|
2638
|
-
|
|
2637
|
+
const n = this.#e.currentSlideIndex, i = this.#e.slides[n];
|
|
2638
|
+
if (!i) return null;
|
|
2639
|
+
const r = await t.applyLayoutToSlide(n, a, this.#e.slides), s = await t.getTemplateElementsForSlide(r.id);
|
|
2640
|
+
return this.#e.slides[n]?.id !== i.id ? null : (this.#e.commitSlides(this.#e.slides.map((l, o) => o === n ? r : l)), this.#e.templateElementsBySlideId = {
|
|
2639
2641
|
...this.#e.templateElementsBySlideId,
|
|
2640
|
-
[
|
|
2641
|
-
}, n;
|
|
2642
|
+
[r.id]: s
|
|
2643
|
+
}, n);
|
|
2642
2644
|
}
|
|
2643
2645
|
async resetSlide() {
|
|
2644
2646
|
const a = nb(this.#e.slides[this.#e.currentSlideIndex]);
|
|
@@ -3503,7 +3505,7 @@ function Fc(a, t) {
|
|
|
3503
3505
|
function MT(a, t) {
|
|
3504
3506
|
return Fc(a, lc(a) + t);
|
|
3505
3507
|
}
|
|
3506
|
-
function
|
|
3508
|
+
function Ui(a, t, n) {
|
|
3507
3509
|
return Ot(a, {
|
|
3508
3510
|
color: t,
|
|
3509
3511
|
colorRef: n
|
|
@@ -3518,7 +3520,7 @@ function zT(a, t) {
|
|
|
3518
3520
|
function ha(a, t, n) {
|
|
3519
3521
|
return sc(a, m1(t, n));
|
|
3520
3522
|
}
|
|
3521
|
-
function
|
|
3523
|
+
function Hi(a, t, n) {
|
|
3522
3524
|
return sc(a, _b(t, n));
|
|
3523
3525
|
}
|
|
3524
3526
|
function DT(a) {
|
|
@@ -3590,7 +3592,7 @@ function BT(a, t) {
|
|
|
3590
3592
|
() => n("pptx.ribbon.insertImage"),
|
|
3591
3593
|
() => n("pptx.insert.insertTable"),
|
|
3592
3594
|
() => n("pptx.insert.insertTable")
|
|
3593
|
-
]), e.delegated("click", d, () => t.editor.insertElement(
|
|
3595
|
+
]), e.delegated("click", d, () => t.editor.insertElement(ir())), e.delegated("click", c, () => t.editor.insertElement(Un("rect"))), e.delegated("click", u, () => t.editor.insertElement(Un("ellipse"))), e.delegated("click", p, () => t.editor.insertElement(Un("line"))), e.delegated("click", v, s), e.delegated("click", f, () => t.editor.insertElement(ed())), e.delegated("change", h, l), e.append(a, o), e.pop();
|
|
3594
3596
|
}
|
|
3595
3597
|
e.delegate(["click", "change"]);
|
|
3596
3598
|
function jT(a) {
|
|
@@ -3604,7 +3606,7 @@ function jT(a) {
|
|
|
3604
3606
|
}, "pptx", void 0, n.embedFonts, $a({
|
|
3605
3607
|
current: t.slideSize,
|
|
3606
3608
|
canvas: t.canvasSize
|
|
3607
|
-
}).size, void 0,
|
|
3609
|
+
}).size, void 0, id({
|
|
3608
3610
|
tableStyleMap: t.tableStyleMap,
|
|
3609
3611
|
tableStylesDefaultId: t.tableStylesDefaultId,
|
|
3610
3612
|
tableStylesToDelete: t.tableStylesToDelete
|
|
@@ -4629,7 +4631,7 @@ function VC(a, t) {
|
|
|
4629
4631
|
const b = e.get(s)[x];
|
|
4630
4632
|
if (b?.kind !== "editor") return;
|
|
4631
4633
|
const T = Xd(e.get(s), b.key, _);
|
|
4632
|
-
xr(t.editor,
|
|
4634
|
+
xr(t.editor, Yo(e.get(r), T));
|
|
4633
4635
|
}
|
|
4634
4636
|
function f(x, _) {
|
|
4635
4637
|
!e.get(o) || e.get(s)[x]?.kind !== "editor" || (e.set(d, x, !0), _.dataTransfer && (_.dataTransfer.effectAllowed = "move", _.dataTransfer.setData("text/plain", String(x))));
|
|
@@ -4795,7 +4797,7 @@ function GC(a, t) {
|
|
|
4795
4797
|
var za = e.from_html("<option> </option>"), XC = e.from_html('<label class="svelte-sg9hni"><span class="svelte-sg9hni"> </span> <select class="pptx-svelte-animp-trigger-shape svelte-sg9hni"><option> </option><!></select></label>'), YC = e.from_html('<div class="pptx-svelte-animp-subhead svelte-sg9hni"> </div> <label class="svelte-sg9hni"><span class="svelte-sg9hni"> </span> <select class="pptx-svelte-animp-trigger svelte-sg9hni"></select></label> <!> <label class="svelte-sg9hni"><span class="svelte-sg9hni"> </span> <input class="pptx-svelte-animp-duration svelte-sg9hni" type="number" min="100" max="10000" step="50"/></label> <label class="svelte-sg9hni"><span class="svelte-sg9hni"> </span> <input class="pptx-svelte-animp-delay svelte-sg9hni" type="number" min="0" max="10000" step="50"/></label> <label class="svelte-sg9hni"><span class="svelte-sg9hni"> </span> <select class="pptx-svelte-animp-curve svelte-sg9hni"></select></label> <label class="svelte-sg9hni"><span class="svelte-sg9hni"> </span> <input class="pptx-svelte-animp-repeat-count svelte-sg9hni" type="number" min="1" max="100" step="1"/></label> <label class="svelte-sg9hni"><span class="svelte-sg9hni"> </span> <select class="pptx-svelte-animp-repeat-mode svelte-sg9hni"></select></label>', 1);
|
|
4796
4798
|
function JC(a, t) {
|
|
4797
4799
|
e.push(t, !0);
|
|
4798
|
-
const n = oe(), i = e.derived(() => t.editor.slides[t.editor.currentSlideIndex]), r = e.derived(() => t.editor.selectedElement), s = e.derived(() => e.get(i)?.animations ?? []), l = e.derived(() => e.get(r) ?
|
|
4800
|
+
const n = oe(), i = e.derived(() => t.editor.slides[t.editor.currentSlideIndex]), r = e.derived(() => t.editor.selectedElement), s = e.derived(() => e.get(i)?.animations ?? []), l = e.derived(() => e.get(r) ? ud(e.get(s), e.get(r).id) : void 0), o = e.derived(() => t.editor.editable), d = e.derived(() => (e.get(i)?.elements ?? []).filter((Z) => Z.id !== e.get(r)?.id));
|
|
4799
4801
|
function c(Z) {
|
|
4800
4802
|
e.get(o) && xr(t.editor, Z);
|
|
4801
4803
|
}
|
|
@@ -4900,8 +4902,8 @@ function $C(a, t) {
|
|
|
4900
4902
|
}
|
|
4901
4903
|
function u() {
|
|
4902
4904
|
if (!t.soundState.catalogueId) return;
|
|
4903
|
-
const k =
|
|
4904
|
-
k &&
|
|
4905
|
+
const k = md(t.soundState.catalogueId);
|
|
4906
|
+
k && rr(k.dataUrl);
|
|
4905
4907
|
}
|
|
4906
4908
|
var p = QC(), v = e.child(p), f = e.only_child(v, !0), h = e.sibling(v, 2), m = e.child(h), g = e.child(m), y = e.only_child(g, !0);
|
|
4907
4909
|
g.value = g.__value = n;
|
|
@@ -4958,7 +4960,7 @@ function nE(a, t) {
|
|
|
4958
4960
|
var T = Us(), C = e.only_child(T, !0), P = {};
|
|
4959
4961
|
e.template_effect((k) => {
|
|
4960
4962
|
e.set_text(C, k), P !== (P = e.get(b).id) && (T.value = (T.__value = P) ?? "");
|
|
4961
|
-
}, [() => n(
|
|
4963
|
+
}, [() => n(Ai(e.get(b).id))]), e.append(_, T);
|
|
4962
4964
|
}), e.reset(x), e.template_effect((_) => e.set_attribute(x, "label", _), [() => n(ac(w))]), e.append(S, x);
|
|
4963
4965
|
}), e.reset(c);
|
|
4964
4966
|
var m;
|
|
@@ -4981,7 +4983,7 @@ e.delegate(["change"]);
|
|
|
4981
4983
|
var iE = e.from_html('<button type="button" class="pptx-svelte-animp-preview svelte-t1auzt"><!> </button>'), Da = e.from_html("<option> </option>"), rE = e.from_html('<button type="button"> </button>'), sE = e.from_html('<div class="pptx-svelte-animp-direction svelte-t1auzt"><span class="svelte-t1auzt"> </span> <div class="pptx-svelte-animp-direction-row svelte-t1auzt"></div></div>'), lE = e.from_html('<!> <label class="svelte-t1auzt"><span class="svelte-t1auzt"> </span> <select class="pptx-svelte-animp-sequence svelte-t1auzt"></select></label> <!> <!> <!>', 1), oE = e.from_html('<div class="pptx-svelte-animp svelte-t1auzt" data-pptx-animation-panel=""><div class="pptx-svelte-animp-header svelte-t1auzt"><span class="pptx-svelte-animp-title svelte-t1auzt"> </span> <!></div> <label class="svelte-t1auzt"><span class="svelte-t1auzt"> </span> <select class="pptx-svelte-animp-entrance svelte-t1auzt"><option> </option><!></select></label> <label class="svelte-t1auzt"><span class="svelte-t1auzt"> </span> <select class="pptx-svelte-animp-emphasis svelte-t1auzt"><option> </option><!></select></label> <label class="svelte-t1auzt"><span class="svelte-t1auzt"> </span> <select class="pptx-svelte-animp-exit svelte-t1auzt"><option> </option><!></select></label> <!> <!> <!></div>');
|
|
4982
4984
|
function dE(a, t) {
|
|
4983
4985
|
e.push(t, !0);
|
|
4984
|
-
const n = oe(), i = $t(), r = e.derived(() => Math.max(28, ka(i.width))), s = e.derived(() => `min-width: ${e.get(r)}px; min-height: ${e.get(r)}px;`), l = e.derived(() => t.editor.slides[t.editor.currentSlideIndex]), o = e.derived(() => t.editor.selectedElement), d = e.derived(() => e.get(l)?.animations ?? []), c = e.derived(() => e.get(o) ?
|
|
4986
|
+
const n = oe(), i = $t(), r = e.derived(() => Math.max(28, ka(i.width))), s = e.derived(() => `min-width: ${e.get(r)}px; min-height: ${e.get(r)}px;`), l = e.derived(() => t.editor.slides[t.editor.currentSlideIndex]), o = e.derived(() => t.editor.selectedElement), d = e.derived(() => e.get(l)?.animations ?? []), c = e.derived(() => e.get(o) ? ud(e.get(d), e.get(o).id) : void 0), u = e.derived(() => e.get(o) ? i2(e.get(d), e.get(o).id) : !1), p = e.derived(() => e.get(o) ? py(e.get(d), e.get(o).id) : !1), v = e.derived(() => t.editor.editable), f = e.derived(() => e.get(o) ? up(e.get(d), e.get(o).id) : { hasSound: !1 });
|
|
4985
4987
|
function h(P) {
|
|
4986
4988
|
e.get(v) && xr(t.editor, P);
|
|
4987
4989
|
}
|
|
@@ -5229,7 +5231,7 @@ function mE(a, t) {
|
|
|
5229
5231
|
var F = ei(), U = e.only_child(F, !0), L = {};
|
|
5230
5232
|
e.template_effect((H) => {
|
|
5231
5233
|
e.set_text(U, H), L !== (L = e.get(O)) && (F.value = (F.__value = L) ?? "");
|
|
5232
|
-
}, [() => Qe(
|
|
5234
|
+
}, [() => Qe(Ho, e.get(O), n)]), e.append(N, F);
|
|
5233
5235
|
}), e.reset(C);
|
|
5234
5236
|
var E;
|
|
5235
5237
|
e.init_select(C), e.reset(T);
|
|
@@ -6115,7 +6117,7 @@ function yP(a, t) {
|
|
|
6115
6117
|
var le = Oa(), ue = e.only_child(le, !0), ve = {};
|
|
6116
6118
|
e.template_effect((se) => {
|
|
6117
6119
|
e.set_text(ue, se), ve !== (ve = e.get(me)) && (le.value = (le.__value = ve) ?? "");
|
|
6118
|
-
}, [() => Qe(
|
|
6120
|
+
}, [() => Qe(Ho, e.get(me), n)]), e.append(he, le);
|
|
6119
6121
|
}), e.reset(M);
|
|
6120
6122
|
var R;
|
|
6121
6123
|
e.init_select(M), e.reset(I);
|
|
@@ -6515,7 +6517,7 @@ function RP(a, t) {
|
|
|
6515
6517
|
}), e.user_effect(() => {
|
|
6516
6518
|
let v = !1;
|
|
6517
6519
|
return e.set(r, !0), (async () => {
|
|
6518
|
-
const f = await
|
|
6520
|
+
const f = await Di(t.el);
|
|
6519
6521
|
v || (e.set(i, f, !0), e.set(r, !1));
|
|
6520
6522
|
})(), () => {
|
|
6521
6523
|
v = !0;
|
|
@@ -6526,7 +6528,7 @@ function RP(a, t) {
|
|
|
6526
6528
|
try {
|
|
6527
6529
|
const g = await dc(t.el, v, f, h);
|
|
6528
6530
|
g.oleContentDirty && t.editor.applyElementPatch(t.el.id, vn(g));
|
|
6529
|
-
const y = await
|
|
6531
|
+
const y = await Di(g);
|
|
6530
6532
|
s && e.set(i, y, !0);
|
|
6531
6533
|
} catch {
|
|
6532
6534
|
s && t.onerror();
|
|
@@ -6572,7 +6574,7 @@ function LP(a, t) {
|
|
|
6572
6574
|
}), e.user_effect(() => {
|
|
6573
6575
|
let v = !1;
|
|
6574
6576
|
return e.set(r, !0), (async () => {
|
|
6575
|
-
const f = await
|
|
6577
|
+
const f = await Ci(t.el);
|
|
6576
6578
|
v || (e.set(i, f, !0), e.set(r, !1));
|
|
6577
6579
|
})(), () => {
|
|
6578
6580
|
v = !0;
|
|
@@ -6583,7 +6585,7 @@ function LP(a, t) {
|
|
|
6583
6585
|
try {
|
|
6584
6586
|
const m = await Yd(t.el, v, f);
|
|
6585
6587
|
m.oleContentDirty && t.editor.applyElementPatch(t.el.id, vn(m));
|
|
6586
|
-
const g = await
|
|
6588
|
+
const g = await Ci(m);
|
|
6587
6589
|
s && e.set(i, g, !0);
|
|
6588
6590
|
} catch {
|
|
6589
6591
|
s && t.onerror();
|
|
@@ -6618,7 +6620,7 @@ function HP(a, t) {
|
|
|
6618
6620
|
}), e.user_effect(() => {
|
|
6619
6621
|
let v = !1;
|
|
6620
6622
|
return e.set(r, !0), (async () => {
|
|
6621
|
-
const f = await
|
|
6623
|
+
const f = await zi(t.el);
|
|
6622
6624
|
v || (e.set(i, f, !0), e.set(r, !1));
|
|
6623
6625
|
})(), () => {
|
|
6624
6626
|
v = !0;
|
|
@@ -6633,7 +6635,7 @@ function HP(a, t) {
|
|
|
6633
6635
|
value: h
|
|
6634
6636
|
});
|
|
6635
6637
|
g.oleContentDirty && t.editor.applyElementPatch(t.el.id, vn(g));
|
|
6636
|
-
const y = await
|
|
6638
|
+
const y = await zi(g);
|
|
6637
6639
|
s && e.set(i, y, !0);
|
|
6638
6640
|
} catch {
|
|
6639
6641
|
s && t.onerror();
|
|
@@ -7515,7 +7517,7 @@ e.delegate(["change"]);
|
|
|
7515
7517
|
var ni = "Calibri Light", ii = "Calibri", XI = class {
|
|
7516
7518
|
#e;
|
|
7517
7519
|
#t;
|
|
7518
|
-
#n = e.state(e.proxy(
|
|
7520
|
+
#n = e.state(e.proxy(Mi[0].colorScheme));
|
|
7519
7521
|
get colors() {
|
|
7520
7522
|
return e.get(this.#n);
|
|
7521
7523
|
}
|
|
@@ -7553,7 +7555,7 @@ var ni = "Calibri Light", ii = "Calibri", XI = class {
|
|
|
7553
7555
|
constructor(a, t) {
|
|
7554
7556
|
this.#e = t;
|
|
7555
7557
|
const n = je(a);
|
|
7556
|
-
this.#t = n, this.colors = n?.colorScheme ??
|
|
7558
|
+
this.#t = n, this.colors = n?.colorScheme ?? Mi[0].colorScheme, this.majorFont = n?.fontScheme?.majorFont?.latin ?? ni, this.minorFont = n?.fontScheme?.minorFont?.latin ?? ii, this.name = n?.name ?? "Custom Theme";
|
|
7557
7559
|
}
|
|
7558
7560
|
setColor(a, t) {
|
|
7559
7561
|
this.colors = {
|
|
@@ -7580,15 +7582,15 @@ var ni = "Calibri Light", ii = "Calibri", XI = class {
|
|
|
7580
7582
|
const a = this.#t;
|
|
7581
7583
|
a?.colorScheme && (this.colors = a.colorScheme, this.name = a.name ?? "Custom Theme", this.#e.onupdatecolorscheme(a.colorScheme), this.setFonts(a.fontScheme?.majorFont?.latin ?? ni, a.fontScheme?.minorFont?.latin ?? ii), this.#e.onupdatename(this.name));
|
|
7582
7584
|
}
|
|
7583
|
-
}, YI = e.from_html('<div class="pptx-svelte-theme-swatch svelte-sm0uf7"><button type="button"></button> <small class="svelte-sm0uf7"> </small></div>'), JI = e.from_html('<div class="pptx-svelte-theme-picker svelte-sm0uf7"><span> </span> <input type="color" class="svelte-sm0uf7"/> <input type="text" class="svelte-sm0uf7"/></div>'), QI = e.from_html('<span class="svelte-sm0uf7"></span>'), $I = e.from_html('<div class="svelte-sm0uf7"></div>'),
|
|
7584
|
-
function
|
|
7585
|
+
}, YI = e.from_html('<div class="pptx-svelte-theme-swatch svelte-sm0uf7"><button type="button"></button> <small class="svelte-sm0uf7"> </small></div>'), JI = e.from_html('<div class="pptx-svelte-theme-picker svelte-sm0uf7"><span> </span> <input type="color" class="svelte-sm0uf7"/> <input type="text" class="svelte-sm0uf7"/></div>'), QI = e.from_html('<span class="svelte-sm0uf7"></span>'), $I = e.from_html('<div class="svelte-sm0uf7"></div>'), e3 = e.from_html('<div class="pptx-svelte-theme-block svelte-sm0uf7"><span class="pptx-svelte-theme-heading svelte-sm0uf7"> </span> <div class="pptx-svelte-theme-preview svelte-sm0uf7"></div></div>'), t3 = e.from_html('<div class="pptx-svelte-theme-block svelte-sm0uf7"><span class="pptx-svelte-theme-heading svelte-sm0uf7"> </span> <div class="pptx-svelte-theme-swatches svelte-sm0uf7"></div> <!></div> <!>', 1);
|
|
7586
|
+
function a3(a, t) {
|
|
7585
7587
|
e.push(t, !0);
|
|
7586
7588
|
const n = e.prop(t, "state", 7), i = oe(), r = (y) => mh(y, i), s = e.derived(() => Qx(n().colors, i)), l = e.derived(() => n().activePickerKey);
|
|
7587
7589
|
function o(y) {
|
|
7588
7590
|
n().activePickerKey = n().activePickerKey === y ? null : y;
|
|
7589
7591
|
}
|
|
7590
|
-
var d =
|
|
7591
|
-
e.each(v, 20, () =>
|
|
7592
|
+
var d = t3(), c = e.first_child(d), u = e.child(c), p = e.only_child(u, !0), v = e.sibling(u, 2);
|
|
7593
|
+
e.each(v, 20, () => Wo, (y) => y, (y, S) => {
|
|
7592
7594
|
var w = YI(), x = e.child(w);
|
|
7593
7595
|
let _;
|
|
7594
7596
|
var b = e.sibling(x, 2), T = e.only_child(b, !0);
|
|
@@ -7616,7 +7618,7 @@ function a4(a, t) {
|
|
|
7616
7618
|
e.get(l) && y(h);
|
|
7617
7619
|
}), e.reset(c);
|
|
7618
7620
|
var m = e.sibling(c, 2), g = (y) => {
|
|
7619
|
-
var S =
|
|
7621
|
+
var S = e3(), w = e.child(S), x = e.only_child(w, !0), _ = e.sibling(w, 2);
|
|
7620
7622
|
e.each(_, 21, () => e.get(s), e.index, (b, T) => {
|
|
7621
7623
|
var C = $I();
|
|
7622
7624
|
e.each(C, 21, () => e.get(T), (P) => P.schemeKey, (P, k) => {
|
|
@@ -7636,8 +7638,8 @@ e.delegate([
|
|
|
7636
7638
|
"input",
|
|
7637
7639
|
"change"
|
|
7638
7640
|
]);
|
|
7639
|
-
var
|
|
7640
|
-
function
|
|
7641
|
+
var n3 = e.from_html('<span class="svelte-13dhn05"></span>'), i3 = e.from_html('<button type="button"><span class="pptx-svelte-theme-preset-strip svelte-13dhn05"></span> <small class="svelte-13dhn05"> </small></button>'), r3 = e.from_html('<div class="pptx-svelte-theme-block svelte-13dhn05"><span class="pptx-svelte-theme-heading svelte-13dhn05"> </span> <div class="pptx-svelte-theme-presets svelte-13dhn05"></div></div>');
|
|
7642
|
+
function s3(a, t) {
|
|
7641
7643
|
e.push(t, !0);
|
|
7642
7644
|
const n = oe(), i = [
|
|
7643
7645
|
"accent1",
|
|
@@ -7647,13 +7649,13 @@ function s4(a, t) {
|
|
|
7647
7649
|
"accent5",
|
|
7648
7650
|
"accent6"
|
|
7649
7651
|
];
|
|
7650
|
-
var r =
|
|
7651
|
-
e.each(o, 21, () =>
|
|
7652
|
-
var u =
|
|
7652
|
+
var r = r3(), s = e.child(r), l = e.only_child(s, !0), o = e.sibling(s, 2);
|
|
7653
|
+
e.each(o, 21, () => Mi, (d) => d.name, (d, c) => {
|
|
7654
|
+
var u = i3();
|
|
7653
7655
|
let p;
|
|
7654
7656
|
var v = e.child(u);
|
|
7655
7657
|
e.each(v, 20, () => i, (m) => m, (m, g) => {
|
|
7656
|
-
var y =
|
|
7658
|
+
var y = n3();
|
|
7657
7659
|
e.template_effect(() => e.set_style(y, `background:${e.get(c).colorScheme[g]}`)), e.append(m, y);
|
|
7658
7660
|
}), e.reset(v);
|
|
7659
7661
|
var f = e.sibling(v, 2), h = e.only_child(f, !0);
|
|
@@ -7663,18 +7665,18 @@ function s4(a, t) {
|
|
|
7663
7665
|
}), e.reset(o), e.reset(r), e.template_effect((d) => e.set_text(l, d), [() => n("pptx.themeEditor.presetThemes")]), e.append(a, r), e.pop();
|
|
7664
7666
|
}
|
|
7665
7667
|
e.delegate(["click"]);
|
|
7666
|
-
var qa = e.from_html("<option> </option>"),
|
|
7667
|
-
function
|
|
7668
|
+
var qa = e.from_html("<option> </option>"), l3 = e.from_html('<div class="pptx-svelte-theme-editor svelte-sg4mkv"><label class="pptx-svelte-theme-field svelte-sg4mkv"><span class="svelte-sg4mkv"> </span> <input type="text" class="svelte-sg4mkv"/></label> <!> <!> <div class="pptx-svelte-theme-block svelte-sg4mkv"><span class="pptx-svelte-theme-heading svelte-sg4mkv"> </span> <label class="pptx-svelte-theme-field svelte-sg4mkv"><span class="svelte-sg4mkv"> </span> <select class="svelte-sg4mkv"><!><!></select></label> <label class="pptx-svelte-theme-field svelte-sg4mkv"><span class="svelte-sg4mkv"> </span> <select class="svelte-sg4mkv"><!><!></select></label> <p class="pptx-svelte-theme-samples svelte-sg4mkv"><span> </span> <span aria-hidden="true">|</span> <span> </span></p></div> <div class="pptx-svelte-theme-actions svelte-sg4mkv"><button type="button" class="svelte-sg4mkv"> </button> <button type="button" class="svelte-sg4mkv"> </button></div></div>');
|
|
7669
|
+
function o3(a, t) {
|
|
7668
7670
|
e.push(t, !0);
|
|
7669
7671
|
const n = oe(), i = new XI(() => t.theme, {
|
|
7670
7672
|
onupdatecolorscheme: (Z) => t.onupdatecolorscheme(Z),
|
|
7671
7673
|
onupdatefontscheme: (Z) => t.onupdatefontscheme(Z),
|
|
7672
7674
|
onupdatename: (Z) => t.onupdatename(Z)
|
|
7673
7675
|
});
|
|
7674
|
-
var r =
|
|
7676
|
+
var r = l3(), s = e.child(r), l = e.child(s), o = e.only_child(l, !0), d = e.sibling(l, 2);
|
|
7675
7677
|
e.remove_input_defaults(d), e.reset(s);
|
|
7676
7678
|
var c = e.sibling(s, 2);
|
|
7677
|
-
|
|
7679
|
+
s3(c, {
|
|
7678
7680
|
get activeName() {
|
|
7679
7681
|
return i.name;
|
|
7680
7682
|
},
|
|
@@ -7684,7 +7686,7 @@ function o4(a, t) {
|
|
|
7684
7686
|
onselect: (Z) => i.selectPreset(Z)
|
|
7685
7687
|
});
|
|
7686
7688
|
var u = e.sibling(c, 2);
|
|
7687
|
-
|
|
7689
|
+
a3(u, {
|
|
7688
7690
|
get state() {
|
|
7689
7691
|
return i;
|
|
7690
7692
|
},
|
|
@@ -7749,7 +7751,7 @@ function o4(a, t) {
|
|
|
7749
7751
|
}), e.delegated("click", L, () => i.reset()), e.append(a, r), e.pop();
|
|
7750
7752
|
}
|
|
7751
7753
|
e.delegate(["change", "click"]);
|
|
7752
|
-
var
|
|
7754
|
+
var d3 = e.from_html("<option> </option>"), c3 = e.from_html('<label class="svelte-19enjzl"> <span class="svelte-19enjzl"></span> <select class="svelte-19enjzl"></select></label>'), u3 = e.from_html('<div class="aliases svelte-19enjzl"></div>'), v3 = e.from_html('<label class="inline svelte-19enjzl"><input type="checkbox" class="svelte-19enjzl"/> <span> </span></label> <!>', 1), p3 = e.from_html('<!> <details class="edit-theme svelte-19enjzl"><summary class="svelte-19enjzl"> </summary> <!></details>', 1);
|
|
7753
7755
|
function tl(a, t) {
|
|
7754
7756
|
e.push(t, !0);
|
|
7755
7757
|
const n = e.prop(t, "editor", 7), i = oe();
|
|
@@ -7813,17 +7815,17 @@ function tl(a, t) {
|
|
|
7813
7815
|
for (const P of Ln) C[P] ??= Ia[P];
|
|
7814
7816
|
C[b] = T, v(C);
|
|
7815
7817
|
}
|
|
7816
|
-
var m =
|
|
7817
|
-
var T =
|
|
7818
|
+
var m = p3(), g = e.first_child(m), y = (b) => {
|
|
7819
|
+
var T = v3(), C = e.first_child(T), P = e.child(C);
|
|
7818
7820
|
e.remove_input_defaults(P);
|
|
7819
7821
|
var k = e.sibling(P, 2), E = e.only_child(k, !0);
|
|
7820
7822
|
e.reset(C);
|
|
7821
7823
|
var I = e.sibling(C, 2), M = (R) => {
|
|
7822
|
-
var A =
|
|
7824
|
+
var A = u3();
|
|
7823
7825
|
e.each(A, 20, () => Ln, (z) => z, (z, D) => {
|
|
7824
|
-
var q =
|
|
7825
|
-
e.each(O, 20, () =>
|
|
7826
|
-
var H =
|
|
7826
|
+
var q = c3(), B = e.child(q), N = e.sibling(B), O = e.sibling(N, 2);
|
|
7827
|
+
e.each(O, 20, () => Wo, (U) => U, (U, L) => {
|
|
7828
|
+
var H = d3(), Z = e.only_child(H, !0), j = {};
|
|
7827
7829
|
e.template_effect((K) => {
|
|
7828
7830
|
e.set_text(Z, K), j !== (j = L) && (H.value = (H.__value = j) ?? "");
|
|
7829
7831
|
}, [() => Qe(bx, L, i)]), e.append(U, H);
|
|
@@ -7846,7 +7848,7 @@ function tl(a, t) {
|
|
|
7846
7848
|
var S = e.sibling(g, 2), w = e.child(S), x = e.only_child(w, !0), _ = e.sibling(w, 2);
|
|
7847
7849
|
{
|
|
7848
7850
|
let b = e.derived(() => e.get(o) && !e.get(r));
|
|
7849
|
-
|
|
7851
|
+
o3(_, {
|
|
7850
7852
|
get theme() {
|
|
7851
7853
|
return e.get(s);
|
|
7852
7854
|
},
|
|
@@ -7870,11 +7872,11 @@ function tl(a, t) {
|
|
|
7870
7872
|
e.reset(S), e.template_effect((b) => e.set_text(x, b), [() => i("pptx.themeEditor.title")]), e.append(a, m), e.pop();
|
|
7871
7873
|
}
|
|
7872
7874
|
e.delegate(["change"]);
|
|
7873
|
-
var al = e.from_html("<option> </option>"),
|
|
7874
|
-
function
|
|
7875
|
+
var al = e.from_html("<option> </option>"), h3 = e.from_html('<div class="pptx-svelte-theme-selector svelte-1xzrlh2"><label class="svelte-1xzrlh2"><span> </span> <select class="svelte-1xzrlh2"><!></select></label> <div class="buttons svelte-1xzrlh2"><button type="button" class="svelte-1xzrlh2"> </button> <button type="button" class="svelte-1xzrlh2"> </button></div></div>');
|
|
7876
|
+
function g3(a, t) {
|
|
7875
7877
|
e.push(t, !0);
|
|
7876
7878
|
const n = e.prop(t, "canEdit", 3, !0), i = oe();
|
|
7877
|
-
var r =
|
|
7879
|
+
var r = h3(), s = e.child(r), l = e.child(s), o = e.only_child(l, !0), d = e.sibling(l, 2), c = e.child(d), u = (S) => {
|
|
7878
7880
|
var w = al(), x = e.only_child(w, !0);
|
|
7879
7881
|
w.value = w.__value = "", e.template_effect((_) => e.set_text(x, _), [() => i("pptx.documentProperties.noThemesOption")]), e.append(S, w);
|
|
7880
7882
|
}, p = (S) => {
|
|
@@ -7902,8 +7904,8 @@ function g4(a, t) {
|
|
|
7902
7904
|
]), e.delegated("change", d, (S) => t.onselect(S.currentTarget.value)), e.delegated("click", h, () => t.onapply(t.selectedPath, !1)), e.delegated("click", g, () => t.onapply(t.selectedPath, !0)), e.append(a, r), e.pop();
|
|
7903
7905
|
}
|
|
7904
7906
|
e.delegate(["change", "click"]);
|
|
7905
|
-
var Ra = e.from_html('<div class="pptx-svelte-inspector-section svelte-h1vwhy"><h4 class="svelte-h1vwhy"> </h4> <!></div>'),
|
|
7906
|
-
function
|
|
7907
|
+
var Ra = e.from_html('<div class="pptx-svelte-inspector-section svelte-h1vwhy"><h4 class="svelte-h1vwhy"> </h4> <!></div>'), f3 = e.from_html('<div class="pptx-svelte-inspector-section svelte-h1vwhy"><h4 class="svelte-h1vwhy">Slide</h4> <p class="pptx-svelte-inspector-meta svelte-h1vwhy"> </p></div>'), m3 = e.from_html('<div class="pptx-svelte-inspector-section svelte-h1vwhy"><h4 class="svelte-h1vwhy"> </h4> <!></div> <div class="pptx-svelte-inspector-section svelte-h1vwhy"><h4 class="svelte-h1vwhy"> </h4> <!></div> <!> <!> <!> <!> <div class="pptx-svelte-inspector-section svelte-h1vwhy"><h4 class="svelte-h1vwhy"> </h4> <!></div> <div class="pptx-svelte-inspector-section svelte-h1vwhy"><h4 class="svelte-h1vwhy"> </h4> <!></div> <div class="pptx-svelte-inspector-section svelte-h1vwhy"><!></div> <!>', 1), _3 = e.from_html('<div class="pptx-svelte-inspector-section svelte-h1vwhy"><h4 class="svelte-h1vwhy"> </h4> <p class="pptx-svelte-inspector-meta svelte-h1vwhy"> </p></div>'), b3 = e.from_html('<div class="pptx-svelte-inspector-section svelte-h1vwhy"><!></div>'), x3 = e.from_html("<!> <!>", 1);
|
|
7908
|
+
function y3(a, t) {
|
|
7907
7909
|
e.push(t, !0);
|
|
7908
7910
|
const n = oe(), i = e.derived(() => t.deck !== void 0 && t.editor.editable), r = e.derived(() => t.deck?.canvasSize ?? t.canvasSize), s = e.derived(() => t.editor.slides[t.editor.currentSlideIndex]), l = e.derived(() => t.editor.slideMasters[0]?.themePath), o = e.derived(() => {
|
|
7909
7911
|
const h = t.deck?.themeOptions ?? [];
|
|
@@ -7915,7 +7917,7 @@ function y4(a, t) {
|
|
|
7915
7917
|
let d = e.state(void 0);
|
|
7916
7918
|
const c = e.derived(() => e.get(d) ?? e.get(l) ?? e.get(o)[0]?.path ?? "");
|
|
7917
7919
|
var u = e.comment(), p = e.first_child(u), v = (h) => {
|
|
7918
|
-
var m =
|
|
7920
|
+
var m = m3(), g = e.first_child(m), y = e.child(g), S = e.only_child(y, !0), w = e.sibling(y, 2);
|
|
7919
7921
|
mI(w, {
|
|
7920
7922
|
get properties() {
|
|
7921
7923
|
return t.editor.presentationProperties;
|
|
@@ -7926,7 +7928,7 @@ function y4(a, t) {
|
|
|
7926
7928
|
onupdate: (K) => t.deck.updatePresentationProperties(K)
|
|
7927
7929
|
}), e.reset(g);
|
|
7928
7930
|
var x = e.sibling(g, 2), _ = e.child(x), b = e.only_child(_, !0), T = e.sibling(_, 2);
|
|
7929
|
-
|
|
7931
|
+
g3(T, {
|
|
7930
7932
|
get options() {
|
|
7931
7933
|
return e.get(o);
|
|
7932
7934
|
},
|
|
@@ -8054,7 +8056,7 @@ function y4(a, t) {
|
|
|
8054
8056
|
onupdate: (K) => t.editor.updateTagCollections(K)
|
|
8055
8057
|
}), e.reset(L);
|
|
8056
8058
|
var Z = e.sibling(L, 2), j = (K) => {
|
|
8057
|
-
var G =
|
|
8059
|
+
var G = f3(), J = e.sibling(e.child(G), 2), W = e.only_child(J);
|
|
8058
8060
|
e.reset(G), e.template_effect(() => e.set_text(W, `${e.get(s).elements?.length ?? 0 ?? ""} elements`)), e.append(K, G);
|
|
8059
8061
|
};
|
|
8060
8062
|
e.if(Z, (K) => {
|
|
@@ -8068,8 +8070,8 @@ function y4(a, t) {
|
|
|
8068
8070
|
() => n("pptx.documentProperties.documentHeading")
|
|
8069
8071
|
]), e.append(h, m);
|
|
8070
8072
|
}, f = (h) => {
|
|
8071
|
-
var m =
|
|
8072
|
-
var _ =
|
|
8073
|
+
var m = x3(), g = e.first_child(m), y = (x) => {
|
|
8074
|
+
var _ = _3(), b = e.child(_), T = e.only_child(b, !0), C = e.sibling(b, 2), P = e.only_child(C);
|
|
8073
8075
|
e.reset(_), e.template_effect((k, E) => {
|
|
8074
8076
|
e.set_text(T, k), e.set_text(P, `${t.canvasSize.width ?? ""} × ${t.canvasSize.height ?? ""} px · ${E ?? ""}`);
|
|
8075
8077
|
}, [() => n("pptx.slideSize.title"), () => n("pptx.customShows.slideCount", { count: t.editor.slides.length })]), e.append(x, _);
|
|
@@ -8078,7 +8080,7 @@ function y4(a, t) {
|
|
|
8078
8080
|
t.canvasSize && x(y);
|
|
8079
8081
|
});
|
|
8080
8082
|
var S = e.sibling(g, 2), w = (x) => {
|
|
8081
|
-
var _ =
|
|
8083
|
+
var _ = b3(), b = e.child(_);
|
|
8082
8084
|
tl(b, {
|
|
8083
8085
|
get editor() {
|
|
8084
8086
|
return t.editor;
|
|
@@ -8102,19 +8104,19 @@ function y4(a, t) {
|
|
|
8102
8104
|
t.deck ? h(v) : h(f, -1);
|
|
8103
8105
|
}), e.append(a, u), e.pop();
|
|
8104
8106
|
}
|
|
8105
|
-
var
|
|
8106
|
-
function
|
|
8107
|
+
var w3 = e.from_html('<div class="pptx-svelte-effects-fields svelte-pk2hjx"><label class="svelte-pk2hjx"> <input type="color" class="svelte-pk2hjx"/></label> <label class="svelte-pk2hjx"> <input type="range" min="0" max="100" class="svelte-pk2hjx"/></label> <label class="svelte-pk2hjx"> <input type="number" min="0" max="96" class="svelte-pk2hjx"/></label> <label class="svelte-pk2hjx"> <input type="number" min="0" max="359" class="svelte-pk2hjx"/></label> <label class="svelte-pk2hjx"> <input type="number" min="0" max="200" class="svelte-pk2hjx"/></label> <label class="pptx-svelte-effects-check svelte-pk2hjx"><input type="checkbox" class="svelte-pk2hjx"/> <span> </span></label></div>'), S3 = e.from_html('<div class="pptx-svelte-effects-fields svelte-pk2hjx"><label class="svelte-pk2hjx"> <input type="color" class="svelte-pk2hjx"/></label> <label class="svelte-pk2hjx"> <input type="range" min="0" max="100" class="svelte-pk2hjx"/></label> <label class="svelte-pk2hjx"> <input type="number" min="0" max="96" class="svelte-pk2hjx"/></label> <label class="svelte-pk2hjx"> <input type="number" min="-96" max="96" class="svelte-pk2hjx"/></label> <label class="svelte-pk2hjx"> <input type="number" min="-96" max="96" class="svelte-pk2hjx"/></label></div>'), k3 = e.from_html('<div class="pptx-svelte-effects-fields svelte-pk2hjx"><label class="svelte-pk2hjx"> <input type="color" class="svelte-pk2hjx"/></label> <label class="svelte-pk2hjx"> <input type="number" min="0" max="96" class="svelte-pk2hjx"/></label> <label class="svelte-pk2hjx"> <input type="range" min="0" max="100" class="svelte-pk2hjx"/></label></div>'), T3 = e.from_html('<div class="pptx-svelte-effects-fields svelte-pk2hjx"><label class="svelte-pk2hjx"> <input type="number" min="0" max="96" class="svelte-pk2hjx"/></label> <label class="svelte-pk2hjx"> <input type="number" min="0" max="100" class="svelte-pk2hjx"/></label> <label class="svelte-pk2hjx"> <input type="number" min="0" max="100" class="svelte-pk2hjx"/></label> <label class="svelte-pk2hjx"> <input type="number" min="0" max="96" class="svelte-pk2hjx"/></label> <label class="svelte-pk2hjx"> <input type="number" min="0" max="359" class="svelte-pk2hjx"/></label></div>'), C3 = e.from_html('<div class="pptx-svelte-effects-fields svelte-pk2hjx"><label class="svelte-pk2hjx"> <input type="number" min="0" max="96" step="0.5" class="svelte-pk2hjx"/></label></div>'), E3 = e.from_html('<div class="pptx-svelte-effects svelte-pk2hjx"><label class="pptx-svelte-effects-toggle svelte-pk2hjx"><input type="checkbox"/> <span> </span></label> <!> <label class="pptx-svelte-effects-toggle svelte-pk2hjx"><input type="checkbox"/> <span> </span></label> <!> <label class="pptx-svelte-effects-toggle svelte-pk2hjx"><input type="checkbox"/> <span> </span></label> <!> <label class="pptx-svelte-effects-toggle svelte-pk2hjx"><input type="checkbox"/> <span> </span></label> <!> <label class="pptx-svelte-effects-toggle svelte-pk2hjx"><input type="checkbox"/> <span> </span></label> <!></div>');
|
|
8108
|
+
function P3(a, t) {
|
|
8107
8109
|
e.push(t, !0);
|
|
8108
8110
|
const n = oe(), i = e.derived(() => Im(t.el));
|
|
8109
8111
|
function r(N) {
|
|
8110
8112
|
t.editor.recordRecentColor(N);
|
|
8111
8113
|
}
|
|
8112
|
-
var s =
|
|
8114
|
+
var s = E3(), l = e.child(s), o = e.child(l);
|
|
8113
8115
|
e.remove_input_defaults(o);
|
|
8114
8116
|
var d = e.sibling(o, 2), c = e.only_child(d, !0);
|
|
8115
8117
|
e.reset(l);
|
|
8116
8118
|
var u = e.sibling(l, 2), p = (N) => {
|
|
8117
|
-
var O =
|
|
8119
|
+
var O = w3(), F = e.child(O), U = e.child(F, !0), L = e.sibling(U);
|
|
8118
8120
|
e.remove_input_defaults(L), e.reset(F);
|
|
8119
8121
|
var H = e.sibling(F, 2), Z = e.child(H, !0), j = e.sibling(Z);
|
|
8120
8122
|
e.remove_input_defaults(j), e.reset(H);
|
|
@@ -8152,7 +8154,7 @@ function P4(a, t) {
|
|
|
8152
8154
|
var h = e.sibling(f, 2), m = e.only_child(h, !0);
|
|
8153
8155
|
e.reset(v);
|
|
8154
8156
|
var g = e.sibling(v, 2), y = (N) => {
|
|
8155
|
-
var O =
|
|
8157
|
+
var O = S3(), F = e.child(O), U = e.child(F, !0), L = e.sibling(U);
|
|
8156
8158
|
e.remove_input_defaults(L), e.reset(F);
|
|
8157
8159
|
var H = e.sibling(F, 2), Z = e.child(H, !0), j = e.sibling(Z);
|
|
8158
8160
|
e.remove_input_defaults(j), e.reset(H);
|
|
@@ -8185,7 +8187,7 @@ function P4(a, t) {
|
|
|
8185
8187
|
var x = e.sibling(w, 2), _ = e.only_child(x, !0);
|
|
8186
8188
|
e.reset(S);
|
|
8187
8189
|
var b = e.sibling(S, 2), T = (N) => {
|
|
8188
|
-
var O =
|
|
8190
|
+
var O = k3(), F = e.child(O), U = e.child(F, !0), L = e.sibling(U);
|
|
8189
8191
|
e.remove_input_defaults(L), e.reset(F);
|
|
8190
8192
|
var H = e.sibling(F, 2), Z = e.child(H, !0), j = e.sibling(Z);
|
|
8191
8193
|
e.remove_input_defaults(j), e.reset(H);
|
|
@@ -8210,7 +8212,7 @@ function P4(a, t) {
|
|
|
8210
8212
|
var k = e.sibling(P, 2), E = e.only_child(k, !0);
|
|
8211
8213
|
e.reset(C);
|
|
8212
8214
|
var I = e.sibling(C, 2), M = (N) => {
|
|
8213
|
-
var O =
|
|
8215
|
+
var O = T3(), F = e.child(O), U = e.child(F, !0), L = e.sibling(U);
|
|
8214
8216
|
e.remove_input_defaults(L), e.reset(F);
|
|
8215
8217
|
var H = e.sibling(F, 2), Z = e.child(H, !0), j = e.sibling(Z);
|
|
8216
8218
|
e.remove_input_defaults(j), e.reset(H);
|
|
@@ -8242,7 +8244,7 @@ function P4(a, t) {
|
|
|
8242
8244
|
var z = e.sibling(A, 2), D = e.only_child(z, !0);
|
|
8243
8245
|
e.reset(R);
|
|
8244
8246
|
var q = e.sibling(R, 2), B = (N) => {
|
|
8245
|
-
var O =
|
|
8247
|
+
var O = C3(), F = e.child(O), U = e.child(F, !0), L = e.sibling(U);
|
|
8246
8248
|
e.remove_input_defaults(L), e.reset(F), e.reset(O), e.template_effect((H) => {
|
|
8247
8249
|
e.set_text(U, H), e.set_value(L, e.get(i).softEdge.radius);
|
|
8248
8250
|
}, [() => n("pptx.effects.radius")]), e.delegated("change", L, (H) => t.editor.patchSelected(Qr(t.el, Number(H.currentTarget.value)))), e.append(N, O);
|
|
@@ -8260,23 +8262,23 @@ function P4(a, t) {
|
|
|
8260
8262
|
]), e.delegated("change", o, (N) => t.editor.patchSelected(N.currentTarget.checked ? Jv(t.el, e.get(i).outerShadow) : kw(t.el))), e.delegated("change", f, (N) => t.editor.patchSelected(N.currentTarget.checked ? V1(t.el, e.get(i).innerShadow) : cb(t.el))), e.delegated("change", w, (N) => t.editor.patchSelected(N.currentTarget.checked ? bf(t.el, e.get(i).glow) : Gx(t.el))), e.delegated("change", P, (N) => t.editor.patchSelected(N.currentTarget.checked ? z1(t.el, e.get(i).reflection) : o0(t.el))), e.delegated("change", A, (N) => t.editor.patchSelected(N.currentTarget.checked ? Qr(t.el, e.get(i).softEdge.radius || 2.5) : qb(t.el))), e.append(a, s), e.pop();
|
|
8261
8263
|
}
|
|
8262
8264
|
e.delegate(["change", "input"]);
|
|
8263
|
-
var
|
|
8265
|
+
var I3 = e.from_html('<button type="button" data-pptx-compact=""></button>'), M3 = e.from_html('<div class="pptx-svelte-theme-swatch-grid-empty svelte-re2kkt"></div>'), A3 = e.from_html('<div class="pptx-svelte-theme-swatch-grid-row svelte-re2kkt"></div>'), z3 = e.from_html('<div class="pptx-svelte-theme-swatch-grid svelte-re2kkt"><div class="pptx-svelte-theme-swatch-grid-heading svelte-re2kkt"> </div> <div class="pptx-svelte-theme-swatch-grid-rows svelte-re2kkt"></div></div>');
|
|
8264
8266
|
function bt(a, t) {
|
|
8265
8267
|
e.push(t, !0);
|
|
8266
8268
|
const n = e.prop(t, "disabled", 3, !1), i = oe(), r = e.derived(() => Fx(t.themeColorMap)), s = e.derived(() => gg(e.get(r))), l = e.derived(() => Q_(e.get(r), t.selectedRef, t.selectedHex));
|
|
8267
8269
|
var o = e.comment(), d = e.first_child(o), c = (u) => {
|
|
8268
|
-
var p =
|
|
8270
|
+
var p = z3(), v = e.child(p), f = e.only_child(v, !0), h = e.sibling(v, 2);
|
|
8269
8271
|
e.each(h, 21, () => e.get(s), e.index, (m, g) => {
|
|
8270
|
-
var y =
|
|
8272
|
+
var y = A3();
|
|
8271
8273
|
e.each(y, 21, () => e.get(g), e.index, (S, w) => {
|
|
8272
8274
|
var x = e.comment(), _ = e.first_child(x), b = (C) => {
|
|
8273
|
-
var P =
|
|
8275
|
+
var P = I3();
|
|
8274
8276
|
let k;
|
|
8275
8277
|
e.template_effect(() => {
|
|
8276
8278
|
P.disabled = n(), k = e.set_class(P, 1, "pptx-svelte-theme-swatch-grid-swatch svelte-re2kkt", null, k, { "pptx-svelte-theme-swatch-grid-swatch-selected": e.get(l) === e.get(w) }), e.set_style(P, `background-color:${e.get(w).hex}`), e.set_attribute(P, "title", e.get(w).label), e.set_attribute(P, "aria-label", e.get(w).label);
|
|
8277
8279
|
}), e.delegated("click", P, () => t.onpick(d2(e.get(w)))), e.append(C, P);
|
|
8278
8280
|
}, T = (C) => {
|
|
8279
|
-
var P =
|
|
8281
|
+
var P = M3();
|
|
8280
8282
|
e.append(C, P);
|
|
8281
8283
|
};
|
|
8282
8284
|
e.if(_, (C) => {
|
|
@@ -8290,19 +8292,19 @@ function bt(a, t) {
|
|
|
8290
8292
|
}), e.append(a, o), e.pop();
|
|
8291
8293
|
}
|
|
8292
8294
|
e.delegate(["click"]);
|
|
8293
|
-
var
|
|
8294
|
-
function
|
|
8295
|
+
var D3 = e.from_html('<div class="pptx-svelte-gradient-stop-group svelte-itg99v"><div class="pptx-svelte-gradient-stop svelte-itg99v"><input type="color" class="svelte-itg99v"/> <input type="number" min="0" max="100" class="svelte-itg99v"/> <button type="button" class="pptx-svelte-gradient-remove svelte-itg99v">✕</button></div> <!></div>'), O3 = e.from_html('<div class="pptx-svelte-gradient svelte-itg99v"><div class="pptx-svelte-gradient-type svelte-itg99v"><button type="button"> </button> <button type="button"> </button></div> <label class="pptx-svelte-gradient-angle svelte-itg99v"><span class="svelte-itg99v"> </span> <input type="number" min="0" max="360" class="svelte-itg99v"/></label> <div class="pptx-svelte-gradient-stops svelte-itg99v"></div> <button type="button" class="pptx-svelte-gradient-add svelte-itg99v"> </button></div>');
|
|
8296
|
+
function q3(a, t) {
|
|
8295
8297
|
e.push(t, !0);
|
|
8296
8298
|
const n = oe(), i = e.derived(() => xc(t.el));
|
|
8297
8299
|
function r(k) {
|
|
8298
|
-
t.editor.patchSelected(
|
|
8300
|
+
t.editor.patchSelected(wi(t.el, {
|
|
8299
8301
|
...e.get(i),
|
|
8300
8302
|
type: k
|
|
8301
8303
|
}));
|
|
8302
8304
|
}
|
|
8303
8305
|
function s(k) {
|
|
8304
8306
|
const E = Number(k);
|
|
8305
|
-
Number.isFinite(E) && t.editor.patchSelected(
|
|
8307
|
+
Number.isFinite(E) && t.editor.patchSelected(wi(t.el, {
|
|
8306
8308
|
...e.get(i),
|
|
8307
8309
|
angle: E
|
|
8308
8310
|
}));
|
|
@@ -8328,7 +8330,7 @@ function q4(a, t) {
|
|
|
8328
8330
|
const E = H2(t.el, k);
|
|
8329
8331
|
E && t.editor.patchSelected(E);
|
|
8330
8332
|
}
|
|
8331
|
-
var p =
|
|
8333
|
+
var p = O3(), v = e.child(p), f = e.child(v);
|
|
8332
8334
|
let h;
|
|
8333
8335
|
var m = e.only_child(f, !0), g = e.sibling(f, 2);
|
|
8334
8336
|
let y;
|
|
@@ -8338,7 +8340,7 @@ function q4(a, t) {
|
|
|
8338
8340
|
e.remove_input_defaults(b), e.reset(w);
|
|
8339
8341
|
var T = e.sibling(w, 2);
|
|
8340
8342
|
e.each(T, 21, () => e.get(i).stops, e.index, (k, E, I) => {
|
|
8341
|
-
var M =
|
|
8343
|
+
var M = D3(), R = e.child(M), A = e.child(R);
|
|
8342
8344
|
e.remove_input_defaults(A);
|
|
8343
8345
|
var z = e.sibling(A, 2);
|
|
8344
8346
|
e.remove_input_defaults(z);
|
|
@@ -8376,8 +8378,8 @@ function q4(a, t) {
|
|
|
8376
8378
|
]), e.delegated("click", f, () => r("linear")), e.delegated("click", g, () => r("radial")), e.delegated("change", b, (k) => s(k.currentTarget.value)), e.delegated("click", C, l), e.append(a, p), e.pop();
|
|
8377
8379
|
}
|
|
8378
8380
|
e.delegate(["click", "change"]);
|
|
8379
|
-
var
|
|
8380
|
-
function
|
|
8381
|
+
var R3 = e.from_html('<span class="pptx-svelte-pattern-swatch-fill svelte-k27rfy"></span>'), N3 = e.from_html('<button type="button" role="option"><!></button>'), F3 = e.from_html('<div class="pptx-svelte-pattern svelte-k27rfy"><span class="pptx-svelte-pattern-label svelte-k27rfy"> </span> <div class="pptx-svelte-pattern-grid svelte-k27rfy" role="listbox"></div> <label class="pptx-svelte-field svelte-k27rfy"><span class="pptx-svelte-field-label svelte-k27rfy"> </span> <input type="color" class="svelte-k27rfy"/></label> <label class="pptx-svelte-field svelte-k27rfy"><span class="pptx-svelte-field-label svelte-k27rfy"> </span> <input type="color" class="svelte-k27rfy"/></label></div>');
|
|
8382
|
+
function L3(a, t) {
|
|
8381
8383
|
e.push(t, !0);
|
|
8382
8384
|
const n = oe(), i = e.derived(() => tt(t.el) ? t.el.shapeStyle : void 0), r = e.derived(() => e.get(i)?.fillPatternPreset ?? "pct20"), s = e.derived(() => /^#/.test(e.get(i)?.fillColor ?? "") ? e.get(i)?.fillColor : "#000000"), l = e.derived(() => /^#/.test(e.get(i)?.fillPatternBackgroundColor ?? "") ? e.get(i)?.fillPatternBackgroundColor : "#ffffff");
|
|
8383
8385
|
function o(_) {
|
|
@@ -8390,13 +8392,13 @@ function L4(a, t) {
|
|
|
8390
8392
|
function d(_, b) {
|
|
8391
8393
|
o(_), t.editor.recordRecentColor(b);
|
|
8392
8394
|
}
|
|
8393
|
-
var c =
|
|
8395
|
+
var c = F3(), u = e.child(c), p = e.only_child(u, !0), v = e.sibling(u, 2);
|
|
8394
8396
|
e.each(v, 21, () => bb, (_) => _.value, (_, b) => {
|
|
8395
8397
|
const T = e.derived(() => jv(e.get(b).value, e.get(s), e.get(l)));
|
|
8396
|
-
var C =
|
|
8398
|
+
var C = N3();
|
|
8397
8399
|
let P;
|
|
8398
8400
|
var k = e.child(C), E = (I) => {
|
|
8399
|
-
var M =
|
|
8401
|
+
var M = R3();
|
|
8400
8402
|
e.template_effect((R) => e.set_style(M, R), [() => `background-image:url('data:image/svg+xml;utf8,${encodeURIComponent(e.get(T))}')`]), e.append(I, M);
|
|
8401
8403
|
};
|
|
8402
8404
|
e.if(k, (I) => {
|
|
@@ -8418,14 +8420,14 @@ function L4(a, t) {
|
|
|
8418
8420
|
]), e.delegated("change", g, (_) => d({ fillColor: _.currentTarget.value }, _.currentTarget.value)), e.delegated("change", x, (_) => d({ fillPatternBackgroundColor: _.currentTarget.value }, _.currentTarget.value)), e.append(a, c), e.pop();
|
|
8419
8421
|
}
|
|
8420
8422
|
e.delegate(["click", "change"]);
|
|
8421
|
-
var
|
|
8423
|
+
var B3 = e.from_html('<button type="button" class="pptx-svelte-recent-colors-swatch svelte-1wviede" data-pptx-compact=""></button>'), j3 = e.from_html('<div class="pptx-svelte-recent-colors svelte-1wviede" data-testid="pptx-color-recent"><span class="svelte-1wviede"> </span> <div class="pptx-svelte-recent-colors-swatches svelte-1wviede"></div></div>');
|
|
8422
8424
|
function tn(a, t) {
|
|
8423
8425
|
e.push(t, !0);
|
|
8424
8426
|
const n = e.prop(t, "disabled", 3, !1), i = oe();
|
|
8425
8427
|
var r = e.comment(), s = e.first_child(r), l = (o) => {
|
|
8426
|
-
var d =
|
|
8428
|
+
var d = j3(), c = e.child(d), u = e.only_child(c, !0), p = e.sibling(c, 2);
|
|
8427
8429
|
e.each(p, 20, () => t.colors, (v) => v, (v, f) => {
|
|
8428
|
-
var h =
|
|
8430
|
+
var h = B3();
|
|
8429
8431
|
e.template_effect(() => {
|
|
8430
8432
|
e.set_style(h, `background-color:${f}`), e.set_attribute(h, "title", f), e.set_attribute(h, "aria-label", `Recent ${f}`), h.disabled = n();
|
|
8431
8433
|
}), e.delegated("click", h, () => t.onselect(f)), e.append(v, h);
|
|
@@ -8438,15 +8440,15 @@ function tn(a, t) {
|
|
|
8438
8440
|
}), e.append(a, r), e.pop();
|
|
8439
8441
|
}
|
|
8440
8442
|
e.delegate(["click"]);
|
|
8441
|
-
var
|
|
8442
|
-
function
|
|
8443
|
+
var U3 = e.from_html('<div class="pptx-svelte-inspector-color-row svelte-18k0lox"><label class="pptx-svelte-inspector-color svelte-18k0lox"><span class="svelte-18k0lox"> </span> <input type="color" class="svelte-18k0lox"/> <!> <!></label> <label class="pptx-svelte-inspector-color svelte-18k0lox"><span class="svelte-18k0lox"> </span> <input type="color" class="svelte-18k0lox"/> <!> <!></label></div> <label class="pptx-svelte-field svelte-18k0lox"><span class="pptx-svelte-field-label svelte-18k0lox"> <b class="svelte-18k0lox"> </b></span> <input type="range" min="0" max="1" step="0.01" class="svelte-18k0lox"/></label> <label class="pptx-svelte-field svelte-18k0lox"><span class="pptx-svelte-field-label svelte-18k0lox"> <b class="svelte-18k0lox"> </b></span> <input type="range" min="0" max="1" step="0.01" class="svelte-18k0lox"/></label> <label class="pptx-svelte-field-checkbox svelte-18k0lox"><input type="checkbox"/> <span> </span></label> <!> <label class="pptx-svelte-field-checkbox svelte-18k0lox"><input type="checkbox"/> <span> </span></label> <!>', 1);
|
|
8444
|
+
function H3(a, t) {
|
|
8443
8445
|
e.push(t, !0);
|
|
8444
8446
|
const n = oe(), i = e.derived(() => Sd(t.el)), r = e.derived(() => hc(t.el)), s = e.derived(() => qT(t.el)), l = e.derived(() => NT(t.el)), o = e.derived(() => g_(t.el)), d = e.derived(() => tt(t.el) ? t.el.shapeStyle?.fillMode === "pattern" : !1);
|
|
8445
8447
|
function c(re) {
|
|
8446
8448
|
return `${Math.round(re * 100)}%`;
|
|
8447
8449
|
}
|
|
8448
8450
|
function u(re) {
|
|
8449
|
-
re ? t.editor.patchSelected(
|
|
8451
|
+
re ? t.editor.patchSelected(wi(t.el, xc(t.el))) : t.editor.patchSelected(ha(t.el, e.get(i)));
|
|
8450
8452
|
}
|
|
8451
8453
|
function p(re) {
|
|
8452
8454
|
t.editor.patchSelected(ha(t.el, re, void 0)), t.editor.recordRecentColor(re);
|
|
@@ -8455,10 +8457,10 @@ function H4(a, t) {
|
|
|
8455
8457
|
t.editor.patchSelected(ha(t.el, re.hex, re.ref)), t.editor.recordRecentColor(re.hex);
|
|
8456
8458
|
}
|
|
8457
8459
|
function f(re) {
|
|
8458
|
-
t.editor.patchSelected(
|
|
8460
|
+
t.editor.patchSelected(Hi(t.el, re, void 0)), t.editor.recordRecentColor(re);
|
|
8459
8461
|
}
|
|
8460
8462
|
function h(re) {
|
|
8461
|
-
t.editor.patchSelected(
|
|
8463
|
+
t.editor.patchSelected(Hi(t.el, re.hex, re.ref)), t.editor.recordRecentColor(re.hex);
|
|
8462
8464
|
}
|
|
8463
8465
|
const m = e.derived(() => tt(t.el) ? t.el.shapeStyle?.fillColorRef : void 0), g = e.derived(() => tt(t.el) ? t.el.shapeStyle?.strokeColorRef : void 0);
|
|
8464
8466
|
function y(re) {
|
|
@@ -8473,7 +8475,7 @@ function H4(a, t) {
|
|
|
8473
8475
|
} });
|
|
8474
8476
|
} else t.editor.patchSelected(ha(t.el, e.get(i)));
|
|
8475
8477
|
}
|
|
8476
|
-
var S =
|
|
8478
|
+
var S = U3(), w = e.first_child(S), x = e.child(w), _ = e.child(x), b = e.only_child(_, !0), T = e.sibling(_, 2);
|
|
8477
8479
|
e.remove_input_defaults(T);
|
|
8478
8480
|
var C = e.sibling(T, 2);
|
|
8479
8481
|
bt(C, {
|
|
@@ -8530,7 +8532,7 @@ function H4(a, t) {
|
|
|
8530
8532
|
var J = e.sibling(G, 2), W = e.only_child(J, !0);
|
|
8531
8533
|
e.reset(K);
|
|
8532
8534
|
var Y = e.sibling(K, 2), V = (re) => {
|
|
8533
|
-
|
|
8535
|
+
q3(re, {
|
|
8534
8536
|
get editor() {
|
|
8535
8537
|
return t.editor;
|
|
8536
8538
|
},
|
|
@@ -8547,7 +8549,7 @@ function H4(a, t) {
|
|
|
8547
8549
|
var $ = e.sibling(X, 2), te = e.only_child($, !0);
|
|
8548
8550
|
e.reset(Q);
|
|
8549
8551
|
var ne = e.sibling(Q, 2), ae = (re) => {
|
|
8550
|
-
|
|
8552
|
+
L3(re, {
|
|
8551
8553
|
get editor() {
|
|
8552
8554
|
return t.editor;
|
|
8553
8555
|
},
|
|
@@ -8574,21 +8576,21 @@ function H4(a, t) {
|
|
|
8574
8576
|
]), e.delegated("change", T, (re) => p(re.currentTarget.value)), e.delegated("change", M, (re) => f(re.currentTarget.value)), e.delegated("input", O, (re) => t.editor.patchSelected(RT(t.el, Number(re.currentTarget.value)))), e.delegated("input", j, (re) => t.editor.patchSelected(FT(t.el, Number(re.currentTarget.value)))), e.delegated("change", G, (re) => u(re.currentTarget.checked)), e.delegated("change", X, (re) => y(re.currentTarget.checked)), e.append(a, S), e.pop();
|
|
8575
8577
|
}
|
|
8576
8578
|
e.delegate(["change", "input"]);
|
|
8577
|
-
var
|
|
8578
|
-
function
|
|
8579
|
+
var V3 = e.from_html('<button type="button" class="svelte-grn4ko"></button>'), K3 = e.from_html('<div class="pptx-svelte-quick-styles svelte-grn4ko"><span class="pptx-svelte-quick-styles-label svelte-grn4ko"> </span> <div class="pptx-svelte-quick-styles-grid svelte-grn4ko"></div></div>');
|
|
8580
|
+
function W3(a, t) {
|
|
8579
8581
|
e.push(t, !0);
|
|
8580
8582
|
const n = oe(), i = e.derived(() => t.editor.editable);
|
|
8581
|
-
var r =
|
|
8582
|
-
e.each(o, 21, () =>
|
|
8583
|
-
var u =
|
|
8583
|
+
var r = K3(), s = e.child(r), l = e.only_child(s, !0), o = e.sibling(s, 2);
|
|
8584
|
+
e.each(o, 21, () => td, (d) => d.name, (d, c) => {
|
|
8585
|
+
var u = V3();
|
|
8584
8586
|
e.template_effect((p) => {
|
|
8585
8587
|
u.disabled = !e.get(i), e.set_attribute(u, "title", e.get(c).name), e.set_attribute(u, "aria-label", e.get(c).name), e.set_style(u, p);
|
|
8586
8588
|
}, [() => Eb(e.get(c))]), e.delegated("click", u, () => t.editor.applyElementPatch(t.el.id, Ny(t.el, e.get(c).style))), e.append(d, u);
|
|
8587
8589
|
}), e.reset(o), e.reset(r), e.template_effect((d) => e.set_text(l, d), [() => n("pptx.shape.quickStyles")]), e.append(a, r), e.pop();
|
|
8588
8590
|
}
|
|
8589
8591
|
e.delegate(["click"]);
|
|
8590
|
-
var
|
|
8591
|
-
function
|
|
8592
|
+
var Z3 = e.from_html("<option> </option>"), G3 = e.from_html('<label class="svelte-kk65t1"> <select class="svelte-kk65t1"></select></label>'), X3 = e.from_html('<div class="grid svelte-kk65t1"></div>');
|
|
8593
|
+
function Y3(a, t) {
|
|
8592
8594
|
e.push(t, !0);
|
|
8593
8595
|
const n = oe(), i = e.derived(() => dt(t.el, "changeArrowheads"));
|
|
8594
8596
|
function r(l, o) {
|
|
@@ -8597,11 +8599,11 @@ function Y4(a, t) {
|
|
|
8597
8599
|
...Cm(l, o)
|
|
8598
8600
|
} });
|
|
8599
8601
|
}
|
|
8600
|
-
var s =
|
|
8602
|
+
var s = X3();
|
|
8601
8603
|
e.each(s, 21, () => wb, (l) => l.styleKey, (l, o) => {
|
|
8602
|
-
var d =
|
|
8604
|
+
var d = G3(), c = e.child(d, !0), u = e.sibling(c);
|
|
8603
8605
|
e.each(u, 20, () => e.get(o).values, (v) => v, (v, f) => {
|
|
8604
|
-
var h =
|
|
8606
|
+
var h = Z3(), m = e.only_child(h, !0), g = {};
|
|
8605
8607
|
e.template_effect((y) => {
|
|
8606
8608
|
e.set_text(m, y), g !== (g = f) && (h.value = (h.__value = g) ?? "");
|
|
8607
8609
|
}, [() => Qe(e.get(o).optionLabelKeys, f, n)]), e.append(v, h);
|
|
@@ -8617,8 +8619,8 @@ function Y4(a, t) {
|
|
|
8617
8619
|
}), e.reset(s), e.append(a, s), e.pop();
|
|
8618
8620
|
}
|
|
8619
8621
|
e.delegate(["change"]);
|
|
8620
|
-
var
|
|
8621
|
-
function
|
|
8622
|
+
var J3 = e.from_html("<option> </option>"), Q3 = e.from_html('<label class="svelte-1xnp05p">Shape type<select aria-label="Shape type" class="svelte-1xnp05p"></select></label>'), $3 = e.from_html('<button type="button" class="svelte-1xnp05p"></button>'), e4 = e.from_html('<!> <div class="styles svelte-1xnp05p" aria-label="Quick styles"></div> <button type="button" class="svelte-1xnp05p">Eyedropper</button> <!>', 1);
|
|
8623
|
+
function t4(a, t) {
|
|
8622
8624
|
e.push(t, !0);
|
|
8623
8625
|
const n = e.derived(() => "shapeStyle" in t.el ? t.el.shapeStyle : void 0), i = e.derived(() => "shapeType" in t.el ? t.el.shapeType : void 0);
|
|
8624
8626
|
function r(h) {
|
|
@@ -8637,10 +8639,10 @@ function t3(a, t) {
|
|
|
8637
8639
|
fillColor: (await new h().open()).sRGBHex
|
|
8638
8640
|
});
|
|
8639
8641
|
}
|
|
8640
|
-
var o =
|
|
8641
|
-
var m =
|
|
8642
|
+
var o = e4(), d = e.first_child(o), c = (h) => {
|
|
8643
|
+
var m = Q3(), g = e.sibling(e.child(m));
|
|
8642
8644
|
e.each(g, 21, () => Ht, e.index, (S, w) => {
|
|
8643
|
-
var x =
|
|
8645
|
+
var x = J3(), _ = e.only_child(x, !0), b = {};
|
|
8644
8646
|
e.template_effect(() => {
|
|
8645
8647
|
e.set_text(_, e.get(w).label), b !== (b = e.get(w).type) && (x.value = (x.__value = b) ?? "");
|
|
8646
8648
|
}), e.append(S, x);
|
|
@@ -8654,8 +8656,8 @@ function t3(a, t) {
|
|
|
8654
8656
|
t.el.type === "shape" && h(c);
|
|
8655
8657
|
});
|
|
8656
8658
|
var u = e.sibling(d, 2);
|
|
8657
|
-
e.each(u, 21, () =>
|
|
8658
|
-
var g = $
|
|
8659
|
+
e.each(u, 21, () => td, e.index, (h, m) => {
|
|
8660
|
+
var g = $3();
|
|
8659
8661
|
e.template_effect(() => {
|
|
8660
8662
|
e.set_attribute(g, "title", e.get(m).name), e.set_style(g, `--fill:${e.get(m).style.fillColor ?? "transparent"};--stroke:${e.get(m).style.strokeColor ?? "transparent"}`);
|
|
8661
8663
|
}), e.delegated("click", g, () => r(e.get(m).style)), e.append(h, g);
|
|
@@ -8663,7 +8665,7 @@ function t3(a, t) {
|
|
|
8663
8665
|
var p = e.sibling(u, 2);
|
|
8664
8666
|
p.disabled = typeof window > "u" || !("EyeDropper" in window);
|
|
8665
8667
|
var v = e.sibling(p, 2), f = (h) => {
|
|
8666
|
-
|
|
8668
|
+
Y3(h, {
|
|
8667
8669
|
get editor() {
|
|
8668
8670
|
return t.editor;
|
|
8669
8671
|
},
|
|
@@ -8682,12 +8684,12 @@ function t3(a, t) {
|
|
|
8682
8684
|
}), e.append(a, o), e.pop();
|
|
8683
8685
|
}
|
|
8684
8686
|
e.delegate(["change", "click"]);
|
|
8685
|
-
var
|
|
8686
|
-
function
|
|
8687
|
+
var a4 = e.from_html('<div class="pptx-svelte-inspector-section"><h4> </h4> <!> <!> <!></div> <div class="pptx-svelte-inspector-section"><h4> </h4> <!></div>', 1);
|
|
8688
|
+
function n4(a, t) {
|
|
8687
8689
|
e.push(t, !0);
|
|
8688
8690
|
const n = oe();
|
|
8689
|
-
var i =
|
|
8690
|
-
|
|
8691
|
+
var i = a4(), r = e.first_child(i), s = e.child(r), l = e.only_child(s, !0), o = e.sibling(s, 2), d = (m) => {
|
|
8692
|
+
W3(m, {
|
|
8691
8693
|
get editor() {
|
|
8692
8694
|
return t.editor;
|
|
8693
8695
|
},
|
|
@@ -8700,7 +8702,7 @@ function n3(a, t) {
|
|
|
8700
8702
|
t.canQuickStyle && m(d);
|
|
8701
8703
|
});
|
|
8702
8704
|
var c = e.sibling(o, 2);
|
|
8703
|
-
|
|
8705
|
+
t4(c, {
|
|
8704
8706
|
get editor() {
|
|
8705
8707
|
return t.editor;
|
|
8706
8708
|
},
|
|
@@ -8709,7 +8711,7 @@ function n3(a, t) {
|
|
|
8709
8711
|
}
|
|
8710
8712
|
});
|
|
8711
8713
|
var u = e.sibling(c, 2);
|
|
8712
|
-
|
|
8714
|
+
H3(u, {
|
|
8713
8715
|
get editor() {
|
|
8714
8716
|
return t.editor;
|
|
8715
8717
|
},
|
|
@@ -8718,7 +8720,7 @@ function n3(a, t) {
|
|
|
8718
8720
|
}
|
|
8719
8721
|
}), e.reset(r);
|
|
8720
8722
|
var p = e.sibling(r, 2), v = e.child(p), f = e.only_child(v, !0), h = e.sibling(v, 2);
|
|
8721
|
-
|
|
8723
|
+
P3(h, {
|
|
8722
8724
|
get editor() {
|
|
8723
8725
|
return t.editor;
|
|
8724
8726
|
},
|
|
@@ -8729,8 +8731,8 @@ function n3(a, t) {
|
|
|
8729
8731
|
e.set_text(l, m), e.set_text(f, g);
|
|
8730
8732
|
}, [() => n("pptx.inspector.fillStroke"), () => n("pptx.inspector.effects")]), e.append(a, i), e.pop();
|
|
8731
8733
|
}
|
|
8732
|
-
var
|
|
8733
|
-
function
|
|
8734
|
+
var i4 = e.from_html('<button type="button"> </button>'), nl = e.from_html("<option> </option>"), r4 = e.from_html('<div><button type="button" class="svelte-1ysxmga"> </button> <input type="text" data-testid="smartart-node-text" class="svelte-1ysxmga"/></div>'), s4 = e.from_html('<div class="pptx-svelte-smartart-style svelte-1ysxmga"><label class="svelte-1ysxmga">Fill<input type="color" class="svelte-1ysxmga"/></label><label class="svelte-1ysxmga">Font<input type="color" class="svelte-1ysxmga"/></label><button type="button">Bold</button><button type="button">Italic</button></div>'), l4 = e.from_html('<span class="pptx-svelte-smartart-label svelte-1ysxmga"> </span> <div class="pptx-svelte-smartart-layouts svelte-1ysxmga"></div> <label class="pptx-svelte-smartart-field svelte-1ysxmga"><span> </span> <select data-testid="smartart-color-scheme" class="svelte-1ysxmga"></select></label> <label class="pptx-svelte-smartart-field svelte-1ysxmga"><span>Diagram style</span><select aria-label="Diagram style" class="svelte-1ysxmga"></select></label> <span class="pptx-svelte-smartart-label svelte-1ysxmga"> </span> <div class="pptx-svelte-smartart-nodes svelte-1ysxmga"></div> <div class="pptx-svelte-smartart-actions svelte-1ysxmga"><button type="button" class="svelte-1ysxmga">Add</button><button type="button" class="svelte-1ysxmga">Remove</button><button type="button" class="svelte-1ysxmga">Up</button><button type="button" class="svelte-1ysxmga">Down</button><button type="button" class="svelte-1ysxmga">Promote</button><button type="button" class="svelte-1ysxmga">Demote</button></div> <!>', 1);
|
|
8735
|
+
function o4(a, t) {
|
|
8734
8736
|
e.push(t, !0);
|
|
8735
8737
|
const n = oe(), i = e.derived(() => t.el.smartArtData);
|
|
8736
8738
|
let r = e.state(null);
|
|
@@ -8762,7 +8764,7 @@ function o3(a, t) {
|
|
|
8762
8764
|
width: t.el.width,
|
|
8763
8765
|
height: t.el.height
|
|
8764
8766
|
};
|
|
8765
|
-
t.editor.applyElementPatch(t.el.id, { smartArtData:
|
|
8767
|
+
t.editor.applyElementPatch(t.el.id, { smartArtData: Pi(x, t.el.id, _) });
|
|
8766
8768
|
}
|
|
8767
8769
|
function v(x) {
|
|
8768
8770
|
e.get(i) && p({
|
|
@@ -8804,9 +8806,9 @@ function o3(a, t) {
|
|
|
8804
8806
|
}
|
|
8805
8807
|
}
|
|
8806
8808
|
var y = e.comment(), S = e.first_child(y), w = (x) => {
|
|
8807
|
-
var _ =
|
|
8809
|
+
var _ = l4(), b = e.first_child(_), T = e.only_child(b, !0), C = e.sibling(b, 2);
|
|
8808
8810
|
e.each(C, 21, () => K_, e.index, (G, J) => {
|
|
8809
|
-
var W =
|
|
8811
|
+
var W = i4();
|
|
8810
8812
|
let Y;
|
|
8811
8813
|
var V = e.only_child(W, !0);
|
|
8812
8814
|
e.template_effect((Q) => {
|
|
@@ -8833,7 +8835,7 @@ function o3(a, t) {
|
|
|
8833
8835
|
e.init_select(A), e.reset(R);
|
|
8834
8836
|
var D = e.sibling(R, 2), q = e.only_child(D, !0), B = e.sibling(D, 2);
|
|
8835
8837
|
e.each(B, 23, () => e.get(i).nodes, (G) => G.id, (G, J, W) => {
|
|
8836
|
-
var Y =
|
|
8838
|
+
var Y = r4();
|
|
8837
8839
|
let V;
|
|
8838
8840
|
var Q = e.child(Y), X = e.only_child(Q, !0), $ = e.sibling(Q, 2);
|
|
8839
8841
|
e.remove_input_defaults($), e.reset(Y), e.template_effect((te) => {
|
|
@@ -8843,7 +8845,7 @@ function o3(a, t) {
|
|
|
8843
8845
|
var N = e.sibling(B, 2), O = e.child(N), F = e.sibling(O), U = e.sibling(F), L = e.sibling(U), H = e.sibling(L), Z = e.sibling(H);
|
|
8844
8846
|
e.reset(N);
|
|
8845
8847
|
var j = e.sibling(N, 2), K = (G) => {
|
|
8846
|
-
var J =
|
|
8848
|
+
var J = s4(), W = e.child(J), Y = e.sibling(e.child(W));
|
|
8847
8849
|
e.remove_input_defaults(Y), e.reset(W);
|
|
8848
8850
|
var V = e.sibling(W), Q = e.sibling(e.child(V));
|
|
8849
8851
|
e.remove_input_defaults(Q), e.reset(V);
|
|
@@ -8867,15 +8869,15 @@ function o3(a, t) {
|
|
|
8867
8869
|
]), e.delegated("change", I, (G) => u(G.currentTarget.value)), e.delegated("change", A, (G) => v(G.currentTarget.value)), e.delegated("click", O, () => {
|
|
8868
8870
|
e.get(i) && p(ec(e.get(i), "New item", e.get(r) ?? void 0));
|
|
8869
8871
|
}), e.delegated("click", F, () => {
|
|
8870
|
-
e.get(i) && e.get(r) && (p(
|
|
8872
|
+
e.get(i) && e.get(r) && (p(Ko(e.get(i), e.get(r))), e.set(r, null));
|
|
8871
8873
|
}), e.delegated("click", U, () => {
|
|
8872
|
-
e.get(i) && e.get(r) && p(
|
|
8874
|
+
e.get(i) && e.get(r) && p(Ni(e.get(i), e.get(r), -1));
|
|
8873
8875
|
}), e.delegated("click", L, () => {
|
|
8874
|
-
e.get(i) && e.get(r) && p(
|
|
8876
|
+
e.get(i) && e.get(r) && p(Ni(e.get(i), e.get(r), 1));
|
|
8875
8877
|
}), e.delegated("click", H, () => {
|
|
8876
|
-
e.get(i) && e.get(r) && p(
|
|
8878
|
+
e.get(i) && e.get(r) && p(ad(e.get(i), e.get(r)));
|
|
8877
8879
|
}), e.delegated("click", Z, () => {
|
|
8878
|
-
e.get(i) && e.get(r) && p(
|
|
8880
|
+
e.get(i) && e.get(r) && p(bd(e.get(i), e.get(r)));
|
|
8879
8881
|
}), e.append(x, _);
|
|
8880
8882
|
};
|
|
8881
8883
|
e.if(S, (x) => {
|
|
@@ -8887,8 +8889,8 @@ e.delegate([
|
|
|
8887
8889
|
"change",
|
|
8888
8890
|
"keydown"
|
|
8889
8891
|
]);
|
|
8890
|
-
var
|
|
8891
|
-
function
|
|
8892
|
+
var d4 = e.from_html('<button type="button" class="bookmark svelte-103ls4g" data-pptx-compact=""></button>'), c4 = e.from_html('<div class="times svelte-103ls4g"><span> </span><span> </span></div> <div class="timeline svelte-103ls4g" role="slider" aria-label="Media trim timeline" aria-valuemin="0" tabindex="0"><div class="range svelte-103ls4g"></div> <div class="playhead svelte-103ls4g"></div> <button type="button" class="handle start svelte-103ls4g" aria-label="Trim start" data-pptx-compact=""></button> <button type="button" class="handle end svelte-103ls4g" aria-label="Trim end" data-pptx-compact=""></button> <!></div>', 1);
|
|
8893
|
+
function u4(a, t) {
|
|
8892
8894
|
e.push(t, !0);
|
|
8893
8895
|
let n = e.state(void 0), i = e.state(null);
|
|
8894
8896
|
const r = e.derived(() => Math.max(t.duration, 0.1)), s = e.derived(() => t.endMs ?? 0), l = e.derived(() => Sb(t.duration, e.get(s))), o = e.derived(() => Ay(t.duration, t.startMs, e.get(s), t.currentTime));
|
|
@@ -8904,13 +8906,13 @@ function u3(a, t) {
|
|
|
8904
8906
|
function u(T) {
|
|
8905
8907
|
T.key !== "ArrowLeft" && T.key !== "ArrowRight" || (T.preventDefault(), t.onseek(Math.max(0, Math.min(t.duration, t.currentTime + (T.key === "ArrowRight" ? 0.5 : -0.5)))));
|
|
8906
8908
|
}
|
|
8907
|
-
var p =
|
|
8909
|
+
var p = c4();
|
|
8908
8910
|
e.event("pointermove", e.window, c), e.event("pointerup", e.window, () => e.set(i, null));
|
|
8909
8911
|
var v = e.first_child(p), f = e.child(v), h = e.only_child(f), m = e.sibling(f), g = e.only_child(m);
|
|
8910
8912
|
e.reset(v);
|
|
8911
8913
|
var y = e.sibling(v, 2), S = e.child(y), w = e.sibling(S, 2), x = e.sibling(w, 2), _ = e.sibling(x, 2), b = e.sibling(_, 2);
|
|
8912
8914
|
e.each(b, 17, () => t.bookmarks, e.index, (T, C) => {
|
|
8913
|
-
var P =
|
|
8915
|
+
var P = d4();
|
|
8914
8916
|
e.template_effect(() => {
|
|
8915
8917
|
e.set_attribute(P, "title", e.get(C).label), e.set_attribute(P, "aria-label", e.get(C).label), e.set_style(P, `left:${e.get(C).time / e.get(r) * 100}%`);
|
|
8916
8918
|
}), e.delegated("click", P, (k) => {
|
|
@@ -8929,13 +8931,13 @@ e.delegate([
|
|
|
8929
8931
|
"keydown",
|
|
8930
8932
|
"pointerdown"
|
|
8931
8933
|
]);
|
|
8932
|
-
function
|
|
8934
|
+
function v4(a, t) {
|
|
8933
8935
|
return a.mediaData ?? (a.mediaPath ? t.get(a.mediaPath) : void 0);
|
|
8934
8936
|
}
|
|
8935
|
-
var
|
|
8936
|
-
function
|
|
8937
|
+
var p4 = e.from_html("<track/>"), h4 = e.from_html('<video preload="metadata" class="svelte-ffwgdm"><track kind="captions" label="Captions" src="data:text/vtt;charset=utf-8,WEBVTT"/><!></video>', 2), g4 = e.from_html('<audio preload="metadata" class="svelte-ffwgdm"></audio>'), f4 = e.from_html('<div class="preview svelte-ffwgdm"><!><button type="button" class="svelte-ffwgdm"> </button><span> </span><!></div>'), m4 = e.from_html("<option> </option>"), _4 = e.from_html('<div class="row svelte-ffwgdm"><input class="svelte-ffwgdm"/><input type="number" min="0" step="0.1" class="svelte-ffwgdm"/><button aria-label="Remove bookmark" class="svelte-ffwgdm">×</button></div>'), b4 = e.from_html('<fieldset class="svelte-ffwgdm"><div class="grid svelte-ffwgdm"><label class="svelte-ffwgdm">Label<input class="svelte-ffwgdm"/></label><label class="svelte-ffwgdm">Language<input class="svelte-ffwgdm"/></label><label class="svelte-ffwgdm">Kind<select aria-label="Kind" class="svelte-ffwgdm"><option>subtitles</option><option>captions</option><option>descriptions</option></select></label><label class="inline svelte-ffwgdm"><input type="checkbox" class="svelte-ffwgdm"/>Default</label></div><label class="svelte-ffwgdm">Source<input placeholder="captions.vtt or data URL" class="svelte-ffwgdm"/></label><label class="svelte-ffwgdm">Inline WebVTT<textarea rows="4" class="svelte-ffwgdm"></textarea></label><button class="svelte-ffwgdm">Remove track</button></fieldset>'), x4 = e.from_html('<div class="section svelte-ffwgdm"><!> <div class="checks svelte-ffwgdm"><label class="svelte-ffwgdm"><input type="checkbox" class="svelte-ffwgdm"/>Auto play</label><label class="svelte-ffwgdm"><input type="checkbox" class="svelte-ffwgdm"/>Loop</label><label class="svelte-ffwgdm"><input type="checkbox" class="svelte-ffwgdm"/>Full screen</label><label class="svelte-ffwgdm"><input type="checkbox" class="svelte-ffwgdm"/>Across slides</label><label class="svelte-ffwgdm"><input type="checkbox" class="svelte-ffwgdm"/>Hide when stopped</label></div> <label class="svelte-ffwgdm">Volume <input type="range" min="0" max="1" step="0.05" class="svelte-ffwgdm"/></label> <label class="svelte-ffwgdm">Speed <select aria-label="Speed" class="svelte-ffwgdm"></select></label> <div class="grid svelte-ffwgdm"><label class="svelte-ffwgdm">Trim start ms<input type="number" min="0" class="svelte-ffwgdm"/></label><label class="svelte-ffwgdm">Trim end ms<input type="number" min="0" class="svelte-ffwgdm"/></label><label class="svelte-ffwgdm">Fade in seconds<input type="number" min="0" step="0.1" class="svelte-ffwgdm"/></label><label class="svelte-ffwgdm">Fade out seconds<input type="number" min="0" step="0.1" class="svelte-ffwgdm"/></label></div> <details open="" class="svelte-ffwgdm"><summary class="svelte-ffwgdm">Bookmarks</summary><!><div class="row svelte-ffwgdm"><input placeholder="Bookmark label" class="svelte-ffwgdm"/><input type="number" min="0" step="0.1" class="svelte-ffwgdm"/><button aria-label="Add bookmark" class="svelte-ffwgdm">+</button></div></details> <details open="" class="svelte-ffwgdm"><summary class="svelte-ffwgdm">Caption tracks</summary><!><button class="svelte-ffwgdm">Add caption track</button></details></div>');
|
|
8938
|
+
function y4(a, t) {
|
|
8937
8939
|
e.push(t, !0);
|
|
8938
|
-
const n = e.prop(t, "mediaDataUrls", 19, () => /* @__PURE__ */ new Map()), i = e.derived(() => t.editor.selectedElement?.type === "media" ? t.editor.selectedElement : void 0), r = e.derived(() => e.get(i) ?
|
|
8940
|
+
const n = e.prop(t, "mediaDataUrls", 19, () => /* @__PURE__ */ new Map()), i = e.derived(() => t.editor.selectedElement?.type === "media" ? t.editor.selectedElement : void 0), r = e.derived(() => e.get(i) ? v4(e.get(i), n()) : void 0);
|
|
8939
8941
|
let s = e.state(void 0), l = e.state(0), o = e.state(0), d = e.state(!1), c = e.state(""), u = e.state(0);
|
|
8940
8942
|
const p = e.derived(() => e.get(l) * 1e3), v = e.derived(() => e.get(i) ? P2(e.get(p), e.get(i).trimEndMs ?? 0) : 0);
|
|
8941
8943
|
function f(b) {
|
|
@@ -8974,11 +8976,11 @@ function y3(a, t) {
|
|
|
8974
8976
|
e.get(s) && (e.get(s).currentTime = b), e.set(o, b, !0);
|
|
8975
8977
|
}
|
|
8976
8978
|
var w = e.comment(), x = e.first_child(w), _ = (b) => {
|
|
8977
|
-
var T =
|
|
8978
|
-
var ue =
|
|
8979
|
-
var Te =
|
|
8979
|
+
var T = x4(), C = e.child(T), P = (le) => {
|
|
8980
|
+
var ue = f4(), ve = e.child(ue), se = (Ie) => {
|
|
8981
|
+
var Te = h4(), Ce = e.sibling(e.child(Te));
|
|
8980
8982
|
e.each(Ce, 17, () => e.get(i).captionTracks ?? [], e.index, (Ne, qe) => {
|
|
8981
|
-
var Se =
|
|
8983
|
+
var Se = p4();
|
|
8982
8984
|
e.template_effect((_e) => {
|
|
8983
8985
|
e.set_attribute(Se, "kind", e.get(qe).kind === "subtitles" ? "subtitles" : "captions"), e.set_attribute(Se, "label", e.get(qe).label), e.set_attribute(Se, "srclang", e.get(qe).language), e.set_attribute(Se, "src", _e), Se.default = e.get(qe).isDefault;
|
|
8984
8986
|
}, [() => e.get(qe).src ?? `data:text/vtt;charset=utf-8,${encodeURIComponent(e.get(qe).content ?? "WEBVTT")}`]), e.append(Ne, Se);
|
|
@@ -8986,7 +8988,7 @@ function y3(a, t) {
|
|
|
8986
8988
|
e.get(s) && e.set(o, e.get(s).currentTime, !0);
|
|
8987
8989
|
}), e.event("play", Te, () => e.set(d, !0)), e.event("pause", Te, () => e.set(d, !1)), e.append(Ie, Te);
|
|
8988
8990
|
}, ie = (Ie) => {
|
|
8989
|
-
var Te =
|
|
8991
|
+
var Te = g4();
|
|
8990
8992
|
e.bind_this(Te, (Ce) => e.set(s, Ce), () => e.get(s)), e.template_effect(() => e.set_attribute(Te, "src", e.get(r))), e.event("loadedmetadata", Te, () => e.set(l, e.get(s) && Number.isFinite(e.get(s).duration) ? e.get(s).duration : 0, !0)), e.event("timeupdate", Te, () => {
|
|
8991
8993
|
e.get(s) && e.set(o, e.get(s).currentTime, !0);
|
|
8992
8994
|
}), e.event("play", Te, () => e.set(d, !0)), e.event("pause", Te, () => e.set(d, !1)), e.append(Ie, Te);
|
|
@@ -8997,7 +8999,7 @@ function y3(a, t) {
|
|
|
8997
8999
|
var ce = e.sibling(ve), fe = e.only_child(ce, !0), ge = e.sibling(ce), ye = e.only_child(ge), Pe = e.sibling(ge), we = (Ie) => {
|
|
8998
9000
|
{
|
|
8999
9001
|
let Te = e.derived(() => e.get(i).trimStartMs ?? 0), Ce = e.derived(() => e.get(i).bookmarks ?? []);
|
|
9000
|
-
|
|
9002
|
+
u4(Ie, {
|
|
9001
9003
|
get duration() {
|
|
9002
9004
|
return e.get(l);
|
|
9003
9005
|
},
|
|
@@ -9054,7 +9056,7 @@ function y3(a, t) {
|
|
|
9054
9056
|
3,
|
|
9055
9057
|
4
|
|
9056
9058
|
], e.index, (le, ue) => {
|
|
9057
|
-
var ve =
|
|
9059
|
+
var ve = m4(), se = e.only_child(ve), ie = {};
|
|
9058
9060
|
e.template_effect(() => {
|
|
9059
9061
|
e.set_text(se, `${ue ?? ""}x`), ie !== (ie = ue) && (ve.value = (ve.__value = ie) ?? "");
|
|
9060
9062
|
}), e.append(le, ve);
|
|
@@ -9071,7 +9073,7 @@ function y3(a, t) {
|
|
|
9071
9073
|
e.remove_input_defaults(Q), e.reset(V), e.reset(Z);
|
|
9072
9074
|
var X = e.sibling(Z, 2), $ = e.sibling(e.child(X));
|
|
9073
9075
|
e.each($, 17, () => [...e.get(i).bookmarks ?? []].sort((le, ue) => le.time - ue.time), e.index, (le, ue) => {
|
|
9074
|
-
var ve =
|
|
9076
|
+
var ve = _4(), se = e.child(ve);
|
|
9075
9077
|
e.remove_input_defaults(se);
|
|
9076
9078
|
var ie = e.sibling(se);
|
|
9077
9079
|
e.remove_input_defaults(ie);
|
|
@@ -9094,7 +9096,7 @@ function y3(a, t) {
|
|
|
9094
9096
|
e.reset(te), e.reset(X);
|
|
9095
9097
|
var pe = e.sibling(X, 2), he = e.sibling(e.child(pe));
|
|
9096
9098
|
e.each(he, 17, () => e.get(i).captionTracks ?? [], e.index, (le, ue, ve) => {
|
|
9097
|
-
var se =
|
|
9099
|
+
var se = b4(), ie = e.child(se), ce = e.child(ie), fe = e.sibling(e.child(ce));
|
|
9098
9100
|
e.remove_input_defaults(fe), e.reset(ce);
|
|
9099
9101
|
var ge = e.sibling(ce), ye = e.sibling(e.child(ge));
|
|
9100
9102
|
e.remove_input_defaults(ye), e.reset(ge);
|
|
@@ -9131,21 +9133,21 @@ e.delegate([
|
|
|
9131
9133
|
"change",
|
|
9132
9134
|
"input"
|
|
9133
9135
|
]);
|
|
9134
|
-
var
|
|
9135
|
-
function
|
|
9136
|
+
var w4 = 40;
|
|
9137
|
+
function S4(a) {
|
|
9136
9138
|
const t = mc(a), n = ka(a);
|
|
9137
9139
|
return {
|
|
9138
9140
|
gridPlan: t,
|
|
9139
9141
|
cellMinWidthStyle: `min-width: ${t.minCellWidthPx}px`,
|
|
9140
9142
|
touchStyle: `min-width: ${n}px; min-height: ${n}px;`,
|
|
9141
9143
|
gutterClass: t.stickyFirstColumn ? "pptx-svelte-table-grid-sticky" : "",
|
|
9142
|
-
cornerStyle: `width: ${Math.max(
|
|
9144
|
+
cornerStyle: `width: ${Math.max(w4, n)}px`
|
|
9143
9145
|
};
|
|
9144
9146
|
}
|
|
9145
|
-
var
|
|
9146
|
-
function
|
|
9147
|
+
var k4 = e.from_html('<div class="pptx-svelte-table-grid-actions svelte-1kbvnat"><button type="button" class="svelte-1kbvnat"> </button> <button type="button" class="svelte-1kbvnat"> </button> <button type="button" class="svelte-1kbvnat"> </button> <button type="button" class="svelte-1kbvnat"> </button></div>'), il = e.from_html('<button type="button" class="pptx-svelte-table-grid-remove svelte-1kbvnat">×</button>'), T4 = e.from_html('<div class="pptx-svelte-table-grid-header svelte-1kbvnat" role="columnheader"><span> </span> <!></div>'), C4 = e.from_html('<div class="pptx-svelte-table-grid-cell svelte-1kbvnat" role="gridcell"><input type="text" class="svelte-1kbvnat"/></div>'), E4 = e.from_html('<div class="pptx-svelte-table-grid-row svelte-1kbvnat" role="row"><div role="rowheader"><span> </span> <!></div> <!></div>'), P4 = e.from_html('<section class="pptx-svelte-table-grid svelte-1kbvnat"><div class="pptx-svelte-table-grid-head svelte-1kbvnat"><h5 class="svelte-1kbvnat"> </h5> <!></div> <div class="pptx-svelte-table-grid-scroll svelte-1kbvnat"><div class="pptx-svelte-table-grid-body svelte-1kbvnat" role="grid"><div class="pptx-svelte-table-grid-row svelte-1kbvnat" role="row"><div role="columnheader"></div> <!></div> <!></div></div></section>');
|
|
9148
|
+
function I4(a, t) {
|
|
9147
9149
|
e.push(t, !0);
|
|
9148
|
-
const n = oe(), i = $t(), r = e.derived(() =>
|
|
9150
|
+
const n = oe(), i = $t(), r = e.derived(() => S4(i.width)), s = e.derived(() => t.el.type === "table" ? t.el : void 0), l = e.derived(() => e.get(s) ? sy(e.get(s)) : void 0), o = e.derived(() => t.editor.editable);
|
|
9149
9151
|
function d(v) {
|
|
9150
9152
|
!e.get(s) || v === e.get(s) || t.editor.applyElementPatch(e.get(s).id, {
|
|
9151
9153
|
tableData: v.tableData,
|
|
@@ -9153,8 +9155,8 @@ function I3(a, t) {
|
|
|
9153
9155
|
});
|
|
9154
9156
|
}
|
|
9155
9157
|
var c = e.comment(), u = e.first_child(c), p = (v) => {
|
|
9156
|
-
var f =
|
|
9157
|
-
var k =
|
|
9158
|
+
var f = P4(), h = e.child(f), m = e.child(h), g = e.only_child(m, !0), y = e.sibling(m, 2), S = (P) => {
|
|
9159
|
+
var k = k4(), E = e.child(k), I = e.only_child(E, !0), M = e.sibling(E, 2), R = e.only_child(M, !0), A = e.sibling(M, 2), z = e.only_child(A, !0), D = e.sibling(A, 2), q = e.only_child(D, !0);
|
|
9158
9160
|
e.reset(k), e.template_effect((B, N, O, F, U, L, H, Z) => {
|
|
9159
9161
|
e.set_style(E, e.get(r).touchStyle), e.set_attribute(E, "title", B), e.set_text(I, N), e.set_style(M, e.get(r).touchStyle), M.disabled = !e.get(l).canRemoveRow, e.set_attribute(M, "title", O), e.set_text(R, F), e.set_style(A, e.get(r).touchStyle), e.set_attribute(A, "title", U), e.set_text(z, L), e.set_style(D, e.get(r).touchStyle), D.disabled = !e.get(l).canRemoveColumn, e.set_attribute(D, "title", H), e.set_text(q, Z);
|
|
9160
9162
|
}, [
|
|
@@ -9173,7 +9175,7 @@ function I3(a, t) {
|
|
|
9173
9175
|
}), e.reset(h);
|
|
9174
9176
|
var w = e.sibling(h, 2), x = e.child(w), _ = e.child(x), b = e.child(_), T = e.sibling(b, 2);
|
|
9175
9177
|
e.each(T, 16, () => e.get(l).colIndices, (P) => P, (P, k) => {
|
|
9176
|
-
var E =
|
|
9178
|
+
var E = T4(), I = e.child(E), M = e.only_child(I, !0), R = e.sibling(I, 2), A = (z) => {
|
|
9177
9179
|
var D = il();
|
|
9178
9180
|
e.template_effect((q, B) => {
|
|
9179
9181
|
e.set_style(D, e.get(r).touchStyle), e.set_attribute(D, "aria-label", q), e.set_attribute(D, "title", B);
|
|
@@ -9187,7 +9189,7 @@ function I3(a, t) {
|
|
|
9187
9189
|
}), e.reset(_);
|
|
9188
9190
|
var C = e.sibling(_, 2);
|
|
9189
9191
|
e.each(C, 17, () => e.get(l).rows, (P) => P.rowIndex, (P, k) => {
|
|
9190
|
-
var E =
|
|
9192
|
+
var E = E4(), I = e.child(E), M = e.child(I), R = e.only_child(M, !0), A = e.sibling(M, 2), z = (q) => {
|
|
9191
9193
|
var B = il();
|
|
9192
9194
|
e.template_effect((N, O) => {
|
|
9193
9195
|
e.set_style(B, e.get(r).touchStyle), e.set_attribute(B, "aria-label", N), e.set_attribute(B, "title", O);
|
|
@@ -9198,7 +9200,7 @@ function I3(a, t) {
|
|
|
9198
9200
|
}), e.reset(I);
|
|
9199
9201
|
var D = e.sibling(I, 2);
|
|
9200
9202
|
e.each(D, 17, () => e.get(k).cells, (q) => q.colIndex, (q, B) => {
|
|
9201
|
-
var N =
|
|
9203
|
+
var N = C4(), O = e.child(N);
|
|
9202
9204
|
e.remove_input_defaults(O), e.reset(N), e.template_effect((F) => {
|
|
9203
9205
|
e.set_style(N, e.get(r).cellMinWidthStyle), O.disabled = !e.get(o), e.set_attribute(O, "aria-label", F), e.set_value(O, e.get(B).text);
|
|
9204
9206
|
}, [() => n("pptx.tableDataEditor.cellAriaLabel", {
|
|
@@ -9217,8 +9219,8 @@ function I3(a, t) {
|
|
|
9217
9219
|
}), e.append(a, c), e.pop();
|
|
9218
9220
|
}
|
|
9219
9221
|
e.delegate(["click", "input"]);
|
|
9220
|
-
var rl = e.from_html("<option></option>"),
|
|
9221
|
-
function
|
|
9222
|
+
var rl = e.from_html("<option></option>"), M4 = e.from_html("<button> </button>"), ri = e.from_html("<option> </option>"), A4 = e.from_html('<label class="svelte-161ldm2"> <input type="color" class="svelte-161ldm2"/></label>'), z4 = e.from_html('<div class="grid svelte-161ldm2"><label class="svelte-161ldm2">Type<select aria-label="Type" class="svelte-161ldm2"><option>linear</option><option>radial</option></select></label><label class="svelte-161ldm2">Angle<input type="number" min="0" max="360" class="svelte-161ldm2"/></label><!></div>'), D4 = e.from_html('<div class="grid svelte-161ldm2"><label class="svelte-161ldm2">Pattern<select aria-label="Pattern" class="svelte-161ldm2"></select></label><label class="svelte-161ldm2">Foreground<input type="color" class="svelte-161ldm2"/></label><label class="svelte-161ldm2">Background<input type="color" class="svelte-161ldm2"/></label></div>'), O4 = e.from_html('<label class="svelte-161ldm2"> <input type="number" min="0" class="svelte-161ldm2"/></label>'), q4 = e.from_html('<label class="svelte-161ldm2"> <input type="color" class="svelte-161ldm2"/></label><label class="svelte-161ldm2"> <input type="number" min="0" max="10" class="svelte-161ldm2"/></label>', 1), R4 = e.from_html('<div class="grid svelte-161ldm2"><label class="svelte-161ldm2">Font size<input type="number" min="6" max="200" class="svelte-161ldm2"/></label><div class="colorField svelte-161ldm2"><label class="svelte-161ldm2">Text color<input type="color" class="svelte-161ldm2"/></label><!></div><div class="colorField svelte-161ldm2"><label class="svelte-161ldm2">Background<input type="color" class="svelte-161ldm2"/></label><!></div><label class="svelte-161ldm2">Fill<select aria-label="Fill" class="svelte-161ldm2"><option>Solid</option><option>Gradient</option><option>Pattern</option><option>None</option></select></label></div> <div class="buttons svelte-161ldm2"></div> <div class="grid svelte-161ldm2"><label class="svelte-161ldm2">Horizontal<select aria-label="Horizontal" class="svelte-161ldm2"></select></label><label class="svelte-161ldm2">Vertical<select aria-label="Vertical" class="svelte-161ldm2"></select></label></div> <!> <!> <div class="grid svelte-161ldm2"></div> <h6 class="svelte-161ldm2">Borders</h6><div class="grid svelte-161ldm2"></div> <div class="merge svelte-161ldm2"><button class="svelte-161ldm2">Merge right</button><button class="svelte-161ldm2">Merge down</button><button class="svelte-161ldm2">Split</button></div>', 1), N4 = e.from_html('<details open="" class="svelte-161ldm2"><summary class="svelte-161ldm2">Cell formatting</summary> <div class="picker svelte-161ldm2"><label class="svelte-161ldm2">Row<select aria-label="Row" class="svelte-161ldm2"></select></label><label class="svelte-161ldm2">Column<select aria-label="Column" class="svelte-161ldm2"></select></label></div> <!></details>');
|
|
9223
|
+
function F4(a, t) {
|
|
9222
9224
|
e.push(t, !0);
|
|
9223
9225
|
const n = oe(), i = [
|
|
9224
9226
|
"ltDnDiag",
|
|
@@ -9274,7 +9276,7 @@ function F3(a, t) {
|
|
|
9274
9276
|
}, k.hex);
|
|
9275
9277
|
}
|
|
9276
9278
|
function g(k) {
|
|
9277
|
-
const E = k === "right" ? Rd(t.table, e.get(d), e.get(c)) : k === "down" ? bc(t.table, e.get(d), e.get(c)) :
|
|
9279
|
+
const E = k === "right" ? Rd(t.table, e.get(d), e.get(c)) : k === "down" ? bc(t.table, e.get(d), e.get(c)) : $o(t.table, e.get(d), e.get(c));
|
|
9278
9280
|
E && t.onpatch({ rows: E });
|
|
9279
9281
|
}
|
|
9280
9282
|
function y(k) {
|
|
@@ -9296,7 +9298,7 @@ function F3(a, t) {
|
|
|
9296
9298
|
patternFillBackground: e.get(p).patternFillBackground ?? "#ffffff"
|
|
9297
9299
|
} : { fillMode: k });
|
|
9298
9300
|
}
|
|
9299
|
-
var S =
|
|
9301
|
+
var S = N4(), w = e.sibling(e.child(S), 2), x = e.child(w), _ = e.sibling(e.child(x));
|
|
9300
9302
|
e.each(_, 21, () => t.table.rows, e.index, (k, E, I) => {
|
|
9301
9303
|
var M = rl();
|
|
9302
9304
|
M.textContent = I + 1, M.value = M.__value = I, e.append(k, M);
|
|
@@ -9307,7 +9309,7 @@ function F3(a, t) {
|
|
|
9307
9309
|
M.textContent = I + 1, M.value = M.__value = I, e.append(k, M);
|
|
9308
9310
|
}), e.reset(T), e.init_select(T), e.reset(b), e.reset(w);
|
|
9309
9311
|
var C = e.sibling(w, 2), P = (k) => {
|
|
9310
|
-
var E =
|
|
9312
|
+
var E = R4(), I = e.first_child(E), M = e.child(I), R = e.sibling(e.child(M));
|
|
9311
9313
|
e.remove_input_defaults(R), e.reset(M);
|
|
9312
9314
|
var A = e.sibling(M), z = e.child(A), D = e.sibling(e.child(z));
|
|
9313
9315
|
e.remove_input_defaults(D), e.reset(z);
|
|
@@ -9363,7 +9365,7 @@ function F3(a, t) {
|
|
|
9363
9365
|
["italic", "I"],
|
|
9364
9366
|
["underline", "U"]
|
|
9365
9367
|
], e.index, (ie, ce) => {
|
|
9366
|
-
var fe =
|
|
9368
|
+
var fe = M4();
|
|
9367
9369
|
let ge;
|
|
9368
9370
|
var ye = e.only_child(fe, !0);
|
|
9369
9371
|
e.template_effect((Pe) => {
|
|
@@ -9389,13 +9391,13 @@ function F3(a, t) {
|
|
|
9389
9391
|
var te;
|
|
9390
9392
|
e.init_select($), e.reset(X), e.reset(W);
|
|
9391
9393
|
var ne = e.sibling(W, 2), ae = (ie) => {
|
|
9392
|
-
var ce =
|
|
9394
|
+
var ce = z4(), fe = e.child(ce), ge = e.sibling(e.child(fe)), ye;
|
|
9393
9395
|
e.init_select(ge), e.reset(fe);
|
|
9394
9396
|
var Pe = e.sibling(fe), we = e.sibling(e.child(Pe));
|
|
9395
9397
|
e.remove_input_defaults(we), e.reset(Pe);
|
|
9396
9398
|
var Ie = e.sibling(Pe);
|
|
9397
9399
|
e.each(Ie, 17, () => e.get(p).gradientFillStops ?? [], e.index, (Te, Ce, Ne) => {
|
|
9398
|
-
var qe =
|
|
9400
|
+
var qe = A4(), Se = e.child(qe);
|
|
9399
9401
|
Se.nodeValue = `Stop ${Ne + 1}`;
|
|
9400
9402
|
var _e = e.sibling(Se);
|
|
9401
9403
|
e.remove_input_defaults(_e), e.reset(qe), e.template_effect(() => e.set_value(_e, e.get(Ce).color)), e.delegated("change", _e, (Oe) => f({ gradientFillStops: (e.get(p).gradientFillStops ?? []).map((De, Ue) => Ue === Ne ? {
|
|
@@ -9410,7 +9412,7 @@ function F3(a, t) {
|
|
|
9410
9412
|
e.get(p).fillMode === "gradient" && ie(ae);
|
|
9411
9413
|
});
|
|
9412
9414
|
var re = e.sibling(ne, 2), pe = (ie) => {
|
|
9413
|
-
var ce =
|
|
9415
|
+
var ce = D4(), fe = e.child(ce), ge = e.sibling(e.child(fe));
|
|
9414
9416
|
e.each(ge, 21, () => i, e.index, (Ce, Ne) => {
|
|
9415
9417
|
var qe = ri(), Se = e.only_child(qe, !0), _e = {};
|
|
9416
9418
|
e.template_effect((Oe) => {
|
|
@@ -9436,7 +9438,7 @@ function F3(a, t) {
|
|
|
9436
9438
|
["marginLeft", "Left margin"],
|
|
9437
9439
|
["marginRight", "Right margin"]
|
|
9438
9440
|
], e.index, (ie, ce) => {
|
|
9439
|
-
var fe =
|
|
9441
|
+
var fe = O4(), ge = e.child(fe, !0), ye = e.sibling(ge);
|
|
9440
9442
|
e.remove_input_defaults(ye), e.reset(fe), e.template_effect((Pe) => {
|
|
9441
9443
|
e.set_text(ge, ce[1]), e.set_value(ye, Pe);
|
|
9442
9444
|
}, [() => Number(e.get(p)[ce[0]] ?? 0)]), e.delegated("change", ye, (Pe) => v({ [ce[0]]: Number(Pe.currentTarget.value) })), e.append(ie, fe);
|
|
@@ -9448,7 +9450,7 @@ function F3(a, t) {
|
|
|
9448
9450
|
["borderLeft", "Left"],
|
|
9449
9451
|
["borderRight", "Right"]
|
|
9450
9452
|
], e.index, (ie, ce) => {
|
|
9451
|
-
var fe =
|
|
9453
|
+
var fe = q4(), ge = e.first_child(fe), ye = e.child(ge), Pe = e.sibling(ye);
|
|
9452
9454
|
e.remove_input_defaults(Pe), e.reset(ge);
|
|
9453
9455
|
var we = e.sibling(ge), Ie = e.child(we), Te = e.sibling(Ie);
|
|
9454
9456
|
e.remove_input_defaults(Te), e.reset(we), e.template_effect((Ce, Ne) => {
|
|
@@ -9472,11 +9474,11 @@ function F3(a, t) {
|
|
|
9472
9474
|
}), e.reset(S), e.bind_select_value(_, () => e.get(d), (k) => e.set(d, k)), e.bind_select_value(T, () => e.get(c), (k) => e.set(c, k)), e.append(a, S), e.pop();
|
|
9473
9475
|
}
|
|
9474
9476
|
e.delegate(["change", "click"]);
|
|
9475
|
-
var
|
|
9476
|
-
function
|
|
9477
|
+
var L4 = e.from_html("<option> </option>"), B4 = e.from_html('<div class="border-row svelte-zai6c0"><span class="side-lbl svelte-zai6c0"> </span> <input type="color" class="svelte-zai6c0"/> <input type="number" min="0" max="20" class="svelte-zai6c0"/> <select class="svelte-zai6c0"></select> <label class="check svelte-zai6c0"><input type="checkbox"/> </label></div>'), j4 = e.from_html('<div class="group svelte-zai6c0"><span class="hdg svelte-zai6c0"> </span> <div class="row svelte-zai6c0"><button type="button"> </button> <button type="button"> </button> <button type="button"> </button></div> <label class="row svelte-zai6c0"> <input type="color" class="svelte-zai6c0"/></label> <!></div> <div class="group svelte-zai6c0"><span class="hdg svelte-zai6c0"> </span> <!></div>', 1), U4 = e.from_html('<div class="fields svelte-zai6c0"><div class="group svelte-zai6c0"><span class="hdg svelte-zai6c0"> </span> <div class="row svelte-zai6c0"><input type="color" class="svelte-zai6c0"/> <label class="check svelte-zai6c0"><input type="checkbox"/> </label></div> <!></div> <!></div>');
|
|
9478
|
+
function H4(a, t) {
|
|
9477
9479
|
e.push(t, !0);
|
|
9478
9480
|
const n = oe();
|
|
9479
|
-
var i =
|
|
9481
|
+
var i = U4(), r = e.child(i), s = e.child(r), l = e.only_child(s, !0), o = e.sibling(s, 2), d = e.child(o);
|
|
9480
9482
|
e.remove_input_defaults(d);
|
|
9481
9483
|
var c = e.sibling(d, 2), u = e.child(c);
|
|
9482
9484
|
e.remove_input_defaults(u);
|
|
@@ -9507,7 +9509,7 @@ function H3(a, t) {
|
|
|
9507
9509
|
}
|
|
9508
9510
|
e.reset(r);
|
|
9509
9511
|
var f = e.sibling(r, 2), h = (m) => {
|
|
9510
|
-
var g =
|
|
9512
|
+
var g = j4(), y = e.first_child(g), S = e.child(y), w = e.only_child(S, !0), x = e.sibling(S, 2), _ = e.child(x);
|
|
9511
9513
|
let b;
|
|
9512
9514
|
var T = e.only_child(_, !0), C = e.sibling(_, 2);
|
|
9513
9515
|
let P;
|
|
@@ -9544,13 +9546,13 @@ function H3(a, t) {
|
|
|
9544
9546
|
var q = e.sibling(y, 2), B = e.child(q), N = e.only_child(B, !0), O = e.sibling(B, 2);
|
|
9545
9547
|
e.each(O, 16, () => c2, (F) => F, (F, U) => {
|
|
9546
9548
|
const L = e.derived(() => t.descriptor.borders[U]);
|
|
9547
|
-
var H =
|
|
9549
|
+
var H = B4(), Z = e.child(H), j = e.only_child(Z, !0), K = e.sibling(Z, 2);
|
|
9548
9550
|
e.remove_input_defaults(K);
|
|
9549
9551
|
var G = e.sibling(K, 2);
|
|
9550
9552
|
e.remove_input_defaults(G);
|
|
9551
9553
|
var J = e.sibling(G, 2);
|
|
9552
9554
|
e.each(J, 20, () => D_, (X) => X, (X, $) => {
|
|
9553
|
-
var te =
|
|
9555
|
+
var te = L4(), ne = e.only_child(te, !0), ae = {};
|
|
9554
9556
|
e.template_effect(() => {
|
|
9555
9557
|
e.set_text(ne, $), ae !== (ae = $) && (te.value = (te.__value = ae) ?? "");
|
|
9556
9558
|
}), e.append(X, te);
|
|
@@ -9618,8 +9620,8 @@ function H3(a, t) {
|
|
|
9618
9620
|
})), e.append(a, i), e.pop();
|
|
9619
9621
|
}
|
|
9620
9622
|
e.delegate(["change", "click"]);
|
|
9621
|
-
var
|
|
9622
|
-
function
|
|
9623
|
+
var V4 = e.from_html('<div class="empty svelte-1rp4i0h"> </div>'), K4 = e.from_html('<button type="button"> </button>'), W4 = e.from_html('<div class="parts svelte-1rp4i0h"></div>'), Z4 = e.from_html('<button type="button" class="svelte-1rp4i0h"> </button>'), G4 = e.from_html('<div class="editor svelte-1rp4i0h" data-testid="table-style-editor"><div class="hdr svelte-1rp4i0h"><span class="hdg svelte-1rp4i0h"> </span> <button type="button" class="svelte-1rp4i0h"> </button></div> <!> <!> <!> <div class="actions svelte-1rp4i0h"><button type="button" class="svelte-1rp4i0h"> </button> <!></div></div>');
|
|
9624
|
+
function X4(a, t) {
|
|
9623
9625
|
e.push(t, !0);
|
|
9624
9626
|
const n = e.prop(t, "canEdit", 3, !0), i = oe();
|
|
9625
9627
|
let r = e.state(e.proxy(t.styleId ? Ch(t.styleId) : "")), s = e.state("wholeTbl");
|
|
@@ -9646,19 +9648,19 @@ function X3(a, t) {
|
|
|
9646
9648
|
const I = { ...t.styleMap };
|
|
9647
9649
|
Ww(I, e.get(l).styleId), t.onStyleMapChange(I), t.onDeleteStyle(e.get(l).styleId), t.onClose();
|
|
9648
9650
|
}
|
|
9649
|
-
var p =
|
|
9651
|
+
var p = G4(), v = e.child(p), f = e.child(v), h = e.only_child(f, !0), m = e.sibling(f, 2), g = e.only_child(m, !0);
|
|
9650
9652
|
e.reset(v);
|
|
9651
9653
|
var y = e.sibling(v, 2), S = (I) => {
|
|
9652
|
-
var M =
|
|
9654
|
+
var M = V4(), R = e.only_child(M, !0);
|
|
9653
9655
|
e.template_effect((A) => e.set_text(R, A), [() => i("pptx.tableStyleEditor.noStyleSelected")]), e.append(I, M);
|
|
9654
9656
|
};
|
|
9655
9657
|
e.if(y, (I) => {
|
|
9656
9658
|
e.get(l) || I(S);
|
|
9657
9659
|
});
|
|
9658
9660
|
var w = e.sibling(y, 2), x = (I) => {
|
|
9659
|
-
var M =
|
|
9661
|
+
var M = W4();
|
|
9660
9662
|
e.each(M, 21, () => x_, (R) => R.id, (R, A) => {
|
|
9661
|
-
var z =
|
|
9663
|
+
var z = K4();
|
|
9662
9664
|
let D;
|
|
9663
9665
|
var q = e.only_child(z, !0);
|
|
9664
9666
|
e.template_effect((B) => {
|
|
@@ -9670,7 +9672,7 @@ function X3(a, t) {
|
|
|
9670
9672
|
e.get(l) && I(x);
|
|
9671
9673
|
});
|
|
9672
9674
|
var _ = e.sibling(w, 2), b = (I) => {
|
|
9673
|
-
|
|
9675
|
+
H4(I, {
|
|
9674
9676
|
get descriptor() {
|
|
9675
9677
|
return e.get(o);
|
|
9676
9678
|
},
|
|
@@ -9687,7 +9689,7 @@ function X3(a, t) {
|
|
|
9687
9689
|
e.get(o) && I(b);
|
|
9688
9690
|
});
|
|
9689
9691
|
var T = e.sibling(_, 2), C = e.child(T), P = e.only_child(C, !0), k = e.sibling(C, 2), E = (I) => {
|
|
9690
|
-
var M =
|
|
9692
|
+
var M = Z4(), R = e.only_child(M, !0);
|
|
9691
9693
|
e.template_effect((A) => {
|
|
9692
9694
|
M.disabled = !n(), e.set_text(R, A);
|
|
9693
9695
|
}, [() => i("pptx.tableStyleEditor.deleteStyle")]), e.delegated("click", M, u), e.append(I, M);
|
|
@@ -9705,7 +9707,7 @@ function X3(a, t) {
|
|
|
9705
9707
|
}), e.delegated("click", C, c), e.append(a, p), e.pop();
|
|
9706
9708
|
}
|
|
9707
9709
|
e.delegate(["click"]);
|
|
9708
|
-
var
|
|
9710
|
+
var Y4 = e.from_html('<label class="svelte-hsedem"><input type="checkbox" class="svelte-hsedem"/> </label>'), J4 = e.from_html('<button type="button" class="preset-swatch svelte-hsedem"><span class="svelte-hsedem"></span> <span class="svelte-hsedem"></span> <span class="svelte-hsedem"></span></button>'), Q4 = e.from_html('<button type="button" class="edit-style-btn svelte-hsedem"> </button>'), $4 = e.from_html('<label class="svelte-hsedem">Row band cycle<input type="number" min="1" class="svelte-hsedem"/></label>'), e5 = e.from_html('<label class="svelte-hsedem">Column band cycle<input type="number" min="1" class="svelte-hsedem"/></label>'), t5 = e.from_html('<label class="svelte-hsedem"> <input type="range" min="5" max="80" class="svelte-hsedem"/></label>'), a5 = e.from_html('<label class="svelte-hsedem"> <input type="number" min="16" max="500" class="svelte-hsedem"/></label>'), n5 = e.from_html('<div class="checks svelte-hsedem"></div> <div class="presets svelte-hsedem"><span class="presets-label svelte-hsedem"> </span> <div class="presets-grid svelte-hsedem"></div> <!></div> <!> <label class="svelte-hsedem">Cell padding<input type="number" min="0" class="svelte-hsedem"/></label> <div class="structure svelte-hsedem"><label class="svelte-hsedem">Row<input type="number" min="1" class="svelte-hsedem"/></label><button type="button" class="svelte-hsedem">Insert row</button><button type="button" class="svelte-hsedem">Delete row</button><label class="svelte-hsedem">Column<input type="number" min="1" class="svelte-hsedem"/></label><button type="button" class="svelte-hsedem">Insert column</button><button type="button" class="svelte-hsedem">Delete column</button></div> <!> <!> <details class="svelte-hsedem"><summary class="svelte-hsedem">Column widths</summary><button type="button" class="svelte-hsedem">Distribute evenly</button><!></details> <details class="svelte-hsedem"><summary class="svelte-hsedem">Row heights</summary><button type="button" class="svelte-hsedem">Distribute evenly</button><!></details> <!>', 1);
|
|
9709
9711
|
function i5(a, t) {
|
|
9710
9712
|
e.push(t, !0);
|
|
9711
9713
|
const n = oe(), i = e.derived(() => If(t.el)), r = e.derived(() => t.el.type === "table" ? t.el : void 0), s = e.derived(() => e.get(r)?.tableData);
|
|
@@ -9738,7 +9740,7 @@ function i5(a, t) {
|
|
|
9738
9740
|
["lastCol", "pptx.table.lastColumn"],
|
|
9739
9741
|
["lastRow", "pptx.table.lastRow"]
|
|
9740
9742
|
], e.index, (Y, V) => {
|
|
9741
|
-
var Q =
|
|
9743
|
+
var Q = Y4(), X = e.child(Q);
|
|
9742
9744
|
e.remove_input_defaults(X);
|
|
9743
9745
|
var $ = e.sibling(X, 1, !0);
|
|
9744
9746
|
e.reset(Q), e.template_effect((te, ne) => {
|
|
@@ -9747,7 +9749,7 @@ function i5(a, t) {
|
|
|
9747
9749
|
}), e.reset(y);
|
|
9748
9750
|
var S = e.sibling(y, 2), w = e.child(S), x = e.only_child(w, !0), _ = e.sibling(w, 2);
|
|
9749
9751
|
e.each(_, 21, () => X_, (Y) => Y.id, (Y, V) => {
|
|
9750
|
-
var Q =
|
|
9752
|
+
var Q = J4(), X = e.child(Q);
|
|
9751
9753
|
let $;
|
|
9752
9754
|
var te = e.sibling(X, 2);
|
|
9753
9755
|
let ne;
|
|
@@ -9758,14 +9760,14 @@ function i5(a, t) {
|
|
|
9758
9760
|
}), e.delegated("click", Q, () => c({ rows: O2(e.get(s), e.get(V)) })), e.append(Y, Q);
|
|
9759
9761
|
}), e.reset(_);
|
|
9760
9762
|
var b = e.sibling(_, 2), T = (Y) => {
|
|
9761
|
-
var V =
|
|
9763
|
+
var V = Q4(), Q = e.only_child(V, !0);
|
|
9762
9764
|
e.template_effect((X) => e.set_text(Q, X), [() => n("pptx.tableStyleEditor.editButton")]), e.delegated("click", V, () => e.set(d, !e.get(d))), e.append(Y, V);
|
|
9763
9765
|
};
|
|
9764
9766
|
e.if(b, (Y) => {
|
|
9765
9767
|
t.tableStyleMap !== void 0 && Y(T);
|
|
9766
9768
|
}), e.reset(S);
|
|
9767
9769
|
var C = e.sibling(S, 2), P = (Y) => {
|
|
9768
|
-
|
|
9770
|
+
X4(Y, {
|
|
9769
9771
|
get styleMap() {
|
|
9770
9772
|
return t.tableStyleMap;
|
|
9771
9773
|
},
|
|
@@ -9793,7 +9795,7 @@ function i5(a, t) {
|
|
|
9793
9795
|
var B = e.sibling(D), N = e.sibling(B);
|
|
9794
9796
|
e.reset(I);
|
|
9795
9797
|
var O = e.sibling(I, 2), F = (Y) => {
|
|
9796
|
-
var V = $
|
|
9798
|
+
var V = $4(), Q = e.sibling(e.child(V));
|
|
9797
9799
|
e.remove_input_defaults(Q), e.reset(V), e.template_effect(() => e.set_value(Q, e.get(s).bandRowCycle ?? 1)), e.delegated("change", Q, (X) => c({ bandRowCycle: Math.max(1, Number(X.currentTarget.value)) })), e.append(Y, V);
|
|
9798
9800
|
};
|
|
9799
9801
|
e.if(O, (Y) => {
|
|
@@ -9824,7 +9826,7 @@ function i5(a, t) {
|
|
|
9824
9826
|
} : ae) })), e.append(Y, X);
|
|
9825
9827
|
}), e.reset(K);
|
|
9826
9828
|
var W = e.sibling(K, 2);
|
|
9827
|
-
|
|
9829
|
+
F4(W, {
|
|
9828
9830
|
get editor() {
|
|
9829
9831
|
return t.editor;
|
|
9830
9832
|
},
|
|
@@ -9834,7 +9836,7 @@ function i5(a, t) {
|
|
|
9834
9836
|
onpatch: c
|
|
9835
9837
|
}), e.template_effect((Y, V) => {
|
|
9836
9838
|
e.set_text(x, Y), e.set_value(E, V), e.set_attribute(R, "max", e.get(s).rows.length), e.set_value(R, e.get(l) + 1), z.disabled = e.get(s).rows.length <= 1, e.set_attribute(q, "max", e.get(s).columnWidths.length), e.set_value(q, e.get(o) + 1), N.disabled = e.get(s).columnWidths.length <= 1;
|
|
9837
|
-
}, [() => n("pptx.table.stylePresets"), () => Math.round(e.get(i).cellPadding)]), e.delegated("change", E, (Y) => p(Y.currentTarget.value)), e.delegated("change", R, (Y) => e.set(l, Math.max(0, Number(Y.currentTarget.value) - 1), !0)), e.delegated("click", A, () => u((Y) =>
|
|
9839
|
+
}, [() => n("pptx.table.stylePresets"), () => Math.round(e.get(i).cellPadding)]), e.delegated("change", E, (Y) => p(Y.currentTarget.value)), e.delegated("change", R, (Y) => e.set(l, Math.max(0, Number(Y.currentTarget.value) - 1), !0)), e.delegated("click", A, () => u((Y) => Bi(Y, e.get(l), "below"))), e.delegated("click", z, () => u((Y) => gr(Y, e.get(l)))), e.delegated("change", q, (Y) => e.set(o, Math.max(0, Number(Y.currentTarget.value) - 1), !0)), e.delegated("click", B, () => u((Y) => Oi(Y, e.get(o), "right"))), e.delegated("click", N, () => u((Y) => vr(Y, e.get(o)))), e.delegated("click", Z, () => c({ columnWidths: lh(e.get(s).columnWidths.length) })), e.delegated("click", G, () => c({ rows: Wh(e.get(s).rows) })), e.append(m, g);
|
|
9838
9840
|
};
|
|
9839
9841
|
e.if(f, (m) => {
|
|
9840
9842
|
e.get(s) && m(h);
|
|
@@ -10076,7 +10078,7 @@ function x5(a, t) {
|
|
|
10076
10078
|
t.editor.patchSelected(xw(t.el, we));
|
|
10077
10079
|
}
|
|
10078
10080
|
function v(we, Ie) {
|
|
10079
|
-
t.editor.patchSelected(
|
|
10081
|
+
t.editor.patchSelected(Ui(t.el, we, Ie)), t.editor.recordRecentColor(we);
|
|
10080
10082
|
}
|
|
10081
10083
|
function f(we) {
|
|
10082
10084
|
v(we.hex, we.ref);
|
|
@@ -10259,7 +10261,7 @@ function Tr(a, t) {
|
|
|
10259
10261
|
e.get(b) && se(Z);
|
|
10260
10262
|
});
|
|
10261
10263
|
var j = e.sibling(H, 2), K = (se) => {
|
|
10262
|
-
|
|
10264
|
+
n4(se, {
|
|
10263
10265
|
get editor() {
|
|
10264
10266
|
return t.editor;
|
|
10265
10267
|
},
|
|
@@ -10327,7 +10329,7 @@ function Tr(a, t) {
|
|
|
10327
10329
|
});
|
|
10328
10330
|
var X = e.sibling(V, 2), $ = (se) => {
|
|
10329
10331
|
var ie = S5(), ce = e.first_child(ie), fe = e.child(ce);
|
|
10330
|
-
|
|
10332
|
+
I4(fe, {
|
|
10331
10333
|
get editor() {
|
|
10332
10334
|
return t.editor;
|
|
10333
10335
|
},
|
|
@@ -10363,7 +10365,7 @@ function Tr(a, t) {
|
|
|
10363
10365
|
});
|
|
10364
10366
|
var te = e.sibling(X, 2), ne = (se) => {
|
|
10365
10367
|
var ie = oa(), ce = e.child(ie), fe = e.only_child(ce, !0), ge = e.sibling(ce, 2);
|
|
10366
|
-
|
|
10368
|
+
o4(ge, {
|
|
10367
10369
|
get editor() {
|
|
10368
10370
|
return t.editor;
|
|
10369
10371
|
},
|
|
@@ -10386,7 +10388,7 @@ function Tr(a, t) {
|
|
|
10386
10388
|
});
|
|
10387
10389
|
var pe = e.sibling(ae, 2), he = (se) => {
|
|
10388
10390
|
var ie = sl(), ce = e.child(ie), fe = e.only_child(ce, !0), ge = e.sibling(ce);
|
|
10389
|
-
|
|
10391
|
+
y4(ge, {
|
|
10390
10392
|
get editor() {
|
|
10391
10393
|
return t.editor;
|
|
10392
10394
|
},
|
|
@@ -10409,7 +10411,7 @@ function Tr(a, t) {
|
|
|
10409
10411
|
}), e.reset(me), e.template_effect((se) => e.set_text(ue, se), [() => i("pptx.action.title")]), e.append(B, N);
|
|
10410
10412
|
}, D = (B) => {
|
|
10411
10413
|
var N = C5(), O = e.first_child(N);
|
|
10412
|
-
|
|
10414
|
+
y3(O, {
|
|
10413
10415
|
get editor() {
|
|
10414
10416
|
return t.editor;
|
|
10415
10417
|
},
|
|
@@ -10542,7 +10544,7 @@ var D5 = e.from_html('<span class="pptx-svelte-thumb-hidden svelte-1md4db3"><!>
|
|
|
10542
10544
|
function Gc(a, t) {
|
|
10543
10545
|
e.push(t, !0);
|
|
10544
10546
|
const n = (R, A = e.noop, z = e.noop) => {
|
|
10545
|
-
const D = e.derived(() =>
|
|
10547
|
+
const D = e.derived(() => Vo(A().hidden, "rail", z()));
|
|
10546
10548
|
var q = O5();
|
|
10547
10549
|
let B;
|
|
10548
10550
|
var N = e.child(q), O = e.only_child(N, !0), F = e.sibling(N, 2), U = e.child(F), L = e.child(U);
|
|
@@ -10569,7 +10571,7 @@ function Gc(a, t) {
|
|
|
10569
10571
|
var J = e.sibling(G, 2), W = e.only_child(J, !0);
|
|
10570
10572
|
e.reset(K), e.template_effect((Y) => {
|
|
10571
10573
|
e.set_attribute(K, "id", e.get(D).labelId), e.set_text(W, Y);
|
|
10572
|
-
}, [() => s(
|
|
10574
|
+
}, [() => s(fd)]), e.append(j, K);
|
|
10573
10575
|
};
|
|
10574
10576
|
e.if(H, (j) => {
|
|
10575
10577
|
e.get(D).hidden && j(Z);
|
|
@@ -10578,7 +10580,7 @@ function Gc(a, t) {
|
|
|
10578
10580
|
"pptx-svelte-thumb-active": z() === t.current,
|
|
10579
10581
|
"pptx-svelte-thumb-dragging": e.get(f) === z(),
|
|
10580
10582
|
"pptx-svelte-thumb-drop-target": e.get(f) !== null && e.get(f) !== z()
|
|
10581
|
-
}), e.set_attribute(q, "aria-label", j), e.set_attribute(q, "aria-current", z() === t.current ? "true" : void 0), e.set_attribute(q, "aria-describedby", e.get(D).labelId), e.set_attribute(q, "data-pptx-slide-hidden", e.get(D).marker), e.set_attribute(q, "draggable", i()), e.set_style(N, e.get(D).hidden ? `background-image: ${Sc}` : void 0), e.set_text(O, z() + 1), e.set_style(F, `width: ${l}px; height: ${e.get(d)}px`), e.set_style(U, e.get(D).hidden ? `opacity: ${
|
|
10583
|
+
}), e.set_attribute(q, "aria-label", j), e.set_attribute(q, "aria-current", z() === t.current ? "true" : void 0), e.set_attribute(q, "aria-describedby", e.get(D).labelId), e.set_attribute(q, "data-pptx-slide-hidden", e.get(D).marker), e.set_attribute(q, "draggable", i()), e.set_style(N, e.get(D).hidden ? `background-image: ${Sc}` : void 0), e.set_text(O, z() + 1), e.set_style(F, `width: ${l}px; height: ${e.get(d)}px`), e.set_style(U, e.get(D).hidden ? `opacity: ${od}` : void 0);
|
|
10582
10584
|
}, [() => s("pptx.slidesPanel.goToSlide", { n: z() + 1 })]), e.delegated("click", q, () => t.onselect(z())), e.event("dragstart", q, (j) => x(z(), j)), e.event("dragend", q, () => {
|
|
10583
10585
|
e.set(f, null);
|
|
10584
10586
|
}), e.event("dragover", q, function(...j) {
|
|
@@ -10586,7 +10588,7 @@ function Gc(a, t) {
|
|
|
10586
10588
|
}), e.event("drop", q, function(...j) {
|
|
10587
10589
|
(i() ? (K) => _(z(), K) : void 0)?.apply(this, j);
|
|
10588
10590
|
}), e.append(R, q);
|
|
10589
|
-
}, i = e.prop(t, "editable", 3, !1), r = e.prop(t, "sections", 19, () => []), s = oe(), l = 148, o = e.derived(() => t.canvasSize.width > 0 ? l / t.canvasSize.width : 0.1), d = e.derived(() => Math.round(t.canvasSize.height * e.get(o))), c = e.derived(() => e.get(d) + 16), u = e.derived(() =>
|
|
10591
|
+
}, i = e.prop(t, "editable", 3, !1), r = e.prop(t, "sections", 19, () => []), s = oe(), l = 148, o = e.derived(() => t.canvasSize.width > 0 ? l / t.canvasSize.width : 0.1), d = e.derived(() => Math.round(t.canvasSize.height * e.get(o))), c = e.derived(() => e.get(d) + 16), u = e.derived(() => yd(r(), t.slides)), p = e.derived(() => r().length > 0), v = e.derived(() => !e.get(p) && t.slides.length >= 50);
|
|
10590
10592
|
let f = e.state(null), h = e.state(void 0), m = e.state(0), g = e.state(600);
|
|
10591
10593
|
const y = e.derived(() => qw(t.slides.length, e.get(c), e.get(m), e.get(g))), S = e.derived(() => {
|
|
10592
10594
|
const R = e.get(v) ? e.get(y).startIndex : 0, A = e.get(v) ? e.get(y).endIndex : t.slides.length - 1;
|
|
@@ -10844,7 +10846,7 @@ function V5(a, t) {
|
|
|
10844
10846
|
e.reset(w), e.template_effect((C) => {
|
|
10845
10847
|
e.set_attribute(w, "aria-pressed", t.active === e.get(y).key), e.set_attribute(w, "aria-label", C), w.disabled = e.get(y).disabled, x = e.set_class(w, 1, "svelte-pr1rgb", null, x, { active: t.active === e.get(y).key }), e.set_text(T, e.get(y).label);
|
|
10846
10848
|
}, [() => e.get(y).key === "notes" ? n("pptx.statusBar.toggleNotes") : void 0]), e.delegated("click", w, () => {
|
|
10847
|
-
e.get(y).key === "insert" ? (t.editor.insertElement(
|
|
10849
|
+
e.get(y).key === "insert" ? (t.editor.insertElement(ir()), t.onactivechange(null)) : i(e.get(y).key);
|
|
10848
10850
|
}), e.append(g, w);
|
|
10849
10851
|
}), e.reset(m), e.reset(c), e.template_effect((g) => e.set_attribute(m, "aria-label", g), [() => n("pptx.mobileBar.ariaLabel")]), e.append(a, c), e.pop();
|
|
10850
10852
|
}
|
|
@@ -12100,7 +12102,7 @@ function rA(a, t) {
|
|
|
12100
12102
|
var sA = e.from_html('<button type="button" data-testid="pptx-run-program-notice-copy" class="pptx-svelte-run-program-notice-copy svelte-agvmtj"> </button>'), lA = e.from_html('<div class="pptx-svelte-run-program-notice svelte-agvmtj" data-testid="pptx-run-program-notice"><span class="pptx-svelte-run-program-notice-icon svelte-agvmtj" aria-hidden="true">⚠️</span> <p class="pptx-svelte-run-program-notice-message svelte-agvmtj"> </p> <div class="pptx-svelte-run-program-notice-actions svelte-agvmtj"><!> <button type="button" class="pptx-svelte-run-program-notice-dismiss svelte-agvmtj">✕</button></div></div>'), oA = e.from_html('<div class="pptx-svelte-run-program-notices"></div>');
|
|
12101
12103
|
function dA(a, t) {
|
|
12102
12104
|
e.push(t, !0);
|
|
12103
|
-
const n = oe(), i = Jd(), r =
|
|
12105
|
+
const n = oe(), i = Jd(), r = Go(typeof navigator > "u" ? void 0 : navigator);
|
|
12104
12106
|
function s(c) {
|
|
12105
12107
|
r && navigator.clipboard.writeText(c);
|
|
12106
12108
|
}
|
|
@@ -12132,7 +12134,7 @@ function fA(a, t) {
|
|
|
12132
12134
|
function u(q) {
|
|
12133
12135
|
q === 1 ? l.advance() : l.retreat() || l.previousSlide();
|
|
12134
12136
|
}
|
|
12135
|
-
const p = e.derived(() => o.snapshot.pointer), v = e.derived(() =>
|
|
12137
|
+
const p = e.derived(() => o.snapshot.pointer), v = e.derived(() => Qo(i.presentationProperties, s.renderedSlides.length));
|
|
12136
12138
|
function f(q) {
|
|
12137
12139
|
switch (q) {
|
|
12138
12140
|
case "next":
|
|
@@ -12450,7 +12452,7 @@ function kA(a, t) {
|
|
|
12450
12452
|
if (e.get(i)) {
|
|
12451
12453
|
e.set(s, !0);
|
|
12452
12454
|
try {
|
|
12453
|
-
await
|
|
12455
|
+
await qi(e.get(i).key), e.set(i, void 0);
|
|
12454
12456
|
} catch {
|
|
12455
12457
|
} finally {
|
|
12456
12458
|
e.set(s, !1);
|
|
@@ -12516,7 +12518,7 @@ function kA(a, t) {
|
|
|
12516
12518
|
}), e.append(a, d), e.pop();
|
|
12517
12519
|
}
|
|
12518
12520
|
e.delegate(["click"]);
|
|
12519
|
-
function
|
|
12521
|
+
function Vi() {
|
|
12520
12522
|
return `guide-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 8)}`;
|
|
12521
12523
|
}
|
|
12522
12524
|
var TA = e.from_html('<button type="button"><span class="pptx-svelte-rbcmd-icon svelte-1y6duix" aria-hidden="true"><!></span> <span> </span></button>');
|
|
@@ -12778,7 +12780,7 @@ function LA(a, t, n, i) {
|
|
|
12778
12780
|
const r = dr(a, t), s = `editor:${n}`, l = r.findIndex((d) => d.key === i);
|
|
12779
12781
|
if (l < 0 || !r.some((d) => d.key === s)) return [...a];
|
|
12780
12782
|
const o = Xd(r, s, l);
|
|
12781
|
-
return
|
|
12783
|
+
return Yo(a, o);
|
|
12782
12784
|
}
|
|
12783
12785
|
var BA = {
|
|
12784
12786
|
onClick: "pptx.animation.trigger.onClick",
|
|
@@ -12997,7 +12999,7 @@ function n6(a, t) {
|
|
|
12997
12999
|
var v = e6(), f = e.sibling(e.child(v), 2), h = e.only_child(f, !0);
|
|
12998
13000
|
e.reset(v), e.template_effect((m, g) => {
|
|
12999
13001
|
v.disabled = t.disabled, e.set_attribute(v, "title", m), e.set_text(h, g);
|
|
13000
|
-
}, [() => n(
|
|
13002
|
+
}, [() => n(Ai(e.get(p).id)), () => n(Ai(e.get(p).id))]), e.delegated("click", v, () => t.onapply?.(e.get(p).id)), e.append(u, v);
|
|
13001
13003
|
}), e.reset(c), e.reset(l), e.template_effect((u) => e.set_text(d, u), [() => n(ac(s))]), e.append(r, l);
|
|
13002
13004
|
}), e.reset(i), e.template_effect((r) => e.set_attribute(i, "aria-label", r), [() => n("pptx.animations.motionPathGalleryAria")]), e.append(a, i), e.pop();
|
|
13003
13005
|
}
|
|
@@ -13475,7 +13477,7 @@ var I6 = /* @__PURE__ */ new Set([
|
|
|
13475
13477
|
"$$events",
|
|
13476
13478
|
"$$legacy"
|
|
13477
13479
|
]);
|
|
13478
|
-
function
|
|
13480
|
+
function Ki(a, t) {
|
|
13479
13481
|
let n = e.rest_props(t, I6);
|
|
13480
13482
|
const i = {
|
|
13481
13483
|
name: "badge-check",
|
|
@@ -13909,8 +13911,8 @@ function ez(a, t) {
|
|
|
13909
13911
|
var tz = e.from_html('<button type="button"></button>'), vl = e.from_html('<p class="svelte-dgy1er"> </p>'), az = e.from_html('<p class="notice svelte-dgy1er"> </p>'), nz = e.from_html('<p class="svelte-dgy1er"> </p> <button type="button" class="primary svelte-dgy1er"> </button>', 1), iz = e.from_html('<section class="card svelte-dgy1er"><h2 class="svelte-dgy1er"> </h2> <!></section>'), rz = e.from_html('<div class="pptx-svelte-account svelte-dgy1er"><section class="card svelte-dgy1er"><h2 class="svelte-dgy1er"> </h2> <div class="profile-row svelte-dgy1er"><span class="avatar svelte-dgy1er"> </span> <label class="name-field svelte-dgy1er"><span> </span> <input type="text" class="svelte-dgy1er"/></label></div> <span class="swatches-label svelte-dgy1er"> </span> <div class="swatch-row svelte-dgy1er" role="group"></div></section> <section class="card svelte-dgy1er"><h2 class="svelte-dgy1er"> </h2> <!> <button type="button" class="secondary svelte-dgy1er"> </button> <!> <p class="muted svelte-dgy1er"> </p></section> <section class="card svelte-dgy1er"><h2 class="svelte-dgy1er"> </h2> <p class="svelte-dgy1er">pptx-svelte-viewer</p> <p class="muted svelte-dgy1er"> </p></section> <!></div>');
|
|
13910
13912
|
function sz(a, t) {
|
|
13911
13913
|
e.push(t, !0);
|
|
13912
|
-
const n = oe(), i = "4.1.
|
|
13913
|
-
let r = e.state(e.proxy(
|
|
13914
|
+
const n = oe(), i = "4.1.3";
|
|
13915
|
+
let r = e.state(e.proxy(Ti().profile ?? { ...ds })), s = e.state(void 0), l = e.state(!1);
|
|
13914
13916
|
async function o() {
|
|
13915
13917
|
e.set(s, await Fp(), !0);
|
|
13916
13918
|
}
|
|
@@ -14180,7 +14182,7 @@ function uu(a, t) {
|
|
|
14180
14182
|
protect: lu,
|
|
14181
14183
|
inspect: Xt,
|
|
14182
14184
|
embedFonts: cu,
|
|
14183
|
-
signatures:
|
|
14185
|
+
signatures: Ki,
|
|
14184
14186
|
versionHistory: A6,
|
|
14185
14187
|
saveAsPptx: ul,
|
|
14186
14188
|
saveAsPpsx: Qc,
|
|
@@ -14546,7 +14548,7 @@ function pu(a, t) {
|
|
|
14546
14548
|
var i = jz(), r = e.child(i), s = e.sibling(r, 2), l = e.child(s), o = e.child(l), d = e.child(o);
|
|
14547
14549
|
let c;
|
|
14548
14550
|
var u = e.child(d), p = (C) => {
|
|
14549
|
-
|
|
14551
|
+
Ki(C, {
|
|
14550
14552
|
size: 17,
|
|
14551
14553
|
"aria-hidden": "true"
|
|
14552
14554
|
});
|
|
@@ -14568,7 +14570,7 @@ function pu(a, t) {
|
|
|
14568
14570
|
}), e.reset(m), e.reset(l);
|
|
14569
14571
|
var y = e.sibling(l, 2), S = e.child(y), w = (C) => {
|
|
14570
14572
|
var P = Lz(), k = e.first_child(P), E = e.child(k), I = e.child(E);
|
|
14571
|
-
|
|
14573
|
+
Ki(I, {
|
|
14572
14574
|
size: 14,
|
|
14573
14575
|
"aria-hidden": "true"
|
|
14574
14576
|
}), e.reset(E);
|
|
@@ -14621,7 +14623,7 @@ var Uz = /* @__PURE__ */ new Set([
|
|
|
14621
14623
|
"$$events",
|
|
14622
14624
|
"$$legacy"
|
|
14623
14625
|
]);
|
|
14624
|
-
function
|
|
14626
|
+
function Wi(a, t) {
|
|
14625
14627
|
let n = e.rest_props(t, Uz);
|
|
14626
14628
|
const i = {
|
|
14627
14629
|
name: "check",
|
|
@@ -14680,7 +14682,7 @@ function hu(a, t) {
|
|
|
14680
14682
|
});
|
|
14681
14683
|
var X = e.sibling(Y), $ = (ae) => {
|
|
14682
14684
|
var re = Vz(), pe = e.child(re);
|
|
14683
|
-
|
|
14685
|
+
Wi(pe, {
|
|
14684
14686
|
size: 14,
|
|
14685
14687
|
"aria-hidden": "true"
|
|
14686
14688
|
}), e.reset(re), e.append(ae, re);
|
|
@@ -14947,7 +14949,7 @@ function dD(a, t) {
|
|
|
14947
14949
|
e.get(i) && t.editor.patchSelected(ha(e.get(i), _, b)), t.editor.recordRecentColor(_);
|
|
14948
14950
|
}
|
|
14949
14951
|
function p(_, b) {
|
|
14950
|
-
e.get(i) && t.editor.patchSelected(
|
|
14952
|
+
e.get(i) && t.editor.patchSelected(Hi(e.get(i), _, b)), t.editor.recordRecentColor(_);
|
|
14951
14953
|
}
|
|
14952
14954
|
function v(_) {
|
|
14953
14955
|
const b = Number(_);
|
|
@@ -15427,10 +15429,10 @@ function qD(a, t) {
|
|
|
15427
15429
|
return e.get(p);
|
|
15428
15430
|
},
|
|
15429
15431
|
onselect: (q) => {
|
|
15430
|
-
e.get(o) && f((B) =>
|
|
15432
|
+
e.get(o) && f((B) => Ui(B, q)), t.editor.recordRecentColor(q);
|
|
15431
15433
|
},
|
|
15432
15434
|
onselectTheme: (q) => {
|
|
15433
|
-
e.get(o) && f((B) =>
|
|
15435
|
+
e.get(o) && f((B) => Ui(B, q.hex, q.ref)), t.editor.recordRecentColor(q.hex);
|
|
15434
15436
|
}
|
|
15435
15437
|
});
|
|
15436
15438
|
}
|
|
@@ -16589,7 +16591,7 @@ function yu(a, t) {
|
|
|
16589
16591
|
() => n("pptx.ribbon.insertEquation"),
|
|
16590
16592
|
() => n("pptx.ribbon.equation"),
|
|
16591
16593
|
() => n("pptx.hyperlinkDialog.title")
|
|
16592
|
-
]), e.delegated("click", f, () => t.editor.insertElement(
|
|
16594
|
+
]), e.delegated("click", f, () => t.editor.insertElement(ir())), e.delegated("click", y, () => e.get(i)?.click()), e.delegated("click", x, () => e.get(r)?.click()), e.delegated("click", T, () => t.editor.insertElement(ed())), e.delegated("click", E, d), e.delegated("click", B, () => e.set(l, !0)), e.delegated("change", U, u), e.delegated("change", L, p), e.append(a, v), e.pop();
|
|
16593
16595
|
}
|
|
16594
16596
|
e.delegate(["click", "change"]);
|
|
16595
16597
|
var UO = /* @__PURE__ */ new Set([
|
|
@@ -17018,7 +17020,7 @@ var wu = [
|
|
|
17018
17020
|
], o7 = "home", d7 = e.from_html('<button type="button" role="tab"> </button>'), c7 = e.from_html('<button type="button" class="pptx-svelte-ribbon-record svelte-5nxmc0"><span class="pptx-svelte-ribbon-record-dot svelte-5nxmc0" aria-hidden="true"></span> <span> </span></button>'), u7 = e.from_html('<button type="button"><svg viewBox="0 0 16 16" aria-hidden="true" class="svelte-5nxmc0"><circle cx="4" cy="8" r="1.6" fill="none" stroke="currentColor" stroke-width="1.3"></circle><circle cx="12" cy="3.5" r="1.6" fill="none" stroke="currentColor" stroke-width="1.3"></circle><circle cx="12" cy="12.5" r="1.6" fill="none" stroke="currentColor" stroke-width="1.3"></circle><path d="M5.4 7.2 10.6 4.3M5.4 8.8 10.6 11.7" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linecap="round"></path></svg> <span> </span></button>'), v7 = e.from_html('<div class="pptx-svelte-ribbon-tabrow svelte-5nxmc0"><div class="pptx-svelte-ribbon-tabs svelte-5nxmc0" role="tablist"></div> <div class="pptx-svelte-ribbon-tabrow-actions svelte-5nxmc0"><!> <!></div></div>');
|
|
17019
17021
|
function p7(a, t) {
|
|
17020
17022
|
e.push(t, !0);
|
|
17021
|
-
const n = e.prop(t, "collabActive", 3, !1), i = oe(), r = Rt(), s = e.derived(() =>
|
|
17023
|
+
const n = e.prop(t, "collabActive", 3, !1), i = oe(), r = Rt(), s = e.derived(() => nd(wu, t.hiddenActions));
|
|
17022
17024
|
var l = v7(), o = e.child(l);
|
|
17023
17025
|
e.each(o, 21, () => e.get(s), (m) => m.id, (m, g) => {
|
|
17024
17026
|
var y = d7();
|
|
@@ -17987,8 +17989,8 @@ function Eu(a, t) {
|
|
|
17987
17989
|
}
|
|
17988
17990
|
function h() {
|
|
17989
17991
|
if (!e.get(v)) return;
|
|
17990
|
-
const W =
|
|
17991
|
-
W &&
|
|
17992
|
+
const W = md(e.get(v));
|
|
17993
|
+
W && rr(W.dataUrl);
|
|
17992
17994
|
}
|
|
17993
17995
|
function m(W) {
|
|
17994
17996
|
const Y = W.currentTarget, V = Y.files?.[0];
|
|
@@ -18711,7 +18713,7 @@ function I8(a, t) {
|
|
|
18711
18713
|
return t.fileName;
|
|
18712
18714
|
},
|
|
18713
18715
|
onclose: () => e.set(i, "home"),
|
|
18714
|
-
oncreatepresentation: (K) => t.editor.setSlides(
|
|
18716
|
+
oncreatepresentation: (K) => t.editor.setSlides(dd(K)),
|
|
18715
18717
|
get ondownload() {
|
|
18716
18718
|
return t.ondownload;
|
|
18717
18719
|
},
|
|
@@ -19360,7 +19362,7 @@ var iq = /* @__PURE__ */ new Set([
|
|
|
19360
19362
|
]), rq = e.from_html('<button type="button"> </button>'), sq = e.from_html('<div class="pptx-svelte-mobile-menu svelte-11nbb3j"><div class="pptx-svelte-mobile-menu-chips svelte-11nbb3j"></div> <div class="pptx-svelte-mobile-menu-body svelte-11nbb3j"><!></div></div>'), lq = e.from_html("<!> <!> <!> <!> <!>", 1);
|
|
19361
19363
|
function oq(a, t) {
|
|
19362
19364
|
e.push(t, !0), e.rest_props(t, iq);
|
|
19363
|
-
const n = oe(), i = e.derived(() =>
|
|
19365
|
+
const n = oe(), i = e.derived(() => nd(wu, t.hiddenActions));
|
|
19364
19366
|
let r = e.state("home");
|
|
19365
19367
|
function s(C) {
|
|
19366
19368
|
e.set(r, e.get(r) === C ? "home" : C, !0);
|
|
@@ -19596,7 +19598,7 @@ function oq(a, t) {
|
|
|
19596
19598
|
return t.fileName;
|
|
19597
19599
|
},
|
|
19598
19600
|
onclose: () => e.set(r, "home"),
|
|
19599
|
-
oncreatepresentation: (K) => t.editor.setSlides(
|
|
19601
|
+
oncreatepresentation: (K) => t.editor.setSlides(dd(K)),
|
|
19600
19602
|
get ondownload() {
|
|
19601
19603
|
return t.ondownload;
|
|
19602
19604
|
},
|
|
@@ -20262,7 +20264,7 @@ function zq(a, t) {
|
|
|
20262
20264
|
},
|
|
20263
20265
|
onsnapToShapechange: (F) => l.snapToShape = F,
|
|
20264
20266
|
onaddguide: (F) => {
|
|
20265
|
-
l.guides = [...l.guides,
|
|
20267
|
+
l.guides = [...l.guides, ki(Vi(), F, i.canvasSize)], l.showGuides = !0;
|
|
20266
20268
|
},
|
|
20267
20269
|
get exportUi() {
|
|
20268
20270
|
return f;
|
|
@@ -20467,7 +20469,7 @@ function zq(a, t) {
|
|
|
20467
20469
|
},
|
|
20468
20470
|
onsnapToShapechange: (U) => l.snapToShape = U,
|
|
20469
20471
|
onaddguide: (U) => {
|
|
20470
|
-
l.guides = [...l.guides,
|
|
20472
|
+
l.guides = [...l.guides, ki(Vi(), U, i.canvasSize)], l.showGuides = !0;
|
|
20471
20473
|
},
|
|
20472
20474
|
get exportUi() {
|
|
20473
20475
|
return f;
|
|
@@ -20574,14 +20576,14 @@ function Oq(a) {
|
|
|
20574
20576
|
};
|
|
20575
20577
|
}
|
|
20576
20578
|
function qq(a, t) {
|
|
20577
|
-
return
|
|
20579
|
+
return Zo({ slideMasters: [a] }, {
|
|
20578
20580
|
tab: "slides",
|
|
20579
20581
|
masterIndex: 0,
|
|
20580
20582
|
layoutIndex: t
|
|
20581
20583
|
});
|
|
20582
20584
|
}
|
|
20583
20585
|
function Rq(a, t, n) {
|
|
20584
|
-
return
|
|
20586
|
+
return Zo({ slideMasters: a }, {
|
|
20585
20587
|
tab: "slides",
|
|
20586
20588
|
masterIndex: t,
|
|
20587
20589
|
layoutIndex: n
|
|
@@ -20590,7 +20592,7 @@ function Rq(a, t, n) {
|
|
|
20590
20592
|
var Nq = e.from_html('<div data-pptx-connection-site=""></div>'), Fq = e.from_html('<button type="button" data-pptx-compact=""></button>'), Lq = e.from_html('<div class="pptx-svelte-connector-endpoints svelte-939cvl" data-pptx-connector-endpoints=""><!> <!></div>');
|
|
20591
20593
|
function Bq(a, t) {
|
|
20592
20594
|
e.push(t, !0);
|
|
20593
|
-
const n = e.prop(t, "drag", 3, null), i = oe(), r = e.derived(() => gw(t.connector)), s = e.derived(() => n() ? jd(t.elements.filter((u) => u.id !== t.connector.id)) : []), l = e.derived(() => n() ?
|
|
20595
|
+
const n = e.prop(t, "drag", 3, null), i = oe(), r = e.derived(() => gw(t.connector)), s = e.derived(() => n() ? jd(t.elements.filter((u) => u.id !== t.connector.id)) : []), l = e.derived(() => n() ? sd(e.get(s), n().x, n().y) : null);
|
|
20594
20596
|
var o = Lq(), d = e.child(o);
|
|
20595
20597
|
e.each(d, 17, () => e.get(s), (u) => `${u.elementId}-${u.siteIndex}`, (u, p) => {
|
|
20596
20598
|
var v = Nq();
|
|
@@ -20834,7 +20836,7 @@ function Jq(a, t) {
|
|
|
20834
20836
|
}
|
|
20835
20837
|
e.delegate(["pointerdown"]);
|
|
20836
20838
|
var Qq = e.from_html("<!> <!> <!>", 1);
|
|
20837
|
-
function
|
|
20839
|
+
function Zi(a, t) {
|
|
20838
20840
|
e.push(t, !0);
|
|
20839
20841
|
const n = e.prop(t, "spellCheck", 3, !1), i = e.derived(() => t.controller.editingElement), r = e.derived(() => e.get(i) ? {
|
|
20840
20842
|
x: e.get(i).x,
|
|
@@ -20962,7 +20964,7 @@ function kl(a, t) {
|
|
|
20962
20964
|
}), e.append(a, s), e.pop();
|
|
20963
20965
|
}
|
|
20964
20966
|
var aR = e.from_svg("<ellipse></ellipse>"), Tl = e.from_svg("<g></g>"), nR = e.from_svg("<circle></circle>"), iR = e.from_svg('<path fill="none" stroke-linecap="round" stroke-linejoin="round"></path>'), rR = e.from_html('<div class="pptx-svelte-ink-overlay svelte-itz821" aria-hidden="true"><svg class="pptx-svelte-ink-overlay-svg svelte-itz821" preserveAspectRatio="none"><!></svg></div>');
|
|
20965
|
-
function
|
|
20967
|
+
function Gi(a, t) {
|
|
20966
20968
|
e.push(t, !0);
|
|
20967
20969
|
const n = e.derived(() => t.ink.liveStrokeView);
|
|
20968
20970
|
var i = e.comment(), r = e.first_child(i), s = (l) => {
|
|
@@ -21338,7 +21340,7 @@ function DR(a, t) {
|
|
|
21338
21340
|
editable: !0
|
|
21339
21341
|
});
|
|
21340
21342
|
var T = e.sibling(b, 2);
|
|
21341
|
-
|
|
21343
|
+
Zi(T, {
|
|
21342
21344
|
get controller() {
|
|
21343
21345
|
return t.controller;
|
|
21344
21346
|
},
|
|
@@ -21347,7 +21349,7 @@ function DR(a, t) {
|
|
|
21347
21349
|
}
|
|
21348
21350
|
});
|
|
21349
21351
|
var C = e.sibling(T, 2);
|
|
21350
|
-
|
|
21352
|
+
Gi(C, {
|
|
21351
21353
|
get ink() {
|
|
21352
21354
|
return t.editor.inkOps;
|
|
21353
21355
|
},
|
|
@@ -21414,7 +21416,7 @@ function DR(a, t) {
|
|
|
21414
21416
|
}
|
|
21415
21417
|
}), e.reset(b);
|
|
21416
21418
|
var E = e.sibling(b, 2);
|
|
21417
|
-
|
|
21419
|
+
Zi(E, {
|
|
21418
21420
|
get controller() {
|
|
21419
21421
|
return t.controller;
|
|
21420
21422
|
},
|
|
@@ -21423,7 +21425,7 @@ function DR(a, t) {
|
|
|
21423
21425
|
}
|
|
21424
21426
|
});
|
|
21425
21427
|
var I = e.sibling(E, 2);
|
|
21426
|
-
|
|
21428
|
+
Gi(I, {
|
|
21427
21429
|
get ink() {
|
|
21428
21430
|
return t.editor.inkOps;
|
|
21429
21431
|
},
|
|
@@ -22201,7 +22203,7 @@ var b9 = class {
|
|
|
22201
22203
|
timers: this.#l,
|
|
22202
22204
|
buildHandle: this.#o,
|
|
22203
22205
|
onPlayActionSound: a.onPlayActionSound,
|
|
22204
|
-
playSound:
|
|
22206
|
+
playSound: rr,
|
|
22205
22207
|
stopSound: Gd,
|
|
22206
22208
|
frameRoot: a.frameRoot
|
|
22207
22209
|
};
|
|
@@ -22333,7 +22335,7 @@ function w9(a, t, n) {
|
|
|
22333
22335
|
previousId: a.getActiveCustomShowId?.() ?? null,
|
|
22334
22336
|
originIndex: a.getCurrentIndex()
|
|
22335
22337
|
}), a.setActiveCustomShowId?.(i);
|
|
22336
|
-
const l =
|
|
22338
|
+
const l = xi(Ed(a.getSlides(), s));
|
|
22337
22339
|
l !== void 0 && a.navigate(l);
|
|
22338
22340
|
},
|
|
22339
22341
|
openFile: (i) => vs(i),
|
|
@@ -22454,7 +22456,7 @@ var S9 = class {
|
|
|
22454
22456
|
return;
|
|
22455
22457
|
}
|
|
22456
22458
|
if (this.#a.getLoopContinuously?.()) {
|
|
22457
|
-
const i =
|
|
22459
|
+
const i = xi(n);
|
|
22458
22460
|
i !== void 0 && this.#a.navigate(i);
|
|
22459
22461
|
return;
|
|
22460
22462
|
}
|
|
@@ -22471,7 +22473,7 @@ var S9 = class {
|
|
|
22471
22473
|
return Oy(a, this.#d());
|
|
22472
22474
|
}
|
|
22473
22475
|
firstSlide() {
|
|
22474
|
-
const a =
|
|
22476
|
+
const a = xi(this.#d());
|
|
22475
22477
|
a !== void 0 && this.#a.navigate(a);
|
|
22476
22478
|
}
|
|
22477
22479
|
lastSlide() {
|
|
@@ -22672,7 +22674,7 @@ function Au(a) {
|
|
|
22672
22674
|
function Dl(a, t = "|") {
|
|
22673
22675
|
return a.map((n) => Ou(n)).join(t);
|
|
22674
22676
|
}
|
|
22675
|
-
function
|
|
22677
|
+
function Xi(a, t) {
|
|
22676
22678
|
return typeof t == "bigint" ? t.toString() : t;
|
|
22677
22679
|
}
|
|
22678
22680
|
function Mr(a) {
|
|
@@ -23137,7 +23139,7 @@ function ft(a) {
|
|
|
23137
23139
|
}
|
|
23138
23140
|
function $9() {
|
|
23139
23141
|
const a = this._zod;
|
|
23140
|
-
return a.message ?? (a.message = JSON.stringify(a.def,
|
|
23142
|
+
return a.message ?? (a.message = JSON.stringify(a.def, Xi, 2)), a.message;
|
|
23141
23143
|
}
|
|
23142
23144
|
function eN(a) {
|
|
23143
23145
|
this._zod.message = a;
|
|
@@ -23343,20 +23345,20 @@ function ON(a) {
|
|
|
23343
23345
|
return new RegExp(`^${a}$`);
|
|
23344
23346
|
}
|
|
23345
23347
|
var qN = /* @__PURE__ */ ON(ju);
|
|
23346
|
-
function
|
|
23348
|
+
function Yi(a) {
|
|
23347
23349
|
const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
|
|
23348
23350
|
return typeof a.precision == "number" ? a.precision === -1 ? `${t}` : a.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${a.precision}}` : a.seconds ? `${t}:[0-5]\\d(?:\\.\\d+)?` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
|
|
23349
23351
|
}
|
|
23350
23352
|
function RN(a) {
|
|
23351
|
-
return new RegExp(`^${
|
|
23353
|
+
return new RegExp(`^${Yi(a)}$`);
|
|
23352
23354
|
}
|
|
23353
23355
|
function NN(a) {
|
|
23354
23356
|
const t = ["Z"];
|
|
23355
23357
|
a.offset && t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
|
|
23356
|
-
const n = `${
|
|
23358
|
+
const n = `${Yi({
|
|
23357
23359
|
precision: a.precision,
|
|
23358
23360
|
seconds: !0
|
|
23359
|
-
})}(?:${t.join("|")})`, i = a.local ? `${n}|${
|
|
23361
|
+
})}(?:${t.join("|")})`, i = a.local ? `${n}|${Yi({ precision: a.precision })}` : n;
|
|
23360
23362
|
return new RegExp(`^${ju}T(?:${i})$`);
|
|
23361
23363
|
}
|
|
23362
23364
|
var FN = (a) => {
|
|
@@ -24283,7 +24285,7 @@ var HF = /* @__PURE__ */ be("$ZodUnion", (a, t) => {
|
|
|
24283
24285
|
return s instanceof Promise || l instanceof Promise ? Promise.all([s, l]).then(([o, d]) => Vl(n, o, d)) : Vl(n, s, l);
|
|
24284
24286
|
};
|
|
24285
24287
|
});
|
|
24286
|
-
function
|
|
24288
|
+
function Ji(a, t) {
|
|
24287
24289
|
if (a === t) return {
|
|
24288
24290
|
valid: !0,
|
|
24289
24291
|
data: a
|
|
@@ -24300,7 +24302,7 @@ function Yi(a, t) {
|
|
|
24300
24302
|
Object.prototype.hasOwnProperty.call(r, "__proto__") && delete r.__proto__;
|
|
24301
24303
|
for (const s of i) {
|
|
24302
24304
|
if (s === "__proto__") continue;
|
|
24303
|
-
const l =
|
|
24305
|
+
const l = Ji(a[s], t[s]);
|
|
24304
24306
|
if (!l.valid) return {
|
|
24305
24307
|
valid: !1,
|
|
24306
24308
|
mergeErrorPath: [s, ...l.mergeErrorPath]
|
|
@@ -24319,7 +24321,7 @@ function Yi(a, t) {
|
|
|
24319
24321
|
};
|
|
24320
24322
|
const n = [];
|
|
24321
24323
|
for (let i = 0; i < a.length; i++) {
|
|
24322
|
-
const r = a[i], s = t[i], l =
|
|
24324
|
+
const r = a[i], s = t[i], l = Ji(r, s);
|
|
24323
24325
|
if (!l.valid) return {
|
|
24324
24326
|
valid: !1,
|
|
24325
24327
|
mergeErrorPath: [i, ...l.mergeErrorPath]
|
|
@@ -24362,7 +24364,7 @@ function Vl(a, t, n) {
|
|
|
24362
24364
|
});
|
|
24363
24365
|
for (const u of o) !c.includes(u) && s.has(u) && a.issues.push(s.get(u));
|
|
24364
24366
|
}
|
|
24365
|
-
const d =
|
|
24367
|
+
const d = Ji(t.value, n.value);
|
|
24366
24368
|
if (!d.valid) {
|
|
24367
24369
|
if (Vt(a)) return a;
|
|
24368
24370
|
throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(d.mergeErrorPath)}`);
|
|
@@ -24624,7 +24626,7 @@ var nL = class extends Error {
|
|
|
24624
24626
|
constructor() {
|
|
24625
24627
|
super("Cannot parse a reference cycle that closes through a transform"), this.name = "ZodCyclicError";
|
|
24626
24628
|
}
|
|
24627
|
-
},
|
|
24629
|
+
}, Qi = "~memo", Jl = [];
|
|
24628
24630
|
function pi(a) {
|
|
24629
24631
|
return a.map((t) => t.path ? {
|
|
24630
24632
|
...t,
|
|
@@ -24689,11 +24691,11 @@ var La, Ba = [], rL = {
|
|
|
24689
24691
|
return a._zod.parse = s, a._zod.run === l && (a._zod.run = s), s(o, d);
|
|
24690
24692
|
const c = o.value;
|
|
24691
24693
|
if (c === null || typeof c != "object") return s(o, d);
|
|
24692
|
-
let u = d[
|
|
24694
|
+
let u = d[Qi];
|
|
24693
24695
|
u || (u = {
|
|
24694
24696
|
buckets: /* @__PURE__ */ new Map(),
|
|
24695
24697
|
backEdges: void 0
|
|
24696
|
-
}, d[
|
|
24698
|
+
}, d[Qi] = u);
|
|
24697
24699
|
let p;
|
|
24698
24700
|
i === d ? p = r : (p = iL(u, a), i = d, r = p);
|
|
24699
24701
|
const v = p.get(c);
|
|
@@ -24713,7 +24715,7 @@ function sL() {
|
|
|
24713
24715
|
return rL;
|
|
24714
24716
|
}
|
|
24715
24717
|
function lL(a, t) {
|
|
24716
|
-
const n = a[
|
|
24718
|
+
const n = a[Qi]?.backEdges;
|
|
24717
24719
|
return n !== void 0 && t !== null && typeof t == "object" && n.has(t);
|
|
24718
24720
|
}
|
|
24719
24721
|
var oL = () => {
|
|
@@ -25511,7 +25513,7 @@ function ro(a) {
|
|
|
25511
25513
|
const t = a.additionalProperties;
|
|
25512
25514
|
return t === void 0 || t === !1 || typeof t != "object" || t === null ? null : Object.keys(t).length ? t : null;
|
|
25513
25515
|
}
|
|
25514
|
-
function
|
|
25516
|
+
function $i(a) {
|
|
25515
25517
|
const t = [];
|
|
25516
25518
|
for (const s of a) {
|
|
25517
25519
|
if (typeof s != "object" || s.type !== "object") return null;
|
|
@@ -25527,7 +25529,7 @@ function Qi(a) {
|
|
|
25527
25529
|
const u = c.properties?.[l] ?? ro(c);
|
|
25528
25530
|
u != null && (o.some((p) => JSON.stringify(p) === JSON.stringify(u)) || o.push(u));
|
|
25529
25531
|
}
|
|
25530
|
-
const d = o.length === 1 ? o[0] :
|
|
25532
|
+
const d = o.length === 1 ? o[0] : $i(o) ?? { allOf: o };
|
|
25531
25533
|
rt(n, l, d);
|
|
25532
25534
|
}
|
|
25533
25535
|
for (const l of s.required ?? []) i.add(l);
|
|
@@ -25553,11 +25555,11 @@ function rB(a) {
|
|
|
25553
25555
|
for (const r of iv) if (r in a) return;
|
|
25554
25556
|
const n = t.filter((r) => io.some((s) => Array.isArray(r[s])));
|
|
25555
25557
|
let i = null;
|
|
25556
|
-
if (!n.length) i =
|
|
25558
|
+
if (!n.length) i = $i(t);
|
|
25557
25559
|
else {
|
|
25558
25560
|
const r = n[0], s = io.find((d) => Array.isArray(r[d]));
|
|
25559
25561
|
if (Object.keys(r).length !== 1) return;
|
|
25560
|
-
const l = t.filter((d) => d !== r), o = r[s].map((d) =>
|
|
25562
|
+
const l = t.filter((d) => d !== r), o = r[s].map((d) => $i([...l, d]));
|
|
25561
25563
|
if (o.some((d) => !d)) return;
|
|
25562
25564
|
i = { [s]: o };
|
|
25563
25565
|
}
|
|
@@ -25886,9 +25888,9 @@ var PB = (a, t) => {
|
|
|
25886
25888
|
Fu.init(a, t), a.name = "ZodError";
|
|
25887
25889
|
const n = Object.getPrototypeOf(a);
|
|
25888
25890
|
so.has(n) || (so.add(n), ja(n, "format", (i) => (r) => iN(i, r)), ja(n, "flatten", (i) => (r) => nN(i, r)), ja(n, "addIssue", (i) => (r) => {
|
|
25889
|
-
i.issues.push(r), i.message = JSON.stringify(i.issues,
|
|
25891
|
+
i.issues.push(r), i.message = JSON.stringify(i.issues, Xi, 2);
|
|
25890
25892
|
}), ja(n, "addIssues", (i) => (r) => {
|
|
25891
|
-
i.issues.push(...r), i.message = JSON.stringify(i.issues,
|
|
25893
|
+
i.issues.push(...r), i.message = JSON.stringify(i.issues, Xi, 2);
|
|
25892
25894
|
}), Object.defineProperty(n, "isEmpty", {
|
|
25893
25895
|
configurable: !0,
|
|
25894
25896
|
enumerable: !1,
|
|
@@ -26308,7 +26310,7 @@ function Ee(a) {
|
|
|
26308
26310
|
var pj = /* @__PURE__ */ be("ZodUnknown", (a, t) => {
|
|
26309
26311
|
NF.init(a, t), Xe.init(a, t), a._zod.processJSONSchema = (n, i, r) => vB(a, n, i, r);
|
|
26310
26312
|
});
|
|
26311
|
-
function
|
|
26313
|
+
function er() {
|
|
26312
26314
|
return /* @__PURE__ */ UL(pj);
|
|
26313
26315
|
}
|
|
26314
26316
|
var hj = /* @__PURE__ */ be("ZodNever", (a, t) => {
|
|
@@ -26354,13 +26356,13 @@ var mj = /* @__PURE__ */ be("ZodObject", (a, t) => {
|
|
|
26354
26356
|
passthrough() {
|
|
26355
26357
|
return this.clone({
|
|
26356
26358
|
...this._zod.def,
|
|
26357
|
-
catchall:
|
|
26359
|
+
catchall: er()
|
|
26358
26360
|
});
|
|
26359
26361
|
},
|
|
26360
26362
|
loose() {
|
|
26361
26363
|
return this.clone({
|
|
26362
26364
|
...this._zod.def,
|
|
26363
|
-
catchall:
|
|
26365
|
+
catchall: er()
|
|
26364
26366
|
});
|
|
26365
26367
|
},
|
|
26366
26368
|
strict() {
|
|
@@ -26444,14 +26446,14 @@ function Lr(a, t, n) {
|
|
|
26444
26446
|
...ze(n)
|
|
26445
26447
|
});
|
|
26446
26448
|
}
|
|
26447
|
-
var
|
|
26449
|
+
var tr = /* @__PURE__ */ be("ZodEnum", (a, t) => {
|
|
26448
26450
|
WF.init(a, t), Xe.init(a, t), a._zod.processJSONSchema = (i, r, s) => pB(a, i, r, s), a.enum = t.entries, a.options = Object.values(t.entries);
|
|
26449
26451
|
const n = new Set(Object.keys(t.entries));
|
|
26450
26452
|
a.extract = (i, r) => {
|
|
26451
26453
|
const s = {};
|
|
26452
26454
|
for (const l of i) if (n.has(l)) s[l] = t.entries[l];
|
|
26453
26455
|
else throw new Error(`Key ${l} not found in enum`);
|
|
26454
|
-
return new
|
|
26456
|
+
return new tr({
|
|
26455
26457
|
...t,
|
|
26456
26458
|
checks: [],
|
|
26457
26459
|
...ze(r),
|
|
@@ -26461,7 +26463,7 @@ var er = /* @__PURE__ */ be("ZodEnum", (a, t) => {
|
|
|
26461
26463
|
const s = { ...t.entries };
|
|
26462
26464
|
for (const l of i) if (n.has(l)) delete s[l];
|
|
26463
26465
|
else throw new Error(`Key ${l} not found in enum`);
|
|
26464
|
-
return new
|
|
26466
|
+
return new tr({
|
|
26465
26467
|
...t,
|
|
26466
26468
|
checks: [],
|
|
26467
26469
|
...ze(r),
|
|
@@ -26471,7 +26473,7 @@ var er = /* @__PURE__ */ be("ZodEnum", (a, t) => {
|
|
|
26471
26473
|
});
|
|
26472
26474
|
function Le(a, t) {
|
|
26473
26475
|
const n = Array.isArray(a) ? Object.fromEntries(a.map((i) => [i, i])) : a;
|
|
26474
|
-
return new
|
|
26476
|
+
return new tr({
|
|
26475
26477
|
type: "enum",
|
|
26476
26478
|
entries: n,
|
|
26477
26479
|
...ze(t)
|
|
@@ -26749,12 +26751,12 @@ function Kj(a, t) {
|
|
|
26749
26751
|
const r = i.shapeStyle;
|
|
26750
26752
|
if (t.fillThemeColor !== void 0) {
|
|
26751
26753
|
r.fillColorRef = t.fillThemeColor;
|
|
26752
|
-
const s =
|
|
26754
|
+
const s = Ri(t.fillThemeColor, a.pptxData.themeColorMap);
|
|
26753
26755
|
t.fillColor !== void 0 ? r.fillColor = t.fillColor : s && (r.fillColor = s);
|
|
26754
26756
|
} else t.fillColor !== void 0 && (r.fillColor = t.fillColor, r.fillColorRef = void 0);
|
|
26755
26757
|
if (t.fillMode !== void 0 && (r.fillMode = t.fillMode), t.fillGradientStops !== void 0 && (r.fillGradientStops = t.fillGradientStops), t.fillGradientAngle !== void 0 && (r.fillGradientAngle = t.fillGradientAngle), t.fillGradientType !== void 0 && (r.fillGradientType = t.fillGradientType), t.fillOpacity !== void 0 && (r.fillOpacity = t.fillOpacity), t.strokeThemeColor !== void 0) {
|
|
26756
26758
|
r.strokeColorRef = t.strokeThemeColor;
|
|
26757
|
-
const s =
|
|
26759
|
+
const s = Ri(t.strokeThemeColor, a.pptxData.themeColorMap);
|
|
26758
26760
|
t.strokeColor !== void 0 ? r.strokeColor = t.strokeColor : s && (r.strokeColor = s);
|
|
26759
26761
|
} else t.strokeColor !== void 0 && (r.strokeColor = t.strokeColor, r.strokeColorRef = void 0);
|
|
26760
26762
|
t.strokeWidth !== void 0 && (r.strokeWidth = t.strokeWidth), t.strokeDash !== void 0 && (r.strokeDash = t.strokeDash), t.strokeOpacity !== void 0 && (r.strokeOpacity = t.strokeOpacity), t.shadowColor !== void 0 && (r.shadowColor = t.shadowColor), t.shadowBlur !== void 0 && (r.shadowBlur = t.shadowBlur), t.shadowOffsetX !== void 0 && (r.shadowOffsetX = t.shadowOffsetX), t.shadowOffsetY !== void 0 && (r.shadowOffsetY = t.shadowOffsetY), t.shadowOpacity !== void 0 && (r.shadowOpacity = t.shadowOpacity), t.glowColor !== void 0 && (r.glowColor = t.glowColor), t.glowRadius !== void 0 && (r.glowRadius = t.glowRadius), t.glowOpacity !== void 0 && (r.glowOpacity = t.glowOpacity), t.softEdgeRadius !== void 0 && (r.softEdgeRadius = t.softEdgeRadius);
|
|
@@ -26964,7 +26966,7 @@ function Gj(a, t) {
|
|
|
26964
26966
|
style: {}
|
|
26965
26967
|
}]), r.textStyle || (r.textStyle = {}), t.fontSize !== void 0 && (r.textStyle.fontSize = t.fontSize), t.fontFamily !== void 0 && (r.textStyle.fontFamily = t.fontFamily), t.fontThemeColor !== void 0) {
|
|
26966
26968
|
r.textStyle.colorRef = t.fontThemeColor;
|
|
26967
|
-
const s =
|
|
26969
|
+
const s = Ri(t.fontThemeColor, a.pptxData.themeColorMap);
|
|
26968
26970
|
t.fontColor !== void 0 ? r.textStyle.color = t.fontColor : s && (r.textStyle.color = s);
|
|
26969
26971
|
} else t.fontColor !== void 0 && (r.textStyle.color = t.fontColor, r.textStyle.colorRef = void 0);
|
|
26970
26972
|
t.bold !== void 0 && (r.textStyle.bold = t.bold), t.italic !== void 0 && (r.textStyle.italic = t.italic), t.underline !== void 0 && (r.textStyle.underline = t.underline), t.alignment !== void 0 && (r.textStyle.align = t.alignment);
|
|
@@ -27093,8 +27095,8 @@ function Qj(a, t) {
|
|
|
27093
27095
|
for (const d of r) {
|
|
27094
27096
|
const c = Be(d, a.pptxData.slides.length);
|
|
27095
27097
|
if (c) throw new Error(c);
|
|
27096
|
-
const u = Hd(i), p =
|
|
27097
|
-
u.id =
|
|
27098
|
+
const u = Hd(i), p = Ei(i.id);
|
|
27099
|
+
u.id = Si(p, i.id), Jh(u, () => Si(p, i.id)), u.x += l, u.y += o, a.pptxData.slides[d].elements.push(u), s.push(u.id);
|
|
27098
27100
|
}
|
|
27099
27101
|
return {
|
|
27100
27102
|
pptxData: a.pptxData,
|
|
@@ -27137,7 +27139,7 @@ function eU(a, t) {
|
|
|
27137
27139
|
const d = t.elementIds.filter((c) => !s.has(c));
|
|
27138
27140
|
throw new Error(`Elements not found: ${d.join(", ")}`);
|
|
27139
27141
|
}
|
|
27140
|
-
const l = Br(), o =
|
|
27142
|
+
const l = Br(), o = pd(i.elements, t.elementIds, l);
|
|
27141
27143
|
return i.elements = o.elements, {
|
|
27142
27144
|
pptxData: a.pptxData,
|
|
27143
27145
|
dirty: !0,
|
|
@@ -27150,7 +27152,7 @@ function tU(a, t) {
|
|
|
27150
27152
|
const i = a.pptxData.slides[t.slideIndex], r = i.elements.find((d) => d.id === t.groupElementId);
|
|
27151
27153
|
if (!r) throw new Error(`Group element '${t.groupElementId}' not found.`);
|
|
27152
27154
|
if (r.type !== "group") throw new Error(`Element '${t.groupElementId}' is not a group.`);
|
|
27153
|
-
const s =
|
|
27155
|
+
const s = Ei(r.id), l = r.children.map((d) => Ei(d.id) === s ? d.id : Si(s, r.id)), o = fc(i.elements, t.groupElementId, l, { intoTemplate: s });
|
|
27154
27156
|
return i.elements = o.elements, {
|
|
27155
27157
|
pptxData: a.pptxData,
|
|
27156
27158
|
dirty: !0,
|
|
@@ -27729,7 +27731,7 @@ function TU(a, t) {
|
|
|
27729
27731
|
};
|
|
27730
27732
|
case "removeNode":
|
|
27731
27733
|
if (!t.nodeId) throw new Error("nodeId is required for removeNode.");
|
|
27732
|
-
return s.smartArtData =
|
|
27734
|
+
return s.smartArtData = Ko(s.smartArtData, t.nodeId), {
|
|
27733
27735
|
pptxData: a.pptxData,
|
|
27734
27736
|
dirty: !0,
|
|
27735
27737
|
result: {
|
|
@@ -27751,7 +27753,7 @@ function TU(a, t) {
|
|
|
27751
27753
|
case "reorderNode": {
|
|
27752
27754
|
if (!t.nodeId) throw new Error("nodeId is required for reorderNode.");
|
|
27753
27755
|
const l = t.direction ?? 1;
|
|
27754
|
-
return s.smartArtData =
|
|
27756
|
+
return s.smartArtData = Ni(s.smartArtData, t.nodeId, l), {
|
|
27755
27757
|
pptxData: a.pptxData,
|
|
27756
27758
|
dirty: !0,
|
|
27757
27759
|
result: {
|
|
@@ -27763,7 +27765,7 @@ function TU(a, t) {
|
|
|
27763
27765
|
}
|
|
27764
27766
|
case "promoteNode":
|
|
27765
27767
|
if (!t.nodeId) throw new Error("nodeId is required for promoteNode.");
|
|
27766
|
-
return s.smartArtData =
|
|
27768
|
+
return s.smartArtData = ad(s.smartArtData, t.nodeId), {
|
|
27767
27769
|
pptxData: a.pptxData,
|
|
27768
27770
|
dirty: !0,
|
|
27769
27771
|
result: {
|
|
@@ -27774,7 +27776,7 @@ function TU(a, t) {
|
|
|
27774
27776
|
};
|
|
27775
27777
|
case "demoteNode":
|
|
27776
27778
|
if (!t.nodeId) throw new Error("nodeId is required for demoteNode.");
|
|
27777
|
-
return s.smartArtData =
|
|
27779
|
+
return s.smartArtData = bd(s.smartArtData, t.nodeId), {
|
|
27778
27780
|
pptxData: a.pptxData,
|
|
27779
27781
|
dirty: !0,
|
|
27780
27782
|
result: {
|
|
@@ -28198,7 +28200,7 @@ async function BU(a, t) {
|
|
|
28198
28200
|
switch (i) {
|
|
28199
28201
|
case "sheet-xlsx":
|
|
28200
28202
|
case "sheet-xls": {
|
|
28201
|
-
const s = await
|
|
28203
|
+
const s = await zi(n);
|
|
28202
28204
|
return {
|
|
28203
28205
|
...r,
|
|
28204
28206
|
result: {
|
|
@@ -28211,7 +28213,7 @@ async function BU(a, t) {
|
|
|
28211
28213
|
}
|
|
28212
28214
|
case "document-docx":
|
|
28213
28215
|
case "document-doc": {
|
|
28214
|
-
const s = await
|
|
28216
|
+
const s = await Ci(n);
|
|
28215
28217
|
return {
|
|
28216
28218
|
...r,
|
|
28217
28219
|
result: {
|
|
@@ -28223,7 +28225,7 @@ async function BU(a, t) {
|
|
|
28223
28225
|
};
|
|
28224
28226
|
}
|
|
28225
28227
|
case "deck-pptx": {
|
|
28226
|
-
const s = await
|
|
28228
|
+
const s = await Di(n);
|
|
28227
28229
|
return {
|
|
28228
28230
|
...r,
|
|
28229
28231
|
result: {
|
|
@@ -29015,7 +29017,7 @@ var DY = xe({
|
|
|
29015
29017
|
direction: de().optional().describe("Reorder direction: 1 (forward) or -1 (backward)")
|
|
29016
29018
|
}), NH = xe({ filePath: ee().describe("Path to the PPTX file") }), FH = xe({
|
|
29017
29019
|
filePath: ee().describe("Path to the PPTX file"),
|
|
29018
|
-
data: Lr(ee(),
|
|
29020
|
+
data: Lr(ee(), er()).describe("Template data: keys are placeholder names, values are replacement values")
|
|
29019
29021
|
}), LH = xe({ filePath: ee().describe("Path to the PPTX file") }), BH = xe({
|
|
29020
29022
|
filePath: ee().describe("Path to the PPTX file"),
|
|
29021
29023
|
title: ee().optional().describe("Presentation title"),
|
|
@@ -29180,7 +29182,7 @@ rV(yv, {
|
|
|
29180
29182
|
createIdbBackend: () => oV,
|
|
29181
29183
|
openChatDb: () => sV
|
|
29182
29184
|
});
|
|
29183
|
-
function
|
|
29185
|
+
function ar(a) {
|
|
29184
29186
|
return new Promise((t, n) => {
|
|
29185
29187
|
a.onsuccess = () => t(a.result), a.onerror = () => n(a.error ?? /* @__PURE__ */ new Error("IndexedDB request failed."));
|
|
29186
29188
|
});
|
|
@@ -29202,7 +29204,7 @@ function sV(a) {
|
|
|
29202
29204
|
});
|
|
29203
29205
|
}
|
|
29204
29206
|
async function lV(a, t) {
|
|
29205
|
-
const n = a.transaction(it, "readonly"), i = n.objectStore(it), r = await
|
|
29207
|
+
const n = a.transaction(it, "readonly"), i = n.objectStore(it), r = await ar(t === void 0 ? i.getAll() : i.index(kn).getAll(IDBKeyRange.only(t)));
|
|
29206
29208
|
return await ma(n), r;
|
|
29207
29209
|
}
|
|
29208
29210
|
function oV(a) {
|
|
@@ -29211,7 +29213,7 @@ function oV(a) {
|
|
|
29211
29213
|
return (await lV(a, t)).map(wv).sort((n, i) => i.updatedAt - n.updatedAt);
|
|
29212
29214
|
},
|
|
29213
29215
|
async load(t) {
|
|
29214
|
-
const n = a.transaction(it, "readonly"), i = await
|
|
29216
|
+
const n = a.transaction(it, "readonly"), i = await ar(n.objectStore(it).get(t));
|
|
29215
29217
|
return await ma(n), i ?? null;
|
|
29216
29218
|
},
|
|
29217
29219
|
async save(t) {
|
|
@@ -29226,7 +29228,7 @@ function oV(a) {
|
|
|
29226
29228
|
const n = a.transaction(it, "readwrite"), i = n.objectStore(it);
|
|
29227
29229
|
if (t === void 0) i.clear();
|
|
29228
29230
|
else {
|
|
29229
|
-
const r = await
|
|
29231
|
+
const r = await ar(i.index(kn).getAllKeys(IDBKeyRange.only(t)));
|
|
29230
29232
|
for (const s of r) i.delete(s);
|
|
29231
29233
|
}
|
|
29232
29234
|
await ma(n);
|
|
@@ -30233,7 +30235,7 @@ function hK(a) {
|
|
|
30233
30235
|
}
|
|
30234
30236
|
return t;
|
|
30235
30237
|
}
|
|
30236
|
-
function
|
|
30238
|
+
function nr(a) {
|
|
30237
30239
|
return new Date(Number.isFinite(a) ? a : 0).toISOString();
|
|
30238
30240
|
}
|
|
30239
30241
|
function gK(a, t) {
|
|
@@ -30267,8 +30269,8 @@ function gK(a, t) {
|
|
|
30267
30269
|
deckId: a.deckId,
|
|
30268
30270
|
createdAt: a.createdAt,
|
|
30269
30271
|
updatedAt: a.updatedAt,
|
|
30270
|
-
createdAtIso:
|
|
30271
|
-
updatedAtIso:
|
|
30272
|
+
createdAtIso: nr(a.createdAt),
|
|
30273
|
+
updatedAtIso: nr(a.updatedAt),
|
|
30272
30274
|
messageCount: a.messages.length,
|
|
30273
30275
|
messages: n
|
|
30274
30276
|
};
|
|
@@ -30278,7 +30280,7 @@ function fK(a, t) {
|
|
|
30278
30280
|
return {
|
|
30279
30281
|
format: "pptx-ai-chat-log",
|
|
30280
30282
|
version: 1,
|
|
30281
|
-
exportedAt:
|
|
30283
|
+
exportedAt: nr(t?.now ?? Date.now()),
|
|
30282
30284
|
detailed: n,
|
|
30283
30285
|
chatCount: a.length,
|
|
30284
30286
|
chats: a.map((i) => gK(i, n))
|
|
@@ -31193,13 +31195,13 @@ function dW(a, t) {
|
|
|
31193
31195
|
var y = Ao();
|
|
31194
31196
|
e.template_effect((S) => {
|
|
31195
31197
|
e.set_attribute(y, "d", S), e.set_attribute(y, "stroke", e.get(g).color), e.set_attribute(y, "stroke-width", e.get(g).width), e.set_attribute(y, "stroke-opacity", e.get(g).tool === "highlighter" ? 0.4 : 1);
|
|
31196
|
-
}, [() =>
|
|
31198
|
+
}, [() => Fi(e.get(g).points)]), e.append(m, y);
|
|
31197
31199
|
});
|
|
31198
31200
|
var p = e.sibling(u), v = (m) => {
|
|
31199
31201
|
var g = Ao();
|
|
31200
31202
|
e.template_effect((y) => {
|
|
31201
31203
|
e.set_attribute(g, "d", y), e.set_attribute(g, "stroke", n().current.color), e.set_attribute(g, "stroke-width", n().current.width), e.set_attribute(g, "stroke-opacity", n().current.tool === "highlighter" ? 0.4 : 1);
|
|
31202
|
-
}, [() =>
|
|
31204
|
+
}, [() => Fi(n().current.points)]), e.append(m, g);
|
|
31203
31205
|
};
|
|
31204
31206
|
e.if(p, (m) => {
|
|
31205
31207
|
n().current && m(v);
|
|
@@ -31295,7 +31297,7 @@ function vW(a, t) {
|
|
|
31295
31297
|
});
|
|
31296
31298
|
var S = e.sibling(g, 2), w = (z) => {
|
|
31297
31299
|
var D = cW(), q = e.first_child(D);
|
|
31298
|
-
|
|
31300
|
+
Zi(q, {
|
|
31299
31301
|
get controller() {
|
|
31300
31302
|
return t.controller;
|
|
31301
31303
|
},
|
|
@@ -31307,7 +31309,7 @@ function vW(a, t) {
|
|
|
31307
31309
|
}
|
|
31308
31310
|
});
|
|
31309
31311
|
var B = e.sibling(q, 2);
|
|
31310
|
-
|
|
31312
|
+
Gi(B, {
|
|
31311
31313
|
get ink() {
|
|
31312
31314
|
return t.editor.inkOps;
|
|
31313
31315
|
},
|
|
@@ -31457,7 +31459,7 @@ function pW(a) {
|
|
|
31457
31459
|
width: r.width,
|
|
31458
31460
|
height: r.height
|
|
31459
31461
|
};
|
|
31460
|
-
a.applyElementPatch(t, { smartArtData:
|
|
31462
|
+
a.applyElementPatch(t, { smartArtData: Pi(s, t, l) });
|
|
31461
31463
|
},
|
|
31462
31464
|
commitChartPoint(t, n) {
|
|
31463
31465
|
a.activeElements.find((i) => i.id === t)?.type === "chart" && a.applyElementPatch(t, { chartData: n });
|
|
@@ -31471,7 +31473,7 @@ function pW(a) {
|
|
|
31471
31473
|
width: r.width,
|
|
31472
31474
|
height: r.height
|
|
31473
31475
|
};
|
|
31474
|
-
a.applyElementPatch(t, { smartArtData:
|
|
31476
|
+
a.applyElementPatch(t, { smartArtData: Pi(s, t, l) });
|
|
31475
31477
|
}
|
|
31476
31478
|
},
|
|
31477
31479
|
commitTableResizeColumns(t, n) {
|
|
@@ -32104,7 +32106,7 @@ function _W(a, t) {
|
|
|
32104
32106
|
d.guides = yy(d.guides, I);
|
|
32105
32107
|
},
|
|
32106
32108
|
onaddguide: (I, M) => {
|
|
32107
|
-
const R =
|
|
32109
|
+
const R = ki(Vi(), I, i.canvasSize);
|
|
32108
32110
|
d.guides = [...d.guides, {
|
|
32109
32111
|
...R,
|
|
32110
32112
|
position: M
|
|
@@ -32250,7 +32252,7 @@ function IW(a, t) {
|
|
|
32250
32252
|
}), e.reset(g), e.reset(u);
|
|
32251
32253
|
var S = e.sibling(u, 2), w = (C) => {
|
|
32252
32254
|
var P = SW(), k = e.child(P), E = e.child(k);
|
|
32253
|
-
|
|
32255
|
+
Wi(E, {
|
|
32254
32256
|
size: 14,
|
|
32255
32257
|
"aria-hidden": "true"
|
|
32256
32258
|
});
|
|
@@ -32292,7 +32294,7 @@ function IW(a, t) {
|
|
|
32292
32294
|
var j = e.sibling(U);
|
|
32293
32295
|
let K;
|
|
32294
32296
|
var G = e.child(j);
|
|
32295
|
-
|
|
32297
|
+
Wi(G, {
|
|
32296
32298
|
size: 14,
|
|
32297
32299
|
"aria-hidden": "true"
|
|
32298
32300
|
});
|
|
@@ -32669,7 +32671,7 @@ var GW = class {
|
|
|
32669
32671
|
const t = this.#e;
|
|
32670
32672
|
if (t === null || !a) return;
|
|
32671
32673
|
this.#e = null;
|
|
32672
|
-
const n = [...a.querySelectorAll(`[${
|
|
32674
|
+
const n = [...a.querySelectorAll(`[${yi}]`)].find((i) => i.getAttribute(yi) === t);
|
|
32673
32675
|
!n || n.ownerDocument.activeElement === n || (n.focus(), n.setSelectionRange(n.value.length, n.value.length));
|
|
32674
32676
|
}
|
|
32675
32677
|
}, XW = e.from_html('<div class="pptx-svelte-outline-row svelte-1n6k1wy"><span class="pptx-svelte-outline-number svelte-1n6k1wy"> </span> <input/></div>'), YW = e.from_html('<div><div class="pptx-svelte-outline-header svelte-1n6k1wy"><span class="pptx-svelte-outline-title svelte-1n6k1wy"> </span> <span class="pptx-svelte-outline-hint svelte-1n6k1wy"> </span> <button type="button" class="svelte-1n6k1wy"><!></button></div> <div class="pptx-svelte-outline-rows svelte-1n6k1wy"></div></div>');
|
|
@@ -32688,7 +32690,7 @@ function JW(a, t) {
|
|
|
32688
32690
|
e.get(l), s.restoreFocus(r);
|
|
32689
32691
|
});
|
|
32690
32692
|
const o = (w) => n(w.kind === "title" ? "pptx.outline.titleLine" : "pptx.outline.bodyLine"), d = { [Z2]: "true" }, c = (w) => ({
|
|
32691
|
-
[
|
|
32693
|
+
[yi]: w.key,
|
|
32692
32694
|
[mx]: String(w.slideIndex + 1),
|
|
32693
32695
|
[Zf]: String(w.level)
|
|
32694
32696
|
});
|
|
@@ -34142,7 +34144,7 @@ function zG(a, t) {
|
|
|
34142
34144
|
}), e.reset(g), e.reset(f);
|
|
34143
34145
|
var S = e.sibling(f);
|
|
34144
34146
|
e.each(S, 21, () => t.slides, e.index, (_, b, T) => {
|
|
34145
|
-
const C = e.derived(() =>
|
|
34147
|
+
const C = e.derived(() => Vo(e.get(b).hidden, "sorter", T));
|
|
34146
34148
|
var P = IG();
|
|
34147
34149
|
let k;
|
|
34148
34150
|
var E = e.child(P), I = e.child(E);
|
|
@@ -34167,7 +34169,7 @@ function zG(a, t) {
|
|
|
34167
34169
|
var U = PG(), L = e.only_child(U, !0);
|
|
34168
34170
|
e.template_effect((H) => {
|
|
34169
34171
|
e.set_attribute(U, "id", e.get(C).labelId), e.set_text(L, H);
|
|
34170
|
-
}, [() => i(
|
|
34172
|
+
}, [() => i(fd)]), e.append(F, U);
|
|
34171
34173
|
};
|
|
34172
34174
|
e.if(z, (F) => {
|
|
34173
34175
|
e.get(C).hidden && F(D);
|
|
@@ -34184,7 +34186,7 @@ function zG(a, t) {
|
|
|
34184
34186
|
size: 14,
|
|
34185
34187
|
"aria-hidden": "true"
|
|
34186
34188
|
}), e.reset(N), e.reset(M), e.reset(P), e.template_effect((F, U, L) => {
|
|
34187
|
-
e.set_attribute(P, "data-pptx-slide-hidden", e.get(C).marker), k = e.set_class(P, 1, "svelte-8inkpp", null, k, { active: t.current === T }), e.set_style(E, e.get(C).hidden ? `opacity: ${
|
|
34189
|
+
e.set_attribute(P, "data-pptx-slide-hidden", e.get(C).marker), k = e.set_class(P, 1, "svelte-8inkpp", null, k, { active: t.current === T }), e.set_style(E, e.get(C).hidden ? `opacity: ${od}` : void 0), e.set_attribute(E, "aria-label", F), e.set_attribute(E, "aria-describedby", e.get(C).labelId), e.set_style(A, e.get(C).hidden ? `background-image: ${Sc}` : void 0), e.set_attribute(q, "aria-label", U), e.set_attribute(N, "aria-label", L), N.disabled = T === t.slides.length - 1;
|
|
34188
34190
|
}, [
|
|
34189
34191
|
() => i("pptx.compare.slideNumber", { number: T + 1 }),
|
|
34190
34192
|
() => i("pptx.animations.moveEarlier"),
|
|
@@ -34236,7 +34238,7 @@ function OG(a, t) {
|
|
|
34236
34238
|
},
|
|
34237
34239
|
onclose: () => n().setupSlideShowOpen = !1,
|
|
34238
34240
|
onsave: (F) => {
|
|
34239
|
-
i().presentationMetadata.updatePresentationProperties(F), n().activeCustomShowId =
|
|
34241
|
+
i().presentationMetadata.updatePresentationProperties(F), n().activeCustomShowId = _d(F, i().customShows) ?? null;
|
|
34240
34242
|
}
|
|
34241
34243
|
});
|
|
34242
34244
|
};
|
|
@@ -34760,7 +34762,7 @@ function KG(a) {
|
|
|
34760
34762
|
getActiveSlide: () => t.renderedSlides[n.current],
|
|
34761
34763
|
addSlide: (s = t.slides.length - 1) => {
|
|
34762
34764
|
const l = [...t.slides], o = Math.min(Math.max(s + 1, 0), l.length);
|
|
34763
|
-
l.splice(o, 0,
|
|
34765
|
+
l.splice(o, 0, vd(o + 1, ba)), t.commitSlides(Ga(l)), n.goTo(o);
|
|
34764
34766
|
},
|
|
34765
34767
|
deleteSlides: (s) => {
|
|
34766
34768
|
if (t.slides.length <= 1) return;
|
|
@@ -35148,13 +35150,13 @@ function $G(a) {
|
|
|
35148
35150
|
};
|
|
35149
35151
|
}
|
|
35150
35152
|
function eX(a, t, n = "user") {
|
|
35151
|
-
const i =
|
|
35153
|
+
const i = sr(a);
|
|
35152
35154
|
nx(n, i.length) && (t.setLastSynced(JSON.stringify(i)), t.setApplyingRemote(!0), t.applyRemoteSlides(i), queueMicrotask(() => t.setApplyingRemote(!1)));
|
|
35153
35155
|
}
|
|
35154
35156
|
function tX(a, t, n) {
|
|
35155
35157
|
return Gh(a, (i, r) => {
|
|
35156
35158
|
if (r?.origin === "pptx-viewer:local-sync" || n.isApplyingRemote()) return;
|
|
35157
|
-
const s =
|
|
35159
|
+
const s = sr(a);
|
|
35158
35160
|
s.length === 0 && !t.externalSession?.getSnapshot().synced || (n.setApplyingRemote(!0), n.applyRemoteSlides(s), n.setApplyingRemote(!1), n.setLastSynced(JSON.stringify(s)), n.scheduleWriteBack(t));
|
|
35159
35161
|
});
|
|
35160
35162
|
}
|
|
@@ -35220,7 +35222,7 @@ var nX = class {
|
|
|
35220
35222
|
return;
|
|
35221
35223
|
}
|
|
35222
35224
|
this.livePatcher.configure(n.role === "viewer" ? null : a, t), this.#d = tX(a, n, this.#p());
|
|
35223
|
-
const i =
|
|
35225
|
+
const i = sr(a);
|
|
35224
35226
|
i.length && this.#u(i);
|
|
35225
35227
|
}
|
|
35226
35228
|
#p() {
|
|
@@ -35382,7 +35384,7 @@ var oX = async (a, t) => {
|
|
|
35382
35384
|
createMap: () => new n.Map(),
|
|
35383
35385
|
createArray: () => new n.Array(),
|
|
35384
35386
|
createText: () => new n.Text(),
|
|
35385
|
-
createTextPositions: (l) =>
|
|
35387
|
+
createTextPositions: (l) => gd(l, {
|
|
35386
35388
|
read: () => n.snapshot(i),
|
|
35387
35389
|
equal: n.equalSnapshots,
|
|
35388
35390
|
subscribeBeforeObservers: (o) => (i.on("beforeObserverCalls", o), () => i.off("beforeObserverCalls", o))
|
|
@@ -35405,7 +35407,7 @@ async function dX(a) {
|
|
|
35405
35407
|
createMap: () => new t.Map(),
|
|
35406
35408
|
createArray: () => new t.Array(),
|
|
35407
35409
|
createText: () => new t.Text(),
|
|
35408
|
-
createTextPositions: (r) =>
|
|
35410
|
+
createTextPositions: (r) => gd(r, {
|
|
35409
35411
|
read: () => t.snapshot(i),
|
|
35410
35412
|
equal: t.equalSnapshots,
|
|
35411
35413
|
subscribeBeforeObservers: (s) => (i.on("beforeObserverCalls", s), () => i.off("beforeObserverCalls", s))
|
|
@@ -35797,7 +35799,7 @@ var hX = class {
|
|
|
35797
35799
|
const a = this.#i.getHandler();
|
|
35798
35800
|
if (!a) return null;
|
|
35799
35801
|
const t = this.#i.getSlideMasters?.(), n = this.#i.getNotesMaster?.(), i = this.#i.getHandoutMaster?.(), r = this.#i.getSections?.(), s = !!(t?.length || n || i);
|
|
35800
|
-
return
|
|
35802
|
+
return Ii(a, this.#i.getSlides(), s ? {
|
|
35801
35803
|
slideMasters: t,
|
|
35802
35804
|
notesMaster: n,
|
|
35803
35805
|
handoutMaster: i,
|
|
@@ -35837,7 +35839,7 @@ function fX(a) {
|
|
|
35837
35839
|
getSourceBytes: s,
|
|
35838
35840
|
getSaveOptions: () => {
|
|
35839
35841
|
const g = i.snapshot();
|
|
35840
|
-
return
|
|
35842
|
+
return ld({
|
|
35841
35843
|
headerFooter: g.headerFooter,
|
|
35842
35844
|
presentationProperties: g.presentationProperties,
|
|
35843
35845
|
viewProperties: i.viewProperties,
|
|
@@ -35960,7 +35962,7 @@ function fX(a) {
|
|
|
35960
35962
|
closeSignatureWarning: v
|
|
35961
35963
|
};
|
|
35962
35964
|
}
|
|
35963
|
-
function
|
|
35965
|
+
function bi(a, t) {
|
|
35964
35966
|
return t <= 0 ? 0 : Math.min(Math.max(Math.trunc(a), 0), t - 1);
|
|
35965
35967
|
}
|
|
35966
35968
|
function mX(a) {
|
|
@@ -36079,7 +36081,7 @@ var yX = class {
|
|
|
36079
36081
|
get commentsOpen() {
|
|
36080
36082
|
return this.inspectorOpen && this.inspectorTab === "comments";
|
|
36081
36083
|
}
|
|
36082
|
-
},
|
|
36084
|
+
}, Bo = 5, wX = class {
|
|
36083
36085
|
#e = e.state(e.proxy(/* @__PURE__ */ new Set()));
|
|
36084
36086
|
#t = e.state(!1);
|
|
36085
36087
|
#n;
|
|
@@ -36093,10 +36095,10 @@ var yX = class {
|
|
|
36093
36095
|
return e.get(this.#t) ? [] : this.#i().filter((a) => !e.get(this.#e).has(a.id));
|
|
36094
36096
|
}
|
|
36095
36097
|
get visibleToasts() {
|
|
36096
|
-
return this.#r().slice(0,
|
|
36098
|
+
return this.#r().slice(0, Bo);
|
|
36097
36099
|
}
|
|
36098
36100
|
get overflowCount() {
|
|
36099
|
-
return Math.max(0, this.#r().length -
|
|
36101
|
+
return Math.max(0, this.#r().length - Bo);
|
|
36100
36102
|
}
|
|
36101
36103
|
dismiss(a) {
|
|
36102
36104
|
e.set(this.#e, new Set(e.get(this.#e)).add(a), !0);
|
|
@@ -36169,7 +36171,7 @@ var yX = class {
|
|
|
36169
36171
|
e.set(this.#e, !1), e.set(this.#t, !1), e.set(this.#n, !1), e.set(this.#i, null), e.set(this.#r, !1);
|
|
36170
36172
|
}
|
|
36171
36173
|
}, Pv = "pptx-svelte-google-fonts";
|
|
36172
|
-
function
|
|
36174
|
+
function jo(a, t) {
|
|
36173
36175
|
return Tg(a ?? [], t ?? []);
|
|
36174
36176
|
}
|
|
36175
36177
|
function kX(a, t) {
|
|
@@ -36218,14 +36220,14 @@ function CX(a) {
|
|
|
36218
36220
|
a.loader.loadCount > 0 && s !== r && (r = s, a.getOnslidechange()?.(s));
|
|
36219
36221
|
}), typeof document < "u" && (e.user_effect(() => {
|
|
36220
36222
|
let s = !1;
|
|
36221
|
-
return
|
|
36223
|
+
return jo(a.loader.slides, a.loader.embeddedFonts).then((l) => s ? null : (kX(document, l), l)), () => {
|
|
36222
36224
|
s = !0;
|
|
36223
36225
|
};
|
|
36224
36226
|
}), e.user_effect(() => () => TX(document)), e.user_effect(() => {
|
|
36225
36227
|
let s = !1;
|
|
36226
36228
|
const l = a.loader.slides, o = a.loader.embeddedFonts, d = C2(l), c = M1(d, o.map((u) => u.name));
|
|
36227
36229
|
if (c.length !== 0)
|
|
36228
|
-
return
|
|
36230
|
+
return jo(l, o).then(async (u) => {
|
|
36229
36231
|
if (s || !u) return;
|
|
36230
36232
|
const p = [{
|
|
36231
36233
|
bold: !1,
|
|
@@ -36426,7 +36428,7 @@ var IX = class {
|
|
|
36426
36428
|
keep(a) {
|
|
36427
36429
|
let t = a.slides;
|
|
36428
36430
|
for (const [n, i] of this.bySlide) {
|
|
36429
|
-
const r = i.map((s) =>
|
|
36431
|
+
const r = i.map((s) => xd(s)).filter((s) => s !== null);
|
|
36430
36432
|
r.length && t[n] && (t = t.map((s, l) => l === n ? {
|
|
36431
36433
|
...s,
|
|
36432
36434
|
elements: [...s.elements, ...r]
|
|
@@ -36749,7 +36751,7 @@ function DX(a) {
|
|
|
36749
36751
|
getOnerror: () => s.onerror,
|
|
36750
36752
|
getOnslidechange: () => s.onslidechange,
|
|
36751
36753
|
onContentApplied: () => {
|
|
36752
|
-
a.onNewDocumentLoaded?.(), r.adoptDocAfterLoad(t.loadOrigin), l.activeCustomShowId =
|
|
36754
|
+
a.onNewDocumentLoaded?.(), r.adoptDocAfterLoad(t.loadOrigin), l.activeCustomShowId = _d(t.presentationProperties, t.customShows) ?? null, o.reset(), d.reset();
|
|
36753
36755
|
const h = Cp({ viewProperties: t.viewProperties }, {
|
|
36754
36756
|
...l.preferences,
|
|
36755
36757
|
snapToObjects: l.snapToShape,
|
|
@@ -36942,7 +36944,7 @@ async function NX(a, t = {}) {
|
|
|
36942
36944
|
return new Uint8Array(h).set(f), new Blob([h], { type: "image/gif" });
|
|
36943
36945
|
}
|
|
36944
36946
|
function Iv(a, t, n, i = {}) {
|
|
36945
|
-
return
|
|
36947
|
+
return hd.exportSlide(a, t, n, i);
|
|
36946
36948
|
}
|
|
36947
36949
|
function FX(a, t, n, i = {}) {
|
|
36948
36950
|
return new Blob([Iv(a, t, n, i)], { type: "image/svg+xml;charset=utf-8" });
|
|
@@ -36951,7 +36953,7 @@ function sJ(a, t, n, i, r = {}) {
|
|
|
36951
36953
|
Gt(FX(a, n, i, r), `slide-${t + 1}.svg`);
|
|
36952
36954
|
}
|
|
36953
36955
|
function LX(a, t = {}) {
|
|
36954
|
-
return
|
|
36956
|
+
return hd.exportAll(a, t);
|
|
36955
36957
|
}
|
|
36956
36958
|
function lJ(a, t = {}) {
|
|
36957
36959
|
return LX(a, t).map((n) => new Blob([n], { type: "image/svg+xml;charset=utf-8" }));
|
|
@@ -36980,14 +36982,14 @@ function jX(a) {
|
|
|
36980
36982
|
i.addEventListener("afterprint", n, { once: !0 }), i.focus(), i.print();
|
|
36981
36983
|
}), t.srcdoc = a, document.body.appendChild(t), setTimeout(() => t.remove(), BX), !0;
|
|
36982
36984
|
}
|
|
36983
|
-
function
|
|
36985
|
+
function Uo(a) {
|
|
36984
36986
|
return a.printWhat === "notes" ? "Notes Pages" : a.printWhat === "outline" ? "Outline" : a.printWhat === "handouts" ? `Handout ${a.slidesPerPage} per page` : "Slides";
|
|
36985
36987
|
}
|
|
36986
36988
|
async function UX(a, t = {}) {
|
|
36987
36989
|
const n = a.getSlides(), i = r0(t, n.length), r = a.openPrintWindow ?? jX, s = hy(i.colorMode), l = jm(pm(i.slideRange, a.getCurrent(), n.length, i.customRangeFrom, i.customRangeTo), n, a.getIncludeHiddenSlides?.() ?? !1);
|
|
36988
36990
|
if (l.length === 0) return !1;
|
|
36989
36991
|
const o = (u, p = !1) => A2({
|
|
36990
|
-
title:
|
|
36992
|
+
title: Uo(i),
|
|
36991
36993
|
bodyHtml: u,
|
|
36992
36994
|
orientation: p ? "portrait" : i.orientation,
|
|
36993
36995
|
colorFilter: s,
|
|
@@ -36998,7 +37000,7 @@ async function UX(a, t = {}) {
|
|
|
36998
37000
|
if (i.printWhat === "slides") {
|
|
36999
37001
|
const { width: u, height: p } = a.getCanvasSize(), v = l.map((f) => Iv(n[f], u, p));
|
|
37000
37002
|
return r(Dy(v, u, p, {
|
|
37001
|
-
title:
|
|
37003
|
+
title: Uo(i),
|
|
37002
37004
|
orientation: i.orientation,
|
|
37003
37005
|
colorFilter: s,
|
|
37004
37006
|
scaleToFit: i.scaleToFit
|
|
@@ -37482,7 +37484,7 @@ function sY(a) {
|
|
|
37482
37484
|
i.intent === "next-slide" ? (n.preventDefault(), a.presentation.advance()) : i.intent === "previous-slide" && (n.preventDefault(), a.presentation.retreat() || a.presentation.previousSlide());
|
|
37483
37485
|
},
|
|
37484
37486
|
onFullscreenToggle() {
|
|
37485
|
-
if (a.viewer.isFullscreen && !
|
|
37487
|
+
if (a.viewer.isFullscreen && !Li()) return;
|
|
37486
37488
|
if (!a.viewer.isFullscreen) {
|
|
37487
37489
|
const i = a.presentation.entryIndex(a.viewer.current);
|
|
37488
37490
|
i !== a.viewer.current && a.viewer.goTo(i);
|
|
@@ -37491,7 +37493,7 @@ function sY(a) {
|
|
|
37491
37493
|
n && nY(n);
|
|
37492
37494
|
},
|
|
37493
37495
|
onFullscreenChange() {
|
|
37494
|
-
if (!
|
|
37496
|
+
if (!Li()) {
|
|
37495
37497
|
a.viewer.isFullscreen = !0, a.getRootEl()?.focus();
|
|
37496
37498
|
return;
|
|
37497
37499
|
}
|
|
@@ -37515,7 +37517,7 @@ function lY(a) {
|
|
|
37515
37517
|
getShowWithAnimation: () => i.presentationProperties.showWithAnimation,
|
|
37516
37518
|
getLoopContinuously: () => $1(t.presentationProperties),
|
|
37517
37519
|
exit: () => {
|
|
37518
|
-
|
|
37520
|
+
Li() && (n.isFullscreen = !1);
|
|
37519
37521
|
},
|
|
37520
37522
|
getFrameRoot: () => a.getStageHolderEl()?.querySelector(".pptx-svelte-stage") ?? null,
|
|
37521
37523
|
getCanvasSize: () => i.canvasSize,
|
|
@@ -37528,7 +37530,7 @@ function lY(a) {
|
|
|
37528
37530
|
setActiveCustomShowId: (v) => {
|
|
37529
37531
|
r.activeCustomShowId = v;
|
|
37530
37532
|
},
|
|
37531
|
-
getAuthoredRange: () =>
|
|
37533
|
+
getAuthoredRange: () => Qo(i.presentationProperties, t.renderedSlides.length),
|
|
37532
37534
|
confirmUrl: (v) => o.confirmHyperlink(v, d("pptx.options.trust.confirmHyperlinks")),
|
|
37533
37535
|
onPlayActionSound: (v) => {
|
|
37534
37536
|
const f = i.mediaDataUrls.get(v);
|
|
@@ -38068,10 +38070,13 @@ var _Y = class {
|
|
|
38068
38070
|
});
|
|
38069
38071
|
}
|
|
38070
38072
|
reset(a, t = 0) {
|
|
38071
|
-
this.slideCount = Math.max(0, a), this.current =
|
|
38073
|
+
this.slideCount = Math.max(0, a), this.current = bi(t, this.slideCount), this.zoomPercent = null;
|
|
38074
|
+
}
|
|
38075
|
+
setSlideCount(a) {
|
|
38076
|
+
this.slideCount = Math.max(0, a), this.current = bi(this.current, this.slideCount);
|
|
38072
38077
|
}
|
|
38073
38078
|
goTo(a) {
|
|
38074
|
-
this.current =
|
|
38079
|
+
this.current = bi(a, this.slideCount);
|
|
38075
38080
|
}
|
|
38076
38081
|
next() {
|
|
38077
38082
|
this.goTo(this.current + 1);
|
|
@@ -38151,13 +38156,13 @@ function bY(a) {
|
|
|
38151
38156
|
canvas: o.canvasSize
|
|
38152
38157
|
}).size,
|
|
38153
38158
|
getCanvasSize: () => o.canvasSize,
|
|
38154
|
-
getTableStyleOptions: () =>
|
|
38159
|
+
getTableStyleOptions: () => id({
|
|
38155
38160
|
tableStyleMap: o.tableStyleMap,
|
|
38156
38161
|
tableStylesDefaultId: o.tableStylesDefaultId,
|
|
38157
38162
|
tableStylesToDelete: o.tableStylesToDelete
|
|
38158
38163
|
}),
|
|
38159
38164
|
onChange: () => {
|
|
38160
|
-
a.onchange?.();
|
|
38165
|
+
d.setSlideCount(u.slides.length), a.onchange?.();
|
|
38161
38166
|
const k = a.oncontentchange;
|
|
38162
38167
|
k && Oc(u).then(k, (E) => a.onerror?.(E instanceof Error ? E.message : String(E)));
|
|
38163
38168
|
}
|
|
@@ -38254,7 +38259,7 @@ function bY(a) {
|
|
|
38254
38259
|
}), w = WG(u), x = (k) => {
|
|
38255
38260
|
v.optionsState.playFeedback();
|
|
38256
38261
|
const E = a.getFilePath();
|
|
38257
|
-
k === "pptx" && E && v.optionsState.shouldDiscardAutosaveOnSave &&
|
|
38262
|
+
k === "pptx" && E && v.optionsState.shouldDiscardAutosaveOnSave && qi(E).catch(() => {
|
|
38258
38263
|
});
|
|
38259
38264
|
}, _ = {
|
|
38260
38265
|
...w,
|
|
@@ -38283,7 +38288,7 @@ function bY(a) {
|
|
|
38283
38288
|
(async () => {
|
|
38284
38289
|
try {
|
|
38285
38290
|
const k = await ah(), E = $p(k, v.optionsState.options);
|
|
38286
|
-
await Promise.all(E.map((I) =>
|
|
38291
|
+
await Promise.all(E.map((I) => qi(I)));
|
|
38287
38292
|
} catch {
|
|
38288
38293
|
}
|
|
38289
38294
|
})();
|
|
@@ -38437,7 +38442,7 @@ var xY = class {
|
|
|
38437
38442
|
e.set(this.#n, a, !0);
|
|
38438
38443
|
}
|
|
38439
38444
|
constructor(a) {
|
|
38440
|
-
this.#e = a, this.themeKey = je(() => a.getDefaultThemeKey()) ??
|
|
38445
|
+
this.#e = a, this.themeKey = je(() => a.getDefaultThemeKey()) ?? Ti().themeKey ?? "default", this.localeOverride = je(() => a.getDefaultLocale()) ?? Ti().localeCode;
|
|
38441
38446
|
}
|
|
38442
38447
|
get catalog() {
|
|
38443
38448
|
return this.#e.getAvailableThemes() ?? qv;
|
|
@@ -38943,9 +38948,9 @@ export {
|
|
|
38943
38948
|
ke as G,
|
|
38944
38949
|
MS as H,
|
|
38945
38950
|
HO as I,
|
|
38946
|
-
|
|
38951
|
+
Wi as L,
|
|
38947
38952
|
u9 as M,
|
|
38948
|
-
|
|
38953
|
+
Zi as N,
|
|
38949
38954
|
rJ as O,
|
|
38950
38955
|
Iq as P,
|
|
38951
38956
|
cu as R,
|
|
@@ -38958,7 +38963,7 @@ export {
|
|
|
38958
38963
|
XX as a,
|
|
38959
38964
|
iJ as b,
|
|
38960
38965
|
sJ as c,
|
|
38961
|
-
|
|
38966
|
+
bi as d,
|
|
38962
38967
|
_X as f,
|
|
38963
38968
|
xW as g,
|
|
38964
38969
|
mZ as h,
|