@opens/widget-ui 1.0.4 → 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-service-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-anchor.vue.d.ts +9 -0
- 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 +1426 -1372
- package/dist/yunique_widget_ui.umd.js +2 -2
- package/package.json +1 -1
- package/dist/pages/app-service-page.vue.d.ts.map +0 -1
- /package/dist/{pages/app-service-page.vue.d.ts → app-service-page.vue.d.ts} +0 -0
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
import { ref 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
|
-
const
|
|
23
|
-
function
|
|
22
|
+
const Pe = q([]), Ot = q(void 0);
|
|
23
|
+
function Je() {
|
|
24
24
|
return {
|
|
25
25
|
currentRuleId: Ot,
|
|
26
|
-
history:
|
|
27
|
-
setCurrentRuleId: (
|
|
28
|
-
Ot.value =
|
|
26
|
+
history: Pe,
|
|
27
|
+
setCurrentRuleId: (i) => {
|
|
28
|
+
Ot.value = i;
|
|
29
29
|
},
|
|
30
30
|
clearHistory: () => {
|
|
31
|
-
|
|
31
|
+
Pe.value = [];
|
|
32
32
|
},
|
|
33
|
-
pushHistory: (
|
|
34
|
-
|
|
33
|
+
pushHistory: (i) => {
|
|
34
|
+
Pe.value.push(i);
|
|
35
35
|
},
|
|
36
|
-
setHistory: (
|
|
37
|
-
|
|
36
|
+
setHistory: (i) => {
|
|
37
|
+
Pe.value = [...i];
|
|
38
38
|
},
|
|
39
|
-
popHistory: () =>
|
|
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
|
-
qe(
|
|
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
52
|
await Ee();
|
|
53
|
-
const
|
|
54
|
-
if (!
|
|
55
|
-
(
|
|
53
|
+
const _ = a.value;
|
|
54
|
+
if (!_) return;
|
|
55
|
+
(_.querySelector(".is-active input") ?? _.querySelector("input"))?.focus({ preventScroll: !0 });
|
|
56
56
|
});
|
|
57
|
-
const
|
|
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
|
-
|
|
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
|
-
},
|
|
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,
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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,
|
|
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
|
-
onClick:
|
|
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:
|
|
433
|
-
|
|
434
|
+
default: $(() => [
|
|
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:
|
|
443
|
-
|
|
444
|
+
default: $(() => [
|
|
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:
|
|
453
|
-
|
|
454
|
+
default: $(() => [
|
|
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
|
-
},
|
|
479
|
-
const
|
|
480
|
-
|
|
481
|
-
},
|
|
482
|
-
const
|
|
483
|
-
if (
|
|
484
|
-
|
|
485
|
-
const I = [...
|
|
486
|
-
l.value = D - ee, u.value = n.vertical && !n.fill ? H + W * 2 : 0,
|
|
487
|
-
},
|
|
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);
|
|
480
|
+
}, g = () => {
|
|
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
507
|
return qe(
|
|
506
508
|
() => [n.vertical, n.fill, n.modelValue],
|
|
507
509
|
async () => {
|
|
508
|
-
await Ee(),
|
|
510
|
+
await Ee(), w();
|
|
509
511
|
}
|
|
510
|
-
),
|
|
511
|
-
await Ee(),
|
|
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
|
-
(
|
|
532
|
-
class: N(["yu-carousel-slide",
|
|
533
|
+
(v(!0), B(we, null, Te(y(), (I, E) => (v(), B("div", {
|
|
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,115 +550,115 @@ 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
|
-
fieldMask:
|
|
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
|
-
F(
|
|
583
|
-
class: "yu-transition-colors group-hover:!yu-text-gray-700",
|
|
584
|
+
F(j, {
|
|
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:
|
|
625
|
+
default: $(() => [
|
|
624
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)) :
|
|
652
|
-
F(
|
|
653
|
+
}, 1024)) : R("", !0),
|
|
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)
|
|
@@ -668,31 +670,31 @@ const ne = /* @__PURE__ */ Z({
|
|
|
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,
|
|
@@ -717,6 +719,10 @@ const ne = /* @__PURE__ */ Z({
|
|
|
717
719
|
type: String,
|
|
718
720
|
default: ""
|
|
719
721
|
},
|
|
722
|
+
label: {
|
|
723
|
+
type: String,
|
|
724
|
+
default: ""
|
|
725
|
+
},
|
|
720
726
|
outline: Boolean,
|
|
721
727
|
ghost: Boolean,
|
|
722
728
|
disabled: Boolean,
|
|
@@ -724,60 +730,54 @@ const ne = /* @__PURE__ */ Z({
|
|
|
724
730
|
},
|
|
725
731
|
emits: ["click"],
|
|
726
732
|
setup(e) {
|
|
727
|
-
const t = e, o = p(() =>
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
}
|
|
731
|
-
const i = p(() => n("default") || n("label")), r = 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"), a = p(() => i.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"), s = p(() => t.small ? "yu-w-6 yu-h-6" : t.large ? "yu-w-8 yu-h-8" : "yu-w-7 yu-h-7"), l = p(() => t.disabled || t.loading ? "yu-opacity-50 yu-pointer-events-none" : "");
|
|
732
|
-
return (u, c) => (g(), C("button", {
|
|
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", [a.value, r.value, l.value]]),
|
|
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:
|
|
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
|
-
|
|
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:
|
|
764
|
-
|
|
765
|
-
j(u.$slots, "label")
|
|
766
|
-
])
|
|
765
|
+
default: $(() => [
|
|
766
|
+
M(G(e.label), 1)
|
|
767
767
|
]),
|
|
768
|
-
_:
|
|
769
|
-
}, 8, ["small"])) :
|
|
770
|
-
], 10,
|
|
768
|
+
_: 1
|
|
769
|
+
}, 8, ["small"])) : R("", !0)
|
|
770
|
+
], 10, _n));
|
|
771
771
|
}
|
|
772
|
-
}),
|
|
772
|
+
}), Cn = {
|
|
773
773
|
key: 0,
|
|
774
774
|
class: "yu-flex yu-shrink-0 yu-items-end",
|
|
775
775
|
"data-testid": "app-message-avatar"
|
|
776
|
-
},
|
|
776
|
+
}, Sn = {
|
|
777
777
|
key: 0,
|
|
778
778
|
class: "yu-w-full yu-flex yu-justify-end yu-h-2",
|
|
779
779
|
"data-testid": "app-message-trailing"
|
|
780
|
-
},
|
|
780
|
+
}, wo = /* @__PURE__ */ Z({
|
|
781
781
|
__name: "app-message",
|
|
782
782
|
props: {
|
|
783
783
|
primary: Boolean,
|
|
@@ -785,39 +785,39 @@ const ne = /* @__PURE__ */ Z({
|
|
|
785
785
|
tertiary: Boolean
|
|
786
786
|
},
|
|
787
787
|
setup(e) {
|
|
788
|
-
const t = e, o = p(() =>
|
|
788
|
+
const t = e, o = p(() => Ve());
|
|
789
789
|
function n(u) {
|
|
790
790
|
return !!o.value[u];
|
|
791
791
|
}
|
|
792
|
-
const
|
|
793
|
-
return (u,
|
|
794
|
-
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]),
|
|
795
795
|
"data-testid": "app-message"
|
|
796
796
|
}, [
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
])) :
|
|
800
|
-
|
|
797
|
+
s.value ? (v(), B("div", Cn, [
|
|
798
|
+
V(u.$slots, "avatar")
|
|
799
|
+
])) : R("", !0),
|
|
800
|
+
T("div", {
|
|
801
801
|
class: N(["yu-rounded-md yu-relative", l.value]),
|
|
802
802
|
"data-testid": "app-message-bubble"
|
|
803
803
|
}, [
|
|
804
|
-
|
|
805
|
-
n("trailing") ? (
|
|
806
|
-
|
|
807
|
-
])) :
|
|
804
|
+
V(u.$slots, "default"),
|
|
805
|
+
n("trailing") ? (v(), B("div", Sn, [
|
|
806
|
+
V(u.$slots, "trailing")
|
|
807
|
+
])) : R("", !0)
|
|
808
808
|
], 2)
|
|
809
809
|
], 2));
|
|
810
810
|
}
|
|
811
|
-
}),
|
|
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 = {
|
|
812
812
|
key: 0,
|
|
813
813
|
class: "yu-w-full yu-h-12"
|
|
814
|
-
},
|
|
814
|
+
}, On = {
|
|
815
815
|
key: 0,
|
|
816
|
-
class: "yu-flex yu-items-center yu-justify-center yu-rounded-full yu-bg-gray-100 yu-w-7 yu-h-7"
|
|
817
|
-
},
|
|
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 = {
|
|
818
818
|
key: 1,
|
|
819
819
|
class: "yu-flex yu-w-7 yu-h-7"
|
|
820
|
-
},
|
|
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({
|
|
821
821
|
__name: "app-service-page",
|
|
822
822
|
props: {
|
|
823
823
|
rule: {},
|
|
@@ -826,7 +826,7 @@ const ne = /* @__PURE__ */ Z({
|
|
|
826
826
|
setup(e) {
|
|
827
827
|
const t = e;
|
|
828
828
|
p(() => t.rule.settings?.behavior === "voice");
|
|
829
|
-
const { history: o } =
|
|
829
|
+
const { history: o } = Je(), n = p(() => o.value.length > 0), r = [
|
|
830
830
|
{
|
|
831
831
|
from: "system",
|
|
832
832
|
text: 'Opção "Falar com um atendente" selecionada'
|
|
@@ -907,35 +907,35 @@ const ne = /* @__PURE__ */ Z({
|
|
|
907
907
|
from: "contact",
|
|
908
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!"
|
|
909
909
|
}
|
|
910
|
-
],
|
|
911
|
-
return (
|
|
912
|
-
|
|
913
|
-
n.value ?
|
|
914
|
-
(
|
|
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, {
|
|
915
915
|
key: u,
|
|
916
916
|
primary: l.from === "operator",
|
|
917
917
|
secondary: l.from === "contact",
|
|
918
918
|
tertiary: l.from === "system"
|
|
919
|
-
},
|
|
920
|
-
default:
|
|
921
|
-
l.from == "system" ? (
|
|
919
|
+
}, mt({
|
|
920
|
+
default: $(() => [
|
|
921
|
+
l.from == "system" ? (v(), z(j, {
|
|
922
922
|
key: 0,
|
|
923
923
|
class: "yu-text-center",
|
|
924
924
|
gray: "",
|
|
925
925
|
"extra-small": "",
|
|
926
926
|
medium: ""
|
|
927
927
|
}, {
|
|
928
|
-
default:
|
|
928
|
+
default: $(() => [
|
|
929
929
|
M(G(l.text), 1)
|
|
930
930
|
]),
|
|
931
931
|
_: 2
|
|
932
|
-
}, 1024)) : (
|
|
932
|
+
}, 1024)) : (v(), z(j, {
|
|
933
933
|
key: 1,
|
|
934
934
|
gray: "",
|
|
935
935
|
small: "",
|
|
936
936
|
medium: ""
|
|
937
937
|
}, {
|
|
938
|
-
default:
|
|
938
|
+
default: $(() => [
|
|
939
939
|
M(G(l.text), 1)
|
|
940
940
|
]),
|
|
941
941
|
_: 2
|
|
@@ -945,25 +945,25 @@ const ne = /* @__PURE__ */ Z({
|
|
|
945
945
|
}, [
|
|
946
946
|
l.from !== "system" ? {
|
|
947
947
|
name: "avatar",
|
|
948
|
-
fn:
|
|
949
|
-
|
|
950
|
-
|
|
948
|
+
fn: $(() => [
|
|
949
|
+
r[u + 1]?.from !== l.from ? (v(), B("div", On, [
|
|
950
|
+
T("img", {
|
|
951
951
|
class: "yu-rounded-full yu-w-full yu-h-full yu-object-contain",
|
|
952
|
-
src:
|
|
953
|
-
}, null, 8,
|
|
954
|
-
])) : (
|
|
952
|
+
src: i(l.from)
|
|
953
|
+
}, null, 8, Ln)
|
|
954
|
+
])) : (v(), B("div", Rn))
|
|
955
955
|
]),
|
|
956
956
|
key: "0"
|
|
957
957
|
} : void 0,
|
|
958
958
|
l.from !== "system" ? {
|
|
959
959
|
name: "trailing",
|
|
960
|
-
fn:
|
|
961
|
-
F(
|
|
960
|
+
fn: $(() => [
|
|
961
|
+
F(j, {
|
|
962
962
|
gray: "",
|
|
963
963
|
"extra-small": "",
|
|
964
964
|
medium: ""
|
|
965
965
|
}, {
|
|
966
|
-
default:
|
|
966
|
+
default: $(() => [...a[0] || (a[0] = [
|
|
967
967
|
M("12:58", -1)
|
|
968
968
|
])]),
|
|
969
969
|
_: 1
|
|
@@ -972,22 +972,22 @@ const ne = /* @__PURE__ */ Z({
|
|
|
972
972
|
key: "1"
|
|
973
973
|
} : void 0
|
|
974
974
|
]), 1032, ["primary", "secondary", "tertiary"])), 64)),
|
|
975
|
-
|
|
975
|
+
a[1] || (a[1] = T("div", { class: "yu-w-full yu-h-12" }, null, -1))
|
|
976
976
|
]),
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
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",
|
|
980
980
|
placeholder: "Escreva uma mensagem..."
|
|
981
981
|
}, null, -1)),
|
|
982
|
-
|
|
983
|
-
F(
|
|
982
|
+
T("div", Mn, [
|
|
983
|
+
F(_e, {
|
|
984
984
|
icon: "",
|
|
985
985
|
ghost: "",
|
|
986
986
|
small: ""
|
|
987
987
|
}, {
|
|
988
|
-
icon:
|
|
988
|
+
icon: $(() => [
|
|
989
989
|
F(ne, { class: "yu-rotate-45" }, {
|
|
990
|
-
default:
|
|
990
|
+
default: $(() => [...a[2] || (a[2] = [
|
|
991
991
|
M("attach_file", -1)
|
|
992
992
|
])]),
|
|
993
993
|
_: 1
|
|
@@ -995,13 +995,13 @@ const ne = /* @__PURE__ */ Z({
|
|
|
995
995
|
]),
|
|
996
996
|
_: 1
|
|
997
997
|
}),
|
|
998
|
-
F(
|
|
998
|
+
F(_e, {
|
|
999
999
|
icon: "",
|
|
1000
1000
|
small: ""
|
|
1001
1001
|
}, {
|
|
1002
|
-
icon:
|
|
1002
|
+
icon: $(() => [
|
|
1003
1003
|
F(ne, null, {
|
|
1004
|
-
default:
|
|
1004
|
+
default: $(() => [...a[3] || (a[3] = [
|
|
1005
1005
|
M("send", -1)
|
|
1006
1006
|
])]),
|
|
1007
1007
|
_: 1
|
|
@@ -1013,13 +1013,70 @@ const ne = /* @__PURE__ */ Z({
|
|
|
1013
1013
|
])
|
|
1014
1014
|
]));
|
|
1015
1015
|
}
|
|
1016
|
-
}),
|
|
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 = {
|
|
1017
1074
|
key: 0,
|
|
1018
1075
|
class: "yu-flex yu-items-center yu-w-fit yu-justify-center yu-h-0"
|
|
1019
|
-
},
|
|
1076
|
+
}, In = ["src"], Dn = {
|
|
1020
1077
|
key: 1,
|
|
1021
1078
|
class: "yu-flex yu-flex-col yu-items-center yu-justify-start yu-gap-2 yu-px-6 yu-w-full"
|
|
1022
|
-
},
|
|
1079
|
+
}, jn = ["src"], qn = ["src"], ko = /* @__PURE__ */ Z({
|
|
1023
1080
|
__name: "app-screen-page",
|
|
1024
1081
|
props: {
|
|
1025
1082
|
rule: {},
|
|
@@ -1027,128 +1084,129 @@ const ne = /* @__PURE__ */ Z({
|
|
|
1027
1084
|
},
|
|
1028
1085
|
emits: ["edge-click"],
|
|
1029
1086
|
setup(e, { emit: t }) {
|
|
1030
|
-
const o = e, n = t, { history:
|
|
1031
|
-
return (l, u) => (
|
|
1032
|
-
|
|
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)),
|
|
1033
1090
|
F(me, {
|
|
1034
1091
|
class: "yu-px-6 yu-w-full",
|
|
1035
1092
|
col: "",
|
|
1036
1093
|
center: "",
|
|
1037
1094
|
"gap-base": ""
|
|
1038
1095
|
}, {
|
|
1039
|
-
default:
|
|
1040
|
-
|
|
1096
|
+
default: $(() => [
|
|
1097
|
+
a.value?.logo ? (v(), B("img", {
|
|
1041
1098
|
key: 0,
|
|
1042
1099
|
class: "yu-w-10 yu-h-10 yu-object-contain",
|
|
1043
|
-
src:
|
|
1100
|
+
src: a.value.logo,
|
|
1044
1101
|
alt: ""
|
|
1045
|
-
}, null, 8,
|
|
1046
|
-
|
|
1102
|
+
}, null, 8, In)) : R("", !0),
|
|
1103
|
+
a.value?.eyebrow ? (v(), z(j, {
|
|
1047
1104
|
key: 1,
|
|
1048
1105
|
class: "yu-text-center yu-uppercase yu-tracking-widest yu-leading-none",
|
|
1049
1106
|
"extra-small": "",
|
|
1050
|
-
|
|
1107
|
+
gray: "",
|
|
1108
|
+
mono: ""
|
|
1051
1109
|
}, {
|
|
1052
|
-
default:
|
|
1053
|
-
M(G(
|
|
1110
|
+
default: $(() => [
|
|
1111
|
+
M(G(a.value.eyebrow), 1)
|
|
1054
1112
|
]),
|
|
1055
1113
|
_: 1
|
|
1056
|
-
})) :
|
|
1057
|
-
|
|
1114
|
+
})) : R("", !0),
|
|
1115
|
+
a.value?.title ? (v(), z(j, {
|
|
1058
1116
|
key: 2,
|
|
1059
1117
|
class: "yu-text-center",
|
|
1060
1118
|
"extra-large": "",
|
|
1061
1119
|
semibold: ""
|
|
1062
1120
|
}, {
|
|
1063
|
-
default:
|
|
1064
|
-
M(G(
|
|
1121
|
+
default: $(() => [
|
|
1122
|
+
M(G(a.value.title), 1)
|
|
1065
1123
|
]),
|
|
1066
1124
|
_: 1
|
|
1067
|
-
})) :
|
|
1068
|
-
|
|
1125
|
+
})) : R("", !0),
|
|
1126
|
+
a.value?.subtitle ? (v(), z(j, {
|
|
1069
1127
|
key: 3,
|
|
1070
1128
|
class: "yu-w-64 yu-text-center",
|
|
1071
1129
|
small: "",
|
|
1072
1130
|
gray: ""
|
|
1073
1131
|
}, {
|
|
1074
|
-
default:
|
|
1075
|
-
M(G(
|
|
1132
|
+
default: $(() => [
|
|
1133
|
+
M(G(a.value.subtitle), 1)
|
|
1076
1134
|
]),
|
|
1077
1135
|
_: 1
|
|
1078
|
-
})) :
|
|
1136
|
+
})) : R("", !0)
|
|
1079
1137
|
]),
|
|
1080
1138
|
_: 1
|
|
1081
1139
|
}),
|
|
1082
|
-
|
|
1083
|
-
(
|
|
1140
|
+
s.value.length ? (v(), B("div", Dn, [
|
|
1141
|
+
(v(!0), B(we, null, Te(s.value.slice(0, 3), (f) => (v(), z(_e, {
|
|
1084
1142
|
class: "hover:yu-translate-x-1 yu-max-w-[25rem]",
|
|
1085
|
-
key:
|
|
1143
|
+
key: f.id,
|
|
1086
1144
|
outline: "",
|
|
1087
1145
|
fluid: "",
|
|
1088
|
-
onClick: (d) => n("edge-click",
|
|
1089
|
-
},
|
|
1090
|
-
trailing:
|
|
1146
|
+
onClick: (d) => n("edge-click", f)
|
|
1147
|
+
}, mt({
|
|
1148
|
+
trailing: $(() => [
|
|
1091
1149
|
u[0] || (u[0] = M("chevron_right", -1))
|
|
1092
1150
|
]),
|
|
1093
|
-
default:
|
|
1094
|
-
M(G(
|
|
1151
|
+
default: $(() => [
|
|
1152
|
+
M(G(f.name), 1)
|
|
1095
1153
|
]),
|
|
1096
1154
|
_: 2
|
|
1097
1155
|
}, [
|
|
1098
|
-
|
|
1156
|
+
f.settings?.body?.logo ? {
|
|
1099
1157
|
name: "icon",
|
|
1100
|
-
fn:
|
|
1101
|
-
|
|
1158
|
+
fn: $(() => [
|
|
1159
|
+
T("img", {
|
|
1102
1160
|
class: "yu-w-4 yu-h-4 yu-object-contain",
|
|
1103
|
-
src:
|
|
1161
|
+
src: f.settings.body.logo,
|
|
1104
1162
|
alt: ""
|
|
1105
|
-
}, null, 8,
|
|
1163
|
+
}, null, 8, jn)
|
|
1106
1164
|
]),
|
|
1107
1165
|
key: "0"
|
|
1108
1166
|
} : void 0
|
|
1109
1167
|
]), 1032, ["onClick"]))), 128)),
|
|
1110
|
-
|
|
1111
|
-
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 }])
|
|
1112
1170
|
}, [
|
|
1113
|
-
(
|
|
1171
|
+
(v(!0), B(we, null, Te(s.value.slice(3), (f) => (v(), B("div", {
|
|
1114
1172
|
class: "yu-flex yu-flex-col yu-items-center yu-gap-2",
|
|
1115
|
-
key:
|
|
1173
|
+
key: f.id
|
|
1116
1174
|
}, [
|
|
1117
|
-
F(
|
|
1175
|
+
F(_e, {
|
|
1118
1176
|
outline: "",
|
|
1119
1177
|
icon: "",
|
|
1120
|
-
onClick: (d) => n("edge-click",
|
|
1121
|
-
},
|
|
1122
|
-
|
|
1178
|
+
onClick: (d) => n("edge-click", f)
|
|
1179
|
+
}, mt({ _: 2 }, [
|
|
1180
|
+
f.settings?.body?.logo ? {
|
|
1123
1181
|
name: "icon",
|
|
1124
|
-
fn:
|
|
1125
|
-
|
|
1182
|
+
fn: $(() => [
|
|
1183
|
+
T("img", {
|
|
1126
1184
|
class: "yu-w-5 yu-h-5 yu-object-contain",
|
|
1127
|
-
src:
|
|
1185
|
+
src: f.settings.body.logo,
|
|
1128
1186
|
alt: ""
|
|
1129
|
-
}, null, 8,
|
|
1187
|
+
}, null, 8, qn)
|
|
1130
1188
|
]),
|
|
1131
1189
|
key: "0"
|
|
1132
1190
|
} : void 0
|
|
1133
1191
|
]), 1032, ["onClick"]),
|
|
1134
|
-
F(
|
|
1192
|
+
F(j, {
|
|
1135
1193
|
class: "yu-w-20 yu-text-center yu-leading-3 yu-line-clamp-2",
|
|
1136
1194
|
"extra-small": ""
|
|
1137
1195
|
}, {
|
|
1138
|
-
default:
|
|
1139
|
-
M(G(
|
|
1196
|
+
default: $(() => [
|
|
1197
|
+
M(G(f.name), 1)
|
|
1140
1198
|
]),
|
|
1141
1199
|
_: 2
|
|
1142
1200
|
}, 1024)
|
|
1143
1201
|
]))), 128))
|
|
1144
1202
|
], 2)
|
|
1145
|
-
])) :
|
|
1203
|
+
])) : R("", !0)
|
|
1146
1204
|
]));
|
|
1147
1205
|
}
|
|
1148
|
-
}),
|
|
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 = {
|
|
1149
1207
|
key: 0,
|
|
1150
1208
|
class: "yu-flex yu-shrink-0 yu-items-center yu-w-fit yu-justify-center yu-px-6 yu-py-4"
|
|
1151
|
-
},
|
|
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({
|
|
1152
1210
|
inheritAttrs: !1,
|
|
1153
1211
|
__name: "app-widget-view",
|
|
1154
1212
|
props: {
|
|
@@ -1158,150 +1216,156 @@ const ne = /* @__PURE__ */ Z({
|
|
|
1158
1216
|
},
|
|
1159
1217
|
emits: ["edge-click", "submit", "close", "back"],
|
|
1160
1218
|
setup(e, { emit: t }) {
|
|
1161
|
-
const o = e, n = t, { history:
|
|
1162
|
-
const
|
|
1163
|
-
return
|
|
1164
|
-
},
|
|
1165
|
-
const A = new Map(
|
|
1166
|
-
return (
|
|
1167
|
-
const
|
|
1168
|
-
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] : [];
|
|
1169
1227
|
});
|
|
1170
|
-
},
|
|
1171
|
-
const
|
|
1172
|
-
return
|
|
1173
|
-
}),
|
|
1174
|
-
identification:
|
|
1175
|
-
service:
|
|
1176
|
-
screen:
|
|
1177
|
-
},
|
|
1178
|
-
const
|
|
1179
|
-
return
|
|
1180
|
-
}),
|
|
1181
|
-
return (
|
|
1182
|
-
class: N(["
|
|
1183
|
-
"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))
|
|
1184
1243
|
}, [
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
class: "yu-w-9 yu-h-9 yu-object-contain yu-rounded-lg yu-shrink-0",
|
|
1190
|
-
src: c.value.settings.header.logo,
|
|
1191
|
-
alt: ""
|
|
1192
|
-
}, null, 8, qn)) : O("", !0),
|
|
1193
|
-
S("div", Vn, [
|
|
1194
|
-
c.value.settings?.header?.title ? (g(), z(q, {
|
|
1244
|
+
T("div", Wn, [
|
|
1245
|
+
T("div", Gn, [
|
|
1246
|
+
T("div", Zn, [
|
|
1247
|
+
c.value.settings?.header?.logo ? (v(), B("img", {
|
|
1195
1248
|
key: 0,
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
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)
|
|
1215
1294
|
]),
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
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)
|
|
1227
1361
|
])]),
|
|
1228
1362
|
_: 1
|
|
1229
1363
|
})
|
|
1230
|
-
])
|
|
1231
|
-
]),
|
|
1232
|
-
S("div", Wn, [
|
|
1233
|
-
F(co, {
|
|
1234
|
-
name: "page-transition",
|
|
1235
|
-
mode: "out-in"
|
|
1236
|
-
}, {
|
|
1237
|
-
default: _(() => [
|
|
1238
|
-
(g(), C("div", {
|
|
1239
|
-
class: "yu-flex yu-flex-col yu-w-full yu-h-full yu-min-h-0",
|
|
1240
|
-
key: c.value.id
|
|
1241
|
-
}, [
|
|
1242
|
-
y.value ? (g(), C("div", Gn, [
|
|
1243
|
-
S("div", {
|
|
1244
|
-
class: "yu-flex yu-items-center yu-w-fit yu-justify-center yu-cursor-pointer yu-group",
|
|
1245
|
-
onClick: w[1] || (w[1] = (A) => n("back"))
|
|
1246
|
-
}, [
|
|
1247
|
-
F(ne, {
|
|
1248
|
-
class: "yu-transition-colors group-hover:!yu-text-gray-700",
|
|
1249
|
-
small: "",
|
|
1250
|
-
gray: ""
|
|
1251
|
-
}, {
|
|
1252
|
-
default: _(() => [...w[6] || (w[6] = [
|
|
1253
|
-
M("chevron_left", -1)
|
|
1254
|
-
])]),
|
|
1255
|
-
_: 1
|
|
1256
|
-
}),
|
|
1257
|
-
F(q, {
|
|
1258
|
-
class: "yu-transition-colors group-hover:!yu-text-gray-700",
|
|
1259
|
-
"extra-small": "",
|
|
1260
|
-
medium: "",
|
|
1261
|
-
gray: ""
|
|
1262
|
-
}, {
|
|
1263
|
-
default: _(() => [...w[7] || (w[7] = [
|
|
1264
|
-
M("Voltar", -1)
|
|
1265
|
-
])]),
|
|
1266
|
-
_: 1
|
|
1267
|
-
})
|
|
1268
|
-
])
|
|
1269
|
-
])) : O("", !0),
|
|
1270
|
-
S("div", Zn, [
|
|
1271
|
-
b.value ? (g(), z(uo(b.value), {
|
|
1272
|
-
key: 0,
|
|
1273
|
-
rule: c.value,
|
|
1274
|
-
edges: d.value,
|
|
1275
|
-
onSubmit: w[2] || (w[2] = (A) => n("submit", A)),
|
|
1276
|
-
onBack: w[3] || (w[3] = (A) => n("back")),
|
|
1277
|
-
onEdgeClick: w[4] || (w[4] = (A) => n("edge-click", A))
|
|
1278
|
-
}, null, 40, ["rule", "edges"])) : O("", !0)
|
|
1279
|
-
])
|
|
1280
|
-
]))
|
|
1281
|
-
]),
|
|
1282
|
-
_: 1
|
|
1283
|
-
})
|
|
1284
|
-
]),
|
|
1285
|
-
S("div", Un, [
|
|
1286
|
-
S("img", {
|
|
1287
|
-
class: "yu-w-3 yu-h-2",
|
|
1288
|
-
src: R(In),
|
|
1289
|
-
alt: "Opens"
|
|
1290
|
-
}, null, 8, Xn),
|
|
1291
|
-
F(q, {
|
|
1292
|
-
class: "!yu-text-xxs",
|
|
1293
|
-
gray: ""
|
|
1294
|
-
}, {
|
|
1295
|
-
default: _(() => [...w[8] || (w[8] = [
|
|
1296
|
-
M("Powered By", -1),
|
|
1297
|
-
S("b", { class: "yu-ml-1" }, "Opens", -1)
|
|
1298
|
-
])]),
|
|
1299
|
-
_: 1
|
|
1300
|
-
})
|
|
1364
|
+
])
|
|
1301
1365
|
])
|
|
1302
|
-
],
|
|
1366
|
+
], 6));
|
|
1303
1367
|
}
|
|
1304
|
-
}),
|
|
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({
|
|
1305
1369
|
__name: "app-text-input",
|
|
1306
1370
|
props: {
|
|
1307
1371
|
modelValue: { default: "" },
|
|
@@ -1320,177 +1384,170 @@ const ne = /* @__PURE__ */ Z({
|
|
|
1320
1384
|
},
|
|
1321
1385
|
emits: ["update:modelValue", "keyup-enter"],
|
|
1322
1386
|
setup(e, { expose: t, emit: o }) {
|
|
1323
|
-
const n = e,
|
|
1324
|
-
function
|
|
1325
|
-
return !!
|
|
1387
|
+
const n = e, r = o, i = p(() => Ve());
|
|
1388
|
+
function s(A) {
|
|
1389
|
+
return !!i.value[A];
|
|
1326
1390
|
}
|
|
1327
|
-
const
|
|
1328
|
-
function
|
|
1329
|
-
if (!n.maskFunction) return
|
|
1391
|
+
const a = q(""), l = q(!1), u = q(!1);
|
|
1392
|
+
function f(A) {
|
|
1393
|
+
if (!n.maskFunction) return A;
|
|
1330
1394
|
try {
|
|
1331
|
-
const
|
|
1332
|
-
return typeof
|
|
1395
|
+
const b = n.maskFunction(A);
|
|
1396
|
+
return typeof b == "string" ? b : A;
|
|
1333
1397
|
} catch {
|
|
1334
|
-
return
|
|
1398
|
+
return A;
|
|
1335
1399
|
}
|
|
1336
1400
|
}
|
|
1337
1401
|
qe(
|
|
1338
1402
|
() => n.modelValue,
|
|
1339
|
-
(
|
|
1340
|
-
if (
|
|
1341
|
-
|
|
1403
|
+
(A) => {
|
|
1404
|
+
if (A == null) {
|
|
1405
|
+
a.value = "";
|
|
1342
1406
|
return;
|
|
1343
1407
|
}
|
|
1344
|
-
|
|
1408
|
+
a.value = n.maskFunction ? f(A) : A;
|
|
1345
1409
|
},
|
|
1346
1410
|
{ immediate: !0 }
|
|
1347
1411
|
);
|
|
1348
1412
|
function d() {
|
|
1349
|
-
return !(l.value ||
|
|
1413
|
+
return !(l.value || a.value);
|
|
1350
1414
|
}
|
|
1351
|
-
const { height:
|
|
1352
|
-
function
|
|
1353
|
-
const
|
|
1354
|
-
|
|
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);
|
|
1355
1419
|
}
|
|
1356
1420
|
return t({
|
|
1357
1421
|
focus: l,
|
|
1358
|
-
content:
|
|
1359
|
-
}), (
|
|
1360
|
-
class: N([
|
|
1422
|
+
content: a
|
|
1423
|
+
}), (A, b) => (v(), z(me, {
|
|
1424
|
+
class: N([O(m)]),
|
|
1361
1425
|
col: "",
|
|
1362
1426
|
"gap-none": ""
|
|
1363
1427
|
}, {
|
|
1364
|
-
default:
|
|
1428
|
+
default: $(() => [
|
|
1365
1429
|
F(me, {
|
|
1366
1430
|
col: "",
|
|
1367
1431
|
"gap-sm": ""
|
|
1368
1432
|
}, {
|
|
1369
|
-
default:
|
|
1370
|
-
|
|
1433
|
+
default: $(() => [
|
|
1434
|
+
s("label") ? (v(), z(j, {
|
|
1371
1435
|
key: 0,
|
|
1372
1436
|
small: "",
|
|
1373
1437
|
medium: ""
|
|
1374
1438
|
}, {
|
|
1375
|
-
default:
|
|
1376
|
-
|
|
1439
|
+
default: $(() => [
|
|
1440
|
+
V(A.$slots, "label")
|
|
1377
1441
|
]),
|
|
1378
1442
|
_: 3
|
|
1379
|
-
})) :
|
|
1380
|
-
|
|
1381
|
-
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]]),
|
|
1382
1446
|
"data-testid": "app-text-input"
|
|
1383
1447
|
}, [
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
!e.loading &&
|
|
1448
|
+
T("div", or, [
|
|
1449
|
+
T("div", nr, [
|
|
1450
|
+
!e.loading && s("icon") ? (v(), z(ne, {
|
|
1387
1451
|
key: 0,
|
|
1388
1452
|
small: ""
|
|
1389
1453
|
}, {
|
|
1390
|
-
default:
|
|
1391
|
-
|
|
1454
|
+
default: $(() => [
|
|
1455
|
+
V(A.$slots, "icon")
|
|
1392
1456
|
]),
|
|
1393
1457
|
_: 3
|
|
1394
|
-
})) :
|
|
1395
|
-
e.loading ? (
|
|
1458
|
+
})) : R("", !0),
|
|
1459
|
+
e.loading ? (v(), z(ne, {
|
|
1396
1460
|
key: 1,
|
|
1397
1461
|
class: "yu-animate-spin",
|
|
1398
1462
|
small: "",
|
|
1399
1463
|
outlined: ""
|
|
1400
1464
|
}, {
|
|
1401
|
-
default:
|
|
1465
|
+
default: $(() => [...b[4] || (b[4] = [
|
|
1402
1466
|
M("progress_activity", -1)
|
|
1403
1467
|
])]),
|
|
1404
1468
|
_: 1
|
|
1405
|
-
})) :
|
|
1469
|
+
})) : R("", !0)
|
|
1406
1470
|
]),
|
|
1407
|
-
F(
|
|
1408
|
-
class: N(["yu-py-1 yu-transition", [
|
|
1471
|
+
F(j, {
|
|
1472
|
+
class: N(["yu-py-1 yu-transition", [h.value]]),
|
|
1409
1473
|
small: "",
|
|
1410
1474
|
medium: "",
|
|
1411
1475
|
gray: ""
|
|
1412
1476
|
}, {
|
|
1413
|
-
default:
|
|
1414
|
-
|
|
1477
|
+
default: $(() => [
|
|
1478
|
+
V(A.$slots, "default")
|
|
1415
1479
|
]),
|
|
1416
1480
|
_: 3
|
|
1417
1481
|
}, 8, ["class"])
|
|
1418
1482
|
]),
|
|
1419
|
-
|
|
1420
|
-
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", [
|
|
1421
|
-
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,
|
|
1422
1486
|
type: e.passwordToggle && u.value ? "text" : e.type,
|
|
1423
1487
|
disabled: e.disabled || e.loading,
|
|
1424
1488
|
maxlength: e.maxLength,
|
|
1425
|
-
onInput:
|
|
1426
|
-
onFocus:
|
|
1427
|
-
onBlur:
|
|
1428
|
-
onKeyup:
|
|
1429
|
-
}, null, 42,
|
|
1430
|
-
|
|
1431
|
-
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, {
|
|
1432
1496
|
key: 0,
|
|
1433
1497
|
small: ""
|
|
1434
1498
|
}, {
|
|
1435
|
-
default:
|
|
1436
|
-
M(G(`${
|
|
1499
|
+
default: $(() => [
|
|
1500
|
+
M(G(`${a.value.length} / ${e.maxLength}`), 1)
|
|
1437
1501
|
]),
|
|
1438
1502
|
_: 1
|
|
1439
|
-
})) :
|
|
1440
|
-
e.type === "password" && e.passwordToggle ? (
|
|
1503
|
+
})) : R("", !0),
|
|
1504
|
+
e.type === "password" && e.passwordToggle ? (v(), B("button", {
|
|
1441
1505
|
key: 1,
|
|
1442
1506
|
class: "yu-bg-transparent yu-border-0 yu-p-0 yu-cursor-pointer yu-flex yu-items-center",
|
|
1443
1507
|
type: "button",
|
|
1444
1508
|
tabindex: "-1",
|
|
1445
|
-
onClick:
|
|
1509
|
+
onClick: b[3] || (b[3] = (P) => u.value = !u.value)
|
|
1446
1510
|
}, [
|
|
1447
1511
|
F(ne, {
|
|
1448
1512
|
small: "",
|
|
1449
1513
|
gray: ""
|
|
1450
1514
|
}, {
|
|
1451
|
-
default:
|
|
1515
|
+
default: $(() => [
|
|
1452
1516
|
M(G(u.value ? "visibility_off" : "visibility"), 1)
|
|
1453
1517
|
]),
|
|
1454
1518
|
_: 1
|
|
1455
1519
|
})
|
|
1456
|
-
])) :
|
|
1457
|
-
|
|
1520
|
+
])) : R("", !0),
|
|
1521
|
+
V(A.$slots, "suffix")
|
|
1458
1522
|
])
|
|
1459
1523
|
], 2)
|
|
1460
1524
|
]),
|
|
1461
1525
|
_: 3
|
|
1462
1526
|
}),
|
|
1463
|
-
|
|
1527
|
+
s("feedback") ? (v(), B("div", {
|
|
1464
1528
|
key: 0,
|
|
1465
|
-
class: N(["yu-mt-1", [
|
|
1529
|
+
class: N(["yu-mt-1", [g.value]])
|
|
1466
1530
|
}, [
|
|
1467
|
-
|
|
1468
|
-
], 2)) :
|
|
1531
|
+
V(A.$slots, "feedback")
|
|
1532
|
+
], 2)) : R("", !0)
|
|
1469
1533
|
]),
|
|
1470
1534
|
_: 3
|
|
1471
1535
|
}, 8, ["class"]));
|
|
1472
1536
|
}
|
|
1473
|
-
}),
|
|
1474
|
-
isLightHex:
|
|
1475
|
-
const o = t.replace("#", "");
|
|
1476
|
-
if (o.length !== 6) return !1;
|
|
1477
|
-
const n = parseInt(o.slice(0, 2), 16), i = parseInt(o.slice(2, 4), 16), r = parseInt(o.slice(4, 6), 16);
|
|
1478
|
-
return (n * 299 + i * 587 + r * 114) / 1e3 > 160;
|
|
1479
|
-
}
|
|
1480
|
-
}), ni = () => {
|
|
1481
|
-
const { isLightHex: e } = oi();
|
|
1537
|
+
}), ar = () => {
|
|
1538
|
+
const { isLightHex: e, normalizeHex: t } = xo();
|
|
1482
1539
|
return {
|
|
1483
|
-
getOffset: (i,
|
|
1484
|
-
const a = `${
|
|
1540
|
+
getOffset: (i, s) => {
|
|
1541
|
+
const a = `${s.x}px`, l = `${s.y}px`;
|
|
1485
1542
|
switch (i) {
|
|
1486
1543
|
case "bottom-left":
|
|
1487
|
-
return { bottom:
|
|
1544
|
+
return { bottom: l, left: a };
|
|
1488
1545
|
case "top-left":
|
|
1489
|
-
return { top:
|
|
1546
|
+
return { top: l, left: a };
|
|
1490
1547
|
case "top-right":
|
|
1491
|
-
return { top:
|
|
1548
|
+
return { top: l, right: a };
|
|
1492
1549
|
default:
|
|
1493
|
-
return { bottom:
|
|
1550
|
+
return { bottom: l, right: a };
|
|
1494
1551
|
}
|
|
1495
1552
|
},
|
|
1496
1553
|
getPosition: (i) => {
|
|
@@ -1505,13 +1562,16 @@ const ne = /* @__PURE__ */ Z({
|
|
|
1505
1562
|
return "bottom right";
|
|
1506
1563
|
}
|
|
1507
1564
|
},
|
|
1508
|
-
getTone: (i) =>
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1565
|
+
getTone: (i) => {
|
|
1566
|
+
const s = t(i);
|
|
1567
|
+
return {
|
|
1568
|
+
backgroundImage: "none",
|
|
1569
|
+
backgroundColor: s,
|
|
1570
|
+
color: e(s) ? "#1c1917" : "#ffffff"
|
|
1571
|
+
};
|
|
1572
|
+
}
|
|
1513
1573
|
};
|
|
1514
|
-
},
|
|
1574
|
+
}, lr = /* @__PURE__ */ Z({
|
|
1515
1575
|
__name: "app-widget",
|
|
1516
1576
|
props: {
|
|
1517
1577
|
workflow: {},
|
|
@@ -1520,80 +1580,74 @@ const ne = /* @__PURE__ */ Z({
|
|
|
1520
1580
|
},
|
|
1521
1581
|
emits: ["edge-click", "submit", "close", "back", "open"],
|
|
1522
1582
|
setup(e, { emit: t }) {
|
|
1523
|
-
const o = e, n = t,
|
|
1524
|
-
if (!(
|
|
1525
|
-
return
|
|
1526
|
-
}), m = p(() =>
|
|
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(() => ({
|
|
1527
1587
|
workflow: o.workflow,
|
|
1528
1588
|
config: o.config,
|
|
1529
1589
|
fullscreen: o.fullscreen
|
|
1530
|
-
})),
|
|
1590
|
+
})), g = p(() => ({
|
|
1531
1591
|
style: l(c.value.primaryColor),
|
|
1532
|
-
small:
|
|
1533
|
-
large:
|
|
1534
|
-
logo:
|
|
1535
|
-
label:
|
|
1536
|
-
})),
|
|
1537
|
-
|
|
1538
|
-
},
|
|
1539
|
-
|
|
1540
|
-
},
|
|
1541
|
-
|
|
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;
|
|
1542
1602
|
};
|
|
1543
1603
|
return qe(
|
|
1544
1604
|
() => o.config.configurations.general.defaultBehavior,
|
|
1545
|
-
(
|
|
1546
|
-
|
|
1605
|
+
(S) => {
|
|
1606
|
+
S === "active" ? h() : w();
|
|
1547
1607
|
}
|
|
1548
|
-
), (
|
|
1549
|
-
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" : ""]]),
|
|
1550
1610
|
"data-testid": "app-widget",
|
|
1551
|
-
style:
|
|
1611
|
+
style: he([{ "--widget-origin": m.value }, y.value, O(u)])
|
|
1552
1612
|
}, [
|
|
1553
|
-
F(
|
|
1613
|
+
F(fo, {
|
|
1554
1614
|
name: "widget",
|
|
1555
|
-
onAfterLeave:
|
|
1615
|
+
onAfterLeave: C
|
|
1556
1616
|
}, {
|
|
1557
|
-
default:
|
|
1558
|
-
|
|
1559
|
-
onClose:
|
|
1560
|
-
onBack:
|
|
1561
|
-
onSubmit:
|
|
1562
|
-
onEdgeClick:
|
|
1563
|
-
}), 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)
|
|
1564
1624
|
]),
|
|
1565
1625
|
_: 1
|
|
1566
1626
|
}),
|
|
1567
|
-
|
|
1627
|
+
i.value ? (v(), z(vo, {
|
|
1568
1628
|
key: 0,
|
|
1569
|
-
style:
|
|
1570
|
-
small:
|
|
1571
|
-
large:
|
|
1572
|
-
logo:
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
h.value.label ? (g(), C(fe, { key: 0 }, [
|
|
1577
|
-
M(G(h.value.label), 1)
|
|
1578
|
-
], 64)) : O("", !0)
|
|
1579
|
-
]),
|
|
1580
|
-
_: 1
|
|
1581
|
-
}, 8, ["style", "small", "large", "logo"])) : O("", !0)
|
|
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)
|
|
1582
1636
|
], 6));
|
|
1583
1637
|
}
|
|
1584
|
-
}),
|
|
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 = {
|
|
1585
1639
|
left: "right",
|
|
1586
1640
|
right: "left",
|
|
1587
1641
|
bottom: "top",
|
|
1588
1642
|
top: "bottom"
|
|
1589
|
-
},
|
|
1643
|
+
}, pr = {
|
|
1590
1644
|
start: "end",
|
|
1591
1645
|
end: "start"
|
|
1592
1646
|
};
|
|
1593
|
-
function
|
|
1594
|
-
return
|
|
1647
|
+
function gt(e, t, o) {
|
|
1648
|
+
return ke(e, Fe(t, o));
|
|
1595
1649
|
}
|
|
1596
|
-
function
|
|
1650
|
+
function Ae(e, t) {
|
|
1597
1651
|
return typeof e == "function" ? e(t) : e;
|
|
1598
1652
|
}
|
|
1599
1653
|
function de(e) {
|
|
@@ -1602,54 +1656,54 @@ function de(e) {
|
|
|
1602
1656
|
function se(e) {
|
|
1603
1657
|
return e.split("-")[1];
|
|
1604
1658
|
}
|
|
1605
|
-
function
|
|
1659
|
+
function Ao(e) {
|
|
1606
1660
|
return e === "x" ? "y" : "x";
|
|
1607
1661
|
}
|
|
1608
|
-
function
|
|
1662
|
+
function At(e) {
|
|
1609
1663
|
return e === "y" ? "height" : "width";
|
|
1610
1664
|
}
|
|
1611
|
-
const
|
|
1665
|
+
const fr = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
1612
1666
|
function pe(e) {
|
|
1613
|
-
return
|
|
1667
|
+
return fr.has(de(e)) ? "y" : "x";
|
|
1614
1668
|
}
|
|
1615
|
-
function
|
|
1616
|
-
return
|
|
1669
|
+
function Ct(e) {
|
|
1670
|
+
return Ao(pe(e));
|
|
1617
1671
|
}
|
|
1618
|
-
function
|
|
1672
|
+
function Co(e, t, o) {
|
|
1619
1673
|
o === void 0 && (o = !1);
|
|
1620
|
-
const n = se(e),
|
|
1621
|
-
let
|
|
1622
|
-
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)];
|
|
1623
1677
|
}
|
|
1624
|
-
function
|
|
1625
|
-
const t =
|
|
1626
|
-
return [
|
|
1678
|
+
function yr(e) {
|
|
1679
|
+
const t = Xe(e);
|
|
1680
|
+
return [Ue(e), t, Ue(t)];
|
|
1627
1681
|
}
|
|
1628
|
-
function
|
|
1629
|
-
return e.replace(/start|end/g, (t) =>
|
|
1682
|
+
function Ue(e) {
|
|
1683
|
+
return e.replace(/start|end/g, (t) => pr[t]);
|
|
1630
1684
|
}
|
|
1631
|
-
const Mt = ["left", "right"], Et = ["right", "left"],
|
|
1632
|
-
function
|
|
1685
|
+
const Mt = ["left", "right"], Et = ["right", "left"], hr = ["top", "bottom"], mr = ["bottom", "top"];
|
|
1686
|
+
function gr(e, t, o) {
|
|
1633
1687
|
switch (e) {
|
|
1634
1688
|
case "top":
|
|
1635
1689
|
case "bottom":
|
|
1636
1690
|
return o ? t ? Et : Mt : t ? Mt : Et;
|
|
1637
1691
|
case "left":
|
|
1638
1692
|
case "right":
|
|
1639
|
-
return t ?
|
|
1693
|
+
return t ? hr : mr;
|
|
1640
1694
|
default:
|
|
1641
1695
|
return [];
|
|
1642
1696
|
}
|
|
1643
1697
|
}
|
|
1644
|
-
function
|
|
1645
|
-
const
|
|
1646
|
-
let
|
|
1647
|
-
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;
|
|
1648
1702
|
}
|
|
1649
|
-
function
|
|
1650
|
-
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]);
|
|
1651
1705
|
}
|
|
1652
|
-
function
|
|
1706
|
+
function wr(e) {
|
|
1653
1707
|
return {
|
|
1654
1708
|
top: 0,
|
|
1655
1709
|
right: 0,
|
|
@@ -1658,8 +1712,8 @@ function hi(e) {
|
|
|
1658
1712
|
...e
|
|
1659
1713
|
};
|
|
1660
1714
|
}
|
|
1661
|
-
function
|
|
1662
|
-
return typeof e != "number" ?
|
|
1715
|
+
function So(e) {
|
|
1716
|
+
return typeof e != "number" ? wr(e) : {
|
|
1663
1717
|
top: e,
|
|
1664
1718
|
right: e,
|
|
1665
1719
|
bottom: e,
|
|
@@ -1671,15 +1725,15 @@ function Le(e) {
|
|
|
1671
1725
|
x: t,
|
|
1672
1726
|
y: o,
|
|
1673
1727
|
width: n,
|
|
1674
|
-
height:
|
|
1728
|
+
height: r
|
|
1675
1729
|
} = e;
|
|
1676
1730
|
return {
|
|
1677
1731
|
width: n,
|
|
1678
|
-
height:
|
|
1732
|
+
height: r,
|
|
1679
1733
|
top: o,
|
|
1680
1734
|
left: t,
|
|
1681
1735
|
right: t + n,
|
|
1682
|
-
bottom: o +
|
|
1736
|
+
bottom: o + r,
|
|
1683
1737
|
x: t,
|
|
1684
1738
|
y: o
|
|
1685
1739
|
};
|
|
@@ -1687,20 +1741,20 @@ function Le(e) {
|
|
|
1687
1741
|
function Ht(e, t, o) {
|
|
1688
1742
|
let {
|
|
1689
1743
|
reference: n,
|
|
1690
|
-
floating:
|
|
1744
|
+
floating: r
|
|
1691
1745
|
} = e;
|
|
1692
|
-
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;
|
|
1693
1747
|
let y;
|
|
1694
1748
|
switch (l) {
|
|
1695
1749
|
case "top":
|
|
1696
1750
|
y = {
|
|
1697
|
-
x:
|
|
1698
|
-
y: n.y -
|
|
1751
|
+
x: f,
|
|
1752
|
+
y: n.y - r.height
|
|
1699
1753
|
};
|
|
1700
1754
|
break;
|
|
1701
1755
|
case "bottom":
|
|
1702
1756
|
y = {
|
|
1703
|
-
x:
|
|
1757
|
+
x: f,
|
|
1704
1758
|
y: n.y + n.height
|
|
1705
1759
|
};
|
|
1706
1760
|
break;
|
|
@@ -1712,7 +1766,7 @@ function Ht(e, t, o) {
|
|
|
1712
1766
|
break;
|
|
1713
1767
|
case "left":
|
|
1714
1768
|
y = {
|
|
1715
|
-
x: n.x -
|
|
1769
|
+
x: n.x - r.width,
|
|
1716
1770
|
y: d
|
|
1717
1771
|
};
|
|
1718
1772
|
break;
|
|
@@ -1724,147 +1778,147 @@ function Ht(e, t, o) {
|
|
|
1724
1778
|
}
|
|
1725
1779
|
switch (se(t)) {
|
|
1726
1780
|
case "start":
|
|
1727
|
-
y[
|
|
1781
|
+
y[s] -= c * (o && u ? -1 : 1);
|
|
1728
1782
|
break;
|
|
1729
1783
|
case "end":
|
|
1730
|
-
y[
|
|
1784
|
+
y[s] += c * (o && u ? -1 : 1);
|
|
1731
1785
|
break;
|
|
1732
1786
|
}
|
|
1733
1787
|
return y;
|
|
1734
1788
|
}
|
|
1735
|
-
const
|
|
1789
|
+
const br = async (e, t, o) => {
|
|
1736
1790
|
const {
|
|
1737
1791
|
placement: n = "bottom",
|
|
1738
|
-
strategy:
|
|
1739
|
-
middleware:
|
|
1740
|
-
platform:
|
|
1741
|
-
} = o,
|
|
1742
|
-
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({
|
|
1743
1797
|
reference: e,
|
|
1744
1798
|
floating: t,
|
|
1745
|
-
strategy:
|
|
1799
|
+
strategy: r
|
|
1746
1800
|
}), {
|
|
1747
|
-
x:
|
|
1801
|
+
x: f,
|
|
1748
1802
|
y: d
|
|
1749
|
-
} = Ht(u, n, l),
|
|
1750
|
-
for (let x = 0; x <
|
|
1803
|
+
} = Ht(u, n, l), c = n, y = {}, m = 0;
|
|
1804
|
+
for (let x = 0; x < a.length; x++) {
|
|
1751
1805
|
const {
|
|
1752
|
-
name:
|
|
1753
|
-
fn:
|
|
1754
|
-
} =
|
|
1806
|
+
name: g,
|
|
1807
|
+
fn: h
|
|
1808
|
+
} = a[x], {
|
|
1809
|
+
x: w,
|
|
1810
|
+
y: C,
|
|
1811
|
+
data: S,
|
|
1812
|
+
reset: k
|
|
1813
|
+
} = await h({
|
|
1755
1814
|
x: f,
|
|
1756
|
-
y: w,
|
|
1757
|
-
data: A,
|
|
1758
|
-
reset: P
|
|
1759
|
-
} = await v({
|
|
1760
|
-
x: c,
|
|
1761
1815
|
y: d,
|
|
1762
1816
|
initialPlacement: n,
|
|
1763
|
-
placement:
|
|
1764
|
-
strategy:
|
|
1817
|
+
placement: c,
|
|
1818
|
+
strategy: r,
|
|
1765
1819
|
middlewareData: y,
|
|
1766
1820
|
rects: u,
|
|
1767
|
-
platform:
|
|
1821
|
+
platform: s,
|
|
1768
1822
|
elements: {
|
|
1769
1823
|
reference: e,
|
|
1770
1824
|
floating: t
|
|
1771
1825
|
}
|
|
1772
1826
|
});
|
|
1773
|
-
|
|
1827
|
+
f = w ?? f, d = C ?? d, y = {
|
|
1774
1828
|
...y,
|
|
1775
|
-
[
|
|
1776
|
-
...y[
|
|
1777
|
-
...
|
|
1829
|
+
[g]: {
|
|
1830
|
+
...y[g],
|
|
1831
|
+
...S
|
|
1778
1832
|
}
|
|
1779
|
-
},
|
|
1833
|
+
}, k && m <= 50 && (m++, typeof k == "object" && (k.placement && (c = k.placement), k.rects && (u = k.rects === !0 ? await s.getElementRects({
|
|
1780
1834
|
reference: e,
|
|
1781
1835
|
floating: t,
|
|
1782
|
-
strategy:
|
|
1783
|
-
}) :
|
|
1784
|
-
x:
|
|
1836
|
+
strategy: r
|
|
1837
|
+
}) : k.rects), {
|
|
1838
|
+
x: f,
|
|
1785
1839
|
y: d
|
|
1786
|
-
} = Ht(u,
|
|
1840
|
+
} = Ht(u, c, l)), x = -1);
|
|
1787
1841
|
}
|
|
1788
1842
|
return {
|
|
1789
|
-
x:
|
|
1843
|
+
x: f,
|
|
1790
1844
|
y: d,
|
|
1791
|
-
placement:
|
|
1792
|
-
strategy:
|
|
1845
|
+
placement: c,
|
|
1846
|
+
strategy: r,
|
|
1793
1847
|
middlewareData: y
|
|
1794
1848
|
};
|
|
1795
1849
|
};
|
|
1796
|
-
async function
|
|
1850
|
+
async function tt(e, t) {
|
|
1797
1851
|
var o;
|
|
1798
1852
|
t === void 0 && (t = {});
|
|
1799
1853
|
const {
|
|
1800
1854
|
x: n,
|
|
1801
|
-
y:
|
|
1802
|
-
platform:
|
|
1803
|
-
rects:
|
|
1804
|
-
elements:
|
|
1855
|
+
y: r,
|
|
1856
|
+
platform: i,
|
|
1857
|
+
rects: s,
|
|
1858
|
+
elements: a,
|
|
1805
1859
|
strategy: l
|
|
1806
1860
|
} = e, {
|
|
1807
1861
|
boundary: u = "clippingAncestors",
|
|
1808
|
-
rootBoundary:
|
|
1862
|
+
rootBoundary: f = "viewport",
|
|
1809
1863
|
elementContext: d = "floating",
|
|
1810
|
-
altBoundary:
|
|
1864
|
+
altBoundary: c = !1,
|
|
1811
1865
|
padding: y = 0
|
|
1812
|
-
} =
|
|
1813
|
-
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)),
|
|
1814
1868
|
boundary: u,
|
|
1815
|
-
rootBoundary:
|
|
1869
|
+
rootBoundary: f,
|
|
1816
1870
|
strategy: l
|
|
1817
|
-
})),
|
|
1871
|
+
})), w = d === "floating" ? {
|
|
1818
1872
|
x: n,
|
|
1819
|
-
y:
|
|
1820
|
-
width:
|
|
1821
|
-
height:
|
|
1822
|
-
} :
|
|
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)) || {
|
|
1823
1877
|
x: 1,
|
|
1824
1878
|
y: 1
|
|
1825
1879
|
} : {
|
|
1826
1880
|
x: 1,
|
|
1827
1881
|
y: 1
|
|
1828
|
-
},
|
|
1829
|
-
elements:
|
|
1830
|
-
rect:
|
|
1831
|
-
offsetParent:
|
|
1882
|
+
}, k = Le(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
1883
|
+
elements: a,
|
|
1884
|
+
rect: w,
|
|
1885
|
+
offsetParent: C,
|
|
1832
1886
|
strategy: l
|
|
1833
|
-
}) :
|
|
1887
|
+
}) : w);
|
|
1834
1888
|
return {
|
|
1835
|
-
top: (
|
|
1836
|
-
bottom: (
|
|
1837
|
-
left: (
|
|
1838
|
-
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
|
|
1839
1893
|
};
|
|
1840
1894
|
}
|
|
1841
|
-
const
|
|
1895
|
+
const xr = (e) => ({
|
|
1842
1896
|
name: "arrow",
|
|
1843
1897
|
options: e,
|
|
1844
1898
|
async fn(t) {
|
|
1845
1899
|
const {
|
|
1846
1900
|
x: o,
|
|
1847
1901
|
y: n,
|
|
1848
|
-
placement:
|
|
1849
|
-
rects:
|
|
1850
|
-
platform:
|
|
1851
|
-
elements:
|
|
1902
|
+
placement: r,
|
|
1903
|
+
rects: i,
|
|
1904
|
+
platform: s,
|
|
1905
|
+
elements: a,
|
|
1852
1906
|
middlewareData: l
|
|
1853
1907
|
} = t, {
|
|
1854
1908
|
element: u,
|
|
1855
|
-
padding:
|
|
1856
|
-
} =
|
|
1909
|
+
padding: f = 0
|
|
1910
|
+
} = Ae(e, t) || {};
|
|
1857
1911
|
if (u == null)
|
|
1858
1912
|
return {};
|
|
1859
|
-
const d =
|
|
1913
|
+
const d = So(f), c = {
|
|
1860
1914
|
x: o,
|
|
1861
1915
|
y: n
|
|
1862
|
-
}, y =
|
|
1863
|
-
let
|
|
1864
|
-
(
|
|
1865
|
-
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;
|
|
1866
1920
|
return {
|
|
1867
|
-
[y]:
|
|
1921
|
+
[y]: c[y] + X,
|
|
1868
1922
|
data: {
|
|
1869
1923
|
[y]: ee,
|
|
1870
1924
|
centerOffset: D - ee - X,
|
|
@@ -1876,70 +1930,70 @@ const gi = (e) => ({
|
|
|
1876
1930
|
};
|
|
1877
1931
|
}
|
|
1878
1932
|
});
|
|
1879
|
-
function
|
|
1880
|
-
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);
|
|
1881
1935
|
}
|
|
1882
|
-
const
|
|
1936
|
+
const kr = function(e) {
|
|
1883
1937
|
return e === void 0 && (e = {}), {
|
|
1884
1938
|
name: "autoPlacement",
|
|
1885
1939
|
options: e,
|
|
1886
1940
|
async fn(t) {
|
|
1887
|
-
var o, n,
|
|
1941
|
+
var o, n, r;
|
|
1888
1942
|
const {
|
|
1889
|
-
rects:
|
|
1890
|
-
middlewareData:
|
|
1891
|
-
placement:
|
|
1943
|
+
rects: i,
|
|
1944
|
+
middlewareData: s,
|
|
1945
|
+
placement: a,
|
|
1892
1946
|
platform: l,
|
|
1893
1947
|
elements: u
|
|
1894
1948
|
} = t, {
|
|
1895
|
-
crossAxis:
|
|
1949
|
+
crossAxis: f = !1,
|
|
1896
1950
|
alignment: d,
|
|
1897
|
-
allowedPlacements:
|
|
1951
|
+
allowedPlacements: c = zt,
|
|
1898
1952
|
autoAlignment: y = !0,
|
|
1899
|
-
...
|
|
1900
|
-
} =
|
|
1901
|
-
if (
|
|
1953
|
+
...m
|
|
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)
|
|
1902
1956
|
return {};
|
|
1903
|
-
const
|
|
1904
|
-
if (
|
|
1957
|
+
const C = Co(w, i, await (l.isRTL == null ? void 0 : l.isRTL(u.floating)));
|
|
1958
|
+
if (a !== w)
|
|
1905
1959
|
return {
|
|
1906
1960
|
reset: {
|
|
1907
1961
|
placement: x[0]
|
|
1908
1962
|
}
|
|
1909
1963
|
};
|
|
1910
|
-
const
|
|
1911
|
-
placement:
|
|
1912
|
-
overflows:
|
|
1913
|
-
}],
|
|
1914
|
-
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)
|
|
1915
1969
|
return {
|
|
1916
1970
|
data: {
|
|
1917
|
-
index:
|
|
1918
|
-
overflows:
|
|
1971
|
+
index: h + 1,
|
|
1972
|
+
overflows: k
|
|
1919
1973
|
},
|
|
1920
1974
|
reset: {
|
|
1921
|
-
placement:
|
|
1975
|
+
placement: A
|
|
1922
1976
|
}
|
|
1923
1977
|
};
|
|
1924
|
-
const
|
|
1978
|
+
const b = k.map((E) => {
|
|
1925
1979
|
const W = se(E.placement);
|
|
1926
|
-
return [E.placement, W &&
|
|
1980
|
+
return [E.placement, W && f ? (
|
|
1927
1981
|
// Check along the mainAxis and main crossAxis side.
|
|
1928
|
-
E.overflows.slice(0, 2).reduce((
|
|
1982
|
+
E.overflows.slice(0, 2).reduce((_, H) => _ + H, 0)
|
|
1929
1983
|
) : (
|
|
1930
1984
|
// Check only the mainAxis.
|
|
1931
1985
|
E.overflows[0]
|
|
1932
1986
|
), E.overflows];
|
|
1933
|
-
}).sort((E, W) => E[1] - W[1]), I = ((
|
|
1987
|
+
}).sort((E, W) => E[1] - W[1]), I = ((r = b.filter((E) => E[2].slice(
|
|
1934
1988
|
0,
|
|
1935
1989
|
// Aligned placements should not check their opposite crossAxis
|
|
1936
1990
|
// side.
|
|
1937
1991
|
se(E[0]) ? 2 : 3
|
|
1938
|
-
).every((W) => W <= 0))[0]) == null ? void 0 :
|
|
1939
|
-
return I !==
|
|
1992
|
+
).every((W) => W <= 0))[0]) == null ? void 0 : r[0]) || b[0][0];
|
|
1993
|
+
return I !== a ? {
|
|
1940
1994
|
data: {
|
|
1941
|
-
index:
|
|
1942
|
-
overflows:
|
|
1995
|
+
index: h + 1,
|
|
1996
|
+
overflows: k
|
|
1943
1997
|
},
|
|
1944
1998
|
reset: {
|
|
1945
1999
|
placement: I
|
|
@@ -1947,47 +2001,47 @@ const wi = function(e) {
|
|
|
1947
2001
|
} : {};
|
|
1948
2002
|
}
|
|
1949
2003
|
};
|
|
1950
|
-
},
|
|
2004
|
+
}, _r = function(e) {
|
|
1951
2005
|
return e === void 0 && (e = {}), {
|
|
1952
2006
|
name: "flip",
|
|
1953
2007
|
options: e,
|
|
1954
2008
|
async fn(t) {
|
|
1955
2009
|
var o, n;
|
|
1956
2010
|
const {
|
|
1957
|
-
placement:
|
|
1958
|
-
middlewareData:
|
|
1959
|
-
rects:
|
|
1960
|
-
initialPlacement:
|
|
2011
|
+
placement: r,
|
|
2012
|
+
middlewareData: i,
|
|
2013
|
+
rects: s,
|
|
2014
|
+
initialPlacement: a,
|
|
1961
2015
|
platform: l,
|
|
1962
2016
|
elements: u
|
|
1963
2017
|
} = t, {
|
|
1964
|
-
mainAxis:
|
|
2018
|
+
mainAxis: f = !0,
|
|
1965
2019
|
crossAxis: d = !0,
|
|
1966
|
-
fallbackPlacements:
|
|
2020
|
+
fallbackPlacements: c,
|
|
1967
2021
|
fallbackStrategy: y = "bestFit",
|
|
1968
|
-
fallbackAxisSideDirection:
|
|
2022
|
+
fallbackAxisSideDirection: m = "none",
|
|
1969
2023
|
flipAlignment: x = !0,
|
|
1970
|
-
...
|
|
1971
|
-
} =
|
|
1972
|
-
if ((o =
|
|
2024
|
+
...g
|
|
2025
|
+
} = Ae(e, t);
|
|
2026
|
+
if ((o = i.arrow) != null && o.alignmentOffset)
|
|
1973
2027
|
return {};
|
|
1974
|
-
const
|
|
1975
|
-
!
|
|
1976
|
-
const
|
|
1977
|
-
let E = ((n =
|
|
1978
|
-
if (
|
|
1979
|
-
const D =
|
|
1980
|
-
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]]);
|
|
1981
2035
|
}
|
|
1982
2036
|
if (E = [...E, {
|
|
1983
|
-
placement:
|
|
2037
|
+
placement: r,
|
|
1984
2038
|
overflows: I
|
|
1985
2039
|
}], !I.every((D) => D <= 0)) {
|
|
1986
|
-
var W,
|
|
1987
|
-
const D = (((W =
|
|
1988
|
-
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
|
|
1989
2043
|
// overflows the main axis.
|
|
1990
|
-
E.every((te) => pe(te.placement) ===
|
|
2044
|
+
E.every((te) => pe(te.placement) === w ? te.overflows[0] > 0 : !0)))
|
|
1991
2045
|
return {
|
|
1992
2046
|
data: {
|
|
1993
2047
|
index: D,
|
|
@@ -1997,28 +2051,28 @@ const wi = function(e) {
|
|
|
1997
2051
|
placement: ee
|
|
1998
2052
|
}
|
|
1999
2053
|
};
|
|
2000
|
-
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;
|
|
2001
2055
|
if (!U)
|
|
2002
2056
|
switch (y) {
|
|
2003
2057
|
case "bestFit": {
|
|
2004
2058
|
var H;
|
|
2005
2059
|
const X = (H = E.filter((te) => {
|
|
2006
|
-
if (
|
|
2060
|
+
if (A) {
|
|
2007
2061
|
const le = pe(te.placement);
|
|
2008
|
-
return le ===
|
|
2062
|
+
return le === w || // Create a bias to the `y` side axis due to horizontal
|
|
2009
2063
|
// reading directions favoring greater width.
|
|
2010
2064
|
le === "y";
|
|
2011
2065
|
}
|
|
2012
2066
|
return !0;
|
|
2013
|
-
}).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];
|
|
2014
2068
|
X && (U = X);
|
|
2015
2069
|
break;
|
|
2016
2070
|
}
|
|
2017
2071
|
case "initialPlacement":
|
|
2018
|
-
U =
|
|
2072
|
+
U = a;
|
|
2019
2073
|
break;
|
|
2020
2074
|
}
|
|
2021
|
-
if (
|
|
2075
|
+
if (r !== U)
|
|
2022
2076
|
return {
|
|
2023
2077
|
reset: {
|
|
2024
2078
|
placement: U
|
|
@@ -2028,17 +2082,17 @@ const wi = function(e) {
|
|
|
2028
2082
|
return {};
|
|
2029
2083
|
}
|
|
2030
2084
|
};
|
|
2031
|
-
},
|
|
2032
|
-
async function
|
|
2085
|
+
}, Ar = /* @__PURE__ */ new Set(["left", "top"]);
|
|
2086
|
+
async function Cr(e, t) {
|
|
2033
2087
|
const {
|
|
2034
2088
|
placement: o,
|
|
2035
2089
|
platform: n,
|
|
2036
|
-
elements:
|
|
2037
|
-
} = 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);
|
|
2038
2092
|
let {
|
|
2039
|
-
mainAxis:
|
|
2093
|
+
mainAxis: c,
|
|
2040
2094
|
crossAxis: y,
|
|
2041
|
-
alignmentAxis:
|
|
2095
|
+
alignmentAxis: m
|
|
2042
2096
|
} = typeof d == "number" ? {
|
|
2043
2097
|
mainAxis: d,
|
|
2044
2098
|
crossAxis: 0,
|
|
@@ -2048,37 +2102,37 @@ async function $i(e, t) {
|
|
|
2048
2102
|
crossAxis: d.crossAxis || 0,
|
|
2049
2103
|
alignmentAxis: d.alignmentAxis
|
|
2050
2104
|
};
|
|
2051
|
-
return
|
|
2052
|
-
x: y *
|
|
2053
|
-
y:
|
|
2105
|
+
return a && typeof m == "number" && (y = a === "end" ? m * -1 : m), l ? {
|
|
2106
|
+
x: y * f,
|
|
2107
|
+
y: c * u
|
|
2054
2108
|
} : {
|
|
2055
|
-
x:
|
|
2056
|
-
y: y *
|
|
2109
|
+
x: c * u,
|
|
2110
|
+
y: y * f
|
|
2057
2111
|
};
|
|
2058
2112
|
}
|
|
2059
|
-
const
|
|
2113
|
+
const Sr = function(e) {
|
|
2060
2114
|
return e === void 0 && (e = 0), {
|
|
2061
2115
|
name: "offset",
|
|
2062
2116
|
options: e,
|
|
2063
2117
|
async fn(t) {
|
|
2064
2118
|
var o, n;
|
|
2065
2119
|
const {
|
|
2066
|
-
x:
|
|
2067
|
-
y:
|
|
2068
|
-
placement:
|
|
2069
|
-
middlewareData:
|
|
2070
|
-
} = t, l = await
|
|
2071
|
-
return
|
|
2072
|
-
x:
|
|
2073
|
-
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,
|
|
2074
2128
|
data: {
|
|
2075
2129
|
...l,
|
|
2076
|
-
placement:
|
|
2130
|
+
placement: s
|
|
2077
2131
|
}
|
|
2078
2132
|
};
|
|
2079
2133
|
}
|
|
2080
2134
|
};
|
|
2081
|
-
},
|
|
2135
|
+
}, Tr = function(e) {
|
|
2082
2136
|
return e === void 0 && (e = {}), {
|
|
2083
2137
|
name: "shift",
|
|
2084
2138
|
options: e,
|
|
@@ -2086,40 +2140,40 @@ const _i = function(e) {
|
|
|
2086
2140
|
const {
|
|
2087
2141
|
x: o,
|
|
2088
2142
|
y: n,
|
|
2089
|
-
placement:
|
|
2143
|
+
placement: r
|
|
2090
2144
|
} = t, {
|
|
2091
|
-
mainAxis:
|
|
2092
|
-
crossAxis:
|
|
2093
|
-
limiter:
|
|
2094
|
-
fn: (
|
|
2145
|
+
mainAxis: i = !0,
|
|
2146
|
+
crossAxis: s = !1,
|
|
2147
|
+
limiter: a = {
|
|
2148
|
+
fn: (g) => {
|
|
2095
2149
|
let {
|
|
2096
|
-
x:
|
|
2097
|
-
y:
|
|
2098
|
-
} =
|
|
2150
|
+
x: h,
|
|
2151
|
+
y: w
|
|
2152
|
+
} = g;
|
|
2099
2153
|
return {
|
|
2100
|
-
x:
|
|
2101
|
-
y:
|
|
2154
|
+
x: h,
|
|
2155
|
+
y: w
|
|
2102
2156
|
};
|
|
2103
2157
|
}
|
|
2104
2158
|
},
|
|
2105
2159
|
...l
|
|
2106
|
-
} =
|
|
2160
|
+
} = Ae(e, t), u = {
|
|
2107
2161
|
x: o,
|
|
2108
2162
|
y: n
|
|
2109
|
-
},
|
|
2110
|
-
let y = u[
|
|
2111
|
-
if (
|
|
2112
|
-
const
|
|
2113
|
-
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);
|
|
2114
2168
|
}
|
|
2115
|
-
if (
|
|
2116
|
-
const
|
|
2117
|
-
|
|
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);
|
|
2118
2172
|
}
|
|
2119
|
-
const x =
|
|
2173
|
+
const x = a.fn({
|
|
2120
2174
|
...t,
|
|
2121
|
-
[
|
|
2122
|
-
[d]:
|
|
2175
|
+
[c]: y,
|
|
2176
|
+
[d]: m
|
|
2123
2177
|
});
|
|
2124
2178
|
return {
|
|
2125
2179
|
...x,
|
|
@@ -2127,47 +2181,47 @@ const _i = function(e) {
|
|
|
2127
2181
|
x: x.x - o,
|
|
2128
2182
|
y: x.y - n,
|
|
2129
2183
|
enabled: {
|
|
2130
|
-
[
|
|
2131
|
-
[d]:
|
|
2184
|
+
[c]: i,
|
|
2185
|
+
[d]: s
|
|
2132
2186
|
}
|
|
2133
2187
|
}
|
|
2134
2188
|
};
|
|
2135
2189
|
}
|
|
2136
2190
|
};
|
|
2137
|
-
},
|
|
2191
|
+
}, Br = function(e) {
|
|
2138
2192
|
return e === void 0 && (e = {}), {
|
|
2139
2193
|
name: "size",
|
|
2140
2194
|
options: e,
|
|
2141
2195
|
async fn(t) {
|
|
2142
2196
|
var o, n;
|
|
2143
2197
|
const {
|
|
2144
|
-
placement:
|
|
2145
|
-
rects:
|
|
2146
|
-
platform:
|
|
2147
|
-
elements:
|
|
2198
|
+
placement: r,
|
|
2199
|
+
rects: i,
|
|
2200
|
+
platform: s,
|
|
2201
|
+
elements: a
|
|
2148
2202
|
} = t, {
|
|
2149
2203
|
apply: l = () => {
|
|
2150
2204
|
},
|
|
2151
2205
|
...u
|
|
2152
|
-
} =
|
|
2153
|
-
width:
|
|
2206
|
+
} = Ae(e, t), f = await tt(t, u), d = de(r), c = se(r), y = pe(r) === "y", {
|
|
2207
|
+
width: m,
|
|
2154
2208
|
height: x
|
|
2155
|
-
} =
|
|
2156
|
-
let
|
|
2157
|
-
d === "top" || d === "bottom" ? (
|
|
2158
|
-
const
|
|
2159
|
-
let
|
|
2160
|
-
if ((o = t.middlewareData.shift) != null && o.enabled.x && (
|
|
2161
|
-
const E =
|
|
2162
|
-
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));
|
|
2163
2217
|
}
|
|
2164
2218
|
await l({
|
|
2165
2219
|
...t,
|
|
2166
|
-
availableWidth:
|
|
2167
|
-
availableHeight:
|
|
2220
|
+
availableWidth: P,
|
|
2221
|
+
availableHeight: b
|
|
2168
2222
|
});
|
|
2169
|
-
const I = await
|
|
2170
|
-
return
|
|
2223
|
+
const I = await s.getDimensions(a.floating);
|
|
2224
|
+
return m !== I.width || x !== I.height ? {
|
|
2171
2225
|
reset: {
|
|
2172
2226
|
rects: !0
|
|
2173
2227
|
}
|
|
@@ -2175,202 +2229,202 @@ const _i = function(e) {
|
|
|
2175
2229
|
}
|
|
2176
2230
|
};
|
|
2177
2231
|
};
|
|
2178
|
-
function
|
|
2232
|
+
function re(e) {
|
|
2179
2233
|
var t;
|
|
2180
2234
|
return ((t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
2181
2235
|
}
|
|
2182
2236
|
function ue(e) {
|
|
2183
|
-
return
|
|
2237
|
+
return re(e).getComputedStyle(e);
|
|
2184
2238
|
}
|
|
2185
|
-
const Ft = Math.min, Re = Math.max,
|
|
2186
|
-
function
|
|
2239
|
+
const Ft = Math.min, Re = Math.max, Ye = Math.round;
|
|
2240
|
+
function To(e) {
|
|
2187
2241
|
const t = ue(e);
|
|
2188
2242
|
let o = parseFloat(t.width), n = parseFloat(t.height);
|
|
2189
|
-
const
|
|
2190
|
-
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 };
|
|
2191
2245
|
}
|
|
2192
|
-
function
|
|
2193
|
-
return
|
|
2246
|
+
function be(e) {
|
|
2247
|
+
return Po(e) ? (e.nodeName || "").toLowerCase() : "";
|
|
2194
2248
|
}
|
|
2195
|
-
let
|
|
2196
|
-
function
|
|
2197
|
-
if (
|
|
2249
|
+
let We;
|
|
2250
|
+
function Bo() {
|
|
2251
|
+
if (We) return We;
|
|
2198
2252
|
const e = navigator.userAgentData;
|
|
2199
|
-
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;
|
|
2200
2254
|
}
|
|
2201
2255
|
function ce(e) {
|
|
2202
|
-
return e instanceof
|
|
2256
|
+
return e instanceof re(e).HTMLElement;
|
|
2203
2257
|
}
|
|
2204
2258
|
function ge(e) {
|
|
2205
|
-
return e instanceof
|
|
2259
|
+
return e instanceof re(e).Element;
|
|
2206
2260
|
}
|
|
2207
|
-
function
|
|
2208
|
-
return e instanceof
|
|
2261
|
+
function Po(e) {
|
|
2262
|
+
return e instanceof re(e).Node;
|
|
2209
2263
|
}
|
|
2210
2264
|
function Nt(e) {
|
|
2211
|
-
return typeof ShadowRoot > "u" ? !1 : e instanceof
|
|
2265
|
+
return typeof ShadowRoot > "u" ? !1 : e instanceof re(e).ShadowRoot || e instanceof ShadowRoot;
|
|
2212
2266
|
}
|
|
2213
|
-
function
|
|
2214
|
-
const { overflow: t, overflowX: o, overflowY: n, display:
|
|
2215
|
-
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);
|
|
2216
2270
|
}
|
|
2217
|
-
function
|
|
2218
|
-
return ["table", "td", "th"].includes(
|
|
2271
|
+
function Pr(e) {
|
|
2272
|
+
return ["table", "td", "th"].includes(be(e));
|
|
2219
2273
|
}
|
|
2220
|
-
function
|
|
2221
|
-
const t = /firefox/i.test(
|
|
2222
|
-
return o.transform !== "none" || o.perspective !== "none" || !!n && n !== "none" || t && o.willChange === "filter" || t && !!o.filter && o.filter !== "none" || ["transform", "perspective"].some(((
|
|
2223
|
-
const
|
|
2224
|
-
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);
|
|
2225
2279
|
}));
|
|
2226
2280
|
}
|
|
2227
|
-
function
|
|
2228
|
-
return !/^((?!chrome|android).)*safari/i.test(
|
|
2281
|
+
function Oo() {
|
|
2282
|
+
return !/^((?!chrome|android).)*safari/i.test(Bo());
|
|
2229
2283
|
}
|
|
2230
|
-
function
|
|
2231
|
-
return ["html", "body", "#document"].includes(
|
|
2284
|
+
function St(e) {
|
|
2285
|
+
return ["html", "body", "#document"].includes(be(e));
|
|
2232
2286
|
}
|
|
2233
|
-
function
|
|
2287
|
+
function Lo(e) {
|
|
2234
2288
|
return ge(e) ? e : e.contextElement;
|
|
2235
2289
|
}
|
|
2236
|
-
const
|
|
2237
|
-
function
|
|
2238
|
-
const t =
|
|
2239
|
-
if (!ce(t)) return
|
|
2240
|
-
const o = t.getBoundingClientRect(), { width: n, height:
|
|
2241
|
-
let
|
|
2242
|
-
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 };
|
|
2243
2297
|
}
|
|
2244
2298
|
function Ne(e, t, o, n) {
|
|
2245
|
-
var
|
|
2299
|
+
var r, i;
|
|
2246
2300
|
t === void 0 && (t = !1), o === void 0 && (o = !1);
|
|
2247
|
-
const
|
|
2248
|
-
let l =
|
|
2249
|
-
t && (n ? ge(n) && (l =
|
|
2250
|
-
const u =
|
|
2251
|
-
let d = (
|
|
2252
|
-
if (
|
|
2253
|
-
const x =
|
|
2254
|
-
let
|
|
2255
|
-
for (;
|
|
2256
|
-
const
|
|
2257
|
-
|
|
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;
|
|
2258
2312
|
}
|
|
2259
2313
|
}
|
|
2260
|
-
return { width: y, height:
|
|
2314
|
+
return { width: y, height: m, top: c, right: d + y, bottom: c + m, left: d, x: d, y: c };
|
|
2261
2315
|
}
|
|
2262
2316
|
function ve(e) {
|
|
2263
|
-
return ((
|
|
2317
|
+
return ((Po(e) ? e.ownerDocument : e.document) || window.document).documentElement;
|
|
2264
2318
|
}
|
|
2265
|
-
function
|
|
2319
|
+
function nt(e) {
|
|
2266
2320
|
return ge(e) ? { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop } : { scrollLeft: e.pageXOffset, scrollTop: e.pageYOffset };
|
|
2267
2321
|
}
|
|
2268
|
-
function
|
|
2269
|
-
return Ne(ve(e)).left +
|
|
2322
|
+
function zo(e) {
|
|
2323
|
+
return Ne(ve(e)).left + nt(e).scrollLeft;
|
|
2270
2324
|
}
|
|
2271
2325
|
function Ie(e) {
|
|
2272
|
-
if (
|
|
2326
|
+
if (be(e) === "html") return e;
|
|
2273
2327
|
const t = e.assignedSlot || e.parentNode || Nt(e) && e.host || ve(e);
|
|
2274
2328
|
return Nt(t) ? t.host : t;
|
|
2275
2329
|
}
|
|
2276
|
-
function
|
|
2330
|
+
function Mo(e) {
|
|
2277
2331
|
const t = Ie(e);
|
|
2278
|
-
return
|
|
2332
|
+
return St(t) ? t.ownerDocument.body : ce(t) && ot(t) ? t : Mo(t);
|
|
2279
2333
|
}
|
|
2280
2334
|
function Qe(e, t) {
|
|
2281
2335
|
var o;
|
|
2282
2336
|
t === void 0 && (t = []);
|
|
2283
|
-
const n =
|
|
2284
|
-
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));
|
|
2285
2339
|
}
|
|
2286
2340
|
function It(e, t, o) {
|
|
2287
|
-
return t === "viewport" ? Le((function(n,
|
|
2288
|
-
const
|
|
2289
|
-
let l =
|
|
2290
|
-
if (
|
|
2291
|
-
l =
|
|
2292
|
-
const
|
|
2293
|
-
(
|
|
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);
|
|
2294
2348
|
}
|
|
2295
|
-
return { width: l, height: u, x:
|
|
2296
|
-
})(e, o)) : ge(t) ? Le((function(n,
|
|
2297
|
-
const
|
|
2298
|
-
return { width: n.clientWidth * l.x, height: n.clientHeight * l.y, x:
|
|
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 };
|
|
2299
2353
|
})(t, o)) : Le((function(n) {
|
|
2300
|
-
const
|
|
2301
|
-
let u = -
|
|
2302
|
-
const
|
|
2303
|
-
return ue(
|
|
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 };
|
|
2304
2358
|
})(ve(e)));
|
|
2305
2359
|
}
|
|
2306
2360
|
function Dt(e) {
|
|
2307
2361
|
return ce(e) && ue(e).position !== "fixed" ? e.offsetParent : null;
|
|
2308
2362
|
}
|
|
2309
2363
|
function jt(e) {
|
|
2310
|
-
const t =
|
|
2364
|
+
const t = re(e);
|
|
2311
2365
|
let o = Dt(e);
|
|
2312
|
-
for (; o &&
|
|
2313
|
-
return o && (
|
|
2314
|
-
let
|
|
2315
|
-
for (; ce(
|
|
2316
|
-
if (
|
|
2317
|
-
|
|
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);
|
|
2318
2372
|
}
|
|
2319
2373
|
return null;
|
|
2320
2374
|
})(e) || t;
|
|
2321
2375
|
}
|
|
2322
|
-
function
|
|
2323
|
-
const n = ce(t),
|
|
2324
|
-
let
|
|
2325
|
-
const
|
|
2326
|
-
if (n || !n && o !== "fixed") if ((
|
|
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)) {
|
|
2327
2381
|
const l = Ne(t, !0);
|
|
2328
|
-
|
|
2329
|
-
} else
|
|
2330
|
-
return { x:
|
|
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 };
|
|
2331
2385
|
}
|
|
2332
|
-
const
|
|
2333
|
-
let { element: t, boundary: o, rootBoundary: n, strategy:
|
|
2334
|
-
const
|
|
2335
|
-
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);
|
|
2336
2390
|
if (d) return d;
|
|
2337
|
-
let
|
|
2338
|
-
const
|
|
2339
|
-
let x =
|
|
2340
|
-
for (; ge(x) && !
|
|
2341
|
-
const
|
|
2342
|
-
(
|
|
2391
|
+
let c = Qe(u).filter(((g) => ge(g) && be(g) !== "body")), y = null;
|
|
2392
|
+
const m = ue(u).position === "fixed";
|
|
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);
|
|
2343
2397
|
}
|
|
2344
|
-
return
|
|
2345
|
-
})(t, this._c) : [].concat(o),
|
|
2346
|
-
const d = 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);
|
|
2347
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;
|
|
2348
|
-
}), It(t,
|
|
2402
|
+
}), It(t, a, r));
|
|
2349
2403
|
return { width: l.right - l.left, height: l.bottom - l.top, x: l.left, y: l.top };
|
|
2350
2404
|
}, convertOffsetParentRelativeRectToViewportRelativeRect: function(e) {
|
|
2351
2405
|
let { rect: t, offsetParent: o, strategy: n } = e;
|
|
2352
|
-
const
|
|
2353
|
-
if (o ===
|
|
2354
|
-
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 };
|
|
2355
2409
|
const l = { x: 0, y: 0 };
|
|
2356
|
-
if ((
|
|
2410
|
+
if ((r || !r && n !== "fixed") && ((be(o) !== "body" || ot(i)) && (s = nt(o)), ce(o))) {
|
|
2357
2411
|
const u = Ne(o);
|
|
2358
|
-
|
|
2412
|
+
a = Se(o), l.x = u.x + o.clientLeft, l.y = u.y + o.clientTop;
|
|
2359
2413
|
}
|
|
2360
|
-
return { width: t.width *
|
|
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 };
|
|
2361
2415
|
}, isElement: ge, getDimensions: function(e) {
|
|
2362
|
-
return ce(e) ?
|
|
2363
|
-
}, getOffsetParent: jt, getDocumentElement: ve, getScale:
|
|
2416
|
+
return ce(e) ? To(e) : e.getBoundingClientRect();
|
|
2417
|
+
}, getOffsetParent: jt, getDocumentElement: ve, getScale: Se, async getElementRects(e) {
|
|
2364
2418
|
let { reference: t, floating: o, strategy: n } = e;
|
|
2365
|
-
const
|
|
2366
|
-
return { reference:
|
|
2367
|
-
}, getClientRects: (e) => Array.from(e.getClientRects()), isRTL: (e) => ue(e).direction === "rtl" },
|
|
2368
|
-
const n = /* @__PURE__ */ new Map(),
|
|
2369
|
-
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 });
|
|
2370
2424
|
};
|
|
2371
|
-
function
|
|
2425
|
+
function Eo(e, t) {
|
|
2372
2426
|
for (const o in t)
|
|
2373
|
-
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]);
|
|
2374
2428
|
}
|
|
2375
2429
|
const ae = {
|
|
2376
2430
|
// Disable popper components
|
|
@@ -2458,7 +2512,7 @@ function De(e, t) {
|
|
|
2458
2512
|
while (o);
|
|
2459
2513
|
return n;
|
|
2460
2514
|
}
|
|
2461
|
-
function
|
|
2515
|
+
function zr(e) {
|
|
2462
2516
|
const t = [e];
|
|
2463
2517
|
let o = ae.themes[e] || {};
|
|
2464
2518
|
do
|
|
@@ -2474,22 +2528,22 @@ function qt(e) {
|
|
|
2474
2528
|
while (o);
|
|
2475
2529
|
return t;
|
|
2476
2530
|
}
|
|
2477
|
-
let
|
|
2531
|
+
let Be = !1;
|
|
2478
2532
|
if (typeof window < "u") {
|
|
2479
|
-
|
|
2533
|
+
Be = !1;
|
|
2480
2534
|
try {
|
|
2481
2535
|
const e = Object.defineProperty({}, "passive", {
|
|
2482
2536
|
get() {
|
|
2483
|
-
|
|
2537
|
+
Be = !0;
|
|
2484
2538
|
}
|
|
2485
2539
|
});
|
|
2486
2540
|
window.addEventListener("test", null, e);
|
|
2487
2541
|
} catch {
|
|
2488
2542
|
}
|
|
2489
2543
|
}
|
|
2490
|
-
let
|
|
2491
|
-
typeof window < "u" && typeof navigator < "u" && (
|
|
2492
|
-
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([
|
|
2493
2547
|
t,
|
|
2494
2548
|
`${t}-start`,
|
|
2495
2549
|
`${t}-end`
|
|
@@ -2510,37 +2564,37 @@ function Gt(e, t) {
|
|
|
2510
2564
|
const o = e.indexOf(t);
|
|
2511
2565
|
o !== -1 && e.splice(o, 1);
|
|
2512
2566
|
}
|
|
2513
|
-
function
|
|
2567
|
+
function at() {
|
|
2514
2568
|
return new Promise((e) => requestAnimationFrame(() => {
|
|
2515
2569
|
requestAnimationFrame(e);
|
|
2516
2570
|
}));
|
|
2517
2571
|
}
|
|
2518
|
-
const
|
|
2519
|
-
let
|
|
2572
|
+
const ie = [];
|
|
2573
|
+
let xe = null;
|
|
2520
2574
|
const Zt = {};
|
|
2521
2575
|
function Ut(e) {
|
|
2522
2576
|
let t = Zt[e];
|
|
2523
2577
|
return t || (t = Zt[e] = []), t;
|
|
2524
2578
|
}
|
|
2525
|
-
let
|
|
2579
|
+
let wt = function() {
|
|
2526
2580
|
};
|
|
2527
|
-
typeof window < "u" && (
|
|
2581
|
+
typeof window < "u" && (wt = window.Element);
|
|
2528
2582
|
function L(e) {
|
|
2529
2583
|
return function(t) {
|
|
2530
2584
|
return De(t.theme, e);
|
|
2531
2585
|
};
|
|
2532
2586
|
}
|
|
2533
|
-
const
|
|
2587
|
+
const lt = "__floating-vue__popper", No = () => Z({
|
|
2534
2588
|
name: "VPopper",
|
|
2535
2589
|
provide() {
|
|
2536
2590
|
return {
|
|
2537
|
-
[
|
|
2591
|
+
[lt]: {
|
|
2538
2592
|
parentPopper: this
|
|
2539
2593
|
}
|
|
2540
2594
|
};
|
|
2541
2595
|
},
|
|
2542
2596
|
inject: {
|
|
2543
|
-
[
|
|
2597
|
+
[lt]: { default: null }
|
|
2544
2598
|
},
|
|
2545
2599
|
props: {
|
|
2546
2600
|
theme: {
|
|
@@ -2582,7 +2636,7 @@ const at = "__floating-vue__popper", Mo = () => Z({
|
|
|
2582
2636
|
placement: {
|
|
2583
2637
|
type: String,
|
|
2584
2638
|
default: L("placement"),
|
|
2585
|
-
validator: (e) =>
|
|
2639
|
+
validator: (e) => Fo.includes(e)
|
|
2586
2640
|
},
|
|
2587
2641
|
delay: {
|
|
2588
2642
|
type: [String, Number, Object],
|
|
@@ -2621,11 +2675,11 @@ const at = "__floating-vue__popper", Mo = () => Z({
|
|
|
2621
2675
|
default: L("popperHideTriggers")
|
|
2622
2676
|
},
|
|
2623
2677
|
container: {
|
|
2624
|
-
type: [String, Object,
|
|
2678
|
+
type: [String, Object, wt, Boolean],
|
|
2625
2679
|
default: L("container")
|
|
2626
2680
|
},
|
|
2627
2681
|
boundary: {
|
|
2628
|
-
type: [String,
|
|
2682
|
+
type: [String, wt],
|
|
2629
2683
|
default: L("boundary")
|
|
2630
2684
|
},
|
|
2631
2685
|
strategy: {
|
|
@@ -2787,7 +2841,7 @@ const at = "__floating-vue__popper", Mo = () => Z({
|
|
|
2787
2841
|
},
|
|
2788
2842
|
parentPopper() {
|
|
2789
2843
|
var e;
|
|
2790
|
-
return (e = this[
|
|
2844
|
+
return (e = this[lt]) == null ? void 0 : e.parentPopper;
|
|
2791
2845
|
},
|
|
2792
2846
|
hasPopperShowTriggerHover() {
|
|
2793
2847
|
var e, t;
|
|
@@ -2838,8 +2892,8 @@ const at = "__floating-vue__popper", Mo = () => Z({
|
|
|
2838
2892
|
},
|
|
2839
2893
|
methods: {
|
|
2840
2894
|
show({ event: e = null, skipDelay: t = !1, force: o = !1 } = {}) {
|
|
2841
|
-
var n,
|
|
2842
|
-
(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(() => {
|
|
2843
2897
|
this.$_showFrameLocked = !1;
|
|
2844
2898
|
})), this.$emit("update:shown", !0));
|
|
2845
2899
|
},
|
|
@@ -2876,31 +2930,31 @@ const at = "__floating-vue__popper", Mo = () => Z({
|
|
|
2876
2930
|
strategy: this.strategy,
|
|
2877
2931
|
middleware: []
|
|
2878
2932
|
};
|
|
2879
|
-
(this.distance || this.skidding) && e.middleware.push(
|
|
2933
|
+
(this.distance || this.skidding) && e.middleware.push(Sr({
|
|
2880
2934
|
mainAxis: this.distance,
|
|
2881
2935
|
crossAxis: this.skidding
|
|
2882
2936
|
}));
|
|
2883
2937
|
const t = this.placement.startsWith("auto");
|
|
2884
|
-
if (t ? e.middleware.push(
|
|
2938
|
+
if (t ? e.middleware.push(kr({
|
|
2885
2939
|
alignment: this.placement.split("-")[1] ?? ""
|
|
2886
|
-
})) : e.placement = this.placement, this.preventOverflow && (this.shift && e.middleware.push(
|
|
2940
|
+
})) : e.placement = this.placement, this.preventOverflow && (this.shift && e.middleware.push(Tr({
|
|
2887
2941
|
padding: this.overflowPadding,
|
|
2888
2942
|
boundary: this.boundary,
|
|
2889
2943
|
crossAxis: this.shiftCrossAxis
|
|
2890
|
-
})), !t && this.flip && e.middleware.push(
|
|
2944
|
+
})), !t && this.flip && e.middleware.push(_r({
|
|
2891
2945
|
padding: this.overflowPadding,
|
|
2892
2946
|
boundary: this.boundary
|
|
2893
|
-
}))), e.middleware.push(
|
|
2947
|
+
}))), e.middleware.push(xr({
|
|
2894
2948
|
element: this.$_arrowNode,
|
|
2895
2949
|
padding: this.arrowPadding
|
|
2896
2950
|
})), this.arrowOverflow && e.middleware.push({
|
|
2897
2951
|
name: "arrowOverflow",
|
|
2898
|
-
fn: ({ placement: n, rects:
|
|
2899
|
-
let
|
|
2900
|
-
const { centerOffset:
|
|
2901
|
-
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, {
|
|
2902
2956
|
data: {
|
|
2903
|
-
overflow:
|
|
2957
|
+
overflow: s
|
|
2904
2958
|
}
|
|
2905
2959
|
};
|
|
2906
2960
|
}
|
|
@@ -2908,12 +2962,12 @@ const at = "__floating-vue__popper", Mo = () => Z({
|
|
|
2908
2962
|
const n = this.autoSize ? this.autoSize : this.autoMinSize ? "min" : null;
|
|
2909
2963
|
e.middleware.push({
|
|
2910
2964
|
name: "autoSize",
|
|
2911
|
-
fn: ({ rects:
|
|
2912
|
-
var
|
|
2913
|
-
if ((
|
|
2965
|
+
fn: ({ rects: r, placement: i, middlewareData: s }) => {
|
|
2966
|
+
var a;
|
|
2967
|
+
if ((a = s.autoSize) != null && a.skip)
|
|
2914
2968
|
return {};
|
|
2915
2969
|
let l, u;
|
|
2916
|
-
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, {
|
|
2917
2971
|
data: {
|
|
2918
2972
|
skip: !0
|
|
2919
2973
|
},
|
|
@@ -2924,14 +2978,14 @@ const at = "__floating-vue__popper", Mo = () => Z({
|
|
|
2924
2978
|
}
|
|
2925
2979
|
});
|
|
2926
2980
|
}
|
|
2927
|
-
(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({
|
|
2928
2982
|
boundary: this.boundary,
|
|
2929
2983
|
padding: this.overflowPadding,
|
|
2930
|
-
apply: ({ availableWidth: n, availableHeight:
|
|
2931
|
-
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;
|
|
2932
2986
|
}
|
|
2933
2987
|
})));
|
|
2934
|
-
const o = await
|
|
2988
|
+
const o = await Rr(this.$_referenceNode, this.$_popperNode, e);
|
|
2935
2989
|
Object.assign(this.result, {
|
|
2936
2990
|
x: o.x,
|
|
2937
2991
|
y: o.y,
|
|
@@ -2944,8 +2998,8 @@ const at = "__floating-vue__popper", Mo = () => Z({
|
|
|
2944
2998
|
});
|
|
2945
2999
|
},
|
|
2946
3000
|
$_scheduleShow(e, t = !1) {
|
|
2947
|
-
if (this.$_updateParentShownChildren(!0), this.$_hideInProgress = !1, clearTimeout(this.$_scheduleTimer),
|
|
2948
|
-
|
|
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);
|
|
2949
3003
|
return;
|
|
2950
3004
|
}
|
|
2951
3005
|
t ? this.$_applyShow() : this.$_scheduleTimer = setTimeout(this.$_applyShow.bind(this), this.$_computeDelay("show"));
|
|
@@ -2955,14 +3009,14 @@ const at = "__floating-vue__popper", Mo = () => Z({
|
|
|
2955
3009
|
this.pendingHide = !0;
|
|
2956
3010
|
return;
|
|
2957
3011
|
}
|
|
2958
|
-
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"));
|
|
2959
3013
|
},
|
|
2960
3014
|
$_computeDelay(e) {
|
|
2961
3015
|
const t = this.delay;
|
|
2962
3016
|
return parseInt(t && t[e] || t || 0);
|
|
2963
3017
|
},
|
|
2964
3018
|
async $_applyShow(e = !1) {
|
|
2965
|
-
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([
|
|
2966
3020
|
...Qe(this.$_referenceNode),
|
|
2967
3021
|
...Qe(this.$_popperNode)
|
|
2968
3022
|
], "scroll", () => {
|
|
@@ -2973,8 +3027,8 @@ const at = "__floating-vue__popper", Mo = () => Z({
|
|
|
2973
3027
|
if (this.$_hideInProgress)
|
|
2974
3028
|
return;
|
|
2975
3029
|
if (this.computeTransformOrigin) {
|
|
2976
|
-
const t = this.$_referenceNode.getBoundingClientRect(), o = this.$_popperNode.querySelector(".v-popper__wrapper"), n = o.parentNode.getBoundingClientRect(),
|
|
2977
|
-
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`;
|
|
2978
3032
|
}
|
|
2979
3033
|
this.isShown = !0, this.$_applyAttrsToTarget({
|
|
2980
3034
|
"aria-describedby": this.popperId,
|
|
@@ -2983,13 +3037,13 @@ const at = "__floating-vue__popper", Mo = () => Z({
|
|
|
2983
3037
|
const e = this.showGroup;
|
|
2984
3038
|
if (e) {
|
|
2985
3039
|
let t;
|
|
2986
|
-
for (let o = 0; o <
|
|
2987
|
-
t =
|
|
3040
|
+
for (let o = 0; o < ie.length; o++)
|
|
3041
|
+
t = ie[o], t.showGroup !== e && (t.hide(), t.$emit("close-group"));
|
|
2988
3042
|
}
|
|
2989
|
-
|
|
3043
|
+
ie.push(this), document.body.classList.add("v-popper--some-open");
|
|
2990
3044
|
for (const t of qt(this.theme))
|
|
2991
3045
|
Ut(t).push(this), document.body.classList.add(`v-popper--some-open--${t}`);
|
|
2992
|
-
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();
|
|
2993
3047
|
},
|
|
2994
3048
|
async $_applyHide(e = !1) {
|
|
2995
3049
|
if (this.shownChildren.size > 0) {
|
|
@@ -2998,19 +3052,19 @@ const at = "__floating-vue__popper", Mo = () => Z({
|
|
|
2998
3052
|
}
|
|
2999
3053
|
if (clearTimeout(this.$_scheduleTimer), !this.isShown)
|
|
3000
3054
|
return;
|
|
3001
|
-
this.skipTransition = e, Gt(
|
|
3055
|
+
this.skipTransition = e, Gt(ie, this), ie.length === 0 && document.body.classList.remove("v-popper--some-open");
|
|
3002
3056
|
for (const o of qt(this.theme)) {
|
|
3003
3057
|
const n = Ut(o);
|
|
3004
3058
|
Gt(n, this), n.length === 0 && document.body.classList.remove(`v-popper--some-open--${o}`);
|
|
3005
3059
|
}
|
|
3006
|
-
|
|
3060
|
+
xe === this && (xe = null), this.isShown = !1, this.$_applyAttrsToTarget({
|
|
3007
3061
|
"aria-describedby": void 0,
|
|
3008
3062
|
"data-popper-shown": void 0
|
|
3009
3063
|
}), clearTimeout(this.$_disposeTimer);
|
|
3010
3064
|
const t = this.disposeTimeout;
|
|
3011
3065
|
t !== null && (this.$_disposeTimer = setTimeout(() => {
|
|
3012
3066
|
this.$_popperNode && (this.$_detachPopperNode(), this.isMounted = !1);
|
|
3013
|
-
}, 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;
|
|
3014
3068
|
},
|
|
3015
3069
|
$_autoShowHide() {
|
|
3016
3070
|
this.shown ? this.show() : this.hide();
|
|
@@ -3034,22 +3088,22 @@ const at = "__floating-vue__popper", Mo = () => Z({
|
|
|
3034
3088
|
this.$_registerTriggerListeners(this.$_targetNodes, Wt, this.triggers, this.hideTriggers, t), this.$_registerTriggerListeners([this.$_popperNode], Wt, this.popperTriggers, this.popperHideTriggers, t);
|
|
3035
3089
|
},
|
|
3036
3090
|
$_registerEventListeners(e, t, o) {
|
|
3037
|
-
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 ? {
|
|
3038
3092
|
passive: !0
|
|
3039
3093
|
} : void 0));
|
|
3040
3094
|
},
|
|
3041
|
-
$_registerTriggerListeners(e, t, o, n,
|
|
3042
|
-
let
|
|
3043
|
-
n != null && (
|
|
3044
|
-
const
|
|
3045
|
-
|
|
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);
|
|
3046
3100
|
});
|
|
3047
3101
|
},
|
|
3048
3102
|
$_removeEventListeners(e) {
|
|
3049
3103
|
const t = [];
|
|
3050
3104
|
this.$_events.forEach((o) => {
|
|
3051
|
-
const { targetNodes: n, eventType:
|
|
3052
|
-
!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);
|
|
3053
3107
|
}), this.$_events = t;
|
|
3054
3108
|
},
|
|
3055
3109
|
$_refreshListeners() {
|
|
@@ -3084,11 +3138,11 @@ const at = "__floating-vue__popper", Mo = () => Z({
|
|
|
3084
3138
|
$_isAimingPopper() {
|
|
3085
3139
|
const e = this.$_referenceNode.getBoundingClientRect();
|
|
3086
3140
|
if (ze >= e.left && ze <= e.right && Me >= e.top && Me <= e.bottom) {
|
|
3087
|
-
const t = this.$_popperNode.getBoundingClientRect(), o = ze -
|
|
3088
|
-
return
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
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);
|
|
3092
3146
|
}
|
|
3093
3147
|
return !1;
|
|
3094
3148
|
}
|
|
@@ -3098,98 +3152,98 @@ const at = "__floating-vue__popper", Mo = () => Z({
|
|
|
3098
3152
|
}
|
|
3099
3153
|
});
|
|
3100
3154
|
if (typeof document < "u" && typeof window < "u") {
|
|
3101
|
-
if (
|
|
3102
|
-
const e =
|
|
3155
|
+
if (Ho) {
|
|
3156
|
+
const e = Be ? {
|
|
3103
3157
|
passive: !0,
|
|
3104
3158
|
capture: !0
|
|
3105
3159
|
} : !0;
|
|
3106
|
-
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);
|
|
3107
3161
|
} else
|
|
3108
|
-
window.addEventListener("mousedown", (e) => Xt(e, !1), !0), window.addEventListener("click", (e) =>
|
|
3109
|
-
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);
|
|
3110
3164
|
}
|
|
3111
3165
|
function Xt(e, t) {
|
|
3112
3166
|
if (ae.autoHideOnMousedown)
|
|
3113
|
-
|
|
3167
|
+
Io(e, t);
|
|
3114
3168
|
else
|
|
3115
|
-
for (let o = 0; o <
|
|
3116
|
-
const n =
|
|
3169
|
+
for (let o = 0; o < ie.length; o++) {
|
|
3170
|
+
const n = ie[o];
|
|
3117
3171
|
try {
|
|
3118
3172
|
n.mouseDownContains = n.popperNode().contains(e.target);
|
|
3119
3173
|
} catch {
|
|
3120
3174
|
}
|
|
3121
3175
|
}
|
|
3122
3176
|
}
|
|
3123
|
-
function
|
|
3124
|
-
ae.autoHideOnMousedown ||
|
|
3177
|
+
function Yt(e, t) {
|
|
3178
|
+
ae.autoHideOnMousedown || Io(e, t);
|
|
3125
3179
|
}
|
|
3126
|
-
function
|
|
3180
|
+
function Io(e, t) {
|
|
3127
3181
|
const o = {};
|
|
3128
|
-
for (let n =
|
|
3129
|
-
const
|
|
3182
|
+
for (let n = ie.length - 1; n >= 0; n--) {
|
|
3183
|
+
const r = ie[n];
|
|
3130
3184
|
try {
|
|
3131
|
-
const
|
|
3132
|
-
|
|
3133
|
-
if (
|
|
3134
|
-
if (
|
|
3135
|
-
let
|
|
3136
|
-
for (;
|
|
3137
|
-
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;
|
|
3138
3192
|
return;
|
|
3139
3193
|
}
|
|
3140
|
-
let
|
|
3141
|
-
for (;
|
|
3142
|
-
|
|
3194
|
+
let s = r.parentPopper;
|
|
3195
|
+
for (; s && Qt(s, s.containsGlobalTarget, e); )
|
|
3196
|
+
s.$_handleGlobalClose(e, t), s = s.parentPopper;
|
|
3143
3197
|
}
|
|
3144
3198
|
});
|
|
3145
3199
|
} catch {
|
|
3146
3200
|
}
|
|
3147
3201
|
}
|
|
3148
3202
|
}
|
|
3149
|
-
function
|
|
3150
|
-
return o.closeAllPopover || o.closePopover && t ||
|
|
3203
|
+
function Qt(e, t, o) {
|
|
3204
|
+
return o.closeAllPopover || o.closePopover && t || Mr(e, o) && !t;
|
|
3151
3205
|
}
|
|
3152
|
-
function
|
|
3206
|
+
function Mr(e, t) {
|
|
3153
3207
|
if (typeof e.autoHide == "function") {
|
|
3154
3208
|
const o = e.autoHide(t);
|
|
3155
3209
|
return e.lastAutoHide = o, o;
|
|
3156
3210
|
}
|
|
3157
3211
|
return e.autoHide;
|
|
3158
3212
|
}
|
|
3159
|
-
function
|
|
3160
|
-
for (let e = 0; e <
|
|
3161
|
-
|
|
3213
|
+
function Er() {
|
|
3214
|
+
for (let e = 0; e < ie.length; e++)
|
|
3215
|
+
ie[e].$_computePosition();
|
|
3162
3216
|
}
|
|
3163
|
-
let
|
|
3217
|
+
let fe = 0, ye = 0, ze = 0, Me = 0;
|
|
3164
3218
|
typeof window < "u" && window.addEventListener("mousemove", (e) => {
|
|
3165
|
-
|
|
3166
|
-
},
|
|
3219
|
+
fe = ze, ye = Me, ze = e.clientX, Me = e.clientY;
|
|
3220
|
+
}, Be ? {
|
|
3167
3221
|
passive: !0
|
|
3168
3222
|
} : void 0);
|
|
3169
|
-
function
|
|
3170
|
-
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));
|
|
3171
3225
|
return l >= 0 && l <= 1 && u >= 0 && u <= 1;
|
|
3172
3226
|
}
|
|
3173
|
-
const
|
|
3174
|
-
extends:
|
|
3175
|
-
},
|
|
3227
|
+
const Hr = {
|
|
3228
|
+
extends: No()
|
|
3229
|
+
}, rt = (e, t) => {
|
|
3176
3230
|
const o = e.__vccOpts || e;
|
|
3177
|
-
for (const [n,
|
|
3178
|
-
o[n] =
|
|
3231
|
+
for (const [n, r] of t)
|
|
3232
|
+
o[n] = r;
|
|
3179
3233
|
return o;
|
|
3180
3234
|
};
|
|
3181
|
-
function
|
|
3182
|
-
return
|
|
3235
|
+
function Fr(e, t, o, n, r, i) {
|
|
3236
|
+
return v(), B("div", {
|
|
3183
3237
|
ref: "reference",
|
|
3184
3238
|
class: N(["v-popper", {
|
|
3185
3239
|
"v-popper--shown": e.slotData.isShown
|
|
3186
3240
|
}])
|
|
3187
3241
|
}, [
|
|
3188
|
-
|
|
3242
|
+
V(e.$slots, "default", tn(on(e.slotData)))
|
|
3189
3243
|
], 2);
|
|
3190
3244
|
}
|
|
3191
|
-
const
|
|
3192
|
-
function
|
|
3245
|
+
const Nr = /* @__PURE__ */ rt(Hr, [["render", Fr]]);
|
|
3246
|
+
function Ir() {
|
|
3193
3247
|
var e = window.navigator.userAgent, t = e.indexOf("MSIE ");
|
|
3194
3248
|
if (t > 0)
|
|
3195
3249
|
return parseInt(e.substring(t + 5, e.indexOf(".", t)), 10);
|
|
@@ -3198,12 +3252,12 @@ function Ei() {
|
|
|
3198
3252
|
var n = e.indexOf("rv:");
|
|
3199
3253
|
return parseInt(e.substring(n + 3, e.indexOf(".", n)), 10);
|
|
3200
3254
|
}
|
|
3201
|
-
var
|
|
3202
|
-
return
|
|
3255
|
+
var r = e.indexOf("Edge/");
|
|
3256
|
+
return r > 0 ? parseInt(e.substring(r + 5, e.indexOf(".", r)), 10) : -1;
|
|
3203
3257
|
}
|
|
3204
|
-
let
|
|
3205
|
-
function
|
|
3206
|
-
|
|
3258
|
+
let Ze;
|
|
3259
|
+
function bt() {
|
|
3260
|
+
bt.init || (bt.init = !0, Ze = Ir() !== -1);
|
|
3207
3261
|
}
|
|
3208
3262
|
var it = {
|
|
3209
3263
|
name: "ResizeObserver",
|
|
@@ -3225,11 +3279,11 @@ var it = {
|
|
|
3225
3279
|
"notify"
|
|
3226
3280
|
],
|
|
3227
3281
|
mounted() {
|
|
3228
|
-
|
|
3282
|
+
bt(), Ee(() => {
|
|
3229
3283
|
this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitOnMount && this.emitSize();
|
|
3230
3284
|
});
|
|
3231
3285
|
const e = document.createElement("object");
|
|
3232
|
-
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);
|
|
3233
3287
|
},
|
|
3234
3288
|
beforeUnmount() {
|
|
3235
3289
|
this.removeResizeHandlers();
|
|
@@ -3248,34 +3302,34 @@ var it = {
|
|
|
3248
3302
|
this._resizeObject.contentDocument.defaultView.addEventListener("resize", this.compareAndNotify), this.compareAndNotify();
|
|
3249
3303
|
},
|
|
3250
3304
|
removeResizeHandlers() {
|
|
3251
|
-
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);
|
|
3252
3306
|
}
|
|
3253
3307
|
}
|
|
3254
3308
|
};
|
|
3255
|
-
const
|
|
3256
|
-
|
|
3257
|
-
const
|
|
3309
|
+
const Dr = /* @__PURE__ */ sn("data-v-b329ee4c");
|
|
3310
|
+
Jo("data-v-b329ee4c");
|
|
3311
|
+
const jr = {
|
|
3258
3312
|
class: "resize-observer",
|
|
3259
3313
|
tabindex: "-1"
|
|
3260
3314
|
};
|
|
3261
|
-
|
|
3262
|
-
const
|
|
3263
|
-
it.render =
|
|
3315
|
+
en();
|
|
3316
|
+
const qr = /* @__PURE__ */ Dr((e, t, o, n, r, i) => (v(), z("div", jr)));
|
|
3317
|
+
it.render = qr;
|
|
3264
3318
|
it.__scopeId = "data-v-b329ee4c";
|
|
3265
3319
|
it.__file = "src/components/ResizeObserver.vue";
|
|
3266
|
-
const
|
|
3320
|
+
const Do = (e = "theme") => ({
|
|
3267
3321
|
computed: {
|
|
3268
3322
|
themeClass() {
|
|
3269
|
-
return
|
|
3323
|
+
return zr(this[e]);
|
|
3270
3324
|
}
|
|
3271
3325
|
}
|
|
3272
|
-
}),
|
|
3326
|
+
}), Vr = Z({
|
|
3273
3327
|
name: "VPopperContent",
|
|
3274
3328
|
components: {
|
|
3275
3329
|
ResizeObserver: it
|
|
3276
3330
|
},
|
|
3277
3331
|
mixins: [
|
|
3278
|
-
|
|
3332
|
+
Do()
|
|
3279
3333
|
],
|
|
3280
3334
|
props: {
|
|
3281
3335
|
popperId: String,
|
|
@@ -3297,16 +3351,16 @@ const Ho = (e = "theme") => ({
|
|
|
3297
3351
|
return e != null && !isNaN(e) ? `${e}px` : null;
|
|
3298
3352
|
}
|
|
3299
3353
|
}
|
|
3300
|
-
}),
|
|
3354
|
+
}), Wr = ["id", "aria-hidden", "tabindex", "data-popper-placement"], Gr = {
|
|
3301
3355
|
ref: "inner",
|
|
3302
3356
|
class: "v-popper__inner"
|
|
3303
|
-
},
|
|
3304
|
-
|
|
3305
|
-
|
|
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
|
|
3306
3360
|
];
|
|
3307
|
-
function
|
|
3308
|
-
const
|
|
3309
|
-
return
|
|
3361
|
+
function Yr(e, t, o, n, r, i) {
|
|
3362
|
+
const s = He("ResizeObserver");
|
|
3363
|
+
return v(), B("div", {
|
|
3310
3364
|
id: e.popperId,
|
|
3311
3365
|
ref: "popover",
|
|
3312
3366
|
class: N(["v-popper__popper", [
|
|
@@ -3324,48 +3378,48 @@ function Gi(e, t, o, n, i, r) {
|
|
|
3324
3378
|
"v-popper__popper--no-positioning": !e.result
|
|
3325
3379
|
}
|
|
3326
3380
|
]]),
|
|
3327
|
-
style:
|
|
3381
|
+
style: he(e.result ? {
|
|
3328
3382
|
position: e.result.strategy,
|
|
3329
3383
|
transform: `translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`
|
|
3330
3384
|
} : void 0),
|
|
3331
3385
|
"aria-hidden": e.shown ? "false" : "true",
|
|
3332
3386
|
tabindex: e.autoHide ? 0 : void 0,
|
|
3333
3387
|
"data-popper-placement": e.result ? e.result.placement : void 0,
|
|
3334
|
-
onKeyup: t[2] || (t[2] =
|
|
3388
|
+
onKeyup: t[2] || (t[2] = kt((a) => e.autoHide && e.$emit("hide"), ["esc"]))
|
|
3335
3389
|
}, [
|
|
3336
|
-
|
|
3390
|
+
T("div", {
|
|
3337
3391
|
class: "v-popper__backdrop",
|
|
3338
|
-
onClick: t[0] || (t[0] = (
|
|
3392
|
+
onClick: t[0] || (t[0] = (a) => e.autoHide && e.$emit("hide"))
|
|
3339
3393
|
}),
|
|
3340
|
-
|
|
3394
|
+
T("div", {
|
|
3341
3395
|
class: "v-popper__wrapper",
|
|
3342
|
-
style:
|
|
3396
|
+
style: he(e.result ? {
|
|
3343
3397
|
transformOrigin: e.result.transformOrigin
|
|
3344
3398
|
} : void 0)
|
|
3345
3399
|
}, [
|
|
3346
|
-
|
|
3347
|
-
e.mounted ? (
|
|
3348
|
-
|
|
3349
|
-
|
|
3400
|
+
T("div", Gr, [
|
|
3401
|
+
e.mounted ? (v(), B(we, { key: 0 }, [
|
|
3402
|
+
T("div", null, [
|
|
3403
|
+
V(e.$slots, "default")
|
|
3350
3404
|
]),
|
|
3351
|
-
e.handleResize ? (
|
|
3405
|
+
e.handleResize ? (v(), z(s, {
|
|
3352
3406
|
key: 0,
|
|
3353
|
-
onNotify: t[1] || (t[1] = (
|
|
3354
|
-
})) :
|
|
3355
|
-
], 64)) :
|
|
3407
|
+
onNotify: t[1] || (t[1] = (a) => e.$emit("resize", a))
|
|
3408
|
+
})) : R("", !0)
|
|
3409
|
+
], 64)) : R("", !0)
|
|
3356
3410
|
], 512),
|
|
3357
|
-
|
|
3411
|
+
T("div", {
|
|
3358
3412
|
ref: "arrow",
|
|
3359
3413
|
class: "v-popper__arrow-container",
|
|
3360
|
-
style:
|
|
3414
|
+
style: he(e.result ? {
|
|
3361
3415
|
left: e.toPx(e.result.arrow.x),
|
|
3362
3416
|
top: e.toPx(e.result.arrow.y)
|
|
3363
3417
|
} : void 0)
|
|
3364
|
-
},
|
|
3418
|
+
}, Xr, 4)
|
|
3365
3419
|
], 4)
|
|
3366
|
-
], 46,
|
|
3420
|
+
], 46, Wr);
|
|
3367
3421
|
}
|
|
3368
|
-
const
|
|
3422
|
+
const jo = /* @__PURE__ */ rt(Vr, [["render", Yr]]), qo = {
|
|
3369
3423
|
methods: {
|
|
3370
3424
|
show(...e) {
|
|
3371
3425
|
return this.$refs.popper.show(...e);
|
|
@@ -3381,18 +3435,18 @@ const Fo = /* @__PURE__ */ nt(Ii, [["render", Gi]]), No = {
|
|
|
3381
3435
|
}
|
|
3382
3436
|
}
|
|
3383
3437
|
};
|
|
3384
|
-
let
|
|
3438
|
+
let xt = function() {
|
|
3385
3439
|
};
|
|
3386
|
-
typeof window < "u" && (
|
|
3387
|
-
const
|
|
3440
|
+
typeof window < "u" && (xt = window.Element);
|
|
3441
|
+
const Qr = Z({
|
|
3388
3442
|
name: "VPopperWrapper",
|
|
3389
3443
|
components: {
|
|
3390
|
-
Popper:
|
|
3391
|
-
PopperContent:
|
|
3444
|
+
Popper: Nr,
|
|
3445
|
+
PopperContent: jo
|
|
3392
3446
|
},
|
|
3393
3447
|
mixins: [
|
|
3394
|
-
|
|
3395
|
-
|
|
3448
|
+
qo,
|
|
3449
|
+
Do("finalTheme")
|
|
3396
3450
|
],
|
|
3397
3451
|
props: {
|
|
3398
3452
|
theme: {
|
|
@@ -3464,11 +3518,11 @@ const Zi = Z({
|
|
|
3464
3518
|
default: void 0
|
|
3465
3519
|
},
|
|
3466
3520
|
container: {
|
|
3467
|
-
type: [String, Object,
|
|
3521
|
+
type: [String, Object, xt, Boolean],
|
|
3468
3522
|
default: void 0
|
|
3469
3523
|
},
|
|
3470
3524
|
boundary: {
|
|
3471
|
-
type: [String,
|
|
3525
|
+
type: [String, xt],
|
|
3472
3526
|
default: void 0
|
|
3473
3527
|
},
|
|
3474
3528
|
strategy: {
|
|
@@ -3580,9 +3634,9 @@ const Zi = Z({
|
|
|
3580
3634
|
}
|
|
3581
3635
|
}
|
|
3582
3636
|
});
|
|
3583
|
-
function
|
|
3584
|
-
const
|
|
3585
|
-
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, {
|
|
3586
3640
|
theme: e.finalTheme,
|
|
3587
3641
|
"target-nodes": e.getTargetNodes,
|
|
3588
3642
|
"popper-node": () => e.$refs.popperContent.$el,
|
|
@@ -3599,42 +3653,42 @@ function Ui(e, t, o, n, i, r) {
|
|
|
3599
3653
|
onAutoHide: t[7] || (t[7] = () => e.$emit("auto-hide")),
|
|
3600
3654
|
onResize: t[8] || (t[8] = () => e.$emit("resize"))
|
|
3601
3655
|
}), {
|
|
3602
|
-
default:
|
|
3656
|
+
default: $(({
|
|
3603
3657
|
popperId: l,
|
|
3604
3658
|
isShown: u,
|
|
3605
|
-
shouldMountContent:
|
|
3659
|
+
shouldMountContent: f,
|
|
3606
3660
|
skipTransition: d,
|
|
3607
|
-
autoHide:
|
|
3661
|
+
autoHide: c,
|
|
3608
3662
|
show: y,
|
|
3609
|
-
hide:
|
|
3663
|
+
hide: m,
|
|
3610
3664
|
handleResize: x,
|
|
3611
|
-
onResize:
|
|
3612
|
-
classes:
|
|
3613
|
-
result:
|
|
3665
|
+
onResize: g,
|
|
3666
|
+
classes: h,
|
|
3667
|
+
result: w
|
|
3614
3668
|
}) => [
|
|
3615
|
-
|
|
3669
|
+
V(e.$slots, "default", {
|
|
3616
3670
|
shown: u,
|
|
3617
3671
|
show: y,
|
|
3618
|
-
hide:
|
|
3672
|
+
hide: m
|
|
3619
3673
|
}),
|
|
3620
|
-
F(
|
|
3674
|
+
F(s, {
|
|
3621
3675
|
ref: "popperContent",
|
|
3622
3676
|
"popper-id": l,
|
|
3623
3677
|
theme: e.finalTheme,
|
|
3624
3678
|
shown: u,
|
|
3625
|
-
mounted:
|
|
3679
|
+
mounted: f,
|
|
3626
3680
|
"skip-transition": d,
|
|
3627
|
-
"auto-hide":
|
|
3681
|
+
"auto-hide": c,
|
|
3628
3682
|
"handle-resize": x,
|
|
3629
|
-
classes:
|
|
3630
|
-
result:
|
|
3631
|
-
onHide:
|
|
3632
|
-
onResize:
|
|
3683
|
+
classes: h,
|
|
3684
|
+
result: w,
|
|
3685
|
+
onHide: m,
|
|
3686
|
+
onResize: g
|
|
3633
3687
|
}, {
|
|
3634
|
-
default:
|
|
3635
|
-
|
|
3688
|
+
default: $(() => [
|
|
3689
|
+
V(e.$slots, "popper", {
|
|
3636
3690
|
shown: u,
|
|
3637
|
-
hide:
|
|
3691
|
+
hide: m
|
|
3638
3692
|
})
|
|
3639
3693
|
]),
|
|
3640
3694
|
_: 2
|
|
@@ -3643,26 +3697,26 @@ function Ui(e, t, o, n, i, r) {
|
|
|
3643
3697
|
_: 3
|
|
3644
3698
|
}, 16, ["theme", "target-nodes", "popper-node", "class"]);
|
|
3645
3699
|
}
|
|
3646
|
-
const
|
|
3647
|
-
...
|
|
3700
|
+
const Tt = /* @__PURE__ */ rt(Qr, [["render", Kr]]), Jr = {
|
|
3701
|
+
...Tt,
|
|
3648
3702
|
name: "VDropdown",
|
|
3649
3703
|
vPopperTheme: "dropdown"
|
|
3650
|
-
},
|
|
3651
|
-
...
|
|
3704
|
+
}, ei = {
|
|
3705
|
+
...Tt,
|
|
3652
3706
|
name: "VMenu",
|
|
3653
3707
|
vPopperTheme: "menu"
|
|
3654
|
-
},
|
|
3655
|
-
...
|
|
3708
|
+
}, ti = {
|
|
3709
|
+
...Tt,
|
|
3656
3710
|
name: "VTooltip",
|
|
3657
3711
|
vPopperTheme: "tooltip"
|
|
3658
|
-
},
|
|
3712
|
+
}, oi = Z({
|
|
3659
3713
|
name: "VTooltipDirective",
|
|
3660
3714
|
components: {
|
|
3661
|
-
Popper:
|
|
3662
|
-
PopperContent:
|
|
3715
|
+
Popper: No(),
|
|
3716
|
+
PopperContent: jo
|
|
3663
3717
|
},
|
|
3664
3718
|
mixins: [
|
|
3665
|
-
|
|
3719
|
+
qo
|
|
3666
3720
|
],
|
|
3667
3721
|
inheritAttrs: !1,
|
|
3668
3722
|
props: {
|
|
@@ -3735,29 +3789,29 @@ const St = /* @__PURE__ */ nt(Zi, [["render", Ui]]), Xi = {
|
|
|
3735
3789
|
this.$_isShown = !1;
|
|
3736
3790
|
}
|
|
3737
3791
|
}
|
|
3738
|
-
}),
|
|
3739
|
-
function
|
|
3740
|
-
const
|
|
3741
|
-
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, {
|
|
3742
3796
|
theme: e.theme,
|
|
3743
3797
|
"target-nodes": e.targetNodes,
|
|
3744
3798
|
"popper-node": () => e.$refs.popperContent.$el,
|
|
3745
3799
|
onApplyShow: e.onShow,
|
|
3746
3800
|
onApplyHide: e.onHide
|
|
3747
3801
|
}), {
|
|
3748
|
-
default:
|
|
3802
|
+
default: $(({
|
|
3749
3803
|
popperId: l,
|
|
3750
3804
|
isShown: u,
|
|
3751
|
-
shouldMountContent:
|
|
3805
|
+
shouldMountContent: f,
|
|
3752
3806
|
skipTransition: d,
|
|
3753
|
-
autoHide:
|
|
3807
|
+
autoHide: c,
|
|
3754
3808
|
hide: y,
|
|
3755
|
-
handleResize:
|
|
3809
|
+
handleResize: m,
|
|
3756
3810
|
onResize: x,
|
|
3757
|
-
classes:
|
|
3758
|
-
result:
|
|
3811
|
+
classes: g,
|
|
3812
|
+
result: h
|
|
3759
3813
|
}) => [
|
|
3760
|
-
F(
|
|
3814
|
+
F(s, {
|
|
3761
3815
|
ref: "popperContent",
|
|
3762
3816
|
class: N({
|
|
3763
3817
|
"v-popper--tooltip-loading": e.loading
|
|
@@ -3765,23 +3819,23 @@ function tr(e, t, o, n, i, r) {
|
|
|
3765
3819
|
"popper-id": l,
|
|
3766
3820
|
theme: e.theme,
|
|
3767
3821
|
shown: u,
|
|
3768
|
-
mounted:
|
|
3822
|
+
mounted: f,
|
|
3769
3823
|
"skip-transition": d,
|
|
3770
|
-
"auto-hide":
|
|
3771
|
-
"handle-resize":
|
|
3772
|
-
classes:
|
|
3773
|
-
result:
|
|
3824
|
+
"auto-hide": c,
|
|
3825
|
+
"handle-resize": m,
|
|
3826
|
+
classes: g,
|
|
3827
|
+
result: h,
|
|
3774
3828
|
onHide: y,
|
|
3775
3829
|
onResize: x
|
|
3776
3830
|
}, {
|
|
3777
|
-
default:
|
|
3778
|
-
e.html ? (
|
|
3831
|
+
default: $(() => [
|
|
3832
|
+
e.html ? (v(), B("div", {
|
|
3779
3833
|
key: 0,
|
|
3780
3834
|
innerHTML: e.finalContent
|
|
3781
|
-
}, null, 8,
|
|
3835
|
+
}, null, 8, ni)) : (v(), B("div", {
|
|
3782
3836
|
key: 1,
|
|
3783
3837
|
textContent: G(e.finalContent)
|
|
3784
|
-
}, null, 8,
|
|
3838
|
+
}, null, 8, ri))
|
|
3785
3839
|
]),
|
|
3786
3840
|
_: 2
|
|
3787
3841
|
}, 1032, ["class", "popper-id", "theme", "shown", "mounted", "skip-transition", "auto-hide", "handle-resize", "classes", "result", "onHide", "onResize"])
|
|
@@ -3789,24 +3843,24 @@ function tr(e, t, o, n, i, r) {
|
|
|
3789
3843
|
_: 1
|
|
3790
3844
|
}, 16, ["theme", "target-nodes", "popper-node", "onApplyShow", "onApplyHide"]);
|
|
3791
3845
|
}
|
|
3792
|
-
const
|
|
3793
|
-
function
|
|
3846
|
+
const si = /* @__PURE__ */ rt(oi, [["render", ii]]), Vo = "v-popper--has-tooltip";
|
|
3847
|
+
function ai(e, t) {
|
|
3794
3848
|
let o = e.placement;
|
|
3795
3849
|
if (!o && t)
|
|
3796
|
-
for (const n of
|
|
3850
|
+
for (const n of Fo)
|
|
3797
3851
|
t[n] && (o = n);
|
|
3798
3852
|
return o || (o = De(e.theme || "tooltip", "placement")), o;
|
|
3799
3853
|
}
|
|
3800
|
-
function
|
|
3854
|
+
function Wo(e, t, o) {
|
|
3801
3855
|
let n;
|
|
3802
|
-
const
|
|
3803
|
-
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;
|
|
3804
3858
|
}
|
|
3805
|
-
let
|
|
3806
|
-
function
|
|
3807
|
-
if (
|
|
3859
|
+
let ut, je, li = 0;
|
|
3860
|
+
function ui() {
|
|
3861
|
+
if (ut)
|
|
3808
3862
|
return;
|
|
3809
|
-
je =
|
|
3863
|
+
je = q([]), ut = nn({
|
|
3810
3864
|
name: "VTooltipDirectiveApp",
|
|
3811
3865
|
setup() {
|
|
3812
3866
|
return {
|
|
@@ -3814,7 +3868,7 @@ function rr() {
|
|
|
3814
3868
|
};
|
|
3815
3869
|
},
|
|
3816
3870
|
render() {
|
|
3817
|
-
return this.directives.map((t) =>
|
|
3871
|
+
return this.directives.map((t) => rn(si, {
|
|
3818
3872
|
...t.options,
|
|
3819
3873
|
shown: t.shown || t.options.shown,
|
|
3820
3874
|
key: t.id
|
|
@@ -3825,81 +3879,81 @@ function rr() {
|
|
|
3825
3879
|
}
|
|
3826
3880
|
});
|
|
3827
3881
|
const e = document.createElement("div");
|
|
3828
|
-
document.body.appendChild(e),
|
|
3882
|
+
document.body.appendChild(e), ut.mount(e);
|
|
3829
3883
|
}
|
|
3830
|
-
function
|
|
3831
|
-
|
|
3832
|
-
const n =
|
|
3833
|
-
id:
|
|
3884
|
+
function ci(e, t, o) {
|
|
3885
|
+
ui();
|
|
3886
|
+
const n = q(Wo(e, t, o)), r = q(!1), i = {
|
|
3887
|
+
id: li++,
|
|
3834
3888
|
options: n,
|
|
3835
|
-
shown:
|
|
3889
|
+
shown: r
|
|
3836
3890
|
};
|
|
3837
|
-
return je.value.push(
|
|
3891
|
+
return je.value.push(i), e.classList && e.classList.add(Vo), e.$_popper = {
|
|
3838
3892
|
options: n,
|
|
3839
|
-
item:
|
|
3893
|
+
item: i,
|
|
3840
3894
|
show() {
|
|
3841
|
-
|
|
3895
|
+
r.value = !0;
|
|
3842
3896
|
},
|
|
3843
3897
|
hide() {
|
|
3844
|
-
|
|
3898
|
+
r.value = !1;
|
|
3845
3899
|
}
|
|
3846
3900
|
};
|
|
3847
3901
|
}
|
|
3848
|
-
function
|
|
3902
|
+
function Go(e) {
|
|
3849
3903
|
if (e.$_popper) {
|
|
3850
3904
|
const t = je.value.indexOf(e.$_popper.item);
|
|
3851
3905
|
t !== -1 && je.value.splice(t, 1), delete e.$_popper, delete e.$_popperOldShown, delete e.$_popperMountTarget;
|
|
3852
3906
|
}
|
|
3853
|
-
e.classList && e.classList.remove(
|
|
3907
|
+
e.classList && e.classList.remove(Vo);
|
|
3854
3908
|
}
|
|
3855
3909
|
function Kt(e, { value: t, modifiers: o }) {
|
|
3856
|
-
const n =
|
|
3910
|
+
const n = Wo(e, t, o);
|
|
3857
3911
|
if (!n.content || De(n.theme || "tooltip", "disabled"))
|
|
3858
|
-
|
|
3912
|
+
Go(e);
|
|
3859
3913
|
else {
|
|
3860
|
-
let
|
|
3861
|
-
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());
|
|
3862
3916
|
}
|
|
3863
3917
|
}
|
|
3864
|
-
const
|
|
3918
|
+
const di = {
|
|
3865
3919
|
beforeMount: Kt,
|
|
3866
3920
|
updated: Kt,
|
|
3867
3921
|
beforeUnmount(e) {
|
|
3868
|
-
|
|
3922
|
+
Go(e);
|
|
3869
3923
|
}
|
|
3870
3924
|
};
|
|
3871
3925
|
function Jt(e) {
|
|
3872
|
-
e.addEventListener("mousedown",
|
|
3926
|
+
e.addEventListener("mousedown", Ke), e.addEventListener("click", Ke), e.addEventListener("touchstart", Zo, Be ? {
|
|
3873
3927
|
passive: !0
|
|
3874
3928
|
} : !1);
|
|
3875
3929
|
}
|
|
3876
3930
|
function eo(e) {
|
|
3877
|
-
e.removeEventListener("mousedown",
|
|
3931
|
+
e.removeEventListener("mousedown", Ke), e.removeEventListener("click", Ke), e.removeEventListener("touchstart", Zo), e.removeEventListener("touchend", Uo), e.removeEventListener("touchcancel", Xo);
|
|
3878
3932
|
}
|
|
3879
|
-
function
|
|
3933
|
+
function Ke(e) {
|
|
3880
3934
|
const t = e.currentTarget;
|
|
3881
3935
|
e.closePopover = !t.$_vclosepopover_touch, e.closeAllPopover = t.$_closePopoverModifiers && !!t.$_closePopoverModifiers.all;
|
|
3882
3936
|
}
|
|
3883
|
-
function
|
|
3937
|
+
function Zo(e) {
|
|
3884
3938
|
if (e.changedTouches.length === 1) {
|
|
3885
3939
|
const t = e.currentTarget;
|
|
3886
3940
|
t.$_vclosepopover_touch = !0;
|
|
3887
3941
|
const o = e.changedTouches[0];
|
|
3888
|
-
t.$_vclosepopover_touchPoint = o, t.addEventListener("touchend",
|
|
3942
|
+
t.$_vclosepopover_touchPoint = o, t.addEventListener("touchend", Uo), t.addEventListener("touchcancel", Xo);
|
|
3889
3943
|
}
|
|
3890
3944
|
}
|
|
3891
|
-
function
|
|
3945
|
+
function Uo(e) {
|
|
3892
3946
|
const t = e.currentTarget;
|
|
3893
3947
|
if (t.$_vclosepopover_touch = !1, e.changedTouches.length === 1) {
|
|
3894
3948
|
const o = e.changedTouches[0], n = t.$_vclosepopover_touchPoint;
|
|
3895
3949
|
e.closePopover = Math.abs(o.screenY - n.screenY) < 20 && Math.abs(o.screenX - n.screenX) < 20, e.closeAllPopover = t.$_closePopoverModifiers && !!t.$_closePopoverModifiers.all;
|
|
3896
3950
|
}
|
|
3897
3951
|
}
|
|
3898
|
-
function
|
|
3952
|
+
function Xo(e) {
|
|
3899
3953
|
const t = e.currentTarget;
|
|
3900
3954
|
t.$_vclosepopover_touch = !1;
|
|
3901
3955
|
}
|
|
3902
|
-
const
|
|
3956
|
+
const pi = {
|
|
3903
3957
|
beforeMount(e, { value: t, modifiers: o }) {
|
|
3904
3958
|
e.$_closePopoverModifiers = o, (typeof t > "u" || t) && Jt(e);
|
|
3905
3959
|
},
|
|
@@ -3910,25 +3964,25 @@ const lr = {
|
|
|
3910
3964
|
eo(e);
|
|
3911
3965
|
}
|
|
3912
3966
|
};
|
|
3913
|
-
function
|
|
3914
|
-
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));
|
|
3915
3969
|
}
|
|
3916
|
-
const
|
|
3970
|
+
const yi = {
|
|
3917
3971
|
// eslint-disable-next-line no-undef
|
|
3918
3972
|
version: "5.2.2",
|
|
3919
|
-
install:
|
|
3973
|
+
install: fi,
|
|
3920
3974
|
options: ae
|
|
3921
|
-
},
|
|
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 = {
|
|
3922
3976
|
marketplace: "https://svgl.app/library/mercado-libre.svg",
|
|
3923
|
-
shipping: `${
|
|
3924
|
-
exchange: `${
|
|
3925
|
-
returns: `${
|
|
3926
|
-
support: `${
|
|
3927
|
-
chat: `${
|
|
3928
|
-
cancel: `${
|
|
3929
|
-
payment: `${
|
|
3930
|
-
},
|
|
3931
|
-
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,
|
|
3932
3986
|
title: "Mercado Livre",
|
|
3933
3987
|
subtitle: "Atendimento online"
|
|
3934
3988
|
}, K = (e, t, o) => ({
|
|
@@ -3936,18 +3990,18 @@ const cr = {
|
|
|
3936
3990
|
eyebrow: "MERCADO LIVRE",
|
|
3937
3991
|
title: t,
|
|
3938
3992
|
subtitle: o
|
|
3939
|
-
}),
|
|
3993
|
+
}), st = [
|
|
3940
3994
|
{ name: "name", alias: "Nome", required: !0 },
|
|
3941
3995
|
{ name: "phone", alias: "Telefone", required: !0 },
|
|
3942
3996
|
{ name: "email", alias: "E-mail", required: !1 }
|
|
3943
|
-
],
|
|
3997
|
+
], gi = [
|
|
3944
3998
|
{ name: "name", alias: "Nome", required: !0 },
|
|
3945
3999
|
{ name: "phone", alias: "Telefone", required: !0 },
|
|
3946
4000
|
{ name: "email", alias: "E-mail", required: !1 },
|
|
3947
4001
|
{ name: "cpf", alias: "CPF", required: !0 }
|
|
3948
4002
|
], J = (e) => ({
|
|
3949
4003
|
id: e.id,
|
|
3950
|
-
companyId:
|
|
4004
|
+
companyId: hi,
|
|
3951
4005
|
name: e.name,
|
|
3952
4006
|
action: e.action,
|
|
3953
4007
|
message: null,
|
|
@@ -3977,8 +4031,8 @@ const cr = {
|
|
|
3977
4031
|
name: "Acompanhar pedido",
|
|
3978
4032
|
action: "service",
|
|
3979
4033
|
settings: {
|
|
3980
|
-
header:
|
|
3981
|
-
body: K(
|
|
4034
|
+
header: Q,
|
|
4035
|
+
body: K(Y.shipping, "Acompanhar pedido", "Vamos te ajudar a localizar a entrega."),
|
|
3982
4036
|
features: { sendMessage: !0, sendAttachment: !0 },
|
|
3983
4037
|
behavior: "chat"
|
|
3984
4038
|
}
|
|
@@ -3987,28 +4041,28 @@ const cr = {
|
|
|
3987
4041
|
name: "Troca",
|
|
3988
4042
|
action: "service",
|
|
3989
4043
|
settings: {
|
|
3990
|
-
header:
|
|
3991
|
-
body: K(
|
|
4044
|
+
header: Q,
|
|
4045
|
+
body: K(Y.exchange, "Solicitar troca", "Vamos te orientar sobre as opções de troca."),
|
|
3992
4046
|
features: { sendMessage: !0, sendAttachment: !0 },
|
|
3993
4047
|
behavior: "chat"
|
|
3994
4048
|
}
|
|
3995
|
-
}),
|
|
4049
|
+
}), ro = J({
|
|
3996
4050
|
id: "a1111111-1111-4111-8111-111111111103",
|
|
3997
4051
|
name: "Devolução",
|
|
3998
4052
|
action: "service",
|
|
3999
4053
|
settings: {
|
|
4000
|
-
header:
|
|
4001
|
-
body: K(
|
|
4054
|
+
header: Q,
|
|
4055
|
+
body: K(Y.returns, "Solicitar devolução", "Vamos te orientar sobre a devolução."),
|
|
4002
4056
|
features: { sendMessage: !0, sendAttachment: !0 },
|
|
4003
4057
|
behavior: "chat"
|
|
4004
4058
|
}
|
|
4005
|
-
}),
|
|
4059
|
+
}), io = J({
|
|
4006
4060
|
id: "a1111111-1111-4111-8111-111111111104",
|
|
4007
4061
|
name: "Consultar solicitação",
|
|
4008
4062
|
action: "service",
|
|
4009
4063
|
settings: {
|
|
4010
|
-
header:
|
|
4011
|
-
body: K(
|
|
4064
|
+
header: Q,
|
|
4065
|
+
body: K(Y.support, "Consultar solicitação", "Conte o que você precisa sobre o atendimento."),
|
|
4012
4066
|
features: { sendMessage: !0, sendAttachment: !0 },
|
|
4013
4067
|
behavior: "chat"
|
|
4014
4068
|
}
|
|
@@ -4017,8 +4071,8 @@ const cr = {
|
|
|
4017
4071
|
name: "Falar com a equipe",
|
|
4018
4072
|
action: "service",
|
|
4019
4073
|
settings: {
|
|
4020
|
-
header:
|
|
4021
|
-
body: K(
|
|
4074
|
+
header: Q,
|
|
4075
|
+
body: K(Y.chat, "Falar com a equipe", "Conte o que você precisa e vamos te ajudar."),
|
|
4022
4076
|
features: { sendMessage: !0, sendAttachment: !0 },
|
|
4023
4077
|
behavior: "chat"
|
|
4024
4078
|
}
|
|
@@ -4027,8 +4081,8 @@ const cr = {
|
|
|
4027
4081
|
name: "Cancelar pedido",
|
|
4028
4082
|
action: "service",
|
|
4029
4083
|
settings: {
|
|
4030
|
-
header:
|
|
4031
|
-
body: K(
|
|
4084
|
+
header: Q,
|
|
4085
|
+
body: K(Y.cancel, "Cancelar pedido", "Vamos verificar se o pedido ainda pode ser cancelado."),
|
|
4032
4086
|
features: { sendMessage: !0, sendAttachment: !0 },
|
|
4033
4087
|
behavior: "chat"
|
|
4034
4088
|
}
|
|
@@ -4037,111 +4091,111 @@ const cr = {
|
|
|
4037
4091
|
name: "Pagamento",
|
|
4038
4092
|
action: "service",
|
|
4039
4093
|
settings: {
|
|
4040
|
-
header:
|
|
4041
|
-
body: K(
|
|
4094
|
+
header: Q,
|
|
4095
|
+
body: K(Y.payment, "Pagamento", "Dúvidas sobre Pix, boleto ou cartão."),
|
|
4042
4096
|
features: { sendMessage: !0, sendAttachment: !0 },
|
|
4043
4097
|
behavior: "chat"
|
|
4044
4098
|
}
|
|
4045
|
-
}),
|
|
4099
|
+
}), ct = J({
|
|
4046
4100
|
id: "b2222222-2222-4222-8222-222222222201",
|
|
4047
4101
|
name: "Acompanhar pedido",
|
|
4048
4102
|
action: "identification",
|
|
4049
4103
|
settings: {
|
|
4050
|
-
header:
|
|
4051
|
-
body: K(
|
|
4052
|
-
form: { fields: [...
|
|
4104
|
+
header: Q,
|
|
4105
|
+
body: K(Y.shipping, "Localizar pedido", "Informe seus dados para acompanhar a entrega."),
|
|
4106
|
+
form: { fields: [...st] }
|
|
4053
4107
|
}
|
|
4054
|
-
}),
|
|
4108
|
+
}), dt = J({
|
|
4055
4109
|
id: "b2222222-2222-4222-8222-222222222202",
|
|
4056
4110
|
name: "Solicitar troca",
|
|
4057
4111
|
action: "identification",
|
|
4058
4112
|
settings: {
|
|
4059
|
-
header:
|
|
4060
|
-
body: K(
|
|
4061
|
-
form: { fields: [...
|
|
4113
|
+
header: Q,
|
|
4114
|
+
body: K(Y.exchange, "Solicitar troca", "Informe seus dados para iniciar o atendimento."),
|
|
4115
|
+
form: { fields: [...st] }
|
|
4062
4116
|
}
|
|
4063
|
-
}),
|
|
4117
|
+
}), pt = J({
|
|
4064
4118
|
id: "b2222222-2222-4222-8222-222222222203",
|
|
4065
4119
|
name: "Solicitar devolução",
|
|
4066
4120
|
action: "identification",
|
|
4067
4121
|
settings: {
|
|
4068
|
-
header:
|
|
4069
|
-
body: K(
|
|
4070
|
-
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] }
|
|
4071
4125
|
}
|
|
4072
|
-
}),
|
|
4126
|
+
}), ft = J({
|
|
4073
4127
|
id: "b2222222-2222-4222-8222-222222222204",
|
|
4074
4128
|
name: "Cancelar pedido",
|
|
4075
4129
|
action: "identification",
|
|
4076
4130
|
settings: {
|
|
4077
|
-
header:
|
|
4078
|
-
body: K(
|
|
4079
|
-
form: { fields: [...
|
|
4131
|
+
header: Q,
|
|
4132
|
+
body: K(Y.cancel, "Cancelar pedido", "Informe seus dados para verificar o cancelamento."),
|
|
4133
|
+
form: { fields: [...gi] }
|
|
4080
4134
|
}
|
|
4081
|
-
}),
|
|
4135
|
+
}), yt = J({
|
|
4082
4136
|
id: "b2222222-2222-4222-8222-222222222205",
|
|
4083
4137
|
name: "Pagamento",
|
|
4084
4138
|
action: "identification",
|
|
4085
4139
|
settings: {
|
|
4086
|
-
header:
|
|
4087
|
-
body: K(
|
|
4088
|
-
form: { fields: [...
|
|
4140
|
+
header: Q,
|
|
4141
|
+
body: K(Y.payment, "Pagamento", "Informe seus dados para falar sobre o pagamento."),
|
|
4142
|
+
form: { fields: [...st] }
|
|
4089
4143
|
}
|
|
4090
|
-
}),
|
|
4144
|
+
}), ht = J({
|
|
4091
4145
|
id: "c3333333-3333-4333-8333-333333333301",
|
|
4092
4146
|
name: "Trocas e devoluções",
|
|
4093
4147
|
action: "screen",
|
|
4094
4148
|
settings: {
|
|
4095
|
-
header:
|
|
4096
|
-
body: K(
|
|
4149
|
+
header: Q,
|
|
4150
|
+
body: K(Y.returns, "Trocas e devoluções", "Escolha o que você precisa.")
|
|
4097
4151
|
}
|
|
4098
|
-
}),
|
|
4152
|
+
}), $t = J({
|
|
4099
4153
|
id: "d0000000-0000-4000-8000-000000000001",
|
|
4100
4154
|
name: "Mercado Livre",
|
|
4101
4155
|
action: "screen",
|
|
4102
4156
|
configId: "37b0b2d3-6a07-4567-a5ad-7456a820905d",
|
|
4103
4157
|
settings: {
|
|
4104
|
-
header:
|
|
4105
|
-
body: K(
|
|
4158
|
+
header: Q,
|
|
4159
|
+
body: K(Y.marketplace, "Como podemos ajudar?", "Escolha uma opção para continuar.")
|
|
4106
4160
|
}
|
|
4107
|
-
}),
|
|
4108
|
-
id:
|
|
4161
|
+
}), vi = {
|
|
4162
|
+
id: mi,
|
|
4109
4163
|
rules: [
|
|
4110
|
-
|
|
4111
|
-
pt,
|
|
4164
|
+
ct,
|
|
4112
4165
|
ft,
|
|
4113
4166
|
yt,
|
|
4167
|
+
ht,
|
|
4114
4168
|
so,
|
|
4115
|
-
ct,
|
|
4116
4169
|
dt,
|
|
4117
|
-
|
|
4170
|
+
pt,
|
|
4171
|
+
io,
|
|
4118
4172
|
oo,
|
|
4119
4173
|
ao,
|
|
4120
4174
|
lo,
|
|
4121
4175
|
no,
|
|
4122
|
-
|
|
4123
|
-
|
|
4176
|
+
ro,
|
|
4177
|
+
$t
|
|
4124
4178
|
],
|
|
4125
4179
|
edges: {
|
|
4126
|
-
[
|
|
4127
|
-
oe("aa2db433-f691-4b0e-b2f3-703eb131fcc1",
|
|
4128
|
-
oe("aa2db433-f691-4b0e-b2f3-703eb131fcc2",
|
|
4129
|
-
oe("aa2db433-f691-4b0e-b2f3-703eb131fcc3",
|
|
4130
|
-
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),
|
|
4131
4185
|
oe("aa2db433-f691-4b0e-b2f3-703eb131fcc5", so.id)
|
|
4132
4186
|
],
|
|
4133
|
-
[
|
|
4134
|
-
oe("bb2db433-f691-4b0e-b2f3-703eb131fcc1",
|
|
4135
|
-
oe("bb2db433-f691-4b0e-b2f3-703eb131fcc2",
|
|
4136
|
-
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)
|
|
4137
4191
|
],
|
|
4138
|
-
[
|
|
4139
|
-
[
|
|
4140
|
-
[
|
|
4141
|
-
[
|
|
4142
|
-
[
|
|
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)]
|
|
4143
4197
|
}
|
|
4144
|
-
},
|
|
4198
|
+
}, bi = $t, xi = (e) => vi.rules.find((t) => t.id === e), $i = {
|
|
4145
4199
|
configurations: {
|
|
4146
4200
|
alias: "Mercado Livre",
|
|
4147
4201
|
general: {
|
|
@@ -4164,30 +4218,30 @@ const cr = {
|
|
|
4164
4218
|
}
|
|
4165
4219
|
}
|
|
4166
4220
|
}
|
|
4167
|
-
},
|
|
4221
|
+
}, ki = {
|
|
4168
4222
|
install: (e) => {
|
|
4169
|
-
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);
|
|
4170
4224
|
}
|
|
4171
4225
|
};
|
|
4172
4226
|
export {
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4227
|
+
_e as AppButton,
|
|
4228
|
+
mo as AppCarousel,
|
|
4229
|
+
ho as AppFormTextInput,
|
|
4176
4230
|
me as AppGroup,
|
|
4177
4231
|
ne as AppIcon,
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4232
|
+
go as AppIdentificationPage,
|
|
4233
|
+
wo as AppMessage,
|
|
4234
|
+
ko as AppScreenPage,
|
|
4235
|
+
bo as AppServicePage,
|
|
4236
|
+
j as AppText,
|
|
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
|
|
4193
4247
|
};
|