@opens/widget-ui 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { ref as V, computed as p, toValue as Bt, reactive as Zo, watch as qe, nextTick as Ee, defineComponent as Z, createElementBlock as C, openBlock as g, normalizeClass as N, unref as R, renderSlot as j, useSlots as Pe, createBlock as z, withCtx as _, createElementVNode as S, createCommentVNode as O, withKeys as $t, createTextVNode as M, onMounted as Uo, onBeforeUnmount as Xo, normalizeStyle as _e, Fragment as fe, renderList as Se, resolveDynamicComponent as uo, Comment as Tt, Text as Pt, createVNode as F, isRef as Qo, toDisplayString as G, createSlots as ht, Transition as co, mergeProps as _t, pushScopeId as Yo, popScopeId as Ko, normalizeProps as Jo, guardReactiveProps as en, resolveComponent as He, createApp as tn, h as on, withScopeId as nn } from "vue";
1
+ import { ref as q, computed as p, toValue as Bt, reactive as Zo, watch as je, nextTick as Me, defineComponent as Z, createElementBlock as C, openBlock as w, normalizeClass as N, unref as R, renderSlot as V, useSlots as qe, createBlock as z, withCtx as _, createElementVNode as S, createCommentVNode as L, withKeys as $t, createTextVNode as M, onMounted as Uo, onBeforeUnmount as Xo, normalizeStyle as _e, Fragment as ve, renderList as Se, resolveDynamicComponent as uo, Comment as Tt, Text as Pt, createVNode as F, isRef as Qo, toDisplayString as G, createSlots as ht, Transition as co, mergeProps as _t, pushScopeId as Yo, popScopeId as Ko, normalizeProps as Jo, guardReactiveProps as en, resolveComponent as Ee, createApp as tn, h as on, withScopeId as nn } from "vue";
2
2
  function rn() {
3
3
  return {
4
4
  maskPhone: (i) => {
@@ -19,24 +19,24 @@ function rn() {
19
19
  maskCpf: (i) => i.replace(/\D/g, "").slice(0, 11).replace(/^(\d{3})(\d)/, "$1.$2").replace(/^(\d{3})\.(\d{3})(\d)/, "$1.$2.$3").replace(/^(\d{3})\.(\d{3})\.(\d{3})(\d)/, "$1.$2.$3-$4")
20
20
  };
21
21
  }
22
- const Oe = V([]), Ot = V(void 0);
22
+ const Pe = q([]), Ot = q(void 0);
23
23
  function Ke() {
24
24
  return {
25
25
  currentRuleId: Ot,
26
- history: Oe,
26
+ history: Pe,
27
27
  setCurrentRuleId: (r) => {
28
28
  Ot.value = r;
29
29
  },
30
30
  clearHistory: () => {
31
- Oe.value = [];
31
+ Pe.value = [];
32
32
  },
33
33
  pushHistory: (r) => {
34
- Oe.value.push(r);
34
+ Pe.value.push(r);
35
35
  },
36
36
  setHistory: (r) => {
37
- Oe.value = [...r];
37
+ Pe.value = [...r];
38
38
  },
39
- popHistory: () => Oe.value.pop()
39
+ popHistory: () => Pe.value.pop()
40
40
  };
41
41
  }
42
42
  const Ae = (e) => e === "name", Lt = (e) => !!e?.trim(), sn = (e) => {
@@ -44,24 +44,24 @@ const Ae = (e) => e === "name", Lt = (e) => !!e?.trim(), sn = (e) => {
44
44
  return [...t, ...o];
45
45
  };
46
46
  function an(e, t) {
47
- const { maskPhone: o, maskCpf: n } = rn(), { history: i } = Ke(), r = V(0), a = V("forward"), s = V(null), l = p(() => {
47
+ const { maskPhone: o, maskCpf: n } = rn(), { history: i } = Ke(), r = q(0), a = q("forward"), s = q(null), l = p(() => {
48
48
  const k = Bt(e), H = k.settings?.form && k.settings.form.fields || [];
49
49
  return sn(H);
50
- }), u = Zo(Object.fromEntries(l.value.map((k) => [k.name, ""]))), c = p(() => l.value[r.value]), d = p(() => r.value >= l.value.length - 1), m = p(() => i.value.length > 0 || r.value > 0), y = p(() => a.value === "back" ? "step-back" : "step-forward");
51
- qe(r, async () => {
52
- await Ee();
50
+ }), u = Zo(Object.fromEntries(l.value.map((k) => [k.name, ""]))), c = p(() => l.value[r.value]), d = p(() => r.value >= l.value.length - 1), h = p(() => i.value.length > 0 || r.value > 0), y = p(() => a.value === "back" ? "step-back" : "step-forward");
51
+ je(r, async () => {
52
+ await Me();
53
53
  const k = s.value;
54
54
  if (!k) return;
55
55
  (k.querySelector(".is-active input") ?? k.querySelector("input"))?.focus({ preventScroll: !0 });
56
56
  });
57
- const h = p(() => l.value.every((k) => !k.required || Lt(u[k.name]))), x = (k) => {
57
+ const m = p(() => l.value.every((k) => !k.required || Lt(u[k.name]))), x = (k) => {
58
58
  const H = l.value[k];
59
- return H ? H.required && !Lt(u[H.name]) ? !1 : k >= l.value.length - 1 ? h.value : !0 : h.value;
60
- }, b = p(() => x(r.value)), v = p(() => {
59
+ return H ? H.required && !Lt(u[H.name]) ? !1 : k >= l.value.length - 1 ? m.value : !0 : m.value;
60
+ }, b = p(() => x(r.value)), g = p(() => {
61
61
  const k = l.value.find((H) => Ae(H.name));
62
62
  return k ? u[k.name]?.trim().split(/\s+/)[0] ?? "" : "";
63
63
  }), f = (k) => {
64
- const H = l.value[k], D = v.value, ee = l.value.length ? `Passo ${k + 1} de ${l.value.length}` : "", U = Bt(e), X = k >= l.value.length - 1;
64
+ const H = l.value[k], D = g.value, ee = l.value.length ? `Passo ${k + 1} de ${l.value.length}` : "", U = Bt(e), X = k >= l.value.length - 1;
65
65
  if (!H)
66
66
  return {
67
67
  eyebrow: ee,
@@ -76,11 +76,11 @@ function an(e, t) {
76
76
  };
77
77
  const te = X ? D ? `Quase lá, ${D}.` : "Quase lá." : D ? `Olá, ${D}.` : "Olá.", le = H.required ? `Informe seu ${H.alias} para continuar.` : `Gostaria de deixar seu ${H.alias}?`;
78
78
  return { eyebrow: ee, title: te, subtitle: le };
79
- }, w = p(() => f(r.value)), A = (k) => k === "email" ? "email" : k === "phone" ? "tel" : "text", P = (k) => k === "email" ? "email" : k === "phone" ? "call" : Ae(k) ? "person" : k === "order" ? "receipt" : "badge", B = (k) => k.required ? `${k.alias} *` : k.alias, $ = (k) => Ae(k.name) ? "Seu nome" : k.name === "phone" ? "Seu telefone" : k.name === "email" ? "Seu e-mail" : k.name === "cpf" ? "000.000.000-00" : k.alias, T = (k) => {
79
+ }, v = p(() => f(r.value)), A = (k) => k === "email" ? "email" : k === "phone" ? "tel" : "text", P = (k) => k === "email" ? "email" : k === "phone" ? "call" : Ae(k) ? "person" : k === "order" ? "receipt" : "badge", B = (k) => k.required ? `${k.alias} *` : k.alias, $ = (k) => Ae(k.name) ? "Seu nome" : k.name === "phone" ? "Seu telefone" : k.name === "email" ? "Seu e-mail" : k.name === "cpf" ? "000.000.000-00" : k.alias, T = (k) => {
80
80
  if (k === "phone") return o;
81
81
  if (k === "cpf") return n;
82
82
  }, I = () => {
83
- h.value && t("submit", { ...u });
83
+ m.value && t("submit", { ...u });
84
84
  };
85
85
  return {
86
86
  stepTransition: y,
@@ -88,9 +88,9 @@ function an(e, t) {
88
88
  canContinue: b,
89
89
  currentStep: r,
90
90
  isLastStep: d,
91
- stepIntro: w,
91
+ stepIntro: v,
92
92
  fieldHost: s,
93
- showBack: m,
93
+ showBack: h,
94
94
  fields: l,
95
95
  form: u,
96
96
  continueStep: () => {
@@ -196,10 +196,10 @@ const un = /* @__PURE__ */ Z({
196
196
  },
197
197
  setup(e) {
198
198
  const t = e, { fontClass: o, colorClass: n, weightClass: i, sizeClass: r } = ln("text", t);
199
- return (a, s) => (g(), C("p", {
199
+ return (a, s) => (w(), C("p", {
200
200
  class: N(["yu-font-primary yu-text-sm yu-font-normal yu-text-gray-900", [R(o), R(n), R(i), R(r)]])
201
201
  }, [
202
- j(a.$slots, "default", {}, void 0, !0)
202
+ V(a.$slots, "default", {}, void 0, !0)
203
203
  ], 2));
204
204
  }
205
205
  }), Je = (e, t) => {
@@ -207,7 +207,7 @@ const un = /* @__PURE__ */ Z({
207
207
  for (const [n, i] of t)
208
208
  o[n] = i;
209
209
  return o;
210
- }, q = /* @__PURE__ */ Je(un, [["__scopeId", "data-v-65153daa"]]), me = /* @__PURE__ */ Z({
210
+ }, j = /* @__PURE__ */ Je(un, [["__scopeId", "data-v-65153daa"]]), he = /* @__PURE__ */ Z({
211
211
  __name: "app-group",
212
212
  props: {
213
213
  fit: { type: Boolean },
@@ -240,7 +240,7 @@ const un = /* @__PURE__ */ Z({
240
240
  divisor: { type: Boolean }
241
241
  },
242
242
  setup(e) {
243
- const t = e, o = p(() => t.fit ? "yu-w-fit yu-h-fit" : t.full ? "yu-w-full yu-h-full" : ""), n = p(() => t.justifyEnd ? "yu-items-end yu-justify-end" : t.center ? "yu-items-center yu-justify-center" : t.centerBetween ? "yu-items-center yu-justify-between" : ""), i = p(() => t.row ? "yu-flex-row" : t.col ? "yu-flex-col" : "yu-flex-row"), r = p(() => t.gapBase ? "yu-gap-4" : t.gapXs ? "yu-gap-1" : t.gapSm ? "yu-gap-2" : t.gapMd ? "yu-gap-6" : t.gapLg ? "yu-gap-8" : t.gapNone ? "yu-gap-0" : "yu-gap-4"), a = p(() => t.wrap ? "yu-flex-wrap" : ""), s = p(() => t.paddingXs ? "yu-p-1" : t.paddingSm ? "yu-p-2" : t.paddingBase ? "yu-p-4" : t.paddingMd ? "yu-p-6" : t.paddingLg ? "yu-p-8" : ""), l = p(() => t.border ? "yu-border" : t.borderPrimary ? "yu-border yu-border-primary" : ""), u = p(() => t.rounded ? "yu-rounded-md" : t.roundedTop ? "yu-rounded-t-md" : t.roundedBottom ? "yu-rounded-b-md" : ""), c = p(() => t.bgPrimary ? "yu-bg-primary" : t.bgWhite ? "yu-bg-white" : ""), d = p(() => t.divisor && t.col ? "yu-divide-y" : t.divisor && t.row ? "yu-divide-x" : ""), m = p(() => [
243
+ const t = e, o = p(() => t.fit ? "yu-w-fit yu-h-fit" : t.full ? "yu-w-full yu-h-full" : ""), n = p(() => t.justifyEnd ? "yu-items-end yu-justify-end" : t.center ? "yu-items-center yu-justify-center" : t.centerBetween ? "yu-items-center yu-justify-between" : ""), i = p(() => t.row ? "yu-flex-row" : t.col ? "yu-flex-col" : "yu-flex-row"), r = p(() => t.gapBase ? "yu-gap-4" : t.gapXs ? "yu-gap-1" : t.gapSm ? "yu-gap-2" : t.gapMd ? "yu-gap-6" : t.gapLg ? "yu-gap-8" : t.gapNone ? "yu-gap-0" : "yu-gap-4"), a = p(() => t.wrap ? "yu-flex-wrap" : ""), s = p(() => t.paddingXs ? "yu-p-1" : t.paddingSm ? "yu-p-2" : t.paddingBase ? "yu-p-4" : t.paddingMd ? "yu-p-6" : t.paddingLg ? "yu-p-8" : ""), l = p(() => t.border ? "yu-border" : t.borderPrimary ? "yu-border yu-border-primary" : ""), u = p(() => t.rounded ? "yu-rounded-md" : t.roundedTop ? "yu-rounded-t-md" : t.roundedBottom ? "yu-rounded-b-md" : ""), c = p(() => t.bgPrimary ? "yu-bg-primary" : t.bgWhite ? "yu-bg-white" : ""), d = p(() => t.divisor && t.col ? "yu-divide-y" : t.divisor && t.row ? "yu-divide-x" : ""), h = p(() => [
244
244
  i.value,
245
245
  r.value,
246
246
  a.value,
@@ -252,10 +252,10 @@ const un = /* @__PURE__ */ Z({
252
252
  o.value,
253
253
  d.value
254
254
  ]);
255
- return (y, h) => (g(), C("div", {
256
- class: N(["yu-flex", m.value])
255
+ return (y, m) => (w(), C("div", {
256
+ class: N(["yu-flex", h.value])
257
257
  }, [
258
- j(y.$slots, "default")
258
+ V(y.$slots, "default")
259
259
  ], 2));
260
260
  }
261
261
  }), cn = {
@@ -276,21 +276,21 @@ const un = /* @__PURE__ */ Z({
276
276
  },
277
277
  emits: ["update:modelValue", "keyup-enter"],
278
278
  setup(e, { expose: t, emit: o }) {
279
- const n = e, i = o, r = p(() => Pe());
279
+ const n = e, i = o, r = p(() => qe());
280
280
  function a(b) {
281
281
  return !!r.value[b];
282
282
  }
283
- const s = V(""), l = V(!1);
283
+ const s = q(""), l = q(!1);
284
284
  function u(b) {
285
285
  if (!n.maskFunction) return b;
286
286
  try {
287
- const v = n.maskFunction(b);
288
- return typeof v == "string" ? v : b;
287
+ const g = n.maskFunction(b);
288
+ return typeof g == "string" ? g : b;
289
289
  } catch {
290
290
  return b;
291
291
  }
292
292
  }
293
- qe(
293
+ je(
294
294
  () => n.modelValue,
295
295
  (b) => {
296
296
  if (b == null) {
@@ -301,7 +301,7 @@ const un = /* @__PURE__ */ Z({
301
301
  },
302
302
  { immediate: !0 }
303
303
  );
304
- const { width: c } = po(n), d = p(() => n.invalid ? "yu-text-red-500" : n.valid ? "yu-text-green-500" : ""), m = p(() => n.invalid ? "yu-text-red-600 placeholder:yu-text-red-300 placeholder:yu-font-medium" : n.valid ? "yu-text-green-700 placeholder:yu-font-medium" : "yu-text-gray-900 placeholder:yu-text-gray-400 placeholder:yu-font-medium"), y = p(() => n.invalid ? "yu-text-red-500" : n.valid ? "yu-text-green-500" : "yu-text-gray-500"), h = p(() => n.disabled ? "yu-opacity-50 yu-pointer-events-none" : "");
304
+ const { width: c } = po(n), d = p(() => n.invalid ? "yu-text-red-500" : n.valid ? "yu-text-green-500" : ""), h = p(() => n.invalid ? "yu-text-red-600 placeholder:yu-text-red-300 placeholder:yu-font-medium" : n.valid ? "yu-text-green-700 placeholder:yu-font-medium" : "yu-text-gray-900 placeholder:yu-text-gray-400 placeholder:yu-font-medium"), y = p(() => n.invalid ? "yu-text-red-500" : n.valid ? "yu-text-green-500" : "yu-text-gray-500"), m = p(() => n.disabled ? "yu-opacity-50 yu-pointer-events-none" : "");
305
305
  function x(b) {
306
306
  const f = b.target.value;
307
307
  s.value = n.maskFunction ? u(f) : f, i("update:modelValue", s.value);
@@ -309,26 +309,26 @@ const un = /* @__PURE__ */ Z({
309
309
  return t({
310
310
  focus: l,
311
311
  content: s
312
- }), (b, v) => (g(), z(me, {
313
- class: N([R(c), h.value]),
312
+ }), (b, g) => (w(), z(he, {
313
+ class: N([R(c), m.value]),
314
314
  col: "",
315
315
  "gap-none": ""
316
316
  }, {
317
317
  default: _(() => [
318
318
  S("label", cn, [
319
- a("default") ? (g(), z(q, {
319
+ a("default") ? (w(), z(j, {
320
320
  key: 0,
321
321
  small: "",
322
322
  gray: "",
323
323
  class: N([d.value])
324
324
  }, {
325
325
  default: _(() => [
326
- j(b.$slots, "default")
326
+ V(b.$slots, "default")
327
327
  ]),
328
328
  _: 3
329
- }, 8, ["class"])) : O("", !0),
329
+ }, 8, ["class"])) : L("", !0),
330
330
  S("input", {
331
- class: N(["yu-w-full yu-bg-transparent yu-border-0 yu-outline-none yu-p-0 yu-m-0 yu-appearance-none yu-font-primary yu-text-2xl yu-leading-tight yu-caret-gray-900", [m.value]]),
331
+ class: N(["yu-w-full yu-bg-transparent yu-border-0 yu-outline-none yu-p-0 yu-m-0 yu-appearance-none yu-font-primary yu-text-2xl yu-leading-tight yu-caret-gray-900", [h.value]]),
332
332
  value: s.value,
333
333
  type: e.type,
334
334
  placeholder: e.placeholder,
@@ -336,17 +336,17 @@ const un = /* @__PURE__ */ Z({
336
336
  maxlength: e.maxLength,
337
337
  "aria-invalid": e.invalid ? !0 : void 0,
338
338
  onInput: x,
339
- onFocus: v[0] || (v[0] = (f) => l.value = !0),
340
- onBlur: v[1] || (v[1] = (f) => l.value = !1),
341
- onKeyup: v[2] || (v[2] = $t((f) => i("keyup-enter"), ["enter"]))
339
+ onFocus: g[0] || (g[0] = (f) => l.value = !0),
340
+ onBlur: g[1] || (g[1] = (f) => l.value = !1),
341
+ onKeyup: g[2] || (g[2] = $t((f) => i("keyup-enter"), ["enter"]))
342
342
  }, null, 42, dn)
343
343
  ]),
344
- a("feedback") ? (g(), C("div", {
344
+ a("feedback") ? (w(), C("div", {
345
345
  key: 0,
346
346
  class: N(["yu-mt-1", [y.value]])
347
347
  }, [
348
- j(b.$slots, "feedback")
349
- ], 2)) : O("", !0)
348
+ V(b.$slots, "feedback")
349
+ ], 2)) : L("", !0)
350
350
  ]),
351
351
  _: 3
352
352
  }, 8, ["class"]));
@@ -375,11 +375,11 @@ const ne = /* @__PURE__ */ Z({
375
375
  },
376
376
  setup(e) {
377
377
  const t = e, o = p(() => t.small ? "!yu-text-xs yu-w-4 yu-h-4" : t.large ? "!yu-text-2xl yu-w-8 yu-h-8" : t.extraLarge ? "!yu-text-4xl yu-w-10 yu-h-10" : "!yu-text-base yu-w-6 yu-h-6"), n = p(() => t.dark ? "yu-text-neutral-800 dark:yu-text-white" : t.light ? "yu-text-white dark:yu-text-neutral-800" : t.gray ? "yu-text-gray-500" : ""), i = p(() => t.outlined ? "material-symbols-outlined" : "material-icons");
378
- return (r, a) => (g(), C("div", {
378
+ return (r, a) => (w(), C("div", {
379
379
  class: N(["notranslate yu-flex yu-items-center yu-justify-center yu-text-center", [o.value, n.value, i.value]]),
380
380
  "data-testid": "app-icon"
381
381
  }, [
382
- j(r.$slots, "default")
382
+ V(r.$slots, "default")
383
383
  ], 2));
384
384
  }
385
385
  }), fn = ["disabled"], yn = { class: "yu-flex yu-items-center yu-justify-center yu-gap-2" }, Be = /* @__PURE__ */ Z({
@@ -402,58 +402,58 @@ const ne = /* @__PURE__ */ Z({
402
402
  },
403
403
  emits: ["click"],
404
404
  setup(e) {
405
- const t = e, o = p(() => Pe());
405
+ const t = e, o = p(() => qe());
406
406
  function n(y) {
407
407
  return !!o.value[y];
408
408
  }
409
- const { height: i, textSize: r, padding: a, width: s } = pn(t), l = p(() => t.soft ? "yu-bg-primary-50 !yu-text-primary-400" : t.alert ? "yu-bg-red-500 !yu-text-white" : t.warning ? "yu-bg-amber-500 !yu-text-white" : t.success ? "yu-bg-green-500 !yu-text-white" : t.outline ? "yu-bg-transparent !yu-border-gray-200 hover:!yu-bg-gray-100 hover:!yu-border-gray-300" : t.ghost ? "yu-bg-transparent !yu-text-gray-700 hover:!yu-bg-gray-100" : t.link ? "yu-bg-transparent !yu-text-blue-600 hover:yu-underline" : "yu-bg-primary-500 !yu-text-white"), u = p(() => t.block ? "yu-rounded-none" : t.round ? "yu-rounded-full" : "yu-rounded-lg"), c = p(() => t.icon && t.small ? "!yu-w-8 !yu-h-8 yu-p-0" : t.icon ? "!yu-w-11 !yu-h-11 yu-p-0" : a.value), d = p(() => t.icon ? "yu-justify-center" : "yu-justify-between"), m = p(() => t.disabled || t.loading ? "yu-opacity-50 yu-pointer-events-none" : "");
410
- return (y, h) => (g(), C("button", {
411
- class: N(["yu-inline-flex yu-items-center yu-gap-2 yu-cursor-pointer yu-transition-all yu-border yu-border-transparent disabled:yu-opacity-50 disabled:yu-pointer-events-none hover:yu-opacity-80 focus:yu-outline-hidden focus:yu-opacity-80", [R(r), l.value, u.value, R(s), R(i), m.value, c.value, d.value]]),
409
+ const { height: i, textSize: r, padding: a, width: s } = pn(t), l = p(() => t.soft ? "yu-bg-primary-50 !yu-text-primary-400" : t.alert ? "yu-bg-red-500 !yu-text-white" : t.warning ? "yu-bg-amber-500 !yu-text-white" : t.success ? "yu-bg-green-500 !yu-text-white" : t.outline ? "yu-bg-transparent !yu-border-gray-200 hover:!yu-bg-gray-100 hover:!yu-border-gray-300" : t.ghost ? "yu-bg-transparent !yu-text-gray-700 hover:!yu-bg-gray-100" : t.link ? "yu-bg-transparent !yu-text-blue-600 hover:yu-underline" : "yu-bg-primary-500 !yu-text-white"), u = p(() => t.block ? "yu-rounded-none" : t.round ? "yu-rounded-full" : "yu-rounded-lg"), c = p(() => t.icon && t.small ? "!yu-w-8 !yu-h-8 yu-p-0" : t.icon ? "!yu-w-11 !yu-h-11 yu-p-0" : a.value), d = p(() => t.icon ? "yu-justify-center" : "yu-justify-between"), h = p(() => t.disabled || t.loading ? "yu-opacity-50 yu-pointer-events-none" : "");
410
+ return (y, m) => (w(), C("button", {
411
+ class: N(["yu-inline-flex yu-items-center yu-gap-2 yu-cursor-pointer yu-transition-all yu-border yu-border-transparent disabled:yu-opacity-50 disabled:yu-pointer-events-none hover:yu-opacity-80 focus:yu-outline-hidden focus:yu-opacity-80", [R(r), l.value, u.value, R(s), R(i), h.value, c.value, d.value]]),
412
412
  type: "button",
413
413
  disabled: e.disabled || e.loading,
414
414
  "data-testid": "app-button",
415
- onClick: h[0] || (h[0] = (x) => y.$emit("click", x))
415
+ onClick: m[0] || (m[0] = (x) => y.$emit("click", x))
416
416
  }, [
417
417
  S("div", yn, [
418
- e.loading ? (g(), z(ne, {
418
+ e.loading ? (w(), z(ne, {
419
419
  key: 0,
420
420
  class: "yu-animate-spin yu-flex yu-items-center yu-justify-center",
421
421
  small: "",
422
422
  outlined: ""
423
423
  }, {
424
- default: _(() => [...h[1] || (h[1] = [
424
+ default: _(() => [...m[1] || (m[1] = [
425
425
  M("progress_activity", -1)
426
426
  ])]),
427
427
  _: 1
428
- })) : n("icon") ? (g(), z(ne, {
428
+ })) : n("icon") ? (w(), z(ne, {
429
429
  key: 1,
430
430
  small: ""
431
431
  }, {
432
432
  default: _(() => [
433
- j(y.$slots, "icon")
433
+ V(y.$slots, "icon")
434
434
  ]),
435
435
  _: 3
436
- })) : O("", !0),
437
- !e.loading && n("default") ? (g(), z(q, {
436
+ })) : L("", !0),
437
+ !e.loading && n("default") ? (w(), z(j, {
438
438
  key: 2,
439
439
  class: "!yu-text-inherit",
440
440
  small: ""
441
441
  }, {
442
442
  default: _(() => [
443
- j(y.$slots, "default")
443
+ V(y.$slots, "default")
444
444
  ]),
445
445
  _: 3
446
- })) : O("", !0)
446
+ })) : L("", !0)
447
447
  ]),
448
- !e.loading && n("trailing") ? (g(), z(ne, {
448
+ !e.loading && n("trailing") ? (w(), z(ne, {
449
449
  key: 0,
450
450
  small: ""
451
451
  }, {
452
452
  default: _(() => [
453
- j(y.$slots, "trailing")
453
+ V(y.$slots, "trailing")
454
454
  ]),
455
455
  _: 3
456
- })) : O("", !0)
456
+ })) : L("", !0)
457
457
  ], 10, fn));
458
458
  }
459
459
  }), hn = ["aria-hidden"], mn = /* @__PURE__ */ Z({
@@ -465,12 +465,12 @@ const ne = /* @__PURE__ */ Z({
465
465
  },
466
466
  emits: ["update:modelValue"],
467
467
  setup(e, { expose: t, emit: o }) {
468
- const n = e, i = o, r = Pe(), a = V(null), s = V(null), l = V(0), u = V(0), c = V(!1);
468
+ const n = e, i = o, r = qe(), a = q(null), s = q(null), l = q(0), u = q(0), c = q(!1);
469
469
  let d = null;
470
- const m = p(() => Math.max(n.modelValue, 0)), y = () => (r.default?.() ?? []).flatMap(($) => $.type === Tt || $.type === Pt ? [] : $.type === fe ? ($.children ?? []).filter(
470
+ const h = p(() => Math.max(n.modelValue, 0)), y = () => (r.default?.() ?? []).flatMap(($) => $.type === Tt || $.type === Pt ? [] : $.type === ve ? ($.children ?? []).filter(
471
471
  (T) => !!T && typeof T == "object" && T.type !== Tt && T.type !== Pt
472
- ) : [$]), h = ($) => {
473
- const T = Math.abs($ - m.value);
472
+ ) : [$]), m = ($) => {
473
+ const T = Math.abs($ - h.value);
474
474
  return T === 0 ? "is-active" : T === 1 ? "is-adjacent" : "is-far";
475
475
  }, x = ($) => {
476
476
  const T = s.value?.childElementCount || y().length, I = Math.min(Math.max($, 0), Math.max(T - 1, 0));
@@ -478,21 +478,21 @@ const ne = /* @__PURE__ */ Z({
478
478
  }, b = () => {
479
479
  const $ = a.value;
480
480
  $ && ($.scrollLeft && ($.scrollLeft = 0), $.scrollTop && ($.scrollTop = 0));
481
- }, v = () => {
481
+ }, g = () => {
482
482
  const $ = a.value, T = s.value;
483
483
  if (!$ || !T) return;
484
484
  b();
485
- const I = [...T.children], E = parseFloat(getComputedStyle(T).gap) || 0, W = parseFloat(getComputedStyle($).scrollPaddingTop) || 0, k = (U) => n.vertical ? U.offsetHeight : U.offsetWidth, H = I[m.value] ? k(I[m.value]) : 0, D = n.vertical && n.fill ? Math.max(($.clientHeight - H) / 2, 0) : W, ee = I.slice(0, m.value).reduce((U, X) => U + k(X) + E, 0);
485
+ const I = [...T.children], E = parseFloat(getComputedStyle(T).gap) || 0, W = parseFloat(getComputedStyle($).scrollPaddingTop) || 0, k = (U) => n.vertical ? U.offsetHeight : U.offsetWidth, H = I[h.value] ? k(I[h.value]) : 0, D = n.vertical && n.fill ? Math.max(($.clientHeight - H) / 2, 0) : W, ee = I.slice(0, h.value).reduce((U, X) => U + k(X) + E, 0);
486
486
  l.value = D - ee, u.value = n.vertical && !n.fill ? H + W * 2 : 0, c.value = !0;
487
487
  }, f = () => {
488
488
  d?.disconnect();
489
489
  const $ = a.value, T = s.value;
490
- if (!(!$ || !T) && (v(), !(typeof ResizeObserver > "u"))) {
491
- if (d = new ResizeObserver(v), d.observe($), n.vertical)
490
+ if (!(!$ || !T) && (g(), !(typeof ResizeObserver > "u"))) {
491
+ if (d = new ResizeObserver(g), d.observe($), n.vertical)
492
492
  for (const I of T.children) d.observe(I);
493
493
  $.removeEventListener("scroll", b), $.addEventListener("scroll", b, { passive: !0 });
494
494
  }
495
- }, w = p(() => [
495
+ }, v = p(() => [
496
496
  n.vertical ? "yu-carousel--vertical" : "yu-carousel--horizontal",
497
497
  { "is-ready": c.value, "yu-carousel--fill": n.fill }
498
498
  ]), A = p(() => n.vertical ? "yu-flex-col yu-items-stretch" : "yu-flex-row yu-items-center"), P = p(() => {
@@ -502,21 +502,21 @@ const ne = /* @__PURE__ */ Z({
502
502
  const $ = `${l.value}px`;
503
503
  return { transform: n.vertical ? `translate3d(0, ${$}, 0)` : `translate3d(${$}, 0, 0)` };
504
504
  });
505
- return qe(
505
+ return je(
506
506
  () => [n.vertical, n.fill, n.modelValue],
507
507
  async () => {
508
- await Ee(), f();
508
+ await Me(), f();
509
509
  }
510
510
  ), Uo(async () => {
511
- await Ee(), f();
511
+ await Me(), f();
512
512
  }), Xo(() => {
513
513
  d?.disconnect(), a.value?.removeEventListener("scroll", b);
514
514
  }), t({
515
- next: () => x(m.value + 1),
516
- prev: () => x(m.value - 1),
515
+ next: () => x(h.value + 1),
516
+ prev: () => x(h.value - 1),
517
517
  goTo: x
518
- }), ($, T) => (g(), C("div", {
519
- class: N(["yu-relative yu-w-full yu-overflow-hidden", w.value]),
518
+ }), ($, T) => (w(), C("div", {
519
+ class: N(["yu-relative yu-w-full yu-overflow-hidden", v.value]),
520
520
  ref_key: "rootRef",
521
521
  ref: a,
522
522
  "data-testid": "app-carousel",
@@ -528,13 +528,13 @@ const ne = /* @__PURE__ */ Z({
528
528
  ref: s,
529
529
  style: _e(B.value)
530
530
  }, [
531
- (g(!0), C(fe, null, Se(y(), (I, E) => (g(), C("div", {
532
- class: N(["yu-carousel-slide", h(E)]),
531
+ (w(!0), C(ve, null, Se(y(), (I, E) => (w(), C("div", {
532
+ class: N(["yu-carousel-slide", m(E)]),
533
533
  key: I.key ?? E,
534
- "aria-hidden": E !== m.value,
534
+ "aria-hidden": E !== h.value,
535
535
  "data-testid": "app-carousel-slide"
536
536
  }, [
537
- (g(), z(uo(I)))
537
+ (w(), z(uo(I)))
538
538
  ], 10, hn))), 128))
539
539
  ], 6)
540
540
  ], 6));
@@ -556,17 +556,17 @@ const ne = /* @__PURE__ */ Z({
556
556
  continueStep: u,
557
557
  canContinueAt: c,
558
558
  introFor: d,
559
- fieldPlaceholder: m,
559
+ fieldPlaceholder: h,
560
560
  fieldType: y,
561
- fieldMask: h,
561
+ fieldMask: m,
562
562
  goBack: x
563
563
  } = an(() => o.rule, n);
564
- return (b, v) => (g(), C("div", gn, [
564
+ return (b, g) => (w(), C("div", gn, [
565
565
  S("div", vn, [
566
566
  S("div", wn, [
567
567
  S("div", {
568
568
  class: N(["yu-flex yu-items-center yu-w-fit yu-justify-center yu-cursor-pointer yu-group", { "yu-invisible yu-pointer-events-none": !R(a) }]),
569
- onClick: v[0] || (v[0] = //@ts-ignore
569
+ onClick: g[0] || (g[0] = //@ts-ignore
570
570
  (...f) => R(x) && R(x)(...f))
571
571
  }, [
572
572
  F(ne, {
@@ -574,18 +574,18 @@ const ne = /* @__PURE__ */ Z({
574
574
  small: "",
575
575
  gray: ""
576
576
  }, {
577
- default: _(() => [...v[2] || (v[2] = [
577
+ default: _(() => [...g[2] || (g[2] = [
578
578
  M("chevron_left", -1)
579
579
  ])]),
580
580
  _: 1
581
581
  }),
582
- F(q, {
582
+ F(j, {
583
583
  class: "yu-transition-colors group-hover:!yu-text-gray-700",
584
584
  "extra-small": "",
585
585
  medium: "",
586
586
  gray: ""
587
587
  }, {
588
- default: _(() => [...v[3] || (v[3] = [
588
+ default: _(() => [...g[3] || (g[3] = [
589
589
  M("Voltar", -1)
590
590
  ])]),
591
591
  _: 1
@@ -594,9 +594,9 @@ const ne = /* @__PURE__ */ Z({
594
594
  ]),
595
595
  S("div", bn, [
596
596
  S("div", xn, [
597
- (g(!0), C(fe, null, Se(R(s), (f, w) => (g(), C("div", {
598
- class: N(["yu-h-1 yu-w-6 yu-rounded-full yu-transition-colors", w <= R(i) ? "yu-bg-gray-900" : "yu-bg-gray-200"]),
599
- key: w
597
+ (w(!0), C(ve, null, Se(R(s), (f, v) => (w(), C("div", {
598
+ class: N(["yu-h-1 yu-w-6 yu-rounded-full yu-transition-colors", v <= R(i) ? "yu-bg-gray-900" : "yu-bg-gray-200"]),
599
+ key: v
600
600
  }, null, 2))), 128))
601
601
  ])
602
602
  ])
@@ -609,61 +609,61 @@ const ne = /* @__PURE__ */ Z({
609
609
  F(yo, {
610
610
  class: "yu-w-full yu-h-full",
611
611
  modelValue: R(i),
612
- "onUpdate:modelValue": v[1] || (v[1] = (f) => Qo(i) ? i.value = f : null),
612
+ "onUpdate:modelValue": g[1] || (g[1] = (f) => Qo(i) ? i.value = f : null),
613
613
  vertical: "",
614
614
  fill: ""
615
615
  }, {
616
616
  default: _(() => [
617
- (g(!0), C(fe, null, Se(R(s), (f, w) => (g(), z(me, {
617
+ (w(!0), C(ve, null, Se(R(s), (f, v) => (w(), z(he, {
618
618
  class: "yu-w-full yu-gap-8",
619
619
  key: f.name,
620
620
  col: "",
621
621
  center: ""
622
622
  }, {
623
623
  default: _(() => [
624
- F(me, {
624
+ F(he, {
625
625
  class: "yu-w-full yu-relative yu-pr-6",
626
626
  col: "",
627
627
  "gap-sm": ""
628
628
  }, {
629
629
  default: _(() => [
630
- R(d)(w).title ? (g(), z(q, {
630
+ R(d)(v).title ? (w(), z(j, {
631
631
  key: 0,
632
632
  class: "yu-text-left",
633
633
  "extra-large": "",
634
634
  semibold: ""
635
635
  }, {
636
636
  default: _(() => [
637
- M(G(R(d)(w).title), 1)
637
+ M(G(R(d)(v).title), 1)
638
638
  ]),
639
639
  _: 2
640
- }, 1024)) : O("", !0),
641
- R(d)(w).subtitle ? (g(), z(q, {
640
+ }, 1024)) : L("", !0),
641
+ R(d)(v).subtitle ? (w(), z(j, {
642
642
  key: 1,
643
643
  class: "yu-text-left",
644
644
  small: "",
645
645
  gray: ""
646
646
  }, {
647
647
  default: _(() => [
648
- M(G(R(d)(w).subtitle), 1)
648
+ M(G(R(d)(v).subtitle), 1)
649
649
  ]),
650
650
  _: 2
651
- }, 1024)) : O("", !0),
652
- F(q, {
651
+ }, 1024)) : L("", !0),
652
+ F(j, {
653
653
  class: "yu-opacity-50 yu-absolute -yu-top-2 yu-right-0",
654
654
  gray: "",
655
655
  small: "",
656
656
  medium: ""
657
657
  }, {
658
658
  default: _(() => [
659
- M(G(w + 1), 1)
659
+ M(G(v + 1), 1)
660
660
  ]),
661
661
  _: 2
662
662
  }, 1024)
663
663
  ]),
664
664
  _: 2
665
665
  }, 1024),
666
- F(me, {
666
+ F(he, {
667
667
  class: "yu-w-full yu-items-center",
668
668
  col: "",
669
669
  "gap-md": ""
@@ -672,8 +672,8 @@ const ne = /* @__PURE__ */ Z({
672
672
  F(fo, {
673
673
  modelValue: R(l)[f.name],
674
674
  "onUpdate:modelValue": (A) => R(l)[f.name] = A,
675
- "mask-function": R(h)(f.name),
676
- placeholder: R(m)(f),
675
+ "mask-function": R(m)(f.name),
676
+ placeholder: R(h)(f),
677
677
  type: R(y)(f.name),
678
678
  onKeyupEnter: R(u),
679
679
  fluid: ""
@@ -685,14 +685,14 @@ const ne = /* @__PURE__ */ Z({
685
685
  }, 1032, ["modelValue", "onUpdate:modelValue", "mask-function", "placeholder", "type", "onKeyupEnter"]),
686
686
  F(Be, {
687
687
  fluid: "",
688
- disabled: !R(c)(w),
688
+ disabled: !R(c)(v),
689
689
  onClick: R(u)
690
690
  }, {
691
- trailing: _(() => [...v[4] || (v[4] = [
691
+ trailing: _(() => [...g[4] || (g[4] = [
692
692
  M("arrow_forward", -1)
693
693
  ])]),
694
694
  default: _(() => [
695
- M(G(w >= R(s).length - 1 ? "Finalizar" : "Continuar"), 1)
695
+ M(G(v >= R(s).length - 1 ? "Finalizar" : "Continuar"), 1)
696
696
  ]),
697
697
  _: 2
698
698
  }, 1032, ["disabled", "onClick"])
@@ -717,6 +717,10 @@ const ne = /* @__PURE__ */ Z({
717
717
  type: String,
718
718
  default: ""
719
719
  },
720
+ label: {
721
+ type: String,
722
+ default: ""
723
+ },
720
724
  outline: Boolean,
721
725
  ghost: Boolean,
722
726
  disabled: Boolean,
@@ -724,49 +728,43 @@ const ne = /* @__PURE__ */ Z({
724
728
  },
725
729
  emits: ["click"],
726
730
  setup(e) {
727
- const t = e, o = p(() => Pe());
728
- function n(u) {
729
- return !!o.value[u];
730
- }
731
- const i = p(() => n("default") || n("label")), r = p(() => t.outline ? "yu-bg-transparent !yu-border-gray-200 hover:!yu-bg-gray-100 hover:!yu-border-gray-300" : t.ghost ? "yu-bg-transparent !yu-text-gray-700 hover:!yu-bg-gray-100" : "yu-bg-gradient-to-br yu-from-primary-500 yu-to-secondary-500 yu-text-white"), a = p(() => i.value ? t.small ? "yu-h-12 yu-w-fit yu-px-3 yu-gap-2" : t.large ? "yu-h-16 yu-w-fit yu-px-5 yu-gap-3" : "yu-h-14 yu-w-fit yu-px-4 yu-gap-2" : t.small ? "yu-w-12 yu-h-12 yu-p-0" : t.large ? "yu-w-16 yu-h-16 yu-p-0" : "yu-w-14 yu-h-14 yu-p-0"), s = p(() => t.small ? "yu-w-6 yu-h-6" : t.large ? "yu-w-8 yu-h-8" : "yu-w-7 yu-h-7"), l = p(() => t.disabled || t.loading ? "yu-opacity-50 yu-pointer-events-none" : "");
732
- return (u, c) => (g(), C("button", {
733
- class: N(["yu-rounded-full yu-inline-flex yu-items-center yu-justify-center yu-cursor-pointer yu-overflow-hidden yu-transition-all yu-border yu-border-transparent hover:yu-opacity-80 focus:yu-outline-hidden focus:yu-opacity-80 disabled:yu-opacity-50 disabled:yu-pointer-events-none", [a.value, r.value, l.value]]),
731
+ const t = e, o = p(() => !!t.label.trim()), n = p(() => t.outline ? "yu-bg-transparent !yu-border-gray-200 hover:!yu-bg-gray-100 hover:!yu-border-gray-300" : t.ghost ? "yu-bg-transparent !yu-text-gray-700 hover:!yu-bg-gray-100" : "yu-bg-gradient-to-br yu-from-primary-500 yu-to-secondary-500 yu-text-white"), i = p(() => o.value ? t.small ? "yu-h-12 yu-w-fit yu-px-3 yu-gap-2" : t.large ? "yu-h-16 yu-w-fit yu-px-5 yu-gap-3" : "yu-h-14 yu-w-fit yu-px-4 yu-gap-2" : t.small ? "yu-w-12 yu-h-12 yu-p-0" : t.large ? "yu-w-16 yu-h-16 yu-p-0" : "yu-w-14 yu-h-14 yu-p-0"), r = p(() => t.small ? "yu-w-6 yu-h-6" : t.large ? "yu-w-8 yu-h-8" : "yu-w-7 yu-h-7"), a = p(() => t.disabled || t.loading ? "yu-opacity-50 yu-pointer-events-none" : "");
732
+ return (s, l) => (w(), C("button", {
733
+ class: N(["yu-rounded-full yu-inline-flex yu-items-center yu-justify-center yu-cursor-pointer yu-overflow-hidden yu-transition-all yu-border yu-border-transparent hover:yu-opacity-80 focus:yu-outline-hidden focus:yu-opacity-80 disabled:yu-opacity-50 disabled:yu-pointer-events-none", [i.value, n.value, a.value]]),
734
734
  type: "button",
735
735
  "data-testid": "app-anchor",
736
736
  disabled: e.disabled || e.loading,
737
- onClick: c[0] || (c[0] = (d) => u.$emit("click", d))
737
+ onClick: l[0] || (l[0] = (u) => s.$emit("click", u))
738
738
  }, [
739
- e.loading ? (g(), z(ne, {
739
+ e.loading ? (w(), z(ne, {
740
740
  key: 0,
741
741
  class: "yu-animate-spin",
742
742
  outlined: "",
743
743
  large: !e.small && !e.large,
744
744
  "extra-large": e.large
745
745
  }, {
746
- default: _(() => [...c[1] || (c[1] = [
746
+ default: _(() => [...l[1] || (l[1] = [
747
747
  M("progress_activity", -1)
748
748
  ])]),
749
749
  _: 1
750
- }, 8, ["large", "extra-large"])) : e.logo ? (g(), C("img", {
750
+ }, 8, ["large", "extra-large"])) : e.logo ? (w(), C("img", {
751
751
  key: 1,
752
- class: N(["yu-object-contain yu-pointer-events-none yu-select-none yu-shrink-0", s.value]),
752
+ class: N(["yu-object-contain yu-pointer-events-none yu-select-none yu-shrink-0", r.value]),
753
753
  src: e.logo,
754
754
  alt: "",
755
755
  "data-testid": "app-anchor-logo"
756
- }, null, 10, _n)) : O("", !0),
757
- i.value ? (g(), z(q, {
756
+ }, null, 10, _n)) : L("", !0),
757
+ o.value ? (w(), z(j, {
758
758
  key: 2,
759
759
  class: "!yu-text-inherit yu-whitespace-nowrap",
760
760
  small: !e.large,
761
761
  "data-testid": "app-anchor-label"
762
762
  }, {
763
763
  default: _(() => [
764
- j(u.$slots, "default", {}, () => [
765
- j(u.$slots, "label")
766
- ])
764
+ M(G(e.label), 1)
767
765
  ]),
768
- _: 3
769
- }, 8, ["small"])) : O("", !0)
766
+ _: 1
767
+ }, 8, ["small"])) : L("", !0)
770
768
  ], 10, $n));
771
769
  }
772
770
  }), kn = {
@@ -785,26 +783,26 @@ const ne = /* @__PURE__ */ Z({
785
783
  tertiary: Boolean
786
784
  },
787
785
  setup(e) {
788
- const t = e, o = p(() => Pe());
786
+ const t = e, o = p(() => qe());
789
787
  function n(u) {
790
788
  return !!o.value[u];
791
789
  }
792
790
  const i = p(() => t.tertiary), r = p(() => !i.value && t.secondary), a = p(() => !i.value && n("avatar")), s = p(() => i.value ? "yu-justify-center" : r.value ? "yu-flex-row-reverse" : ""), l = p(() => i.value ? "" : r.value ? "yu-rounded-br-none yu-bg-blue-100 yu-p-3" : "yu-rounded-bl-none yu-bg-gray-200 yu-p-3");
793
- return (u, c) => (g(), C("div", {
791
+ return (u, c) => (w(), C("div", {
794
792
  class: N(["yu-flex yu-items-end yu-gap-2 yu-w-full", s.value]),
795
793
  "data-testid": "app-message"
796
794
  }, [
797
- a.value ? (g(), C("div", kn, [
798
- j(u.$slots, "avatar")
799
- ])) : O("", !0),
795
+ a.value ? (w(), C("div", kn, [
796
+ V(u.$slots, "avatar")
797
+ ])) : L("", !0),
800
798
  S("div", {
801
799
  class: N(["yu-rounded-md yu-relative", l.value]),
802
800
  "data-testid": "app-message-bubble"
803
801
  }, [
804
- j(u.$slots, "default"),
805
- n("trailing") ? (g(), C("div", An, [
806
- j(u.$slots, "trailing")
807
- ])) : O("", !0)
802
+ V(u.$slots, "default"),
803
+ n("trailing") ? (w(), C("div", An, [
804
+ V(u.$slots, "trailing")
805
+ ])) : L("", !0)
808
806
  ], 2)
809
807
  ], 2));
810
808
  }
@@ -908,17 +906,17 @@ const ne = /* @__PURE__ */ Z({
908
906
  text: "Sim! É importante beber água regularmente, fazer pausas e usar protetor solar. Também vale escolher horários menos quentes, como o início da manhã ou o fim da tarde. Segurança e diversão devem andar juntas!"
909
907
  }
910
908
  ], r = (a) => `https://api.dicebear.com/10.x/marbles/svg?backgroundColor=&seed=${a === "operator" ? "operator" : "user"}`;
911
- return (a, s) => (g(), C("div", Cn, [
909
+ return (a, s) => (w(), C("div", Cn, [
912
910
  S("div", Sn, [
913
- n.value ? O("", !0) : (g(), C("div", Bn)),
914
- (g(), C(fe, null, Se(i, (l, u) => F(go, {
911
+ n.value ? L("", !0) : (w(), C("div", Bn)),
912
+ (w(), C(ve, null, Se(i, (l, u) => F(go, {
915
913
  key: u,
916
914
  primary: l.from === "operator",
917
915
  secondary: l.from === "contact",
918
916
  tertiary: l.from === "system"
919
917
  }, ht({
920
918
  default: _(() => [
921
- l.from == "system" ? (g(), z(q, {
919
+ l.from == "system" ? (w(), z(j, {
922
920
  key: 0,
923
921
  class: "yu-text-center",
924
922
  gray: "",
@@ -929,7 +927,7 @@ const ne = /* @__PURE__ */ Z({
929
927
  M(G(l.text), 1)
930
928
  ]),
931
929
  _: 2
932
- }, 1024)) : (g(), z(q, {
930
+ }, 1024)) : (w(), z(j, {
933
931
  key: 1,
934
932
  gray: "",
935
933
  small: "",
@@ -946,19 +944,19 @@ const ne = /* @__PURE__ */ Z({
946
944
  l.from !== "system" ? {
947
945
  name: "avatar",
948
946
  fn: _(() => [
949
- i[u + 1]?.from !== l.from ? (g(), C("div", Tn, [
947
+ i[u + 1]?.from !== l.from ? (w(), C("div", Tn, [
950
948
  S("img", {
951
949
  class: "yu-rounded-full yu-w-full yu-h-full yu-object-contain",
952
950
  src: r(l.from)
953
951
  }, null, 8, Pn)
954
- ])) : (g(), C("div", On))
952
+ ])) : (w(), C("div", On))
955
953
  ]),
956
954
  key: "0"
957
955
  } : void 0,
958
956
  l.from !== "system" ? {
959
957
  name: "trailing",
960
958
  fn: _(() => [
961
- F(q, {
959
+ F(j, {
962
960
  gray: "",
963
961
  "extra-small": "",
964
962
  medium: ""
@@ -1028,22 +1026,22 @@ const ne = /* @__PURE__ */ Z({
1028
1026
  emits: ["edge-click"],
1029
1027
  setup(e, { emit: t }) {
1030
1028
  const o = e, n = t, { history: i } = Ke(), r = p(() => i.value.length > 0), a = p(() => o.edges ?? []), s = p(() => o.rule.settings?.body);
1031
- return (l, u) => (g(), C("div", zn, [
1032
- r.value ? O("", !0) : (g(), C("div", Mn)),
1033
- F(me, {
1029
+ return (l, u) => (w(), C("div", zn, [
1030
+ r.value ? L("", !0) : (w(), C("div", Mn)),
1031
+ F(he, {
1034
1032
  class: "yu-px-6 yu-w-full",
1035
1033
  col: "",
1036
1034
  center: "",
1037
1035
  "gap-base": ""
1038
1036
  }, {
1039
1037
  default: _(() => [
1040
- s.value?.logo ? (g(), C("img", {
1038
+ s.value?.logo ? (w(), C("img", {
1041
1039
  key: 0,
1042
1040
  class: "yu-w-10 yu-h-10 yu-object-contain",
1043
1041
  src: s.value.logo,
1044
1042
  alt: ""
1045
- }, null, 8, En)) : O("", !0),
1046
- s.value?.eyebrow ? (g(), z(q, {
1043
+ }, null, 8, En)) : L("", !0),
1044
+ s.value?.eyebrow ? (w(), z(j, {
1047
1045
  key: 1,
1048
1046
  class: "yu-text-center yu-uppercase yu-tracking-widest yu-leading-none",
1049
1047
  "extra-small": "",
@@ -1053,8 +1051,8 @@ const ne = /* @__PURE__ */ Z({
1053
1051
  M(G(s.value.eyebrow), 1)
1054
1052
  ]),
1055
1053
  _: 1
1056
- })) : O("", !0),
1057
- s.value?.title ? (g(), z(q, {
1054
+ })) : L("", !0),
1055
+ s.value?.title ? (w(), z(j, {
1058
1056
  key: 2,
1059
1057
  class: "yu-text-center",
1060
1058
  "extra-large": "",
@@ -1064,8 +1062,8 @@ const ne = /* @__PURE__ */ Z({
1064
1062
  M(G(s.value.title), 1)
1065
1063
  ]),
1066
1064
  _: 1
1067
- })) : O("", !0),
1068
- s.value?.subtitle ? (g(), z(q, {
1065
+ })) : L("", !0),
1066
+ s.value?.subtitle ? (w(), z(j, {
1069
1067
  key: 3,
1070
1068
  class: "yu-w-64 yu-text-center",
1071
1069
  small: "",
@@ -1075,12 +1073,12 @@ const ne = /* @__PURE__ */ Z({
1075
1073
  M(G(s.value.subtitle), 1)
1076
1074
  ]),
1077
1075
  _: 1
1078
- })) : O("", !0)
1076
+ })) : L("", !0)
1079
1077
  ]),
1080
1078
  _: 1
1081
1079
  }),
1082
- a.value.length ? (g(), C("div", Hn, [
1083
- (g(!0), C(fe, null, Se(a.value.slice(0, 3), (c) => (g(), z(Be, {
1080
+ a.value.length ? (w(), C("div", Hn, [
1081
+ (w(!0), C(ve, null, Se(a.value.slice(0, 3), (c) => (w(), z(Be, {
1084
1082
  class: "hover:yu-translate-x-1 yu-max-w-[25rem]",
1085
1083
  key: c.id,
1086
1084
  outline: "",
@@ -1110,7 +1108,7 @@ const ne = /* @__PURE__ */ Z({
1110
1108
  S("div", {
1111
1109
  class: N(["yu-flex yu-items-start yu-overflow-x-auto yu-w-full invisible-scrollbar yu-pt-6", { "yu-justify-start": a.value.slice(3).length > 4, "yu-justify-center": a.value.slice(3).length <= 4 }])
1112
1110
  }, [
1113
- (g(!0), C(fe, null, Se(a.value.slice(3), (c) => (g(), C("div", {
1111
+ (w(!0), C(ve, null, Se(a.value.slice(3), (c) => (w(), C("div", {
1114
1112
  class: "yu-flex yu-flex-col yu-items-center yu-gap-2",
1115
1113
  key: c.id
1116
1114
  }, [
@@ -1131,7 +1129,7 @@ const ne = /* @__PURE__ */ Z({
1131
1129
  key: "0"
1132
1130
  } : void 0
1133
1131
  ]), 1032, ["onClick"]),
1134
- F(q, {
1132
+ F(j, {
1135
1133
  class: "yu-w-20 yu-text-center yu-leading-3 yu-line-clamp-2",
1136
1134
  "extra-small": ""
1137
1135
  }, {
@@ -1142,7 +1140,7 @@ const ne = /* @__PURE__ */ Z({
1142
1140
  }, 1024)
1143
1141
  ]))), 128))
1144
1142
  ], 2)
1145
- ])) : O("", !0)
1143
+ ])) : L("", !0)
1146
1144
  ]));
1147
1145
  }
1148
1146
  }), In = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAVCAYAAAAnzezqAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAVtSURBVHgBpVVriFVVFF6Pvc+5c+/MOM2Yo2hq41tDU1EsC50pU9NySqZUDCQiCwWZSKJQGOpHZjhpomOGNkE4pBQUgUIPGAz9Of0oGS0tCpWY0dIf93nO3q1zzzn3Xh+J1oHLPfusvb/v299ea22EO3hmz35RN2XGNyimOrZYr8g0aFZ1RH49k63VbIcogrsI4S6Wb4qhToGRmHwjk5IYypoLiu0hzjrbNn77xiW8FeHS+vdrdQOtR7ZPC8FkhbZOQIDRgIxByU/A5V/GaC2zEMQxLMatxJGL8wwU1wbvEtNk+zGTncc3p7b4+LhhS1SKPhKAdbJwlPwSjGAFFFWJPCQKCYq7sxQQczAHICQ3VkUilGxXYhCtb1Aupm9wYMm9eychwy6FfrMAOEVSARRgGy40AZiNCEMhoQj5FokruWGBKubEDgQiojW/lgTMH3qgpro21y7A7RIcwmWykm2lXcuuigICkBCsTH7NEUFkfXhU5aMxESakVUD+6PiuxcpmdxBioyz+XianZdJ98j+FA9sE/FoBEAriCBgt8o3Hcq2oIqEBSVRLRfFFoWepdWzXWGXsIUDyQJn5Z/Xgyiqb3TCiALOE/G3F5jryEJhjG9HEZ2orRNhYqPyCHCjFCMPNBGMi/Epl2bwpZZNOg7d8qOGWqVj/k9WWLpE9nshnn0ClR8uiuUR2IBLys9j6kOxifAR0kcA/KmBSntDCYB1xpldio8SdExJvkflN8p6Rbz0iplHGj4gDuRzmO3HZhL0DAH6PsXZLyrEXZEIqVihkrxL6fRppTiNU7x5M/F3nopkIKvej67v7RNSElI8LTcIsVWDPofLqFeBWhYMLyW0Yw8ZPkZs/5xrdJyY847KtId+m2cFJhGZE66Ft70hP8V1GHFRUGMaoErGlQfmIkHuUhq/JGhiAS1UJ4DNSt0ll3BccNh0IOMO6djKBeUx8/XPIwIgtucaLrTXpBiw45oi4NC2ZqRruJ7wT5OSvWJ/nogsrRLhHycttQf6RWHFaiKbAVTgvifdLOZHk3BT1SiebGJxllatHir3JwB1AM7lKq8tgC1cdyF9R5B9z0esr3H1xpVidhLqgZ9haweGcylTLZlLaqD0OQX+ygGvBy7/05P796UCAOEB7FHoHsZ6/YJNbRqS3S4LVSLJ+nvTtcd+Fb0RETzVnTuXA3cWE9yvM7/Wsv9BRNAvBP02Mm4DgiuRKL7HfJPkdlR2AZyCoin5A/ztFtMu45ljrJ52b4/JXR05t6F47fedy2fk+1k5nUtFWT9usk4epvvK/lDqdIVb2ZD13dEL5n0nh73ZJr0A0r8lxDWfG88yFNcqolAh/Oej7iJnpijQFx+kmaLpGmCkDR1xa7fxR3V/Z+EqNaN3M9553yWwVu8YU7SdLHOcCweua/F4RclJihkulCRgdmYlqn+JykzuhWO86KlsKy/Lwko+3P1spgOKX7r72g57NLZIS+kAI0kylboYaTZNCfCDIBWmtFDSeiDyub1Jxb6C4xmNxIU4gRHJmx/Wt/6a34eYH3xoHpFdLpm+SnQ2N22h4sQgYhgTXdb+wQVV8q2xg0tQ+XdT97qrbEhA/Hcs7kphxnhMHXhGQCSIg6v8QVkkwrrA7uqyKIsN2W7wJAwHS17w5zd07f7sjASUhHR1UcxIXCFg7sV0sgnTZARNdMCAiDKqKS6d8kZmNzQc799wM+7YExE9bWxu3ZKctEGvbmf1FQuaWGxdAOQHLF5EIPqN0et7DXV1//W8BlU/XUx3Dqtlbr8msF7KRlW6UckaaHLC3qvnDnT/8G85/FhA/h9s6HFKZVulya6SC5Ao30l3xdym7o5C2B5p7dgzeav0/0mtgehRo/YYAAAAASUVORK5CYII=", Dn = { class: "yu-w-full yu-shrink-0 yu-border-b yu-border-gray-200 yu-flex yu-items-center yu-px-4 yu-justify-center yu-h-[4.4rem]" }, jn = { class: "yu-flex yu-items-center yu-gap-3 yu-min-w-0" }, qn = ["src"], Vn = { class: "yu-flex yu-flex-col yu-items-start yu-justify-center yu-min-w-0" }, Wn = { class: "yu-flex yu-flex-col yu-w-full yu-flex-1 yu-min-h-0" }, Gn = {
@@ -1159,39 +1157,39 @@ const ne = /* @__PURE__ */ Z({
1159
1157
  emits: ["edge-click", "submit", "close", "back"],
1160
1158
  setup(e, { emit: t }) {
1161
1159
  const o = e, n = t, { history: i, currentRuleId: r } = Ke(), a = (f) => {
1162
- const w = new Set(Object.values(f.edges).flatMap((A) => A.map((P) => P.nextRuleId)));
1163
- return f.rules.find((A) => !w.has(A.id)) ?? f.rules[0];
1164
- }, s = (f, w) => {
1160
+ const v = new Set(Object.values(f.edges).flatMap((A) => A.map((P) => P.nextRuleId)));
1161
+ return f.rules.find((A) => !v.has(A.id)) ?? f.rules[0];
1162
+ }, s = (f, v) => {
1165
1163
  const A = new Map(f.rules.map((P) => [P.id, P]));
1166
- return (f.edges[w] ?? []).flatMap((P) => {
1164
+ return (f.edges[v] ?? []).flatMap((P) => {
1167
1165
  const B = A.get(P.nextRuleId);
1168
1166
  return B ? [B] : [];
1169
1167
  });
1170
1168
  }, l = p(() => new Map(o.workflow.rules.map((f) => [f.id, f]))), u = p(() => a(o.workflow)), c = p(() => {
1171
1169
  const f = r.value;
1172
1170
  return f && l.value.get(f) || u.value;
1173
- }), d = p(() => s(o.workflow, c.value.id)), m = p(() => i.value.length > 0), y = p(() => m.value && c.value.action !== "identification"), h = p(() => o.config.configurations.general.isClosable), x = {
1171
+ }), d = p(() => s(o.workflow, c.value.id)), h = p(() => i.value.length > 0), y = p(() => h.value && c.value.action !== "identification"), m = p(() => o.config.configurations.general.isClosable), x = {
1174
1172
  identification: ho,
1175
1173
  service: vo,
1176
1174
  screen: wo
1177
1175
  }, b = p(() => {
1178
1176
  const f = c.value.action;
1179
1177
  return f in x ? x[f] : void 0;
1180
- }), v = p(() => o.fullscreen ? "yu-w-screen yu-h-screen" : "yu-w-[24.4rem] yu-h-[38rem] widget-shadow yu-rounded-2xl");
1181
- return (f, w) => (g(), C("div", {
1182
- class: N(["yu-flex yu-flex-col yu-bg-white yu-overflow-hidden yu-relative", [v.value]]),
1178
+ }), g = p(() => o.fullscreen ? "yu-w-screen yu-h-screen" : "yu-w-[24.4rem] yu-h-[38rem] widget-shadow yu-rounded-2xl");
1179
+ return (f, v) => (w(), C("div", {
1180
+ class: N(["yu-flex yu-flex-col yu-bg-white yu-overflow-hidden yu-relative", [g.value]]),
1183
1181
  "data-testid": "app-widget-view"
1184
1182
  }, [
1185
1183
  S("div", Dn, [
1186
1184
  S("div", jn, [
1187
- c.value.settings?.header?.logo ? (g(), C("img", {
1185
+ c.value.settings?.header?.logo ? (w(), C("img", {
1188
1186
  key: 0,
1189
1187
  class: "yu-w-9 yu-h-9 yu-object-contain yu-rounded-lg yu-shrink-0",
1190
1188
  src: c.value.settings.header.logo,
1191
1189
  alt: ""
1192
- }, null, 8, qn)) : O("", !0),
1190
+ }, null, 8, qn)) : L("", !0),
1193
1191
  S("div", Vn, [
1194
- c.value.settings?.header?.title ? (g(), z(q, {
1192
+ c.value.settings?.header?.title ? (w(), z(j, {
1195
1193
  key: 0,
1196
1194
  bold: ""
1197
1195
  }, {
@@ -1199,8 +1197,8 @@ const ne = /* @__PURE__ */ Z({
1199
1197
  M(G(c.value.settings.header.title), 1)
1200
1198
  ]),
1201
1199
  _: 1
1202
- })) : O("", !0),
1203
- c.value.settings?.header?.subtitle ? (g(), z(q, {
1200
+ })) : L("", !0),
1201
+ c.value.settings?.header?.subtitle ? (w(), z(j, {
1204
1202
  key: 1,
1205
1203
  class: "yu-truncate yu-min-w-0 yu-max-w-64",
1206
1204
  "extra-small": "",
@@ -1210,24 +1208,24 @@ const ne = /* @__PURE__ */ Z({
1210
1208
  M(G(c.value.settings.header.subtitle), 1)
1211
1209
  ]),
1212
1210
  _: 1
1213
- })) : O("", !0)
1211
+ })) : L("", !0)
1214
1212
  ])
1215
1213
  ]),
1216
- h.value ? (g(), C("button", {
1214
+ m.value ? (w(), C("button", {
1217
1215
  key: 0,
1218
1216
  class: "yu-ml-auto yu-cursor-pointer yu-transition-all yu-bg-transparent yu-border-0 yu-p-0 hover:yu-text-red-500",
1219
1217
  type: "button",
1220
1218
  "aria-label": "Fechar",
1221
1219
  "data-testid": "app-widget-close",
1222
- onClick: w[0] || (w[0] = (A) => n("close"))
1220
+ onClick: v[0] || (v[0] = (A) => n("close"))
1223
1221
  }, [
1224
1222
  F(ne, { gray: "" }, {
1225
- default: _(() => [...w[5] || (w[5] = [
1223
+ default: _(() => [...v[5] || (v[5] = [
1226
1224
  M("close", -1)
1227
1225
  ])]),
1228
1226
  _: 1
1229
1227
  })
1230
- ])) : O("", !0)
1228
+ ])) : L("", !0)
1231
1229
  ]),
1232
1230
  S("div", Wn, [
1233
1231
  F(co, {
@@ -1235,47 +1233,47 @@ const ne = /* @__PURE__ */ Z({
1235
1233
  mode: "out-in"
1236
1234
  }, {
1237
1235
  default: _(() => [
1238
- (g(), C("div", {
1236
+ (w(), C("div", {
1239
1237
  class: "yu-flex yu-flex-col yu-w-full yu-h-full yu-min-h-0",
1240
1238
  key: c.value.id
1241
1239
  }, [
1242
- y.value ? (g(), C("div", Gn, [
1240
+ y.value ? (w(), C("div", Gn, [
1243
1241
  S("div", {
1244
1242
  class: "yu-flex yu-items-center yu-w-fit yu-justify-center yu-cursor-pointer yu-group",
1245
- onClick: w[1] || (w[1] = (A) => n("back"))
1243
+ onClick: v[1] || (v[1] = (A) => n("back"))
1246
1244
  }, [
1247
1245
  F(ne, {
1248
1246
  class: "yu-transition-colors group-hover:!yu-text-gray-700",
1249
1247
  small: "",
1250
1248
  gray: ""
1251
1249
  }, {
1252
- default: _(() => [...w[6] || (w[6] = [
1250
+ default: _(() => [...v[6] || (v[6] = [
1253
1251
  M("chevron_left", -1)
1254
1252
  ])]),
1255
1253
  _: 1
1256
1254
  }),
1257
- F(q, {
1255
+ F(j, {
1258
1256
  class: "yu-transition-colors group-hover:!yu-text-gray-700",
1259
1257
  "extra-small": "",
1260
1258
  medium: "",
1261
1259
  gray: ""
1262
1260
  }, {
1263
- default: _(() => [...w[7] || (w[7] = [
1261
+ default: _(() => [...v[7] || (v[7] = [
1264
1262
  M("Voltar", -1)
1265
1263
  ])]),
1266
1264
  _: 1
1267
1265
  })
1268
1266
  ])
1269
- ])) : O("", !0),
1267
+ ])) : L("", !0),
1270
1268
  S("div", Zn, [
1271
- b.value ? (g(), z(uo(b.value), {
1269
+ b.value ? (w(), z(uo(b.value), {
1272
1270
  key: 0,
1273
1271
  rule: c.value,
1274
1272
  edges: d.value,
1275
- onSubmit: w[2] || (w[2] = (A) => n("submit", A)),
1276
- onBack: w[3] || (w[3] = (A) => n("back")),
1277
- onEdgeClick: w[4] || (w[4] = (A) => n("edge-click", A))
1278
- }, null, 40, ["rule", "edges"])) : O("", !0)
1273
+ onSubmit: v[2] || (v[2] = (A) => n("submit", A)),
1274
+ onBack: v[3] || (v[3] = (A) => n("back")),
1275
+ onEdgeClick: v[4] || (v[4] = (A) => n("edge-click", A))
1276
+ }, null, 40, ["rule", "edges"])) : L("", !0)
1279
1277
  ])
1280
1278
  ]))
1281
1279
  ]),
@@ -1288,11 +1286,11 @@ const ne = /* @__PURE__ */ Z({
1288
1286
  src: R(In),
1289
1287
  alt: "Opens"
1290
1288
  }, null, 8, Xn),
1291
- F(q, {
1289
+ F(j, {
1292
1290
  class: "!yu-text-xxs",
1293
1291
  gray: ""
1294
1292
  }, {
1295
- default: _(() => [...w[8] || (w[8] = [
1293
+ default: _(() => [...v[8] || (v[8] = [
1296
1294
  M("Powered By", -1),
1297
1295
  S("b", { class: "yu-ml-1" }, "Opens", -1)
1298
1296
  ])]),
@@ -1320,11 +1318,11 @@ const ne = /* @__PURE__ */ Z({
1320
1318
  },
1321
1319
  emits: ["update:modelValue", "keyup-enter"],
1322
1320
  setup(e, { expose: t, emit: o }) {
1323
- const n = e, i = o, r = p(() => Pe());
1321
+ const n = e, i = o, r = p(() => qe());
1324
1322
  function a(B) {
1325
1323
  return !!r.value[B];
1326
1324
  }
1327
- const s = V(""), l = V(!1), u = V(!1);
1325
+ const s = q(""), l = q(!1), u = q(!1);
1328
1326
  function c(B) {
1329
1327
  if (!n.maskFunction) return B;
1330
1328
  try {
@@ -1334,7 +1332,7 @@ const ne = /* @__PURE__ */ Z({
1334
1332
  return B;
1335
1333
  }
1336
1334
  }
1337
- qe(
1335
+ je(
1338
1336
  () => n.modelValue,
1339
1337
  (B) => {
1340
1338
  if (B == null) {
@@ -1348,7 +1346,7 @@ const ne = /* @__PURE__ */ Z({
1348
1346
  function d() {
1349
1347
  return !(l.value || s.value);
1350
1348
  }
1351
- const { height: m, textSize: y, width: h } = po(n), x = p(() => n.invalid ? "yu-border-red-500 focus-within:yu-border-red-500" : n.valid ? "yu-border-green-500 focus-within:yu-border-green-500" : "yu-border-gray-200 focus-within:!yu-border-primary/40 hover:yu-border-gray-300"), b = p(() => n.invalid ? "yu-text-red-500" : n.valid ? "yu-text-green-500" : "yu-text-gray-500"), v = p(() => n.small && d() ? "yu-translate-y-[7px]" : n.small && !d() ? "yu-translate-y-0" : d() ? "yu-translate-y-[11px]" : "yu-translate-y-0"), f = p(() => a("icon") || n.loading ? "yu-pl-[34px]" : "yu-pl-3"), w = p(() => n.block ? "yu-rounded-none" : n.round ? "yu-rounded-full" : "yu-rounded-lg"), A = p(() => n.disabled || n.loading ? "yu-opacity-50 yu-pointer-events-none" : "");
1349
+ const { height: h, textSize: y, width: m } = po(n), x = p(() => n.invalid ? "yu-border-red-500 focus-within:yu-border-red-500" : n.valid ? "yu-border-green-500 focus-within:yu-border-green-500" : "yu-border-gray-200 focus-within:!yu-border-primary/40 hover:yu-border-gray-300"), b = p(() => n.invalid ? "yu-text-red-500" : n.valid ? "yu-text-green-500" : "yu-text-gray-500"), g = p(() => n.small && d() ? "yu-translate-y-[7px]" : n.small && !d() ? "yu-translate-y-0" : d() ? "yu-translate-y-[11px]" : "yu-translate-y-0"), f = p(() => a("icon") || n.loading ? "yu-pl-[34px]" : "yu-pl-3"), v = p(() => n.block ? "yu-rounded-none" : n.round ? "yu-rounded-full" : "yu-rounded-lg"), A = p(() => n.disabled || n.loading ? "yu-opacity-50 yu-pointer-events-none" : "");
1352
1350
  function P(B) {
1353
1351
  const T = B.target.value;
1354
1352
  s.value = n.maskFunction ? c(T) : T, i("update:modelValue", s.value);
@@ -1356,43 +1354,43 @@ const ne = /* @__PURE__ */ Z({
1356
1354
  return t({
1357
1355
  focus: l,
1358
1356
  content: s
1359
- }), (B, $) => (g(), z(me, {
1360
- class: N([R(h)]),
1357
+ }), (B, $) => (w(), z(he, {
1358
+ class: N([R(m)]),
1361
1359
  col: "",
1362
1360
  "gap-none": ""
1363
1361
  }, {
1364
1362
  default: _(() => [
1365
- F(me, {
1363
+ F(he, {
1366
1364
  col: "",
1367
1365
  "gap-sm": ""
1368
1366
  }, {
1369
1367
  default: _(() => [
1370
- a("label") ? (g(), z(q, {
1368
+ a("label") ? (w(), z(j, {
1371
1369
  key: 0,
1372
1370
  small: "",
1373
1371
  medium: ""
1374
1372
  }, {
1375
1373
  default: _(() => [
1376
- j(B.$slots, "label")
1374
+ V(B.$slots, "label")
1377
1375
  ]),
1378
1376
  _: 3
1379
- })) : O("", !0),
1377
+ })) : L("", !0),
1380
1378
  S("label", {
1381
- class: N(["yu-relative yu-flex yu-flex-col yu-justify-center yu-items-start yu-border yu-cursor-text yu-transition-colors yu-w-full yu-bg-transparent", [w.value, A.value, R(m), x.value]]),
1379
+ class: N(["yu-relative yu-flex yu-flex-col yu-justify-center yu-items-start yu-border yu-cursor-text yu-transition-colors yu-w-full yu-bg-transparent", [v.value, A.value, R(h), x.value]]),
1382
1380
  "data-testid": "app-text-input"
1383
1381
  }, [
1384
1382
  S("div", Yn, [
1385
1383
  S("div", Kn, [
1386
- !e.loading && a("icon") ? (g(), z(ne, {
1384
+ !e.loading && a("icon") ? (w(), z(ne, {
1387
1385
  key: 0,
1388
1386
  small: ""
1389
1387
  }, {
1390
1388
  default: _(() => [
1391
- j(B.$slots, "icon")
1389
+ V(B.$slots, "icon")
1392
1390
  ]),
1393
1391
  _: 3
1394
- })) : O("", !0),
1395
- e.loading ? (g(), z(ne, {
1392
+ })) : L("", !0),
1393
+ e.loading ? (w(), z(ne, {
1396
1394
  key: 1,
1397
1395
  class: "yu-animate-spin",
1398
1396
  small: "",
@@ -1402,22 +1400,22 @@ const ne = /* @__PURE__ */ Z({
1402
1400
  M("progress_activity", -1)
1403
1401
  ])]),
1404
1402
  _: 1
1405
- })) : O("", !0)
1403
+ })) : L("", !0)
1406
1404
  ]),
1407
- F(q, {
1408
- class: N(["yu-py-1 yu-transition", [v.value]]),
1405
+ F(j, {
1406
+ class: N(["yu-py-1 yu-transition", [g.value]]),
1409
1407
  small: "",
1410
1408
  medium: "",
1411
1409
  gray: ""
1412
1410
  }, {
1413
1411
  default: _(() => [
1414
- j(B.$slots, "default")
1412
+ V(B.$slots, "default")
1415
1413
  ]),
1416
1414
  _: 3
1417
1415
  }, 8, ["class"])
1418
1416
  ]),
1419
1417
  S("input", {
1420
- class: N(["yu-absolute yu-inset-0 yu-w-full yu-h-full yu-outline-none yu-appearance-none yu-bg-transparent yu-pt-3 yu-pr-3 yu-text-gray-700 yu-font-primary yu-z-0", [R(y), f.value, w.value]]),
1418
+ class: N(["yu-absolute yu-inset-0 yu-w-full yu-h-full yu-outline-none yu-appearance-none yu-bg-transparent yu-pt-3 yu-pr-3 yu-text-gray-700 yu-font-primary yu-z-0", [R(y), f.value, v.value]]),
1421
1419
  value: s.value,
1422
1420
  type: e.passwordToggle && u.value ? "text" : e.type,
1423
1421
  disabled: e.disabled || e.loading,
@@ -1428,7 +1426,7 @@ const ne = /* @__PURE__ */ Z({
1428
1426
  onKeyup: $[2] || ($[2] = $t((T) => i("keyup-enter"), ["enter"]))
1429
1427
  }, null, 42, Jn),
1430
1428
  S("div", ei, [
1431
- e.maxLength ? (g(), z(q, {
1429
+ e.maxLength ? (w(), z(j, {
1432
1430
  key: 0,
1433
1431
  small: ""
1434
1432
  }, {
@@ -1436,8 +1434,8 @@ const ne = /* @__PURE__ */ Z({
1436
1434
  M(G(`${s.value.length} / ${e.maxLength}`), 1)
1437
1435
  ]),
1438
1436
  _: 1
1439
- })) : O("", !0),
1440
- e.type === "password" && e.passwordToggle ? (g(), C("button", {
1437
+ })) : L("", !0),
1438
+ e.type === "password" && e.passwordToggle ? (w(), C("button", {
1441
1439
  key: 1,
1442
1440
  class: "yu-bg-transparent yu-border-0 yu-p-0 yu-cursor-pointer yu-flex yu-items-center",
1443
1441
  type: "button",
@@ -1453,19 +1451,19 @@ const ne = /* @__PURE__ */ Z({
1453
1451
  ]),
1454
1452
  _: 1
1455
1453
  })
1456
- ])) : O("", !0),
1457
- j(B.$slots, "suffix")
1454
+ ])) : L("", !0),
1455
+ V(B.$slots, "suffix")
1458
1456
  ])
1459
1457
  ], 2)
1460
1458
  ]),
1461
1459
  _: 3
1462
1460
  }),
1463
- a("feedback") ? (g(), C("div", {
1461
+ a("feedback") ? (w(), C("div", {
1464
1462
  key: 0,
1465
1463
  class: N(["yu-mt-1", [b.value]])
1466
1464
  }, [
1467
- j(B.$slots, "feedback")
1468
- ], 2)) : O("", !0)
1465
+ V(B.$slots, "feedback")
1466
+ ], 2)) : L("", !0)
1469
1467
  ]),
1470
1468
  _: 3
1471
1469
  }, 8, ["class"]));
@@ -1520,68 +1518,62 @@ const ne = /* @__PURE__ */ Z({
1520
1518
  },
1521
1519
  emits: ["edge-click", "submit", "close", "back", "open"],
1522
1520
  setup(e, { emit: t }) {
1523
- const o = e, n = t, i = V(o.config.configurations.general.defaultBehavior === "active"), r = V(!i.value), { getOffset: a, getPosition: s, getTone: l } = ni(), u = p(() => o.config.configurations.anchor), c = p(() => o.config.configurations.appearance), d = p(() => {
1521
+ const o = e, n = t, i = q(o.config.configurations.general.defaultBehavior === "active"), r = q(!i.value), { getOffset: a, getPosition: s, getTone: l } = ni(), u = p(() => o.config.configurations.anchor), c = p(() => o.config.configurations.appearance), d = p(() => {
1524
1522
  if (!(i.value && o.fullscreen))
1525
1523
  return a(u.value.position, u.value.offset);
1526
- }), m = p(() => s(u.value.position)), y = p(() => ({
1524
+ }), h = p(() => s(u.value.position)), y = p(() => ({
1527
1525
  workflow: o.workflow,
1528
1526
  config: o.config,
1529
1527
  fullscreen: o.fullscreen
1530
- })), h = p(() => ({
1528
+ })), m = p(() => ({
1531
1529
  style: l(c.value.primaryColor),
1532
1530
  small: u.value.size === "small",
1533
1531
  large: u.value.size === "large",
1534
1532
  logo: u.value.logo ?? "",
1535
1533
  label: u.value.label ?? ""
1536
1534
  })), x = async () => {
1537
- i.value || (r.value = !1, await Ee(), i.value = !0, n("open"));
1535
+ i.value || (r.value = !1, await Me(), i.value = !0, n("open"));
1538
1536
  }, b = () => {
1539
1537
  i.value && (i.value = !1, n("close"));
1540
- }, v = () => {
1538
+ }, g = () => {
1541
1539
  r.value = !0;
1542
1540
  };
1543
- return qe(
1541
+ return je(
1544
1542
  () => o.config.configurations.general.defaultBehavior,
1545
1543
  (f) => {
1546
1544
  f === "active" ? x() : b();
1547
1545
  }
1548
- ), (f, w) => (g(), C("div", {
1546
+ ), (f, v) => (w(), C("div", {
1549
1547
  class: N(["yu-fixed yunique yu-z-[99999]", i.value && e.fullscreen ? "yu-inset-0" : ""]),
1550
1548
  "data-testid": "app-widget",
1551
- style: _e([{ "--widget-origin": m.value }, d.value])
1549
+ style: _e([{ "--widget-origin": h.value }, d.value])
1552
1550
  }, [
1553
1551
  F(co, {
1554
1552
  name: "widget",
1555
- onAfterLeave: v
1553
+ onAfterLeave: g
1556
1554
  }, {
1557
1555
  default: _(() => [
1558
- i.value ? (g(), z(bo, _t({ key: 0 }, y.value, {
1556
+ i.value ? (w(), z(bo, _t({ key: 0 }, y.value, {
1559
1557
  onClose: b,
1560
- onBack: w[0] || (w[0] = (A) => n("back")),
1561
- onSubmit: w[1] || (w[1] = (A) => n("submit", A)),
1562
- onEdgeClick: w[2] || (w[2] = (A) => n("edge-click", A))
1563
- }), null, 16)) : O("", !0)
1558
+ onBack: v[0] || (v[0] = (A) => n("back")),
1559
+ onSubmit: v[1] || (v[1] = (A) => n("submit", A)),
1560
+ onEdgeClick: v[2] || (v[2] = (A) => n("edge-click", A))
1561
+ }), null, 16)) : L("", !0)
1564
1562
  ]),
1565
1563
  _: 1
1566
1564
  }),
1567
- r.value ? (g(), z(mo, {
1565
+ r.value ? (w(), z(mo, {
1568
1566
  key: 0,
1569
- style: _e(h.value.style),
1570
- small: h.value.small,
1571
- large: h.value.large,
1572
- logo: h.value.logo,
1567
+ style: _e(m.value.style),
1568
+ small: m.value.small,
1569
+ large: m.value.large,
1570
+ logo: m.value.logo,
1571
+ label: m.value.label,
1573
1572
  onClick: x
1574
- }, {
1575
- default: _(() => [
1576
- h.value.label ? (g(), C(fe, { key: 0 }, [
1577
- M(G(h.value.label), 1)
1578
- ], 64)) : O("", !0)
1579
- ]),
1580
- _: 1
1581
- }, 8, ["style", "small", "large", "logo"])) : O("", !0)
1573
+ }, null, 8, ["style", "small", "large", "logo", "label"])) : L("", !0)
1582
1574
  ], 6));
1583
1575
  }
1584
- }), ri = /* @__PURE__ */ Je(ii, [["__scopeId", "data-v-5ddfd828"]]), si = ["top", "right", "bottom", "left"], Rt = ["start", "end"], zt = /* @__PURE__ */ si.reduce((e, t) => e.concat(t, t + "-" + Rt[0], t + "-" + Rt[1]), []), Fe = Math.min, $e = Math.max, ai = {
1576
+ }), ri = /* @__PURE__ */ Je(ii, [["__scopeId", "data-v-1610b3a0"]]), si = ["top", "right", "bottom", "left"], Rt = ["start", "end"], zt = /* @__PURE__ */ si.reduce((e, t) => e.concat(t, t + "-" + Rt[0], t + "-" + Rt[1]), []), He = Math.min, $e = Math.max, ai = {
1585
1577
  left: "right",
1586
1578
  right: "left",
1587
1579
  bottom: "top",
@@ -1591,7 +1583,7 @@ const ne = /* @__PURE__ */ Z({
1591
1583
  end: "start"
1592
1584
  };
1593
1585
  function mt(e, t, o) {
1594
- return $e(e, Fe(t, o));
1586
+ return $e(e, He(t, o));
1595
1587
  }
1596
1588
  function ke(e, t) {
1597
1589
  return typeof e == "function" ? e(t) : e;
@@ -1666,7 +1658,7 @@ function _o(e) {
1666
1658
  left: e
1667
1659
  };
1668
1660
  }
1669
- function Le(e) {
1661
+ function Oe(e) {
1670
1662
  const {
1671
1663
  x: t,
1672
1664
  y: o,
@@ -1689,7 +1681,7 @@ function Ht(e, t, o) {
1689
1681
  reference: n,
1690
1682
  floating: i
1691
1683
  } = e;
1692
- const r = pe(t), a = At(t), s = kt(a), l = de(t), u = r === "y", c = n.x + n.width / 2 - i.width / 2, d = n.y + n.height / 2 - i.height / 2, m = n[s] / 2 - i[s] / 2;
1684
+ const r = pe(t), a = At(t), s = kt(a), l = de(t), u = r === "y", c = n.x + n.width / 2 - i.width / 2, d = n.y + n.height / 2 - i.height / 2, h = n[s] / 2 - i[s] / 2;
1693
1685
  let y;
1694
1686
  switch (l) {
1695
1687
  case "top":
@@ -1724,10 +1716,10 @@ function Ht(e, t, o) {
1724
1716
  }
1725
1717
  switch (se(t)) {
1726
1718
  case "start":
1727
- y[a] -= m * (o && u ? -1 : 1);
1719
+ y[a] -= h * (o && u ? -1 : 1);
1728
1720
  break;
1729
1721
  case "end":
1730
- y[a] += m * (o && u ? -1 : 1);
1722
+ y[a] += h * (o && u ? -1 : 1);
1731
1723
  break;
1732
1724
  }
1733
1725
  return y;
@@ -1746,21 +1738,21 @@ const mi = async (e, t, o) => {
1746
1738
  }), {
1747
1739
  x: c,
1748
1740
  y: d
1749
- } = Ht(u, n, l), m = n, y = {}, h = 0;
1741
+ } = Ht(u, n, l), h = n, y = {}, m = 0;
1750
1742
  for (let x = 0; x < s.length; x++) {
1751
1743
  const {
1752
1744
  name: b,
1753
- fn: v
1745
+ fn: g
1754
1746
  } = s[x], {
1755
1747
  x: f,
1756
- y: w,
1748
+ y: v,
1757
1749
  data: A,
1758
1750
  reset: P
1759
- } = await v({
1751
+ } = await g({
1760
1752
  x: c,
1761
1753
  y: d,
1762
1754
  initialPlacement: n,
1763
- placement: m,
1755
+ placement: h,
1764
1756
  strategy: i,
1765
1757
  middlewareData: y,
1766
1758
  rects: u,
@@ -1770,25 +1762,25 @@ const mi = async (e, t, o) => {
1770
1762
  floating: t
1771
1763
  }
1772
1764
  });
1773
- c = f ?? c, d = w ?? d, y = {
1765
+ c = f ?? c, d = v ?? d, y = {
1774
1766
  ...y,
1775
1767
  [b]: {
1776
1768
  ...y[b],
1777
1769
  ...A
1778
1770
  }
1779
- }, P && h <= 50 && (h++, typeof P == "object" && (P.placement && (m = P.placement), P.rects && (u = P.rects === !0 ? await a.getElementRects({
1771
+ }, P && m <= 50 && (m++, typeof P == "object" && (P.placement && (h = P.placement), P.rects && (u = P.rects === !0 ? await a.getElementRects({
1780
1772
  reference: e,
1781
1773
  floating: t,
1782
1774
  strategy: i
1783
1775
  }) : P.rects), {
1784
1776
  x: c,
1785
1777
  y: d
1786
- } = Ht(u, m, l)), x = -1);
1778
+ } = Ht(u, h, l)), x = -1);
1787
1779
  }
1788
1780
  return {
1789
1781
  x: c,
1790
1782
  y: d,
1791
- placement: m,
1783
+ placement: h,
1792
1784
  strategy: i,
1793
1785
  middlewareData: y
1794
1786
  };
@@ -1807,9 +1799,9 @@ async function et(e, t) {
1807
1799
  boundary: u = "clippingAncestors",
1808
1800
  rootBoundary: c = "viewport",
1809
1801
  elementContext: d = "floating",
1810
- altBoundary: m = !1,
1802
+ altBoundary: h = !1,
1811
1803
  padding: y = 0
1812
- } = ke(t, e), h = _o(y), b = s[m ? d === "floating" ? "reference" : "floating" : d], v = Le(await r.getClippingRect({
1804
+ } = ke(t, e), m = _o(y), b = s[h ? d === "floating" ? "reference" : "floating" : d], g = Oe(await r.getClippingRect({
1813
1805
  element: (o = await (r.isElement == null ? void 0 : r.isElement(b))) == null || o ? b : b.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(s.floating)),
1814
1806
  boundary: u,
1815
1807
  rootBoundary: c,
@@ -1819,23 +1811,23 @@ async function et(e, t) {
1819
1811
  y: i,
1820
1812
  width: a.floating.width,
1821
1813
  height: a.floating.height
1822
- } : a.reference, w = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(s.floating)), A = await (r.isElement == null ? void 0 : r.isElement(w)) ? await (r.getScale == null ? void 0 : r.getScale(w)) || {
1814
+ } : a.reference, v = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(s.floating)), A = await (r.isElement == null ? void 0 : r.isElement(v)) ? await (r.getScale == null ? void 0 : r.getScale(v)) || {
1823
1815
  x: 1,
1824
1816
  y: 1
1825
1817
  } : {
1826
1818
  x: 1,
1827
1819
  y: 1
1828
- }, P = Le(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
1820
+ }, P = Oe(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
1829
1821
  elements: s,
1830
1822
  rect: f,
1831
- offsetParent: w,
1823
+ offsetParent: v,
1832
1824
  strategy: l
1833
1825
  }) : f);
1834
1826
  return {
1835
- top: (v.top - P.top + h.top) / A.y,
1836
- bottom: (P.bottom - v.bottom + h.bottom) / A.y,
1837
- left: (v.left - P.left + h.left) / A.x,
1838
- right: (P.right - v.right + h.right) / A.x
1827
+ top: (g.top - P.top + m.top) / A.y,
1828
+ bottom: (P.bottom - g.bottom + m.bottom) / A.y,
1829
+ left: (g.left - P.left + m.left) / A.x,
1830
+ right: (P.right - g.right + m.right) / A.x
1839
1831
  };
1840
1832
  }
1841
1833
  const gi = (e) => ({
@@ -1856,15 +1848,15 @@ const gi = (e) => ({
1856
1848
  } = ke(e, t) || {};
1857
1849
  if (u == null)
1858
1850
  return {};
1859
- const d = _o(c), m = {
1851
+ const d = _o(c), h = {
1860
1852
  x: o,
1861
1853
  y: n
1862
- }, y = At(i), h = kt(y), x = await a.getDimensions(u), b = y === "y", v = b ? "top" : "left", f = b ? "bottom" : "right", w = b ? "clientHeight" : "clientWidth", A = r.reference[h] + r.reference[y] - m[y] - r.floating[h], P = m[y] - r.reference[y], B = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(u));
1863
- let $ = B ? B[w] : 0;
1864
- (!$ || !await (a.isElement == null ? void 0 : a.isElement(B))) && ($ = s.floating[w] || r.floating[h]);
1865
- const T = A / 2 - P / 2, I = $ / 2 - x[h] / 2 - 1, E = Fe(d[v], I), W = Fe(d[f], I), k = E, H = $ - x[h] - W, D = $ / 2 - x[h] / 2 + T, ee = mt(k, D, H), U = !l.arrow && se(i) != null && D !== ee && r.reference[h] / 2 - (D < k ? E : W) - x[h] / 2 < 0, X = U ? D < k ? D - k : D - H : 0;
1854
+ }, y = At(i), m = kt(y), x = await a.getDimensions(u), b = y === "y", g = b ? "top" : "left", f = b ? "bottom" : "right", v = b ? "clientHeight" : "clientWidth", A = r.reference[m] + r.reference[y] - h[y] - r.floating[m], P = h[y] - r.reference[y], B = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(u));
1855
+ let $ = B ? B[v] : 0;
1856
+ (!$ || !await (a.isElement == null ? void 0 : a.isElement(B))) && ($ = s.floating[v] || r.floating[m]);
1857
+ const T = A / 2 - P / 2, I = $ / 2 - x[m] / 2 - 1, E = He(d[g], I), W = He(d[f], I), k = E, H = $ - x[m] - W, D = $ / 2 - x[m] / 2 + T, ee = mt(k, D, H), U = !l.arrow && se(i) != null && D !== ee && r.reference[m] / 2 - (D < k ? E : W) - x[m] / 2 < 0, X = U ? D < k ? D - k : D - H : 0;
1866
1858
  return {
1867
- [y]: m[y] + X,
1859
+ [y]: h[y] + X,
1868
1860
  data: {
1869
1861
  [y]: ee,
1870
1862
  centerOffset: D - ee - X,
@@ -1894,27 +1886,27 @@ const wi = function(e) {
1894
1886
  } = t, {
1895
1887
  crossAxis: c = !1,
1896
1888
  alignment: d,
1897
- allowedPlacements: m = zt,
1889
+ allowedPlacements: h = zt,
1898
1890
  autoAlignment: y = !0,
1899
- ...h
1900
- } = ke(e, t), x = d !== void 0 || m === zt ? vi(d || null, y, m) : m, b = await et(t, h), v = ((o = a.autoPlacement) == null ? void 0 : o.index) || 0, f = x[v];
1891
+ ...m
1892
+ } = ke(e, t), x = d !== void 0 || h === zt ? vi(d || null, y, h) : h, b = await et(t, m), g = ((o = a.autoPlacement) == null ? void 0 : o.index) || 0, f = x[g];
1901
1893
  if (f == null)
1902
1894
  return {};
1903
- const w = $o(f, r, await (l.isRTL == null ? void 0 : l.isRTL(u.floating)));
1895
+ const v = $o(f, r, await (l.isRTL == null ? void 0 : l.isRTL(u.floating)));
1904
1896
  if (s !== f)
1905
1897
  return {
1906
1898
  reset: {
1907
1899
  placement: x[0]
1908
1900
  }
1909
1901
  };
1910
- const A = [b[de(f)], b[w[0]], b[w[1]]], P = [...((n = a.autoPlacement) == null ? void 0 : n.overflows) || [], {
1902
+ const A = [b[de(f)], b[v[0]], b[v[1]]], P = [...((n = a.autoPlacement) == null ? void 0 : n.overflows) || [], {
1911
1903
  placement: f,
1912
1904
  overflows: A
1913
- }], B = x[v + 1];
1905
+ }], B = x[g + 1];
1914
1906
  if (B)
1915
1907
  return {
1916
1908
  data: {
1917
- index: v + 1,
1909
+ index: g + 1,
1918
1910
  overflows: P
1919
1911
  },
1920
1912
  reset: {
@@ -1938,7 +1930,7 @@ const wi = function(e) {
1938
1930
  ).every((W) => W <= 0))[0]) == null ? void 0 : i[0]) || $[0][0];
1939
1931
  return I !== s ? {
1940
1932
  data: {
1941
- index: v + 1,
1933
+ index: g + 1,
1942
1934
  overflows: P
1943
1935
  },
1944
1936
  reset: {
@@ -1963,19 +1955,19 @@ const wi = function(e) {
1963
1955
  } = t, {
1964
1956
  mainAxis: c = !0,
1965
1957
  crossAxis: d = !0,
1966
- fallbackPlacements: m,
1958
+ fallbackPlacements: h,
1967
1959
  fallbackStrategy: y = "bestFit",
1968
- fallbackAxisSideDirection: h = "none",
1960
+ fallbackAxisSideDirection: m = "none",
1969
1961
  flipAlignment: x = !0,
1970
1962
  ...b
1971
1963
  } = ke(e, t);
1972
1964
  if ((o = r.arrow) != null && o.alignmentOffset)
1973
1965
  return {};
1974
- const v = de(i), f = pe(s), w = de(s) === s, A = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), P = m || (w || !x ? [Ue(s)] : ci(s)), B = h !== "none";
1975
- !m && B && P.push(...yi(s, x, h, A));
1966
+ const g = de(i), f = pe(s), v = de(s) === s, A = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), P = h || (v || !x ? [Ue(s)] : ci(s)), B = m !== "none";
1967
+ !h && B && P.push(...yi(s, x, m, A));
1976
1968
  const $ = [s, ...P], T = await et(t, b), I = [];
1977
1969
  let E = ((n = r.flip) == null ? void 0 : n.overflows) || [];
1978
- if (c && I.push(T[v]), d) {
1970
+ if (c && I.push(T[g]), d) {
1979
1971
  const D = $o(i, a, A);
1980
1972
  I.push(T[D[0]], T[D[1]]);
1981
1973
  }
@@ -2036,9 +2028,9 @@ async function $i(e, t) {
2036
2028
  elements: i
2037
2029
  } = e, r = await (n.isRTL == null ? void 0 : n.isRTL(i.floating)), a = de(o), s = se(o), l = pe(o) === "y", u = xi.has(a) ? -1 : 1, c = r && l ? -1 : 1, d = ke(t, e);
2038
2030
  let {
2039
- mainAxis: m,
2031
+ mainAxis: h,
2040
2032
  crossAxis: y,
2041
- alignmentAxis: h
2033
+ alignmentAxis: m
2042
2034
  } = typeof d == "number" ? {
2043
2035
  mainAxis: d,
2044
2036
  crossAxis: 0,
@@ -2048,11 +2040,11 @@ async function $i(e, t) {
2048
2040
  crossAxis: d.crossAxis || 0,
2049
2041
  alignmentAxis: d.alignmentAxis
2050
2042
  };
2051
- return s && typeof h == "number" && (y = s === "end" ? h * -1 : h), l ? {
2043
+ return s && typeof m == "number" && (y = s === "end" ? m * -1 : m), l ? {
2052
2044
  x: y * c,
2053
- y: m * u
2045
+ y: h * u
2054
2046
  } : {
2055
- x: m * u,
2047
+ x: h * u,
2056
2048
  y: y * c
2057
2049
  };
2058
2050
  }
@@ -2093,11 +2085,11 @@ const _i = function(e) {
2093
2085
  limiter: s = {
2094
2086
  fn: (b) => {
2095
2087
  let {
2096
- x: v,
2088
+ x: g,
2097
2089
  y: f
2098
2090
  } = b;
2099
2091
  return {
2100
- x: v,
2092
+ x: g,
2101
2093
  y: f
2102
2094
  };
2103
2095
  }
@@ -2106,20 +2098,20 @@ const _i = function(e) {
2106
2098
  } = ke(e, t), u = {
2107
2099
  x: o,
2108
2100
  y: n
2109
- }, c = await et(t, l), d = pe(de(i)), m = xo(d);
2110
- let y = u[m], h = u[d];
2101
+ }, c = await et(t, l), d = pe(de(i)), h = xo(d);
2102
+ let y = u[h], m = u[d];
2111
2103
  if (r) {
2112
- const b = m === "y" ? "top" : "left", v = m === "y" ? "bottom" : "right", f = y + c[b], w = y - c[v];
2113
- y = mt(f, y, w);
2104
+ const b = h === "y" ? "top" : "left", g = h === "y" ? "bottom" : "right", f = y + c[b], v = y - c[g];
2105
+ y = mt(f, y, v);
2114
2106
  }
2115
2107
  if (a) {
2116
- const b = d === "y" ? "top" : "left", v = d === "y" ? "bottom" : "right", f = h + c[b], w = h - c[v];
2117
- h = mt(f, h, w);
2108
+ const b = d === "y" ? "top" : "left", g = d === "y" ? "bottom" : "right", f = m + c[b], v = m - c[g];
2109
+ m = mt(f, m, v);
2118
2110
  }
2119
2111
  const x = s.fn({
2120
2112
  ...t,
2121
- [m]: y,
2122
- [d]: h
2113
+ [h]: y,
2114
+ [d]: m
2123
2115
  });
2124
2116
  return {
2125
2117
  ...x,
@@ -2127,7 +2119,7 @@ const _i = function(e) {
2127
2119
  x: x.x - o,
2128
2120
  y: x.y - n,
2129
2121
  enabled: {
2130
- [m]: r,
2122
+ [h]: r,
2131
2123
  [d]: a
2132
2124
  }
2133
2125
  }
@@ -2149,17 +2141,17 @@ const _i = function(e) {
2149
2141
  apply: l = () => {
2150
2142
  },
2151
2143
  ...u
2152
- } = ke(e, t), c = await et(t, u), d = de(i), m = se(i), y = pe(i) === "y", {
2153
- width: h,
2144
+ } = ke(e, t), c = await et(t, u), d = de(i), h = se(i), y = pe(i) === "y", {
2145
+ width: m,
2154
2146
  height: x
2155
2147
  } = r.floating;
2156
- let b, v;
2157
- d === "top" || d === "bottom" ? (b = d, v = m === (await (a.isRTL == null ? void 0 : a.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (v = d, b = m === "end" ? "top" : "bottom");
2158
- const f = x - c.top - c.bottom, w = h - c.left - c.right, A = Fe(x - c[b], f), P = Fe(h - c[v], w), B = !t.middlewareData.shift;
2148
+ let b, g;
2149
+ d === "top" || d === "bottom" ? (b = d, g = h === (await (a.isRTL == null ? void 0 : a.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (g = d, b = h === "end" ? "top" : "bottom");
2150
+ const f = x - c.top - c.bottom, v = m - c.left - c.right, A = He(x - c[b], f), P = He(m - c[g], v), B = !t.middlewareData.shift;
2159
2151
  let $ = A, T = P;
2160
- if ((o = t.middlewareData.shift) != null && o.enabled.x && (T = w), (n = t.middlewareData.shift) != null && n.enabled.y && ($ = f), B && !m) {
2152
+ if ((o = t.middlewareData.shift) != null && o.enabled.x && (T = v), (n = t.middlewareData.shift) != null && n.enabled.y && ($ = f), B && !h) {
2161
2153
  const E = $e(c.left, 0), W = $e(c.right, 0), k = $e(c.top, 0), H = $e(c.bottom, 0);
2162
- y ? T = h - 2 * (E !== 0 || W !== 0 ? E + W : $e(c.left, c.right)) : $ = x - 2 * (k !== 0 || H !== 0 ? k + H : $e(c.top, c.bottom));
2154
+ y ? T = m - 2 * (E !== 0 || W !== 0 ? E + W : $e(c.left, c.right)) : $ = x - 2 * (k !== 0 || H !== 0 ? k + H : $e(c.top, c.bottom));
2163
2155
  }
2164
2156
  await l({
2165
2157
  ...t,
@@ -2167,7 +2159,7 @@ const _i = function(e) {
2167
2159
  availableHeight: $
2168
2160
  });
2169
2161
  const I = await a.getDimensions(s.floating);
2170
- return h !== I.width || x !== I.height ? {
2162
+ return m !== I.width || x !== I.height ? {
2171
2163
  reset: {
2172
2164
  rects: !0
2173
2165
  }
@@ -2182,7 +2174,7 @@ function ie(e) {
2182
2174
  function ue(e) {
2183
2175
  return ie(e).getComputedStyle(e);
2184
2176
  }
2185
- const Ft = Math.min, Re = Math.max, Xe = Math.round;
2177
+ const Ft = Math.min, Le = Math.max, Xe = Math.round;
2186
2178
  function ko(e) {
2187
2179
  const t = ue(e);
2188
2180
  let o = parseFloat(t.width), n = parseFloat(t.height);
@@ -2201,7 +2193,7 @@ function Ao() {
2201
2193
  function ce(e) {
2202
2194
  return e instanceof ie(e).HTMLElement;
2203
2195
  }
2204
- function ge(e) {
2196
+ function me(e) {
2205
2197
  return e instanceof ie(e).Element;
2206
2198
  }
2207
2199
  function Co(e) {
@@ -2231,7 +2223,7 @@ function Ct(e) {
2231
2223
  return ["html", "body", "#document"].includes(we(e));
2232
2224
  }
2233
2225
  function Bo(e) {
2234
- return ge(e) ? e : e.contextElement;
2226
+ return me(e) ? e : e.contextElement;
2235
2227
  }
2236
2228
  const To = { x: 1, y: 1 };
2237
2229
  function Ce(e) {
@@ -2241,40 +2233,40 @@ function Ce(e) {
2241
2233
  let a = (r ? Xe(o.width) : o.width) / n, s = (r ? Xe(o.height) : o.height) / i;
2242
2234
  return a && Number.isFinite(a) || (a = 1), s && Number.isFinite(s) || (s = 1), { x: a, y: s };
2243
2235
  }
2244
- function Ne(e, t, o, n) {
2236
+ function Fe(e, t, o, n) {
2245
2237
  var i, r;
2246
2238
  t === void 0 && (t = !1), o === void 0 && (o = !1);
2247
2239
  const a = e.getBoundingClientRect(), s = Bo(e);
2248
2240
  let l = To;
2249
- t && (n ? ge(n) && (l = Ce(n)) : l = Ce(e));
2241
+ t && (n ? me(n) && (l = Ce(n)) : l = Ce(e));
2250
2242
  const u = s ? ie(s) : window, c = !So() && o;
2251
- let d = (a.left + (c && ((i = u.visualViewport) == null ? void 0 : i.offsetLeft) || 0)) / l.x, m = (a.top + (c && ((r = u.visualViewport) == null ? void 0 : r.offsetTop) || 0)) / l.y, y = a.width / l.x, h = a.height / l.y;
2243
+ let d = (a.left + (c && ((i = u.visualViewport) == null ? void 0 : i.offsetLeft) || 0)) / l.x, h = (a.top + (c && ((r = u.visualViewport) == null ? void 0 : r.offsetTop) || 0)) / l.y, y = a.width / l.x, m = a.height / l.y;
2252
2244
  if (s) {
2253
- const x = ie(s), b = n && ge(n) ? ie(n) : n;
2254
- let v = x.frameElement;
2255
- for (; v && n && b !== x; ) {
2256
- const f = Ce(v), w = v.getBoundingClientRect(), A = getComputedStyle(v);
2257
- w.x += (v.clientLeft + parseFloat(A.paddingLeft)) * f.x, w.y += (v.clientTop + parseFloat(A.paddingTop)) * f.y, d *= f.x, m *= f.y, y *= f.x, h *= f.y, d += w.x, m += w.y, v = ie(v).frameElement;
2245
+ const x = ie(s), b = n && me(n) ? ie(n) : n;
2246
+ let g = x.frameElement;
2247
+ for (; g && n && b !== x; ) {
2248
+ const f = Ce(g), v = g.getBoundingClientRect(), A = getComputedStyle(g);
2249
+ v.x += (g.clientLeft + parseFloat(A.paddingLeft)) * f.x, v.y += (g.clientTop + parseFloat(A.paddingTop)) * f.y, d *= f.x, h *= f.y, y *= f.x, m *= f.y, d += v.x, h += v.y, g = ie(g).frameElement;
2258
2250
  }
2259
2251
  }
2260
- return { width: y, height: h, top: m, right: d + y, bottom: m + h, left: d, x: d, y: m };
2252
+ return { width: y, height: m, top: h, right: d + y, bottom: h + m, left: d, x: d, y: h };
2261
2253
  }
2262
- function ve(e) {
2254
+ function ge(e) {
2263
2255
  return ((Co(e) ? e.ownerDocument : e.document) || window.document).documentElement;
2264
2256
  }
2265
2257
  function ot(e) {
2266
- return ge(e) ? { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop } : { scrollLeft: e.pageXOffset, scrollTop: e.pageYOffset };
2258
+ return me(e) ? { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop } : { scrollLeft: e.pageXOffset, scrollTop: e.pageYOffset };
2267
2259
  }
2268
2260
  function Po(e) {
2269
- return Ne(ve(e)).left + ot(e).scrollLeft;
2261
+ return Fe(ge(e)).left + ot(e).scrollLeft;
2270
2262
  }
2271
- function Ie(e) {
2263
+ function Ne(e) {
2272
2264
  if (we(e) === "html") return e;
2273
- const t = e.assignedSlot || e.parentNode || Nt(e) && e.host || ve(e);
2265
+ const t = e.assignedSlot || e.parentNode || Nt(e) && e.host || ge(e);
2274
2266
  return Nt(t) ? t.host : t;
2275
2267
  }
2276
2268
  function Oo(e) {
2277
- const t = Ie(e);
2269
+ const t = Ne(e);
2278
2270
  return Ct(t) ? t.ownerDocument.body : ce(t) && tt(t) ? t : Oo(t);
2279
2271
  }
2280
2272
  function Qe(e, t) {
@@ -2284,24 +2276,24 @@ function Qe(e, t) {
2284
2276
  return i ? t.concat(r, r.visualViewport || [], tt(n) ? n : []) : t.concat(n, Qe(n));
2285
2277
  }
2286
2278
  function It(e, t, o) {
2287
- return t === "viewport" ? Le((function(n, i) {
2288
- const r = ie(n), a = ve(n), s = r.visualViewport;
2279
+ return t === "viewport" ? Oe((function(n, i) {
2280
+ const r = ie(n), a = ge(n), s = r.visualViewport;
2289
2281
  let l = a.clientWidth, u = a.clientHeight, c = 0, d = 0;
2290
2282
  if (s) {
2291
2283
  l = s.width, u = s.height;
2292
- const m = So();
2293
- (m || !m && i === "fixed") && (c = s.offsetLeft, d = s.offsetTop);
2284
+ const h = So();
2285
+ (h || !h && i === "fixed") && (c = s.offsetLeft, d = s.offsetTop);
2294
2286
  }
2295
2287
  return { width: l, height: u, x: c, y: d };
2296
- })(e, o)) : ge(t) ? Le((function(n, i) {
2297
- const r = Ne(n, !0, i === "fixed"), a = r.top + n.clientTop, s = r.left + n.clientLeft, l = ce(n) ? Ce(n) : { x: 1, y: 1 };
2288
+ })(e, o)) : me(t) ? Oe((function(n, i) {
2289
+ const r = Fe(n, !0, i === "fixed"), a = r.top + n.clientTop, s = r.left + n.clientLeft, l = ce(n) ? Ce(n) : { x: 1, y: 1 };
2298
2290
  return { width: n.clientWidth * l.x, height: n.clientHeight * l.y, x: s * l.x, y: a * l.y };
2299
- })(t, o)) : Le((function(n) {
2300
- const i = ve(n), r = ot(n), a = n.ownerDocument.body, s = Re(i.scrollWidth, i.clientWidth, a.scrollWidth, a.clientWidth), l = Re(i.scrollHeight, i.clientHeight, a.scrollHeight, a.clientHeight);
2291
+ })(t, o)) : Oe((function(n) {
2292
+ const i = ge(n), r = ot(n), a = n.ownerDocument.body, s = Le(i.scrollWidth, i.clientWidth, a.scrollWidth, a.clientWidth), l = Le(i.scrollHeight, i.clientHeight, a.scrollHeight, a.clientHeight);
2301
2293
  let u = -r.scrollLeft + Po(n);
2302
2294
  const c = -r.scrollTop;
2303
- return ue(a).direction === "rtl" && (u += Re(i.clientWidth, a.clientWidth) - s), { width: s, height: l, x: u, y: c };
2304
- })(ve(e)));
2295
+ return ue(a).direction === "rtl" && (u += Le(i.clientWidth, a.clientWidth) - s), { width: s, height: l, x: u, y: c };
2296
+ })(ge(e)));
2305
2297
  }
2306
2298
  function Dt(e) {
2307
2299
  return ce(e) && ue(e).position !== "fixed" ? e.offsetParent : null;
@@ -2311,20 +2303,20 @@ function jt(e) {
2311
2303
  let o = Dt(e);
2312
2304
  for (; o && Ci(o) && ue(o).position === "static"; ) o = Dt(o);
2313
2305
  return o && (we(o) === "html" || we(o) === "body" && ue(o).position === "static" && !gt(o)) ? t : o || (function(n) {
2314
- let i = Ie(n);
2306
+ let i = Ne(n);
2315
2307
  for (; ce(i) && !Ct(i); ) {
2316
2308
  if (gt(i)) return i;
2317
- i = Ie(i);
2309
+ i = Ne(i);
2318
2310
  }
2319
2311
  return null;
2320
2312
  })(e) || t;
2321
2313
  }
2322
2314
  function Si(e, t, o) {
2323
- const n = ce(t), i = ve(t), r = Ne(e, !0, o === "fixed", t);
2315
+ const n = ce(t), i = ge(t), r = Fe(e, !0, o === "fixed", t);
2324
2316
  let a = { scrollLeft: 0, scrollTop: 0 };
2325
2317
  const s = { x: 0, y: 0 };
2326
2318
  if (n || !n && o !== "fixed") if ((we(t) !== "body" || tt(i)) && (a = ot(t)), ce(t)) {
2327
- const l = Ne(t, !0);
2319
+ const l = Fe(t, !0);
2328
2320
  s.x = l.x + t.clientLeft, s.y = l.y + t.clientTop;
2329
2321
  } else i && (s.x = Po(i));
2330
2322
  return { x: r.left + a.scrollLeft - s.x, y: r.top + a.scrollTop - s.y, width: r.width, height: r.height };
@@ -2334,33 +2326,33 @@ const Bi = { getClippingRect: function(e) {
2334
2326
  const r = o === "clippingAncestors" ? (function(u, c) {
2335
2327
  const d = c.get(u);
2336
2328
  if (d) return d;
2337
- let m = Qe(u).filter(((b) => ge(b) && we(b) !== "body")), y = null;
2338
- const h = ue(u).position === "fixed";
2339
- let x = h ? Ie(u) : u;
2340
- for (; ge(x) && !Ct(x); ) {
2341
- const b = ue(x), v = gt(x);
2342
- (h ? v || y : v || b.position !== "static" || !y || !["absolute", "fixed"].includes(y.position)) ? y = b : m = m.filter(((f) => f !== x)), x = Ie(x);
2329
+ let h = Qe(u).filter(((b) => me(b) && we(b) !== "body")), y = null;
2330
+ const m = ue(u).position === "fixed";
2331
+ let x = m ? Ne(u) : u;
2332
+ for (; me(x) && !Ct(x); ) {
2333
+ const b = ue(x), g = gt(x);
2334
+ (m ? g || y : g || b.position !== "static" || !y || !["absolute", "fixed"].includes(y.position)) ? y = b : h = h.filter(((f) => f !== x)), x = Ne(x);
2343
2335
  }
2344
- return c.set(u, m), m;
2336
+ return c.set(u, h), h;
2345
2337
  })(t, this._c) : [].concat(o), a = [...r, n], s = a[0], l = a.reduce(((u, c) => {
2346
2338
  const d = It(t, c, i);
2347
- return u.top = Re(d.top, u.top), u.right = Ft(d.right, u.right), u.bottom = Ft(d.bottom, u.bottom), u.left = Re(d.left, u.left), u;
2339
+ return u.top = Le(d.top, u.top), u.right = Ft(d.right, u.right), u.bottom = Ft(d.bottom, u.bottom), u.left = Le(d.left, u.left), u;
2348
2340
  }), It(t, s, i));
2349
2341
  return { width: l.right - l.left, height: l.bottom - l.top, x: l.left, y: l.top };
2350
2342
  }, convertOffsetParentRelativeRectToViewportRelativeRect: function(e) {
2351
2343
  let { rect: t, offsetParent: o, strategy: n } = e;
2352
- const i = ce(o), r = ve(o);
2344
+ const i = ce(o), r = ge(o);
2353
2345
  if (o === r) return t;
2354
2346
  let a = { scrollLeft: 0, scrollTop: 0 }, s = { x: 1, y: 1 };
2355
2347
  const l = { x: 0, y: 0 };
2356
2348
  if ((i || !i && n !== "fixed") && ((we(o) !== "body" || tt(r)) && (a = ot(o)), ce(o))) {
2357
- const u = Ne(o);
2349
+ const u = Fe(o);
2358
2350
  s = Ce(o), l.x = u.x + o.clientLeft, l.y = u.y + o.clientTop;
2359
2351
  }
2360
2352
  return { width: t.width * s.x, height: t.height * s.y, x: t.x * s.x - a.scrollLeft * s.x + l.x, y: t.y * s.y - a.scrollTop * s.y + l.y };
2361
- }, isElement: ge, getDimensions: function(e) {
2353
+ }, isElement: me, getDimensions: function(e) {
2362
2354
  return ce(e) ? ko(e) : e.getBoundingClientRect();
2363
- }, getOffsetParent: jt, getDocumentElement: ve, getScale: Ce, async getElementRects(e) {
2355
+ }, getOffsetParent: jt, getDocumentElement: ge, getScale: Ce, async getElementRects(e) {
2364
2356
  let { reference: t, floating: o, strategy: n } = e;
2365
2357
  const i = this.getOffsetParent || jt, r = this.getDimensions;
2366
2358
  return { reference: Si(t, await i(o), n), floating: { x: 0, y: 0, ...await r(o) } };
@@ -2451,7 +2443,7 @@ const ae = {
2451
2443
  }
2452
2444
  }
2453
2445
  };
2454
- function De(e, t) {
2446
+ function Ie(e, t) {
2455
2447
  let o = ae.themes[e] || {}, n;
2456
2448
  do
2457
2449
  n = o[t], typeof n > "u" ? o.$extend ? o = ae.themes[o.$extend] || {} : (o = null, n = ae[t]) : o = null;
@@ -2525,9 +2517,9 @@ function Ut(e) {
2525
2517
  let vt = function() {
2526
2518
  };
2527
2519
  typeof window < "u" && (vt = window.Element);
2528
- function L(e) {
2520
+ function O(e) {
2529
2521
  return function(t) {
2530
- return De(t.theme, e);
2522
+ return Ie(t.theme, e);
2531
2523
  };
2532
2524
  }
2533
2525
  const at = "__floating-vue__popper", Mo = () => Z({
@@ -2573,147 +2565,147 @@ const at = "__floating-vue__popper", Mo = () => Z({
2573
2565
  },
2574
2566
  disabled: {
2575
2567
  type: Boolean,
2576
- default: L("disabled")
2568
+ default: O("disabled")
2577
2569
  },
2578
2570
  positioningDisabled: {
2579
2571
  type: Boolean,
2580
- default: L("positioningDisabled")
2572
+ default: O("positioningDisabled")
2581
2573
  },
2582
2574
  placement: {
2583
2575
  type: String,
2584
- default: L("placement"),
2576
+ default: O("placement"),
2585
2577
  validator: (e) => zo.includes(e)
2586
2578
  },
2587
2579
  delay: {
2588
2580
  type: [String, Number, Object],
2589
- default: L("delay")
2581
+ default: O("delay")
2590
2582
  },
2591
2583
  distance: {
2592
2584
  type: [Number, String],
2593
- default: L("distance")
2585
+ default: O("distance")
2594
2586
  },
2595
2587
  skidding: {
2596
2588
  type: [Number, String],
2597
- default: L("skidding")
2589
+ default: O("skidding")
2598
2590
  },
2599
2591
  triggers: {
2600
2592
  type: Array,
2601
- default: L("triggers")
2593
+ default: O("triggers")
2602
2594
  },
2603
2595
  showTriggers: {
2604
2596
  type: [Array, Function],
2605
- default: L("showTriggers")
2597
+ default: O("showTriggers")
2606
2598
  },
2607
2599
  hideTriggers: {
2608
2600
  type: [Array, Function],
2609
- default: L("hideTriggers")
2601
+ default: O("hideTriggers")
2610
2602
  },
2611
2603
  popperTriggers: {
2612
2604
  type: Array,
2613
- default: L("popperTriggers")
2605
+ default: O("popperTriggers")
2614
2606
  },
2615
2607
  popperShowTriggers: {
2616
2608
  type: [Array, Function],
2617
- default: L("popperShowTriggers")
2609
+ default: O("popperShowTriggers")
2618
2610
  },
2619
2611
  popperHideTriggers: {
2620
2612
  type: [Array, Function],
2621
- default: L("popperHideTriggers")
2613
+ default: O("popperHideTriggers")
2622
2614
  },
2623
2615
  container: {
2624
2616
  type: [String, Object, vt, Boolean],
2625
- default: L("container")
2617
+ default: O("container")
2626
2618
  },
2627
2619
  boundary: {
2628
2620
  type: [String, vt],
2629
- default: L("boundary")
2621
+ default: O("boundary")
2630
2622
  },
2631
2623
  strategy: {
2632
2624
  type: String,
2633
2625
  validator: (e) => ["absolute", "fixed"].includes(e),
2634
- default: L("strategy")
2626
+ default: O("strategy")
2635
2627
  },
2636
2628
  autoHide: {
2637
2629
  type: [Boolean, Function],
2638
- default: L("autoHide")
2630
+ default: O("autoHide")
2639
2631
  },
2640
2632
  handleResize: {
2641
2633
  type: Boolean,
2642
- default: L("handleResize")
2634
+ default: O("handleResize")
2643
2635
  },
2644
2636
  instantMove: {
2645
2637
  type: Boolean,
2646
- default: L("instantMove")
2638
+ default: O("instantMove")
2647
2639
  },
2648
2640
  eagerMount: {
2649
2641
  type: Boolean,
2650
- default: L("eagerMount")
2642
+ default: O("eagerMount")
2651
2643
  },
2652
2644
  popperClass: {
2653
2645
  type: [String, Array, Object],
2654
- default: L("popperClass")
2646
+ default: O("popperClass")
2655
2647
  },
2656
2648
  computeTransformOrigin: {
2657
2649
  type: Boolean,
2658
- default: L("computeTransformOrigin")
2650
+ default: O("computeTransformOrigin")
2659
2651
  },
2660
2652
  /**
2661
2653
  * @deprecated
2662
2654
  */
2663
2655
  autoMinSize: {
2664
2656
  type: Boolean,
2665
- default: L("autoMinSize")
2657
+ default: O("autoMinSize")
2666
2658
  },
2667
2659
  autoSize: {
2668
2660
  type: [Boolean, String],
2669
- default: L("autoSize")
2661
+ default: O("autoSize")
2670
2662
  },
2671
2663
  /**
2672
2664
  * @deprecated
2673
2665
  */
2674
2666
  autoMaxSize: {
2675
2667
  type: Boolean,
2676
- default: L("autoMaxSize")
2668
+ default: O("autoMaxSize")
2677
2669
  },
2678
2670
  autoBoundaryMaxSize: {
2679
2671
  type: Boolean,
2680
- default: L("autoBoundaryMaxSize")
2672
+ default: O("autoBoundaryMaxSize")
2681
2673
  },
2682
2674
  preventOverflow: {
2683
2675
  type: Boolean,
2684
- default: L("preventOverflow")
2676
+ default: O("preventOverflow")
2685
2677
  },
2686
2678
  overflowPadding: {
2687
2679
  type: [Number, String],
2688
- default: L("overflowPadding")
2680
+ default: O("overflowPadding")
2689
2681
  },
2690
2682
  arrowPadding: {
2691
2683
  type: [Number, String],
2692
- default: L("arrowPadding")
2684
+ default: O("arrowPadding")
2693
2685
  },
2694
2686
  arrowOverflow: {
2695
2687
  type: Boolean,
2696
- default: L("arrowOverflow")
2688
+ default: O("arrowOverflow")
2697
2689
  },
2698
2690
  flip: {
2699
2691
  type: Boolean,
2700
- default: L("flip")
2692
+ default: O("flip")
2701
2693
  },
2702
2694
  shift: {
2703
2695
  type: Boolean,
2704
- default: L("shift")
2696
+ default: O("shift")
2705
2697
  },
2706
2698
  shiftCrossAxis: {
2707
2699
  type: Boolean,
2708
- default: L("shiftCrossAxis")
2700
+ default: O("shiftCrossAxis")
2709
2701
  },
2710
2702
  noAutoFocus: {
2711
2703
  type: Boolean,
2712
- default: L("noAutoFocus")
2704
+ default: O("noAutoFocus")
2713
2705
  },
2714
2706
  disposeTimeout: {
2715
2707
  type: Number,
2716
- default: L("disposeTimeout")
2708
+ default: O("disposeTimeout")
2717
2709
  }
2718
2710
  },
2719
2711
  emits: {
@@ -3083,12 +3075,12 @@ const at = "__floating-vue__popper", Mo = () => Z({
3083
3075
  },
3084
3076
  $_isAimingPopper() {
3085
3077
  const e = this.$_referenceNode.getBoundingClientRect();
3086
- if (ze >= e.left && ze <= e.right && Me >= e.top && Me <= e.bottom) {
3087
- const t = this.$_popperNode.getBoundingClientRect(), o = ze - ye, n = Me - he, i = t.left + t.width / 2 - ye + (t.top + t.height / 2) - he + t.width + t.height, r = ye + o * i, a = he + n * i;
3088
- return We(ye, he, r, a, t.left, t.top, t.left, t.bottom) || // Left edge
3089
- We(ye, he, r, a, t.left, t.top, t.right, t.top) || // Top edge
3090
- We(ye, he, r, a, t.right, t.top, t.right, t.bottom) || // Right edge
3091
- We(ye, he, r, a, t.left, t.bottom, t.right, t.bottom);
3078
+ if (Re >= e.left && Re <= e.right && ze >= e.top && ze <= e.bottom) {
3079
+ const t = this.$_popperNode.getBoundingClientRect(), o = Re - fe, n = ze - ye, i = t.left + t.width / 2 - fe + (t.top + t.height / 2) - ye + t.width + t.height, r = fe + o * i, a = ye + n * i;
3080
+ return We(fe, ye, r, a, t.left, t.top, t.left, t.bottom) || // Left edge
3081
+ We(fe, ye, r, a, t.left, t.top, t.right, t.top) || // Top edge
3082
+ We(fe, ye, r, a, t.right, t.top, t.right, t.bottom) || // Right edge
3083
+ We(fe, ye, r, a, t.left, t.bottom, t.right, t.bottom);
3092
3084
  }
3093
3085
  return !1;
3094
3086
  }
@@ -3160,9 +3152,9 @@ function Li() {
3160
3152
  for (let e = 0; e < re.length; e++)
3161
3153
  re[e].$_computePosition();
3162
3154
  }
3163
- let ye = 0, he = 0, ze = 0, Me = 0;
3155
+ let fe = 0, ye = 0, Re = 0, ze = 0;
3164
3156
  typeof window < "u" && window.addEventListener("mousemove", (e) => {
3165
- ye = ze, he = Me, ze = e.clientX, Me = e.clientY;
3157
+ fe = Re, ye = ze, Re = e.clientX, ze = e.clientY;
3166
3158
  }, Te ? {
3167
3159
  passive: !0
3168
3160
  } : void 0);
@@ -3179,13 +3171,13 @@ const Ri = {
3179
3171
  return o;
3180
3172
  };
3181
3173
  function zi(e, t, o, n, i, r) {
3182
- return g(), C("div", {
3174
+ return w(), C("div", {
3183
3175
  ref: "reference",
3184
3176
  class: N(["v-popper", {
3185
3177
  "v-popper--shown": e.slotData.isShown
3186
3178
  }])
3187
3179
  }, [
3188
- j(e.$slots, "default", Jo(en(e.slotData)))
3180
+ V(e.$slots, "default", Jo(en(e.slotData)))
3189
3181
  ], 2);
3190
3182
  }
3191
3183
  const Mi = /* @__PURE__ */ nt(Ri, [["render", zi]]);
@@ -3225,7 +3217,7 @@ var it = {
3225
3217
  "notify"
3226
3218
  ],
3227
3219
  mounted() {
3228
- wt(), Ee(() => {
3220
+ wt(), Me(() => {
3229
3221
  this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitOnMount && this.emitSize();
3230
3222
  });
3231
3223
  const e = document.createElement("object");
@@ -3259,7 +3251,7 @@ const Fi = {
3259
3251
  tabindex: "-1"
3260
3252
  };
3261
3253
  Ko();
3262
- const Ni = /* @__PURE__ */ Hi((e, t, o, n, i, r) => (g(), z("div", Fi)));
3254
+ const Ni = /* @__PURE__ */ Hi((e, t, o, n, i, r) => (w(), z("div", Fi)));
3263
3255
  it.render = Ni;
3264
3256
  it.__scopeId = "data-v-b329ee4c";
3265
3257
  it.__file = "src/components/ResizeObserver.vue";
@@ -3305,8 +3297,8 @@ const Ho = (e = "theme") => ({
3305
3297
  Vi
3306
3298
  ];
3307
3299
  function Gi(e, t, o, n, i, r) {
3308
- const a = He("ResizeObserver");
3309
- return g(), C("div", {
3300
+ const a = Ee("ResizeObserver");
3301
+ return w(), C("div", {
3310
3302
  id: e.popperId,
3311
3303
  ref: "popover",
3312
3304
  class: N(["v-popper__popper", [
@@ -3344,15 +3336,15 @@ function Gi(e, t, o, n, i, r) {
3344
3336
  } : void 0)
3345
3337
  }, [
3346
3338
  S("div", ji, [
3347
- e.mounted ? (g(), C(fe, { key: 0 }, [
3339
+ e.mounted ? (w(), C(ve, { key: 0 }, [
3348
3340
  S("div", null, [
3349
- j(e.$slots, "default")
3341
+ V(e.$slots, "default")
3350
3342
  ]),
3351
- e.handleResize ? (g(), z(a, {
3343
+ e.handleResize ? (w(), z(a, {
3352
3344
  key: 0,
3353
3345
  onNotify: t[1] || (t[1] = (s) => e.$emit("resize", s))
3354
- })) : O("", !0)
3355
- ], 64)) : O("", !0)
3346
+ })) : L("", !0)
3347
+ ], 64)) : L("", !0)
3356
3348
  ], 512),
3357
3349
  S("div", {
3358
3350
  ref: "arrow",
@@ -3581,8 +3573,8 @@ const Zi = Z({
3581
3573
  }
3582
3574
  });
3583
3575
  function Ui(e, t, o, n, i, r) {
3584
- const a = He("PopperContent"), s = He("Popper");
3585
- return g(), z(s, _t({ ref: "popper" }, e.$props, {
3576
+ const a = Ee("PopperContent"), s = Ee("Popper");
3577
+ return w(), z(s, _t({ ref: "popper" }, e.$props, {
3586
3578
  theme: e.finalTheme,
3587
3579
  "target-nodes": e.getTargetNodes,
3588
3580
  "popper-node": () => e.$refs.popperContent.$el,
@@ -3604,18 +3596,18 @@ function Ui(e, t, o, n, i, r) {
3604
3596
  isShown: u,
3605
3597
  shouldMountContent: c,
3606
3598
  skipTransition: d,
3607
- autoHide: m,
3599
+ autoHide: h,
3608
3600
  show: y,
3609
- hide: h,
3601
+ hide: m,
3610
3602
  handleResize: x,
3611
3603
  onResize: b,
3612
- classes: v,
3604
+ classes: g,
3613
3605
  result: f
3614
3606
  }) => [
3615
- j(e.$slots, "default", {
3607
+ V(e.$slots, "default", {
3616
3608
  shown: u,
3617
3609
  show: y,
3618
- hide: h
3610
+ hide: m
3619
3611
  }),
3620
3612
  F(a, {
3621
3613
  ref: "popperContent",
@@ -3624,17 +3616,17 @@ function Ui(e, t, o, n, i, r) {
3624
3616
  shown: u,
3625
3617
  mounted: c,
3626
3618
  "skip-transition": d,
3627
- "auto-hide": m,
3619
+ "auto-hide": h,
3628
3620
  "handle-resize": x,
3629
- classes: v,
3621
+ classes: g,
3630
3622
  result: f,
3631
- onHide: h,
3623
+ onHide: m,
3632
3624
  onResize: b
3633
3625
  }, {
3634
3626
  default: _(() => [
3635
- j(e.$slots, "popper", {
3627
+ V(e.$slots, "popper", {
3636
3628
  shown: u,
3637
- hide: h
3629
+ hide: m
3638
3630
  })
3639
3631
  ]),
3640
3632
  _: 2
@@ -3672,7 +3664,7 @@ const St = /* @__PURE__ */ nt(Zi, [["render", Ui]]), Xi = {
3672
3664
  },
3673
3665
  html: {
3674
3666
  type: Boolean,
3675
- default: (e) => De(e.theme, "html")
3667
+ default: (e) => Ie(e.theme, "html")
3676
3668
  },
3677
3669
  content: {
3678
3670
  type: [String, Number, Function],
@@ -3680,7 +3672,7 @@ const St = /* @__PURE__ */ nt(Zi, [["render", Ui]]), Xi = {
3680
3672
  },
3681
3673
  loadingContent: {
3682
3674
  type: String,
3683
- default: (e) => De(e.theme, "loadingContent")
3675
+ default: (e) => Ie(e.theme, "loadingContent")
3684
3676
  },
3685
3677
  targetNodes: {
3686
3678
  type: Function,
@@ -3737,8 +3729,8 @@ const St = /* @__PURE__ */ nt(Zi, [["render", Ui]]), Xi = {
3737
3729
  }
3738
3730
  }), Ji = ["innerHTML"], er = ["textContent"];
3739
3731
  function tr(e, t, o, n, i, r) {
3740
- const a = He("PopperContent"), s = He("Popper");
3741
- return g(), z(s, _t({ ref: "popper" }, e.$attrs, {
3732
+ const a = Ee("PopperContent"), s = Ee("Popper");
3733
+ return w(), z(s, _t({ ref: "popper" }, e.$attrs, {
3742
3734
  theme: e.theme,
3743
3735
  "target-nodes": e.targetNodes,
3744
3736
  "popper-node": () => e.$refs.popperContent.$el,
@@ -3750,12 +3742,12 @@ function tr(e, t, o, n, i, r) {
3750
3742
  isShown: u,
3751
3743
  shouldMountContent: c,
3752
3744
  skipTransition: d,
3753
- autoHide: m,
3745
+ autoHide: h,
3754
3746
  hide: y,
3755
- handleResize: h,
3747
+ handleResize: m,
3756
3748
  onResize: x,
3757
3749
  classes: b,
3758
- result: v
3750
+ result: g
3759
3751
  }) => [
3760
3752
  F(a, {
3761
3753
  ref: "popperContent",
@@ -3767,18 +3759,18 @@ function tr(e, t, o, n, i, r) {
3767
3759
  shown: u,
3768
3760
  mounted: c,
3769
3761
  "skip-transition": d,
3770
- "auto-hide": m,
3771
- "handle-resize": h,
3762
+ "auto-hide": h,
3763
+ "handle-resize": m,
3772
3764
  classes: b,
3773
- result: v,
3765
+ result: g,
3774
3766
  onHide: y,
3775
3767
  onResize: x
3776
3768
  }, {
3777
3769
  default: _(() => [
3778
- e.html ? (g(), C("div", {
3770
+ e.html ? (w(), C("div", {
3779
3771
  key: 0,
3780
3772
  innerHTML: e.finalContent
3781
- }, null, 8, Ji)) : (g(), C("div", {
3773
+ }, null, 8, Ji)) : (w(), C("div", {
3782
3774
  key: 1,
3783
3775
  textContent: G(e.finalContent)
3784
3776
  }, null, 8, er))
@@ -3795,22 +3787,22 @@ function nr(e, t) {
3795
3787
  if (!o && t)
3796
3788
  for (const n of zo)
3797
3789
  t[n] && (o = n);
3798
- return o || (o = De(e.theme || "tooltip", "placement")), o;
3790
+ return o || (o = Ie(e.theme || "tooltip", "placement")), o;
3799
3791
  }
3800
3792
  function Do(e, t, o) {
3801
3793
  let n;
3802
3794
  const i = typeof t;
3803
3795
  return i === "string" ? n = { content: t } : t && i === "object" ? n = t : n = { content: !1 }, n.placement = nr(n, o), n.targetNodes = () => [e], n.referenceNode = () => e, n;
3804
3796
  }
3805
- let lt, je, ir = 0;
3797
+ let lt, De, ir = 0;
3806
3798
  function rr() {
3807
3799
  if (lt)
3808
3800
  return;
3809
- je = V([]), lt = tn({
3801
+ De = q([]), lt = tn({
3810
3802
  name: "VTooltipDirectiveApp",
3811
3803
  setup() {
3812
3804
  return {
3813
- directives: je
3805
+ directives: De
3814
3806
  };
3815
3807
  },
3816
3808
  render() {
@@ -3829,12 +3821,12 @@ function rr() {
3829
3821
  }
3830
3822
  function sr(e, t, o) {
3831
3823
  rr();
3832
- const n = V(Do(e, t, o)), i = V(!1), r = {
3824
+ const n = q(Do(e, t, o)), i = q(!1), r = {
3833
3825
  id: ir++,
3834
3826
  options: n,
3835
3827
  shown: i
3836
3828
  };
3837
- return je.value.push(r), e.classList && e.classList.add(Io), e.$_popper = {
3829
+ return De.value.push(r), e.classList && e.classList.add(Io), e.$_popper = {
3838
3830
  options: n,
3839
3831
  item: r,
3840
3832
  show() {
@@ -3847,14 +3839,14 @@ function sr(e, t, o) {
3847
3839
  }
3848
3840
  function jo(e) {
3849
3841
  if (e.$_popper) {
3850
- const t = je.value.indexOf(e.$_popper.item);
3851
- t !== -1 && je.value.splice(t, 1), delete e.$_popper, delete e.$_popperOldShown, delete e.$_popperMountTarget;
3842
+ const t = De.value.indexOf(e.$_popper.item);
3843
+ t !== -1 && De.value.splice(t, 1), delete e.$_popper, delete e.$_popperOldShown, delete e.$_popperMountTarget;
3852
3844
  }
3853
3845
  e.classList && e.classList.remove(Io);
3854
3846
  }
3855
3847
  function Kt(e, { value: t, modifiers: o }) {
3856
3848
  const n = Do(e, t, o);
3857
- if (!n.content || De(n.theme || "tooltip", "disabled"))
3849
+ if (!n.content || Ie(n.theme || "tooltip", "disabled"))
3858
3850
  jo(e);
3859
3851
  else {
3860
3852
  let i;
@@ -4166,20 +4158,20 @@ const cr = {
4166
4158
  }
4167
4159
  }, wr = {
4168
4160
  install: (e) => {
4169
- e.use(cr), e.component("AppIdentificationPage", ho), e.component("AppFormTextInput", fo), e.component("AppWidgetAnchor", mo), e.component("AppServicePage", vo), e.component("AppScreenPage", wo), e.component("AppWidgetView", bo), e.component("AppTextInput", ti), e.component("AppCarousel", yo), e.component("AppMessage", go), e.component("AppWidget", ri), e.component("AppButton", Be), e.component("AppGroup", me), e.component("AppIcon", ne), e.component("AppText", q);
4161
+ e.use(cr), e.component("AppIdentificationPage", ho), e.component("AppFormTextInput", fo), e.component("AppWidgetAnchor", mo), e.component("AppServicePage", vo), e.component("AppScreenPage", wo), e.component("AppWidgetView", bo), e.component("AppTextInput", ti), e.component("AppCarousel", yo), e.component("AppMessage", go), e.component("AppWidget", ri), e.component("AppButton", Be), e.component("AppGroup", he), e.component("AppIcon", ne), e.component("AppText", j);
4170
4162
  }
4171
4163
  };
4172
4164
  export {
4173
4165
  Be as AppButton,
4174
4166
  yo as AppCarousel,
4175
4167
  fo as AppFormTextInput,
4176
- me as AppGroup,
4168
+ he as AppGroup,
4177
4169
  ne as AppIcon,
4178
4170
  ho as AppIdentificationPage,
4179
4171
  go as AppMessage,
4180
4172
  wo as AppScreenPage,
4181
4173
  vo as AppServicePage,
4182
- q as AppText,
4174
+ j as AppText,
4183
4175
  ti as AppTextInput,
4184
4176
  ri as AppWidget,
4185
4177
  mo as AppWidgetAnchor,