@templatical/media-library 0.13.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -281,7 +281,7 @@ function N() {
281
281
  }
282
282
  function P() {
283
283
  let e = He.pop();
284
- M = e === void 0 ? !0 : e;
284
+ M = e === void 0 || e;
285
285
  }
286
286
  function Ue(e) {
287
287
  let { cleanup: t } = e;
@@ -1109,7 +1109,13 @@ var Rn = /* @__PURE__ */ new WeakMap(), zn = /* @__PURE__ */ Symbol("_vte"), Bn
1109
1109
  r && (o !== "svg" && Un(r) ? o = "svg" : o !== "mathml" && Wn(r) && (o = "mathml"), i && i.isCE && (i.ce._teleportTargets || (i.ce._teleportTargets = /* @__PURE__ */ new Set())).add(r), n || (b(e, r, a), Xn(e, !1)));
1110
1110
  }, S = (e) => {
1111
1111
  let t = () => {
1112
- Rn.get(e) === t && (Rn.delete(e), Vn(e.props) && (b(e, _(e.el) || n, e.anchor), Xn(e, !0)), x(e));
1112
+ if (Rn.get(e) === t) {
1113
+ if (Rn.delete(e), Vn(e.props)) {
1114
+ let t = _(e.el) || n;
1115
+ b(e, t, e.anchor), Xn(e, !0);
1116
+ }
1117
+ x(e);
1118
+ }
1113
1119
  };
1114
1120
  Rn.set(e, t), q(t, a);
1115
1121
  };
@@ -1367,7 +1373,7 @@ function hr(e, n, r, a, o = !1) {
1367
1373
  a.shapeFlag & 512 && a.type.__asyncResolved && a.component.subTree.component && hr(e, n, r, a.component.subTree);
1368
1374
  return;
1369
1375
  }
1370
- let s = a.shapeFlag & 4 ? Wa(a.component) : a.el, l = o ? null : s, { i: f, r: p } = e, m = n && n.r, _ = f.refs === t ? f.refs = {} : f.refs, v = f.setupState, y = /* @__PURE__ */ L(v), b = v === t ? i : (e) => pr(_, e) ? !1 : u(y, e), x = (e, t) => !(t && pr(_, t));
1376
+ let s = a.shapeFlag & 4 ? Wa(a.component) : a.el, l = o ? null : s, { i: f, r: p } = e, m = n && n.r, _ = f.refs === t ? f.refs = {} : f.refs, v = f.setupState, y = /* @__PURE__ */ L(v), b = v === t ? i : (e) => !pr(_, e) && u(y, e), x = (e, t) => !(t && pr(_, t));
1371
1377
  if (m != null && m !== p) {
1372
1378
  if (gr(n), g(m)) _[m] = null, b(m) && (v[m] = null);
1373
1379
  else if (/* @__PURE__ */ z(m)) {
@@ -1509,7 +1515,7 @@ function Hr(e, t, n = {}, r, i) {
1509
1515
  return !i && c.scopeId && (c.slotScopeIds = [c.scopeId + "-s"]), a && a._c && (a._d = !0), c;
1510
1516
  }
1511
1517
  function Ur(e) {
1512
- return e.some((e) => da(e) ? !(e.type === Y || e.type === J && !Ur(e.children)) : !0) ? e : null;
1518
+ return e.some((e) => !da(e) || !(e.type === Y || e.type === J && !Ur(e.children))) ? e : null;
1513
1519
  }
1514
1520
  var Wr = (e) => e ? Pa(e) ? Wa(e) : Wr(e.parent) : null, Gr = /* @__PURE__ */ s(/* @__PURE__ */ Object.create(null), {
1515
1521
  $: (e) => e,
@@ -1868,7 +1874,7 @@ function xi(e, t, n) {
1868
1874
  if (Ci(o, r, n) && !_i(l, n)) return !0;
1869
1875
  }
1870
1876
  }
1871
- } else return (i || s) && (!s || !s.$stable) ? !0 : r === o ? !1 : r ? o ? Si(r, o, l) : !0 : !!o;
1877
+ } else return (i || s) && (!s || !s.$stable) ? !0 : r === o ? !1 : r ? !o || Si(r, o, l) : !!o;
1872
1878
  return !1;
1873
1879
  }
