@opens/widget-ui 1.0.12 → 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/README.md +1 -1
- 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/typography/use-typography-classes.d.ts +30 -30
- 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-button-style.d.ts +3 -3
- package/dist/composables/use-input-style.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/composables/use-widget-appearance.d.ts +1 -1
- package/dist/typography/app-text.vue.d.ts +1 -1
- package/dist/ui/app-carousel.vue.d.ts +1 -1
- 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 +531 -531
- package/dist/yunique_widget_ui.umd.js +2 -2
- package/package.json +1 -1
- package/dist/pages/app-service-page.vue.d.ts.map +0 -1
- /package/dist/{pages/app-service-page.vue.d.ts → app-service-page.vue.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as I, computed as
|
|
1
|
+
import { ref as I, computed as w, toValue as Oe, reactive as Zn, watch as we, nextTick as Ae, defineComponent as q, createElementBlock as S, openBlock as y, normalizeClass as F, unref as C, renderSlot as W, useSlots as Be, createBlock as T, withCtx as $, createElementVNode as B, createCommentVNode as R, withKeys as et, createTextVNode as M, onMounted as kt, onBeforeUnmount as rn, normalizeStyle as pe, Fragment as ue, renderList as xe, resolveDynamicComponent as sn, Comment as Tt, Text as Pt, createVNode as E, isRef as an, toDisplayString as Z, createSlots as wt, withDirectives as Un, withModifiers as Xn, vModelText as Yn, Transition as ln, mergeProps as _t, pushScopeId as Kn, popScopeId as Qn, normalizeProps as Jn, guardReactiveProps as eo, resolveComponent as Ne, createApp as to, h as no, withScopeId as oo } from "vue";
|
|
2
2
|
function ro() {
|
|
3
3
|
return {
|
|
4
4
|
maskPhone: (r) => {
|
|
@@ -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,21 +46,21 @@ 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 =
|
|
61
|
-
const
|
|
62
|
-
return
|
|
63
|
-
}), s =
|
|
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
|
+
}), s = w(() => !ve.value || !r.value ? [] : t(ve.value, r.value.id)), i = po();
|
|
64
64
|
return {
|
|
65
65
|
currentRuleId: lt,
|
|
66
66
|
currentRule: r,
|
|
@@ -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
|
|
@@ -90,25 +90,25 @@ const Me = I([]), lt = I(void 0), ve = I(void 0), qe = () => {
|
|
|
90
90
|
const t = e.filter((o) => _e(o.name)), n = e.filter((o) => !_e(o.name));
|
|
91
91
|
return [...t, ...n];
|
|
92
92
|
};
|
|
93
|
-
function
|
|
94
|
-
const { maskPhone: n, maskCpf: o } = ro(), { history: r } = qe(), s = I(0), i = I("forward"), a = I(null), l =
|
|
93
|
+
function ho(e, t) {
|
|
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 =
|
|
98
|
-
|
|
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
|
+
we(s, async () => {
|
|
99
99
|
await Ae();
|
|
100
100
|
const _ = a.value;
|
|
101
101
|
if (!_) return;
|
|
102
102
|
(_.querySelector(".is-active input") ?? _.querySelector("input"))?.focus({ preventScroll: !0 });
|
|
103
103
|
});
|
|
104
|
-
const v =
|
|
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 =
|
|
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,
|
|
@@ -123,18 +123,18 @@ function yo(e, t) {
|
|
|
123
123
|
};
|
|
124
124
|
const Q = X ? V ? `Quase lá, ${V}.` : "Quase lá." : V ? `Olá, ${V}.` : "Olá.", oe = N.required ? `Informe seu ${N.alias} para continuar.` : `Gostaria de deixar seu ${N.alias}?`;
|
|
125
125
|
return { eyebrow: K, title: Q, subtitle: oe };
|
|
126
|
-
}, k =
|
|
126
|
+
}, k = w(() => f(s.value)), L = (_) => _ === "email" ? "email" : _ === "phone" ? "tel" : "text", O = (_) => _ === "email" ? "email" : _ === "phone" ? "call" : _e(_) ? "person" : _ === "order" ? "receipt" : "badge", A = (_) => _.required ? `${_.alias} *` : _.alias, x = (_) => _e(_.name) ? "Seu nome" : _.name === "phone" ? "Seu telefone" : _.name === "email" ? "Seu e-mail" : _.name === "cpf" ? "000.000.000-00" : _.alias, P = (_) => {
|
|
127
127
|
if (_ === "phone") return n;
|
|
128
128
|
if (_ === "cpf") return o;
|
|
129
129
|
}, D = () => {
|
|
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,
|
|
137
|
-
isLastStep:
|
|
137
|
+
isLastStep: h,
|
|
138
138
|
stepIntro: k,
|
|
139
139
|
fieldHost: a,
|
|
140
140
|
showBack: p,
|
|
@@ -142,7 +142,7 @@ function yo(e, t) {
|
|
|
142
142
|
form: u,
|
|
143
143
|
continueStep: () => {
|
|
144
144
|
if (g.value) {
|
|
145
|
-
if (
|
|
145
|
+
if (h.value || l.value.length === 0) return D();
|
|
146
146
|
i.value = "forward", s.value += 1;
|
|
147
147
|
}
|
|
148
148
|
},
|
|
@@ -163,54 +163,54 @@ function yo(e, t) {
|
|
|
163
163
|
};
|
|
164
164
|
}
|
|
165
165
|
function un(e) {
|
|
166
|
-
const t =
|
|
166
|
+
const t = w(() => e.small ? "!wu-h-8 !wu-min-h-[2rem]" : "!wu-h-12 !wu-min-h-[3rem]"), n = w(() => "!wu-text-xs"), o = w(() => e.fluid ? "!wu-w-full" : "wu-w-fit");
|
|
167
167
|
return {
|
|
168
168
|
height: t,
|
|
169
169
|
textSize: n,
|
|
170
170
|
width: o
|
|
171
171
|
};
|
|
172
172
|
}
|
|
173
|
-
function
|
|
174
|
-
const n =
|
|
175
|
-
"!
|
|
176
|
-
"!
|
|
177
|
-
"!
|
|
178
|
-
"!
|
|
179
|
-
})), o =
|
|
180
|
-
"!
|
|
181
|
-
"!
|
|
182
|
-
"!
|
|
183
|
-
"!
|
|
184
|
-
"!
|
|
185
|
-
})), r =
|
|
186
|
-
"!
|
|
187
|
-
"!
|
|
188
|
-
"!
|
|
189
|
-
"!
|
|
190
|
-
"!
|
|
191
|
-
"!
|
|
192
|
-
"!
|
|
193
|
-
"!
|
|
194
|
-
"!
|
|
195
|
-
})), s =
|
|
173
|
+
function wo(e, t) {
|
|
174
|
+
const n = w(() => ({
|
|
175
|
+
"!wu-font-plus": t.plus,
|
|
176
|
+
"!wu-font-inter": t.inter,
|
|
177
|
+
"!wu-font-titillium": t.titillium,
|
|
178
|
+
"!wu-font-mono": t.mono
|
|
179
|
+
})), o = w(() => ({
|
|
180
|
+
"!wu-text-white": t.white,
|
|
181
|
+
"!wu-text-primary": t.primary,
|
|
182
|
+
"!wu-text-secondary": t.secondary,
|
|
183
|
+
"!wu-text-base": t.neutral,
|
|
184
|
+
"!wu-text-neutral dark:!wu-text-neutral-200": t.gray
|
|
185
|
+
})), r = w(() => ({
|
|
186
|
+
"!wu-font-thin": t.thin,
|
|
187
|
+
"!wu-font-extralight": t.extralight,
|
|
188
|
+
"!wu-font-light": t.light,
|
|
189
|
+
"!wu-font-normal": t.normal,
|
|
190
|
+
"!wu-font-medium": t.medium,
|
|
191
|
+
"!wu-font-semibold": t.semibold,
|
|
192
|
+
"!wu-font-bold": t.bold,
|
|
193
|
+
"!wu-font-extrabold": t.extrabold,
|
|
194
|
+
"!wu-font-black": t.black
|
|
195
|
+
})), s = w(() => ({
|
|
196
196
|
...{
|
|
197
197
|
title: {
|
|
198
|
-
"!
|
|
199
|
-
"!
|
|
200
|
-
"!
|
|
201
|
-
"!
|
|
198
|
+
"!wu-text-xl": t.small,
|
|
199
|
+
"!wu-text-2xl": t.base,
|
|
200
|
+
"!wu-text-3xl": t.large,
|
|
201
|
+
"!wu-text-4xl": t.extraLarge
|
|
202
202
|
},
|
|
203
203
|
subtitle: {
|
|
204
|
-
"!
|
|
205
|
-
"!
|
|
206
|
-
"!
|
|
204
|
+
"!wu-text-sm": t.small,
|
|
205
|
+
"!wu-text-md": t.base,
|
|
206
|
+
"!wu-text-xl": t.large
|
|
207
207
|
},
|
|
208
208
|
text: {
|
|
209
|
-
"!
|
|
210
|
-
"!
|
|
211
|
-
"!
|
|
212
|
-
"!
|
|
213
|
-
"!
|
|
209
|
+
"!wu-text-xxs": t.extraSmall,
|
|
210
|
+
"!wu-text-xs": t.small,
|
|
211
|
+
"!wu-text-sm": t.base,
|
|
212
|
+
"!wu-text-lg": t.large,
|
|
213
|
+
"!wu-text-2xl": t.extraLarge
|
|
214
214
|
}
|
|
215
215
|
}[e]
|
|
216
216
|
}));
|
|
@@ -244,9 +244,9 @@ const mo = /* @__PURE__ */ q({
|
|
|
244
244
|
white: { type: Boolean }
|
|
245
245
|
},
|
|
246
246
|
setup(e) {
|
|
247
|
-
const t = e, { fontClass: n, colorClass: o, weightClass: r, sizeClass: s } =
|
|
248
|
-
return (i, a) => (
|
|
249
|
-
class: F(["
|
|
247
|
+
const t = e, { fontClass: n, colorClass: o, weightClass: r, sizeClass: s } = wo("text", t);
|
|
248
|
+
return (i, a) => (y(), S("p", {
|
|
249
|
+
class: F(["wu-font-primary wu-text-sm wu-font-normal wu-text-gray-900 dark:wu-text-neutral-100", [C(n), C(o), C(r), C(s)]])
|
|
250
250
|
}, [
|
|
251
251
|
W(i.$slots, "default", {}, void 0, !0)
|
|
252
252
|
], 2));
|
|
@@ -256,7 +256,7 @@ const mo = /* @__PURE__ */ q({
|
|
|
256
256
|
for (const [o, r] of t)
|
|
257
257
|
n[o] = r;
|
|
258
258
|
return n;
|
|
259
|
-
}, j = /* @__PURE__ */ tt(mo, [["__scopeId", "data-v-
|
|
259
|
+
}, j = /* @__PURE__ */ tt(mo, [["__scopeId", "data-v-5fc0fe9d"]]), le = /* @__PURE__ */ q({
|
|
260
260
|
__name: "app-group",
|
|
261
261
|
props: {
|
|
262
262
|
fit: { type: Boolean },
|
|
@@ -289,7 +289,7 @@ const mo = /* @__PURE__ */ q({
|
|
|
289
289
|
divisor: { type: Boolean }
|
|
290
290
|
},
|
|
291
291
|
setup(e) {
|
|
292
|
-
const t = e, n =
|
|
292
|
+
const t = e, n = w(() => t.fit ? "wu-w-fit wu-h-fit" : t.full ? "wu-w-full wu-h-full" : ""), o = w(() => t.justifyEnd ? "wu-items-end wu-justify-end" : t.center ? "wu-items-center wu-justify-center" : t.centerBetween ? "wu-items-center wu-justify-between" : ""), r = w(() => t.row ? "wu-flex-row" : t.col ? "wu-flex-col" : "wu-flex-row"), s = w(() => t.gapBase ? "wu-gap-4" : t.gapXs ? "wu-gap-1" : t.gapSm ? "wu-gap-2" : t.gapMd ? "wu-gap-6" : t.gapLg ? "wu-gap-8" : t.gapNone ? "wu-gap-0" : "wu-gap-4"), i = w(() => t.wrap ? "wu-flex-wrap" : ""), a = w(() => t.paddingXs ? "wu-p-1" : t.paddingSm ? "wu-p-2" : t.paddingBase ? "wu-p-4" : t.paddingMd ? "wu-p-6" : t.paddingLg ? "wu-p-8" : ""), l = w(() => t.border ? "wu-border" : t.borderPrimary ? "wu-border wu-border-primary" : ""), u = w(() => t.rounded ? "wu-rounded-md" : t.roundedTop ? "wu-rounded-t-md" : t.roundedBottom ? "wu-rounded-b-md" : ""), m = w(() => t.bgPrimary ? "wu-bg-primary" : t.bgWhite ? "wu-bg-white" : ""), h = w(() => t.divisor && t.col ? "wu-divide-y" : t.divisor && t.row ? "wu-divide-x" : ""), p = w(() => [
|
|
293
293
|
r.value,
|
|
294
294
|
s.value,
|
|
295
295
|
i.value,
|
|
@@ -299,18 +299,18 @@ const mo = /* @__PURE__ */ q({
|
|
|
299
299
|
u.value,
|
|
300
300
|
m.value,
|
|
301
301
|
n.value,
|
|
302
|
-
|
|
302
|
+
h.value
|
|
303
303
|
]);
|
|
304
|
-
return (
|
|
305
|
-
class: F(["
|
|
304
|
+
return (d, v) => (y(), S("div", {
|
|
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
|
-
class: "
|
|
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: "" },
|
|
@@ -325,7 +325,7 @@ const mo = /* @__PURE__ */ q({
|
|
|
325
325
|
},
|
|
326
326
|
emits: ["update:modelValue", "keyup-enter"],
|
|
327
327
|
setup(e, { expose: t, emit: n }) {
|
|
328
|
-
const o = e, r = n, s =
|
|
328
|
+
const o = e, r = n, s = w(() => Be());
|
|
329
329
|
function i(g) {
|
|
330
330
|
return !!s.value[g];
|
|
331
331
|
}
|
|
@@ -333,13 +333,13 @@ 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
|
}
|
|
341
341
|
}
|
|
342
|
-
|
|
342
|
+
we(
|
|
343
343
|
() => o.modelValue,
|
|
344
344
|
(g) => {
|
|
345
345
|
if (g == null) {
|
|
@@ -350,7 +350,7 @@ const mo = /* @__PURE__ */ q({
|
|
|
350
350
|
},
|
|
351
351
|
{ immediate: !0 }
|
|
352
352
|
);
|
|
353
|
-
const { width: m } = un(o),
|
|
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,18 +358,18 @@ 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": ""
|
|
365
365
|
}, {
|
|
366
366
|
default: $(() => [
|
|
367
367
|
B("label", go, [
|
|
368
|
-
i("default") ? (
|
|
368
|
+
i("default") ? (y(), T(j, {
|
|
369
369
|
key: 0,
|
|
370
370
|
small: "",
|
|
371
371
|
gray: "",
|
|
372
|
-
class: F([
|
|
372
|
+
class: F([h.value])
|
|
373
373
|
}, {
|
|
374
374
|
default: $(() => [
|
|
375
375
|
W(g.$slots, "default")
|
|
@@ -377,7 +377,7 @@ const mo = /* @__PURE__ */ q({
|
|
|
377
377
|
_: 3
|
|
378
378
|
}, 8, ["class"])) : R("", !0),
|
|
379
379
|
B("input", {
|
|
380
|
-
class: F(["
|
|
380
|
+
class: F(["wu-w-full wu-bg-transparent wu-border-0 wu-outline-none wu-p-0 wu-m-0 wu-appearance-none wu-font-primary wu-text-2xl wu-leading-tight wu-caret-gray-900 dark:wu-caret-white", [p.value]]),
|
|
381
381
|
value: a.value,
|
|
382
382
|
type: e.type,
|
|
383
383
|
placeholder: e.placeholder,
|
|
@@ -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
|
-
i("feedback") ? (
|
|
393
|
+
i("feedback") ? (y(), S("div", {
|
|
394
394
|
key: 0,
|
|
395
|
-
class: F(["
|
|
395
|
+
class: F(["wu-mt-1", [d.value]])
|
|
396
396
|
}, [
|
|
397
397
|
W(g.$slots, "feedback")
|
|
398
398
|
], 2)) : R("", !0)
|
|
@@ -401,8 +401,8 @@ const mo = /* @__PURE__ */ q({
|
|
|
401
401
|
}, 8, ["class"]));
|
|
402
402
|
}
|
|
403
403
|
});
|
|
404
|
-
function
|
|
405
|
-
const t =
|
|
404
|
+
function yo(e) {
|
|
405
|
+
const t = w(() => e.small ? "!wu-h-8 !wu-min-h-[2rem]" : ""), n = w(() => "!wu-text-xs"), o = w(() => e.small ? "wu-px-[0.625rem]" : "wu-p-[0.9rem]"), r = w(() => e.fluid ? "!wu-w-full" : "wu-w-fit");
|
|
406
406
|
return {
|
|
407
407
|
height: t,
|
|
408
408
|
textSize: n,
|
|
@@ -423,15 +423,15 @@ const Y = /* @__PURE__ */ q({
|
|
|
423
423
|
outlined: Boolean
|
|
424
424
|
},
|
|
425
425
|
setup(e) {
|
|
426
|
-
const t = e, n =
|
|
427
|
-
return (s, i) => (
|
|
428
|
-
class: F(["notranslate
|
|
426
|
+
const t = e, n = w(() => t.small ? "!wu-text-xs wu-w-4 wu-h-4" : t.large ? "!wu-text-2xl wu-w-8 wu-h-8" : t.extraLarge ? "!wu-text-4xl wu-w-10 wu-h-10" : "!wu-text-base wu-w-6 wu-h-6"), o = w(() => t.dark ? "wu-text-neutral-800 dark:wu-text-white" : t.light ? "wu-text-white dark:wu-text-neutral-800" : t.gray ? "wu-text-gray-500 dark:wu-text-neutral-400" : ""), r = w(() => t.outlined ? "material-symbols-outlined" : "material-icons");
|
|
427
|
+
return (s, i) => (y(), S("div", {
|
|
428
|
+
class: F(["notranslate wu-flex wu-items-center wu-justify-center wu-text-center", [n.value, o.value, r.value]]),
|
|
429
429
|
"data-testid": "app-icon"
|
|
430
430
|
}, [
|
|
431
431
|
W(s.$slots, "default")
|
|
432
432
|
], 2));
|
|
433
433
|
}
|
|
434
|
-
}), bo = ["disabled"], xo = { class: "
|
|
434
|
+
}), bo = ["disabled"], xo = { class: "wu-flex wu-items-center wu-justify-center wu-gap-2" }, me = /* @__PURE__ */ q({
|
|
435
435
|
__name: "app-button",
|
|
436
436
|
props: {
|
|
437
437
|
small: Boolean,
|
|
@@ -451,22 +451,22 @@ const Y = /* @__PURE__ */ q({
|
|
|
451
451
|
},
|
|
452
452
|
emits: ["click"],
|
|
453
453
|
setup(e) {
|
|
454
|
-
const t = e, n =
|
|
455
|
-
function o(
|
|
456
|
-
return !!n.value[
|
|
454
|
+
const t = e, n = w(() => Be());
|
|
455
|
+
function o(d) {
|
|
456
|
+
return !!n.value[d];
|
|
457
457
|
}
|
|
458
|
-
const { height: r, textSize: s, padding: i, width: a } =
|
|
459
|
-
return (
|
|
460
|
-
class: F(["
|
|
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 (d, v) => (y(), S("button", {
|
|
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
|
-
e.loading ? (
|
|
467
|
+
e.loading ? (y(), T(Y, {
|
|
468
468
|
key: 0,
|
|
469
|
-
class: "
|
|
469
|
+
class: "wu-animate-spin wu-flex wu-items-center wu-justify-center",
|
|
470
470
|
small: "",
|
|
471
471
|
outlined: ""
|
|
472
472
|
}, {
|
|
@@ -474,32 +474,32 @@ const Y = /* @__PURE__ */ q({
|
|
|
474
474
|
M("progress_activity", -1)
|
|
475
475
|
])]),
|
|
476
476
|
_: 1
|
|
477
|
-
})) : o("icon") ? (
|
|
477
|
+
})) : o("icon") ? (y(), T(Y, {
|
|
478
478
|
key: 1,
|
|
479
479
|
small: ""
|
|
480
480
|
}, {
|
|
481
481
|
default: $(() => [
|
|
482
|
-
W(
|
|
482
|
+
W(d.$slots, "icon")
|
|
483
483
|
]),
|
|
484
484
|
_: 3
|
|
485
485
|
})) : R("", !0),
|
|
486
|
-
!e.loading && o("default") ? (
|
|
486
|
+
!e.loading && o("default") ? (y(), T(j, {
|
|
487
487
|
key: 2,
|
|
488
|
-
class: "!
|
|
488
|
+
class: "!wu-text-inherit",
|
|
489
489
|
small: ""
|
|
490
490
|
}, {
|
|
491
491
|
default: $(() => [
|
|
492
|
-
W(
|
|
492
|
+
W(d.$slots, "default")
|
|
493
493
|
]),
|
|
494
494
|
_: 3
|
|
495
495
|
})) : R("", !0)
|
|
496
496
|
]),
|
|
497
|
-
!e.loading && o("trailing") ? (
|
|
497
|
+
!e.loading && o("trailing") ? (y(), T(Y, {
|
|
498
498
|
key: 0,
|
|
499
499
|
small: ""
|
|
500
500
|
}, {
|
|
501
501
|
default: $(() => [
|
|
502
|
-
W(
|
|
502
|
+
W(d.$slots, "trailing")
|
|
503
503
|
]),
|
|
504
504
|
_: 3
|
|
505
505
|
})) : R("", !0)
|
|
@@ -515,43 +515,43 @@ const Y = /* @__PURE__ */ q({
|
|
|
515
515
|
emits: ["update:modelValue"],
|
|
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
|
-
let
|
|
519
|
-
const p =
|
|
518
|
+
let h = null;
|
|
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();
|
|
534
534
|
const D = [...P.children], z = parseFloat(getComputedStyle(P).gap) || 0, G = parseFloat(getComputedStyle(x).scrollPaddingTop) || 0, _ = (U) => o.vertical ? U.offsetHeight : U.offsetWidth, N = D[p.value] ? _(D[p.value]) : 0, V = o.vertical && o.fill ? Math.max((x.clientHeight - N) / 2, 0) : G, K = D.slice(0, p.value).reduce((U, X) => U + _(X) + z, 0);
|
|
535
535
|
l.value = V - K, u.value = o.vertical && !o.fill ? N + G * 2 : 0, m.value = !0;
|
|
536
536
|
}, f = () => {
|
|
537
|
-
|
|
537
|
+
h?.disconnect();
|
|
538
538
|
const x = i.value, P = a.value;
|
|
539
|
-
if (!(!x || !P) && (
|
|
540
|
-
if (
|
|
541
|
-
for (const D of P.children)
|
|
539
|
+
if (!(!x || !P) && (c(), !(typeof ResizeObserver > "u"))) {
|
|
540
|
+
if (h = new ResizeObserver(c), h.observe(x), o.vertical)
|
|
541
|
+
for (const D of P.children) h.observe(D);
|
|
542
542
|
x.removeEventListener("scroll", g), x.addEventListener("scroll", g, { passive: !0 });
|
|
543
543
|
}
|
|
544
|
-
}, k =
|
|
545
|
-
o.vertical ? "
|
|
546
|
-
{ "is-ready": m.value, "
|
|
547
|
-
]), L =
|
|
544
|
+
}, k = w(() => [
|
|
545
|
+
o.vertical ? "wu-carousel--vertical" : "wu-carousel--horizontal",
|
|
546
|
+
{ "is-ready": m.value, "wu-carousel--fill": o.fill }
|
|
547
|
+
]), L = w(() => o.vertical ? "wu-flex-col wu-items-stretch" : "wu-flex-row wu-items-center"), O = w(() => {
|
|
548
548
|
if (!(!o.vertical || o.fill || !u.value))
|
|
549
549
|
return { height: `${u.value}px` };
|
|
550
|
-
}), A =
|
|
550
|
+
}), A = w(() => {
|
|
551
551
|
const x = `${l.value}px`;
|
|
552
552
|
return { transform: o.vertical ? `translate3d(0, ${x}, 0)` : `translate3d(${x}, 0, 0)` };
|
|
553
553
|
});
|
|
554
|
-
return
|
|
554
|
+
return we(
|
|
555
555
|
() => [o.vertical, o.fill, o.modelValue],
|
|
556
556
|
async () => {
|
|
557
557
|
await Ae(), f();
|
|
@@ -559,36 +559,36 @@ const Y = /* @__PURE__ */ q({
|
|
|
559
559
|
), kt(async () => {
|
|
560
560
|
await Ae(), f();
|
|
561
561
|
}), rn(() => {
|
|
562
|
-
|
|
562
|
+
h?.disconnect(), i.value?.removeEventListener("scroll", g);
|
|
563
563
|
}), t({
|
|
564
564
|
next: () => b(p.value + 1),
|
|
565
565
|
prev: () => b(p.value - 1),
|
|
566
566
|
goTo: b
|
|
567
|
-
}), (x, P) => (
|
|
568
|
-
class: F(["
|
|
567
|
+
}), (x, P) => (y(), S("div", {
|
|
568
|
+
class: F(["wu-relative wu-w-full wu-overflow-hidden", k.value]),
|
|
569
569
|
ref_key: "rootRef",
|
|
570
570
|
ref: i,
|
|
571
571
|
"data-testid": "app-carousel",
|
|
572
572
|
style: pe(O.value)
|
|
573
573
|
}, [
|
|
574
574
|
B("div", {
|
|
575
|
-
class: F(["
|
|
575
|
+
class: F(["wu-carousel-track wu-flex", L.value]),
|
|
576
576
|
ref_key: "trackRef",
|
|
577
577
|
ref: a,
|
|
578
578
|
style: pe(A.value)
|
|
579
579
|
}, [
|
|
580
|
-
(
|
|
581
|
-
class: F(["
|
|
580
|
+
(y(!0), S(ue, null, xe(d(), (D, z) => (y(), S("div", {
|
|
581
|
+
class: F(["wu-carousel-slide", v(z)]),
|
|
582
582
|
key: D.key ?? z,
|
|
583
583
|
"aria-hidden": z !== p.value,
|
|
584
584
|
"data-testid": "app-carousel-slide"
|
|
585
585
|
}, [
|
|
586
|
-
(
|
|
586
|
+
(y(), T(sn(D)))
|
|
587
587
|
], 10, $o))), 128))
|
|
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: {},
|
|
@@ -604,37 +604,37 @@ const Y = /* @__PURE__ */ q({
|
|
|
604
604
|
form: l,
|
|
605
605
|
continueStep: u,
|
|
606
606
|
canContinueAt: m,
|
|
607
|
-
introFor:
|
|
607
|
+
introFor: h,
|
|
608
608
|
fieldPlaceholder: p,
|
|
609
|
-
fieldType:
|
|
609
|
+
fieldType: d,
|
|
610
610
|
fieldMask: v,
|
|
611
611
|
goBack: b
|
|
612
|
-
} =
|
|
613
|
-
return (g,
|
|
612
|
+
} = ho(() => n.rule, o);
|
|
613
|
+
return (g, c) => (y(), S("div", _o, [
|
|
614
614
|
B("div", Co, [
|
|
615
615
|
B("div", Ao, [
|
|
616
616
|
B("div", {
|
|
617
|
-
class: F(["
|
|
618
|
-
onClick:
|
|
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: c[0] || (c[0] = //@ts-ignore
|
|
619
619
|
(...f) => C(b) && C(b)(...f))
|
|
620
620
|
}, [
|
|
621
621
|
E(Y, {
|
|
622
|
-
class: "
|
|
622
|
+
class: "wu-transition-colors group-hover:!wu-text-gray-700 dark:group-hover:!wu-text-neutral-200",
|
|
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
|
|
630
630
|
}),
|
|
631
631
|
E(j, {
|
|
632
|
-
class: "
|
|
632
|
+
class: "wu-transition-colors group-hover:!wu-text-gray-700 dark:group-hover:!wu-text-neutral-200",
|
|
633
633
|
"extra-small": "",
|
|
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
|
|
@@ -643,63 +643,63 @@ const Y = /* @__PURE__ */ q({
|
|
|
643
643
|
]),
|
|
644
644
|
B("div", So, [
|
|
645
645
|
B("div", Bo, [
|
|
646
|
-
(
|
|
647
|
-
class: F(["
|
|
646
|
+
(y(!0), S(ue, null, xe(C(a), (f, k) => (y(), S("div", {
|
|
647
|
+
class: F(["wu-h-1 wu-w-6 wu-rounded-full wu-transition-colors", k <= C(r) ? "wu-bg-gray-900 dark:wu-bg-white" : "wu-bg-gray-200 dark:wu-bg-neutral-600"]),
|
|
648
648
|
key: k
|
|
649
649
|
}, null, 2))), 128))
|
|
650
650
|
])
|
|
651
651
|
])
|
|
652
652
|
]),
|
|
653
653
|
B("div", {
|
|
654
|
-
class: "
|
|
654
|
+
class: "wu-flex-1 wu-min-h-0 wu-w-full wu-px-6 wu-pb-12",
|
|
655
655
|
ref_key: "fieldHost",
|
|
656
656
|
ref: s
|
|
657
657
|
}, [
|
|
658
|
-
E(
|
|
659
|
-
class: "
|
|
658
|
+
E(dn, {
|
|
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
|
}, {
|
|
665
665
|
default: $(() => [
|
|
666
|
-
(
|
|
667
|
-
class: "
|
|
666
|
+
(y(!0), S(ue, null, xe(C(a), (f, k) => (y(), T(le, {
|
|
667
|
+
class: "wu-w-full wu-gap-8",
|
|
668
668
|
key: f.name,
|
|
669
669
|
col: "",
|
|
670
670
|
center: ""
|
|
671
671
|
}, {
|
|
672
672
|
default: $(() => [
|
|
673
673
|
E(le, {
|
|
674
|
-
class: "
|
|
674
|
+
class: "wu-w-full wu-relative wu-pr-6",
|
|
675
675
|
col: "",
|
|
676
676
|
"gap-sm": ""
|
|
677
677
|
}, {
|
|
678
678
|
default: $(() => [
|
|
679
|
-
C(
|
|
679
|
+
C(h)(k).title ? (y(), T(j, {
|
|
680
680
|
key: 0,
|
|
681
|
-
class: "
|
|
681
|
+
class: "wu-text-left",
|
|
682
682
|
"extra-large": "",
|
|
683
683
|
semibold: ""
|
|
684
684
|
}, {
|
|
685
685
|
default: $(() => [
|
|
686
|
-
M(Z(C(
|
|
686
|
+
M(Z(C(h)(k).title), 1)
|
|
687
687
|
]),
|
|
688
688
|
_: 2
|
|
689
689
|
}, 1024)) : R("", !0),
|
|
690
|
-
C(
|
|
690
|
+
C(h)(k).subtitle ? (y(), T(j, {
|
|
691
691
|
key: 1,
|
|
692
|
-
class: "
|
|
692
|
+
class: "wu-text-left",
|
|
693
693
|
small: "",
|
|
694
694
|
gray: ""
|
|
695
695
|
}, {
|
|
696
696
|
default: $(() => [
|
|
697
|
-
M(Z(C(
|
|
697
|
+
M(Z(C(h)(k).subtitle), 1)
|
|
698
698
|
]),
|
|
699
699
|
_: 2
|
|
700
700
|
}, 1024)) : R("", !0),
|
|
701
701
|
E(j, {
|
|
702
|
-
class: "
|
|
702
|
+
class: "wu-opacity-50 wu-absolute -wu-top-2 wu-right-0",
|
|
703
703
|
gray: "",
|
|
704
704
|
small: "",
|
|
705
705
|
medium: ""
|
|
@@ -713,17 +713,17 @@ const Y = /* @__PURE__ */ q({
|
|
|
713
713
|
_: 2
|
|
714
714
|
}, 1024),
|
|
715
715
|
E(le, {
|
|
716
|
-
class: "
|
|
716
|
+
class: "wu-w-full wu-items-center",
|
|
717
717
|
col: "",
|
|
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: $(() => [
|
|
@@ -777,17 +777,17 @@ const Y = /* @__PURE__ */ q({
|
|
|
777
777
|
},
|
|
778
778
|
emits: ["click"],
|
|
779
779
|
setup(e) {
|
|
780
|
-
const t = e, n =
|
|
781
|
-
return (a, l) => (
|
|
782
|
-
class: F(["
|
|
780
|
+
const t = e, n = w(() => !!t.label.trim()), o = w(() => t.outline ? "wu-bg-transparent !wu-border-gray-200 hover:!wu-bg-gray-100 hover:!wu-border-gray-300" : t.ghost ? "wu-bg-transparent !wu-text-gray-700 hover:!wu-bg-gray-100" : "wu-bg-gradient-to-br wu-from-primary-500 wu-to-secondary-500 wu-text-white"), r = w(() => n.value ? t.small ? "wu-h-12 wu-w-fit wu-px-3 wu-gap-2" : t.large ? "wu-h-16 wu-w-fit wu-px-5 wu-gap-3" : "wu-h-14 wu-w-fit wu-px-4 wu-gap-2" : t.small ? "wu-w-12 wu-h-12 wu-p-0" : t.large ? "wu-w-16 wu-h-16 wu-p-0" : "wu-w-14 wu-h-14 wu-p-0"), s = w(() => t.small ? "wu-w-6 wu-h-6" : t.large ? "wu-w-8 wu-h-8" : "wu-w-7 wu-h-7"), i = w(() => t.disabled || t.loading ? "wu-opacity-50 wu-pointer-events-none" : "");
|
|
781
|
+
return (a, l) => (y(), S("button", {
|
|
782
|
+
class: F(["wu-rounded-full wu-inline-flex wu-items-center wu-justify-center wu-cursor-pointer wu-overflow-hidden wu-transition-all wu-border wu-border-transparent hover:wu-opacity-80 focus:wu-outline-hidden focus:wu-opacity-80 disabled:wu-opacity-50 disabled:wu-pointer-events-none", [r.value, o.value, i.value]]),
|
|
783
783
|
type: "button",
|
|
784
784
|
"data-testid": "app-anchor",
|
|
785
785
|
disabled: e.disabled || e.loading,
|
|
786
786
|
onClick: l[0] || (l[0] = (u) => a.$emit("click", u))
|
|
787
787
|
}, [
|
|
788
|
-
e.loading ? (
|
|
788
|
+
e.loading ? (y(), T(Y, {
|
|
789
789
|
key: 0,
|
|
790
|
-
class: "
|
|
790
|
+
class: "wu-animate-spin",
|
|
791
791
|
outlined: "",
|
|
792
792
|
large: !e.small && !e.large,
|
|
793
793
|
"extra-large": e.large
|
|
@@ -796,16 +796,16 @@ const Y = /* @__PURE__ */ q({
|
|
|
796
796
|
M("progress_activity", -1)
|
|
797
797
|
])]),
|
|
798
798
|
_: 1
|
|
799
|
-
}, 8, ["large", "extra-large"])) : e.logo ? (
|
|
799
|
+
}, 8, ["large", "extra-large"])) : e.logo ? (y(), S("img", {
|
|
800
800
|
key: 1,
|
|
801
|
-
class: F(["
|
|
801
|
+
class: F(["wu-object-contain wu-pointer-events-none wu-select-none wu-shrink-0", s.value]),
|
|
802
802
|
src: e.logo,
|
|
803
803
|
alt: "",
|
|
804
804
|
"data-testid": "app-anchor-logo"
|
|
805
805
|
}, null, 10, Po)) : R("", !0),
|
|
806
|
-
n.value ? (
|
|
806
|
+
n.value ? (y(), T(j, {
|
|
807
807
|
key: 2,
|
|
808
|
-
class: "!
|
|
808
|
+
class: "!wu-text-inherit wu-whitespace-nowrap",
|
|
809
809
|
small: !e.large,
|
|
810
810
|
"data-testid": "app-anchor-label"
|
|
811
811
|
}, {
|
|
@@ -818,11 +818,11 @@ const Y = /* @__PURE__ */ q({
|
|
|
818
818
|
}
|
|
819
819
|
}), Lo = {
|
|
820
820
|
key: 0,
|
|
821
|
-
class: "
|
|
821
|
+
class: "wu-flex wu-shrink-0 wu-items-end",
|
|
822
822
|
"data-testid": "app-message-avatar"
|
|
823
823
|
}, Mo = {
|
|
824
824
|
key: 0,
|
|
825
|
-
class: "
|
|
825
|
+
class: "wu-w-full wu-flex wu-justify-end wu-h-2",
|
|
826
826
|
"data-testid": "app-message-trailing"
|
|
827
827
|
}, mt = /* @__PURE__ */ q({
|
|
828
828
|
__name: "app-message",
|
|
@@ -832,30 +832,30 @@ const Y = /* @__PURE__ */ q({
|
|
|
832
832
|
tertiary: Boolean
|
|
833
833
|
},
|
|
834
834
|
setup(e) {
|
|
835
|
-
const t = e, n =
|
|
835
|
+
const t = e, n = w(() => Be());
|
|
836
836
|
function o(u) {
|
|
837
837
|
return !!n.value[u];
|
|
838
838
|
}
|
|
839
|
-
const r =
|
|
840
|
-
return (u, m) => (
|
|
841
|
-
class: F(["
|
|
839
|
+
const r = w(() => t.tertiary), s = w(() => !r.value && t.secondary), i = w(() => !r.value && o("avatar")), a = w(() => r.value ? "wu-justify-center" : s.value ? "wu-flex-row-reverse" : ""), l = w(() => r.value ? "wu-items-center wu-flex" : s.value ? "wu-rounded-br-none wu-bg-primary-100 wu-p-3 dark:wu-bg-primary-900" : "wu-rounded-bl-none wu-bg-gray-200 wu-p-3 dark:wu-bg-neutral-700");
|
|
840
|
+
return (u, m) => (y(), S("div", {
|
|
841
|
+
class: F(["wu-flex wu-items-end wu-gap-2 wu-w-full", a.value]),
|
|
842
842
|
"data-testid": "app-message"
|
|
843
843
|
}, [
|
|
844
|
-
i.value ? (
|
|
844
|
+
i.value ? (y(), S("div", Lo, [
|
|
845
845
|
W(u.$slots, "avatar")
|
|
846
846
|
])) : R("", !0),
|
|
847
847
|
B("div", {
|
|
848
|
-
class: F(["
|
|
848
|
+
class: F(["wu-rounded-md wu-relative wu-min-h-8", l.value]),
|
|
849
849
|
"data-testid": "app-message-bubble"
|
|
850
850
|
}, [
|
|
851
851
|
W(u.$slots, "default"),
|
|
852
|
-
o("trailing") ? (
|
|
852
|
+
o("trailing") ? (y(), S("div", Mo, [
|
|
853
853
|
W(u.$slots, "trailing")
|
|
854
854
|
])) : R("", !0)
|
|
855
855
|
], 2)
|
|
856
856
|
], 2));
|
|
857
857
|
}
|
|
858
|
-
}),
|
|
858
|
+
}), hn = /* @__PURE__ */ q({
|
|
859
859
|
__name: "app-skeleton",
|
|
860
860
|
props: {
|
|
861
861
|
round: Boolean,
|
|
@@ -863,12 +863,12 @@ const Y = /* @__PURE__ */ q({
|
|
|
863
863
|
block: Boolean
|
|
864
864
|
},
|
|
865
865
|
setup(e) {
|
|
866
|
-
const t = e, n =
|
|
867
|
-
return (r, s) => (
|
|
868
|
-
class: F(["
|
|
866
|
+
const t = e, n = w(() => t.fluid ? "!wu-w-full" : ""), o = w(() => t.round ? "!wu-rounded-full" : t.block ? "!wu-rounded-none" : "!wu-rounded-lg");
|
|
867
|
+
return (r, s) => (y(), S("div", {
|
|
868
|
+
class: F(["wu-animate-pulse wu-bg-gray-200 dark:wu-bg-neutral-700", [o.value, n.value]])
|
|
869
869
|
}, null, 2));
|
|
870
870
|
}
|
|
871
|
-
}),
|
|
871
|
+
}), wn = /* @__PURE__ */ q({
|
|
872
872
|
__name: "app-empty",
|
|
873
873
|
props: {
|
|
874
874
|
error: {
|
|
@@ -878,28 +878,28 @@ const Y = /* @__PURE__ */ q({
|
|
|
878
878
|
},
|
|
879
879
|
emits: ["refetch"],
|
|
880
880
|
setup(e, { emit: t }) {
|
|
881
|
-
const n = t, o =
|
|
881
|
+
const n = t, o = w(() => Be());
|
|
882
882
|
function r(s) {
|
|
883
883
|
return !!o.value[s];
|
|
884
884
|
}
|
|
885
|
-
return (s, i) => (
|
|
885
|
+
return (s, i) => (y(), T(le, {
|
|
886
886
|
"gap-sm": "",
|
|
887
887
|
center: "",
|
|
888
888
|
col: ""
|
|
889
889
|
}, {
|
|
890
890
|
default: $(() => [
|
|
891
|
-
e.error ? (
|
|
891
|
+
e.error ? (y(), T(Y, {
|
|
892
892
|
key: 0,
|
|
893
|
-
class: "
|
|
893
|
+
class: "wu-text-gray-500",
|
|
894
894
|
large: ""
|
|
895
895
|
}, {
|
|
896
896
|
default: $(() => [...i[1] || (i[1] = [
|
|
897
897
|
M("error_outline", -1)
|
|
898
898
|
])]),
|
|
899
899
|
_: 1
|
|
900
|
-
})) : r("icon") ? W(s.$slots, "icon", { key: 1 }) : (
|
|
900
|
+
})) : r("icon") ? W(s.$slots, "icon", { key: 1 }) : (y(), T(Y, {
|
|
901
901
|
key: 2,
|
|
902
|
-
class: "
|
|
902
|
+
class: "wu-text-gray-500",
|
|
903
903
|
large: ""
|
|
904
904
|
}, {
|
|
905
905
|
default: $(() => [...i[2] || (i[2] = [
|
|
@@ -908,7 +908,7 @@ const Y = /* @__PURE__ */ q({
|
|
|
908
908
|
_: 1
|
|
909
909
|
})),
|
|
910
910
|
E(j, {
|
|
911
|
-
class: "
|
|
911
|
+
class: "wu-text-center",
|
|
912
912
|
gray: ""
|
|
913
913
|
}, {
|
|
914
914
|
default: $(() => [
|
|
@@ -916,7 +916,7 @@ const Y = /* @__PURE__ */ q({
|
|
|
916
916
|
]),
|
|
917
917
|
_: 3
|
|
918
918
|
}),
|
|
919
|
-
e.error ? (
|
|
919
|
+
e.error ? (y(), T(me, {
|
|
920
920
|
key: 3,
|
|
921
921
|
onClick: i[0] || (i[0] = (a) => n("refetch")),
|
|
922
922
|
outline: "",
|
|
@@ -935,82 +935,82 @@ const Y = /* @__PURE__ */ q({
|
|
|
935
935
|
_: 3
|
|
936
936
|
}));
|
|
937
937
|
}
|
|
938
|
-
}), Ro = { class: "
|
|
938
|
+
}), Ro = { class: "wu-flex wu-flex-col wu-items-center wu-h-full wu-w-full wu-overflow-hidden" }, Oo = {
|
|
939
939
|
key: 0,
|
|
940
|
-
class: "
|
|
940
|
+
class: "wu-w-full wu-h-12"
|
|
941
941
|
}, Ho = {
|
|
942
942
|
key: 0,
|
|
943
|
-
class: "
|
|
943
|
+
class: "wu-flex wu-items-center wu-justify-center wu-rounded-full wu-bg-gray-100 wu-w-7 wu-h-7 dark:wu-bg-neutral-700"
|
|
944
944
|
}, zo = ["src"], Eo = {
|
|
945
945
|
key: 1,
|
|
946
|
-
class: "
|
|
946
|
+
class: "wu-flex wu-w-7 wu-h-7"
|
|
947
947
|
}, Fo = {
|
|
948
948
|
key: 0,
|
|
949
|
-
class: "
|
|
950
|
-
}, No = ["onKeydown", "disabled"], Io = { class: "
|
|
949
|
+
class: "wu-w-full wu-shrink-0 wu-border-t wu-border-gray-200 wu-flex wu-flex-col dark:wu-border-neutral-700"
|
|
950
|
+
}, No = ["onKeydown", "disabled"], Io = { class: "wu-flex wu-items-center wu-gap-2 wu-w-full wu-justify-end wu-px-6 wu-py-2" }, mn = /* @__PURE__ */ q({
|
|
951
951
|
__name: "app-service-page",
|
|
952
952
|
props: {
|
|
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
|
-
class: "
|
|
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",
|
|
977
977
|
ref: p,
|
|
978
978
|
"data-testid": "app-service-messages"
|
|
979
979
|
}, [
|
|
980
|
-
|
|
981
|
-
C(i) ? (
|
|
980
|
+
h.value ? R("", !0) : (y(), S("div", Oo)),
|
|
981
|
+
C(i) ? (y(), S(ue, { key: 1 }, xe(10, (k, L) => E(mt, {
|
|
982
982
|
key: L,
|
|
983
983
|
primary: L % 2 === 0,
|
|
984
984
|
secondary: L % 2 === 1
|
|
985
985
|
}, {
|
|
986
986
|
default: $(() => [
|
|
987
|
-
E(
|
|
988
|
-
class: "
|
|
987
|
+
E(hn, {
|
|
988
|
+
class: "wu-h-4 wu-w-32",
|
|
989
989
|
block: ""
|
|
990
990
|
})
|
|
991
991
|
]),
|
|
992
992
|
_: 1
|
|
993
|
-
}, 8, ["primary", "secondary"])), 64)) : C(s) ? (
|
|
993
|
+
}, 8, ["primary", "secondary"])), 64)) : C(s) ? (y(), T(wn, {
|
|
994
994
|
key: 2,
|
|
995
|
-
class: "
|
|
996
|
-
onRefetch: f[0] || (f[0] = (k) => n("retry-loading-
|
|
995
|
+
class: "wu-h-full",
|
|
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, {
|
|
1004
1004
|
key: L,
|
|
1005
1005
|
primary: k.from === "operator",
|
|
1006
1006
|
secondary: k.from === "contact",
|
|
1007
1007
|
tertiary: k.from === "system",
|
|
1008
1008
|
class: F([g(k, C(l), L)])
|
|
1009
|
-
},
|
|
1009
|
+
}, wt({
|
|
1010
1010
|
default: $(() => [
|
|
1011
|
-
k.from == "system" ? (
|
|
1011
|
+
k.from == "system" ? (y(), T(j, {
|
|
1012
1012
|
key: 0,
|
|
1013
|
-
class: "
|
|
1013
|
+
class: "wu-text-center",
|
|
1014
1014
|
gray: "",
|
|
1015
1015
|
"extra-small": "",
|
|
1016
1016
|
medium: ""
|
|
@@ -1019,7 +1019,7 @@ const Y = /* @__PURE__ */ q({
|
|
|
1019
1019
|
M(Z(k.text), 1)
|
|
1020
1020
|
]),
|
|
1021
1021
|
_: 2
|
|
1022
|
-
}, 1024)) : (
|
|
1022
|
+
}, 1024)) : (y(), T(j, {
|
|
1023
1023
|
key: 1,
|
|
1024
1024
|
gray: "",
|
|
1025
1025
|
small: "",
|
|
@@ -1036,12 +1036,12 @@ const Y = /* @__PURE__ */ q({
|
|
|
1036
1036
|
k.from === "operator" ? {
|
|
1037
1037
|
name: "avatar",
|
|
1038
1038
|
fn: $(() => [
|
|
1039
|
-
C(l)[L + 1]?.from !== k.from ? (
|
|
1039
|
+
C(l)[L + 1]?.from !== k.from ? (y(), S("div", Ho, [
|
|
1040
1040
|
B("img", {
|
|
1041
|
-
class: "
|
|
1041
|
+
class: "wu-rounded-full wu-w-full wu-h-full wu-object-contain",
|
|
1042
1042
|
src: v(k.from)
|
|
1043
1043
|
}, null, 8, zo)
|
|
1044
|
-
])) : (
|
|
1044
|
+
])) : (y(), S("div", Eo))
|
|
1045
1045
|
]),
|
|
1046
1046
|
key: "0"
|
|
1047
1047
|
} : void 0,
|
|
@@ -1062,11 +1062,11 @@ const Y = /* @__PURE__ */ q({
|
|
|
1062
1062
|
key: "1"
|
|
1063
1063
|
} : void 0
|
|
1064
1064
|
]), 1032, ["primary", "secondary", "tertiary", "class"]))), 128)),
|
|
1065
|
-
f[4] || (f[4] = B("div", { class: "
|
|
1065
|
+
f[4] || (f[4] = B("div", { class: "wu-w-full wu-min-h-8" }, null, -1))
|
|
1066
1066
|
], 512),
|
|
1067
|
-
!C(i) && !C(s) ? (
|
|
1067
|
+
!C(i) && !C(s) ? (y(), S("div", Fo, [
|
|
1068
1068
|
Un(B("textarea", {
|
|
1069
|
-
class: "
|
|
1069
|
+
class: "wu-w-full wu-p-6 wu-resize-none wu-font-primary wu-text-xs wu-bg-transparent wu-text-gray-900 placeholder:wu-text-neutral placeholder:wu-text-xs placeholder:wu-font-normal focus:wu-outline-none dark:wu-text-neutral-100 [&:disabled]:wu-opacity-50",
|
|
1070
1070
|
"onUpdate:modelValue": f[1] || (f[1] = (k) => an(u) ? u.value = k : null),
|
|
1071
1071
|
onKeydown: et(Xn(b, ["exact", "prevent"]), ["enter"]),
|
|
1072
1072
|
placeholder: "Escreva uma mensagem...",
|
|
@@ -1082,7 +1082,7 @@ const Y = /* @__PURE__ */ q({
|
|
|
1082
1082
|
icon: ""
|
|
1083
1083
|
}, {
|
|
1084
1084
|
icon: $(() => [
|
|
1085
|
-
E(Y, { class: "
|
|
1085
|
+
E(Y, { class: "wu-rotate-45" }, {
|
|
1086
1086
|
default: $(() => [...f[5] || (f[5] = [
|
|
1087
1087
|
M("attach_file", -1)
|
|
1088
1088
|
])]),
|
|
@@ -1136,47 +1136,47 @@ const Y = /* @__PURE__ */ q({
|
|
|
1136
1136
|
parseHex: t
|
|
1137
1137
|
};
|
|
1138
1138
|
}, jo = () => typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia("(prefers-color-scheme: dark)").matches, vn = (e) => {
|
|
1139
|
-
const { isLightHex: t, normalizeHex: n, parseHex: o } = gn(), r = (
|
|
1140
|
-
const p = n(
|
|
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), d = o(p) ?? { r: 109, g: 53, b: 149 }, v = t(p);
|
|
1141
1141
|
return {
|
|
1142
|
-
"--
|
|
1143
|
-
"--
|
|
1144
|
-
"--
|
|
1145
|
-
"--
|
|
1146
|
-
"--
|
|
1147
|
-
"--
|
|
1148
|
-
"--
|
|
1149
|
-
"--
|
|
1150
|
-
"--
|
|
1151
|
-
"--
|
|
1152
|
-
"--
|
|
1153
|
-
"--
|
|
1154
|
-
"--
|
|
1155
|
-
"--
|
|
1142
|
+
"--wu-primary": p,
|
|
1143
|
+
"--wu-primary-rgb": `${d.r} ${d.g} ${d.b}`,
|
|
1144
|
+
"--wu-primary-fg": v ? "#1c1917" : "#ffffff",
|
|
1145
|
+
"--wu-primary-border": v ? "#e5e7eb" : "color-mix(in srgb, var(--wu-primary-fg) 22%, transparent)",
|
|
1146
|
+
"--wu-primary-50": `color-mix(in srgb, ${p} 8%, white)`,
|
|
1147
|
+
"--wu-primary-100": `color-mix(in srgb, ${p} 22%, white)`,
|
|
1148
|
+
"--wu-primary-200": `color-mix(in srgb, ${p} 38%, white)`,
|
|
1149
|
+
"--wu-primary-300": `color-mix(in srgb, ${p} 55%, white)`,
|
|
1150
|
+
"--wu-primary-400": v ? `color-mix(in srgb, ${p} 70%, black)` : `color-mix(in srgb, ${p} 78%, white)`,
|
|
1151
|
+
"--wu-primary-500": p,
|
|
1152
|
+
"--wu-primary-600": `color-mix(in srgb, ${p} 82%, black)`,
|
|
1153
|
+
"--wu-primary-700": `color-mix(in srgb, ${p} 64%, black)`,
|
|
1154
|
+
"--wu-primary-800": `color-mix(in srgb, ${p} 42%, black)`,
|
|
1155
|
+
"--wu-primary-900": `color-mix(in srgb, ${p} 22%, black)`
|
|
1156
1156
|
};
|
|
1157
|
-
}, i = (
|
|
1158
|
-
const p = I(jo()),
|
|
1157
|
+
}, i = (h) => {
|
|
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:
|
|
1168
|
-
}, { isDark: a, themeClass: l, resolvedTheme: u } = i(() => Oe(e).theme), m =
|
|
1166
|
+
g.addEventListener("change", c), rn(() => g.removeEventListener("change", c));
|
|
1167
|
+
}), { isDark: v, resolvedTheme: d, themeClass: b };
|
|
1168
|
+
}, { isDark: a, themeClass: l, resolvedTheme: u } = i(() => Oe(e).theme), m = w(() => ({
|
|
1169
1169
|
...s(Oe(e).primaryColor),
|
|
1170
1170
|
colorScheme: u.value
|
|
1171
1171
|
}));
|
|
1172
1172
|
return { isDark: a, themeClass: l, resolvedTheme: u, appearanceStyle: m };
|
|
1173
|
-
}, Vo = { class: "
|
|
1173
|
+
}, Vo = { class: "wu-flex wu-flex-col wu-w-full wu-gap-8" }, Wo = {
|
|
1174
1174
|
key: 0,
|
|
1175
|
-
class: "
|
|
1175
|
+
class: "wu-flex wu-items-center wu-w-fit wu-justify-center wu-h-0"
|
|
1176
1176
|
}, qo = ["src"], Go = {
|
|
1177
1177
|
key: 1,
|
|
1178
|
-
class: "
|
|
1179
|
-
}, Zo = ["src"], Uo = ["src"],
|
|
1178
|
+
class: "wu-flex wu-flex-col wu-items-center wu-justify-start wu-gap-2 wu-px-6 wu-w-full"
|
|
1179
|
+
}, Zo = ["src"], Uo = ["src"], yn = /* @__PURE__ */ q({
|
|
1180
1180
|
__name: "app-screen-page",
|
|
1181
1181
|
props: {
|
|
1182
1182
|
rule: {},
|
|
@@ -1184,25 +1184,25 @@ const Y = /* @__PURE__ */ q({
|
|
|
1184
1184
|
},
|
|
1185
1185
|
emits: ["edge-click"],
|
|
1186
1186
|
setup(e, { emit: t }) {
|
|
1187
|
-
const n = e, o = t, { history: r } = qe(), s =
|
|
1188
|
-
return (l, u) => (
|
|
1189
|
-
s.value ? R("", !0) : (
|
|
1187
|
+
const n = e, o = t, { history: r } = qe(), s = w(() => r.value.length > 0), i = w(() => n.edges ?? []), a = w(() => n.rule.settings?.body);
|
|
1188
|
+
return (l, u) => (y(), S("div", Vo, [
|
|
1189
|
+
s.value ? R("", !0) : (y(), S("div", Wo)),
|
|
1190
1190
|
E(le, {
|
|
1191
|
-
class: "
|
|
1191
|
+
class: "wu-px-6 wu-w-full",
|
|
1192
1192
|
col: "",
|
|
1193
1193
|
center: "",
|
|
1194
1194
|
"gap-base": ""
|
|
1195
1195
|
}, {
|
|
1196
1196
|
default: $(() => [
|
|
1197
|
-
a.value?.logo ? (
|
|
1197
|
+
a.value?.logo ? (y(), S("img", {
|
|
1198
1198
|
key: 0,
|
|
1199
|
-
class: "
|
|
1199
|
+
class: "wu-w-10 wu-h-10 wu-object-contain",
|
|
1200
1200
|
src: a.value.logo,
|
|
1201
1201
|
alt: ""
|
|
1202
1202
|
}, null, 8, qo)) : R("", !0),
|
|
1203
|
-
a.value?.eyebrow ? (
|
|
1203
|
+
a.value?.eyebrow ? (y(), T(j, {
|
|
1204
1204
|
key: 1,
|
|
1205
|
-
class: "
|
|
1205
|
+
class: "wu-text-center wu-uppercase wu-tracking-widest wu-leading-none",
|
|
1206
1206
|
"extra-small": "",
|
|
1207
1207
|
gray: "",
|
|
1208
1208
|
mono: ""
|
|
@@ -1212,9 +1212,9 @@ const Y = /* @__PURE__ */ q({
|
|
|
1212
1212
|
]),
|
|
1213
1213
|
_: 1
|
|
1214
1214
|
})) : R("", !0),
|
|
1215
|
-
a.value?.title ? (
|
|
1215
|
+
a.value?.title ? (y(), T(j, {
|
|
1216
1216
|
key: 2,
|
|
1217
|
-
class: "
|
|
1217
|
+
class: "wu-text-center",
|
|
1218
1218
|
"extra-large": "",
|
|
1219
1219
|
semibold: ""
|
|
1220
1220
|
}, {
|
|
@@ -1223,9 +1223,9 @@ const Y = /* @__PURE__ */ q({
|
|
|
1223
1223
|
]),
|
|
1224
1224
|
_: 1
|
|
1225
1225
|
})) : R("", !0),
|
|
1226
|
-
a.value?.subtitle ? (
|
|
1226
|
+
a.value?.subtitle ? (y(), T(j, {
|
|
1227
1227
|
key: 3,
|
|
1228
|
-
class: "
|
|
1228
|
+
class: "wu-w-64 wu-text-center",
|
|
1229
1229
|
small: "",
|
|
1230
1230
|
gray: ""
|
|
1231
1231
|
}, {
|
|
@@ -1237,14 +1237,14 @@ const Y = /* @__PURE__ */ q({
|
|
|
1237
1237
|
]),
|
|
1238
1238
|
_: 1
|
|
1239
1239
|
}),
|
|
1240
|
-
i.value.length ? (
|
|
1241
|
-
(
|
|
1242
|
-
class: "hover:
|
|
1240
|
+
i.value.length ? (y(), S("div", Go, [
|
|
1241
|
+
(y(!0), S(ue, null, xe(i.value.slice(0, 3), (m) => (y(), T(me, {
|
|
1242
|
+
class: "hover:wu-translate-x-1 wu-max-w-[25rem]",
|
|
1243
1243
|
key: m.id,
|
|
1244
1244
|
outline: "",
|
|
1245
1245
|
fluid: "",
|
|
1246
|
-
onClick: (
|
|
1247
|
-
},
|
|
1246
|
+
onClick: (h) => o("edge-click", m)
|
|
1247
|
+
}, wt({
|
|
1248
1248
|
trailing: $(() => [
|
|
1249
1249
|
u[0] || (u[0] = M("chevron_right", -1))
|
|
1250
1250
|
]),
|
|
@@ -1257,7 +1257,7 @@ const Y = /* @__PURE__ */ q({
|
|
|
1257
1257
|
name: "icon",
|
|
1258
1258
|
fn: $(() => [
|
|
1259
1259
|
B("img", {
|
|
1260
|
-
class: "
|
|
1260
|
+
class: "wu-w-4 wu-h-4 wu-object-contain",
|
|
1261
1261
|
src: m.settings.body.logo,
|
|
1262
1262
|
alt: ""
|
|
1263
1263
|
}, null, 8, Zo)
|
|
@@ -1266,22 +1266,22 @@ const Y = /* @__PURE__ */ q({
|
|
|
1266
1266
|
} : void 0
|
|
1267
1267
|
]), 1032, ["onClick"]))), 128)),
|
|
1268
1268
|
B("div", {
|
|
1269
|
-
class: F(["
|
|
1269
|
+
class: F(["wu-flex wu-items-start wu-overflow-x-auto wu-w-full invisible-scrollbar wu-pt-6", { "wu-justify-start": i.value.slice(3).length > 4, "wu-justify-center": i.value.slice(3).length <= 4 }])
|
|
1270
1270
|
}, [
|
|
1271
|
-
(
|
|
1272
|
-
class: "
|
|
1271
|
+
(y(!0), S(ue, null, xe(i.value.slice(3), (m) => (y(), S("div", {
|
|
1272
|
+
class: "wu-flex wu-flex-col wu-items-center wu-gap-2",
|
|
1273
1273
|
key: m.id
|
|
1274
1274
|
}, [
|
|
1275
1275
|
E(me, {
|
|
1276
1276
|
outline: "",
|
|
1277
1277
|
icon: "",
|
|
1278
|
-
onClick: (
|
|
1279
|
-
},
|
|
1278
|
+
onClick: (h) => o("edge-click", m)
|
|
1279
|
+
}, wt({ _: 2 }, [
|
|
1280
1280
|
m.settings?.body?.logo ? {
|
|
1281
1281
|
name: "icon",
|
|
1282
1282
|
fn: $(() => [
|
|
1283
1283
|
B("img", {
|
|
1284
|
-
class: "
|
|
1284
|
+
class: "wu-w-5 wu-h-5 wu-object-contain",
|
|
1285
1285
|
src: m.settings.body.logo,
|
|
1286
1286
|
alt: ""
|
|
1287
1287
|
}, null, 8, Uo)
|
|
@@ -1290,7 +1290,7 @@ const Y = /* @__PURE__ */ q({
|
|
|
1290
1290
|
} : void 0
|
|
1291
1291
|
]), 1032, ["onClick"]),
|
|
1292
1292
|
E(j, {
|
|
1293
|
-
class: "
|
|
1293
|
+
class: "wu-w-20 wu-text-center wu-leading-3 wu-line-clamp-2",
|
|
1294
1294
|
"extra-small": ""
|
|
1295
1295
|
}, {
|
|
1296
1296
|
default: $(() => [
|
|
@@ -1303,10 +1303,10 @@ const Y = /* @__PURE__ */ q({
|
|
|
1303
1303
|
])) : R("", !0)
|
|
1304
1304
|
]));
|
|
1305
1305
|
}
|
|
1306
|
-
}), Xo = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAVCAYAAAAnzezqAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAVtSURBVHgBpVVriFVVFF6Pvc+5c+/MOM2Yo2hq41tDU1EsC50pU9NySqZUDCQiCwWZSKJQGOpHZjhpomOGNkE4pBQUgUIPGAz9Of0oGS0tCpWY0dIf93nO3q1zzzn3Xh+J1oHLPfusvb/v299ea22EO3hmz35RN2XGNyimOrZYr8g0aFZ1RH49k63VbIcogrsI4S6Wb4qhToGRmHwjk5IYypoLiu0hzjrbNn77xiW8FeHS+vdrdQOtR7ZPC8FkhbZOQIDRgIxByU/A5V/GaC2zEMQxLMatxJGL8wwU1wbvEtNk+zGTncc3p7b4+LhhS1SKPhKAdbJwlPwSjGAFFFWJPCQKCYq7sxQQczAHICQ3VkUilGxXYhCtb1Aupm9wYMm9eychwy6FfrMAOEVSARRgGy40AZiNCEMhoQj5FokruWGBKubEDgQiojW/lgTMH3qgpro21y7A7RIcwmWykm2lXcuuigICkBCsTH7NEUFkfXhU5aMxESakVUD+6PiuxcpmdxBioyz+XianZdJ98j+FA9sE/FoBEAriCBgt8o3Hcq2oIqEBSVRLRfFFoWepdWzXWGXsIUDyQJn5Z/Xgyiqb3TCiALOE/G3F5jryEJhjG9HEZ2orRNhYqPyCHCjFCMPNBGMi/Epl2bwpZZNOg7d8qOGWqVj/k9WWLpE9nshnn0ClR8uiuUR2IBLys9j6kOxifAR0kcA/KmBSntDCYB1xpldio8SdExJvkflN8p6Rbz0iplHGj4gDuRzmO3HZhL0DAH6PsXZLyrEXZEIqVihkrxL6fRppTiNU7x5M/F3nopkIKvej67v7RNSElI8LTcIsVWDPofLqFeBWhYMLyW0Yw8ZPkZs/5xrdJyY847KtId+m2cFJhGZE66Ft70hP8V1GHFRUGMaoErGlQfmIkHuUhq/JGhiAS1UJ4DNSt0ll3BccNh0IOMO6djKBeUx8/XPIwIgtucaLrTXpBiw45oi4NC2ZqRruJ7wT5OSvWJ/nogsrRLhHycttQf6RWHFaiKbAVTgvifdLOZHk3BT1SiebGJxllatHir3JwB1AM7lKq8tgC1cdyF9R5B9z0esr3H1xpVidhLqgZ9haweGcylTLZlLaqD0OQX+ygGvBy7/05P796UCAOEB7FHoHsZ6/YJNbRqS3S4LVSLJ+nvTtcd+Fb0RETzVnTuXA3cWE9yvM7/Wsv9BRNAvBP02Mm4DgiuRKL7HfJPkdlR2AZyCoin5A/ztFtMu45ljrJ52b4/JXR05t6F47fedy2fk+1k5nUtFWT9usk4epvvK/lDqdIVb2ZD13dEL5n0nh73ZJr0A0r8lxDWfG88yFNcqolAh/Oej7iJnpijQFx+kmaLpGmCkDR1xa7fxR3V/Z+EqNaN3M9553yWwVu8YU7SdLHOcCweua/F4RclJihkulCRgdmYlqn+JykzuhWO86KlsKy/Lwko+3P1spgOKX7r72g57NLZIS+kAI0kylboYaTZNCfCDIBWmtFDSeiDyub1Jxb6C4xmNxIU4gRHJmx/Wt/6a34eYH3xoHpFdLpm+SnQ2N22h4sQgYhgTXdb+wQVV8q2xg0tQ+XdT97qrbEhA/Hcs7kphxnhMHXhGQCSIg6v8QVkkwrrA7uqyKIsN2W7wJAwHS17w5zd07f7sjASUhHR1UcxIXCFg7sV0sgnTZARNdMCAiDKqKS6d8kZmNzQc799wM+7YExE9bWxu3ZKctEGvbmf1FQuaWGxdAOQHLF5EIPqN0et7DXV1//W8BlU/XUx3Dqtlbr8msF7KRlW6UckaaHLC3qvnDnT/8G85/FhA/h9s6HFKZVulya6SC5Ao30l3xdym7o5C2B5p7dgzeav0/0mtgehRo/YYAAAAASUVORK5CYII=", Yo = { class: "
|
|
1306
|
+
}), Xo = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAVCAYAAAAnzezqAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAVtSURBVHgBpVVriFVVFF6Pvc+5c+/MOM2Yo2hq41tDU1EsC50pU9NySqZUDCQiCwWZSKJQGOpHZjhpomOGNkE4pBQUgUIPGAz9Of0oGS0tCpWY0dIf93nO3q1zzzn3Xh+J1oHLPfusvb/v299ea22EO3hmz35RN2XGNyimOrZYr8g0aFZ1RH49k63VbIcogrsI4S6Wb4qhToGRmHwjk5IYypoLiu0hzjrbNn77xiW8FeHS+vdrdQOtR7ZPC8FkhbZOQIDRgIxByU/A5V/GaC2zEMQxLMatxJGL8wwU1wbvEtNk+zGTncc3p7b4+LhhS1SKPhKAdbJwlPwSjGAFFFWJPCQKCYq7sxQQczAHICQ3VkUilGxXYhCtb1Aupm9wYMm9eychwy6FfrMAOEVSARRgGy40AZiNCEMhoQj5FokruWGBKubEDgQiojW/lgTMH3qgpro21y7A7RIcwmWykm2lXcuuigICkBCsTH7NEUFkfXhU5aMxESakVUD+6PiuxcpmdxBioyz+XianZdJ98j+FA9sE/FoBEAriCBgt8o3Hcq2oIqEBSVRLRfFFoWepdWzXWGXsIUDyQJn5Z/Xgyiqb3TCiALOE/G3F5jryEJhjG9HEZ2orRNhYqPyCHCjFCMPNBGMi/Epl2bwpZZNOg7d8qOGWqVj/k9WWLpE9nshnn0ClR8uiuUR2IBLys9j6kOxifAR0kcA/KmBSntDCYB1xpldio8SdExJvkflN8p6Rbz0iplHGj4gDuRzmO3HZhL0DAH6PsXZLyrEXZEIqVihkrxL6fRppTiNU7x5M/F3nopkIKvej67v7RNSElI8LTcIsVWDPofLqFeBWhYMLyW0Yw8ZPkZs/5xrdJyY847KtId+m2cFJhGZE66Ft70hP8V1GHFRUGMaoErGlQfmIkHuUhq/JGhiAS1UJ4DNSt0ll3BccNh0IOMO6djKBeUx8/XPIwIgtucaLrTXpBiw45oi4NC2ZqRruJ7wT5OSvWJ/nogsrRLhHycttQf6RWHFaiKbAVTgvifdLOZHk3BT1SiebGJxllatHir3JwB1AM7lKq8tgC1cdyF9R5B9z0esr3H1xpVidhLqgZ9haweGcylTLZlLaqD0OQX+ygGvBy7/05P796UCAOEB7FHoHsZ6/YJNbRqS3S4LVSLJ+nvTtcd+Fb0RETzVnTuXA3cWE9yvM7/Wsv9BRNAvBP02Mm4DgiuRKL7HfJPkdlR2AZyCoin5A/ztFtMu45ljrJ52b4/JXR05t6F47fedy2fk+1k5nUtFWT9usk4epvvK/lDqdIVb2ZD13dEL5n0nh73ZJr0A0r8lxDWfG88yFNcqolAh/Oej7iJnpijQFx+kmaLpGmCkDR1xa7fxR3V/Z+EqNaN3M9553yWwVu8YU7SdLHOcCweua/F4RclJihkulCRgdmYlqn+JykzuhWO86KlsKy/Lwko+3P1spgOKX7r72g57NLZIS+kAI0kylboYaTZNCfCDIBWmtFDSeiDyub1Jxb6C4xmNxIU4gRHJmx/Wt/6a34eYH3xoHpFdLpm+SnQ2N22h4sQgYhgTXdb+wQVV8q2xg0tQ+XdT97qrbEhA/Hcs7kphxnhMHXhGQCSIg6v8QVkkwrrA7uqyKIsN2W7wJAwHS17w5zd07f7sjASUhHR1UcxIXCFg7sV0sgnTZARNdMCAiDKqKS6d8kZmNzQc799wM+7YExE9bWxu3ZKctEGvbmf1FQuaWGxdAOQHLF5EIPqN0et7DXV1//W8BlU/XUx3Dqtlbr8msF7KRlW6UckaaHLC3qvnDnT/8G85/FhA/h9s6HFKZVulya6SC5Ao30l3xdym7o5C2B5p7dgzeav0/0mtgehRo/YYAAAAASUVORK5CYII=", Yo = { class: "wu-flex wu-flex-col wu-h-full wu-w-full wu-bg-white wu-overflow-hidden dark:wu-bg-neutral-800" }, Ko = { class: "wu-w-full wu-shrink-0 wu-border-b wu-flex wu-items-center wu-px-4 wu-justify-between wu-gap-2 wu-bg-primary wu-h-[4.4rem] wu-text-[var(--wu-primary-fg)] wu-border-[var(--wu-primary-border)]" }, Qo = { class: "wu-flex wu-items-center wu-gap-3 wu-min-w-0 wu-flex-1" }, Jo = ["src"], er = { class: "wu-flex wu-flex-col wu-justify-center wu-min-w-0 wu-overflow-hidden" }, tr = { class: "wu-flex wu-flex-col wu-w-full wu-flex-1 wu-min-h-0" }, nr = {
|
|
1307
1307
|
key: 0,
|
|
1308
|
-
class: "
|
|
1309
|
-
}, or = { class: "
|
|
1308
|
+
class: "wu-flex wu-shrink-0 wu-items-center wu-w-fit wu-justify-center wu-px-6 wu-py-4"
|
|
1309
|
+
}, or = { class: "wu-flex wu-flex-col wu-w-full wu-flex-1 wu-min-h-0 wu-overflow-y-auto wu-gap-8" }, rr = { class: "wu-h-7 wu-w-full wu-shrink-0 wu-border-t wu-border-gray-200 wu-flex wu-items-center wu-justify-center wu-p-2 wu-gap-1 wu-bg-white dark:wu-border-neutral-700 dark:wu-bg-neutral-800" }, sr = ["src"], ir = /* @__PURE__ */ q({
|
|
1310
1310
|
inheritAttrs: !1,
|
|
1311
1311
|
__name: "app-widget-view",
|
|
1312
1312
|
props: {
|
|
@@ -1314,39 +1314,39 @@ 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
|
-
a(n.workflow),
|
|
1320
|
+
a(n.workflow), we(
|
|
1321
1321
|
() => n.workflow,
|
|
1322
1322
|
(g) => a(g)
|
|
1323
1323
|
);
|
|
1324
|
-
const m =
|
|
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
|
-
screen:
|
|
1328
|
-
}, v =
|
|
1327
|
+
screen: yn
|
|
1328
|
+
}, v = w(() => {
|
|
1329
1329
|
const g = s.value?.action;
|
|
1330
|
-
return g && g in
|
|
1331
|
-
}), b =
|
|
1332
|
-
return (g,
|
|
1333
|
-
class: F(["yunique
|
|
1330
|
+
return g && g in d ? d[g] : void 0;
|
|
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, c) => (y(), S("div", {
|
|
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))
|
|
1336
1336
|
}, [
|
|
1337
1337
|
B("div", Yo, [
|
|
1338
1338
|
B("div", Ko, [
|
|
1339
1339
|
B("div", Qo, [
|
|
1340
|
-
C(s)?.settings?.header?.logo ? (
|
|
1340
|
+
C(s)?.settings?.header?.logo ? (y(), S("img", {
|
|
1341
1341
|
key: 0,
|
|
1342
|
-
class: "
|
|
1342
|
+
class: "wu-w-9 wu-h-9 wu-object-contain wu-rounded-lg wu-shrink-0",
|
|
1343
1343
|
src: C(s).settings.header.logo,
|
|
1344
1344
|
alt: ""
|
|
1345
1345
|
}, null, 8, Jo)) : R("", !0),
|
|
1346
1346
|
B("div", er, [
|
|
1347
|
-
C(s)?.settings?.header?.title ? (
|
|
1347
|
+
C(s)?.settings?.header?.title ? (y(), T(j, {
|
|
1348
1348
|
key: 0,
|
|
1349
|
-
class: "
|
|
1349
|
+
class: "wu-w-full wu-truncate !wu-text-inherit",
|
|
1350
1350
|
bold: ""
|
|
1351
1351
|
}, {
|
|
1352
1352
|
default: $(() => [
|
|
@@ -1354,9 +1354,9 @@ const Y = /* @__PURE__ */ q({
|
|
|
1354
1354
|
]),
|
|
1355
1355
|
_: 1
|
|
1356
1356
|
})) : R("", !0),
|
|
1357
|
-
C(s)?.settings?.header?.subtitle ? (
|
|
1357
|
+
C(s)?.settings?.header?.subtitle ? (y(), T(j, {
|
|
1358
1358
|
key: 1,
|
|
1359
|
-
class: "
|
|
1359
|
+
class: "wu-w-full wu-truncate !wu-text-inherit wu-opacity-75",
|
|
1360
1360
|
"extra-small": ""
|
|
1361
1361
|
}, {
|
|
1362
1362
|
default: $(() => [
|
|
@@ -1366,17 +1366,17 @@ const Y = /* @__PURE__ */ q({
|
|
|
1366
1366
|
})) : R("", !0)
|
|
1367
1367
|
])
|
|
1368
1368
|
]),
|
|
1369
|
-
p.value ? (
|
|
1369
|
+
p.value ? (y(), T(me, {
|
|
1370
1370
|
key: 0,
|
|
1371
|
-
class: "
|
|
1372
|
-
onClick:
|
|
1371
|
+
class: "wu-shrink-0 !wu-bg-transparent hover:!wu-bg-[color-mix(in_srgb,var(--wu-primary-fg)_12%,transparent)]",
|
|
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
|
|
@@ -1391,32 +1391,32 @@ const Y = /* @__PURE__ */ q({
|
|
|
1391
1391
|
mode: "out-in"
|
|
1392
1392
|
}, {
|
|
1393
1393
|
default: $(() => [
|
|
1394
|
-
(
|
|
1395
|
-
class: "
|
|
1394
|
+
(y(), S("div", {
|
|
1395
|
+
class: "wu-flex wu-flex-col wu-w-full wu-h-full wu-min-h-0",
|
|
1396
1396
|
key: C(s)?.id
|
|
1397
1397
|
}, [
|
|
1398
|
-
|
|
1398
|
+
h.value ? (y(), S("div", nr, [
|
|
1399
1399
|
B("div", {
|
|
1400
|
-
class: "
|
|
1401
|
-
onClick:
|
|
1400
|
+
class: "wu-flex wu-items-center wu-w-fit wu-justify-center wu-cursor-pointer wu-group",
|
|
1401
|
+
onClick: c[1] || (c[1] = (f) => o("back"))
|
|
1402
1402
|
}, [
|
|
1403
1403
|
E(Y, {
|
|
1404
|
-
class: "
|
|
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
|
|
1412
1412
|
}),
|
|
1413
1413
|
E(j, {
|
|
1414
|
-
class: "
|
|
1414
|
+
class: "wu-transition-colors group-hover:!wu-text-gray-700 dark:group-hover:!wu-text-neutral-200",
|
|
1415
1415
|
"extra-small": "",
|
|
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
|
|
@@ -1424,15 +1424,15 @@ const Y = /* @__PURE__ */ q({
|
|
|
1424
1424
|
])
|
|
1425
1425
|
])) : R("", !0),
|
|
1426
1426
|
B("div", or, [
|
|
1427
|
-
v.value && C(s) ? (
|
|
1427
|
+
v.value && C(s) ? (y(), T(sn(v.value), {
|
|
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
|
]))
|
|
@@ -1442,17 +1442,17 @@ const Y = /* @__PURE__ */ q({
|
|
|
1442
1442
|
]),
|
|
1443
1443
|
B("div", rr, [
|
|
1444
1444
|
B("img", {
|
|
1445
|
-
class: "
|
|
1445
|
+
class: "wu-w-3 wu-h-2",
|
|
1446
1446
|
src: C(Xo),
|
|
1447
1447
|
alt: "Opens"
|
|
1448
1448
|
}, null, 8, sr),
|
|
1449
1449
|
E(j, {
|
|
1450
|
-
class: "!
|
|
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
|
-
B("b", { class: "
|
|
1455
|
+
B("b", { class: "wu-ml-1" }, "Opens", -1)
|
|
1456
1456
|
])]),
|
|
1457
1457
|
_: 1
|
|
1458
1458
|
})
|
|
@@ -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: "" },
|
|
@@ -1479,7 +1479,7 @@ const Y = /* @__PURE__ */ q({
|
|
|
1479
1479
|
},
|
|
1480
1480
|
emits: ["update:modelValue", "keyup-enter"],
|
|
1481
1481
|
setup(e, { expose: t, emit: n }) {
|
|
1482
|
-
const o = e, r = n, s =
|
|
1482
|
+
const o = e, r = n, s = w(() => Be());
|
|
1483
1483
|
function i(A) {
|
|
1484
1484
|
return !!s.value[A];
|
|
1485
1485
|
}
|
|
@@ -1493,7 +1493,7 @@ const Y = /* @__PURE__ */ q({
|
|
|
1493
1493
|
return A;
|
|
1494
1494
|
}
|
|
1495
1495
|
}
|
|
1496
|
-
|
|
1496
|
+
we(
|
|
1497
1497
|
() => o.modelValue,
|
|
1498
1498
|
(A) => {
|
|
1499
1499
|
if (A == null) {
|
|
@@ -1504,10 +1504,10 @@ const Y = /* @__PURE__ */ q({
|
|
|
1504
1504
|
},
|
|
1505
1505
|
{ immediate: !0 }
|
|
1506
1506
|
);
|
|
1507
|
-
function
|
|
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);
|
|
@@ -1515,7 +1515,7 @@ const Y = /* @__PURE__ */ q({
|
|
|
1515
1515
|
return t({
|
|
1516
1516
|
focus: l,
|
|
1517
1517
|
content: a
|
|
1518
|
-
}), (A, x) => (
|
|
1518
|
+
}), (A, x) => (y(), T(le, {
|
|
1519
1519
|
class: F([C(v)]),
|
|
1520
1520
|
col: "",
|
|
1521
1521
|
"gap-none": ""
|
|
@@ -1526,7 +1526,7 @@ const Y = /* @__PURE__ */ q({
|
|
|
1526
1526
|
"gap-sm": ""
|
|
1527
1527
|
}, {
|
|
1528
1528
|
default: $(() => [
|
|
1529
|
-
i("label") ? (
|
|
1529
|
+
i("label") ? (y(), T(j, {
|
|
1530
1530
|
key: 0,
|
|
1531
1531
|
small: "",
|
|
1532
1532
|
medium: ""
|
|
@@ -1537,12 +1537,12 @@ const Y = /* @__PURE__ */ q({
|
|
|
1537
1537
|
_: 3
|
|
1538
1538
|
})) : R("", !0),
|
|
1539
1539
|
B("label", {
|
|
1540
|
-
class: F(["
|
|
1540
|
+
class: F(["wu-relative wu-flex wu-flex-col wu-justify-center wu-items-start wu-border wu-cursor-text wu-transition-colors wu-w-full wu-bg-transparent", [k.value, L.value, C(p), b.value]]),
|
|
1541
1541
|
"data-testid": "app-text-input"
|
|
1542
1542
|
}, [
|
|
1543
1543
|
B("div", ar, [
|
|
1544
1544
|
B("div", lr, [
|
|
1545
|
-
!e.loading && i("icon") ? (
|
|
1545
|
+
!e.loading && i("icon") ? (y(), T(Y, {
|
|
1546
1546
|
key: 0,
|
|
1547
1547
|
small: ""
|
|
1548
1548
|
}, {
|
|
@@ -1551,9 +1551,9 @@ const Y = /* @__PURE__ */ q({
|
|
|
1551
1551
|
]),
|
|
1552
1552
|
_: 3
|
|
1553
1553
|
})) : R("", !0),
|
|
1554
|
-
e.loading ? (
|
|
1554
|
+
e.loading ? (y(), T(Y, {
|
|
1555
1555
|
key: 1,
|
|
1556
|
-
class: "
|
|
1556
|
+
class: "wu-animate-spin",
|
|
1557
1557
|
small: "",
|
|
1558
1558
|
outlined: ""
|
|
1559
1559
|
}, {
|
|
@@ -1564,7 +1564,7 @@ const Y = /* @__PURE__ */ q({
|
|
|
1564
1564
|
})) : R("", !0)
|
|
1565
1565
|
]),
|
|
1566
1566
|
E(j, {
|
|
1567
|
-
class: F(["
|
|
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(["
|
|
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,8 +1586,8 @@ 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",
|
|
1590
|
-
e.maxLength ? (
|
|
1589
|
+
B("div", cr, [
|
|
1590
|
+
e.maxLength ? (y(), T(j, {
|
|
1591
1591
|
key: 0,
|
|
1592
1592
|
small: ""
|
|
1593
1593
|
}, {
|
|
@@ -1596,9 +1596,9 @@ const Y = /* @__PURE__ */ q({
|
|
|
1596
1596
|
]),
|
|
1597
1597
|
_: 1
|
|
1598
1598
|
})) : R("", !0),
|
|
1599
|
-
e.type === "password" && e.passwordToggle ? (
|
|
1599
|
+
e.type === "password" && e.passwordToggle ? (y(), S("button", {
|
|
1600
1600
|
key: 1,
|
|
1601
|
-
class: "
|
|
1601
|
+
class: "wu-bg-transparent wu-border-0 wu-p-0 wu-cursor-pointer wu-flex wu-items-center",
|
|
1602
1602
|
type: "button",
|
|
1603
1603
|
tabindex: "-1",
|
|
1604
1604
|
onClick: x[3] || (x[3] = (P) => u.value = !u.value)
|
|
@@ -1619,9 +1619,9 @@ const Y = /* @__PURE__ */ q({
|
|
|
1619
1619
|
]),
|
|
1620
1620
|
_: 3
|
|
1621
1621
|
}),
|
|
1622
|
-
i("feedback") ? (
|
|
1622
|
+
i("feedback") ? (y(), S("div", {
|
|
1623
1623
|
key: 0,
|
|
1624
|
-
class: F(["
|
|
1624
|
+
class: F(["wu-mt-1", [g.value]])
|
|
1625
1625
|
}, [
|
|
1626
1626
|
W(A.$slots, "feedback")
|
|
1627
1627
|
], 2)) : R("", !0)
|
|
@@ -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:
|
|
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
|
-
}), b =
|
|
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 ?? "",
|
|
@@ -1695,16 +1695,16 @@ const Y = /* @__PURE__ */ q({
|
|
|
1695
1695
|
}, L = () => {
|
|
1696
1696
|
s.value = !0;
|
|
1697
1697
|
};
|
|
1698
|
-
return i(n.workflow),
|
|
1698
|
+
return i(n.workflow), we(
|
|
1699
1699
|
() => n.workflow,
|
|
1700
1700
|
(O) => i(O)
|
|
1701
|
-
),
|
|
1701
|
+
), we(
|
|
1702
1702
|
() => n.config.configurations.general.defaultBehavior,
|
|
1703
1703
|
(O) => {
|
|
1704
1704
|
O === "active" ? f() : k();
|
|
1705
1705
|
}
|
|
1706
|
-
), (O, A) => (
|
|
1707
|
-
class: F(["
|
|
1706
|
+
), (O, A) => (y(), S("div", {
|
|
1707
|
+
class: F(["wu-fixed yunique wu-z-[99999]", [C(h), r.value && e.fullscreen ? "wu-inset-0" : ""]]),
|
|
1708
1708
|
"data-testid": "app-widget",
|
|
1709
1709
|
style: pe([{ "--widget-origin": b.value }, v.value, C(m)])
|
|
1710
1710
|
}, [
|
|
@@ -1713,29 +1713,29 @@ const Y = /* @__PURE__ */ q({
|
|
|
1713
1713
|
onAfterLeave: L
|
|
1714
1714
|
}, {
|
|
1715
1715
|
default: $(() => [
|
|
1716
|
-
r.value ? (
|
|
1716
|
+
r.value ? (y(), T(bn, _t({ key: 0 }, g.value, {
|
|
1717
1717
|
onClose: k,
|
|
1718
1718
|
onBack: A[0] || (A[0] = (x) => o("back")),
|
|
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
|
-
s.value ? (
|
|
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
|
-
}),
|
|
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",
|
|
@@ -1775,7 +1775,7 @@ function $n(e, t, n) {
|
|
|
1775
1775
|
let i = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
1776
1776
|
return t.reference[s] > t.floating[s] && (i = Ye(i)), [i, Ye(i)];
|
|
1777
1777
|
}
|
|
1778
|
-
function
|
|
1778
|
+
function yr(e) {
|
|
1779
1779
|
const t = Ye(e);
|
|
1780
1780
|
return [Xe(e), t, Xe(t)];
|
|
1781
1781
|
}
|
|
@@ -1843,48 +1843,48 @@ function zt(e, t, n) {
|
|
|
1843
1843
|
reference: o,
|
|
1844
1844
|
floating: r
|
|
1845
1845
|
} = e;
|
|
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,
|
|
1847
|
-
let
|
|
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 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
|
-
y
|
|
1864
|
+
y: h
|
|
1865
1865
|
};
|
|
1866
1866
|
break;
|
|
1867
1867
|
case "left":
|
|
1868
|
-
|
|
1868
|
+
d = {
|
|
1869
1869
|
x: o.x - r.width,
|
|
1870
|
-
y
|
|
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 {
|
|
@@ -1899,24 +1899,24 @@ const Cr = async (e, t, n) => {
|
|
|
1899
1899
|
strategy: r
|
|
1900
1900
|
}), {
|
|
1901
1901
|
x: m,
|
|
1902
|
-
y
|
|
1903
|
-
} = zt(u, o, l), p = o,
|
|
1902
|
+
y: h
|
|
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
|
-
y,
|
|
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,
|
|
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({
|
|
@@ -1936,15 +1936,15 @@ const Cr = async (e, t, n) => {
|
|
|
1936
1936
|
strategy: r
|
|
1937
1937
|
}) : O.rects), {
|
|
1938
1938
|
x: m,
|
|
1939
|
-
y
|
|
1939
|
+
y: h
|
|
1940
1940
|
} = zt(u, p, l)), b = -1);
|
|
1941
1941
|
}
|
|
1942
1942
|
return {
|
|
1943
1943
|
x: m,
|
|
1944
|
-
y,
|
|
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) {
|
|
@@ -1960,15 +1960,15 @@ async function nt(e, t) {
|
|
|
1960
1960
|
} = e, {
|
|
1961
1961
|
boundary: u = "clippingAncestors",
|
|
1962
1962
|
rootBoundary: m = "viewport",
|
|
1963
|
-
elementContext:
|
|
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,
|
|
1970
1970
|
strategy: l
|
|
1971
|
-
})), f =
|
|
1971
|
+
})), f = h === "floating" ? {
|
|
1972
1972
|
x: o,
|
|
1973
1973
|
y: r,
|
|
1974
1974
|
width: i.floating.width,
|
|
@@ -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) => ({
|
|
@@ -2010,17 +2010,17 @@ const Ar = (e) => ({
|
|
|
2010
2010
|
} = $e(e, t) || {};
|
|
2011
2011
|
if (u == null)
|
|
2012
2012
|
return {};
|
|
2013
|
-
const
|
|
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(
|
|
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
|
|
@@ -2047,11 +2047,11 @@ const Br = function(e) {
|
|
|
2047
2047
|
elements: u
|
|
2048
2048
|
} = t, {
|
|
2049
2049
|
crossAxis: m = !1,
|
|
2050
|
-
alignment:
|
|
2050
|
+
alignment: h,
|
|
2051
2051
|
allowedPlacements: p = Rt,
|
|
2052
|
-
autoAlignment:
|
|
2052
|
+
autoAlignment: d = !0,
|
|
2053
2053
|
...v
|
|
2054
|
-
} = $e(e, t), b =
|
|
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: {
|
|
@@ -2116,20 +2116,20 @@ const Br = function(e) {
|
|
|
2116
2116
|
elements: u
|
|
2117
2117
|
} = t, {
|
|
2118
2118
|
mainAxis: m = !0,
|
|
2119
|
-
crossAxis:
|
|
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
|
}
|
|
@@ -2139,7 +2139,7 @@ const Br = function(e) {
|
|
|
2139
2139
|
}], !D.every((V) => V <= 0)) {
|
|
2140
2140
|
var G, _;
|
|
2141
2141
|
const V = (((G = s.flip) == null ? void 0 : G.index) || 0) + 1, K = x[V];
|
|
2142
|
-
if (K && (!(
|
|
2142
|
+
if (K && (!(h === "alignment" ? f !== ae(K) : !1) || // We leave the current main axis only if every placement on that axis
|
|
2143
2143
|
// overflows the main axis.
|
|
2144
2144
|
z.every((Q) => ae(Q.placement) === f ? Q.overflows[0] > 0 : !0)))
|
|
2145
2145
|
return {
|
|
@@ -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) => {
|
|
@@ -2188,26 +2188,26 @@ async function Lr(e, t) {
|
|
|
2188
2188
|
placement: n,
|
|
2189
2189
|
platform: o,
|
|
2190
2190
|
elements: r
|
|
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,
|
|
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
|
-
} = typeof
|
|
2197
|
-
mainAxis:
|
|
2196
|
+
} = typeof h == "number" ? {
|
|
2197
|
+
mainAxis: h,
|
|
2198
2198
|
crossAxis: 0,
|
|
2199
2199
|
alignmentAxis: null
|
|
2200
2200
|
} : {
|
|
2201
|
-
mainAxis:
|
|
2202
|
-
crossAxis:
|
|
2203
|
-
alignmentAxis:
|
|
2201
|
+
mainAxis: h.mainAxis || 0,
|
|
2202
|
+
crossAxis: h.crossAxis || 0,
|
|
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
|
}
|
|
@@ -2260,20 +2260,20 @@ const Mr = function(e) {
|
|
|
2260
2260
|
} = $e(e, t), u = {
|
|
2261
2261
|
x: n,
|
|
2262
2262
|
y: o
|
|
2263
|
-
}, m = await nt(t, l),
|
|
2264
|
-
let
|
|
2263
|
+
}, m = await nt(t, l), h = ae(ie(r)), p = xn(h);
|
|
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 =
|
|
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]:
|
|
2276
|
-
[
|
|
2275
|
+
[p]: d,
|
|
2276
|
+
[h]: v
|
|
2277
2277
|
});
|
|
2278
2278
|
return {
|
|
2279
2279
|
...b,
|
|
@@ -2282,7 +2282,7 @@ const Mr = function(e) {
|
|
|
2282
2282
|
y: b.y - o,
|
|
2283
2283
|
enabled: {
|
|
2284
2284
|
[p]: s,
|
|
2285
|
-
[
|
|
2285
|
+
[h]: i
|
|
2286
2286
|
}
|
|
2287
2287
|
}
|
|
2288
2288
|
};
|
|
@@ -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),
|
|
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
|
-
|
|
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,29 +2402,29 @@ 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
|
|
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
|
-
function
|
|
2416
|
+
function he(e) {
|
|
2417
2417
|
return ((An(e) ? e.ownerDocument : e.document) || window.document).documentElement;
|
|
2418
2418
|
}
|
|
2419
2419
|
function rt(e) {
|
|
2420
2420
|
return fe(e) ? { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop } : { scrollLeft: e.pageXOffset, scrollTop: e.pageYOffset };
|
|
2421
2421
|
}
|
|
2422
2422
|
function Pn(e) {
|
|
2423
|
-
return De(
|
|
2423
|
+
return De(he(e)).left + rt(e).scrollLeft;
|
|
2424
2424
|
}
|
|
2425
2425
|
function je(e) {
|
|
2426
2426
|
if (ge(e) === "html") return e;
|
|
2427
|
-
const t = e.assignedSlot || e.parentNode || Ft(e) && e.host ||
|
|
2427
|
+
const t = e.assignedSlot || e.parentNode || Ft(e) && e.host || he(e);
|
|
2428
2428
|
return Ft(t) ? t.host : t;
|
|
2429
2429
|
}
|
|
2430
2430
|
function Ln(e) {
|
|
@@ -2439,23 +2439,23 @@ function Qe(e, t) {
|
|
|
2439
2439
|
}
|
|
2440
2440
|
function Nt(e, t, n) {
|
|
2441
2441
|
return t === "viewport" ? He((function(o, r) {
|
|
2442
|
-
const s = J(o), i =
|
|
2443
|
-
let l = i.clientWidth, u = i.clientHeight, m = 0,
|
|
2442
|
+
const s = J(o), i = he(o), a = s.visualViewport;
|
|
2443
|
+
let l = i.clientWidth, u = i.clientHeight, m = 0, h = 0;
|
|
2444
2444
|
if (a) {
|
|
2445
2445
|
l = a.width, u = a.height;
|
|
2446
2446
|
const p = Sn();
|
|
2447
|
-
(p || !p && r === "fixed") && (m = a.offsetLeft,
|
|
2447
|
+
(p || !p && r === "fixed") && (m = a.offsetLeft, h = a.offsetTop);
|
|
2448
2448
|
}
|
|
2449
|
-
return { width: l, height: u, x: m, y };
|
|
2449
|
+
return { width: l, height: u, x: m, y: h };
|
|
2450
2450
|
})(e, n)) : fe(t) ? He((function(o, r) {
|
|
2451
2451
|
const s = De(o, !0, r === "fixed"), i = s.top + o.clientTop, a = s.left + o.clientLeft, l = se(o) ? Ce(o) : { x: 1, y: 1 };
|
|
2452
2452
|
return { width: o.clientWidth * l.x, height: o.clientHeight * l.y, x: a * l.x, y: i * l.y };
|
|
2453
2453
|
})(t, n)) : He((function(o) {
|
|
2454
|
-
const r =
|
|
2454
|
+
const r = he(o), s = rt(o), i = o.ownerDocument.body, a = ze(r.scrollWidth, r.clientWidth, i.scrollWidth, i.clientWidth), l = ze(r.scrollHeight, r.clientHeight, i.scrollHeight, i.clientHeight);
|
|
2455
2455
|
let u = -s.scrollLeft + Pn(o);
|
|
2456
2456
|
const m = -s.scrollTop;
|
|
2457
2457
|
return re(i).direction === "rtl" && (u += ze(r.clientWidth, i.clientWidth) - a), { width: a, height: l, x: u, y: m };
|
|
2458
|
-
})(
|
|
2458
|
+
})(he(e)));
|
|
2459
2459
|
}
|
|
2460
2460
|
function It(e) {
|
|
2461
2461
|
return se(e) && re(e).position !== "fixed" ? e.offsetParent : null;
|
|
@@ -2474,7 +2474,7 @@ function Dt(e) {
|
|
|
2474
2474
|
})(e) || t;
|
|
2475
2475
|
}
|
|
2476
2476
|
function zr(e, t, n) {
|
|
2477
|
-
const o = se(t), r =
|
|
2477
|
+
const o = se(t), r = he(t), s = De(e, !0, n === "fixed", t);
|
|
2478
2478
|
let i = { scrollLeft: 0, scrollTop: 0 };
|
|
2479
2479
|
const a = { x: 0, y: 0 };
|
|
2480
2480
|
if (o || !o && n !== "fixed") if ((ge(t) !== "body" || ot(r)) && (i = rt(t)), se(t)) {
|
|
@@ -2486,24 +2486,24 @@ function zr(e, t, n) {
|
|
|
2486
2486
|
const Er = { getClippingRect: function(e) {
|
|
2487
2487
|
let { element: t, boundary: n, rootBoundary: o, strategy: r } = e;
|
|
2488
2488
|
const s = n === "clippingAncestors" ? (function(u, m) {
|
|
2489
|
-
const
|
|
2490
|
-
if (
|
|
2491
|
-
let p = Qe(u).filter(((g) => fe(g) && ge(g) !== "body")),
|
|
2489
|
+
const h = m.get(u);
|
|
2490
|
+
if (h) return h;
|
|
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) => {
|
|
2500
|
-
const
|
|
2501
|
-
return u.top = ze(
|
|
2500
|
+
const h = Nt(t, m, r);
|
|
2501
|
+
return u.top = ze(h.top, u.top), u.right = Et(h.right, u.right), u.bottom = Et(h.bottom, u.bottom), u.left = ze(h.left, u.left), u;
|
|
2502
2502
|
}), Nt(t, a, r));
|
|
2503
2503
|
return { width: l.right - l.left, height: l.bottom - l.top, x: l.left, y: l.top };
|
|
2504
2504
|
}, convertOffsetParentRelativeRectToViewportRelativeRect: function(e) {
|
|
2505
2505
|
let { rect: t, offsetParent: n, strategy: o } = e;
|
|
2506
|
-
const r = se(n), s =
|
|
2506
|
+
const r = se(n), s = he(n);
|
|
2507
2507
|
if (n === s) return t;
|
|
2508
2508
|
let i = { scrollLeft: 0, scrollTop: 0 }, a = { x: 1, y: 1 };
|
|
2509
2509
|
const l = { x: 0, y: 0 };
|
|
@@ -2514,7 +2514,7 @@ const Er = { getClippingRect: function(e) {
|
|
|
2514
2514
|
return { width: t.width * a.x, height: t.height * a.y, x: t.x * a.x - i.scrollLeft * a.x + l.x, y: t.y * a.y - i.scrollTop * a.y + l.y };
|
|
2515
2515
|
}, isElement: fe, getDimensions: function(e) {
|
|
2516
2516
|
return se(e) ? _n(e) : e.getBoundingClientRect();
|
|
2517
|
-
}, getOffsetParent: Dt, getDocumentElement:
|
|
2517
|
+
}, getOffsetParent: Dt, getDocumentElement: he, getScale: Ce, async getElementRects(e) {
|
|
2518
2518
|
let { reference: t, floating: n, strategy: o } = e;
|
|
2519
2519
|
const r = this.getOffsetParent || Dt, s = this.getDimensions;
|
|
2520
2520
|
return { reference: zr(t, await r(n), o), floating: { x: 0, y: 0, ...await s(n) } };
|
|
@@ -2670,31 +2670,31 @@ function ut() {
|
|
|
2670
2670
|
}));
|
|
2671
2671
|
}
|
|
2672
2672
|
const ee = [];
|
|
2673
|
-
let
|
|
2673
|
+
let ye = null;
|
|
2674
2674
|
const Gt = {};
|
|
2675
2675
|
function Zt(e) {
|
|
2676
2676
|
let t = Gt[e];
|
|
2677
2677
|
return t || (t = Gt[e] = []), t;
|
|
2678
2678
|
}
|
|
2679
|
-
let
|
|
2679
|
+
let yt = function() {
|
|
2680
2680
|
};
|
|
2681
|
-
typeof window < "u" && (
|
|
2681
|
+
typeof window < "u" && (yt = window.Element);
|
|
2682
2682
|
function H(e) {
|
|
2683
2683
|
return function(t) {
|
|
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: {
|
|
@@ -2775,11 +2775,11 @@ const dt = "__floating-vue__popper", Hn = () => q({
|
|
|
2775
2775
|
default: H("popperHideTriggers")
|
|
2776
2776
|
},
|
|
2777
2777
|
container: {
|
|
2778
|
-
type: [String, Object,
|
|
2778
|
+
type: [String, Object, yt, Boolean],
|
|
2779
2779
|
default: H("container")
|
|
2780
2780
|
},
|
|
2781
2781
|
boundary: {
|
|
2782
|
-
type: [String,
|
|
2782
|
+
type: [String, yt],
|
|
2783
2783
|
default: H("boundary")
|
|
2784
2784
|
},
|
|
2785
2785
|
strategy: {
|
|
@@ -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;
|
|
@@ -3098,8 +3098,8 @@ const dt = "__floating-vue__popper", Hn = () => q({
|
|
|
3098
3098
|
});
|
|
3099
3099
|
},
|
|
3100
3100
|
$_scheduleShow(e, t = !1) {
|
|
3101
|
-
if (this.$_updateParentShownChildren(!0), this.$_hideInProgress = !1, clearTimeout(this.$_scheduleTimer),
|
|
3102
|
-
|
|
3101
|
+
if (this.$_updateParentShownChildren(!0), this.$_hideInProgress = !1, clearTimeout(this.$_scheduleTimer), ye && this.instantMove && ye.instantMove && ye !== this.parentPopper) {
|
|
3102
|
+
ye.$_applyHide(!0), this.$_applyShow(!0);
|
|
3103
3103
|
return;
|
|
3104
3104
|
}
|
|
3105
3105
|
t ? this.$_applyShow() : this.$_scheduleTimer = setTimeout(this.$_applyShow.bind(this), this.$_computeDelay("show"));
|
|
@@ -3109,7 +3109,7 @@ const dt = "__floating-vue__popper", Hn = () => q({
|
|
|
3109
3109
|
this.pendingHide = !0;
|
|
3110
3110
|
return;
|
|
3111
3111
|
}
|
|
3112
|
-
this.$_updateParentShownChildren(!1), this.$_hideInProgress = !0, clearTimeout(this.$_scheduleTimer), this.isShown && (
|
|
3112
|
+
this.$_updateParentShownChildren(!1), this.$_hideInProgress = !0, clearTimeout(this.$_scheduleTimer), this.isShown && (ye = this), t ? this.$_applyHide() : this.$_scheduleTimer = setTimeout(this.$_applyHide.bind(this), this.$_computeDelay("hide"));
|
|
3113
3113
|
},
|
|
3114
3114
|
$_computeDelay(e) {
|
|
3115
3115
|
const t = this.delay;
|
|
@@ -3157,7 +3157,7 @@ const dt = "__floating-vue__popper", Hn = () => q({
|
|
|
3157
3157
|
const o = Zt(n);
|
|
3158
3158
|
qt(o, this), o.length === 0 && document.body.classList.remove(`v-popper--some-open--${n}`);
|
|
3159
3159
|
}
|
|
3160
|
-
|
|
3160
|
+
ye === this && (ye = null), this.isShown = !1, this.$_applyAttrsToTarget({
|
|
3161
3161
|
"aria-describedby": void 0,
|
|
3162
3162
|
"data-popper-shown": void 0
|
|
3163
3163
|
}), clearTimeout(this.$_disposeTimer);
|
|
@@ -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);
|
|
@@ -3333,7 +3333,7 @@ const jr = {
|
|
|
3333
3333
|
return n;
|
|
3334
3334
|
};
|
|
3335
3335
|
function Vr(e, t, n, o, r, s) {
|
|
3336
|
-
return
|
|
3336
|
+
return y(), S("div", {
|
|
3337
3337
|
ref: "reference",
|
|
3338
3338
|
class: F(["v-popper", {
|
|
3339
3339
|
"v-popper--shown": e.slotData.isShown
|
|
@@ -3413,7 +3413,7 @@ const Zr = {
|
|
|
3413
3413
|
tabindex: "-1"
|
|
3414
3414
|
};
|
|
3415
3415
|
Qn();
|
|
3416
|
-
const Ur = /* @__PURE__ */ Gr((e, t, n, o, r, s) => (
|
|
3416
|
+
const Ur = /* @__PURE__ */ Gr((e, t, n, o, r, s) => (y(), T("div", Zr)));
|
|
3417
3417
|
it.render = Ur;
|
|
3418
3418
|
it.__scopeId = "data-v-b329ee4c";
|
|
3419
3419
|
it.__file = "src/components/ResizeObserver.vue";
|
|
@@ -3460,7 +3460,7 @@ const En = (e = "theme") => ({
|
|
|
3460
3460
|
];
|
|
3461
3461
|
function ts(e, t, n, o, r, s) {
|
|
3462
3462
|
const i = Ne("ResizeObserver");
|
|
3463
|
-
return
|
|
3463
|
+
return y(), S("div", {
|
|
3464
3464
|
id: e.popperId,
|
|
3465
3465
|
ref: "popover",
|
|
3466
3466
|
class: F(["v-popper__popper", [
|
|
@@ -3498,11 +3498,11 @@ function ts(e, t, n, o, r, s) {
|
|
|
3498
3498
|
} : void 0)
|
|
3499
3499
|
}, [
|
|
3500
3500
|
B("div", Kr, [
|
|
3501
|
-
e.mounted ? (
|
|
3501
|
+
e.mounted ? (y(), S(ue, { key: 0 }, [
|
|
3502
3502
|
B("div", null, [
|
|
3503
3503
|
W(e.$slots, "default")
|
|
3504
3504
|
]),
|
|
3505
|
-
e.handleResize ? (
|
|
3505
|
+
e.handleResize ? (y(), T(i, {
|
|
3506
3506
|
key: 0,
|
|
3507
3507
|
onNotify: t[1] || (t[1] = (a) => e.$emit("resize", a))
|
|
3508
3508
|
})) : R("", !0)
|
|
@@ -3736,7 +3736,7 @@ const ns = q({
|
|
|
3736
3736
|
});
|
|
3737
3737
|
function os(e, t, n, o, r, s) {
|
|
3738
3738
|
const i = Ne("PopperContent"), a = Ne("Popper");
|
|
3739
|
-
return
|
|
3739
|
+
return y(), T(a, _t({ ref: "popper" }, e.$props, {
|
|
3740
3740
|
theme: e.finalTheme,
|
|
3741
3741
|
"target-nodes": e.getTargetNodes,
|
|
3742
3742
|
"popper-node": () => e.$refs.popperContent.$el,
|
|
@@ -3757,18 +3757,18 @@ function os(e, t, n, o, r, s) {
|
|
|
3757
3757
|
popperId: l,
|
|
3758
3758
|
isShown: u,
|
|
3759
3759
|
shouldMountContent: m,
|
|
3760
|
-
skipTransition:
|
|
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, {
|
|
@@ -3777,10 +3777,10 @@ function os(e, t, n, o, r, s) {
|
|
|
3777
3777
|
theme: e.finalTheme,
|
|
3778
3778
|
shown: u,
|
|
3779
3779
|
mounted: m,
|
|
3780
|
-
"skip-transition":
|
|
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,9 +3890,9 @@ 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
|
-
return
|
|
3895
|
+
return y(), T(a, _t({ ref: "popper" }, e.$attrs, {
|
|
3896
3896
|
theme: e.theme,
|
|
3897
3897
|
"target-nodes": e.targetNodes,
|
|
3898
3898
|
"popper-node": () => e.$refs.popperContent.$el,
|
|
@@ -3903,13 +3903,13 @@ function ds(e, t, n, o, r, s) {
|
|
|
3903
3903
|
popperId: l,
|
|
3904
3904
|
isShown: u,
|
|
3905
3905
|
shouldMountContent: m,
|
|
3906
|
-
skipTransition:
|
|
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",
|
|
@@ -3920,19 +3920,19 @@ function ds(e, t, n, o, r, s) {
|
|
|
3920
3920
|
theme: e.theme,
|
|
3921
3921
|
shown: u,
|
|
3922
3922
|
mounted: m,
|
|
3923
|
-
"skip-transition":
|
|
3923
|
+
"skip-transition": h,
|
|
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: $(() => [
|
|
3932
|
-
e.html ? (
|
|
3932
|
+
e.html ? (y(), S("div", {
|
|
3933
3933
|
key: 0,
|
|
3934
3934
|
innerHTML: e.finalContent
|
|
3935
|
-
}, null, 8, ls)) : (
|
|
3935
|
+
}, null, 8, ls)) : (y(), S("div", {
|
|
3936
3936
|
key: 1,
|
|
3937
3937
|
textContent: Z(e.finalContent)
|
|
3938
3938
|
}, null, 8, us))
|
|
@@ -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
|
|
3960
|
-
function
|
|
3961
|
-
if (
|
|
3959
|
+
let dt, We, fs = 0;
|
|
3960
|
+
function hs() {
|
|
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 ys() {
|
|
|
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,10 +3979,10 @@ function ys() {
|
|
|
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
|
-
function
|
|
3985
|
-
|
|
3984
|
+
function ws(e, t, n) {
|
|
3985
|
+
hs();
|
|
3986
3986
|
const o = I(Dn(e, t, n)), r = I(!1), s = {
|
|
3987
3987
|
id: fs++,
|
|
3988
3988
|
options: o,
|
|
@@ -4012,7 +4012,7 @@ function Kt(e, { value: t, modifiers: n }) {
|
|
|
4012
4012
|
jn(e);
|
|
4013
4013
|
else {
|
|
4014
4014
|
let r;
|
|
4015
|
-
e.$_popper ? (r = e.$_popper, r.options.value = o) : r =
|
|
4015
|
+
e.$_popper ? (r = e.$_popper, r.options.value = o) : r = ws(e, t, n), typeof t.shown < "u" && t.shown !== e.$_popperOldShown && (e.$_popperOldShown = t.shown, t.shown ? r.show() : r.hide());
|
|
4016
4016
|
}
|
|
4017
4017
|
}
|
|
4018
4018
|
const ms = {
|
|
@@ -4067,7 +4067,7 @@ const gs = {
|
|
|
4067
4067
|
function vs(e, t = {}) {
|
|
4068
4068
|
e.$_vTooltipInstalled || (e.$_vTooltipInstalled = !0, Mn(ne, t), e.directive("tooltip", ms), e.directive("close-popper", gs), e.component("VTooltip", is), e.component("VDropdown", rs), e.component("VMenu", ss));
|
|
4069
4069
|
}
|
|
4070
|
-
const
|
|
4070
|
+
const ys = {
|
|
4071
4071
|
// eslint-disable-next-line no-undef
|
|
4072
4072
|
version: "5.2.2",
|
|
4073
4073
|
install: vs,
|
|
@@ -4161,7 +4161,7 @@ const ws = {
|
|
|
4161
4161
|
body: Pe(ke.support, "Consultar meu plano", "Informe seus dados para consultar o plano."),
|
|
4162
4162
|
form: { fields: [...$s] }
|
|
4163
4163
|
}
|
|
4164
|
-
}),
|
|
4164
|
+
}), ht = Le({
|
|
4165
4165
|
id: "b2222222-2222-4222-8222-222222222204",
|
|
4166
4166
|
name: "Cancelar plano",
|
|
4167
4167
|
action: "identification",
|
|
@@ -4184,7 +4184,7 @@ const ws = {
|
|
|
4184
4184
|
rules: [
|
|
4185
4185
|
tn,
|
|
4186
4186
|
ft,
|
|
4187
|
-
|
|
4187
|
+
ht,
|
|
4188
4188
|
nn,
|
|
4189
4189
|
on,
|
|
4190
4190
|
$t
|
|
@@ -4193,10 +4193,10 @@ const ws = {
|
|
|
4193
4193
|
[$t.id]: [
|
|
4194
4194
|
Re("aa2db433-f691-4b0e-b2f3-703eb131fcc1", tn.id),
|
|
4195
4195
|
Re("aa2db433-f691-4b0e-b2f3-703eb131fcc2", ft.id),
|
|
4196
|
-
Re("aa2db433-f691-4b0e-b2f3-703eb131fcc3",
|
|
4196
|
+
Re("aa2db433-f691-4b0e-b2f3-703eb131fcc3", ht.id)
|
|
4197
4197
|
],
|
|
4198
4198
|
[ft.id]: [Re("cc2db433-f691-4b0e-b2f3-703eb131fcc1", nn.id)],
|
|
4199
|
-
[
|
|
4199
|
+
[ht.id]: [Re("cc2db433-f691-4b0e-b2f3-703eb131fcc2", on.id)]
|
|
4200
4200
|
}
|
|
4201
4201
|
}, As = $t, Ss = (e) => _s.rules.find((t) => t.id === e), Bs = {
|
|
4202
4202
|
configurations: {
|
|
@@ -4223,24 +4223,24 @@ const ws = {
|
|
|
4223
4223
|
}
|
|
4224
4224
|
}, Ts = {
|
|
4225
4225
|
install: (e) => {
|
|
4226
|
-
e.use(
|
|
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
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4231
|
+
dn as AppCarousel,
|
|
4232
|
+
wn as AppEmpty,
|
|
4233
|
+
cn as AppFormTextInput,
|
|
4234
4234
|
le as AppGroup,
|
|
4235
4235
|
Y as AppIcon,
|
|
4236
4236
|
pn as AppIdentificationPage,
|
|
4237
4237
|
mt as AppMessage,
|
|
4238
|
-
|
|
4238
|
+
yn as AppScreenPage,
|
|
4239
4239
|
mn as AppServicePage,
|
|
4240
|
-
|
|
4240
|
+
hn as AppSkeleton,
|
|
4241
4241
|
j as AppText,
|
|
4242
|
-
|
|
4243
|
-
|
|
4242
|
+
dr as AppTextInput,
|
|
4243
|
+
hr as AppWidget,
|
|
4244
4244
|
fn as AppWidgetAnchor,
|
|
4245
4245
|
bn as AppWidgetView,
|
|
4246
4246
|
Ts as default,
|