sm-click-library-ui 0.0.611-dev.47 → 0.0.611-dev.48

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.
@@ -1665,8 +1665,8 @@ const U2 = (e) => {
1665
1665
  onUploadProgress: D,
1666
1666
  responseType: Y,
1667
1667
  headers: R,
1668
- withCredentials: Z = "same-origin",
1669
- fetchOptions: q
1668
+ withCredentials: q = "same-origin",
1669
+ fetchOptions: Z
1670
1670
  } = U2(g), V = t || fetch;
1671
1671
  Y = Y ? (Y + "").toLowerCase() : "text";
1672
1672
  let j = Qm([$, M && M.toAbortSignal()], C), A = null;
@@ -1689,18 +1689,18 @@ const U2 = (e) => {
1689
1689
  _ = su(te.body, ou, ae, ee);
1690
1690
  }
1691
1691
  }
1692
- De.isString(Z) || (Z = Z ? "include" : "omit");
1692
+ De.isString(q) || (q = q ? "include" : "omit");
1693
1693
  const O = r && "credentials" in n.prototype, I = {
1694
- ...q,
1694
+ ...Z,
1695
1695
  signal: j,
1696
1696
  method: k.toUpperCase(),
1697
1697
  headers: R.normalize().toJSON(),
1698
1698
  body: _,
1699
1699
  duplex: "half",
1700
- credentials: O ? Z : void 0
1700
+ credentials: O ? q : void 0
1701
1701
  };
1702
1702
  A = r && new n(b, I);
1703
- let B = await (r ? V(A, q) : V(b, I));
1703
+ let B = await (r ? V(A, Z) : V(b, I));
1704
1704
  const G = m && (Y === "stream" || Y === "response");
1705
1705
  if (m && (T || G && S)) {
1706
1706
  const te = {};
@@ -2515,13 +2515,13 @@ const pp = "v1/api/attendances/attendant/", vp = "v1/api/attendances/department/
2515
2515
  },
2516
2516
  emits: ["update:modelValue"],