1874
1880
  function Si(e, t, n) {
@@ -2110,7 +2116,10 @@ function Wi(e, i) {
2110
2116
  }
2111
2117
  }
2112
2118
  }, E = (e, t, n, r, i, a, o, s, c = 0) => {
2113
- for (let l = c; l < e.length; l++) v(null, e[l] = s ? Sa(e[l]) : xa(e[l]), t, n, r, i, a, o, s);
2119
+ for (let l = c; l < e.length; l++) {
2120
+ let c = e[l] = s ? Sa(e[l]) : xa(e[l]);
2121
+ v(null, c, t, n, r, i, a, o, s);
2122
+ }
2114
2123
  }, ne = (e, n, r, i, a, o, s) => {
2115
2124
  let l = n.el = e.el, { patchFlag: u, dynamicChildren: d, dirs: f } = n;
2116
2125
  u |= e.patchFlag & 16;
@@ -2131,8 +2140,8 @@ function Wi(e, i) {
2131
2140
  }, i);
2132
2141
  }, D = (e, t, n, r, i, a, o) => {
2133
2142
  for (let s = 0; s < t.length; s++) {
2134
- let c = e[s], l = t[s];
2135
- v(c, l, c.el && (c.type === J || !fa(c, l) || c.shapeFlag & 198) ? m(c.el) : n, null, r, i, a, o, !0);
2143
+ let c = e[s], l = t[s], u = c.el && (c.type === J || !fa(c, l) || c.shapeFlag & 198) ? m(c.el) : n;
2144
+ v(c, l, u, null, r, i, a, o, !0);
2136
2145
  }
2137
2146
  }, re = (e, n, r, i, a) => {
2138
2147
  if (n !== r) {
@@ -3217,7 +3226,7 @@ function vs(e) {
3217
3226
  return g(e) ? document.querySelector(e) : e;
3218
3227
  }
3219
3228
  //#endregion
3220
- //#region ../../node_modules/.pnpm/@lucide+vue@1.21.0_vue@3.5.39_typescript@6.0.3_/node_modules/@lucide/vue/dist/esm/shared/src/utils/isEmptyString.mjs
3229
+ //#region ../../node_modules/.pnpm/@lucide+vue@1.24.0_vue@3.5.39_typescript@6.0.3_/node_modules/@lucide/vue/dist/esm/shared/src/utils/isEmptyString.mjs
3221
3230
  var ys = (e) => e === "", bs = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), xs = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Ss = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), Cs = (e) => {
3222
3231
  let t = Ss(e);
3223
3232
  return t.charAt(0).toUpperCase() + t.slice(1);
@@ -3231,68 +3240,38 @@ var ys = (e) => e === "", bs = (...e) => e.filter((e, t, n) => !!e && e.trim() !
3231
3240
  "stroke-width": 2,
3232
3241
  "stroke-linecap": "round",
3233
3242
  "stroke-linejoin": "round"
3234
- }, Ts = Symbol("lucide-icons");
3243
+ }, Ts = /* @__PURE__ */ Symbol("lucide-icons");
3235
3244
  function Es() {
3236
3245
  return An(Ts, {});
3237
3246
  }
3238
3247
  //#endregion
