@opens/widget-ui 1.0.11 → 1.0.13

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.
Files changed (37) hide show
  1. package/README.md +1 -1
  2. package/dist/app-icon.vue.d.ts.map +1 -0
  3. package/dist/components/pages/app-service-page.vue.d.ts +2 -0
  4. package/dist/components/typography/use-typography-classes.d.ts +30 -30
  5. package/dist/components/ui/app-empty.vue.d.ts +18 -0
  6. package/dist/components/ui/app-skeleton.vue.d.ts +14 -0
  7. package/dist/components/widget/app-widget-view.vue.d.ts +2 -0
  8. package/dist/components/widget/app-widget.vue.d.ts +2 -0
  9. package/dist/composables/use-app-widget.d.ts +3 -0
  10. package/dist/composables/use-button-style.d.ts +3 -3
  11. package/dist/composables/use-input-style.d.ts +2 -2
  12. package/dist/composables/use-service-chat-behavior.d.ts +3 -0
  13. package/dist/composables/use-service-page.d.ts +3 -0
  14. package/dist/composables/use-widget-appearance.d.ts +1 -1
  15. package/dist/index.d.ts +1 -1
  16. package/dist/main.d.ts +3 -1
  17. package/dist/pages/app-identification-page.vue.d.ts.map +1 -0
  18. package/dist/pages/app-screen-page.vue.d.ts.map +1 -0
  19. package/dist/typography/app-text.vue.d.ts +1 -1
  20. package/dist/ui/app-carousel.vue.d.ts +1 -1
  21. package/dist/ui/app-empty.vue.d.ts +4 -0
  22. package/dist/ui/app-empty.vue.d.ts.map +1 -0
  23. package/dist/ui/app-skeleton.vue.d.ts +4 -0
  24. package/dist/ui/app-skeleton.vue.d.ts.map +1 -0
  25. package/dist/widget/app-widget-view.vue.d.ts +1 -1
  26. package/dist/widget/app-widget.vue.d.ts +1 -1
  27. package/dist/yunique_widget_ui.cjs.js +1 -1
  28. package/dist/yunique_widget_ui.css +1 -1
  29. package/dist/yunique_widget_ui.es.js +1363 -1244
  30. package/dist/yunique_widget_ui.umd.js +2 -2
  31. package/package.json +1 -1
  32. package/dist/app-identification-page.vue.d.ts.map +0 -1
  33. package/dist/app-screen-page.vue.d.ts.map +0 -1
  34. package/dist/icons/app-icon.vue.d.ts.map +0 -1
  35. /package/dist/{icons/app-icon.vue.d.ts → app-icon.vue.d.ts} +0 -0
  36. /package/dist/{app-identification-page.vue.d.ts → pages/app-identification-page.vue.d.ts} +0 -0
  37. /package/dist/{app-screen-page.vue.d.ts → pages/app-screen-page.vue.d.ts} +0 -0
