@opens/widget-ui 1.0.5 → 1.0.7

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