@club-employes/utopia 4.300.0 → 4.301.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as re, computed as C, ref as H, provide as hi, onMounted as ct, onBeforeUnmount as zn, watch as Be, openBlock as A, createElementBlock as f, renderSlot as ne, normalizeStyle as Ne, normalizeClass as N, createElementVNode as g, toDisplayString as O, createCommentVNode as P, useSlots as yi, Fragment as $, createBlock as D, createVNode as z, unref as y, Teleport as Bt, Transition as dt, withCtx as B, createTextVNode as G, withDirectives as It, vModelDynamic as l1, nextTick as Ke, resolveDynamicComponent as Fe, renderList as ge, withKeys as ut, onUnmounted as ht, toValue as kt, readonly as i1, getCurrentInstance as us, reactive as r1, mergeProps as X, useTemplateRef as tl, normalizeProps as Bn, guardReactiveProps as $o, withModifiers as ze, vModelText as Uc, shallowRef as Ro, vShow as vl, TransitionGroup as Ha, resolveComponent as Se, useModel as gl, mergeModels as ds, useCssVars as c1, useId as wi, onUpdated as A1, createApp as u1, inject as zi, resolveDirective as Ln, createSlots as Tn, toHandlers as Na, useAttrs as d1, isRef as Qo } from "vue";
1
+ import { defineComponent as re, computed as C, ref as H, provide as hi, onMounted as ct, onBeforeUnmount as zn, watch as Oe, openBlock as A, createElementBlock as f, renderSlot as ne, normalizeStyle as Ne, normalizeClass as N, createElementVNode as g, toDisplayString as O, createCommentVNode as P, useSlots as yi, Fragment as $, createBlock as D, createVNode as z, unref as y, Teleport as Bt, Transition as dt, withCtx as B, createTextVNode as G, withDirectives as It, vModelDynamic as l1, nextTick as Ke, resolveDynamicComponent as Fe, renderList as ge, withKeys as ut, onUnmounted as ht, toValue as kt, readonly as i1, getCurrentInstance as us, reactive as r1, mergeProps as X, useTemplateRef as tl, normalizeProps as Bn, guardReactiveProps as $o, withModifiers as ze, vModelText as Uc, shallowRef as Ro, vShow as vl, TransitionGroup as Ha, resolveComponent as Se, useModel as gl, mergeModels as ds, useCssVars as c1, useId as wi, onUpdated as A1, createApp as u1, inject as zi, resolveDirective as Ln, createSlots as Tn, toHandlers as Na, useAttrs as d1, isRef as Qo } from "vue";
2
2
  import { RouterLink as f1, useRoute as p1 } from "vue-router";
3
3
  import { useBreakpoints as qc, useScrollLock as _c, unrefElement as m1, tryOnScopeDispose as v1, useEventListener as g1, useMediaQuery as b1, useDebounceFn as h1, useFileDialog as y1, breakpointsTailwind as w1, useElementSize as z1, onClickOutside as x1 } from "@vueuse/core";
4
4
  import { parsePhoneNumberFromString as Ja, AsYouType as nr } from "libphonenumber-js";
