@opens/widget-ui 1.0.9 → 1.0.11
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/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-service-page.vue.d.ts.map +1 -0
- package/dist/widget/app-widget-view.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 +261 -265
- package/dist/yunique_widget_ui.umd.js +2 -2
- package/package.json +3 -3
- package/dist/app-service-page.vue.d.ts.map +0 -1
- /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,17 +1016,18 @@ 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 {
|
|
1032
1027
|
"--yu-primary": d,
|
|
1033
1028
|
"--yu-primary-rgb": `${c.r} ${c.g} ${c.b}`,
|
|
1034
1029
|
"--yu-primary-fg": y ? "#1c1917" : "#ffffff",
|
|
1030
|
+
"--yu-primary-border": y ? "#e5e7eb" : "color-mix(in srgb, var(--yu-primary-fg) 22%, transparent)",
|
|
1035
1031
|
"--yu-primary-50": `color-mix(in srgb, ${d} 8%, white)`,
|
|
1036
1032
|
"--yu-primary-100": `color-mix(in srgb, ${d} 22%, white)`,
|
|
1037
1033
|
"--yu-primary-200": `color-mix(in srgb, ${d} 38%, white)`,
|
|
@@ -1044,7 +1040,7 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1044
1040
|
"--yu-primary-900": `color-mix(in srgb, ${d} 22%, black)`
|
|
1045
1041
|
};
|
|
1046
1042
|
}, i = (f) => {
|
|
1047
|
-
const d = D(
|
|
1043
|
+
const d = D(Eo()), c = m(() => r(Re(f), d.value)), y = m(() => c.value === "dark"), v = m(() => y.value ? "yu-dark" : "");
|
|
1048
1044
|
return $t(() => {
|
|
1049
1045
|
if (typeof window > "u" || typeof window.matchMedia != "function") return;
|
|
1050
1046
|
const g = window.matchMedia("(prefers-color-scheme: dark)");
|
|
@@ -1054,18 +1050,18 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1054
1050
|
};
|
|
1055
1051
|
g.addEventListener("change", p), on(() => g.removeEventListener("change", p));
|
|
1056
1052
|
}), { isDark: y, resolvedTheme: c, themeClass: v };
|
|
1057
|
-
}, { isDark: a, themeClass: l, resolvedTheme: u } = i(() =>
|
|
1058
|
-
...s(
|
|
1053
|
+
}, { isDark: a, themeClass: l, resolvedTheme: u } = i(() => Re(e).theme), h = m(() => ({
|
|
1054
|
+
...s(Re(e).primaryColor),
|
|
1059
1055
|
colorScheme: u.value
|
|
1060
1056
|
}));
|
|
1061
1057
|
return { isDark: a, themeClass: l, resolvedTheme: u, appearanceStyle: h };
|
|
1062
|
-
},
|
|
1058
|
+
}, Fo = { class: "yu-flex yu-flex-col yu-w-full yu-gap-8" }, No = {
|
|
1063
1059
|
key: 0,
|
|
1064
1060
|
class: "yu-flex yu-items-center yu-w-fit yu-justify-center yu-h-0"
|
|
1065
|
-
},
|
|
1061
|
+
}, Io = ["src"], Do = {
|
|
1066
1062
|
key: 1,
|
|
1067
1063
|
class: "yu-flex yu-flex-col yu-items-center yu-justify-start yu-gap-2 yu-px-6 yu-w-full"
|
|
1068
|
-
},
|
|
1064
|
+
}, jo = ["src"], Vo = ["src"], gn = /* @__PURE__ */ Z({
|
|
1069
1065
|
__name: "app-screen-page",
|
|
1070
1066
|
props: {
|
|
1071
1067
|
rule: {},
|
|
@@ -1074,8 +1070,8 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1074
1070
|
emits: ["edge-click"],
|
|
1075
1071
|
setup(e, { emit: t }) {
|
|
1076
1072
|
const n = e, o = t, { history: r } = qe(), s = m(() => r.value.length > 0), i = m(() => n.edges ?? []), a = m(() => n.rule.settings?.body);
|
|
1077
|
-
return (l, u) => (b(), B("div",
|
|
1078
|
-
s.value ? M("", !0) : (b(), B("div",
|
|
1073
|
+
return (l, u) => (b(), B("div", Fo, [
|
|
1074
|
+
s.value ? M("", !0) : (b(), B("div", No)),
|
|
1079
1075
|
I(de, {
|
|
1080
1076
|
class: "yu-px-6 yu-w-full",
|
|
1081
1077
|
col: "",
|
|
@@ -1088,7 +1084,7 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1088
1084
|
class: "yu-w-10 yu-h-10 yu-object-contain",
|
|
1089
1085
|
src: a.value.logo,
|
|
1090
1086
|
alt: ""
|
|
1091
|
-
}, null, 8,
|
|
1087
|
+
}, null, 8, Io)) : M("", !0),
|
|
1092
1088
|
a.value?.eyebrow ? (b(), R(V, {
|
|
1093
1089
|
key: 1,
|
|
1094
1090
|
class: "yu-text-center yu-uppercase yu-tracking-widest yu-leading-none",
|
|
@@ -1126,8 +1122,8 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1126
1122
|
]),
|
|
1127
1123
|
_: 1
|
|
1128
1124
|
}),
|
|
1129
|
-
i.value.length ? (b(), B("div",
|
|
1130
|
-
(b(!0), B(he, null,
|
|
1125
|
+
i.value.length ? (b(), B("div", Do, [
|
|
1126
|
+
(b(!0), B(he, null, Ae(i.value.slice(0, 3), (h) => (b(), R(be, {
|
|
1131
1127
|
class: "hover:yu-translate-x-1 yu-max-w-[25rem]",
|
|
1132
1128
|
key: h.id,
|
|
1133
1129
|
outline: "",
|
|
@@ -1149,7 +1145,7 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1149
1145
|
class: "yu-w-4 yu-h-4 yu-object-contain",
|
|
1150
1146
|
src: h.settings.body.logo,
|
|
1151
1147
|
alt: ""
|
|
1152
|
-
}, null, 8,
|
|
1148
|
+
}, null, 8, jo)
|
|
1153
1149
|
]),
|
|
1154
1150
|
key: "0"
|
|
1155
1151
|
} : void 0
|
|
@@ -1157,7 +1153,7 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1157
1153
|
S("div", {
|
|
1158
1154
|
class: F(["yu-flex yu-items-start yu-overflow-x-auto yu-w-full invisible-scrollbar yu-pt-6", { "yu-justify-start": i.value.slice(3).length > 4, "yu-justify-center": i.value.slice(3).length <= 4 }])
|
|
1159
1155
|
}, [
|
|
1160
|
-
(b(!0), B(he, null,
|
|
1156
|
+
(b(!0), B(he, null, Ae(i.value.slice(3), (h) => (b(), B("div", {
|
|
1161
1157
|
class: "yu-flex yu-flex-col yu-items-center yu-gap-2",
|
|
1162
1158
|
key: h.id
|
|
1163
1159
|
}, [
|
|
@@ -1173,7 +1169,7 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1173
1169
|
class: "yu-w-5 yu-h-5 yu-object-contain",
|
|
1174
1170
|
src: h.settings.body.logo,
|
|
1175
1171
|
alt: ""
|
|
1176
|
-
}, null, 8,
|
|
1172
|
+
}, null, 8, Vo)
|
|
1177
1173
|
]),
|
|
1178
1174
|
key: "0"
|
|
1179
1175
|
} : void 0
|
|
@@ -1192,10 +1188,10 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1192
1188
|
])) : M("", !0)
|
|
1193
1189
|
]));
|
|
1194
1190
|
}
|
|
1195
|
-
}),
|
|
1191
|
+
}), Wo = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAVCAYAAAAnzezqAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAVtSURBVHgBpVVriFVVFF6Pvc+5c+/MOM2Yo2hq41tDU1EsC50pU9NySqZUDCQiCwWZSKJQGOpHZjhpomOGNkE4pBQUgUIPGAz9Of0oGS0tCpWY0dIf93nO3q1zzzn3Xh+J1oHLPfusvb/v299ea22EO3hmz35RN2XGNyimOrZYr8g0aFZ1RH49k63VbIcogrsI4S6Wb4qhToGRmHwjk5IYypoLiu0hzjrbNn77xiW8FeHS+vdrdQOtR7ZPC8FkhbZOQIDRgIxByU/A5V/GaC2zEMQxLMatxJGL8wwU1wbvEtNk+zGTncc3p7b4+LhhS1SKPhKAdbJwlPwSjGAFFFWJPCQKCYq7sxQQczAHICQ3VkUilGxXYhCtb1Aupm9wYMm9eychwy6FfrMAOEVSARRgGy40AZiNCEMhoQj5FokruWGBKubEDgQiojW/lgTMH3qgpro21y7A7RIcwmWykm2lXcuuigICkBCsTH7NEUFkfXhU5aMxESakVUD+6PiuxcpmdxBioyz+XianZdJ98j+FA9sE/FoBEAriCBgt8o3Hcq2oIqEBSVRLRfFFoWepdWzXWGXsIUDyQJn5Z/Xgyiqb3TCiALOE/G3F5jryEJhjG9HEZ2orRNhYqPyCHCjFCMPNBGMi/Epl2bwpZZNOg7d8qOGWqVj/k9WWLpE9nshnn0ClR8uiuUR2IBLys9j6kOxifAR0kcA/KmBSntDCYB1xpldio8SdExJvkflN8p6Rbz0iplHGj4gDuRzmO3HZhL0DAH6PsXZLyrEXZEIqVihkrxL6fRppTiNU7x5M/F3nopkIKvej67v7RNSElI8LTcIsVWDPofLqFeBWhYMLyW0Yw8ZPkZs/5xrdJyY847KtId+m2cFJhGZE66Ft70hP8V1GHFRUGMaoErGlQfmIkHuUhq/JGhiAS1UJ4DNSt0ll3BccNh0IOMO6djKBeUx8/XPIwIgtucaLrTXpBiw45oi4NC2ZqRruJ7wT5OSvWJ/nogsrRLhHycttQf6RWHFaiKbAVTgvifdLOZHk3BT1SiebGJxllatHir3JwB1AM7lKq8tgC1cdyF9R5B9z0esr3H1xpVidhLqgZ9haweGcylTLZlLaqD0OQX+ygGvBy7/05P796UCAOEB7FHoHsZ6/YJNbRqS3S4LVSLJ+nvTtcd+Fb0RETzVnTuXA3cWE9yvM7/Wsv9BRNAvBP02Mm4DgiuRKL7HfJPkdlR2AZyCoin5A/ztFtMu45ljrJ52b4/JXR05t6F47fedy2fk+1k5nUtFWT9usk4epvvK/lDqdIVb2ZD13dEL5n0nh73ZJr0A0r8lxDWfG88yFNcqolAh/Oej7iJnpijQFx+kmaLpGmCkDR1xa7fxR3V/Z+EqNaN3M9553yWwVu8YU7SdLHOcCweua/F4RclJihkulCRgdmYlqn+JykzuhWO86KlsKy/Lwko+3P1spgOKX7r72g57NLZIS+kAI0kylboYaTZNCfCDIBWmtFDSeiDyub1Jxb6C4xmNxIU4gRHJmx/Wt/6a34eYH3xoHpFdLpm+SnQ2N22h4sQgYhgTXdb+wQVV8q2xg0tQ+XdT97qrbEhA/Hcs7kphxnhMHXhGQCSIg6v8QVkkwrrA7uqyKIsN2W7wJAwHS17w5zd07f7sjASUhHR1UcxIXCFg7sV0sgnTZARNdMCAiDKqKS6d8kZmNzQc799wM+7YExE9bWxu3ZKctEGvbmf1FQuaWGxdAOQHLF5EIPqN0et7DXV1//W8BlU/XUx3Dqtlbr8msF7KRlW6UckaaHLC3qvnDnT/8G85/FhA/h9s6HFKZVulya6SC5Ao30l3xdym7o5C2B5p7dgzeav0/0mtgehRo/YYAAAAASUVORK5CYII=", qo = { class: "yu-flex yu-flex-col yu-h-full yu-w-full yu-bg-white yu-overflow-hidden dark:yu-bg-neutral-800" }, Go = { class: "yu-w-full yu-shrink-0 yu-border-b yu-flex yu-items-center yu-px-4 yu-justify-between yu-gap-2 yu-bg-primary yu-h-[4.4rem] yu-text-[var(--yu-primary-fg)] yu-border-[var(--yu-primary-border)]" }, Zo = { class: "yu-flex yu-items-center yu-gap-3 yu-min-w-0 yu-flex-1" }, Uo = ["src"], Xo = { class: "yu-flex yu-flex-col yu-justify-center yu-min-w-0 yu-overflow-hidden" }, Yo = { class: "yu-flex yu-flex-col yu-w-full yu-flex-1 yu-min-h-0" }, Ko = {
|
|
1196
1192
|
key: 0,
|
|
1197
1193
|
class: "yu-flex yu-shrink-0 yu-items-center yu-w-fit yu-justify-center yu-px-6 yu-py-4"
|
|
1198
|
-
},
|
|
1194
|
+
}, Qo = { class: "yu-flex yu-flex-col yu-w-full yu-flex-1 yu-min-h-0 yu-overflow-y-auto yu-gap-8" }, Jo = { class: "yu-h-7 yu-w-full yu-shrink-0 yu-border-t yu-border-gray-200 yu-flex yu-items-center yu-justify-center yu-p-2 yu-gap-1 yu-bg-white dark:yu-border-neutral-700 dark:yu-bg-neutral-800" }, er = ["src"], tr = /* @__PURE__ */ Z({
|
|
1199
1195
|
inheritAttrs: !1,
|
|
1200
1196
|
__name: "app-widget-view",
|
|
1201
1197
|
props: {
|
|
@@ -1223,16 +1219,16 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1223
1219
|
"data-testid": "app-widget-view",
|
|
1224
1220
|
style: ce(_(l))
|
|
1225
1221
|
}, [
|
|
1226
|
-
S("div",
|
|
1227
|
-
S("div",
|
|
1228
|
-
S("div",
|
|
1222
|
+
S("div", qo, [
|
|
1223
|
+
S("div", Go, [
|
|
1224
|
+
S("div", Zo, [
|
|
1229
1225
|
_(s)?.settings?.header?.logo ? (b(), B("img", {
|
|
1230
1226
|
key: 0,
|
|
1231
1227
|
class: "yu-w-9 yu-h-9 yu-object-contain yu-rounded-lg yu-shrink-0",
|
|
1232
1228
|
src: _(s).settings.header.logo,
|
|
1233
1229
|
alt: ""
|
|
1234
|
-
}, null, 8,
|
|
1235
|
-
S("div",
|
|
1230
|
+
}, null, 8, Uo)) : M("", !0),
|
|
1231
|
+
S("div", Xo, [
|
|
1236
1232
|
_(s)?.settings?.header?.title ? (b(), R(V, {
|
|
1237
1233
|
key: 0,
|
|
1238
1234
|
class: "yu-w-full yu-truncate !yu-text-inherit",
|
|
@@ -1274,7 +1270,7 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1274
1270
|
_: 1
|
|
1275
1271
|
})) : M("", !0)
|
|
1276
1272
|
]),
|
|
1277
|
-
S("div",
|
|
1273
|
+
S("div", Yo, [
|
|
1278
1274
|
I(an, {
|
|
1279
1275
|
name: "page-transition",
|
|
1280
1276
|
mode: "out-in"
|
|
@@ -1284,7 +1280,7 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1284
1280
|
class: "yu-flex yu-flex-col yu-w-full yu-h-full yu-min-h-0",
|
|
1285
1281
|
key: _(s)?.id
|
|
1286
1282
|
}, [
|
|
1287
|
-
f.value ? (b(), B("div",
|
|
1283
|
+
f.value ? (b(), B("div", Ko, [
|
|
1288
1284
|
S("div", {
|
|
1289
1285
|
class: "yu-flex yu-items-center yu-w-fit yu-justify-center yu-cursor-pointer yu-group",
|
|
1290
1286
|
onClick: p[1] || (p[1] = (w) => o("back"))
|
|
@@ -1312,7 +1308,7 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1312
1308
|
})
|
|
1313
1309
|
])
|
|
1314
1310
|
])) : M("", !0),
|
|
1315
|
-
S("div",
|
|
1311
|
+
S("div", Qo, [
|
|
1316
1312
|
y.value && _(s) ? (b(), R(rn(y.value), {
|
|
1317
1313
|
key: 0,
|
|
1318
1314
|
rule: _(s),
|
|
@@ -1328,12 +1324,12 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1328
1324
|
_: 1
|
|
1329
1325
|
})
|
|
1330
1326
|
]),
|
|
1331
|
-
S("div",
|
|
1327
|
+
S("div", Jo, [
|
|
1332
1328
|
S("img", {
|
|
1333
1329
|
class: "yu-w-3 yu-h-2",
|
|
1334
|
-
src: _(
|
|
1330
|
+
src: _(Wo),
|
|
1335
1331
|
alt: "Opens"
|
|
1336
|
-
}, null, 8,
|
|
1332
|
+
}, null, 8, er),
|
|
1337
1333
|
I(V, {
|
|
1338
1334
|
class: "!yu-text-xxs",
|
|
1339
1335
|
gray: ""
|
|
@@ -1348,7 +1344,7 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1348
1344
|
])
|
|
1349
1345
|
], 6));
|
|
1350
1346
|
}
|
|
1351
|
-
}), vn = /* @__PURE__ */ tt(
|
|
1347
|
+
}), vn = /* @__PURE__ */ tt(tr, [["__scopeId", "data-v-5996da4f"]]), nr = { class: "yu-flex yu-h-full yu-pl-3 yu-gap-2 yu-z-10 yu-pointer-events-none" }, or = { class: "yu-h-full yu-flex yu-items-center yu-justify-center" }, rr = ["value", "type", "disabled", "maxlength"], sr = { class: "yu-absolute yu-right-2 yu-z-10 yu-flex yu-items-center yu-gap-1 yu-text-gray-500" }, ir = /* @__PURE__ */ Z({
|
|
1352
1348
|
__name: "app-text-input",
|
|
1353
1349
|
props: {
|
|
1354
1350
|
modelValue: { default: "" },
|
|
@@ -1428,8 +1424,8 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1428
1424
|
class: F(["yu-relative yu-flex yu-flex-col yu-justify-center yu-items-start yu-border yu-cursor-text yu-transition-colors yu-w-full yu-bg-transparent", [C.value, z.value, _(d), v.value]]),
|
|
1429
1425
|
"data-testid": "app-text-input"
|
|
1430
1426
|
}, [
|
|
1431
|
-
S("div",
|
|
1432
|
-
S("div",
|
|
1427
|
+
S("div", nr, [
|
|
1428
|
+
S("div", or, [
|
|
1433
1429
|
!e.loading && i("icon") ? (b(), R(Q, {
|
|
1434
1430
|
key: 0,
|
|
1435
1431
|
small: ""
|
|
@@ -1473,8 +1469,8 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1473
1469
|
onFocus: x[0] || (x[0] = (T) => l.value = !0),
|
|
1474
1470
|
onBlur: x[1] || (x[1] = (T) => l.value = !1),
|
|
1475
1471
|
onKeyup: x[2] || (x[2] = et((T) => r("keyup-enter"), ["enter"]))
|
|
1476
|
-
}, null, 42,
|
|
1477
|
-
S("div",
|
|
1472
|
+
}, null, 42, rr),
|
|
1473
|
+
S("div", sr, [
|
|
1478
1474
|
e.maxLength ? (b(), R(V, {
|
|
1479
1475
|
key: 0,
|
|
1480
1476
|
small: ""
|
|
@@ -1517,7 +1513,7 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1517
1513
|
_: 3
|
|
1518
1514
|
}, 8, ["class"]));
|
|
1519
1515
|
}
|
|
1520
|
-
}),
|
|
1516
|
+
}), ar = () => {
|
|
1521
1517
|
const { isLightHex: e, normalizeHex: t } = hn();
|
|
1522
1518
|
return {
|
|
1523
1519
|
getOffset: (s, i) => {
|
|
@@ -1554,7 +1550,7 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1554
1550
|
};
|
|
1555
1551
|
}
|
|
1556
1552
|
};
|
|
1557
|
-
},
|
|
1553
|
+
}, lr = /* @__PURE__ */ Z({
|
|
1558
1554
|
__name: "app-widget",
|
|
1559
1555
|
props: {
|
|
1560
1556
|
workflow: {},
|
|
@@ -1563,7 +1559,7 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1563
1559
|
},
|
|
1564
1560
|
emits: ["send-message", "edge-click", "submit", "close", "back", "open"],
|
|
1565
1561
|
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 } =
|
|
1562
|
+
const n = e, o = t, r = D(n.config.configurations.general.defaultBehavior === "active"), s = D(!r.value), { setWorkflow: i } = qe(), { getOffset: a, getPosition: l, getTone: u } = ar(), { appearanceStyle: h, themeClass: f } = mn(() => n.config.configurations.appearance), d = m(() => n.config.configurations.anchor), c = m(() => n.config.configurations.appearance), y = m(() => {
|
|
1567
1563
|
if (!(r.value && n.fullscreen))
|
|
1568
1564
|
return a(d.value.position, d.value.offset);
|
|
1569
1565
|
}), v = m(() => l(d.value.position)), g = m(() => ({
|
|
@@ -1577,7 +1573,7 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1577
1573
|
logo: d.value.logo ?? "",
|
|
1578
1574
|
label: d.value.label ?? ""
|
|
1579
1575
|
})), w = async () => {
|
|
1580
|
-
r.value || (s.value = !1, await
|
|
1576
|
+
r.value || (s.value = !1, await Ce(), r.value = !0, o("open"));
|
|
1581
1577
|
}, C = () => {
|
|
1582
1578
|
r.value && (r.value = !1, o("close"));
|
|
1583
1579
|
}, z = () => {
|
|
@@ -1622,12 +1618,12 @@ const Q = /* @__PURE__ */ Z({
|
|
|
1622
1618
|
}, null, 8, ["style", "small", "large", "logo", "label"])) : M("", !0)
|
|
1623
1619
|
], 6));
|
|
1624
1620
|
}
|
|
1625
|
-
}),
|
|
1621
|
+
}), ur = /* @__PURE__ */ tt(lr, [["__scopeId", "data-v-5da01276"]]), cr = ["top", "right", "bottom", "left"], Lt = ["start", "end"], Mt = /* @__PURE__ */ cr.reduce((e, t) => e.concat(t, t + "-" + Lt[0], t + "-" + Lt[1]), []), Ne = Math.min, we = Math.max, dr = {
|
|
1626
1622
|
left: "right",
|
|
1627
1623
|
right: "left",
|
|
1628
1624
|
bottom: "top",
|
|
1629
1625
|
top: "bottom"
|
|
1630
|
-
},
|
|
1626
|
+
}, pr = {
|
|
1631
1627
|
start: "end",
|
|
1632
1628
|
end: "start"
|
|
1633
1629
|
};
|
|
@@ -1649,9 +1645,9 @@ function wn(e) {
|
|
|
1649
1645
|
function _t(e) {
|
|
1650
1646
|
return e === "y" ? "height" : "width";
|
|
1651
1647
|
}
|
|
1652
|
-
const
|
|
1648
|
+
const fr = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
1653
1649
|
function ae(e) {
|
|
1654
|
-
return
|
|
1650
|
+
return fr.has(ie(e)) ? "y" : "x";
|
|
1655
1651
|
}
|
|
1656
1652
|
function Ct(e) {
|
|
1657
1653
|
return wn(ae(e));
|
|
@@ -1662,35 +1658,35 @@ function bn(e, t, n) {
|
|
|
1662
1658
|
let i = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
1663
1659
|
return t.reference[s] > t.floating[s] && (i = Ye(i)), [i, Ye(i)];
|
|
1664
1660
|
}
|
|
1665
|
-
function
|
|
1661
|
+
function yr(e) {
|
|
1666
1662
|
const t = Ye(e);
|
|
1667
1663
|
return [Xe(e), t, Xe(t)];
|
|
1668
1664
|
}
|
|
1669
1665
|
function Xe(e) {
|
|
1670
|
-
return e.replace(/start|end/g, (t) =>
|
|
1666
|
+
return e.replace(/start|end/g, (t) => pr[t]);
|
|
1671
1667
|
}
|
|
1672
|
-
const Rt = ["left", "right"], Ot = ["right", "left"],
|
|
1673
|
-
function
|
|
1668
|
+
const Rt = ["left", "right"], Ot = ["right", "left"], hr = ["top", "bottom"], mr = ["bottom", "top"];
|
|
1669
|
+
function gr(e, t, n) {
|
|
1674
1670
|
switch (e) {
|
|
1675
1671
|
case "top":
|
|
1676
1672
|
case "bottom":
|
|
1677
1673
|
return n ? t ? Ot : Rt : t ? Rt : Ot;
|
|
1678
1674
|
case "left":
|
|
1679
1675
|
case "right":
|
|
1680
|
-
return t ?
|
|
1676
|
+
return t ? hr : mr;
|
|
1681
1677
|
default:
|
|
1682
1678
|
return [];
|
|
1683
1679
|
}
|
|
1684
1680
|
}
|
|
1685
|
-
function
|
|
1681
|
+
function vr(e, t, n, o) {
|
|
1686
1682
|
const r = te(e);
|
|
1687
|
-
let s =
|
|
1683
|
+
let s = gr(ie(e), n === "start", o);
|
|
1688
1684
|
return r && (s = s.map((i) => i + "-" + r), t && (s = s.concat(s.map(Xe)))), s;
|
|
1689
1685
|
}
|
|
1690
1686
|
function Ye(e) {
|
|
1691
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
1687
|
+
return e.replace(/left|right|bottom|top/g, (t) => dr[t]);
|
|
1692
1688
|
}
|
|
1693
|
-
function
|
|
1689
|
+
function wr(e) {
|
|
1694
1690
|
return {
|
|
1695
1691
|
top: 0,
|
|
1696
1692
|
right: 0,
|
|
@@ -1700,7 +1696,7 @@ function br(e) {
|
|
|
1700
1696
|
};
|
|
1701
1697
|
}
|
|
1702
1698
|
function xn(e) {
|
|
1703
|
-
return typeof e != "number" ?
|
|
1699
|
+
return typeof e != "number" ? wr(e) : {
|
|
1704
1700
|
top: e,
|
|
1705
1701
|
right: e,
|
|
1706
1702
|
bottom: e,
|
|
@@ -1773,7 +1769,7 @@ function Ht(e, t, n) {
|
|
|
1773
1769
|
}
|
|
1774
1770
|
return c;
|
|
1775
1771
|
}
|
|
1776
|
-
const
|
|
1772
|
+
const br = async (e, t, n) => {
|
|
1777
1773
|
const {
|
|
1778
1774
|
placement: o = "bottom",
|
|
1779
1775
|
strategy: r = "absolute",
|
|
@@ -1879,7 +1875,7 @@ async function nt(e, t) {
|
|
|
1879
1875
|
right: (P.right - p.right + y.right) / z.x
|
|
1880
1876
|
};
|
|
1881
1877
|
}
|
|
1882
|
-
const
|
|
1878
|
+
const xr = (e) => ({
|
|
1883
1879
|
name: "arrow",
|
|
1884
1880
|
options: e,
|
|
1885
1881
|
async fn(t) {
|
|
@@ -1917,10 +1913,10 @@ const $r = (e) => ({
|
|
|
1917
1913
|
};
|
|
1918
1914
|
}
|
|
1919
1915
|
});
|
|
1920
|
-
function
|
|
1916
|
+
function $r(e, t, n) {
|
|
1921
1917
|
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
1918
|
}
|
|
1923
|
-
const
|
|
1919
|
+
const kr = function(e) {
|
|
1924
1920
|
return e === void 0 && (e = {}), {
|
|
1925
1921
|
name: "autoPlacement",
|
|
1926
1922
|
options: e,
|
|
@@ -1938,7 +1934,7 @@ const _r = function(e) {
|
|
|
1938
1934
|
allowedPlacements: d = Mt,
|
|
1939
1935
|
autoAlignment: c = !0,
|
|
1940
1936
|
...y
|
|
1941
|
-
} = xe(e, t), v = f !== void 0 || d === Mt ?
|
|
1937
|
+
} = xe(e, t), v = f !== void 0 || d === Mt ? $r(f || null, c, d) : d, g = await nt(t, y), p = ((n = i.autoPlacement) == null ? void 0 : n.index) || 0, w = v[p];
|
|
1942
1938
|
if (w == null)
|
|
1943
1939
|
return {};
|
|
1944
1940
|
const C = bn(w, s, await (l.isRTL == null ? void 0 : l.isRTL(u.floating)));
|
|
@@ -1988,7 +1984,7 @@ const _r = function(e) {
|
|
|
1988
1984
|
} : {};
|
|
1989
1985
|
}
|
|
1990
1986
|
};
|
|
1991
|
-
},
|
|
1987
|
+
}, _r = function(e) {
|
|
1992
1988
|
return e === void 0 && (e = {}), {
|
|
1993
1989
|
name: "flip",
|
|
1994
1990
|
options: e,
|
|
@@ -2012,8 +2008,8 @@ const _r = function(e) {
|
|
|
2012
2008
|
} = xe(e, t);
|
|
2013
2009
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
2014
2010
|
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(...
|
|
2011
|
+
const p = ie(r), w = ae(a), C = ie(a) === a, z = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), P = d || (C || !v ? [Ye(a)] : yr(a)), A = y !== "none";
|
|
2012
|
+
!d && A && P.push(...vr(a, v, y, z));
|
|
2017
2013
|
const x = [a, ...P], T = await nt(t, g), N = [];
|
|
2018
2014
|
let H = ((o = s.flip) == null ? void 0 : o.overflows) || [];
|
|
2019
2015
|
if (h && N.push(T[p]), f) {
|
|
@@ -2069,13 +2065,13 @@ const _r = function(e) {
|
|
|
2069
2065
|
return {};
|
|
2070
2066
|
}
|
|
2071
2067
|
};
|
|
2072
|
-
},
|
|
2073
|
-
async function
|
|
2068
|
+
}, Cr = /* @__PURE__ */ new Set(["left", "top"]);
|
|
2069
|
+
async function Ar(e, t) {
|
|
2074
2070
|
const {
|
|
2075
2071
|
placement: n,
|
|
2076
2072
|
platform: o,
|
|
2077
2073
|
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 =
|
|
2074
|
+
} = e, s = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), i = ie(n), a = te(n), l = ae(n) === "y", u = Cr.has(i) ? -1 : 1, h = s && l ? -1 : 1, f = xe(t, e);
|
|
2079
2075
|
let {
|
|
2080
2076
|
mainAxis: d,
|
|
2081
2077
|
crossAxis: c,
|
|
@@ -2097,7 +2093,7 @@ async function Sr(e, t) {
|
|
|
2097
2093
|
y: c * h
|
|
2098
2094
|
};
|
|
2099
2095
|
}
|
|
2100
|
-
const
|
|
2096
|
+
const Sr = function(e) {
|
|
2101
2097
|
return e === void 0 && (e = 0), {
|
|
2102
2098
|
name: "offset",
|
|
2103
2099
|
options: e,
|
|
@@ -2108,7 +2104,7 @@ const Br = function(e) {
|
|
|
2108
2104
|
y: s,
|
|
2109
2105
|
placement: i,
|
|
2110
2106
|
middlewareData: a
|
|
2111
|
-
} = t, l = await
|
|
2107
|
+
} = t, l = await Ar(t, e);
|
|
2112
2108
|
return i === ((n = a.offset) == null ? void 0 : n.placement) && (o = a.arrow) != null && o.alignmentOffset ? {} : {
|
|
2113
2109
|
x: r + l.x,
|
|
2114
2110
|
y: s + l.y,
|
|
@@ -2119,7 +2115,7 @@ const Br = function(e) {
|
|
|
2119
2115
|
};
|
|
2120
2116
|
}
|
|
2121
2117
|
};
|
|
2122
|
-
},
|
|
2118
|
+
}, Br = function(e) {
|
|
2123
2119
|
return e === void 0 && (e = {}), {
|
|
2124
2120
|
name: "shift",
|
|
2125
2121
|
options: e,
|
|
@@ -2175,7 +2171,7 @@ const Br = function(e) {
|
|
|
2175
2171
|
};
|
|
2176
2172
|
}
|
|
2177
2173
|
};
|
|
2178
|
-
},
|
|
2174
|
+
}, Tr = function(e) {
|
|
2179
2175
|
return e === void 0 && (e = {}), {
|
|
2180
2176
|
name: "size",
|
|
2181
2177
|
options: e,
|
|
@@ -2255,7 +2251,7 @@ function ot(e) {
|
|
|
2255
2251
|
const { overflow: t, overflowX: n, overflowY: o, display: r } = re(e);
|
|
2256
2252
|
return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !["inline", "contents"].includes(r);
|
|
2257
2253
|
}
|
|
2258
|
-
function
|
|
2254
|
+
function Pr(e) {
|
|
2259
2255
|
return ["table", "td", "th"].includes(me(e));
|
|
2260
2256
|
}
|
|
2261
2257
|
function gt(e) {
|
|
@@ -2275,7 +2271,7 @@ function An(e) {
|
|
|
2275
2271
|
return pe(e) ? e : e.contextElement;
|
|
2276
2272
|
}
|
|
2277
2273
|
const Sn = { x: 1, y: 1 };
|
|
2278
|
-
function
|
|
2274
|
+
function _e(e) {
|
|
2279
2275
|
const t = An(e);
|
|
2280
2276
|
if (!se(t)) return Sn;
|
|
2281
2277
|
const n = t.getBoundingClientRect(), { width: o, height: r, fallback: s } = $n(t);
|
|
@@ -2287,14 +2283,14 @@ function Ie(e, t, n, o) {
|
|
|
2287
2283
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
2288
2284
|
const i = e.getBoundingClientRect(), a = An(e);
|
|
2289
2285
|
let l = Sn;
|
|
2290
|
-
t && (o ? pe(o) && (l =
|
|
2286
|
+
t && (o ? pe(o) && (l = _e(o)) : l = _e(e));
|
|
2291
2287
|
const u = a ? J(a) : window, h = !Cn() && n;
|
|
2292
2288
|
let f = (i.left + (h && ((r = u.visualViewport) == null ? void 0 : r.offsetLeft) || 0)) / l.x, d = (i.top + (h && ((s = u.visualViewport) == null ? void 0 : s.offsetTop) || 0)) / l.y, c = i.width / l.x, y = i.height / l.y;
|
|
2293
2289
|
if (a) {
|
|
2294
2290
|
const v = J(a), g = o && pe(o) ? J(o) : o;
|
|
2295
2291
|
let p = v.frameElement;
|
|
2296
2292
|
for (; p && o && g !== v; ) {
|
|
2297
|
-
const w =
|
|
2293
|
+
const w = _e(p), C = p.getBoundingClientRect(), z = getComputedStyle(p);
|
|
2298
2294
|
C.x += (p.clientLeft + parseFloat(z.paddingLeft)) * w.x, C.y += (p.clientTop + parseFloat(z.paddingTop)) * w.y, f *= w.x, d *= w.y, c *= w.x, y *= w.y, f += C.x, d += C.y, p = J(p).frameElement;
|
|
2299
2295
|
}
|
|
2300
2296
|
}
|
|
@@ -2335,7 +2331,7 @@ function Ft(e, t, n) {
|
|
|
2335
2331
|
}
|
|
2336
2332
|
return { width: l, height: u, x: h, y: f };
|
|
2337
2333
|
})(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) ?
|
|
2334
|
+
const s = Ie(o, !0, r === "fixed"), i = s.top + o.clientTop, a = s.left + o.clientLeft, l = se(o) ? _e(o) : { x: 1, y: 1 };
|
|
2339
2335
|
return { width: o.clientWidth * l.x, height: o.clientHeight * l.y, x: a * l.x, y: i * l.y };
|
|
2340
2336
|
})(t, n)) : Oe((function(o) {
|
|
2341
2337
|
const r = fe(o), s = rt(o), i = o.ownerDocument.body, a = He(r.scrollWidth, r.clientWidth, i.scrollWidth, i.clientWidth), l = He(r.scrollHeight, r.clientHeight, i.scrollHeight, i.clientHeight);
|
|
@@ -2350,7 +2346,7 @@ function Nt(e) {
|
|
|
2350
2346
|
function It(e) {
|
|
2351
2347
|
const t = J(e);
|
|
2352
2348
|
let n = Nt(e);
|
|
2353
|
-
for (; n &&
|
|
2349
|
+
for (; n && Pr(n) && re(n).position === "static"; ) n = Nt(n);
|
|
2354
2350
|
return n && (me(n) === "html" || me(n) === "body" && re(n).position === "static" && !gt(n)) ? t : n || (function(o) {
|
|
2355
2351
|
let r = De(o);
|
|
2356
2352
|
for (; se(r) && !At(r); ) {
|
|
@@ -2360,7 +2356,7 @@ function It(e) {
|
|
|
2360
2356
|
return null;
|
|
2361
2357
|
})(e) || t;
|
|
2362
2358
|
}
|
|
2363
|
-
function
|
|
2359
|
+
function Lr(e, t, n) {
|
|
2364
2360
|
const o = se(t), r = fe(t), s = Ie(e, !0, n === "fixed", t);
|
|
2365
2361
|
let i = { scrollLeft: 0, scrollTop: 0 };
|
|
2366
2362
|
const a = { x: 0, y: 0 };
|
|
@@ -2370,7 +2366,7 @@ function Mr(e, t, n) {
|
|
|
2370
2366
|
} else r && (a.x = Bn(r));
|
|
2371
2367
|
return { x: s.left + i.scrollLeft - a.x, y: s.top + i.scrollTop - a.y, width: s.width, height: s.height };
|
|
2372
2368
|
}
|
|
2373
|
-
const
|
|
2369
|
+
const Mr = { getClippingRect: function(e) {
|
|
2374
2370
|
let { element: t, boundary: n, rootBoundary: o, strategy: r } = e;
|
|
2375
2371
|
const s = n === "clippingAncestors" ? (function(u, h) {
|
|
2376
2372
|
const f = h.get(u);
|
|
@@ -2396,18 +2392,18 @@ const Rr = { getClippingRect: function(e) {
|
|
|
2396
2392
|
const l = { x: 0, y: 0 };
|
|
2397
2393
|
if ((r || !r && o !== "fixed") && ((me(n) !== "body" || ot(s)) && (i = rt(n)), se(n))) {
|
|
2398
2394
|
const u = Ie(n);
|
|
2399
|
-
a =
|
|
2395
|
+
a = _e(n), l.x = u.x + n.clientLeft, l.y = u.y + n.clientTop;
|
|
2400
2396
|
}
|
|
2401
2397
|
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
2398
|
}, isElement: pe, getDimensions: function(e) {
|
|
2403
2399
|
return se(e) ? $n(e) : e.getBoundingClientRect();
|
|
2404
|
-
}, getOffsetParent: It, getDocumentElement: fe, getScale:
|
|
2400
|
+
}, getOffsetParent: It, getDocumentElement: fe, getScale: _e, async getElementRects(e) {
|
|
2405
2401
|
let { reference: t, floating: n, strategy: o } = e;
|
|
2406
2402
|
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
|
|
2403
|
+
return { reference: Lr(t, await r(n), o), floating: { x: 0, y: 0, ...await s(n) } };
|
|
2404
|
+
}, getClientRects: (e) => Array.from(e.getClientRects()), isRTL: (e) => re(e).direction === "rtl" }, Rr = (e, t, n) => {
|
|
2405
|
+
const o = /* @__PURE__ */ new Map(), r = { platform: Mr, ...n }, s = { ...r.platform, _c: o };
|
|
2406
|
+
return br(e, t, { ...r, platform: s });
|
|
2411
2407
|
};
|
|
2412
2408
|
function Pn(e, t) {
|
|
2413
2409
|
for (const n in t)
|
|
@@ -2499,7 +2495,7 @@ function je(e, t) {
|
|
|
2499
2495
|
while (n);
|
|
2500
2496
|
return o;
|
|
2501
2497
|
}
|
|
2502
|
-
function
|
|
2498
|
+
function Or(e) {
|
|
2503
2499
|
const t = [e];
|
|
2504
2500
|
let n = ne.themes[e] || {};
|
|
2505
2501
|
do
|
|
@@ -2515,13 +2511,13 @@ function Dt(e) {
|
|
|
2515
2511
|
while (n);
|
|
2516
2512
|
return t;
|
|
2517
2513
|
}
|
|
2518
|
-
let
|
|
2514
|
+
let Se = !1;
|
|
2519
2515
|
if (typeof window < "u") {
|
|
2520
|
-
|
|
2516
|
+
Se = !1;
|
|
2521
2517
|
try {
|
|
2522
2518
|
const e = Object.defineProperty({}, "passive", {
|
|
2523
2519
|
get() {
|
|
2524
|
-
|
|
2520
|
+
Se = !0;
|
|
2525
2521
|
}
|
|
2526
2522
|
});
|
|
2527
2523
|
window.addEventListener("test", null, e);
|
|
@@ -2917,21 +2913,21 @@ const ct = "__floating-vue__popper", Rn = () => Z({
|
|
|
2917
2913
|
strategy: this.strategy,
|
|
2918
2914
|
middleware: []
|
|
2919
2915
|
};
|
|
2920
|
-
(this.distance || this.skidding) && e.middleware.push(
|
|
2916
|
+
(this.distance || this.skidding) && e.middleware.push(Sr({
|
|
2921
2917
|
mainAxis: this.distance,
|
|
2922
2918
|
crossAxis: this.skidding
|
|
2923
2919
|
}));
|
|
2924
2920
|
const t = this.placement.startsWith("auto");
|
|
2925
|
-
if (t ? e.middleware.push(
|
|
2921
|
+
if (t ? e.middleware.push(kr({
|
|
2926
2922
|
alignment: this.placement.split("-")[1] ?? ""
|
|
2927
|
-
})) : e.placement = this.placement, this.preventOverflow && (this.shift && e.middleware.push(
|
|
2923
|
+
})) : e.placement = this.placement, this.preventOverflow && (this.shift && e.middleware.push(Br({
|
|
2928
2924
|
padding: this.overflowPadding,
|
|
2929
2925
|
boundary: this.boundary,
|
|
2930
2926
|
crossAxis: this.shiftCrossAxis
|
|
2931
|
-
})), !t && this.flip && e.middleware.push(
|
|
2927
|
+
})), !t && this.flip && e.middleware.push(_r({
|
|
2932
2928
|
padding: this.overflowPadding,
|
|
2933
2929
|
boundary: this.boundary
|
|
2934
|
-
}))), e.middleware.push(
|
|
2930
|
+
}))), e.middleware.push(xr({
|
|
2935
2931
|
element: this.$_arrowNode,
|
|
2936
2932
|
padding: this.arrowPadding
|
|
2937
2933
|
})), this.arrowOverflow && e.middleware.push({
|
|
@@ -2965,14 +2961,14 @@ const ct = "__floating-vue__popper", Rn = () => Z({
|
|
|
2965
2961
|
}
|
|
2966
2962
|
});
|
|
2967
2963
|
}
|
|
2968
|
-
(this.autoMaxSize || this.autoBoundaryMaxSize) && (this.$_innerNode.style.maxWidth = null, this.$_innerNode.style.maxHeight = null, e.middleware.push(
|
|
2964
|
+
(this.autoMaxSize || this.autoBoundaryMaxSize) && (this.$_innerNode.style.maxWidth = null, this.$_innerNode.style.maxHeight = null, e.middleware.push(Tr({
|
|
2969
2965
|
boundary: this.boundary,
|
|
2970
2966
|
padding: this.overflowPadding,
|
|
2971
2967
|
apply: ({ availableWidth: o, availableHeight: r }) => {
|
|
2972
2968
|
this.$_innerNode.style.maxWidth = o != null ? `${o}px` : null, this.$_innerNode.style.maxHeight = r != null ? `${r}px` : null;
|
|
2973
2969
|
}
|
|
2974
2970
|
})));
|
|
2975
|
-
const n = await
|
|
2971
|
+
const n = await Rr(this.$_referenceNode, this.$_popperNode, e);
|
|
2976
2972
|
Object.assign(this.result, {
|
|
2977
2973
|
x: n.x,
|
|
2978
2974
|
y: n.y,
|
|
@@ -3075,7 +3071,7 @@ const ct = "__floating-vue__popper", Rn = () => Z({
|
|
|
3075
3071
|
this.$_registerTriggerListeners(this.$_targetNodes, Vt, this.triggers, this.hideTriggers, t), this.$_registerTriggerListeners([this.$_popperNode], Vt, this.popperTriggers, this.popperHideTriggers, t);
|
|
3076
3072
|
},
|
|
3077
3073
|
$_registerEventListeners(e, t, n) {
|
|
3078
|
-
this.$_events.push({ targetNodes: e, eventType: t, handler: n }), e.forEach((o) => o.addEventListener(t, n,
|
|
3074
|
+
this.$_events.push({ targetNodes: e, eventType: t, handler: n }), e.forEach((o) => o.addEventListener(t, n, Se ? {
|
|
3079
3075
|
passive: !0
|
|
3080
3076
|
} : void 0));
|
|
3081
3077
|
},
|
|
@@ -3140,14 +3136,14 @@ const ct = "__floating-vue__popper", Rn = () => Z({
|
|
|
3140
3136
|
});
|
|
3141
3137
|
if (typeof document < "u" && typeof window < "u") {
|
|
3142
3138
|
if (Ln) {
|
|
3143
|
-
const e =
|
|
3139
|
+
const e = Se ? {
|
|
3144
3140
|
passive: !0,
|
|
3145
3141
|
capture: !0
|
|
3146
3142
|
} : !0;
|
|
3147
3143
|
document.addEventListener("touchstart", (t) => Zt(t, !0), e), document.addEventListener("touchend", (t) => Ut(t, !0), e);
|
|
3148
3144
|
} else
|
|
3149
3145
|
window.addEventListener("mousedown", (e) => Zt(e, !1), !0), window.addEventListener("click", (e) => Ut(e, !1), !0);
|
|
3150
|
-
window.addEventListener("resize",
|
|
3146
|
+
window.addEventListener("resize", zr);
|
|
3151
3147
|
}
|
|
3152
3148
|
function Zt(e, t) {
|
|
3153
3149
|
if (ne.autoHideOnMousedown)
|
|
@@ -3188,30 +3184,30 @@ function On(e, t) {
|
|
|
3188
3184
|
}
|
|
3189
3185
|
}
|
|
3190
3186
|
function Xt(e, t, n) {
|
|
3191
|
-
return n.closeAllPopover || n.closePopover && t ||
|
|
3187
|
+
return n.closeAllPopover || n.closePopover && t || Hr(e, n) && !t;
|
|
3192
3188
|
}
|
|
3193
|
-
function
|
|
3189
|
+
function Hr(e, t) {
|
|
3194
3190
|
if (typeof e.autoHide == "function") {
|
|
3195
3191
|
const n = e.autoHide(t);
|
|
3196
3192
|
return e.lastAutoHide = n, n;
|
|
3197
3193
|
}
|
|
3198
3194
|
return e.autoHide;
|
|
3199
3195
|
}
|
|
3200
|
-
function
|
|
3196
|
+
function zr() {
|
|
3201
3197
|
for (let e = 0; e < ee.length; e++)
|
|
3202
3198
|
ee[e].$_computePosition();
|
|
3203
3199
|
}
|
|
3204
3200
|
let le = 0, ue = 0, ze = 0, Ee = 0;
|
|
3205
3201
|
typeof window < "u" && window.addEventListener("mousemove", (e) => {
|
|
3206
3202
|
le = ze, ue = Ee, ze = e.clientX, Ee = e.clientY;
|
|
3207
|
-
},
|
|
3203
|
+
}, Se ? {
|
|
3208
3204
|
passive: !0
|
|
3209
3205
|
} : void 0);
|
|
3210
3206
|
function Ze(e, t, n, o, r, s, i, a) {
|
|
3211
3207
|
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
3208
|
return l >= 0 && l <= 1 && u >= 0 && u <= 1;
|
|
3213
3209
|
}
|
|
3214
|
-
const
|
|
3210
|
+
const Er = {
|
|
3215
3211
|
extends: Rn()
|
|
3216
3212
|
}, st = (e, t) => {
|
|
3217
3213
|
const n = e.__vccOpts || e;
|
|
@@ -3219,7 +3215,7 @@ const Fr = {
|
|
|
3219
3215
|
n[o] = r;
|
|
3220
3216
|
return n;
|
|
3221
3217
|
};
|
|
3222
|
-
function
|
|
3218
|
+
function Fr(e, t, n, o, r, s) {
|
|
3223
3219
|
return b(), B("div", {
|
|
3224
3220
|
ref: "reference",
|
|
3225
3221
|
class: F(["v-popper", {
|
|
@@ -3229,8 +3225,8 @@ function Nr(e, t, n, o, r, s) {
|
|
|
3229
3225
|
W(e.$slots, "default", Kn(Qn(e.slotData)))
|
|
3230
3226
|
], 2);
|
|
3231
3227
|
}
|
|
3232
|
-
const
|
|
3233
|
-
function
|
|
3228
|
+
const Nr = /* @__PURE__ */ st(Er, [["render", Fr]]);
|
|
3229
|
+
function Ir() {
|
|
3234
3230
|
var e = window.navigator.userAgent, t = e.indexOf("MSIE ");
|
|
3235
3231
|
if (t > 0)
|
|
3236
3232
|
return parseInt(e.substring(t + 5, e.indexOf(".", t)), 10);
|
|
@@ -3244,7 +3240,7 @@ function Dr() {
|
|
|
3244
3240
|
}
|
|
3245
3241
|
let Ue;
|
|
3246
3242
|
function wt() {
|
|
3247
|
-
wt.init || (wt.init = !0, Ue =
|
|
3243
|
+
wt.init || (wt.init = !0, Ue = Ir() !== -1);
|
|
3248
3244
|
}
|
|
3249
3245
|
var it = {
|
|
3250
3246
|
name: "ResizeObserver",
|
|
@@ -3266,7 +3262,7 @@ var it = {
|
|
|
3266
3262
|
"notify"
|
|
3267
3263
|
],
|
|
3268
3264
|
mounted() {
|
|
3269
|
-
wt(),
|
|
3265
|
+
wt(), Ce(() => {
|
|
3270
3266
|
this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitOnMount && this.emitSize();
|
|
3271
3267
|
});
|
|
3272
3268
|
const e = document.createElement("object");
|
|
@@ -3293,24 +3289,24 @@ var it = {
|
|
|
3293
3289
|
}
|
|
3294
3290
|
}
|
|
3295
3291
|
};
|
|
3296
|
-
const
|
|
3292
|
+
const Dr = /* @__PURE__ */ to("data-v-b329ee4c");
|
|
3297
3293
|
Xn("data-v-b329ee4c");
|
|
3298
|
-
const
|
|
3294
|
+
const jr = {
|
|
3299
3295
|
class: "resize-observer",
|
|
3300
3296
|
tabindex: "-1"
|
|
3301
3297
|
};
|
|
3302
3298
|
Yn();
|
|
3303
|
-
const
|
|
3304
|
-
it.render =
|
|
3299
|
+
const Vr = /* @__PURE__ */ Dr((e, t, n, o, r, s) => (b(), R("div", jr)));
|
|
3300
|
+
it.render = Vr;
|
|
3305
3301
|
it.__scopeId = "data-v-b329ee4c";
|
|
3306
3302
|
it.__file = "src/components/ResizeObserver.vue";
|
|
3307
3303
|
const Hn = (e = "theme") => ({
|
|
3308
3304
|
computed: {
|
|
3309
3305
|
themeClass() {
|
|
3310
|
-
return
|
|
3306
|
+
return Or(this[e]);
|
|
3311
3307
|
}
|
|
3312
3308
|
}
|
|
3313
|
-
}),
|
|
3309
|
+
}), Wr = Z({
|
|
3314
3310
|
name: "VPopperContent",
|
|
3315
3311
|
components: {
|
|
3316
3312
|
ResizeObserver: it
|
|
@@ -3338,14 +3334,14 @@ const Hn = (e = "theme") => ({
|
|
|
3338
3334
|
return e != null && !isNaN(e) ? `${e}px` : null;
|
|
3339
3335
|
}
|
|
3340
3336
|
}
|
|
3341
|
-
}),
|
|
3337
|
+
}), qr = ["id", "aria-hidden", "tabindex", "data-popper-placement"], Gr = {
|
|
3342
3338
|
ref: "inner",
|
|
3343
3339
|
class: "v-popper__inner"
|
|
3344
|
-
},
|
|
3345
|
-
|
|
3346
|
-
|
|
3340
|
+
}, Zr = /* @__PURE__ */ S("div", { class: "v-popper__arrow-outer" }, null, -1), Ur = /* @__PURE__ */ S("div", { class: "v-popper__arrow-inner" }, null, -1), Xr = [
|
|
3341
|
+
Zr,
|
|
3342
|
+
Ur
|
|
3347
3343
|
];
|
|
3348
|
-
function
|
|
3344
|
+
function Yr(e, t, n, o, r, s) {
|
|
3349
3345
|
const i = Fe("ResizeObserver");
|
|
3350
3346
|
return b(), B("div", {
|
|
3351
3347
|
id: e.popperId,
|
|
@@ -3384,7 +3380,7 @@ function Kr(e, t, n, o, r, s) {
|
|
|
3384
3380
|
transformOrigin: e.result.transformOrigin
|
|
3385
3381
|
} : void 0)
|
|
3386
3382
|
}, [
|
|
3387
|
-
S("div",
|
|
3383
|
+
S("div", Gr, [
|
|
3388
3384
|
e.mounted ? (b(), B(he, { key: 0 }, [
|
|
3389
3385
|
S("div", null, [
|
|
3390
3386
|
W(e.$slots, "default")
|
|
@@ -3402,11 +3398,11 @@ function Kr(e, t, n, o, r, s) {
|
|
|
3402
3398
|
left: e.toPx(e.result.arrow.x),
|
|
3403
3399
|
top: e.toPx(e.result.arrow.y)
|
|
3404
3400
|
} : void 0)
|
|
3405
|
-
},
|
|
3401
|
+
}, Xr, 4)
|
|
3406
3402
|
], 4)
|
|
3407
|
-
], 46,
|
|
3403
|
+
], 46, qr);
|
|
3408
3404
|
}
|
|
3409
|
-
const zn = /* @__PURE__ */ st(
|
|
3405
|
+
const zn = /* @__PURE__ */ st(Wr, [["render", Yr]]), En = {
|
|
3410
3406
|
methods: {
|
|
3411
3407
|
show(...e) {
|
|
3412
3408
|
return this.$refs.popper.show(...e);
|
|
@@ -3425,10 +3421,10 @@ const zn = /* @__PURE__ */ st(qr, [["render", Kr]]), En = {
|
|
|
3425
3421
|
let bt = function() {
|
|
3426
3422
|
};
|
|
3427
3423
|
typeof window < "u" && (bt = window.Element);
|
|
3428
|
-
const
|
|
3424
|
+
const Kr = Z({
|
|
3429
3425
|
name: "VPopperWrapper",
|
|
3430
3426
|
components: {
|
|
3431
|
-
Popper:
|
|
3427
|
+
Popper: Nr,
|
|
3432
3428
|
PopperContent: zn
|
|
3433
3429
|
},
|
|
3434
3430
|
mixins: [
|
|
@@ -3621,7 +3617,7 @@ const Qr = Z({
|
|
|
3621
3617
|
}
|
|
3622
3618
|
}
|
|
3623
3619
|
});
|
|
3624
|
-
function
|
|
3620
|
+
function Qr(e, t, n, o, r, s) {
|
|
3625
3621
|
const i = Fe("PopperContent"), a = Fe("Popper");
|
|
3626
3622
|
return b(), R(a, kt({ ref: "popper" }, e.$props, {
|
|
3627
3623
|
theme: e.finalTheme,
|
|
@@ -3684,19 +3680,19 @@ function Jr(e, t, n, o, r, s) {
|
|
|
3684
3680
|
_: 3
|
|
3685
3681
|
}, 16, ["theme", "target-nodes", "popper-node", "class"]);
|
|
3686
3682
|
}
|
|
3687
|
-
const St = /* @__PURE__ */ st(
|
|
3683
|
+
const St = /* @__PURE__ */ st(Kr, [["render", Qr]]), Jr = {
|
|
3688
3684
|
...St,
|
|
3689
3685
|
name: "VDropdown",
|
|
3690
3686
|
vPopperTheme: "dropdown"
|
|
3691
|
-
},
|
|
3687
|
+
}, es = {
|
|
3692
3688
|
...St,
|
|
3693
3689
|
name: "VMenu",
|
|
3694
3690
|
vPopperTheme: "menu"
|
|
3695
|
-
},
|
|
3691
|
+
}, ts = {
|
|
3696
3692
|
...St,
|
|
3697
3693
|
name: "VTooltip",
|
|
3698
3694
|
vPopperTheme: "tooltip"
|
|
3699
|
-
},
|
|
3695
|
+
}, ns = Z({
|
|
3700
3696
|
name: "VTooltipDirective",
|
|
3701
3697
|
components: {
|
|
3702
3698
|
Popper: Rn(),
|
|
@@ -3776,8 +3772,8 @@ const St = /* @__PURE__ */ st(Qr, [["render", Jr]]), es = {
|
|
|
3776
3772
|
this.$_isShown = !1;
|
|
3777
3773
|
}
|
|
3778
3774
|
}
|
|
3779
|
-
}),
|
|
3780
|
-
function
|
|
3775
|
+
}), os = ["innerHTML"], rs = ["textContent"];
|
|
3776
|
+
function ss(e, t, n, o, r, s) {
|
|
3781
3777
|
const i = Fe("PopperContent"), a = Fe("Popper");
|
|
3782
3778
|
return b(), R(a, kt({ ref: "popper" }, e.$attrs, {
|
|
3783
3779
|
theme: e.theme,
|
|
@@ -3819,10 +3815,10 @@ function is(e, t, n, o, r, s) {
|
|
|
3819
3815
|
e.html ? (b(), B("div", {
|
|
3820
3816
|
key: 0,
|
|
3821
3817
|
innerHTML: e.finalContent
|
|
3822
|
-
}, null, 8,
|
|
3818
|
+
}, null, 8, os)) : (b(), B("div", {
|
|
3823
3819
|
key: 1,
|
|
3824
3820
|
textContent: G(e.finalContent)
|
|
3825
|
-
}, null, 8,
|
|
3821
|
+
}, null, 8, rs))
|
|
3826
3822
|
]),
|
|
3827
3823
|
_: 2
|
|
3828
3824
|
}, 1032, ["class", "popper-id", "theme", "shown", "mounted", "skip-transition", "auto-hide", "handle-resize", "classes", "result", "onHide", "onResize"])
|
|
@@ -3830,8 +3826,8 @@ function is(e, t, n, o, r, s) {
|
|
|
3830
3826
|
_: 1
|
|
3831
3827
|
}, 16, ["theme", "target-nodes", "popper-node", "onApplyShow", "onApplyHide"]);
|
|
3832
3828
|
}
|
|
3833
|
-
const
|
|
3834
|
-
function
|
|
3829
|
+
const is = /* @__PURE__ */ st(ns, [["render", ss]]), Fn = "v-popper--has-tooltip";
|
|
3830
|
+
function as(e, t) {
|
|
3835
3831
|
let n = e.placement;
|
|
3836
3832
|
if (!n && t)
|
|
3837
3833
|
for (const o of Mn)
|
|
@@ -3841,10 +3837,10 @@ function ls(e, t) {
|
|
|
3841
3837
|
function Nn(e, t, n) {
|
|
3842
3838
|
let o;
|
|
3843
3839
|
const r = typeof t;
|
|
3844
|
-
return r === "string" ? o = { content: t } : t && r === "object" ? o = t : o = { content: !1 }, o.placement =
|
|
3840
|
+
return r === "string" ? o = { content: t } : t && r === "object" ? o = t : o = { content: !1 }, o.placement = as(o, n), o.targetNodes = () => [e], o.referenceNode = () => e, o;
|
|
3845
3841
|
}
|
|
3846
|
-
let dt, Ve,
|
|
3847
|
-
function
|
|
3842
|
+
let dt, Ve, ls = 0;
|
|
3843
|
+
function us() {
|
|
3848
3844
|
if (dt)
|
|
3849
3845
|
return;
|
|
3850
3846
|
Ve = D([]), dt = Jn({
|
|
@@ -3855,7 +3851,7 @@ function cs() {
|
|
|
3855
3851
|
};
|
|
3856
3852
|
},
|
|
3857
3853
|
render() {
|
|
3858
|
-
return this.directives.map((t) => eo(
|
|
3854
|
+
return this.directives.map((t) => eo(is, {
|
|
3859
3855
|
...t.options,
|
|
3860
3856
|
shown: t.shown || t.options.shown,
|
|
3861
3857
|
key: t.id
|
|
@@ -3868,10 +3864,10 @@ function cs() {
|
|
|
3868
3864
|
const e = document.createElement("div");
|
|
3869
3865
|
document.body.appendChild(e), dt.mount(e);
|
|
3870
3866
|
}
|
|
3871
|
-
function
|
|
3872
|
-
|
|
3867
|
+
function cs(e, t, n) {
|
|
3868
|
+
us();
|
|
3873
3869
|
const o = D(Nn(e, t, n)), r = D(!1), s = {
|
|
3874
|
-
id:
|
|
3870
|
+
id: ls++,
|
|
3875
3871
|
options: o,
|
|
3876
3872
|
shown: r
|
|
3877
3873
|
};
|
|
@@ -3899,10 +3895,10 @@ function Yt(e, { value: t, modifiers: n }) {
|
|
|
3899
3895
|
In(e);
|
|
3900
3896
|
else {
|
|
3901
3897
|
let r;
|
|
3902
|
-
e.$_popper ? (r = e.$_popper, r.options.value = o) : r =
|
|
3898
|
+
e.$_popper ? (r = e.$_popper, r.options.value = o) : r = cs(e, t, n), typeof t.shown < "u" && t.shown !== e.$_popperOldShown && (e.$_popperOldShown = t.shown, t.shown ? r.show() : r.hide());
|
|
3903
3899
|
}
|
|
3904
3900
|
}
|
|
3905
|
-
const
|
|
3901
|
+
const ds = {
|
|
3906
3902
|
beforeMount: Yt,
|
|
3907
3903
|
updated: Yt,
|
|
3908
3904
|
beforeUnmount(e) {
|
|
@@ -3910,7 +3906,7 @@ const ps = {
|
|
|
3910
3906
|
}
|
|
3911
3907
|
};
|
|
3912
3908
|
function Kt(e) {
|
|
3913
|
-
e.addEventListener("mousedown", Je), e.addEventListener("click", Je), e.addEventListener("touchstart", Dn,
|
|
3909
|
+
e.addEventListener("mousedown", Je), e.addEventListener("click", Je), e.addEventListener("touchstart", Dn, Se ? {
|
|
3914
3910
|
passive: !0
|
|
3915
3911
|
} : !1);
|
|
3916
3912
|
}
|
|
@@ -3940,7 +3936,7 @@ function Vn(e) {
|
|
|
3940
3936
|
const t = e.currentTarget;
|
|
3941
3937
|
t.$_vclosepopover_touch = !1;
|
|
3942
3938
|
}
|
|
3943
|
-
const
|
|
3939
|
+
const ps = {
|
|
3944
3940
|
beforeMount(e, { value: t, modifiers: n }) {
|
|
3945
3941
|
e.$_closePopoverModifiers = n, (typeof t > "u" || t) && Kt(e);
|
|
3946
3942
|
},
|
|
@@ -3951,40 +3947,40 @@ const fs = {
|
|
|
3951
3947
|
Qt(e);
|
|
3952
3948
|
}
|
|
3953
3949
|
};
|
|
3954
|
-
function
|
|
3955
|
-
e.$_vTooltipInstalled || (e.$_vTooltipInstalled = !0, Pn(ne, t), e.directive("tooltip",
|
|
3950
|
+
function fs(e, t = {}) {
|
|
3951
|
+
e.$_vTooltipInstalled || (e.$_vTooltipInstalled = !0, Pn(ne, t), e.directive("tooltip", ds), e.directive("close-popper", ps), e.component("VTooltip", ts), e.component("VDropdown", Jr), e.component("VMenu", es));
|
|
3956
3952
|
}
|
|
3957
|
-
const
|
|
3953
|
+
const ys = {
|
|
3958
3954
|
// eslint-disable-next-line no-undef
|
|
3959
3955
|
version: "5.2.2",
|
|
3960
|
-
install:
|
|
3956
|
+
install: fs,
|
|
3961
3957
|
options: ne
|
|
3962
|
-
},
|
|
3958
|
+
}, hs = "c3fd21c9-c91a-4c66-baa5-c3e050c2cc74", Jt = "2026-10-13T14:00:00.000Z", ms = "69756c6a-cd47-41ef-a9c3-faa0b1aeb4a1", pt = "https://i.allsvgicons.com/lucide", $e = {
|
|
3963
3959
|
marketplace: "https://svgl.app/library/mercado-libre.svg",
|
|
3964
3960
|
support: `${pt}/headphones.svg`,
|
|
3965
3961
|
chat: `${pt}/message-circle.svg`,
|
|
3966
3962
|
cancel: `${pt}/x.svg`
|
|
3967
|
-
},
|
|
3963
|
+
}, Be = {
|
|
3968
3964
|
logo: $e.marketplace,
|
|
3969
3965
|
title: "Mercado Livre",
|
|
3970
3966
|
subtitle: "Atendimento online"
|
|
3971
|
-
},
|
|
3967
|
+
}, Te = (e, t, n) => ({
|
|
3972
3968
|
logo: e,
|
|
3973
3969
|
eyebrow: "MERCADO LIVRE",
|
|
3974
3970
|
title: t,
|
|
3975
3971
|
subtitle: n
|
|
3976
|
-
}),
|
|
3972
|
+
}), gs = [
|
|
3977
3973
|
{ name: "name", alias: "Nome", required: !0 },
|
|
3978
3974
|
{ name: "phone", alias: "Telefone", required: !0 },
|
|
3979
3975
|
{ name: "email", alias: "E-mail", required: !1 }
|
|
3980
|
-
],
|
|
3976
|
+
], vs = [
|
|
3981
3977
|
{ name: "name", alias: "Nome", required: !0 },
|
|
3982
3978
|
{ name: "phone", alias: "Telefone", required: !0 },
|
|
3983
3979
|
{ name: "email", alias: "E-mail", required: !1 },
|
|
3984
3980
|
{ name: "cpf", alias: "CPF", required: !0 }
|
|
3985
|
-
],
|
|
3981
|
+
], Pe = (e) => ({
|
|
3986
3982
|
id: e.id,
|
|
3987
|
-
companyId:
|
|
3983
|
+
companyId: hs,
|
|
3988
3984
|
name: e.name,
|
|
3989
3985
|
action: e.action,
|
|
3990
3986
|
message: null,
|
|
@@ -4009,65 +4005,65 @@ const hs = {
|
|
|
4009
4005
|
autoTagIds: [],
|
|
4010
4006
|
createdAt: Jt,
|
|
4011
4007
|
updatedAt: Jt
|
|
4012
|
-
}),
|
|
4008
|
+
}), Me = (e, t) => ({ id: e, nextRuleId: t }), en = Pe({
|
|
4013
4009
|
id: "a1111111-1111-4111-8111-111111111105",
|
|
4014
4010
|
name: "Falar com atendente",
|
|
4015
4011
|
action: "service",
|
|
4016
4012
|
settings: {
|
|
4017
|
-
header:
|
|
4018
|
-
body:
|
|
4013
|
+
header: Be,
|
|
4014
|
+
body: Te($e.chat, "Falar com atendente", "Conte o que você precisa e vamos te ajudar."),
|
|
4019
4015
|
features: { sendMessage: !0, sendAttachment: !0 },
|
|
4020
4016
|
behavior: "chat"
|
|
4021
4017
|
}
|
|
4022
|
-
}), tn =
|
|
4018
|
+
}), tn = Pe({
|
|
4023
4019
|
id: "a1111111-1111-4111-8111-111111111101",
|
|
4024
4020
|
name: "Consultar meu plano",
|
|
4025
4021
|
action: "service",
|
|
4026
4022
|
settings: {
|
|
4027
|
-
header:
|
|
4028
|
-
body:
|
|
4023
|
+
header: Be,
|
|
4024
|
+
body: Te($e.support, "Consultar meu plano", "Vamos te ajudar a entender o seu plano."),
|
|
4029
4025
|
features: { sendMessage: !0, sendAttachment: !0 },
|
|
4030
4026
|
behavior: "chat"
|
|
4031
4027
|
}
|
|
4032
|
-
}), nn =
|
|
4028
|
+
}), nn = Pe({
|
|
4033
4029
|
id: "a1111111-1111-4111-8111-111111111106",
|
|
4034
4030
|
name: "Cancelar plano",
|
|
4035
4031
|
action: "service",
|
|
4036
4032
|
settings: {
|
|
4037
|
-
header:
|
|
4038
|
-
body:
|
|
4033
|
+
header: Be,
|
|
4034
|
+
body: Te($e.cancel, "Cancelar plano", "Vamos verificar se o plano ainda pode ser cancelado."),
|
|
4039
4035
|
features: { sendMessage: !0, sendAttachment: !0 },
|
|
4040
4036
|
behavior: "chat"
|
|
4041
4037
|
}
|
|
4042
|
-
}), ft =
|
|
4038
|
+
}), ft = Pe({
|
|
4043
4039
|
id: "b2222222-2222-4222-8222-222222222201",
|
|
4044
4040
|
name: "Consultar meu plano",
|
|
4045
4041
|
action: "identification",
|
|
4046
4042
|
settings: {
|
|
4047
|
-
header:
|
|
4048
|
-
body:
|
|
4049
|
-
form: { fields: [...
|
|
4043
|
+
header: Be,
|
|
4044
|
+
body: Te($e.support, "Consultar meu plano", "Informe seus dados para consultar o plano."),
|
|
4045
|
+
form: { fields: [...gs] }
|
|
4050
4046
|
}
|
|
4051
|
-
}), yt =
|
|
4047
|
+
}), yt = Pe({
|
|
4052
4048
|
id: "b2222222-2222-4222-8222-222222222204",
|
|
4053
4049
|
name: "Cancelar plano",
|
|
4054
4050
|
action: "identification",
|
|
4055
4051
|
settings: {
|
|
4056
|
-
header:
|
|
4057
|
-
body:
|
|
4058
|
-
form: { fields: [...
|
|
4052
|
+
header: Be,
|
|
4053
|
+
body: Te($e.cancel, "Cancelar plano", "Informe seus dados para verificar o cancelamento."),
|
|
4054
|
+
form: { fields: [...vs] }
|
|
4059
4055
|
}
|
|
4060
|
-
}), xt =
|
|
4056
|
+
}), xt = Pe({
|
|
4061
4057
|
id: "d0000000-0000-4000-8000-000000000001",
|
|
4062
4058
|
name: "Mercado Livre",
|
|
4063
4059
|
action: "screen",
|
|
4064
4060
|
configId: "37b0b2d3-6a07-4567-a5ad-7456a820905d",
|
|
4065
4061
|
settings: {
|
|
4066
|
-
header:
|
|
4067
|
-
body:
|
|
4062
|
+
header: Be,
|
|
4063
|
+
body: Te($e.marketplace, "Como podemos ajudar?", "Escolha uma opção para continuar.")
|
|
4068
4064
|
}
|
|
4069
|
-
}),
|
|
4070
|
-
id:
|
|
4065
|
+
}), ws = {
|
|
4066
|
+
id: ms,
|
|
4071
4067
|
rules: [
|
|
4072
4068
|
en,
|
|
4073
4069
|
ft,
|
|
@@ -4078,14 +4074,14 @@ const hs = {
|
|
|
4078
4074
|
],
|
|
4079
4075
|
edges: {
|
|
4080
4076
|
[xt.id]: [
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4077
|
+
Me("aa2db433-f691-4b0e-b2f3-703eb131fcc1", en.id),
|
|
4078
|
+
Me("aa2db433-f691-4b0e-b2f3-703eb131fcc2", ft.id),
|
|
4079
|
+
Me("aa2db433-f691-4b0e-b2f3-703eb131fcc3", yt.id)
|
|
4084
4080
|
],
|
|
4085
|
-
[ft.id]: [
|
|
4086
|
-
[yt.id]: [
|
|
4081
|
+
[ft.id]: [Me("cc2db433-f691-4b0e-b2f3-703eb131fcc1", tn.id)],
|
|
4082
|
+
[yt.id]: [Me("cc2db433-f691-4b0e-b2f3-703eb131fcc2", nn.id)]
|
|
4087
4083
|
}
|
|
4088
|
-
},
|
|
4084
|
+
}, xs = xt, $s = (e) => ws.rules.find((t) => t.id === e), ks = {
|
|
4089
4085
|
configurations: {
|
|
4090
4086
|
alias: "Mercado Livre",
|
|
4091
4087
|
general: {
|
|
@@ -4108,9 +4104,9 @@ const hs = {
|
|
|
4108
4104
|
}
|
|
4109
4105
|
}
|
|
4110
4106
|
}
|
|
4111
|
-
},
|
|
4107
|
+
}, _s = {
|
|
4112
4108
|
install: (e) => {
|
|
4113
|
-
e.use(
|
|
4109
|
+
e.use(ys), e.component("AppIdentificationPage", dn), e.component("AppFormTextInput", un), e.component("AppWidgetAnchor", pn), e.component("AppServicePage", yn), e.component("AppScreenPage", gn), e.component("AppWidgetView", vn), e.component("AppTextInput", ir), e.component("AppCarousel", cn), e.component("AppMessage", fn), e.component("AppWidget", ur), e.component("AppButton", be), e.component("AppGroup", de), e.component("AppIcon", Q), e.component("AppText", V);
|
|
4114
4110
|
}
|
|
4115
4111
|
};
|
|
4116
4112
|
export {
|
|
@@ -4124,17 +4120,17 @@ export {
|
|
|
4124
4120
|
gn as AppScreenPage,
|
|
4125
4121
|
yn as AppServicePage,
|
|
4126
4122
|
V as AppText,
|
|
4127
|
-
|
|
4128
|
-
|
|
4123
|
+
ir as AppTextInput,
|
|
4124
|
+
ur as AppWidget,
|
|
4129
4125
|
pn as AppWidgetAnchor,
|
|
4130
4126
|
vn as AppWidgetView,
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4127
|
+
_s as default,
|
|
4128
|
+
xs as demoRootRule,
|
|
4129
|
+
ks as demoWidgetConfig,
|
|
4130
|
+
ws as demoWorkflow,
|
|
4131
|
+
$s as findDemoRuleById,
|
|
4136
4132
|
qe as useAppWidget,
|
|
4137
4133
|
so as useServiceChatBehavior,
|
|
4138
|
-
|
|
4134
|
+
io as useServicePage,
|
|
4139
4135
|
oo as useServiceVoiceBehavior
|
|
4140
4136
|
};
|