sm-click-library-ui 0.0.239 → 0.0.240

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,7 +1,7 @@
1
1
  var Ll = Object.defineProperty;
2
2
  var Il = (e, n, t) => n in e ? Ll(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
3
  var fe = (e, n, t) => Il(e, typeof n != "symbol" ? n + "" : n, t);
4
- import { getCurrentScope as Go, onScopeDispose as Zo, unref as w, watch as Fe, ref as L, computed as G, openBlock as v, createElementBlock as M, createElementVNode as m, toDisplayString as ge, normalizeClass as me, renderSlot as ie, createCommentVNode as q, pushScopeId as it, popScopeId as ut, onMounted as Le, resolveComponent as Ma, createBlock as Me, withCtx as ve, createTextVNode as rt, Fragment as _e, renderList as Pe, createVNode as Ye, reactive as Kn, defineComponent as nt, useSlots as yn, toRef as Un, nextTick as Ze, onUnmounted as Jn, mergeProps as et, isRef as to, createSlots as lt, normalizeProps as tt, guardReactiveProps as vt, resolveDynamicComponent as Da, Teleport as Bl, Transition as gn, normalizeStyle as bt, withModifiers as Kt, h as ql, render as no, useAttrs as Wl, onBeforeUpdate as Hl, withDirectives as mt, vShow as jn, withKeys as Ko, vModelText as nn, vModelSelect as Jo, toRefs as jl, onBeforeUnmount as zl } from "vue";
4
+ import { getCurrentScope as Go, onScopeDispose as Zo, unref as w, watch as Fe, ref as L, computed as G, openBlock as v, createElementBlock as M, createElementVNode as m, toDisplayString as ge, normalizeClass as me, renderSlot as ie, createCommentVNode as q, pushScopeId as it, popScopeId as ut, onMounted as Le, resolveComponent as Ma, createBlock as Me, withCtx as ve, createTextVNode as rt, Fragment as _e, renderList as Pe, createVNode as Ye, reactive as Kn, defineComponent as nt, useSlots as yn, toRef as Un, nextTick as Ge, onUnmounted as Jn, mergeProps as et, isRef as to, createSlots as lt, normalizeProps as tt, guardReactiveProps as vt, resolveDynamicComponent as Da, Teleport as Bl, Transition as gn, normalizeStyle as bt, withModifiers as Kt, h as ql, render as no, useAttrs as Wl, onBeforeUpdate as Hl, withDirectives as mt, vShow as jn, withKeys as Ko, vModelText as nn, vModelSelect as Jo, toRefs as jl, onBeforeUnmount as zl } from "vue";
5
5
  import { defineStore as ea } from "pinia";
6
6
  function Vl(e) {
7
7
  return Go() ? (Zo(e), !0) : !1;
@@ -6070,8 +6070,8 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6070
6070
  }, le = (x) => x ? n.utc ? km(x, n.utc === "preserve", n.enableSeconds) : n.modelType ? n.modelType === "timestamp" ? +h(x) : n.modelType === "iso" ? h(x).toISOString() : n.modelType === "format" && (typeof n.format == "string" || !n.format) ? b(h(x)) : b(h(x), n.modelType, !0) : h(x) : "", be = (x, ue = !1, ke = !1) => {
6071
6071
  if (ke) return x;
6072
6072
  if (e("update:model-value", x), s.value.emitTimezone && ue) {
6073
- const Ge = Array.isArray(x) ? x.map((W) => gt(Je(W), s.value.emitTimezone)) : gt(Je(x), s.value.emitTimezone);
6074
- e("update:model-timezone-value", Ge);
6073
+ const Ze = Array.isArray(x) ? x.map((W) => gt(Je(W), s.value.emitTimezone)) : gt(Je(x), s.value.emitTimezone);
6074
+ e("update:model-timezone-value", Ze);
6075
6075
  }
6076
6076
  }, T = (x) => Array.isArray(a.value) ? l.value.enabled ? a.value.map((ue) => x(ue)) : [
6077
6077
  x(a.value[0]),
@@ -6398,7 +6398,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6398
6398
  Hl(() => {
6399
6399
  h.value = null;
6400
6400
  }), Le(() => {
6401
- Ze().then(() => K()), l.noOverlayFocus || te(), E(!0);
6401
+ Ge().then(() => K()), l.noOverlayFocus || te(), E(!0);
6402
6402
  }), Jn(() => E(!1));
6403
6403
  const E = (T) => {
6404
6404
  var P;
@@ -6439,7 +6439,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6439
6439
  { deep: !0 }
6440
6440
  );
6441
6441
  const K = (T = !0) => {
6442
- Ze().then(() => {
6442
+ Ge().then(() => {
6443
6443
  const P = Ke(h), p = Ke(b), Y = Ke(_), X = Ke(g), x = Y ? Y.getBoundingClientRect().height : 0;
6444
6444
  p && (p.getBoundingClientRect().height ? A.value = p.getBoundingClientRect().height - x : A.value = i.value.modeHeight - x), P && X && T && (X.scrollTop = P.offsetTop - X.offsetTop - (A.value / 2 - P.getBoundingClientRect().height) - x);
6445
6445
  });
@@ -6904,14 +6904,14 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6904
6904
  Y.value,
6905
6905
  rl(b.value(p), u.value.minDate),
6906
6906
  ol(b.value(p), u.value.maxDate)
6907
- ) || Tm(u.value.disabledDates, b.value(p)).includes(Y.value) || ((X = i.value.months) == null ? void 0 : X.includes(Y.value)), ke = I(Y.value, p), Ge = dl(l.value, Y.value, b.value(p));
6908
- return { active: x, disabled: ue, isBetween: ke, highlighted: Ge };
6907
+ ) || Tm(u.value.disabledDates, b.value(p)).includes(Y.value) || ((X = i.value.months) == null ? void 0 : X.includes(Y.value)), ke = I(Y.value, p), Ze = dl(l.value, Y.value, b.value(p));
6908
+ return { active: x, disabled: ue, isBetween: ke, highlighted: Ze };
6909
6909
  })), j = (p, Y) => Ht(St(J()), p, b.value(Y)), se = (p, Y) => {
6910
6910
  const X = h.value ? h.value : St(/* @__PURE__ */ new Date());
6911
6911
  h.value = Ht(X, p, b.value(Y)), n("auto-apply"), n("update-flow-step");
6912
6912
  }, Q = (p, Y) => {
6913
6913
  const X = j(p, Y);
6914
- s.value.fixedEnd || s.value.fixedStart ? h.value = pl(X, h, n, s) : h.value ? g(X, h.value) && (h.value = Zr(h, j(p, Y), n)) : h.value = [j(p, Y)], Ze().then(() => {
6914
+ s.value.fixedEnd || s.value.fixedStart ? h.value = pl(X, h, n, s) : h.value ? g(X, h.value) && (h.value = Zr(h, j(p, Y), n)) : h.value = [j(p, Y)], Ge().then(() => {
6915
6915
  Ea(h.value, n, e.autoApply, e.modelAuto);
6916
6916
  });
6917
6917
  }, le = (p, Y) => {
@@ -7099,7 +7099,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7099
7099
  var C;
7100
7100
  if (n("update-month-year", { instance: 0, year: k }), s.value.enabled)
7101
7101
  return a.value ? Array.isArray(a.value) && (((C = a.value) == null ? void 0 : C.map((_) => xe(_))).includes(k) ? a.value = a.value.filter((_) => xe(_) !== k) : a.value.push(Bt(ht(J()), k))) : a.value = [Bt(ht(Xn(J())), k)], n("auto-apply", !0);
7102
- u.value.enabled ? (a.value = Zr(a, b(k), n), Ze().then(() => {
7102
+ u.value.enabled ? (a.value = Zr(a, b(k), n), Ge().then(() => {
7103
7103
  Ea(a.value, n, e.autoApply, e.modelAuto);
7104
7104
  })) : (a.value = b(k), n("auto-apply"));
7105
7105
  }
@@ -7267,7 +7267,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7267
7267
  }, i.value.timeArrowHoldThreshold));
7268
7268
  }, ue = (y) => r.is24 ? y : (y >= 12 ? k.value = "PM" : k.value = "AM", pm(y)), ke = () => {
7269
7269
  k.value === "PM" ? (k.value = "AM", a("update:hours", r.hours - 12)) : (k.value = "PM", a("update:hours", r.hours + 12)), a("am-pm-change", k.value);
7270
- }, Ge = (y) => {
7270
+ }, Ze = (y) => {
7271
7271
  b[y] = !0;
7272
7272
  }, W = (y, Z, ae) => {
7273
7273
  if (y && r.arrowNavigation) {
@@ -7279,7 +7279,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7279
7279
  s(r.closeTimePickerBtn), C.value && (U[1] = U[1].concat(C.value)), o(U, r.order);
7280
7280
  }
7281
7281
  }, ne = (y, Z) => (p(y), a(`update:${y}`, Z));
7282
- return n({ openChildCmp: Ge }), (y, Z) => {
7282
+ return n({ openChildCmp: Ze }), (y, Z) => {
7283
7283
  var ae;
7284
7284
  return y.disabled ? q("", !0) : (v(), M("div", s0, [
7285
7285
  (v(!0), M(_e, null, Pe($.value, (U, Ae) => {
@@ -7503,7 +7503,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7503
7503
  Q.push(D(0));
7504
7504
  return Q;
7505
7505
  }), F = (Q, le = !1, be = "") => {
7506
- le || a("reset-flow"), H.value = Q, a(Q ? "overlay-opened" : "overlay-closed", st.time), r.arrowNavigation && s(Q), Ze(() => {
7506
+ le || a("reset-flow"), H.value = Q, a(Q ? "overlay-opened" : "overlay-closed", st.time), r.arrowNavigation && s(Q), Ge(() => {
7507
7507
  be !== "" && A.value[0] && A.value[0].openChildCmp(be);
7508
7508
  });
7509
7509
  }, B = G(() => ({
@@ -7927,7 +7927,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7927
7927
  toggleYearPicker: se,
7928
7928
  handleMonthYearChange: C
7929
7929
  }), (P, p) => {
7930
- var Y, X, x, ue, ke, Ge;
7930
+ var Y, X, x, ue, ke, Ze;
7931
7931
  return v(), M("div", x0, [
7932
7932
  P.$slots["month-year"] ? (v(), M("div", A0, [
7933
7933
  ie(P.$slots, "month-year", tt(vt({ month: e.month, year: e.year, months: e.months, years: e.years, updateMonthYear: w(A), handleMonthYearChange: w(C), instance: e.instance })))
@@ -8060,7 +8060,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8060
8060
  "el-name": "action-next",
8061
8061
  disabled: w(_)(!0),
8062
8062
  "aria-label": (ke = w(s)) == null ? void 0 : ke.nextMonth,
8063
- class: me((Ge = w(f)) == null ? void 0 : Ge.navBtnNext),
8063
+ class: me((Ze = w(f)) == null ? void 0 : Ze.navBtnNext),
8064
8064
  onActivate: p[3] || (p[3] = (W) => w(C)(!0, !0)),
8065
8065
  onSetRef: p[4] || (p[4] = (W) => le(W, P.disableYearSelect ? 2 : 3))
8066
8066
  }, {
@@ -8128,7 +8128,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8128
8128
  const F = (W) => W ? r.vertical ? "vNext" : "next" : r.vertical ? "vPrevious" : "previous", B = (W, ne) => {
8129
8129
  if (r.transitions) {
8130
8130
  const y = ht(Ht(J(), r.month, r.year));
8131
- A.value = Ue(ht(Ht(J(), W, ne)), y) ? s.value[F(!0)] : s.value[F(!1)], _.value = !1, Ze(() => {
8131
+ A.value = Ue(ht(Ht(J(), W, ne)), y) ? s.value[F(!0)] : s.value[F(!1)], _.value = !1, Ge(() => {
8132
8132
  _.value = !0;
8133
8133
  });
8134
8134
  }
@@ -8149,7 +8149,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8149
8149
  const { width: y, height: Z } = W.getBoundingClientRect();
8150
8150
  h.value = ne.value;
8151
8151
  let ae = { left: `${y / 2}px` }, U = -50;
8152
- if (await Ze(), E.value[0]) {
8152
+ if (await Ge(), E.value[0]) {
8153
8153
  const { left: Ae, width: R } = E.value[0].getBoundingClientRect();
8154
8154
  Ae < 0 && (ae = { left: "0" }, U = 0, te.value.left = `${y / 2}px`), window.innerWidth < Ae + R && (ae = { right: "0" }, U = 0, te.value.left = `${R - y / 2}px`);
8155
8155
  }
@@ -8189,7 +8189,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8189
8189
  y && Co() || !y && !Co() || d.value.enabled || (en(W, l.value), a("select-date", ne));
8190
8190
  }, ke = (W) => {
8191
8191
  en(W, l.value);
8192
- }, Ge = (W) => {
8192
+ }, Ze = (W) => {
8193
8193
  d.value.enabled && d.value.dragSelect ? (H.value = !0, a("select-date", W)) : d.value.enabled && a("select-date", W);
8194
8194
  };
8195
8195
  return n({ triggerTransition: B }), (W, ne) => (v(), M("div", {
@@ -8262,7 +8262,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8262
8262
  onKeydown: (he) => w(ft)(he, () => W.$emit("select-date", ae)),
8263
8263
  onMouseenter: (he) => se(ae, Z, U),
8264
8264
  onMouseleave: (he) => Q(ae),
8265
- onMousedown: (he) => Ge(ae),
8265
+ onMousedown: (he) => Ze(ae),
8266
8266
  onMouseup: ne[0] || (ne[0] = (he) => H.value = !1)
8267
8267
  }, [
8268
8268
  m("div", {
@@ -8374,7 +8374,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8374
8374
  c.value[z] = { month: Se(ce), year: xe(ce) };
8375
8375
  }
8376
8376
  }, P = (O, oe) => {
8377
- T(O), F("hours", jt(O)), F("minutes", an(O)), F("seconds", Tn(O)), f.value.count && oe && Ge();
8377
+ T(O), F("hours", jt(O)), F("minutes", an(O)), F("seconds", Tn(O)), f.value.count && oe && Ze();
8378
8378
  }, p = (O) => {
8379
8379
  if (f.value.count) {
8380
8380
  if (f.value.solo) return 0;
@@ -8398,7 +8398,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8398
8398
  }
8399
8399
  }, x = (O) => {
8400
8400
  const oe = u.value;
8401
- X(oe, O), f.value.count && f.value.solo && Ge();
8401
+ X(oe, O), f.value.count && f.value.solo && Ze();
8402
8402
  }, ue = (O, oe) => {
8403
8403
  const z = Ee(J(), { month: pe.value(oe), year: $.value(oe) }), re = O < 0 ? $t(z, 1) : Sn(z, 1);
8404
8404
  g(Se(re), xe(re), O < 0, e.preventMinMaxNavigation) && (S(oe, Se(re), xe(re)), n("update-month-year", { instance: oe, month: Se(re), year: xe(re) }), f.value.count && !f.value.solo && ke(oe), t());
@@ -8411,7 +8411,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8411
8411
  const z = $t(Ee(J(), { month: pe.value(oe - 1), year: $.value(oe - 1) }), 1);
8412
8412
  S(oe, Se(z), xe(z));
8413
8413
  }
8414
- }, Ge = () => {
8414
+ }, Ze = () => {
8415
8415
  if (Array.isArray(u.value) && u.value.length === 2) {
8416
8416
  const O = J(
8417
8417
  J(u.value[1] ? u.value[1] : $t(u.value[0], 1))
@@ -8484,7 +8484,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8484
8484
  return sn(At), Ae(z, re, ce, dt);
8485
8485
  }, he = (O) => {
8486
8486
  const oe = tn(J(O.value), i.hours, i.minutes, wt());
8487
- n("date-update", oe), A.value.enabled ? Gr(oe, u, A.value.limit) : u.value = oe, a(), Ze().then(() => {
8487
+ n("date-update", oe), A.value.enabled ? Gr(oe, u, A.value.limit) : u.value = oe, a(), Ge().then(() => {
8488
8488
  Q();
8489
8489
  });
8490
8490
  }, Te = (O) => b.value.noDisabledRange ? sl(r.value[0], O).some((oe) => E(oe)) : !1, xt = () => {
@@ -8539,7 +8539,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8539
8539
  modelValue: u,
8540
8540
  range: b.value.enabled,
8541
8541
  timezone: oe ? void 0 : C.value.timezone
8542
- }), j(), e.multiCalendars && Ze().then(() => le(!0));
8542
+ }), j(), e.multiCalendars && Ge().then(() => le(!0));
8543
8543
  }, Va = () => {
8544
8544
  const O = zr(J(), C.value);
8545
8545
  b.value.enabled ? u.value && Array.isArray(u.value) && u.value[0] ? u.value = He(O, u.value[0]) ? [O, u.value[0]] : [u.value[0], O] : u.value = [O] : u.value = O, j();
@@ -8683,7 +8683,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8683
8683
  (y = pe.value[0]) == null || y.handleMonthYearChange(ne, !0);
8684
8684
  }, ke = (ne) => {
8685
8685
  g(0, { month: s.value(0), year: l.value(0) + (ne ? 1 : -1), fromNav: !0 });
8686
- }, Ge = (ne, y) => {
8686
+ }, Ze = (ne, y) => {
8687
8687
  ne === st.time && a(`time-picker-${y ? "open" : "close"}`), a("overlay-toggle", { open: y, overlay: ne });
8688
8688
  }, W = (ne) => {
8689
8689
  a("overlay-toggle", { open: !1, overlay: ne }), a("focus-menu");
@@ -8786,8 +8786,8 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8786
8786
  "onUpdate:minutes": y[10] || (y[10] = (Z) => w(H)(Z, !1)),
8787
8787
  "onUpdate:seconds": y[11] || (y[11] = (Z) => w(H)(Z, !1, !0)),
8788
8788
  onResetFlow: y[12] || (y[12] = (Z) => ne.$emit("reset-flow")),
8789
- onOverlayClosed: y[13] || (y[13] = (Z) => Ge(Z, !1)),
8790
- onOverlayOpened: y[14] || (y[14] = (Z) => Ge(Z, !0)),
8789
+ onOverlayClosed: y[13] || (y[13] = (Z) => Ze(Z, !1)),
8790
+ onOverlayOpened: y[14] || (y[14] = (Z) => Ze(Z, !0)),
8791
8791
  onAmPmChange: y[15] || (y[15] = (Z) => ne.$emit("am-pm-change", Z))
8792
8792
  }), lt({ _: 2 }, [
8793
8793
  Pe(w(se), (Z, ae) => ({
@@ -9102,7 +9102,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
9102
9102
  }, ke = (R) => {
9103
9103
  var ee, he, Te;
9104
9104
  (ee = g.value) == null || ee.toggleTimePicker(!1, !1), (he = g.value) == null || he.toggleMonthPicker(!1, !1, R), (Te = g.value) == null || Te.toggleYearPicker(!1, !1, R);
9105
- }, Ge = (R, ee = 0) => {
9105
+ }, Ze = (R, ee = 0) => {
9106
9106
  var he, Te, xt;
9107
9107
  return R === "month" ? (he = g.value) == null ? void 0 : he.toggleMonthPicker(!1, !0, ee) : R === "year" ? (Te = g.value) == null ? void 0 : Te.toggleYearPicker(!1, !0, ee) : R === "time" ? (xt = g.value) == null ? void 0 : xt.toggleTimePicker(!0, !1) : ke(ee);
9108
9108
  }, W = (R, ...ee) => {
@@ -9143,7 +9143,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
9143
9143
  };
9144
9144
  return n({
9145
9145
  updateMonthYear: ae,
9146
- switchView: Ge,
9146
+ switchView: Ze,
9147
9147
  handleFlow: pe
9148
9148
  }), (R, ee) => {
9149
9149
  var he, Te, xt;
@@ -9751,7 +9751,7 @@ const J0 = ({
9751
9751
  }
9752
9752
  }, l = () => {
9753
9753
  var d, f;
9754
- (d = e.flow) != null && d.length && a.value !== -1 && (a.value += 1, n("flow-step", a.value), i()), ((f = e.flow) == null ? void 0 : f.length) === a.value && Ze().then(() => u());
9754
+ (d = e.flow) != null && d.length && a.value !== -1 && (a.value += 1, n("flow-step", a.value), i()), ((f = e.flow) == null ? void 0 : f.length) === a.value && Ge().then(() => u());
9755
9755
  }, u = () => {
9756
9756
  a.value = -1;
9757
9757
  }, c = (d, f, ...h) => {
@@ -9858,7 +9858,7 @@ const J0 = ({
9858
9858
  var p;
9859
9859
  E.value && P && !A.value && (T.preventDefault(), A.value = !0, (p = E.value) == null || p.focus()), o.value.enabled && o.value.tabSubmit && B(T.target.value), o.value.tabSubmit && Tr(k.value) && r.inputValue !== "" ? (a("set-input-date", k.value, !0, !0), k.value = null) : o.value.tabSubmit && r.inputValue === "" && (k.value = null, a("clear", !0));
9860
9860
  }, $ = () => {
9861
- _.value = !0, a("focus"), Ze().then(() => {
9861
+ _.value = !0, a("focus"), Ge().then(() => {
9862
9862
  var T;
9863
9863
  o.value.enabled && o.value.selectOnFocus && ((T = C.value) == null || T.select());
9864
9864
  });
@@ -10039,7 +10039,7 @@ const J0 = ({
10039
10039
  defaultedMultiDates: de
10040
10040
  } = qe(r), { menuTransition: pe, showTransition: $ } = ra(D);
10041
10041
  Le(() => {
10042
- Y(r.modelValue), Ze().then(() => {
10042
+ Y(r.modelValue), Ge().then(() => {
10043
10043
  if (!F.value.enabled) {
10044
10044
  const z = be(h.value);
10045
10045
  z == null || z.addEventListener("scroll", ae), window == null || window.addEventListener("resize", U);
@@ -10085,7 +10085,7 @@ const J0 = ({
10085
10085
  "dp--flex-display-collapsed": C.value,
10086
10086
  dp__flex_display_with_input: F.value.input
10087
10087
  })
10088
- ), Ge = G(() => r.dark ? "dp__theme_dark" : "dp__theme_light"), W = G(() => r.teleport ? {
10088
+ ), Ze = G(() => r.dark ? "dp__theme_dark" : "dp__theme_light"), W = G(() => r.teleport ? {
10089
10089
  to: typeof r.teleport == "boolean" ? "body" : r.teleport,
10090
10090
  disabled: !r.teleport || F.value.enabled
10091
10091
  } : {}), ne = G(() => ({ class: "dp__outer_menu_wrap" })), y = G(() => F.value.enabled && (r.timePicker || r.monthPicker || r.yearPicker || r.quarterPicker)), Z = () => {
@@ -10128,7 +10128,7 @@ const J0 = ({
10128
10128
  return;
10129
10129
  }
10130
10130
  const dt = Array.isArray(z) ? !z.some((sn) => !te(sn)) : te(z), At = H(z);
10131
- dt && At && (_.value = !0, p.value = z, re && (b.value = ce, xt(), a("text-submit")), Ze().then(() => {
10131
+ dt && At && (_.value = !0, p.value = z, re && (b.value = ce, xt(), a("text-submit")), Ge().then(() => {
10132
10132
  _.value = !1;
10133
10133
  }));
10134
10134
  }, Wa = () => {
@@ -10226,7 +10226,7 @@ const J0 = ({
10226
10226
  }, z.$props, {
10227
10227
  "internal-model-value": w(p),
10228
10228
  "onUpdate:internalModelValue": re[3] || (re[3] = (ce) => to(p) ? p.value = ce : null),
10229
- class: { [Ge.value]: !0, "dp--menu-wrapper": z.teleport },
10229
+ class: { [Ze.value]: !0, "dp--menu-wrapper": z.teleport },
10230
10230
  "open-on-top": w(j),
10231
10231
  "no-overlay-focus": y.value,
10232
10232
  collapse: C.value,
@@ -10533,7 +10533,7 @@ const Ih = () => {
10533
10533
  });
10534
10534
  const l = L(null);
10535
10535
  function u(f) {
10536
- s.value.message[0].content += ` {${f.name}} `, Ze(() => {
10536
+ s.value.message[0].content += ` {${f.name}} `, Ge(() => {
10537
10537
  l.value.focus();
10538
10538
  });
10539
10539
  }
@@ -11454,7 +11454,7 @@ function M1(e, n = null) {
11454
11454
  return t.bottom >= a.top && t.top <= a.bottom && t.right >= a.left && t.left <= a.right;
11455
11455
  }
11456
11456
  async function D1(e) {
11457
- return e ? (await Ze(), e.value instanceof HTMLElement ? e.value : e.value ? document.querySelector(e.value) : null) : null;
11457
+ return e ? (await Ge(), e.value instanceof HTMLElement ? e.value : e.value ? document.querySelector(e.value) : null) : null;
11458
11458
  }
11459
11459
  function T1(e) {
11460
11460
  let n = `0px 0px ${e.distance}px 0px`;
@@ -11468,7 +11468,7 @@ function T1(e) {
11468
11468
  return e.infiniteLoading.value && t.observe(e.infiniteLoading.value), t;
11469
11469
  }
11470
11470
  async function qo(e, n) {
11471
- if (await Ze(), !e.top)
11471
+ if (await Ge(), !e.top)
11472
11472
  return;
11473
11473
  const t = e.parentEl || document.documentElement;
11474
11474
  t.scrollTop = t.scrollHeight - n;
@@ -13261,7 +13261,7 @@ const Qv = {
13261
13261
  return;
13262
13262
  }
13263
13263
  const A = a.value.scrollHeight, g = a.value.scrollTop;
13264
- await n.loadMessagesForAtendente(n.selectedAtendente.id), await Ze(), a.value.scrollTop = a.value.scrollHeight - A + g - 32, _.loaded();
13264
+ await n.loadMessagesForAtendente(n.selectedAtendente.id), await Ge(), a.value.scrollTop = a.value.scrollHeight - A + g - 32, _.loaded();
13265
13265
  } catch (A) {
13266
13266
  console.error(A), _.complete();
13267
13267
  }
@@ -13273,7 +13273,7 @@ const Qv = {
13273
13273
  n.selectedAtendente.id,
13274
13274
  _,
13275
13275
  n.attendant
13276
- ), await Ze(), f();
13276
+ ), await Ge(), f();
13277
13277
  } catch (_) {
13278
13278
  console.error("Erro ao enviar mensagem:", _);
13279
13279
  }
@@ -13285,7 +13285,7 @@ const Qv = {
13285
13285
  }, 200);
13286
13286
  };
13287
13287
  Le(async () => {
13288
- await Ze(() => {
13288
+ await Ge(() => {
13289
13289
  f(), r.value = !0;
13290
13290
  });
13291
13291
  }), Fe(
@@ -13647,7 +13647,7 @@ const jy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
13647
13647
  n !== -1 ? this.departments[n] = e : this.departments.push(e);
13648
13648
  }
13649
13649
  }
13650
- }), ua = (e) => (it("data-v-b5b02f35"), e = e(), ut(), e), ng = { class: "depart-select-container" }, ag = { class: "search-container relative shadow shadow-gray-900 dark:shadow-gray-500" }, rg = ["placeholder"], og = { class: "icon-container" }, sg = {
13650
+ }), ua = (e) => (it("data-v-80fe58ce"), e = e(), ut(), e), ng = { class: "depart-select-container" }, ag = { class: "search-container relative shadow shadow-gray-900 dark:shadow-gray-500" }, rg = ["placeholder"], og = { class: "icon-container" }, sg = {
13651
13651
  key: 0,
13652
13652
  xmlns: "http://www.w3.org/2000/svg",
13653
13653
  fill: "none",
@@ -13727,7 +13727,7 @@ const jy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
13727
13727
  Fe(
13728
13728
  () => r.departments,
13729
13729
  async (_) => {
13730
- i || (console.log("Watch disparado, departamentos atualizados:", _), i = !0, await nextTick(), h(), f(), i = !1);
13730
+ i || (console.log("Watch disparado, departamentos atualizados:", _), i = !0, await Ge(), h(), f(), i = !1);
13731
13731
  },
13732
13732
  { immediate: !0, deep: !0 }
13733
13733
  ), Fe(
@@ -13835,7 +13835,7 @@ const jy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
13835
13835
  ])
13836
13836
  ]));
13837
13837
  }
13838
- }, Rl = /* @__PURE__ */ pt(Mg, [["__scopeId", "data-v-b5b02f35"]]), qa = (e) => (it("data-v-281bd5e7"), e = e(), ut(), e), Dg = { class: "depart-select-container" }, Tg = { class: "search-container relative shadow shadow-gray-900 dark:shadow-gray-500" }, Pg = ["placeholder"], Sg = { class: "icon-container" }, Cg = {
13838
+ }, Rl = /* @__PURE__ */ pt(Mg, [["__scopeId", "data-v-80fe58ce"]]), qa = (e) => (it("data-v-281bd5e7"), e = e(), ut(), e), Dg = { class: "depart-select-container" }, Tg = { class: "search-container relative shadow shadow-gray-900 dark:shadow-gray-500" }, Pg = ["placeholder"], Sg = { class: "icon-container" }, Cg = {
13839
13839
  key: 0,
13840
13840
  xmlns: "http://www.w3.org/2000/svg",
13841
13841
  fill: "none",
@@ -13937,7 +13937,7 @@ const jy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
13937
13937
  ), Fe(
13938
13938
  () => r.attendants,
13939
13939
  async (C) => {
13940
- await Ze(), f(), h();
13940
+ await Ge(), f(), h();
13941
13941
  },
13942
13942
  { immediate: !0, deep: !0 }
13943
13943
  ), Fe(