@feedmepos/mf-media 1.0.1-dev.3 → 1.0.1

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.
@@ -2,7 +2,7 @@ import { defineComponent as V, computed as S, resolveComponent as E, openBlock a
2
2
  import { defineStore as de, storeToRefs as ce } from "pinia";
3
3
  import { useI18n as L, useCoreStore as ue } from "@feedmepos/mf-common";
4
4
  import { useDialog as me, useSnackbar as fe } from "@feedmepos/ui-library";
5
- import { i as W, u as pe, p as ve, j as xe } from "./media-picker-40af065f.js";
5
+ import { i as W, u as pe, p as ve, j as xe } from "./media-picker-fdce9066.js";
6
6
  const ge = { class: "rounded-xl border border-fm-color-neutral-gray-200 bg-white overflow-hidden" }, ye = ["src", "alt"], be = {
7
7
  key: 1,
8
8
  class: "absolute inset-0 flex flex-col items-center justify-center gap-4 p-12 text-center"
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as de, computed as C, ref as n, onMounted as ce, watch as U, resolveComponent as k, openBlock as w, createElementBlock as S, createElementVNode as c, toDisplayString as _, unref as t, createVNode as u, createBlock as ve, createCommentVNode as J, withCtx as N } from "vue";
2
2
  import { useCoreStore as me, useI18n as fe } from "@feedmepos/mf-common";
3
3
  import { useDialog as pe } from "@feedmepos/ui-library";
4
- import { o as ge, I as ye, g as be, f as we, c as O, m as _e, e as xe, d as he, U as Be, h as Ce, a as ke, E as Se, T as K, b as Ie } from "./media-picker-40af065f.js";
4
+ import { o as ge, I as ye, g as be, f as we, c as O, m as _e, e as xe, d as he, U as Be, h as Ce, a as ke, E as Se, T as K, b as Ie } from "./media-picker-fdce9066.js";
5
5
  const Ve = { class: "p-24 relative min-h-full" }, De = { class: "flex items-center justify-between mb-8" }, Te = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2" }, ze = { class: "flex gap-8" }, Pe = { class: "flex flex-col gap-12 mb-16" }, Ae = { class: "flex items-center gap-12" }, Fe = { class: "flex-1 text-xs text-fm-color-typo-secondary" }, Re = {
6
6
  key: 0,
7
7
  class: "text-fm-color-typo-primary font-semibold"
package/dist/app.js CHANGED
@@ -2531,7 +2531,7 @@ const ka = [
2531
2531
  {
2532
2532
  path: "/library",
2533
2533
  name: "$media-library",
2534
- component: Ae(S(() => import("./AssetLibrary-e042670f.js"))),
2534
+ component: Ae(S(() => import("./AssetLibrary-2444af84.js"))),
2535
2535
  meta: {
2536
2536
  validationManifest: {
2537
2537
  requiredCaslPermissions: [
@@ -2546,7 +2546,7 @@ const ka = [
2546
2546
  {
2547
2547
  path: "/studio",
2548
2548
  name: "$media-studio",
2549
- component: Ae(S(() => import("./AiStudio-4e54cdff.js"))),
2549
+ component: Ae(S(() => import("./AiStudio-866a5c97.js"))),
2550
2550
  meta: {
2551
2551
  validationManifest: {
2552
2552
  requiredCaslPermissions: [
@@ -1,4 +1,4 @@
1
- import { defineComponent as be, resolveComponent as K, resolveDirective as ua, openBlock as b, createElementBlock as k, toDisplayString as x, unref as h, createElementVNode as v, normalizeStyle as j, Fragment as Z, renderList as he, withDirectives as et, normalizeClass as ee, withModifiers as ct, createBlock as oe, createCommentVNode as F, createVNode as W, createTextVNode as de, ref as G, withKeys as $a, vModelText as Ja, computed as z, withCtx as Se, onScopeDispose as Ha, watch as xe, mergeModels as yt, useModel as da } from "vue";
1
+ import { defineComponent as be, resolveComponent as K, resolveDirective as ua, openBlock as y, createElementBlock as k, toDisplayString as x, unref as h, createElementVNode as b, normalizeStyle as j, Fragment as Z, renderList as he, withDirectives as et, normalizeClass as ee, withModifiers as ct, createBlock as oe, createCommentVNode as F, createVNode as W, createTextVNode as de, ref as G, withKeys as $a, vModelText as Ja, computed as z, withCtx as Se, onScopeDispose as Ha, watch as xe, mergeModels as yt, useModel as da } from "vue";
2
2
  import { useI18n as ye, useCoreStore as Ka } from "@feedmepos/mf-common";
3
3
  import { useDialog as Xa } from "@feedmepos/ui-library";
4
4
  function ca(e, t) {
@@ -684,8 +684,8 @@ function st(e, t, a) {
684
684
  indexes: !1
685
685
  },
686
686
  !1,
687
- function(p, y) {
688
- return !l.isUndefined(y[p]);
687
+ function(p, v) {
688
+ return !l.isUndefined(v[p]);
689
689
  }
690
690
  );
691
691
  const n = a.metaTokens, o = a.visitor || P, r = a.dots, i = a.indexes, s = a.Blob || typeof Blob < "u" && Blob, u = a.maxDepth === void 0 ? ka : a.maxDepth, c = s && l.isSpecCompliantForm(t), d = [];
@@ -716,7 +716,7 @@ function st(e, t, a) {
716
716
  T.ERR_FORM_DATA_DEPTH_EXCEEDED
717
717
  );
718
718
  }
719
- function _(p, y) {
719
+ function _(p, v) {
720
720
  if (u === 1 / 0)
721
721
  return JSON.stringify(p);
722
722
  const C = [];
@@ -725,38 +725,38 @@ function st(e, t, a) {
725
725
  return V;
726
726
  for (; C.length && C[C.length - 1] !== this; )
727
727
  C.pop();
728
- return C.push(V), w(y + C.length - 1), V;
728
+ return C.push(V), w(v + C.length - 1), V;
729
729
  });
730
730
  }
731
- function P(p, y, C) {
731
+ function P(p, v, C) {
732
732
  let A = p;
733
733
  if (l.isReactNative(t) && l.isReactNativeBlob(p))
734
- return t.append(ft(C, y, r), f(p)), !1;
734
+ return t.append(ft(C, v, r), f(p)), !1;
735
735
  if (p && !C && typeof p == "object") {
736
- if (l.endsWith(y, "{}"))
737
- y = n ? y : y.slice(0, -2), p = _(p, 1);
738
- else if (l.isArray(p) && no(p) || (l.isFileList(p) || l.endsWith(y, "[]")) && (A = l.toArray(p)))
739
- return y = xa(y), A.forEach(function(V, Q) {
736
+ if (l.endsWith(v, "{}"))
737
+ v = n ? v : v.slice(0, -2), p = _(p, 1);
738
+ else if (l.isArray(p) && no(p) || (l.isFileList(p) || l.endsWith(v, "[]")) && (A = l.toArray(p)))
739
+ return v = xa(v), A.forEach(function(V, Q) {
740
740
  !(l.isUndefined(V) || V === null) && t.append(
741
741
  // eslint-disable-next-line no-nested-ternary
742
- i === !0 ? ft([y], Q, r) : i === null ? y : y + "[]",
742
+ i === !0 ? ft([v], Q, r) : i === null ? v : v + "[]",
743
743
  f(V)
744
744
  );
745
745
  }), !1;
746
746
  }
747
- return wt(p) ? !0 : (t.append(ft(C, y, r), f(p)), !1);
747
+ return wt(p) ? !0 : (t.append(ft(C, v, r), f(p)), !1);
748
748
  }
749
749
  const E = Object.assign(oo, {
750
750
  defaultVisitor: P,
751
751
  convertValue: f,
752
752
  isVisitable: wt
753
753
  });
754
- function R(p, y, C = 0) {
754
+ function R(p, v, C = 0) {
755
755
  if (!l.isUndefined(p)) {
756
756
  if (w(C), d.indexOf(p) !== -1)
757
- throw new Error("Circular reference detected in " + y.join("."));
757
+ throw new Error("Circular reference detected in " + v.join("."));
758
758
  d.push(p), l.forEach(p, function(A, V) {
759
- (!(l.isUndefined(A) || A === null) && o.call(t, A, l.isString(V) ? V.trim() : V, y, E)) === !0 && R(A, y ? y.concat(V) : [V], C + 1);
759
+ (!(l.isUndefined(A) || A === null) && o.call(t, A, l.isString(V) ? V.trim() : V, v, E)) === !0 && R(A, v ? v.concat(V) : [V], C + 1);
760
760
  }), d.pop();
761
761
  }
762
762
  }
@@ -1340,13 +1340,13 @@ const No = typeof XMLHttpRequest < "u", Io = No && function(e) {
1340
1340
  function R() {
1341
1341
  if (!E)
1342
1342
  return;
1343
- const y = ce.from(
1343
+ const v = ce.from(
1344
1344
  "getAllResponseHeaders" in E && E.getAllResponseHeaders()
1345
1345
  ), C = {
1346
1346
  data: !i || i === "text" || i === "json" ? E.responseText : E.response,
1347
1347
  status: E.status,
1348
1348
  statusText: E.statusText,
1349
- headers: y,
1349
+ headers: v,
1350
1350
  config: e,
1351
1351
  request: E
1352
1352
  };
@@ -1364,24 +1364,24 @@ const No = typeof XMLHttpRequest < "u", Io = No && function(e) {
1364
1364
  !E || E.readyState !== 4 || E.status === 0 && !(E.responseURL && E.responseURL.startsWith("file:")) || setTimeout(R);
1365
1365
  }, E.onabort = function() {
1366
1366
  E && (a(new T("Request aborted", T.ECONNABORTED, e, E)), P(), E = null);
1367
- }, E.onerror = function(y) {
1368
- const C = y && y.message ? y.message : "Network Error", A = new T(C, T.ERR_NETWORK, e, E);
1369
- A.event = y || null, a(A), P(), E = null;
1367
+ }, E.onerror = function(v) {
1368
+ const C = v && v.message ? v.message : "Network Error", A = new T(C, T.ERR_NETWORK, e, E);
1369
+ A.event = v || null, a(A), P(), E = null;
1370
1370
  }, E.ontimeout = function() {
1371
- let y = n.timeout ? "timeout of " + n.timeout + "ms exceeded" : "timeout exceeded";
1371
+ let v = n.timeout ? "timeout of " + n.timeout + "ms exceeded" : "timeout exceeded";
1372
1372
  const C = n.transitional || St;
1373
- n.timeoutErrorMessage && (y = n.timeoutErrorMessage), a(
1373
+ n.timeoutErrorMessage && (v = n.timeoutErrorMessage), a(
1374
1374
  new T(
1375
- y,
1375
+ v,
1376
1376
  C.clarifyTimeoutError ? T.ETIMEDOUT : T.ECONNABORTED,
1377
1377
  e,
1378
1378
  E
1379
1379
  )
1380
1380
  ), P(), E = null;
1381
- }, o === void 0 && r.setContentType(null), "setRequestHeader" in E && l.forEach(wa(r), function(y, C) {
1382
- E.setRequestHeader(C, y);
1383
- }), l.isUndefined(n.withCredentials) || (E.withCredentials = !!n.withCredentials), i && i !== "json" && (E.responseType = n.responseType), u && ([f, _] = at(u, !0), E.addEventListener("progress", f)), s && E.upload && ([d, w] = at(s), E.upload.addEventListener("progress", d), E.upload.addEventListener("loadend", w)), (n.cancelToken || n.signal) && (c = (y) => {
1384
- E && (a(!y || y.type ? new Ge(null, e, E) : y), E.abort(), P(), E = null);
1381
+ }, o === void 0 && r.setContentType(null), "setRequestHeader" in E && l.forEach(wa(r), function(v, C) {
1382
+ E.setRequestHeader(C, v);
1383
+ }), l.isUndefined(n.withCredentials) || (E.withCredentials = !!n.withCredentials), i && i !== "json" && (E.responseType = n.responseType), u && ([f, _] = at(u, !0), E.addEventListener("progress", f)), s && E.upload && ([d, w] = at(s), E.upload.addEventListener("progress", d), E.upload.addEventListener("loadend", w)), (n.cancelToken || n.signal) && (c = (v) => {
1384
+ E && (a(!v || v.type ? new Ge(null, e, E) : v), E.abort(), P(), E = null);
1385
1385
  }, n.cancelToken && n.cancelToken.subscribe(c), n.signal && (n.signal.aborted ? c() : n.signal.addEventListener("abort", c)));
1386
1386
  const p = ko(n.url);
1387
1387
  if (p && !te.protocols.includes(p)) {
@@ -1558,24 +1558,24 @@ const At = "1.18.1", ea = 64 * 1024, { isFunction: Ke } = l, Wo = (e) => encodeU
1558
1558
  const { fetch: o, Request: r, Response: i } = e, s = o ? Ke(o) : typeof fetch == "function", u = Ke(r), c = Ke(i);
1559
1559
  if (!s)
1560
1560
  return !1;
1561
- const d = s && Ke(a), f = s && (typeof n == "function" ? ((p) => (y) => p.encode(y))(new n()) : async (p) => new Uint8Array(await new r(p).arrayBuffer())), w = u && d && aa(() => {
1561
+ const d = s && Ke(a), f = s && (typeof n == "function" ? ((p) => (v) => p.encode(v))(new n()) : async (p) => new Uint8Array(await new r(p).arrayBuffer())), w = u && d && aa(() => {
1562
1562
  let p = !1;
1563
- const y = new r(te.origin, {
1563
+ const v = new r(te.origin, {
1564
1564
  body: new a(),
1565
1565
  method: "POST",
1566
1566
  get duplex() {
1567
1567
  return p = !0, "half";
1568
1568
  }
1569
- }), C = y.headers.has("Content-Type");
1570
- return y.body != null && y.body.cancel(), p && !C;
1569
+ }), C = v.headers.has("Content-Type");
1570
+ return v.body != null && v.body.cancel(), p && !C;
1571
1571
  }), _ = c && d && aa(() => l.isReadableStream(new i("").body)), P = {
1572
1572
  stream: _ && ((p) => p.body)
1573
1573
  };
1574
1574
  s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((p) => {
1575
- !P[p] && (P[p] = (y, C) => {
1576
- let A = y && y[p];
1575
+ !P[p] && (P[p] = (v, C) => {
1576
+ let A = v && v[p];
1577
1577
  if (A)
1578
- return A.call(y);
1578
+ return A.call(v);
1579
1579
  throw new T(
1580
1580
  `Response type '${p}' is not supported`,
1581
1581
  T.ERR_NOT_SUPPORT,
@@ -1597,10 +1597,10 @@ const At = "1.18.1", ea = 64 * 1024, { isFunction: Ke } = l, Wo = (e) => encodeU
1597
1597
  return p.byteLength;
1598
1598
  if (l.isURLSearchParams(p) && (p = p + ""), l.isString(p))
1599
1599
  return (await f(p)).byteLength;
1600
- }, R = async (p, y) => l.toFiniteNumber(p.getContentLength()) ?? E(y);
1600
+ }, R = async (p, v) => l.toFiniteNumber(p.getContentLength()) ?? E(v);
1601
1601
  return async (p) => {
1602
1602
  let {
1603
- url: y,
1603
+ url: v,
1604
1604
  method: C,
1605
1605
  data: A,
1606
1606
  signal: V,
@@ -1642,8 +1642,8 @@ const At = "1.18.1", ea = 64 * 1024, { isFunction: Ke } = l, Wo = (e) => encodeU
1642
1642
  password: ue
1643
1643
  };
1644
1644
  }
1645
- if (Go(y)) {
1646
- const D = new URL(y, te.origin);
1645
+ if (Go(v)) {
1646
+ const D = new URL(v, te.origin);
1647
1647
  if (!q && (D.username || D.password)) {
1648
1648
  const ue = ta(D.username), Ee = ta(D.password);
1649
1649
  q = {
@@ -1651,12 +1651,12 @@ const At = "1.18.1", ea = 64 * 1024, { isFunction: Ke } = l, Wo = (e) => encodeU
1651
1651
  password: Ee
1652
1652
  };
1653
1653
  }
1654
- (D.username || D.password) && (D.username = "", D.password = "", y = D.href);
1654
+ (D.username || D.password) && (D.username = "", D.password = "", v = D.href);
1655
1655
  }
1656
1656
  if (q && (J.delete("authorization"), J.set(
1657
1657
  "Authorization",
1658
1658
  "Basic " + btoa(Wo((q.username || "") + ":" + (q.password || "")))
1659
- )), g && typeof y == "string" && y.startsWith("data:") && qo(y) > Y)
1659
+ )), g && typeof v == "string" && v.startsWith("data:") && qo(v) > Y)
1660
1660
  throw new T(
1661
1661
  "maxContentLength size of " + Y + " exceeded",
1662
1662
  T.ERR_BAD_RESPONSE,
@@ -1680,7 +1680,7 @@ const At = "1.18.1", ea = 64 * 1024, { isFunction: Ke } = l, Wo = (e) => encodeU
1680
1680
  );
1681
1681
  if (w && C !== "get" && C !== "head" && (O || He)) {
1682
1682
  if (Pe = Pe ?? await R(J, A), Pe !== 0 || He) {
1683
- let D = new r(y, {
1683
+ let D = new r(v, {
1684
1684
  method: "POST",
1685
1685
  body: A,
1686
1686
  duplex: "half"
@@ -1718,8 +1718,8 @@ const At = "1.18.1", ea = 64 * 1024, { isFunction: Ke } = l, Wo = (e) => encodeU
1718
1718
  duplex: "half",
1719
1719
  credentials: Wa ? le : void 0
1720
1720
  };
1721
- I = u && new r(y, Ft);
1722
- let we = await (u ? B(I, H) : B(y, Ft));
1721
+ I = u && new r(v, Ft);
1722
+ let we = await (u ? B(I, H) : B(v, Ft));
1723
1723
  const zt = ce.from(we.headers);
1724
1724
  if (g) {
1725
1725
  const D = l.toFiniteNumber(zt.getContentLength());
@@ -3304,8 +3304,8 @@ const Wr = {
3304
3304
  var p;
3305
3305
  if (Re(R) || !R.refId)
3306
3306
  return null;
3307
- const y = (p = n.variantsByRefId) == null ? void 0 : p.get(R.refId);
3308
- return y ? rr(y.variants) : null;
3307
+ const v = (p = n.variantsByRefId) == null ? void 0 : p.get(R.refId);
3308
+ return v ? rr(v.variants) : null;
3309
3309
  }
3310
3310
  function r(R) {
3311
3311
  var p;
@@ -3342,11 +3342,11 @@ const Wr = {
3342
3342
  return R >= 1024 * 1024 ? `${(R / 1024 / 1024).toFixed(1)} MB` : `${Math.round(R / 1024)} KB`;
3343
3343
  }
3344
3344
  function E(R) {
3345
- const p = Date.now() - new Date(R).getTime(), y = 6e4, C = 36e5, A = 864e5;
3346
- if (p < y)
3345
+ const p = Date.now() - new Date(R).getTime(), v = 6e4, C = 36e5, A = 864e5;
3346
+ if (p < v)
3347
3347
  return a("mediaPicker.assetGrid.time.justNow");
3348
3348
  if (p < C)
3349
- return a("mediaPicker.assetGrid.time.minutesAgo", { n: Math.floor(p / y) });
3349
+ return a("mediaPicker.assetGrid.time.minutesAgo", { n: Math.floor(p / v) });
3350
3350
  if (p < A)
3351
3351
  return a("mediaPicker.assetGrid.time.hoursAgo", { n: Math.floor(p / C) });
3352
3352
  if (p < A * 8)
@@ -3355,22 +3355,22 @@ const Wr = {
3355
3355
  return `${V.getFullYear()}-${String(V.getMonth() + 1).padStart(2, "0")}-${String(V.getDate()).padStart(2, "0")}`;
3356
3356
  }
3357
3357
  return (R, p) => {
3358
- const y = K("FmIcon"), C = K("FmThumbnail"), A = K("FmAvatar"), V = K("FmButton"), Q = ua("tooltip");
3359
- return e.loading ? (b(), k("div", Wr, x(h(a)("mediaPicker.assetGrid.loading")), 1)) : e.assets.length === 0 ? (b(), k("div", Gr, x(h(a)("mediaPicker.assetGrid.empty")), 1)) : e.view === "list" ? (b(), k("div", $r, [
3360
- v("div", {
3358
+ const v = K("FmIcon"), C = K("FmThumbnail"), A = K("FmAvatar"), V = K("FmButton"), Q = ua("tooltip");
3359
+ return e.loading ? (y(), k("div", Wr, x(h(a)("mediaPicker.assetGrid.loading")), 1)) : e.assets.length === 0 ? (y(), k("div", Gr, x(h(a)("mediaPicker.assetGrid.empty")), 1)) : e.view === "list" ? (y(), k("div", $r, [
3360
+ b("div", {
3361
3361
  class: "grid items-center gap-8 px-16 h-40 bg-fm-color-neutral-gray-100 border-b border-fm-color-neutral-gray-200 text-xs font-semibold text-fm-color-typo-secondary",
3362
3362
  style: j({ gridTemplateColumns: h(ia) })
3363
3363
  }, [
3364
- p[0] || (p[0] = v("span", null, null, -1)),
3365
- p[1] || (p[1] = v("span", null, null, -1)),
3366
- v("span", null, x(h(a)("mediaPicker.assetGrid.columns.name")), 1),
3367
- v("span", null, x(h(a)("mediaPicker.assetGrid.columns.dimensions")), 1),
3368
- v("span", null, x(h(a)("mediaPicker.assetGrid.columns.fileSize")), 1),
3369
- v("span", null, x(h(a)("mediaPicker.assetGrid.columns.uploader")), 1),
3370
- v("span", null, x(h(a)("mediaPicker.assetGrid.columns.uploadedAt")), 1),
3371
- p[2] || (p[2] = v("span", null, null, -1))
3364
+ p[0] || (p[0] = b("span", null, null, -1)),
3365
+ p[1] || (p[1] = b("span", null, null, -1)),
3366
+ b("span", null, x(h(a)("mediaPicker.assetGrid.columns.name")), 1),
3367
+ b("span", null, x(h(a)("mediaPicker.assetGrid.columns.dimensions")), 1),
3368
+ b("span", null, x(h(a)("mediaPicker.assetGrid.columns.fileSize")), 1),
3369
+ b("span", null, x(h(a)("mediaPicker.assetGrid.columns.uploader")), 1),
3370
+ b("span", null, x(h(a)("mediaPicker.assetGrid.columns.uploadedAt")), 1),
3371
+ p[2] || (p[2] = b("span", null, null, -1))
3372
3372
  ], 4),
3373
- (b(!0), k(Z, null, he(e.assets, (S) => et((b(), k("div", {
3373
+ (y(!0), k(Z, null, he(e.assets, (S) => et((y(), k("div", {
3374
3374
  key: S.id,
3375
3375
  class: ee(["grid items-center gap-8 px-16 h-56 border-b border-fm-color-neutral-gray-200 last:border-b-0 hover:bg-fm-color-neutral-gray-100", r(S) ? "opacity-40 cursor-not-allowed" : "cursor-pointer"]),
3376
3376
  style: j({
@@ -3379,7 +3379,7 @@ const Wr = {
3379
3379
  }),
3380
3380
  onClick: (re) => c(S)
3381
3381
  }, [
3382
- e.selectable ? (b(), k("button", {
3382
+ e.selectable ? (y(), k("button", {
3383
3383
  key: 0,
3384
3384
  class: ee(["rounded flex items-center justify-center", e.selectedIds.has(S.id) ? "" : "bg-white border border-fm-color-neutral-gray-200"]),
3385
3385
  style: j({
@@ -3389,39 +3389,39 @@ const Wr = {
3389
3389
  }),
3390
3390
  onClick: ct((re) => d(S), ["stop"])
3391
3391
  }, [
3392
- e.selectedIds.has(S.id) ? (b(), oe(y, {
3392
+ e.selectedIds.has(S.id) ? (y(), oe(v, {
3393
3393
  key: 0,
3394
3394
  name: "check",
3395
3395
  size: "sm",
3396
3396
  color: "white"
3397
3397
  })) : F("", !0)
3398
- ], 14, Hr)) : (b(), k("span", Kr)),
3399
- v("div", Xr, [
3400
- s(S) ? (b(), oe(C, {
3398
+ ], 14, Hr)) : (y(), k("span", Kr)),
3399
+ b("div", Xr, [
3400
+ s(S) ? (y(), oe(C, {
3401
3401
  key: 0,
3402
3402
  src: s(S),
3403
3403
  size: "sm",
3404
3404
  class: "!w-full !h-full"
3405
- }, null, 8, ["src"])) : (b(), k("div", Qr, [
3406
- W(y, {
3405
+ }, null, 8, ["src"])) : (y(), k("div", Qr, [
3406
+ W(v, {
3407
3407
  name: "movie",
3408
3408
  size: "sm"
3409
3409
  })
3410
3410
  ]))
3411
3411
  ]),
3412
- v("div", Yr, [
3413
- v("span", Zr, x(S.fileName), 1),
3414
- v("div", ei, [
3415
- v("span", {
3412
+ b("div", Yr, [
3413
+ b("span", Zr, x(S.fileName), 1),
3414
+ b("div", ei, [
3415
+ b("span", {
3416
3416
  class: "text-fm-color-typo-tertiary",
3417
3417
  style: j(h($))
3418
3418
  }, x(_(S.mimeType)), 5),
3419
- u(S) ? (b(), k("span", {
3419
+ u(S) ? (y(), k("span", {
3420
3420
  key: 0,
3421
3421
  class: "text-fm-color-typo-tertiary",
3422
3422
  style: j(h($))
3423
3423
  }, x(u(S)), 5)) : F("", !0),
3424
- o(S) ? (b(), k("span", {
3424
+ o(S) ? (y(), k("span", {
3425
3425
  key: 1,
3426
3426
  class: ee(["font-semibold", {
3427
3427
  "text-fm-color-typo-tertiary": o(S).tone === "done",
@@ -3432,16 +3432,16 @@ const Wr = {
3432
3432
  }, x(f(o(S))), 7)) : F("", !0)
3433
3433
  ])
3434
3434
  ]),
3435
- v("span", ti, x(h(ze)(S) ?? "—"), 1),
3436
- v("span", ai, x(P(S.fileSizeBytes)), 1),
3437
- v("div", ni, [
3435
+ b("span", ti, x(h(ze)(S) ?? "—"), 1),
3436
+ b("span", ai, x(P(S.fileSizeBytes)), 1),
3437
+ b("div", ni, [
3438
3438
  W(A, {
3439
3439
  name: S.uploadedBy,
3440
3440
  size: "sm"
3441
3441
  }, null, 8, ["name"]),
3442
- v("span", oi, x(S.uploadedBy), 1)
3442
+ b("span", oi, x(S.uploadedBy), 1)
3443
3443
  ]),
3444
- v("span", ri, x(E(S.createdAt)), 1),
3444
+ b("span", ri, x(E(S.createdAt)), 1),
3445
3445
  W(V, {
3446
3446
  variant: "tertiary",
3447
3447
  size: "md",
@@ -3452,8 +3452,8 @@ const Wr = {
3452
3452
  ], 14, Jr)), [
3453
3453
  [Q, i(S)]
3454
3454
  ])), 128))
3455
- ])) : (b(), k("div", ii, [
3456
- (b(!0), k(Z, null, he(e.assets, (S) => et((b(), k("div", {
3455
+ ])) : (y(), k("div", ii, [
3456
+ (y(!0), k(Z, null, he(e.assets, (S) => et((y(), k("div", {
3457
3457
  key: S.id,
3458
3458
  class: ee(["rounded-lg border bg-white overflow-hidden transition-shadow hover:shadow-lg", [
3459
3459
  e.selectedIds.has(S.id) ? "border-2" : "border-gray-200",
@@ -3462,53 +3462,53 @@ const Wr = {
3462
3462
  style: j(e.selectedIds.has(S.id) ? { borderColor: h(me) } : {}),
3463
3463
  onClick: (re) => c(S)
3464
3464
  }, [
3465
- v("div", li, [
3466
- s(S) ? (b(), oe(C, {
3465
+ b("div", li, [
3466
+ s(S) ? (y(), oe(C, {
3467
3467
  key: 0,
3468
3468
  src: s(S),
3469
3469
  size: "xl",
3470
3470
  class: "w-full h-full"
3471
- }, null, 8, ["src"])) : (b(), k("div", ui, [
3472
- W(y, {
3471
+ }, null, 8, ["src"])) : (y(), k("div", ui, [
3472
+ W(v, {
3473
3473
  name: "movie",
3474
3474
  size: "lg"
3475
3475
  }),
3476
- v("span", {
3476
+ b("span", {
3477
3477
  style: j(h($))
3478
3478
  }, x(h(a)("mediaPicker.assetGrid.noPoster")), 5)
3479
3479
  ])),
3480
- h(Re)(S) ? (b(), k("div", di, [
3481
- v("span", ci, [
3482
- W(y, {
3480
+ h(Re)(S) ? (y(), k("div", di, [
3481
+ b("span", ci, [
3482
+ W(v, {
3483
3483
  name: "play_arrow",
3484
3484
  size: "md",
3485
3485
  color: "white"
3486
3486
  })
3487
3487
  ])
3488
3488
  ])) : F("", !0),
3489
- e.selectable ? (b(), k("button", {
3489
+ e.selectable ? (y(), k("button", {
3490
3490
  key: 3,
3491
3491
  class: ee(["absolute top-8 left-8 z-10 w-24 h-24 rounded-full flex items-center justify-center", e.selectedIds.has(S.id) ? "" : "bg-black/30 border border-white/80"]),
3492
3492
  style: j(e.selectedIds.has(S.id) ? { background: h(me) } : {}),
3493
3493
  onClick: ct((re) => d(S), ["stop"])
3494
3494
  }, [
3495
- e.selectedIds.has(S.id) ? (b(), oe(y, {
3495
+ e.selectedIds.has(S.id) ? (y(), oe(v, {
3496
3496
  key: 0,
3497
3497
  name: "check",
3498
3498
  size: "sm",
3499
3499
  color: "white"
3500
3500
  })) : F("", !0)
3501
3501
  ], 14, pi)) : F("", !0),
3502
- v("span", {
3502
+ b("span", {
3503
3503
  class: "absolute bottom-8 left-8 bg-black/70 text-white font-semibold rounded",
3504
3504
  style: j([h($), h(bt)])
3505
3505
  }, x(_(S.mimeType)), 5),
3506
- u(S) ? (b(), k("span", {
3506
+ u(S) ? (y(), k("span", {
3507
3507
  key: 4,
3508
3508
  class: "absolute bottom-8 right-8 bg-black/70 text-white font-semibold rounded",
3509
3509
  style: j([h($), h(bt)])
3510
3510
  }, x(u(S)), 5)) : F("", !0),
3511
- o(S) ? (b(), k("span", {
3511
+ o(S) ? (y(), k("span", {
3512
3512
  key: 5,
3513
3513
  class: ee(["absolute bottom-8 right-8 text-white font-semibold rounded", {
3514
3514
  "bg-black/70": o(S).tone === "done",
@@ -3518,13 +3518,13 @@ const Wr = {
3518
3518
  style: j([h($), h(bt)])
3519
3519
  }, x(f(o(S))), 7)) : F("", !0)
3520
3520
  ]),
3521
- v("div", fi, [
3522
- v("div", mi, x(S.fileName), 1),
3523
- v("span", {
3521
+ b("div", fi, [
3522
+ b("div", mi, x(S.fileName), 1),
3523
+ b("span", {
3524
3524
  class: "text-gray-500 truncate",
3525
3525
  style: j(h($))
3526
3526
  }, [
3527
- h(ze)(S) ? (b(), k(Z, { key: 0 }, [
3527
+ h(ze)(S) ? (y(), k(Z, { key: 0 }, [
3528
3528
  de(x(h(ze)(S)) + " · ", 1)
3529
3529
  ], 64)) : F("", !0),
3530
3530
  de(x(P(S.fileSizeBytes)), 1)
@@ -3548,18 +3548,18 @@ const Wr = {
3548
3548
  const { t: a } = ye({ messages: ve }), n = t;
3549
3549
  return (o, r) => {
3550
3550
  const i = K("FmChip");
3551
- return b(), k("div", hi, [
3551
+ return y(), k("div", hi, [
3552
3552
  W(i, {
3553
3553
  selectable: "",
3554
3554
  selected: e.modelValue === null,
3555
3555
  onClick: r[0] || (r[0] = (s) => n("update:modelValue", null))
3556
3556
  }, {
3557
3557
  default: Se(() => [
3558
- v("span", {
3558
+ b("span", {
3559
3559
  class: ee(["fm-typo-en-body-md-600 flex items-center gap-6", { "text-white": e.modelValue === null }])
3560
3560
  }, [
3561
3561
  de(x(h(a)("mediaPicker.tagFilterTabs.all")) + " ", 1),
3562
- v("span", {
3562
+ b("span", {
3563
3563
  class: ee(["leading-none rounded-full px-6 py-2", e.modelValue === null ? "bg-white/25" : "bg-fm-color-neutral-gray-100"]),
3564
3564
  style: j(h($))
3565
3565
  }, x(e.total), 7)
@@ -3567,18 +3567,18 @@ const Wr = {
3567
3567
  ]),
3568
3568
  _: 1
3569
3569
  }, 8, ["selected"]),
3570
- (b(!0), k(Z, null, he(e.tags, (s) => (b(), oe(i, {
3570
+ (y(!0), k(Z, null, he(e.tags, (s) => (y(), oe(i, {
3571
3571
  key: s.tag,
3572
3572
  selectable: "",
3573
3573
  selected: e.modelValue === s.tag,
3574
3574
  onClick: (u) => n("update:modelValue", e.modelValue === s.tag ? null : s.tag)
3575
3575
  }, {
3576
3576
  default: Se(() => [
3577
- v("span", {
3577
+ b("span", {
3578
3578
  class: ee(["fm-typo-en-body-md-600 flex items-center gap-6", { "text-white": e.modelValue === s.tag }])
3579
3579
  }, [
3580
3580
  de(x(s.tag) + " ", 1),
3581
- v("span", {
3581
+ b("span", {
3582
3582
  class: ee(["leading-none rounded-full px-6 py-2", e.modelValue === s.tag ? "bg-white/25" : "bg-fm-color-neutral-gray-100"]),
3583
3583
  style: j(h($))
3584
3584
  }, x(s.count), 7)
@@ -3635,16 +3635,16 @@ const Wr = {
3635
3635
  }
3636
3636
  return (u, c) => {
3637
3637
  const d = ua("tooltip");
3638
- return b(), k("div", yi, [
3639
- v("span", vi, x(h(t)("mediaPicker.ratioBar.label")), 1),
3640
- v("div", wi, [
3641
- v("button", {
3638
+ return y(), k("div", yi, [
3639
+ b("span", vi, x(h(t)("mediaPicker.ratioBar.label")), 1),
3640
+ b("div", wi, [
3641
+ b("button", {
3642
3642
  type: "button",
3643
3643
  class: ee(["px-12 rounded-full border font-semibold transition-colors", r(n.value === null)]),
3644
3644
  style: j(s(n.value === null)),
3645
3645
  onClick: c[0] || (c[0] = (f) => o(null))
3646
3646
  }, x(h(t)("mediaPicker.variants.original")), 7),
3647
- (b(!0), k(Z, null, he(h(Dt), (f) => et((b(), k("button", {
3647
+ (y(!0), k(Z, null, he(h(Dt), (f) => et((y(), k("button", {
3648
3648
  key: f,
3649
3649
  type: "button",
3650
3650
  class: ee(["px-12 rounded-full border font-semibold transition-colors", r(n.value === f, f)]),
@@ -3656,8 +3656,8 @@ const Wr = {
3656
3656
  [d, i(f)]
3657
3657
  ])), 128))
3658
3658
  ]),
3659
- c[1] || (c[1] = v("div", { class: "flex-1" }, null, -1)),
3660
- e.facts ? (b(), k("span", xi, x(e.facts.dimensions) + " · " + x(h(lr)(e.facts.sizeBytes)), 1)) : F("", !0)
3659
+ c[1] || (c[1] = b("div", { class: "flex-1" }, null, -1)),
3660
+ e.facts ? (y(), k("span", xi, x(e.facts.dimensions) + " · " + x(h(lr)(e.facts.sizeBytes)), 1)) : F("", !0)
3661
3661
  ]);
3662
3662
  };
3663
3663
  }
@@ -3692,10 +3692,10 @@ const Ri = { class: "space-y-8" }, Si = { class: "text-xs font-semibold text-gra
3692
3692
  n.modelValue.includes(i) ? n.modelValue.filter((s) => s !== i) : [...n.modelValue, i]
3693
3693
  );
3694
3694
  }
3695
- return (i, s) => (b(), k("div", Ri, [
3696
- v("div", Si, x(h(a)("mediaPicker.ratios.title")), 1),
3697
- v("div", Ti, [
3698
- (b(!0), k(Z, null, he(h(Dt), (u) => (b(), k("button", {
3695
+ return (i, s) => (y(), k("div", Ri, [
3696
+ b("div", Si, x(h(a)("mediaPicker.ratios.title")), 1),
3697
+ b("div", Ti, [
3698
+ (y(!0), k(Z, null, he(h(Dt), (u) => (y(), k("button", {
3699
3699
  key: u,
3700
3700
  type: "button",
3701
3701
  class: ee(["px-12 rounded-full border font-semibold transition-colors", [
@@ -3710,7 +3710,7 @@ const Ri = { class: "space-y-8" }, Si = { class: "text-xs font-semibold text-gra
3710
3710
  onClick: (c) => r(u)
3711
3711
  }, x(h(Be)(u)), 15, Oi))), 128))
3712
3712
  ]),
3713
- v("div", {
3713
+ b("div", {
3714
3714
  class: "text-gray-400",
3715
3715
  style: j(h($))
3716
3716
  }, x(h(a)("mediaPicker.ratios.hint")), 5)
@@ -3747,23 +3747,23 @@ const Ai = { class: "flex flex-wrap items-center gap-8" }, Bi = {
3747
3747
  }
3748
3748
  return (u, c) => {
3749
3749
  const d = K("FmChip"), f = K("FmIcon");
3750
- return b(), k("div", Ai, [
3751
- e.mode === "filter" ? (b(), oe(d, {
3750
+ return y(), k("div", Ai, [
3751
+ e.mode === "filter" ? (y(), oe(d, {
3752
3752
  key: 0,
3753
3753
  label: h(a)("mediaPicker.tagFilterBar.all"),
3754
3754
  selected: e.modelValue.length === 0,
3755
3755
  selectable: "",
3756
3756
  onClick: c[0] || (c[0] = (w) => o("update:modelValue", []))
3757
3757
  }, null, 8, ["label", "selected"])) : F("", !0),
3758
- (b(!0), k(Z, null, he(e.tags, (w) => (b(), oe(d, {
3758
+ (y(!0), k(Z, null, he(e.tags, (w) => (y(), oe(d, {
3759
3759
  key: w,
3760
3760
  label: w,
3761
3761
  selected: e.modelValue.includes(w),
3762
3762
  selectable: "",
3763
3763
  onClick: (_) => r(w)
3764
3764
  }, null, 8, ["label", "selected", "onClick"]))), 128)),
3765
- e.mode === "assign" ? (b(), k("div", Bi, [
3766
- et(v("input", {
3765
+ e.mode === "assign" ? (y(), k("div", Bi, [
3766
+ et(b("input", {
3767
3767
  "onUpdate:modelValue": c[1] || (c[1] = (w) => i.value = w),
3768
3768
  placeholder: h(a)("mediaPicker.tagFilterBar.newTagPlaceholder"),
3769
3769
  class: "text-xs outline-none",
@@ -3772,7 +3772,7 @@ const Ai = { class: "flex flex-wrap items-center gap-8" }, Bi = {
3772
3772
  }, null, 40, _i), [
3773
3773
  [Ja, i.value]
3774
3774
  ]),
3775
- v("button", {
3775
+ b("button", {
3776
3776
  class: "p-2",
3777
3777
  onClick: s
3778
3778
  }, [
@@ -3831,7 +3831,7 @@ const zi = { class: "space-y-16" }, Vi = {
3831
3831
  },
3832
3832
  emits: ["tag-created", "uploaded"],
3833
3833
  setup(e, { expose: t, emit: a }) {
3834
- const { t: n } = ye({ messages: ve }), o = e, r = a, i = G([]), s = G([]), u = G([]), c = G(!1), d = z(() => i.value.length), f = z(() => o.availableTags.filter((m) => !s.value.includes(m)).slice(0, 6)), w = z(() => i.value.some((m) => m.isVideo)), _ = z(() => i.value.some((m) => !m.isVideo)), P = z(() => Ui(o.kinds)), E = z(() => Li(o.kinds)), R = z(() => Ii(o.kinds)), p = z(() => qa(o.kinds)), y = z(() => p.value ? R.value ? n("mediaPicker.uploadPanel.dropLabel") : n("mediaPicker.uploadPanel.dropLabelVideos") : n("mediaPicker.uploadPanel.dropLabelImages")), C = z(() => p.value ? R.value ? n("mediaPicker.uploadPanel.helperText") : n("mediaPicker.uploadPanel.helperTextVideos") : n("mediaPicker.uploadPanel.helperTextImages"));
3834
+ const { t: n } = ye({ messages: ve }), o = e, r = a, i = G([]), s = G([]), u = G([]), c = G(!1), d = z(() => i.value.length), f = z(() => o.availableTags.filter((m) => !s.value.includes(m)).slice(0, 6)), w = z(() => i.value.some((m) => m.isVideo)), _ = z(() => i.value.some((m) => !m.isVideo)), P = z(() => Ui(o.kinds)), E = z(() => Li(o.kinds)), R = z(() => Ii(o.kinds)), p = z(() => qa(o.kinds)), v = z(() => p.value ? R.value ? n("mediaPicker.uploadPanel.dropLabel") : n("mediaPicker.uploadPanel.dropLabelVideos") : n("mediaPicker.uploadPanel.dropLabelImages")), C = z(() => p.value ? R.value ? n("mediaPicker.uploadPanel.helperText") : n("mediaPicker.uploadPanel.helperTextVideos") : n("mediaPicker.uploadPanel.helperTextImages"));
3835
3835
  function A(m) {
3836
3836
  URL.revokeObjectURL(m.previewUrl), m.posterPreviewUrl && URL.revokeObjectURL(m.posterPreviewUrl);
3837
3837
  }
@@ -3961,72 +3961,74 @@ const zi = { class: "space-y-16" }, Vi = {
3961
3961
  }
3962
3962
  return t({ stagedCount: d, uploading: c, upload: Y, reset: V }), (m, g) => {
3963
3963
  const L = K("FmDropField"), U = K("FmIcon");
3964
- return b(), k("div", zi, [
3964
+ return y(), k("div", zi, [
3965
3965
  W(L, {
3966
- label: y.value,
3966
+ label: v.value,
3967
3967
  accept: P.value,
3968
3968
  "max-file-size": E.value,
3969
3969
  onFileUpload: Q
3970
3970
  }, {
3971
- "accept-text": Se(() => [...g[3] || (g[3] = [])]),
3971
+ "accept-text": Se(() => [...g[3] || (g[3] = [
3972
+ b("span", null, null, -1)
3973
+ ])]),
3972
3974
  "helper-text": Se(() => [
3973
3975
  de(x(C.value), 1)
3974
3976
  ]),
3975
3977
  _: 1
3976
3978
  }, 8, ["label", "accept", "max-file-size"]),
3977
- R.value && (_.value || !w.value) ? (b(), oe(Ci, {
3979
+ R.value && (_.value || !w.value) ? (y(), oe(Ci, {
3978
3980
  key: 0,
3979
3981
  modelValue: u.value,
3980
3982
  "onUpdate:modelValue": g[0] || (g[0] = (B) => u.value = B),
3981
3983
  disabled: c.value
3982
3984
  }, null, 8, ["modelValue", "disabled"])) : F("", !0),
3983
- w.value && _.value ? (b(), k("div", {
3985
+ w.value && _.value ? (y(), k("div", {
3984
3986
  key: 1,
3985
3987
  class: "text-gray-500",
3986
3988
  style: j(h($))
3987
3989
  }, x(h(n)("mediaPicker.uploadPanel.videoNoRatiosNote")), 5)) : F("", !0),
3988
- i.value.length ? (b(), k("div", Vi, [
3989
- v("div", qi, x(h(n)("mediaPicker.uploadPanel.stagedCount", { count: i.value.length })), 1),
3990
- (b(!0), k(Z, null, he(i.value, (B) => (b(), k("div", {
3990
+ i.value.length ? (y(), k("div", Vi, [
3991
+ b("div", qi, x(h(n)("mediaPicker.uploadPanel.stagedCount", { count: i.value.length })), 1),
3992
+ (y(!0), k(Z, null, he(i.value, (B) => (y(), k("div", {
3991
3993
  key: B.id,
3992
3994
  class: ee(["flex items-center gap-12 p-8 border rounded-lg", B.error ? "border-red-300 bg-red-50" : "border-fm-color-neutral-gray-200"]),
3993
3995
  style: j(S(B) && !B.error ? h(Er) : void 0)
3994
3996
  }, [
3995
- !B.isVideo || B.posterPreviewUrl ? (b(), k("img", {
3997
+ !B.isVideo || B.posterPreviewUrl ? (y(), k("img", {
3996
3998
  key: 0,
3997
3999
  src: B.isVideo ? B.posterPreviewUrl : B.previewUrl,
3998
4000
  class: "rounded flex-shrink-0 object-cover",
3999
4001
  style: { width: "44px", height: "44px" }
4000
- }, null, 8, Wi)) : (b(), k("div", Gi, [
4002
+ }, null, 8, Wi)) : (y(), k("div", Gi, [
4001
4003
  W(U, {
4002
4004
  name: "movie",
4003
4005
  size: "sm"
4004
4006
  })
4005
4007
  ])),
4006
- v("div", $i, [
4007
- v("span", Ji, x(B.file.name), 1),
4008
- B.error ? (b(), k("span", {
4008
+ b("div", $i, [
4009
+ b("span", Ji, x(B.file.name), 1),
4010
+ B.error ? (y(), k("span", {
4009
4011
  key: 0,
4010
4012
  class: "text-red-600",
4011
4013
  style: j(h($))
4012
- }, x(B.error), 5)) : S(B) ? (b(), k("span", {
4014
+ }, x(B.error), 5)) : S(B) ? (y(), k("span", {
4013
4015
  key: 1,
4014
4016
  style: j([h($), h(Rr)])
4015
- }, x(h(n)("mediaPicker.uploadPanel.videoUndecodableWarning")), 5)) : (b(), k("span", {
4017
+ }, x(h(n)("mediaPicker.uploadPanel.videoUndecodableWarning")), 5)) : (y(), k("span", {
4016
4018
  key: 2,
4017
4019
  class: "text-gray-500",
4018
4020
  style: j(h($))
4019
4021
  }, [
4020
- B.dimensions ? (b(), k(Z, { key: 0 }, [
4022
+ B.dimensions ? (y(), k(Z, { key: 0 }, [
4021
4023
  de(x(B.dimensions.width) + "×" + x(B.dimensions.height) + " · ", 1)
4022
4024
  ], 64)) : F("", !0),
4023
- re(B) ? (b(), k(Z, { key: 1 }, [
4025
+ re(B) ? (y(), k(Z, { key: 1 }, [
4024
4026
  de(x(re(B)) + " · ", 1)
4025
4027
  ], 64)) : F("", !0),
4026
4028
  de(x(N(B.file.size)), 1)
4027
4029
  ], 4))
4028
4030
  ]),
4029
- v("button", {
4031
+ b("button", {
4030
4032
  class: "rounded flex-shrink-0 flex items-center justify-center text-gray-500 hover:bg-red-50 hover:text-red-600",
4031
4033
  style: { width: "28px", height: "28px" },
4032
4034
  onClick: (M) => O(B.id)
@@ -4038,8 +4040,8 @@ const zi = { class: "space-y-16" }, Vi = {
4038
4040
  ], 8, Hi)
4039
4041
  ], 6))), 128))
4040
4042
  ])) : F("", !0),
4041
- v("div", Ki, [
4042
- v("div", Xi, x(h(n)("mediaPicker.uploadPanel.tagsLabel")), 1),
4043
+ b("div", Ki, [
4044
+ b("div", Xi, x(h(n)("mediaPicker.uploadPanel.tagsLabel")), 1),
4043
4045
  W(Di, {
4044
4046
  modelValue: s.value,
4045
4047
  "onUpdate:modelValue": g[1] || (g[1] = (B) => s.value = B),
@@ -4047,12 +4049,12 @@ const zi = { class: "space-y-16" }, Vi = {
4047
4049
  mode: "assign",
4048
4050
  onTagCreated: g[2] || (g[2] = (B) => r("tag-created", B))
4049
4051
  }, null, 8, ["modelValue", "tags"]),
4050
- f.value.length ? (b(), k("div", Qi, [
4051
- v("span", {
4052
+ f.value.length ? (y(), k("div", Qi, [
4053
+ b("span", {
4052
4054
  class: "text-gray-400",
4053
4055
  style: j(h($))
4054
4056
  }, x(h(n)("mediaPicker.uploadPanel.suggestedTagsLabel")), 5),
4055
- (b(!0), k(Z, null, he(f.value, (B) => (b(), k("button", {
4057
+ (y(!0), k(Z, null, he(f.value, (B) => (y(), k("button", {
4056
4058
  key: B,
4057
4059
  class: "px-12 rounded-full border border-dashed border-fm-color-neutral-gray-300 font-semibold text-gray-500",
4058
4060
  style: j([h($), "height:26px"]),
@@ -4160,7 +4162,7 @@ const ns = { class: "w-full flex items-center justify-between gap-16 pr-8" }, os
4160
4162
  () => n.open,
4161
4163
  (m) => {
4162
4164
  var g;
4163
- m && (i.value = "browse", s.value = "", u.value = null, Q.value = /* @__PURE__ */ new Set(), y.value = n.ratio ?? null, (g = H.value) == null || g.reset(), R(), E());
4165
+ m && (i.value = "browse", s.value = "", u.value = null, Q.value = /* @__PURE__ */ new Set(), v.value = n.ratio ?? null, (g = H.value) == null || g.reset(), R(), E());
4164
4166
  }
4165
4167
  ), xe(u, E), xe(
4166
4168
  () => o.value.join(","),
@@ -4170,10 +4172,10 @@ const ns = { class: "w-full flex items-center justify-between gap-16 pr-8" }, os
4170
4172
  xe(s, () => {
4171
4173
  clearTimeout(p), p = setTimeout(E, 250);
4172
4174
  });
4173
- const y = G(n.ratio ?? null);
4175
+ const v = G(n.ratio ?? null);
4174
4176
  xe(
4175
4177
  () => n.ratio,
4176
- (m) => y.value = m ?? null
4178
+ (m) => v.value = m ?? null
4177
4179
  );
4178
4180
  const C = z(() => n.ratio !== void 0 && n.ratio !== null);
4179
4181
  function A(m) {
@@ -4182,10 +4184,10 @@ const ns = { class: "w-full flex items-center justify-between gap-16 pr-8" }, os
4182
4184
  }
4183
4185
  const V = z(() => {
4184
4186
  const m = /* @__PURE__ */ new Set();
4185
- if (y.value === null)
4187
+ if (v.value === null)
4186
4188
  return m;
4187
4189
  for (const g of c.value)
4188
- ht(g, y.value, A(g)) || m.add(g.id);
4190
+ ht(g, v.value, A(g)) || m.add(g.id);
4189
4191
  return m;
4190
4192
  }), Q = G(/* @__PURE__ */ new Set());
4191
4193
  function S(m) {
@@ -4196,7 +4198,7 @@ const ns = { class: "w-full flex items-center justify-between gap-16 pr-8" }, os
4196
4198
  S(m);
4197
4199
  }
4198
4200
  const O = z(
4199
- () => c.value.filter((m) => Q.value.has(m.id)).map((m) => ht(m, y.value, A(m))).filter((m) => m !== null)
4201
+ () => c.value.filter((m) => Q.value.has(m.id)).map((m) => ht(m, v.value, A(m))).filter((m) => m !== null)
4200
4202
  ), N = z(() => {
4201
4203
  if (O.value.length !== 1)
4202
4204
  return /* @__PURE__ */ new Set();
@@ -4230,18 +4232,18 @@ const ns = { class: "w-full flex items-center justify-between gap-16 pr-8" }, os
4230
4232
  }
4231
4233
  return (m, g) => {
4232
4234
  const L = K("FmSearch"), U = K("FmButton"), B = K("FmDialog");
4233
- return b(), oe(B, {
4235
+ return y(), oe(B, {
4234
4236
  "model-value": e.open,
4235
4237
  "max-width": 900,
4236
4238
  "onUpdate:modelValue": g[8] || (g[8] = (M) => !M && r("update:open", !1))
4237
4239
  }, {
4238
4240
  "dialog-header": Se(() => [
4239
- v("div", ns, [
4240
- v("div", null, [
4241
- v("div", null, x(h(a)("mediaPicker.pickerModal.title")), 1),
4242
- v("div", os, x(e.selectionMode === "multiple" ? h(a)("mediaPicker.pickerModal.subtitleMultiple") : h(a)("mediaPicker.pickerModal.subtitleSingle")), 1)
4241
+ b("div", ns, [
4242
+ b("div", null, [
4243
+ b("div", null, x(h(a)("mediaPicker.pickerModal.title")), 1),
4244
+ b("div", os, x(e.selectionMode === "multiple" ? h(a)("mediaPicker.pickerModal.subtitleMultiple") : h(a)("mediaPicker.pickerModal.subtitleSingle")), 1)
4243
4245
  ]),
4244
- i.value === "browse" ? (b(), oe(L, {
4246
+ i.value === "browse" ? (y(), oe(L, {
4245
4247
  key: 0,
4246
4248
  modelValue: s.value,
4247
4249
  "onUpdate:modelValue": g[0] || (g[0] = (M) => s.value = M),
@@ -4254,31 +4256,31 @@ const ns = { class: "w-full flex items-center justify-between gap-16 pr-8" }, os
4254
4256
  "dialog-footer": Se(() => {
4255
4257
  var M, I;
4256
4258
  return [
4257
- v("div", ls, [
4258
- i.value === "browse" && e.selectionMode === "single" ? (b(), k("div", us, [
4259
+ b("div", ls, [
4260
+ i.value === "browse" && e.selectionMode === "single" ? (y(), k("div", us, [
4259
4261
  W(Pi, {
4260
- modelValue: y.value,
4261
- "onUpdate:modelValue": g[5] || (g[5] = (ie) => y.value = ie),
4262
+ modelValue: v.value,
4263
+ "onUpdate:modelValue": g[5] || (g[5] = (ie) => v.value = ie),
4262
4264
  facts: J.value,
4263
4265
  locked: C.value,
4264
4266
  "unavailable-ratios": N.value
4265
4267
  }, null, 8, ["modelValue", "facts", "locked", "unavailable-ratios"])
4266
4268
  ])) : F("", !0),
4267
- v("div", ds, [
4268
- i.value === "browse" ? (b(), k("span", cs, [
4269
- Q.value.size ? (b(), k(Z, { key: 0 }, [
4269
+ b("div", ds, [
4270
+ i.value === "browse" ? (y(), k("span", cs, [
4271
+ Q.value.size ? (y(), k(Z, { key: 0 }, [
4270
4272
  de(x(h(a)("mediaPicker.pickerModal.selectedCount", { count: Q.value.size })), 1)
4271
- ], 64)) : (b(), k(Z, { key: 1 }, [
4273
+ ], 64)) : (y(), k(Z, { key: 1 }, [
4272
4274
  de(x(h(a)("mediaPicker.pickerModal.selectPrompt")), 1)
4273
4275
  ], 64))
4274
- ])) : (b(), k("span", ps)),
4275
- v("div", fs, [
4276
+ ])) : (y(), k("span", ps)),
4277
+ b("div", fs, [
4276
4278
  W(U, {
4277
4279
  label: h(a)("mediaPicker.pickerModal.cancelButton"),
4278
4280
  variant: "tertiary",
4279
4281
  onClick: g[6] || (g[6] = (ie) => r("update:open", !1))
4280
4282
  }, null, 8, ["label"]),
4281
- i.value === "upload" ? (b(), oe(U, {
4283
+ i.value === "upload" ? (y(), oe(U, {
4282
4284
  key: 0,
4283
4285
  label: h(a)("mediaPicker.pickerModal.uploadSubmitButton", { count: ((M = H.value) == null ? void 0 : M.stagedCount) ?? 0 }),
4284
4286
  variant: "primary",
@@ -4287,7 +4289,7 @@ const ns = { class: "w-full flex items-center justify-between gap-16 pr-8" }, os
4287
4289
  var Pe;
4288
4290
  return (Pe = H.value) == null ? void 0 : Pe.upload();
4289
4291
  })
4290
- }, null, 8, ["label", "disabled"])) : (b(), oe(U, {
4292
+ }, null, 8, ["label", "disabled"])) : (y(), oe(U, {
4291
4293
  key: 1,
4292
4294
  label: h(a)("mediaPicker.pickerModal.confirmButton"),
4293
4295
  variant: "primary",
@@ -4302,16 +4304,16 @@ const ns = { class: "w-full flex items-center justify-between gap-16 pr-8" }, os
4302
4304
  default: Se(() => {
4303
4305
  var M;
4304
4306
  return [
4305
- v("div", rs, [
4306
- (M = H.value) != null && M.uploading ? (b(), k("div", is, [
4307
- (b(), k("svg", {
4307
+ b("div", rs, [
4308
+ (M = H.value) != null && M.uploading ? (y(), k("div", is, [
4309
+ (y(), k("svg", {
4308
4310
  class: "animate-spin",
4309
4311
  style: j({ width: "32px", height: "32px", color: h(me) }),
4310
4312
  xmlns: "http://www.w3.org/2000/svg",
4311
4313
  fill: "none",
4312
4314
  viewBox: "0 0 24 24"
4313
4315
  }, [...g[9] || (g[9] = [
4314
- v("circle", {
4316
+ b("circle", {
4315
4317
  class: "opacity-25",
4316
4318
  cx: "12",
4317
4319
  cy: "12",
@@ -4319,31 +4321,31 @@ const ns = { class: "w-full flex items-center justify-between gap-16 pr-8" }, os
4319
4321
  stroke: "currentColor",
4320
4322
  "stroke-width": "3"
4321
4323
  }, null, -1),
4322
- v("path", {
4324
+ b("path", {
4323
4325
  class: "opacity-75",
4324
4326
  fill: "currentColor",
4325
4327
  d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"
4326
4328
  }, null, -1)
4327
4329
  ])], 4)),
4328
- v("span", {
4330
+ b("span", {
4329
4331
  class: "text-sm font-semibold",
4330
4332
  style: j({ color: h(me) })
4331
4333
  }, x(h(a)("mediaPicker.uploadPanel.uploading")), 5)
4332
4334
  ])) : F("", !0),
4333
- e.allowUpload ? (b(), k("div", ss, [
4334
- v("button", {
4335
+ e.allowUpload ? (y(), k("div", ss, [
4336
+ b("button", {
4335
4337
  class: ee(["pb-8 px-4 text-sm", i.value === "browse" ? "font-semibold border-b-2" : "text-gray-500"]),
4336
4338
  style: j(i.value === "browse" ? { borderColor: h(me) } : {}),
4337
4339
  onClick: g[1] || (g[1] = (I) => i.value = "browse")
4338
4340
  }, x(h(a)("mediaPicker.pickerModal.browseTab")), 7),
4339
- v("button", {
4341
+ b("button", {
4340
4342
  class: ee(["pb-8 px-4 text-sm", i.value === "upload" ? "font-semibold border-b-2" : "text-gray-500"]),
4341
4343
  style: j(i.value === "upload" ? { borderColor: h(me) } : {}),
4342
4344
  onClick: g[2] || (g[2] = (I) => i.value = "upload")
4343
4345
  }, x(h(a)("mediaPicker.pickerModal.uploadTab")), 7)
4344
4346
  ])) : F("", !0),
4345
- i.value === "browse" ? (b(), k(Z, { key: 2 }, [
4346
- f.value.length ? (b(), oe(bi, {
4347
+ i.value === "browse" ? (y(), k(Z, { key: 2 }, [
4348
+ f.value.length ? (y(), oe(bi, {
4347
4349
  key: 0,
4348
4350
  modelValue: u.value,
4349
4351
  "onUpdate:modelValue": g[3] || (g[3] = (I) => u.value = I),
@@ -4358,11 +4360,11 @@ const ns = { class: "w-full flex items-center justify-between gap-16 pr-8" }, os
4358
4360
  "selected-ids": Q.value,
4359
4361
  "variants-by-ref-id": h(d).byRefId.value,
4360
4362
  "unavailable-ids": V.value,
4361
- "unavailable-ratio": y.value,
4363
+ "unavailable-ratio": v.value,
4362
4364
  onOpen: re,
4363
4365
  onToggle: S
4364
4366
  }, null, 8, ["assets", "loading", "selected-ids", "variants-by-ref-id", "unavailable-ids", "unavailable-ratio"])
4365
- ], 64)) : e.allowUpload ? (b(), oe(Zi, {
4367
+ ], 64)) : e.allowUpload ? (y(), oe(Zi, {
4366
4368
  key: 3,
4367
4369
  ref_key: "uploadPanelRef",
4368
4370
  ref: H,
@@ -4419,16 +4421,16 @@ const bs = {
4419
4421
  }
4420
4422
  return (d, f) => {
4421
4423
  const w = K("FmSelect"), _ = K("FmButton");
4422
- return e.totalPages > 1 ? (b(), k("div", bs, [
4423
- v("span", ys, x(h(o)("mediaPicker.assetPagination.itemCount", { start: r.value.start, end: r.value.end, total: e.totalResources })), 1),
4424
- v("div", vs, [
4424
+ return e.totalPages > 1 ? (y(), k("div", bs, [
4425
+ b("span", ys, x(h(o)("mediaPicker.assetPagination.itemCount", { start: r.value.start, end: r.value.end, total: e.totalResources })), 1),
4426
+ b("div", vs, [
4425
4427
  W(w, {
4426
4428
  items: i.value,
4427
4429
  "model-value": e.page,
4428
4430
  disabled: e.disabled,
4429
4431
  "onUpdate:modelValue": f[0] || (f[0] = (P) => c(P))
4430
4432
  }, null, 8, ["items", "model-value", "disabled"]),
4431
- v("span", ws, x(h(o)("mediaPicker.assetPagination.pageCount", { total: e.totalPages })), 1),
4433
+ b("span", ws, x(h(o)("mediaPicker.assetPagination.pageCount", { total: e.totalPages })), 1),
4432
4434
  W(_, {
4433
4435
  icon: "chevron_left",
4434
4436
  "icon-color": "neutral-black",
@@ -4477,41 +4479,41 @@ const bs = {
4477
4479
  return (d, f) => {
4478
4480
  var w, _, P, E;
4479
4481
  const R = K("FmIcon"), p = K("FmButton");
4480
- return b(), k("div", ks, [
4481
- (w = s.value) != null && w.url ? (b(), k("img", {
4482
+ return y(), k("div", ks, [
4483
+ (w = s.value) != null && w.url ? (y(), k("img", {
4482
4484
  key: 0,
4483
4485
  src: s.value.url,
4484
4486
  alt: e.alt,
4485
4487
  class: "max-w-full max-h-full object-contain"
4486
- }, null, 8, xs)) : s.value ? (b(), k("div", Ps, [
4488
+ }, null, 8, xs)) : s.value ? (y(), k("div", Ps, [
4487
4489
  W(R, {
4488
4490
  name: "error",
4489
4491
  size: "lg",
4490
4492
  color: "white"
4491
4493
  }),
4492
- v("span", Es, x(h(a)(h(Ei)(s.value.failureCode))), 1),
4494
+ b("span", Es, x(h(a)(h(Ei)(s.value.failureCode))), 1),
4493
4495
  W(p, {
4494
4496
  label: h(a)("mediaPicker.variants.regenerate"),
4495
4497
  variant: "secondary",
4496
4498
  size: "md",
4497
4499
  "prepend-icon": "refresh",
4498
- onClick: f[0] || (f[0] = (y) => s.value.ratio && o("regenerate", s.value.ratio))
4500
+ onClick: f[0] || (f[0] = (v) => s.value.ratio && o("regenerate", s.value.ratio))
4499
4501
  }, null, 8, ["label"])
4500
4502
  ])) : F("", !0),
4501
- v("span", {
4503
+ b("span", {
4502
4504
  class: "absolute top-8 left-8 bg-black/70 text-white font-semibold px-8 rounded",
4503
4505
  style: j([h($), "padding-top:2px;padding-bottom:2px"])
4504
4506
  }, [
4505
4507
  de(x(((_ = s.value) == null ? void 0 : _.kind) === "original" ? h(a)("mediaPicker.variants.original") : c(((P = s.value) == null ? void 0 : P.ratio) ?? null)) + " ", 1),
4506
- ((E = s.value) == null ? void 0 : E.status) === "pending" ? (b(), k(Z, { key: 0 }, [
4508
+ ((E = s.value) == null ? void 0 : E.status) === "pending" ? (y(), k(Z, { key: 0 }, [
4507
4509
  de(" · " + x(h(a)("mediaPicker.variants.generating")), 1)
4508
4510
  ], 64)) : F("", !0)
4509
4511
  ], 4),
4510
- i.value.length > 1 ? (b(), k(Z, { key: 2 }, [
4511
- v("button", {
4512
+ i.value.length > 1 ? (y(), k(Z, { key: 2 }, [
4513
+ b("button", {
4512
4514
  class: "absolute left-8 top-1/2 -translate-y-1/2 rounded-full bg-black/50 flex items-center justify-center",
4513
4515
  style: { width: "32px", height: "32px" },
4514
- onClick: f[1] || (f[1] = (y) => u(-1))
4516
+ onClick: f[1] || (f[1] = (v) => u(-1))
4515
4517
  }, [
4516
4518
  W(R, {
4517
4519
  name: "chevron_left",
@@ -4519,10 +4521,10 @@ const bs = {
4519
4521
  color: "white"
4520
4522
  })
4521
4523
  ]),
4522
- v("button", {
4524
+ b("button", {
4523
4525
  class: "absolute right-8 top-1/2 -translate-y-1/2 rounded-full bg-black/50 flex items-center justify-center",
4524
4526
  style: { width: "32px", height: "32px" },
4525
- onClick: f[2] || (f[2] = (y) => u(1))
4527
+ onClick: f[2] || (f[2] = (v) => u(1))
4526
4528
  }, [
4527
4529
  W(R, {
4528
4530
  name: "chevron_right",
@@ -4530,9 +4532,9 @@ const bs = {
4530
4532
  color: "white"
4531
4533
  })
4532
4534
  ]),
4533
- v("div", Rs, [
4534
- (b(!0), k(Z, null, he(i.value, (y, C) => (b(), k("button", {
4535
- key: y.key,
4535
+ b("div", Rs, [
4536
+ (y(!0), k(Z, null, he(i.value, (v, C) => (y(), k("button", {
4537
+ key: v.key,
4536
4538
  class: ee(["rounded-full", C === r.value ? "bg-white" : "bg-white/40"]),
4537
4539
  style: { width: "8px", height: "8px" },
4538
4540
  onClick: (A) => r.value = C
@@ -4635,7 +4637,7 @@ const bs = {
4635
4637
  var O;
4636
4638
  return (O = P.value) != null && O.ratio ? Be(P.value.ratio) : n("mediaPicker.variants.original");
4637
4639
  }
4638
- ), R = z(() => o.asset ? Re(o.asset) : !1), p = z(() => o.asset ? Ia(o.asset) ?? void 0 : void 0), y = z(
4640
+ ), R = z(() => o.asset ? Re(o.asset) : !1), p = z(() => o.asset ? Ia(o.asset) ?? void 0 : void 0), v = z(
4639
4641
  () => {
4640
4642
  var O;
4641
4643
  return (O = o.asset) != null && O.durationMs ? It(o.asset.durationMs) : null;
@@ -4673,7 +4675,7 @@ const bs = {
4673
4675
  }
4674
4676
  return (O, N) => {
4675
4677
  const J = K("FmIcon"), le = K("FmTextField"), H = K("FmButton"), Y = K("FmDialog");
4676
- return b(), oe(Y, {
4678
+ return y(), oe(Y, {
4677
4679
  "model-value": !!e.asset,
4678
4680
  "max-width": 920,
4679
4681
  "max-height": "620px",
@@ -4684,9 +4686,9 @@ const bs = {
4684
4686
  default: Se(() => {
4685
4687
  var m, g, L, U, B;
4686
4688
  return [
4687
- e.asset ? (b(), k("div", Os, [
4688
- R.value ? (b(), k("div", Cs, [
4689
- (b(), k("video", {
4689
+ e.asset ? (y(), k("div", Os, [
4690
+ R.value ? (y(), k("div", Cs, [
4691
+ (y(), k("video", {
4690
4692
  key: e.asset.id,
4691
4693
  src: e.asset.url,
4692
4694
  poster: p.value,
@@ -4694,7 +4696,7 @@ const bs = {
4694
4696
  preload: "metadata",
4695
4697
  class: "max-w-full max-h-full"
4696
4698
  }, null, 8, As))
4697
- ])) : (b(), oe(Ts, {
4699
+ ])) : (y(), oe(Ts, {
4698
4700
  key: 1,
4699
4701
  index: f.value,
4700
4702
  "onUpdate:index": N[0] || (N[0] = (M) => f.value = M),
@@ -4703,11 +4705,11 @@ const bs = {
4703
4705
  alt: e.asset.fileName,
4704
4706
  onRegenerate: V
4705
4707
  }, null, 8, ["index", "original", "variants", "alt"])),
4706
- v("div", Bs, [
4707
- A.value ? (b(), k("p", _s, x(A.value), 1)) : F("", !0),
4708
- v("div", Ds, [
4709
- v("span", Ms, x(h(n)("mediaPicker.assetDetailDialog.previewTitle")), 1),
4710
- v("button", {
4708
+ b("div", Bs, [
4709
+ A.value ? (y(), k("p", _s, x(A.value), 1)) : F("", !0),
4710
+ b("div", Ds, [
4711
+ b("span", Ms, x(h(n)("mediaPicker.assetDetailDialog.previewTitle")), 1),
4712
+ b("button", {
4711
4713
  class: "rounded-lg bg-fm-color-neutral-gray-100 flex items-center justify-center flex-shrink-0",
4712
4714
  style: { width: "32px", height: "32px" },
4713
4715
  onClick: N[1] || (N[1] = (M) => r("close"))
@@ -4718,7 +4720,7 @@ const bs = {
4718
4720
  })
4719
4721
  ])
4720
4722
  ]),
4721
- i.value ? (b(), k("div", Us, [
4723
+ i.value ? (y(), k("div", Us, [
4722
4724
  W(le, {
4723
4725
  modelValue: s.value,
4724
4726
  "onUpdate:modelValue": N[2] || (N[2] = (M) => s.value = M),
@@ -4731,45 +4733,45 @@ const bs = {
4731
4733
  class: "flex-shrink-0",
4732
4734
  onClick: c
4733
4735
  }, null, 8, ["label"])
4734
- ])) : (b(), k("div", Ns, [
4735
- v("span", Is, x(e.asset.fileName), 1),
4736
- v("button", { onClick: u }, [
4736
+ ])) : (y(), k("div", Ns, [
4737
+ b("span", Is, x(e.asset.fileName), 1),
4738
+ b("button", { onClick: u }, [
4737
4739
  W(J, {
4738
4740
  name: "edit",
4739
4741
  size: "sm"
4740
4742
  })
4741
4743
  ])
4742
4744
  ])),
4743
- v("div", Ls, [
4744
- R.value ? (b(), k("div", js, [
4745
- v("span", Fs, x(h(n)("mediaPicker.assetDetailDialog.durationLabel")), 1),
4746
- v("span", zs, x(y.value ?? "—"), 1)
4747
- ])) : (b(), k("div", Vs, [
4748
- v("span", qs, x(h(n)("mediaPicker.ratios.title")), 1),
4749
- v("span", Ws, x(E.value), 1)
4745
+ b("div", Ls, [
4746
+ R.value ? (y(), k("div", js, [
4747
+ b("span", Fs, x(h(n)("mediaPicker.assetDetailDialog.durationLabel")), 1),
4748
+ b("span", zs, x(v.value ?? "—"), 1)
4749
+ ])) : (y(), k("div", Vs, [
4750
+ b("span", qs, x(h(n)("mediaPicker.ratios.title")), 1),
4751
+ b("span", Ws, x(E.value), 1)
4750
4752
  ])),
4751
- v("div", Gs, [
4752
- v("span", $s, x(h(n)("mediaPicker.assetDetailDialog.dimensionsLabel")), 1),
4753
- v("span", null, x(((g = P.value) == null ? void 0 : g.dimensions) ?? "—"), 1)
4753
+ b("div", Gs, [
4754
+ b("span", $s, x(h(n)("mediaPicker.assetDetailDialog.dimensionsLabel")), 1),
4755
+ b("span", null, x(((g = P.value) == null ? void 0 : g.dimensions) ?? "—"), 1)
4754
4756
  ]),
4755
- v("div", Js, [
4756
- v("span", Hs, x(h(n)("mediaPicker.assetDetailDialog.sizeLabel")), 1),
4757
- v("span", null, x((L = P.value) != null && L.sizeBytes ? re(P.value.sizeBytes) : "—"), 1)
4757
+ b("div", Js, [
4758
+ b("span", Hs, x(h(n)("mediaPicker.assetDetailDialog.sizeLabel")), 1),
4759
+ b("span", null, x((L = P.value) != null && L.sizeBytes ? re(P.value.sizeBytes) : "—"), 1)
4758
4760
  ]),
4759
- v("div", Ks, [
4760
- v("span", Xs, x(h(n)("mediaPicker.assetDetailDialog.formatLabel")), 1),
4761
- v("span", null, x((U = P.value) != null && U.contentType ? S(P.value.contentType) : "—"), 1)
4761
+ b("div", Ks, [
4762
+ b("span", Xs, x(h(n)("mediaPicker.assetDetailDialog.formatLabel")), 1),
4763
+ b("span", null, x((U = P.value) != null && U.contentType ? S(P.value.contentType) : "—"), 1)
4762
4764
  ])
4763
4765
  ]),
4764
- (B = e.asset.tags) != null && B.length ? (b(), k("div", Qs, [
4765
- (b(!0), k(Z, null, he(e.asset.tags, (M) => (b(), k("span", {
4766
+ (B = e.asset.tags) != null && B.length ? (y(), k("div", Qs, [
4767
+ (y(!0), k(Z, null, he(e.asset.tags, (M) => (y(), k("span", {
4766
4768
  key: M,
4767
4769
  class: "bg-gray-100 rounded-full px-8",
4768
4770
  style: j([h($), "padding-top:2px;padding-bottom:2px"])
4769
4771
  }, " # " + x(M), 5))), 128))
4770
4772
  ])) : F("", !0),
4771
- N[4] || (N[4] = v("div", { class: "flex-1" }, null, -1)),
4772
- v("div", Ys, [
4773
+ N[4] || (N[4] = b("div", { class: "flex-1" }, null, -1)),
4774
+ b("div", Ys, [
4773
4775
  W(H, {
4774
4776
  label: h(n)("mediaPicker.assetDetailDialog.copyLinkButton"),
4775
4777
  variant: "tertiary",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-media",
3
- "version": "1.0.1-dev.3",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -21,7 +21,7 @@
21
21
  "vue": "^3.5.16",
22
22
  "vue-i18n": "10.0.5",
23
23
  "vue-router": "^4.2.5",
24
- "@feedmepos/media-picker": "^1.0.1"
24
+ "@feedmepos/media-picker": "^2.0.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@rushstack/eslint-patch": "^1.3.3",