@genpact/genome.mfe.mgtwin-app 1.0.8 → 1.1.1
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/{HomeView-d8b4b710.mjs → HomeView-c3427ee2.mjs} +541 -534
- package/dist/{PromptTesting-8f0a24d8.mjs → PromptTesting-03d32f7b.mjs} +2 -2
- package/dist/{UnderMaintenance-95637b54.mjs → UnderMaintenance-a3547896.mjs} +1 -1
- package/dist/{loadernew-853b088f.mjs → loadernew-360711ad.mjs} +1 -1
- package/dist/main-13a46785.mjs +7274 -0
- package/dist/mgtwin.es.min.js +1 -1
- package/dist/mgtwin.umd.min.js +8 -8
- package/package.json +1 -1
- package/dist/main-fb806f03.mjs +0 -7274
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { o as
|
|
2
|
-
import { p as
|
|
3
|
-
import { _ as
|
|
1
|
+
import { o as v, c as m, a as i, d as te, u as le, b as y, e as _, t as P, f as S, g as A, F, r as V, n as be, h as k, i as X, A as _t, j as Ae, w as ye, k as Se, l as Pt, m as fe, v as et, p as T, q as $t, s as tt, T as zt, x as Be, y as eo, z as to, B as oo, C as Ot, D as ke, E as At, G as ro, H as me, I as no, J as so, K as nt, L as ao, M as io, N as lo, O as co, P as uo, Q as po, R as fo } from "./main-13a46785.mjs";
|
|
2
|
+
import { p as Ie, _ as vo, a as Ze, r as ho, g as Lt } from "./loadernew-360711ad.mjs";
|
|
3
|
+
import { _ as st } from "./_plugin-vue_export-helper-dad06003.mjs";
|
|
4
4
|
function mo(t, e) {
|
|
5
|
-
return
|
|
5
|
+
return v(), m("svg", {
|
|
6
6
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7
7
|
viewBox: "0 0 24 24",
|
|
8
8
|
fill: "currentColor",
|
|
@@ -15,8 +15,8 @@ function mo(t, e) {
|
|
|
15
15
|
})
|
|
16
16
|
]);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
19
|
-
return
|
|
18
|
+
function He(t, e) {
|
|
19
|
+
return v(), m("svg", {
|
|
20
20
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21
21
|
viewBox: "0 0 24 24",
|
|
22
22
|
fill: "currentColor",
|
|
@@ -30,7 +30,7 @@ function Me(t, e) {
|
|
|
30
30
|
]);
|
|
31
31
|
}
|
|
32
32
|
function bo(t, e) {
|
|
33
|
-
return
|
|
33
|
+
return v(), m("svg", {
|
|
34
34
|
xmlns: "http://www.w3.org/2000/svg",
|
|
35
35
|
viewBox: "0 0 24 24",
|
|
36
36
|
fill: "currentColor",
|
|
@@ -40,7 +40,7 @@ function bo(t, e) {
|
|
|
40
40
|
]);
|
|
41
41
|
}
|
|
42
42
|
function yo(t, e) {
|
|
43
|
-
return
|
|
43
|
+
return v(), m("svg", {
|
|
44
44
|
xmlns: "http://www.w3.org/2000/svg",
|
|
45
45
|
viewBox: "0 0 24 24",
|
|
46
46
|
fill: "currentColor",
|
|
@@ -49,8 +49,8 @@ function yo(t, e) {
|
|
|
49
49
|
i("path", { d: "M7.493 18.75c-.425 0-.82-.236-.975-.632A7.48 7.48 0 016 15.375c0-1.75.599-3.358 1.602-4.634.151-.192.373-.309.6-.397.473-.183.89-.514 1.212-.924a9.042 9.042 0 012.861-2.4c.723-.384 1.35-.956 1.653-1.715a4.498 4.498 0 00.322-1.672V3a.75.75 0 01.75-.75 2.25 2.25 0 012.25 2.25c0 1.152-.26 2.243-.723 3.218-.266.558.107 1.282.725 1.282h3.126c1.026 0 1.945.694 2.054 1.715.045.422.068.85.068 1.285a11.95 11.95 0 01-2.649 7.521c-.388.482-.987.729-1.605.729H14.23c-.483 0-.964-.078-1.423-.23l-3.114-1.04a4.501 4.501 0 00-1.423-.23h-.777zM2.331 10.977a11.969 11.969 0 00-.831 4.398 12 12 0 00.52 3.507c.26.85 1.084 1.368 1.973 1.368H4.9c.445 0 .72-.498.523-.898a8.963 8.963 0 01-.924-3.977c0-1.708.476-3.305 1.302-4.666.245-.403-.028-.959-.5-.959H4.25c-.832 0-1.612.453-1.918 1.227z" })
|
|
50
50
|
]);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
return
|
|
52
|
+
function Te(t, e) {
|
|
53
|
+
return v(), m("svg", {
|
|
54
54
|
xmlns: "http://www.w3.org/2000/svg",
|
|
55
55
|
viewBox: "0 0 24 24",
|
|
56
56
|
fill: "currentColor",
|
|
@@ -64,7 +64,7 @@ function Ne(t, e) {
|
|
|
64
64
|
]);
|
|
65
65
|
}
|
|
66
66
|
function go(t, e) {
|
|
67
|
-
return
|
|
67
|
+
return v(), m("svg", {
|
|
68
68
|
xmlns: "http://www.w3.org/2000/svg",
|
|
69
69
|
viewBox: "0 0 24 24",
|
|
70
70
|
fill: "currentColor",
|
|
@@ -78,7 +78,7 @@ function go(t, e) {
|
|
|
78
78
|
]);
|
|
79
79
|
}
|
|
80
80
|
function Mt(t, e) {
|
|
81
|
-
return
|
|
81
|
+
return v(), m("svg", {
|
|
82
82
|
xmlns: "http://www.w3.org/2000/svg",
|
|
83
83
|
viewBox: "0 0 24 24",
|
|
84
84
|
fill: "currentColor",
|
|
@@ -91,8 +91,8 @@ function Mt(t, e) {
|
|
|
91
91
|
})
|
|
92
92
|
]);
|
|
93
93
|
}
|
|
94
|
-
const
|
|
95
|
-
var
|
|
94
|
+
const We = 300, xo = "97103561-8dc3-4fe7-ad0a-4f8dedac8f6b";
|
|
95
|
+
var at = /* @__PURE__ */ ((t) => (t.CONSENT = "user_consent", t.FAQ = "most_popular_question", t))(at || {});
|
|
96
96
|
const wo = { class: "md:w-72 bg-genpact-blue-box px-3 h-full flex flex-col justify-start pt-4 gap-2 overflow-y-auto" }, Ao = { class: "space-y-2 text-sm" }, ko = { class: "flex gap-2 text-white" }, Eo = { key: 0 }, Ro = { class: "flex items-center gap-2 py-1" }, Yo = { key: 0 }, Go = { class: "tooltip" }, Co = { class: "tooltiptext" }, So = { key: 0 }, Io = ["href"], Po = {
|
|
97
97
|
key: 1,
|
|
98
98
|
class: "my-3"
|
|
@@ -116,49 +116,49 @@ const wo = { class: "md:w-72 bg-genpact-blue-box px-3 h-full flex flex-col justi
|
|
|
116
116
|
}, n = async (s, l) => {
|
|
117
117
|
if (o.addConversation(s, l), l === "faq") {
|
|
118
118
|
const a = {
|
|
119
|
-
event_type:
|
|
119
|
+
event_type: at.FAQ,
|
|
120
120
|
question_id: s.id.toString()
|
|
121
121
|
};
|
|
122
|
-
await
|
|
122
|
+
await Ie("/generateEvent", a);
|
|
123
123
|
}
|
|
124
124
|
e("closeDrawer");
|
|
125
125
|
};
|
|
126
126
|
return (s, l) => {
|
|
127
127
|
var a;
|
|
128
|
-
return
|
|
128
|
+
return v(), m("div", wo, [
|
|
129
129
|
i("div", Ao, [
|
|
130
130
|
i("div", ko, [
|
|
131
|
-
y(o).skill_id ? (
|
|
131
|
+
y(o).skill_id ? (v(), m("div", Eo, [
|
|
132
132
|
i("div", Ro, [
|
|
133
|
-
y(o).skill_id ? (
|
|
133
|
+
y(o).skill_id ? (v(), m("div", Yo, [
|
|
134
134
|
i("h4", null, [
|
|
135
135
|
_(" Skill: "),
|
|
136
|
-
i("b", null,
|
|
136
|
+
i("b", null, P(y(o).skillName), 1)
|
|
137
137
|
])
|
|
138
|
-
])) :
|
|
138
|
+
])) : S("", !0),
|
|
139
139
|
i("div", Go, [
|
|
140
|
-
i("span", Co,
|
|
141
|
-
A(y(
|
|
140
|
+
i("span", Co, P(y(o).skillDefinition), 1),
|
|
141
|
+
A(y(Te), { class: "w-5 h-5 fill-current" })
|
|
142
142
|
])
|
|
143
143
|
]),
|
|
144
|
-
y(o).skill_id && y(o).skillVideoLink ? (
|
|
144
|
+
y(o).skill_id && y(o).skillVideoLink ? (v(), m("div", So, [
|
|
145
145
|
i("a", {
|
|
146
146
|
href: y(o).skillVideoLink,
|
|
147
147
|
target: "_blank",
|
|
148
148
|
class: "underline text-sm"
|
|
149
|
-
}, "Watch " +
|
|
150
|
-
])) :
|
|
151
|
-
y(o).skill_id ? (
|
|
149
|
+
}, "Watch " + P(y(o).skillName) + " introduction video", 9, Io)
|
|
150
|
+
])) : S("", !0),
|
|
151
|
+
y(o).skill_id ? (v(), m("div", Po, [
|
|
152
152
|
zo,
|
|
153
|
-
(
|
|
153
|
+
(v(!0), m(F, null, V((a = y(o).guruName) == null ? void 0 : a.split(","), (d, h) => (v(), m("span", { key: h }, [
|
|
154
154
|
i("a", {
|
|
155
|
-
href: r(
|
|
155
|
+
href: r(h) || "",
|
|
156
156
|
target: "_blank"
|
|
157
|
-
},
|
|
158
|
-
|
|
157
|
+
}, P(d.trim()), 9, Oo),
|
|
158
|
+
h < y(o).guruName.split(",").length - 1 ? (v(), m("span", Lo, ", ")) : S("", !0)
|
|
159
159
|
]))), 128))
|
|
160
|
-
])) :
|
|
161
|
-
])) :
|
|
160
|
+
])) : S("", !0)
|
|
161
|
+
])) : S("", !0)
|
|
162
162
|
])
|
|
163
163
|
]),
|
|
164
164
|
i("div", Mo, [
|
|
@@ -172,21 +172,21 @@ const wo = { class: "md:w-72 bg-genpact-blue-box px-3 h-full flex flex-col justi
|
|
|
172
172
|
Do,
|
|
173
173
|
i("div", No, [
|
|
174
174
|
To,
|
|
175
|
-
A(y(
|
|
175
|
+
A(y(Te), { class: "w-5 h-5 fill-current" })
|
|
176
176
|
])
|
|
177
177
|
]),
|
|
178
178
|
i("div", Fo, [
|
|
179
|
-
(
|
|
179
|
+
(v(!0), m(F, null, V(y(o).frequentlyAskedQuestions, (d, h) => (v(), m("div", {
|
|
180
180
|
onClick: (c) => n(d, "faq"),
|
|
181
|
-
key:
|
|
182
|
-
class:
|
|
181
|
+
key: h,
|
|
182
|
+
class: be([d.isShown ? "cursor-not-allowed bg-gray-400" : "cursor-pointer", "bg-gray-200 rounded-md p-2"])
|
|
183
183
|
}, [
|
|
184
184
|
i("div", Vo, [
|
|
185
|
-
i("span", Zo,
|
|
186
|
-
_(" " +
|
|
185
|
+
i("span", Zo, P(d.question), 1),
|
|
186
|
+
_(" " + P(d.question), 1)
|
|
187
187
|
])
|
|
188
188
|
], 10, qo))), 128)),
|
|
189
|
-
y(o).frequentlyAskedQuestions.length ?
|
|
189
|
+
y(o).frequentlyAskedQuestions.length ? S("", !0) : (v(), m("div", Ko, " No Guru Questions available "))
|
|
190
190
|
])
|
|
191
191
|
]),
|
|
192
192
|
i("div", Qo, [
|
|
@@ -194,20 +194,20 @@ const wo = { class: "md:w-72 bg-genpact-blue-box px-3 h-full flex flex-col justi
|
|
|
194
194
|
Uo,
|
|
195
195
|
i("div", Bo, [
|
|
196
196
|
Wo,
|
|
197
|
-
A(y(
|
|
197
|
+
A(y(Te), { class: "w-5 h-5 fill-current" })
|
|
198
198
|
])
|
|
199
199
|
]),
|
|
200
|
-
(
|
|
200
|
+
(v(!0), m(F, null, V(y(o).recentQuestions, (d, h) => (v(), m("div", {
|
|
201
201
|
onClick: (c) => n(d, "recent"),
|
|
202
|
-
key:
|
|
203
|
-
class:
|
|
202
|
+
key: h,
|
|
203
|
+
class: be([d.isShown ? "cursor-not-allowed bg-gray-400" : "cursor-pointer", "bg-gray-200 rounded-md p-2"])
|
|
204
204
|
}, [
|
|
205
205
|
i("div", _o, [
|
|
206
|
-
i("span", $o,
|
|
207
|
-
_(" " +
|
|
206
|
+
i("span", $o, P(d.question), 1),
|
|
207
|
+
_(" " + P(d.question), 1)
|
|
208
208
|
])
|
|
209
209
|
], 10, Jo))), 128)),
|
|
210
|
-
y(o).recentQuestions.length ?
|
|
210
|
+
y(o).recentQuestions.length ? S("", !0) : (v(), m("div", er, " No Recent Questions "))
|
|
211
211
|
])
|
|
212
212
|
]);
|
|
213
213
|
};
|
|
@@ -231,8 +231,8 @@ const wo = { class: "md:w-72 bg-genpact-blue-box px-3 h-full flex flex-col justi
|
|
|
231
231
|
}
|
|
232
232
|
},
|
|
233
233
|
setup(t) {
|
|
234
|
-
return (e, o) => (
|
|
235
|
-
t.color === "white" ? (
|
|
234
|
+
return (e, o) => (v(), m("div", null, [
|
|
235
|
+
t.color === "white" ? (v(), m("img", rr)) : (v(), m("img", nr))
|
|
236
236
|
]));
|
|
237
237
|
}
|
|
238
238
|
}, sr = { class: "bg-genpact-blue-box h-full" }, ar = { class: "bg-genpact-blue-box px-3 py-3 flex items-center justify-between gap-4" }, ir = { class: "flex items-center gap-2" }, lr = { class: "flex justify-center items-center font-bold text-white text-xl" }, cr = /* @__PURE__ */ i("div", { class: "flex flex-col items-center" }, [
|
|
@@ -254,23 +254,23 @@ const wo = { class: "md:w-72 bg-genpact-blue-box px-3 h-full flex flex-col justi
|
|
|
254
254
|
}, r = () => {
|
|
255
255
|
e.value = !1;
|
|
256
256
|
};
|
|
257
|
-
return (n, s) => (
|
|
257
|
+
return (n, s) => (v(), m(F, null, [
|
|
258
258
|
i("div", null, [
|
|
259
259
|
i("div", {
|
|
260
|
-
class:
|
|
260
|
+
class: be([
|
|
261
261
|
e.value ? "inset-0 z-[50] transition-opacity opacity-100 duration-300" : "w-0 h-0 transition-all delay-100 opacity-0 -z-10",
|
|
262
262
|
"fixed overflow-hidden bg-gray-900 bg-opacity-40 ease-in-out"
|
|
263
263
|
])
|
|
264
264
|
}, [
|
|
265
265
|
i("div", {
|
|
266
|
-
class:
|
|
266
|
+
class: be([e.value ? "-translate-x-0" : "-translate-x-full", "md:w-60 w-3/4 inset-0 z-[48] delay-100 duration-300 ease-in-out transition-all fixed h-full bg-white"])
|
|
267
267
|
}, [
|
|
268
268
|
i("div", sr, [
|
|
269
269
|
A(Ht, { onCloseDrawer: r })
|
|
270
270
|
])
|
|
271
271
|
], 2),
|
|
272
272
|
i("section", {
|
|
273
|
-
class:
|
|
273
|
+
class: be(e.value ? "w-screen h-full cursor-pointer z-[30]" : "w-0 h-0"),
|
|
274
274
|
onClick: r
|
|
275
275
|
}, null, 2)
|
|
276
276
|
], 2)
|
|
@@ -293,16 +293,16 @@ const wo = { class: "md:w-72 bg-genpact-blue-box px-3 h-full flex flex-col justi
|
|
|
293
293
|
}
|
|
294
294
|
}, ur = {}, pr = { class: "flex flex-col h-min-screen justify-center text-center" }, fr = /* @__PURE__ */ i("img", {
|
|
295
295
|
class: "mb-8 block mx-auto loadercss mt-3%",
|
|
296
|
-
src:
|
|
296
|
+
src: Ze,
|
|
297
297
|
alt: "Loader Gif"
|
|
298
298
|
}, null, -1), vr = /* @__PURE__ */ i("p", { class: "mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue" }, " Loading... ", -1), hr = [
|
|
299
299
|
fr,
|
|
300
300
|
vr
|
|
301
301
|
];
|
|
302
302
|
function mr(t, e) {
|
|
303
|
-
return
|
|
303
|
+
return v(), m("div", pr, hr);
|
|
304
304
|
}
|
|
305
|
-
const br = /* @__PURE__ */
|
|
305
|
+
const br = /* @__PURE__ */ st(ur, [["render", mr]]), Je = {
|
|
306
306
|
"1,1": "i",
|
|
307
307
|
"2,-1": "i",
|
|
308
308
|
"2,0": "i",
|
|
@@ -311,21 +311,21 @@ const br = /* @__PURE__ */ nt(ur, [["render", mr]]), We = {
|
|
|
311
311
|
"3,1": "s",
|
|
312
312
|
"4,0": "s",
|
|
313
313
|
"4,1": "s"
|
|
314
|
-
},
|
|
314
|
+
}, kt = {
|
|
315
315
|
i: "Continue your BITS wave",
|
|
316
316
|
t: "Go do Transform",
|
|
317
317
|
s: "Go do Solidify"
|
|
318
318
|
};
|
|
319
|
-
let
|
|
319
|
+
let Ke = `Bearer ${localStorage.getItem("accessToken")}`;
|
|
320
320
|
const Dt = "prod";
|
|
321
|
-
_t === "local" && (
|
|
321
|
+
_t === "local" && (Ke = `Bearer ${{}.VITE_LOCAL_ACCESS_TOKEN}`);
|
|
322
322
|
const yr = async () => await X({
|
|
323
323
|
method: "get",
|
|
324
324
|
url: `https://api-router.genpact.com/${Dt}/api/genome/v1/employee/performance-report`,
|
|
325
325
|
headers: {
|
|
326
326
|
"x-oauth-config-provider": "cognito-aps1",
|
|
327
327
|
"x-sharepoint-list-name": "skills",
|
|
328
|
-
authorization:
|
|
328
|
+
authorization: Ke
|
|
329
329
|
}
|
|
330
330
|
}), gr = async (t) => {
|
|
331
331
|
const e = `
|
|
@@ -344,7 +344,7 @@ const yr = async () => await X({
|
|
|
344
344
|
method: "post",
|
|
345
345
|
url: `https://api.genpact.com/${Dt}/genome/my-profile/graphql`,
|
|
346
346
|
headers: {
|
|
347
|
-
authorization:
|
|
347
|
+
authorization: Ke
|
|
348
348
|
},
|
|
349
349
|
data: {
|
|
350
350
|
query: e,
|
|
@@ -358,7 +358,7 @@ const yr = async () => await X({
|
|
|
358
358
|
url: "https://rihejfb5x0.execute-api.ap-south-1.amazonaws.com/myplan/link",
|
|
359
359
|
headers: {
|
|
360
360
|
"x-oauth-config-provider": "cognito-aps1",
|
|
361
|
-
authorization:
|
|
361
|
+
authorization: Ke
|
|
362
362
|
},
|
|
363
363
|
data: {
|
|
364
364
|
skill: t,
|
|
@@ -370,63 +370,63 @@ const yr = async () => await X({
|
|
|
370
370
|
}, Ar = /* @__PURE__ */ te({
|
|
371
371
|
__name: "ChatActionButtons",
|
|
372
372
|
setup(t) {
|
|
373
|
-
const e = le(), o =
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
u[0] === e.skillName && (s.value = u, console.log(u), console.log(
|
|
373
|
+
const e = le(), o = Ae(), r = k([]), n = k([]), s = k([]), l = k("");
|
|
374
|
+
ye(e, (b) => {
|
|
375
|
+
b.skillName && (s.value = [], r.value.map((u) => {
|
|
376
|
+
u[0] === e.skillName && (s.value = u, console.log(u), console.log(kt[Je[u.slice(1, 3).join(",")]]), l.value = kt[Je[u.slice(1, 3).join(",")]]);
|
|
377
377
|
}));
|
|
378
378
|
});
|
|
379
379
|
const a = async () => {
|
|
380
|
-
var
|
|
380
|
+
var b;
|
|
381
381
|
try {
|
|
382
382
|
let u = "";
|
|
383
383
|
n.value.map((g) => {
|
|
384
384
|
g.skillname === e.skillName && (u = g.currentproficient);
|
|
385
385
|
});
|
|
386
|
-
const f = (await xr(e.skillName, u)).data, x = s.value.slice(1, 3).join(","),
|
|
387
|
-
window.open(
|
|
386
|
+
const f = (await xr(e.skillName, u)).data, x = s.value.slice(1, 3).join(","), p = f[Je[x]];
|
|
387
|
+
window.open(p, "_blank");
|
|
388
388
|
} catch (u) {
|
|
389
389
|
if (console.error(u), X.isAxiosError(u)) {
|
|
390
390
|
const f = u;
|
|
391
|
-
o.setError(((
|
|
391
|
+
o.setError(((b = f.response) == null ? void 0 : b.data).message);
|
|
392
392
|
} else
|
|
393
393
|
o.setError("There was an issue, please contact helpmate");
|
|
394
394
|
}
|
|
395
395
|
}, d = async () => {
|
|
396
|
-
var
|
|
396
|
+
var b, u, f;
|
|
397
397
|
try {
|
|
398
398
|
const x = await gr(e.ohr);
|
|
399
|
-
n.value = (f = (u = (
|
|
399
|
+
n.value = (f = (u = (b = x.data) == null ? void 0 : b.data) == null ? void 0 : u.MyPlan) == null ? void 0 : f.data;
|
|
400
400
|
} catch (x) {
|
|
401
401
|
console.error(x), X.isAxiosError(x) ? o.setError("Error fetching current MyPlan proficiencies") : o.setError("There was an issue, please contact helpmate");
|
|
402
402
|
}
|
|
403
|
-
},
|
|
404
|
-
var
|
|
403
|
+
}, h = async () => {
|
|
404
|
+
var b, u, f, x;
|
|
405
405
|
try {
|
|
406
|
-
const
|
|
406
|
+
const p = await yr(), g = ((b = p.data) == null ? void 0 : b.Professional_BITS) || "", R = ((u = p.data) == null ? void 0 : u.Digital_BITS) || "", Y = ((f = p.data) == null ? void 0 : f.Industry_BITS) || "";
|
|
407
407
|
r.value.push(
|
|
408
408
|
...g.split("PROFSKILL|").map((E) => E.split("|")),
|
|
409
409
|
...R.split("DIGITAL|").map((E) => E.split("|")),
|
|
410
410
|
...Y.split("INDUSTRY|").map((E) => E.split("|"))
|
|
411
411
|
);
|
|
412
|
-
} catch (
|
|
413
|
-
if (console.error(
|
|
414
|
-
const g =
|
|
412
|
+
} catch (p) {
|
|
413
|
+
if (console.error(p), X.isAxiosError(p)) {
|
|
414
|
+
const g = p;
|
|
415
415
|
o.setError(((x = g.response) == null ? void 0 : x.data).message);
|
|
416
416
|
} else
|
|
417
417
|
o.setError("There was an issue, please contact helpmate");
|
|
418
418
|
}
|
|
419
419
|
};
|
|
420
|
-
|
|
421
|
-
|
|
420
|
+
Se(() => {
|
|
421
|
+
h(), d();
|
|
422
422
|
});
|
|
423
423
|
const c = () => window.open("https://genome.genpact.com/my-profile", "_blank");
|
|
424
|
-
return (
|
|
425
|
-
s.value.length ? (
|
|
424
|
+
return (b, u) => y(e).skill_id ? (v(), m("div", wr, [
|
|
425
|
+
s.value.length ? (v(), m("div", {
|
|
426
426
|
key: 0,
|
|
427
427
|
onClick: u[0] || (u[0] = (f) => a()),
|
|
428
428
|
class: "border-[1px] bg-gray-200 border-gray-500 text-gray-500 hover:bg-gray-500/80 hover:text-white cursor-pointer text-[12px] px-3 py-1 rounded-md"
|
|
429
|
-
},
|
|
429
|
+
}, P(l.value), 1)) : (v(), m("div", {
|
|
430
430
|
key: 1,
|
|
431
431
|
onClick: u[1] || (u[1] = (f) => c()),
|
|
432
432
|
class: "border-[1px] bg-gray-200 border-gray-500 text-gray-500 hover:bg-gray-500/80 hover:text-white cursor-pointer text-[12px] px-3 py-1 rounded-md"
|
|
@@ -439,14 +439,14 @@ const yr = async () => await X({
|
|
|
439
439
|
onClick: u[3] || (u[3] = (f) => y(e).clearConversationHistory()),
|
|
440
440
|
class: "border-[1px] bg-gray-200 border-gray-500 text-gray-500 hover:bg-gray-500/80 hover:text-white cursor-pointer text-[12px] px-3 py-1 rounded-md"
|
|
441
441
|
}, " Clear Chat ")
|
|
442
|
-
])) :
|
|
442
|
+
])) : S("", !0);
|
|
443
443
|
}
|
|
444
444
|
}), kr = { class: "absolute bottom-0 w-full z-3 mt-4" }, Er = { class: "md:px-8 px-3 py-2" }, Rr = { class: "border border-gray-200" }, Yr = { class: "relative w-full z-1" }, Gr = {
|
|
445
445
|
key: 1,
|
|
446
446
|
class: "absolute top-3 right-4"
|
|
447
447
|
}, Cr = /* @__PURE__ */ i("img", {
|
|
448
448
|
class: "w-10 h-10 block mx-auto loadercss",
|
|
449
|
-
src:
|
|
449
|
+
src: Ze,
|
|
450
450
|
alt: "Loader Gif"
|
|
451
451
|
}, null, -1), Sr = [
|
|
452
452
|
Cr
|
|
@@ -455,11 +455,11 @@ const yr = async () => await X({
|
|
|
455
455
|
], -1), zr = /* @__PURE__ */ te({
|
|
456
456
|
__name: "NewQuestion",
|
|
457
457
|
setup(t) {
|
|
458
|
-
const e =
|
|
459
|
-
const u =
|
|
460
|
-
a.value =
|
|
461
|
-
},
|
|
462
|
-
var
|
|
458
|
+
const e = Pt(), o = Ae(), r = le(), n = k(""), s = k(!1), l = k(!1), a = k(We), d = (b) => {
|
|
459
|
+
const u = b.length;
|
|
460
|
+
a.value = We - u, l.value = u >= We;
|
|
461
|
+
}, h = async () => {
|
|
462
|
+
var b, u, f, x;
|
|
463
463
|
try {
|
|
464
464
|
if (!r.skill_id) {
|
|
465
465
|
o.setError("Please select a skill");
|
|
@@ -478,25 +478,25 @@ const yr = async () => await X({
|
|
|
478
478
|
return;
|
|
479
479
|
}
|
|
480
480
|
s.value = !0;
|
|
481
|
-
const
|
|
481
|
+
const p = {
|
|
482
482
|
past_messages: r.past_messages,
|
|
483
483
|
skill_id: r.skill_id,
|
|
484
484
|
prof_id: r.prof_id,
|
|
485
485
|
question: n.value,
|
|
486
486
|
answer: ""
|
|
487
|
-
}, g = await
|
|
488
|
-
console.log((u = (
|
|
489
|
-
} catch (
|
|
490
|
-
if (console.error(
|
|
491
|
-
const g =
|
|
487
|
+
}, g = await Ie("/fetchCompletion?api_version=1.1", p);
|
|
488
|
+
console.log((u = (b = g.data) == null ? void 0 : b.body) == null ? void 0 : u.answer), r.addConversation((f = g.data) == null ? void 0 : f.body, "new"), n.value = "", s.value = !1, console.log(r.past_messages);
|
|
489
|
+
} catch (p) {
|
|
490
|
+
if (console.error(p), s.value = !1, X.isAxiosError(p)) {
|
|
491
|
+
const g = p;
|
|
492
492
|
o.setError(((x = g.response) == null ? void 0 : x.data).message);
|
|
493
493
|
} else
|
|
494
494
|
o.setError("There was an issue, please contact helpmate");
|
|
495
495
|
}
|
|
496
|
-
}, c = async (
|
|
497
|
-
|
|
496
|
+
}, c = async (b) => {
|
|
497
|
+
b.which === 13 && (b.preventDefault(), s.value || await h());
|
|
498
498
|
};
|
|
499
|
-
return (
|
|
499
|
+
return (b, u) => (v(), m("div", kr, [
|
|
500
500
|
i("div", Er, [
|
|
501
501
|
A(Ar),
|
|
502
502
|
i("div", Rr, [
|
|
@@ -509,19 +509,19 @@ const yr = async () => await X({
|
|
|
509
509
|
class: "block rounded-md p-2.5 pr-16 w-full text-sm bg-white border border-gray-300",
|
|
510
510
|
placeholder: "Ask a question in less than 300 characters..."
|
|
511
511
|
}, null, 544), [
|
|
512
|
-
[
|
|
512
|
+
[et, n.value]
|
|
513
513
|
]),
|
|
514
|
-
s.value ? (
|
|
514
|
+
s.value ? (v(), m("div", Gr, Sr)) : (v(), m("button", {
|
|
515
515
|
key: 0,
|
|
516
|
-
onClick:
|
|
517
|
-
class:
|
|
516
|
+
onClick: h,
|
|
517
|
+
class: be(["absolute top-4 right-4", y(r).skill_id ? "cursor-pointer" : "cursor-not-allowed fill-gray-400"])
|
|
518
518
|
}, [
|
|
519
519
|
A(y(ho), { class: "w-8 h-8 fill-inherit" })
|
|
520
520
|
], 2))
|
|
521
521
|
])
|
|
522
522
|
]),
|
|
523
523
|
i("div", Ir, [
|
|
524
|
-
i("div", null,
|
|
524
|
+
i("div", null, P(y(r).questionsLeft) + " Questions Remaining", 1),
|
|
525
525
|
i("button", {
|
|
526
526
|
class: "underline text-blue-500",
|
|
527
527
|
onClick: u[3] || (u[3] = (f) => y(e).open(!0))
|
|
@@ -535,7 +535,7 @@ const yr = async () => await X({
|
|
|
535
535
|
const Or = { key: 0 }, Lr = {
|
|
536
536
|
key: 0,
|
|
537
537
|
class: "absolute right-0 pr-4 top-5 cursor-pointer"
|
|
538
|
-
}, Mr = { class: "bg-white mt-6" }, Hr = { class: "text-gray-500 px-4 overflow-auto" },
|
|
538
|
+
}, Mr = { class: "bg-white mt-6" }, Hr = { class: "text-gray-500 px-4 overflow-auto" }, Ve = {
|
|
539
539
|
__name: "Modal",
|
|
540
540
|
props: {
|
|
541
541
|
isVisible: {
|
|
@@ -550,8 +550,8 @@ const Or = { key: 0 }, Lr = {
|
|
|
550
550
|
}
|
|
551
551
|
},
|
|
552
552
|
setup(t) {
|
|
553
|
-
return (e, o) => t.isVisible ? (
|
|
554
|
-
A(
|
|
553
|
+
return (e, o) => t.isVisible ? (v(), m("main", Or, [
|
|
554
|
+
A(zt, { name: "modal-fade" }, {
|
|
555
555
|
default: T(() => [
|
|
556
556
|
i("div", {
|
|
557
557
|
class: "z-50 fixed flex inset-0 justify-center items-center h-screen overflow-auto w-full bg-gray-800/80",
|
|
@@ -562,15 +562,15 @@ const Or = { key: 0 }, Lr = {
|
|
|
562
562
|
onClick: o[1] || (o[1] = $t(() => {
|
|
563
563
|
}, ["stop"]))
|
|
564
564
|
}, [
|
|
565
|
-
t.crossVisible ? (
|
|
565
|
+
t.crossVisible ? (v(), m("div", Lr, [
|
|
566
566
|
A(y(Mt), {
|
|
567
567
|
onClick: o[0] || (o[0] = (r) => e.$emit("Cancel")),
|
|
568
568
|
class: "w-6 h-6 fill-gray-800"
|
|
569
569
|
})
|
|
570
|
-
])) :
|
|
570
|
+
])) : S("", !0),
|
|
571
571
|
i("div", Mr, [
|
|
572
572
|
i("div", Hr, [
|
|
573
|
-
|
|
573
|
+
tt(e.$slots, "default")
|
|
574
574
|
])
|
|
575
575
|
])
|
|
576
576
|
])
|
|
@@ -578,7 +578,7 @@ const Or = { key: 0 }, Lr = {
|
|
|
578
578
|
]),
|
|
579
579
|
_: 3
|
|
580
580
|
})
|
|
581
|
-
])) :
|
|
581
|
+
])) : S("", !0);
|
|
582
582
|
}
|
|
583
583
|
}, jr = { key: 0 }, Dr = {
|
|
584
584
|
key: 1,
|
|
@@ -601,31 +601,31 @@ const Or = { key: 0 }, Lr = {
|
|
|
601
601
|
}
|
|
602
602
|
},
|
|
603
603
|
setup(t) {
|
|
604
|
-
const e = t, o = k(!1), r = k(!1), n = k(!1), s =
|
|
604
|
+
const e = t, o = k(!1), r = k(!1), n = k(!1), s = Ae(), l = k(""), a = k([]), d = async (b) => {
|
|
605
605
|
var u, f;
|
|
606
|
-
|
|
606
|
+
b === "P" ? c() : h();
|
|
607
607
|
try {
|
|
608
608
|
const x = {
|
|
609
609
|
question_id: e.questionId,
|
|
610
|
-
rating:
|
|
610
|
+
rating: b,
|
|
611
611
|
tags: a.value,
|
|
612
612
|
content: l.value
|
|
613
|
-
},
|
|
614
|
-
console.log((u =
|
|
613
|
+
}, p = await Ie("/submitFeedback", x);
|
|
614
|
+
console.log((u = p.data) == null ? void 0 : u.body), n.value = !0;
|
|
615
615
|
} catch (x) {
|
|
616
616
|
if (console.error(x), X.isAxiosError(x)) {
|
|
617
|
-
const
|
|
618
|
-
s.setError(((f =
|
|
617
|
+
const p = x;
|
|
618
|
+
s.setError(((f = p.response) == null ? void 0 : f.data).error);
|
|
619
619
|
} else
|
|
620
620
|
s.setError("There was an issue, please contact helpmate");
|
|
621
621
|
}
|
|
622
|
-
},
|
|
622
|
+
}, h = () => {
|
|
623
623
|
o.value = !o.value;
|
|
624
624
|
}, c = () => {
|
|
625
625
|
r.value = !r.value;
|
|
626
626
|
};
|
|
627
|
-
return (
|
|
628
|
-
n.value ? (
|
|
627
|
+
return (b, u) => (v(), m(F, null, [
|
|
628
|
+
n.value ? (v(), m("div", jr)) : (v(), m("div", Dr, [
|
|
629
629
|
A(y(yo), {
|
|
630
630
|
onClick: u[0] || (u[0] = (f) => d("P")),
|
|
631
631
|
class: "w-6 h-6 fill-gray-500 hover:fill-gray-800 cursor-pointer"
|
|
@@ -635,7 +635,7 @@ const Or = { key: 0 }, Lr = {
|
|
|
635
635
|
class: "w-6 h-6 fill-gray-500 hover:fill-gray-800 cursor-pointer"
|
|
636
636
|
})
|
|
637
637
|
])),
|
|
638
|
-
A(
|
|
638
|
+
A(Ve, {
|
|
639
639
|
"is-visible": r.value,
|
|
640
640
|
"cross-visible": !0,
|
|
641
641
|
onCancel: c
|
|
@@ -651,7 +651,7 @@ const Or = { key: 0 }, Lr = {
|
|
|
651
651
|
"onUpdate:modelValue": u[2] || (u[2] = (f) => l.value = f),
|
|
652
652
|
placeholder: "Please provide your feedback here"
|
|
653
653
|
}, null, 512), [
|
|
654
|
-
[
|
|
654
|
+
[et, l.value]
|
|
655
655
|
]),
|
|
656
656
|
i("div", Fr, [
|
|
657
657
|
i("button", {
|
|
@@ -663,10 +663,10 @@ const Or = { key: 0 }, Lr = {
|
|
|
663
663
|
]),
|
|
664
664
|
_: 1
|
|
665
665
|
}, 8, ["is-visible"]),
|
|
666
|
-
A(
|
|
666
|
+
A(Ve, {
|
|
667
667
|
"is-visible": o.value,
|
|
668
668
|
"cross-visible": !0,
|
|
669
|
-
onCancel:
|
|
669
|
+
onCancel: h
|
|
670
670
|
}, {
|
|
671
671
|
default: T(() => [
|
|
672
672
|
i("div", qr, [
|
|
@@ -679,7 +679,7 @@ const Or = { key: 0 }, Lr = {
|
|
|
679
679
|
"onUpdate:modelValue": u[4] || (u[4] = (f) => l.value = f),
|
|
680
680
|
placeholder: "Please provide your feedback here"
|
|
681
681
|
}, null, 512), [
|
|
682
|
-
[
|
|
682
|
+
[et, l.value]
|
|
683
683
|
]),
|
|
684
684
|
fe(i("input", {
|
|
685
685
|
"onUpdate:modelValue": u[5] || (u[5] = (f) => a.value = f),
|
|
@@ -689,7 +689,7 @@ const Or = { key: 0 }, Lr = {
|
|
|
689
689
|
class: "mr-2 cursor-pointer",
|
|
690
690
|
id: "harmful"
|
|
691
691
|
}, null, 512), [
|
|
692
|
-
[
|
|
692
|
+
[Be, a.value]
|
|
693
693
|
]),
|
|
694
694
|
Zr,
|
|
695
695
|
Kr,
|
|
@@ -701,7 +701,7 @@ const Or = { key: 0 }, Lr = {
|
|
|
701
701
|
class: "mr-2 cursor-pointer",
|
|
702
702
|
id: "incorrect"
|
|
703
703
|
}, null, 512), [
|
|
704
|
-
[
|
|
704
|
+
[Be, a.value]
|
|
705
705
|
]),
|
|
706
706
|
Qr,
|
|
707
707
|
Xr,
|
|
@@ -713,7 +713,7 @@ const Or = { key: 0 }, Lr = {
|
|
|
713
713
|
class: "mr-2 cursor-pointer",
|
|
714
714
|
id: "not-helpful"
|
|
715
715
|
}, null, 512), [
|
|
716
|
-
[
|
|
716
|
+
[Be, a.value]
|
|
717
717
|
]),
|
|
718
718
|
Ur,
|
|
719
719
|
Br,
|
|
@@ -763,10 +763,10 @@ const Or = { key: 0 }, Lr = {
|
|
|
763
763
|
}
|
|
764
764
|
},
|
|
765
765
|
setup(t) {
|
|
766
|
-
const e = t, o = k([]), r = k(!1), n =
|
|
766
|
+
const e = t, o = k([]), r = k(!1), n = Ae(), s = le();
|
|
767
767
|
console.log("this is issue", o.value.length);
|
|
768
768
|
const l = async () => {
|
|
769
|
-
var a, d,
|
|
769
|
+
var a, d, h;
|
|
770
770
|
try {
|
|
771
771
|
if (!e.showFeedback)
|
|
772
772
|
return;
|
|
@@ -774,50 +774,50 @@ const Or = { key: 0 }, Lr = {
|
|
|
774
774
|
question: e.question,
|
|
775
775
|
skill_id: s.skill_id,
|
|
776
776
|
past_messages: s.past_messages
|
|
777
|
-
}, u = ((a = (await
|
|
777
|
+
}, u = ((a = (await Ie("/QuestionToRelevantLinks", c)).data) == null ? void 0 : a.body) || [];
|
|
778
778
|
u.length && (r.value = !0, o.value = u);
|
|
779
779
|
} catch (c) {
|
|
780
780
|
if (console.error(c), X.isAxiosError(c)) {
|
|
781
|
-
const
|
|
782
|
-
console.error((d =
|
|
781
|
+
const b = c;
|
|
782
|
+
console.error((d = b.response) == null ? void 0 : d.data), n.setError(((h = b.response) == null ? void 0 : h.data).message);
|
|
783
783
|
} else
|
|
784
784
|
n.setError("There was an issue, please contact helpmate");
|
|
785
785
|
}
|
|
786
786
|
};
|
|
787
787
|
return eo(() => {
|
|
788
788
|
l();
|
|
789
|
-
}), (a, d) => (
|
|
789
|
+
}), (a, d) => (v(), m("div", _r, [
|
|
790
790
|
i("div", $r, [
|
|
791
791
|
i("span", { innerHTML: t.answer }, null, 8, en),
|
|
792
|
-
t.showSources ? (
|
|
793
|
-
t.showFeedback ? (
|
|
794
|
-
r.value ? (
|
|
792
|
+
t.showSources ? (v(), m("div", tn, P(t.showSources), 1)) : S("", !0),
|
|
793
|
+
t.showFeedback ? (v(), m("div", on, [
|
|
794
|
+
r.value ? (v(), m("div", rn, "Recommended Learning:")) : S("", !0),
|
|
795
795
|
i("div", nn, [
|
|
796
|
-
(
|
|
797
|
-
href:
|
|
796
|
+
(v(!0), m(F, null, V(o.value, (h) => (v(), m("a", {
|
|
797
|
+
href: h.card_deeplink_url,
|
|
798
798
|
target: "_blank",
|
|
799
|
-
key:
|
|
799
|
+
key: h.id,
|
|
800
800
|
class: "bg-blue-100 text-genpact-blue-box rounded-xl px-2 py-1 cursor-pointer flex gap-2 items-center"
|
|
801
801
|
}, [
|
|
802
802
|
A(y(go), { class: "w-4 h-4 fil-current" }),
|
|
803
|
-
i("div", null,
|
|
803
|
+
i("div", null, P(h.Content_Title), 1)
|
|
804
804
|
], 8, sn))), 128))
|
|
805
805
|
])
|
|
806
|
-
])) :
|
|
807
|
-
t.showFeedback ? (
|
|
806
|
+
])) : S("", !0),
|
|
807
|
+
t.showFeedback ? (v(), m("div", an, [
|
|
808
808
|
A(Jr, { "question-id": t.questionId }, null, 8, ["question-id"])
|
|
809
|
-
])) :
|
|
809
|
+
])) : S("", !0)
|
|
810
810
|
])
|
|
811
811
|
]));
|
|
812
812
|
}
|
|
813
813
|
});
|
|
814
|
-
const cn = /* @__PURE__ */
|
|
814
|
+
const cn = /* @__PURE__ */ st(ln, [["__scopeId", "data-v-cef8a384"]]), dn = { class: "flex justify-start items-end" }, un = { class: "max-w-[80%] space-y-2" }, pn = { class: "w-fit text-gray-800 md:text-xl text-lg font-bold bg-white rounded-md p-3" }, fn = /* @__PURE__ */ i("div", { class: "w-fit md:text-[15px] text-sm text-gray-700 bg-white rounded-md p-3" }, " I'm AI Guru, your learning companion. I can answer questions based on the knowledge curated by Genome Master Gurus, recommend content and direct you the next best action on your skill journey. I am still learning, and your feedback will help me improve. Choose a skill to get started. ", -1), vn = {
|
|
815
815
|
__name: "Greetings",
|
|
816
816
|
setup(t) {
|
|
817
817
|
const e = le();
|
|
818
|
-
return (o, r) => (
|
|
818
|
+
return (o, r) => (v(), m("div", dn, [
|
|
819
819
|
i("div", un, [
|
|
820
|
-
i("div", pn, " Hello " +
|
|
820
|
+
i("div", pn, " Hello " + P(y(e).learnerName || "Learner") + "! 👋 ", 1),
|
|
821
821
|
fn
|
|
822
822
|
])
|
|
823
823
|
]));
|
|
@@ -835,39 +835,39 @@ const cn = /* @__PURE__ */ nt(ln, [["__scopeId", "data-v-cef8a384"]]), dn = { cl
|
|
|
835
835
|
}
|
|
836
836
|
},
|
|
837
837
|
setup(t) {
|
|
838
|
-
return (e, o) => (
|
|
838
|
+
return (e, o) => (v(), m("div", hn, [
|
|
839
839
|
i("div", mn, [
|
|
840
|
-
i("div", bn,
|
|
840
|
+
i("div", bn, P(t.question), 1)
|
|
841
841
|
])
|
|
842
842
|
]));
|
|
843
843
|
}
|
|
844
844
|
});
|
|
845
|
-
function
|
|
845
|
+
function ot(t, e, o) {
|
|
846
846
|
var r, n, s, l, a;
|
|
847
847
|
e == null && (e = 100);
|
|
848
848
|
function d() {
|
|
849
849
|
var c = Date.now() - l;
|
|
850
850
|
c < e && c >= 0 ? r = setTimeout(d, e - c) : (r = null, o || (a = t.apply(s, n), s = n = null));
|
|
851
851
|
}
|
|
852
|
-
var
|
|
852
|
+
var h = function() {
|
|
853
853
|
s = this, n = arguments, l = Date.now();
|
|
854
854
|
var c = o && !r;
|
|
855
855
|
return r || (r = setTimeout(d, e)), c && (a = t.apply(s, n), s = n = null), a;
|
|
856
856
|
};
|
|
857
|
-
return
|
|
857
|
+
return h.clear = function() {
|
|
858
858
|
r && (clearTimeout(r), r = null);
|
|
859
|
-
},
|
|
859
|
+
}, h.flush = function() {
|
|
860
860
|
r && (a = t.apply(s, n), s = n = null, clearTimeout(r), r = null);
|
|
861
|
-
},
|
|
861
|
+
}, h;
|
|
862
862
|
}
|
|
863
|
-
|
|
864
|
-
var
|
|
863
|
+
ot.debounce = ot;
|
|
864
|
+
var _e = ot;
|
|
865
865
|
function gn(t, e, o) {
|
|
866
|
-
lo(t) ?
|
|
866
|
+
lo(t) ? ye(t, (r, n) => {
|
|
867
867
|
n == null || n.removeEventListener(e, o), r == null || r.addEventListener(e, o);
|
|
868
|
-
}) :
|
|
868
|
+
}) : Se(() => {
|
|
869
869
|
t.addEventListener(e, o);
|
|
870
|
-
}),
|
|
870
|
+
}), nt(() => {
|
|
871
871
|
var r;
|
|
872
872
|
(r = y(t)) === null || r === void 0 || r.removeEventListener(e, o);
|
|
873
873
|
});
|
|
@@ -882,12 +882,12 @@ function xn(t, e) {
|
|
|
882
882
|
function wn(t, e, o) {
|
|
883
883
|
let r = null;
|
|
884
884
|
const n = k(!1);
|
|
885
|
-
|
|
885
|
+
Se(() => {
|
|
886
886
|
(t.content !== void 0 || o.value) && (n.value = !0), r = new MutationObserver(s), r.observe(e.value, {
|
|
887
887
|
childList: !0,
|
|
888
888
|
subtree: !0
|
|
889
889
|
});
|
|
890
|
-
}),
|
|
890
|
+
}), nt(() => r.disconnect()), ye(o, (l) => {
|
|
891
891
|
l ? n.value = !0 : n.value = !1;
|
|
892
892
|
});
|
|
893
893
|
const s = () => {
|
|
@@ -897,7 +897,7 @@ function wn(t, e, o) {
|
|
|
897
897
|
hasContent: n
|
|
898
898
|
};
|
|
899
899
|
}
|
|
900
|
-
function
|
|
900
|
+
function ge(t, e) {
|
|
901
901
|
var o = t.getBoundingClientRect(), r = 1, n = 1;
|
|
902
902
|
return {
|
|
903
903
|
width: o.width / r,
|
|
@@ -919,14 +919,14 @@ function W(t) {
|
|
|
919
919
|
}
|
|
920
920
|
return t;
|
|
921
921
|
}
|
|
922
|
-
function
|
|
922
|
+
function it(t) {
|
|
923
923
|
var e = W(t), o = e.pageXOffset, r = e.pageYOffset;
|
|
924
924
|
return {
|
|
925
925
|
scrollLeft: o,
|
|
926
926
|
scrollTop: r
|
|
927
927
|
};
|
|
928
928
|
}
|
|
929
|
-
function
|
|
929
|
+
function Ye(t) {
|
|
930
930
|
var e = W(t).Element;
|
|
931
931
|
return t instanceof e || t instanceof Element;
|
|
932
932
|
}
|
|
@@ -947,24 +947,24 @@ function An(t) {
|
|
|
947
947
|
};
|
|
948
948
|
}
|
|
949
949
|
function kn(t) {
|
|
950
|
-
return t === W(t) || !Z(t) ?
|
|
950
|
+
return t === W(t) || !Z(t) ? it(t) : An(t);
|
|
951
951
|
}
|
|
952
952
|
function ee(t) {
|
|
953
953
|
return t ? (t.nodeName || "").toLowerCase() : null;
|
|
954
954
|
}
|
|
955
955
|
function ue(t) {
|
|
956
|
-
return ((
|
|
956
|
+
return ((Ye(t) ? t.ownerDocument : (
|
|
957
957
|
// $FlowFixMe[prop-missing]
|
|
958
958
|
t.document
|
|
959
959
|
)) || window.document).documentElement;
|
|
960
960
|
}
|
|
961
|
-
function
|
|
962
|
-
return
|
|
961
|
+
function lt(t) {
|
|
962
|
+
return ge(ue(t)).left + it(t).scrollLeft;
|
|
963
963
|
}
|
|
964
964
|
function ie(t) {
|
|
965
965
|
return W(t).getComputedStyle(t);
|
|
966
966
|
}
|
|
967
|
-
function
|
|
967
|
+
function ct(t) {
|
|
968
968
|
var e = ie(t), o = e.overflow, r = e.overflowX, n = e.overflowY;
|
|
969
969
|
return /auto|scroll|overlay|hidden/.test(o + n + r);
|
|
970
970
|
}
|
|
@@ -976,7 +976,7 @@ function Rn(t, e, o) {
|
|
|
976
976
|
o === void 0 && (o = !1);
|
|
977
977
|
var r = Z(e);
|
|
978
978
|
Z(e) && En(e);
|
|
979
|
-
var n = ue(e), s =
|
|
979
|
+
var n = ue(e), s = ge(t), l = {
|
|
980
980
|
scrollLeft: 0,
|
|
981
981
|
scrollTop: 0
|
|
982
982
|
}, a = {
|
|
@@ -984,15 +984,15 @@ function Rn(t, e, o) {
|
|
|
984
984
|
y: 0
|
|
985
985
|
};
|
|
986
986
|
return (r || !r && !o) && ((ee(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
987
|
-
|
|
987
|
+
ct(n)) && (l = kn(e)), Z(e) ? (a = ge(e), a.x += e.clientLeft, a.y += e.clientTop) : n && (a.x = lt(n))), {
|
|
988
988
|
x: s.left + l.scrollLeft - a.x,
|
|
989
989
|
y: s.top + l.scrollTop - a.y,
|
|
990
990
|
width: s.width,
|
|
991
991
|
height: s.height
|
|
992
992
|
};
|
|
993
993
|
}
|
|
994
|
-
function
|
|
995
|
-
var e =
|
|
994
|
+
function dt(t) {
|
|
995
|
+
var e = ge(t), o = t.offsetWidth, r = t.offsetHeight;
|
|
996
996
|
return Math.abs(e.width - o) <= 1 && (o = e.width), Math.abs(e.height - r) <= 1 && (r = e.height), {
|
|
997
997
|
x: t.offsetLeft,
|
|
998
998
|
y: t.offsetTop,
|
|
@@ -1000,7 +1000,7 @@ function ct(t) {
|
|
|
1000
1000
|
height: r
|
|
1001
1001
|
};
|
|
1002
1002
|
}
|
|
1003
|
-
function
|
|
1003
|
+
function Qe(t) {
|
|
1004
1004
|
return ee(t) === "html" ? t : (
|
|
1005
1005
|
// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
1006
1006
|
// $FlowFixMe[incompatible-return]
|
|
@@ -1013,21 +1013,21 @@ function Ke(t) {
|
|
|
1013
1013
|
);
|
|
1014
1014
|
}
|
|
1015
1015
|
function Tt(t) {
|
|
1016
|
-
return ["html", "body", "#document"].indexOf(ee(t)) >= 0 ? t.ownerDocument.body : Z(t) &&
|
|
1016
|
+
return ["html", "body", "#document"].indexOf(ee(t)) >= 0 ? t.ownerDocument.body : Z(t) && ct(t) ? t : Tt(Qe(t));
|
|
1017
1017
|
}
|
|
1018
|
-
function
|
|
1018
|
+
function Re(t, e) {
|
|
1019
1019
|
var o;
|
|
1020
1020
|
e === void 0 && (e = []);
|
|
1021
|
-
var r = Tt(t), n = r === ((o = t.ownerDocument) == null ? void 0 : o.body), s = W(r), l = n ? [s].concat(s.visualViewport || [],
|
|
1021
|
+
var r = Tt(t), n = r === ((o = t.ownerDocument) == null ? void 0 : o.body), s = W(r), l = n ? [s].concat(s.visualViewport || [], ct(r) ? r : []) : r, a = e.concat(l);
|
|
1022
1022
|
return n ? a : (
|
|
1023
1023
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
1024
|
-
a.concat(
|
|
1024
|
+
a.concat(Re(Qe(l)))
|
|
1025
1025
|
);
|
|
1026
1026
|
}
|
|
1027
1027
|
function Yn(t) {
|
|
1028
1028
|
return ["table", "td", "th"].indexOf(ee(t)) >= 0;
|
|
1029
1029
|
}
|
|
1030
|
-
function
|
|
1030
|
+
function Et(t) {
|
|
1031
1031
|
return !Z(t) || // https://github.com/popperjs/popper-core/issues/837
|
|
1032
1032
|
ie(t).position === "fixed" ? null : t.offsetParent;
|
|
1033
1033
|
}
|
|
@@ -1038,7 +1038,7 @@ function Gn(t) {
|
|
|
1038
1038
|
if (r.position === "fixed")
|
|
1039
1039
|
return null;
|
|
1040
1040
|
}
|
|
1041
|
-
for (var n =
|
|
1041
|
+
for (var n = Qe(t); Z(n) && ["html", "body"].indexOf(ee(n)) < 0; ) {
|
|
1042
1042
|
var s = ie(n);
|
|
1043
1043
|
if (s.transform !== "none" || s.perspective !== "none" || s.contain === "paint" || ["transform", "perspective"].indexOf(s.willChange) !== -1 || e && s.willChange === "filter" || e && s.filter && s.filter !== "none")
|
|
1044
1044
|
return n;
|
|
@@ -1046,15 +1046,15 @@ function Gn(t) {
|
|
|
1046
1046
|
}
|
|
1047
1047
|
return null;
|
|
1048
1048
|
}
|
|
1049
|
-
function
|
|
1050
|
-
for (var e = W(t), o =
|
|
1051
|
-
o =
|
|
1049
|
+
function Pe(t) {
|
|
1050
|
+
for (var e = W(t), o = Et(t); o && Yn(o) && ie(o).position === "static"; )
|
|
1051
|
+
o = Et(o);
|
|
1052
1052
|
return o && (ee(o) === "html" || ee(o) === "body" && ie(o).position === "static") ? e : o || Gn(t) || e;
|
|
1053
1053
|
}
|
|
1054
|
-
var K = "top", U = "bottom", B = "right", Q = "left",
|
|
1055
|
-
return t.concat([e + "-" +
|
|
1056
|
-
}, []), qt = /* @__PURE__ */ [].concat(
|
|
1057
|
-
return t.concat([e, e + "-" +
|
|
1054
|
+
var K = "top", U = "bottom", B = "right", Q = "left", ut = "auto", ze = [K, U, B, Q], xe = "start", Ge = "end", Cn = "clippingParents", Ft = "viewport", Ee = "popper", Sn = "reference", Rt = /* @__PURE__ */ ze.reduce(function(t, e) {
|
|
1055
|
+
return t.concat([e + "-" + xe, e + "-" + Ge]);
|
|
1056
|
+
}, []), qt = /* @__PURE__ */ [].concat(ze, [ut]).reduce(function(t, e) {
|
|
1057
|
+
return t.concat([e, e + "-" + xe, e + "-" + Ge]);
|
|
1058
1058
|
}, []), In = "beforeRead", Pn = "read", zn = "afterRead", On = "beforeMain", Ln = "main", Mn = "afterMain", Hn = "beforeWrite", jn = "write", Dn = "afterWrite", Nn = [In, Pn, zn, On, Ln, Mn, Hn, jn, Dn];
|
|
1059
1059
|
function Tn(t) {
|
|
1060
1060
|
var e = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Set(), r = [];
|
|
@@ -1113,13 +1113,13 @@ function Zn(t) {
|
|
|
1113
1113
|
return r && (n = r.width, s = r.height, /^((?!chrome|android).)*safari/i.test(navigator.userAgent) || (l = r.offsetLeft, a = r.offsetTop)), {
|
|
1114
1114
|
width: n,
|
|
1115
1115
|
height: s,
|
|
1116
|
-
x: l +
|
|
1116
|
+
x: l + lt(t),
|
|
1117
1117
|
y: a
|
|
1118
1118
|
};
|
|
1119
1119
|
}
|
|
1120
|
-
var de = Math.max,
|
|
1120
|
+
var de = Math.max, Ce = Math.min, je = Math.round;
|
|
1121
1121
|
function Kn(t) {
|
|
1122
|
-
var e, o = ue(t), r =
|
|
1122
|
+
var e, o = ue(t), r = it(t), n = (e = t.ownerDocument) == null ? void 0 : e.body, s = de(o.scrollWidth, o.clientWidth, n ? n.scrollWidth : 0, n ? n.clientWidth : 0), l = de(o.scrollHeight, o.clientHeight, n ? n.scrollHeight : 0, n ? n.clientHeight : 0), a = -r.scrollLeft + lt(t), d = -r.scrollTop;
|
|
1123
1123
|
return ie(n || o).direction === "rtl" && (a += de(o.clientWidth, n ? n.clientWidth : 0) - s), {
|
|
1124
1124
|
width: s,
|
|
1125
1125
|
height: l,
|
|
@@ -1141,7 +1141,7 @@ function Vt(t, e) {
|
|
|
1141
1141
|
}
|
|
1142
1142
|
return !1;
|
|
1143
1143
|
}
|
|
1144
|
-
function
|
|
1144
|
+
function rt(t) {
|
|
1145
1145
|
return Object.assign({}, t, {
|
|
1146
1146
|
left: t.x,
|
|
1147
1147
|
top: t.y,
|
|
@@ -1150,33 +1150,33 @@ function ot(t) {
|
|
|
1150
1150
|
});
|
|
1151
1151
|
}
|
|
1152
1152
|
function Qn(t) {
|
|
1153
|
-
var e =
|
|
1153
|
+
var e = ge(t);
|
|
1154
1154
|
return e.top = e.top + t.clientTop, e.left = e.left + t.clientLeft, e.bottom = e.top + t.clientHeight, e.right = e.left + t.clientWidth, e.width = t.clientWidth, e.height = t.clientHeight, e.x = e.left, e.y = e.top, e;
|
|
1155
1155
|
}
|
|
1156
|
-
function
|
|
1157
|
-
return e === Ft ?
|
|
1156
|
+
function Yt(t, e) {
|
|
1157
|
+
return e === Ft ? rt(Zn(t)) : Z(e) ? Qn(e) : rt(Kn(ue(t)));
|
|
1158
1158
|
}
|
|
1159
1159
|
function Xn(t) {
|
|
1160
|
-
var e =
|
|
1161
|
-
return
|
|
1162
|
-
return
|
|
1160
|
+
var e = Re(Qe(t)), o = ["absolute", "fixed"].indexOf(ie(t).position) >= 0, r = o && Z(t) ? Pe(t) : t;
|
|
1161
|
+
return Ye(r) ? e.filter(function(n) {
|
|
1162
|
+
return Ye(n) && Vt(n, r) && ee(n) !== "body";
|
|
1163
1163
|
}) : [];
|
|
1164
1164
|
}
|
|
1165
1165
|
function Un(t, e, o) {
|
|
1166
1166
|
var r = e === "clippingParents" ? Xn(t) : [].concat(e), n = [].concat(r, [o]), s = n[0], l = n.reduce(function(a, d) {
|
|
1167
|
-
var
|
|
1168
|
-
return a.top = de(
|
|
1169
|
-
},
|
|
1167
|
+
var h = Yt(t, d);
|
|
1168
|
+
return a.top = de(h.top, a.top), a.right = Ce(h.right, a.right), a.bottom = Ce(h.bottom, a.bottom), a.left = de(h.left, a.left), a;
|
|
1169
|
+
}, Yt(t, s));
|
|
1170
1170
|
return l.width = l.right - l.left, l.height = l.bottom - l.top, l.x = l.left, l.y = l.top, l;
|
|
1171
1171
|
}
|
|
1172
|
-
function
|
|
1172
|
+
function we(t) {
|
|
1173
1173
|
return t.split("-")[1];
|
|
1174
1174
|
}
|
|
1175
|
-
function
|
|
1175
|
+
function pt(t) {
|
|
1176
1176
|
return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
|
|
1177
1177
|
}
|
|
1178
1178
|
function Zt(t) {
|
|
1179
|
-
var e = t.reference, o = t.element, r = t.placement, n = r ? $(r) : null, s = r ?
|
|
1179
|
+
var e = t.reference, o = t.element, r = t.placement, n = r ? $(r) : null, s = r ? we(r) : null, l = e.x + e.width / 2 - o.width / 2, a = e.y + e.height / 2 - o.height / 2, d;
|
|
1180
1180
|
switch (n) {
|
|
1181
1181
|
case K:
|
|
1182
1182
|
d = {
|
|
@@ -1208,15 +1208,15 @@ function Zt(t) {
|
|
|
1208
1208
|
y: e.y
|
|
1209
1209
|
};
|
|
1210
1210
|
}
|
|
1211
|
-
var
|
|
1212
|
-
if (
|
|
1213
|
-
var c =
|
|
1211
|
+
var h = n ? pt(n) : null;
|
|
1212
|
+
if (h != null) {
|
|
1213
|
+
var c = h === "y" ? "height" : "width";
|
|
1214
1214
|
switch (s) {
|
|
1215
|
-
case
|
|
1216
|
-
d[
|
|
1215
|
+
case xe:
|
|
1216
|
+
d[h] = d[h] - (e[c] / 2 - o[c] / 2);
|
|
1217
1217
|
break;
|
|
1218
|
-
case
|
|
1219
|
-
d[
|
|
1218
|
+
case Ge:
|
|
1219
|
+
d[h] = d[h] + (e[c] / 2 - o[c] / 2);
|
|
1220
1220
|
break;
|
|
1221
1221
|
}
|
|
1222
1222
|
}
|
|
@@ -1238,34 +1238,34 @@ function Xt(t, e) {
|
|
|
1238
1238
|
return o[r] = t, o;
|
|
1239
1239
|
}, {});
|
|
1240
1240
|
}
|
|
1241
|
-
function
|
|
1241
|
+
function ft(t, e) {
|
|
1242
1242
|
e === void 0 && (e = {});
|
|
1243
|
-
var o = e, r = o.placement, n = r === void 0 ? t.placement : r, s = o.boundary, l = s === void 0 ? Cn : s, a = o.rootBoundary, d = a === void 0 ? Ft : a,
|
|
1243
|
+
var o = e, r = o.placement, n = r === void 0 ? t.placement : r, s = o.boundary, l = s === void 0 ? Cn : s, a = o.rootBoundary, d = a === void 0 ? Ft : a, h = o.elementContext, c = h === void 0 ? Ee : h, b = o.altBoundary, u = b === void 0 ? !1 : b, f = o.padding, x = f === void 0 ? 0 : f, p = Qt(typeof x != "number" ? x : Xt(x, ze)), g = c === Ee ? Sn : Ee, R = t.rects.popper, Y = t.elements[u ? g : c], E = Un(Ye(Y) ? Y : Y.contextElement || ue(t.elements.popper), l, d), w = ge(t.elements.reference), I = Zt({
|
|
1244
1244
|
reference: w,
|
|
1245
1245
|
element: R,
|
|
1246
1246
|
strategy: "absolute",
|
|
1247
1247
|
placement: n
|
|
1248
|
-
}), G =
|
|
1249
|
-
top: E.top - C.top +
|
|
1250
|
-
bottom: C.bottom - E.bottom +
|
|
1251
|
-
left: E.left - C.left +
|
|
1252
|
-
right: C.right - E.right +
|
|
1253
|
-
},
|
|
1254
|
-
if (c ===
|
|
1255
|
-
var D =
|
|
1256
|
-
Object.keys(
|
|
1248
|
+
}), G = rt(Object.assign({}, R, I)), C = c === Ee ? G : w, O = {
|
|
1249
|
+
top: E.top - C.top + p.top,
|
|
1250
|
+
bottom: C.bottom - E.bottom + p.bottom,
|
|
1251
|
+
left: E.left - C.left + p.left,
|
|
1252
|
+
right: C.right - E.right + p.right
|
|
1253
|
+
}, z = t.modifiersData.offset;
|
|
1254
|
+
if (c === Ee && z) {
|
|
1255
|
+
var D = z[n];
|
|
1256
|
+
Object.keys(O).forEach(function(N) {
|
|
1257
1257
|
var oe = [B, U].indexOf(N) >= 0 ? 1 : -1, L = [K, U].indexOf(N) >= 0 ? "y" : "x";
|
|
1258
|
-
|
|
1258
|
+
O[N] += D[L] * oe;
|
|
1259
1259
|
});
|
|
1260
1260
|
}
|
|
1261
|
-
return
|
|
1261
|
+
return O;
|
|
1262
1262
|
}
|
|
1263
|
-
var
|
|
1263
|
+
var Gt = {
|
|
1264
1264
|
placement: "bottom",
|
|
1265
1265
|
modifiers: [],
|
|
1266
1266
|
strategy: "absolute"
|
|
1267
1267
|
};
|
|
1268
|
-
function
|
|
1268
|
+
function Ct() {
|
|
1269
1269
|
for (var t = arguments.length, e = new Array(t), o = 0; o < t; o++)
|
|
1270
1270
|
e[o] = arguments[o];
|
|
1271
1271
|
return !e.some(function(r) {
|
|
@@ -1274,13 +1274,13 @@ function Gt() {
|
|
|
1274
1274
|
}
|
|
1275
1275
|
function Bn(t) {
|
|
1276
1276
|
t === void 0 && (t = {});
|
|
1277
|
-
var e = t, o = e.defaultModifiers, r = o === void 0 ? [] : o, n = e.defaultOptions, s = n === void 0 ?
|
|
1278
|
-
return function(a, d,
|
|
1279
|
-
|
|
1277
|
+
var e = t, o = e.defaultModifiers, r = o === void 0 ? [] : o, n = e.defaultOptions, s = n === void 0 ? Gt : n;
|
|
1278
|
+
return function(a, d, h) {
|
|
1279
|
+
h === void 0 && (h = s);
|
|
1280
1280
|
var c = {
|
|
1281
1281
|
placement: "bottom",
|
|
1282
1282
|
orderedModifiers: [],
|
|
1283
|
-
options: Object.assign({},
|
|
1283
|
+
options: Object.assign({}, Gt, s),
|
|
1284
1284
|
modifiersData: {},
|
|
1285
1285
|
elements: {
|
|
1286
1286
|
reference: a,
|
|
@@ -1288,13 +1288,13 @@ function Bn(t) {
|
|
|
1288
1288
|
},
|
|
1289
1289
|
attributes: {},
|
|
1290
1290
|
styles: {}
|
|
1291
|
-
},
|
|
1291
|
+
}, b = [], u = !1, f = {
|
|
1292
1292
|
state: c,
|
|
1293
1293
|
setOptions: function(R) {
|
|
1294
1294
|
var Y = typeof R == "function" ? R(c.options) : R;
|
|
1295
|
-
|
|
1296
|
-
reference:
|
|
1297
|
-
popper:
|
|
1295
|
+
p(), c.options = Object.assign({}, s, c.options, Y), c.scrollParents = {
|
|
1296
|
+
reference: Ye(a) ? Re(a) : a.contextElement ? Re(a.contextElement) : [],
|
|
1297
|
+
popper: Re(d)
|
|
1298
1298
|
};
|
|
1299
1299
|
var E = Fn(Vn([].concat(r, c.options.modifiers)));
|
|
1300
1300
|
return c.orderedModifiers = E.filter(function(w) {
|
|
@@ -1309,10 +1309,10 @@ function Bn(t) {
|
|
|
1309
1309
|
forceUpdate: function() {
|
|
1310
1310
|
if (!u) {
|
|
1311
1311
|
var R = c.elements, Y = R.reference, E = R.popper;
|
|
1312
|
-
if (
|
|
1312
|
+
if (Ct(Y, E)) {
|
|
1313
1313
|
c.rects = {
|
|
1314
|
-
reference: Rn(Y,
|
|
1315
|
-
popper:
|
|
1314
|
+
reference: Rn(Y, Pe(E), c.options.strategy === "fixed"),
|
|
1315
|
+
popper: dt(E)
|
|
1316
1316
|
}, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(D) {
|
|
1317
1317
|
return c.modifiersData[D.name] = Object.assign({}, D.data);
|
|
1318
1318
|
});
|
|
@@ -1321,11 +1321,11 @@ function Bn(t) {
|
|
|
1321
1321
|
c.reset = !1, w = -1;
|
|
1322
1322
|
continue;
|
|
1323
1323
|
}
|
|
1324
|
-
var
|
|
1324
|
+
var I = c.orderedModifiers[w], G = I.fn, C = I.options, O = C === void 0 ? {} : C, z = I.name;
|
|
1325
1325
|
typeof G == "function" && (c = G({
|
|
1326
1326
|
state: c,
|
|
1327
|
-
options:
|
|
1328
|
-
name:
|
|
1327
|
+
options: O,
|
|
1328
|
+
name: z,
|
|
1329
1329
|
instance: f
|
|
1330
1330
|
}) || c);
|
|
1331
1331
|
}
|
|
@@ -1340,48 +1340,48 @@ function Bn(t) {
|
|
|
1340
1340
|
});
|
|
1341
1341
|
}),
|
|
1342
1342
|
destroy: function() {
|
|
1343
|
-
|
|
1343
|
+
p(), u = !0;
|
|
1344
1344
|
}
|
|
1345
1345
|
};
|
|
1346
|
-
if (!
|
|
1346
|
+
if (!Ct(a, d))
|
|
1347
1347
|
return f;
|
|
1348
|
-
f.setOptions(
|
|
1349
|
-
!u &&
|
|
1348
|
+
f.setOptions(h).then(function(g) {
|
|
1349
|
+
!u && h.onFirstUpdate && h.onFirstUpdate(g);
|
|
1350
1350
|
});
|
|
1351
1351
|
function x() {
|
|
1352
1352
|
c.orderedModifiers.forEach(function(g) {
|
|
1353
1353
|
var R = g.name, Y = g.options, E = Y === void 0 ? {} : Y, w = g.effect;
|
|
1354
1354
|
if (typeof w == "function") {
|
|
1355
|
-
var
|
|
1355
|
+
var I = w({
|
|
1356
1356
|
state: c,
|
|
1357
1357
|
name: R,
|
|
1358
1358
|
instance: f,
|
|
1359
1359
|
options: E
|
|
1360
1360
|
}), G = function() {
|
|
1361
1361
|
};
|
|
1362
|
-
|
|
1362
|
+
b.push(I || G);
|
|
1363
1363
|
}
|
|
1364
1364
|
});
|
|
1365
1365
|
}
|
|
1366
|
-
function
|
|
1367
|
-
|
|
1366
|
+
function p() {
|
|
1367
|
+
b.forEach(function(g) {
|
|
1368
1368
|
return g();
|
|
1369
|
-
}),
|
|
1369
|
+
}), b = [];
|
|
1370
1370
|
}
|
|
1371
1371
|
return f;
|
|
1372
1372
|
};
|
|
1373
1373
|
}
|
|
1374
|
-
var
|
|
1374
|
+
var De = {
|
|
1375
1375
|
passive: !0
|
|
1376
1376
|
};
|
|
1377
1377
|
function Wn(t) {
|
|
1378
|
-
var e = t.state, o = t.instance, r = t.options, n = r.scroll, s = n === void 0 ? !0 : n, l = r.resize, a = l === void 0 ? !0 : l, d = W(e.elements.popper),
|
|
1379
|
-
return s &&
|
|
1380
|
-
c.addEventListener("scroll", o.update,
|
|
1381
|
-
}), a && d.addEventListener("resize", o.update,
|
|
1382
|
-
s &&
|
|
1383
|
-
c.removeEventListener("scroll", o.update,
|
|
1384
|
-
}), a && d.removeEventListener("resize", o.update,
|
|
1378
|
+
var e = t.state, o = t.instance, r = t.options, n = r.scroll, s = n === void 0 ? !0 : n, l = r.resize, a = l === void 0 ? !0 : l, d = W(e.elements.popper), h = [].concat(e.scrollParents.reference, e.scrollParents.popper);
|
|
1379
|
+
return s && h.forEach(function(c) {
|
|
1380
|
+
c.addEventListener("scroll", o.update, De);
|
|
1381
|
+
}), a && d.addEventListener("resize", o.update, De), function() {
|
|
1382
|
+
s && h.forEach(function(c) {
|
|
1383
|
+
c.removeEventListener("scroll", o.update, De);
|
|
1384
|
+
}), a && d.removeEventListener("resize", o.update, De);
|
|
1385
1385
|
};
|
|
1386
1386
|
}
|
|
1387
1387
|
var Jn = {
|
|
@@ -1417,39 +1417,39 @@ var $n = {
|
|
|
1417
1417
|
function ts(t) {
|
|
1418
1418
|
var e = t.x, o = t.y, r = window, n = r.devicePixelRatio || 1;
|
|
1419
1419
|
return {
|
|
1420
|
-
x:
|
|
1421
|
-
y:
|
|
1420
|
+
x: je(je(e * n) / n) || 0,
|
|
1421
|
+
y: je(je(o * n) / n) || 0
|
|
1422
1422
|
};
|
|
1423
1423
|
}
|
|
1424
|
-
function
|
|
1425
|
-
var e, o = t.popper, r = t.popperRect, n = t.placement, s = t.variation, l = t.offsets, a = t.position, d = t.gpuAcceleration,
|
|
1426
|
-
if (
|
|
1427
|
-
var
|
|
1428
|
-
|
|
1424
|
+
function St(t) {
|
|
1425
|
+
var e, o = t.popper, r = t.popperRect, n = t.placement, s = t.variation, l = t.offsets, a = t.position, d = t.gpuAcceleration, h = t.adaptive, c = t.roundOffsets, b = c === !0 ? ts(l) : typeof c == "function" ? c(l) : l, u = b.x, f = u === void 0 ? 0 : u, x = b.y, p = x === void 0 ? 0 : x, g = l.hasOwnProperty("x"), R = l.hasOwnProperty("y"), Y = Q, E = K, w = window;
|
|
1426
|
+
if (h) {
|
|
1427
|
+
var I = Pe(o), G = "clientHeight", C = "clientWidth";
|
|
1428
|
+
I === W(o) && (I = ue(o), ie(I).position !== "static" && a === "absolute" && (G = "scrollHeight", C = "scrollWidth")), I = I, (n === K || (n === Q || n === B) && s === Ge) && (E = U, p -= I[G] - r.height, p *= d ? 1 : -1), (n === Q || (n === K || n === U) && s === Ge) && (Y = B, f -= I[C] - r.width, f *= d ? 1 : -1);
|
|
1429
1429
|
}
|
|
1430
|
-
var
|
|
1430
|
+
var O = Object.assign({
|
|
1431
1431
|
position: a
|
|
1432
|
-
},
|
|
1432
|
+
}, h && es);
|
|
1433
1433
|
if (d) {
|
|
1434
|
-
var
|
|
1435
|
-
return Object.assign({},
|
|
1434
|
+
var z;
|
|
1435
|
+
return Object.assign({}, O, (z = {}, z[E] = R ? "0" : "", z[Y] = g ? "0" : "", z.transform = (w.devicePixelRatio || 1) <= 1 ? "translate(" + f + "px, " + p + "px)" : "translate3d(" + f + "px, " + p + "px, 0)", z));
|
|
1436
1436
|
}
|
|
1437
|
-
return Object.assign({},
|
|
1437
|
+
return Object.assign({}, O, (e = {}, e[E] = R ? p + "px" : "", e[Y] = g ? f + "px" : "", e.transform = "", e));
|
|
1438
1438
|
}
|
|
1439
1439
|
function os(t) {
|
|
1440
|
-
var e = t.state, o = t.options, r = o.gpuAcceleration, n = r === void 0 ? !0 : r, s = o.adaptive, l = s === void 0 ? !0 : s, a = o.roundOffsets, d = a === void 0 ? !0 : a,
|
|
1440
|
+
var e = t.state, o = t.options, r = o.gpuAcceleration, n = r === void 0 ? !0 : r, s = o.adaptive, l = s === void 0 ? !0 : s, a = o.roundOffsets, d = a === void 0 ? !0 : a, h = {
|
|
1441
1441
|
placement: $(e.placement),
|
|
1442
|
-
variation:
|
|
1442
|
+
variation: we(e.placement),
|
|
1443
1443
|
popper: e.elements.popper,
|
|
1444
1444
|
popperRect: e.rects.popper,
|
|
1445
1445
|
gpuAcceleration: n
|
|
1446
1446
|
};
|
|
1447
|
-
e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper,
|
|
1447
|
+
e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, St(Object.assign({}, h, {
|
|
1448
1448
|
offsets: e.modifiersData.popperOffsets,
|
|
1449
1449
|
position: e.options.strategy,
|
|
1450
1450
|
adaptive: l,
|
|
1451
1451
|
roundOffsets: d
|
|
1452
|
-
})))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow,
|
|
1452
|
+
})))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, St(Object.assign({}, h, {
|
|
1453
1453
|
offsets: e.modifiersData.arrow,
|
|
1454
1454
|
position: "absolute",
|
|
1455
1455
|
adaptive: !1,
|
|
@@ -1490,8 +1490,8 @@ function ss(t) {
|
|
|
1490
1490
|
};
|
|
1491
1491
|
return Object.assign(e.elements.popper.style, o.popper), e.styles = o, e.elements.arrow && Object.assign(e.elements.arrow.style, o.arrow), function() {
|
|
1492
1492
|
Object.keys(e.elements).forEach(function(r) {
|
|
1493
|
-
var n = e.elements[r], s = e.attributes[r] || {}, l = Object.keys(e.styles.hasOwnProperty(r) ? e.styles[r] : o[r]), a = l.reduce(function(d,
|
|
1494
|
-
return d[
|
|
1493
|
+
var n = e.elements[r], s = e.attributes[r] || {}, l = Object.keys(e.styles.hasOwnProperty(r) ? e.styles[r] : o[r]), a = l.reduce(function(d, h) {
|
|
1494
|
+
return d[h] = "", d;
|
|
1495
1495
|
}, {});
|
|
1496
1496
|
!Z(n) || !ee(n) || (Object.assign(n.style, a), Object.keys(s).forEach(function(d) {
|
|
1497
1497
|
n.removeAttribute(d);
|
|
@@ -1512,34 +1512,34 @@ var as = {
|
|
|
1512
1512
|
function cs(t) {
|
|
1513
1513
|
return t === "x" ? "y" : "x";
|
|
1514
1514
|
}
|
|
1515
|
-
function
|
|
1516
|
-
return de(t,
|
|
1515
|
+
function Fe(t, e, o) {
|
|
1516
|
+
return de(t, Ce(e, o));
|
|
1517
1517
|
}
|
|
1518
1518
|
function ds(t) {
|
|
1519
|
-
var e = t.state, o = t.options, r = t.name, n = o.mainAxis, s = n === void 0 ? !0 : n, l = o.altAxis, a = l === void 0 ? !1 : l, d = o.boundary,
|
|
1519
|
+
var e = t.state, o = t.options, r = t.name, n = o.mainAxis, s = n === void 0 ? !0 : n, l = o.altAxis, a = l === void 0 ? !1 : l, d = o.boundary, h = o.rootBoundary, c = o.altBoundary, b = o.padding, u = o.tether, f = u === void 0 ? !0 : u, x = o.tetherOffset, p = x === void 0 ? 0 : x, g = ft(e, {
|
|
1520
1520
|
boundary: d,
|
|
1521
|
-
rootBoundary:
|
|
1522
|
-
padding:
|
|
1521
|
+
rootBoundary: h,
|
|
1522
|
+
padding: b,
|
|
1523
1523
|
altBoundary: c
|
|
1524
|
-
}), R = $(e.placement), Y =
|
|
1524
|
+
}), R = $(e.placement), Y = we(e.placement), E = !Y, w = pt(R), I = cs(w), G = e.modifiersData.popperOffsets, C = e.rects.reference, O = e.rects.popper, z = typeof p == "function" ? p(Object.assign({}, e.rects, {
|
|
1525
1525
|
placement: e.placement
|
|
1526
|
-
})) :
|
|
1526
|
+
})) : p, D = {
|
|
1527
1527
|
x: 0,
|
|
1528
1528
|
y: 0
|
|
1529
1529
|
};
|
|
1530
1530
|
if (G) {
|
|
1531
1531
|
if (s || a) {
|
|
1532
|
-
var N = w === "y" ? K : Q, oe = w === "y" ? U : B, L = w === "y" ? "height" : "width", re = G[w], ne = G[w] + g[N], q = G[w] - g[oe], se = f ? -
|
|
1532
|
+
var N = w === "y" ? K : Q, oe = w === "y" ? U : B, L = w === "y" ? "height" : "width", re = G[w], ne = G[w] + g[N], q = G[w] - g[oe], se = f ? -O[L] / 2 : 0, H = Y === xe ? C[L] : O[L], j = Y === xe ? -O[L] : -C[L], M = e.elements.arrow, ae = f && M ? dt(M) : {
|
|
1533
1533
|
width: 0,
|
|
1534
1534
|
height: 0
|
|
1535
|
-
}, ve = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Kt(),
|
|
1535
|
+
}, ve = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Kt(), Oe = ve[N], pe = ve[oe], J = Fe(0, C[L], ae[L]), Le = E ? C[L] / 2 - se - J - Oe - z : H - J - Oe - z, Xe = E ? -C[L] / 2 + se + J + pe + z : j + J + pe + z, he = e.elements.arrow && Pe(e.elements.arrow), Ue = he ? w === "y" ? he.clientTop || 0 : he.clientLeft || 0 : 0, ht = e.modifiersData.offset ? e.modifiersData.offset[e.placement][w] : 0, mt = G[w] + Le - ht - Ue, bt = G[w] + Xe - ht;
|
|
1536
1536
|
if (s) {
|
|
1537
|
-
var
|
|
1538
|
-
G[w] =
|
|
1537
|
+
var yt = Fe(f ? Ce(ne, mt) : ne, re, f ? de(q, bt) : q);
|
|
1538
|
+
G[w] = yt, D[w] = yt - re;
|
|
1539
1539
|
}
|
|
1540
1540
|
if (a) {
|
|
1541
|
-
var Wt = w === "x" ? K : Q, Jt = w === "x" ? U : B,
|
|
1542
|
-
G[
|
|
1541
|
+
var Wt = w === "x" ? K : Q, Jt = w === "x" ? U : B, Me = G[I], gt = Me + g[Wt], xt = Me - g[Jt], wt = Fe(f ? Ce(gt, mt) : gt, Me, f ? de(xt, bt) : xt);
|
|
1542
|
+
G[I] = wt, D[I] = wt - Me;
|
|
1543
1543
|
}
|
|
1544
1544
|
}
|
|
1545
1545
|
e.modifiersData[r] = D;
|
|
@@ -1557,7 +1557,7 @@ var us = {
|
|
|
1557
1557
|
bottom: "top",
|
|
1558
1558
|
top: "bottom"
|
|
1559
1559
|
};
|
|
1560
|
-
function
|
|
1560
|
+
function qe(t) {
|
|
1561
1561
|
return t.replace(/left|right|bottom|top/g, function(e) {
|
|
1562
1562
|
return ps[e];
|
|
1563
1563
|
});
|
|
@@ -1566,84 +1566,84 @@ var fs = {
|
|
|
1566
1566
|
start: "end",
|
|
1567
1567
|
end: "start"
|
|
1568
1568
|
};
|
|
1569
|
-
function
|
|
1569
|
+
function It(t) {
|
|
1570
1570
|
return t.replace(/start|end/g, function(e) {
|
|
1571
1571
|
return fs[e];
|
|
1572
1572
|
});
|
|
1573
1573
|
}
|
|
1574
1574
|
function vs(t, e) {
|
|
1575
1575
|
e === void 0 && (e = {});
|
|
1576
|
-
var o = e, r = o.placement, n = o.boundary, s = o.rootBoundary, l = o.padding, a = o.flipVariations, d = o.allowedAutoPlacements,
|
|
1577
|
-
return
|
|
1578
|
-
}) :
|
|
1579
|
-
return
|
|
1576
|
+
var o = e, r = o.placement, n = o.boundary, s = o.rootBoundary, l = o.padding, a = o.flipVariations, d = o.allowedAutoPlacements, h = d === void 0 ? qt : d, c = we(r), b = c ? a ? Rt : Rt.filter(function(x) {
|
|
1577
|
+
return we(x) === c;
|
|
1578
|
+
}) : ze, u = b.filter(function(x) {
|
|
1579
|
+
return h.indexOf(x) >= 0;
|
|
1580
1580
|
});
|
|
1581
|
-
u.length === 0 && (u =
|
|
1582
|
-
var f = u.reduce(function(x,
|
|
1583
|
-
return x[
|
|
1584
|
-
placement:
|
|
1581
|
+
u.length === 0 && (u = b);
|
|
1582
|
+
var f = u.reduce(function(x, p) {
|
|
1583
|
+
return x[p] = ft(t, {
|
|
1584
|
+
placement: p,
|
|
1585
1585
|
boundary: n,
|
|
1586
1586
|
rootBoundary: s,
|
|
1587
1587
|
padding: l
|
|
1588
|
-
})[$(
|
|
1588
|
+
})[$(p)], x;
|
|
1589
1589
|
}, {});
|
|
1590
|
-
return Object.keys(f).sort(function(x,
|
|
1591
|
-
return f[x] - f[
|
|
1590
|
+
return Object.keys(f).sort(function(x, p) {
|
|
1591
|
+
return f[x] - f[p];
|
|
1592
1592
|
});
|
|
1593
1593
|
}
|
|
1594
1594
|
function hs(t) {
|
|
1595
|
-
if ($(t) ===
|
|
1595
|
+
if ($(t) === ut)
|
|
1596
1596
|
return [];
|
|
1597
|
-
var e =
|
|
1598
|
-
return [
|
|
1597
|
+
var e = qe(t);
|
|
1598
|
+
return [It(t), e, It(e)];
|
|
1599
1599
|
}
|
|
1600
1600
|
function ms(t) {
|
|
1601
1601
|
var e = t.state, o = t.options, r = t.name;
|
|
1602
1602
|
if (!e.modifiersData[r]._skip) {
|
|
1603
|
-
for (var n = o.mainAxis, s = n === void 0 ? !0 : n, l = o.altAxis, a = l === void 0 ? !0 : l, d = o.fallbackPlacements,
|
|
1604
|
-
return pe.concat($(J) ===
|
|
1603
|
+
for (var n = o.mainAxis, s = n === void 0 ? !0 : n, l = o.altAxis, a = l === void 0 ? !0 : l, d = o.fallbackPlacements, h = o.padding, c = o.boundary, b = o.rootBoundary, u = o.altBoundary, f = o.flipVariations, x = f === void 0 ? !0 : f, p = o.allowedAutoPlacements, g = e.options.placement, R = $(g), Y = R === g, E = d || (Y || !x ? [qe(g)] : hs(g)), w = [g].concat(E).reduce(function(pe, J) {
|
|
1604
|
+
return pe.concat($(J) === ut ? vs(e, {
|
|
1605
1605
|
placement: J,
|
|
1606
1606
|
boundary: c,
|
|
1607
|
-
rootBoundary:
|
|
1608
|
-
padding:
|
|
1607
|
+
rootBoundary: b,
|
|
1608
|
+
padding: h,
|
|
1609
1609
|
flipVariations: x,
|
|
1610
|
-
allowedAutoPlacements:
|
|
1610
|
+
allowedAutoPlacements: p
|
|
1611
1611
|
}) : J);
|
|
1612
|
-
}, []),
|
|
1613
|
-
var N = w[D], oe = $(N), L =
|
|
1612
|
+
}, []), I = e.rects.reference, G = e.rects.popper, C = /* @__PURE__ */ new Map(), O = !0, z = w[0], D = 0; D < w.length; D++) {
|
|
1613
|
+
var N = w[D], oe = $(N), L = we(N) === xe, re = [K, U].indexOf(oe) >= 0, ne = re ? "width" : "height", q = ft(e, {
|
|
1614
1614
|
placement: N,
|
|
1615
1615
|
boundary: c,
|
|
1616
|
-
rootBoundary:
|
|
1616
|
+
rootBoundary: b,
|
|
1617
1617
|
altBoundary: u,
|
|
1618
|
-
padding:
|
|
1618
|
+
padding: h
|
|
1619
1619
|
}), se = re ? L ? B : Q : L ? U : K;
|
|
1620
|
-
|
|
1621
|
-
var H =
|
|
1620
|
+
I[ne] > G[ne] && (se = qe(se));
|
|
1621
|
+
var H = qe(se), j = [];
|
|
1622
1622
|
if (s && j.push(q[oe] <= 0), a && j.push(q[se] <= 0, q[H] <= 0), j.every(function(pe) {
|
|
1623
1623
|
return pe;
|
|
1624
1624
|
})) {
|
|
1625
|
-
|
|
1625
|
+
z = N, O = !1;
|
|
1626
1626
|
break;
|
|
1627
1627
|
}
|
|
1628
1628
|
C.set(N, j);
|
|
1629
1629
|
}
|
|
1630
|
-
if (
|
|
1630
|
+
if (O)
|
|
1631
1631
|
for (var M = x ? 3 : 1, ae = function(J) {
|
|
1632
|
-
var
|
|
1633
|
-
var he = C.get(
|
|
1632
|
+
var Le = w.find(function(Xe) {
|
|
1633
|
+
var he = C.get(Xe);
|
|
1634
1634
|
if (he)
|
|
1635
|
-
return he.slice(0, J).every(function(
|
|
1636
|
-
return
|
|
1635
|
+
return he.slice(0, J).every(function(Ue) {
|
|
1636
|
+
return Ue;
|
|
1637
1637
|
});
|
|
1638
1638
|
});
|
|
1639
|
-
if (
|
|
1640
|
-
return
|
|
1639
|
+
if (Le)
|
|
1640
|
+
return z = Le, "break";
|
|
1641
1641
|
}, ve = M; ve > 0; ve--) {
|
|
1642
|
-
var
|
|
1643
|
-
if (
|
|
1642
|
+
var Oe = ae(ve);
|
|
1643
|
+
if (Oe === "break")
|
|
1644
1644
|
break;
|
|
1645
1645
|
}
|
|
1646
|
-
e.placement !==
|
|
1646
|
+
e.placement !== z && (e.modifiersData[r]._skip = !0, e.placement = z, e.reset = !0);
|
|
1647
1647
|
}
|
|
1648
1648
|
}
|
|
1649
1649
|
var bs = {
|
|
@@ -1669,10 +1669,10 @@ function ys(t, e, o) {
|
|
|
1669
1669
|
};
|
|
1670
1670
|
}
|
|
1671
1671
|
function gs(t) {
|
|
1672
|
-
var e = t.state, o = t.options, r = t.name, n = o.offset, s = n === void 0 ? [0, 0] : n, l = qt.reduce(function(c,
|
|
1673
|
-
return c[
|
|
1674
|
-
}, {}), a = l[e.placement], d = a.x,
|
|
1675
|
-
e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += d, e.modifiersData.popperOffsets.y +=
|
|
1672
|
+
var e = t.state, o = t.options, r = t.name, n = o.offset, s = n === void 0 ? [0, 0] : n, l = qt.reduce(function(c, b) {
|
|
1673
|
+
return c[b] = ys(b, e.rects, s), c;
|
|
1674
|
+
}, {}), a = l[e.placement], d = a.x, h = a.y;
|
|
1675
|
+
e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += d, e.modifiersData.popperOffsets.y += h), e.modifiersData[r] = l;
|
|
1676
1676
|
}
|
|
1677
1677
|
var xs = {
|
|
1678
1678
|
name: "offset",
|
|
@@ -1683,13 +1683,13 @@ var xs = {
|
|
|
1683
1683
|
}, ws = function(e, o) {
|
|
1684
1684
|
return e = typeof e == "function" ? e(Object.assign({}, o.rects, {
|
|
1685
1685
|
placement: o.placement
|
|
1686
|
-
})) : e, Qt(typeof e != "number" ? e : Xt(e,
|
|
1686
|
+
})) : e, Qt(typeof e != "number" ? e : Xt(e, ze));
|
|
1687
1687
|
};
|
|
1688
1688
|
function As(t) {
|
|
1689
|
-
var e, o = t.state, r = t.name, n = t.options, s = o.elements.arrow, l = o.modifiersData.popperOffsets, a = $(o.placement), d =
|
|
1689
|
+
var e, o = t.state, r = t.name, n = t.options, s = o.elements.arrow, l = o.modifiersData.popperOffsets, a = $(o.placement), d = pt(a), h = [Q, B].indexOf(a) >= 0, c = h ? "height" : "width";
|
|
1690
1690
|
if (!(!s || !l)) {
|
|
1691
|
-
var
|
|
1692
|
-
o.modifiersData[r] = (e = {}, e[
|
|
1691
|
+
var b = ws(n.padding, o), u = dt(s), f = d === "y" ? K : Q, x = d === "y" ? U : B, p = o.rects.reference[c] + o.rects.reference[d] - l[d] - o.rects.popper[c], g = l[d] - o.rects.reference[d], R = Pe(s), Y = R ? d === "y" ? R.clientHeight || 0 : R.clientWidth || 0 : 0, E = p / 2 - g / 2, w = b[f], I = Y - u[c] - b[x], G = Y / 2 - u[c] / 2 + E, C = Fe(w, G, I), O = d;
|
|
1692
|
+
o.modifiersData[r] = (e = {}, e[O] = C, e.centerOffset = C - G, e);
|
|
1693
1693
|
}
|
|
1694
1694
|
}
|
|
1695
1695
|
function ks(t) {
|
|
@@ -1705,7 +1705,7 @@ var Es = {
|
|
|
1705
1705
|
requires: ["popperOffsets"],
|
|
1706
1706
|
requiresIfExists: ["preventOverflow"]
|
|
1707
1707
|
};
|
|
1708
|
-
const
|
|
1708
|
+
const $e = (t) => parseInt(t, 10);
|
|
1709
1709
|
function Rs({
|
|
1710
1710
|
arrowPadding: t,
|
|
1711
1711
|
emit: e,
|
|
@@ -1719,22 +1719,22 @@ function Rs({
|
|
|
1719
1719
|
const d = ao({
|
|
1720
1720
|
isOpen: !1,
|
|
1721
1721
|
popperInstance: null
|
|
1722
|
-
}),
|
|
1722
|
+
}), h = (p) => {
|
|
1723
1723
|
var g;
|
|
1724
1724
|
(g = d.popperInstance) === null || g === void 0 || g.setOptions((R) => ({
|
|
1725
1725
|
...R,
|
|
1726
1726
|
modifiers: [...R.modifiers, {
|
|
1727
1727
|
name: "eventListeners",
|
|
1728
|
-
enabled:
|
|
1728
|
+
enabled: p
|
|
1729
1729
|
}]
|
|
1730
1730
|
}));
|
|
1731
|
-
}, c = () =>
|
|
1731
|
+
}, c = () => h(!0), b = () => h(!1), u = () => {
|
|
1732
1732
|
d.isOpen && (d.isOpen = !1, e("close:popper"));
|
|
1733
1733
|
}, f = () => {
|
|
1734
1734
|
d.isOpen || (d.isOpen = !0, e("open:popper"));
|
|
1735
1735
|
};
|
|
1736
|
-
|
|
1737
|
-
|
|
1736
|
+
ye([() => d.isOpen, s], async ([p]) => {
|
|
1737
|
+
p ? (await x(), c()) : b();
|
|
1738
1738
|
});
|
|
1739
1739
|
const x = async () => {
|
|
1740
1740
|
await io(), d.popperInstance = ls(a.value, l.value, {
|
|
@@ -1745,21 +1745,21 @@ function Rs({
|
|
|
1745
1745
|
}, Es, {
|
|
1746
1746
|
name: "arrow",
|
|
1747
1747
|
options: {
|
|
1748
|
-
padding:
|
|
1748
|
+
padding: $e(t.value)
|
|
1749
1749
|
}
|
|
1750
1750
|
}, xs, {
|
|
1751
1751
|
name: "offset",
|
|
1752
1752
|
options: {
|
|
1753
|
-
offset: [
|
|
1753
|
+
offset: [$e(n.value), $e(r.value)]
|
|
1754
1754
|
}
|
|
1755
1755
|
}]
|
|
1756
1756
|
}), d.popperInstance.update();
|
|
1757
1757
|
};
|
|
1758
|
-
return
|
|
1759
|
-
var
|
|
1760
|
-
(
|
|
1758
|
+
return nt(() => {
|
|
1759
|
+
var p;
|
|
1760
|
+
(p = d.popperInstance) === null || p === void 0 || p.destroy();
|
|
1761
1761
|
}), {
|
|
1762
|
-
...
|
|
1762
|
+
...Ot(d),
|
|
1763
1763
|
open: f,
|
|
1764
1764
|
close: u
|
|
1765
1765
|
};
|
|
@@ -1769,7 +1769,7 @@ const Ys = {
|
|
|
1769
1769
|
"data-popper-arrow": ""
|
|
1770
1770
|
};
|
|
1771
1771
|
function Gs(t, e) {
|
|
1772
|
-
return
|
|
1772
|
+
return v(), m("div", Ys);
|
|
1773
1773
|
}
|
|
1774
1774
|
function Ut(t, e) {
|
|
1775
1775
|
e === void 0 && (e = {});
|
|
@@ -1837,10 +1837,10 @@ var Cs = `
|
|
|
1837
1837
|
}
|
|
1838
1838
|
`;
|
|
1839
1839
|
Ut(Cs);
|
|
1840
|
-
const
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
var Ss =
|
|
1840
|
+
const vt = {};
|
|
1841
|
+
vt.render = Gs;
|
|
1842
|
+
vt.__scopeId = "data-v-20b7fd4a";
|
|
1843
|
+
var Ss = vt;
|
|
1844
1844
|
const Is = ["onKeyup"];
|
|
1845
1845
|
var Bt = {
|
|
1846
1846
|
props: {
|
|
@@ -1962,57 +1962,57 @@ var Bt = {
|
|
|
1962
1962
|
c81fc0a4: t.zIndex
|
|
1963
1963
|
}));
|
|
1964
1964
|
const r = oo(), n = k(null), s = k(null), l = k(null), a = k(!1);
|
|
1965
|
-
|
|
1965
|
+
Se(() => {
|
|
1966
1966
|
const H = r.default();
|
|
1967
1967
|
if (H && H.length > 1)
|
|
1968
1968
|
return console.error(`[Popper]: The <Popper> component expects only one child element at its root. You passed ${H.length} child nodes.`);
|
|
1969
1969
|
});
|
|
1970
1970
|
const {
|
|
1971
1971
|
arrowPadding: d,
|
|
1972
|
-
closeDelay:
|
|
1972
|
+
closeDelay: h,
|
|
1973
1973
|
content: c,
|
|
1974
|
-
disableClickAway:
|
|
1974
|
+
disableClickAway: b,
|
|
1975
1975
|
disabled: u,
|
|
1976
1976
|
interactive: f,
|
|
1977
1977
|
locked: x,
|
|
1978
|
-
offsetDistance:
|
|
1978
|
+
offsetDistance: p,
|
|
1979
1979
|
offsetSkid: g,
|
|
1980
1980
|
openDelay: R,
|
|
1981
1981
|
placement: Y,
|
|
1982
1982
|
show: E
|
|
1983
|
-
} =
|
|
1983
|
+
} = Ot(o), {
|
|
1984
1984
|
isOpen: w,
|
|
1985
|
-
open:
|
|
1985
|
+
open: I,
|
|
1986
1986
|
close: G
|
|
1987
1987
|
} = Rs({
|
|
1988
1988
|
arrowPadding: d,
|
|
1989
1989
|
emit: e,
|
|
1990
1990
|
locked: x,
|
|
1991
|
-
offsetDistance:
|
|
1991
|
+
offsetDistance: p,
|
|
1992
1992
|
offsetSkid: g,
|
|
1993
1993
|
placement: Y,
|
|
1994
1994
|
popperNode: s,
|
|
1995
1995
|
triggerNode: l
|
|
1996
1996
|
}), {
|
|
1997
1997
|
hasContent: C
|
|
1998
|
-
} = wn(r, s, c),
|
|
1999
|
-
|
|
1998
|
+
} = wn(r, s, c), O = ke(() => E.value !== null), z = ke(() => u.value || !C.value), D = ke(() => w.value && !z.value), N = ke(() => !b.value && !O.value), oe = ke(() => f.value ? `border: ${p.value}px solid transparent; margin: -${p.value}px;` : null), L = _e.debounce(I, R.value), re = _e.debounce(G, h.value), ne = async () => {
|
|
1999
|
+
z.value || O.value || (re.clear(), L());
|
|
2000
2000
|
}, q = async () => {
|
|
2001
|
-
|
|
2001
|
+
O.value || (L.clear(), re());
|
|
2002
2002
|
}, se = () => {
|
|
2003
2003
|
w.value ? q() : ne();
|
|
2004
2004
|
};
|
|
2005
|
-
return
|
|
2005
|
+
return ye([C, u], ([H, j]) => {
|
|
2006
2006
|
w.value && (!H || j) && G();
|
|
2007
|
-
}),
|
|
2008
|
-
H ? a.value = !0 :
|
|
2007
|
+
}), ye(w, (H) => {
|
|
2008
|
+
H ? a.value = !0 : _e.debounce(() => {
|
|
2009
2009
|
a.value = !1;
|
|
2010
2010
|
}, 200);
|
|
2011
|
-
}),
|
|
2012
|
-
|
|
2013
|
-
}),
|
|
2011
|
+
}), At(() => {
|
|
2012
|
+
O.value && (E.value ? L() : re());
|
|
2013
|
+
}), At(() => {
|
|
2014
2014
|
N.value && xn(n, q);
|
|
2015
|
-
}), (H, j) => (
|
|
2015
|
+
}), (H, j) => (v(), m("div", {
|
|
2016
2016
|
class: "inline-block",
|
|
2017
2017
|
style: so(y(oe)),
|
|
2018
2018
|
onMouseleave: j[2] || (j[2] = (M) => t.hover && q()),
|
|
@@ -2027,7 +2027,7 @@ var Bt = {
|
|
|
2027
2027
|
onClick: se,
|
|
2028
2028
|
onFocus: ne,
|
|
2029
2029
|
onKeyup: ro(q, ["esc"])
|
|
2030
|
-
}, [
|
|
2030
|
+
}, [tt(H.$slots, "default")], 40, Is), A(zt, {
|
|
2031
2031
|
name: "fade"
|
|
2032
2032
|
}, {
|
|
2033
2033
|
default: T(() => [fe(i("div", {
|
|
@@ -2036,12 +2036,12 @@ var Bt = {
|
|
|
2036
2036
|
ref: (M, ae) => {
|
|
2037
2037
|
ae.popperNode = M, s.value = M;
|
|
2038
2038
|
}
|
|
2039
|
-
}, [
|
|
2039
|
+
}, [tt(H.$slots, "content", {
|
|
2040
2040
|
close: y(G),
|
|
2041
2041
|
isOpen: a.value
|
|
2042
|
-
}, () => [_(
|
|
2042
|
+
}, () => [_(P(y(c)), 1)]), t.arrow ? (v(), me(Ss, {
|
|
2043
2043
|
key: 0
|
|
2044
|
-
})) :
|
|
2044
|
+
})) : S("", !0)], 512), [[no, y(D)]])]),
|
|
2045
2045
|
_: 3
|
|
2046
2046
|
})], 36));
|
|
2047
2047
|
}
|
|
@@ -2079,7 +2079,7 @@ var Bt = {
|
|
|
2079
2079
|
`;
|
|
2080
2080
|
Ut(Ps);
|
|
2081
2081
|
Bt.__scopeId = "data-v-5784ed69";
|
|
2082
|
-
var
|
|
2082
|
+
var Ne = /* @__PURE__ */ (() => {
|
|
2083
2083
|
const t = Bt;
|
|
2084
2084
|
return t.install = (e) => {
|
|
2085
2085
|
e.component("Popper", t);
|
|
@@ -2102,140 +2102,147 @@ const zs = {
|
|
|
2102
2102
|
role: "none"
|
|
2103
2103
|
}, Fs = ["onClick"], qs = { key: 1 }, Vs = /* @__PURE__ */ i("img", {
|
|
2104
2104
|
class: "w-12 h-12 block loadercss",
|
|
2105
|
-
src:
|
|
2105
|
+
src: Ze,
|
|
2106
2106
|
alt: "Loader Gif"
|
|
2107
2107
|
}, null, -1), Zs = [
|
|
2108
2108
|
Vs
|
|
2109
2109
|
], Ks = /* @__PURE__ */ te({
|
|
2110
2110
|
__name: "SkillOptions",
|
|
2111
2111
|
setup(t) {
|
|
2112
|
-
const e = le(), o =
|
|
2113
|
-
var c,
|
|
2112
|
+
const e = le(), o = Ae(), r = k(!0), n = k(!1), s = k(!1), l = k(!1), a = k(!1), d = async (h) => {
|
|
2113
|
+
var c, b;
|
|
2114
2114
|
try {
|
|
2115
2115
|
r.value = !1;
|
|
2116
2116
|
const u = await Lt(
|
|
2117
|
-
`/initialDataV2?skill_id=${
|
|
2117
|
+
`/initialDataV2?skill_id=${h.skill_id}&prof_id=${xo}&skill_master_id=${h.skill_master_id}`
|
|
2118
2118
|
);
|
|
2119
2119
|
e.selectSkill(u.data), e.addPostSkillSelectionMessage(), r.value = !0;
|
|
2120
2120
|
} catch (u) {
|
|
2121
2121
|
if (console.error(u), X.isAxiosError(u)) {
|
|
2122
2122
|
const f = u;
|
|
2123
|
-
console.error((c = f.response) == null ? void 0 : c.data), o.setError(((
|
|
2123
|
+
console.error((c = f.response) == null ? void 0 : c.data), o.setError(((b = f.response) == null ? void 0 : b.data).message);
|
|
2124
2124
|
} else
|
|
2125
2125
|
o.setError("There was an issue, please contact helpmate");
|
|
2126
2126
|
}
|
|
2127
2127
|
};
|
|
2128
|
-
return (
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2128
|
+
return (h, c) => {
|
|
2129
|
+
var b, u, f, x;
|
|
2130
|
+
return r.value ? (v(), m("div", zs, [
|
|
2131
|
+
(v(!0), m(F, null, V(y(e).user_skills, (p) => (v(), m("div", {
|
|
2132
|
+
class: "md:text-[14px] text-sm hover:bg-genpact-blue-box bg-genpact-darkest-teal text-white cursor-pointer rounded-md p-2",
|
|
2133
|
+
onClick: (g) => d(p),
|
|
2134
|
+
key: p.skill_id
|
|
2135
|
+
}, P(p.skill_name), 9, Os))), 128)),
|
|
2136
|
+
(b = y(e).industry_skills) != null && b.length ? (v(), me(y(Ne), {
|
|
2137
|
+
key: 0,
|
|
2138
|
+
show: n.value,
|
|
2139
|
+
placement: "bottom"
|
|
2140
|
+
}, {
|
|
2141
|
+
content: T(() => [
|
|
2142
|
+
i("div", Ls, [
|
|
2143
|
+
(v(!0), m(F, null, V(y(e).industry_skills, (p) => (v(), m("div", {
|
|
2144
|
+
onClick: (g) => d(p),
|
|
2145
|
+
key: p.skill_id,
|
|
2146
|
+
class: "cursor-pointer hover:text-genpact-blue-box hover:font-bold text-gray-700 block px-4 py-2 text-sm"
|
|
2147
|
+
}, P(p.skill_name), 9, Ms))), 128))
|
|
2148
|
+
])
|
|
2149
|
+
]),
|
|
2150
|
+
default: T(() => [
|
|
2151
|
+
i("button", {
|
|
2152
|
+
onClick: c[0] || (c[0] = (p) => n.value = !n.value),
|
|
2153
|
+
onFocusout: c[1] || (c[1] = (p) => n.value = !1),
|
|
2154
|
+
type: "button",
|
|
2155
|
+
class: "flex items-center gap-2 md:text-[14px] text-sm hover:bg-genpact-blue-box bg-genpact-darkest-teal text-white cursor-pointer rounded-md p-2"
|
|
2156
|
+
}, [
|
|
2157
|
+
_(" Industry "),
|
|
2158
|
+
A(y(He), { class: "w-3 h-3" })
|
|
2159
|
+
], 32)
|
|
2160
|
+
]),
|
|
2161
|
+
_: 1
|
|
2162
|
+
}, 8, ["show"])) : S("", !0),
|
|
2163
|
+
(u = y(e).service_line_skills) != null && u.length ? (v(), me(y(Ne), {
|
|
2164
|
+
key: 1,
|
|
2165
|
+
show: s.value,
|
|
2166
|
+
placement: "bottom"
|
|
2167
|
+
}, {
|
|
2168
|
+
content: T(() => [
|
|
2169
|
+
i("div", Hs, [
|
|
2170
|
+
(v(!0), m(F, null, V(y(e).service_line_skills, (p) => (v(), m("div", {
|
|
2171
|
+
onClick: (g) => d(p),
|
|
2172
|
+
key: p.skill_id,
|
|
2173
|
+
class: "cursor-pointer hover:text-genpact-blue-box hover:font-bold text-gray-700 block px-4 py-2 text-sm"
|
|
2174
|
+
}, P(p.skill_name), 9, js))), 128))
|
|
2175
|
+
])
|
|
2176
|
+
]),
|
|
2177
|
+
default: T(() => [
|
|
2178
|
+
i("button", {
|
|
2179
|
+
onClick: c[2] || (c[2] = (p) => s.value = !s.value),
|
|
2180
|
+
onFocusout: c[3] || (c[3] = (p) => s.value = !1),
|
|
2181
|
+
type: "button",
|
|
2182
|
+
class: "flex items-center gap-2 md:text-[14px] text-sm hover:bg-genpact-blue-box bg-genpact-darkest-teal text-white cursor-pointer rounded-md p-2"
|
|
2183
|
+
}, [
|
|
2184
|
+
_(" Service Line "),
|
|
2185
|
+
A(y(He), { class: "w-3 h-3" })
|
|
2186
|
+
], 32)
|
|
2187
|
+
]),
|
|
2188
|
+
_: 1
|
|
2189
|
+
}, 8, ["show"])) : S("", !0),
|
|
2190
|
+
(f = y(e).digital_skills) != null && f.length ? (v(), me(y(Ne), {
|
|
2191
|
+
key: 2,
|
|
2192
|
+
show: l.value,
|
|
2193
|
+
placement: "bottom"
|
|
2194
|
+
}, {
|
|
2195
|
+
content: T(() => [
|
|
2196
|
+
i("div", Ds, [
|
|
2197
|
+
(v(!0), m(F, null, V(y(e).digital_skills, (p) => (v(), m("div", {
|
|
2198
|
+
onClick: (g) => d(p),
|
|
2199
|
+
key: p.skill_id,
|
|
2200
|
+
class: "cursor-pointer hover:text-genpact-blue-box hover:font-bold text-gray-700 block px-4 py-2 text-sm"
|
|
2201
|
+
}, P(p.skill_name), 9, Ns))), 128))
|
|
2202
|
+
])
|
|
2203
|
+
]),
|
|
2204
|
+
default: T(() => [
|
|
2205
|
+
i("button", {
|
|
2206
|
+
onClick: c[4] || (c[4] = (p) => l.value = !l.value),
|
|
2207
|
+
onFocusout: c[5] || (c[5] = (p) => l.value = !1),
|
|
2208
|
+
type: "button",
|
|
2209
|
+
class: "flex items-center gap-2 md:text-[14px] text-sm hover:bg-genpact-blue-box bg-genpact-darkest-teal text-white cursor-pointer rounded-md p-2"
|
|
2210
|
+
}, [
|
|
2211
|
+
_(" Digital "),
|
|
2212
|
+
A(y(He), { class: "w-3 h-3" })
|
|
2213
|
+
], 32)
|
|
2214
|
+
]),
|
|
2215
|
+
_: 1
|
|
2216
|
+
}, 8, ["show"])) : S("", !0),
|
|
2217
|
+
(x = y(e).professional_skills) != null && x.length ? (v(), me(y(Ne), {
|
|
2218
|
+
key: 3,
|
|
2219
|
+
show: a.value,
|
|
2220
|
+
placement: "bottom"
|
|
2221
|
+
}, {
|
|
2222
|
+
content: T(() => [
|
|
2223
|
+
i("div", Ts, [
|
|
2224
|
+
(v(!0), m(F, null, V(y(e).professional_skills, (p) => (v(), m("div", {
|
|
2225
|
+
onClick: (g) => d(p),
|
|
2226
|
+
key: p.skill_id,
|
|
2227
|
+
class: "cursor-pointer hover:text-genpact-blue-box hover:font-bold text-gray-700 block px-4 py-2 text-sm"
|
|
2228
|
+
}, P(p.skill_name), 9, Fs))), 128))
|
|
2229
|
+
])
|
|
2230
|
+
]),
|
|
2231
|
+
default: T(() => [
|
|
2232
|
+
i("button", {
|
|
2233
|
+
onClick: c[6] || (c[6] = (p) => a.value = !a.value),
|
|
2234
|
+
onFocusout: c[7] || (c[7] = (p) => a.value = !1),
|
|
2235
|
+
type: "button",
|
|
2236
|
+
class: "flex items-center gap-2 md:text-[14px] text-sm hover:bg-genpact-blue-box bg-genpact-darkest-teal text-white cursor-pointer rounded-md p-2"
|
|
2237
|
+
}, [
|
|
2238
|
+
_(" Professional "),
|
|
2239
|
+
A(y(He), { class: "w-3 h-3" })
|
|
2240
|
+
], 32)
|
|
2241
|
+
]),
|
|
2242
|
+
_: 1
|
|
2243
|
+
}, 8, ["show"])) : S("", !0)
|
|
2244
|
+
])) : (v(), m("div", qs, Zs));
|
|
2245
|
+
};
|
|
2239
2246
|
}
|
|
2240
2247
|
}), Qs = {
|
|
2241
2248
|
key: 0,
|
|
@@ -2245,7 +2252,7 @@ const zs = {
|
|
|
2245
2252
|
class: "flex gap-2 items-center flex-wrap"
|
|
2246
2253
|
}, Bs = ["onClick"], Ws = { key: 1 }, Js = /* @__PURE__ */ i("img", {
|
|
2247
2254
|
class: "w-12 h-12 block loadercss",
|
|
2248
|
-
src:
|
|
2255
|
+
src: Ze,
|
|
2249
2256
|
alt: "Loader Gif"
|
|
2250
2257
|
}, null, -1), _s = [
|
|
2251
2258
|
Js
|
|
@@ -2259,25 +2266,25 @@ const zs = {
|
|
|
2259
2266
|
}
|
|
2260
2267
|
await e.generateUseCases(s.useCaseId), e.addConversation({ question: s.useCaseName, answer: null }, "faq"), o.value = !0;
|
|
2261
2268
|
};
|
|
2262
|
-
return (s, l) => o.value ? (
|
|
2263
|
-
(
|
|
2269
|
+
return (s, l) => o.value ? (v(), m("div", Qs, [
|
|
2270
|
+
(v(!0), m(F, null, V(y(e).postSkillUseCases, (a) => (v(), m("div", {
|
|
2264
2271
|
class: "md:text-[14px] text-sm hover:bg-genpact-blue-box bg-genpact-darkest-teal text-white cursor-pointer rounded-md p-2",
|
|
2265
2272
|
onClick: (d) => n(a),
|
|
2266
2273
|
key: a.useCaseId
|
|
2267
|
-
},
|
|
2268
|
-
y(e).otherUseCases.length > 0 && !r.value ? (
|
|
2274
|
+
}, P(a.useCaseName), 9, Xs))), 128)),
|
|
2275
|
+
y(e).otherUseCases.length > 0 && !r.value ? (v(), m("button", {
|
|
2269
2276
|
key: 0,
|
|
2270
2277
|
class: "md:text-[14px] text-sm hover:bg-genpact-blue-box bg-genpact-darkest-teal text-white cursor-pointer rounded-md p-2",
|
|
2271
2278
|
onClick: l[0] || (l[0] = (a) => r.value = !r.value)
|
|
2272
|
-
}, " Others ")) :
|
|
2273
|
-
r.value ? (
|
|
2274
|
-
(
|
|
2279
|
+
}, " Others ")) : S("", !0),
|
|
2280
|
+
r.value ? (v(), m("div", Us, [
|
|
2281
|
+
(v(!0), m(F, null, V(y(e).otherUseCases, (a) => (v(), m("div", {
|
|
2275
2282
|
class: "md:text-[14px] text-sm hover:bg-genpact-blue-box bg-genpact-darkest-teal text-white cursor-pointer rounded-md p-2",
|
|
2276
2283
|
onClick: (d) => n(a),
|
|
2277
2284
|
key: a.useCaseId
|
|
2278
|
-
},
|
|
2279
|
-
])) :
|
|
2280
|
-
])) : (
|
|
2285
|
+
}, P(a.useCaseName), 9, Bs))), 128))
|
|
2286
|
+
])) : S("", !0)
|
|
2287
|
+
])) : (v(), m("div", Ws, _s));
|
|
2281
2288
|
}
|
|
2282
2289
|
}), ea = { key: 0 }, ta = { key: 1 }, oa = { key: 0 }, ra = { key: 1 }, na = /* @__PURE__ */ te({
|
|
2283
2290
|
__name: "Conversation",
|
|
@@ -2287,20 +2294,20 @@ const zs = {
|
|
|
2287
2294
|
const r = le(), n = k();
|
|
2288
2295
|
return co(() => {
|
|
2289
2296
|
n.value.scrollTo(0, n.value.scrollHeight);
|
|
2290
|
-
}), (s, l) => (
|
|
2297
|
+
}), (s, l) => (v(), m("div", {
|
|
2291
2298
|
ref_key: "nestedElement",
|
|
2292
2299
|
ref: n,
|
|
2293
2300
|
class: "smooth-scroll overflow-auto md:p-8 p-3 pb-[80px]"
|
|
2294
2301
|
}, [
|
|
2295
2302
|
A(vn),
|
|
2296
|
-
(
|
|
2297
|
-
a.question ? (
|
|
2303
|
+
(v(!0), m(F, null, V(y(r).conversations, (a, d) => (v(), m("div", { key: d }, [
|
|
2304
|
+
a.question ? (v(), m("div", ea, [
|
|
2298
2305
|
A(yn, {
|
|
2299
2306
|
question: a.question,
|
|
2300
2307
|
"show-feedback": a.showFeedback
|
|
2301
2308
|
}, null, 8, ["question", "show-feedback"])
|
|
2302
|
-
])) :
|
|
2303
|
-
a.answer ? (
|
|
2309
|
+
])) : S("", !0),
|
|
2310
|
+
a.answer ? (v(), m("div", ta, [
|
|
2304
2311
|
A(cn, {
|
|
2305
2312
|
question: a.question,
|
|
2306
2313
|
"show-sources": a.showSources,
|
|
@@ -2308,14 +2315,14 @@ const zs = {
|
|
|
2308
2315
|
answer: a.answer.replaceAll("<a", y(e)).replaceAll("<ul", y(o)),
|
|
2309
2316
|
"show-feedback": a.showFeedback
|
|
2310
2317
|
}, null, 8, ["question", "show-sources", "questionId", "answer", "show-feedback"])
|
|
2311
|
-
])) :
|
|
2318
|
+
])) : S("", !0)
|
|
2312
2319
|
]))), 128)),
|
|
2313
|
-
y(r).skill_id ?
|
|
2320
|
+
y(r).skill_id ? S("", !0) : (v(), m("div", oa, [
|
|
2314
2321
|
A(Ks)
|
|
2315
2322
|
])),
|
|
2316
|
-
y(r).showPostSkillUseCases ? (
|
|
2323
|
+
y(r).showPostSkillUseCases ? (v(), m("div", ra, [
|
|
2317
2324
|
A($s)
|
|
2318
|
-
])) :
|
|
2325
|
+
])) : S("", !0)
|
|
2319
2326
|
], 512));
|
|
2320
2327
|
}
|
|
2321
2328
|
});
|
|
@@ -2341,21 +2348,21 @@ const ce = (t) => (po("data-v-ed61c2a4"), t = t(), fo(), t), sa = { class: "max-
|
|
|
2341
2348
|
}, Aa = { class: "z-20" }, ka = { class: "flex h-full overflow-hidden items-stretch" }, Ea = { class: "hidden md:block" }, Ra = { class: "bg-gray-200 w-screen" }, Ya = { class: "relative h-full w-full flex flex-col overflow-hidden items-stretch" }, Ga = /* @__PURE__ */ ce(() => /* @__PURE__ */ i("div", { class: "md:mt-[130px] mt-[120px]" }, null, -1)), Ca = { class: "relative" }, Sa = /* @__PURE__ */ te({
|
|
2342
2349
|
__name: "HomeView",
|
|
2343
2350
|
setup(t) {
|
|
2344
|
-
const e = k(!0), o = k(!1), r = le(), n =
|
|
2351
|
+
const e = k(!0), o = k(!1), r = le(), n = Ae(), s = Pt(), l = k(!1), a = k(""), d = async () => {
|
|
2345
2352
|
const c = {
|
|
2346
|
-
event_type:
|
|
2353
|
+
event_type: at.CONSENT
|
|
2347
2354
|
};
|
|
2348
|
-
o.value = !1, s.close(), await
|
|
2349
|
-
},
|
|
2350
|
-
var c,
|
|
2355
|
+
o.value = !1, s.close(), await Ie("/generateEvent", c);
|
|
2356
|
+
}, h = async () => {
|
|
2357
|
+
var c, b, u, f, x;
|
|
2351
2358
|
try {
|
|
2352
2359
|
e.value = !1;
|
|
2353
|
-
const
|
|
2354
|
-
((c =
|
|
2355
|
-
} catch (
|
|
2356
|
-
if (console.error(
|
|
2357
|
-
const g =
|
|
2358
|
-
if (console.error((
|
|
2360
|
+
const p = await Lt("/getLearnerData");
|
|
2361
|
+
((c = p.data) == null ? void 0 : c.maintenance) && uo.replace({ path: "/under-maintenance" }), s.open(), r.initialize(p.data), e.value = !0;
|
|
2362
|
+
} catch (p) {
|
|
2363
|
+
if (console.error(p), e.value = !0, X.isAxiosError(p)) {
|
|
2364
|
+
const g = p;
|
|
2365
|
+
if (console.error((b = g.response) == null ? void 0 : b.data), ((u = g.response) == null ? void 0 : u.status) === 422) {
|
|
2359
2366
|
l.value = !0, a.value = ((f = g.response) == null ? void 0 : f.data).message;
|
|
2360
2367
|
return;
|
|
2361
2368
|
}
|
|
@@ -2364,23 +2371,23 @@ const ce = (t) => (po("data-v-ed61c2a4"), t = t(), fo(), t), sa = { class: "max-
|
|
|
2364
2371
|
n.setError("There was an issue, please contact helpmate");
|
|
2365
2372
|
}
|
|
2366
2373
|
};
|
|
2367
|
-
return
|
|
2368
|
-
|
|
2369
|
-
}), (c,
|
|
2370
|
-
A(
|
|
2374
|
+
return Se(() => {
|
|
2375
|
+
h();
|
|
2376
|
+
}), (c, b) => (v(), m("div", null, [
|
|
2377
|
+
A(Ve, { "is-visible": l.value }, {
|
|
2371
2378
|
default: T(() => [
|
|
2372
2379
|
i("div", sa, [
|
|
2373
|
-
A(y(
|
|
2380
|
+
A(y(Te), { class: "w-12 h-12 fill-genpact-blue-box" }),
|
|
2374
2381
|
A(jt, { color: "blue" }),
|
|
2375
|
-
i("h3", aa,
|
|
2382
|
+
i("h3", aa, P(a.value), 1)
|
|
2376
2383
|
])
|
|
2377
2384
|
]),
|
|
2378
2385
|
_: 1
|
|
2379
2386
|
}, 8, ["is-visible"]),
|
|
2380
|
-
A(
|
|
2387
|
+
A(Ve, {
|
|
2381
2388
|
"is-visible": y(s).isOpen,
|
|
2382
2389
|
"cross-visible": y(s).crossVisible,
|
|
2383
|
-
onCancel:
|
|
2390
|
+
onCancel: b[1] || (b[1] = (u) => y(s).close())
|
|
2384
2391
|
}, {
|
|
2385
2392
|
default: T(() => [
|
|
2386
2393
|
i("div", ia, [
|
|
@@ -2390,19 +2397,19 @@ const ce = (t) => (po("data-v-ed61c2a4"), t = t(), fo(), t), sa = { class: "max-
|
|
|
2390
2397
|
da,
|
|
2391
2398
|
ua,
|
|
2392
2399
|
pa,
|
|
2393
|
-
i("li", null, " You can ask a maximum of " +
|
|
2400
|
+
i("li", null, " You can ask a maximum of " + P(y(r).questionLimit) + " questions, with each question limited to 300 characters or less. ", 1),
|
|
2394
2401
|
fa,
|
|
2395
2402
|
va,
|
|
2396
2403
|
ha
|
|
2397
2404
|
])
|
|
2398
2405
|
]),
|
|
2399
|
-
y(s).crossVisible ?
|
|
2406
|
+
y(s).crossVisible ? S("", !0) : (v(), m("div", ma, [
|
|
2400
2407
|
i("div", ba, [
|
|
2401
2408
|
i("input", {
|
|
2402
2409
|
type: "checkbox",
|
|
2403
2410
|
id: "check",
|
|
2404
2411
|
className: "mr-3",
|
|
2405
|
-
onClick:
|
|
2412
|
+
onClick: b[0] || (b[0] = (u) => o.value = !o.value)
|
|
2406
2413
|
}),
|
|
2407
2414
|
ya
|
|
2408
2415
|
]),
|
|
@@ -2418,7 +2425,7 @@ const ce = (t) => (po("data-v-ed61c2a4"), t = t(), fo(), t), sa = { class: "max-
|
|
|
2418
2425
|
]),
|
|
2419
2426
|
_: 1
|
|
2420
2427
|
}, 8, ["is-visible", "cross-visible"]),
|
|
2421
|
-
e.value ? (
|
|
2428
|
+
e.value ? (v(), m("main", wa, [
|
|
2422
2429
|
i("div", Aa, [
|
|
2423
2430
|
A(dr)
|
|
2424
2431
|
]),
|
|
@@ -2436,11 +2443,11 @@ const ce = (t) => (po("data-v-ed61c2a4"), t = t(), fo(), t), sa = { class: "max-
|
|
|
2436
2443
|
])
|
|
2437
2444
|
])
|
|
2438
2445
|
])
|
|
2439
|
-
])) : (
|
|
2446
|
+
])) : (v(), me(br, { key: 1 }))
|
|
2440
2447
|
]));
|
|
2441
2448
|
}
|
|
2442
2449
|
});
|
|
2443
|
-
const Oa = /* @__PURE__ */
|
|
2450
|
+
const Oa = /* @__PURE__ */ st(Sa, [["__scopeId", "data-v-ed61c2a4"]]);
|
|
2444
2451
|
export {
|
|
2445
2452
|
Oa as default
|
|
2446
2453
|
};
|