@@ -451,7 +451,7 @@ const Es = (e, t, n) => {
451
451
  await l();
452
452
  }), zn(() => {
453
453
  r();
454
- }), Be(() => t.theme, () => {
454
+ }), Oe(() => t.theme, () => {
455
455
  console.log("Theme changed to:", t.theme.name), l();
456
456
  }, { deep: !0 }), (() => {
457
457
  if (document.querySelector("style[data-theme-transitions]")) return;
@@ -544,11 +544,11 @@ function h2() {
544
544
  const t = Ko, n = ms, o = vs, s = gs;
545
545
  typeof window < "u" && window.addEventListener("utopia:brand-unlocked", () => {
546
546
  s.value = !1, console.log("🎨 useTheme: Brand unlocked");
547
- }), Be(() => t.value, (a) => {
547
+ }), Oe(() => t.value, (a) => {
548
548
  !s.value && a && p2(a);
549
- }, { immediate: !1 }), Be(() => n.value, (a) => {
549
+ }, { immediate: !1 }), Oe(() => n.value, (a) => {
550
550
  a && m2(a);
551
- }, { immediate: !1 }), Be(() => o.value, (a) => {
551
+ }, { immediate: !1 }), Oe(() => o.value, (a) => {
552
552
  a !== void 0 && g2(a);
553
553
  }, { immediate: !1 });
554
554
  }
@@ -2477,7 +2477,7 @@ const x2 = ["aria-label", "innerHTML"], P2 = {
2477
2477
  <path d="M12 16h.01" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
2478
2478
  </svg>
2479
2479
  `, h = (w) => w.startsWith("fa:") ? w : w.includes("/") && w.split("/").pop() || w;
2480
- return Be(
2480
+ return Oe(
2481
2481
  () => t.name,
2482
2482
  (w) => {
2483
2483
  const M = h(w);
@@ -3808,9 +3808,9 @@ const Bf = ef, Tf = tf, Df = q2, Lf = U2, jf = (e, t, n) => {
3808
3808
  const Me = () => {
3809
3809
  v.value ? (requestAnimationFrame(Ae), Z?.(), d.value && h.value && (Z = Of(d.value, h.value, Ae)), s === "hover" && document.addEventListener("keydown", oe), window.addEventListener("scroll", F, !0), document.addEventListener("scroll", F, !0), window.addEventListener("resize", F, !0), window.addEventListener("wheel", F, !0), window.addEventListener("touchmove", F, !0)) : (Z?.(), Z = null, s === "hover" && document.removeEventListener("keydown", oe), window.removeEventListener("scroll", F, !0), document.removeEventListener("scroll", F, !0), window.removeEventListener("resize", F, !0), window.removeEventListener("wheel", F, !0), window.removeEventListener("touchmove", F, !0), x.value = !1, b.value = !1);
3810
3810
  };
3811
- return Be(() => n.active, (be) => {
3811
+ return Oe(() => n.active, (be) => {
3812
3812
  be && (s === "toggle" || b.value || x.value && m) ? V() : S(), Me();
3813
- }), Be(v, () => {
3813
+ }), Oe(v, () => {
3814
3814
  Me();
3815
3815
  }), ct(() => {
3816
3816
  document.addEventListener("mousemove", q), v.value && requestAnimationFrame(Ae);
@@ -3969,7 +3969,7 @@ const Bf = ef, Tf = tf, Df = q2, Lf = U2, jf = (e, t, n) => {
3969
3969
  s.value && (s.value.value = W);
3970
3970
  });
3971
3971
  };
3972
- return Be(() => n.modelValue, (W) => {
3972
+ return Oe(() => n.modelValue, (W) => {
3973
3973
  W !== a.value && U(W?.toString() || "");
3974
3974
  }), (W, oe) => (A(), f("div", {
3975
3975
  class: N(["utopia-inputtext", u.value])
@@ -4353,7 +4353,7 @@ function qH() {
4353
4353
  };
4354
4354
  let r = null;
4355
4355
  return ct(() => {
4356
- setTimeout(l, 50), r = Be(
4356
+ setTimeout(l, 50), r = Oe(
4357
4357
  [e, t],
4358
4358
  () => {
4359
4359
  l();
@@ -4464,7 +4464,7 @@ function PA(e = {}) {
4464
4464
  setTimeout(() => {
4465
4465
  u();
4466
4466
  }, t);
4467
- }, d = (M) => Be(M, (b) => {
4467
+ }, d = (M) => Oe(M, (b) => {
4468
4468
  b && Ke(() => {
4469
4469
  setTimeout(u, t);
4470
4470
  });
@@ -4759,12 +4759,12 @@ function A3(e, t, n, o) {
4759
4759
  const s = C(
4760
4760
  () => "value" in e ? e.value : e
4761
4761
  ), a = s.value, { currentPage: l = 1, pageSize: r = 10 } = a, i = H(l), c = H(r);
4762
- Be(
4762
+ Oe(
4763
4763
  () => s.value.currentPage,
4764
4764
  (d) => {
4765
4765
  d !== void 0 && d !== i.value && (i.value = d);
4766
4766
  }
4767
- ), Be(
4767
+ ), Oe(
4768
4768
  () => s.value.pageSize,
4769
4769
  (d) => {
4770
4770
  d !== void 0 && d !== c.value && (c.value = d);
@@ -4809,7 +4809,7 @@ function d3(e, t) {
4809
4809
  }
4810
4810
  function f3(e, t) {
4811
4811
  const n = C(() => "value" in e ? e.value : e), o = H([...n.value]);
4812
- return Be(
4812
+ return Oe(
4813
4813
  n,
4814
4814
  (a) => {
4815
4815
  o.value = [...a];
@@ -4878,7 +4878,7 @@ function w3(e, t, n, o, s, a) {
4878
4878
  ), i = (u) => {
4879
4879
  r.value = u;
4880
4880
  };
4881
- return Be(() => r.value, n, { deep: !0 }), {
4881
+ return Oe(() => r.value, n, { deep: !0 }), {
4882
4882
  allFilters: r,
4883
4883
  doUpdateFilter: i,
4884
4884
  getFilterOptions: (u) => y3(u.filterType, o.filter)
@@ -5826,7 +5826,7 @@ function n4(e) {
5826
5826
  return U?.(je, {
5827
5827
  name: be
5828
5828
  });
5829
- }, E?.(be)), !n.value && (F = Be(o, function(je) {
5829
+ }, E?.(be)), !n.value && (F = Oe(o, function(je) {
5830
5830
  s.value.textContent = je, V?.(be);
5831
5831
  }, {
5832
5832
  immediate: !0
@@ -6260,7 +6260,7 @@ function y4(e, t) {
6260
6260
  Tt.on("theme:change", function(i) {
6261
6261
  n.value || (e.config.globalProperties.$primevue.config.theme = i, n.value = !0);
6262
6262
  });
6263
- var s = Be(t.config, function(i, c) {
6263
+ var s = Oe(t.config, function(i, c) {
6264
6264
  Jn.emit("config:change", {
6265
6265
  newValue: i,
6266
6266
  oldValue: c
@@ -6268,7 +6268,7 @@ function y4(e, t) {
6268
6268
  }, {
6269
6269
  immediate: !0,
6270
6270
  deep: !0
6271
- }), a = Be(function() {
6271
+ }), a = Oe(function() {
6272
6272
  return t.config.ripple;
6273
6273
  }, function(i, c) {
6274
6274
  Jn.emit("config:ripple:change", {
@@ -6278,7 +6278,7 @@ function y4(e, t) {
6278
6278
  }, {
6279
6279
  immediate: !0,
6280
6280
  deep: !0
6281
- }), l = Be(function() {
6281
+ }), l = Oe(function() {
6282
6282
  return t.config.theme;
6283
6283
  }, function(i, c) {
6284
6284
  n.value || At.setTheme(i), t.config.unstyled || o(), n.value = !1, Jn.emit("config:theme:change", {
@@ -6288,7 +6288,7 @@ function y4(e, t) {
6288
6288
  }, {
6289
6289
  immediate: !0,
6290
6290
  deep: !1
6291
- }), r = Be(function() {
6291
+ }), r = Oe(function() {
6292
6292
  return t.config.unstyled;
6293
6293
  }, function(i, c) {
6294
6294
  !i && t.config.theme && o(), Jn.emit("config:unstyled:change", {
@@ -6396,7 +6396,7 @@ function k4(e) {
6396
6396
  const s = t.appContext.app.config.globalProperties.$primevue?.config?.locale;
6397
6397
  s && M4(s, C4(kt(e)));
6398
6398
  };
6399
- ct(n), Be(() => kt(e), n);
6399
+ ct(n), Oe(() => kt(e), n);
6400
6400
  }
6401
6401
  const O4 = /* @__PURE__ */ re({
6402
6402
  inheritAttrs: !1,
@@ -6448,7 +6448,7 @@ const O4 = /* @__PURE__ */ re({
6448
6448
  function m() {
6449
6449
  p && p.disconnect(), t.tooltipWhenTruncated && (p = new ResizeObserver(() => Ke(u)), p.observe(o.value));
6450
6450
  }
6451
- return Be(
6451
+ return Oe(
6452
6452
  () => t.tooltipWhenTruncated,
6453
6453
  () => m()
6454
6454
  ), ct(() => {
@@ -7074,7 +7074,7 @@ const H4 = ["href", "target"], G4 = /* @__PURE__ */ re({
7074
7074
  }, d = (h) => {
7075
7075
  o("change", h);
7076
7076
  };
7077
- return Be(() => n.modelValue, (h) => {
7077
+ return Oe(() => n.modelValue, (h) => {
7078
7078
  h !== a.value && (a.value = h || "", Ke(() => {
7079
7079
  s.value && (s.value.value = h || "");
7080
7080
  }));
@@ -7220,7 +7220,7 @@ const H4 = ["href", "target"], G4 = /* @__PURE__ */ re({
7220
7220
  const p = o.size ?? 32, m = a.value, d = p * Math.min(m, 2);
7221
7221
  return n.find((w) => t[w] >= d) ?? "4x";
7222
7222
  });
7223
- Be(
7223
+ Oe(
7224
7224
  () => [o.name, r.value],
7225
7225
  async ([p, m]) => {
7226
7226
  if (!p || !m) return;
@@ -7573,7 +7573,7 @@ const H4 = ["href", "target"], G4 = /* @__PURE__ */ re({
7573
7573
  }, r = () => {
7574
7574
  n.value = !1, o.value = !0;
7575
7575
  };
7576
- Be(() => t.src, (c) => {
7576
+ Oe(() => t.src, (c) => {
7577
7577
  c ? (n.value = !0, o.value = !1) : (n.value = !1, o.value = !0);
7578
7578
  });
7579
7579
  let i = null;
@@ -7714,7 +7714,7 @@ const H4 = ["href", "target"], G4 = /* @__PURE__ */ re({
7714
7714
  `bottomsheet--${n.variant}`,
7715
7715
  { "bottomsheet--disabled": n.disabled }
7716
7716
  ]), a = typeof document < "u" ? document.body : null, l = _c(a);
7717
- Be(
7717
+ Oe(
7718
7718
  () => n.modelValue,
7719
7719
  (i) => {
7720
7720
  n.disableScrollLock || (l.value = i);
@@ -8132,17 +8132,17 @@ const Gp = /* @__PURE__ */ re({
8132
8132
  }
8133
8133
  return null;
8134
8134
  });
8135
- Be(() => o.modelValue, (I) => {
8135
+ Oe(() => o.modelValue, (I) => {
8136
8136
  u.value || (w.value = il(I));
8137
- }, { immediate: !0 }), Be(() => o.activationType, (I) => {
8137
+ }, { immediate: !0 }), Oe(() => o.activationType, (I) => {
8138
8138
  I === "deferred" ? S(null) : I !== "deferred" && !o.modelValue && (w.value = null, s("update:modelValue", null), s("change", null));
8139
- }, { immediate: !0 }), Be(
8139
+ }, { immediate: !0 }), Oe(
8140
8140
  () => [w.value, o.allowKeyboardInput],
8141
8141
  ([I, pe]) => {
8142
8142
  pe && (M.value = rl(I ?? null));
8143
8143
  },
8144
8144
  { immediate: !0 }
8145
- ), Be(w, (I, pe) => {
8145
+ ), Oe(w, (I, pe) => {
8146
8146
  if (u.value || !I || !o.enableTime || o.enableMinutes) return;
8147
8147
  const ke = new Date(I);
8148
8148
  if (ke.getMinutes() !== 0 || ke.getSeconds() !== 0 || ke.getMilliseconds() !== 0) {
@@ -8185,7 +8185,7 @@ const Gp = /* @__PURE__ */ re({
8185
8185
  const pe = I.getHours();
8186
8186
  T.value = o.enableMinutes ? I.getMinutes() : 0, o.use24HourFormat ? x.value = pe : (j.value = pe >= 12 ? "pm" : "am", x.value = pe % 12 || 12);
8187
8187
  }
8188
- Be(c, (I) => {
8188
+ Oe(c, (I) => {
8189
8189
  I ? (w.value ? (v.value = new Date(w.value), b.value = new Date(w.value), o.enableTime && Ae(w.value)) : (v.value = /* @__PURE__ */ new Date(), b.value = null, o.enableTime ? o.dday ? Ae(/* @__PURE__ */ new Date()) : Ae(V()) : (o.use24HourFormat ? x.value = 9 : (x.value = 9, j.value = "am"), T.value = 0)), Ke(() => {
8190
8190
  Le(), setTimeout(() => {
8191
8191
  Le();
@@ -9908,7 +9908,7 @@ function qA(e, t = {}) {
9908
9908
  return typeof h == "string" ? h : m1(h);
9909
9909
  }).filter(gm);
9910
9910
  });
9911
- return Be(
9911
+ return Oe(
9912
9912
  p,
9913
9913
  (m) => {
9914
9914
  m.length && (n = Rm(m, {
@@ -10326,9 +10326,9 @@ const Qm = /* @__PURE__ */ re({
10326
10326
  const L = r.value.join("");
10327
10327
  s("update:modelValue", L), s("change", L);
10328
10328
  };
10329
- return Be(() => o.modelValue, (Z) => {
10329
+ return Oe(() => o.modelValue, (Z) => {
10330
10330
  Z !== r.value.join("") && j(Z);
10331
- }), Be(() => o.length, () => {
10331
+ }), Oe(() => o.length, () => {
10332
10332
  d();
10333
10333
  }), ct(() => {
10334
10334
  d(), o.autoFocus && !o.disabled && Ke(() => {
@@ -12076,7 +12076,7 @@ const Cv = ["for"], kv = {
12076
12076
  const xe = r.value.getBoundingClientRect();
12077
12077
  h.value.style.top = `${xe.bottom + 4}px`, h.value.style.left = `${xe.left}px`;
12078
12078
  }
12079
- Be(
12079
+ Oe(
12080
12080
  () => n.modelValue,
12081
12081
  (xe) => {
12082
12082
  if (!xe) {
@@ -12551,7 +12551,7 @@ const Tl = /* @__PURE__ */ new Map([
12551
12551
  i.value
12552
12552
  );
12553
12553
  });
12554
- Be(
12554
+ Oe(
12555
12555
  [o, () => n.language, r],
12556
12556
  () => {
12557
12557
  const p = zv(
@@ -12671,7 +12671,7 @@ const Tl = /* @__PURE__ */ new Map([
12671
12671
  }
12672
12672
  return n.helperText;
12673
12673
  });
12674
- Be(
12674
+ Oe(
12675
12675
  () => [n.modelValue, n.countryCode],
12676
12676
  () => {
12677
12677
  const j = !!n.modelValue?.trim() ? p.value : !1;
@@ -12809,7 +12809,7 @@ const Tl = /* @__PURE__ */ new Map([
12809
12809
  ), p = C(() => !!n.showHeader), m = `utopia-modal-${Math.random().toString(36).slice(2, 8)}`, d = C(() => n.title ? `${m}-title` : ""), h = H(!1), w = H(!1), M = () => {
12810
12810
  w.value = !w.value;
12811
12811
  };
12812
- Be(() => u.value, (S) => {
12812
+ Oe(() => u.value, (S) => {
12813
12813
  S || (w.value = !1);
12814
12814
  });
12815
12815
  const v = H(null), b = H(null), x = typeof document < "u" ? document.body : null, T = _c(x), { activate: j, deactivate: Z } = qA(v, {
@@ -12828,7 +12828,7 @@ const Tl = /* @__PURE__ */ new Map([
12828
12828
  },
12829
12829
  fallbackFocus: () => v.value
12830
12830
  });
12831
- Be(
12831
+ Oe(
12832
12832
  () => u.value,
12833
12833
  async (S, U) => {
12834
12834
  if (S === U) return;
@@ -13185,9 +13185,9 @@ const Tl = /* @__PURE__ */ new Map([
13185
13185
  const U = 50, W = n.direction === "vertical" ? p.value - c.value : u.value - i.value, oe = document.querySelector(".slide"), F = oe ? n.direction === "vertical" ? oe.clientHeight : oe.clientWidth : 300, q = Math.abs(W) / F * 100;
13186
13186
  (Math.abs(W) > U || q > 20) && (W > 0 && d.value > 0 ? v() : W < 0 && d.value < n.slides.length - 1 && M()), m.value = 0;
13187
13187
  };
13188
- return Be(() => n.modelValue, () => {
13188
+ return Oe(() => n.modelValue, () => {
13189
13189
  w(n.modelValue);
13190
- }), Be(d, (S) => {
13190
+ }), Oe(d, (S) => {
13191
13191
  o("slide-change", S);
13192
13192
  }), ct(() => {
13193
13193
  j();
@@ -13894,7 +13894,7 @@ const x7 = { class: "utopia-filterlocation" }, P7 = {
13894
13894
  value: b + 1,
13895
13895
  label: String(b + 1)
13896
13896
  }))), d = H(String(n.currentPage));
13897
- Be(
13897
+ Oe(
13898
13898
  () => n.currentPage,
13899
13899
  (v) => {
13900
13900
  d.value = String(v);
@@ -14106,9 +14106,9 @@ const x7 = { class: "utopia-filterlocation" }, P7 = {
14106
14106
  }, M = (v) => {
14107
14107
  o("page-size-change-groups", v);
14108
14108
  };
14109
- return Be(l, (v) => {
14109
+ return Oe(l, (v) => {
14110
14110
  o("search-users", v);
14111
- }), Be(i, (v) => {
14111
+ }), Oe(i, (v) => {
14112
14112
  o("search-groups", v);
14113
14113
  }), (v, b) => (A(), f("div", pg, [
14114
14114
  g("div", mg, [
@@ -14309,7 +14309,7 @@ const x7 = { class: "utopia-filterlocation" }, P7 = {
14309
14309
  c.value = `${d}px`;
14310
14310
  }
14311
14311
  };
14312
- Be(() => n.images, (d) => {
14312
+ Oe(() => n.images, (d) => {
14313
14313
  a(d);
14314
14314
  }, { immediate: !0, deep: !0 });
14315
14315
  let m = null;
@@ -15130,7 +15130,17 @@ const x7 = { class: "utopia-filterlocation" }, P7 = {
15130
15130
  loading: { type: Boolean, default: !1 }
15131
15131
  },
15132
15132
  setup(e) {
15133
- return (t, n) => (A(), D(y(Is), {
15133
+ const t = e, n = H(1.77);
15134
+ return Oe(() => t.image, () => {
15135
+ if (!t.image) {
15136
+ n.value = 1.77;
15137
+ return;
15138
+ }
15139
+ const s = new Image();
15140
+ s.onload = () => {
15141
+ s.height && s.width && (n.value = s.width / s.height);
15142
+ }, s.src = t.image;
15143
+ }, { immediate: !0 }), (s, a) => (A(), D(y(Is), {
15134
15144
  class: "utopia-newsitem",
15135
15145
  interactive: !e.loading && e.interactive,
15136
15146
  variant: "elevated"
@@ -15177,10 +15187,10 @@ const x7 = { class: "utopia-filterlocation" }, P7 = {
15177
15187
  src: e.image,
15178
15188
  alt: e.title,
15179
15189
  hoverZoom: e.hoverZoom,
15180
- aspectRatio: 1.77,
15190
+ aspectRatio: n.value,
15181
15191
  radius: 0,
15182
15192
  class: "utopia-newsitem__image"
15183
- }, null, 8, ["src", "alt", "hoverZoom"]),
15193
+ }, null, 8, ["src", "alt", "hoverZoom", "aspectRatio"]),
15184
15194
  g("div", R8, [
15185
15195
  z(y(Ol), {
15186
15196
  "model-value": e.chips,
@@ -15226,7 +15236,7 @@ const x7 = { class: "utopia-filterlocation" }, P7 = {
15226
15236
  _: 1
15227
15237
  }, 8, ["interactive"]));
15228
15238
  }
15229
- }), fG = /* @__PURE__ */ fe(Q8, [["__scopeId", "data-v-413547b9"]]), W8 = { class: "header-notifications" }, K8 = { class: "header-notifications__left" }, U8 = {
15239
+ }), fG = /* @__PURE__ */ fe(Q8, [["__scopeId", "data-v-41de1bd4"]]), W8 = { class: "header-notifications" }, K8 = { class: "header-notifications__left" }, U8 = {
15230
15240
  key: 0,
15231
15241
  class: "header-notifications__badge"
15232
15242
  }, q8 = { class: "header-notifications__content" }, _8 = {
@@ -15803,7 +15813,7 @@ const k6 = { class: "utopia-emptystate" }, O6 = { class: "utopia-emptystate__con
15803
15813
  emits: /* @__PURE__ */ ds(["update:activeTab", "select-feature", "select-link", "update:activeLocale", "logout"], ["update:show"]),
15804
15814
  setup(e, { emit: t }) {
15805
15815
  const n = e, o = t, s = gl(e, "show"), a = b1("(max-width: 768px)"), l = H(n.activeTab ?? n.tabs[0]?.key ?? "");
15806
- Be(() => s.value, (d) => {
15816
+ Oe(() => s.value, (d) => {
15807
15817
  d && (l.value = n.activeTab ?? n.tabs[0]?.key ?? "");
15808
15818
  });
15809
15819
  function r() {
@@ -18268,9 +18278,9 @@ const J9 = ["title"], X9 = ["title"], V9 = ["title"], R9 = { class: "pm-image-po
18268
18278
  function M() {
18269
18279
  o("cancel"), o("update:open", !1), s.value = !1, h();
18270
18280
  }
18271
- return Be(() => n.open, async (v) => {
18281
+ return Oe(() => n.open, async (v) => {
18272
18282
  s.value = v, v ? (await Ke(), await d()) : h();
18273
- }, { immediate: !0 }), Be(() => n.imageSrc, async (v) => {
18283
+ }, { immediate: !0 }), Oe(() => n.imageSrc, async (v) => {
18274
18284
  s.value && v && (h(), await Ke(), await d());
18275
18285
  }), zn(() => {
18276
18286
  h();
@@ -19356,7 +19366,7 @@ const ph = {
19356
19366
  emits: ["update:modelValue", "update:state", "update:message"],
19357
19367
  setup(e, { emit: t }) {
19358
19368
  const n = e, o = C(() => ({ ...su, ...n.labels })), s = t, a = H(null), l = H(null), r = H(null), i = Ro(null), c = H(!1);
19359
- Be(
19369
+ Oe(
19360
19370
  () => a.value,
19361
19371
  (J) => {
19362
19372
  J && (l.value = J.editorRoot);
@@ -19544,7 +19554,7 @@ const ph = {
19544
19554
  if (Y === "paragraph") {
19545
19555
  const { from: ve, to: he } = ee.selection;
19546
19556
  let ue = null;
19547
- ee.doc.nodesBetween(ve, he, (Oe) => Oe.type === de.nodes.heading || Oe.type === de.nodes.paragraph ? (ue = Oe.attrs.align || null, !1) : !0), ao(de.nodes.paragraph, { align: ue })(ee, me, i.value);
19557
+ ee.doc.nodesBetween(ve, he, (Be) => Be.type === de.nodes.heading || Be.type === de.nodes.paragraph ? (ue = Be.attrs.align || null, !1) : !0), ao(de.nodes.paragraph, { align: ue })(ee, me, i.value);
19548
19558
  } else if (Y.startsWith("heading-")) {
19549
19559
  const ve = Number(Y.split("-")[1]), { from: he, to: ue } = ee.selection;
19550
19560
  let Pe = null;
@@ -19574,7 +19584,7 @@ const ph = {
19574
19584
  let he = null;
19575
19585
  return J.doc.nodesBetween(me, ve, (ue) => {
19576
19586
  if (he) return !1;
19577
- const Pe = ue.marks?.find((Oe) => Oe.type === de.marks.link);
19587
+ const Pe = ue.marks?.find((Be) => Be.type === de.marks.link);
19578
19588
  Pe && (he = Pe);
19579
19589
  }), he;
19580
19590
  }
@@ -19588,7 +19598,7 @@ const ph = {
19588
19598
  if (!J) return;
19589
19599
  const { state: Y, dispatch: ee } = J, me = de.nodes.horizontal_rule, ve = de.nodes.paragraph;
19590
19600
  if (!me) return;
19591
- const { $to: he } = Y.selection, ue = me.create(), Pe = ve.create(), Oe = Y.tr;
19601
+ const { $to: he } = Y.selection, ue = me.create(), Pe = ve.create(), Be = Y.tr;
19592
19602
  let Xe;
19593
19603
  try {
19594
19604
  Xe = he.after(he.depth);
@@ -19596,14 +19606,14 @@ const ph = {
19596
19606
  Xe = Y.doc.content.size;
19597
19607
  }
19598
19608
  const Ee = Math.min(Xe, Y.doc.content.size);
19599
- Oe.insert(Ee, [ue, Pe]);
19609
+ Be.insert(Ee, [ue, Pe]);
19600
19610
  const Qe = Ee + 2;
19601
19611
  try {
19602
- Oe.setSelection(Cn.create(Oe.doc, Qe));
19612
+ Be.setSelection(Cn.create(Be.doc, Qe));
19603
19613
  } catch {
19604
- Oe.setSelection(Cn.create(Oe.doc, Oe.doc.content.size - 1));
19614
+ Be.setSelection(Cn.create(Be.doc, Be.doc.content.size - 1));
19605
19615
  }
19606
- ee(Oe.scrollIntoView()), J.focus();
19616
+ ee(Be.scrollIntoView()), J.focus();
19607
19617
  }
19608
19618
  ao(de.nodes.paragraph);
19609
19619
  const I = fs(de.nodes.bullet_list), pe = fs(de.nodes.ordered_list), ke = j1(de.nodes.blockquote), He = ao(de.nodes.code_block), Ye = te(I), Ze = te(pe), pt = te(ke), An = te(He), un = H(!1), Yt = H(!1), Ht = H(!1), So = H(!1), Us = H(!1);
@@ -19637,13 +19647,13 @@ const ph = {
19637
19647
  let he = null;
19638
19648
  return J.doc.nodesBetween(Y, ee, (ue) => {
19639
19649
  if (he) return !1;
19640
- const Pe = ue.marks?.find((Oe) => Oe.type === de.marks.link);
19650
+ const Pe = ue.marks?.find((Be) => Be.type === de.marks.link);
19641
19651
  Pe && (he = Pe);
19642
19652
  }), he;
19643
19653
  }
19644
19654
  function cd(J, Y) {
19645
19655
  if (!de.marks.link) return null;
19646
- const me = J.doc.resolve(Y).marks().find((Oe) => Oe.type === de.marks.link);
19656
+ const me = J.doc.resolve(Y).marks().find((Be) => Be.type === de.marks.link);
19647
19657
  if (!me) return null;
19648
19658
  const ve = me.attrs.href;
19649
19659
  let he = Y;
@@ -19666,7 +19676,7 @@ const ph = {
19666
19676
  let ue = Y.tr;
19667
19677
  if (he) {
19668
19678
  const Pe = (Y.storedMarks || Y.selection.$from.marks()).filter(
19669
- (Oe) => Oe.type !== de.marks.link
19679
+ (Be) => Be.type !== de.marks.link
19670
19680
  );
19671
19681
  ue = ue.setStoredMarks(Pe);
19672
19682
  } else
@@ -19713,19 +19723,19 @@ const ph = {
19713
19723
  Ho ? dn = dn.replaceSelectionWith(on) : dn = dn.replaceWith(Wt, Un, on), Pt(dn.scrollIntoView()), M.value = !1, v.value = "", b.value = "", J.focus();
19714
19724
  return;
19715
19725
  }
19716
- const ve = "_blank", he = "noopener noreferrer", { state: ue, dispatch: Pe } = J, { from: Oe, to: Xe, empty: Ee } = ue.selection, Qe = de.marks.link.create({ href: ee, target: ve, rel: he });
19726
+ const ve = "_blank", he = "noopener noreferrer", { state: ue, dispatch: Pe } = J, { from: Be, to: Xe, empty: Ee } = ue.selection, Qe = de.marks.link.create({ href: ee, target: ve, rel: he });
19717
19727
  let We = ue.tr;
19718
19728
  if (Ee) {
19719
19729
  const nt = b.value.trim();
19720
19730
  if (nt)
19721
- We = We.insertText(nt, Oe, Xe), We = We.addMark(Oe, Oe + nt.length, Qe), We = We.setSelection(Cn.create(We.doc, Oe + nt.length)), We = We.setStoredMarks([]);
19731
+ We = We.insertText(nt, Be, Xe), We = We.addMark(Be, Be + nt.length, Qe), We = We.setSelection(Cn.create(We.doc, Be + nt.length)), We = We.setStoredMarks([]);
19722
19732
  else {
19723
19733
  const Pt = (ue.storedMarks || ue.selection.$from.marks()).filter((Wt) => Wt.type !== de.marks.link);
19724
19734
  We = We.setStoredMarks([...Pt, Qe]);
19725
19735
  }
19726
19736
  } else {
19727
- const nt = ue.doc.textBetween(Oe, Xe), Pt = b.value.trim();
19728
- Pt && Pt !== nt ? (We = We.delete(Oe, Xe), We = We.insertText(Pt, Oe), We = We.addMark(Oe, Oe + Pt.length, Qe), We = We.setSelection(Cn.create(We.doc, Oe + Pt.length))) : (We = We.removeMark(Oe, Xe, de.marks.link), We = We.addMark(Oe, Xe, Qe));
19737
+ const nt = ue.doc.textBetween(Be, Xe), Pt = b.value.trim();
19738
+ Pt && Pt !== nt ? (We = We.delete(Be, Xe), We = We.insertText(Pt, Be), We = We.addMark(Be, Be + Pt.length, Qe), We = We.setSelection(Cn.create(We.doc, Be + Pt.length))) : (We = We.removeMark(Be, Xe, de.marks.link), We = We.addMark(Be, Xe, Qe));
19729
19739
  }
19730
19740
  Pe(We), M.value = !1, v.value = "", b.value = "", x.value = "_blank", J.focus();
19731
19741
  }
@@ -19795,11 +19805,11 @@ const ph = {
19795
19805
  try {
19796
19806
  const ee = await (await fetch(J)).blob(), me = URL.createObjectURL(ee), { state: ve, dispatch: he } = i.value, ue = Ie.value, Pe = ve.doc.nodeAt(ue);
19797
19807
  if (Pe && Pe.type.name === "image") {
19798
- const Oe = {
19808
+ const Be = {
19799
19809
  ...Pe.attrs,
19800
19810
  src: me,
19801
19811
  blobUrl: me
19802
- }, Xe = ve.tr.setNodeMarkup(ue, void 0, Oe);
19812
+ }, Xe = ve.tr.setNodeMarkup(ue, void 0, Be);
19803
19813
  he(Xe);
19804
19814
  }
19805
19815
  W.value = !1, oe.value = null;
@@ -19876,15 +19886,15 @@ const ph = {
19876
19886
  let ue = ee.doc.nodeAt(he);
19877
19887
  if (ue && ue.type.name === "image")
19878
19888
  return { node: ue, pos: he };
19879
- for (let Oe = -1; Oe <= 1; Oe++) {
19880
- const Xe = he + Oe;
19889
+ for (let Be = -1; Be <= 1; Be++) {
19890
+ const Xe = he + Be;
19881
19891
  if (Xe >= 0 && Xe < ee.doc.content.size && (ue = ee.doc.nodeAt(Xe), ue && ue.type.name === "image"))
19882
19892
  return { node: ue, pos: Xe };
19883
19893
  }
19884
19894
  const Pe = ee.doc.resolve(he);
19885
19895
  if (Pe.depth > 0) {
19886
- const Oe = Pe.parent;
19887
- Oe && Oe.content && Oe.content.forEach((Xe, Ee) => {
19896
+ const Be = Pe.parent;
19897
+ Be && Be.content && Be.content.forEach((Xe, Ee) => {
19888
19898
  Xe.type.name === "image" && !me && (ve = Pe.start(Pe.depth) + Ee + 1, me = Xe);
19889
19899
  });
19890
19900
  }
@@ -19972,8 +19982,8 @@ const ph = {
19972
19982
  if (!i.value || !de.marks.textColor) return;
19973
19983
  const Y = Dt(J), { state: ee, dispatch: me } = i.value, { from: ve, to: he } = ee.selection, ue = de.marks.textColor.create({ color: Y });
19974
19984
  if (ve === he) {
19975
- const Pe = ee.tr, Oe = (ee.storedMarks || []).filter((Xe) => Xe.type !== de.marks.textColor);
19976
- Pe.setStoredMarks([...Oe, ue]), me(Pe);
19985
+ const Pe = ee.tr, Be = (ee.storedMarks || []).filter((Xe) => Xe.type !== de.marks.textColor);
19986
+ Pe.setStoredMarks([...Be, ue]), me(Pe);
19977
19987
  } else {
19978
19988
  const Pe = ee.tr.removeMark(ve, he, de.marks.textColor);
19979
19989
  Pe.addMark(ve, he, ue), me(Pe);
@@ -20062,9 +20072,9 @@ const ph = {
20062
20072
  const Y = Math.min(Math.max(J, 2), 4), ee = Array.from(
20063
20073
  { length: Y },
20064
20074
  () => de.nodes.column.create({ align: "left" }, [])
20065
- ), me = de.nodes.columns.create({}, ee), { state: ve, dispatch: he } = i.value, ue = ve.selection.from, Pe = ve.tr.replaceSelectionWith(me), Oe = Pe.mapping.map(ue);
20075
+ ), me = de.nodes.columns.create({}, ee), { state: ve, dispatch: he } = i.value, ue = ve.selection.from, Pe = ve.tr.replaceSelectionWith(me), Be = Pe.mapping.map(ue);
20066
20076
  try {
20067
- const Xe = Pe.doc.resolve(Oe + 2);
20077
+ const Xe = Pe.doc.resolve(Be + 2);
20068
20078
  Pe.setSelection(Cn.near(Xe));
20069
20079
  } catch {
20070
20080
  }
@@ -20076,11 +20086,11 @@ const ph = {
20076
20086
  for (let he = ve.depth; he >= 0; he--) {
20077
20087
  const ue = ve.node(he);
20078
20088
  if (ue.type === de.nodes.column) {
20079
- const Pe = ve.before(he), Oe = Y.tr.setNodeMarkup(Pe, de.nodes.column, {
20089
+ const Pe = ve.before(he), Be = Y.tr.setNodeMarkup(Pe, de.nodes.column, {
20080
20090
  ...ue.attrs,
20081
20091
  align: J
20082
20092
  });
20083
- ee(Oe.scrollIntoView()), i.value.focus();
20093
+ ee(Be.scrollIntoView()), i.value.focus();
20084
20094
  return;
20085
20095
  }
20086
20096
  }
@@ -20133,8 +20143,8 @@ const ph = {
20133
20143
  alt: J.name || ue.attrs.alt || null,
20134
20144
  title: J.name || ue.attrs.title || null
20135
20145
  };
20136
- let Oe = me.tr.setNodeMarkup(he, void 0, Pe);
20137
- n.uploadFn && (Oe = Oe.setMeta(zo, { type: "register-file", uploadId: Y, file: J }), $i(Y, J)), ve(Oe);
20146
+ let Be = me.tr.setNodeMarkup(he, void 0, Pe);
20147
+ n.uploadFn && (Be = Be.setMeta(zo, { type: "register-file", uploadId: Y, file: J }), $i(Y, J)), ve(Be);
20138
20148
  }
20139
20149
  je.value = null, Ie.value = null, xe.value = null, i.value.focus();
20140
20150
  }
@@ -20174,10 +20184,10 @@ const ph = {
20174
20184
  console.error("Error creating node:", Ee, { attrs: he, nodeType: ve });
20175
20185
  return;
20176
20186
  }
20177
- const { state: Pe, dispatch: Oe } = i.value;
20187
+ const { state: Pe, dispatch: Be } = i.value;
20178
20188
  let Xe;
20179
20189
  try {
20180
- Xe = Pe.tr.replaceSelectionWith(ue), console.log("Node inserted in transaction"), Xe = Xe.setMeta(zo, { type: "register-file", uploadId: ee, file: J }), Xe = Xe.scrollIntoView(), Oe(Xe), console.log("Transaction dispatched");
20190
+ Xe = Pe.tr.replaceSelectionWith(ue), console.log("Node inserted in transaction"), Xe = Xe.setMeta(zo, { type: "register-file", uploadId: ee, file: J }), Xe = Xe.scrollIntoView(), Be(Xe), console.log("Transaction dispatched");
20181
20191
  } catch (Ee) {
20182
20192
  console.error("Error inserting node:", Ee);
20183
20193
  return;
@@ -20193,13 +20203,13 @@ const ph = {
20193
20203
  let he = null;
20194
20204
  if (ve.doc.descendants((Ee, Qe) => he ? !1 : (Ee.type.name === "image" || Ee.type.name === "video") && Ee.attrs.uploadId === J ? (he = { node: Ee, pos: Qe }, !1) : !0), !he)
20195
20205
  return;
20196
- const { node: ue, pos: Pe } = he, Oe = ue.attrs.blobUrl, Xe = ve.tr.setNodeMarkup(Pe, void 0, {
20206
+ const { node: ue, pos: Pe } = he, Be = ue.attrs.blobUrl, Xe = ve.tr.setNodeMarkup(Pe, void 0, {
20197
20207
  ...ue.attrs,
20198
20208
  src: me,
20199
20209
  status: "done",
20200
20210
  blobUrl: null
20201
20211
  });
20202
- i.value.dispatch(Xe), Oe && URL.revokeObjectURL(Oe);
20212
+ i.value.dispatch(Xe), Be && URL.revokeObjectURL(Be);
20203
20213
  } catch {
20204
20214
  const { state: me } = i.value;
20205
20215
  let ve = null;
@@ -20239,9 +20249,9 @@ const ph = {
20239
20249
  if (!i.value) return;
20240
20250
  const { state: J, dispatch: Y } = i.value, { $anchor: ee } = J.selection;
20241
20251
  let me = null, ve = null;
20242
- for (let Oe = ee.depth; Oe > 0; Oe--)
20243
- if (ee.node(Oe).type.spec.tableRole === "table") {
20244
- me = ee.before(Oe), ve = ee.node(Oe);
20252
+ for (let Be = ee.depth; Be > 0; Be--)
20253
+ if (ee.node(Be).type.spec.tableRole === "table") {
20254
+ me = ee.before(Be), ve = ee.node(Be);
20245
20255
  break;
20246
20256
  }
20247
20257
  if (me === null || !ve) {
@@ -20251,8 +20261,8 @@ const ph = {
20251
20261
  const he = me + ve.nodeSize, { paragraph: ue } = de.nodes;
20252
20262
  let Pe = J.tr;
20253
20263
  if (ue) {
20254
- const Oe = ue.create();
20255
- Pe = Pe.replaceWith(me, he, Oe), Pe = Pe.setSelection(
20264
+ const Be = ue.create();
20265
+ Pe = Pe.replaceWith(me, he, Be), Pe = Pe.setSelection(
20256
20266
  J.selection.constructor.near(Pe.doc.resolve(me + 1))
20257
20267
  );
20258
20268
  } else
@@ -20305,7 +20315,7 @@ const ph = {
20305
20315
  function $s() {
20306
20316
  Kn !== null && (cancelAnimationFrame(Kn), Kn = null);
20307
20317
  }
20308
- return Be(S, (J) => {
20318
+ return Oe(S, (J) => {
20309
20319
  J ? a1() : $s();
20310
20320
  }), ct(async () => {
20311
20321
  await Ke(), l.value || await Ke();
@@ -20388,19 +20398,19 @@ const ph = {
20388
20398
  ee.preventDefault();
20389
20399
  const ue = document.createRange();
20390
20400
  ue.selectNodeContents(ve);
20391
- let Pe = Y.posAtDOM(ue.startContainer, ue.startOffset), Oe = Y.posAtDOM(ue.endContainer, ue.endOffset);
20392
- if (Pe == null || Oe == null || Oe <= Pe) {
20401
+ let Pe = Y.posAtDOM(ue.startContainer, ue.startOffset), Be = Y.posAtDOM(ue.endContainer, ue.endOffset);
20402
+ if (Pe == null || Be == null || Be <= Pe) {
20393
20403
  Pe = Y.posAtDOM(ve, 0);
20394
20404
  const Ee = document.createTreeWalker(ve, NodeFilter.SHOW_TEXT, null);
20395
20405
  let Qe = null, We;
20396
20406
  for (; We = Ee.nextNode(); )
20397
20407
  Qe = We;
20398
- Qe && Pe != null && (Oe = Y.posAtDOM(Qe, Qe.textContent.length));
20408
+ Qe && Pe != null && (Be = Y.posAtDOM(Qe, Qe.textContent.length));
20399
20409
  }
20400
20410
  if (Pe != null)
20401
- if (Oe != null && Oe > Pe) {
20411
+ if (Be != null && Be > Pe) {
20402
20412
  const Ee = Y.state.tr.setSelection(
20403
- Cn.create(Y.state.doc, Pe, Oe)
20413
+ Cn.create(Y.state.doc, Pe, Be)
20404
20414
  );
20405
20415
  Y.dispatch(Ee);
20406
20416
  const Qe = Y.state.doc.resolve(Pe);
@@ -20445,7 +20455,7 @@ const ph = {
20445
20455
  }
20446
20456
  }
20447
20457
  }), c.value = !0, wt(i.value.state), qs(i.value.state), document.addEventListener("click", er, !0);
20448
- }), Be(
20458
+ }), Oe(
20449
20459
  () => n.modelValue,
20450
20460
  (J) => {
20451
20461
  const Y = i.value;
@@ -20797,7 +20807,7 @@ const PG = /* @__PURE__ */ re({
20797
20807
  }
20798
20808
  return c && typeof c == "object" ? c : a;
20799
20809
  }
20800
- l.value = r(n.modelValue), Be(() => n.modelValue, (c) => {
20810
+ l.value = r(n.modelValue), Oe(() => n.modelValue, (c) => {
20801
20811
  const u = r(c);
20802
20812
  try {
20803
20813
  JSON.stringify(u) !== JSON.stringify(l.value) && (l.value = u);
@@ -20823,7 +20833,7 @@ const PG = /* @__PURE__ */ re({
20823
20833
  media: c.media ? { ...w, ...c.media } : w
20824
20834
  };
20825
20835
  });
20826
- return Be(l, (c) => {
20836
+ return Oe(l, (c) => {
20827
20837
  try {
20828
20838
  if (n.output === "json")
20829
20839
  o("update:modelValue", c);
@@ -38757,7 +38767,7 @@ const sO = /* @__PURE__ */ re({
38757
38767
  }), m = H(
38758
38768
  n.modelValue ? [...n.modelValue] : null
38759
38769
  );
38760
- Be(
38770
+ Oe(
38761
38771
  () => n.modelValue,
38762
38772
  (b) => {
38763
38773
  m.value = b ? [...b] : null, b == null && (u.value = !1);
@@ -38973,7 +38983,7 @@ const sO = /* @__PURE__ */ re({
38973
38983
  }), i = H(
38974
38984
  n.modelValue !== "" && n.modelValue !== null && n.modelValue !== void 0 ? String(n.modelValue) : ""
38975
38985
  );
38976
- Be(
38986
+ Oe(
38977
38987
  () => n.modelValue,
38978
38988
  (d) => {
38979
38989
  const h = d !== "" && d !== null && d !== void 0 ? String(d) : "";
@@ -39044,7 +39054,7 @@ const sO = /* @__PURE__ */ re({
39044
39054
  const E = i.value;
39045
39055
  return "currency" in E && E.currency != null ? E.currency : "€";
39046
39056
  }), w = H(!1), M = C(() => w.value ? 1 : 0), v = H(b(a.modelValue, m.value));
39047
- Be(
39057
+ Oe(
39048
39058
  () => a.modelValue,
39049
39059
  (E) => {
39050
39060
  v.value = b(E, m.value), E == null && (w.value = !1);
@@ -39115,7 +39125,7 @@ const sO = /* @__PURE__ */ re({
39115
39125
  const n = e, o = C(
39116
39126
  () => n.column.filterContent
39117
39127
  ), s = C(() => o.value?.placeholder ?? "HH:mm"), a = C(() => o.value?.maxlength ?? 5), l = t, r = H(i(n.modelValue));
39118
- Be(
39128
+ Oe(
39119
39129
  () => n.modelValue,
39120
39130
  (v) => {
39121
39131
  r.value = i(v);
@@ -39477,13 +39487,13 @@ const sO = /* @__PURE__ */ re({
39477
39487
  },
39478
39488
  Q
39479
39489
  );
39480
- Be(
39490
+ Oe(
39481
39491
  () => s.activatedColumns,
39482
39492
  (te) => {
39483
39493
  te !== void 0 && (l.value = te);
39484
39494
  },
39485
39495
  { immediate: !0 }
39486
- ), Be(
39496
+ ), Oe(
39487
39497
  () => ({
39488
39498
  sel: s.selection,
39489
39499
  allSelected: s.allSelected,
@@ -39503,7 +39513,7 @@ const sO = /* @__PURE__ */ re({
39503
39513
  te.sel !== void 0 && (r.value = te.sel);
39504
39514
  },
39505
39515
  { immediate: !0, deep: !0 }
39506
- ), Be(
39516
+ ), Oe(
39507
39517
  l,
39508
39518
  (te) => {
39509
39519
  a("update:activated-columns", te);
@@ -39532,14 +39542,14 @@ const sO = /* @__PURE__ */ re({
39532
39542
  filters: te.filters
39533
39543
  });
39534
39544
  }
39535
- Be(
39545
+ Oe(
39536
39546
  () => F.value,
39537
39547
  (te) => {
39538
39548
  const _ = Ie(te);
39539
39549
  Ve.value !== _ && (Ve.value = _, a("update:request-data", te));
39540
39550
  },
39541
39551
  { deep: !0, immediate: !0, flush: "post" }
39542
- ), Be(
39552
+ ), Oe(
39543
39553
  () => ({
39544
39554
  sel: q.value,
39545
39555
  doSelection: !!s.doSelection
@@ -40514,7 +40524,7 @@ const RO = ["id"], QO = {
40514
40524
  emits: ["update:modelValue", "update:state", "update:message", "change", "drop", "enter", "leave", "over", "add", "remove", "error", "focus", "blur", "upload", "remove-existing"],
40515
40525
  setup(e, { emit: t }) {
40516
40526
  const n = e, o = t, s = H(!1), a = H(""), l = H(null), r = H([...n.existingFiles ?? []]);
40517
- Be(() => n.existingFiles, (we) => {
40527
+ Oe(() => n.existingFiles, (we) => {
40518
40528
  r.value = [...we ?? []];
40519
40529
  });
40520
40530
  const i = r, c = C(() => i.value.length > 0), u = C(() => n.accept && n.accept.length > 0 ? n.accept : (n.variant === "image" || n.variant === "avatar") && !n.allowAnyFileType ? ["image/*"] : n.variant === "csv" ? ["text/csv", "application/csv", ".csv", "csv"] : ["*/*"]), p = C(() => n.multiple), m = C(() => {
@@ -40753,7 +40763,7 @@ const RO = ["id"], QO = {
40753
40763
  function ot() {
40754
40764
  n.disabled || (l.value = null, h(), o("focus"));
40755
40765
  }
40756
- Be(d, (we) => {
40766
+ Oe(d, (we) => {
40757
40767
  if (we && we.length > 0) {
40758
40768
  const ye = Array.from(we);
40759
40769
  console.log("[DropFile] Fichiers sélectionnés via file picker:", {
@@ -40793,7 +40803,7 @@ const RO = ["id"], QO = {
40793
40803
  }))
40794
40804
  }), o("drop", { files: ye, event: we }), ye.length > 0 && Re(ye, we), o("blur");
40795
40805
  }
40796
- return Be(() => n.modelValue, (we) => {
40806
+ return Oe(() => n.modelValue, (we) => {
40797
40807
  if (!we || Array.isArray(we) && we.length === 0)
40798
40808
  j.value.forEach((ye) => {
40799
40809
  ye.url && URL.revokeObjectURL(ye.url);
@@ -41482,7 +41492,7 @@ const RO = ["id"], QO = {
41482
41492
  const o = C(
41483
41493
  () => n.expandedItems.value.includes(t.id)
41484
41494
  ), s = H(n.keepContentMounted.value);
41485
- Be(
41495
+ Oe(
41486
41496
  o,
41487
41497
  (c) => {
41488
41498
  (c || n.keepContentMounted.value) && (s.value = !0);
@@ -41988,7 +41998,7 @@ const RO = ["id"], QO = {
41988
41998
  c && (i = new ResizeObserver(l), i.observe(c)), r(), setTimeout(r, 150);
41989
41999
  }), ht(() => {
41990
42000
  i?.disconnect();
41991
- }), Be(
42001
+ }), Oe(
41992
42002
  () => t.title,
41993
42003
  () => {
41994
42004
  a.value = !1, r();
@@ -42243,7 +42253,7 @@ const RO = ["id"], QO = {
42243
42253
  emits: ["update:modelValue", "settings", "delete", "add-item", "item-settings", "item-delete", "update:item-active", "reorder-items"],
42244
42254
  setup(e, { emit: t }) {
42245
42255
  const n = e, o = H([n.id]), s = H([]);
42246
- Be(
42256
+ Oe(
42247
42257
  () => n.items,
42248
42258
  (m) => {
42249
42259
  s.value = m.map((d) => ({ ...d }));
@@ -42258,7 +42268,7 @@ const RO = ["id"], QO = {
42258
42268
  order: s.value.map((d) => d.id)
42259
42269
  });
42260
42270
  }
42261
- Be(
42271
+ Oe(
42262
42272
  () => n.id,
42263
42273
  (m) => {
42264
42274
  o.value = [m];
@@ -43371,9 +43381,9 @@ const RO = ["id"], QO = {
43371
43381
  }, E = () => {
43372
43382
  j && (clearInterval(j), j = null);
43373
43383
  };
43374
- return Be(() => t.autoplay, (L) => {
43384
+ return Oe(() => t.autoplay, (L) => {
43375
43385
  L ? Z() : E();
43376
- }), Be(
43386
+ }), Oe(
43377
43387
  [i, c, a],
43378
43388
  async () => {
43379
43389
  await Ke(), v(n.value, "auto");
@@ -43658,7 +43668,7 @@ const RO = ["id"], QO = {
43658
43668
  const w = c.value;
43659
43669
  w && (w.style.transition = "none", w.style.width = "0");
43660
43670
  }
43661
- return x1(s, () => o("close")), Be(() => [n.open, n.toast], () => {
43671
+ return x1(s, () => o("close")), Oe(() => [n.open, n.toast], () => {
43662
43672
  d(), n.open && n.toast && n.toastDuration && Ke(m);
43663
43673
  }), (w, M) => (A(), D(dt, { name: "utopia-cartpreview-fade" }, {
43664
43674
  default: B(() => [
@@ -43958,7 +43968,7 @@ const RO = ["id"], QO = {
43958
43968
  emits: ["back", "download"],
43959
43969
  setup(e, { emit: t }) {
43960
43970
  const n = e, o = t, s = H(!!n.image);
43961
- return Be(() => n.image, (a) => {
43971
+ return Oe(() => n.image, (a) => {
43962
43972
  a && (s.value = !0);
43963
43973
  }), (a, l) => (A(), f("div", sj, [
43964
43974
  g("div", lj, [
@@ -44389,7 +44399,7 @@ const RO = ["id"], QO = {
44389
44399
  }, m = () => {
44390
44400
  document.body.style.overflow = "", document.body.style.position = "", document.body.style.width = "", document.body.style.height = "";
44391
44401
  };
44392
- Be(() => n.isOpen, (M) => {
44402
+ Oe(() => n.isOpen, (M) => {
44393
44403
  M ? (p(), Ke(() => {
44394
44404
  setTimeout(i, 100);
44395
44405
  })) : m();
@@ -44549,7 +44559,7 @@ const RO = ["id"], QO = {
44549
44559
  emits: ["mobile-menu-open", "nav-click"],
44550
44560
  setup(e, { emit: t }) {
44551
44561
  const n = H(!1);
44552
- Be(n, (r) => {
44562
+ Oe(n, (r) => {
44553
44563
  if (r) {
44554
44564
  const i = window.scrollY;
44555
44565
  document.body.style.position = "fixed", document.body.style.top = `-${i}px`, document.body.style.width = "100%", document.body.style.overflow = "hidden";
@@ -44929,7 +44939,7 @@ const RO = ["id"], QO = {
44929
44939
  setup(e, { emit: t }) {
44930
44940
  let n = 0;
44931
44941
  const o = e, s = t, a = `menu-section-${++n}`, l = H(o.modelValue !== void 0 ? o.modelValue : o.defaultExpanded);
44932
- Be(() => o.modelValue, (v) => {
44942
+ Oe(() => o.modelValue, (v) => {
44933
44943
  v !== void 0 && (l.value = v);
44934
44944
  });
44935
44945
  const r = () => {
@@ -45964,7 +45974,7 @@ const RO = ["id"], QO = {
45964
45974
  { threshold: 0 }
45965
45975
  ), h.observe(m.value));
45966
45976
  }
45967
- return Be(m, M), ct(() => {
45977
+ return Oe(m, M), ct(() => {
45968
45978
  window.addEventListener("scroll", i, { passive: !0 }), M();
45969
45979
  }), ht(() => {
45970
45980
  window.removeEventListener("scroll", i), h?.disconnect();