@opens/widget-ui 1.0.10 → 1.0.12

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