2517
2517
  setup(e, { emit: t }) {
2518
- const n = e, a = t, i = P(() => n.background ? { backgroundColor: n.background } : {}), r = P(() => n.menuBackground ? { backgroundColor: n.menuBackground } : {}), c = $p(), u = X(!1), h = X(null), p = X(null), m = X({}), y = [], x = X({ name: "" }), w = X(""), g = P(() => n.modelValue[0] || null), b = (q) => {
2518
+ const n = e, a = t, i = P(() => n.background ? { backgroundColor: n.background } : {}), r = P(() => n.menuBackground ? { backgroundColor: n.menuBackground } : {}), c = $p(), u = X(!1), h = X(null), p = X(null), m = X({}), y = [], x = X({ name: "" }), w = X(""), g = P(() => n.modelValue[0] || null), b = (Z) => {
2519
2519
  var j, A;
2520
2520
  if (!u.value) return;
2521
- const V = q.target;
2521
+ const V = Z.target;
2522
2522
  (j = p.value) != null && j.contains(V) || (A = h.value) != null && A.contains(V) || (u.value = !1);
2523
- }, k = (q) => {
2524
- let V = (q == null ? void 0 : q.parentElement) || null;
2523
+ }, k = (Z) => {
2524
+ let V = (Z == null ? void 0 : Z.parentElement) || null;
2525
2525
  for (; V && V !== document.body && V !== document.documentElement; ) {
2526
2526
  const j = window.getComputedStyle(V), A = j.willChange || "";
2527
2527
  if (j.transform !== "none" || j.perspective !== "none" || j.filter !== "none" || j.backdropFilter !== "none" || A.includes("transform") || A.includes("filter") || A.includes("perspective")) return V;
@@ -2530,8 +2530,8 @@ const pp = "v1/api/attendances/attendant/", vp = "v1/api/attendances/department/
2530
2530
  return null;
2531
2531
  }, _ = () => {
2532
2532
  if (!n.overlay || !p.value) return;
2533
- const q = p.value.getBoundingClientRect();
2534
- let V = q.bottom + 3, j = q.left;
2533
+ const Z = p.value.getBoundingClientRect();
2534
+ let V = Z.bottom + 3, j = Z.left;
2535
2535
  const A = k(p.value);
2536
2536
  if (A) {
2537
2537
  const S = A.getBoundingClientRect();
@@ -2541,54 +2541,54 @@ const pp = "v1/api/attendances/attendant/", vp = "v1/api/attendances/department/
2541
2541
  position: "fixed",
2542
2542
  top: `${V}px`,
2543
2543
  left: `${j}px`,
2544
- width: `${q.width}px`,
2544
+ width: `${Z.width}px`,
2545
2545
  zIndex: 9999
2546
2546
  };
2547
2547
  };
2548
- Ke(u, async (q) => {
2549
- q && (await bt(), _(), requestAnimationFrame(_));
2548
+ Ke(u, async (Z) => {
2549
+ Z && (await bt(), _(), requestAnimationFrame(_));
2550
2550
  });
2551
- const $ = P(() => c.tagsFor(w.value)), M = P(() => [...n.syntheticTags, ...$.value]), C = P(() => c.hasMoreFor(w.value)), T = P(() => c.loadingFor(w.value)), D = P(() => c.loadedFor(w.value)), Y = (q) => {
2551
+ const $ = P(() => c.tagsFor(w.value)), M = P(() => [...n.syntheticTags, ...$.value]), C = P(() => c.hasMoreFor(w.value)), T = P(() => c.loadingFor(w.value)), D = P(() => c.loadedFor(w.value)), Y = (Z) => {
2552
2552
  var A;
2553
2553
  if (!n.multiple) {
2554
- if (((A = g.value) == null ? void 0 : A.id) === q.id) {
2554
+ if (((A = g.value) == null ? void 0 : A.id) === Z.id) {
2555
2555
  a("update:modelValue", []);
2556
2556
  return;
2557
2557
  }
2558
- a("update:modelValue", [{ id: q.id, name: q.name, color: q.color }]), n.closeOnSelectSingle && (u.value = !1);
2558
+ a("update:modelValue", [{ id: Z.id, name: Z.name, color: Z.color }]), n.closeOnSelectSingle && (u.value = !1);
2559
2559
  return;
2560
2560
  }
2561
- const V = [...n.modelValue], j = V.findIndex((S) => S.id === q.id);
2562
- j === -1 ? V.push({ id: q.id, name: q.name, color: q.color }) : V.splice(j, 1), a("update:modelValue", V);
2563
- }, R = async (q) => {
2564
- T.value || (await c.fetchTags({ query: w.value }), c.hasMoreFor(w.value) ? q.loaded() : q.complete());
2561
+ const V = [...n.modelValue], j = V.findIndex((S) => S.id === Z.id);
2562
+ j === -1 ? V.push({ id: Z.id, name: Z.name, color: Z.color }) : V.splice(j, 1), a("update:modelValue", V);
2563
+ }, R = async (Z) => {
2564
+ T.value || (await c.fetchTags({ query: w.value }), c.hasMoreFor(w.value) ? Z.loaded() : Z.complete());
2565
2565
  };
2566
- let Z;
2566
+ let q;
2567
2567
  return Ke(
2568
2568
  () => x.value.name,
2569
- (q) => {
2570
- clearTimeout(Z), Z = setTimeout(() => {
2571
- w.value = (q || "").trim(), c.ensureSearch(w.value);
2569
+ (Z) => {
2570
+ clearTimeout(q), q = setTimeout(() => {
2571
+ w.value = (Z || "").trim(), c.ensureSearch(w.value);
2572
2572
  }, 400);
2573
2573
  }
2574
2574
  ), gt(async () => {
2575
2575
  if (document.addEventListener("mousedown", b), await c.ensureLoaded(), n.overlay) {
2576
- const q = () => {
2576
+ const Z = () => {
2577
2577
  u.value && _();
2578
2578
  };
2579
- window.addEventListener("scroll", q, !0), window.addEventListener("resize", q), y.push(["scroll", q], ["resize", q]);
2579
+ window.addEventListener("scroll", Z, !0), window.addEventListener("resize", Z), y.push(["scroll", Z], ["resize", Z]);
2580
2580
  }
2581
2581
  }), Bt(() => {
2582
- clearTimeout(Z), document.removeEventListener("mousedown", b), y.forEach(([q, V]) => window.removeEventListener(q, V, q === "scroll" ? !0 : void 0));
2582
+ clearTimeout(q), document.removeEventListener("mousedown", b), y.forEach(([Z, V]) => window.removeEventListener(Z, V, Z === "scroll" ? !0 : void 0));
2583
2583
  }), Ke(
2584
2584
  () => n.allTags,
2585
- (q) => c.seed(q),
2585
+ (Z) => c.seed(Z),
2586
2586
  { deep: !0, immediate: !0 }
2587
2587
  ), Ke(
2588
2588
  () => n.modelValue,
2589
- (q) => c.upsert(q || []),
2589
+ (Z) => c.upsert(Z || []),
2590
2590
  { deep: !0, immediate: !0 }
2591
- ), (q, V) => {
2591
+ ), (Z, V) => {
2592
2592
  var j;
2593
2593
  return l(), f("div", {
2594
2594
  ref_key: "dropdownRef",
@@ -2972,11 +2972,11 @@ const pp = "v1/api/attendances/attendant/", vp = "v1/api/attendances/department/
2972
2972
  function R() {
2973
2973
  a("update:filters", Y());
2974
2974
  }
2975
- function Z(ae) {
2975
+ function q(ae) {
2976
2976
  const ee = p.value[ae], fe = h.value[ae];
2977
2977
  JSON.stringify(ee ?? null) !== JSON.stringify(fe ?? null) && (h.value[ae] = ee ?? null, R());
2978
2978
  }
2979
- function q(ae, ee) {
2979
+ function Z(ae, ee) {
2980
2980
  p.value[x(ae)] = ee;
2981
2981
  }
2982
2982
  function V() {
@@ -3000,10 +3000,10 @@ const pp = "v1/api/attendances/attendant/", vp = "v1/api/attendances/department/
3000
3000
  A();
3001
3001
  return;
3002
3002
  }
3003
- i.value && Z(i.value), i.value = ee;
3003
+ i.value && q(i.value), i.value = ee;
3004
3004
  }
3005
3005
  function A() {
3006
- i.value && (Z(i.value), i.value = null, c.value = {});
3006
+ i.value && (q(i.value), i.value = null, c.value = {});
3007
3007
  }
3008
3008
  function S(ae) {
3009
3009
  if (!i.value) return;
@@ -3230,14 +3230,14 @@ const pp = "v1/api/attendances/attendant/", vp = "v1/api/attendances/department/
3230
3230
  key: 0,
3231
3231
  "model-value": p.value[x(g.value)],
3232
3232
  placeholder: g.value.filter.placeholder,
3233
- "onUpdate:modelValue": ee[2] || (ee[2] = (ne) => q(g.value, ne)),
3233
+ "onUpdate:modelValue": ee[2] || (ee[2] = (ne) => Z(g.value, ne)),
3234
3234
  onSubmit: A
3235
3235
  }, null, 8, ["model-value", "placeholder"])) : g.value.filter.type === "select" ? (l(), _e(r5, {
3236
3236
  key: 1,
3237
3237
  options: g.value.filter.options,
3238
3238
  "model-value": p.value[x(g.value)],
3239
3239
  "onUpdate:modelValue": ee[3] || (ee[3] = (ne) => {
3240
- q(g.value, ne), A();
3240
+ Z(g.value, ne), A();
3241
3241
  })
3242
3242
  }, null, 8, ["options", "model-value"])) : g.value.filter.type === "checkbox" ? (l(), f("div", b6, [
3243
3243
  (l(!0), f(ye, null, He(g.value.filter.options, (ne) => (l(), f("label", {
@@ -3257,7 +3257,7 @@ const pp = "v1/api/attendances/attendant/", vp = "v1/api/attendances/department/
3257
3257
  options: g.value.filter.options,
3258
3258
  "model-value": p.value[x(g.value)] ?? [],
3259
3259
  placeholder: g.value.filter.placeholder,
3260
- "onUpdate:modelValue": ee[4] || (ee[4] = (ne) => q(g.value, ne.length ? ne : null))
3260
+ "onUpdate:modelValue": ee[4] || (ee[4] = (ne) => Z(g.value, ne.length ? ne : null))
3261
3261
  }, null, 8, ["options", "model-value", "placeholder"])) : g.value.filter.type === "tag" ? (l(), _e(Yr, {
3262
3262
  key: 4,
3263
3263
  "model-value": C.value,
@@ -3265,7 +3265,7 @@ const pp = "v1/api/attendances/attendant/", vp = "v1/api/attendances/department/
3265
3265
  "synthetic-tags": M.value,
3266
3266
  overlay: !0,
3267
3267
  multiple: g.value.filter.multiple !== !1,
3268
- "onUpdate:modelValue": ee[5] || (ee[5] = (ne) => q(g.value, ne.length ? ne : null))
3268
+ "onUpdate:modelValue": ee[5] || (ee[5] = (ne) => Z(g.value, ne.length ? ne : null))
3269
3269
  }, null, 8, ["model-value", "all-tags", "synthetic-tags", "multiple"])) : F("", !0)
3270
3270
  ], 4)) : F("", !0)
3271
3271
  ]))
@@ -3607,7 +3607,7 @@ const pp = "v1/api/attendances/attendant/", vp = "v1/api/attendances/department/
3607
3607
  ])
3608
3608
  ]),
3609
3609
  "cell-status": Ae(({ row: $ }) => {
3610
- var M, C, T, D, Y, R, Z, q;
3610
+ var M, C, T, D, Y, R, q, Z;
3611
3611
  return [
3612
3612
  o("div", A6, [
3613
3613
  o("div", {
@@ -3633,7 +3633,7 @@ const pp = "v1/api/attendances/attendant/", vp = "v1/api/attendances/department/
3633
3633
  "stroke-width": "2",
3634
3634
  d: "m6 6 12 12m3-6a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"
3635
3635
  }, null, -1)
3636
- ])])) : ((Z = $.status) == null ? void 0 : Z.toLowerCase()) === "approved" ? (l(), f("svg", P6, [...k[2] || (k[2] = [
3636
+ ])])) : ((q = $.status) == null ? void 0 : q.toLowerCase()) === "approved" ? (l(), f("svg", P6, [...k[2] || (k[2] = [
3637
3637
  o("path", {
3638
3638
  stroke: "currentColor",
3639
3639
  "stroke-linecap": "round",
@@ -3641,7 +3641,7 @@ const pp = "v1/api/attendances/attendant/", vp = "v1/api/attendances/department/
3641
3641
  "stroke-width": "2",
3642
3642
  d: "m8.032 12 1.984 1.984 4.96-4.96m4.55 5.272.893-.893a1.984 1.984 0 0 0 0-2.806l-.893-.893a1.984 1.984 0 0 1-.581-1.403V7.04a1.984 1.984 0 0 0-1.984-1.984h-1.262a1.983 1.983 0 0 1-1.403-.581l-.893-.893a1.984 1.984 0 0 0-2.806 0l-.893.893a1.984 1.984 0 0 1-1.403.581H7.04A1.984 1.984 0 0 0 5.055 7.04v1.262c0 .527-.209 1.031-.581 1.403l-.893.893a1.984 1.984 0 0 0 0 2.806l.893.893c.372.372.581.876.581 1.403v1.262a1.984 1.984 0 0 0 1.984 1.984h1.262c.527 0 1.031.209 1.403.581l.893.893a1.984 1.984 0 0 0 2.806 0l.893-.893a1.985 1.985 0 0 1 1.403-.581h1.262a1.984 1.984 0 0 0 1.984-1.984V15.7c0-.527.209-1.031.581-1.403Z"
3643
3643
  }, null, -1)
3644
- ])])) : ((q = $.status) == null ? void 0 : q.toLowerCase()) === "pending_deletion" ? (l(), f("svg", T6, [...k[3] || (k[3] = [
3644
+ ])])) : ((Z = $.status) == null ? void 0 : Z.toLowerCase()) === "pending_deletion" ? (l(), f("svg", T6, [...k[3] || (k[3] = [
3645
3645
  o("path", {
3646
3646
  stroke: "currentColor",
3647
3647
  "stroke-linecap": "round",
@@ -6490,10 +6490,10 @@ const Sa = ca("attendant", {
6490
6490
  }), Y = P(() => !!D.value), R = P(() => {
6491
6491
  var ne;
6492
6492
  return ((ne = T.value) == null ? void 0 : ne.ring.variant) === "arc";
6493
- }), Z = P(() => {
6493
+ }), q = P(() => {
6494
6494
  var ne;
6495
6495
  return ((ne = T.value) == null ? void 0 : ne.ring.variant) === "double";
6496
- }), q = P(() => {
6496
+ }), Z = P(() => {
6497
6497
  var ne, ve;
6498
6498
  return R.value && ((ve = (ne = T.value) == null ? void 0 : ne.ornament) == null ? void 0 : ve.variant) || "";
6499
6499
  }), V = P(
@@ -6545,7 +6545,7 @@ const Sa = ca("attendant", {
6545
6545
  }), I = P(() => {
6546
6546
  var xe;
6547
6547
  if (n.size === "fill" && !Y.value) return "0px";
6548
- const ne = R.value ? 0.72 : Z.value ? 1.4 : 1, ve = R.value ? 1.5 : Z.value ? 3 : 2, de = (((xe = T.value) == null ? void 0 : xe.ring.width) || 2) * ne / $i;
6548
+ const ne = R.value ? 0.72 : q.value ? 1.4 : 1, ve = R.value ? 1.5 : q.value ? 3 : 2, de = (((xe = T.value) == null ? void 0 : xe.ring.width) || 2) * ne / $i;
6549
6549
  return n.size === "fill" ? `max(${ve}px, ${Math.round(de * 1e4) / 100}cqw)` : `${Math.max(ve, de * $i * S.value)}px`;
6550
6550
  }), B = P(() => {
6551
6551
  var ne, ve, de, xe, ke, Re, Xe, Be;
@@ -6609,7 +6609,7 @@ const Sa = ca("attendant", {
6609
6609
  j.value ? "sm-avatar-frame--animated" : "",
6610
6610
  A.value ? "sm-avatar-frame--spins" : "",
6611
6611
  (xe = T.value) != null && xe.ring.variant ? `sm-avatar-frame--${T.value.ring.variant}` : "",
6612
- q.value ? `sm-avatar-frame--signature-${q.value}` : "",
6612
+ Z.value ? `sm-avatar-frame--signature-${Z.value}` : "",
6613
6613
  Y.value ? "sm-avatar-frame--painted" : "",
6614
6614
  e.frameOnly && !Y.value ? "sm-avatar-frame--empty" : ""
6615
6615
  ]]),
@@ -6842,10 +6842,10 @@ const Sa = ca("attendant", {
6842
6842
  function R() {
6843
6843
  M.value && (i.value = !0);
6844
6844
  }
6845
- function Z(V) {
6845
+ function q(V) {
6846
6846
  i.value = !1, a("start-chat", V);
6847
6847
  }
6848
- async function q(V, j) {
6848
+ async function Z(V, j) {
6849
6849
  if (V)
6850
6850
  try {
6851
6851
  await navigator.clipboard.writeText(V), r.value = j, c && clearTimeout(c), c = setTimeout(() => {
@@ -6949,7 +6949,7 @@ const Sa = ca("attendant", {
6949
6949
  class: "vcard-person__chat",
6950
6950
  type: "button",
6951
6951
  title: "Iniciar conversa",
6952
- onClick: ct((z) => Z(A), ["stop"])
6952
+ onClick: ct((z) => q(A), ["stop"])
6953
6953
  }, [...j[6] || (j[6] = [
6954
6954
  o("svg", {
6955
6955
  "aria-hidden": "true",
@@ -6991,7 +6991,7 @@ const Sa = ca("attendant", {
6991
6991
  rel: A.link ? "noopener noreferrer" : null,
6992
6992
  type: A.link ? null : "button",
6993
6993
  title: A.link ? "Abrir" : r.value === A.id ? "Copiado!" : "Clique para copiar",
6994
- onClick: ct((S) => A.link ? null : q(A.value, A.id), ["stop"])
6994
+ onClick: ct((S) => A.link ? null : Z(A.value, A.id), ["stop"])
6995
6995
  }, {
6996
6996
  default: Ae(() => [
6997
6997
  (l(), f("svg", mv, [
@@ -7019,7 +7019,7 @@ const Sa = ca("attendant", {
7019
7019
  o("button", {
7020
7020
  class: "vcard-modal__action",
7021
7021
  type: "button",
7022
- onClick: j[2] || (j[2] = ct((A) => Z(g.value), ["stop"]))
7022
+ onClick: j[2] || (j[2] = ct((A) => q(g.value), ["stop"]))
7023
7023
  }, " Iniciar conversa ")
7024
7024
  ]),
7025
7025
  key: "0"
@@ -7089,12 +7089,12 @@ function Na() {
7089
7089
  function R(A, ...S) {
7090
7090
  for (const z of Y.get(A) || []) z(...S);
7091
7091
  }
7092
- function Z(A) {
7092
+ function q(A) {
7093
7093
  return a = 0, A ? b = setTimeout(() => {
7094
- q();
7095
- }, A) : q(), j;
7094
+ Z();
7095
+ }, A) : Z(), j;
7096
7096
  }
7097
- function q() {
7097
+ function Z() {
7098
7098
  e = vn.Running, R("start", k, _);
7099
7099
  }
7100
7100
  function V() {
@@ -7103,7 +7103,7 @@ function Na() {
7103
7103
  const A = Object.assign({}, g);
7104
7104
  g = Object.assign({}, _), _ = A;
7105
7105
  }
7106
- Z(C);
7106
+ q(C);
7107
7107
  } else n = 0;
7108
7108
  return j;
7109
7109
  }
@@ -7134,7 +7134,7 @@ function Na() {
7134
7134
  var z, O;
7135
7135
  return z = A, O = S, Y.has(z) && Y.set(z, Y.get(z).filter((I) => I !== O)), j;
7136
7136
  }, start: function(A) {
7137
- return Oo(k, _) || (e = vn.Initializing, g = Object.assign({}, k), _r.add(this), Hs || (Hs = window.requestAnimationFrame(O3)), Z(A)), j;
7137
+ return Oo(k, _) || (e = vn.Initializing, g = Object.assign({}, k), _r.add(this), Hs || (Hs = window.requestAnimationFrame(O3)), q(A)), j;
7138
7138
  }, pause: function() {
7139
7139
  return b && (clearTimeout(b), b = null), e === vn.Running && (e = vn.Paused, R("pause", k)), j;
7140
7140
  }, end: V, tick: function(A) {
@@ -7227,10 +7227,10 @@ const $u = (e) => {
7227
7227
  let Pi = !1, Ao = !0;
7228
7228
  const Zs = (e, t) => {
7229
7229
  let n, a, i, r = Object.assign(Object.assign({}, kv), t), c = [], u = [], h = [], p = !1, m = !1, y = !1, x = !1, w = 0, g = 0, b = 0, k = 0, _ = 0, $ = 0, M = 0, C = 0, T = 0, D = [], Y = 0, R = 0;
7230
- const Z = /* @__PURE__ */ new Map();
7231
- function q(G) {
7230
+ const q = /* @__PURE__ */ new Map();
7231
+ function Z(G) {
7232
7232
  const J = Li(u), te = Li(h), se = J && te ? J / te : 0, ae = Math.abs(M) > Math.abs(C) ? M : C, ee = { srcEvent: n, isPanRecognized: p, isSwipeRecognized: m, firstTouch: c, previousTouch: h, currentTouch: u, deltaX: b, deltaY: k, offsetX: _, offsetY: $, velocityX: M, velocityY: C, velocity: ae, angle: T, axis: i, scale: se, center: a };
7233
- for (const fe of Z.get(G) || []) fe(ee);
7233
+ for (const fe of q.get(G) || []) fe(ee);
7234
7234
  }
7235
7235
  function V(G) {
7236
7236
  const J = Date.now();
@@ -7254,7 +7254,7 @@ const Zs = (e, t) => {
7254
7254
  }
7255
7255
  G instanceof MouseEvent && (window.addEventListener("mousemove", A), window.addEventListener("mouseup", S)), window.addEventListener("blur", z), n = G, u = Eu(G), c = [...u], h = [], g = u.length, a = za(u), g === 1 && (p = !1, m = !1, y = !1), g && V(za(u));
7256
7256
  const se = Date.now(), ae = se - (w || se);
7257
- x = ae > 0 && ae <= 250 && g === 1, w = se, clearTimeout(Y), q("start");
7257
+ x = ae > 0 && ae <= 250 && g === 1, w = se, clearTimeout(Y), Z("start");
7258
7258
  }
7259
7259
  function A(G) {
7260
7260
  var J;
@@ -7267,23 +7267,23 @@ const Zs = (e, t) => {
7267
7267
  }
7268
7268
  if (u.length > 1) {
7269
7269
  const ae = Li(u), ee = Li(h);
7270
- Math.abs(ae - ee) >= 0.1 && (y = !0, q("pinch"));
7270
+ Math.abs(ae - ee) >= 0.1 && (y = !0, Z("pinch"));
7271
7271
  }
7272
- p || (p = Math.abs(_) > r.panThreshold || Math.abs($) > r.panThreshold, p && (Ao = !1, clearTimeout(R), R = 0, T = Math.abs(180 * Math.atan2($, _) / Math.PI), i = T > 45 && T < 135 ? "y" : "x", c = [...u], h = [...u], _ = 0, $ = 0, b = 0, k = 0, (J = window.getSelection()) === null || J === void 0 || J.removeAllRanges(), q("panstart"))), p && (b || k) && q("pan"), q("move");
7272
+ p || (p = Math.abs(_) > r.panThreshold || Math.abs($) > r.panThreshold, p && (Ao = !1, clearTimeout(R), R = 0, T = Math.abs(180 * Math.atan2($, _) / Math.PI), i = T > 45 && T < 135 ? "y" : "x", c = [...u], h = [...u], _ = 0, $ = 0, b = 0, k = 0, (J = window.getSelection()) === null || J === void 0 || J.removeAllRanges(), Z("panstart"))), p && (b || k) && Z("pan"), Z("move");
7273
7273
  }
7274
7274
  function S(G) {
7275
7275
  if (n = G, !c.length) return;
7276
7276
  const J = Eu(G), te = D3(G);
7277
- if (g = J.length, a = za(te), te.length && V(za(te)), h = [...u], u = [...J], c = [...J], g > 0) q("end"), p = !1, m = !1, D = [];
7277
+ if (g = J.length, a = za(te), te.length && V(za(te)), h = [...u], u = [...J], c = [...J], g > 0) Z("end"), p = !1, m = !1, D = [];
7278
7278
  else {
7279
7279
  const se = r.swipeThreshold;
7280
- (Math.abs(M) > se || Math.abs(C) > se) && (m = !0), p && q("panend"), m && q("swipe"), p || m || y || (q("tap"), x ? q("doubleTap") : Y = setTimeout(function() {
7281
- q("singleTap");
7282
- }, 250)), q("end"), O();
7280
+ (Math.abs(M) > se || Math.abs(C) > se) && (m = !0), p && Z("panend"), m && Z("swipe"), p || m || y || (Z("tap"), x ? Z("doubleTap") : Y = setTimeout(function() {
7281
+ Z("singleTap");
7282
+ }, 250)), Z("end"), O();
7283
7283
  }
7284
7284
  }
7285
7285
  function z() {
7286
- clearTimeout(Y), O(), p && q("panend"), q("end");
7286
+ clearTimeout(Y), O(), p && Z("panend"), Z("end");
7287
7287
  }
7288
7288
  function O() {
7289
7289
  Pi = !1, p = !1, m = !1, x = !1, g = 0, D = [], u = [], h = [], c = [], b = 0, k = 0, _ = 0, $ = 0, M = 0, C = 0, T = 0, i = void 0, window.removeEventListener("mousemove", A), window.removeEventListener("mouseup", S), window.removeEventListener("blur", z), Ao || R || (R = setTimeout(() => {
@@ -7298,10 +7298,10 @@ const Zs = (e, t) => {
7298
7298
  return e && (e.addEventListener("click", I, Pa), e.addEventListener("mousedown", j, Pa), e.addEventListener("touchstart", j, Pa), e.addEventListener("touchmove", A, Pa), e.addEventListener("touchend", S), e.addEventListener("touchcancel", S)), B;
7299
7299
  }, on: function(G, J) {
7300
7300
  return function(te, se) {
7301
- Z.set(te, [...Z.get(te) || [], se]);
7301
+ q.set(te, [...q.get(te) || [], se]);
7302
7302
  }(G, J), B;
7303
7303
  }, off: function(G, J) {
7304
- return Z.has(G) && Z.set(G, Z.get(G).filter((te) => te !== J)), B;
7304
+ return q.has(G) && q.set(G, q.get(G).filter((te) => te !== J)), B;
7305
7305
  }, isPointerDown: () => g > 0, destroy: function() {
7306
7306
  clearTimeout(Y), clearTimeout(R), R = 0, e && (e.removeEventListener("click", I, Pa), e.removeEventListener("mousedown", j, Pa), e.removeEventListener("touchstart", j, Pa), e.removeEventListener("touchmove", A, Pa), e.removeEventListener("touchend", S), e.removeEventListener("touchcancel", S)), e = null, O();
7307
7307
  } };
@@ -7435,7 +7435,7 @@ const C1 = (e, t = {}, n = {}) => {
7435
7435
  var K;
7436
7436
  e && (yn(e, "is-loading"), (K = e.querySelector(".f-spinner")) === null || K === void 0 || K.remove());
7437
7437
  }
7438
- function Z() {
7438
+ function q() {
7439
7439
  if (!e || !i) return;
7440
7440
  if (R(), ta(i) && (!i.complete || !i.naturalWidth)) return y = 2, a == null || a.classList.add("has-error"), void C("error");
7441
7441
  C("loaded");
@@ -7489,12 +7489,12 @@ const C1 = (e, t = {}, n = {}) => {
7489
7489
  })), e == null || e.addEventListener("click", D), document == null || document.addEventListener("mousemove", Y), k.push(() => {
7490
7490
  e == null || e.removeEventListener("click", D), document == null || document.removeEventListener("mousemove", Y);
7491
7491
  });
7492
- const ue = q();
7492
+ const ue = Z();
7493
7493
  g = Object.assign({}, ue), b = Object.assign({}, ue), y = 3, ne(), ee(), C("ready"), requestAnimationFrame(() => {
7494
7494
  R(), c && (c.style.visibility = "");
7495
7495
  });
7496
7496
  }
7497
- function q() {
7497
+ function Z() {
7498
7498
  const K = Object.assign({}, _("startPos") || {});
7499
7499
  let re = K.scale, ue = 1;
7500
7500
  ue = typeof re == "string" ? O(re) : typeof re == "number" ? re : B();
@@ -7858,7 +7858,7 @@ const C1 = (e, t = {}, n = {}) => {
7858
7858
  return x;
7859
7859
  }, getPlugins: function() {
7860
7860
  return w;
7861
- }, getScale: O, getStartPosition: q, getState: function() {
7861
+ }, getScale: O, getStartPosition: Z, getState: function() {
7862
7862
  return y;
7863
7863
  }, getTransform: function(K) {
7864
7864
  return K === !0 ? b : g;
@@ -7900,12 +7900,12 @@ const C1 = (e, t = {}, n = {}) => {
7900
7900
  }
7901
7901
  }(), function() {
7902
7902
  if (!e || !i) return;
7903
- if (!ta(i) || !ta(r)) return void Z();
7903
+ if (!ta(i) || !ta(r)) return void q();
7904
7904
  const K = () => {
7905
7905
  i && ta(i) && i.decode().then(() => {
7906
- Z();
7906
+ q();
7907
7907
  }).catch(() => {
7908
- Z();
7908
+ q();
7909
7909
  });
7910
7910
  };
7911
7911
  if (y = 1, e.classList.add("is-loading"), C("loading"), r.src && r.complete) return void K();
@@ -7965,7 +7965,7 @@ const Qa = (e) => {
7965
7965
  let Bu, zu = 0;
7966
7966
  const Sr = (e, t = {}, n = {}) => {
7967
7967
  zu++;
7968
- let a, i, r, c, u, h = 0, p = Object.assign({}, Ts), m = Object.assign({}, Ts), y = {}, x = null, w = null, g = !1, b = !1, k = !1, _ = !1, $ = "height", M = 0, C = !0, T = 0, D = 0, Y = 0, R = 0, Z = "*", q = [], V = [];
7968
+ let a, i, r, c, u, h = 0, p = Object.assign({}, Ts), m = Object.assign({}, Ts), y = {}, x = null, w = null, g = !1, b = !1, k = !1, _ = !1, $ = "height", M = 0, C = !0, T = 0, D = 0, Y = 0, R = 0, q = "*", Z = [], V = [];
7969
7969
  const j = /* @__PURE__ */ new Set();
7970
7970
  let A = [], S = [], z = 0, O = 0, I = 0;
7971
7971
  function B(ie, ...ge) {
@@ -7996,7 +7996,7 @@ const Sr = (e, t = {}, n = {}) => {
7996
7996
  if (u = ze, h !== 0) {
7997
7997
  let je = (ge = (ie = S[T]) === null || ie === void 0 ? void 0 : ie.slides[0]) === null || ge === void 0 ? void 0 : ge.index;
7998
7998
  je === void 0 && (je = m.initialSlide), Ee.initialSlide = je, Ee.slides = [];
7999
- for (const We of q) We.isVirtual && Ee.slides.push(We);
7999
+ for (const We of Z) We.isVirtual && Ee.slides.push(We);
8000
8000
  }
8001
8001
  yt(), m = Ee, B("enabled") !== !1 && (h = 0, te("init"), function() {
8002
8002
  for (const [je, We] of Object.entries(Object.assign(Object.assign({}, n), m.plugins || {}))) if (je && !y[je] && We instanceof Function) {
@@ -8014,15 +8014,15 @@ const Sr = (e, t = {}, n = {}) => {
8014
8014
  }(), function() {
8015
8015
  if (!w) return;
8016
8016
  const je = B("classes") || {};
8017
- q = [], [...Zl(w, `.${je.slide}`)].forEach((We) => {
8017
+ Z = [], [...Zl(w, `.${je.slide}`)].forEach((We) => {
8018
8018
  if (We.parentElement) {
8019
8019
  const he = le(Object.assign({ el: We, isVirtual: !1 }, We.dataset || {}));
8020
- te("createSlide", he), q.push(he);
8020
+ te("createSlide", he), Z.push(he);
8021
8021
  }
8022
8022
  }), ce();
8023
- for (const We of q) te("addSlide", We);
8023
+ for (const We of Z) te("addSlide", We);
8024
8024
  W(B("slides"));
8025
- for (const We of q) {
8025
+ for (const We of Z) {
8026
8026
  const he = We.el;
8027
8027
  (he == null ? void 0 : he.parentElement) === w && (vt(he, m.classes.slide), vt(he, We.class), Ze(We), te("attachSlideEl", We));
8028
8028
  }
@@ -8107,8 +8107,8 @@ const Sr = (e, t = {}, n = {}) => {
8107
8107
  function fe(ie = "*") {
8108
8108
  var ge;
8109
8109
  const Ee = [];
8110
- for (const ze of q) (ie === "*" || ze.class && ze.class.includes(ie) || ze.el && (!((ge = ze.el) === null || ge === void 0) && ge.classList.contains(ie))) && Ee.push(ze);
8111
- c = void 0, Z = ie, V = [...Ee];
8110
+ for (const ze of Z) (ie === "*" || ze.class && ze.class.includes(ie) || ze.el && (!((ge = ze.el) === null || ge === void 0) && ge.classList.contains(ie))) && Ee.push(ze);
8111
+ c = void 0, q = ie, V = [...Ee];
8112
8112
  }
8113
8113
  function ne() {
8114
8114
  if (!i) return;
@@ -8186,9 +8186,9 @@ const Sr = (e, t = {}, n = {}) => {
8186
8186
  const qe = le(Object.assign(Object.assign({}, ze), { isVirtual: !0 }));
8187
8187
  qe.el || (qe.el = document.createElement("div")), te("createSlide", qe), Ee.push(qe);
8188
8188
  }
8189
- q.splice(ge === void 0 ? q.length : ge, 0, ...Ee), ce();
8189
+ Z.splice(ge === void 0 ? Z.length : ge, 0, ...Ee), ce();
8190
8190
  for (const ze of Ee) te("addSlide", ze), Ce(ze);
8191
- return fe(Z), Ee;
8191
+ return fe(q), Ee;
8192
8192
  }
8193
8193
  function le(ie) {
8194
8194
  return (Dt(ie) || ie instanceof HTMLElement) && (ie = { html: ie }), Object.assign({ index: -1, el: void 0, class: "", isVirtual: !0, dim: 0, pos: 0, offset: 0, html: "", src: "" }, ie);
@@ -8206,7 +8206,7 @@ const Sr = (e, t = {}, n = {}) => {
8206
8206
  if (ge.setAttribute("index", ie.index + ""), ge.parentElement !== w) {
8207
8207
  let Ee;
8208
8208
  vt(ge, m.classes.slide), vt(ge, ie.class), Ze(ie);
8209
- for (const ze of q) if (ze.index > ie.index) {
8209
+ for (const ze of Z) if (ze.index > ie.index) {
8210
8210
  Ee = ze.el;
8211
8211
  break;
8212
8212
  }
@@ -8220,8 +8220,8 @@ const Sr = (e, t = {}, n = {}) => {
8220
8220
  ge && (ge.remove(), re(ge), te("detachSlideEl", ie));
8221
8221
  }
8222
8222
  function ce() {
8223
- for (let ie = 0; ie < q.length; ie++) {
8224
- const ge = q[ie], Ee = ge.el;
8223
+ for (let ie = 0; ie < Z.length; ie++) {
8224
+ const ge = Z[ie], Ee = ge.el;
8225
8225
  Ee && (ge.index !== ie && re(Ee), Ee.setAttribute("index", `${ie}`)), ge.index = ie;
8226
8226
  }
8227
8227
  }
@@ -8420,7 +8420,7 @@ const Sr = (e, t = {}, n = {}) => {
8420
8420
  }
8421
8421
  w && je && (w.style.height = `${je}px`), [...Zl(w, `.${m.classes.slide}`)].forEach((We) => {
8422
8422
  un(We, m.classes.isSelected, ge.has(We));
8423
- const he = q[parseInt(We.getAttribute("index") || "-1")];
8423
+ const he = Z[parseInt(We.getAttribute("index") || "-1")];
8424
8424
  if (!he) return We.remove(), void re(We);
8425
8425
  const Te = j.has(he.index), Pe = A.indexOf(he) > -1;
8426
8426
  if (he.isVirtual && !Te && !Pe) return void $e(he);
@@ -8431,7 +8431,7 @@ const Sr = (e, t = {}, n = {}) => {
8431
8431
  }
8432
8432
  function yt() {
8433
8433
  x == null || x.removeEventListener("click", be), document.removeEventListener("mousemove", ae), j.clear(), r == null || r.disconnect(), r = void 0;
8434
- for (const ie of q) {
8434
+ for (const ie of Z) {
8435
8435
  let ge = ie.el;
8436
8436
  ge && Os(ge) && (ie.state = void 0, Me(ie), Fe(ie), ie.isVirtual ? ($e(ie), ie.el = void 0) : (re(ge), ge.style.transform = "", w && !w.contains(ge) && w.appendChild(ge)));
8437
8437
  }
@@ -8450,9 +8450,9 @@ const Sr = (e, t = {}, n = {}) => {
8450
8450
  var Ee;
8451
8451
  let ze = M;
8452
8452
  const qe = T, je = Xe(), We = i != null && i.isRunning() ? i.getEndValues().pos : M, he = je && Math.floor((We - (((Ee = S[0]) === null || Ee === void 0 ? void 0 : Ee.pos) || 0)) / je) || 0;
8453
- return W(ie, ge), fe(Z), K(), i && je && (qe === T && (ze -= he * je), ze === D ? M = D : i.spring({ clamp: !0, mass: 1, tension: 300, friction: 25, restDelta: 1, restSpeed: 1 }).from({ pos: ze }).to({ pos: D }).start()), at(), ut;
8453
+ return W(ie, ge), fe(q), K(), i && je && (qe === T && (ze -= he * je), ze === D ? M = D : i.spring({ clamp: !0, mass: 1, tension: 300, friction: 25, restDelta: 1, restSpeed: 1 }).from({ pos: ze }).to({ pos: D }).start()), at(), ut;
8454
8454
  }, canGoPrev: dt, canGoNext: Pt, destroy: function() {
8455
- return te("destroy"), window.removeEventListener("resize", se), yt(), J.clear(), x = null, S = [], q = [], m = Object.assign({}, Ts), y = {}, V = [], u = void 0, Z = "*", h = 2, ut;
8455
+ return te("destroy"), window.removeEventListener("resize", se), yt(), J.clear(), x = null, S = [], Z = [], m = Object.assign({}, Ts), y = {}, V = [], u = void 0, q = "*", h = 2, ut;
8456
8456
  }, emit: te, filter: function(ie = "*") {
8457
8457
  return fe(ie), K(), M = Lt(Y, M, R), at(), te("filter", ie), ut;
8458
8458
  }, getContainer: function() {
@@ -8506,7 +8506,7 @@ const Sr = (e, t = {}, n = {}) => {
8506
8506
  }, getPlugins: function() {
8507
8507
  return y;
8508
8508
  }, getPosition: st, getSlides: function() {
8509
- return q;
8509
+ return Z;
8510
8510
  }, getState: function() {
8511
8511
  return h;
8512
8512
  }, getTotalSlideDim: Xe, getTween: function() {
@@ -8543,11 +8543,11 @@ const Sr = (e, t = {}, n = {}) => {
8543
8543
  }, prev: function(ie = {}) {
8544
8544
  return et(T - 1, ie), ut;
8545
8545
  }, reInit: function(ie = {}, ge = {}) {
8546
- return yt(), h = 0, u = void 0, Z = "*", t = ie, p = ie, n = ge, se(), ut;
8546
+ return yt(), h = 0, u = void 0, q = "*", t = ie, p = ie, n = ge, se(), ut;
8547
8547
  }, remove: function(ie) {
8548
- ie === void 0 && (ie = q.length - 1);
8549
- const ge = q[ie];
8550
- return ge && (te("removeSlide", ge), ge.el && (re(ge.el), ge.el.remove(), ge.el = void 0), q.splice(ie, 1), fe(Z), K(), M = Lt(Y, M, R), at()), ut;
8548
+ ie === void 0 && (ie = Z.length - 1);
8549
+ const ge = Z[ie];
8550
+ return ge && (te("removeSlide", ge), ge.el && (re(ge.el), ge.el.remove(), ge.el = void 0), Z.splice(ie, 1), fe(q), K(), M = Lt(Y, M, R), at()), ut;
8551
8551
  }, setPosition: function(ie) {
8552
8552
  M = ie, ne(), at();
8553
8553
  }, showError: function(ie, ge) {
@@ -8898,15 +8898,15 @@ const Wu = { autoStart: !0, pauseOnHover: !0, showProgressbar: !0, timeout: 2e3
8898
8898
  return !1;
8899
8899
  }()) return;
8900
8900
  (function() {
8901
- var D, Y, R, Z;
8901
+ var D, Y, R, q;
8902
8902
  if (!e || (y(), !c("showProgressbar"))) return;
8903
- let q = c("progressbarParentEl");
8904
- if (!q && (!((D = e.getPlugins().Toolbar) === null || D === void 0) && D.isEnabled()) && (q = e.getContainer()), !q && ((Y = e.getPlugins().Toolbar) === null || Y === void 0 ? void 0 : Y.isEnabled()) !== !0) {
8905
- const j = ((R = e.getPages()[0]) === null || R === void 0 ? void 0 : R.slides) || [], A = ((Z = e.getPage()) === null || Z === void 0 ? void 0 : Z.slides) || [];
8906
- j.length === 1 && A.length === 1 && (q = A[0].el);
8903
+ let Z = c("progressbarParentEl");
8904
+ if (!Z && (!((D = e.getPlugins().Toolbar) === null || D === void 0) && D.isEnabled()) && (Z = e.getContainer()), !Z && ((Y = e.getPlugins().Toolbar) === null || Y === void 0 ? void 0 : Y.isEnabled()) !== !0) {
8905
+ const j = ((R = e.getPages()[0]) === null || R === void 0 ? void 0 : R.slides) || [], A = ((q = e.getPage()) === null || q === void 0 ? void 0 : q.slides) || [];
8906
+ j.length === 1 && A.length === 1 && (Z = A[0].el);
8907
8907
  }
8908
- if (q || (q = e.getViewport()), !q) return;
8909
- r = document.createElement("div"), vt(r, "f-progressbar"), q.prepend(r);
8908
+ if (Z || (Z = e.getViewport()), !Z) return;
8909
+ r = document.createElement("div"), vt(r, "f-progressbar"), Z.prepend(r);
8910
8910
  const V = c("timeout") || 1e3;
8911
8911
  r.style.animationDuration = `${V}ms`;
8912
8912
  })();
@@ -9080,7 +9080,7 @@ const Av = () => {
9080
9080
  }
9081
9081
  function M() {
9082
9082
  var A;
9083
- p() && (_(), e == null || e.on("addSlide", Y), e == null || e.on("removeSlide", R), e == null || e.on("click", Z), e == null || e.on("refresh", q), (A = e == null ? void 0 : e.getGestures()) === null || A === void 0 || A.on("start", C), V(!0));
9083
+ p() && (_(), e == null || e.on("addSlide", Y), e == null || e.on("removeSlide", R), e == null || e.on("click", q), e == null || e.on("refresh", Z), (A = e == null ? void 0 : e.getGestures()) === null || A === void 0 || A.on("start", C), V(!0));
9084
9084
  }
9085
9085
  function C() {
9086
9086
  var A, S;
@@ -9117,12 +9117,12 @@ const Av = () => {
9117
9117
  var z;
9118
9118
  t ? t.remove(S.index) : a && ((z = a.querySelector(`[index="${S.index}"]`)) === null || z === void 0 || z.remove());
9119
9119
  }
9120
- function Z(A, S) {
9120
+ function q(A, S) {
9121
9121
  var z;
9122
9122
  const O = S.target;
9123
9123
  S.defaultPrevented || ((z = O == null ? void 0 : O.dataset) === null || z === void 0 ? void 0 : z.thumbsAction) !== "toggle" || (n || (b(!0), k(), _()), n && n.classList.toggle("is-hidden"));
9124
9124
  }
9125
- function q() {
9125
+ function Z() {
9126
9126
  V();
9127
9127
  }
9128
9128
  function V(A = !1) {
@@ -9153,7 +9153,7 @@ const Av = () => {
9153
9153
  Wl = S, e = A, e.on("ready", M), e.on("initSlides", $), e.on("change", D);
9154
9154
  }, destroy: function() {
9155
9155
  var A, S;
9156
- y() && (e == null || e.emit("thumbs:destroy")), e == null || e.off("ready", M), e == null || e.off("initSlides", $), e == null || e.off("change", D), e == null || e.off("render", T), e == null || e.off("addSlide", Y), e == null || e.off("click", Z), e == null || e.off("refresh", q), (A = e == null ? void 0 : e.getGestures()) === null || A === void 0 || A.off("start", C), (S = e == null ? void 0 : e.getContainer()) === null || S === void 0 || S.classList.remove("has-thumbs"), e = void 0, t == null || t.destroy(), t = void 0, n == null || n.remove(), n = void 0;
9156
+ y() && (e == null || e.emit("thumbs:destroy")), e == null || e.off("ready", M), e == null || e.off("initSlides", $), e == null || e.off("change", D), e == null || e.off("render", T), e == null || e.off("addSlide", Y), e == null || e.off("click", q), e == null || e.off("refresh", Z), (A = e == null ? void 0 : e.getGestures()) === null || A === void 0 || A.off("start", C), (S = e == null ? void 0 : e.getContainer()) === null || S === void 0 || S.classList.remove("has-thumbs"), e = void 0, t == null || t.destroy(), t = void 0, n == null || n.remove(), n = void 0;
9157
9157
  }, getCarousel: function() {
9158
9158
  return t;
9159
9159
  }, getContainer: function() {
@@ -9700,10 +9700,10 @@ const nd = "with-fancybox", zv = () => {
9700
9700
  const le = b("sync");
9701
9701
  a && le && ((W = le.getTween()) === null || W === void 0 || W.start()), G(te());
9702
9702
  }
9703
- function Z() {
9703
+ function q() {
9704
9704
  a != null && a.canGoNext() ? fe() : de();
9705
9705
  }
9706
- function q(W, le) {
9706
+ function Z(W, le) {
9707
9707
  I(le), G(le);
9708
9708
  }
9709
9709
  function V() {
@@ -9967,7 +9967,7 @@ const nd = "with-fancybox", zv = () => {
9967
9967
  } }, Fullscreen: { el: t }, Toolbar: { absolute: !0, items: { counter: { tpl: '<div class="f-counter"><span data-fancybox-page></span>/<span data-fancybox-pages></span></div>' } }, display: { left: ["counter"], right: ["toggleFull", "autoplay", "fullscreen", "thumbs", "close"] } }, Video: { autoplay: !0 }, Thumbs: { minCount: 2, Carousel: { classes: { container: "fancybox__thumbs" } } }, classes: { container: "fancybox__carousel", viewport: "fancybox__viewport", slide: "fancybox__slide" }, spinnerTpl: '<div class="f-spinner" data-fancybox-close></div>', dragFree: !1, slidesPerPage: 1, plugins: { Sync: R3, Arrows: Cv, Lazyload: I3, Zoomable: _v, Html: Ev, Video: $v, Autoplay: Mv, Fullscreen: Lv, Thumbs: Av, Toolbar: N3 } }, b("Carousel") || {}, { slides: y, enabled: !0, initialPage: b("startIndex") || 0, l10n: b("l10n") });
9968
9968
  a = Sr(n, we), $("initCarousel", a), a.on("*", ($e, ce, ...K) => {
9969
9969
  $(`Carousel.${ce}`, $e, ...K);
9970
- }), a.on("attachSlideEl", C), a.on("detachSlideEl", T), a.on("contentReady", q), a.on("ready", R), a.on("change", Y), a.on("settle", Z), a.on("thumbs:ready", V), a.on("thumbs:destroy", V), a.init();
9970
+ }), a.on("attachSlideEl", C), a.on("detachSlideEl", T), a.on("contentReady", Z), a.on("ready", R), a.on("change", Y), a.on("settle", q), a.on("thumbs:ready", V), a.on("thumbs:destroy", V), a.init();
9971
9971
  }(), e && t) {
9972
9972
  if (b("closeExisting")) for (const [we, $e] of ya.entries()) we !== p && $e.close();
9973
9973
  b("fadeEffect") ? (setTimeout(() => {
@@ -10842,7 +10842,7 @@ const Ot = { Plugins: { Hash: M1 }, version: "6.1.3", openers: /* @__PURE__ */ n
10842
10842
  "flex w-full items-center justify-between rounded-md p-2 px-1"
10843
10843
  ]),
10844
10844
  disabled: b(R) || !e.multiple && w(R),
10845
- onClick: (Z) => k(R)
10845
+ onClick: (q) => k(R)
10846
10846
  }, [
10847
10847
  o("div", f9, [
10848
10848
  pe(ps, {
@@ -10859,9 +10859,9 @@ const Ot = { Plugins: { Hash: M1 }, version: "6.1.3", openers: /* @__PURE__ */ n
10859
10859
  o("span", null, N(e.type && R.type !== e.type ? "Não é possível utilizar esse tipo de Instância neste recurso" : g(R) ? "Esse contato ainda não iniciou uma conversa pelo Webchat desta instância" : e.webhooks === !0 ? "Essa instância está com o Atendimento desabilitado" : "Essa aplicação é somente para instâncias sem atendimento habilitado."), 1)
10860
10860
  ]),
10861
10861
  default: Ae(() => {
10862
- var Z;
10862
+ var q;
10863
10863
  return [
10864
- e.type && R.type !== e.type || e.webhooks !== void 0 && e.webhooks !== ((Z = R.config) == null ? void 0 : Z.webhooks) || g(R) ? (l(), f("svg", h9, [...T[7] || (T[7] = [
10864
+ e.type && R.type !== e.type || e.webhooks !== void 0 && e.webhooks !== ((q = R.config) == null ? void 0 : q.webhooks) || g(R) ? (l(), f("svg", h9, [...T[7] || (T[7] = [
10865
10865
  o("path", {
10866
10866
  "fill-rule": "evenodd",
10867
10867
  d: "M8 10V7a4 4 0 1 1 8 0v3h1a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h1Zm2-3a2 2 0 1 1 4 0v3h-4V7Zm2 6a1 1 0 0 1 1 1v3a1 1 0 1 1-2 0v-3a1 1 0 0 1 1-1Z",
@@ -11159,28 +11159,28 @@ const Ot = { Plugins: { Hash: M1 }, version: "6.1.3", openers: /* @__PURE__ */ n
11159
11159
  }
11160
11160
  function g() {
11161
11161
  if (!i.value) return;
11162
- const C = window.innerWidth, T = window.innerHeight, D = n.viewportPadding, Y = w(), R = r.value ? r.value.getBoundingClientRect() : { width: 320, height: 200 }, Z = n.placement === "auto" ? ["bottom", "top", "right", "left"] : [n.placement];
11163
- let q = Z[0], V = 0, j = 0;
11162
+ const C = window.innerWidth, T = window.innerHeight, D = n.viewportPadding, Y = w(), R = r.value ? r.value.getBoundingClientRect() : { width: 320, height: 200 }, q = n.placement === "auto" ? ["bottom", "top", "right", "left"] : [n.placement];
11163
+ let Z = q[0], V = 0, j = 0;
11164
11164
  const A = Y.left + Y.width / 2 - R.width / 2, S = Y.top + Y.height / 2 - R.height / 2, z = Y.left, O = Y.left + Y.width - R.width, I = Y.top, B = Y.top + Y.height - R.height;
11165
- for (const G of Z) {
11165
+ for (const G of q) {
11166
11166
  if (G === "bottom" && (j = Y.bottom + n.offset, V = n.align === "start" ? z : n.align === "end" ? O : A, j + R.height + D <= T)) {
11167
- q = "bottom";
11167
+ Z = "bottom";
11168
11168
  break;
11169
11169
  }
11170
11170
  if (G === "top" && (j = Y.top - R.height - n.offset, V = n.align === "start" ? z : n.align === "end" ? O : A, j >= D)) {
11171
- q = "top";
11171
+ Z = "top";
11172
11172
  break;
11173
11173
  }
11174
11174
  if (G === "right" && (V = Y.right + n.offset, j = n.align === "start" ? I : n.align === "end" ? B : S, V + R.width + D <= C)) {
11175
- q = "right";
11175
+ Z = "right";
11176
11176
  break;
11177
11177
  }
11178
11178
  if (G === "left" && (V = Y.left - R.width - n.offset, j = n.align === "start" ? I : n.align === "end" ? B : S, V >= D)) {
11179
- q = "left";
11179
+ Z = "left";
11180
11180
  break;
11181
11181
  }
11182
11182
  }
11183
- V = Math.min(Math.max(D, V), C - R.width - D), j = Math.min(Math.max(D, j), T - R.height - D), c.value = { left: V, top: j, p: q };
11183
+ V = Math.min(Math.max(D, V), C - R.width - D), j = Math.min(Math.max(D, j), T - R.height - D), c.value = { left: V, top: j, p: Z };
11184
11184
  }
11185
11185
  function b() {
11186
11186
  k();
@@ -12382,11 +12382,11 @@ const Ta = /* @__PURE__ */ new Map(), X3 = ca("scheduled", {
12382
12382
  var x, w, g, b, k, _, $, M, C, T, D, Y, R;
12383
12383
  let n = null;
12384
12384
  if ((x = t == null ? void 0 : t.schedule) != null && x.time) {
12385
- const Z = t.schedule.time, q = /^(\d{4})-(\d{2})-(\d{2})(?:[ T](\d{2}):(\d{2}))?$/.exec(
12386
- Z
12385
+ const q = t.schedule.time, Z = /^(\d{4})-(\d{2})-(\d{2})(?:[ T](\d{2}):(\d{2}))?$/.exec(
12386
+ q
12387
12387
  );
12388
- if (q) {
12389
- const [, V, j, A, S = "00", z = "00"] = q;
12388
+ if (Z) {
12389
+ const [, V, j, A, S = "00", z = "00"] = Z;
12390
12390
  n = new Date(
12391
12391
  Number(V),
12392
12392
  Number(j) - 1,
@@ -12397,35 +12397,35 @@ const Ta = /* @__PURE__ */ new Map(), X3 = ca("scheduled", {
12397
12397
  0
12398
12398
  );
12399
12399
  } else {
12400
- const V = typeof Z == "string" && !Z.includes("T") ? Z.replace(" ", "T") : Z;
12400
+ const V = typeof q == "string" && !q.includes("T") ? q.replace(" ", "T") : q;
12401
12401
  n = new Date(V);
12402
12402
  }
12403
12403
  }
12404
- const a = (Z) => {
12405
- var q, V, j, A;
12406
- return n instanceof Date && !isNaN(n) && (Z.date = n, Z.time = cr(n)), ((V = (q = t == null ? void 0 : t.message) == null ? void 0 : q[0]) == null ? void 0 : V.content) != null && (Z.content = t.message[0].content), Z.raw = Z.raw || { id: e }, Z.raw.params = Z.raw.params || {}, t != null && t.schedule && (Z.raw.params.schedule = {
12407
- ...Z.raw.params.schedule || {},
12404
+ const a = (q) => {
12405
+ var Z, V, j, A;
12406
+ return n instanceof Date && !isNaN(n) && (q.date = n, q.time = cr(n)), ((V = (Z = t == null ? void 0 : t.message) == null ? void 0 : Z[0]) == null ? void 0 : V.content) != null && (q.content = t.message[0].content), q.raw = q.raw || { id: e }, q.raw.params = q.raw.params || {}, t != null && t.schedule && (q.raw.params.schedule = {
12407
+ ...q.raw.params.schedule || {},
12408
12408
  ...t.schedule
12409
- }), t != null && t.scheduled_by && (Z.raw.params.scheduled_by = t.scheduled_by), t.department && (Z.raw.params.department = t.department), t != null && t.message && (Z.raw.params.message = t.message), Object.prototype.hasOwnProperty.call(t || {}, "chat_id") && (Z.chatId = t.chat_id ?? Z.chatId ?? ""), t != null && t.entity && (Z.raw.params.entity = {
12410
- ...Z.raw.params.entity || {},
12409
+ }), t != null && t.scheduled_by && (q.raw.params.scheduled_by = t.scheduled_by), t.department && (q.raw.params.department = t.department), t != null && t.message && (q.raw.params.message = t.message), Object.prototype.hasOwnProperty.call(t || {}, "chat_id") && (q.chatId = t.chat_id ?? q.chatId ?? ""), t != null && t.entity && (q.raw.params.entity = {
12410
+ ...q.raw.params.entity || {},
12411
12411
  ...t.entity
12412
- }, Object.prototype.hasOwnProperty.call(t.entity, "name") && (Z.contactName = t.entity.name ?? Z.contactName ?? "Cliente"), Object.prototype.hasOwnProperty.call(t.entity, "photo") && (Z.contactPhoto = t.entity.photo ?? Z.contactPhoto ?? null, t.entity.photo && (Z.photo = t.entity.photo))), t != null && t.info && (Z.raw.params.info = {
12413
- ...Z.raw.params.info || {},
12412
+ }, Object.prototype.hasOwnProperty.call(t.entity, "name") && (q.contactName = t.entity.name ?? q.contactName ?? "Cliente"), Object.prototype.hasOwnProperty.call(t.entity, "photo") && (q.contactPhoto = t.entity.photo ?? q.contactPhoto ?? null, t.entity.photo && (q.photo = t.entity.photo))), t != null && t.info && (q.raw.params.info = {
12413
+ ...q.raw.params.info || {},
12414
12414
  ...t.info
12415
- }, (j = t.info) != null && j.department && Object.prototype.hasOwnProperty.call(t.info.department, "name") && (Z.departmentName = t.info.department.name ?? Z.departmentName), (A = t.info) != null && A.instance && (Object.prototype.hasOwnProperty.call(t.info.instance, "name") && (Z.instanceName = t.info.instance.name ?? Z.instanceName), Object.prototype.hasOwnProperty.call(
12415
+ }, (j = t.info) != null && j.department && Object.prototype.hasOwnProperty.call(t.info.department, "name") && (q.departmentName = t.info.department.name ?? q.departmentName), (A = t.info) != null && A.instance && (Object.prototype.hasOwnProperty.call(t.info.instance, "name") && (q.instanceName = t.info.instance.name ?? q.instanceName), Object.prototype.hasOwnProperty.call(
12416
12416
  t.info.instance,
12417
12417
  "last_instance_status"
12418
- ) && (Z.instanceStatus = t.info.instance.last_instance_status ?? Z.instanceStatus))), Object.prototype.hasOwnProperty.call(t || {}, "title") ? Z.title = t.title ?? Z.title ?? lr(Z.function) : Z.title = Z.title || lr(Z.function), Object.prototype.hasOwnProperty.call(t || {}, "function") ? (Z.function = t.function ?? Z.function ?? "scheduled_messages", Z.type = t.function ?? Z.type ?? "scheduled_messages") : (Z.function = Z.function || "scheduled_messages", Z.type = Z.type || "scheduled_messages"), Z;
12418
+ ) && (q.instanceStatus = t.info.instance.last_instance_status ?? q.instanceStatus))), Object.prototype.hasOwnProperty.call(t || {}, "title") ? q.title = t.title ?? q.title ?? lr(q.function) : q.title = q.title || lr(q.function), Object.prototype.hasOwnProperty.call(t || {}, "function") ? (q.function = t.function ?? q.function ?? "scheduled_messages", q.type = t.function ?? q.type ?? "scheduled_messages") : (q.function = q.function || "scheduled_messages", q.type = q.type || "scheduled_messages"), q;
12419
12419
  }, i = this.findEventById(e);
12420
12420
  if (!i) {
12421
- const Z = n instanceof Date && !isNaN(n) ? n : (() => {
12421
+ const q = n instanceof Date && !isNaN(n) ? n : (() => {
12422
12422
  var O;
12423
12423
  const S = (O = t == null ? void 0 : t.schedule) == null ? void 0 : O.time, z = typeof S == "string" && !S.includes("T") ? S.replace(" ", "T") : S;
12424
12424
  return ($o == null ? void 0 : $o(z)) || (z ? new Date(z) : /* @__PURE__ */ new Date());
12425
- })(), q = ((t == null ? void 0 : t.function) || "scheduled_messages") === "attendant_reminder", V = a({
12425
+ })(), Z = ((t == null ? void 0 : t.function) || "scheduled_messages") === "attendant_reminder", V = a({
12426
12426
  id: e,
12427
- date: Z,
12428
- time: cr(Z),
12427
+ date: q,
12428
+ time: cr(q),
12429
12429
  title: (t == null ? void 0 : t.title) || lr((t == null ? void 0 : t.function) || "scheduled_messages"),
12430
12430
  type: (t == null ? void 0 : t.function) || "scheduled_messages",
12431
12431
  status: (t == null ? void 0 : t.status) || "true",
@@ -12433,9 +12433,9 @@ const Ta = /* @__PURE__ */ new Map(), X3 = ca("scheduled", {
12433
12433
  function: (t == null ? void 0 : t.function) || "scheduled_messages",
12434
12434
  content: ((g = (w = t == null ? void 0 : t.message) == null ? void 0 : w[0]) == null ? void 0 : g.content) ?? "",
12435
12435
  raw: { id: e, params: t },
12436
- contactName: q ? "" : ((b = t == null ? void 0 : t.entity) == null ? void 0 : b.name) ?? "Cliente",
12436
+ contactName: Z ? "" : ((b = t == null ? void 0 : t.entity) == null ? void 0 : b.name) ?? "Cliente",
12437
12437
  contactPhoto: ((k = t == null ? void 0 : t.entity) == null ? void 0 : k.photo) ?? null,
12438
- departmentName: q ? "" : (($ = (_ = t == null ? void 0 : t.info) == null ? void 0 : _.department) == null ? void 0 : $.name) ?? null,
12438
+ departmentName: Z ? "" : (($ = (_ = t == null ? void 0 : t.info) == null ? void 0 : _.department) == null ? void 0 : $.name) ?? null,
12439
12439
  departmentId: ((C = (M = t == null ? void 0 : t.info) == null ? void 0 : M.department) == null ? void 0 : C.id) ?? null,
12440
12440
  instanceName: ((D = (T = t == null ? void 0 : t.info) == null ? void 0 : T.instance) == null ? void 0 : D.name) ?? null,
12441
12441
  instanceStatus: ((R = (Y = t == null ? void 0 : t.info) == null ? void 0 : Y.instance) == null ? void 0 : R.last_instance_status) ?? null,
@@ -12449,14 +12449,14 @@ const Ta = /* @__PURE__ */ new Map(), X3 = ca("scheduled", {
12449
12449
  }
12450
12450
  const { ym: r, idx: c } = i, u = this.monthCache[r] || [], h = { ...u[c] }, p = a({ ...h }), m = p.date instanceof Date ? p.date : h.date, y = Bs(m);
12451
12451
  if (y === r) {
12452
- const Z = [...u];
12453
- Z.splice(c, 1, p), Z.sort((q, V) => q.date - V.date), this._setMonth(r, Z);
12452
+ const q = [...u];
12453
+ q.splice(c, 1, p), q.sort((Z, V) => Z.date - V.date), this._setMonth(r, q);
12454
12454
  } else {
12455
- const Z = u.slice(0, c).concat(u.slice(c + 1)), q = this.monthCache[y] ? [...this.monthCache[y], p] : [p];
12456
- q.sort((V, j) => V.date - j.date), this.monthCache = {
12455
+ const q = u.slice(0, c).concat(u.slice(c + 1)), Z = this.monthCache[y] ? [...this.monthCache[y], p] : [p];
12456
+ Z.sort((V, j) => V.date - j.date), this.monthCache = {
12457
12457
  ...this.monthCache,
12458
- [r]: Z,
12459
- [y]: q
12458
+ [r]: q,
12459
+ [y]: Z
12460
12460
  };
12461
12461
  }
12462
12462
  },
@@ -12764,7 +12764,7 @@ const Ta = /* @__PURE__ */ new Map(), X3 = ca("scheduled", {
12764
12764
  o("button", {
12765
12765
  disabled: r.value,
12766
12766
  class: "group relative inline-flex items-center justify-center w-full overflow-hidden rounded bg-red-500 px-5 py-1 text-xs text-white transition-all duration-300 ease-out hover:bg-gradient-to-r hover:from-red-500 hover:to-red-400 hover:ring-2 hover:ring-red-400 hover:ring-offset-2",
12767
- onClick: [Y, (Z) => c(g.id)]
12767
+ onClick: [Y, (q) => c(g.id)]
12768
12768
  }, [
12769
12769
  y[11] || (y[11] = o("span", { class: "ease absolute right-0 -mt-12 h-32 w-8 translate-x-12 rotate-12 bg-white opacity-10 transition-all duration-1000 group-hover:-translate-x-40" }, null, -1)),
12770
12770
  r.value ? (l(), f("div", Fy)) : (l(), f("span", Oy, "Apagar lembrete"))
@@ -14543,29 +14543,29 @@ const zb = { class: "itemc-head" }, Fb = {
14543
14543
  var V, j, A;
14544
14544
  if (!R) return;
14545
14545
  await bt();
14546
- const Z = (V = r.value) != null && V.id ? String(r.value.id) : null;
14547
- c.onlyMine = !!Z && String(((j = n.filters) == null ? void 0 : j.scheduled_by) ?? "") === Z;
14548
- const q = (A = n.filters) == null ? void 0 : A.status;
14549
- c.status = q === !0 || q === !1 ? q : null, k();
14546
+ const q = (V = r.value) != null && V.id ? String(r.value.id) : null;
14547
+ c.onlyMine = !!q && String(((j = n.filters) == null ? void 0 : j.scheduled_by) ?? "") === q;
14548
+ const Z = (A = n.filters) == null ? void 0 : A.status;
14549
+ c.status = Z === !0 || Z === !1 ? Z : null, k();
14550
14550
  },
14551
14551
  { immediate: !1 }
14552
14552
  );
14553
- function u(R, Z) {
14553
+ function u(R, q) {
14554
14554
  if (!R) return {};
14555
- const { [Z]: q, ...V } = R;
14555
+ const { [q]: Z, ...V } = R;
14556
14556
  return V;
14557
14557
  }
14558
14558
  function h(R) {
14559
- var q;
14559
+ var Z;
14560
14560
  c.onlyMine = !!R.target.checked;
14561
- const Z = (q = r.value) != null && q.id ? String(r.value.id) : null;
14562
- c.onlyMine && Z ? a("update:filters", { ...n.filters, scheduled_by: Z }) : a("update:filters", u(n.filters, "scheduled_by"));
14561
+ const q = (Z = r.value) != null && Z.id ? String(r.value.id) : null;
14562
+ c.onlyMine && q ? a("update:filters", { ...n.filters, scheduled_by: q }) : a("update:filters", u(n.filters, "scheduled_by"));
14563
14563
  }
14564
14564
  function p(R) {
14565
14565
  if (c.status === R) {
14566
14566
  c.status = null;
14567
- const Z = u(n.filters, "status");
14568
- a("update:filters", Z);
14567
+ const q = u(n.filters, "status");
14568
+ a("update:filters", q);
14569
14569
  } else
14570
14570
  c.status = R, a("update:filters", { ...n.filters, status: R });
14571
14571
  }
@@ -14577,24 +14577,24 @@ const zb = { class: "itemc-head" }, Fb = {
14577
14577
  function w() {
14578
14578
  const R = n.anchorEl instanceof Element ? n.anchorEl : null;
14579
14579
  if (R != null && R.getBoundingClientRect) return R.getBoundingClientRect();
14580
- const Z = window.innerWidth / 2, q = window.innerHeight / 3;
14581
- return { left: Z, right: Z, top: q, bottom: q, width: 0, height: 0 };
14580
+ const q = window.innerWidth / 2, Z = window.innerHeight / 3;
14581
+ return { left: q, right: q, top: Z, bottom: Z, width: 0, height: 0 };
14582
14582
  }
14583
- function g(R, Z, q, V) {
14583
+ function g(R, q, Z, V) {
14584
14584
  return {
14585
- left: Math.max(8, Math.min(R, window.innerWidth - q - 8)),
14586
- top: Math.max(8, Math.min(Z, window.innerHeight - V - 8))
14585
+ left: Math.max(8, Math.min(R, window.innerWidth - Z - 8)),
14586
+ top: Math.max(8, Math.min(q, window.innerHeight - V - 8))
14587
14587
  };
14588
14588
  }
14589
14589
  function b() {
14590
- const R = w(), Z = m.value, q = (Z == null ? void 0 : Z.offsetWidth) ?? 300, V = (Z == null ? void 0 : Z.offsetHeight) ?? 220;
14590
+ const R = w(), q = m.value, Z = (q == null ? void 0 : q.offsetWidth) ?? 300, V = (q == null ? void 0 : q.offsetHeight) ?? 220;
14591
14591
  let j = R.bottom + n.offset, A;
14592
- if (n.align === "center" ? A = R.left + R.width / 2 - q / 2 : n.align === "end" ? A = R.right - q : A = R.left, j + V > window.innerHeight - 4) {
14592
+ if (n.align === "center" ? A = R.left + R.width / 2 - Z / 2 : n.align === "end" ? A = R.right - Z : A = R.left, j + V > window.innerHeight - 4) {
14593
14593
  const z = R.top - V - n.offset;
14594
14594
  z >= 4 ? (j = z, y.value.placed = "top") : y.value.placed = "bottom";
14595
14595
  } else
14596
14596
  y.value.placed = "bottom";
14597
- const S = g(A, j, q, V);
14597
+ const S = g(A, j, Z, V);
14598
14598
  y.value = { left: S.left, top: S.top, placed: y.value.placed };
14599
14599
  }
14600
14600
  function k() {
@@ -14604,32 +14604,32 @@ const zb = { class: "itemc-head" }, Fb = {
14604
14604
  function C() {
14605
14605
  T(), M = [window];
14606
14606
  const R = n.anchorEl instanceof Element ? n.anchorEl : null;
14607
- let Z = R == null ? void 0 : R.parentElement;
14608
- for (; Z && Z !== document.body; ) {
14609
- const q = getComputedStyle(Z);
14610
- /(auto|scroll)/.test(q.overflow + q.overflowY + q.overflowX) && M.push(Z), Z = Z.parentElement;
14607
+ let q = R == null ? void 0 : R.parentElement;
14608
+ for (; q && q !== document.body; ) {
14609
+ const Z = getComputedStyle(q);
14610
+ /(auto|scroll)/.test(Z.overflow + Z.overflowY + Z.overflowX) && M.push(q), q = q.parentElement;
14611
14611
  }
14612
14612
  M.forEach(
14613
- (q) => q.addEventListener("scroll", k, { passive: !0 })
14613
+ (Z) => Z.addEventListener("scroll", k, { passive: !0 })
14614
14614
  );
14615
14615
  }
14616
14616
  function T() {
14617
14617
  M.forEach((R) => {
14618
- var Z;
14619
- return (Z = R.removeEventListener) == null ? void 0 : Z.call(R, "scroll", k);
14618
+ var q;
14619
+ return (q = R.removeEventListener) == null ? void 0 : q.call(R, "scroll", k);
14620
14620
  }), M = [];
14621
14621
  }
14622
14622
  Ke(
14623
14623
  () => n.open,
14624
14624
  async (R) => {
14625
- var q, V, j, A;
14625
+ var Z, V, j, A;
14626
14626
  if (!R) {
14627
- T(), (q = _ == null ? void 0 : _.disconnect) == null || q.call(_), (V = $ == null ? void 0 : $.disconnect) == null || V.call($);
14627
+ T(), (Z = _ == null ? void 0 : _.disconnect) == null || Z.call(_), (V = $ == null ? void 0 : $.disconnect) == null || V.call($);
14628
14628
  return;
14629
14629
  }
14630
14630
  await bt(), k(), C(), (j = _ == null ? void 0 : _.disconnect) == null || j.call(_), _ = new ResizeObserver(k), _.observe(document.body), (A = $ == null ? void 0 : $.disconnect) == null || A.call($);
14631
- const Z = n.anchorEl instanceof Element ? n.anchorEl : null;
14632
- Z && ($ = new ResizeObserver(k), $.observe(Z)), window.addEventListener("resize", k);
14631
+ const q = n.anchorEl instanceof Element ? n.anchorEl : null;
14632
+ q && ($ = new ResizeObserver(k), $.observe(q)), window.addEventListener("resize", k);
14633
14633
  }
14634
14634
  ), Ke(
14635
14635
  () => n.anchorEl,
@@ -14642,17 +14642,17 @@ const zb = { class: "itemc-head" }, Fb = {
14642
14642
  }
14643
14643
  function Y(R) {
14644
14644
  if (!n.open) return;
14645
- const Z = R.target, q = m.value;
14646
- if (q && q.contains(Z)) return;
14645
+ const q = R.target, Z = m.value;
14646
+ if (Z && Z.contains(q)) return;
14647
14647
  const V = n.anchorEl instanceof Element ? n.anchorEl : null;
14648
- V && V.contains && V.contains(Z) || a("close");
14648
+ V && V.contains && V.contains(q) || a("close");
14649
14649
  }
14650
14650
  return gt(() => {
14651
14651
  document.addEventListener("pointerdown", Y, !0), window.addEventListener("keydown", D);
14652
14652
  }), Bt(() => {
14653
- var R, Z;
14654
- document.removeEventListener("pointerdown", Y, !0), window.removeEventListener("keydown", D), T(), (R = _ == null ? void 0 : _.disconnect) == null || R.call(_), (Z = $ == null ? void 0 : $.disconnect) == null || Z.call($);
14655
- }), (R, Z) => (l(), _e(Mt, {
14653
+ var R, q;
14654
+ document.removeEventListener("pointerdown", Y, !0), window.removeEventListener("keydown", D), T(), (R = _ == null ? void 0 : _.disconnect) == null || R.call(_), (q = $ == null ? void 0 : $.disconnect) == null || q.call($);
14655
+ }), (R, q) => (l(), _e(Mt, {
14656
14656
  name: "cpk-layer",
14657
14657
  appear: ""
14658
14658
  }, {
@@ -14660,7 +14660,7 @@ const zb = { class: "itemc-head" }, Fb = {
14660
14660
  e.open ? (l(), f("div", {
14661
14661
  key: 0,
14662
14662
  class: "cpk-popover-layer",
14663
- onMousedown: Z[4] || (Z[4] = ct((q) => R.$emit("close"), ["self"]))
14663
+ onMousedown: q[4] || (q[4] = ct((Z) => R.$emit("close"), ["self"]))
14664
14664
  }, [
14665
14665
  pe(Mt, {
14666
14666
  name: "cpk-card",
@@ -14677,15 +14677,15 @@ const zb = { class: "itemc-head" }, Fb = {
14677
14677
  "aria-label": "Filtro de eventos"
14678
14678
  }, [
14679
14679
  o("div", Ew, [
14680
- Z[5] || (Z[5] = o("div", {
14680
+ q[5] || (q[5] = o("div", {
14681
14681
  class: "cpk-popover__icon",
14682
14682
  "aria-hidden": "true"
14683
14683
  }, "⚙", -1)),
14684
- Z[6] || (Z[6] = o("h3", { class: "cpk-popover__title" }, "Filtros", -1)),
14684
+ q[6] || (q[6] = o("h3", { class: "cpk-popover__title" }, "Filtros", -1)),
14685
14685
  o("button", {
14686
14686
  class: "cpk-popover__close",
14687
14687
  type: "button",
14688
- onClick: Z[0] || (Z[0] = (q) => R.$emit("close")),
14688
+ onClick: q[0] || (q[0] = (Z) => R.$emit("close")),
14689
14689
  "aria-label": "Fechar"
14690
14690
  }, " × ")
14691
14691
  ]),
@@ -14695,13 +14695,13 @@ const zb = { class: "itemc-head" }, Fb = {
14695
14695
  class: "switch",
14696
14696
  type: "checkbox",
14697
14697
  checked: c.onlyMine,
14698
- onChange: Z[1] || (Z[1] = (q) => h(q)),
14698
+ onChange: q[1] || (q[1] = (Z) => h(Z)),
14699
14699
  "aria-label": "Exibir somente meus eventos"
14700
14700
  }, null, 40, Pw),
14701
- Z[7] || (Z[7] = o("span", { class: "label-cpk" }, "Exibir somente meus eventos", -1))
14701
+ q[7] || (q[7] = o("span", { class: "label-cpk" }, "Exibir somente meus eventos", -1))
14702
14702
  ]),
14703
14703
  o("div", Tw, [
14704
- Z[9] || (Z[9] = o("span", {
14704
+ q[9] || (q[9] = o("span", {
14705
14705
  class: "status-icon",
14706
14706
  "aria-hidden": "true"
14707
14707
  }, [
@@ -14722,7 +14722,7 @@ const zb = { class: "itemc-head" }, Fb = {
14722
14722
  ])
14723
14723
  ], -1)),
14724
14724
  o("div", Bw, [
14725
- Z[8] || (Z[8] = o("div", { class: "label-cpk" }, [
14725
+ q[8] || (q[8] = o("div", { class: "label-cpk" }, [
14726
14726
  Ie(" Status "),
14727
14727
  o("span", {
14728
14728
  class: "sched-pop",
@@ -14765,13 +14765,13 @@ const zb = { class: "itemc-head" }, Fb = {
14765
14765
  o("button", {
14766
14766
  type: "button",
14767
14767
  class: U(["cyber-button cyber-button--xs btn-ghost", c.status === !0 ? "is-active" : ""]),
14768
- onClick: Z[2] || (Z[2] = (q) => p(!0)),
14768
+ onClick: q[2] || (q[2] = (Z) => p(!0)),
14769
14769
  "aria-pressed": "state.status === true"
14770
14770
  }, " Ativos ", 2),
14771
14771
  o("button", {
14772
14772
  type: "button",
14773
14773
  class: U(["cyber-button cyber-button--xs btn-ghost", c.status === !1 ? "is-active" : ""]),
14774
- onClick: Z[3] || (Z[3] = (q) => p(!1)),
14774
+ onClick: q[3] || (q[3] = (Z) => p(!1)),
14775
14775
  "aria-pressed": "state.status === false"
14776
14776
  }, " Executados ", 2)
14777
14777
  ])
@@ -14869,17 +14869,17 @@ const zb = { class: "itemc-head" }, Fb = {
14869
14869
  function R(he) {
14870
14870
  return new Date(he.getFullYear(), he.getMonth(), 1).getDay();
14871
14871
  }
14872
- function Z(he, Te) {
14872
+ function q(he, Te) {
14873
14873
  return he.getFullYear() === Te.getFullYear() && he.getMonth() === Te.getMonth();
14874
14874
  }
14875
- function q(he) {
14875
+ function Z(he) {
14876
14876
  return Yl(he, r);
14877
14877
  }
14878
14878
  function V(he) {
14879
14879
  return Yl(he, u.value);
14880
14880
  }
14881
14881
  function j(he) {
14882
- u.value = new Date(he.getFullYear(), he.getMonth(), he.getDate()), Z(he, c.value) || (c.value = new Date(he.getFullYear(), he.getMonth(), 1));
14882
+ u.value = new Date(he.getFullYear(), he.getMonth(), he.getDate()), q(he, c.value) || (c.value = new Date(he.getFullYear(), he.getMonth(), 1));
14883
14883
  }
14884
14884
  function A() {
14885
14885
  c.value = new Date(
@@ -15160,9 +15160,9 @@ const zb = { class: "itemc-head" }, Fb = {
15160
15160
  "month-days": xe.value,
15161
15161
  "view-date": c.value,
15162
15162
  "is-compact": dt.value,
15163
- "is-same-month-fn": Z,
15163
+ "is-same-month-fn": q,
15164
15164
  "is-selected-day-fn": V,
15165
- "is-today-fn": q,
15165
+ "is-today-fn": Z,
15166
15166
  "select-day-fn": j,
15167
15167
  "events-by-day-fn": Se,
15168
15168
  "day-event-count-fn": Fe,
@@ -15770,12 +15770,12 @@ function F0(e, t) {
15770
15770
  bottom: Y.bottom - M.bottom + b.bottom,
15771
15771
  left: M.left - Y.left + b.left,
15772
15772
  right: Y.right - M.right + b.right
15773
- }, Z = e.modifiersData.offset;
15774
- if (m === xo && Z) {
15775
- var q = Z[i];
15773
+ }, q = e.modifiersData.offset;
15774
+ if (m === xo && q) {
15775
+ var Z = q[i];
15776
15776
  Object.keys(R).forEach(function(V) {
15777
15777
  var j = [Wn, Gn].indexOf(V) >= 0 ? 1 : -1, A = [Fn, Gn].indexOf(V) >= 0 ? "y" : "x";
15778
- R[V] += q[A] * j;
15778
+ R[V] += Z[A] * j;
15779
15779
  });
15780
15780
  }
15781
15781
  return R;
@@ -15833,19 +15833,19 @@ function Sk(e) {
15833
15833
  m.rects = {
15834
15834
  reference: tk($, Qo(M), m.options.strategy === "fixed"),
15835
15835
  popper: T0(M)
15836
- }, m.reset = !1, m.placement = m.options.placement, m.orderedModifiers.forEach(function(q) {
15837
- return m.modifiersData[q.name] = Object.assign({}, q.data);
15836
+ }, m.reset = !1, m.placement = m.options.placement, m.orderedModifiers.forEach(function(Z) {
15837
+ return m.modifiersData[Z.name] = Object.assign({}, Z.data);
15838
15838
  });
15839
15839
  for (var C = 0; C < m.orderedModifiers.length; C++) {
15840
15840
  if (m.reset === !0) {
15841
15841
  m.reset = !1, C = -1;
15842
15842
  continue;
15843
15843
  }
15844
- var T = m.orderedModifiers[C], D = T.fn, Y = T.options, R = Y === void 0 ? {} : Y, Z = T.name;
15844
+ var T = m.orderedModifiers[C], D = T.fn, Y = T.options, R = Y === void 0 ? {} : Y, q = T.name;
15845
15845
  typeof D == "function" && (m = D({
15846
15846
  state: m,
15847
15847
  options: R,
15848
- name: Z,
15848
+ name: q,
15849
15849
  instance: w
15850
15850
  }) || m);
15851
15851
  }
@@ -15950,8 +15950,8 @@ function gd(e) {
15950
15950
  position: u
15951
15951
  }, p && Lk);
15952
15952
  if (h) {
15953
- var Z;
15954
- return Object.assign({}, R, (Z = {}, Z[M] = _ ? "0" : "", Z[$] = k ? "0" : "", Z.transform = (C.devicePixelRatio || 1) <= 1 ? "translate(" + w + "px, " + b + "px)" : "translate3d(" + w + "px, " + b + "px, 0)", Z));
15953
+ var q;
15954
+ return Object.assign({}, R, (q = {}, q[M] = _ ? "0" : "", q[$] = k ? "0" : "", q.transform = (C.devicePixelRatio || 1) <= 1 ? "translate(" + w + "px, " + b + "px)" : "translate3d(" + w + "px, " + b + "px, 0)", q));
15955
15955
  }
15956
15956
  return Object.assign({}, R, (t = {}, t[M] = _ ? b + "px" : "", t[$] = k ? w + "px" : "", t.transform = "", t));
15957
15957
  }
@@ -16040,9 +16040,9 @@ function Hk(e) {
16040
16040
  rootBoundary: p,
16041
16041
  padding: y,
16042
16042
  altBoundary: m
16043
- }), _ = ia(t.placement), $ = Us(t.placement), M = !$, C = z0(_), T = Ik(C), D = t.modifiersData.popperOffsets, Y = t.rects.reference, R = t.rects.popper, Z = typeof b == "function" ? b(Object.assign({}, t.rects, {
16043
+ }), _ = ia(t.placement), $ = Us(t.placement), M = !$, C = z0(_), T = Ik(C), D = t.modifiersData.popperOffsets, Y = t.rects.reference, R = t.rects.popper, q = typeof b == "function" ? b(Object.assign({}, t.rects, {
16044
16044
  placement: t.placement
16045
- })) : b, q = {
16045
+ })) : b, Z = {
16046
16046
  x: 0,
16047
16047
  y: 0
16048
16048
  };
@@ -16051,17 +16051,17 @@ function Hk(e) {
16051
16051
  var V = C === "y" ? Fn : On, j = C === "y" ? Gn : Wn, A = C === "y" ? "height" : "width", S = D[C], z = D[C] + k[V], O = D[C] - k[j], I = w ? -R[A] / 2 : 0, B = $ === Ws ? Y[A] : R[A], G = $ === Ws ? -R[A] : -Y[A], J = t.elements.arrow, te = w && J ? T0(J) : {
16052
16052
  width: 0,
16053
16053
  height: 0
16054
- }, se = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : l4(), ae = se[V], ee = se[j], fe = ur(0, Y[A], te[A]), ne = M ? Y[A] / 2 - I - fe - ae - Z : B - fe - ae - Z, ve = M ? -Y[A] / 2 + I + fe + ee + Z : G + fe + ee + Z, de = t.elements.arrow && Qo(t.elements.arrow), xe = de ? C === "y" ? de.clientTop || 0 : de.clientLeft || 0 : 0, ke = t.modifiersData.offset ? t.modifiersData.offset[t.placement][C] : 0, Re = D[C] + ne - ke - xe, Xe = D[C] + ve - ke;
16054
+ }, se = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : l4(), ae = se[V], ee = se[j], fe = ur(0, Y[A], te[A]), ne = M ? Y[A] / 2 - I - fe - ae - q : B - fe - ae - q, ve = M ? -Y[A] / 2 + I + fe + ee + q : G + fe + ee + q, de = t.elements.arrow && Qo(t.elements.arrow), xe = de ? C === "y" ? de.clientTop || 0 : de.clientLeft || 0 : 0, ke = t.modifiersData.offset ? t.modifiersData.offset[t.placement][C] : 0, Re = D[C] + ne - ke - xe, Xe = D[C] + ve - ke;
16055
16055
  if (r) {
16056
16056
  var Be = ur(w ? Ho(z, Re) : z, S, w ? Ha(O, Xe) : O);
16057
- D[C] = Be, q[C] = Be - S;
16057
+ D[C] = Be, Z[C] = Be - S;
16058
16058
  }
16059
16059
  if (u) {
16060
16060
  var W = C === "x" ? Fn : On, le = C === "x" ? Gn : Wn, Ce = D[T], we = Ce + k[W], $e = Ce - k[le], ce = ur(w ? Ho(we, Re) : we, Ce, w ? Ha($e, Xe) : $e);
16061
- D[T] = ce, q[T] = ce - Ce;
16061
+ D[T] = ce, Z[T] = ce - Ce;
16062
16062
  }
16063
16063
  }
16064
- t.modifiersData[a] = q;
16064
+ t.modifiersData[a] = Z;
16065
16065
  }
16066
16066
  }
16067
16067
  var Nk = {
@@ -16128,8 +16128,8 @@ function Gk(e) {
16128
16128
  flipVariations: g,
16129
16129
  allowedAutoPlacements: b
16130
16130
  }) : fe);
16131
- }, []), T = t.rects.reference, D = t.rects.popper, Y = /* @__PURE__ */ new Map(), R = !0, Z = C[0], q = 0; q < C.length; q++) {
16132
- var V = C[q], j = ia(V), A = Us(V) === Ws, S = [Fn, Gn].indexOf(j) >= 0, z = S ? "width" : "height", O = F0(t, {
16131
+ }, []), T = t.rects.reference, D = t.rects.popper, Y = /* @__PURE__ */ new Map(), R = !0, q = C[0], Z = 0; Z < C.length; Z++) {
16132
+ var V = C[Z], j = ia(V), A = Us(V) === Ws, S = [Fn, Gn].indexOf(j) >= 0, z = S ? "width" : "height", O = F0(t, {
16133
16133
  placement: V,
16134
16134
  boundary: m,
16135
16135
  rootBoundary: y,
@@ -16141,7 +16141,7 @@ function Gk(e) {
16141
16141
  if (r && G.push(O[j] <= 0), u && G.push(O[I] <= 0, O[B] <= 0), G.every(function(ee) {
16142
16142
  return ee;
16143
16143
  })) {
16144
- Z = V, R = !1;
16144
+ q = V, R = !1;
16145
16145
  break;
16146
16146
  }
16147
16147
  Y.set(V, G);
@@ -16156,12 +16156,12 @@ function Gk(e) {
16156
16156
  });
16157
16157
  });
16158
16158
  if (ne)
16159
- return Z = ne, "break";
16159
+ return q = ne, "break";
16160
16160
  }, se = J; se > 0; se--) {
16161
16161
  var ae = te(se);
16162
16162
  if (ae === "break") break;
16163
16163
  }
16164
- t.placement !== Z && (t.modifiersData[a]._skip = !0, t.placement = Z, t.reset = !0);
16164
+ t.placement !== q && (t.modifiersData[a]._skip = !0, t.placement = q, t.reset = !0);
16165
16165
  }
16166
16166
  }
16167
16167
  var Wk = {
@@ -16513,8 +16513,8 @@ var f4 = {
16513
16513
  triggerNode: c
16514
16514
  }), {
16515
16515
  hasContent: Y
16516
- } = Xw(a, r, m), R = P(() => M.value !== null), Z = P(() => x.value || !Y.value), q = P(() => C.value && !Z.value), V = P(() => !y.value && !R.value), j = P(() => w.value ? `border: ${b.value}px solid transparent; margin: -${b.value}px;` : null), A = Kl.debounce(T, _.value), S = Kl.debounce(D, p.value), z = async () => {
16517
- Z.value || R.value || (S.clear(), A());
16516
+ } = Xw(a, r, m), R = P(() => M.value !== null), q = P(() => x.value || !Y.value), Z = P(() => C.value && !q.value), V = P(() => !y.value && !R.value), j = P(() => w.value ? `border: ${b.value}px solid transparent; margin: -${b.value}px;` : null), A = Kl.debounce(T, _.value), S = Kl.debounce(D, p.value), z = async () => {
16517
+ q.value || R.value || (S.clear(), A());
16518
16518
  }, O = async () => {
16519
16519
  R.value || (A.clear(), S());
16520
16520
  }, I = () => {
@@ -16559,7 +16559,7 @@ var f4 = {
16559
16559
  isOpen: u.value
16560
16560
  }, () => [Ie(N(oe(m)), 1)]), e.arrow ? (l(), _e(o_, {
16561
16561
  key: 0
16562
- })) : F("", !0)], 512), [[Zt, oe(q)]])]),
16562
+ })) : F("", !0)], 512), [[Zt, oe(Z)]])]),
16563
16563
  _: 3
16564
16564
  })], 36));
16565
16565
  }
@@ -16925,8 +16925,8 @@ const l_ = { class: "sections-header" }, c_ = {
16925
16925
  const O = Number.isFinite(Number(z.progress_pct)) ? Number(z.progress_pct) : k.value / (_.value || 1) * 100;
16926
16926
  return Math.max(0, Math.min(100, Math.round(O)));
16927
16927
  }), T = (z) => Number(z || 0).toLocaleString("pt-BR"), D = X(!1), Y = X(!1);
16928
- let R = null, Z = null;
16929
- const q = P(() => {
16928
+ let R = null, q = null;
16929
+ const Z = P(() => {
16930
16930
  var z;
16931
16931
  return Number(((z = n.progress) == null ? void 0 : z.level) ?? n.level ?? 0);
16932
16932
  });
@@ -16937,11 +16937,11 @@ const l_ = { class: "sections-header" }, c_ = {
16937
16937
  z.value = !1;
16938
16938
  }, I);
16939
16939
  }
16940
- Ke([C, q], ([z, O], [I, B]) => {
16940
+ Ke([C, Z], ([z, O], [I, B]) => {
16941
16941
  var G;
16942
- b.value && ((G = window.matchMedia) != null && G.call(window, "(prefers-reduced-motion: reduce)").matches || (O > B && B > 0 ? Z = V(Y, Z, 1e3) : z > I && (R = V(D, R, 760))));
16942
+ b.value && ((G = window.matchMedia) != null && G.call(window, "(prefers-reduced-motion: reduce)").matches || (O > B && B > 0 ? q = V(Y, q, 1e3) : z > I && (R = V(D, R, 760))));
16943
16943
  }), Bt(() => {
16944
- clearTimeout(R), clearTimeout(Z);
16944
+ clearTimeout(R), clearTimeout(q);
16945
16945
  });
16946
16946
  function j(z) {
16947
16947
  const O = z.trim(), I = O.match(/^#([0-9a-fA-F]{3,8})$/);
@@ -17233,22 +17233,22 @@ const l_ = { class: "sections-header" }, c_ = {
17233
17233
  )));
17234
17234
  }
17235
17235
  function g() {
17236
- var q;
17236
+ var Z;
17237
17237
  if (!t.hoverPreview) return;
17238
17238
  window.clearTimeout(x);
17239
- const _ = (q = u.value) == null ? void 0 : q.getBoundingClientRect();
17239
+ const _ = (Z = u.value) == null ? void 0 : Z.getBoundingClientRect();
17240
17240
  if (!_) return;
17241
17241
  const $ = 8, M = Math.min(360, window.innerWidth - $ * 2), C = 180, T = 7, D = window.innerWidth - M - $, Y = Math.max($, Math.min(_.left, D)), R = _.top >= C + T + $;
17242
17242
  m.value = R ? "top" : "bottom";
17243
- const Z = {
17243
+ const q = {
17244
17244
  left: `${Y}px`,
17245
17245
  width: `${M}px`
17246
17246
  };
17247
17247
  p.value = R ? {
17248
- ...Z,
17248
+ ...q,
17249
17249
  bottom: `${window.innerHeight - _.top + T}px`
17250
17250
  } : {
17251
- ...Z,
17251
+ ...q,
17252
17252
  top: `${_.bottom + T}px`
17253
17253
  }, h.value = !0;
17254
17254
  }
@@ -17261,7 +17261,7 @@ const l_ = { class: "sections-header" }, c_ = {
17261
17261
  return Bt(() => {
17262
17262
  window.clearTimeout(y), window.clearTimeout(x);
17263
17263
  }), (_, $) => {
17264
- var M, C, T, D, Y, R, Z;
17264
+ var M, C, T, D, Y, R, q;
17265
17265
  return l(), f("div", {
17266
17266
  ref_key: "triggerRef",
17267
17267
  ref: u,
@@ -17299,13 +17299,13 @@ const l_ = { class: "sections-header" }, c_ = {
17299
17299
  }, null, 8, ["achievement"]),
17300
17300
  o("span", W_, N(n.value.achievement.name), 1)
17301
17301
  ], 8, G_)) : F("", !0),
17302
- e.fallbackMeta && !(e.showTitle && ((R = i.value) != null && R.name)) && !(e.showAchievement && ((Z = n.value.achievement) != null && Z.name)) ? (l(), f("span", U_, N(e.fallbackMeta), 1)) : F("", !0)
17302
+ e.fallbackMeta && !(e.showTitle && ((R = i.value) != null && R.name)) && !(e.showAchievement && ((q = n.value.achievement) != null && q.name)) ? (l(), f("span", U_, N(e.fallbackMeta), 1)) : F("", !0)
17303
17303
  ])
17304
17304
  ])) : F("", !0),
17305
17305
  (l(), _e(xn, { to: "body" }, [
17306
17306
  pe(Mt, { name: "sm-profile-preview" }, {
17307
17307
  default: Ae(() => {
17308
- var q, V;
17308
+ var Z, V;
17309
17309
  return [
17310
17310
  h.value ? (l(), f("div", {
17311
17311
  key: 0,
@@ -17317,7 +17317,7 @@ const l_ = { class: "sections-header" }, c_ = {
17317
17317
  pe(h4, {
17318
17318
  variant: "card",
17319
17319
  embedded: "",
17320
- name: ((q = e.attendant) == null ? void 0 : q.name) || "Atendente",
17320
+ name: ((Z = e.attendant) == null ? void 0 : Z.name) || "Atendente",
17321
17321
  photo: ((V = e.attendant) == null ? void 0 : V.photo) || "",
17322
17322
  level: n.value.level,
17323
17323
  frame: a.value,
@@ -18624,9 +18624,9 @@ const tS = { class: "chat-info bg-base-200" }, nS = { class: "info-head" }, aS =
18624
18624
  var A;
18625
18625
  return Qr((A = n.selectedAttendant) == null ? void 0 : A.login_status);
18626
18626
  }
18627
- ), Z = P(
18627
+ ), q = P(
18628
18628
  () => Fo(n.selectedAttendant).title
18629
- ), q = P(() => {
18629
+ ), Z = P(() => {
18630
18630
  var z, O, I;
18631
18631
  if (n.isGroup)
18632
18632
  return [
@@ -18705,9 +18705,9 @@ const tS = { class: "chat-info bg-base-200" }, nS = { class: "info-head" }, aS =
18705
18705
  }, null, 8, ["photo", "name"])
18706
18706
  ])),
18707
18707
  o("h1", rS, N(e.selectedAttendant.name), 1),
18708
- e.isGroup ? (l(), f("p", lS, " Grupo · " + N(e.participantCount) + " membros ", 1)) : oe(r) && ((z = Z.value) != null && z.name) ? (l(), _e(ja, {
18708
+ e.isGroup ? (l(), f("p", lS, " Grupo · " + N(e.participantCount) + " membros ", 1)) : oe(r) && ((z = q.value) != null && z.name) ? (l(), _e(ja, {
18709
18709
  key: 4,
18710
- title: Z.value,
18710
+ title: q.value,
18711
18711
  size: "md",
18712
18712
  class: "identity-title"
18713
18713
  }, null, 8, ["title"])) : (l(), f("p", cS, [
@@ -18718,7 +18718,7 @@ const tS = { class: "chat-info bg-base-200" }, nS = { class: "info-head" }, aS =
18718
18718
  ]))
18719
18719
  ]),
18720
18720
  o("dl", uS, [
18721
- (l(!0), f(ye, null, He(q.value, (O) => (l(), f("div", {
18721
+ (l(!0), f(ye, null, He(Z.value, (O) => (l(), f("div", {
18722
18722
  key: O.key,
18723
18723
  class: "fact"
18724
18724
  }, [
@@ -19228,27 +19228,27 @@ let BS = class extends ti {
19228
19228
  if (x.button !== r || h.has(x.pointerId) || (h.set(x.pointerId, x), h.size > 1)) return;
19229
19229
  const w = x.pointerId;
19230
19230
  let g = x.clientX, b = x.clientY, k = !1;
19231
- const _ = Date.now(), $ = n.getBoundingClientRect(), { left: M, top: C } = $, T = (q) => {
19232
- if (q.pointerId !== w || q.defaultPrevented || h.size > 1 || p && Date.now() - _ < c) return;
19233
- const V = q.clientX, j = q.clientY, A = V - g, S = j - b;
19234
- (k || Math.abs(A) > i || Math.abs(S) > i) && (q.preventDefault(), q.stopPropagation(), k || (u.set({ type: "start", x: g - M, y: b - C }), k = !0), u.set({ type: "move", x: V - M, y: j - C, deltaX: A, deltaY: S }), g = V, b = j);
19235
- }, D = (q) => {
19236
- if (h.delete(q.pointerId)) {
19237
- if (q.pointerId === w && k) {
19238
- const V = q.clientX, j = q.clientY;
19231
+ const _ = Date.now(), $ = n.getBoundingClientRect(), { left: M, top: C } = $, T = (Z) => {
19232
+ if (Z.pointerId !== w || Z.defaultPrevented || h.size > 1 || p && Date.now() - _ < c) return;
19233
+ const V = Z.clientX, j = Z.clientY, A = V - g, S = j - b;
19234
+ (k || Math.abs(A) > i || Math.abs(S) > i) && (Z.preventDefault(), Z.stopPropagation(), k || (u.set({ type: "start", x: g - M, y: b - C }), k = !0), u.set({ type: "move", x: V - M, y: j - C, deltaX: A, deltaY: S }), g = V, b = j);
19235
+ }, D = (Z) => {
19236
+ if (h.delete(Z.pointerId)) {
19237
+ if (Z.pointerId === w && k) {
19238
+ const V = Z.clientX, j = Z.clientY;
19239
19239
  u.set({ type: "end", x: V - M, y: j - C });
19240
19240
  }
19241
19241
  h.size === 0 && m();
19242
19242
  }
19243
- }, Y = (q) => {
19244
- q.relatedTarget && q.relatedTarget !== document.documentElement || D(q);
19245
- }, R = (q) => {
19246
- k && (q.stopPropagation(), q.preventDefault());
19247
- }, Z = (q) => {
19248
- q.defaultPrevented || h.size > 1 || k && q.preventDefault();
19243
+ }, Y = (Z) => {
19244
+ Z.relatedTarget && Z.relatedTarget !== document.documentElement || D(Z);
19245
+ }, R = (Z) => {
19246
+ k && (Z.stopPropagation(), Z.preventDefault());
19247
+ }, q = (Z) => {
19248
+ Z.defaultPrevented || h.size > 1 || k && Z.preventDefault();
19249
19249
  };
19250
- document.addEventListener("pointermove", T), document.addEventListener("pointerup", D), document.addEventListener("pointerout", Y), document.addEventListener("pointercancel", Y), document.addEventListener("touchmove", Z, { passive: !1 }), document.addEventListener("click", R, { capture: !0 }), m = () => {
19251
- document.removeEventListener("pointermove", T), document.removeEventListener("pointerup", D), document.removeEventListener("pointerout", Y), document.removeEventListener("pointercancel", Y), document.removeEventListener("touchmove", Z), setTimeout(() => {
19250
+ document.addEventListener("pointermove", T), document.addEventListener("pointerup", D), document.addEventListener("pointerout", Y), document.addEventListener("pointercancel", Y), document.addEventListener("touchmove", q, { passive: !1 }), document.addEventListener("click", R, { capture: !0 }), m = () => {
19251
+ document.removeEventListener("pointermove", T), document.removeEventListener("pointerup", D), document.removeEventListener("pointerout", Y), document.removeEventListener("pointercancel", Y), document.removeEventListener("touchmove", q), setTimeout(() => {
19252
19252
  document.removeEventListener("click", R, { capture: !0 });
19253
19253
  }, 10);
19254
19254
  };
@@ -19422,18 +19422,18 @@ let BS = class extends ti {
19422
19422
  const M = b / 2, C = _.barWidth ? _.barWidth * $ : 1, T = _.barGap ? _.barGap * $ : _.barWidth ? C / 2 : 0, D = C + T || 1;
19423
19423
  return { halfHeight: M, barWidth: C, barGap: T, barRadius: _.barRadius || 0, barMinHeight: _.barMinHeight ? _.barMinHeight * $ : 0, barIndexScale: k > 0 ? g / D / k : 0, barSpacing: D };
19424
19424
  }({ width: r, height: c, length: (t[0] || []).length, options: n, pixelRatio: this.getPixelRatio() }), w = function({ channelData: g, barIndexScale: b, barSpacing: k, barWidth: _, halfHeight: $, vScale: M, canvasHeight: C, barAlign: T, barMinHeight: D }) {
19425
- const Y = g[0] || [], R = g[1] || Y, Z = Y.length, q = [];
19425
+ const Y = g[0] || [], R = g[1] || Y, q = Y.length, Z = [];
19426
19426
  let V = 0, j = 0, A = 0;
19427
- for (let S = 0; S <= Z; S++) {
19427
+ for (let S = 0; S <= q; S++) {
19428
19428
  const z = Math.round(S * b);
19429
19429
  if (z > V) {
19430
19430
  const { topHeight: B, totalHeight: G } = LS({ maxTop: j, maxBottom: A, halfHeight: $, vScale: M, barMinHeight: D, barAlign: T }), J = PS({ barAlign: T, halfHeight: $, topHeight: B, totalHeight: G, canvasHeight: C });
19431
- q.push({ x: V * k, y: J, width: _, height: G }), V = z, j = 0, A = 0;
19431
+ Z.push({ x: V * k, y: J, width: _, height: G }), V = z, j = 0, A = 0;
19432
19432
  }
19433
19433
  const O = Math.abs(Y[S] || 0), I = Math.abs(R[S] || 0);
19434
19434
  O > j && (j = O), I > A && (A = I);
19435
19435
  }
19436
- return q;
19436
+ return Z;
19437
19437
  }({ channelData: t, barIndexScale: m, barSpacing: y, barWidth: h, halfHeight: u, vScale: i, canvasHeight: c, barAlign: n.barAlign, barMinHeight: x });
19438
19438
  a.beginPath();
19439
19439
  for (const g of w) p && "roundRect" in a ? a.roundRect(g.x, g.y, g.width, g.height, p) : a.rect(g.x, g.y, g.width, g.height);
@@ -19448,11 +19448,11 @@ let BS = class extends ti {
19448
19448
  for (let Y = 0; Y <= k; Y++) {
19449
19449
  const R = Math.round(Y * _);
19450
19450
  if (R > T) {
19451
- const q = $ + (Math.round(D * x * y) || 1) * M;
19452
- C.push({ x: T, y: q }), T = R, D = 0;
19451
+ const Z = $ + (Math.round(D * x * y) || 1) * M;
19452
+ C.push({ x: T, y: Z }), T = R, D = 0;
19453
19453
  }
19454
- const Z = Math.abs(g[Y] || 0);
19455
- Z > D && (D = Z);
19454
+ const q = Math.abs(g[Y] || 0);
19455
+ q > D && (D = q);
19456
19456
  }
19457
19457
  return C.push({ x: T, y: $ }), C;
19458
19458
  });
@@ -19795,8 +19795,8 @@ let Vo = class w4 extends $S {
19795
19795
  super({ media: n, mediaControls: t.mediaControls, autoplay: t.autoplay, playbackRate: t.audioRate }), this.plugins = [], this.decodedData = null, this.stopAtPosition = null, this.subscriptions = [], this.mediaSubscriptions = [], this.abortController = null, this._isDestroyed = !1, this._loadVersion = 0, this.reactiveCleanups = [], this.options = Object.assign({}, FS, t);
19796
19796
  const { state: a, actions: i } = function(u) {
19797
19797
  var h, p, m, y, x, w;
19798
- const g = (h = u == null ? void 0 : u.currentTime) !== null && h !== void 0 ? h : Ut(0), b = (p = u == null ? void 0 : u.duration) !== null && p !== void 0 ? p : Ut(0), k = (m = u == null ? void 0 : u.isPlaying) !== null && m !== void 0 ? m : Ut(!1), _ = (y = u == null ? void 0 : u.isSeeking) !== null && y !== void 0 ? y : Ut(!1), $ = (x = u == null ? void 0 : u.volume) !== null && x !== void 0 ? x : Ut(1), M = (w = u == null ? void 0 : u.playbackRate) !== null && w !== void 0 ? w : Ut(1), C = Ut(null), T = Ut(null), D = Ut(""), Y = Ut(0), R = Ut(0), Z = rs(() => !k.value, [k]), q = rs(() => C.value !== null, [C]), V = rs(() => q.value && b.value > 0, [q, b]), j = rs(() => g.value, [g]), A = rs(() => b.value > 0 ? g.value / b.value : 0, [g, b]);
19799
- return { state: { currentTime: g, duration: b, isPlaying: k, isPaused: Z, isSeeking: _, volume: $, playbackRate: M, audioBuffer: C, peaks: T, url: D, zoom: Y, scrollPosition: R, canPlay: q, isReady: V, progress: j, progressPercent: A }, actions: { setCurrentTime: (S) => {
19798
+ const g = (h = u == null ? void 0 : u.currentTime) !== null && h !== void 0 ? h : Ut(0), b = (p = u == null ? void 0 : u.duration) !== null && p !== void 0 ? p : Ut(0), k = (m = u == null ? void 0 : u.isPlaying) !== null && m !== void 0 ? m : Ut(!1), _ = (y = u == null ? void 0 : u.isSeeking) !== null && y !== void 0 ? y : Ut(!1), $ = (x = u == null ? void 0 : u.volume) !== null && x !== void 0 ? x : Ut(1), M = (w = u == null ? void 0 : u.playbackRate) !== null && w !== void 0 ? w : Ut(1), C = Ut(null), T = Ut(null), D = Ut(""), Y = Ut(0), R = Ut(0), q = rs(() => !k.value, [k]), Z = rs(() => C.value !== null, [C]), V = rs(() => Z.value && b.value > 0, [Z, b]), j = rs(() => g.value, [g]), A = rs(() => b.value > 0 ? g.value / b.value : 0, [g, b]);
19799
+ return { state: { currentTime: g, duration: b, isPlaying: k, isPaused: q, isSeeking: _, volume: $, playbackRate: M, audioBuffer: C, peaks: T, url: D, zoom: Y, scrollPosition: R, canPlay: Z, isReady: V, progress: j, progressPercent: A }, actions: { setCurrentTime: (S) => {
19800
19800
  const z = Math.max(0, Math.min(b.value || 1 / 0, S));
19801
19801
  g.set(z);
19802
19802
  }, setDuration: (S) => {
@@ -20922,7 +20922,7 @@ const PM = ["disabled", "onClick", "onMouseenter", "onFocus", "onTouchstartPassi
20922
20922
  function R(j) {
20923
20923
  j != null && j.currentTarget && (h.value = j.currentTarget.getBoundingClientRect());
20924
20924
  }
20925
- function Z(j, A) {
20925
+ function q(j, A) {
20926
20926
  var G;
20927
20927
  if (R(j), !$(A) || !((G = A.reasons) != null && G.length)) {
20928
20928
  D();
@@ -20941,7 +20941,7 @@ const PM = ["disabled", "onClick", "onMouseenter", "onFocus", "onTouchstartPassi
20941
20941
  style: { top: `${O}px`, left: `${I}px`, width: `${B}px` }
20942
20942
  };
20943
20943
  }
20944
- function q(j, A) {
20944
+ function Z(j, A) {
20945
20945
  if (R(j), !$(A)) {
20946
20946
  D();
20947
20947
  return;
@@ -20950,7 +20950,7 @@ const PM = ["disabled", "onClick", "onMouseenter", "onFocus", "onTouchstartPassi
20950
20950
  D();
20951
20951
  return;
20952
20952
  }
20953
- p.value = A.key, Z(j, A);
20953
+ p.value = A.key, q(j, A);
20954
20954
  }
20955
20955
  function V(j, A) {
20956
20956
  R(j), D(), !$(A) && (typeof A.handler == "function" && A.handler(j), i("select", A));
@@ -20992,9 +20992,9 @@ const PM = ["disabled", "onClick", "onMouseenter", "onFocus", "onTouchstartPassi
20992
20992
  class: U([e.light ? "hover:bg-gray-100" : "hover:bg-white/5", "flex w-full items-center gap-3 rounded-xl px-3 py-2.5 text-[14px] disabled:opacity-50 disabled:hover:bg-transparent"]),
20993
20993
  disabled: $(S),
20994
20994
  onClick: (O) => V(O, S),
20995
- onMouseenter: (O) => Z(O, S),
20996
- onFocus: (O) => Z(O, S),
20997
- onTouchstartPassive: (O) => q(O, S)
20995
+ onMouseenter: (O) => q(O, S),
20996
+ onFocus: (O) => q(O, S),
20997
+ onTouchstartPassive: (O) => Z(O, S)
20998
20998
  }, [
20999
20999
  S.icon ? (l(), f("span", {
21000
21000
  key: 0,
@@ -21092,8 +21092,8 @@ const PM = ["disabled", "onClick", "onMouseenter", "onFocus", "onTouchstartPassi
21092
21092
  (g.width - _ * (Hi - 1)) / Hi
21093
21093
  ), M = g.height / 2, C = Math.floor(c.length / Hi) || 1;
21094
21094
  for (let D = 0; D < Hi; D += 1) {
21095
- const Y = c[D * C] / 255, R = Math.max(2 * k, Y * g.height), Z = D * ($ + _);
21096
- y(b, Z, M - R / 2, $, R, $ / 2);
21095
+ const Y = c[D * C] / 255, R = Math.max(2 * k, Y * g.height), q = D * ($ + _);
21096
+ y(b, q, M - R / 2, $, R, $ / 2);
21097
21097
  }
21098
21098
  (T = t.audioStream) != null && T.active && (u = requestAnimationFrame(x));
21099
21099
  }, w = () => {
@@ -21201,10 +21201,10 @@ const eA = {
21201
21201
  if (!J || !u.value) return;
21202
21202
  const { left: te, width: se } = G.currentTarget.getBoundingClientRect(), ae = Math.min(Math.max((G.clientX - te) / se, 0), 1);
21203
21203
  J.currentTime = ae * u.value, D();
21204
- }, Z = () => {
21204
+ }, q = () => {
21205
21205
  var G;
21206
21206
  (G = _.value) == null || G.pause(), $.value = !1, M.value = 0;
21207
- }, q = (G) => {
21207
+ }, Z = (G) => {
21208
21208
  const J = Math.floor(G / 60), te = (G % 60).toFixed(0), se = J.toString().padStart(2, "0"), ae = te.toString().padStart(2, "0");
21209
21209
  return `${se}:${ae}`;
21210
21210
  }, V = async () => {
@@ -21235,7 +21235,7 @@ const eA = {
21235
21235
  }
21236
21236
  }, I = async () => {
21237
21237
  var te, se;
21238
- b.value = !0, Z(), a("b64Audio", m.value);
21238
+ b.value = !0, q(), a("b64Audio", m.value);
21239
21239
  const J = {
21240
21240
  type: "file",
21241
21241
  media: {
@@ -21252,7 +21252,7 @@ const eA = {
21252
21252
  ), b.value = !1, x.value = null, m.value = null, p.value = null, r.value = !1, c.value = !1, u.value = 0;
21253
21253
  }, B = async () => {
21254
21254
  var G, J;
21255
- g.value = !0, r.value = !1, Z(), ((G = i.value) == null ? void 0 : G.state) !== "inactive" && await ((J = i.value) == null ? void 0 : J.stop()), x.value && (x.value.getTracks().forEach((te) => te.stop()), x.value = null), p.value = null, clearInterval(y.value), m.value = null, c.value = !1, u.value = 0;
21255
+ g.value = !0, r.value = !1, q(), ((G = i.value) == null ? void 0 : G.state) !== "inactive" && await ((J = i.value) == null ? void 0 : J.stop()), x.value && (x.value.getTracks().forEach((te) => te.stop()), x.value = null), p.value = null, clearInterval(y.value), m.value = null, c.value = !1, u.value = 0;
21256
21256
  };
21257
21257
  return (G, J) => b.value ? (l(), f("div", hA, [...J[12] || (J[12] = [
21258
21258
  o("span", { class: "loader-audio-recorder" }, null, -1),
@@ -21286,7 +21286,7 @@ const eA = {
21286
21286
  class: U(["recorder-timer", { paused: c.value }])
21287
21287
  }, [
21288
21288
  J[5] || (J[5] = o("i", { "aria-hidden": "true" }, null, -1)),
21289
- Ie(" " + N(q(u.value)), 1)
21289
+ Ie(" " + N(Z(u.value)), 1)
21290
21290
  ], 2)) : F("", !0),
21291
21291
  x.value && r.value && !c.value ? (l(), _e(UM, {
21292
21292
  key: 1,
@@ -21327,7 +21327,7 @@ const eA = {
21327
21327
  style: Ve({ width: `${C.value * 100}%` })
21328
21328
  }, null, 4)
21329
21329
  ], 8, lA),
21330
- o("span", cA, N(q(M.value)) + " / " + N(q(u.value)), 1)
21330
+ o("span", cA, N(Z(M.value)) + " / " + N(Z(u.value)), 1)
21331
21331
  ])) : F("", !0),
21332
21332
  r.value ? (l(), f("button", {
21333
21333
  key: 4,
@@ -21436,51 +21436,51 @@ const vA = (e) => {
21436
21436
  return console.warn(`Capacitor plugin "${y}" already registered. Cannot register plugins twice.`), w.proxy;
21437
21437
  const g = i(), b = u(y);
21438
21438
  let k;
21439
- const _ = async () => (!k && g in x ? k = typeof x[g] == "function" ? k = await x[g]() : k = x[g] : t !== null && !k && "web" in x && (k = typeof x.web == "function" ? k = await x.web() : k = x.web), k), $ = (R, Z) => {
21440
- var q, V;
21439
+ const _ = async () => (!k && g in x ? k = typeof x[g] == "function" ? k = await x[g]() : k = x[g] : t !== null && !k && "web" in x && (k = typeof x.web == "function" ? k = await x.web() : k = x.web), k), $ = (R, q) => {
21440
+ var Z, V;
21441
21441
  if (b) {
21442
- const j = b == null ? void 0 : b.methods.find((A) => Z === A.name);
21442
+ const j = b == null ? void 0 : b.methods.find((A) => q === A.name);
21443
21443
  if (j)
21444
- return j.rtype === "promise" ? (A) => n.nativePromise(y, Z.toString(), A) : (A, S) => n.nativeCallback(y, Z.toString(), A, S);
21444
+ return j.rtype === "promise" ? (A) => n.nativePromise(y, q.toString(), A) : (A, S) => n.nativeCallback(y, q.toString(), A, S);
21445
21445
  if (R)
21446
- return (q = R[Z]) === null || q === void 0 ? void 0 : q.bind(R);
21446
+ return (Z = R[q]) === null || Z === void 0 ? void 0 : Z.bind(R);
21447
21447
  } else {
21448
21448
  if (R)
21449
- return (V = R[Z]) === null || V === void 0 ? void 0 : V.bind(R);
21449
+ return (V = R[q]) === null || V === void 0 ? void 0 : V.bind(R);
21450
21450
  throw new s1(`"${y}" plugin is not implemented on ${g}`, Js.Unimplemented);
21451
21451
  }
21452
21452
  }, M = (R) => {
21453
- let Z;
21454
- const q = (...V) => {
21453
+ let q;
21454
+ const Z = (...V) => {
21455
21455
  const j = _().then((A) => {
21456
21456
  const S = $(A, R);
21457
21457
  if (S) {
21458
21458
  const z = S(...V);
21459
- return Z = z == null ? void 0 : z.remove, z;
21459
+ return q = z == null ? void 0 : z.remove, z;
21460
21460
  } else
21461
21461
  throw new s1(`"${y}.${R}()" is not implemented on ${g}`, Js.Unimplemented);
21462
21462
  });
21463
- return R === "addListener" && (j.remove = async () => Z()), j;
21463
+ return R === "addListener" && (j.remove = async () => q()), j;
21464
21464
  };
21465
- return q.toString = () => `${R.toString()}() { [capacitor code] }`, Object.defineProperty(q, "name", {
21465
+ return Z.toString = () => `${R.toString()}() { [capacitor code] }`, Object.defineProperty(Z, "name", {
21466
21466
  value: R,
21467
21467
  writable: !1,
21468
21468
  configurable: !1
21469
- }), q;
21470
- }, C = M("addListener"), T = M("removeListener"), D = (R, Z) => {
21471
- const q = C({ eventName: R }, Z), V = async () => {
21472
- const A = await q;
21469
+ }), Z;
21470
+ }, C = M("addListener"), T = M("removeListener"), D = (R, q) => {
21471
+ const Z = C({ eventName: R }, q), V = async () => {
21472
+ const A = await Z;
21473
21473
  T({
21474
21474
  eventName: R,
21475
21475
  callbackId: A
21476
- }, Z);
21477
- }, j = new Promise((A) => q.then(() => A({ remove: V })));
21476
+ }, q);
21477
+ }, j = new Promise((A) => Z.then(() => A({ remove: V })));
21478
21478
  return j.remove = async () => {
21479
21479
  console.warn("Using addListener() without 'await' is deprecated."), await V();
21480
21480
  }, j;
21481
21481
  }, Y = new Proxy({}, {
21482
- get(R, Z) {
21483
- switch (Z) {
21482
+ get(R, q) {
21483
+ switch (q) {
21484
21484
  case "$$typeof":
21485
21485
  return;
21486
21486
  case "toJSON":
@@ -21490,7 +21490,7 @@ const vA = (e) => {
21490
21490
  case "removeListener":
21491
21491
  return T;
21492
21492
  default:
21493
- return M(Z);
21493
+ return M(q);
21494
21494
  }
21495
21495
  }
21496
21496
  });
@@ -21729,7 +21729,7 @@ I0("CapacitorHttp", {
21729
21729
  web: () => new CA()
21730
21730
  });
21731
21731
  const es = I0("VoiceRecorder", {
21732
- web: () => import("./web-tWZljtpf.js").then((e) => e.w).then((e) => new e.VoiceRecorderWeb())
21732
+ web: () => import("./web-YPRF2l8s.js").then((e) => e.w).then((e) => new e.VoiceRecorderWeb())
21733
21733
  });
21734
21734
  function zd(e, t) {
21735
21735
  return l(), f("svg", {
@@ -21899,10 +21899,10 @@ const EA = {
21899
21899
  }, R = async () => {
21900
21900
  const S = await es.getCurrentStatus();
21901
21901
  S.status === "RECORDING" ? (await Y(), n("paused", !1), n("recording", !1), i.value = null, h.value = [], r.value = !1, c.value = 0, m.value = k(0)) : S.status === "NONE" && (n("recording", !1), n("paused", !1), i.value = null, r.value = !1, h.value = [], c.value = 0, m.value = k(0));
21902
- }, Z = async () => {
21902
+ }, q = async () => {
21903
21903
  await es.getCurrentStatus(), x.value && (x.value.pause(), y.value = !1), R();
21904
21904
  };
21905
- function q(S) {
21905
+ function Z(S) {
21906
21906
  const z = atob(S), O = z.length, I = new Uint8Array(O);
21907
21907
  for (let B = 0; B < O; B++)
21908
21908
  I[B] = z.charCodeAt(B);
@@ -21923,7 +21923,7 @@ const EA = {
21923
21923
  const A = async () => {
21924
21924
  r.value = !0, (await es.getCurrentStatus()).status === "RECORDING" && await Y();
21925
21925
  try {
21926
- const z = h.value.map(q), O = V(z), I = j(O), B = `data:${p.value};base64,${I}`, J = {
21926
+ const z = h.value.map(Z), O = V(z), I = j(O), B = `data:${p.value};base64,${I}`, J = {
21927
21927
  type: "file",
21928
21928
  media: {
21929
21929
  name: "audio",
@@ -21979,7 +21979,7 @@ const EA = {
21979
21979
  o("div", zA, [
21980
21980
  i.value ? (l(), f("button", {
21981
21981
  key: 0,
21982
- onClick: z[2] || (z[2] = (O) => Z())
21982
+ onClick: z[2] || (z[2] = (O) => q())
21983
21983
  }, [
21984
21984
  pe(oe(AA), { class: "recorder-icon-discard ml-2 size-6 cursor-pointer" })
21985
21985
  ])) : F("", !0),
@@ -22104,7 +22104,7 @@ const EA = {
22104
22104
  re.id === ((K = n.attendant) == null ? void 0 : K.id) ? { ...re, ...n.attendant } : re
22105
22105
  );
22106
22106
  return [...ce.values()].sort((re, ue) => re.id === n.attendant.id ? -1 : ue.id === n.attendant.id ? 1 : 0);
22107
- }), g = P(() => w.value.length), b = t, k = X(""), _ = X(null), $ = X(null), M = X(!1), C = X(!1), T = X(!1), D = X(!0), Y = X(0), R = X(null), Z = X(0), q = P(() => !D.value), V = P(() => {
22107
+ }), g = P(() => w.value.length), b = t, k = X(""), _ = X(null), $ = X(null), M = X(!1), C = X(!1), T = X(!1), D = X(!0), Y = X(0), R = X(null), q = X(0), Z = P(() => !D.value), V = P(() => {
22108
22108
  var ce;
22109
22109
  return n.selectedAttendant ? n.selectedAttendant.is_group ? ((ce = n.selectedAttendant.chat_info) == null ? void 0 : ce.messages) || [] : n.selectedAttendant.messages || [] : [];
22110
22110
  });
@@ -22188,11 +22188,11 @@ const EA = {
22188
22188
  }, ve = () => {
22189
22189
  Y.value = 0, D.value = !0, fe("smooth");
22190
22190
  }, de = () => {
22191
- if (R.value || Z.value <= 0) return;
22191
+ if (R.value || q.value <= 0) return;
22192
22192
  const ce = V.value;
22193
22193
  if (ce.length === 0) return;
22194
- const K = ce[Math.max(ce.length - Z.value, 0)];
22195
- K != null && K.id && (R.value = K.id), Z.value = 0;
22194
+ const K = ce[Math.max(ce.length - q.value, 0)];
22195
+ K != null && K.id && (R.value = K.id), q.value = 0;
22196
22196
  }, xe = async (ce) => {
22197
22197
  try {
22198
22198
  if (!te.value) {
@@ -22261,7 +22261,7 @@ const EA = {
22261
22261
  }, 0));
22262
22262
  }, Ce = () => {
22263
22263
  var ce;
22264
- k.value = ((ce = a.getDraft) == null ? void 0 : ce.call(a, m.value)) || "", R.value = null, Z.value = n.unreadAnchor, Y.value = 0, D.value = !0, de();
22264
+ k.value = ((ce = a.getDraft) == null ? void 0 : ce.call(a, m.value)) || "", R.value = null, q.value = n.unreadAnchor, Y.value = 0, D.value = !0, de();
22265
22265
  };
22266
22266
  Ke(m, () => {
22267
22267
  Ce(), le();
@@ -22711,7 +22711,7 @@ const EA = {
22711
22711
  }), 128))
22712
22712
  ]))), 128))
22713
22713
  ])),
22714
- q.value ? (l(), f("button", {
22714
+ Z.value ? (l(), f("button", {
22715
22715
  key: 4,
22716
22716
  type: "button",
22717
22717
  class: "jump-to-bottom",
@@ -22954,9 +22954,9 @@ const wE = /* @__PURE__ */ Ne(yE, [["render", xE], ["__scopeId", "data-v-1fd8b95
22954
22954
  }
22955
22955
  }, Y = X(null), R = () => {
22956
22956
  Y.value && Y.value.focus();
22957
- }, Z = (V, j) => {
22957
+ }, q = (V, j) => {
22958
22958
  h.value = V, p.value = j;
22959
- }, q = async (V) => {
22959
+ }, Z = async (V) => {
22960
22960
  var S;
22961
22961
  const j = (S = V.clipboardData) == null ? void 0 : S.items;
22962
22962
  if (!j) return;
@@ -22987,9 +22987,9 @@ const wE = /* @__PURE__ */ Ne(yE, [["render", xE], ["__scopeId", "data-v-1fd8b95
22987
22987
  return Ke(p, (V, j) => {
22988
22988
  h.value = u.value[V];
22989
22989
  }), gt(() => {
22990
- window.addEventListener("paste", q);
22990
+ window.addEventListener("paste", Z);
22991
22991
  }), En(() => {
22992
- window.removeEventListener("paste", q);
22992
+ window.removeEventListener("paste", Z);
22993
22993
  }), t({
22994
22994
  chooseFiles: $
22995
22995
  }), (V, j) => {
@@ -23087,7 +23087,7 @@ const wE = /* @__PURE__ */ Ne(yE, [["render", xE], ["__scopeId", "data-v-1fd8b95
23087
23087
  ]]),
23088
23088
  onDragstart: j[3] || (j[3] = ct(() => {
23089
23089
  }, ["prevent"])),
23090
- onClick: (B) => Z(O, I)
23090
+ onClick: (B) => q(O, I)
23091
23091
  }, [
23092
23092
  pe(L1, {
23093
23093
  isMobile: e.isMobile,
@@ -23525,7 +23525,7 @@ function YE() {
23525
23525
  ...r((Ce = (le = S.content) == null ? void 0 : le.body) == null ? void 0 : Ce.attendant)
23526
23526
  ];
23527
23527
  if ((G === "remove-participant" || G === "leave-group") && O && (te.includes(O) || J.length > 0 && !J.includes(O)))
23528
- return Z(z), R(z), null;
23528
+ return q(z), R(z), null;
23529
23529
  const ae = u(
23530
23530
  I == null ? void 0 : I.participants,
23531
23531
  te,
@@ -23727,7 +23727,7 @@ function YE() {
23727
23727
  return ((z = S.internal_chat) == null ? void 0 : z.channel_id) !== A && S.id !== A;
23728
23728
  }
23729
23729
  ));
23730
- }, Z = (A) => {
23730
+ }, q = (A) => {
23731
23731
  if (!A) return;
23732
23732
  const S = h(A);
23733
23733
  S && (S.is_group ? S.chat_info = {
@@ -23735,7 +23735,7 @@ function YE() {
23735
23735
  hasNextPage: !1,
23736
23736
  currentPage: 1
23737
23737
  } : (S.messages = [], S.hasNextPage = !1, S.currentPage = 1));
23738
- }, q = (A, S) => {
23738
+ }, Z = (A, S) => {
23739
23739
  if (!A || !S) return;
23740
23740
  const z = h(A);
23741
23741
  !z || !Array.isArray(z.participants) || (z.participants = z.participants.filter(
@@ -23745,7 +23745,7 @@ function YE() {
23745
23745
  if (!A) return !1;
23746
23746
  try {
23747
23747
  const S = Si(A, "leave"), z = await xt.post(S);
23748
- return Vi(z == null ? void 0 : z.status) ? (Z(A), R(A), !0) : !1;
23748
+ return Vi(z == null ? void 0 : z.status) ? (q(A), R(A), !0) : !1;
23749
23749
  } catch (S) {
23750
23750
  return console.error("Erro ao sair do grupo:", S), !1;
23751
23751
  }
@@ -23757,7 +23757,7 @@ function YE() {
23757
23757
  const O = Si(A, "remove"), I = await xt.post(O, {
23758
23758
  participants: z
23759
23759
  });
23760
- return Vi(I == null ? void 0 : I.status) ? (q(A, S), !0) : !1;
23760
+ return Vi(I == null ? void 0 : I.status) ? (Z(A, S), !0) : !1;
23761
23761
  } catch (O) {
23762
23762
  return console.error("Erro ao remover participante:", O), !1;
23763
23763
  }
@@ -24135,8 +24135,8 @@ const JE = { class: "popper-header bg-base-300 border-b border-base-200" }, XE =
24135
24135
  loadingGroupList: D,
24136
24136
  hasMoreGroups: Y,
24137
24137
  loadNextGroupPage: R,
24138
- createGroup: Z,
24139
- fetchGroupChannels: q,
24138
+ createGroup: q,
24139
+ fetchGroupChannels: Z,
24140
24140
  fetchMessagesByChannel: V,
24141
24141
  addMessageToChannel: j,
24142
24142
  leaveGroup: A,
@@ -24174,7 +24174,7 @@ const JE = { class: "popper-header bg-base-300 border-b border-base-200" }, XE =
24174
24174
  const ke = Ks({
24175
24175
  openCreateOrEdit: k,
24176
24176
  closeCreateOrEdit: _,
24177
- fetchGroupChannels: q,
24177
+ fetchGroupChannels: Z,
24178
24178
  loadNextGroupPage: R,
24179
24179
  hasMoreGroups: Y,
24180
24180
  selectChatToOpen: ve,
@@ -24213,7 +24213,7 @@ const JE = { class: "popper-header bg-base-300 border-b border-base-200" }, XE =
24213
24213
  }, Be = async (Ue, Ge) => {
24214
24214
  w.value = [], x.value = !0;
24215
24215
  try {
24216
- return !!await Z(Ue, Ge);
24216
+ return !!await q(Ue, Ge);
24217
24217
  } catch (Ye) {
24218
24218
  return w.value = Xe(Ye), !1;
24219
24219
  } finally {
@@ -24250,7 +24250,7 @@ const JE = { class: "popper-header bg-base-300 border-b border-base-200" }, XE =
24250
24250
  !Ge && !Ye && h.value && dt(), b.value && typeof _ == "function" && _();
24251
24251
  };
24252
24252
  gt(() => {
24253
- n.isMobile || (document.addEventListener("click", ce), window.addEventListener("resize", yt)), q(1, { force: !0 }).catch((Ue) => {
24253
+ n.isMobile || (document.addEventListener("click", ce), window.addEventListener("resize", yt)), Z(1, { force: !0 }).catch((Ue) => {
24254
24254
  console.error("Erro ao carregar canais de grupo:", Ue);
24255
24255
  });
24256
24256
  }), Bt(() => {
@@ -24927,11 +24927,11 @@ const O$ = { class: "dropdown-trigger-text" }, D$ = {
24927
24927
  function R() {
24928
24928
  u("depart", m.value);
24929
24929
  }
24930
- function Z(S, z) {
24930
+ function q(S, z) {
24931
24931
  S.selected = !1, m.value.splice(z, 1), u("depart", m.value);
24932
24932
  }
24933
- const q = P(() => p.value.trim().length > 0);
24934
- Ke(q, (S) => {
24933
+ const Z = P(() => p.value.trim().length > 0);
24934
+ Ke(Z, (S) => {
24935
24935
  u("searching", S);
24936
24936
  });
24937
24937
  function V(S) {
@@ -25092,7 +25092,7 @@ const O$ = { class: "dropdown-trigger-text" }, D$ = {
25092
25092
  }, [
25093
25093
  o("span", Y$, N(I.name), 1),
25094
25094
  o("button", {
25095
- onClick: (G) => Z(I, B),
25095
+ onClick: (G) => q(I, B),
25096
25096
  class: "close-btn"
25097
25097
  }, [...z[14] || (z[14] = [
25098
25098
  o("svg", {
@@ -25253,8 +25253,8 @@ const O$ = { class: "dropdown-trigger-text" }, D$ = {
25253
25253
  emits: ["attend", "component-mounted"],
25254
25254
  setup(e, { emit: t }) {
25255
25255
  const n = e, a = X(null);
25256
- function i(q) {
25257
- a.value && !a.value.contains(q.target) && (p.value = !1);
25256
+ function i(Z) {
25257
+ a.value && !a.value.contains(Z.target) && (p.value = !1);
25258
25258
  }
25259
25259
  const r = P(() => ({
25260
25260
  "--primary-color": n.primaryColor,
@@ -25264,36 +25264,36 @@ const O$ = { class: "dropdown-trigger-text" }, D$ = {
25264
25264
  "--border-radius": n.borderRadius
25265
25265
  })), c = t, u = Sa(), h = X(""), p = X(!1), m = X([]);
25266
25266
  function y() {
25267
- const q = Array.isArray(n.attendance) ? n.attendance : n.attendance ? [n.attendance] : [];
25267
+ const Z = Array.isArray(n.attendance) ? n.attendance : n.attendance ? [n.attendance] : [];
25268
25268
  return new Set(
25269
- q.filter(Boolean).map((V) => typeof V == "object" ? V.id : V)
25269
+ Z.filter(Boolean).map((V) => typeof V == "object" ? V.id : V)
25270
25270
  );
25271
25271
  }
25272
25272
  const x = P(() => {
25273
- const q = u.attendants.filter((j) => j.status === !0), V = h.value ? q.filter(
25273
+ const Z = u.attendants.filter((j) => j.status === !0), V = h.value ? Z.filter(
25274
25274
  (j) => j.name.toLowerCase().includes(h.value.toLowerCase())
25275
- ) : q;
25275
+ ) : Z;
25276
25276
  return g(w(V));
25277
25277
  });
25278
- function w(q) {
25278
+ function w(Z) {
25279
25279
  var V;
25280
25280
  if (n.method === "remove")
25281
- return (Array.isArray(n.attendance) ? n.attendance : n.attendance ? [n.attendance] : q).filter((A) => {
25281
+ return (Array.isArray(n.attendance) ? n.attendance : n.attendance ? [n.attendance] : Z).filter((A) => {
25282
25282
  var z;
25283
25283
  return (typeof A == "object" ? A.id : A) !== ((z = n == null ? void 0 : n.attDel) == null ? void 0 : z.id);
25284
25284
  });
25285
25285
  if (n.method === "addParticipant") {
25286
25286
  const j = y();
25287
- return (V = n == null ? void 0 : n.attDel) != null && V.id && j.add(n.attDel.id), q.filter((A) => !j.has(A.id));
25287
+ return (V = n == null ? void 0 : n.attDel) != null && V.id && j.add(n.attDel.id), Z.filter((A) => !j.has(A.id));
25288
25288
  }
25289
- return q;
25289
+ return Z;
25290
25290
  }
25291
- function g(q) {
25292
- return Array.isArray(n.department) && n.department.length > 0 ? q.filter(
25291
+ function g(Z) {
25292
+ return Array.isArray(n.department) && n.department.length > 0 ? Z.filter(
25293
25293
  (V) => V.department.some(
25294
25294
  (j) => n.department.some((A) => A.id === j.id)
25295
25295
  )
25296
- ) : q;
25296
+ ) : Z;
25297
25297
  }
25298
25298
  P(() => n.variant === "expanded");
25299
25299
  const b = P(() => n.variant === "dropdown"), k = P(() => ({
@@ -25303,14 +25303,14 @@ const O$ = { class: "dropdown-trigger-text" }, D$ = {
25303
25303
  })), _ = P(() => ({
25304
25304
  gridTemplateColumns: `repeat(auto-fit, minmax(${n.minColumnWidth}, 1fr))`
25305
25305
  })), $ = P(() => {
25306
- var q;
25307
- return m.value.length > 0 ? n.multiSelect ? `Selecionados: ${m.value.length}` : `Selecionado: ${(q = m.value[0]) == null ? void 0 : q.name}` : n.placeholder;
25306
+ var Z;
25307
+ return m.value.length > 0 ? n.multiSelect ? `Selecionados: ${m.value.length}` : `Selecionado: ${(Z = m.value[0]) == null ? void 0 : Z.name}` : n.placeholder;
25308
25308
  }), M = X(n.multiSelect ? [] : "");
25309
25309
  Ke(
25310
25310
  m,
25311
- (q) => {
25311
+ (Z) => {
25312
25312
  var V;
25313
- n.multiSelect ? M.value = q.map((j) => j.id) : M.value = ((V = q[0]) == null ? void 0 : V.id) || "";
25313
+ n.multiSelect ? M.value = Z.map((j) => j.id) : M.value = ((V = Z[0]) == null ? void 0 : V.id) || "";
25314
25314
  },
25315
25315
  { deep: !0 }
25316
25316
  ), gt(() => {
@@ -25333,36 +25333,36 @@ const O$ = { class: "dropdown-trigger-text" }, D$ = {
25333
25333
  () => n.department,
25334
25334
  () => C(),
25335
25335
  { deep: !0 }
25336
- ), Ke(p, (q) => {
25337
- q || (h.value = "");
25336
+ ), Ke(p, (Z) => {
25337
+ Z || (h.value = "");
25338
25338
  });
25339
25339
  function C() {
25340
25340
  T(), D();
25341
25341
  }
25342
25342
  function T() {
25343
- u.attendants.forEach((q) => q.selected = !1), m.value = [];
25343
+ u.attendants.forEach((Z) => Z.selected = !1), m.value = [];
25344
25344
  }
25345
25345
  function D() {
25346
25346
  if (!n.preselect) return;
25347
- const q = u.attendants;
25348
- if (!(q != null && q.length)) return;
25347
+ const Z = u.attendants;
25348
+ if (!(Z != null && Z.length)) return;
25349
25349
  (Array.isArray(n.attendance) ? n.attendance : n.attendance ? [n.attendance] : []).forEach((j) => {
25350
- const A = typeof j == "object" ? j.id : j, S = q.find((z) => z.id === A);
25350
+ const A = typeof j == "object" ? j.id : j, S = Z.find((z) => z.id === A);
25351
25351
  S && !m.value.some((z) => z.id === A) && (S.selected = !0, m.value.push(S));
25352
25352
  }), c("attend", m.value);
25353
25353
  }
25354
- function Y(q) {
25355
- if (Z(q.id)) return;
25356
- const V = m.value.findIndex((j) => j.id === q.id);
25357
- V !== -1 ? (q.selected = !1, m.value.splice(V, 1)) : (n.multiSelect || T(), q.selected = !0, m.value.push(q)), c("attend", m.value), n.multiSelect || (p.value = !1);
25354
+ function Y(Z) {
25355
+ if (q(Z.id)) return;
25356
+ const V = m.value.findIndex((j) => j.id === Z.id);
25357
+ V !== -1 ? (Z.selected = !1, m.value.splice(V, 1)) : (n.multiSelect || T(), Z.selected = !0, m.value.push(Z)), c("attend", m.value), n.multiSelect || (p.value = !1);
25358
25358
  }
25359
- function R(q, V) {
25360
- q.selected = !1, m.value.splice(V, 1), c("attend", m.value);
25359
+ function R(Z, V) {
25360
+ Z.selected = !1, m.value.splice(V, 1), c("attend", m.value);
25361
25361
  }
25362
- function Z(q) {
25363
- return n.disabledItems.some((V) => typeof V == "object" ? V.id === q : V === q);
25362
+ function q(Z) {
25363
+ return n.disabledItems.some((V) => typeof V == "object" ? V.id === Z : V === Z);
25364
25364
  }
25365
- return (q, V) => {
25365
+ return (Z, V) => {
25366
25366
  var j;
25367
25367
  return l(), f("div", {
25368
25368
  class: U(["depart-select-container", k.value]),
@@ -25415,7 +25415,7 @@ const O$ = { class: "dropdown-trigger-text" }, D$ = {
25415
25415
  onClick: (S) => Y(A),
25416
25416
  class: U([{
25417
25417
  "dropdown-option-selected": A.selected,
25418
- "dropdown-option-disabled": Z(A.id)
25418
+ "dropdown-option-disabled": q(A.id)
25419
25419
  }, "dropdown-option"])
25420
25420
  }, [
25421
25421
  e.showAvatar ? (l(), f(ye, { key: 0 }, [
@@ -25452,7 +25452,7 @@ const O$ = { class: "dropdown-trigger-text" }, D$ = {
25452
25452
  d: "m4.5 12.75 6 6 9-13.5"
25453
25453
  })
25454
25454
  ], -1)
25455
- ])])) : Z(A.id) ? (l(), f("span", hL, N(e.disabledReason), 1)) : F("", !0)
25455
+ ])])) : q(A.id) ? (l(), f("span", hL, N(e.disabledReason), 1)) : F("", !0)
25456
25456
  ], 10, dL))), 128)),
25457
25457
  x.value.length === 0 ? (l(), f("div", mL, [
25458
25458
  (l(), f("svg", pL, [...V[11] || (V[11] = [
@@ -25546,7 +25546,7 @@ const O$ = { class: "dropdown-trigger-text" }, D$ = {
25546
25546
  onClick: (S) => Y(A),
25547
25547
  class: U([{
25548
25548
  selected: A.selected,
25549
- "is-disabled": Z(A.id)
25549
+ "is-disabled": q(A.id)
25550
25550
  }, "department-item bg-slate-500/20 hover:bg-primary"])
25551
25551
  }, [
25552
25552
  e.showAvatar ? (l(), f("div", CL, [
@@ -25568,7 +25568,7 @@ const O$ = { class: "dropdown-trigger-text" }, D$ = {
25568
25568
  onMouseenter: V[6] || (V[6] = (...S) => oe(Da) && oe(Da)(...S)),
25569
25569
  onMouseleave: V[7] || (V[7] = (...S) => oe(Ra) && oe(Ra)(...S))
25570
25570
  }, N(A.name), 33),
25571
- Z(A.id) ? (l(), f("span", SL, N(e.disabledReason), 1)) : F("", !0)
25571
+ q(A.id) ? (l(), f("span", SL, N(e.disabledReason), 1)) : F("", !0)
25572
25572
  ], 10, _L))), 128)) : F("", !0)
25573
25573
  ], 4)
25574
25574
  ]),
@@ -54704,7 +54704,7 @@ const q4 = {
54704
54704
  }, R = (xe) => {
54705
54705
  const ke = xe.id;
54706
54706
  return fe.value[ke] ? (ee.value[ke] ?? String(_(xe))).replace(".", ",") : String(_(xe)).replace(".", ",");
54707
- }, Z = (xe) => {
54707
+ }, q = (xe) => {
54708
54708
  if (n.readonly || te(xe)) return;
54709
54709
  const ke = h.value.find((Re) => w(Re) === xe.id);
54710
54710
  ke ? ke.quantity++ : (h.value.push({
@@ -54712,7 +54712,7 @@ const q4 = {
54712
54712
  quantity: 1,
54713
54713
  discount: 0
54714
54714
  }), ee.value[xe.id] = "0");
54715
- }, q = (xe) => {
54715
+ }, Z = (xe) => {
54716
54716
  if (n.readonly || te(xe)) return;
54717
54717
  const ke = h.value.find((Re) => w(Re) === xe.id);
54718
54718
  ke && (ke.quantity > 0 ? ke.quantity-- : ke.quantity = 0);
@@ -54999,7 +54999,7 @@ const q4 = {
54999
54999
  o("button", {
55000
55000
  disabled: te(Be) || e.readonly,
55001
55001
  class: "action-list-button bg-base-200",
55002
- onClick: (le) => q(Be)
55002
+ onClick: (le) => Z(Be)
55003
55003
  }, " - ", 8, uV),
55004
55004
  o("p", {
55005
55005
  class: U(["w-5 text-xs flex items-center justify-center font-semibold font-sans", b(Be) > 0 ? "text-white dark:text-black" : ""])
@@ -55007,7 +55007,7 @@ const q4 = {
55007
55007
  o("button", {
55008
55008
  disabled: te(Be) || e.readonly,
55009
55009
  class: "action-list-button bg-base-200",
55010
- onClick: (le) => Z(Be)
55010
+ onClick: (le) => q(Be)
55011
55011
  }, " + ", 8, dV)
55012
55012
  ]),
55013
55013
  b(Be) > 0 ? (l(), _e(Re, {
@@ -55502,19 +55502,19 @@ const q4 = {
55502
55502
  () => !y.value && !$.value
55503
55503
  ), R = P(
55504
55504
  () => M.value ? c.value[0] ?? null : n.loggedAttendant
55505
- ), Z = P(
55505
+ ), q = P(
55506
55506
  () => {
55507
55507
  var se;
55508
55508
  return ((se = R.value) == null ? void 0 : se.id) ?? null;
55509
55509
  }
55510
- ), q = P(
55511
- () => String(Z.value) === String(n.loggedAttendantId)
55510
+ ), Z = P(
55511
+ () => String(q.value) === String(n.loggedAttendantId)
55512
55512
  ), V = P(() => M.value ? "Neste fluxo, você pode atribuir qualquer atendente do departamento selecionado." : $.value && !n.hasDepartmentMembership($.value) ? "Você não pertence ao departamento selecionado, então não pode criar carteira nele." : T.value ? "Este contato já possui um vínculo de carteira nesse departamento." : "Neste fluxo, o atendente responsável deve ser você."), j = P(() => !M.value), A = P(() => !M.value && T.value ? "Já vinculado no departamento" : M.value ? "Já encarteirado" : "Somente você"), S = P(() => {
55513
55513
  var ee;
55514
55514
  if (!n.contactId || !R.value || !$.value)
55515
55515
  return !1;
55516
55516
  const se = (ee = R.value) == null ? void 0 : ee.id, ae = $.value;
55517
- return !M.value && (!n.loggedAttendantId || !q.value || !n.hasDepartmentMembership(ae) || T.value) ? !1 : !h.value.some(
55517
+ return !M.value && (!n.loggedAttendantId || !Z.value || !n.hasDepartmentMembership(ae) || T.value) ? !1 : !h.value.some(
55518
55518
  (fe) => String(fe.attendant_id) === String(se) && String(fe.department_id) === String(ae)
55519
55519
  );
55520
55520
  }), z = () => {
@@ -55992,7 +55992,7 @@ const q4 = {
55992
55992
  canRemove: _(G) || g(G) && String(B) === String(y.value)
55993
55993
  };
55994
55994
  })
55995
- ), Z = async () => {
55995
+ ), q = async () => {
55996
55996
  const O = [];
55997
55997
  !n.loaded && n.attendants.length === 0 && O.push(
55998
55998
  n.fetchAttendants().then(() => {
@@ -56003,7 +56003,7 @@ const q4 = {
56003
56003
  a.loaded = !0;
56004
56004
  })
56005
56005
  ), O.length > 0 && await Promise.all(O);
56006
- }, q = async ({ force: O = !1 } = {}) => {
56006
+ }, Z = async ({ force: O = !1 } = {}) => {
56007
56007
  var B, G;
56008
56008
  const I = t.contactId;
56009
56009
  if (!I) {
@@ -56014,7 +56014,7 @@ const q4 = {
56014
56014
  try {
56015
56015
  r.value = !0, c.value = "";
56016
56016
  const [, { data: J }] = await Promise.all([
56017
- Z(),
56017
+ q(),
56018
56018
  xt.get(g1(I))
56019
56019
  ]);
56020
56020
  i.value = $(J), u.value = I;
@@ -56092,7 +56092,7 @@ const q4 = {
56092
56092
  return Ke(
56093
56093
  () => [t.pageState, t.contactId],
56094
56094
  async ([O, I]) => {
56095
- O === "wallet" && I && q();
56095
+ O === "wallet" && I && Z();
56096
56096
  },
56097
56097
  { immediate: !0 }
56098
56098
  ), (O, I) => (l(), f("div", Nj, [
@@ -56123,7 +56123,7 @@ const q4 = {
56123
56123
  o("button", {
56124
56124
  class: "wallet-refresh-btn",
56125
56125
  disabled: r.value || !t.contactId,
56126
- onClick: I[0] || (I[0] = (B) => q({ force: !0 }))
56126
+ onClick: I[0] || (I[0] = (B) => Z({ force: !0 }))
56127
56127
  }, [...I[4] || (I[4] = [
56128
56128
  o("svg", {
56129
56129
  class: "size-3.5",
@@ -56160,7 +56160,7 @@ const q4 = {
56160
56160
  o("p", Jj, N(c.value), 1),
56161
56161
  o("button", {
56162
56162
  class: "wallet-retry-btn",
56163
- onClick: I[1] || (I[1] = (B) => q({ force: !0 }))
56163
+ onClick: I[1] || (I[1] = (B) => Z({ force: !0 }))
56164
56164
  }, " Tentar novamente ")
56165
56165
  ])) : R.value.length === 0 ? (l(), f("div", Xj, [...I[9] || (I[9] = [
56166
56166
  o("svg", {
@@ -57458,9 +57458,9 @@ const q4 = {
57458
57458
  return n.size === "large" && G.push("merge-card__avatar--lg"), n.avatarVariant === "brand" ? G.push("merge-card__avatar--brand") : n.selected ? G.push("merge-card__avatar--selected") : n.variant === "primary" ? G.push("merge-card__avatar--primary") : n.variant === "danger" && G.push("merge-card__avatar--danger"), G;
57459
57459
  }), Y = P(() => u.value ? "flex min-w-0 flex-1 flex-col gap-1" : "merge-card__info"), R = () => {
57460
57460
  !u.value && n.selectable && a("select", n.contact);
57461
- }, Z = N4(() => n.contact), q = V4(() => n.contact), V = j4(() => n.contact), j = Z4(
57462
- Z,
57461
+ }, q = N4(() => n.contact), Z = V4(() => n.contact), V = j4(() => n.contact), j = Z4(
57463
57462
  q,
57463
+ Z,
57464
57464
  V
57465
57465
  ), A = X(!1), S = X(!1), z = X(!1), O = (G) => {
57466
57466
  G.stopPropagation(), A.value = !A.value, S.value = !1, z.value = !1;
@@ -57510,7 +57510,7 @@ const q4 = {
57510
57510
  "instagram-user-name": e.contact.instagram_user_name
57511
57511
  }, null, 8, ["instagram-user-name"])) : F("", !0),
57512
57512
  !u.value && oe(j) ? (l(), f("div", Lq, [
57513
- oe(Z).length ? (l(), _e(te, {
57513
+ oe(q).length ? (l(), _e(te, {
57514
57514
  key: 0,
57515
57515
  placement: "bottom-start",
57516
57516
  class: "popper-dark",
@@ -57524,7 +57524,7 @@ const q4 = {
57524
57524
  }, [
57525
57525
  J[5] || (J[5] = o("p", { class: "stack-popover__title stack-popover__title--wa" }, " WhatsApp ", -1)),
57526
57526
  o("div", Tq, [
57527
- (l(!0), f(ye, null, He(oe(Z), (ee) => (l(), f("div", {
57527
+ (l(!0), f(ye, null, He(oe(q), (ee) => (l(), f("div", {
57528
57528
  key: ee.id,
57529
57529
  class: "stack-popover__item stack-popover__item--wa"
57530
57530
  }, [
@@ -57549,12 +57549,12 @@ const q4 = {
57549
57549
  o("path", { d: "M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z" })
57550
57550
  ], -1)),
57551
57551
  J[4] || (J[4] = o("span", null, "WhatsApp", -1)),
57552
- o("span", Pq, N(oe(Z).length), 1)
57552
+ o("span", Pq, N(oe(q).length), 1)
57553
57553
  ])
57554
57554
  ]),
57555
57555
  _: 1
57556
57556
  })) : F("", !0),
57557
- oe(q).length ? (l(), _e(te, {
57557
+ oe(Z).length ? (l(), _e(te, {
57558
57558
  key: 1,
57559
57559
  placement: "bottom",
57560
57560
  class: "popper-dark",
@@ -57568,7 +57568,7 @@ const q4 = {
57568
57568
  }, [
57569
57569
  J[8] || (J[8] = o("p", { class: "stack-popover__title stack-popover__title--ig" }, " Instagram ", -1)),
57570
57570
  o("div", Oq, [
57571
- (l(!0), f(ye, null, He(oe(q), (ee) => (l(), f("div", {
57571
+ (l(!0), f(ye, null, He(oe(Z), (ee) => (l(), f("div", {
57572
57572
  key: ee.id,
57573
57573
  class: "stack-popover__item stack-popover__item--ig"
57574
57574
  }, [
@@ -57620,7 +57620,7 @@ const q4 = {
57620
57620
  })
57621
57621
  ], -1)),
57622
57622
  J[7] || (J[7] = o("span", { class: "conn-btn__ig-label" }, "Instagram", -1)),
57623
- o("span", Fq, N(oe(q).length), 1)
57623
+ o("span", Fq, N(oe(Z).length), 1)
57624
57624
  ])
57625
57625
  ]),
57626
57626
  _: 1
@@ -58048,13 +58048,13 @@ const sG = /* @__PURE__ */ Ne(tG, [["render", aG]]), oG = {
58048
58048
  return g.forEach(($) => {
58049
58049
  const M = x.get($), C = w.get($), T = u(M), D = u(C), Y = !c(M == null ? void 0 : M.content), R = !c(C == null ? void 0 : C.content);
58050
58050
  if (T !== D && (Y || R)) {
58051
- const Z = Y || !R ? M : C, q = !Y && R, V = h(Z), j = q ? M : C, A = j && !c(j.content) && u(j) !== u(Z) ? h(j) : null;
58051
+ const q = Y || !R ? M : C, Z = !Y && R, V = h(q), j = Z ? M : C, A = j && !c(j.content) && u(j) !== u(q) ? h(j) : null;
58052
58052
  b.push({
58053
- id: Z.id,
58054
- name: Z.name,
58053
+ id: q.id,
58054
+ name: q.name,
58055
58055
  finalValue: V,
58056
58056
  discardedValue: A,
58057
- incorporatedFromChild: !!q
58057
+ incorporatedFromChild: !!Z
58058
58058
  });
58059
58059
  }
58060
58060
  }), {
@@ -58285,7 +58285,7 @@ const sG = /* @__PURE__ */ Ne(tG, [["render", aG]]), oG = {
58285
58285
  },
58286
58286
  setup(e) {
58287
58287
  const t = e, n = P(() => {
58288
- var k, _, $, M, C, T, D, Y, R, Z, q, V, j, A, S, z;
58288
+ var k, _, $, M, C, T, D, Y, R, q, Z, V, j, A, S, z;
58289
58289
  const x = t.mergePreview || {
58290
58290
  name: ((k = t.parentContact) == null ? void 0 : k.name) || ((_ = t.childContact) == null ? void 0 : _.name),
58291
58291
  telephone: (($ = t.parentContact) == null ? void 0 : $.telephone) || ((M = t.childContact) == null ? void 0 : M.telephone),
@@ -58293,9 +58293,9 @@ const sG = /* @__PURE__ */ Ne(tG, [["render", aG]]), oG = {
58293
58293
  instagram_user_name: ((D = t.parentContact) == null ? void 0 : D.instagram_user_name) || ((Y = t.childContact) == null ? void 0 : Y.instagram_user_name)
58294
58294
  }, w = [
58295
58295
  ...((R = t.parentContact) == null ? void 0 : R.whatsapp_infos) || [],
58296
- ...((Z = t.childContact) == null ? void 0 : Z.whatsapp_infos) || []
58296
+ ...((q = t.childContact) == null ? void 0 : q.whatsapp_infos) || []
58297
58297
  ], g = [
58298
- ...((q = t.parentContact) == null ? void 0 : q.instagram_infos) || [],
58298
+ ...((Z = t.parentContact) == null ? void 0 : Z.instagram_infos) || [],
58299
58299
  ...((V = t.childContact) == null ? void 0 : V.instagram_infos) || []
58300
58300
  ], b = [
58301
58301
  ...((j = t.parentContact) == null ? void 0 : j.telegram_infos) || [],
@@ -58310,38 +58310,38 @@ const sG = /* @__PURE__ */ Ne(tG, [["render", aG]]), oG = {
58310
58310
  };
58311
58311
  }), a = X(0), i = X(0), r = X(0), c = X(0), u = X(!1), h = X(!1), p = P(() => {
58312
58312
  var $, M, C, T, D, Y;
58313
- const x = ((($ = t.parentContact) == null ? void 0 : $.whatsapp_infos) || []).filter((R) => R == null ? void 0 : R.instance).map((R, Z) => ({
58314
- id: R.id || `pwa-${Z}`,
58313
+ const x = ((($ = t.parentContact) == null ? void 0 : $.whatsapp_infos) || []).filter((R) => R == null ? void 0 : R.instance).map((R, q) => ({
58314
+ id: R.id || `pwa-${q}`,
58315
58315
  platform: "whatsapp",
58316
58316
  instanceName: R.instance,
58317
58317
  userName: R.whatsapp_user_name || "",
58318
58318
  fromChild: !1
58319
- })), w = (((M = t.childContact) == null ? void 0 : M.whatsapp_infos) || []).filter((R) => R == null ? void 0 : R.instance).map((R, Z) => ({
58320
- id: R.id || `cwa-${Z}`,
58319
+ })), w = (((M = t.childContact) == null ? void 0 : M.whatsapp_infos) || []).filter((R) => R == null ? void 0 : R.instance).map((R, q) => ({
58320
+ id: R.id || `cwa-${q}`,
58321
58321
  platform: "whatsapp",
58322
58322
  instanceName: R.instance,
58323
58323
  userName: R.whatsapp_user_name || "",
58324
58324
  fromChild: !0
58325
- })), g = (((C = t.parentContact) == null ? void 0 : C.instagram_infos) || []).filter((R) => R == null ? void 0 : R.instance).map((R, Z) => ({
58326
- id: R.id || `pig-${Z}`,
58325
+ })), g = (((C = t.parentContact) == null ? void 0 : C.instagram_infos) || []).filter((R) => R == null ? void 0 : R.instance).map((R, q) => ({
58326
+ id: R.id || `pig-${q}`,
58327
58327
  platform: "instagram",
58328
58328
  instanceName: R.instance,
58329
58329
  userName: R.instagram_user_name || "",
58330
58330
  fromChild: !1
58331
- })), b = (((T = t.childContact) == null ? void 0 : T.instagram_infos) || []).filter((R) => R == null ? void 0 : R.instance).map((R, Z) => ({
58332
- id: R.id || `cig-${Z}`,
58331
+ })), b = (((T = t.childContact) == null ? void 0 : T.instagram_infos) || []).filter((R) => R == null ? void 0 : R.instance).map((R, q) => ({
58332
+ id: R.id || `cig-${q}`,
58333
58333
  platform: "instagram",
58334
58334
  instanceName: R.instance,
58335
58335
  userName: R.instagram_user_name || "",
58336
58336
  fromChild: !0
58337
- })), k = (((D = t.parentContact) == null ? void 0 : D.telegram_infos) || []).filter((R) => R == null ? void 0 : R.instance).map((R, Z) => ({
58338
- id: R.id || `ptg-${Z}`,
58337
+ })), k = (((D = t.parentContact) == null ? void 0 : D.telegram_infos) || []).filter((R) => R == null ? void 0 : R.instance).map((R, q) => ({
58338
+ id: R.id || `ptg-${q}`,
58339
58339
  platform: "telegram",
58340
58340
  instanceName: R.instance,
58341
58341
  userName: R.telegram_user_name || "",
58342
58342
  fromChild: !1
58343
- })), _ = (((Y = t.childContact) == null ? void 0 : Y.telegram_infos) || []).filter((R) => R == null ? void 0 : R.instance).map((R, Z) => ({
58344
- id: R.id || `ctg-${Z}`,
58343
+ })), _ = (((Y = t.childContact) == null ? void 0 : Y.telegram_infos) || []).filter((R) => R == null ? void 0 : R.instance).map((R, q) => ({
58344
+ id: R.id || `ctg-${q}`,
58345
58345
  platform: "telegram",
58346
58346
  instanceName: R.instance,
58347
58347
  userName: R.telegram_user_name || "",
@@ -58846,7 +58846,7 @@ const dW = {
58846
58846
  )
58847
58847
  ), R = P(
58848
58848
  () => T.value && D.value.canMerge
58849
- ), Z = P(() => D.value.canMerge && b.value && !w.value && T.value), q = P(
58849
+ ), q = P(() => D.value.canMerge && b.value && !w.value && T.value), Z = P(
58850
58850
  () => r.value.filter((I) => {
58851
58851
  var B;
58852
58852
  return I.id !== ((B = M.value) == null ? void 0 : B.id);
@@ -58863,7 +58863,7 @@ const dW = {
58863
58863
  }, z = () => {
58864
58864
  x.value = "select", b.value = !1, g.value = "";
58865
58865
  }, O = async () => {
58866
- if (!Z.value) return;
58866
+ if (!q.value) return;
58867
58867
  const I = {
58868
58868
  parentId: M.value.id ?? null,
58869
58869
  childId: C.value.id ?? null,
@@ -59012,8 +59012,8 @@ const dW = {
59012
59012
  class: "candidates-list",
59013
59013
  key: oe(h)
59014
59014
  }, [
59015
- q.value.length > 0 ? (l(), f(ye, { key: 0 }, [
59016
- (l(!0), f(ye, null, He(q.value, (G) => {
59015
+ Z.value.length > 0 ? (l(), f(ye, { key: 0 }, [
59016
+ (l(!0), f(ye, null, He(Z.value, (G) => {
59017
59017
  var J;
59018
59018
  return l(), _e(Xs, {
59019
59019
  key: G.id,
@@ -59163,7 +59163,7 @@ const dW = {
59163
59163
  ])], 8, HW)) : (l(), f("button", {
59164
59164
  key: 3,
59165
59165
  class: "btn-primary",
59166
- disabled: !Z.value,
59166
+ disabled: !q.value,
59167
59167
  onClick: O
59168
59168
  }, [
59169
59169
  w.value ? (l(), f(ye, { key: 0 }, [
@@ -59394,15 +59394,15 @@ const dW = {
59394
59394
  }), En(() => {
59395
59395
  window.removeEventListener("resize", R);
59396
59396
  });
59397
- const Z = P(() => Y.value >= 640);
59397
+ const q = P(() => Y.value >= 640);
59398
59398
  Ke(
59399
- Z,
59399
+ q,
59400
59400
  (j, A) => {
59401
59401
  A ? a.value = "contact" : !A && j && (a.value = "data");
59402
59402
  },
59403
59403
  { immediate: !0 }
59404
59404
  );
59405
- const q = [
59405
+ const Z = [
59406
59406
  { label: "Informações", value: "data" },
59407
59407
  {
59408
59408
  label: "Produtos",
@@ -59429,8 +59429,8 @@ const dW = {
59429
59429
  }
59430
59430
  }
59431
59431
  ], V = P(() => {
59432
- const j = { label: "Contato", value: "contact" }, A = q.filter((S) => S.value !== "contact");
59433
- return i.hasCrmPlus ? Z.value ? [...A] : [j, ...A] : [j, ...A.filter((S) => S.value !== "products" && S.value !== "wallet")];
59432
+ const j = { label: "Contato", value: "contact" }, A = Z.filter((S) => S.value !== "contact");
59433
+ return i.hasCrmPlus ? q.value ? [...A] : [j, ...A] : [j, ...A.filter((S) => S.value !== "products" && S.value !== "wallet")];
59434
59434
  });
59435
59435
  return (j, A) => {
59436
59436
  var z, O, I;
@@ -59507,18 +59507,18 @@ const dW = {
59507
59507
  ])
59508
59508
  ]),
59509
59509
  o("div", {
59510
- class: U([Z.value ? "grid grid-cols-2" : "flex", "modal-form-body"])
59510
+ class: U([q.value ? "grid grid-cols-2" : "flex", "modal-form-body"])
59511
59511
  }, [
59512
59512
  o("section", {
59513
- class: U([Z.value ? "p-2" : "p-1.5", "left-column"])
59513
+ class: U([q.value ? "p-2" : "p-1.5", "left-column"])
59514
59514
  }, [
59515
- Z.value ? F("", !0) : (l(), _e(H4, {
59515
+ q.value ? F("", !0) : (l(), _e(H4, {
59516
59516
  key: 0,
59517
59517
  modelValue: a.value,
59518
59518
  "onUpdate:modelValue": A[1] || (A[1] = (B) => a.value = B),
59519
59519
  buttons: V.value
59520
59520
  }, null, 8, ["modelValue", "buttons"])),
59521
- Z.value || a.value === "contact" ? (l(), f("div", tU, [
59521
+ q.value || a.value === "contact" ? (l(), f("div", tU, [
59522
59522
  pe(Sq, {
59523
59523
  "has-crm-plus": e.hasCrmPlus,
59524
59524
  outcome: r.outcome,
@@ -59535,7 +59535,7 @@ const dW = {
59535
59535
  onPhotoRefresh: A[5] || (A[5] = (B) => n("photo-refresh", B))
59536
59536
  }, null, 8, ["has-crm-plus", "outcome", "rating", "photo", "name", "blocked", "can-block-contacts", "contact-id"])
59537
59537
  ])) : F("", !0),
59538
- Z.value || a.value === "contact" ? (l(), f("div", nU, [
59538
+ q.value || a.value === "contact" ? (l(), f("div", nU, [
59539
59539
  o("div", aU, [
59540
59540
  pe(V0, {
59541
59541
  content: m.value[0],
@@ -59617,7 +59617,7 @@ const dW = {
59617
59617
  ])
59618
59618
  ])) : F("", !0)
59619
59619
  ])) : F("", !0),
59620
- !Z.value && a.value !== "contact" ? (l(), f("section", cU, [
59620
+ !q.value && a.value !== "contact" ? (l(), f("section", cU, [
59621
59621
  pe(Gd, {
59622
59622
  "page-state": a.value,
59623
59623
  "onUpdate:pageState": A[9] || (A[9] = (B) => a.value = B),
@@ -59638,13 +59638,13 @@ const dW = {
59638
59638
  "department-bypass": e.departmentBypass,
59639
59639
  "current-attendance": e.currentAttendance,
59640
59640
  supervisor: i.supervisor,
59641
- "is-large-screen": Z.value,
59641
+ "is-large-screen": q.value,
59642
59642
  "contact-id": r.id,
59643
59643
  contact: r
59644
59644
  }, null, 8, ["page-state", "telephone", "country", "instagram-user-name", "segmentation-fields", "products", "view-contact-number", "has-crm-plus", "handler-toggle-buttons", "all-products", "department-bypass", "current-attendance", "supervisor", "is-large-screen", "contact-id", "contact"])
59645
59645
  ])) : F("", !0)
59646
59646
  ], 2),
59647
- Z.value ? (l(), f("section", uU, [
59647
+ q.value ? (l(), f("section", uU, [
59648
59648
  pe(Gd, {
59649
59649
  "page-state": a.value,
59650
59650
  "onUpdate:pageState": A[15] || (A[15] = (B) => a.value = B),
@@ -59665,7 +59665,7 @@ const dW = {
59665
59665
  "department-bypass": e.departmentBypass,
59666
59666
  "current-attendance": e.currentAttendance,
59667
59667
  supervisor: i.supervisor,
59668
- "is-large-screen": Z.value,
59668
+ "is-large-screen": q.value,
59669
59669
  "contact-id": r.id,
59670
59670
  contact: r
59671
59671
  }, null, 8, ["page-state", "telephone", "country", "instagram-user-name", "segmentation-fields", "products", "view-contact-number", "has-crm-plus", "handler-toggle-buttons", "all-products", "department-bypass", "current-attendance", "supervisor", "is-large-screen", "contact-id", "contact"])
@@ -60279,8 +60279,8 @@ const qU = { class: "relative flex items-start gap-2.5" }, GU = { class: "min-w-
60279
60279
  triggerRef: D,
60280
60280
  mounted: Y,
60281
60281
  open: R,
60282
- panelStyle: Z,
60283
- placement: q,
60282
+ panelStyle: q,
60283
+ placement: Z,
60284
60284
  scheduleOpen: V,
60285
60285
  scheduleClose: j,
60286
60286
  closeNow: A
@@ -60435,8 +60435,8 @@ const qU = { class: "relative flex items-start gap-2.5" }, GU = { class: "min-w-
60435
60435
  default: Ae(() => [
60436
60436
  oe(R) ? (l(), f("div", {
60437
60437
  key: 0,
60438
- class: U(["sm-hover-panel achievement-hint", `sm-hover-panel--${oe(q)}`]),
60439
- style: Ve([oe(Z), k.value]),
60438
+ class: U(["sm-hover-panel achievement-hint", `sm-hover-panel--${oe(Z)}`]),
60439
+ style: Ve([oe(q), k.value]),
60440
60440
  onMouseenter: O[1] || (O[1] = (...I) => oe(V) && oe(V)(...I)),
60441
60441
  onMouseleave: O[2] || (O[2] = (...I) => oe(j) && oe(j)(...I))
60442
60442
  }, [
@@ -62106,10 +62106,10 @@ var { min: us, max: Vn, abs: Kd, floor: OY } = Math, rf = (e, t, n) => us(n, Vn(
62106
62106
  const G = Ps(z, O, void 0, B);
62107
62107
  return [G, Ps(z, I, G)];
62108
62108
  }
62109
- })(M, A, S, k[0]), R = () => mr(M, M.l), Z = (A, S) => {
62109
+ })(M, A, S, k[0]), R = () => mr(M, M.l), q = (A, S) => {
62110
62110
  const z = mr(M, A) - y;
62111
- return S ? R() - z - q(A) : z;
62112
- }, q = (A) => uf(M, A), V = (A, S = -1) => M.t[A] === S, j = (A) => {
62111
+ return S ? R() - z - Z(A) : z;
62112
+ }, Z = (A) => uf(M, A), V = (A, S = -1) => M.t[A] === S, j = (A) => {
62113
62113
  A && (df() && w !== 0 || b && g === 1 ? y += A : m += A);
62114
62114
  };
62115
62115
  return {
@@ -62130,8 +62130,8 @@ var { min: us, max: Vn, abs: Kd, floor: OY } = Math, rf = (e, t, n) => us(n, Vn(
62130
62130
  },
62131
62131
  S: (A) => Ps(M, A - h),
62132
62132
  I: V,
62133
- O: Z,
62134
- k: q,
62133
+ O: q,
62134
+ k: Z,
62135
62135
  j: () => M.l,
62136
62136
  N: () => p,
62137
62137
  B: () => w !== 0,
@@ -62169,13 +62169,13 @@ var { min: us, max: Vn, abs: Kd, floor: OY } = Math, rf = (e, t, n) => us(n, Vn(
62169
62169
  if (g === 2) se = !0;
62170
62170
  else if (b && g === 1) se = J < b[0];
62171
62171
  else {
62172
- const ae = T(), ee = Z(J), fe = q(J);
62172
+ const ae = T(), ee = q(J), fe = Z(J);
62173
62173
  se = w !== 1 && g === 0 ? ee + fe <= ae : ee < ae && ee + fe < ae + u;
62174
62174
  }
62175
- return se && (G += te - q(J)), G;
62175
+ return se && (G += te - Z(J)), G;
62176
62176
  }, 0));
62177
62177
  for (const [G, J] of B) {
62178
- const te = q(G), se = RY(M, G, J);
62178
+ const te = Z(G), se = RY(M, G, J);
62179
62179
  i && (_ += se ? J : J - te);
62180
62180
  }
62181
62181
  i && u && _ > u && (j(((G, J) => {
@@ -62427,22 +62427,22 @@ var { min: us, max: Vn, abs: Kd, floor: OY } = Math, rf = (e, t, n) => us(n, Vn(
62427
62427
  };
62428
62428
  })(u, r), p = ((g, b) => {
62429
62429
  let k, _, $ = H1(), M = !1;
62430
- const C = b ? "scrollLeft" : "scrollTop", T = b ? "overflowX" : "overflowY", [D, Y] = qY(g, () => $[0], (R, Z) => {
62431
- R = i1(R, M), Z ? k.scrollTo({
62430
+ const C = b ? "scrollLeft" : "scrollTop", T = b ? "overflowX" : "overflowY", [D, Y] = qY(g, () => $[0], (R, q) => {
62431
+ R = i1(R, M), q ? k.scrollTo({
62432
62432
  [b ? "left" : "top"]: R,
62433
62433
  behavior: "smooth"
62434
62434
  }) : k[C] = R;
62435
62435
  });
62436
62436
  return {
62437
- oe(R, Z) {
62438
- k = Z, b && (M = getComputedStyle(Z).direction === "rtl"), _ = ZY(g, Z, b, () => i1(Z[C], M), (q, V, j) => {
62437
+ oe(R, q) {
62438
+ k = q, b && (M = getComputedStyle(q).direction === "rtl"), _ = ZY(g, q, b, () => i1(q[C], M), (Z, V, j) => {
62439
62439
  if (j) {
62440
- const A = Z.style, S = A[T];
62440
+ const A = q.style, S = A[T];
62441
62441
  A[T] = "hidden", Y0(() => {
62442
62442
  A[T] = S;
62443
62443
  });
62444
62444
  }
62445
- Z[C] = i1(g.N() + q, M), V && Y();
62445
+ q[C] = i1(g.N() + Z, M), V && Y();
62446
62446
  }), $[1](!0);
62447
62447
  },
62448
62448
  p() {
@@ -62455,16 +62455,16 @@ var { min: us, max: Vn, abs: Kd, floor: OY } = Math, rf = (e, t, n) => us(n, Vn(
62455
62455
  ie(R) {
62456
62456
  R += g.N(), D(() => R);
62457
62457
  },
62458
- le(R, { align: Z, smooth: q, offset: V = 0 } = {}) {
62459
- if (R = rf(R, 0, g.j() - 1), Z === "nearest") {
62458
+ le(R, { align: q, smooth: Z, offset: V = 0 } = {}) {
62459
+ if (R = rf(R, 0, g.j() - 1), q === "nearest") {
62460
62460
  const j = g.O(R), A = g.N();
62461
- if (j < A) Z = "start";
62461
+ if (j < A) q = "start";
62462
62462
  else {
62463
62463
  if (!(j + g.k(R) > A + g.T())) return;
62464
- Z = "end";
62464
+ q = "end";
62465
62465
  }
62466
62466
  }
62467
- D(() => V + g.q() + g.O(R) + (Z === "end" ? g.k(R) - g.T() : Z === "center" ? (g.k(R) - g.T()) / 2 : 0), q);
62467
+ D(() => V + g.q() + g.O(R) + (q === "end" ? g.k(R) - g.T() : q === "center" ? (g.k(R) - g.T()) / 2 : 0), Z);
62468
62468
  },
62469
62469
  ce: () => {
62470
62470
  _ && _.V();
@@ -62696,12 +62696,12 @@ const KY = {
62696
62696
  });
62697
62697
  const T = _.length - C, D = /* @__PURE__ */ new Map();
62698
62698
  _.forEach((Y, R) => D.set(Y, R)), k.forEach((Y, R) => {
62699
- const Z = D.get(Y);
62700
- if (Z === void 0) {
62699
+ const q = D.get(Y);
62700
+ if (q === void 0) {
62701
62701
  R < T && x(Y);
62702
62702
  return;
62703
62703
  }
62704
- R < Z - M[Z] && x(Y);
62704
+ R < q - M[q] && x(Y);
62705
62705
  });
62706
62706
  });
62707
62707
  let w = !1;
@@ -63487,15 +63487,15 @@ const gJ = /* @__PURE__ */ Ne(mJ, [["render", vJ]]), yJ = { class: "-mx-2" }, bJ
63487
63487
  return typeof D != "string" ? !1 : /^https:\/\/[^\s/$.?#].[^\s]*$/i.test(D.trim());
63488
63488
  }
63489
63489
  function x() {
63490
- var Z, q;
63491
- const D = (Z = n.content) == null ? void 0 : Z.headers;
63490
+ var q, Z;
63491
+ const D = (q = n.content) == null ? void 0 : q.headers;
63492
63492
  if (!D) return { kind: null, value: "" };
63493
63493
  const Y = String((D == null ? void 0 : D.type) || "").toLowerCase(), R = (D == null ? void 0 : D.content) ?? (D == null ? void 0 : D.media) ?? "";
63494
63494
  if (["text", "image", "video", "document"].includes(Y))
63495
63495
  return { kind: Y, value: R };
63496
63496
  if (typeof R == "string" && y(R))
63497
63497
  try {
63498
- const V = (q = new URL(R).pathname.split(".").pop()) == null ? void 0 : q.toLowerCase();
63498
+ const V = (Z = new URL(R).pathname.split(".").pop()) == null ? void 0 : Z.toLowerCase();
63499
63499
  if (["jpeg", "jpg", "png", "gif", "webp"].includes(V))
63500
63500
  return { kind: "image", value: R };
63501
63501
  if (["mp4", "mov", "webm"].includes(V)) return { kind: "video", value: R };
@@ -63512,7 +63512,7 @@ const gJ = /* @__PURE__ */ Ne(mJ, [["render", vJ]]), yJ = { class: "-mx-2" }, bJ
63512
63512
  });
63513
63513
  }
63514
63514
  return (D, Y) => {
63515
- var R, Z;
63515
+ var R, q;
63516
63516
  return l(), f("div", NJ, [
63517
63517
  (R = e.content) != null && R.headers ? (l(), f("div", VJ, [
63518
63518
  ["image", "video", "document"].includes(oe(w)) && y(oe(g)) ? (l(), f("section", jJ, [
@@ -63533,7 +63533,7 @@ const gJ = /* @__PURE__ */ Ne(mJ, [["render", vJ]]), yJ = { class: "-mx-2" }, bJ
63533
63533
  class: "w-full h-96 rounded"
63534
63534
  }, null, 8, GJ)) : F("", !0)
63535
63535
  ])) : F("", !0),
63536
- (Z = e.content.headers) != null && Z.text ? (l(), f("p", WJ, [
63536
+ (q = e.content.headers) != null && q.text ? (l(), f("p", WJ, [
63537
63537
  pe(nn, {
63538
63538
  content: e.content.headers.text || e.content.headers.text
63539
63539
  }, null, 8, ["content"])
@@ -63593,11 +63593,11 @@ const gJ = /* @__PURE__ */ Ne(mJ, [["render", vJ]]), yJ = { class: "-mx-2" }, bJ
63593
63593
  ])
63594
63594
  ])
63595
63595
  ])) : F("", !0),
63596
- (l(!0), f(ye, null, He(u.value, (q, V) => (l(), f("div", {
63597
- key: q.id || q.type || q.text,
63596
+ (l(!0), f(ye, null, He(u.value, (Z, V) => (l(), f("div", {
63597
+ key: Z.id || Z.type || Z.text,
63598
63598
  class: "-mx-2"
63599
63599
  }, [
63600
- q.type !== "review_and_pay" ? (l(), f("button", {
63600
+ Z.type !== "review_and_pay" ? (l(), f("button", {
63601
63601
  key: 0,
63602
63602
  class: U([
63603
63603
  "group flex border-b border-base-100 w-full items-center justify-center gap-1 bg-base-200 px-3 py-2 text-primary hover:bg-base-100 transition",
@@ -63606,10 +63606,10 @@ const gJ = /* @__PURE__ */ Ne(mJ, [["render", vJ]]), yJ = { class: "-mx-2" }, bJ
63606
63606
  onClick: b
63607
63607
  }, [
63608
63608
  o("span", {
63609
- innerHTML: m[q.type] || m.voice_call,
63609
+ innerHTML: m[Z.type] || m.voice_call,
63610
63610
  class: "inline-flex"
63611
63611
  }, null, 8, iX),
63612
- o("span", rX, N((q == null ? void 0 : q.text) || r[q == null ? void 0 : q.type] || "sem texto"), 1)
63612
+ o("span", rX, N((Z == null ? void 0 : Z.text) || r[Z == null ? void 0 : Z.type] || "sem texto"), 1)
63613
63613
  ], 2)) : F("", !0)
63614
63614
  ]))), 128))
63615
63615
  ]);
@@ -63768,7 +63768,7 @@ const mX = /* @__PURE__ */ Ne(dX, [["render", hX]]), pX = ["src"], vX = ["aria-l
63768
63768
  const O = Math.min(Math.max(S, 0), h.value || 0);
63769
63769
  z.currentTime = O, u.value = O;
63770
63770
  }
63771
- function Z(S) {
63771
+ function q(S) {
63772
63772
  var I;
63773
63773
  const z = (I = n.value) == null ? void 0 : I.getBoundingClientRect();
63774
63774
  if (!z) return 0;
@@ -63778,14 +63778,14 @@ const mX = /* @__PURE__ */ Ne(dX, [["render", hX]]), pX = ["src"], vX = ["aria-l
63778
63778
  );
63779
63779
  return (O < 0 ? O + 2 * Math.PI : O) / (2 * Math.PI);
63780
63780
  }
63781
- function q(S) {
63782
- R(Z(S) * h.value);
63781
+ function Z(S) {
63782
+ R(q(S) * h.value);
63783
63783
  }
63784
63784
  function V() {
63785
- c.value = !1, window.removeEventListener("pointermove", q), window.removeEventListener("pointerup", V), window.removeEventListener("pointercancel", V);
63785
+ c.value = !1, window.removeEventListener("pointermove", Z), window.removeEventListener("pointerup", V), window.removeEventListener("pointercancel", V);
63786
63786
  }
63787
63787
  function j(S) {
63788
- S.stopPropagation(), S.preventDefault(), h.value && (c.value = !0, q(S), window.addEventListener("pointermove", q), window.addEventListener("pointerup", V), window.addEventListener("pointercancel", V));
63788
+ S.stopPropagation(), S.preventDefault(), h.value && (c.value = !0, Z(S), window.addEventListener("pointermove", Z), window.addEventListener("pointerup", V), window.addEventListener("pointercancel", V));
63789
63789
  }
63790
63790
  function A(S) {
63791
63791
  const z = { ArrowRight: 1, ArrowUp: 1, ArrowLeft: -1, ArrowDown: -1 }[S.key] ?? 0;
@@ -63953,7 +63953,7 @@ const mX = /* @__PURE__ */ Ne(dX, [["render", hX]]), pX = ["src"], vX = ["aria-l
63953
63953
  },
63954
63954
  setup(e) {
63955
63955
  const t = Jh(
63956
- async () => (await import("./vue3-lottie.es-CWrWfxGU.js")).Vue3Lottie
63956
+ async () => (await import("./vue3-lottie.es-xXcOM-AD.js")).Vue3Lottie
63957
63957
  ), n = e, a = X(null), i = X(!1), r = P(() => n.variant === "thumbnail" ? 96 : n.variant === "composer" ? 180 : 220), c = P(
63958
63958
  () => n.variant === "chat" ? "flex items-center justify-center p-1" : "flex size-full items-center justify-center"
63959
63959
  );
@@ -64183,7 +64183,7 @@ const KX = { key: 0 }, QX = ["alt"], eK = ["src", "alt"], tK = ["src"], nK = ["s
64183
64183
  () => n.showCaption && !!y.value && !b.value && !k.value
64184
64184
  ), R = P(
64185
64185
  () => D.value === "video" ? "Abrir vídeo" : "Ampliar"
64186
- ), Z = P(() => `${R.value}: ${x.value}`), q = P(() => k.value ? "renderer renderer-thumbnail" : b.value ? "renderer renderer-composer" : "renderer renderer-chat"), V = P(() => k.value ? "media-surface media-surface-thumbnail" : b.value ? "media-surface media-surface-composer" : "media-surface media-surface-chat"), j = P(
64186
+ ), q = P(() => `${R.value}: ${x.value}`), Z = P(() => k.value ? "renderer renderer-thumbnail" : b.value ? "renderer renderer-composer" : "renderer renderer-chat"), V = P(() => k.value ? "media-surface media-surface-thumbnail" : b.value ? "media-surface media-surface-composer" : "media-surface media-surface-chat"), j = P(
64187
64187
  () => k.value ? "icon-surface icon-surface-thumbnail" : "icon-surface"
64188
64188
  ), A = P(() => Ia(n.message) && !k.value ? "media-image-sticker" : k.value ? "media-image media-image-thumbnail" : b.value ? "media-image media-image-composer" : "media-image media-image-chat"), S = P(() => k.value ? "media-video-heif-thumbnail" : b.value ? "media-video-heif-composer" : "media-video-heif-chat"), z = P(
64189
64189
  () => M.value && n.variant === "chat" && (D.value === "image" || D.value === "video")
@@ -64280,7 +64280,7 @@ const KX = { key: 0 }, QX = ["alt"], eK = ["src", "alt"], tK = ["src"], nK = ["s
64280
64280
  const le = S2("lazy");
64281
64281
  return w.value ? (l(), f("section", {
64282
64282
  key: 0,
64283
- class: U(q.value)
64283
+ class: U(Z.value)
64284
64284
  }, [
64285
64285
  (Ce = c.value) != null && Ce.story_reply ? (l(), f("div", KX, [...W[5] || (W[5] = [
64286
64286
  o("p", { class: "italic opacity-70" }, "Resposta de stories", -1)
@@ -64294,7 +64294,7 @@ const KX = { key: 0 }, QX = ["alt"], eK = ["src", "alt"], tK = ["src"], nK = ["s
64294
64294
  ve.value ? "media-surface-pending" : ""
64295
64295
  ]),
64296
64296
  style: Ve(ee.value),
64297
- "aria-label": M.value ? Z.value : void 0,
64297
+ "aria-label": M.value ? q.value : void 0,
64298
64298
  onClick: W[0] || (W[0] = (K) => M.value && Re(!1))
64299
64299
  }, {
64300
64300
  default: Ae(() => [
@@ -64365,7 +64365,7 @@ const KX = { key: 0 }, QX = ["alt"], eK = ["src", "alt"], tK = ["src"], nK = ["s
64365
64365
  key: 3,
64366
64366
  type: "button",
64367
64367
  class: "video-trigger group",
64368
- "aria-label": Z.value,
64368
+ "aria-label": q.value,
64369
64369
  onClick: W[1] || (W[1] = (K) => Re(!0))
64370
64370
  }, [
64371
64371
  pe(mX, {
@@ -64611,14 +64611,14 @@ const KX = { key: 0 }, QX = ["alt"], eK = ["src", "alt"], tK = ["src"], nK = ["s
64611
64611
  };
64612
64612
  }), C = P(() => {
64613
64613
  var V, j, A, S, z;
64614
- const R = a.message || {}, Z = a.isMessage ? ((V = a.attendant) == null ? void 0 : V.name) || ((j = R == null ? void 0 : R.sender) == null ? void 0 : j.name) : ((A = R == null ? void 0 : R.sent_by) == null ? void 0 : A.name) || ((S = R == null ? void 0 : R.sender) == null ? void 0 : S.name);
64615
- return Z ? (a.isMessage || !!((z = R == null ? void 0 : R.sent_by) != null && z.name)) && Z === m.value ? "Você" : Z : "";
64614
+ const R = a.message || {}, q = a.isMessage ? ((V = a.attendant) == null ? void 0 : V.name) || ((j = R == null ? void 0 : R.sender) == null ? void 0 : j.name) : ((A = R == null ? void 0 : R.sent_by) == null ? void 0 : A.name) || ((S = R == null ? void 0 : R.sender) == null ? void 0 : S.name);
64615
+ return q ? (a.isMessage || !!((z = R == null ? void 0 : R.sent_by) != null && z.name)) && q === m.value ? "Você" : q : "";
64616
64616
  }), T = P(() => {
64617
64617
  var V;
64618
64618
  const R = Number((V = a.message) == null ? void 0 : V.duration);
64619
64619
  if (!Number.isFinite(R) || R < 0) return "00:00";
64620
- const Z = Math.floor(R / 60), q = Math.floor(R % 60);
64621
- return `${String(Z).padStart(2, "0")}:${String(q).padStart(2, "0")}`;
64620
+ const q = Math.floor(R / 60), Z = Math.floor(R % 60);
64621
+ return `${String(q).padStart(2, "0")}:${String(Z).padStart(2, "0")}`;
64622
64622
  });
64623
64623
  function D(R) {
64624
64624
  return typeof R != "string" ? !1 : i.test(R.trim());
@@ -64626,7 +64626,7 @@ const KX = { key: 0 }, QX = ["alt"], eK = ["src", "alt"], tK = ["src"], nK = ["s
64626
64626
  function Y() {
64627
64627
  a.isMessage && n("go", a.messageId, a.chatId);
64628
64628
  }
64629
- return (R, Z) => (l(), f("div", {
64629
+ return (R, q) => (l(), f("div", {
64630
64630
  class: U(["sm-quote", [
64631
64631
  e.isMessage ? "sm-quote--reply" : "sm-quote--composer header",
64632
64632
  !e.isMessage && p.value !== "web" ? "mb-2 rounded-xl" : "",
@@ -64653,9 +64653,9 @@ const KX = { key: 0 }, QX = ["alt"], eK = ["src", "alt"], tK = ["src"], nK = ["s
64653
64653
  ])) : F("", !0),
64654
64654
  g.value === "audio" ? (l(), f("p", gK, [
64655
64655
  (l(), f("svg", yK, [
64656
- (l(), f(ye, null, He(c, (q) => o("path", {
64657
- key: q,
64658
- d: q
64656
+ (l(), f(ye, null, He(c, (Z) => o("path", {
64657
+ key: Z,
64658
+ d: Z
64659
64659
  }, null, 8, bK)), 64))
64660
64660
  ])),
64661
64661
  Ie(" " + N(T.value), 1)
@@ -64725,8 +64725,8 @@ const KX = { key: 0 }, QX = ["alt"], eK = ["src", "alt"], tK = ["src"], nK = ["s
64725
64725
  class: "sm-quote-close",
64726
64726
  title: "Fechar",
64727
64727
  type: "button",
64728
- onClick: Z[0] || (Z[0] = (q) => oe(h).clearQuote())
64729
- }, [...Z[1] || (Z[1] = [
64728
+ onClick: q[0] || (q[0] = (Z) => oe(h).clearQuote())
64729
+ }, [...q[1] || (q[1] = [
64730
64730
  o("svg", {
64731
64731
  class: "size-5",
64732
64732
  "aria-hidden": "true",
@@ -65158,7 +65158,7 @@ const UK = ["aria-pressed", "aria-label", "onKeydown"], YK = {
65158
65158
  b.value = u.getCurrentTime(), a("currentTime", b.value);
65159
65159
  }), u.on("seek", () => {
65160
65160
  b.value = u.getCurrentTime(), a("currentTime", b.value);
65161
- }), c.value.addEventListener("pointerdown", z), ee && (k.value = m.rate || 1), await Z(n.audio), ee && Y();
65161
+ }), c.value.addEventListener("pointerdown", z), ee && (k.value = m.rate || 1), await q(n.audio), ee && Y();
65162
65162
  }
65163
65163
  function Y() {
65164
65164
  const ee = xf(u, h, { rate: k.value });
@@ -65171,7 +65171,7 @@ const UK = ["aria-pressed", "aria-label", "onKeydown"], YK = {
65171
65171
  } catch {
65172
65172
  }
65173
65173
  }
65174
- async function Z(ee) {
65174
+ async function q(ee) {
65175
65175
  if (u) {
65176
65176
  w.value = !0;
65177
65177
  try {
@@ -65185,7 +65185,7 @@ const UK = ["aria-pressed", "aria-label", "onKeydown"], YK = {
65185
65185
  }
65186
65186
  }
65187
65187
  }
65188
- function q() {
65188
+ function Z() {
65189
65189
  u && (y.value && !m.isActive(n.trackId) && (m.claim(n.trackId, h, n.trackMeta), m.setRate(k.value), R()), u.playPause());
65190
65190
  }
65191
65191
  function V() {
@@ -65280,7 +65280,7 @@ const UK = ["aria-pressed", "aria-label", "onKeydown"], YK = {
65280
65280
  }), Ke(
65281
65281
  () => n.audio,
65282
65282
  (ee) => {
65283
- ee && Z(ee);
65283
+ ee && q(ee);
65284
65284
  }
65285
65285
  ), Ke(k, (ee) => {
65286
65286
  var fe;
@@ -65306,8 +65306,8 @@ const UK = ["aria-pressed", "aria-label", "onKeydown"], YK = {
65306
65306
  class: "audio-play grid size-10 shrink-0 place-items-center rounded-full transition focus:outline-none focus-visible:ring-2 focus-visible:ring-current",
65307
65307
  "aria-pressed": x.value ? "true" : "false",
65308
65308
  "aria-label": x.value ? "Pausar" : "Tocar",
65309
- onClick: q,
65310
- onKeydown: Wo(ct(q, ["prevent"]), ["space"])
65309
+ onClick: Z,
65310
+ onKeydown: Wo(ct(Z, ["prevent"]), ["space"])
65311
65311
  }, [
65312
65312
  x.value ? (l(), f("svg", YK, [...fe[1] || (fe[1] = [
65313
65313
  o("path", {
@@ -65702,17 +65702,17 @@ var V1 = { exports: {} };
65702
65702
  var d = +/* @__PURE__ */ new Date(), v = Math.max(0, 16 - (d - Y));
65703
65703
  return Y = d + v, window.setTimeout(s, v);
65704
65704
  }
65705
- var Z = window.requestAnimationFrame || D("RequestAnimationFrame") || R, q = window.cancelAnimationFrame || D("CancelAnimationFrame") || D("CancelRequestAnimationFrame") || function(s) {
65705
+ var q = window.requestAnimationFrame || D("RequestAnimationFrame") || R, Z = window.cancelAnimationFrame || D("CancelAnimationFrame") || D("CancelRequestAnimationFrame") || function(s) {
65706
65706
  window.clearTimeout(s);
65707
65707
  };
65708
65708
  function V(s, d, v) {
65709
- if (v && Z === R)
65709
+ if (v && q === R)
65710
65710
  s.call(d);
65711
65711
  else
65712
- return Z.call(window, c(s, d));
65712
+ return q.call(window, c(s, d));
65713
65713
  }
65714
65714
  function j(s) {
65715
- s && q.call(window, s);
65715
+ s && Z.call(window, s);
65716
65716
  }
65717
65717
  var A = {
65718
65718
  __proto__: null,
@@ -65735,8 +65735,8 @@ var V1 = { exports: {} };
65735
65735
  isArray: M,
65736
65736
  indexOf: C,
65737
65737
  emptyImageUrl: T,
65738
- requestFn: Z,
65739
- cancelFn: q,
65738
+ requestFn: q,
65739
+ cancelFn: Z,
65740
65740
  requestAnimFrame: V,
65741
65741
  cancelAnimFrame: j
65742
65742
  };
@@ -71969,18 +71969,18 @@ const CQ = { class: "sm-map" }, SQ = { class: "sm-map-surface" }, MQ = ["id"], A
71969
71969
  }, a = [11, 19], i = X(null), r = X(!1), c = X(HQ), u = X(!1);
71970
71970
  let h = null, p = null, m = null, y = null, x = null, w = null;
71971
71971
  const g = () => {
71972
- var q, V, j;
71973
- const R = Number((q = t.map) == null ? void 0 : q.latitude), Z = Number(((V = t.map) == null ? void 0 : V.longitude) ?? ((j = t.map) == null ? void 0 : j.length));
71974
- return Number.isFinite(R) && Number.isFinite(Z) ? [R, Z] : null;
71972
+ var Z, V, j;
71973
+ const R = Number((Z = t.map) == null ? void 0 : Z.latitude), q = Number(((V = t.map) == null ? void 0 : V.longitude) ?? ((j = t.map) == null ? void 0 : j.length));
71974
+ return Number.isFinite(R) && Number.isFinite(q) ? [R, q] : null;
71975
71975
  }, b = P(
71976
71976
  () => {
71977
- var R, Z;
71978
- return ((R = t.map) == null ? void 0 : R.name) || ((Z = t.map) == null ? void 0 : Z.address) || "Localização compartilhada";
71977
+ var R, q;
71978
+ return ((R = t.map) == null ? void 0 : R.name) || ((q = t.map) == null ? void 0 : q.address) || "Localização compartilhada";
71979
71979
  }
71980
71980
  ), k = P(() => {
71981
- var q, V;
71981
+ var Z, V;
71982
71982
  const R = g();
71983
- return R ? ((q = t.map) != null && q.name ? (V = t.map) == null ? void 0 : V.address : null) || R.map((j) => j.toFixed(5)).join(", ") : "";
71983
+ return R ? ((Z = t.map) != null && Z.name ? (V = t.map) == null ? void 0 : V.address : null) || R.map((j) => j.toFixed(5)).join(", ") : "";
71984
71984
  }), _ = P(() => {
71985
71985
  var R;
71986
71986
  return ((R = g()) == null ? void 0 : R.join(", ")) ?? "";
@@ -71988,11 +71988,11 @@ const CQ = { class: "sm-map" }, SQ = { class: "sm-map-surface" }, MQ = ["id"], A
71988
71988
  () => `https://www.google.com/maps/dir/?api=1&destination=${_.value}`
71989
71989
  );
71990
71990
  function M(R) {
71991
- const Z = Math.min(
71991
+ const q = Math.min(
71992
71992
  a[1],
71993
71993
  Math.max(a[0], c.value + R)
71994
71994
  );
71995
- Z !== c.value && (c.value = Z, h == null || h.setZoom(Z));
71995
+ q !== c.value && (c.value = q, h == null || h.setZoom(q));
71996
71996
  }
71997
71997
  async function C() {
71998
71998
  await wf(_.value) && (u.value = !0, clearTimeout(w), w = setTimeout(() => u.value = !1, 1600));
@@ -72003,11 +72003,11 @@ const CQ = { class: "sm-map" }, SQ = { class: "sm-map-surface" }, MQ = ["id"], A
72003
72003
  function D() {
72004
72004
  const R = g();
72005
72005
  if (!R) return;
72006
- const [Z, q] = R;
72006
+ const [q, Z] = R;
72007
72007
  Ot.show(
72008
72008
  [
72009
72009
  {
72010
- src: `https://www.google.com/maps?q=${Z},${q}&z=19&output=embed`,
72010
+ src: `https://www.google.com/maps?q=${q},${Z}&z=19&output=embed`,
72011
72011
  type: "iframe",
72012
72012
  caption: b.value
72013
72013
  }
@@ -72056,13 +72056,13 @@ const CQ = { class: "sm-map" }, SQ = { class: "sm-map-surface" }, MQ = ["id"], A
72056
72056
  }
72057
72057
  m = new IntersectionObserver(
72058
72058
  (R) => {
72059
- R.some((Z) => Z.isIntersecting) && (m.disconnect(), m = null, Y());
72059
+ R.some((q) => q.isIntersecting) && (m.disconnect(), m = null, Y());
72060
72060
  },
72061
72061
  { rootMargin: "200px" }
72062
72062
  ), m.observe(i.value);
72063
72063
  }), Bt(() => {
72064
72064
  clearTimeout(w), m == null || m.disconnect(), y == null || y.disconnect(), x == null || x.disconnect(), m = null, y = null, x = null, h == null || h.remove(), h = null, p = null;
72065
- }), (R, Z) => (l(), f("div", CQ, [
72065
+ }), (R, q) => (l(), f("div", CQ, [
72066
72066
  o("div", SQ, [
72067
72067
  o("button", {
72068
72068
  type: "button",
@@ -72076,7 +72076,7 @@ const CQ = { class: "sm-map" }, SQ = { class: "sm-map-surface" }, MQ = ["id"], A
72076
72076
  ref: i,
72077
72077
  class: "sm-map-canvas"
72078
72078
  }, null, 8, MQ),
72079
- g() ? r.value ? (l(), f("span", EQ, [...Z[2] || (Z[2] = [
72079
+ g() ? r.value ? (l(), f("span", EQ, [...q[2] || (q[2] = [
72080
72080
  o("svg", {
72081
72081
  class: "size-3.5",
72082
72082
  viewBox: "0 0 24 24",
@@ -72092,13 +72092,13 @@ const CQ = { class: "sm-map" }, SQ = { class: "sm-map-surface" }, MQ = ["id"], A
72092
72092
  type: "button",
72093
72093
  title: "Aproximar",
72094
72094
  disabled: c.value >= 19,
72095
- onClick: Z[0] || (Z[0] = (q) => M(1))
72095
+ onClick: q[0] || (q[0] = (Z) => M(1))
72096
72096
  }, " + ", 8, LQ),
72097
72097
  o("button", {
72098
72098
  type: "button",
72099
72099
  title: "Afastar",
72100
72100
  disabled: c.value <= 11,
72101
- onClick: Z[1] || (Z[1] = (q) => M(-1))
72101
+ onClick: q[1] || (q[1] = (Z) => M(-1))
72102
72102
  }, " − ", 8, PQ)
72103
72103
  ])) : F("", !0)
72104
72104
  ]),
@@ -72114,7 +72114,7 @@ const CQ = { class: "sm-map" }, SQ = { class: "sm-map-surface" }, MQ = ["id"], A
72114
72114
  href: $.value,
72115
72115
  target: "_blank",
72116
72116
  rel: "noopener noreferrer"
72117
- }, [...Z[3] || (Z[3] = [
72117
+ }, [...q[3] || (q[3] = [
72118
72118
  o("svg", {
72119
72119
  class: "size-3.5",
72120
72120
  viewBox: "0 0 24 24",
@@ -72985,12 +72985,12 @@ function Mf(e) {
72985
72985
  return !!((t = e == null ? void 0 : e.content) != null && t.text) && e.content.text.trim().length > 0;
72986
72986
  }
72987
72987
  function Tee(e, t = {}) {
72988
- var q, V, j, A, S;
72988
+ var Z, V, j, A, S;
72989
72989
  const {
72990
72990
  chatActive: n = !1,
72991
72991
  chatInstanceId: a = null,
72992
72992
  attendant: i = null
72993
- } = t, r = Cf(e), c = ec(e), u = Sf(e), h = !!(e != null && e.from_me), p = !!(e != null && e.internal), m = e == null ? void 0 : e.type, y = ((q = e == null ? void 0 : e.instance) == null ? void 0 : q.type) || "", x = ["whatsapp-qrcode", "telegram", "webchat"].includes(
72993
+ } = t, r = Cf(e), c = ec(e), u = Sf(e), h = !!(e != null && e.from_me), p = !!(e != null && e.internal), m = e == null ? void 0 : e.type, y = ((Z = e == null ? void 0 : e.instance) == null ? void 0 : Z.type) || "", x = ["whatsapp-qrcode", "telegram", "webchat"].includes(
72994
72994
  y
72995
72995
  ), w = p ? ((V = e == null ? void 0 : e.sent_by) == null ? void 0 : V.id) === (i == null ? void 0 : i.id) : !0, g = !!((j = i == null ? void 0 : i.permissions) != null && j.can_edit_message), b = !!((A = i == null ? void 0 : i.permissions) != null && A.can_delete_message), k = () => {
72996
72996
  const z = [];
@@ -73019,8 +73019,8 @@ function Tee(e, t = {}) {
73019
73019
  sms: "Não é possível encaminhar mensagens SMS."
73020
73020
  };
73021
73021
  Y[m] && D.push(Y[m]), y === "webchat" && D.push("Não é possível encaminhar mensagens do Webchat.");
73022
- const R = Mf(e) ? [] : ["Mensagem sem texto para copiar."], Z = [];
73023
- return r ? Z.push("Ação indisponível para mensagens processando.") : u || Z.push("Essa mensagem já foi enviada com sucesso."), { edit: _, delete: $, reply: M, download: T, forward: D, copy: R, resend: Z };
73022
+ const R = Mf(e) ? [] : ["Mensagem sem texto para copiar."], q = [];
73023
+ return r ? q.push("Ação indisponível para mensagens processando.") : u || q.push("Essa mensagem já foi enviada com sucesso."), { edit: _, delete: $, reply: M, download: T, forward: D, copy: R, resend: q };
73024
73024
  }
73025
73025
  function Bee(e) {
73026
73026
  var t;
@@ -73135,7 +73135,7 @@ const Dee = ["disabled"], Ree = { class: "relative flex h-6 items-center justify
73135
73135
  function R() {
73136
73136
  y.value.delete.length || x.value || (u.value = !u.value);
73137
73137
  }
73138
- async function Z() {
73138
+ async function q() {
73139
73139
  if (y.value.delete.length) return;
73140
73140
  h.value = !0;
73141
73141
  const B = await zee(m.value.id);
@@ -73145,7 +73145,7 @@ const Dee = ["disabled"], Ree = { class: "relative flex h-6 items-center justify
73145
73145
  }
73146
73146
  n("deleted", m.value), cn({ group: "success", title: "Sucesso", text: "Mensagem Apagada" }, 2e3), u.value = !1, k();
73147
73147
  }
73148
- async function q() {
73148
+ async function Z() {
73149
73149
  var G;
73150
73150
  _(), c.value = !0;
73151
73151
  const B = await Fee(m.value.id);
@@ -73255,7 +73255,7 @@ const Dee = ["disabled"], Ree = { class: "relative flex h-6 items-center justify
73255
73255
  enabled: !B.resend.length,
73256
73256
  reasons: B.resend,
73257
73257
  loading: c.value,
73258
- handler: q
73258
+ handler: Z
73259
73259
  },
73260
73260
  { key: "__divider__" },
73261
73261
  {
@@ -73328,7 +73328,7 @@ const Dee = ["disabled"], Ree = { class: "relative flex h-6 items-center justify
73328
73328
  o("button", {
73329
73329
  disabled: h.value,
73330
73330
  class: "confirm-delete-btn group",
73331
- onClick: Z
73331
+ onClick: q
73332
73332
  }, [
73333
73333
  G[3] || (G[3] = o("span", { class: "confirm-delete-shine" }, null, -1)),
73334
73334
  o("span", Ree, [
@@ -73377,7 +73377,7 @@ const Dee = ["disabled"], Ree = { class: "relative flex h-6 items-center justify
73377
73377
  o("button", {
73378
73378
  disabled: h.value,
73379
73379
  class: "confirm-delete-btn group flex-1",
73380
- onClick: Z
73380
+ onClick: q
73381
73381
  }, [
73382
73382
  G[6] || (G[6] = o("span", { class: "confirm-delete-shine" }, null, -1)),
73383
73383
  o("span", jee, [
@@ -73452,20 +73452,20 @@ const Dee = ["disabled"], Ree = { class: "relative flex h-6 items-center justify
73452
73452
  function m() {
73453
73453
  if (i.value)
73454
73454
  if (r.value)
73455
- i.value.pause(), r.value = !1, Z();
73455
+ i.value.pause(), r.value = !1, q();
73456
73456
  else {
73457
73457
  if (R(), !i.value) return;
73458
73458
  p.value = !0;
73459
- const q = i.value.play();
73460
- q && typeof q.then == "function" ? q.then(() => {
73459
+ const Z = i.value.play();
73460
+ Z && typeof Z.then == "function" ? Z.then(() => {
73461
73461
  p.value = !1, r.value = !0;
73462
73462
  }).catch((V) => {
73463
73463
  console.error("Audio play failed:", V), p.value = !1, r.value = !1;
73464
73464
  }) : (p.value = !1, r.value = !0);
73465
73465
  }
73466
73466
  }
73467
- function y(q) {
73468
- i.value && (i.value.currentTime = q.target.value);
73467
+ function y(Z) {
73468
+ i.value && (i.value.currentTime = Z.target.value);
73469
73469
  }
73470
73470
  function x() {
73471
73471
  i.value && (u.value = i.value.duration || 0);
@@ -73482,21 +73482,21 @@ const Dee = ["disabled"], Ree = { class: "relative flex h-6 items-center justify
73482
73482
  function k() {
73483
73483
  p.value = !0;
73484
73484
  }
73485
- function _(q) {
73486
- console.error("Audio error:", q), h.value = !1, p.value = !1, r.value = !1;
73485
+ function _(Z) {
73486
+ console.error("Audio error:", Z), h.value = !1, p.value = !1, r.value = !1;
73487
73487
  }
73488
73488
  function $() {
73489
73489
  i.value && (c.value = i.value.currentTime);
73490
73490
  }
73491
73491
  function M() {
73492
- r.value = !1, c.value = 0, Z();
73492
+ r.value = !1, c.value = 0, q();
73493
73493
  }
73494
73494
  function C() {
73495
73495
  window.open(a.src, "_blank");
73496
73496
  }
73497
- function T(q) {
73498
- if (!q || isNaN(q)) return "0:00";
73499
- const V = Math.floor(q / 60), j = Math.floor(q % 60);
73497
+ function T(Z) {
73498
+ if (!Z || isNaN(Z)) return "0:00";
73499
+ const V = Math.floor(Z / 60), j = Math.floor(Z % 60);
73500
73500
  return `${V}:${j.toString().padStart(2, "0")}`;
73501
73501
  }
73502
73502
  function D() {
@@ -73520,17 +73520,17 @@ const Dee = ["disabled"], Ree = { class: "relative flex h-6 items-center justify
73520
73520
  function R() {
73521
73521
  n("play-start", a.src);
73522
73522
  }
73523
- function Z() {
73523
+ function q() {
73524
73524
  n("play-pause", a.src);
73525
73525
  }
73526
73526
  return Ke(
73527
73527
  () => a.activeSrc,
73528
- (q) => {
73529
- q && q !== a.src && r.value && i.value && (i.value.pause(), r.value = !1);
73528
+ (Z) => {
73529
+ Z && Z !== a.src && r.value && i.value && (i.value.pause(), r.value = !1);
73530
73530
  }
73531
73531
  ), En(() => {
73532
73532
  i.value && (i.value.pause(), i.value.src = "");
73533
- }), (q, V) => (l(), f("div", Uee, [
73533
+ }), (Z, V) => (l(), f("div", Uee, [
73534
73534
  o("button", {
73535
73535
  onClick: ct(m, ["stop"]),
73536
73536
  class: "audio-play-btn hover:bg-base-100",
@@ -73832,8 +73832,8 @@ const Dee = ["disabled"], Ree = { class: "relative flex h-6 items-center justify
73832
73832
  }) : "";
73833
73833
  }
73834
73834
  function _(C) {
73835
- var T, D, Y, R, Z, q;
73836
- return ((D = (T = C.record_metadata) == null ? void 0 : T.urls) == null ? void 0 : D.client) || ((R = (Y = C.record_metadata) == null ? void 0 : Y.urls) == null ? void 0 : R.attendant) || ((q = (Z = C.record_metadata) == null ? void 0 : Z.urls) == null ? void 0 : q.general);
73835
+ var T, D, Y, R, q, Z;
73836
+ return ((D = (T = C.record_metadata) == null ? void 0 : T.urls) == null ? void 0 : D.client) || ((R = (Y = C.record_metadata) == null ? void 0 : Y.urls) == null ? void 0 : R.attendant) || ((Z = (q = C.record_metadata) == null ? void 0 : q.urls) == null ? void 0 : Z.general);
73837
73837
  }
73838
73838
  function $(C) {
73839
73839
  return C.events && C.events.length > 0 ? [...C.events].reverse() : C.historical && C.historical.length > 0 ? C.historical : [];
@@ -74109,17 +74109,17 @@ const wte = {
74109
74109
  const ve = (n.message.items || []).map((de) => de == null ? void 0 : de.id).filter(Boolean);
74110
74110
  ve.length ? i.togglePackageSelection(ve) : i.toggleMessageSelection(n.message.id);
74111
74111
  }
74112
- function Z(ve, de) {
74112
+ function q(ve, de) {
74113
74113
  var Re, Xe, Be, W, le, Ce, we, $e, ce, K, re, ue;
74114
74114
  if (!ve || !ve.sent_by && !((Re = ve.content) != null && Re.sender)) return !1;
74115
74115
  if (!de || !de.sent_by && !((Xe = de.content) != null && Xe.sender)) return !0;
74116
74116
  const xe = ((Be = ve.sent_by) == null ? void 0 : Be.id) || ((le = (W = ve.content) == null ? void 0 : W.sender) == null ? void 0 : le.id) || ((we = (Ce = ve.content) == null ? void 0 : Ce.sender) == null ? void 0 : we.name), ke = (($e = de.sent_by) == null ? void 0 : $e.id) || ((K = (ce = de.content) == null ? void 0 : ce.sender) == null ? void 0 : K.id) || ((ue = (re = de.content) == null ? void 0 : re.sender) == null ? void 0 : ue.name);
74117
74117
  return xe && ke ? xe !== ke : !1;
74118
74118
  }
74119
- const q = P(() => Z(n.message, n.nextMessage)), V = P(() => Ia(n.message) || X0(n.message)), j = P(() => K0(n.message)), A = P(() => V.value || j.value), S = P(
74119
+ const Z = P(() => q(n.message, n.nextMessage)), V = P(() => Ia(n.message) || X0(n.message)), j = P(() => K0(n.message)), A = P(() => V.value || j.value), S = P(
74120
74120
  () => {
74121
74121
  var ve;
74122
- return (!p.value || _.value) && q.value && !!((ve = n.message.content) != null && ve.sender);
74122
+ return (!p.value || _.value) && Z.value && !!((ve = n.message.content) != null && ve.sender);
74123
74123
  }
74124
74124
  ), z = P(
74125
74125
  () => {
@@ -74181,7 +74181,8 @@ const wte = {
74181
74181
  "justify-end": p.value,
74182
74182
  "justify-start": !p.value,
74183
74183
  "z-20": r.value,
74184
- "pt-1.5": q.value,
74184
+ "pt-1.5": Z.value,
74185
+ "pt-0.5": !Z.value,
74185
74186
  "pt-4": e.nextMessage && e.nextMessage.metadata && e.nextMessage.metadata.reaction,
74186
74187
  "bg-gray-400/5 py-1 dark:bg-primary/20": D.value
74187
74188
  }])
@@ -74209,7 +74210,7 @@ const wte = {
74209
74210
  ])])) : F("", !0)
74210
74211
  ], 2)
74211
74212
  ])) : F("", !0),
74212
- !p.value && q.value && e.message.content.sender ? (l(), f("div", {
74213
+ !p.value && Z.value && e.message.content.sender ? (l(), f("div", {
74213
74214
  key: 1,
74214
74215
  class: U(w.value)
74215
74216
  }, [
@@ -74243,7 +74244,7 @@ const wte = {
74243
74244
  onTouchend: ee,
74244
74245
  onContextmenu: ct(h, ["prevent"])
74245
74246
  }, [
74246
- q.value && !A.value ? (l(), f("div", {
74247
+ Z.value && !A.value ? (l(), f("div", {
74247
74248
  key: 0,
74248
74249
  class: U(["absolute top-[18px] z-0 h-3 w-2.5", T.value])
74249
74250
  }, [
@@ -74570,7 +74571,7 @@ const wte = {
74570
74571
  ])
74571
74572
  ], 34)) : F("", !0)
74572
74573
  ], 42, kte),
74573
- p.value && q.value ? (l(), f("div", Ite, [
74574
+ p.value && Z.value ? (l(), f("div", Ite, [
74574
74575
  e.message.sent_by ? (l(), _e(It, {
74575
74576
  key: 0,
74576
74577
  attendant: e.message.sent_by,
@@ -74765,33 +74766,33 @@ const wte = {
74765
74766
  function R(W, le, Ce, we) {
74766
74767
  return we.isMedia && le.isMedia && W.from_me === Ce.from_me && we.sentAtMs - le.sentAtMs <= 12e4 && le.internal === we.internal && !we.hasCaption && !le.hasCaption && le.author === we.author && le.stage === we.stage;
74767
74768
  }
74768
- let Z = { messages: [], groups: [], collapsed: !1 };
74769
- const q = P(() => {
74769
+ let q = { messages: [], groups: [], collapsed: !1 };
74770
+ const Z = P(() => {
74770
74771
  const W = a.messages, le = [];
74771
74772
  let Ce = !1, we = null, $e = null;
74772
74773
  for (let K = 0; K < W.length; K++) {
74773
74774
  const re = W[K], ue = Y(re);
74774
74775
  K === 0 || !R(we, $e, re, ue) ? le.push(K) : Ce = !0, we = re, $e = ue;
74775
74776
  }
74776
- if (!Ce && !Z.collapsed && ff(Z.messages, W))
74777
- return Z.groups;
74777
+ if (!Ce && !q.collapsed && ff(q.messages, W))
74778
+ return q.groups;
74778
74779
  const ce = [];
74779
74780
  for (let K = 0; K < le.length; K++) {
74780
74781
  const re = le[K], ue = K + 1 < le.length ? le[K + 1] : W.length;
74781
74782
  ce.push(ue - re === 1 ? W[re] : { ...W[re], items: W.slice(re, ue) });
74782
74783
  }
74783
- return Z = { messages: W.slice(), groups: ce, collapsed: Ce }, ce;
74784
- }), V = e2(() => q.value.map(I)), j = e2(() => {
74784
+ return q = { messages: W.slice(), groups: ce, collapsed: Ce }, ce;
74785
+ }), V = e2(() => Z.value.map(I)), j = e2(() => {
74785
74786
  const W = [];
74786
74787
  let le = null;
74787
- return q.value.forEach((Ce, we) => {
74788
+ return Z.value.forEach((Ce, we) => {
74788
74789
  const { dayKey: $e } = Y(Ce), ce = we === 0 || $e !== le;
74789
74790
  W.push(!Ce.special && ce ? x(Ce.sent_at) : null), le = $e;
74790
74791
  }), W;
74791
74792
  });
74792
74793
  let A = /* @__PURE__ */ new Map(), S = null;
74793
74794
  const z = P(() => {
74794
- const W = q.value, le = V.value, Ce = j.value, { chat: we, readonly: $e } = a;
74795
+ const W = Z.value, le = V.value, Ce = j.value, { chat: we, readonly: $e } = a;
74795
74796
  (!S || S.chat !== we || S.readonly !== $e) && (A = /* @__PURE__ */ new Map(), S = { chat: we, readonly: $e });
74796
74797
  const ce = /* @__PURE__ */ new Map(), K = W.map((re, ue) => {
74797
74798
  const Se = le[ue], be = Ce[ue], Me = W[ue - 1], Fe = A.get(Se);
@@ -74823,7 +74824,7 @@ const wte = {
74823
74824
  return (W == null ? void 0 : W.id) !== void 0 && (W == null ? void 0 : W.id) !== null && (W == null ? void 0 : W.id) !== "" ? String(W.id) : W != null && W.special ? `special:${W.content}` : `${(W == null ? void 0 : W.type) || "message"}:${(W == null ? void 0 : W.sent_at) || ""}:${((le = W == null ? void 0 : W.content) == null ? void 0 : le.url) || ((Ce = W == null ? void 0 : W.content) == null ? void 0 : Ce.text) || ""}`;
74824
74825
  }
74825
74826
  const B = P(() => {
74826
- const W = q.value.findIndex(
74827
+ const W = Z.value.findIndex(
74827
74828
  (le) => !le.special && le.opened === !1 && (a.chatKey == null || le.chat == null || le.chat === a.chatKey)
74828
74829
  );
74829
74830
  return W === -1 ? null : V.value[W];
@@ -74923,7 +74924,7 @@ const wte = {
74923
74924
  var W;
74924
74925
  C(), (W = r.value) == null || W.removeEventListener("scroll", Be), de == null || de.disconnect(), de = null, Xe !== null && cancelAnimationFrame(Xe);
74925
74926
  }), Ke(
74926
- () => q.value.length,
74927
+ () => Z.value.length,
74927
74928
  async () => {
74928
74929
  await bt(), se(), xe(), Re();
74929
74930
  }
@@ -75391,14 +75392,14 @@ var Dne = { 207: (e, t, n) => {
75391
75392
  var D = Object.getPrototypeOf, Y = D && D(D(z([])));
75392
75393
  Y && Y !== i && r.call(Y, u) && (T = Y);
75393
75394
  var R = C.prototype = $.prototype = Object.create(T);
75394
- function Z(I) {
75395
+ function q(I) {
75395
75396
  ["next", "throw", "return"].forEach(function(B) {
75396
75397
  m(I, B, function(G) {
75397
75398
  return this._invoke(B, G);
75398
75399
  });
75399
75400
  });
75400
75401
  }
75401
- function q(I, B) {
75402
+ function Z(I, B) {
75402
75403
  function G(te, se, ae, ee) {
75403
75404
  var fe = x(I[te], I, se);
75404
75405
  if (fe.type !== "throw") {
@@ -75475,15 +75476,15 @@ var Dne = { 207: (e, t, n) => {
75475
75476
  return Object.setPrototypeOf ? Object.setPrototypeOf(I, C) : (I.__proto__ = C, m(I, p, "GeneratorFunction")), I.prototype = Object.create(R), I;
75476
75477
  }, n.awrap = function(I) {
75477
75478
  return { __await: I };
75478
- }, Z(q.prototype), m(q.prototype, h, function() {
75479
+ }, q(Z.prototype), m(Z.prototype, h, function() {
75479
75480
  return this;
75480
- }), n.AsyncIterator = q, n.async = function(I, B, G, J, te) {
75481
+ }), n.AsyncIterator = Z, n.async = function(I, B, G, J, te) {
75481
75482
  te === void 0 && (te = Promise);
75482
- var se = new q(y(I, B, G, J), te);
75483
+ var se = new Z(y(I, B, G, J), te);
75483
75484
  return n.isGeneratorFunction(B) ? se : se.next().then(function(ae) {
75484
75485
  return ae.done ? ae.value : se.next();
75485
75486
  });
75486
- }, Z(R), m(R, p, "Generator"), m(R, u, function() {
75487
+ }, q(R), m(R, p, "Generator"), m(R, u, function() {
75487
75488
  return this;
75488
75489
  }), m(R, "toString", function() {
75489
75490
  return "[object Generator]";
@@ -75729,8 +75730,8 @@ const Vne = (0, rt.defineComponent)({ name: "TreeNode", props: b2(b2({}, Tf), {}
75729
75730
  }), h = (0, rt.computed)(function() {
75730
75731
  return e.nodeSelectable(e.node) && (c.value || u.value);
75731
75732
  }), p = (0, rt.reactive)({ editing: !1 }), m = function(D) {
75732
- var Y, R, Z = (R = (Y = D.target) === null || Y === void 0 ? void 0 : Y.value) === "null" ? null : R === "undefined" ? void 0 : R === "true" || R !== "false" && (R[0] + R[R.length - 1] === '""' || R[0] + R[R.length - 1] === "''" ? R.slice(1, -1) : typeof Number(R) == "number" && !isNaN(Number(R)) || R === "NaN" ? Number(R) : R);
75733
- n("valueChange", Z, e.node.path);
75733
+ var Y, R, q = (R = (Y = D.target) === null || Y === void 0 ? void 0 : Y.value) === "null" ? null : R === "undefined" ? void 0 : R === "true" || R !== "false" && (R[0] + R[R.length - 1] === '""' || R[0] + R[R.length - 1] === "''" ? R.slice(1, -1) : typeof Number(R) == "number" && !isNaN(Number(R)) || R === "NaN" ? Number(R) : R);
75734
+ n("valueChange", q, e.node.path);
75734
75735
  }, y = (0, rt.computed)(function() {
75735
75736
  var D, Y = (D = e.node) === null || D === void 0 ? void 0 : D.content;
75736
75737
  return Y === null ? Y = "null" : Y === void 0 && (Y = "undefined"), a.value === "string" ? '"'.concat(Y, '"') : Y + "";
@@ -75750,15 +75751,15 @@ const Vne = (0, rt.defineComponent)({ name: "TreeNode", props: b2(b2({}, Tf), {}
75750
75751
  }, $ = function(D) {
75751
75752
  if (e.editable && !p.editing) {
75752
75753
  p.editing = !0;
75753
- var Y = function R(Z) {
75754
- var q;
75755
- Z.target !== D.target && ((q = Z.target) === null || q === void 0 ? void 0 : q.parentElement) !== D.target && (p.editing = !1, document.removeEventListener("click", R));
75754
+ var Y = function R(q) {
75755
+ var Z;
75756
+ q.target !== D.target && ((Z = q.target) === null || Z === void 0 ? void 0 : Z.parentElement) !== D.target && (p.editing = !1, document.removeEventListener("click", R));
75756
75757
  };
75757
75758
  document.removeEventListener("click", Y), document.addEventListener("click", Y);
75758
75759
  }
75759
75760
  }, M = function() {
75760
75761
  var D = (0, rt.ref)(!1), Y = function() {
75761
- var R, Z = (R = g2().mark(function q(V) {
75762
+ var R, q = (R = g2().mark(function Z(V) {
75762
75763
  return g2().wrap(function(j) {
75763
75764
  for (; ; ) switch (j.prev = j.next) {
75764
75765
  case 0:
@@ -75774,11 +75775,11 @@ const Vne = (0, rt.defineComponent)({ name: "TreeNode", props: b2(b2({}, Tf), {}
75774
75775
  case "end":
75775
75776
  return j.stop();
75776
75777
  }
75777
- }, q, null, [[0, 7]]);
75778
+ }, Z, null, [[0, 7]]);
75778
75779
  }), function() {
75779
- var q = this, V = arguments;
75780
+ var Z = this, V = arguments;
75780
75781
  return new Promise(function(j, A) {
75781
- var S = R.apply(q, V);
75782
+ var S = R.apply(Z, V);
75782
75783
  function z(I) {
75783
75784
  v2(S, j, A, z, O, "next", I);
75784
75785
  }
@@ -75788,13 +75789,13 @@ const Vne = (0, rt.defineComponent)({ name: "TreeNode", props: b2(b2({}, Tf), {}
75788
75789
  z(void 0);
75789
75790
  });
75790
75791
  });
75791
- return function(q) {
75792
- return Z.apply(this, arguments);
75792
+ return function(Z) {
75793
+ return q.apply(this, arguments);
75793
75794
  };
75794
75795
  }();
75795
75796
  return { copy: Y };
75796
75797
  }().copy, C = function() {
75797
- var D = e.node, Y = D.key, R = D.path, Z = e.rootPath, q = new Function("data", "return data".concat(R.slice(Z.length)))(e.data), V = JSON.stringify(Y ? Zo({}, Y, q) : q, null, 2);
75798
+ var D = e.node, Y = D.key, R = D.path, q = e.rootPath, Z = new Function("data", "return data".concat(R.slice(q.length)))(e.data), V = JSON.stringify(Y ? Zo({}, Y, Z) : Z, null, 2);
75798
75799
  M(V);
75799
75800
  }, T = function() {
75800
75801
  var D = e.renderNodeActions;
@@ -75804,8 +75805,8 @@ const Vne = (0, rt.defineComponent)({ name: "TreeNode", props: b2(b2({}, Tf), {}
75804
75805
  };
75805
75806
  return function() {
75806
75807
  var D, Y = e.node;
75807
- return (0, rt.createVNode)("div", { class: { "vjs-tree-node": !0, "has-selector": e.showSelectController, "has-carets": e.showIcon, "is-highlight": e.highlightSelectedNode && e.checked, dark: e.theme === "dark" }, onClick: k, onMouseover: _, style: e.style }, [e.showLineNumber && (0, rt.createVNode)("span", { class: "vjs-node-index" }, [Y.id + 1]), e.showSelectController && h.value && Y.type !== "objectEnd" && Y.type !== "arrayEnd" && (0, rt.createVNode)(Ine, { isMultiple: c.value, checked: e.checked, onChange: b }, null), (0, rt.createVNode)("div", { class: "vjs-indent" }, [Array.from(Array(Y.level)).map(function(R, Z) {
75808
- return (0, rt.createVNode)("div", { key: Z, class: { "vjs-indent-unit": !0, "has-line": e.showLine } }, [Array.from(Array(e.indent)).map(function() {
75808
+ return (0, rt.createVNode)("div", { class: { "vjs-tree-node": !0, "has-selector": e.showSelectController, "has-carets": e.showIcon, "is-highlight": e.highlightSelectedNode && e.checked, dark: e.theme === "dark" }, onClick: k, onMouseover: _, style: e.style }, [e.showLineNumber && (0, rt.createVNode)("span", { class: "vjs-node-index" }, [Y.id + 1]), e.showSelectController && h.value && Y.type !== "objectEnd" && Y.type !== "arrayEnd" && (0, rt.createVNode)(Ine, { isMultiple: c.value, checked: e.checked, onChange: b }, null), (0, rt.createVNode)("div", { class: "vjs-indent" }, [Array.from(Array(Y.level)).map(function(R, q) {
75809
+ return (0, rt.createVNode)("div", { key: q, class: { "vjs-indent-unit": !0, "has-line": e.showLine } }, [Array.from(Array(e.indent)).map(function() {
75809
75810
  return (0, rt.createVNode)(rt.Fragment, null, [(0, rt.createTextVNode)(" ")]);
75810
75811
  })]);
75811
75812
  }), e.showIcon && (0, rt.createVNode)(Hne, { nodeType: Y.type, onClick: g }, null)]), Y.key && (0, rt.createVNode)("span", { class: "vjs-key" }, [(D = e.renderNodeKey, D ? D({ node: e.node, defaultKey: r.value || "" }) : r.value), (0, rt.createVNode)("span", { class: "vjs-colon" }, [":".concat(e.showKeyValueSpace ? " " : "")])]), (0, rt.createVNode)("span", null, [Y.type !== "content" && Y.content ? (0, rt.createVNode)(Rne, { data: Y.content.toString(), onClick: w }, null) : (0, rt.createVNode)("span", { class: i.value, onClick: !e.editable || e.editableTrigger && e.editableTrigger !== "click" ? void 0 : $, onDblclick: e.editable && e.editableTrigger === "dblclick" ? $ : void 0 }, [e.editable && p.editing ? (0, rt.createVNode)("input", { value: y.value, onChange: m, style: { padding: "3px 8px", border: "1px solid #eee", boxShadow: "none", boxSizing: "border-box", borderRadius: 5, fontFamily: "inherit" } }, null) : x()]), Y.showComma && (0, rt.createVNode)("span", null, [","]), e.showLength && e.collapsed && (0, rt.createVNode)("span", { class: "vjs-comment" }, [(0, rt.createTextVNode)(" // "), Y.length, (0, rt.createTextVNode)(" items ")])]), e.renderNodeActions && (0, rt.createVNode)("span", { class: "vjs-tree-node-actions" }, [T()])]);
@@ -75955,16 +75956,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
75955
75956
  n("nodeClick", A);
75956
75957
  }, R = function(A) {
75957
75958
  n("nodeMouseover", A);
75958
- }, Z = function(A, S) {
75959
+ }, q = function(A, S) {
75959
75960
  if (A) u.hiddenPaths = An(An({}, u.hiddenPaths), {}, Zo({}, S, 1));
75960
75961
  else {
75961
75962
  var z = An({}, u.hiddenPaths);
75962
75963
  delete z[S], u.hiddenPaths = z;
75963
75964
  }
75964
- }, q = function(A, S) {
75965
- e.collapsedOnClickBrackets && Z(A, S.path), n("bracketsClick", A, S);
75965
+ }, Z = function(A, S) {
75966
+ e.collapsedOnClickBrackets && q(A, S.path), n("bracketsClick", A, S);
75966
75967
  }, V = function(A, S) {
75967
- Z(A, S.path), n("iconClick", A, S);
75968
+ q(A, S.path), n("iconClick", A, S);
75968
75969
  }, j = function(A, S) {
75969
75970
  var z = W1(e.data), O = e.rootPath;
75970
75971
  new Function("data", "val", "data".concat(S.slice(O.length), "=val"))(z, A), n("update:data", z);
@@ -75994,7 +75995,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
75994
75995
  return function(ne, ve) {
75995
75996
  ve ? y[ne] = ve : delete y[ne];
75996
75997
  }(ee, fe || null);
75997
- } }, [(0, rt.createVNode)(Vne, { data: e.data, rootPath: e.rootPath, indent: e.indent, node: se, collapsed: !!u.hiddenPaths[se.path], theme: e.theme, showDoubleQuotes: e.showDoubleQuotes, showLength: e.showLength, checked: k.value.includes(se.path), selectableType: e.selectableType, showLine: e.showLine, showLineNumber: e.showLineNumber, showSelectController: e.showSelectController, selectOnClickNode: e.selectOnClickNode, nodeSelectable: e.nodeSelectable, highlightSelectedNode: e.highlightSelectedNode, editable: e.editable, editableTrigger: e.editableTrigger, showIcon: e.showIcon, showKeyValueSpace: e.showKeyValueSpace, renderNodeKey: B, renderNodeValue: G, renderNodeActions: J, onNodeClick: Y, onNodeMouseover: R, onBracketsClick: q, onIconClick: V, onSelectedChange: D, onValueChange: j, class: e.dynamicHeight ? "dynamic-height" : void 0, style: e.dynamicHeight ? {} : e.itemHeight && e.itemHeight !== 20 ? { lineHeight: "".concat(e.itemHeight, "px") } : {} }, null)]);
75998
+ } }, [(0, rt.createVNode)(Vne, { data: e.data, rootPath: e.rootPath, indent: e.indent, node: se, collapsed: !!u.hiddenPaths[se.path], theme: e.theme, showDoubleQuotes: e.showDoubleQuotes, showLength: e.showLength, checked: k.value.includes(se.path), selectableType: e.selectableType, showLine: e.showLine, showLineNumber: e.showLineNumber, showSelectController: e.showSelectController, selectOnClickNode: e.selectOnClickNode, nodeSelectable: e.nodeSelectable, highlightSelectedNode: e.highlightSelectedNode, editable: e.editable, editableTrigger: e.editableTrigger, showIcon: e.showIcon, showKeyValueSpace: e.showKeyValueSpace, renderNodeKey: B, renderNodeValue: G, renderNodeActions: J, onNodeClick: Y, onNodeMouseover: R, onBracketsClick: Z, onIconClick: V, onSelectedChange: D, onValueChange: j, class: e.dynamicHeight ? "dynamic-height" : void 0, style: e.dynamicHeight ? {} : e.itemHeight && e.itemHeight !== 20 ? { lineHeight: "".concat(e.itemHeight, "px") } : {} }, null)]);
75998
75999
  });
75999
76000
  return (0, rt.createVNode)("div", { ref: i, class: { "vjs-tree": !0, "is-virtual": e.virtual, dark: e.theme === "dark" }, onScroll: e.virtual ? T : void 0, style: e.showLineNumber ? An({ paddingLeft: "".concat(12 * Number(r.value.length.toString().length), "px") }, e.style) : e.style }, [e.virtual ? (0, rt.createVNode)("div", { class: "vjs-tree-list", style: { height: "".concat(e.height, "px") } }, [(0, rt.createVNode)("div", { class: "vjs-tree-list-holder", style: { height: "".concat($.value, "px") } }, [(0, rt.createVNode)("div", { class: "vjs-tree-list-holder-inner", style: { transform: "translateY(".concat(u.translateY, "px)") } }, [te])])]) : te]);
76000
76001
  };
@@ -76348,8 +76349,8 @@ const qne = { class: "space-y-2" }, Gne = { class: "w-full overflow-auto p-2 pb-
76348
76349
  u.value = !1;
76349
76350
  const Y = h.value;
76350
76351
  if (h.value = 0, !D) return;
76351
- const R = y > 0 && Y > y * vae, Z = g > gae && Y > 12;
76352
- (R || Z) && a("close");
76352
+ const R = y > 0 && Y > y * vae, q = g > gae && Y > 12;
76353
+ (R || q) && a("close");
76353
76354
  }
76354
76355
  function M(D) {
76355
76356
  D.pointerId === p && $(!0);
@@ -77453,10 +77454,10 @@ const bse = {
77453
77454
  placement: D,
77454
77455
  scheduleOpen: Y,
77455
77456
  scheduleClose: R,
77456
- closeNow: Z
77457
+ closeNow: q
77457
77458
  } = of({ enabled: _, delay: $, width: 320 });
77458
- function q() {
77459
- Z(), p.value && a("select", n.item);
77459
+ function Z() {
77460
+ q(), p.value && a("select", n.item);
77460
77461
  }
77461
77462
  return (V, j) => (l(), _e(Mn(e.interactive ? "button" : "article"), {
77462
77463
  ref_key: "triggerRef",
@@ -77477,7 +77478,7 @@ const bse = {
77477
77478
  ]),
77478
77479
  onMouseenter: oe(Y),
77479
77480
  onMouseleave: oe(R),
77480
- onClick: q
77481
+ onClick: Z
77481
77482
  }, {
77482
77483
  default: Ae(() => [
77483
77484
  u.value ? (l(), f("span", {
@@ -79102,29 +79103,29 @@ const Cie = {
79102
79103
  const n = e, a = t, i = X(!1), r = X(!1), c = X(""), u = X([]), h = X(1), p = X(0), m = X(!1), y = X(!0), x = X(null), w = X(null);
79103
79104
  function g() {
79104
79105
  if (!w.value) return;
79105
- const Z = w.value.getBoundingClientRect(), q = window.innerHeight - Z.bottom;
79106
- r.value = q < C2 && Z.top > C2;
79106
+ const q = w.value.getBoundingClientRect(), Z = window.innerHeight - q.bottom;
79107
+ r.value = Z < C2 && q.top > C2;
79107
79108
  }
79108
79109
  const b = P(() => Array.isArray(n.pools)), k = P(
79109
79110
  () => b.value ? n.pools : u.value
79110
79111
  ), _ = P(
79111
79112
  () => b.value ? n.loading : m.value
79112
79113
  );
79113
- async function $(Z) {
79114
+ async function $(q) {
79114
79115
  if (b.value) {
79115
- Z.complete();
79116
+ q.complete();
79116
79117
  return;
79117
79118
  }
79118
79119
  m.value = !0;
79119
79120
  try {
79120
- const q = await _ie({
79121
+ const Z = await _ie({
79121
79122
  page: h.value,
79122
79123
  search: c.value,
79123
79124
  url: n.apiUrl
79124
- }), V = Array.isArray(q == null ? void 0 : q.results) ? q.results : Array.isArray(q) ? q : [];
79125
- u.value.push(...V), h.value++, q.next ? (y.value = !0, Z.loaded()) : (y.value = !1, Z.complete());
79125
+ }), V = Array.isArray(Z == null ? void 0 : Z.results) ? Z.results : Array.isArray(Z) ? Z : [];
79126
+ u.value.push(...V), h.value++, Z.next ? (y.value = !0, q.loaded()) : (y.value = !1, q.complete());
79126
79127
  } catch {
79127
- Z.error();
79128
+ q.error();
79128
79129
  } finally {
79129
79130
  m.value = !1;
79130
79131
  }
@@ -79138,21 +79139,21 @@ const Cie = {
79138
79139
  Ke(c, () => {
79139
79140
  b.value || C();
79140
79141
  });
79141
- function T(Z) {
79142
- So(Z) <= 0 || (a("update:modelValue", Z), i.value = !1);
79142
+ function T(q) {
79143
+ So(q) <= 0 || (a("update:modelValue", q), i.value = !1);
79143
79144
  }
79144
- function D(Z) {
79145
- Z.stopPropagation(), a("update:modelValue", null);
79145
+ function D(q) {
79146
+ q.stopPropagation(), a("update:modelValue", null);
79146
79147
  }
79147
79148
  function Y() {
79148
79149
  n.disabled || (i.value || g(), i.value = !i.value);
79149
79150
  }
79150
- function R(Z) {
79151
- x.value && !x.value.contains(Z.target) && (i.value = !1);
79151
+ function R(q) {
79152
+ x.value && !x.value.contains(q.target) && (i.value = !1);
79152
79153
  }
79153
79154
  return gt(() => document.addEventListener("mousedown", R)), Bt(() => {
79154
79155
  document.removeEventListener("mousedown", R), clearTimeout(M);
79155
- }), (Z, q) => (l(), f("div", null, [
79156
+ }), (q, Z) => (l(), f("div", null, [
79156
79157
  e.label ? (l(), f("label", Cie, N(e.label), 1)) : F("", !0),
79157
79158
  o("div", {
79158
79159
  ref_key: "dropdownRef",
@@ -79176,7 +79177,7 @@ const Cie = {
79176
79177
  key: 0,
79177
79178
  onClick: D,
79178
79179
  class: "flex size-4 items-center justify-center rounded-full text-current/40 transition hover:text-current/80"
79179
- }, [...q[2] || (q[2] = [
79180
+ }, [...Z[2] || (Z[2] = [
79180
79181
  o("svg", {
79181
79182
  xmlns: "http://www.w3.org/2000/svg",
79182
79183
  class: "size-3.5",
@@ -79195,7 +79196,7 @@ const Cie = {
79195
79196
  xmlns: "http://www.w3.org/2000/svg",
79196
79197
  fill: "currentColor",
79197
79198
  viewBox: "0 0 24 24"
79198
- }, [...q[3] || (q[3] = [
79199
+ }, [...Z[3] || (Z[3] = [
79199
79200
  o("path", {
79200
79201
  "fill-rule": "evenodd",
79201
79202
  d: "M18.425 10.271C19.499 8.967 18.57 7 16.88 7H7.12c-1.69 0-2.618 1.967-1.544 3.271l4.881 5.927a2 2 0 0 0 3.088 0l4.88-5.927Z",
@@ -79212,11 +79213,11 @@ const Cie = {
79212
79213
  }, [
79213
79214
  b.value ? F("", !0) : (l(), f("div", Pie, [
79214
79215
  ht(o("input", {
79215
- "onUpdate:modelValue": q[0] || (q[0] = (V) => c.value = V),
79216
+ "onUpdate:modelValue": Z[0] || (Z[0] = (V) => c.value = V),
79216
79217
  type: "text",
79217
79218
  placeholder: "Buscar carteira…",
79218
79219
  class: "w-full border-none focus:border-none rounded-md bg-base-200 px-3 py-1.5 text-sm outline-none placeholder:text-current/30",
79219
- onClick: q[1] || (q[1] = ct(() => {
79220
+ onClick: Z[1] || (Z[1] = ct(() => {
79220
79221
  }, ["stop"]))
79221
79222
  }, null, 512), [
79222
79223
  [Vt, c.value]
@@ -79240,7 +79241,7 @@ const Cie = {
79240
79241
  ]])
79241
79242
  }, [
79242
79243
  o("span", Fie, [
79243
- ((A = e.modelValue) == null ? void 0 : A.id) === V.id ? (l(), f("svg", Oie, [...q[4] || (q[4] = [
79244
+ ((A = e.modelValue) == null ? void 0 : A.id) === V.id ? (l(), f("svg", Oie, [...Z[4] || (Z[4] = [
79244
79245
  o("path", {
79245
79246
  "fill-rule": "evenodd",
79246
79247
  d: "M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm13.707-1.293a1 1 0 0 0-1.414-1.414L11 12.586l-1.793-1.793a1 1 0 0 0-1.414 1.414l2.5 2.5a1 1 0 0 0 1.414 0l4-4Z",
@@ -79262,12 +79263,12 @@ const Cie = {
79262
79263
  key: p.value,
79263
79264
  onInfinite: $
79264
79265
  }, {
79265
- spinner: Ae(() => [...q[5] || (q[5] = [
79266
+ spinner: Ae(() => [...Z[5] || (Z[5] = [
79266
79267
  o("div", { class: "flex justify-center py-3" }, [
79267
79268
  o("div", { class: "size-5 animate-spin rounded-full border-4 border-t-transparent border-primary" })
79268
79269
  ], -1)
79269
79270
  ])]),
79270
- complete: Ae(() => [...q[6] || (q[6] = [
79271
+ complete: Ae(() => [...Z[6] || (Z[6] = [
79271
79272
  o("span", null, null, -1)
79272
79273
  ])]),
79273
79274
  _: 1