@genpact/genome.mfe.mgtwin-app 1.1.7-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-3d50e463.mjs → HomeView-8db97bad.mjs} +617 -617
- package/dist/{PromptTesting-3f666a59.mjs → PromptTesting-0c17d192.mjs} +2 -2
- package/dist/{UnderMaintenance-62859c20.mjs → UnderMaintenance-e3a16b94.mjs} +1 -1
- package/dist/{loadernew-70126a14.mjs → loadernew-cf0874cd.mjs} +1 -1
- package/dist/{main-aeed593e.mjs → main-c38f4f1b.mjs} +542 -542
- 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 Dt(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",
|
|
@@ -297,23 +297,23 @@ const mr = /* @__PURE__ */ st(ur, [["render", Ar]]), Je = {
|
|
|
297
297
|
"3,1": "s",
|
|
298
298
|
"4,0": "s",
|
|
299
299
|
"4,1": "s"
|
|
300
|
-
},
|
|
300
|
+
}, kt = {
|
|
301
301
|
i: "Continue your BITS wave",
|
|
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
|
-
|
|
362
|
-
d[0] === e.skillName && (s.value = d, console.log(d), console.log(
|
|
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
|
+
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
|
-
...
|
|
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 = Pt(), o =
|
|
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,7 +715,7 @@ 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
721
|
}, nn = { key: 1 }, sn = {
|
|
@@ -724,17 +724,17 @@ const Hr = { key: 0 }, Or = {
|
|
|
724
724
|
}, an = {
|
|
725
725
|
key: 1,
|
|
726
726
|
class: "flex flex-wrap gap-2 items-center mt-5"
|
|
727
|
-
}, ln = ["href"], cn = /* @__PURE__ */
|
|
727
|
+
}, ln = ["href"], cn = /* @__PURE__ */ Vt(() => /* @__PURE__ */ i("img", {
|
|
728
728
|
src: Mr,
|
|
729
729
|
alt: "LinkedIn Icon",
|
|
730
730
|
class: "w-4 h-4 fil-current"
|
|
731
731
|
}, null, -1)), dn = { key: 2 }, un = {
|
|
732
732
|
key: 0,
|
|
733
733
|
class: "flex flex-wrap gap-2 items-center mt-5"
|
|
734
|
-
}, pn = ["href"], fn = /* @__PURE__ */
|
|
735
|
-
src:
|
|
734
|
+
}, pn = ["href"], fn = /* @__PURE__ */ Vt(() => /* @__PURE__ */ i("img", {
|
|
735
|
+
src: Lr,
|
|
736
736
|
alt: "LinkedIn Icon",
|
|
737
|
-
class: "w-
|
|
737
|
+
class: "w-14 h-4 fil-current"
|
|
738
738
|
}, null, -1)), vn = {
|
|
739
739
|
key: 3,
|
|
740
740
|
class: "w-full pb-3 flex justify-end"
|
|
@@ -763,55 +763,55 @@ const Hr = { key: 0 }, Or = {
|
|
|
763
763
|
}
|
|
764
764
|
},
|
|
765
765
|
setup(t) {
|
|
766
|
-
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();
|
|
767
767
|
console.log("this is issue", o.value.length);
|
|
768
|
-
const
|
|
769
|
-
var
|
|
768
|
+
const m = async () => {
|
|
769
|
+
var b, d, f;
|
|
770
770
|
try {
|
|
771
771
|
if (!e.showFeedback)
|
|
772
772
|
return;
|
|
773
|
-
const
|
|
773
|
+
const A = {
|
|
774
774
|
question: e.question,
|
|
775
775
|
skill_id: c.skill_id,
|
|
776
776
|
past_messages: c.past_messages
|
|
777
|
-
},
|
|
778
|
-
s.value =
|
|
779
|
-
} catch (
|
|
780
|
-
if (console.error(
|
|
781
|
-
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;
|
|
782
782
|
console.error((d = p.response) == null ? void 0 : d.data), a.setError(((f = p.response) == null ? void 0 : f.data).message);
|
|
783
783
|
} else
|
|
784
784
|
a.setError("There was an issue, please contact helpmate");
|
|
785
785
|
}
|
|
786
786
|
}, u = async () => {
|
|
787
|
-
var
|
|
787
|
+
var b, d, f;
|
|
788
788
|
try {
|
|
789
789
|
if (!e.showFeedback)
|
|
790
790
|
return;
|
|
791
|
-
const
|
|
791
|
+
const A = {
|
|
792
792
|
question: e.question,
|
|
793
793
|
skill_id: c.skill_id,
|
|
794
794
|
past_messages: c.past_messages
|
|
795
|
-
},
|
|
796
|
-
console.log("c2 global length in c3 call==>", s.value),
|
|
797
|
-
} catch (
|
|
798
|
-
if (console.error(
|
|
799
|
-
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;
|
|
800
800
|
console.error((d = p.response) == null ? void 0 : d.data), a.setError(((f = p.response) == null ? void 0 : f.data).message);
|
|
801
801
|
} else
|
|
802
802
|
a.setError("There was an issue, please contact helpmate");
|
|
803
803
|
}
|
|
804
804
|
};
|
|
805
805
|
return ro(async () => {
|
|
806
|
-
await
|
|
807
|
-
}), (
|
|
806
|
+
await m(), u();
|
|
807
|
+
}), (b, d) => (v(), h("div", en, [
|
|
808
808
|
i("div", tn, [
|
|
809
809
|
i("span", { innerHTML: t.answer }, null, 8, on),
|
|
810
|
-
t.showSources ? (v(), h("div", rn, P(t.showSources), 1)) :
|
|
810
|
+
t.showSources ? (v(), h("div", rn, P(t.showSources), 1)) : G("", !0),
|
|
811
811
|
t.showFeedback ? (v(), h("div", nn, [
|
|
812
|
-
n.value || l.value ? (v(), h("div", sn, "Recommended Learning:")) :
|
|
812
|
+
n.value || l.value ? (v(), h("div", sn, "Recommended Learning:")) : G("", !0),
|
|
813
813
|
n.value ? (v(), h("div", an, [
|
|
814
|
-
(v(!0), h(
|
|
814
|
+
(v(!0), h(H, null, X(o.value, (f) => (v(), h("a", {
|
|
815
815
|
href: f.card_deeplink_url,
|
|
816
816
|
target: "_blank",
|
|
817
817
|
key: f.id,
|
|
@@ -820,11 +820,11 @@ const Hr = { key: 0 }, Or = {
|
|
|
820
820
|
cn,
|
|
821
821
|
i("div", null, P(f.Content_Title), 1)
|
|
822
822
|
], 8, ln))), 128))
|
|
823
|
-
])) :
|
|
824
|
-
])) :
|
|
823
|
+
])) : G("", !0)
|
|
824
|
+
])) : G("", !0),
|
|
825
825
|
t.showFeedback ? (v(), h("div", dn, [
|
|
826
826
|
l.value ? (v(), h("div", un, [
|
|
827
|
-
(v(!0), h(
|
|
827
|
+
(v(!0), h(H, null, X(r.value, (f) => (v(), h("a", {
|
|
828
828
|
href: f.card_deeplink_url,
|
|
829
829
|
target: "_blank",
|
|
830
830
|
key: f.id,
|
|
@@ -833,27 +833,27 @@ const Hr = { key: 0 }, Or = {
|
|
|
833
833
|
fn,
|
|
834
834
|
i("div", null, P(f.Content_Title), 1)
|
|
835
835
|
], 8, pn))), 128))
|
|
836
|
-
])) :
|
|
837
|
-
])) :
|
|
836
|
+
])) : G("", !0)
|
|
837
|
+
])) : G("", !0),
|
|
838
838
|
t.showFeedback ? (v(), h("div", vn, [
|
|
839
|
-
|
|
840
|
-
])) :
|
|
839
|
+
k($r, { "question-id": t.questionId }, null, 8, ["question-id"])
|
|
840
|
+
])) : G("", !0)
|
|
841
841
|
])
|
|
842
842
|
]));
|
|
843
843
|
}
|
|
844
844
|
});
|
|
845
|
-
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 = {
|
|
846
846
|
__name: "Greetings",
|
|
847
847
|
setup(t) {
|
|
848
848
|
const e = le();
|
|
849
|
-
return (o, r) => (v(), h("div",
|
|
850
|
-
i("div",
|
|
851
|
-
i("div",
|
|
852
|
-
|
|
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
|
|
853
853
|
])
|
|
854
854
|
]));
|
|
855
855
|
}
|
|
856
|
-
}, 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({
|
|
857
857
|
__name: "LearnerResponse",
|
|
858
858
|
props: {
|
|
859
859
|
question: {
|
|
@@ -867,8 +867,8 @@ const An = /* @__PURE__ */ st(hn, [["__scopeId", "data-v-c9915a62"]]), mn = { cl
|
|
|
867
867
|
},
|
|
868
868
|
setup(t) {
|
|
869
869
|
return (e, o) => (v(), h("div", wn, [
|
|
870
|
-
i("div",
|
|
871
|
-
i("div",
|
|
870
|
+
i("div", kn, [
|
|
871
|
+
i("div", En, P(t.question), 1)
|
|
872
872
|
])
|
|
873
873
|
]));
|
|
874
874
|
}
|
|
@@ -880,33 +880,33 @@ function ot(t, e, o) {
|
|
|
880
880
|
var u = Date.now() - l;
|
|
881
881
|
u < e && u >= 0 ? r = setTimeout(c, e - u) : (r = null, o || (a = t.apply(s, n), s = n = null));
|
|
882
882
|
}
|
|
883
|
-
var
|
|
883
|
+
var m = function() {
|
|
884
884
|
s = this, n = arguments, l = Date.now();
|
|
885
885
|
var u = o && !r;
|
|
886
886
|
return r || (r = setTimeout(c, e)), u && (a = t.apply(s, n), s = n = null), a;
|
|
887
887
|
};
|
|
888
|
-
return
|
|
888
|
+
return m.clear = function() {
|
|
889
889
|
r && (clearTimeout(r), r = null);
|
|
890
|
-
},
|
|
890
|
+
}, m.flush = function() {
|
|
891
891
|
r && (a = t.apply(s, n), s = n = null, clearTimeout(r), r = null);
|
|
892
|
-
},
|
|
892
|
+
}, m;
|
|
893
893
|
}
|
|
894
894
|
ot.debounce = ot;
|
|
895
895
|
var _e = ot;
|
|
896
|
-
function
|
|
897
|
-
po(t) ?
|
|
896
|
+
function Gn(t, e, o) {
|
|
897
|
+
po(t) ? ye(t, (r, n) => {
|
|
898
898
|
n == null || n.removeEventListener(e, o), r == null || r.addEventListener(e, o);
|
|
899
899
|
}) : Se(() => {
|
|
900
900
|
t.addEventListener(e, o);
|
|
901
901
|
}), nt(() => {
|
|
902
902
|
var r;
|
|
903
|
-
(r =
|
|
903
|
+
(r = y(t)) === null || r === void 0 || r.removeEventListener(e, o);
|
|
904
904
|
});
|
|
905
905
|
}
|
|
906
|
-
function
|
|
906
|
+
function Cn(t, e) {
|
|
907
907
|
const o = "pointerdown";
|
|
908
|
-
return typeof window > "u" || !window ? void 0 :
|
|
909
|
-
const s =
|
|
908
|
+
return typeof window > "u" || !window ? void 0 : Gn(window, o, (n) => {
|
|
909
|
+
const s = y(t);
|
|
910
910
|
s && (s === n.target || n.composedPath().includes(s) || e(n));
|
|
911
911
|
});
|
|
912
912
|
}
|
|
@@ -918,7 +918,7 @@ function Yn(t, e, o) {
|
|
|
918
918
|
childList: !0,
|
|
919
919
|
subtree: !0
|
|
920
920
|
});
|
|
921
|
-
}), nt(() => r.disconnect()),
|
|
921
|
+
}), nt(() => r.disconnect()), ye(o, (l) => {
|
|
922
922
|
l ? n.value = !0 : n.value = !1;
|
|
923
923
|
});
|
|
924
924
|
const s = () => {
|
|
@@ -928,7 +928,7 @@ function Yn(t, e, o) {
|
|
|
928
928
|
hasContent: n
|
|
929
929
|
};
|
|
930
930
|
}
|
|
931
|
-
function
|
|
931
|
+
function ge(t, e) {
|
|
932
932
|
var o = t.getBoundingClientRect(), r = 1, n = 1;
|
|
933
933
|
return {
|
|
934
934
|
width: o.width / r,
|
|
@@ -957,40 +957,40 @@ function it(t) {
|
|
|
957
957
|
scrollTop: r
|
|
958
958
|
};
|
|
959
959
|
}
|
|
960
|
-
function
|
|
960
|
+
function Ce(t) {
|
|
961
961
|
var e = W(t).Element;
|
|
962
962
|
return t instanceof e || t instanceof Element;
|
|
963
963
|
}
|
|
964
|
-
function
|
|
964
|
+
function Q(t) {
|
|
965
965
|
var e = W(t).HTMLElement;
|
|
966
966
|
return t instanceof e || t instanceof HTMLElement;
|
|
967
967
|
}
|
|
968
|
-
function
|
|
968
|
+
function Xt(t) {
|
|
969
969
|
if (typeof ShadowRoot > "u")
|
|
970
970
|
return !1;
|
|
971
971
|
var e = W(t).ShadowRoot;
|
|
972
972
|
return t instanceof e || t instanceof ShadowRoot;
|
|
973
973
|
}
|
|
974
|
-
function
|
|
974
|
+
function In(t) {
|
|
975
975
|
return {
|
|
976
976
|
scrollLeft: t.scrollLeft,
|
|
977
977
|
scrollTop: t.scrollTop
|
|
978
978
|
};
|
|
979
979
|
}
|
|
980
980
|
function Sn(t) {
|
|
981
|
-
return t === W(t) || !
|
|
981
|
+
return t === W(t) || !Q(t) ? it(t) : In(t);
|
|
982
982
|
}
|
|
983
983
|
function ee(t) {
|
|
984
984
|
return t ? (t.nodeName || "").toLowerCase() : null;
|
|
985
985
|
}
|
|
986
986
|
function ue(t) {
|
|
987
|
-
return ((
|
|
987
|
+
return ((Ce(t) ? t.ownerDocument : (
|
|
988
988
|
// $FlowFixMe[prop-missing]
|
|
989
989
|
t.document
|
|
990
990
|
)) || window.document).documentElement;
|
|
991
991
|
}
|
|
992
992
|
function lt(t) {
|
|
993
|
-
return
|
|
993
|
+
return ge(ue(t)).left + it(t).scrollLeft;
|
|
994
994
|
}
|
|
995
995
|
function ie(t) {
|
|
996
996
|
return W(t).getComputedStyle(t);
|
|
@@ -1003,11 +1003,11 @@ function Pn(t) {
|
|
|
1003
1003
|
var e = t.getBoundingClientRect(), o = e.width / t.offsetWidth || 1, r = e.height / t.offsetHeight || 1;
|
|
1004
1004
|
return o !== 1 || r !== 1;
|
|
1005
1005
|
}
|
|
1006
|
-
function
|
|
1006
|
+
function zn(t, e, o) {
|
|
1007
1007
|
o === void 0 && (o = !1);
|
|
1008
|
-
var r =
|
|
1009
|
-
|
|
1010
|
-
var n = ue(e), s =
|
|
1008
|
+
var r = Q(e);
|
|
1009
|
+
Q(e) && Pn(e);
|
|
1010
|
+
var n = ue(e), s = ge(t), l = {
|
|
1011
1011
|
scrollLeft: 0,
|
|
1012
1012
|
scrollTop: 0
|
|
1013
1013
|
}, a = {
|
|
@@ -1015,7 +1015,7 @@ function Ln(t, e, o) {
|
|
|
1015
1015
|
y: 0
|
|
1016
1016
|
};
|
|
1017
1017
|
return (r || !r && !o) && ((ee(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
1018
|
-
ct(n)) && (l = Sn(e)),
|
|
1018
|
+
ct(n)) && (l = Sn(e)), Q(e) ? (a = ge(e), a.x += e.clientLeft, a.y += e.clientTop) : n && (a.x = lt(n))), {
|
|
1019
1019
|
x: s.left + l.scrollLeft - a.x,
|
|
1020
1020
|
y: s.top + l.scrollTop - a.y,
|
|
1021
1021
|
width: s.width,
|
|
@@ -1023,7 +1023,7 @@ function Ln(t, e, o) {
|
|
|
1023
1023
|
};
|
|
1024
1024
|
}
|
|
1025
1025
|
function dt(t) {
|
|
1026
|
-
var e =
|
|
1026
|
+
var e = ge(t), o = t.offsetWidth, r = t.offsetHeight;
|
|
1027
1027
|
return Math.abs(e.width - o) <= 1 && (o = e.width), Math.abs(e.height - r) <= 1 && (r = e.height), {
|
|
1028
1028
|
x: t.offsetLeft,
|
|
1029
1029
|
y: t.offsetTop,
|
|
@@ -1031,45 +1031,45 @@ function dt(t) {
|
|
|
1031
1031
|
height: r
|
|
1032
1032
|
};
|
|
1033
1033
|
}
|
|
1034
|
-
function
|
|
1034
|
+
function Ze(t) {
|
|
1035
1035
|
return ee(t) === "html" ? t : (
|
|
1036
1036
|
// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
1037
1037
|
// $FlowFixMe[incompatible-return]
|
|
1038
1038
|
// $FlowFixMe[prop-missing]
|
|
1039
1039
|
t.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
1040
1040
|
t.parentNode || // DOM Element detected
|
|
1041
|
-
(
|
|
1041
|
+
(Xt(t) ? t.host : null) || // ShadowRoot detected
|
|
1042
1042
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
1043
1043
|
ue(t)
|
|
1044
1044
|
);
|
|
1045
1045
|
}
|
|
1046
|
-
function
|
|
1047
|
-
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));
|
|
1048
1048
|
}
|
|
1049
|
-
function
|
|
1049
|
+
function Ge(t, e) {
|
|
1050
1050
|
var o;
|
|
1051
1051
|
e === void 0 && (e = []);
|
|
1052
|
-
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);
|
|
1053
1053
|
return n ? a : (
|
|
1054
1054
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
1055
|
-
a.concat(
|
|
1055
|
+
a.concat(Ge(Ze(l)))
|
|
1056
1056
|
);
|
|
1057
1057
|
}
|
|
1058
1058
|
function Mn(t) {
|
|
1059
1059
|
return ["table", "td", "th"].indexOf(ee(t)) >= 0;
|
|
1060
1060
|
}
|
|
1061
|
-
function
|
|
1062
|
-
return !
|
|
1061
|
+
function Et(t) {
|
|
1062
|
+
return !Q(t) || // https://github.com/popperjs/popper-core/issues/837
|
|
1063
1063
|
ie(t).position === "fixed" ? null : t.offsetParent;
|
|
1064
1064
|
}
|
|
1065
|
-
function
|
|
1065
|
+
function Ln(t) {
|
|
1066
1066
|
var e = navigator.userAgent.toLowerCase().indexOf("firefox") !== -1, o = navigator.userAgent.indexOf("Trident") !== -1;
|
|
1067
|
-
if (o &&
|
|
1067
|
+
if (o && Q(t)) {
|
|
1068
1068
|
var r = ie(t);
|
|
1069
1069
|
if (r.position === "fixed")
|
|
1070
1070
|
return null;
|
|
1071
1071
|
}
|
|
1072
|
-
for (var n =
|
|
1072
|
+
for (var n = Ze(t); Q(n) && ["html", "body"].indexOf(ee(n)) < 0; ) {
|
|
1073
1073
|
var s = ie(n);
|
|
1074
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")
|
|
1075
1075
|
return n;
|
|
@@ -1078,16 +1078,16 @@ function zn(t) {
|
|
|
1078
1078
|
return null;
|
|
1079
1079
|
}
|
|
1080
1080
|
function Pe(t) {
|
|
1081
|
-
for (var e = W(t), o =
|
|
1082
|
-
o =
|
|
1083
|
-
return o && (ee(o) === "html" || ee(o) === "body" && ie(o).position === "static") ? e : o ||
|
|
1081
|
+
for (var e = W(t), o = Et(t); o && Mn(o) && ie(o).position === "static"; )
|
|
1082
|
+
o = Et(o);
|
|
1083
|
+
return o && (ee(o) === "html" || ee(o) === "body" && ie(o).position === "static") ? e : o || Ln(t) || e;
|
|
1084
1084
|
}
|
|
1085
|
-
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) {
|
|
1086
1086
|
return t.concat([e + "-" + xe, e + "-" + Ye]);
|
|
1087
|
-
}, []),
|
|
1087
|
+
}, []), Qt = /* @__PURE__ */ [].concat(ze, [ut]).reduce(function(t, e) {
|
|
1088
1088
|
return t.concat([e, e + "-" + xe, e + "-" + Ye]);
|
|
1089
|
-
}, []),
|
|
1090
|
-
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) {
|
|
1091
1091
|
var e = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Set(), r = [];
|
|
1092
1092
|
t.forEach(function(s) {
|
|
1093
1093
|
e.set(s.name, s);
|
|
@@ -1106,9 +1106,9 @@ function Xn(t) {
|
|
|
1106
1106
|
o.has(s.name) || n(s);
|
|
1107
1107
|
}), r;
|
|
1108
1108
|
}
|
|
1109
|
-
function
|
|
1110
|
-
var e =
|
|
1111
|
-
return
|
|
1109
|
+
function Kn(t) {
|
|
1110
|
+
var e = Un(t);
|
|
1111
|
+
return Zn.reduce(function(o, r) {
|
|
1112
1112
|
return o.concat(e.filter(function(n) {
|
|
1113
1113
|
return n.phase === r;
|
|
1114
1114
|
}));
|
|
@@ -1148,7 +1148,7 @@ function Jn(t) {
|
|
|
1148
1148
|
y: a
|
|
1149
1149
|
};
|
|
1150
1150
|
}
|
|
1151
|
-
var de = Math.max,
|
|
1151
|
+
var de = Math.max, Ie = Math.min, Ne = Math.round;
|
|
1152
1152
|
function _n(t) {
|
|
1153
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;
|
|
1154
1154
|
return ie(n || o).direction === "rtl" && (a += de(o.clientWidth, n ? n.clientWidth : 0) - s), {
|
|
@@ -1158,11 +1158,11 @@ function _n(t) {
|
|
|
1158
1158
|
y: c
|
|
1159
1159
|
};
|
|
1160
1160
|
}
|
|
1161
|
-
function
|
|
1161
|
+
function Zt(t, e) {
|
|
1162
1162
|
var o = e.getRootNode && e.getRootNode();
|
|
1163
1163
|
if (t.contains(e))
|
|
1164
1164
|
return !0;
|
|
1165
|
-
if (o &&
|
|
1165
|
+
if (o && Xt(o)) {
|
|
1166
1166
|
var r = e;
|
|
1167
1167
|
do {
|
|
1168
1168
|
if (r && t.isSameNode(r))
|
|
@@ -1181,23 +1181,23 @@ function rt(t) {
|
|
|
1181
1181
|
});
|
|
1182
1182
|
}
|
|
1183
1183
|
function $n(t) {
|
|
1184
|
-
var e =
|
|
1184
|
+
var e = ge(t);
|
|
1185
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;
|
|
1186
1186
|
}
|
|
1187
|
-
function
|
|
1188
|
-
return e ===
|
|
1187
|
+
function Gt(t, e) {
|
|
1188
|
+
return e === qt ? rt(Jn(t)) : Q(e) ? $n(e) : rt(_n(ue(t)));
|
|
1189
1189
|
}
|
|
1190
1190
|
function es(t) {
|
|
1191
|
-
var e =
|
|
1192
|
-
return
|
|
1193
|
-
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";
|
|
1194
1194
|
}) : [];
|
|
1195
1195
|
}
|
|
1196
1196
|
function ts(t, e, o) {
|
|
1197
1197
|
var r = e === "clippingParents" ? es(t) : [].concat(e), n = [].concat(r, [o]), s = n[0], l = n.reduce(function(a, c) {
|
|
1198
|
-
var
|
|
1199
|
-
return a.top = de(
|
|
1200
|
-
},
|
|
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));
|
|
1201
1201
|
return l.width = l.right - l.left, l.height = l.bottom - l.top, l.x = l.left, l.y = l.top, l;
|
|
1202
1202
|
}
|
|
1203
1203
|
function we(t) {
|
|
@@ -1206,16 +1206,16 @@ function we(t) {
|
|
|
1206
1206
|
function pt(t) {
|
|
1207
1207
|
return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
|
|
1208
1208
|
}
|
|
1209
|
-
function
|
|
1209
|
+
function Ut(t) {
|
|
1210
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;
|
|
1211
1211
|
switch (n) {
|
|
1212
|
-
case
|
|
1212
|
+
case Z:
|
|
1213
1213
|
c = {
|
|
1214
1214
|
x: l,
|
|
1215
1215
|
y: e.y - o.height
|
|
1216
1216
|
};
|
|
1217
1217
|
break;
|
|
1218
|
-
case
|
|
1218
|
+
case K:
|
|
1219
1219
|
c = {
|
|
1220
1220
|
x: l,
|
|
1221
1221
|
y: e.y + e.height
|
|
@@ -1227,7 +1227,7 @@ function Xt(t) {
|
|
|
1227
1227
|
y: a
|
|
1228
1228
|
};
|
|
1229
1229
|
break;
|
|
1230
|
-
case
|
|
1230
|
+
case U:
|
|
1231
1231
|
c = {
|
|
1232
1232
|
x: e.x - o.width,
|
|
1233
1233
|
y: a
|
|
@@ -1239,21 +1239,21 @@ function Xt(t) {
|
|
|
1239
1239
|
y: e.y
|
|
1240
1240
|
};
|
|
1241
1241
|
}
|
|
1242
|
-
var
|
|
1243
|
-
if (
|
|
1244
|
-
var u =
|
|
1242
|
+
var m = n ? pt(n) : null;
|
|
1243
|
+
if (m != null) {
|
|
1244
|
+
var u = m === "y" ? "height" : "width";
|
|
1245
1245
|
switch (s) {
|
|
1246
1246
|
case xe:
|
|
1247
|
-
c[
|
|
1247
|
+
c[m] = c[m] - (e[u] / 2 - o[u] / 2);
|
|
1248
1248
|
break;
|
|
1249
1249
|
case Ye:
|
|
1250
|
-
c[
|
|
1250
|
+
c[m] = c[m] + (e[u] / 2 - o[u] / 2);
|
|
1251
1251
|
break;
|
|
1252
1252
|
}
|
|
1253
1253
|
}
|
|
1254
1254
|
return c;
|
|
1255
1255
|
}
|
|
1256
|
-
function
|
|
1256
|
+
function Kt() {
|
|
1257
1257
|
return {
|
|
1258
1258
|
top: 0,
|
|
1259
1259
|
right: 0,
|
|
@@ -1262,7 +1262,7 @@ function Ut() {
|
|
|
1262
1262
|
};
|
|
1263
1263
|
}
|
|
1264
1264
|
function Bt(t) {
|
|
1265
|
-
return Object.assign({},
|
|
1265
|
+
return Object.assign({}, Kt(), t);
|
|
1266
1266
|
}
|
|
1267
1267
|
function Wt(t, e) {
|
|
1268
1268
|
return e.reduce(function(o, r) {
|
|
@@ -1271,27 +1271,27 @@ function Wt(t, e) {
|
|
|
1271
1271
|
}
|
|
1272
1272
|
function ft(t, e) {
|
|
1273
1273
|
e === void 0 && (e = {});
|
|
1274
|
-
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({
|
|
1275
1275
|
reference: x,
|
|
1276
|
-
element:
|
|
1276
|
+
element: R,
|
|
1277
1277
|
strategy: "absolute",
|
|
1278
1278
|
placement: n
|
|
1279
|
-
}), Y = rt(Object.assign({},
|
|
1280
|
-
top:
|
|
1281
|
-
bottom:
|
|
1282
|
-
left:
|
|
1283
|
-
right:
|
|
1284
|
-
},
|
|
1285
|
-
if (u ===
|
|
1286
|
-
var
|
|
1287
|
-
Object.keys(M).forEach(function(
|
|
1288
|
-
var oe = [B,
|
|
1289
|
-
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;
|
|
1290
1290
|
});
|
|
1291
1291
|
}
|
|
1292
1292
|
return M;
|
|
1293
1293
|
}
|
|
1294
|
-
var
|
|
1294
|
+
var Ct = {
|
|
1295
1295
|
placement: "bottom",
|
|
1296
1296
|
modifiers: [],
|
|
1297
1297
|
strategy: "absolute"
|
|
@@ -1305,13 +1305,13 @@ function Yt() {
|
|
|
1305
1305
|
}
|
|
1306
1306
|
function os(t) {
|
|
1307
1307
|
t === void 0 && (t = {});
|
|
1308
|
-
var e = t, o = e.defaultModifiers, r = o === void 0 ? [] : o, n = e.defaultOptions, s = n === void 0 ?
|
|
1309
|
-
return function(a, c,
|
|
1310
|
-
|
|
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);
|
|
1311
1311
|
var u = {
|
|
1312
1312
|
placement: "bottom",
|
|
1313
1313
|
orderedModifiers: [],
|
|
1314
|
-
options: Object.assign({},
|
|
1314
|
+
options: Object.assign({}, Ct, s),
|
|
1315
1315
|
modifiersData: {},
|
|
1316
1316
|
elements: {
|
|
1317
1317
|
reference: a,
|
|
@@ -1319,18 +1319,18 @@ function os(t) {
|
|
|
1319
1319
|
},
|
|
1320
1320
|
attributes: {},
|
|
1321
1321
|
styles: {}
|
|
1322
|
-
},
|
|
1322
|
+
}, b = [], d = !1, f = {
|
|
1323
1323
|
state: u,
|
|
1324
|
-
setOptions: function(
|
|
1325
|
-
var
|
|
1326
|
-
p(), u.options = Object.assign({}, s, u.options,
|
|
1327
|
-
reference:
|
|
1328
|
-
popper:
|
|
1324
|
+
setOptions: function(R) {
|
|
1325
|
+
var C = typeof R == "function" ? R(u.options) : R;
|
|
1326
|
+
p(), u.options = Object.assign({}, s, u.options, C), u.scrollParents = {
|
|
1327
|
+
reference: Ce(a) ? Ge(a) : a.contextElement ? Ge(a.contextElement) : [],
|
|
1328
|
+
popper: Ge(c)
|
|
1329
1329
|
};
|
|
1330
|
-
var
|
|
1331
|
-
return u.orderedModifiers =
|
|
1330
|
+
var E = Kn(Wn([].concat(r, u.options.modifiers)));
|
|
1331
|
+
return u.orderedModifiers = E.filter(function(x) {
|
|
1332
1332
|
return x.enabled;
|
|
1333
|
-
}),
|
|
1333
|
+
}), A(), f.update();
|
|
1334
1334
|
},
|
|
1335
1335
|
// Sync update – it will always be executed, even if not necessary. This
|
|
1336
1336
|
// is useful for low frequency updates where sync behavior simplifies the
|
|
@@ -1339,24 +1339,24 @@ function os(t) {
|
|
|
1339
1339
|
// prefer the async Popper#update method
|
|
1340
1340
|
forceUpdate: function() {
|
|
1341
1341
|
if (!d) {
|
|
1342
|
-
var
|
|
1343
|
-
if (Yt(
|
|
1342
|
+
var R = u.elements, C = R.reference, E = R.popper;
|
|
1343
|
+
if (Yt(C, E)) {
|
|
1344
1344
|
u.rects = {
|
|
1345
|
-
reference:
|
|
1346
|
-
popper: dt(
|
|
1347
|
-
}, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(
|
|
1348
|
-
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);
|
|
1349
1349
|
});
|
|
1350
1350
|
for (var x = 0; x < u.orderedModifiers.length; x++) {
|
|
1351
1351
|
if (u.reset === !0) {
|
|
1352
1352
|
u.reset = !1, x = -1;
|
|
1353
1353
|
continue;
|
|
1354
1354
|
}
|
|
1355
|
-
var S = u.orderedModifiers[x], Y = S.fn,
|
|
1355
|
+
var S = u.orderedModifiers[x], Y = S.fn, I = S.options, M = I === void 0 ? {} : I, z = S.name;
|
|
1356
1356
|
typeof Y == "function" && (u = Y({
|
|
1357
1357
|
state: u,
|
|
1358
1358
|
options: M,
|
|
1359
|
-
name:
|
|
1359
|
+
name: z,
|
|
1360
1360
|
instance: f
|
|
1361
1361
|
}) || u);
|
|
1362
1362
|
}
|
|
@@ -1366,8 +1366,8 @@ function os(t) {
|
|
|
1366
1366
|
// Async and optimistically optimized update – it will not be executed if
|
|
1367
1367
|
// not necessary (debounced to run at most once-per-tick)
|
|
1368
1368
|
update: Bn(function() {
|
|
1369
|
-
return new Promise(function(
|
|
1370
|
-
f.forceUpdate(),
|
|
1369
|
+
return new Promise(function(g) {
|
|
1370
|
+
f.forceUpdate(), g(u);
|
|
1371
1371
|
});
|
|
1372
1372
|
}),
|
|
1373
1373
|
destroy: function() {
|
|
@@ -1376,43 +1376,43 @@ function os(t) {
|
|
|
1376
1376
|
};
|
|
1377
1377
|
if (!Yt(a, c))
|
|
1378
1378
|
return f;
|
|
1379
|
-
f.setOptions(
|
|
1380
|
-
!d &&
|
|
1379
|
+
f.setOptions(m).then(function(g) {
|
|
1380
|
+
!d && m.onFirstUpdate && m.onFirstUpdate(g);
|
|
1381
1381
|
});
|
|
1382
|
-
function
|
|
1383
|
-
u.orderedModifiers.forEach(function(
|
|
1384
|
-
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;
|
|
1385
1385
|
if (typeof x == "function") {
|
|
1386
1386
|
var S = x({
|
|
1387
1387
|
state: u,
|
|
1388
|
-
name:
|
|
1388
|
+
name: R,
|
|
1389
1389
|
instance: f,
|
|
1390
|
-
options:
|
|
1390
|
+
options: E
|
|
1391
1391
|
}), Y = function() {
|
|
1392
1392
|
};
|
|
1393
|
-
|
|
1393
|
+
b.push(S || Y);
|
|
1394
1394
|
}
|
|
1395
1395
|
});
|
|
1396
1396
|
}
|
|
1397
1397
|
function p() {
|
|
1398
|
-
|
|
1399
|
-
return
|
|
1400
|
-
}),
|
|
1398
|
+
b.forEach(function(g) {
|
|
1399
|
+
return g();
|
|
1400
|
+
}), b = [];
|
|
1401
1401
|
}
|
|
1402
1402
|
return f;
|
|
1403
1403
|
};
|
|
1404
1404
|
}
|
|
1405
|
-
var
|
|
1405
|
+
var He = {
|
|
1406
1406
|
passive: !0
|
|
1407
1407
|
};
|
|
1408
1408
|
function rs(t) {
|
|
1409
|
-
var e = t.state, o = t.instance, r = t.options, n = r.scroll, s = n === void 0 ? !0 : n, l = r.resize, a = l === void 0 ? !0 : l, c = W(e.elements.popper),
|
|
1410
|
-
return s &&
|
|
1411
|
-
u.addEventListener("scroll", o.update,
|
|
1412
|
-
}), a && c.addEventListener("resize", o.update,
|
|
1413
|
-
s &&
|
|
1414
|
-
u.removeEventListener("scroll", o.update,
|
|
1415
|
-
}), 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);
|
|
1416
1416
|
};
|
|
1417
1417
|
}
|
|
1418
1418
|
var ns = {
|
|
@@ -1426,7 +1426,7 @@ var ns = {
|
|
|
1426
1426
|
};
|
|
1427
1427
|
function ss(t) {
|
|
1428
1428
|
var e = t.state, o = t.name;
|
|
1429
|
-
e.modifiersData[o] =
|
|
1429
|
+
e.modifiersData[o] = Ut({
|
|
1430
1430
|
reference: e.rects.reference,
|
|
1431
1431
|
element: e.rects.popper,
|
|
1432
1432
|
strategy: "absolute",
|
|
@@ -1448,39 +1448,39 @@ var as = {
|
|
|
1448
1448
|
function ls(t) {
|
|
1449
1449
|
var e = t.x, o = t.y, r = window, n = r.devicePixelRatio || 1;
|
|
1450
1450
|
return {
|
|
1451
|
-
x:
|
|
1452
|
-
y:
|
|
1451
|
+
x: Ne(Ne(e * n) / n) || 0,
|
|
1452
|
+
y: Ne(Ne(o * n) / n) || 0
|
|
1453
1453
|
};
|
|
1454
1454
|
}
|
|
1455
|
-
function
|
|
1456
|
-
var e, o = t.popper, r = t.popperRect, n = t.placement, s = t.variation, l = t.offsets, a = t.position, c = t.gpuAcceleration,
|
|
1457
|
-
if (
|
|
1458
|
-
var S = Pe(o), Y = "clientHeight",
|
|
1459
|
-
S === W(o) && (S = ue(o), ie(S).position !== "static" && a === "absolute" && (Y = "scrollHeight",
|
|
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);
|
|
1460
1460
|
}
|
|
1461
1461
|
var M = Object.assign({
|
|
1462
1462
|
position: a
|
|
1463
|
-
},
|
|
1463
|
+
}, m && is);
|
|
1464
1464
|
if (c) {
|
|
1465
|
-
var
|
|
1466
|
-
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));
|
|
1467
1467
|
}
|
|
1468
|
-
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));
|
|
1469
1469
|
}
|
|
1470
1470
|
function cs(t) {
|
|
1471
|
-
var e = t.state, o = t.options, r = o.gpuAcceleration, n = r === void 0 ? !0 : r, s = o.adaptive, l = s === void 0 ? !0 : s, a = o.roundOffsets, c = a === void 0 ? !0 : a,
|
|
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 = {
|
|
1472
1472
|
placement: $(e.placement),
|
|
1473
1473
|
variation: we(e.placement),
|
|
1474
1474
|
popper: e.elements.popper,
|
|
1475
1475
|
popperRect: e.rects.popper,
|
|
1476
1476
|
gpuAcceleration: n
|
|
1477
1477
|
};
|
|
1478
|
-
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, {
|
|
1479
1479
|
offsets: e.modifiersData.popperOffsets,
|
|
1480
1480
|
position: e.options.strategy,
|
|
1481
1481
|
adaptive: l,
|
|
1482
1482
|
roundOffsets: c
|
|
1483
|
-
})))), 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, {
|
|
1484
1484
|
offsets: e.modifiersData.arrow,
|
|
1485
1485
|
position: "absolute",
|
|
1486
1486
|
adaptive: !1,
|
|
@@ -1500,7 +1500,7 @@ function us(t) {
|
|
|
1500
1500
|
var e = t.state;
|
|
1501
1501
|
Object.keys(e.elements).forEach(function(o) {
|
|
1502
1502
|
var r = e.styles[o] || {}, n = e.attributes[o] || {}, s = e.elements[o];
|
|
1503
|
-
!
|
|
1503
|
+
!Q(s) || !ee(s) || (Object.assign(s.style, r), Object.keys(n).forEach(function(l) {
|
|
1504
1504
|
var a = n[l];
|
|
1505
1505
|
a === !1 ? s.removeAttribute(l) : s.setAttribute(l, a === !0 ? "" : a);
|
|
1506
1506
|
}));
|
|
@@ -1521,10 +1521,10 @@ function ps(t) {
|
|
|
1521
1521
|
};
|
|
1522
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() {
|
|
1523
1523
|
Object.keys(e.elements).forEach(function(r) {
|
|
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,
|
|
1525
|
-
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;
|
|
1526
1526
|
}, {});
|
|
1527
|
-
!
|
|
1527
|
+
!Q(n) || !ee(n) || (Object.assign(n.style, a), Object.keys(s).forEach(function(c) {
|
|
1528
1528
|
n.removeAttribute(c);
|
|
1529
1529
|
}));
|
|
1530
1530
|
});
|
|
@@ -1540,158 +1540,158 @@ var fs = {
|
|
|
1540
1540
|
}, vs = [ns, as, ds, fs], hs = /* @__PURE__ */ os({
|
|
1541
1541
|
defaultModifiers: vs
|
|
1542
1542
|
});
|
|
1543
|
-
function
|
|
1543
|
+
function ms(t) {
|
|
1544
1544
|
return t === "x" ? "y" : "x";
|
|
1545
1545
|
}
|
|
1546
|
-
function
|
|
1547
|
-
return de(t,
|
|
1546
|
+
function Ve(t, e, o) {
|
|
1547
|
+
return de(t, Ie(e, o));
|
|
1548
1548
|
}
|
|
1549
|
-
function
|
|
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,
|
|
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, {
|
|
1551
1551
|
boundary: c,
|
|
1552
|
-
rootBoundary:
|
|
1553
|
-
padding:
|
|
1552
|
+
rootBoundary: m,
|
|
1553
|
+
padding: b,
|
|
1554
1554
|
altBoundary: u
|
|
1555
|
-
}),
|
|
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, {
|
|
1556
1556
|
placement: e.placement
|
|
1557
|
-
})) : p,
|
|
1557
|
+
})) : p, D = {
|
|
1558
1558
|
x: 0,
|
|
1559
1559
|
y: 0
|
|
1560
1560
|
};
|
|
1561
1561
|
if (Y) {
|
|
1562
1562
|
if (s || a) {
|
|
1563
|
-
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) : {
|
|
1564
1564
|
width: 0,
|
|
1565
1565
|
height: 0
|
|
1566
|
-
}, 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;
|
|
1567
1567
|
if (s) {
|
|
1568
|
-
var
|
|
1569
|
-
Y[x] =
|
|
1568
|
+
var yt = Ve(f ? Ie(ne, mt) : ne, re, f ? de(F, bt) : F);
|
|
1569
|
+
Y[x] = yt, D[x] = yt - re;
|
|
1570
1570
|
}
|
|
1571
1571
|
if (a) {
|
|
1572
|
-
var $t = x === "x" ?
|
|
1573
|
-
Y[S] = xt,
|
|
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;
|
|
1574
1574
|
}
|
|
1575
1575
|
}
|
|
1576
|
-
e.modifiersData[r] =
|
|
1576
|
+
e.modifiersData[r] = D;
|
|
1577
1577
|
}
|
|
1578
1578
|
}
|
|
1579
|
-
var
|
|
1579
|
+
var ys = {
|
|
1580
1580
|
name: "preventOverflow",
|
|
1581
1581
|
enabled: !0,
|
|
1582
1582
|
phase: "main",
|
|
1583
|
-
fn:
|
|
1583
|
+
fn: bs,
|
|
1584
1584
|
requiresIfExists: ["offset"]
|
|
1585
|
-
},
|
|
1585
|
+
}, As = {
|
|
1586
1586
|
left: "right",
|
|
1587
1587
|
right: "left",
|
|
1588
1588
|
bottom: "top",
|
|
1589
1589
|
top: "bottom"
|
|
1590
1590
|
};
|
|
1591
|
-
function
|
|
1591
|
+
function Xe(t) {
|
|
1592
1592
|
return t.replace(/left|right|bottom|top/g, function(e) {
|
|
1593
|
-
return
|
|
1593
|
+
return As[e];
|
|
1594
1594
|
});
|
|
1595
1595
|
}
|
|
1596
|
-
var
|
|
1596
|
+
var gs = {
|
|
1597
1597
|
start: "end",
|
|
1598
1598
|
end: "start"
|
|
1599
1599
|
};
|
|
1600
1600
|
function St(t) {
|
|
1601
1601
|
return t.replace(/start|end/g, function(e) {
|
|
1602
|
-
return
|
|
1602
|
+
return gs[e];
|
|
1603
1603
|
});
|
|
1604
1604
|
}
|
|
1605
1605
|
function xs(t, e) {
|
|
1606
1606
|
e === void 0 && (e = {});
|
|
1607
|
-
var o = e, r = o.placement, n = o.boundary, s = o.rootBoundary, l = o.padding, a = o.flipVariations, c = o.allowedAutoPlacements,
|
|
1608
|
-
return we(
|
|
1609
|
-
}) :
|
|
1610
|
-
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;
|
|
1611
1611
|
});
|
|
1612
|
-
d.length === 0 && (d =
|
|
1613
|
-
var f = d.reduce(function(
|
|
1614
|
-
return
|
|
1612
|
+
d.length === 0 && (d = b);
|
|
1613
|
+
var f = d.reduce(function(A, p) {
|
|
1614
|
+
return A[p] = ft(t, {
|
|
1615
1615
|
placement: p,
|
|
1616
1616
|
boundary: n,
|
|
1617
1617
|
rootBoundary: s,
|
|
1618
1618
|
padding: l
|
|
1619
|
-
})[$(p)],
|
|
1619
|
+
})[$(p)], A;
|
|
1620
1620
|
}, {});
|
|
1621
|
-
return Object.keys(f).sort(function(
|
|
1622
|
-
return f[
|
|
1621
|
+
return Object.keys(f).sort(function(A, p) {
|
|
1622
|
+
return f[A] - f[p];
|
|
1623
1623
|
});
|
|
1624
1624
|
}
|
|
1625
1625
|
function ws(t) {
|
|
1626
1626
|
if ($(t) === ut)
|
|
1627
1627
|
return [];
|
|
1628
|
-
var e =
|
|
1628
|
+
var e = Xe(t);
|
|
1629
1629
|
return [St(t), e, St(e)];
|
|
1630
1630
|
}
|
|
1631
|
-
function
|
|
1631
|
+
function ks(t) {
|
|
1632
1632
|
var e = t.state, o = t.options, r = t.name;
|
|
1633
1633
|
if (!e.modifiersData[r]._skip) {
|
|
1634
|
-
for (var n = o.mainAxis, s = n === void 0 ? !0 : n, l = o.altAxis, a = l === void 0 ? !0 : l, c = o.fallbackPlacements,
|
|
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
1635
|
return pe.concat($(J) === ut ? xs(e, {
|
|
1636
1636
|
placement: J,
|
|
1637
1637
|
boundary: u,
|
|
1638
|
-
rootBoundary:
|
|
1639
|
-
padding:
|
|
1640
|
-
flipVariations:
|
|
1638
|
+
rootBoundary: b,
|
|
1639
|
+
padding: m,
|
|
1640
|
+
flipVariations: A,
|
|
1641
1641
|
allowedAutoPlacements: p
|
|
1642
1642
|
}) : J);
|
|
1643
|
-
}, []), S = e.rects.reference, Y = e.rects.popper,
|
|
1644
|
-
var
|
|
1645
|
-
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,
|
|
1646
1646
|
boundary: u,
|
|
1647
|
-
rootBoundary:
|
|
1647
|
+
rootBoundary: b,
|
|
1648
1648
|
altBoundary: d,
|
|
1649
|
-
padding:
|
|
1650
|
-
}), se = re ?
|
|
1651
|
-
S[ne] > Y[ne] && (se =
|
|
1652
|
-
var O =
|
|
1653
|
-
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) {
|
|
1654
1654
|
return pe;
|
|
1655
1655
|
})) {
|
|
1656
|
-
|
|
1656
|
+
z = T, M = !1;
|
|
1657
1657
|
break;
|
|
1658
1658
|
}
|
|
1659
|
-
|
|
1659
|
+
I.set(T, N);
|
|
1660
1660
|
}
|
|
1661
1661
|
if (M)
|
|
1662
|
-
for (var
|
|
1663
|
-
var
|
|
1664
|
-
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);
|
|
1665
1665
|
if (he)
|
|
1666
|
-
return he.slice(0, J).every(function(
|
|
1667
|
-
return
|
|
1666
|
+
return he.slice(0, J).every(function(Ke) {
|
|
1667
|
+
return Ke;
|
|
1668
1668
|
});
|
|
1669
1669
|
});
|
|
1670
|
-
if (
|
|
1671
|
-
return
|
|
1672
|
-
}, ve =
|
|
1670
|
+
if (Le)
|
|
1671
|
+
return z = Le, "break";
|
|
1672
|
+
}, ve = j; ve > 0; ve--) {
|
|
1673
1673
|
var Me = ae(ve);
|
|
1674
1674
|
if (Me === "break")
|
|
1675
1675
|
break;
|
|
1676
1676
|
}
|
|
1677
|
-
e.placement !==
|
|
1677
|
+
e.placement !== z && (e.modifiersData[r]._skip = !0, e.placement = z, e.reset = !0);
|
|
1678
1678
|
}
|
|
1679
1679
|
}
|
|
1680
|
-
var
|
|
1680
|
+
var Es = {
|
|
1681
1681
|
name: "flip",
|
|
1682
1682
|
enabled: !0,
|
|
1683
1683
|
phase: "main",
|
|
1684
|
-
fn:
|
|
1684
|
+
fn: ks,
|
|
1685
1685
|
requiresIfExists: ["offset"],
|
|
1686
1686
|
data: {
|
|
1687
1687
|
_skip: !1
|
|
1688
1688
|
}
|
|
1689
1689
|
};
|
|
1690
|
-
function
|
|
1691
|
-
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, {
|
|
1692
1692
|
placement: t
|
|
1693
1693
|
})) : o, l = s[0], a = s[1];
|
|
1694
|
-
return l = l || 0, a = (a || 0) * n, [
|
|
1694
|
+
return l = l || 0, a = (a || 0) * n, [U, B].indexOf(r) >= 0 ? {
|
|
1695
1695
|
x: a,
|
|
1696
1696
|
y: l
|
|
1697
1697
|
} : {
|
|
@@ -1699,45 +1699,45 @@ function Es(t, e, o) {
|
|
|
1699
1699
|
y: a
|
|
1700
1700
|
};
|
|
1701
1701
|
}
|
|
1702
|
-
function
|
|
1703
|
-
var e = t.state, o = t.options, r = t.name, n = o.offset, s = n === void 0 ? [0, 0] : n, l =
|
|
1704
|
-
return u[
|
|
1705
|
-
}, {}), a = l[e.placement], c = a.x,
|
|
1706
|
-
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;
|
|
1707
1707
|
}
|
|
1708
|
-
var
|
|
1708
|
+
var Cs = {
|
|
1709
1709
|
name: "offset",
|
|
1710
1710
|
enabled: !0,
|
|
1711
1711
|
phase: "main",
|
|
1712
1712
|
requires: ["popperOffsets"],
|
|
1713
|
-
fn:
|
|
1713
|
+
fn: Gs
|
|
1714
1714
|
}, Ys = function(e, o) {
|
|
1715
1715
|
return e = typeof e == "function" ? e(Object.assign({}, o.rects, {
|
|
1716
1716
|
placement: o.placement
|
|
1717
|
-
})) : e, Bt(typeof e != "number" ? e : Wt(e,
|
|
1717
|
+
})) : e, Bt(typeof e != "number" ? e : Wt(e, ze));
|
|
1718
1718
|
};
|
|
1719
|
-
function
|
|
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),
|
|
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";
|
|
1721
1721
|
if (!(!s || !l)) {
|
|
1722
|
-
var
|
|
1723
|
-
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);
|
|
1724
1724
|
}
|
|
1725
1725
|
}
|
|
1726
1726
|
function Ss(t) {
|
|
1727
1727
|
var e = t.state, o = t.options, r = o.element, n = r === void 0 ? "[data-popper-arrow]" : r;
|
|
1728
|
-
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));
|
|
1729
1729
|
}
|
|
1730
1730
|
var Ps = {
|
|
1731
1731
|
name: "arrow",
|
|
1732
1732
|
enabled: !0,
|
|
1733
1733
|
phase: "main",
|
|
1734
|
-
fn:
|
|
1734
|
+
fn: Is,
|
|
1735
1735
|
effect: Ss,
|
|
1736
1736
|
requires: ["popperOffsets"],
|
|
1737
1737
|
requiresIfExists: ["preventOverflow"]
|
|
1738
1738
|
};
|
|
1739
1739
|
const $e = (t) => parseInt(t, 10);
|
|
1740
|
-
function
|
|
1740
|
+
function zs({
|
|
1741
1741
|
arrowPadding: t,
|
|
1742
1742
|
emit: e,
|
|
1743
1743
|
locked: o,
|
|
@@ -1750,27 +1750,27 @@ function Ls({
|
|
|
1750
1750
|
const c = co({
|
|
1751
1751
|
isOpen: !1,
|
|
1752
1752
|
popperInstance: null
|
|
1753
|
-
}),
|
|
1754
|
-
var
|
|
1755
|
-
(
|
|
1756
|
-
...
|
|
1757
|
-
modifiers: [...
|
|
1753
|
+
}), m = (p) => {
|
|
1754
|
+
var g;
|
|
1755
|
+
(g = c.popperInstance) === null || g === void 0 || g.setOptions((R) => ({
|
|
1756
|
+
...R,
|
|
1757
|
+
modifiers: [...R.modifiers, {
|
|
1758
1758
|
name: "eventListeners",
|
|
1759
1759
|
enabled: p
|
|
1760
1760
|
}]
|
|
1761
1761
|
}));
|
|
1762
|
-
}, u = () =>
|
|
1762
|
+
}, u = () => m(!0), b = () => m(!1), d = () => {
|
|
1763
1763
|
c.isOpen && (c.isOpen = !1, e("close:popper"));
|
|
1764
1764
|
}, f = () => {
|
|
1765
1765
|
c.isOpen || (c.isOpen = !0, e("open:popper"));
|
|
1766
1766
|
};
|
|
1767
|
-
|
|
1768
|
-
p ? (await
|
|
1767
|
+
ye([() => c.isOpen, s], async ([p]) => {
|
|
1768
|
+
p ? (await A(), u()) : b();
|
|
1769
1769
|
});
|
|
1770
|
-
const
|
|
1770
|
+
const A = async () => {
|
|
1771
1771
|
await uo(), c.popperInstance = hs(a.value, l.value, {
|
|
1772
1772
|
placement: s.value,
|
|
1773
|
-
modifiers: [
|
|
1773
|
+
modifiers: [ys, Es, {
|
|
1774
1774
|
name: "flip",
|
|
1775
1775
|
enabled: !o.value
|
|
1776
1776
|
}, Ps, {
|
|
@@ -1778,7 +1778,7 @@ function Ls({
|
|
|
1778
1778
|
options: {
|
|
1779
1779
|
padding: $e(t.value)
|
|
1780
1780
|
}
|
|
1781
|
-
},
|
|
1781
|
+
}, Cs, {
|
|
1782
1782
|
name: "offset",
|
|
1783
1783
|
options: {
|
|
1784
1784
|
offset: [$e(n.value), $e(r.value)]
|
|
@@ -1790,7 +1790,7 @@ function Ls({
|
|
|
1790
1790
|
var p;
|
|
1791
1791
|
(p = c.popperInstance) === null || p === void 0 || p.destroy();
|
|
1792
1792
|
}), {
|
|
1793
|
-
...
|
|
1793
|
+
...jt(c),
|
|
1794
1794
|
open: f,
|
|
1795
1795
|
close: d
|
|
1796
1796
|
};
|
|
@@ -1799,7 +1799,7 @@ const Ms = {
|
|
|
1799
1799
|
id: "arrow",
|
|
1800
1800
|
"data-popper-arrow": ""
|
|
1801
1801
|
};
|
|
1802
|
-
function
|
|
1802
|
+
function Ls(t, e) {
|
|
1803
1803
|
return v(), h("div", Ms);
|
|
1804
1804
|
}
|
|
1805
1805
|
function Jt(t, e) {
|
|
@@ -1810,7 +1810,7 @@ function Jt(t, e) {
|
|
|
1810
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));
|
|
1811
1811
|
}
|
|
1812
1812
|
}
|
|
1813
|
-
var
|
|
1813
|
+
var js = `
|
|
1814
1814
|
#arrow[data-v-20b7fd4a],
|
|
1815
1815
|
#arrow[data-v-20b7fd4a]::before {
|
|
1816
1816
|
transition: background 250ms ease-in-out;
|
|
@@ -1867,12 +1867,12 @@ var Hs = `
|
|
|
1867
1867
|
left: -5px;
|
|
1868
1868
|
}
|
|
1869
1869
|
`;
|
|
1870
|
-
Jt(
|
|
1870
|
+
Jt(js);
|
|
1871
1871
|
const vt = {};
|
|
1872
|
-
vt.render =
|
|
1872
|
+
vt.render = Ls;
|
|
1873
1873
|
vt.__scopeId = "data-v-20b7fd4a";
|
|
1874
1874
|
var Os = vt;
|
|
1875
|
-
const
|
|
1875
|
+
const Ns = ["onKeyup"];
|
|
1876
1876
|
var _t = {
|
|
1877
1877
|
props: {
|
|
1878
1878
|
/**
|
|
@@ -2000,83 +2000,83 @@ var _t = {
|
|
|
2000
2000
|
});
|
|
2001
2001
|
const {
|
|
2002
2002
|
arrowPadding: c,
|
|
2003
|
-
closeDelay:
|
|
2003
|
+
closeDelay: m,
|
|
2004
2004
|
content: u,
|
|
2005
|
-
disableClickAway:
|
|
2005
|
+
disableClickAway: b,
|
|
2006
2006
|
disabled: d,
|
|
2007
2007
|
interactive: f,
|
|
2008
|
-
locked:
|
|
2008
|
+
locked: A,
|
|
2009
2009
|
offsetDistance: p,
|
|
2010
|
-
offsetSkid:
|
|
2011
|
-
openDelay:
|
|
2012
|
-
placement:
|
|
2013
|
-
show:
|
|
2014
|
-
} =
|
|
2010
|
+
offsetSkid: g,
|
|
2011
|
+
openDelay: R,
|
|
2012
|
+
placement: C,
|
|
2013
|
+
show: E
|
|
2014
|
+
} = jt(o), {
|
|
2015
2015
|
isOpen: x,
|
|
2016
2016
|
open: S,
|
|
2017
2017
|
close: Y
|
|
2018
|
-
} =
|
|
2018
|
+
} = zs({
|
|
2019
2019
|
arrowPadding: c,
|
|
2020
2020
|
emit: e,
|
|
2021
|
-
locked:
|
|
2021
|
+
locked: A,
|
|
2022
2022
|
offsetDistance: p,
|
|
2023
|
-
offsetSkid:
|
|
2024
|
-
placement:
|
|
2023
|
+
offsetSkid: g,
|
|
2024
|
+
placement: C,
|
|
2025
2025
|
popperNode: s,
|
|
2026
2026
|
triggerNode: l
|
|
2027
2027
|
}), {
|
|
2028
|
-
hasContent:
|
|
2029
|
-
} = Yn(r, s, u), M =
|
|
2030
|
-
|
|
2031
|
-
},
|
|
2032
|
-
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());
|
|
2033
2033
|
}, se = () => {
|
|
2034
|
-
x.value ?
|
|
2034
|
+
x.value ? F() : ne();
|
|
2035
2035
|
};
|
|
2036
|
-
return
|
|
2037
|
-
x.value && (!O ||
|
|
2038
|
-
}),
|
|
2036
|
+
return ye([I, d], ([O, N]) => {
|
|
2037
|
+
x.value && (!O || N) && Y();
|
|
2038
|
+
}), ye(x, (O) => {
|
|
2039
2039
|
O ? a.value = !0 : _e.debounce(() => {
|
|
2040
2040
|
a.value = !1;
|
|
2041
2041
|
}, 200);
|
|
2042
2042
|
}), wt(() => {
|
|
2043
|
-
M.value && (
|
|
2043
|
+
M.value && (E.value ? L() : re());
|
|
2044
2044
|
}), wt(() => {
|
|
2045
|
-
|
|
2046
|
-
}), (O,
|
|
2045
|
+
T.value && Cn(n, F);
|
|
2046
|
+
}), (O, N) => (v(), h("div", {
|
|
2047
2047
|
class: "inline-block",
|
|
2048
|
-
style: lo(
|
|
2049
|
-
onMouseleave:
|
|
2050
|
-
ref: (
|
|
2051
|
-
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;
|
|
2052
2052
|
}
|
|
2053
2053
|
}, [i("div", {
|
|
2054
|
-
ref: (
|
|
2055
|
-
ae.triggerNode =
|
|
2054
|
+
ref: (j, ae) => {
|
|
2055
|
+
ae.triggerNode = j, l.value = j;
|
|
2056
2056
|
},
|
|
2057
|
-
onMouseover:
|
|
2057
|
+
onMouseover: N[0] || (N[0] = (j) => t.hover && ne()),
|
|
2058
2058
|
onClick: se,
|
|
2059
2059
|
onFocus: ne,
|
|
2060
|
-
onKeyup: ao(
|
|
2061
|
-
}, [tt(O.$slots, "default")], 40,
|
|
2060
|
+
onKeyup: ao(F, ["esc"])
|
|
2061
|
+
}, [tt(O.$slots, "default")], 40, Ns), k(zt, {
|
|
2062
2062
|
name: "fade"
|
|
2063
2063
|
}, {
|
|
2064
|
-
default:
|
|
2065
|
-
onClick:
|
|
2064
|
+
default: V(() => [fe(i("div", {
|
|
2065
|
+
onClick: N[1] || (N[1] = (j) => !y(f) && F()),
|
|
2066
2066
|
class: "popper",
|
|
2067
|
-
ref: (
|
|
2068
|
-
ae.popperNode =
|
|
2067
|
+
ref: (j, ae) => {
|
|
2068
|
+
ae.popperNode = j, s.value = j;
|
|
2069
2069
|
}
|
|
2070
2070
|
}, [tt(O.$slots, "content", {
|
|
2071
|
-
close:
|
|
2071
|
+
close: y(Y),
|
|
2072
2072
|
isOpen: a.value
|
|
2073
|
-
}, () => [_(P(
|
|
2073
|
+
}, () => [_(P(y(u)), 1)]), t.arrow ? (v(), me(Os, {
|
|
2074
2074
|
key: 0
|
|
2075
|
-
})) :
|
|
2075
|
+
})) : G("", !0)], 512), [[io, y(D)]])]),
|
|
2076
2076
|
_: 3
|
|
2077
2077
|
})], 36));
|
|
2078
2078
|
}
|
|
2079
|
-
},
|
|
2079
|
+
}, Hs = `
|
|
2080
2080
|
.inline-block[data-v-5784ed69] {
|
|
2081
2081
|
display: inline-block;
|
|
2082
2082
|
}
|
|
@@ -2108,77 +2108,77 @@ var _t = {
|
|
|
2108
2108
|
opacity: 0;
|
|
2109
2109
|
}
|
|
2110
2110
|
`;
|
|
2111
|
-
Jt(
|
|
2111
|
+
Jt(Hs);
|
|
2112
2112
|
_t.__scopeId = "data-v-5784ed69";
|
|
2113
|
-
var
|
|
2113
|
+
var De = /* @__PURE__ */ (() => {
|
|
2114
2114
|
const t = _t;
|
|
2115
2115
|
return t.install = (e) => {
|
|
2116
2116
|
e.component("Popper", t);
|
|
2117
2117
|
}, t;
|
|
2118
2118
|
})();
|
|
2119
|
-
const
|
|
2119
|
+
const Ds = {
|
|
2120
2120
|
key: 0,
|
|
2121
2121
|
class: "flex gap-2 items-stretch flex-wrap mt-2"
|
|
2122
|
-
},
|
|
2122
|
+
}, Ts = ["onClick"], Vs = {
|
|
2123
2123
|
class: "bg-white w-56 rounded-md max-h-60 overflow-auto",
|
|
2124
2124
|
role: "none"
|
|
2125
|
-
},
|
|
2125
|
+
}, Xs = ["onClick"], Fs = {
|
|
2126
2126
|
class: "bg-white w-56 rounded-md max-h-60 overflow-auto",
|
|
2127
2127
|
role: "none"
|
|
2128
|
-
},
|
|
2128
|
+
}, qs = ["onClick"], Qs = {
|
|
2129
2129
|
class: "bg-white w-56 rounded-md max-h-60 overflow-auto",
|
|
2130
2130
|
role: "none"
|
|
2131
|
-
},
|
|
2131
|
+
}, Zs = ["onClick"], Us = {
|
|
2132
2132
|
class: "bg-white w-56 rounded-md max-h-60 overflow-auto",
|
|
2133
2133
|
role: "none"
|
|
2134
|
-
},
|
|
2134
|
+
}, Ks = ["onClick"], Bs = { key: 1 }, Ws = /* @__PURE__ */ i("img", {
|
|
2135
2135
|
class: "w-12 h-12 block loadercss",
|
|
2136
|
-
src:
|
|
2136
|
+
src: qe,
|
|
2137
2137
|
alt: "Loader Gif"
|
|
2138
2138
|
}, null, -1), Js = [
|
|
2139
2139
|
Ws
|
|
2140
2140
|
], _s = /* @__PURE__ */ te({
|
|
2141
2141
|
__name: "SkillOptions",
|
|
2142
2142
|
setup(t) {
|
|
2143
|
-
const e = le(), o =
|
|
2144
|
-
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;
|
|
2145
2145
|
try {
|
|
2146
2146
|
r.value = !1;
|
|
2147
2147
|
const d = await Ot(
|
|
2148
|
-
`/initialDataV2?skill_id=${
|
|
2148
|
+
`/initialDataV2?skill_id=${m.skill_id}&prof_id=${go}&skill_master_id=${m.skill_master_id}`
|
|
2149
2149
|
);
|
|
2150
2150
|
e.selectSkill(d.data), e.addPostSkillSelectionMessage(), r.value = !0;
|
|
2151
2151
|
} catch (d) {
|
|
2152
|
-
if (console.error(d),
|
|
2152
|
+
if (console.error(d), q.isAxiosError(d)) {
|
|
2153
2153
|
const f = d;
|
|
2154
|
-
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);
|
|
2155
2155
|
} else
|
|
2156
2156
|
o.setError("There was an issue, please contact helpmate");
|
|
2157
2157
|
}
|
|
2158
2158
|
};
|
|
2159
|
-
return (
|
|
2160
|
-
var
|
|
2161
|
-
return r.value ? (v(), h("div",
|
|
2162
|
-
(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", {
|
|
2163
2163
|
class: "md:text-[14px] text-sm hover:bg-genpact-blue-box bg-genpact-darkest-teal text-white cursor-pointer rounded-md p-2",
|
|
2164
|
-
onClick: (
|
|
2164
|
+
onClick: (g) => c(p),
|
|
2165
2165
|
key: p.skill_id
|
|
2166
|
-
}, P(p.skill_name), 9,
|
|
2167
|
-
(
|
|
2166
|
+
}, P(p.skill_name), 9, Ts))), 128)),
|
|
2167
|
+
(b = y(e).industry_skills) != null && b.length ? (v(), me(y(De), {
|
|
2168
2168
|
key: 0,
|
|
2169
2169
|
show: n.value,
|
|
2170
2170
|
placement: "bottom"
|
|
2171
2171
|
}, {
|
|
2172
|
-
content:
|
|
2173
|
-
i("div",
|
|
2174
|
-
(v(!0), h(
|
|
2175
|
-
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),
|
|
2176
2176
|
key: p.skill_id,
|
|
2177
2177
|
class: "cursor-pointer hover:text-genpact-blue-box hover:font-bold text-gray-700 block px-4 py-2 text-sm"
|
|
2178
|
-
}, P(p.skill_name), 9,
|
|
2178
|
+
}, P(p.skill_name), 9, Xs))), 128))
|
|
2179
2179
|
])
|
|
2180
2180
|
]),
|
|
2181
|
-
default:
|
|
2181
|
+
default: V(() => [
|
|
2182
2182
|
i("button", {
|
|
2183
2183
|
onClick: u[0] || (u[0] = (p) => n.value = !n.value),
|
|
2184
2184
|
onFocusout: u[1] || (u[1] = (p) => n.value = !1),
|
|
@@ -2186,26 +2186,26 @@ const Ns = {
|
|
|
2186
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"
|
|
2187
2187
|
}, [
|
|
2188
2188
|
_(" Industry "),
|
|
2189
|
-
|
|
2189
|
+
k(y(Oe), { class: "w-3 h-3" })
|
|
2190
2190
|
], 32)
|
|
2191
2191
|
]),
|
|
2192
2192
|
_: 1
|
|
2193
|
-
}, 8, ["show"])) :
|
|
2194
|
-
(d =
|
|
2193
|
+
}, 8, ["show"])) : G("", !0),
|
|
2194
|
+
(d = y(e).service_line_skills) != null && d.length ? (v(), me(y(De), {
|
|
2195
2195
|
key: 1,
|
|
2196
2196
|
show: s.value,
|
|
2197
2197
|
placement: "bottom"
|
|
2198
2198
|
}, {
|
|
2199
|
-
content:
|
|
2200
|
-
i("div",
|
|
2201
|
-
(v(!0), h(
|
|
2202
|
-
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),
|
|
2203
2203
|
key: p.skill_id,
|
|
2204
2204
|
class: "cursor-pointer hover:text-genpact-blue-box hover:font-bold text-gray-700 block px-4 py-2 text-sm"
|
|
2205
|
-
}, P(p.skill_name), 9,
|
|
2205
|
+
}, P(p.skill_name), 9, qs))), 128))
|
|
2206
2206
|
])
|
|
2207
2207
|
]),
|
|
2208
|
-
default:
|
|
2208
|
+
default: V(() => [
|
|
2209
2209
|
i("button", {
|
|
2210
2210
|
onClick: u[2] || (u[2] = (p) => s.value = !s.value),
|
|
2211
2211
|
onFocusout: u[3] || (u[3] = (p) => s.value = !1),
|
|
@@ -2213,26 +2213,26 @@ const Ns = {
|
|
|
2213
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"
|
|
2214
2214
|
}, [
|
|
2215
2215
|
_(" Service Line "),
|
|
2216
|
-
|
|
2216
|
+
k(y(Oe), { class: "w-3 h-3" })
|
|
2217
2217
|
], 32)
|
|
2218
2218
|
]),
|
|
2219
2219
|
_: 1
|
|
2220
|
-
}, 8, ["show"])) :
|
|
2221
|
-
(f =
|
|
2220
|
+
}, 8, ["show"])) : G("", !0),
|
|
2221
|
+
(f = y(e).digital_skills) != null && f.length ? (v(), me(y(De), {
|
|
2222
2222
|
key: 2,
|
|
2223
2223
|
show: l.value,
|
|
2224
2224
|
placement: "bottom"
|
|
2225
2225
|
}, {
|
|
2226
|
-
content:
|
|
2227
|
-
i("div",
|
|
2228
|
-
(v(!0), h(
|
|
2229
|
-
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),
|
|
2230
2230
|
key: p.skill_id,
|
|
2231
2231
|
class: "cursor-pointer hover:text-genpact-blue-box hover:font-bold text-gray-700 block px-4 py-2 text-sm"
|
|
2232
|
-
}, P(p.skill_name), 9,
|
|
2232
|
+
}, P(p.skill_name), 9, Zs))), 128))
|
|
2233
2233
|
])
|
|
2234
2234
|
]),
|
|
2235
|
-
default:
|
|
2235
|
+
default: V(() => [
|
|
2236
2236
|
i("button", {
|
|
2237
2237
|
onClick: u[4] || (u[4] = (p) => l.value = !l.value),
|
|
2238
2238
|
onFocusout: u[5] || (u[5] = (p) => l.value = !1),
|
|
@@ -2240,26 +2240,26 @@ const Ns = {
|
|
|
2240
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"
|
|
2241
2241
|
}, [
|
|
2242
2242
|
_(" Digital "),
|
|
2243
|
-
|
|
2243
|
+
k(y(Oe), { class: "w-3 h-3" })
|
|
2244
2244
|
], 32)
|
|
2245
2245
|
]),
|
|
2246
2246
|
_: 1
|
|
2247
|
-
}, 8, ["show"])) :
|
|
2248
|
-
(
|
|
2247
|
+
}, 8, ["show"])) : G("", !0),
|
|
2248
|
+
(A = y(e).professional_skills) != null && A.length ? (v(), me(y(De), {
|
|
2249
2249
|
key: 3,
|
|
2250
2250
|
show: a.value,
|
|
2251
2251
|
placement: "bottom"
|
|
2252
2252
|
}, {
|
|
2253
|
-
content:
|
|
2254
|
-
i("div",
|
|
2255
|
-
(v(!0), h(
|
|
2256
|
-
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),
|
|
2257
2257
|
key: p.skill_id,
|
|
2258
2258
|
class: "cursor-pointer hover:text-genpact-blue-box hover:font-bold text-gray-700 block px-4 py-2 text-sm"
|
|
2259
|
-
}, P(p.skill_name), 9,
|
|
2259
|
+
}, P(p.skill_name), 9, Ks))), 128))
|
|
2260
2260
|
])
|
|
2261
2261
|
]),
|
|
2262
|
-
default:
|
|
2262
|
+
default: V(() => [
|
|
2263
2263
|
i("button", {
|
|
2264
2264
|
onClick: u[6] || (u[6] = (p) => a.value = !a.value),
|
|
2265
2265
|
onFocusout: u[7] || (u[7] = (p) => a.value = !1),
|
|
@@ -2267,11 +2267,11 @@ const Ns = {
|
|
|
2267
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"
|
|
2268
2268
|
}, [
|
|
2269
2269
|
_(" Professional "),
|
|
2270
|
-
|
|
2270
|
+
k(y(Oe), { class: "w-3 h-3" })
|
|
2271
2271
|
], 32)
|
|
2272
2272
|
]),
|
|
2273
2273
|
_: 1
|
|
2274
|
-
}, 8, ["show"])) :
|
|
2274
|
+
}, 8, ["show"])) : G("", !0)
|
|
2275
2275
|
])) : (v(), h("div", Bs, Js));
|
|
2276
2276
|
};
|
|
2277
2277
|
}
|
|
@@ -2283,7 +2283,7 @@ const Ns = {
|
|
|
2283
2283
|
class: "flex gap-2 items-center flex-wrap"
|
|
2284
2284
|
}, oa = ["onClick"], ra = { key: 1 }, na = /* @__PURE__ */ i("img", {
|
|
2285
2285
|
class: "w-12 h-12 block loadercss",
|
|
2286
|
-
src:
|
|
2286
|
+
src: qe,
|
|
2287
2287
|
alt: "Loader Gif"
|
|
2288
2288
|
}, null, -1), sa = [
|
|
2289
2289
|
na
|
|
@@ -2298,23 +2298,23 @@ const Ns = {
|
|
|
2298
2298
|
await e.generateUseCases(s.useCaseId), e.addConversation({ question: s.useCaseName, answer: null }, "faq"), o.value = !0;
|
|
2299
2299
|
};
|
|
2300
2300
|
return (s, l) => o.value ? (v(), h("div", $s, [
|
|
2301
|
-
(v(!0), h(
|
|
2301
|
+
(v(!0), h(H, null, X(y(e).postSkillUseCases, (a) => (v(), h("div", {
|
|
2302
2302
|
class: "md:text-[14px] text-sm hover:bg-genpact-blue-box bg-genpact-darkest-teal text-white cursor-pointer rounded-md p-2",
|
|
2303
2303
|
onClick: (c) => n(a),
|
|
2304
2304
|
key: a.useCaseId
|
|
2305
2305
|
}, P(a.useCaseName), 9, ea))), 128)),
|
|
2306
|
-
|
|
2306
|
+
y(e).otherUseCases.length > 0 && !r.value ? (v(), h("button", {
|
|
2307
2307
|
key: 0,
|
|
2308
2308
|
class: "md:text-[14px] text-sm hover:bg-genpact-blue-box bg-genpact-darkest-teal text-white cursor-pointer rounded-md p-2",
|
|
2309
2309
|
onClick: l[0] || (l[0] = (a) => r.value = !r.value)
|
|
2310
|
-
}, " Others ")) :
|
|
2310
|
+
}, " Others ")) : G("", !0),
|
|
2311
2311
|
r.value ? (v(), h("div", ta, [
|
|
2312
|
-
(v(!0), h(
|
|
2312
|
+
(v(!0), h(H, null, X(y(e).otherUseCases, (a) => (v(), h("div", {
|
|
2313
2313
|
class: "md:text-[14px] text-sm hover:bg-genpact-blue-box bg-genpact-darkest-teal text-white cursor-pointer rounded-md p-2",
|
|
2314
2314
|
onClick: (c) => n(a),
|
|
2315
2315
|
key: a.useCaseId
|
|
2316
2316
|
}, P(a.useCaseName), 9, oa))), 128))
|
|
2317
|
-
])) :
|
|
2317
|
+
])) : G("", !0)
|
|
2318
2318
|
])) : (v(), h("div", ra, sa));
|
|
2319
2319
|
}
|
|
2320
2320
|
}), ia = { key: 0 }, la = { key: 1 }, ca = { key: 0 }, da = { key: 1 }, ua = /* @__PURE__ */ te({
|
|
@@ -2330,34 +2330,34 @@ const Ns = {
|
|
|
2330
2330
|
ref: n,
|
|
2331
2331
|
class: "smooth-scroll overflow-auto md:p-8 p-3 pb-[80px]"
|
|
2332
2332
|
}, [
|
|
2333
|
-
|
|
2334
|
-
(v(!0), h(
|
|
2333
|
+
k(xn),
|
|
2334
|
+
(v(!0), h(H, null, X(y(r).conversations, (a, c) => (v(), h("div", { key: c }, [
|
|
2335
2335
|
a.question ? (v(), h("div", ia, [
|
|
2336
|
-
|
|
2336
|
+
k(Rn, {
|
|
2337
2337
|
question: a.question,
|
|
2338
2338
|
"show-feedback": a.showFeedback
|
|
2339
2339
|
}, null, 8, ["question", "show-feedback"])
|
|
2340
|
-
])) :
|
|
2340
|
+
])) : G("", !0),
|
|
2341
2341
|
a.answer ? (v(), h("div", la, [
|
|
2342
|
-
|
|
2342
|
+
k(mn, {
|
|
2343
2343
|
question: a.question,
|
|
2344
2344
|
"show-sources": a.showSources,
|
|
2345
2345
|
questionId: a.id,
|
|
2346
|
-
answer: a.answer.replaceAll("<a",
|
|
2346
|
+
answer: a.answer.replaceAll("<a", y(e)).replaceAll("<ul", y(o)),
|
|
2347
2347
|
"show-feedback": a.showFeedback
|
|
2348
2348
|
}, null, 8, ["question", "show-sources", "questionId", "answer", "show-feedback"])
|
|
2349
|
-
])) :
|
|
2349
|
+
])) : G("", !0)
|
|
2350
2350
|
]))), 128)),
|
|
2351
|
-
|
|
2352
|
-
|
|
2351
|
+
y(r).skill_id ? G("", !0) : (v(), h("div", ca, [
|
|
2352
|
+
k(_s)
|
|
2353
2353
|
])),
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
])) :
|
|
2354
|
+
y(r).showPostSkillUseCases ? (v(), h("div", da, [
|
|
2355
|
+
k(aa)
|
|
2356
|
+
])) : G("", !0)
|
|
2357
2357
|
], 512));
|
|
2358
2358
|
}
|
|
2359
2359
|
});
|
|
2360
|
-
const ce = (t) => (Mt("data-v-ed61c2a4"), t = 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, [
|
|
2361
2361
|
/* @__PURE__ */ _(" If you have any inquiries, we kindly encourage you to consult Genpact's "),
|
|
2362
2362
|
/* @__PURE__ */ i("a", {
|
|
2363
2363
|
class: "underline text-blue-500",
|
|
@@ -2370,86 +2370,86 @@ const ce = (t) => (Mt("data-v-ed61c2a4"), t = t(), zt(), t), pa = { class: "max-
|
|
|
2370
2370
|
target: "_blank",
|
|
2371
2371
|
href: "https://dcl.genpact.com/document/9fba671f-08c2-48bf-89d6-a591971bd16c"
|
|
2372
2372
|
}, "ChatGPT and Use of AI Programs Policy.")
|
|
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)),
|
|
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", {
|
|
2374
2374
|
htmlFor: "check",
|
|
2375
2375
|
className: "underline text-blue-700 font-bold cursor-pointer md:text-[16px] text-[14px]"
|
|
2376
|
-
}, " 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 = {
|
|
2377
2377
|
key: 0,
|
|
2378
2378
|
className: "h-screen flex flex-col items-stretch"
|
|
2379
|
-
},
|
|
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({
|
|
2380
2380
|
__name: "HomeView",
|
|
2381
2381
|
setup(t) {
|
|
2382
|
-
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 () => {
|
|
2383
2383
|
const u = {
|
|
2384
2384
|
event_type: at.CONSENT
|
|
2385
2385
|
};
|
|
2386
|
-
o.value = !1, s.close(), await
|
|
2387
|
-
},
|
|
2388
|
-
var u,
|
|
2386
|
+
o.value = !1, s.close(), await Ae("/generateEvent", u);
|
|
2387
|
+
}, m = async () => {
|
|
2388
|
+
var u, b, d, f, A;
|
|
2389
2389
|
try {
|
|
2390
2390
|
e.value = !1;
|
|
2391
2391
|
const p = await Ot("/getLearnerData");
|
|
2392
2392
|
((u = p.data) == null ? void 0 : u.maintenance) && vo.replace({ path: "/under-maintenance" }), s.open(), r.initialize(p.data), e.value = !0;
|
|
2393
2393
|
} catch (p) {
|
|
2394
|
-
if (console.error(p), e.value = !0,
|
|
2395
|
-
const
|
|
2396
|
-
if (console.error((
|
|
2397
|
-
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;
|
|
2398
2398
|
return;
|
|
2399
2399
|
}
|
|
2400
|
-
n.setError(((
|
|
2400
|
+
n.setError(((A = g.response) == null ? void 0 : A.data).message);
|
|
2401
2401
|
} else
|
|
2402
2402
|
n.setError("There was an issue, please contact helpmate");
|
|
2403
2403
|
}
|
|
2404
2404
|
};
|
|
2405
2405
|
return Se(() => {
|
|
2406
|
-
|
|
2407
|
-
}), (u,
|
|
2408
|
-
|
|
2409
|
-
default:
|
|
2406
|
+
m();
|
|
2407
|
+
}), (u, b) => (v(), h("div", null, [
|
|
2408
|
+
k(Fe, { "is-visible": l.value }, {
|
|
2409
|
+
default: V(() => [
|
|
2410
2410
|
i("div", pa, [
|
|
2411
|
-
|
|
2412
|
-
|
|
2411
|
+
k(y(Te), { class: "w-12 h-12 fill-genpact-blue-box" }),
|
|
2412
|
+
k(Dt, { color: "blue" }),
|
|
2413
2413
|
i("h3", fa, P(a.value), 1)
|
|
2414
2414
|
])
|
|
2415
2415
|
]),
|
|
2416
2416
|
_: 1
|
|
2417
2417
|
}, 8, ["is-visible"]),
|
|
2418
|
-
|
|
2419
|
-
"is-visible":
|
|
2420
|
-
"cross-visible":
|
|
2421
|
-
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())
|
|
2422
2422
|
}, {
|
|
2423
|
-
default:
|
|
2423
|
+
default: V(() => [
|
|
2424
2424
|
i("div", va, [
|
|
2425
2425
|
ha,
|
|
2426
2426
|
i("div", null, [
|
|
2427
|
-
i("ul",
|
|
2428
|
-
ma,
|
|
2427
|
+
i("ul", ma, [
|
|
2429
2428
|
ba,
|
|
2430
|
-
ga,
|
|
2431
|
-
i("li", null, " You can ask a maximum of " + P(b(r).questionLimit) + " questions, with each question limited to 300 characters or less. ", 1),
|
|
2432
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,
|
|
2433
2433
|
xa,
|
|
2434
2434
|
wa
|
|
2435
2435
|
])
|
|
2436
2436
|
]),
|
|
2437
|
-
|
|
2438
|
-
i("div",
|
|
2437
|
+
y(s).crossVisible ? G("", !0) : (v(), h("div", ka, [
|
|
2438
|
+
i("div", Ea, [
|
|
2439
2439
|
i("input", {
|
|
2440
2440
|
type: "checkbox",
|
|
2441
2441
|
id: "check",
|
|
2442
2442
|
className: "mr-3",
|
|
2443
|
-
onClick:
|
|
2443
|
+
onClick: b[0] || (b[0] = (d) => o.value = !o.value)
|
|
2444
2444
|
}),
|
|
2445
|
-
|
|
2445
|
+
Ra
|
|
2446
2446
|
]),
|
|
2447
|
-
i("div",
|
|
2447
|
+
i("div", Ga, [
|
|
2448
2448
|
i("button", {
|
|
2449
2449
|
disabled: !o.value,
|
|
2450
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",
|
|
2451
2451
|
onClick: c
|
|
2452
|
-
}, " Proceed ", 8,
|
|
2452
|
+
}, " Proceed ", 8, Ca)
|
|
2453
2453
|
])
|
|
2454
2454
|
]))
|
|
2455
2455
|
])
|
|
@@ -2457,28 +2457,28 @@ const ce = (t) => (Mt("data-v-ed61c2a4"), t = t(), zt(), t), pa = { class: "max-
|
|
|
2457
2457
|
_: 1
|
|
2458
2458
|
}, 8, ["is-visible", "cross-visible"]),
|
|
2459
2459
|
e.value ? (v(), h("main", Ya, [
|
|
2460
|
-
i("div",
|
|
2461
|
-
|
|
2460
|
+
i("div", Ia, [
|
|
2461
|
+
k(dr)
|
|
2462
2462
|
]),
|
|
2463
2463
|
i("div", Sa, [
|
|
2464
2464
|
i("div", Pa, [
|
|
2465
|
-
|
|
2465
|
+
k(Ht)
|
|
2466
2466
|
]),
|
|
2467
|
-
i("div",
|
|
2467
|
+
i("div", za, [
|
|
2468
2468
|
i("div", Ma, [
|
|
2469
|
-
|
|
2470
|
-
|
|
2469
|
+
k(ua),
|
|
2470
|
+
La
|
|
2471
2471
|
]),
|
|
2472
|
-
i("div",
|
|
2473
|
-
|
|
2472
|
+
i("div", ja, [
|
|
2473
|
+
k(zr)
|
|
2474
2474
|
])
|
|
2475
2475
|
])
|
|
2476
2476
|
])
|
|
2477
|
-
])) : (v(),
|
|
2477
|
+
])) : (v(), me(br, { key: 1 }))
|
|
2478
2478
|
]));
|
|
2479
2479
|
}
|
|
2480
2480
|
});
|
|
2481
|
-
const
|
|
2481
|
+
const Ta = /* @__PURE__ */ st(Oa, [["__scopeId", "data-v-ed61c2a4"]]);
|
|
2482
2482
|
export {
|
|
2483
|
-
|
|
2483
|
+
Ta as default
|
|
2484
2484
|
};
|