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