3239
- //#region ../../node_modules/.pnpm/@lucide+vue@1.21.0_vue@3.5.39_typescript@6.0.3_/node_modules/@lucide/vue/dist/esm/Icon.mjs
3240
- var Ds = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width": r, strokeWidth: i, "stroke-width": a, size: o, color: s, ...c }, { slots: l }) => {
3241
- let { size: u, color: d, strokeWidth: f = 2, absoluteStrokeWidth: p = !1, class: m = "" } = Es(), h = qa(() => {
3242
- let e = ys(n) || ys(r) || n === !0 || r === !0 || p === !0, t = i || a || f || ws["stroke-width"];
3243
- return e ? Number(t) * 24 / Number(o ?? u ?? ws.width) : t;
3248
+ //#region ../../node_modules/.pnpm/@lucide+vue@1.24.0_vue@3.5.39_typescript@6.0.3_/node_modules/@lucide/vue/dist/esm/Icon.mjs
3249
+ var Ds = ({ 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 }) => {
3250
+ let { size: d, color: f, strokeWidth: p = 2, absoluteStrokeWidth: m = !1, class: h = "" } = Es(), g = qa(() => {
3251
+ let e = ys(r) || ys(i) || r === !0 || i === !0 || m === !0, t = a || o || p || ws["stroke-width"];
3252
+ return e ? Number(t) * 24 / Number(s ?? d ?? ws.width) : t;
3244
3253
  });
3245
3254
  return Ja("svg", {
3246
3255
  ...ws,
3247
- ...c,
3248
- width: o ?? u ?? ws.width,
3249
- height: o ?? u ?? ws.height,
3250
- stroke: s ?? d ?? ws.stroke,
3251
- "stroke-width": h.value,
3252
- class: bs("lucide", m, ...e ? [`lucide-${xs(Cs(e))}-icon`, `lucide-${xs(e)}`] : ["lucide-icon"])
3253
- }, [...t.map((e) => Ja(...e)), ...l.default ? [l.default()] : []]);
3256
+ ...l,
3257
+ width: s ?? d ?? ws.width,
3258
+ height: s ?? d ?? ws.height,
3259
+ stroke: c ?? f ?? ws.stroke,
3260
+ "stroke-width": g.value,
3261
+ class: bs("lucide", h, ...e ? [`lucide-${xs(Cs(e))}-icon`, `lucide-${xs(e)}`] : ["lucide-icon"])
3262
+ }, [...(t ?? n ?? []).map((e) => Ja(...e)), ...u.default ? [u.default()] : []]);
3254
3263
  }, $ = (e, t) => (n, { slots: r, attrs: i }) => Ja(Ds, {
3255
3264
  ...i,
3256
3265
  ...n,
3257
3266
  iconNode: t,
3258
3267
  name: e
3259
- }, r.default ? { default: r.default } : void 0), Os = $("grid-2x2", [
3260
- ["path", {
3261
- d: "M12 3v18",
3262
- key: "108xh3"
3263
- }],
3264
- ["path", {
3265
- d: "M3 12h18",
3266
- key: "1i2n21"
3267
- }],
3268
- ["rect", {
3269
- x: "3",
3270
- y: "3",
3271
- width: "18",
3272
- height: "18",
3273
- rx: "2",
3274
- key: "h1oib"
3275
- }]
3276
- ]), ks = $("loader-circle", [["path", {
3277
- d: "M21 12a9 9 0 1 1-6.219-8.56",
3278
- key: "13zald"
3279
- }]]), As = $("panel-left", [["rect", {
3280
- width: "18",
3281
- height: "18",
3282
- x: "3",
3283
- y: "3",
3284
- rx: "2",
3285
- key: "afitv7"
3286
- }], ["path", {
3287
- d: "M9 3v18",
3288
- key: "fh3hqa"
3289
- }]]), js = $("check", [["path", {
3268
+ }, r.default ? { default: r.default } : void 0), Os = $("check", [["path", {
3290
3269
  d: "M20 6 9 17l-5-5",
3291
3270
  key: "1gmf2c"
3292
- }]]), Ms = $("chevron-right", [["path", {
3271
+ }]]), ks = $("chevron-right", [["path", {
3293
3272
  d: "m9 18 6-6-6-6",
3294
3273
  key: "mthhwq"
3295
- }]]), Ns = $("copy", [["rect", {
3274
+ }]]), As = $("copy", [["rect", {
3296
3275
  width: "14",
3297
3276
  height: "14",
3298
3277
  x: "8",
@@ -3303,22 +3282,39 @@ var Ds = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
3303
3282
  }], ["path", {
3304
3283
  d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",
3305
3284
  key: "zix9uf"
3306
- }]]), Ps = $("file", [["path", {
3285
+ }]]), js = $("file", [["path", {
3307
3286
  d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
3308
3287
  key: "1oefj6"
3309
3288
  }], ["path", {
3310
3289
  d: "M14 2v5a1 1 0 0 0 1 1h5",
3311
3290
  key: "wfsgrz"
3312
- }]]), Fs = $("folder", [["path", {
3291
+ }]]), Ms = $("folder", [["path", {
3313
3292
  d: "M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",
3314
3293
  key: "1kt360"
3315
- }]]), Is = $("link", [["path", {
3294
+ }]]), Ns = $("grid-2x2", [
3295
+ ["path", {
3296
+ d: "M12 3v18",
3297
+ key: "108xh3"
3298
+ }],
3299
+ ["path", {
3300
+ d: "M3 12h18",
3301
+ key: "1i2n21"
3302
+ }],
3303
+ ["rect", {
3304
+ x: "3",
3305
+ y: "3",
3306
+ width: "18",
3307
+ height: "18",
3308
+ rx: "2",
3309
+ key: "h1oib"
3310
+ }]
3311
+ ]), Ps = $("link", [["path", {
3316
3312
  d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",
3317
3313
  key: "1cjeqo"
3318
3314
  }], ["path", {
3319
3315
  d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",
3320
3316
  key: "19qd67"
3321
- }]]), Ls = $("list", [
3317
+ }]]), Fs = $("list", [
3322
3318
  ["path", {
3323
3319
  d: "M3 5h.01",
3324
3320
  key: "18ugdj"
@@ -3343,7 +3339,20 @@ var Ds = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
3343
3339
  d: "M8 19h13",
3344
3340
  key: "m83p4d"
3345
3341
  }]
3346
- ]), Rs = $("pencil", [["path", {
3342
+ ]), Is = $("loader-circle", [["path", {
3343
+ d: "M21 12a9 9 0 1 1-6.219-8.56",
3344
+ key: "13zald"
3345
+ }]]), Ls = $("panel-left", [["rect", {
3346
+ width: "18",
3347
+ height: "18",
3348
+ x: "3",
3349
+ y: "3",
3350
+ rx: "2",
3351
+ key: "afitv7"
3352
+ }], ["path", {
3353
+ d: "M9 3v18",
3354
+ key: "fh3hqa"
3355
+ }]]), Rs = $("pencil", [["path", {
3347
3356
  d: "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",
3348
3357
  key: "1a8usu"
3349
3358
  }], ["path", {
@@ -3421,4 +3430,4 @@ var Ds = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
3421
3430
  //#endregion
3422
3431
  export { Wt as $, la as A, kn as B, us as C, ha as D, qa as E, Ja as F, Pn as G, Hr as H, An as I, Dn as J, Nn as K, wa as L, Z as M, dr as N, ua as O, ka as P, It as Q, Er as R, fs as S, Yn as T, Ir as U, Vr as V, Rr as W, z as X, Ee as Y, De as Z, Os as _, Bs as a, he as at, ss as b, Ls as c, Ps as d, Lt as et, Ns as f, ks as g, As as h, Vs as i, Jt as it, ya as j, ba as k, Is as l, js as m, Us as n, L as nt, zs as o, ue as ot, Ms as p, En as q, Hs as r, Yt as rt, Rs as s, Se as st, Ws as t, Gt as tt, Fs as u, lo as v, J as w, Do as x, gs as y, ia as z };
3423
3432
 
3424
- //# sourceMappingURL=icons-z3cCPQd8.js.map
3433
+ //# sourceMappingURL=icons-DLyx2bga.js.map