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