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