@opens/widget-ui 1.0.9 → 1.0.10
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/app-icon.vue.d.ts.map +1 -0
- package/dist/composables/use-app-widget.d.ts +1 -3
- package/dist/composables/use-service-page.d.ts +2 -7
- package/dist/index.d.ts +0 -1
- package/dist/main.d.ts +0 -1
- package/dist/pages/app-identification-page.vue.d.ts.map +1 -0
- package/dist/pages/app-screen-page.vue.d.ts.map +1 -0
- package/dist/pages/app-service-page.vue.d.ts.map +1 -0
- package/dist/yunique_widget_ui.cjs.js +1 -1
- package/dist/yunique_widget_ui.es.js +260 -265
- package/dist/yunique_widget_ui.umd.js +1 -1
- package/package.json +3 -3
- package/dist/app-identification-page.vue.d.ts.map +0 -1
- package/dist/app-screen-page.vue.d.ts.map +0 -1
- package/dist/app-service-page.vue.d.ts.map +0 -1
- package/dist/icons/app-icon.vue.d.ts.map +0 -1
- /package/dist/{icons/app-icon.vue.d.ts → app-icon.vue.d.ts} +0 -0
- /package/dist/{app-identification-page.vue.d.ts → pages/app-identification-page.vue.d.ts} +0 -0
- /package/dist/{app-screen-page.vue.d.ts → pages/app-screen-page.vue.d.ts} +0 -0
- /package/dist/{app-service-page.vue.d.ts → pages/app-service-page.vue.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as D, computed as m, toValue as
|
|
1
|
+
import { ref as D, computed as m, toValue as Re, reactive as qn, watch as ye, nextTick as Ce, defineComponent as Z, createElementBlock as B, openBlock as b, normalizeClass as F, unref as _, renderSlot as W, useSlots as We, createBlock as R, withCtx as $, createElementVNode as S, createCommentVNode as M, withKeys as et, createTextVNode as O, onMounted as $t, onBeforeUnmount as on, normalizeStyle as ce, Fragment as he, renderList as Ae, resolveDynamicComponent as rn, Comment as Bt, Text as Tt, createVNode as I, isRef as sn, toDisplayString as G, createSlots as ht, withDirectives as Gn, withModifiers as Zn, vModelText as Un, Transition as an, mergeProps as kt, pushScopeId as Xn, popScopeId as Yn, normalizeProps as Kn, guardReactiveProps as Qn, resolveComponent as Fe, createApp as Jn, h as eo, withScopeId as to } from "vue";
|
|
2
2
|
function no() {
|
|
3
3
|
return {
|
|
4
4
|
maskPhone: (r) => {
|
|
@@ -35,19 +35,14 @@ function so() {
|
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
const t = so(), n = oo(), o = m(
|
|
41
|
-
() => io(_e(e)?.settings?.behavior) ? "voice" : "chat"
|
|
42
|
-
), r = m(() => o.value === "voice" ? n : t);
|
|
38
|
+
function io() {
|
|
39
|
+
const e = so(), t = oo();
|
|
43
40
|
return {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
voice: n,
|
|
47
|
-
chat: t
|
|
41
|
+
chat: e,
|
|
42
|
+
voice: t
|
|
48
43
|
};
|
|
49
44
|
}
|
|
50
|
-
const
|
|
45
|
+
const Le = D([]), lt = D(void 0), ge = D(void 0), qe = () => {
|
|
51
46
|
const e = (c) => {
|
|
52
47
|
const y = new Set(
|
|
53
48
|
Object.values(c.edges ?? {}).flatMap((v) => v.map((g) => g.nextRuleId))
|
|
@@ -62,43 +57,43 @@ const Me = D([]), lt = D(void 0), ge = D(void 0), qe = () => {
|
|
|
62
57
|
}, n = m(() => new Map((ge.value?.rules ?? []).map((c) => [c.id, c]))), o = m(() => ge.value ? e(ge.value) : void 0), r = m(() => {
|
|
63
58
|
const c = lt.value;
|
|
64
59
|
return c && n.value.get(c) || o.value;
|
|
65
|
-
}), s = m(() => !ge.value || !r.value ? [] : t(ge.value, r.value.id)), i =
|
|
60
|
+
}), s = m(() => !ge.value || !r.value ? [] : t(ge.value, r.value.id)), i = io();
|
|
66
61
|
return {
|
|
67
62
|
currentRuleId: lt,
|
|
68
63
|
currentRule: r,
|
|
69
64
|
rootRule: o,
|
|
70
65
|
workflow: ge,
|
|
71
|
-
history:
|
|
66
|
+
history: Le,
|
|
72
67
|
edges: s,
|
|
73
68
|
setCurrentRuleId: (c) => {
|
|
74
69
|
lt.value = c;
|
|
75
70
|
},
|
|
76
71
|
clearHistory: () => {
|
|
77
|
-
|
|
72
|
+
Le.value = [];
|
|
78
73
|
},
|
|
79
74
|
setWorkflow: (c) => {
|
|
80
75
|
ge.value = c;
|
|
81
76
|
},
|
|
82
77
|
pushHistory: (c) => {
|
|
83
|
-
|
|
78
|
+
Le.value.push(c);
|
|
84
79
|
},
|
|
85
80
|
setHistory: (c) => {
|
|
86
|
-
|
|
81
|
+
Le.value = [...c];
|
|
87
82
|
},
|
|
88
|
-
popHistory: () =>
|
|
83
|
+
popHistory: () => Le.value.pop(),
|
|
89
84
|
...i
|
|
90
85
|
};
|
|
91
|
-
}, ke = (e) => e === "name", Pt = (e) => !!e?.trim(),
|
|
86
|
+
}, ke = (e) => e === "name", Pt = (e) => !!e?.trim(), ao = (e) => {
|
|
92
87
|
const t = e.filter((o) => ke(o.name)), n = e.filter((o) => !ke(o.name));
|
|
93
88
|
return [...t, ...n];
|
|
94
89
|
};
|
|
95
|
-
function
|
|
90
|
+
function lo(e, t) {
|
|
96
91
|
const { maskPhone: n, maskCpf: o } = no(), { history: r } = qe(), s = D(0), i = D("forward"), a = D(null), l = m(() => {
|
|
97
|
-
const k =
|
|
98
|
-
return
|
|
92
|
+
const k = Re(e), E = k.settings?.form && k.settings.form.fields || [];
|
|
93
|
+
return ao(E);
|
|
99
94
|
}), u = qn(Object.fromEntries(l.value.map((k) => [k.name, ""]))), h = m(() => l.value[s.value]), f = m(() => s.value >= l.value.length - 1), d = m(() => r.value.length > 0 || s.value > 0), c = m(() => i.value === "back" ? "step-back" : "step-forward");
|
|
100
95
|
ye(s, async () => {
|
|
101
|
-
await
|
|
96
|
+
await Ce();
|
|
102
97
|
const k = a.value;
|
|
103
98
|
if (!k) return;
|
|
104
99
|
(k.querySelector(".is-active input") ?? k.querySelector("input"))?.focus({ preventScroll: !0 });
|
|
@@ -110,7 +105,7 @@ function uo(e, t) {
|
|
|
110
105
|
const k = l.value.find((E) => ke(E.name));
|
|
111
106
|
return k ? u[k.name]?.trim().split(/\s+/)[0] ?? "" : "";
|
|
112
107
|
}), w = (k) => {
|
|
113
|
-
const E = l.value[k], j = p.value, Y = l.value.length ? `Passo ${k + 1} de ${l.value.length}` : "", U =
|
|
108
|
+
const E = l.value[k], j = p.value, Y = l.value.length ? `Passo ${k + 1} de ${l.value.length}` : "", U = Re(e), X = k >= l.value.length - 1;
|
|
114
109
|
if (!E)
|
|
115
110
|
return {
|
|
116
111
|
eyebrow: Y,
|
|
@@ -172,7 +167,7 @@ function ln(e) {
|
|
|
172
167
|
width: o
|
|
173
168
|
};
|
|
174
169
|
}
|
|
175
|
-
function
|
|
170
|
+
function uo(e, t) {
|
|
176
171
|
const n = m(() => ({
|
|
177
172
|
"!yu-font-plus": t.plus,
|
|
178
173
|
"!yu-font-inter": t.inter,
|
|
@@ -218,7 +213,7 @@ function co(e, t) {
|
|
|
218
213
|
}));
|
|
219
214
|
return { fontClass: n, colorClass: o, weightClass: r, sizeClass: s };
|
|
220
215
|
}
|
|
221
|
-
const
|
|
216
|
+
const co = /* @__PURE__ */ Z({
|
|
222
217
|
__name: "app-text",
|
|
223
218
|
props: {
|
|
224
219
|
extraSmall: { type: Boolean },
|
|
@@ -246,7 +241,7 @@ const po = /* @__PURE__ */ Z({
|
|
|
246
241
|
white: { type: Boolean }
|
|
247
242
|
},
|
|
248
243
|
setup(e) {
|
|
249
|
-
const t = e, { fontClass: n, colorClass: o, weightClass: r, sizeClass: s } =
|
|
244
|
+
const t = e, { fontClass: n, colorClass: o, weightClass: r, sizeClass: s } = uo("text", t);
|
|
250
245
|
return (i, a) => (b(), B("p", {
|
|
251
246
|
class: F(["yu-font-primary yu-text-sm yu-font-normal yu-text-gray-900 dark:yu-text-neutral-100", [_(n), _(o), _(r), _(s)]])
|
|
252
247
|
}, [
|
|
@@ -258,7 +253,7 @@ const po = /* @__PURE__ */ Z({
|
|
|
258
253
|
for (const [o, r] of t)
|
|
259
254
|
n[o] = r;
|
|
260
255
|
return n;
|
|
261
|
-
}, V = /* @__PURE__ */ tt(
|
|
256
|
+
}, V = /* @__PURE__ */ tt(co, [["__scopeId", "data-v-030e2417"]]), de = /* @__PURE__ */ Z({
|
|
262
257
|
__name: "app-group",
|
|
263
258
|
props: {
|
|
264
259
|
fit: { type: Boolean },
|
|
@@ -309,10 +304,10 @@ const po = /* @__PURE__ */ Z({
|
|
|
309
304
|
W(c.$slots, "default")
|
|
310
305
|
], 2));
|
|
311
306
|
}
|
|
312
|
-
}),
|
|
307
|
+
}), po = {
|
|
313
308
|
class: "yu-flex yu-flex-col yu-items-stretch yu-w-full yu-cursor-text yu-gap-1",
|
|
314
309
|
"data-testid": "app-form-text-input"
|
|
315
|
-
},
|
|
310
|
+
}, fo = ["value", "type", "placeholder", "disabled", "maxlength", "aria-invalid"], un = /* @__PURE__ */ Z({
|
|
316
311
|
__name: "app-form-text-input",
|
|
317
312
|
props: {
|
|
318
313
|
modelValue: { default: "" },
|
|
@@ -366,7 +361,7 @@ const po = /* @__PURE__ */ Z({
|
|
|
366
361
|
"gap-none": ""
|
|
367
362
|
}, {
|
|
368
363
|
default: $(() => [
|
|
369
|
-
S("label",
|
|
364
|
+
S("label", po, [
|
|
370
365
|
i("default") ? (b(), R(V, {
|
|
371
366
|
key: 0,
|
|
372
367
|
small: "",
|
|
@@ -390,7 +385,7 @@ const po = /* @__PURE__ */ Z({
|
|
|
390
385
|
onFocus: p[0] || (p[0] = (w) => l.value = !0),
|
|
391
386
|
onBlur: p[1] || (p[1] = (w) => l.value = !1),
|
|
392
387
|
onKeyup: p[2] || (p[2] = et((w) => r("keyup-enter"), ["enter"]))
|
|
393
|
-
}, null, 42,
|
|
388
|
+
}, null, 42, fo)
|
|
394
389
|
]),
|
|
395
390
|
i("feedback") ? (b(), B("div", {
|
|
396
391
|
key: 0,
|
|
@@ -403,7 +398,7 @@ const po = /* @__PURE__ */ Z({
|
|
|
403
398
|
}, 8, ["class"]));
|
|
404
399
|
}
|
|
405
400
|
});
|
|
406
|
-
function
|
|
401
|
+
function yo(e) {
|
|
407
402
|
const t = m(() => e.small ? "!yu-h-8 !yu-min-h-[2rem]" : ""), n = m(() => "!yu-text-xs"), o = m(() => e.small ? "yu-px-[0.625rem]" : "yu-p-[0.9rem]"), r = m(() => e.fluid ? "!yu-w-full" : "yu-w-fit");
|
|
408
403
|
return {
|
|
409
404
|
height: t,
|
|
@@ -433,7 +428,7 @@ const Q = /* @__PURE__ */ Z({
|
|
|
433
428
|
W(s.$slots, "default")
|
|
434
429
|
], 2));
|
|
435
430
|
}
|
|
436
|
-
}),
|
|
431
|
+
}), ho = ["disabled"], mo = { class: "yu-flex yu-items-center yu-justify-center yu-gap-2" }, be = /* @__PURE__ */ Z({
|
|
437
432
|
__name: "app-button",
|
|
438
433
|
props: {
|
|
439
434
|
small: Boolean,
|
|
@@ -457,7 +452,7 @@ const Q = /* @__PURE__ */ Z({
|
|
|
457
452
|
function o(c) {
|
|
458
453
|
return !!n.value[c];
|
|
459
454
|
}
|
|
460
|
-
const { height: r, textSize: s, padding: i, width: a } =
|
|
455
|
+
const { height: r, textSize: s, padding: i, width: a } = yo(t), l = m(() => t.soft ? "yu-bg-primary-50 !yu-text-primary-400" : t.alert ? "yu-bg-red-500 !yu-text-white" : t.warning ? "yu-bg-amber-500 !yu-text-white" : t.success ? "yu-bg-green-500 !yu-text-white" : t.outline ? "yu-bg-transparent !yu-border-gray-200 hover:!yu-bg-gray-100 hover:!yu-border-gray-300 dark:!yu-border-neutral-600 dark:hover:!yu-bg-neutral-700 dark:hover:!yu-border-neutral-500 dark:!yu-text-neutral-100" : t.ghost ? "yu-bg-transparent !yu-text-gray-700 hover:!yu-bg-gray-100 dark:!yu-text-neutral-200 dark:hover:!yu-bg-neutral-700" : t.link ? "yu-bg-transparent !yu-text-blue-600 hover:yu-underline" : "yu-bg-primary-500 !yu-text-[var(--yu-primary-fg)]"), u = m(() => t.block ? "yu-rounded-none" : t.round ? "yu-rounded-full" : "yu-rounded-lg"), h = m(() => t.icon && t.small ? "!yu-w-8 !yu-h-8 yu-p-0" : t.icon ? "!yu-w-11 !yu-h-11 yu-p-0" : i.value), f = m(() => t.icon ? "yu-justify-center" : "yu-justify-between"), d = m(() => t.disabled || t.loading ? "yu-opacity-50 yu-pointer-events-none" : "");
|
|
461
456
|
return (c, y) => (b(), B("button", {
|
|
462
457
|
class: F(["yu-inline-flex yu-items-center yu-gap-2 yu-cursor-pointer yu-transition-all yu-border yu-border-transparent disabled:yu-opacity-50 disabled:yu-pointer-events-none hover:yu-opacity-80 focus:yu-outline-hidden focus:yu-opacity-80", [_(s), l.value, u.value, _(a), _(r), d.value, h.value, f.value]]),
|
|
463
458
|
type: "button",
|
|
@@ -465,7 +460,7 @@ const Q = /* @__PURE__ */ Z({
|
|
|
465
460
|
"data-testid": "app-button",
|
|
466
461
|
onClick: y[0] || (y[0] = (v) => c.$emit("click", v))
|
|
467
462
|
}, [
|
|
468
|
-
S("div",
|
|
463
|
+
S("div", mo, [
|
|
469
464
|
e.loading ? (b(), R(Q, {
|
|
470
465
|
key: 0,
|
|
471
466
|
class: "yu-animate-spin yu-flex yu-items-center yu-justify-center",
|
|
@@ -505,9 +500,9 @@ const Q = /* @__PURE__ */ Z({
|
|
|
505
500
|
]),
|
|
506
501
|
_: 3
|
|
507
502
|
})) : M("", !0)
|
|
508
|
-
], 10,
|
|
503
|
+
], 10, ho));
|
|
509
504
|
}
|
|
510
|
-
}),
|
|
505
|
+
}), go = ["aria-hidden"], vo = /* @__PURE__ */ Z({
|
|
511
506
|
__name: "app-carousel",
|
|
512
507
|
props: {
|
|
513
508
|
modelValue: { default: 0 },
|
|
@@ -556,10 +551,10 @@ const Q = /* @__PURE__ */ Z({
|
|
|
556
551
|
return ye(
|
|
557
552
|
() => [o.vertical, o.fill, o.modelValue],
|
|
558
553
|
async () => {
|
|
559
|
-
await
|
|
554
|
+
await Ce(), w();
|
|
560
555
|
}
|
|
561
556
|
), $t(async () => {
|
|
562
|
-
await
|
|
557
|
+
await Ce(), w();
|
|
563
558
|
}), on(() => {
|
|
564
559
|
f?.disconnect(), i.value?.removeEventListener("scroll", g);
|
|
565
560
|
}), t({
|
|
@@ -579,18 +574,18 @@ const Q = /* @__PURE__ */ Z({
|
|
|
579
574
|
ref: a,
|
|
580
575
|
style: ce(A.value)
|
|
581
576
|
}, [
|
|
582
|
-
(b(!0), B(he, null,
|
|
577
|
+
(b(!0), B(he, null, Ae(c(), (N, H) => (b(), B("div", {
|
|
583
578
|
class: F(["yu-carousel-slide", y(H)]),
|
|
584
579
|
key: N.key ?? H,
|
|
585
580
|
"aria-hidden": H !== d.value,
|
|
586
581
|
"data-testid": "app-carousel-slide"
|
|
587
582
|
}, [
|
|
588
583
|
(b(), R(rn(N)))
|
|
589
|
-
], 10,
|
|
584
|
+
], 10, go))), 128))
|
|
590
585
|
], 6)
|
|
591
586
|
], 6));
|
|
592
587
|
}
|
|
593
|
-
}), cn = /* @__PURE__ */ tt(
|
|
588
|
+
}), cn = /* @__PURE__ */ tt(vo, [["__scopeId", "data-v-c6006063"]]), wo = { class: "yu-flex yu-flex-col yu-w-full yu-h-full" }, bo = { class: "yu-relative yu-flex yu-items-center yu-w-full yu-shrink-0" }, xo = { class: "yu-flex yu-shrink-0 yu-items-center yu-w-fit yu-justify-center yu-px-6 yu-py-4" }, $o = { class: "yu-absolute yu-inset-0 yu-flex yu-items-center yu-justify-center yu-pointer-events-none" }, ko = { class: "yu-flex yu-items-center yu-gap-1.5" }, dn = /* @__PURE__ */ Z({
|
|
594
589
|
__name: "app-identification-page",
|
|
595
590
|
props: {
|
|
596
591
|
rule: {},
|
|
@@ -611,10 +606,10 @@ const Q = /* @__PURE__ */ Z({
|
|
|
611
606
|
fieldType: c,
|
|
612
607
|
fieldMask: y,
|
|
613
608
|
goBack: v
|
|
614
|
-
} =
|
|
615
|
-
return (g, p) => (b(), B("div",
|
|
616
|
-
S("div",
|
|
617
|
-
S("div",
|
|
609
|
+
} = lo(() => n.rule, o);
|
|
610
|
+
return (g, p) => (b(), B("div", wo, [
|
|
611
|
+
S("div", bo, [
|
|
612
|
+
S("div", xo, [
|
|
618
613
|
S("div", {
|
|
619
614
|
class: F(["yu-flex yu-items-center yu-w-fit yu-justify-center yu-cursor-pointer yu-group", { "yu-invisible yu-pointer-events-none": !_(i) }]),
|
|
620
615
|
onClick: p[0] || (p[0] = //@ts-ignore
|
|
@@ -643,9 +638,9 @@ const Q = /* @__PURE__ */ Z({
|
|
|
643
638
|
})
|
|
644
639
|
], 2)
|
|
645
640
|
]),
|
|
646
|
-
S("div",
|
|
647
|
-
S("div",
|
|
648
|
-
(b(!0), B(he, null,
|
|
641
|
+
S("div", $o, [
|
|
642
|
+
S("div", ko, [
|
|
643
|
+
(b(!0), B(he, null, Ae(_(a), (w, C) => (b(), B("div", {
|
|
649
644
|
class: F(["yu-h-1 yu-w-6 yu-rounded-full yu-transition-colors", C <= _(r) ? "yu-bg-gray-900 dark:yu-bg-white" : "yu-bg-gray-200 dark:yu-bg-neutral-600"]),
|
|
650
645
|
key: C
|
|
651
646
|
}, null, 2))), 128))
|
|
@@ -665,7 +660,7 @@ const Q = /* @__PURE__ */ Z({
|
|
|
665
660
|
fill: ""
|
|
666
661
|
}, {
|
|
667
662
|
default: $(() => [
|
|
668
|
-
(b(!0), B(he, null,
|
|
663
|
+
(b(!0), B(he, null, Ae(_(a), (w, C) => (b(), R(de, {
|
|
669
664
|
class: "yu-w-full yu-gap-8",
|
|
670
665
|
key: w.name,
|
|
671
666
|
col: "",
|
|
@@ -759,7 +754,7 @@ const Q = /* @__PURE__ */ Z({
|
|
|
759
754
|
], 512)
|
|
760
755
|
]));
|
|
761
756
|
}
|
|
762
|
-
}),
|
|
757
|
+
}), _o = ["disabled"], Co = ["src"], pn = /* @__PURE__ */ Z({
|
|
763
758
|
__name: "app-widget-anchor",
|
|
764
759
|
props: {
|
|
765
760
|
small: Boolean,
|
|
@@ -804,7 +799,7 @@ const Q = /* @__PURE__ */ Z({
|
|
|
804
799
|
src: e.logo,
|
|
805
800
|
alt: "",
|
|
806
801
|
"data-testid": "app-anchor-logo"
|
|
807
|
-
}, null, 10,
|
|
802
|
+
}, null, 10, Co)) : M("", !0),
|
|
808
803
|
n.value ? (b(), R(V, {
|
|
809
804
|
key: 2,
|
|
810
805
|
class: "!yu-text-inherit yu-whitespace-nowrap",
|
|
@@ -816,13 +811,13 @@ const Q = /* @__PURE__ */ Z({
|
|
|
816
811
|
]),
|
|
817
812
|
_: 1
|
|
818
813
|
}, 8, ["small"])) : M("", !0)
|
|
819
|
-
], 10,
|
|
814
|
+
], 10, _o));
|
|
820
815
|
}
|
|
821
|
-
}),
|
|
816
|
+
}), Ao = {
|
|
822
817
|
key: 0,
|
|
823
818
|
class: "yu-flex yu-shrink-0 yu-items-end",
|
|
824
819
|
"data-testid": "app-message-avatar"
|
|
825
|
-
},
|
|
820
|
+
}, So = {
|
|
826
821
|
key: 0,
|
|
827
822
|
class: "yu-w-full yu-flex yu-justify-end yu-h-2",
|
|
828
823
|
"data-testid": "app-message-trailing"
|
|
@@ -843,7 +838,7 @@ const Q = /* @__PURE__ */ Z({
|
|
|
843
838
|
class: F(["yu-flex yu-items-end yu-gap-2 yu-w-full", a.value]),
|
|
844
839
|
"data-testid": "app-message"
|
|
845
840
|
}, [
|
|
846
|
-
i.value ? (b(), B("div",
|
|
841
|
+
i.value ? (b(), B("div", Ao, [
|
|
847
842
|
W(u.$slots, "avatar")
|
|
848
843
|
])) : M("", !0),
|
|
849
844
|
S("div", {
|
|
@@ -851,22 +846,22 @@ const Q = /* @__PURE__ */ Z({
|
|
|
851
846
|
"data-testid": "app-message-bubble"
|
|
852
847
|
}, [
|
|
853
848
|
W(u.$slots, "default"),
|
|
854
|
-
o("trailing") ? (b(), B("div",
|
|
849
|
+
o("trailing") ? (b(), B("div", So, [
|
|
855
850
|
W(u.$slots, "trailing")
|
|
856
851
|
])) : M("", !0)
|
|
857
852
|
], 2)
|
|
858
853
|
], 2));
|
|
859
854
|
}
|
|
860
|
-
}),
|
|
855
|
+
}), Bo = { class: "yu-flex yu-flex-col yu-items-center yu-h-full yu-w-full yu-overflow-hidden" }, To = {
|
|
861
856
|
key: 0,
|
|
862
857
|
class: "yu-w-full yu-h-12"
|
|
863
|
-
},
|
|
858
|
+
}, Po = {
|
|
864
859
|
key: 0,
|
|
865
860
|
class: "yu-flex yu-items-center yu-justify-center yu-rounded-full yu-bg-gray-100 yu-w-7 yu-h-7 dark:yu-bg-neutral-700"
|
|
866
|
-
},
|
|
861
|
+
}, Lo = ["src"], Mo = {
|
|
867
862
|
key: 1,
|
|
868
863
|
class: "yu-flex yu-w-7 yu-h-7"
|
|
869
|
-
},
|
|
864
|
+
}, Ro = { class: "yu-w-full yu-shrink-0 yu-border-t yu-border-gray-200 yu-flex yu-flex-col dark:yu-border-neutral-700" }, Oo = ["onKeydown"], Ho = { class: "yu-flex yu-items-center yu-gap-2 yu-w-full yu-justify-end yu-px-6 yu-py-2" }, yn = /* @__PURE__ */ Z({
|
|
870
865
|
__name: "app-service-page",
|
|
871
866
|
props: {
|
|
872
867
|
rule: {},
|
|
@@ -883,19 +878,19 @@ const Q = /* @__PURE__ */ Z({
|
|
|
883
878
|
return ye(
|
|
884
879
|
() => s.value.length,
|
|
885
880
|
async () => {
|
|
886
|
-
await
|
|
881
|
+
await Ce(), h();
|
|
887
882
|
}
|
|
888
883
|
), $t(() => {
|
|
889
884
|
h(!1);
|
|
890
|
-
}), (c, y) => (b(), B("div",
|
|
885
|
+
}), (c, y) => (b(), B("div", Bo, [
|
|
891
886
|
S("div", {
|
|
892
887
|
class: "yu-flex yu-flex-col yu-flex-1 yu-min-h-0 yu-gap-2 yu-w-full yu-px-6 yu-overflow-y-auto",
|
|
893
888
|
ref_key: "messagesList",
|
|
894
889
|
ref: u,
|
|
895
890
|
"data-testid": "app-service-messages"
|
|
896
891
|
}, [
|
|
897
|
-
l.value ? M("", !0) : (b(), B("div",
|
|
898
|
-
(b(!0), B(he, null,
|
|
892
|
+
l.value ? M("", !0) : (b(), B("div", To)),
|
|
893
|
+
(b(!0), B(he, null, Ae(_(s), (v, g) => (b(), R(fn, {
|
|
899
894
|
key: g,
|
|
900
895
|
primary: v.from === "operator",
|
|
901
896
|
secondary: v.from === "contact",
|
|
@@ -930,12 +925,12 @@ const Q = /* @__PURE__ */ Z({
|
|
|
930
925
|
v.from !== "system" ? {
|
|
931
926
|
name: "avatar",
|
|
932
927
|
fn: $(() => [
|
|
933
|
-
_(s)[g + 1]?.from !== v.from ? (b(), B("div",
|
|
928
|
+
_(s)[g + 1]?.from !== v.from ? (b(), B("div", Po, [
|
|
934
929
|
S("img", {
|
|
935
930
|
class: "yu-rounded-full yu-w-full yu-h-full yu-object-contain",
|
|
936
931
|
src: f(v.from)
|
|
937
|
-
}, null, 8,
|
|
938
|
-
])) : (b(), B("div",
|
|
932
|
+
}, null, 8, Lo)
|
|
933
|
+
])) : (b(), B("div", Mo))
|
|
939
934
|
]),
|
|
940
935
|
key: "0"
|
|
941
936
|
} : void 0,
|
|
@@ -958,16 +953,16 @@ const Q = /* @__PURE__ */ Z({
|
|
|
958
953
|
]), 1032, ["primary", "secondary", "tertiary"]))), 128)),
|
|
959
954
|
y[2] || (y[2] = S("div", { class: "yu-w-full yu-h-12" }, null, -1))
|
|
960
955
|
], 512),
|
|
961
|
-
S("div",
|
|
956
|
+
S("div", Ro, [
|
|
962
957
|
Gn(S("textarea", {
|
|
963
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",
|
|
964
959
|
"onUpdate:modelValue": y[0] || (y[0] = (v) => sn(i) ? i.value = v : null),
|
|
965
960
|
placeholder: "Escreva uma mensagem...",
|
|
966
961
|
onKeydown: et(Zn(d, ["exact", "prevent"]), ["enter"])
|
|
967
|
-
}, null, 40,
|
|
962
|
+
}, null, 40, Oo), [
|
|
968
963
|
[Un, _(i)]
|
|
969
964
|
]),
|
|
970
|
-
S("div",
|
|
965
|
+
S("div", Ho, [
|
|
971
966
|
I(be, {
|
|
972
967
|
icon: "",
|
|
973
968
|
ghost: "",
|
|
@@ -1002,7 +997,7 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1002
997
|
])
|
|
1003
998
|
]));
|
|
1004
999
|
}
|
|
1005
|
-
}),
|
|
1000
|
+
}), zo = (e) => {
|
|
1006
1001
|
const t = (n) => n.toString(16).padStart(2, "0");
|
|
1007
1002
|
return `#${t(e.r)}${t(e.g)}${t(e.b)}`;
|
|
1008
1003
|
}, hn = () => {
|
|
@@ -1021,11 +1016,11 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1021
1016
|
},
|
|
1022
1017
|
normalizeHex: (r) => {
|
|
1023
1018
|
const s = t(r) ?? t(e);
|
|
1024
|
-
return s ?
|
|
1019
|
+
return s ? zo(s) : e.toLowerCase();
|
|
1025
1020
|
},
|
|
1026
1021
|
parseHex: t
|
|
1027
1022
|
};
|
|
1028
|
-
},
|
|
1023
|
+
}, Eo = () => typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia("(prefers-color-scheme: dark)").matches, mn = (e) => {
|
|
1029
1024
|
const { isLightHex: t, normalizeHex: n, parseHex: o } = hn(), r = (f, d) => f === "dark" ? "dark" : f === "light" ? "light" : d ? "dark" : "light", s = (f) => {
|
|
1030
1025
|
const d = n(f), c = o(d) ?? { r: 109, g: 53, b: 149 }, y = t(d);
|
|
1031
1026
|
return {
|
|
@@ -1044,7 +1039,7 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1044
1039
|
"--yu-primary-900": `color-mix(in srgb, ${d} 22%, black)`
|
|
1045
1040
|
};
|
|
1046
1041
|
}, i = (f) => {
|
|
1047
|
-
const d = D(
|
|
1042
|
+
const d = D(Eo()), c = m(() => r(Re(f), d.value)), y = m(() => c.value === "dark"), v = m(() => y.value ? "yu-dark" : "");
|
|
1048
1043
|
return $t(() => {
|
|
1049
1044
|
if (typeof window > "u" || typeof window.matchMedia != "function") return;
|
|
1050
1045
|
const g = window.matchMedia("(prefers-color-scheme: dark)");
|
|
@@ -1054,18 +1049,18 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1054
1049
|
};
|
|
1055
1050
|
g.addEventListener("change", p), on(() => g.removeEventListener("change", p));
|
|
1056
1051
|
}), { isDark: y, resolvedTheme: c, themeClass: v };
|
|
1057
|
-
}, { isDark: a, themeClass: l, resolvedTheme: u } = i(() =>
|
|
1058
|
-
...s(
|
|
1052
|
+
}, { isDark: a, themeClass: l, resolvedTheme: u } = i(() => Re(e).theme), h = m(() => ({
|
|
1053
|
+
...s(Re(e).primaryColor),
|
|
1059
1054
|
colorScheme: u.value
|
|
1060
1055
|
}));
|
|
1061
1056
|
return { isDark: a, themeClass: l, resolvedTheme: u, appearanceStyle: h };
|
|
1062
|
-
},
|
|
1057
|
+
}, Fo = { class: "yu-flex yu-flex-col yu-w-full yu-gap-8" }, No = {
|
|
1063
1058
|
key: 0,
|
|
1064
1059
|
class: "yu-flex yu-items-center yu-w-fit yu-justify-center yu-h-0"
|
|
1065
|
-
},
|
|
1060
|
+
}, Io = ["src"], Do = {
|
|
1066
1061
|
key: 1,
|
|
1067
1062
|
class: "yu-flex yu-flex-col yu-items-center yu-justify-start yu-gap-2 yu-px-6 yu-w-full"
|
|
1068
|
-
},
|
|
1063
|
+
}, jo = ["src"], Vo = ["src"], gn = /* @__PURE__ */ Z({
|
|
1069
1064
|
__name: "app-screen-page",
|
|
1070
1065
|
props: {
|
|
1071
1066
|
rule: {},
|
|
@@ -1074,8 +1069,8 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1074
1069
|
emits: ["edge-click"],
|
|
1075
1070
|
setup(e, { emit: t }) {
|
|
1076
1071
|
const n = e, o = t, { history: r } = qe(), s = m(() => r.value.length > 0), i = m(() => n.edges ?? []), a = m(() => n.rule.settings?.body);
|
|
1077
|
-
return (l, u) => (b(), B("div",
|
|
1078
|
-
s.value ? M("", !0) : (b(), B("div",
|
|
1072
|
+
return (l, u) => (b(), B("div", Fo, [
|
|
1073
|
+
s.value ? M("", !0) : (b(), B("div", No)),
|
|
1079
1074
|
I(de, {
|
|
1080
1075
|
class: "yu-px-6 yu-w-full",
|
|
1081
1076
|
col: "",
|
|
@@ -1088,7 +1083,7 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1088
1083
|
class: "yu-w-10 yu-h-10 yu-object-contain",
|
|
1089
1084
|
src: a.value.logo,
|
|
1090
1085
|
alt: ""
|
|
1091
|
-
}, null, 8,
|
|
1086
|
+
}, null, 8, Io)) : M("", !0),
|
|
1092
1087
|
a.value?.eyebrow ? (b(), R(V, {
|
|
1093
1088
|
key: 1,
|
|
1094
1089
|
class: "yu-text-center yu-uppercase yu-tracking-widest yu-leading-none",
|
|
@@ -1126,8 +1121,8 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1126
1121
|
]),
|
|
1127
1122
|
_: 1
|
|
1128
1123
|
}),
|
|
1129
|
-
i.value.length ? (b(), B("div",
|
|
1130
|
-
(b(!0), B(he, null,
|
|
1124
|
+
i.value.length ? (b(), B("div", Do, [
|
|
1125
|
+
(b(!0), B(he, null, Ae(i.value.slice(0, 3), (h) => (b(), R(be, {
|
|
1131
1126
|
class: "hover:yu-translate-x-1 yu-max-w-[25rem]",
|
|
1132
1127
|
key: h.id,
|
|
1133
1128
|
outline: "",
|
|
@@ -1149,7 +1144,7 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1149
1144
|
class: "yu-w-4 yu-h-4 yu-object-contain",
|
|
1150
1145
|
src: h.settings.body.logo,
|
|
1151
1146
|
alt: ""
|
|
1152
|
-
}, null, 8,
|
|
1147
|
+
}, null, 8, jo)
|
|
1153
1148
|
]),
|
|
1154
1149
|
key: "0"
|
|
1155
1150
|
} : void 0
|
|
@@ -1157,7 +1152,7 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1157
1152
|
S("div", {
|
|
1158
1153
|
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 }])
|
|
1159
1154
|
}, [
|
|
1160
|
-
(b(!0), B(he, null,
|
|
1155
|
+
(b(!0), B(he, null, Ae(i.value.slice(3), (h) => (b(), B("div", {
|
|
1161
1156
|
class: "yu-flex yu-flex-col yu-items-center yu-gap-2",
|
|
1162
1157
|
key: h.id
|
|
1163
1158
|
}, [
|
|
@@ -1173,7 +1168,7 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1173
1168
|
class: "yu-w-5 yu-h-5 yu-object-contain",
|
|
1174
1169
|
src: h.settings.body.logo,
|
|
1175
1170
|
alt: ""
|
|
1176
|
-
}, null, 8,
|
|
1171
|
+
}, null, 8, Vo)
|
|
1177
1172
|
]),
|
|
1178
1173
|
key: "0"
|
|
1179
1174
|
} : void 0
|
|
@@ -1192,10 +1187,10 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1192
1187
|
])) : M("", !0)
|
|
1193
1188
|
]));
|
|
1194
1189
|
}
|
|
1195
|
-
}),
|
|
1190
|
+
}), Wo = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAVCAYAAAAnzezqAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAVtSURBVHgBpVVriFVVFF6Pvc+5c+/MOM2Yo2hq41tDU1EsC50pU9NySqZUDCQiCwWZSKJQGOpHZjhpomOGNkE4pBQUgUIPGAz9Of0oGS0tCpWY0dIf93nO3q1zzzn3Xh+J1oHLPfusvb/v299ea22EO3hmz35RN2XGNyimOrZYr8g0aFZ1RH49k63VbIcogrsI4S6Wb4qhToGRmHwjk5IYypoLiu0hzjrbNn77xiW8FeHS+vdrdQOtR7ZPC8FkhbZOQIDRgIxByU/A5V/GaC2zEMQxLMatxJGL8wwU1wbvEtNk+zGTncc3p7b4+LhhS1SKPhKAdbJwlPwSjGAFFFWJPCQKCYq7sxQQczAHICQ3VkUilGxXYhCtb1Aupm9wYMm9eychwy6FfrMAOEVSARRgGy40AZiNCEMhoQj5FokruWGBKubEDgQiojW/lgTMH3qgpro21y7A7RIcwmWykm2lXcuuigICkBCsTH7NEUFkfXhU5aMxESakVUD+6PiuxcpmdxBioyz+XianZdJ98j+FA9sE/FoBEAriCBgt8o3Hcq2oIqEBSVRLRfFFoWepdWzXWGXsIUDyQJn5Z/Xgyiqb3TCiALOE/G3F5jryEJhjG9HEZ2orRNhYqPyCHCjFCMPNBGMi/Epl2bwpZZNOg7d8qOGWqVj/k9WWLpE9nshnn0ClR8uiuUR2IBLys9j6kOxifAR0kcA/KmBSntDCYB1xpldio8SdExJvkflN8p6Rbz0iplHGj4gDuRzmO3HZhL0DAH6PsXZLyrEXZEIqVihkrxL6fRppTiNU7x5M/F3nopkIKvej67v7RNSElI8LTcIsVWDPofLqFeBWhYMLyW0Yw8ZPkZs/5xrdJyY847KtId+m2cFJhGZE66Ft70hP8V1GHFRUGMaoErGlQfmIkHuUhq/JGhiAS1UJ4DNSt0ll3BccNh0IOMO6djKBeUx8/XPIwIgtucaLrTXpBiw45oi4NC2ZqRruJ7wT5OSvWJ/nogsrRLhHycttQf6RWHFaiKbAVTgvifdLOZHk3BT1SiebGJxllatHir3JwB1AM7lKq8tgC1cdyF9R5B9z0esr3H1xpVidhLqgZ9haweGcylTLZlLaqD0OQX+ygGvBy7/05P796UCAOEB7FHoHsZ6/YJNbRqS3S4LVSLJ+nvTtcd+Fb0RETzVnTuXA3cWE9yvM7/Wsv9BRNAvBP02Mm4DgiuRKL7HfJPkdlR2AZyCoin5A/ztFtMu45ljrJ52b4/JXR05t6F47fedy2fk+1k5nUtFWT9usk4epvvK/lDqdIVb2ZD13dEL5n0nh73ZJr0A0r8lxDWfG88yFNcqolAh/Oej7iJnpijQFx+kmaLpGmCkDR1xa7fxR3V/Z+EqNaN3M9553yWwVu8YU7SdLHOcCweua/F4RclJihkulCRgdmYlqn+JykzuhWO86KlsKy/Lwko+3P1spgOKX7r72g57NLZIS+kAI0kylboYaTZNCfCDIBWmtFDSeiDyub1Jxb6C4xmNxIU4gRHJmx/Wt/6a34eYH3xoHpFdLpm+SnQ2N22h4sQgYhgTXdb+wQVV8q2xg0tQ+XdT97qrbEhA/Hcs7kphxnhMHXhGQCSIg6v8QVkkwrrA7uqyKIsN2W7wJAwHS17w5zd07f7sjASUhHR1UcxIXCFg7sV0sgnTZARNdMCAiDKqKS6d8kZmNzQc799wM+7YExE9bWxu3ZKctEGvbmf1FQuaWGxdAOQHLF5EIPqN0et7DXV1//W8BlU/XUx3Dqtlbr8msF7KRlW6UckaaHLC3qvnDnT/8G85/FhA/h9s6HFKZVulya6SC5Ao30l3xdym7o5C2B5p7dgzeav0/0mtgehRo/YYAAAAASUVORK5CYII=", qo = { class: "yu-flex yu-flex-col yu-h-full yu-w-full yu-bg-white yu-overflow-hidden dark:yu-bg-neutral-800" }, Go = { class: "yu-w-full yu-shrink-0 yu-border-b yu-flex yu-items-center yu-px-4 yu-justify-between yu-gap-2 yu-bg-primary yu-h-[4.4rem] yu-text-[var(--yu-primary-fg)] yu-border-[color-mix(in_srgb,var(--yu-primary-fg)_22%,transparent)]" }, Zo = { class: "yu-flex yu-items-center yu-gap-3 yu-min-w-0 yu-flex-1" }, Uo = ["src"], Xo = { class: "yu-flex yu-flex-col yu-justify-center yu-min-w-0 yu-overflow-hidden" }, Yo = { class: "yu-flex yu-flex-col yu-w-full yu-flex-1 yu-min-h-0" }, Ko = {
|
|
1196
1191
|
key: 0,
|
|
1197
1192
|
class: "yu-flex yu-shrink-0 yu-items-center yu-w-fit yu-justify-center yu-px-6 yu-py-4"
|
|
1198
|
-
},
|
|
1193
|
+
}, Qo = { class: "yu-flex yu-flex-col yu-w-full yu-flex-1 yu-min-h-0 yu-overflow-y-auto yu-gap-8" }, Jo = { class: "yu-h-7 yu-w-full yu-shrink-0 yu-border-t yu-border-gray-200 yu-flex yu-items-center yu-justify-center yu-p-2 yu-gap-1 yu-bg-white dark:yu-border-neutral-700 dark:yu-bg-neutral-800" }, er = ["src"], tr = /* @__PURE__ */ Z({
|
|
1199
1194
|
inheritAttrs: !1,
|
|
1200
1195
|
__name: "app-widget-view",
|
|
1201
1196
|
props: {
|
|
@@ -1223,16 +1218,16 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1223
1218
|
"data-testid": "app-widget-view",
|
|
1224
1219
|
style: ce(_(l))
|
|
1225
1220
|
}, [
|
|
1226
|
-
S("div",
|
|
1227
|
-
S("div",
|
|
1228
|
-
S("div",
|
|
1221
|
+
S("div", qo, [
|
|
1222
|
+
S("div", Go, [
|
|
1223
|
+
S("div", Zo, [
|
|
1229
1224
|
_(s)?.settings?.header?.logo ? (b(), B("img", {
|
|
1230
1225
|
key: 0,
|
|
1231
1226
|
class: "yu-w-9 yu-h-9 yu-object-contain yu-rounded-lg yu-shrink-0",
|
|
1232
1227
|
src: _(s).settings.header.logo,
|
|
1233
1228
|
alt: ""
|
|
1234
|
-
}, null, 8,
|
|
1235
|
-
S("div",
|
|
1229
|
+
}, null, 8, Uo)) : M("", !0),
|
|
1230
|
+
S("div", Xo, [
|
|
1236
1231
|
_(s)?.settings?.header?.title ? (b(), R(V, {
|
|
1237
1232
|
key: 0,
|
|
1238
1233
|
class: "yu-w-full yu-truncate !yu-text-inherit",
|
|
@@ -1274,7 +1269,7 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1274
1269
|
_: 1
|
|
1275
1270
|
})) : M("", !0)
|
|
1276
1271
|
]),
|
|
1277
|
-
S("div",
|
|
1272
|
+
S("div", Yo, [
|
|
1278
1273
|
I(an, {
|
|
1279
1274
|
name: "page-transition",
|
|
1280
1275
|
mode: "out-in"
|
|
@@ -1284,7 +1279,7 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1284
1279
|
class: "yu-flex yu-flex-col yu-w-full yu-h-full yu-min-h-0",
|
|
1285
1280
|
key: _(s)?.id
|
|
1286
1281
|
}, [
|
|
1287
|
-
f.value ? (b(), B("div",
|
|
1282
|
+
f.value ? (b(), B("div", Ko, [
|
|
1288
1283
|
S("div", {
|
|
1289
1284
|
class: "yu-flex yu-items-center yu-w-fit yu-justify-center yu-cursor-pointer yu-group",
|
|
1290
1285
|
onClick: p[1] || (p[1] = (w) => o("back"))
|
|
@@ -1312,7 +1307,7 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1312
1307
|
})
|
|
1313
1308
|
])
|
|
1314
1309
|
])) : M("", !0),
|
|
1315
|
-
S("div",
|
|
1310
|
+
S("div", Qo, [
|
|
1316
1311
|
y.value && _(s) ? (b(), R(rn(y.value), {
|
|
1317
1312
|
key: 0,
|
|
1318
1313
|
rule: _(s),
|
|
@@ -1328,12 +1323,12 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1328
1323
|
_: 1
|
|
1329
1324
|
})
|
|
1330
1325
|
]),
|
|
1331
|
-
S("div",
|
|
1326
|
+
S("div", Jo, [
|
|
1332
1327
|
S("img", {
|
|
1333
1328
|
class: "yu-w-3 yu-h-2",
|
|
1334
|
-
src: _(
|
|
1329
|
+
src: _(Wo),
|
|
1335
1330
|
alt: "Opens"
|
|
1336
|
-
}, null, 8,
|
|
1331
|
+
}, null, 8, er),
|
|
1337
1332
|
I(V, {
|
|
1338
1333
|
class: "!yu-text-xxs",
|
|
1339
1334
|
gray: ""
|
|
@@ -1348,7 +1343,7 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1348
1343
|
])
|
|
1349
1344
|
], 6));
|
|
1350
1345
|
}
|
|
1351
|
-
}), vn = /* @__PURE__ */ tt(
|
|
1346
|
+
}), vn = /* @__PURE__ */ tt(tr, [["__scopeId", "data-v-12d9af03"]]), nr = { class: "yu-flex yu-h-full yu-pl-3 yu-gap-2 yu-z-10 yu-pointer-events-none" }, or = { class: "yu-h-full yu-flex yu-items-center yu-justify-center" }, rr = ["value", "type", "disabled", "maxlength"], sr = { class: "yu-absolute yu-right-2 yu-z-10 yu-flex yu-items-center yu-gap-1 yu-text-gray-500" }, ir = /* @__PURE__ */ Z({
|
|
1352
1347
|
__name: "app-text-input",
|
|
1353
1348
|
props: {
|
|
1354
1349
|
modelValue: { default: "" },
|
|
@@ -1428,8 +1423,8 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1428
1423
|
class: F(["yu-relative yu-flex yu-flex-col yu-justify-center yu-items-start yu-border yu-cursor-text yu-transition-colors yu-w-full yu-bg-transparent", [C.value, z.value, _(d), v.value]]),
|
|
1429
1424
|
"data-testid": "app-text-input"
|
|
1430
1425
|
}, [
|
|
1431
|
-
S("div",
|
|
1432
|
-
S("div",
|
|
1426
|
+
S("div", nr, [
|
|
1427
|
+
S("div", or, [
|
|
1433
1428
|
!e.loading && i("icon") ? (b(), R(Q, {
|
|
1434
1429
|
key: 0,
|
|
1435
1430
|
small: ""
|
|
@@ -1473,8 +1468,8 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1473
1468
|
onFocus: x[0] || (x[0] = (T) => l.value = !0),
|
|
1474
1469
|
onBlur: x[1] || (x[1] = (T) => l.value = !1),
|
|
1475
1470
|
onKeyup: x[2] || (x[2] = et((T) => r("keyup-enter"), ["enter"]))
|
|
1476
|
-
}, null, 42,
|
|
1477
|
-
S("div",
|
|
1471
|
+
}, null, 42, rr),
|
|
1472
|
+
S("div", sr, [
|
|
1478
1473
|
e.maxLength ? (b(), R(V, {
|
|
1479
1474
|
key: 0,
|
|
1480
1475
|
small: ""
|
|
@@ -1517,7 +1512,7 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1517
1512
|
_: 3
|
|
1518
1513
|
}, 8, ["class"]));
|
|
1519
1514
|
}
|
|
1520
|
-
}),
|
|
1515
|
+
}), ar = () => {
|
|
1521
1516
|
const { isLightHex: e, normalizeHex: t } = hn();
|
|
1522
1517
|
return {
|
|
1523
1518
|
getOffset: (s, i) => {
|
|
@@ -1554,7 +1549,7 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1554
1549
|
};
|
|
1555
1550
|
}
|
|
1556
1551
|
};
|
|
1557
|
-
},
|
|
1552
|
+
}, lr = /* @__PURE__ */ Z({
|
|
1558
1553
|
__name: "app-widget",
|
|
1559
1554
|
props: {
|
|
1560
1555
|
workflow: {},
|
|
@@ -1563,7 +1558,7 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1563
1558
|
},
|
|
1564
1559
|
emits: ["send-message", "edge-click", "submit", "close", "back", "open"],
|
|
1565
1560
|
setup(e, { emit: t }) {
|
|
1566
|
-
const n = e, o = t, r = D(n.config.configurations.general.defaultBehavior === "active"), s = D(!r.value), { setWorkflow: i } = qe(), { getOffset: a, getPosition: l, getTone: u } =
|
|
1561
|
+
const n = e, o = t, r = D(n.config.configurations.general.defaultBehavior === "active"), s = D(!r.value), { setWorkflow: i } = qe(), { getOffset: a, getPosition: l, getTone: u } = ar(), { appearanceStyle: h, themeClass: f } = mn(() => n.config.configurations.appearance), d = m(() => n.config.configurations.anchor), c = m(() => n.config.configurations.appearance), y = m(() => {
|
|
1567
1562
|
if (!(r.value && n.fullscreen))
|
|
1568
1563
|
return a(d.value.position, d.value.offset);
|
|
1569
1564
|
}), v = m(() => l(d.value.position)), g = m(() => ({
|
|
@@ -1577,7 +1572,7 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1577
1572
|
logo: d.value.logo ?? "",
|
|
1578
1573
|
label: d.value.label ?? ""
|
|
1579
1574
|
})), w = async () => {
|
|
1580
|
-
r.value || (s.value = !1, await
|
|
1575
|
+
r.value || (s.value = !1, await Ce(), r.value = !0, o("open"));
|
|
1581
1576
|
}, C = () => {
|
|
1582
1577
|
r.value && (r.value = !1, o("close"));
|
|
1583
1578
|
}, z = () => {
|
|
@@ -1622,12 +1617,12 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1622
1617
|
}, null, 8, ["style", "small", "large", "logo", "label"])) : M("", !0)
|
|
1623
1618
|
], 6));
|
|
1624
1619
|
}
|
|
1625
|
-
}),
|
|
1620
|
+
}), ur = /* @__PURE__ */ tt(lr, [["__scopeId", "data-v-5da01276"]]), cr = ["top", "right", "bottom", "left"], Lt = ["start", "end"], Mt = /* @__PURE__ */ cr.reduce((e, t) => e.concat(t, t + "-" + Lt[0], t + "-" + Lt[1]), []), Ne = Math.min, we = Math.max, dr = {
|
|
1626
1621
|
left: "right",
|
|
1627
1622
|
right: "left",
|
|
1628
1623
|
bottom: "top",
|
|
1629
1624
|
top: "bottom"
|
|
1630
|
-
},
|
|
1625
|
+
}, pr = {
|
|
1631
1626
|
start: "end",
|
|
1632
1627
|
end: "start"
|
|
1633
1628
|
};
|
|
@@ -1649,9 +1644,9 @@ function wn(e) {
|
|
|
1649
1644
|
function _t(e) {
|
|
1650
1645
|
return e === "y" ? "height" : "width";
|
|
1651
1646
|
}
|
|
1652
|
-
const
|
|
1647
|
+
const fr = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
1653
1648
|
function ae(e) {
|
|
1654
|
-
return
|
|
1649
|
+
return fr.has(ie(e)) ? "y" : "x";
|
|
1655
1650
|
}
|
|
1656
1651
|
function Ct(e) {
|
|
1657
1652
|
return wn(ae(e));
|
|
@@ -1662,35 +1657,35 @@ function bn(e, t, n) {
|
|
|
1662
1657
|
let i = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
1663
1658
|
return t.reference[s] > t.floating[s] && (i = Ye(i)), [i, Ye(i)];
|
|
1664
1659
|
}
|
|
1665
|
-
function
|
|
1660
|
+
function yr(e) {
|
|
1666
1661
|
const t = Ye(e);
|
|
1667
1662
|
return [Xe(e), t, Xe(t)];
|
|
1668
1663
|
}
|
|
1669
1664
|
function Xe(e) {
|
|
1670
|
-
return e.replace(/start|end/g, (t) =>
|
|
1665
|
+
return e.replace(/start|end/g, (t) => pr[t]);
|
|
1671
1666
|
}
|
|
1672
|
-
const Rt = ["left", "right"], Ot = ["right", "left"],
|
|
1673
|
-
function
|
|
1667
|
+
const Rt = ["left", "right"], Ot = ["right", "left"], hr = ["top", "bottom"], mr = ["bottom", "top"];
|
|
1668
|
+
function gr(e, t, n) {
|
|
1674
1669
|
switch (e) {
|
|
1675
1670
|
case "top":
|
|
1676
1671
|
case "bottom":
|
|
1677
1672
|
return n ? t ? Ot : Rt : t ? Rt : Ot;
|
|
1678
1673
|
case "left":
|
|
1679
1674
|
case "right":
|
|
1680
|
-
return t ?
|
|
1675
|
+
return t ? hr : mr;
|
|
1681
1676
|
default:
|
|
1682
1677
|
return [];
|
|
1683
1678
|
}
|
|
1684
1679
|
}
|
|
1685
|
-
function
|
|
1680
|
+
function vr(e, t, n, o) {
|
|
1686
1681
|
const r = te(e);
|
|
1687
|
-
let s =
|
|
1682
|
+
let s = gr(ie(e), n === "start", o);
|
|
1688
1683
|
return r && (s = s.map((i) => i + "-" + r), t && (s = s.concat(s.map(Xe)))), s;
|
|
1689
1684
|
}
|
|
1690
1685
|
function Ye(e) {
|
|
1691
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
1686
|
+
return e.replace(/left|right|bottom|top/g, (t) => dr[t]);
|
|
1692
1687
|
}
|
|
1693
|
-
function
|
|
1688
|
+
function wr(e) {
|
|
1694
1689
|
return {
|
|
1695
1690
|
top: 0,
|
|
1696
1691
|
right: 0,
|
|
@@ -1700,7 +1695,7 @@ function br(e) {
|
|
|
1700
1695
|
};
|
|
1701
1696
|
}
|
|
1702
1697
|
function xn(e) {
|
|
1703
|
-
return typeof e != "number" ?
|
|
1698
|
+
return typeof e != "number" ? wr(e) : {
|
|
1704
1699
|
top: e,
|
|
1705
1700
|
right: e,
|
|
1706
1701
|
bottom: e,
|
|
@@ -1773,7 +1768,7 @@ function Ht(e, t, n) {
|
|
|
1773
1768
|
}
|
|
1774
1769
|
return c;
|
|
1775
1770
|
}
|
|
1776
|
-
const
|
|
1771
|
+
const br = async (e, t, n) => {
|
|
1777
1772
|
const {
|
|
1778
1773
|
placement: o = "bottom",
|
|
1779
1774
|
strategy: r = "absolute",
|
|
@@ -1879,7 +1874,7 @@ async function nt(e, t) {
|
|
|
1879
1874
|
right: (P.right - p.right + y.right) / z.x
|
|
1880
1875
|
};
|
|
1881
1876
|
}
|
|
1882
|
-
const
|
|
1877
|
+
const xr = (e) => ({
|
|
1883
1878
|
name: "arrow",
|
|
1884
1879
|
options: e,
|
|
1885
1880
|
async fn(t) {
|
|
@@ -1917,10 +1912,10 @@ const $r = (e) => ({
|
|
|
1917
1912
|
};
|
|
1918
1913
|
}
|
|
1919
1914
|
});
|
|
1920
|
-
function
|
|
1915
|
+
function $r(e, t, n) {
|
|
1921
1916
|
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);
|
|
1922
1917
|
}
|
|
1923
|
-
const
|
|
1918
|
+
const kr = function(e) {
|
|
1924
1919
|
return e === void 0 && (e = {}), {
|
|
1925
1920
|
name: "autoPlacement",
|
|
1926
1921
|
options: e,
|
|
@@ -1938,7 +1933,7 @@ const _r = function(e) {
|
|
|
1938
1933
|
allowedPlacements: d = Mt,
|
|
1939
1934
|
autoAlignment: c = !0,
|
|
1940
1935
|
...y
|
|
1941
|
-
} = xe(e, t), v = f !== void 0 || d === Mt ?
|
|
1936
|
+
} = xe(e, t), v = f !== void 0 || d === Mt ? $r(f || null, c, d) : d, g = await nt(t, y), p = ((n = i.autoPlacement) == null ? void 0 : n.index) || 0, w = v[p];
|
|
1942
1937
|
if (w == null)
|
|
1943
1938
|
return {};
|
|
1944
1939
|
const C = bn(w, s, await (l.isRTL == null ? void 0 : l.isRTL(u.floating)));
|
|
@@ -1988,7 +1983,7 @@ const _r = function(e) {
|
|
|
1988
1983
|
} : {};
|
|
1989
1984
|
}
|
|
1990
1985
|
};
|
|
1991
|
-
},
|
|
1986
|
+
}, _r = function(e) {
|
|
1992
1987
|
return e === void 0 && (e = {}), {
|
|
1993
1988
|
name: "flip",
|
|
1994
1989
|
options: e,
|
|
@@ -2012,8 +2007,8 @@ const _r = function(e) {
|
|
|
2012
2007
|
} = xe(e, t);
|
|
2013
2008
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
2014
2009
|
return {};
|
|
2015
|
-
const p = ie(r), w = ae(a), C = ie(a) === a, z = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), P = d || (C || !v ? [Ye(a)] :
|
|
2016
|
-
!d && A && P.push(...
|
|
2010
|
+
const p = ie(r), w = ae(a), C = ie(a) === a, z = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), P = d || (C || !v ? [Ye(a)] : yr(a)), A = y !== "none";
|
|
2011
|
+
!d && A && P.push(...vr(a, v, y, z));
|
|
2017
2012
|
const x = [a, ...P], T = await nt(t, g), N = [];
|
|
2018
2013
|
let H = ((o = s.flip) == null ? void 0 : o.overflows) || [];
|
|
2019
2014
|
if (h && N.push(T[p]), f) {
|
|
@@ -2069,13 +2064,13 @@ const _r = function(e) {
|
|
|
2069
2064
|
return {};
|
|
2070
2065
|
}
|
|
2071
2066
|
};
|
|
2072
|
-
},
|
|
2073
|
-
async function
|
|
2067
|
+
}, Cr = /* @__PURE__ */ new Set(["left", "top"]);
|
|
2068
|
+
async function Ar(e, t) {
|
|
2074
2069
|
const {
|
|
2075
2070
|
placement: n,
|
|
2076
2071
|
platform: o,
|
|
2077
2072
|
elements: r
|
|
2078
|
-
} = e, s = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), i = ie(n), a = te(n), l = ae(n) === "y", u =
|
|
2073
|
+
} = e, s = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), i = ie(n), a = te(n), l = ae(n) === "y", u = Cr.has(i) ? -1 : 1, h = s && l ? -1 : 1, f = xe(t, e);
|
|
2079
2074
|
let {
|
|
2080
2075
|
mainAxis: d,
|
|
2081
2076
|
crossAxis: c,
|
|
@@ -2097,7 +2092,7 @@ async function Sr(e, t) {
|
|
|
2097
2092
|
y: c * h
|
|
2098
2093
|
};
|
|
2099
2094
|
}
|
|
2100
|
-
const
|
|
2095
|
+
const Sr = function(e) {
|
|
2101
2096
|
return e === void 0 && (e = 0), {
|
|
2102
2097
|
name: "offset",
|
|
2103
2098
|
options: e,
|
|
@@ -2108,7 +2103,7 @@ const Br = function(e) {
|
|
|
2108
2103
|
y: s,
|
|
2109
2104
|
placement: i,
|
|
2110
2105
|
middlewareData: a
|
|
2111
|
-
} = t, l = await
|
|
2106
|
+
} = t, l = await Ar(t, e);
|
|
2112
2107
|
return i === ((n = a.offset) == null ? void 0 : n.placement) && (o = a.arrow) != null && o.alignmentOffset ? {} : {
|
|
2113
2108
|
x: r + l.x,
|
|
2114
2109
|
y: s + l.y,
|
|
@@ -2119,7 +2114,7 @@ const Br = function(e) {
|
|
|
2119
2114
|
};
|
|
2120
2115
|
}
|
|
2121
2116
|
};
|
|
2122
|
-
},
|
|
2117
|
+
}, Br = function(e) {
|
|
2123
2118
|
return e === void 0 && (e = {}), {
|
|
2124
2119
|
name: "shift",
|
|
2125
2120
|
options: e,
|
|
@@ -2175,7 +2170,7 @@ const Br = function(e) {
|
|
|
2175
2170
|
};
|
|
2176
2171
|
}
|
|
2177
2172
|
};
|
|
2178
|
-
},
|
|
2173
|
+
}, Tr = function(e) {
|
|
2179
2174
|
return e === void 0 && (e = {}), {
|
|
2180
2175
|
name: "size",
|
|
2181
2176
|
options: e,
|
|
@@ -2255,7 +2250,7 @@ function ot(e) {
|
|
|
2255
2250
|
const { overflow: t, overflowX: n, overflowY: o, display: r } = re(e);
|
|
2256
2251
|
return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !["inline", "contents"].includes(r);
|
|
2257
2252
|
}
|
|
2258
|
-
function
|
|
2253
|
+
function Pr(e) {
|
|
2259
2254
|
return ["table", "td", "th"].includes(me(e));
|
|
2260
2255
|
}
|
|
2261
2256
|
function gt(e) {
|
|
@@ -2275,7 +2270,7 @@ function An(e) {
|
|
|
2275
2270
|
return pe(e) ? e : e.contextElement;
|
|
2276
2271
|
}
|
|
2277
2272
|
const Sn = { x: 1, y: 1 };
|
|
2278
|
-
function
|
|
2273
|
+
function _e(e) {
|
|
2279
2274
|
const t = An(e);
|
|
2280
2275
|
if (!se(t)) return Sn;
|
|
2281
2276
|
const n = t.getBoundingClientRect(), { width: o, height: r, fallback: s } = $n(t);
|
|
@@ -2287,14 +2282,14 @@ function Ie(e, t, n, o) {
|
|
|
2287
2282
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
2288
2283
|
const i = e.getBoundingClientRect(), a = An(e);
|
|
2289
2284
|
let l = Sn;
|
|
2290
|
-
t && (o ? pe(o) && (l =
|
|
2285
|
+
t && (o ? pe(o) && (l = _e(o)) : l = _e(e));
|
|
2291
2286
|
const u = a ? J(a) : window, h = !Cn() && n;
|
|
2292
2287
|
let f = (i.left + (h && ((r = u.visualViewport) == null ? void 0 : r.offsetLeft) || 0)) / l.x, d = (i.top + (h && ((s = u.visualViewport) == null ? void 0 : s.offsetTop) || 0)) / l.y, c = i.width / l.x, y = i.height / l.y;
|
|
2293
2288
|
if (a) {
|
|
2294
2289
|
const v = J(a), g = o && pe(o) ? J(o) : o;
|
|
2295
2290
|
let p = v.frameElement;
|
|
2296
2291
|
for (; p && o && g !== v; ) {
|
|
2297
|
-
const w =
|
|
2292
|
+
const w = _e(p), C = p.getBoundingClientRect(), z = getComputedStyle(p);
|
|
2298
2293
|
C.x += (p.clientLeft + parseFloat(z.paddingLeft)) * w.x, C.y += (p.clientTop + parseFloat(z.paddingTop)) * w.y, f *= w.x, d *= w.y, c *= w.x, y *= w.y, f += C.x, d += C.y, p = J(p).frameElement;
|
|
2299
2294
|
}
|
|
2300
2295
|
}
|
|
@@ -2335,7 +2330,7 @@ function Ft(e, t, n) {
|
|
|
2335
2330
|
}
|
|
2336
2331
|
return { width: l, height: u, x: h, y: f };
|
|
2337
2332
|
})(e, n)) : pe(t) ? Oe((function(o, r) {
|
|
2338
|
-
const s = Ie(o, !0, r === "fixed"), i = s.top + o.clientTop, a = s.left + o.clientLeft, l = se(o) ?
|
|
2333
|
+
const s = Ie(o, !0, r === "fixed"), i = s.top + o.clientTop, a = s.left + o.clientLeft, l = se(o) ? _e(o) : { x: 1, y: 1 };
|
|
2339
2334
|
return { width: o.clientWidth * l.x, height: o.clientHeight * l.y, x: a * l.x, y: i * l.y };
|
|
2340
2335
|
})(t, n)) : Oe((function(o) {
|
|
2341
2336
|
const r = fe(o), s = rt(o), i = o.ownerDocument.body, a = He(r.scrollWidth, r.clientWidth, i.scrollWidth, i.clientWidth), l = He(r.scrollHeight, r.clientHeight, i.scrollHeight, i.clientHeight);
|
|
@@ -2350,7 +2345,7 @@ function Nt(e) {
|
|
|
2350
2345
|
function It(e) {
|
|
2351
2346
|
const t = J(e);
|
|
2352
2347
|
let n = Nt(e);
|
|
2353
|
-
for (; n &&
|
|
2348
|
+
for (; n && Pr(n) && re(n).position === "static"; ) n = Nt(n);
|
|
2354
2349
|
return n && (me(n) === "html" || me(n) === "body" && re(n).position === "static" && !gt(n)) ? t : n || (function(o) {
|
|
2355
2350
|
let r = De(o);
|
|
2356
2351
|
for (; se(r) && !At(r); ) {
|
|
@@ -2360,7 +2355,7 @@ function It(e) {
|
|
|
2360
2355
|
return null;
|
|
2361
2356
|
})(e) || t;
|
|
2362
2357
|
}
|
|
2363
|
-
function
|
|
2358
|
+
function Lr(e, t, n) {
|
|
2364
2359
|
const o = se(t), r = fe(t), s = Ie(e, !0, n === "fixed", t);
|
|
2365
2360
|
let i = { scrollLeft: 0, scrollTop: 0 };
|
|
2366
2361
|
const a = { x: 0, y: 0 };
|
|
@@ -2370,7 +2365,7 @@ function Mr(e, t, n) {
|
|
|
2370
2365
|
} else r && (a.x = Bn(r));
|
|
2371
2366
|
return { x: s.left + i.scrollLeft - a.x, y: s.top + i.scrollTop - a.y, width: s.width, height: s.height };
|
|
2372
2367
|
}
|
|
2373
|
-
const
|
|
2368
|
+
const Mr = { getClippingRect: function(e) {
|
|
2374
2369
|
let { element: t, boundary: n, rootBoundary: o, strategy: r } = e;
|
|
2375
2370
|
const s = n === "clippingAncestors" ? (function(u, h) {
|
|
2376
2371
|
const f = h.get(u);
|
|
@@ -2396,18 +2391,18 @@ const Rr = { getClippingRect: function(e) {
|
|
|
2396
2391
|
const l = { x: 0, y: 0 };
|
|
2397
2392
|
if ((r || !r && o !== "fixed") && ((me(n) !== "body" || ot(s)) && (i = rt(n)), se(n))) {
|
|
2398
2393
|
const u = Ie(n);
|
|
2399
|
-
a =
|
|
2394
|
+
a = _e(n), l.x = u.x + n.clientLeft, l.y = u.y + n.clientTop;
|
|
2400
2395
|
}
|
|
2401
2396
|
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 };
|
|
2402
2397
|
}, isElement: pe, getDimensions: function(e) {
|
|
2403
2398
|
return se(e) ? $n(e) : e.getBoundingClientRect();
|
|
2404
|
-
}, getOffsetParent: It, getDocumentElement: fe, getScale:
|
|
2399
|
+
}, getOffsetParent: It, getDocumentElement: fe, getScale: _e, async getElementRects(e) {
|
|
2405
2400
|
let { reference: t, floating: n, strategy: o } = e;
|
|
2406
2401
|
const r = this.getOffsetParent || It, s = this.getDimensions;
|
|
2407
|
-
return { reference:
|
|
2408
|
-
}, getClientRects: (e) => Array.from(e.getClientRects()), isRTL: (e) => re(e).direction === "rtl" },
|
|
2409
|
-
const o = /* @__PURE__ */ new Map(), r = { platform:
|
|
2410
|
-
return
|
|
2402
|
+
return { reference: Lr(t, await r(n), o), floating: { x: 0, y: 0, ...await s(n) } };
|
|
2403
|
+
}, getClientRects: (e) => Array.from(e.getClientRects()), isRTL: (e) => re(e).direction === "rtl" }, Rr = (e, t, n) => {
|
|
2404
|
+
const o = /* @__PURE__ */ new Map(), r = { platform: Mr, ...n }, s = { ...r.platform, _c: o };
|
|
2405
|
+
return br(e, t, { ...r, platform: s });
|
|
2411
2406
|
};
|
|
2412
2407
|
function Pn(e, t) {
|
|
2413
2408
|
for (const n in t)
|
|
@@ -2499,7 +2494,7 @@ function je(e, t) {
|
|
|
2499
2494
|
while (n);
|
|
2500
2495
|
return o;
|
|
2501
2496
|
}
|
|
2502
|
-
function
|
|
2497
|
+
function Or(e) {
|
|
2503
2498
|
const t = [e];
|
|
2504
2499
|
let n = ne.themes[e] || {};
|
|
2505
2500
|
do
|
|
@@ -2515,13 +2510,13 @@ function Dt(e) {
|
|
|
2515
2510
|
while (n);
|
|
2516
2511
|
return t;
|
|
2517
2512
|
}
|
|
2518
|
-
let
|
|
2513
|
+
let Se = !1;
|
|
2519
2514
|
if (typeof window < "u") {
|
|
2520
|
-
|
|
2515
|
+
Se = !1;
|
|
2521
2516
|
try {
|
|
2522
2517
|
const e = Object.defineProperty({}, "passive", {
|
|
2523
2518
|
get() {
|
|
2524
|
-
|
|
2519
|
+
Se = !0;
|
|
2525
2520
|
}
|
|
2526
2521
|
});
|
|
2527
2522
|
window.addEventListener("test", null, e);
|
|
@@ -2917,21 +2912,21 @@ const ct = "__floating-vue__popper", Rn = () => Z({
|
|
|
2917
2912
|
strategy: this.strategy,
|
|
2918
2913
|
middleware: []
|
|
2919
2914
|
};
|
|
2920
|
-
(this.distance || this.skidding) && e.middleware.push(
|
|
2915
|
+
(this.distance || this.skidding) && e.middleware.push(Sr({
|
|
2921
2916
|
mainAxis: this.distance,
|
|
2922
2917
|
crossAxis: this.skidding
|
|
2923
2918
|
}));
|
|
2924
2919
|
const t = this.placement.startsWith("auto");
|
|
2925
|
-
if (t ? e.middleware.push(
|
|
2920
|
+
if (t ? e.middleware.push(kr({
|
|
2926
2921
|
alignment: this.placement.split("-")[1] ?? ""
|
|
2927
|
-
})) : e.placement = this.placement, this.preventOverflow && (this.shift && e.middleware.push(
|
|
2922
|
+
})) : e.placement = this.placement, this.preventOverflow && (this.shift && e.middleware.push(Br({
|
|
2928
2923
|
padding: this.overflowPadding,
|
|
2929
2924
|
boundary: this.boundary,
|
|
2930
2925
|
crossAxis: this.shiftCrossAxis
|
|
2931
|
-
})), !t && this.flip && e.middleware.push(
|
|
2926
|
+
})), !t && this.flip && e.middleware.push(_r({
|
|
2932
2927
|
padding: this.overflowPadding,
|
|
2933
2928
|
boundary: this.boundary
|
|
2934
|
-
}))), e.middleware.push(
|
|
2929
|
+
}))), e.middleware.push(xr({
|
|
2935
2930
|
element: this.$_arrowNode,
|
|
2936
2931
|
padding: this.arrowPadding
|
|
2937
2932
|
})), this.arrowOverflow && e.middleware.push({
|
|
@@ -2965,14 +2960,14 @@ const ct = "__floating-vue__popper", Rn = () => Z({
|
|
|
2965
2960
|
}
|
|
2966
2961
|
});
|
|
2967
2962
|
}
|
|
2968
|
-
(this.autoMaxSize || this.autoBoundaryMaxSize) && (this.$_innerNode.style.maxWidth = null, this.$_innerNode.style.maxHeight = null, e.middleware.push(
|
|
2963
|
+
(this.autoMaxSize || this.autoBoundaryMaxSize) && (this.$_innerNode.style.maxWidth = null, this.$_innerNode.style.maxHeight = null, e.middleware.push(Tr({
|
|
2969
2964
|
boundary: this.boundary,
|
|
2970
2965
|
padding: this.overflowPadding,
|
|
2971
2966
|
apply: ({ availableWidth: o, availableHeight: r }) => {
|
|
2972
2967
|
this.$_innerNode.style.maxWidth = o != null ? `${o}px` : null, this.$_innerNode.style.maxHeight = r != null ? `${r}px` : null;
|
|
2973
2968
|
}
|
|
2974
2969
|
})));
|
|
2975
|
-
const n = await
|
|
2970
|
+
const n = await Rr(this.$_referenceNode, this.$_popperNode, e);
|
|
2976
2971
|
Object.assign(this.result, {
|
|
2977
2972
|
x: n.x,
|
|
2978
2973
|
y: n.y,
|
|
@@ -3075,7 +3070,7 @@ const ct = "__floating-vue__popper", Rn = () => Z({
|
|
|
3075
3070
|
this.$_registerTriggerListeners(this.$_targetNodes, Vt, this.triggers, this.hideTriggers, t), this.$_registerTriggerListeners([this.$_popperNode], Vt, this.popperTriggers, this.popperHideTriggers, t);
|
|
3076
3071
|
},
|
|
3077
3072
|
$_registerEventListeners(e, t, n) {
|
|
3078
|
-
this.$_events.push({ targetNodes: e, eventType: t, handler: n }), e.forEach((o) => o.addEventListener(t, n,
|
|
3073
|
+
this.$_events.push({ targetNodes: e, eventType: t, handler: n }), e.forEach((o) => o.addEventListener(t, n, Se ? {
|
|
3079
3074
|
passive: !0
|
|
3080
3075
|
} : void 0));
|
|
3081
3076
|
},
|
|
@@ -3140,14 +3135,14 @@ const ct = "__floating-vue__popper", Rn = () => Z({
|
|
|
3140
3135
|
});
|
|
3141
3136
|
if (typeof document < "u" && typeof window < "u") {
|
|
3142
3137
|
if (Ln) {
|
|
3143
|
-
const e =
|
|
3138
|
+
const e = Se ? {
|
|
3144
3139
|
passive: !0,
|
|
3145
3140
|
capture: !0
|
|
3146
3141
|
} : !0;
|
|
3147
3142
|
document.addEventListener("touchstart", (t) => Zt(t, !0), e), document.addEventListener("touchend", (t) => Ut(t, !0), e);
|
|
3148
3143
|
} else
|
|
3149
3144
|
window.addEventListener("mousedown", (e) => Zt(e, !1), !0), window.addEventListener("click", (e) => Ut(e, !1), !0);
|
|
3150
|
-
window.addEventListener("resize",
|
|
3145
|
+
window.addEventListener("resize", zr);
|
|
3151
3146
|
}
|
|
3152
3147
|
function Zt(e, t) {
|
|
3153
3148
|
if (ne.autoHideOnMousedown)
|
|
@@ -3188,30 +3183,30 @@ function On(e, t) {
|
|
|
3188
3183
|
}
|
|
3189
3184
|
}
|
|
3190
3185
|
function Xt(e, t, n) {
|
|
3191
|
-
return n.closeAllPopover || n.closePopover && t ||
|
|
3186
|
+
return n.closeAllPopover || n.closePopover && t || Hr(e, n) && !t;
|
|
3192
3187
|
}
|
|
3193
|
-
function
|
|
3188
|
+
function Hr(e, t) {
|
|
3194
3189
|
if (typeof e.autoHide == "function") {
|
|
3195
3190
|
const n = e.autoHide(t);
|
|
3196
3191
|
return e.lastAutoHide = n, n;
|
|
3197
3192
|
}
|
|
3198
3193
|
return e.autoHide;
|
|
3199
3194
|
}
|
|
3200
|
-
function
|
|
3195
|
+
function zr() {
|
|
3201
3196
|
for (let e = 0; e < ee.length; e++)
|
|
3202
3197
|
ee[e].$_computePosition();
|
|
3203
3198
|
}
|
|
3204
3199
|
let le = 0, ue = 0, ze = 0, Ee = 0;
|
|
3205
3200
|
typeof window < "u" && window.addEventListener("mousemove", (e) => {
|
|
3206
3201
|
le = ze, ue = Ee, ze = e.clientX, Ee = e.clientY;
|
|
3207
|
-
},
|
|
3202
|
+
}, Se ? {
|
|
3208
3203
|
passive: !0
|
|
3209
3204
|
} : void 0);
|
|
3210
3205
|
function Ze(e, t, n, o, r, s, i, a) {
|
|
3211
3206
|
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));
|
|
3212
3207
|
return l >= 0 && l <= 1 && u >= 0 && u <= 1;
|
|
3213
3208
|
}
|
|
3214
|
-
const
|
|
3209
|
+
const Er = {
|
|
3215
3210
|
extends: Rn()
|
|
3216
3211
|
}, st = (e, t) => {
|
|
3217
3212
|
const n = e.__vccOpts || e;
|
|
@@ -3219,7 +3214,7 @@ const Fr = {
|
|
|
3219
3214
|
n[o] = r;
|
|
3220
3215
|
return n;
|
|
3221
3216
|
};
|
|
3222
|
-
function
|
|
3217
|
+
function Fr(e, t, n, o, r, s) {
|
|
3223
3218
|
return b(), B("div", {
|
|
3224
3219
|
ref: "reference",
|
|
3225
3220
|
class: F(["v-popper", {
|
|
@@ -3229,8 +3224,8 @@ function Nr(e, t, n, o, r, s) {
|
|
|
3229
3224
|
W(e.$slots, "default", Kn(Qn(e.slotData)))
|
|
3230
3225
|
], 2);
|
|
3231
3226
|
}
|
|
3232
|
-
const
|
|
3233
|
-
function
|
|
3227
|
+
const Nr = /* @__PURE__ */ st(Er, [["render", Fr]]);
|
|
3228
|
+
function Ir() {
|
|
3234
3229
|
var e = window.navigator.userAgent, t = e.indexOf("MSIE ");
|
|
3235
3230
|
if (t > 0)
|
|
3236
3231
|
return parseInt(e.substring(t + 5, e.indexOf(".", t)), 10);
|
|
@@ -3244,7 +3239,7 @@ function Dr() {
|
|
|
3244
3239
|
}
|
|
3245
3240
|
let Ue;
|
|
3246
3241
|
function wt() {
|
|
3247
|
-
wt.init || (wt.init = !0, Ue =
|
|
3242
|
+
wt.init || (wt.init = !0, Ue = Ir() !== -1);
|
|
3248
3243
|
}
|
|
3249
3244
|
var it = {
|
|
3250
3245
|
name: "ResizeObserver",
|
|
@@ -3266,7 +3261,7 @@ var it = {
|
|
|
3266
3261
|
"notify"
|
|
3267
3262
|
],
|
|
3268
3263
|
mounted() {
|
|
3269
|
-
wt(),
|
|
3264
|
+
wt(), Ce(() => {
|
|
3270
3265
|
this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitOnMount && this.emitSize();
|
|
3271
3266
|
});
|
|
3272
3267
|
const e = document.createElement("object");
|
|
@@ -3293,24 +3288,24 @@ var it = {
|
|
|
3293
3288
|
}
|
|
3294
3289
|
}
|
|
3295
3290
|
};
|
|
3296
|
-
const
|
|
3291
|
+
const Dr = /* @__PURE__ */ to("data-v-b329ee4c");
|
|
3297
3292
|
Xn("data-v-b329ee4c");
|
|
3298
|
-
const
|
|
3293
|
+
const jr = {
|
|
3299
3294
|
class: "resize-observer",
|
|
3300
3295
|
tabindex: "-1"
|
|
3301
3296
|
};
|
|
3302
3297
|
Yn();
|
|
3303
|
-
const
|
|
3304
|
-
it.render =
|
|
3298
|
+
const Vr = /* @__PURE__ */ Dr((e, t, n, o, r, s) => (b(), R("div", jr)));
|
|
3299
|
+
it.render = Vr;
|
|
3305
3300
|
it.__scopeId = "data-v-b329ee4c";
|
|
3306
3301
|
it.__file = "src/components/ResizeObserver.vue";
|
|
3307
3302
|
const Hn = (e = "theme") => ({
|
|
3308
3303
|
computed: {
|
|
3309
3304
|
themeClass() {
|
|
3310
|
-
return
|
|
3305
|
+
return Or(this[e]);
|
|
3311
3306
|
}
|
|
3312
3307
|
}
|
|
3313
|
-
}),
|
|
3308
|
+
}), Wr = Z({
|
|
3314
3309
|
name: "VPopperContent",
|
|
3315
3310
|
components: {
|
|
3316
3311
|
ResizeObserver: it
|
|
@@ -3338,14 +3333,14 @@ const Hn = (e = "theme") => ({
|
|
|
3338
3333
|
return e != null && !isNaN(e) ? `${e}px` : null;
|
|
3339
3334
|
}
|
|
3340
3335
|
}
|
|
3341
|
-
}),
|
|
3336
|
+
}), qr = ["id", "aria-hidden", "tabindex", "data-popper-placement"], Gr = {
|
|
3342
3337
|
ref: "inner",
|
|
3343
3338
|
class: "v-popper__inner"
|
|
3344
|
-
},
|
|
3345
|
-
|
|
3346
|
-
|
|
3339
|
+
}, Zr = /* @__PURE__ */ S("div", { class: "v-popper__arrow-outer" }, null, -1), Ur = /* @__PURE__ */ S("div", { class: "v-popper__arrow-inner" }, null, -1), Xr = [
|
|
3340
|
+
Zr,
|
|
3341
|
+
Ur
|
|
3347
3342
|
];
|
|
3348
|
-
function
|
|
3343
|
+
function Yr(e, t, n, o, r, s) {
|
|
3349
3344
|
const i = Fe("ResizeObserver");
|
|
3350
3345
|
return b(), B("div", {
|
|
3351
3346
|
id: e.popperId,
|
|
@@ -3384,7 +3379,7 @@ function Kr(e, t, n, o, r, s) {
|
|
|
3384
3379
|
transformOrigin: e.result.transformOrigin
|
|
3385
3380
|
} : void 0)
|
|
3386
3381
|
}, [
|
|
3387
|
-
S("div",
|
|
3382
|
+
S("div", Gr, [
|
|
3388
3383
|
e.mounted ? (b(), B(he, { key: 0 }, [
|
|
3389
3384
|
S("div", null, [
|
|
3390
3385
|
W(e.$slots, "default")
|
|
@@ -3402,11 +3397,11 @@ function Kr(e, t, n, o, r, s) {
|
|
|
3402
3397
|
left: e.toPx(e.result.arrow.x),
|
|
3403
3398
|
top: e.toPx(e.result.arrow.y)
|
|
3404
3399
|
} : void 0)
|
|
3405
|
-
},
|
|
3400
|
+
}, Xr, 4)
|
|
3406
3401
|
], 4)
|
|
3407
|
-
], 46,
|
|
3402
|
+
], 46, qr);
|
|
3408
3403
|
}
|
|
3409
|
-
const zn = /* @__PURE__ */ st(
|
|
3404
|
+
const zn = /* @__PURE__ */ st(Wr, [["render", Yr]]), En = {
|
|
3410
3405
|
methods: {
|
|
3411
3406
|
show(...e) {
|
|
3412
3407
|
return this.$refs.popper.show(...e);
|
|
@@ -3425,10 +3420,10 @@ const zn = /* @__PURE__ */ st(qr, [["render", Kr]]), En = {
|
|
|
3425
3420
|
let bt = function() {
|
|
3426
3421
|
};
|
|
3427
3422
|
typeof window < "u" && (bt = window.Element);
|
|
3428
|
-
const
|
|
3423
|
+
const Kr = Z({
|
|
3429
3424
|
name: "VPopperWrapper",
|
|
3430
3425
|
components: {
|
|
3431
|
-
Popper:
|
|
3426
|
+
Popper: Nr,
|
|
3432
3427
|
PopperContent: zn
|
|
3433
3428
|
},
|
|
3434
3429
|
mixins: [
|
|
@@ -3621,7 +3616,7 @@ const Qr = Z({
|
|
|
3621
3616
|
}
|
|
3622
3617
|
}
|
|
3623
3618
|
});
|
|
3624
|
-
function
|
|
3619
|
+
function Qr(e, t, n, o, r, s) {
|
|
3625
3620
|
const i = Fe("PopperContent"), a = Fe("Popper");
|
|
3626
3621
|
return b(), R(a, kt({ ref: "popper" }, e.$props, {
|
|
3627
3622
|
theme: e.finalTheme,
|
|
@@ -3684,19 +3679,19 @@ function Jr(e, t, n, o, r, s) {
|
|
|
3684
3679
|
_: 3
|
|
3685
3680
|
}, 16, ["theme", "target-nodes", "popper-node", "class"]);
|
|
3686
3681
|
}
|
|
3687
|
-
const St = /* @__PURE__ */ st(
|
|
3682
|
+
const St = /* @__PURE__ */ st(Kr, [["render", Qr]]), Jr = {
|
|
3688
3683
|
...St,
|
|
3689
3684
|
name: "VDropdown",
|
|
3690
3685
|
vPopperTheme: "dropdown"
|
|
3691
|
-
},
|
|
3686
|
+
}, es = {
|
|
3692
3687
|
...St,
|
|
3693
3688
|
name: "VMenu",
|
|
3694
3689
|
vPopperTheme: "menu"
|
|
3695
|
-
},
|
|
3690
|
+
}, ts = {
|
|
3696
3691
|
...St,
|
|
3697
3692
|
name: "VTooltip",
|
|
3698
3693
|
vPopperTheme: "tooltip"
|
|
3699
|
-
},
|
|
3694
|
+
}, ns = Z({
|
|
3700
3695
|
name: "VTooltipDirective",
|
|
3701
3696
|
components: {
|
|
3702
3697
|
Popper: Rn(),
|
|
@@ -3776,8 +3771,8 @@ const St = /* @__PURE__ */ st(Qr, [["render", Jr]]), es = {
|
|
|
3776
3771
|
this.$_isShown = !1;
|
|
3777
3772
|
}
|
|
3778
3773
|
}
|
|
3779
|
-
}),
|
|
3780
|
-
function
|
|
3774
|
+
}), os = ["innerHTML"], rs = ["textContent"];
|
|
3775
|
+
function ss(e, t, n, o, r, s) {
|
|
3781
3776
|
const i = Fe("PopperContent"), a = Fe("Popper");
|
|
3782
3777
|
return b(), R(a, kt({ ref: "popper" }, e.$attrs, {
|
|
3783
3778
|
theme: e.theme,
|
|
@@ -3819,10 +3814,10 @@ function is(e, t, n, o, r, s) {
|
|
|
3819
3814
|
e.html ? (b(), B("div", {
|
|
3820
3815
|
key: 0,
|
|
3821
3816
|
innerHTML: e.finalContent
|
|
3822
|
-
}, null, 8,
|
|
3817
|
+
}, null, 8, os)) : (b(), B("div", {
|
|
3823
3818
|
key: 1,
|
|
3824
3819
|
textContent: G(e.finalContent)
|
|
3825
|
-
}, null, 8,
|
|
3820
|
+
}, null, 8, rs))
|
|
3826
3821
|
]),
|
|
3827
3822
|
_: 2
|
|
3828
3823
|
}, 1032, ["class", "popper-id", "theme", "shown", "mounted", "skip-transition", "auto-hide", "handle-resize", "classes", "result", "onHide", "onResize"])
|
|
@@ -3830,8 +3825,8 @@ function is(e, t, n, o, r, s) {
|
|
|
3830
3825
|
_: 1
|
|
3831
3826
|
}, 16, ["theme", "target-nodes", "popper-node", "onApplyShow", "onApplyHide"]);
|
|
3832
3827
|
}
|
|
3833
|
-
const
|
|
3834
|
-
function
|
|
3828
|
+
const is = /* @__PURE__ */ st(ns, [["render", ss]]), Fn = "v-popper--has-tooltip";
|
|
3829
|
+
function as(e, t) {
|
|
3835
3830
|
let n = e.placement;
|
|
3836
3831
|
if (!n && t)
|
|
3837
3832
|
for (const o of Mn)
|
|
@@ -3841,10 +3836,10 @@ function ls(e, t) {
|
|
|
3841
3836
|
function Nn(e, t, n) {
|
|
3842
3837
|
let o;
|
|
3843
3838
|
const r = typeof t;
|
|
3844
|
-
return r === "string" ? o = { content: t } : t && r === "object" ? o = t : o = { content: !1 }, o.placement =
|
|
3839
|
+
return r === "string" ? o = { content: t } : t && r === "object" ? o = t : o = { content: !1 }, o.placement = as(o, n), o.targetNodes = () => [e], o.referenceNode = () => e, o;
|
|
3845
3840
|
}
|
|
3846
|
-
let dt, Ve,
|
|
3847
|
-
function
|
|
3841
|
+
let dt, Ve, ls = 0;
|
|
3842
|
+
function us() {
|
|
3848
3843
|
if (dt)
|
|
3849
3844
|
return;
|
|
3850
3845
|
Ve = D([]), dt = Jn({
|
|
@@ -3855,7 +3850,7 @@ function cs() {
|
|
|
3855
3850
|
};
|
|
3856
3851
|
},
|
|
3857
3852
|
render() {
|
|
3858
|
-
return this.directives.map((t) => eo(
|
|
3853
|
+
return this.directives.map((t) => eo(is, {
|
|
3859
3854
|
...t.options,
|
|
3860
3855
|
shown: t.shown || t.options.shown,
|
|
3861
3856
|
key: t.id
|
|
@@ -3868,10 +3863,10 @@ function cs() {
|
|
|
3868
3863
|
const e = document.createElement("div");
|
|
3869
3864
|
document.body.appendChild(e), dt.mount(e);
|
|
3870
3865
|
}
|
|
3871
|
-
function
|
|
3872
|
-
|
|
3866
|
+
function cs(e, t, n) {
|
|
3867
|
+
us();
|
|
3873
3868
|
const o = D(Nn(e, t, n)), r = D(!1), s = {
|
|
3874
|
-
id:
|
|
3869
|
+
id: ls++,
|
|
3875
3870
|
options: o,
|
|
3876
3871
|
shown: r
|
|
3877
3872
|
};
|
|
@@ -3899,10 +3894,10 @@ function Yt(e, { value: t, modifiers: n }) {
|
|
|
3899
3894
|
In(e);
|
|
3900
3895
|
else {
|
|
3901
3896
|
let r;
|
|
3902
|
-
e.$_popper ? (r = e.$_popper, r.options.value = o) : r =
|
|
3897
|
+
e.$_popper ? (r = e.$_popper, r.options.value = o) : r = cs(e, t, n), typeof t.shown < "u" && t.shown !== e.$_popperOldShown && (e.$_popperOldShown = t.shown, t.shown ? r.show() : r.hide());
|
|
3903
3898
|
}
|
|
3904
3899
|
}
|
|
3905
|
-
const
|
|
3900
|
+
const ds = {
|
|
3906
3901
|
beforeMount: Yt,
|
|
3907
3902
|
updated: Yt,
|
|
3908
3903
|
beforeUnmount(e) {
|
|
@@ -3910,7 +3905,7 @@ const ps = {
|
|
|
3910
3905
|
}
|
|
3911
3906
|
};
|
|
3912
3907
|
function Kt(e) {
|
|
3913
|
-
e.addEventListener("mousedown", Je), e.addEventListener("click", Je), e.addEventListener("touchstart", Dn,
|
|
3908
|
+
e.addEventListener("mousedown", Je), e.addEventListener("click", Je), e.addEventListener("touchstart", Dn, Se ? {
|
|
3914
3909
|
passive: !0
|
|
3915
3910
|
} : !1);
|
|
3916
3911
|
}
|
|
@@ -3940,7 +3935,7 @@ function Vn(e) {
|
|
|
3940
3935
|
const t = e.currentTarget;
|
|
3941
3936
|
t.$_vclosepopover_touch = !1;
|
|
3942
3937
|
}
|
|
3943
|
-
const
|
|
3938
|
+
const ps = {
|
|
3944
3939
|
beforeMount(e, { value: t, modifiers: n }) {
|
|
3945
3940
|
e.$_closePopoverModifiers = n, (typeof t > "u" || t) && Kt(e);
|
|
3946
3941
|
},
|
|
@@ -3951,40 +3946,40 @@ const fs = {
|
|
|
3951
3946
|
Qt(e);
|
|
3952
3947
|
}
|
|
3953
3948
|
};
|
|
3954
|
-
function
|
|
3955
|
-
e.$_vTooltipInstalled || (e.$_vTooltipInstalled = !0, Pn(ne, t), e.directive("tooltip",
|
|
3949
|
+
function fs(e, t = {}) {
|
|
3950
|
+
e.$_vTooltipInstalled || (e.$_vTooltipInstalled = !0, Pn(ne, t), e.directive("tooltip", ds), e.directive("close-popper", ps), e.component("VTooltip", ts), e.component("VDropdown", Jr), e.component("VMenu", es));
|
|
3956
3951
|
}
|
|
3957
|
-
const
|
|
3952
|
+
const ys = {
|
|
3958
3953
|
// eslint-disable-next-line no-undef
|
|
3959
3954
|
version: "5.2.2",
|
|
3960
|
-
install:
|
|
3955
|
+
install: fs,
|
|
3961
3956
|
options: ne
|
|
3962
|
-
},
|
|
3957
|
+
}, hs = "c3fd21c9-c91a-4c66-baa5-c3e050c2cc74", Jt = "2026-10-13T14:00:00.000Z", ms = "69756c6a-cd47-41ef-a9c3-faa0b1aeb4a1", pt = "https://i.allsvgicons.com/lucide", $e = {
|
|
3963
3958
|
marketplace: "https://svgl.app/library/mercado-libre.svg",
|
|
3964
3959
|
support: `${pt}/headphones.svg`,
|
|
3965
3960
|
chat: `${pt}/message-circle.svg`,
|
|
3966
3961
|
cancel: `${pt}/x.svg`
|
|
3967
|
-
},
|
|
3962
|
+
}, Be = {
|
|
3968
3963
|
logo: $e.marketplace,
|
|
3969
3964
|
title: "Mercado Livre",
|
|
3970
3965
|
subtitle: "Atendimento online"
|
|
3971
|
-
},
|
|
3966
|
+
}, Te = (e, t, n) => ({
|
|
3972
3967
|
logo: e,
|
|
3973
3968
|
eyebrow: "MERCADO LIVRE",
|
|
3974
3969
|
title: t,
|
|
3975
3970
|
subtitle: n
|
|
3976
|
-
}),
|
|
3971
|
+
}), gs = [
|
|
3977
3972
|
{ name: "name", alias: "Nome", required: !0 },
|
|
3978
3973
|
{ name: "phone", alias: "Telefone", required: !0 },
|
|
3979
3974
|
{ name: "email", alias: "E-mail", required: !1 }
|
|
3980
|
-
],
|
|
3975
|
+
], vs = [
|
|
3981
3976
|
{ name: "name", alias: "Nome", required: !0 },
|
|
3982
3977
|
{ name: "phone", alias: "Telefone", required: !0 },
|
|
3983
3978
|
{ name: "email", alias: "E-mail", required: !1 },
|
|
3984
3979
|
{ name: "cpf", alias: "CPF", required: !0 }
|
|
3985
|
-
],
|
|
3980
|
+
], Pe = (e) => ({
|
|
3986
3981
|
id: e.id,
|
|
3987
|
-
companyId:
|
|
3982
|
+
companyId: hs,
|
|
3988
3983
|
name: e.name,
|
|
3989
3984
|
action: e.action,
|
|
3990
3985
|
message: null,
|
|
@@ -4009,65 +4004,65 @@ const hs = {
|
|
|
4009
4004
|
autoTagIds: [],
|
|
4010
4005
|
createdAt: Jt,
|
|
4011
4006
|
updatedAt: Jt
|
|
4012
|
-
}),
|
|
4007
|
+
}), Me = (e, t) => ({ id: e, nextRuleId: t }), en = Pe({
|
|
4013
4008
|
id: "a1111111-1111-4111-8111-111111111105",
|
|
4014
4009
|
name: "Falar com atendente",
|
|
4015
4010
|
action: "service",
|
|
4016
4011
|
settings: {
|
|
4017
|
-
header:
|
|
4018
|
-
body:
|
|
4012
|
+
header: Be,
|
|
4013
|
+
body: Te($e.chat, "Falar com atendente", "Conte o que você precisa e vamos te ajudar."),
|
|
4019
4014
|
features: { sendMessage: !0, sendAttachment: !0 },
|
|
4020
4015
|
behavior: "chat"
|
|
4021
4016
|
}
|
|
4022
|
-
}), tn =
|
|
4017
|
+
}), tn = Pe({
|
|
4023
4018
|
id: "a1111111-1111-4111-8111-111111111101",
|
|
4024
4019
|
name: "Consultar meu plano",
|
|
4025
4020
|
action: "service",
|
|
4026
4021
|
settings: {
|
|
4027
|
-
header:
|
|
4028
|
-
body:
|
|
4022
|
+
header: Be,
|
|
4023
|
+
body: Te($e.support, "Consultar meu plano", "Vamos te ajudar a entender o seu plano."),
|
|
4029
4024
|
features: { sendMessage: !0, sendAttachment: !0 },
|
|
4030
4025
|
behavior: "chat"
|
|
4031
4026
|
}
|
|
4032
|
-
}), nn =
|
|
4027
|
+
}), nn = Pe({
|
|
4033
4028
|
id: "a1111111-1111-4111-8111-111111111106",
|
|
4034
4029
|
name: "Cancelar plano",
|
|
4035
4030
|
action: "service",
|
|
4036
4031
|
settings: {
|
|
4037
|
-
header:
|
|
4038
|
-
body:
|
|
4032
|
+
header: Be,
|
|
4033
|
+
body: Te($e.cancel, "Cancelar plano", "Vamos verificar se o plano ainda pode ser cancelado."),
|
|
4039
4034
|
features: { sendMessage: !0, sendAttachment: !0 },
|
|
4040
4035
|
behavior: "chat"
|
|
4041
4036
|
}
|
|
4042
|
-
}), ft =
|
|
4037
|
+
}), ft = Pe({
|
|
4043
4038
|
id: "b2222222-2222-4222-8222-222222222201",
|
|
4044
4039
|
name: "Consultar meu plano",
|
|
4045
4040
|
action: "identification",
|
|
4046
4041
|
settings: {
|
|
4047
|
-
header:
|
|
4048
|
-
body:
|
|
4049
|
-
form: { fields: [...
|
|
4042
|
+
header: Be,
|
|
4043
|
+
body: Te($e.support, "Consultar meu plano", "Informe seus dados para consultar o plano."),
|
|
4044
|
+
form: { fields: [...gs] }
|
|
4050
4045
|
}
|
|
4051
|
-
}), yt =
|
|
4046
|
+
}), yt = Pe({
|
|
4052
4047
|
id: "b2222222-2222-4222-8222-222222222204",
|
|
4053
4048
|
name: "Cancelar plano",
|
|
4054
4049
|
action: "identification",
|
|
4055
4050
|
settings: {
|
|
4056
|
-
header:
|
|
4057
|
-
body:
|
|
4058
|
-
form: { fields: [...
|
|
4051
|
+
header: Be,
|
|
4052
|
+
body: Te($e.cancel, "Cancelar plano", "Informe seus dados para verificar o cancelamento."),
|
|
4053
|
+
form: { fields: [...vs] }
|
|
4059
4054
|
}
|
|
4060
|
-
}), xt =
|
|
4055
|
+
}), xt = Pe({
|
|
4061
4056
|
id: "d0000000-0000-4000-8000-000000000001",
|
|
4062
4057
|
name: "Mercado Livre",
|
|
4063
4058
|
action: "screen",
|
|
4064
4059
|
configId: "37b0b2d3-6a07-4567-a5ad-7456a820905d",
|
|
4065
4060
|
settings: {
|
|
4066
|
-
header:
|
|
4067
|
-
body:
|
|
4061
|
+
header: Be,
|
|
4062
|
+
body: Te($e.marketplace, "Como podemos ajudar?", "Escolha uma opção para continuar.")
|
|
4068
4063
|
}
|
|
4069
|
-
}),
|
|
4070
|
-
id:
|
|
4064
|
+
}), ws = {
|
|
4065
|
+
id: ms,
|
|
4071
4066
|
rules: [
|
|
4072
4067
|
en,
|
|
4073
4068
|
ft,
|
|
@@ -4078,14 +4073,14 @@ const hs = {
|
|
|
4078
4073
|
],
|
|
4079
4074
|
edges: {
|
|
4080
4075
|
[xt.id]: [
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4076
|
+
Me("aa2db433-f691-4b0e-b2f3-703eb131fcc1", en.id),
|
|
4077
|
+
Me("aa2db433-f691-4b0e-b2f3-703eb131fcc2", ft.id),
|
|
4078
|
+
Me("aa2db433-f691-4b0e-b2f3-703eb131fcc3", yt.id)
|
|
4084
4079
|
],
|
|
4085
|
-
[ft.id]: [
|
|
4086
|
-
[yt.id]: [
|
|
4080
|
+
[ft.id]: [Me("cc2db433-f691-4b0e-b2f3-703eb131fcc1", tn.id)],
|
|
4081
|
+
[yt.id]: [Me("cc2db433-f691-4b0e-b2f3-703eb131fcc2", nn.id)]
|
|
4087
4082
|
}
|
|
4088
|
-
},
|
|
4083
|
+
}, xs = xt, $s = (e) => ws.rules.find((t) => t.id === e), ks = {
|
|
4089
4084
|
configurations: {
|
|
4090
4085
|
alias: "Mercado Livre",
|
|
4091
4086
|
general: {
|
|
@@ -4108,9 +4103,9 @@ const hs = {
|
|
|
4108
4103
|
}
|
|
4109
4104
|
}
|
|
4110
4105
|
}
|
|
4111
|
-
},
|
|
4106
|
+
}, _s = {
|
|
4112
4107
|
install: (e) => {
|
|
4113
|
-
e.use(
|
|
4108
|
+
e.use(ys), e.component("AppIdentificationPage", dn), e.component("AppFormTextInput", un), e.component("AppWidgetAnchor", pn), e.component("AppServicePage", yn), e.component("AppScreenPage", gn), e.component("AppWidgetView", vn), e.component("AppTextInput", ir), e.component("AppCarousel", cn), e.component("AppMessage", fn), e.component("AppWidget", ur), e.component("AppButton", be), e.component("AppGroup", de), e.component("AppIcon", Q), e.component("AppText", V);
|
|
4114
4109
|
}
|
|
4115
4110
|
};
|
|
4116
4111
|
export {
|
|
@@ -4124,17 +4119,17 @@ export {
|
|
|
4124
4119
|
gn as AppScreenPage,
|
|
4125
4120
|
yn as AppServicePage,
|
|
4126
4121
|
V as AppText,
|
|
4127
|
-
|
|
4128
|
-
|
|
4122
|
+
ir as AppTextInput,
|
|
4123
|
+
ur as AppWidget,
|
|
4129
4124
|
pn as AppWidgetAnchor,
|
|
4130
4125
|
vn as AppWidgetView,
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4126
|
+
_s as default,
|
|
4127
|
+
xs as demoRootRule,
|
|
4128
|
+
ks as demoWidgetConfig,
|
|
4129
|
+
ws as demoWorkflow,
|
|
4130
|
+
$s as findDemoRuleById,
|
|
4136
4131
|
qe as useAppWidget,
|
|
4137
4132
|
so as useServiceChatBehavior,
|
|
4138
|
-
|
|
4133
|
+
io as useServicePage,
|
|
4139
4134
|
oo as useServiceVoiceBehavior
|
|
4140
4135
|
};
|