sm-click-library-ui 0.0.87 → 0.0.89

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,13 +1,13 @@
1
- var _l = Object.defineProperty;
2
- var kl = (e, t, a) => t in e ? _l(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
- var fe = (e, t, a) => kl(e, typeof t != "symbol" ? t + "" : t, a);
4
- import { getCurrentScope as Ho, onScopeDispose as jo, unref as g, watch as Ge, ref as z, computed as J, openBlock as w, createElementBlock as x, createElementVNode as v, toDisplayString as ke, normalizeClass as ge, renderSlot as ue, createCommentVNode as U, pushScopeId as Ct, popScopeId as St, onMounted as Be, resolveComponent as xr, createBlock as De, withCtx as pe, createTextVNode as Je, Fragment as be, renderList as Ce, createVNode as Le, reactive as Za, defineComponent as nt, useSlots as ma, toRef as za, nextTick as Ke, onUnmounted as Ja, mergeProps as tt, isRef as Gr, createSlots as lt, normalizeProps as at, guardReactiveProps as ft, resolveDynamicComponent as xn, Teleport as xl, Transition as ha, normalizeStyle as wt, withModifiers as ka, h as Ml, render as Xr, useAttrs as Tl, onBeforeUpdate as Dl, withDirectives as bt, vShow as Wa, withKeys as Wo, vModelText as xa, vModelSelect as Pl, toRefs as $l } from "vue";
5
- import { defineStore as Ol, getActivePinia as Cl } from "pinia";
1
+ var kl = Object.defineProperty;
2
+ var xl = (e, t, a) => t in e ? kl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
+ var fe = (e, t, a) => xl(e, typeof t != "symbol" ? t + "" : t, a);
4
+ import { getCurrentScope as Ho, onScopeDispose as jo, unref as w, watch as Ge, ref as z, computed as J, openBlock as g, createElementBlock as x, createElementVNode as v, toDisplayString as ke, normalizeClass as ge, renderSlot as ue, createCommentVNode as U, pushScopeId as Ct, popScopeId as St, onMounted as Be, resolveComponent as xr, createBlock as De, withCtx as pe, createTextVNode as Je, Fragment as be, renderList as Ce, createVNode as Le, reactive as Za, defineComponent as nt, useSlots as ma, toRef as za, nextTick as Ke, onUnmounted as Ja, mergeProps as tt, isRef as Gr, createSlots as lt, normalizeProps as at, guardReactiveProps as ft, resolveDynamicComponent as xn, Teleport as Ml, Transition as ha, normalizeStyle as wt, withModifiers as ka, h as Tl, render as Xr, useAttrs as Dl, onBeforeUpdate as Pl, withDirectives as bt, vShow as Wa, withKeys as Wo, vModelText as xa, vModelSelect as $l, toRefs as Ol } from "vue";
5
+ import { defineStore as Cl } from "pinia";
6
6
  function Sl(e) {
7
7
  return Ho() ? (jo(e), !0) : !1;
8
8
  }
9
9
  function qo(e) {
10
- return typeof e == "function" ? e() : g(e);
10
+ return typeof e == "function" ? e() : w(e);
11
11
  }
12
12
  const Vo = typeof window < "u" && typeof document < "u";
13
13
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
@@ -120,7 +120,7 @@ const At = (e, t) => {
120
120
  };
121
121
  return Il(r, () => {
122
122
  n.value && (n.value = !1);
123
- }), (l, u) => (w(), x("div", {
123
+ }), (l, u) => (g(), x("div", {
124
124
  ref_key: "target",
125
125
  ref: r,
126
126
  class: "relative w-full"
@@ -133,7 +133,7 @@ const At = (e, t) => {
133
133
  v("p", Fl, ke(e.config.title), 1)
134
134
  ]),
135
135
  v("div", null, [
136
- (w(), x("svg", {
136
+ (g(), x("svg", {
137
137
  class: ge([n.value ? "rotate-180 transition-transform ease-in-out" : "", "w-3 h-3 text-white"]),
138
138
  xmlns: "http://www.w3.org/2000/svg",
139
139
  fill: "currentColor",
@@ -141,7 +141,7 @@ const At = (e, t) => {
141
141
  }, Bl, 2))
142
142
  ])
143
143
  ]),
144
- n.value ? (w(), x("section", Hl, [
144
+ n.value ? (g(), x("section", Hl, [
145
145
  v("div", null, [
146
146
  ue(l.$slots, "free-slot", {}, void 0, !0)
147
147
  ])
@@ -175,7 +175,7 @@ const At = (e, t) => {
175
175
  const a = e, n = t, r = () => {
176
176
  n("update:isOpen", !a.isOpen);
177
177
  };
178
- return (o, s) => e.isOpen ? (w(), x("div", Wl, [
178
+ return (o, s) => e.isOpen ? (g(), x("div", Wl, [
179
179
  ql,
180
180
  v("div", Vl, [
181
181
  v("div", zl, [
@@ -282,14 +282,14 @@ const At = (e, t) => {
282
282
  },
283
283
  setup(e) {
284
284
  const t = e, a = J(() => t.typeCard === "success" ? "border-green-500 text-green-500 shadow-md shadow-green-700" : t.typeCard === "info" ? "border-blue-400 text-blue-400 shadow-md shadow-blue-700" : t.typeCard === "alert" ? "border-yellow-400 text-yellow-400 shadow-md shadow-yellow-700" : t.typeCard === "error" ? "border-red-500 text-red-500 shadow-md shadow-red-700" : "border-white text-white");
285
- return (n, r) => (w(), x("div", {
285
+ return (n, r) => (g(), x("div", {
286
286
  class: ge([a.value, "bg-base-300 border-2 p-2 rounded-lg flex-col justify-left items-center"])
287
287
  }, [
288
288
  v("div", ni, [
289
- e.typeCard === "success" ? (w(), x("svg", ri, si)) : U("", !0),
290
- e.typeCard === "info" ? (w(), x("svg", li, ui)) : U("", !0),
291
- e.typeCard === "alert" ? (w(), x("svg", ci, fi)) : U("", !0),
292
- e.typeCard === "error" ? (w(), x("svg", mi, pi)) : U("", !0),
289
+ e.typeCard === "success" ? (g(), x("svg", ri, si)) : U("", !0),
290
+ e.typeCard === "info" ? (g(), x("svg", li, ui)) : U("", !0),
291
+ e.typeCard === "alert" ? (g(), x("svg", ci, fi)) : U("", !0),
292
+ e.typeCard === "error" ? (g(), x("svg", mi, pi)) : U("", !0),
293
293
  v("span", null, [
294
294
  v("p", vi, ke(e.content.title), 1)
295
295
  ])
@@ -2173,7 +2173,7 @@ const qu = { class: "w-full relative text-current" }, Vu = { class: "flex cursor
2173
2173
  }
2174
2174
  }), (i, c) => {
2175
2175
  const d = xr("Popper");
2176
- return w(), x("main", qu, [
2176
+ return g(), x("main", qu, [
2177
2177
  v("div", {
2178
2178
  class: ge([{ "rounded-b-none": a.value }, "rounded-lg shadow dark:shadow-gray-400 shadow-gray-900 dark:bg-base-100 bg-base-100 text-center"])
2179
2179
  }, [
@@ -2182,17 +2182,17 @@ const qu = { class: "w-full relative text-current" }, Vu = { class: "flex cursor
2182
2182
  onClick: c[0] || (c[0] = (h) => a.value = !a.value),
2183
2183
  class: "w-full p-3 px-4 select-none"
2184
2184
  }, [
2185
- r.value ? (w(), x("div", uc, [
2185
+ r.value ? (g(), x("div", uc, [
2186
2186
  cc,
2187
2187
  Je("Carregando instâncias...")
2188
- ])) : (w(), x("div", zu, [
2189
- n.value ? (w(), x("span", Qu, [
2188
+ ])) : (g(), x("div", zu, [
2189
+ n.value ? (g(), x("span", Qu, [
2190
2190
  v("header", Gu, [
2191
- n.value.type === "whatsapp-qrcode" ? (w(), x("svg", Xu, Ju)) : n.value.type === "whatsapp-api-official" ? (w(), x("div", Ku, [
2191
+ n.value.type === "whatsapp-qrcode" ? (g(), x("svg", Xu, Ju)) : n.value.type === "whatsapp-api-official" ? (g(), x("div", Ku, [
2192
2192
  ec,
2193
- (w(), x("svg", tc, nc))
2193
+ (g(), x("svg", tc, nc))
2194
2194
  ])) : U("", !0),
2195
- n.value && n.value.status !== void 0 ? (w(), De(d, {
2195
+ n.value && n.value.status !== void 0 ? (g(), De(d, {
2196
2196
  key: 2,
2197
2197
  class: "dark:popper-light popper-dark",
2198
2198
  hover: !0,
@@ -2206,7 +2206,7 @@ const qu = { class: "w-full relative text-current" }, Vu = { class: "flex cursor
2206
2206
  ], 2)
2207
2207
  ]),
2208
2208
  default: pe(() => [
2209
- n.value.isLoading ? (w(), x("div", oc, lc)) : (w(), x("div", {
2209
+ n.value.isLoading ? (g(), x("div", oc, lc)) : (g(), x("div", {
2210
2210
  key: 0,
2211
2211
  class: ge([{ "bg-red-500": n.value.status === !1, "bg-green-500": n.value.status === !0, "bg-purple-500": n.value.status === "Offline" }, "text-xs w-5 h-5 py-1 shadow flex justify-start shadow-gray-900 dark:shadow-gray-400 rounded-full cursor-pointer transition-all duration-200 ease-in-out"])
2212
2212
  }, null, 2))
@@ -2215,7 +2215,7 @@ const qu = { class: "w-full relative text-current" }, Vu = { class: "flex cursor
2215
2215
  })) : U("", !0)
2216
2216
  ]),
2217
2217
  v("div", ic, ke(n.value.name), 1)
2218
- ])) : (w(), x("span", Uu, ke(l.value ? l.value.length : "Sem") + " Instâncias disponíveis", 1))
2218
+ ])) : (g(), x("span", Uu, ke(l.value ? l.value.length : "Sem") + " Instâncias disponíveis", 1))
2219
2219
  ]))
2220
2220
  ]),
2221
2221
  v("footer", dc, [
@@ -2225,7 +2225,7 @@ const qu = { class: "w-full relative text-current" }, Vu = { class: "flex cursor
2225
2225
  v("button", {
2226
2226
  onClick: c[2] || (c[2] = (h) => a.value = !a.value)
2227
2227
  }, [
2228
- (w(), x("svg", {
2228
+ (g(), x("svg", {
2229
2229
  class: ge([{ "rotate-180": a.value }, "w-4 h-4 ease-out transition"]),
2230
2230
  "aria-hidden": "true",
2231
2231
  xmlns: "http://www.w3.org/2000/svg",
@@ -2238,18 +2238,18 @@ const qu = { class: "w-full relative text-current" }, Vu = { class: "flex cursor
2238
2238
  ])
2239
2239
  ])
2240
2240
  ], 2),
2241
- a.value ? (w(), x("nav", vc, [
2241
+ a.value ? (g(), x("nav", vc, [
2242
2242
  v("ul", yc, [
2243
- l.value.length > 0 ? (w(!0), x(be, { key: 0 }, Ce(l.value, (h, y) => (w(), x("li", gc, [
2243
+ l.value.length > 0 ? (g(!0), x(be, { key: 0 }, Ce(l.value, (h, y) => (g(), x("li", gc, [
2244
2244
  v("button", {
2245
2245
  class: ge([n.value && n.value.id === h.id ? "bg-base-100" : "bg-base-200 hover:bg-base-100", "flex rounded-md justify-between items-center p-2 px-1 w-full"]),
2246
2246
  onClick: (_) => (n.value = h, a.value = !1, m(h)),
2247
2247
  disabled: n.value && n.value.id === h.id || e.type && h.type !== e.type || e.webhooks !== void 0 && e.webhooks !== h.webhooks
2248
2248
  }, [
2249
2249
  v("div", bc, [
2250
- h.type === "whatsapp-qrcode" ? (w(), x("svg", _c, xc)) : h.type === "whatsapp-api-official" ? (w(), x("div", Mc, [
2250
+ h.type === "whatsapp-qrcode" ? (g(), x("svg", _c, xc)) : h.type === "whatsapp-api-official" ? (g(), x("div", Mc, [
2251
2251
  Tc,
2252
- (w(), x("svg", Dc, $c))
2252
+ (g(), x("svg", Dc, $c))
2253
2253
  ])) : U("", !0),
2254
2254
  Le(d, {
2255
2255
  class: "dark:popper-light popper-dark",
@@ -2260,7 +2260,7 @@ const qu = { class: "w-full relative text-current" }, Vu = { class: "flex cursor
2260
2260
  v("span", null, ke(e.type && h.type !== e.type ? "Não é possível utilizar esse tipo de Instância neste recurso" : e.webhooks === !0 ? "Essa instância está com o Atendimento desabilitado" : "Essa aplicação é somente para instâncias sem atendimento habilitado."), 1)
2261
2261
  ]),
2262
2262
  default: pe(() => [
2263
- e.type && h.type !== e.type || e.webhooks !== void 0 && e.webhooks !== h.webhooks ? (w(), x("svg", Oc, Sc)) : U("", !0)
2263
+ e.type && h.type !== e.type || e.webhooks !== void 0 && e.webhooks !== h.webhooks ? (g(), x("svg", Oc, Sc)) : U("", !0)
2264
2264
  ]),
2265
2265
  _: 2
2266
2266
  }, 1024),
@@ -2278,7 +2278,7 @@ const qu = { class: "w-full relative text-current" }, Vu = { class: "flex cursor
2278
2278
  ], 2)
2279
2279
  ]),
2280
2280
  default: pe(() => [
2281
- h.isLoading ? (w(), x("div", Ec, Ic)) : (w(), x("div", {
2281
+ h.isLoading ? (g(), x("div", Ec, Ic)) : (g(), x("div", {
2282
2282
  key: 0,
2283
2283
  class: ge([{ "bg-red-500": h.status === !1, "bg-green-500": h.status === !0, "bg-purple-500": h.status === "Offline" }, "text-xs w-5 h-5 py-1 shadow flex justify-start shadow-gray-900 dark:shadow-gray-400 rounded-full cursor-pointer transition-all duration-200 ease-in-out"])
2284
2284
  }, null, 2))
@@ -2287,7 +2287,7 @@ const qu = { class: "w-full relative text-current" }, Vu = { class: "flex cursor
2287
2287
  }, 1024)
2288
2288
  ]),
2289
2289
  v("div", Yc, [
2290
- h.telephone ? (w(), De(d, {
2290
+ h.telephone ? (g(), De(d, {
2291
2291
  key: 0,
2292
2292
  class: "dark:popper-light popper-dark",
2293
2293
  hover: !0,
@@ -2303,7 +2303,7 @@ const qu = { class: "w-full relative text-current" }, Vu = { class: "flex cursor
2303
2303
  }, 1024)) : U("", !0)
2304
2304
  ])
2305
2305
  ], 10, wc)
2306
- ]))), 256)) : (w(), x("div", Lc, " Sem instâncias disponíveis"))
2306
+ ]))), 256)) : (g(), x("div", Lc, " Sem instâncias disponíveis"))
2307
2307
  ])
2308
2308
  ])) : U("", !0)
2309
2309
  ]);
@@ -5247,8 +5247,8 @@ function Hs(e, t) {
5247
5247
  return Or(e, -t);
5248
5248
  }
5249
5249
  function Aa() {
5250
- const e = Tl();
5251
- return w(), x(
5250
+ const e = Dl();
5251
+ return g(), x(
5252
5252
  "svg",
5253
5253
  {
5254
5254
  xmlns: "http://www.w3.org/2000/svg",
@@ -5279,7 +5279,7 @@ Aa.compatConfig = {
5279
5279
  MODE: 3
5280
5280
  };
5281
5281
  function js() {
5282
- return w(), x(
5282
+ return g(), x(
5283
5283
  "svg",
5284
5284
  {
5285
5285
  xmlns: "http://www.w3.org/2000/svg",
@@ -5303,7 +5303,7 @@ js.compatConfig = {
5303
5303
  MODE: 3
5304
5304
  };
5305
5305
  function Nr() {
5306
- return w(), x(
5306
+ return g(), x(
5307
5307
  "svg",
5308
5308
  {
5309
5309
  xmlns: "http://www.w3.org/2000/svg",
@@ -5324,7 +5324,7 @@ Nr.compatConfig = {
5324
5324
  MODE: 3
5325
5325
  };
5326
5326
  function Ir() {
5327
- return w(), x(
5327
+ return g(), x(
5328
5328
  "svg",
5329
5329
  {
5330
5330
  xmlns: "http://www.w3.org/2000/svg",
@@ -5345,7 +5345,7 @@ Ir.compatConfig = {
5345
5345
  MODE: 3
5346
5346
  };
5347
5347
  function Yr() {
5348
- return w(), x(
5348
+ return g(), x(
5349
5349
  "svg",
5350
5350
  {
5351
5351
  xmlns: "http://www.w3.org/2000/svg",
@@ -5369,7 +5369,7 @@ Yr.compatConfig = {
5369
5369
  MODE: 3
5370
5370
  };
5371
5371
  function Fr() {
5372
- return w(), x(
5372
+ return g(), x(
5373
5373
  "svg",
5374
5374
  {
5375
5375
  xmlns: "http://www.w3.org/2000/svg",
@@ -5390,7 +5390,7 @@ Fr.compatConfig = {
5390
5390
  MODE: 3
5391
5391
  };
5392
5392
  function Lr() {
5393
- return w(), x(
5393
+ return g(), x(
5394
5394
  "svg",
5395
5395
  {
5396
5396
  xmlns: "http://www.w3.org/2000/svg",
@@ -5475,7 +5475,7 @@ const Xf = (e, t, a) => {
5475
5475
  };
5476
5476
  });
5477
5477
  }, Zf = (e) => [12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11][e], Ze = (e) => {
5478
- const t = g(e);
5478
+ const t = w(e);
5479
5479
  return t != null && t.$el ? t == null ? void 0 : t.$el : t;
5480
5480
  }, Jf = (e) => ({ type: "dot", ...e ?? {} }), qs = (e) => Array.isArray(e) ? !!e[0] && !!e[1] : !1, jr = {
5481
5481
  prop: (e) => `"${e}" prop must be enabled!`,
@@ -6261,7 +6261,7 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6261
6261
  ), he = () => {
6262
6262
  c.value(n.internalModelValue) && d.value(n.internalModelValue) && ae.value ? a("select-date") : a("invalid-select");
6263
6263
  };
6264
- return (O, N) => (w(), x("div", {
6264
+ return (O, N) => (g(), x("div", {
6265
6265
  ref_key: "actionRowRef",
6266
6266
  ref: k,
6267
6267
  class: "dp__action_row"
@@ -6271,8 +6271,8 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6271
6271
  disabled: H.value,
6272
6272
  selectDate: () => O.$emit("select-date"),
6273
6273
  closePicker: () => O.$emit("close-picker")
6274
- }))) : (w(), x(be, { key: 1 }, [
6275
- g(r).showPreview ? (w(), x("div", {
6274
+ }))) : (g(), x(be, { key: 1 }, [
6275
+ w(r).showPreview ? (g(), x("div", {
6276
6276
  key: 0,
6277
6277
  class: "dp__selection_preview",
6278
6278
  title: ce.value,
@@ -6282,7 +6282,7 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6282
6282
  key: 0,
6283
6283
  value: O.internalModelValue
6284
6284
  }) : U("", !0),
6285
- !O.$slots["action-preview"] && B.value ? (w(), x(be, { key: 1 }, [
6285
+ !O.$slots["action-preview"] && B.value ? (g(), x(be, { key: 1 }, [
6286
6286
  Je(ke(ce.value), 1)
6287
6287
  ], 64)) : U("", !0)
6288
6288
  ], 12, Om)) : U("", !0),
@@ -6296,24 +6296,24 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6296
6296
  key: 0,
6297
6297
  value: O.internalModelValue
6298
6298
  }) : U("", !0),
6299
- O.$slots["action-buttons"] ? U("", !0) : (w(), x(be, { key: 1 }, [
6300
- !g(u).enabled && g(r).showCancel ? (w(), x("button", {
6299
+ O.$slots["action-buttons"] ? U("", !0) : (g(), x(be, { key: 1 }, [
6300
+ !w(u).enabled && w(r).showCancel ? (g(), x("button", {
6301
6301
  key: 0,
6302
6302
  ref_key: "cancelButtonRef",
6303
6303
  ref: y,
6304
6304
  type: "button",
6305
6305
  class: "dp__action_button dp__action_cancel",
6306
6306
  onClick: N[0] || (N[0] = (P) => O.$emit("close-picker")),
6307
- onKeydown: N[1] || (N[1] = (P) => g(ct)(P, () => O.$emit("close-picker")))
6307
+ onKeydown: N[1] || (N[1] = (P) => w(ct)(P, () => O.$emit("close-picker")))
6308
6308
  }, ke(O.cancelText), 545)) : U("", !0),
6309
- g(r).showNow ? (w(), x("button", {
6309
+ w(r).showNow ? (g(), x("button", {
6310
6310
  key: 1,
6311
6311
  type: "button",
6312
6312
  class: "dp__action_button dp__action_cancel",
6313
6313
  onClick: N[2] || (N[2] = (P) => O.$emit("select-now")),
6314
- onKeydown: N[3] || (N[3] = (P) => g(ct)(P, () => O.$emit("select-now")))
6314
+ onKeydown: N[3] || (N[3] = (P) => w(ct)(P, () => O.$emit("select-now")))
6315
6315
  }, ke(O.nowButtonLabel), 33)) : U("", !0),
6316
- g(r).showSelect ? (w(), x("button", {
6316
+ w(r).showSelect ? (g(), x("button", {
6317
6317
  key: 2,
6318
6318
  ref_key: "selectButtonRef",
6319
6319
  ref: _,
@@ -6321,7 +6321,7 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6321
6321
  class: "dp__action_button dp__action_select",
6322
6322
  disabled: H.value,
6323
6323
  "data-test": "select-button",
6324
- onKeydown: N[4] || (N[4] = (P) => g(ct)(P, () => he())),
6324
+ onKeydown: N[4] || (N[4] = (P) => w(ct)(P, () => he())),
6325
6325
  onClick: he
6326
6326
  }, ke(O.selectText), 41, Cm)) : U("", !0)
6327
6327
  ], 64))
@@ -6355,7 +6355,7 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6355
6355
  const { setSelectionGrid: n, buildMultiLevelMatrix: r, setMonthPicker: o } = ta(), s = a, l = e, { defaultedAriaLabels: u, defaultedTextInput: m, defaultedConfig: i } = He(
6356
6356
  l
6357
6357
  ), { hideNavigationButtons: c } = Rn(), d = z(!1), h = z(null), y = z(null), _ = z([]), B = z(), R = z(null), T = z(0), k = z(null);
6358
- Dl(() => {
6358
+ Pl(() => {
6359
6359
  h.value = null;
6360
6360
  }), Be(() => {
6361
6361
  Ke().then(() => Z()), l.noOverlayFocus || ae(), I(!0);
@@ -6448,7 +6448,7 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6448
6448
  };
6449
6449
  return t({ focusGrid: ae }), (M, D) => {
6450
6450
  var f;
6451
- return w(), x("div", {
6451
+ return g(), x("div", {
6452
6452
  ref_key: "gridWrapRef",
6453
6453
  ref: y,
6454
6454
  class: ge(H.value),
@@ -6470,12 +6470,12 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6470
6470
  v("div", Rm, [
6471
6471
  ue(M.$slots, "header")
6472
6472
  ]),
6473
- M.$slots.overlay ? ue(M.$slots, "overlay", { key: 0 }) : (w(!0), x(be, { key: 1 }, Ce(M.items, (A, G) => (w(), x("div", {
6473
+ M.$slots.overlay ? ue(M.$slots, "overlay", { key: 0 }) : (g(!0), x(be, { key: 1 }, Ce(M.items, (A, G) => (g(), x("div", {
6474
6474
  key: G,
6475
6475
  class: ge(["dp__overlay_row", { dp__flex_row: M.items.length >= 3 }]),
6476
6476
  role: "row"
6477
6477
  }, [
6478
- (w(!0), x(be, null, Ce(A, (b, ie) => (w(), x("div", {
6478
+ (g(!0), x(be, null, Ce(A, (b, ie) => (g(), x("div", {
6479
6479
  key: b.value,
6480
6480
  ref_for: !0,
6481
6481
  ref: (_e) => N(_e, b, G, ie),
@@ -6486,7 +6486,7 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6486
6486
  tabindex: "0",
6487
6487
  "data-test": b.text,
6488
6488
  onClick: ka((_e) => ce(b), ["prevent"]),
6489
- onKeydown: (_e) => g(ct)(_e, () => ce(b), !0),
6489
+ onKeydown: (_e) => w(ct)(_e, () => ce(b), !0),
6490
6490
  onMouseover: (_e) => se(b.value)
6491
6491
  }, [
6492
6492
  v("div", {
@@ -6496,19 +6496,19 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6496
6496
  key: 0,
6497
6497
  item: b
6498
6498
  }) : U("", !0),
6499
- M.$slots.item ? U("", !0) : (w(), x(be, { key: 1 }, [
6499
+ M.$slots.item ? U("", !0) : (g(), x(be, { key: 1 }, [
6500
6500
  Je(ke(b.text), 1)
6501
6501
  ], 64))
6502
6502
  ], 2)
6503
6503
  ], 42, Em))), 128))
6504
6504
  ], 2))), 128))
6505
6505
  ], 6),
6506
- M.$slots["button-icon"] ? bt((w(), x("button", {
6506
+ M.$slots["button-icon"] ? bt((g(), x("button", {
6507
6507
  key: 0,
6508
6508
  ref_key: "toggleButton",
6509
6509
  ref: R,
6510
6510
  type: "button",
6511
- "aria-label": (f = g(u)) == null ? void 0 : f.toggleOverlay,
6511
+ "aria-label": (f = w(u)) == null ? void 0 : f.toggleOverlay,
6512
6512
  class: ge(E.value),
6513
6513
  tabindex: "0",
6514
6514
  onClick: he,
@@ -6516,7 +6516,7 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6516
6516
  }, [
6517
6517
  ue(M.$slots, "button-icon")
6518
6518
  ], 42, Nm)), [
6519
- [Wa, !g(c)(M.hideNavigation, M.type)]
6519
+ [Wa, !w(c)(M.hideNavigation, M.type)]
6520
6520
  ]) : U("", !0)
6521
6521
  ], 46, Am);
6522
6522
  };
@@ -6534,7 +6534,7 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6534
6534
  ), n = J(() => ({
6535
6535
  dp__instance_calendar: t.multiCalendars > 0
6536
6536
  }));
6537
- return (r, o) => (w(), x("div", {
6537
+ return (r, o) => (g(), x("div", {
6538
6538
  class: ge({
6539
6539
  dp__menu_inner: !r.stretch,
6540
6540
  "dp--menu--inner-stretched": r.stretch,
@@ -6542,7 +6542,7 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6542
6542
  "dp--flex-display-collapsed": r.collapse
6543
6543
  })
6544
6544
  }, [
6545
- (w(!0), x(be, null, Ce(a.value, (s, l) => (w(), x("div", {
6545
+ (g(!0), x(be, null, Ce(a.value, (s, l) => (g(), x("div", {
6546
6546
  key: s,
6547
6547
  class: ge(n.value)
6548
6548
  }, [
@@ -6566,7 +6566,7 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6566
6566
  emits: ["activate", "set-ref"],
6567
6567
  setup(e, { emit: t }) {
6568
6568
  const a = t, n = z(null);
6569
- return Be(() => a("set-ref", n)), (r, o) => (w(), x("button", {
6569
+ return Be(() => a("set-ref", n)), (r, o) => (g(), x("button", {
6570
6570
  ref_key: "elRef",
6571
6571
  ref: n,
6572
6572
  type: "button",
@@ -6576,7 +6576,7 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6576
6576
  "aria-label": r.ariaLabel,
6577
6577
  "aria-disabled": r.disabled || void 0,
6578
6578
  onClick: o[0] || (o[0] = (s) => r.$emit("activate")),
6579
- onKeydown: o[1] || (o[1] = (s) => g(ct)(s, () => r.$emit("activate"), !0))
6579
+ onKeydown: o[1] || (o[1] = (s) => w(ct)(s, () => r.$emit("activate"), !0))
6580
6580
  }, [
6581
6581
  v("span", {
6582
6582
  class: ge(["dp__inner_nav", { dp__inner_nav_disabled: r.disabled }])
@@ -6606,21 +6606,21 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6606
6606
  };
6607
6607
  return (R, T) => {
6608
6608
  var k, I, ae, H, $;
6609
- return w(), x(be, null, [
6609
+ return g(), x(be, null, [
6610
6610
  v("div", {
6611
6611
  class: ge(["dp--year-mode-picker", { "dp--hidden-el": h.value }])
6612
6612
  }, [
6613
- g(o)(g(l), e.instance) ? (w(), De(Va, {
6613
+ w(o)(w(l), e.instance) ? (g(), De(Va, {
6614
6614
  key: 0,
6615
6615
  ref: "mpPrevIconRef",
6616
- "aria-label": (k = g(u)) == null ? void 0 : k.prevYear,
6616
+ "aria-label": (k = w(u)) == null ? void 0 : k.prevYear,
6617
6617
  disabled: e.isDisabled(!1),
6618
- class: ge((I = g(i)) == null ? void 0 : I.navBtnPrev),
6618
+ class: ge((I = w(i)) == null ? void 0 : I.navBtnPrev),
6619
6619
  onActivate: T[0] || (T[0] = (Y) => B(!1))
6620
6620
  }, {
6621
6621
  default: pe(() => [
6622
6622
  R.$slots["arrow-left"] ? ue(R.$slots, "arrow-left", { key: 0 }) : U("", !0),
6623
- R.$slots["arrow-left"] ? U("", !0) : (w(), De(g(Nr), { key: 1 }))
6623
+ R.$slots["arrow-left"] ? U("", !0) : (g(), De(w(Nr), { key: 1 }))
6624
6624
  ]),
6625
6625
  _: 3
6626
6626
  }, 8, ["aria-label", "disabled", "class"])) : U("", !0),
@@ -6628,7 +6628,7 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6628
6628
  ref: "mpYearButtonRef",
6629
6629
  class: "dp__btn dp--year-select",
6630
6630
  type: "button",
6631
- "aria-label": `${e.year}-${(ae = g(u)) == null ? void 0 : ae.openYearsOverlay}`,
6631
+ "aria-label": `${e.year}-${(ae = w(u)) == null ? void 0 : ae.openYearsOverlay}`,
6632
6632
  "data-test": `year-mode-btn-${e.instance}`,
6633
6633
  onClick: T[1] || (T[1] = () => y(!1)),
6634
6634
  onKeydown: T[2] || (T[2] = Wo(() => y(!1), ["enter"]))
@@ -6637,49 +6637,49 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6637
6637
  key: 0,
6638
6638
  year: e.year
6639
6639
  }) : U("", !0),
6640
- R.$slots.year ? U("", !0) : (w(), x(be, { key: 1 }, [
6640
+ R.$slots.year ? U("", !0) : (g(), x(be, { key: 1 }, [
6641
6641
  Je(ke(e.year), 1)
6642
6642
  ], 64))
6643
6643
  ], 40, Ym),
6644
- g(r)(g(l), e.instance) ? (w(), De(Va, {
6644
+ w(r)(w(l), e.instance) ? (g(), De(Va, {
6645
6645
  key: 1,
6646
6646
  ref: "mpNextIconRef",
6647
- "aria-label": (H = g(u)) == null ? void 0 : H.nextYear,
6647
+ "aria-label": (H = w(u)) == null ? void 0 : H.nextYear,
6648
6648
  disabled: e.isDisabled(!0),
6649
- class: ge(($ = g(i)) == null ? void 0 : $.navBtnNext),
6649
+ class: ge(($ = w(i)) == null ? void 0 : $.navBtnNext),
6650
6650
  onActivate: T[3] || (T[3] = (Y) => B(!0))
6651
6651
  }, {
6652
6652
  default: pe(() => [
6653
6653
  R.$slots["arrow-right"] ? ue(R.$slots, "arrow-right", { key: 0 }) : U("", !0),
6654
- R.$slots["arrow-right"] ? U("", !0) : (w(), De(g(Ir), { key: 1 }))
6654
+ R.$slots["arrow-right"] ? U("", !0) : (g(), De(w(Ir), { key: 1 }))
6655
6655
  ]),
6656
6656
  _: 3
6657
6657
  }, 8, ["aria-label", "disabled", "class"])) : U("", !0)
6658
6658
  ], 2),
6659
6659
  Le(ha, {
6660
- name: g(d)(e.showYearPicker),
6661
- css: g(c)
6660
+ name: w(d)(e.showYearPicker),
6661
+ css: w(c)
6662
6662
  }, {
6663
6663
  default: pe(() => {
6664
6664
  var Y, E;
6665
6665
  return [
6666
- e.showYearPicker ? (w(), De(tn, {
6666
+ e.showYearPicker ? (g(), De(tn, {
6667
6667
  key: 0,
6668
6668
  items: e.items,
6669
6669
  "text-input": R.textInput,
6670
6670
  "esc-close": R.escClose,
6671
6671
  config: R.config,
6672
- "is-last": R.autoApply && !g(s).keepActionRow,
6672
+ "is-last": R.autoApply && !w(s).keepActionRow,
6673
6673
  "hide-navigation": R.hideNavigation,
6674
6674
  "aria-labels": R.ariaLabels,
6675
- "overlay-label": (E = (Y = g(u)) == null ? void 0 : Y.yearPicker) == null ? void 0 : E.call(Y, !0),
6675
+ "overlay-label": (E = (Y = w(u)) == null ? void 0 : Y.yearPicker) == null ? void 0 : E.call(Y, !0),
6676
6676
  type: "year",
6677
6677
  onToggle: y,
6678
6678
  onSelected: T[4] || (T[4] = (F) => _(F))
6679
6679
  }, lt({
6680
6680
  "button-icon": pe(() => [
6681
6681
  R.$slots["calendar-icon"] ? ue(R.$slots, "calendar-icon", { key: 0 }) : U("", !0),
6682
- R.$slots["calendar-icon"] ? U("", !0) : (w(), De(g(Aa), { key: 1 }))
6682
+ R.$slots["calendar-icon"] ? U("", !0) : (g(), De(w(Aa), { key: 1 }))
6683
6683
  ]),
6684
6684
  _: 2
6685
6685
  }, [
@@ -6966,8 +6966,8 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6966
6966
  selectMonth: R,
6967
6967
  selectYear: T,
6968
6968
  handleYear: ae
6969
- }), presetDate: _, toggleYearPicker: ($) => k(0, $) }), ($, Y) => (w(), De(Sn, {
6970
- "multi-calendars": g(c).count,
6969
+ }), presetDate: _, toggleYearPicker: ($) => k(0, $) }), ($, Y) => (g(), De(Sn, {
6970
+ "multi-calendars": w(c).count,
6971
6971
  collapse: $.collapse,
6972
6972
  stretch: ""
6973
6973
  }, {
@@ -6977,38 +6977,38 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
6977
6977
  value: $.internalModelValue
6978
6978
  }) : U("", !0),
6979
6979
  $.$slots["month-year"] ? ue($.$slots, "month-year", at(tt({ key: 1 }, {
6980
- year: g(m),
6981
- months: g(l)(E),
6982
- years: g(u)(E),
6983
- selectMonth: g(R),
6984
- selectYear: g(T),
6980
+ year: w(m),
6981
+ months: w(l)(E),
6982
+ years: w(u)(E),
6983
+ selectMonth: w(R),
6984
+ selectYear: w(T),
6985
6985
  instance: E
6986
- }))) : (w(), De(tn, {
6986
+ }))) : (g(), De(tn, {
6987
6987
  key: 2,
6988
- items: g(l)(E),
6988
+ items: w(l)(E),
6989
6989
  "arrow-navigation": $.arrowNavigation,
6990
- "is-last": $.autoApply && !g(d).keepActionRow,
6990
+ "is-last": $.autoApply && !w(d).keepActionRow,
6991
6991
  "esc-close": $.escClose,
6992
- height: g(d).modeHeight,
6992
+ height: w(d).modeHeight,
6993
6993
  config: $.config,
6994
6994
  "no-overlay-focus": !!($.noOverlayFocus || $.textInput),
6995
6995
  "use-relative": "",
6996
6996
  type: "month",
6997
- onSelected: (F) => g(R)(F, E),
6998
- onHoverValue: (F) => g(B)(F, E)
6997
+ onSelected: (F) => w(R)(F, E),
6998
+ onHoverValue: (F) => w(B)(F, E)
6999
6999
  }, lt({
7000
7000
  header: pe(() => [
7001
7001
  Le(al, tt($.$props, {
7002
- items: g(u)(E),
7002
+ items: w(u)(E),
7003
7003
  instance: E,
7004
- "show-year-picker": g(h)[E],
7005
- year: g(m)(E),
7006
- "is-disabled": (F) => g(i)(E, F),
7007
- onHandleYear: (F) => g(ae)(E, F),
7008
- onYearSelect: (F) => g(I)(F, E),
7009
- onToggleYearPicker: (F) => g(k)(E, F == null ? void 0 : F.flow, F == null ? void 0 : F.show)
7004
+ "show-year-picker": w(h)[E],
7005
+ year: w(m)(E),
7006
+ "is-disabled": (F) => w(i)(E, F),
7007
+ onHandleYear: (F) => w(ae)(E, F),
7008
+ onYearSelect: (F) => w(I)(F, E),
7009
+ onToggleYearPicker: (F) => w(k)(E, F == null ? void 0 : F.flow, F == null ? void 0 : F.show)
7010
7010
  }), lt({ _: 2 }, [
7011
- Ce(g(o), (F, Z) => ({
7011
+ Ce(w(o), (F, Z) => ({
7012
7012
  name: F,
7013
7013
  fn: pe((ce) => [
7014
7014
  ue($.$slots, F, at(ft(ce)))
@@ -7085,26 +7085,26 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7085
7085
  return t({ getSidebarProps: () => ({
7086
7086
  modelValue: s,
7087
7087
  selectYear: u
7088
- }) }), (c, d) => (w(), x("div", null, [
7088
+ }) }), (c, d) => (g(), x("div", null, [
7089
7089
  c.$slots["top-extra"] ? ue(c.$slots, "top-extra", {
7090
7090
  key: 0,
7091
7091
  value: c.internalModelValue
7092
7092
  }) : U("", !0),
7093
7093
  c.$slots["month-year"] ? ue(c.$slots, "month-year", at(tt({ key: 1 }, {
7094
- years: g(o),
7095
- selectYear: g(u)
7096
- }))) : (w(), De(tn, {
7094
+ years: w(o),
7095
+ selectYear: w(u)
7096
+ }))) : (g(), De(tn, {
7097
7097
  key: 2,
7098
- items: g(o),
7099
- "is-last": c.autoApply && !g(i).keepActionRow,
7100
- height: g(i).modeHeight,
7098
+ items: w(o),
7099
+ "is-last": c.autoApply && !w(i).keepActionRow,
7100
+ height: w(i).modeHeight,
7101
7101
  config: c.config,
7102
7102
  "no-overlay-focus": !!(c.noOverlayFocus || c.textInput),
7103
- "focus-value": g(l),
7103
+ "focus-value": w(l),
7104
7104
  type: "year",
7105
7105
  "use-relative": "",
7106
- onSelected: g(u),
7107
- onHoverValue: g(m)
7106
+ onSelected: w(u),
7107
+ onHoverValue: w(m)
7108
7108
  }, lt({ _: 2 }, [
7109
7109
  c.$slots["year-overlay-value"] ? {
7110
7110
  name: "item",
@@ -7241,18 +7241,18 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7241
7241
  }, te = (p, X) => (f(p), n(`update:${p}`, X));
7242
7242
  return t({ openChildCmp: Xe }), (p, X) => {
7243
7243
  var ne;
7244
- return p.disabled ? U("", !0) : (w(), x("div", jm, [
7245
- (w(!0), x(be, null, Ce(O.value, (V, Me) => {
7244
+ return p.disabled ? U("", !0) : (g(), x("div", jm, [
7245
+ (g(!0), x(be, null, Ce(O.value, (V, Me) => {
7246
7246
  var S, ee, me;
7247
- return w(), x("div", {
7247
+ return g(), x("div", {
7248
7248
  key: Me,
7249
7249
  class: ge(he.value)
7250
7250
  }, [
7251
- V.separator ? (w(), x(be, { key: 0 }, [
7252
- k.value ? U("", !0) : (w(), x(be, { key: 0 }, [
7251
+ V.separator ? (g(), x(be, { key: 0 }, [
7252
+ k.value ? U("", !0) : (g(), x(be, { key: 0 }, [
7253
7253
  Je(":")
7254
7254
  ], 64))
7255
- ], 64)) : (w(), x(be, { key: 1 }, [
7255
+ ], 64)) : (g(), x(be, { key: 1 }, [
7256
7256
  v("button", {
7257
7257
  ref_for: !0,
7258
7258
  ref: (Pe) => L(Pe, Me, 0),
@@ -7266,28 +7266,28 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7266
7266
  "dp--hidden-el": k.value
7267
7267
  }),
7268
7268
  "data-test": `${V.type}-time-inc-btn-${r.order}`,
7269
- "aria-label": (S = g(l)) == null ? void 0 : S.incrementValue(V.type),
7269
+ "aria-label": (S = w(l)) == null ? void 0 : S.incrementValue(V.type),
7270
7270
  tabindex: "0",
7271
- onKeydown: (Pe) => g(ct)(Pe, () => b(V.type, !0, { keyboard: !0 }), !0),
7272
- onClick: (Pe) => g(i).timeArrowHoldThreshold ? void 0 : b(V.type, !0),
7273
- onMousedown: (Pe) => g(i).timeArrowHoldThreshold ? b(V.type, !0) : void 0,
7271
+ onKeydown: (Pe) => w(ct)(Pe, () => b(V.type, !0, { keyboard: !0 }), !0),
7272
+ onClick: (Pe) => w(i).timeArrowHoldThreshold ? void 0 : b(V.type, !0),
7273
+ onMousedown: (Pe) => w(i).timeArrowHoldThreshold ? b(V.type, !0) : void 0,
7274
7274
  onMouseup: G
7275
7275
  }, [
7276
- r.timePickerInline ? (w(), x(be, { key: 1 }, [
7277
- p.$slots["tp-inline-arrow-up"] ? ue(p.$slots, "tp-inline-arrow-up", { key: 0 }) : (w(), x(be, { key: 1 }, [
7276
+ r.timePickerInline ? (g(), x(be, { key: 1 }, [
7277
+ p.$slots["tp-inline-arrow-up"] ? ue(p.$slots, "tp-inline-arrow-up", { key: 0 }) : (g(), x(be, { key: 1 }, [
7278
7278
  qm,
7279
7279
  Vm
7280
7280
  ], 64))
7281
- ], 64)) : (w(), x(be, { key: 0 }, [
7281
+ ], 64)) : (g(), x(be, { key: 0 }, [
7282
7282
  p.$slots["arrow-up"] ? ue(p.$slots, "arrow-up", { key: 0 }) : U("", !0),
7283
- p.$slots["arrow-up"] ? U("", !0) : (w(), De(g(Fr), { key: 1 }))
7283
+ p.$slots["arrow-up"] ? U("", !0) : (g(), De(w(Fr), { key: 1 }))
7284
7284
  ], 64))
7285
7285
  ], 42, Wm),
7286
7286
  v("button", {
7287
7287
  ref_for: !0,
7288
7288
  ref: (Pe) => L(Pe, Me, 1),
7289
7289
  type: "button",
7290
- "aria-label": `${P.value(V.type).text}-${(ee = g(l)) == null ? void 0 : ee.openTpOverlay(V.type)}`,
7290
+ "aria-label": `${P.value(V.type).text}-${(ee = w(l)) == null ? void 0 : ee.openTpOverlay(V.type)}`,
7291
7291
  class: ge({
7292
7292
  dp__time_display: !0,
7293
7293
  dp__time_display_block: !p.timePickerInline,
@@ -7299,7 +7299,7 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7299
7299
  disabled: D(V.type),
7300
7300
  tabindex: "0",
7301
7301
  "data-test": `${V.type}-toggle-overlay-btn-${r.order}`,
7302
- onKeydown: (Pe) => g(ct)(Pe, () => f(V.type), !0),
7302
+ onKeydown: (Pe) => w(ct)(Pe, () => f(V.type), !0),
7303
7303
  onClick: (Pe) => f(V.type)
7304
7304
  }, [
7305
7305
  p.$slots[V.type] ? ue(p.$slots, V.type, {
@@ -7307,7 +7307,7 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7307
7307
  text: P.value(V.type).text,
7308
7308
  value: P.value(V.type).value
7309
7309
  }) : U("", !0),
7310
- p.$slots[V.type] ? U("", !0) : (w(), x(be, { key: 1 }, [
7310
+ p.$slots[V.type] ? U("", !0) : (g(), x(be, { key: 1 }, [
7311
7311
  Je(ke(P.value(V.type).text), 1)
7312
7312
  ], 64))
7313
7313
  ], 42, zm),
@@ -7324,71 +7324,71 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7324
7324
  "dp--hidden-el": k.value
7325
7325
  }),
7326
7326
  "data-test": `${V.type}-time-dec-btn-${r.order}`,
7327
- "aria-label": (me = g(l)) == null ? void 0 : me.decrementValue(V.type),
7327
+ "aria-label": (me = w(l)) == null ? void 0 : me.decrementValue(V.type),
7328
7328
  tabindex: "0",
7329
- onKeydown: (Pe) => g(ct)(Pe, () => b(V.type, !1, { keyboard: !0 }), !0),
7330
- onClick: (Pe) => g(i).timeArrowHoldThreshold ? void 0 : b(V.type, !1),
7331
- onMousedown: (Pe) => g(i).timeArrowHoldThreshold ? b(V.type, !1) : void 0,
7329
+ onKeydown: (Pe) => w(ct)(Pe, () => b(V.type, !1, { keyboard: !0 }), !0),
7330
+ onClick: (Pe) => w(i).timeArrowHoldThreshold ? void 0 : b(V.type, !1),
7331
+ onMousedown: (Pe) => w(i).timeArrowHoldThreshold ? b(V.type, !1) : void 0,
7332
7332
  onMouseup: G
7333
7333
  }, [
7334
- r.timePickerInline ? (w(), x(be, { key: 1 }, [
7335
- p.$slots["tp-inline-arrow-down"] ? ue(p.$slots, "tp-inline-arrow-down", { key: 0 }) : (w(), x(be, { key: 1 }, [
7334
+ r.timePickerInline ? (g(), x(be, { key: 1 }, [
7335
+ p.$slots["tp-inline-arrow-down"] ? ue(p.$slots, "tp-inline-arrow-down", { key: 0 }) : (g(), x(be, { key: 1 }, [
7336
7336
  Qm,
7337
7337
  Gm
7338
7338
  ], 64))
7339
- ], 64)) : (w(), x(be, { key: 0 }, [
7339
+ ], 64)) : (g(), x(be, { key: 0 }, [
7340
7340
  p.$slots["arrow-down"] ? ue(p.$slots, "arrow-down", { key: 0 }) : U("", !0),
7341
- p.$slots["arrow-down"] ? U("", !0) : (w(), De(g(Lr), { key: 1 }))
7341
+ p.$slots["arrow-down"] ? U("", !0) : (g(), De(w(Lr), { key: 1 }))
7342
7342
  ], 64))
7343
7343
  ], 42, Um)
7344
7344
  ], 64))
7345
7345
  ], 2);
7346
7346
  }), 128)),
7347
- p.is24 ? U("", !0) : (w(), x("div", Xm, [
7347
+ p.is24 ? U("", !0) : (g(), x("div", Xm, [
7348
7348
  p.$slots["am-pm-button"] ? ue(p.$slots, "am-pm-button", {
7349
7349
  key: 0,
7350
7350
  toggle: _e,
7351
7351
  value: _.value
7352
7352
  }) : U("", !0),
7353
- p.$slots["am-pm-button"] ? U("", !0) : (w(), x("button", {
7353
+ p.$slots["am-pm-button"] ? U("", !0) : (g(), x("button", {
7354
7354
  key: 1,
7355
7355
  ref_key: "amPmButton",
7356
7356
  ref: B,
7357
7357
  type: "button",
7358
7358
  class: "dp__pm_am_button",
7359
7359
  role: "button",
7360
- "aria-label": (ne = g(l)) == null ? void 0 : ne.amPmButton,
7360
+ "aria-label": (ne = w(l)) == null ? void 0 : ne.amPmButton,
7361
7361
  tabindex: "0",
7362
7362
  onClick: _e,
7363
- onKeydown: X[0] || (X[0] = (V) => g(ct)(V, () => _e(), !0))
7363
+ onKeydown: X[0] || (X[0] = (V) => w(ct)(V, () => _e(), !0))
7364
7364
  }, ke(_.value), 41, Zm))
7365
7365
  ])),
7366
- (w(!0), x(be, null, Ce(N.value, (V, Me) => (w(), De(ha, {
7366
+ (g(!0), x(be, null, Ce(N.value, (V, Me) => (g(), De(ha, {
7367
7367
  key: Me,
7368
- name: g(d)(y[V.type]),
7369
- css: g(h)
7368
+ name: w(d)(y[V.type]),
7369
+ css: w(h)
7370
7370
  }, {
7371
7371
  default: pe(() => {
7372
7372
  var S, ee;
7373
7373
  return [
7374
- y[V.type] ? (w(), De(tn, {
7374
+ y[V.type] ? (g(), De(tn, {
7375
7375
  key: 0,
7376
7376
  items: Q(V.type),
7377
- "is-last": p.autoApply && !g(i).keepActionRow,
7377
+ "is-last": p.autoApply && !w(i).keepActionRow,
7378
7378
  "esc-close": p.escClose,
7379
7379
  type: V.type,
7380
7380
  "text-input": p.textInput,
7381
7381
  config: p.config,
7382
7382
  "arrow-navigation": p.arrowNavigation,
7383
7383
  "aria-labels": p.ariaLabels,
7384
- "overlay-label": (ee = (S = g(l)).timeOverlay) == null ? void 0 : ee.call(S, V.type),
7384
+ "overlay-label": (ee = (S = w(l)).timeOverlay) == null ? void 0 : ee.call(S, V.type),
7385
7385
  onSelected: (me) => te(V.type, me),
7386
7386
  onToggle: (me) => f(V.type),
7387
7387
  onResetFlow: X[1] || (X[1] = (me) => p.$emit("reset-flow"))
7388
7388
  }, lt({
7389
7389
  "button-icon": pe(() => [
7390
7390
  p.$slots["clock-icon"] ? ue(p.$slots, "clock-icon", { key: 0 }) : U("", !0),
7391
- p.$slots["clock-icon"] ? U("", !0) : (w(), De(xn(p.timePickerInline ? g(Aa) : g(Yr)), { key: 1 }))
7391
+ p.$slots["clock-icon"] ? U("", !0) : (g(), De(xn(p.timePickerInline ? w(Aa) : w(Yr)), { key: 1 }))
7392
7392
  ]),
7393
7393
  _: 2
7394
7394
  }, [
@@ -7488,32 +7488,32 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7488
7488
  };
7489
7489
  return t({ toggleTimePicker: E }), (Q, le) => {
7490
7490
  var we;
7491
- return w(), x("div", Km, [
7492
- !Q.timePicker && !Q.timePickerInline ? bt((w(), x("button", {
7491
+ return g(), x("div", Km, [
7492
+ !Q.timePicker && !Q.timePickerInline ? bt((g(), x("button", {
7493
7493
  key: 0,
7494
7494
  ref_key: "openTimePickerBtn",
7495
7495
  ref: B,
7496
7496
  type: "button",
7497
7497
  class: ge({ ...F.value, "dp--hidden-el": H.value }),
7498
- "aria-label": (we = g(m)) == null ? void 0 : we.openTimePicker,
7498
+ "aria-label": (we = w(m)) == null ? void 0 : we.openTimePicker,
7499
7499
  tabindex: Q.noOverlayFocus ? void 0 : 0,
7500
7500
  "data-test": "open-time-picker-btn",
7501
- onKeydown: le[0] || (le[0] = (M) => g(ct)(M, () => E(!0))),
7501
+ onKeydown: le[0] || (le[0] = (M) => w(ct)(M, () => E(!0))),
7502
7502
  onClick: le[1] || (le[1] = (M) => E(!0))
7503
7503
  }, [
7504
7504
  Q.$slots["clock-icon"] ? ue(Q.$slots, "clock-icon", { key: 0 }) : U("", !0),
7505
- Q.$slots["clock-icon"] ? U("", !0) : (w(), De(g(Yr), { key: 1 }))
7505
+ Q.$slots["clock-icon"] ? U("", !0) : (g(), De(w(Yr), { key: 1 }))
7506
7506
  ], 42, e0)), [
7507
- [Wa, !g(_)(Q.hideNavigation, "time")]
7507
+ [Wa, !w(_)(Q.hideNavigation, "time")]
7508
7508
  ]) : U("", !0),
7509
7509
  Le(ha, {
7510
- name: g(h)(H.value),
7511
- css: g(y) && !Q.timePickerInline
7510
+ name: w(h)(H.value),
7511
+ css: w(y) && !Q.timePickerInline
7512
7512
  }, {
7513
7513
  default: pe(() => {
7514
7514
  var M, D;
7515
7515
  return [
7516
- H.value || Q.timePicker || Q.timePickerInline ? (w(), x("div", {
7516
+ H.value || Q.timePicker || Q.timePickerInline ? (g(), x("div", {
7517
7517
  key: 0,
7518
7518
  ref_key: "overlayRef",
7519
7519
  ref: k,
@@ -7523,8 +7523,8 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7523
7523
  "dp--overlay-absolute": !r.timePicker && !Q.timePickerInline,
7524
7524
  "dp--overlay-relative": r.timePicker
7525
7525
  }),
7526
- style: wt(Q.timePicker ? { height: `${g(c).modeHeight}px` } : void 0),
7527
- "aria-label": (M = g(m)) == null ? void 0 : M.timePicker,
7526
+ style: wt(Q.timePicker ? { height: `${w(c).modeHeight}px` } : void 0),
7527
+ "aria-label": (M = w(m)) == null ? void 0 : M.timePicker,
7528
7528
  tabindex: Q.timePickerInline ? void 0 : 0
7529
7529
  }, [
7530
7530
  v("div", {
@@ -7542,11 +7542,11 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7542
7542
  setMinutes: O,
7543
7543
  setSeconds: N
7544
7544
  }) : U("", !0),
7545
- Q.$slots["time-picker-overlay"] ? U("", !0) : (w(), x("div", {
7545
+ Q.$slots["time-picker-overlay"] ? U("", !0) : (g(), x("div", {
7546
7546
  key: 1,
7547
7547
  class: ge(Q.timePickerInline ? "dp__flex" : "dp__overlay_row dp__flex_row")
7548
7548
  }, [
7549
- (w(!0), x(be, null, Ce(Y.value, (f, A) => bt((w(), De(Jm, tt({
7549
+ (g(!0), x(be, null, Ce(Y.value, (f, A) => bt((g(), De(Jm, tt({
7550
7550
  key: A,
7551
7551
  ref_for: !0
7552
7552
  }, {
@@ -7557,7 +7557,7 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7557
7557
  seconds: f.seconds,
7558
7558
  closeTimePickerBtn: R.value,
7559
7559
  disabledTimesConfig: e.disabledTimesConfig,
7560
- disabled: A === 0 ? g(d).fixedStart : g(d).fixedEnd
7560
+ disabled: A === 0 ? w(d).fixedStart : w(d).fixedEnd
7561
7561
  }, {
7562
7562
  ref_for: !0,
7563
7563
  ref_key: "timeInputRefs",
@@ -7571,7 +7571,7 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7571
7571
  onOverlayOpened: se,
7572
7572
  onAmPmChange: le[2] || (le[2] = (G) => Q.$emit("am-pm-change", G))
7573
7573
  }), lt({ _: 2 }, [
7574
- Ce(g(Z), (G, b) => ({
7574
+ Ce(w(Z), (G, b) => ({
7575
7575
  name: G,
7576
7576
  fn: pe((ie) => [
7577
7577
  ue(Q.$slots, G, tt({ ref_for: !0 }, ie))
@@ -7581,21 +7581,21 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7581
7581
  [Wa, A === 0 ? !0 : ae.value]
7582
7582
  ])), 128))
7583
7583
  ], 2)),
7584
- !Q.timePicker && !Q.timePickerInline ? bt((w(), x("button", {
7584
+ !Q.timePicker && !Q.timePickerInline ? bt((g(), x("button", {
7585
7585
  key: 2,
7586
7586
  ref_key: "closeTimePickerBtn",
7587
7587
  ref: R,
7588
7588
  type: "button",
7589
7589
  class: ge({ ...F.value, "dp--hidden-el": I.value }),
7590
- "aria-label": (D = g(m)) == null ? void 0 : D.closeTimePicker,
7590
+ "aria-label": (D = w(m)) == null ? void 0 : D.closeTimePicker,
7591
7591
  tabindex: "0",
7592
- onKeydown: le[3] || (le[3] = (f) => g(ct)(f, () => E(!1))),
7592
+ onKeydown: le[3] || (le[3] = (f) => w(ct)(f, () => E(!1))),
7593
7593
  onClick: le[4] || (le[4] = (f) => E(!1))
7594
7594
  }, [
7595
7595
  Q.$slots["calendar-icon"] ? ue(Q.$slots, "calendar-icon", { key: 0 }) : U("", !0),
7596
- Q.$slots["calendar-icon"] ? U("", !0) : (w(), De(g(Aa), { key: 1 }))
7596
+ Q.$slots["calendar-icon"] ? U("", !0) : (g(), De(w(Aa), { key: 1 }))
7597
7597
  ], 42, a0)), [
7598
- [Wa, !g(_)(Q.hideNavigation, "time")]
7598
+ [Wa, !w(_)(Q.hideNavigation, "time")]
7599
7599
  ]) : U("", !0)
7600
7600
  ], 2)
7601
7601
  ], 14, t0)) : U("", !0)
@@ -7751,7 +7751,7 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7751
7751
  }), toggleTimePicker: (h, y = !1, _ = "") => {
7752
7752
  var B;
7753
7753
  (B = l.value) == null || B.toggleTimePicker(h, y, _);
7754
- } }), (h, y) => (w(), De(Sn, {
7754
+ } }), (h, y) => (g(), De(Sn, {
7755
7755
  "multi-calendars": 0,
7756
7756
  stretch: ""
7757
7757
  }, {
@@ -7760,21 +7760,21 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7760
7760
  ref_key: "tpRef",
7761
7761
  ref: l
7762
7762
  }, h.$props, {
7763
- hours: g(u).hours,
7764
- minutes: g(u).minutes,
7765
- seconds: g(u).seconds,
7763
+ hours: w(u).hours,
7764
+ minutes: w(u).minutes,
7765
+ seconds: w(u).seconds,
7766
7766
  "internal-model-value": h.internalModelValue,
7767
- "disabled-times-config": g(i),
7768
- "validate-time": g(d),
7769
- "onUpdate:hours": y[0] || (y[0] = (_) => g(c)(_)),
7770
- "onUpdate:minutes": y[1] || (y[1] = (_) => g(c)(_, !1)),
7771
- "onUpdate:seconds": y[2] || (y[2] = (_) => g(c)(_, !1, !0)),
7767
+ "disabled-times-config": w(i),
7768
+ "validate-time": w(d),
7769
+ "onUpdate:hours": y[0] || (y[0] = (_) => w(c)(_)),
7770
+ "onUpdate:minutes": y[1] || (y[1] = (_) => w(c)(_, !1)),
7771
+ "onUpdate:seconds": y[2] || (y[2] = (_) => w(c)(_, !1, !0)),
7772
7772
  onAmPmChange: y[3] || (y[3] = (_) => h.$emit("am-pm-change", _)),
7773
7773
  onResetFlow: y[4] || (y[4] = (_) => h.$emit("reset-flow")),
7774
7774
  onOverlayClosed: y[5] || (y[5] = (_) => h.$emit("overlay-toggle", { open: !1, overlay: _ })),
7775
7775
  onOverlayOpened: y[6] || (y[6] = (_) => h.$emit("overlay-toggle", { open: !0, overlay: _ }))
7776
7776
  }), lt({ _: 2 }, [
7777
- Ce(g(s), (_, B) => ({
7777
+ Ce(w(s), (_, B) => ({
7778
7778
  name: _,
7779
7779
  fn: pe((R) => [
7780
7780
  ue(h.$slots, _, at(ft(R)))
@@ -7888,26 +7888,26 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7888
7888
  handleMonthYearChange: B
7889
7889
  }), (D, f) => {
7890
7890
  var A, G, b, ie, _e, Xe;
7891
- return w(), x("div", o0, [
7892
- D.$slots["month-year"] ? (w(), x("div", s0, [
7893
- ue(D.$slots, "month-year", at(ft({ month: e.month, year: e.year, months: e.months, years: e.years, updateMonthYear: g(T), handleMonthYearChange: g(B), instance: e.instance })))
7894
- ])) : (w(), x(be, { key: 1 }, [
7895
- D.$slots["top-extra"] ? (w(), x("div", l0, [
7891
+ return g(), x("div", o0, [
7892
+ D.$slots["month-year"] ? (g(), x("div", s0, [
7893
+ ue(D.$slots, "month-year", at(ft({ month: e.month, year: e.year, months: e.months, years: e.years, updateMonthYear: w(T), handleMonthYearChange: w(B), instance: e.instance })))
7894
+ ])) : (g(), x(be, { key: 1 }, [
7895
+ D.$slots["top-extra"] ? (g(), x("div", l0, [
7896
7896
  ue(D.$slots, "top-extra", { value: D.internalModelValue })
7897
7897
  ])) : U("", !0),
7898
7898
  v("div", i0, [
7899
- g(k)(g(l), e.instance) && !D.vertical ? (w(), De(Va, {
7899
+ w(k)(w(l), e.instance) && !D.vertical ? (g(), De(Va, {
7900
7900
  key: 0,
7901
- "aria-label": (A = g(s)) == null ? void 0 : A.prevMonth,
7902
- disabled: g(R)(!1),
7903
- class: ge((G = g(d)) == null ? void 0 : G.navBtnPrev),
7901
+ "aria-label": (A = w(s)) == null ? void 0 : A.prevMonth,
7902
+ disabled: w(R)(!1),
7903
+ class: ge((G = w(d)) == null ? void 0 : G.navBtnPrev),
7904
7904
  "el-name": "action-prev",
7905
- onActivate: f[0] || (f[0] = (L) => g(B)(!1, !0)),
7905
+ onActivate: f[0] || (f[0] = (L) => w(B)(!1, !0)),
7906
7906
  onSetRef: f[1] || (f[1] = (L) => le(L, 0))
7907
7907
  }, {
7908
7908
  default: pe(() => [
7909
7909
  D.$slots["arrow-left"] ? ue(D.$slots, "arrow-left", { key: 0 }) : U("", !0),
7910
- D.$slots["arrow-left"] ? U("", !0) : (w(), De(g(Nr), { key: 1 }))
7910
+ D.$slots["arrow-left"] ? U("", !0) : (g(), De(w(Nr), { key: 1 }))
7911
7911
  ]),
7912
7912
  _: 3
7913
7913
  }, 8, ["aria-label", "disabled", "class"])) : U("", !0),
@@ -7916,7 +7916,7 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7916
7916
  dp__year_disable_select: D.disableYearSelect
7917
7917
  }])
7918
7918
  }, [
7919
- (w(!0), x(be, null, Ce(M.value, (L, te) => (w(), x(be, {
7919
+ (g(!0), x(be, null, Ce(M.value, (L, te) => (g(), x(be, {
7920
7920
  key: L.type
7921
7921
  }, [
7922
7922
  v("button", {
@@ -7928,28 +7928,28 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7928
7928
  "aria-label": `${L.text}-${L.ariaLabel}`,
7929
7929
  "data-test": `${L.type}-toggle-overlay-${e.instance}`,
7930
7930
  onClick: L.toggle,
7931
- onKeydown: (p) => g(ct)(p, () => L.toggle(), !0)
7931
+ onKeydown: (p) => w(ct)(p, () => L.toggle(), !0)
7932
7932
  }, [
7933
7933
  D.$slots[L.type] ? ue(D.$slots, L.type, {
7934
7934
  key: 0,
7935
7935
  text: L.text,
7936
7936
  value: r[L.type]
7937
7937
  }) : U("", !0),
7938
- D.$slots[L.type] ? U("", !0) : (w(), x(be, { key: 1 }, [
7938
+ D.$slots[L.type] ? U("", !0) : (g(), x(be, { key: 1 }, [
7939
7939
  Je(ke(L.text), 1)
7940
7940
  ], 64))
7941
7941
  ], 42, u0),
7942
7942
  Le(ha, {
7943
- name: g(h)(L.showSelectionGrid),
7944
- css: g(y)
7943
+ name: w(h)(L.showSelectionGrid),
7944
+ css: w(y)
7945
7945
  }, {
7946
7946
  default: pe(() => [
7947
- L.showSelectionGrid ? (w(), De(tn, {
7947
+ L.showSelectionGrid ? (g(), De(tn, {
7948
7948
  key: 0,
7949
7949
  items: L.items,
7950
7950
  "arrow-navigation": D.arrowNavigation,
7951
7951
  "hide-navigation": D.hideNavigation,
7952
- "is-last": D.autoApply && !g(m).keepActionRow,
7952
+ "is-last": D.autoApply && !w(m).keepActionRow,
7953
7953
  "skip-button-ref": !1,
7954
7954
  config: D.config,
7955
7955
  type: L.type,
@@ -7964,7 +7964,7 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
7964
7964
  }, lt({
7965
7965
  "button-icon": pe(() => [
7966
7966
  D.$slots["calendar-icon"] ? ue(D.$slots, "calendar-icon", { key: 0 }) : U("", !0),
7967
- D.$slots["calendar-icon"] ? U("", !0) : (w(), De(g(Aa), { key: 1 }))
7967
+ D.$slots["calendar-icon"] ? U("", !0) : (g(), De(w(Aa), { key: 1 }))
7968
7968
  ]),
7969
7969
  _: 2
7970
7970
  }, [
@@ -8000,33 +8000,33 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
8000
8000
  }, 1032, ["name", "css"])
8001
8001
  ], 64))), 128))
8002
8002
  ], 2),
8003
- g(k)(g(l), e.instance) && D.vertical ? (w(), De(Va, {
8003
+ w(k)(w(l), e.instance) && D.vertical ? (g(), De(Va, {
8004
8004
  key: 1,
8005
- "aria-label": (b = g(s)) == null ? void 0 : b.prevMonth,
8005
+ "aria-label": (b = w(s)) == null ? void 0 : b.prevMonth,
8006
8006
  "el-name": "action-prev",
8007
- disabled: g(R)(!1),
8008
- class: ge((ie = g(d)) == null ? void 0 : ie.navBtnPrev),
8009
- onActivate: f[2] || (f[2] = (L) => g(B)(!1, !0))
8007
+ disabled: w(R)(!1),
8008
+ class: ge((ie = w(d)) == null ? void 0 : ie.navBtnPrev),
8009
+ onActivate: f[2] || (f[2] = (L) => w(B)(!1, !0))
8010
8010
  }, {
8011
8011
  default: pe(() => [
8012
8012
  D.$slots["arrow-up"] ? ue(D.$slots, "arrow-up", { key: 0 }) : U("", !0),
8013
- D.$slots["arrow-up"] ? U("", !0) : (w(), De(g(Fr), { key: 1 }))
8013
+ D.$slots["arrow-up"] ? U("", !0) : (g(), De(w(Fr), { key: 1 }))
8014
8014
  ]),
8015
8015
  _: 3
8016
8016
  }, 8, ["aria-label", "disabled", "class"])) : U("", !0),
8017
- g(I)(g(l), e.instance) ? (w(), De(Va, {
8017
+ w(I)(w(l), e.instance) ? (g(), De(Va, {
8018
8018
  key: 2,
8019
8019
  ref: "rightIcon",
8020
8020
  "el-name": "action-next",
8021
- disabled: g(R)(!0),
8022
- "aria-label": (_e = g(s)) == null ? void 0 : _e.nextMonth,
8023
- class: ge((Xe = g(d)) == null ? void 0 : Xe.navBtnNext),
8024
- onActivate: f[3] || (f[3] = (L) => g(B)(!0, !0)),
8021
+ disabled: w(R)(!0),
8022
+ "aria-label": (_e = w(s)) == null ? void 0 : _e.nextMonth,
8023
+ class: ge((Xe = w(d)) == null ? void 0 : Xe.navBtnNext),
8024
+ onActivate: f[3] || (f[3] = (L) => w(B)(!0, !0)),
8025
8025
  onSetRef: f[4] || (f[4] = (L) => le(L, D.disableYearSelect ? 2 : 3))
8026
8026
  }, {
8027
8027
  default: pe(() => [
8028
8028
  D.$slots[D.vertical ? "arrow-down" : "arrow-right"] ? ue(D.$slots, D.vertical ? "arrow-down" : "arrow-right", { key: 0 }) : U("", !0),
8029
- D.$slots[D.vertical ? "arrow-down" : "arrow-right"] ? U("", !0) : (w(), De(xn(D.vertical ? g(Lr) : g(Ir)), { key: 1 }))
8029
+ D.$slots[D.vertical ? "arrow-down" : "arrow-right"] ? U("", !0) : (g(), De(xn(D.vertical ? w(Lr) : w(Ir)), { key: 1 }))
8030
8030
  ]),
8031
8031
  _: 3
8032
8032
  }, 8, ["disabled", "aria-label", "class"])) : U("", !0)
@@ -8152,7 +8152,7 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
8152
8152
  }, Xe = (L) => {
8153
8153
  c.value.enabled && c.value.dragSelect ? (H.value = !0, n("select-date", L)) : c.value.enabled && n("select-date", L);
8154
8154
  };
8155
- return t({ triggerTransition: F }), (L, te) => (w(), x("div", {
8155
+ return t({ triggerTransition: F }), (L, te) => (g(), x("div", {
8156
8156
  class: ge(O.value)
8157
8157
  }, [
8158
8158
  v("div", {
@@ -8162,22 +8162,22 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
8162
8162
  role: "grid"
8163
8163
  }, [
8164
8164
  v("div", d0, [
8165
- L.weekNumbers ? (w(), x("div", f0, ke(L.weekNumName), 1)) : U("", !0),
8166
- (w(!0), x(be, null, Ce(Y.value, (p, X) => {
8165
+ L.weekNumbers ? (g(), x("div", f0, ke(L.weekNumName), 1)) : U("", !0),
8166
+ (g(!0), x(be, null, Ce(Y.value, (p, X) => {
8167
8167
  var ne, V;
8168
- return w(), x("div", {
8168
+ return g(), x("div", {
8169
8169
  key: X,
8170
8170
  class: "dp__calendar_header_item",
8171
8171
  role: "gridcell",
8172
8172
  "data-test": "calendar-header",
8173
- "aria-label": (V = (ne = g(u)) == null ? void 0 : ne.weekDay) == null ? void 0 : V.call(ne, X)
8173
+ "aria-label": (V = (ne = w(u)) == null ? void 0 : ne.weekDay) == null ? void 0 : V.call(ne, X)
8174
8174
  }, [
8175
8175
  L.$slots["calendar-header"] ? ue(L.$slots, "calendar-header", {
8176
8176
  key: 0,
8177
8177
  day: p,
8178
8178
  index: X
8179
8179
  }) : U("", !0),
8180
- L.$slots["calendar-header"] ? U("", !0) : (w(), x(be, { key: 1 }, [
8180
+ L.$slots["calendar-header"] ? U("", !0) : (g(), x(be, { key: 1 }, [
8181
8181
  Je(ke(p), 1)
8182
8182
  ], 64))
8183
8183
  ], 8, m0);
@@ -8189,24 +8189,24 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
8189
8189
  css: !!L.transitions
8190
8190
  }, {
8191
8191
  default: pe(() => [
8192
- R.value ? (w(), x("div", {
8192
+ R.value ? (g(), x("div", {
8193
8193
  key: 0,
8194
8194
  class: "dp__calendar",
8195
8195
  role: "rowgroup",
8196
8196
  onMouseleave: te[1] || (te[1] = (p) => H.value = !1)
8197
8197
  }, [
8198
- (w(!0), x(be, null, Ce($.value, (p, X) => (w(), x("div", {
8198
+ (g(!0), x(be, null, Ce($.value, (p, X) => (g(), x("div", {
8199
8199
  key: X,
8200
8200
  class: "dp__calendar_row",
8201
8201
  role: "row"
8202
8202
  }, [
8203
- L.weekNumbers ? (w(), x("div", p0, [
8203
+ L.weekNumbers ? (g(), x("div", p0, [
8204
8204
  v("div", v0, ke(b(p.days)), 1)
8205
8205
  ])) : U("", !0),
8206
- (w(!0), x(be, null, Ce(p.days, (ne, V) => {
8206
+ (g(!0), x(be, null, Ce(p.days, (ne, V) => {
8207
8207
  var Me, S, ee;
8208
- return w(), x("div", {
8209
- id: g(el)(ne.value),
8208
+ return g(), x("div", {
8209
+ id: w(el)(ne.value),
8210
8210
  ref_for: !0,
8211
8211
  ref: (me) => f(me, X, V),
8212
8212
  key: V + X,
@@ -8214,12 +8214,12 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
8214
8214
  class: "dp__calendar_item",
8215
8215
  "aria-pressed": (ne.classData.dp__active_date || ne.classData.dp__range_start || ne.classData.dp__range_start) ?? void 0,
8216
8216
  "aria-disabled": ne.classData.dp__cell_disabled || void 0,
8217
- "aria-label": (S = (Me = g(u)) == null ? void 0 : Me.day) == null ? void 0 : S.call(Me, ne),
8217
+ "aria-label": (S = (Me = w(u)) == null ? void 0 : Me.day) == null ? void 0 : S.call(Me, ne),
8218
8218
  tabindex: "0",
8219
8219
  "data-test": ne.value,
8220
8220
  onClick: ka((me) => ie(me, ne), ["prevent"]),
8221
8221
  onTouchend: (me) => ie(me, ne, !1),
8222
- onKeydown: (me) => g(ct)(me, () => L.$emit("select-date", ne)),
8222
+ onKeydown: (me) => w(ct)(me, () => L.$emit("select-date", ne)),
8223
8223
  onMouseenter: (me) => se(ne, X, V),
8224
8224
  onMouseleave: (me) => Q(ne),
8225
8225
  onMousedown: (me) => Xe(ne),
@@ -8233,22 +8233,22 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
8233
8233
  day: +ne.text,
8234
8234
  date: ne.value
8235
8235
  }) : U("", !0),
8236
- L.$slots.day ? U("", !0) : (w(), x(be, { key: 1 }, [
8236
+ L.$slots.day ? U("", !0) : (g(), x(be, { key: 1 }, [
8237
8237
  Je(ke(ne.text), 1)
8238
8238
  ], 64)),
8239
- ne.marker && N.value(ne) ? (w(), x(be, { key: 2 }, [
8239
+ ne.marker && N.value(ne) ? (g(), x(be, { key: 2 }, [
8240
8240
  L.$slots.marker ? ue(L.$slots, "marker", {
8241
8241
  key: 0,
8242
8242
  marker: ne.marker,
8243
8243
  day: +ne.text,
8244
8244
  date: ne.value
8245
- }) : (w(), x("div", {
8245
+ }) : (g(), x("div", {
8246
8246
  key: 1,
8247
8247
  class: ge(ce.value(ne.marker)),
8248
8248
  style: wt(ne.marker.color ? { backgroundColor: ne.marker.color } : {})
8249
8249
  }, null, 6))
8250
8250
  ], 64)) : U("", !0),
8251
- he.value(ne.value) ? (w(), x("div", {
8251
+ he.value(ne.value) ? (g(), x("div", {
8252
8252
  key: 3,
8253
8253
  ref_for: !0,
8254
8254
  ref_key: "activeTooltip",
@@ -8256,12 +8256,12 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
8256
8256
  class: "dp__marker_tooltip",
8257
8257
  style: wt(y.value)
8258
8258
  }, [
8259
- (ee = ne.marker) != null && ee.tooltip ? (w(), x("div", {
8259
+ (ee = ne.marker) != null && ee.tooltip ? (g(), x("div", {
8260
8260
  key: 0,
8261
8261
  class: "dp__tooltip_content",
8262
8262
  onClick: _e
8263
8263
  }, [
8264
- (w(!0), x(be, null, Ce(ne.marker.tooltip, (me, Pe) => (w(), x("div", {
8264
+ (g(!0), x(be, null, Ce(ne.marker.tooltip, (me, Pe) => (g(), x("div", {
8265
8265
  key: Pe,
8266
8266
  class: "dp__tooltip_text"
8267
8267
  }, [
@@ -8270,7 +8270,7 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
8270
8270
  tooltip: me,
8271
8271
  day: ne.value
8272
8272
  }) : U("", !0),
8273
- L.$slots["marker-tooltip"] ? U("", !0) : (w(), x(be, { key: 1 }, [
8273
+ L.$slots["marker-tooltip"] ? U("", !0) : (g(), x(be, { key: 1 }, [
8274
8274
  v("div", {
8275
8275
  class: "dp__tooltip_mark",
8276
8276
  style: wt(me.color ? { backgroundColor: me.color } : {})
@@ -8414,8 +8414,8 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
8414
8414
  const zt = C[0].days[0], Wn = S(Tt(zt.value, -7), $e(oe));
8415
8415
  C.unshift({ days: Wn });
8416
8416
  } else {
8417
- const zt = C[C.length - 1], Wn = zt.days[zt.days.length - 1], bl = S(Tt(Wn.value, 1), $e(oe));
8418
- C.push({ days: bl });
8417
+ const zt = C[C.length - 1], Wn = zt.days[zt.days.length - 1], _l = S(Tt(Wn.value, 1), $e(oe));
8418
+ C.push({ days: _l });
8419
8419
  }
8420
8420
  }
8421
8421
  return C;
@@ -8670,30 +8670,30 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
8670
8670
  changeMonth: ie,
8671
8671
  changeYear: _e,
8672
8672
  selectWeekDate: b
8673
- }), (te, p) => (w(), x(be, null, [
8673
+ }), (te, p) => (g(), x(be, null, [
8674
8674
  Le(Sn, {
8675
- "multi-calendars": g(ce).count,
8675
+ "multi-calendars": w(ce).count,
8676
8676
  collapse: te.collapse
8677
8677
  }, {
8678
8678
  default: pe(({ instance: X, index: ne }) => [
8679
- te.disableMonthYearSelect ? U("", !0) : (w(), De(c0, tt({
8679
+ te.disableMonthYearSelect ? U("", !0) : (g(), De(c0, tt({
8680
8680
  key: 0,
8681
8681
  ref: (V) => {
8682
8682
  V && (he.value[ne] = V);
8683
8683
  },
8684
- months: g(Ws)(te.formatLocale, te.locale, te.monthNameFormat),
8685
- years: g(Hr)(te.yearRange, te.locale, te.reverseYears),
8686
- month: g(s)(X),
8687
- year: g(l)(X),
8684
+ months: w(Ws)(te.formatLocale, te.locale, te.monthNameFormat),
8685
+ years: w(Hr)(te.yearRange, te.locale, te.reverseYears),
8686
+ month: w(s)(X),
8687
+ year: w(l)(X),
8688
8688
  instance: X
8689
8689
  }, te.$props, {
8690
- onMount: p[0] || (p[0] = (V) => Q(g(ua).header)),
8690
+ onMount: p[0] || (p[0] = (V) => Q(w(ua).header)),
8691
8691
  onResetFlow: p[1] || (p[1] = (V) => te.$emit("reset-flow")),
8692
- onUpdateMonthYear: (V) => g(k)(X, V),
8692
+ onUpdateMonthYear: (V) => w(k)(X, V),
8693
8693
  onOverlayClosed: L,
8694
8694
  onOverlayOpened: p[2] || (p[2] = (V) => te.$emit("overlay-toggle", { open: !0, overlay: V }))
8695
8695
  }), lt({ _: 2 }, [
8696
- Ce(g(j), (V, Me) => ({
8696
+ Ce(w(j), (V, Me) => ({
8697
8697
  name: V,
8698
8698
  fn: pe((S) => [
8699
8699
  ue(te.$slots, V, at(ft(S)))
@@ -8705,21 +8705,21 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
8705
8705
  V && (O.value[ne] = V);
8706
8706
  },
8707
8707
  "mapped-dates": le.value(X),
8708
- month: g(s)(X),
8709
- year: g(l)(X),
8708
+ month: w(s)(X),
8709
+ year: w(l)(X),
8710
8710
  instance: X
8711
8711
  }, te.$props, {
8712
- onSelectDate: (V) => g(T)(V, X !== 1),
8712
+ onSelectDate: (V) => w(T)(V, X !== 1),
8713
8713
  onHandleSpace: (V) => D(V, X !== 1),
8714
- onSetHoverDate: p[3] || (p[3] = (V) => g(E)(V)),
8715
- onHandleScroll: (V) => g(B)(V, X),
8716
- onHandleSwipe: (V) => g(R)(V, X),
8717
- onMount: p[4] || (p[4] = (V) => Q(g(ua).calendar)),
8714
+ onSetHoverDate: p[3] || (p[3] = (V) => w(E)(V)),
8715
+ onHandleScroll: (V) => w(B)(V, X),
8716
+ onHandleSwipe: (V) => w(R)(V, X),
8717
+ onMount: p[4] || (p[4] = (V) => Q(w(ua).calendar)),
8718
8718
  onResetFlow: p[5] || (p[5] = (V) => te.$emit("reset-flow")),
8719
8719
  onTooltipOpen: p[6] || (p[6] = (V) => te.$emit("tooltip-open", V)),
8720
8720
  onTooltipClose: p[7] || (p[7] = (V) => te.$emit("tooltip-close", V))
8721
8721
  }), lt({ _: 2 }, [
8722
- Ce(g(P), (V, Me) => ({
8722
+ Ce(w(P), (V, Me) => ({
8723
8723
  name: V,
8724
8724
  fn: pe((S) => [
8725
8725
  ue(te.$slots, V, at(ft({ ...S })))
@@ -8729,28 +8729,28 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
8729
8729
  ]),
8730
8730
  _: 3
8731
8731
  }, 8, ["multi-calendars", "collapse"]),
8732
- te.enableTimePicker ? (w(), x("div", b0, [
8733
- te.$slots["time-picker"] ? ue(te.$slots, "time-picker", at(tt({ key: 0 }, { time: g(m), updateTime: g(H) }))) : (w(), De(sl, tt({
8732
+ te.enableTimePicker ? (g(), x("div", b0, [
8733
+ te.$slots["time-picker"] ? ue(te.$slots, "time-picker", at(tt({ key: 0 }, { time: w(m), updateTime: w(H) }))) : (g(), De(sl, tt({
8734
8734
  key: 1,
8735
8735
  ref_key: "timePickerRef",
8736
8736
  ref: N
8737
8737
  }, te.$props, {
8738
- hours: g(m).hours,
8739
- minutes: g(m).minutes,
8740
- seconds: g(m).seconds,
8738
+ hours: w(m).hours,
8739
+ minutes: w(m).minutes,
8740
+ seconds: w(m).seconds,
8741
8741
  "internal-model-value": te.internalModelValue,
8742
- "disabled-times-config": g(i),
8743
- "validate-time": g(d),
8744
- onMount: p[8] || (p[8] = (X) => Q(g(ua).timePicker)),
8745
- "onUpdate:hours": p[9] || (p[9] = (X) => g(H)(X)),
8746
- "onUpdate:minutes": p[10] || (p[10] = (X) => g(H)(X, !1)),
8747
- "onUpdate:seconds": p[11] || (p[11] = (X) => g(H)(X, !1, !0)),
8742
+ "disabled-times-config": w(i),
8743
+ "validate-time": w(d),
8744
+ onMount: p[8] || (p[8] = (X) => Q(w(ua).timePicker)),
8745
+ "onUpdate:hours": p[9] || (p[9] = (X) => w(H)(X)),
8746
+ "onUpdate:minutes": p[10] || (p[10] = (X) => w(H)(X, !1)),
8747
+ "onUpdate:seconds": p[11] || (p[11] = (X) => w(H)(X, !1, !0)),
8748
8748
  onResetFlow: p[12] || (p[12] = (X) => te.$emit("reset-flow")),
8749
8749
  onOverlayClosed: p[13] || (p[13] = (X) => Xe(X, !1)),
8750
8750
  onOverlayOpened: p[14] || (p[14] = (X) => Xe(X, !0)),
8751
8751
  onAmPmChange: p[15] || (p[15] = (X) => te.$emit("am-pm-change", X))
8752
8752
  }), lt({ _: 2 }, [
8753
- Ce(g(se), (X, ne) => ({
8753
+ Ce(w(se), (X, ne) => ({
8754
8754
  name: X,
8755
8755
  fn: pe((V) => [
8756
8756
  ue(te.$slots, X, at(ft(V)))
@@ -8874,15 +8874,15 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
8874
8874
  selectQuarter: B,
8875
8875
  handleYearSelect: T,
8876
8876
  handleYear: k
8877
- }) }), (I, ae) => (w(), De(Sn, {
8878
- "multi-calendars": g(l).count,
8877
+ }) }), (I, ae) => (g(), De(Sn, {
8878
+ "multi-calendars": w(l).count,
8879
8879
  collapse: I.collapse,
8880
8880
  stretch: ""
8881
8881
  }, {
8882
8882
  default: pe(({ instance: H }) => [
8883
8883
  v("div", {
8884
8884
  class: "dp-quarter-picker-wrap",
8885
- style: wt({ minHeight: `${g(u).modeHeight}px` })
8885
+ style: wt({ minHeight: `${w(u).modeHeight}px` })
8886
8886
  }, [
8887
8887
  I.$slots["top-extra"] ? ue(I.$slots, "top-extra", {
8888
8888
  key: 0,
@@ -8890,16 +8890,16 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
8890
8890
  }) : U("", !0),
8891
8891
  v("div", null, [
8892
8892
  Le(al, tt(I.$props, {
8893
- items: g(m)(H),
8893
+ items: w(m)(H),
8894
8894
  instance: H,
8895
- "show-year-picker": g(y)[H],
8896
- year: g(i)(H),
8897
- "is-disabled": ($) => g(c)(H, $),
8898
- onHandleYear: ($) => g(k)(H, $),
8899
- onYearSelect: ($) => g(T)($, H),
8900
- onToggleYearPicker: ($) => g(R)(H, $ == null ? void 0 : $.flow, $ == null ? void 0 : $.show)
8895
+ "show-year-picker": w(y)[H],
8896
+ year: w(i)(H),
8897
+ "is-disabled": ($) => w(c)(H, $),
8898
+ onHandleYear: ($) => w(k)(H, $),
8899
+ onYearSelect: ($) => w(T)($, H),
8900
+ onToggleYearPicker: ($) => w(R)(H, $ == null ? void 0 : $.flow, $ == null ? void 0 : $.show)
8901
8901
  }), lt({ _: 2 }, [
8902
- Ce(g(s), ($, Y) => ({
8902
+ Ce(w(s), ($, Y) => ({
8903
8903
  name: $,
8904
8904
  fn: pe((E) => [
8905
8905
  ue(I.$slots, $, at(ft(E)))
@@ -8908,7 +8908,7 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
8908
8908
  ]), 1040, ["items", "instance", "show-year-picker", "year", "is-disabled", "onHandleYear", "onYearSelect", "onToggleYearPicker"])
8909
8909
  ]),
8910
8910
  v("div", x0, [
8911
- (w(!0), x(be, null, Ce(g(d)(H), ($, Y) => (w(), x("div", { key: Y }, [
8911
+ (g(!0), x(be, null, Ce(w(d)(H), ($, Y) => (g(), x("div", { key: Y }, [
8912
8912
  v("button", {
8913
8913
  type: "button",
8914
8914
  class: ge(["dp--qr-btn", {
@@ -8919,14 +8919,14 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
8919
8919
  }]),
8920
8920
  "data-test": $.value,
8921
8921
  disabled: $.disabled,
8922
- onClick: (E) => g(B)($.value, H, $.disabled),
8923
- onMouseover: (E) => g(_)($.value)
8922
+ onClick: (E) => w(B)($.value, H, $.disabled),
8923
+ onMouseover: (E) => w(_)($.value)
8924
8924
  }, [
8925
8925
  I.$slots.quarter ? ue(I.$slots, "quarter", {
8926
8926
  key: 0,
8927
8927
  value: $.value,
8928
8928
  text: $.text
8929
- }) : (w(), x(be, { key: 1 }, [
8929
+ }) : (g(), x(be, { key: 1 }, [
8930
8930
  Je(ke($.text), 1)
8931
8931
  ], 64))
8932
8932
  ], 42, M0)
@@ -9107,12 +9107,12 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
9107
9107
  handleFlow: he
9108
9108
  }), (S, ee) => {
9109
9109
  var me, Pe, yt;
9110
- return w(), x("div", {
9110
+ return g(), x("div", {
9111
9111
  id: S.uid ? `dp-menu-${S.uid}` : void 0,
9112
9112
  ref_key: "dpMenuRef",
9113
9113
  ref: o,
9114
- tabindex: g(d).enabled ? void 0 : "0",
9115
- role: g(d).enabled ? void 0 : "dialog",
9114
+ tabindex: w(d).enabled ? void 0 : "0",
9115
+ role: w(d).enabled ? void 0 : "dialog",
9116
9116
  "aria-label": (me = S.ariaLabels) == null ? void 0 : me.menu,
9117
9117
  class: ge(D.value),
9118
9118
  style: wt({ "--dp-arrow-left": N.value }),
@@ -9120,16 +9120,16 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
9120
9120
  onClick: f,
9121
9121
  onKeydown: Me
9122
9122
  }, [
9123
- (S.disabled || S.readonly) && g(d).enabled || S.loading ? (w(), x("div", {
9123
+ (S.disabled || S.readonly) && w(d).enabled || S.loading ? (g(), x("div", {
9124
9124
  key: 0,
9125
9125
  class: ge(M.value)
9126
9126
  }, [
9127
- S.loading ? (w(), x("div", P0, O0)) : U("", !0)
9127
+ S.loading ? (g(), x("div", P0, O0)) : U("", !0)
9128
9128
  ], 2)) : U("", !0),
9129
- S.$slots["menu-header"] ? (w(), x("div", C0, [
9129
+ S.$slots["menu-header"] ? (g(), x("div", C0, [
9130
9130
  ue(S.$slots, "menu-header")
9131
9131
  ])) : U("", !0),
9132
- !g(d).enabled && !S.teleportCenter ? (w(), x("div", {
9132
+ !w(d).enabled && !S.teleportCenter ? (g(), x("div", {
9133
9133
  key: 2,
9134
9134
  class: ge(we.value)
9135
9135
  }, null, 2)) : U("", !0),
@@ -9142,27 +9142,27 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
9142
9142
  }),
9143
9143
  style: wt({ "--dp-menu-width": `${B.value}px` })
9144
9144
  }, [
9145
- S.$slots["left-sidebar"] ? (w(), x("div", S0, [
9145
+ S.$slots["left-sidebar"] ? (g(), x("div", S0, [
9146
9146
  ue(S.$slots, "left-sidebar", at(ft(j.value)))
9147
9147
  ])) : U("", !0),
9148
- S.presetDates.length ? (w(), x("div", {
9148
+ S.presetDates.length ? (g(), x("div", {
9149
9149
  key: 1,
9150
9150
  class: ge({ "dp--preset-dates-collapsed": e.collapse, "dp--preset-dates": !0 })
9151
9151
  }, [
9152
- (w(!0), x(be, null, Ce(S.presetDates, (ye, Vt) => (w(), x(be, { key: Vt }, [
9152
+ (g(!0), x(be, null, Ce(S.presetDates, (ye, Vt) => (g(), x(be, { key: Vt }, [
9153
9153
  ye.slot ? ue(S.$slots, ye.slot, {
9154
9154
  key: 0,
9155
9155
  presetDate: p,
9156
9156
  label: ye.label,
9157
9157
  value: ye.value
9158
- }) : (w(), x("button", {
9158
+ }) : (g(), x("button", {
9159
9159
  key: 1,
9160
9160
  type: "button",
9161
9161
  style: wt(ye.style || {}),
9162
9162
  class: ge(["dp__btn dp--preset-range", { "dp--preset-range-collapsed": e.collapse }]),
9163
9163
  "data-test": ye.testId ?? void 0,
9164
9164
  onClick: ka((Nt) => p(ye.value, ye.noTz), ["prevent"]),
9165
- onKeydown: (Nt) => g(ct)(Nt, () => p(ye.value, ye.noTz), !0)
9165
+ onKeydown: (Nt) => w(ct)(Nt, () => p(ye.value, ye.noTz), !0)
9166
9166
  }, ke(ye.label), 47, A0))
9167
9167
  ], 64))), 128))
9168
9168
  ], 2)) : U("", !0),
@@ -9172,14 +9172,14 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
9172
9172
  class: "dp__instance_calendar",
9173
9173
  role: "document"
9174
9174
  }, [
9175
- (w(), De(xn(O.value), tt({
9175
+ (g(), De(xn(O.value), tt({
9176
9176
  ref_key: "dynCmpRef",
9177
9177
  ref: k
9178
9178
  }, s.value, {
9179
- "flow-step": g(E),
9180
- onMount: g(Z),
9181
- onUpdateFlowStep: g(F),
9182
- onResetFlow: g(ce),
9179
+ "flow-step": w(E),
9180
+ onMount: w(Z),
9181
+ onUpdateFlowStep: w(F),
9182
+ onResetFlow: w(ce),
9183
9183
  onFocusMenu: P,
9184
9184
  onSelectDate: ee[0] || (ee[0] = (ye) => S.$emit("select-date")),
9185
9185
  onDateUpdate: ee[1] || (ee[1] = (ye) => S.$emit("date-update", ye)),
@@ -9208,17 +9208,17 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
9208
9208
  }))
9209
9209
  ]), 1040, ["flow-step", "onMount", "onUpdateFlowStep", "onResetFlow"]))
9210
9210
  ], 512),
9211
- S.$slots["right-sidebar"] ? (w(), x("div", R0, [
9211
+ S.$slots["right-sidebar"] ? (g(), x("div", R0, [
9212
9212
  ue(S.$slots, "right-sidebar", at(ft(j.value)))
9213
9213
  ])) : U("", !0),
9214
- S.$slots["action-extra"] ? (w(), x("div", E0, [
9214
+ S.$slots["action-extra"] ? (g(), x("div", E0, [
9215
9215
  S.$slots["action-extra"] ? ue(S.$slots, "action-extra", {
9216
9216
  key: 0,
9217
9217
  selectCurrentDate: te
9218
9218
  }) : U("", !0)
9219
9219
  ])) : U("", !0)
9220
9220
  ], 6),
9221
- !S.autoApply || g(h).keepActionRow ? (w(), De(Sm, tt({
9221
+ !S.autoApply || w(h).keepActionRow ? (g(), De(Sm, tt({
9222
9222
  key: 3,
9223
9223
  "menu-mount": T.value
9224
9224
  }, s.value, {
@@ -9228,7 +9228,7 @@ const _r = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
9228
9228
  onInvalidSelect: ee[18] || (ee[18] = (ye) => S.$emit("invalid-select")),
9229
9229
  onSelectNow: te
9230
9230
  }), lt({ _: 2 }, [
9231
- Ce(g(Q), (ye, Vt) => ({
9231
+ Ce(w(Q), (ye, Vt) => ({
9232
9232
  name: ye,
9233
9233
  fn: pe((Nt) => [
9234
9234
  ue(S.$slots, ye, at(ft({ ...Nt })))
@@ -9359,7 +9359,7 @@ const N0 = ({
9359
9359
  D.append(we);
9360
9360
  const f = N(M), A = u.value.shadowDom ? Object.keys(l).filter(
9361
9361
  (b) => ["right-sidebar", "left-sidebar", "top-extra", "action-extra"].includes(b)
9362
- ) : Object.keys(l), G = Ml(
9362
+ ) : Object.keys(l), G = Tl(
9363
9363
  P,
9364
9364
  {
9365
9365
  ...j,
@@ -9849,10 +9849,10 @@ const N0 = ({
9849
9849
  setParsedDate: le
9850
9850
  }), (M, D) => {
9851
9851
  var f, A;
9852
- return w(), x("div", { onClick: N }, [
9853
- M.$slots.trigger && !M.$slots["dp-input"] && !g(l).enabled ? ue(M.$slots, "trigger", { key: 0 }) : U("", !0),
9854
- !M.$slots.trigger && (!g(l).enabled || g(l).input) ? (w(), x("div", B0, [
9855
- M.$slots["dp-input"] && !M.$slots.trigger && (!g(l).enabled || g(l).enabled && g(l).input) ? ue(M.$slots, "dp-input", {
9852
+ return g(), x("div", { onClick: N }, [
9853
+ M.$slots.trigger && !M.$slots["dp-input"] && !w(l).enabled ? ue(M.$slots, "trigger", { key: 0 }) : U("", !0),
9854
+ !M.$slots.trigger && (!w(l).enabled || w(l).input) ? (g(), x("div", B0, [
9855
+ M.$slots["dp-input"] && !M.$slots.trigger && (!w(l).enabled || w(l).enabled && w(l).input) ? ue(M.$slots, "dp-input", {
9856
9856
  key: 0,
9857
9857
  value: e.inputValue,
9858
9858
  isMenuOpen: e.isMenuOpen,
@@ -9868,7 +9868,7 @@ const N0 = ({
9868
9868
  closeMenu: () => M.$emit("close"),
9869
9869
  toggleMenu: () => M.$emit("toggle")
9870
9870
  }) : U("", !0),
9871
- M.$slots["dp-input"] ? U("", !0) : (w(), x("input", {
9871
+ M.$slots["dp-input"] ? U("", !0) : (g(), x("input", {
9872
9872
  key: 1,
9873
9873
  id: M.uid ? `dp-input-${M.uid}` : void 0,
9874
9874
  ref_key: "inputRef",
@@ -9876,7 +9876,7 @@ const N0 = ({
9876
9876
  "data-test": "dp-input",
9877
9877
  name: M.name,
9878
9878
  class: ge(ae.value),
9879
- inputmode: g(o).enabled ? "text" : "none",
9879
+ inputmode: w(o).enabled ? "text" : "none",
9880
9880
  placeholder: M.placeholder,
9881
9881
  disabled: M.disabled,
9882
9882
  readonly: M.readonly,
@@ -9895,35 +9895,35 @@ const N0 = ({
9895
9895
  v("div", {
9896
9896
  onClick: D[3] || (D[3] = (G) => n("toggle"))
9897
9897
  }, [
9898
- M.$slots["input-icon"] && !M.hideInputIcon ? (w(), x("span", {
9898
+ M.$slots["input-icon"] && !M.hideInputIcon ? (g(), x("span", {
9899
9899
  key: 0,
9900
9900
  class: "dp__input_icon",
9901
9901
  onClick: D[1] || (D[1] = (G) => n("toggle"))
9902
9902
  }, [
9903
9903
  ue(M.$slots, "input-icon")
9904
9904
  ])) : U("", !0),
9905
- !M.$slots["input-icon"] && !M.hideInputIcon && !M.$slots["dp-input"] ? (w(), De(g(Aa), {
9905
+ !M.$slots["input-icon"] && !M.hideInputIcon && !M.$slots["dp-input"] ? (g(), De(w(Aa), {
9906
9906
  key: 1,
9907
- "aria-label": (f = g(s)) == null ? void 0 : f.calendarIcon,
9907
+ "aria-label": (f = w(s)) == null ? void 0 : f.calendarIcon,
9908
9908
  class: "dp__input_icon dp__input_icons",
9909
9909
  onClick: D[2] || (D[2] = (G) => n("toggle"))
9910
9910
  }, null, 8, ["aria-label"])) : U("", !0)
9911
9911
  ]),
9912
- M.$slots["clear-icon"] && e.inputValue && M.clearable && !M.disabled && !M.readonly ? (w(), x("span", j0, [
9912
+ M.$slots["clear-icon"] && e.inputValue && M.clearable && !M.disabled && !M.readonly ? (g(), x("span", j0, [
9913
9913
  ue(M.$slots, "clear-icon", { clear: j })
9914
9914
  ])) : U("", !0),
9915
- M.clearable && !M.$slots["clear-icon"] && e.inputValue && !M.disabled && !M.readonly ? (w(), x("button", {
9915
+ M.clearable && !M.$slots["clear-icon"] && e.inputValue && !M.disabled && !M.readonly ? (g(), x("button", {
9916
9916
  key: 3,
9917
9917
  ref_key: "clearBtnRef",
9918
9918
  ref: I,
9919
- "aria-label": (A = g(s)) == null ? void 0 : A.clearInput,
9919
+ "aria-label": (A = w(s)) == null ? void 0 : A.clearInput,
9920
9920
  class: "dp--clear-btn",
9921
9921
  type: "button",
9922
9922
  onBlur: D[4] || (D[4] = (G) => T.value = !1),
9923
- onKeydown: D[5] || (D[5] = (G) => g(ct)(G, () => j(G), !0, we)),
9923
+ onKeydown: D[5] || (D[5] = (G) => w(ct)(G, () => j(G), !0, we)),
9924
9924
  onClick: D[6] || (D[6] = ka((G) => j(G), ["prevent"]))
9925
9925
  }, [
9926
- Le(g(js), {
9926
+ Le(w(js), {
9927
9927
  class: "dp__input_icons",
9928
9928
  "data-test": "clear-icon"
9929
9929
  })
@@ -9937,7 +9937,7 @@ const N0 = ({
9937
9937
  if (!e) return sr;
9938
9938
  let r = sr;
9939
9939
  const o = Ge(
9940
- () => g(e),
9940
+ () => w(e),
9941
9941
  (l) => {
9942
9942
  r(), l && (l.addEventListener(t, a, n), r = () => {
9943
9943
  l.removeEventListener(t, a, n), r = sr;
@@ -10133,7 +10133,7 @@ const N0 = ({
10133
10133
  toggleMenu: sn,
10134
10134
  handleFlow: oe,
10135
10135
  dpWrapMenuRef: m
10136
- }), (W, re) => (w(), x("div", {
10136
+ }), (W, re) => (g(), x("div", {
10137
10137
  ref_key: "pickerWrapperRef",
10138
10138
  ref: h,
10139
10139
  class: ge(_e.value),
@@ -10142,14 +10142,14 @@ const N0 = ({
10142
10142
  Le(q0, tt({
10143
10143
  ref_key: "inputRef",
10144
10144
  ref: c,
10145
- "input-value": g(D),
10145
+ "input-value": w(D),
10146
10146
  "onUpdate:inputValue": re[0] || (re[0] = (de) => Gr(D) ? D.value = de : null),
10147
10147
  "is-menu-open": s.value
10148
10148
  }, W.$props, {
10149
10149
  onClear: me,
10150
10150
  onOpen: ee,
10151
10151
  onSetInputDate: Ia,
10152
- onSetEmptyDate: g(G),
10152
+ onSetEmptyDate: w(G),
10153
10153
  onSelectDate: yt,
10154
10154
  onToggle: sn,
10155
10155
  onClose: pt,
@@ -10158,36 +10158,36 @@ const N0 = ({
10158
10158
  onRealBlur: re[1] || (re[1] = (de) => d.value = !1),
10159
10159
  onTextInput: re[2] || (re[2] = (de) => W.$emit("text-input", de))
10160
10160
  }), lt({ _: 2 }, [
10161
- Ce(g(P), (de, it) => ({
10161
+ Ce(w(P), (de, it) => ({
10162
10162
  name: de,
10163
10163
  fn: pe((gt) => [
10164
10164
  ue(W.$slots, de, at(ft(gt)))
10165
10165
  ])
10166
10166
  }))
10167
10167
  ]), 1040, ["input-value", "is-menu-open", "onSetEmptyDate"]),
10168
- (w(), De(xn(W.teleport ? xl : "div"), at(ft(L.value)), {
10168
+ (g(), De(xn(W.teleport ? Ml : "div"), at(ft(L.value)), {
10169
10169
  default: pe(() => [
10170
10170
  Le(ha, {
10171
- name: g(he)(g(j)),
10172
- css: g(O) && !g(E).enabled
10171
+ name: w(he)(w(j)),
10172
+ css: w(O) && !w(E).enabled
10173
10173
  }, {
10174
10174
  default: pe(() => [
10175
- s.value ? (w(), x("div", tt({
10175
+ s.value ? (g(), x("div", tt({
10176
10176
  key: 0,
10177
10177
  ref_key: "dpWrapMenuRef",
10178
10178
  ref: m
10179
10179
  }, te.value, {
10180
- class: { "dp--menu-wrapper": !g(E).enabled },
10181
- style: g(E).enabled ? void 0 : g(se)
10180
+ class: { "dp--menu-wrapper": !w(E).enabled },
10181
+ style: w(E).enabled ? void 0 : w(se)
10182
10182
  }), [
10183
10183
  Le(Co, tt({
10184
10184
  ref_key: "dpMenuRef",
10185
10185
  ref: i
10186
10186
  }, W.$props, {
10187
- "internal-model-value": g(f),
10187
+ "internal-model-value": w(f),
10188
10188
  "onUpdate:internalModelValue": re[3] || (re[3] = (de) => Gr(f) ? f.value = de : null),
10189
10189
  class: { [Xe.value]: !0, "dp--menu-wrapper": W.teleport },
10190
- "open-on-top": g(j),
10190
+ "open-on-top": w(j),
10191
10191
  "no-overlay-focus": p.value,
10192
10192
  collapse: B.value,
10193
10193
  "get-input-rect": X,
@@ -10198,10 +10198,10 @@ const N0 = ({
10198
10198
  onTimeUpdate: In,
10199
10199
  onFlowStep: re[4] || (re[4] = (de) => W.$emit("flow-step", de)),
10200
10200
  onUpdateMonthYear: re[5] || (re[5] = (de) => W.$emit("update-month-year", de)),
10201
- onInvalidSelect: re[6] || (re[6] = (de) => W.$emit("invalid-select", g(f))),
10201
+ onInvalidSelect: re[6] || (re[6] = (de) => W.$emit("invalid-select", w(f))),
10202
10202
  onAutoApplyInvalid: re[7] || (re[7] = (de) => W.$emit("invalid-select", de)),
10203
10203
  onInvalidFixedRange: re[8] || (re[8] = (de) => W.$emit("invalid-fixed-range", de)),
10204
- onRecalculatePosition: g(le),
10204
+ onRecalculatePosition: w(le),
10205
10205
  onTooltipOpen: re[9] || (re[9] = (de) => W.$emit("tooltip-open", de)),
10206
10206
  onTooltipClose: re[10] || (re[10] = (de) => W.$emit("tooltip-close", de)),
10207
10207
  onTimePickerOpen: re[11] || (re[11] = (de) => W.$emit("time-picker-open", de)),
@@ -10213,7 +10213,7 @@ const N0 = ({
10213
10213
  onInvalidDate: re[17] || (re[17] = (de) => W.$emit("invalid-date", de)),
10214
10214
  onOverlayToggle: re[18] || (re[18] = (de) => W.$emit("overlay-toggle", de))
10215
10215
  }), lt({ _: 2 }, [
10216
- Ce(g(N), (de, it) => ({
10216
+ Ce(w(N), (de, it) => ({
10217
10217
  name: de,
10218
10218
  fn: pe((gt) => [
10219
10219
  ue(W.$slots, de, at(ft({ ...gt })))
@@ -10277,7 +10277,7 @@ const Z0 = {
10277
10277
  oh
10278
10278
  ], lh = { class: "modal-body bg-base-300" }, ih = { class: "modal-footer" };
10279
10279
  function uh(e, t, a, n, r, o) {
10280
- return a.modelValue ? (w(), x("div", J0, [
10280
+ return a.modelValue ? (g(), x("div", J0, [
10281
10281
  K0,
10282
10282
  v("div", eh, [
10283
10283
  v("div", th, [
@@ -10334,10 +10334,10 @@ const ul = /* @__PURE__ */ At(Z0, [["render", uh], ["__scopeId", "data-v-78f7730
10334
10334
  content: "",
10335
10335
  type: "reminders"
10336
10336
  });
10337
- return (n, r) => (w(), x("div", ch, [
10337
+ return (n, r) => (g(), x("div", ch, [
10338
10338
  v("div", dh, [
10339
10339
  fh,
10340
- Le(g(rn), {
10340
+ Le(w(rn), {
10341
10341
  format: "HH:mm",
10342
10342
  "auto-apply": "true",
10343
10343
  "time-picker": !0,
@@ -10523,11 +10523,11 @@ const _h = () => {
10523
10523
  }
10524
10524
  return (d, h) => {
10525
10525
  const y = xr("Popper");
10526
- return w(), x("div", xh, [
10526
+ return g(), x("div", xh, [
10527
10527
  Je(ke(s.value.schedule.time) + " ", 1),
10528
10528
  v("div", Mh, [
10529
10529
  Th,
10530
- Le(g(rn), {
10530
+ Le(w(rn), {
10531
10531
  "auto-apply": "true",
10532
10532
  "time-picker": !0,
10533
10533
  locale: "pt-BR",
@@ -10558,7 +10558,7 @@ const _h = () => {
10558
10558
  [xa, s.value.message[0].content]
10559
10559
  ])
10560
10560
  ]),
10561
- e.currentChat.contact && e.currentChat.contact.segmentation_fields.length > 0 ? (w(), x("div", $h, [
10561
+ e.currentChat.contact && e.currentChat.contact.segmentation_fields.length > 0 ? (g(), x("div", $h, [
10562
10562
  v("div", Oh, [
10563
10563
  Je(" Campos personalizáveis disponíveis "),
10564
10564
  Le(y, {
@@ -10578,14 +10578,14 @@ const _h = () => {
10578
10578
  })
10579
10579
  ]),
10580
10580
  v("div", Ah, [
10581
- (w(!0), x(be, null, Ce(d.globalStore.messageStore.currentChat.contact.segmentation_fields, (_) => (w(), x("div", {
10581
+ (g(!0), x(be, null, Ce(d.globalStore.messageStore.currentChat.contact.segmentation_fields, (_) => (g(), x("div", {
10582
10582
  onClick: (B) => u(_),
10583
10583
  key: _,
10584
10584
  class: "custom-field bg-primary"
10585
10585
  }, ke(_.name), 9, Rh))), 128))
10586
10586
  ])
10587
10587
  ])) : U("", !0),
10588
- s.value.file ? (w(), x("div", Eh, [
10588
+ s.value.file ? (g(), x("div", Eh, [
10589
10589
  v("p", null, ke(s.value.fileName), 1),
10590
10590
  v("div", Nh, [
10591
10591
  v("button", {
@@ -10600,7 +10600,7 @@ const _h = () => {
10600
10600
  onClick: c,
10601
10601
  class: "save-button text-white"
10602
10602
  }, [
10603
- n.value ? (w(), x("div", Bh)) : U("", !0),
10603
+ n.value ? (g(), x("div", Bh)) : U("", !0),
10604
10604
  Je("Salvar ")
10605
10605
  ], 8, Lh)
10606
10606
  ])
@@ -10663,36 +10663,36 @@ const _h = () => {
10663
10663
  function m(i) {
10664
10664
  r.value = i;
10665
10665
  }
10666
- return (i, c) => (w(), De(ul, {
10666
+ return (i, c) => (g(), De(ul, {
10667
10667
  modelValue: u.value,
10668
10668
  "onUpdate:modelValue": c[3] || (c[3] = (d) => u.value = d)
10669
10669
  }, {
10670
10670
  title: pe(() => [
10671
- e.currentEvent === null ? (w(), x("div", qh, "Novo evento " + ke(l(e.date)), 1)) : (w(), x("div", Vh, ke(e.currentEvent.title) + " - " + ke(e.currentEvent.date.split("-").reverse().join("/")) + " " + ke(e.currentEvent.hours), 1))
10671
+ e.currentEvent === null ? (g(), x("div", qh, "Novo evento " + ke(l(e.date)), 1)) : (g(), x("div", Vh, ke(e.currentEvent.title) + " - " + ke(e.currentEvent.date.split("-").reverse().join("/")) + " " + ke(e.currentEvent.hours), 1))
10672
10672
  ]),
10673
10673
  body: pe(() => [
10674
10674
  v("main", zh, [
10675
- e.currentEvent === null ? (w(), x("div", Uh, [
10675
+ e.currentEvent === null ? (g(), x("div", Uh, [
10676
10676
  bt(v("select", {
10677
10677
  "onUpdate:modelValue": c[0] || (c[0] = (d) => n.value = d),
10678
10678
  class: "custom-select bg-base-100"
10679
10679
  }, [
10680
- (w(), x(be, null, Ce(a, (d) => v("option", {
10680
+ (g(), x(be, null, Ce(a, (d) => v("option", {
10681
10681
  value: d.type,
10682
10682
  key: d.type
10683
10683
  }, ke(d.name), 9, Qh)), 64))
10684
10684
  ], 512), [
10685
- [Pl, n.value]
10685
+ [$l, n.value]
10686
10686
  ]),
10687
10687
  Gh
10688
10688
  ])) : U("", !0),
10689
- n.value === "reminders" ? (w(), De(wh, {
10689
+ n.value === "reminders" ? (g(), De(wh, {
10690
10690
  key: 1,
10691
10691
  onClose: c[1] || (c[1] = (d) => u.value = !1),
10692
10692
  token: e.token,
10693
10693
  date: e.date,
10694
10694
  onConfig: m
10695
- }, null, 8, ["token", "date"])) : n.value === "scheduled_messages" ? (w(), De(jh, {
10695
+ }, null, 8, ["token", "date"])) : n.value === "scheduled_messages" ? (g(), De(jh, {
10696
10696
  key: 2,
10697
10697
  event: e.currentEvent,
10698
10698
  currentChat: e.currentChat,
@@ -10921,7 +10921,7 @@ const _h = () => {
10921
10921
  };
10922
10922
  return (Y, E) => {
10923
10923
  const F = xr("Popper");
10924
- return w(), x(be, null, [
10924
+ return g(), x(be, null, [
10925
10925
  v("div", Jh, [
10926
10926
  v("div", Kh, [
10927
10927
  ue(Y.$slots, "backButton", {}, void 0, !0),
@@ -10930,7 +10930,7 @@ const _h = () => {
10930
10930
  class: "calendar-button"
10931
10931
  }, tp),
10932
10932
  v("div", null, [
10933
- Le(g(rn), {
10933
+ Le(w(rn), {
10934
10934
  dark: e.theme,
10935
10935
  "cancel-text": "Cancelar",
10936
10936
  "select-text": "Selecionar",
@@ -10954,11 +10954,11 @@ const _h = () => {
10954
10954
  }, np)
10955
10955
  ]),
10956
10956
  v("div", rp, [
10957
- (w(!0), x(be, null, Ce(g(y), (Z, ce) => (w(), x("div", {
10957
+ (g(!0), x(be, null, Ce(w(y), (Z, ce) => (g(), x("div", {
10958
10958
  key: ce,
10959
10959
  class: "day-name shadow shadow-black/90 dark:shadow-gray-400 bg-base-200 border border-base-100"
10960
10960
  }, ke(Z), 1))), 128)),
10961
- (w(!0), x(be, null, Ce(I.value, (Z, ce) => (w(), x("div", {
10961
+ (g(!0), x(be, null, Ce(I.value, (Z, ce) => (g(), x("div", {
10962
10962
  key: ce,
10963
10963
  class: ge([{
10964
10964
  // 'rounded-br': index === daysInMonth.length - 1,
@@ -10975,12 +10975,12 @@ const _h = () => {
10975
10975
  class: "add-event-button hidden group-hover:inline-block"
10976
10976
  }, up, 8, lp)
10977
10977
  ]),
10978
- Z.events.length > 0 ? (w(), x("footer", {
10978
+ Z.events.length > 0 ? (g(), x("footer", {
10979
10979
  key: 0,
10980
10980
  onClick: (he) => s(Z),
10981
10981
  class: "events-container cursor-pointer"
10982
10982
  }, [
10983
- (w(!0), x(be, null, Ce(Z.events, (he) => (w(), x("div", {
10983
+ (g(!0), x(be, null, Ce(Z.events, (he) => (g(), x("div", {
10984
10984
  key: he.title,
10985
10985
  class: "event"
10986
10986
  }, [
@@ -11014,7 +11014,7 @@ const _h = () => {
11014
11014
  v("table", hp, [
11015
11015
  pp,
11016
11016
  v("tbody", vp, [
11017
- (w(!0), x(be, null, Ce(t.value.events, (Z) => (w(), x("tr", {
11017
+ (g(!0), x(be, null, Ce(t.value.events, (Z) => (g(), x("tr", {
11018
11018
  key: Z.title,
11019
11019
  class: "flex mt-1 hover:bg-base-200 align-middle items-center rounded-xl py-2 w-full"
11020
11020
  }, [
@@ -11033,7 +11033,7 @@ const _h = () => {
11033
11033
  ]),
11034
11034
  _: 1
11035
11035
  }, 8, ["modelValue"]),
11036
- a.value.modal ? (w(), De(Zh, {
11036
+ a.value.modal ? (g(), De(Zh, {
11037
11037
  key: 0,
11038
11038
  currentEvent: n.value,
11039
11039
  currentChat: e.currentChat,
@@ -11075,11 +11075,11 @@ const _h = () => {
11075
11075
  const m = n.value.join("");
11076
11076
  a("filled", m);
11077
11077
  };
11078
- return (m, i) => (w(), x("section", Tp, [
11078
+ return (m, i) => (g(), x("section", Tp, [
11079
11079
  v("div", Dp, [
11080
11080
  Pp,
11081
11081
  v("div", $p, [
11082
- (w(!0), x(be, null, Ce(n.value, (c, d) => bt((w(), x("input", {
11082
+ (g(!0), x(be, null, Ce(n.value, (c, d) => bt((g(), x("input", {
11083
11083
  key: d,
11084
11084
  "onUpdate:modelValue": (h) => n.value[d] = h,
11085
11085
  class: ge([e.eventHandling === "check" ? "checked_mfa" : "err_mfa", "inline-block mx-4 w-10 h-10 rounded-md text-center"]),
@@ -11117,16 +11117,16 @@ const _h = () => {
11117
11117
  }
11118
11118
  },
11119
11119
  setup(e) {
11120
- return (t, a) => (w(), x("div", Cp, [
11120
+ return (t, a) => (g(), x("div", Cp, [
11121
11121
  Sp,
11122
11122
  v("section", Ap, [
11123
11123
  v("div", Rp, [
11124
- e.base64 ? (w(), x("img", {
11124
+ e.base64 ? (g(), x("img", {
11125
11125
  key: 0,
11126
11126
  class: "w-64 h-64 rounded-md",
11127
11127
  src: e.base64,
11128
11128
  alt: "QRCode"
11129
- }, null, 8, Ep)) : (w(), x("div", Np, Yp))
11129
+ }, null, 8, Ep)) : (g(), x("div", Np, Yp))
11130
11130
  ])
11131
11131
  ])
11132
11132
  ]));
@@ -11179,7 +11179,7 @@ const _h = () => {
11179
11179
  }, l = J(() => r.value ? a.atendentes.filter(
11180
11180
  (u) => u.name.toLowerCase().includes(r.value.toLowerCase()) && u.id !== a.attendant.id
11181
11181
  ) : a.atendentes.filter((u) => u.id !== a.attendant.id));
11182
- return (u, m) => (w(), x("div", Bp, [
11182
+ return (u, m) => (g(), x("div", Bp, [
11183
11183
  bt(v("input", {
11184
11184
  "onUpdate:modelValue": m[0] || (m[0] = (i) => r.value = i),
11185
11185
  class: "search-input",
@@ -11188,18 +11188,18 @@ const _h = () => {
11188
11188
  [xa, r.value]
11189
11189
  ]),
11190
11190
  v("ul", Hp, [
11191
- l.value.length === 0 ? (w(), x("li", jp, ke(e.atendentes.length === 0 ? "Não há atendentes disponíveis" : "Não há atendentes com esse nome"), 1)) : U("", !0),
11192
- (w(!0), x(be, null, Ce(l.value, (i) => (w(), x("li", {
11191
+ l.value.length === 0 ? (g(), x("li", jp, ke(e.atendentes.length === 0 ? "Não há atendentes disponíveis" : "Não há atendentes com esse nome"), 1)) : U("", !0),
11192
+ (g(!0), x(be, null, Ce(l.value, (i) => (g(), x("li", {
11193
11193
  key: i.id,
11194
11194
  onClick: (c) => o(i),
11195
11195
  class: "atendente-item"
11196
11196
  }, [
11197
11197
  v("main", qp, [
11198
- i.photo ? (w(), x("img", {
11198
+ i.photo ? (g(), x("img", {
11199
11199
  key: 1,
11200
11200
  src: i.photo,
11201
11201
  class: "atendente-photo"
11202
- }, null, 8, Qp)) : (w(), x("div", Vp, Up)),
11202
+ }, null, 8, Qp)) : (g(), x("div", Vp, Up)),
11203
11203
  v("span", Gp, ke(i.name), 1)
11204
11204
  ]),
11205
11205
  v("footer", null, [
@@ -11212,16 +11212,126 @@ const _h = () => {
11212
11212
  ]));
11213
11213
  }
11214
11214
  }, Zp = /* @__PURE__ */ At(Xp, [["__scopeId", "data-v-5ca03eb6"]]);
11215
- function Jp(e, t = null) {
11215
+ var rt = [];
11216
+ for (var lr = 0; lr < 256; ++lr)
11217
+ rt.push((lr + 256).toString(16).slice(1));
11218
+ function Jp(e, t = 0) {
11219
+ return (rt[e[t + 0]] + rt[e[t + 1]] + rt[e[t + 2]] + rt[e[t + 3]] + "-" + rt[e[t + 4]] + rt[e[t + 5]] + "-" + rt[e[t + 6]] + rt[e[t + 7]] + "-" + rt[e[t + 8]] + rt[e[t + 9]] + "-" + rt[e[t + 10]] + rt[e[t + 11]] + rt[e[t + 12]] + rt[e[t + 13]] + rt[e[t + 14]] + rt[e[t + 15]]).toLowerCase();
11220
+ }
11221
+ var dn, Kp = new Uint8Array(16);
11222
+ function ev() {
11223
+ if (!dn && (dn = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !dn))
11224
+ throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
11225
+ return dn(Kp);
11226
+ }
11227
+ var tv = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
11228
+ const Eo = {
11229
+ randomUUID: tv
11230
+ };
11231
+ function av(e, t, a) {
11232
+ if (Eo.randomUUID && !t && !e)
11233
+ return Eo.randomUUID();
11234
+ e = e || {};
11235
+ var n = e.random || (e.rng || ev)();
11236
+ return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, Jp(n);
11237
+ }
11238
+ const fl = Cl("chatStore", {
11239
+ state: () => ({
11240
+ attendants: [],
11241
+ // Lista de atendentes com suas mensagens e canais
11242
+ loadingMessages: !1
11243
+ }),
11244
+ actions: {
11245
+ async fetchAtendentes(e, t) {
11246
+ try {
11247
+ const a = await Ie.get(t, {
11248
+ headers: { Authorization: `Bearer ${e}` }
11249
+ });
11250
+ this.attendants = a.data.map((n) => ({
11251
+ ...n,
11252
+ messages: null,
11253
+ channel_id: null,
11254
+ currentPage: 1,
11255
+ hasNextPage: null
11256
+ }));
11257
+ } catch (a) {
11258
+ console.error(a);
11259
+ }
11260
+ },
11261
+ async fetchMessagesForAtendente(e, t, a) {
11262
+ try {
11263
+ this.loadingMessages = !0;
11264
+ const n = await Ie.get(`${a}?attendant=${e}&page=1`, {
11265
+ headers: { Authorization: `Bearer ${t}` }
11266
+ }), r = this.attendants.find((o) => o.id === e);
11267
+ r && (r.messages = n.data.results.reverse(), r.channel_id = n.data.channel_id, r.hasNextPage = n.data.next !== null, r.currentPage++);
11268
+ } catch (n) {
11269
+ console.error(n);
11270
+ } finally {
11271
+ this.loadingMessages = !1;
11272
+ }
11273
+ },
11274
+ // Carrega mensagens para um atendente específico e vincula o canal
11275
+ async loadMessagesForAtendente(e, t, a) {
11276
+ try {
11277
+ const n = this.attendants.find((o) => o.id === e);
11278
+ if (!n || !n.hasNextPage) return;
11279
+ const r = await Ie.get(`${a}?attendant=${e}&page=${n.currentPage}`, {
11280
+ headers: { Authorization: `Bearer ${t}` }
11281
+ });
11282
+ n.messages = [...r.data.results.reverse(), ...n.messages], n.channel_id = r.data.channel_id, n.hasNextPage = r.data.next !== null, n.currentPage++;
11283
+ } catch (n) {
11284
+ console.error(n);
11285
+ }
11286
+ },
11287
+ addMessageToAtendente(e) {
11288
+ const t = e.message, a = this.attendants.find((n) => n.channel_id === t.channel_id);
11289
+ if (a) {
11290
+ const n = a.messages.findIndex((r) => r.id === t.id);
11291
+ n !== -1 ? (a.messages[n] = t, console.log(`Mensagem com ID ${t.id} atualizada.`)) : (a.messages.push(t), console.log(`Nova mensagem com ID ${t.id} adicionada.`));
11292
+ }
11293
+ },
11294
+ // Envia uma mensagem para o atendente
11295
+ async sendMessageToAtendente(e, t, a, n, r) {
11296
+ const o = this.attendants.find((l) => l.id === e);
11297
+ if (!o || !o.channel_id) return;
11298
+ const s = {
11299
+ id: av(),
11300
+ // ID temporário até ser salvo no servidor
11301
+ content: { type: "text", content: t },
11302
+ created_at: (/* @__PURE__ */ new Date()).toISOString(),
11303
+ sender: r
11304
+ // Ajuste de acordo com o backend
11305
+ };
11306
+ o.messages.push(s);
11307
+ try {
11308
+ await Ie.post(`${n}${o.channel_id}/message/`, {
11309
+ id: s.id,
11310
+ content: s.content
11311
+ }, {
11312
+ headers: { Authorization: `Bearer ${a}` }
11313
+ });
11314
+ } catch (l) {
11315
+ console.error("Erro ao enviar mensagem:", l);
11316
+ }
11317
+ },
11318
+ // Verifica se o atendente tem próxima página de mensagens
11319
+ hasNextPageForAtendente(e) {
11320
+ const t = this.attendants.find((a) => a.id === e);
11321
+ return t ? t.hasNextPage : !1;
11322
+ }
11323
+ }
11324
+ });
11325
+ function nv(e, t = null) {
11216
11326
  if (!e)
11217
11327
  return !1;
11218
11328
  const a = e.getBoundingClientRect(), n = t ? t.getBoundingClientRect() : { top: 0, left: 0, bottom: window.innerHeight, right: window.innerWidth };
11219
11329
  return a.bottom >= n.top && a.top <= n.bottom && a.right >= n.left && a.left <= n.right;
11220
11330
  }
11221
- async function Kp(e) {
11331
+ async function rv(e) {
11222
11332
  return e ? (await Ke(), e.value instanceof HTMLElement ? e.value : e.value ? document.querySelector(e.value) : null) : null;
11223
11333
  }
11224
- function ev(e) {
11334
+ function ov(e) {
11225
11335
  let t = `0px 0px ${e.distance}px 0px`;
11226
11336
  e.top && (t = `${e.distance}px 0px 0px 0px`);
11227
11337
  const a = new IntersectionObserver(
@@ -11232,24 +11342,24 @@ function ev(e) {
11232
11342
  );
11233
11343
  return e.infiniteLoading.value && a.observe(e.infiniteLoading.value), a;
11234
11344
  }
11235
- async function Eo(e, t) {
11345
+ async function No(e, t) {
11236
11346
  if (await Ke(), !e.top)
11237
11347
  return;
11238
11348
  const a = e.parentEl || document.documentElement;
11239
11349
  a.scrollTop = a.scrollHeight - t;
11240
11350
  }
11241
- const fl = (e, t) => {
11351
+ const ml = (e, t) => {
11242
11352
  const a = e.__vccOpts || e;
11243
11353
  for (const [n, r] of t)
11244
11354
  a[n] = r;
11245
11355
  return a;
11246
- }, tv = {}, av = (e) => (Ct("data-v-d3e37633"), e = e(), St(), e), nv = { class: "container" }, rv = /* @__PURE__ */ av(() => /* @__PURE__ */ v("div", { class: "spinner" }, null, -1)), ov = [
11247
- rv
11356
+ }, sv = {}, lv = (e) => (Ct("data-v-d3e37633"), e = e(), St(), e), iv = { class: "container" }, uv = /* @__PURE__ */ lv(() => /* @__PURE__ */ v("div", { class: "spinner" }, null, -1)), cv = [
11357
+ uv
11248
11358
  ];
11249
- function sv(e, t) {
11250
- return w(), x("div", nv, ov);
11359
+ function dv(e, t) {
11360
+ return g(), x("div", iv, cv);
11251
11361
  }
11252
- const lv = /* @__PURE__ */ fl(tv, [["render", sv], ["__scopeId", "data-v-d3e37633"]]), iv = { class: "state-error" }, uv = /* @__PURE__ */ nt({
11362
+ const fv = /* @__PURE__ */ ml(sv, [["render", dv], ["__scopeId", "data-v-d3e37633"]]), mv = { class: "state-error" }, hv = /* @__PURE__ */ nt({
11253
11363
  __name: "InfiniteLoading",
11254
11364
  props: {
11255
11365
  top: { type: Boolean, default: !1 },
@@ -11263,7 +11373,7 @@ const lv = /* @__PURE__ */ fl(tv, [["render", sv], ["__scopeId", "data-v-d3e3763
11263
11373
  setup(e, { emit: t }) {
11264
11374
  const a = e;
11265
11375
  let n = null, r = 0;
11266
- const o = z(null), s = z(""), { top: l, firstload: u, distance: m } = a, { identifier: i, target: c } = $l(a), d = {
11376
+ const o = z(null), s = z(""), { top: l, firstload: u, distance: m } = a, { identifier: i, target: c } = Ol(a), d = {
11267
11377
  infiniteLoading: o,
11268
11378
  top: l,
11269
11379
  firstload: u,
@@ -11277,28 +11387,28 @@ const lv = /* @__PURE__ */ fl(tv, [["render", sv], ["__scopeId", "data-v-d3e3763
11277
11387
  s.value = "loading";
11278
11388
  },
11279
11389
  async loaded() {
11280
- s.value = "loaded", await Eo(d, r), Jp(o.value, d.parentEl) && d.emit();
11390
+ s.value = "loaded", await No(d, r), nv(o.value, d.parentEl) && d.emit();
11281
11391
  },
11282
11392
  async complete() {
11283
- s.value = "complete", await Eo(d, r), n == null || n.disconnect();
11393
+ s.value = "complete", await No(d, r), n == null || n.disconnect();
11284
11394
  },
11285
11395
  error() {
11286
11396
  s.value = "error";
11287
11397
  }
11288
11398
  };
11289
11399
  function y() {
11290
- n == null || n.disconnect(), n = ev(d);
11400
+ n == null || n.disconnect(), n = ov(d);
11291
11401
  }
11292
11402
  return Ge(i, y), Be(async () => {
11293
- d.parentEl = await Kp(c), y();
11294
- }), Ja(() => n == null ? void 0 : n.disconnect()), (_, B) => (w(), x("div", {
11403
+ d.parentEl = await rv(c), y();
11404
+ }), Ja(() => n == null ? void 0 : n.disconnect()), (_, B) => (g(), x("div", {
11295
11405
  ref_key: "infiniteLoading",
11296
11406
  ref: o,
11297
11407
  class: "v3-infinite-loading"
11298
11408
  }, [
11299
11409
  bt(v("div", null, [
11300
11410
  ue(_.$slots, "spinner", {}, () => [
11301
- Le(lv)
11411
+ Le(fv)
11302
11412
  ], !0)
11303
11413
  ], 512), [
11304
11414
  [Wa, s.value == "loading"]
@@ -11315,7 +11425,7 @@ const lv = /* @__PURE__ */ fl(tv, [["render", sv], ["__scopeId", "data-v-d3e3763
11315
11425
  }, () => {
11316
11426
  var R;
11317
11427
  return [
11318
- v("span", iv, [
11428
+ v("span", mv, [
11319
11429
  v("span", null, ke(((R = _.slots) == null ? void 0 : R.error) || "Oops something went wrong!"), 1),
11320
11430
  v("button", {
11321
11431
  class: "retry",
@@ -11327,31 +11437,7 @@ const lv = /* @__PURE__ */ fl(tv, [["render", sv], ["__scopeId", "data-v-d3e3763
11327
11437
  }, !0) : U("", !0)
11328
11438
  ], 512));
11329
11439
  }
11330
- }), cv = /* @__PURE__ */ fl(uv, [["__scopeId", "data-v-4bdee133"]]);
11331
- var rt = [];
11332
- for (var lr = 0; lr < 256; ++lr)
11333
- rt.push((lr + 256).toString(16).slice(1));
11334
- function dv(e, t = 0) {
11335
- return (rt[e[t + 0]] + rt[e[t + 1]] + rt[e[t + 2]] + rt[e[t + 3]] + "-" + rt[e[t + 4]] + rt[e[t + 5]] + "-" + rt[e[t + 6]] + rt[e[t + 7]] + "-" + rt[e[t + 8]] + rt[e[t + 9]] + "-" + rt[e[t + 10]] + rt[e[t + 11]] + rt[e[t + 12]] + rt[e[t + 13]] + rt[e[t + 14]] + rt[e[t + 15]]).toLowerCase();
11336
- }
11337
- var dn, fv = new Uint8Array(16);
11338
- function mv() {
11339
- if (!dn && (dn = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !dn))
11340
- throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
11341
- return dn(fv);
11342
- }
11343
- var hv = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
11344
- const No = {
11345
- randomUUID: hv
11346
- };
11347
- function pv(e, t, a) {
11348
- if (No.randomUUID && !t && !e)
11349
- return No.randomUUID();
11350
- e = e || {};
11351
- var n = e.random || (e.rng || mv)();
11352
- return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, dv(n);
11353
- }
11354
- const ml = 6048e5, vv = 864e5, bn = Symbol.for("constructDateFrom");
11440
+ }), pv = /* @__PURE__ */ ml(hv, [["__scopeId", "data-v-4bdee133"]]), hl = 6048e5, vv = 864e5, bn = Symbol.for("constructDateFrom");
11355
11441
  function kt(e, t) {
11356
11442
  return typeof e == "function" ? e(t) : typeof e == "object" && bn in e ? e[bn](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
11357
11443
  }
@@ -11376,7 +11462,7 @@ function fa(e, t) {
11376
11462
  function _n(e, t) {
11377
11463
  return fa(e, { ...t, weekStartsOn: 1 });
11378
11464
  }
11379
- function hl(e, t) {
11465
+ function pl(e, t) {
11380
11466
  const a = xt(e, t == null ? void 0 : t.in), n = a.getFullYear(), r = kt(a, 0);
11381
11467
  r.setFullYear(n + 1, 0, 4), r.setHours(0, 0, 0, 0);
11382
11468
  const o = _n(r), s = kt(a, 0);
@@ -11418,13 +11504,13 @@ function wv(e, t, a) {
11418
11504
  return Math.round((l - u) / vv);
11419
11505
  }
11420
11506
  function bv(e, t) {
11421
- const a = hl(e, t), n = kt(e, 0);
11507
+ const a = pl(e, t), n = kt(e, 0);
11422
11508
  return n.setFullYear(a, 0, 4), n.setHours(0, 0, 0, 0), _n(n);
11423
11509
  }
11424
11510
  function Qr(e) {
11425
11511
  return kt(e, Date.now());
11426
11512
  }
11427
- function pl(e, t, a) {
11513
+ function vl(e, t, a) {
11428
11514
  const [n, r] = Ur(
11429
11515
  a == null ? void 0 : a.in,
11430
11516
  e,
@@ -11745,7 +11831,7 @@ function Hv(e, t) {
11745
11831
  if (t(e[a]))
11746
11832
  return a;
11747
11833
  }
11748
- function vl(e) {
11834
+ function yl(e) {
11749
11835
  return (t, a = {}) => {
11750
11836
  const n = t.match(e.matchPattern);
11751
11837
  if (!n) return null;
@@ -11825,7 +11911,7 @@ const jv = /^(\d+)(th|st|nd|rd)?/i, Wv = /\d+/i, qv = {
11825
11911
  night: /night/i
11826
11912
  }
11827
11913
  }, e1 = {
11828
- ordinalNumber: vl({
11914
+ ordinalNumber: yl({
11829
11915
  matchPattern: jv,
11830
11916
  parsePattern: Wv,
11831
11917
  valueCallback: (e) => parseInt(e, 10)
@@ -11879,9 +11965,9 @@ function a1(e, t) {
11879
11965
  }
11880
11966
  function n1(e, t) {
11881
11967
  const a = xt(e, t == null ? void 0 : t.in), n = +_n(a) - +bv(a);
11882
- return Math.round(n / ml) + 1;
11968
+ return Math.round(n / hl) + 1;
11883
11969
  }
11884
- function yl(e, t) {
11970
+ function gl(e, t) {
11885
11971
  var i, c, d, h;
11886
11972
  const a = xt(e, t == null ? void 0 : t.in), n = a.getFullYear(), r = Nn(), o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((c = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : c.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((h = (d = r.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, s = kt((t == null ? void 0 : t.in) || e, 0);
11887
11973
  s.setFullYear(n + 1, 0, o), s.setHours(0, 0, 0, 0);
@@ -11892,12 +11978,12 @@ function yl(e, t) {
11892
11978
  }
11893
11979
  function r1(e, t) {
11894
11980
  var l, u, m, i;
11895
- const a = Nn(), n = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((u = (l = t == null ? void 0 : t.locale) == null ? void 0 : l.options) == null ? void 0 : u.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((i = (m = a.locale) == null ? void 0 : m.options) == null ? void 0 : i.firstWeekContainsDate) ?? 1, r = yl(e, t), o = kt((t == null ? void 0 : t.in) || e, 0);
11981
+ const a = Nn(), n = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((u = (l = t == null ? void 0 : t.locale) == null ? void 0 : l.options) == null ? void 0 : u.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((i = (m = a.locale) == null ? void 0 : m.options) == null ? void 0 : i.firstWeekContainsDate) ?? 1, r = gl(e, t), o = kt((t == null ? void 0 : t.in) || e, 0);
11896
11982
  return o.setFullYear(r, 0, n), o.setHours(0, 0, 0, 0), fa(o, t);
11897
11983
  }
11898
11984
  function o1(e, t) {
11899
11985
  const a = xt(e, t == null ? void 0 : t.in), n = +fa(a, t) - +r1(a, t);
11900
- return Math.round(n / ml) + 1;
11986
+ return Math.round(n / hl) + 1;
11901
11987
  }
11902
11988
  function Ee(e, t) {
11903
11989
  const a = e < 0 ? "-" : "", n = Math.abs(e).toString().padStart(t, "0");
@@ -11992,7 +12078,7 @@ const Xt = {
11992
12078
  },
11993
12079
  // Local week-numbering year
11994
12080
  Y: function(e, t, a, n) {
11995
- const r = yl(e, n), o = r > 0 ? r : 1 - r;
12081
+ const r = gl(e, n), o = r > 0 ? r : 1 - r;
11996
12082
  if (t === "YY") {
11997
12083
  const s = o % 100;
11998
12084
  return Ee(s, 2);
@@ -12001,7 +12087,7 @@ const Xt = {
12001
12087
  },
12002
12088
  // ISO week-numbering year
12003
12089
  R: function(e, t) {
12004
- const a = hl(e);
12090
+ const a = pl(e);
12005
12091
  return Ee(a, t.length);
12006
12092
  },
12007
12093
  // Extended year. This is a single number designating the year of this calendar system.
@@ -12477,7 +12563,7 @@ const Bo = (e, t) => {
12477
12563
  default:
12478
12564
  return t.date({ width: "full" });
12479
12565
  }
12480
- }, gl = (e, t) => {
12566
+ }, wl = (e, t) => {
12481
12567
  switch (e) {
12482
12568
  case "p":
12483
12569
  return t.time({ width: "short" });
@@ -12509,9 +12595,9 @@ const Bo = (e, t) => {
12509
12595
  o = t.dateTime({ width: "full" });
12510
12596
  break;
12511
12597
  }
12512
- return o.replace("{{date}}", Bo(n, t)).replace("{{time}}", gl(r, t));
12598
+ return o.replace("{{date}}", Bo(n, t)).replace("{{time}}", wl(r, t));
12513
12599
  }, l1 = {
12514
- p: gl,
12600
+ p: wl,
12515
12601
  P: s1
12516
12602
  }, i1 = /^D+$/, u1 = /^Y+$/, c1 = ["D", "DD", "YY", "YYYY"];
12517
12603
  function d1(e) {
@@ -12589,7 +12675,7 @@ function k1(e, t) {
12589
12675
  );
12590
12676
  }
12591
12677
  function x1(e, t) {
12592
- return pl(
12678
+ return vl(
12593
12679
  kt(e, e),
12594
12680
  Qr(e)
12595
12681
  );
@@ -12598,7 +12684,7 @@ function M1(e, t, a) {
12598
12684
  return yv(e, -t, a);
12599
12685
  }
12600
12686
  function T1(e, t) {
12601
- return pl(
12687
+ return vl(
12602
12688
  kt(e, e),
12603
12689
  M1(Qr(e), 1)
12604
12690
  );
@@ -12929,7 +13015,7 @@ const D1 = {
12929
13015
  night: /noite/i
12930
13016
  }
12931
13017
  }, ey = {
12932
- ordinalNumber: vl({
13018
+ ordinalNumber: yl({
12933
13019
  matchPattern: j1,
12934
13020
  parsePattern: W1,
12935
13021
  valueCallback: (e) => parseInt(e, 10)
@@ -12976,7 +13062,7 @@ const D1 = {
12976
13062
  weekStartsOn: 0,
12977
13063
  firstWeekContainsDate: 1
12978
13064
  }
12979
- }, Ea = (e) => (Ct("data-v-98836725"), e = e(), St(), e), ty = { class: "container" }, ay = { class: "header" }, ny = /* @__PURE__ */ Ea(() => /* @__PURE__ */ v("svg", {
13065
+ }, Ea = (e) => (Ct("data-v-19207e29"), e = e(), St(), e), ty = { class: "container" }, ay = { class: "header" }, ny = /* @__PURE__ */ Ea(() => /* @__PURE__ */ v("svg", {
12980
13066
  class: "w-6 h-6",
12981
13067
  "aria-hidden": "true",
12982
13068
  xmlns: "http://www.w3.org/2000/svg",
@@ -13033,14 +13119,13 @@ const D1 = {
13033
13119
  selectedAtendente: { type: Object, required: !0 },
13034
13120
  token: { required: !0 },
13035
13121
  getInternalChat: { required: !0 },
13036
- attendant: { required: !0 },
13037
- chatStore: { required: !0 }
13122
+ attendant: { required: !0 }
13038
13123
  },
13039
13124
  setup(e) {
13040
- const t = e, a = J(() => t.chatStore), n = z(""), r = J(() => a.value.loadingMessages), o = z(null), s = z(!1), l = J(() => {
13041
- const T = a.value.attendants.find((k) => k.id === t.selectedAtendente.id);
13125
+ const t = e, a = fl(), n = z(""), r = J(() => a.loadingMessages), o = z(null), s = z(!1), l = J(() => {
13126
+ const T = a.attendants.find((k) => k.id === t.selectedAtendente.id);
13042
13127
  return T ? T.messages : [];
13043
- }), u = J(() => a.value.attendants.find((k) => k.id === t.selectedAtendente.id).hasNextPage), m = (T) => {
13128
+ }), u = J(() => a.attendants.find((k) => k.id === t.selectedAtendente.id).hasNextPage), m = (T) => {
13044
13129
  const k = new Date(T);
13045
13130
  return ir(k, "HH:mm", { locale: ur });
13046
13131
  }, i = (T) => {
@@ -13061,14 +13146,14 @@ const D1 = {
13061
13146
  return;
13062
13147
  }
13063
13148
  const k = o.value.scrollHeight, I = o.value.scrollTop;
13064
- await a.value.loadMessagesForAtendente(t.selectedAtendente.id, t.token, t.getInternalChat), await Ke(), o.value.scrollTop = o.value.scrollHeight - k + I, T.loaded();
13149
+ await a.loadMessagesForAtendente(t.selectedAtendente.id, t.token, t.getInternalChat), await Ke(), o.value.scrollTop = o.value.scrollHeight - k + I, T.loaded();
13065
13150
  } catch (k) {
13066
13151
  console.error(k), T.complete();
13067
13152
  }
13068
13153
  }, _ = async () => {
13069
13154
  if (n.value.trim() !== "")
13070
13155
  try {
13071
- await a.value.sendMessageToAtendente(t.selectedAtendente.id, n.value, t.token, t.getInternalChat, t.attendant), n.value = "", await Ke(), h();
13156
+ await a.sendMessageToAtendente(t.selectedAtendente.id, n.value, t.token, t.getInternalChat, t.attendant), n.value = "", await Ke(), h();
13072
13157
  } catch (T) {
13073
13158
  console.error("Erro ao enviar mensagem:", T);
13074
13159
  }
@@ -13095,17 +13180,17 @@ const D1 = {
13095
13180
  const k = o.value.scrollTop + o.value.clientHeight;
13096
13181
  return o.value.scrollHeight - k <= 200;
13097
13182
  }
13098
- return (T, k) => (w(), x("div", ty, [
13183
+ return (T, k) => (g(), x("div", ty, [
13099
13184
  v("div", ay, [
13100
13185
  v("button", {
13101
13186
  onClick: k[0] || (k[0] = (I) => T.$emit("voltar")),
13102
13187
  class: "back-button"
13103
13188
  }, ry),
13104
- e.selectedAtendente.photo ? (w(), x("img", {
13189
+ e.selectedAtendente.photo ? (g(), x("img", {
13105
13190
  key: 1,
13106
13191
  src: e.selectedAtendente.photo,
13107
13192
  class: "atendente-photo"
13108
- }, null, 8, iy)) : (w(), x("div", oy, ly)),
13193
+ }, null, 8, iy)) : (g(), x("div", oy, ly)),
13109
13194
  v("h3", uy, ke(e.selectedAtendente.name), 1)
13110
13195
  ]),
13111
13196
  v("div", {
@@ -13113,7 +13198,7 @@ const D1 = {
13113
13198
  ref_key: "chatArea",
13114
13199
  ref: o
13115
13200
  }, [
13116
- !r.value && u.value && s.value ? (w(), De(g(cv), {
13201
+ !r.value && u.value && s.value ? (g(), De(w(pv), {
13117
13202
  key: 0,
13118
13203
  onInfinite: y,
13119
13204
  distance: 30,
@@ -13130,8 +13215,8 @@ const D1 = {
13130
13215
  _: 1
13131
13216
  })) : U("", !0),
13132
13217
  v("div", null, [
13133
- (w(!0), x(be, null, Ce(l.value, (I, ae) => (w(), x("div", { key: ae }, [
13134
- c(ae) ? (w(), x("div", fy, [
13218
+ (g(!0), x(be, null, Ce(l.value, (I, ae) => (g(), x("div", { key: ae }, [
13219
+ c(ae) ? (g(), x("div", fy, [
13135
13220
  my,
13136
13221
  v("div", hy, ke(i(I.created_at)), 1),
13137
13222
  py
@@ -13169,100 +13254,7 @@ const D1 = {
13169
13254
  ])
13170
13255
  ]));
13171
13256
  }
13172
- }, wy = /* @__PURE__ */ At(gy, [["__scopeId", "data-v-98836725"]]), by = Ol("chatStore", {
13173
- state: () => ({
13174
- attendants: [],
13175
- // Lista de atendentes com suas mensagens e canais
13176
- loadingMessages: !1
13177
- }),
13178
- actions: {
13179
- async fetchAtendentes(e, t) {
13180
- try {
13181
- const a = await Ie.get(t, {
13182
- headers: { Authorization: `Bearer ${e}` }
13183
- });
13184
- this.attendants = a.data.map((n) => ({
13185
- ...n,
13186
- messages: null,
13187
- channel_id: null,
13188
- currentPage: 1,
13189
- hasNextPage: null
13190
- }));
13191
- } catch (a) {
13192
- console.error(a);
13193
- }
13194
- },
13195
- async fetchMessagesForAtendente(e, t, a) {
13196
- try {
13197
- this.loadingMessages = !0;
13198
- const n = await Ie.get(`${a}?attendant=${e}&page=1`, {
13199
- headers: { Authorization: `Bearer ${t}` }
13200
- }), r = this.attendants.find((o) => o.id === e);
13201
- r && (r.messages = n.data.results.reverse(), r.channel_id = n.data.channel_id, r.hasNextPage = n.data.next !== null, r.currentPage++);
13202
- } catch (n) {
13203
- console.error(n);
13204
- } finally {
13205
- this.loadingMessages = !1;
13206
- }
13207
- },
13208
- // Carrega mensagens para um atendente específico e vincula o canal
13209
- async loadMessagesForAtendente(e, t, a) {
13210
- try {
13211
- const n = this.attendants.find((o) => o.id === e);
13212
- if (!n || !n.hasNextPage) return;
13213
- const r = await Ie.get(`${a}?attendant=${e}&page=${n.currentPage}`, {
13214
- headers: { Authorization: `Bearer ${t}` }
13215
- });
13216
- n.messages = [...r.data.results.reverse(), ...n.messages], n.channel_id = r.data.channel_id, n.hasNextPage = r.data.next !== null, n.currentPage++;
13217
- } catch (n) {
13218
- console.error(n);
13219
- }
13220
- },
13221
- addMessageToAtendente(e) {
13222
- const t = e.message, a = this.attendants.find((n) => n.channel_id === t.channel_id);
13223
- if (a) {
13224
- const n = a.messages.findIndex((r) => r.id === t.id);
13225
- n !== -1 ? (a.messages[n] = t, console.log(`Mensagem com ID ${t.id} atualizada.`)) : (a.messages.push(t), console.log(`Nova mensagem com ID ${t.id} adicionada.`));
13226
- }
13227
- },
13228
- // Envia uma mensagem para o atendente
13229
- async sendMessageToAtendente(e, t, a, n, r) {
13230
- const o = this.attendants.find((l) => l.id === e);
13231
- if (!o || !o.channel_id) return;
13232
- const s = {
13233
- id: pv(),
13234
- // ID temporário até ser salvo no servidor
13235
- content: { type: "text", content: t },
13236
- created_at: (/* @__PURE__ */ new Date()).toISOString(),
13237
- sender: r
13238
- // Ajuste de acordo com o backend
13239
- };
13240
- o.messages.push(s);
13241
- try {
13242
- await Ie.post(`${n}${o.channel_id}/message/`, {
13243
- id: s.id,
13244
- content: s.content
13245
- }, {
13246
- headers: { Authorization: `Bearer ${a}` }
13247
- });
13248
- } catch (l) {
13249
- console.error("Erro ao enviar mensagem:", l);
13250
- }
13251
- },
13252
- // Verifica se o atendente tem próxima página de mensagens
13253
- hasNextPageForAtendente(e) {
13254
- const t = this.attendants.find((a) => a.id === e);
13255
- return t ? t.hasNextPage : !1;
13256
- }
13257
- }
13258
- });
13259
- function _y() {
13260
- const e = Cl();
13261
- if (console.log("Pinia status:", e), !e)
13262
- throw new Error("Pinia is not active. Ensure that Pinia is initialized in the parent app.");
13263
- return by();
13264
- }
13265
- const ky = {}, xy = { class: "loading" }, My = /* @__PURE__ */ v("svg", {
13257
+ }, wy = /* @__PURE__ */ At(gy, [["__scopeId", "data-v-19207e29"]]), by = {}, _y = { class: "loading" }, ky = /* @__PURE__ */ v("svg", {
13266
13258
  class: "spinner",
13267
13259
  xmlns: "http://www.w3.org/2000/svg",
13268
13260
  fill: "none",
@@ -13281,19 +13273,19 @@ const ky = {}, xy = { class: "loading" }, My = /* @__PURE__ */ v("svg", {
13281
13273
  fill: "currentColor",
13282
13274
  d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"
13283
13275
  })
13284
- ], -1), Ty = [
13285
- My
13276
+ ], -1), xy = [
13277
+ ky
13286
13278
  ];
13287
- function Dy(e, t) {
13288
- return w(), x("div", xy, Ty);
13279
+ function My(e, t) {
13280
+ return g(), x("div", _y, xy);
13289
13281
  }
13290
- const Py = /* @__PURE__ */ At(ky, [["render", Dy]]), $y = (e) => (Ct("data-v-c8068ca7"), e = e(), St(), e), Oy = { class: "chat-container" }, Cy = {
13282
+ const Ty = /* @__PURE__ */ At(by, [["render", My]]), Dy = (e) => (Ct("data-v-949055df"), e = e(), St(), e), Py = { class: "chat-container" }, $y = {
13291
13283
  key: 0,
13292
13284
  class: "chat-icon"
13293
- }, Sy = {
13285
+ }, Oy = {
13294
13286
  key: 0,
13295
13287
  class: "chat-content"
13296
- }, Ay = /* @__PURE__ */ $y(() => /* @__PURE__ */ v("svg", {
13288
+ }, Cy = /* @__PURE__ */ Dy(() => /* @__PURE__ */ v("svg", {
13297
13289
  class: "w-5 h-5",
13298
13290
  "aria-hidden": "true",
13299
13291
  xmlns: "http://www.w3.org/2000/svg",
@@ -13309,12 +13301,12 @@ const Py = /* @__PURE__ */ At(ky, [["render", Dy]]), $y = (e) => (Ct("data-v-c80
13309
13301
  "stroke-width": "2",
13310
13302
  d: "M6 18L17.94 6M18 18L6.06 6"
13311
13303
  })
13312
- ], -1)), Ry = [
13313
- Ay
13314
- ], Ey = {
13304
+ ], -1)), Sy = [
13305
+ Cy
13306
+ ], Ay = {
13315
13307
  key: 1,
13316
13308
  class: "h-full"
13317
- }, Ny = { key: 2 }, Iy = {
13309
+ }, Ry = { key: 2 }, Ey = {
13318
13310
  __name: "chatWindow",
13319
13311
  props: {
13320
13312
  token: { default: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzI2NjU5NDUwLCJpYXQiOjE3MjY1NzMwNTAsImp0aSI6ImJhODRkMTIwMTNiYjQzYTRiN2JlYmMxYTQ2ZDRkYmE4IiwidXNlcl9pZCI6ImRlYTVjMTNmLTQ0NjQtNGNjNi04NjUzLThjODUyNGFjZGQzYiJ9.sT4tLb9fvFXRt1eZTpmPn2COIRFOdl3yIhyknPBaafE", required: !0 },
@@ -13345,7 +13337,7 @@ const Py = /* @__PURE__ */ At(ky, [["render", Dy]]), $y = (e) => (Ct("data-v-c80
13345
13337
  }
13346
13338
  },
13347
13339
  setup(e) {
13348
- const t = e, a = _y(), n = z(!1), r = z(!1), o = z(null), s = J(() => a.attendants);
13340
+ const t = e, a = fl(), n = z(!1), r = z(!1), o = z(null), s = J(() => a.attendants);
13349
13341
  Be(async () => {
13350
13342
  await a.fetchAtendentes(t.token, t.get_attendants);
13351
13343
  });
@@ -13366,33 +13358,32 @@ const Py = /* @__PURE__ */ At(ky, [["render", Dy]]), $y = (e) => (Ct("data-v-c80
13366
13358
  };
13367
13359
  return Ge(() => t.socketMessage, (c, d) => {
13368
13360
  c !== d && i(c);
13369
- }), (c, d) => (w(), x("div", Oy, [
13361
+ }), (c, d) => (g(), x("div", Py, [
13370
13362
  v("div", {
13371
13363
  onClick: u,
13372
13364
  class: ge(n.value ? "chat-box open" : "chat-box closed")
13373
13365
  }, [
13374
- n.value ? U("", !0) : (w(), x("span", Cy, "💬")),
13375
- n.value ? (w(), De(ha, {
13366
+ n.value ? U("", !0) : (g(), x("span", $y, "💬")),
13367
+ n.value ? (g(), De(ha, {
13376
13368
  key: 1,
13377
13369
  name: "fade"
13378
13370
  }, {
13379
13371
  default: pe(() => [
13380
- r.value ? (w(), x("div", Sy, [
13372
+ r.value ? (g(), x("div", Oy, [
13381
13373
  v("button", {
13382
13374
  onClick: ka(l, ["stop"]),
13383
13375
  class: "close-button"
13384
- }, Ry),
13385
- g(a).loadingMessages ? (w(), De(Py, { key: 0 })) : o.value && !g(a).loadingMessages ? (w(), x("div", Ey, [
13376
+ }, Sy),
13377
+ w(a).loadingMessages ? (g(), De(Ty, { key: 0 })) : o.value && !w(a).loadingMessages ? (g(), x("div", Ay, [
13386
13378
  Le(wy, {
13387
- chatStore: g(a),
13388
13379
  attendant: e.attendant,
13389
13380
  selectedAtendente: o.value,
13390
13381
  token: e.token,
13391
13382
  getInternalChat: e.get_internal_chat,
13392
13383
  onVoltar: d[0] || (d[0] = (h) => o.value = null)
13393
- }, null, 8, ["chatStore", "attendant", "selectedAtendente", "token", "getInternalChat"])
13384
+ }, null, 8, ["attendant", "selectedAtendente", "token", "getInternalChat"])
13394
13385
  ])) : U("", !0),
13395
- o.value ? U("", !0) : (w(), x("div", Ny, [
13386
+ o.value ? U("", !0) : (g(), x("div", Ry, [
13396
13387
  Le(Zp, {
13397
13388
  attendant: e.attendant,
13398
13389
  atendentes: s.value,
@@ -13406,20 +13397,20 @@ const Py = /* @__PURE__ */ At(ky, [["render", Dy]]), $y = (e) => (Ct("data-v-c80
13406
13397
  ], 2)
13407
13398
  ]));
13408
13399
  }
13409
- }, wl = /* @__PURE__ */ At(Iy, [["__scopeId", "data-v-c8068ca7"]]);
13410
- function Yy(e) {
13411
- e.component("primarySelect", Uo), e.component("simpleModal", Go), e.component("simpleCard", Xo), e.component("instanceSelect", bs), e.component("calendar", cl), e.component("MFA", dl), e.component("MfaQrCode", Fp), e.component("chatWindow", wl);
13400
+ }, bl = /* @__PURE__ */ At(Ey, [["__scopeId", "data-v-949055df"]]);
13401
+ function Ny(e) {
13402
+ e.component("primarySelect", Uo), e.component("simpleModal", Go), e.component("simpleCard", Xo), e.component("instanceSelect", bs), e.component("calendar", cl), e.component("MFA", dl), e.component("MfaQrCode", Fp), e.component("chatWindow", bl);
13412
13403
  }
13413
- const Hy = {
13414
- install: Yy,
13404
+ const Ly = {
13405
+ install: Ny,
13415
13406
  primarySelect: Uo,
13416
13407
  simpleModal: Go,
13417
13408
  simpleCard: Xo,
13418
13409
  instanceSelect: bs,
13419
13410
  calendar: cl,
13420
13411
  MFA: dl,
13421
- chatWindow: wl
13412
+ chatWindow: bl
13422
13413
  };
13423
13414
  export {
13424
- Hy as default
13415
+ Ly as default
13425
13416
  };