@@ -1,5 +1,5 @@
1
- import { ref as D, computed as m, toValue as Re, reactive as qn, watch as ye, nextTick as Ce, defineComponent as Z, createElementBlock as B, openBlock as b, normalizeClass as F, unref as _, renderSlot as W, useSlots as We, createBlock as R, withCtx as $, createElementVNode as S, createCommentVNode as M, withKeys as et, createTextVNode as O, onMounted as $t, onBeforeUnmount as on, normalizeStyle as ce, Fragment as he, renderList as Ae, resolveDynamicComponent as rn, Comment as Bt, Text as Tt, createVNode as I, isRef as sn, toDisplayString as G, createSlots as ht, withDirectives as Gn, withModifiers as Zn, vModelText as Un, Transition as an, mergeProps as kt, pushScopeId as Xn, popScopeId as Yn, normalizeProps as Kn, guardReactiveProps as Qn, resolveComponent as Fe, createApp as Jn, h as eo, withScopeId as to } from "vue";
2
- function no() {
1
+ import { ref as I, computed as w, toValue as Oe, reactive as Zn, watch as we, nextTick as Ae, defineComponent as q, createElementBlock as S, openBlock as y, normalizeClass as F, unref as C, renderSlot as W, useSlots as Be, createBlock as T, withCtx as $, createElementVNode as B, createCommentVNode as R, withKeys as et, createTextVNode as M, onMounted as kt, onBeforeUnmount as rn, normalizeStyle as pe, Fragment as ue, renderList as xe, resolveDynamicComponent as sn, Comment as Tt, Text as Pt, createVNode as E, isRef as an, toDisplayString as Z, createSlots as wt, withDirectives as Un, withModifiers as Xn, vModelText as Yn, Transition as ln, mergeProps as _t, pushScopeId as Kn, popScopeId as Qn, normalizeProps as Jn, guardReactiveProps as eo, resolveComponent as Ne, createApp as to, h as no, withScopeId as oo } from "vue";
2
+ function ro() {
3
3
  return {
4
4
  maskPhone: (r) => {
5
5
  if (!r) return "";
@@ -19,14 +19,17 @@ function no() {
19
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
- function oo() {
22
+ function so() {
23
23
  return {};
24
24
  }
25
- const at = D([]), ro = D("");
26
- function so() {
25
+ const at = I([]), io = I(""), ao = I(!1), lo = I(!1), uo = I(!1);
26
+ function co() {
27
27
  return {
28
+ isErrorLoadingMessages: ao,
29
+ isLoadingMessages: lo,
30
+ isSendingMessage: uo,
28
31
  messages: at,
29
- text: ro,
32
+ text: io,
30
33
  setMessages: (n) => {
31
34
  at.value = [...n];
32
35
  },
@@ -35,121 +38,121 @@ function so() {
35
38
  }
36
39
  };
37
40
  }
38
- function io() {
39
- const e = so(), t = oo();
41
+ function po() {
42
+ const e = co(), t = so();
40
43
  return {
41
44
  chat: e,
42
45
  voice: t
43
46
  };
44
47
  }
45
- const Le = D([]), lt = D(void 0), ge = D(void 0), qe = () => {
48
+ const Me = I([]), lt = I(void 0), ve = I(void 0), qe = () => {
46
49
  const e = (c) => {
47
- const y = new Set(
48
- Object.values(c.edges ?? {}).flatMap((v) => v.map((g) => g.nextRuleId))
50
+ const v = new Set(
51
+ Object.values(c.edges ?? {}).flatMap((b) => b.map((g) => g.nextRuleId))
49
52
  );
50
- return c.rules.find((v) => !y.has(v.id)) ?? c.rules[0];
51
- }, t = (c, y) => {
52
- const v = new Map(c.rules.map((g) => [g.id, g]));
53
- return (c.edges[y] ?? []).flatMap((g) => {
54
- const p = v.get(g.nextRuleId);
55
- return p ? [p] : [];
53
+ return c.rules.find((b) => !v.has(b.id)) ?? c.rules[0];
54
+ }, t = (c, v) => {
55
+ const b = new Map(c.rules.map((g) => [g.id, g]));
56
+ return (c.edges[v] ?? []).flatMap((g) => {
57
+ const d = b.get(g.nextRuleId);
58
+ return d ? [d] : [];
56
59
  });
57
- }, n = m(() => new Map((ge.value?.rules ?? []).map((c) => [c.id, c]))), o = m(() => ge.value ? e(ge.value) : void 0), r = m(() => {
60
+ }, n = w(() => new Map((ve.value?.rules ?? []).map((c) => [c.id, c]))), o = w(() => ve.value ? e(ve.value) : void 0), r = w(() => {
58
61
  const c = lt.value;
59
62
  return c && n.value.get(c) || o.value;
60
- }), s = m(() => !ge.value || !r.value ? [] : t(ge.value, r.value.id)), i = io();
63
+ }), s = w(() => !ve.value || !r.value ? [] : t(ve.value, r.value.id)), i = po();
61
64
  return {
62
65
  currentRuleId: lt,
63
66
  currentRule: r,
64
67
  rootRule: o,
65
- workflow: ge,
66
- history: Le,
68
+ workflow: ve,
69
+ history: Me,
67
70
  edges: s,
68
71
  setCurrentRuleId: (c) => {
69
72
  lt.value = c;
70
73
  },
71
74
  clearHistory: () => {
72
- Le.value = [];
75
+ Me.value = [];
73
76
  },
74
77
  setWorkflow: (c) => {
75
- ge.value = c;
78
+ ve.value = c;
76
79
  },
77
80
  pushHistory: (c) => {
78
- Le.value.push(c);
81
+ Me.value.push(c);
79
82
  },
80
83
  setHistory: (c) => {
81
- Le.value = [...c];
84
+ Me.value = [...c];
82
85
  },
83
- popHistory: () => Le.value.pop(),
86
+ popHistory: () => Me.value.pop(),
84
87
  ...i
85
88
  };
86
- }, ke = (e) => e === "name", Pt = (e) => !!e?.trim(), ao = (e) => {
87
- const t = e.filter((o) => ke(o.name)), n = e.filter((o) => !ke(o.name));
89
+ }, _e = (e) => e === "name", Lt = (e) => !!e?.trim(), fo = (e) => {
90
+ const t = e.filter((o) => _e(o.name)), n = e.filter((o) => !_e(o.name));
88
91
  return [...t, ...n];
89
92
  };
90
- function lo(e, t) {
91
- const { maskPhone: n, maskCpf: o } = no(), { history: r } = qe(), s = D(0), i = D("forward"), a = D(null), l = m(() => {
92
- const k = Re(e), E = k.settings?.form && k.settings.form.fields || [];
93
- return ao(E);
94
- }), u = qn(Object.fromEntries(l.value.map((k) => [k.name, ""]))), h = m(() => l.value[s.value]), f = m(() => s.value >= l.value.length - 1), d = m(() => r.value.length > 0 || s.value > 0), c = m(() => i.value === "back" ? "step-back" : "step-forward");
95
- ye(s, async () => {
96
- await Ce();
97
- const k = a.value;
98
- if (!k) return;
99
- (k.querySelector(".is-active input") ?? k.querySelector("input"))?.focus({ preventScroll: !0 });
93
+ function ho(e, t) {
94
+ const { maskPhone: n, maskCpf: o } = ro(), { history: r } = qe(), s = I(0), i = I("forward"), a = I(null), l = w(() => {
95
+ const _ = Oe(e), N = _.settings?.form && _.settings.form.fields || [];
96
+ return fo(N);
97
+ }), u = Zn(Object.fromEntries(l.value.map((_) => [_.name, ""]))), m = w(() => l.value[s.value]), h = w(() => s.value >= l.value.length - 1), p = w(() => r.value.length > 0 || s.value > 0), c = w(() => i.value === "back" ? "step-back" : "step-forward");
98
+ we(s, async () => {
99
+ await Ae();
100
+ const _ = a.value;
101
+ if (!_) return;
102
+ (_.querySelector(".is-active input") ?? _.querySelector("input"))?.focus({ preventScroll: !0 });
100
103
  });
101
- const y = m(() => l.value.every((k) => !k.required || Pt(u[k.name]))), v = (k) => {
102
- const E = l.value[k];
103
- return E ? E.required && !Pt(u[E.name]) ? !1 : k >= l.value.length - 1 ? y.value : !0 : y.value;
104
- }, g = m(() => v(s.value)), p = m(() => {
105
- const k = l.value.find((E) => ke(E.name));
106
- return k ? u[k.name]?.trim().split(/\s+/)[0] ?? "" : "";
107
- }), w = (k) => {
108
- const E = l.value[k], j = p.value, Y = l.value.length ? `Passo ${k + 1} de ${l.value.length}` : "", U = Re(e), X = k >= l.value.length - 1;
109
- if (!E)
104
+ const v = w(() => l.value.every((_) => !_.required || Lt(u[_.name]))), b = (_) => {
105
+ const N = l.value[_];
106
+ return N ? N.required && !Lt(u[N.name]) ? !1 : _ >= l.value.length - 1 ? v.value : !0 : v.value;
107
+ }, g = w(() => b(s.value)), d = w(() => {
108
+ const _ = l.value.find((N) => _e(N.name));
109
+ return _ ? u[_.name]?.trim().split(/\s+/)[0] ?? "" : "";
110
+ }), f = (_) => {
111
+ const N = l.value[_], V = d.value, K = l.value.length ? `Passo ${_ + 1} de ${l.value.length}` : "", U = Oe(e), X = _ >= l.value.length - 1;
112
+ if (!N)
110
113
  return {
111
- eyebrow: Y,
114
+ eyebrow: K,
112
115
  title: U.settings?.body?.title ?? "",
113
116
  subtitle: U.settings?.body?.subtitle ?? ""
114
117
  };
115
- if (ke(E.name))
118
+ if (_e(N.name))
116
119
  return {
117
- eyebrow: Y,
120
+ eyebrow: K,
118
121
  title: "Como podemos te chamar?",
119
122
  subtitle: "Primeiro, nos diga o seu nome."
120
123
  };
121
- const K = X ? j ? `Quase lá, ${j}.` : "Quase lá." : j ? `Olá, ${j}.` : "Olá.", oe = E.required ? `Informe seu ${E.alias} para continuar.` : `Gostaria de deixar seu ${E.alias}?`;
122
- return { eyebrow: Y, title: K, subtitle: oe };
123
- }, C = m(() => w(s.value)), z = (k) => k === "email" ? "email" : k === "phone" ? "tel" : "text", P = (k) => k === "email" ? "email" : k === "phone" ? "call" : ke(k) ? "person" : k === "order" ? "receipt" : "badge", A = (k) => k.required ? `${k.alias} *` : k.alias, x = (k) => ke(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) => {
124
- if (k === "phone") return n;
125
- if (k === "cpf") return o;
126
- }, N = () => {
127
- y.value && t("submit", { ...u });
124
+ const Q = X ? V ? `Quase lá, ${V}.` : "Quase lá." : V ? `Olá, ${V}.` : "Olá.", oe = N.required ? `Informe seu ${N.alias} para continuar.` : `Gostaria de deixar seu ${N.alias}?`;
125
+ return { eyebrow: K, title: Q, subtitle: oe };
126
+ }, k = w(() => f(s.value)), L = (_) => _ === "email" ? "email" : _ === "phone" ? "tel" : "text", O = (_) => _ === "email" ? "email" : _ === "phone" ? "call" : _e(_) ? "person" : _ === "order" ? "receipt" : "badge", A = (_) => _.required ? `${_.alias} *` : _.alias, x = (_) => _e(_.name) ? "Seu nome" : _.name === "phone" ? "Seu telefone" : _.name === "email" ? "Seu e-mail" : _.name === "cpf" ? "000.000.000-00" : _.alias, P = (_) => {
127
+ if (_ === "phone") return n;
128
+ if (_ === "cpf") return o;
129
+ }, D = () => {
130
+ v.value && t("submit", { ...u });
128
131
  };
129
132
  return {
130
133
  stepTransition: c,
131
- currentField: h,
134
+ currentField: m,
132
135
  canContinue: g,
133
136
  currentStep: s,
134
- isLastStep: f,
135
- stepIntro: C,
137
+ isLastStep: h,
138
+ stepIntro: k,
136
139
  fieldHost: a,
137
- showBack: d,
140
+ showBack: p,
138
141
  fields: l,
139
142
  form: u,
140
143
  continueStep: () => {
141
144
  if (g.value) {
142
- if (f.value || l.value.length === 0) return N();
145
+ if (h.value || l.value.length === 0) return D();
143
146
  i.value = "forward", s.value += 1;
144
147
  }
145
148
  },
146
- canContinueAt: v,
147
- introFor: w,
149
+ canContinueAt: b,
150
+ introFor: f,
148
151
  fieldLabel: A,
149
152
  fieldPlaceholder: x,
150
- fieldType: z,
151
- fieldMask: T,
152
- fieldIcon: P,
153
+ fieldType: L,
154
+ fieldMask: P,
155
+ fieldIcon: O,
153
156
  goBack: () => {
154
157
  if (s.value > 0) {
155
158
  i.value = "back", s.value -= 1;
@@ -159,61 +162,61 @@ function lo(e, t) {
159
162
  }
160
163
  };
161
164
  }
162
- function ln(e) {
163
- const t = m(() => e.small ? "!yu-h-8 !yu-min-h-[2rem]" : "!yu-h-12 !yu-min-h-[3rem]"), n = m(() => "!yu-text-xs"), o = m(() => e.fluid ? "!yu-w-full" : "yu-w-fit");
165
+ function un(e) {
166
+ const t = w(() => e.small ? "!wu-h-8 !wu-min-h-[2rem]" : "!wu-h-12 !wu-min-h-[3rem]"), n = w(() => "!wu-text-xs"), o = w(() => e.fluid ? "!wu-w-full" : "wu-w-fit");
164
167
  return {
165
168
  height: t,
166
169
  textSize: n,
167
170
  width: o
168
171
  };
169
172
  }
170
- function uo(e, t) {
171
- const n = m(() => ({
172
- "!yu-font-plus": t.plus,
173
- "!yu-font-inter": t.inter,
174
- "!yu-font-titillium": t.titillium,
175
- "!yu-font-mono": t.mono
176
- })), o = m(() => ({
177
- "!yu-text-white": t.white,
178
- "!yu-text-primary": t.primary,
179
- "!yu-text-secondary": t.secondary,
180
- "!yu-text-base": t.neutral,
181
- "!yu-text-neutral dark:!yu-text-neutral-200": t.gray
182
- })), r = m(() => ({
183
- "!yu-font-thin": t.thin,
184
- "!yu-font-extralight": t.extralight,
185
- "!yu-font-light": t.light,
186
- "!yu-font-normal": t.normal,
187
- "!yu-font-medium": t.medium,
188
- "!yu-font-semibold": t.semibold,
189
- "!yu-font-bold": t.bold,
190
- "!yu-font-extrabold": t.extrabold,
191
- "!yu-font-black": t.black
192
- })), s = m(() => ({
173
+ function wo(e, t) {
174
+ const n = w(() => ({
175
+ "!wu-font-plus": t.plus,
176
+ "!wu-font-inter": t.inter,
177
+ "!wu-font-titillium": t.titillium,
178
+ "!wu-font-mono": t.mono
179
+ })), o = w(() => ({
180
+ "!wu-text-white": t.white,
181
+ "!wu-text-primary": t.primary,
182
+ "!wu-text-secondary": t.secondary,
183
+ "!wu-text-base": t.neutral,
184
+ "!wu-text-neutral dark:!wu-text-neutral-200": t.gray
185
+ })), r = w(() => ({
186
+ "!wu-font-thin": t.thin,
187
+ "!wu-font-extralight": t.extralight,
188
+ "!wu-font-light": t.light,
189
+ "!wu-font-normal": t.normal,
190
+ "!wu-font-medium": t.medium,
191
+ "!wu-font-semibold": t.semibold,
192
+ "!wu-font-bold": t.bold,
193
+ "!wu-font-extrabold": t.extrabold,
194
+ "!wu-font-black": t.black
195
+ })), s = w(() => ({
193
196
  ...{
194
197
  title: {
195
- "!yu-text-xl": t.small,
196
- "!yu-text-2xl": t.base,
197
- "!yu-text-3xl": t.large,
198
- "!yu-text-4xl": t.extraLarge
198
+ "!wu-text-xl": t.small,
199
+ "!wu-text-2xl": t.base,
200
+ "!wu-text-3xl": t.large,
201
+ "!wu-text-4xl": t.extraLarge
199
202
  },
200
203
  subtitle: {
201
- "!yu-text-sm": t.small,
202
- "!yu-text-md": t.base,
203
- "!yu-text-xl": t.large
204
+ "!wu-text-sm": t.small,
205
+ "!wu-text-md": t.base,
206
+ "!wu-text-xl": t.large
204
207
  },
205
208
  text: {
206
- "!yu-text-xxs": t.extraSmall,
207
- "!yu-text-xs": t.small,
208
- "!yu-text-sm": t.base,
209
- "!yu-text-lg": t.large,
210
- "!yu-text-2xl": t.extraLarge
209
+ "!wu-text-xxs": t.extraSmall,
210
+ "!wu-text-xs": t.small,
211
+ "!wu-text-sm": t.base,
212
+ "!wu-text-lg": t.large,
213
+ "!wu-text-2xl": t.extraLarge
211
214
  }
212
215
  }[e]
213
216
  }));
214
217
  return { fontClass: n, colorClass: o, weightClass: r, sizeClass: s };
215
218
  }
216
- const co = /* @__PURE__ */ Z({
219
+ const mo = /* @__PURE__ */ q({
217
220
  __name: "app-text",
218
221
  props: {
219
222
  extraSmall: { type: Boolean },
@@ -241,9 +244,9 @@ const co = /* @__PURE__ */ Z({
241
244
  white: { type: Boolean }
242
245
  },
243
246
  setup(e) {
244
- const t = e, { fontClass: n, colorClass: o, weightClass: r, sizeClass: s } = uo("text", t);
245
- return (i, a) => (b(), B("p", {
246
- class: F(["yu-font-primary yu-text-sm yu-font-normal yu-text-gray-900 dark:yu-text-neutral-100", [_(n), _(o), _(r), _(s)]])
247
+ const t = e, { fontClass: n, colorClass: o, weightClass: r, sizeClass: s } = wo("text", t);
248
+ return (i, a) => (y(), S("p", {
249
+ class: F(["wu-font-primary wu-text-sm wu-font-normal wu-text-gray-900 dark:wu-text-neutral-100", [C(n), C(o), C(r), C(s)]])
247
250
  }, [
248
251
  W(i.$slots, "default", {}, void 0, !0)
249
252
  ], 2));
@@ -253,7 +256,7 @@ const co = /* @__PURE__ */ Z({
253
256
  for (const [o, r] of t)
254
257
  n[o] = r;
255
258
  return n;
256
- }, V = /* @__PURE__ */ tt(co, [["__scopeId", "data-v-030e2417"]]), de = /* @__PURE__ */ Z({
259
+ }, j = /* @__PURE__ */ tt(mo, [["__scopeId", "data-v-5fc0fe9d"]]), le = /* @__PURE__ */ q({
257
260
  __name: "app-group",
258
261
  props: {
259
262
  fit: { type: Boolean },
@@ -286,7 +289,7 @@ const co = /* @__PURE__ */ Z({
286
289
  divisor: { type: Boolean }
287
290
  },
288
291
  setup(e) {
289
- const t = e, n = m(() => t.fit ? "yu-w-fit yu-h-fit" : t.full ? "yu-w-full yu-h-full" : ""), o = m(() => 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 = m(() => t.row ? "yu-flex-row" : t.col ? "yu-flex-col" : "yu-flex-row"), s = m(() => 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"), i = m(() => t.wrap ? "yu-flex-wrap" : ""), a = m(() => 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 = m(() => t.border ? "yu-border" : t.borderPrimary ? "yu-border yu-border-primary" : ""), u = m(() => t.rounded ? "yu-rounded-md" : t.roundedTop ? "yu-rounded-t-md" : t.roundedBottom ? "yu-rounded-b-md" : ""), h = m(() => t.bgPrimary ? "yu-bg-primary" : t.bgWhite ? "yu-bg-white" : ""), f = m(() => t.divisor && t.col ? "yu-divide-y" : t.divisor && t.row ? "yu-divide-x" : ""), d = m(() => [
292
+ const t = e, n = w(() => t.fit ? "wu-w-fit wu-h-fit" : t.full ? "wu-w-full wu-h-full" : ""), o = w(() => t.justifyEnd ? "wu-items-end wu-justify-end" : t.center ? "wu-items-center wu-justify-center" : t.centerBetween ? "wu-items-center wu-justify-between" : ""), r = w(() => t.row ? "wu-flex-row" : t.col ? "wu-flex-col" : "wu-flex-row"), s = w(() => t.gapBase ? "wu-gap-4" : t.gapXs ? "wu-gap-1" : t.gapSm ? "wu-gap-2" : t.gapMd ? "wu-gap-6" : t.gapLg ? "wu-gap-8" : t.gapNone ? "wu-gap-0" : "wu-gap-4"), i = w(() => t.wrap ? "wu-flex-wrap" : ""), a = w(() => t.paddingXs ? "wu-p-1" : t.paddingSm ? "wu-p-2" : t.paddingBase ? "wu-p-4" : t.paddingMd ? "wu-p-6" : t.paddingLg ? "wu-p-8" : ""), l = w(() => t.border ? "wu-border" : t.borderPrimary ? "wu-border wu-border-primary" : ""), u = w(() => t.rounded ? "wu-rounded-md" : t.roundedTop ? "wu-rounded-t-md" : t.roundedBottom ? "wu-rounded-b-md" : ""), m = w(() => t.bgPrimary ? "wu-bg-primary" : t.bgWhite ? "wu-bg-white" : ""), h = w(() => t.divisor && t.col ? "wu-divide-y" : t.divisor && t.row ? "wu-divide-x" : ""), p = w(() => [
290
293
  r.value,
291
294
  s.value,
292
295
  i.value,
@@ -294,20 +297,20 @@ const co = /* @__PURE__ */ Z({
294
297
  o.value,
295
298
  l.value,
296
299
  u.value,
297
- h.value,
300
+ m.value,
298
301
  n.value,
299
- f.value
302
+ h.value
300
303
  ]);
301
- return (c, y) => (b(), B("div", {
302
- class: F(["yu-flex", d.value])
304
+ return (c, v) => (y(), S("div", {
305
+ class: F(["wu-flex", p.value])
303
306
  }, [
304
307
  W(c.$slots, "default")
305
308
  ], 2));
306
309
  }
307
- }), po = {
308
- class: "yu-flex yu-flex-col yu-items-stretch yu-w-full yu-cursor-text yu-gap-1",
310
+ }), go = {
311
+ class: "wu-flex wu-flex-col wu-items-stretch wu-w-full wu-cursor-text wu-gap-1",
309
312
  "data-testid": "app-form-text-input"
310
- }, fo = ["value", "type", "placeholder", "disabled", "maxlength", "aria-invalid"], un = /* @__PURE__ */ Z({
313
+ }, vo = ["value", "type", "placeholder", "disabled", "maxlength", "aria-invalid"], dn = /* @__PURE__ */ q({
311
314
  __name: "app-form-text-input",
312
315
  props: {
313
316
  modelValue: { default: "" },
@@ -322,21 +325,21 @@ const co = /* @__PURE__ */ Z({
322
325
  },
323
326
  emits: ["update:modelValue", "keyup-enter"],
324
327
  setup(e, { expose: t, emit: n }) {
325
- const o = e, r = n, s = m(() => We());
328
+ const o = e, r = n, s = w(() => Be());
326
329
  function i(g) {
327
330
  return !!s.value[g];
328
331
  }
329
- const a = D(""), l = D(!1);
332
+ const a = I(""), l = I(!1);
330
333
  function u(g) {
331
334
  if (!o.maskFunction) return g;
332
335
  try {
333
- const p = o.maskFunction(g);
334
- return typeof p == "string" ? p : g;
336
+ const d = o.maskFunction(g);
337
+ return typeof d == "string" ? d : g;
335
338
  } catch {
336
339
  return g;
337
340
  }
338
341
  }
339
- ye(
342
+ we(
340
343
  () => o.modelValue,
341
344
  (g) => {
342
345
  if (g == null) {
@@ -347,59 +350,59 @@ const co = /* @__PURE__ */ Z({
347
350
  },
348
351
  { immediate: !0 }
349
352
  );
350
- const { width: h } = ln(o), f = m(() => o.invalid ? "yu-text-red-500" : o.valid ? "yu-text-green-500" : ""), d = m(() => o.invalid ? "yu-text-red-600 placeholder:yu-text-red-300 placeholder:yu-font-medium" : o.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"), c = m(() => o.invalid ? "yu-text-red-500" : o.valid ? "yu-text-green-500" : "yu-text-gray-500"), y = m(() => o.disabled ? "yu-opacity-50 yu-pointer-events-none" : "");
351
- function v(g) {
352
- const w = g.target.value;
353
- a.value = o.maskFunction ? u(w) : w, r("update:modelValue", a.value);
353
+ const { width: m } = un(o), h = w(() => o.invalid ? "wu-text-red-500" : o.valid ? "wu-text-green-500" : ""), p = w(() => o.invalid ? "wu-text-red-600 placeholder:wu-text-red-300 placeholder:wu-font-medium" : o.valid ? "wu-text-green-700 placeholder:wu-font-medium" : "wu-text-gray-900 placeholder:wu-text-gray-400 placeholder:wu-font-medium dark:wu-text-neutral-100 dark:placeholder:wu-text-neutral-500"), c = w(() => o.invalid ? "wu-text-red-500" : o.valid ? "wu-text-green-500" : "wu-text-gray-500"), v = w(() => o.disabled ? "wu-opacity-50 wu-pointer-events-none" : "");
354
+ function b(g) {
355
+ const f = g.target.value;
356
+ a.value = o.maskFunction ? u(f) : f, r("update:modelValue", a.value);
354
357
  }
355
358
  return t({
356
359
  focus: l,
357
360
  content: a
358
- }), (g, p) => (b(), R(de, {
359
- class: F([_(h), y.value]),
361
+ }), (g, d) => (y(), T(le, {
362
+ class: F([C(m), v.value]),
360
363
  col: "",
361
364
  "gap-none": ""
362
365
  }, {
363
366
  default: $(() => [
364
- S("label", po, [
365
- i("default") ? (b(), R(V, {
367
+ B("label", go, [
368
+ i("default") ? (y(), T(j, {
366
369
  key: 0,
367
370
  small: "",
368
371
  gray: "",
369
- class: F([f.value])
372
+ class: F([h.value])
370
373
  }, {
371
374
  default: $(() => [
372
375
  W(g.$slots, "default")
373
376
  ]),
374
377
  _: 3
375
- }, 8, ["class"])) : M("", !0),
376
- S("input", {
377
- class: F(["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", [d.value]]),
378
+ }, 8, ["class"])) : R("", !0),
379
+ B("input", {
380
+ class: F(["wu-w-full wu-bg-transparent wu-border-0 wu-outline-none wu-p-0 wu-m-0 wu-appearance-none wu-font-primary wu-text-2xl wu-leading-tight wu-caret-gray-900 dark:wu-caret-white", [p.value]]),
378
381
  value: a.value,
379
382
  type: e.type,
380
383
  placeholder: e.placeholder,
381
384
  disabled: e.disabled,
382
385
  maxlength: e.maxLength,
383
386
  "aria-invalid": e.invalid ? !0 : void 0,
384
- onInput: v,
385
- onFocus: p[0] || (p[0] = (w) => l.value = !0),
386
- onBlur: p[1] || (p[1] = (w) => l.value = !1),
387
- onKeyup: p[2] || (p[2] = et((w) => r("keyup-enter"), ["enter"]))
388
- }, null, 42, fo)
387
+ onInput: b,
388
+ onFocus: d[0] || (d[0] = (f) => l.value = !0),
389
+ onBlur: d[1] || (d[1] = (f) => l.value = !1),
390
+ onKeyup: d[2] || (d[2] = et((f) => r("keyup-enter"), ["enter"]))
391
+ }, null, 42, vo)
389
392
  ]),
390
- i("feedback") ? (b(), B("div", {
393
+ i("feedback") ? (y(), S("div", {
391
394
  key: 0,
392
- class: F(["yu-mt-1", [c.value]])
395
+ class: F(["wu-mt-1", [c.value]])
393
396
  }, [
394
397
  W(g.$slots, "feedback")
395
- ], 2)) : M("", !0)
398
+ ], 2)) : R("", !0)
396
399
  ]),
397
400
  _: 3
398
401
  }, 8, ["class"]));
399
402
  }
400
403
  });
401
404
  function yo(e) {
402
- const t = m(() => e.small ? "!yu-h-8 !yu-min-h-[2rem]" : ""), n = m(() => "!yu-text-xs"), o = m(() => e.small ? "yu-px-[0.625rem]" : "yu-p-[0.9rem]"), r = m(() => e.fluid ? "!yu-w-full" : "yu-w-fit");
405
+ const t = w(() => e.small ? "!wu-h-8 !wu-min-h-[2rem]" : ""), n = w(() => "!wu-text-xs"), o = w(() => e.small ? "wu-px-[0.625rem]" : "wu-p-[0.9rem]"), r = w(() => e.fluid ? "!wu-w-full" : "wu-w-fit");
403
406
  return {
404
407
  height: t,
405
408
  textSize: n,
@@ -407,7 +410,7 @@ function yo(e) {
407
410
  width: r
408
411
  };
409
412
  }
410
- const Q = /* @__PURE__ */ Z({
413
+ const Y = /* @__PURE__ */ q({
411
414
  __name: "app-icon",
412
415
  props: {
413
416
  small: Boolean,
@@ -420,15 +423,15 @@ const Q = /* @__PURE__ */ Z({
420
423
  outlined: Boolean
421
424
  },
422
425
  setup(e) {
423
- const t = e, n = m(() => 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"), o = m(() => 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 = m(() => t.outlined ? "material-symbols-outlined" : "material-icons");
424
- return (s, i) => (b(), B("div", {
425
- class: F(["notranslate yu-flex yu-items-center yu-justify-center yu-text-center", [n.value, o.value, r.value]]),
426
+ const t = e, n = w(() => t.small ? "!wu-text-xs wu-w-4 wu-h-4" : t.large ? "!wu-text-2xl wu-w-8 wu-h-8" : t.extraLarge ? "!wu-text-4xl wu-w-10 wu-h-10" : "!wu-text-base wu-w-6 wu-h-6"), o = w(() => t.dark ? "wu-text-neutral-800 dark:wu-text-white" : t.light ? "wu-text-white dark:wu-text-neutral-800" : t.gray ? "wu-text-gray-500 dark:wu-text-neutral-400" : ""), r = w(() => t.outlined ? "material-symbols-outlined" : "material-icons");
427
+ return (s, i) => (y(), S("div", {
428
+ class: F(["notranslate wu-flex wu-items-center wu-justify-center wu-text-center", [n.value, o.value, r.value]]),
426
429
  "data-testid": "app-icon"
427
430
  }, [
428
431
  W(s.$slots, "default")
429
432
  ], 2));
430
433
  }
431
- }), ho = ["disabled"], mo = { class: "yu-flex yu-items-center yu-justify-center yu-gap-2" }, be = /* @__PURE__ */ Z({
434
+ }), bo = ["disabled"], xo = { class: "wu-flex wu-items-center wu-justify-center wu-gap-2" }, me = /* @__PURE__ */ q({
432
435
  __name: "app-button",
433
436
  props: {
434
437
  small: Boolean,
@@ -448,30 +451,30 @@ const Q = /* @__PURE__ */ Z({
448
451
  },
449
452
  emits: ["click"],
450
453
  setup(e) {
451
- const t = e, n = m(() => We());
454
+ const t = e, n = w(() => Be());
452
455
  function o(c) {
453
456
  return !!n.value[c];
454
457
  }
455
- const { height: r, textSize: s, padding: i, width: a } = yo(t), l = m(() => 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 = m(() => t.block ? "yu-rounded-none" : t.round ? "yu-rounded-full" : "yu-rounded-lg"), h = m(() => t.icon && t.small ? "!yu-w-8 !yu-h-8 yu-p-0" : t.icon ? "!yu-w-11 !yu-h-11 yu-p-0" : i.value), f = m(() => t.icon ? "yu-justify-center" : "yu-justify-between"), d = m(() => t.disabled || t.loading ? "yu-opacity-50 yu-pointer-events-none" : "");
456
- return (c, y) => (b(), B("button", {
457
- class: F(["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", [_(s), l.value, u.value, _(a), _(r), d.value, h.value, f.value]]),
458
+ const { height: r, textSize: s, padding: i, width: a } = yo(t), l = w(() => t.soft ? "wu-bg-primary-50 !wu-text-primary-400" : t.alert ? "wu-bg-red-500 !wu-text-white" : t.warning ? "wu-bg-amber-500 !wu-text-white" : t.success ? "wu-bg-green-500 !wu-text-white" : t.outline ? "wu-bg-transparent !wu-border-gray-200 hover:!wu-bg-gray-100 hover:!wu-border-gray-300 dark:!wu-border-neutral-600 dark:hover:!wu-bg-neutral-700 dark:hover:!wu-border-neutral-500 dark:!wu-text-neutral-100" : t.ghost ? "wu-bg-transparent !wu-text-gray-700 hover:!wu-bg-gray-100 dark:!wu-text-neutral-200 dark:hover:!wu-bg-neutral-700" : t.link ? "wu-bg-transparent !wu-text-blue-600 hover:wu-underline" : "wu-bg-primary-500 !wu-text-[var(--wu-primary-fg)]"), u = w(() => t.block ? "wu-rounded-none" : t.round ? "wu-rounded-full" : "wu-rounded-lg"), m = w(() => t.icon && t.small ? "!wu-w-8 !wu-h-8 wu-p-0" : t.icon ? "!wu-w-11 !wu-h-11 wu-p-0" : i.value), h = w(() => t.icon ? "wu-justify-center" : "wu-justify-between"), p = w(() => t.disabled || t.loading ? "wu-opacity-50 wu-pointer-events-none" : "");
459
+ return (c, v) => (y(), S("button", {
460
+ class: F(["wu-inline-flex wu-items-center wu-gap-2 wu-cursor-pointer wu-transition-all wu-border wu-border-transparent disabled:wu-opacity-50 disabled:wu-pointer-events-none hover:wu-opacity-80 focus:wu-outline-hidden focus:wu-opacity-80", [C(s), l.value, u.value, C(a), C(r), p.value, m.value, h.value]]),
458
461
  type: "button",
459
462
  disabled: e.disabled || e.loading,
460
463
  "data-testid": "app-button",
461
- onClick: y[0] || (y[0] = (v) => c.$emit("click", v))
464
+ onClick: v[0] || (v[0] = (b) => c.$emit("click", b))
462
465
  }, [
463
- S("div", mo, [
464
- e.loading ? (b(), R(Q, {
466
+ B("div", xo, [
467
+ e.loading ? (y(), T(Y, {
465
468
  key: 0,
466
- class: "yu-animate-spin yu-flex yu-items-center yu-justify-center",
469
+ class: "wu-animate-spin wu-flex wu-items-center wu-justify-center",
467
470
  small: "",
468
471
  outlined: ""
469
472
  }, {
470
- default: $(() => [...y[1] || (y[1] = [
471
- O("progress_activity", -1)
473
+ default: $(() => [...v[1] || (v[1] = [
474
+ M("progress_activity", -1)
472
475
  ])]),
473
476
  _: 1
474
- })) : o("icon") ? (b(), R(Q, {
477
+ })) : o("icon") ? (y(), T(Y, {
475
478
  key: 1,
476
479
  small: ""
477
480
  }, {
@@ -479,19 +482,19 @@ const Q = /* @__PURE__ */ Z({
479
482
  W(c.$slots, "icon")
480
483
  ]),
481
484
  _: 3
482
- })) : M("", !0),
483
- !e.loading && o("default") ? (b(), R(V, {
485
+ })) : R("", !0),
486
+ !e.loading && o("default") ? (y(), T(j, {
484
487
  key: 2,
485
- class: "!yu-text-inherit",
488
+ class: "!wu-text-inherit",
486
489
  small: ""
487
490
  }, {
488
491
  default: $(() => [
489
492
  W(c.$slots, "default")
490
493
  ]),
491
494
  _: 3
492
- })) : M("", !0)
495
+ })) : R("", !0)
493
496
  ]),
494
- !e.loading && o("trailing") ? (b(), R(Q, {
497
+ !e.loading && o("trailing") ? (y(), T(Y, {
495
498
  key: 0,
496
499
  small: ""
497
500
  }, {
@@ -499,10 +502,10 @@ const Q = /* @__PURE__ */ Z({
499
502
  W(c.$slots, "trailing")
500
503
  ]),
501
504
  _: 3
502
- })) : M("", !0)
503
- ], 10, ho));
505
+ })) : R("", !0)
506
+ ], 10, bo));
504
507
  }
505
- }), go = ["aria-hidden"], vo = /* @__PURE__ */ Z({
508
+ }), $o = ["aria-hidden"], ko = /* @__PURE__ */ q({
506
509
  __name: "app-carousel",
507
510
  props: {
508
511
  modelValue: { default: 0 },
@@ -511,81 +514,81 @@ const Q = /* @__PURE__ */ Z({
511
514
  },
512
515
  emits: ["update:modelValue"],
513
516
  setup(e, { expose: t, emit: n }) {
514
- const o = e, r = n, s = We(), i = D(null), a = D(null), l = D(0), u = D(0), h = D(!1);
515
- let f = null;
516
- const d = m(() => Math.max(o.modelValue, 0)), c = () => (s.default?.() ?? []).flatMap((x) => x.type === Bt || x.type === Tt ? [] : x.type === he ? (x.children ?? []).filter(
517
- (T) => !!T && typeof T == "object" && T.type !== Bt && T.type !== Tt
518
- ) : [x]), y = (x) => {
519
- const T = Math.abs(x - d.value);
520
- return T === 0 ? "is-active" : T === 1 ? "is-adjacent" : "is-far";
521
- }, v = (x) => {
522
- const T = a.value?.childElementCount || c().length, N = Math.min(Math.max(x, 0), Math.max(T - 1, 0));
523
- N !== o.modelValue && r("update:modelValue", N);
517
+ const o = e, r = n, s = Be(), i = I(null), a = I(null), l = I(0), u = I(0), m = I(!1);
518
+ let h = null;
519
+ const p = w(() => Math.max(o.modelValue, 0)), c = () => (s.default?.() ?? []).flatMap((x) => x.type === Tt || x.type === Pt ? [] : x.type === ue ? (x.children ?? []).filter(
520
+ (P) => !!P && typeof P == "object" && P.type !== Tt && P.type !== Pt
521
+ ) : [x]), v = (x) => {
522
+ const P = Math.abs(x - p.value);
523
+ return P === 0 ? "is-active" : P === 1 ? "is-adjacent" : "is-far";
524
+ }, b = (x) => {
525
+ const P = a.value?.childElementCount || c().length, D = Math.min(Math.max(x, 0), Math.max(P - 1, 0));
526
+ D !== o.modelValue && r("update:modelValue", D);
524
527
  }, g = () => {
525
528
  const x = i.value;
526
529
  x && (x.scrollLeft && (x.scrollLeft = 0), x.scrollTop && (x.scrollTop = 0));
527
- }, p = () => {
528
- const x = i.value, T = a.value;
529
- if (!x || !T) return;
530
+ }, d = () => {
531
+ const x = i.value, P = a.value;
532
+ if (!x || !P) return;
530
533
  g();
531
- const N = [...T.children], H = parseFloat(getComputedStyle(T).gap) || 0, q = parseFloat(getComputedStyle(x).scrollPaddingTop) || 0, k = (U) => o.vertical ? U.offsetHeight : U.offsetWidth, E = N[d.value] ? k(N[d.value]) : 0, j = o.vertical && o.fill ? Math.max((x.clientHeight - E) / 2, 0) : q, Y = N.slice(0, d.value).reduce((U, X) => U + k(X) + H, 0);
532
- l.value = j - Y, u.value = o.vertical && !o.fill ? E + q * 2 : 0, h.value = !0;
533
- }, w = () => {
534
- f?.disconnect();
535
- const x = i.value, T = a.value;
536
- if (!(!x || !T) && (p(), !(typeof ResizeObserver > "u"))) {
537
- if (f = new ResizeObserver(p), f.observe(x), o.vertical)
538
- for (const N of T.children) f.observe(N);
534
+ const D = [...P.children], z = parseFloat(getComputedStyle(P).gap) || 0, G = parseFloat(getComputedStyle(x).scrollPaddingTop) || 0, _ = (U) => o.vertical ? U.offsetHeight : U.offsetWidth, N = D[p.value] ? _(D[p.value]) : 0, V = o.vertical && o.fill ? Math.max((x.clientHeight - N) / 2, 0) : G, K = D.slice(0, p.value).reduce((U, X) => U + _(X) + z, 0);
535
+ l.value = V - K, u.value = o.vertical && !o.fill ? N + G * 2 : 0, m.value = !0;
536
+ }, f = () => {
537
+ h?.disconnect();
538
+ const x = i.value, P = a.value;
539
+ if (!(!x || !P) && (d(), !(typeof ResizeObserver > "u"))) {
540
+ if (h = new ResizeObserver(d), h.observe(x), o.vertical)
541
+ for (const D of P.children) h.observe(D);
539
542
  x.removeEventListener("scroll", g), x.addEventListener("scroll", g, { passive: !0 });
540
543
  }
541
- }, C = m(() => [
542
- o.vertical ? "yu-carousel--vertical" : "yu-carousel--horizontal",
543
- { "is-ready": h.value, "yu-carousel--fill": o.fill }
544
- ]), z = m(() => o.vertical ? "yu-flex-col yu-items-stretch" : "yu-flex-row yu-items-center"), P = m(() => {
544
+ }, k = w(() => [
545
+ o.vertical ? "wu-carousel--vertical" : "wu-carousel--horizontal",
546
+ { "is-ready": m.value, "wu-carousel--fill": o.fill }
547
+ ]), L = w(() => o.vertical ? "wu-flex-col wu-items-stretch" : "wu-flex-row wu-items-center"), O = w(() => {
545
548
  if (!(!o.vertical || o.fill || !u.value))
546
549
  return { height: `${u.value}px` };
547
- }), A = m(() => {
550
+ }), A = w(() => {
548
551
  const x = `${l.value}px`;
549
552
  return { transform: o.vertical ? `translate3d(0, ${x}, 0)` : `translate3d(${x}, 0, 0)` };
550
553
  });
551
- return ye(
554
+ return we(
552
555
  () => [o.vertical, o.fill, o.modelValue],
553
556
  async () => {
554
- await Ce(), w();
557
+ await Ae(), f();
555
558
  }
556
- ), $t(async () => {
557
- await Ce(), w();
558
- }), on(() => {
559
- f?.disconnect(), i.value?.removeEventListener("scroll", g);
559
+ ), kt(async () => {
560
+ await Ae(), f();
561
+ }), rn(() => {
562
+ h?.disconnect(), i.value?.removeEventListener("scroll", g);
560
563
  }), t({
561
- next: () => v(d.value + 1),
562
- prev: () => v(d.value - 1),
563
- goTo: v
564
- }), (x, T) => (b(), B("div", {
565
- class: F(["yu-relative yu-w-full yu-overflow-hidden", C.value]),
564
+ next: () => b(p.value + 1),
565
+ prev: () => b(p.value - 1),
566
+ goTo: b
567
+ }), (x, P) => (y(), S("div", {
568
+ class: F(["wu-relative wu-w-full wu-overflow-hidden", k.value]),
566
569
  ref_key: "rootRef",
567
570
  ref: i,
568
571
  "data-testid": "app-carousel",
569
- style: ce(P.value)
572
+ style: pe(O.value)
570
573
  }, [
571
- S("div", {
572
- class: F(["yu-carousel-track yu-flex", z.value]),
574
+ B("div", {
575
+ class: F(["wu-carousel-track wu-flex", L.value]),
573
576
  ref_key: "trackRef",
574
577
  ref: a,
575
- style: ce(A.value)
578
+ style: pe(A.value)
576
579
  }, [
577
- (b(!0), B(he, null, Ae(c(), (N, H) => (b(), B("div", {
578
- class: F(["yu-carousel-slide", y(H)]),
579
- key: N.key ?? H,
580
- "aria-hidden": H !== d.value,
580
+ (y(!0), S(ue, null, xe(c(), (D, z) => (y(), S("div", {
581
+ class: F(["wu-carousel-slide", v(z)]),
582
+ key: D.key ?? z,
583
+ "aria-hidden": z !== p.value,
581
584
  "data-testid": "app-carousel-slide"
582
585
  }, [
583
- (b(), R(rn(N)))
584
- ], 10, go))), 128))
586
+ (y(), T(sn(D)))
587
+ ], 10, $o))), 128))
585
588
  ], 6)
586
589
  ], 6));
587
590
  }
588
- }), cn = /* @__PURE__ */ tt(vo, [["__scopeId", "data-v-c6006063"]]), wo = { class: "yu-flex yu-flex-col yu-w-full yu-h-full" }, bo = { class: "yu-relative yu-flex yu-items-center yu-w-full yu-shrink-0" }, xo = { class: "yu-flex yu-shrink-0 yu-items-center yu-w-fit yu-justify-center yu-px-6 yu-py-4" }, $o = { class: "yu-absolute yu-inset-0 yu-flex yu-items-center yu-justify-center yu-pointer-events-none" }, ko = { class: "yu-flex yu-items-center yu-gap-1.5" }, dn = /* @__PURE__ */ Z({
591
+ }), cn = /* @__PURE__ */ tt(ko, [["__scopeId", "data-v-744169d9"]]), _o = { class: "wu-flex wu-flex-col wu-w-full wu-h-full" }, Co = { class: "wu-relative wu-flex wu-items-center wu-w-full wu-shrink-0" }, Ao = { class: "wu-flex wu-shrink-0 wu-items-center wu-w-fit wu-justify-center wu-px-6 wu-py-4" }, So = { class: "wu-absolute wu-inset-0 wu-flex wu-items-center wu-justify-center wu-pointer-events-none" }, Bo = { class: "wu-flex wu-items-center wu-gap-1.5" }, pn = /* @__PURE__ */ q({
589
592
  __name: "app-identification-page",
590
593
  props: {
591
594
  rule: {},
@@ -600,145 +603,145 @@ const Q = /* @__PURE__ */ Z({
600
603
  fields: a,
601
604
  form: l,
602
605
  continueStep: u,
603
- canContinueAt: h,
604
- introFor: f,
605
- fieldPlaceholder: d,
606
+ canContinueAt: m,
607
+ introFor: h,
608
+ fieldPlaceholder: p,
606
609
  fieldType: c,
607
- fieldMask: y,
608
- goBack: v
609
- } = lo(() => n.rule, o);
610
- return (g, p) => (b(), B("div", wo, [
611
- S("div", bo, [
612
- S("div", xo, [
613
- S("div", {
614
- class: F(["yu-flex yu-items-center yu-w-fit yu-justify-center yu-cursor-pointer yu-group", { "yu-invisible yu-pointer-events-none": !_(i) }]),
615
- onClick: p[0] || (p[0] = //@ts-ignore
616
- (...w) => _(v) && _(v)(...w))
610
+ fieldMask: v,
611
+ goBack: b
612
+ } = ho(() => n.rule, o);
613
+ return (g, d) => (y(), S("div", _o, [
614
+ B("div", Co, [
615
+ B("div", Ao, [
616
+ B("div", {
617
+ class: F(["wu-flex wu-items-center wu-w-fit wu-justify-center wu-cursor-pointer wu-group", { "wu-invisible wu-pointer-events-none": !C(i) }]),
618
+ onClick: d[0] || (d[0] = //@ts-ignore
619
+ (...f) => C(b) && C(b)(...f))
617
620
  }, [
618
- I(Q, {
619
- class: "yu-transition-colors group-hover:!yu-text-gray-700 dark:group-hover:!yu-text-neutral-200",
621
+ E(Y, {
622
+ class: "wu-transition-colors group-hover:!wu-text-gray-700 dark:group-hover:!wu-text-neutral-200",
620
623
  small: "",
621
624
  gray: ""
622
625
  }, {
623
- default: $(() => [...p[2] || (p[2] = [
624
- O("chevron_left", -1)
626
+ default: $(() => [...d[2] || (d[2] = [
627
+ M("chevron_left", -1)
625
628
  ])]),
626
629
  _: 1
627
630
  }),
628
- I(V, {
629
- class: "yu-transition-colors group-hover:!yu-text-gray-700 dark:group-hover:!yu-text-neutral-200",
631
+ E(j, {
632
+ class: "wu-transition-colors group-hover:!wu-text-gray-700 dark:group-hover:!wu-text-neutral-200",
630
633
  "extra-small": "",
631
634
  medium: "",
632
635
  gray: ""
633
636
  }, {
634
- default: $(() => [...p[3] || (p[3] = [
635
- O("Voltar", -1)
637
+ default: $(() => [...d[3] || (d[3] = [
638
+ M("Voltar", -1)
636
639
  ])]),
637
640
  _: 1
638
641
  })
639
642
  ], 2)
640
643
  ]),
641
- S("div", $o, [
642
- S("div", ko, [
643
- (b(!0), B(he, null, Ae(_(a), (w, C) => (b(), B("div", {
644
- class: F(["yu-h-1 yu-w-6 yu-rounded-full yu-transition-colors", C <= _(r) ? "yu-bg-gray-900 dark:yu-bg-white" : "yu-bg-gray-200 dark:yu-bg-neutral-600"]),
645
- key: C
644
+ B("div", So, [
645
+ B("div", Bo, [
646
+ (y(!0), S(ue, null, xe(C(a), (f, k) => (y(), S("div", {
647
+ class: F(["wu-h-1 wu-w-6 wu-rounded-full wu-transition-colors", k <= C(r) ? "wu-bg-gray-900 dark:wu-bg-white" : "wu-bg-gray-200 dark:wu-bg-neutral-600"]),
648
+ key: k
646
649
  }, null, 2))), 128))
647
650
  ])
648
651
  ])
649
652
  ]),
650
- S("div", {
651
- class: "yu-flex-1 yu-min-h-0 yu-w-full yu-px-6 yu-pb-12",
653
+ B("div", {
654
+ class: "wu-flex-1 wu-min-h-0 wu-w-full wu-px-6 wu-pb-12",
652
655
  ref_key: "fieldHost",
653
656
  ref: s
654
657
  }, [
655
- I(cn, {
656
- class: "yu-w-full yu-h-full",
657
- modelValue: _(r),
658
- "onUpdate:modelValue": p[1] || (p[1] = (w) => sn(r) ? r.value = w : null),
658
+ E(cn, {
659
+ class: "wu-w-full wu-h-full",
660
+ modelValue: C(r),
661
+ "onUpdate:modelValue": d[1] || (d[1] = (f) => an(r) ? r.value = f : null),
659
662
  vertical: "",
660
663
  fill: ""
661
664
  }, {
662
665
  default: $(() => [
663
- (b(!0), B(he, null, Ae(_(a), (w, C) => (b(), R(de, {
664
- class: "yu-w-full yu-gap-8",
665
- key: w.name,
666
+ (y(!0), S(ue, null, xe(C(a), (f, k) => (y(), T(le, {
667
+ class: "wu-w-full wu-gap-8",
668
+ key: f.name,
666
669
  col: "",
667
670
  center: ""
668
671
  }, {
669
672
  default: $(() => [
670
- I(de, {
671
- class: "yu-w-full yu-relative yu-pr-6",
673
+ E(le, {
674
+ class: "wu-w-full wu-relative wu-pr-6",
672
675
  col: "",
673
676
  "gap-sm": ""
674
677
  }, {
675
678
  default: $(() => [
676
- _(f)(C).title ? (b(), R(V, {
679
+ C(h)(k).title ? (y(), T(j, {
677
680
  key: 0,
678
- class: "yu-text-left",
681
+ class: "wu-text-left",
679
682
  "extra-large": "",
680
683
  semibold: ""
681
684
  }, {
682
685
  default: $(() => [
683
- O(G(_(f)(C).title), 1)
686
+ M(Z(C(h)(k).title), 1)
684
687
  ]),
685
688
  _: 2
686
- }, 1024)) : M("", !0),
687
- _(f)(C).subtitle ? (b(), R(V, {
689
+ }, 1024)) : R("", !0),
690
+ C(h)(k).subtitle ? (y(), T(j, {
688
691
  key: 1,
689
- class: "yu-text-left",
692
+ class: "wu-text-left",
690
693
  small: "",
691
694
  gray: ""
692
695
  }, {
693
696
  default: $(() => [
694
- O(G(_(f)(C).subtitle), 1)
697
+ M(Z(C(h)(k).subtitle), 1)
695
698
  ]),
696
699
  _: 2
697
- }, 1024)) : M("", !0),
698
- I(V, {
699
- class: "yu-opacity-50 yu-absolute -yu-top-2 yu-right-0",
700
+ }, 1024)) : R("", !0),
701
+ E(j, {
702
+ class: "wu-opacity-50 wu-absolute -wu-top-2 wu-right-0",
700
703
  gray: "",
701
704
  small: "",
702
705
  medium: ""
703
706
  }, {
704
707
  default: $(() => [
705
- O(G(C + 1), 1)
708
+ M(Z(k + 1), 1)
706
709
  ]),
707
710
  _: 2
708
711
  }, 1024)
709
712
  ]),
710
713
  _: 2
711
714
  }, 1024),
712
- I(de, {
713
- class: "yu-w-full yu-items-center",
715
+ E(le, {
716
+ class: "wu-w-full wu-items-center",
714
717
  col: "",
715
718
  "gap-md": ""
716
719
  }, {
717
720
  default: $(() => [
718
- I(un, {
719
- modelValue: _(l)[w.name],
720
- "onUpdate:modelValue": (z) => _(l)[w.name] = z,
721
- "mask-function": _(y)(w.name),
722
- placeholder: _(d)(w),
723
- type: _(c)(w.name),
724
- onKeyupEnter: _(u),
721
+ E(dn, {
722
+ modelValue: C(l)[f.name],
723
+ "onUpdate:modelValue": (L) => C(l)[f.name] = L,
724
+ "mask-function": C(v)(f.name),
725
+ placeholder: C(p)(f),
726
+ type: C(c)(f.name),
727
+ onKeyupEnter: C(u),
725
728
  fluid: ""
726
729
  }, {
727
730
  default: $(() => [
728
- O(G(w.alias), 1)
731
+ M(Z(f.alias), 1)
729
732
  ]),
730
733
  _: 2
731
734
  }, 1032, ["modelValue", "onUpdate:modelValue", "mask-function", "placeholder", "type", "onKeyupEnter"]),
732
- I(be, {
735
+ E(me, {
733
736
  fluid: "",
734
- disabled: !_(h)(C),
735
- onClick: _(u)
737
+ disabled: !C(m)(k),
738
+ onClick: C(u)
736
739
  }, {
737
- trailing: $(() => [...p[4] || (p[4] = [
738
- O("arrow_forward", -1)
740
+ trailing: $(() => [...d[4] || (d[4] = [
741
+ M("arrow_forward", -1)
739
742
  ])]),
740
743
  default: $(() => [
741
- O(G(C >= _(a).length - 1 ? "Finalizar" : "Continuar"), 1)
744
+ M(Z(k >= C(a).length - 1 ? "Finalizar" : "Continuar"), 1)
742
745
  ]),
743
746
  _: 2
744
747
  }, 1032, ["disabled", "onClick"])
@@ -754,7 +757,7 @@ const Q = /* @__PURE__ */ Z({
754
757
  ], 512)
755
758
  ]));
756
759
  }
757
- }), _o = ["disabled"], Co = ["src"], pn = /* @__PURE__ */ Z({
760
+ }), To = ["disabled"], Po = ["src"], fn = /* @__PURE__ */ q({
758
761
  __name: "app-widget-anchor",
759
762
  props: {
760
763
  small: Boolean,
@@ -774,54 +777,54 @@ const Q = /* @__PURE__ */ Z({
774
777
  },
775
778
  emits: ["click"],
776
779
  setup(e) {
777
- const t = e, n = m(() => !!t.label.trim()), o = m(() => 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 = m(() => n.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 = m(() => t.small ? "yu-w-6 yu-h-6" : t.large ? "yu-w-8 yu-h-8" : "yu-w-7 yu-h-7"), i = m(() => t.disabled || t.loading ? "yu-opacity-50 yu-pointer-events-none" : "");
778
- return (a, l) => (b(), B("button", {
779
- class: F(["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, o.value, i.value]]),
780
+ const t = e, n = w(() => !!t.label.trim()), o = w(() => t.outline ? "wu-bg-transparent !wu-border-gray-200 hover:!wu-bg-gray-100 hover:!wu-border-gray-300" : t.ghost ? "wu-bg-transparent !wu-text-gray-700 hover:!wu-bg-gray-100" : "wu-bg-gradient-to-br wu-from-primary-500 wu-to-secondary-500 wu-text-white"), r = w(() => n.value ? t.small ? "wu-h-12 wu-w-fit wu-px-3 wu-gap-2" : t.large ? "wu-h-16 wu-w-fit wu-px-5 wu-gap-3" : "wu-h-14 wu-w-fit wu-px-4 wu-gap-2" : t.small ? "wu-w-12 wu-h-12 wu-p-0" : t.large ? "wu-w-16 wu-h-16 wu-p-0" : "wu-w-14 wu-h-14 wu-p-0"), s = w(() => t.small ? "wu-w-6 wu-h-6" : t.large ? "wu-w-8 wu-h-8" : "wu-w-7 wu-h-7"), i = w(() => t.disabled || t.loading ? "wu-opacity-50 wu-pointer-events-none" : "");
781
+ return (a, l) => (y(), S("button", {
782
+ class: F(["wu-rounded-full wu-inline-flex wu-items-center wu-justify-center wu-cursor-pointer wu-overflow-hidden wu-transition-all wu-border wu-border-transparent hover:wu-opacity-80 focus:wu-outline-hidden focus:wu-opacity-80 disabled:wu-opacity-50 disabled:wu-pointer-events-none", [r.value, o.value, i.value]]),
780
783
  type: "button",
781
784
  "data-testid": "app-anchor",
782
785
  disabled: e.disabled || e.loading,
783
786
  onClick: l[0] || (l[0] = (u) => a.$emit("click", u))
784
787
  }, [
785
- e.loading ? (b(), R(Q, {
788
+ e.loading ? (y(), T(Y, {
786
789
  key: 0,
787
- class: "yu-animate-spin",
790
+ class: "wu-animate-spin",
788
791
  outlined: "",
789
792
  large: !e.small && !e.large,
790
793
  "extra-large": e.large
791
794
  }, {
792
795
  default: $(() => [...l[1] || (l[1] = [
793
- O("progress_activity", -1)
796
+ M("progress_activity", -1)
794
797
  ])]),
795
798
  _: 1
796
- }, 8, ["large", "extra-large"])) : e.logo ? (b(), B("img", {
799
+ }, 8, ["large", "extra-large"])) : e.logo ? (y(), S("img", {
797
800
  key: 1,
798
- class: F(["yu-object-contain yu-pointer-events-none yu-select-none yu-shrink-0", s.value]),
801
+ class: F(["wu-object-contain wu-pointer-events-none wu-select-none wu-shrink-0", s.value]),
799
802
  src: e.logo,
800
803
  alt: "",
801
804
  "data-testid": "app-anchor-logo"
802
- }, null, 10, Co)) : M("", !0),
803
- n.value ? (b(), R(V, {
805
+ }, null, 10, Po)) : R("", !0),
806
+ n.value ? (y(), T(j, {
804
807
  key: 2,
805
- class: "!yu-text-inherit yu-whitespace-nowrap",
808
+ class: "!wu-text-inherit wu-whitespace-nowrap",
806
809
  small: !e.large,
807
810
  "data-testid": "app-anchor-label"
808
811
  }, {
809
812
  default: $(() => [
810
- O(G(e.label), 1)
813
+ M(Z(e.label), 1)
811
814
  ]),
812
815
  _: 1
813
- }, 8, ["small"])) : M("", !0)
814
- ], 10, _o));
816
+ }, 8, ["small"])) : R("", !0)
817
+ ], 10, To));
815
818
  }
816
- }), Ao = {
819
+ }), Lo = {
817
820
  key: 0,
818
- class: "yu-flex yu-shrink-0 yu-items-end",
821
+ class: "wu-flex wu-shrink-0 wu-items-end",
819
822
  "data-testid": "app-message-avatar"
820
- }, So = {
823
+ }, Mo = {
821
824
  key: 0,
822
- class: "yu-w-full yu-flex yu-justify-end yu-h-2",
825
+ class: "wu-w-full wu-flex wu-justify-end wu-h-2",
823
826
  "data-testid": "app-message-trailing"
824
- }, fn = /* @__PURE__ */ Z({
827
+ }, mt = /* @__PURE__ */ q({
825
828
  __name: "app-message",
826
829
  props: {
827
830
  primary: Boolean,
@@ -829,178 +832,290 @@ const Q = /* @__PURE__ */ Z({
829
832
  tertiary: Boolean
830
833
  },
831
834
  setup(e) {
832
- const t = e, n = m(() => We());
835
+ const t = e, n = w(() => Be());
833
836
  function o(u) {
834
837
  return !!n.value[u];
835
838
  }
836
- const r = m(() => t.tertiary), s = m(() => !r.value && t.secondary), i = m(() => !r.value && o("avatar")), a = m(() => r.value ? "yu-justify-center" : s.value ? "yu-flex-row-reverse" : ""), l = m(() => r.value ? "" : s.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");
837
- return (u, h) => (b(), B("div", {
838
- class: F(["yu-flex yu-items-end yu-gap-2 yu-w-full", a.value]),
839
+ const r = w(() => t.tertiary), s = w(() => !r.value && t.secondary), i = w(() => !r.value && o("avatar")), a = w(() => r.value ? "wu-justify-center" : s.value ? "wu-flex-row-reverse" : ""), l = w(() => r.value ? "wu-items-center wu-flex" : s.value ? "wu-rounded-br-none wu-bg-primary-100 wu-p-3 dark:wu-bg-primary-900" : "wu-rounded-bl-none wu-bg-gray-200 wu-p-3 dark:wu-bg-neutral-700");
840
+ return (u, m) => (y(), S("div", {
841
+ class: F(["wu-flex wu-items-end wu-gap-2 wu-w-full", a.value]),
839
842
  "data-testid": "app-message"
840
843
  }, [
841
- i.value ? (b(), B("div", Ao, [
844
+ i.value ? (y(), S("div", Lo, [
842
845
  W(u.$slots, "avatar")
843
- ])) : M("", !0),
844
- S("div", {
845
- class: F(["yu-rounded-md yu-relative", l.value]),
846
+ ])) : R("", !0),
847
+ B("div", {
848
+ class: F(["wu-rounded-md wu-relative wu-min-h-8", l.value]),
846
849
  "data-testid": "app-message-bubble"
847
850
  }, [
848
851
  W(u.$slots, "default"),
849
- o("trailing") ? (b(), B("div", So, [
852
+ o("trailing") ? (y(), S("div", Mo, [
850
853
  W(u.$slots, "trailing")
851
- ])) : M("", !0)
854
+ ])) : R("", !0)
852
855
  ], 2)
853
856
  ], 2));
854
857
  }
855
- }), Bo = { class: "yu-flex yu-flex-col yu-items-center yu-h-full yu-w-full yu-overflow-hidden" }, To = {
858
+ }), hn = /* @__PURE__ */ q({
859
+ __name: "app-skeleton",
860
+ props: {
861
+ round: Boolean,
862
+ fluid: Boolean,
863
+ block: Boolean
864
+ },
865
+ setup(e) {
866
+ const t = e, n = w(() => t.fluid ? "!wu-w-full" : ""), o = w(() => t.round ? "!wu-rounded-full" : t.block ? "!wu-rounded-none" : "!wu-rounded-lg");
867
+ return (r, s) => (y(), S("div", {
868
+ class: F(["wu-animate-pulse wu-bg-gray-200 dark:wu-bg-neutral-700", [o.value, n.value]])
869
+ }, null, 2));
870
+ }
871
+ }), wn = /* @__PURE__ */ q({
872
+ __name: "app-empty",
873
+ props: {
874
+ error: {
875
+ type: Boolean,
876
+ default: !1
877
+ }
878
+ },
879
+ emits: ["refetch"],
880
+ setup(e, { emit: t }) {
881
+ const n = t, o = w(() => Be());
882
+ function r(s) {
883
+ return !!o.value[s];
884
+ }
885
+ return (s, i) => (y(), T(le, {
886
+ "gap-sm": "",
887
+ center: "",
888
+ col: ""
889
+ }, {
890
+ default: $(() => [
891
+ e.error ? (y(), T(Y, {
892
+ key: 0,
893
+ class: "wu-text-gray-500",
894
+ large: ""
895
+ }, {
896
+ default: $(() => [...i[1] || (i[1] = [
897
+ M("error_outline", -1)
898
+ ])]),
899
+ _: 1
900
+ })) : r("icon") ? W(s.$slots, "icon", { key: 1 }) : (y(), T(Y, {
901
+ key: 2,
902
+ class: "wu-text-gray-500",
903
+ large: ""
904
+ }, {
905
+ default: $(() => [...i[2] || (i[2] = [
906
+ M("list", -1)
907
+ ])]),
908
+ _: 1
909
+ })),
910
+ E(j, {
911
+ class: "wu-text-center",
912
+ gray: ""
913
+ }, {
914
+ default: $(() => [
915
+ W(s.$slots, "default")
916
+ ]),
917
+ _: 3
918
+ }),
919
+ e.error ? (y(), T(me, {
920
+ key: 3,
921
+ onClick: i[0] || (i[0] = (a) => n("refetch")),
922
+ outline: "",
923
+ small: "",
924
+ "data-testid": "refetch-button"
925
+ }, {
926
+ icon: $(() => [...i[3] || (i[3] = [
927
+ M("refresh", -1)
928
+ ])]),
929
+ default: $(() => [
930
+ i[4] || (i[4] = M("Tentar novamente", -1))
931
+ ]),
932
+ _: 1
933
+ })) : R("", !0)
934
+ ]),
935
+ _: 3
936
+ }));
937
+ }
938
+ }), Ro = { class: "wu-flex wu-flex-col wu-items-center wu-h-full wu-w-full wu-overflow-hidden" }, Oo = {
856
939
  key: 0,
857
- class: "yu-w-full yu-h-12"
858
- }, Po = {
940
+ class: "wu-w-full wu-h-12"
941
+ }, Ho = {
859
942
  key: 0,
860
- 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"
861
- }, Lo = ["src"], Mo = {
943
+ class: "wu-flex wu-items-center wu-justify-center wu-rounded-full wu-bg-gray-100 wu-w-7 wu-h-7 dark:wu-bg-neutral-700"
944
+ }, zo = ["src"], Eo = {
862
945
  key: 1,
863
- class: "yu-flex yu-w-7 yu-h-7"
864
- }, Ro = { class: "yu-w-full yu-shrink-0 yu-border-t yu-border-gray-200 yu-flex yu-flex-col dark:yu-border-neutral-700" }, Oo = ["onKeydown"], Ho = { class: "yu-flex yu-items-center yu-gap-2 yu-w-full yu-justify-end yu-px-6 yu-py-2" }, yn = /* @__PURE__ */ Z({
946
+ class: "wu-flex wu-w-7 wu-h-7"
947
+ }, Fo = {
948
+ key: 0,
949
+ class: "wu-w-full wu-shrink-0 wu-border-t wu-border-gray-200 wu-flex wu-flex-col dark:wu-border-neutral-700"
950
+ }, No = ["onKeydown", "disabled"], Io = { class: "wu-flex wu-items-center wu-gap-2 wu-w-full wu-justify-end wu-px-6 wu-py-2" }, mn = /* @__PURE__ */ q({
865
951
  __name: "app-service-page",
866
952
  props: {
867
953
  rule: {},
868
954
  edges: {}
869
955
  },
870
- emits: ["send-message"],
956
+ emits: ["send-message", "retry-loading-messages"],
871
957
  setup(e, { emit: t }) {
872
- const n = t, { history: o, chat: r } = qe(), { messages: s, text: i, setMessages: a } = r, l = m(() => o.value.length > 0), u = D(null), h = (c = !0) => {
873
- const y = u.value;
874
- y && y.scrollTo({ top: y.scrollHeight, behavior: c ? "smooth" : "auto" });
875
- }, f = (c) => `https://api.dicebear.com/10.x/marbles/svg?backgroundColor=&seed=${c === "operator" ? "operator" : "user"}`, d = () => {
876
- n("send-message", i.value);
958
+ const n = t, { history: o, chat: r } = qe(), { isErrorLoadingMessages: s, isLoadingMessages: i, isSendingMessage: a, messages: l, text: u, setMessages: m } = r, h = w(() => o.value.length > 0), p = I(null), c = (d = !0) => {
959
+ const f = p.value;
960
+ f && f.scrollTo({ top: f.scrollHeight, behavior: d ? "smooth" : "auto" });
961
+ }, v = (d) => `https://api.dicebear.com/10.x/marbles/svg?backgroundColor=&seed=${d === "operator" ? "operator" : "user"}`, b = () => {
962
+ n("send-message", u.value);
877
963
  };
878
- return ye(
879
- () => s.value.length,
964
+ we(
965
+ () => l.value.length,
880
966
  async () => {
881
- await Ce(), h();
967
+ await Ae(), c();
882
968
  }
883
- ), $t(() => {
884
- h(!1);
885
- }), (c, y) => (b(), B("div", Bo, [
886
- S("div", {
887
- class: "yu-flex yu-flex-col yu-flex-1 yu-min-h-0 yu-gap-2 yu-w-full yu-px-6 yu-overflow-y-auto",
969
+ ), kt(() => {
970
+ c(!1);
971
+ });
972
+ const g = (d, f, k) => f[k - 1]?.from === d.from ? "wu-mt-1" : "wu-mt-4";
973
+ return (d, f) => (y(), S("div", Ro, [
974
+ B("div", {
975
+ class: "wu-flex wu-flex-col wu-flex-1 wu-min-h-0 wu-w-full wu-px-6 wu-overflow-y-auto",
888
976
  ref_key: "messagesList",
889
- ref: u,
977
+ ref: p,
890
978
  "data-testid": "app-service-messages"
891
979
  }, [
892
- l.value ? M("", !0) : (b(), B("div", To)),
893
- (b(!0), B(he, null, Ae(_(s), (v, g) => (b(), R(fn, {
894
- key: g,
895
- primary: v.from === "operator",
896
- secondary: v.from === "contact",
897
- tertiary: v.from === "system"
898
- }, ht({
980
+ h.value ? R("", !0) : (y(), S("div", Oo)),
981
+ C(i) ? (y(), S(ue, { key: 1 }, xe(10, (k, L) => E(mt, {
982
+ key: L,
983
+ primary: L % 2 === 0,
984
+ secondary: L % 2 === 1
985
+ }, {
899
986
  default: $(() => [
900
- v.from == "system" ? (b(), R(V, {
987
+ E(hn, {
988
+ class: "wu-h-4 wu-w-32",
989
+ block: ""
990
+ })
991
+ ]),
992
+ _: 1
993
+ }, 8, ["primary", "secondary"])), 64)) : C(s) ? (y(), T(wn, {
994
+ key: 2,
995
+ class: "wu-h-full",
996
+ onRefetch: f[0] || (f[0] = (k) => n("retry-loading-messages")),
997
+ error: ""
998
+ }, {
999
+ default: $(() => [...f[2] || (f[2] = [
1000
+ M("Ocorreu um erro ao carregar as mensagens.", -1)
1001
+ ])]),
1002
+ _: 1
1003
+ })) : (y(!0), S(ue, { key: 3 }, xe(C(l), (k, L) => (y(), T(mt, {
1004
+ key: L,
1005
+ primary: k.from === "operator",
1006
+ secondary: k.from === "contact",
1007
+ tertiary: k.from === "system",
1008
+ class: F([g(k, C(l), L)])
1009
+ }, wt({
1010
+ default: $(() => [
1011
+ k.from == "system" ? (y(), T(j, {
901
1012
  key: 0,
902
- class: "yu-text-center",
1013
+ class: "wu-text-center",
903
1014
  gray: "",
904
1015
  "extra-small": "",
905
1016
  medium: ""
906
1017
  }, {
907
1018
  default: $(() => [
908
- O(G(v.text), 1)
1019
+ M(Z(k.text), 1)
909
1020
  ]),
910
1021
  _: 2
911
- }, 1024)) : (b(), R(V, {
1022
+ }, 1024)) : (y(), T(j, {
912
1023
  key: 1,
913
1024
  gray: "",
914
1025
  small: "",
915
1026
  medium: ""
916
1027
  }, {
917
1028
  default: $(() => [
918
- O(G(v.text), 1)
1029
+ M(Z(k.text), 1)
919
1030
  ]),
920
1031
  _: 2
921
1032
  }, 1024))
922
1033
  ]),
923
1034
  _: 2
924
1035
  }, [
925
- v.from !== "system" ? {
1036
+ k.from === "operator" ? {
926
1037
  name: "avatar",
927
1038
  fn: $(() => [
928
- _(s)[g + 1]?.from !== v.from ? (b(), B("div", Po, [
929
- S("img", {
930
- class: "yu-rounded-full yu-w-full yu-h-full yu-object-contain",
931
- src: f(v.from)
932
- }, null, 8, Lo)
933
- ])) : (b(), B("div", Mo))
1039
+ C(l)[L + 1]?.from !== k.from ? (y(), S("div", Ho, [
1040
+ B("img", {
1041
+ class: "wu-rounded-full wu-w-full wu-h-full wu-object-contain",
1042
+ src: v(k.from)
1043
+ }, null, 8, zo)
1044
+ ])) : (y(), S("div", Eo))
934
1045
  ]),
935
1046
  key: "0"
936
1047
  } : void 0,
937
- v.from !== "system" ? {
1048
+ k.from !== "system" ? {
938
1049
  name: "trailing",
939
1050
  fn: $(() => [
940
- I(V, {
1051
+ E(j, {
941
1052
  gray: "",
942
1053
  "extra-small": "",
943
1054
  medium: ""
944
1055
  }, {
945
- default: $(() => [...y[1] || (y[1] = [
946
- O("12:58", -1)
1056
+ default: $(() => [...f[3] || (f[3] = [
1057
+ M("12:58", -1)
947
1058
  ])]),
948
1059
  _: 1
949
1060
  })
950
1061
  ]),
951
1062
  key: "1"
952
1063
  } : void 0
953
- ]), 1032, ["primary", "secondary", "tertiary"]))), 128)),
954
- y[2] || (y[2] = S("div", { class: "yu-w-full yu-h-12" }, null, -1))
1064
+ ]), 1032, ["primary", "secondary", "tertiary", "class"]))), 128)),
1065
+ f[4] || (f[4] = B("div", { class: "wu-w-full wu-min-h-8" }, null, -1))
955
1066
  ], 512),
956
- S("div", Ro, [
957
- Gn(S("textarea", {
958
- 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",
959
- "onUpdate:modelValue": y[0] || (y[0] = (v) => sn(i) ? i.value = v : null),
1067
+ !C(i) && !C(s) ? (y(), S("div", Fo, [
1068
+ Un(B("textarea", {
1069
+ class: "wu-w-full wu-p-6 wu-resize-none wu-font-primary wu-text-xs wu-bg-transparent wu-text-gray-900 placeholder:wu-text-neutral placeholder:wu-text-xs placeholder:wu-font-normal focus:wu-outline-none dark:wu-text-neutral-100 [&:disabled]:wu-opacity-50",
1070
+ "onUpdate:modelValue": f[1] || (f[1] = (k) => an(u) ? u.value = k : null),
1071
+ onKeydown: et(Xn(b, ["exact", "prevent"]), ["enter"]),
960
1072
  placeholder: "Escreva uma mensagem...",
961
- onKeydown: et(Zn(d, ["exact", "prevent"]), ["enter"])
962
- }, null, 40, Oo), [
963
- [Un, _(i)]
1073
+ disabled: C(a)
1074
+ }, null, 40, No), [
1075
+ [Yn, C(u)]
964
1076
  ]),
965
- S("div", Ho, [
966
- I(be, {
967
- icon: "",
1077
+ B("div", Io, [
1078
+ E(me, {
1079
+ disabled: C(a),
968
1080
  ghost: "",
969
- small: ""
1081
+ small: "",
1082
+ icon: ""
970
1083
  }, {
971
1084
  icon: $(() => [
972
- I(Q, { class: "yu-rotate-45" }, {
973
- default: $(() => [...y[3] || (y[3] = [
974
- O("attach_file", -1)
1085
+ E(Y, { class: "wu-rotate-45" }, {
1086
+ default: $(() => [...f[5] || (f[5] = [
1087
+ M("attach_file", -1)
975
1088
  ])]),
976
1089
  _: 1
977
1090
  })
978
1091
  ]),
979
1092
  _: 1
980
- }),
981
- I(be, {
982
- icon: "",
1093
+ }, 8, ["disabled"]),
1094
+ E(me, {
1095
+ onClick: b,
1096
+ loading: C(a),
1097
+ disabled: !C(u),
983
1098
  small: "",
984
- onClick: d
1099
+ icon: ""
985
1100
  }, {
986
1101
  icon: $(() => [
987
- I(Q, null, {
988
- default: $(() => [...y[4] || (y[4] = [
989
- O("send", -1)
1102
+ E(Y, null, {
1103
+ default: $(() => [...f[6] || (f[6] = [
1104
+ M("send", -1)
990
1105
  ])]),
991
1106
  _: 1
992
1107
  })
993
1108
  ]),
994
1109
  _: 1
995
- })
1110
+ }, 8, ["loading", "disabled"])
996
1111
  ])
997
- ])
1112
+ ])) : R("", !0)
998
1113
  ]));
999
1114
  }
1000
- }), zo = (e) => {
1115
+ }), Do = (e) => {
1001
1116
  const t = (n) => n.toString(16).padStart(2, "0");
1002
1117
  return `#${t(e.r)}${t(e.g)}${t(e.b)}`;
1003
- }, hn = () => {
1118
+ }, gn = () => {
1004
1119
  const e = "#6D3595", t = (r) => {
1005
1120
  const s = r.replace("#", "").trim(), i = s.length === 3 && /^[0-9a-fA-F]{3}$/.test(s) ? `${s[0]}${s[0]}${s[1]}${s[1]}${s[2]}${s[2]}` : s;
1006
1121
  return i.length !== 6 || !/^[0-9a-fA-F]{6}$/.test(i) ? null : {
@@ -1016,52 +1131,52 @@ const Q = /* @__PURE__ */ Z({
1016
1131
  },
1017
1132
  normalizeHex: (r) => {
1018
1133
  const s = t(r) ?? t(e);
1019
- return s ? zo(s) : e.toLowerCase();
1134
+ return s ? Do(s) : e.toLowerCase();
1020
1135
  },
1021
1136
  parseHex: t
1022
1137
  };
1023
- }, Eo = () => typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia("(prefers-color-scheme: dark)").matches, mn = (e) => {
1024
- const { isLightHex: t, normalizeHex: n, parseHex: o } = hn(), r = (f, d) => f === "dark" ? "dark" : f === "light" ? "light" : d ? "dark" : "light", s = (f) => {
1025
- const d = n(f), c = o(d) ?? { r: 109, g: 53, b: 149 }, y = t(d);
1138
+ }, jo = () => typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia("(prefers-color-scheme: dark)").matches, vn = (e) => {
1139
+ const { isLightHex: t, normalizeHex: n, parseHex: o } = gn(), r = (h, p) => h === "dark" ? "dark" : h === "light" ? "light" : p ? "dark" : "light", s = (h) => {
1140
+ const p = n(h), c = o(p) ?? { r: 109, g: 53, b: 149 }, v = t(p);
1026
1141
  return {
1027
- "--yu-primary": d,
1028
- "--yu-primary-rgb": `${c.r} ${c.g} ${c.b}`,
1029
- "--yu-primary-fg": y ? "#1c1917" : "#ffffff",
1030
- "--yu-primary-border": y ? "#e5e7eb" : "color-mix(in srgb, var(--yu-primary-fg) 22%, transparent)",
1031
- "--yu-primary-50": `color-mix(in srgb, ${d} 8%, white)`,
1032
- "--yu-primary-100": `color-mix(in srgb, ${d} 22%, white)`,
1033
- "--yu-primary-200": `color-mix(in srgb, ${d} 38%, white)`,
1034
- "--yu-primary-300": `color-mix(in srgb, ${d} 55%, white)`,
1035
- "--yu-primary-400": y ? `color-mix(in srgb, ${d} 70%, black)` : `color-mix(in srgb, ${d} 78%, white)`,
1036
- "--yu-primary-500": d,
1037
- "--yu-primary-600": `color-mix(in srgb, ${d} 82%, black)`,
1038
- "--yu-primary-700": `color-mix(in srgb, ${d} 64%, black)`,
1039
- "--yu-primary-800": `color-mix(in srgb, ${d} 42%, black)`,
1040
- "--yu-primary-900": `color-mix(in srgb, ${d} 22%, black)`
1142
+ "--wu-primary": p,
1143
+ "--wu-primary-rgb": `${c.r} ${c.g} ${c.b}`,
1144
+ "--wu-primary-fg": v ? "#1c1917" : "#ffffff",
1145
+ "--wu-primary-border": v ? "#e5e7eb" : "color-mix(in srgb, var(--wu-primary-fg) 22%, transparent)",
1146
+ "--wu-primary-50": `color-mix(in srgb, ${p} 8%, white)`,
1147
+ "--wu-primary-100": `color-mix(in srgb, ${p} 22%, white)`,
1148
+ "--wu-primary-200": `color-mix(in srgb, ${p} 38%, white)`,
1149
+ "--wu-primary-300": `color-mix(in srgb, ${p} 55%, white)`,
1150
+ "--wu-primary-400": v ? `color-mix(in srgb, ${p} 70%, black)` : `color-mix(in srgb, ${p} 78%, white)`,
1151
+ "--wu-primary-500": p,
1152
+ "--wu-primary-600": `color-mix(in srgb, ${p} 82%, black)`,
1153
+ "--wu-primary-700": `color-mix(in srgb, ${p} 64%, black)`,
1154
+ "--wu-primary-800": `color-mix(in srgb, ${p} 42%, black)`,
1155
+ "--wu-primary-900": `color-mix(in srgb, ${p} 22%, black)`
1041
1156
  };
1042
- }, i = (f) => {
1043
- const d = D(Eo()), c = m(() => r(Re(f), d.value)), y = m(() => c.value === "dark"), v = m(() => y.value ? "yu-dark" : "");
1044
- return $t(() => {
1157
+ }, i = (h) => {
1158
+ const p = I(jo()), c = w(() => r(Oe(h), p.value)), v = w(() => c.value === "dark"), b = w(() => v.value ? "wu-dark" : "");
1159
+ return kt(() => {
1045
1160
  if (typeof window > "u" || typeof window.matchMedia != "function") return;
1046
1161
  const g = window.matchMedia("(prefers-color-scheme: dark)");
1047
- d.value = g.matches;
1048
- const p = (w) => {
1049
- d.value = w.matches;
1162
+ p.value = g.matches;
1163
+ const d = (f) => {
1164
+ p.value = f.matches;
1050
1165
  };
1051
- g.addEventListener("change", p), on(() => g.removeEventListener("change", p));
1052
- }), { isDark: y, resolvedTheme: c, themeClass: v };
1053
- }, { isDark: a, themeClass: l, resolvedTheme: u } = i(() => Re(e).theme), h = m(() => ({
1054
- ...s(Re(e).primaryColor),
1166
+ g.addEventListener("change", d), rn(() => g.removeEventListener("change", d));
1167
+ }), { isDark: v, resolvedTheme: c, themeClass: b };
1168
+ }, { isDark: a, themeClass: l, resolvedTheme: u } = i(() => Oe(e).theme), m = w(() => ({
1169
+ ...s(Oe(e).primaryColor),
1055
1170
  colorScheme: u.value
1056
1171
  }));
1057
- return { isDark: a, themeClass: l, resolvedTheme: u, appearanceStyle: h };
1058
- }, Fo = { class: "yu-flex yu-flex-col yu-w-full yu-gap-8" }, No = {
1172
+ return { isDark: a, themeClass: l, resolvedTheme: u, appearanceStyle: m };
1173
+ }, Vo = { class: "wu-flex wu-flex-col wu-w-full wu-gap-8" }, Wo = {
1059
1174
  key: 0,
1060
- class: "yu-flex yu-items-center yu-w-fit yu-justify-center yu-h-0"
1061
- }, Io = ["src"], Do = {
1175
+ class: "wu-flex wu-items-center wu-w-fit wu-justify-center wu-h-0"
1176
+ }, qo = ["src"], Go = {
1062
1177
  key: 1,
1063
- class: "yu-flex yu-flex-col yu-items-center yu-justify-start yu-gap-2 yu-px-6 yu-w-full"
1064
- }, jo = ["src"], Vo = ["src"], gn = /* @__PURE__ */ Z({
1178
+ class: "wu-flex wu-flex-col wu-items-center wu-justify-start wu-gap-2 wu-px-6 wu-w-full"
1179
+ }, Zo = ["src"], Uo = ["src"], yn = /* @__PURE__ */ q({
1065
1180
  __name: "app-screen-page",
1066
1181
  props: {
1067
1182
  rule: {},
@@ -1069,129 +1184,129 @@ const Q = /* @__PURE__ */ Z({
1069
1184
  },
1070
1185
  emits: ["edge-click"],
1071
1186
  setup(e, { emit: t }) {
1072
- const n = e, o = t, { history: r } = qe(), s = m(() => r.value.length > 0), i = m(() => n.edges ?? []), a = m(() => n.rule.settings?.body);
1073
- return (l, u) => (b(), B("div", Fo, [
1074
- s.value ? M("", !0) : (b(), B("div", No)),
1075
- I(de, {
1076
- class: "yu-px-6 yu-w-full",
1187
+ const n = e, o = t, { history: r } = qe(), s = w(() => r.value.length > 0), i = w(() => n.edges ?? []), a = w(() => n.rule.settings?.body);
1188
+ return (l, u) => (y(), S("div", Vo, [
1189
+ s.value ? R("", !0) : (y(), S("div", Wo)),
1190
+ E(le, {
1191
+ class: "wu-px-6 wu-w-full",
1077
1192
  col: "",
1078
1193
  center: "",
1079
1194
  "gap-base": ""
1080
1195
  }, {
1081
1196
  default: $(() => [
1082
- a.value?.logo ? (b(), B("img", {
1197
+ a.value?.logo ? (y(), S("img", {
1083
1198
  key: 0,
1084
- class: "yu-w-10 yu-h-10 yu-object-contain",
1199
+ class: "wu-w-10 wu-h-10 wu-object-contain",
1085
1200
  src: a.value.logo,
1086
1201
  alt: ""
1087
- }, null, 8, Io)) : M("", !0),
1088
- a.value?.eyebrow ? (b(), R(V, {
1202
+ }, null, 8, qo)) : R("", !0),
1203
+ a.value?.eyebrow ? (y(), T(j, {
1089
1204
  key: 1,
1090
- class: "yu-text-center yu-uppercase yu-tracking-widest yu-leading-none",
1205
+ class: "wu-text-center wu-uppercase wu-tracking-widest wu-leading-none",
1091
1206
  "extra-small": "",
1092
1207
  gray: "",
1093
1208
  mono: ""
1094
1209
  }, {
1095
1210
  default: $(() => [
1096
- O(G(a.value.eyebrow), 1)
1211
+ M(Z(a.value.eyebrow), 1)
1097
1212
  ]),
1098
1213
  _: 1
1099
- })) : M("", !0),
1100
- a.value?.title ? (b(), R(V, {
1214
+ })) : R("", !0),
1215
+ a.value?.title ? (y(), T(j, {
1101
1216
  key: 2,
1102
- class: "yu-text-center",
1217
+ class: "wu-text-center",
1103
1218
  "extra-large": "",
1104
1219
  semibold: ""
1105
1220
  }, {
1106
1221
  default: $(() => [
1107
- O(G(a.value.title), 1)
1222
+ M(Z(a.value.title), 1)
1108
1223
  ]),
1109
1224
  _: 1
1110
- })) : M("", !0),
1111
- a.value?.subtitle ? (b(), R(V, {
1225
+ })) : R("", !0),
1226
+ a.value?.subtitle ? (y(), T(j, {
1112
1227
  key: 3,
1113
- class: "yu-w-64 yu-text-center",
1228
+ class: "wu-w-64 wu-text-center",
1114
1229
  small: "",
1115
1230
  gray: ""
1116
1231
  }, {
1117
1232
  default: $(() => [
1118
- O(G(a.value.subtitle), 1)
1233
+ M(Z(a.value.subtitle), 1)
1119
1234
  ]),
1120
1235
  _: 1
1121
- })) : M("", !0)
1236
+ })) : R("", !0)
1122
1237
  ]),
1123
1238
  _: 1
1124
1239
  }),
1125
- i.value.length ? (b(), B("div", Do, [
1126
- (b(!0), B(he, null, Ae(i.value.slice(0, 3), (h) => (b(), R(be, {
1127
- class: "hover:yu-translate-x-1 yu-max-w-[25rem]",
1128
- key: h.id,
1240
+ i.value.length ? (y(), S("div", Go, [
1241
+ (y(!0), S(ue, null, xe(i.value.slice(0, 3), (m) => (y(), T(me, {
1242
+ class: "hover:wu-translate-x-1 wu-max-w-[25rem]",
1243
+ key: m.id,
1129
1244
  outline: "",
1130
1245
  fluid: "",
1131
- onClick: (f) => o("edge-click", h)
1132
- }, ht({
1246
+ onClick: (h) => o("edge-click", m)
1247
+ }, wt({
1133
1248
  trailing: $(() => [
1134
- u[0] || (u[0] = O("chevron_right", -1))
1249
+ u[0] || (u[0] = M("chevron_right", -1))
1135
1250
  ]),
1136
1251
  default: $(() => [
1137
- O(G(h.name), 1)
1252
+ M(Z(m.name), 1)
1138
1253
  ]),
1139
1254
  _: 2
1140
1255
  }, [
1141
- h.settings?.body?.logo ? {
1256
+ m.settings?.body?.logo ? {
1142
1257
  name: "icon",
1143
1258
  fn: $(() => [
1144
- S("img", {
1145
- class: "yu-w-4 yu-h-4 yu-object-contain",
1146
- src: h.settings.body.logo,
1259
+ B("img", {
1260
+ class: "wu-w-4 wu-h-4 wu-object-contain",
1261
+ src: m.settings.body.logo,
1147
1262
  alt: ""
1148
- }, null, 8, jo)
1263
+ }, null, 8, Zo)
1149
1264
  ]),
1150
1265
  key: "0"
1151
1266
  } : void 0
1152
1267
  ]), 1032, ["onClick"]))), 128)),
1153
- S("div", {
1154
- class: F(["yu-flex yu-items-start yu-overflow-x-auto yu-w-full invisible-scrollbar yu-pt-6", { "yu-justify-start": i.value.slice(3).length > 4, "yu-justify-center": i.value.slice(3).length <= 4 }])
1268
+ B("div", {
1269
+ class: F(["wu-flex wu-items-start wu-overflow-x-auto wu-w-full invisible-scrollbar wu-pt-6", { "wu-justify-start": i.value.slice(3).length > 4, "wu-justify-center": i.value.slice(3).length <= 4 }])
1155
1270
  }, [
1156
- (b(!0), B(he, null, Ae(i.value.slice(3), (h) => (b(), B("div", {
1157
- class: "yu-flex yu-flex-col yu-items-center yu-gap-2",
1158
- key: h.id
1271
+ (y(!0), S(ue, null, xe(i.value.slice(3), (m) => (y(), S("div", {
1272
+ class: "wu-flex wu-flex-col wu-items-center wu-gap-2",
1273
+ key: m.id
1159
1274
  }, [
1160
- I(be, {
1275
+ E(me, {
1161
1276
  outline: "",
1162
1277
  icon: "",
1163
- onClick: (f) => o("edge-click", h)
1164
- }, ht({ _: 2 }, [
1165
- h.settings?.body?.logo ? {
1278
+ onClick: (h) => o("edge-click", m)
1279
+ }, wt({ _: 2 }, [
1280
+ m.settings?.body?.logo ? {
1166
1281
  name: "icon",
1167
1282
  fn: $(() => [
1168
- S("img", {
1169
- class: "yu-w-5 yu-h-5 yu-object-contain",
1170
- src: h.settings.body.logo,
1283
+ B("img", {
1284
+ class: "wu-w-5 wu-h-5 wu-object-contain",
1285
+ src: m.settings.body.logo,
1171
1286
  alt: ""
1172
- }, null, 8, Vo)
1287
+ }, null, 8, Uo)
1173
1288
  ]),
1174
1289
  key: "0"
1175
1290
  } : void 0
1176
1291
  ]), 1032, ["onClick"]),
1177
- I(V, {
1178
- class: "yu-w-20 yu-text-center yu-leading-3 yu-line-clamp-2",
1292
+ E(j, {
1293
+ class: "wu-w-20 wu-text-center wu-leading-3 wu-line-clamp-2",
1179
1294
  "extra-small": ""
1180
1295
  }, {
1181
1296
  default: $(() => [
1182
- O(G(h.name), 1)
1297
+ M(Z(m.name), 1)
1183
1298
  ]),
1184
1299
  _: 2
1185
1300
  }, 1024)
1186
1301
  ]))), 128))
1187
1302
  ], 2)
1188
- ])) : M("", !0)
1303
+ ])) : R("", !0)
1189
1304
  ]));
1190
1305
  }
1191
- }), Wo = "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=", qo = { class: "yu-flex yu-flex-col yu-h-full yu-w-full yu-bg-white yu-overflow-hidden dark:yu-bg-neutral-800" }, Go = { 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-[var(--yu-primary-border)]" }, Zo = { class: "yu-flex yu-items-center yu-gap-3 yu-min-w-0 yu-flex-1" }, Uo = ["src"], Xo = { class: "yu-flex yu-flex-col yu-justify-center yu-min-w-0 yu-overflow-hidden" }, Yo = { class: "yu-flex yu-flex-col yu-w-full yu-flex-1 yu-min-h-0" }, Ko = {
1306
+ }), Xo = "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=", Yo = { class: "wu-flex wu-flex-col wu-h-full wu-w-full wu-bg-white wu-overflow-hidden dark:wu-bg-neutral-800" }, Ko = { class: "wu-w-full wu-shrink-0 wu-border-b wu-flex wu-items-center wu-px-4 wu-justify-between wu-gap-2 wu-bg-primary wu-h-[4.4rem] wu-text-[var(--wu-primary-fg)] wu-border-[var(--wu-primary-border)]" }, Qo = { class: "wu-flex wu-items-center wu-gap-3 wu-min-w-0 wu-flex-1" }, Jo = ["src"], er = { class: "wu-flex wu-flex-col wu-justify-center wu-min-w-0 wu-overflow-hidden" }, tr = { class: "wu-flex wu-flex-col wu-w-full wu-flex-1 wu-min-h-0" }, nr = {
1192
1307
  key: 0,
1193
- class: "yu-flex yu-shrink-0 yu-items-center yu-w-fit yu-justify-center yu-px-6 yu-py-4"
1194
- }, Qo = { class: "yu-flex yu-flex-col yu-w-full yu-flex-1 yu-min-h-0 yu-overflow-y-auto yu-gap-8" }, Jo = { 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({
1308
+ class: "wu-flex wu-shrink-0 wu-items-center wu-w-fit wu-justify-center wu-px-6 wu-py-4"
1309
+ }, or = { class: "wu-flex wu-flex-col wu-w-full wu-flex-1 wu-min-h-0 wu-overflow-y-auto wu-gap-8" }, rr = { class: "wu-h-7 wu-w-full wu-shrink-0 wu-border-t wu-border-gray-200 wu-flex wu-items-center wu-justify-center wu-p-2 wu-gap-1 wu-bg-white dark:wu-border-neutral-700 dark:wu-bg-neutral-800" }, sr = ["src"], ir = /* @__PURE__ */ q({
1195
1310
  inheritAttrs: !1,
1196
1311
  __name: "app-widget-view",
1197
1312
  props: {
@@ -1199,144 +1314,145 @@ const Q = /* @__PURE__ */ Z({
1199
1314
  config: {},
1200
1315
  fullscreen: { type: Boolean }
1201
1316
  },
1202
- emits: ["send-message", "edge-click", "submit", "close", "back"],
1317
+ emits: ["send-message", "retry-loading-messages", "edge-click", "submit", "close", "back"],
1203
1318
  setup(e, { emit: t }) {
1204
- const n = e, o = t, { history: r, currentRule: s, edges: i, setWorkflow: a } = qe(), { appearanceStyle: l, themeClass: u } = mn(() => n.config.configurations.appearance);
1205
- a(n.workflow), ye(
1319
+ const n = e, o = t, { history: r, currentRule: s, edges: i, setWorkflow: a } = qe(), { appearanceStyle: l, themeClass: u } = vn(() => n.config.configurations.appearance);
1320
+ a(n.workflow), we(
1206
1321
  () => n.workflow,
1207
1322
  (g) => a(g)
1208
1323
  );
1209
- const h = m(() => r.value.length > 0), f = m(() => h.value && s.value?.action !== "identification"), d = m(() => n.config.configurations.general.isClosable), c = {
1210
- identification: dn,
1211
- service: yn,
1212
- screen: gn
1213
- }, y = m(() => {
1324
+ const m = w(() => r.value.length > 0), h = w(() => m.value && s.value?.action !== "identification"), p = w(() => n.config.configurations.general.isClosable), c = {
1325
+ identification: pn,
1326
+ service: mn,
1327
+ screen: yn
1328
+ }, v = w(() => {
1214
1329
  const g = s.value?.action;
1215
1330
  return g && g in c ? c[g] : void 0;
1216
- }), v = m(() => n.fullscreen ? "yu-w-screen yu-h-screen" : "yu-w-[24.4rem] yu-h-[38rem] widget-shadow yu-rounded-2xl");
1217
- return (g, p) => (b(), B("div", {
1218
- class: F(["yunique yu-overflow-hidden yu-relative", [v.value, _(u)]]),
1331
+ }), b = w(() => n.fullscreen ? "wu-w-screen wu-h-screen" : "wu-w-[24.4rem] wu-h-[38rem] widget-shadow wu-rounded-2xl");
1332
+ return (g, d) => (y(), S("div", {
1333
+ class: F(["yunique wu-overflow-hidden wu-relative", [b.value, C(u)]]),
1219
1334
  "data-testid": "app-widget-view",
1220
- style: ce(_(l))
1335
+ style: pe(C(l))
1221
1336
  }, [
1222
- S("div", qo, [
1223
- S("div", Go, [
1224
- S("div", Zo, [
1225
- _(s)?.settings?.header?.logo ? (b(), B("img", {
1337
+ B("div", Yo, [
1338
+ B("div", Ko, [
1339
+ B("div", Qo, [
1340
+ C(s)?.settings?.header?.logo ? (y(), S("img", {
1226
1341
  key: 0,
1227
- class: "yu-w-9 yu-h-9 yu-object-contain yu-rounded-lg yu-shrink-0",
1228
- src: _(s).settings.header.logo,
1342
+ class: "wu-w-9 wu-h-9 wu-object-contain wu-rounded-lg wu-shrink-0",
1343
+ src: C(s).settings.header.logo,
1229
1344
  alt: ""
1230
- }, null, 8, Uo)) : M("", !0),
1231
- S("div", Xo, [
1232
- _(s)?.settings?.header?.title ? (b(), R(V, {
1345
+ }, null, 8, Jo)) : R("", !0),
1346
+ B("div", er, [
1347
+ C(s)?.settings?.header?.title ? (y(), T(j, {
1233
1348
  key: 0,
1234
- class: "yu-w-full yu-truncate !yu-text-inherit",
1349
+ class: "wu-w-full wu-truncate !wu-text-inherit",
1235
1350
  bold: ""
1236
1351
  }, {
1237
1352
  default: $(() => [
1238
- O(G(_(s).settings.header.title), 1)
1353
+ M(Z(C(s).settings.header.title), 1)
1239
1354
  ]),
1240
1355
  _: 1
1241
- })) : M("", !0),
1242
- _(s)?.settings?.header?.subtitle ? (b(), R(V, {
1356
+ })) : R("", !0),
1357
+ C(s)?.settings?.header?.subtitle ? (y(), T(j, {
1243
1358
  key: 1,
1244
- class: "yu-w-full yu-truncate !yu-text-inherit yu-opacity-75",
1359
+ class: "wu-w-full wu-truncate !wu-text-inherit wu-opacity-75",
1245
1360
  "extra-small": ""
1246
1361
  }, {
1247
1362
  default: $(() => [
1248
- O(G(_(s).settings.header.subtitle), 1)
1363
+ M(Z(C(s).settings.header.subtitle), 1)
1249
1364
  ]),
1250
1365
  _: 1
1251
- })) : M("", !0)
1366
+ })) : R("", !0)
1252
1367
  ])
1253
1368
  ]),
1254
- d.value ? (b(), R(be, {
1369
+ p.value ? (y(), T(me, {
1255
1370
  key: 0,
1256
- class: "yu-shrink-0 !yu-bg-transparent hover:!yu-bg-[color-mix(in_srgb,var(--yu-primary-fg)_12%,transparent)]",
1257
- onClick: p[0] || (p[0] = (w) => o("close")),
1371
+ class: "wu-shrink-0 !wu-bg-transparent hover:!wu-bg-[color-mix(in_srgb,var(--wu-primary-fg)_12%,transparent)]",
1372
+ onClick: d[0] || (d[0] = (f) => o("close")),
1258
1373
  "data-testid": "app-widget-close",
1259
1374
  small: "",
1260
1375
  icon: ""
1261
1376
  }, {
1262
1377
  default: $(() => [
1263
- I(Q, null, {
1264
- default: $(() => [...p[6] || (p[6] = [
1265
- O("close", -1)
1378
+ E(Y, null, {
1379
+ default: $(() => [...d[7] || (d[7] = [
1380
+ M("close", -1)
1266
1381
  ])]),
1267
1382
  _: 1
1268
1383
  })
1269
1384
  ]),
1270
1385
  _: 1
1271
- })) : M("", !0)
1386
+ })) : R("", !0)
1272
1387
  ]),
1273
- S("div", Yo, [
1274
- I(an, {
1388
+ B("div", tr, [
1389
+ E(ln, {
1275
1390
  name: "page-transition",
1276
1391
  mode: "out-in"
1277
1392
  }, {
1278
1393
  default: $(() => [
1279
- (b(), B("div", {
1280
- class: "yu-flex yu-flex-col yu-w-full yu-h-full yu-min-h-0",
1281
- key: _(s)?.id
1394
+ (y(), S("div", {
1395
+ class: "wu-flex wu-flex-col wu-w-full wu-h-full wu-min-h-0",
1396
+ key: C(s)?.id
1282
1397
  }, [
1283
- f.value ? (b(), B("div", Ko, [
1284
- S("div", {
1285
- class: "yu-flex yu-items-center yu-w-fit yu-justify-center yu-cursor-pointer yu-group",
1286
- onClick: p[1] || (p[1] = (w) => o("back"))
1398
+ h.value ? (y(), S("div", nr, [
1399
+ B("div", {
1400
+ class: "wu-flex wu-items-center wu-w-fit wu-justify-center wu-cursor-pointer wu-group",
1401
+ onClick: d[1] || (d[1] = (f) => o("back"))
1287
1402
  }, [
1288
- I(Q, {
1289
- class: "yu-transition-colors group-hover:!yu-text-gray-700 dark:group-hover:!yu-text-neutral-200",
1403
+ E(Y, {
1404
+ class: "wu-transition-colors group-hover:!wu-text-gray-700 dark:group-hover:!wu-text-neutral-200",
1290
1405
  small: "",
1291
1406
  gray: ""
1292
1407
  }, {
1293
- default: $(() => [...p[7] || (p[7] = [
1294
- O("chevron_left", -1)
1408
+ default: $(() => [...d[8] || (d[8] = [
1409
+ M("chevron_left", -1)
1295
1410
  ])]),
1296
1411
  _: 1
1297
1412
  }),
1298
- I(V, {
1299
- class: "yu-transition-colors group-hover:!yu-text-gray-700 dark:group-hover:!yu-text-neutral-200",
1413
+ E(j, {
1414
+ class: "wu-transition-colors group-hover:!wu-text-gray-700 dark:group-hover:!wu-text-neutral-200",
1300
1415
  "extra-small": "",
1301
1416
  medium: "",
1302
1417
  gray: ""
1303
1418
  }, {
1304
- default: $(() => [...p[8] || (p[8] = [
1305
- O("Voltar", -1)
1419
+ default: $(() => [...d[9] || (d[9] = [
1420
+ M("Voltar", -1)
1306
1421
  ])]),
1307
1422
  _: 1
1308
1423
  })
1309
1424
  ])
1310
- ])) : M("", !0),
1311
- S("div", Qo, [
1312
- y.value && _(s) ? (b(), R(rn(y.value), {
1425
+ ])) : R("", !0),
1426
+ B("div", or, [
1427
+ v.value && C(s) ? (y(), T(sn(v.value), {
1313
1428
  key: 0,
1314
- rule: _(s),
1315
- edges: _(i),
1316
- onSubmit: p[2] || (p[2] = (w) => o("submit", w)),
1317
- onBack: p[3] || (p[3] = (w) => o("back")),
1318
- onEdgeClick: p[4] || (p[4] = (w) => o("edge-click", w)),
1319
- onSendMessage: p[5] || (p[5] = (w) => o("send-message", w))
1320
- }, null, 40, ["rule", "edges"])) : M("", !0)
1429
+ rule: C(s),
1430
+ edges: C(i),
1431
+ onSubmit: d[2] || (d[2] = (f) => o("submit", f)),
1432
+ onBack: d[3] || (d[3] = (f) => o("back")),
1433
+ onEdgeClick: d[4] || (d[4] = (f) => o("edge-click", f)),
1434
+ onSendMessage: d[5] || (d[5] = (f) => o("send-message", f)),
1435
+ onRetryLoadingMessages: d[6] || (d[6] = (f) => o("retry-loading-messages"))
1436
+ }, null, 40, ["rule", "edges"])) : R("", !0)
1321
1437
  ])
1322
1438
  ]))
1323
1439
  ]),
1324
1440
  _: 1
1325
1441
  })
1326
1442
  ]),
1327
- S("div", Jo, [
1328
- S("img", {
1329
- class: "yu-w-3 yu-h-2",
1330
- src: _(Wo),
1443
+ B("div", rr, [
1444
+ B("img", {
1445
+ class: "wu-w-3 wu-h-2",
1446
+ src: C(Xo),
1331
1447
  alt: "Opens"
1332
- }, null, 8, er),
1333
- I(V, {
1334
- class: "!yu-text-xxs",
1448
+ }, null, 8, sr),
1449
+ E(j, {
1450
+ class: "!wu-text-xxs",
1335
1451
  gray: ""
1336
1452
  }, {
1337
- default: $(() => [...p[9] || (p[9] = [
1338
- O("Powered By", -1),
1339
- S("b", { class: "yu-ml-1" }, "Opens", -1)
1453
+ default: $(() => [...d[10] || (d[10] = [
1454
+ M("Powered By", -1),
1455
+ B("b", { class: "wu-ml-1" }, "Opens", -1)
1340
1456
  ])]),
1341
1457
  _: 1
1342
1458
  })
@@ -1344,7 +1460,7 @@ const Q = /* @__PURE__ */ Z({
1344
1460
  ])
1345
1461
  ], 6));
1346
1462
  }
1347
- }), vn = /* @__PURE__ */ tt(tr, [["__scopeId", "data-v-5996da4f"]]), nr = { class: "yu-flex yu-h-full yu-pl-3 yu-gap-2 yu-z-10 yu-pointer-events-none" }, or = { class: "yu-h-full yu-flex yu-items-center yu-justify-center" }, rr = ["value", "type", "disabled", "maxlength"], sr = { class: "yu-absolute yu-right-2 yu-z-10 yu-flex yu-items-center yu-gap-1 yu-text-gray-500" }, ir = /* @__PURE__ */ Z({
1463
+ }), bn = /* @__PURE__ */ tt(ir, [["__scopeId", "data-v-fbee4c58"]]), ar = { class: "wu-flex wu-h-full wu-pl-3 wu-gap-2 wu-z-10 wu-pointer-events-none" }, lr = { class: "wu-h-full wu-flex wu-items-center wu-justify-center" }, ur = ["value", "type", "disabled", "maxlength"], dr = { class: "wu-absolute wu-right-2 wu-z-10 wu-flex wu-items-center wu-gap-1 wu-text-gray-500" }, cr = /* @__PURE__ */ q({
1348
1464
  __name: "app-text-input",
1349
1465
  props: {
1350
1466
  modelValue: { default: "" },
@@ -1363,12 +1479,12 @@ const Q = /* @__PURE__ */ Z({
1363
1479
  },
1364
1480
  emits: ["update:modelValue", "keyup-enter"],
1365
1481
  setup(e, { expose: t, emit: n }) {
1366
- const o = e, r = n, s = m(() => We());
1482
+ const o = e, r = n, s = w(() => Be());
1367
1483
  function i(A) {
1368
1484
  return !!s.value[A];
1369
1485
  }
1370
- const a = D(""), l = D(!1), u = D(!1);
1371
- function h(A) {
1486
+ const a = I(""), l = I(!1), u = I(!1);
1487
+ function m(A) {
1372
1488
  if (!o.maskFunction) return A;
1373
1489
  try {
1374
1490
  const x = o.maskFunction(A);
@@ -1377,40 +1493,40 @@ const Q = /* @__PURE__ */ Z({
1377
1493
  return A;
1378
1494
  }
1379
1495
  }
1380
- ye(
1496
+ we(
1381
1497
  () => o.modelValue,
1382
1498
  (A) => {
1383
1499
  if (A == null) {
1384
1500
  a.value = "";
1385
1501
  return;
1386
1502
  }
1387
- a.value = o.maskFunction ? h(A) : A;
1503
+ a.value = o.maskFunction ? m(A) : A;
1388
1504
  },
1389
1505
  { immediate: !0 }
1390
1506
  );
1391
- function f() {
1507
+ function h() {
1392
1508
  return !(l.value || a.value);
1393
1509
  }
1394
- const { height: d, textSize: c, width: y } = ln(o), v = m(() => o.invalid ? "yu-border-red-500 focus-within:yu-border-red-500" : o.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 = m(() => o.invalid ? "yu-text-red-500" : o.valid ? "yu-text-green-500" : "yu-text-gray-500"), p = m(() => o.small && f() ? "yu-translate-y-[7px]" : o.small && !f() ? "yu-translate-y-0" : f() ? "yu-translate-y-[11px]" : "yu-translate-y-0"), w = m(() => i("icon") || o.loading ? "yu-pl-[34px]" : "yu-pl-3"), C = m(() => o.block ? "yu-rounded-none" : o.round ? "yu-rounded-full" : "yu-rounded-lg"), z = m(() => o.disabled || o.loading ? "yu-opacity-50 yu-pointer-events-none" : "");
1395
- function P(A) {
1396
- const T = A.target.value;
1397
- a.value = o.maskFunction ? h(T) : T, r("update:modelValue", a.value);
1510
+ const { height: p, textSize: c, width: v } = un(o), b = w(() => o.invalid ? "wu-border-red-500 focus-within:wu-border-red-500" : o.valid ? "wu-border-green-500 focus-within:wu-border-green-500" : "wu-border-gray-200 focus-within:!wu-border-primary/40 hover:wu-border-gray-300"), g = w(() => o.invalid ? "wu-text-red-500" : o.valid ? "wu-text-green-500" : "wu-text-gray-500"), d = w(() => o.small && h() ? "wu-translate-y-[7px]" : o.small && !h() ? "wu-translate-y-0" : h() ? "wu-translate-y-[11px]" : "wu-translate-y-0"), f = w(() => i("icon") || o.loading ? "wu-pl-[34px]" : "wu-pl-3"), k = w(() => o.block ? "wu-rounded-none" : o.round ? "wu-rounded-full" : "wu-rounded-lg"), L = w(() => o.disabled || o.loading ? "wu-opacity-50 wu-pointer-events-none" : "");
1511
+ function O(A) {
1512
+ const P = A.target.value;
1513
+ a.value = o.maskFunction ? m(P) : P, r("update:modelValue", a.value);
1398
1514
  }
1399
1515
  return t({
1400
1516
  focus: l,
1401
1517
  content: a
1402
- }), (A, x) => (b(), R(de, {
1403
- class: F([_(y)]),
1518
+ }), (A, x) => (y(), T(le, {
1519
+ class: F([C(v)]),
1404
1520
  col: "",
1405
1521
  "gap-none": ""
1406
1522
  }, {
1407
1523
  default: $(() => [
1408
- I(de, {
1524
+ E(le, {
1409
1525
  col: "",
1410
1526
  "gap-sm": ""
1411
1527
  }, {
1412
1528
  default: $(() => [
1413
- i("label") ? (b(), R(V, {
1529
+ i("label") ? (y(), T(j, {
1414
1530
  key: 0,
1415
1531
  small: "",
1416
1532
  medium: ""
@@ -1419,14 +1535,14 @@ const Q = /* @__PURE__ */ Z({
1419
1535
  W(A.$slots, "label")
1420
1536
  ]),
1421
1537
  _: 3
1422
- })) : M("", !0),
1423
- S("label", {
1424
- class: F(["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, z.value, _(d), v.value]]),
1538
+ })) : R("", !0),
1539
+ B("label", {
1540
+ class: F(["wu-relative wu-flex wu-flex-col wu-justify-center wu-items-start wu-border wu-cursor-text wu-transition-colors wu-w-full wu-bg-transparent", [k.value, L.value, C(p), b.value]]),
1425
1541
  "data-testid": "app-text-input"
1426
1542
  }, [
1427
- S("div", nr, [
1428
- S("div", or, [
1429
- !e.loading && i("icon") ? (b(), R(Q, {
1543
+ B("div", ar, [
1544
+ B("div", lr, [
1545
+ !e.loading && i("icon") ? (y(), T(Y, {
1430
1546
  key: 0,
1431
1547
  small: ""
1432
1548
  }, {
@@ -1434,21 +1550,21 @@ const Q = /* @__PURE__ */ Z({
1434
1550
  W(A.$slots, "icon")
1435
1551
  ]),
1436
1552
  _: 3
1437
- })) : M("", !0),
1438
- e.loading ? (b(), R(Q, {
1553
+ })) : R("", !0),
1554
+ e.loading ? (y(), T(Y, {
1439
1555
  key: 1,
1440
- class: "yu-animate-spin",
1556
+ class: "wu-animate-spin",
1441
1557
  small: "",
1442
1558
  outlined: ""
1443
1559
  }, {
1444
1560
  default: $(() => [...x[4] || (x[4] = [
1445
- O("progress_activity", -1)
1561
+ M("progress_activity", -1)
1446
1562
  ])]),
1447
1563
  _: 1
1448
- })) : M("", !0)
1564
+ })) : R("", !0)
1449
1565
  ]),
1450
- I(V, {
1451
- class: F(["yu-py-1 yu-transition", [p.value]]),
1566
+ E(j, {
1567
+ class: F(["wu-py-1 wu-transition", [d.value]]),
1452
1568
  small: "",
1453
1569
  medium: "",
1454
1570
  gray: ""
@@ -1459,62 +1575,62 @@ const Q = /* @__PURE__ */ Z({
1459
1575
  _: 3
1460
1576
  }, 8, ["class"])
1461
1577
  ]),
1462
- S("input", {
1463
- class: F(["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", [_(c), w.value, C.value]]),
1578
+ B("input", {
1579
+ class: F(["wu-absolute wu-inset-0 wu-w-full wu-h-full wu-outline-none wu-appearance-none wu-bg-transparent wu-pt-3 wu-pr-3 wu-text-gray-700 wu-font-primary wu-z-0", [C(c), f.value, k.value]]),
1464
1580
  value: a.value,
1465
1581
  type: e.passwordToggle && u.value ? "text" : e.type,
1466
1582
  disabled: e.disabled || e.loading,
1467
1583
  maxlength: e.maxLength,
1468
- onInput: P,
1469
- onFocus: x[0] || (x[0] = (T) => l.value = !0),
1470
- onBlur: x[1] || (x[1] = (T) => l.value = !1),
1471
- onKeyup: x[2] || (x[2] = et((T) => r("keyup-enter"), ["enter"]))
1472
- }, null, 42, rr),
1473
- S("div", sr, [
1474
- e.maxLength ? (b(), R(V, {
1584
+ onInput: O,
1585
+ onFocus: x[0] || (x[0] = (P) => l.value = !0),
1586
+ onBlur: x[1] || (x[1] = (P) => l.value = !1),
1587
+ onKeyup: x[2] || (x[2] = et((P) => r("keyup-enter"), ["enter"]))
1588
+ }, null, 42, ur),
1589
+ B("div", dr, [
1590
+ e.maxLength ? (y(), T(j, {
1475
1591
  key: 0,
1476
1592
  small: ""
1477
1593
  }, {
1478
1594
  default: $(() => [
1479
- O(G(`${a.value.length} / ${e.maxLength}`), 1)
1595
+ M(Z(`${a.value.length} / ${e.maxLength}`), 1)
1480
1596
  ]),
1481
1597
  _: 1
1482
- })) : M("", !0),
1483
- e.type === "password" && e.passwordToggle ? (b(), B("button", {
1598
+ })) : R("", !0),
1599
+ e.type === "password" && e.passwordToggle ? (y(), S("button", {
1484
1600
  key: 1,
1485
- class: "yu-bg-transparent yu-border-0 yu-p-0 yu-cursor-pointer yu-flex yu-items-center",
1601
+ class: "wu-bg-transparent wu-border-0 wu-p-0 wu-cursor-pointer wu-flex wu-items-center",
1486
1602
  type: "button",
1487
1603
  tabindex: "-1",
1488
- onClick: x[3] || (x[3] = (T) => u.value = !u.value)
1604
+ onClick: x[3] || (x[3] = (P) => u.value = !u.value)
1489
1605
  }, [
1490
- I(Q, {
1606
+ E(Y, {
1491
1607
  small: "",
1492
1608
  gray: ""
1493
1609
  }, {
1494
1610
  default: $(() => [
1495
- O(G(u.value ? "visibility_off" : "visibility"), 1)
1611
+ M(Z(u.value ? "visibility_off" : "visibility"), 1)
1496
1612
  ]),
1497
1613
  _: 1
1498
1614
  })
1499
- ])) : M("", !0),
1615
+ ])) : R("", !0),
1500
1616
  W(A.$slots, "suffix")
1501
1617
  ])
1502
1618
  ], 2)
1503
1619
  ]),
1504
1620
  _: 3
1505
1621
  }),
1506
- i("feedback") ? (b(), B("div", {
1622
+ i("feedback") ? (y(), S("div", {
1507
1623
  key: 0,
1508
- class: F(["yu-mt-1", [g.value]])
1624
+ class: F(["wu-mt-1", [g.value]])
1509
1625
  }, [
1510
1626
  W(A.$slots, "feedback")
1511
- ], 2)) : M("", !0)
1627
+ ], 2)) : R("", !0)
1512
1628
  ]),
1513
1629
  _: 3
1514
1630
  }, 8, ["class"]));
1515
1631
  }
1516
- }), ar = () => {
1517
- const { isLightHex: e, normalizeHex: t } = hn();
1632
+ }), pr = () => {
1633
+ const { isLightHex: e, normalizeHex: t } = gn();
1518
1634
  return {
1519
1635
  getOffset: (s, i) => {
1520
1636
  const a = `${i.x}px`, l = `${i.y}px`;
@@ -1550,87 +1666,88 @@ const Q = /* @__PURE__ */ Z({
1550
1666
  };
1551
1667
  }
1552
1668
  };
1553
- }, lr = /* @__PURE__ */ Z({
1669
+ }, fr = /* @__PURE__ */ q({
1554
1670
  __name: "app-widget",
1555
1671
  props: {
1556
1672
  workflow: {},
1557
1673
  config: {},
1558
1674
  fullscreen: { type: Boolean }
1559
1675
  },
1560
- emits: ["send-message", "edge-click", "submit", "close", "back", "open"],
1676
+ emits: ["send-message", "retry-loading-messages", "edge-click", "submit", "close", "back", "open"],
1561
1677
  setup(e, { emit: t }) {
1562
- const n = e, o = t, r = D(n.config.configurations.general.defaultBehavior === "active"), s = D(!r.value), { setWorkflow: i } = qe(), { getOffset: a, getPosition: l, getTone: u } = ar(), { appearanceStyle: h, themeClass: f } = mn(() => n.config.configurations.appearance), d = m(() => n.config.configurations.anchor), c = m(() => n.config.configurations.appearance), y = m(() => {
1678
+ const n = e, o = t, r = I(n.config.configurations.general.defaultBehavior === "active"), s = I(!r.value), { setWorkflow: i } = qe(), { getOffset: a, getPosition: l, getTone: u } = pr(), { appearanceStyle: m, themeClass: h } = vn(() => n.config.configurations.appearance), p = w(() => n.config.configurations.anchor), c = w(() => n.config.configurations.appearance), v = w(() => {
1563
1679
  if (!(r.value && n.fullscreen))
1564
- return a(d.value.position, d.value.offset);
1565
- }), v = m(() => l(d.value.position)), g = m(() => ({
1680
+ return a(p.value.position, p.value.offset);
1681
+ }), b = w(() => l(p.value.position)), g = w(() => ({
1566
1682
  workflow: n.workflow,
1567
1683
  config: n.config,
1568
1684
  fullscreen: n.fullscreen
1569
- })), p = m(() => ({
1685
+ })), d = w(() => ({
1570
1686
  style: u(c.value.primaryColor),
1571
- small: d.value.size === "small",
1572
- large: d.value.size === "large",
1573
- logo: d.value.logo ?? "",
1574
- label: d.value.label ?? ""
1575
- })), w = async () => {
1576
- r.value || (s.value = !1, await Ce(), r.value = !0, o("open"));
1577
- }, C = () => {
1687
+ small: p.value.size === "small",
1688
+ large: p.value.size === "large",
1689
+ logo: p.value.logo ?? "",
1690
+ label: p.value.label ?? ""
1691
+ })), f = async () => {
1692
+ r.value || (s.value = !1, await Ae(), r.value = !0, o("open"));
1693
+ }, k = () => {
1578
1694
  r.value && (r.value = !1, o("close"));
1579
- }, z = () => {
1695
+ }, L = () => {
1580
1696
  s.value = !0;
1581
1697
  };
1582
- return i(n.workflow), ye(
1698
+ return i(n.workflow), we(
1583
1699
  () => n.workflow,
1584
- (P) => i(P)
1585
- ), ye(
1700
+ (O) => i(O)
1701
+ ), we(
1586
1702
  () => n.config.configurations.general.defaultBehavior,
1587
- (P) => {
1588
- P === "active" ? w() : C();
1703
+ (O) => {
1704
+ O === "active" ? f() : k();
1589
1705
  }
1590
- ), (P, A) => (b(), B("div", {
1591
- class: F(["yu-fixed yunique yu-z-[99999]", [_(f), r.value && e.fullscreen ? "yu-inset-0" : ""]]),
1706
+ ), (O, A) => (y(), S("div", {
1707
+ class: F(["wu-fixed yunique wu-z-[99999]", [C(h), r.value && e.fullscreen ? "wu-inset-0" : ""]]),
1592
1708
  "data-testid": "app-widget",
1593
- style: ce([{ "--widget-origin": v.value }, y.value, _(h)])
1709
+ style: pe([{ "--widget-origin": b.value }, v.value, C(m)])
1594
1710
  }, [
1595
- I(an, {
1711
+ E(ln, {
1596
1712
  name: "widget",
1597
- onAfterLeave: z
1713
+ onAfterLeave: L
1598
1714
  }, {
1599
1715
  default: $(() => [
1600
- r.value ? (b(), R(vn, kt({ key: 0 }, g.value, {
1601
- onClose: C,
1716
+ r.value ? (y(), T(bn, _t({ key: 0 }, g.value, {
1717
+ onClose: k,
1602
1718
  onBack: A[0] || (A[0] = (x) => o("back")),
1603
1719
  onSubmit: A[1] || (A[1] = (x) => o("submit", x)),
1604
1720
  onEdgeClick: A[2] || (A[2] = (x) => o("edge-click", x)),
1605
- onSendMessage: A[3] || (A[3] = (x) => o("send-message", x))
1606
- }), null, 16)) : M("", !0)
1721
+ onSendMessage: A[3] || (A[3] = (x) => o("send-message", x)),
1722
+ onRetryLoadingMessages: A[4] || (A[4] = (x) => o("retry-loading-messages"))
1723
+ }), null, 16)) : R("", !0)
1607
1724
  ]),
1608
1725
  _: 1
1609
1726
  }),
1610
- s.value ? (b(), R(pn, {
1727
+ s.value ? (y(), T(fn, {
1611
1728
  key: 0,
1612
- style: ce(p.value.style),
1613
- small: p.value.small,
1614
- large: p.value.large,
1615
- logo: p.value.logo,
1616
- label: p.value.label,
1617
- onClick: w
1618
- }, null, 8, ["style", "small", "large", "logo", "label"])) : M("", !0)
1729
+ style: pe(d.value.style),
1730
+ small: d.value.small,
1731
+ large: d.value.large,
1732
+ logo: d.value.logo,
1733
+ label: d.value.label,
1734
+ onClick: f
1735
+ }, null, 8, ["style", "small", "large", "logo", "label"])) : R("", !0)
1619
1736
  ], 6));
1620
1737
  }
1621
- }), ur = /* @__PURE__ */ tt(lr, [["__scopeId", "data-v-5da01276"]]), cr = ["top", "right", "bottom", "left"], Lt = ["start", "end"], Mt = /* @__PURE__ */ cr.reduce((e, t) => e.concat(t, t + "-" + Lt[0], t + "-" + Lt[1]), []), Ne = Math.min, we = Math.max, dr = {
1738
+ }), hr = /* @__PURE__ */ tt(fr, [["__scopeId", "data-v-cabdae96"]]), wr = ["top", "right", "bottom", "left"], Mt = ["start", "end"], Rt = /* @__PURE__ */ wr.reduce((e, t) => e.concat(t, t + "-" + Mt[0], t + "-" + Mt[1]), []), Ie = Math.min, be = Math.max, mr = {
1622
1739
  left: "right",
1623
1740
  right: "left",
1624
1741
  bottom: "top",
1625
1742
  top: "bottom"
1626
- }, pr = {
1743
+ }, gr = {
1627
1744
  start: "end",
1628
1745
  end: "start"
1629
1746
  };
1630
- function mt(e, t, n) {
1631
- return we(e, Ne(t, n));
1747
+ function gt(e, t, n) {
1748
+ return be(e, Ie(t, n));
1632
1749
  }
1633
- function xe(e, t) {
1750
+ function $e(e, t) {
1634
1751
  return typeof e == "function" ? e(t) : e;
1635
1752
  }
1636
1753
  function ie(e) {
@@ -1639,22 +1756,22 @@ function ie(e) {
1639
1756
  function te(e) {
1640
1757
  return e.split("-")[1];
1641
1758
  }
1642
- function wn(e) {
1759
+ function xn(e) {
1643
1760
  return e === "x" ? "y" : "x";
1644
1761
  }
1645
- function _t(e) {
1762
+ function Ct(e) {
1646
1763
  return e === "y" ? "height" : "width";
1647
1764
  }
1648
- const fr = /* @__PURE__ */ new Set(["top", "bottom"]);
1765
+ const vr = /* @__PURE__ */ new Set(["top", "bottom"]);
1649
1766
  function ae(e) {
1650
- return fr.has(ie(e)) ? "y" : "x";
1767
+ return vr.has(ie(e)) ? "y" : "x";
1651
1768
  }
1652
- function Ct(e) {
1653
- return wn(ae(e));
1769
+ function At(e) {
1770
+ return xn(ae(e));
1654
1771
  }
1655
- function bn(e, t, n) {
1772
+ function $n(e, t, n) {
1656
1773
  n === void 0 && (n = !1);
1657
- const o = te(e), r = Ct(e), s = _t(r);
1774
+ const o = te(e), r = At(e), s = Ct(r);
1658
1775
  let i = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
1659
1776
  return t.reference[s] > t.floating[s] && (i = Ye(i)), [i, Ye(i)];
1660
1777
  }
@@ -1663,30 +1780,30 @@ function yr(e) {
1663
1780
  return [Xe(e), t, Xe(t)];
1664
1781
  }
1665
1782
  function Xe(e) {
1666
- return e.replace(/start|end/g, (t) => pr[t]);
1783
+ return e.replace(/start|end/g, (t) => gr[t]);
1667
1784
  }
1668
- const Rt = ["left", "right"], Ot = ["right", "left"], hr = ["top", "bottom"], mr = ["bottom", "top"];
1669
- function gr(e, t, n) {
1785
+ const Ot = ["left", "right"], Ht = ["right", "left"], br = ["top", "bottom"], xr = ["bottom", "top"];
1786
+ function $r(e, t, n) {
1670
1787
  switch (e) {
1671
1788
  case "top":
1672
1789
  case "bottom":
1673
- return n ? t ? Ot : Rt : t ? Rt : Ot;
1790
+ return n ? t ? Ht : Ot : t ? Ot : Ht;
1674
1791
  case "left":
1675
1792
  case "right":
1676
- return t ? hr : mr;
1793
+ return t ? br : xr;
1677
1794
  default:
1678
1795
  return [];
1679
1796
  }
1680
1797
  }
1681
- function vr(e, t, n, o) {
1798
+ function kr(e, t, n, o) {
1682
1799
  const r = te(e);
1683
- let s = gr(ie(e), n === "start", o);
1800
+ let s = $r(ie(e), n === "start", o);
1684
1801
  return r && (s = s.map((i) => i + "-" + r), t && (s = s.concat(s.map(Xe)))), s;
1685
1802
  }
1686
1803
  function Ye(e) {
1687
- return e.replace(/left|right|bottom|top/g, (t) => dr[t]);
1804
+ return e.replace(/left|right|bottom|top/g, (t) => mr[t]);
1688
1805
  }
1689
- function wr(e) {
1806
+ function _r(e) {
1690
1807
  return {
1691
1808
  top: 0,
1692
1809
  right: 0,
@@ -1695,15 +1812,15 @@ function wr(e) {
1695
1812
  ...e
1696
1813
  };
1697
1814
  }
1698
- function xn(e) {
1699
- return typeof e != "number" ? wr(e) : {
1815
+ function kn(e) {
1816
+ return typeof e != "number" ? _r(e) : {
1700
1817
  top: e,
1701
1818
  right: e,
1702
1819
  bottom: e,
1703
1820
  left: e
1704
1821
  };
1705
1822
  }
1706
- function Oe(e) {
1823
+ function He(e) {
1707
1824
  const {
1708
1825
  x: t,
1709
1826
  y: n,
@@ -1721,36 +1838,36 @@ function Oe(e) {
1721
1838
  y: n
1722
1839
  };
1723
1840
  }
1724
- function Ht(e, t, n) {
1841
+ function zt(e, t, n) {
1725
1842
  let {
1726
1843
  reference: o,
1727
1844
  floating: r
1728
1845
  } = e;
1729
- const s = ae(t), i = Ct(t), a = _t(i), l = ie(t), u = s === "y", h = o.x + o.width / 2 - r.width / 2, f = o.y + o.height / 2 - r.height / 2, d = o[a] / 2 - r[a] / 2;
1846
+ const s = ae(t), i = At(t), a = Ct(i), l = ie(t), u = s === "y", m = o.x + o.width / 2 - r.width / 2, h = o.y + o.height / 2 - r.height / 2, p = o[a] / 2 - r[a] / 2;
1730
1847
  let c;
1731
1848
  switch (l) {
1732
1849
  case "top":
1733
1850
  c = {
1734
- x: h,
1851
+ x: m,
1735
1852
  y: o.y - r.height
1736
1853
  };
1737
1854
  break;
1738
1855
  case "bottom":
1739
1856
  c = {
1740
- x: h,
1857
+ x: m,
1741
1858
  y: o.y + o.height
1742
1859
  };
1743
1860
  break;
1744
1861
  case "right":
1745
1862
  c = {
1746
1863
  x: o.x + o.width,
1747
- y: f
1864
+ y: h
1748
1865
  };
1749
1866
  break;
1750
1867
  case "left":
1751
1868
  c = {
1752
1869
  x: o.x - r.width,
1753
- y: f
1870
+ y: h
1754
1871
  };
1755
1872
  break;
1756
1873
  default:
@@ -1761,15 +1878,15 @@ function Ht(e, t, n) {
1761
1878
  }
1762
1879
  switch (te(t)) {
1763
1880
  case "start":
1764
- c[i] -= d * (n && u ? -1 : 1);
1881
+ c[i] -= p * (n && u ? -1 : 1);
1765
1882
  break;
1766
1883
  case "end":
1767
- c[i] += d * (n && u ? -1 : 1);
1884
+ c[i] += p * (n && u ? -1 : 1);
1768
1885
  break;
1769
1886
  }
1770
1887
  return c;
1771
1888
  }
1772
- const br = async (e, t, n) => {
1889
+ const Cr = async (e, t, n) => {
1773
1890
  const {
1774
1891
  placement: o = "bottom",
1775
1892
  strategy: r = "absolute",
@@ -1781,23 +1898,23 @@ const br = async (e, t, n) => {
1781
1898
  floating: t,
1782
1899
  strategy: r
1783
1900
  }), {
1784
- x: h,
1785
- y: f
1786
- } = Ht(u, o, l), d = o, c = {}, y = 0;
1787
- for (let v = 0; v < a.length; v++) {
1901
+ x: m,
1902
+ y: h
1903
+ } = zt(u, o, l), p = o, c = {}, v = 0;
1904
+ for (let b = 0; b < a.length; b++) {
1788
1905
  const {
1789
1906
  name: g,
1790
- fn: p
1791
- } = a[v], {
1792
- x: w,
1793
- y: C,
1794
- data: z,
1795
- reset: P
1796
- } = await p({
1797
- x: h,
1798
- y: f,
1907
+ fn: d
1908
+ } = a[b], {
1909
+ x: f,
1910
+ y: k,
1911
+ data: L,
1912
+ reset: O
1913
+ } = await d({
1914
+ x: m,
1915
+ y: h,
1799
1916
  initialPlacement: o,
1800
- placement: d,
1917
+ placement: p,
1801
1918
  strategy: r,
1802
1919
  middlewareData: c,
1803
1920
  rects: u,
@@ -1807,25 +1924,25 @@ const br = async (e, t, n) => {
1807
1924
  floating: t
1808
1925
  }
1809
1926
  });
1810
- h = w ?? h, f = C ?? f, c = {
1927
+ m = f ?? m, h = k ?? h, c = {
1811
1928
  ...c,
1812
1929
  [g]: {
1813
1930
  ...c[g],
1814
- ...z
1931
+ ...L
1815
1932
  }
1816
- }, P && y <= 50 && (y++, typeof P == "object" && (P.placement && (d = P.placement), P.rects && (u = P.rects === !0 ? await i.getElementRects({
1933
+ }, O && v <= 50 && (v++, typeof O == "object" && (O.placement && (p = O.placement), O.rects && (u = O.rects === !0 ? await i.getElementRects({
1817
1934
  reference: e,
1818
1935
  floating: t,
1819
1936
  strategy: r
1820
- }) : P.rects), {
1821
- x: h,
1822
- y: f
1823
- } = Ht(u, d, l)), v = -1);
1937
+ }) : O.rects), {
1938
+ x: m,
1939
+ y: h
1940
+ } = zt(u, p, l)), b = -1);
1824
1941
  }
1825
1942
  return {
1826
- x: h,
1827
- y: f,
1828
- placement: d,
1943
+ x: m,
1944
+ y: h,
1945
+ placement: p,
1829
1946
  strategy: r,
1830
1947
  middlewareData: c
1831
1948
  };
@@ -1842,40 +1959,40 @@ async function nt(e, t) {
1842
1959
  strategy: l
1843
1960
  } = e, {
1844
1961
  boundary: u = "clippingAncestors",
1845
- rootBoundary: h = "viewport",
1846
- elementContext: f = "floating",
1847
- altBoundary: d = !1,
1962
+ rootBoundary: m = "viewport",
1963
+ elementContext: h = "floating",
1964
+ altBoundary: p = !1,
1848
1965
  padding: c = 0
1849
- } = xe(t, e), y = xn(c), g = a[d ? f === "floating" ? "reference" : "floating" : f], p = Oe(await s.getClippingRect({
1966
+ } = $e(t, e), v = kn(c), g = a[p ? h === "floating" ? "reference" : "floating" : h], d = He(await s.getClippingRect({
1850
1967
  element: (n = await (s.isElement == null ? void 0 : s.isElement(g))) == null || n ? g : g.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(a.floating)),
1851
1968
  boundary: u,
1852
- rootBoundary: h,
1969
+ rootBoundary: m,
1853
1970
  strategy: l
1854
- })), w = f === "floating" ? {
1971
+ })), f = h === "floating" ? {
1855
1972
  x: o,
1856
1973
  y: r,
1857
1974
  width: i.floating.width,
1858
1975
  height: i.floating.height
1859
- } : i.reference, C = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a.floating)), z = await (s.isElement == null ? void 0 : s.isElement(C)) ? await (s.getScale == null ? void 0 : s.getScale(C)) || {
1976
+ } : i.reference, k = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a.floating)), L = await (s.isElement == null ? void 0 : s.isElement(k)) ? await (s.getScale == null ? void 0 : s.getScale(k)) || {
1860
1977
  x: 1,
1861
1978
  y: 1
1862
1979
  } : {
1863
1980
  x: 1,
1864
1981
  y: 1
1865
- }, P = Oe(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
1982
+ }, O = He(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
1866
1983
  elements: a,
1867
- rect: w,
1868
- offsetParent: C,
1984
+ rect: f,
1985
+ offsetParent: k,
1869
1986
  strategy: l
1870
- }) : w);
1987
+ }) : f);
1871
1988
  return {
1872
- top: (p.top - P.top + y.top) / z.y,
1873
- bottom: (P.bottom - p.bottom + y.bottom) / z.y,
1874
- left: (p.left - P.left + y.left) / z.x,
1875
- right: (P.right - p.right + y.right) / z.x
1989
+ top: (d.top - O.top + v.top) / L.y,
1990
+ bottom: (O.bottom - d.bottom + v.bottom) / L.y,
1991
+ left: (d.left - O.left + v.left) / L.x,
1992
+ right: (O.right - d.right + v.right) / L.x
1876
1993
  };
1877
1994
  }
1878
- const xr = (e) => ({
1995
+ const Ar = (e) => ({
1879
1996
  name: "arrow",
1880
1997
  options: e,
1881
1998
  async fn(t) {
@@ -1889,22 +2006,22 @@ const xr = (e) => ({
1889
2006
  middlewareData: l
1890
2007
  } = t, {
1891
2008
  element: u,
1892
- padding: h = 0
1893
- } = xe(e, t) || {};
2009
+ padding: m = 0
2010
+ } = $e(e, t) || {};
1894
2011
  if (u == null)
1895
2012
  return {};
1896
- const f = xn(h), d = {
2013
+ const h = kn(m), p = {
1897
2014
  x: n,
1898
2015
  y: o
1899
- }, c = Ct(r), y = _t(c), v = await i.getDimensions(u), g = c === "y", p = g ? "top" : "left", w = g ? "bottom" : "right", C = g ? "clientHeight" : "clientWidth", z = s.reference[y] + s.reference[c] - d[c] - s.floating[y], P = d[c] - s.reference[c], A = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
1900
- let x = A ? A[C] : 0;
1901
- (!x || !await (i.isElement == null ? void 0 : i.isElement(A))) && (x = a.floating[C] || s.floating[y]);
1902
- const T = z / 2 - P / 2, N = x / 2 - v[y] / 2 - 1, H = Ne(f[p], N), q = Ne(f[w], N), k = H, E = x - v[y] - q, j = x / 2 - v[y] / 2 + T, Y = mt(k, j, E), U = !l.arrow && te(r) != null && j !== Y && s.reference[y] / 2 - (j < k ? H : q) - v[y] / 2 < 0, X = U ? j < k ? j - k : j - E : 0;
2016
+ }, c = At(r), v = Ct(c), b = await i.getDimensions(u), g = c === "y", d = g ? "top" : "left", f = g ? "bottom" : "right", k = g ? "clientHeight" : "clientWidth", L = s.reference[v] + s.reference[c] - p[c] - s.floating[v], O = p[c] - s.reference[c], A = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
2017
+ let x = A ? A[k] : 0;
2018
+ (!x || !await (i.isElement == null ? void 0 : i.isElement(A))) && (x = a.floating[k] || s.floating[v]);
2019
+ const P = L / 2 - O / 2, D = x / 2 - b[v] / 2 - 1, z = Ie(h[d], D), G = Ie(h[f], D), _ = z, N = x - b[v] - G, V = x / 2 - b[v] / 2 + P, K = gt(_, V, N), U = !l.arrow && te(r) != null && V !== K && s.reference[v] / 2 - (V < _ ? z : G) - b[v] / 2 < 0, X = U ? V < _ ? V - _ : V - N : 0;
1903
2020
  return {
1904
- [c]: d[c] + X,
2021
+ [c]: p[c] + X,
1905
2022
  data: {
1906
- [c]: Y,
1907
- centerOffset: j - Y - X,
2023
+ [c]: K,
2024
+ centerOffset: V - K - X,
1908
2025
  ...U && {
1909
2026
  alignmentOffset: X
1910
2027
  }
@@ -1913,10 +2030,10 @@ const xr = (e) => ({
1913
2030
  };
1914
2031
  }
1915
2032
  });
1916
- function $r(e, t, n) {
2033
+ function Sr(e, t, n) {
1917
2034
  return (e ? [...n.filter((r) => te(r) === e), ...n.filter((r) => te(r) !== e)] : n.filter((r) => ie(r) === r)).filter((r) => e ? te(r) === e || (t ? Xe(r) !== r : !1) : !0);
1918
2035
  }
1919
- const kr = function(e) {
2036
+ const Br = function(e) {
1920
2037
  return e === void 0 && (e = {}), {
1921
2038
  name: "autoPlacement",
1922
2039
  options: e,
@@ -1929,62 +2046,62 @@ const kr = function(e) {
1929
2046
  platform: l,
1930
2047
  elements: u
1931
2048
  } = t, {
1932
- crossAxis: h = !1,
1933
- alignment: f,
1934
- allowedPlacements: d = Mt,
2049
+ crossAxis: m = !1,
2050
+ alignment: h,
2051
+ allowedPlacements: p = Rt,
1935
2052
  autoAlignment: c = !0,
1936
- ...y
1937
- } = xe(e, t), v = f !== void 0 || d === Mt ? $r(f || null, c, d) : d, g = await nt(t, y), p = ((n = i.autoPlacement) == null ? void 0 : n.index) || 0, w = v[p];
1938
- if (w == null)
2053
+ ...v
2054
+ } = $e(e, t), b = h !== void 0 || p === Rt ? Sr(h || null, c, p) : p, g = await nt(t, v), d = ((n = i.autoPlacement) == null ? void 0 : n.index) || 0, f = b[d];
2055
+ if (f == null)
1939
2056
  return {};
1940
- const C = bn(w, s, await (l.isRTL == null ? void 0 : l.isRTL(u.floating)));
1941
- if (a !== w)
2057
+ const k = $n(f, s, await (l.isRTL == null ? void 0 : l.isRTL(u.floating)));
2058
+ if (a !== f)
1942
2059
  return {
1943
2060
  reset: {
1944
- placement: v[0]
2061
+ placement: b[0]
1945
2062
  }
1946
2063
  };
1947
- const z = [g[ie(w)], g[C[0]], g[C[1]]], P = [...((o = i.autoPlacement) == null ? void 0 : o.overflows) || [], {
1948
- placement: w,
1949
- overflows: z
1950
- }], A = v[p + 1];
2064
+ const L = [g[ie(f)], g[k[0]], g[k[1]]], O = [...((o = i.autoPlacement) == null ? void 0 : o.overflows) || [], {
2065
+ placement: f,
2066
+ overflows: L
2067
+ }], A = b[d + 1];
1951
2068
  if (A)
1952
2069
  return {
1953
2070
  data: {
1954
- index: p + 1,
1955
- overflows: P
2071
+ index: d + 1,
2072
+ overflows: O
1956
2073
  },
1957
2074
  reset: {
1958
2075
  placement: A
1959
2076
  }
1960
2077
  };
1961
- const x = P.map((H) => {
1962
- const q = te(H.placement);
1963
- return [H.placement, q && h ? (
2078
+ const x = O.map((z) => {
2079
+ const G = te(z.placement);
2080
+ return [z.placement, G && m ? (
1964
2081
  // Check along the mainAxis and main crossAxis side.
1965
- H.overflows.slice(0, 2).reduce((k, E) => k + E, 0)
2082
+ z.overflows.slice(0, 2).reduce((_, N) => _ + N, 0)
1966
2083
  ) : (
1967
2084
  // Check only the mainAxis.
1968
- H.overflows[0]
1969
- ), H.overflows];
1970
- }).sort((H, q) => H[1] - q[1]), N = ((r = x.filter((H) => H[2].slice(
2085
+ z.overflows[0]
2086
+ ), z.overflows];
2087
+ }).sort((z, G) => z[1] - G[1]), D = ((r = x.filter((z) => z[2].slice(
1971
2088
  0,
1972
2089
  // Aligned placements should not check their opposite crossAxis
1973
2090
  // side.
1974
- te(H[0]) ? 2 : 3
1975
- ).every((q) => q <= 0))[0]) == null ? void 0 : r[0]) || x[0][0];
1976
- return N !== a ? {
2091
+ te(z[0]) ? 2 : 3
2092
+ ).every((G) => G <= 0))[0]) == null ? void 0 : r[0]) || x[0][0];
2093
+ return D !== a ? {
1977
2094
  data: {
1978
- index: p + 1,
1979
- overflows: P
2095
+ index: d + 1,
2096
+ overflows: O
1980
2097
  },
1981
2098
  reset: {
1982
- placement: N
2099
+ placement: D
1983
2100
  }
1984
2101
  } : {};
1985
2102
  }
1986
2103
  };
1987
- }, _r = function(e) {
2104
+ }, Tr = function(e) {
1988
2105
  return e === void 0 && (e = {}), {
1989
2106
  name: "flip",
1990
2107
  options: e,
@@ -1998,56 +2115,56 @@ const kr = function(e) {
1998
2115
  platform: l,
1999
2116
  elements: u
2000
2117
  } = t, {
2001
- mainAxis: h = !0,
2002
- crossAxis: f = !0,
2003
- fallbackPlacements: d,
2118
+ mainAxis: m = !0,
2119
+ crossAxis: h = !0,
2120
+ fallbackPlacements: p,
2004
2121
  fallbackStrategy: c = "bestFit",
2005
- fallbackAxisSideDirection: y = "none",
2006
- flipAlignment: v = !0,
2122
+ fallbackAxisSideDirection: v = "none",
2123
+ flipAlignment: b = !0,
2007
2124
  ...g
2008
- } = xe(e, t);
2125
+ } = $e(e, t);
2009
2126
  if ((n = s.arrow) != null && n.alignmentOffset)
2010
2127
  return {};
2011
- const p = ie(r), w = ae(a), C = ie(a) === a, z = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), P = d || (C || !v ? [Ye(a)] : yr(a)), A = y !== "none";
2012
- !d && A && P.push(...vr(a, v, y, z));
2013
- const x = [a, ...P], T = await nt(t, g), N = [];
2014
- let H = ((o = s.flip) == null ? void 0 : o.overflows) || [];
2015
- if (h && N.push(T[p]), f) {
2016
- const j = bn(r, i, z);
2017
- N.push(T[j[0]], T[j[1]]);
2128
+ const d = ie(r), f = ae(a), k = ie(a) === a, L = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), O = p || (k || !b ? [Ye(a)] : yr(a)), A = v !== "none";
2129
+ !p && A && O.push(...kr(a, b, v, L));
2130
+ const x = [a, ...O], P = await nt(t, g), D = [];
2131
+ let z = ((o = s.flip) == null ? void 0 : o.overflows) || [];
2132
+ if (m && D.push(P[d]), h) {
2133
+ const V = $n(r, i, L);
2134
+ D.push(P[V[0]], P[V[1]]);
2018
2135
  }
2019
- if (H = [...H, {
2136
+ if (z = [...z, {
2020
2137
  placement: r,
2021
- overflows: N
2022
- }], !N.every((j) => j <= 0)) {
2023
- var q, k;
2024
- const j = (((q = s.flip) == null ? void 0 : q.index) || 0) + 1, Y = x[j];
2025
- if (Y && (!(f === "alignment" ? w !== ae(Y) : !1) || // We leave the current main axis only if every placement on that axis
2138
+ overflows: D
2139
+ }], !D.every((V) => V <= 0)) {
2140
+ var G, _;
2141
+ const V = (((G = s.flip) == null ? void 0 : G.index) || 0) + 1, K = x[V];
2142
+ if (K && (!(h === "alignment" ? f !== ae(K) : !1) || // We leave the current main axis only if every placement on that axis
2026
2143
  // overflows the main axis.
2027
- H.every((K) => ae(K.placement) === w ? K.overflows[0] > 0 : !0)))
2144
+ z.every((Q) => ae(Q.placement) === f ? Q.overflows[0] > 0 : !0)))
2028
2145
  return {
2029
2146
  data: {
2030
- index: j,
2031
- overflows: H
2147
+ index: V,
2148
+ overflows: z
2032
2149
  },
2033
2150
  reset: {
2034
- placement: Y
2151
+ placement: K
2035
2152
  }
2036
2153
  };
2037
- let U = (k = H.filter((X) => X.overflows[0] <= 0).sort((X, K) => X.overflows[1] - K.overflows[1])[0]) == null ? void 0 : k.placement;
2154
+ let U = (_ = z.filter((X) => X.overflows[0] <= 0).sort((X, Q) => X.overflows[1] - Q.overflows[1])[0]) == null ? void 0 : _.placement;
2038
2155
  if (!U)
2039
2156
  switch (c) {
2040
2157
  case "bestFit": {
2041
- var E;
2042
- const X = (E = H.filter((K) => {
2158
+ var N;
2159
+ const X = (N = z.filter((Q) => {
2043
2160
  if (A) {
2044
- const oe = ae(K.placement);
2045
- return oe === w || // Create a bias to the `y` side axis due to horizontal
2161
+ const oe = ae(Q.placement);
2162
+ return oe === f || // Create a bias to the `y` side axis due to horizontal
2046
2163
  // reading directions favoring greater width.
2047
2164
  oe === "y";
2048
2165
  }
2049
2166
  return !0;
2050
- }).map((K) => [K.placement, K.overflows.filter((oe) => oe > 0).reduce((oe, Wn) => oe + Wn, 0)]).sort((K, oe) => K[1] - oe[1])[0]) == null ? void 0 : E[0];
2167
+ }).map((Q) => [Q.placement, Q.overflows.filter((oe) => oe > 0).reduce((oe, Gn) => oe + Gn, 0)]).sort((Q, oe) => Q[1] - oe[1])[0]) == null ? void 0 : N[0];
2051
2168
  X && (U = X);
2052
2169
  break;
2053
2170
  }
@@ -2065,35 +2182,35 @@ const kr = function(e) {
2065
2182
  return {};
2066
2183
  }
2067
2184
  };
2068
- }, Cr = /* @__PURE__ */ new Set(["left", "top"]);
2069
- async function Ar(e, t) {
2185
+ }, Pr = /* @__PURE__ */ new Set(["left", "top"]);
2186
+ async function Lr(e, t) {
2070
2187
  const {
2071
2188
  placement: n,
2072
2189
  platform: o,
2073
2190
  elements: r
2074
- } = e, s = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), i = ie(n), a = te(n), l = ae(n) === "y", u = Cr.has(i) ? -1 : 1, h = s && l ? -1 : 1, f = xe(t, e);
2191
+ } = e, s = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), i = ie(n), a = te(n), l = ae(n) === "y", u = Pr.has(i) ? -1 : 1, m = s && l ? -1 : 1, h = $e(t, e);
2075
2192
  let {
2076
- mainAxis: d,
2193
+ mainAxis: p,
2077
2194
  crossAxis: c,
2078
- alignmentAxis: y
2079
- } = typeof f == "number" ? {
2080
- mainAxis: f,
2195
+ alignmentAxis: v
2196
+ } = typeof h == "number" ? {
2197
+ mainAxis: h,
2081
2198
  crossAxis: 0,
2082
2199
  alignmentAxis: null
2083
2200
  } : {
2084
- mainAxis: f.mainAxis || 0,
2085
- crossAxis: f.crossAxis || 0,
2086
- alignmentAxis: f.alignmentAxis
2201
+ mainAxis: h.mainAxis || 0,
2202
+ crossAxis: h.crossAxis || 0,
2203
+ alignmentAxis: h.alignmentAxis
2087
2204
  };
2088
- return a && typeof y == "number" && (c = a === "end" ? y * -1 : y), l ? {
2089
- x: c * h,
2090
- y: d * u
2205
+ return a && typeof v == "number" && (c = a === "end" ? v * -1 : v), l ? {
2206
+ x: c * m,
2207
+ y: p * u
2091
2208
  } : {
2092
- x: d * u,
2093
- y: c * h
2209
+ x: p * u,
2210
+ y: c * m
2094
2211
  };
2095
2212
  }
2096
- const Sr = function(e) {
2213
+ const Mr = function(e) {
2097
2214
  return e === void 0 && (e = 0), {
2098
2215
  name: "offset",
2099
2216
  options: e,
@@ -2104,7 +2221,7 @@ const Sr = function(e) {
2104
2221
  y: s,
2105
2222
  placement: i,
2106
2223
  middlewareData: a
2107
- } = t, l = await Ar(t, e);
2224
+ } = t, l = await Lr(t, e);
2108
2225
  return i === ((n = a.offset) == null ? void 0 : n.placement) && (o = a.arrow) != null && o.alignmentOffset ? {} : {
2109
2226
  x: r + l.x,
2110
2227
  y: s + l.y,
@@ -2115,7 +2232,7 @@ const Sr = function(e) {
2115
2232
  };
2116
2233
  }
2117
2234
  };
2118
- }, Br = function(e) {
2235
+ }, Rr = function(e) {
2119
2236
  return e === void 0 && (e = {}), {
2120
2237
  name: "shift",
2121
2238
  options: e,
@@ -2130,48 +2247,48 @@ const Sr = function(e) {
2130
2247
  limiter: a = {
2131
2248
  fn: (g) => {
2132
2249
  let {
2133
- x: p,
2134
- y: w
2250
+ x: d,
2251
+ y: f
2135
2252
  } = g;
2136
2253
  return {
2137
- x: p,
2138
- y: w
2254
+ x: d,
2255
+ y: f
2139
2256
  };
2140
2257
  }
2141
2258
  },
2142
2259
  ...l
2143
- } = xe(e, t), u = {
2260
+ } = $e(e, t), u = {
2144
2261
  x: n,
2145
2262
  y: o
2146
- }, h = await nt(t, l), f = ae(ie(r)), d = wn(f);
2147
- let c = u[d], y = u[f];
2263
+ }, m = await nt(t, l), h = ae(ie(r)), p = xn(h);
2264
+ let c = u[p], v = u[h];
2148
2265
  if (s) {
2149
- const g = d === "y" ? "top" : "left", p = d === "y" ? "bottom" : "right", w = c + h[g], C = c - h[p];
2150
- c = mt(w, c, C);
2266
+ const g = p === "y" ? "top" : "left", d = p === "y" ? "bottom" : "right", f = c + m[g], k = c - m[d];
2267
+ c = gt(f, c, k);
2151
2268
  }
2152
2269
  if (i) {
2153
- const g = f === "y" ? "top" : "left", p = f === "y" ? "bottom" : "right", w = y + h[g], C = y - h[p];
2154
- y = mt(w, y, C);
2270
+ const g = h === "y" ? "top" : "left", d = h === "y" ? "bottom" : "right", f = v + m[g], k = v - m[d];
2271
+ v = gt(f, v, k);
2155
2272
  }
2156
- const v = a.fn({
2273
+ const b = a.fn({
2157
2274
  ...t,
2158
- [d]: c,
2159
- [f]: y
2275
+ [p]: c,
2276
+ [h]: v
2160
2277
  });
2161
2278
  return {
2162
- ...v,
2279
+ ...b,
2163
2280
  data: {
2164
- x: v.x - n,
2165
- y: v.y - o,
2281
+ x: b.x - n,
2282
+ y: b.y - o,
2166
2283
  enabled: {
2167
- [d]: s,
2168
- [f]: i
2284
+ [p]: s,
2285
+ [h]: i
2169
2286
  }
2170
2287
  }
2171
2288
  };
2172
2289
  }
2173
2290
  };
2174
- }, Tr = function(e) {
2291
+ }, Or = function(e) {
2175
2292
  return e === void 0 && (e = {}), {
2176
2293
  name: "size",
2177
2294
  options: e,
@@ -2186,25 +2303,25 @@ const Sr = function(e) {
2186
2303
  apply: l = () => {
2187
2304
  },
2188
2305
  ...u
2189
- } = xe(e, t), h = await nt(t, u), f = ie(r), d = te(r), c = ae(r) === "y", {
2190
- width: y,
2191
- height: v
2306
+ } = $e(e, t), m = await nt(t, u), h = ie(r), p = te(r), c = ae(r) === "y", {
2307
+ width: v,
2308
+ height: b
2192
2309
  } = s.floating;
2193
- let g, p;
2194
- f === "top" || f === "bottom" ? (g = f, p = d === (await (i.isRTL == null ? void 0 : i.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (p = f, g = d === "end" ? "top" : "bottom");
2195
- const w = v - h.top - h.bottom, C = y - h.left - h.right, z = Ne(v - h[g], w), P = Ne(y - h[p], C), A = !t.middlewareData.shift;
2196
- let x = z, T = P;
2197
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (T = C), (o = t.middlewareData.shift) != null && o.enabled.y && (x = w), A && !d) {
2198
- const H = we(h.left, 0), q = we(h.right, 0), k = we(h.top, 0), E = we(h.bottom, 0);
2199
- c ? T = y - 2 * (H !== 0 || q !== 0 ? H + q : we(h.left, h.right)) : x = v - 2 * (k !== 0 || E !== 0 ? k + E : we(h.top, h.bottom));
2310
+ let g, d;
2311
+ h === "top" || h === "bottom" ? (g = h, d = p === (await (i.isRTL == null ? void 0 : i.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (d = h, g = p === "end" ? "top" : "bottom");
2312
+ const f = b - m.top - m.bottom, k = v - m.left - m.right, L = Ie(b - m[g], f), O = Ie(v - m[d], k), A = !t.middlewareData.shift;
2313
+ let x = L, P = O;
2314
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (P = k), (o = t.middlewareData.shift) != null && o.enabled.y && (x = f), A && !p) {
2315
+ const z = be(m.left, 0), G = be(m.right, 0), _ = be(m.top, 0), N = be(m.bottom, 0);
2316
+ c ? P = v - 2 * (z !== 0 || G !== 0 ? z + G : be(m.left, m.right)) : x = b - 2 * (_ !== 0 || N !== 0 ? _ + N : be(m.top, m.bottom));
2200
2317
  }
2201
2318
  await l({
2202
2319
  ...t,
2203
- availableWidth: T,
2320
+ availableWidth: P,
2204
2321
  availableHeight: x
2205
2322
  });
2206
- const N = await i.getDimensions(a.floating);
2207
- return y !== N.width || v !== N.height ? {
2323
+ const D = await i.getDimensions(a.floating);
2324
+ return v !== D.width || b !== D.height ? {
2208
2325
  reset: {
2209
2326
  rects: !0
2210
2327
  }
@@ -2219,18 +2336,18 @@ function J(e) {
2219
2336
  function re(e) {
2220
2337
  return J(e).getComputedStyle(e);
2221
2338
  }
2222
- const zt = Math.min, He = Math.max, Ke = Math.round;
2223
- function $n(e) {
2339
+ const Et = Math.min, ze = Math.max, Ke = Math.round;
2340
+ function _n(e) {
2224
2341
  const t = re(e);
2225
2342
  let n = parseFloat(t.width), o = parseFloat(t.height);
2226
2343
  const r = e.offsetWidth, s = e.offsetHeight, i = Ke(n) !== r || Ke(o) !== s;
2227
2344
  return i && (n = r, o = s), { width: n, height: o, fallback: i };
2228
2345
  }
2229
- function me(e) {
2230
- return _n(e) ? (e.nodeName || "").toLowerCase() : "";
2346
+ function ge(e) {
2347
+ return An(e) ? (e.nodeName || "").toLowerCase() : "";
2231
2348
  }
2232
2349
  let Ge;
2233
- function kn() {
2350
+ function Cn() {
2234
2351
  if (Ge) return Ge;
2235
2352
  const e = navigator.userAgentData;
2236
2353
  return e && Array.isArray(e.brands) ? (Ge = e.brands.map(((t) => t.brand + "/" + t.version)).join(" "), Ge) : navigator.userAgent;
@@ -2238,176 +2355,176 @@ function kn() {
2238
2355
  function se(e) {
2239
2356
  return e instanceof J(e).HTMLElement;
2240
2357
  }
2241
- function pe(e) {
2358
+ function fe(e) {
2242
2359
  return e instanceof J(e).Element;
2243
2360
  }
2244
- function _n(e) {
2361
+ function An(e) {
2245
2362
  return e instanceof J(e).Node;
2246
2363
  }
2247
- function Et(e) {
2364
+ function Ft(e) {
2248
2365
  return typeof ShadowRoot > "u" ? !1 : e instanceof J(e).ShadowRoot || e instanceof ShadowRoot;
2249
2366
  }
2250
2367
  function ot(e) {
2251
2368
  const { overflow: t, overflowX: n, overflowY: o, display: r } = re(e);
2252
2369
  return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !["inline", "contents"].includes(r);
2253
2370
  }
2254
- function Pr(e) {
2255
- return ["table", "td", "th"].includes(me(e));
2371
+ function Hr(e) {
2372
+ return ["table", "td", "th"].includes(ge(e));
2256
2373
  }
2257
- function gt(e) {
2258
- const t = /firefox/i.test(kn()), n = re(e), o = n.backdropFilter || n.WebkitBackdropFilter;
2374
+ function vt(e) {
2375
+ const t = /firefox/i.test(Cn()), n = re(e), o = n.backdropFilter || n.WebkitBackdropFilter;
2259
2376
  return n.transform !== "none" || n.perspective !== "none" || !!o && o !== "none" || t && n.willChange === "filter" || t && !!n.filter && n.filter !== "none" || ["transform", "perspective"].some(((r) => n.willChange.includes(r))) || ["paint", "layout", "strict", "content"].some(((r) => {
2260
2377
  const s = n.contain;
2261
2378
  return s != null && s.includes(r);
2262
2379
  }));
2263
2380
  }
2264
- function Cn() {
2265
- return !/^((?!chrome|android).)*safari/i.test(kn());
2381
+ function Sn() {
2382
+ return !/^((?!chrome|android).)*safari/i.test(Cn());
2266
2383
  }
2267
- function At(e) {
2268
- return ["html", "body", "#document"].includes(me(e));
2384
+ function St(e) {
2385
+ return ["html", "body", "#document"].includes(ge(e));
2269
2386
  }
2270
- function An(e) {
2271
- return pe(e) ? e : e.contextElement;
2387
+ function Bn(e) {
2388
+ return fe(e) ? e : e.contextElement;
2272
2389
  }
2273
- const Sn = { x: 1, y: 1 };
2274
- function _e(e) {
2275
- const t = An(e);
2276
- if (!se(t)) return Sn;
2277
- const n = t.getBoundingClientRect(), { width: o, height: r, fallback: s } = $n(t);
2390
+ const Tn = { x: 1, y: 1 };
2391
+ function Ce(e) {
2392
+ const t = Bn(e);
2393
+ if (!se(t)) return Tn;
2394
+ const n = t.getBoundingClientRect(), { width: o, height: r, fallback: s } = _n(t);
2278
2395
  let i = (s ? Ke(n.width) : n.width) / o, a = (s ? Ke(n.height) : n.height) / r;
2279
2396
  return i && Number.isFinite(i) || (i = 1), a && Number.isFinite(a) || (a = 1), { x: i, y: a };
2280
2397
  }
2281
- function Ie(e, t, n, o) {
2398
+ function De(e, t, n, o) {
2282
2399
  var r, s;
2283
2400
  t === void 0 && (t = !1), n === void 0 && (n = !1);
2284
- const i = e.getBoundingClientRect(), a = An(e);
2285
- let l = Sn;
2286
- t && (o ? pe(o) && (l = _e(o)) : l = _e(e));
2287
- const u = a ? J(a) : window, h = !Cn() && n;
2288
- let f = (i.left + (h && ((r = u.visualViewport) == null ? void 0 : r.offsetLeft) || 0)) / l.x, d = (i.top + (h && ((s = u.visualViewport) == null ? void 0 : s.offsetTop) || 0)) / l.y, c = i.width / l.x, y = i.height / l.y;
2401
+ const i = e.getBoundingClientRect(), a = Bn(e);
2402
+ let l = Tn;
2403
+ t && (o ? fe(o) && (l = Ce(o)) : l = Ce(e));
2404
+ const u = a ? J(a) : window, m = !Sn() && n;
2405
+ let h = (i.left + (m && ((r = u.visualViewport) == null ? void 0 : r.offsetLeft) || 0)) / l.x, p = (i.top + (m && ((s = u.visualViewport) == null ? void 0 : s.offsetTop) || 0)) / l.y, c = i.width / l.x, v = i.height / l.y;
2289
2406
  if (a) {
2290
- const v = J(a), g = o && pe(o) ? J(o) : o;
2291
- let p = v.frameElement;
2292
- for (; p && o && g !== v; ) {
2293
- const w = _e(p), C = p.getBoundingClientRect(), z = getComputedStyle(p);
2294
- C.x += (p.clientLeft + parseFloat(z.paddingLeft)) * w.x, C.y += (p.clientTop + parseFloat(z.paddingTop)) * w.y, f *= w.x, d *= w.y, c *= w.x, y *= w.y, f += C.x, d += C.y, p = J(p).frameElement;
2407
+ const b = J(a), g = o && fe(o) ? J(o) : o;
2408
+ let d = b.frameElement;
2409
+ for (; d && o && g !== b; ) {
2410
+ const f = Ce(d), k = d.getBoundingClientRect(), L = getComputedStyle(d);
2411
+ k.x += (d.clientLeft + parseFloat(L.paddingLeft)) * f.x, k.y += (d.clientTop + parseFloat(L.paddingTop)) * f.y, h *= f.x, p *= f.y, c *= f.x, v *= f.y, h += k.x, p += k.y, d = J(d).frameElement;
2295
2412
  }
2296
2413
  }
2297
- return { width: c, height: y, top: d, right: f + c, bottom: d + y, left: f, x: f, y: d };
2414
+ return { width: c, height: v, top: p, right: h + c, bottom: p + v, left: h, x: h, y: p };
2298
2415
  }
2299
- function fe(e) {
2300
- return ((_n(e) ? e.ownerDocument : e.document) || window.document).documentElement;
2416
+ function he(e) {
2417
+ return ((An(e) ? e.ownerDocument : e.document) || window.document).documentElement;
2301
2418
  }
2302
2419
  function rt(e) {
2303
- return pe(e) ? { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop } : { scrollLeft: e.pageXOffset, scrollTop: e.pageYOffset };
2420
+ return fe(e) ? { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop } : { scrollLeft: e.pageXOffset, scrollTop: e.pageYOffset };
2304
2421
  }
2305
- function Bn(e) {
2306
- return Ie(fe(e)).left + rt(e).scrollLeft;
2422
+ function Pn(e) {
2423
+ return De(he(e)).left + rt(e).scrollLeft;
2307
2424
  }
2308
- function De(e) {
2309
- if (me(e) === "html") return e;
2310
- const t = e.assignedSlot || e.parentNode || Et(e) && e.host || fe(e);
2311
- return Et(t) ? t.host : t;
2425
+ function je(e) {
2426
+ if (ge(e) === "html") return e;
2427
+ const t = e.assignedSlot || e.parentNode || Ft(e) && e.host || he(e);
2428
+ return Ft(t) ? t.host : t;
2312
2429
  }
2313
- function Tn(e) {
2314
- const t = De(e);
2315
- return At(t) ? t.ownerDocument.body : se(t) && ot(t) ? t : Tn(t);
2430
+ function Ln(e) {
2431
+ const t = je(e);
2432
+ return St(t) ? t.ownerDocument.body : se(t) && ot(t) ? t : Ln(t);
2316
2433
  }
2317
2434
  function Qe(e, t) {
2318
2435
  var n;
2319
2436
  t === void 0 && (t = []);
2320
- const o = Tn(e), r = o === ((n = e.ownerDocument) == null ? void 0 : n.body), s = J(o);
2437
+ const o = Ln(e), r = o === ((n = e.ownerDocument) == null ? void 0 : n.body), s = J(o);
2321
2438
  return r ? t.concat(s, s.visualViewport || [], ot(o) ? o : []) : t.concat(o, Qe(o));
2322
2439
  }
2323
- function Ft(e, t, n) {
2324
- return t === "viewport" ? Oe((function(o, r) {
2325
- const s = J(o), i = fe(o), a = s.visualViewport;
2326
- let l = i.clientWidth, u = i.clientHeight, h = 0, f = 0;
2440
+ function Nt(e, t, n) {
2441
+ return t === "viewport" ? He((function(o, r) {
2442
+ const s = J(o), i = he(o), a = s.visualViewport;
2443
+ let l = i.clientWidth, u = i.clientHeight, m = 0, h = 0;
2327
2444
  if (a) {
2328
2445
  l = a.width, u = a.height;
2329
- const d = Cn();
2330
- (d || !d && r === "fixed") && (h = a.offsetLeft, f = a.offsetTop);
2446
+ const p = Sn();
2447
+ (p || !p && r === "fixed") && (m = a.offsetLeft, h = a.offsetTop);
2331
2448
  }
2332
- return { width: l, height: u, x: h, y: f };
2333
- })(e, n)) : pe(t) ? Oe((function(o, r) {
2334
- const s = Ie(o, !0, r === "fixed"), i = s.top + o.clientTop, a = s.left + o.clientLeft, l = se(o) ? _e(o) : { x: 1, y: 1 };
2449
+ return { width: l, height: u, x: m, y: h };
2450
+ })(e, n)) : fe(t) ? He((function(o, r) {
2451
+ const s = De(o, !0, r === "fixed"), i = s.top + o.clientTop, a = s.left + o.clientLeft, l = se(o) ? Ce(o) : { x: 1, y: 1 };
2335
2452
  return { width: o.clientWidth * l.x, height: o.clientHeight * l.y, x: a * l.x, y: i * l.y };
2336
- })(t, n)) : Oe((function(o) {
2337
- const r = fe(o), s = rt(o), i = o.ownerDocument.body, a = He(r.scrollWidth, r.clientWidth, i.scrollWidth, i.clientWidth), l = He(r.scrollHeight, r.clientHeight, i.scrollHeight, i.clientHeight);
2338
- let u = -s.scrollLeft + Bn(o);
2339
- const h = -s.scrollTop;
2340
- return re(i).direction === "rtl" && (u += He(r.clientWidth, i.clientWidth) - a), { width: a, height: l, x: u, y: h };
2341
- })(fe(e)));
2453
+ })(t, n)) : He((function(o) {
2454
+ const r = he(o), s = rt(o), i = o.ownerDocument.body, a = ze(r.scrollWidth, r.clientWidth, i.scrollWidth, i.clientWidth), l = ze(r.scrollHeight, r.clientHeight, i.scrollHeight, i.clientHeight);
2455
+ let u = -s.scrollLeft + Pn(o);
2456
+ const m = -s.scrollTop;
2457
+ return re(i).direction === "rtl" && (u += ze(r.clientWidth, i.clientWidth) - a), { width: a, height: l, x: u, y: m };
2458
+ })(he(e)));
2342
2459
  }
2343
- function Nt(e) {
2460
+ function It(e) {
2344
2461
  return se(e) && re(e).position !== "fixed" ? e.offsetParent : null;
2345
2462
  }
2346
- function It(e) {
2463
+ function Dt(e) {
2347
2464
  const t = J(e);
2348
- let n = Nt(e);
2349
- for (; n && Pr(n) && re(n).position === "static"; ) n = Nt(n);
2350
- return n && (me(n) === "html" || me(n) === "body" && re(n).position === "static" && !gt(n)) ? t : n || (function(o) {
2351
- let r = De(o);
2352
- for (; se(r) && !At(r); ) {
2353
- if (gt(r)) return r;
2354
- r = De(r);
2465
+ let n = It(e);
2466
+ for (; n && Hr(n) && re(n).position === "static"; ) n = It(n);
2467
+ return n && (ge(n) === "html" || ge(n) === "body" && re(n).position === "static" && !vt(n)) ? t : n || (function(o) {
2468
+ let r = je(o);
2469
+ for (; se(r) && !St(r); ) {
2470
+ if (vt(r)) return r;
2471
+ r = je(r);
2355
2472
  }
2356
2473
  return null;
2357
2474
  })(e) || t;
2358
2475
  }
2359
- function Lr(e, t, n) {
2360
- const o = se(t), r = fe(t), s = Ie(e, !0, n === "fixed", t);
2476
+ function zr(e, t, n) {
2477
+ const o = se(t), r = he(t), s = De(e, !0, n === "fixed", t);
2361
2478
  let i = { scrollLeft: 0, scrollTop: 0 };
2362
2479
  const a = { x: 0, y: 0 };
2363
- if (o || !o && n !== "fixed") if ((me(t) !== "body" || ot(r)) && (i = rt(t)), se(t)) {
2364
- const l = Ie(t, !0);
2480
+ if (o || !o && n !== "fixed") if ((ge(t) !== "body" || ot(r)) && (i = rt(t)), se(t)) {
2481
+ const l = De(t, !0);
2365
2482
  a.x = l.x + t.clientLeft, a.y = l.y + t.clientTop;
2366
- } else r && (a.x = Bn(r));
2483
+ } else r && (a.x = Pn(r));
2367
2484
  return { x: s.left + i.scrollLeft - a.x, y: s.top + i.scrollTop - a.y, width: s.width, height: s.height };
2368
2485
  }
2369
- const Mr = { getClippingRect: function(e) {
2486
+ const Er = { getClippingRect: function(e) {
2370
2487
  let { element: t, boundary: n, rootBoundary: o, strategy: r } = e;
2371
- const s = n === "clippingAncestors" ? (function(u, h) {
2372
- const f = h.get(u);
2373
- if (f) return f;
2374
- let d = Qe(u).filter(((g) => pe(g) && me(g) !== "body")), c = null;
2375
- const y = re(u).position === "fixed";
2376
- let v = y ? De(u) : u;
2377
- for (; pe(v) && !At(v); ) {
2378
- const g = re(v), p = gt(v);
2379
- (y ? p || c : p || g.position !== "static" || !c || !["absolute", "fixed"].includes(c.position)) ? c = g : d = d.filter(((w) => w !== v)), v = De(v);
2488
+ const s = n === "clippingAncestors" ? (function(u, m) {
2489
+ const h = m.get(u);
2490
+ if (h) return h;
2491
+ let p = Qe(u).filter(((g) => fe(g) && ge(g) !== "body")), c = null;
2492
+ const v = re(u).position === "fixed";
2493
+ let b = v ? je(u) : u;
2494
+ for (; fe(b) && !St(b); ) {
2495
+ const g = re(b), d = vt(b);
2496
+ (v ? d || c : d || g.position !== "static" || !c || !["absolute", "fixed"].includes(c.position)) ? c = g : p = p.filter(((f) => f !== b)), b = je(b);
2380
2497
  }
2381
- return h.set(u, d), d;
2382
- })(t, this._c) : [].concat(n), i = [...s, o], a = i[0], l = i.reduce(((u, h) => {
2383
- const f = Ft(t, h, r);
2384
- return u.top = He(f.top, u.top), u.right = zt(f.right, u.right), u.bottom = zt(f.bottom, u.bottom), u.left = He(f.left, u.left), u;
2385
- }), Ft(t, a, r));
2498
+ return m.set(u, p), p;
2499
+ })(t, this._c) : [].concat(n), i = [...s, o], a = i[0], l = i.reduce(((u, m) => {
2500
+ const h = Nt(t, m, r);
2501
+ return u.top = ze(h.top, u.top), u.right = Et(h.right, u.right), u.bottom = Et(h.bottom, u.bottom), u.left = ze(h.left, u.left), u;
2502
+ }), Nt(t, a, r));
2386
2503
  return { width: l.right - l.left, height: l.bottom - l.top, x: l.left, y: l.top };
2387
2504
  }, convertOffsetParentRelativeRectToViewportRelativeRect: function(e) {
2388
2505
  let { rect: t, offsetParent: n, strategy: o } = e;
2389
- const r = se(n), s = fe(n);
2506
+ const r = se(n), s = he(n);
2390
2507
  if (n === s) return t;
2391
2508
  let i = { scrollLeft: 0, scrollTop: 0 }, a = { x: 1, y: 1 };
2392
2509
  const l = { x: 0, y: 0 };
2393
- if ((r || !r && o !== "fixed") && ((me(n) !== "body" || ot(s)) && (i = rt(n)), se(n))) {
2394
- const u = Ie(n);
2395
- a = _e(n), l.x = u.x + n.clientLeft, l.y = u.y + n.clientTop;
2510
+ if ((r || !r && o !== "fixed") && ((ge(n) !== "body" || ot(s)) && (i = rt(n)), se(n))) {
2511
+ const u = De(n);
2512
+ a = Ce(n), l.x = u.x + n.clientLeft, l.y = u.y + n.clientTop;
2396
2513
  }
2397
2514
  return { width: t.width * a.x, height: t.height * a.y, x: t.x * a.x - i.scrollLeft * a.x + l.x, y: t.y * a.y - i.scrollTop * a.y + l.y };
2398
- }, isElement: pe, getDimensions: function(e) {
2399
- return se(e) ? $n(e) : e.getBoundingClientRect();
2400
- }, getOffsetParent: It, getDocumentElement: fe, getScale: _e, async getElementRects(e) {
2515
+ }, isElement: fe, getDimensions: function(e) {
2516
+ return se(e) ? _n(e) : e.getBoundingClientRect();
2517
+ }, getOffsetParent: Dt, getDocumentElement: he, getScale: Ce, async getElementRects(e) {
2401
2518
  let { reference: t, floating: n, strategy: o } = e;
2402
- const r = this.getOffsetParent || It, s = this.getDimensions;
2403
- return { reference: Lr(t, await r(n), o), floating: { x: 0, y: 0, ...await s(n) } };
2404
- }, getClientRects: (e) => Array.from(e.getClientRects()), isRTL: (e) => re(e).direction === "rtl" }, Rr = (e, t, n) => {
2405
- const o = /* @__PURE__ */ new Map(), r = { platform: Mr, ...n }, s = { ...r.platform, _c: o };
2406
- return br(e, t, { ...r, platform: s });
2519
+ const r = this.getOffsetParent || Dt, s = this.getDimensions;
2520
+ return { reference: zr(t, await r(n), o), floating: { x: 0, y: 0, ...await s(n) } };
2521
+ }, getClientRects: (e) => Array.from(e.getClientRects()), isRTL: (e) => re(e).direction === "rtl" }, Fr = (e, t, n) => {
2522
+ const o = /* @__PURE__ */ new Map(), r = { platform: Er, ...n }, s = { ...r.platform, _c: o };
2523
+ return Cr(e, t, { ...r, platform: s });
2407
2524
  };
2408
- function Pn(e, t) {
2525
+ function Mn(e, t) {
2409
2526
  for (const n in t)
2410
- Object.prototype.hasOwnProperty.call(t, n) && (typeof t[n] == "object" && e[n] ? Pn(e[n], t[n]) : e[n] = t[n]);
2527
+ Object.prototype.hasOwnProperty.call(t, n) && (typeof t[n] == "object" && e[n] ? Mn(e[n], t[n]) : e[n] = t[n]);
2411
2528
  }
2412
2529
  const ne = {
2413
2530
  // Disable popper components
@@ -2488,14 +2605,14 @@ const ne = {
2488
2605
  }
2489
2606
  }
2490
2607
  };
2491
- function je(e, t) {
2608
+ function Ve(e, t) {
2492
2609
  let n = ne.themes[e] || {}, o;
2493
2610
  do
2494
2611
  o = n[t], typeof o > "u" ? n.$extend ? n = ne.themes[n.$extend] || {} : (n = null, o = ne[t]) : n = null;
2495
2612
  while (n);
2496
2613
  return o;
2497
2614
  }
2498
- function Or(e) {
2615
+ function Nr(e) {
2499
2616
  const t = [e];
2500
2617
  let n = ne.themes[e] || {};
2501
2618
  do
@@ -2503,7 +2620,7 @@ function Or(e) {
2503
2620
  while (n);
2504
2621
  return t.map((o) => `v-popper--theme-${o}`);
2505
2622
  }
2506
- function Dt(e) {
2623
+ function jt(e) {
2507
2624
  const t = [e];
2508
2625
  let n = ne.themes[e] || {};
2509
2626
  do
@@ -2524,26 +2641,26 @@ if (typeof window < "u") {
2524
2641
  } catch {
2525
2642
  }
2526
2643
  }
2527
- let Ln = !1;
2528
- typeof window < "u" && typeof navigator < "u" && (Ln = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream);
2529
- const Mn = ["auto", "top", "bottom", "left", "right"].reduce((e, t) => e.concat([
2644
+ let Rn = !1;
2645
+ typeof window < "u" && typeof navigator < "u" && (Rn = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream);
2646
+ const On = ["auto", "top", "bottom", "left", "right"].reduce((e, t) => e.concat([
2530
2647
  t,
2531
2648
  `${t}-start`,
2532
2649
  `${t}-end`
2533
- ]), []), jt = {
2650
+ ]), []), Vt = {
2534
2651
  hover: "mouseenter",
2535
2652
  focus: "focus",
2536
2653
  click: "click",
2537
2654
  touch: "touchstart",
2538
2655
  pointer: "pointerdown"
2539
- }, Vt = {
2656
+ }, Wt = {
2540
2657
  hover: "mouseleave",
2541
2658
  focus: "blur",
2542
2659
  click: "click",
2543
2660
  touch: "touchend",
2544
2661
  pointer: "pointerup"
2545
2662
  };
2546
- function Wt(e, t) {
2663
+ function qt(e, t) {
2547
2664
  const n = e.indexOf(t);
2548
2665
  n !== -1 && e.splice(n, 1);
2549
2666
  }
@@ -2553,31 +2670,31 @@ function ut() {
2553
2670
  }));
2554
2671
  }
2555
2672
  const ee = [];
2556
- let ve = null;
2557
- const qt = {};
2558
- function Gt(e) {
2559
- let t = qt[e];
2560
- return t || (t = qt[e] = []), t;
2673
+ let ye = null;
2674
+ const Gt = {};
2675
+ function Zt(e) {
2676
+ let t = Gt[e];
2677
+ return t || (t = Gt[e] = []), t;
2561
2678
  }
2562
- let vt = function() {
2679
+ let yt = function() {
2563
2680
  };
2564
- typeof window < "u" && (vt = window.Element);
2565
- function L(e) {
2681
+ typeof window < "u" && (yt = window.Element);
2682
+ function H(e) {
2566
2683
  return function(t) {
2567
- return je(t.theme, e);
2684
+ return Ve(t.theme, e);
2568
2685
  };
2569
2686
  }
2570
- const ct = "__floating-vue__popper", Rn = () => Z({
2687
+ const dt = "__floating-vue__popper", Hn = () => q({
2571
2688
  name: "VPopper",
2572
2689
  provide() {
2573
2690
  return {
2574
- [ct]: {
2691
+ [dt]: {
2575
2692
  parentPopper: this
2576
2693
  }
2577
2694
  };
2578
2695
  },
2579
2696
  inject: {
2580
- [ct]: { default: null }
2697
+ [dt]: { default: null }
2581
2698
  },
2582
2699
  props: {
2583
2700
  theme: {
@@ -2610,147 +2727,147 @@ const ct = "__floating-vue__popper", Rn = () => Z({
2610
2727
  },
2611
2728
  disabled: {
2612
2729
  type: Boolean,
2613
- default: L("disabled")
2730
+ default: H("disabled")
2614
2731
  },
2615
2732
  positioningDisabled: {
2616
2733
  type: Boolean,
2617
- default: L("positioningDisabled")
2734
+ default: H("positioningDisabled")
2618
2735
  },
2619
2736
  placement: {
2620
2737
  type: String,
2621
- default: L("placement"),
2622
- validator: (e) => Mn.includes(e)
2738
+ default: H("placement"),
2739
+ validator: (e) => On.includes(e)
2623
2740
  },
2624
2741
  delay: {
2625
2742
  type: [String, Number, Object],
2626
- default: L("delay")
2743
+ default: H("delay")
2627
2744
  },
2628
2745
  distance: {
2629
2746
  type: [Number, String],
2630
- default: L("distance")
2747
+ default: H("distance")
2631
2748
  },
2632
2749
  skidding: {
2633
2750
  type: [Number, String],
2634
- default: L("skidding")
2751
+ default: H("skidding")
2635
2752
  },
2636
2753
  triggers: {
2637
2754
  type: Array,
2638
- default: L("triggers")
2755
+ default: H("triggers")
2639
2756
  },
2640
2757
  showTriggers: {
2641
2758
  type: [Array, Function],
2642
- default: L("showTriggers")
2759
+ default: H("showTriggers")
2643
2760
  },
2644
2761
  hideTriggers: {
2645
2762
  type: [Array, Function],
2646
- default: L("hideTriggers")
2763
+ default: H("hideTriggers")
2647
2764
  },
2648
2765
  popperTriggers: {
2649
2766
  type: Array,
2650
- default: L("popperTriggers")
2767
+ default: H("popperTriggers")
2651
2768
  },
2652
2769
  popperShowTriggers: {
2653
2770
  type: [Array, Function],
2654
- default: L("popperShowTriggers")
2771
+ default: H("popperShowTriggers")
2655
2772
  },
2656
2773
  popperHideTriggers: {
2657
2774
  type: [Array, Function],
2658
- default: L("popperHideTriggers")
2775
+ default: H("popperHideTriggers")
2659
2776
  },
2660
2777
  container: {
2661
- type: [String, Object, vt, Boolean],
2662
- default: L("container")
2778
+ type: [String, Object, yt, Boolean],
2779
+ default: H("container")
2663
2780
  },
2664
2781
  boundary: {
2665
- type: [String, vt],
2666
- default: L("boundary")
2782
+ type: [String, yt],
2783
+ default: H("boundary")
2667
2784
  },
2668
2785
  strategy: {
2669
2786
  type: String,
2670
2787
  validator: (e) => ["absolute", "fixed"].includes(e),
2671
- default: L("strategy")
2788
+ default: H("strategy")
2672
2789
  },
2673
2790
  autoHide: {
2674
2791
  type: [Boolean, Function],
2675
- default: L("autoHide")
2792
+ default: H("autoHide")
2676
2793
  },
2677
2794
  handleResize: {
2678
2795
  type: Boolean,
2679
- default: L("handleResize")
2796
+ default: H("handleResize")
2680
2797
  },
2681
2798
  instantMove: {
2682
2799
  type: Boolean,
2683
- default: L("instantMove")
2800
+ default: H("instantMove")
2684
2801
  },
2685
2802
  eagerMount: {
2686
2803
  type: Boolean,
2687
- default: L("eagerMount")
2804
+ default: H("eagerMount")
2688
2805
  },
2689
2806
  popperClass: {
2690
2807
  type: [String, Array, Object],
2691
- default: L("popperClass")
2808
+ default: H("popperClass")
2692
2809
  },
2693
2810
  computeTransformOrigin: {
2694
2811
  type: Boolean,
2695
- default: L("computeTransformOrigin")
2812
+ default: H("computeTransformOrigin")
2696
2813
  },
2697
2814
  /**
2698
2815
  * @deprecated
2699
2816
  */
2700
2817
  autoMinSize: {
2701
2818
  type: Boolean,
2702
- default: L("autoMinSize")
2819
+ default: H("autoMinSize")
2703
2820
  },
2704
2821
  autoSize: {
2705
2822
  type: [Boolean, String],
2706
- default: L("autoSize")
2823
+ default: H("autoSize")
2707
2824
  },
2708
2825
  /**
2709
2826
  * @deprecated
2710
2827
  */
2711
2828
  autoMaxSize: {
2712
2829
  type: Boolean,
2713
- default: L("autoMaxSize")
2830
+ default: H("autoMaxSize")
2714
2831
  },
2715
2832
  autoBoundaryMaxSize: {
2716
2833
  type: Boolean,
2717
- default: L("autoBoundaryMaxSize")
2834
+ default: H("autoBoundaryMaxSize")
2718
2835
  },
2719
2836
  preventOverflow: {
2720
2837
  type: Boolean,
2721
- default: L("preventOverflow")
2838
+ default: H("preventOverflow")
2722
2839
  },
2723
2840
  overflowPadding: {
2724
2841
  type: [Number, String],
2725
- default: L("overflowPadding")
2842
+ default: H("overflowPadding")
2726
2843
  },
2727
2844
  arrowPadding: {
2728
2845
  type: [Number, String],
2729
- default: L("arrowPadding")
2846
+ default: H("arrowPadding")
2730
2847
  },
2731
2848
  arrowOverflow: {
2732
2849
  type: Boolean,
2733
- default: L("arrowOverflow")
2850
+ default: H("arrowOverflow")
2734
2851
  },
2735
2852
  flip: {
2736
2853
  type: Boolean,
2737
- default: L("flip")
2854
+ default: H("flip")
2738
2855
  },
2739
2856
  shift: {
2740
2857
  type: Boolean,
2741
- default: L("shift")
2858
+ default: H("shift")
2742
2859
  },
2743
2860
  shiftCrossAxis: {
2744
2861
  type: Boolean,
2745
- default: L("shiftCrossAxis")
2862
+ default: H("shiftCrossAxis")
2746
2863
  },
2747
2864
  noAutoFocus: {
2748
2865
  type: Boolean,
2749
- default: L("noAutoFocus")
2866
+ default: H("noAutoFocus")
2750
2867
  },
2751
2868
  disposeTimeout: {
2752
2869
  type: Number,
2753
- default: L("disposeTimeout")
2870
+ default: H("disposeTimeout")
2754
2871
  }
2755
2872
  },
2756
2873
  emits: {
@@ -2824,7 +2941,7 @@ const ct = "__floating-vue__popper", Rn = () => Z({
2824
2941
  },
2825
2942
  parentPopper() {
2826
2943
  var e;
2827
- return (e = this[ct]) == null ? void 0 : e.parentPopper;
2944
+ return (e = this[dt]) == null ? void 0 : e.parentPopper;
2828
2945
  },
2829
2946
  hasPopperShowTriggerHover() {
2830
2947
  var e, t;
@@ -2913,21 +3030,21 @@ const ct = "__floating-vue__popper", Rn = () => Z({
2913
3030
  strategy: this.strategy,
2914
3031
  middleware: []
2915
3032
  };
2916
- (this.distance || this.skidding) && e.middleware.push(Sr({
3033
+ (this.distance || this.skidding) && e.middleware.push(Mr({
2917
3034
  mainAxis: this.distance,
2918
3035
  crossAxis: this.skidding
2919
3036
  }));
2920
3037
  const t = this.placement.startsWith("auto");
2921
- if (t ? e.middleware.push(kr({
3038
+ if (t ? e.middleware.push(Br({
2922
3039
  alignment: this.placement.split("-")[1] ?? ""
2923
- })) : e.placement = this.placement, this.preventOverflow && (this.shift && e.middleware.push(Br({
3040
+ })) : e.placement = this.placement, this.preventOverflow && (this.shift && e.middleware.push(Rr({
2924
3041
  padding: this.overflowPadding,
2925
3042
  boundary: this.boundary,
2926
3043
  crossAxis: this.shiftCrossAxis
2927
- })), !t && this.flip && e.middleware.push(_r({
3044
+ })), !t && this.flip && e.middleware.push(Tr({
2928
3045
  padding: this.overflowPadding,
2929
3046
  boundary: this.boundary
2930
- }))), e.middleware.push(xr({
3047
+ }))), e.middleware.push(Ar({
2931
3048
  element: this.$_arrowNode,
2932
3049
  padding: this.arrowPadding
2933
3050
  })), this.arrowOverflow && e.middleware.push({
@@ -2961,14 +3078,14 @@ const ct = "__floating-vue__popper", Rn = () => Z({
2961
3078
  }
2962
3079
  });
2963
3080
  }
2964
- (this.autoMaxSize || this.autoBoundaryMaxSize) && (this.$_innerNode.style.maxWidth = null, this.$_innerNode.style.maxHeight = null, e.middleware.push(Tr({
3081
+ (this.autoMaxSize || this.autoBoundaryMaxSize) && (this.$_innerNode.style.maxWidth = null, this.$_innerNode.style.maxHeight = null, e.middleware.push(Or({
2965
3082
  boundary: this.boundary,
2966
3083
  padding: this.overflowPadding,
2967
3084
  apply: ({ availableWidth: o, availableHeight: r }) => {
2968
3085
  this.$_innerNode.style.maxWidth = o != null ? `${o}px` : null, this.$_innerNode.style.maxHeight = r != null ? `${r}px` : null;
2969
3086
  }
2970
3087
  })));
2971
- const n = await Rr(this.$_referenceNode, this.$_popperNode, e);
3088
+ const n = await Fr(this.$_referenceNode, this.$_popperNode, e);
2972
3089
  Object.assign(this.result, {
2973
3090
  x: n.x,
2974
3091
  y: n.y,
@@ -2981,8 +3098,8 @@ const ct = "__floating-vue__popper", Rn = () => Z({
2981
3098
  });
2982
3099
  },
2983
3100
  $_scheduleShow(e, t = !1) {
2984
- if (this.$_updateParentShownChildren(!0), this.$_hideInProgress = !1, clearTimeout(this.$_scheduleTimer), ve && this.instantMove && ve.instantMove && ve !== this.parentPopper) {
2985
- ve.$_applyHide(!0), this.$_applyShow(!0);
3101
+ if (this.$_updateParentShownChildren(!0), this.$_hideInProgress = !1, clearTimeout(this.$_scheduleTimer), ye && this.instantMove && ye.instantMove && ye !== this.parentPopper) {
3102
+ ye.$_applyHide(!0), this.$_applyShow(!0);
2986
3103
  return;
2987
3104
  }
2988
3105
  t ? this.$_applyShow() : this.$_scheduleTimer = setTimeout(this.$_applyShow.bind(this), this.$_computeDelay("show"));
@@ -2992,7 +3109,7 @@ const ct = "__floating-vue__popper", Rn = () => Z({
2992
3109
  this.pendingHide = !0;
2993
3110
  return;
2994
3111
  }
2995
- this.$_updateParentShownChildren(!1), this.$_hideInProgress = !0, clearTimeout(this.$_scheduleTimer), this.isShown && (ve = this), t ? this.$_applyHide() : this.$_scheduleTimer = setTimeout(this.$_applyHide.bind(this), this.$_computeDelay("hide"));
3112
+ this.$_updateParentShownChildren(!1), this.$_hideInProgress = !0, clearTimeout(this.$_scheduleTimer), this.isShown && (ye = this), t ? this.$_applyHide() : this.$_scheduleTimer = setTimeout(this.$_applyHide.bind(this), this.$_computeDelay("hide"));
2996
3113
  },
2997
3114
  $_computeDelay(e) {
2998
3115
  const t = this.delay;
@@ -3024,8 +3141,8 @@ const ct = "__floating-vue__popper", Rn = () => Z({
3024
3141
  t = ee[n], t.showGroup !== e && (t.hide(), t.$emit("close-group"));
3025
3142
  }
3026
3143
  ee.push(this), document.body.classList.add("v-popper--some-open");
3027
- for (const t of Dt(this.theme))
3028
- Gt(t).push(this), document.body.classList.add(`v-popper--some-open--${t}`);
3144
+ for (const t of jt(this.theme))
3145
+ Zt(t).push(this), document.body.classList.add(`v-popper--some-open--${t}`);
3029
3146
  this.$emit("apply-show"), this.classes.showFrom = !0, this.classes.showTo = !1, this.classes.hideFrom = !1, this.classes.hideTo = !1, await ut(), this.classes.showFrom = !1, this.classes.showTo = !0, this.noAutoFocus || this.$_popperNode.focus();
3030
3147
  },
3031
3148
  async $_applyHide(e = !1) {
@@ -3035,12 +3152,12 @@ const ct = "__floating-vue__popper", Rn = () => Z({
3035
3152
  }
3036
3153
  if (clearTimeout(this.$_scheduleTimer), !this.isShown)
3037
3154
  return;
3038
- this.skipTransition = e, Wt(ee, this), ee.length === 0 && document.body.classList.remove("v-popper--some-open");
3039
- for (const n of Dt(this.theme)) {
3040
- const o = Gt(n);
3041
- Wt(o, this), o.length === 0 && document.body.classList.remove(`v-popper--some-open--${n}`);
3155
+ this.skipTransition = e, qt(ee, this), ee.length === 0 && document.body.classList.remove("v-popper--some-open");
3156
+ for (const n of jt(this.theme)) {
3157
+ const o = Zt(n);
3158
+ qt(o, this), o.length === 0 && document.body.classList.remove(`v-popper--some-open--${n}`);
3042
3159
  }
3043
- ve === this && (ve = null), this.isShown = !1, this.$_applyAttrsToTarget({
3160
+ ye === this && (ye = null), this.isShown = !1, this.$_applyAttrsToTarget({
3044
3161
  "aria-describedby": void 0,
3045
3162
  "data-popper-shown": void 0
3046
3163
  }), clearTimeout(this.$_disposeTimer);
@@ -3064,11 +3181,11 @@ const ct = "__floating-vue__popper", Rn = () => Z({
3064
3181
  const e = (n) => {
3065
3182
  this.isShown && !this.$_hideInProgress || (n.usedByTooltip = !0, !this.$_preventShow && this.show({ event: n }));
3066
3183
  };
3067
- this.$_registerTriggerListeners(this.$_targetNodes, jt, this.triggers, this.showTriggers, e), this.$_registerTriggerListeners([this.$_popperNode], jt, this.popperTriggers, this.popperShowTriggers, e);
3184
+ this.$_registerTriggerListeners(this.$_targetNodes, Vt, this.triggers, this.showTriggers, e), this.$_registerTriggerListeners([this.$_popperNode], Vt, this.popperTriggers, this.popperShowTriggers, e);
3068
3185
  const t = (n) => {
3069
3186
  n.usedByTooltip || this.hide({ event: n });
3070
3187
  };
3071
- this.$_registerTriggerListeners(this.$_targetNodes, Vt, this.triggers, this.hideTriggers, t), this.$_registerTriggerListeners([this.$_popperNode], Vt, this.popperTriggers, this.popperHideTriggers, t);
3188
+ this.$_registerTriggerListeners(this.$_targetNodes, Wt, this.triggers, this.hideTriggers, t), this.$_registerTriggerListeners([this.$_popperNode], Wt, this.popperTriggers, this.popperHideTriggers, t);
3072
3189
  },
3073
3190
  $_registerEventListeners(e, t, n) {
3074
3191
  this.$_events.push({ targetNodes: e, eventType: t, handler: n }), e.forEach((o) => o.addEventListener(t, n, Se ? {
@@ -3120,12 +3237,12 @@ const ct = "__floating-vue__popper", Rn = () => Z({
3120
3237
  },
3121
3238
  $_isAimingPopper() {
3122
3239
  const e = this.$_referenceNode.getBoundingClientRect();
3123
- if (ze >= e.left && ze <= e.right && Ee >= e.top && Ee <= e.bottom) {
3124
- const t = this.$_popperNode.getBoundingClientRect(), n = ze - le, o = Ee - ue, r = t.left + t.width / 2 - le + (t.top + t.height / 2) - ue + t.width + t.height, s = le + n * r, i = ue + o * r;
3125
- return Ze(le, ue, s, i, t.left, t.top, t.left, t.bottom) || // Left edge
3126
- Ze(le, ue, s, i, t.left, t.top, t.right, t.top) || // Top edge
3127
- Ze(le, ue, s, i, t.right, t.top, t.right, t.bottom) || // Right edge
3128
- Ze(le, ue, s, i, t.left, t.bottom, t.right, t.bottom);
3240
+ if (Ee >= e.left && Ee <= e.right && Fe >= e.top && Fe <= e.bottom) {
3241
+ const t = this.$_popperNode.getBoundingClientRect(), n = Ee - de, o = Fe - ce, r = t.left + t.width / 2 - de + (t.top + t.height / 2) - ce + t.width + t.height, s = de + n * r, i = ce + o * r;
3242
+ return Ze(de, ce, s, i, t.left, t.top, t.left, t.bottom) || // Left edge
3243
+ Ze(de, ce, s, i, t.left, t.top, t.right, t.top) || // Top edge
3244
+ Ze(de, ce, s, i, t.right, t.top, t.right, t.bottom) || // Right edge
3245
+ Ze(de, ce, s, i, t.left, t.bottom, t.right, t.bottom);
3129
3246
  }
3130
3247
  return !1;
3131
3248
  }
@@ -3135,19 +3252,19 @@ const ct = "__floating-vue__popper", Rn = () => Z({
3135
3252
  }
3136
3253
  });
3137
3254
  if (typeof document < "u" && typeof window < "u") {
3138
- if (Ln) {
3255
+ if (Rn) {
3139
3256
  const e = Se ? {
3140
3257
  passive: !0,
3141
3258
  capture: !0
3142
3259
  } : !0;
3143
- document.addEventListener("touchstart", (t) => Zt(t, !0), e), document.addEventListener("touchend", (t) => Ut(t, !0), e);
3260
+ document.addEventListener("touchstart", (t) => Ut(t, !0), e), document.addEventListener("touchend", (t) => Xt(t, !0), e);
3144
3261
  } else
3145
- window.addEventListener("mousedown", (e) => Zt(e, !1), !0), window.addEventListener("click", (e) => Ut(e, !1), !0);
3146
- window.addEventListener("resize", zr);
3262
+ window.addEventListener("mousedown", (e) => Ut(e, !1), !0), window.addEventListener("click", (e) => Xt(e, !1), !0);
3263
+ window.addEventListener("resize", Dr);
3147
3264
  }
3148
- function Zt(e, t) {
3265
+ function Ut(e, t) {
3149
3266
  if (ne.autoHideOnMousedown)
3150
- On(e, t);
3267
+ zn(e, t);
3151
3268
  else
3152
3269
  for (let n = 0; n < ee.length; n++) {
3153
3270
  const o = ee[n];
@@ -3157,17 +3274,17 @@ function Zt(e, t) {
3157
3274
  }
3158
3275
  }
3159
3276
  }
3160
- function Ut(e, t) {
3161
- ne.autoHideOnMousedown || On(e, t);
3277
+ function Xt(e, t) {
3278
+ ne.autoHideOnMousedown || zn(e, t);
3162
3279
  }
3163
- function On(e, t) {
3280
+ function zn(e, t) {
3164
3281
  const n = {};
3165
3282
  for (let o = ee.length - 1; o >= 0; o--) {
3166
3283
  const r = ee[o];
3167
3284
  try {
3168
3285
  const s = r.containsGlobalTarget = r.mouseDownContains || r.popperNode().contains(e.target);
3169
3286
  r.pendingHide = !1, requestAnimationFrame(() => {
3170
- if (r.pendingHide = !1, !n[r.randomId] && Xt(r, s, e)) {
3287
+ if (r.pendingHide = !1, !n[r.randomId] && Yt(r, s, e)) {
3171
3288
  if (r.$_handleGlobalClose(e, t), !e.closeAllPopover && e.closePopover && s) {
3172
3289
  let a = r.parentPopper;
3173
3290
  for (; a; )
@@ -3175,7 +3292,7 @@ function On(e, t) {
3175
3292
  return;
3176
3293
  }
3177
3294
  let i = r.parentPopper;
3178
- for (; i && Xt(i, i.containsGlobalTarget, e); )
3295
+ for (; i && Yt(i, i.containsGlobalTarget, e); )
3179
3296
  i.$_handleGlobalClose(e, t), i = i.parentPopper;
3180
3297
  }
3181
3298
  });
@@ -3183,23 +3300,23 @@ function On(e, t) {
3183
3300
  }
3184
3301
  }
3185
3302
  }
3186
- function Xt(e, t, n) {
3187
- return n.closeAllPopover || n.closePopover && t || Hr(e, n) && !t;
3303
+ function Yt(e, t, n) {
3304
+ return n.closeAllPopover || n.closePopover && t || Ir(e, n) && !t;
3188
3305
  }
3189
- function Hr(e, t) {
3306
+ function Ir(e, t) {
3190
3307
  if (typeof e.autoHide == "function") {
3191
3308
  const n = e.autoHide(t);
3192
3309
  return e.lastAutoHide = n, n;
3193
3310
  }
3194
3311
  return e.autoHide;
3195
3312
  }
3196
- function zr() {
3313
+ function Dr() {
3197
3314
  for (let e = 0; e < ee.length; e++)
3198
3315
  ee[e].$_computePosition();
3199
3316
  }
3200
- let le = 0, ue = 0, ze = 0, Ee = 0;
3317
+ let de = 0, ce = 0, Ee = 0, Fe = 0;
3201
3318
  typeof window < "u" && window.addEventListener("mousemove", (e) => {
3202
- le = ze, ue = Ee, ze = e.clientX, Ee = e.clientY;
3319
+ de = Ee, ce = Fe, Ee = e.clientX, Fe = e.clientY;
3203
3320
  }, Se ? {
3204
3321
  passive: !0
3205
3322
  } : void 0);
@@ -3207,26 +3324,26 @@ function Ze(e, t, n, o, r, s, i, a) {
3207
3324
  const l = ((i - r) * (t - s) - (a - s) * (e - r)) / ((a - s) * (n - e) - (i - r) * (o - t)), u = ((n - e) * (t - s) - (o - t) * (e - r)) / ((a - s) * (n - e) - (i - r) * (o - t));
3208
3325
  return l >= 0 && l <= 1 && u >= 0 && u <= 1;
3209
3326
  }
3210
- const Er = {
3211
- extends: Rn()
3327
+ const jr = {
3328
+ extends: Hn()
3212
3329
  }, st = (e, t) => {
3213
3330
  const n = e.__vccOpts || e;
3214
3331
  for (const [o, r] of t)
3215
3332
  n[o] = r;
3216
3333
  return n;
3217
3334
  };
3218
- function Fr(e, t, n, o, r, s) {
3219
- return b(), B("div", {
3335
+ function Vr(e, t, n, o, r, s) {
3336
+ return y(), S("div", {
3220
3337
  ref: "reference",
3221
3338
  class: F(["v-popper", {
3222
3339
  "v-popper--shown": e.slotData.isShown
3223
3340
  }])
3224
3341
  }, [
3225
- W(e.$slots, "default", Kn(Qn(e.slotData)))
3342
+ W(e.$slots, "default", Jn(eo(e.slotData)))
3226
3343
  ], 2);
3227
3344
  }
3228
- const Nr = /* @__PURE__ */ st(Er, [["render", Fr]]);
3229
- function Ir() {
3345
+ const Wr = /* @__PURE__ */ st(jr, [["render", Vr]]);
3346
+ function qr() {
3230
3347
  var e = window.navigator.userAgent, t = e.indexOf("MSIE ");
3231
3348
  if (t > 0)
3232
3349
  return parseInt(e.substring(t + 5, e.indexOf(".", t)), 10);
@@ -3239,8 +3356,8 @@ function Ir() {
3239
3356
  return r > 0 ? parseInt(e.substring(r + 5, e.indexOf(".", r)), 10) : -1;
3240
3357
  }
3241
3358
  let Ue;
3242
- function wt() {
3243
- wt.init || (wt.init = !0, Ue = Ir() !== -1);
3359
+ function bt() {
3360
+ bt.init || (bt.init = !0, Ue = qr() !== -1);
3244
3361
  }
3245
3362
  var it = {
3246
3363
  name: "ResizeObserver",
@@ -3262,7 +3379,7 @@ var it = {
3262
3379
  "notify"
3263
3380
  ],
3264
3381
  mounted() {
3265
- wt(), Ce(() => {
3382
+ bt(), Ae(() => {
3266
3383
  this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitOnMount && this.emitSize();
3267
3384
  });
3268
3385
  const e = document.createElement("object");
@@ -3289,30 +3406,30 @@ var it = {
3289
3406
  }
3290
3407
  }
3291
3408
  };
3292
- const Dr = /* @__PURE__ */ to("data-v-b329ee4c");
3293
- Xn("data-v-b329ee4c");
3294
- const jr = {
3409
+ const Gr = /* @__PURE__ */ oo("data-v-b329ee4c");
3410
+ Kn("data-v-b329ee4c");
3411
+ const Zr = {
3295
3412
  class: "resize-observer",
3296
3413
  tabindex: "-1"
3297
3414
  };
3298
- Yn();
3299
- const Vr = /* @__PURE__ */ Dr((e, t, n, o, r, s) => (b(), R("div", jr)));
3300
- it.render = Vr;
3415
+ Qn();
3416
+ const Ur = /* @__PURE__ */ Gr((e, t, n, o, r, s) => (y(), T("div", Zr)));
3417
+ it.render = Ur;
3301
3418
  it.__scopeId = "data-v-b329ee4c";
3302
3419
  it.__file = "src/components/ResizeObserver.vue";
3303
- const Hn = (e = "theme") => ({
3420
+ const En = (e = "theme") => ({
3304
3421
  computed: {
3305
3422
  themeClass() {
3306
- return Or(this[e]);
3423
+ return Nr(this[e]);
3307
3424
  }
3308
3425
  }
3309
- }), Wr = Z({
3426
+ }), Xr = q({
3310
3427
  name: "VPopperContent",
3311
3428
  components: {
3312
3429
  ResizeObserver: it
3313
3430
  },
3314
3431
  mixins: [
3315
- Hn()
3432
+ En()
3316
3433
  ],
3317
3434
  props: {
3318
3435
  popperId: String,
@@ -3334,16 +3451,16 @@ const Hn = (e = "theme") => ({
3334
3451
  return e != null && !isNaN(e) ? `${e}px` : null;
3335
3452
  }
3336
3453
  }
3337
- }), qr = ["id", "aria-hidden", "tabindex", "data-popper-placement"], Gr = {
3454
+ }), Yr = ["id", "aria-hidden", "tabindex", "data-popper-placement"], Kr = {
3338
3455
  ref: "inner",
3339
3456
  class: "v-popper__inner"
3340
- }, Zr = /* @__PURE__ */ S("div", { class: "v-popper__arrow-outer" }, null, -1), Ur = /* @__PURE__ */ S("div", { class: "v-popper__arrow-inner" }, null, -1), Xr = [
3341
- Zr,
3342
- Ur
3457
+ }, Qr = /* @__PURE__ */ B("div", { class: "v-popper__arrow-outer" }, null, -1), Jr = /* @__PURE__ */ B("div", { class: "v-popper__arrow-inner" }, null, -1), es = [
3458
+ Qr,
3459
+ Jr
3343
3460
  ];
3344
- function Yr(e, t, n, o, r, s) {
3345
- const i = Fe("ResizeObserver");
3346
- return b(), B("div", {
3461
+ function ts(e, t, n, o, r, s) {
3462
+ const i = Ne("ResizeObserver");
3463
+ return y(), S("div", {
3347
3464
  id: e.popperId,
3348
3465
  ref: "popover",
3349
3466
  class: F(["v-popper__popper", [
@@ -3361,7 +3478,7 @@ function Yr(e, t, n, o, r, s) {
3361
3478
  "v-popper__popper--no-positioning": !e.result
3362
3479
  }
3363
3480
  ]]),
3364
- style: ce(e.result ? {
3481
+ style: pe(e.result ? {
3365
3482
  position: e.result.strategy,
3366
3483
  transform: `translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`
3367
3484
  } : void 0),
@@ -3370,39 +3487,39 @@ function Yr(e, t, n, o, r, s) {
3370
3487
  "data-popper-placement": e.result ? e.result.placement : void 0,
3371
3488
  onKeyup: t[2] || (t[2] = et((a) => e.autoHide && e.$emit("hide"), ["esc"]))
3372
3489
  }, [
3373
- S("div", {
3490
+ B("div", {
3374
3491
  class: "v-popper__backdrop",
3375
3492
  onClick: t[0] || (t[0] = (a) => e.autoHide && e.$emit("hide"))
3376
3493
  }),
3377
- S("div", {
3494
+ B("div", {
3378
3495
  class: "v-popper__wrapper",
3379
- style: ce(e.result ? {
3496
+ style: pe(e.result ? {
3380
3497
  transformOrigin: e.result.transformOrigin
3381
3498
  } : void 0)
3382
3499
  }, [
3383
- S("div", Gr, [
3384
- e.mounted ? (b(), B(he, { key: 0 }, [
3385
- S("div", null, [
3500
+ B("div", Kr, [
3501
+ e.mounted ? (y(), S(ue, { key: 0 }, [
3502
+ B("div", null, [
3386
3503
  W(e.$slots, "default")
3387
3504
  ]),
3388
- e.handleResize ? (b(), R(i, {
3505
+ e.handleResize ? (y(), T(i, {
3389
3506
  key: 0,
3390
3507
  onNotify: t[1] || (t[1] = (a) => e.$emit("resize", a))
3391
- })) : M("", !0)
3392
- ], 64)) : M("", !0)
3508
+ })) : R("", !0)
3509
+ ], 64)) : R("", !0)
3393
3510
  ], 512),
3394
- S("div", {
3511
+ B("div", {
3395
3512
  ref: "arrow",
3396
3513
  class: "v-popper__arrow-container",
3397
- style: ce(e.result ? {
3514
+ style: pe(e.result ? {
3398
3515
  left: e.toPx(e.result.arrow.x),
3399
3516
  top: e.toPx(e.result.arrow.y)
3400
3517
  } : void 0)
3401
- }, Xr, 4)
3518
+ }, es, 4)
3402
3519
  ], 4)
3403
- ], 46, qr);
3520
+ ], 46, Yr);
3404
3521
  }
3405
- const zn = /* @__PURE__ */ st(Wr, [["render", Yr]]), En = {
3522
+ const Fn = /* @__PURE__ */ st(Xr, [["render", ts]]), Nn = {
3406
3523
  methods: {
3407
3524
  show(...e) {
3408
3525
  return this.$refs.popper.show(...e);
@@ -3418,18 +3535,18 @@ const zn = /* @__PURE__ */ st(Wr, [["render", Yr]]), En = {
3418
3535
  }
3419
3536
  }
3420
3537
  };
3421
- let bt = function() {
3538
+ let xt = function() {
3422
3539
  };
3423
- typeof window < "u" && (bt = window.Element);
3424
- const Kr = Z({
3540
+ typeof window < "u" && (xt = window.Element);
3541
+ const ns = q({
3425
3542
  name: "VPopperWrapper",
3426
3543
  components: {
3427
- Popper: Nr,
3428
- PopperContent: zn
3544
+ Popper: Wr,
3545
+ PopperContent: Fn
3429
3546
  },
3430
3547
  mixins: [
3431
- En,
3432
- Hn("finalTheme")
3548
+ Nn,
3549
+ En("finalTheme")
3433
3550
  ],
3434
3551
  props: {
3435
3552
  theme: {
@@ -3501,11 +3618,11 @@ const Kr = Z({
3501
3618
  default: void 0
3502
3619
  },
3503
3620
  container: {
3504
- type: [String, Object, bt, Boolean],
3621
+ type: [String, Object, xt, Boolean],
3505
3622
  default: void 0
3506
3623
  },
3507
3624
  boundary: {
3508
- type: [String, bt],
3625
+ type: [String, xt],
3509
3626
  default: void 0
3510
3627
  },
3511
3628
  strategy: {
@@ -3617,9 +3734,9 @@ const Kr = Z({
3617
3734
  }
3618
3735
  }
3619
3736
  });
3620
- function Qr(e, t, n, o, r, s) {
3621
- const i = Fe("PopperContent"), a = Fe("Popper");
3622
- return b(), R(a, kt({ ref: "popper" }, e.$props, {
3737
+ function os(e, t, n, o, r, s) {
3738
+ const i = Ne("PopperContent"), a = Ne("Popper");
3739
+ return y(), T(a, _t({ ref: "popper" }, e.$props, {
3623
3740
  theme: e.finalTheme,
3624
3741
  "target-nodes": e.getTargetNodes,
3625
3742
  "popper-node": () => e.$refs.popperContent.$el,
@@ -3639,39 +3756,39 @@ function Qr(e, t, n, o, r, s) {
3639
3756
  default: $(({
3640
3757
  popperId: l,
3641
3758
  isShown: u,
3642
- shouldMountContent: h,
3643
- skipTransition: f,
3644
- autoHide: d,
3759
+ shouldMountContent: m,
3760
+ skipTransition: h,
3761
+ autoHide: p,
3645
3762
  show: c,
3646
- hide: y,
3647
- handleResize: v,
3763
+ hide: v,
3764
+ handleResize: b,
3648
3765
  onResize: g,
3649
- classes: p,
3650
- result: w
3766
+ classes: d,
3767
+ result: f
3651
3768
  }) => [
3652
3769
  W(e.$slots, "default", {
3653
3770
  shown: u,
3654
3771
  show: c,
3655
- hide: y
3772
+ hide: v
3656
3773
  }),
3657
- I(i, {
3774
+ E(i, {
3658
3775
  ref: "popperContent",
3659
3776
  "popper-id": l,
3660
3777
  theme: e.finalTheme,
3661
3778
  shown: u,
3662
- mounted: h,
3663
- "skip-transition": f,
3664
- "auto-hide": d,
3665
- "handle-resize": v,
3666
- classes: p,
3667
- result: w,
3668
- onHide: y,
3779
+ mounted: m,
3780
+ "skip-transition": h,
3781
+ "auto-hide": p,
3782
+ "handle-resize": b,
3783
+ classes: d,
3784
+ result: f,
3785
+ onHide: v,
3669
3786
  onResize: g
3670
3787
  }, {
3671
3788
  default: $(() => [
3672
3789
  W(e.$slots, "popper", {
3673
3790
  shown: u,
3674
- hide: y
3791
+ hide: v
3675
3792
  })
3676
3793
  ]),
3677
3794
  _: 2
@@ -3680,26 +3797,26 @@ function Qr(e, t, n, o, r, s) {
3680
3797
  _: 3
3681
3798
  }, 16, ["theme", "target-nodes", "popper-node", "class"]);
3682
3799
  }
3683
- const St = /* @__PURE__ */ st(Kr, [["render", Qr]]), Jr = {
3684
- ...St,
3800
+ const Bt = /* @__PURE__ */ st(ns, [["render", os]]), rs = {
3801
+ ...Bt,
3685
3802
  name: "VDropdown",
3686
3803
  vPopperTheme: "dropdown"
3687
- }, es = {
3688
- ...St,
3804
+ }, ss = {
3805
+ ...Bt,
3689
3806
  name: "VMenu",
3690
3807
  vPopperTheme: "menu"
3691
- }, ts = {
3692
- ...St,
3808
+ }, is = {
3809
+ ...Bt,
3693
3810
  name: "VTooltip",
3694
3811
  vPopperTheme: "tooltip"
3695
- }, ns = Z({
3812
+ }, as = q({
3696
3813
  name: "VTooltipDirective",
3697
3814
  components: {
3698
- Popper: Rn(),
3699
- PopperContent: zn
3815
+ Popper: Hn(),
3816
+ PopperContent: Fn
3700
3817
  },
3701
3818
  mixins: [
3702
- En
3819
+ Nn
3703
3820
  ],
3704
3821
  inheritAttrs: !1,
3705
3822
  props: {
@@ -3709,7 +3826,7 @@ const St = /* @__PURE__ */ st(Kr, [["render", Qr]]), Jr = {
3709
3826
  },
3710
3827
  html: {
3711
3828
  type: Boolean,
3712
- default: (e) => je(e.theme, "html")
3829
+ default: (e) => Ve(e.theme, "html")
3713
3830
  },
3714
3831
  content: {
3715
3832
  type: [String, Number, Function],
@@ -3717,7 +3834,7 @@ const St = /* @__PURE__ */ st(Kr, [["render", Qr]]), Jr = {
3717
3834
  },
3718
3835
  loadingContent: {
3719
3836
  type: String,
3720
- default: (e) => je(e.theme, "loadingContent")
3837
+ default: (e) => Ve(e.theme, "loadingContent")
3721
3838
  },
3722
3839
  targetNodes: {
3723
3840
  type: Function,
@@ -3772,10 +3889,10 @@ const St = /* @__PURE__ */ st(Kr, [["render", Qr]]), Jr = {
3772
3889
  this.$_isShown = !1;
3773
3890
  }
3774
3891
  }
3775
- }), os = ["innerHTML"], rs = ["textContent"];
3776
- function ss(e, t, n, o, r, s) {
3777
- const i = Fe("PopperContent"), a = Fe("Popper");
3778
- return b(), R(a, kt({ ref: "popper" }, e.$attrs, {
3892
+ }), ls = ["innerHTML"], us = ["textContent"];
3893
+ function ds(e, t, n, o, r, s) {
3894
+ const i = Ne("PopperContent"), a = Ne("Popper");
3895
+ return y(), T(a, _t({ ref: "popper" }, e.$attrs, {
3779
3896
  theme: e.theme,
3780
3897
  "target-nodes": e.targetNodes,
3781
3898
  "popper-node": () => e.$refs.popperContent.$el,
@@ -3785,16 +3902,16 @@ function ss(e, t, n, o, r, s) {
3785
3902
  default: $(({
3786
3903
  popperId: l,
3787
3904
  isShown: u,
3788
- shouldMountContent: h,
3789
- skipTransition: f,
3790
- autoHide: d,
3905
+ shouldMountContent: m,
3906
+ skipTransition: h,
3907
+ autoHide: p,
3791
3908
  hide: c,
3792
- handleResize: y,
3793
- onResize: v,
3909
+ handleResize: v,
3910
+ onResize: b,
3794
3911
  classes: g,
3795
- result: p
3912
+ result: d
3796
3913
  }) => [
3797
- I(i, {
3914
+ E(i, {
3798
3915
  ref: "popperContent",
3799
3916
  class: F({
3800
3917
  "v-popper--tooltip-loading": e.loading
@@ -3802,23 +3919,23 @@ function ss(e, t, n, o, r, s) {
3802
3919
  "popper-id": l,
3803
3920
  theme: e.theme,
3804
3921
  shown: u,
3805
- mounted: h,
3806
- "skip-transition": f,
3807
- "auto-hide": d,
3808
- "handle-resize": y,
3922
+ mounted: m,
3923
+ "skip-transition": h,
3924
+ "auto-hide": p,
3925
+ "handle-resize": v,
3809
3926
  classes: g,
3810
- result: p,
3927
+ result: d,
3811
3928
  onHide: c,
3812
- onResize: v
3929
+ onResize: b
3813
3930
  }, {
3814
3931
  default: $(() => [
3815
- e.html ? (b(), B("div", {
3932
+ e.html ? (y(), S("div", {
3816
3933
  key: 0,
3817
3934
  innerHTML: e.finalContent
3818
- }, null, 8, os)) : (b(), B("div", {
3935
+ }, null, 8, ls)) : (y(), S("div", {
3819
3936
  key: 1,
3820
- textContent: G(e.finalContent)
3821
- }, null, 8, rs))
3937
+ textContent: Z(e.finalContent)
3938
+ }, null, 8, us))
3822
3939
  ]),
3823
3940
  _: 2
3824
3941
  }, 1032, ["class", "popper-id", "theme", "shown", "mounted", "skip-transition", "auto-hide", "handle-resize", "classes", "result", "onHide", "onResize"])
@@ -3826,32 +3943,32 @@ function ss(e, t, n, o, r, s) {
3826
3943
  _: 1
3827
3944
  }, 16, ["theme", "target-nodes", "popper-node", "onApplyShow", "onApplyHide"]);
3828
3945
  }
3829
- const is = /* @__PURE__ */ st(ns, [["render", ss]]), Fn = "v-popper--has-tooltip";
3830
- function as(e, t) {
3946
+ const cs = /* @__PURE__ */ st(as, [["render", ds]]), In = "v-popper--has-tooltip";
3947
+ function ps(e, t) {
3831
3948
  let n = e.placement;
3832
3949
  if (!n && t)
3833
- for (const o of Mn)
3950
+ for (const o of On)
3834
3951
  t[o] && (n = o);
3835
- return n || (n = je(e.theme || "tooltip", "placement")), n;
3952
+ return n || (n = Ve(e.theme || "tooltip", "placement")), n;
3836
3953
  }
3837
- function Nn(e, t, n) {
3954
+ function Dn(e, t, n) {
3838
3955
  let o;
3839
3956
  const r = typeof t;
3840
- return r === "string" ? o = { content: t } : t && r === "object" ? o = t : o = { content: !1 }, o.placement = as(o, n), o.targetNodes = () => [e], o.referenceNode = () => e, o;
3957
+ return r === "string" ? o = { content: t } : t && r === "object" ? o = t : o = { content: !1 }, o.placement = ps(o, n), o.targetNodes = () => [e], o.referenceNode = () => e, o;
3841
3958
  }
3842
- let dt, Ve, ls = 0;
3843
- function us() {
3844
- if (dt)
3959
+ let ct, We, fs = 0;
3960
+ function hs() {
3961
+ if (ct)
3845
3962
  return;
3846
- Ve = D([]), dt = Jn({
3963
+ We = I([]), ct = to({
3847
3964
  name: "VTooltipDirectiveApp",
3848
3965
  setup() {
3849
3966
  return {
3850
- directives: Ve
3967
+ directives: We
3851
3968
  };
3852
3969
  },
3853
3970
  render() {
3854
- return this.directives.map((t) => eo(is, {
3971
+ return this.directives.map((t) => no(cs, {
3855
3972
  ...t.options,
3856
3973
  shown: t.shown || t.options.shown,
3857
3974
  key: t.id
@@ -3862,16 +3979,16 @@ function us() {
3862
3979
  }
3863
3980
  });
3864
3981
  const e = document.createElement("div");
3865
- document.body.appendChild(e), dt.mount(e);
3982
+ document.body.appendChild(e), ct.mount(e);
3866
3983
  }
3867
- function cs(e, t, n) {
3868
- us();
3869
- const o = D(Nn(e, t, n)), r = D(!1), s = {
3870
- id: ls++,
3984
+ function ws(e, t, n) {
3985
+ hs();
3986
+ const o = I(Dn(e, t, n)), r = I(!1), s = {
3987
+ id: fs++,
3871
3988
  options: o,
3872
3989
  shown: r
3873
3990
  };
3874
- return Ve.value.push(s), e.classList && e.classList.add(Fn), e.$_popper = {
3991
+ return We.value.push(s), e.classList && e.classList.add(In), e.$_popper = {
3875
3992
  options: o,
3876
3993
  item: s,
3877
3994
  show() {
@@ -3882,105 +3999,105 @@ function cs(e, t, n) {
3882
3999
  }
3883
4000
  };
3884
4001
  }
3885
- function In(e) {
4002
+ function jn(e) {
3886
4003
  if (e.$_popper) {
3887
- const t = Ve.value.indexOf(e.$_popper.item);
3888
- t !== -1 && Ve.value.splice(t, 1), delete e.$_popper, delete e.$_popperOldShown, delete e.$_popperMountTarget;
4004
+ const t = We.value.indexOf(e.$_popper.item);
4005
+ t !== -1 && We.value.splice(t, 1), delete e.$_popper, delete e.$_popperOldShown, delete e.$_popperMountTarget;
3889
4006
  }
3890
- e.classList && e.classList.remove(Fn);
4007
+ e.classList && e.classList.remove(In);
3891
4008
  }
3892
- function Yt(e, { value: t, modifiers: n }) {
3893
- const o = Nn(e, t, n);
3894
- if (!o.content || je(o.theme || "tooltip", "disabled"))
3895
- In(e);
4009
+ function Kt(e, { value: t, modifiers: n }) {
4010
+ const o = Dn(e, t, n);
4011
+ if (!o.content || Ve(o.theme || "tooltip", "disabled"))
4012
+ jn(e);
3896
4013
  else {
3897
4014
  let r;
3898
- e.$_popper ? (r = e.$_popper, r.options.value = o) : r = cs(e, t, n), typeof t.shown < "u" && t.shown !== e.$_popperOldShown && (e.$_popperOldShown = t.shown, t.shown ? r.show() : r.hide());
4015
+ e.$_popper ? (r = e.$_popper, r.options.value = o) : r = ws(e, t, n), typeof t.shown < "u" && t.shown !== e.$_popperOldShown && (e.$_popperOldShown = t.shown, t.shown ? r.show() : r.hide());
3899
4016
  }
3900
4017
  }
3901
- const ds = {
3902
- beforeMount: Yt,
3903
- updated: Yt,
4018
+ const ms = {
4019
+ beforeMount: Kt,
4020
+ updated: Kt,
3904
4021
  beforeUnmount(e) {
3905
- In(e);
4022
+ jn(e);
3906
4023
  }
3907
4024
  };
3908
- function Kt(e) {
3909
- e.addEventListener("mousedown", Je), e.addEventListener("click", Je), e.addEventListener("touchstart", Dn, Se ? {
4025
+ function Qt(e) {
4026
+ e.addEventListener("mousedown", Je), e.addEventListener("click", Je), e.addEventListener("touchstart", Vn, Se ? {
3910
4027
  passive: !0
3911
4028
  } : !1);
3912
4029
  }
3913
- function Qt(e) {
3914
- e.removeEventListener("mousedown", Je), e.removeEventListener("click", Je), e.removeEventListener("touchstart", Dn), e.removeEventListener("touchend", jn), e.removeEventListener("touchcancel", Vn);
4030
+ function Jt(e) {
4031
+ e.removeEventListener("mousedown", Je), e.removeEventListener("click", Je), e.removeEventListener("touchstart", Vn), e.removeEventListener("touchend", Wn), e.removeEventListener("touchcancel", qn);
3915
4032
  }
3916
4033
  function Je(e) {
3917
4034
  const t = e.currentTarget;
3918
4035
  e.closePopover = !t.$_vclosepopover_touch, e.closeAllPopover = t.$_closePopoverModifiers && !!t.$_closePopoverModifiers.all;
3919
4036
  }
3920
- function Dn(e) {
4037
+ function Vn(e) {
3921
4038
  if (e.changedTouches.length === 1) {
3922
4039
  const t = e.currentTarget;
3923
4040
  t.$_vclosepopover_touch = !0;
3924
4041
  const n = e.changedTouches[0];
3925
- t.$_vclosepopover_touchPoint = n, t.addEventListener("touchend", jn), t.addEventListener("touchcancel", Vn);
4042
+ t.$_vclosepopover_touchPoint = n, t.addEventListener("touchend", Wn), t.addEventListener("touchcancel", qn);
3926
4043
  }
3927
4044
  }
3928
- function jn(e) {
4045
+ function Wn(e) {
3929
4046
  const t = e.currentTarget;
3930
4047
  if (t.$_vclosepopover_touch = !1, e.changedTouches.length === 1) {
3931
4048
  const n = e.changedTouches[0], o = t.$_vclosepopover_touchPoint;
3932
4049
  e.closePopover = Math.abs(n.screenY - o.screenY) < 20 && Math.abs(n.screenX - o.screenX) < 20, e.closeAllPopover = t.$_closePopoverModifiers && !!t.$_closePopoverModifiers.all;
3933
4050
  }
3934
4051
  }
3935
- function Vn(e) {
4052
+ function qn(e) {
3936
4053
  const t = e.currentTarget;
3937
4054
  t.$_vclosepopover_touch = !1;
3938
4055
  }
3939
- const ps = {
4056
+ const gs = {
3940
4057
  beforeMount(e, { value: t, modifiers: n }) {
3941
- e.$_closePopoverModifiers = n, (typeof t > "u" || t) && Kt(e);
4058
+ e.$_closePopoverModifiers = n, (typeof t > "u" || t) && Qt(e);
3942
4059
  },
3943
4060
  updated(e, { value: t, oldValue: n, modifiers: o }) {
3944
- e.$_closePopoverModifiers = o, t !== n && (typeof t > "u" || t ? Kt(e) : Qt(e));
4061
+ e.$_closePopoverModifiers = o, t !== n && (typeof t > "u" || t ? Qt(e) : Jt(e));
3945
4062
  },
3946
4063
  beforeUnmount(e) {
3947
- Qt(e);
4064
+ Jt(e);
3948
4065
  }
3949
4066
  };
3950
- function fs(e, t = {}) {
3951
- e.$_vTooltipInstalled || (e.$_vTooltipInstalled = !0, Pn(ne, t), e.directive("tooltip", ds), e.directive("close-popper", ps), e.component("VTooltip", ts), e.component("VDropdown", Jr), e.component("VMenu", es));
4067
+ function vs(e, t = {}) {
4068
+ e.$_vTooltipInstalled || (e.$_vTooltipInstalled = !0, Mn(ne, t), e.directive("tooltip", ms), e.directive("close-popper", gs), e.component("VTooltip", is), e.component("VDropdown", rs), e.component("VMenu", ss));
3952
4069
  }
3953
4070
  const ys = {
3954
4071
  // eslint-disable-next-line no-undef
3955
4072
  version: "5.2.2",
3956
- install: fs,
4073
+ install: vs,
3957
4074
  options: ne
3958
- }, hs = "c3fd21c9-c91a-4c66-baa5-c3e050c2cc74", Jt = "2026-10-13T14:00:00.000Z", ms = "69756c6a-cd47-41ef-a9c3-faa0b1aeb4a1", pt = "https://i.allsvgicons.com/lucide", $e = {
4075
+ }, bs = "c3fd21c9-c91a-4c66-baa5-c3e050c2cc74", en = "2026-10-13T14:00:00.000Z", xs = "69756c6a-cd47-41ef-a9c3-faa0b1aeb4a1", pt = "https://i.allsvgicons.com/lucide", ke = {
3959
4076
  marketplace: "https://svgl.app/library/mercado-libre.svg",
3960
4077
  support: `${pt}/headphones.svg`,
3961
4078
  chat: `${pt}/message-circle.svg`,
3962
4079
  cancel: `${pt}/x.svg`
3963
- }, Be = {
3964
- logo: $e.marketplace,
4080
+ }, Te = {
4081
+ logo: ke.marketplace,
3965
4082
  title: "Mercado Livre",
3966
4083
  subtitle: "Atendimento online"
3967
- }, Te = (e, t, n) => ({
4084
+ }, Pe = (e, t, n) => ({
3968
4085
  logo: e,
3969
4086
  eyebrow: "MERCADO LIVRE",
3970
4087
  title: t,
3971
4088
  subtitle: n
3972
- }), gs = [
4089
+ }), $s = [
3973
4090
  { name: "name", alias: "Nome", required: !0 },
3974
4091
  { name: "phone", alias: "Telefone", required: !0 },
3975
4092
  { name: "email", alias: "E-mail", required: !1 }
3976
- ], vs = [
4093
+ ], ks = [
3977
4094
  { name: "name", alias: "Nome", required: !0 },
3978
4095
  { name: "phone", alias: "Telefone", required: !0 },
3979
4096
  { name: "email", alias: "E-mail", required: !1 },
3980
4097
  { name: "cpf", alias: "CPF", required: !0 }
3981
- ], Pe = (e) => ({
4098
+ ], Le = (e) => ({
3982
4099
  id: e.id,
3983
- companyId: hs,
4100
+ companyId: bs,
3984
4101
  name: e.name,
3985
4102
  action: e.action,
3986
4103
  message: null,
@@ -4003,85 +4120,85 @@ const ys = {
4003
4120
  archivedAt: null,
4004
4121
  autoTagEnabled: !1,
4005
4122
  autoTagIds: [],
4006
- createdAt: Jt,
4007
- updatedAt: Jt
4008
- }), Me = (e, t) => ({ id: e, nextRuleId: t }), en = Pe({
4123
+ createdAt: en,
4124
+ updatedAt: en
4125
+ }), Re = (e, t) => ({ id: e, nextRuleId: t }), tn = Le({
4009
4126
  id: "a1111111-1111-4111-8111-111111111105",
4010
4127
  name: "Falar com atendente",
4011
4128
  action: "service",
4012
4129
  settings: {
4013
- header: Be,
4014
- body: Te($e.chat, "Falar com atendente", "Conte o que você precisa e vamos te ajudar."),
4130
+ header: Te,
4131
+ body: Pe(ke.chat, "Falar com atendente", "Conte o que você precisa e vamos te ajudar."),
4015
4132
  features: { sendMessage: !0, sendAttachment: !0 },
4016
4133
  behavior: "chat"
4017
4134
  }
4018
- }), tn = Pe({
4135
+ }), nn = Le({
4019
4136
  id: "a1111111-1111-4111-8111-111111111101",
4020
4137
  name: "Consultar meu plano",
4021
4138
  action: "service",
4022
4139
  settings: {
4023
- header: Be,
4024
- body: Te($e.support, "Consultar meu plano", "Vamos te ajudar a entender o seu plano."),
4140
+ header: Te,
4141
+ body: Pe(ke.support, "Consultar meu plano", "Vamos te ajudar a entender o seu plano."),
4025
4142
  features: { sendMessage: !0, sendAttachment: !0 },
4026
4143
  behavior: "chat"
4027
4144
  }
4028
- }), nn = Pe({
4145
+ }), on = Le({
4029
4146
  id: "a1111111-1111-4111-8111-111111111106",
4030
4147
  name: "Cancelar plano",
4031
4148
  action: "service",
4032
4149
  settings: {
4033
- header: Be,
4034
- body: Te($e.cancel, "Cancelar plano", "Vamos verificar se o plano ainda pode ser cancelado."),
4150
+ header: Te,
4151
+ body: Pe(ke.cancel, "Cancelar plano", "Vamos verificar se o plano ainda pode ser cancelado."),
4035
4152
  features: { sendMessage: !0, sendAttachment: !0 },
4036
4153
  behavior: "chat"
4037
4154
  }
4038
- }), ft = Pe({
4155
+ }), ft = Le({
4039
4156
  id: "b2222222-2222-4222-8222-222222222201",
4040
4157
  name: "Consultar meu plano",
4041
4158
  action: "identification",
4042
4159
  settings: {
4043
- header: Be,
4044
- body: Te($e.support, "Consultar meu plano", "Informe seus dados para consultar o plano."),
4045
- form: { fields: [...gs] }
4160
+ header: Te,
4161
+ body: Pe(ke.support, "Consultar meu plano", "Informe seus dados para consultar o plano."),
4162
+ form: { fields: [...$s] }
4046
4163
  }
4047
- }), yt = Pe({
4164
+ }), ht = Le({
4048
4165
  id: "b2222222-2222-4222-8222-222222222204",
4049
4166
  name: "Cancelar plano",
4050
4167
  action: "identification",
4051
4168
  settings: {
4052
- header: Be,
4053
- body: Te($e.cancel, "Cancelar plano", "Informe seus dados para verificar o cancelamento."),
4054
- form: { fields: [...vs] }
4169
+ header: Te,
4170
+ body: Pe(ke.cancel, "Cancelar plano", "Informe seus dados para verificar o cancelamento."),
4171
+ form: { fields: [...ks] }
4055
4172
  }
4056
- }), xt = Pe({
4173
+ }), $t = Le({
4057
4174
  id: "d0000000-0000-4000-8000-000000000001",
4058
4175
  name: "Mercado Livre",
4059
4176
  action: "screen",
4060
4177
  configId: "37b0b2d3-6a07-4567-a5ad-7456a820905d",
4061
4178
  settings: {
4062
- header: Be,
4063
- body: Te($e.marketplace, "Como podemos ajudar?", "Escolha uma opção para continuar.")
4179
+ header: Te,
4180
+ body: Pe(ke.marketplace, "Como podemos ajudar?", "Escolha uma opção para continuar.")
4064
4181
  }
4065
- }), ws = {
4066
- id: ms,
4182
+ }), _s = {
4183
+ id: xs,
4067
4184
  rules: [
4068
- en,
4069
- ft,
4070
- yt,
4071
4185
  tn,
4186
+ ft,
4187
+ ht,
4072
4188
  nn,
4073
- xt
4189
+ on,
4190
+ $t
4074
4191
  ],
4075
4192
  edges: {
4076
- [xt.id]: [
4077
- Me("aa2db433-f691-4b0e-b2f3-703eb131fcc1", en.id),
4078
- Me("aa2db433-f691-4b0e-b2f3-703eb131fcc2", ft.id),
4079
- Me("aa2db433-f691-4b0e-b2f3-703eb131fcc3", yt.id)
4193
+ [$t.id]: [
4194
+ Re("aa2db433-f691-4b0e-b2f3-703eb131fcc1", tn.id),
4195
+ Re("aa2db433-f691-4b0e-b2f3-703eb131fcc2", ft.id),
4196
+ Re("aa2db433-f691-4b0e-b2f3-703eb131fcc3", ht.id)
4080
4197
  ],
4081
- [ft.id]: [Me("cc2db433-f691-4b0e-b2f3-703eb131fcc1", tn.id)],
4082
- [yt.id]: [Me("cc2db433-f691-4b0e-b2f3-703eb131fcc2", nn.id)]
4198
+ [ft.id]: [Re("cc2db433-f691-4b0e-b2f3-703eb131fcc1", nn.id)],
4199
+ [ht.id]: [Re("cc2db433-f691-4b0e-b2f3-703eb131fcc2", on.id)]
4083
4200
  }
4084
- }, xs = xt, $s = (e) => ws.rules.find((t) => t.id === e), ks = {
4201
+ }, As = $t, Ss = (e) => _s.rules.find((t) => t.id === e), Bs = {
4085
4202
  configurations: {
4086
4203
  alias: "Mercado Livre",
4087
4204
  general: {
@@ -4104,33 +4221,35 @@ const ys = {
4104
4221
  }
4105
4222
  }
4106
4223
  }
4107
- }, _s = {
4224
+ }, Ts = {
4108
4225
  install: (e) => {
4109
- e.use(ys), e.component("AppIdentificationPage", dn), e.component("AppFormTextInput", un), e.component("AppWidgetAnchor", pn), e.component("AppServicePage", yn), e.component("AppScreenPage", gn), e.component("AppWidgetView", vn), e.component("AppTextInput", ir), e.component("AppCarousel", cn), e.component("AppMessage", fn), e.component("AppWidget", ur), e.component("AppButton", be), e.component("AppGroup", de), e.component("AppIcon", Q), e.component("AppText", V);
4226
+ e.use(ys), e.component("AppIdentificationPage", pn), e.component("AppFormTextInput", dn), e.component("AppWidgetAnchor", fn), e.component("AppServicePage", mn), e.component("AppScreenPage", yn), e.component("AppWidgetView", bn), e.component("AppTextInput", cr), e.component("AppCarousel", cn), e.component("AppSkeleton", hn), e.component("AppMessage", mt), e.component("AppWidget", hr), e.component("AppButton", me), e.component("AppEmpty", wn), e.component("AppGroup", le), e.component("AppIcon", Y), e.component("AppText", j);
4110
4227
  }
4111
4228
  };
4112
4229
  export {
4113
- be as AppButton,
4230
+ me as AppButton,
4114
4231
  cn as AppCarousel,
4115
- un as AppFormTextInput,
4116
- de as AppGroup,
4117
- Q as AppIcon,
4118
- dn as AppIdentificationPage,
4119
- fn as AppMessage,
4120
- gn as AppScreenPage,
4121
- yn as AppServicePage,
4122
- V as AppText,
4123
- ir as AppTextInput,
4124
- ur as AppWidget,
4125
- pn as AppWidgetAnchor,
4126
- vn as AppWidgetView,
4127
- _s as default,
4128
- xs as demoRootRule,
4129
- ks as demoWidgetConfig,
4130
- ws as demoWorkflow,
4131
- $s as findDemoRuleById,
4232
+ wn as AppEmpty,
4233
+ dn as AppFormTextInput,
4234
+ le as AppGroup,
4235
+ Y as AppIcon,
4236
+ pn as AppIdentificationPage,
4237
+ mt as AppMessage,
4238
+ yn as AppScreenPage,
4239
+ mn as AppServicePage,
4240
+ hn as AppSkeleton,
4241
+ j as AppText,
4242
+ cr as AppTextInput,
4243
+ hr as AppWidget,
4244
+ fn as AppWidgetAnchor,
4245
+ bn as AppWidgetView,
4246
+ Ts as default,
4247
+ As as demoRootRule,
4248
+ Bs as demoWidgetConfig,
4249
+ _s as demoWorkflow,
4250
+ Ss as findDemoRuleById,
4132
4251
  qe as useAppWidget,
4133
- so as useServiceChatBehavior,
4134
- io as useServicePage,
4135
- oo as useServiceVoiceBehavior
4252
+ co as useServiceChatBehavior,
4253
+ po as useServicePage,
4254
+ so as useServiceVoiceBehavior
4136
4255
  };