@genpact/genome.mfe.mgtwin-app 1.1.5-alpha → 1.1.7-alpha
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-90595dc1.mjs → HomeView-3d50e463.mjs} +896 -865
- package/dist/{PromptTesting-e1fd32fa.mjs → PromptTesting-3f666a59.mjs} +2 -2
- package/dist/{UnderMaintenance-746b9774.mjs → UnderMaintenance-62859c20.mjs} +1 -1
- package/dist/{loadernew-f2732774.mjs → loadernew-70126a14.mjs} +1 -1
- package/dist/{main-334fa341.mjs → main-aeed593e.mjs} +909 -909
- package/dist/mgtwin.es.min.js +1 -1
- package/dist/mgtwin.umd.min.js +8 -8
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { o as v, c as
|
|
2
|
-
import { p as
|
|
1
|
+
import { o as v, c as h, a as i, d as te, u as le, b, e as _, t as P, f as C, g as I, F as T, r as F, n as me, h as w, i as Z, A as to, j as Ie, w as be, k as Se, l as Pt, m as fe, v as et, p as Q, q as oo, s as tt, T as Lt, x as Be, y as ro, z as Mt, B as zt, C as no, D as so, E as Ht, G as ke, H as wt, I as ao, J as Ae, K as io, L as lo, M as nt, N as co, O as uo, P as po, Q as fo, R as vo } from "./main-aeed593e.mjs";
|
|
2
|
+
import { p as ge, _ as ho, a as Ze, r as Ao, g as Ot } from "./loadernew-70126a14.mjs";
|
|
3
3
|
import { _ as st } from "./_plugin-vue_export-helper-dad06003.mjs";
|
|
4
4
|
function mo(t, e) {
|
|
5
|
-
return v(),
|
|
5
|
+
return v(), h("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 v(),
|
|
18
|
+
function Oe(t, e) {
|
|
19
|
+
return v(), h("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 He(t, e) {
|
|
|
30
30
|
]);
|
|
31
31
|
}
|
|
32
32
|
function bo(t, e) {
|
|
33
|
-
return v(),
|
|
33
|
+
return v(), h("svg", {
|
|
34
34
|
xmlns: "http://www.w3.org/2000/svg",
|
|
35
35
|
viewBox: "0 0 24 24",
|
|
36
36
|
fill: "currentColor",
|
|
@@ -39,8 +39,8 @@ function bo(t, e) {
|
|
|
39
39
|
i("path", { d: "M15.73 5.25h1.035A7.465 7.465 0 0118 9.375a7.465 7.465 0 01-1.235 4.125h-.148c-.806 0-1.534.446-2.031 1.08a9.04 9.04 0 01-2.861 2.4c-.723.384-1.35.956-1.653 1.715a4.498 4.498 0 00-.322 1.672V21a.75.75 0 01-.75.75 2.25 2.25 0 01-2.25-2.25c0-1.152.26-2.243.723-3.218C7.74 15.724 7.366 15 6.748 15H3.622c-1.026 0-1.945-.694-2.054-1.715A12.134 12.134 0 011.5 12c0-2.848.992-5.464 2.649-7.521.388-.482.987-.729 1.605-.729H9.77a4.5 4.5 0 011.423.23l3.114 1.04a4.5 4.5 0 001.423.23zM21.669 13.773c.536-1.362.831-2.845.831-4.398 0-1.22-.182-2.398-.52-3.507-.26-.85-1.084-1.368-1.973-1.368H19.1c-.445 0-.72.498-.523.898.591 1.2.924 2.55.924 3.977a8.959 8.959 0 01-1.302 4.666c-.245.403.028.959.5.959h1.053c.832 0 1.612-.453 1.918-1.227z" })
|
|
40
40
|
]);
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
return v(),
|
|
42
|
+
function go(t, e) {
|
|
43
|
+
return v(), h("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 v(),
|
|
52
|
+
function je(t, e) {
|
|
53
|
+
return v(), h("svg", {
|
|
54
54
|
xmlns: "http://www.w3.org/2000/svg",
|
|
55
55
|
viewBox: "0 0 24 24",
|
|
56
56
|
fill: "currentColor",
|
|
@@ -63,22 +63,8 @@ function Te(t, e) {
|
|
|
63
63
|
})
|
|
64
64
|
]);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
return v(),
|
|
68
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
69
|
-
viewBox: "0 0 24 24",
|
|
70
|
-
fill: "currentColor",
|
|
71
|
-
"aria-hidden": "true"
|
|
72
|
-
}, [
|
|
73
|
-
i("path", {
|
|
74
|
-
"fill-rule": "evenodd",
|
|
75
|
-
d: "M19.902 4.098a3.75 3.75 0 00-5.304 0l-4.5 4.5a3.75 3.75 0 001.035 6.037.75.75 0 01-.646 1.353 5.25 5.25 0 01-1.449-8.45l4.5-4.5a5.25 5.25 0 117.424 7.424l-1.757 1.757a.75.75 0 11-1.06-1.06l1.757-1.757a3.75 3.75 0 000-5.304zm-7.389 4.267a.75.75 0 011-.353 5.25 5.25 0 011.449 8.45l-4.5 4.5a5.25 5.25 0 11-7.424-7.424l1.757-1.757a.75.75 0 111.06 1.06l-1.757 1.757a3.75 3.75 0 105.304 5.304l4.5-4.5a3.75 3.75 0 00-1.035-6.037.75.75 0 01-.354-1z",
|
|
76
|
-
"clip-rule": "evenodd"
|
|
77
|
-
})
|
|
78
|
-
]);
|
|
79
|
-
}
|
|
80
|
-
function Mt(t, e) {
|
|
81
|
-
return v(), m("svg", {
|
|
66
|
+
function Dt(t, e) {
|
|
67
|
+
return v(), h("svg", {
|
|
82
68
|
xmlns: "http://www.w3.org/2000/svg",
|
|
83
69
|
viewBox: "0 0 24 24",
|
|
84
70
|
fill: "currentColor",
|
|
@@ -91,18 +77,18 @@ function Mt(t, e) {
|
|
|
91
77
|
})
|
|
92
78
|
]);
|
|
93
79
|
}
|
|
94
|
-
const We = 300,
|
|
80
|
+
const We = 300, yo = "97103561-8dc3-4fe7-ad0a-4f8dedac8f6b";
|
|
95
81
|
var at = /* @__PURE__ */ ((t) => (t.CONSENT = "user_consent", t.FAQ = "most_popular_question", t))(at || {});
|
|
96
|
-
const
|
|
82
|
+
const xo = { class: "md:w-72 bg-genpact-blue-box px-3 h-full flex flex-col justify-start pt-4 gap-2 overflow-y-auto" }, wo = { class: "space-y-2 text-sm" }, Io = { class: "flex gap-2 text-white" }, ko = { key: 0 }, Eo = { class: "flex items-center gap-2 py-1" }, Co = { key: 0 }, Ro = { class: "tooltip" }, Yo = { class: "tooltiptext" }, Go = { key: 0 }, So = ["href"], Po = {
|
|
97
83
|
key: 1,
|
|
98
84
|
class: "my-3"
|
|
99
|
-
},
|
|
85
|
+
}, Lo = /* @__PURE__ */ i("label", null, "Master Guru(s): ", -1), Mo = ["href"], zo = { key: 0 }, Ho = { class: "md:hidden flex justify-end cursor-pointer" }, Oo = { class: "space-y-2 text-sm text-gray-800" }, Do = { class: "flex items-center gap-2 text-gray-300" }, To = /* @__PURE__ */ i("h4", { class: "font-bold" }, "Most Popular Questions", -1), No = { class: "tooltip" }, jo = /* @__PURE__ */ i("span", { class: "tooltiptext" }, "Access previously answered questions by experts", -1), Qo = { class: "h-[15rem] overflow-auto space-y-2" }, Fo = ["onClick"], qo = { class: "md:truncate tooltip" }, Zo = { class: "tooltiptext" }, Vo = {
|
|
100
86
|
key: 0,
|
|
101
87
|
class: "bg-gray-200 rounded-md p-2"
|
|
102
|
-
},
|
|
88
|
+
}, Ko = { class: "space-y-2 text-sm text-gray-800" }, Xo = { class: "flex items-center gap-2 text-gray-300 mt-4" }, Uo = /* @__PURE__ */ i("h4", { class: "font-bold" }, "Your Recent Questions", -1), Bo = { class: "tooltip" }, Wo = /* @__PURE__ */ i("span", { class: "tooltiptext" }, "View your last 3 questions for this skill", -1), Jo = ["onClick"], _o = { class: "md:truncate tooltip" }, $o = { class: "tooltiptext" }, er = {
|
|
103
89
|
key: 0,
|
|
104
90
|
class: "bg-gray-200 rounded-md p-2"
|
|
105
|
-
},
|
|
91
|
+
}, Tt = /* @__PURE__ */ te({
|
|
106
92
|
__name: "SideNav",
|
|
107
93
|
emits: ["closeDrawer"],
|
|
108
94
|
setup(t, { emit: e }) {
|
|
@@ -119,95 +105,95 @@ const wo = { class: "md:w-72 bg-genpact-blue-box px-3 h-full flex flex-col justi
|
|
|
119
105
|
event_type: at.FAQ,
|
|
120
106
|
question_id: s.id.toString()
|
|
121
107
|
};
|
|
122
|
-
await
|
|
108
|
+
await ge("/generateEvent", a);
|
|
123
109
|
}
|
|
124
110
|
e("closeDrawer");
|
|
125
111
|
};
|
|
126
112
|
return (s, l) => {
|
|
127
113
|
var a;
|
|
128
|
-
return v(),
|
|
129
|
-
i("div",
|
|
130
|
-
i("div",
|
|
131
|
-
|
|
132
|
-
i("div",
|
|
133
|
-
|
|
114
|
+
return v(), h("div", xo, [
|
|
115
|
+
i("div", wo, [
|
|
116
|
+
i("div", Io, [
|
|
117
|
+
b(o).skill_id ? (v(), h("div", ko, [
|
|
118
|
+
i("div", Eo, [
|
|
119
|
+
b(o).skill_id ? (v(), h("div", Co, [
|
|
134
120
|
i("h4", null, [
|
|
135
121
|
_(" Skill: "),
|
|
136
|
-
i("b", null, P(
|
|
122
|
+
i("b", null, P(b(o).skillName), 1)
|
|
137
123
|
])
|
|
138
|
-
])) :
|
|
139
|
-
i("div",
|
|
140
|
-
i("span",
|
|
141
|
-
|
|
124
|
+
])) : C("", !0),
|
|
125
|
+
i("div", Ro, [
|
|
126
|
+
i("span", Yo, P(b(o).skillDefinition), 1),
|
|
127
|
+
I(b(je), { class: "w-5 h-5 fill-current" })
|
|
142
128
|
])
|
|
143
129
|
]),
|
|
144
|
-
|
|
130
|
+
b(o).skill_id && b(o).skillVideoLink ? (v(), h("div", Go, [
|
|
145
131
|
i("a", {
|
|
146
|
-
href:
|
|
132
|
+
href: b(o).skillVideoLink,
|
|
147
133
|
target: "_blank",
|
|
148
134
|
class: "underline text-sm"
|
|
149
|
-
}, "Watch " + P(
|
|
150
|
-
])) :
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
(v(!0),
|
|
135
|
+
}, "Watch " + P(b(o).skillName) + " introduction video", 9, So)
|
|
136
|
+
])) : C("", !0),
|
|
137
|
+
b(o).skill_id ? (v(), h("div", Po, [
|
|
138
|
+
Lo,
|
|
139
|
+
(v(!0), h(T, null, F((a = b(o).guruName) == null ? void 0 : a.split(","), (c, A) => (v(), h("span", { key: A }, [
|
|
154
140
|
i("a", {
|
|
155
|
-
href: r(
|
|
141
|
+
href: r(A) || "",
|
|
156
142
|
target: "_blank"
|
|
157
|
-
}, P(
|
|
158
|
-
|
|
143
|
+
}, P(c.trim()), 9, Mo),
|
|
144
|
+
A < b(o).guruName.split(",").length - 1 ? (v(), h("span", zo, ", ")) : C("", !0)
|
|
159
145
|
]))), 128))
|
|
160
|
-
])) :
|
|
161
|
-
])) :
|
|
146
|
+
])) : C("", !0)
|
|
147
|
+
])) : C("", !0)
|
|
162
148
|
])
|
|
163
149
|
]),
|
|
164
|
-
i("div",
|
|
165
|
-
|
|
166
|
-
onClick: l[0] || (l[0] = (
|
|
150
|
+
i("div", Ho, [
|
|
151
|
+
I(b(Dt), {
|
|
152
|
+
onClick: l[0] || (l[0] = (c) => s.$emit("closeDrawer")),
|
|
167
153
|
class: "w-6 h-6 fill-white"
|
|
168
154
|
})
|
|
169
155
|
]),
|
|
170
|
-
i("div",
|
|
171
|
-
i("div",
|
|
172
|
-
|
|
156
|
+
i("div", Oo, [
|
|
157
|
+
i("div", Do, [
|
|
158
|
+
To,
|
|
173
159
|
i("div", No, [
|
|
174
|
-
|
|
175
|
-
|
|
160
|
+
jo,
|
|
161
|
+
I(b(je), { class: "w-5 h-5 fill-current" })
|
|
176
162
|
])
|
|
177
163
|
]),
|
|
178
|
-
i("div",
|
|
179
|
-
(v(!0),
|
|
180
|
-
onClick: (
|
|
181
|
-
key:
|
|
182
|
-
class:
|
|
164
|
+
i("div", Qo, [
|
|
165
|
+
(v(!0), h(T, null, F(b(o).frequentlyAskedQuestions, (c, A) => (v(), h("div", {
|
|
166
|
+
onClick: (u) => n(c, "faq"),
|
|
167
|
+
key: A,
|
|
168
|
+
class: me([c.isShown ? "cursor-not-allowed bg-gray-400" : "cursor-pointer", "bg-gray-200 rounded-md p-2"])
|
|
183
169
|
}, [
|
|
184
|
-
i("div",
|
|
185
|
-
i("span", Zo, P(
|
|
186
|
-
_(" " + P(
|
|
170
|
+
i("div", qo, [
|
|
171
|
+
i("span", Zo, P(c.question), 1),
|
|
172
|
+
_(" " + P(c.question), 1)
|
|
187
173
|
])
|
|
188
|
-
], 10,
|
|
189
|
-
|
|
174
|
+
], 10, Fo))), 128)),
|
|
175
|
+
b(o).frequentlyAskedQuestions.length ? C("", !0) : (v(), h("div", Vo, " No Guru Questions available "))
|
|
190
176
|
])
|
|
191
177
|
]),
|
|
192
|
-
i("div",
|
|
178
|
+
i("div", Ko, [
|
|
193
179
|
i("div", Xo, [
|
|
194
180
|
Uo,
|
|
195
181
|
i("div", Bo, [
|
|
196
182
|
Wo,
|
|
197
|
-
|
|
183
|
+
I(b(je), { class: "w-5 h-5 fill-current" })
|
|
198
184
|
])
|
|
199
185
|
]),
|
|
200
|
-
(v(!0),
|
|
201
|
-
onClick: (
|
|
202
|
-
key:
|
|
203
|
-
class:
|
|
186
|
+
(v(!0), h(T, null, F(b(o).recentQuestions, (c, A) => (v(), h("div", {
|
|
187
|
+
onClick: (u) => n(c, "recent"),
|
|
188
|
+
key: A,
|
|
189
|
+
class: me([c.isShown ? "cursor-not-allowed bg-gray-400" : "cursor-pointer", "bg-gray-200 rounded-md p-2"])
|
|
204
190
|
}, [
|
|
205
191
|
i("div", _o, [
|
|
206
|
-
i("span", $o, P(
|
|
207
|
-
_(" " + P(
|
|
192
|
+
i("span", $o, P(c.question), 1),
|
|
193
|
+
_(" " + P(c.question), 1)
|
|
208
194
|
])
|
|
209
195
|
], 10, Jo))), 128)),
|
|
210
|
-
|
|
196
|
+
b(o).recentQuestions.length ? C("", !0) : (v(), h("div", er, " No Recent Questions "))
|
|
211
197
|
])
|
|
212
198
|
]);
|
|
213
199
|
};
|
|
@@ -222,7 +208,7 @@ const wo = { class: "md:w-72 bg-genpact-blue-box px-3 h-full flex flex-col justi
|
|
|
222
208
|
class: "h-8",
|
|
223
209
|
src: or,
|
|
224
210
|
alt: "Logo"
|
|
225
|
-
},
|
|
211
|
+
}, Nt = {
|
|
226
212
|
__name: "Logo",
|
|
227
213
|
props: {
|
|
228
214
|
color: {
|
|
@@ -231,15 +217,15 @@ const wo = { class: "md:w-72 bg-genpact-blue-box px-3 h-full flex flex-col justi
|
|
|
231
217
|
}
|
|
232
218
|
},
|
|
233
219
|
setup(t) {
|
|
234
|
-
return (e, o) => (v(),
|
|
235
|
-
t.color === "white" ? (v(),
|
|
220
|
+
return (e, o) => (v(), h("div", null, [
|
|
221
|
+
t.color === "white" ? (v(), h("img", rr)) : (v(), h("img", nr))
|
|
236
222
|
]));
|
|
237
223
|
}
|
|
238
224
|
}, 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" }, [
|
|
239
225
|
/* @__PURE__ */ i("a", { href: "https://genome.genpact.com" }, [
|
|
240
226
|
/* @__PURE__ */ i("img", {
|
|
241
227
|
class: "h-4",
|
|
242
|
-
src:
|
|
228
|
+
src: ho
|
|
243
229
|
})
|
|
244
230
|
]),
|
|
245
231
|
/* @__PURE__ */ i("a", {
|
|
@@ -249,28 +235,28 @@ const wo = { class: "md:w-72 bg-genpact-blue-box px-3 h-full flex flex-col justi
|
|
|
249
235
|
], -1), dr = {
|
|
250
236
|
__name: "MobileNav",
|
|
251
237
|
setup(t) {
|
|
252
|
-
const e =
|
|
238
|
+
const e = w(!1), o = () => {
|
|
253
239
|
e.value = !0;
|
|
254
240
|
}, r = () => {
|
|
255
241
|
e.value = !1;
|
|
256
242
|
};
|
|
257
|
-
return (n, s) => (v(),
|
|
243
|
+
return (n, s) => (v(), h(T, null, [
|
|
258
244
|
i("div", null, [
|
|
259
245
|
i("div", {
|
|
260
|
-
class:
|
|
246
|
+
class: me([
|
|
261
247
|
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
248
|
"fixed overflow-hidden bg-gray-900 bg-opacity-40 ease-in-out"
|
|
263
249
|
])
|
|
264
250
|
}, [
|
|
265
251
|
i("div", {
|
|
266
|
-
class:
|
|
252
|
+
class: me([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
253
|
}, [
|
|
268
254
|
i("div", sr, [
|
|
269
|
-
|
|
255
|
+
I(Tt, { onCloseDrawer: r })
|
|
270
256
|
])
|
|
271
257
|
], 2),
|
|
272
258
|
i("section", {
|
|
273
|
-
class:
|
|
259
|
+
class: me(e.value ? "w-screen h-full cursor-pointer z-[30]" : "w-0 h-0"),
|
|
274
260
|
onClick: r
|
|
275
261
|
}, null, 2)
|
|
276
262
|
], 2)
|
|
@@ -281,10 +267,10 @@ const wo = { class: "md:w-72 bg-genpact-blue-box px-3 h-full flex flex-col justi
|
|
|
281
267
|
onClick: o,
|
|
282
268
|
class: "md:hidden block bg-genpact-light-blue p-2 hover:bg-genpact-light-blue/80 cursor-pointer"
|
|
283
269
|
}, [
|
|
284
|
-
|
|
270
|
+
I(b(mo), { class: "w-5 h-5 fill-gray-300" })
|
|
285
271
|
]),
|
|
286
272
|
i("div", lr, [
|
|
287
|
-
|
|
273
|
+
I(Nt)
|
|
288
274
|
])
|
|
289
275
|
]),
|
|
290
276
|
cr
|
|
@@ -299,10 +285,10 @@ const wo = { class: "md:w-72 bg-genpact-blue-box px-3 h-full flex flex-col justi
|
|
|
299
285
|
fr,
|
|
300
286
|
vr
|
|
301
287
|
];
|
|
302
|
-
function
|
|
303
|
-
return v(),
|
|
288
|
+
function Ar(t, e) {
|
|
289
|
+
return v(), h("div", pr, hr);
|
|
304
290
|
}
|
|
305
|
-
const
|
|
291
|
+
const mr = /* @__PURE__ */ st(ur, [["render", Ar]]), Je = {
|
|
306
292
|
"1,1": "i",
|
|
307
293
|
"2,-1": "i",
|
|
308
294
|
"2,0": "i",
|
|
@@ -311,21 +297,21 @@ const br = /* @__PURE__ */ st(ur, [["render", mr]]), Je = {
|
|
|
311
297
|
"3,1": "s",
|
|
312
298
|
"4,0": "s",
|
|
313
299
|
"4,1": "s"
|
|
314
|
-
},
|
|
300
|
+
}, It = {
|
|
315
301
|
i: "Continue your BITS wave",
|
|
316
302
|
t: "Go do Transform",
|
|
317
303
|
s: "Go do Solidify"
|
|
318
304
|
};
|
|
319
|
-
let
|
|
320
|
-
const
|
|
321
|
-
|
|
322
|
-
const
|
|
305
|
+
let Ve = `Bearer ${localStorage.getItem("accessToken")}`;
|
|
306
|
+
const jt = "prod";
|
|
307
|
+
to === "local" && (Ve = `Bearer ${{}.VITE_LOCAL_ACCESS_TOKEN}`);
|
|
308
|
+
const br = async () => await Z({
|
|
323
309
|
method: "get",
|
|
324
|
-
url: `https://api-router.genpact.com/${
|
|
310
|
+
url: `https://api-router.genpact.com/${jt}/api/genome/v1/employee/performance-report`,
|
|
325
311
|
headers: {
|
|
326
312
|
"x-oauth-config-provider": "cognito-aps1",
|
|
327
313
|
"x-sharepoint-list-name": "skills",
|
|
328
|
-
authorization:
|
|
314
|
+
authorization: Ve
|
|
329
315
|
}
|
|
330
316
|
}), gr = async (t) => {
|
|
331
317
|
const e = `
|
|
@@ -340,11 +326,11 @@ const yr = async () => await X({
|
|
|
340
326
|
}
|
|
341
327
|
}
|
|
342
328
|
`;
|
|
343
|
-
return await
|
|
329
|
+
return await Z({
|
|
344
330
|
method: "post",
|
|
345
|
-
url: `https://api.genpact.com/${
|
|
331
|
+
url: `https://api.genpact.com/${jt}/genome/my-profile/graphql`,
|
|
346
332
|
headers: {
|
|
347
|
-
authorization:
|
|
333
|
+
authorization: Ve
|
|
348
334
|
},
|
|
349
335
|
data: {
|
|
350
336
|
query: e,
|
|
@@ -353,113 +339,113 @@ const yr = async () => await X({
|
|
|
353
339
|
}
|
|
354
340
|
}
|
|
355
341
|
});
|
|
356
|
-
},
|
|
342
|
+
}, yr = async (t, e) => await Z({
|
|
357
343
|
method: "post",
|
|
358
344
|
url: "https://rihejfb5x0.execute-api.ap-south-1.amazonaws.com/myplan/link",
|
|
359
345
|
headers: {
|
|
360
346
|
"x-oauth-config-provider": "cognito-aps1",
|
|
361
|
-
authorization:
|
|
347
|
+
authorization: Ve
|
|
362
348
|
},
|
|
363
349
|
data: {
|
|
364
350
|
skill: t,
|
|
365
351
|
proficiency: e
|
|
366
352
|
}
|
|
367
|
-
}),
|
|
353
|
+
}), xr = {
|
|
368
354
|
key: 0,
|
|
369
355
|
class: "flex justify-center gap-2 pb-1"
|
|
370
|
-
},
|
|
356
|
+
}, wr = /* @__PURE__ */ te({
|
|
371
357
|
__name: "ChatActionButtons",
|
|
372
358
|
setup(t) {
|
|
373
|
-
const e = le(), o =
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
359
|
+
const e = le(), o = Ie(), r = w([]), n = w([]), s = w([]), l = w("");
|
|
360
|
+
be(e, (m) => {
|
|
361
|
+
m.skillName && (s.value = [], r.value.map((d) => {
|
|
362
|
+
d[0] === e.skillName && (s.value = d, console.log(d), console.log(It[Je[d.slice(1, 3).join(",")]]), l.value = It[Je[d.slice(1, 3).join(",")]]);
|
|
377
363
|
}));
|
|
378
364
|
});
|
|
379
365
|
const a = async () => {
|
|
380
|
-
var
|
|
366
|
+
var m;
|
|
381
367
|
try {
|
|
382
|
-
let
|
|
383
|
-
n.value.map((
|
|
384
|
-
|
|
368
|
+
let d = "";
|
|
369
|
+
n.value.map((y) => {
|
|
370
|
+
y.skillname === e.skillName && (d = y.currentproficient);
|
|
385
371
|
});
|
|
386
|
-
const f = (await
|
|
372
|
+
const f = (await yr(e.skillName, d)).data, g = s.value.slice(1, 3).join(","), p = f[Je[g]];
|
|
387
373
|
window.open(p, "_blank");
|
|
388
|
-
} catch (
|
|
389
|
-
if (console.error(
|
|
390
|
-
const f =
|
|
391
|
-
o.setError(((
|
|
374
|
+
} catch (d) {
|
|
375
|
+
if (console.error(d), Z.isAxiosError(d)) {
|
|
376
|
+
const f = d;
|
|
377
|
+
o.setError(((m = f.response) == null ? void 0 : m.data).message);
|
|
392
378
|
} else
|
|
393
379
|
o.setError("There was an issue, please contact helpmate");
|
|
394
380
|
}
|
|
395
|
-
},
|
|
396
|
-
var
|
|
381
|
+
}, c = async () => {
|
|
382
|
+
var m, d, f;
|
|
397
383
|
try {
|
|
398
|
-
const
|
|
399
|
-
n.value = (f = (
|
|
400
|
-
} catch (
|
|
401
|
-
console.error(
|
|
384
|
+
const g = await gr(e.ohr);
|
|
385
|
+
n.value = (f = (d = (m = g.data) == null ? void 0 : m.data) == null ? void 0 : d.MyPlan) == null ? void 0 : f.data;
|
|
386
|
+
} catch (g) {
|
|
387
|
+
console.error(g), Z.isAxiosError(g) ? o.setError("Error fetching current MyPlan proficiencies") : o.setError("There was an issue, please contact helpmate");
|
|
402
388
|
}
|
|
403
|
-
},
|
|
404
|
-
var
|
|
389
|
+
}, A = async () => {
|
|
390
|
+
var m, d, f, g;
|
|
405
391
|
try {
|
|
406
|
-
const p = await
|
|
392
|
+
const p = await br(), y = ((m = p.data) == null ? void 0 : m.Professional_BITS) || "", E = ((d = p.data) == null ? void 0 : d.Digital_BITS) || "", R = ((f = p.data) == null ? void 0 : f.Industry_BITS) || "";
|
|
407
393
|
r.value.push(
|
|
408
|
-
...
|
|
409
|
-
...
|
|
410
|
-
...
|
|
394
|
+
...y.split("PROFSKILL|").map((k) => k.split("|")),
|
|
395
|
+
...E.split("DIGITAL|").map((k) => k.split("|")),
|
|
396
|
+
...R.split("INDUSTRY|").map((k) => k.split("|"))
|
|
411
397
|
);
|
|
412
398
|
} catch (p) {
|
|
413
|
-
if (console.error(p),
|
|
414
|
-
const
|
|
415
|
-
o.setError(((
|
|
399
|
+
if (console.error(p), Z.isAxiosError(p)) {
|
|
400
|
+
const y = p;
|
|
401
|
+
o.setError(((g = y.response) == null ? void 0 : g.data).message);
|
|
416
402
|
} else
|
|
417
403
|
o.setError("There was an issue, please contact helpmate");
|
|
418
404
|
}
|
|
419
405
|
};
|
|
420
406
|
Se(() => {
|
|
421
|
-
|
|
407
|
+
A(), c();
|
|
422
408
|
});
|
|
423
|
-
const
|
|
424
|
-
return (
|
|
425
|
-
s.value.length ? (v(),
|
|
409
|
+
const u = () => window.open("https://genome.genpact.com/my-profile", "_blank");
|
|
410
|
+
return (m, d) => b(e).skill_id ? (v(), h("div", xr, [
|
|
411
|
+
s.value.length ? (v(), h("div", {
|
|
426
412
|
key: 0,
|
|
427
|
-
onClick:
|
|
413
|
+
onClick: d[0] || (d[0] = (f) => a()),
|
|
428
414
|
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
|
-
}, P(l.value), 1)) : (v(),
|
|
415
|
+
}, P(l.value), 1)) : (v(), h("div", {
|
|
430
416
|
key: 1,
|
|
431
|
-
onClick:
|
|
417
|
+
onClick: d[1] || (d[1] = (f) => u()),
|
|
432
418
|
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"
|
|
433
419
|
}, " Add to Myplan ")),
|
|
434
420
|
i("div", {
|
|
435
|
-
onClick:
|
|
421
|
+
onClick: d[2] || (d[2] = (f) => b(e).clearSkillSelection()),
|
|
436
422
|
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"
|
|
437
423
|
}, " Change Skill "),
|
|
438
424
|
i("div", {
|
|
439
|
-
onClick:
|
|
425
|
+
onClick: d[3] || (d[3] = (f) => b(e).clearConversationHistory()),
|
|
440
426
|
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
427
|
}, " Clear Chat ")
|
|
442
|
-
])) :
|
|
428
|
+
])) : C("", !0);
|
|
443
429
|
}
|
|
444
|
-
}),
|
|
430
|
+
}), Ir = { class: "absolute bottom-0 w-full z-3 mt-4" }, kr = { class: "md:px-8 px-3 py-2" }, Er = { class: "border border-gray-200" }, Cr = { class: "relative w-full z-1" }, Rr = {
|
|
445
431
|
key: 1,
|
|
446
432
|
class: "absolute top-3 right-4"
|
|
447
|
-
},
|
|
433
|
+
}, Yr = /* @__PURE__ */ i("img", {
|
|
448
434
|
class: "w-10 h-10 block mx-auto loadercss",
|
|
449
435
|
src: Ze,
|
|
450
436
|
alt: "Loader Gif"
|
|
451
|
-
}, null, -1),
|
|
452
|
-
|
|
453
|
-
],
|
|
437
|
+
}, null, -1), Gr = [
|
|
438
|
+
Yr
|
|
439
|
+
], Sr = { class: "text-gray-500 md:text-sm text-[11px] flex justify-between" }, Pr = /* @__PURE__ */ i("div", { class: "text-gray-500 text-start md:text-sm text-xs pt-1" }, [
|
|
454
440
|
/* @__PURE__ */ i("div", null, " Note: AI-generated response may not be fully accurate; you may copy the response and check with experts for critical information. ")
|
|
455
|
-
], -1),
|
|
441
|
+
], -1), Lr = /* @__PURE__ */ te({
|
|
456
442
|
__name: "NewQuestion",
|
|
457
443
|
setup(t) {
|
|
458
|
-
const e = Pt(), o =
|
|
459
|
-
const
|
|
460
|
-
a.value = We -
|
|
461
|
-
},
|
|
462
|
-
var
|
|
444
|
+
const e = Pt(), o = Ie(), r = le(), n = w(""), s = w(!1), l = w(!1), a = w(We), c = (m) => {
|
|
445
|
+
const d = m.length;
|
|
446
|
+
a.value = We - d, l.value = d >= We;
|
|
447
|
+
}, A = async () => {
|
|
448
|
+
var m, d, f, g;
|
|
463
449
|
try {
|
|
464
450
|
if (!r.skill_id) {
|
|
465
451
|
o.setError("Please select a skill");
|
|
@@ -484,58 +470,58 @@ const yr = async () => await X({
|
|
|
484
470
|
prof_id: r.prof_id,
|
|
485
471
|
question: n.value,
|
|
486
472
|
answer: ""
|
|
487
|
-
},
|
|
488
|
-
console.log((
|
|
473
|
+
}, y = await ge("/fetchCompletion?api_version=1.1", p);
|
|
474
|
+
console.log((d = (m = y.data) == null ? void 0 : m.body) == null ? void 0 : d.answer), r.addConversation((f = y.data) == null ? void 0 : f.body, "new"), n.value = "", s.value = !1, console.log(r.past_messages);
|
|
489
475
|
} catch (p) {
|
|
490
|
-
if (console.error(p), s.value = !1,
|
|
491
|
-
const
|
|
492
|
-
o.setError(((
|
|
476
|
+
if (console.error(p), s.value = !1, Z.isAxiosError(p)) {
|
|
477
|
+
const y = p;
|
|
478
|
+
o.setError(((g = y.response) == null ? void 0 : g.data).message);
|
|
493
479
|
} else
|
|
494
480
|
o.setError("There was an issue, please contact helpmate");
|
|
495
481
|
}
|
|
496
|
-
},
|
|
497
|
-
|
|
482
|
+
}, u = async (m) => {
|
|
483
|
+
m.which === 13 && (m.preventDefault(), s.value || await A());
|
|
498
484
|
};
|
|
499
|
-
return (
|
|
500
|
-
i("div",
|
|
501
|
-
|
|
502
|
-
i("div",
|
|
503
|
-
i("div",
|
|
485
|
+
return (m, d) => (v(), h("div", Ir, [
|
|
486
|
+
i("div", kr, [
|
|
487
|
+
I(wr),
|
|
488
|
+
i("div", Er, [
|
|
489
|
+
i("div", Cr, [
|
|
504
490
|
fe(i("textarea", {
|
|
505
491
|
id: "chat",
|
|
506
|
-
"onUpdate:modelValue":
|
|
507
|
-
onKeyup:
|
|
508
|
-
onKeydown:
|
|
492
|
+
"onUpdate:modelValue": d[0] || (d[0] = (f) => n.value = f),
|
|
493
|
+
onKeyup: d[1] || (d[1] = (f) => c(n.value)),
|
|
494
|
+
onKeydown: d[2] || (d[2] = (f) => u(f)),
|
|
509
495
|
class: "block rounded-md p-2.5 pr-16 w-full text-sm bg-white border border-gray-300",
|
|
510
496
|
placeholder: "Ask a question in less than 300 characters..."
|
|
511
497
|
}, null, 544), [
|
|
512
498
|
[et, n.value]
|
|
513
499
|
]),
|
|
514
|
-
s.value ? (v(),
|
|
500
|
+
s.value ? (v(), h("div", Rr, Gr)) : (v(), h("button", {
|
|
515
501
|
key: 0,
|
|
516
|
-
onClick:
|
|
517
|
-
class:
|
|
502
|
+
onClick: A,
|
|
503
|
+
class: me(["absolute top-4 right-4", b(r).skill_id ? "cursor-pointer" : "cursor-not-allowed fill-gray-400"])
|
|
518
504
|
}, [
|
|
519
|
-
|
|
505
|
+
I(b(Ao), { class: "w-8 h-8 fill-inherit" })
|
|
520
506
|
], 2))
|
|
521
507
|
])
|
|
522
508
|
]),
|
|
523
|
-
i("div",
|
|
524
|
-
i("div", null, P(
|
|
509
|
+
i("div", Sr, [
|
|
510
|
+
i("div", null, P(b(r).questionsLeft) + " Questions Remaining", 1),
|
|
525
511
|
i("button", {
|
|
526
512
|
class: "underline text-blue-500",
|
|
527
|
-
onClick:
|
|
513
|
+
onClick: d[3] || (d[3] = (f) => b(e).open(!0))
|
|
528
514
|
}, " Important Instructions ")
|
|
529
515
|
]),
|
|
530
516
|
Pr
|
|
531
517
|
])
|
|
532
518
|
]));
|
|
533
519
|
}
|
|
534
|
-
});
|
|
535
|
-
const
|
|
520
|
+
}), Mr = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACMUlEQVQ4jYVSz0tUURT+zrnv+sYJcTTxlUo/QCJlqLERQTe5iKJlC0HKgszahP0J4aagbVujRTIRCPYfRItqU4GZCEYUFMH0Qy0Edea9e06L99Q3Q9K3uZfv3Pvde873AbXgZDXonvRrS0WbbCjNenUC0tp3qdfAG/xZKc+kCy2F/IDFcfyYL71MRDT9IgCg9cREV8bLPhaNFrA0W02/trZpFoyXvd1euDqUXKa0AAGAb+WBQppX5kuvE153Wlp+uA51X43lErrP++kfMABtK4wNk7HnVGQVgKlrTQFAFVvGZo8ETe1jMT3FOy0YtqMKCIGO5noudsXssAeMGAACFC0Yp11UFTZmNBEQjotgJu6HCwnMLX42eyc+8DwCZh0ACk4V7hEor65CqtLX1Hlh/64LwdlGJQlIlaAsEPclKI7fZ2YllTVVOgPokKqEADwCNdn2XIBvWIkFchlWBRMZqEbfQ9GSb+x7Y/cRqUDVQV0E0dCqiIIINlKz+4Nlf4P6eRVAB4AMq4siMaNu4/chIlTjafMBMF0hNp2qsrle3VrZFiBg1kHHl5S4l4xt8WBvld9O36xzAs35y3ONmYZXRPR5Y/lJObFxhAFARZ6yaWB10YswqtyNp7/tQrz/szjzhpgWVOlZPPypdBC7/YMDNxaDvmuJRbUpjVG0QXF8ru3k9WPbAUwl8WMlrGxNRhJ+Smc9jVzP4Q511Ue/3k1/qEtqDehfJACga7Bxz9p/L++Bv3ah0TBfBrIRAAAAAElFTkSuQmCC", zr = "data:image/png;base64,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";
|
|
521
|
+
const Hr = { key: 0 }, Or = {
|
|
536
522
|
key: 0,
|
|
537
523
|
class: "absolute right-0 pr-4 top-5 cursor-pointer"
|
|
538
|
-
},
|
|
524
|
+
}, Dr = { class: "bg-white mt-6" }, Tr = { class: "text-gray-500 px-4 overflow-auto" }, qe = {
|
|
539
525
|
__name: "Modal",
|
|
540
526
|
props: {
|
|
541
527
|
isVisible: {
|
|
@@ -550,26 +536,26 @@ const Or = { key: 0 }, Lr = {
|
|
|
550
536
|
}
|
|
551
537
|
},
|
|
552
538
|
setup(t) {
|
|
553
|
-
return (e, o) => t.isVisible ? (v(),
|
|
554
|
-
|
|
555
|
-
default:
|
|
539
|
+
return (e, o) => t.isVisible ? (v(), h("main", Hr, [
|
|
540
|
+
I(Lt, { name: "modal-fade" }, {
|
|
541
|
+
default: Q(() => [
|
|
556
542
|
i("div", {
|
|
557
543
|
class: "z-50 fixed flex inset-0 justify-center items-center h-screen overflow-auto w-full bg-gray-800/80",
|
|
558
544
|
onClick: o[2] || (o[2] = (r) => e.$emit("close-modal"))
|
|
559
545
|
}, [
|
|
560
546
|
i("div", {
|
|
561
547
|
class: "modal relative px-6 py-5 rounded-md",
|
|
562
|
-
onClick: o[1] || (o[1] =
|
|
548
|
+
onClick: o[1] || (o[1] = oo(() => {
|
|
563
549
|
}, ["stop"]))
|
|
564
550
|
}, [
|
|
565
|
-
t.crossVisible ? (v(),
|
|
566
|
-
|
|
551
|
+
t.crossVisible ? (v(), h("div", Or, [
|
|
552
|
+
I(b(Dt), {
|
|
567
553
|
onClick: o[0] || (o[0] = (r) => e.$emit("Cancel")),
|
|
568
554
|
class: "w-6 h-6 fill-gray-800"
|
|
569
555
|
})
|
|
570
|
-
])) :
|
|
571
|
-
i("div",
|
|
572
|
-
i("div",
|
|
556
|
+
])) : C("", !0),
|
|
557
|
+
i("div", Dr, [
|
|
558
|
+
i("div", Tr, [
|
|
573
559
|
tt(e.$slots, "default")
|
|
574
560
|
])
|
|
575
561
|
])
|
|
@@ -578,21 +564,21 @@ const Or = { key: 0 }, Lr = {
|
|
|
578
564
|
]),
|
|
579
565
|
_: 3
|
|
580
566
|
})
|
|
581
|
-
])) :
|
|
567
|
+
])) : C("", !0);
|
|
582
568
|
}
|
|
583
|
-
},
|
|
569
|
+
}, Nr = { key: 0 }, jr = {
|
|
584
570
|
key: 1,
|
|
585
571
|
class: "bg-white rounded-full px-2 py-1 shadow-md flex items-center justify-end gap-2 mt-4 -mb-10 text-md font-light text-gray-800"
|
|
586
|
-
},
|
|
572
|
+
}, Qr = { class: "" }, Fr = /* @__PURE__ */ i("h3", { className: "text-xl font-medium mb-6 text-left text-blue-700" }, " Provide Additional Feedback ", -1), qr = { class: "flex justify-center mt-5" }, Zr = { class: "p" }, Vr = /* @__PURE__ */ i("h3", { className: "text-xl font-medium mb-6 text-left text-blue-700" }, " Provide Additional Feedback ", -1), Kr = /* @__PURE__ */ i("label", {
|
|
587
573
|
class: "mr-2 cursor-pointer",
|
|
588
574
|
for: "harmful"
|
|
589
|
-
}, "This is Harmful", -1),
|
|
575
|
+
}, "This is Harmful", -1), Xr = /* @__PURE__ */ i("br", null, null, -1), Ur = /* @__PURE__ */ i("label", {
|
|
590
576
|
class: "mr-2 cursor-pointer",
|
|
591
577
|
for: "incorrect"
|
|
592
|
-
}, "This is Incorrect", -1),
|
|
578
|
+
}, "This is Incorrect", -1), Br = /* @__PURE__ */ i("br", null, null, -1), Wr = /* @__PURE__ */ i("label", {
|
|
593
579
|
class: "mr-2 cursor-pointer",
|
|
594
580
|
for: "not-helpful"
|
|
595
|
-
}, "This is Not Helpful", -1),
|
|
581
|
+
}, "This is Not Helpful", -1), Jr = /* @__PURE__ */ i("br", null, null, -1), _r = { class: "flex justify-center mt-5" }, $r = /* @__PURE__ */ te({
|
|
596
582
|
__name: "FeedbackForms",
|
|
597
583
|
props: {
|
|
598
584
|
questionId: {
|
|
@@ -601,61 +587,61 @@ const Or = { key: 0 }, Lr = {
|
|
|
601
587
|
}
|
|
602
588
|
},
|
|
603
589
|
setup(t) {
|
|
604
|
-
const e = t, o =
|
|
605
|
-
var
|
|
606
|
-
|
|
590
|
+
const e = t, o = w(!1), r = w(!1), n = w(!1), s = Ie(), l = w(""), a = w([]), c = async (m) => {
|
|
591
|
+
var d, f;
|
|
592
|
+
m === "P" ? u() : A();
|
|
607
593
|
try {
|
|
608
|
-
const
|
|
594
|
+
const g = {
|
|
609
595
|
question_id: e.questionId,
|
|
610
|
-
rating:
|
|
596
|
+
rating: m,
|
|
611
597
|
tags: a.value,
|
|
612
598
|
content: l.value
|
|
613
|
-
}, p = await
|
|
614
|
-
console.log((
|
|
615
|
-
} catch (
|
|
616
|
-
if (console.error(
|
|
617
|
-
const p =
|
|
599
|
+
}, p = await ge("/submitFeedback", g);
|
|
600
|
+
console.log((d = p.data) == null ? void 0 : d.body), n.value = !0;
|
|
601
|
+
} catch (g) {
|
|
602
|
+
if (console.error(g), Z.isAxiosError(g)) {
|
|
603
|
+
const p = g;
|
|
618
604
|
s.setError(((f = p.response) == null ? void 0 : f.data).error);
|
|
619
605
|
} else
|
|
620
606
|
s.setError("There was an issue, please contact helpmate");
|
|
621
607
|
}
|
|
622
|
-
},
|
|
608
|
+
}, A = () => {
|
|
623
609
|
o.value = !o.value;
|
|
624
|
-
},
|
|
610
|
+
}, u = () => {
|
|
625
611
|
r.value = !r.value;
|
|
626
612
|
};
|
|
627
|
-
return (
|
|
628
|
-
n.value ? (v(),
|
|
629
|
-
|
|
630
|
-
onClick:
|
|
613
|
+
return (m, d) => (v(), h(T, null, [
|
|
614
|
+
n.value ? (v(), h("div", Nr)) : (v(), h("div", jr, [
|
|
615
|
+
I(b(go), {
|
|
616
|
+
onClick: d[0] || (d[0] = (f) => c("P")),
|
|
631
617
|
class: "w-6 h-6 fill-gray-500 hover:fill-gray-800 cursor-pointer"
|
|
632
618
|
}),
|
|
633
|
-
|
|
634
|
-
onClick:
|
|
619
|
+
I(b(bo), {
|
|
620
|
+
onClick: d[1] || (d[1] = (f) => c("N")),
|
|
635
621
|
class: "w-6 h-6 fill-gray-500 hover:fill-gray-800 cursor-pointer"
|
|
636
622
|
})
|
|
637
623
|
])),
|
|
638
|
-
|
|
624
|
+
I(qe, {
|
|
639
625
|
"is-visible": r.value,
|
|
640
626
|
"cross-visible": !0,
|
|
641
|
-
onCancel:
|
|
627
|
+
onCancel: u
|
|
642
628
|
}, {
|
|
643
|
-
default:
|
|
644
|
-
i("div",
|
|
645
|
-
|
|
629
|
+
default: Q(() => [
|
|
630
|
+
i("div", Qr, [
|
|
631
|
+
Fr,
|
|
646
632
|
fe(i("textarea", {
|
|
647
633
|
name: "feedback",
|
|
648
634
|
id: "feedback",
|
|
649
635
|
class: "w-full p-2 border-[1px] border-gray-400 rounded-md",
|
|
650
636
|
rows: "3",
|
|
651
|
-
"onUpdate:modelValue":
|
|
637
|
+
"onUpdate:modelValue": d[2] || (d[2] = (f) => l.value = f),
|
|
652
638
|
placeholder: "Please provide your feedback here"
|
|
653
639
|
}, null, 512), [
|
|
654
640
|
[et, l.value]
|
|
655
641
|
]),
|
|
656
|
-
i("div",
|
|
642
|
+
i("div", qr, [
|
|
657
643
|
i("button", {
|
|
658
|
-
onClick:
|
|
644
|
+
onClick: d[3] || (d[3] = (f) => c("P")),
|
|
659
645
|
className: "cursor-pointer px-4 py-2 text-white shadow-md bg-genpact-blue-box focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75"
|
|
660
646
|
}, " Submit ")
|
|
661
647
|
])
|
|
@@ -663,26 +649,26 @@ const Or = { key: 0 }, Lr = {
|
|
|
663
649
|
]),
|
|
664
650
|
_: 1
|
|
665
651
|
}, 8, ["is-visible"]),
|
|
666
|
-
|
|
652
|
+
I(qe, {
|
|
667
653
|
"is-visible": o.value,
|
|
668
654
|
"cross-visible": !0,
|
|
669
|
-
onCancel:
|
|
655
|
+
onCancel: A
|
|
670
656
|
}, {
|
|
671
|
-
default:
|
|
672
|
-
i("div",
|
|
657
|
+
default: Q(() => [
|
|
658
|
+
i("div", Zr, [
|
|
673
659
|
Vr,
|
|
674
660
|
fe(i("textarea", {
|
|
675
661
|
name: "feedback",
|
|
676
662
|
id: "feedback",
|
|
677
663
|
class: "w-full p-2 border-[1px] border-gray-400 rounded-md",
|
|
678
664
|
rows: "3",
|
|
679
|
-
"onUpdate:modelValue":
|
|
665
|
+
"onUpdate:modelValue": d[4] || (d[4] = (f) => l.value = f),
|
|
680
666
|
placeholder: "Please provide your feedback here"
|
|
681
667
|
}, null, 512), [
|
|
682
668
|
[et, l.value]
|
|
683
669
|
]),
|
|
684
670
|
fe(i("input", {
|
|
685
|
-
"onUpdate:modelValue":
|
|
671
|
+
"onUpdate:modelValue": d[5] || (d[5] = (f) => a.value = f),
|
|
686
672
|
type: "checkbox",
|
|
687
673
|
name: "harmful",
|
|
688
674
|
value: "harmful",
|
|
@@ -691,10 +677,10 @@ const Or = { key: 0 }, Lr = {
|
|
|
691
677
|
}, null, 512), [
|
|
692
678
|
[Be, a.value]
|
|
693
679
|
]),
|
|
694
|
-
Zr,
|
|
695
680
|
Kr,
|
|
681
|
+
Xr,
|
|
696
682
|
fe(i("input", {
|
|
697
|
-
"onUpdate:modelValue":
|
|
683
|
+
"onUpdate:modelValue": d[6] || (d[6] = (f) => a.value = f),
|
|
698
684
|
type: "checkbox",
|
|
699
685
|
name: "incorrect",
|
|
700
686
|
value: "incorrect",
|
|
@@ -703,10 +689,10 @@ const Or = { key: 0 }, Lr = {
|
|
|
703
689
|
}, null, 512), [
|
|
704
690
|
[Be, a.value]
|
|
705
691
|
]),
|
|
706
|
-
|
|
707
|
-
|
|
692
|
+
Ur,
|
|
693
|
+
Br,
|
|
708
694
|
fe(i("input", {
|
|
709
|
-
"onUpdate:modelValue":
|
|
695
|
+
"onUpdate:modelValue": d[7] || (d[7] = (f) => a.value = f),
|
|
710
696
|
type: "checkbox",
|
|
711
697
|
name: "not-helpful",
|
|
712
698
|
value: "not-helpful",
|
|
@@ -715,11 +701,11 @@ const Or = { key: 0 }, Lr = {
|
|
|
715
701
|
}, null, 512), [
|
|
716
702
|
[Be, a.value]
|
|
717
703
|
]),
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
i("div",
|
|
704
|
+
Wr,
|
|
705
|
+
Jr,
|
|
706
|
+
i("div", _r, [
|
|
721
707
|
i("button", {
|
|
722
|
-
onClick:
|
|
708
|
+
onClick: d[8] || (d[8] = (f) => c("N")),
|
|
723
709
|
className: "cursor-pointer px-4 py-2 text-white shadow-md bg-genpact-blue-box focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75"
|
|
724
710
|
}, " Submit ")
|
|
725
711
|
])
|
|
@@ -729,16 +715,30 @@ const Or = { key: 0 }, Lr = {
|
|
|
729
715
|
}, 8, ["is-visible"])
|
|
730
716
|
], 64));
|
|
731
717
|
}
|
|
732
|
-
}),
|
|
718
|
+
}), Qt = (t) => (Mt("data-v-c9915a62"), t = t(), zt(), t), en = { class: "flex justify-start items-end py-3" }, tn = { class: "line-break md:text-[15px] text-sm max-w-[80%] text-gray-800 bg-white rounded-md p-3" }, on = ["innerHTML"], rn = {
|
|
733
719
|
key: 0,
|
|
734
720
|
class: "flex justify-end my-2"
|
|
735
|
-
},
|
|
721
|
+
}, nn = { key: 1 }, sn = {
|
|
736
722
|
key: 0,
|
|
737
723
|
class: "font-medium mt-5 mb-2"
|
|
738
|
-
},
|
|
739
|
-
key:
|
|
724
|
+
}, an = {
|
|
725
|
+
key: 1,
|
|
726
|
+
class: "flex flex-wrap gap-2 items-center mt-5"
|
|
727
|
+
}, ln = ["href"], cn = /* @__PURE__ */ Qt(() => /* @__PURE__ */ i("img", {
|
|
728
|
+
src: Mr,
|
|
729
|
+
alt: "LinkedIn Icon",
|
|
730
|
+
class: "w-4 h-4 fil-current"
|
|
731
|
+
}, null, -1)), dn = { key: 2 }, un = {
|
|
732
|
+
key: 0,
|
|
733
|
+
class: "flex flex-wrap gap-2 items-center mt-5"
|
|
734
|
+
}, pn = ["href"], fn = /* @__PURE__ */ Qt(() => /* @__PURE__ */ i("img", {
|
|
735
|
+
src: zr,
|
|
736
|
+
alt: "LinkedIn Icon",
|
|
737
|
+
class: "w-4 h-4 fil-current"
|
|
738
|
+
}, null, -1)), vn = {
|
|
739
|
+
key: 3,
|
|
740
740
|
class: "w-full pb-3 flex justify-end"
|
|
741
|
-
},
|
|
741
|
+
}, hn = /* @__PURE__ */ te({
|
|
742
742
|
__name: "AiResponse",
|
|
743
743
|
props: {
|
|
744
744
|
question: {
|
|
@@ -763,66 +763,97 @@ const Or = { key: 0 }, Lr = {
|
|
|
763
763
|
}
|
|
764
764
|
},
|
|
765
765
|
setup(t) {
|
|
766
|
-
const e = t, o =
|
|
766
|
+
const e = t, o = w([]), r = w([]), n = w(!1), s = w(), l = w(!1), a = Ie(), c = le();
|
|
767
767
|
console.log("this is issue", o.value.length);
|
|
768
|
-
const
|
|
769
|
-
var
|
|
768
|
+
const A = async () => {
|
|
769
|
+
var m, d, f;
|
|
770
770
|
try {
|
|
771
771
|
if (!e.showFeedback)
|
|
772
772
|
return;
|
|
773
|
-
const
|
|
773
|
+
const g = {
|
|
774
774
|
question: e.question,
|
|
775
|
-
skill_id:
|
|
776
|
-
past_messages:
|
|
777
|
-
},
|
|
778
|
-
|
|
779
|
-
} catch (
|
|
780
|
-
if (console.error(
|
|
781
|
-
const
|
|
782
|
-
console.error((d =
|
|
775
|
+
skill_id: c.skill_id,
|
|
776
|
+
past_messages: c.past_messages
|
|
777
|
+
}, y = ((m = (await ge("/QuestionToRelevantLinks", g)).data) == null ? void 0 : m.body) || [];
|
|
778
|
+
s.value = y.length, console.log("c2 global length==>", s.value), y.length && (n.value = !0, o.value = y);
|
|
779
|
+
} catch (g) {
|
|
780
|
+
if (console.error(g), Z.isAxiosError(g)) {
|
|
781
|
+
const p = g;
|
|
782
|
+
console.error((d = p.response) == null ? void 0 : d.data), a.setError(((f = p.response) == null ? void 0 : f.data).message);
|
|
783
783
|
} else
|
|
784
|
-
|
|
784
|
+
a.setError("There was an issue, please contact helpmate");
|
|
785
|
+
}
|
|
786
|
+
}, u = async () => {
|
|
787
|
+
var m, d, f;
|
|
788
|
+
try {
|
|
789
|
+
if (!e.showFeedback)
|
|
790
|
+
return;
|
|
791
|
+
const g = {
|
|
792
|
+
question: e.question,
|
|
793
|
+
skill_id: c.skill_id,
|
|
794
|
+
past_messages: c.past_messages
|
|
795
|
+
}, y = ((m = (await ge("/QuestionToLilLinks", g)).data) == null ? void 0 : m.body) || [];
|
|
796
|
+
console.log("c2 global length in c3 call==>", s.value), y.length && s.value < 3 && (l.value = !0, r.value = y.slice(0, 3 - s.value));
|
|
797
|
+
} catch (g) {
|
|
798
|
+
if (console.error(g), Z.isAxiosError(g)) {
|
|
799
|
+
const p = g;
|
|
800
|
+
console.error((d = p.response) == null ? void 0 : d.data), a.setError(((f = p.response) == null ? void 0 : f.data).message);
|
|
801
|
+
} else
|
|
802
|
+
a.setError("There was an issue, please contact helpmate");
|
|
785
803
|
}
|
|
786
804
|
};
|
|
787
|
-
return
|
|
788
|
-
|
|
789
|
-
}), (
|
|
790
|
-
i("div",
|
|
791
|
-
i("span", { innerHTML: t.answer }, null, 8,
|
|
792
|
-
t.showSources ? (v(),
|
|
793
|
-
t.showFeedback ? (v(),
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
(v(!0),
|
|
797
|
-
href:
|
|
805
|
+
return ro(async () => {
|
|
806
|
+
await A(), u();
|
|
807
|
+
}), (m, d) => (v(), h("div", en, [
|
|
808
|
+
i("div", tn, [
|
|
809
|
+
i("span", { innerHTML: t.answer }, null, 8, on),
|
|
810
|
+
t.showSources ? (v(), h("div", rn, P(t.showSources), 1)) : C("", !0),
|
|
811
|
+
t.showFeedback ? (v(), h("div", nn, [
|
|
812
|
+
n.value || l.value ? (v(), h("div", sn, "Recommended Learning:")) : C("", !0),
|
|
813
|
+
n.value ? (v(), h("div", an, [
|
|
814
|
+
(v(!0), h(T, null, F(o.value, (f) => (v(), h("a", {
|
|
815
|
+
href: f.card_deeplink_url,
|
|
798
816
|
target: "_blank",
|
|
799
|
-
key:
|
|
817
|
+
key: f.id,
|
|
800
818
|
class: "bg-blue-100 text-genpact-blue-box rounded-xl px-2 py-1 cursor-pointer flex gap-2 items-center"
|
|
801
819
|
}, [
|
|
802
|
-
|
|
803
|
-
i("div", null, P(
|
|
804
|
-
], 8,
|
|
805
|
-
])
|
|
806
|
-
])) :
|
|
807
|
-
t.showFeedback ? (v(),
|
|
808
|
-
|
|
809
|
-
|
|
820
|
+
cn,
|
|
821
|
+
i("div", null, P(f.Content_Title), 1)
|
|
822
|
+
], 8, ln))), 128))
|
|
823
|
+
])) : C("", !0)
|
|
824
|
+
])) : C("", !0),
|
|
825
|
+
t.showFeedback ? (v(), h("div", dn, [
|
|
826
|
+
l.value ? (v(), h("div", un, [
|
|
827
|
+
(v(!0), h(T, null, F(r.value, (f) => (v(), h("a", {
|
|
828
|
+
href: f.card_deeplink_url,
|
|
829
|
+
target: "_blank",
|
|
830
|
+
key: f.id,
|
|
831
|
+
class: "bg-blue-100 text-genpact-blue-box rounded-xl px-2 py-1 cursor-pointer flex gap-2 items-center"
|
|
832
|
+
}, [
|
|
833
|
+
fn,
|
|
834
|
+
i("div", null, P(f.Content_Title), 1)
|
|
835
|
+
], 8, pn))), 128))
|
|
836
|
+
])) : C("", !0)
|
|
837
|
+
])) : C("", !0),
|
|
838
|
+
t.showFeedback ? (v(), h("div", vn, [
|
|
839
|
+
I($r, { "question-id": t.questionId }, null, 8, ["question-id"])
|
|
840
|
+
])) : C("", !0)
|
|
810
841
|
])
|
|
811
842
|
]));
|
|
812
843
|
}
|
|
813
844
|
});
|
|
814
|
-
const
|
|
845
|
+
const An = /* @__PURE__ */ st(hn, [["__scopeId", "data-v-c9915a62"]]), mn = { class: "flex justify-start items-end" }, bn = { class: "max-w-[80%] space-y-2" }, gn = { class: "w-fit text-gray-800 md:text-xl text-lg font-bold bg-white rounded-md p-3" }, yn = /* @__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), xn = {
|
|
815
846
|
__name: "Greetings",
|
|
816
847
|
setup(t) {
|
|
817
848
|
const e = le();
|
|
818
|
-
return (o, r) => (v(),
|
|
819
|
-
i("div",
|
|
820
|
-
i("div",
|
|
821
|
-
|
|
849
|
+
return (o, r) => (v(), h("div", mn, [
|
|
850
|
+
i("div", bn, [
|
|
851
|
+
i("div", gn, " Hello " + P(b(e).learnerName || "Learner") + "! 👋 ", 1),
|
|
852
|
+
yn
|
|
822
853
|
])
|
|
823
854
|
]));
|
|
824
855
|
}
|
|
825
|
-
},
|
|
856
|
+
}, wn = { class: "flex justify-end items-end py-3" }, In = { class: "max-w-[80%]" }, kn = { class: "w-fit md:text-[15px] text-sm text-white bg-genpact-blue-box rounded-md p-3" }, En = /* @__PURE__ */ te({
|
|
826
857
|
__name: "LearnerResponse",
|
|
827
858
|
props: {
|
|
828
859
|
question: {
|
|
@@ -835,9 +866,9 @@ const cn = /* @__PURE__ */ st(ln, [["__scopeId", "data-v-cef8a384"]]), dn = { cl
|
|
|
835
866
|
}
|
|
836
867
|
},
|
|
837
868
|
setup(t) {
|
|
838
|
-
return (e, o) => (v(),
|
|
839
|
-
i("div",
|
|
840
|
-
i("div",
|
|
869
|
+
return (e, o) => (v(), h("div", wn, [
|
|
870
|
+
i("div", In, [
|
|
871
|
+
i("div", kn, P(t.question), 1)
|
|
841
872
|
])
|
|
842
873
|
]));
|
|
843
874
|
}
|
|
@@ -845,49 +876,49 @@ const cn = /* @__PURE__ */ st(ln, [["__scopeId", "data-v-cef8a384"]]), dn = { cl
|
|
|
845
876
|
function ot(t, e, o) {
|
|
846
877
|
var r, n, s, l, a;
|
|
847
878
|
e == null && (e = 100);
|
|
848
|
-
function
|
|
849
|
-
var
|
|
850
|
-
|
|
879
|
+
function c() {
|
|
880
|
+
var u = Date.now() - l;
|
|
881
|
+
u < e && u >= 0 ? r = setTimeout(c, e - u) : (r = null, o || (a = t.apply(s, n), s = n = null));
|
|
851
882
|
}
|
|
852
|
-
var
|
|
883
|
+
var A = function() {
|
|
853
884
|
s = this, n = arguments, l = Date.now();
|
|
854
|
-
var
|
|
855
|
-
return r || (r = setTimeout(
|
|
885
|
+
var u = o && !r;
|
|
886
|
+
return r || (r = setTimeout(c, e)), u && (a = t.apply(s, n), s = n = null), a;
|
|
856
887
|
};
|
|
857
|
-
return
|
|
888
|
+
return A.clear = function() {
|
|
858
889
|
r && (clearTimeout(r), r = null);
|
|
859
|
-
},
|
|
890
|
+
}, A.flush = function() {
|
|
860
891
|
r && (a = t.apply(s, n), s = n = null, clearTimeout(r), r = null);
|
|
861
|
-
},
|
|
892
|
+
}, A;
|
|
862
893
|
}
|
|
863
894
|
ot.debounce = ot;
|
|
864
895
|
var _e = ot;
|
|
865
|
-
function
|
|
866
|
-
|
|
896
|
+
function Cn(t, e, o) {
|
|
897
|
+
po(t) ? be(t, (r, n) => {
|
|
867
898
|
n == null || n.removeEventListener(e, o), r == null || r.addEventListener(e, o);
|
|
868
899
|
}) : Se(() => {
|
|
869
900
|
t.addEventListener(e, o);
|
|
870
901
|
}), nt(() => {
|
|
871
902
|
var r;
|
|
872
|
-
(r =
|
|
903
|
+
(r = b(t)) === null || r === void 0 || r.removeEventListener(e, o);
|
|
873
904
|
});
|
|
874
905
|
}
|
|
875
|
-
function
|
|
906
|
+
function Rn(t, e) {
|
|
876
907
|
const o = "pointerdown";
|
|
877
|
-
return typeof window > "u" || !window ? void 0 :
|
|
878
|
-
const s =
|
|
908
|
+
return typeof window > "u" || !window ? void 0 : Cn(window, o, (n) => {
|
|
909
|
+
const s = b(t);
|
|
879
910
|
s && (s === n.target || n.composedPath().includes(s) || e(n));
|
|
880
911
|
});
|
|
881
912
|
}
|
|
882
|
-
function
|
|
913
|
+
function Yn(t, e, o) {
|
|
883
914
|
let r = null;
|
|
884
|
-
const n =
|
|
915
|
+
const n = w(!1);
|
|
885
916
|
Se(() => {
|
|
886
917
|
(t.content !== void 0 || o.value) && (n.value = !0), r = new MutationObserver(s), r.observe(e.value, {
|
|
887
918
|
childList: !0,
|
|
888
919
|
subtree: !0
|
|
889
920
|
});
|
|
890
|
-
}), nt(() => r.disconnect()),
|
|
921
|
+
}), nt(() => r.disconnect()), be(o, (l) => {
|
|
891
922
|
l ? n.value = !0 : n.value = !1;
|
|
892
923
|
});
|
|
893
924
|
const s = () => {
|
|
@@ -897,7 +928,7 @@ function wn(t, e, o) {
|
|
|
897
928
|
hasContent: n
|
|
898
929
|
};
|
|
899
930
|
}
|
|
900
|
-
function
|
|
931
|
+
function ye(t, e) {
|
|
901
932
|
var o = t.getBoundingClientRect(), r = 1, n = 1;
|
|
902
933
|
return {
|
|
903
934
|
width: o.width / r,
|
|
@@ -926,40 +957,40 @@ function it(t) {
|
|
|
926
957
|
scrollTop: r
|
|
927
958
|
};
|
|
928
959
|
}
|
|
929
|
-
function
|
|
960
|
+
function Re(t) {
|
|
930
961
|
var e = W(t).Element;
|
|
931
962
|
return t instanceof e || t instanceof Element;
|
|
932
963
|
}
|
|
933
|
-
function
|
|
964
|
+
function V(t) {
|
|
934
965
|
var e = W(t).HTMLElement;
|
|
935
966
|
return t instanceof e || t instanceof HTMLElement;
|
|
936
967
|
}
|
|
937
|
-
function
|
|
968
|
+
function Ft(t) {
|
|
938
969
|
if (typeof ShadowRoot > "u")
|
|
939
970
|
return !1;
|
|
940
971
|
var e = W(t).ShadowRoot;
|
|
941
972
|
return t instanceof e || t instanceof ShadowRoot;
|
|
942
973
|
}
|
|
943
|
-
function
|
|
974
|
+
function Gn(t) {
|
|
944
975
|
return {
|
|
945
976
|
scrollLeft: t.scrollLeft,
|
|
946
977
|
scrollTop: t.scrollTop
|
|
947
978
|
};
|
|
948
979
|
}
|
|
949
|
-
function
|
|
950
|
-
return t === W(t) || !
|
|
980
|
+
function Sn(t) {
|
|
981
|
+
return t === W(t) || !V(t) ? it(t) : Gn(t);
|
|
951
982
|
}
|
|
952
983
|
function ee(t) {
|
|
953
984
|
return t ? (t.nodeName || "").toLowerCase() : null;
|
|
954
985
|
}
|
|
955
986
|
function ue(t) {
|
|
956
|
-
return ((
|
|
987
|
+
return ((Re(t) ? t.ownerDocument : (
|
|
957
988
|
// $FlowFixMe[prop-missing]
|
|
958
989
|
t.document
|
|
959
990
|
)) || window.document).documentElement;
|
|
960
991
|
}
|
|
961
992
|
function lt(t) {
|
|
962
|
-
return
|
|
993
|
+
return ye(ue(t)).left + it(t).scrollLeft;
|
|
963
994
|
}
|
|
964
995
|
function ie(t) {
|
|
965
996
|
return W(t).getComputedStyle(t);
|
|
@@ -968,15 +999,15 @@ function ct(t) {
|
|
|
968
999
|
var e = ie(t), o = e.overflow, r = e.overflowX, n = e.overflowY;
|
|
969
1000
|
return /auto|scroll|overlay|hidden/.test(o + n + r);
|
|
970
1001
|
}
|
|
971
|
-
function
|
|
1002
|
+
function Pn(t) {
|
|
972
1003
|
var e = t.getBoundingClientRect(), o = e.width / t.offsetWidth || 1, r = e.height / t.offsetHeight || 1;
|
|
973
1004
|
return o !== 1 || r !== 1;
|
|
974
1005
|
}
|
|
975
|
-
function
|
|
1006
|
+
function Ln(t, e, o) {
|
|
976
1007
|
o === void 0 && (o = !1);
|
|
977
|
-
var r =
|
|
978
|
-
|
|
979
|
-
var n = ue(e), s =
|
|
1008
|
+
var r = V(e);
|
|
1009
|
+
V(e) && Pn(e);
|
|
1010
|
+
var n = ue(e), s = ye(t), l = {
|
|
980
1011
|
scrollLeft: 0,
|
|
981
1012
|
scrollTop: 0
|
|
982
1013
|
}, a = {
|
|
@@ -984,7 +1015,7 @@ function Rn(t, e, o) {
|
|
|
984
1015
|
y: 0
|
|
985
1016
|
};
|
|
986
1017
|
return (r || !r && !o) && ((ee(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
987
|
-
ct(n)) && (l =
|
|
1018
|
+
ct(n)) && (l = Sn(e)), V(e) ? (a = ye(e), a.x += e.clientLeft, a.y += e.clientTop) : n && (a.x = lt(n))), {
|
|
988
1019
|
x: s.left + l.scrollLeft - a.x,
|
|
989
1020
|
y: s.top + l.scrollTop - a.y,
|
|
990
1021
|
width: s.width,
|
|
@@ -992,7 +1023,7 @@ function Rn(t, e, o) {
|
|
|
992
1023
|
};
|
|
993
1024
|
}
|
|
994
1025
|
function dt(t) {
|
|
995
|
-
var e =
|
|
1026
|
+
var e = ye(t), o = t.offsetWidth, r = t.offsetHeight;
|
|
996
1027
|
return Math.abs(e.width - o) <= 1 && (o = e.width), Math.abs(e.height - r) <= 1 && (r = e.height), {
|
|
997
1028
|
x: t.offsetLeft,
|
|
998
1029
|
y: t.offsetTop,
|
|
@@ -1000,45 +1031,45 @@ function dt(t) {
|
|
|
1000
1031
|
height: r
|
|
1001
1032
|
};
|
|
1002
1033
|
}
|
|
1003
|
-
function
|
|
1034
|
+
function Ke(t) {
|
|
1004
1035
|
return ee(t) === "html" ? t : (
|
|
1005
1036
|
// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
1006
1037
|
// $FlowFixMe[incompatible-return]
|
|
1007
1038
|
// $FlowFixMe[prop-missing]
|
|
1008
1039
|
t.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
1009
1040
|
t.parentNode || // DOM Element detected
|
|
1010
|
-
(
|
|
1041
|
+
(Ft(t) ? t.host : null) || // ShadowRoot detected
|
|
1011
1042
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
1012
1043
|
ue(t)
|
|
1013
1044
|
);
|
|
1014
1045
|
}
|
|
1015
|
-
function
|
|
1016
|
-
return ["html", "body", "#document"].indexOf(ee(t)) >= 0 ? t.ownerDocument.body :
|
|
1046
|
+
function qt(t) {
|
|
1047
|
+
return ["html", "body", "#document"].indexOf(ee(t)) >= 0 ? t.ownerDocument.body : V(t) && ct(t) ? t : qt(Ke(t));
|
|
1017
1048
|
}
|
|
1018
|
-
function
|
|
1049
|
+
function Ce(t, e) {
|
|
1019
1050
|
var o;
|
|
1020
1051
|
e === void 0 && (e = []);
|
|
1021
|
-
var r =
|
|
1052
|
+
var r = qt(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
1053
|
return n ? a : (
|
|
1023
1054
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
1024
|
-
a.concat(
|
|
1055
|
+
a.concat(Ce(Ke(l)))
|
|
1025
1056
|
);
|
|
1026
1057
|
}
|
|
1027
|
-
function
|
|
1058
|
+
function Mn(t) {
|
|
1028
1059
|
return ["table", "td", "th"].indexOf(ee(t)) >= 0;
|
|
1029
1060
|
}
|
|
1030
|
-
function
|
|
1031
|
-
return !
|
|
1061
|
+
function kt(t) {
|
|
1062
|
+
return !V(t) || // https://github.com/popperjs/popper-core/issues/837
|
|
1032
1063
|
ie(t).position === "fixed" ? null : t.offsetParent;
|
|
1033
1064
|
}
|
|
1034
|
-
function
|
|
1065
|
+
function zn(t) {
|
|
1035
1066
|
var e = navigator.userAgent.toLowerCase().indexOf("firefox") !== -1, o = navigator.userAgent.indexOf("Trident") !== -1;
|
|
1036
|
-
if (o &&
|
|
1067
|
+
if (o && V(t)) {
|
|
1037
1068
|
var r = ie(t);
|
|
1038
1069
|
if (r.position === "fixed")
|
|
1039
1070
|
return null;
|
|
1040
1071
|
}
|
|
1041
|
-
for (var n =
|
|
1072
|
+
for (var n = Ke(t); V(n) && ["html", "body"].indexOf(ee(n)) < 0; ) {
|
|
1042
1073
|
var s = ie(n);
|
|
1043
1074
|
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
1075
|
return n;
|
|
@@ -1047,16 +1078,16 @@ function Gn(t) {
|
|
|
1047
1078
|
return null;
|
|
1048
1079
|
}
|
|
1049
1080
|
function Pe(t) {
|
|
1050
|
-
for (var e = W(t), o =
|
|
1051
|
-
o =
|
|
1052
|
-
return o && (ee(o) === "html" || ee(o) === "body" && ie(o).position === "static") ? e : o ||
|
|
1053
|
-
}
|
|
1054
|
-
var K = "top", U = "bottom", B = "right",
|
|
1055
|
-
return t.concat([e + "-" + xe, e + "-" +
|
|
1056
|
-
}, []),
|
|
1057
|
-
return t.concat([e, e + "-" + xe, e + "-" +
|
|
1058
|
-
}, []),
|
|
1059
|
-
function
|
|
1081
|
+
for (var e = W(t), o = kt(t); o && Mn(o) && ie(o).position === "static"; )
|
|
1082
|
+
o = kt(o);
|
|
1083
|
+
return o && (ee(o) === "html" || ee(o) === "body" && ie(o).position === "static") ? e : o || zn(t) || e;
|
|
1084
|
+
}
|
|
1085
|
+
var K = "top", U = "bottom", B = "right", X = "left", ut = "auto", Le = [K, U, B, X], xe = "start", Ye = "end", Hn = "clippingParents", Zt = "viewport", Ee = "popper", On = "reference", Et = /* @__PURE__ */ Le.reduce(function(t, e) {
|
|
1086
|
+
return t.concat([e + "-" + xe, e + "-" + Ye]);
|
|
1087
|
+
}, []), Vt = /* @__PURE__ */ [].concat(Le, [ut]).reduce(function(t, e) {
|
|
1088
|
+
return t.concat([e, e + "-" + xe, e + "-" + Ye]);
|
|
1089
|
+
}, []), Dn = "beforeRead", Tn = "read", Nn = "afterRead", jn = "beforeMain", Qn = "main", Fn = "afterMain", qn = "beforeWrite", Zn = "write", Vn = "afterWrite", Kn = [Dn, Tn, Nn, jn, Qn, Fn, qn, Zn, Vn];
|
|
1090
|
+
function Xn(t) {
|
|
1060
1091
|
var e = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Set(), r = [];
|
|
1061
1092
|
t.forEach(function(s) {
|
|
1062
1093
|
e.set(s.name, s);
|
|
@@ -1066,8 +1097,8 @@ function Tn(t) {
|
|
|
1066
1097
|
var l = [].concat(s.requires || [], s.requiresIfExists || []);
|
|
1067
1098
|
l.forEach(function(a) {
|
|
1068
1099
|
if (!o.has(a)) {
|
|
1069
|
-
var
|
|
1070
|
-
|
|
1100
|
+
var c = e.get(a);
|
|
1101
|
+
c && n(c);
|
|
1071
1102
|
}
|
|
1072
1103
|
}), r.push(s);
|
|
1073
1104
|
}
|
|
@@ -1075,15 +1106,15 @@ function Tn(t) {
|
|
|
1075
1106
|
o.has(s.name) || n(s);
|
|
1076
1107
|
}), r;
|
|
1077
1108
|
}
|
|
1078
|
-
function
|
|
1079
|
-
var e =
|
|
1080
|
-
return
|
|
1109
|
+
function Un(t) {
|
|
1110
|
+
var e = Xn(t);
|
|
1111
|
+
return Kn.reduce(function(o, r) {
|
|
1081
1112
|
return o.concat(e.filter(function(n) {
|
|
1082
1113
|
return n.phase === r;
|
|
1083
1114
|
}));
|
|
1084
1115
|
}, []);
|
|
1085
1116
|
}
|
|
1086
|
-
function
|
|
1117
|
+
function Bn(t) {
|
|
1087
1118
|
var e;
|
|
1088
1119
|
return function() {
|
|
1089
1120
|
return e || (e = new Promise(function(o) {
|
|
@@ -1096,7 +1127,7 @@ function qn(t) {
|
|
|
1096
1127
|
function $(t) {
|
|
1097
1128
|
return t.split("-")[0];
|
|
1098
1129
|
}
|
|
1099
|
-
function
|
|
1130
|
+
function Wn(t) {
|
|
1100
1131
|
var e = t.reduce(function(o, r) {
|
|
1101
1132
|
var n = o[r.name];
|
|
1102
1133
|
return o[r.name] = n ? Object.assign({}, n, r, {
|
|
@@ -1108,7 +1139,7 @@ function Vn(t) {
|
|
|
1108
1139
|
return e[o];
|
|
1109
1140
|
});
|
|
1110
1141
|
}
|
|
1111
|
-
function
|
|
1142
|
+
function Jn(t) {
|
|
1112
1143
|
var e = W(t), o = ue(t), r = e.visualViewport, n = o.clientWidth, s = o.clientHeight, l = 0, a = 0;
|
|
1113
1144
|
return r && (n = r.width, s = r.height, /^((?!chrome|android).)*safari/i.test(navigator.userAgent) || (l = r.offsetLeft, a = r.offsetTop)), {
|
|
1114
1145
|
width: n,
|
|
@@ -1117,21 +1148,21 @@ function Zn(t) {
|
|
|
1117
1148
|
y: a
|
|
1118
1149
|
};
|
|
1119
1150
|
}
|
|
1120
|
-
var de = Math.max,
|
|
1121
|
-
function
|
|
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),
|
|
1151
|
+
var de = Math.max, Ge = Math.min, De = Math.round;
|
|
1152
|
+
function _n(t) {
|
|
1153
|
+
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), c = -r.scrollTop;
|
|
1123
1154
|
return ie(n || o).direction === "rtl" && (a += de(o.clientWidth, n ? n.clientWidth : 0) - s), {
|
|
1124
1155
|
width: s,
|
|
1125
1156
|
height: l,
|
|
1126
1157
|
x: a,
|
|
1127
|
-
y:
|
|
1158
|
+
y: c
|
|
1128
1159
|
};
|
|
1129
1160
|
}
|
|
1130
|
-
function
|
|
1161
|
+
function Kt(t, e) {
|
|
1131
1162
|
var o = e.getRootNode && e.getRootNode();
|
|
1132
1163
|
if (t.contains(e))
|
|
1133
1164
|
return !0;
|
|
1134
|
-
if (o &&
|
|
1165
|
+
if (o && Ft(o)) {
|
|
1135
1166
|
var r = e;
|
|
1136
1167
|
do {
|
|
1137
1168
|
if (r && t.isSameNode(r))
|
|
@@ -1149,24 +1180,24 @@ function rt(t) {
|
|
|
1149
1180
|
bottom: t.y + t.height
|
|
1150
1181
|
});
|
|
1151
1182
|
}
|
|
1152
|
-
function
|
|
1153
|
-
var e =
|
|
1183
|
+
function $n(t) {
|
|
1184
|
+
var e = ye(t);
|
|
1154
1185
|
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
1186
|
}
|
|
1156
|
-
function
|
|
1157
|
-
return e ===
|
|
1187
|
+
function Ct(t, e) {
|
|
1188
|
+
return e === Zt ? rt(Jn(t)) : V(e) ? $n(e) : rt(_n(ue(t)));
|
|
1158
1189
|
}
|
|
1159
|
-
function
|
|
1160
|
-
var e =
|
|
1161
|
-
return
|
|
1162
|
-
return
|
|
1190
|
+
function es(t) {
|
|
1191
|
+
var e = Ce(Ke(t)), o = ["absolute", "fixed"].indexOf(ie(t).position) >= 0, r = o && V(t) ? Pe(t) : t;
|
|
1192
|
+
return Re(r) ? e.filter(function(n) {
|
|
1193
|
+
return Re(n) && Kt(n, r) && ee(n) !== "body";
|
|
1163
1194
|
}) : [];
|
|
1164
1195
|
}
|
|
1165
|
-
function
|
|
1166
|
-
var r = e === "clippingParents" ?
|
|
1167
|
-
var
|
|
1168
|
-
return a.top = de(
|
|
1169
|
-
},
|
|
1196
|
+
function ts(t, e, o) {
|
|
1197
|
+
var r = e === "clippingParents" ? es(t) : [].concat(e), n = [].concat(r, [o]), s = n[0], l = n.reduce(function(a, c) {
|
|
1198
|
+
var A = Ct(t, c);
|
|
1199
|
+
return a.top = de(A.top, a.top), a.right = Ge(A.right, a.right), a.bottom = Ge(A.bottom, a.bottom), a.left = de(A.left, a.left), a;
|
|
1200
|
+
}, Ct(t, s));
|
|
1170
1201
|
return l.width = l.right - l.left, l.height = l.bottom - l.top, l.x = l.left, l.y = l.top, l;
|
|
1171
1202
|
}
|
|
1172
1203
|
function we(t) {
|
|
@@ -1175,54 +1206,54 @@ function we(t) {
|
|
|
1175
1206
|
function pt(t) {
|
|
1176
1207
|
return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
|
|
1177
1208
|
}
|
|
1178
|
-
function
|
|
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,
|
|
1209
|
+
function Xt(t) {
|
|
1210
|
+
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, c;
|
|
1180
1211
|
switch (n) {
|
|
1181
1212
|
case K:
|
|
1182
|
-
|
|
1213
|
+
c = {
|
|
1183
1214
|
x: l,
|
|
1184
1215
|
y: e.y - o.height
|
|
1185
1216
|
};
|
|
1186
1217
|
break;
|
|
1187
1218
|
case U:
|
|
1188
|
-
|
|
1219
|
+
c = {
|
|
1189
1220
|
x: l,
|
|
1190
1221
|
y: e.y + e.height
|
|
1191
1222
|
};
|
|
1192
1223
|
break;
|
|
1193
1224
|
case B:
|
|
1194
|
-
|
|
1225
|
+
c = {
|
|
1195
1226
|
x: e.x + e.width,
|
|
1196
1227
|
y: a
|
|
1197
1228
|
};
|
|
1198
1229
|
break;
|
|
1199
|
-
case
|
|
1200
|
-
|
|
1230
|
+
case X:
|
|
1231
|
+
c = {
|
|
1201
1232
|
x: e.x - o.width,
|
|
1202
1233
|
y: a
|
|
1203
1234
|
};
|
|
1204
1235
|
break;
|
|
1205
1236
|
default:
|
|
1206
|
-
|
|
1237
|
+
c = {
|
|
1207
1238
|
x: e.x,
|
|
1208
1239
|
y: e.y
|
|
1209
1240
|
};
|
|
1210
1241
|
}
|
|
1211
|
-
var
|
|
1212
|
-
if (
|
|
1213
|
-
var
|
|
1242
|
+
var A = n ? pt(n) : null;
|
|
1243
|
+
if (A != null) {
|
|
1244
|
+
var u = A === "y" ? "height" : "width";
|
|
1214
1245
|
switch (s) {
|
|
1215
1246
|
case xe:
|
|
1216
|
-
|
|
1247
|
+
c[A] = c[A] - (e[u] / 2 - o[u] / 2);
|
|
1217
1248
|
break;
|
|
1218
|
-
case
|
|
1219
|
-
|
|
1249
|
+
case Ye:
|
|
1250
|
+
c[A] = c[A] + (e[u] / 2 - o[u] / 2);
|
|
1220
1251
|
break;
|
|
1221
1252
|
}
|
|
1222
1253
|
}
|
|
1223
|
-
return
|
|
1254
|
+
return c;
|
|
1224
1255
|
}
|
|
1225
|
-
function
|
|
1256
|
+
function Ut() {
|
|
1226
1257
|
return {
|
|
1227
1258
|
top: 0,
|
|
1228
1259
|
right: 0,
|
|
@@ -1230,76 +1261,76 @@ function Kt() {
|
|
|
1230
1261
|
left: 0
|
|
1231
1262
|
};
|
|
1232
1263
|
}
|
|
1233
|
-
function
|
|
1234
|
-
return Object.assign({},
|
|
1264
|
+
function Bt(t) {
|
|
1265
|
+
return Object.assign({}, Ut(), t);
|
|
1235
1266
|
}
|
|
1236
|
-
function
|
|
1267
|
+
function Wt(t, e) {
|
|
1237
1268
|
return e.reduce(function(o, r) {
|
|
1238
1269
|
return o[r] = t, o;
|
|
1239
1270
|
}, {});
|
|
1240
1271
|
}
|
|
1241
1272
|
function ft(t, e) {
|
|
1242
1273
|
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 ?
|
|
1244
|
-
reference:
|
|
1245
|
-
element:
|
|
1274
|
+
var o = e, r = o.placement, n = r === void 0 ? t.placement : r, s = o.boundary, l = s === void 0 ? Hn : s, a = o.rootBoundary, c = a === void 0 ? Zt : a, A = o.elementContext, u = A === void 0 ? Ee : A, m = o.altBoundary, d = m === void 0 ? !1 : m, f = o.padding, g = f === void 0 ? 0 : f, p = Bt(typeof g != "number" ? g : Wt(g, Le)), y = u === Ee ? On : Ee, E = t.rects.popper, R = t.elements[d ? y : u], k = ts(Re(R) ? R : R.contextElement || ue(t.elements.popper), l, c), x = ye(t.elements.reference), S = Xt({
|
|
1275
|
+
reference: x,
|
|
1276
|
+
element: E,
|
|
1246
1277
|
strategy: "absolute",
|
|
1247
1278
|
placement: n
|
|
1248
|
-
}),
|
|
1249
|
-
top:
|
|
1250
|
-
bottom:
|
|
1251
|
-
left:
|
|
1252
|
-
right:
|
|
1253
|
-
},
|
|
1254
|
-
if (
|
|
1255
|
-
var
|
|
1256
|
-
Object.keys(
|
|
1257
|
-
var oe = [B, U].indexOf(
|
|
1258
|
-
|
|
1279
|
+
}), Y = rt(Object.assign({}, E, S)), G = u === Ee ? Y : x, M = {
|
|
1280
|
+
top: k.top - G.top + p.top,
|
|
1281
|
+
bottom: G.bottom - k.bottom + p.bottom,
|
|
1282
|
+
left: k.left - G.left + p.left,
|
|
1283
|
+
right: G.right - k.right + p.right
|
|
1284
|
+
}, L = t.modifiersData.offset;
|
|
1285
|
+
if (u === Ee && L) {
|
|
1286
|
+
var N = L[n];
|
|
1287
|
+
Object.keys(M).forEach(function(j) {
|
|
1288
|
+
var oe = [B, U].indexOf(j) >= 0 ? 1 : -1, z = [K, U].indexOf(j) >= 0 ? "y" : "x";
|
|
1289
|
+
M[j] += N[z] * oe;
|
|
1259
1290
|
});
|
|
1260
1291
|
}
|
|
1261
|
-
return
|
|
1292
|
+
return M;
|
|
1262
1293
|
}
|
|
1263
|
-
var
|
|
1294
|
+
var Rt = {
|
|
1264
1295
|
placement: "bottom",
|
|
1265
1296
|
modifiers: [],
|
|
1266
1297
|
strategy: "absolute"
|
|
1267
1298
|
};
|
|
1268
|
-
function
|
|
1299
|
+
function Yt() {
|
|
1269
1300
|
for (var t = arguments.length, e = new Array(t), o = 0; o < t; o++)
|
|
1270
1301
|
e[o] = arguments[o];
|
|
1271
1302
|
return !e.some(function(r) {
|
|
1272
1303
|
return !(r && typeof r.getBoundingClientRect == "function");
|
|
1273
1304
|
});
|
|
1274
1305
|
}
|
|
1275
|
-
function
|
|
1306
|
+
function os(t) {
|
|
1276
1307
|
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,
|
|
1279
|
-
|
|
1280
|
-
var
|
|
1308
|
+
var e = t, o = e.defaultModifiers, r = o === void 0 ? [] : o, n = e.defaultOptions, s = n === void 0 ? Rt : n;
|
|
1309
|
+
return function(a, c, A) {
|
|
1310
|
+
A === void 0 && (A = s);
|
|
1311
|
+
var u = {
|
|
1281
1312
|
placement: "bottom",
|
|
1282
1313
|
orderedModifiers: [],
|
|
1283
|
-
options: Object.assign({},
|
|
1314
|
+
options: Object.assign({}, Rt, s),
|
|
1284
1315
|
modifiersData: {},
|
|
1285
1316
|
elements: {
|
|
1286
1317
|
reference: a,
|
|
1287
|
-
popper:
|
|
1318
|
+
popper: c
|
|
1288
1319
|
},
|
|
1289
1320
|
attributes: {},
|
|
1290
1321
|
styles: {}
|
|
1291
|
-
},
|
|
1292
|
-
state:
|
|
1293
|
-
setOptions: function(
|
|
1294
|
-
var
|
|
1295
|
-
p(),
|
|
1296
|
-
reference:
|
|
1297
|
-
popper:
|
|
1322
|
+
}, m = [], d = !1, f = {
|
|
1323
|
+
state: u,
|
|
1324
|
+
setOptions: function(E) {
|
|
1325
|
+
var R = typeof E == "function" ? E(u.options) : E;
|
|
1326
|
+
p(), u.options = Object.assign({}, s, u.options, R), u.scrollParents = {
|
|
1327
|
+
reference: Re(a) ? Ce(a) : a.contextElement ? Ce(a.contextElement) : [],
|
|
1328
|
+
popper: Ce(c)
|
|
1298
1329
|
};
|
|
1299
|
-
var
|
|
1300
|
-
return
|
|
1301
|
-
return
|
|
1302
|
-
}),
|
|
1330
|
+
var k = Un(Wn([].concat(r, u.options.modifiers)));
|
|
1331
|
+
return u.orderedModifiers = k.filter(function(x) {
|
|
1332
|
+
return x.enabled;
|
|
1333
|
+
}), g(), f.update();
|
|
1303
1334
|
},
|
|
1304
1335
|
// Sync update – it will always be executed, even if not necessary. This
|
|
1305
1336
|
// is useful for low frequency updates where sync behavior simplifies the
|
|
@@ -1307,175 +1338,175 @@ function Bn(t) {
|
|
|
1307
1338
|
// For high frequency updates (e.g. `resize` and `scroll` events), always
|
|
1308
1339
|
// prefer the async Popper#update method
|
|
1309
1340
|
forceUpdate: function() {
|
|
1310
|
-
if (!
|
|
1311
|
-
var
|
|
1312
|
-
if (
|
|
1313
|
-
|
|
1314
|
-
reference:
|
|
1315
|
-
popper: dt(
|
|
1316
|
-
},
|
|
1317
|
-
return
|
|
1341
|
+
if (!d) {
|
|
1342
|
+
var E = u.elements, R = E.reference, k = E.popper;
|
|
1343
|
+
if (Yt(R, k)) {
|
|
1344
|
+
u.rects = {
|
|
1345
|
+
reference: Ln(R, Pe(k), u.options.strategy === "fixed"),
|
|
1346
|
+
popper: dt(k)
|
|
1347
|
+
}, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(N) {
|
|
1348
|
+
return u.modifiersData[N.name] = Object.assign({}, N.data);
|
|
1318
1349
|
});
|
|
1319
|
-
for (var
|
|
1320
|
-
if (
|
|
1321
|
-
|
|
1350
|
+
for (var x = 0; x < u.orderedModifiers.length; x++) {
|
|
1351
|
+
if (u.reset === !0) {
|
|
1352
|
+
u.reset = !1, x = -1;
|
|
1322
1353
|
continue;
|
|
1323
1354
|
}
|
|
1324
|
-
var
|
|
1325
|
-
typeof
|
|
1326
|
-
state:
|
|
1327
|
-
options:
|
|
1328
|
-
name:
|
|
1355
|
+
var S = u.orderedModifiers[x], Y = S.fn, G = S.options, M = G === void 0 ? {} : G, L = S.name;
|
|
1356
|
+
typeof Y == "function" && (u = Y({
|
|
1357
|
+
state: u,
|
|
1358
|
+
options: M,
|
|
1359
|
+
name: L,
|
|
1329
1360
|
instance: f
|
|
1330
|
-
}) ||
|
|
1361
|
+
}) || u);
|
|
1331
1362
|
}
|
|
1332
1363
|
}
|
|
1333
1364
|
}
|
|
1334
1365
|
},
|
|
1335
1366
|
// Async and optimistically optimized update – it will not be executed if
|
|
1336
1367
|
// not necessary (debounced to run at most once-per-tick)
|
|
1337
|
-
update:
|
|
1338
|
-
return new Promise(function(
|
|
1339
|
-
f.forceUpdate(),
|
|
1368
|
+
update: Bn(function() {
|
|
1369
|
+
return new Promise(function(y) {
|
|
1370
|
+
f.forceUpdate(), y(u);
|
|
1340
1371
|
});
|
|
1341
1372
|
}),
|
|
1342
1373
|
destroy: function() {
|
|
1343
|
-
p(),
|
|
1374
|
+
p(), d = !0;
|
|
1344
1375
|
}
|
|
1345
1376
|
};
|
|
1346
|
-
if (!
|
|
1377
|
+
if (!Yt(a, c))
|
|
1347
1378
|
return f;
|
|
1348
|
-
f.setOptions(
|
|
1349
|
-
!
|
|
1379
|
+
f.setOptions(A).then(function(y) {
|
|
1380
|
+
!d && A.onFirstUpdate && A.onFirstUpdate(y);
|
|
1350
1381
|
});
|
|
1351
|
-
function
|
|
1352
|
-
|
|
1353
|
-
var
|
|
1354
|
-
if (typeof
|
|
1355
|
-
var
|
|
1356
|
-
state:
|
|
1357
|
-
name:
|
|
1382
|
+
function g() {
|
|
1383
|
+
u.orderedModifiers.forEach(function(y) {
|
|
1384
|
+
var E = y.name, R = y.options, k = R === void 0 ? {} : R, x = y.effect;
|
|
1385
|
+
if (typeof x == "function") {
|
|
1386
|
+
var S = x({
|
|
1387
|
+
state: u,
|
|
1388
|
+
name: E,
|
|
1358
1389
|
instance: f,
|
|
1359
|
-
options:
|
|
1360
|
-
}),
|
|
1390
|
+
options: k
|
|
1391
|
+
}), Y = function() {
|
|
1361
1392
|
};
|
|
1362
|
-
|
|
1393
|
+
m.push(S || Y);
|
|
1363
1394
|
}
|
|
1364
1395
|
});
|
|
1365
1396
|
}
|
|
1366
1397
|
function p() {
|
|
1367
|
-
|
|
1368
|
-
return
|
|
1369
|
-
}),
|
|
1398
|
+
m.forEach(function(y) {
|
|
1399
|
+
return y();
|
|
1400
|
+
}), m = [];
|
|
1370
1401
|
}
|
|
1371
1402
|
return f;
|
|
1372
1403
|
};
|
|
1373
1404
|
}
|
|
1374
|
-
var
|
|
1405
|
+
var Te = {
|
|
1375
1406
|
passive: !0
|
|
1376
1407
|
};
|
|
1377
|
-
function
|
|
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,
|
|
1379
|
-
return s &&
|
|
1380
|
-
|
|
1381
|
-
}), a &&
|
|
1382
|
-
s &&
|
|
1383
|
-
|
|
1384
|
-
}), a &&
|
|
1408
|
+
function rs(t) {
|
|
1409
|
+
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, c = W(e.elements.popper), A = [].concat(e.scrollParents.reference, e.scrollParents.popper);
|
|
1410
|
+
return s && A.forEach(function(u) {
|
|
1411
|
+
u.addEventListener("scroll", o.update, Te);
|
|
1412
|
+
}), a && c.addEventListener("resize", o.update, Te), function() {
|
|
1413
|
+
s && A.forEach(function(u) {
|
|
1414
|
+
u.removeEventListener("scroll", o.update, Te);
|
|
1415
|
+
}), a && c.removeEventListener("resize", o.update, Te);
|
|
1385
1416
|
};
|
|
1386
1417
|
}
|
|
1387
|
-
var
|
|
1418
|
+
var ns = {
|
|
1388
1419
|
name: "eventListeners",
|
|
1389
1420
|
enabled: !0,
|
|
1390
1421
|
phase: "write",
|
|
1391
1422
|
fn: function() {
|
|
1392
1423
|
},
|
|
1393
|
-
effect:
|
|
1424
|
+
effect: rs,
|
|
1394
1425
|
data: {}
|
|
1395
1426
|
};
|
|
1396
|
-
function
|
|
1427
|
+
function ss(t) {
|
|
1397
1428
|
var e = t.state, o = t.name;
|
|
1398
|
-
e.modifiersData[o] =
|
|
1429
|
+
e.modifiersData[o] = Xt({
|
|
1399
1430
|
reference: e.rects.reference,
|
|
1400
1431
|
element: e.rects.popper,
|
|
1401
1432
|
strategy: "absolute",
|
|
1402
1433
|
placement: e.placement
|
|
1403
1434
|
});
|
|
1404
1435
|
}
|
|
1405
|
-
var
|
|
1436
|
+
var as = {
|
|
1406
1437
|
name: "popperOffsets",
|
|
1407
1438
|
enabled: !0,
|
|
1408
1439
|
phase: "read",
|
|
1409
|
-
fn:
|
|
1440
|
+
fn: ss,
|
|
1410
1441
|
data: {}
|
|
1411
|
-
},
|
|
1442
|
+
}, is = {
|
|
1412
1443
|
top: "auto",
|
|
1413
1444
|
right: "auto",
|
|
1414
1445
|
bottom: "auto",
|
|
1415
1446
|
left: "auto"
|
|
1416
1447
|
};
|
|
1417
|
-
function
|
|
1448
|
+
function ls(t) {
|
|
1418
1449
|
var e = t.x, o = t.y, r = window, n = r.devicePixelRatio || 1;
|
|
1419
1450
|
return {
|
|
1420
|
-
x:
|
|
1421
|
-
y:
|
|
1451
|
+
x: De(De(e * n) / n) || 0,
|
|
1452
|
+
y: De(De(o * n) / n) || 0
|
|
1422
1453
|
};
|
|
1423
1454
|
}
|
|
1424
|
-
function
|
|
1425
|
-
var e, o = t.popper, r = t.popperRect, n = t.placement, s = t.variation, l = t.offsets, a = t.position,
|
|
1426
|
-
if (
|
|
1427
|
-
var
|
|
1428
|
-
|
|
1455
|
+
function Gt(t) {
|
|
1456
|
+
var e, o = t.popper, r = t.popperRect, n = t.placement, s = t.variation, l = t.offsets, a = t.position, c = t.gpuAcceleration, A = t.adaptive, u = t.roundOffsets, m = u === !0 ? ls(l) : typeof u == "function" ? u(l) : l, d = m.x, f = d === void 0 ? 0 : d, g = m.y, p = g === void 0 ? 0 : g, y = l.hasOwnProperty("x"), E = l.hasOwnProperty("y"), R = X, k = K, x = window;
|
|
1457
|
+
if (A) {
|
|
1458
|
+
var S = Pe(o), Y = "clientHeight", G = "clientWidth";
|
|
1459
|
+
S === W(o) && (S = ue(o), ie(S).position !== "static" && a === "absolute" && (Y = "scrollHeight", G = "scrollWidth")), S = S, (n === K || (n === X || n === B) && s === Ye) && (k = U, p -= S[Y] - r.height, p *= c ? 1 : -1), (n === X || (n === K || n === U) && s === Ye) && (R = B, f -= S[G] - r.width, f *= c ? 1 : -1);
|
|
1429
1460
|
}
|
|
1430
|
-
var
|
|
1461
|
+
var M = Object.assign({
|
|
1431
1462
|
position: a
|
|
1432
|
-
},
|
|
1433
|
-
if (
|
|
1434
|
-
var
|
|
1435
|
-
return Object.assign({},
|
|
1463
|
+
}, A && is);
|
|
1464
|
+
if (c) {
|
|
1465
|
+
var L;
|
|
1466
|
+
return Object.assign({}, M, (L = {}, L[k] = E ? "0" : "", L[R] = y ? "0" : "", L.transform = (x.devicePixelRatio || 1) <= 1 ? "translate(" + f + "px, " + p + "px)" : "translate3d(" + f + "px, " + p + "px, 0)", L));
|
|
1436
1467
|
}
|
|
1437
|
-
return Object.assign({},
|
|
1468
|
+
return Object.assign({}, M, (e = {}, e[k] = E ? p + "px" : "", e[R] = y ? f + "px" : "", e.transform = "", e));
|
|
1438
1469
|
}
|
|
1439
|
-
function
|
|
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,
|
|
1470
|
+
function cs(t) {
|
|
1471
|
+
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, c = a === void 0 ? !0 : a, A = {
|
|
1441
1472
|
placement: $(e.placement),
|
|
1442
1473
|
variation: we(e.placement),
|
|
1443
1474
|
popper: e.elements.popper,
|
|
1444
1475
|
popperRect: e.rects.popper,
|
|
1445
1476
|
gpuAcceleration: n
|
|
1446
1477
|
};
|
|
1447
|
-
e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper,
|
|
1478
|
+
e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, Gt(Object.assign({}, A, {
|
|
1448
1479
|
offsets: e.modifiersData.popperOffsets,
|
|
1449
1480
|
position: e.options.strategy,
|
|
1450
1481
|
adaptive: l,
|
|
1451
|
-
roundOffsets:
|
|
1452
|
-
})))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow,
|
|
1482
|
+
roundOffsets: c
|
|
1483
|
+
})))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, Gt(Object.assign({}, A, {
|
|
1453
1484
|
offsets: e.modifiersData.arrow,
|
|
1454
1485
|
position: "absolute",
|
|
1455
1486
|
adaptive: !1,
|
|
1456
|
-
roundOffsets:
|
|
1487
|
+
roundOffsets: c
|
|
1457
1488
|
})))), e.attributes.popper = Object.assign({}, e.attributes.popper, {
|
|
1458
1489
|
"data-popper-placement": e.placement
|
|
1459
1490
|
});
|
|
1460
1491
|
}
|
|
1461
|
-
var
|
|
1492
|
+
var ds = {
|
|
1462
1493
|
name: "computeStyles",
|
|
1463
1494
|
enabled: !0,
|
|
1464
1495
|
phase: "beforeWrite",
|
|
1465
|
-
fn:
|
|
1496
|
+
fn: cs,
|
|
1466
1497
|
data: {}
|
|
1467
1498
|
};
|
|
1468
|
-
function
|
|
1499
|
+
function us(t) {
|
|
1469
1500
|
var e = t.state;
|
|
1470
1501
|
Object.keys(e.elements).forEach(function(o) {
|
|
1471
1502
|
var r = e.styles[o] || {}, n = e.attributes[o] || {}, s = e.elements[o];
|
|
1472
|
-
!
|
|
1503
|
+
!V(s) || !ee(s) || (Object.assign(s.style, r), Object.keys(n).forEach(function(l) {
|
|
1473
1504
|
var a = n[l];
|
|
1474
1505
|
a === !1 ? s.removeAttribute(l) : s.setAttribute(l, a === !0 ? "" : a);
|
|
1475
1506
|
}));
|
|
1476
1507
|
});
|
|
1477
1508
|
}
|
|
1478
|
-
function
|
|
1509
|
+
function ps(t) {
|
|
1479
1510
|
var e = t.state, o = {
|
|
1480
1511
|
popper: {
|
|
1481
1512
|
position: e.options.strategy,
|
|
@@ -1490,177 +1521,177 @@ function ss(t) {
|
|
|
1490
1521
|
};
|
|
1491
1522
|
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
1523
|
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(
|
|
1494
|
-
return
|
|
1524
|
+
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(c, A) {
|
|
1525
|
+
return c[A] = "", c;
|
|
1495
1526
|
}, {});
|
|
1496
|
-
!
|
|
1497
|
-
n.removeAttribute(
|
|
1527
|
+
!V(n) || !ee(n) || (Object.assign(n.style, a), Object.keys(s).forEach(function(c) {
|
|
1528
|
+
n.removeAttribute(c);
|
|
1498
1529
|
}));
|
|
1499
1530
|
});
|
|
1500
1531
|
};
|
|
1501
1532
|
}
|
|
1502
|
-
var
|
|
1533
|
+
var fs = {
|
|
1503
1534
|
name: "applyStyles",
|
|
1504
1535
|
enabled: !0,
|
|
1505
1536
|
phase: "write",
|
|
1506
|
-
fn:
|
|
1507
|
-
effect:
|
|
1537
|
+
fn: us,
|
|
1538
|
+
effect: ps,
|
|
1508
1539
|
requires: ["computeStyles"]
|
|
1509
|
-
},
|
|
1510
|
-
defaultModifiers:
|
|
1540
|
+
}, vs = [ns, as, ds, fs], hs = /* @__PURE__ */ os({
|
|
1541
|
+
defaultModifiers: vs
|
|
1511
1542
|
});
|
|
1512
|
-
function
|
|
1543
|
+
function As(t) {
|
|
1513
1544
|
return t === "x" ? "y" : "x";
|
|
1514
1545
|
}
|
|
1515
|
-
function
|
|
1516
|
-
return de(t,
|
|
1546
|
+
function Qe(t, e, o) {
|
|
1547
|
+
return de(t, Ge(e, o));
|
|
1517
1548
|
}
|
|
1518
|
-
function
|
|
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,
|
|
1520
|
-
boundary:
|
|
1521
|
-
rootBoundary:
|
|
1522
|
-
padding:
|
|
1523
|
-
altBoundary:
|
|
1524
|
-
}),
|
|
1549
|
+
function ms(t) {
|
|
1550
|
+
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, c = o.boundary, A = o.rootBoundary, u = o.altBoundary, m = o.padding, d = o.tether, f = d === void 0 ? !0 : d, g = o.tetherOffset, p = g === void 0 ? 0 : g, y = ft(e, {
|
|
1551
|
+
boundary: c,
|
|
1552
|
+
rootBoundary: A,
|
|
1553
|
+
padding: m,
|
|
1554
|
+
altBoundary: u
|
|
1555
|
+
}), E = $(e.placement), R = we(e.placement), k = !R, x = pt(E), S = As(x), Y = e.modifiersData.popperOffsets, G = e.rects.reference, M = e.rects.popper, L = typeof p == "function" ? p(Object.assign({}, e.rects, {
|
|
1525
1556
|
placement: e.placement
|
|
1526
|
-
})) : p,
|
|
1557
|
+
})) : p, N = {
|
|
1527
1558
|
x: 0,
|
|
1528
1559
|
y: 0
|
|
1529
1560
|
};
|
|
1530
|
-
if (
|
|
1561
|
+
if (Y) {
|
|
1531
1562
|
if (s || a) {
|
|
1532
|
-
var
|
|
1563
|
+
var j = x === "y" ? K : X, oe = x === "y" ? U : B, z = x === "y" ? "height" : "width", re = Y[x], ne = Y[x] + y[j], q = Y[x] - y[oe], se = f ? -M[z] / 2 : 0, O = R === xe ? G[z] : M[z], D = R === xe ? -M[z] : -G[z], H = e.elements.arrow, ae = f && H ? dt(H) : {
|
|
1533
1564
|
width: 0,
|
|
1534
1565
|
height: 0
|
|
1535
|
-
}, ve = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding :
|
|
1566
|
+
}, ve = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Ut(), Me = ve[j], pe = ve[oe], J = Qe(0, G[z], ae[z]), ze = k ? G[z] / 2 - se - J - Me - L : O - J - Me - L, Xe = k ? -G[z] / 2 + se + J + pe + L : D + J + pe + L, he = e.elements.arrow && Pe(e.elements.arrow), Ue = he ? x === "y" ? he.clientTop || 0 : he.clientLeft || 0 : 0, ht = e.modifiersData.offset ? e.modifiersData.offset[e.placement][x] : 0, At = Y[x] + ze - ht - Ue, mt = Y[x] + Xe - ht;
|
|
1536
1567
|
if (s) {
|
|
1537
|
-
var
|
|
1538
|
-
|
|
1568
|
+
var bt = Qe(f ? Ge(ne, At) : ne, re, f ? de(q, mt) : q);
|
|
1569
|
+
Y[x] = bt, N[x] = bt - re;
|
|
1539
1570
|
}
|
|
1540
1571
|
if (a) {
|
|
1541
|
-
var
|
|
1542
|
-
|
|
1572
|
+
var $t = x === "x" ? K : X, eo = x === "x" ? U : B, He = Y[S], gt = He + y[$t], yt = He - y[eo], xt = Qe(f ? Ge(gt, At) : gt, He, f ? de(yt, mt) : yt);
|
|
1573
|
+
Y[S] = xt, N[S] = xt - He;
|
|
1543
1574
|
}
|
|
1544
1575
|
}
|
|
1545
|
-
e.modifiersData[r] =
|
|
1576
|
+
e.modifiersData[r] = N;
|
|
1546
1577
|
}
|
|
1547
1578
|
}
|
|
1548
|
-
var
|
|
1579
|
+
var bs = {
|
|
1549
1580
|
name: "preventOverflow",
|
|
1550
1581
|
enabled: !0,
|
|
1551
1582
|
phase: "main",
|
|
1552
|
-
fn:
|
|
1583
|
+
fn: ms,
|
|
1553
1584
|
requiresIfExists: ["offset"]
|
|
1554
|
-
},
|
|
1585
|
+
}, gs = {
|
|
1555
1586
|
left: "right",
|
|
1556
1587
|
right: "left",
|
|
1557
1588
|
bottom: "top",
|
|
1558
1589
|
top: "bottom"
|
|
1559
1590
|
};
|
|
1560
|
-
function
|
|
1591
|
+
function Fe(t) {
|
|
1561
1592
|
return t.replace(/left|right|bottom|top/g, function(e) {
|
|
1562
|
-
return
|
|
1593
|
+
return gs[e];
|
|
1563
1594
|
});
|
|
1564
1595
|
}
|
|
1565
|
-
var
|
|
1596
|
+
var ys = {
|
|
1566
1597
|
start: "end",
|
|
1567
1598
|
end: "start"
|
|
1568
1599
|
};
|
|
1569
|
-
function
|
|
1600
|
+
function St(t) {
|
|
1570
1601
|
return t.replace(/start|end/g, function(e) {
|
|
1571
|
-
return
|
|
1602
|
+
return ys[e];
|
|
1572
1603
|
});
|
|
1573
1604
|
}
|
|
1574
|
-
function
|
|
1605
|
+
function xs(t, e) {
|
|
1575
1606
|
e === void 0 && (e = {});
|
|
1576
|
-
var o = e, r = o.placement, n = o.boundary, s = o.rootBoundary, l = o.padding, a = o.flipVariations,
|
|
1577
|
-
return we(
|
|
1578
|
-
}) :
|
|
1579
|
-
return
|
|
1607
|
+
var o = e, r = o.placement, n = o.boundary, s = o.rootBoundary, l = o.padding, a = o.flipVariations, c = o.allowedAutoPlacements, A = c === void 0 ? Vt : c, u = we(r), m = u ? a ? Et : Et.filter(function(g) {
|
|
1608
|
+
return we(g) === u;
|
|
1609
|
+
}) : Le, d = m.filter(function(g) {
|
|
1610
|
+
return A.indexOf(g) >= 0;
|
|
1580
1611
|
});
|
|
1581
|
-
|
|
1582
|
-
var f =
|
|
1583
|
-
return
|
|
1612
|
+
d.length === 0 && (d = m);
|
|
1613
|
+
var f = d.reduce(function(g, p) {
|
|
1614
|
+
return g[p] = ft(t, {
|
|
1584
1615
|
placement: p,
|
|
1585
1616
|
boundary: n,
|
|
1586
1617
|
rootBoundary: s,
|
|
1587
1618
|
padding: l
|
|
1588
|
-
})[$(p)],
|
|
1619
|
+
})[$(p)], g;
|
|
1589
1620
|
}, {});
|
|
1590
|
-
return Object.keys(f).sort(function(
|
|
1591
|
-
return f[
|
|
1621
|
+
return Object.keys(f).sort(function(g, p) {
|
|
1622
|
+
return f[g] - f[p];
|
|
1592
1623
|
});
|
|
1593
1624
|
}
|
|
1594
|
-
function
|
|
1625
|
+
function ws(t) {
|
|
1595
1626
|
if ($(t) === ut)
|
|
1596
1627
|
return [];
|
|
1597
|
-
var e =
|
|
1598
|
-
return [
|
|
1628
|
+
var e = Fe(t);
|
|
1629
|
+
return [St(t), e, St(e)];
|
|
1599
1630
|
}
|
|
1600
|
-
function
|
|
1631
|
+
function Is(t) {
|
|
1601
1632
|
var e = t.state, o = t.options, r = t.name;
|
|
1602
1633
|
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,
|
|
1604
|
-
return pe.concat($(J) === ut ?
|
|
1634
|
+
for (var n = o.mainAxis, s = n === void 0 ? !0 : n, l = o.altAxis, a = l === void 0 ? !0 : l, c = o.fallbackPlacements, A = o.padding, u = o.boundary, m = o.rootBoundary, d = o.altBoundary, f = o.flipVariations, g = f === void 0 ? !0 : f, p = o.allowedAutoPlacements, y = e.options.placement, E = $(y), R = E === y, k = c || (R || !g ? [Fe(y)] : ws(y)), x = [y].concat(k).reduce(function(pe, J) {
|
|
1635
|
+
return pe.concat($(J) === ut ? xs(e, {
|
|
1605
1636
|
placement: J,
|
|
1606
|
-
boundary:
|
|
1607
|
-
rootBoundary:
|
|
1608
|
-
padding:
|
|
1609
|
-
flipVariations:
|
|
1637
|
+
boundary: u,
|
|
1638
|
+
rootBoundary: m,
|
|
1639
|
+
padding: A,
|
|
1640
|
+
flipVariations: g,
|
|
1610
1641
|
allowedAutoPlacements: p
|
|
1611
1642
|
}) : J);
|
|
1612
|
-
}, []),
|
|
1613
|
-
var
|
|
1614
|
-
placement:
|
|
1615
|
-
boundary:
|
|
1616
|
-
rootBoundary:
|
|
1617
|
-
altBoundary:
|
|
1618
|
-
padding:
|
|
1619
|
-
}), se = re ?
|
|
1620
|
-
|
|
1621
|
-
var
|
|
1622
|
-
if (s &&
|
|
1643
|
+
}, []), S = e.rects.reference, Y = e.rects.popper, G = /* @__PURE__ */ new Map(), M = !0, L = x[0], N = 0; N < x.length; N++) {
|
|
1644
|
+
var j = x[N], oe = $(j), z = we(j) === xe, re = [K, U].indexOf(oe) >= 0, ne = re ? "width" : "height", q = ft(e, {
|
|
1645
|
+
placement: j,
|
|
1646
|
+
boundary: u,
|
|
1647
|
+
rootBoundary: m,
|
|
1648
|
+
altBoundary: d,
|
|
1649
|
+
padding: A
|
|
1650
|
+
}), se = re ? z ? B : X : z ? U : K;
|
|
1651
|
+
S[ne] > Y[ne] && (se = Fe(se));
|
|
1652
|
+
var O = Fe(se), D = [];
|
|
1653
|
+
if (s && D.push(q[oe] <= 0), a && D.push(q[se] <= 0, q[O] <= 0), D.every(function(pe) {
|
|
1623
1654
|
return pe;
|
|
1624
1655
|
})) {
|
|
1625
|
-
|
|
1656
|
+
L = j, M = !1;
|
|
1626
1657
|
break;
|
|
1627
1658
|
}
|
|
1628
|
-
|
|
1659
|
+
G.set(j, D);
|
|
1629
1660
|
}
|
|
1630
|
-
if (
|
|
1631
|
-
for (var
|
|
1632
|
-
var
|
|
1633
|
-
var he =
|
|
1661
|
+
if (M)
|
|
1662
|
+
for (var H = g ? 3 : 1, ae = function(J) {
|
|
1663
|
+
var ze = x.find(function(Xe) {
|
|
1664
|
+
var he = G.get(Xe);
|
|
1634
1665
|
if (he)
|
|
1635
1666
|
return he.slice(0, J).every(function(Ue) {
|
|
1636
1667
|
return Ue;
|
|
1637
1668
|
});
|
|
1638
1669
|
});
|
|
1639
|
-
if (
|
|
1640
|
-
return
|
|
1641
|
-
}, ve =
|
|
1642
|
-
var
|
|
1643
|
-
if (
|
|
1670
|
+
if (ze)
|
|
1671
|
+
return L = ze, "break";
|
|
1672
|
+
}, ve = H; ve > 0; ve--) {
|
|
1673
|
+
var Me = ae(ve);
|
|
1674
|
+
if (Me === "break")
|
|
1644
1675
|
break;
|
|
1645
1676
|
}
|
|
1646
|
-
e.placement !==
|
|
1677
|
+
e.placement !== L && (e.modifiersData[r]._skip = !0, e.placement = L, e.reset = !0);
|
|
1647
1678
|
}
|
|
1648
1679
|
}
|
|
1649
|
-
var
|
|
1680
|
+
var ks = {
|
|
1650
1681
|
name: "flip",
|
|
1651
1682
|
enabled: !0,
|
|
1652
1683
|
phase: "main",
|
|
1653
|
-
fn:
|
|
1684
|
+
fn: Is,
|
|
1654
1685
|
requiresIfExists: ["offset"],
|
|
1655
1686
|
data: {
|
|
1656
1687
|
_skip: !1
|
|
1657
1688
|
}
|
|
1658
1689
|
};
|
|
1659
|
-
function
|
|
1660
|
-
var r = $(t), n = [
|
|
1690
|
+
function Es(t, e, o) {
|
|
1691
|
+
var r = $(t), n = [X, K].indexOf(r) >= 0 ? -1 : 1, s = typeof o == "function" ? o(Object.assign({}, e, {
|
|
1661
1692
|
placement: t
|
|
1662
1693
|
})) : o, l = s[0], a = s[1];
|
|
1663
|
-
return l = l || 0, a = (a || 0) * n, [
|
|
1694
|
+
return l = l || 0, a = (a || 0) * n, [X, B].indexOf(r) >= 0 ? {
|
|
1664
1695
|
x: a,
|
|
1665
1696
|
y: l
|
|
1666
1697
|
} : {
|
|
@@ -1668,45 +1699,45 @@ function ys(t, e, o) {
|
|
|
1668
1699
|
y: a
|
|
1669
1700
|
};
|
|
1670
1701
|
}
|
|
1671
|
-
function
|
|
1672
|
-
var e = t.state, o = t.options, r = t.name, n = o.offset, s = n === void 0 ? [0, 0] : n, l =
|
|
1673
|
-
return
|
|
1674
|
-
}, {}), a = l[e.placement],
|
|
1675
|
-
e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x +=
|
|
1702
|
+
function Cs(t) {
|
|
1703
|
+
var e = t.state, o = t.options, r = t.name, n = o.offset, s = n === void 0 ? [0, 0] : n, l = Vt.reduce(function(u, m) {
|
|
1704
|
+
return u[m] = Es(m, e.rects, s), u;
|
|
1705
|
+
}, {}), a = l[e.placement], c = a.x, A = a.y;
|
|
1706
|
+
e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += c, e.modifiersData.popperOffsets.y += A), e.modifiersData[r] = l;
|
|
1676
1707
|
}
|
|
1677
|
-
var
|
|
1708
|
+
var Rs = {
|
|
1678
1709
|
name: "offset",
|
|
1679
1710
|
enabled: !0,
|
|
1680
1711
|
phase: "main",
|
|
1681
1712
|
requires: ["popperOffsets"],
|
|
1682
|
-
fn:
|
|
1683
|
-
},
|
|
1713
|
+
fn: Cs
|
|
1714
|
+
}, Ys = function(e, o) {
|
|
1684
1715
|
return e = typeof e == "function" ? e(Object.assign({}, o.rects, {
|
|
1685
1716
|
placement: o.placement
|
|
1686
|
-
})) : e,
|
|
1717
|
+
})) : e, Bt(typeof e != "number" ? e : Wt(e, Le));
|
|
1687
1718
|
};
|
|
1688
|
-
function
|
|
1689
|
-
var e, o = t.state, r = t.name, n = t.options, s = o.elements.arrow, l = o.modifiersData.popperOffsets, a = $(o.placement),
|
|
1719
|
+
function Gs(t) {
|
|
1720
|
+
var e, o = t.state, r = t.name, n = t.options, s = o.elements.arrow, l = o.modifiersData.popperOffsets, a = $(o.placement), c = pt(a), A = [X, B].indexOf(a) >= 0, u = A ? "height" : "width";
|
|
1690
1721
|
if (!(!s || !l)) {
|
|
1691
|
-
var
|
|
1692
|
-
o.modifiersData[r] = (e = {}, e[
|
|
1722
|
+
var m = Ys(n.padding, o), d = dt(s), f = c === "y" ? K : X, g = c === "y" ? U : B, p = o.rects.reference[u] + o.rects.reference[c] - l[c] - o.rects.popper[u], y = l[c] - o.rects.reference[c], E = Pe(s), R = E ? c === "y" ? E.clientHeight || 0 : E.clientWidth || 0 : 0, k = p / 2 - y / 2, x = m[f], S = R - d[u] - m[g], Y = R / 2 - d[u] / 2 + k, G = Qe(x, Y, S), M = c;
|
|
1723
|
+
o.modifiersData[r] = (e = {}, e[M] = G, e.centerOffset = G - Y, e);
|
|
1693
1724
|
}
|
|
1694
1725
|
}
|
|
1695
|
-
function
|
|
1726
|
+
function Ss(t) {
|
|
1696
1727
|
var e = t.state, o = t.options, r = o.element, n = r === void 0 ? "[data-popper-arrow]" : r;
|
|
1697
|
-
n != null && (typeof n == "string" && (n = e.elements.popper.querySelector(n), !n) ||
|
|
1728
|
+
n != null && (typeof n == "string" && (n = e.elements.popper.querySelector(n), !n) || Kt(e.elements.popper, n) && (e.elements.arrow = n));
|
|
1698
1729
|
}
|
|
1699
|
-
var
|
|
1730
|
+
var Ps = {
|
|
1700
1731
|
name: "arrow",
|
|
1701
1732
|
enabled: !0,
|
|
1702
1733
|
phase: "main",
|
|
1703
|
-
fn:
|
|
1704
|
-
effect:
|
|
1734
|
+
fn: Gs,
|
|
1735
|
+
effect: Ss,
|
|
1705
1736
|
requires: ["popperOffsets"],
|
|
1706
1737
|
requiresIfExists: ["preventOverflow"]
|
|
1707
1738
|
};
|
|
1708
1739
|
const $e = (t) => parseInt(t, 10);
|
|
1709
|
-
function
|
|
1740
|
+
function Ls({
|
|
1710
1741
|
arrowPadding: t,
|
|
1711
1742
|
emit: e,
|
|
1712
1743
|
locked: o,
|
|
@@ -1716,62 +1747,62 @@ function Rs({
|
|
|
1716
1747
|
popperNode: l,
|
|
1717
1748
|
triggerNode: a
|
|
1718
1749
|
}) {
|
|
1719
|
-
const
|
|
1750
|
+
const c = co({
|
|
1720
1751
|
isOpen: !1,
|
|
1721
1752
|
popperInstance: null
|
|
1722
|
-
}),
|
|
1723
|
-
var
|
|
1724
|
-
(
|
|
1725
|
-
...
|
|
1726
|
-
modifiers: [...
|
|
1753
|
+
}), A = (p) => {
|
|
1754
|
+
var y;
|
|
1755
|
+
(y = c.popperInstance) === null || y === void 0 || y.setOptions((E) => ({
|
|
1756
|
+
...E,
|
|
1757
|
+
modifiers: [...E.modifiers, {
|
|
1727
1758
|
name: "eventListeners",
|
|
1728
1759
|
enabled: p
|
|
1729
1760
|
}]
|
|
1730
1761
|
}));
|
|
1731
|
-
},
|
|
1732
|
-
|
|
1762
|
+
}, u = () => A(!0), m = () => A(!1), d = () => {
|
|
1763
|
+
c.isOpen && (c.isOpen = !1, e("close:popper"));
|
|
1733
1764
|
}, f = () => {
|
|
1734
|
-
|
|
1765
|
+
c.isOpen || (c.isOpen = !0, e("open:popper"));
|
|
1735
1766
|
};
|
|
1736
|
-
|
|
1737
|
-
p ? (await
|
|
1767
|
+
be([() => c.isOpen, s], async ([p]) => {
|
|
1768
|
+
p ? (await g(), u()) : m();
|
|
1738
1769
|
});
|
|
1739
|
-
const
|
|
1740
|
-
await
|
|
1770
|
+
const g = async () => {
|
|
1771
|
+
await uo(), c.popperInstance = hs(a.value, l.value, {
|
|
1741
1772
|
placement: s.value,
|
|
1742
|
-
modifiers: [
|
|
1773
|
+
modifiers: [bs, ks, {
|
|
1743
1774
|
name: "flip",
|
|
1744
1775
|
enabled: !o.value
|
|
1745
|
-
},
|
|
1776
|
+
}, Ps, {
|
|
1746
1777
|
name: "arrow",
|
|
1747
1778
|
options: {
|
|
1748
1779
|
padding: $e(t.value)
|
|
1749
1780
|
}
|
|
1750
|
-
},
|
|
1781
|
+
}, Rs, {
|
|
1751
1782
|
name: "offset",
|
|
1752
1783
|
options: {
|
|
1753
1784
|
offset: [$e(n.value), $e(r.value)]
|
|
1754
1785
|
}
|
|
1755
1786
|
}]
|
|
1756
|
-
}),
|
|
1787
|
+
}), c.popperInstance.update();
|
|
1757
1788
|
};
|
|
1758
1789
|
return nt(() => {
|
|
1759
1790
|
var p;
|
|
1760
|
-
(p =
|
|
1791
|
+
(p = c.popperInstance) === null || p === void 0 || p.destroy();
|
|
1761
1792
|
}), {
|
|
1762
|
-
...
|
|
1793
|
+
...Ht(c),
|
|
1763
1794
|
open: f,
|
|
1764
|
-
close:
|
|
1795
|
+
close: d
|
|
1765
1796
|
};
|
|
1766
1797
|
}
|
|
1767
|
-
const
|
|
1798
|
+
const Ms = {
|
|
1768
1799
|
id: "arrow",
|
|
1769
1800
|
"data-popper-arrow": ""
|
|
1770
1801
|
};
|
|
1771
|
-
function
|
|
1772
|
-
return v(),
|
|
1802
|
+
function zs(t, e) {
|
|
1803
|
+
return v(), h("div", Ms);
|
|
1773
1804
|
}
|
|
1774
|
-
function
|
|
1805
|
+
function Jt(t, e) {
|
|
1775
1806
|
e === void 0 && (e = {});
|
|
1776
1807
|
var o = e.insertAt;
|
|
1777
1808
|
if (!(!t || typeof document > "u")) {
|
|
@@ -1779,7 +1810,7 @@ function Ut(t, e) {
|
|
|
1779
1810
|
n.type = "text/css", o === "top" && r.firstChild ? r.insertBefore(n, r.firstChild) : r.appendChild(n), n.styleSheet ? n.styleSheet.cssText = t : n.appendChild(document.createTextNode(t));
|
|
1780
1811
|
}
|
|
1781
1812
|
}
|
|
1782
|
-
var
|
|
1813
|
+
var Hs = `
|
|
1783
1814
|
#arrow[data-v-20b7fd4a],
|
|
1784
1815
|
#arrow[data-v-20b7fd4a]::before {
|
|
1785
1816
|
transition: background 250ms ease-in-out;
|
|
@@ -1836,13 +1867,13 @@ var Cs = `
|
|
|
1836
1867
|
left: -5px;
|
|
1837
1868
|
}
|
|
1838
1869
|
`;
|
|
1839
|
-
|
|
1870
|
+
Jt(Hs);
|
|
1840
1871
|
const vt = {};
|
|
1841
|
-
vt.render =
|
|
1872
|
+
vt.render = zs;
|
|
1842
1873
|
vt.__scopeId = "data-v-20b7fd4a";
|
|
1843
|
-
var
|
|
1844
|
-
const
|
|
1845
|
-
var
|
|
1874
|
+
var Os = vt;
|
|
1875
|
+
const Ds = ["onKeyup"];
|
|
1876
|
+
var _t = {
|
|
1846
1877
|
props: {
|
|
1847
1878
|
/**
|
|
1848
1879
|
* Preferred placement (the "auto" placements will choose the side with most space.)
|
|
@@ -1958,94 +1989,94 @@ var Bt = {
|
|
|
1958
1989
|
emit: e
|
|
1959
1990
|
}) {
|
|
1960
1991
|
const o = t;
|
|
1961
|
-
|
|
1992
|
+
no((O) => ({
|
|
1962
1993
|
c81fc0a4: t.zIndex
|
|
1963
1994
|
}));
|
|
1964
|
-
const r =
|
|
1995
|
+
const r = so(), n = w(null), s = w(null), l = w(null), a = w(!1);
|
|
1965
1996
|
Se(() => {
|
|
1966
|
-
const
|
|
1967
|
-
if (
|
|
1968
|
-
return console.error(`[Popper]: The <Popper> component expects only one child element at its root. You passed ${
|
|
1997
|
+
const O = r.default();
|
|
1998
|
+
if (O && O.length > 1)
|
|
1999
|
+
return console.error(`[Popper]: The <Popper> component expects only one child element at its root. You passed ${O.length} child nodes.`);
|
|
1969
2000
|
});
|
|
1970
2001
|
const {
|
|
1971
|
-
arrowPadding:
|
|
1972
|
-
closeDelay:
|
|
1973
|
-
content:
|
|
1974
|
-
disableClickAway:
|
|
1975
|
-
disabled:
|
|
2002
|
+
arrowPadding: c,
|
|
2003
|
+
closeDelay: A,
|
|
2004
|
+
content: u,
|
|
2005
|
+
disableClickAway: m,
|
|
2006
|
+
disabled: d,
|
|
1976
2007
|
interactive: f,
|
|
1977
|
-
locked:
|
|
2008
|
+
locked: g,
|
|
1978
2009
|
offsetDistance: p,
|
|
1979
|
-
offsetSkid:
|
|
1980
|
-
openDelay:
|
|
1981
|
-
placement:
|
|
1982
|
-
show:
|
|
1983
|
-
} =
|
|
1984
|
-
isOpen:
|
|
1985
|
-
open:
|
|
1986
|
-
close:
|
|
1987
|
-
} =
|
|
1988
|
-
arrowPadding:
|
|
2010
|
+
offsetSkid: y,
|
|
2011
|
+
openDelay: E,
|
|
2012
|
+
placement: R,
|
|
2013
|
+
show: k
|
|
2014
|
+
} = Ht(o), {
|
|
2015
|
+
isOpen: x,
|
|
2016
|
+
open: S,
|
|
2017
|
+
close: Y
|
|
2018
|
+
} = Ls({
|
|
2019
|
+
arrowPadding: c,
|
|
1989
2020
|
emit: e,
|
|
1990
|
-
locked:
|
|
2021
|
+
locked: g,
|
|
1991
2022
|
offsetDistance: p,
|
|
1992
|
-
offsetSkid:
|
|
1993
|
-
placement:
|
|
2023
|
+
offsetSkid: y,
|
|
2024
|
+
placement: R,
|
|
1994
2025
|
popperNode: s,
|
|
1995
2026
|
triggerNode: l
|
|
1996
2027
|
}), {
|
|
1997
|
-
hasContent:
|
|
1998
|
-
} =
|
|
1999
|
-
|
|
2028
|
+
hasContent: G
|
|
2029
|
+
} = Yn(r, s, u), M = ke(() => k.value !== null), L = ke(() => d.value || !G.value), N = ke(() => x.value && !L.value), j = ke(() => !m.value && !M.value), oe = ke(() => f.value ? `border: ${p.value}px solid transparent; margin: -${p.value}px;` : null), z = _e.debounce(S, E.value), re = _e.debounce(Y, A.value), ne = async () => {
|
|
2030
|
+
L.value || M.value || (re.clear(), z());
|
|
2000
2031
|
}, q = async () => {
|
|
2001
|
-
|
|
2032
|
+
M.value || (z.clear(), re());
|
|
2002
2033
|
}, se = () => {
|
|
2003
|
-
|
|
2034
|
+
x.value ? q() : ne();
|
|
2004
2035
|
};
|
|
2005
|
-
return
|
|
2006
|
-
|
|
2007
|
-
}),
|
|
2008
|
-
|
|
2036
|
+
return be([G, d], ([O, D]) => {
|
|
2037
|
+
x.value && (!O || D) && Y();
|
|
2038
|
+
}), be(x, (O) => {
|
|
2039
|
+
O ? a.value = !0 : _e.debounce(() => {
|
|
2009
2040
|
a.value = !1;
|
|
2010
2041
|
}, 200);
|
|
2011
|
-
}),
|
|
2012
|
-
|
|
2013
|
-
}),
|
|
2014
|
-
|
|
2015
|
-
}), (
|
|
2042
|
+
}), wt(() => {
|
|
2043
|
+
M.value && (k.value ? z() : re());
|
|
2044
|
+
}), wt(() => {
|
|
2045
|
+
j.value && Rn(n, q);
|
|
2046
|
+
}), (O, D) => (v(), h("div", {
|
|
2016
2047
|
class: "inline-block",
|
|
2017
|
-
style:
|
|
2018
|
-
onMouseleave:
|
|
2019
|
-
ref: (
|
|
2020
|
-
ae.popperContainerNode =
|
|
2048
|
+
style: lo(b(oe)),
|
|
2049
|
+
onMouseleave: D[2] || (D[2] = (H) => t.hover && q()),
|
|
2050
|
+
ref: (H, ae) => {
|
|
2051
|
+
ae.popperContainerNode = H, n.value = H;
|
|
2021
2052
|
}
|
|
2022
2053
|
}, [i("div", {
|
|
2023
|
-
ref: (
|
|
2024
|
-
ae.triggerNode =
|
|
2054
|
+
ref: (H, ae) => {
|
|
2055
|
+
ae.triggerNode = H, l.value = H;
|
|
2025
2056
|
},
|
|
2026
|
-
onMouseover:
|
|
2057
|
+
onMouseover: D[0] || (D[0] = (H) => t.hover && ne()),
|
|
2027
2058
|
onClick: se,
|
|
2028
2059
|
onFocus: ne,
|
|
2029
|
-
onKeyup:
|
|
2030
|
-
}, [tt(
|
|
2060
|
+
onKeyup: ao(q, ["esc"])
|
|
2061
|
+
}, [tt(O.$slots, "default")], 40, Ds), I(Lt, {
|
|
2031
2062
|
name: "fade"
|
|
2032
2063
|
}, {
|
|
2033
|
-
default:
|
|
2034
|
-
onClick:
|
|
2064
|
+
default: Q(() => [fe(i("div", {
|
|
2065
|
+
onClick: D[1] || (D[1] = (H) => !b(f) && q()),
|
|
2035
2066
|
class: "popper",
|
|
2036
|
-
ref: (
|
|
2037
|
-
ae.popperNode =
|
|
2067
|
+
ref: (H, ae) => {
|
|
2068
|
+
ae.popperNode = H, s.value = H;
|
|
2038
2069
|
}
|
|
2039
|
-
}, [tt(
|
|
2040
|
-
close:
|
|
2070
|
+
}, [tt(O.$slots, "content", {
|
|
2071
|
+
close: b(Y),
|
|
2041
2072
|
isOpen: a.value
|
|
2042
|
-
}, () => [_(P(
|
|
2073
|
+
}, () => [_(P(b(u)), 1)]), t.arrow ? (v(), Ae(Os, {
|
|
2043
2074
|
key: 0
|
|
2044
|
-
})) :
|
|
2075
|
+
})) : C("", !0)], 512), [[io, b(N)]])]),
|
|
2045
2076
|
_: 3
|
|
2046
2077
|
})], 36));
|
|
2047
2078
|
}
|
|
2048
|
-
},
|
|
2079
|
+
}, Ts = `
|
|
2049
2080
|
.inline-block[data-v-5784ed69] {
|
|
2050
2081
|
display: inline-block;
|
|
2051
2082
|
}
|
|
@@ -2077,256 +2108,256 @@ var Bt = {
|
|
|
2077
2108
|
opacity: 0;
|
|
2078
2109
|
}
|
|
2079
2110
|
`;
|
|
2080
|
-
|
|
2081
|
-
|
|
2111
|
+
Jt(Ts);
|
|
2112
|
+
_t.__scopeId = "data-v-5784ed69";
|
|
2082
2113
|
var Ne = /* @__PURE__ */ (() => {
|
|
2083
|
-
const t =
|
|
2114
|
+
const t = _t;
|
|
2084
2115
|
return t.install = (e) => {
|
|
2085
2116
|
e.component("Popper", t);
|
|
2086
2117
|
}, t;
|
|
2087
2118
|
})();
|
|
2088
|
-
const
|
|
2119
|
+
const Ns = {
|
|
2089
2120
|
key: 0,
|
|
2090
2121
|
class: "flex gap-2 items-stretch flex-wrap mt-2"
|
|
2091
|
-
},
|
|
2122
|
+
}, js = ["onClick"], Qs = {
|
|
2092
2123
|
class: "bg-white w-56 rounded-md max-h-60 overflow-auto",
|
|
2093
2124
|
role: "none"
|
|
2094
|
-
},
|
|
2125
|
+
}, Fs = ["onClick"], qs = {
|
|
2095
2126
|
class: "bg-white w-56 rounded-md max-h-60 overflow-auto",
|
|
2096
2127
|
role: "none"
|
|
2097
|
-
},
|
|
2128
|
+
}, Zs = ["onClick"], Vs = {
|
|
2098
2129
|
class: "bg-white w-56 rounded-md max-h-60 overflow-auto",
|
|
2099
2130
|
role: "none"
|
|
2100
|
-
},
|
|
2131
|
+
}, Ks = ["onClick"], Xs = {
|
|
2101
2132
|
class: "bg-white w-56 rounded-md max-h-60 overflow-auto",
|
|
2102
2133
|
role: "none"
|
|
2103
|
-
},
|
|
2134
|
+
}, Us = ["onClick"], Bs = { key: 1 }, Ws = /* @__PURE__ */ i("img", {
|
|
2104
2135
|
class: "w-12 h-12 block loadercss",
|
|
2105
2136
|
src: Ze,
|
|
2106
2137
|
alt: "Loader Gif"
|
|
2107
|
-
}, null, -1),
|
|
2108
|
-
|
|
2109
|
-
],
|
|
2138
|
+
}, null, -1), Js = [
|
|
2139
|
+
Ws
|
|
2140
|
+
], _s = /* @__PURE__ */ te({
|
|
2110
2141
|
__name: "SkillOptions",
|
|
2111
2142
|
setup(t) {
|
|
2112
|
-
const e = le(), o =
|
|
2113
|
-
var
|
|
2143
|
+
const e = le(), o = Ie(), r = w(!0), n = w(!1), s = w(!1), l = w(!1), a = w(!1), c = async (A) => {
|
|
2144
|
+
var u, m;
|
|
2114
2145
|
try {
|
|
2115
2146
|
r.value = !1;
|
|
2116
|
-
const
|
|
2117
|
-
`/initialDataV2?skill_id=${
|
|
2147
|
+
const d = await Ot(
|
|
2148
|
+
`/initialDataV2?skill_id=${A.skill_id}&prof_id=${yo}&skill_master_id=${A.skill_master_id}`
|
|
2118
2149
|
);
|
|
2119
|
-
e.selectSkill(
|
|
2120
|
-
} catch (
|
|
2121
|
-
if (console.error(
|
|
2122
|
-
const f =
|
|
2123
|
-
console.error((
|
|
2150
|
+
e.selectSkill(d.data), e.addPostSkillSelectionMessage(), r.value = !0;
|
|
2151
|
+
} catch (d) {
|
|
2152
|
+
if (console.error(d), Z.isAxiosError(d)) {
|
|
2153
|
+
const f = d;
|
|
2154
|
+
console.error((u = f.response) == null ? void 0 : u.data), o.setError(((m = f.response) == null ? void 0 : m.data).message);
|
|
2124
2155
|
} else
|
|
2125
2156
|
o.setError("There was an issue, please contact helpmate");
|
|
2126
2157
|
}
|
|
2127
2158
|
};
|
|
2128
|
-
return (
|
|
2129
|
-
var
|
|
2130
|
-
return r.value ? (v(),
|
|
2131
|
-
(v(!0),
|
|
2159
|
+
return (A, u) => {
|
|
2160
|
+
var m, d, f, g;
|
|
2161
|
+
return r.value ? (v(), h("div", Ns, [
|
|
2162
|
+
(v(!0), h(T, null, F(b(e).user_skills, (p) => (v(), h("div", {
|
|
2132
2163
|
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: (
|
|
2164
|
+
onClick: (y) => c(p),
|
|
2134
2165
|
key: p.skill_id
|
|
2135
|
-
}, P(p.skill_name), 9,
|
|
2136
|
-
(
|
|
2166
|
+
}, P(p.skill_name), 9, js))), 128)),
|
|
2167
|
+
(m = b(e).industry_skills) != null && m.length ? (v(), Ae(b(Ne), {
|
|
2137
2168
|
key: 0,
|
|
2138
2169
|
show: n.value,
|
|
2139
2170
|
placement: "bottom"
|
|
2140
2171
|
}, {
|
|
2141
|
-
content:
|
|
2142
|
-
i("div",
|
|
2143
|
-
(v(!0),
|
|
2144
|
-
onClick: (
|
|
2172
|
+
content: Q(() => [
|
|
2173
|
+
i("div", Qs, [
|
|
2174
|
+
(v(!0), h(T, null, F(b(e).industry_skills, (p) => (v(), h("div", {
|
|
2175
|
+
onClick: (y) => c(p),
|
|
2145
2176
|
key: p.skill_id,
|
|
2146
2177
|
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,
|
|
2178
|
+
}, P(p.skill_name), 9, Fs))), 128))
|
|
2148
2179
|
])
|
|
2149
2180
|
]),
|
|
2150
|
-
default:
|
|
2181
|
+
default: Q(() => [
|
|
2151
2182
|
i("button", {
|
|
2152
|
-
onClick:
|
|
2153
|
-
onFocusout:
|
|
2183
|
+
onClick: u[0] || (u[0] = (p) => n.value = !n.value),
|
|
2184
|
+
onFocusout: u[1] || (u[1] = (p) => n.value = !1),
|
|
2154
2185
|
type: "button",
|
|
2155
2186
|
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
2187
|
}, [
|
|
2157
2188
|
_(" Industry "),
|
|
2158
|
-
|
|
2189
|
+
I(b(Oe), { class: "w-3 h-3" })
|
|
2159
2190
|
], 32)
|
|
2160
2191
|
]),
|
|
2161
2192
|
_: 1
|
|
2162
|
-
}, 8, ["show"])) :
|
|
2163
|
-
(
|
|
2193
|
+
}, 8, ["show"])) : C("", !0),
|
|
2194
|
+
(d = b(e).service_line_skills) != null && d.length ? (v(), Ae(b(Ne), {
|
|
2164
2195
|
key: 1,
|
|
2165
2196
|
show: s.value,
|
|
2166
2197
|
placement: "bottom"
|
|
2167
2198
|
}, {
|
|
2168
|
-
content:
|
|
2169
|
-
i("div",
|
|
2170
|
-
(v(!0),
|
|
2171
|
-
onClick: (
|
|
2199
|
+
content: Q(() => [
|
|
2200
|
+
i("div", qs, [
|
|
2201
|
+
(v(!0), h(T, null, F(b(e).service_line_skills, (p) => (v(), h("div", {
|
|
2202
|
+
onClick: (y) => c(p),
|
|
2172
2203
|
key: p.skill_id,
|
|
2173
2204
|
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,
|
|
2205
|
+
}, P(p.skill_name), 9, Zs))), 128))
|
|
2175
2206
|
])
|
|
2176
2207
|
]),
|
|
2177
|
-
default:
|
|
2208
|
+
default: Q(() => [
|
|
2178
2209
|
i("button", {
|
|
2179
|
-
onClick:
|
|
2180
|
-
onFocusout:
|
|
2210
|
+
onClick: u[2] || (u[2] = (p) => s.value = !s.value),
|
|
2211
|
+
onFocusout: u[3] || (u[3] = (p) => s.value = !1),
|
|
2181
2212
|
type: "button",
|
|
2182
2213
|
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
2214
|
}, [
|
|
2184
2215
|
_(" Service Line "),
|
|
2185
|
-
|
|
2216
|
+
I(b(Oe), { class: "w-3 h-3" })
|
|
2186
2217
|
], 32)
|
|
2187
2218
|
]),
|
|
2188
2219
|
_: 1
|
|
2189
|
-
}, 8, ["show"])) :
|
|
2190
|
-
(f =
|
|
2220
|
+
}, 8, ["show"])) : C("", !0),
|
|
2221
|
+
(f = b(e).digital_skills) != null && f.length ? (v(), Ae(b(Ne), {
|
|
2191
2222
|
key: 2,
|
|
2192
2223
|
show: l.value,
|
|
2193
2224
|
placement: "bottom"
|
|
2194
2225
|
}, {
|
|
2195
|
-
content:
|
|
2196
|
-
i("div",
|
|
2197
|
-
(v(!0),
|
|
2198
|
-
onClick: (
|
|
2226
|
+
content: Q(() => [
|
|
2227
|
+
i("div", Vs, [
|
|
2228
|
+
(v(!0), h(T, null, F(b(e).digital_skills, (p) => (v(), h("div", {
|
|
2229
|
+
onClick: (y) => c(p),
|
|
2199
2230
|
key: p.skill_id,
|
|
2200
2231
|
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,
|
|
2232
|
+
}, P(p.skill_name), 9, Ks))), 128))
|
|
2202
2233
|
])
|
|
2203
2234
|
]),
|
|
2204
|
-
default:
|
|
2235
|
+
default: Q(() => [
|
|
2205
2236
|
i("button", {
|
|
2206
|
-
onClick:
|
|
2207
|
-
onFocusout:
|
|
2237
|
+
onClick: u[4] || (u[4] = (p) => l.value = !l.value),
|
|
2238
|
+
onFocusout: u[5] || (u[5] = (p) => l.value = !1),
|
|
2208
2239
|
type: "button",
|
|
2209
2240
|
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
2241
|
}, [
|
|
2211
2242
|
_(" Digital "),
|
|
2212
|
-
|
|
2243
|
+
I(b(Oe), { class: "w-3 h-3" })
|
|
2213
2244
|
], 32)
|
|
2214
2245
|
]),
|
|
2215
2246
|
_: 1
|
|
2216
|
-
}, 8, ["show"])) :
|
|
2217
|
-
(
|
|
2247
|
+
}, 8, ["show"])) : C("", !0),
|
|
2248
|
+
(g = b(e).professional_skills) != null && g.length ? (v(), Ae(b(Ne), {
|
|
2218
2249
|
key: 3,
|
|
2219
2250
|
show: a.value,
|
|
2220
2251
|
placement: "bottom"
|
|
2221
2252
|
}, {
|
|
2222
|
-
content:
|
|
2223
|
-
i("div",
|
|
2224
|
-
(v(!0),
|
|
2225
|
-
onClick: (
|
|
2253
|
+
content: Q(() => [
|
|
2254
|
+
i("div", Xs, [
|
|
2255
|
+
(v(!0), h(T, null, F(b(e).professional_skills, (p) => (v(), h("div", {
|
|
2256
|
+
onClick: (y) => c(p),
|
|
2226
2257
|
key: p.skill_id,
|
|
2227
2258
|
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,
|
|
2259
|
+
}, P(p.skill_name), 9, Us))), 128))
|
|
2229
2260
|
])
|
|
2230
2261
|
]),
|
|
2231
|
-
default:
|
|
2262
|
+
default: Q(() => [
|
|
2232
2263
|
i("button", {
|
|
2233
|
-
onClick:
|
|
2234
|
-
onFocusout:
|
|
2264
|
+
onClick: u[6] || (u[6] = (p) => a.value = !a.value),
|
|
2265
|
+
onFocusout: u[7] || (u[7] = (p) => a.value = !1),
|
|
2235
2266
|
type: "button",
|
|
2236
2267
|
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
2268
|
}, [
|
|
2238
2269
|
_(" Professional "),
|
|
2239
|
-
|
|
2270
|
+
I(b(Oe), { class: "w-3 h-3" })
|
|
2240
2271
|
], 32)
|
|
2241
2272
|
]),
|
|
2242
2273
|
_: 1
|
|
2243
|
-
}, 8, ["show"])) :
|
|
2244
|
-
])) : (v(),
|
|
2274
|
+
}, 8, ["show"])) : C("", !0)
|
|
2275
|
+
])) : (v(), h("div", Bs, Js));
|
|
2245
2276
|
};
|
|
2246
2277
|
}
|
|
2247
|
-
}),
|
|
2278
|
+
}), $s = {
|
|
2248
2279
|
key: 0,
|
|
2249
2280
|
class: "flex gap-2 items-center flex-wrap mt-2"
|
|
2250
|
-
},
|
|
2281
|
+
}, ea = ["onClick"], ta = {
|
|
2251
2282
|
key: 1,
|
|
2252
2283
|
class: "flex gap-2 items-center flex-wrap"
|
|
2253
|
-
},
|
|
2284
|
+
}, oa = ["onClick"], ra = { key: 1 }, na = /* @__PURE__ */ i("img", {
|
|
2254
2285
|
class: "w-12 h-12 block loadercss",
|
|
2255
2286
|
src: Ze,
|
|
2256
2287
|
alt: "Loader Gif"
|
|
2257
|
-
}, null, -1),
|
|
2258
|
-
|
|
2259
|
-
],
|
|
2288
|
+
}, null, -1), sa = [
|
|
2289
|
+
na
|
|
2290
|
+
], aa = /* @__PURE__ */ te({
|
|
2260
2291
|
__name: "PostSkillUseCases",
|
|
2261
2292
|
setup(t) {
|
|
2262
|
-
const e = le(), o =
|
|
2293
|
+
const e = le(), o = w(!0), r = w(!1), n = async (s) => {
|
|
2263
2294
|
if (o.value = !1, !s.isParent) {
|
|
2264
2295
|
console.log(s.example), e.addConversation({ question: s.useCaseName, answer: s.example }, "faq"), o.value = !0;
|
|
2265
2296
|
return;
|
|
2266
2297
|
}
|
|
2267
2298
|
await e.generateUseCases(s.useCaseId), e.addConversation({ question: s.useCaseName, answer: null }, "faq"), o.value = !0;
|
|
2268
2299
|
};
|
|
2269
|
-
return (s, l) => o.value ? (v(),
|
|
2270
|
-
(v(!0),
|
|
2300
|
+
return (s, l) => o.value ? (v(), h("div", $s, [
|
|
2301
|
+
(v(!0), h(T, null, F(b(e).postSkillUseCases, (a) => (v(), h("div", {
|
|
2271
2302
|
class: "md:text-[14px] text-sm hover:bg-genpact-blue-box bg-genpact-darkest-teal text-white cursor-pointer rounded-md p-2",
|
|
2272
|
-
onClick: (
|
|
2303
|
+
onClick: (c) => n(a),
|
|
2273
2304
|
key: a.useCaseId
|
|
2274
|
-
}, P(a.useCaseName), 9,
|
|
2275
|
-
|
|
2305
|
+
}, P(a.useCaseName), 9, ea))), 128)),
|
|
2306
|
+
b(e).otherUseCases.length > 0 && !r.value ? (v(), h("button", {
|
|
2276
2307
|
key: 0,
|
|
2277
2308
|
class: "md:text-[14px] text-sm hover:bg-genpact-blue-box bg-genpact-darkest-teal text-white cursor-pointer rounded-md p-2",
|
|
2278
2309
|
onClick: l[0] || (l[0] = (a) => r.value = !r.value)
|
|
2279
|
-
}, " Others ")) :
|
|
2280
|
-
r.value ? (v(),
|
|
2281
|
-
(v(!0),
|
|
2310
|
+
}, " Others ")) : C("", !0),
|
|
2311
|
+
r.value ? (v(), h("div", ta, [
|
|
2312
|
+
(v(!0), h(T, null, F(b(e).otherUseCases, (a) => (v(), h("div", {
|
|
2282
2313
|
class: "md:text-[14px] text-sm hover:bg-genpact-blue-box bg-genpact-darkest-teal text-white cursor-pointer rounded-md p-2",
|
|
2283
|
-
onClick: (
|
|
2314
|
+
onClick: (c) => n(a),
|
|
2284
2315
|
key: a.useCaseId
|
|
2285
|
-
}, P(a.useCaseName), 9,
|
|
2286
|
-
])) :
|
|
2287
|
-
])) : (v(),
|
|
2316
|
+
}, P(a.useCaseName), 9, oa))), 128))
|
|
2317
|
+
])) : C("", !0)
|
|
2318
|
+
])) : (v(), h("div", ra, sa));
|
|
2288
2319
|
}
|
|
2289
|
-
}),
|
|
2320
|
+
}), ia = { key: 0 }, la = { key: 1 }, ca = { key: 0 }, da = { key: 1 }, ua = /* @__PURE__ */ te({
|
|
2290
2321
|
__name: "Conversation",
|
|
2291
2322
|
setup(t) {
|
|
2292
|
-
let e =
|
|
2323
|
+
let e = w(""), o = w("");
|
|
2293
2324
|
e = '<a style="color:#00AECF;"', o = '<ul style="list-style-type:square; padding-left:20px;"';
|
|
2294
|
-
const r = le(), n =
|
|
2295
|
-
return
|
|
2325
|
+
const r = le(), n = w();
|
|
2326
|
+
return fo(() => {
|
|
2296
2327
|
n.value.scrollTo(0, n.value.scrollHeight);
|
|
2297
|
-
}), (s, l) => (v(),
|
|
2328
|
+
}), (s, l) => (v(), h("div", {
|
|
2298
2329
|
ref_key: "nestedElement",
|
|
2299
2330
|
ref: n,
|
|
2300
2331
|
class: "smooth-scroll overflow-auto md:p-8 p-3 pb-[80px]"
|
|
2301
2332
|
}, [
|
|
2302
|
-
|
|
2303
|
-
(v(!0),
|
|
2304
|
-
a.question ? (v(),
|
|
2305
|
-
|
|
2333
|
+
I(xn),
|
|
2334
|
+
(v(!0), h(T, null, F(b(r).conversations, (a, c) => (v(), h("div", { key: c }, [
|
|
2335
|
+
a.question ? (v(), h("div", ia, [
|
|
2336
|
+
I(En, {
|
|
2306
2337
|
question: a.question,
|
|
2307
2338
|
"show-feedback": a.showFeedback
|
|
2308
2339
|
}, null, 8, ["question", "show-feedback"])
|
|
2309
|
-
])) :
|
|
2310
|
-
a.answer ? (v(),
|
|
2311
|
-
|
|
2340
|
+
])) : C("", !0),
|
|
2341
|
+
a.answer ? (v(), h("div", la, [
|
|
2342
|
+
I(An, {
|
|
2312
2343
|
question: a.question,
|
|
2313
2344
|
"show-sources": a.showSources,
|
|
2314
2345
|
questionId: a.id,
|
|
2315
|
-
answer: a.answer.replaceAll("<a",
|
|
2346
|
+
answer: a.answer.replaceAll("<a", b(e)).replaceAll("<ul", b(o)),
|
|
2316
2347
|
"show-feedback": a.showFeedback
|
|
2317
2348
|
}, null, 8, ["question", "show-sources", "questionId", "answer", "show-feedback"])
|
|
2318
|
-
])) :
|
|
2349
|
+
])) : C("", !0)
|
|
2319
2350
|
]))), 128)),
|
|
2320
|
-
|
|
2321
|
-
|
|
2351
|
+
b(r).skill_id ? C("", !0) : (v(), h("div", ca, [
|
|
2352
|
+
I(_s)
|
|
2322
2353
|
])),
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
])) :
|
|
2354
|
+
b(r).showPostSkillUseCases ? (v(), h("div", da, [
|
|
2355
|
+
I(aa)
|
|
2356
|
+
])) : C("", !0)
|
|
2326
2357
|
], 512));
|
|
2327
2358
|
}
|
|
2328
2359
|
});
|
|
2329
|
-
const ce = (t) => (
|
|
2360
|
+
const ce = (t) => (Mt("data-v-ed61c2a4"), t = t(), zt(), t), pa = { class: "max-h-screen overflow-auto md:p-6 p-3 flex flex-col items-center justify-center gap-4" }, fa = { className: "text-lg font-medium my-6 text-center text-gray-500" }, va = { class: "max-h-screen overflow-hidden md:py-4 py-8" }, ha = /* @__PURE__ */ ce(() => /* @__PURE__ */ i("h3", { className: "text-lg font-bold capitalize mb-4 text-left text-blue-700" }, " Important Instructions ", -1)), Aa = { className: "list-disc max-h-[40vh] overflow-auto space-y-3 pl-6 md:text-[16px] text-[12px]" }, ma = /* @__PURE__ */ ce(() => /* @__PURE__ */ i("li", null, "Please limit your questions to topics directly related to the selected skill.", -1)), ba = /* @__PURE__ */ ce(() => /* @__PURE__ */ i("li", null, " To maintain confidentiality, refrain from asking or sharing any confidential information such as client names, company financials, or Genpact proprietary information. ", -1)), ga = /* @__PURE__ */ ce(() => /* @__PURE__ */ i("li", null, "Use clear and understandable language; avoid Genpact or industry jargon.", -1)), ya = /* @__PURE__ */ ce(() => /* @__PURE__ */ i("li", null, " The AI-generated response will be limited to 1,000 characters to ensure concise and focused answers. ", -1)), xa = /* @__PURE__ */ ce(() => /* @__PURE__ */ i("li", null, [
|
|
2330
2361
|
/* @__PURE__ */ _(" If you have any inquiries, we kindly encourage you to consult Genpact's "),
|
|
2331
2362
|
/* @__PURE__ */ i("a", {
|
|
2332
2363
|
class: "underline text-blue-500",
|
|
@@ -2339,115 +2370,115 @@ const ce = (t) => (po("data-v-ed61c2a4"), t = t(), fo(), t), sa = { class: "max-
|
|
|
2339
2370
|
target: "_blank",
|
|
2340
2371
|
href: "https://dcl.genpact.com/document/9fba671f-08c2-48bf-89d6-a591971bd16c"
|
|
2341
2372
|
}, "ChatGPT and Use of AI Programs Policy.")
|
|
2342
|
-
], -1)),
|
|
2373
|
+
], -1)), wa = /* @__PURE__ */ ce(() => /* @__PURE__ */ i("li", null, " Kindly note that your inputs maybe subject to audit, and failure to comply with the guidelines may result in disciplinary action. ", -1)), Ia = { key: 0 }, ka = { className: "mt-3" }, Ea = /* @__PURE__ */ ce(() => /* @__PURE__ */ i("label", {
|
|
2343
2374
|
htmlFor: "check",
|
|
2344
2375
|
className: "underline text-blue-700 font-bold cursor-pointer md:text-[16px] text-[14px]"
|
|
2345
|
-
}, " I acknowledge that I have read, understand and agree to the above instructions ", -1)),
|
|
2376
|
+
}, " I acknowledge that I have read, understand and agree to the above instructions ", -1)), Ca = { class: "flex justify-center mt-5" }, Ra = ["disabled"], Ya = {
|
|
2346
2377
|
key: 0,
|
|
2347
2378
|
className: "h-screen flex flex-col items-stretch"
|
|
2348
|
-
},
|
|
2379
|
+
}, Ga = { class: "z-20" }, Sa = { class: "flex h-full overflow-hidden items-stretch" }, Pa = { class: "hidden md:block" }, La = { class: "bg-gray-200 w-screen" }, Ma = { class: "relative h-full w-full flex flex-col overflow-hidden items-stretch" }, za = /* @__PURE__ */ ce(() => /* @__PURE__ */ i("div", { class: "md:mt-[130px] mt-[120px]" }, null, -1)), Ha = { class: "relative" }, Oa = /* @__PURE__ */ te({
|
|
2349
2380
|
__name: "HomeView",
|
|
2350
2381
|
setup(t) {
|
|
2351
|
-
const e =
|
|
2352
|
-
const
|
|
2382
|
+
const e = w(!0), o = w(!1), r = le(), n = Ie(), s = Pt(), l = w(!1), a = w(""), c = async () => {
|
|
2383
|
+
const u = {
|
|
2353
2384
|
event_type: at.CONSENT
|
|
2354
2385
|
};
|
|
2355
|
-
o.value = !1, s.close(), await
|
|
2356
|
-
},
|
|
2357
|
-
var
|
|
2386
|
+
o.value = !1, s.close(), await ge("/generateEvent", u);
|
|
2387
|
+
}, A = async () => {
|
|
2388
|
+
var u, m, d, f, g;
|
|
2358
2389
|
try {
|
|
2359
2390
|
e.value = !1;
|
|
2360
|
-
const p = await
|
|
2361
|
-
((
|
|
2391
|
+
const p = await Ot("/getLearnerData");
|
|
2392
|
+
((u = p.data) == null ? void 0 : u.maintenance) && vo.replace({ path: "/under-maintenance" }), s.open(), r.initialize(p.data), e.value = !0;
|
|
2362
2393
|
} catch (p) {
|
|
2363
|
-
if (console.error(p), e.value = !0,
|
|
2364
|
-
const
|
|
2365
|
-
if (console.error((
|
|
2366
|
-
l.value = !0, a.value = ((f =
|
|
2394
|
+
if (console.error(p), e.value = !0, Z.isAxiosError(p)) {
|
|
2395
|
+
const y = p;
|
|
2396
|
+
if (console.error((m = y.response) == null ? void 0 : m.data), ((d = y.response) == null ? void 0 : d.status) === 422) {
|
|
2397
|
+
l.value = !0, a.value = ((f = y.response) == null ? void 0 : f.data).message;
|
|
2367
2398
|
return;
|
|
2368
2399
|
}
|
|
2369
|
-
n.setError(((
|
|
2400
|
+
n.setError(((g = y.response) == null ? void 0 : g.data).message);
|
|
2370
2401
|
} else
|
|
2371
2402
|
n.setError("There was an issue, please contact helpmate");
|
|
2372
2403
|
}
|
|
2373
2404
|
};
|
|
2374
2405
|
return Se(() => {
|
|
2375
|
-
|
|
2376
|
-
}), (
|
|
2377
|
-
|
|
2378
|
-
default:
|
|
2379
|
-
i("div",
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
i("h3",
|
|
2406
|
+
A();
|
|
2407
|
+
}), (u, m) => (v(), h("div", null, [
|
|
2408
|
+
I(qe, { "is-visible": l.value }, {
|
|
2409
|
+
default: Q(() => [
|
|
2410
|
+
i("div", pa, [
|
|
2411
|
+
I(b(je), { class: "w-12 h-12 fill-genpact-blue-box" }),
|
|
2412
|
+
I(Nt, { color: "blue" }),
|
|
2413
|
+
i("h3", fa, P(a.value), 1)
|
|
2383
2414
|
])
|
|
2384
2415
|
]),
|
|
2385
2416
|
_: 1
|
|
2386
2417
|
}, 8, ["is-visible"]),
|
|
2387
|
-
|
|
2388
|
-
"is-visible":
|
|
2389
|
-
"cross-visible":
|
|
2390
|
-
onCancel:
|
|
2418
|
+
I(qe, {
|
|
2419
|
+
"is-visible": b(s).isOpen,
|
|
2420
|
+
"cross-visible": b(s).crossVisible,
|
|
2421
|
+
onCancel: m[1] || (m[1] = (d) => b(s).close())
|
|
2391
2422
|
}, {
|
|
2392
|
-
default:
|
|
2393
|
-
i("div",
|
|
2394
|
-
|
|
2423
|
+
default: Q(() => [
|
|
2424
|
+
i("div", va, [
|
|
2425
|
+
ha,
|
|
2395
2426
|
i("div", null, [
|
|
2396
|
-
i("ul",
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
i("li", null, " You can ask a maximum of " + P(
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2427
|
+
i("ul", Aa, [
|
|
2428
|
+
ma,
|
|
2429
|
+
ba,
|
|
2430
|
+
ga,
|
|
2431
|
+
i("li", null, " You can ask a maximum of " + P(b(r).questionLimit) + " questions, with each question limited to 300 characters or less. ", 1),
|
|
2432
|
+
ya,
|
|
2433
|
+
xa,
|
|
2434
|
+
wa
|
|
2404
2435
|
])
|
|
2405
2436
|
]),
|
|
2406
|
-
|
|
2407
|
-
i("div",
|
|
2437
|
+
b(s).crossVisible ? C("", !0) : (v(), h("div", Ia, [
|
|
2438
|
+
i("div", ka, [
|
|
2408
2439
|
i("input", {
|
|
2409
2440
|
type: "checkbox",
|
|
2410
2441
|
id: "check",
|
|
2411
2442
|
className: "mr-3",
|
|
2412
|
-
onClick:
|
|
2443
|
+
onClick: m[0] || (m[0] = (d) => o.value = !o.value)
|
|
2413
2444
|
}),
|
|
2414
|
-
|
|
2445
|
+
Ea
|
|
2415
2446
|
]),
|
|
2416
|
-
i("div",
|
|
2447
|
+
i("div", Ca, [
|
|
2417
2448
|
i("button", {
|
|
2418
2449
|
disabled: !o.value,
|
|
2419
2450
|
className: "disabled:bg-gray-400 disabled:cursor-not-allowed cursor-pointer px-4 py-2 text-white shadow-md bg-genpact-blue-box focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",
|
|
2420
|
-
onClick:
|
|
2421
|
-
}, " Proceed ", 8,
|
|
2451
|
+
onClick: c
|
|
2452
|
+
}, " Proceed ", 8, Ra)
|
|
2422
2453
|
])
|
|
2423
2454
|
]))
|
|
2424
2455
|
])
|
|
2425
2456
|
]),
|
|
2426
2457
|
_: 1
|
|
2427
2458
|
}, 8, ["is-visible", "cross-visible"]),
|
|
2428
|
-
e.value ? (v(),
|
|
2429
|
-
i("div",
|
|
2430
|
-
|
|
2459
|
+
e.value ? (v(), h("main", Ya, [
|
|
2460
|
+
i("div", Ga, [
|
|
2461
|
+
I(dr)
|
|
2431
2462
|
]),
|
|
2432
|
-
i("div",
|
|
2433
|
-
i("div",
|
|
2434
|
-
|
|
2463
|
+
i("div", Sa, [
|
|
2464
|
+
i("div", Pa, [
|
|
2465
|
+
I(Tt)
|
|
2435
2466
|
]),
|
|
2436
|
-
i("div",
|
|
2437
|
-
i("div",
|
|
2438
|
-
|
|
2439
|
-
|
|
2467
|
+
i("div", La, [
|
|
2468
|
+
i("div", Ma, [
|
|
2469
|
+
I(ua),
|
|
2470
|
+
za
|
|
2440
2471
|
]),
|
|
2441
|
-
i("div",
|
|
2442
|
-
|
|
2472
|
+
i("div", Ha, [
|
|
2473
|
+
I(Lr)
|
|
2443
2474
|
])
|
|
2444
2475
|
])
|
|
2445
2476
|
])
|
|
2446
|
-
])) : (v(),
|
|
2477
|
+
])) : (v(), Ae(mr, { key: 1 }))
|
|
2447
2478
|
]));
|
|
2448
2479
|
}
|
|
2449
2480
|
});
|
|
2450
|
-
const
|
|
2481
|
+
const ja = /* @__PURE__ */ st(Oa, [["__scopeId", "data-v-ed61c2a4"]]);
|
|
2451
2482
|
export {
|
|
2452
|
-
|
|
2483
|
+
ja as default
|
|
2453
2484
|
};
|