@opens/widget-ui 1.0.4 → 1.0.7

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,74 +1,74 @@
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";
2
- function rn() {
1
+ import { ref as q, computed as p, toValue as Oe, reactive as Qo, watch as qe, nextTick as Ee, defineComponent as Z, createElementBlock as B, openBlock as v, normalizeClass as N, unref as O, renderSlot as V, useSlots as Ve, createBlock as z, withCtx as $, createElementVNode as T, createCommentVNode as R, withKeys as kt, createTextVNode as M, onMounted as uo, onBeforeUnmount as co, normalizeStyle as he, Fragment as we, renderList as Te, resolveDynamicComponent as po, Comment as Bt, Text as Pt, createVNode as F, isRef as Ko, toDisplayString as G, createSlots as mt, Transition as fo, mergeProps as _t, pushScopeId as Jo, popScopeId as en, normalizeProps as tn, guardReactiveProps as on, resolveComponent as He, createApp as nn, h as rn, withScopeId as sn } from "vue";
2
+ function an() {
3
3
  return {
4
- maskPhone: (i) => {
5
- if (!i) return "";
6
- let r = i.replace(/\D/g, "");
7
- return r.length <= 4 ? r : (r.startsWith("0") && !r.startsWith("0800") && r.length > 3 && (r = r.replace(/^0+/, "")), r.startsWith("0800") ? r.length > 11 ? r : r.replace(/(0800)(\d{0,3})(\d{0,4})/, (a, s, l, u) => [s, l, u].filter(Boolean).join(" ")) : r.length > 11 ? r : r.length <= 8 ? r.replace(/(\d{4})(\d{0,4})/, "$1-$2").replace(/-$/, "") : r.length === 9 ? r.replace(/(\d{5})(\d{0,4})/, "$1-$2") : r.length === 10 ? r.replace(/(\d{2})(\d{0,4})(\d{0,4})/, "($1) $2-$3").replace(/-$/, "") : r.replace(/(\d{2})(\d{0,5})(\d{0,4})/, "($1) $2-$3").replace(/-$/, ""));
8
- },
9
- maskCnpj: (i) => {
10
- const r = i.toUpperCase().replace(/[^0-9A-Z]/g, "");
11
- let a = "";
12
- for (const s of r) {
13
- if (a.length >= 14) break;
14
- (a.length < 12 || /\d/.test(s)) && (a += s);
4
+ maskPhone: (r) => {
5
+ if (!r) return "";
6
+ let i = r.replace(/\D/g, "");
7
+ return i.length <= 4 ? i : (i.startsWith("0") && !i.startsWith("0800") && i.length > 3 && (i = i.replace(/^0+/, "")), i.startsWith("0800") ? i.length > 11 ? i : i.replace(/(0800)(\d{0,3})(\d{0,4})/, (s, a, l, u) => [a, l, u].filter(Boolean).join(" ")) : i.length > 11 ? i : i.length <= 8 ? i.replace(/(\d{4})(\d{0,4})/, "$1-$2").replace(/-$/, "") : i.length === 9 ? i.replace(/(\d{5})(\d{0,4})/, "$1-$2") : i.length === 10 ? i.replace(/(\d{2})(\d{0,4})(\d{0,4})/, "($1) $2-$3").replace(/-$/, "") : i.replace(/(\d{2})(\d{0,5})(\d{0,4})/, "($1) $2-$3").replace(/-$/, ""));
8
+ },
9
+ maskCnpj: (r) => {
10
+ const i = r.toUpperCase().replace(/[^0-9A-Z]/g, "");
11
+ let s = "";
12
+ for (const a of i) {
13
+ if (s.length >= 14) break;
14
+ (s.length < 12 || /\d/.test(a)) && (s += a);
15
15
  }
16
- return a.replace(/^([0-9A-Z]{2})([0-9A-Z])/, "$1.$2").replace(/^([0-9A-Z]{2})\.([0-9A-Z]{3})([0-9A-Z])/, "$1.$2.$3").replace(/^([0-9A-Z]{2})\.([0-9A-Z]{3})\.([0-9A-Z]{3})([0-9A-Z])/, "$1.$2.$3/$4").replace(/^([0-9A-Z]{2})\.([0-9A-Z]{3})\.([0-9A-Z]{3})\/([0-9A-Z]{4})(\d)/, "$1.$2.$3/$4-$5");
16
+ return s.replace(/^([0-9A-Z]{2})([0-9A-Z])/, "$1.$2").replace(/^([0-9A-Z]{2})\.([0-9A-Z]{3})([0-9A-Z])/, "$1.$2.$3").replace(/^([0-9A-Z]{2})\.([0-9A-Z]{3})\.([0-9A-Z]{3})([0-9A-Z])/, "$1.$2.$3/$4").replace(/^([0-9A-Z]{2})\.([0-9A-Z]{3})\.([0-9A-Z]{3})\/([0-9A-Z]{4})(\d)/, "$1.$2.$3/$4-$5");
17
17
  },
18
- maskCep: (i) => i.replace(/\D/g, "").slice(0, 8).replace(/^(\d{5})(\d)/, "$1-$2"),
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")
18
+ maskCep: (r) => r.replace(/\D/g, "").slice(0, 8).replace(/^(\d{5})(\d)/, "$1-$2"),
19
+ maskCpf: (r) => r.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);
23
- function Ke() {
22
+ const Pe = q([]), Ot = q(void 0);
23
+ function Je() {
24
24
  return {
25
25
  currentRuleId: Ot,
26
- history: Oe,
27
- setCurrentRuleId: (r) => {
28
- Ot.value = r;
26
+ history: Pe,
27
+ setCurrentRuleId: (i) => {
28
+ Ot.value = i;
29
29
  },
30
30
  clearHistory: () => {
31
- Oe.value = [];
31
+ Pe.value = [];
32
32
  },
33
- pushHistory: (r) => {
34
- Oe.value.push(r);
33
+ pushHistory: (i) => {
34
+ Pe.value.push(i);
35
35
  },
36
- setHistory: (r) => {
37
- Oe.value = [...r];
36
+ setHistory: (i) => {
37
+ Pe.value = [...i];
38
38
  },
39
- popHistory: () => Oe.value.pop()
39
+ popHistory: () => Pe.value.pop()
40
40
  };
41
41
  }
42
- const Ae = (e) => e === "name", Lt = (e) => !!e?.trim(), sn = (e) => {
43
- const t = e.filter((n) => Ae(n.name)), o = e.filter((n) => !Ae(n.name));
42
+ const Ce = (e) => e === "name", Lt = (e) => !!e?.trim(), ln = (e) => {
43
+ const t = e.filter((n) => Ce(n.name)), o = e.filter((n) => !Ce(n.name));
44
44
  return [...t, ...o];
45
45
  };
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(() => {
48
- const k = Bt(e), H = k.settings?.form && k.settings.form.fields || [];
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 () => {
46
+ function un(e, t) {
47
+ const { maskPhone: o, maskCpf: n } = an(), { history: r } = Je(), i = q(0), s = q("forward"), a = q(null), l = p(() => {
48
+ const _ = Oe(e), H = _.settings?.form && _.settings.form.fields || [];
49
+ return ln(H);
50
+ }), u = Qo(Object.fromEntries(l.value.map((_) => [_.name, ""]))), f = p(() => l.value[i.value]), d = p(() => i.value >= l.value.length - 1), c = p(() => r.value.length > 0 || i.value > 0), y = p(() => s.value === "back" ? "step-back" : "step-forward");
51
+ qe(i, async () => {
52
52
  await Ee();
53
- const k = s.value;
54
- if (!k) return;
55
- (k.querySelector(".is-active input") ?? k.querySelector("input"))?.focus({ preventScroll: !0 });
53
+ const _ = a.value;
54
+ if (!_) return;
55
+ (_.querySelector(".is-active input") ?? _.querySelector("input"))?.focus({ preventScroll: !0 });
56
56
  });
57
- const h = p(() => l.value.every((k) => !k.required || Lt(u[k.name]))), x = (k) => {
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(() => {
61
- const k = l.value.find((H) => Ae(H.name));
62
- return k ? u[k.name]?.trim().split(/\s+/)[0] ?? "" : "";
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;
57
+ const m = p(() => l.value.every((_) => !_.required || Lt(u[_.name]))), x = (_) => {
58
+ const H = l.value[_];
59
+ return H ? H.required && !Lt(u[H.name]) ? !1 : _ >= l.value.length - 1 ? m.value : !0 : m.value;
60
+ }, g = p(() => x(i.value)), h = p(() => {
61
+ const _ = l.value.find((H) => Ce(H.name));
62
+ return _ ? u[_.name]?.trim().split(/\s+/)[0] ?? "" : "";
63
+ }), w = (_) => {
64
+ const H = l.value[_], D = h.value, ee = l.value.length ? `Passo ${_ + 1} de ${l.value.length}` : "", U = Oe(e), X = _ >= l.value.length - 1;
65
65
  if (!H)
66
66
  return {
67
67
  eyebrow: ee,
68
68
  title: U.settings?.body?.title ?? "",
69
69
  subtitle: U.settings?.body?.subtitle ?? ""
70
70
  };
71
- if (Ae(H.name))
71
+ if (Ce(H.name))
72
72
  return {
73
73
  eyebrow: ee,
74
74
  title: "Como podemos te chamar?",
@@ -76,46 +76,46 @@ 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) => {
80
- if (k === "phone") return o;
81
- if (k === "cpf") return n;
79
+ }, C = p(() => w(i.value)), S = (_) => _ === "email" ? "email" : _ === "phone" ? "tel" : "text", k = (_) => _ === "email" ? "email" : _ === "phone" ? "call" : Ce(_) ? "person" : _ === "order" ? "receipt" : "badge", A = (_) => _.required ? `${_.alias} *` : _.alias, b = (_) => Ce(_.name) ? "Seu nome" : _.name === "phone" ? "Seu telefone" : _.name === "email" ? "Seu e-mail" : _.name === "cpf" ? "000.000.000-00" : _.alias, P = (_) => {
80
+ if (_ === "phone") return o;
81
+ if (_ === "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,
87
- currentField: c,
88
- canContinue: b,
89
- currentStep: r,
87
+ currentField: f,
88
+ canContinue: g,
89
+ currentStep: i,
90
90
  isLastStep: d,
91
- stepIntro: w,
92
- fieldHost: s,
93
- showBack: m,
91
+ stepIntro: C,
92
+ fieldHost: a,
93
+ showBack: c,
94
94
  fields: l,
95
95
  form: u,
96
96
  continueStep: () => {
97
- if (b.value) {
97
+ if (g.value) {
98
98
  if (d.value || l.value.length === 0) return I();
99
- a.value = "forward", r.value += 1;
99
+ s.value = "forward", i.value += 1;
100
100
  }
101
101
  },
102
102
  canContinueAt: x,
103
- introFor: f,
104
- fieldLabel: B,
105
- fieldPlaceholder: $,
106
- fieldType: A,
107
- fieldMask: T,
108
- fieldIcon: P,
103
+ introFor: w,
104
+ fieldLabel: A,
105
+ fieldPlaceholder: b,
106
+ fieldType: S,
107
+ fieldMask: P,
108
+ fieldIcon: k,
109
109
  goBack: () => {
110
- if (r.value > 0) {
111
- a.value = "back", r.value -= 1;
110
+ if (i.value > 0) {
111
+ s.value = "back", i.value -= 1;
112
112
  return;
113
113
  }
114
114
  t("back");
115
115
  }
116
116
  };
117
117
  }
118
- function po(e) {
118
+ function yo(e) {
119
119
  const t = p(() => e.small ? "!yu-h-8 !yu-min-h-[2rem]" : "!yu-h-12 !yu-min-h-[3rem]"), o = p(() => "!yu-text-xs"), n = p(() => e.fluid ? "!yu-w-full" : "yu-w-fit");
120
120
  return {
121
121
  height: t,
@@ -123,18 +123,19 @@ function po(e) {
123
123
  width: n
124
124
  };
125
125
  }
126
- function ln(e, t) {
126
+ function cn(e, t) {
127
127
  const o = p(() => ({
128
128
  "!yu-font-plus": t.plus,
129
129
  "!yu-font-inter": t.inter,
130
- "!yu-font-titillium": t.titillium
130
+ "!yu-font-titillium": t.titillium,
131
+ "!yu-font-mono": t.mono
131
132
  })), n = p(() => ({
132
133
  "!yu-text-white": t.white,
133
134
  "!yu-text-primary": t.primary,
134
135
  "!yu-text-secondary": t.secondary,
135
136
  "!yu-text-base": t.neutral,
136
- "!yu-text-neutral": t.gray
137
- })), i = p(() => ({
137
+ "!yu-text-neutral dark:!yu-text-neutral-200": t.gray
138
+ })), r = p(() => ({
138
139
  "!yu-font-thin": t.thin,
139
140
  "!yu-font-extralight": t.extralight,
140
141
  "!yu-font-light": t.light,
@@ -144,7 +145,7 @@ function ln(e, t) {
144
145
  "!yu-font-bold": t.bold,
145
146
  "!yu-font-extrabold": t.extrabold,
146
147
  "!yu-font-black": t.black
147
- })), r = p(() => ({
148
+ })), i = p(() => ({
148
149
  ...{
149
150
  title: {
150
151
  "!yu-text-xl": t.small,
@@ -166,15 +167,16 @@ function ln(e, t) {
166
167
  }
167
168
  }[e]
168
169
  }));
169
- return { fontClass: o, colorClass: n, weightClass: i, sizeClass: r };
170
+ return { fontClass: o, colorClass: n, weightClass: r, sizeClass: i };
170
171
  }
171
- const un = /* @__PURE__ */ Z({
172
+ const dn = /* @__PURE__ */ Z({
172
173
  __name: "app-text",
173
174
  props: {
174
175
  extraSmall: { type: Boolean },
175
176
  inter: { type: Boolean },
176
177
  plus: { type: Boolean },
177
178
  titillium: { type: Boolean },
179
+ mono: { type: Boolean },
178
180
  small: { type: Boolean },
179
181
  base: { type: Boolean },
180
182
  large: { type: Boolean },
@@ -195,19 +197,19 @@ const un = /* @__PURE__ */ Z({
195
197
  white: { type: Boolean }
196
198
  },
197
199
  setup(e) {
198
- const t = e, { fontClass: o, colorClass: n, weightClass: i, sizeClass: r } = ln("text", t);
199
- return (a, s) => (g(), C("p", {
200
- class: N(["yu-font-primary yu-text-sm yu-font-normal yu-text-gray-900", [R(o), R(n), R(i), R(r)]])
200
+ const t = e, { fontClass: o, colorClass: n, weightClass: r, sizeClass: i } = cn("text", t);
201
+ return (s, a) => (v(), B("p", {
202
+ class: N(["yu-font-primary yu-text-sm yu-font-normal yu-text-gray-900 dark:yu-text-neutral-100", [O(o), O(n), O(r), O(i)]])
201
203
  }, [
202
- j(a.$slots, "default", {}, void 0, !0)
204
+ V(s.$slots, "default", {}, void 0, !0)
203
205
  ], 2));
204
206
  }
205
- }), Je = (e, t) => {
207
+ }), et = (e, t) => {
206
208
  const o = e.__vccOpts || e;
207
- for (const [n, i] of t)
208
- o[n] = i;
209
+ for (const [n, r] of t)
210
+ o[n] = r;
209
211
  return o;
210
- }, q = /* @__PURE__ */ Je(un, [["__scopeId", "data-v-65153daa"]]), me = /* @__PURE__ */ Z({
212
+ }, j = /* @__PURE__ */ et(dn, [["__scopeId", "data-v-030e2417"]]), me = /* @__PURE__ */ Z({
211
213
  __name: "app-group",
212
214
  props: {
213
215
  fit: { type: Boolean },
@@ -240,28 +242,28 @@ const un = /* @__PURE__ */ Z({
240
242
  divisor: { type: Boolean }
241
243
  },
242
244
  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(() => [
244
- i.value,
245
+ 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" : ""), r = p(() => t.row ? "yu-flex-row" : t.col ? "yu-flex-col" : "yu-flex-row"), i = 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"), s = p(() => t.wrap ? "yu-flex-wrap" : ""), a = 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" : ""), f = 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" : ""), c = p(() => [
245
246
  r.value,
246
- a.value,
247
+ i.value,
247
248
  s.value,
249
+ a.value,
248
250
  n.value,
249
251
  l.value,
250
252
  u.value,
251
- c.value,
253
+ f.value,
252
254
  o.value,
253
255
  d.value
254
256
  ]);
255
- return (y, h) => (g(), C("div", {
256
- class: N(["yu-flex", m.value])
257
+ return (y, m) => (v(), B("div", {
258
+ class: N(["yu-flex", c.value])
257
259
  }, [
258
- j(y.$slots, "default")
260
+ V(y.$slots, "default")
259
261
  ], 2));
260
262
  }
261
- }), cn = {
263
+ }), pn = {
262
264
  class: "yu-flex yu-flex-col yu-items-stretch yu-w-full yu-cursor-text yu-gap-1",
263
265
  "data-testid": "app-form-text-input"
264
- }, dn = ["value", "type", "placeholder", "disabled", "maxlength", "aria-invalid"], fo = /* @__PURE__ */ Z({
266
+ }, fn = ["value", "type", "placeholder", "disabled", "maxlength", "aria-invalid"], ho = /* @__PURE__ */ Z({
265
267
  __name: "app-form-text-input",
266
268
  props: {
267
269
  modelValue: { default: "" },
@@ -276,89 +278,89 @@ const un = /* @__PURE__ */ Z({
276
278
  },
277
279
  emits: ["update:modelValue", "keyup-enter"],
278
280
  setup(e, { expose: t, emit: o }) {
279
- const n = e, i = o, r = p(() => Pe());
280
- function a(b) {
281
- return !!r.value[b];
281
+ const n = e, r = o, i = p(() => Ve());
282
+ function s(g) {
283
+ return !!i.value[g];
282
284
  }
283
- const s = V(""), l = V(!1);
284
- function u(b) {
285
- if (!n.maskFunction) return b;
285
+ const a = q(""), l = q(!1);
286
+ function u(g) {
287
+ if (!n.maskFunction) return g;
286
288
  try {
287
- const v = n.maskFunction(b);
288
- return typeof v == "string" ? v : b;
289
+ const h = n.maskFunction(g);
290
+ return typeof h == "string" ? h : g;
289
291
  } catch {
290
- return b;
292
+ return g;
291
293
  }
292
294
  }
293
295
  qe(
294
296
  () => n.modelValue,
295
- (b) => {
296
- if (b == null) {
297
- s.value = "";
297
+ (g) => {
298
+ if (g == null) {
299
+ a.value = "";
298
300
  return;
299
301
  }
300
- s.value = n.maskFunction ? u(b) : b;
302
+ a.value = n.maskFunction ? u(g) : g;
301
303
  },
302
304
  { immediate: !0 }
303
305
  );
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" : "");
305
- function x(b) {
306
- const f = b.target.value;
307
- s.value = n.maskFunction ? u(f) : f, i("update:modelValue", s.value);
306
+ const { width: f } = yo(n), d = p(() => n.invalid ? "yu-text-red-500" : n.valid ? "yu-text-green-500" : ""), c = 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 dark:yu-text-neutral-100 dark:placeholder:yu-text-neutral-500"), 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" : "");
307
+ function x(g) {
308
+ const w = g.target.value;
309
+ a.value = n.maskFunction ? u(w) : w, r("update:modelValue", a.value);
308
310
  }
309
311
  return t({
310
312
  focus: l,
311
- content: s
312
- }), (b, v) => (g(), z(me, {
313
- class: N([R(c), h.value]),
313
+ content: a
314
+ }), (g, h) => (v(), z(me, {
315
+ class: N([O(f), m.value]),
314
316
  col: "",
315
317
  "gap-none": ""
316
318
  }, {
317
- default: _(() => [
318
- S("label", cn, [
319
- a("default") ? (g(), z(q, {
319
+ default: $(() => [
320
+ T("label", pn, [
321
+ s("default") ? (v(), z(j, {
320
322
  key: 0,
321
323
  small: "",
322
324
  gray: "",
323
325
  class: N([d.value])
324
326
  }, {
325
- default: _(() => [
326
- j(b.$slots, "default")
327
+ default: $(() => [
328
+ V(g.$slots, "default")
327
329
  ]),
328
330
  _: 3
329
- }, 8, ["class"])) : O("", !0),
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]]),
332
- value: s.value,
331
+ }, 8, ["class"])) : R("", !0),
332
+ T("input", {
333
+ 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 dark:yu-caret-white", [c.value]]),
334
+ value: a.value,
333
335
  type: e.type,
334
336
  placeholder: e.placeholder,
335
337
  disabled: e.disabled,
336
338
  maxlength: e.maxLength,
337
339
  "aria-invalid": e.invalid ? !0 : void 0,
338
340
  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"]))
342
- }, null, 42, dn)
341
+ onFocus: h[0] || (h[0] = (w) => l.value = !0),
342
+ onBlur: h[1] || (h[1] = (w) => l.value = !1),
343
+ onKeyup: h[2] || (h[2] = kt((w) => r("keyup-enter"), ["enter"]))
344
+ }, null, 42, fn)
343
345
  ]),
344
- a("feedback") ? (g(), C("div", {
346
+ s("feedback") ? (v(), B("div", {
345
347
  key: 0,
346
348
  class: N(["yu-mt-1", [y.value]])
347
349
  }, [
348
- j(b.$slots, "feedback")
349
- ], 2)) : O("", !0)
350
+ V(g.$slots, "feedback")
351
+ ], 2)) : R("", !0)
350
352
  ]),
351
353
  _: 3
352
354
  }, 8, ["class"]));
353
355
  }
354
356
  });
355
- function pn(e) {
356
- const t = p(() => e.small ? "!yu-h-8 !yu-min-h-[2rem]" : ""), o = p(() => "!yu-text-xs"), n = p(() => e.small ? "yu-px-[0.625rem]" : "yu-p-[0.9rem]"), i = p(() => e.fluid ? "!yu-w-full" : "yu-w-fit");
357
+ function yn(e) {
358
+ const t = p(() => e.small ? "!yu-h-8 !yu-min-h-[2rem]" : ""), o = p(() => "!yu-text-xs"), n = p(() => e.small ? "yu-px-[0.625rem]" : "yu-p-[0.9rem]"), r = p(() => e.fluid ? "!yu-w-full" : "yu-w-fit");
357
359
  return {
358
360
  height: t,
359
361
  textSize: o,
360
362
  padding: n,
361
- width: i
363
+ width: r
362
364
  };
363
365
  }
364
366
  const ne = /* @__PURE__ */ Z({
@@ -374,15 +376,15 @@ const ne = /* @__PURE__ */ Z({
374
376
  outlined: Boolean
375
377
  },
376
378
  setup(e) {
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", {
379
- class: N(["notranslate yu-flex yu-items-center yu-justify-center yu-text-center", [o.value, n.value, i.value]]),
379
+ 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 dark:yu-text-neutral-400" : ""), r = p(() => t.outlined ? "material-symbols-outlined" : "material-icons");
380
+ return (i, s) => (v(), B("div", {
381
+ class: N(["notranslate yu-flex yu-items-center yu-justify-center yu-text-center", [o.value, n.value, r.value]]),
380
382
  "data-testid": "app-icon"
381
383
  }, [
382
- j(r.$slots, "default")
384
+ V(i.$slots, "default")
383
385
  ], 2));
384
386
  }
385
- }), fn = ["disabled"], yn = { class: "yu-flex yu-items-center yu-justify-center yu-gap-2" }, Be = /* @__PURE__ */ Z({
387
+ }), hn = ["disabled"], mn = { class: "yu-flex yu-items-center yu-justify-center yu-gap-2" }, _e = /* @__PURE__ */ Z({
386
388
  __name: "app-button",
387
389
  props: {
388
390
  small: Boolean,
@@ -402,61 +404,61 @@ const ne = /* @__PURE__ */ Z({
402
404
  },
403
405
  emits: ["click"],
404
406
  setup(e) {
405
- const t = e, o = p(() => Pe());
407
+ const t = e, o = p(() => Ve());
406
408
  function n(y) {
407
409
  return !!o.value[y];
408
410
  }
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]]),
411
+ const { height: r, textSize: i, padding: s, width: a } = yn(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 dark:!yu-border-neutral-600 dark:hover:!yu-bg-neutral-700 dark:hover:!yu-border-neutral-500 dark:!yu-text-neutral-100" : t.ghost ? "yu-bg-transparent !yu-text-gray-700 hover:!yu-bg-gray-100 dark:!yu-text-neutral-200 dark:hover:!yu-bg-neutral-700" : t.link ? "yu-bg-transparent !yu-text-blue-600 hover:yu-underline" : "yu-bg-primary-500 !yu-text-[var(--yu-primary-fg)]"), u = p(() => t.block ? "yu-rounded-none" : t.round ? "yu-rounded-full" : "yu-rounded-lg"), f = 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" : s.value), d = p(() => t.icon ? "yu-justify-center" : "yu-justify-between"), c = p(() => t.disabled || t.loading ? "yu-opacity-50 yu-pointer-events-none" : "");
412
+ return (y, m) => (v(), B("button", {
413
+ 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", [O(i), l.value, u.value, O(a), O(r), c.value, f.value, d.value]]),
412
414
  type: "button",
413
415
  disabled: e.disabled || e.loading,
414
416
  "data-testid": "app-button",
415
- onClick: h[0] || (h[0] = (x) => y.$emit("click", x))
417
+ onClick: m[0] || (m[0] = (x) => y.$emit("click", x))
416
418
  }, [
417
- S("div", yn, [
418
- e.loading ? (g(), z(ne, {
419
+ T("div", mn, [
420
+ e.loading ? (v(), z(ne, {
419
421
  key: 0,
420
422
  class: "yu-animate-spin yu-flex yu-items-center yu-justify-center",
421
423
  small: "",
422
424
  outlined: ""
423
425
  }, {
424
- default: _(() => [...h[1] || (h[1] = [
426
+ default: $(() => [...m[1] || (m[1] = [
425
427
  M("progress_activity", -1)
426
428
  ])]),
427
429
  _: 1
428
- })) : n("icon") ? (g(), z(ne, {
430
+ })) : n("icon") ? (v(), z(ne, {
429
431
  key: 1,
430
432
  small: ""
431
433
  }, {
432
- default: _(() => [
433
- j(y.$slots, "icon")
434
+ default: $(() => [
435
+ V(y.$slots, "icon")
434
436
  ]),
435
437
  _: 3
436
- })) : O("", !0),
437
- !e.loading && n("default") ? (g(), z(q, {
438
+ })) : R("", !0),
439
+ !e.loading && n("default") ? (v(), z(j, {
438
440
  key: 2,
439
441
  class: "!yu-text-inherit",
440
442
  small: ""
441
443
  }, {
442
- default: _(() => [
443
- j(y.$slots, "default")
444
+ default: $(() => [
445
+ V(y.$slots, "default")
444
446
  ]),
445
447
  _: 3
446
- })) : O("", !0)
448
+ })) : R("", !0)
447
449
  ]),
448
- !e.loading && n("trailing") ? (g(), z(ne, {
450
+ !e.loading && n("trailing") ? (v(), z(ne, {
449
451
  key: 0,
450
452
  small: ""
451
453
  }, {
452
- default: _(() => [
453
- j(y.$slots, "trailing")
454
+ default: $(() => [
455
+ V(y.$slots, "trailing")
454
456
  ]),
455
457
  _: 3
456
- })) : O("", !0)
457
- ], 10, fn));
458
+ })) : R("", !0)
459
+ ], 10, hn));
458
460
  }
459
- }), hn = ["aria-hidden"], mn = /* @__PURE__ */ Z({
461
+ }), gn = ["aria-hidden"], vn = /* @__PURE__ */ Z({
460
462
  __name: "app-carousel",
461
463
  props: {
462
464
  modelValue: { default: 0 },
@@ -465,81 +467,81 @@ const ne = /* @__PURE__ */ Z({
465
467
  },
466
468
  emits: ["update:modelValue"],
467
469
  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);
470
+ const n = e, r = o, i = Ve(), s = q(null), a = q(null), l = q(0), u = q(0), f = q(!1);
469
471
  let d = null;
470
- const m = p(() => Math.max(n.modelValue, 0)), y = () => (r.default?.() ?? []).flatMap(($) => $.type === Tt || $.type === Pt ? [] : $.type === fe ? ($.children ?? []).filter(
471
- (T) => !!T && typeof T == "object" && T.type !== Tt && T.type !== Pt
472
- ) : [$]), h = ($) => {
473
- const T = Math.abs($ - m.value);
474
- return T === 0 ? "is-active" : T === 1 ? "is-adjacent" : "is-far";
475
- }, x = ($) => {
476
- const T = s.value?.childElementCount || y().length, I = Math.min(Math.max($, 0), Math.max(T - 1, 0));
477
- I !== n.modelValue && i("update:modelValue", I);
478
- }, b = () => {
479
- const $ = a.value;
480
- $ && ($.scrollLeft && ($.scrollLeft = 0), $.scrollTop && ($.scrollTop = 0));
481
- }, v = () => {
482
- const $ = a.value, T = s.value;
483
- if (!$ || !T) return;
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);
486
- l.value = D - ee, u.value = n.vertical && !n.fill ? H + W * 2 : 0, c.value = !0;
487
- }, f = () => {
472
+ const c = p(() => Math.max(n.modelValue, 0)), y = () => (i.default?.() ?? []).flatMap((b) => b.type === Bt || b.type === Pt ? [] : b.type === we ? (b.children ?? []).filter(
473
+ (P) => !!P && typeof P == "object" && P.type !== Bt && P.type !== Pt
474
+ ) : [b]), m = (b) => {
475
+ const P = Math.abs(b - c.value);
476
+ return P === 0 ? "is-active" : P === 1 ? "is-adjacent" : "is-far";
477
+ }, x = (b) => {
478
+ const P = a.value?.childElementCount || y().length, I = Math.min(Math.max(b, 0), Math.max(P - 1, 0));
479
+ I !== n.modelValue && r("update:modelValue", I);
480
+ }, g = () => {
481
+ const b = s.value;
482
+ b && (b.scrollLeft && (b.scrollLeft = 0), b.scrollTop && (b.scrollTop = 0));
483
+ }, h = () => {
484
+ const b = s.value, P = a.value;
485
+ if (!b || !P) return;
486
+ g();
487
+ const I = [...P.children], E = parseFloat(getComputedStyle(P).gap) || 0, W = parseFloat(getComputedStyle(b).scrollPaddingTop) || 0, _ = (U) => n.vertical ? U.offsetHeight : U.offsetWidth, H = I[c.value] ? _(I[c.value]) : 0, D = n.vertical && n.fill ? Math.max((b.clientHeight - H) / 2, 0) : W, ee = I.slice(0, c.value).reduce((U, X) => U + _(X) + E, 0);
488
+ l.value = D - ee, u.value = n.vertical && !n.fill ? H + W * 2 : 0, f.value = !0;
489
+ }, w = () => {
488
490
  d?.disconnect();
489
- const $ = a.value, T = s.value;
490
- if (!(!$ || !T) && (v(), !(typeof ResizeObserver > "u"))) {
491
- if (d = new ResizeObserver(v), d.observe($), n.vertical)
492
- for (const I of T.children) d.observe(I);
493
- $.removeEventListener("scroll", b), $.addEventListener("scroll", b, { passive: !0 });
491
+ const b = s.value, P = a.value;
492
+ if (!(!b || !P) && (h(), !(typeof ResizeObserver > "u"))) {
493
+ if (d = new ResizeObserver(h), d.observe(b), n.vertical)
494
+ for (const I of P.children) d.observe(I);
495
+ b.removeEventListener("scroll", g), b.addEventListener("scroll", g, { passive: !0 });
494
496
  }
495
- }, w = p(() => [
497
+ }, C = p(() => [
496
498
  n.vertical ? "yu-carousel--vertical" : "yu-carousel--horizontal",
497
- { "is-ready": c.value, "yu-carousel--fill": n.fill }
498
- ]), A = p(() => n.vertical ? "yu-flex-col yu-items-stretch" : "yu-flex-row yu-items-center"), P = p(() => {
499
+ { "is-ready": f.value, "yu-carousel--fill": n.fill }
500
+ ]), S = p(() => n.vertical ? "yu-flex-col yu-items-stretch" : "yu-flex-row yu-items-center"), k = p(() => {
499
501
  if (!(!n.vertical || n.fill || !u.value))
500
502
  return { height: `${u.value}px` };
501
- }), B = p(() => {
502
- const $ = `${l.value}px`;
503
- return { transform: n.vertical ? `translate3d(0, ${$}, 0)` : `translate3d(${$}, 0, 0)` };
503
+ }), A = p(() => {
504
+ const b = `${l.value}px`;
505
+ return { transform: n.vertical ? `translate3d(0, ${b}, 0)` : `translate3d(${b}, 0, 0)` };
504
506
  });
505
507
  return qe(
506
508
  () => [n.vertical, n.fill, n.modelValue],
507
509
  async () => {
508
- await Ee(), f();
510
+ await Ee(), w();
509
511
  }
510
- ), Uo(async () => {
511
- await Ee(), f();
512
- }), Xo(() => {
513
- d?.disconnect(), a.value?.removeEventListener("scroll", b);
512
+ ), uo(async () => {
513
+ await Ee(), w();
514
+ }), co(() => {
515
+ d?.disconnect(), s.value?.removeEventListener("scroll", g);
514
516
  }), t({
515
- next: () => x(m.value + 1),
516
- prev: () => x(m.value - 1),
517
+ next: () => x(c.value + 1),
518
+ prev: () => x(c.value - 1),
517
519
  goTo: x
518
- }), ($, T) => (g(), C("div", {
519
- class: N(["yu-relative yu-w-full yu-overflow-hidden", w.value]),
520
+ }), (b, P) => (v(), B("div", {
521
+ class: N(["yu-relative yu-w-full yu-overflow-hidden", C.value]),
520
522
  ref_key: "rootRef",
521
- ref: a,
523
+ ref: s,
522
524
  "data-testid": "app-carousel",
523
- style: _e(P.value)
525
+ style: he(k.value)
524
526
  }, [
525
- S("div", {
526
- class: N(["yu-carousel-track yu-flex", A.value]),
527
+ T("div", {
528
+ class: N(["yu-carousel-track yu-flex", S.value]),
527
529
  ref_key: "trackRef",
528
- ref: s,
529
- style: _e(B.value)
530
+ ref: a,
531
+ style: he(A.value)
530
532
  }, [
531
- (g(!0), C(fe, null, Se(y(), (I, E) => (g(), C("div", {
532
- class: N(["yu-carousel-slide", h(E)]),
533
+ (v(!0), B(we, null, Te(y(), (I, E) => (v(), B("div", {
534
+ class: N(["yu-carousel-slide", m(E)]),
533
535
  key: I.key ?? E,
534
- "aria-hidden": E !== m.value,
536
+ "aria-hidden": E !== c.value,
535
537
  "data-testid": "app-carousel-slide"
536
538
  }, [
537
- (g(), z(uo(I)))
538
- ], 10, hn))), 128))
539
+ (v(), z(po(I)))
540
+ ], 10, gn))), 128))
539
541
  ], 6)
540
542
  ], 6));
541
543
  }
542
- }), yo = /* @__PURE__ */ Je(mn, [["__scopeId", "data-v-c6006063"]]), gn = { class: "yu-flex yu-flex-col yu-w-full yu-h-full" }, vn = { class: "yu-relative yu-flex yu-items-center yu-w-full yu-shrink-0" }, wn = { class: "yu-flex yu-shrink-0 yu-items-center yu-w-fit yu-justify-center yu-px-6 yu-py-4" }, bn = { class: "yu-absolute yu-inset-0 yu-flex yu-items-center yu-justify-center yu-pointer-events-none" }, xn = { class: "yu-flex yu-items-center yu-gap-1.5" }, ho = /* @__PURE__ */ Z({
544
+ }), mo = /* @__PURE__ */ et(vn, [["__scopeId", "data-v-c6006063"]]), wn = { class: "yu-flex yu-flex-col yu-w-full yu-h-full" }, bn = { class: "yu-relative yu-flex yu-items-center yu-w-full yu-shrink-0" }, xn = { class: "yu-flex yu-shrink-0 yu-items-center yu-w-fit yu-justify-center yu-px-6 yu-py-4" }, $n = { class: "yu-absolute yu-inset-0 yu-flex yu-items-center yu-justify-center yu-pointer-events-none" }, kn = { class: "yu-flex yu-items-center yu-gap-1.5" }, go = /* @__PURE__ */ Z({
543
545
  __name: "app-identification-page",
544
546
  props: {
545
547
  rule: {},
@@ -548,115 +550,115 @@ const ne = /* @__PURE__ */ Z({
548
550
  emits: ["submit", "back"],
549
551
  setup(e, { emit: t }) {
550
552
  const o = e, n = t, {
551
- currentStep: i,
552
- fieldHost: r,
553
- showBack: a,
554
- fields: s,
553
+ currentStep: r,
554
+ fieldHost: i,
555
+ showBack: s,
556
+ fields: a,
555
557
  form: l,
556
558
  continueStep: u,
557
- canContinueAt: c,
559
+ canContinueAt: f,
558
560
  introFor: d,
559
- fieldPlaceholder: m,
561
+ fieldPlaceholder: c,
560
562
  fieldType: y,
561
- fieldMask: h,
563
+ fieldMask: m,
562
564
  goBack: x
563
- } = an(() => o.rule, n);
564
- return (b, v) => (g(), C("div", gn, [
565
- S("div", vn, [
566
- S("div", wn, [
567
- S("div", {
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
570
- (...f) => R(x) && R(x)(...f))
565
+ } = un(() => o.rule, n);
566
+ return (g, h) => (v(), B("div", wn, [
567
+ T("div", bn, [
568
+ T("div", xn, [
569
+ T("div", {
570
+ class: N(["yu-flex yu-items-center yu-w-fit yu-justify-center yu-cursor-pointer yu-group", { "yu-invisible yu-pointer-events-none": !O(s) }]),
571
+ onClick: h[0] || (h[0] = //@ts-ignore
572
+ (...w) => O(x) && O(x)(...w))
571
573
  }, [
572
574
  F(ne, {
573
- class: "yu-transition-colors group-hover:!yu-text-gray-700",
575
+ class: "yu-transition-colors group-hover:!yu-text-gray-700 dark:group-hover:!yu-text-neutral-200",
574
576
  small: "",
575
577
  gray: ""
576
578
  }, {
577
- default: _(() => [...v[2] || (v[2] = [
579
+ default: $(() => [...h[2] || (h[2] = [
578
580
  M("chevron_left", -1)
579
581
  ])]),
580
582
  _: 1
581
583
  }),
582
- F(q, {
583
- class: "yu-transition-colors group-hover:!yu-text-gray-700",
584
+ F(j, {
585
+ class: "yu-transition-colors group-hover:!yu-text-gray-700 dark:group-hover:!yu-text-neutral-200",
584
586
  "extra-small": "",
585
587
  medium: "",
586
588
  gray: ""
587
589
  }, {
588
- default: _(() => [...v[3] || (v[3] = [
590
+ default: $(() => [...h[3] || (h[3] = [
589
591
  M("Voltar", -1)
590
592
  ])]),
591
593
  _: 1
592
594
  })
593
595
  ], 2)
594
596
  ]),
595
- S("div", bn, [
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
+ T("div", $n, [
598
+ T("div", kn, [
599
+ (v(!0), B(we, null, Te(O(a), (w, C) => (v(), B("div", {
600
+ class: N(["yu-h-1 yu-w-6 yu-rounded-full yu-transition-colors", C <= O(r) ? "yu-bg-gray-900 dark:yu-bg-white" : "yu-bg-gray-200 dark:yu-bg-neutral-600"]),
601
+ key: C
600
602
  }, null, 2))), 128))
601
603
  ])
602
604
  ])
603
605
  ]),
604
- S("div", {
606
+ T("div", {
605
607
  class: "yu-flex-1 yu-min-h-0 yu-w-full yu-px-6 yu-pb-12",
606
608
  ref_key: "fieldHost",
607
- ref: r
609
+ ref: i
608
610
  }, [
609
- F(yo, {
611
+ F(mo, {
610
612
  class: "yu-w-full yu-h-full",
611
- modelValue: R(i),
612
- "onUpdate:modelValue": v[1] || (v[1] = (f) => Qo(i) ? i.value = f : null),
613
+ modelValue: O(r),
614
+ "onUpdate:modelValue": h[1] || (h[1] = (w) => Ko(r) ? r.value = w : null),
613
615
  vertical: "",
614
616
  fill: ""
615
617
  }, {
616
- default: _(() => [
617
- (g(!0), C(fe, null, Se(R(s), (f, w) => (g(), z(me, {
618
+ default: $(() => [
619
+ (v(!0), B(we, null, Te(O(a), (w, C) => (v(), z(me, {
618
620
  class: "yu-w-full yu-gap-8",
619
- key: f.name,
621
+ key: w.name,
620
622
  col: "",
621
623
  center: ""
622
624
  }, {
623
- default: _(() => [
625
+ default: $(() => [
624
626
  F(me, {
625
627
  class: "yu-w-full yu-relative yu-pr-6",
626
628
  col: "",
627
629
  "gap-sm": ""
628
630
  }, {
629
- default: _(() => [
630
- R(d)(w).title ? (g(), z(q, {
631
+ default: $(() => [
632
+ O(d)(C).title ? (v(), z(j, {
631
633
  key: 0,
632
634
  class: "yu-text-left",
633
635
  "extra-large": "",
634
636
  semibold: ""
635
637
  }, {
636
- default: _(() => [
637
- M(G(R(d)(w).title), 1)
638
+ default: $(() => [
639
+ M(G(O(d)(C).title), 1)
638
640
  ]),
639
641
  _: 2
640
- }, 1024)) : O("", !0),
641
- R(d)(w).subtitle ? (g(), z(q, {
642
+ }, 1024)) : R("", !0),
643
+ O(d)(C).subtitle ? (v(), z(j, {
642
644
  key: 1,
643
645
  class: "yu-text-left",
644
646
  small: "",
645
647
  gray: ""
646
648
  }, {
647
- default: _(() => [
648
- M(G(R(d)(w).subtitle), 1)
649
+ default: $(() => [
650
+ M(G(O(d)(C).subtitle), 1)
649
651
  ]),
650
652
  _: 2
651
- }, 1024)) : O("", !0),
652
- F(q, {
653
+ }, 1024)) : R("", !0),
654
+ F(j, {
653
655
  class: "yu-opacity-50 yu-absolute -yu-top-2 yu-right-0",
654
656
  gray: "",
655
657
  small: "",
656
658
  medium: ""
657
659
  }, {
658
- default: _(() => [
659
- M(G(w + 1), 1)
660
+ default: $(() => [
661
+ M(G(C + 1), 1)
660
662
  ]),
661
663
  _: 2
662
664
  }, 1024)
@@ -668,31 +670,31 @@ const ne = /* @__PURE__ */ Z({
668
670
  col: "",
669
671
  "gap-md": ""
670
672
  }, {
671
- default: _(() => [
672
- F(fo, {
673
- modelValue: R(l)[f.name],
674
- "onUpdate:modelValue": (A) => R(l)[f.name] = A,
675
- "mask-function": R(h)(f.name),
676
- placeholder: R(m)(f),
677
- type: R(y)(f.name),
678
- onKeyupEnter: R(u),
673
+ default: $(() => [
674
+ F(ho, {
675
+ modelValue: O(l)[w.name],
676
+ "onUpdate:modelValue": (S) => O(l)[w.name] = S,
677
+ "mask-function": O(m)(w.name),
678
+ placeholder: O(c)(w),
679
+ type: O(y)(w.name),
680
+ onKeyupEnter: O(u),
679
681
  fluid: ""
680
682
  }, {
681
- default: _(() => [
682
- M(G(f.alias), 1)
683
+ default: $(() => [
684
+ M(G(w.alias), 1)
683
685
  ]),
684
686
  _: 2
685
687
  }, 1032, ["modelValue", "onUpdate:modelValue", "mask-function", "placeholder", "type", "onKeyupEnter"]),
686
- F(Be, {
688
+ F(_e, {
687
689
  fluid: "",
688
- disabled: !R(c)(w),
689
- onClick: R(u)
690
+ disabled: !O(f)(C),
691
+ onClick: O(u)
690
692
  }, {
691
- trailing: _(() => [...v[4] || (v[4] = [
693
+ trailing: $(() => [...h[4] || (h[4] = [
692
694
  M("arrow_forward", -1)
693
695
  ])]),
694
- default: _(() => [
695
- M(G(w >= R(s).length - 1 ? "Finalizar" : "Continuar"), 1)
696
+ default: $(() => [
697
+ M(G(C >= O(a).length - 1 ? "Finalizar" : "Continuar"), 1)
696
698
  ]),
697
699
  _: 2
698
700
  }, 1032, ["disabled", "onClick"])
@@ -708,7 +710,7 @@ const ne = /* @__PURE__ */ Z({
708
710
  ], 512)
709
711
  ]));
710
712
  }
711
- }), $n = ["disabled"], _n = ["src"], mo = /* @__PURE__ */ Z({
713
+ }), _n = ["disabled"], An = ["src"], vo = /* @__PURE__ */ Z({
712
714
  __name: "app-widget-anchor",
713
715
  props: {
714
716
  small: Boolean,
@@ -717,6 +719,10 @@ const ne = /* @__PURE__ */ Z({
717
719
  type: String,
718
720
  default: ""
719
721
  },
722
+ label: {
723
+ type: String,
724
+ default: ""
725
+ },
720
726
  outline: Boolean,
721
727
  ghost: Boolean,
722
728
  disabled: Boolean,
@@ -724,60 +730,54 @@ const ne = /* @__PURE__ */ Z({
724
730
  },
725
731
  emits: ["click"],
726
732
  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]]),
733
+ 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"), r = 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"), i = p(() => t.small ? "yu-w-6 yu-h-6" : t.large ? "yu-w-8 yu-h-8" : "yu-w-7 yu-h-7"), s = p(() => t.disabled || t.loading ? "yu-opacity-50 yu-pointer-events-none" : "");
734
+ return (a, l) => (v(), B("button", {
735
+ 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", [r.value, n.value, s.value]]),
734
736
  type: "button",
735
737
  "data-testid": "app-anchor",
736
738
  disabled: e.disabled || e.loading,
737
- onClick: c[0] || (c[0] = (d) => u.$emit("click", d))
739
+ onClick: l[0] || (l[0] = (u) => a.$emit("click", u))
738
740
  }, [
739
- e.loading ? (g(), z(ne, {
741
+ e.loading ? (v(), z(ne, {
740
742
  key: 0,
741
743
  class: "yu-animate-spin",
742
744
  outlined: "",
743
745
  large: !e.small && !e.large,
744
746
  "extra-large": e.large
745
747
  }, {
746
- default: _(() => [...c[1] || (c[1] = [
748
+ default: $(() => [...l[1] || (l[1] = [
747
749
  M("progress_activity", -1)
748
750
  ])]),
749
751
  _: 1
750
- }, 8, ["large", "extra-large"])) : e.logo ? (g(), C("img", {
752
+ }, 8, ["large", "extra-large"])) : e.logo ? (v(), B("img", {
751
753
  key: 1,
752
- class: N(["yu-object-contain yu-pointer-events-none yu-select-none yu-shrink-0", s.value]),
754
+ class: N(["yu-object-contain yu-pointer-events-none yu-select-none yu-shrink-0", i.value]),
753
755
  src: e.logo,
754
756
  alt: "",
755
757
  "data-testid": "app-anchor-logo"
756
- }, null, 10, _n)) : O("", !0),
757
- i.value ? (g(), z(q, {
758
+ }, null, 10, An)) : R("", !0),
759
+ o.value ? (v(), z(j, {
758
760
  key: 2,
759
761
  class: "!yu-text-inherit yu-whitespace-nowrap",
760
762
  small: !e.large,
761
763
  "data-testid": "app-anchor-label"
762
764
  }, {
763
- default: _(() => [
764
- j(u.$slots, "default", {}, () => [
765
- j(u.$slots, "label")
766
- ])
765
+ default: $(() => [
766
+ M(G(e.label), 1)
767
767
  ]),
768
- _: 3
769
- }, 8, ["small"])) : O("", !0)
770
- ], 10, $n));
768
+ _: 1
769
+ }, 8, ["small"])) : R("", !0)
770
+ ], 10, _n));
771
771
  }
772
- }), kn = {
772
+ }), Cn = {
773
773
  key: 0,
774
774
  class: "yu-flex yu-shrink-0 yu-items-end",
775
775
  "data-testid": "app-message-avatar"
776
- }, An = {
776
+ }, Sn = {
777
777
  key: 0,
778
778
  class: "yu-w-full yu-flex yu-justify-end yu-h-2",
779
779
  "data-testid": "app-message-trailing"
780
- }, go = /* @__PURE__ */ Z({
780
+ }, wo = /* @__PURE__ */ Z({
781
781
  __name: "app-message",
782
782
  props: {
783
783
  primary: Boolean,
@@ -785,39 +785,39 @@ const ne = /* @__PURE__ */ Z({
785
785
  tertiary: Boolean
786
786
  },
787
787
  setup(e) {
788
- const t = e, o = p(() => Pe());
788
+ const t = e, o = p(() => Ve());
789
789
  function n(u) {
790
790
  return !!o.value[u];
791
791
  }
792
- 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", {
794
- class: N(["yu-flex yu-items-end yu-gap-2 yu-w-full", s.value]),
792
+ const r = p(() => t.tertiary), i = p(() => !r.value && t.secondary), s = p(() => !r.value && n("avatar")), a = p(() => r.value ? "yu-justify-center" : i.value ? "yu-flex-row-reverse" : ""), l = p(() => r.value ? "" : i.value ? "yu-rounded-br-none yu-bg-primary-100 yu-p-3 dark:yu-bg-primary-900" : "yu-rounded-bl-none yu-bg-gray-200 yu-p-3 dark:yu-bg-neutral-700");
793
+ return (u, f) => (v(), B("div", {
794
+ class: N(["yu-flex yu-items-end yu-gap-2 yu-w-full", a.value]),
795
795
  "data-testid": "app-message"
796
796
  }, [
797
- a.value ? (g(), C("div", kn, [
798
- j(u.$slots, "avatar")
799
- ])) : O("", !0),
800
- S("div", {
797
+ s.value ? (v(), B("div", Cn, [
798
+ V(u.$slots, "avatar")
799
+ ])) : R("", !0),
800
+ T("div", {
801
801
  class: N(["yu-rounded-md yu-relative", l.value]),
802
802
  "data-testid": "app-message-bubble"
803
803
  }, [
804
- j(u.$slots, "default"),
805
- n("trailing") ? (g(), C("div", An, [
806
- j(u.$slots, "trailing")
807
- ])) : O("", !0)
804
+ V(u.$slots, "default"),
805
+ n("trailing") ? (v(), B("div", Sn, [
806
+ V(u.$slots, "trailing")
807
+ ])) : R("", !0)
808
808
  ], 2)
809
809
  ], 2));
810
810
  }
811
- }), Cn = { class: "yu-flex yu-flex-col yu-items-center yu-h-full yu-w-full yu-overflow-y-auto" }, Sn = { class: "yu-flex yu-flex-col yu-gap-2 yu-w-full yu-px-6 yu-overflow-y-auto" }, Bn = {
811
+ }), Tn = { class: "yu-flex yu-flex-col yu-items-center yu-h-full yu-w-full yu-overflow-y-auto" }, Bn = { class: "yu-flex yu-flex-col yu-gap-2 yu-w-full yu-px-6 yu-overflow-y-auto" }, Pn = {
812
812
  key: 0,
813
813
  class: "yu-w-full yu-h-12"
814
- }, Tn = {
814
+ }, On = {
815
815
  key: 0,
816
- class: "yu-flex yu-items-center yu-justify-center yu-rounded-full yu-bg-gray-100 yu-w-7 yu-h-7"
817
- }, Pn = ["src"], On = {
816
+ class: "yu-flex yu-items-center yu-justify-center yu-rounded-full yu-bg-gray-100 yu-w-7 yu-h-7 dark:yu-bg-neutral-700"
817
+ }, Ln = ["src"], Rn = {
818
818
  key: 1,
819
819
  class: "yu-flex yu-w-7 yu-h-7"
820
- }, Ln = { class: "yu-w-full yu-border-t yu-border-gray-200 yu-flex yu-flex-col" }, Rn = { class: "yu-flex yu-items-center yu-gap-2 yu-w-full yu-justify-end yu-px-6 yu-py-2" }, vo = /* @__PURE__ */ Z({
820
+ }, zn = { class: "yu-w-full yu-border-t yu-border-gray-200 yu-flex yu-flex-col dark:yu-border-neutral-700" }, Mn = { class: "yu-flex yu-items-center yu-gap-2 yu-w-full yu-justify-end yu-px-6 yu-py-2" }, bo = /* @__PURE__ */ Z({
821
821
  __name: "app-service-page",
822
822
  props: {
823
823
  rule: {},
@@ -826,7 +826,7 @@ const ne = /* @__PURE__ */ Z({
826
826
  setup(e) {
827
827
  const t = e;
828
828
  p(() => t.rule.settings?.behavior === "voice");
829
- const { history: o } = Ke(), n = p(() => o.value.length > 0), i = [
829
+ const { history: o } = Je(), n = p(() => o.value.length > 0), r = [
830
830
  {
831
831
  from: "system",
832
832
  text: 'Opção "Falar com um atendente" selecionada'
@@ -907,35 +907,35 @@ const ne = /* @__PURE__ */ Z({
907
907
  from: "contact",
908
908
  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
909
  }
910
- ], r = (a) => `https://api.dicebear.com/10.x/marbles/svg?backgroundColor=&seed=${a === "operator" ? "operator" : "user"}`;
911
- return (a, s) => (g(), C("div", Cn, [
912
- S("div", Sn, [
913
- n.value ? O("", !0) : (g(), C("div", Bn)),
914
- (g(), C(fe, null, Se(i, (l, u) => F(go, {
910
+ ], i = (s) => `https://api.dicebear.com/10.x/marbles/svg?backgroundColor=&seed=${s === "operator" ? "operator" : "user"}`;
911
+ return (s, a) => (v(), B("div", Tn, [
912
+ T("div", Bn, [
913
+ n.value ? R("", !0) : (v(), B("div", Pn)),
914
+ (v(), B(we, null, Te(r, (l, u) => F(wo, {
915
915
  key: u,
916
916
  primary: l.from === "operator",
917
917
  secondary: l.from === "contact",
918
918
  tertiary: l.from === "system"
919
- }, ht({
920
- default: _(() => [
921
- l.from == "system" ? (g(), z(q, {
919
+ }, mt({
920
+ default: $(() => [
921
+ l.from == "system" ? (v(), z(j, {
922
922
  key: 0,
923
923
  class: "yu-text-center",
924
924
  gray: "",
925
925
  "extra-small": "",
926
926
  medium: ""
927
927
  }, {
928
- default: _(() => [
928
+ default: $(() => [
929
929
  M(G(l.text), 1)
930
930
  ]),
931
931
  _: 2
932
- }, 1024)) : (g(), z(q, {
932
+ }, 1024)) : (v(), z(j, {
933
933
  key: 1,
934
934
  gray: "",
935
935
  small: "",
936
936
  medium: ""
937
937
  }, {
938
- default: _(() => [
938
+ default: $(() => [
939
939
  M(G(l.text), 1)
940
940
  ]),
941
941
  _: 2
@@ -945,25 +945,25 @@ const ne = /* @__PURE__ */ Z({
945
945
  }, [
946
946
  l.from !== "system" ? {
947
947
  name: "avatar",
948
- fn: _(() => [
949
- i[u + 1]?.from !== l.from ? (g(), C("div", Tn, [
950
- S("img", {
948
+ fn: $(() => [
949
+ r[u + 1]?.from !== l.from ? (v(), B("div", On, [
950
+ T("img", {
951
951
  class: "yu-rounded-full yu-w-full yu-h-full yu-object-contain",
952
- src: r(l.from)
953
- }, null, 8, Pn)
954
- ])) : (g(), C("div", On))
952
+ src: i(l.from)
953
+ }, null, 8, Ln)
954
+ ])) : (v(), B("div", Rn))
955
955
  ]),
956
956
  key: "0"
957
957
  } : void 0,
958
958
  l.from !== "system" ? {
959
959
  name: "trailing",
960
- fn: _(() => [
961
- F(q, {
960
+ fn: $(() => [
961
+ F(j, {
962
962
  gray: "",
963
963
  "extra-small": "",
964
964
  medium: ""
965
965
  }, {
966
- default: _(() => [...s[0] || (s[0] = [
966
+ default: $(() => [...a[0] || (a[0] = [
967
967
  M("12:58", -1)
968
968
  ])]),
969
969
  _: 1
@@ -972,22 +972,22 @@ const ne = /* @__PURE__ */ Z({
972
972
  key: "1"
973
973
  } : void 0
974
974
  ]), 1032, ["primary", "secondary", "tertiary"])), 64)),
975
- s[1] || (s[1] = S("div", { class: "yu-w-full yu-h-12" }, null, -1))
975
+ a[1] || (a[1] = T("div", { class: "yu-w-full yu-h-12" }, null, -1))
976
976
  ]),
977
- S("div", Ln, [
978
- s[4] || (s[4] = S("textarea", {
979
- class: "yu-w-full yu-p-6 yu-resize-none yu-font-primary yu-text-xs placeholder:yu-text-neutral placeholder:yu-text-xs placeholder:yu-font-normal focus:yu-outline-none",
977
+ T("div", zn, [
978
+ a[4] || (a[4] = T("textarea", {
979
+ class: "yu-w-full yu-p-6 yu-resize-none yu-font-primary yu-text-xs yu-bg-transparent yu-text-gray-900 placeholder:yu-text-neutral placeholder:yu-text-xs placeholder:yu-font-normal focus:yu-outline-none dark:yu-text-neutral-100",
980
980
  placeholder: "Escreva uma mensagem..."
981
981
  }, null, -1)),
982
- S("div", Rn, [
983
- F(Be, {
982
+ T("div", Mn, [
983
+ F(_e, {
984
984
  icon: "",
985
985
  ghost: "",
986
986
  small: ""
987
987
  }, {
988
- icon: _(() => [
988
+ icon: $(() => [
989
989
  F(ne, { class: "yu-rotate-45" }, {
990
- default: _(() => [...s[2] || (s[2] = [
990
+ default: $(() => [...a[2] || (a[2] = [
991
991
  M("attach_file", -1)
992
992
  ])]),
993
993
  _: 1
@@ -995,13 +995,13 @@ const ne = /* @__PURE__ */ Z({
995
995
  ]),
996
996
  _: 1
997
997
  }),
998
- F(Be, {
998
+ F(_e, {
999
999
  icon: "",
1000
1000
  small: ""
1001
1001
  }, {
1002
- icon: _(() => [
1002
+ icon: $(() => [
1003
1003
  F(ne, null, {
1004
- default: _(() => [...s[3] || (s[3] = [
1004
+ default: $(() => [...a[3] || (a[3] = [
1005
1005
  M("send", -1)
1006
1006
  ])]),
1007
1007
  _: 1
@@ -1013,13 +1013,70 @@ const ne = /* @__PURE__ */ Z({
1013
1013
  ])
1014
1014
  ]));
1015
1015
  }
1016
- }), zn = { class: "yu-flex yu-flex-col yu-w-full yu-gap-8" }, Mn = {
1016
+ }), En = (e) => {
1017
+ const t = (o) => o.toString(16).padStart(2, "0");
1018
+ return `#${t(e.r)}${t(e.g)}${t(e.b)}`;
1019
+ }, xo = () => {
1020
+ const e = "#6D3595", t = (r) => {
1021
+ const i = r.replace("#", "").trim(), s = i.length === 3 && /^[0-9a-fA-F]{3}$/.test(i) ? `${i[0]}${i[0]}${i[1]}${i[1]}${i[2]}${i[2]}` : i;
1022
+ return s.length !== 6 || !/^[0-9a-fA-F]{6}$/.test(s) ? null : {
1023
+ r: parseInt(s.slice(0, 2), 16),
1024
+ g: parseInt(s.slice(2, 4), 16),
1025
+ b: parseInt(s.slice(4, 6), 16)
1026
+ };
1027
+ };
1028
+ return {
1029
+ isLightHex: (r) => {
1030
+ const i = t(r);
1031
+ return i ? (i.r * 299 + i.g * 587 + i.b * 114) / 1e3 > 160 : !1;
1032
+ },
1033
+ normalizeHex: (r) => {
1034
+ const i = t(r) ?? t(e);
1035
+ return i ? En(i) : e.toLowerCase();
1036
+ },
1037
+ parseHex: t
1038
+ };
1039
+ }, Hn = () => typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia("(prefers-color-scheme: dark)").matches, $o = (e) => {
1040
+ const { isLightHex: t, normalizeHex: o, parseHex: n } = xo(), r = (d, c) => d === "dark" ? "dark" : d === "light" ? "light" : c ? "dark" : "light", i = (d) => {
1041
+ const c = o(d), y = n(c) ?? { r: 109, g: 53, b: 149 }, m = t(c);
1042
+ return {
1043
+ "--yu-primary": c,
1044
+ "--yu-primary-rgb": `${y.r} ${y.g} ${y.b}`,
1045
+ "--yu-primary-fg": m ? "#1c1917" : "#ffffff",
1046
+ "--yu-primary-50": `color-mix(in srgb, ${c} 8%, white)`,
1047
+ "--yu-primary-100": `color-mix(in srgb, ${c} 22%, white)`,
1048
+ "--yu-primary-200": `color-mix(in srgb, ${c} 38%, white)`,
1049
+ "--yu-primary-300": `color-mix(in srgb, ${c} 55%, white)`,
1050
+ "--yu-primary-400": m ? `color-mix(in srgb, ${c} 70%, black)` : `color-mix(in srgb, ${c} 78%, white)`,
1051
+ "--yu-primary-500": c,
1052
+ "--yu-primary-600": `color-mix(in srgb, ${c} 82%, black)`,
1053
+ "--yu-primary-700": `color-mix(in srgb, ${c} 64%, black)`,
1054
+ "--yu-primary-800": `color-mix(in srgb, ${c} 42%, black)`,
1055
+ "--yu-primary-900": `color-mix(in srgb, ${c} 22%, black)`
1056
+ };
1057
+ }, s = (d) => {
1058
+ const c = q(Hn()), y = p(() => r(Oe(d), c.value)), m = p(() => y.value === "dark"), x = p(() => m.value ? "yu-dark" : "");
1059
+ return uo(() => {
1060
+ if (typeof window > "u" || typeof window.matchMedia != "function") return;
1061
+ const g = window.matchMedia("(prefers-color-scheme: dark)");
1062
+ c.value = g.matches;
1063
+ const h = (w) => {
1064
+ c.value = w.matches;
1065
+ };
1066
+ g.addEventListener("change", h), co(() => g.removeEventListener("change", h));
1067
+ }), { isDark: m, resolvedTheme: y, themeClass: x };
1068
+ }, { isDark: a, themeClass: l, resolvedTheme: u } = s(() => Oe(e).theme), f = p(() => ({
1069
+ ...i(Oe(e).primaryColor),
1070
+ colorScheme: u.value
1071
+ }));
1072
+ return { isDark: a, themeClass: l, resolvedTheme: u, appearanceStyle: f };
1073
+ }, Fn = { class: "yu-flex yu-flex-col yu-w-full yu-gap-8" }, Nn = {
1017
1074
  key: 0,
1018
1075
  class: "yu-flex yu-items-center yu-w-fit yu-justify-center yu-h-0"
1019
- }, En = ["src"], Hn = {
1076
+ }, In = ["src"], Dn = {
1020
1077
  key: 1,
1021
1078
  class: "yu-flex yu-flex-col yu-items-center yu-justify-start yu-gap-2 yu-px-6 yu-w-full"
1022
- }, Fn = ["src"], Nn = ["src"], wo = /* @__PURE__ */ Z({
1079
+ }, jn = ["src"], qn = ["src"], ko = /* @__PURE__ */ Z({
1023
1080
  __name: "app-screen-page",
1024
1081
  props: {
1025
1082
  rule: {},
@@ -1027,128 +1084,129 @@ const ne = /* @__PURE__ */ Z({
1027
1084
  },
1028
1085
  emits: ["edge-click"],
1029
1086
  setup(e, { emit: t }) {
1030
- 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)),
1087
+ const o = e, n = t, { history: r } = Je(), i = p(() => r.value.length > 0), s = p(() => o.edges ?? []), a = p(() => o.rule.settings?.body);
1088
+ return (l, u) => (v(), B("div", Fn, [
1089
+ i.value ? R("", !0) : (v(), B("div", Nn)),
1033
1090
  F(me, {
1034
1091
  class: "yu-px-6 yu-w-full",
1035
1092
  col: "",
1036
1093
  center: "",
1037
1094
  "gap-base": ""
1038
1095
  }, {
1039
- default: _(() => [
1040
- s.value?.logo ? (g(), C("img", {
1096
+ default: $(() => [
1097
+ a.value?.logo ? (v(), B("img", {
1041
1098
  key: 0,
1042
1099
  class: "yu-w-10 yu-h-10 yu-object-contain",
1043
- src: s.value.logo,
1100
+ src: a.value.logo,
1044
1101
  alt: ""
1045
- }, null, 8, En)) : O("", !0),
1046
- s.value?.eyebrow ? (g(), z(q, {
1102
+ }, null, 8, In)) : R("", !0),
1103
+ a.value?.eyebrow ? (v(), z(j, {
1047
1104
  key: 1,
1048
1105
  class: "yu-text-center yu-uppercase yu-tracking-widest yu-leading-none",
1049
1106
  "extra-small": "",
1050
- primary: ""
1107
+ gray: "",
1108
+ mono: ""
1051
1109
  }, {
1052
- default: _(() => [
1053
- M(G(s.value.eyebrow), 1)
1110
+ default: $(() => [
1111
+ M(G(a.value.eyebrow), 1)
1054
1112
  ]),
1055
1113
  _: 1
1056
- })) : O("", !0),
1057
- s.value?.title ? (g(), z(q, {
1114
+ })) : R("", !0),
1115
+ a.value?.title ? (v(), z(j, {
1058
1116
  key: 2,
1059
1117
  class: "yu-text-center",
1060
1118
  "extra-large": "",
1061
1119
  semibold: ""
1062
1120
  }, {
1063
- default: _(() => [
1064
- M(G(s.value.title), 1)
1121
+ default: $(() => [
1122
+ M(G(a.value.title), 1)
1065
1123
  ]),
1066
1124
  _: 1
1067
- })) : O("", !0),
1068
- s.value?.subtitle ? (g(), z(q, {
1125
+ })) : R("", !0),
1126
+ a.value?.subtitle ? (v(), z(j, {
1069
1127
  key: 3,
1070
1128
  class: "yu-w-64 yu-text-center",
1071
1129
  small: "",
1072
1130
  gray: ""
1073
1131
  }, {
1074
- default: _(() => [
1075
- M(G(s.value.subtitle), 1)
1132
+ default: $(() => [
1133
+ M(G(a.value.subtitle), 1)
1076
1134
  ]),
1077
1135
  _: 1
1078
- })) : O("", !0)
1136
+ })) : R("", !0)
1079
1137
  ]),
1080
1138
  _: 1
1081
1139
  }),
1082
- a.value.length ? (g(), C("div", Hn, [
1083
- (g(!0), C(fe, null, Se(a.value.slice(0, 3), (c) => (g(), z(Be, {
1140
+ s.value.length ? (v(), B("div", Dn, [
1141
+ (v(!0), B(we, null, Te(s.value.slice(0, 3), (f) => (v(), z(_e, {
1084
1142
  class: "hover:yu-translate-x-1 yu-max-w-[25rem]",
1085
- key: c.id,
1143
+ key: f.id,
1086
1144
  outline: "",
1087
1145
  fluid: "",
1088
- onClick: (d) => n("edge-click", c)
1089
- }, ht({
1090
- trailing: _(() => [
1146
+ onClick: (d) => n("edge-click", f)
1147
+ }, mt({
1148
+ trailing: $(() => [
1091
1149
  u[0] || (u[0] = M("chevron_right", -1))
1092
1150
  ]),
1093
- default: _(() => [
1094
- M(G(c.name), 1)
1151
+ default: $(() => [
1152
+ M(G(f.name), 1)
1095
1153
  ]),
1096
1154
  _: 2
1097
1155
  }, [
1098
- c.settings?.body?.logo ? {
1156
+ f.settings?.body?.logo ? {
1099
1157
  name: "icon",
1100
- fn: _(() => [
1101
- S("img", {
1158
+ fn: $(() => [
1159
+ T("img", {
1102
1160
  class: "yu-w-4 yu-h-4 yu-object-contain",
1103
- src: c.settings.body.logo,
1161
+ src: f.settings.body.logo,
1104
1162
  alt: ""
1105
- }, null, 8, Fn)
1163
+ }, null, 8, jn)
1106
1164
  ]),
1107
1165
  key: "0"
1108
1166
  } : void 0
1109
1167
  ]), 1032, ["onClick"]))), 128)),
1110
- S("div", {
1111
- 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 }])
1168
+ T("div", {
1169
+ class: N(["yu-flex yu-items-start yu-overflow-x-auto yu-w-full invisible-scrollbar yu-pt-6", { "yu-justify-start": s.value.slice(3).length > 4, "yu-justify-center": s.value.slice(3).length <= 4 }])
1112
1170
  }, [
1113
- (g(!0), C(fe, null, Se(a.value.slice(3), (c) => (g(), C("div", {
1171
+ (v(!0), B(we, null, Te(s.value.slice(3), (f) => (v(), B("div", {
1114
1172
  class: "yu-flex yu-flex-col yu-items-center yu-gap-2",
1115
- key: c.id
1173
+ key: f.id
1116
1174
  }, [
1117
- F(Be, {
1175
+ F(_e, {
1118
1176
  outline: "",
1119
1177
  icon: "",
1120
- onClick: (d) => n("edge-click", c)
1121
- }, ht({ _: 2 }, [
1122
- c.settings?.body?.logo ? {
1178
+ onClick: (d) => n("edge-click", f)
1179
+ }, mt({ _: 2 }, [
1180
+ f.settings?.body?.logo ? {
1123
1181
  name: "icon",
1124
- fn: _(() => [
1125
- S("img", {
1182
+ fn: $(() => [
1183
+ T("img", {
1126
1184
  class: "yu-w-5 yu-h-5 yu-object-contain",
1127
- src: c.settings.body.logo,
1185
+ src: f.settings.body.logo,
1128
1186
  alt: ""
1129
- }, null, 8, Nn)
1187
+ }, null, 8, qn)
1130
1188
  ]),
1131
1189
  key: "0"
1132
1190
  } : void 0
1133
1191
  ]), 1032, ["onClick"]),
1134
- F(q, {
1192
+ F(j, {
1135
1193
  class: "yu-w-20 yu-text-center yu-leading-3 yu-line-clamp-2",
1136
1194
  "extra-small": ""
1137
1195
  }, {
1138
- default: _(() => [
1139
- M(G(c.name), 1)
1196
+ default: $(() => [
1197
+ M(G(f.name), 1)
1140
1198
  ]),
1141
1199
  _: 2
1142
1200
  }, 1024)
1143
1201
  ]))), 128))
1144
1202
  ], 2)
1145
- ])) : O("", !0)
1203
+ ])) : R("", !0)
1146
1204
  ]));
1147
1205
  }
1148
- }), 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 = {
1206
+ }), Vn = "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=", Wn = { class: "yu-flex yu-flex-col yu-h-full yu-w-full yu-bg-white yu-overflow-hidden dark:yu-bg-neutral-800" }, Gn = { class: "yu-w-full yu-shrink-0 yu-border-b yu-flex yu-items-center yu-px-4 yu-justify-between yu-gap-2 yu-bg-primary yu-h-[4.4rem] yu-text-[var(--yu-primary-fg)] yu-border-[color-mix(in_srgb,var(--yu-primary-fg)_22%,transparent)]" }, Zn = { class: "yu-flex yu-items-center yu-gap-3 yu-min-w-0 yu-flex-1" }, Un = ["src"], Xn = { class: "yu-flex yu-flex-col yu-justify-center yu-min-w-0 yu-overflow-hidden" }, Yn = { class: "yu-flex yu-flex-col yu-w-full yu-flex-1 yu-min-h-0" }, Qn = {
1149
1207
  key: 0,
1150
1208
  class: "yu-flex yu-shrink-0 yu-items-center yu-w-fit yu-justify-center yu-px-6 yu-py-4"
1151
- }, Zn = { class: "yu-flex yu-flex-col yu-w-full yu-flex-1 yu-min-h-0 yu-overflow-y-auto yu-gap-8" }, Un = { class: "yu-h-7 yu-w-full yu-shrink-0 yu-border-t yu-border-gray-200 yu-flex yu-items-center yu-justify-center yu-p-2 yu-gap-1 yu-bg-white" }, Xn = ["src"], Qn = /* @__PURE__ */ Z({
1209
+ }, Kn = { class: "yu-flex yu-flex-col yu-w-full yu-flex-1 yu-min-h-0 yu-overflow-y-auto yu-gap-8" }, Jn = { class: "yu-h-7 yu-w-full yu-shrink-0 yu-border-t yu-border-gray-200 yu-flex yu-items-center yu-justify-center yu-p-2 yu-gap-1 yu-bg-white dark:yu-border-neutral-700 dark:yu-bg-neutral-800" }, er = ["src"], tr = /* @__PURE__ */ Z({
1152
1210
  inheritAttrs: !1,
1153
1211
  __name: "app-widget-view",
1154
1212
  props: {
@@ -1158,150 +1216,156 @@ const ne = /* @__PURE__ */ Z({
1158
1216
  },
1159
1217
  emits: ["edge-click", "submit", "close", "back"],
1160
1218
  setup(e, { emit: t }) {
1161
- 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) => {
1165
- const A = new Map(f.rules.map((P) => [P.id, P]));
1166
- return (f.edges[w] ?? []).flatMap((P) => {
1167
- const B = A.get(P.nextRuleId);
1168
- return B ? [B] : [];
1219
+ const o = e, n = t, { history: r, currentRuleId: i } = Je(), { appearanceStyle: s, themeClass: a } = $o(() => o.config.configurations.appearance), l = (S) => {
1220
+ const k = new Set(Object.values(S.edges).flatMap((A) => A.map((b) => b.nextRuleId)));
1221
+ return S.rules.find((A) => !k.has(A.id)) ?? S.rules[0];
1222
+ }, u = (S, k) => {
1223
+ const A = new Map(S.rules.map((b) => [b.id, b]));
1224
+ return (S.edges[k] ?? []).flatMap((b) => {
1225
+ const P = A.get(b.nextRuleId);
1226
+ return P ? [P] : [];
1169
1227
  });
1170
- }, l = p(() => new Map(o.workflow.rules.map((f) => [f.id, f]))), u = p(() => a(o.workflow)), c = p(() => {
1171
- const f = r.value;
1172
- 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 = {
1174
- identification: ho,
1175
- service: vo,
1176
- screen: wo
1177
- }, b = p(() => {
1178
- const f = c.value.action;
1179
- 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]]),
1183
- "data-testid": "app-widget-view"
1228
+ }, f = p(() => new Map(o.workflow.rules.map((S) => [S.id, S]))), d = p(() => l(o.workflow)), c = p(() => {
1229
+ const S = i.value;
1230
+ return S && f.value.get(S) || d.value;
1231
+ }), y = p(() => u(o.workflow, c.value.id)), m = p(() => r.value.length > 0), x = p(() => m.value && c.value.action !== "identification"), g = p(() => o.config.configurations.general.isClosable), h = {
1232
+ identification: go,
1233
+ service: bo,
1234
+ screen: ko
1235
+ }, w = p(() => {
1236
+ const S = c.value.action;
1237
+ return S in h ? h[S] : void 0;
1238
+ }), C = p(() => o.fullscreen ? "yu-w-screen yu-h-screen" : "yu-w-[24.4rem] yu-h-[38rem] widget-shadow yu-rounded-2xl");
1239
+ return (S, k) => (v(), B("div", {
1240
+ class: N(["yunique yu-overflow-hidden yu-relative", [C.value, O(a)]]),
1241
+ "data-testid": "app-widget-view",
1242
+ style: he(O(s))
1184
1243
  }, [
1185
- S("div", Dn, [
1186
- S("div", jn, [
1187
- c.value.settings?.header?.logo ? (g(), C("img", {
1188
- key: 0,
1189
- class: "yu-w-9 yu-h-9 yu-object-contain yu-rounded-lg yu-shrink-0",
1190
- src: c.value.settings.header.logo,
1191
- alt: ""
1192
- }, null, 8, qn)) : O("", !0),
1193
- S("div", Vn, [
1194
- c.value.settings?.header?.title ? (g(), z(q, {
1244
+ T("div", Wn, [
1245
+ T("div", Gn, [
1246
+ T("div", Zn, [
1247
+ c.value.settings?.header?.logo ? (v(), B("img", {
1195
1248
  key: 0,
1196
- bold: ""
1197
- }, {
1198
- default: _(() => [
1199
- M(G(c.value.settings.header.title), 1)
1200
- ]),
1201
- _: 1
1202
- })) : O("", !0),
1203
- c.value.settings?.header?.subtitle ? (g(), z(q, {
1204
- key: 1,
1205
- class: "yu-truncate yu-min-w-0 yu-max-w-64",
1206
- "extra-small": "",
1207
- gray: ""
1208
- }, {
1209
- default: _(() => [
1210
- M(G(c.value.settings.header.subtitle), 1)
1211
- ]),
1212
- _: 1
1213
- })) : O("", !0)
1214
- ])
1249
+ class: "yu-w-9 yu-h-9 yu-object-contain yu-rounded-lg yu-shrink-0",
1250
+ src: c.value.settings.header.logo,
1251
+ alt: ""
1252
+ }, null, 8, Un)) : R("", !0),
1253
+ T("div", Xn, [
1254
+ c.value.settings?.header?.title ? (v(), z(j, {
1255
+ key: 0,
1256
+ class: "yu-w-full yu-truncate !yu-text-inherit",
1257
+ bold: ""
1258
+ }, {
1259
+ default: $(() => [
1260
+ M(G(c.value.settings.header.title), 1)
1261
+ ]),
1262
+ _: 1
1263
+ })) : R("", !0),
1264
+ c.value.settings?.header?.subtitle ? (v(), z(j, {
1265
+ key: 1,
1266
+ class: "yu-w-full yu-truncate !yu-text-inherit yu-opacity-75",
1267
+ "extra-small": ""
1268
+ }, {
1269
+ default: $(() => [
1270
+ M(G(c.value.settings.header.subtitle), 1)
1271
+ ]),
1272
+ _: 1
1273
+ })) : R("", !0)
1274
+ ])
1275
+ ]),
1276
+ g.value ? (v(), z(_e, {
1277
+ key: 0,
1278
+ class: "yu-shrink-0 !yu-bg-transparent hover:!yu-bg-[color-mix(in_srgb,var(--yu-primary-fg)_12%,transparent)]",
1279
+ onClick: k[0] || (k[0] = (A) => n("close")),
1280
+ "data-testid": "app-widget-close",
1281
+ small: "",
1282
+ icon: ""
1283
+ }, {
1284
+ default: $(() => [
1285
+ F(ne, null, {
1286
+ default: $(() => [...k[5] || (k[5] = [
1287
+ M("close", -1)
1288
+ ])]),
1289
+ _: 1
1290
+ })
1291
+ ]),
1292
+ _: 1
1293
+ })) : R("", !0)
1215
1294
  ]),
1216
- h.value ? (g(), C("button", {
1217
- key: 0,
1218
- 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
- type: "button",
1220
- "aria-label": "Fechar",
1221
- "data-testid": "app-widget-close",
1222
- onClick: w[0] || (w[0] = (A) => n("close"))
1223
- }, [
1224
- F(ne, { gray: "" }, {
1225
- default: _(() => [...w[5] || (w[5] = [
1226
- M("close", -1)
1295
+ T("div", Yn, [
1296
+ F(fo, {
1297
+ name: "page-transition",
1298
+ mode: "out-in"
1299
+ }, {
1300
+ default: $(() => [
1301
+ (v(), B("div", {
1302
+ class: "yu-flex yu-flex-col yu-w-full yu-h-full yu-min-h-0",
1303
+ key: c.value.id
1304
+ }, [
1305
+ x.value ? (v(), B("div", Qn, [
1306
+ T("div", {
1307
+ class: "yu-flex yu-items-center yu-w-fit yu-justify-center yu-cursor-pointer yu-group",
1308
+ onClick: k[1] || (k[1] = (A) => n("back"))
1309
+ }, [
1310
+ F(ne, {
1311
+ class: "yu-transition-colors group-hover:!yu-text-gray-700 dark:group-hover:!yu-text-neutral-200",
1312
+ small: "",
1313
+ gray: ""
1314
+ }, {
1315
+ default: $(() => [...k[6] || (k[6] = [
1316
+ M("chevron_left", -1)
1317
+ ])]),
1318
+ _: 1
1319
+ }),
1320
+ F(j, {
1321
+ class: "yu-transition-colors group-hover:!yu-text-gray-700 dark:group-hover:!yu-text-neutral-200",
1322
+ "extra-small": "",
1323
+ medium: "",
1324
+ gray: ""
1325
+ }, {
1326
+ default: $(() => [...k[7] || (k[7] = [
1327
+ M("Voltar", -1)
1328
+ ])]),
1329
+ _: 1
1330
+ })
1331
+ ])
1332
+ ])) : R("", !0),
1333
+ T("div", Kn, [
1334
+ w.value ? (v(), z(po(w.value), {
1335
+ key: 0,
1336
+ rule: c.value,
1337
+ edges: y.value,
1338
+ onSubmit: k[2] || (k[2] = (A) => n("submit", A)),
1339
+ onBack: k[3] || (k[3] = (A) => n("back")),
1340
+ onEdgeClick: k[4] || (k[4] = (A) => n("edge-click", A))
1341
+ }, null, 40, ["rule", "edges"])) : R("", !0)
1342
+ ])
1343
+ ]))
1344
+ ]),
1345
+ _: 1
1346
+ })
1347
+ ]),
1348
+ T("div", Jn, [
1349
+ T("img", {
1350
+ class: "yu-w-3 yu-h-2",
1351
+ src: O(Vn),
1352
+ alt: "Opens"
1353
+ }, null, 8, er),
1354
+ F(j, {
1355
+ class: "!yu-text-xxs",
1356
+ gray: ""
1357
+ }, {
1358
+ default: $(() => [...k[8] || (k[8] = [
1359
+ M("Powered By", -1),
1360
+ T("b", { class: "yu-ml-1" }, "Opens", -1)
1227
1361
  ])]),
1228
1362
  _: 1
1229
1363
  })
1230
- ])) : O("", !0)
1231
- ]),
1232
- S("div", Wn, [
1233
- F(co, {
1234
- name: "page-transition",
1235
- mode: "out-in"
1236
- }, {
1237
- default: _(() => [
1238
- (g(), C("div", {
1239
- class: "yu-flex yu-flex-col yu-w-full yu-h-full yu-min-h-0",
1240
- key: c.value.id
1241
- }, [
1242
- y.value ? (g(), C("div", Gn, [
1243
- S("div", {
1244
- 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"))
1246
- }, [
1247
- F(ne, {
1248
- class: "yu-transition-colors group-hover:!yu-text-gray-700",
1249
- small: "",
1250
- gray: ""
1251
- }, {
1252
- default: _(() => [...w[6] || (w[6] = [
1253
- M("chevron_left", -1)
1254
- ])]),
1255
- _: 1
1256
- }),
1257
- F(q, {
1258
- class: "yu-transition-colors group-hover:!yu-text-gray-700",
1259
- "extra-small": "",
1260
- medium: "",
1261
- gray: ""
1262
- }, {
1263
- default: _(() => [...w[7] || (w[7] = [
1264
- M("Voltar", -1)
1265
- ])]),
1266
- _: 1
1267
- })
1268
- ])
1269
- ])) : O("", !0),
1270
- S("div", Zn, [
1271
- b.value ? (g(), z(uo(b.value), {
1272
- key: 0,
1273
- rule: c.value,
1274
- 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)
1279
- ])
1280
- ]))
1281
- ]),
1282
- _: 1
1283
- })
1284
- ]),
1285
- S("div", Un, [
1286
- S("img", {
1287
- class: "yu-w-3 yu-h-2",
1288
- src: R(In),
1289
- alt: "Opens"
1290
- }, null, 8, Xn),
1291
- F(q, {
1292
- class: "!yu-text-xxs",
1293
- gray: ""
1294
- }, {
1295
- default: _(() => [...w[8] || (w[8] = [
1296
- M("Powered By", -1),
1297
- S("b", { class: "yu-ml-1" }, "Opens", -1)
1298
- ])]),
1299
- _: 1
1300
- })
1364
+ ])
1301
1365
  ])
1302
- ], 2));
1366
+ ], 6));
1303
1367
  }
1304
- }), bo = /* @__PURE__ */ Je(Qn, [["__scopeId", "data-v-685573f8"]]), Yn = { class: "yu-flex yu-h-full yu-pl-3 yu-gap-2 yu-z-10 yu-pointer-events-none" }, Kn = { class: "yu-h-full yu-flex yu-items-center yu-justify-center" }, Jn = ["value", "type", "disabled", "maxlength"], ei = { class: "yu-absolute yu-right-2 yu-z-10 yu-flex yu-items-center yu-gap-1 yu-text-gray-500" }, ti = /* @__PURE__ */ Z({
1368
+ }), _o = /* @__PURE__ */ et(tr, [["__scopeId", "data-v-c0a9aaf5"]]), or = { class: "yu-flex yu-h-full yu-pl-3 yu-gap-2 yu-z-10 yu-pointer-events-none" }, nr = { class: "yu-h-full yu-flex yu-items-center yu-justify-center" }, rr = ["value", "type", "disabled", "maxlength"], ir = { class: "yu-absolute yu-right-2 yu-z-10 yu-flex yu-items-center yu-gap-1 yu-text-gray-500" }, sr = /* @__PURE__ */ Z({
1305
1369
  __name: "app-text-input",
1306
1370
  props: {
1307
1371
  modelValue: { default: "" },
@@ -1320,177 +1384,170 @@ const ne = /* @__PURE__ */ Z({
1320
1384
  },
1321
1385
  emits: ["update:modelValue", "keyup-enter"],
1322
1386
  setup(e, { expose: t, emit: o }) {
1323
- const n = e, i = o, r = p(() => Pe());
1324
- function a(B) {
1325
- return !!r.value[B];
1387
+ const n = e, r = o, i = p(() => Ve());
1388
+ function s(A) {
1389
+ return !!i.value[A];
1326
1390
  }
1327
- const s = V(""), l = V(!1), u = V(!1);
1328
- function c(B) {
1329
- if (!n.maskFunction) return B;
1391
+ const a = q(""), l = q(!1), u = q(!1);
1392
+ function f(A) {
1393
+ if (!n.maskFunction) return A;
1330
1394
  try {
1331
- const $ = n.maskFunction(B);
1332
- return typeof $ == "string" ? $ : B;
1395
+ const b = n.maskFunction(A);
1396
+ return typeof b == "string" ? b : A;
1333
1397
  } catch {
1334
- return B;
1398
+ return A;
1335
1399
  }
1336
1400
  }
1337
1401
  qe(
1338
1402
  () => n.modelValue,
1339
- (B) => {
1340
- if (B == null) {
1341
- s.value = "";
1403
+ (A) => {
1404
+ if (A == null) {
1405
+ a.value = "";
1342
1406
  return;
1343
1407
  }
1344
- s.value = n.maskFunction ? c(B) : B;
1408
+ a.value = n.maskFunction ? f(A) : A;
1345
1409
  },
1346
1410
  { immediate: !0 }
1347
1411
  );
1348
1412
  function d() {
1349
- return !(l.value || s.value);
1413
+ return !(l.value || a.value);
1350
1414
  }
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" : "");
1352
- function P(B) {
1353
- const T = B.target.value;
1354
- s.value = n.maskFunction ? c(T) : T, i("update:modelValue", s.value);
1415
+ const { height: c, textSize: y, width: m } = yo(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"), g = p(() => n.invalid ? "yu-text-red-500" : n.valid ? "yu-text-green-500" : "yu-text-gray-500"), h = p(() => n.small && d() ? "yu-translate-y-[7px]" : n.small && !d() ? "yu-translate-y-0" : d() ? "yu-translate-y-[11px]" : "yu-translate-y-0"), w = p(() => s("icon") || n.loading ? "yu-pl-[34px]" : "yu-pl-3"), C = p(() => n.block ? "yu-rounded-none" : n.round ? "yu-rounded-full" : "yu-rounded-lg"), S = p(() => n.disabled || n.loading ? "yu-opacity-50 yu-pointer-events-none" : "");
1416
+ function k(A) {
1417
+ const P = A.target.value;
1418
+ a.value = n.maskFunction ? f(P) : P, r("update:modelValue", a.value);
1355
1419
  }
1356
1420
  return t({
1357
1421
  focus: l,
1358
- content: s
1359
- }), (B, $) => (g(), z(me, {
1360
- class: N([R(h)]),
1422
+ content: a
1423
+ }), (A, b) => (v(), z(me, {
1424
+ class: N([O(m)]),
1361
1425
  col: "",
1362
1426
  "gap-none": ""
1363
1427
  }, {
1364
- default: _(() => [
1428
+ default: $(() => [
1365
1429
  F(me, {
1366
1430
  col: "",
1367
1431
  "gap-sm": ""
1368
1432
  }, {
1369
- default: _(() => [
1370
- a("label") ? (g(), z(q, {
1433
+ default: $(() => [
1434
+ s("label") ? (v(), z(j, {
1371
1435
  key: 0,
1372
1436
  small: "",
1373
1437
  medium: ""
1374
1438
  }, {
1375
- default: _(() => [
1376
- j(B.$slots, "label")
1439
+ default: $(() => [
1440
+ V(A.$slots, "label")
1377
1441
  ]),
1378
1442
  _: 3
1379
- })) : O("", !0),
1380
- 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]]),
1443
+ })) : R("", !0),
1444
+ T("label", {
1445
+ 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", [C.value, S.value, O(c), x.value]]),
1382
1446
  "data-testid": "app-text-input"
1383
1447
  }, [
1384
- S("div", Yn, [
1385
- S("div", Kn, [
1386
- !e.loading && a("icon") ? (g(), z(ne, {
1448
+ T("div", or, [
1449
+ T("div", nr, [
1450
+ !e.loading && s("icon") ? (v(), z(ne, {
1387
1451
  key: 0,
1388
1452
  small: ""
1389
1453
  }, {
1390
- default: _(() => [
1391
- j(B.$slots, "icon")
1454
+ default: $(() => [
1455
+ V(A.$slots, "icon")
1392
1456
  ]),
1393
1457
  _: 3
1394
- })) : O("", !0),
1395
- e.loading ? (g(), z(ne, {
1458
+ })) : R("", !0),
1459
+ e.loading ? (v(), z(ne, {
1396
1460
  key: 1,
1397
1461
  class: "yu-animate-spin",
1398
1462
  small: "",
1399
1463
  outlined: ""
1400
1464
  }, {
1401
- default: _(() => [...$[4] || ($[4] = [
1465
+ default: $(() => [...b[4] || (b[4] = [
1402
1466
  M("progress_activity", -1)
1403
1467
  ])]),
1404
1468
  _: 1
1405
- })) : O("", !0)
1469
+ })) : R("", !0)
1406
1470
  ]),
1407
- F(q, {
1408
- class: N(["yu-py-1 yu-transition", [v.value]]),
1471
+ F(j, {
1472
+ class: N(["yu-py-1 yu-transition", [h.value]]),
1409
1473
  small: "",
1410
1474
  medium: "",
1411
1475
  gray: ""
1412
1476
  }, {
1413
- default: _(() => [
1414
- j(B.$slots, "default")
1477
+ default: $(() => [
1478
+ V(A.$slots, "default")
1415
1479
  ]),
1416
1480
  _: 3
1417
1481
  }, 8, ["class"])
1418
1482
  ]),
1419
- 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]]),
1421
- value: s.value,
1483
+ T("input", {
1484
+ 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", [O(y), w.value, C.value]]),
1485
+ value: a.value,
1422
1486
  type: e.passwordToggle && u.value ? "text" : e.type,
1423
1487
  disabled: e.disabled || e.loading,
1424
1488
  maxlength: e.maxLength,
1425
- onInput: P,
1426
- onFocus: $[0] || ($[0] = (T) => l.value = !0),
1427
- onBlur: $[1] || ($[1] = (T) => l.value = !1),
1428
- onKeyup: $[2] || ($[2] = $t((T) => i("keyup-enter"), ["enter"]))
1429
- }, null, 42, Jn),
1430
- S("div", ei, [
1431
- e.maxLength ? (g(), z(q, {
1489
+ onInput: k,
1490
+ onFocus: b[0] || (b[0] = (P) => l.value = !0),
1491
+ onBlur: b[1] || (b[1] = (P) => l.value = !1),
1492
+ onKeyup: b[2] || (b[2] = kt((P) => r("keyup-enter"), ["enter"]))
1493
+ }, null, 42, rr),
1494
+ T("div", ir, [
1495
+ e.maxLength ? (v(), z(j, {
1432
1496
  key: 0,
1433
1497
  small: ""
1434
1498
  }, {
1435
- default: _(() => [
1436
- M(G(`${s.value.length} / ${e.maxLength}`), 1)
1499
+ default: $(() => [
1500
+ M(G(`${a.value.length} / ${e.maxLength}`), 1)
1437
1501
  ]),
1438
1502
  _: 1
1439
- })) : O("", !0),
1440
- e.type === "password" && e.passwordToggle ? (g(), C("button", {
1503
+ })) : R("", !0),
1504
+ e.type === "password" && e.passwordToggle ? (v(), B("button", {
1441
1505
  key: 1,
1442
1506
  class: "yu-bg-transparent yu-border-0 yu-p-0 yu-cursor-pointer yu-flex yu-items-center",
1443
1507
  type: "button",
1444
1508
  tabindex: "-1",
1445
- onClick: $[3] || ($[3] = (T) => u.value = !u.value)
1509
+ onClick: b[3] || (b[3] = (P) => u.value = !u.value)
1446
1510
  }, [
1447
1511
  F(ne, {
1448
1512
  small: "",
1449
1513
  gray: ""
1450
1514
  }, {
1451
- default: _(() => [
1515
+ default: $(() => [
1452
1516
  M(G(u.value ? "visibility_off" : "visibility"), 1)
1453
1517
  ]),
1454
1518
  _: 1
1455
1519
  })
1456
- ])) : O("", !0),
1457
- j(B.$slots, "suffix")
1520
+ ])) : R("", !0),
1521
+ V(A.$slots, "suffix")
1458
1522
  ])
1459
1523
  ], 2)
1460
1524
  ]),
1461
1525
  _: 3
1462
1526
  }),
1463
- a("feedback") ? (g(), C("div", {
1527
+ s("feedback") ? (v(), B("div", {
1464
1528
  key: 0,
1465
- class: N(["yu-mt-1", [b.value]])
1529
+ class: N(["yu-mt-1", [g.value]])
1466
1530
  }, [
1467
- j(B.$slots, "feedback")
1468
- ], 2)) : O("", !0)
1531
+ V(A.$slots, "feedback")
1532
+ ], 2)) : R("", !0)
1469
1533
  ]),
1470
1534
  _: 3
1471
1535
  }, 8, ["class"]));
1472
1536
  }
1473
- }), oi = () => ({
1474
- isLightHex: (t) => {
1475
- const o = t.replace("#", "");
1476
- if (o.length !== 6) return !1;
1477
- const n = parseInt(o.slice(0, 2), 16), i = parseInt(o.slice(2, 4), 16), r = parseInt(o.slice(4, 6), 16);
1478
- return (n * 299 + i * 587 + r * 114) / 1e3 > 160;
1479
- }
1480
- }), ni = () => {
1481
- const { isLightHex: e } = oi();
1537
+ }), ar = () => {
1538
+ const { isLightHex: e, normalizeHex: t } = xo();
1482
1539
  return {
1483
- getOffset: (i, r) => {
1484
- const a = `${r.x}px`, s = `${r.y}px`;
1540
+ getOffset: (i, s) => {
1541
+ const a = `${s.x}px`, l = `${s.y}px`;
1485
1542
  switch (i) {
1486
1543
  case "bottom-left":
1487
- return { bottom: s, left: a };
1544
+ return { bottom: l, left: a };
1488
1545
  case "top-left":
1489
- return { top: s, left: a };
1546
+ return { top: l, left: a };
1490
1547
  case "top-right":
1491
- return { top: s, right: a };
1548
+ return { top: l, right: a };
1492
1549
  default:
1493
- return { bottom: s, right: a };
1550
+ return { bottom: l, right: a };
1494
1551
  }
1495
1552
  },
1496
1553
  getPosition: (i) => {
@@ -1505,13 +1562,16 @@ const ne = /* @__PURE__ */ Z({
1505
1562
  return "bottom right";
1506
1563
  }
1507
1564
  },
1508
- getTone: (i) => ({
1509
- backgroundImage: "none",
1510
- backgroundColor: i,
1511
- color: e(i) ? "#1c1917" : "#ffffff"
1512
- })
1565
+ getTone: (i) => {
1566
+ const s = t(i);
1567
+ return {
1568
+ backgroundImage: "none",
1569
+ backgroundColor: s,
1570
+ color: e(s) ? "#1c1917" : "#ffffff"
1571
+ };
1572
+ }
1513
1573
  };
1514
- }, ii = /* @__PURE__ */ Z({
1574
+ }, lr = /* @__PURE__ */ Z({
1515
1575
  __name: "app-widget",
1516
1576
  props: {
1517
1577
  workflow: {},
@@ -1520,80 +1580,74 @@ const ne = /* @__PURE__ */ Z({
1520
1580
  },
1521
1581
  emits: ["edge-click", "submit", "close", "back", "open"],
1522
1582
  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(() => {
1524
- if (!(i.value && o.fullscreen))
1525
- return a(u.value.position, u.value.offset);
1526
- }), m = p(() => s(u.value.position)), y = p(() => ({
1583
+ const o = e, n = t, r = q(o.config.configurations.general.defaultBehavior === "active"), i = q(!r.value), { getOffset: s, getPosition: a, getTone: l } = ar(), { appearanceStyle: u, themeClass: f } = $o(() => o.config.configurations.appearance), d = p(() => o.config.configurations.anchor), c = p(() => o.config.configurations.appearance), y = p(() => {
1584
+ if (!(r.value && o.fullscreen))
1585
+ return s(d.value.position, d.value.offset);
1586
+ }), m = p(() => a(d.value.position)), x = p(() => ({
1527
1587
  workflow: o.workflow,
1528
1588
  config: o.config,
1529
1589
  fullscreen: o.fullscreen
1530
- })), h = p(() => ({
1590
+ })), g = p(() => ({
1531
1591
  style: l(c.value.primaryColor),
1532
- small: u.value.size === "small",
1533
- large: u.value.size === "large",
1534
- logo: u.value.logo ?? "",
1535
- label: u.value.label ?? ""
1536
- })), x = async () => {
1537
- i.value || (r.value = !1, await Ee(), i.value = !0, n("open"));
1538
- }, b = () => {
1539
- i.value && (i.value = !1, n("close"));
1540
- }, v = () => {
1541
- r.value = !0;
1592
+ small: d.value.size === "small",
1593
+ large: d.value.size === "large",
1594
+ logo: d.value.logo ?? "",
1595
+ label: d.value.label ?? ""
1596
+ })), h = async () => {
1597
+ r.value || (i.value = !1, await Ee(), r.value = !0, n("open"));
1598
+ }, w = () => {
1599
+ r.value && (r.value = !1, n("close"));
1600
+ }, C = () => {
1601
+ i.value = !0;
1542
1602
  };
1543
1603
  return qe(
1544
1604
  () => o.config.configurations.general.defaultBehavior,
1545
- (f) => {
1546
- f === "active" ? x() : b();
1605
+ (S) => {
1606
+ S === "active" ? h() : w();
1547
1607
  }
1548
- ), (f, w) => (g(), C("div", {
1549
- class: N(["yu-fixed yunique yu-z-[99999]", i.value && e.fullscreen ? "yu-inset-0" : ""]),
1608
+ ), (S, k) => (v(), B("div", {
1609
+ class: N(["yu-fixed yunique yu-z-[99999]", [O(f), r.value && e.fullscreen ? "yu-inset-0" : ""]]),
1550
1610
  "data-testid": "app-widget",
1551
- style: _e([{ "--widget-origin": m.value }, d.value])
1611
+ style: he([{ "--widget-origin": m.value }, y.value, O(u)])
1552
1612
  }, [
1553
- F(co, {
1613
+ F(fo, {
1554
1614
  name: "widget",
1555
- onAfterLeave: v
1615
+ onAfterLeave: C
1556
1616
  }, {
1557
- default: _(() => [
1558
- i.value ? (g(), z(bo, _t({ key: 0 }, y.value, {
1559
- 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)
1617
+ default: $(() => [
1618
+ r.value ? (v(), z(_o, _t({ key: 0 }, x.value, {
1619
+ onClose: w,
1620
+ onBack: k[0] || (k[0] = (A) => n("back")),
1621
+ onSubmit: k[1] || (k[1] = (A) => n("submit", A)),
1622
+ onEdgeClick: k[2] || (k[2] = (A) => n("edge-click", A))
1623
+ }), null, 16)) : R("", !0)
1564
1624
  ]),
1565
1625
  _: 1
1566
1626
  }),
1567
- r.value ? (g(), z(mo, {
1627
+ i.value ? (v(), z(vo, {
1568
1628
  key: 0,
1569
- style: _e(h.value.style),
1570
- small: h.value.small,
1571
- large: h.value.large,
1572
- logo: h.value.logo,
1573
- 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)
1629
+ style: he(g.value.style),
1630
+ small: g.value.small,
1631
+ large: g.value.large,
1632
+ logo: g.value.logo,
1633
+ label: g.value.label,
1634
+ onClick: h
1635
+ }, null, 8, ["style", "small", "large", "logo", "label"])) : R("", !0)
1582
1636
  ], 6));
1583
1637
  }
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 = {
1638
+ }), ur = /* @__PURE__ */ et(lr, [["__scopeId", "data-v-de38feff"]]), cr = ["top", "right", "bottom", "left"], Rt = ["start", "end"], zt = /* @__PURE__ */ cr.reduce((e, t) => e.concat(t, t + "-" + Rt[0], t + "-" + Rt[1]), []), Fe = Math.min, ke = Math.max, dr = {
1585
1639
  left: "right",
1586
1640
  right: "left",
1587
1641
  bottom: "top",
1588
1642
  top: "bottom"
1589
- }, li = {
1643
+ }, pr = {
1590
1644
  start: "end",
1591
1645
  end: "start"
1592
1646
  };
1593
- function mt(e, t, o) {
1594
- return $e(e, Fe(t, o));
1647
+ function gt(e, t, o) {
1648
+ return ke(e, Fe(t, o));
1595
1649
  }
1596
- function ke(e, t) {
1650
+ function Ae(e, t) {
1597
1651
  return typeof e == "function" ? e(t) : e;
1598
1652
  }
1599
1653
  function de(e) {
@@ -1602,54 +1656,54 @@ function de(e) {
1602
1656
  function se(e) {
1603
1657
  return e.split("-")[1];
1604
1658
  }
1605
- function xo(e) {
1659
+ function Ao(e) {
1606
1660
  return e === "x" ? "y" : "x";
1607
1661
  }
1608
- function kt(e) {
1662
+ function At(e) {
1609
1663
  return e === "y" ? "height" : "width";
1610
1664
  }
1611
- const ui = /* @__PURE__ */ new Set(["top", "bottom"]);
1665
+ const fr = /* @__PURE__ */ new Set(["top", "bottom"]);
1612
1666
  function pe(e) {
1613
- return ui.has(de(e)) ? "y" : "x";
1667
+ return fr.has(de(e)) ? "y" : "x";
1614
1668
  }
1615
- function At(e) {
1616
- return xo(pe(e));
1669
+ function Ct(e) {
1670
+ return Ao(pe(e));
1617
1671
  }
1618
- function $o(e, t, o) {
1672
+ function Co(e, t, o) {
1619
1673
  o === void 0 && (o = !1);
1620
- const n = se(e), i = At(e), r = kt(i);
1621
- let a = i === "x" ? n === (o ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
1622
- return t.reference[r] > t.floating[r] && (a = Ue(a)), [a, Ue(a)];
1674
+ const n = se(e), r = Ct(e), i = At(r);
1675
+ let s = r === "x" ? n === (o ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
1676
+ return t.reference[i] > t.floating[i] && (s = Xe(s)), [s, Xe(s)];
1623
1677
  }
1624
- function ci(e) {
1625
- const t = Ue(e);
1626
- return [Ze(e), t, Ze(t)];
1678
+ function yr(e) {
1679
+ const t = Xe(e);
1680
+ return [Ue(e), t, Ue(t)];
1627
1681
  }
1628
- function Ze(e) {
1629
- return e.replace(/start|end/g, (t) => li[t]);
1682
+ function Ue(e) {
1683
+ return e.replace(/start|end/g, (t) => pr[t]);
1630
1684
  }
1631
- const Mt = ["left", "right"], Et = ["right", "left"], di = ["top", "bottom"], pi = ["bottom", "top"];
1632
- function fi(e, t, o) {
1685
+ const Mt = ["left", "right"], Et = ["right", "left"], hr = ["top", "bottom"], mr = ["bottom", "top"];
1686
+ function gr(e, t, o) {
1633
1687
  switch (e) {
1634
1688
  case "top":
1635
1689
  case "bottom":
1636
1690
  return o ? t ? Et : Mt : t ? Mt : Et;
1637
1691
  case "left":
1638
1692
  case "right":
1639
- return t ? di : pi;
1693
+ return t ? hr : mr;
1640
1694
  default:
1641
1695
  return [];
1642
1696
  }
1643
1697
  }
1644
- function yi(e, t, o, n) {
1645
- const i = se(e);
1646
- let r = fi(de(e), o === "start", n);
1647
- return i && (r = r.map((a) => a + "-" + i), t && (r = r.concat(r.map(Ze)))), r;
1698
+ function vr(e, t, o, n) {
1699
+ const r = se(e);
1700
+ let i = gr(de(e), o === "start", n);
1701
+ return r && (i = i.map((s) => s + "-" + r), t && (i = i.concat(i.map(Ue)))), i;
1648
1702
  }
1649
- function Ue(e) {
1650
- return e.replace(/left|right|bottom|top/g, (t) => ai[t]);
1703
+ function Xe(e) {
1704
+ return e.replace(/left|right|bottom|top/g, (t) => dr[t]);
1651
1705
  }
1652
- function hi(e) {
1706
+ function wr(e) {
1653
1707
  return {
1654
1708
  top: 0,
1655
1709
  right: 0,
@@ -1658,8 +1712,8 @@ function hi(e) {
1658
1712
  ...e
1659
1713
  };
1660
1714
  }
1661
- function _o(e) {
1662
- return typeof e != "number" ? hi(e) : {
1715
+ function So(e) {
1716
+ return typeof e != "number" ? wr(e) : {
1663
1717
  top: e,
1664
1718
  right: e,
1665
1719
  bottom: e,
@@ -1671,15 +1725,15 @@ function Le(e) {
1671
1725
  x: t,
1672
1726
  y: o,
1673
1727
  width: n,
1674
- height: i
1728
+ height: r
1675
1729
  } = e;
1676
1730
  return {
1677
1731
  width: n,
1678
- height: i,
1732
+ height: r,
1679
1733
  top: o,
1680
1734
  left: t,
1681
1735
  right: t + n,
1682
- bottom: o + i,
1736
+ bottom: o + r,
1683
1737
  x: t,
1684
1738
  y: o
1685
1739
  };
@@ -1687,20 +1741,20 @@ function Le(e) {
1687
1741
  function Ht(e, t, o) {
1688
1742
  let {
1689
1743
  reference: n,
1690
- floating: i
1744
+ floating: r
1691
1745
  } = 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;
1746
+ const i = pe(t), s = Ct(t), a = At(s), l = de(t), u = i === "y", f = n.x + n.width / 2 - r.width / 2, d = n.y + n.height / 2 - r.height / 2, c = n[a] / 2 - r[a] / 2;
1693
1747
  let y;
1694
1748
  switch (l) {
1695
1749
  case "top":
1696
1750
  y = {
1697
- x: c,
1698
- y: n.y - i.height
1751
+ x: f,
1752
+ y: n.y - r.height
1699
1753
  };
1700
1754
  break;
1701
1755
  case "bottom":
1702
1756
  y = {
1703
- x: c,
1757
+ x: f,
1704
1758
  y: n.y + n.height
1705
1759
  };
1706
1760
  break;
@@ -1712,7 +1766,7 @@ function Ht(e, t, o) {
1712
1766
  break;
1713
1767
  case "left":
1714
1768
  y = {
1715
- x: n.x - i.width,
1769
+ x: n.x - r.width,
1716
1770
  y: d
1717
1771
  };
1718
1772
  break;
@@ -1724,147 +1778,147 @@ function Ht(e, t, o) {
1724
1778
  }
1725
1779
  switch (se(t)) {
1726
1780
  case "start":
1727
- y[a] -= m * (o && u ? -1 : 1);
1781
+ y[s] -= c * (o && u ? -1 : 1);
1728
1782
  break;
1729
1783
  case "end":
1730
- y[a] += m * (o && u ? -1 : 1);
1784
+ y[s] += c * (o && u ? -1 : 1);
1731
1785
  break;
1732
1786
  }
1733
1787
  return y;
1734
1788
  }
1735
- const mi = async (e, t, o) => {
1789
+ const br = async (e, t, o) => {
1736
1790
  const {
1737
1791
  placement: n = "bottom",
1738
- strategy: i = "absolute",
1739
- middleware: r = [],
1740
- platform: a
1741
- } = o, s = r.filter(Boolean), l = await (a.isRTL == null ? void 0 : a.isRTL(t));
1742
- let u = await a.getElementRects({
1792
+ strategy: r = "absolute",
1793
+ middleware: i = [],
1794
+ platform: s
1795
+ } = o, a = i.filter(Boolean), l = await (s.isRTL == null ? void 0 : s.isRTL(t));
1796
+ let u = await s.getElementRects({
1743
1797
  reference: e,
1744
1798
  floating: t,
1745
- strategy: i
1799
+ strategy: r
1746
1800
  }), {
1747
- x: c,
1801
+ x: f,
1748
1802
  y: d
1749
- } = Ht(u, n, l), m = n, y = {}, h = 0;
1750
- for (let x = 0; x < s.length; x++) {
1803
+ } = Ht(u, n, l), c = n, y = {}, m = 0;
1804
+ for (let x = 0; x < a.length; x++) {
1751
1805
  const {
1752
- name: b,
1753
- fn: v
1754
- } = s[x], {
1806
+ name: g,
1807
+ fn: h
1808
+ } = a[x], {
1809
+ x: w,
1810
+ y: C,
1811
+ data: S,
1812
+ reset: k
1813
+ } = await h({
1755
1814
  x: f,
1756
- y: w,
1757
- data: A,
1758
- reset: P
1759
- } = await v({
1760
- x: c,
1761
1815
  y: d,
1762
1816
  initialPlacement: n,
1763
- placement: m,
1764
- strategy: i,
1817
+ placement: c,
1818
+ strategy: r,
1765
1819
  middlewareData: y,
1766
1820
  rects: u,
1767
- platform: a,
1821
+ platform: s,
1768
1822
  elements: {
1769
1823
  reference: e,
1770
1824
  floating: t
1771
1825
  }
1772
1826
  });
1773
- c = f ?? c, d = w ?? d, y = {
1827
+ f = w ?? f, d = C ?? d, y = {
1774
1828
  ...y,
1775
- [b]: {
1776
- ...y[b],
1777
- ...A
1829
+ [g]: {
1830
+ ...y[g],
1831
+ ...S
1778
1832
  }
1779
- }, P && h <= 50 && (h++, typeof P == "object" && (P.placement && (m = P.placement), P.rects && (u = P.rects === !0 ? await a.getElementRects({
1833
+ }, k && m <= 50 && (m++, typeof k == "object" && (k.placement && (c = k.placement), k.rects && (u = k.rects === !0 ? await s.getElementRects({
1780
1834
  reference: e,
1781
1835
  floating: t,
1782
- strategy: i
1783
- }) : P.rects), {
1784
- x: c,
1836
+ strategy: r
1837
+ }) : k.rects), {
1838
+ x: f,
1785
1839
  y: d
1786
- } = Ht(u, m, l)), x = -1);
1840
+ } = Ht(u, c, l)), x = -1);
1787
1841
  }
1788
1842
  return {
1789
- x: c,
1843
+ x: f,
1790
1844
  y: d,
1791
- placement: m,
1792
- strategy: i,
1845
+ placement: c,
1846
+ strategy: r,
1793
1847
  middlewareData: y
1794
1848
  };
1795
1849
  };
1796
- async function et(e, t) {
1850
+ async function tt(e, t) {
1797
1851
  var o;
1798
1852
  t === void 0 && (t = {});
1799
1853
  const {
1800
1854
  x: n,
1801
- y: i,
1802
- platform: r,
1803
- rects: a,
1804
- elements: s,
1855
+ y: r,
1856
+ platform: i,
1857
+ rects: s,
1858
+ elements: a,
1805
1859
  strategy: l
1806
1860
  } = e, {
1807
1861
  boundary: u = "clippingAncestors",
1808
- rootBoundary: c = "viewport",
1862
+ rootBoundary: f = "viewport",
1809
1863
  elementContext: d = "floating",
1810
- altBoundary: m = !1,
1864
+ altBoundary: c = !1,
1811
1865
  padding: y = 0
1812
- } = ke(t, e), h = _o(y), b = s[m ? d === "floating" ? "reference" : "floating" : d], v = Le(await r.getClippingRect({
1813
- 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)),
1866
+ } = Ae(t, e), m = So(y), g = a[c ? d === "floating" ? "reference" : "floating" : d], h = Le(await i.getClippingRect({
1867
+ element: (o = await (i.isElement == null ? void 0 : i.isElement(g))) == null || o ? g : g.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(a.floating)),
1814
1868
  boundary: u,
1815
- rootBoundary: c,
1869
+ rootBoundary: f,
1816
1870
  strategy: l
1817
- })), f = d === "floating" ? {
1871
+ })), w = d === "floating" ? {
1818
1872
  x: n,
1819
- y: i,
1820
- width: a.floating.width,
1821
- 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)) || {
1873
+ y: r,
1874
+ width: s.floating.width,
1875
+ height: s.floating.height
1876
+ } : s.reference, C = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(a.floating)), S = await (i.isElement == null ? void 0 : i.isElement(C)) ? await (i.getScale == null ? void 0 : i.getScale(C)) || {
1823
1877
  x: 1,
1824
1878
  y: 1
1825
1879
  } : {
1826
1880
  x: 1,
1827
1881
  y: 1
1828
- }, P = Le(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
1829
- elements: s,
1830
- rect: f,
1831
- offsetParent: w,
1882
+ }, k = Le(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
1883
+ elements: a,
1884
+ rect: w,
1885
+ offsetParent: C,
1832
1886
  strategy: l
1833
- }) : f);
1887
+ }) : w);
1834
1888
  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
1889
+ top: (h.top - k.top + m.top) / S.y,
1890
+ bottom: (k.bottom - h.bottom + m.bottom) / S.y,
1891
+ left: (h.left - k.left + m.left) / S.x,
1892
+ right: (k.right - h.right + m.right) / S.x
1839
1893
  };
1840
1894
  }
1841
- const gi = (e) => ({
1895
+ const xr = (e) => ({
1842
1896
  name: "arrow",
1843
1897
  options: e,
1844
1898
  async fn(t) {
1845
1899
  const {
1846
1900
  x: o,
1847
1901
  y: n,
1848
- placement: i,
1849
- rects: r,
1850
- platform: a,
1851
- elements: s,
1902
+ placement: r,
1903
+ rects: i,
1904
+ platform: s,
1905
+ elements: a,
1852
1906
  middlewareData: l
1853
1907
  } = t, {
1854
1908
  element: u,
1855
- padding: c = 0
1856
- } = ke(e, t) || {};
1909
+ padding: f = 0
1910
+ } = Ae(e, t) || {};
1857
1911
  if (u == null)
1858
1912
  return {};
1859
- const d = _o(c), m = {
1913
+ const d = So(f), c = {
1860
1914
  x: o,
1861
1915
  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;
1916
+ }, y = Ct(r), m = At(y), x = await s.getDimensions(u), g = y === "y", h = g ? "top" : "left", w = g ? "bottom" : "right", C = g ? "clientHeight" : "clientWidth", S = i.reference[m] + i.reference[y] - c[y] - i.floating[m], k = c[y] - i.reference[y], A = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
1917
+ let b = A ? A[C] : 0;
1918
+ (!b || !await (s.isElement == null ? void 0 : s.isElement(A))) && (b = a.floating[C] || i.floating[m]);
1919
+ const P = S / 2 - k / 2, I = b / 2 - x[m] / 2 - 1, E = Fe(d[h], I), W = Fe(d[w], I), _ = E, H = b - x[m] - W, D = b / 2 - x[m] / 2 + P, ee = gt(_, D, H), U = !l.arrow && se(r) != null && D !== ee && i.reference[m] / 2 - (D < _ ? E : W) - x[m] / 2 < 0, X = U ? D < _ ? D - _ : D - H : 0;
1866
1920
  return {
1867
- [y]: m[y] + X,
1921
+ [y]: c[y] + X,
1868
1922
  data: {
1869
1923
  [y]: ee,
1870
1924
  centerOffset: D - ee - X,
@@ -1876,70 +1930,70 @@ const gi = (e) => ({
1876
1930
  };
1877
1931
  }
1878
1932
  });
1879
- function vi(e, t, o) {
1880
- return (e ? [...o.filter((i) => se(i) === e), ...o.filter((i) => se(i) !== e)] : o.filter((i) => de(i) === i)).filter((i) => e ? se(i) === e || (t ? Ze(i) !== i : !1) : !0);
1933
+ function $r(e, t, o) {
1934
+ return (e ? [...o.filter((r) => se(r) === e), ...o.filter((r) => se(r) !== e)] : o.filter((r) => de(r) === r)).filter((r) => e ? se(r) === e || (t ? Ue(r) !== r : !1) : !0);
1881
1935
  }
1882
- const wi = function(e) {
1936
+ const kr = function(e) {
1883
1937
  return e === void 0 && (e = {}), {
1884
1938
  name: "autoPlacement",
1885
1939
  options: e,
1886
1940
  async fn(t) {
1887
- var o, n, i;
1941
+ var o, n, r;
1888
1942
  const {
1889
- rects: r,
1890
- middlewareData: a,
1891
- placement: s,
1943
+ rects: i,
1944
+ middlewareData: s,
1945
+ placement: a,
1892
1946
  platform: l,
1893
1947
  elements: u
1894
1948
  } = t, {
1895
- crossAxis: c = !1,
1949
+ crossAxis: f = !1,
1896
1950
  alignment: d,
1897
- allowedPlacements: m = zt,
1951
+ allowedPlacements: c = zt,
1898
1952
  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];
1901
- if (f == null)
1953
+ ...m
1954
+ } = Ae(e, t), x = d !== void 0 || c === zt ? $r(d || null, y, c) : c, g = await tt(t, m), h = ((o = s.autoPlacement) == null ? void 0 : o.index) || 0, w = x[h];
1955
+ if (w == null)
1902
1956
  return {};
1903
- const w = $o(f, r, await (l.isRTL == null ? void 0 : l.isRTL(u.floating)));
1904
- if (s !== f)
1957
+ const C = Co(w, i, await (l.isRTL == null ? void 0 : l.isRTL(u.floating)));
1958
+ if (a !== w)
1905
1959
  return {
1906
1960
  reset: {
1907
1961
  placement: x[0]
1908
1962
  }
1909
1963
  };
1910
- const A = [b[de(f)], b[w[0]], b[w[1]]], P = [...((n = a.autoPlacement) == null ? void 0 : n.overflows) || [], {
1911
- placement: f,
1912
- overflows: A
1913
- }], B = x[v + 1];
1914
- if (B)
1964
+ const S = [g[de(w)], g[C[0]], g[C[1]]], k = [...((n = s.autoPlacement) == null ? void 0 : n.overflows) || [], {
1965
+ placement: w,
1966
+ overflows: S
1967
+ }], A = x[h + 1];
1968
+ if (A)
1915
1969
  return {
1916
1970
  data: {
1917
- index: v + 1,
1918
- overflows: P
1971
+ index: h + 1,
1972
+ overflows: k
1919
1973
  },
1920
1974
  reset: {
1921
- placement: B
1975
+ placement: A
1922
1976
  }
1923
1977
  };
1924
- const $ = P.map((E) => {
1978
+ const b = k.map((E) => {
1925
1979
  const W = se(E.placement);
1926
- return [E.placement, W && c ? (
1980
+ return [E.placement, W && f ? (
1927
1981
  // Check along the mainAxis and main crossAxis side.
1928
- E.overflows.slice(0, 2).reduce((k, H) => k + H, 0)
1982
+ E.overflows.slice(0, 2).reduce((_, H) => _ + H, 0)
1929
1983
  ) : (
1930
1984
  // Check only the mainAxis.
1931
1985
  E.overflows[0]
1932
1986
  ), E.overflows];
1933
- }).sort((E, W) => E[1] - W[1]), I = ((i = $.filter((E) => E[2].slice(
1987
+ }).sort((E, W) => E[1] - W[1]), I = ((r = b.filter((E) => E[2].slice(
1934
1988
  0,
1935
1989
  // Aligned placements should not check their opposite crossAxis
1936
1990
  // side.
1937
1991
  se(E[0]) ? 2 : 3
1938
- ).every((W) => W <= 0))[0]) == null ? void 0 : i[0]) || $[0][0];
1939
- return I !== s ? {
1992
+ ).every((W) => W <= 0))[0]) == null ? void 0 : r[0]) || b[0][0];
1993
+ return I !== a ? {
1940
1994
  data: {
1941
- index: v + 1,
1942
- overflows: P
1995
+ index: h + 1,
1996
+ overflows: k
1943
1997
  },
1944
1998
  reset: {
1945
1999
  placement: I
@@ -1947,47 +2001,47 @@ const wi = function(e) {
1947
2001
  } : {};
1948
2002
  }
1949
2003
  };
1950
- }, bi = function(e) {
2004
+ }, _r = function(e) {
1951
2005
  return e === void 0 && (e = {}), {
1952
2006
  name: "flip",
1953
2007
  options: e,
1954
2008
  async fn(t) {
1955
2009
  var o, n;
1956
2010
  const {
1957
- placement: i,
1958
- middlewareData: r,
1959
- rects: a,
1960
- initialPlacement: s,
2011
+ placement: r,
2012
+ middlewareData: i,
2013
+ rects: s,
2014
+ initialPlacement: a,
1961
2015
  platform: l,
1962
2016
  elements: u
1963
2017
  } = t, {
1964
- mainAxis: c = !0,
2018
+ mainAxis: f = !0,
1965
2019
  crossAxis: d = !0,
1966
- fallbackPlacements: m,
2020
+ fallbackPlacements: c,
1967
2021
  fallbackStrategy: y = "bestFit",
1968
- fallbackAxisSideDirection: h = "none",
2022
+ fallbackAxisSideDirection: m = "none",
1969
2023
  flipAlignment: x = !0,
1970
- ...b
1971
- } = ke(e, t);
1972
- if ((o = r.arrow) != null && o.alignmentOffset)
2024
+ ...g
2025
+ } = Ae(e, t);
2026
+ if ((o = i.arrow) != null && o.alignmentOffset)
1973
2027
  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));
1976
- const $ = [s, ...P], T = await et(t, b), I = [];
1977
- let E = ((n = r.flip) == null ? void 0 : n.overflows) || [];
1978
- if (c && I.push(T[v]), d) {
1979
- const D = $o(i, a, A);
1980
- I.push(T[D[0]], T[D[1]]);
2028
+ const h = de(r), w = pe(a), C = de(a) === a, S = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), k = c || (C || !x ? [Xe(a)] : yr(a)), A = m !== "none";
2029
+ !c && A && k.push(...vr(a, x, m, S));
2030
+ const b = [a, ...k], P = await tt(t, g), I = [];
2031
+ let E = ((n = i.flip) == null ? void 0 : n.overflows) || [];
2032
+ if (f && I.push(P[h]), d) {
2033
+ const D = Co(r, s, S);
2034
+ I.push(P[D[0]], P[D[1]]);
1981
2035
  }
1982
2036
  if (E = [...E, {
1983
- placement: i,
2037
+ placement: r,
1984
2038
  overflows: I
1985
2039
  }], !I.every((D) => D <= 0)) {
1986
- var W, k;
1987
- const D = (((W = r.flip) == null ? void 0 : W.index) || 0) + 1, ee = $[D];
1988
- if (ee && (!(d === "alignment" ? f !== pe(ee) : !1) || // We leave the current main axis only if every placement on that axis
2040
+ var W, _;
2041
+ const D = (((W = i.flip) == null ? void 0 : W.index) || 0) + 1, ee = b[D];
2042
+ if (ee && (!(d === "alignment" ? w !== pe(ee) : !1) || // We leave the current main axis only if every placement on that axis
1989
2043
  // overflows the main axis.
1990
- E.every((te) => pe(te.placement) === f ? te.overflows[0] > 0 : !0)))
2044
+ E.every((te) => pe(te.placement) === w ? te.overflows[0] > 0 : !0)))
1991
2045
  return {
1992
2046
  data: {
1993
2047
  index: D,
@@ -1997,28 +2051,28 @@ const wi = function(e) {
1997
2051
  placement: ee
1998
2052
  }
1999
2053
  };
2000
- let U = (k = E.filter((X) => X.overflows[0] <= 0).sort((X, te) => X.overflows[1] - te.overflows[1])[0]) == null ? void 0 : k.placement;
2054
+ let U = (_ = E.filter((X) => X.overflows[0] <= 0).sort((X, te) => X.overflows[1] - te.overflows[1])[0]) == null ? void 0 : _.placement;
2001
2055
  if (!U)
2002
2056
  switch (y) {
2003
2057
  case "bestFit": {
2004
2058
  var H;
2005
2059
  const X = (H = E.filter((te) => {
2006
- if (B) {
2060
+ if (A) {
2007
2061
  const le = pe(te.placement);
2008
- return le === f || // Create a bias to the `y` side axis due to horizontal
2062
+ return le === w || // Create a bias to the `y` side axis due to horizontal
2009
2063
  // reading directions favoring greater width.
2010
2064
  le === "y";
2011
2065
  }
2012
2066
  return !0;
2013
- }).map((te) => [te.placement, te.overflows.filter((le) => le > 0).reduce((le, Go) => le + Go, 0)]).sort((te, le) => te[1] - le[1])[0]) == null ? void 0 : H[0];
2067
+ }).map((te) => [te.placement, te.overflows.filter((le) => le > 0).reduce((le, Yo) => le + Yo, 0)]).sort((te, le) => te[1] - le[1])[0]) == null ? void 0 : H[0];
2014
2068
  X && (U = X);
2015
2069
  break;
2016
2070
  }
2017
2071
  case "initialPlacement":
2018
- U = s;
2072
+ U = a;
2019
2073
  break;
2020
2074
  }
2021
- if (i !== U)
2075
+ if (r !== U)
2022
2076
  return {
2023
2077
  reset: {
2024
2078
  placement: U
@@ -2028,17 +2082,17 @@ const wi = function(e) {
2028
2082
  return {};
2029
2083
  }
2030
2084
  };
2031
- }, xi = /* @__PURE__ */ new Set(["left", "top"]);
2032
- async function $i(e, t) {
2085
+ }, Ar = /* @__PURE__ */ new Set(["left", "top"]);
2086
+ async function Cr(e, t) {
2033
2087
  const {
2034
2088
  placement: o,
2035
2089
  platform: n,
2036
- elements: i
2037
- } = 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);
2090
+ elements: r
2091
+ } = e, i = await (n.isRTL == null ? void 0 : n.isRTL(r.floating)), s = de(o), a = se(o), l = pe(o) === "y", u = Ar.has(s) ? -1 : 1, f = i && l ? -1 : 1, d = Ae(t, e);
2038
2092
  let {
2039
- mainAxis: m,
2093
+ mainAxis: c,
2040
2094
  crossAxis: y,
2041
- alignmentAxis: h
2095
+ alignmentAxis: m
2042
2096
  } = typeof d == "number" ? {
2043
2097
  mainAxis: d,
2044
2098
  crossAxis: 0,
@@ -2048,37 +2102,37 @@ async function $i(e, t) {
2048
2102
  crossAxis: d.crossAxis || 0,
2049
2103
  alignmentAxis: d.alignmentAxis
2050
2104
  };
2051
- return s && typeof h == "number" && (y = s === "end" ? h * -1 : h), l ? {
2052
- x: y * c,
2053
- y: m * u
2105
+ return a && typeof m == "number" && (y = a === "end" ? m * -1 : m), l ? {
2106
+ x: y * f,
2107
+ y: c * u
2054
2108
  } : {
2055
- x: m * u,
2056
- y: y * c
2109
+ x: c * u,
2110
+ y: y * f
2057
2111
  };
2058
2112
  }
2059
- const _i = function(e) {
2113
+ const Sr = function(e) {
2060
2114
  return e === void 0 && (e = 0), {
2061
2115
  name: "offset",
2062
2116
  options: e,
2063
2117
  async fn(t) {
2064
2118
  var o, n;
2065
2119
  const {
2066
- x: i,
2067
- y: r,
2068
- placement: a,
2069
- middlewareData: s
2070
- } = t, l = await $i(t, e);
2071
- return a === ((o = s.offset) == null ? void 0 : o.placement) && (n = s.arrow) != null && n.alignmentOffset ? {} : {
2072
- x: i + l.x,
2073
- y: r + l.y,
2120
+ x: r,
2121
+ y: i,
2122
+ placement: s,
2123
+ middlewareData: a
2124
+ } = t, l = await Cr(t, e);
2125
+ return s === ((o = a.offset) == null ? void 0 : o.placement) && (n = a.arrow) != null && n.alignmentOffset ? {} : {
2126
+ x: r + l.x,
2127
+ y: i + l.y,
2074
2128
  data: {
2075
2129
  ...l,
2076
- placement: a
2130
+ placement: s
2077
2131
  }
2078
2132
  };
2079
2133
  }
2080
2134
  };
2081
- }, ki = function(e) {
2135
+ }, Tr = function(e) {
2082
2136
  return e === void 0 && (e = {}), {
2083
2137
  name: "shift",
2084
2138
  options: e,
@@ -2086,40 +2140,40 @@ const _i = function(e) {
2086
2140
  const {
2087
2141
  x: o,
2088
2142
  y: n,
2089
- placement: i
2143
+ placement: r
2090
2144
  } = t, {
2091
- mainAxis: r = !0,
2092
- crossAxis: a = !1,
2093
- limiter: s = {
2094
- fn: (b) => {
2145
+ mainAxis: i = !0,
2146
+ crossAxis: s = !1,
2147
+ limiter: a = {
2148
+ fn: (g) => {
2095
2149
  let {
2096
- x: v,
2097
- y: f
2098
- } = b;
2150
+ x: h,
2151
+ y: w
2152
+ } = g;
2099
2153
  return {
2100
- x: v,
2101
- y: f
2154
+ x: h,
2155
+ y: w
2102
2156
  };
2103
2157
  }
2104
2158
  },
2105
2159
  ...l
2106
- } = ke(e, t), u = {
2160
+ } = Ae(e, t), u = {
2107
2161
  x: o,
2108
2162
  y: n
2109
- }, c = await et(t, l), d = pe(de(i)), m = xo(d);
2110
- let y = u[m], h = u[d];
2111
- 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);
2163
+ }, f = await tt(t, l), d = pe(de(r)), c = Ao(d);
2164
+ let y = u[c], m = u[d];
2165
+ if (i) {
2166
+ const g = c === "y" ? "top" : "left", h = c === "y" ? "bottom" : "right", w = y + f[g], C = y - f[h];
2167
+ y = gt(w, y, C);
2114
2168
  }
2115
- 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);
2169
+ if (s) {
2170
+ const g = d === "y" ? "top" : "left", h = d === "y" ? "bottom" : "right", w = m + f[g], C = m - f[h];
2171
+ m = gt(w, m, C);
2118
2172
  }
2119
- const x = s.fn({
2173
+ const x = a.fn({
2120
2174
  ...t,
2121
- [m]: y,
2122
- [d]: h
2175
+ [c]: y,
2176
+ [d]: m
2123
2177
  });
2124
2178
  return {
2125
2179
  ...x,
@@ -2127,47 +2181,47 @@ const _i = function(e) {
2127
2181
  x: x.x - o,
2128
2182
  y: x.y - n,
2129
2183
  enabled: {
2130
- [m]: r,
2131
- [d]: a
2184
+ [c]: i,
2185
+ [d]: s
2132
2186
  }
2133
2187
  }
2134
2188
  };
2135
2189
  }
2136
2190
  };
2137
- }, Ai = function(e) {
2191
+ }, Br = function(e) {
2138
2192
  return e === void 0 && (e = {}), {
2139
2193
  name: "size",
2140
2194
  options: e,
2141
2195
  async fn(t) {
2142
2196
  var o, n;
2143
2197
  const {
2144
- placement: i,
2145
- rects: r,
2146
- platform: a,
2147
- elements: s
2198
+ placement: r,
2199
+ rects: i,
2200
+ platform: s,
2201
+ elements: a
2148
2202
  } = t, {
2149
2203
  apply: l = () => {
2150
2204
  },
2151
2205
  ...u
2152
- } = ke(e, t), c = await et(t, u), d = de(i), m = se(i), y = pe(i) === "y", {
2153
- width: h,
2206
+ } = Ae(e, t), f = await tt(t, u), d = de(r), c = se(r), y = pe(r) === "y", {
2207
+ width: m,
2154
2208
  height: x
2155
- } = 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;
2159
- 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) {
2161
- 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));
2209
+ } = i.floating;
2210
+ let g, h;
2211
+ d === "top" || d === "bottom" ? (g = d, h = c === (await (s.isRTL == null ? void 0 : s.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (h = d, g = c === "end" ? "top" : "bottom");
2212
+ const w = x - f.top - f.bottom, C = m - f.left - f.right, S = Fe(x - f[g], w), k = Fe(m - f[h], C), A = !t.middlewareData.shift;
2213
+ let b = S, P = k;
2214
+ if ((o = t.middlewareData.shift) != null && o.enabled.x && (P = C), (n = t.middlewareData.shift) != null && n.enabled.y && (b = w), A && !c) {
2215
+ const E = ke(f.left, 0), W = ke(f.right, 0), _ = ke(f.top, 0), H = ke(f.bottom, 0);
2216
+ y ? P = m - 2 * (E !== 0 || W !== 0 ? E + W : ke(f.left, f.right)) : b = x - 2 * (_ !== 0 || H !== 0 ? _ + H : ke(f.top, f.bottom));
2163
2217
  }
2164
2218
  await l({
2165
2219
  ...t,
2166
- availableWidth: T,
2167
- availableHeight: $
2220
+ availableWidth: P,
2221
+ availableHeight: b
2168
2222
  });
2169
- const I = await a.getDimensions(s.floating);
2170
- return h !== I.width || x !== I.height ? {
2223
+ const I = await s.getDimensions(a.floating);
2224
+ return m !== I.width || x !== I.height ? {
2171
2225
  reset: {
2172
2226
  rects: !0
2173
2227
  }
@@ -2175,202 +2229,202 @@ const _i = function(e) {
2175
2229
  }
2176
2230
  };
2177
2231
  };
2178
- function ie(e) {
2232
+ function re(e) {
2179
2233
  var t;
2180
2234
  return ((t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
2181
2235
  }
2182
2236
  function ue(e) {
2183
- return ie(e).getComputedStyle(e);
2237
+ return re(e).getComputedStyle(e);
2184
2238
  }
2185
- const Ft = Math.min, Re = Math.max, Xe = Math.round;
2186
- function ko(e) {
2239
+ const Ft = Math.min, Re = Math.max, Ye = Math.round;
2240
+ function To(e) {
2187
2241
  const t = ue(e);
2188
2242
  let o = parseFloat(t.width), n = parseFloat(t.height);
2189
- const i = e.offsetWidth, r = e.offsetHeight, a = Xe(o) !== i || Xe(n) !== r;
2190
- return a && (o = i, n = r), { width: o, height: n, fallback: a };
2243
+ const r = e.offsetWidth, i = e.offsetHeight, s = Ye(o) !== r || Ye(n) !== i;
2244
+ return s && (o = r, n = i), { width: o, height: n, fallback: s };
2191
2245
  }
2192
- function we(e) {
2193
- return Co(e) ? (e.nodeName || "").toLowerCase() : "";
2246
+ function be(e) {
2247
+ return Po(e) ? (e.nodeName || "").toLowerCase() : "";
2194
2248
  }
2195
- let Ve;
2196
- function Ao() {
2197
- if (Ve) return Ve;
2249
+ let We;
2250
+ function Bo() {
2251
+ if (We) return We;
2198
2252
  const e = navigator.userAgentData;
2199
- return e && Array.isArray(e.brands) ? (Ve = e.brands.map(((t) => t.brand + "/" + t.version)).join(" "), Ve) : navigator.userAgent;
2253
+ return e && Array.isArray(e.brands) ? (We = e.brands.map(((t) => t.brand + "/" + t.version)).join(" "), We) : navigator.userAgent;
2200
2254
  }
2201
2255
  function ce(e) {
2202
- return e instanceof ie(e).HTMLElement;
2256
+ return e instanceof re(e).HTMLElement;
2203
2257
  }
2204
2258
  function ge(e) {
2205
- return e instanceof ie(e).Element;
2259
+ return e instanceof re(e).Element;
2206
2260
  }
2207
- function Co(e) {
2208
- return e instanceof ie(e).Node;
2261
+ function Po(e) {
2262
+ return e instanceof re(e).Node;
2209
2263
  }
2210
2264
  function Nt(e) {
2211
- return typeof ShadowRoot > "u" ? !1 : e instanceof ie(e).ShadowRoot || e instanceof ShadowRoot;
2265
+ return typeof ShadowRoot > "u" ? !1 : e instanceof re(e).ShadowRoot || e instanceof ShadowRoot;
2212
2266
  }
2213
- function tt(e) {
2214
- const { overflow: t, overflowX: o, overflowY: n, display: i } = ue(e);
2215
- return /auto|scroll|overlay|hidden|clip/.test(t + n + o) && !["inline", "contents"].includes(i);
2267
+ function ot(e) {
2268
+ const { overflow: t, overflowX: o, overflowY: n, display: r } = ue(e);
2269
+ return /auto|scroll|overlay|hidden|clip/.test(t + n + o) && !["inline", "contents"].includes(r);
2216
2270
  }
2217
- function Ci(e) {
2218
- return ["table", "td", "th"].includes(we(e));
2271
+ function Pr(e) {
2272
+ return ["table", "td", "th"].includes(be(e));
2219
2273
  }
2220
- function gt(e) {
2221
- const t = /firefox/i.test(Ao()), o = ue(e), n = o.backdropFilter || o.WebkitBackdropFilter;
2222
- return o.transform !== "none" || o.perspective !== "none" || !!n && n !== "none" || t && o.willChange === "filter" || t && !!o.filter && o.filter !== "none" || ["transform", "perspective"].some(((i) => o.willChange.includes(i))) || ["paint", "layout", "strict", "content"].some(((i) => {
2223
- const r = o.contain;
2224
- return r != null && r.includes(i);
2274
+ function vt(e) {
2275
+ const t = /firefox/i.test(Bo()), o = ue(e), n = o.backdropFilter || o.WebkitBackdropFilter;
2276
+ return o.transform !== "none" || o.perspective !== "none" || !!n && n !== "none" || t && o.willChange === "filter" || t && !!o.filter && o.filter !== "none" || ["transform", "perspective"].some(((r) => o.willChange.includes(r))) || ["paint", "layout", "strict", "content"].some(((r) => {
2277
+ const i = o.contain;
2278
+ return i != null && i.includes(r);
2225
2279
  }));
2226
2280
  }
2227
- function So() {
2228
- return !/^((?!chrome|android).)*safari/i.test(Ao());
2281
+ function Oo() {
2282
+ return !/^((?!chrome|android).)*safari/i.test(Bo());
2229
2283
  }
2230
- function Ct(e) {
2231
- return ["html", "body", "#document"].includes(we(e));
2284
+ function St(e) {
2285
+ return ["html", "body", "#document"].includes(be(e));
2232
2286
  }
2233
- function Bo(e) {
2287
+ function Lo(e) {
2234
2288
  return ge(e) ? e : e.contextElement;
2235
2289
  }
2236
- const To = { x: 1, y: 1 };
2237
- function Ce(e) {
2238
- const t = Bo(e);
2239
- if (!ce(t)) return To;
2240
- const o = t.getBoundingClientRect(), { width: n, height: i, fallback: r } = ko(t);
2241
- let a = (r ? Xe(o.width) : o.width) / n, s = (r ? Xe(o.height) : o.height) / i;
2242
- return a && Number.isFinite(a) || (a = 1), s && Number.isFinite(s) || (s = 1), { x: a, y: s };
2290
+ const Ro = { x: 1, y: 1 };
2291
+ function Se(e) {
2292
+ const t = Lo(e);
2293
+ if (!ce(t)) return Ro;
2294
+ const o = t.getBoundingClientRect(), { width: n, height: r, fallback: i } = To(t);
2295
+ let s = (i ? Ye(o.width) : o.width) / n, a = (i ? Ye(o.height) : o.height) / r;
2296
+ return s && Number.isFinite(s) || (s = 1), a && Number.isFinite(a) || (a = 1), { x: s, y: a };
2243
2297
  }
2244
2298
  function Ne(e, t, o, n) {
2245
- var i, r;
2299
+ var r, i;
2246
2300
  t === void 0 && (t = !1), o === void 0 && (o = !1);
2247
- const a = e.getBoundingClientRect(), s = Bo(e);
2248
- let l = To;
2249
- t && (n ? ge(n) && (l = Ce(n)) : l = Ce(e));
2250
- 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;
2252
- 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;
2301
+ const s = e.getBoundingClientRect(), a = Lo(e);
2302
+ let l = Ro;
2303
+ t && (n ? ge(n) && (l = Se(n)) : l = Se(e));
2304
+ const u = a ? re(a) : window, f = !Oo() && o;
2305
+ let d = (s.left + (f && ((r = u.visualViewport) == null ? void 0 : r.offsetLeft) || 0)) / l.x, c = (s.top + (f && ((i = u.visualViewport) == null ? void 0 : i.offsetTop) || 0)) / l.y, y = s.width / l.x, m = s.height / l.y;
2306
+ if (a) {
2307
+ const x = re(a), g = n && ge(n) ? re(n) : n;
2308
+ let h = x.frameElement;
2309
+ for (; h && n && g !== x; ) {
2310
+ const w = Se(h), C = h.getBoundingClientRect(), S = getComputedStyle(h);
2311
+ C.x += (h.clientLeft + parseFloat(S.paddingLeft)) * w.x, C.y += (h.clientTop + parseFloat(S.paddingTop)) * w.y, d *= w.x, c *= w.y, y *= w.x, m *= w.y, d += C.x, c += C.y, h = re(h).frameElement;
2258
2312
  }
2259
2313
  }
2260
- return { width: y, height: h, top: m, right: d + y, bottom: m + h, left: d, x: d, y: m };
2314
+ return { width: y, height: m, top: c, right: d + y, bottom: c + m, left: d, x: d, y: c };
2261
2315
  }
2262
2316
  function ve(e) {
2263
- return ((Co(e) ? e.ownerDocument : e.document) || window.document).documentElement;
2317
+ return ((Po(e) ? e.ownerDocument : e.document) || window.document).documentElement;
2264
2318
  }
2265
- function ot(e) {
2319
+ function nt(e) {
2266
2320
  return ge(e) ? { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop } : { scrollLeft: e.pageXOffset, scrollTop: e.pageYOffset };
2267
2321
  }
2268
- function Po(e) {
2269
- return Ne(ve(e)).left + ot(e).scrollLeft;
2322
+ function zo(e) {
2323
+ return Ne(ve(e)).left + nt(e).scrollLeft;
2270
2324
  }
2271
2325
  function Ie(e) {
2272
- if (we(e) === "html") return e;
2326
+ if (be(e) === "html") return e;
2273
2327
  const t = e.assignedSlot || e.parentNode || Nt(e) && e.host || ve(e);
2274
2328
  return Nt(t) ? t.host : t;
2275
2329
  }
2276
- function Oo(e) {
2330
+ function Mo(e) {
2277
2331
  const t = Ie(e);
2278
- return Ct(t) ? t.ownerDocument.body : ce(t) && tt(t) ? t : Oo(t);
2332
+ return St(t) ? t.ownerDocument.body : ce(t) && ot(t) ? t : Mo(t);
2279
2333
  }
2280
2334
  function Qe(e, t) {
2281
2335
  var o;
2282
2336
  t === void 0 && (t = []);
2283
- const n = Oo(e), i = n === ((o = e.ownerDocument) == null ? void 0 : o.body), r = ie(n);
2284
- return i ? t.concat(r, r.visualViewport || [], tt(n) ? n : []) : t.concat(n, Qe(n));
2337
+ const n = Mo(e), r = n === ((o = e.ownerDocument) == null ? void 0 : o.body), i = re(n);
2338
+ return r ? t.concat(i, i.visualViewport || [], ot(n) ? n : []) : t.concat(n, Qe(n));
2285
2339
  }
2286
2340
  function It(e, t, o) {
2287
- return t === "viewport" ? Le((function(n, i) {
2288
- const r = ie(n), a = ve(n), s = r.visualViewport;
2289
- let l = a.clientWidth, u = a.clientHeight, c = 0, d = 0;
2290
- if (s) {
2291
- l = s.width, u = s.height;
2292
- const m = So();
2293
- (m || !m && i === "fixed") && (c = s.offsetLeft, d = s.offsetTop);
2341
+ return t === "viewport" ? Le((function(n, r) {
2342
+ const i = re(n), s = ve(n), a = i.visualViewport;
2343
+ let l = s.clientWidth, u = s.clientHeight, f = 0, d = 0;
2344
+ if (a) {
2345
+ l = a.width, u = a.height;
2346
+ const c = Oo();
2347
+ (c || !c && r === "fixed") && (f = a.offsetLeft, d = a.offsetTop);
2294
2348
  }
2295
- 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 };
2298
- return { width: n.clientWidth * l.x, height: n.clientHeight * l.y, x: s * l.x, y: a * l.y };
2349
+ return { width: l, height: u, x: f, y: d };
2350
+ })(e, o)) : ge(t) ? Le((function(n, r) {
2351
+ const i = Ne(n, !0, r === "fixed"), s = i.top + n.clientTop, a = i.left + n.clientLeft, l = ce(n) ? Se(n) : { x: 1, y: 1 };
2352
+ return { width: n.clientWidth * l.x, height: n.clientHeight * l.y, x: a * l.x, y: s * l.y };
2299
2353
  })(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);
2301
- let u = -r.scrollLeft + Po(n);
2302
- 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 };
2354
+ const r = ve(n), i = nt(n), s = n.ownerDocument.body, a = Re(r.scrollWidth, r.clientWidth, s.scrollWidth, s.clientWidth), l = Re(r.scrollHeight, r.clientHeight, s.scrollHeight, s.clientHeight);
2355
+ let u = -i.scrollLeft + zo(n);
2356
+ const f = -i.scrollTop;
2357
+ return ue(s).direction === "rtl" && (u += Re(r.clientWidth, s.clientWidth) - a), { width: a, height: l, x: u, y: f };
2304
2358
  })(ve(e)));
2305
2359
  }
2306
2360
  function Dt(e) {
2307
2361
  return ce(e) && ue(e).position !== "fixed" ? e.offsetParent : null;
2308
2362
  }
2309
2363
  function jt(e) {
2310
- const t = ie(e);
2364
+ const t = re(e);
2311
2365
  let o = Dt(e);
2312
- for (; o && Ci(o) && ue(o).position === "static"; ) o = Dt(o);
2313
- return o && (we(o) === "html" || we(o) === "body" && ue(o).position === "static" && !gt(o)) ? t : o || (function(n) {
2314
- let i = Ie(n);
2315
- for (; ce(i) && !Ct(i); ) {
2316
- if (gt(i)) return i;
2317
- i = Ie(i);
2366
+ for (; o && Pr(o) && ue(o).position === "static"; ) o = Dt(o);
2367
+ return o && (be(o) === "html" || be(o) === "body" && ue(o).position === "static" && !vt(o)) ? t : o || (function(n) {
2368
+ let r = Ie(n);
2369
+ for (; ce(r) && !St(r); ) {
2370
+ if (vt(r)) return r;
2371
+ r = Ie(r);
2318
2372
  }
2319
2373
  return null;
2320
2374
  })(e) || t;
2321
2375
  }
2322
- function Si(e, t, o) {
2323
- const n = ce(t), i = ve(t), r = Ne(e, !0, o === "fixed", t);
2324
- let a = { scrollLeft: 0, scrollTop: 0 };
2325
- const s = { x: 0, y: 0 };
2326
- if (n || !n && o !== "fixed") if ((we(t) !== "body" || tt(i)) && (a = ot(t)), ce(t)) {
2376
+ function Or(e, t, o) {
2377
+ const n = ce(t), r = ve(t), i = Ne(e, !0, o === "fixed", t);
2378
+ let s = { scrollLeft: 0, scrollTop: 0 };
2379
+ const a = { x: 0, y: 0 };
2380
+ if (n || !n && o !== "fixed") if ((be(t) !== "body" || ot(r)) && (s = nt(t)), ce(t)) {
2327
2381
  const l = Ne(t, !0);
2328
- s.x = l.x + t.clientLeft, s.y = l.y + t.clientTop;
2329
- } else i && (s.x = Po(i));
2330
- return { x: r.left + a.scrollLeft - s.x, y: r.top + a.scrollTop - s.y, width: r.width, height: r.height };
2382
+ a.x = l.x + t.clientLeft, a.y = l.y + t.clientTop;
2383
+ } else r && (a.x = zo(r));
2384
+ return { x: i.left + s.scrollLeft - a.x, y: i.top + s.scrollTop - a.y, width: i.width, height: i.height };
2331
2385
  }
2332
- const Bi = { getClippingRect: function(e) {
2333
- let { element: t, boundary: o, rootBoundary: n, strategy: i } = e;
2334
- const r = o === "clippingAncestors" ? (function(u, c) {
2335
- const d = c.get(u);
2386
+ const Lr = { getClippingRect: function(e) {
2387
+ let { element: t, boundary: o, rootBoundary: n, strategy: r } = e;
2388
+ const i = o === "clippingAncestors" ? (function(u, f) {
2389
+ const d = f.get(u);
2336
2390
  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);
2391
+ let c = Qe(u).filter(((g) => ge(g) && be(g) !== "body")), y = null;
2392
+ const m = ue(u).position === "fixed";
2393
+ let x = m ? Ie(u) : u;
2394
+ for (; ge(x) && !St(x); ) {
2395
+ const g = ue(x), h = vt(x);
2396
+ (m ? h || y : h || g.position !== "static" || !y || !["absolute", "fixed"].includes(y.position)) ? y = g : c = c.filter(((w) => w !== x)), x = Ie(x);
2343
2397
  }
2344
- return c.set(u, m), m;
2345
- })(t, this._c) : [].concat(o), a = [...r, n], s = a[0], l = a.reduce(((u, c) => {
2346
- const d = It(t, c, i);
2398
+ return f.set(u, c), c;
2399
+ })(t, this._c) : [].concat(o), s = [...i, n], a = s[0], l = s.reduce(((u, f) => {
2400
+ const d = It(t, f, r);
2347
2401
  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;
2348
- }), It(t, s, i));
2402
+ }), It(t, a, r));
2349
2403
  return { width: l.right - l.left, height: l.bottom - l.top, x: l.left, y: l.top };
2350
2404
  }, convertOffsetParentRelativeRectToViewportRelativeRect: function(e) {
2351
2405
  let { rect: t, offsetParent: o, strategy: n } = e;
2352
- const i = ce(o), r = ve(o);
2353
- if (o === r) return t;
2354
- let a = { scrollLeft: 0, scrollTop: 0 }, s = { x: 1, y: 1 };
2406
+ const r = ce(o), i = ve(o);
2407
+ if (o === i) return t;
2408
+ let s = { scrollLeft: 0, scrollTop: 0 }, a = { x: 1, y: 1 };
2355
2409
  const l = { x: 0, y: 0 };
2356
- if ((i || !i && n !== "fixed") && ((we(o) !== "body" || tt(r)) && (a = ot(o)), ce(o))) {
2410
+ if ((r || !r && n !== "fixed") && ((be(o) !== "body" || ot(i)) && (s = nt(o)), ce(o))) {
2357
2411
  const u = Ne(o);
2358
- s = Ce(o), l.x = u.x + o.clientLeft, l.y = u.y + o.clientTop;
2412
+ a = Se(o), l.x = u.x + o.clientLeft, l.y = u.y + o.clientTop;
2359
2413
  }
2360
- 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 };
2414
+ return { width: t.width * a.x, height: t.height * a.y, x: t.x * a.x - s.scrollLeft * a.x + l.x, y: t.y * a.y - s.scrollTop * a.y + l.y };
2361
2415
  }, isElement: ge, getDimensions: function(e) {
2362
- return ce(e) ? ko(e) : e.getBoundingClientRect();
2363
- }, getOffsetParent: jt, getDocumentElement: ve, getScale: Ce, async getElementRects(e) {
2416
+ return ce(e) ? To(e) : e.getBoundingClientRect();
2417
+ }, getOffsetParent: jt, getDocumentElement: ve, getScale: Se, async getElementRects(e) {
2364
2418
  let { reference: t, floating: o, strategy: n } = e;
2365
- const i = this.getOffsetParent || jt, r = this.getDimensions;
2366
- return { reference: Si(t, await i(o), n), floating: { x: 0, y: 0, ...await r(o) } };
2367
- }, getClientRects: (e) => Array.from(e.getClientRects()), isRTL: (e) => ue(e).direction === "rtl" }, Ti = (e, t, o) => {
2368
- const n = /* @__PURE__ */ new Map(), i = { platform: Bi, ...o }, r = { ...i.platform, _c: n };
2369
- return mi(e, t, { ...i, platform: r });
2419
+ const r = this.getOffsetParent || jt, i = this.getDimensions;
2420
+ return { reference: Or(t, await r(o), n), floating: { x: 0, y: 0, ...await i(o) } };
2421
+ }, getClientRects: (e) => Array.from(e.getClientRects()), isRTL: (e) => ue(e).direction === "rtl" }, Rr = (e, t, o) => {
2422
+ const n = /* @__PURE__ */ new Map(), r = { platform: Lr, ...o }, i = { ...r.platform, _c: n };
2423
+ return br(e, t, { ...r, platform: i });
2370
2424
  };
2371
- function Lo(e, t) {
2425
+ function Eo(e, t) {
2372
2426
  for (const o in t)
2373
- Object.prototype.hasOwnProperty.call(t, o) && (typeof t[o] == "object" && e[o] ? Lo(e[o], t[o]) : e[o] = t[o]);
2427
+ Object.prototype.hasOwnProperty.call(t, o) && (typeof t[o] == "object" && e[o] ? Eo(e[o], t[o]) : e[o] = t[o]);
2374
2428
  }
2375
2429
  const ae = {
2376
2430
  // Disable popper components
@@ -2458,7 +2512,7 @@ function De(e, t) {
2458
2512
  while (o);
2459
2513
  return n;
2460
2514
  }
2461
- function Pi(e) {
2515
+ function zr(e) {
2462
2516
  const t = [e];
2463
2517
  let o = ae.themes[e] || {};
2464
2518
  do
@@ -2474,22 +2528,22 @@ function qt(e) {
2474
2528
  while (o);
2475
2529
  return t;
2476
2530
  }
2477
- let Te = !1;
2531
+ let Be = !1;
2478
2532
  if (typeof window < "u") {
2479
- Te = !1;
2533
+ Be = !1;
2480
2534
  try {
2481
2535
  const e = Object.defineProperty({}, "passive", {
2482
2536
  get() {
2483
- Te = !0;
2537
+ Be = !0;
2484
2538
  }
2485
2539
  });
2486
2540
  window.addEventListener("test", null, e);
2487
2541
  } catch {
2488
2542
  }
2489
2543
  }
2490
- let Ro = !1;
2491
- typeof window < "u" && typeof navigator < "u" && (Ro = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream);
2492
- const zo = ["auto", "top", "bottom", "left", "right"].reduce((e, t) => e.concat([
2544
+ let Ho = !1;
2545
+ typeof window < "u" && typeof navigator < "u" && (Ho = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream);
2546
+ const Fo = ["auto", "top", "bottom", "left", "right"].reduce((e, t) => e.concat([
2493
2547
  t,
2494
2548
  `${t}-start`,
2495
2549
  `${t}-end`
@@ -2510,37 +2564,37 @@ function Gt(e, t) {
2510
2564
  const o = e.indexOf(t);
2511
2565
  o !== -1 && e.splice(o, 1);
2512
2566
  }
2513
- function st() {
2567
+ function at() {
2514
2568
  return new Promise((e) => requestAnimationFrame(() => {
2515
2569
  requestAnimationFrame(e);
2516
2570
  }));
2517
2571
  }
2518
- const re = [];
2519
- let be = null;
2572
+ const ie = [];
2573
+ let xe = null;
2520
2574
  const Zt = {};
2521
2575
  function Ut(e) {
2522
2576
  let t = Zt[e];
2523
2577
  return t || (t = Zt[e] = []), t;
2524
2578
  }
2525
- let vt = function() {
2579
+ let wt = function() {
2526
2580
  };
2527
- typeof window < "u" && (vt = window.Element);
2581
+ typeof window < "u" && (wt = window.Element);
2528
2582
  function L(e) {
2529
2583
  return function(t) {
2530
2584
  return De(t.theme, e);
2531
2585
  };
2532
2586
  }
2533
- const at = "__floating-vue__popper", Mo = () => Z({
2587
+ const lt = "__floating-vue__popper", No = () => Z({
2534
2588
  name: "VPopper",
2535
2589
  provide() {
2536
2590
  return {
2537
- [at]: {
2591
+ [lt]: {
2538
2592
  parentPopper: this
2539
2593
  }
2540
2594
  };
2541
2595
  },
2542
2596
  inject: {
2543
- [at]: { default: null }
2597
+ [lt]: { default: null }
2544
2598
  },
2545
2599
  props: {
2546
2600
  theme: {
@@ -2582,7 +2636,7 @@ const at = "__floating-vue__popper", Mo = () => Z({
2582
2636
  placement: {
2583
2637
  type: String,
2584
2638
  default: L("placement"),
2585
- validator: (e) => zo.includes(e)
2639
+ validator: (e) => Fo.includes(e)
2586
2640
  },
2587
2641
  delay: {
2588
2642
  type: [String, Number, Object],
@@ -2621,11 +2675,11 @@ const at = "__floating-vue__popper", Mo = () => Z({
2621
2675
  default: L("popperHideTriggers")
2622
2676
  },
2623
2677
  container: {
2624
- type: [String, Object, vt, Boolean],
2678
+ type: [String, Object, wt, Boolean],
2625
2679
  default: L("container")
2626
2680
  },
2627
2681
  boundary: {
2628
- type: [String, vt],
2682
+ type: [String, wt],
2629
2683
  default: L("boundary")
2630
2684
  },
2631
2685
  strategy: {
@@ -2787,7 +2841,7 @@ const at = "__floating-vue__popper", Mo = () => Z({
2787
2841
  },
2788
2842
  parentPopper() {
2789
2843
  var e;
2790
- return (e = this[at]) == null ? void 0 : e.parentPopper;
2844
+ return (e = this[lt]) == null ? void 0 : e.parentPopper;
2791
2845
  },
2792
2846
  hasPopperShowTriggerHover() {
2793
2847
  var e, t;
@@ -2838,8 +2892,8 @@ const at = "__floating-vue__popper", Mo = () => Z({
2838
2892
  },
2839
2893
  methods: {
2840
2894
  show({ event: e = null, skipDelay: t = !1, force: o = !1 } = {}) {
2841
- var n, i;
2842
- (n = this.parentPopper) != null && n.lockedChild && this.parentPopper.lockedChild !== this || (this.pendingHide = !1, (o || !this.disabled) && (((i = this.parentPopper) == null ? void 0 : i.lockedChild) === this && (this.parentPopper.lockedChild = null), this.$_scheduleShow(e, t), this.$emit("show"), this.$_showFrameLocked = !0, requestAnimationFrame(() => {
2895
+ var n, r;
2896
+ (n = this.parentPopper) != null && n.lockedChild && this.parentPopper.lockedChild !== this || (this.pendingHide = !1, (o || !this.disabled) && (((r = this.parentPopper) == null ? void 0 : r.lockedChild) === this && (this.parentPopper.lockedChild = null), this.$_scheduleShow(e, t), this.$emit("show"), this.$_showFrameLocked = !0, requestAnimationFrame(() => {
2843
2897
  this.$_showFrameLocked = !1;
2844
2898
  })), this.$emit("update:shown", !0));
2845
2899
  },
@@ -2876,31 +2930,31 @@ const at = "__floating-vue__popper", Mo = () => Z({
2876
2930
  strategy: this.strategy,
2877
2931
  middleware: []
2878
2932
  };
2879
- (this.distance || this.skidding) && e.middleware.push(_i({
2933
+ (this.distance || this.skidding) && e.middleware.push(Sr({
2880
2934
  mainAxis: this.distance,
2881
2935
  crossAxis: this.skidding
2882
2936
  }));
2883
2937
  const t = this.placement.startsWith("auto");
2884
- if (t ? e.middleware.push(wi({
2938
+ if (t ? e.middleware.push(kr({
2885
2939
  alignment: this.placement.split("-")[1] ?? ""
2886
- })) : e.placement = this.placement, this.preventOverflow && (this.shift && e.middleware.push(ki({
2940
+ })) : e.placement = this.placement, this.preventOverflow && (this.shift && e.middleware.push(Tr({
2887
2941
  padding: this.overflowPadding,
2888
2942
  boundary: this.boundary,
2889
2943
  crossAxis: this.shiftCrossAxis
2890
- })), !t && this.flip && e.middleware.push(bi({
2944
+ })), !t && this.flip && e.middleware.push(_r({
2891
2945
  padding: this.overflowPadding,
2892
2946
  boundary: this.boundary
2893
- }))), e.middleware.push(gi({
2947
+ }))), e.middleware.push(xr({
2894
2948
  element: this.$_arrowNode,
2895
2949
  padding: this.arrowPadding
2896
2950
  })), this.arrowOverflow && e.middleware.push({
2897
2951
  name: "arrowOverflow",
2898
- fn: ({ placement: n, rects: i, middlewareData: r }) => {
2899
- let a;
2900
- const { centerOffset: s } = r.arrow;
2901
- return n.startsWith("top") || n.startsWith("bottom") ? a = Math.abs(s) > i.reference.width / 2 : a = Math.abs(s) > i.reference.height / 2, {
2952
+ fn: ({ placement: n, rects: r, middlewareData: i }) => {
2953
+ let s;
2954
+ const { centerOffset: a } = i.arrow;
2955
+ return n.startsWith("top") || n.startsWith("bottom") ? s = Math.abs(a) > r.reference.width / 2 : s = Math.abs(a) > r.reference.height / 2, {
2902
2956
  data: {
2903
- overflow: a
2957
+ overflow: s
2904
2958
  }
2905
2959
  };
2906
2960
  }
@@ -2908,12 +2962,12 @@ const at = "__floating-vue__popper", Mo = () => Z({
2908
2962
  const n = this.autoSize ? this.autoSize : this.autoMinSize ? "min" : null;
2909
2963
  e.middleware.push({
2910
2964
  name: "autoSize",
2911
- fn: ({ rects: i, placement: r, middlewareData: a }) => {
2912
- var s;
2913
- if ((s = a.autoSize) != null && s.skip)
2965
+ fn: ({ rects: r, placement: i, middlewareData: s }) => {
2966
+ var a;
2967
+ if ((a = s.autoSize) != null && a.skip)
2914
2968
  return {};
2915
2969
  let l, u;
2916
- return r.startsWith("top") || r.startsWith("bottom") ? l = i.reference.width : u = i.reference.height, this.$_innerNode.style[n === "min" ? "minWidth" : n === "max" ? "maxWidth" : "width"] = l != null ? `${l}px` : null, this.$_innerNode.style[n === "min" ? "minHeight" : n === "max" ? "maxHeight" : "height"] = u != null ? `${u}px` : null, {
2970
+ return i.startsWith("top") || i.startsWith("bottom") ? l = r.reference.width : u = r.reference.height, this.$_innerNode.style[n === "min" ? "minWidth" : n === "max" ? "maxWidth" : "width"] = l != null ? `${l}px` : null, this.$_innerNode.style[n === "min" ? "minHeight" : n === "max" ? "maxHeight" : "height"] = u != null ? `${u}px` : null, {
2917
2971
  data: {
2918
2972
  skip: !0
2919
2973
  },
@@ -2924,14 +2978,14 @@ const at = "__floating-vue__popper", Mo = () => Z({
2924
2978
  }
2925
2979
  });
2926
2980
  }
2927
- (this.autoMaxSize || this.autoBoundaryMaxSize) && (this.$_innerNode.style.maxWidth = null, this.$_innerNode.style.maxHeight = null, e.middleware.push(Ai({
2981
+ (this.autoMaxSize || this.autoBoundaryMaxSize) && (this.$_innerNode.style.maxWidth = null, this.$_innerNode.style.maxHeight = null, e.middleware.push(Br({
2928
2982
  boundary: this.boundary,
2929
2983
  padding: this.overflowPadding,
2930
- apply: ({ availableWidth: n, availableHeight: i }) => {
2931
- this.$_innerNode.style.maxWidth = n != null ? `${n}px` : null, this.$_innerNode.style.maxHeight = i != null ? `${i}px` : null;
2984
+ apply: ({ availableWidth: n, availableHeight: r }) => {
2985
+ this.$_innerNode.style.maxWidth = n != null ? `${n}px` : null, this.$_innerNode.style.maxHeight = r != null ? `${r}px` : null;
2932
2986
  }
2933
2987
  })));
2934
- const o = await Ti(this.$_referenceNode, this.$_popperNode, e);
2988
+ const o = await Rr(this.$_referenceNode, this.$_popperNode, e);
2935
2989
  Object.assign(this.result, {
2936
2990
  x: o.x,
2937
2991
  y: o.y,
@@ -2944,8 +2998,8 @@ const at = "__floating-vue__popper", Mo = () => Z({
2944
2998
  });
2945
2999
  },
2946
3000
  $_scheduleShow(e, t = !1) {
2947
- if (this.$_updateParentShownChildren(!0), this.$_hideInProgress = !1, clearTimeout(this.$_scheduleTimer), be && this.instantMove && be.instantMove && be !== this.parentPopper) {
2948
- be.$_applyHide(!0), this.$_applyShow(!0);
3001
+ if (this.$_updateParentShownChildren(!0), this.$_hideInProgress = !1, clearTimeout(this.$_scheduleTimer), xe && this.instantMove && xe.instantMove && xe !== this.parentPopper) {
3002
+ xe.$_applyHide(!0), this.$_applyShow(!0);
2949
3003
  return;
2950
3004
  }
2951
3005
  t ? this.$_applyShow() : this.$_scheduleTimer = setTimeout(this.$_applyShow.bind(this), this.$_computeDelay("show"));
@@ -2955,14 +3009,14 @@ const at = "__floating-vue__popper", Mo = () => Z({
2955
3009
  this.pendingHide = !0;
2956
3010
  return;
2957
3011
  }
2958
- this.$_updateParentShownChildren(!1), this.$_hideInProgress = !0, clearTimeout(this.$_scheduleTimer), this.isShown && (be = this), t ? this.$_applyHide() : this.$_scheduleTimer = setTimeout(this.$_applyHide.bind(this), this.$_computeDelay("hide"));
3012
+ this.$_updateParentShownChildren(!1), this.$_hideInProgress = !0, clearTimeout(this.$_scheduleTimer), this.isShown && (xe = this), t ? this.$_applyHide() : this.$_scheduleTimer = setTimeout(this.$_applyHide.bind(this), this.$_computeDelay("hide"));
2959
3013
  },
2960
3014
  $_computeDelay(e) {
2961
3015
  const t = this.delay;
2962
3016
  return parseInt(t && t[e] || t || 0);
2963
3017
  },
2964
3018
  async $_applyShow(e = !1) {
2965
- clearTimeout(this.$_disposeTimer), clearTimeout(this.$_scheduleTimer), this.skipTransition = e, !this.isShown && (this.$_ensureTeleport(), await st(), await this.$_computePosition(), await this.$_applyShowEffect(), this.positioningDisabled || this.$_registerEventListeners([
3019
+ clearTimeout(this.$_disposeTimer), clearTimeout(this.$_scheduleTimer), this.skipTransition = e, !this.isShown && (this.$_ensureTeleport(), await at(), await this.$_computePosition(), await this.$_applyShowEffect(), this.positioningDisabled || this.$_registerEventListeners([
2966
3020
  ...Qe(this.$_referenceNode),
2967
3021
  ...Qe(this.$_popperNode)
2968
3022
  ], "scroll", () => {
@@ -2973,8 +3027,8 @@ const at = "__floating-vue__popper", Mo = () => Z({
2973
3027
  if (this.$_hideInProgress)
2974
3028
  return;
2975
3029
  if (this.computeTransformOrigin) {
2976
- const t = this.$_referenceNode.getBoundingClientRect(), o = this.$_popperNode.querySelector(".v-popper__wrapper"), n = o.parentNode.getBoundingClientRect(), i = t.x + t.width / 2 - (n.left + o.offsetLeft), r = t.y + t.height / 2 - (n.top + o.offsetTop);
2977
- this.result.transformOrigin = `${i}px ${r}px`;
3030
+ const t = this.$_referenceNode.getBoundingClientRect(), o = this.$_popperNode.querySelector(".v-popper__wrapper"), n = o.parentNode.getBoundingClientRect(), r = t.x + t.width / 2 - (n.left + o.offsetLeft), i = t.y + t.height / 2 - (n.top + o.offsetTop);
3031
+ this.result.transformOrigin = `${r}px ${i}px`;
2978
3032
  }
2979
3033
  this.isShown = !0, this.$_applyAttrsToTarget({
2980
3034
  "aria-describedby": this.popperId,
@@ -2983,13 +3037,13 @@ const at = "__floating-vue__popper", Mo = () => Z({
2983
3037
  const e = this.showGroup;
2984
3038
  if (e) {
2985
3039
  let t;
2986
- for (let o = 0; o < re.length; o++)
2987
- t = re[o], t.showGroup !== e && (t.hide(), t.$emit("close-group"));
3040
+ for (let o = 0; o < ie.length; o++)
3041
+ t = ie[o], t.showGroup !== e && (t.hide(), t.$emit("close-group"));
2988
3042
  }
2989
- re.push(this), document.body.classList.add("v-popper--some-open");
3043
+ ie.push(this), document.body.classList.add("v-popper--some-open");
2990
3044
  for (const t of qt(this.theme))
2991
3045
  Ut(t).push(this), document.body.classList.add(`v-popper--some-open--${t}`);
2992
- this.$emit("apply-show"), this.classes.showFrom = !0, this.classes.showTo = !1, this.classes.hideFrom = !1, this.classes.hideTo = !1, await st(), this.classes.showFrom = !1, this.classes.showTo = !0, this.noAutoFocus || this.$_popperNode.focus();
3046
+ this.$emit("apply-show"), this.classes.showFrom = !0, this.classes.showTo = !1, this.classes.hideFrom = !1, this.classes.hideTo = !1, await at(), this.classes.showFrom = !1, this.classes.showTo = !0, this.noAutoFocus || this.$_popperNode.focus();
2993
3047
  },
2994
3048
  async $_applyHide(e = !1) {
2995
3049
  if (this.shownChildren.size > 0) {
@@ -2998,19 +3052,19 @@ const at = "__floating-vue__popper", Mo = () => Z({
2998
3052
  }
2999
3053
  if (clearTimeout(this.$_scheduleTimer), !this.isShown)
3000
3054
  return;
3001
- this.skipTransition = e, Gt(re, this), re.length === 0 && document.body.classList.remove("v-popper--some-open");
3055
+ this.skipTransition = e, Gt(ie, this), ie.length === 0 && document.body.classList.remove("v-popper--some-open");
3002
3056
  for (const o of qt(this.theme)) {
3003
3057
  const n = Ut(o);
3004
3058
  Gt(n, this), n.length === 0 && document.body.classList.remove(`v-popper--some-open--${o}`);
3005
3059
  }
3006
- be === this && (be = null), this.isShown = !1, this.$_applyAttrsToTarget({
3060
+ xe === this && (xe = null), this.isShown = !1, this.$_applyAttrsToTarget({
3007
3061
  "aria-describedby": void 0,
3008
3062
  "data-popper-shown": void 0
3009
3063
  }), clearTimeout(this.$_disposeTimer);
3010
3064
  const t = this.disposeTimeout;
3011
3065
  t !== null && (this.$_disposeTimer = setTimeout(() => {
3012
3066
  this.$_popperNode && (this.$_detachPopperNode(), this.isMounted = !1);
3013
- }, t)), this.$_removeEventListeners("scroll"), this.$emit("apply-hide"), this.classes.showFrom = !1, this.classes.showTo = !1, this.classes.hideFrom = !0, this.classes.hideTo = !1, await st(), this.classes.hideFrom = !1, this.classes.hideTo = !0;
3067
+ }, t)), this.$_removeEventListeners("scroll"), this.$emit("apply-hide"), this.classes.showFrom = !1, this.classes.showTo = !1, this.classes.hideFrom = !0, this.classes.hideTo = !1, await at(), this.classes.hideFrom = !1, this.classes.hideTo = !0;
3014
3068
  },
3015
3069
  $_autoShowHide() {
3016
3070
  this.shown ? this.show() : this.hide();
@@ -3034,22 +3088,22 @@ const at = "__floating-vue__popper", Mo = () => Z({
3034
3088
  this.$_registerTriggerListeners(this.$_targetNodes, Wt, this.triggers, this.hideTriggers, t), this.$_registerTriggerListeners([this.$_popperNode], Wt, this.popperTriggers, this.popperHideTriggers, t);
3035
3089
  },
3036
3090
  $_registerEventListeners(e, t, o) {
3037
- this.$_events.push({ targetNodes: e, eventType: t, handler: o }), e.forEach((n) => n.addEventListener(t, o, Te ? {
3091
+ this.$_events.push({ targetNodes: e, eventType: t, handler: o }), e.forEach((n) => n.addEventListener(t, o, Be ? {
3038
3092
  passive: !0
3039
3093
  } : void 0));
3040
3094
  },
3041
- $_registerTriggerListeners(e, t, o, n, i) {
3042
- let r = o;
3043
- n != null && (r = typeof n == "function" ? n(r) : n), r.forEach((a) => {
3044
- const s = t[a];
3045
- s && this.$_registerEventListeners(e, s, i);
3095
+ $_registerTriggerListeners(e, t, o, n, r) {
3096
+ let i = o;
3097
+ n != null && (i = typeof n == "function" ? n(i) : n), i.forEach((s) => {
3098
+ const a = t[s];
3099
+ a && this.$_registerEventListeners(e, a, r);
3046
3100
  });
3047
3101
  },
3048
3102
  $_removeEventListeners(e) {
3049
3103
  const t = [];
3050
3104
  this.$_events.forEach((o) => {
3051
- const { targetNodes: n, eventType: i, handler: r } = o;
3052
- !e || e === i ? n.forEach((a) => a.removeEventListener(i, r)) : t.push(o);
3105
+ const { targetNodes: n, eventType: r, handler: i } = o;
3106
+ !e || e === r ? n.forEach((s) => s.removeEventListener(r, i)) : t.push(o);
3053
3107
  }), this.$_events = t;
3054
3108
  },
3055
3109
  $_refreshListeners() {
@@ -3084,11 +3138,11 @@ const at = "__floating-vue__popper", Mo = () => Z({
3084
3138
  $_isAimingPopper() {
3085
3139
  const e = this.$_referenceNode.getBoundingClientRect();
3086
3140
  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);
3141
+ const t = this.$_popperNode.getBoundingClientRect(), o = ze - fe, n = Me - ye, r = t.left + t.width / 2 - fe + (t.top + t.height / 2) - ye + t.width + t.height, i = fe + o * r, s = ye + n * r;
3142
+ return Ge(fe, ye, i, s, t.left, t.top, t.left, t.bottom) || // Left edge
3143
+ Ge(fe, ye, i, s, t.left, t.top, t.right, t.top) || // Top edge
3144
+ Ge(fe, ye, i, s, t.right, t.top, t.right, t.bottom) || // Right edge
3145
+ Ge(fe, ye, i, s, t.left, t.bottom, t.right, t.bottom);
3092
3146
  }
3093
3147
  return !1;
3094
3148
  }
@@ -3098,98 +3152,98 @@ const at = "__floating-vue__popper", Mo = () => Z({
3098
3152
  }
3099
3153
  });
3100
3154
  if (typeof document < "u" && typeof window < "u") {
3101
- if (Ro) {
3102
- const e = Te ? {
3155
+ if (Ho) {
3156
+ const e = Be ? {
3103
3157
  passive: !0,
3104
3158
  capture: !0
3105
3159
  } : !0;
3106
- document.addEventListener("touchstart", (t) => Xt(t, !0), e), document.addEventListener("touchend", (t) => Qt(t, !0), e);
3160
+ document.addEventListener("touchstart", (t) => Xt(t, !0), e), document.addEventListener("touchend", (t) => Yt(t, !0), e);
3107
3161
  } else
3108
- window.addEventListener("mousedown", (e) => Xt(e, !1), !0), window.addEventListener("click", (e) => Qt(e, !1), !0);
3109
- window.addEventListener("resize", Li);
3162
+ window.addEventListener("mousedown", (e) => Xt(e, !1), !0), window.addEventListener("click", (e) => Yt(e, !1), !0);
3163
+ window.addEventListener("resize", Er);
3110
3164
  }
3111
3165
  function Xt(e, t) {
3112
3166
  if (ae.autoHideOnMousedown)
3113
- Eo(e, t);
3167
+ Io(e, t);
3114
3168
  else
3115
- for (let o = 0; o < re.length; o++) {
3116
- const n = re[o];
3169
+ for (let o = 0; o < ie.length; o++) {
3170
+ const n = ie[o];
3117
3171
  try {
3118
3172
  n.mouseDownContains = n.popperNode().contains(e.target);
3119
3173
  } catch {
3120
3174
  }
3121
3175
  }
3122
3176
  }
3123
- function Qt(e, t) {
3124
- ae.autoHideOnMousedown || Eo(e, t);
3177
+ function Yt(e, t) {
3178
+ ae.autoHideOnMousedown || Io(e, t);
3125
3179
  }
3126
- function Eo(e, t) {
3180
+ function Io(e, t) {
3127
3181
  const o = {};
3128
- for (let n = re.length - 1; n >= 0; n--) {
3129
- const i = re[n];
3182
+ for (let n = ie.length - 1; n >= 0; n--) {
3183
+ const r = ie[n];
3130
3184
  try {
3131
- const r = i.containsGlobalTarget = i.mouseDownContains || i.popperNode().contains(e.target);
3132
- i.pendingHide = !1, requestAnimationFrame(() => {
3133
- if (i.pendingHide = !1, !o[i.randomId] && Yt(i, r, e)) {
3134
- if (i.$_handleGlobalClose(e, t), !e.closeAllPopover && e.closePopover && r) {
3135
- let s = i.parentPopper;
3136
- for (; s; )
3137
- o[s.randomId] = !0, s = s.parentPopper;
3185
+ const i = r.containsGlobalTarget = r.mouseDownContains || r.popperNode().contains(e.target);
3186
+ r.pendingHide = !1, requestAnimationFrame(() => {
3187
+ if (r.pendingHide = !1, !o[r.randomId] && Qt(r, i, e)) {
3188
+ if (r.$_handleGlobalClose(e, t), !e.closeAllPopover && e.closePopover && i) {
3189
+ let a = r.parentPopper;
3190
+ for (; a; )
3191
+ o[a.randomId] = !0, a = a.parentPopper;
3138
3192
  return;
3139
3193
  }
3140
- let a = i.parentPopper;
3141
- for (; a && Yt(a, a.containsGlobalTarget, e); )
3142
- a.$_handleGlobalClose(e, t), a = a.parentPopper;
3194
+ let s = r.parentPopper;
3195
+ for (; s && Qt(s, s.containsGlobalTarget, e); )
3196
+ s.$_handleGlobalClose(e, t), s = s.parentPopper;
3143
3197
  }
3144
3198
  });
3145
3199
  } catch {
3146
3200
  }
3147
3201
  }
3148
3202
  }
3149
- function Yt(e, t, o) {
3150
- return o.closeAllPopover || o.closePopover && t || Oi(e, o) && !t;
3203
+ function Qt(e, t, o) {
3204
+ return o.closeAllPopover || o.closePopover && t || Mr(e, o) && !t;
3151
3205
  }
3152
- function Oi(e, t) {
3206
+ function Mr(e, t) {
3153
3207
  if (typeof e.autoHide == "function") {
3154
3208
  const o = e.autoHide(t);
3155
3209
  return e.lastAutoHide = o, o;
3156
3210
  }
3157
3211
  return e.autoHide;
3158
3212
  }
3159
- function Li() {
3160
- for (let e = 0; e < re.length; e++)
3161
- re[e].$_computePosition();
3213
+ function Er() {
3214
+ for (let e = 0; e < ie.length; e++)
3215
+ ie[e].$_computePosition();
3162
3216
  }
3163
- let ye = 0, he = 0, ze = 0, Me = 0;
3217
+ let fe = 0, ye = 0, ze = 0, Me = 0;
3164
3218
  typeof window < "u" && window.addEventListener("mousemove", (e) => {
3165
- ye = ze, he = Me, ze = e.clientX, Me = e.clientY;
3166
- }, Te ? {
3219
+ fe = ze, ye = Me, ze = e.clientX, Me = e.clientY;
3220
+ }, Be ? {
3167
3221
  passive: !0
3168
3222
  } : void 0);
3169
- function We(e, t, o, n, i, r, a, s) {
3170
- const l = ((a - i) * (t - r) - (s - r) * (e - i)) / ((s - r) * (o - e) - (a - i) * (n - t)), u = ((o - e) * (t - r) - (n - t) * (e - i)) / ((s - r) * (o - e) - (a - i) * (n - t));
3223
+ function Ge(e, t, o, n, r, i, s, a) {
3224
+ const l = ((s - r) * (t - i) - (a - i) * (e - r)) / ((a - i) * (o - e) - (s - r) * (n - t)), u = ((o - e) * (t - i) - (n - t) * (e - r)) / ((a - i) * (o - e) - (s - r) * (n - t));
3171
3225
  return l >= 0 && l <= 1 && u >= 0 && u <= 1;
3172
3226
  }
3173
- const Ri = {
3174
- extends: Mo()
3175
- }, nt = (e, t) => {
3227
+ const Hr = {
3228
+ extends: No()
3229
+ }, rt = (e, t) => {
3176
3230
  const o = e.__vccOpts || e;
3177
- for (const [n, i] of t)
3178
- o[n] = i;
3231
+ for (const [n, r] of t)
3232
+ o[n] = r;
3179
3233
  return o;
3180
3234
  };
3181
- function zi(e, t, o, n, i, r) {
3182
- return g(), C("div", {
3235
+ function Fr(e, t, o, n, r, i) {
3236
+ return v(), B("div", {
3183
3237
  ref: "reference",
3184
3238
  class: N(["v-popper", {
3185
3239
  "v-popper--shown": e.slotData.isShown
3186
3240
  }])
3187
3241
  }, [
3188
- j(e.$slots, "default", Jo(en(e.slotData)))
3242
+ V(e.$slots, "default", tn(on(e.slotData)))
3189
3243
  ], 2);
3190
3244
  }
3191
- const Mi = /* @__PURE__ */ nt(Ri, [["render", zi]]);
3192
- function Ei() {
3245
+ const Nr = /* @__PURE__ */ rt(Hr, [["render", Fr]]);
3246
+ function Ir() {
3193
3247
  var e = window.navigator.userAgent, t = e.indexOf("MSIE ");
3194
3248
  if (t > 0)
3195
3249
  return parseInt(e.substring(t + 5, e.indexOf(".", t)), 10);
@@ -3198,12 +3252,12 @@ function Ei() {
3198
3252
  var n = e.indexOf("rv:");
3199
3253
  return parseInt(e.substring(n + 3, e.indexOf(".", n)), 10);
3200
3254
  }
3201
- var i = e.indexOf("Edge/");
3202
- return i > 0 ? parseInt(e.substring(i + 5, e.indexOf(".", i)), 10) : -1;
3255
+ var r = e.indexOf("Edge/");
3256
+ return r > 0 ? parseInt(e.substring(r + 5, e.indexOf(".", r)), 10) : -1;
3203
3257
  }
3204
- let Ge;
3205
- function wt() {
3206
- wt.init || (wt.init = !0, Ge = Ei() !== -1);
3258
+ let Ze;
3259
+ function bt() {
3260
+ bt.init || (bt.init = !0, Ze = Ir() !== -1);
3207
3261
  }
3208
3262
  var it = {
3209
3263
  name: "ResizeObserver",
@@ -3225,11 +3279,11 @@ var it = {
3225
3279
  "notify"
3226
3280
  ],
3227
3281
  mounted() {
3228
- wt(), Ee(() => {
3282
+ bt(), Ee(() => {
3229
3283
  this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitOnMount && this.emitSize();
3230
3284
  });
3231
3285
  const e = document.createElement("object");
3232
- this._resizeObject = e, e.setAttribute("aria-hidden", "true"), e.setAttribute("tabindex", -1), e.onload = this.addResizeHandlers, e.type = "text/html", Ge && this.$el.appendChild(e), e.data = "about:blank", Ge || this.$el.appendChild(e);
3286
+ this._resizeObject = e, e.setAttribute("aria-hidden", "true"), e.setAttribute("tabindex", -1), e.onload = this.addResizeHandlers, e.type = "text/html", Ze && this.$el.appendChild(e), e.data = "about:blank", Ze || this.$el.appendChild(e);
3233
3287
  },
3234
3288
  beforeUnmount() {
3235
3289
  this.removeResizeHandlers();
@@ -3248,34 +3302,34 @@ var it = {
3248
3302
  this._resizeObject.contentDocument.defaultView.addEventListener("resize", this.compareAndNotify), this.compareAndNotify();
3249
3303
  },
3250
3304
  removeResizeHandlers() {
3251
- this._resizeObject && this._resizeObject.onload && (!Ge && this._resizeObject.contentDocument && this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify), this.$el.removeChild(this._resizeObject), this._resizeObject.onload = null, this._resizeObject = null);
3305
+ this._resizeObject && this._resizeObject.onload && (!Ze && this._resizeObject.contentDocument && this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify), this.$el.removeChild(this._resizeObject), this._resizeObject.onload = null, this._resizeObject = null);
3252
3306
  }
3253
3307
  }
3254
3308
  };
3255
- const Hi = /* @__PURE__ */ nn("data-v-b329ee4c");
3256
- Yo("data-v-b329ee4c");
3257
- const Fi = {
3309
+ const Dr = /* @__PURE__ */ sn("data-v-b329ee4c");
3310
+ Jo("data-v-b329ee4c");
3311
+ const jr = {
3258
3312
  class: "resize-observer",
3259
3313
  tabindex: "-1"
3260
3314
  };
3261
- Ko();
3262
- const Ni = /* @__PURE__ */ Hi((e, t, o, n, i, r) => (g(), z("div", Fi)));
3263
- it.render = Ni;
3315
+ en();
3316
+ const qr = /* @__PURE__ */ Dr((e, t, o, n, r, i) => (v(), z("div", jr)));
3317
+ it.render = qr;
3264
3318
  it.__scopeId = "data-v-b329ee4c";
3265
3319
  it.__file = "src/components/ResizeObserver.vue";
3266
- const Ho = (e = "theme") => ({
3320
+ const Do = (e = "theme") => ({
3267
3321
  computed: {
3268
3322
  themeClass() {
3269
- return Pi(this[e]);
3323
+ return zr(this[e]);
3270
3324
  }
3271
3325
  }
3272
- }), Ii = Z({
3326
+ }), Vr = Z({
3273
3327
  name: "VPopperContent",
3274
3328
  components: {
3275
3329
  ResizeObserver: it
3276
3330
  },
3277
3331
  mixins: [
3278
- Ho()
3332
+ Do()
3279
3333
  ],
3280
3334
  props: {
3281
3335
  popperId: String,
@@ -3297,16 +3351,16 @@ const Ho = (e = "theme") => ({
3297
3351
  return e != null && !isNaN(e) ? `${e}px` : null;
3298
3352
  }
3299
3353
  }
3300
- }), Di = ["id", "aria-hidden", "tabindex", "data-popper-placement"], ji = {
3354
+ }), Wr = ["id", "aria-hidden", "tabindex", "data-popper-placement"], Gr = {
3301
3355
  ref: "inner",
3302
3356
  class: "v-popper__inner"
3303
- }, qi = /* @__PURE__ */ S("div", { class: "v-popper__arrow-outer" }, null, -1), Vi = /* @__PURE__ */ S("div", { class: "v-popper__arrow-inner" }, null, -1), Wi = [
3304
- qi,
3305
- Vi
3357
+ }, Zr = /* @__PURE__ */ T("div", { class: "v-popper__arrow-outer" }, null, -1), Ur = /* @__PURE__ */ T("div", { class: "v-popper__arrow-inner" }, null, -1), Xr = [
3358
+ Zr,
3359
+ Ur
3306
3360
  ];
3307
- function Gi(e, t, o, n, i, r) {
3308
- const a = He("ResizeObserver");
3309
- return g(), C("div", {
3361
+ function Yr(e, t, o, n, r, i) {
3362
+ const s = He("ResizeObserver");
3363
+ return v(), B("div", {
3310
3364
  id: e.popperId,
3311
3365
  ref: "popover",
3312
3366
  class: N(["v-popper__popper", [
@@ -3324,48 +3378,48 @@ function Gi(e, t, o, n, i, r) {
3324
3378
  "v-popper__popper--no-positioning": !e.result
3325
3379
  }
3326
3380
  ]]),
3327
- style: _e(e.result ? {
3381
+ style: he(e.result ? {
3328
3382
  position: e.result.strategy,
3329
3383
  transform: `translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`
3330
3384
  } : void 0),
3331
3385
  "aria-hidden": e.shown ? "false" : "true",
3332
3386
  tabindex: e.autoHide ? 0 : void 0,
3333
3387
  "data-popper-placement": e.result ? e.result.placement : void 0,
3334
- onKeyup: t[2] || (t[2] = $t((s) => e.autoHide && e.$emit("hide"), ["esc"]))
3388
+ onKeyup: t[2] || (t[2] = kt((a) => e.autoHide && e.$emit("hide"), ["esc"]))
3335
3389
  }, [
3336
- S("div", {
3390
+ T("div", {
3337
3391
  class: "v-popper__backdrop",
3338
- onClick: t[0] || (t[0] = (s) => e.autoHide && e.$emit("hide"))
3392
+ onClick: t[0] || (t[0] = (a) => e.autoHide && e.$emit("hide"))
3339
3393
  }),
3340
- S("div", {
3394
+ T("div", {
3341
3395
  class: "v-popper__wrapper",
3342
- style: _e(e.result ? {
3396
+ style: he(e.result ? {
3343
3397
  transformOrigin: e.result.transformOrigin
3344
3398
  } : void 0)
3345
3399
  }, [
3346
- S("div", ji, [
3347
- e.mounted ? (g(), C(fe, { key: 0 }, [
3348
- S("div", null, [
3349
- j(e.$slots, "default")
3400
+ T("div", Gr, [
3401
+ e.mounted ? (v(), B(we, { key: 0 }, [
3402
+ T("div", null, [
3403
+ V(e.$slots, "default")
3350
3404
  ]),
3351
- e.handleResize ? (g(), z(a, {
3405
+ e.handleResize ? (v(), z(s, {
3352
3406
  key: 0,
3353
- onNotify: t[1] || (t[1] = (s) => e.$emit("resize", s))
3354
- })) : O("", !0)
3355
- ], 64)) : O("", !0)
3407
+ onNotify: t[1] || (t[1] = (a) => e.$emit("resize", a))
3408
+ })) : R("", !0)
3409
+ ], 64)) : R("", !0)
3356
3410
  ], 512),
3357
- S("div", {
3411
+ T("div", {
3358
3412
  ref: "arrow",
3359
3413
  class: "v-popper__arrow-container",
3360
- style: _e(e.result ? {
3414
+ style: he(e.result ? {
3361
3415
  left: e.toPx(e.result.arrow.x),
3362
3416
  top: e.toPx(e.result.arrow.y)
3363
3417
  } : void 0)
3364
- }, Wi, 4)
3418
+ }, Xr, 4)
3365
3419
  ], 4)
3366
- ], 46, Di);
3420
+ ], 46, Wr);
3367
3421
  }
3368
- const Fo = /* @__PURE__ */ nt(Ii, [["render", Gi]]), No = {
3422
+ const jo = /* @__PURE__ */ rt(Vr, [["render", Yr]]), qo = {
3369
3423
  methods: {
3370
3424
  show(...e) {
3371
3425
  return this.$refs.popper.show(...e);
@@ -3381,18 +3435,18 @@ const Fo = /* @__PURE__ */ nt(Ii, [["render", Gi]]), No = {
3381
3435
  }
3382
3436
  }
3383
3437
  };
3384
- let bt = function() {
3438
+ let xt = function() {
3385
3439
  };
3386
- typeof window < "u" && (bt = window.Element);
3387
- const Zi = Z({
3440
+ typeof window < "u" && (xt = window.Element);
3441
+ const Qr = Z({
3388
3442
  name: "VPopperWrapper",
3389
3443
  components: {
3390
- Popper: Mi,
3391
- PopperContent: Fo
3444
+ Popper: Nr,
3445
+ PopperContent: jo
3392
3446
  },
3393
3447
  mixins: [
3394
- No,
3395
- Ho("finalTheme")
3448
+ qo,
3449
+ Do("finalTheme")
3396
3450
  ],
3397
3451
  props: {
3398
3452
  theme: {
@@ -3464,11 +3518,11 @@ const Zi = Z({
3464
3518
  default: void 0
3465
3519
  },
3466
3520
  container: {
3467
- type: [String, Object, bt, Boolean],
3521
+ type: [String, Object, xt, Boolean],
3468
3522
  default: void 0
3469
3523
  },
3470
3524
  boundary: {
3471
- type: [String, bt],
3525
+ type: [String, xt],
3472
3526
  default: void 0
3473
3527
  },
3474
3528
  strategy: {
@@ -3580,9 +3634,9 @@ const Zi = Z({
3580
3634
  }
3581
3635
  }
3582
3636
  });
3583
- 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, {
3637
+ function Kr(e, t, o, n, r, i) {
3638
+ const s = He("PopperContent"), a = He("Popper");
3639
+ return v(), z(a, _t({ ref: "popper" }, e.$props, {
3586
3640
  theme: e.finalTheme,
3587
3641
  "target-nodes": e.getTargetNodes,
3588
3642
  "popper-node": () => e.$refs.popperContent.$el,
@@ -3599,42 +3653,42 @@ function Ui(e, t, o, n, i, r) {
3599
3653
  onAutoHide: t[7] || (t[7] = () => e.$emit("auto-hide")),
3600
3654
  onResize: t[8] || (t[8] = () => e.$emit("resize"))
3601
3655
  }), {
3602
- default: _(({
3656
+ default: $(({
3603
3657
  popperId: l,
3604
3658
  isShown: u,
3605
- shouldMountContent: c,
3659
+ shouldMountContent: f,
3606
3660
  skipTransition: d,
3607
- autoHide: m,
3661
+ autoHide: c,
3608
3662
  show: y,
3609
- hide: h,
3663
+ hide: m,
3610
3664
  handleResize: x,
3611
- onResize: b,
3612
- classes: v,
3613
- result: f
3665
+ onResize: g,
3666
+ classes: h,
3667
+ result: w
3614
3668
  }) => [
3615
- j(e.$slots, "default", {
3669
+ V(e.$slots, "default", {
3616
3670
  shown: u,
3617
3671
  show: y,
3618
- hide: h
3672
+ hide: m
3619
3673
  }),
3620
- F(a, {
3674
+ F(s, {
3621
3675
  ref: "popperContent",
3622
3676
  "popper-id": l,
3623
3677
  theme: e.finalTheme,
3624
3678
  shown: u,
3625
- mounted: c,
3679
+ mounted: f,
3626
3680
  "skip-transition": d,
3627
- "auto-hide": m,
3681
+ "auto-hide": c,
3628
3682
  "handle-resize": x,
3629
- classes: v,
3630
- result: f,
3631
- onHide: h,
3632
- onResize: b
3683
+ classes: h,
3684
+ result: w,
3685
+ onHide: m,
3686
+ onResize: g
3633
3687
  }, {
3634
- default: _(() => [
3635
- j(e.$slots, "popper", {
3688
+ default: $(() => [
3689
+ V(e.$slots, "popper", {
3636
3690
  shown: u,
3637
- hide: h
3691
+ hide: m
3638
3692
  })
3639
3693
  ]),
3640
3694
  _: 2
@@ -3643,26 +3697,26 @@ function Ui(e, t, o, n, i, r) {
3643
3697
  _: 3
3644
3698
  }, 16, ["theme", "target-nodes", "popper-node", "class"]);
3645
3699
  }
3646
- const St = /* @__PURE__ */ nt(Zi, [["render", Ui]]), Xi = {
3647
- ...St,
3700
+ const Tt = /* @__PURE__ */ rt(Qr, [["render", Kr]]), Jr = {
3701
+ ...Tt,
3648
3702
  name: "VDropdown",
3649
3703
  vPopperTheme: "dropdown"
3650
- }, Qi = {
3651
- ...St,
3704
+ }, ei = {
3705
+ ...Tt,
3652
3706
  name: "VMenu",
3653
3707
  vPopperTheme: "menu"
3654
- }, Yi = {
3655
- ...St,
3708
+ }, ti = {
3709
+ ...Tt,
3656
3710
  name: "VTooltip",
3657
3711
  vPopperTheme: "tooltip"
3658
- }, Ki = Z({
3712
+ }, oi = Z({
3659
3713
  name: "VTooltipDirective",
3660
3714
  components: {
3661
- Popper: Mo(),
3662
- PopperContent: Fo
3715
+ Popper: No(),
3716
+ PopperContent: jo
3663
3717
  },
3664
3718
  mixins: [
3665
- No
3719
+ qo
3666
3720
  ],
3667
3721
  inheritAttrs: !1,
3668
3722
  props: {
@@ -3735,29 +3789,29 @@ const St = /* @__PURE__ */ nt(Zi, [["render", Ui]]), Xi = {
3735
3789
  this.$_isShown = !1;
3736
3790
  }
3737
3791
  }
3738
- }), Ji = ["innerHTML"], er = ["textContent"];
3739
- 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, {
3792
+ }), ni = ["innerHTML"], ri = ["textContent"];
3793
+ function ii(e, t, o, n, r, i) {
3794
+ const s = He("PopperContent"), a = He("Popper");
3795
+ return v(), z(a, _t({ ref: "popper" }, e.$attrs, {
3742
3796
  theme: e.theme,
3743
3797
  "target-nodes": e.targetNodes,
3744
3798
  "popper-node": () => e.$refs.popperContent.$el,
3745
3799
  onApplyShow: e.onShow,
3746
3800
  onApplyHide: e.onHide
3747
3801
  }), {
3748
- default: _(({
3802
+ default: $(({
3749
3803
  popperId: l,
3750
3804
  isShown: u,
3751
- shouldMountContent: c,
3805
+ shouldMountContent: f,
3752
3806
  skipTransition: d,
3753
- autoHide: m,
3807
+ autoHide: c,
3754
3808
  hide: y,
3755
- handleResize: h,
3809
+ handleResize: m,
3756
3810
  onResize: x,
3757
- classes: b,
3758
- result: v
3811
+ classes: g,
3812
+ result: h
3759
3813
  }) => [
3760
- F(a, {
3814
+ F(s, {
3761
3815
  ref: "popperContent",
3762
3816
  class: N({
3763
3817
  "v-popper--tooltip-loading": e.loading
@@ -3765,23 +3819,23 @@ function tr(e, t, o, n, i, r) {
3765
3819
  "popper-id": l,
3766
3820
  theme: e.theme,
3767
3821
  shown: u,
3768
- mounted: c,
3822
+ mounted: f,
3769
3823
  "skip-transition": d,
3770
- "auto-hide": m,
3771
- "handle-resize": h,
3772
- classes: b,
3773
- result: v,
3824
+ "auto-hide": c,
3825
+ "handle-resize": m,
3826
+ classes: g,
3827
+ result: h,
3774
3828
  onHide: y,
3775
3829
  onResize: x
3776
3830
  }, {
3777
- default: _(() => [
3778
- e.html ? (g(), C("div", {
3831
+ default: $(() => [
3832
+ e.html ? (v(), B("div", {
3779
3833
  key: 0,
3780
3834
  innerHTML: e.finalContent
3781
- }, null, 8, Ji)) : (g(), C("div", {
3835
+ }, null, 8, ni)) : (v(), B("div", {
3782
3836
  key: 1,
3783
3837
  textContent: G(e.finalContent)
3784
- }, null, 8, er))
3838
+ }, null, 8, ri))
3785
3839
  ]),
3786
3840
  _: 2
3787
3841
  }, 1032, ["class", "popper-id", "theme", "shown", "mounted", "skip-transition", "auto-hide", "handle-resize", "classes", "result", "onHide", "onResize"])
@@ -3789,24 +3843,24 @@ function tr(e, t, o, n, i, r) {
3789
3843
  _: 1
3790
3844
  }, 16, ["theme", "target-nodes", "popper-node", "onApplyShow", "onApplyHide"]);
3791
3845
  }
3792
- const or = /* @__PURE__ */ nt(Ki, [["render", tr]]), Io = "v-popper--has-tooltip";
3793
- function nr(e, t) {
3846
+ const si = /* @__PURE__ */ rt(oi, [["render", ii]]), Vo = "v-popper--has-tooltip";
3847
+ function ai(e, t) {
3794
3848
  let o = e.placement;
3795
3849
  if (!o && t)
3796
- for (const n of zo)
3850
+ for (const n of Fo)
3797
3851
  t[n] && (o = n);
3798
3852
  return o || (o = De(e.theme || "tooltip", "placement")), o;
3799
3853
  }
3800
- function Do(e, t, o) {
3854
+ function Wo(e, t, o) {
3801
3855
  let n;
3802
- const i = typeof t;
3803
- 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;
3856
+ const r = typeof t;
3857
+ return r === "string" ? n = { content: t } : t && r === "object" ? n = t : n = { content: !1 }, n.placement = ai(n, o), n.targetNodes = () => [e], n.referenceNode = () => e, n;
3804
3858
  }
3805
- let lt, je, ir = 0;
3806
- function rr() {
3807
- if (lt)
3859
+ let ut, je, li = 0;
3860
+ function ui() {
3861
+ if (ut)
3808
3862
  return;
3809
- je = V([]), lt = tn({
3863
+ je = q([]), ut = nn({
3810
3864
  name: "VTooltipDirectiveApp",
3811
3865
  setup() {
3812
3866
  return {
@@ -3814,7 +3868,7 @@ function rr() {
3814
3868
  };
3815
3869
  },
3816
3870
  render() {
3817
- return this.directives.map((t) => on(or, {
3871
+ return this.directives.map((t) => rn(si, {
3818
3872
  ...t.options,
3819
3873
  shown: t.shown || t.options.shown,
3820
3874
  key: t.id
@@ -3825,81 +3879,81 @@ function rr() {
3825
3879
  }
3826
3880
  });
3827
3881
  const e = document.createElement("div");
3828
- document.body.appendChild(e), lt.mount(e);
3882
+ document.body.appendChild(e), ut.mount(e);
3829
3883
  }
3830
- function sr(e, t, o) {
3831
- rr();
3832
- const n = V(Do(e, t, o)), i = V(!1), r = {
3833
- id: ir++,
3884
+ function ci(e, t, o) {
3885
+ ui();
3886
+ const n = q(Wo(e, t, o)), r = q(!1), i = {
3887
+ id: li++,
3834
3888
  options: n,
3835
- shown: i
3889
+ shown: r
3836
3890
  };
3837
- return je.value.push(r), e.classList && e.classList.add(Io), e.$_popper = {
3891
+ return je.value.push(i), e.classList && e.classList.add(Vo), e.$_popper = {
3838
3892
  options: n,
3839
- item: r,
3893
+ item: i,
3840
3894
  show() {
3841
- i.value = !0;
3895
+ r.value = !0;
3842
3896
  },
3843
3897
  hide() {
3844
- i.value = !1;
3898
+ r.value = !1;
3845
3899
  }
3846
3900
  };
3847
3901
  }
3848
- function jo(e) {
3902
+ function Go(e) {
3849
3903
  if (e.$_popper) {
3850
3904
  const t = je.value.indexOf(e.$_popper.item);
3851
3905
  t !== -1 && je.value.splice(t, 1), delete e.$_popper, delete e.$_popperOldShown, delete e.$_popperMountTarget;
3852
3906
  }
3853
- e.classList && e.classList.remove(Io);
3907
+ e.classList && e.classList.remove(Vo);
3854
3908
  }
3855
3909
  function Kt(e, { value: t, modifiers: o }) {
3856
- const n = Do(e, t, o);
3910
+ const n = Wo(e, t, o);
3857
3911
  if (!n.content || De(n.theme || "tooltip", "disabled"))
3858
- jo(e);
3912
+ Go(e);
3859
3913
  else {
3860
- let i;
3861
- e.$_popper ? (i = e.$_popper, i.options.value = n) : i = sr(e, t, o), typeof t.shown < "u" && t.shown !== e.$_popperOldShown && (e.$_popperOldShown = t.shown, t.shown ? i.show() : i.hide());
3914
+ let r;
3915
+ e.$_popper ? (r = e.$_popper, r.options.value = n) : r = ci(e, t, o), typeof t.shown < "u" && t.shown !== e.$_popperOldShown && (e.$_popperOldShown = t.shown, t.shown ? r.show() : r.hide());
3862
3916
  }
3863
3917
  }
3864
- const ar = {
3918
+ const di = {
3865
3919
  beforeMount: Kt,
3866
3920
  updated: Kt,
3867
3921
  beforeUnmount(e) {
3868
- jo(e);
3922
+ Go(e);
3869
3923
  }
3870
3924
  };
3871
3925
  function Jt(e) {
3872
- e.addEventListener("mousedown", Ye), e.addEventListener("click", Ye), e.addEventListener("touchstart", qo, Te ? {
3926
+ e.addEventListener("mousedown", Ke), e.addEventListener("click", Ke), e.addEventListener("touchstart", Zo, Be ? {
3873
3927
  passive: !0
3874
3928
  } : !1);
3875
3929
  }
3876
3930
  function eo(e) {
3877
- e.removeEventListener("mousedown", Ye), e.removeEventListener("click", Ye), e.removeEventListener("touchstart", qo), e.removeEventListener("touchend", Vo), e.removeEventListener("touchcancel", Wo);
3931
+ e.removeEventListener("mousedown", Ke), e.removeEventListener("click", Ke), e.removeEventListener("touchstart", Zo), e.removeEventListener("touchend", Uo), e.removeEventListener("touchcancel", Xo);
3878
3932
  }
3879
- function Ye(e) {
3933
+ function Ke(e) {
3880
3934
  const t = e.currentTarget;
3881
3935
  e.closePopover = !t.$_vclosepopover_touch, e.closeAllPopover = t.$_closePopoverModifiers && !!t.$_closePopoverModifiers.all;
3882
3936
  }
3883
- function qo(e) {
3937
+ function Zo(e) {
3884
3938
  if (e.changedTouches.length === 1) {
3885
3939
  const t = e.currentTarget;
3886
3940
  t.$_vclosepopover_touch = !0;
3887
3941
  const o = e.changedTouches[0];
3888
- t.$_vclosepopover_touchPoint = o, t.addEventListener("touchend", Vo), t.addEventListener("touchcancel", Wo);
3942
+ t.$_vclosepopover_touchPoint = o, t.addEventListener("touchend", Uo), t.addEventListener("touchcancel", Xo);
3889
3943
  }
3890
3944
  }
3891
- function Vo(e) {
3945
+ function Uo(e) {
3892
3946
  const t = e.currentTarget;
3893
3947
  if (t.$_vclosepopover_touch = !1, e.changedTouches.length === 1) {
3894
3948
  const o = e.changedTouches[0], n = t.$_vclosepopover_touchPoint;
3895
3949
  e.closePopover = Math.abs(o.screenY - n.screenY) < 20 && Math.abs(o.screenX - n.screenX) < 20, e.closeAllPopover = t.$_closePopoverModifiers && !!t.$_closePopoverModifiers.all;
3896
3950
  }
3897
3951
  }
3898
- function Wo(e) {
3952
+ function Xo(e) {
3899
3953
  const t = e.currentTarget;
3900
3954
  t.$_vclosepopover_touch = !1;
3901
3955
  }
3902
- const lr = {
3956
+ const pi = {
3903
3957
  beforeMount(e, { value: t, modifiers: o }) {
3904
3958
  e.$_closePopoverModifiers = o, (typeof t > "u" || t) && Jt(e);
3905
3959
  },
@@ -3910,25 +3964,25 @@ const lr = {
3910
3964
  eo(e);
3911
3965
  }
3912
3966
  };
3913
- function ur(e, t = {}) {
3914
- e.$_vTooltipInstalled || (e.$_vTooltipInstalled = !0, Lo(ae, t), e.directive("tooltip", ar), e.directive("close-popper", lr), e.component("VTooltip", Yi), e.component("VDropdown", Xi), e.component("VMenu", Qi));
3967
+ function fi(e, t = {}) {
3968
+ e.$_vTooltipInstalled || (e.$_vTooltipInstalled = !0, Eo(ae, t), e.directive("tooltip", di), e.directive("close-popper", pi), e.component("VTooltip", ti), e.component("VDropdown", Jr), e.component("VMenu", ei));
3915
3969
  }
3916
- const cr = {
3970
+ const yi = {
3917
3971
  // eslint-disable-next-line no-undef
3918
3972
  version: "5.2.2",
3919
- install: ur,
3973
+ install: fi,
3920
3974
  options: ae
3921
- }, dr = "c3fd21c9-c91a-4c66-baa5-c3e050c2cc74", to = "2026-10-13T14:00:00.000Z", pr = "69756c6a-cd47-41ef-a9c3-faa0b1aeb4a1", xe = "https://i.allsvgicons.com/lucide", Q = {
3975
+ }, hi = "c3fd21c9-c91a-4c66-baa5-c3e050c2cc74", to = "2026-10-13T14:00:00.000Z", mi = "69756c6a-cd47-41ef-a9c3-faa0b1aeb4a1", $e = "https://i.allsvgicons.com/lucide", Y = {
3922
3976
  marketplace: "https://svgl.app/library/mercado-libre.svg",
3923
- shipping: `${xe}/truck.svg`,
3924
- exchange: `${xe}/arrow-left-right.svg`,
3925
- returns: `${xe}/undo-2.svg`,
3926
- support: `${xe}/headphones.svg`,
3927
- chat: `${xe}/message-circle.svg`,
3928
- cancel: `${xe}/x.svg`,
3929
- payment: `${xe}/credit-card.svg`
3930
- }, Y = {
3931
- logo: Q.marketplace,
3977
+ shipping: `${$e}/truck.svg`,
3978
+ exchange: `${$e}/arrow-left-right.svg`,
3979
+ returns: `${$e}/undo-2.svg`,
3980
+ support: `${$e}/headphones.svg`,
3981
+ chat: `${$e}/message-circle.svg`,
3982
+ cancel: `${$e}/x.svg`,
3983
+ payment: `${$e}/credit-card.svg`
3984
+ }, Q = {
3985
+ logo: Y.marketplace,
3932
3986
  title: "Mercado Livre",
3933
3987
  subtitle: "Atendimento online"
3934
3988
  }, K = (e, t, o) => ({
@@ -3936,18 +3990,18 @@ const cr = {
3936
3990
  eyebrow: "MERCADO LIVRE",
3937
3991
  title: t,
3938
3992
  subtitle: o
3939
- }), rt = [
3993
+ }), st = [
3940
3994
  { name: "name", alias: "Nome", required: !0 },
3941
3995
  { name: "phone", alias: "Telefone", required: !0 },
3942
3996
  { name: "email", alias: "E-mail", required: !1 }
3943
- ], fr = [
3997
+ ], gi = [
3944
3998
  { name: "name", alias: "Nome", required: !0 },
3945
3999
  { name: "phone", alias: "Telefone", required: !0 },
3946
4000
  { name: "email", alias: "E-mail", required: !1 },
3947
4001
  { name: "cpf", alias: "CPF", required: !0 }
3948
4002
  ], J = (e) => ({
3949
4003
  id: e.id,
3950
- companyId: dr,
4004
+ companyId: hi,
3951
4005
  name: e.name,
3952
4006
  action: e.action,
3953
4007
  message: null,
@@ -3977,8 +4031,8 @@ const cr = {
3977
4031
  name: "Acompanhar pedido",
3978
4032
  action: "service",
3979
4033
  settings: {
3980
- header: Y,
3981
- body: K(Q.shipping, "Acompanhar pedido", "Vamos te ajudar a localizar a entrega."),
4034
+ header: Q,
4035
+ body: K(Y.shipping, "Acompanhar pedido", "Vamos te ajudar a localizar a entrega."),
3982
4036
  features: { sendMessage: !0, sendAttachment: !0 },
3983
4037
  behavior: "chat"
3984
4038
  }
@@ -3987,28 +4041,28 @@ const cr = {
3987
4041
  name: "Troca",
3988
4042
  action: "service",
3989
4043
  settings: {
3990
- header: Y,
3991
- body: K(Q.exchange, "Solicitar troca", "Vamos te orientar sobre as opções de troca."),
4044
+ header: Q,
4045
+ body: K(Y.exchange, "Solicitar troca", "Vamos te orientar sobre as opções de troca."),
3992
4046
  features: { sendMessage: !0, sendAttachment: !0 },
3993
4047
  behavior: "chat"
3994
4048
  }
3995
- }), io = J({
4049
+ }), ro = J({
3996
4050
  id: "a1111111-1111-4111-8111-111111111103",
3997
4051
  name: "Devolução",
3998
4052
  action: "service",
3999
4053
  settings: {
4000
- header: Y,
4001
- body: K(Q.returns, "Solicitar devolução", "Vamos te orientar sobre a devolução."),
4054
+ header: Q,
4055
+ body: K(Y.returns, "Solicitar devolução", "Vamos te orientar sobre a devolução."),
4002
4056
  features: { sendMessage: !0, sendAttachment: !0 },
4003
4057
  behavior: "chat"
4004
4058
  }
4005
- }), ro = J({
4059
+ }), io = J({
4006
4060
  id: "a1111111-1111-4111-8111-111111111104",
4007
4061
  name: "Consultar solicitação",
4008
4062
  action: "service",
4009
4063
  settings: {
4010
- header: Y,
4011
- body: K(Q.support, "Consultar solicitação", "Conte o que você precisa sobre o atendimento."),
4064
+ header: Q,
4065
+ body: K(Y.support, "Consultar solicitação", "Conte o que você precisa sobre o atendimento."),
4012
4066
  features: { sendMessage: !0, sendAttachment: !0 },
4013
4067
  behavior: "chat"
4014
4068
  }
@@ -4017,8 +4071,8 @@ const cr = {
4017
4071
  name: "Falar com a equipe",
4018
4072
  action: "service",
4019
4073
  settings: {
4020
- header: Y,
4021
- body: K(Q.chat, "Falar com a equipe", "Conte o que você precisa e vamos te ajudar."),
4074
+ header: Q,
4075
+ body: K(Y.chat, "Falar com a equipe", "Conte o que você precisa e vamos te ajudar."),
4022
4076
  features: { sendMessage: !0, sendAttachment: !0 },
4023
4077
  behavior: "chat"
4024
4078
  }
@@ -4027,8 +4081,8 @@ const cr = {
4027
4081
  name: "Cancelar pedido",
4028
4082
  action: "service",
4029
4083
  settings: {
4030
- header: Y,
4031
- body: K(Q.cancel, "Cancelar pedido", "Vamos verificar se o pedido ainda pode ser cancelado."),
4084
+ header: Q,
4085
+ body: K(Y.cancel, "Cancelar pedido", "Vamos verificar se o pedido ainda pode ser cancelado."),
4032
4086
  features: { sendMessage: !0, sendAttachment: !0 },
4033
4087
  behavior: "chat"
4034
4088
  }
@@ -4037,111 +4091,111 @@ const cr = {
4037
4091
  name: "Pagamento",
4038
4092
  action: "service",
4039
4093
  settings: {
4040
- header: Y,
4041
- body: K(Q.payment, "Pagamento", "Dúvidas sobre Pix, boleto ou cartão."),
4094
+ header: Q,
4095
+ body: K(Y.payment, "Pagamento", "Dúvidas sobre Pix, boleto ou cartão."),
4042
4096
  features: { sendMessage: !0, sendAttachment: !0 },
4043
4097
  behavior: "chat"
4044
4098
  }
4045
- }), ut = J({
4099
+ }), ct = J({
4046
4100
  id: "b2222222-2222-4222-8222-222222222201",
4047
4101
  name: "Acompanhar pedido",
4048
4102
  action: "identification",
4049
4103
  settings: {
4050
- header: Y,
4051
- body: K(Q.shipping, "Localizar pedido", "Informe seus dados para acompanhar a entrega."),
4052
- form: { fields: [...rt] }
4104
+ header: Q,
4105
+ body: K(Y.shipping, "Localizar pedido", "Informe seus dados para acompanhar a entrega."),
4106
+ form: { fields: [...st] }
4053
4107
  }
4054
- }), ct = J({
4108
+ }), dt = J({
4055
4109
  id: "b2222222-2222-4222-8222-222222222202",
4056
4110
  name: "Solicitar troca",
4057
4111
  action: "identification",
4058
4112
  settings: {
4059
- header: Y,
4060
- body: K(Q.exchange, "Solicitar troca", "Informe seus dados para iniciar o atendimento."),
4061
- form: { fields: [...rt] }
4113
+ header: Q,
4114
+ body: K(Y.exchange, "Solicitar troca", "Informe seus dados para iniciar o atendimento."),
4115
+ form: { fields: [...st] }
4062
4116
  }
4063
- }), dt = J({
4117
+ }), pt = J({
4064
4118
  id: "b2222222-2222-4222-8222-222222222203",
4065
4119
  name: "Solicitar devolução",
4066
4120
  action: "identification",
4067
4121
  settings: {
4068
- header: Y,
4069
- body: K(Q.returns, "Solicitar devolução", "Informe seus dados para falar sobre a devolução."),
4070
- form: { fields: [...rt] }
4122
+ header: Q,
4123
+ body: K(Y.returns, "Solicitar devolução", "Informe seus dados para falar sobre a devolução."),
4124
+ form: { fields: [...st] }
4071
4125
  }
4072
- }), pt = J({
4126
+ }), ft = J({
4073
4127
  id: "b2222222-2222-4222-8222-222222222204",
4074
4128
  name: "Cancelar pedido",
4075
4129
  action: "identification",
4076
4130
  settings: {
4077
- header: Y,
4078
- body: K(Q.cancel, "Cancelar pedido", "Informe seus dados para verificar o cancelamento."),
4079
- form: { fields: [...fr] }
4131
+ header: Q,
4132
+ body: K(Y.cancel, "Cancelar pedido", "Informe seus dados para verificar o cancelamento."),
4133
+ form: { fields: [...gi] }
4080
4134
  }
4081
- }), ft = J({
4135
+ }), yt = J({
4082
4136
  id: "b2222222-2222-4222-8222-222222222205",
4083
4137
  name: "Pagamento",
4084
4138
  action: "identification",
4085
4139
  settings: {
4086
- header: Y,
4087
- body: K(Q.payment, "Pagamento", "Informe seus dados para falar sobre o pagamento."),
4088
- form: { fields: [...rt] }
4140
+ header: Q,
4141
+ body: K(Y.payment, "Pagamento", "Informe seus dados para falar sobre o pagamento."),
4142
+ form: { fields: [...st] }
4089
4143
  }
4090
- }), yt = J({
4144
+ }), ht = J({
4091
4145
  id: "c3333333-3333-4333-8333-333333333301",
4092
4146
  name: "Trocas e devoluções",
4093
4147
  action: "screen",
4094
4148
  settings: {
4095
- header: Y,
4096
- body: K(Q.returns, "Trocas e devoluções", "Escolha o que você precisa.")
4149
+ header: Q,
4150
+ body: K(Y.returns, "Trocas e devoluções", "Escolha o que você precisa.")
4097
4151
  }
4098
- }), xt = J({
4152
+ }), $t = J({
4099
4153
  id: "d0000000-0000-4000-8000-000000000001",
4100
4154
  name: "Mercado Livre",
4101
4155
  action: "screen",
4102
4156
  configId: "37b0b2d3-6a07-4567-a5ad-7456a820905d",
4103
4157
  settings: {
4104
- header: Y,
4105
- body: K(Q.marketplace, "Como podemos ajudar?", "Escolha uma opção para continuar.")
4158
+ header: Q,
4159
+ body: K(Y.marketplace, "Como podemos ajudar?", "Escolha uma opção para continuar.")
4106
4160
  }
4107
- }), yr = {
4108
- id: pr,
4161
+ }), vi = {
4162
+ id: mi,
4109
4163
  rules: [
4110
- ut,
4111
- pt,
4164
+ ct,
4112
4165
  ft,
4113
4166
  yt,
4167
+ ht,
4114
4168
  so,
4115
- ct,
4116
4169
  dt,
4117
- ro,
4170
+ pt,
4171
+ io,
4118
4172
  oo,
4119
4173
  ao,
4120
4174
  lo,
4121
4175
  no,
4122
- io,
4123
- xt
4176
+ ro,
4177
+ $t
4124
4178
  ],
4125
4179
  edges: {
4126
- [xt.id]: [
4127
- oe("aa2db433-f691-4b0e-b2f3-703eb131fcc1", ut.id),
4128
- oe("aa2db433-f691-4b0e-b2f3-703eb131fcc2", pt.id),
4129
- oe("aa2db433-f691-4b0e-b2f3-703eb131fcc3", ft.id),
4130
- oe("aa2db433-f691-4b0e-b2f3-703eb131fcc4", yt.id),
4180
+ [$t.id]: [
4181
+ oe("aa2db433-f691-4b0e-b2f3-703eb131fcc1", ct.id),
4182
+ oe("aa2db433-f691-4b0e-b2f3-703eb131fcc2", ft.id),
4183
+ oe("aa2db433-f691-4b0e-b2f3-703eb131fcc3", yt.id),
4184
+ oe("aa2db433-f691-4b0e-b2f3-703eb131fcc4", ht.id),
4131
4185
  oe("aa2db433-f691-4b0e-b2f3-703eb131fcc5", so.id)
4132
4186
  ],
4133
- [yt.id]: [
4134
- oe("bb2db433-f691-4b0e-b2f3-703eb131fcc1", ct.id),
4135
- oe("bb2db433-f691-4b0e-b2f3-703eb131fcc2", dt.id),
4136
- oe("bb2db433-f691-4b0e-b2f3-703eb131fcc3", ro.id)
4187
+ [ht.id]: [
4188
+ oe("bb2db433-f691-4b0e-b2f3-703eb131fcc1", dt.id),
4189
+ oe("bb2db433-f691-4b0e-b2f3-703eb131fcc2", pt.id),
4190
+ oe("bb2db433-f691-4b0e-b2f3-703eb131fcc3", io.id)
4137
4191
  ],
4138
- [ut.id]: [oe("cc2db433-f691-4b0e-b2f3-703eb131fcc1", oo.id)],
4139
- [pt.id]: [oe("cc2db433-f691-4b0e-b2f3-703eb131fcc2", ao.id)],
4140
- [ft.id]: [oe("cc2db433-f691-4b0e-b2f3-703eb131fcc3", lo.id)],
4141
- [ct.id]: [oe("cc2db433-f691-4b0e-b2f3-703eb131fcc4", no.id)],
4142
- [dt.id]: [oe("cc2db433-f691-4b0e-b2f3-703eb131fcc5", io.id)]
4192
+ [ct.id]: [oe("cc2db433-f691-4b0e-b2f3-703eb131fcc1", oo.id)],
4193
+ [ft.id]: [oe("cc2db433-f691-4b0e-b2f3-703eb131fcc2", ao.id)],
4194
+ [yt.id]: [oe("cc2db433-f691-4b0e-b2f3-703eb131fcc3", lo.id)],
4195
+ [dt.id]: [oe("cc2db433-f691-4b0e-b2f3-703eb131fcc4", no.id)],
4196
+ [pt.id]: [oe("cc2db433-f691-4b0e-b2f3-703eb131fcc5", ro.id)]
4143
4197
  }
4144
- }, mr = xt, gr = (e) => yr.rules.find((t) => t.id === e), vr = {
4198
+ }, bi = $t, xi = (e) => vi.rules.find((t) => t.id === e), $i = {
4145
4199
  configurations: {
4146
4200
  alias: "Mercado Livre",
4147
4201
  general: {
@@ -4164,30 +4218,30 @@ const cr = {
4164
4218
  }
4165
4219
  }
4166
4220
  }
4167
- }, wr = {
4221
+ }, ki = {
4168
4222
  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);
4223
+ e.use(yi), e.component("AppIdentificationPage", go), e.component("AppFormTextInput", ho), e.component("AppWidgetAnchor", vo), e.component("AppServicePage", bo), e.component("AppScreenPage", ko), e.component("AppWidgetView", _o), e.component("AppTextInput", sr), e.component("AppCarousel", mo), e.component("AppMessage", wo), e.component("AppWidget", ur), e.component("AppButton", _e), e.component("AppGroup", me), e.component("AppIcon", ne), e.component("AppText", j);
4170
4224
  }
4171
4225
  };
4172
4226
  export {
4173
- Be as AppButton,
4174
- yo as AppCarousel,
4175
- fo as AppFormTextInput,
4227
+ _e as AppButton,
4228
+ mo as AppCarousel,
4229
+ ho as AppFormTextInput,
4176
4230
  me as AppGroup,
4177
4231
  ne as AppIcon,
4178
- ho as AppIdentificationPage,
4179
- go as AppMessage,
4180
- wo as AppScreenPage,
4181
- vo as AppServicePage,
4182
- q as AppText,
4183
- ti as AppTextInput,
4184
- ri as AppWidget,
4185
- mo as AppWidgetAnchor,
4186
- bo as AppWidgetView,
4187
- wr as default,
4188
- mr as demoRootRule,
4189
- vr as demoWidgetConfig,
4190
- yr as demoWorkflow,
4191
- gr as findDemoRuleById,
4192
- Ke as useAppWidget
4232
+ go as AppIdentificationPage,
4233
+ wo as AppMessage,
4234
+ ko as AppScreenPage,
4235
+ bo as AppServicePage,
4236
+ j as AppText,
4237
+ sr as AppTextInput,
4238
+ ur as AppWidget,
4239
+ vo as AppWidgetAnchor,
4240
+ _o as AppWidgetView,
4241
+ ki as default,
4242
+ bi as demoRootRule,
4243
+ $i as demoWidgetConfig,
4244
+ vi as demoWorkflow,
4245
+ xi as findDemoRuleById,
4246
+ Je as useAppWidget
4193
4247
  };