@opens/widget-ui 1.0.1 → 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/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/components/buttons/app-button.vue.d.ts +5 -5
- package/dist/components/icons/app-icon.vue.d.ts +1 -1
- package/dist/components/inputs/app-form-text-input.vue.d.ts +26 -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/ui/app-carousel.vue.d.ts +17 -0
- package/dist/components/widget/app-activator.vue.d.ts +1 -1
- 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-identification-page.d.ts +35 -0
- package/dist/index.d.ts +6 -1
- 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.map +1 -0
- package/dist/main.d.ts +13 -1
- 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/ui/app-carousel.vue.d.ts +5 -0
- package/dist/ui/app-carousel.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 -1
- package/dist/yunique_widget_ui.css +1 -1
- package/dist/yunique_widget_ui.es.js +2215 -924
- package/dist/yunique_widget_ui.umd.js +2 -2
- package/package.json +1 -1
- package/dist/app-text-input.vue.d.ts.map +0 -1
- /package/dist/{app-text-input.vue.d.ts → inputs/app-text-input.vue.d.ts} +0 -0
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
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
3
|
left: "right",
|
|
4
4
|
right: "left",
|
|
5
5
|
bottom: "top",
|
|
6
6
|
top: "bottom"
|
|
7
|
-
},
|
|
7
|
+
}, nn = {
|
|
8
8
|
start: "end",
|
|
9
9
|
end: "start"
|
|
10
10
|
};
|
|
11
|
-
function
|
|
12
|
-
return
|
|
11
|
+
function mt(e, t, o) {
|
|
12
|
+
return $e(e, He(t, o));
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function _e(e, t) {
|
|
15
15
|
return typeof e == "function" ? e(t) : e;
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function de(e) {
|
|
18
18
|
return e.split("-")[0];
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function se(e) {
|
|
21
21
|
return e.split("-")[1];
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function co(e) {
|
|
24
24
|
return e === "x" ? "y" : "x";
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function _t(e) {
|
|
27
27
|
return e === "y" ? "height" : "width";
|
|
28
28
|
}
|
|
29
|
-
const
|
|
30
|
-
function
|
|
31
|
-
return
|
|
29
|
+
const rn = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
30
|
+
function pe(e) {
|
|
31
|
+
return rn.has(de(e)) ? "y" : "x";
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
return
|
|
33
|
+
function kt(e) {
|
|
34
|
+
return co(pe(e));
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function po(e, t, o) {
|
|
37
37
|
o === void 0 && (o = !1);
|
|
38
|
-
const n =
|
|
39
|
-
let
|
|
40
|
-
return t.reference[r] > t.floating[r] && (
|
|
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
41
|
}
|
|
42
|
-
function
|
|
43
|
-
const t =
|
|
44
|
-
return [
|
|
42
|
+
function sn(e) {
|
|
43
|
+
const t = Ue(e);
|
|
44
|
+
return [Ze(e), t, Ze(t)];
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
return e.replace(/start|end/g, (t) =>
|
|
46
|
+
function Ze(e) {
|
|
47
|
+
return e.replace(/start|end/g, (t) => nn[t]);
|
|
48
48
|
}
|
|
49
|
-
const
|
|
50
|
-
function
|
|
49
|
+
const Rt = ["left", "right"], Lt = ["right", "left"], an = ["top", "bottom"], ln = ["bottom", "top"];
|
|
50
|
+
function un(e, t, o) {
|
|
51
51
|
switch (e) {
|
|
52
52
|
case "top":
|
|
53
53
|
case "bottom":
|
|
54
|
-
return o ? t ?
|
|
54
|
+
return o ? t ? Lt : Rt : t ? Rt : Lt;
|
|
55
55
|
case "left":
|
|
56
56
|
case "right":
|
|
57
|
-
return t ?
|
|
57
|
+
return t ? an : ln;
|
|
58
58
|
default:
|
|
59
59
|
return [];
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
function
|
|
63
|
-
const i =
|
|
64
|
-
let r =
|
|
65
|
-
return i && (r = r.map((
|
|
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
66
|
}
|
|
67
|
-
function
|
|
68
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
67
|
+
function Ue(e) {
|
|
68
|
+
return e.replace(/left|right|bottom|top/g, (t) => on[t]);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function dn(e) {
|
|
71
71
|
return {
|
|
72
72
|
top: 0,
|
|
73
73
|
right: 0,
|
|
@@ -76,15 +76,15 @@ function vo(e) {
|
|
|
76
76
|
...e
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
return typeof e != "number" ?
|
|
79
|
+
function fo(e) {
|
|
80
|
+
return typeof e != "number" ? dn(e) : {
|
|
81
81
|
top: e,
|
|
82
82
|
right: e,
|
|
83
83
|
bottom: e,
|
|
84
84
|
left: e
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function Re(e) {
|
|
88
88
|
const {
|
|
89
89
|
x: t,
|
|
90
90
|
y: o,
|
|
@@ -102,161 +102,161 @@ function ge(e) {
|
|
|
102
102
|
y: o
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function zt(e, t, o) {
|
|
106
106
|
let {
|
|
107
107
|
reference: n,
|
|
108
108
|
floating: i
|
|
109
109
|
} = e;
|
|
110
|
-
const r =
|
|
111
|
-
let
|
|
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
112
|
switch (l) {
|
|
113
113
|
case "top":
|
|
114
|
-
|
|
115
|
-
x:
|
|
114
|
+
h = {
|
|
115
|
+
x: c,
|
|
116
116
|
y: n.y - i.height
|
|
117
117
|
};
|
|
118
118
|
break;
|
|
119
119
|
case "bottom":
|
|
120
|
-
|
|
121
|
-
x:
|
|
120
|
+
h = {
|
|
121
|
+
x: c,
|
|
122
122
|
y: n.y + n.height
|
|
123
123
|
};
|
|
124
124
|
break;
|
|
125
125
|
case "right":
|
|
126
|
-
|
|
126
|
+
h = {
|
|
127
127
|
x: n.x + n.width,
|
|
128
128
|
y: d
|
|
129
129
|
};
|
|
130
130
|
break;
|
|
131
131
|
case "left":
|
|
132
|
-
|
|
132
|
+
h = {
|
|
133
133
|
x: n.x - i.width,
|
|
134
134
|
y: d
|
|
135
135
|
};
|
|
136
136
|
break;
|
|
137
137
|
default:
|
|
138
|
-
|
|
138
|
+
h = {
|
|
139
139
|
x: n.x,
|
|
140
140
|
y: n.y
|
|
141
141
|
};
|
|
142
142
|
}
|
|
143
|
-
switch (
|
|
143
|
+
switch (se(t)) {
|
|
144
144
|
case "start":
|
|
145
|
-
|
|
145
|
+
h[a] -= y * (o && u ? -1 : 1);
|
|
146
146
|
break;
|
|
147
147
|
case "end":
|
|
148
|
-
|
|
148
|
+
h[a] += y * (o && u ? -1 : 1);
|
|
149
149
|
break;
|
|
150
150
|
}
|
|
151
|
-
return
|
|
151
|
+
return h;
|
|
152
152
|
}
|
|
153
|
-
const
|
|
153
|
+
const pn = async (e, t, o) => {
|
|
154
154
|
const {
|
|
155
155
|
placement: n = "bottom",
|
|
156
156
|
strategy: i = "absolute",
|
|
157
157
|
middleware: r = [],
|
|
158
|
-
platform:
|
|
159
|
-
} = o,
|
|
160
|
-
let u = await
|
|
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
161
|
reference: e,
|
|
162
162
|
floating: t,
|
|
163
163
|
strategy: i
|
|
164
164
|
}), {
|
|
165
|
-
x:
|
|
165
|
+
x: c,
|
|
166
166
|
y: d
|
|
167
|
-
} =
|
|
168
|
-
for (let
|
|
167
|
+
} = zt(u, n, l), y = n, h = {}, v = 0;
|
|
168
|
+
for (let b = 0; b < s.length; b++) {
|
|
169
169
|
const {
|
|
170
|
-
name:
|
|
171
|
-
fn:
|
|
172
|
-
} =
|
|
170
|
+
name: f,
|
|
171
|
+
fn: m
|
|
172
|
+
} = s[b], {
|
|
173
173
|
x: w,
|
|
174
|
-
y:
|
|
175
|
-
data:
|
|
176
|
-
reset:
|
|
177
|
-
} = await
|
|
178
|
-
x:
|
|
174
|
+
y: k,
|
|
175
|
+
data: T,
|
|
176
|
+
reset: L
|
|
177
|
+
} = await m({
|
|
178
|
+
x: c,
|
|
179
179
|
y: d,
|
|
180
180
|
initialPlacement: n,
|
|
181
|
-
placement:
|
|
181
|
+
placement: y,
|
|
182
182
|
strategy: i,
|
|
183
|
-
middlewareData:
|
|
183
|
+
middlewareData: h,
|
|
184
184
|
rects: u,
|
|
185
|
-
platform:
|
|
185
|
+
platform: a,
|
|
186
186
|
elements: {
|
|
187
187
|
reference: e,
|
|
188
188
|
floating: t
|
|
189
189
|
}
|
|
190
190
|
});
|
|
191
|
-
|
|
192
|
-
...
|
|
193
|
-
[
|
|
194
|
-
...
|
|
195
|
-
...
|
|
191
|
+
c = w ?? c, d = k ?? d, h = {
|
|
192
|
+
...h,
|
|
193
|
+
[f]: {
|
|
194
|
+
...h[f],
|
|
195
|
+
...T
|
|
196
196
|
}
|
|
197
|
-
},
|
|
197
|
+
}, L && v <= 50 && (v++, typeof L == "object" && (L.placement && (y = L.placement), L.rects && (u = L.rects === !0 ? await a.getElementRects({
|
|
198
198
|
reference: e,
|
|
199
199
|
floating: t,
|
|
200
200
|
strategy: i
|
|
201
|
-
}) :
|
|
202
|
-
x:
|
|
201
|
+
}) : L.rects), {
|
|
202
|
+
x: c,
|
|
203
203
|
y: d
|
|
204
|
-
} =
|
|
204
|
+
} = zt(u, y, l)), b = -1);
|
|
205
205
|
}
|
|
206
206
|
return {
|
|
207
|
-
x:
|
|
207
|
+
x: c,
|
|
208
208
|
y: d,
|
|
209
|
-
placement:
|
|
209
|
+
placement: y,
|
|
210
210
|
strategy: i,
|
|
211
|
-
middlewareData:
|
|
211
|
+
middlewareData: h
|
|
212
212
|
};
|
|
213
213
|
};
|
|
214
|
-
async function
|
|
214
|
+
async function Ke(e, t) {
|
|
215
215
|
var o;
|
|
216
216
|
t === void 0 && (t = {});
|
|
217
217
|
const {
|
|
218
218
|
x: n,
|
|
219
219
|
y: i,
|
|
220
220
|
platform: r,
|
|
221
|
-
rects:
|
|
222
|
-
elements:
|
|
221
|
+
rects: a,
|
|
222
|
+
elements: s,
|
|
223
223
|
strategy: l
|
|
224
224
|
} = e, {
|
|
225
225
|
boundary: u = "clippingAncestors",
|
|
226
|
-
rootBoundary:
|
|
226
|
+
rootBoundary: c = "viewport",
|
|
227
227
|
elementContext: d = "floating",
|
|
228
|
-
altBoundary:
|
|
229
|
-
padding:
|
|
230
|
-
} =
|
|
231
|
-
element: (o = await (r.isElement == null ? void 0 : r.isElement(
|
|
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
232
|
boundary: u,
|
|
233
|
-
rootBoundary:
|
|
233
|
+
rootBoundary: c,
|
|
234
234
|
strategy: l
|
|
235
235
|
})), w = d === "floating" ? {
|
|
236
236
|
x: n,
|
|
237
237
|
y: i,
|
|
238
|
-
width:
|
|
239
|
-
height:
|
|
240
|
-
} :
|
|
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
241
|
x: 1,
|
|
242
242
|
y: 1
|
|
243
243
|
} : {
|
|
244
244
|
x: 1,
|
|
245
245
|
y: 1
|
|
246
|
-
},
|
|
247
|
-
elements:
|
|
246
|
+
}, L = Re(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
247
|
+
elements: s,
|
|
248
248
|
rect: w,
|
|
249
|
-
offsetParent:
|
|
249
|
+
offsetParent: k,
|
|
250
250
|
strategy: l
|
|
251
251
|
}) : w);
|
|
252
252
|
return {
|
|
253
|
-
top: (
|
|
254
|
-
bottom: (
|
|
255
|
-
left: (
|
|
256
|
-
right: (
|
|
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
257
|
};
|
|
258
258
|
}
|
|
259
|
-
const
|
|
259
|
+
const fn = (e) => ({
|
|
260
260
|
name: "arrow",
|
|
261
261
|
options: e,
|
|
262
262
|
async fn(t) {
|
|
@@ -265,39 +265,39 @@ const xo = (e) => ({
|
|
|
265
265
|
y: n,
|
|
266
266
|
placement: i,
|
|
267
267
|
rects: r,
|
|
268
|
-
platform:
|
|
269
|
-
elements:
|
|
268
|
+
platform: a,
|
|
269
|
+
elements: s,
|
|
270
270
|
middlewareData: l
|
|
271
271
|
} = t, {
|
|
272
272
|
element: u,
|
|
273
|
-
padding:
|
|
274
|
-
} =
|
|
273
|
+
padding: c = 0
|
|
274
|
+
} = _e(e, t) || {};
|
|
275
275
|
if (u == null)
|
|
276
276
|
return {};
|
|
277
|
-
const d =
|
|
277
|
+
const d = fo(c), y = {
|
|
278
278
|
x: o,
|
|
279
279
|
y: n
|
|
280
|
-
},
|
|
281
|
-
let
|
|
282
|
-
(!
|
|
283
|
-
const
|
|
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
284
|
return {
|
|
285
|
-
[
|
|
285
|
+
[h]: y[h] + X,
|
|
286
286
|
data: {
|
|
287
|
-
[
|
|
288
|
-
centerOffset:
|
|
289
|
-
...
|
|
290
|
-
alignmentOffset:
|
|
287
|
+
[h]: ee,
|
|
288
|
+
centerOffset: D - ee - X,
|
|
289
|
+
...G && {
|
|
290
|
+
alignmentOffset: X
|
|
291
291
|
}
|
|
292
292
|
},
|
|
293
|
-
reset:
|
|
293
|
+
reset: G
|
|
294
294
|
};
|
|
295
295
|
}
|
|
296
296
|
});
|
|
297
|
-
function
|
|
298
|
-
return (e ? [...o.filter((i) =>
|
|
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
299
|
}
|
|
300
|
-
const
|
|
300
|
+
const yn = function(e) {
|
|
301
301
|
return e === void 0 && (e = {}), {
|
|
302
302
|
name: "autoPlacement",
|
|
303
303
|
options: e,
|
|
@@ -305,67 +305,67 @@ const $o = function(e) {
|
|
|
305
305
|
var o, n, i;
|
|
306
306
|
const {
|
|
307
307
|
rects: r,
|
|
308
|
-
middlewareData:
|
|
309
|
-
placement:
|
|
308
|
+
middlewareData: a,
|
|
309
|
+
placement: s,
|
|
310
310
|
platform: l,
|
|
311
311
|
elements: u
|
|
312
312
|
} = t, {
|
|
313
|
-
crossAxis:
|
|
313
|
+
crossAxis: c = !1,
|
|
314
314
|
alignment: d,
|
|
315
|
-
allowedPlacements:
|
|
316
|
-
autoAlignment:
|
|
317
|
-
...
|
|
318
|
-
} =
|
|
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
319
|
if (w == null)
|
|
320
320
|
return {};
|
|
321
|
-
const
|
|
322
|
-
if (
|
|
321
|
+
const k = po(w, r, await (l.isRTL == null ? void 0 : l.isRTL(u.floating)));
|
|
322
|
+
if (s !== w)
|
|
323
323
|
return {
|
|
324
324
|
reset: {
|
|
325
|
-
placement:
|
|
325
|
+
placement: b[0]
|
|
326
326
|
}
|
|
327
327
|
};
|
|
328
|
-
const
|
|
328
|
+
const T = [f[de(w)], f[k[0]], f[k[1]]], L = [...((n = a.autoPlacement) == null ? void 0 : n.overflows) || [], {
|
|
329
329
|
placement: w,
|
|
330
|
-
overflows:
|
|
331
|
-
}],
|
|
332
|
-
if (
|
|
330
|
+
overflows: T
|
|
331
|
+
}], P = b[m + 1];
|
|
332
|
+
if (P)
|
|
333
333
|
return {
|
|
334
334
|
data: {
|
|
335
|
-
index:
|
|
336
|
-
overflows:
|
|
335
|
+
index: m + 1,
|
|
336
|
+
overflows: L
|
|
337
337
|
},
|
|
338
338
|
reset: {
|
|
339
|
-
placement:
|
|
339
|
+
placement: P
|
|
340
340
|
}
|
|
341
341
|
};
|
|
342
|
-
const
|
|
343
|
-
const
|
|
344
|
-
return [
|
|
342
|
+
const x = L.map((z) => {
|
|
343
|
+
const V = se(z.placement);
|
|
344
|
+
return [z.placement, V && c ? (
|
|
345
345
|
// Check along the mainAxis and main crossAxis side.
|
|
346
|
-
|
|
346
|
+
z.overflows.slice(0, 2).reduce(($, H) => $ + H, 0)
|
|
347
347
|
) : (
|
|
348
348
|
// Check only the mainAxis.
|
|
349
|
-
|
|
350
|
-
),
|
|
351
|
-
}).sort((
|
|
349
|
+
z.overflows[0]
|
|
350
|
+
), z.overflows];
|
|
351
|
+
}).sort((z, V) => z[1] - V[1]), F = ((i = x.filter((z) => z[2].slice(
|
|
352
352
|
0,
|
|
353
353
|
// Aligned placements should not check their opposite crossAxis
|
|
354
354
|
// side.
|
|
355
|
-
|
|
356
|
-
).every((
|
|
357
|
-
return
|
|
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
358
|
data: {
|
|
359
|
-
index:
|
|
360
|
-
overflows:
|
|
359
|
+
index: m + 1,
|
|
360
|
+
overflows: L
|
|
361
361
|
},
|
|
362
362
|
reset: {
|
|
363
|
-
placement:
|
|
363
|
+
placement: F
|
|
364
364
|
}
|
|
365
365
|
} : {};
|
|
366
366
|
}
|
|
367
367
|
};
|
|
368
|
-
},
|
|
368
|
+
}, mn = function(e) {
|
|
369
369
|
return e === void 0 && (e = {}), {
|
|
370
370
|
name: "flip",
|
|
371
371
|
options: e,
|
|
@@ -374,89 +374,89 @@ const $o = function(e) {
|
|
|
374
374
|
const {
|
|
375
375
|
placement: i,
|
|
376
376
|
middlewareData: r,
|
|
377
|
-
rects:
|
|
378
|
-
initialPlacement:
|
|
377
|
+
rects: a,
|
|
378
|
+
initialPlacement: s,
|
|
379
379
|
platform: l,
|
|
380
380
|
elements: u
|
|
381
381
|
} = t, {
|
|
382
|
-
mainAxis:
|
|
382
|
+
mainAxis: c = !0,
|
|
383
383
|
crossAxis: d = !0,
|
|
384
|
-
fallbackPlacements:
|
|
385
|
-
fallbackStrategy:
|
|
386
|
-
fallbackAxisSideDirection:
|
|
387
|
-
flipAlignment:
|
|
388
|
-
...
|
|
389
|
-
} =
|
|
384
|
+
fallbackPlacements: y,
|
|
385
|
+
fallbackStrategy: h = "bestFit",
|
|
386
|
+
fallbackAxisSideDirection: v = "none",
|
|
387
|
+
flipAlignment: b = !0,
|
|
388
|
+
...f
|
|
389
|
+
} = _e(e, t);
|
|
390
390
|
if ((o = r.arrow) != null && o.alignmentOffset)
|
|
391
391
|
return {};
|
|
392
|
-
const
|
|
393
|
-
!
|
|
394
|
-
const
|
|
395
|
-
let
|
|
396
|
-
if (
|
|
397
|
-
const
|
|
398
|
-
|
|
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
399
|
}
|
|
400
|
-
if (
|
|
400
|
+
if (z = [...z, {
|
|
401
401
|
placement: i,
|
|
402
|
-
overflows:
|
|
403
|
-
}], !
|
|
404
|
-
var
|
|
405
|
-
const
|
|
406
|
-
if (
|
|
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
407
|
// overflows the main axis.
|
|
408
|
-
|
|
408
|
+
z.every((te) => pe(te.placement) === w ? te.overflows[0] > 0 : !0)))
|
|
409
409
|
return {
|
|
410
410
|
data: {
|
|
411
|
-
index:
|
|
412
|
-
overflows:
|
|
411
|
+
index: D,
|
|
412
|
+
overflows: z
|
|
413
413
|
},
|
|
414
414
|
reset: {
|
|
415
|
-
placement:
|
|
415
|
+
placement: ee
|
|
416
416
|
}
|
|
417
417
|
};
|
|
418
|
-
let
|
|
419
|
-
if (!
|
|
420
|
-
switch (
|
|
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
421
|
case "bestFit": {
|
|
422
|
-
var
|
|
423
|
-
const
|
|
424
|
-
if (
|
|
425
|
-
const
|
|
426
|
-
return
|
|
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
427
|
// reading directions favoring greater width.
|
|
428
|
-
|
|
428
|
+
le === "y";
|
|
429
429
|
}
|
|
430
430
|
return !0;
|
|
431
|
-
}).map((
|
|
432
|
-
|
|
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
433
|
break;
|
|
434
434
|
}
|
|
435
435
|
case "initialPlacement":
|
|
436
|
-
|
|
436
|
+
G = s;
|
|
437
437
|
break;
|
|
438
438
|
}
|
|
439
|
-
if (i !==
|
|
439
|
+
if (i !== G)
|
|
440
440
|
return {
|
|
441
441
|
reset: {
|
|
442
|
-
placement:
|
|
442
|
+
placement: G
|
|
443
443
|
}
|
|
444
444
|
};
|
|
445
445
|
}
|
|
446
446
|
return {};
|
|
447
447
|
}
|
|
448
448
|
};
|
|
449
|
-
},
|
|
450
|
-
async function
|
|
449
|
+
}, gn = /* @__PURE__ */ new Set(["left", "top"]);
|
|
450
|
+
async function vn(e, t) {
|
|
451
451
|
const {
|
|
452
452
|
placement: o,
|
|
453
453
|
platform: n,
|
|
454
454
|
elements: i
|
|
455
|
-
} = e, r = await (n.isRTL == null ? void 0 : n.isRTL(i.floating)),
|
|
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
456
|
let {
|
|
457
|
-
mainAxis:
|
|
458
|
-
crossAxis:
|
|
459
|
-
alignmentAxis:
|
|
457
|
+
mainAxis: y,
|
|
458
|
+
crossAxis: h,
|
|
459
|
+
alignmentAxis: v
|
|
460
460
|
} = typeof d == "number" ? {
|
|
461
461
|
mainAxis: d,
|
|
462
462
|
crossAxis: 0,
|
|
@@ -466,15 +466,15 @@ async function To(e, t) {
|
|
|
466
466
|
crossAxis: d.crossAxis || 0,
|
|
467
467
|
alignmentAxis: d.alignmentAxis
|
|
468
468
|
};
|
|
469
|
-
return
|
|
470
|
-
x:
|
|
471
|
-
y:
|
|
469
|
+
return s && typeof v == "number" && (h = s === "end" ? v * -1 : v), l ? {
|
|
470
|
+
x: h * c,
|
|
471
|
+
y: y * u
|
|
472
472
|
} : {
|
|
473
|
-
x:
|
|
474
|
-
y:
|
|
473
|
+
x: y * u,
|
|
474
|
+
y: h * c
|
|
475
475
|
};
|
|
476
476
|
}
|
|
477
|
-
const
|
|
477
|
+
const wn = function(e) {
|
|
478
478
|
return e === void 0 && (e = 0), {
|
|
479
479
|
name: "offset",
|
|
480
480
|
options: e,
|
|
@@ -483,20 +483,20 @@ const Bo = function(e) {
|
|
|
483
483
|
const {
|
|
484
484
|
x: i,
|
|
485
485
|
y: r,
|
|
486
|
-
placement:
|
|
487
|
-
middlewareData:
|
|
488
|
-
} = t, l = await
|
|
489
|
-
return
|
|
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
490
|
x: i + l.x,
|
|
491
491
|
y: r + l.y,
|
|
492
492
|
data: {
|
|
493
493
|
...l,
|
|
494
|
-
placement:
|
|
494
|
+
placement: a
|
|
495
495
|
}
|
|
496
496
|
};
|
|
497
497
|
}
|
|
498
498
|
};
|
|
499
|
-
},
|
|
499
|
+
}, bn = function(e) {
|
|
500
500
|
return e === void 0 && (e = {}), {
|
|
501
501
|
name: "shift",
|
|
502
502
|
options: e,
|
|
@@ -507,52 +507,52 @@ const Bo = function(e) {
|
|
|
507
507
|
placement: i
|
|
508
508
|
} = t, {
|
|
509
509
|
mainAxis: r = !0,
|
|
510
|
-
crossAxis:
|
|
511
|
-
limiter:
|
|
512
|
-
fn: (
|
|
510
|
+
crossAxis: a = !1,
|
|
511
|
+
limiter: s = {
|
|
512
|
+
fn: (f) => {
|
|
513
513
|
let {
|
|
514
|
-
x:
|
|
514
|
+
x: m,
|
|
515
515
|
y: w
|
|
516
|
-
} =
|
|
516
|
+
} = f;
|
|
517
517
|
return {
|
|
518
|
-
x:
|
|
518
|
+
x: m,
|
|
519
519
|
y: w
|
|
520
520
|
};
|
|
521
521
|
}
|
|
522
522
|
},
|
|
523
523
|
...l
|
|
524
|
-
} =
|
|
524
|
+
} = _e(e, t), u = {
|
|
525
525
|
x: o,
|
|
526
526
|
y: n
|
|
527
|
-
},
|
|
528
|
-
let
|
|
527
|
+
}, c = await Ke(t, l), d = pe(de(i)), y = co(d);
|
|
528
|
+
let h = u[y], v = u[d];
|
|
529
529
|
if (r) {
|
|
530
|
-
const
|
|
531
|
-
|
|
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
532
|
}
|
|
533
|
-
if (
|
|
534
|
-
const
|
|
535
|
-
|
|
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
536
|
}
|
|
537
|
-
const
|
|
537
|
+
const b = s.fn({
|
|
538
538
|
...t,
|
|
539
|
-
[
|
|
540
|
-
[d]:
|
|
539
|
+
[y]: h,
|
|
540
|
+
[d]: v
|
|
541
541
|
});
|
|
542
542
|
return {
|
|
543
|
-
...
|
|
543
|
+
...b,
|
|
544
544
|
data: {
|
|
545
|
-
x:
|
|
546
|
-
y:
|
|
545
|
+
x: b.x - o,
|
|
546
|
+
y: b.y - n,
|
|
547
547
|
enabled: {
|
|
548
|
-
[
|
|
549
|
-
[d]:
|
|
548
|
+
[y]: r,
|
|
549
|
+
[d]: a
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
552
|
};
|
|
553
553
|
}
|
|
554
554
|
};
|
|
555
|
-
},
|
|
555
|
+
}, xn = function(e) {
|
|
556
556
|
return e === void 0 && (e = {}), {
|
|
557
557
|
name: "size",
|
|
558
558
|
options: e,
|
|
@@ -561,31 +561,31 @@ const Bo = function(e) {
|
|
|
561
561
|
const {
|
|
562
562
|
placement: i,
|
|
563
563
|
rects: r,
|
|
564
|
-
platform:
|
|
565
|
-
elements:
|
|
564
|
+
platform: a,
|
|
565
|
+
elements: s
|
|
566
566
|
} = t, {
|
|
567
567
|
apply: l = () => {
|
|
568
568
|
},
|
|
569
569
|
...u
|
|
570
|
-
} =
|
|
571
|
-
width:
|
|
572
|
-
height:
|
|
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
573
|
} = r.floating;
|
|
574
|
-
let
|
|
575
|
-
d === "top" || d === "bottom" ? (
|
|
576
|
-
const w =
|
|
577
|
-
let
|
|
578
|
-
if ((o = t.middlewareData.shift) != null && o.enabled.x && (
|
|
579
|
-
const
|
|
580
|
-
|
|
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
581
|
}
|
|
582
582
|
await l({
|
|
583
583
|
...t,
|
|
584
|
-
availableWidth:
|
|
585
|
-
availableHeight:
|
|
584
|
+
availableWidth: B,
|
|
585
|
+
availableHeight: x
|
|
586
586
|
});
|
|
587
|
-
const
|
|
588
|
-
return
|
|
587
|
+
const F = await a.getDimensions(s.floating);
|
|
588
|
+
return v !== F.width || b !== F.height ? {
|
|
589
589
|
reset: {
|
|
590
590
|
rects: !0
|
|
591
591
|
}
|
|
@@ -593,204 +593,204 @@ const Bo = function(e) {
|
|
|
593
593
|
}
|
|
594
594
|
};
|
|
595
595
|
};
|
|
596
|
-
function
|
|
596
|
+
function ie(e) {
|
|
597
597
|
var t;
|
|
598
598
|
return ((t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
599
599
|
}
|
|
600
|
-
function
|
|
601
|
-
return
|
|
600
|
+
function ue(e) {
|
|
601
|
+
return ie(e).getComputedStyle(e);
|
|
602
602
|
}
|
|
603
|
-
const
|
|
604
|
-
function
|
|
605
|
-
const t =
|
|
603
|
+
const Mt = Math.min, Le = Math.max, Xe = Math.round;
|
|
604
|
+
function ho(e) {
|
|
605
|
+
const t = ue(e);
|
|
606
606
|
let o = parseFloat(t.width), n = parseFloat(t.height);
|
|
607
|
-
const i = e.offsetWidth, r = e.offsetHeight,
|
|
608
|
-
return
|
|
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
609
|
}
|
|
610
|
-
function
|
|
611
|
-
return
|
|
610
|
+
function we(e) {
|
|
611
|
+
return mo(e) ? (e.nodeName || "").toLowerCase() : "";
|
|
612
612
|
}
|
|
613
|
-
let
|
|
614
|
-
function
|
|
615
|
-
if (
|
|
613
|
+
let qe;
|
|
614
|
+
function yo() {
|
|
615
|
+
if (qe) return qe;
|
|
616
616
|
const e = navigator.userAgentData;
|
|
617
|
-
return e && Array.isArray(e.brands) ? (
|
|
617
|
+
return e && Array.isArray(e.brands) ? (qe = e.brands.map(((t) => t.brand + "/" + t.version)).join(" "), qe) : navigator.userAgent;
|
|
618
618
|
}
|
|
619
|
-
function
|
|
620
|
-
return e instanceof
|
|
619
|
+
function ce(e) {
|
|
620
|
+
return e instanceof ie(e).HTMLElement;
|
|
621
621
|
}
|
|
622
|
-
function
|
|
623
|
-
return e instanceof
|
|
622
|
+
function ye(e) {
|
|
623
|
+
return e instanceof ie(e).Element;
|
|
624
624
|
}
|
|
625
|
-
function
|
|
626
|
-
return e instanceof
|
|
625
|
+
function mo(e) {
|
|
626
|
+
return e instanceof ie(e).Node;
|
|
627
627
|
}
|
|
628
|
-
function
|
|
629
|
-
return typeof ShadowRoot > "u" ? !1 : e instanceof
|
|
628
|
+
function Et(e) {
|
|
629
|
+
return typeof ShadowRoot > "u" ? !1 : e instanceof ie(e).ShadowRoot || e instanceof ShadowRoot;
|
|
630
630
|
}
|
|
631
|
-
function
|
|
632
|
-
const { overflow: t, overflowX: o, overflowY: n, display: i } =
|
|
631
|
+
function Je(e) {
|
|
632
|
+
const { overflow: t, overflowX: o, overflowY: n, display: i } = ue(e);
|
|
633
633
|
return /auto|scroll|overlay|hidden|clip/.test(t + n + o) && !["inline", "contents"].includes(i);
|
|
634
634
|
}
|
|
635
|
-
function
|
|
636
|
-
return ["table", "td", "th"].includes(
|
|
635
|
+
function $n(e) {
|
|
636
|
+
return ["table", "td", "th"].includes(we(e));
|
|
637
637
|
}
|
|
638
|
-
function
|
|
639
|
-
const t = /firefox/i.test(
|
|
638
|
+
function gt(e) {
|
|
639
|
+
const t = /firefox/i.test(yo()), o = ue(e), n = o.backdropFilter || o.WebkitBackdropFilter;
|
|
640
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
641
|
const r = o.contain;
|
|
642
642
|
return r != null && r.includes(i);
|
|
643
643
|
}));
|
|
644
644
|
}
|
|
645
|
-
function
|
|
646
|
-
return !/^((?!chrome|android).)*safari/i.test(
|
|
645
|
+
function go() {
|
|
646
|
+
return !/^((?!chrome|android).)*safari/i.test(yo());
|
|
647
647
|
}
|
|
648
|
-
function
|
|
649
|
-
return ["html", "body", "#document"].includes(
|
|
648
|
+
function At(e) {
|
|
649
|
+
return ["html", "body", "#document"].includes(we(e));
|
|
650
650
|
}
|
|
651
|
-
function
|
|
652
|
-
return
|
|
651
|
+
function vo(e) {
|
|
652
|
+
return ye(e) ? e : e.contextElement;
|
|
653
653
|
}
|
|
654
|
-
const
|
|
655
|
-
function
|
|
656
|
-
const t =
|
|
657
|
-
if (!
|
|
658
|
-
const o = t.getBoundingClientRect(), { width: n, height: i, fallback: r } =
|
|
659
|
-
let
|
|
660
|
-
return
|
|
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
661
|
}
|
|
662
|
-
function
|
|
662
|
+
function Fe(e, t, o, n) {
|
|
663
663
|
var i, r;
|
|
664
664
|
t === void 0 && (t = !1), o === void 0 && (o = !1);
|
|
665
|
-
const
|
|
666
|
-
let l =
|
|
667
|
-
t && (n ?
|
|
668
|
-
const u =
|
|
669
|
-
let d = (
|
|
670
|
-
if (
|
|
671
|
-
const
|
|
672
|
-
let
|
|
673
|
-
for (;
|
|
674
|
-
const w =
|
|
675
|
-
|
|
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
676
|
}
|
|
677
677
|
}
|
|
678
|
-
return { width:
|
|
678
|
+
return { width: h, height: v, top: y, right: d + h, bottom: y + v, left: d, x: d, y };
|
|
679
679
|
}
|
|
680
|
-
function
|
|
681
|
-
return ((
|
|
680
|
+
function me(e) {
|
|
681
|
+
return ((mo(e) ? e.ownerDocument : e.document) || window.document).documentElement;
|
|
682
682
|
}
|
|
683
|
-
function
|
|
684
|
-
return
|
|
683
|
+
function et(e) {
|
|
684
|
+
return ye(e) ? { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop } : { scrollLeft: e.pageXOffset, scrollTop: e.pageYOffset };
|
|
685
685
|
}
|
|
686
|
-
function
|
|
687
|
-
return
|
|
686
|
+
function bo(e) {
|
|
687
|
+
return Fe(me(e)).left + et(e).scrollLeft;
|
|
688
688
|
}
|
|
689
|
-
function
|
|
690
|
-
if (
|
|
691
|
-
const t = e.assignedSlot || e.parentNode ||
|
|
692
|
-
return
|
|
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
693
|
}
|
|
694
|
-
function
|
|
695
|
-
const t =
|
|
696
|
-
return
|
|
694
|
+
function xo(e) {
|
|
695
|
+
const t = Ne(e);
|
|
696
|
+
return At(t) ? t.ownerDocument.body : ce(t) && Je(t) ? t : xo(t);
|
|
697
697
|
}
|
|
698
|
-
function
|
|
698
|
+
function Qe(e, t) {
|
|
699
699
|
var o;
|
|
700
700
|
t === void 0 && (t = []);
|
|
701
|
-
const n =
|
|
702
|
-
return i ? t.concat(r, r.visualViewport || [],
|
|
703
|
-
}
|
|
704
|
-
function
|
|
705
|
-
return t === "viewport" ?
|
|
706
|
-
const r =
|
|
707
|
-
let l =
|
|
708
|
-
if (
|
|
709
|
-
l =
|
|
710
|
-
const
|
|
711
|
-
(
|
|
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
712
|
}
|
|
713
|
-
return { width: l, height: u, x:
|
|
714
|
-
})(e, o)) :
|
|
715
|
-
const r =
|
|
716
|
-
return { width: n.clientWidth * l.x, height: n.clientHeight * l.y, x:
|
|
717
|
-
})(t, o)) :
|
|
718
|
-
const i =
|
|
719
|
-
let u = -r.scrollLeft +
|
|
720
|
-
const
|
|
721
|
-
return
|
|
722
|
-
})(
|
|
723
|
-
}
|
|
724
|
-
function
|
|
725
|
-
return
|
|
726
|
-
}
|
|
727
|
-
function
|
|
728
|
-
const t =
|
|
729
|
-
let o =
|
|
730
|
-
for (; o &&
|
|
731
|
-
return o && (
|
|
732
|
-
let i =
|
|
733
|
-
for (;
|
|
734
|
-
if (
|
|
735
|
-
i =
|
|
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
736
|
}
|
|
737
737
|
return null;
|
|
738
738
|
})(e) || t;
|
|
739
739
|
}
|
|
740
|
-
function
|
|
741
|
-
const n =
|
|
742
|
-
let
|
|
743
|
-
const
|
|
744
|
-
if (n || !n && o !== "fixed") if ((
|
|
745
|
-
const l =
|
|
746
|
-
|
|
747
|
-
} else i && (
|
|
748
|
-
return { x: r.left +
|
|
749
|
-
}
|
|
750
|
-
const
|
|
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
751
|
let { element: t, boundary: o, rootBoundary: n, strategy: i } = e;
|
|
752
|
-
const r = o === "clippingAncestors" ? (function(u,
|
|
753
|
-
const d =
|
|
752
|
+
const r = o === "clippingAncestors" ? (function(u, c) {
|
|
753
|
+
const d = c.get(u);
|
|
754
754
|
if (d) return d;
|
|
755
|
-
let
|
|
756
|
-
const
|
|
757
|
-
let
|
|
758
|
-
for (;
|
|
759
|
-
const
|
|
760
|
-
(
|
|
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
761
|
}
|
|
762
|
-
return
|
|
763
|
-
})(t, this._c) : [].concat(o),
|
|
764
|
-
const d =
|
|
765
|
-
return u.top =
|
|
766
|
-
}),
|
|
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
767
|
return { width: l.right - l.left, height: l.bottom - l.top, x: l.left, y: l.top };
|
|
768
768
|
}, convertOffsetParentRelativeRectToViewportRelativeRect: function(e) {
|
|
769
769
|
let { rect: t, offsetParent: o, strategy: n } = e;
|
|
770
|
-
const i =
|
|
770
|
+
const i = ce(o), r = me(o);
|
|
771
771
|
if (o === r) return t;
|
|
772
|
-
let
|
|
772
|
+
let a = { scrollLeft: 0, scrollTop: 0 }, s = { x: 1, y: 1 };
|
|
773
773
|
const l = { x: 0, y: 0 };
|
|
774
|
-
if ((i || !i && n !== "fixed") && ((
|
|
775
|
-
const u =
|
|
776
|
-
|
|
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
777
|
}
|
|
778
|
-
return { width: t.width *
|
|
779
|
-
}, isElement:
|
|
780
|
-
return
|
|
781
|
-
}, getOffsetParent:
|
|
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
782
|
let { reference: t, floating: o, strategy: n } = e;
|
|
783
|
-
const i = this.getOffsetParent ||
|
|
784
|
-
return { reference:
|
|
785
|
-
}, getClientRects: (e) => Array.from(e.getClientRects()), isRTL: (e) =>
|
|
786
|
-
const n = /* @__PURE__ */ new Map(), i = { platform:
|
|
787
|
-
return
|
|
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
788
|
};
|
|
789
|
-
function
|
|
789
|
+
function $o(e, t) {
|
|
790
790
|
for (const o in t)
|
|
791
|
-
Object.prototype.hasOwnProperty.call(t, o) && (typeof t[o] == "object" && e[o] ?
|
|
791
|
+
Object.prototype.hasOwnProperty.call(t, o) && (typeof t[o] == "object" && e[o] ? $o(e[o], t[o]) : e[o] = t[o]);
|
|
792
792
|
}
|
|
793
|
-
const
|
|
793
|
+
const ae = {
|
|
794
794
|
// Disable popper components
|
|
795
795
|
disabled: !1,
|
|
796
796
|
// Default position offset along main axis (px)
|
|
@@ -869,96 +869,96 @@ const G = {
|
|
|
869
869
|
}
|
|
870
870
|
}
|
|
871
871
|
};
|
|
872
|
-
function
|
|
873
|
-
let o =
|
|
872
|
+
function Ie(e, t) {
|
|
873
|
+
let o = ae.themes[e] || {}, n;
|
|
874
874
|
do
|
|
875
|
-
n = o[t], typeof n > "u" ? o.$extend ? o =
|
|
875
|
+
n = o[t], typeof n > "u" ? o.$extend ? o = ae.themes[o.$extend] || {} : (o = null, n = ae[t]) : o = null;
|
|
876
876
|
while (o);
|
|
877
877
|
return n;
|
|
878
878
|
}
|
|
879
|
-
function
|
|
879
|
+
function Cn(e) {
|
|
880
880
|
const t = [e];
|
|
881
|
-
let o =
|
|
881
|
+
let o = ae.themes[e] || {};
|
|
882
882
|
do
|
|
883
|
-
o.$extend && !o.$resetCss ? (t.push(o.$extend), o =
|
|
883
|
+
o.$extend && !o.$resetCss ? (t.push(o.$extend), o = ae.themes[o.$extend] || {}) : o = null;
|
|
884
884
|
while (o);
|
|
885
885
|
return t.map((n) => `v-popper--theme-${n}`);
|
|
886
886
|
}
|
|
887
|
-
function
|
|
887
|
+
function It(e) {
|
|
888
888
|
const t = [e];
|
|
889
|
-
let o =
|
|
889
|
+
let o = ae.themes[e] || {};
|
|
890
890
|
do
|
|
891
|
-
o.$extend ? (t.push(o.$extend), o =
|
|
891
|
+
o.$extend ? (t.push(o.$extend), o = ae.themes[o.$extend] || {}) : o = null;
|
|
892
892
|
while (o);
|
|
893
893
|
return t;
|
|
894
894
|
}
|
|
895
|
-
let
|
|
895
|
+
let Se = !1;
|
|
896
896
|
if (typeof window < "u") {
|
|
897
|
-
|
|
897
|
+
Se = !1;
|
|
898
898
|
try {
|
|
899
899
|
const e = Object.defineProperty({}, "passive", {
|
|
900
900
|
get() {
|
|
901
|
-
|
|
901
|
+
Se = !0;
|
|
902
902
|
}
|
|
903
903
|
});
|
|
904
904
|
window.addEventListener("test", null, e);
|
|
905
905
|
} catch {
|
|
906
906
|
}
|
|
907
907
|
}
|
|
908
|
-
let
|
|
909
|
-
typeof window < "u" && typeof navigator < "u" && (
|
|
910
|
-
const
|
|
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
911
|
t,
|
|
912
912
|
`${t}-start`,
|
|
913
913
|
`${t}-end`
|
|
914
|
-
]), []),
|
|
914
|
+
]), []), Dt = {
|
|
915
915
|
hover: "mouseenter",
|
|
916
916
|
focus: "focus",
|
|
917
917
|
click: "click",
|
|
918
918
|
touch: "touchstart",
|
|
919
919
|
pointer: "pointerdown"
|
|
920
|
-
},
|
|
920
|
+
}, jt = {
|
|
921
921
|
hover: "mouseleave",
|
|
922
922
|
focus: "blur",
|
|
923
923
|
click: "click",
|
|
924
924
|
touch: "touchend",
|
|
925
925
|
pointer: "pointerup"
|
|
926
926
|
};
|
|
927
|
-
function
|
|
927
|
+
function qt(e, t) {
|
|
928
928
|
const o = e.indexOf(t);
|
|
929
929
|
o !== -1 && e.splice(o, 1);
|
|
930
930
|
}
|
|
931
|
-
function
|
|
931
|
+
function rt() {
|
|
932
932
|
return new Promise((e) => requestAnimationFrame(() => {
|
|
933
933
|
requestAnimationFrame(e);
|
|
934
934
|
}));
|
|
935
935
|
}
|
|
936
|
-
const
|
|
937
|
-
let
|
|
938
|
-
const
|
|
939
|
-
function
|
|
940
|
-
let t =
|
|
941
|
-
return t || (t =
|
|
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
942
|
}
|
|
943
|
-
let
|
|
943
|
+
let vt = function() {
|
|
944
944
|
};
|
|
945
|
-
typeof window < "u" && (
|
|
946
|
-
function
|
|
945
|
+
typeof window < "u" && (vt = window.Element);
|
|
946
|
+
function O(e) {
|
|
947
947
|
return function(t) {
|
|
948
|
-
return
|
|
948
|
+
return Ie(t.theme, e);
|
|
949
949
|
};
|
|
950
950
|
}
|
|
951
|
-
const
|
|
951
|
+
const st = "__floating-vue__popper", Ao = () => U({
|
|
952
952
|
name: "VPopper",
|
|
953
953
|
provide() {
|
|
954
954
|
return {
|
|
955
|
-
[
|
|
955
|
+
[st]: {
|
|
956
956
|
parentPopper: this
|
|
957
957
|
}
|
|
958
958
|
};
|
|
959
959
|
},
|
|
960
960
|
inject: {
|
|
961
|
-
[
|
|
961
|
+
[st]: { default: null }
|
|
962
962
|
},
|
|
963
963
|
props: {
|
|
964
964
|
theme: {
|
|
@@ -991,147 +991,147 @@ const je = "__floating-vue__popper", Ft = () => Z({
|
|
|
991
991
|
},
|
|
992
992
|
disabled: {
|
|
993
993
|
type: Boolean,
|
|
994
|
-
default:
|
|
994
|
+
default: O("disabled")
|
|
995
995
|
},
|
|
996
996
|
positioningDisabled: {
|
|
997
997
|
type: Boolean,
|
|
998
|
-
default:
|
|
998
|
+
default: O("positioningDisabled")
|
|
999
999
|
},
|
|
1000
1000
|
placement: {
|
|
1001
1001
|
type: String,
|
|
1002
|
-
default:
|
|
1003
|
-
validator: (e) =>
|
|
1002
|
+
default: O("placement"),
|
|
1003
|
+
validator: (e) => ko.includes(e)
|
|
1004
1004
|
},
|
|
1005
1005
|
delay: {
|
|
1006
1006
|
type: [String, Number, Object],
|
|
1007
|
-
default:
|
|
1007
|
+
default: O("delay")
|
|
1008
1008
|
},
|
|
1009
1009
|
distance: {
|
|
1010
1010
|
type: [Number, String],
|
|
1011
|
-
default:
|
|
1011
|
+
default: O("distance")
|
|
1012
1012
|
},
|
|
1013
1013
|
skidding: {
|
|
1014
1014
|
type: [Number, String],
|
|
1015
|
-
default:
|
|
1015
|
+
default: O("skidding")
|
|
1016
1016
|
},
|
|
1017
1017
|
triggers: {
|
|
1018
1018
|
type: Array,
|
|
1019
|
-
default:
|
|
1019
|
+
default: O("triggers")
|
|
1020
1020
|
},
|
|
1021
1021
|
showTriggers: {
|
|
1022
1022
|
type: [Array, Function],
|
|
1023
|
-
default:
|
|
1023
|
+
default: O("showTriggers")
|
|
1024
1024
|
},
|
|
1025
1025
|
hideTriggers: {
|
|
1026
1026
|
type: [Array, Function],
|
|
1027
|
-
default:
|
|
1027
|
+
default: O("hideTriggers")
|
|
1028
1028
|
},
|
|
1029
1029
|
popperTriggers: {
|
|
1030
1030
|
type: Array,
|
|
1031
|
-
default:
|
|
1031
|
+
default: O("popperTriggers")
|
|
1032
1032
|
},
|
|
1033
1033
|
popperShowTriggers: {
|
|
1034
1034
|
type: [Array, Function],
|
|
1035
|
-
default:
|
|
1035
|
+
default: O("popperShowTriggers")
|
|
1036
1036
|
},
|
|
1037
1037
|
popperHideTriggers: {
|
|
1038
1038
|
type: [Array, Function],
|
|
1039
|
-
default:
|
|
1039
|
+
default: O("popperHideTriggers")
|
|
1040
1040
|
},
|
|
1041
1041
|
container: {
|
|
1042
|
-
type: [String, Object,
|
|
1043
|
-
default:
|
|
1042
|
+
type: [String, Object, vt, Boolean],
|
|
1043
|
+
default: O("container")
|
|
1044
1044
|
},
|
|
1045
1045
|
boundary: {
|
|
1046
|
-
type: [String,
|
|
1047
|
-
default:
|
|
1046
|
+
type: [String, vt],
|
|
1047
|
+
default: O("boundary")
|
|
1048
1048
|
},
|
|
1049
1049
|
strategy: {
|
|
1050
1050
|
type: String,
|
|
1051
1051
|
validator: (e) => ["absolute", "fixed"].includes(e),
|
|
1052
|
-
default:
|
|
1052
|
+
default: O("strategy")
|
|
1053
1053
|
},
|
|
1054
1054
|
autoHide: {
|
|
1055
1055
|
type: [Boolean, Function],
|
|
1056
|
-
default:
|
|
1056
|
+
default: O("autoHide")
|
|
1057
1057
|
},
|
|
1058
1058
|
handleResize: {
|
|
1059
1059
|
type: Boolean,
|
|
1060
|
-
default:
|
|
1060
|
+
default: O("handleResize")
|
|
1061
1061
|
},
|
|
1062
1062
|
instantMove: {
|
|
1063
1063
|
type: Boolean,
|
|
1064
|
-
default:
|
|
1064
|
+
default: O("instantMove")
|
|
1065
1065
|
},
|
|
1066
1066
|
eagerMount: {
|
|
1067
1067
|
type: Boolean,
|
|
1068
|
-
default:
|
|
1068
|
+
default: O("eagerMount")
|
|
1069
1069
|
},
|
|
1070
1070
|
popperClass: {
|
|
1071
1071
|
type: [String, Array, Object],
|
|
1072
|
-
default:
|
|
1072
|
+
default: O("popperClass")
|
|
1073
1073
|
},
|
|
1074
1074
|
computeTransformOrigin: {
|
|
1075
1075
|
type: Boolean,
|
|
1076
|
-
default:
|
|
1076
|
+
default: O("computeTransformOrigin")
|
|
1077
1077
|
},
|
|
1078
1078
|
/**
|
|
1079
1079
|
* @deprecated
|
|
1080
1080
|
*/
|
|
1081
1081
|
autoMinSize: {
|
|
1082
1082
|
type: Boolean,
|
|
1083
|
-
default:
|
|
1083
|
+
default: O("autoMinSize")
|
|
1084
1084
|
},
|
|
1085
1085
|
autoSize: {
|
|
1086
1086
|
type: [Boolean, String],
|
|
1087
|
-
default:
|
|
1087
|
+
default: O("autoSize")
|
|
1088
1088
|
},
|
|
1089
1089
|
/**
|
|
1090
1090
|
* @deprecated
|
|
1091
1091
|
*/
|
|
1092
1092
|
autoMaxSize: {
|
|
1093
1093
|
type: Boolean,
|
|
1094
|
-
default:
|
|
1094
|
+
default: O("autoMaxSize")
|
|
1095
1095
|
},
|
|
1096
1096
|
autoBoundaryMaxSize: {
|
|
1097
1097
|
type: Boolean,
|
|
1098
|
-
default:
|
|
1098
|
+
default: O("autoBoundaryMaxSize")
|
|
1099
1099
|
},
|
|
1100
1100
|
preventOverflow: {
|
|
1101
1101
|
type: Boolean,
|
|
1102
|
-
default:
|
|
1102
|
+
default: O("preventOverflow")
|
|
1103
1103
|
},
|
|
1104
1104
|
overflowPadding: {
|
|
1105
1105
|
type: [Number, String],
|
|
1106
|
-
default:
|
|
1106
|
+
default: O("overflowPadding")
|
|
1107
1107
|
},
|
|
1108
1108
|
arrowPadding: {
|
|
1109
1109
|
type: [Number, String],
|
|
1110
|
-
default:
|
|
1110
|
+
default: O("arrowPadding")
|
|
1111
1111
|
},
|
|
1112
1112
|
arrowOverflow: {
|
|
1113
1113
|
type: Boolean,
|
|
1114
|
-
default:
|
|
1114
|
+
default: O("arrowOverflow")
|
|
1115
1115
|
},
|
|
1116
1116
|
flip: {
|
|
1117
1117
|
type: Boolean,
|
|
1118
|
-
default:
|
|
1118
|
+
default: O("flip")
|
|
1119
1119
|
},
|
|
1120
1120
|
shift: {
|
|
1121
1121
|
type: Boolean,
|
|
1122
|
-
default:
|
|
1122
|
+
default: O("shift")
|
|
1123
1123
|
},
|
|
1124
1124
|
shiftCrossAxis: {
|
|
1125
1125
|
type: Boolean,
|
|
1126
|
-
default:
|
|
1126
|
+
default: O("shiftCrossAxis")
|
|
1127
1127
|
},
|
|
1128
1128
|
noAutoFocus: {
|
|
1129
1129
|
type: Boolean,
|
|
1130
|
-
default:
|
|
1130
|
+
default: O("noAutoFocus")
|
|
1131
1131
|
},
|
|
1132
1132
|
disposeTimeout: {
|
|
1133
1133
|
type: Number,
|
|
1134
|
-
default:
|
|
1134
|
+
default: O("disposeTimeout")
|
|
1135
1135
|
}
|
|
1136
1136
|
},
|
|
1137
1137
|
emits: {
|
|
@@ -1205,7 +1205,7 @@ const je = "__floating-vue__popper", Ft = () => Z({
|
|
|
1205
1205
|
},
|
|
1206
1206
|
parentPopper() {
|
|
1207
1207
|
var e;
|
|
1208
|
-
return (e = this[
|
|
1208
|
+
return (e = this[st]) == null ? void 0 : e.parentPopper;
|
|
1209
1209
|
},
|
|
1210
1210
|
hasPopperShowTriggerHover() {
|
|
1211
1211
|
var e, t;
|
|
@@ -1294,31 +1294,31 @@ const je = "__floating-vue__popper", Ft = () => Z({
|
|
|
1294
1294
|
strategy: this.strategy,
|
|
1295
1295
|
middleware: []
|
|
1296
1296
|
};
|
|
1297
|
-
(this.distance || this.skidding) && e.middleware.push(
|
|
1297
|
+
(this.distance || this.skidding) && e.middleware.push(wn({
|
|
1298
1298
|
mainAxis: this.distance,
|
|
1299
1299
|
crossAxis: this.skidding
|
|
1300
1300
|
}));
|
|
1301
1301
|
const t = this.placement.startsWith("auto");
|
|
1302
|
-
if (t ? e.middleware.push(
|
|
1302
|
+
if (t ? e.middleware.push(yn({
|
|
1303
1303
|
alignment: this.placement.split("-")[1] ?? ""
|
|
1304
|
-
})) : e.placement = this.placement, this.preventOverflow && (this.shift && e.middleware.push(
|
|
1304
|
+
})) : e.placement = this.placement, this.preventOverflow && (this.shift && e.middleware.push(bn({
|
|
1305
1305
|
padding: this.overflowPadding,
|
|
1306
1306
|
boundary: this.boundary,
|
|
1307
1307
|
crossAxis: this.shiftCrossAxis
|
|
1308
|
-
})), !t && this.flip && e.middleware.push(
|
|
1308
|
+
})), !t && this.flip && e.middleware.push(mn({
|
|
1309
1309
|
padding: this.overflowPadding,
|
|
1310
1310
|
boundary: this.boundary
|
|
1311
|
-
}))), e.middleware.push(
|
|
1311
|
+
}))), e.middleware.push(fn({
|
|
1312
1312
|
element: this.$_arrowNode,
|
|
1313
1313
|
padding: this.arrowPadding
|
|
1314
1314
|
})), this.arrowOverflow && e.middleware.push({
|
|
1315
1315
|
name: "arrowOverflow",
|
|
1316
1316
|
fn: ({ placement: n, rects: i, middlewareData: r }) => {
|
|
1317
|
-
let
|
|
1318
|
-
const { centerOffset:
|
|
1319
|
-
return n.startsWith("top") || n.startsWith("bottom") ?
|
|
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
1320
|
data: {
|
|
1321
|
-
overflow:
|
|
1321
|
+
overflow: a
|
|
1322
1322
|
}
|
|
1323
1323
|
};
|
|
1324
1324
|
}
|
|
@@ -1326,9 +1326,9 @@ const je = "__floating-vue__popper", Ft = () => Z({
|
|
|
1326
1326
|
const n = this.autoSize ? this.autoSize : this.autoMinSize ? "min" : null;
|
|
1327
1327
|
e.middleware.push({
|
|
1328
1328
|
name: "autoSize",
|
|
1329
|
-
fn: ({ rects: i, placement: r, middlewareData:
|
|
1330
|
-
var
|
|
1331
|
-
if ((
|
|
1329
|
+
fn: ({ rects: i, placement: r, middlewareData: a }) => {
|
|
1330
|
+
var s;
|
|
1331
|
+
if ((s = a.autoSize) != null && s.skip)
|
|
1332
1332
|
return {};
|
|
1333
1333
|
let l, u;
|
|
1334
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, {
|
|
@@ -1342,14 +1342,14 @@ const je = "__floating-vue__popper", Ft = () => Z({
|
|
|
1342
1342
|
}
|
|
1343
1343
|
});
|
|
1344
1344
|
}
|
|
1345
|
-
(this.autoMaxSize || this.autoBoundaryMaxSize) && (this.$_innerNode.style.maxWidth = null, this.$_innerNode.style.maxHeight = null, e.middleware.push(
|
|
1345
|
+
(this.autoMaxSize || this.autoBoundaryMaxSize) && (this.$_innerNode.style.maxWidth = null, this.$_innerNode.style.maxHeight = null, e.middleware.push(xn({
|
|
1346
1346
|
boundary: this.boundary,
|
|
1347
1347
|
padding: this.overflowPadding,
|
|
1348
1348
|
apply: ({ availableWidth: n, availableHeight: i }) => {
|
|
1349
1349
|
this.$_innerNode.style.maxWidth = n != null ? `${n}px` : null, this.$_innerNode.style.maxHeight = i != null ? `${i}px` : null;
|
|
1350
1350
|
}
|
|
1351
1351
|
})));
|
|
1352
|
-
const o = await
|
|
1352
|
+
const o = await An(this.$_referenceNode, this.$_popperNode, e);
|
|
1353
1353
|
Object.assign(this.result, {
|
|
1354
1354
|
x: o.x,
|
|
1355
1355
|
y: o.y,
|
|
@@ -1362,8 +1362,8 @@ const je = "__floating-vue__popper", Ft = () => Z({
|
|
|
1362
1362
|
});
|
|
1363
1363
|
},
|
|
1364
1364
|
$_scheduleShow(e, t = !1) {
|
|
1365
|
-
if (this.$_updateParentShownChildren(!0), this.$_hideInProgress = !1, clearTimeout(this.$_scheduleTimer),
|
|
1366
|
-
|
|
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
1367
|
return;
|
|
1368
1368
|
}
|
|
1369
1369
|
t ? this.$_applyShow() : this.$_scheduleTimer = setTimeout(this.$_applyShow.bind(this), this.$_computeDelay("show"));
|
|
@@ -1373,16 +1373,16 @@ const je = "__floating-vue__popper", Ft = () => Z({
|
|
|
1373
1373
|
this.pendingHide = !0;
|
|
1374
1374
|
return;
|
|
1375
1375
|
}
|
|
1376
|
-
this.$_updateParentShownChildren(!1), this.$_hideInProgress = !0, clearTimeout(this.$_scheduleTimer), this.isShown && (
|
|
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
1377
|
},
|
|
1378
1378
|
$_computeDelay(e) {
|
|
1379
1379
|
const t = this.delay;
|
|
1380
1380
|
return parseInt(t && t[e] || t || 0);
|
|
1381
1381
|
},
|
|
1382
1382
|
async $_applyShow(e = !1) {
|
|
1383
|
-
clearTimeout(this.$_disposeTimer), clearTimeout(this.$_scheduleTimer), this.skipTransition = e, !this.isShown && (this.$_ensureTeleport(), await
|
|
1384
|
-
...
|
|
1385
|
-
...
|
|
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
1386
|
], "scroll", () => {
|
|
1387
1387
|
this.$_computePosition();
|
|
1388
1388
|
}));
|
|
@@ -1401,13 +1401,13 @@ const je = "__floating-vue__popper", Ft = () => Z({
|
|
|
1401
1401
|
const e = this.showGroup;
|
|
1402
1402
|
if (e) {
|
|
1403
1403
|
let t;
|
|
1404
|
-
for (let o = 0; o <
|
|
1405
|
-
t =
|
|
1404
|
+
for (let o = 0; o < re.length; o++)
|
|
1405
|
+
t = re[o], t.showGroup !== e && (t.hide(), t.$emit("close-group"));
|
|
1406
1406
|
}
|
|
1407
|
-
|
|
1408
|
-
for (const t of
|
|
1409
|
-
|
|
1410
|
-
this.$emit("apply-show"), this.classes.showFrom = !0, this.classes.showTo = !1, this.classes.hideFrom = !1, this.classes.hideTo = !1, await
|
|
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
1411
|
},
|
|
1412
1412
|
async $_applyHide(e = !1) {
|
|
1413
1413
|
if (this.shownChildren.size > 0) {
|
|
@@ -1416,19 +1416,19 @@ const je = "__floating-vue__popper", Ft = () => Z({
|
|
|
1416
1416
|
}
|
|
1417
1417
|
if (clearTimeout(this.$_scheduleTimer), !this.isShown)
|
|
1418
1418
|
return;
|
|
1419
|
-
this.skipTransition = e,
|
|
1420
|
-
for (const o of
|
|
1421
|
-
const n =
|
|
1422
|
-
|
|
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
1423
|
}
|
|
1424
|
-
|
|
1424
|
+
be === this && (be = null), this.isShown = !1, this.$_applyAttrsToTarget({
|
|
1425
1425
|
"aria-describedby": void 0,
|
|
1426
1426
|
"data-popper-shown": void 0
|
|
1427
1427
|
}), clearTimeout(this.$_disposeTimer);
|
|
1428
1428
|
const t = this.disposeTimeout;
|
|
1429
1429
|
t !== null && (this.$_disposeTimer = setTimeout(() => {
|
|
1430
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
|
|
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
1432
|
},
|
|
1433
1433
|
$_autoShowHide() {
|
|
1434
1434
|
this.shown ? this.show() : this.hide();
|
|
@@ -1445,29 +1445,29 @@ const je = "__floating-vue__popper", Ft = () => Z({
|
|
|
1445
1445
|
const e = (o) => {
|
|
1446
1446
|
this.isShown && !this.$_hideInProgress || (o.usedByTooltip = !0, !this.$_preventShow && this.show({ event: o }));
|
|
1447
1447
|
};
|
|
1448
|
-
this.$_registerTriggerListeners(this.$_targetNodes,
|
|
1448
|
+
this.$_registerTriggerListeners(this.$_targetNodes, Dt, this.triggers, this.showTriggers, e), this.$_registerTriggerListeners([this.$_popperNode], Dt, this.popperTriggers, this.popperShowTriggers, e);
|
|
1449
1449
|
const t = (o) => {
|
|
1450
1450
|
o.usedByTooltip || this.hide({ event: o });
|
|
1451
1451
|
};
|
|
1452
|
-
this.$_registerTriggerListeners(this.$_targetNodes,
|
|
1452
|
+
this.$_registerTriggerListeners(this.$_targetNodes, jt, this.triggers, this.hideTriggers, t), this.$_registerTriggerListeners([this.$_popperNode], jt, this.popperTriggers, this.popperHideTriggers, t);
|
|
1453
1453
|
},
|
|
1454
1454
|
$_registerEventListeners(e, t, o) {
|
|
1455
|
-
this.$_events.push({ targetNodes: e, eventType: t, handler: o }), e.forEach((n) => n.addEventListener(t, o,
|
|
1455
|
+
this.$_events.push({ targetNodes: e, eventType: t, handler: o }), e.forEach((n) => n.addEventListener(t, o, Se ? {
|
|
1456
1456
|
passive: !0
|
|
1457
1457
|
} : void 0));
|
|
1458
1458
|
},
|
|
1459
1459
|
$_registerTriggerListeners(e, t, o, n, i) {
|
|
1460
1460
|
let r = o;
|
|
1461
|
-
n != null && (r = typeof n == "function" ? n(r) : n), r.forEach((
|
|
1462
|
-
const
|
|
1463
|
-
|
|
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
1464
|
});
|
|
1465
1465
|
},
|
|
1466
1466
|
$_removeEventListeners(e) {
|
|
1467
1467
|
const t = [];
|
|
1468
1468
|
this.$_events.forEach((o) => {
|
|
1469
1469
|
const { targetNodes: n, eventType: i, handler: r } = o;
|
|
1470
|
-
!e || e === i ? n.forEach((
|
|
1470
|
+
!e || e === i ? n.forEach((a) => a.removeEventListener(i, r)) : t.push(o);
|
|
1471
1471
|
}), this.$_events = t;
|
|
1472
1472
|
},
|
|
1473
1473
|
$_refreshListeners() {
|
|
@@ -1501,12 +1501,12 @@ const je = "__floating-vue__popper", Ft = () => Z({
|
|
|
1501
1501
|
},
|
|
1502
1502
|
$_isAimingPopper() {
|
|
1503
1503
|
const e = this.$_referenceNode.getBoundingClientRect();
|
|
1504
|
-
if (
|
|
1505
|
-
const t = this.$_popperNode.getBoundingClientRect(), o =
|
|
1506
|
-
return
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
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
1510
|
}
|
|
1511
1511
|
return !1;
|
|
1512
1512
|
}
|
|
@@ -1516,98 +1516,98 @@ const je = "__floating-vue__popper", Ft = () => Z({
|
|
|
1516
1516
|
}
|
|
1517
1517
|
});
|
|
1518
1518
|
if (typeof document < "u" && typeof window < "u") {
|
|
1519
|
-
if (
|
|
1520
|
-
const e =
|
|
1519
|
+
if (_o) {
|
|
1520
|
+
const e = Se ? {
|
|
1521
1521
|
passive: !0,
|
|
1522
1522
|
capture: !0
|
|
1523
1523
|
} : !0;
|
|
1524
|
-
document.addEventListener("touchstart", (t) =>
|
|
1524
|
+
document.addEventListener("touchstart", (t) => Gt(t, !0), e), document.addEventListener("touchend", (t) => Zt(t, !0), e);
|
|
1525
1525
|
} else
|
|
1526
|
-
window.addEventListener("mousedown", (e) =>
|
|
1527
|
-
window.addEventListener("resize",
|
|
1526
|
+
window.addEventListener("mousedown", (e) => Gt(e, !1), !0), window.addEventListener("click", (e) => Zt(e, !1), !0);
|
|
1527
|
+
window.addEventListener("resize", Tn);
|
|
1528
1528
|
}
|
|
1529
|
-
function
|
|
1530
|
-
if (
|
|
1531
|
-
|
|
1529
|
+
function Gt(e, t) {
|
|
1530
|
+
if (ae.autoHideOnMousedown)
|
|
1531
|
+
Co(e, t);
|
|
1532
1532
|
else
|
|
1533
|
-
for (let o = 0; o <
|
|
1534
|
-
const n =
|
|
1533
|
+
for (let o = 0; o < re.length; o++) {
|
|
1534
|
+
const n = re[o];
|
|
1535
1535
|
try {
|
|
1536
1536
|
n.mouseDownContains = n.popperNode().contains(e.target);
|
|
1537
1537
|
} catch {
|
|
1538
1538
|
}
|
|
1539
1539
|
}
|
|
1540
1540
|
}
|
|
1541
|
-
function
|
|
1542
|
-
|
|
1541
|
+
function Zt(e, t) {
|
|
1542
|
+
ae.autoHideOnMousedown || Co(e, t);
|
|
1543
1543
|
}
|
|
1544
|
-
function
|
|
1544
|
+
function Co(e, t) {
|
|
1545
1545
|
const o = {};
|
|
1546
|
-
for (let n =
|
|
1547
|
-
const i =
|
|
1546
|
+
for (let n = re.length - 1; n >= 0; n--) {
|
|
1547
|
+
const i = re[n];
|
|
1548
1548
|
try {
|
|
1549
1549
|
const r = i.containsGlobalTarget = i.mouseDownContains || i.popperNode().contains(e.target);
|
|
1550
1550
|
i.pendingHide = !1, requestAnimationFrame(() => {
|
|
1551
|
-
if (i.pendingHide = !1, !o[i.randomId] &&
|
|
1551
|
+
if (i.pendingHide = !1, !o[i.randomId] && Ut(i, r, e)) {
|
|
1552
1552
|
if (i.$_handleGlobalClose(e, t), !e.closeAllPopover && e.closePopover && r) {
|
|
1553
|
-
let
|
|
1554
|
-
for (;
|
|
1555
|
-
o[
|
|
1553
|
+
let s = i.parentPopper;
|
|
1554
|
+
for (; s; )
|
|
1555
|
+
o[s.randomId] = !0, s = s.parentPopper;
|
|
1556
1556
|
return;
|
|
1557
1557
|
}
|
|
1558
|
-
let
|
|
1559
|
-
for (;
|
|
1560
|
-
|
|
1558
|
+
let a = i.parentPopper;
|
|
1559
|
+
for (; a && Ut(a, a.containsGlobalTarget, e); )
|
|
1560
|
+
a.$_handleGlobalClose(e, t), a = a.parentPopper;
|
|
1561
1561
|
}
|
|
1562
1562
|
});
|
|
1563
1563
|
} catch {
|
|
1564
1564
|
}
|
|
1565
1565
|
}
|
|
1566
1566
|
}
|
|
1567
|
-
function
|
|
1568
|
-
return o.closeAllPopover || o.closePopover && t ||
|
|
1567
|
+
function Ut(e, t, o) {
|
|
1568
|
+
return o.closeAllPopover || o.closePopover && t || Sn(e, o) && !t;
|
|
1569
1569
|
}
|
|
1570
|
-
function
|
|
1570
|
+
function Sn(e, t) {
|
|
1571
1571
|
if (typeof e.autoHide == "function") {
|
|
1572
1572
|
const o = e.autoHide(t);
|
|
1573
1573
|
return e.lastAutoHide = o, o;
|
|
1574
1574
|
}
|
|
1575
1575
|
return e.autoHide;
|
|
1576
1576
|
}
|
|
1577
|
-
function
|
|
1578
|
-
for (let e = 0; e <
|
|
1579
|
-
|
|
1577
|
+
function Tn() {
|
|
1578
|
+
for (let e = 0; e < re.length; e++)
|
|
1579
|
+
re[e].$_computePosition();
|
|
1580
1580
|
}
|
|
1581
|
-
let
|
|
1581
|
+
let fe = 0, he = 0, ze = 0, Me = 0;
|
|
1582
1582
|
typeof window < "u" && window.addEventListener("mousemove", (e) => {
|
|
1583
|
-
|
|
1584
|
-
},
|
|
1583
|
+
fe = ze, he = Me, ze = e.clientX, Me = e.clientY;
|
|
1584
|
+
}, Se ? {
|
|
1585
1585
|
passive: !0
|
|
1586
1586
|
} : void 0);
|
|
1587
|
-
function
|
|
1588
|
-
const l = ((
|
|
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
1589
|
return l >= 0 && l <= 1 && u >= 0 && u <= 1;
|
|
1590
1590
|
}
|
|
1591
|
-
const
|
|
1592
|
-
extends:
|
|
1593
|
-
},
|
|
1591
|
+
const Bn = {
|
|
1592
|
+
extends: Ao()
|
|
1593
|
+
}, tt = (e, t) => {
|
|
1594
1594
|
const o = e.__vccOpts || e;
|
|
1595
1595
|
for (const [n, i] of t)
|
|
1596
1596
|
o[n] = i;
|
|
1597
1597
|
return o;
|
|
1598
1598
|
};
|
|
1599
|
-
function
|
|
1600
|
-
return
|
|
1599
|
+
function Pn(e, t, o, n, i, r) {
|
|
1600
|
+
return g(), S("div", {
|
|
1601
1601
|
ref: "reference",
|
|
1602
|
-
class:
|
|
1602
|
+
class: I(["v-popper", {
|
|
1603
1603
|
"v-popper--shown": e.slotData.isShown
|
|
1604
1604
|
}])
|
|
1605
1605
|
}, [
|
|
1606
|
-
|
|
1606
|
+
q(e.$slots, "default", Go(Zo(e.slotData)))
|
|
1607
1607
|
], 2);
|
|
1608
1608
|
}
|
|
1609
|
-
const
|
|
1610
|
-
function
|
|
1609
|
+
const On = /* @__PURE__ */ tt(Bn, [["render", Pn]]);
|
|
1610
|
+
function Rn() {
|
|
1611
1611
|
var e = window.navigator.userAgent, t = e.indexOf("MSIE ");
|
|
1612
1612
|
if (t > 0)
|
|
1613
1613
|
return parseInt(e.substring(t + 5, e.indexOf(".", t)), 10);
|
|
@@ -1619,11 +1619,11 @@ function Do() {
|
|
|
1619
1619
|
var i = e.indexOf("Edge/");
|
|
1620
1620
|
return i > 0 ? parseInt(e.substring(i + 5, e.indexOf(".", i)), 10) : -1;
|
|
1621
1621
|
}
|
|
1622
|
-
let
|
|
1623
|
-
function
|
|
1624
|
-
|
|
1622
|
+
let We;
|
|
1623
|
+
function wt() {
|
|
1624
|
+
wt.init || (wt.init = !0, We = Rn() !== -1);
|
|
1625
1625
|
}
|
|
1626
|
-
var
|
|
1626
|
+
var ot = {
|
|
1627
1627
|
name: "ResizeObserver",
|
|
1628
1628
|
props: {
|
|
1629
1629
|
emitOnMount: {
|
|
@@ -1643,11 +1643,11 @@ var De = {
|
|
|
1643
1643
|
"notify"
|
|
1644
1644
|
],
|
|
1645
1645
|
mounted() {
|
|
1646
|
-
|
|
1646
|
+
wt(), Ge(() => {
|
|
1647
1647
|
this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitOnMount && this.emitSize();
|
|
1648
1648
|
});
|
|
1649
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",
|
|
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
1651
|
},
|
|
1652
1652
|
beforeUnmount() {
|
|
1653
1653
|
this.removeResizeHandlers();
|
|
@@ -1666,34 +1666,34 @@ var De = {
|
|
|
1666
1666
|
this._resizeObject.contentDocument.defaultView.addEventListener("resize", this.compareAndNotify), this.compareAndNotify();
|
|
1667
1667
|
},
|
|
1668
1668
|
removeResizeHandlers() {
|
|
1669
|
-
this._resizeObject && this._resizeObject.onload && (!
|
|
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
1670
|
}
|
|
1671
1671
|
}
|
|
1672
1672
|
};
|
|
1673
|
-
const
|
|
1674
|
-
|
|
1675
|
-
const
|
|
1673
|
+
const Ln = /* @__PURE__ */ Qo("data-v-b329ee4c");
|
|
1674
|
+
Vo("data-v-b329ee4c");
|
|
1675
|
+
const zn = {
|
|
1676
1676
|
class: "resize-observer",
|
|
1677
1677
|
tabindex: "-1"
|
|
1678
1678
|
};
|
|
1679
|
-
|
|
1680
|
-
const
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
const
|
|
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
1685
|
computed: {
|
|
1686
1686
|
themeClass() {
|
|
1687
|
-
return
|
|
1687
|
+
return Cn(this[e]);
|
|
1688
1688
|
}
|
|
1689
1689
|
}
|
|
1690
|
-
}),
|
|
1690
|
+
}), En = U({
|
|
1691
1691
|
name: "VPopperContent",
|
|
1692
1692
|
components: {
|
|
1693
|
-
ResizeObserver:
|
|
1693
|
+
ResizeObserver: ot
|
|
1694
1694
|
},
|
|
1695
1695
|
mixins: [
|
|
1696
|
-
|
|
1696
|
+
So()
|
|
1697
1697
|
],
|
|
1698
1698
|
props: {
|
|
1699
1699
|
popperId: String,
|
|
@@ -1715,19 +1715,19 @@ const jt = (e = "theme") => ({
|
|
|
1715
1715
|
return e != null && !isNaN(e) ? `${e}px` : null;
|
|
1716
1716
|
}
|
|
1717
1717
|
}
|
|
1718
|
-
}),
|
|
1718
|
+
}), Hn = ["id", "aria-hidden", "tabindex", "data-popper-placement"], Fn = {
|
|
1719
1719
|
ref: "inner",
|
|
1720
1720
|
class: "v-popper__inner"
|
|
1721
|
-
},
|
|
1722
|
-
|
|
1723
|
-
|
|
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
1724
|
];
|
|
1725
|
-
function
|
|
1726
|
-
const
|
|
1727
|
-
return
|
|
1725
|
+
function jn(e, t, o, n, i, r) {
|
|
1726
|
+
const a = Ee("ResizeObserver");
|
|
1727
|
+
return g(), S("div", {
|
|
1728
1728
|
id: e.popperId,
|
|
1729
1729
|
ref: "popover",
|
|
1730
|
-
class:
|
|
1730
|
+
class: I(["v-popper__popper", [
|
|
1731
1731
|
e.themeClass,
|
|
1732
1732
|
e.classes.popperClass,
|
|
1733
1733
|
{
|
|
@@ -1742,48 +1742,48 @@ function Uo(e, t, o, n, i, r) {
|
|
|
1742
1742
|
"v-popper__popper--no-positioning": !e.result
|
|
1743
1743
|
}
|
|
1744
1744
|
]]),
|
|
1745
|
-
style:
|
|
1745
|
+
style: Oe(e.result ? {
|
|
1746
1746
|
position: e.result.strategy,
|
|
1747
1747
|
transform: `translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`
|
|
1748
1748
|
} : void 0),
|
|
1749
1749
|
"aria-hidden": e.shown ? "false" : "true",
|
|
1750
1750
|
tabindex: e.autoHide ? 0 : void 0,
|
|
1751
1751
|
"data-popper-placement": e.result ? e.result.placement : void 0,
|
|
1752
|
-
onKeyup: t[2] || (t[2] =
|
|
1752
|
+
onKeyup: t[2] || (t[2] = $t((s) => e.autoHide && e.$emit("hide"), ["esc"]))
|
|
1753
1753
|
}, [
|
|
1754
|
-
|
|
1754
|
+
C("div", {
|
|
1755
1755
|
class: "v-popper__backdrop",
|
|
1756
|
-
onClick: t[0] || (t[0] = (
|
|
1756
|
+
onClick: t[0] || (t[0] = (s) => e.autoHide && e.$emit("hide"))
|
|
1757
1757
|
}),
|
|
1758
|
-
|
|
1758
|
+
C("div", {
|
|
1759
1759
|
class: "v-popper__wrapper",
|
|
1760
|
-
style:
|
|
1760
|
+
style: Oe(e.result ? {
|
|
1761
1761
|
transformOrigin: e.result.transformOrigin
|
|
1762
1762
|
} : void 0)
|
|
1763
1763
|
}, [
|
|
1764
|
-
|
|
1765
|
-
e.mounted ? (
|
|
1766
|
-
|
|
1767
|
-
|
|
1764
|
+
C("div", Fn, [
|
|
1765
|
+
e.mounted ? (g(), S(ve, { key: 0 }, [
|
|
1766
|
+
C("div", null, [
|
|
1767
|
+
q(e.$slots, "default")
|
|
1768
1768
|
]),
|
|
1769
|
-
e.handleResize ? (
|
|
1769
|
+
e.handleResize ? (g(), E(a, {
|
|
1770
1770
|
key: 0,
|
|
1771
|
-
onNotify: t[1] || (t[1] = (
|
|
1772
|
-
})) :
|
|
1773
|
-
], 64)) :
|
|
1771
|
+
onNotify: t[1] || (t[1] = (s) => e.$emit("resize", s))
|
|
1772
|
+
})) : R("", !0)
|
|
1773
|
+
], 64)) : R("", !0)
|
|
1774
1774
|
], 512),
|
|
1775
|
-
|
|
1775
|
+
C("div", {
|
|
1776
1776
|
ref: "arrow",
|
|
1777
1777
|
class: "v-popper__arrow-container",
|
|
1778
|
-
style:
|
|
1778
|
+
style: Oe(e.result ? {
|
|
1779
1779
|
left: e.toPx(e.result.arrow.x),
|
|
1780
1780
|
top: e.toPx(e.result.arrow.y)
|
|
1781
1781
|
} : void 0)
|
|
1782
|
-
},
|
|
1782
|
+
}, Dn, 4)
|
|
1783
1783
|
], 4)
|
|
1784
|
-
], 46,
|
|
1784
|
+
], 46, Hn);
|
|
1785
1785
|
}
|
|
1786
|
-
const
|
|
1786
|
+
const To = /* @__PURE__ */ tt(En, [["render", jn]]), Bo = {
|
|
1787
1787
|
methods: {
|
|
1788
1788
|
show(...e) {
|
|
1789
1789
|
return this.$refs.popper.show(...e);
|
|
@@ -1799,18 +1799,18 @@ const Vt = /* @__PURE__ */ Ee(Vo, [["render", Uo]]), Wt = {
|
|
|
1799
1799
|
}
|
|
1800
1800
|
}
|
|
1801
1801
|
};
|
|
1802
|
-
let
|
|
1802
|
+
let bt = function() {
|
|
1803
1803
|
};
|
|
1804
|
-
typeof window < "u" && (
|
|
1805
|
-
const
|
|
1804
|
+
typeof window < "u" && (bt = window.Element);
|
|
1805
|
+
const qn = U({
|
|
1806
1806
|
name: "VPopperWrapper",
|
|
1807
1807
|
components: {
|
|
1808
|
-
Popper:
|
|
1809
|
-
PopperContent:
|
|
1808
|
+
Popper: On,
|
|
1809
|
+
PopperContent: To
|
|
1810
1810
|
},
|
|
1811
1811
|
mixins: [
|
|
1812
|
-
|
|
1813
|
-
|
|
1812
|
+
Bo,
|
|
1813
|
+
So("finalTheme")
|
|
1814
1814
|
],
|
|
1815
1815
|
props: {
|
|
1816
1816
|
theme: {
|
|
@@ -1882,11 +1882,11 @@ const Ko = Z({
|
|
|
1882
1882
|
default: void 0
|
|
1883
1883
|
},
|
|
1884
1884
|
container: {
|
|
1885
|
-
type: [String, Object,
|
|
1885
|
+
type: [String, Object, bt, Boolean],
|
|
1886
1886
|
default: void 0
|
|
1887
1887
|
},
|
|
1888
1888
|
boundary: {
|
|
1889
|
-
type: [String,
|
|
1889
|
+
type: [String, bt],
|
|
1890
1890
|
default: void 0
|
|
1891
1891
|
},
|
|
1892
1892
|
strategy: {
|
|
@@ -1998,9 +1998,9 @@ const Ko = Z({
|
|
|
1998
1998
|
}
|
|
1999
1999
|
}
|
|
2000
2000
|
});
|
|
2001
|
-
function
|
|
2002
|
-
const
|
|
2003
|
-
return
|
|
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
2004
|
theme: e.finalTheme,
|
|
2005
2005
|
"target-nodes": e.getTargetNodes,
|
|
2006
2006
|
"popper-node": () => e.$refs.popperContent.$el,
|
|
@@ -2017,42 +2017,42 @@ function Zo(e, t, o, n, i, r) {
|
|
|
2017
2017
|
onAutoHide: t[7] || (t[7] = () => e.$emit("auto-hide")),
|
|
2018
2018
|
onResize: t[8] || (t[8] = () => e.$emit("resize"))
|
|
2019
2019
|
}), {
|
|
2020
|
-
default:
|
|
2020
|
+
default: _(({
|
|
2021
2021
|
popperId: l,
|
|
2022
2022
|
isShown: u,
|
|
2023
|
-
shouldMountContent:
|
|
2023
|
+
shouldMountContent: c,
|
|
2024
2024
|
skipTransition: d,
|
|
2025
|
-
autoHide:
|
|
2026
|
-
show:
|
|
2027
|
-
hide:
|
|
2028
|
-
handleResize:
|
|
2029
|
-
onResize:
|
|
2030
|
-
classes:
|
|
2025
|
+
autoHide: y,
|
|
2026
|
+
show: h,
|
|
2027
|
+
hide: v,
|
|
2028
|
+
handleResize: b,
|
|
2029
|
+
onResize: f,
|
|
2030
|
+
classes: m,
|
|
2031
2031
|
result: w
|
|
2032
2032
|
}) => [
|
|
2033
|
-
|
|
2033
|
+
q(e.$slots, "default", {
|
|
2034
2034
|
shown: u,
|
|
2035
|
-
show:
|
|
2036
|
-
hide:
|
|
2035
|
+
show: h,
|
|
2036
|
+
hide: v
|
|
2037
2037
|
}),
|
|
2038
|
-
|
|
2038
|
+
N(a, {
|
|
2039
2039
|
ref: "popperContent",
|
|
2040
2040
|
"popper-id": l,
|
|
2041
2041
|
theme: e.finalTheme,
|
|
2042
2042
|
shown: u,
|
|
2043
|
-
mounted:
|
|
2043
|
+
mounted: c,
|
|
2044
2044
|
"skip-transition": d,
|
|
2045
|
-
"auto-hide":
|
|
2046
|
-
"handle-resize":
|
|
2047
|
-
classes:
|
|
2045
|
+
"auto-hide": y,
|
|
2046
|
+
"handle-resize": b,
|
|
2047
|
+
classes: m,
|
|
2048
2048
|
result: w,
|
|
2049
|
-
onHide:
|
|
2050
|
-
onResize:
|
|
2049
|
+
onHide: v,
|
|
2050
|
+
onResize: f
|
|
2051
2051
|
}, {
|
|
2052
|
-
default:
|
|
2053
|
-
|
|
2052
|
+
default: _(() => [
|
|
2053
|
+
q(e.$slots, "popper", {
|
|
2054
2054
|
shown: u,
|
|
2055
|
-
hide:
|
|
2055
|
+
hide: v
|
|
2056
2056
|
})
|
|
2057
2057
|
]),
|
|
2058
2058
|
_: 2
|
|
@@ -2061,26 +2061,26 @@ function Zo(e, t, o, n, i, r) {
|
|
|
2061
2061
|
_: 3
|
|
2062
2062
|
}, 16, ["theme", "target-nodes", "popper-node", "class"]);
|
|
2063
2063
|
}
|
|
2064
|
-
const
|
|
2065
|
-
...
|
|
2064
|
+
const Ct = /* @__PURE__ */ tt(qn, [["render", Vn]]), Wn = {
|
|
2065
|
+
...Ct,
|
|
2066
2066
|
name: "VDropdown",
|
|
2067
2067
|
vPopperTheme: "dropdown"
|
|
2068
|
-
},
|
|
2069
|
-
...
|
|
2068
|
+
}, Gn = {
|
|
2069
|
+
...Ct,
|
|
2070
2070
|
name: "VMenu",
|
|
2071
2071
|
vPopperTheme: "menu"
|
|
2072
|
-
},
|
|
2073
|
-
...
|
|
2072
|
+
}, Zn = {
|
|
2073
|
+
...Ct,
|
|
2074
2074
|
name: "VTooltip",
|
|
2075
2075
|
vPopperTheme: "tooltip"
|
|
2076
|
-
},
|
|
2076
|
+
}, Un = U({
|
|
2077
2077
|
name: "VTooltipDirective",
|
|
2078
2078
|
components: {
|
|
2079
|
-
Popper:
|
|
2080
|
-
PopperContent:
|
|
2079
|
+
Popper: Ao(),
|
|
2080
|
+
PopperContent: To
|
|
2081
2081
|
},
|
|
2082
2082
|
mixins: [
|
|
2083
|
-
|
|
2083
|
+
Bo
|
|
2084
2084
|
],
|
|
2085
2085
|
inheritAttrs: !1,
|
|
2086
2086
|
props: {
|
|
@@ -2090,7 +2090,7 @@ const tt = /* @__PURE__ */ Ee(Ko, [["render", Zo]]), Qo = {
|
|
|
2090
2090
|
},
|
|
2091
2091
|
html: {
|
|
2092
2092
|
type: Boolean,
|
|
2093
|
-
default: (e) =>
|
|
2093
|
+
default: (e) => Ie(e.theme, "html")
|
|
2094
2094
|
},
|
|
2095
2095
|
content: {
|
|
2096
2096
|
type: [String, Number, Function],
|
|
@@ -2098,7 +2098,7 @@ const tt = /* @__PURE__ */ Ee(Ko, [["render", Zo]]), Qo = {
|
|
|
2098
2098
|
},
|
|
2099
2099
|
loadingContent: {
|
|
2100
2100
|
type: String,
|
|
2101
|
-
default: (e) =>
|
|
2101
|
+
default: (e) => Ie(e.theme, "loadingContent")
|
|
2102
2102
|
},
|
|
2103
2103
|
targetNodes: {
|
|
2104
2104
|
type: Function,
|
|
@@ -2153,53 +2153,53 @@ const tt = /* @__PURE__ */ Ee(Ko, [["render", Zo]]), Qo = {
|
|
|
2153
2153
|
this.$_isShown = !1;
|
|
2154
2154
|
}
|
|
2155
2155
|
}
|
|
2156
|
-
}),
|
|
2157
|
-
function
|
|
2158
|
-
const
|
|
2159
|
-
return
|
|
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
2160
|
theme: e.theme,
|
|
2161
2161
|
"target-nodes": e.targetNodes,
|
|
2162
2162
|
"popper-node": () => e.$refs.popperContent.$el,
|
|
2163
2163
|
onApplyShow: e.onShow,
|
|
2164
2164
|
onApplyHide: e.onHide
|
|
2165
2165
|
}), {
|
|
2166
|
-
default:
|
|
2166
|
+
default: _(({
|
|
2167
2167
|
popperId: l,
|
|
2168
2168
|
isShown: u,
|
|
2169
|
-
shouldMountContent:
|
|
2169
|
+
shouldMountContent: c,
|
|
2170
2170
|
skipTransition: d,
|
|
2171
|
-
autoHide:
|
|
2172
|
-
hide:
|
|
2173
|
-
handleResize:
|
|
2174
|
-
onResize:
|
|
2175
|
-
classes:
|
|
2176
|
-
result:
|
|
2171
|
+
autoHide: y,
|
|
2172
|
+
hide: h,
|
|
2173
|
+
handleResize: v,
|
|
2174
|
+
onResize: b,
|
|
2175
|
+
classes: f,
|
|
2176
|
+
result: m
|
|
2177
2177
|
}) => [
|
|
2178
|
-
|
|
2178
|
+
N(a, {
|
|
2179
2179
|
ref: "popperContent",
|
|
2180
|
-
class:
|
|
2180
|
+
class: I({
|
|
2181
2181
|
"v-popper--tooltip-loading": e.loading
|
|
2182
2182
|
}),
|
|
2183
2183
|
"popper-id": l,
|
|
2184
2184
|
theme: e.theme,
|
|
2185
2185
|
shown: u,
|
|
2186
|
-
mounted:
|
|
2186
|
+
mounted: c,
|
|
2187
2187
|
"skip-transition": d,
|
|
2188
|
-
"auto-hide":
|
|
2189
|
-
"handle-resize":
|
|
2190
|
-
classes:
|
|
2191
|
-
result:
|
|
2192
|
-
onHide:
|
|
2193
|
-
onResize:
|
|
2188
|
+
"auto-hide": y,
|
|
2189
|
+
"handle-resize": v,
|
|
2190
|
+
classes: f,
|
|
2191
|
+
result: m,
|
|
2192
|
+
onHide: h,
|
|
2193
|
+
onResize: b
|
|
2194
2194
|
}, {
|
|
2195
|
-
default:
|
|
2196
|
-
e.html ? (
|
|
2195
|
+
default: _(() => [
|
|
2196
|
+
e.html ? (g(), S("div", {
|
|
2197
2197
|
key: 0,
|
|
2198
2198
|
innerHTML: e.finalContent
|
|
2199
|
-
}, null, 8,
|
|
2199
|
+
}, null, 8, Xn)) : (g(), S("div", {
|
|
2200
2200
|
key: 1,
|
|
2201
|
-
textContent:
|
|
2202
|
-
}, null, 8,
|
|
2201
|
+
textContent: Z(e.finalContent)
|
|
2202
|
+
}, null, 8, Qn))
|
|
2203
2203
|
]),
|
|
2204
2204
|
_: 2
|
|
2205
2205
|
}, 1032, ["class", "popper-id", "theme", "shown", "mounted", "skip-transition", "auto-hide", "handle-resize", "classes", "result", "onHide", "onResize"])
|
|
@@ -2207,32 +2207,32 @@ function rn(e, t, o, n, i, r) {
|
|
|
2207
2207
|
_: 1
|
|
2208
2208
|
}, 16, ["theme", "target-nodes", "popper-node", "onApplyShow", "onApplyHide"]);
|
|
2209
2209
|
}
|
|
2210
|
-
const
|
|
2211
|
-
function
|
|
2210
|
+
const Kn = /* @__PURE__ */ tt(Un, [["render", Yn]]), Po = "v-popper--has-tooltip";
|
|
2211
|
+
function Jn(e, t) {
|
|
2212
2212
|
let o = e.placement;
|
|
2213
2213
|
if (!o && t)
|
|
2214
|
-
for (const n of
|
|
2214
|
+
for (const n of ko)
|
|
2215
2215
|
t[n] && (o = n);
|
|
2216
|
-
return o || (o =
|
|
2216
|
+
return o || (o = Ie(e.theme || "tooltip", "placement")), o;
|
|
2217
2217
|
}
|
|
2218
|
-
function
|
|
2218
|
+
function Oo(e, t, o) {
|
|
2219
2219
|
let n;
|
|
2220
2220
|
const i = typeof t;
|
|
2221
|
-
return i === "string" ? n = { content: t } : t && i === "object" ? n = t : n = { content: !1 }, n.placement =
|
|
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
2222
|
}
|
|
2223
|
-
let
|
|
2224
|
-
function
|
|
2225
|
-
if (
|
|
2223
|
+
let at, De, ei = 0;
|
|
2224
|
+
function ti() {
|
|
2225
|
+
if (at)
|
|
2226
2226
|
return;
|
|
2227
|
-
|
|
2227
|
+
De = W([]), at = Uo({
|
|
2228
2228
|
name: "VTooltipDirectiveApp",
|
|
2229
2229
|
setup() {
|
|
2230
2230
|
return {
|
|
2231
|
-
directives:
|
|
2231
|
+
directives: De
|
|
2232
2232
|
};
|
|
2233
2233
|
},
|
|
2234
2234
|
render() {
|
|
2235
|
-
return this.directives.map((t) =>
|
|
2235
|
+
return this.directives.map((t) => Xo(Kn, {
|
|
2236
2236
|
...t.options,
|
|
2237
2237
|
shown: t.shown || t.options.shown,
|
|
2238
2238
|
key: t.id
|
|
@@ -2243,16 +2243,16 @@ function un() {
|
|
|
2243
2243
|
}
|
|
2244
2244
|
});
|
|
2245
2245
|
const e = document.createElement("div");
|
|
2246
|
-
document.body.appendChild(e),
|
|
2246
|
+
document.body.appendChild(e), at.mount(e);
|
|
2247
2247
|
}
|
|
2248
|
-
function
|
|
2249
|
-
|
|
2250
|
-
const n =
|
|
2251
|
-
id:
|
|
2248
|
+
function oi(e, t, o) {
|
|
2249
|
+
ti();
|
|
2250
|
+
const n = W(Oo(e, t, o)), i = W(!1), r = {
|
|
2251
|
+
id: ei++,
|
|
2252
2252
|
options: n,
|
|
2253
2253
|
shown: i
|
|
2254
2254
|
};
|
|
2255
|
-
return
|
|
2255
|
+
return De.value.push(r), e.classList && e.classList.add(Po), e.$_popper = {
|
|
2256
2256
|
options: n,
|
|
2257
2257
|
item: r,
|
|
2258
2258
|
show() {
|
|
@@ -2263,100 +2263,212 @@ function dn(e, t, o) {
|
|
|
2263
2263
|
}
|
|
2264
2264
|
};
|
|
2265
2265
|
}
|
|
2266
|
-
function
|
|
2266
|
+
function Ro(e) {
|
|
2267
2267
|
if (e.$_popper) {
|
|
2268
|
-
const t =
|
|
2269
|
-
t !== -1 &&
|
|
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
2270
|
}
|
|
2271
|
-
e.classList && e.classList.remove(
|
|
2271
|
+
e.classList && e.classList.remove(Po);
|
|
2272
2272
|
}
|
|
2273
|
-
function
|
|
2274
|
-
const n =
|
|
2275
|
-
if (!n.content ||
|
|
2276
|
-
|
|
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
2277
|
else {
|
|
2278
2278
|
let i;
|
|
2279
|
-
e.$_popper ? (i = e.$_popper, i.options.value = n) : 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
2280
|
}
|
|
2281
2281
|
}
|
|
2282
|
-
const
|
|
2283
|
-
beforeMount:
|
|
2284
|
-
updated:
|
|
2282
|
+
const ni = {
|
|
2283
|
+
beforeMount: Xt,
|
|
2284
|
+
updated: Xt,
|
|
2285
2285
|
beforeUnmount(e) {
|
|
2286
|
-
|
|
2286
|
+
Ro(e);
|
|
2287
2287
|
}
|
|
2288
2288
|
};
|
|
2289
|
-
function
|
|
2290
|
-
e.addEventListener("mousedown",
|
|
2289
|
+
function Qt(e) {
|
|
2290
|
+
e.addEventListener("mousedown", Ye), e.addEventListener("click", Ye), e.addEventListener("touchstart", Lo, Se ? {
|
|
2291
2291
|
passive: !0
|
|
2292
2292
|
} : !1);
|
|
2293
2293
|
}
|
|
2294
|
-
function
|
|
2295
|
-
e.removeEventListener("mousedown",
|
|
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
2296
|
}
|
|
2297
|
-
function
|
|
2297
|
+
function Ye(e) {
|
|
2298
2298
|
const t = e.currentTarget;
|
|
2299
2299
|
e.closePopover = !t.$_vclosepopover_touch, e.closeAllPopover = t.$_closePopoverModifiers && !!t.$_closePopoverModifiers.all;
|
|
2300
2300
|
}
|
|
2301
|
-
function
|
|
2301
|
+
function Lo(e) {
|
|
2302
2302
|
if (e.changedTouches.length === 1) {
|
|
2303
2303
|
const t = e.currentTarget;
|
|
2304
2304
|
t.$_vclosepopover_touch = !0;
|
|
2305
2305
|
const o = e.changedTouches[0];
|
|
2306
|
-
t.$_vclosepopover_touchPoint = o, t.addEventListener("touchend",
|
|
2306
|
+
t.$_vclosepopover_touchPoint = o, t.addEventListener("touchend", zo), t.addEventListener("touchcancel", Mo);
|
|
2307
2307
|
}
|
|
2308
2308
|
}
|
|
2309
|
-
function
|
|
2309
|
+
function zo(e) {
|
|
2310
2310
|
const t = e.currentTarget;
|
|
2311
2311
|
if (t.$_vclosepopover_touch = !1, e.changedTouches.length === 1) {
|
|
2312
2312
|
const o = e.changedTouches[0], n = t.$_vclosepopover_touchPoint;
|
|
2313
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
2314
|
}
|
|
2315
2315
|
}
|
|
2316
|
-
function
|
|
2316
|
+
function Mo(e) {
|
|
2317
2317
|
const t = e.currentTarget;
|
|
2318
2318
|
t.$_vclosepopover_touch = !1;
|
|
2319
2319
|
}
|
|
2320
|
-
const
|
|
2320
|
+
const ii = {
|
|
2321
2321
|
beforeMount(e, { value: t, modifiers: o }) {
|
|
2322
|
-
e.$_closePopoverModifiers = o, (typeof t > "u" || t) &&
|
|
2322
|
+
e.$_closePopoverModifiers = o, (typeof t > "u" || t) && Qt(e);
|
|
2323
2323
|
},
|
|
2324
2324
|
updated(e, { value: t, oldValue: o, modifiers: n }) {
|
|
2325
|
-
e.$_closePopoverModifiers = n, t !== o && (typeof t > "u" || t ?
|
|
2325
|
+
e.$_closePopoverModifiers = n, t !== o && (typeof t > "u" || t ? Qt(e) : Yt(e));
|
|
2326
2326
|
},
|
|
2327
2327
|
beforeUnmount(e) {
|
|
2328
|
-
|
|
2328
|
+
Yt(e);
|
|
2329
2329
|
}
|
|
2330
2330
|
};
|
|
2331
|
-
function
|
|
2332
|
-
e.$_vTooltipInstalled || (e.$_vTooltipInstalled = !0,
|
|
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
2333
|
}
|
|
2334
|
-
const
|
|
2334
|
+
const si = {
|
|
2335
2335
|
// eslint-disable-next-line no-undef
|
|
2336
2336
|
version: "5.2.2",
|
|
2337
|
-
install:
|
|
2338
|
-
options:
|
|
2337
|
+
install: ri,
|
|
2338
|
+
options: ae
|
|
2339
2339
|
};
|
|
2340
|
-
function
|
|
2341
|
-
|
|
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");
|
|
2342
2454
|
return {
|
|
2343
2455
|
height: t,
|
|
2344
2456
|
textSize: o,
|
|
2345
2457
|
width: n
|
|
2346
2458
|
};
|
|
2347
2459
|
}
|
|
2348
|
-
function
|
|
2349
|
-
const o =
|
|
2460
|
+
function ci(e, t) {
|
|
2461
|
+
const o = p(() => ({
|
|
2350
2462
|
"!yu-font-plus": t.plus,
|
|
2351
2463
|
"!yu-font-inter": t.inter,
|
|
2352
2464
|
"!yu-font-titillium": t.titillium
|
|
2353
|
-
})), n =
|
|
2465
|
+
})), n = p(() => ({
|
|
2354
2466
|
"!yu-text-white": t.white,
|
|
2355
2467
|
"!yu-text-primary": t.primary,
|
|
2356
2468
|
"!yu-text-secondary": t.secondary,
|
|
2357
2469
|
"!yu-text-base": t.neutral,
|
|
2358
2470
|
"!yu-text-neutral": t.gray
|
|
2359
|
-
})), i =
|
|
2471
|
+
})), i = p(() => ({
|
|
2360
2472
|
"!yu-font-thin": t.thin,
|
|
2361
2473
|
"!yu-font-extralight": t.extralight,
|
|
2362
2474
|
"!yu-font-light": t.light,
|
|
@@ -2366,7 +2478,7 @@ function mn(e, t) {
|
|
|
2366
2478
|
"!yu-font-bold": t.bold,
|
|
2367
2479
|
"!yu-font-extrabold": t.extrabold,
|
|
2368
2480
|
"!yu-font-black": t.black
|
|
2369
|
-
})), r =
|
|
2481
|
+
})), r = p(() => ({
|
|
2370
2482
|
...{
|
|
2371
2483
|
title: {
|
|
2372
2484
|
"!yu-text-xl": t.small,
|
|
@@ -2390,7 +2502,7 @@ function mn(e, t) {
|
|
|
2390
2502
|
}));
|
|
2391
2503
|
return { fontClass: o, colorClass: n, weightClass: i, sizeClass: r };
|
|
2392
2504
|
}
|
|
2393
|
-
const
|
|
2505
|
+
const di = /* @__PURE__ */ U({
|
|
2394
2506
|
__name: "app-text",
|
|
2395
2507
|
props: {
|
|
2396
2508
|
extraSmall: { type: Boolean },
|
|
@@ -2417,40 +2529,19 @@ const gn = /* @__PURE__ */ Z({
|
|
|
2417
2529
|
white: { type: Boolean }
|
|
2418
2530
|
},
|
|
2419
2531
|
setup(e) {
|
|
2420
|
-
const t = e, { fontClass: o, colorClass: n, weightClass: i, sizeClass: r } =
|
|
2421
|
-
return (
|
|
2422
|
-
class:
|
|
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)]])
|
|
2423
2535
|
}, [
|
|
2424
|
-
|
|
2536
|
+
q(a.$slots, "default", {}, void 0, !0)
|
|
2425
2537
|
], 2));
|
|
2426
2538
|
}
|
|
2427
|
-
}),
|
|
2539
|
+
}), St = (e, t) => {
|
|
2428
2540
|
const o = e.__vccOpts || e;
|
|
2429
2541
|
for (const [n, i] of t)
|
|
2430
2542
|
o[n] = i;
|
|
2431
2543
|
return o;
|
|
2432
|
-
},
|
|
2433
|
-
__name: "app-icon",
|
|
2434
|
-
props: {
|
|
2435
|
-
small: Boolean,
|
|
2436
|
-
large: Boolean,
|
|
2437
|
-
extraLarge: Boolean,
|
|
2438
|
-
gray: Boolean,
|
|
2439
|
-
base: Boolean,
|
|
2440
|
-
light: Boolean,
|
|
2441
|
-
dark: Boolean,
|
|
2442
|
-
outlined: Boolean
|
|
2443
|
-
},
|
|
2444
|
-
setup(e) {
|
|
2445
|
-
const t = e, o = m(() => 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 = m(() => 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 = m(() => t.outlined ? "material-symbols-outlined" : "material-icons");
|
|
2446
|
-
return (r, s) => (S(), E("div", {
|
|
2447
|
-
class: N(["notranslate yu-flex yu-items-center yu-justify-center yu-text-center", [o.value, n.value, i.value]]),
|
|
2448
|
-
"data-testid": "app-icon"
|
|
2449
|
-
}, [
|
|
2450
|
-
k(r.$slots, "default")
|
|
2451
|
-
], 2));
|
|
2452
|
-
}
|
|
2453
|
-
}), Ke = /* @__PURE__ */ Z({
|
|
2544
|
+
}, j = /* @__PURE__ */ St(di, [["__scopeId", "data-v-65153daa"]]), ge = /* @__PURE__ */ U({
|
|
2454
2545
|
__name: "app-group",
|
|
2455
2546
|
props: {
|
|
2456
2547
|
fit: { type: Boolean },
|
|
@@ -2483,25 +2574,851 @@ const gn = /* @__PURE__ */ Z({
|
|
|
2483
2574
|
divisor: { type: Boolean }
|
|
2484
2575
|
},
|
|
2485
2576
|
setup(e) {
|
|
2486
|
-
const t = e, o =
|
|
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(() => [
|
|
2487
2578
|
i.value,
|
|
2488
2579
|
r.value,
|
|
2489
|
-
s.value,
|
|
2490
2580
|
a.value,
|
|
2581
|
+
s.value,
|
|
2491
2582
|
n.value,
|
|
2492
2583
|
l.value,
|
|
2493
2584
|
u.value,
|
|
2494
|
-
|
|
2585
|
+
c.value,
|
|
2495
2586
|
o.value,
|
|
2496
2587
|
d.value
|
|
2497
2588
|
]);
|
|
2498
|
-
return (
|
|
2499
|
-
class:
|
|
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)
|
|
2500
2858
|
}, [
|
|
2501
|
-
|
|
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)
|
|
2502
3082
|
], 2));
|
|
2503
3083
|
}
|
|
2504
|
-
}),
|
|
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({
|
|
2505
3422
|
__name: "app-text-input",
|
|
2506
3423
|
props: {
|
|
2507
3424
|
modelValue: { default: "" },
|
|
@@ -2520,241 +3437,354 @@ const gn = /* @__PURE__ */ Z({
|
|
|
2520
3437
|
},
|
|
2521
3438
|
emits: ["update:modelValue", "keyup-enter"],
|
|
2522
3439
|
setup(e, { expose: t, emit: o }) {
|
|
2523
|
-
const n = e, i = o, r =
|
|
2524
|
-
function
|
|
2525
|
-
return !!r.value[
|
|
3440
|
+
const n = e, i = o, r = p(() => Be());
|
|
3441
|
+
function a(P) {
|
|
3442
|
+
return !!r.value[P];
|
|
2526
3443
|
}
|
|
2527
|
-
const
|
|
2528
|
-
function
|
|
2529
|
-
if (!n.maskFunction) return
|
|
3444
|
+
const s = W(""), l = W(!1), u = W(!1);
|
|
3445
|
+
function c(P) {
|
|
3446
|
+
if (!n.maskFunction) return P;
|
|
2530
3447
|
try {
|
|
2531
|
-
const
|
|
2532
|
-
return typeof
|
|
3448
|
+
const x = n.maskFunction(P);
|
|
3449
|
+
return typeof x == "string" ? x : P;
|
|
2533
3450
|
} catch {
|
|
2534
|
-
return
|
|
3451
|
+
return P;
|
|
2535
3452
|
}
|
|
2536
3453
|
}
|
|
2537
|
-
|
|
3454
|
+
je(
|
|
2538
3455
|
() => n.modelValue,
|
|
2539
|
-
(
|
|
2540
|
-
if (
|
|
2541
|
-
|
|
3456
|
+
(P) => {
|
|
3457
|
+
if (P == null) {
|
|
3458
|
+
s.value = "";
|
|
2542
3459
|
return;
|
|
2543
3460
|
}
|
|
2544
|
-
|
|
3461
|
+
s.value = n.maskFunction ? c(P) : P;
|
|
2545
3462
|
},
|
|
2546
3463
|
{ immediate: !0 }
|
|
2547
3464
|
);
|
|
2548
3465
|
function d() {
|
|
2549
|
-
return !(l.value ||
|
|
3466
|
+
return !(l.value || s.value);
|
|
2550
3467
|
}
|
|
2551
|
-
const { height:
|
|
2552
|
-
function
|
|
2553
|
-
const
|
|
2554
|
-
|
|
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);
|
|
2555
3472
|
}
|
|
2556
3473
|
return t({
|
|
2557
3474
|
focus: l,
|
|
2558
|
-
content:
|
|
2559
|
-
}), (
|
|
2560
|
-
class:
|
|
3475
|
+
content: s
|
|
3476
|
+
}), (P, x) => (g(), E(ge, {
|
|
3477
|
+
class: I([A(v)]),
|
|
2561
3478
|
col: "",
|
|
2562
3479
|
"gap-none": ""
|
|
2563
3480
|
}, {
|
|
2564
|
-
default:
|
|
2565
|
-
|
|
3481
|
+
default: _(() => [
|
|
3482
|
+
N(ge, {
|
|
2566
3483
|
col: "",
|
|
2567
3484
|
"gap-sm": ""
|
|
2568
3485
|
}, {
|
|
2569
|
-
default:
|
|
2570
|
-
|
|
3486
|
+
default: _(() => [
|
|
3487
|
+
a("label") ? (g(), E(j, {
|
|
2571
3488
|
key: 0,
|
|
2572
3489
|
small: "",
|
|
2573
3490
|
medium: ""
|
|
2574
3491
|
}, {
|
|
2575
|
-
default:
|
|
2576
|
-
|
|
3492
|
+
default: _(() => [
|
|
3493
|
+
q(P.$slots, "label")
|
|
2577
3494
|
]),
|
|
2578
3495
|
_: 3
|
|
2579
|
-
})) :
|
|
2580
|
-
|
|
2581
|
-
class:
|
|
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]]),
|
|
2582
3499
|
"data-testid": "app-text-input"
|
|
2583
3500
|
}, [
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
!e.loading &&
|
|
3501
|
+
C("div", Ii, [
|
|
3502
|
+
C("div", Di, [
|
|
3503
|
+
!e.loading && a("icon") ? (g(), E(ne, {
|
|
2587
3504
|
key: 0,
|
|
2588
3505
|
small: ""
|
|
2589
3506
|
}, {
|
|
2590
|
-
default:
|
|
2591
|
-
|
|
3507
|
+
default: _(() => [
|
|
3508
|
+
q(P.$slots, "icon")
|
|
2592
3509
|
]),
|
|
2593
3510
|
_: 3
|
|
2594
|
-
})) :
|
|
2595
|
-
e.loading ? (
|
|
3511
|
+
})) : R("", !0),
|
|
3512
|
+
e.loading ? (g(), E(ne, {
|
|
2596
3513
|
key: 1,
|
|
2597
3514
|
class: "yu-animate-spin",
|
|
2598
3515
|
small: "",
|
|
2599
3516
|
outlined: ""
|
|
2600
3517
|
}, {
|
|
2601
|
-
default:
|
|
2602
|
-
|
|
3518
|
+
default: _(() => [...x[4] || (x[4] = [
|
|
3519
|
+
M("progress_activity", -1)
|
|
2603
3520
|
])]),
|
|
2604
3521
|
_: 1
|
|
2605
|
-
})) :
|
|
3522
|
+
})) : R("", !0)
|
|
2606
3523
|
]),
|
|
2607
|
-
|
|
2608
|
-
class:
|
|
3524
|
+
N(j, {
|
|
3525
|
+
class: I(["yu-py-1 yu-transition", [m.value]]),
|
|
2609
3526
|
small: "",
|
|
2610
3527
|
medium: "",
|
|
2611
3528
|
gray: ""
|
|
2612
3529
|
}, {
|
|
2613
|
-
default:
|
|
2614
|
-
|
|
3530
|
+
default: _(() => [
|
|
3531
|
+
q(P.$slots, "default")
|
|
2615
3532
|
]),
|
|
2616
3533
|
_: 3
|
|
2617
3534
|
}, 8, ["class"])
|
|
2618
3535
|
]),
|
|
2619
|
-
|
|
2620
|
-
class:
|
|
2621
|
-
value:
|
|
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,
|
|
2622
3539
|
type: e.passwordToggle && u.value ? "text" : e.type,
|
|
2623
3540
|
disabled: e.disabled || e.loading,
|
|
2624
3541
|
maxlength: e.maxLength,
|
|
2625
|
-
onInput:
|
|
2626
|
-
onFocus:
|
|
2627
|
-
onBlur:
|
|
2628
|
-
onKeyup:
|
|
2629
|
-
}, null, 42,
|
|
2630
|
-
|
|
2631
|
-
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, {
|
|
2632
3549
|
key: 0,
|
|
2633
3550
|
small: ""
|
|
2634
3551
|
}, {
|
|
2635
|
-
default:
|
|
2636
|
-
|
|
3552
|
+
default: _(() => [
|
|
3553
|
+
M(Z(`${s.value.length} / ${e.maxLength}`), 1)
|
|
2637
3554
|
]),
|
|
2638
3555
|
_: 1
|
|
2639
|
-
})) :
|
|
2640
|
-
e.type === "password" && e.passwordToggle ? (
|
|
3556
|
+
})) : R("", !0),
|
|
3557
|
+
e.type === "password" && e.passwordToggle ? (g(), S("button", {
|
|
2641
3558
|
key: 1,
|
|
2642
3559
|
class: "yu-bg-transparent yu-border-0 yu-p-0 yu-cursor-pointer yu-flex yu-items-center",
|
|
2643
3560
|
type: "button",
|
|
2644
3561
|
tabindex: "-1",
|
|
2645
|
-
onClick:
|
|
3562
|
+
onClick: x[3] || (x[3] = (B) => u.value = !u.value)
|
|
2646
3563
|
}, [
|
|
2647
|
-
|
|
3564
|
+
N(ne, {
|
|
2648
3565
|
small: "",
|
|
2649
3566
|
gray: ""
|
|
2650
3567
|
}, {
|
|
2651
|
-
default:
|
|
2652
|
-
|
|
3568
|
+
default: _(() => [
|
|
3569
|
+
M(Z(u.value ? "visibility_off" : "visibility"), 1)
|
|
2653
3570
|
]),
|
|
2654
3571
|
_: 1
|
|
2655
3572
|
})
|
|
2656
|
-
])) :
|
|
2657
|
-
|
|
3573
|
+
])) : R("", !0),
|
|
3574
|
+
q(P.$slots, "suffix")
|
|
2658
3575
|
])
|
|
2659
3576
|
], 2)
|
|
2660
3577
|
]),
|
|
2661
3578
|
_: 3
|
|
2662
3579
|
}),
|
|
2663
|
-
|
|
3580
|
+
a("feedback") ? (g(), S("div", {
|
|
2664
3581
|
key: 0,
|
|
2665
|
-
class:
|
|
3582
|
+
class: I(["yu-mt-1", [f.value]])
|
|
2666
3583
|
}, [
|
|
2667
|
-
|
|
2668
|
-
], 2)) :
|
|
3584
|
+
q(P.$slots, "feedback")
|
|
3585
|
+
], 2)) : R("", !0)
|
|
2669
3586
|
]),
|
|
2670
3587
|
_: 3
|
|
2671
3588
|
}, 8, ["class"]));
|
|
2672
3589
|
}
|
|
2673
3590
|
});
|
|
2674
|
-
function
|
|
2675
|
-
const t =
|
|
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
|
+
};
|
|
2676
3616
|
return {
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
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
|
+
}
|
|
2681
3634
|
};
|
|
2682
3635
|
}
|
|
2683
|
-
const
|
|
2684
|
-
|
|
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",
|
|
2685
3642
|
props: {
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
ghost: Boolean,
|
|
2690
|
-
link: Boolean,
|
|
2691
|
-
round: Boolean,
|
|
2692
|
-
icon: Boolean,
|
|
2693
|
-
fluid: Boolean,
|
|
2694
|
-
disabled: Boolean,
|
|
2695
|
-
loading: Boolean,
|
|
2696
|
-
alert: Boolean,
|
|
2697
|
-
warning: Boolean,
|
|
2698
|
-
success: Boolean,
|
|
2699
|
-
block: Boolean
|
|
3643
|
+
workflow: {},
|
|
3644
|
+
config: {},
|
|
3645
|
+
fullscreen: { type: Boolean }
|
|
2700
3646
|
},
|
|
2701
|
-
emits: ["click"],
|
|
2702
|
-
setup(e) {
|
|
2703
|
-
const
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
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]])
|
|
2714
3667
|
}, [
|
|
2715
|
-
|
|
2716
|
-
|
|
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", {
|
|
2717
3700
|
key: 0,
|
|
2718
|
-
class: "yu-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
key: 2,
|
|
2737
|
-
class: "!yu-text-inherit",
|
|
2738
|
-
small: ""
|
|
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"
|
|
2739
3719
|
}, {
|
|
2740
|
-
default:
|
|
2741
|
-
|
|
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
|
+
]))
|
|
2742
3764
|
]),
|
|
2743
|
-
_:
|
|
2744
|
-
})
|
|
3765
|
+
_: 1
|
|
3766
|
+
})
|
|
2745
3767
|
]),
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
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));
|
|
2756
3786
|
}
|
|
2757
|
-
}),
|
|
3787
|
+
}), rr = /* @__PURE__ */ St(ir, [["__scopeId", "data-v-ffab5770"]]), sr = ["disabled"], ar = ["src"], lr = /* @__PURE__ */ U({
|
|
2758
3788
|
__name: "app-activator",
|
|
2759
3789
|
props: {
|
|
2760
3790
|
small: Boolean,
|
|
@@ -2769,59 +3799,320 @@ const Tn = ["disabled"], Bn = { class: "yu-flex yu-items-center yu-justify-cente
|
|
|
2769
3799
|
},
|
|
2770
3800
|
emits: ["click"],
|
|
2771
3801
|
setup(e) {
|
|
2772
|
-
const t = e, o =
|
|
3802
|
+
const t = e, o = p(() => Be());
|
|
2773
3803
|
function n(u) {
|
|
2774
3804
|
return !!o.value[u];
|
|
2775
3805
|
}
|
|
2776
|
-
const i =
|
|
2777
|
-
return (u,
|
|
2778
|
-
class:
|
|
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]]),
|
|
2779
3809
|
type: "button",
|
|
2780
3810
|
"data-testid": "app-activator",
|
|
2781
3811
|
disabled: e.disabled || e.loading,
|
|
2782
|
-
onClick:
|
|
3812
|
+
onClick: c[0] || (c[0] = (d) => u.$emit("click", d))
|
|
2783
3813
|
}, [
|
|
2784
|
-
e.loading ? (
|
|
3814
|
+
e.loading ? (g(), E(ne, {
|
|
2785
3815
|
key: 0,
|
|
2786
3816
|
class: "yu-animate-spin",
|
|
2787
3817
|
outlined: "",
|
|
2788
3818
|
large: ""
|
|
2789
3819
|
}, {
|
|
2790
|
-
default:
|
|
2791
|
-
|
|
3820
|
+
default: _(() => [...c[1] || (c[1] = [
|
|
3821
|
+
M("progress_activity", -1)
|
|
2792
3822
|
])]),
|
|
2793
3823
|
_: 1
|
|
2794
|
-
})) : e.logo ? (
|
|
3824
|
+
})) : e.logo ? (g(), S("img", {
|
|
2795
3825
|
key: 1,
|
|
2796
|
-
class:
|
|
3826
|
+
class: I(["yu-object-contain yu-pointer-events-none yu-select-none yu-shrink-0", s.value]),
|
|
2797
3827
|
src: e.logo,
|
|
2798
3828
|
alt: "",
|
|
2799
3829
|
"data-testid": "app-activator-logo"
|
|
2800
|
-
}, null, 10,
|
|
2801
|
-
i.value ? (
|
|
3830
|
+
}, null, 10, ar)) : R("", !0),
|
|
3831
|
+
i.value ? (g(), E(j, {
|
|
2802
3832
|
key: 2,
|
|
2803
3833
|
class: "!yu-text-inherit yu-whitespace-nowrap",
|
|
2804
3834
|
small: "",
|
|
2805
3835
|
"data-testid": "app-activator-label"
|
|
2806
3836
|
}, {
|
|
2807
|
-
default:
|
|
2808
|
-
|
|
3837
|
+
default: _(() => [
|
|
3838
|
+
q(u.$slots, "default")
|
|
2809
3839
|
]),
|
|
2810
3840
|
_: 3
|
|
2811
|
-
})) :
|
|
2812
|
-
], 10,
|
|
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)]
|
|
2813
4089
|
}
|
|
2814
|
-
}),
|
|
4090
|
+
}, yr = xt, mr = (e) => pr.rules.find((t) => t.id === e), gr = {
|
|
2815
4091
|
install: (e) => {
|
|
2816
|
-
e.use(
|
|
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);
|
|
2817
4093
|
}
|
|
2818
4094
|
};
|
|
2819
4095
|
export {
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
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
|
|
2827
4118
|
};
|