@genpact/genome.mfe.mgtwin-app 1.1.4-alpha → 1.1.6-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-0243b632.mjs → HomeView-dbd4be28.mjs} +898 -870
- package/dist/{PromptTesting-19e94364.mjs → PromptTesting-60664bfa.mjs} +2 -2
- package/dist/{UnderMaintenance-133c1b04.mjs → UnderMaintenance-d37b6de0.mjs} +1 -1
- package/dist/{loadernew-e14caaa0.mjs → loadernew-e011072e.mjs} +1 -1
- package/dist/{main-af7484f5.mjs → main-4af3ccab.mjs} +346 -346
- 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 Y, 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 Lt, m as fe, v as et, p as Q, q as oo, s as tt, T as Mt, x as Be, y as ro, z as zt, B as Ht, C as no, D as so, E as Ot, G as ke, H as It, 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-4af3ccab.mjs";
|
|
2
|
+
import { p as ge, _ as ho, a as Ze, r as Ao, g as Dt } from "./loadernew-e011072e.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 Tt(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
|
+
}, Nt = /* @__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
|
+
])) : Y("", !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
|
+
])) : Y("", !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, ", ")) : Y("", !0)
|
|
159
145
|
]))), 128))
|
|
160
|
-
])) :
|
|
161
|
-
])) :
|
|
146
|
+
])) : Y("", !0)
|
|
147
|
+
])) : Y("", !0)
|
|
162
148
|
])
|
|
163
149
|
]),
|
|
164
|
-
i("div",
|
|
165
|
-
|
|
166
|
-
onClick: l[0] || (l[0] = (
|
|
150
|
+
i("div", Ho, [
|
|
151
|
+
I(b(Tt), {
|
|
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 ? Y("", !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 ? Y("", !0) : (v(), h("div", er, " No Recent Questions "))
|
|
211
197
|
])
|
|
212
198
|
]);
|
|
213
199
|
};
|
|
@@ -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(Nt, { 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(jt)
|
|
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",
|
|
@@ -316,16 +302,16 @@ const br = /* @__PURE__ */ st(ur, [["render", mr]]), Je = {
|
|
|
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 Qt = "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/${Qt}/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/${Qt}/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(kt[Je[d.slice(1, 3).join(",")]]), l.value = kt[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) || "", C = ((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
|
+
...C.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
|
+
])) : Y("", !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 =
|
|
459
|
-
const
|
|
460
|
-
a.value = We -
|
|
461
|
-
},
|
|
462
|
-
var
|
|
444
|
+
const e = Lt(), 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(Mt, { 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(Tt), {
|
|
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
|
+
])) : Y("", !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
|
+
])) : Y("", !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,27 @@ const Or = { key: 0 }, Lr = {
|
|
|
729
715
|
}, 8, ["is-visible"])
|
|
730
716
|
], 64));
|
|
731
717
|
}
|
|
732
|
-
}),
|
|
718
|
+
}), it = (t) => (zt("data-v-29742a18"), t = t(), Ht(), 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 = /* @__PURE__ */ it(() => /* @__PURE__ */ i("div", { class: "font-medium mt-5 mb-2" }, "Recommended Learning:", -1)), an = {
|
|
722
|
+
key: 0,
|
|
723
|
+
class: "flex flex-wrap gap-2 items-center mt-5"
|
|
724
|
+
}, ln = ["href"], cn = /* @__PURE__ */ it(() => /* @__PURE__ */ i("img", {
|
|
725
|
+
src: Mr,
|
|
726
|
+
alt: "LinkedIn Icon",
|
|
727
|
+
class: "w-4 h-4 fil-current"
|
|
728
|
+
}, null, -1)), dn = { key: 2 }, un = {
|
|
736
729
|
key: 0,
|
|
737
|
-
class: "
|
|
738
|
-
},
|
|
739
|
-
|
|
730
|
+
class: "flex flex-wrap gap-2 items-center mt-5"
|
|
731
|
+
}, pn = ["href"], fn = /* @__PURE__ */ it(() => /* @__PURE__ */ i("img", {
|
|
732
|
+
src: zr,
|
|
733
|
+
alt: "LinkedIn Icon",
|
|
734
|
+
class: "w-4 h-4 fil-current"
|
|
735
|
+
}, null, -1)), vn = {
|
|
736
|
+
key: 3,
|
|
740
737
|
class: "w-full pb-3 flex justify-end"
|
|
741
|
-
},
|
|
738
|
+
}, hn = /* @__PURE__ */ te({
|
|
742
739
|
__name: "AiResponse",
|
|
743
740
|
props: {
|
|
744
741
|
question: {
|
|
@@ -763,66 +760,97 @@ const Or = { key: 0 }, Lr = {
|
|
|
763
760
|
}
|
|
764
761
|
},
|
|
765
762
|
setup(t) {
|
|
766
|
-
const e = t, o =
|
|
763
|
+
const e = t, o = w([]), r = w([]), n = w(!1), s = w(), l = w(!1), a = Ie(), c = le();
|
|
767
764
|
console.log("this is issue", o.value.length);
|
|
768
|
-
const
|
|
769
|
-
var
|
|
765
|
+
const A = async () => {
|
|
766
|
+
var m, d, f;
|
|
770
767
|
try {
|
|
771
768
|
if (!e.showFeedback)
|
|
772
769
|
return;
|
|
773
|
-
const
|
|
770
|
+
const g = {
|
|
774
771
|
question: e.question,
|
|
775
|
-
skill_id:
|
|
776
|
-
past_messages:
|
|
777
|
-
},
|
|
778
|
-
|
|
779
|
-
} catch (
|
|
780
|
-
if (console.error(
|
|
781
|
-
const
|
|
782
|
-
console.error((d =
|
|
772
|
+
skill_id: c.skill_id,
|
|
773
|
+
past_messages: c.past_messages
|
|
774
|
+
}, y = ((m = (await ge("/QuestionToRelevantLinks", g)).data) == null ? void 0 : m.body) || [];
|
|
775
|
+
s.value = y.length, console.log("c2 global length==>", s.value), y.length && (n.value = !0, o.value = y);
|
|
776
|
+
} catch (g) {
|
|
777
|
+
if (console.error(g), Z.isAxiosError(g)) {
|
|
778
|
+
const p = g;
|
|
779
|
+
console.error((d = p.response) == null ? void 0 : d.data), a.setError(((f = p.response) == null ? void 0 : f.data).message);
|
|
783
780
|
} else
|
|
784
|
-
|
|
781
|
+
a.setError("There was an issue, please contact helpmate");
|
|
782
|
+
}
|
|
783
|
+
}, u = async () => {
|
|
784
|
+
var m, d, f;
|
|
785
|
+
try {
|
|
786
|
+
if (!e.showFeedback)
|
|
787
|
+
return;
|
|
788
|
+
const g = {
|
|
789
|
+
question: e.question,
|
|
790
|
+
skill_id: c.skill_id,
|
|
791
|
+
past_messages: c.past_messages
|
|
792
|
+
}, y = ((m = (await ge("/QuestionToLilLinks", g)).data) == null ? void 0 : m.body) || [];
|
|
793
|
+
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));
|
|
794
|
+
} catch (g) {
|
|
795
|
+
if (console.error(g), Z.isAxiosError(g)) {
|
|
796
|
+
const p = g;
|
|
797
|
+
console.error((d = p.response) == null ? void 0 : d.data), a.setError(((f = p.response) == null ? void 0 : f.data).message);
|
|
798
|
+
} else
|
|
799
|
+
a.setError("There was an issue, please contact helpmate");
|
|
785
800
|
}
|
|
786
801
|
};
|
|
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:
|
|
802
|
+
return ro(async () => {
|
|
803
|
+
await A(), u();
|
|
804
|
+
}), (m, d) => (v(), h("div", en, [
|
|
805
|
+
i("div", tn, [
|
|
806
|
+
i("span", { innerHTML: t.answer }, null, 8, on),
|
|
807
|
+
t.showSources ? (v(), h("div", rn, P(t.showSources), 1)) : Y("", !0),
|
|
808
|
+
t.showFeedback ? (v(), h("div", nn, [
|
|
809
|
+
sn,
|
|
810
|
+
n.value ? (v(), h("div", an, [
|
|
811
|
+
(v(!0), h(T, null, F(o.value, (f) => (v(), h("a", {
|
|
812
|
+
href: f.card_deeplink_url,
|
|
798
813
|
target: "_blank",
|
|
799
|
-
key:
|
|
814
|
+
key: f.id,
|
|
800
815
|
class: "bg-blue-100 text-genpact-blue-box rounded-xl px-2 py-1 cursor-pointer flex gap-2 items-center"
|
|
801
816
|
}, [
|
|
802
|
-
|
|
803
|
-
i("div", null, P(
|
|
804
|
-
], 8,
|
|
805
|
-
])
|
|
806
|
-
])) :
|
|
807
|
-
t.showFeedback ? (v(),
|
|
808
|
-
|
|
809
|
-
|
|
817
|
+
cn,
|
|
818
|
+
i("div", null, P(f.Content_Title), 1)
|
|
819
|
+
], 8, ln))), 128))
|
|
820
|
+
])) : Y("", !0)
|
|
821
|
+
])) : Y("", !0),
|
|
822
|
+
t.showFeedback ? (v(), h("div", dn, [
|
|
823
|
+
l.value ? (v(), h("div", un, [
|
|
824
|
+
(v(!0), h(T, null, F(r.value, (f) => (v(), h("a", {
|
|
825
|
+
href: f.card_deeplink_url,
|
|
826
|
+
target: "_blank",
|
|
827
|
+
key: f.id,
|
|
828
|
+
class: "bg-blue-100 text-genpact-blue-box rounded-xl px-2 py-1 cursor-pointer flex gap-2 items-center"
|
|
829
|
+
}, [
|
|
830
|
+
fn,
|
|
831
|
+
i("div", null, P(f.Content_Title), 1)
|
|
832
|
+
], 8, pn))), 128))
|
|
833
|
+
])) : Y("", !0)
|
|
834
|
+
])) : Y("", !0),
|
|
835
|
+
t.showFeedback ? (v(), h("div", vn, [
|
|
836
|
+
I($r, { "question-id": t.questionId }, null, 8, ["question-id"])
|
|
837
|
+
])) : Y("", !0)
|
|
810
838
|
])
|
|
811
839
|
]));
|
|
812
840
|
}
|
|
813
841
|
});
|
|
814
|
-
const
|
|
842
|
+
const An = /* @__PURE__ */ st(hn, [["__scopeId", "data-v-29742a18"]]), 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
843
|
__name: "Greetings",
|
|
816
844
|
setup(t) {
|
|
817
845
|
const e = le();
|
|
818
|
-
return (o, r) => (v(),
|
|
819
|
-
i("div",
|
|
820
|
-
i("div",
|
|
821
|
-
|
|
846
|
+
return (o, r) => (v(), h("div", mn, [
|
|
847
|
+
i("div", bn, [
|
|
848
|
+
i("div", gn, " Hello " + P(b(e).learnerName || "Learner") + "! 👋 ", 1),
|
|
849
|
+
yn
|
|
822
850
|
])
|
|
823
851
|
]));
|
|
824
852
|
}
|
|
825
|
-
},
|
|
853
|
+
}, 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
854
|
__name: "LearnerResponse",
|
|
827
855
|
props: {
|
|
828
856
|
question: {
|
|
@@ -835,9 +863,9 @@ const cn = /* @__PURE__ */ st(ln, [["__scopeId", "data-v-cef8a384"]]), dn = { cl
|
|
|
835
863
|
}
|
|
836
864
|
},
|
|
837
865
|
setup(t) {
|
|
838
|
-
return (e, o) => (v(),
|
|
839
|
-
i("div",
|
|
840
|
-
i("div",
|
|
866
|
+
return (e, o) => (v(), h("div", wn, [
|
|
867
|
+
i("div", In, [
|
|
868
|
+
i("div", kn, P(t.question), 1)
|
|
841
869
|
])
|
|
842
870
|
]));
|
|
843
871
|
}
|
|
@@ -845,49 +873,49 @@ const cn = /* @__PURE__ */ st(ln, [["__scopeId", "data-v-cef8a384"]]), dn = { cl
|
|
|
845
873
|
function ot(t, e, o) {
|
|
846
874
|
var r, n, s, l, a;
|
|
847
875
|
e == null && (e = 100);
|
|
848
|
-
function
|
|
849
|
-
var
|
|
850
|
-
|
|
876
|
+
function c() {
|
|
877
|
+
var u = Date.now() - l;
|
|
878
|
+
u < e && u >= 0 ? r = setTimeout(c, e - u) : (r = null, o || (a = t.apply(s, n), s = n = null));
|
|
851
879
|
}
|
|
852
|
-
var
|
|
880
|
+
var A = function() {
|
|
853
881
|
s = this, n = arguments, l = Date.now();
|
|
854
|
-
var
|
|
855
|
-
return r || (r = setTimeout(
|
|
882
|
+
var u = o && !r;
|
|
883
|
+
return r || (r = setTimeout(c, e)), u && (a = t.apply(s, n), s = n = null), a;
|
|
856
884
|
};
|
|
857
|
-
return
|
|
885
|
+
return A.clear = function() {
|
|
858
886
|
r && (clearTimeout(r), r = null);
|
|
859
|
-
},
|
|
887
|
+
}, A.flush = function() {
|
|
860
888
|
r && (a = t.apply(s, n), s = n = null, clearTimeout(r), r = null);
|
|
861
|
-
},
|
|
889
|
+
}, A;
|
|
862
890
|
}
|
|
863
891
|
ot.debounce = ot;
|
|
864
892
|
var _e = ot;
|
|
865
|
-
function
|
|
866
|
-
|
|
893
|
+
function Cn(t, e, o) {
|
|
894
|
+
po(t) ? be(t, (r, n) => {
|
|
867
895
|
n == null || n.removeEventListener(e, o), r == null || r.addEventListener(e, o);
|
|
868
896
|
}) : Se(() => {
|
|
869
897
|
t.addEventListener(e, o);
|
|
870
898
|
}), nt(() => {
|
|
871
899
|
var r;
|
|
872
|
-
(r =
|
|
900
|
+
(r = b(t)) === null || r === void 0 || r.removeEventListener(e, o);
|
|
873
901
|
});
|
|
874
902
|
}
|
|
875
|
-
function
|
|
903
|
+
function Rn(t, e) {
|
|
876
904
|
const o = "pointerdown";
|
|
877
|
-
return typeof window > "u" || !window ? void 0 :
|
|
878
|
-
const s =
|
|
905
|
+
return typeof window > "u" || !window ? void 0 : Cn(window, o, (n) => {
|
|
906
|
+
const s = b(t);
|
|
879
907
|
s && (s === n.target || n.composedPath().includes(s) || e(n));
|
|
880
908
|
});
|
|
881
909
|
}
|
|
882
|
-
function
|
|
910
|
+
function Yn(t, e, o) {
|
|
883
911
|
let r = null;
|
|
884
|
-
const n =
|
|
912
|
+
const n = w(!1);
|
|
885
913
|
Se(() => {
|
|
886
914
|
(t.content !== void 0 || o.value) && (n.value = !0), r = new MutationObserver(s), r.observe(e.value, {
|
|
887
915
|
childList: !0,
|
|
888
916
|
subtree: !0
|
|
889
917
|
});
|
|
890
|
-
}), nt(() => r.disconnect()),
|
|
918
|
+
}), nt(() => r.disconnect()), be(o, (l) => {
|
|
891
919
|
l ? n.value = !0 : n.value = !1;
|
|
892
920
|
});
|
|
893
921
|
const s = () => {
|
|
@@ -897,7 +925,7 @@ function wn(t, e, o) {
|
|
|
897
925
|
hasContent: n
|
|
898
926
|
};
|
|
899
927
|
}
|
|
900
|
-
function
|
|
928
|
+
function ye(t, e) {
|
|
901
929
|
var o = t.getBoundingClientRect(), r = 1, n = 1;
|
|
902
930
|
return {
|
|
903
931
|
width: o.width / r,
|
|
@@ -919,64 +947,64 @@ function W(t) {
|
|
|
919
947
|
}
|
|
920
948
|
return t;
|
|
921
949
|
}
|
|
922
|
-
function
|
|
950
|
+
function lt(t) {
|
|
923
951
|
var e = W(t), o = e.pageXOffset, r = e.pageYOffset;
|
|
924
952
|
return {
|
|
925
953
|
scrollLeft: o,
|
|
926
954
|
scrollTop: r
|
|
927
955
|
};
|
|
928
956
|
}
|
|
929
|
-
function
|
|
957
|
+
function Re(t) {
|
|
930
958
|
var e = W(t).Element;
|
|
931
959
|
return t instanceof e || t instanceof Element;
|
|
932
960
|
}
|
|
933
|
-
function
|
|
961
|
+
function V(t) {
|
|
934
962
|
var e = W(t).HTMLElement;
|
|
935
963
|
return t instanceof e || t instanceof HTMLElement;
|
|
936
964
|
}
|
|
937
|
-
function
|
|
965
|
+
function Ft(t) {
|
|
938
966
|
if (typeof ShadowRoot > "u")
|
|
939
967
|
return !1;
|
|
940
968
|
var e = W(t).ShadowRoot;
|
|
941
969
|
return t instanceof e || t instanceof ShadowRoot;
|
|
942
970
|
}
|
|
943
|
-
function
|
|
971
|
+
function Gn(t) {
|
|
944
972
|
return {
|
|
945
973
|
scrollLeft: t.scrollLeft,
|
|
946
974
|
scrollTop: t.scrollTop
|
|
947
975
|
};
|
|
948
976
|
}
|
|
949
|
-
function
|
|
950
|
-
return t === W(t) || !
|
|
977
|
+
function Sn(t) {
|
|
978
|
+
return t === W(t) || !V(t) ? lt(t) : Gn(t);
|
|
951
979
|
}
|
|
952
980
|
function ee(t) {
|
|
953
981
|
return t ? (t.nodeName || "").toLowerCase() : null;
|
|
954
982
|
}
|
|
955
983
|
function ue(t) {
|
|
956
|
-
return ((
|
|
984
|
+
return ((Re(t) ? t.ownerDocument : (
|
|
957
985
|
// $FlowFixMe[prop-missing]
|
|
958
986
|
t.document
|
|
959
987
|
)) || window.document).documentElement;
|
|
960
988
|
}
|
|
961
|
-
function
|
|
962
|
-
return
|
|
989
|
+
function ct(t) {
|
|
990
|
+
return ye(ue(t)).left + lt(t).scrollLeft;
|
|
963
991
|
}
|
|
964
992
|
function ie(t) {
|
|
965
993
|
return W(t).getComputedStyle(t);
|
|
966
994
|
}
|
|
967
|
-
function
|
|
995
|
+
function dt(t) {
|
|
968
996
|
var e = ie(t), o = e.overflow, r = e.overflowX, n = e.overflowY;
|
|
969
997
|
return /auto|scroll|overlay|hidden/.test(o + n + r);
|
|
970
998
|
}
|
|
971
|
-
function
|
|
999
|
+
function Pn(t) {
|
|
972
1000
|
var e = t.getBoundingClientRect(), o = e.width / t.offsetWidth || 1, r = e.height / t.offsetHeight || 1;
|
|
973
1001
|
return o !== 1 || r !== 1;
|
|
974
1002
|
}
|
|
975
|
-
function
|
|
1003
|
+
function Ln(t, e, o) {
|
|
976
1004
|
o === void 0 && (o = !1);
|
|
977
|
-
var r =
|
|
978
|
-
|
|
979
|
-
var n = ue(e), s =
|
|
1005
|
+
var r = V(e);
|
|
1006
|
+
V(e) && Pn(e);
|
|
1007
|
+
var n = ue(e), s = ye(t), l = {
|
|
980
1008
|
scrollLeft: 0,
|
|
981
1009
|
scrollTop: 0
|
|
982
1010
|
}, a = {
|
|
@@ -984,15 +1012,15 @@ function Rn(t, e, o) {
|
|
|
984
1012
|
y: 0
|
|
985
1013
|
};
|
|
986
1014
|
return (r || !r && !o) && ((ee(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
987
|
-
|
|
1015
|
+
dt(n)) && (l = Sn(e)), V(e) ? (a = ye(e), a.x += e.clientLeft, a.y += e.clientTop) : n && (a.x = ct(n))), {
|
|
988
1016
|
x: s.left + l.scrollLeft - a.x,
|
|
989
1017
|
y: s.top + l.scrollTop - a.y,
|
|
990
1018
|
width: s.width,
|
|
991
1019
|
height: s.height
|
|
992
1020
|
};
|
|
993
1021
|
}
|
|
994
|
-
function
|
|
995
|
-
var e =
|
|
1022
|
+
function ut(t) {
|
|
1023
|
+
var e = ye(t), o = t.offsetWidth, r = t.offsetHeight;
|
|
996
1024
|
return Math.abs(e.width - o) <= 1 && (o = e.width), Math.abs(e.height - r) <= 1 && (r = e.height), {
|
|
997
1025
|
x: t.offsetLeft,
|
|
998
1026
|
y: t.offsetTop,
|
|
@@ -1000,45 +1028,45 @@ function dt(t) {
|
|
|
1000
1028
|
height: r
|
|
1001
1029
|
};
|
|
1002
1030
|
}
|
|
1003
|
-
function
|
|
1031
|
+
function Ke(t) {
|
|
1004
1032
|
return ee(t) === "html" ? t : (
|
|
1005
1033
|
// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
1006
1034
|
// $FlowFixMe[incompatible-return]
|
|
1007
1035
|
// $FlowFixMe[prop-missing]
|
|
1008
1036
|
t.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
1009
1037
|
t.parentNode || // DOM Element detected
|
|
1010
|
-
(
|
|
1038
|
+
(Ft(t) ? t.host : null) || // ShadowRoot detected
|
|
1011
1039
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
1012
1040
|
ue(t)
|
|
1013
1041
|
);
|
|
1014
1042
|
}
|
|
1015
|
-
function
|
|
1016
|
-
return ["html", "body", "#document"].indexOf(ee(t)) >= 0 ? t.ownerDocument.body :
|
|
1043
|
+
function qt(t) {
|
|
1044
|
+
return ["html", "body", "#document"].indexOf(ee(t)) >= 0 ? t.ownerDocument.body : V(t) && dt(t) ? t : qt(Ke(t));
|
|
1017
1045
|
}
|
|
1018
|
-
function
|
|
1046
|
+
function Ce(t, e) {
|
|
1019
1047
|
var o;
|
|
1020
1048
|
e === void 0 && (e = []);
|
|
1021
|
-
var r =
|
|
1049
|
+
var r = qt(t), n = r === ((o = t.ownerDocument) == null ? void 0 : o.body), s = W(r), l = n ? [s].concat(s.visualViewport || [], dt(r) ? r : []) : r, a = e.concat(l);
|
|
1022
1050
|
return n ? a : (
|
|
1023
1051
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
1024
|
-
a.concat(
|
|
1052
|
+
a.concat(Ce(Ke(l)))
|
|
1025
1053
|
);
|
|
1026
1054
|
}
|
|
1027
|
-
function
|
|
1055
|
+
function Mn(t) {
|
|
1028
1056
|
return ["table", "td", "th"].indexOf(ee(t)) >= 0;
|
|
1029
1057
|
}
|
|
1030
1058
|
function Et(t) {
|
|
1031
|
-
return !
|
|
1059
|
+
return !V(t) || // https://github.com/popperjs/popper-core/issues/837
|
|
1032
1060
|
ie(t).position === "fixed" ? null : t.offsetParent;
|
|
1033
1061
|
}
|
|
1034
|
-
function
|
|
1062
|
+
function zn(t) {
|
|
1035
1063
|
var e = navigator.userAgent.toLowerCase().indexOf("firefox") !== -1, o = navigator.userAgent.indexOf("Trident") !== -1;
|
|
1036
|
-
if (o &&
|
|
1064
|
+
if (o && V(t)) {
|
|
1037
1065
|
var r = ie(t);
|
|
1038
1066
|
if (r.position === "fixed")
|
|
1039
1067
|
return null;
|
|
1040
1068
|
}
|
|
1041
|
-
for (var n =
|
|
1069
|
+
for (var n = Ke(t); V(n) && ["html", "body"].indexOf(ee(n)) < 0; ) {
|
|
1042
1070
|
var s = ie(n);
|
|
1043
1071
|
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
1072
|
return n;
|
|
@@ -1047,16 +1075,16 @@ function Gn(t) {
|
|
|
1047
1075
|
return null;
|
|
1048
1076
|
}
|
|
1049
1077
|
function Pe(t) {
|
|
1050
|
-
for (var e = W(t), o = Et(t); o &&
|
|
1078
|
+
for (var e = W(t), o = Et(t); o && Mn(o) && ie(o).position === "static"; )
|
|
1051
1079
|
o = Et(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
|
|
1080
|
+
return o && (ee(o) === "html" || ee(o) === "body" && ie(o).position === "static") ? e : o || zn(t) || e;
|
|
1081
|
+
}
|
|
1082
|
+
var K = "top", U = "bottom", B = "right", X = "left", pt = "auto", Le = [K, U, B, X], xe = "start", Ye = "end", Hn = "clippingParents", Zt = "viewport", Ee = "popper", On = "reference", Ct = /* @__PURE__ */ Le.reduce(function(t, e) {
|
|
1083
|
+
return t.concat([e + "-" + xe, e + "-" + Ye]);
|
|
1084
|
+
}, []), Vt = /* @__PURE__ */ [].concat(Le, [pt]).reduce(function(t, e) {
|
|
1085
|
+
return t.concat([e, e + "-" + xe, e + "-" + Ye]);
|
|
1086
|
+
}, []), 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];
|
|
1087
|
+
function Xn(t) {
|
|
1060
1088
|
var e = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Set(), r = [];
|
|
1061
1089
|
t.forEach(function(s) {
|
|
1062
1090
|
e.set(s.name, s);
|
|
@@ -1066,8 +1094,8 @@ function Tn(t) {
|
|
|
1066
1094
|
var l = [].concat(s.requires || [], s.requiresIfExists || []);
|
|
1067
1095
|
l.forEach(function(a) {
|
|
1068
1096
|
if (!o.has(a)) {
|
|
1069
|
-
var
|
|
1070
|
-
|
|
1097
|
+
var c = e.get(a);
|
|
1098
|
+
c && n(c);
|
|
1071
1099
|
}
|
|
1072
1100
|
}), r.push(s);
|
|
1073
1101
|
}
|
|
@@ -1075,15 +1103,15 @@ function Tn(t) {
|
|
|
1075
1103
|
o.has(s.name) || n(s);
|
|
1076
1104
|
}), r;
|
|
1077
1105
|
}
|
|
1078
|
-
function
|
|
1079
|
-
var e =
|
|
1080
|
-
return
|
|
1106
|
+
function Un(t) {
|
|
1107
|
+
var e = Xn(t);
|
|
1108
|
+
return Kn.reduce(function(o, r) {
|
|
1081
1109
|
return o.concat(e.filter(function(n) {
|
|
1082
1110
|
return n.phase === r;
|
|
1083
1111
|
}));
|
|
1084
1112
|
}, []);
|
|
1085
1113
|
}
|
|
1086
|
-
function
|
|
1114
|
+
function Bn(t) {
|
|
1087
1115
|
var e;
|
|
1088
1116
|
return function() {
|
|
1089
1117
|
return e || (e = new Promise(function(o) {
|
|
@@ -1096,7 +1124,7 @@ function qn(t) {
|
|
|
1096
1124
|
function $(t) {
|
|
1097
1125
|
return t.split("-")[0];
|
|
1098
1126
|
}
|
|
1099
|
-
function
|
|
1127
|
+
function Wn(t) {
|
|
1100
1128
|
var e = t.reduce(function(o, r) {
|
|
1101
1129
|
var n = o[r.name];
|
|
1102
1130
|
return o[r.name] = n ? Object.assign({}, n, r, {
|
|
@@ -1108,30 +1136,30 @@ function Vn(t) {
|
|
|
1108
1136
|
return e[o];
|
|
1109
1137
|
});
|
|
1110
1138
|
}
|
|
1111
|
-
function
|
|
1139
|
+
function Jn(t) {
|
|
1112
1140
|
var e = W(t), o = ue(t), r = e.visualViewport, n = o.clientWidth, s = o.clientHeight, l = 0, a = 0;
|
|
1113
1141
|
return r && (n = r.width, s = r.height, /^((?!chrome|android).)*safari/i.test(navigator.userAgent) || (l = r.offsetLeft, a = r.offsetTop)), {
|
|
1114
1142
|
width: n,
|
|
1115
1143
|
height: s,
|
|
1116
|
-
x: l +
|
|
1144
|
+
x: l + ct(t),
|
|
1117
1145
|
y: a
|
|
1118
1146
|
};
|
|
1119
1147
|
}
|
|
1120
|
-
var de = Math.max,
|
|
1121
|
-
function
|
|
1122
|
-
var e, o = ue(t), r =
|
|
1148
|
+
var de = Math.max, Ge = Math.min, De = Math.round;
|
|
1149
|
+
function _n(t) {
|
|
1150
|
+
var e, o = ue(t), r = lt(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 + ct(t), c = -r.scrollTop;
|
|
1123
1151
|
return ie(n || o).direction === "rtl" && (a += de(o.clientWidth, n ? n.clientWidth : 0) - s), {
|
|
1124
1152
|
width: s,
|
|
1125
1153
|
height: l,
|
|
1126
1154
|
x: a,
|
|
1127
|
-
y:
|
|
1155
|
+
y: c
|
|
1128
1156
|
};
|
|
1129
1157
|
}
|
|
1130
|
-
function
|
|
1158
|
+
function Kt(t, e) {
|
|
1131
1159
|
var o = e.getRootNode && e.getRootNode();
|
|
1132
1160
|
if (t.contains(e))
|
|
1133
1161
|
return !0;
|
|
1134
|
-
if (o &&
|
|
1162
|
+
if (o && Ft(o)) {
|
|
1135
1163
|
var r = e;
|
|
1136
1164
|
do {
|
|
1137
1165
|
if (r && t.isSameNode(r))
|
|
@@ -1149,80 +1177,80 @@ function rt(t) {
|
|
|
1149
1177
|
bottom: t.y + t.height
|
|
1150
1178
|
});
|
|
1151
1179
|
}
|
|
1152
|
-
function
|
|
1153
|
-
var e =
|
|
1180
|
+
function $n(t) {
|
|
1181
|
+
var e = ye(t);
|
|
1154
1182
|
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
1183
|
}
|
|
1156
|
-
function
|
|
1157
|
-
return e ===
|
|
1184
|
+
function Rt(t, e) {
|
|
1185
|
+
return e === Zt ? rt(Jn(t)) : V(e) ? $n(e) : rt(_n(ue(t)));
|
|
1158
1186
|
}
|
|
1159
|
-
function
|
|
1160
|
-
var e =
|
|
1161
|
-
return
|
|
1162
|
-
return
|
|
1187
|
+
function es(t) {
|
|
1188
|
+
var e = Ce(Ke(t)), o = ["absolute", "fixed"].indexOf(ie(t).position) >= 0, r = o && V(t) ? Pe(t) : t;
|
|
1189
|
+
return Re(r) ? e.filter(function(n) {
|
|
1190
|
+
return Re(n) && Kt(n, r) && ee(n) !== "body";
|
|
1163
1191
|
}) : [];
|
|
1164
1192
|
}
|
|
1165
|
-
function
|
|
1166
|
-
var r = e === "clippingParents" ?
|
|
1167
|
-
var
|
|
1168
|
-
return a.top = de(
|
|
1169
|
-
},
|
|
1193
|
+
function ts(t, e, o) {
|
|
1194
|
+
var r = e === "clippingParents" ? es(t) : [].concat(e), n = [].concat(r, [o]), s = n[0], l = n.reduce(function(a, c) {
|
|
1195
|
+
var A = Rt(t, c);
|
|
1196
|
+
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;
|
|
1197
|
+
}, Rt(t, s));
|
|
1170
1198
|
return l.width = l.right - l.left, l.height = l.bottom - l.top, l.x = l.left, l.y = l.top, l;
|
|
1171
1199
|
}
|
|
1172
1200
|
function we(t) {
|
|
1173
1201
|
return t.split("-")[1];
|
|
1174
1202
|
}
|
|
1175
|
-
function
|
|
1203
|
+
function ft(t) {
|
|
1176
1204
|
return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
|
|
1177
1205
|
}
|
|
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,
|
|
1206
|
+
function Xt(t) {
|
|
1207
|
+
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
1208
|
switch (n) {
|
|
1181
1209
|
case K:
|
|
1182
|
-
|
|
1210
|
+
c = {
|
|
1183
1211
|
x: l,
|
|
1184
1212
|
y: e.y - o.height
|
|
1185
1213
|
};
|
|
1186
1214
|
break;
|
|
1187
1215
|
case U:
|
|
1188
|
-
|
|
1216
|
+
c = {
|
|
1189
1217
|
x: l,
|
|
1190
1218
|
y: e.y + e.height
|
|
1191
1219
|
};
|
|
1192
1220
|
break;
|
|
1193
1221
|
case B:
|
|
1194
|
-
|
|
1222
|
+
c = {
|
|
1195
1223
|
x: e.x + e.width,
|
|
1196
1224
|
y: a
|
|
1197
1225
|
};
|
|
1198
1226
|
break;
|
|
1199
|
-
case
|
|
1200
|
-
|
|
1227
|
+
case X:
|
|
1228
|
+
c = {
|
|
1201
1229
|
x: e.x - o.width,
|
|
1202
1230
|
y: a
|
|
1203
1231
|
};
|
|
1204
1232
|
break;
|
|
1205
1233
|
default:
|
|
1206
|
-
|
|
1234
|
+
c = {
|
|
1207
1235
|
x: e.x,
|
|
1208
1236
|
y: e.y
|
|
1209
1237
|
};
|
|
1210
1238
|
}
|
|
1211
|
-
var
|
|
1212
|
-
if (
|
|
1213
|
-
var
|
|
1239
|
+
var A = n ? ft(n) : null;
|
|
1240
|
+
if (A != null) {
|
|
1241
|
+
var u = A === "y" ? "height" : "width";
|
|
1214
1242
|
switch (s) {
|
|
1215
1243
|
case xe:
|
|
1216
|
-
|
|
1244
|
+
c[A] = c[A] - (e[u] / 2 - o[u] / 2);
|
|
1217
1245
|
break;
|
|
1218
|
-
case
|
|
1219
|
-
|
|
1246
|
+
case Ye:
|
|
1247
|
+
c[A] = c[A] + (e[u] / 2 - o[u] / 2);
|
|
1220
1248
|
break;
|
|
1221
1249
|
}
|
|
1222
1250
|
}
|
|
1223
|
-
return
|
|
1251
|
+
return c;
|
|
1224
1252
|
}
|
|
1225
|
-
function
|
|
1253
|
+
function Ut() {
|
|
1226
1254
|
return {
|
|
1227
1255
|
top: 0,
|
|
1228
1256
|
right: 0,
|
|
@@ -1230,76 +1258,76 @@ function Kt() {
|
|
|
1230
1258
|
left: 0
|
|
1231
1259
|
};
|
|
1232
1260
|
}
|
|
1233
|
-
function
|
|
1234
|
-
return Object.assign({},
|
|
1261
|
+
function Bt(t) {
|
|
1262
|
+
return Object.assign({}, Ut(), t);
|
|
1235
1263
|
}
|
|
1236
|
-
function
|
|
1264
|
+
function Wt(t, e) {
|
|
1237
1265
|
return e.reduce(function(o, r) {
|
|
1238
1266
|
return o[r] = t, o;
|
|
1239
1267
|
}, {});
|
|
1240
1268
|
}
|
|
1241
|
-
function
|
|
1269
|
+
function vt(t, e) {
|
|
1242
1270
|
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:
|
|
1271
|
+
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, C = t.elements[d ? y : u], k = ts(Re(C) ? C : C.contextElement || ue(t.elements.popper), l, c), x = ye(t.elements.reference), S = Xt({
|
|
1272
|
+
reference: x,
|
|
1273
|
+
element: E,
|
|
1246
1274
|
strategy: "absolute",
|
|
1247
1275
|
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
|
-
|
|
1276
|
+
}), R = rt(Object.assign({}, E, S)), G = u === Ee ? R : x, M = {
|
|
1277
|
+
top: k.top - G.top + p.top,
|
|
1278
|
+
bottom: G.bottom - k.bottom + p.bottom,
|
|
1279
|
+
left: k.left - G.left + p.left,
|
|
1280
|
+
right: G.right - k.right + p.right
|
|
1281
|
+
}, L = t.modifiersData.offset;
|
|
1282
|
+
if (u === Ee && L) {
|
|
1283
|
+
var N = L[n];
|
|
1284
|
+
Object.keys(M).forEach(function(j) {
|
|
1285
|
+
var oe = [B, U].indexOf(j) >= 0 ? 1 : -1, z = [K, U].indexOf(j) >= 0 ? "y" : "x";
|
|
1286
|
+
M[j] += N[z] * oe;
|
|
1259
1287
|
});
|
|
1260
1288
|
}
|
|
1261
|
-
return
|
|
1289
|
+
return M;
|
|
1262
1290
|
}
|
|
1263
|
-
var
|
|
1291
|
+
var Yt = {
|
|
1264
1292
|
placement: "bottom",
|
|
1265
1293
|
modifiers: [],
|
|
1266
1294
|
strategy: "absolute"
|
|
1267
1295
|
};
|
|
1268
|
-
function
|
|
1296
|
+
function Gt() {
|
|
1269
1297
|
for (var t = arguments.length, e = new Array(t), o = 0; o < t; o++)
|
|
1270
1298
|
e[o] = arguments[o];
|
|
1271
1299
|
return !e.some(function(r) {
|
|
1272
1300
|
return !(r && typeof r.getBoundingClientRect == "function");
|
|
1273
1301
|
});
|
|
1274
1302
|
}
|
|
1275
|
-
function
|
|
1303
|
+
function os(t) {
|
|
1276
1304
|
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
|
|
1305
|
+
var e = t, o = e.defaultModifiers, r = o === void 0 ? [] : o, n = e.defaultOptions, s = n === void 0 ? Yt : n;
|
|
1306
|
+
return function(a, c, A) {
|
|
1307
|
+
A === void 0 && (A = s);
|
|
1308
|
+
var u = {
|
|
1281
1309
|
placement: "bottom",
|
|
1282
1310
|
orderedModifiers: [],
|
|
1283
|
-
options: Object.assign({},
|
|
1311
|
+
options: Object.assign({}, Yt, s),
|
|
1284
1312
|
modifiersData: {},
|
|
1285
1313
|
elements: {
|
|
1286
1314
|
reference: a,
|
|
1287
|
-
popper:
|
|
1315
|
+
popper: c
|
|
1288
1316
|
},
|
|
1289
1317
|
attributes: {},
|
|
1290
1318
|
styles: {}
|
|
1291
|
-
},
|
|
1292
|
-
state:
|
|
1293
|
-
setOptions: function(
|
|
1294
|
-
var
|
|
1295
|
-
p(),
|
|
1296
|
-
reference:
|
|
1297
|
-
popper:
|
|
1319
|
+
}, m = [], d = !1, f = {
|
|
1320
|
+
state: u,
|
|
1321
|
+
setOptions: function(E) {
|
|
1322
|
+
var C = typeof E == "function" ? E(u.options) : E;
|
|
1323
|
+
p(), u.options = Object.assign({}, s, u.options, C), u.scrollParents = {
|
|
1324
|
+
reference: Re(a) ? Ce(a) : a.contextElement ? Ce(a.contextElement) : [],
|
|
1325
|
+
popper: Ce(c)
|
|
1298
1326
|
};
|
|
1299
|
-
var
|
|
1300
|
-
return
|
|
1301
|
-
return
|
|
1302
|
-
}),
|
|
1327
|
+
var k = Un(Wn([].concat(r, u.options.modifiers)));
|
|
1328
|
+
return u.orderedModifiers = k.filter(function(x) {
|
|
1329
|
+
return x.enabled;
|
|
1330
|
+
}), g(), f.update();
|
|
1303
1331
|
},
|
|
1304
1332
|
// Sync update – it will always be executed, even if not necessary. This
|
|
1305
1333
|
// is useful for low frequency updates where sync behavior simplifies the
|
|
@@ -1307,175 +1335,175 @@ function Bn(t) {
|
|
|
1307
1335
|
// For high frequency updates (e.g. `resize` and `scroll` events), always
|
|
1308
1336
|
// prefer the async Popper#update method
|
|
1309
1337
|
forceUpdate: function() {
|
|
1310
|
-
if (!
|
|
1311
|
-
var
|
|
1312
|
-
if (
|
|
1313
|
-
|
|
1314
|
-
reference:
|
|
1315
|
-
popper:
|
|
1316
|
-
},
|
|
1317
|
-
return
|
|
1338
|
+
if (!d) {
|
|
1339
|
+
var E = u.elements, C = E.reference, k = E.popper;
|
|
1340
|
+
if (Gt(C, k)) {
|
|
1341
|
+
u.rects = {
|
|
1342
|
+
reference: Ln(C, Pe(k), u.options.strategy === "fixed"),
|
|
1343
|
+
popper: ut(k)
|
|
1344
|
+
}, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(N) {
|
|
1345
|
+
return u.modifiersData[N.name] = Object.assign({}, N.data);
|
|
1318
1346
|
});
|
|
1319
|
-
for (var
|
|
1320
|
-
if (
|
|
1321
|
-
|
|
1347
|
+
for (var x = 0; x < u.orderedModifiers.length; x++) {
|
|
1348
|
+
if (u.reset === !0) {
|
|
1349
|
+
u.reset = !1, x = -1;
|
|
1322
1350
|
continue;
|
|
1323
1351
|
}
|
|
1324
|
-
var
|
|
1325
|
-
typeof
|
|
1326
|
-
state:
|
|
1327
|
-
options:
|
|
1328
|
-
name:
|
|
1352
|
+
var S = u.orderedModifiers[x], R = S.fn, G = S.options, M = G === void 0 ? {} : G, L = S.name;
|
|
1353
|
+
typeof R == "function" && (u = R({
|
|
1354
|
+
state: u,
|
|
1355
|
+
options: M,
|
|
1356
|
+
name: L,
|
|
1329
1357
|
instance: f
|
|
1330
|
-
}) ||
|
|
1358
|
+
}) || u);
|
|
1331
1359
|
}
|
|
1332
1360
|
}
|
|
1333
1361
|
}
|
|
1334
1362
|
},
|
|
1335
1363
|
// Async and optimistically optimized update – it will not be executed if
|
|
1336
1364
|
// not necessary (debounced to run at most once-per-tick)
|
|
1337
|
-
update:
|
|
1338
|
-
return new Promise(function(
|
|
1339
|
-
f.forceUpdate(),
|
|
1365
|
+
update: Bn(function() {
|
|
1366
|
+
return new Promise(function(y) {
|
|
1367
|
+
f.forceUpdate(), y(u);
|
|
1340
1368
|
});
|
|
1341
1369
|
}),
|
|
1342
1370
|
destroy: function() {
|
|
1343
|
-
p(),
|
|
1371
|
+
p(), d = !0;
|
|
1344
1372
|
}
|
|
1345
1373
|
};
|
|
1346
|
-
if (!
|
|
1374
|
+
if (!Gt(a, c))
|
|
1347
1375
|
return f;
|
|
1348
|
-
f.setOptions(
|
|
1349
|
-
!
|
|
1376
|
+
f.setOptions(A).then(function(y) {
|
|
1377
|
+
!d && A.onFirstUpdate && A.onFirstUpdate(y);
|
|
1350
1378
|
});
|
|
1351
|
-
function
|
|
1352
|
-
|
|
1353
|
-
var
|
|
1354
|
-
if (typeof
|
|
1355
|
-
var
|
|
1356
|
-
state:
|
|
1357
|
-
name:
|
|
1379
|
+
function g() {
|
|
1380
|
+
u.orderedModifiers.forEach(function(y) {
|
|
1381
|
+
var E = y.name, C = y.options, k = C === void 0 ? {} : C, x = y.effect;
|
|
1382
|
+
if (typeof x == "function") {
|
|
1383
|
+
var S = x({
|
|
1384
|
+
state: u,
|
|
1385
|
+
name: E,
|
|
1358
1386
|
instance: f,
|
|
1359
|
-
options:
|
|
1360
|
-
}),
|
|
1387
|
+
options: k
|
|
1388
|
+
}), R = function() {
|
|
1361
1389
|
};
|
|
1362
|
-
|
|
1390
|
+
m.push(S || R);
|
|
1363
1391
|
}
|
|
1364
1392
|
});
|
|
1365
1393
|
}
|
|
1366
1394
|
function p() {
|
|
1367
|
-
|
|
1368
|
-
return
|
|
1369
|
-
}),
|
|
1395
|
+
m.forEach(function(y) {
|
|
1396
|
+
return y();
|
|
1397
|
+
}), m = [];
|
|
1370
1398
|
}
|
|
1371
1399
|
return f;
|
|
1372
1400
|
};
|
|
1373
1401
|
}
|
|
1374
|
-
var
|
|
1402
|
+
var Te = {
|
|
1375
1403
|
passive: !0
|
|
1376
1404
|
};
|
|
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 &&
|
|
1405
|
+
function rs(t) {
|
|
1406
|
+
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);
|
|
1407
|
+
return s && A.forEach(function(u) {
|
|
1408
|
+
u.addEventListener("scroll", o.update, Te);
|
|
1409
|
+
}), a && c.addEventListener("resize", o.update, Te), function() {
|
|
1410
|
+
s && A.forEach(function(u) {
|
|
1411
|
+
u.removeEventListener("scroll", o.update, Te);
|
|
1412
|
+
}), a && c.removeEventListener("resize", o.update, Te);
|
|
1385
1413
|
};
|
|
1386
1414
|
}
|
|
1387
|
-
var
|
|
1415
|
+
var ns = {
|
|
1388
1416
|
name: "eventListeners",
|
|
1389
1417
|
enabled: !0,
|
|
1390
1418
|
phase: "write",
|
|
1391
1419
|
fn: function() {
|
|
1392
1420
|
},
|
|
1393
|
-
effect:
|
|
1421
|
+
effect: rs,
|
|
1394
1422
|
data: {}
|
|
1395
1423
|
};
|
|
1396
|
-
function
|
|
1424
|
+
function ss(t) {
|
|
1397
1425
|
var e = t.state, o = t.name;
|
|
1398
|
-
e.modifiersData[o] =
|
|
1426
|
+
e.modifiersData[o] = Xt({
|
|
1399
1427
|
reference: e.rects.reference,
|
|
1400
1428
|
element: e.rects.popper,
|
|
1401
1429
|
strategy: "absolute",
|
|
1402
1430
|
placement: e.placement
|
|
1403
1431
|
});
|
|
1404
1432
|
}
|
|
1405
|
-
var
|
|
1433
|
+
var as = {
|
|
1406
1434
|
name: "popperOffsets",
|
|
1407
1435
|
enabled: !0,
|
|
1408
1436
|
phase: "read",
|
|
1409
|
-
fn:
|
|
1437
|
+
fn: ss,
|
|
1410
1438
|
data: {}
|
|
1411
|
-
},
|
|
1439
|
+
}, is = {
|
|
1412
1440
|
top: "auto",
|
|
1413
1441
|
right: "auto",
|
|
1414
1442
|
bottom: "auto",
|
|
1415
1443
|
left: "auto"
|
|
1416
1444
|
};
|
|
1417
|
-
function
|
|
1445
|
+
function ls(t) {
|
|
1418
1446
|
var e = t.x, o = t.y, r = window, n = r.devicePixelRatio || 1;
|
|
1419
1447
|
return {
|
|
1420
|
-
x:
|
|
1421
|
-
y:
|
|
1448
|
+
x: De(De(e * n) / n) || 0,
|
|
1449
|
+
y: De(De(o * n) / n) || 0
|
|
1422
1450
|
};
|
|
1423
1451
|
}
|
|
1424
1452
|
function St(t) {
|
|
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
|
-
|
|
1453
|
+
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"), C = X, k = K, x = window;
|
|
1454
|
+
if (A) {
|
|
1455
|
+
var S = Pe(o), R = "clientHeight", G = "clientWidth";
|
|
1456
|
+
S === W(o) && (S = ue(o), ie(S).position !== "static" && a === "absolute" && (R = "scrollHeight", G = "scrollWidth")), S = S, (n === K || (n === X || n === B) && s === Ye) && (k = U, p -= S[R] - r.height, p *= c ? 1 : -1), (n === X || (n === K || n === U) && s === Ye) && (C = B, f -= S[G] - r.width, f *= c ? 1 : -1);
|
|
1429
1457
|
}
|
|
1430
|
-
var
|
|
1458
|
+
var M = Object.assign({
|
|
1431
1459
|
position: a
|
|
1432
|
-
},
|
|
1433
|
-
if (
|
|
1434
|
-
var
|
|
1435
|
-
return Object.assign({},
|
|
1460
|
+
}, A && is);
|
|
1461
|
+
if (c) {
|
|
1462
|
+
var L;
|
|
1463
|
+
return Object.assign({}, M, (L = {}, L[k] = E ? "0" : "", L[C] = y ? "0" : "", L.transform = (x.devicePixelRatio || 1) <= 1 ? "translate(" + f + "px, " + p + "px)" : "translate3d(" + f + "px, " + p + "px, 0)", L));
|
|
1436
1464
|
}
|
|
1437
|
-
return Object.assign({},
|
|
1465
|
+
return Object.assign({}, M, (e = {}, e[k] = E ? p + "px" : "", e[C] = y ? f + "px" : "", e.transform = "", e));
|
|
1438
1466
|
}
|
|
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,
|
|
1467
|
+
function cs(t) {
|
|
1468
|
+
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
1469
|
placement: $(e.placement),
|
|
1442
1470
|
variation: we(e.placement),
|
|
1443
1471
|
popper: e.elements.popper,
|
|
1444
1472
|
popperRect: e.rects.popper,
|
|
1445
1473
|
gpuAcceleration: n
|
|
1446
1474
|
};
|
|
1447
|
-
e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, St(Object.assign({},
|
|
1475
|
+
e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, St(Object.assign({}, A, {
|
|
1448
1476
|
offsets: e.modifiersData.popperOffsets,
|
|
1449
1477
|
position: e.options.strategy,
|
|
1450
1478
|
adaptive: l,
|
|
1451
|
-
roundOffsets:
|
|
1452
|
-
})))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, St(Object.assign({},
|
|
1479
|
+
roundOffsets: c
|
|
1480
|
+
})))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, St(Object.assign({}, A, {
|
|
1453
1481
|
offsets: e.modifiersData.arrow,
|
|
1454
1482
|
position: "absolute",
|
|
1455
1483
|
adaptive: !1,
|
|
1456
|
-
roundOffsets:
|
|
1484
|
+
roundOffsets: c
|
|
1457
1485
|
})))), e.attributes.popper = Object.assign({}, e.attributes.popper, {
|
|
1458
1486
|
"data-popper-placement": e.placement
|
|
1459
1487
|
});
|
|
1460
1488
|
}
|
|
1461
|
-
var
|
|
1489
|
+
var ds = {
|
|
1462
1490
|
name: "computeStyles",
|
|
1463
1491
|
enabled: !0,
|
|
1464
1492
|
phase: "beforeWrite",
|
|
1465
|
-
fn:
|
|
1493
|
+
fn: cs,
|
|
1466
1494
|
data: {}
|
|
1467
1495
|
};
|
|
1468
|
-
function
|
|
1496
|
+
function us(t) {
|
|
1469
1497
|
var e = t.state;
|
|
1470
1498
|
Object.keys(e.elements).forEach(function(o) {
|
|
1471
1499
|
var r = e.styles[o] || {}, n = e.attributes[o] || {}, s = e.elements[o];
|
|
1472
|
-
!
|
|
1500
|
+
!V(s) || !ee(s) || (Object.assign(s.style, r), Object.keys(n).forEach(function(l) {
|
|
1473
1501
|
var a = n[l];
|
|
1474
1502
|
a === !1 ? s.removeAttribute(l) : s.setAttribute(l, a === !0 ? "" : a);
|
|
1475
1503
|
}));
|
|
1476
1504
|
});
|
|
1477
1505
|
}
|
|
1478
|
-
function
|
|
1506
|
+
function ps(t) {
|
|
1479
1507
|
var e = t.state, o = {
|
|
1480
1508
|
popper: {
|
|
1481
1509
|
position: e.options.strategy,
|
|
@@ -1490,177 +1518,177 @@ function ss(t) {
|
|
|
1490
1518
|
};
|
|
1491
1519
|
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
1520
|
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
|
|
1521
|
+
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) {
|
|
1522
|
+
return c[A] = "", c;
|
|
1495
1523
|
}, {});
|
|
1496
|
-
!
|
|
1497
|
-
n.removeAttribute(
|
|
1524
|
+
!V(n) || !ee(n) || (Object.assign(n.style, a), Object.keys(s).forEach(function(c) {
|
|
1525
|
+
n.removeAttribute(c);
|
|
1498
1526
|
}));
|
|
1499
1527
|
});
|
|
1500
1528
|
};
|
|
1501
1529
|
}
|
|
1502
|
-
var
|
|
1530
|
+
var fs = {
|
|
1503
1531
|
name: "applyStyles",
|
|
1504
1532
|
enabled: !0,
|
|
1505
1533
|
phase: "write",
|
|
1506
|
-
fn:
|
|
1507
|
-
effect:
|
|
1534
|
+
fn: us,
|
|
1535
|
+
effect: ps,
|
|
1508
1536
|
requires: ["computeStyles"]
|
|
1509
|
-
},
|
|
1510
|
-
defaultModifiers:
|
|
1537
|
+
}, vs = [ns, as, ds, fs], hs = /* @__PURE__ */ os({
|
|
1538
|
+
defaultModifiers: vs
|
|
1511
1539
|
});
|
|
1512
|
-
function
|
|
1540
|
+
function As(t) {
|
|
1513
1541
|
return t === "x" ? "y" : "x";
|
|
1514
1542
|
}
|
|
1515
|
-
function
|
|
1516
|
-
return de(t,
|
|
1543
|
+
function Qe(t, e, o) {
|
|
1544
|
+
return de(t, Ge(e, o));
|
|
1517
1545
|
}
|
|
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
|
-
}),
|
|
1546
|
+
function ms(t) {
|
|
1547
|
+
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 = vt(e, {
|
|
1548
|
+
boundary: c,
|
|
1549
|
+
rootBoundary: A,
|
|
1550
|
+
padding: m,
|
|
1551
|
+
altBoundary: u
|
|
1552
|
+
}), E = $(e.placement), C = we(e.placement), k = !C, x = ft(E), S = As(x), R = e.modifiersData.popperOffsets, G = e.rects.reference, M = e.rects.popper, L = typeof p == "function" ? p(Object.assign({}, e.rects, {
|
|
1525
1553
|
placement: e.placement
|
|
1526
|
-
})) : p,
|
|
1554
|
+
})) : p, N = {
|
|
1527
1555
|
x: 0,
|
|
1528
1556
|
y: 0
|
|
1529
1557
|
};
|
|
1530
|
-
if (
|
|
1558
|
+
if (R) {
|
|
1531
1559
|
if (s || a) {
|
|
1532
|
-
var
|
|
1560
|
+
var j = x === "y" ? K : X, oe = x === "y" ? U : B, z = x === "y" ? "height" : "width", re = R[x], ne = R[x] + y[j], q = R[x] - y[oe], se = f ? -M[z] / 2 : 0, O = C === xe ? G[z] : M[z], D = C === xe ? -M[z] : -G[z], H = e.elements.arrow, ae = f && H ? ut(H) : {
|
|
1533
1561
|
width: 0,
|
|
1534
1562
|
height: 0
|
|
1535
|
-
}, ve = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding :
|
|
1563
|
+
}, 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, At = e.modifiersData.offset ? e.modifiersData.offset[e.placement][x] : 0, mt = R[x] + ze - At - Ue, bt = R[x] + Xe - At;
|
|
1536
1564
|
if (s) {
|
|
1537
|
-
var
|
|
1538
|
-
|
|
1565
|
+
var gt = Qe(f ? Ge(ne, mt) : ne, re, f ? de(q, bt) : q);
|
|
1566
|
+
R[x] = gt, N[x] = gt - re;
|
|
1539
1567
|
}
|
|
1540
1568
|
if (a) {
|
|
1541
|
-
var
|
|
1542
|
-
|
|
1569
|
+
var $t = x === "x" ? K : X, eo = x === "x" ? U : B, He = R[S], yt = He + y[$t], xt = He - y[eo], wt = Qe(f ? Ge(yt, mt) : yt, He, f ? de(xt, bt) : xt);
|
|
1570
|
+
R[S] = wt, N[S] = wt - He;
|
|
1543
1571
|
}
|
|
1544
1572
|
}
|
|
1545
|
-
e.modifiersData[r] =
|
|
1573
|
+
e.modifiersData[r] = N;
|
|
1546
1574
|
}
|
|
1547
1575
|
}
|
|
1548
|
-
var
|
|
1576
|
+
var bs = {
|
|
1549
1577
|
name: "preventOverflow",
|
|
1550
1578
|
enabled: !0,
|
|
1551
1579
|
phase: "main",
|
|
1552
|
-
fn:
|
|
1580
|
+
fn: ms,
|
|
1553
1581
|
requiresIfExists: ["offset"]
|
|
1554
|
-
},
|
|
1582
|
+
}, gs = {
|
|
1555
1583
|
left: "right",
|
|
1556
1584
|
right: "left",
|
|
1557
1585
|
bottom: "top",
|
|
1558
1586
|
top: "bottom"
|
|
1559
1587
|
};
|
|
1560
|
-
function
|
|
1588
|
+
function Fe(t) {
|
|
1561
1589
|
return t.replace(/left|right|bottom|top/g, function(e) {
|
|
1562
|
-
return
|
|
1590
|
+
return gs[e];
|
|
1563
1591
|
});
|
|
1564
1592
|
}
|
|
1565
|
-
var
|
|
1593
|
+
var ys = {
|
|
1566
1594
|
start: "end",
|
|
1567
1595
|
end: "start"
|
|
1568
1596
|
};
|
|
1569
|
-
function
|
|
1597
|
+
function Pt(t) {
|
|
1570
1598
|
return t.replace(/start|end/g, function(e) {
|
|
1571
|
-
return
|
|
1599
|
+
return ys[e];
|
|
1572
1600
|
});
|
|
1573
1601
|
}
|
|
1574
|
-
function
|
|
1602
|
+
function xs(t, e) {
|
|
1575
1603
|
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
|
|
1604
|
+
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 ? Ct : Ct.filter(function(g) {
|
|
1605
|
+
return we(g) === u;
|
|
1606
|
+
}) : Le, d = m.filter(function(g) {
|
|
1607
|
+
return A.indexOf(g) >= 0;
|
|
1580
1608
|
});
|
|
1581
|
-
|
|
1582
|
-
var f =
|
|
1583
|
-
return
|
|
1609
|
+
d.length === 0 && (d = m);
|
|
1610
|
+
var f = d.reduce(function(g, p) {
|
|
1611
|
+
return g[p] = vt(t, {
|
|
1584
1612
|
placement: p,
|
|
1585
1613
|
boundary: n,
|
|
1586
1614
|
rootBoundary: s,
|
|
1587
1615
|
padding: l
|
|
1588
|
-
})[$(p)],
|
|
1616
|
+
})[$(p)], g;
|
|
1589
1617
|
}, {});
|
|
1590
|
-
return Object.keys(f).sort(function(
|
|
1591
|
-
return f[
|
|
1618
|
+
return Object.keys(f).sort(function(g, p) {
|
|
1619
|
+
return f[g] - f[p];
|
|
1592
1620
|
});
|
|
1593
1621
|
}
|
|
1594
|
-
function
|
|
1595
|
-
if ($(t) ===
|
|
1622
|
+
function ws(t) {
|
|
1623
|
+
if ($(t) === pt)
|
|
1596
1624
|
return [];
|
|
1597
|
-
var e =
|
|
1598
|
-
return [
|
|
1625
|
+
var e = Fe(t);
|
|
1626
|
+
return [Pt(t), e, Pt(e)];
|
|
1599
1627
|
}
|
|
1600
|
-
function
|
|
1628
|
+
function Is(t) {
|
|
1601
1629
|
var e = t.state, o = t.options, r = t.name;
|
|
1602
1630
|
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) ===
|
|
1631
|
+
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), C = E === y, k = c || (C || !g ? [Fe(y)] : ws(y)), x = [y].concat(k).reduce(function(pe, J) {
|
|
1632
|
+
return pe.concat($(J) === pt ? xs(e, {
|
|
1605
1633
|
placement: J,
|
|
1606
|
-
boundary:
|
|
1607
|
-
rootBoundary:
|
|
1608
|
-
padding:
|
|
1609
|
-
flipVariations:
|
|
1634
|
+
boundary: u,
|
|
1635
|
+
rootBoundary: m,
|
|
1636
|
+
padding: A,
|
|
1637
|
+
flipVariations: g,
|
|
1610
1638
|
allowedAutoPlacements: p
|
|
1611
1639
|
}) : J);
|
|
1612
|
-
}, []),
|
|
1613
|
-
var
|
|
1614
|
-
placement:
|
|
1615
|
-
boundary:
|
|
1616
|
-
rootBoundary:
|
|
1617
|
-
altBoundary:
|
|
1618
|
-
padding:
|
|
1619
|
-
}), se = re ?
|
|
1620
|
-
|
|
1621
|
-
var
|
|
1622
|
-
if (s &&
|
|
1640
|
+
}, []), S = e.rects.reference, R = e.rects.popper, G = /* @__PURE__ */ new Map(), M = !0, L = x[0], N = 0; N < x.length; N++) {
|
|
1641
|
+
var j = x[N], oe = $(j), z = we(j) === xe, re = [K, U].indexOf(oe) >= 0, ne = re ? "width" : "height", q = vt(e, {
|
|
1642
|
+
placement: j,
|
|
1643
|
+
boundary: u,
|
|
1644
|
+
rootBoundary: m,
|
|
1645
|
+
altBoundary: d,
|
|
1646
|
+
padding: A
|
|
1647
|
+
}), se = re ? z ? B : X : z ? U : K;
|
|
1648
|
+
S[ne] > R[ne] && (se = Fe(se));
|
|
1649
|
+
var O = Fe(se), D = [];
|
|
1650
|
+
if (s && D.push(q[oe] <= 0), a && D.push(q[se] <= 0, q[O] <= 0), D.every(function(pe) {
|
|
1623
1651
|
return pe;
|
|
1624
1652
|
})) {
|
|
1625
|
-
|
|
1653
|
+
L = j, M = !1;
|
|
1626
1654
|
break;
|
|
1627
1655
|
}
|
|
1628
|
-
|
|
1656
|
+
G.set(j, D);
|
|
1629
1657
|
}
|
|
1630
|
-
if (
|
|
1631
|
-
for (var
|
|
1632
|
-
var
|
|
1633
|
-
var he =
|
|
1658
|
+
if (M)
|
|
1659
|
+
for (var H = g ? 3 : 1, ae = function(J) {
|
|
1660
|
+
var ze = x.find(function(Xe) {
|
|
1661
|
+
var he = G.get(Xe);
|
|
1634
1662
|
if (he)
|
|
1635
1663
|
return he.slice(0, J).every(function(Ue) {
|
|
1636
1664
|
return Ue;
|
|
1637
1665
|
});
|
|
1638
1666
|
});
|
|
1639
|
-
if (
|
|
1640
|
-
return
|
|
1641
|
-
}, ve =
|
|
1642
|
-
var
|
|
1643
|
-
if (
|
|
1667
|
+
if (ze)
|
|
1668
|
+
return L = ze, "break";
|
|
1669
|
+
}, ve = H; ve > 0; ve--) {
|
|
1670
|
+
var Me = ae(ve);
|
|
1671
|
+
if (Me === "break")
|
|
1644
1672
|
break;
|
|
1645
1673
|
}
|
|
1646
|
-
e.placement !==
|
|
1674
|
+
e.placement !== L && (e.modifiersData[r]._skip = !0, e.placement = L, e.reset = !0);
|
|
1647
1675
|
}
|
|
1648
1676
|
}
|
|
1649
|
-
var
|
|
1677
|
+
var ks = {
|
|
1650
1678
|
name: "flip",
|
|
1651
1679
|
enabled: !0,
|
|
1652
1680
|
phase: "main",
|
|
1653
|
-
fn:
|
|
1681
|
+
fn: Is,
|
|
1654
1682
|
requiresIfExists: ["offset"],
|
|
1655
1683
|
data: {
|
|
1656
1684
|
_skip: !1
|
|
1657
1685
|
}
|
|
1658
1686
|
};
|
|
1659
|
-
function
|
|
1660
|
-
var r = $(t), n = [
|
|
1687
|
+
function Es(t, e, o) {
|
|
1688
|
+
var r = $(t), n = [X, K].indexOf(r) >= 0 ? -1 : 1, s = typeof o == "function" ? o(Object.assign({}, e, {
|
|
1661
1689
|
placement: t
|
|
1662
1690
|
})) : o, l = s[0], a = s[1];
|
|
1663
|
-
return l = l || 0, a = (a || 0) * n, [
|
|
1691
|
+
return l = l || 0, a = (a || 0) * n, [X, B].indexOf(r) >= 0 ? {
|
|
1664
1692
|
x: a,
|
|
1665
1693
|
y: l
|
|
1666
1694
|
} : {
|
|
@@ -1668,45 +1696,45 @@ function ys(t, e, o) {
|
|
|
1668
1696
|
y: a
|
|
1669
1697
|
};
|
|
1670
1698
|
}
|
|
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 +=
|
|
1699
|
+
function Cs(t) {
|
|
1700
|
+
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) {
|
|
1701
|
+
return u[m] = Es(m, e.rects, s), u;
|
|
1702
|
+
}, {}), a = l[e.placement], c = a.x, A = a.y;
|
|
1703
|
+
e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += c, e.modifiersData.popperOffsets.y += A), e.modifiersData[r] = l;
|
|
1676
1704
|
}
|
|
1677
|
-
var
|
|
1705
|
+
var Rs = {
|
|
1678
1706
|
name: "offset",
|
|
1679
1707
|
enabled: !0,
|
|
1680
1708
|
phase: "main",
|
|
1681
1709
|
requires: ["popperOffsets"],
|
|
1682
|
-
fn:
|
|
1683
|
-
},
|
|
1710
|
+
fn: Cs
|
|
1711
|
+
}, Ys = function(e, o) {
|
|
1684
1712
|
return e = typeof e == "function" ? e(Object.assign({}, o.rects, {
|
|
1685
1713
|
placement: o.placement
|
|
1686
|
-
})) : e,
|
|
1714
|
+
})) : e, Bt(typeof e != "number" ? e : Wt(e, Le));
|
|
1687
1715
|
};
|
|
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),
|
|
1716
|
+
function Gs(t) {
|
|
1717
|
+
var e, o = t.state, r = t.name, n = t.options, s = o.elements.arrow, l = o.modifiersData.popperOffsets, a = $(o.placement), c = ft(a), A = [X, B].indexOf(a) >= 0, u = A ? "height" : "width";
|
|
1690
1718
|
if (!(!s || !l)) {
|
|
1691
|
-
var
|
|
1692
|
-
o.modifiersData[r] = (e = {}, e[
|
|
1719
|
+
var m = Ys(n.padding, o), d = ut(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), C = E ? c === "y" ? E.clientHeight || 0 : E.clientWidth || 0 : 0, k = p / 2 - y / 2, x = m[f], S = C - d[u] - m[g], R = C / 2 - d[u] / 2 + k, G = Qe(x, R, S), M = c;
|
|
1720
|
+
o.modifiersData[r] = (e = {}, e[M] = G, e.centerOffset = G - R, e);
|
|
1693
1721
|
}
|
|
1694
1722
|
}
|
|
1695
|
-
function
|
|
1723
|
+
function Ss(t) {
|
|
1696
1724
|
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) ||
|
|
1725
|
+
n != null && (typeof n == "string" && (n = e.elements.popper.querySelector(n), !n) || Kt(e.elements.popper, n) && (e.elements.arrow = n));
|
|
1698
1726
|
}
|
|
1699
|
-
var
|
|
1727
|
+
var Ps = {
|
|
1700
1728
|
name: "arrow",
|
|
1701
1729
|
enabled: !0,
|
|
1702
1730
|
phase: "main",
|
|
1703
|
-
fn:
|
|
1704
|
-
effect:
|
|
1731
|
+
fn: Gs,
|
|
1732
|
+
effect: Ss,
|
|
1705
1733
|
requires: ["popperOffsets"],
|
|
1706
1734
|
requiresIfExists: ["preventOverflow"]
|
|
1707
1735
|
};
|
|
1708
1736
|
const $e = (t) => parseInt(t, 10);
|
|
1709
|
-
function
|
|
1737
|
+
function Ls({
|
|
1710
1738
|
arrowPadding: t,
|
|
1711
1739
|
emit: e,
|
|
1712
1740
|
locked: o,
|
|
@@ -1716,62 +1744,62 @@ function Rs({
|
|
|
1716
1744
|
popperNode: l,
|
|
1717
1745
|
triggerNode: a
|
|
1718
1746
|
}) {
|
|
1719
|
-
const
|
|
1747
|
+
const c = co({
|
|
1720
1748
|
isOpen: !1,
|
|
1721
1749
|
popperInstance: null
|
|
1722
|
-
}),
|
|
1723
|
-
var
|
|
1724
|
-
(
|
|
1725
|
-
...
|
|
1726
|
-
modifiers: [...
|
|
1750
|
+
}), A = (p) => {
|
|
1751
|
+
var y;
|
|
1752
|
+
(y = c.popperInstance) === null || y === void 0 || y.setOptions((E) => ({
|
|
1753
|
+
...E,
|
|
1754
|
+
modifiers: [...E.modifiers, {
|
|
1727
1755
|
name: "eventListeners",
|
|
1728
1756
|
enabled: p
|
|
1729
1757
|
}]
|
|
1730
1758
|
}));
|
|
1731
|
-
},
|
|
1732
|
-
|
|
1759
|
+
}, u = () => A(!0), m = () => A(!1), d = () => {
|
|
1760
|
+
c.isOpen && (c.isOpen = !1, e("close:popper"));
|
|
1733
1761
|
}, f = () => {
|
|
1734
|
-
|
|
1762
|
+
c.isOpen || (c.isOpen = !0, e("open:popper"));
|
|
1735
1763
|
};
|
|
1736
|
-
|
|
1737
|
-
p ? (await
|
|
1764
|
+
be([() => c.isOpen, s], async ([p]) => {
|
|
1765
|
+
p ? (await g(), u()) : m();
|
|
1738
1766
|
});
|
|
1739
|
-
const
|
|
1740
|
-
await
|
|
1767
|
+
const g = async () => {
|
|
1768
|
+
await uo(), c.popperInstance = hs(a.value, l.value, {
|
|
1741
1769
|
placement: s.value,
|
|
1742
|
-
modifiers: [
|
|
1770
|
+
modifiers: [bs, ks, {
|
|
1743
1771
|
name: "flip",
|
|
1744
1772
|
enabled: !o.value
|
|
1745
|
-
},
|
|
1773
|
+
}, Ps, {
|
|
1746
1774
|
name: "arrow",
|
|
1747
1775
|
options: {
|
|
1748
1776
|
padding: $e(t.value)
|
|
1749
1777
|
}
|
|
1750
|
-
},
|
|
1778
|
+
}, Rs, {
|
|
1751
1779
|
name: "offset",
|
|
1752
1780
|
options: {
|
|
1753
1781
|
offset: [$e(n.value), $e(r.value)]
|
|
1754
1782
|
}
|
|
1755
1783
|
}]
|
|
1756
|
-
}),
|
|
1784
|
+
}), c.popperInstance.update();
|
|
1757
1785
|
};
|
|
1758
1786
|
return nt(() => {
|
|
1759
1787
|
var p;
|
|
1760
|
-
(p =
|
|
1788
|
+
(p = c.popperInstance) === null || p === void 0 || p.destroy();
|
|
1761
1789
|
}), {
|
|
1762
|
-
...Ot(
|
|
1790
|
+
...Ot(c),
|
|
1763
1791
|
open: f,
|
|
1764
|
-
close:
|
|
1792
|
+
close: d
|
|
1765
1793
|
};
|
|
1766
1794
|
}
|
|
1767
|
-
const
|
|
1795
|
+
const Ms = {
|
|
1768
1796
|
id: "arrow",
|
|
1769
1797
|
"data-popper-arrow": ""
|
|
1770
1798
|
};
|
|
1771
|
-
function
|
|
1772
|
-
return v(),
|
|
1799
|
+
function zs(t, e) {
|
|
1800
|
+
return v(), h("div", Ms);
|
|
1773
1801
|
}
|
|
1774
|
-
function
|
|
1802
|
+
function Jt(t, e) {
|
|
1775
1803
|
e === void 0 && (e = {});
|
|
1776
1804
|
var o = e.insertAt;
|
|
1777
1805
|
if (!(!t || typeof document > "u")) {
|
|
@@ -1779,7 +1807,7 @@ function Ut(t, e) {
|
|
|
1779
1807
|
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
1808
|
}
|
|
1781
1809
|
}
|
|
1782
|
-
var
|
|
1810
|
+
var Hs = `
|
|
1783
1811
|
#arrow[data-v-20b7fd4a],
|
|
1784
1812
|
#arrow[data-v-20b7fd4a]::before {
|
|
1785
1813
|
transition: background 250ms ease-in-out;
|
|
@@ -1836,13 +1864,13 @@ var Cs = `
|
|
|
1836
1864
|
left: -5px;
|
|
1837
1865
|
}
|
|
1838
1866
|
`;
|
|
1839
|
-
|
|
1840
|
-
const
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
var
|
|
1844
|
-
const
|
|
1845
|
-
var
|
|
1867
|
+
Jt(Hs);
|
|
1868
|
+
const ht = {};
|
|
1869
|
+
ht.render = zs;
|
|
1870
|
+
ht.__scopeId = "data-v-20b7fd4a";
|
|
1871
|
+
var Os = ht;
|
|
1872
|
+
const Ds = ["onKeyup"];
|
|
1873
|
+
var _t = {
|
|
1846
1874
|
props: {
|
|
1847
1875
|
/**
|
|
1848
1876
|
* Preferred placement (the "auto" placements will choose the side with most space.)
|
|
@@ -1958,94 +1986,94 @@ var Bt = {
|
|
|
1958
1986
|
emit: e
|
|
1959
1987
|
}) {
|
|
1960
1988
|
const o = t;
|
|
1961
|
-
|
|
1989
|
+
no((O) => ({
|
|
1962
1990
|
c81fc0a4: t.zIndex
|
|
1963
1991
|
}));
|
|
1964
|
-
const r =
|
|
1992
|
+
const r = so(), n = w(null), s = w(null), l = w(null), a = w(!1);
|
|
1965
1993
|
Se(() => {
|
|
1966
|
-
const
|
|
1967
|
-
if (
|
|
1968
|
-
return console.error(`[Popper]: The <Popper> component expects only one child element at its root. You passed ${
|
|
1994
|
+
const O = r.default();
|
|
1995
|
+
if (O && O.length > 1)
|
|
1996
|
+
return console.error(`[Popper]: The <Popper> component expects only one child element at its root. You passed ${O.length} child nodes.`);
|
|
1969
1997
|
});
|
|
1970
1998
|
const {
|
|
1971
|
-
arrowPadding:
|
|
1972
|
-
closeDelay:
|
|
1973
|
-
content:
|
|
1974
|
-
disableClickAway:
|
|
1975
|
-
disabled:
|
|
1999
|
+
arrowPadding: c,
|
|
2000
|
+
closeDelay: A,
|
|
2001
|
+
content: u,
|
|
2002
|
+
disableClickAway: m,
|
|
2003
|
+
disabled: d,
|
|
1976
2004
|
interactive: f,
|
|
1977
|
-
locked:
|
|
2005
|
+
locked: g,
|
|
1978
2006
|
offsetDistance: p,
|
|
1979
|
-
offsetSkid:
|
|
1980
|
-
openDelay:
|
|
1981
|
-
placement:
|
|
1982
|
-
show:
|
|
2007
|
+
offsetSkid: y,
|
|
2008
|
+
openDelay: E,
|
|
2009
|
+
placement: C,
|
|
2010
|
+
show: k
|
|
1983
2011
|
} = Ot(o), {
|
|
1984
|
-
isOpen:
|
|
1985
|
-
open:
|
|
1986
|
-
close:
|
|
1987
|
-
} =
|
|
1988
|
-
arrowPadding:
|
|
2012
|
+
isOpen: x,
|
|
2013
|
+
open: S,
|
|
2014
|
+
close: R
|
|
2015
|
+
} = Ls({
|
|
2016
|
+
arrowPadding: c,
|
|
1989
2017
|
emit: e,
|
|
1990
|
-
locked:
|
|
2018
|
+
locked: g,
|
|
1991
2019
|
offsetDistance: p,
|
|
1992
|
-
offsetSkid:
|
|
1993
|
-
placement:
|
|
2020
|
+
offsetSkid: y,
|
|
2021
|
+
placement: C,
|
|
1994
2022
|
popperNode: s,
|
|
1995
2023
|
triggerNode: l
|
|
1996
2024
|
}), {
|
|
1997
|
-
hasContent:
|
|
1998
|
-
} =
|
|
1999
|
-
|
|
2025
|
+
hasContent: G
|
|
2026
|
+
} = 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(R, A.value), ne = async () => {
|
|
2027
|
+
L.value || M.value || (re.clear(), z());
|
|
2000
2028
|
}, q = async () => {
|
|
2001
|
-
|
|
2029
|
+
M.value || (z.clear(), re());
|
|
2002
2030
|
}, se = () => {
|
|
2003
|
-
|
|
2031
|
+
x.value ? q() : ne();
|
|
2004
2032
|
};
|
|
2005
|
-
return
|
|
2006
|
-
|
|
2007
|
-
}),
|
|
2008
|
-
|
|
2033
|
+
return be([G, d], ([O, D]) => {
|
|
2034
|
+
x.value && (!O || D) && R();
|
|
2035
|
+
}), be(x, (O) => {
|
|
2036
|
+
O ? a.value = !0 : _e.debounce(() => {
|
|
2009
2037
|
a.value = !1;
|
|
2010
2038
|
}, 200);
|
|
2011
|
-
}),
|
|
2012
|
-
|
|
2013
|
-
}),
|
|
2014
|
-
|
|
2015
|
-
}), (
|
|
2039
|
+
}), It(() => {
|
|
2040
|
+
M.value && (k.value ? z() : re());
|
|
2041
|
+
}), It(() => {
|
|
2042
|
+
j.value && Rn(n, q);
|
|
2043
|
+
}), (O, D) => (v(), h("div", {
|
|
2016
2044
|
class: "inline-block",
|
|
2017
|
-
style:
|
|
2018
|
-
onMouseleave:
|
|
2019
|
-
ref: (
|
|
2020
|
-
ae.popperContainerNode =
|
|
2045
|
+
style: lo(b(oe)),
|
|
2046
|
+
onMouseleave: D[2] || (D[2] = (H) => t.hover && q()),
|
|
2047
|
+
ref: (H, ae) => {
|
|
2048
|
+
ae.popperContainerNode = H, n.value = H;
|
|
2021
2049
|
}
|
|
2022
2050
|
}, [i("div", {
|
|
2023
|
-
ref: (
|
|
2024
|
-
ae.triggerNode =
|
|
2051
|
+
ref: (H, ae) => {
|
|
2052
|
+
ae.triggerNode = H, l.value = H;
|
|
2025
2053
|
},
|
|
2026
|
-
onMouseover:
|
|
2054
|
+
onMouseover: D[0] || (D[0] = (H) => t.hover && ne()),
|
|
2027
2055
|
onClick: se,
|
|
2028
2056
|
onFocus: ne,
|
|
2029
|
-
onKeyup:
|
|
2030
|
-
}, [tt(
|
|
2057
|
+
onKeyup: ao(q, ["esc"])
|
|
2058
|
+
}, [tt(O.$slots, "default")], 40, Ds), I(Mt, {
|
|
2031
2059
|
name: "fade"
|
|
2032
2060
|
}, {
|
|
2033
|
-
default:
|
|
2034
|
-
onClick:
|
|
2061
|
+
default: Q(() => [fe(i("div", {
|
|
2062
|
+
onClick: D[1] || (D[1] = (H) => !b(f) && q()),
|
|
2035
2063
|
class: "popper",
|
|
2036
|
-
ref: (
|
|
2037
|
-
ae.popperNode =
|
|
2064
|
+
ref: (H, ae) => {
|
|
2065
|
+
ae.popperNode = H, s.value = H;
|
|
2038
2066
|
}
|
|
2039
|
-
}, [tt(
|
|
2040
|
-
close:
|
|
2067
|
+
}, [tt(O.$slots, "content", {
|
|
2068
|
+
close: b(R),
|
|
2041
2069
|
isOpen: a.value
|
|
2042
|
-
}, () => [_(P(
|
|
2070
|
+
}, () => [_(P(b(u)), 1)]), t.arrow ? (v(), Ae(Os, {
|
|
2043
2071
|
key: 0
|
|
2044
|
-
})) :
|
|
2072
|
+
})) : Y("", !0)], 512), [[io, b(N)]])]),
|
|
2045
2073
|
_: 3
|
|
2046
2074
|
})], 36));
|
|
2047
2075
|
}
|
|
2048
|
-
},
|
|
2076
|
+
}, Ts = `
|
|
2049
2077
|
.inline-block[data-v-5784ed69] {
|
|
2050
2078
|
display: inline-block;
|
|
2051
2079
|
}
|
|
@@ -2077,256 +2105,256 @@ var Bt = {
|
|
|
2077
2105
|
opacity: 0;
|
|
2078
2106
|
}
|
|
2079
2107
|
`;
|
|
2080
|
-
|
|
2081
|
-
|
|
2108
|
+
Jt(Ts);
|
|
2109
|
+
_t.__scopeId = "data-v-5784ed69";
|
|
2082
2110
|
var Ne = /* @__PURE__ */ (() => {
|
|
2083
|
-
const t =
|
|
2111
|
+
const t = _t;
|
|
2084
2112
|
return t.install = (e) => {
|
|
2085
2113
|
e.component("Popper", t);
|
|
2086
2114
|
}, t;
|
|
2087
2115
|
})();
|
|
2088
|
-
const
|
|
2116
|
+
const Ns = {
|
|
2089
2117
|
key: 0,
|
|
2090
2118
|
class: "flex gap-2 items-stretch flex-wrap mt-2"
|
|
2091
|
-
},
|
|
2119
|
+
}, js = ["onClick"], Qs = {
|
|
2092
2120
|
class: "bg-white w-56 rounded-md max-h-60 overflow-auto",
|
|
2093
2121
|
role: "none"
|
|
2094
|
-
},
|
|
2122
|
+
}, Fs = ["onClick"], qs = {
|
|
2095
2123
|
class: "bg-white w-56 rounded-md max-h-60 overflow-auto",
|
|
2096
2124
|
role: "none"
|
|
2097
|
-
},
|
|
2125
|
+
}, Zs = ["onClick"], Vs = {
|
|
2098
2126
|
class: "bg-white w-56 rounded-md max-h-60 overflow-auto",
|
|
2099
2127
|
role: "none"
|
|
2100
|
-
},
|
|
2128
|
+
}, Ks = ["onClick"], Xs = {
|
|
2101
2129
|
class: "bg-white w-56 rounded-md max-h-60 overflow-auto",
|
|
2102
2130
|
role: "none"
|
|
2103
|
-
},
|
|
2131
|
+
}, Us = ["onClick"], Bs = { key: 1 }, Ws = /* @__PURE__ */ i("img", {
|
|
2104
2132
|
class: "w-12 h-12 block loadercss",
|
|
2105
2133
|
src: Ze,
|
|
2106
2134
|
alt: "Loader Gif"
|
|
2107
|
-
}, null, -1),
|
|
2108
|
-
|
|
2109
|
-
],
|
|
2135
|
+
}, null, -1), Js = [
|
|
2136
|
+
Ws
|
|
2137
|
+
], _s = /* @__PURE__ */ te({
|
|
2110
2138
|
__name: "SkillOptions",
|
|
2111
2139
|
setup(t) {
|
|
2112
|
-
const e = le(), o =
|
|
2113
|
-
var
|
|
2140
|
+
const e = le(), o = Ie(), r = w(!0), n = w(!1), s = w(!1), l = w(!1), a = w(!1), c = async (A) => {
|
|
2141
|
+
var u, m;
|
|
2114
2142
|
try {
|
|
2115
2143
|
r.value = !1;
|
|
2116
|
-
const
|
|
2117
|
-
`/initialDataV2?skill_id=${
|
|
2144
|
+
const d = await Dt(
|
|
2145
|
+
`/initialDataV2?skill_id=${A.skill_id}&prof_id=${yo}&skill_master_id=${A.skill_master_id}`
|
|
2118
2146
|
);
|
|
2119
|
-
e.selectSkill(
|
|
2120
|
-
} catch (
|
|
2121
|
-
if (console.error(
|
|
2122
|
-
const f =
|
|
2123
|
-
console.error((
|
|
2147
|
+
e.selectSkill(d.data), e.addPostSkillSelectionMessage(), r.value = !0;
|
|
2148
|
+
} catch (d) {
|
|
2149
|
+
if (console.error(d), Z.isAxiosError(d)) {
|
|
2150
|
+
const f = d;
|
|
2151
|
+
console.error((u = f.response) == null ? void 0 : u.data), o.setError(((m = f.response) == null ? void 0 : m.data).message);
|
|
2124
2152
|
} else
|
|
2125
2153
|
o.setError("There was an issue, please contact helpmate");
|
|
2126
2154
|
}
|
|
2127
2155
|
};
|
|
2128
|
-
return (
|
|
2129
|
-
var
|
|
2130
|
-
return r.value ? (v(),
|
|
2131
|
-
(v(!0),
|
|
2156
|
+
return (A, u) => {
|
|
2157
|
+
var m, d, f, g;
|
|
2158
|
+
return r.value ? (v(), h("div", Ns, [
|
|
2159
|
+
(v(!0), h(T, null, F(b(e).user_skills, (p) => (v(), h("div", {
|
|
2132
2160
|
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: (
|
|
2161
|
+
onClick: (y) => c(p),
|
|
2134
2162
|
key: p.skill_id
|
|
2135
|
-
}, P(p.skill_name), 9,
|
|
2136
|
-
(
|
|
2163
|
+
}, P(p.skill_name), 9, js))), 128)),
|
|
2164
|
+
(m = b(e).industry_skills) != null && m.length ? (v(), Ae(b(Ne), {
|
|
2137
2165
|
key: 0,
|
|
2138
2166
|
show: n.value,
|
|
2139
2167
|
placement: "bottom"
|
|
2140
2168
|
}, {
|
|
2141
|
-
content:
|
|
2142
|
-
i("div",
|
|
2143
|
-
(v(!0),
|
|
2144
|
-
onClick: (
|
|
2169
|
+
content: Q(() => [
|
|
2170
|
+
i("div", Qs, [
|
|
2171
|
+
(v(!0), h(T, null, F(b(e).industry_skills, (p) => (v(), h("div", {
|
|
2172
|
+
onClick: (y) => c(p),
|
|
2145
2173
|
key: p.skill_id,
|
|
2146
2174
|
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,
|
|
2175
|
+
}, P(p.skill_name), 9, Fs))), 128))
|
|
2148
2176
|
])
|
|
2149
2177
|
]),
|
|
2150
|
-
default:
|
|
2178
|
+
default: Q(() => [
|
|
2151
2179
|
i("button", {
|
|
2152
|
-
onClick:
|
|
2153
|
-
onFocusout:
|
|
2180
|
+
onClick: u[0] || (u[0] = (p) => n.value = !n.value),
|
|
2181
|
+
onFocusout: u[1] || (u[1] = (p) => n.value = !1),
|
|
2154
2182
|
type: "button",
|
|
2155
2183
|
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
2184
|
}, [
|
|
2157
2185
|
_(" Industry "),
|
|
2158
|
-
|
|
2186
|
+
I(b(Oe), { class: "w-3 h-3" })
|
|
2159
2187
|
], 32)
|
|
2160
2188
|
]),
|
|
2161
2189
|
_: 1
|
|
2162
|
-
}, 8, ["show"])) :
|
|
2163
|
-
(
|
|
2190
|
+
}, 8, ["show"])) : Y("", !0),
|
|
2191
|
+
(d = b(e).service_line_skills) != null && d.length ? (v(), Ae(b(Ne), {
|
|
2164
2192
|
key: 1,
|
|
2165
2193
|
show: s.value,
|
|
2166
2194
|
placement: "bottom"
|
|
2167
2195
|
}, {
|
|
2168
|
-
content:
|
|
2169
|
-
i("div",
|
|
2170
|
-
(v(!0),
|
|
2171
|
-
onClick: (
|
|
2196
|
+
content: Q(() => [
|
|
2197
|
+
i("div", qs, [
|
|
2198
|
+
(v(!0), h(T, null, F(b(e).service_line_skills, (p) => (v(), h("div", {
|
|
2199
|
+
onClick: (y) => c(p),
|
|
2172
2200
|
key: p.skill_id,
|
|
2173
2201
|
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,
|
|
2202
|
+
}, P(p.skill_name), 9, Zs))), 128))
|
|
2175
2203
|
])
|
|
2176
2204
|
]),
|
|
2177
|
-
default:
|
|
2205
|
+
default: Q(() => [
|
|
2178
2206
|
i("button", {
|
|
2179
|
-
onClick:
|
|
2180
|
-
onFocusout:
|
|
2207
|
+
onClick: u[2] || (u[2] = (p) => s.value = !s.value),
|
|
2208
|
+
onFocusout: u[3] || (u[3] = (p) => s.value = !1),
|
|
2181
2209
|
type: "button",
|
|
2182
2210
|
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
2211
|
}, [
|
|
2184
2212
|
_(" Service Line "),
|
|
2185
|
-
|
|
2213
|
+
I(b(Oe), { class: "w-3 h-3" })
|
|
2186
2214
|
], 32)
|
|
2187
2215
|
]),
|
|
2188
2216
|
_: 1
|
|
2189
|
-
}, 8, ["show"])) :
|
|
2190
|
-
(f =
|
|
2217
|
+
}, 8, ["show"])) : Y("", !0),
|
|
2218
|
+
(f = b(e).digital_skills) != null && f.length ? (v(), Ae(b(Ne), {
|
|
2191
2219
|
key: 2,
|
|
2192
2220
|
show: l.value,
|
|
2193
2221
|
placement: "bottom"
|
|
2194
2222
|
}, {
|
|
2195
|
-
content:
|
|
2196
|
-
i("div",
|
|
2197
|
-
(v(!0),
|
|
2198
|
-
onClick: (
|
|
2223
|
+
content: Q(() => [
|
|
2224
|
+
i("div", Vs, [
|
|
2225
|
+
(v(!0), h(T, null, F(b(e).digital_skills, (p) => (v(), h("div", {
|
|
2226
|
+
onClick: (y) => c(p),
|
|
2199
2227
|
key: p.skill_id,
|
|
2200
2228
|
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,
|
|
2229
|
+
}, P(p.skill_name), 9, Ks))), 128))
|
|
2202
2230
|
])
|
|
2203
2231
|
]),
|
|
2204
|
-
default:
|
|
2232
|
+
default: Q(() => [
|
|
2205
2233
|
i("button", {
|
|
2206
|
-
onClick:
|
|
2207
|
-
onFocusout:
|
|
2234
|
+
onClick: u[4] || (u[4] = (p) => l.value = !l.value),
|
|
2235
|
+
onFocusout: u[5] || (u[5] = (p) => l.value = !1),
|
|
2208
2236
|
type: "button",
|
|
2209
2237
|
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
2238
|
}, [
|
|
2211
2239
|
_(" Digital "),
|
|
2212
|
-
|
|
2240
|
+
I(b(Oe), { class: "w-3 h-3" })
|
|
2213
2241
|
], 32)
|
|
2214
2242
|
]),
|
|
2215
2243
|
_: 1
|
|
2216
|
-
}, 8, ["show"])) :
|
|
2217
|
-
(
|
|
2244
|
+
}, 8, ["show"])) : Y("", !0),
|
|
2245
|
+
(g = b(e).professional_skills) != null && g.length ? (v(), Ae(b(Ne), {
|
|
2218
2246
|
key: 3,
|
|
2219
2247
|
show: a.value,
|
|
2220
2248
|
placement: "bottom"
|
|
2221
2249
|
}, {
|
|
2222
|
-
content:
|
|
2223
|
-
i("div",
|
|
2224
|
-
(v(!0),
|
|
2225
|
-
onClick: (
|
|
2250
|
+
content: Q(() => [
|
|
2251
|
+
i("div", Xs, [
|
|
2252
|
+
(v(!0), h(T, null, F(b(e).professional_skills, (p) => (v(), h("div", {
|
|
2253
|
+
onClick: (y) => c(p),
|
|
2226
2254
|
key: p.skill_id,
|
|
2227
2255
|
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,
|
|
2256
|
+
}, P(p.skill_name), 9, Us))), 128))
|
|
2229
2257
|
])
|
|
2230
2258
|
]),
|
|
2231
|
-
default:
|
|
2259
|
+
default: Q(() => [
|
|
2232
2260
|
i("button", {
|
|
2233
|
-
onClick:
|
|
2234
|
-
onFocusout:
|
|
2261
|
+
onClick: u[6] || (u[6] = (p) => a.value = !a.value),
|
|
2262
|
+
onFocusout: u[7] || (u[7] = (p) => a.value = !1),
|
|
2235
2263
|
type: "button",
|
|
2236
2264
|
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
2265
|
}, [
|
|
2238
2266
|
_(" Professional "),
|
|
2239
|
-
|
|
2267
|
+
I(b(Oe), { class: "w-3 h-3" })
|
|
2240
2268
|
], 32)
|
|
2241
2269
|
]),
|
|
2242
2270
|
_: 1
|
|
2243
|
-
}, 8, ["show"])) :
|
|
2244
|
-
])) : (v(),
|
|
2271
|
+
}, 8, ["show"])) : Y("", !0)
|
|
2272
|
+
])) : (v(), h("div", Bs, Js));
|
|
2245
2273
|
};
|
|
2246
2274
|
}
|
|
2247
|
-
}),
|
|
2275
|
+
}), $s = {
|
|
2248
2276
|
key: 0,
|
|
2249
2277
|
class: "flex gap-2 items-center flex-wrap mt-2"
|
|
2250
|
-
},
|
|
2278
|
+
}, ea = ["onClick"], ta = {
|
|
2251
2279
|
key: 1,
|
|
2252
2280
|
class: "flex gap-2 items-center flex-wrap"
|
|
2253
|
-
},
|
|
2281
|
+
}, oa = ["onClick"], ra = { key: 1 }, na = /* @__PURE__ */ i("img", {
|
|
2254
2282
|
class: "w-12 h-12 block loadercss",
|
|
2255
2283
|
src: Ze,
|
|
2256
2284
|
alt: "Loader Gif"
|
|
2257
|
-
}, null, -1),
|
|
2258
|
-
|
|
2259
|
-
],
|
|
2285
|
+
}, null, -1), sa = [
|
|
2286
|
+
na
|
|
2287
|
+
], aa = /* @__PURE__ */ te({
|
|
2260
2288
|
__name: "PostSkillUseCases",
|
|
2261
2289
|
setup(t) {
|
|
2262
|
-
const e = le(), o =
|
|
2290
|
+
const e = le(), o = w(!0), r = w(!1), n = async (s) => {
|
|
2263
2291
|
if (o.value = !1, !s.isParent) {
|
|
2264
2292
|
console.log(s.example), e.addConversation({ question: s.useCaseName, answer: s.example }, "faq"), o.value = !0;
|
|
2265
2293
|
return;
|
|
2266
2294
|
}
|
|
2267
2295
|
await e.generateUseCases(s.useCaseId), e.addConversation({ question: s.useCaseName, answer: null }, "faq"), o.value = !0;
|
|
2268
2296
|
};
|
|
2269
|
-
return (s, l) => o.value ? (v(),
|
|
2270
|
-
(v(!0),
|
|
2297
|
+
return (s, l) => o.value ? (v(), h("div", $s, [
|
|
2298
|
+
(v(!0), h(T, null, F(b(e).postSkillUseCases, (a) => (v(), h("div", {
|
|
2271
2299
|
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: (
|
|
2300
|
+
onClick: (c) => n(a),
|
|
2273
2301
|
key: a.useCaseId
|
|
2274
|
-
}, P(a.useCaseName), 9,
|
|
2275
|
-
|
|
2302
|
+
}, P(a.useCaseName), 9, ea))), 128)),
|
|
2303
|
+
b(e).otherUseCases.length > 0 && !r.value ? (v(), h("button", {
|
|
2276
2304
|
key: 0,
|
|
2277
2305
|
class: "md:text-[14px] text-sm hover:bg-genpact-blue-box bg-genpact-darkest-teal text-white cursor-pointer rounded-md p-2",
|
|
2278
2306
|
onClick: l[0] || (l[0] = (a) => r.value = !r.value)
|
|
2279
|
-
}, " Others ")) :
|
|
2280
|
-
r.value ? (v(),
|
|
2281
|
-
(v(!0),
|
|
2307
|
+
}, " Others ")) : Y("", !0),
|
|
2308
|
+
r.value ? (v(), h("div", ta, [
|
|
2309
|
+
(v(!0), h(T, null, F(b(e).otherUseCases, (a) => (v(), h("div", {
|
|
2282
2310
|
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: (
|
|
2311
|
+
onClick: (c) => n(a),
|
|
2284
2312
|
key: a.useCaseId
|
|
2285
|
-
}, P(a.useCaseName), 9,
|
|
2286
|
-
])) :
|
|
2287
|
-
])) : (v(),
|
|
2313
|
+
}, P(a.useCaseName), 9, oa))), 128))
|
|
2314
|
+
])) : Y("", !0)
|
|
2315
|
+
])) : (v(), h("div", ra, sa));
|
|
2288
2316
|
}
|
|
2289
|
-
}),
|
|
2317
|
+
}), ia = { key: 0 }, la = { key: 1 }, ca = { key: 0 }, da = { key: 1 }, ua = /* @__PURE__ */ te({
|
|
2290
2318
|
__name: "Conversation",
|
|
2291
2319
|
setup(t) {
|
|
2292
|
-
let e =
|
|
2320
|
+
let e = w(""), o = w("");
|
|
2293
2321
|
e = '<a style="color:#00AECF;"', o = '<ul style="list-style-type:square; padding-left:20px;"';
|
|
2294
|
-
const r = le(), n =
|
|
2295
|
-
return
|
|
2322
|
+
const r = le(), n = w();
|
|
2323
|
+
return fo(() => {
|
|
2296
2324
|
n.value.scrollTo(0, n.value.scrollHeight);
|
|
2297
|
-
}), (s, l) => (v(),
|
|
2325
|
+
}), (s, l) => (v(), h("div", {
|
|
2298
2326
|
ref_key: "nestedElement",
|
|
2299
2327
|
ref: n,
|
|
2300
2328
|
class: "smooth-scroll overflow-auto md:p-8 p-3 pb-[80px]"
|
|
2301
2329
|
}, [
|
|
2302
|
-
|
|
2303
|
-
(v(!0),
|
|
2304
|
-
a.question ? (v(),
|
|
2305
|
-
|
|
2330
|
+
I(xn),
|
|
2331
|
+
(v(!0), h(T, null, F(b(r).conversations, (a, c) => (v(), h("div", { key: c }, [
|
|
2332
|
+
a.question ? (v(), h("div", ia, [
|
|
2333
|
+
I(En, {
|
|
2306
2334
|
question: a.question,
|
|
2307
2335
|
"show-feedback": a.showFeedback
|
|
2308
2336
|
}, null, 8, ["question", "show-feedback"])
|
|
2309
|
-
])) :
|
|
2310
|
-
a.answer ? (v(),
|
|
2311
|
-
|
|
2337
|
+
])) : Y("", !0),
|
|
2338
|
+
a.answer ? (v(), h("div", la, [
|
|
2339
|
+
I(An, {
|
|
2312
2340
|
question: a.question,
|
|
2313
2341
|
"show-sources": a.showSources,
|
|
2314
2342
|
questionId: a.id,
|
|
2315
|
-
answer: a.answer.replaceAll("<a",
|
|
2343
|
+
answer: a.answer.replaceAll("<a", b(e)).replaceAll("<ul", b(o)),
|
|
2316
2344
|
"show-feedback": a.showFeedback
|
|
2317
2345
|
}, null, 8, ["question", "show-sources", "questionId", "answer", "show-feedback"])
|
|
2318
|
-
])) :
|
|
2346
|
+
])) : Y("", !0)
|
|
2319
2347
|
]))), 128)),
|
|
2320
|
-
|
|
2321
|
-
|
|
2348
|
+
b(r).skill_id ? Y("", !0) : (v(), h("div", ca, [
|
|
2349
|
+
I(_s)
|
|
2322
2350
|
])),
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
])) :
|
|
2351
|
+
b(r).showPostSkillUseCases ? (v(), h("div", da, [
|
|
2352
|
+
I(aa)
|
|
2353
|
+
])) : Y("", !0)
|
|
2326
2354
|
], 512));
|
|
2327
2355
|
}
|
|
2328
2356
|
});
|
|
2329
|
-
const ce = (t) => (
|
|
2357
|
+
const ce = (t) => (zt("data-v-ed61c2a4"), t = t(), Ht(), 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
2358
|
/* @__PURE__ */ _(" If you have any inquiries, we kindly encourage you to consult Genpact's "),
|
|
2331
2359
|
/* @__PURE__ */ i("a", {
|
|
2332
2360
|
class: "underline text-blue-500",
|
|
@@ -2339,115 +2367,115 @@ const ce = (t) => (po("data-v-ed61c2a4"), t = t(), fo(), t), sa = { class: "max-
|
|
|
2339
2367
|
target: "_blank",
|
|
2340
2368
|
href: "https://dcl.genpact.com/document/9fba671f-08c2-48bf-89d6-a591971bd16c"
|
|
2341
2369
|
}, "ChatGPT and Use of AI Programs Policy.")
|
|
2342
|
-
], -1)),
|
|
2370
|
+
], -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
2371
|
htmlFor: "check",
|
|
2344
2372
|
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)),
|
|
2373
|
+
}, " 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
2374
|
key: 0,
|
|
2347
2375
|
className: "h-screen flex flex-col items-stretch"
|
|
2348
|
-
},
|
|
2376
|
+
}, 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
2377
|
__name: "HomeView",
|
|
2350
2378
|
setup(t) {
|
|
2351
|
-
const e =
|
|
2352
|
-
const
|
|
2379
|
+
const e = w(!0), o = w(!1), r = le(), n = Ie(), s = Lt(), l = w(!1), a = w(""), c = async () => {
|
|
2380
|
+
const u = {
|
|
2353
2381
|
event_type: at.CONSENT
|
|
2354
2382
|
};
|
|
2355
|
-
o.value = !1, s.close(), await
|
|
2356
|
-
},
|
|
2357
|
-
var
|
|
2383
|
+
o.value = !1, s.close(), await ge("/generateEvent", u);
|
|
2384
|
+
}, A = async () => {
|
|
2385
|
+
var u, m, d, f, g;
|
|
2358
2386
|
try {
|
|
2359
2387
|
e.value = !1;
|
|
2360
|
-
const p = await
|
|
2361
|
-
((
|
|
2388
|
+
const p = await Dt("/getLearnerData");
|
|
2389
|
+
((u = p.data) == null ? void 0 : u.maintenance) && vo.replace({ path: "/under-maintenance" }), s.open(), r.initialize(p.data), e.value = !0;
|
|
2362
2390
|
} catch (p) {
|
|
2363
|
-
if (console.error(p), e.value = !0,
|
|
2364
|
-
const
|
|
2365
|
-
if (console.error((
|
|
2366
|
-
l.value = !0, a.value = ((f =
|
|
2391
|
+
if (console.error(p), e.value = !0, Z.isAxiosError(p)) {
|
|
2392
|
+
const y = p;
|
|
2393
|
+
if (console.error((m = y.response) == null ? void 0 : m.data), ((d = y.response) == null ? void 0 : d.status) === 422) {
|
|
2394
|
+
l.value = !0, a.value = ((f = y.response) == null ? void 0 : f.data).message;
|
|
2367
2395
|
return;
|
|
2368
2396
|
}
|
|
2369
|
-
n.setError(((
|
|
2397
|
+
n.setError(((g = y.response) == null ? void 0 : g.data).message);
|
|
2370
2398
|
} else
|
|
2371
2399
|
n.setError("There was an issue, please contact helpmate");
|
|
2372
2400
|
}
|
|
2373
2401
|
};
|
|
2374
2402
|
return Se(() => {
|
|
2375
|
-
|
|
2376
|
-
}), (
|
|
2377
|
-
|
|
2378
|
-
default:
|
|
2379
|
-
i("div",
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
i("h3",
|
|
2403
|
+
A();
|
|
2404
|
+
}), (u, m) => (v(), h("div", null, [
|
|
2405
|
+
I(qe, { "is-visible": l.value }, {
|
|
2406
|
+
default: Q(() => [
|
|
2407
|
+
i("div", pa, [
|
|
2408
|
+
I(b(je), { class: "w-12 h-12 fill-genpact-blue-box" }),
|
|
2409
|
+
I(jt, { color: "blue" }),
|
|
2410
|
+
i("h3", fa, P(a.value), 1)
|
|
2383
2411
|
])
|
|
2384
2412
|
]),
|
|
2385
2413
|
_: 1
|
|
2386
2414
|
}, 8, ["is-visible"]),
|
|
2387
|
-
|
|
2388
|
-
"is-visible":
|
|
2389
|
-
"cross-visible":
|
|
2390
|
-
onCancel:
|
|
2415
|
+
I(qe, {
|
|
2416
|
+
"is-visible": b(s).isOpen,
|
|
2417
|
+
"cross-visible": b(s).crossVisible,
|
|
2418
|
+
onCancel: m[1] || (m[1] = (d) => b(s).close())
|
|
2391
2419
|
}, {
|
|
2392
|
-
default:
|
|
2393
|
-
i("div",
|
|
2394
|
-
|
|
2420
|
+
default: Q(() => [
|
|
2421
|
+
i("div", va, [
|
|
2422
|
+
ha,
|
|
2395
2423
|
i("div", null, [
|
|
2396
|
-
i("ul",
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
i("li", null, " You can ask a maximum of " + P(
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2424
|
+
i("ul", Aa, [
|
|
2425
|
+
ma,
|
|
2426
|
+
ba,
|
|
2427
|
+
ga,
|
|
2428
|
+
i("li", null, " You can ask a maximum of " + P(b(r).questionLimit) + " questions, with each question limited to 300 characters or less. ", 1),
|
|
2429
|
+
ya,
|
|
2430
|
+
xa,
|
|
2431
|
+
wa
|
|
2404
2432
|
])
|
|
2405
2433
|
]),
|
|
2406
|
-
|
|
2407
|
-
i("div",
|
|
2434
|
+
b(s).crossVisible ? Y("", !0) : (v(), h("div", Ia, [
|
|
2435
|
+
i("div", ka, [
|
|
2408
2436
|
i("input", {
|
|
2409
2437
|
type: "checkbox",
|
|
2410
2438
|
id: "check",
|
|
2411
2439
|
className: "mr-3",
|
|
2412
|
-
onClick:
|
|
2440
|
+
onClick: m[0] || (m[0] = (d) => o.value = !o.value)
|
|
2413
2441
|
}),
|
|
2414
|
-
|
|
2442
|
+
Ea
|
|
2415
2443
|
]),
|
|
2416
|
-
i("div",
|
|
2444
|
+
i("div", Ca, [
|
|
2417
2445
|
i("button", {
|
|
2418
2446
|
disabled: !o.value,
|
|
2419
2447
|
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,
|
|
2448
|
+
onClick: c
|
|
2449
|
+
}, " Proceed ", 8, Ra)
|
|
2422
2450
|
])
|
|
2423
2451
|
]))
|
|
2424
2452
|
])
|
|
2425
2453
|
]),
|
|
2426
2454
|
_: 1
|
|
2427
2455
|
}, 8, ["is-visible", "cross-visible"]),
|
|
2428
|
-
e.value ? (v(),
|
|
2429
|
-
i("div",
|
|
2430
|
-
|
|
2456
|
+
e.value ? (v(), h("main", Ya, [
|
|
2457
|
+
i("div", Ga, [
|
|
2458
|
+
I(dr)
|
|
2431
2459
|
]),
|
|
2432
|
-
i("div",
|
|
2433
|
-
i("div",
|
|
2434
|
-
|
|
2460
|
+
i("div", Sa, [
|
|
2461
|
+
i("div", Pa, [
|
|
2462
|
+
I(Nt)
|
|
2435
2463
|
]),
|
|
2436
|
-
i("div",
|
|
2437
|
-
i("div",
|
|
2438
|
-
|
|
2439
|
-
|
|
2464
|
+
i("div", La, [
|
|
2465
|
+
i("div", Ma, [
|
|
2466
|
+
I(ua),
|
|
2467
|
+
za
|
|
2440
2468
|
]),
|
|
2441
|
-
i("div",
|
|
2442
|
-
|
|
2469
|
+
i("div", Ha, [
|
|
2470
|
+
I(Lr)
|
|
2443
2471
|
])
|
|
2444
2472
|
])
|
|
2445
2473
|
])
|
|
2446
|
-
])) : (v(),
|
|
2474
|
+
])) : (v(), Ae(mr, { key: 1 }))
|
|
2447
2475
|
]));
|
|
2448
2476
|
}
|
|
2449
2477
|
});
|
|
2450
|
-
const
|
|
2478
|
+
const ja = /* @__PURE__ */ st(Oa, [["__scopeId", "data-v-ed61c2a4"]]);
|
|
2451
2479
|
export {
|
|
2452
|
-
|
|
2480
|
+
ja as default
|
|
2453
2481
|
};
|