sm-click-library-ui 0.0.443 → 0.0.444

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.
@@ -1,4 +1,4 @@
1
- import { unref as Se, getCurrentScope as Us, onScopeDispose as Zs, watch as He, ref as z, computed as ue, createElementBlock as y, openBlock as v, createElementVNode as r, createCommentVNode as U, toDisplayString as oe, normalizeClass as se, renderSlot as pt, createBlock as Re, Transition as Bt, withCtx as Le, onMounted as ot, resolveComponent as Pt, createTextVNode as Xe, Fragment as Oe, renderList as Ie, createVNode as Me, nextTick as lt, onBeforeUnmount as nn, withModifiers as dt, normalizeStyle as ze, TransitionGroup as po, reactive as dn, isRef as Ys, withDirectives as Ye, withKeys as go, vModelText as Ct, defineComponent as gn, toRefs as vo, onUnmounted as $n, vShow as Zt, pushScopeId as Xs, popScopeId as Ks, inject as Wn, h as Ae, shallowReactive as Y1, watchEffect as F1, provide as yo, useId as Qs, getCurrentInstance as Js, onUpdated as er, cloneVNode as tr, mergeProps as nr, createSlots as ar, useSlots as or, vModelSelect as sr, createStaticVNode as xe, normalizeProps as rr, guardReactiveProps as ir, vModelCheckbox as xo, Teleport as bo, vModelDynamic as lr, toRaw as cr } from "vue";
1
+ import { unref as Se, getCurrentScope as Us, onScopeDispose as Zs, watch as _e, ref as z, computed as ue, createElementBlock as y, openBlock as v, createElementVNode as r, createCommentVNode as U, toDisplayString as oe, normalizeClass as se, renderSlot as pt, createBlock as Re, Transition as Bt, withCtx as Le, onMounted as ot, resolveComponent as Pt, createTextVNode as Xe, Fragment as Oe, renderList as Ie, createVNode as Me, nextTick as lt, onBeforeUnmount as nn, withModifiers as dt, normalizeStyle as ze, TransitionGroup as po, reactive as dn, isRef as Ys, withDirectives as Ye, withKeys as go, vModelText as Ct, defineComponent as gn, toRefs as vo, onUnmounted as $n, vShow as Zt, pushScopeId as Xs, popScopeId as Ks, inject as Wn, h as Ae, shallowReactive as Y1, watchEffect as F1, provide as yo, useId as Qs, getCurrentInstance as Js, onUpdated as er, cloneVNode as tr, mergeProps as nr, createSlots as ar, useSlots as or, vModelSelect as sr, createStaticVNode as xe, normalizeProps as rr, guardReactiveProps as ir, vModelCheckbox as xo, Teleport as bo, vModelDynamic as lr, toRaw as cr } from "vue";
2
2
  import { defineStore as Fn, storeToRefs as dr } from "pinia";
