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