@templatical/media-library 0.25.1 → 0.25.2
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.
|
@@ -839,24 +839,26 @@ function on(e, n, i = t) {
|
|
|
839
839
|
};
|
|
840
840
|
}
|
|
841
841
|
let C = b ? Array(e.length).fill(tn) : tn, w = (e) => {
|
|
842
|
-
if (!(!(m.flags & 1) || !m.dirty && !e))
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
842
|
+
if (!(!(m.flags & 1) || !m.dirty && !e)) {
|
|
843
|
+
if (n) {
|
|
844
|
+
let t = m.run();
|
|
845
|
+
if (e || o || y || (b ? t.some((e, t) => O(e, C[t])) : O(t, C))) {
|
|
846
|
+
_ && _();
|
|
847
|
+
let e = rn;
|
|
848
|
+
rn = m;
|
|
849
|
+
try {
|
|
850
|
+
let e = [
|
|
851
|
+
t,
|
|
852
|
+
C === tn ? void 0 : b && C[0] === tn ? [] : C,
|
|
853
|
+
v
|
|
854
|
+
];
|
|
855
|
+
C = t, f ? f(n, 3, e) : n(...e);
|
|
856
|
+
} finally {
|
|
857
|
+
rn = e;
|
|
858
|
+
}
|
|
857
859
|
}
|
|
858
|
-
}
|
|
859
|
-
}
|
|
860
|
+
} else m.run();
|
|
861
|
+
}
|
|
860
862
|
};
|
|
861
863
|
return u && u(w), m = new ke(g), m.scheduler = l ? () => l(w, !1) : w, v = (e) => an(e, !1, m), _ = m.onStop = () => {
|
|
862
864
|
let e = nn.get(m);
|
|
@@ -1298,8 +1300,10 @@ function cr(e, t, n, r, i) {
|
|
|
1298
1300
|
persisted: s,
|
|
1299
1301
|
beforeEnter(t) {
|
|
1300
1302
|
let r = c;
|
|
1301
|
-
if (!n.isMounted)
|
|
1302
|
-
|
|
1303
|
+
if (!n.isMounted) {
|
|
1304
|
+
if (a) r = _ || c;
|
|
1305
|
+
else return;
|
|
1306
|
+
}
|
|
1303
1307
|
t[H] && t[H](!0);
|
|
1304
1308
|
let i = S[x];
|
|
1305
1309
|
i && ma(e, i) && i.el[H] && i.el[H](), C(r, [t]);
|
|
@@ -1307,8 +1311,10 @@ function cr(e, t, n, r, i) {
|
|
|
1307
1311
|
enter(t) {
|
|
1308
1312
|
if (S[x] === e) return;
|
|
1309
1313
|
let r = l, i = u, o = f;
|
|
1310
|
-
if (!n.isMounted)
|
|
1311
|
-
|
|
1314
|
+
if (!n.isMounted) {
|
|
1315
|
+
if (a) r = v || l, i = y || u, o = b || f;
|
|
1316
|
+
else return;
|
|
1317
|
+
}
|
|
1312
1318
|
let s = !1;
|
|
1313
1319
|
t[er] = (e) => {
|
|
1314
1320
|
s || (s = !0, C(e ? o : i, [t]), T.delayedLeave && T.delayedLeave(), t[er] = void 0);
|
|
@@ -1500,16 +1506,17 @@ function Ur(e, t, n, r) {
|
|
|
1500
1506
|
} else if (typeof e == "number") {
|
|
1501
1507
|
i = Array(e);
|
|
1502
1508
|
for (let n = 0; n < e; n++) i[n] = t(n + 1, n, void 0, a && a[n]);
|
|
1503
|
-
} else if (v(e))
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
let o = n
|
|
1509
|
-
|
|
1509
|
+
} else if (v(e)) {
|
|
1510
|
+
if (e[Symbol.iterator]) i = Array.from(e, (e, n) => t(e, n, void 0, a && a[n]));
|
|
1511
|
+
else {
|
|
1512
|
+
let n = Object.keys(e);
|
|
1513
|
+
i = Array(n.length);
|
|
1514
|
+
for (let r = 0, o = n.length; r < o; r++) {
|
|
1515
|
+
let o = n[r];
|
|
1516
|
+
i[r] = t(e[o], o, r, a && a[r]);
|
|
1517
|
+
}
|
|
1510
1518
|
}
|
|
1511
|
-
}
|
|
1512
|
-
else i = [];
|
|
1519
|
+
} else i = [];
|
|
1513
1520
|
return n && (n[r] = i), i;
|
|
1514
1521
|
}
|
|
1515
1522
|
function Wr(e, t, n, r, i, a) {
|
|
@@ -1629,16 +1636,18 @@ function Qr(e) {
|
|
|
1629
1636
|
function k(e, t) {
|
|
1630
1637
|
d(t) ? t.forEach((t) => e(t.bind(n))) : t && e(t.bind(n));
|
|
1631
1638
|
}
|
|
1632
|
-
if (k(Dr, p), k(Or, m), k(kr, g), k(Ar, _), k(xr, y), k(Sr, b), k(Ir, E), k(Fr, ee), k(Pr, te), k(jr, S), k(Mr, w), k(Nr, ne), d(D))
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
+
if (k(Dr, p), k(Or, m), k(kr, g), k(Ar, _), k(xr, y), k(Sr, b), k(Ir, E), k(Fr, ee), k(Pr, te), k(jr, S), k(Mr, w), k(Nr, ne), d(D)) {
|
|
1640
|
+
if (D.length) {
|
|
1641
|
+
let t = e.exposed ||= {};
|
|
1642
|
+
D.forEach((e) => {
|
|
1643
|
+
Object.defineProperty(t, e, {
|
|
1644
|
+
get: () => n[e],
|
|
1645
|
+
set: (t) => n[e] = t,
|
|
1646
|
+
enumerable: !0
|
|
1647
|
+
});
|
|
1639
1648
|
});
|
|
1640
|
-
}
|
|
1641
|
-
}
|
|
1649
|
+
} else e.exposed ||= {};
|
|
1650
|
+
}
|
|
1642
1651
|
T && e.render === r && (e.render = T), re != null && (e.inheritAttrs = re), ie && (e.components = ie), O && (e.directives = O), ne && mr(e);
|
|
1643
1652
|
}
|
|
1644
1653
|
function $r(e, t, n = r) {
|
|
@@ -1662,10 +1671,12 @@ function ti(e, t, n, r) {
|
|
|
1662
1671
|
let n = t[e];
|
|
1663
1672
|
h(n) && In(i, n);
|
|
1664
1673
|
} else if (h(e)) In(i, e.bind(n));
|
|
1665
|
-
else if (v(e))
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1674
|
+
else if (v(e)) {
|
|
1675
|
+
if (d(e)) e.forEach((e) => ti(e, t, n, r));
|
|
1676
|
+
else {
|
|
1677
|
+
let r = h(e.handler) ? e.handler.bind(n) : t[e.handler];
|
|
1678
|
+
h(r) && In(i, r, e);
|
|
1679
|
+
}
|
|
1669
1680
|
}
|
|
1670
1681
|
}
|
|
1671
1682
|
function ni(e) {
|
|
@@ -1933,12 +1944,13 @@ function ji(e, t, n, r) {
|
|
|
1933
1944
|
let o = n[r];
|
|
1934
1945
|
if (yi(e.emitsOptions, o)) continue;
|
|
1935
1946
|
let d = t[o];
|
|
1936
|
-
if (c)
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1947
|
+
if (c) {
|
|
1948
|
+
if (u(a, o)) d !== a[o] && (a[o] = d, l = !0);
|
|
1949
|
+
else {
|
|
1950
|
+
let t = E(o);
|
|
1951
|
+
i[t] = Ni(c, s, t, d, e, !1);
|
|
1952
|
+
}
|
|
1953
|
+
} else d !== a[o] && (a[o] = d, l = !0);
|
|
1942
1954
|
}
|
|
1943
1955
|
}
|
|
1944
1956
|
} else {
|
|
@@ -2188,11 +2200,13 @@ function Ki(e, i) {
|
|
|
2188
2200
|
} else se(s, e, t, n, i, a, o);
|
|
2189
2201
|
}, oe = (e, t, n) => {
|
|
2190
2202
|
let r = t.component = e.component;
|
|
2191
|
-
if (Ci(e, t, n))
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2203
|
+
if (Ci(e, t, n)) {
|
|
2204
|
+
if (r.asyncDep && !r.asyncResolved) {
|
|
2205
|
+
ce(r, t, n);
|
|
2206
|
+
return;
|
|
2207
|
+
}
|
|
2208
|
+
r.next = t, r.update();
|
|
2209
|
+
} else t.el = e.el, r.vnode = t;
|
|
2196
2210
|
}, se = (e, t, n, r, i, a, o) => {
|
|
2197
2211
|
let s = () => {
|
|
2198
2212
|
if (e.isMounted) {
|
|
@@ -2333,19 +2347,20 @@ function Ki(e, i) {
|
|
|
2333
2347
|
S(e, t, n);
|
|
2334
2348
|
return;
|
|
2335
2349
|
}
|
|
2336
|
-
if (r !== 2 && d & 1 && l)
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2350
|
+
if (r !== 2 && d & 1 && l) {
|
|
2351
|
+
if (r === 0) l.persisted && !a[H] ? o(a, t, n) : (l.beforeEnter(a), o(a, t, n), G(() => l.enter(a), i));
|
|
2352
|
+
else {
|
|
2353
|
+
let { leave: r, delayLeave: i, afterLeave: c } = l, u = () => {
|
|
2354
|
+
e.ctx.isUnmounted ? s(a) : o(a, t, n);
|
|
2355
|
+
}, d = () => {
|
|
2356
|
+
let e = a._isLeaving || !!a[H];
|
|
2357
|
+
a._isLeaving && a[H](!0), l.persisted && !e ? u() : r(a, () => {
|
|
2358
|
+
u(), c && c();
|
|
2359
|
+
});
|
|
2360
|
+
};
|
|
2361
|
+
i ? i(a, u, d) : d();
|
|
2362
|
+
}
|
|
2363
|
+
} else o(a, t, n);
|
|
2349
2364
|
}, me = (e, t, n, r = !1, i = !1) => {
|
|
2350
2365
|
let { type: a, props: o, ref: s, children: c, dynamicChildren: l, shapeFlag: u, patchFlag: d, dirs: f, cacheIndex: p, memo: m } = e;
|
|
2351
2366
|
if (d === -2 && (i = !1), s != null && (Ue(), _r(s, null, n, e, !0), We()), p != null && (t.renderCache[p] = void 0), u & 256) {
|
|
@@ -2598,16 +2613,18 @@ function wa(e, t) {
|
|
|
2598
2613
|
let n = 0, { shapeFlag: r } = e;
|
|
2599
2614
|
if (t == null) t = null;
|
|
2600
2615
|
else if (d(t)) n = 16;
|
|
2601
|
-
else if (typeof t == "object")
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2616
|
+
else if (typeof t == "object") {
|
|
2617
|
+
if (r & 65) {
|
|
2618
|
+
let n = t.default;
|
|
2619
|
+
n && (n._c && (n._d = !1), wa(e, n()), n._c && (n._d = !0));
|
|
2620
|
+
return;
|
|
2621
|
+
}
|
|
2622
|
+
{
|
|
2623
|
+
n = 32;
|
|
2624
|
+
let r = t._;
|
|
2625
|
+
!r && !ki(t) ? t._ctx = V : r === 3 && V && (V.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
|
|
2626
|
+
}
|
|
2627
|
+
} else if (h(t)) {
|
|
2611
2628
|
if (r & 65) {
|
|
2612
2629
|
wa(e, { default: t });
|
|
2613
2630
|
return;
|
|
@@ -3020,11 +3037,13 @@ var ko = /* @__PURE__ */ Symbol(""), Ao = /(?:^|;)\s*display\s*:/;
|
|
|
3020
3037
|
function jo(e, t, n) {
|
|
3021
3038
|
let r = e.style, i = g(n), a = !1;
|
|
3022
3039
|
if (n && !i) {
|
|
3023
|
-
if (t)
|
|
3024
|
-
|
|
3025
|
-
|
|
3040
|
+
if (t) {
|
|
3041
|
+
if (g(t)) for (let e of t.split(";")) {
|
|
3042
|
+
let t = e.slice(0, e.indexOf(":")).trim();
|
|
3043
|
+
n[t] ?? No(r, t, "");
|
|
3044
|
+
}
|
|
3045
|
+
else for (let e in t) n[e] ?? No(r, e, "");
|
|
3026
3046
|
}
|
|
3027
|
-
else for (let e in t) n[e] ?? No(r, e, "");
|
|
3028
3047
|
for (let i in n) {
|
|
3029
3048
|
i === "display" && (a = !0);
|
|
3030
3049
|
let o = n[i];
|
|
@@ -3253,7 +3272,7 @@ function ys(e) {
|
|
|
3253
3272
|
return g(e) ? document.querySelector(e) : e;
|
|
3254
3273
|
}
|
|
3255
3274
|
//#endregion
|
|
3256
|
-
//#region ../../node_modules/.pnpm/@lucide+vue@1.
|
|
3275
|
+
//#region ../../node_modules/.pnpm/@lucide+vue@1.30.0_vue@3.5.41_typescript@6.0.3_/node_modules/@lucide/vue/dist/esm/shared/src/utils/isEmptyString.mjs
|
|
3257
3276
|
var bs = (e) => e === "", xs = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), Ss = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Cs = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), ws = (e) => {
|
|
3258
3277
|
let t = Cs(e);
|
|
3259
3278
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
@@ -3272,7 +3291,7 @@ function Ds() {
|
|
|
3272
3291
|
return Mn(Es, {});
|
|
3273
3292
|
}
|
|
3274
3293
|
//#endregion
|
|
3275
|
-
//#region ../../node_modules/.pnpm/@lucide+vue@1.
|
|
3294
|
+
//#region ../../node_modules/.pnpm/@lucide+vue@1.30.0_vue@3.5.41_typescript@6.0.3_/node_modules/@lucide/vue/dist/esm/Icon.mjs
|
|
3276
3295
|
var Os = ({ name: e, iconNode: t, "icon-node": n, absoluteStrokeWidth: r, "absolute-stroke-width": i, strokeWidth: a, "stroke-width": o, size: s, color: c, ...l }, { slots: u }) => {
|
|
3277
3296
|
let { size: d, color: f, strokeWidth: p = 2, absoluteStrokeWidth: m = !1, class: h = "" } = Ds(), g = qa(() => {
|
|
3278
3297
|
let e = bs(r) || bs(i) || r === !0 || i === !0 || m === !0, t = a || o || p || Ts["stroke-width"];
|
|
@@ -3457,4 +3476,4 @@ var Os = ({ name: e, iconNode: t, "icon-node": n, absoluteStrokeWidth: r, "absol
|
|
|
3457
3476
|
//#endregion
|
|
3458
3477
|
export { Gt as $, da as A, jn as B, ds as C, _a as D, qa as E, Ja as F, In as G, Wr as H, Mn as I, kn as J, Fn as K, Ta as L, Y as M, pr as N, fa as O, ka as P, Lt as Q, Or as R, ps as S, Zn as T, Rr as U, Ur as V, Br as W, R as X, Ee as Y, De as Z, ks as _, Vs as a, he as at, cs as b, Rs as c, Fs as d, Rt as et, Ps as f, As as g, js as h, Hs as i, Yt as it, xa as j, Sa as k, Ls as l, Ms as m, Ws as n, I as nt, Bs as o, ue as ot, Ns as p, On as q, Us as r, Xt as rt, zs as s, Se as st, Gs as t, Kt as tt, Is as u, lo as v, K as w, Do as x, _s as y, oa as z };
|
|
3459
3478
|
|
|
3460
|
-
//# sourceMappingURL=icons-
|
|
3479
|
+
//# sourceMappingURL=icons-BuORgodq.js.map
|