3
3
  function ur(e) {
4
4
  return Us() ? (Zs(e), !0) : !1;
@@ -27,7 +27,7 @@ function D1(...e) {
27
27
  Array.isArray(n) || (n = [n]), Array.isArray(a) || (a = [a]);
28
28
  const s = [], i = () => {
29
29
  s.forEach((c) => c()), s.length = 0;
30
- }, l = (c, m, h, g) => (c.addEventListener(m, h, g), () => c.removeEventListener(m, h, g)), f = He(
30
+ }, l = (c, m, h, g) => (c.addEventListener(m, h, g), () => c.removeEventListener(m, h, g)), f = _e(
31
31
  () => [_n(t), ko(o)],
32
32
  ([c, m]) => {
33
33
  if (i(), !c)
@@ -569,10 +569,10 @@ const vi = (e) => {
569
569
  asap: bi,
570
570
  isIterable: ki
571
571
  };
572
- function _e(e, t, n, a, o) {
572
+ function He(e, t, n, a, o) {
573
573
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), a && (this.request = a), o && (this.response = o, this.status = o.status ? o.status : null);
574
574
  }
575
- Z.inherits(_e, Error, {
575
+ Z.inherits(He, Error, {
576
576
  toJSON: function() {
577
577
  return {
578
578
  // Standard
@@ -593,7 +593,7 @@ Z.inherits(_e, Error, {
593
593
  };
594
594
  }
595
595
  });
596
- const Oo = _e.prototype, Ho = {};
596
+ const Oo = He.prototype, Ho = {};
597
597
  [
598
598
  "ERR_BAD_OPTION_VALUE",
599
599
  "ERR_BAD_OPTION",
@@ -611,15 +611,15 @@ const Oo = _e.prototype, Ho = {};
611
611
  ].forEach((e) => {
612
612
  Ho[e] = { value: e };
613
613
  });
614
- Object.defineProperties(_e, Ho);
614
+ Object.defineProperties(He, Ho);
615
615
  Object.defineProperty(Oo, "isAxiosError", { value: !0 });
616
- _e.from = (e, t, n, a, o, s) => {
616
+ He.from = (e, t, n, a, o, s) => {
617
617
  const i = Object.create(Oo);
618
618
  Z.toFlatObject(e, i, function(c) {
619
619
  return c !== Error.prototype;
620
620
  }, (u) => u !== "isAxiosError");
621
621
  const l = e && e.message ? e.message : "Error", f = t == null && e ? e.code : t;
622
- return _e.call(i, l, f, n, a, o), e && i.cause == null && Object.defineProperty(i, "cause", { value: e, configurable: !0 }), i.name = e && e.name || "Error", s && Object.assign(i, s), i;
622
+ return He.call(i, l, f, n, a, o), e && i.cause == null && Object.defineProperty(i, "cause", { value: e, configurable: !0 }), i.name = e && e.name || "Error", s && Object.assign(i, s), i;
623
623
  };
624
624
  const wi = null;
625
625
  function K1(e) {
@@ -659,7 +659,7 @@ function T1(e, t, n) {
659
659
  if (Z.isBoolean(d))
660
660
  return d.toString();
661
661
  if (!f && Z.isBlob(d))
662
- throw new _e("Blob is not supported. Use a Buffer instead.");
662
+ throw new He("Blob is not supported. Use a Buffer instead.");
663
663
  return Z.isArrayBuffer(d) || Z.isTypedArray(d) ? f && typeof Blob == "function" ? new Blob([d]) : Buffer.from(d) : d;
664
664
  }
665
665
  function c(d, p, x) {
@@ -910,7 +910,7 @@ const Xn = {
910
910
  return JSON.parse(t, this.parseReviver);
911
911
  } catch (l) {
912
912
  if (i)
913
- throw l.name === "SyntaxError" ? _e.from(l, _e.ERR_BAD_RESPONSE, this, null, this.response) : l;
913
+ throw l.name === "SyntaxError" ? He.from(l, He.ERR_BAD_RESPONSE, this, null, this.response) : l;
914
914
  }
915
915
  }
916
916
  return t;
@@ -1153,16 +1153,16 @@ function No(e) {
1153
1153
  return !!(e && e.__CANCEL__);
1154
1154
  }
1155
1155
  function Bn(e, t, n) {
1156
- _e.call(this, e ?? "canceled", _e.ERR_CANCELED, t, n), this.name = "CanceledError";
1156
+ He.call(this, e ?? "canceled", He.ERR_CANCELED, t, n), this.name = "CanceledError";
1157
1157
  }
1158
- Z.inherits(Bn, _e, {
1158
+ Z.inherits(Bn, He, {
1159
1159
  __CANCEL__: !0
1160
1160
  });
1161
1161
  function Go(e, t, n) {
1162
1162
  const a = n.config.validateStatus;
1163
- !n.status || !a || a(n.status) ? e(n) : t(new _e(
1163
+ !n.status || !a || a(n.status) ? e(n) : t(new He(
1164
1164
  "Request failed with status code " + n.status,
1165
- [_e.ERR_BAD_REQUEST, _e.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
1165
+ [He.ERR_BAD_REQUEST, He.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
1166
1166
  n.config,
1167
1167
  n.request,
1168
1168
  n
@@ -1387,16 +1387,16 @@ const Io = (e) => {
1387
1387
  "onloadend" in x ? x.onloadend = b : x.onreadystatechange = function() {
1388
1388
  !x || x.readyState !== 4 || x.status === 0 && !(x.responseURL && x.responseURL.indexOf("file:") === 0) || setTimeout(b);
1389
1389
  }, x.onabort = function() {
1390
- x && (a(new _e("Request aborted", _e.ECONNABORTED, e, x)), x = null);
1390
+ x && (a(new He("Request aborted", He.ECONNABORTED, e, x)), x = null);
1391
1391
  }, x.onerror = function(C) {
1392
- const F = C && C.message ? C.message : "Network Error", P = new _e(F, _e.ERR_NETWORK, e, x);
1392
+ const F = C && C.message ? C.message : "Network Error", P = new He(F, He.ERR_NETWORK, e, x);
1393
1393
  P.event = C || null, a(P), x = null;
1394
1394
  }, x.ontimeout = function() {
1395
1395
  let C = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
1396
1396
  const F = o.transitional || zo;
1397
- o.timeoutErrorMessage && (C = o.timeoutErrorMessage), a(new _e(
1397
+ o.timeoutErrorMessage && (C = o.timeoutErrorMessage), a(new He(
1398
1398
  C,
1399
- F.clarifyTimeoutError ? _e.ETIMEDOUT : _e.ECONNABORTED,
1399
+ F.clarifyTimeoutError ? He.ETIMEDOUT : He.ECONNABORTED,
1400
1400
  e,
1401
1401
  x
1402
1402
  )), x = null;
@@ -1407,7 +1407,7 @@ const Io = (e) => {
1407
1407
  }, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
1408
1408
  const M = qi(o.url);
1409
1409
  if (M && mt.protocols.indexOf(M) === -1) {
1410
- a(new _e("Unsupported protocol " + M + ":", _e.ERR_BAD_REQUEST, e));
1410
+ a(new He("Unsupported protocol " + M + ":", He.ERR_BAD_REQUEST, e));
1411
1411
  return;
1412
1412
  }
1413
1413
  x.send(s || null);
@@ -1420,11 +1420,11 @@ const Io = (e) => {
1420
1420
  if (!o) {
1421
1421
  o = !0, l();
1422
1422
  const c = u instanceof Error ? u : this.reason;
1423
- a.abort(c instanceof _e ? c : new Bn(c instanceof Error ? c.message : c));
1423
+ a.abort(c instanceof He ? c : new Bn(c instanceof Error ? c.message : c));
1424
1424
  }
1425
1425
  };
1426
1426
  let i = t && setTimeout(() => {
1427
- i = null, s(new _e(`timeout ${t} of ms exceeded`, _e.ETIMEDOUT));
1427
+ i = null, s(new He(`timeout ${t} of ms exceeded`, He.ETIMEDOUT));
1428
1428
  }, t);
1429
1429
  const l = () => {
1430
1430
  e && (i && clearTimeout(i), i = null, e.forEach((u) => {
@@ -1529,7 +1529,7 @@ const Io = (e) => {
1529
1529
  let b = p && p[d];
1530
1530
  if (b)
1531
1531
  return b.call(p);
1532
- throw new _e(`Response type '${d}' is not supported`, _e.ERR_NOT_SUPPORT, x);
1532
+ throw new He(`Response type '${d}' is not supported`, He.ERR_NOT_SUPPORT, x);
1533
1533
  });
1534
1534
  });
1535
1535
  const h = async (d) => {
@@ -1564,11 +1564,11 @@ const Io = (e) => {
1564
1564
  headers: $,
1565
1565
  withCredentials: k = "same-origin",
1566
1566
  fetchOptions: B
1567
- } = Io(d), T = t || fetch;
1567
+ } = Io(d), L = t || fetch;
1568
1568
  j = j ? (j + "").toLowerCase() : "text";
1569
- let L = Ji([M, E && E.toAbortSignal()], C), A = null;
1570
- const S = L && L.unsubscribe && (() => {
1571
- L.unsubscribe();
1569
+ let T = Ji([M, E && E.toAbortSignal()], C), A = null;
1570
+ const S = T && T.unsubscribe && (() => {
1571
+ T.unsubscribe();
1572
1572
  });
1573
1573
  let V;
1574
1574
  try {
@@ -1589,7 +1589,7 @@ const Io = (e) => {
1589
1589
  Z.isString(k) || (k = k ? "include" : "omit");
1590
1590
  const Y = s && "credentials" in n.prototype, ee = {
1591
1591
  ...B,
1592
- signal: L,
1592
+ signal: T,
1593
1593
  method: x.toUpperCase(),
1594
1594
  headers: $.normalize().toJSON(),
1595
1595
  body: b,
@@ -1597,7 +1597,7 @@ const Io = (e) => {
1597
1597
  credentials: Y ? k : void 0
1598
1598
  };
1599
1599
  A = s && new n(p, ee);
1600
- let te = await (s ? T(A, B) : T(p, ee));
1600
+ let te = await (s ? L(A, B) : L(p, ee));
1601
1601
  const ie = c && (j === "stream" || j === "response");
1602
1602
  if (c && (F || ie && S)) {
1603
1603
  const le = {};
@@ -1629,11 +1629,11 @@ const Io = (e) => {
1629
1629
  });
1630
1630
  } catch (Y) {
1631
1631
  throw S && S(), Y && Y.name === "TypeError" && /Load failed|fetch/i.test(Y.message) ? Object.assign(
1632
- new _e("Network Error", _e.ERR_NETWORK, d, A),
1632
+ new He("Network Error", He.ERR_NETWORK, d, A),
1633
1633
  {
1634
1634
  cause: Y.cause || Y
1635
1635
  }
1636
- ) : _e.from(Y, Y && Y.code, d, A);
1636
+ ) : He.from(Y, Y && Y.code, d, A);
1637
1637
  }
1638
1638
  };
1639
1639
  }, sl = /* @__PURE__ */ new Map(), Wo = (e) => {
@@ -1675,7 +1675,7 @@ function il(e, t) {
1675
1675
  a = e[i];
1676
1676
  let l;
1677
1677
  if (o = a, !rl(a) && (o = ha[(l = String(a)).toLowerCase()], o === void 0))
1678
- throw new _e(`Unknown adapter '${l}'`);
1678
+ throw new He(`Unknown adapter '${l}'`);
1679
1679
  if (o && (Z.isFunction(o) || (o = o.get(t))))
1680
1680
  break;
1681
1681
  s[l || "#" + i] = o;
@@ -1687,7 +1687,7 @@ function il(e, t) {
1687
1687
  let l = n ? i.length > 1 ? `since :
1688
1688
  ` + i.map(Za).join(`
1689
1689
  `) : " " + Za(i[0]) : "as no adapter specified";
1690
- throw new _e(
1690
+ throw new He(
1691
1691
  "There is no suitable adapter to dispatch the request " + l,
1692
1692
  "ERR_NOT_SUPPORT"
1693
1693
  );
@@ -1741,9 +1741,9 @@ L1.transitional = function(t, n, a) {
1741
1741
  }
1742
1742
  return (s, i, l) => {
1743
1743
  if (t === !1)
1744
- throw new _e(
1744
+ throw new He(
1745
1745
  o(i, " has been removed" + (n ? " in " + n : "")),
1746
- _e.ERR_DEPRECATED
1746
+ He.ERR_DEPRECATED
1747
1747
  );
1748
1748
  return n && !Xa[i] && (Xa[i] = !0, console.warn(
1749
1749
  o(
@@ -1758,7 +1758,7 @@ L1.spelling = function(t) {
1758
1758
  };
1759
1759
  function ll(e, t, n) {
1760
1760
  if (typeof e != "object")
1761
- throw new _e("options must be an object", _e.ERR_BAD_OPTION_VALUE);
1761
+ throw new He("options must be an object", He.ERR_BAD_OPTION_VALUE);
1762
1762
  const a = Object.keys(e);
1763
1763
  let o = a.length;
1764
1764
  for (; o-- > 0; ) {
@@ -1766,11 +1766,11 @@ function ll(e, t, n) {
1766
1766
  if (i) {
1767
1767
  const l = e[s], f = l === void 0 || i(l, s, e);
1768
1768
  if (f !== !0)
1769
- throw new _e("option " + s + " must be " + f, _e.ERR_BAD_OPTION_VALUE);
1769
+ throw new He("option " + s + " must be " + f, He.ERR_BAD_OPTION_VALUE);
1770
1770
  continue;
1771
1771
  }
1772
1772
  if (n !== !0)
1773
- throw new _e("Unknown option " + s, _e.ERR_BAD_OPTION);
1773
+ throw new He("Unknown option " + s, He.ERR_BAD_OPTION);
1774
1774
  }
1775
1775
  }
1776
1776
  const f1 = {
@@ -2069,7 +2069,7 @@ at.CancelToken = cl;
2069
2069
  at.isCancel = No;
2070
2070
  at.VERSION = Zo;
2071
2071
  at.toFormData = T1;
2072
- at.AxiosError = _e;
2072
+ at.AxiosError = He;
2073
2073
  at.Cancel = at.CanceledError;
2074
2074
  at.all = function(t) {
2075
2075
  return Promise.all(t);
@@ -2252,13 +2252,13 @@ const hl = "v1/api/attendances/attendant/", ml = "v1/api/attendances/department/
2252
2252
  function l(f) {
2253
2253
  o.value = f, i("function", f);
2254
2254
  }
2255
- return He(
2255
+ return _e(
2256
2256
  () => s.modelValue,
2257
2257
  (f) => {
2258
2258
  o.value = f;
2259
2259
  },
2260
2260
  { immediate: !0 }
2261
- ), He(o, (f) => {
2261
+ ), _e(o, (f) => {
2262
2262
  i("update:modelValue", f);
2263
2263
  }), ot(async () => {
2264
2264
  if (o.value) {
@@ -2560,27 +2560,27 @@ const hl = "v1/api/attendances/attendant/", ml = "v1/api/attendances/department/
2560
2560
  function d() {
2561
2561
  if (!o.value) return;
2562
2562
  const C = window.innerWidth, F = window.innerHeight, P = n.viewportPadding, j = g(), $ = s.value ? s.value.getBoundingClientRect() : { width: 320, height: 200 }, k = n.placement === "auto" ? ["bottom", "top", "right", "left"] : [n.placement];
2563
- let B = k[0], T = 0, L = 0;
2563
+ let B = k[0], L = 0, T = 0;
2564
2564
  const A = j.left + j.width / 2 - $.width / 2, S = j.top + j.height / 2 - $.height / 2, V = j.left, Y = j.left + j.width - $.width, ee = j.top, te = j.top + j.height - $.height;
2565
2565
  for (const ie of k) {
2566
- if (ie === "bottom" && (L = j.bottom + n.offset, T = n.align === "start" ? V : n.align === "end" ? Y : A, L + $.height + P <= F)) {
2566
+ if (ie === "bottom" && (T = j.bottom + n.offset, L = n.align === "start" ? V : n.align === "end" ? Y : A, T + $.height + P <= F)) {
2567
2567
  B = "bottom";
2568
2568
  break;
2569
2569
  }
2570
- if (ie === "top" && (L = j.top - $.height - n.offset, T = n.align === "start" ? V : n.align === "end" ? Y : A, L >= P)) {
2570
+ if (ie === "top" && (T = j.top - $.height - n.offset, L = n.align === "start" ? V : n.align === "end" ? Y : A, T >= P)) {
2571
2571
  B = "top";
2572
2572
  break;
2573
2573
  }
2574
- if (ie === "right" && (T = j.right + n.offset, L = n.align === "start" ? ee : n.align === "end" ? te : S, T + $.width + P <= C)) {
2574
+ if (ie === "right" && (L = j.right + n.offset, T = n.align === "start" ? ee : n.align === "end" ? te : S, L + $.width + P <= C)) {
2575
2575
  B = "right";
2576
2576
  break;
2577
2577
  }
2578
- if (ie === "left" && (T = j.left - $.width - n.offset, L = n.align === "start" ? ee : n.align === "end" ? te : S, T >= P)) {
2578
+ if (ie === "left" && (L = j.left - $.width - n.offset, T = n.align === "start" ? ee : n.align === "end" ? te : S, L >= P)) {
2579
2579
  B = "left";
2580
2580
  break;
2581
2581
  }
2582
2582
  }
2583
- T = Math.min(Math.max(P, T), C - $.width - P), L = Math.min(Math.max(P, L), F - $.height - P), i.value = { left: T, top: L, p: B };
2583
+ L = Math.min(Math.max(P, L), C - $.width - P), T = Math.min(Math.max(P, T), F - $.height - P), i.value = { left: L, top: T, p: B };
2584
2584
  }
2585
2585
  function p() {
2586
2586
  x();
@@ -2599,7 +2599,7 @@ const hl = "v1/api/attendances/attendant/", ml = "v1/api/attendances/department/
2599
2599
  }
2600
2600
  ), h = [];
2601
2601
  }
2602
- He(
2602
+ _e(
2603
2603
  () => o.value,
2604
2604
  async (C) => {
2605
2605
  var F;
@@ -2610,7 +2610,7 @@ const hl = "v1/api/attendances/attendant/", ml = "v1/api/attendances/department/
2610
2610
  } else
2611
2611
  M();
2612
2612
  }
2613
- ), He(
2613
+ ), _e(
2614
2614
  () => n.anchorEl,
2615
2615
  async (C) => {
2616
2616
  var P;
@@ -2619,12 +2619,12 @@ const hl = "v1/api/attendances/attendant/", ml = "v1/api/attendances/department/
2619
2619
  const F = C instanceof Element ? C : null;
2620
2620
  F && (m = new ResizeObserver(d), m.observe(F)), d();
2621
2621
  }
2622
- ), He(
2622
+ ), _e(
2623
2623
  () => n.anchorRect,
2624
2624
  () => {
2625
2625
  o.value && d();
2626
2626
  }
2627
- ), He(
2627
+ ), _e(
2628
2628
  () => [n.placement, n.align, n.offset, n.viewportPadding],
2629
2629
  () => {
2630
2630
  o.value && d();
@@ -4231,10 +4231,10 @@ const Pn = Fn("attendant", {
4231
4231
  k
4232
4232
  );
4233
4233
  if (B) {
4234
- const [, T, L, A, S = "00", V = "00"] = B;
4234
+ const [, L, T, A, S = "00", V = "00"] = B;
4235
4235
  n = new Date(
4236
- Number(T),
4237
- Number(L) - 1,
4236
+ Number(L),
4237
+ Number(T) - 1,
4238
4238
  Number(A),
4239
4239
  Number(S),
4240
4240
  Number(V),
@@ -4242,14 +4242,14 @@ const Pn = Fn("attendant", {
4242
4242
  0
4243
4243
  );
4244
4244
  } else {
4245
- const T = typeof k == "string" && !k.includes("T") ? k.replace(" ", "T") : k;
4246
- n = new Date(T);
4245
+ const L = typeof k == "string" && !k.includes("T") ? k.replace(" ", "T") : k;
4246
+ n = new Date(L);
4247
4247
  }
4248
4248
  }
4249
4249
  console.log(t);
4250
4250
  const a = (k) => {
4251
- var B, T, L, A;
4252
- return n instanceof Date && !isNaN(n) && (k.date = n, k.time = h1(n)), ((T = (B = t == null ? void 0 : t.message) == null ? void 0 : B[0]) == null ? void 0 : T.content) != null && (k.content = t.message[0].content), k.raw = k.raw || { id: e }, k.raw.params = k.raw.params || {}, t != null && t.schedule && (k.raw.params.schedule = {
4251
+ var B, L, T, A;
4252
+ return n instanceof Date && !isNaN(n) && (k.date = n, k.time = h1(n)), ((L = (B = t == null ? void 0 : t.message) == null ? void 0 : B[0]) == null ? void 0 : L.content) != null && (k.content = t.message[0].content), k.raw = k.raw || { id: e }, k.raw.params = k.raw.params || {}, t != null && t.schedule && (k.raw.params.schedule = {
4253
4253
  ...k.raw.params.schedule || {},
4254
4254
  ...t.schedule
4255
4255
  }), t != null && t.scheduled_by && (k.raw.params.scheduled_by = t.scheduled_by), t.department && (k.raw.params.department = t.department), t != null && t.message && (k.raw.params.message = t.message), Object.prototype.hasOwnProperty.call(t || {}, "chat_id") && (k.chatId = t.chat_id ?? k.chatId ?? ""), t != null && t.entity && (k.raw.params.entity = {
@@ -4258,7 +4258,7 @@ const Pn = Fn("attendant", {
4258
4258
  }, Object.prototype.hasOwnProperty.call(t.entity, "name") && (k.contactName = t.entity.name ?? k.contactName ?? "Cliente"), Object.prototype.hasOwnProperty.call(t.entity, "photo") && (k.contactPhoto = t.entity.photo ?? k.contactPhoto ?? null, t.entity.photo && (k.photo = t.entity.photo))), t != null && t.info && (k.raw.params.info = {
4259
4259
  ...k.raw.params.info || {},
4260
4260
  ...t.info
4261
- }, (L = t.info) != null && L.department && Object.prototype.hasOwnProperty.call(t.info.department, "name") && (k.departmentName = t.info.department.name ?? k.departmentName), (A = t.info) != null && A.instance && (Object.prototype.hasOwnProperty.call(t.info.instance, "name") && (k.instanceName = t.info.instance.name ?? k.instanceName), Object.prototype.hasOwnProperty.call(
4261
+ }, (T = t.info) != null && T.department && Object.prototype.hasOwnProperty.call(t.info.department, "name") && (k.departmentName = t.info.department.name ?? k.departmentName), (A = t.info) != null && A.instance && (Object.prototype.hasOwnProperty.call(t.info.instance, "name") && (k.instanceName = t.info.instance.name ?? k.instanceName), Object.prototype.hasOwnProperty.call(
4262
4262
  t.info.instance,
4263
4263
  "last_instance_status"
4264
4264
  ) && (k.instanceStatus = t.info.instance.last_instance_status ?? k.instanceStatus))), Object.prototype.hasOwnProperty.call(t || {}, "title") ? k.title = t.title ?? k.title ?? "Mensagem programada" : k.title = k.title || "Mensagem programada", Object.prototype.hasOwnProperty.call(t || {}, "function") ? (k.function = t.function ?? k.function ?? "scheduled_messages", k.type = t.function ?? k.type ?? "scheduled_messages") : (k.function = k.function || "scheduled_messages", k.type = k.type || "scheduled_messages"), k;
@@ -4289,17 +4289,17 @@ const Pn = Fn("attendant", {
4289
4289
  ...Object.prototype.hasOwnProperty.call(t || {}, "chat_id") && {
4290
4290
  chatId: t.chat_id ?? ""
4291
4291
  }
4292
- }), T = bn(B.date), L = this.monthCache[T] ? [...this.monthCache[T], B] : [B];
4293
- L.sort((A, S) => A.date - S.date), this._setMonth(T, L);
4292
+ }), L = bn(B.date), T = this.monthCache[L] ? [...this.monthCache[L], B] : [B];
4293
+ T.sort((A, S) => A.date - S.date), this._setMonth(L, T);
4294
4294
  return;
4295
4295
  }
4296
4296
  const { ym: s, idx: i } = o, l = this.monthCache[s] || [], f = { ...l[i] }, u = a({ ...f }), c = u.date instanceof Date ? u.date : f.date, m = bn(c);
4297
4297
  if (m === s) {
4298
4298
  const k = [...l];
4299
- k.splice(i, 1, u), k.sort((B, T) => B.date - T.date), this._setMonth(s, k);
4299
+ k.splice(i, 1, u), k.sort((B, L) => B.date - L.date), this._setMonth(s, k);
4300
4300
  } else {
4301
4301
  const k = l.slice(0, i).concat(l.slice(i + 1)), B = this.monthCache[m] ? [...this.monthCache[m], u] : [u];
4302
- B.sort((T, L) => T.date - L.date), this.monthCache = {
4302
+ B.sort((L, T) => L.date - T.date), this.monthCache = {
4303
4303
  ...this.monthCache,
4304
4304
  [s]: k,
4305
4305
  [m]: B
@@ -4916,14 +4916,14 @@ const Pn = Fn("attendant", {
4916
4916
  status: null
4917
4917
  // true = pendente, false = executado, null = sem filtro (não emitido)
4918
4918
  });
4919
- He(
4919
+ _e(
4920
4920
  () => n.open,
4921
4921
  async ($) => {
4922
- var T, L, A;
4922
+ var L, T, A;
4923
4923
  if (!$) return;
4924
4924
  await lt();
4925
- const k = (T = s.value) != null && T.id ? String(s.value.id) : null;
4926
- i.onlyMine = !!k && String(((L = n.filters) == null ? void 0 : L.scheduled_by) ?? "") === k;
4925
+ const k = (L = s.value) != null && L.id ? String(s.value.id) : null;
4926
+ i.onlyMine = !!k && String(((T = n.filters) == null ? void 0 : T.scheduled_by) ?? "") === k;
4927
4927
  const B = (A = n.filters) == null ? void 0 : A.status;
4928
4928
  i.status = B === !0 || B === !1 ? B : null, x();
4929
4929
  },
@@ -4931,8 +4931,8 @@ const Pn = Fn("attendant", {
4931
4931
  );
4932
4932
  function l($, k) {
4933
4933
  if (!$) return {};
4934
- const { [k]: B, ...T } = $;
4935
- return T;
4934
+ const { [k]: B, ...L } = $;
4935
+ return L;
4936
4936
  }
4937
4937
  function f($) {
4938
4938
  var B;
@@ -4959,21 +4959,21 @@ const Pn = Fn("attendant", {
4959
4959
  const k = window.innerWidth / 2, B = window.innerHeight / 3;
4960
4960
  return { left: k, right: k, top: B, bottom: B, width: 0, height: 0 };
4961
4961
  }
4962
- function d($, k, B, T) {
4962
+ function d($, k, B, L) {
4963
4963
  return {
4964
4964
  left: Math.max(8, Math.min($, window.innerWidth - B - 8)),
4965
- top: Math.max(8, Math.min(k, window.innerHeight - T - 8))
4965
+ top: Math.max(8, Math.min(k, window.innerHeight - L - 8))
4966
4966
  };
4967
4967
  }
4968
4968
  function p() {
4969
- const $ = g(), k = c.value, B = (k == null ? void 0 : k.offsetWidth) ?? 300, T = (k == null ? void 0 : k.offsetHeight) ?? 220;
4970
- let L = $.bottom + n.offset, A;
4971
- if (n.align === "center" ? A = $.left + $.width / 2 - B / 2 : n.align === "end" ? A = $.right - B : A = $.left, L + T > window.innerHeight - 4) {
4972
- const V = $.top - T - n.offset;
4973
- V >= 4 ? (L = V, m.value.placed = "top") : m.value.placed = "bottom";
4969
+ const $ = g(), k = c.value, B = (k == null ? void 0 : k.offsetWidth) ?? 300, L = (k == null ? void 0 : k.offsetHeight) ?? 220;
4970
+ let T = $.bottom + n.offset, A;
4971
+ if (n.align === "center" ? A = $.left + $.width / 2 - B / 2 : n.align === "end" ? A = $.right - B : A = $.left, T + L > window.innerHeight - 4) {
4972
+ const V = $.top - L - n.offset;
4973
+ V >= 4 ? (T = V, m.value.placed = "top") : m.value.placed = "bottom";
4974
4974
  } else
4975
4975
  m.value.placed = "bottom";
4976
- const S = d(A, L, B, T);
4976
+ const S = d(A, T, B, L);
4977
4977
  m.value = { left: S.left, top: S.top, placed: m.value.placed };
4978
4978
  }
4979
4979
  function x() {
@@ -4998,19 +4998,19 @@ const Pn = Fn("attendant", {
4998
4998
  return (k = $.removeEventListener) == null ? void 0 : k.call($, "scroll", x);
4999
4999
  }), E = [];
5000
5000
  }
5001
- He(
5001
+ _e(
5002
5002
  () => n.open,
5003
5003
  async ($) => {
5004
- var B, T, L, A;
5004
+ var B, L, T, A;
5005
5005
  if (!$) {
5006
- F(), (B = b == null ? void 0 : b.disconnect) == null || B.call(b), (T = M == null ? void 0 : M.disconnect) == null || T.call(M);
5006
+ F(), (B = b == null ? void 0 : b.disconnect) == null || B.call(b), (L = M == null ? void 0 : M.disconnect) == null || L.call(M);
5007
5007
  return;
5008
5008
  }
5009
- await lt(), x(), C(), (L = b == null ? void 0 : b.disconnect) == null || L.call(b), b = new ResizeObserver(x), b.observe(document.body), (A = M == null ? void 0 : M.disconnect) == null || A.call(M);
5009
+ await lt(), x(), C(), (T = b == null ? void 0 : b.disconnect) == null || T.call(b), b = new ResizeObserver(x), b.observe(document.body), (A = M == null ? void 0 : M.disconnect) == null || A.call(M);
5010
5010
  const k = n.anchorEl instanceof Element ? n.anchorEl : null;
5011
5011
  k && (M = new ResizeObserver(x), M.observe(k)), window.addEventListener("resize", x);
5012
5012
  }
5013
- ), He(
5013
+ ), _e(
5014
5014
  () => n.anchorEl,
5015
5015
  async () => {
5016
5016
  n.open && (await lt(), C(), x());
@@ -5023,8 +5023,8 @@ const Pn = Fn("attendant", {
5023
5023
  if (!n.open) return;
5024
5024
  const k = $.target, B = c.value;
5025
5025
  if (B && B.contains(k)) return;
5026
- const T = n.anchorEl instanceof Element ? n.anchorEl : null;
5027
- T && T.contains && T.contains(k) || a("close");
5026
+ const L = n.anchorEl instanceof Element ? n.anchorEl : null;
5027
+ L && L.contains && L.contains(k) || a("close");
5028
5028
  }
5029
5029
  return ot(() => {
5030
5030
  document.addEventListener("pointerdown", j, !0), window.addEventListener("keydown", P);
@@ -5256,10 +5256,10 @@ const Pn = Fn("attendant", {
5256
5256
  function B(w) {
5257
5257
  return ["DOMINGO", "SEGUNDA", "TERÇA", "QUARTA", "QUINTA", "SEXTA", "SÁBADO"][w.getDay()];
5258
5258
  }
5259
- function T(w) {
5259
+ function L(w) {
5260
5260
  return ["DOM", "SEG", "TER", "QUA", "QUI", "SEX", "SÁB"][w.getDay()];
5261
5261
  }
5262
- function L(w) {
5262
+ function T(w) {
5263
5263
  return [
5264
5264
  "JAN",
5265
5265
  "FEV",
@@ -5426,7 +5426,7 @@ const Pn = Fn("attendant", {
5426
5426
  w.date.getDate()
5427
5427
  );
5428
5428
  }
5429
- }), He(
5429
+ }), _e(
5430
5430
  () => a.sourceUrl,
5431
5431
  async (w) => {
5432
5432
  if (o.setBaseUrl(w), o.resetAll(), await o.ensureMonthLoaded(pe.value), !Te(l.value).length && Ve.value.length) {
@@ -5438,7 +5438,7 @@ const Pn = Fn("attendant", {
5438
5438
  );
5439
5439
  }
5440
5440
  }
5441
- ), He(pe, async () => {
5441
+ ), _e(pe, async () => {
5442
5442
  const w = i.value.getFullYear(), O = i.value.getMonth(), K = Math.min(
5443
5443
  l.value.getDate(),
5444
5444
  c(i.value)
@@ -5512,8 +5512,8 @@ const Pn = Fn("attendant", {
5512
5512
  key: 1,
5513
5513
  days: rt.value,
5514
5514
  "weekday-long": B,
5515
- "weekday-short": T,
5516
- "month-short": L,
5515
+ "weekday-short": L,
5516
+ "month-short": T,
5517
5517
  "month-label-of": A,
5518
5518
  year: P.value,
5519
5519
  onOpenChat: O[6] || (O[6] = (K) => w.$emit("open-chat", K)),
@@ -5973,7 +5973,7 @@ const nd = /* @__PURE__ */ ss(X4, [["render", td], ["__scopeId", "data-v-d3e3763
5973
5973
  function d() {
5974
5974
  a == null || a.disconnect(), a = Y4(h);
5975
5975
  }
5976
- return He(c, d), ot(async () => {
5976
+ return _e(c, d), ot(async () => {
5977
5977
  h.parentEl = await Z4(m), d();
5978
5978
  }), $n(() => a == null ? void 0 : a.disconnect()), (p, x) => (v(), y("div", {
5979
5979
  ref_key: "infiniteLoading",
@@ -6860,12 +6860,12 @@ function tn() {
6860
6860
  function k(A) {
6861
6861
  return a = 0, A ? p = setTimeout(() => {
6862
6862
  B();
6863
- }, A) : B(), L;
6863
+ }, A) : B(), T;
6864
6864
  }
6865
6865
  function B() {
6866
6866
  e = xt.Running, $("start", x, b);
6867
6867
  }
6868
- function T() {
6868
+ function L() {
6869
6869
  if (e = xt.Completed, M = {}, $("end", x), e === xt.Completed) if (n < E) {
6870
6870
  if (n++, F === Cn.Reverse) {
6871
6871
  const A = Object.assign({}, d);
@@ -6873,42 +6873,42 @@ function tn() {
6873
6873
  }
6874
6874
  k(C);
6875
6875
  } else n = 0;
6876
- return L;
6876
+ return T;
6877
6877
  }
6878
- const L = { getState: function() {
6878
+ const T = { getState: function() {
6879
6879
  return e;
6880
6880
  }, easing: function(A) {
6881
- return o = A, t = en.Ease, M = {}, L;
6881
+ return o = A, t = en.Ease, M = {}, T;
6882
6882
  }, duration: function(A) {
6883
- return s = A, L;
6883
+ return s = A, T;
6884
6884
  }, spring: function(A = {}) {
6885
6885
  t = en.Spring;
6886
6886
  const S = { velocity: 0, mass: 1, tension: 170, friction: 26, restDelta: 0.1, restSpeed: 0.1, maxSpeed: 1 / 0, clamp: !0 }, { velocity: V, mass: Y, tension: ee, friction: te, restDelta: ie, restSpeed: pe, maxSpeed: le, clamp: be } = Object.assign(Object.assign({}, S), A);
6887
- return i = V, l = Y, f = ee, u = te, h = ie, m = pe, c = le, g = be, M = {}, L;
6887
+ return i = V, l = Y, f = ee, u = te, h = ie, m = pe, c = le, g = be, M = {}, T;
6888
6888
  }, isRunning: function() {
6889
6889
  return e === xt.Running;
6890
6890
  }, isSpring: function() {
6891
6891
  return t === en.Spring;
6892
6892
  }, from: function(A) {
6893
- return x = Object.assign({}, A), L;
6893
+ return x = Object.assign({}, A), T;
6894
6894
  }, to: function(A) {
6895
- return b = A, L;
6895
+ return b = A, T;
6896
6896
  }, repeat: function(A, S = 0, V = Cn.Loop, Y) {
6897
- return E = A, C = S, F = V, P = Y || o, L;
6897
+ return E = A, C = S, F = V, P = Y || o, T;
6898
6898
  }, on: function(A, S) {
6899
6899
  var V, Y;
6900
- return V = A, Y = S, j.set(V, [...j.get(V) || [], Y]), L;
6900
+ return V = A, Y = S, j.set(V, [...j.get(V) || [], Y]), T;
6901
6901
  }, off: function(A, S) {
6902
6902
  var V, Y;
6903
- return V = A, Y = S, j.has(V) && j.set(V, j.get(V).filter((ee) => ee !== Y)), L;
6903
+ return V = A, Y = S, j.has(V) && j.set(V, j.get(V).filter((ee) => ee !== Y)), T;
6904
6904
  }, start: function(A) {
6905
- return Nn(x, b) || (e = xt.Initializing, d = Object.assign({}, x), x1.add(this), Mn || (Mn = window.requestAnimationFrame(ds)), k(A)), L;
6905
+ return Nn(x, b) || (e = xt.Initializing, d = Object.assign({}, x), x1.add(this), Mn || (Mn = window.requestAnimationFrame(ds)), k(A)), T;
6906
6906
  }, pause: function() {
6907
- return p && (clearTimeout(p), p = null), e === xt.Running && (e = xt.Paused, $("pause", x)), L;
6908
- }, end: T, tick: function(A) {
6907
+ return p && (clearTimeout(p), p = null), e === xt.Running && (e = xt.Paused, $("pause", x)), T;
6908
+ }, end: L, tick: function(A) {
6909
6909
  A > 50 && (A = 50), a += A;
6910
6910
  let S = 0, V = !1;
6911
- if (e !== xt.Running) return L;
6911
+ if (e !== xt.Running) return T;
6912
6912
  if (t === en.Ease) {
6913
6913
  S = je(0, a / s, 1), V = S === 1;
6914
6914
  const ee = F === Cn.Reverse ? P : o;
@@ -6937,7 +6937,7 @@ function tn() {
6937
6937
  V = !te;
6938
6938
  }
6939
6939
  const Y = Object.assign({}, b);
6940
- return $("step", x, d, b, S), V && e === xt.Running && Nn(b, Y) && (e = xt.Completed, T()), L;
6940
+ return $("step", x, d, b, S), V && e === xt.Running && Nn(b, Y) && (e = xt.Completed, L()), T;
6941
6941
  }, getStartValues: function() {
6942
6942
  return d;
6943
6943
  }, getCurrentValues: function() {
@@ -6949,7 +6949,7 @@ function tn() {
6949
6949
  }, destroy: function() {
6950
6950
  e = xt.Destroyed, p && (clearTimeout(p), p = null), d = x = b = {}, x1.delete(this);
6951
6951
  } };
6952
- return L;
6952
+ return T;
6953
6953
  }
6954
6954
  tn.destroy = () => {
6955
6955
  for (const e of x1) e.destroy();
@@ -7000,7 +7000,7 @@ const Tn = (e, t) => {
7000
7000
  const pe = e1(l), le = e1(f), be = pe && le ? pe / le : 0, Ne = Math.abs(E) > Math.abs(C) ? E : C, Ve = { srcEvent: n, isPanRecognized: u, isSwipeRecognized: c, firstTouch: i, previousTouch: f, currentTouch: l, deltaX: p, deltaY: x, offsetX: b, offsetY: M, velocityX: E, velocityY: C, velocity: Ne, angle: F, axis: o, scale: be, center: a };
7001
7001
  for (const Te of k.get(ie) || []) Te(Ve);
7002
7002
  }
7003
- function T(ie) {
7003
+ function L(ie) {
7004
7004
  const pe = Date.now();
7005
7005
  if (P = P.filter((le) => !le.ts || le.ts > pe - 100), ie && P.push(ie), E = 0, C = 0, P.length > 3) {
7006
7006
  const le = P[0], be = P[P.length - 1];
@@ -7010,7 +7010,7 @@ const Tn = (e, t) => {
7010
7010
  }
7011
7011
  }
7012
7012
  }
7013
- function L(ie) {
7013
+ function T(ie) {
7014
7014
  if (typeof MouseEvent < "u" && ie instanceof MouseEvent) {
7015
7015
  if (t1) return;
7016
7016
  } else t1 = !0;
@@ -7020,7 +7020,7 @@ const Tn = (e, t) => {
7020
7020
  if (!ie.buttons || ie.button !== 0) return;
7021
7021
  g0(ie);
7022
7022
  }
7023
- ie instanceof MouseEvent && (window.addEventListener("mousemove", A), window.addEventListener("mouseup", S)), window.addEventListener("blur", V), n = ie, l = p0(ie), i = [...l], f = [], d = l.length, a = Jt(l), d === 1 && (u = !1, c = !1, m = !1), d && T(Jt(l));
7023
+ ie instanceof MouseEvent && (window.addEventListener("mousemove", A), window.addEventListener("mouseup", S)), window.addEventListener("blur", V), n = ie, l = p0(ie), i = [...l], f = [], d = l.length, a = Jt(l), d === 1 && (u = !1, c = !1, m = !1), d && L(Jt(l));
7024
7024
  const be = Date.now(), Ne = be - (g || be);
7025
7025
  h = Ne > 0 && Ne <= 250 && d === 1, g = be, clearTimeout(j), B("start");
7026
7026
  }
@@ -7029,7 +7029,7 @@ const Tn = (e, t) => {
7029
7029
  if (!i.length || ie.defaultPrevented) return;
7030
7030
  n = ie, f = [...l], l = m0(ie);
7031
7031
  const le = Jt(f), be = Jt(m0(ie));
7032
- if (T(be), d = l.length, a = be, f.length === l.length ? (p = be.x - le.x, x = be.y - le.y) : (p = 0, x = 0), i.length) {
7032
+ if (L(be), d = l.length, a = be, f.length === l.length ? (p = be.x - le.x, x = be.y - le.y) : (p = 0, x = 0), i.length) {
7033
7033
  const Ne = Jt(i);
7034
7034
  b = be.x - Ne.x, M = be.y - Ne.y;
7035
7035
  }
@@ -7042,7 +7042,7 @@ const Tn = (e, t) => {
7042
7042
  function S(ie) {
7043
7043
  if (n = ie, !i.length) return;
7044
7044
  const pe = p0(ie), le = us(ie);
7045
- if (d = pe.length, a = Jt(le), le.length && T(Jt(le)), f = [...l], l = [...pe], i = [...pe], d > 0) B("end"), u = !1, c = !1, P = [];
7045
+ if (d = pe.length, a = Jt(le), le.length && L(Jt(le)), f = [...l], l = [...pe], i = [...pe], d > 0) B("end"), u = !1, c = !1, P = [];
7046
7046
  else {
7047
7047
  const be = s.swipeThreshold;
7048
7048
  (Math.abs(E) > be || Math.abs(C) > be) && (c = !0), u && B("panend"), c && B("swipe"), u || c || m || (B("tap"), h ? B("doubleTap") : j = setTimeout(function() {
@@ -7063,7 +7063,7 @@ const Tn = (e, t) => {
7063
7063
  t1 = !1, pe && !ie.defaultPrevented && (Rn || (g0(ie), ie.stopPropagation()));
7064
7064
  }
7065
7065
  const te = { init: function() {
7066
- return e && (e.addEventListener("click", ee, Qt), e.addEventListener("mousedown", L, Qt), e.addEventListener("touchstart", L, Qt), e.addEventListener("touchmove", A, Qt), e.addEventListener("touchend", S), e.addEventListener("touchcancel", S)), te;
7066
+ return e && (e.addEventListener("click", ee, Qt), e.addEventListener("mousedown", T, Qt), e.addEventListener("touchstart", T, Qt), e.addEventListener("touchmove", A, Qt), e.addEventListener("touchend", S), e.addEventListener("touchcancel", S)), te;
7067
7067
  }, on: function(ie, pe) {
7068
7068
  return function(le, be) {
7069
7069
  k.set(le, [...k.get(le) || [], be]);
@@ -7071,7 +7071,7 @@ const Tn = (e, t) => {
7071
7071
  }, off: function(ie, pe) {
7072
7072
  return k.has(ie) && k.set(ie, k.get(ie).filter((le) => le !== pe)), te;
7073
7073
  }, isPointerDown: () => d > 0, destroy: function() {
7074
- clearTimeout(j), clearTimeout($), $ = 0, e && (e.removeEventListener("click", ee, Qt), e.removeEventListener("mousedown", L, Qt), e.removeEventListener("touchstart", L, Qt), e.removeEventListener("touchmove", A, Qt), e.removeEventListener("touchend", S), e.removeEventListener("touchcancel", S)), e = null, Y();
7074
+ clearTimeout(j), clearTimeout($), $ = 0, e && (e.removeEventListener("click", ee, Qt), e.removeEventListener("mousedown", T, Qt), e.removeEventListener("touchstart", T, Qt), e.removeEventListener("touchmove", A, Qt), e.removeEventListener("touchend", S), e.removeEventListener("touchcancel", S)), e = null, Y();
7075
7075
  } };
7076
7076
  return te;
7077
7077
  };
@@ -7207,7 +7207,7 @@ const na = (e, t = {}, n = {}) => {
7207
7207
  if (!e || !o) return;
7208
7208
  if ($(), jt(o) && (!o.complete || !o.naturalWidth)) return m = 2, a == null || a.classList.add("has-error"), void C("error");
7209
7209
  C("loaded");
7210
- const { width: _, height: q } = L();
7210
+ const { width: _, height: q } = T();
7211
7211
  jt(o) && (o.setAttribute("width", _ + ""), o.setAttribute("height", q + "")), a && (bt(a, "has-error"), jt(o) && (a.setAttribute("width", _ + ""), a.setAttribute("height", q + ""), a.style.aspectRatio = `${_ / q || ""}`)), f = tn().on("start", (X, w) => {
7212
7212
  w.angle !== void 0 && (w.angle = 90 * Math.round(w.angle / 90)), w.flipX !== void 0 && (w.flipX = w.flipX > 0 ? 1 : -1), w.flipY !== void 0 && (w.flipY = w.flipY > 0 ? 1 : -1), p = Object.assign(Object.assign({}, Ht), w), Ve(), C("animationStart");
7213
7213
  }).on("pause", (X) => {
@@ -7273,7 +7273,7 @@ const na = (e, t = {}, n = {}) => {
7273
7273
  }
7274
7274
  return X;
7275
7275
  }
7276
- function T() {
7276
+ function L() {
7277
7277
  const _ = { top: 0, left: 0, width: 0, height: 0 };
7278
7278
  if (a) {
7279
7279
  const q = a.getBoundingClientRect();
@@ -7281,7 +7281,7 @@ const na = (e, t = {}, n = {}) => {
7281
7281
  }
7282
7282
  return _;
7283
7283
  }
7284
- function L() {
7284
+ function T() {
7285
7285
  let _ = b("width"), q = b("height");
7286
7286
  if (o && _ === "auto") {
7287
7287
  const ne = o.getAttribute("width");
@@ -7294,7 +7294,7 @@ const na = (e, t = {}, n = {}) => {
7294
7294
  return { width: _, height: q };
7295
7295
  }
7296
7296
  function A() {
7297
- const _ = T();
7297
+ const _ = L();
7298
7298
  return { width: _.width, height: _.height };
7299
7299
  }
7300
7300
  function S() {
@@ -7313,7 +7313,7 @@ const na = (e, t = {}, n = {}) => {
7313
7313
  }
7314
7314
  function Y(_ = "base") {
7315
7315
  if (!e) return 1;
7316
- const q = e.getBoundingClientRect(), ne = T(), { width: X, height: w } = L(), O = (ye) => {
7316
+ const q = e.getBoundingClientRect(), ne = L(), { width: X, height: w } = T(), O = (ye) => {
7317
7317
  if (typeof ye == "number") return ye;
7318
7318
  switch (ye) {
7319
7319
  case "min":
@@ -7359,7 +7359,7 @@ const na = (e, t = {}, n = {}) => {
7359
7359
  function be(_) {
7360
7360
  const q = { x: [0, 0], y: [0, 0] }, ne = e == null ? void 0 : e.getBoundingClientRect();
7361
7361
  if (!ne) return q;
7362
- const X = T(), w = ne.width, O = ne.height;
7362
+ const X = L(), w = ne.width, O = ne.height;
7363
7363
  let K = X.width, ae = X.height, fe = _ = _ === void 0 ? p.scale : _, ve = _;
7364
7364
  if (S() && _ > 1) {
7365
7365
  const ye = b("mouseMoveFactor");
@@ -7416,7 +7416,7 @@ const na = (e, t = {}, n = {}) => {
7416
7416
  if (!(_ && e && o && f && M()) || _ === we.Swipe && Math.abs(f.getCurrentVelocities().scale) > 0.01) return;
7417
7417
  const X = Object.assign({}, p);
7418
7418
  let w = Object.assign({}, p), O = be(S() ? X.scale : d.scale);
7419
- const K = f.getCurrentVelocities(), ae = T(), fe = (((ne = (q = q || {}).currentTouch) === null || ne === void 0 ? void 0 : ne.length) || 0) > 1, ve = q.velocityX || 0, ye = q.velocityY || 0;
7419
+ const K = f.getCurrentVelocities(), ae = L(), fe = (((ne = (q = q || {}).currentTouch) === null || ne === void 0 ? void 0 : ne.length) || 0) > 1, ve = q.velocityX || 0, ye = q.velocityY || 0;
7420
7420
  let $e = q.center;
7421
7421
  q.srcEvent && ($e = Jt(us(q.srcEvent)));
7422
7422
  let Pe = q.deltaX || 0, Ue = q.deltaY || 0;
@@ -7525,10 +7525,10 @@ const na = (e, t = {}, n = {}) => {
7525
7525
  }
7526
7526
  function st() {
7527
7527
  if (!o || !a || !i) return;
7528
- const { width: _, height: q } = L();
7528
+ const { width: _, height: q } = T();
7529
7529
  Object.assign(a.style, { maxWidth: `min(${_}px, 100%)`, maxHeight: `min(${q}px, 100%)` });
7530
7530
  const ne = function() {
7531
- const { width: Pe, height: Ue } = L(), { width: Ee, height: D } = A();
7531
+ const { width: Pe, height: Ue } = T(), { width: Ee, height: D } = A();
7532
7532
  if (!e) return { x: 0, y: 0, width: 0, height: 0, scale: 0, flipX: 0, flipY: 0, angle: 0, fitWidth: Ee, fitHeight: D, fullWidth: Pe, fullHeight: Ue };
7533
7533
  let { x: R, y: N, scale: H, angle: G, flipX: W, flipY: J } = d, de = 1 / pe(), ge = Pe, he = Ue, Ce = d.scale * de, Fe = p.scale * de;
7534
7534
  const Ge = Math.max(Ee, D), qe = Math.min(Ee, D);
@@ -7620,7 +7620,7 @@ const na = (e, t = {}, n = {}) => {
7620
7620
  return e;
7621
7621
  }, getContent: function() {
7622
7622
  return o;
7623
- }, getFullDim: L, getGestures: function() {
7623
+ }, getFullDim: T, getGestures: function() {
7624
7624
  return l;
7625
7625
  }, getMousemovePos: V, getOptions: function() {
7626
7626
  return h;
@@ -7733,8 +7733,8 @@ const on = (e) => {
7733
7733
  let b0, k0 = 0;
7734
7734
  const k1 = (e, t = {}, n = {}) => {
7735
7735
  k0++;
7736
- let a, o, s, i, l, f = 0, u = Object.assign({}, kn), c = Object.assign({}, kn), m = {}, h = null, g = null, d = !1, p = !1, x = !1, b = !1, M = "height", E = 0, C = !0, F = 0, P = 0, j = 0, $ = 0, k = "*", B = [], T = [];
7737
- const L = /* @__PURE__ */ new Set();
7736
+ let a, o, s, i, l, f = 0, u = Object.assign({}, kn), c = Object.assign({}, kn), m = {}, h = null, g = null, d = !1, p = !1, x = !1, b = !1, M = "height", E = 0, C = !0, F = 0, P = 0, j = 0, $ = 0, k = "*", B = [], L = [];
7737
+ const T = /* @__PURE__ */ new Set();
7738
7738
  let A = [], S = [], V = 0, Y = 0, ee = 0;
7739
7739
  function te(D, ...R) {
7740
7740
  let N = c[D];
@@ -7833,7 +7833,7 @@ const k1 = (e, t = {}, n = {}) => {
7833
7833
  const { srcEvent: G } = R;
7834
7834
  b && jn(G) && !fn(G.target) && on(G), o.pause(), o.getCurrentVelocities().pos = 0;
7835
7835
  const W = (N = S[F]) === null || N === void 0 ? void 0 : N.slides[0];
7836
- W && L.has(W.index) && W.el && (E = W.offset || 0, E += (function(J) {
7836
+ W && T.has(W.index) && W.el && (E = W.offset || 0, E += (function(J) {
7837
7837
  const de = window.getComputedStyle(J), ge = new DOMMatrixReadOnly(de.transform);
7838
7838
  return { width: ge.m41 || 0, height: ge.m42 || 0 };
7839
7839
  }(W.el)[M] || 0) * (x && !b ? 1 : -1)), ne(), p || (E < j || E > $) && o.spring({ clamp: !0, mass: 1, tension: 500, friction: 25, velocity: ((H = o.getCurrentVelocities()) === null || H === void 0 ? void 0 : H.pos) || 0, restDelta: 1, restSpeed: 1 }).from({ pos: E }).to({ pos: je(j, E, $) }).start();
@@ -7876,7 +7876,7 @@ const k1 = (e, t = {}, n = {}) => {
7876
7876
  var R;
7877
7877
  const N = [];
7878
7878
  for (const H of B) (D === "*" || H.class && H.class.includes(D) || H.el && (!((R = H.el) === null || R === void 0) && R.classList.contains(D))) && N.push(H);
7879
- i = void 0, k = D, T = [...N];
7879
+ i = void 0, k = D, L = [...N];
7880
7880
  }
7881
7881
  function st() {
7882
7882
  if (!o) return;
@@ -7927,7 +7927,7 @@ const k1 = (e, t = {}, n = {}) => {
7927
7927
  return g && (g.childElementCount || (g.style.display = "grid"), D = g.getBoundingClientRect()[M] || 0, g.style.display = ""), D;
7928
7928
  }
7929
7929
  function Ke(D = !0) {
7930
- return T.length ? T.reduce((R, N) => R + N.dim, 0) + (T.length - (p && D ? 0 : 1)) * ee : 0;
7930
+ return L.length ? L.reduce((R, N) => R + N.dim, 0) + (L.length - (p && D ? 0 : 1)) * ee : 0;
7931
7931
  }
7932
7932
  function et(D) {
7933
7933
  const R = Ke(), N = rt();
@@ -7940,7 +7940,7 @@ const k1 = (e, t = {}, n = {}) => {
7940
7940
  G = Math.abs(de[b ? "top" : "left"]), W = Math.abs(window[b ? "innerHeight" : "innerWidth"] - de[b ? "bottom" : "right"]);
7941
7941
  }
7942
7942
  let J = 0;
7943
- for (let de of T) {
7943
+ for (let de of L) {
7944
7944
  const ge = (he = 0) => {
7945
7945
  H.indexOf(de) > -1 || (de.pos = J - D + he || 0, de.offset + he > D - de.dim - G + 0.51 && de.offset + he < D + N + W - 0.51 && H.push(de));
7946
7946
  };
@@ -8009,7 +8009,7 @@ const k1 = (e, t = {}, n = {}) => {
8009
8009
  }
8010
8010
  return ge;
8011
8011
  }();
8012
- for (const ge of T) {
8012
+ for (const ge of L) {
8013
8013
  const he = ge.el;
8014
8014
  let Ce = 0;
8015
8015
  if (!ge.isVirtual && he && wn(he)) {
@@ -8026,8 +8026,8 @@ const k1 = (e, t = {}, n = {}) => {
8026
8026
  const Ce = g.getBoundingClientRect();
8027
8027
  he += Ce.left, he += Ce.right - Ce.width;
8028
8028
  }
8029
- for (let Ce = 0; Ce < T.length; Ce++) {
8030
- const Fe = ((R = T[Ce]) === null || R === void 0 ? void 0 : R.dim) + ee;
8029
+ for (let Ce = 0; Ce < L.length; Ce++) {
8030
+ const Fe = ((R = L[Ce]) === null || R === void 0 ? void 0 : R.dim) + ee;
8031
8031
  if (ge - Fe < he && ge - Fe - he < Fe) {
8032
8032
  p = !1;
8033
8033
  break;
@@ -8041,7 +8041,7 @@ const k1 = (e, t = {}, n = {}) => {
8041
8041
  let Fe = te("slidesPerPage");
8042
8042
  Fe = Fe === "auto" ? 1 / 0 : parseFloat(Fe + ""), S = [];
8043
8043
  let Ge = 0, qe = 0;
8044
- for (const Je of T) (!S.length || Ge + Je.dim - he > 0.05 || qe >= Fe) && (S.push({ index: S.length, slides: [], dim: 0, offset: 0, pos: 0 }), Ge = 0, qe = 0), (ge = S[S.length - 1]) === null || ge === void 0 || ge.slides.push(Je), Ge += Je.dim + ee, qe++;
8044
+ for (const Je of L) (!S.length || Ge + Je.dim - he > 0.05 || qe >= Fe) && (S.push({ index: S.length, slides: [], dim: 0, offset: 0, pos: 0 }), Ge = 0, qe = 0), (ge = S[S.length - 1]) === null || ge === void 0 || ge.slides.push(Je), Ge += Je.dim + ee, qe++;
8045
8045
  const tt = te("center"), Tt = te("fill");
8046
8046
  let Lt = 0;
8047
8047
  for (const Je of S) {
@@ -8073,17 +8073,17 @@ const k1 = (e, t = {}, n = {}) => {
8073
8073
  }
8074
8074
  if (!D || !N) return;
8075
8075
  const H = [`f-${N}Out`, `f-${N}In`, "to-prev", "to-next", "from-prev", "from-next"];
8076
- D.removeEventListener("animationend", X), bt(D, H.join(" ")), L.delete(R);
8076
+ D.removeEventListener("animationend", X), bt(D, H.join(" ")), T.delete(R);
8077
8077
  }
8078
8078
  function ne() {
8079
8079
  if (!g) return;
8080
- const D = L.size > 0;
8081
- for (const R of T) q(R.el);
8082
- L.clear(), D && ye();
8080
+ const D = T.size > 0;
8081
+ for (const R of L) q(R.el);
8082
+ T.clear(), D && ye();
8083
8083
  }
8084
8084
  function X(D) {
8085
8085
  var R;
8086
- ((R = D.animationName) === null || R === void 0 ? void 0 : R.substring(0, 2)) === "f-" && (q(D.target), L.size || (bt(h, "in-transition"), !C && Math.abs(Ee.getPosition(!0) - P) < 0.5 && (C = !0, le("settle"))), ye());
8086
+ ((R = D.animationName) === null || R === void 0 ? void 0 : R.substring(0, 2)) === "f-" && (q(D.target), T.size || (bt(h, "in-transition"), !C && Math.abs(Ee.getPosition(!0) - P) < 0.5 && (C = !0, le("settle"))), ye());
8087
8087
  }
8088
8088
  function w(D) {
8089
8089
  var R;
@@ -8149,7 +8149,7 @@ const k1 = (e, t = {}, n = {}) => {
8149
8149
  if (Dt === void 0 || Rt === void 0 || Rt === Dt || E === Ba || Math.abs(rt() - ((Je == null ? void 0 : Je.dim) || 0)) > 1) return !1;
8150
8150
  C = !1, o.pause(), ne(), De(h, "in-transition"), E = P = Ba;
8151
8151
  const vn = re($t), yn = re(Je);
8152
- return st(), vn && (L.add(Rt), vn.style.transform = "", vn.addEventListener("animationend", X), bt(vn, c.classes.isSelected), vn.inert = !1, De(vn, `f-${Ce}Out to-${Lt > 0 ? "next" : "prev"}`)), yn && (L.add(Dt), yn.style.transform = "", yn.addEventListener("animationend", X), De(yn, c.classes.isSelected), yn.inert = !1, De(yn, `f-${Ce}In from-${Lt > 0 ? "prev" : "next"}`)), ye(), !0;
8152
+ return st(), vn && (T.add(Rt), vn.style.transform = "", vn.addEventListener("animationend", X), bt(vn, c.classes.isSelected), vn.inert = !1, De(vn, `f-${Ce}Out to-${Lt > 0 ? "next" : "prev"}`)), yn && (T.add(Dt), yn.style.transform = "", yn.addEventListener("animationend", X), De(yn, c.classes.isSelected), yn.inert = !1, De(yn, `f-${Ce}In from-${Lt > 0 ? "prev" : "next"}`)), ye(), !0;
8153
8153
  }(D, G)) return;
8154
8154
  D = p ? (D % J + J) % J : je(0, D, J - 1), P = ((N = S[D || 0]) === null || N === void 0 ? void 0 : N.pos) || 0;
8155
8155
  const ge = o.isRunning() ? o.getEndValues().pos : E;
@@ -8177,8 +8177,8 @@ const k1 = (e, t = {}, n = {}) => {
8177
8177
  A = et();
8178
8178
  const R = /* @__PURE__ */ new Set(), N = [], H = S[F], G = c.setTransform;
8179
8179
  let W;
8180
- for (const J of T) {
8181
- const de = L.has(J.index), ge = A.indexOf(J) > -1, he = ((D = H == null ? void 0 : H.slides) === null || D === void 0 ? void 0 : D.indexOf(J)) > -1;
8180
+ for (const J of L) {
8181
+ const de = T.has(J.index), ge = A.indexOf(J) > -1, he = ((D = H == null ? void 0 : H.slides) === null || D === void 0 ? void 0 : D.indexOf(J)) > -1;
8182
8182
  if (J.isVirtual && !de && !ge) continue;
8183
8183
  let Ce = re(J);
8184
8184
  if (Ce && (N.push(J), he && R.add(Ce), te("adaptiveHeight") && he)) {
@@ -8190,7 +8190,7 @@ const k1 = (e, t = {}, n = {}) => {
8190
8190
  ht(J, c.classes.isSelected, R.has(J));
8191
8191
  const de = B[parseInt(J.getAttribute("index") || "-1")];
8192
8192
  if (!de) return J.remove(), void q(J);
8193
- const ge = L.has(de.index), he = A.indexOf(de) > -1;
8193
+ const ge = T.has(de.index), he = A.indexOf(de) > -1;
8194
8194
  if (de.isVirtual && !ge && !he) return void Q(de);
8195
8195
  if (J.inert = !he, G === !1) return;
8196
8196
  let Ce = de.pos ? Math.round(1e4 * de.pos) / 1e4 : 0, Fe = 0, Ge = 0, qe = 0, tt = 0;
@@ -8198,7 +8198,7 @@ const k1 = (e, t = {}, n = {}) => {
8198
8198
  }), le("render", N);
8199
8199
  }
8200
8200
  function $e() {
8201
- h == null || h.removeEventListener("click", w), document.removeEventListener("mousemove", Ne), L.clear(), s == null || s.disconnect(), s = void 0;
8201
+ h == null || h.removeEventListener("click", w), document.removeEventListener("mousemove", Ne), T.clear(), s == null || s.disconnect(), s = void 0;
8202
8202
  for (const D of B) {
8203
8203
  let R = D.el;
8204
8204
  R && wn(R) && (D.state = void 0, O(D), K(D), D.isVirtual ? (Q(D), D.el = void 0) : (q(R), R.style.transform = "", g && !g.contains(R) && g.appendChild(R)));
@@ -8220,7 +8220,7 @@ const k1 = (e, t = {}, n = {}) => {
8220
8220
  const G = F, W = Ke(), J = o != null && o.isRunning() ? o.getEndValues().pos : E, de = W && Math.floor((J - (((N = S[0]) === null || N === void 0 ? void 0 : N.pos) || 0)) / W) || 0;
8221
8221
  return I(D, R), Te(k), _(), o && W && (G === F && (H -= de * W), H === P ? E = P : o.spring({ clamp: !0, mass: 1, tension: 300, friction: 25, restDelta: 1, restSpeed: 1 }).from({ pos: H }).to({ pos: P }).start()), ye(), Ee;
8222
8222
  }, canGoPrev: Pe, canGoNext: Ue, destroy: function() {
8223
- return le("destroy"), window.removeEventListener("resize", be), $e(), pe.clear(), h = null, S = [], B = [], c = Object.assign({}, kn), m = {}, T = [], l = void 0, k = "*", f = 2, Ee;
8223
+ return le("destroy"), window.removeEventListener("resize", be), $e(), pe.clear(), h = null, S = [], B = [], c = Object.assign({}, kn), m = {}, L = [], l = void 0, k = "*", f = 2, Ee;
8224
8224
  }, emit: le, filter: function(D = "*") {
8225
8225
  return Te(D), _(), E = je(j, E, $), ye(), le("filter", D), Ee;
8226
8226
  }, getContainer: function() {
@@ -8291,7 +8291,7 @@ const k1 = (e, t = {}, n = {}) => {
8291
8291
  }, isInfinite: function() {
8292
8292
  return p;
8293
8293
  }, isInTransition: function() {
8294
- return L.size > 0;
8294
+ return T.size > 0;
8295
8295
  }, isRTL: function() {
8296
8296
  return x;
8297
8297
  }, isSettled: function() {
@@ -8670,13 +8670,13 @@ const P0 = { autoStart: !0, pauseOnHover: !0, showProgressbar: !0, timeout: 2e3
8670
8670
  if (!e || (m(), !i("showProgressbar"))) return;
8671
8671
  let B = i("progressbarParentEl");
8672
8672
  if (!B && (!((P = e.getPlugins().Toolbar) === null || P === void 0) && P.isEnabled()) && (B = e.getContainer()), !B && ((j = e.getPlugins().Toolbar) === null || j === void 0 ? void 0 : j.isEnabled()) !== !0) {
8673
- const L = (($ = e.getPages()[0]) === null || $ === void 0 ? void 0 : $.slides) || [], A = ((k = e.getPage()) === null || k === void 0 ? void 0 : k.slides) || [];
8674
- L.length === 1 && A.length === 1 && (B = A[0].el);
8673
+ const T = (($ = e.getPages()[0]) === null || $ === void 0 ? void 0 : $.slides) || [], A = ((k = e.getPage()) === null || k === void 0 ? void 0 : k.slides) || [];
8674
+ T.length === 1 && A.length === 1 && (B = A[0].el);
8675
8675
  }
8676
8676
  if (B || (B = e.getViewport()), !B) return;
8677
8677
  s = document.createElement("div"), De(s, "f-progressbar"), B.prepend(s);
8678
- const T = i("timeout") || 1e3;
8679
- s.style.animationDuration = `${T}ms`;
8678
+ const L = i("timeout") || 1e3;
8679
+ s.style.animationDuration = `${L}ms`;
8680
8680
  })();
8681
8681
  const F = i("timeout");
8682
8682
  t = setTimeout(() => {
@@ -8841,14 +8841,14 @@ const zd = () => {
8841
8841
  const ie = te.matches("button") ? te : te.firstElementChild;
8842
8842
  ie && ie.matches("button") && (ee.preventDefault(), ie.focus({ preventScroll: !0 }));
8843
8843
  }
8844
- }), De(e.getContainer(), "has-thumbs"), L();
8844
+ }), De(e.getContainer(), "has-thumbs"), T();
8845
8845
  }
8846
8846
  function M() {
8847
8847
  u() && f("showOnStart") && (p(), x());
8848
8848
  }
8849
8849
  function E() {
8850
8850
  var A;
8851
- u() && (b(), e == null || e.on("addSlide", j), e == null || e.on("removeSlide", $), e == null || e.on("click", k), e == null || e.on("refresh", B), (A = e == null ? void 0 : e.getGestures()) === null || A === void 0 || A.on("start", C), T(!0));
8851
+ u() && (b(), e == null || e.on("addSlide", j), e == null || e.on("removeSlide", $), e == null || e.on("click", k), e == null || e.on("refresh", B), (A = e == null ? void 0 : e.getGestures()) === null || A === void 0 || A.on("start", C), L(!0));
8852
8852
  }
8853
8853
  function C() {
8854
8854
  var A, S;
@@ -8856,7 +8856,7 @@ const zd = () => {
8856
8856
  }
8857
8857
  function F() {
8858
8858
  var A, S;
8859
- n == null || n.classList.toggle("is-syncing", (e == null ? void 0 : e.hasNavigated()) === !1 || ((A = e == null ? void 0 : e.getTween()) === null || A === void 0 ? void 0 : A.isRunning())), L(), !((S = e == null ? void 0 : e.getGestures()) === null || S === void 0) && S.isPointerDown() && function() {
8859
+ n == null || n.classList.toggle("is-syncing", (e == null ? void 0 : e.hasNavigated()) === !1 || ((A = e == null ? void 0 : e.getTween()) === null || A === void 0 ? void 0 : A.isRunning())), T(), !((S = e == null ? void 0 : e.getGestures()) === null || S === void 0) && S.isPointerDown() && function() {
8860
8860
  if (!c() || !e || !t || !l) return;
8861
8861
  const V = t.getTween(), Y = t.getPages(), ee = e.getPageIndex() || 0, te = e.getPageProgress() || 0;
8862
8862
  if (!(e && Y && Y[ee] && V)) return;
@@ -8867,7 +8867,7 @@ const zd = () => {
8867
8867
  }();
8868
8868
  }
8869
8869
  function P() {
8870
- l = !0, T();
8870
+ l = !0, L();
8871
8871
  }
8872
8872
  function j(A, S) {
8873
8873
  const V = { html: g(S) };
@@ -8891,9 +8891,9 @@ const zd = () => {
8891
8891
  S.defaultPrevented || ((V = Y == null ? void 0 : Y.dataset) === null || V === void 0 ? void 0 : V.thumbsAction) !== "toggle" || (n || (p(!0), x(), b()), n && n.classList.toggle("is-hidden"));
8892
8892
  }
8893
8893
  function B() {
8894
- T();
8894
+ L();
8895
8895
  }
8896
- function T(A = !1) {
8896
+ function L(A = !1) {
8897
8897
  if (!e || !a || !m()) return;
8898
8898
  const S = e.getPageIndex();
8899
8899
  a.querySelectorAll(".is-selected").forEach((Y) => {
@@ -8906,7 +8906,7 @@ const zd = () => {
8906
8906
  a.scrollTo({ top: te, left: ie, behavior: A ? "instant" : "smooth" });
8907
8907
  }
8908
8908
  }
8909
- function L() {
8909
+ function T() {
8910
8910
  if (!c() || !e || !t) return;
8911
8911
  const A = (t == null ? void 0 : t.getSlides()) || [];
8912
8912
  let S = -0.5 * s;
@@ -9347,7 +9347,7 @@ const G0 = "with-fancybox", Ud = () => {
9347
9347
  }
9348
9348
  function C(I, ce) {
9349
9349
  var ke;
9350
- ee(ce), L(), (ke = ce.el) === null || ke === void 0 || ke.addEventListener("click", P), ce.type !== "inline" && ce.type !== "clone" || function(re) {
9350
+ ee(ce), T(), (ke = ce.el) === null || ke === void 0 || ke.addEventListener("click", P), ce.type !== "inline" && ce.type !== "clone" || function(re) {
9351
9351
  if (!a || !re || !re.el) return;
9352
9352
  let Q = null;
9353
9353
  if (We(re.src)) {
@@ -9401,7 +9401,7 @@ const G0 = "with-fancybox", Ud = () => {
9401
9401
  ce.closest(".fancybox__carousel") && ce.classList.contains("fancybox__slide") && A(I);
9402
9402
  }
9403
9403
  function j() {
9404
- g = !1, t && a && t.classList.remove("is-revealing"), L();
9404
+ g = !1, t && a && t.classList.remove("is-revealing"), T();
9405
9405
  const I = p("sync");
9406
9406
  if (a && I) {
9407
9407
  const ce = I.getPageIndex(a.getPageIndex()) || 0;
@@ -9464,7 +9464,7 @@ const G0 = "with-fancybox", Ud = () => {
9464
9464
  }
9465
9465
  re = !1, l === it.Ready && Q !== 0 && (me = 0, ne());
9466
9466
  });
9467
- })(), document.body.addEventListener("click", Y), document.body.addEventListener("keydown", V, { passive: !1, capture: !0 }), L(), Te();
9467
+ })(), document.body.addEventListener("click", Y), document.body.addEventListener("keydown", V, { passive: !1, capture: !0 }), T(), Te();
9468
9468
  const ce = p("sync");
9469
9469
  a && ce && ((I = ce.getTween()) === null || I === void 0 || I.start()), ie(le());
9470
9470
  }
@@ -9474,12 +9474,12 @@ const G0 = "with-fancybox", Ud = () => {
9474
9474
  function B(I, ce) {
9475
9475
  ee(ce), ie(ce);
9476
9476
  }
9477
- function T() {
9477
+ function L() {
9478
9478
  var I;
9479
9479
  const ce = a == null ? void 0 : a.getPlugins().Thumbs;
9480
9480
  ht(t, "has-thumbs", (ce == null ? void 0 : ce.isEnabled()) || !1), ht(t, "has-vertical-thumbs", !!ce && (ce.getType() === "scrollable" || ((I = ce.getCarousel()) === null || I === void 0 ? void 0 : I.isVertical()) === !0));
9481
9481
  }
9482
- function L() {
9482
+ function T() {
9483
9483
  if (t) {
9484
9484
  const I = (a == null ? void 0 : a.getPages()) || [], ce = (a == null ? void 0 : a.getPageIndex()) || 0;
9485
9485
  for (const ke of t.querySelectorAll("[data-fancybox-index]")) ke.innerHTML = ce + "";
@@ -9735,7 +9735,7 @@ const G0 = "with-fancybox", Ud = () => {
9735
9735
  } }, 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: fs, Arrows: _d, Lazyload: hs, Zoomable: Hd, Html: jd, Video: Nd, Autoplay: Rd, Fullscreen: Gd, Thumbs: zd, Toolbar: ps } }, p("Carousel") || {}, { slides: m, enabled: !0, initialPage: p("startIndex") || 0, l10n: p("l10n") });
9736
9736
  a = k1(n, re), M("initCarousel", a), a.on("*", (Q, me, ..._) => {
9737
9737
  M(`Carousel.${me}`, Q, ..._);
9738
- }), a.on("attachSlideEl", C), a.on("detachSlideEl", F), a.on("contentReady", B), a.on("ready", $), a.on("change", j), a.on("settle", k), a.on("thumbs:ready", T), a.on("thumbs:destroy", T), a.init();
9738
+ }), a.on("attachSlideEl", C), a.on("detachSlideEl", F), a.on("contentReady", B), a.on("ready", $), a.on("change", j), a.on("settle", k), a.on("thumbs:ready", L), a.on("thumbs:destroy", L), a.init();
9739
9739
  }(), e && t) {
9740
9740
  if (p("closeExisting")) for (const [re, Q] of Ut.entries()) re !== u && Q.close();
9741
9741
  p("fadeEffect") ? (setTimeout(() => {
@@ -10174,13 +10174,13 @@ class Jd extends Kn {
10174
10174
  const j = P.clientX, $ = P.clientY, k = j - g, B = $ - d;
10175
10175
  if (p || Math.abs(k) > s || Math.abs(B) > s) {
10176
10176
  P.preventDefault(), P.stopPropagation();
10177
- const T = t.getBoundingClientRect(), { left: L, top: A } = T;
10178
- p || (a == null || a(g - L, d - A), p = !0), n(k, B, j - L, $ - A), g = j, d = $;
10177
+ const L = t.getBoundingClientRect(), { left: T, top: A } = L;
10178
+ p || (a == null || a(g - T, d - A), p = !0), n(k, B, j - T, $ - A), g = j, d = $;
10179
10179
  }
10180
10180
  }, M = (P) => {
10181
10181
  if (f.delete(P.pointerId), p) {
10182
- const j = P.clientX, $ = P.clientY, k = t.getBoundingClientRect(), { left: B, top: T } = k;
10183
- o == null || o(j - B, $ - T);
10182
+ const j = P.clientX, $ = P.clientY, k = t.getBoundingClientRect(), { left: B, top: L } = k;
10183
+ o == null || o(j - B, $ - L);
10184
10184
  }
10185
10185
  c();
10186
10186
  }, E = (P) => {
@@ -10362,15 +10362,15 @@ class Jd extends Kn {
10362
10362
  return { halfHeight: M, barWidth: E, barGap: C, barRadius: x.barRadius || 0, barIndexScale: p > 0 ? g / F / p : 0, barSpacing: F };
10363
10363
  }({ width: s, height: i, length: (t[0] || []).length, options: n, pixelRatio: this.getPixelRatio() }), h = function({ channelData: g, barIndexScale: d, barSpacing: p, barWidth: x, halfHeight: b, vScale: M, canvasHeight: E, barAlign: C }) {
10364
10364
  const F = g[0] || [], P = g[1] || F, j = F.length, $ = [];
10365
- let k = 0, B = 0, T = 0;
10366
- for (let L = 0; L <= j; L++) {
10367
- const A = Math.round(L * d);
10365
+ let k = 0, B = 0, L = 0;
10366
+ for (let T = 0; T <= j; T++) {
10367
+ const A = Math.round(T * d);
10368
10368
  if (A > k) {
10369
- const { topHeight: Y, totalHeight: ee } = Kd({ maxTop: B, maxBottom: T, halfHeight: b, vScale: M }), te = Qd({ barAlign: C, halfHeight: b, topHeight: Y, totalHeight: ee, canvasHeight: E });
10370
- $.push({ x: k * p, y: te, width: x, height: ee }), k = A, B = 0, T = 0;
10369
+ const { topHeight: Y, totalHeight: ee } = Kd({ maxTop: B, maxBottom: L, halfHeight: b, vScale: M }), te = Qd({ barAlign: C, halfHeight: b, topHeight: Y, totalHeight: ee, canvasHeight: E });
10370
+ $.push({ x: k * p, y: te, width: x, height: ee }), k = A, B = 0, L = 0;
10371
10371
  }
10372
- const S = Math.abs(F[L] || 0), V = Math.abs(P[L] || 0);
10373
- S > B && (B = S), V > T && (T = V);
10372
+ const S = Math.abs(F[T] || 0), V = Math.abs(P[T] || 0);
10373
+ S > B && (B = S), V > L && (L = V);
10374
10374
  }
10375
10375
  return $;
10376
10376
  }({ channelData: t, barIndexScale: c, barSpacing: m, barWidth: f, halfHeight: l, vScale: o, canvasHeight: i, barAlign: n.barAlign });
@@ -11715,7 +11715,7 @@ const K5 = /* @__PURE__ */ Be(Z5, [["render", X5], ["__scopeId", "data-v-49dbe3d
11715
11715
  c.value = S.result;
11716
11716
  }, S.readAsDataURL(A);
11717
11717
  }
11718
- }, T = async () => {
11718
+ }, L = async () => {
11719
11719
  b.value = !0, a("b64Audio", c.value);
11720
11720
  const S = {
11721
11721
  type: "file",
@@ -11731,7 +11731,7 @@ const K5 = /* @__PURE__ */ Be(Z5, [["render", X5], ["__scopeId", "data-v-49dbe3d
11731
11731
  n.attendant,
11732
11732
  !0
11733
11733
  ), a("recording", !1), b.value = !1, h.value = null, c.value = null, u.value = null, s.value = !1, i.value = !1, l.value = 0;
11734
- }, L = async () => {
11734
+ }, T = async () => {
11735
11735
  x.value = !0, s.value = !1, a("recording", !1), await o.value.stop(), h.value && (h.value.getTracks().forEach((A) => A.stop()), h.value = null), u.value = null, clearInterval(m.value), c.value = null, i.value = !1, l.value = 0;
11736
11736
  };
11737
11737
  return (A, S) => {
@@ -11759,7 +11759,7 @@ const K5 = /* @__PURE__ */ Be(Z5, [["render", X5], ["__scopeId", "data-v-49dbe3d
11759
11759
  h.value ? (v(), y("button", {
11760
11760
  key: 1,
11761
11761
  class: "rounded-full bg-red-500 p-1.5 hover:bg-red-600",
11762
- onClick: S[1] || (S[1] = (Y) => L())
11762
+ onClick: S[1] || (S[1] = (Y) => T())
11763
11763
  }, [...S[4] || (S[4] = [
11764
11764
  r("svg", {
11765
11765
  xmlns: "http://www.w3.org/2000/svg",
@@ -11834,7 +11834,7 @@ const K5 = /* @__PURE__ */ Be(Z5, [["render", X5], ["__scopeId", "data-v-49dbe3d
11834
11834
  c.value ? (v(), y("button", {
11835
11835
  key: 6,
11836
11836
  class: "rounded-full p-2 hover:bg-base-100",
11837
- onClick: S[2] || (S[2] = (Y) => T())
11837
+ onClick: S[2] || (S[2] = (Y) => L())
11838
11838
  }, [...S[8] || (S[8] = [
11839
11839
  r("svg", {
11840
11840
  class: "size-5 text-base-200 rotate-90",
@@ -11912,30 +11912,30 @@ const fu = (e) => {
11912
11912
  const d = o(), p = l(m);
11913
11913
  let x;
11914
11914
  const b = async () => (!x && d in h ? x = typeof h[d] == "function" ? x = await h[d]() : x = h[d] : t !== null && !x && "web" in h && (x = typeof h.web == "function" ? x = await h.web() : x = h.web), x), M = ($, k) => {
11915
- var B, T;
11915
+ var B, L;
11916
11916
  if (p) {
11917
- const L = p == null ? void 0 : p.methods.find((A) => k === A.name);
11918
- if (L)
11919
- return L.rtype === "promise" ? (A) => n.nativePromise(m, k.toString(), A) : (A, S) => n.nativeCallback(m, k.toString(), A, S);
11917
+ const T = p == null ? void 0 : p.methods.find((A) => k === A.name);
11918
+ if (T)
11919
+ return T.rtype === "promise" ? (A) => n.nativePromise(m, k.toString(), A) : (A, S) => n.nativeCallback(m, k.toString(), A, S);
11920
11920
  if ($)
11921
11921
  return (B = $[k]) === null || B === void 0 ? void 0 : B.bind($);
11922
11922
  } else {
11923
11923
  if ($)
11924
- return (T = $[k]) === null || T === void 0 ? void 0 : T.bind($);
11924
+ return (L = $[k]) === null || L === void 0 ? void 0 : L.bind($);
11925
11925
  throw new Z1(`"${m}" plugin is not implemented on ${d}`, Ln.Unimplemented);
11926
11926
  }
11927
11927
  }, E = ($) => {
11928
11928
  let k;
11929
- const B = (...T) => {
11930
- const L = b().then((A) => {
11929
+ const B = (...L) => {
11930
+ const T = b().then((A) => {
11931
11931
  const S = M(A, $);
11932
11932
  if (S) {
11933
- const V = S(...T);
11933
+ const V = S(...L);
11934
11934
  return k = V == null ? void 0 : V.remove, V;
11935
11935
  } else
11936
11936
  throw new Z1(`"${m}.${$}()" is not implemented on ${d}`, Ln.Unimplemented);
11937
11937
  });
11938
- return $ === "addListener" && (L.remove = async () => k()), L;
11938
+ return $ === "addListener" && (T.remove = async () => k()), T;
11939
11939
  };
11940
11940
  return B.toString = () => `${$.toString()}() { [capacitor code] }`, Object.defineProperty(B, "name", {
11941
11941
  value: $,
@@ -11943,16 +11943,16 @@ const fu = (e) => {
11943
11943
  configurable: !1
11944
11944
  }), B;
11945
11945
  }, C = E("addListener"), F = E("removeListener"), P = ($, k) => {
11946
- const B = C({ eventName: $ }, k), T = async () => {
11946
+ const B = C({ eventName: $ }, k), L = async () => {
11947
11947
  const A = await B;
11948
11948
  F({
11949
11949
  eventName: $,
11950
11950
  callbackId: A
11951
11951
  }, k);
11952
- }, L = new Promise((A) => B.then(() => A({ remove: T })));
11953
- return L.remove = async () => {
11954
- console.warn("Using addListener() without 'await' is deprecated."), await T();
11955
- }, L;
11952
+ }, T = new Promise((A) => B.then(() => A({ remove: L })));
11953
+ return T.remove = async () => {
11954
+ console.warn("Using addListener() without 'await' is deprecated."), await L();
11955
+ }, T;
11956
11956
  }, j = new Proxy({}, {
11957
11957
  get($, k) {
11958
11958
  switch (k) {
@@ -12204,7 +12204,7 @@ Ma("CapacitorHttp", {
12204
12204
  web: () => new bu()
12205
12205
  });
12206
12206
  const sn = Ma("VoiceRecorder", {
12207
- web: () => import("./web-JXRKfr2o.js").then((e) => e.w).then((e) => new e.VoiceRecorderWeb())
12207
+ web: () => import("./web-BCxf9krm.js").then((e) => e.w).then((e) => new e.VoiceRecorderWeb())
12208
12208
  });
12209
12209
  function to(e, t) {
12210
12210
  return v(), y("svg", {
@@ -12383,13 +12383,13 @@ const Su = {
12383
12383
  ee[te] = V.charCodeAt(te);
12384
12384
  return ee;
12385
12385
  }
12386
- function T(S) {
12386
+ function L(S) {
12387
12387
  let V = S.reduce((te, ie) => te + ie.length, 0), Y = new Uint8Array(V), ee = 0;
12388
12388
  return S.forEach((te) => {
12389
12389
  Y.set(te, ee), ee += te.length;
12390
12390
  }), Y;
12391
12391
  }
12392
- function L(S) {
12392
+ function T(S) {
12393
12393
  let V = "", Y = S.byteLength;
12394
12394
  for (let ee = 0; ee < Y; ee++)
12395
12395
  V += String.fromCharCode(S[ee]);
@@ -12398,7 +12398,7 @@ const Su = {
12398
12398
  const A = async () => {
12399
12399
  s.value = !0, (await sn.getCurrentStatus()).status === "RECORDING" && await j();
12400
12400
  try {
12401
- const V = f.value.map(B), Y = T(V), ee = L(Y), te = `data:${u.value};base64,${ee}`, pe = {
12401
+ const V = f.value.map(B), Y = L(V), ee = T(Y), te = `data:${u.value};base64,${ee}`, pe = {
12402
12402
  type: "file",
12403
12403
  media: {
12404
12404
  name: "audio",
@@ -12522,19 +12522,19 @@ const Su = {
12522
12522
  }, m = ($, k) => {
12523
12523
  if ($)
12524
12524
  if (n.isMobile) {
12525
- const T = $.mimetype.split("/")[1], L = {
12525
+ const L = $.mimetype.split("/")[1], T = {
12526
12526
  url: $.mimetype === "image/svg+xml" ? $.data.replace("+", "%2B") : $.data,
12527
- type: T,
12527
+ type: L,
12528
12528
  title: $.name
12529
12529
  };
12530
- n.downloadFilesMobile(L, k);
12530
+ n.downloadFilesMobile(T, k);
12531
12531
  } else
12532
12532
  j($.data, k);
12533
12533
  }, h = ue(
12534
12534
  () => n.hasNextPageForAtendente(n.selectedAtendente.id)
12535
12535
  ), g = ($) => {
12536
- const k = new Date($), B = k.getHours(), T = k.getMinutes();
12537
- return `${B.toString().padStart(2, "0")}:${T.toString().padStart(2, "0")}`;
12536
+ const k = new Date($), B = k.getHours(), L = k.getMinutes();
12537
+ return `${B.toString().padStart(2, "0")}:${L.toString().padStart(2, "0")}`;
12538
12538
  }, d = ($) => {
12539
12539
  const k = new Date($);
12540
12540
  return Fd(k) ? "Hoje" : Bd(k) ? "Ontem" : $d(k) ? f0(k, "EEEE", { locale: Qa }) : f0(k, "dd 'de' MMMM 'de' yyyy", { locale: Qa });
@@ -12589,7 +12589,7 @@ const Su = {
12589
12589
  await lt(() => {
12590
12590
  b(), i.value = !0;
12591
12591
  });
12592
- }), He(
12592
+ }), _e(
12593
12593
  () => {
12594
12594
  var $;
12595
12595
  return ($ = u.value) == null ? void 0 : $.length;
@@ -12610,15 +12610,15 @@ const Su = {
12610
12610
  const j = async ($, k = "undefined") => {
12611
12611
  const B = $.endsWith("svg+xml");
12612
12612
  try {
12613
- const T = await fetch(B ? $.replace("+", "%2B") : $);
12614
- if (!T.ok)
12613
+ const L = await fetch(B ? $.replace("+", "%2B") : $);
12614
+ if (!L.ok)
12615
12615
  throw new Error("Erro ao baixar o arquivo");
12616
- const L = T.headers.get("Content-Type"), A = await T.arrayBuffer(), S = L && L !== "application/octet-stream" ? L : "audio/mp3", V = new Blob([A], { type: S }), Y = window.URL.createObjectURL(V), ee = document.createElement("a");
12616
+ const T = L.headers.get("Content-Type"), A = await L.arrayBuffer(), S = T && T !== "application/octet-stream" ? T : "audio/mp3", V = new Blob([A], { type: S }), Y = window.URL.createObjectURL(V), ee = document.createElement("a");
12617
12617
  ee.href = Y;
12618
- const te = L.endsWith("aac") ? `${k}.mp3` : k;
12618
+ const te = T.endsWith("aac") ? `${k}.mp3` : k;
12619
12619
  ee.download = te, document.body.appendChild(ee), ee.click(), document.body.removeChild(ee), window.URL.revokeObjectURL(Y);
12620
- } catch (T) {
12621
- console.error("Erro no download:", T);
12620
+ } catch (L) {
12621
+ console.error("Erro no download:", L);
12622
12622
  }
12623
12623
  };
12624
12624
  return ($, k) => {
@@ -12626,7 +12626,7 @@ const Su = {
12626
12626
  return v(), y("div", Hu, [
12627
12627
  r("div", _u, [
12628
12628
  r("button", {
12629
- onClick: k[0] || (k[0] = (T) => a("voltar")),
12629
+ onClick: k[0] || (k[0] = (L) => a("voltar")),
12630
12630
  class: "back-button"
12631
12631
  }, [...k[4] || (k[4] = [
12632
12632
  r("svg", {
@@ -12687,29 +12687,29 @@ const Su = {
12687
12687
  _: 1
12688
12688
  })) : U("", !0),
12689
12689
  r("div", null, [
12690
- (v(!0), y(Oe, null, Ie(u.value, (T, L) => (v(), y("div", { key: L }, [
12691
- p(L) ? (v(), y("div", Ru, [
12690
+ (v(!0), y(Oe, null, Ie(u.value, (L, T) => (v(), y("div", { key: T }, [
12691
+ p(T) ? (v(), y("div", Ru, [
12692
12692
  k[7] || (k[7] = r("div", { class: "date-separator-line" }, null, -1)),
12693
- r("div", zu, oe(d(T.created_at)), 1),
12693
+ r("div", zu, oe(d(L.created_at)), 1),
12694
12694
  k[8] || (k[8] = r("div", { class: "date-separator-line" }, null, -1))
12695
12695
  ])) : U("", !0),
12696
12696
  r("div", {
12697
12697
  class: se([
12698
12698
  "message",
12699
12699
  {
12700
- me: T.sender.id === e.attendant.id,
12701
- "not-me": T.sender.id !== e.attendant.id,
12702
- "new-message": L === u.value.length - 1
12700
+ me: L.sender.id === e.attendant.id,
12701
+ "not-me": L.sender.id !== e.attendant.id,
12702
+ "new-message": T === u.value.length - 1
12703
12703
  }
12704
12704
  ])
12705
12705
  }, [
12706
12706
  r("div", {
12707
12707
  class: se([
12708
12708
  "relative",
12709
- T.sender.id === e.attendant.id ? "text-right" : "text-left"
12709
+ L.sender.id === e.attendant.id ? "text-right" : "text-left"
12710
12710
  ])
12711
12711
  }, [
12712
- T.content && T.content.media && T.content.media.data ? (v(), y("div", ju, [
12712
+ L.content && L.content.media && L.content.media.data ? (v(), y("div", ju, [
12713
12713
  Me(B, {
12714
12714
  hover: "",
12715
12715
  class: "label-popper-internal-messages",
@@ -12719,8 +12719,8 @@ const Su = {
12719
12719
  r("button", {
12720
12720
  class: "download-button-internal-messages",
12721
12721
  onClick: (A) => m(
12722
- T.content.media,
12723
- T.content.media.name
12722
+ L.content.media,
12723
+ L.content.media.name
12724
12724
  )
12725
12725
  }, " Baixar ", 8, Nu)
12726
12726
  ]),
@@ -12752,35 +12752,35 @@ const Su = {
12752
12752
  class: se(["shadow shadow-gray-900 dark:shadow-gray-500", [
12753
12753
  "message-content",
12754
12754
  {
12755
- me: T.sender.id === e.attendant.id,
12756
- "not-me": T.sender.id !== e.attendant.id
12755
+ me: L.sender.id === e.attendant.id,
12756
+ "not-me": L.sender.id !== e.attendant.id
12757
12757
  }
12758
12758
  ]])
12759
12759
  }, [
12760
- T.content && T.content.media && T.content.media.data ? (v(), Re(sa, {
12760
+ L.content && L.content.media && L.content.media.data ? (v(), Re(sa, {
12761
12761
  key: 0,
12762
12762
  mode: "message",
12763
12763
  isMobile: e.isMobile,
12764
12764
  onDownload: (A) => m(
12765
- T.content.media,
12766
- T.content.media.name
12765
+ L.content.media,
12766
+ L.content.media.name
12767
12767
  ),
12768
- onOpenMobilePdf: (A) => c(T.content.media.data),
12769
- avatar: T.sender.id === e.attendant.id ? e.attendant.photo : T.sender.photo,
12770
- fileName: T.content.media.name,
12771
- base64: T.content.media.data,
12772
- mimetype: T.content.media.mimetype
12768
+ onOpenMobilePdf: (A) => c(L.content.media.data),
12769
+ avatar: L.sender.id === e.attendant.id ? e.attendant.photo : L.sender.photo,
12770
+ fileName: L.content.media.name,
12771
+ base64: L.content.media.data,
12772
+ mimetype: L.content.media.mimetype
12773
12773
  }, {
12774
12774
  "content-message": Le(() => [
12775
- r("p", null, oe(T.content.content), 1)
12775
+ r("p", null, oe(L.content.content), 1)
12776
12776
  ]),
12777
12777
  "time-message": Le(() => [
12778
- r("div", Gu, oe(g(T.created_at)), 1)
12778
+ r("div", Gu, oe(g(L.created_at)), 1)
12779
12779
  ]),
12780
12780
  _: 2
12781
12781
  }, 1032, ["isMobile", "onDownload", "onOpenMobilePdf", "avatar", "fileName", "base64", "mimetype"])) : (v(), y("section", qu, [
12782
- r("p", null, oe(T.content.content), 1),
12783
- r("div", Iu, oe(g(T.created_at)), 1)
12782
+ r("p", null, oe(L.content.content), 1),
12783
+ r("div", Iu, oe(g(L.created_at)), 1)
12784
12784
  ]))
12785
12785
  ], 2)
12786
12786
  ], 2)
@@ -12791,7 +12791,7 @@ const Su = {
12791
12791
  r("div", Wu, [
12792
12792
  Ye(r("textarea", {
12793
12793
  type: "text",
12794
- "onUpdate:modelValue": k[1] || (k[1] = (T) => o.value = T),
12794
+ "onUpdate:modelValue": k[1] || (k[1] = (L) => o.value = L),
12795
12795
  class: "message-input bg-base-300 focus:ring-0",
12796
12796
  placeholder: "Digite sua mensagem...",
12797
12797
  onKeydown: x
@@ -12849,14 +12849,14 @@ const Su = {
12849
12849
  attendant: e.attendant,
12850
12850
  selectedAttendant: e.selectedAtendente,
12851
12851
  sendAudioToAttendant: e.sendMessageToAtendente,
12852
- onRecording: k[2] || (k[2] = (T) => l.value = T)
12852
+ onRecording: k[2] || (k[2] = (L) => l.value = L)
12853
12853
  }, null, 8, ["attendant", "selectedAttendant", "sendAudioToAttendant"])) : (v(), Re(lu, {
12854
12854
  key: 1,
12855
12855
  "can-send-message": !0,
12856
12856
  attendant: e.attendant,
12857
12857
  selectedAttendant: e.selectedAtendente,
12858
12858
  sendAudioToAttendant: e.sendMessageToAtendente,
12859
- onRecording: k[3] || (k[3] = (T) => l.value = T)
12859
+ onRecording: k[3] || (k[3] = (L) => l.value = L)
12860
12860
  }, null, 8, ["attendant", "selectedAttendant", "sendAudioToAttendant"]))
12861
12861
  ], 2))
12862
12862
  ])
@@ -13309,14 +13309,14 @@ const u6 = {
13309
13309
  setup(e, { slots: t, emit: n, expose: a }) {
13310
13310
  var o;
13311
13311
  const s = Qu(n), i = s.getSlides(), l = ue(() => i.length), f = z(null), u = z(null), c = z(0), m = ue(() => Object.assign(Object.assign(Object.assign({}, nt), t6(e, ["breakpoints", "modelValue"])), { i18n: Object.assign(Object.assign({}, nt.i18n), e.i18n) })), h = Y1(Object.assign({}, m.value)), g = z((o = e.modelValue) !== null && o !== void 0 ? o : 0), d = z(g.value);
13312
- He(g, (H) => d.value = H);
13312
+ _e(g, (H) => d.value = H);
13313
13313
  const p = z(0), x = ue(() => Math.ceil((l.value - 1) / 2)), b = ue(() => l.value - 1), M = ue(() => 0);
13314
13314
  let E = null, C = null, F = null;
13315
13315
  const P = ue(() => c.value + h.gap), j = ue(() => {
13316
13316
  const H = h.dir || "ltr";
13317
13317
  return H in C1 ? C1[H] : H;
13318
- }), $ = ue(() => ["rtl", "btt"].includes(j.value)), k = ue(() => ["ttb", "btt"].includes(j.value)), B = ue(() => h.itemsToShow === "auto"), T = ue(() => k.value ? "height" : "width");
13319
- function L() {
13318
+ }), $ = ue(() => ["rtl", "btt"].includes(j.value)), k = ue(() => ["ttb", "btt"].includes(j.value)), B = ue(() => h.itemsToShow === "auto"), L = ue(() => k.value ? "height" : "width");
13319
+ function T() {
13320
13320
  var H;
13321
13321
  if (!Te.value)
13322
13322
  return;
@@ -13328,7 +13328,7 @@ const u6 = {
13328
13328
  }));
13329
13329
  }
13330
13330
  const A = la(() => {
13331
- L(), pe(), ie();
13331
+ T(), pe(), ie();
13332
13332
  }), S = Y1(/* @__PURE__ */ new Set()), V = z([]);
13333
13333
  function Y({ widthMultiplier: H, heightMultiplier: G }) {
13334
13334
  V.value = i.map((W) => {
@@ -13357,10 +13357,10 @@ const u6 = {
13357
13357
  return;
13358
13358
  const H = o6(S);
13359
13359
  if (te(H), Y(H), B.value)
13360
- c.value = Ju(V.value.map((G) => G[T.value]));
13360
+ c.value = Ju(V.value.map((G) => G[L.value]));
13361
13361
  else {
13362
13362
  const G = Number(h.itemsToShow), W = (G - 1) * h.gap;
13363
- c.value = (ee.value[T.value] - W) / G;
13363
+ c.value = (ee.value[L.value] - W) / G;
13364
13364
  }
13365
13365
  }
13366
13366
  function pe() {
@@ -13392,7 +13392,7 @@ const u6 = {
13392
13392
  typeof document < "u" && F1(() => {
13393
13393
  Te.value && le.value !== !1 ? (document.addEventListener("animationstart", Ne), document.addEventListener("animationend", Ve)) : (document.removeEventListener("animationstart", Ne), document.removeEventListener("animationend", Ve));
13394
13394
  }), ot(() => {
13395
- Te.value = !0, L(), Ke(), f.value && (F = new ResizeObserver(A), F.observe(f.value)), n("init");
13395
+ Te.value = !0, T(), Ke(), f.value && (F = new ResizeObserver(A), F.observe(f.value)), n("init");
13396
13396
  }), nn(() => {
13397
13397
  Te.value = !1, s.cleanup(), C && clearTimeout(C), be && cancelAnimationFrame(be), E && clearInterval(E), F && (F.disconnect(), F = null), typeof document < "u" && ct(), f.value && (f.value.removeEventListener("transitionend", ie), f.value.removeEventListener("animationiteration", ie));
13398
13398
  });
@@ -13484,10 +13484,10 @@ const u6 = {
13484
13484
  }, h.transition);
13485
13485
  }
13486
13486
  function K() {
13487
- L(), pe(), ie(), et();
13487
+ T(), pe(), ie(), et();
13488
13488
  }
13489
- He(() => [m.value, e.breakpoints], () => L(), { deep: !0 }), He(() => e.autoplay, () => et());
13490
- const ae = He(() => e.modelValue, (H) => {
13489
+ _e(() => [m.value, e.breakpoints], () => T(), { deep: !0 }), _e(() => e.autoplay, () => et());
13490
+ const ae = _e(() => e.modelValue, (H) => {
13491
13491
  H !== g.value && O(Number(H), !0);
13492
13492
  });
13493
13493
  n("before-init");
@@ -13501,13 +13501,13 @@ const u6 = {
13501
13501
  before: Math.max(0, W),
13502
13502
  after: Math.max(0, J)
13503
13503
  };
13504
- }), ve = ue(() => fe.value.before ? B.value ? V.value.slice(-1 * fe.value.before).reduce((H, G) => H + G[T.value] + h.gap, 0) * -1 : fe.value.before * P.value * -1 : 0), ye = ue(() => {
13504
+ }), ve = ue(() => fe.value.before ? B.value ? V.value.slice(-1 * fe.value.before).reduce((H, G) => H + G[L.value] + h.gap, 0) * -1 : fe.value.before * P.value * -1 : 0), ye = ue(() => {
13505
13505
  var H;
13506
13506
  if (B.value) {
13507
13507
  const G = (g.value % i.length + i.length) % i.length;
13508
13508
  return ia({
13509
- slideSize: (H = V.value[G]) === null || H === void 0 ? void 0 : H[T.value],
13510
- viewportSize: ee.value[T.value],
13509
+ slideSize: (H = V.value[G]) === null || H === void 0 ? void 0 : H[L.value],
13510
+ viewportSize: ee.value[L.value],
13511
13511
  align: h.snapAlign
13512
13512
  });
13513
13513
  }
@@ -13518,8 +13518,8 @@ const u6 = {
13518
13518
  }), $e = ue(() => {
13519
13519
  let H = 0;
13520
13520
  if (B.value) {
13521
- if (g.value < 0 ? H = V.value.slice(g.value).reduce((G, W) => G + W[T.value] + h.gap, 0) * -1 : H = V.value.slice(0, g.value).reduce((G, W) => G + W[T.value] + h.gap, 0), H -= ye.value, !h.wrapAround) {
13522
- const G = V.value.reduce((W, J) => W + J[T.value] + h.gap, 0) - ee.value[T.value] - h.gap;
13521
+ if (g.value < 0 ? H = V.value.slice(g.value).reduce((G, W) => G + W[L.value] + h.gap, 0) * -1 : H = V.value.slice(0, g.value).reduce((G, W) => G + W[L.value] + h.gap, 0), H -= ye.value, !h.wrapAround) {
13522
+ const G = V.value.reduce((W, J) => W + J[L.value] + h.gap, 0) - ee.value[L.value] - h.gap;
13523
13523
  H = It({
13524
13524
  val: H,
13525
13525
  max: G,
@@ -13561,16 +13561,16 @@ const u6 = {
13561
13561
  const he = Math.abs($e.value + ve.value);
13562
13562
  for (; de <= he; ) {
13563
13563
  const Ce = (ge % i.length + i.length) % i.length;
13564
- de += ((H = V.value[Ce]) === null || H === void 0 ? void 0 : H[T.value]) + h.gap, ge++;
13564
+ de += ((H = V.value[Ce]) === null || H === void 0 ? void 0 : H[L.value]) + h.gap, ge++;
13565
13565
  }
13566
13566
  W = ge - 1;
13567
13567
  }
13568
13568
  let J = 0;
13569
13569
  {
13570
13570
  let de = W, ge = 0;
13571
- for (de < 0 ? ge = V.value.slice(0, de).reduce((he, Ce) => he + Ce[T.value] + h.gap, 0) - Math.abs($e.value + ve.value) : ge = V.value.slice(0, de).reduce((he, Ce) => he + Ce[T.value] + h.gap, 0) - Math.abs($e.value); ge < ee.value[T.value]; ) {
13571
+ for (de < 0 ? ge = V.value.slice(0, de).reduce((he, Ce) => he + Ce[L.value] + h.gap, 0) - Math.abs($e.value + ve.value) : ge = V.value.slice(0, de).reduce((he, Ce) => he + Ce[L.value] + h.gap, 0) - Math.abs($e.value); ge < ee.value[L.value]; ) {
13572
13572
  const he = (de % i.length + i.length) % i.length;
13573
- ge += ((G = V.value[he]) === null || G === void 0 ? void 0 : G[T.value]) + h.gap, de++;
13573
+ ge += ((G = V.value[he]) === null || G === void 0 ? void 0 : G[L.value]) + h.gap, de++;
13574
13574
  }
13575
13575
  J = de - 1;
13576
13576
  }
@@ -13585,7 +13585,7 @@ const u6 = {
13585
13585
  let W = $e.value + G;
13586
13586
  if (!h.wrapAround && h.preventExcessiveDragging) {
13587
13587
  let J = 0;
13588
- B.value ? J = V.value.reduce((he, Ce) => he + Ce[T.value], 0) : J = (l.value - Number(h.itemsToShow)) * P.value;
13588
+ B.value ? J = V.value.reduce((he, Ce) => he + Ce[L.value], 0) : J = (l.value - Number(h.itemsToShow)) * P.value;
13589
13589
  const de = $.value ? 0 : -1 * J, ge = $.value ? J : 0;
13590
13590
  W = It({
13591
13591
  val: W,
@@ -13632,7 +13632,7 @@ const u6 = {
13632
13632
  prev: w,
13633
13633
  restartCarousel: K,
13634
13634
  slideTo: O,
13635
- updateBreakpointsConfig: L,
13635
+ updateBreakpointsConfig: T,
13636
13636
  updateSlideSize: ie,
13637
13637
  updateSlidesData: pe
13638
13638
  }, vo(R)))), () => {
@@ -13919,9 +13919,9 @@ const g6 = gn({
13919
13919
  320: { itemsToShow: 2 },
13920
13920
  0: { itemsToShow: 1 }
13921
13921
  }
13922
- }, o = z(!1), s = z(""), i = z(null), l = z([]), f = z([]), u = z(null), c = z(0), m = z(!1), h = z(0), g = z(0), d = (L) => new Promise((A, S) => {
13922
+ }, o = z(!1), s = z(""), i = z(null), l = z([]), f = z([]), u = z(null), c = z(0), m = z(!1), h = z(0), g = z(0), d = (T) => new Promise((A, S) => {
13923
13923
  const V = new FileReader();
13924
- V.readAsDataURL(L), V.onload = () => {
13924
+ V.readAsDataURL(T), V.onload = () => {
13925
13925
  A(V.result);
13926
13926
  }, V.onerror = (Y) => {
13927
13927
  S(Y);
@@ -13932,21 +13932,21 @@ const g6 = gn({
13932
13932
  o.value = !1;
13933
13933
  }, b = () => {
13934
13934
  f.value = [], l.value = [], s.value = "", u.value = null, c.value = 0;
13935
- }, M = (L) => {
13936
- if (!(L < 0 || L >= f.value.length)) {
13937
- if (f.value.splice(L, 1), l.value.splice(L, 1), f.value.length === 0) {
13935
+ }, M = (T) => {
13936
+ if (!(T < 0 || T >= f.value.length)) {
13937
+ if (f.value.splice(T, 1), l.value.splice(T, 1), f.value.length === 0) {
13938
13938
  u.value = null, c.value = 0;
13939
13939
  return;
13940
13940
  }
13941
- if (L === c.value) {
13942
- const A = L > 0 ? L - 1 : 0;
13941
+ if (T === c.value) {
13942
+ const A = T > 0 ? T - 1 : 0;
13943
13943
  u.value = f.value[A], c.value = A;
13944
- } else L < c.value && (c.value -= 1);
13944
+ } else T < c.value && (c.value -= 1);
13945
13945
  }
13946
13946
  }, E = () => {
13947
13947
  i.value.click();
13948
- }, C = async (L) => {
13949
- const A = Array.from(L.target.files);
13948
+ }, C = async (T) => {
13949
+ const A = Array.from(T.target.files);
13950
13950
  l.value = A, f.value = await Promise.all(
13951
13951
  A.map(async (S) => ({
13952
13952
  name: S.name,
@@ -13955,9 +13955,9 @@ const g6 = gn({
13955
13955
  ), u.value = f.value[0], lt(() => {
13956
13956
  k();
13957
13957
  });
13958
- }, F = async (L) => {
13958
+ }, F = async (T) => {
13959
13959
  o.value = !1;
13960
- const A = Array.from(L.dataTransfer.files);
13960
+ const A = Array.from(T.dataTransfer.files);
13961
13961
  l.value.push(...A);
13962
13962
  const S = await Promise.all(
13963
13963
  A.map(async (V) => ({
@@ -13968,16 +13968,16 @@ const g6 = gn({
13968
13968
  f.value.push(...S), u.value || (u.value = f.value[0], c.value = 0), lt(() => {
13969
13969
  k();
13970
13970
  });
13971
- }, P = (L) => L ? L.split(";")[0].split(":")[1] : null, j = async () => {
13971
+ }, P = (T) => T ? T.split(";")[0].split(":")[1] : null, j = async () => {
13972
13972
  try {
13973
13973
  m.value = !0, h.value = l.value.length, g.value = 0;
13974
- for (let L = 0; L < l.value.length; L++) {
13975
- const A = L === l.value.length - 1, S = {
13974
+ for (let T = 0; T < l.value.length; T++) {
13975
+ const A = T === l.value.length - 1, S = {
13976
13976
  type: "file",
13977
13977
  media: {
13978
- name: f.value[L].name,
13979
- mimetype: P(f.value[L].base64),
13980
- data: f.value[L].base64
13978
+ name: f.value[T].name,
13979
+ mimetype: P(f.value[T].base64),
13980
+ data: f.value[T].base64
13981
13981
  }
13982
13982
  };
13983
13983
  A && (S.content = s.value), await n.sendFilesToAttendant(
@@ -13988,18 +13988,18 @@ const g6 = gn({
13988
13988
  ), g.value++;
13989
13989
  }
13990
13990
  await lt();
13991
- } catch (L) {
13992
- console.error(L);
13991
+ } catch (T) {
13992
+ console.error(T);
13993
13993
  } finally {
13994
13994
  m.value = !1, b(), x();
13995
13995
  }
13996
13996
  }, $ = z(null), k = () => {
13997
13997
  $.value && $.value.focus();
13998
- }, B = (L, A) => {
13999
- u.value = L, c.value = A;
14000
- }, T = async (L) => {
13998
+ }, B = (T, A) => {
13999
+ u.value = T, c.value = A;
14000
+ }, L = async (T) => {
14001
14001
  var V;
14002
- const A = (V = L.clipboardData) == null ? void 0 : V.items;
14002
+ const A = (V = T.clipboardData) == null ? void 0 : V.items;
14003
14003
  if (!A) return;
14004
14004
  const S = [];
14005
14005
  for (const Y of A)
@@ -14025,15 +14025,15 @@ const g6 = gn({
14025
14025
  k();
14026
14026
  });
14027
14027
  };
14028
- return He(c, (L, A) => {
14029
- u.value = f.value[L];
14028
+ return _e(c, (T, A) => {
14029
+ u.value = f.value[T];
14030
14030
  }), ot(() => {
14031
- window.addEventListener("paste", T);
14031
+ window.addEventListener("paste", L);
14032
14032
  }), $n(() => {
14033
- window.removeEventListener("paste", T);
14033
+ window.removeEventListener("paste", L);
14034
14034
  }), t({
14035
14035
  chooseFiles: E
14036
- }), (L, A) => {
14036
+ }), (T, A) => {
14037
14037
  var S, V, Y;
14038
14038
  return v(), y("main", {
14039
14039
  onDragover: dt(p, ["prevent"]),
@@ -14172,7 +14172,7 @@ const g6 = gn({
14172
14172
  ])
14173
14173
  ])) : U("", !0),
14174
14174
  m.value ? (v(), y("section", E6, " Enviando Arquivos... (" + oe(g.value) + " / " + oe(h.value) + ") ", 1)) : U("", !0),
14175
- pt(L.$slots, "default", {}, void 0, !0)
14175
+ pt(T.$slots, "default", {}, void 0, !0)
14176
14176
  ], 2),
14177
14177
  r("input", {
14178
14178
  onChange: C,
@@ -14245,20 +14245,20 @@ const g6 = gn({
14245
14245
  resetUnreadMessages: c,
14246
14246
  loadingAttendants: m
14247
14247
  } = as(), h = z(!1), g = z(!1), d = z(null), p = z(null), x = t, b = z(null), M = () => {
14248
- var T;
14249
- (T = b.value) == null || T.chooseFiles();
14248
+ var L;
14249
+ (L = b.value) == null || L.chooseFiles();
14250
14250
  }, E = ue(() => {
14251
14251
  if (d.value) {
14252
- const T = a.value.find(
14253
- (L) => L.id === d.value.id
14252
+ const L = a.value.find(
14253
+ (T) => T.id === d.value.id
14254
14254
  );
14255
- return T ? T.internal_chat.unread : 0;
14255
+ return L ? L.internal_chat.unread : 0;
14256
14256
  }
14257
14257
  return 0;
14258
- }), C = (T) => {
14258
+ }), C = (L) => {
14259
14259
  var S;
14260
- const L = (S = p.value) == null ? void 0 : S.contains(T.target), A = T.target.closest(".fancybox__container");
14261
- !L && !A && h.value && $();
14260
+ const T = (S = p.value) == null ? void 0 : S.contains(L.target), A = L.target.closest(".fancybox__container");
14261
+ !T && !A && h.value && $();
14262
14262
  };
14263
14263
  ot(() => {
14264
14264
  document.addEventListener("click", C);
@@ -14288,25 +14288,25 @@ const g6 = gn({
14288
14288
  }, 200));
14289
14289
  }, k = () => {
14290
14290
  h.value || $();
14291
- }, B = async (T) => {
14292
- const L = a.value.find((S) => S.id === T.id), A = L ? L.internal_chat.unread : 0;
14293
- x("unreadMessagesEmit", A), d.value = T, c(T.id), T.hasNextPage || await s(T.id);
14291
+ }, B = async (L) => {
14292
+ const T = a.value.find((S) => S.id === L.id), A = T ? T.internal_chat.unread : 0;
14293
+ x("unreadMessagesEmit", A), d.value = L, c(L.id), L.hasNextPage || await s(L.id);
14294
14294
  };
14295
- return He(
14295
+ return _e(
14296
14296
  () => n.socketMessage,
14297
- (T, L) => {
14297
+ (L, T) => {
14298
14298
  var A;
14299
- T !== L && i(
14300
- T,
14299
+ L !== T && i(
14300
+ L,
14301
14301
  h.value,
14302
14302
  (A = d.value) == null ? void 0 : A.id
14303
14303
  );
14304
14304
  }
14305
- ), He(h, (T) => {
14306
- T && setTimeout(() => {
14305
+ ), _e(h, (L) => {
14306
+ L && setTimeout(() => {
14307
14307
  g.value = !0;
14308
14308
  }, 400);
14309
- }), (T, L) => (v(), y("div", {
14309
+ }), (L, T) => (v(), y("div", {
14310
14310
  class: "chat-container",
14311
14311
  ref_key: "chatContainer",
14312
14312
  ref: p
@@ -14315,7 +14315,7 @@ const g6 = gn({
14315
14315
  key: 0,
14316
14316
  onClick: dt($, ["stop"]),
14317
14317
  style: { width: "42px", height: "42px", "border-radius": "50%", "background-color": "#02a9db", display: "flex", "justify-content": "center" }
14318
- }, [...L[1] || (L[1] = [
14318
+ }, [...T[1] || (T[1] = [
14319
14319
  r("span", {
14320
14320
  style: { "margin-top": "auto", "margin-bottom": "auto" },
14321
14321
  class: "chat-icon my-auto"
@@ -14357,7 +14357,7 @@ const g6 = gn({
14357
14357
  }, null, 2)
14358
14358
  ])),
14359
14359
  E.value > 0 ? (v(), y("span", $6, oe(E.value), 1)) : U("", !0),
14360
- L[2] || (L[2] = r("div", { class: "chat-tooltip" }, [
14360
+ T[2] || (T[2] = r("div", { class: "chat-tooltip" }, [
14361
14361
  r("div", { class: "text-sm my-auto text-center" }, "Chat interno")
14362
14362
  ], -1))
14363
14363
  ])),
@@ -14367,7 +14367,7 @@ const g6 = gn({
14367
14367
  r("button", {
14368
14368
  onClick: dt($, ["stop"]),
14369
14369
  class: "close-button"
14370
- }, [...L[3] || (L[3] = [
14370
+ }, [...T[3] || (T[3] = [
14371
14371
  r("svg", {
14372
14372
  class: "w-5 h-5",
14373
14373
  xmlns: "http://www.w3.org/2000/svg",
@@ -14399,7 +14399,7 @@ const g6 = gn({
14399
14399
  onSendFiles: M,
14400
14400
  attendant: e.attendant,
14401
14401
  selectedAtendente: d.value,
14402
- onVoltar: L[0] || (L[0] = (A) => d.value = null),
14402
+ onVoltar: T[0] || (T[0] = (A) => d.value = null),
14403
14403
  loadMessagesForAtendente: Se(u),
14404
14404
  sendMessageToAtendente: Se(f),
14405
14405
  hasNextPageForAtendente: Se(l)
@@ -14497,10 +14497,10 @@ const g6 = gn({
14497
14497
  C.value = !1;
14498
14498
  }, 200));
14499
14499
  }, j = async ($) => {
14500
- const k = a.value.find((T) => T.id === $.id), B = k ? k.internal_chat.unread : 0;
14500
+ const k = a.value.find((L) => L.id === $.id), B = k ? k.internal_chat.unread : 0;
14501
14501
  x("unreadMessagesEmit", B), d.value = $, c($.id), $.hasNextPage || await s($.id);
14502
14502
  };
14503
- return He(
14503
+ return _e(
14504
14504
  () => n.socketMessage,
14505
14505
  ($, k) => {
14506
14506
  var B;
@@ -14510,7 +14510,7 @@ const g6 = gn({
14510
14510
  (B = d.value) == null ? void 0 : B.id
14511
14511
  );
14512
14512
  }
14513
- ), He(h, ($) => {
14513
+ ), _e(h, ($) => {
14514
14514
  $ && setTimeout(() => {
14515
14515
  g.value = !0;
14516
14516
  }, 400);
@@ -14611,13 +14611,13 @@ const g6 = gn({
14611
14611
  ));
14612
14612
  ot(async () => {
14613
14613
  await h(), await m(), a("component-mounted");
14614
- }), He(
14614
+ }), _e(
14615
14615
  () => o.departments.length,
14616
14616
  async () => {
14617
14617
  await h(), await lt(), await m();
14618
14618
  },
14619
14619
  { immediate: !0 }
14620
- ), He(
14620
+ ), _e(
14621
14621
  () => n.attDel,
14622
14622
  (M) => M && c(M),
14623
14623
  { immediate: !0 }
@@ -14657,7 +14657,7 @@ const g6 = gn({
14657
14657
  M.selected = !1, i.value.splice(E, 1), a("depart", i.value);
14658
14658
  }
14659
14659
  const b = ue(() => s.value.trim().length > 0);
14660
- return He(b, (M) => {
14660
+ return _e(b, (M) => {
14661
14661
  a("searching", M);
14662
14662
  }), (M, E) => (v(), y("div", _6, [
14663
14663
  r("div", V6, [
@@ -14827,19 +14827,19 @@ const g6 = gn({
14827
14827
  }
14828
14828
  ot(() => {
14829
14829
  h(), a("component-mounted");
14830
- }), He(
14830
+ }), _e(
14831
14831
  () => o.attendants.length,
14832
14832
  async () => {
14833
14833
  await lt(), h();
14834
14834
  },
14835
14835
  { immediate: !0 }
14836
- ), He(
14836
+ ), _e(
14837
14837
  () => n.modal_filter,
14838
14838
  () => {
14839
14839
  !n.modal_filter && n.multiSelect && g();
14840
14840
  },
14841
14841
  { immediate: !0 }
14842
- ), He(
14842
+ ), _e(
14843
14843
  () => n.department,
14844
14844
  () => h(),
14845
14845
  { deep: !0 }
@@ -42938,10 +42938,10 @@ const Gy = {
42938
42938
  const n = e, a = t, o = z(!1), s = z(""), i = z(null), l = z(null), f = z(null), u = z({}), c = z([]), m = z(1), h = z(null), g = z(null), d = z(!1), p = z({ name: "" });
42939
42939
  z(!1);
42940
42940
  const x = ue(() => n.modelValue[0] || null), b = (k) => {
42941
- var T, L, A;
42941
+ var L, T, A;
42942
42942
  if (!o.value) return;
42943
42943
  const B = k.target;
42944
- (T = f.value) != null && T.contains(B) || (L = i.value) != null && L.contains(B) || (A = l.value) != null && A.contains(B) || (o.value = !1);
42944
+ (L = f.value) != null && L.contains(B) || (T = i.value) != null && T.contains(B) || (A = l.value) != null && A.contains(B) || (o.value = !1);
42945
42945
  }, M = () => {
42946
42946
  if (!n.teleportTo || !f.value) return;
42947
42947
  const k = f.value.getBoundingClientRect();
@@ -42955,7 +42955,7 @@ const Gy = {
42955
42955
  zIndex: 9999
42956
42956
  };
42957
42957
  };
42958
- He(o, (k) => {
42958
+ _e(o, (k) => {
42959
42959
  k && M();
42960
42960
  });
42961
42961
  const E = ue(
@@ -42963,9 +42963,9 @@ const Gy = {
42963
42963
  (k) => k.name.toLowerCase().includes(s.value.toLowerCase())
42964
42964
  )
42965
42965
  ), C = (k) => {
42966
- var L;
42966
+ var T;
42967
42967
  if (!n.multiple) {
42968
- if (((L = x.value) == null ? void 0 : L.id) === k.id) {
42968
+ if (((T = x.value) == null ? void 0 : T.id) === k.id) {
42969
42969
  a("update:modelValue", []);
42970
42970
  return;
42971
42971
  }
@@ -42974,17 +42974,17 @@ const Gy = {
42974
42974
  ]), n.closeOnSelectSingle && (o.value = !1);
42975
42975
  return;
42976
42976
  }
42977
- const B = [...n.modelValue], T = B.findIndex((A) => A.id === k.id);
42978
- T === -1 ? B.push({ id: k.id, name: k.name, color: k.color }) : B.splice(T, 1), a("update:modelValue", B);
42977
+ const B = [...n.modelValue], L = B.findIndex((A) => A.id === k.id);
42978
+ L === -1 ? B.push({ id: k.id, name: k.name, color: k.color }) : B.splice(L, 1), a("update:modelValue", B);
42979
42979
  }, F = (k, B) => {
42980
- const T = new URLSearchParams(), L = k;
42981
- return Object.keys(B).forEach((A) => T.append(A, B[A])), `${L}?${T.toString()}`;
42980
+ const L = new URLSearchParams(), T = k;
42981
+ return Object.keys(B).forEach((A) => L.append(A, B[A])), `${T}?${L.toString()}`;
42982
42982
  }, P = async (k) => {
42983
42983
  try {
42984
42984
  const B = await wt.get(
42985
42985
  F(xl, { page: m.value, ...k })
42986
- ), { results: T, next: L, previous: A } = B.data;
42987
- h.value = L, g.value = A, m.value === 1 ? c.value = T : c.value = [...c.value, ...T];
42986
+ ), { results: L, next: T, previous: A } = B.data;
42987
+ h.value = T, g.value = A, m.value === 1 ? c.value = L : c.value = [...c.value, ...L];
42988
42988
  } catch (B) {
42989
42989
  console.error(B);
42990
42990
  }
@@ -43001,7 +43001,7 @@ const Gy = {
43001
43001
  }
43002
43002
  };
43003
43003
  let $;
43004
- return He(
43004
+ return _e(
43005
43005
  p,
43006
43006
  () => {
43007
43007
  clearTimeout($), $ = setTimeout(async () => {
@@ -43022,14 +43022,14 @@ const Gy = {
43022
43022
  }), nn(() => {
43023
43023
  document.removeEventListener("mousedown", b);
43024
43024
  }), (k, B) => {
43025
- var T;
43025
+ var L;
43026
43026
  return v(), y("div", {
43027
43027
  class: "relative w-full z-[9999]",
43028
43028
  ref_key: "dropdownRef",
43029
43029
  ref: i
43030
43030
  }, [
43031
43031
  r("div", {
43032
- onClick: B[0] || (B[0] = (L) => o.value = !o.value),
43032
+ onClick: B[0] || (B[0] = (T) => o.value = !o.value),
43033
43033
  ref_key: "triggerRef",
43034
43034
  ref: f,
43035
43035
  class: "flex flex-wrap items-center justify-between gap-2 bg-base-300 p-3 rounded-md border border-base-300 cursor-pointer"
@@ -43041,7 +43041,7 @@ const Gy = {
43041
43041
  ])) : (v(), y("span", Gy, " Selecione suas etiquetas "))
43042
43042
  ], 64)) : (v(), y(Oe, { key: 1 }, [
43043
43043
  e.modelValue.length ? (v(), y("section", Uy, [
43044
- r("span", Zy, oe((T = e.modelValue[0]) == null ? void 0 : T.name), 1)
43044
+ r("span", Zy, oe((L = e.modelValue[0]) == null ? void 0 : L.name), 1)
43045
43045
  ])) : (v(), y("span", Wy, " Selecione a etiqueta "))
43046
43046
  ], 64)),
43047
43047
  (v(), y("svg", {
@@ -43072,7 +43072,7 @@ const Gy = {
43072
43072
  }, [
43073
43073
  r("div", Yy, [
43074
43074
  Ye(r("input", {
43075
- "onUpdate:modelValue": B[1] || (B[1] = (L) => p.value.name = L),
43075
+ "onUpdate:modelValue": B[1] || (B[1] = (T) => p.value.name = T),
43076
43076
  type: "text",
43077
43077
  placeholder: "Buscar...",
43078
43078
  class: "w-full text-[10px] bg-base-200 rounded-md p-2 outline-none border-none focus:outline-none focus:ring-0 focus:shadow-none placeholder:text-gray-500"
@@ -43080,20 +43080,20 @@ const Gy = {
43080
43080
  [Ct, p.value.name]
43081
43081
  ])
43082
43082
  ]),
43083
- (v(!0), y(Oe, null, Ie(E.value, (L) => (v(), y("button", {
43084
- key: L.id,
43083
+ (v(!0), y(Oe, null, Ie(E.value, (T) => (v(), y("button", {
43084
+ key: T.id,
43085
43085
  class: se([
43086
- e.modelValue.some((A) => A.id === L.id) ? "bg-green-500/30 hover:bg-green-500/50" : "hover:bg-base-200",
43086
+ e.modelValue.some((A) => A.id === T.id) ? "bg-green-500/30 hover:bg-green-500/50" : "hover:bg-base-200",
43087
43087
  "flex items-center justify-between gap-2 px-3 py-2 cursor-pointer transition w-full"
43088
43088
  ]),
43089
- onClick: (A) => C(L)
43089
+ onClick: (A) => C(T)
43090
43090
  }, [
43091
43091
  r("section", Ky, [
43092
43092
  (v(), y("svg", {
43093
43093
  class: "size-6",
43094
43094
  "aria-hidden": "true",
43095
43095
  viewBox: "0 0 3 97",
43096
- style: ze({ color: L.color || "#ffff" })
43096
+ style: ze({ color: T.color || "#ffff" })
43097
43097
  }, [...B[5] || (B[5] = [
43098
43098
  r("path", {
43099
43099
  d: "M49.9,0a17.1,17.1,0,0,0-12,5L5,37.9A17,17,0,0,0,5,62L37.9,94.9a17.1,17.1,0,0,0,12,5ZM25.4,59.4a9.5,9.5,0,1,1,9.5-9.5A9.5,9.5,0,0,1,25.4,59.4Z",
@@ -43101,11 +43101,11 @@ const Gy = {
43101
43101
  }, null, -1)
43102
43102
  ])], 4)),
43103
43103
  r("span", {
43104
- style: ze({ backgroundColor: L.color || "#ffff" }),
43105
- class: se(["text-xs truncate max-w-32 p-1 rounded-r-md", Se(In)(L.color || "#ffff")])
43106
- }, oe(L.name), 7)
43104
+ style: ze({ backgroundColor: T.color || "#ffff" }),
43105
+ class: se(["text-xs truncate max-w-32 p-1 rounded-r-md", Se(In)(T.color || "#ffff")])
43106
+ }, oe(T.name), 7)
43107
43107
  ]),
43108
- e.modelValue.some((A) => A.id === L.id) ? (v(), y("svg", Qy, [...B[6] || (B[6] = [
43108
+ e.modelValue.some((A) => A.id === T.id) ? (v(), y("svg", Qy, [...B[6] || (B[6] = [
43109
43109
  r("path", {
43110
43110
  stroke: "currentColor",
43111
43111
  "stroke-linecap": "round",
@@ -43143,7 +43143,7 @@ const Gy = {
43143
43143
  }, [
43144
43144
  r("div", ex, [
43145
43145
  Ye(r("input", {
43146
- "onUpdate:modelValue": B[2] || (B[2] = (L) => p.value.name = L),
43146
+ "onUpdate:modelValue": B[2] || (B[2] = (T) => p.value.name = T),
43147
43147
  type: "text",
43148
43148
  placeholder: "Buscar...",
43149
43149
  class: "w-full text-[10px] bg-base-200 rounded-md p-2 outline-none border-none focus:outline-none focus:ring-0 focus:shadow-none placeholder:text-gray-500"
@@ -43151,20 +43151,20 @@ const Gy = {
43151
43151
  [Ct, p.value.name]
43152
43152
  ])
43153
43153
  ]),
43154
- (v(!0), y(Oe, null, Ie(E.value, (L) => (v(), y("button", {
43155
- key: L.id,
43154
+ (v(!0), y(Oe, null, Ie(E.value, (T) => (v(), y("button", {
43155
+ key: T.id,
43156
43156
  class: se([
43157
43157
  "select-tag-btn",
43158
- { selected: e.modelValue.some((A) => A.id === L.id) }
43158
+ { selected: e.modelValue.some((A) => A.id === T.id) }
43159
43159
  ]),
43160
- onClick: (A) => C(L)
43160
+ onClick: (A) => C(T)
43161
43161
  }, [
43162
43162
  r("section", nx, [
43163
43163
  (v(), y("svg", {
43164
43164
  class: "size-6",
43165
43165
  "aria-hidden": "true",
43166
43166
  viewBox: "0 0 3 97",
43167
- style: ze({ color: L.color || "#ffff" })
43167
+ style: ze({ color: T.color || "#ffff" })
43168
43168
  }, [...B[9] || (B[9] = [
43169
43169
  r("path", {
43170
43170
  d: "M49.9,0a17.1,17.1,0,0,0-12,5L5,37.9A17,17,0,0,0,5,62L37.9,94.9a17.1,17.1,0,0,0,12,5ZM25.4,59.4a9.5,9.5,0,1,1,9.5-9.5A9.5,9.5,0,0,1,25.4,59.4Z",
@@ -43172,11 +43172,11 @@ const Gy = {
43172
43172
  }, null, -1)
43173
43173
  ])], 4)),
43174
43174
  r("span", {
43175
- style: ze({ backgroundColor: L.color || "#ffff" }),
43176
- class: se(["viewTag", Se(In)(L.color || "#ffff")])
43177
- }, oe(L.name), 7)
43175
+ style: ze({ backgroundColor: T.color || "#ffff" }),
43176
+ class: se(["viewTag", Se(In)(T.color || "#ffff")])
43177
+ }, oe(T.name), 7)
43178
43178
  ]),
43179
- e.modelValue.some((A) => A.id === L.id) ? (v(), y("svg", ax, [...B[10] || (B[10] = [
43179
+ e.modelValue.some((A) => A.id === T.id) ? (v(), y("svg", ax, [...B[10] || (B[10] = [
43180
43180
  r("path", {
43181
43181
  stroke: "currentColor",
43182
43182
  "stroke-linecap": "round",
@@ -43239,13 +43239,13 @@ const Gy = {
43239
43239
  empty: n.content.empty ?? !1,
43240
43240
  data: n.content.data ?? ""
43241
43241
  }), s = z(o.data);
43242
- He(
43242
+ _e(
43243
43243
  s,
43244
43244
  (l) => {
43245
43245
  a("update:content", { ...o, data: l });
43246
43246
  },
43247
43247
  { immediate: !0, deep: !0 }
43248
- ), He(
43248
+ ), _e(
43249
43249
  () => n.content,
43250
43250
  (l) => {
43251
43251
  l.data !== s.value && (s.value = l.data), l.empty !== o.empty && (o.empty = l.empty);
@@ -43384,7 +43384,7 @@ const Gy = {
43384
43384
  zIndex: 9999
43385
43385
  };
43386
43386
  };
43387
- He(o, (g) => {
43387
+ _e(o, (g) => {
43388
43388
  g && f();
43389
43389
  });
43390
43390
  const u = [];
@@ -43588,7 +43588,7 @@ const Gy = {
43588
43588
  emits: ["update:modelValue"],
43589
43589
  setup(e, { emit: t }) {
43590
43590
  const n = e, a = t, o = z(n.modelValue), s = z(0);
43591
- He(
43591
+ _e(
43592
43592
  () => n.modelValue,
43593
43593
  (c) => {
43594
43594
  o.value = c;
@@ -43702,53 +43702,53 @@ const Gy = {
43702
43702
  },
43703
43703
  emits: ["update:modelValue"],
43704
43704
  setup(e, { emit: t }) {
43705
- const n = e, a = t, o = z(!1), s = z([]), i = ue(() => [...s.value].sort((T, L) => {
43706
- const A = j(T), S = j(L);
43705
+ const n = e, a = t, o = z(!1), s = z([]), i = ue(() => [...s.value].sort((L, T) => {
43706
+ const A = j(L), S = j(T);
43707
43707
  return A === S ? 0 : A - S;
43708
43708
  }));
43709
- function l(T) {
43710
- return Array.isArray(T) ? T.map((L) => L && L.product ? {
43711
- product: { ...L.product },
43712
- quantity: L.quantity ?? 0
43709
+ function l(L) {
43710
+ return Array.isArray(L) ? L.map((T) => T && T.product ? {
43711
+ product: { ...T.product },
43712
+ quantity: T.quantity ?? 0
43713
43713
  } : {
43714
- product: { ...L },
43715
- quantity: L.quantity ?? 0
43714
+ product: { ...T },
43715
+ quantity: T.quantity ?? 0
43716
43716
  }) : [];
43717
43717
  }
43718
- const f = z(l(n.modelValue)), u = z(1), c = z(null), m = z(null), h = ue(() => f.value.reduce((T, L) => {
43718
+ const f = z(l(n.modelValue)), u = z(1), c = z(null), m = z(null), h = ue(() => f.value.reduce((L, T) => {
43719
43719
  var V;
43720
- const A = ((V = L.product) == null ? void 0 : V.price) || L.price || 0, S = L.quantity || 0;
43721
- return T + A * S;
43720
+ const A = ((V = T.product) == null ? void 0 : V.price) || T.price || 0, S = T.quantity || 0;
43721
+ return L + A * S;
43722
43722
  }, 0));
43723
- function g(T) {
43724
- var L;
43725
- return ((L = T == null ? void 0 : T.product) == null ? void 0 : L.id) ?? (T == null ? void 0 : T.id);
43723
+ function g(L) {
43724
+ var T;
43725
+ return ((T = L == null ? void 0 : L.product) == null ? void 0 : T.id) ?? (L == null ? void 0 : L.id);
43726
43726
  }
43727
43727
  const d = ue(() => {
43728
- const T = {};
43729
- return f.value.forEach((L) => {
43730
- const A = g(L);
43731
- A != null && (T[A] = L.quantity);
43732
- }), T;
43733
- }), p = (T) => d.value[T.id] || 0, x = (T) => {
43734
- if (j(T)) return;
43735
- const L = f.value.find((A) => g(A) === T.id);
43736
- L ? L.quantity++ : f.value.push({
43737
- product: { ...T },
43728
+ const L = {};
43729
+ return f.value.forEach((T) => {
43730
+ const A = g(T);
43731
+ A != null && (L[A] = T.quantity);
43732
+ }), L;
43733
+ }), p = (L) => d.value[L.id] || 0, x = (L) => {
43734
+ if (j(L)) return;
43735
+ const T = f.value.find((A) => g(A) === L.id);
43736
+ T ? T.quantity++ : f.value.push({
43737
+ product: { ...L },
43738
43738
  quantity: 1
43739
43739
  });
43740
- }, b = (T) => {
43741
- if (j(T)) return;
43742
- const L = f.value.find((A) => g(A) === T.id);
43743
- L && (L.quantity > 0 ? L.quantity-- : L.quantity = 0);
43744
- }, M = (T, L) => {
43745
- const A = new URLSearchParams(), S = T;
43746
- return Object.keys(L).forEach((V) => A.append(V, L[V])), `${S}?${A.toString()}`;
43747
- }, E = async (T) => {
43740
+ }, b = (L) => {
43741
+ if (j(L)) return;
43742
+ const T = f.value.find((A) => g(A) === L.id);
43743
+ T && (T.quantity > 0 ? T.quantity-- : T.quantity = 0);
43744
+ }, M = (L, T) => {
43745
+ const A = new URLSearchParams(), S = L;
43746
+ return Object.keys(T).forEach((V) => A.append(V, T[V])), `${S}?${A.toString()}`;
43747
+ }, E = async (L) => {
43748
43748
  try {
43749
- const { data: L } = await wt.get(
43750
- M(yl, { page: u.value, ...T })
43751
- ), { results: A, next: S, previous: V } = L;
43749
+ const { data: T } = await wt.get(
43750
+ M(yl, { page: u.value, ...L })
43751
+ ), { results: A, next: S, previous: V } = T;
43752
43752
  if (c.value = S, m.value = V, u.value === 1)
43753
43753
  s.value = A;
43754
43754
  else {
@@ -43756,49 +43756,44 @@ const Gy = {
43756
43756
  s.value = [...s.value, ...ee];
43757
43757
  }
43758
43758
  c.value && (u.value += 1);
43759
- } catch (L) {
43760
- console.error("Erro ao buscar produtos:", L);
43759
+ } catch (T) {
43760
+ console.error("Erro ao buscar produtos:", T);
43761
43761
  }
43762
43762
  };
43763
43763
  ot(async () => {
43764
- var T;
43765
- n.allProducts && ((T = n.allProducts.results) == null ? void 0 : T.length) > 0 ? (s.value = n.allProducts.results, c.value = n.allProducts.next || null, m.value = n.allProducts.previous || null, u.value = 2) : (o.value = !0, await E(), o.value = !1);
43766
- }), He(
43764
+ var L;
43765
+ n.allProducts && ((L = n.allProducts.results) == null ? void 0 : L.length) > 0 ? (s.value = n.allProducts.results, c.value = n.allProducts.next || null, m.value = n.allProducts.previous || null, u.value = 2) : (o.value = !0, await E(), o.value = !1);
43766
+ }), _e(
43767
43767
  f,
43768
- (T) => {
43768
+ (L) => {
43769
43769
  a(
43770
43770
  "update:modelValue",
43771
- T.map((L) => ({
43772
- product: L.product,
43773
- quantity: L.quantity
43771
+ L.map((T) => ({
43772
+ product: T.product,
43773
+ quantity: T.quantity
43774
43774
  }))
43775
43775
  );
43776
43776
  },
43777
43777
  { deep: !0 }
43778
- ), He(
43779
- () => n.modelValue,
43780
- (T) => {
43781
- f.value = l(T);
43782
- },
43783
- { deep: !0 }
43784
- ), He(
43778
+ ), _e(
43785
43779
  () => n.modelValue,
43786
- (T) => {
43787
- f.value = l(T);
43780
+ (L) => {
43781
+ const T = l(L);
43782
+ JSON.stringify(T) !== JSON.stringify(f.value) && (f.value = T);
43788
43783
  },
43789
43784
  { deep: !0 }
43790
43785
  );
43791
- const C = z(!1), F = async (T) => {
43786
+ const C = z(!1), F = async (L) => {
43792
43787
  if (!C.value) {
43793
43788
  C.value = !0;
43794
43789
  try {
43795
43790
  if (!c.value) {
43796
- T.complete();
43791
+ L.complete();
43797
43792
  return;
43798
43793
  }
43799
- await E(), c.value ? T.loaded() : T.complete();
43800
- } catch (L) {
43801
- console.error("Erro ao carregar produtos:", L), T.complete();
43794
+ await E(), c.value ? L.loaded() : L.complete();
43795
+ } catch (T) {
43796
+ console.error("Erro ao carregar produtos:", T), L.complete();
43802
43797
  } finally {
43803
43798
  C.value = !1;
43804
43799
  }
@@ -43807,23 +43802,23 @@ const Gy = {
43807
43802
  function P() {
43808
43803
  typeof n.onMouseLeave == "function" && n.onMouseLeave();
43809
43804
  }
43810
- const j = (T) => {
43811
- const L = n.departmentBypass;
43812
- if (!L) return !1;
43813
- const A = Array.isArray(T == null ? void 0 : T.department) ? T.department : [];
43814
- return A.length === 0 ? !1 : !A.some((V) => V && V.id === L);
43805
+ const j = (L) => {
43806
+ const T = n.departmentBypass;
43807
+ if (!T) return !1;
43808
+ const A = Array.isArray(L == null ? void 0 : L.department) ? L.department : [];
43809
+ return A.length === 0 ? !1 : !A.some((V) => V && V.id === T);
43815
43810
  }, $ = z({ query: "" }), k = z(!1);
43816
43811
  let B;
43817
- return He(
43812
+ return _e(
43818
43813
  $,
43819
43814
  () => {
43820
43815
  clearTimeout(B), B = setTimeout(async () => {
43821
- const { query: T } = $.value;
43822
- u.value = 1, k.value = T != null, console.log("Buscando por:", k.value), o.value = !0, await E({ query: T }), o.value = !1;
43816
+ const { query: L } = $.value;
43817
+ u.value = 1, k.value = L != null, console.log("Buscando por:", k.value), o.value = !0, await E({ query: L }), o.value = !1;
43823
43818
  }, 500);
43824
43819
  },
43825
43820
  { deep: !0 }
43826
- ), (T, L) => {
43821
+ ), (L, T) => {
43827
43822
  const A = Pt("SimpleLoader");
43828
43823
  return v(), y("div", {
43829
43824
  class: "list-products-wrapper",
@@ -43834,7 +43829,7 @@ const Gy = {
43834
43829
  class: "search-products-input",
43835
43830
  type: "text",
43836
43831
  placeholder: "Buscar...",
43837
- "onUpdate:modelValue": L[0] || (L[0] = (S) => $.value.query = S)
43832
+ "onUpdate:modelValue": T[0] || (T[0] = (S) => $.value.query = S)
43838
43833
  }, null, 512), [
43839
43834
  [Ct, $.value.query]
43840
43835
  ]),
@@ -43852,7 +43847,7 @@ const Gy = {
43852
43847
  class: "flex w-full justify-between items-center py-1.5 relative",
43853
43848
  key: S.id
43854
43849
  }, [
43855
- j(S) ? (v(), y("span", $x, [...L[1] || (L[1] = [
43850
+ j(S) ? (v(), y("span", $x, [...T[1] || (T[1] = [
43856
43851
  r("svg", {
43857
43852
  class: "size-5 text-white",
43858
43853
  "aria-hidden": "true",
@@ -43876,7 +43871,7 @@ const Gy = {
43876
43871
  key: 0,
43877
43872
  class: "size-8 rounded-md",
43878
43873
  src: S.photo
43879
- }, null, 8, Dx)) : (v(), y("div", Bx, [...L[2] || (L[2] = [
43874
+ }, null, 8, Dx)) : (v(), y("div", Bx, [...T[2] || (T[2] = [
43880
43875
  r("svg", {
43881
43876
  class: "size-4",
43882
43877
  "aria-hidden": "true",
@@ -43949,7 +43944,7 @@ const Gy = {
43949
43944
  onInfinite: F,
43950
43945
  class: "p-3 bg-base-300"
43951
43946
  }, {
43952
- spinner: Le(() => [...L[3] || (L[3] = [
43947
+ spinner: Le(() => [...T[3] || (T[3] = [
43953
43948
  r("section", { class: "w-full justify-center items-center flex" }, [
43954
43949
  r("div", { class: "size-4 animate-spin rounded-full border-4 border-solid border-white border-t-transparent" })
43955
43950
  ], -1)
@@ -43958,8 +43953,8 @@ const Gy = {
43958
43953
  })) : U("", !0)
43959
43954
  ])) : U("", !0),
43960
43955
  !o.value && s.value.length <= 0 ? (v(), y("section", qx, [
43961
- L[5] || (L[5] = r("p", { class: "text-gray-200 text-xs md:text-base font-sans" }, " Nenhum item encontrado ", -1)),
43962
- k.value ? U("", !0) : (v(), y("p", Ix, [...L[4] || (L[4] = [
43956
+ T[5] || (T[5] = r("p", { class: "text-gray-200 text-xs md:text-base font-sans" }, " Nenhum item encontrado ", -1)),
43957
+ k.value ? U("", !0) : (v(), y("p", Ix, [...T[4] || (T[4] = [
43963
43958
  Xe(" Comece criando seu primeiro na aba ", -1),
43964
43959
  r("strong", null, "Produtos", -1)
43965
43960
  ])]))
@@ -43968,7 +43963,7 @@ const Gy = {
43968
43963
  ], 32);
43969
43964
  };
43970
43965
  }
43971
- }, Fa = /* @__PURE__ */ Be(Wx, [["__scopeId", "data-v-0e347255"]]), Ux = {}, Zx = { class: "flex items-center justify-center h-full" };
43966
+ }, Fa = /* @__PURE__ */ Be(Wx, [["__scopeId", "data-v-5448a2c7"]]), Ux = {}, Zx = { class: "flex items-center justify-center h-full" };
43972
43967
  function Yx(e, t) {
43973
43968
  return v(), y("div", Zx, [...t[0] || (t[0] = [
43974
43969
  r("span", { class: "products-and-services_bar" }, null, -1),
@@ -44011,7 +44006,7 @@ const Da = /* @__PURE__ */ Be(Ux, [["render", Yx], ["__scopeId", "data-v-974c909
44011
44006
  n.modelValue.length === 0 && l(), o.value.forEach((f) => {
44012
44007
  f.type === "bool" && (f.content = f.content === "True");
44013
44008
  });
44014
- }), He(
44009
+ }), _e(
44015
44010
  o,
44016
44011
  (f) => {
44017
44012
  JSON.stringify(f) !== JSON.stringify(n.modelValue) && a("update:modelValue", i(f));
@@ -44221,7 +44216,7 @@ const Da = /* @__PURE__ */ Be(Ux, [["render", Yx], ["__scopeId", "data-v-974c909
44221
44216
  i.value = !1;
44222
44217
  }
44223
44218
  };
44224
- return He(
44219
+ return _e(
44225
44220
  () => o.form,
44226
44221
  (g) => {
44227
44222
  Object.assign(s, cr(g));
@@ -44801,8 +44796,8 @@ const Jb = { class: "audio-player hover:bg-base-100" }, ek = ["disabled"], tk =
44801
44796
  const B = o.value.play();
44802
44797
  B && typeof B.then == "function" ? B.then(() => {
44803
44798
  u.value = !1, s.value = !0;
44804
- }).catch((T) => {
44805
- console.error("Audio play failed:", T), u.value = !1, s.value = !1;
44799
+ }).catch((L) => {
44800
+ console.error("Audio play failed:", L), u.value = !1, s.value = !1;
44806
44801
  }) : (u.value = !1, s.value = !0);
44807
44802
  }
44808
44803
  }
@@ -44838,8 +44833,8 @@ const Jb = { class: "audio-player hover:bg-base-100" }, ek = ["disabled"], tk =
44838
44833
  }
44839
44834
  function F(B) {
44840
44835
  if (!B || isNaN(B)) return "0:00";
44841
- const T = Math.floor(B / 60), L = Math.floor(B % 60);
44842
- return `${T}:${L.toString().padStart(2, "0")}`;
44836
+ const L = Math.floor(B / 60), T = Math.floor(B % 60);
44837
+ return `${L}:${T.toString().padStart(2, "0")}`;
44843
44838
  }
44844
44839
  function P() {
44845
44840
  switch (a.type) {
@@ -44865,14 +44860,14 @@ const Jb = { class: "audio-player hover:bg-base-100" }, ek = ["disabled"], tk =
44865
44860
  function k() {
44866
44861
  n("play-pause", a.src);
44867
44862
  }
44868
- return He(
44863
+ return _e(
44869
44864
  () => a.activeSrc,
44870
44865
  (B) => {
44871
44866
  B && B !== a.src && s.value && o.value && (o.value.pause(), s.value = !1);
44872
44867
  }
44873
44868
  ), $n(() => {
44874
44869
  o.value && (o.value.pause(), o.value.src = "");
44875
- }), (B, T) => (v(), y("div", Jb, [
44870
+ }), (B, L) => (v(), y("div", Jb, [
44876
44871
  r("button", {
44877
44872
  onClick: dt(c, ["stop"]),
44878
44873
  class: "audio-play-btn hover:bg-base-100",
@@ -44888,7 +44883,7 @@ const Jb = { class: "audio-player hover:bg-base-100" }, ek = ["disabled"], tk =
44888
44883
  fill: "none",
44889
44884
  viewBox: "0 0 24 24",
44890
44885
  stroke: "currentColor"
44891
- }, [...T[0] || (T[0] = [
44886
+ }, [...L[0] || (L[0] = [
44892
44887
  r("circle", {
44893
44888
  cx: "12",
44894
44889
  cy: "12",
@@ -44907,7 +44902,7 @@ const Jb = { class: "audio-player hover:bg-base-100" }, ek = ["disabled"], tk =
44907
44902
  xmlns: "http://www.w3.org/2000/svg",
44908
44903
  fill: "currentColor",
44909
44904
  viewBox: "0 0 24 24"
44910
- }, [...T[2] || (T[2] = [
44905
+ }, [...L[2] || (L[2] = [
44911
44906
  r("path", { d: "M6 4h4v16H6V4zm8 0h4v16h-4V4z" }, null, -1)
44912
44907
  ])], 4)) : (v(), y("svg", {
44913
44908
  key: 1,
@@ -44915,7 +44910,7 @@ const Jb = { class: "audio-player hover:bg-base-100" }, ek = ["disabled"], tk =
44915
44910
  xmlns: "http://www.w3.org/2000/svg",
44916
44911
  fill: "currentColor",
44917
44912
  viewBox: "0 0 24 24"
44918
- }, [...T[1] || (T[1] = [
44913
+ }, [...L[1] || (L[1] = [
44919
44914
  r("path", { d: "M8 5v14l11-7z" }, null, -1)
44920
44915
  ])], 4))
44921
44916
  ], 12, ek),
@@ -44965,7 +44960,7 @@ const Jb = { class: "audio-player hover:bg-base-100" }, ek = ["disabled"], tk =
44965
44960
  viewBox: "0 0 24 24",
44966
44961
  stroke: "currentColor",
44967
44962
  "stroke-width": "2"
44968
- }, [...T[3] || (T[3] = [
44963
+ }, [...L[3] || (L[3] = [
44969
44964
  r("path", {
44970
44965
  "stroke-linecap": "round",
44971
44966
  "stroke-linejoin": "round",
@@ -45061,7 +45056,7 @@ const Jb = { class: "audio-player hover:bg-base-100" }, ek = ["disabled"], tk =
45061
45056
  const t = e, n = z(!1), a = z(null), o = z([]), s = z({}), i = z([]);
45062
45057
  ot(() => {
45063
45058
  l();
45064
- }), He(
45059
+ }), _e(
45065
45060
  () => t.chatId,
45066
45061
  () => {
45067
45062
  l();