@opens/widget-ui 1.0.13 → 1.0.14
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-identification-page.vue.d.ts.map +1 -0
- package/dist/app-screen-page.vue.d.ts.map +1 -0
- package/dist/app-service-page.vue.d.ts.map +1 -0
- package/dist/components/pages/app-service-page.vue.d.ts +2 -2
- package/dist/components/widget/app-widget-view.vue.d.ts +2 -2
- package/dist/components/widget/app-widget.vue.d.ts +2 -2
- package/dist/composables/use-app-widget.d.ts +2 -2
- package/dist/composables/use-service-chat-behavior.d.ts +2 -2
- package/dist/composables/use-service-page.d.ts +2 -2
- package/dist/icons/app-icon.vue.d.ts.map +1 -0
- package/dist/widget/app-widget-view.vue.d.ts +1 -1
- package/dist/widget/app-widget.vue.d.ts +1 -1
- package/dist/yunique_widget_ui.cjs.js +1 -1
- package/dist/yunique_widget_ui.css +1 -1
- package/dist/yunique_widget_ui.es.js +199 -199
- package/dist/yunique_widget_ui.umd.js +2 -2
- package/package.json +1 -1
- package/dist/app-icon.vue.d.ts.map +0 -1
- package/dist/pages/app-identification-page.vue.d.ts.map +0 -1
- package/dist/pages/app-screen-page.vue.d.ts.map +0 -1
- package/dist/pages/app-service-page.vue.d.ts.map +0 -1
- /package/dist/{pages/app-identification-page.vue.d.ts → app-identification-page.vue.d.ts} +0 -0
- /package/dist/{pages/app-screen-page.vue.d.ts → app-screen-page.vue.d.ts} +0 -0
- /package/dist/{pages/app-service-page.vue.d.ts → app-service-page.vue.d.ts} +0 -0
- /package/dist/{app-icon.vue.d.ts → icons/app-icon.vue.d.ts} +0 -0
|
@@ -25,9 +25,9 @@ function so() {
|
|
|
25
25
|
const at = I([]), io = I(""), ao = I(!1), lo = I(!1), uo = I(!1);
|
|
26
26
|
function co() {
|
|
27
27
|
return {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
isSendingMessage: ao,
|
|
29
|
+
isErrorLoading: lo,
|
|
30
|
+
isLoading: uo,
|
|
31
31
|
messages: at,
|
|
32
32
|
text: io,
|
|
33
33
|
setMessages: (n) => {
|
|
@@ -46,20 +46,20 @@ function po() {
|
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
const Me = I([]), lt = I(void 0), ve = I(void 0), qe = () => {
|
|
49
|
-
const e = (
|
|
49
|
+
const e = (d) => {
|
|
50
50
|
const v = new Set(
|
|
51
|
-
Object.values(
|
|
51
|
+
Object.values(d.edges ?? {}).flatMap((b) => b.map((g) => g.nextRuleId))
|
|
52
52
|
);
|
|
53
|
-
return
|
|
54
|
-
}, t = (
|
|
55
|
-
const b = new Map(
|
|
56
|
-
return (
|
|
57
|
-
const
|
|
58
|
-
return
|
|
53
|
+
return d.rules.find((b) => !v.has(b.id)) ?? d.rules[0];
|
|
54
|
+
}, t = (d, v) => {
|
|
55
|
+
const b = new Map(d.rules.map((g) => [g.id, g]));
|
|
56
|
+
return (d.edges[v] ?? []).flatMap((g) => {
|
|
57
|
+
const c = b.get(g.nextRuleId);
|
|
58
|
+
return c ? [c] : [];
|
|
59
59
|
});
|
|
60
|
-
}, n = w(() => new Map((ve.value?.rules ?? []).map((
|
|
61
|
-
const
|
|
62
|
-
return
|
|
60
|
+
}, n = w(() => new Map((ve.value?.rules ?? []).map((d) => [d.id, d]))), o = w(() => ve.value ? e(ve.value) : void 0), r = w(() => {
|
|
61
|
+
const d = lt.value;
|
|
62
|
+
return d && n.value.get(d) || o.value;
|
|
63
63
|
}), s = w(() => !ve.value || !r.value ? [] : t(ve.value, r.value.id)), i = po();
|
|
64
64
|
return {
|
|
65
65
|
currentRuleId: lt,
|
|
@@ -68,20 +68,20 @@ const Me = I([]), lt = I(void 0), ve = I(void 0), qe = () => {
|
|
|
68
68
|
workflow: ve,
|
|
69
69
|
history: Me,
|
|
70
70
|
edges: s,
|
|
71
|
-
setCurrentRuleId: (
|
|
72
|
-
lt.value =
|
|
71
|
+
setCurrentRuleId: (d) => {
|
|
72
|
+
lt.value = d;
|
|
73
73
|
},
|
|
74
74
|
clearHistory: () => {
|
|
75
75
|
Me.value = [];
|
|
76
76
|
},
|
|
77
|
-
setWorkflow: (
|
|
78
|
-
ve.value =
|
|
77
|
+
setWorkflow: (d) => {
|
|
78
|
+
ve.value = d;
|
|
79
79
|
},
|
|
80
|
-
pushHistory: (
|
|
81
|
-
Me.value.push(
|
|
80
|
+
pushHistory: (d) => {
|
|
81
|
+
Me.value.push(d);
|
|
82
82
|
},
|
|
83
|
-
setHistory: (
|
|
84
|
-
Me.value = [...
|
|
83
|
+
setHistory: (d) => {
|
|
84
|
+
Me.value = [...d];
|
|
85
85
|
},
|
|
86
86
|
popHistory: () => Me.value.pop(),
|
|
87
87
|
...i
|
|
@@ -94,7 +94,7 @@ function ho(e, t) {
|
|
|
94
94
|
const { maskPhone: n, maskCpf: o } = ro(), { history: r } = qe(), s = I(0), i = I("forward"), a = I(null), l = w(() => {
|
|
95
95
|
const _ = Oe(e), N = _.settings?.form && _.settings.form.fields || [];
|
|
96
96
|
return fo(N);
|
|
97
|
-
}), u = Zn(Object.fromEntries(l.value.map((_) => [_.name, ""]))), m = w(() => l.value[s.value]), h = w(() => s.value >= l.value.length - 1), p = w(() => r.value.length > 0 || s.value > 0),
|
|
97
|
+
}), u = Zn(Object.fromEntries(l.value.map((_) => [_.name, ""]))), m = w(() => l.value[s.value]), h = w(() => s.value >= l.value.length - 1), p = w(() => r.value.length > 0 || s.value > 0), d = w(() => i.value === "back" ? "step-back" : "step-forward");
|
|
98
98
|
we(s, async () => {
|
|
99
99
|
await Ae();
|
|
100
100
|
const _ = a.value;
|
|
@@ -104,11 +104,11 @@ function ho(e, t) {
|
|
|
104
104
|
const v = w(() => l.value.every((_) => !_.required || Lt(u[_.name]))), b = (_) => {
|
|
105
105
|
const N = l.value[_];
|
|
106
106
|
return N ? N.required && !Lt(u[N.name]) ? !1 : _ >= l.value.length - 1 ? v.value : !0 : v.value;
|
|
107
|
-
}, g = w(() => b(s.value)),
|
|
107
|
+
}, g = w(() => b(s.value)), c = w(() => {
|
|
108
108
|
const _ = l.value.find((N) => _e(N.name));
|
|
109
109
|
return _ ? u[_.name]?.trim().split(/\s+/)[0] ?? "" : "";
|
|
110
110
|
}), f = (_) => {
|
|
111
|
-
const N = l.value[_], V =
|
|
111
|
+
const N = l.value[_], V = c.value, K = l.value.length ? `Passo ${_ + 1} de ${l.value.length}` : "", U = Oe(e), X = _ >= l.value.length - 1;
|
|
112
112
|
if (!N)
|
|
113
113
|
return {
|
|
114
114
|
eyebrow: K,
|
|
@@ -130,7 +130,7 @@ function ho(e, t) {
|
|
|
130
130
|
v.value && t("submit", { ...u });
|
|
131
131
|
};
|
|
132
132
|
return {
|
|
133
|
-
stepTransition:
|
|
133
|
+
stepTransition: d,
|
|
134
134
|
currentField: m,
|
|
135
135
|
canContinue: g,
|
|
136
136
|
currentStep: s,
|
|
@@ -301,16 +301,16 @@ const mo = /* @__PURE__ */ q({
|
|
|
301
301
|
n.value,
|
|
302
302
|
h.value
|
|
303
303
|
]);
|
|
304
|
-
return (
|
|
304
|
+
return (d, v) => (y(), S("div", {
|
|
305
305
|
class: F(["wu-flex", p.value])
|
|
306
306
|
}, [
|
|
307
|
-
W(
|
|
307
|
+
W(d.$slots, "default")
|
|
308
308
|
], 2));
|
|
309
309
|
}
|
|
310
310
|
}), go = {
|
|
311
311
|
class: "wu-flex wu-flex-col wu-items-stretch wu-w-full wu-cursor-text wu-gap-1",
|
|
312
312
|
"data-testid": "app-form-text-input"
|
|
313
|
-
}, vo = ["value", "type", "placeholder", "disabled", "maxlength", "aria-invalid"],
|
|
313
|
+
}, vo = ["value", "type", "placeholder", "disabled", "maxlength", "aria-invalid"], cn = /* @__PURE__ */ q({
|
|
314
314
|
__name: "app-form-text-input",
|
|
315
315
|
props: {
|
|
316
316
|
modelValue: { default: "" },
|
|
@@ -333,8 +333,8 @@ const mo = /* @__PURE__ */ q({
|
|
|
333
333
|
function u(g) {
|
|
334
334
|
if (!o.maskFunction) return g;
|
|
335
335
|
try {
|
|
336
|
-
const
|
|
337
|
-
return typeof
|
|
336
|
+
const c = o.maskFunction(g);
|
|
337
|
+
return typeof c == "string" ? c : g;
|
|
338
338
|
} catch {
|
|
339
339
|
return g;
|
|
340
340
|
}
|
|
@@ -350,7 +350,7 @@ const mo = /* @__PURE__ */ q({
|
|
|
350
350
|
},
|
|
351
351
|
{ immediate: !0 }
|
|
352
352
|
);
|
|
353
|
-
const { width: m } = un(o), h = w(() => o.invalid ? "wu-text-red-500" : o.valid ? "wu-text-green-500" : ""), p = w(() => o.invalid ? "wu-text-red-600 placeholder:wu-text-red-300 placeholder:wu-font-medium" : o.valid ? "wu-text-green-700 placeholder:wu-font-medium" : "wu-text-gray-900 placeholder:wu-text-gray-400 placeholder:wu-font-medium dark:wu-text-neutral-100 dark:placeholder:wu-text-neutral-500"),
|
|
353
|
+
const { width: m } = un(o), h = w(() => o.invalid ? "wu-text-red-500" : o.valid ? "wu-text-green-500" : ""), p = w(() => o.invalid ? "wu-text-red-600 placeholder:wu-text-red-300 placeholder:wu-font-medium" : o.valid ? "wu-text-green-700 placeholder:wu-font-medium" : "wu-text-gray-900 placeholder:wu-text-gray-400 placeholder:wu-font-medium dark:wu-text-neutral-100 dark:placeholder:wu-text-neutral-500"), d = w(() => o.invalid ? "wu-text-red-500" : o.valid ? "wu-text-green-500" : "wu-text-gray-500"), v = w(() => o.disabled ? "wu-opacity-50 wu-pointer-events-none" : "");
|
|
354
354
|
function b(g) {
|
|
355
355
|
const f = g.target.value;
|
|
356
356
|
a.value = o.maskFunction ? u(f) : f, r("update:modelValue", a.value);
|
|
@@ -358,7 +358,7 @@ const mo = /* @__PURE__ */ q({
|
|
|
358
358
|
return t({
|
|
359
359
|
focus: l,
|
|
360
360
|
content: a
|
|
361
|
-
}), (g,
|
|
361
|
+
}), (g, c) => (y(), T(le, {
|
|
362
362
|
class: F([C(m), v.value]),
|
|
363
363
|
col: "",
|
|
364
364
|
"gap-none": ""
|
|
@@ -385,14 +385,14 @@ const mo = /* @__PURE__ */ q({
|
|
|
385
385
|
maxlength: e.maxLength,
|
|
386
386
|
"aria-invalid": e.invalid ? !0 : void 0,
|
|
387
387
|
onInput: b,
|
|
388
|
-
onFocus:
|
|
389
|
-
onBlur:
|
|
390
|
-
onKeyup:
|
|
388
|
+
onFocus: c[0] || (c[0] = (f) => l.value = !0),
|
|
389
|
+
onBlur: c[1] || (c[1] = (f) => l.value = !1),
|
|
390
|
+
onKeyup: c[2] || (c[2] = et((f) => r("keyup-enter"), ["enter"]))
|
|
391
391
|
}, null, 42, vo)
|
|
392
392
|
]),
|
|
393
393
|
i("feedback") ? (y(), S("div", {
|
|
394
394
|
key: 0,
|
|
395
|
-
class: F(["wu-mt-1", [
|
|
395
|
+
class: F(["wu-mt-1", [d.value]])
|
|
396
396
|
}, [
|
|
397
397
|
W(g.$slots, "feedback")
|
|
398
398
|
], 2)) : R("", !0)
|
|
@@ -452,16 +452,16 @@ const Y = /* @__PURE__ */ q({
|
|
|
452
452
|
emits: ["click"],
|
|
453
453
|
setup(e) {
|
|
454
454
|
const t = e, n = w(() => Be());
|
|
455
|
-
function o(
|
|
456
|
-
return !!n.value[
|
|
455
|
+
function o(d) {
|
|
456
|
+
return !!n.value[d];
|
|
457
457
|
}
|
|
458
458
|
const { height: r, textSize: s, padding: i, width: a } = yo(t), l = w(() => t.soft ? "wu-bg-primary-50 !wu-text-primary-400" : t.alert ? "wu-bg-red-500 !wu-text-white" : t.warning ? "wu-bg-amber-500 !wu-text-white" : t.success ? "wu-bg-green-500 !wu-text-white" : t.outline ? "wu-bg-transparent !wu-border-gray-200 hover:!wu-bg-gray-100 hover:!wu-border-gray-300 dark:!wu-border-neutral-600 dark:hover:!wu-bg-neutral-700 dark:hover:!wu-border-neutral-500 dark:!wu-text-neutral-100" : t.ghost ? "wu-bg-transparent !wu-text-gray-700 hover:!wu-bg-gray-100 dark:!wu-text-neutral-200 dark:hover:!wu-bg-neutral-700" : t.link ? "wu-bg-transparent !wu-text-blue-600 hover:wu-underline" : "wu-bg-primary-500 !wu-text-[var(--wu-primary-fg)]"), u = w(() => t.block ? "wu-rounded-none" : t.round ? "wu-rounded-full" : "wu-rounded-lg"), m = w(() => t.icon && t.small ? "!wu-w-8 !wu-h-8 wu-p-0" : t.icon ? "!wu-w-11 !wu-h-11 wu-p-0" : i.value), h = w(() => t.icon ? "wu-justify-center" : "wu-justify-between"), p = w(() => t.disabled || t.loading ? "wu-opacity-50 wu-pointer-events-none" : "");
|
|
459
|
-
return (
|
|
459
|
+
return (d, v) => (y(), S("button", {
|
|
460
460
|
class: F(["wu-inline-flex wu-items-center wu-gap-2 wu-cursor-pointer wu-transition-all wu-border wu-border-transparent disabled:wu-opacity-50 disabled:wu-pointer-events-none hover:wu-opacity-80 focus:wu-outline-hidden focus:wu-opacity-80", [C(s), l.value, u.value, C(a), C(r), p.value, m.value, h.value]]),
|
|
461
461
|
type: "button",
|
|
462
462
|
disabled: e.disabled || e.loading,
|
|
463
463
|
"data-testid": "app-button",
|
|
464
|
-
onClick: v[0] || (v[0] = (b) =>
|
|
464
|
+
onClick: v[0] || (v[0] = (b) => d.$emit("click", b))
|
|
465
465
|
}, [
|
|
466
466
|
B("div", xo, [
|
|
467
467
|
e.loading ? (y(), T(Y, {
|
|
@@ -479,7 +479,7 @@ const Y = /* @__PURE__ */ q({
|
|
|
479
479
|
small: ""
|
|
480
480
|
}, {
|
|
481
481
|
default: $(() => [
|
|
482
|
-
W(
|
|
482
|
+
W(d.$slots, "icon")
|
|
483
483
|
]),
|
|
484
484
|
_: 3
|
|
485
485
|
})) : R("", !0),
|
|
@@ -489,7 +489,7 @@ const Y = /* @__PURE__ */ q({
|
|
|
489
489
|
small: ""
|
|
490
490
|
}, {
|
|
491
491
|
default: $(() => [
|
|
492
|
-
W(
|
|
492
|
+
W(d.$slots, "default")
|
|
493
493
|
]),
|
|
494
494
|
_: 3
|
|
495
495
|
})) : R("", !0)
|
|
@@ -499,7 +499,7 @@ const Y = /* @__PURE__ */ q({
|
|
|
499
499
|
small: ""
|
|
500
500
|
}, {
|
|
501
501
|
default: $(() => [
|
|
502
|
-
W(
|
|
502
|
+
W(d.$slots, "trailing")
|
|
503
503
|
]),
|
|
504
504
|
_: 3
|
|
505
505
|
})) : R("", !0)
|
|
@@ -516,18 +516,18 @@ const Y = /* @__PURE__ */ q({
|
|
|
516
516
|
setup(e, { expose: t, emit: n }) {
|
|
517
517
|
const o = e, r = n, s = Be(), i = I(null), a = I(null), l = I(0), u = I(0), m = I(!1);
|
|
518
518
|
let h = null;
|
|
519
|
-
const p = w(() => Math.max(o.modelValue, 0)),
|
|
519
|
+
const p = w(() => Math.max(o.modelValue, 0)), d = () => (s.default?.() ?? []).flatMap((x) => x.type === Tt || x.type === Pt ? [] : x.type === ue ? (x.children ?? []).filter(
|
|
520
520
|
(P) => !!P && typeof P == "object" && P.type !== Tt && P.type !== Pt
|
|
521
521
|
) : [x]), v = (x) => {
|
|
522
522
|
const P = Math.abs(x - p.value);
|
|
523
523
|
return P === 0 ? "is-active" : P === 1 ? "is-adjacent" : "is-far";
|
|
524
524
|
}, b = (x) => {
|
|
525
|
-
const P = a.value?.childElementCount ||
|
|
525
|
+
const P = a.value?.childElementCount || d().length, D = Math.min(Math.max(x, 0), Math.max(P - 1, 0));
|
|
526
526
|
D !== o.modelValue && r("update:modelValue", D);
|
|
527
527
|
}, g = () => {
|
|
528
528
|
const x = i.value;
|
|
529
529
|
x && (x.scrollLeft && (x.scrollLeft = 0), x.scrollTop && (x.scrollTop = 0));
|
|
530
|
-
},
|
|
530
|
+
}, c = () => {
|
|
531
531
|
const x = i.value, P = a.value;
|
|
532
532
|
if (!x || !P) return;
|
|
533
533
|
g();
|
|
@@ -536,8 +536,8 @@ const Y = /* @__PURE__ */ q({
|
|
|
536
536
|
}, f = () => {
|
|
537
537
|
h?.disconnect();
|
|
538
538
|
const x = i.value, P = a.value;
|
|
539
|
-
if (!(!x || !P) && (
|
|
540
|
-
if (h = new ResizeObserver(
|
|
539
|
+
if (!(!x || !P) && (c(), !(typeof ResizeObserver > "u"))) {
|
|
540
|
+
if (h = new ResizeObserver(c), h.observe(x), o.vertical)
|
|
541
541
|
for (const D of P.children) h.observe(D);
|
|
542
542
|
x.removeEventListener("scroll", g), x.addEventListener("scroll", g, { passive: !0 });
|
|
543
543
|
}
|
|
@@ -577,7 +577,7 @@ const Y = /* @__PURE__ */ q({
|
|
|
577
577
|
ref: a,
|
|
578
578
|
style: pe(A.value)
|
|
579
579
|
}, [
|
|
580
|
-
(y(!0), S(ue, null, xe(
|
|
580
|
+
(y(!0), S(ue, null, xe(d(), (D, z) => (y(), S("div", {
|
|
581
581
|
class: F(["wu-carousel-slide", v(z)]),
|
|
582
582
|
key: D.key ?? z,
|
|
583
583
|
"aria-hidden": z !== p.value,
|
|
@@ -588,7 +588,7 @@ const Y = /* @__PURE__ */ q({
|
|
|
588
588
|
], 6)
|
|
589
589
|
], 6));
|
|
590
590
|
}
|
|
591
|
-
}),
|
|
591
|
+
}), dn = /* @__PURE__ */ tt(ko, [["__scopeId", "data-v-744169d9"]]), _o = { class: "wu-flex wu-flex-col wu-w-full wu-h-full" }, Co = { class: "wu-relative wu-flex wu-items-center wu-w-full wu-shrink-0" }, Ao = { class: "wu-flex wu-shrink-0 wu-items-center wu-w-fit wu-justify-center wu-px-6 wu-py-4" }, So = { class: "wu-absolute wu-inset-0 wu-flex wu-items-center wu-justify-center wu-pointer-events-none" }, Bo = { class: "wu-flex wu-items-center wu-gap-1.5" }, pn = /* @__PURE__ */ q({
|
|
592
592
|
__name: "app-identification-page",
|
|
593
593
|
props: {
|
|
594
594
|
rule: {},
|
|
@@ -606,16 +606,16 @@ const Y = /* @__PURE__ */ q({
|
|
|
606
606
|
canContinueAt: m,
|
|
607
607
|
introFor: h,
|
|
608
608
|
fieldPlaceholder: p,
|
|
609
|
-
fieldType:
|
|
609
|
+
fieldType: d,
|
|
610
610
|
fieldMask: v,
|
|
611
611
|
goBack: b
|
|
612
612
|
} = ho(() => n.rule, o);
|
|
613
|
-
return (g,
|
|
613
|
+
return (g, c) => (y(), S("div", _o, [
|
|
614
614
|
B("div", Co, [
|
|
615
615
|
B("div", Ao, [
|
|
616
616
|
B("div", {
|
|
617
617
|
class: F(["wu-flex wu-items-center wu-w-fit wu-justify-center wu-cursor-pointer wu-group", { "wu-invisible wu-pointer-events-none": !C(i) }]),
|
|
618
|
-
onClick:
|
|
618
|
+
onClick: c[0] || (c[0] = //@ts-ignore
|
|
619
619
|
(...f) => C(b) && C(b)(...f))
|
|
620
620
|
}, [
|
|
621
621
|
E(Y, {
|
|
@@ -623,7 +623,7 @@ const Y = /* @__PURE__ */ q({
|
|
|
623
623
|
small: "",
|
|
624
624
|
gray: ""
|
|
625
625
|
}, {
|
|
626
|
-
default: $(() => [...
|
|
626
|
+
default: $(() => [...c[2] || (c[2] = [
|
|
627
627
|
M("chevron_left", -1)
|
|
628
628
|
])]),
|
|
629
629
|
_: 1
|
|
@@ -634,7 +634,7 @@ const Y = /* @__PURE__ */ q({
|
|
|
634
634
|
medium: "",
|
|
635
635
|
gray: ""
|
|
636
636
|
}, {
|
|
637
|
-
default: $(() => [...
|
|
637
|
+
default: $(() => [...c[3] || (c[3] = [
|
|
638
638
|
M("Voltar", -1)
|
|
639
639
|
])]),
|
|
640
640
|
_: 1
|
|
@@ -655,10 +655,10 @@ const Y = /* @__PURE__ */ q({
|
|
|
655
655
|
ref_key: "fieldHost",
|
|
656
656
|
ref: s
|
|
657
657
|
}, [
|
|
658
|
-
E(
|
|
658
|
+
E(dn, {
|
|
659
659
|
class: "wu-w-full wu-h-full",
|
|
660
660
|
modelValue: C(r),
|
|
661
|
-
"onUpdate:modelValue":
|
|
661
|
+
"onUpdate:modelValue": c[1] || (c[1] = (f) => an(r) ? r.value = f : null),
|
|
662
662
|
vertical: "",
|
|
663
663
|
fill: ""
|
|
664
664
|
}, {
|
|
@@ -718,12 +718,12 @@ const Y = /* @__PURE__ */ q({
|
|
|
718
718
|
"gap-md": ""
|
|
719
719
|
}, {
|
|
720
720
|
default: $(() => [
|
|
721
|
-
E(
|
|
721
|
+
E(cn, {
|
|
722
722
|
modelValue: C(l)[f.name],
|
|
723
723
|
"onUpdate:modelValue": (L) => C(l)[f.name] = L,
|
|
724
724
|
"mask-function": C(v)(f.name),
|
|
725
725
|
placeholder: C(p)(f),
|
|
726
|
-
type: C(
|
|
726
|
+
type: C(d)(f.name),
|
|
727
727
|
onKeyupEnter: C(u),
|
|
728
728
|
fluid: ""
|
|
729
729
|
}, {
|
|
@@ -737,7 +737,7 @@ const Y = /* @__PURE__ */ q({
|
|
|
737
737
|
disabled: !C(m)(k),
|
|
738
738
|
onClick: C(u)
|
|
739
739
|
}, {
|
|
740
|
-
trailing: $(() => [...
|
|
740
|
+
trailing: $(() => [...c[4] || (c[4] = [
|
|
741
741
|
M("arrow_forward", -1)
|
|
742
742
|
])]),
|
|
743
743
|
default: $(() => [
|
|
@@ -953,24 +953,24 @@ const Y = /* @__PURE__ */ q({
|
|
|
953
953
|
rule: {},
|
|
954
954
|
edges: {}
|
|
955
955
|
},
|
|
956
|
-
emits: ["send-message", "retry-loading-
|
|
956
|
+
emits: ["send-message", "retry-loading-chat-service"],
|
|
957
957
|
setup(e, { emit: t }) {
|
|
958
|
-
const n = t, { history: o, chat: r } = qe(), {
|
|
958
|
+
const n = t, { history: o, chat: r } = qe(), { isErrorLoading: s, isLoading: i, isSendingMessage: a, messages: l, text: u, setMessages: m } = r, h = w(() => o.value.length > 0), p = I(null), d = (c = !0) => {
|
|
959
959
|
const f = p.value;
|
|
960
|
-
f && f.scrollTo({ top: f.scrollHeight, behavior:
|
|
961
|
-
}, v = (
|
|
960
|
+
f && f.scrollTo({ top: f.scrollHeight, behavior: c ? "smooth" : "auto" });
|
|
961
|
+
}, v = (c) => `https://api.dicebear.com/10.x/marbles/svg?backgroundColor=&seed=${c === "operator" ? "operator" : "user"}`, b = () => {
|
|
962
962
|
n("send-message", u.value);
|
|
963
963
|
};
|
|
964
964
|
we(
|
|
965
965
|
() => l.value.length,
|
|
966
966
|
async () => {
|
|
967
|
-
await Ae(),
|
|
967
|
+
await Ae(), d();
|
|
968
968
|
}
|
|
969
969
|
), kt(() => {
|
|
970
|
-
|
|
970
|
+
d(!1);
|
|
971
971
|
});
|
|
972
|
-
const g = (
|
|
973
|
-
return (
|
|
972
|
+
const g = (c, f, k) => f[k - 1]?.from === c.from ? "wu-mt-1" : "wu-mt-4";
|
|
973
|
+
return (c, f) => (y(), S("div", Ro, [
|
|
974
974
|
B("div", {
|
|
975
975
|
class: "wu-flex wu-flex-col wu-flex-1 wu-min-h-0 wu-w-full wu-px-6 wu-overflow-y-auto",
|
|
976
976
|
ref_key: "messagesList",
|
|
@@ -993,11 +993,11 @@ const Y = /* @__PURE__ */ q({
|
|
|
993
993
|
}, 8, ["primary", "secondary"])), 64)) : C(s) ? (y(), T(wn, {
|
|
994
994
|
key: 2,
|
|
995
995
|
class: "wu-h-full",
|
|
996
|
-
onRefetch: f[0] || (f[0] = (k) => n("retry-loading-
|
|
996
|
+
onRefetch: f[0] || (f[0] = (k) => n("retry-loading-chat-service")),
|
|
997
997
|
error: ""
|
|
998
998
|
}, {
|
|
999
999
|
default: $(() => [...f[2] || (f[2] = [
|
|
1000
|
-
M("Ocorreu um erro ao carregar
|
|
1000
|
+
M("Ocorreu um erro ao carregar o atendimento.", -1)
|
|
1001
1001
|
])]),
|
|
1002
1002
|
_: 1
|
|
1003
1003
|
})) : (y(!0), S(ue, { key: 3 }, xe(C(l), (k, L) => (y(), T(mt, {
|
|
@@ -1137,10 +1137,10 @@ const Y = /* @__PURE__ */ q({
|
|
|
1137
1137
|
};
|
|
1138
1138
|
}, jo = () => typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia("(prefers-color-scheme: dark)").matches, vn = (e) => {
|
|
1139
1139
|
const { isLightHex: t, normalizeHex: n, parseHex: o } = gn(), r = (h, p) => h === "dark" ? "dark" : h === "light" ? "light" : p ? "dark" : "light", s = (h) => {
|
|
1140
|
-
const p = n(h),
|
|
1140
|
+
const p = n(h), d = o(p) ?? { r: 109, g: 53, b: 149 }, v = t(p);
|
|
1141
1141
|
return {
|
|
1142
1142
|
"--wu-primary": p,
|
|
1143
|
-
"--wu-primary-rgb": `${
|
|
1143
|
+
"--wu-primary-rgb": `${d.r} ${d.g} ${d.b}`,
|
|
1144
1144
|
"--wu-primary-fg": v ? "#1c1917" : "#ffffff",
|
|
1145
1145
|
"--wu-primary-border": v ? "#e5e7eb" : "color-mix(in srgb, var(--wu-primary-fg) 22%, transparent)",
|
|
1146
1146
|
"--wu-primary-50": `color-mix(in srgb, ${p} 8%, white)`,
|
|
@@ -1155,16 +1155,16 @@ const Y = /* @__PURE__ */ q({
|
|
|
1155
1155
|
"--wu-primary-900": `color-mix(in srgb, ${p} 22%, black)`
|
|
1156
1156
|
};
|
|
1157
1157
|
}, i = (h) => {
|
|
1158
|
-
const p = I(jo()),
|
|
1158
|
+
const p = I(jo()), d = w(() => r(Oe(h), p.value)), v = w(() => d.value === "dark"), b = w(() => v.value ? "wu-dark" : "");
|
|
1159
1159
|
return kt(() => {
|
|
1160
1160
|
if (typeof window > "u" || typeof window.matchMedia != "function") return;
|
|
1161
1161
|
const g = window.matchMedia("(prefers-color-scheme: dark)");
|
|
1162
1162
|
p.value = g.matches;
|
|
1163
|
-
const
|
|
1163
|
+
const c = (f) => {
|
|
1164
1164
|
p.value = f.matches;
|
|
1165
1165
|
};
|
|
1166
|
-
g.addEventListener("change",
|
|
1167
|
-
}), { isDark: v, resolvedTheme:
|
|
1166
|
+
g.addEventListener("change", c), rn(() => g.removeEventListener("change", c));
|
|
1167
|
+
}), { isDark: v, resolvedTheme: d, themeClass: b };
|
|
1168
1168
|
}, { isDark: a, themeClass: l, resolvedTheme: u } = i(() => Oe(e).theme), m = w(() => ({
|
|
1169
1169
|
...s(Oe(e).primaryColor),
|
|
1170
1170
|
colorScheme: u.value
|
|
@@ -1314,22 +1314,22 @@ const Y = /* @__PURE__ */ q({
|
|
|
1314
1314
|
config: {},
|
|
1315
1315
|
fullscreen: { type: Boolean }
|
|
1316
1316
|
},
|
|
1317
|
-
emits: ["
|
|
1317
|
+
emits: ["retry-loading-chat-service", "send-message", "edge-click", "submit", "close", "back"],
|
|
1318
1318
|
setup(e, { emit: t }) {
|
|
1319
1319
|
const n = e, o = t, { history: r, currentRule: s, edges: i, setWorkflow: a } = qe(), { appearanceStyle: l, themeClass: u } = vn(() => n.config.configurations.appearance);
|
|
1320
1320
|
a(n.workflow), we(
|
|
1321
1321
|
() => n.workflow,
|
|
1322
1322
|
(g) => a(g)
|
|
1323
1323
|
);
|
|
1324
|
-
const m = w(() => r.value.length > 0), h = w(() => m.value && s.value?.action !== "identification"), p = w(() => n.config.configurations.general.isClosable),
|
|
1324
|
+
const m = w(() => r.value.length > 0), h = w(() => m.value && s.value?.action !== "identification"), p = w(() => n.config.configurations.general.isClosable), d = {
|
|
1325
1325
|
identification: pn,
|
|
1326
1326
|
service: mn,
|
|
1327
1327
|
screen: yn
|
|
1328
1328
|
}, v = w(() => {
|
|
1329
1329
|
const g = s.value?.action;
|
|
1330
|
-
return g && g in
|
|
1330
|
+
return g && g in d ? d[g] : void 0;
|
|
1331
1331
|
}), b = w(() => n.fullscreen ? "wu-w-screen wu-h-screen" : "wu-w-[24.4rem] wu-h-[38rem] widget-shadow wu-rounded-2xl");
|
|
1332
|
-
return (g,
|
|
1332
|
+
return (g, c) => (y(), S("div", {
|
|
1333
1333
|
class: F(["yunique wu-overflow-hidden wu-relative", [b.value, C(u)]]),
|
|
1334
1334
|
"data-testid": "app-widget-view",
|
|
1335
1335
|
style: pe(C(l))
|
|
@@ -1369,14 +1369,14 @@ const Y = /* @__PURE__ */ q({
|
|
|
1369
1369
|
p.value ? (y(), T(me, {
|
|
1370
1370
|
key: 0,
|
|
1371
1371
|
class: "wu-shrink-0 !wu-bg-transparent hover:!wu-bg-[color-mix(in_srgb,var(--wu-primary-fg)_12%,transparent)]",
|
|
1372
|
-
onClick:
|
|
1372
|
+
onClick: c[0] || (c[0] = (f) => o("close")),
|
|
1373
1373
|
"data-testid": "app-widget-close",
|
|
1374
1374
|
small: "",
|
|
1375
1375
|
icon: ""
|
|
1376
1376
|
}, {
|
|
1377
1377
|
default: $(() => [
|
|
1378
1378
|
E(Y, null, {
|
|
1379
|
-
default: $(() => [...
|
|
1379
|
+
default: $(() => [...c[7] || (c[7] = [
|
|
1380
1380
|
M("close", -1)
|
|
1381
1381
|
])]),
|
|
1382
1382
|
_: 1
|
|
@@ -1398,14 +1398,14 @@ const Y = /* @__PURE__ */ q({
|
|
|
1398
1398
|
h.value ? (y(), S("div", nr, [
|
|
1399
1399
|
B("div", {
|
|
1400
1400
|
class: "wu-flex wu-items-center wu-w-fit wu-justify-center wu-cursor-pointer wu-group",
|
|
1401
|
-
onClick:
|
|
1401
|
+
onClick: c[1] || (c[1] = (f) => o("back"))
|
|
1402
1402
|
}, [
|
|
1403
1403
|
E(Y, {
|
|
1404
1404
|
class: "wu-transition-colors group-hover:!wu-text-gray-700 dark:group-hover:!wu-text-neutral-200",
|
|
1405
1405
|
small: "",
|
|
1406
1406
|
gray: ""
|
|
1407
1407
|
}, {
|
|
1408
|
-
default: $(() => [...
|
|
1408
|
+
default: $(() => [...c[8] || (c[8] = [
|
|
1409
1409
|
M("chevron_left", -1)
|
|
1410
1410
|
])]),
|
|
1411
1411
|
_: 1
|
|
@@ -1416,7 +1416,7 @@ const Y = /* @__PURE__ */ q({
|
|
|
1416
1416
|
medium: "",
|
|
1417
1417
|
gray: ""
|
|
1418
1418
|
}, {
|
|
1419
|
-
default: $(() => [...
|
|
1419
|
+
default: $(() => [...c[9] || (c[9] = [
|
|
1420
1420
|
M("Voltar", -1)
|
|
1421
1421
|
])]),
|
|
1422
1422
|
_: 1
|
|
@@ -1428,11 +1428,11 @@ const Y = /* @__PURE__ */ q({
|
|
|
1428
1428
|
key: 0,
|
|
1429
1429
|
rule: C(s),
|
|
1430
1430
|
edges: C(i),
|
|
1431
|
-
onSubmit:
|
|
1432
|
-
onBack:
|
|
1433
|
-
onEdgeClick:
|
|
1434
|
-
onSendMessage:
|
|
1435
|
-
|
|
1431
|
+
onSubmit: c[2] || (c[2] = (f) => o("submit", f)),
|
|
1432
|
+
onBack: c[3] || (c[3] = (f) => o("back")),
|
|
1433
|
+
onEdgeClick: c[4] || (c[4] = (f) => o("edge-click", f)),
|
|
1434
|
+
onSendMessage: c[5] || (c[5] = (f) => o("send-message", f)),
|
|
1435
|
+
onRetryLoadingChatService: c[6] || (c[6] = (f) => o("retry-loading-chat-service"))
|
|
1436
1436
|
}, null, 40, ["rule", "edges"])) : R("", !0)
|
|
1437
1437
|
])
|
|
1438
1438
|
]))
|
|
@@ -1450,7 +1450,7 @@ const Y = /* @__PURE__ */ q({
|
|
|
1450
1450
|
class: "!wu-text-xxs",
|
|
1451
1451
|
gray: ""
|
|
1452
1452
|
}, {
|
|
1453
|
-
default: $(() => [...
|
|
1453
|
+
default: $(() => [...c[10] || (c[10] = [
|
|
1454
1454
|
M("Powered By", -1),
|
|
1455
1455
|
B("b", { class: "wu-ml-1" }, "Opens", -1)
|
|
1456
1456
|
])]),
|
|
@@ -1460,7 +1460,7 @@ const Y = /* @__PURE__ */ q({
|
|
|
1460
1460
|
])
|
|
1461
1461
|
], 6));
|
|
1462
1462
|
}
|
|
1463
|
-
}), bn = /* @__PURE__ */ tt(ir, [["__scopeId", "data-v-
|
|
1463
|
+
}), bn = /* @__PURE__ */ tt(ir, [["__scopeId", "data-v-b632d712"]]), ar = { class: "wu-flex wu-h-full wu-pl-3 wu-gap-2 wu-z-10 wu-pointer-events-none" }, lr = { class: "wu-h-full wu-flex wu-items-center wu-justify-center" }, ur = ["value", "type", "disabled", "maxlength"], cr = { class: "wu-absolute wu-right-2 wu-z-10 wu-flex wu-items-center wu-gap-1 wu-text-gray-500" }, dr = /* @__PURE__ */ q({
|
|
1464
1464
|
__name: "app-text-input",
|
|
1465
1465
|
props: {
|
|
1466
1466
|
modelValue: { default: "" },
|
|
@@ -1507,7 +1507,7 @@ const Y = /* @__PURE__ */ q({
|
|
|
1507
1507
|
function h() {
|
|
1508
1508
|
return !(l.value || a.value);
|
|
1509
1509
|
}
|
|
1510
|
-
const { height: p, textSize:
|
|
1510
|
+
const { height: p, textSize: d, width: v } = un(o), b = w(() => o.invalid ? "wu-border-red-500 focus-within:wu-border-red-500" : o.valid ? "wu-border-green-500 focus-within:wu-border-green-500" : "wu-border-gray-200 focus-within:!wu-border-primary/40 hover:wu-border-gray-300"), g = w(() => o.invalid ? "wu-text-red-500" : o.valid ? "wu-text-green-500" : "wu-text-gray-500"), c = w(() => o.small && h() ? "wu-translate-y-[7px]" : o.small && !h() ? "wu-translate-y-0" : h() ? "wu-translate-y-[11px]" : "wu-translate-y-0"), f = w(() => i("icon") || o.loading ? "wu-pl-[34px]" : "wu-pl-3"), k = w(() => o.block ? "wu-rounded-none" : o.round ? "wu-rounded-full" : "wu-rounded-lg"), L = w(() => o.disabled || o.loading ? "wu-opacity-50 wu-pointer-events-none" : "");
|
|
1511
1511
|
function O(A) {
|
|
1512
1512
|
const P = A.target.value;
|
|
1513
1513
|
a.value = o.maskFunction ? m(P) : P, r("update:modelValue", a.value);
|
|
@@ -1564,7 +1564,7 @@ const Y = /* @__PURE__ */ q({
|
|
|
1564
1564
|
})) : R("", !0)
|
|
1565
1565
|
]),
|
|
1566
1566
|
E(j, {
|
|
1567
|
-
class: F(["wu-py-1 wu-transition", [
|
|
1567
|
+
class: F(["wu-py-1 wu-transition", [c.value]]),
|
|
1568
1568
|
small: "",
|
|
1569
1569
|
medium: "",
|
|
1570
1570
|
gray: ""
|
|
@@ -1576,7 +1576,7 @@ const Y = /* @__PURE__ */ q({
|
|
|
1576
1576
|
}, 8, ["class"])
|
|
1577
1577
|
]),
|
|
1578
1578
|
B("input", {
|
|
1579
|
-
class: F(["wu-absolute wu-inset-0 wu-w-full wu-h-full wu-outline-none wu-appearance-none wu-bg-transparent wu-pt-3 wu-pr-3 wu-text-gray-700 wu-font-primary wu-z-0", [C(
|
|
1579
|
+
class: F(["wu-absolute wu-inset-0 wu-w-full wu-h-full wu-outline-none wu-appearance-none wu-bg-transparent wu-pt-3 wu-pr-3 wu-text-gray-700 wu-font-primary wu-z-0", [C(d), f.value, k.value]]),
|
|
1580
1580
|
value: a.value,
|
|
1581
1581
|
type: e.passwordToggle && u.value ? "text" : e.type,
|
|
1582
1582
|
disabled: e.disabled || e.loading,
|
|
@@ -1586,7 +1586,7 @@ const Y = /* @__PURE__ */ q({
|
|
|
1586
1586
|
onBlur: x[1] || (x[1] = (P) => l.value = !1),
|
|
1587
1587
|
onKeyup: x[2] || (x[2] = et((P) => r("keyup-enter"), ["enter"]))
|
|
1588
1588
|
}, null, 42, ur),
|
|
1589
|
-
B("div",
|
|
1589
|
+
B("div", cr, [
|
|
1590
1590
|
e.maxLength ? (y(), T(j, {
|
|
1591
1591
|
key: 0,
|
|
1592
1592
|
small: ""
|
|
@@ -1673,17 +1673,17 @@ const Y = /* @__PURE__ */ q({
|
|
|
1673
1673
|
config: {},
|
|
1674
1674
|
fullscreen: { type: Boolean }
|
|
1675
1675
|
},
|
|
1676
|
-
emits: ["
|
|
1676
|
+
emits: ["retry-loading-chat-service", "send-message", "edge-click", "submit", "close", "back", "open"],
|
|
1677
1677
|
setup(e, { emit: t }) {
|
|
1678
|
-
const n = e, o = t, r = I(n.config.configurations.general.defaultBehavior === "active"), s = I(!r.value), { setWorkflow: i } = qe(), { getOffset: a, getPosition: l, getTone: u } = pr(), { appearanceStyle: m, themeClass: h } = vn(() => n.config.configurations.appearance), p = w(() => n.config.configurations.anchor),
|
|
1678
|
+
const n = e, o = t, r = I(n.config.configurations.general.defaultBehavior === "active"), s = I(!r.value), { setWorkflow: i } = qe(), { getOffset: a, getPosition: l, getTone: u } = pr(), { appearanceStyle: m, themeClass: h } = vn(() => n.config.configurations.appearance), p = w(() => n.config.configurations.anchor), d = w(() => n.config.configurations.appearance), v = w(() => {
|
|
1679
1679
|
if (!(r.value && n.fullscreen))
|
|
1680
1680
|
return a(p.value.position, p.value.offset);
|
|
1681
1681
|
}), b = w(() => l(p.value.position)), g = w(() => ({
|
|
1682
1682
|
workflow: n.workflow,
|
|
1683
1683
|
config: n.config,
|
|
1684
1684
|
fullscreen: n.fullscreen
|
|
1685
|
-
})),
|
|
1686
|
-
style: u(
|
|
1685
|
+
})), c = w(() => ({
|
|
1686
|
+
style: u(d.value.primaryColor),
|
|
1687
1687
|
small: p.value.size === "small",
|
|
1688
1688
|
large: p.value.size === "large",
|
|
1689
1689
|
logo: p.value.logo ?? "",
|
|
@@ -1719,23 +1719,23 @@ const Y = /* @__PURE__ */ q({
|
|
|
1719
1719
|
onSubmit: A[1] || (A[1] = (x) => o("submit", x)),
|
|
1720
1720
|
onEdgeClick: A[2] || (A[2] = (x) => o("edge-click", x)),
|
|
1721
1721
|
onSendMessage: A[3] || (A[3] = (x) => o("send-message", x)),
|
|
1722
|
-
|
|
1722
|
+
onRetryLoadingChatService: A[4] || (A[4] = (x) => o("retry-loading-chat-service"))
|
|
1723
1723
|
}), null, 16)) : R("", !0)
|
|
1724
1724
|
]),
|
|
1725
1725
|
_: 1
|
|
1726
1726
|
}),
|
|
1727
1727
|
s.value ? (y(), T(fn, {
|
|
1728
1728
|
key: 0,
|
|
1729
|
-
style: pe(
|
|
1730
|
-
small:
|
|
1731
|
-
large:
|
|
1732
|
-
logo:
|
|
1733
|
-
label:
|
|
1729
|
+
style: pe(c.value.style),
|
|
1730
|
+
small: c.value.small,
|
|
1731
|
+
large: c.value.large,
|
|
1732
|
+
logo: c.value.logo,
|
|
1733
|
+
label: c.value.label,
|
|
1734
1734
|
onClick: f
|
|
1735
1735
|
}, null, 8, ["style", "small", "large", "logo", "label"])) : R("", !0)
|
|
1736
1736
|
], 6));
|
|
1737
1737
|
}
|
|
1738
|
-
}), hr = /* @__PURE__ */ tt(fr, [["__scopeId", "data-v-
|
|
1738
|
+
}), hr = /* @__PURE__ */ tt(fr, [["__scopeId", "data-v-fcbcb50d"]]), wr = ["top", "right", "bottom", "left"], Mt = ["start", "end"], Rt = /* @__PURE__ */ wr.reduce((e, t) => e.concat(t, t + "-" + Mt[0], t + "-" + Mt[1]), []), Ie = Math.min, be = Math.max, mr = {
|
|
1739
1739
|
left: "right",
|
|
1740
1740
|
right: "left",
|
|
1741
1741
|
bottom: "top",
|
|
@@ -1844,47 +1844,47 @@ function zt(e, t, n) {
|
|
|
1844
1844
|
floating: r
|
|
1845
1845
|
} = e;
|
|
1846
1846
|
const s = ae(t), i = At(t), a = Ct(i), l = ie(t), u = s === "y", m = o.x + o.width / 2 - r.width / 2, h = o.y + o.height / 2 - r.height / 2, p = o[a] / 2 - r[a] / 2;
|
|
1847
|
-
let
|
|
1847
|
+
let d;
|
|
1848
1848
|
switch (l) {
|
|
1849
1849
|
case "top":
|
|
1850
|
-
|
|
1850
|
+
d = {
|
|
1851
1851
|
x: m,
|
|
1852
1852
|
y: o.y - r.height
|
|
1853
1853
|
};
|
|
1854
1854
|
break;
|
|
1855
1855
|
case "bottom":
|
|
1856
|
-
|
|
1856
|
+
d = {
|
|
1857
1857
|
x: m,
|
|
1858
1858
|
y: o.y + o.height
|
|
1859
1859
|
};
|
|
1860
1860
|
break;
|
|
1861
1861
|
case "right":
|
|
1862
|
-
|
|
1862
|
+
d = {
|
|
1863
1863
|
x: o.x + o.width,
|
|
1864
1864
|
y: h
|
|
1865
1865
|
};
|
|
1866
1866
|
break;
|
|
1867
1867
|
case "left":
|
|
1868
|
-
|
|
1868
|
+
d = {
|
|
1869
1869
|
x: o.x - r.width,
|
|
1870
1870
|
y: h
|
|
1871
1871
|
};
|
|
1872
1872
|
break;
|
|
1873
1873
|
default:
|
|
1874
|
-
|
|
1874
|
+
d = {
|
|
1875
1875
|
x: o.x,
|
|
1876
1876
|
y: o.y
|
|
1877
1877
|
};
|
|
1878
1878
|
}
|
|
1879
1879
|
switch (te(t)) {
|
|
1880
1880
|
case "start":
|
|
1881
|
-
|
|
1881
|
+
d[i] -= p * (n && u ? -1 : 1);
|
|
1882
1882
|
break;
|
|
1883
1883
|
case "end":
|
|
1884
|
-
|
|
1884
|
+
d[i] += p * (n && u ? -1 : 1);
|
|
1885
1885
|
break;
|
|
1886
1886
|
}
|
|
1887
|
-
return
|
|
1887
|
+
return d;
|
|
1888
1888
|
}
|
|
1889
1889
|
const Cr = async (e, t, n) => {
|
|
1890
1890
|
const {
|
|
@@ -1900,23 +1900,23 @@ const Cr = async (e, t, n) => {
|
|
|
1900
1900
|
}), {
|
|
1901
1901
|
x: m,
|
|
1902
1902
|
y: h
|
|
1903
|
-
} = zt(u, o, l), p = o,
|
|
1903
|
+
} = zt(u, o, l), p = o, d = {}, v = 0;
|
|
1904
1904
|
for (let b = 0; b < a.length; b++) {
|
|
1905
1905
|
const {
|
|
1906
1906
|
name: g,
|
|
1907
|
-
fn:
|
|
1907
|
+
fn: c
|
|
1908
1908
|
} = a[b], {
|
|
1909
1909
|
x: f,
|
|
1910
1910
|
y: k,
|
|
1911
1911
|
data: L,
|
|
1912
1912
|
reset: O
|
|
1913
|
-
} = await
|
|
1913
|
+
} = await c({
|
|
1914
1914
|
x: m,
|
|
1915
1915
|
y: h,
|
|
1916
1916
|
initialPlacement: o,
|
|
1917
1917
|
placement: p,
|
|
1918
1918
|
strategy: r,
|
|
1919
|
-
middlewareData:
|
|
1919
|
+
middlewareData: d,
|
|
1920
1920
|
rects: u,
|
|
1921
1921
|
platform: i,
|
|
1922
1922
|
elements: {
|
|
@@ -1924,10 +1924,10 @@ const Cr = async (e, t, n) => {
|
|
|
1924
1924
|
floating: t
|
|
1925
1925
|
}
|
|
1926
1926
|
});
|
|
1927
|
-
m = f ?? m, h = k ?? h,
|
|
1928
|
-
...
|
|
1927
|
+
m = f ?? m, h = k ?? h, d = {
|
|
1928
|
+
...d,
|
|
1929
1929
|
[g]: {
|
|
1930
|
-
...
|
|
1930
|
+
...d[g],
|
|
1931
1931
|
...L
|
|
1932
1932
|
}
|
|
1933
1933
|
}, O && v <= 50 && (v++, typeof O == "object" && (O.placement && (p = O.placement), O.rects && (u = O.rects === !0 ? await i.getElementRects({
|
|
@@ -1944,7 +1944,7 @@ const Cr = async (e, t, n) => {
|
|
|
1944
1944
|
y: h,
|
|
1945
1945
|
placement: p,
|
|
1946
1946
|
strategy: r,
|
|
1947
|
-
middlewareData:
|
|
1947
|
+
middlewareData: d
|
|
1948
1948
|
};
|
|
1949
1949
|
};
|
|
1950
1950
|
async function nt(e, t) {
|
|
@@ -1962,8 +1962,8 @@ async function nt(e, t) {
|
|
|
1962
1962
|
rootBoundary: m = "viewport",
|
|
1963
1963
|
elementContext: h = "floating",
|
|
1964
1964
|
altBoundary: p = !1,
|
|
1965
|
-
padding:
|
|
1966
|
-
} = $e(t, e), v = kn(
|
|
1965
|
+
padding: d = 0
|
|
1966
|
+
} = $e(t, e), v = kn(d), g = a[p ? h === "floating" ? "reference" : "floating" : h], c = He(await s.getClippingRect({
|
|
1967
1967
|
element: (n = await (s.isElement == null ? void 0 : s.isElement(g))) == null || n ? g : g.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(a.floating)),
|
|
1968
1968
|
boundary: u,
|
|
1969
1969
|
rootBoundary: m,
|
|
@@ -1986,10 +1986,10 @@ async function nt(e, t) {
|
|
|
1986
1986
|
strategy: l
|
|
1987
1987
|
}) : f);
|
|
1988
1988
|
return {
|
|
1989
|
-
top: (
|
|
1990
|
-
bottom: (O.bottom -
|
|
1991
|
-
left: (
|
|
1992
|
-
right: (O.right -
|
|
1989
|
+
top: (c.top - O.top + v.top) / L.y,
|
|
1990
|
+
bottom: (O.bottom - c.bottom + v.bottom) / L.y,
|
|
1991
|
+
left: (c.left - O.left + v.left) / L.x,
|
|
1992
|
+
right: (O.right - c.right + v.right) / L.x
|
|
1993
1993
|
};
|
|
1994
1994
|
}
|
|
1995
1995
|
const Ar = (e) => ({
|
|
@@ -2013,14 +2013,14 @@ const Ar = (e) => ({
|
|
|
2013
2013
|
const h = kn(m), p = {
|
|
2014
2014
|
x: n,
|
|
2015
2015
|
y: o
|
|
2016
|
-
},
|
|
2016
|
+
}, d = At(r), v = Ct(d), b = await i.getDimensions(u), g = d === "y", c = g ? "top" : "left", f = g ? "bottom" : "right", k = g ? "clientHeight" : "clientWidth", L = s.reference[v] + s.reference[d] - p[d] - s.floating[v], O = p[d] - s.reference[d], A = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
|
|
2017
2017
|
let x = A ? A[k] : 0;
|
|
2018
2018
|
(!x || !await (i.isElement == null ? void 0 : i.isElement(A))) && (x = a.floating[k] || s.floating[v]);
|
|
2019
|
-
const P = L / 2 - O / 2, D = x / 2 - b[v] / 2 - 1, z = Ie(h[
|
|
2019
|
+
const P = L / 2 - O / 2, D = x / 2 - b[v] / 2 - 1, z = Ie(h[c], D), G = Ie(h[f], D), _ = z, N = x - b[v] - G, V = x / 2 - b[v] / 2 + P, K = gt(_, V, N), U = !l.arrow && te(r) != null && V !== K && s.reference[v] / 2 - (V < _ ? z : G) - b[v] / 2 < 0, X = U ? V < _ ? V - _ : V - N : 0;
|
|
2020
2020
|
return {
|
|
2021
|
-
[
|
|
2021
|
+
[d]: p[d] + X,
|
|
2022
2022
|
data: {
|
|
2023
|
-
[
|
|
2023
|
+
[d]: K,
|
|
2024
2024
|
centerOffset: V - K - X,
|
|
2025
2025
|
...U && {
|
|
2026
2026
|
alignmentOffset: X
|
|
@@ -2049,9 +2049,9 @@ const Br = function(e) {
|
|
|
2049
2049
|
crossAxis: m = !1,
|
|
2050
2050
|
alignment: h,
|
|
2051
2051
|
allowedPlacements: p = Rt,
|
|
2052
|
-
autoAlignment:
|
|
2052
|
+
autoAlignment: d = !0,
|
|
2053
2053
|
...v
|
|
2054
|
-
} = $e(e, t), b = h !== void 0 || p === Rt ? Sr(h || null,
|
|
2054
|
+
} = $e(e, t), b = h !== void 0 || p === Rt ? Sr(h || null, d, p) : p, g = await nt(t, v), c = ((n = i.autoPlacement) == null ? void 0 : n.index) || 0, f = b[c];
|
|
2055
2055
|
if (f == null)
|
|
2056
2056
|
return {};
|
|
2057
2057
|
const k = $n(f, s, await (l.isRTL == null ? void 0 : l.isRTL(u.floating)));
|
|
@@ -2064,11 +2064,11 @@ const Br = function(e) {
|
|
|
2064
2064
|
const L = [g[ie(f)], g[k[0]], g[k[1]]], O = [...((o = i.autoPlacement) == null ? void 0 : o.overflows) || [], {
|
|
2065
2065
|
placement: f,
|
|
2066
2066
|
overflows: L
|
|
2067
|
-
}], A = b[
|
|
2067
|
+
}], A = b[c + 1];
|
|
2068
2068
|
if (A)
|
|
2069
2069
|
return {
|
|
2070
2070
|
data: {
|
|
2071
|
-
index:
|
|
2071
|
+
index: c + 1,
|
|
2072
2072
|
overflows: O
|
|
2073
2073
|
},
|
|
2074
2074
|
reset: {
|
|
@@ -2092,7 +2092,7 @@ const Br = function(e) {
|
|
|
2092
2092
|
).every((G) => G <= 0))[0]) == null ? void 0 : r[0]) || x[0][0];
|
|
2093
2093
|
return D !== a ? {
|
|
2094
2094
|
data: {
|
|
2095
|
-
index:
|
|
2095
|
+
index: c + 1,
|
|
2096
2096
|
overflows: O
|
|
2097
2097
|
},
|
|
2098
2098
|
reset: {
|
|
@@ -2118,18 +2118,18 @@ const Br = function(e) {
|
|
|
2118
2118
|
mainAxis: m = !0,
|
|
2119
2119
|
crossAxis: h = !0,
|
|
2120
2120
|
fallbackPlacements: p,
|
|
2121
|
-
fallbackStrategy:
|
|
2121
|
+
fallbackStrategy: d = "bestFit",
|
|
2122
2122
|
fallbackAxisSideDirection: v = "none",
|
|
2123
2123
|
flipAlignment: b = !0,
|
|
2124
2124
|
...g
|
|
2125
2125
|
} = $e(e, t);
|
|
2126
2126
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
2127
2127
|
return {};
|
|
2128
|
-
const
|
|
2128
|
+
const c = ie(r), f = ae(a), k = ie(a) === a, L = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), O = p || (k || !b ? [Ye(a)] : yr(a)), A = v !== "none";
|
|
2129
2129
|
!p && A && O.push(...kr(a, b, v, L));
|
|
2130
2130
|
const x = [a, ...O], P = await nt(t, g), D = [];
|
|
2131
2131
|
let z = ((o = s.flip) == null ? void 0 : o.overflows) || [];
|
|
2132
|
-
if (m && D.push(P[
|
|
2132
|
+
if (m && D.push(P[c]), h) {
|
|
2133
2133
|
const V = $n(r, i, L);
|
|
2134
2134
|
D.push(P[V[0]], P[V[1]]);
|
|
2135
2135
|
}
|
|
@@ -2153,7 +2153,7 @@ const Br = function(e) {
|
|
|
2153
2153
|
};
|
|
2154
2154
|
let U = (_ = z.filter((X) => X.overflows[0] <= 0).sort((X, Q) => X.overflows[1] - Q.overflows[1])[0]) == null ? void 0 : _.placement;
|
|
2155
2155
|
if (!U)
|
|
2156
|
-
switch (
|
|
2156
|
+
switch (d) {
|
|
2157
2157
|
case "bestFit": {
|
|
2158
2158
|
var N;
|
|
2159
2159
|
const X = (N = z.filter((Q) => {
|
|
@@ -2191,7 +2191,7 @@ async function Lr(e, t) {
|
|
|
2191
2191
|
} = e, s = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), i = ie(n), a = te(n), l = ae(n) === "y", u = Pr.has(i) ? -1 : 1, m = s && l ? -1 : 1, h = $e(t, e);
|
|
2192
2192
|
let {
|
|
2193
2193
|
mainAxis: p,
|
|
2194
|
-
crossAxis:
|
|
2194
|
+
crossAxis: d,
|
|
2195
2195
|
alignmentAxis: v
|
|
2196
2196
|
} = typeof h == "number" ? {
|
|
2197
2197
|
mainAxis: h,
|
|
@@ -2202,12 +2202,12 @@ async function Lr(e, t) {
|
|
|
2202
2202
|
crossAxis: h.crossAxis || 0,
|
|
2203
2203
|
alignmentAxis: h.alignmentAxis
|
|
2204
2204
|
};
|
|
2205
|
-
return a && typeof v == "number" && (
|
|
2206
|
-
x:
|
|
2205
|
+
return a && typeof v == "number" && (d = a === "end" ? v * -1 : v), l ? {
|
|
2206
|
+
x: d * m,
|
|
2207
2207
|
y: p * u
|
|
2208
2208
|
} : {
|
|
2209
2209
|
x: p * u,
|
|
2210
|
-
y:
|
|
2210
|
+
y: d * m
|
|
2211
2211
|
};
|
|
2212
2212
|
}
|
|
2213
2213
|
const Mr = function(e) {
|
|
@@ -2247,11 +2247,11 @@ const Mr = function(e) {
|
|
|
2247
2247
|
limiter: a = {
|
|
2248
2248
|
fn: (g) => {
|
|
2249
2249
|
let {
|
|
2250
|
-
x:
|
|
2250
|
+
x: c,
|
|
2251
2251
|
y: f
|
|
2252
2252
|
} = g;
|
|
2253
2253
|
return {
|
|
2254
|
-
x:
|
|
2254
|
+
x: c,
|
|
2255
2255
|
y: f
|
|
2256
2256
|
};
|
|
2257
2257
|
}
|
|
@@ -2261,18 +2261,18 @@ const Mr = function(e) {
|
|
|
2261
2261
|
x: n,
|
|
2262
2262
|
y: o
|
|
2263
2263
|
}, m = await nt(t, l), h = ae(ie(r)), p = xn(h);
|
|
2264
|
-
let
|
|
2264
|
+
let d = u[p], v = u[h];
|
|
2265
2265
|
if (s) {
|
|
2266
|
-
const g = p === "y" ? "top" : "left",
|
|
2267
|
-
|
|
2266
|
+
const g = p === "y" ? "top" : "left", c = p === "y" ? "bottom" : "right", f = d + m[g], k = d - m[c];
|
|
2267
|
+
d = gt(f, d, k);
|
|
2268
2268
|
}
|
|
2269
2269
|
if (i) {
|
|
2270
|
-
const g = h === "y" ? "top" : "left",
|
|
2270
|
+
const g = h === "y" ? "top" : "left", c = h === "y" ? "bottom" : "right", f = v + m[g], k = v - m[c];
|
|
2271
2271
|
v = gt(f, v, k);
|
|
2272
2272
|
}
|
|
2273
2273
|
const b = a.fn({
|
|
2274
2274
|
...t,
|
|
2275
|
-
[p]:
|
|
2275
|
+
[p]: d,
|
|
2276
2276
|
[h]: v
|
|
2277
2277
|
});
|
|
2278
2278
|
return {
|
|
@@ -2303,17 +2303,17 @@ const Mr = function(e) {
|
|
|
2303
2303
|
apply: l = () => {
|
|
2304
2304
|
},
|
|
2305
2305
|
...u
|
|
2306
|
-
} = $e(e, t), m = await nt(t, u), h = ie(r), p = te(r),
|
|
2306
|
+
} = $e(e, t), m = await nt(t, u), h = ie(r), p = te(r), d = ae(r) === "y", {
|
|
2307
2307
|
width: v,
|
|
2308
2308
|
height: b
|
|
2309
2309
|
} = s.floating;
|
|
2310
|
-
let g,
|
|
2311
|
-
h === "top" || h === "bottom" ? (g = h,
|
|
2312
|
-
const f = b - m.top - m.bottom, k = v - m.left - m.right, L = Ie(b - m[g], f), O = Ie(v - m[
|
|
2310
|
+
let g, c;
|
|
2311
|
+
h === "top" || h === "bottom" ? (g = h, c = p === (await (i.isRTL == null ? void 0 : i.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (c = h, g = p === "end" ? "top" : "bottom");
|
|
2312
|
+
const f = b - m.top - m.bottom, k = v - m.left - m.right, L = Ie(b - m[g], f), O = Ie(v - m[c], k), A = !t.middlewareData.shift;
|
|
2313
2313
|
let x = L, P = O;
|
|
2314
2314
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (P = k), (o = t.middlewareData.shift) != null && o.enabled.y && (x = f), A && !p) {
|
|
2315
2315
|
const z = be(m.left, 0), G = be(m.right, 0), _ = be(m.top, 0), N = be(m.bottom, 0);
|
|
2316
|
-
|
|
2316
|
+
d ? P = v - 2 * (z !== 0 || G !== 0 ? z + G : be(m.left, m.right)) : x = b - 2 * (_ !== 0 || N !== 0 ? _ + N : be(m.top, m.bottom));
|
|
2317
2317
|
}
|
|
2318
2318
|
await l({
|
|
2319
2319
|
...t,
|
|
@@ -2402,16 +2402,16 @@ function De(e, t, n, o) {
|
|
|
2402
2402
|
let l = Tn;
|
|
2403
2403
|
t && (o ? fe(o) && (l = Ce(o)) : l = Ce(e));
|
|
2404
2404
|
const u = a ? J(a) : window, m = !Sn() && n;
|
|
2405
|
-
let h = (i.left + (m && ((r = u.visualViewport) == null ? void 0 : r.offsetLeft) || 0)) / l.x, p = (i.top + (m && ((s = u.visualViewport) == null ? void 0 : s.offsetTop) || 0)) / l.y,
|
|
2405
|
+
let h = (i.left + (m && ((r = u.visualViewport) == null ? void 0 : r.offsetLeft) || 0)) / l.x, p = (i.top + (m && ((s = u.visualViewport) == null ? void 0 : s.offsetTop) || 0)) / l.y, d = i.width / l.x, v = i.height / l.y;
|
|
2406
2406
|
if (a) {
|
|
2407
2407
|
const b = J(a), g = o && fe(o) ? J(o) : o;
|
|
2408
|
-
let
|
|
2409
|
-
for (;
|
|
2410
|
-
const f = Ce(
|
|
2411
|
-
k.x += (
|
|
2408
|
+
let c = b.frameElement;
|
|
2409
|
+
for (; c && o && g !== b; ) {
|
|
2410
|
+
const f = Ce(c), k = c.getBoundingClientRect(), L = getComputedStyle(c);
|
|
2411
|
+
k.x += (c.clientLeft + parseFloat(L.paddingLeft)) * f.x, k.y += (c.clientTop + parseFloat(L.paddingTop)) * f.y, h *= f.x, p *= f.y, d *= f.x, v *= f.y, h += k.x, p += k.y, c = J(c).frameElement;
|
|
2412
2412
|
}
|
|
2413
2413
|
}
|
|
2414
|
-
return { width:
|
|
2414
|
+
return { width: d, height: v, top: p, right: h + d, bottom: p + v, left: h, x: h, y: p };
|
|
2415
2415
|
}
|
|
2416
2416
|
function he(e) {
|
|
2417
2417
|
return ((An(e) ? e.ownerDocument : e.document) || window.document).documentElement;
|
|
@@ -2488,12 +2488,12 @@ const Er = { getClippingRect: function(e) {
|
|
|
2488
2488
|
const s = n === "clippingAncestors" ? (function(u, m) {
|
|
2489
2489
|
const h = m.get(u);
|
|
2490
2490
|
if (h) return h;
|
|
2491
|
-
let p = Qe(u).filter(((g) => fe(g) && ge(g) !== "body")),
|
|
2491
|
+
let p = Qe(u).filter(((g) => fe(g) && ge(g) !== "body")), d = null;
|
|
2492
2492
|
const v = re(u).position === "fixed";
|
|
2493
2493
|
let b = v ? je(u) : u;
|
|
2494
2494
|
for (; fe(b) && !St(b); ) {
|
|
2495
|
-
const g = re(b),
|
|
2496
|
-
(v ?
|
|
2495
|
+
const g = re(b), c = vt(b);
|
|
2496
|
+
(v ? c || d : c || g.position !== "static" || !d || !["absolute", "fixed"].includes(d.position)) ? d = g : p = p.filter(((f) => f !== b)), b = je(b);
|
|
2497
2497
|
}
|
|
2498
2498
|
return m.set(u, p), p;
|
|
2499
2499
|
})(t, this._c) : [].concat(n), i = [...s, o], a = i[0], l = i.reduce(((u, m) => {
|
|
@@ -2684,17 +2684,17 @@ function H(e) {
|
|
|
2684
2684
|
return Ve(t.theme, e);
|
|
2685
2685
|
};
|
|
2686
2686
|
}
|
|
2687
|
-
const
|
|
2687
|
+
const ct = "__floating-vue__popper", Hn = () => q({
|
|
2688
2688
|
name: "VPopper",
|
|
2689
2689
|
provide() {
|
|
2690
2690
|
return {
|
|
2691
|
-
[
|
|
2691
|
+
[ct]: {
|
|
2692
2692
|
parentPopper: this
|
|
2693
2693
|
}
|
|
2694
2694
|
};
|
|
2695
2695
|
},
|
|
2696
2696
|
inject: {
|
|
2697
|
-
[
|
|
2697
|
+
[ct]: { default: null }
|
|
2698
2698
|
},
|
|
2699
2699
|
props: {
|
|
2700
2700
|
theme: {
|
|
@@ -2941,7 +2941,7 @@ const dt = "__floating-vue__popper", Hn = () => q({
|
|
|
2941
2941
|
},
|
|
2942
2942
|
parentPopper() {
|
|
2943
2943
|
var e;
|
|
2944
|
-
return (e = this[
|
|
2944
|
+
return (e = this[ct]) == null ? void 0 : e.parentPopper;
|
|
2945
2945
|
},
|
|
2946
2946
|
hasPopperShowTriggerHover() {
|
|
2947
2947
|
var e, t;
|
|
@@ -3238,11 +3238,11 @@ const dt = "__floating-vue__popper", Hn = () => q({
|
|
|
3238
3238
|
$_isAimingPopper() {
|
|
3239
3239
|
const e = this.$_referenceNode.getBoundingClientRect();
|
|
3240
3240
|
if (Ee >= e.left && Ee <= e.right && Fe >= e.top && Fe <= e.bottom) {
|
|
3241
|
-
const t = this.$_popperNode.getBoundingClientRect(), n = Ee -
|
|
3242
|
-
return Ze(
|
|
3243
|
-
Ze(
|
|
3244
|
-
Ze(
|
|
3245
|
-
Ze(
|
|
3241
|
+
const t = this.$_popperNode.getBoundingClientRect(), n = Ee - ce, o = Fe - de, r = t.left + t.width / 2 - ce + (t.top + t.height / 2) - de + t.width + t.height, s = ce + n * r, i = de + o * r;
|
|
3242
|
+
return Ze(ce, de, s, i, t.left, t.top, t.left, t.bottom) || // Left edge
|
|
3243
|
+
Ze(ce, de, s, i, t.left, t.top, t.right, t.top) || // Top edge
|
|
3244
|
+
Ze(ce, de, s, i, t.right, t.top, t.right, t.bottom) || // Right edge
|
|
3245
|
+
Ze(ce, de, s, i, t.left, t.bottom, t.right, t.bottom);
|
|
3246
3246
|
}
|
|
3247
3247
|
return !1;
|
|
3248
3248
|
}
|
|
@@ -3314,9 +3314,9 @@ function Dr() {
|
|
|
3314
3314
|
for (let e = 0; e < ee.length; e++)
|
|
3315
3315
|
ee[e].$_computePosition();
|
|
3316
3316
|
}
|
|
3317
|
-
let
|
|
3317
|
+
let ce = 0, de = 0, Ee = 0, Fe = 0;
|
|
3318
3318
|
typeof window < "u" && window.addEventListener("mousemove", (e) => {
|
|
3319
|
-
|
|
3319
|
+
ce = Ee, de = Fe, Ee = e.clientX, Fe = e.clientY;
|
|
3320
3320
|
}, Se ? {
|
|
3321
3321
|
passive: !0
|
|
3322
3322
|
} : void 0);
|
|
@@ -3759,16 +3759,16 @@ function os(e, t, n, o, r, s) {
|
|
|
3759
3759
|
shouldMountContent: m,
|
|
3760
3760
|
skipTransition: h,
|
|
3761
3761
|
autoHide: p,
|
|
3762
|
-
show:
|
|
3762
|
+
show: d,
|
|
3763
3763
|
hide: v,
|
|
3764
3764
|
handleResize: b,
|
|
3765
3765
|
onResize: g,
|
|
3766
|
-
classes:
|
|
3766
|
+
classes: c,
|
|
3767
3767
|
result: f
|
|
3768
3768
|
}) => [
|
|
3769
3769
|
W(e.$slots, "default", {
|
|
3770
3770
|
shown: u,
|
|
3771
|
-
show:
|
|
3771
|
+
show: d,
|
|
3772
3772
|
hide: v
|
|
3773
3773
|
}),
|
|
3774
3774
|
E(i, {
|
|
@@ -3780,7 +3780,7 @@ function os(e, t, n, o, r, s) {
|
|
|
3780
3780
|
"skip-transition": h,
|
|
3781
3781
|
"auto-hide": p,
|
|
3782
3782
|
"handle-resize": b,
|
|
3783
|
-
classes:
|
|
3783
|
+
classes: c,
|
|
3784
3784
|
result: f,
|
|
3785
3785
|
onHide: v,
|
|
3786
3786
|
onResize: g
|
|
@@ -3890,7 +3890,7 @@ const Bt = /* @__PURE__ */ st(ns, [["render", os]]), rs = {
|
|
|
3890
3890
|
}
|
|
3891
3891
|
}
|
|
3892
3892
|
}), ls = ["innerHTML"], us = ["textContent"];
|
|
3893
|
-
function
|
|
3893
|
+
function cs(e, t, n, o, r, s) {
|
|
3894
3894
|
const i = Ne("PopperContent"), a = Ne("Popper");
|
|
3895
3895
|
return y(), T(a, _t({ ref: "popper" }, e.$attrs, {
|
|
3896
3896
|
theme: e.theme,
|
|
@@ -3905,11 +3905,11 @@ function ds(e, t, n, o, r, s) {
|
|
|
3905
3905
|
shouldMountContent: m,
|
|
3906
3906
|
skipTransition: h,
|
|
3907
3907
|
autoHide: p,
|
|
3908
|
-
hide:
|
|
3908
|
+
hide: d,
|
|
3909
3909
|
handleResize: v,
|
|
3910
3910
|
onResize: b,
|
|
3911
3911
|
classes: g,
|
|
3912
|
-
result:
|
|
3912
|
+
result: c
|
|
3913
3913
|
}) => [
|
|
3914
3914
|
E(i, {
|
|
3915
3915
|
ref: "popperContent",
|
|
@@ -3924,8 +3924,8 @@ function ds(e, t, n, o, r, s) {
|
|
|
3924
3924
|
"auto-hide": p,
|
|
3925
3925
|
"handle-resize": v,
|
|
3926
3926
|
classes: g,
|
|
3927
|
-
result:
|
|
3928
|
-
onHide:
|
|
3927
|
+
result: c,
|
|
3928
|
+
onHide: d,
|
|
3929
3929
|
onResize: b
|
|
3930
3930
|
}, {
|
|
3931
3931
|
default: $(() => [
|
|
@@ -3943,7 +3943,7 @@ function ds(e, t, n, o, r, s) {
|
|
|
3943
3943
|
_: 1
|
|
3944
3944
|
}, 16, ["theme", "target-nodes", "popper-node", "onApplyShow", "onApplyHide"]);
|
|
3945
3945
|
}
|
|
3946
|
-
const
|
|
3946
|
+
const ds = /* @__PURE__ */ st(as, [["render", cs]]), In = "v-popper--has-tooltip";
|
|
3947
3947
|
function ps(e, t) {
|
|
3948
3948
|
let n = e.placement;
|
|
3949
3949
|
if (!n && t)
|
|
@@ -3956,11 +3956,11 @@ function Dn(e, t, n) {
|
|
|
3956
3956
|
const r = typeof t;
|
|
3957
3957
|
return r === "string" ? o = { content: t } : t && r === "object" ? o = t : o = { content: !1 }, o.placement = ps(o, n), o.targetNodes = () => [e], o.referenceNode = () => e, o;
|
|
3958
3958
|
}
|
|
3959
|
-
let
|
|
3959
|
+
let dt, We, fs = 0;
|
|
3960
3960
|
function hs() {
|
|
3961
|
-
if (
|
|
3961
|
+
if (dt)
|
|
3962
3962
|
return;
|
|
3963
|
-
We = I([]),
|
|
3963
|
+
We = I([]), dt = to({
|
|
3964
3964
|
name: "VTooltipDirectiveApp",
|
|
3965
3965
|
setup() {
|
|
3966
3966
|
return {
|
|
@@ -3968,7 +3968,7 @@ function hs() {
|
|
|
3968
3968
|
};
|
|
3969
3969
|
},
|
|
3970
3970
|
render() {
|
|
3971
|
-
return this.directives.map((t) => no(
|
|
3971
|
+
return this.directives.map((t) => no(ds, {
|
|
3972
3972
|
...t.options,
|
|
3973
3973
|
shown: t.shown || t.options.shown,
|
|
3974
3974
|
key: t.id
|
|
@@ -3979,7 +3979,7 @@ function hs() {
|
|
|
3979
3979
|
}
|
|
3980
3980
|
});
|
|
3981
3981
|
const e = document.createElement("div");
|
|
3982
|
-
document.body.appendChild(e),
|
|
3982
|
+
document.body.appendChild(e), dt.mount(e);
|
|
3983
3983
|
}
|
|
3984
3984
|
function ws(e, t, n) {
|
|
3985
3985
|
hs();
|
|
@@ -4223,14 +4223,14 @@ const ys = {
|
|
|
4223
4223
|
}
|
|
4224
4224
|
}, Ts = {
|
|
4225
4225
|
install: (e) => {
|
|
4226
|
-
e.use(ys), e.component("AppIdentificationPage", pn), e.component("AppFormTextInput",
|
|
4226
|
+
e.use(ys), e.component("AppIdentificationPage", pn), e.component("AppFormTextInput", cn), e.component("AppWidgetAnchor", fn), e.component("AppServicePage", mn), e.component("AppScreenPage", yn), e.component("AppWidgetView", bn), e.component("AppTextInput", dr), e.component("AppCarousel", dn), e.component("AppSkeleton", hn), e.component("AppMessage", mt), e.component("AppWidget", hr), e.component("AppButton", me), e.component("AppEmpty", wn), e.component("AppGroup", le), e.component("AppIcon", Y), e.component("AppText", j);
|
|
4227
4227
|
}
|
|
4228
4228
|
};
|
|
4229
4229
|
export {
|
|
4230
4230
|
me as AppButton,
|
|
4231
|
-
|
|
4231
|
+
dn as AppCarousel,
|
|
4232
4232
|
wn as AppEmpty,
|
|
4233
|
-
|
|
4233
|
+
cn as AppFormTextInput,
|
|
4234
4234
|
le as AppGroup,
|
|
4235
4235
|
Y as AppIcon,
|
|
4236
4236
|
pn as AppIdentificationPage,
|
|
@@ -4239,7 +4239,7 @@ export {
|
|
|
4239
4239
|
mn as AppServicePage,
|
|
4240
4240
|
hn as AppSkeleton,
|
|
4241
4241
|
j as AppText,
|
|
4242
|
-
|
|
4242
|
+
dr as AppTextInput,
|
|
4243
4243
|
hr as AppWidget,
|
|
4244
4244
|
fn as AppWidgetAnchor,
|
|
4245
4245
|
bn as AppWidgetView,
|