@genpact/genome.mfe.mgtwin-app 1.1.334-alpha → 1.1.336-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/{AssessmentAMA-0bd56c86.mjs → AssessmentAMA-0692fa1a.mjs} +4 -4
- package/dist/{AssessmentSimulation-f1a2a2fd.mjs → AssessmentSimulation-a30d0b00.mjs} +485 -458
- package/dist/{EditSkillAdminData-8ec9d6d1.mjs → EditSkillAdminData-044567e4.mjs} +2 -2
- package/dist/{EditSkillData-9bae2ea2.mjs → EditSkillData-e70e5197.mjs} +2 -2
- package/dist/{HomeView-abe908c6.mjs → HomeView-53156458.mjs} +5 -5
- package/dist/{Loading-b6235612.mjs → Loading-68a5cf63.mjs} +1 -1
- package/dist/{LoadingSimulation-3bad9122.mjs → LoadingSimulation-c9bde016.mjs} +1 -1
- package/dist/{Modal-b1fa5450.mjs → Modal-b41fbd83.mjs} +1 -1
- package/dist/{PaperAirplaneIcon-3cf8bb48.mjs → PaperAirplaneIcon-9c41f6c3.mjs} +1 -1
- package/dist/{PromptTesting-5539725e.mjs → PromptTesting-317d3a4f.mjs} +3 -3
- package/dist/{SkillAutomation-e66cfd2d.mjs → SkillAutomation-207a2b56.mjs} +3 -3
- package/dist/{SkillData-d4bffa31.mjs → SkillData-7e41d4ba.mjs} +3 -3
- package/dist/{Testcase-fd73186c.mjs → Testcase-f95b79d7.mjs} +3 -3
- package/dist/{UnderMaintenance-62a65aa3.mjs → UnderMaintenance-81399bd4.mjs} +1 -1
- package/dist/{VoiceTestcase-34d267dd.mjs → VoiceTestcase-ab9c039b.mjs} +52 -52
- package/dist/{XMarkIcon-f626c953.mjs → XMarkIcon-0f8e2fe2.mjs} +1 -1
- package/dist/{api-344eaaaa.mjs → api-ee985d99.mjs} +1 -1
- package/dist/{main-09820a10.mjs → main-6023ab47.mjs} +1383 -1383
- package/dist/mgtwin.es.min.js +1 -1
- package/dist/mgtwin.umd.min.js +14 -14
- package/dist/style.css +1 -1
- package/dist/{voiceServices-e96f2c1c.mjs → voiceServices-d8d5e7e1.mjs} +114 -114
- package/package.json +1 -1
|
@@ -1,100 +1,103 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { d as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { p as
|
|
6
|
-
import { i as
|
|
7
|
-
import { r as
|
|
1
|
+
import { _ as ht, a as dt, L as pt } from "./LoadingSimulation-c9bde016.mjs";
|
|
2
|
+
import { _ as ft, a as pe, Q as ie, M as nt } from "./Modal-b41fbd83.mjs";
|
|
3
|
+
import { d as R, r as m, H as O, o as i, c as r, a as e, u as H, y as fe, h as T, s as ge, t as V, b as l, f as z, i as P, I as le, F as ve, e as be, w as xe, J as gt, p as K, g as Z, G as re, C as de, z as vt, K as bt, k as ce, n as X, q as $, m as ct, A as xt, L as yt, l as wt } from "./main-6023ab47.mjs";
|
|
4
|
+
import { _ as W } from "./_plugin-vue_export-helper-dad06003.mjs";
|
|
5
|
+
import { p as J, g as me } from "./api-ee985d99.mjs";
|
|
6
|
+
import { i as j, s as _t, a as At, b as it, c as he, r as G, d as ne, e as kt, p as lt, f as rt } from "./voiceServices-d8d5e7e1.mjs";
|
|
7
|
+
import { r as St } from "./XMarkIcon-0f8e2fe2.mjs";
|
|
8
8
|
import "./loadernew-ac153a51.mjs";
|
|
9
9
|
import "./_commonjsHelpers-92157f1b.mjs";
|
|
10
|
-
const
|
|
10
|
+
const Ct = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#021c42] md:pr-6 lg:pr-6" }, Nt = ["href"], Lt = /* @__PURE__ */ e("img", {
|
|
11
11
|
class: "h-11 w-auto cursor-pointer",
|
|
12
|
-
src:
|
|
12
|
+
src: ht,
|
|
13
13
|
alt: "Genome Logo"
|
|
14
|
-
}, null, -1),
|
|
15
|
-
|
|
16
|
-
], Tt = ["href"],
|
|
14
|
+
}, null, -1), Pt = [
|
|
15
|
+
Lt
|
|
16
|
+
], Tt = ["href"], Ft = /* @__PURE__ */ e("img", {
|
|
17
17
|
class: "h-9 w-28 cursor-pointer md:w-36",
|
|
18
|
-
src:
|
|
18
|
+
src: ft,
|
|
19
19
|
alt: "Aiguru Logo"
|
|
20
|
-
}, null, -1),
|
|
21
|
-
|
|
22
|
-
],
|
|
20
|
+
}, null, -1), zt = [
|
|
21
|
+
Ft
|
|
22
|
+
], Mt = /* @__PURE__ */ R({
|
|
23
23
|
__name: "headerSimulation",
|
|
24
|
-
setup(
|
|
25
|
-
const t =
|
|
26
|
-
return
|
|
24
|
+
setup(p) {
|
|
25
|
+
const t = m(""), s = m("");
|
|
26
|
+
return O === "prod" ? t.value = "https://genome.genpact.com" : t.value = "https://genome-dev.genpact.com", O === "prod" ? s.value = "https://genome.genpact.com/#aiguru" : s.value = "https://genome-dev.genpact.com/#aiguru", (b, a) => (i(), r("nav", Ct, [
|
|
27
27
|
e("a", {
|
|
28
28
|
class: "px-2 md:px-0 lg:px-0",
|
|
29
29
|
href: t.value,
|
|
30
30
|
target: "_blank"
|
|
31
|
-
},
|
|
31
|
+
}, Pt, 8, Nt),
|
|
32
32
|
e("a", {
|
|
33
33
|
class: "px-2 md:px-0 lg:px-0",
|
|
34
34
|
href: s.value,
|
|
35
35
|
target: "_blank"
|
|
36
|
-
},
|
|
36
|
+
}, zt, 8, Tt)
|
|
37
37
|
]));
|
|
38
38
|
}
|
|
39
|
-
}), Rt = { class: "max-h-screen overflow-auto md:p-6 p-3 flex flex-col items-center justify-center gap-4 text-[#161916] fontFormattingAMA" },
|
|
39
|
+
}), Rt = { class: "max-h-screen overflow-auto md:p-6 p-3 flex flex-col items-center justify-center gap-4 text-[#161916] fontFormattingAMA" }, Dt = /* @__PURE__ */ e("div", { class: "text-lg md:text-xl font-[700]" }, "Please Note Before You Begin", -1), jt = /* @__PURE__ */ e("ul", { className: "list-disc max-h-[40vh] overflow-auto space-y-3 pl-6 text-[#102345] text-sm md:text-base" }, [
|
|
40
40
|
/* @__PURE__ */ e("li", null, [
|
|
41
|
-
/* @__PURE__ */
|
|
41
|
+
/* @__PURE__ */ P(" Choose a "),
|
|
42
42
|
/* @__PURE__ */ e("span", { class: "font-[600]" }, "quiet space"),
|
|
43
|
-
/* @__PURE__ */
|
|
43
|
+
/* @__PURE__ */ P(" and ensure your mic and internet connection are working properly. ")
|
|
44
44
|
]),
|
|
45
45
|
/* @__PURE__ */ e("li", null, [
|
|
46
|
-
/* @__PURE__ */
|
|
46
|
+
/* @__PURE__ */ P(" The assessment will "),
|
|
47
47
|
/* @__PURE__ */ e("span", { class: "font-[600]" }, "begin in text mode "),
|
|
48
|
-
/* @__PURE__ */
|
|
48
|
+
/* @__PURE__ */ P(", where the AI will ask you a few initial questions. ")
|
|
49
49
|
]),
|
|
50
50
|
/* @__PURE__ */ e("li", null, [
|
|
51
|
-
/* @__PURE__ */
|
|
51
|
+
/* @__PURE__ */ P(" You'll need to type your responses, which will help the "),
|
|
52
52
|
/* @__PURE__ */ e("span", { class: "font-[600]" }, "AI generate tailored scenarios "),
|
|
53
|
-
/* @__PURE__ */
|
|
53
|
+
/* @__PURE__ */ P(" for the role-play exercise. ")
|
|
54
54
|
]),
|
|
55
55
|
/* @__PURE__ */ e("li", null, [
|
|
56
56
|
/* @__PURE__ */ e("span", { class: "font-[600]" }, "Voice mode "),
|
|
57
|
-
/* @__PURE__ */
|
|
57
|
+
/* @__PURE__ */ P(" will be activated, once you initiate the role-play. ")
|
|
58
58
|
]),
|
|
59
59
|
/* @__PURE__ */ e("li", null, [
|
|
60
|
-
/* @__PURE__ */
|
|
60
|
+
/* @__PURE__ */ P(" Click "),
|
|
61
61
|
/* @__PURE__ */ e("span", { class: "font-[600]" }, "“Turn on Mic”"),
|
|
62
|
-
/* @__PURE__ */
|
|
62
|
+
/* @__PURE__ */ P(" to initiate the conversation with the voice bot. ")
|
|
63
63
|
]),
|
|
64
64
|
/* @__PURE__ */ e("li", null, [
|
|
65
65
|
/* @__PURE__ */ e("span", { class: "font-[600]" }, "Don’t mute "),
|
|
66
|
-
/* @__PURE__ */
|
|
66
|
+
/* @__PURE__ */ P(" until your response is fully processed to ensure smooth interaction. ")
|
|
67
67
|
]),
|
|
68
68
|
/* @__PURE__ */ e("li", null, [
|
|
69
|
-
/* @__PURE__ */
|
|
69
|
+
/* @__PURE__ */ P(" Stay expressive — this is an interactive role-play, so your "),
|
|
70
70
|
/* @__PURE__ */ e("span", { class: "font-[600]" }, "engagement matters"),
|
|
71
|
-
/* @__PURE__ */
|
|
71
|
+
/* @__PURE__ */ P(". ")
|
|
72
72
|
]),
|
|
73
73
|
/* @__PURE__ */ e("li", null, [
|
|
74
|
-
/* @__PURE__ */
|
|
74
|
+
/* @__PURE__ */ P(" The session may take up to "),
|
|
75
75
|
/* @__PURE__ */ e("span", { class: "font-[600]" }, "10 minutes "),
|
|
76
|
-
/* @__PURE__ */
|
|
76
|
+
/* @__PURE__ */ P(", so plan accordingly. ")
|
|
77
77
|
])
|
|
78
|
-
], -1),
|
|
78
|
+
], -1), Et = { class: "max-h-screen overflow-auto md:p-6 p-3 flex flex-col items-center justify-center gap-4 text-[#161916] fontFormattingAMA" }, It = /* @__PURE__ */ e("div", { class: "text-lg md:text-xl font-[700]" }, "Please Note Before You Begin", -1), qt = /* @__PURE__ */ e("ul", { className: "list-disc max-h-[40vh] overflow-auto space-y-3 pl-6 text-[#102345] text-sm md:text-base" }, [
|
|
79
|
+
/* @__PURE__ */ e("li", null, "This simulation is expected to take approximately 15 minutes to complete."),
|
|
80
|
+
/* @__PURE__ */ e("li", null, " Please ensure it is concluded within 30 minutes, as sessions exceeding this duration will automatically restart from the beginning ")
|
|
81
|
+
], -1), Ht = { class: "flex items-end justify-start" }, Bt = { class: "fontFormattingAMA w-full bg-gray-100 rounded-lg" }, $t = { class: "w-full rounded-md px-3 py-2 text-lg md:text-xl font-bold text-black" }, Vt = { class: "w-full px-3 py-2 text-sm text-black md:text-base font-[550]" }, Qt = {
|
|
79
82
|
key: 0,
|
|
80
83
|
class: "fontFormattingAMA"
|
|
81
|
-
},
|
|
82
|
-
This is a role-play simulation designed to mirror real-world scenarios. Just follow the prompts, speak naturally, and let the AI guide you. Based on your responses, you’ll receive personalized feedback to help sharpen your client engagement skills.`,
|
|
84
|
+
}, Gt = /* @__PURE__ */ e("br", null, null, -1), Ot = ` You're about to step into a realistic, voice-based client conversation powered by AI.
|
|
85
|
+
This is a role-play simulation designed to mirror real-world scenarios. Just follow the prompts, speak naturally, and let the AI guide you. Based on your responses, you’ll receive personalized feedback to help sharpen your client engagement skills.`, Xt = /* @__PURE__ */ R({
|
|
83
86
|
__name: "greetingsSimulation",
|
|
84
87
|
emits: ["callQuestion"],
|
|
85
|
-
setup(
|
|
86
|
-
const s =
|
|
87
|
-
s.simulationSkill === "7bd03cb6-79ad-4e2a-8a8b-88dc16147369" ? (s.question = "Let's start", s.beginFlag = !1,
|
|
88
|
-
},
|
|
89
|
-
return (
|
|
90
|
-
|
|
91
|
-
default:
|
|
88
|
+
setup(p, { emit: t }) {
|
|
89
|
+
const s = H(), b = m(!1), a = m(!1), u = () => {
|
|
90
|
+
s.simulationSkill === "7bd03cb6-79ad-4e2a-8a8b-88dc16147369" ? (s.question = "Let's start", s.beginFlag = !1, b.value = !0) : s.simulationSkill === "25f8e44f-b83e-42d6-a168-b0e1fb83b26a" ? (s.question = "Let's start", s.beginFlag = !1, a.value = !0) : (s.beginFlag = !1, s.question = "Let's start", t("callQuestion"));
|
|
91
|
+
}, y = `Hi, get ready to test your ${s.skillNameForSimulation || "Unknown"} knowledge! Here’s what to expect:`, v = ` Hi ${s.learnerName || "Expert"}, and welcome!`, o = ` Hi, ${s.learnerName || "Expert"}. Get ready to test your ${s.skillNameForSimulation || "Unknown"} knowledge! Here’s what to expect:`, x = fe(() => ["32b7d6d8-f7a8-40a0-ab84-8784f25897ef"].includes(s.simulationSkill) ? y : ["7bd03cb6-79ad-4e2a-8a8b-88dc16147369"].includes(s.simulationSkill) ? v : o), _ = `Hi, get ready to test your ${s.skillNameForSimulation || "Unknown"} knowledge! Here’s what to expect:`, g = ` AI Guru will ask you a few questions on '${s.skillNameForSimulation.trim() || "Unknown"} '. Please provide detailed and thoughtful answers to the best of your knowledge. At the end, you'll receive a feedback, outlining your strengths and improvement areas.`, d = fe(() => ["32b7d6d8-f7a8-40a0-ab84-8784f25897ef"].includes(s.simulationSkill) ? _ : ["7bd03cb6-79ad-4e2a-8a8b-88dc16147369"].includes(s.simulationSkill) ? Ot : g);
|
|
92
|
+
return (h, c) => (i(), r("section", null, [
|
|
93
|
+
T(pe, { "is-visible": b.value }, {
|
|
94
|
+
default: ge(() => [
|
|
92
95
|
e("div", Rt, [
|
|
93
|
-
|
|
96
|
+
Dt,
|
|
94
97
|
jt,
|
|
95
98
|
e("button", {
|
|
96
|
-
onClick:
|
|
97
|
-
|
|
99
|
+
onClick: c[0] || (c[0] = (f) => {
|
|
100
|
+
b.value = !1, t("callQuestion");
|
|
98
101
|
}),
|
|
99
102
|
type: "button",
|
|
100
103
|
class: "bg-[#021c42] rounded-md px-4 py-1.5 text-center md:text-base text-sm text-white cursor-pointer italic hover:bg-blue-700"
|
|
@@ -103,51 +106,67 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
103
106
|
]),
|
|
104
107
|
_: 1
|
|
105
108
|
}, 8, ["is-visible"]),
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
e("div", Et,
|
|
109
|
-
|
|
109
|
+
T(pe, { "is-visible": a.value }, {
|
|
110
|
+
default: ge(() => [
|
|
111
|
+
e("div", Et, [
|
|
112
|
+
It,
|
|
113
|
+
qt,
|
|
114
|
+
e("button", {
|
|
115
|
+
onClick: c[1] || (c[1] = (f) => {
|
|
116
|
+
a.value = !1, t("callQuestion");
|
|
117
|
+
}),
|
|
118
|
+
type: "button",
|
|
119
|
+
class: "bg-[#021c42] rounded-md px-4 py-1.5 text-center md:text-base text-sm text-white cursor-pointer italic hover:bg-blue-700"
|
|
120
|
+
}, " Proceed ")
|
|
121
|
+
])
|
|
122
|
+
]),
|
|
123
|
+
_: 1
|
|
124
|
+
}, 8, ["is-visible"]),
|
|
125
|
+
e("div", Ht, [
|
|
126
|
+
e("div", Bt, [
|
|
127
|
+
e("div", $t, V(x.value), 1),
|
|
128
|
+
e("div", Vt, V(d.value), 1)
|
|
110
129
|
])
|
|
111
130
|
]),
|
|
112
|
-
|
|
131
|
+
l(s).beginFlag ? (i(), r("span", Qt, [
|
|
113
132
|
e("button", {
|
|
114
133
|
type: "button",
|
|
115
134
|
id: "button",
|
|
116
|
-
onClick:
|
|
135
|
+
onClick: u,
|
|
117
136
|
class: "mt-4 bg-[#021c42] rounded-md px-4 py-1.5 text-center md:text-base text-sm text-white cursor-pointer italic hover:bg-blue-700 w-32"
|
|
118
137
|
}, " Let's begin ")
|
|
119
138
|
])) : z("", !0),
|
|
120
|
-
|
|
139
|
+
Gt
|
|
121
140
|
]));
|
|
122
141
|
}
|
|
123
|
-
}),
|
|
142
|
+
}), Wt = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAB9AH0DASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb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zuSiDk81nSeMNO+JGofYPD1g+m69N8wvyuCFHUZoAxLTxXpvgn4163qGqI5iO6MeWMkE16f4/8ReET4f0u9161e4huzutQFyQxHBNedt4OPw0u28SeLUTWoZz5WzG47z/ABGvboNP0bxNoVhNPp0bW+wSQxyL9ygDzGx8U3/gC2kXxvdNdWWor/oiRjdtQ9j6cVyOo+CbD4mT/b/AlsltawfJOJvky/WvSvih4Hk8Tvp9/bzQ/ZdMG+WInqo5x+VctYfFTQLu2bw74e006bc3n7pJVG0BvWgDjLz4T+L/AARZyeIkuLeNrMb90cgJFWjrHxJXwT/wlv8AbP8AoG/bt3fN+VaPi34feNdM8L3t1f8AiZ7q2jXLweZncK5x/H1o3wi/4REWU/2rfu8zHy9aANHRtEi02KPxv46j+26dfDChfmbcehIrqvjS1ldeBvDk1hHssZHXylxjCntWxba9o3h74M6Pca5YpfQEKohYZIPrivMPiPoWsW2jWWtzaiZNLu232lrniFTyBj2oA+i/CHhnSNA0m3k02zWB7iFGkI/iO0V0leH/ALP+sapqaalHf3U80cQURiQkhRjtXuFACOu+Nl9QRXiF78CL+bWby/tfEUtsbiQuRHlTg9uK9wooA8L/AOFE63/0N95/38b/ABpsnwG1iWNo5PFl06MOVZ2IP617tRQByHgPwSnhDwqdFuJVvEaRnbevBz7V0VtpGm2coltrC2hkAwGSIA1dooAgurS2vYvKureOaPOdsihhn8ac8I+ytBGBGpQqu0Y28VLRQB5/4T+H174ft9ahutYmvBqAYLvJOzOa8/H7Oc6zGVNeKNuyCq4Ir6AooA8f8PfBzUdK162vr3xFcXtvEcvBKxZX9iDXp/8AYOkZ/wCQXZ/9+V/wrRooA8X8T/BC61/WLm5TW3htJH3JbY+RPoOldD4r+GL+I/Cuj6Mt95f9nhQXI+/ivR6KAKGlaVa6VZQ29tbxRlI1RmRAu4gYyav0UUAf/9k=", ut = (p) => (K("data-v-cc5db4a2"), p = p(), Z(), p), Ut = { class: "fontFormattingAMA flex items-end justify-start py-2" }, Jt = { class: "line-break w-full bg-gray-100 p-3 text-sm text-black md:text-[15px] rounded-lg" }, Kt = ["innerHTML"], Zt = ["innerHTML"], Yt = {
|
|
124
143
|
key: 0,
|
|
125
144
|
class: "py-4"
|
|
126
|
-
},
|
|
145
|
+
}, es = { class: "fontFormattingAMA px-2 py-1.5 md:px-6" }, ts = ["value", "disabled", "name"], ss = {
|
|
127
146
|
for: "item",
|
|
128
147
|
name: "options-Array",
|
|
129
148
|
id: "index"
|
|
130
|
-
},
|
|
149
|
+
}, as = {
|
|
131
150
|
key: 1,
|
|
132
151
|
class: "py-4"
|
|
133
|
-
},
|
|
152
|
+
}, os = { class: "fontFormattingAMA px-2 py-1.5 md:px-6" }, ns = ["onClick", "disabled", "name"], is = {
|
|
134
153
|
for: "item",
|
|
135
154
|
name: "options-Array",
|
|
136
155
|
id: "index"
|
|
137
|
-
},
|
|
156
|
+
}, ls = {
|
|
138
157
|
key: 2,
|
|
139
158
|
class: "flex flex-col justify-start py-10"
|
|
140
|
-
},
|
|
159
|
+
}, rs = /* @__PURE__ */ ut(() => /* @__PURE__ */ e("div", { class: "mb-4" }, " Add Agentic AI to your Digital Skills on Genome.ai and start mastering AI today! ", -1)), ds = /* @__PURE__ */ ut(() => /* @__PURE__ */ e("img", {
|
|
141
160
|
class: "h-20 w-20",
|
|
142
|
-
src:
|
|
161
|
+
src: Wt,
|
|
143
162
|
alt: "qr_code"
|
|
144
|
-
}, null, -1)),
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
],
|
|
163
|
+
}, null, -1)), cs = [
|
|
164
|
+
rs,
|
|
165
|
+
ds
|
|
166
|
+
], us = {
|
|
148
167
|
key: 3,
|
|
149
168
|
class: "flex flex-col justify-start items-start bg-gray-100 rounded-lg"
|
|
150
|
-
},
|
|
169
|
+
}, ms = { class: "flex justify-start items-center md:gap-[40px] gap-[30px]" }, hs = /* @__PURE__ */ R({
|
|
151
170
|
__name: "responseSimulation",
|
|
152
171
|
props: {
|
|
153
172
|
question: {
|
|
@@ -177,16 +196,16 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
177
196
|
}
|
|
178
197
|
},
|
|
179
198
|
emits: ["char-typed"],
|
|
180
|
-
setup(
|
|
181
|
-
const s =
|
|
182
|
-
let
|
|
183
|
-
const
|
|
184
|
-
|
|
185
|
-
for (let d = 0; d <
|
|
186
|
-
|
|
187
|
-
},
|
|
188
|
-
|
|
189
|
-
},
|
|
199
|
+
setup(p, { emit: t }) {
|
|
200
|
+
const s = p, b = m([]), a = m(!1), u = H(), y = m("");
|
|
201
|
+
let v = [], o = "";
|
|
202
|
+
const x = async () => {
|
|
203
|
+
v = o.split(""), y.value = "";
|
|
204
|
+
for (let d = 0; d < v.length; d++)
|
|
205
|
+
y.value += v[d], s.answer.includes("Feedback and Assessment") ? (console.log("Feedback and Assessment found"), o.length - 5 > v.length && d % 30 && t("char-typed")) : d % 30 && t("char-typed"), await new Promise((h) => setTimeout(h, 60));
|
|
206
|
+
}, _ = () => {
|
|
207
|
+
u.isRestart = !0, u.searchBoxdisable = !1, u.showVoiceComponent = !0, u.showSelectTypeConvesation = !1, u.showModelToggle = !0, u.isSpeechToggle = !1;
|
|
208
|
+
}, g = fe(() => {
|
|
190
209
|
const d = s.answer.replace(/[*#]/g, "").replace(
|
|
191
210
|
/Assessment Rating & Feedback/g,
|
|
192
211
|
'<div style="font-size: 26px; font-weight: bold; text-decoration: underline;">Rating & Feedback</div>'
|
|
@@ -218,13 +237,13 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
218
237
|
/Model Solution/g,
|
|
219
238
|
'<div style="font-size: 16px; font-weight: bold;">Model Solution</div>'
|
|
220
239
|
);
|
|
221
|
-
(d.includes("Thank you for your participation!") || d.includes("Thank you for your participation")) && (
|
|
222
|
-
const
|
|
240
|
+
(d.includes("Thank you for your participation!") || d.includes("Thank you for your participation")) && (u.searchBoxdisable = !1, a.value = !0), (d.includes("BEGIN ROLE PLAY") || d.includes("BEGIN ROLE PLAY.")) && (u.showSelectTypeConvesation = !0);
|
|
241
|
+
const h = /\[([^\]]+)\]\((https?:\/\/[^\s]+)\)/g;
|
|
223
242
|
if (d.includes("AI Guru")) {
|
|
224
243
|
if (d.includes("AI Guru"))
|
|
225
|
-
return console.log("aig found"), d.replace(
|
|
244
|
+
return console.log("aig found"), d.replace(h, (c, f, A) => `<a href="https://genome.genpact.com/#aiguru" target="_blank" style="color: blue; text-decoration: underline; cursor:pointer;">${f}</a>`);
|
|
226
245
|
} else
|
|
227
|
-
return d.replace(
|
|
246
|
+
return d.replace(h, (c, f, A) => `<a href="${A}" target="_blank" rel="noopener noreferrer" style="color: blue; text-decoration: underline;">${f}</a>`);
|
|
228
247
|
});
|
|
229
248
|
return le(
|
|
230
249
|
() => s.answer,
|
|
@@ -257,68 +276,68 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
257
276
|
/Model Solution/g,
|
|
258
277
|
'<div style="font-size: 16px; font-weight: bold;">Model Solution</div>'
|
|
259
278
|
);
|
|
260
|
-
const
|
|
261
|
-
d.includes("AI Guru") ? d = d.replace(
|
|
279
|
+
const h = /\[([^\]]+)\]\((https?:\/\/[^\s]+)\)/g;
|
|
280
|
+
d.includes("AI Guru") ? d = d.replace(h, (c, f, A) => `<a href="https://genome.genpact.com/#aiguru" target="_blank" style="color: blue; text-decoration: underline; cursor:pointer;">${f}</a>`) : d = d.replace(h, (c, f, A) => `<a href="${A}" target="_blank" rel="noopener noreferrer" style="color: blue; text-decoration: underline;">${f}</a>`), d.includes("Feedback and Assessment") && d.includes("END ROLE PLAY") ? (o = d.split("END ROLE PLAY")[0], console.log("END ROLE PLAY")) : o = d, u.showVoiceComponent && x();
|
|
262
281
|
},
|
|
263
282
|
{ immediate: !0 }
|
|
264
|
-
), le(
|
|
265
|
-
|
|
266
|
-
}), (d,
|
|
267
|
-
e("div",
|
|
268
|
-
|
|
283
|
+
), le(b, (d) => {
|
|
284
|
+
u.question = (d ?? []).join(", ");
|
|
285
|
+
}), (d, h) => (i(), r("div", Ut, [
|
|
286
|
+
e("div", Jt, [
|
|
287
|
+
l(u).simulationSkill === "7bd03cb6-79ad-4e2a-8a8b-88dc16147369" && l(u).showVoiceComponent === !0 && l(u).conversations.length - 1 === s.ansId && !s.answer.includes("BEGIN ROLE PLAY") ? (i(), r("span", {
|
|
269
288
|
key: 0,
|
|
270
289
|
class: "fontFormattingAMA answer-link",
|
|
271
|
-
innerHTML:
|
|
272
|
-
}, null, 8,
|
|
290
|
+
innerHTML: y.value
|
|
291
|
+
}, null, 8, Kt)) : (i(), r("span", {
|
|
273
292
|
key: 1,
|
|
274
293
|
class: "fontFormattingAMA answer-link",
|
|
275
|
-
innerHTML:
|
|
276
|
-
}, null, 8,
|
|
294
|
+
innerHTML: g.value
|
|
295
|
+
}, null, 8, Zt)),
|
|
277
296
|
e("div", null, [
|
|
278
|
-
|
|
279
|
-
(
|
|
280
|
-
key:
|
|
297
|
+
p.optionsArray.length && l(u).mcqType === "multi_choice" ? (i(), r("div", Yt, [
|
|
298
|
+
(i(!0), r(ve, null, be(p.optionsArray, (c, f) => (i(), r("div", {
|
|
299
|
+
key: f,
|
|
281
300
|
class: "italic"
|
|
282
301
|
}, [
|
|
283
|
-
e("div",
|
|
284
|
-
|
|
302
|
+
e("div", es, [
|
|
303
|
+
xe(e("input", {
|
|
285
304
|
class: "mr-4 cursor-pointer",
|
|
286
305
|
type: "checkbox",
|
|
287
|
-
value:
|
|
288
|
-
"onUpdate:modelValue":
|
|
289
|
-
disabled:
|
|
290
|
-
name:
|
|
291
|
-
}, null, 8,
|
|
292
|
-
[
|
|
306
|
+
value: c,
|
|
307
|
+
"onUpdate:modelValue": h[0] || (h[0] = (A) => b.value = A),
|
|
308
|
+
disabled: l(u).conversations.length - 1 !== s.ansId,
|
|
309
|
+
name: g.value
|
|
310
|
+
}, null, 8, ts), [
|
|
311
|
+
[gt, b.value]
|
|
293
312
|
]),
|
|
294
|
-
e("label",
|
|
313
|
+
e("label", ss, V(c), 1)
|
|
295
314
|
])
|
|
296
315
|
]))), 128))
|
|
297
|
-
])) :
|
|
298
|
-
(
|
|
299
|
-
key:
|
|
316
|
+
])) : p.optionsArray.length ? (i(), r("div", as, [
|
|
317
|
+
(i(!0), r(ve, null, be(p.optionsArray, (c, f) => (i(), r("div", {
|
|
318
|
+
key: f,
|
|
300
319
|
class: "italic"
|
|
301
320
|
}, [
|
|
302
|
-
e("div",
|
|
321
|
+
e("div", os, [
|
|
303
322
|
e("input", {
|
|
304
323
|
class: "mr-4 cursor-pointer",
|
|
305
324
|
type: "radio",
|
|
306
|
-
onClick: (
|
|
307
|
-
disabled:
|
|
308
|
-
name:
|
|
309
|
-
}, null, 8,
|
|
310
|
-
e("label",
|
|
325
|
+
onClick: (A) => l(u).question = String(p.optionsArray[f]),
|
|
326
|
+
disabled: l(u).conversations.length - 1 !== s.ansId,
|
|
327
|
+
name: g.value
|
|
328
|
+
}, null, 8, ns),
|
|
329
|
+
e("label", is, V(c), 1)
|
|
311
330
|
])
|
|
312
331
|
]))), 128))
|
|
313
332
|
])) : z("", !0)
|
|
314
333
|
]),
|
|
315
|
-
a.value &&
|
|
316
|
-
|
|
317
|
-
e("div",
|
|
334
|
+
a.value && l(u).simulationSkill === "32b7d6d8-f7a8-40a0-ab84-8784f25897ef" ? (i(), r("div", ls, cs)) : z("", !0),
|
|
335
|
+
l(u).isSpeechToggle && l(u).showSelectTypeConvesation && l(u).simulationSkill === "7bd03cb6-79ad-4e2a-8a8b-88dc16147369" && l(u).conversations.length - 1 === s.ansId ? (i(), r("div", us, [
|
|
336
|
+
e("div", ms, [
|
|
318
337
|
e("button", {
|
|
319
338
|
type: "button",
|
|
320
339
|
id: "button",
|
|
321
|
-
onClick:
|
|
340
|
+
onClick: h[1] || (h[1] = (c) => _()),
|
|
322
341
|
class: "mt-4 cursor-pointer bg-[#021c42] hover:bg-blue-700 italic rounded-md px-4 py-2 text-center text-white text-[16px]"
|
|
323
342
|
}, " Start Conversation ")
|
|
324
343
|
])
|
|
@@ -327,7 +346,7 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
327
346
|
]));
|
|
328
347
|
}
|
|
329
348
|
});
|
|
330
|
-
const
|
|
349
|
+
const ps = /* @__PURE__ */ W(hs, [["__scopeId", "data-v-cc5db4a2"]]), fs = { class: "flex justify-end items-end py-3" }, gs = { class: "max-w-[80%]" }, vs = ["innerHTML"], bs = /* @__PURE__ */ R({
|
|
331
350
|
__name: "learnerSimulation",
|
|
332
351
|
props: {
|
|
333
352
|
question: {
|
|
@@ -339,21 +358,24 @@ const cs = /* @__PURE__ */ U(ds, [["__scopeId", "data-v-cc5db4a2"]]), us = { cla
|
|
|
339
358
|
default: !0
|
|
340
359
|
}
|
|
341
360
|
},
|
|
342
|
-
setup(
|
|
343
|
-
return (t, s) => (
|
|
344
|
-
e("div",
|
|
345
|
-
e("div",
|
|
361
|
+
setup(p) {
|
|
362
|
+
return (t, s) => (i(), r("div", fs, [
|
|
363
|
+
e("div", gs, [
|
|
364
|
+
e("div", {
|
|
365
|
+
class: "w-fit fontFormattingAMA text-[0.8125rem] md:text-[0.9375rem] text-white bg-genpact-blue-box leading-6 p-3",
|
|
366
|
+
innerHTML: p.question.replace(/\n/g, "<br>")
|
|
367
|
+
}, null, 8, vs)
|
|
346
368
|
])
|
|
347
369
|
]));
|
|
348
370
|
}
|
|
349
|
-
}),
|
|
371
|
+
}), xs = (p) => (K("data-v-347ad6de"), p = p(), Z(), p), ys = { class: "flex w-full flex-col items-start justify-start bg-white" }, ws = { class: "bot-typing-animation gap-1" }, _s = { class: "block w-full text-lg italic text-gray-800" }, As = /* @__PURE__ */ xs(() => /* @__PURE__ */ e("span", { class: "dot-animation" }, [
|
|
350
372
|
/* @__PURE__ */ e("span", null, "."),
|
|
351
373
|
/* @__PURE__ */ e("span", null, "."),
|
|
352
374
|
/* @__PURE__ */ e("span", null, ".")
|
|
353
|
-
], -1)),
|
|
375
|
+
], -1)), ks = /* @__PURE__ */ re('<div class="block w-full max-w-full items-stretch" data-v-347ad6de><div class="flex animate-pulse items-start justify-start space-x-4" data-v-347ad6de><div class="flex-1 space-y-6 py-1" data-v-347ad6de><div class="h-2 w-full rounded bg-gray-300" data-v-347ad6de></div><div class="space-y-3" data-v-347ad6de><div class="grid grid-cols-3 gap-4" data-v-347ad6de><div class="col-span-2 h-2 rounded bg-gray-300" data-v-347ad6de></div><div class="col-span-1 h-2 rounded bg-gray-300" data-v-347ad6de></div></div><div class="h-2 rounded bg-gray-300" data-v-347ad6de></div></div></div></div></div>', 1), Ss = /* @__PURE__ */ R({
|
|
354
376
|
__name: "LoadingResponse",
|
|
355
|
-
setup(
|
|
356
|
-
const t =
|
|
377
|
+
setup(p) {
|
|
378
|
+
const t = m("Generating response"), s = m([
|
|
357
379
|
"This may take a few seconds",
|
|
358
380
|
"Fetching the best response for you",
|
|
359
381
|
"Thinking... give me a moment",
|
|
@@ -363,134 +385,134 @@ const cs = /* @__PURE__ */ U(ds, [["__scopeId", "data-v-cc5db4a2"]]), us = { cla
|
|
|
363
385
|
"Compiling a response for you"
|
|
364
386
|
]);
|
|
365
387
|
return setTimeout(() => {
|
|
366
|
-
const
|
|
367
|
-
t.value = s.value[
|
|
368
|
-
}, 15e3), (
|
|
369
|
-
e("div",
|
|
370
|
-
e("div",
|
|
371
|
-
|
|
388
|
+
const b = Math.floor(Math.random() * s.value.length);
|
|
389
|
+
t.value = s.value[b];
|
|
390
|
+
}, 15e3), (b, a) => (i(), r("div", ys, [
|
|
391
|
+
e("div", ws, [
|
|
392
|
+
e("div", _s, V(t.value), 1),
|
|
393
|
+
As
|
|
372
394
|
]),
|
|
373
|
-
|
|
395
|
+
ks
|
|
374
396
|
]));
|
|
375
397
|
}
|
|
376
398
|
});
|
|
377
|
-
const
|
|
399
|
+
const Cs = /* @__PURE__ */ W(Ss, [["__scopeId", "data-v-347ad6de"]]), Ns = { class: "flex mx-auto justify-end items-end py-3" }, Ls = { class: "max-w-[80%]" }, Ps = {
|
|
378
400
|
key: 0,
|
|
379
401
|
class: "fontFormattingAMA w-fit text-[0.8125rem] md:text-[0.9375rem] text-white bg-genpact-blue-box leading-6 p-3 rounded-lg"
|
|
380
|
-
},
|
|
402
|
+
}, Ts = /* @__PURE__ */ R({
|
|
381
403
|
__name: "QuestionStreaming",
|
|
382
|
-
setup(
|
|
383
|
-
const t =
|
|
384
|
-
return (s,
|
|
385
|
-
e("div",
|
|
386
|
-
|
|
404
|
+
setup(p) {
|
|
405
|
+
const t = H();
|
|
406
|
+
return (s, b) => (i(), r("div", Ns, [
|
|
407
|
+
e("div", Ls, [
|
|
408
|
+
l(t).userSpeechText.toLowerCase().includes("play") && l(t).userSpeechText.length < 10 ? z("", !0) : (i(), r("div", Ps, V(l(t).userSpeechText), 1))
|
|
387
409
|
])
|
|
388
410
|
]));
|
|
389
411
|
}
|
|
390
|
-
}),
|
|
412
|
+
}), Fs = { key: 0 }, zs = { key: 1 }, Ms = {
|
|
391
413
|
key: 0,
|
|
392
414
|
class: "flex"
|
|
393
|
-
},
|
|
415
|
+
}, Rs = {
|
|
394
416
|
key: 1,
|
|
395
417
|
name: "askQuestion"
|
|
396
|
-
},
|
|
418
|
+
}, Ds = /* @__PURE__ */ R({
|
|
397
419
|
__name: "conversationSimulation",
|
|
398
|
-
setup(
|
|
399
|
-
let t =
|
|
420
|
+
setup(p) {
|
|
421
|
+
let t = m(""), s = m("");
|
|
400
422
|
t.value = '<a style="color:#00AECF;"', s.value = '<ul style="list-style: disc !important; margin-left: 3.5rem !important; padding: 0;"';
|
|
401
|
-
const
|
|
423
|
+
const b = H(), a = m(), u = () => {
|
|
402
424
|
a.value.scrollTo(0, a.value.scrollHeight);
|
|
403
425
|
};
|
|
404
426
|
return de(() => {
|
|
405
427
|
var o;
|
|
406
|
-
const
|
|
407
|
-
|
|
408
|
-
}),
|
|
428
|
+
const y = document.getElementsByName("askQuestion"), v = Array.from(y);
|
|
429
|
+
y.length && ((o = v == null ? void 0 : v.pop()) == null || o.scrollIntoView({ behavior: "smooth", block: "center" })), window.addEventListener("custom-event", u);
|
|
430
|
+
}), vt(() => {
|
|
409
431
|
var o;
|
|
410
|
-
const
|
|
411
|
-
|
|
412
|
-
}),
|
|
413
|
-
window.removeEventListener("custom-event",
|
|
414
|
-
}), (
|
|
432
|
+
const y = document.getElementsByName("askQuestion"), v = Array.from(y);
|
|
433
|
+
y.length && ((o = v == null ? void 0 : v.pop()) == null || o.scrollIntoView({ behavior: "smooth", block: "center" }));
|
|
434
|
+
}), bt(() => {
|
|
435
|
+
window.removeEventListener("custom-event", u);
|
|
436
|
+
}), (y, v) => (i(), r("div", {
|
|
415
437
|
ref_key: "nestedElement",
|
|
416
438
|
ref: a,
|
|
417
439
|
class: "smooth-scroll overflow-auto md:px-6 px-2"
|
|
418
440
|
}, [
|
|
419
|
-
|
|
420
|
-
onCallQuestion:
|
|
441
|
+
T(Xt, {
|
|
442
|
+
onCallQuestion: v[0] || (v[0] = (o) => y.$emit("callQuestion"))
|
|
421
443
|
}),
|
|
422
|
-
(
|
|
423
|
-
o.question ? (
|
|
424
|
-
|
|
444
|
+
(i(!0), r(ve, null, be(l(b).conversations, (o, x) => (i(), r("div", { key: x }, [
|
|
445
|
+
o.question ? (i(), r("div", Fs, [
|
|
446
|
+
T(bs, {
|
|
425
447
|
question: o == null ? void 0 : o.question,
|
|
426
448
|
c2question: o == null ? void 0 : o.c2question,
|
|
427
449
|
"show-feedback": o == null ? void 0 : o.showFeedback,
|
|
428
|
-
id: `qId${
|
|
450
|
+
id: `qId${x}`,
|
|
429
451
|
name: "askQuestion",
|
|
430
|
-
"que-id":
|
|
452
|
+
"que-id": x
|
|
431
453
|
}, null, 8, ["question", "c2question", "show-feedback", "id", "que-id"])
|
|
432
454
|
])) : z("", !0),
|
|
433
|
-
o.answer ? (
|
|
434
|
-
|
|
455
|
+
o.answer ? (i(), r("div", zs, [
|
|
456
|
+
T(ps, {
|
|
435
457
|
question: o == null ? void 0 : o.question,
|
|
436
458
|
c2question: o == null ? void 0 : o.c2question,
|
|
437
459
|
"show-sources": o == null ? void 0 : o.showSources,
|
|
438
460
|
questionId: o.id,
|
|
439
|
-
answer: o.answer.replaceAll("<a",
|
|
461
|
+
answer: o.answer.replaceAll("<a", l(t)).replaceAll("<ul", l(s)),
|
|
440
462
|
"show-feedback": o.showFeedback,
|
|
441
463
|
"related-ques": o == null ? void 0 : o.relatedQues,
|
|
442
464
|
"options-array": o == null ? void 0 : o.optionsArray,
|
|
443
|
-
"ans-id":
|
|
444
|
-
onCharTyped:
|
|
465
|
+
"ans-id": x,
|
|
466
|
+
onCharTyped: u
|
|
445
467
|
}, null, 8, ["question", "c2question", "show-sources", "questionId", "answer", "show-feedback", "related-ques", "options-array", "ans-id"])
|
|
446
468
|
])) : z("", !0)
|
|
447
469
|
]))), 128)),
|
|
448
|
-
|
|
449
|
-
|
|
470
|
+
l(b).dotLoader ? (i(), r("div", Ms, [
|
|
471
|
+
T(Cs)
|
|
450
472
|
])) : z("", !0),
|
|
451
|
-
|
|
452
|
-
|
|
473
|
+
l(b).userspeaking ? (i(), r("div", Rs, [
|
|
474
|
+
T(Ts)
|
|
453
475
|
])) : z("", !0)
|
|
454
476
|
], 512));
|
|
455
477
|
}
|
|
456
478
|
});
|
|
457
|
-
const
|
|
479
|
+
const js = /* @__PURE__ */ W(Ds, [["__scopeId", "data-v-c14e6f9c"]]), Es = { class: "flex items-center gap-4 py-2 rounded-full z-10" }, Is = {
|
|
458
480
|
key: 0,
|
|
459
481
|
class: "flex items-center"
|
|
460
|
-
},
|
|
482
|
+
}, qs = {
|
|
461
483
|
width: "30",
|
|
462
484
|
height: "30",
|
|
463
485
|
viewBox: "0 0 36 24",
|
|
464
486
|
class: "fill-white",
|
|
465
487
|
style: { transform: "scaleX(-1)" }
|
|
466
|
-
},
|
|
467
|
-
|
|
468
|
-
],
|
|
488
|
+
}, Hs = /* @__PURE__ */ re('<rect x="0" y="11" width="2" height="2" rx="1"><animate attributeName="height" values="2;6;2" dur="1s" repeatCount="indefinite" begin="0s"></animate><animate attributeName="y" values="11;9;11" dur="1s" repeatCount="indefinite" begin="0s"></animate></rect><rect x="4" y="10" width="2" height="4" rx="1"><animate attributeName="height" values="4;8;4" dur="1s" repeatCount="indefinite" begin="0.1s"></animate><animate attributeName="y" values="10;8;10" dur="1s" repeatCount="indefinite" begin="0.1s"></animate></rect><rect x="8" y="8" width="2" height="8" rx="1"><animate attributeName="height" values="8;12;8" dur="1s" repeatCount="indefinite" begin="0.2s"></animate><animate attributeName="y" values="8;6;8" dur="1s" repeatCount="indefinite" begin="0.2s"></animate></rect><rect x="12" y="6" width="2" height="12" rx="1"><animate attributeName="height" values="12;16;12" dur="1s" repeatCount="indefinite" begin="0.3s"></animate><animate attributeName="y" values="6;4;6" dur="1s" repeatCount="indefinite" begin="0.3s"></animate></rect><rect x="16" y="4" width="2" height="16" rx="1"><animate attributeName="height" values="16;20;16" dur="1s" repeatCount="indefinite" begin="0.4s"></animate><animate attributeName="y" values="4;2;4" dur="1s" repeatCount="indefinite" begin="0.4s"></animate></rect><rect x="20" y="6" width="2" height="12" rx="1"><animate attributeName="height" values="12;16;12" dur="1s" repeatCount="indefinite" begin="0.5s"></animate><animate attributeName="y" values="6;4;6" dur="1s" repeatCount="indefinite" begin="0.5s"></animate></rect><rect x="24" y="8" width="2" height="8" rx="1"><animate attributeName="height" values="8;12;8" dur="1s" repeatCount="indefinite" begin="0.6s"></animate><animate attributeName="y" values="8;6;8" dur="1s" repeatCount="indefinite" begin="0.6s"></animate></rect><rect x="28" y="10" width="2" height="4" rx="1"><animate attributeName="height" values="4;8;4" dur="1s" repeatCount="indefinite" begin="0.7s"></animate><animate attributeName="y" values="10;8;10" dur="1s" repeatCount="indefinite" begin="0.7s"></animate></rect><rect x="32" y="11" width="2" height="2" rx="1"><animate attributeName="height" values="2;6;2" dur="1s" repeatCount="indefinite" begin="0.8s"></animate><animate attributeName="y" values="11;9;11" dur="1s" repeatCount="indefinite" begin="0.8s"></animate></rect>', 9), Bs = [
|
|
489
|
+
Hs
|
|
490
|
+
], $s = {
|
|
469
491
|
key: 1,
|
|
470
492
|
class: "flex items-center"
|
|
471
|
-
},
|
|
493
|
+
}, Vs = {
|
|
472
494
|
width: "30",
|
|
473
495
|
height: "30",
|
|
474
496
|
viewBox: "0 0 36 24",
|
|
475
497
|
class: "fill-white",
|
|
476
498
|
style: { transform: "scaleX(-1)" }
|
|
477
|
-
},
|
|
478
|
-
|
|
479
|
-
],
|
|
499
|
+
}, Qs = /* @__PURE__ */ re('<rect x="0" y="11" width="2" height="2" rx="1"><animate attributeName="height" values="2;6;2" dur="1s" repeatCount="indefinite" begin="0s"></animate><animate attributeName="y" values="11;9;11" dur="1s" repeatCount="indefinite" begin="0s"></animate></rect><rect x="4" y="10" width="2" height="4" rx="1"><animate attributeName="height" values="4;8;4" dur="1s" repeatCount="indefinite" begin="0.1s"></animate><animate attributeName="y" values="10;8;10" dur="1s" repeatCount="indefinite" begin="0.1s"></animate></rect><rect x="8" y="8" width="2" height="8" rx="1"><animate attributeName="height" values="8;12;8" dur="1s" repeatCount="indefinite" begin="0.2s"></animate><animate attributeName="y" values="8;6;8" dur="1s" repeatCount="indefinite" begin="0.2s"></animate></rect><rect x="12" y="6" width="2" height="12" rx="1"><animate attributeName="height" values="12;16;12" dur="1s" repeatCount="indefinite" begin="0.3s"></animate><animate attributeName="y" values="6;4;6" dur="1s" repeatCount="indefinite" begin="0.3s"></animate></rect><rect x="16" y="4" width="2" height="16" rx="1"><animate attributeName="height" values="16;20;16" dur="1s" repeatCount="indefinite" begin="0.4s"></animate><animate attributeName="y" values="4;2;4" dur="1s" repeatCount="indefinite" begin="0.4s"></animate></rect><rect x="20" y="6" width="2" height="12" rx="1"><animate attributeName="height" values="12;16;12" dur="1s" repeatCount="indefinite" begin="0.5s"></animate><animate attributeName="y" values="6;4;6" dur="1s" repeatCount="indefinite" begin="0.5s"></animate></rect><rect x="24" y="8" width="2" height="8" rx="1"><animate attributeName="height" values="8;12;8" dur="1s" repeatCount="indefinite" begin="0.6s"></animate><animate attributeName="y" values="8;6;8" dur="1s" repeatCount="indefinite" begin="0.6s"></animate></rect><rect x="28" y="10" width="2" height="4" rx="1"><animate attributeName="height" values="4;8;4" dur="1s" repeatCount="indefinite" begin="0.7s"></animate><animate attributeName="y" values="10;8;10" dur="1s" repeatCount="indefinite" begin="0.7s"></animate></rect><rect x="32" y="11" width="2" height="2" rx="1"><animate attributeName="height" values="2;6;2" dur="1s" repeatCount="indefinite" begin="0.8s"></animate><animate attributeName="y" values="11;9;11" dur="1s" repeatCount="indefinite" begin="0.8s"></animate></rect>', 9), Gs = [
|
|
500
|
+
Qs
|
|
501
|
+
], Os = {
|
|
480
502
|
key: 2,
|
|
481
503
|
class: "flex items-center"
|
|
482
|
-
},
|
|
483
|
-
|
|
484
|
-
],
|
|
504
|
+
}, Xs = /* @__PURE__ */ re('<svg width="30" height="30" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="12" y="16" width="40" height="32" rx="8" fill="white" stroke="#9CA3AF" stroke-width="2"></rect><circle cx="24" cy="32" r="4" fill="black"></circle><circle cx="40" cy="32" r="4" fill="black"></circle><line x1="32" y1="10" x2="32" y2="16" stroke="#9CA3AF" stroke-width="2"></line><circle cx="32" cy="8" r="2" fill="white"></circle><circle cx="52" cy="14" r="3" fill="white"><animate attributeName="opacity" values="0;1;0" dur="1.2s" begin="0s" repeatCount="indefinite"></animate></circle><circle cx="58" cy="10" r="2.5" fill="white"><animate attributeName="opacity" values="0;1;0" dur="1.2s" begin="0.2s" repeatCount="indefinite"></animate></circle><circle cx="63" cy="6" r="2" fill="white"><animate attributeName="opacity" values="0;1;0" dur="1.2s" begin="0.4s" repeatCount="indefinite"></animate></circle></svg>', 1), Ws = [
|
|
505
|
+
Xs
|
|
506
|
+
], Us = { class: "tooltiptext text-genpact-darkest-teal" }, Js = /* @__PURE__ */ e("svg", {
|
|
485
507
|
xmlns: "http://www.w3.org/2000/svg",
|
|
486
508
|
class: "h-[10px] w-[10px] text-gray-700",
|
|
487
509
|
fill: "currentColor",
|
|
488
510
|
viewBox: "0 0 24 24"
|
|
489
511
|
}, [
|
|
490
512
|
/* @__PURE__ */ e("path", { d: "M12 14a3 3 0 0 0 3-3V5a3 3 0 0 0-6 0v6a3 3 0 0 0 3 3zm5-3a5 5 0 0 1-10 0H5a7 7 0 0 0 14 0h-2zm-5 9a7 7 0 0 0 7-7h2a9 9 0 0 1-8 8.94V22h-2v-1.06A9 9 0 0 1 3 13h2a7 7 0 0 0 7 7z" })
|
|
491
|
-
], -1),
|
|
492
|
-
|
|
493
|
-
],
|
|
513
|
+
], -1), Ks = [
|
|
514
|
+
Js
|
|
515
|
+
], Zs = /* @__PURE__ */ e("svg", {
|
|
494
516
|
xmlns: "http://www.w3.org/2000/svg",
|
|
495
517
|
class: "h-[10px] w-[10px] text-gray-700",
|
|
496
518
|
fill: "currentColor",
|
|
@@ -505,146 +527,145 @@ const zs = /* @__PURE__ */ U(Fs, [["__scopeId", "data-v-c14e6f9c"]]), Rs = { cla
|
|
|
505
527
|
stroke: "currentColor",
|
|
506
528
|
"stroke-width": "2"
|
|
507
529
|
})
|
|
508
|
-
], -1),
|
|
509
|
-
|
|
510
|
-
],
|
|
530
|
+
], -1), Ys = [
|
|
531
|
+
Zs
|
|
532
|
+
], ea = /* @__PURE__ */ R({
|
|
511
533
|
__name: "NewVoiceConversation",
|
|
512
|
-
setup(
|
|
513
|
-
const t =
|
|
514
|
-
a.value === !1 ? t.elevenLabs ? (console.log("mic enabled true 11labs"), a.value = !0,
|
|
515
|
-
},
|
|
516
|
-
t.elevenLabs ? (console.log("closeConversation 11 labs"),
|
|
534
|
+
setup(p) {
|
|
535
|
+
const t = H(), s = ce(), b = m(""), a = m(!1), u = m("Turn on mic"), y = () => {
|
|
536
|
+
a.value === !1 ? t.elevenLabs ? (console.log("mic enabled true 11labs"), a.value = !0, _t(), j.value = "user", u.value = "Turn off mic") : (console.log("mic enabled true"), a.value = !0, rt(), At(), j.value = "user", u.value = "Turn off mic") : t.elevenLabs ? (console.log("mic enabled false"), it(), a.value = !1, u.value = "Turn on mic") : (console.log("mic enabled false"), he(), a.value = !1, u.value = "Turn on mic");
|
|
537
|
+
}, v = () => {
|
|
538
|
+
t.elevenLabs ? (console.log("closeConversation 11 labs"), it(), j.value = "none", a.value = !1) : (console.log("closeConversation"), he(), rt(), j.value = "none", a.value = !1);
|
|
517
539
|
}, o = async () => {
|
|
518
|
-
var
|
|
540
|
+
var x, _, g, d, h, c;
|
|
519
541
|
try {
|
|
520
|
-
const
|
|
521
|
-
question: G.value ||
|
|
542
|
+
const f = {
|
|
543
|
+
question: G.value || ne.value
|
|
522
544
|
};
|
|
523
|
-
t.conversations.push(
|
|
524
|
-
const
|
|
545
|
+
t.conversations.push(f), t.dotLoader = !0, t.question = "";
|
|
546
|
+
const A = {
|
|
525
547
|
past_messages: t.past_messages,
|
|
526
|
-
question: G.value ||
|
|
548
|
+
question: G.value || ne.value,
|
|
527
549
|
bandCode: "4A",
|
|
528
550
|
userGenomeFunction: "HR",
|
|
529
551
|
userGenomeRole: "Consultant",
|
|
530
552
|
skillId: "7bd03cb6-79ad-4e2a-8a8b-88dc16147369"
|
|
531
|
-
},
|
|
532
|
-
if (
|
|
553
|
+
}, F = await J("/sqlTest", A);
|
|
554
|
+
if (j.value = "bot", b.value = (_ = (x = F == null ? void 0 : F.data) == null ? void 0 : x.body) == null ? void 0 : _.answer, b.value === "") {
|
|
533
555
|
console.log("in the if case calling api again");
|
|
534
|
-
const
|
|
535
|
-
t.addConversation((
|
|
556
|
+
const E = await J("/sqlTest", A);
|
|
557
|
+
t.addConversation((g = E.data) == null ? void 0 : g.body, "new");
|
|
536
558
|
} else
|
|
537
|
-
console.log("in the else case"), t.addConversation((d =
|
|
559
|
+
console.log("in the else case"), t.addConversation((d = F.data) == null ? void 0 : d.body, "new");
|
|
538
560
|
if (t.dotLoader = !1, t.elevenLabs)
|
|
539
|
-
await
|
|
540
|
-
else if (
|
|
541
|
-
if (he(), a.value = !1,
|
|
542
|
-
const
|
|
543
|
-
if (
|
|
561
|
+
await kt(b.value.replace(/[*#]/g, ""));
|
|
562
|
+
else if (b.value.includes("Feedback and Assessment"))
|
|
563
|
+
if (he(), a.value = !1, b.value.includes("END ROLE PLAY")) {
|
|
564
|
+
const E = b.value.split("END ROLE PLAY")[0];
|
|
565
|
+
if (E.length < 0) {
|
|
544
566
|
t.showVoiceComponent = !1;
|
|
545
567
|
return;
|
|
546
568
|
}
|
|
547
|
-
await
|
|
569
|
+
await lt(E.replace(/[*#]/g, "")), t.showVoiceComponent = !1;
|
|
548
570
|
} else
|
|
549
571
|
t.showVoiceComponent = !1;
|
|
550
572
|
else
|
|
551
|
-
await
|
|
552
|
-
} catch (
|
|
553
|
-
if (console.error(
|
|
554
|
-
const
|
|
555
|
-
console.log("Error found!"), console.error((
|
|
573
|
+
await lt(b.value.replace(/[*#]/g, ""));
|
|
574
|
+
} catch (f) {
|
|
575
|
+
if (console.error(f), $.isAxiosError(f)) {
|
|
576
|
+
const A = f;
|
|
577
|
+
console.log("Error found!"), console.error((h = A.response) == null ? void 0 : h.data), s.setError(((c = A.response) == null ? void 0 : c.data).message);
|
|
556
578
|
} else
|
|
557
579
|
s.setError("There was an issue, please contact helpmate");
|
|
558
580
|
}
|
|
559
581
|
};
|
|
560
|
-
return le(G, async (
|
|
561
|
-
if (
|
|
562
|
-
if (console.log("Recognized text:",
|
|
582
|
+
return le(G, async (x) => {
|
|
583
|
+
if (x) {
|
|
584
|
+
if (console.log("Recognized text:", x), G.value.toLowerCase().includes("play") && G.value.length < 10) {
|
|
563
585
|
console.log("play command detected, ignoring input");
|
|
564
586
|
return;
|
|
565
587
|
}
|
|
566
|
-
|
|
588
|
+
j.value = "listening", t.userspeaking = !1, await o(), G.value = "";
|
|
567
589
|
}
|
|
568
|
-
}), le(
|
|
569
|
-
|
|
570
|
-
}), (
|
|
571
|
-
|
|
590
|
+
}), le(ne, async (x) => {
|
|
591
|
+
x && (console.log("Recognized text:", x), j.value = "listening", await o(), ne.value = "");
|
|
592
|
+
}), (x, _) => (i(), r("div", Es, [
|
|
593
|
+
l(j) === "bot" ? (i(), r("div", Is, [
|
|
572
594
|
e("span", null, [
|
|
573
|
-
(
|
|
595
|
+
(i(), r("svg", qs, Bs))
|
|
574
596
|
])
|
|
575
|
-
])) :
|
|
597
|
+
])) : l(j) === "user" ? (i(), r("div", $s, [
|
|
576
598
|
e("span", null, [
|
|
577
|
-
(
|
|
599
|
+
(i(), r("svg", Vs, Gs))
|
|
578
600
|
])
|
|
579
|
-
])) :
|
|
601
|
+
])) : l(j) === "listening" ? (i(), r("div", Os, Ws)) : z("", !0),
|
|
580
602
|
e("div", {
|
|
581
|
-
class:
|
|
603
|
+
class: X([a.value ? "" : "animate-pulse", "tooltip"])
|
|
582
604
|
}, [
|
|
583
|
-
e("span",
|
|
584
|
-
a.value ? (
|
|
605
|
+
e("span", Us, V(u.value), 1),
|
|
606
|
+
a.value ? (i(), r("button", {
|
|
585
607
|
key: 0,
|
|
586
608
|
class: "rounded-full bg-white p-2 transition hover:bg-gray-300",
|
|
587
|
-
onClick:
|
|
588
|
-
},
|
|
609
|
+
onClick: _[0] || (_[0] = (g) => y())
|
|
610
|
+
}, Ks)) : (i(), r("button", {
|
|
589
611
|
key: 1,
|
|
590
612
|
class: "rounded-full bg-white p-2 transition hover:bg-gray-300",
|
|
591
|
-
onClick:
|
|
592
|
-
},
|
|
613
|
+
onClick: _[1] || (_[1] = (g) => y())
|
|
614
|
+
}, Ys))
|
|
593
615
|
], 2),
|
|
594
616
|
e("button", {
|
|
595
617
|
class: "rounded-full bg-white p-2 hover:bg-gray-300",
|
|
596
|
-
onClick:
|
|
618
|
+
onClick: _[2] || (_[2] = (g) => v())
|
|
597
619
|
}, [
|
|
598
|
-
|
|
620
|
+
T(l(St), { class: "h-[10px] w-[10px] text-gray-700" })
|
|
599
621
|
])
|
|
600
622
|
]));
|
|
601
623
|
}
|
|
602
|
-
}),
|
|
624
|
+
}), B = (p) => (K("data-v-bc339815"), p = p(), Z(), p), ta = { class: "z-3 absolute bottom-0 mt-4 w-full bg-white px-2 md:px-6" }, sa = { class: "py-2" }, aa = { class: "flex" }, oa = { class: "z-1 relative w-full" }, na = { class: "flex justify-between my-2 w-full" }, ia = /* @__PURE__ */ B(() => /* @__PURE__ */ e("div", null, null, -1)), la = {
|
|
603
625
|
key: 0,
|
|
604
626
|
class: "flex justify-center bg-genpact-darkest-blue px-4 rounded-full"
|
|
605
|
-
},
|
|
627
|
+
}, ra = { class: "relative w-full" }, da = { class: "absolute inset-y-0 left-0 flex items-center pl-3" }, ca = { class: "tooltip" }, ua = /* @__PURE__ */ B(() => /* @__PURE__ */ e("span", { class: "tooltiptext text-genpact-darkest-teal" }, "Restart", -1)), ma = /* @__PURE__ */ B(() => /* @__PURE__ */ e("path", {
|
|
606
628
|
d: "M12 4C8.229 4 6.343 4 5.172 5.172C4.001 6.344 4 8.229 4 12V18C4 18.943 4 19.414 4.293 19.707C4.586 20 5.057 20 6 20H12C15.771 20 17.657 20 18.828 18.828C19.999 17.656 20 15.771 20 12",
|
|
607
629
|
stroke: "currentColor",
|
|
608
630
|
"stroke-width": "2"
|
|
609
|
-
}, null, -1)),
|
|
631
|
+
}, null, -1)), ha = /* @__PURE__ */ B(() => /* @__PURE__ */ e("path", {
|
|
610
632
|
d: "M9 10H15M9 14H12M19 8V2M16 5H22",
|
|
611
633
|
stroke: "currentColor",
|
|
612
634
|
"stroke-width": "2",
|
|
613
635
|
"stroke-linecap": "round",
|
|
614
636
|
"stroke-linejoin": "round"
|
|
615
|
-
}, null, -1)),
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
],
|
|
619
|
-
|
|
620
|
-
],
|
|
637
|
+
}, null, -1)), pa = [
|
|
638
|
+
ma,
|
|
639
|
+
ha
|
|
640
|
+
], fa = { class: "absolute inset-y-0 right-0 flex items-center md:pr-8 pr-3" }, ga = { key: 0 }, va = ["disabled"], ba = /* @__PURE__ */ B(() => /* @__PURE__ */ e("path", { d: "M15.854.146a.5.5 0 0 1 .11.54l-5.819 14.547a.75.75 0 0 1-1.329.124l-3.178-4.995L.643 7.184a.75.75 0 0 1 .124-1.33L15.314.037a.5.5 0 0 1 .54.11ZM6.636 10.07l2.761 4.338L14.13 2.576 6.636 10.07Zm6.787-8.201L1.591 6.602l4.339 2.76 7.494-7.493Z" }, null, -1)), xa = [
|
|
641
|
+
ba
|
|
642
|
+
], ya = {
|
|
621
643
|
key: 1,
|
|
622
644
|
class: "tooltip"
|
|
623
|
-
},
|
|
645
|
+
}, wa = /* @__PURE__ */ B(() => /* @__PURE__ */ e("span", { class: "tooltiptext text-genpact-darkest-teal" }, "Processing", -1)), _a = /* @__PURE__ */ B(() => /* @__PURE__ */ e("img", {
|
|
624
646
|
class: "w-7 h-7",
|
|
625
|
-
src:
|
|
647
|
+
src: dt,
|
|
626
648
|
alt: "watingIcon"
|
|
627
|
-
}, null, -1)),
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
],
|
|
649
|
+
}, null, -1)), Aa = [
|
|
650
|
+
wa,
|
|
651
|
+
_a
|
|
652
|
+
], ka = { class: "flex justify-start gap-2 md:gap-1" }, Sa = ["disabled"], Ca = /* @__PURE__ */ B(() => /* @__PURE__ */ e("div", { class: "pt-1 text-start font-sans text-xs font-bold text-gray-500 md:text-sm" }, [
|
|
631
653
|
/* @__PURE__ */ e("div", null, " Note: AI-generated response may not be fully accurate; check with experts for critical information. ")
|
|
632
|
-
], -1)),
|
|
654
|
+
], -1)), Na = /* @__PURE__ */ R({
|
|
633
655
|
__name: "NewQuestionSimulation",
|
|
634
|
-
setup(
|
|
635
|
-
const s =
|
|
656
|
+
setup(p, { expose: t }) {
|
|
657
|
+
const s = H(), b = ce(), a = m(""), u = m("");
|
|
636
658
|
s.question = "";
|
|
637
|
-
const
|
|
638
|
-
|
|
639
|
-
|
|
659
|
+
const y = m(null);
|
|
660
|
+
m(!1), m(ie);
|
|
661
|
+
const v = m(!1), o = m(0);
|
|
662
|
+
u.value = s.recognizedText, de(() => {
|
|
663
|
+
y.value.focus();
|
|
640
664
|
});
|
|
641
|
-
const
|
|
665
|
+
const x = () => {
|
|
642
666
|
window.location.reload();
|
|
643
|
-
},
|
|
644
|
-
|
|
645
|
-
o.value = O - m, x.value = m >= O;
|
|
646
|
-
}, f = async () => {
|
|
647
|
-
var b, m, y, P, q, te, se, ae, oe, ne;
|
|
667
|
+
}, _ = async () => {
|
|
668
|
+
var h, c, f, A, F, E, ee, te, se, ae, oe;
|
|
648
669
|
try {
|
|
649
670
|
if (s.question.trim().length < 1) {
|
|
650
671
|
console.log("Please enter answer!");
|
|
@@ -655,9 +676,9 @@ const zs = /* @__PURE__ */ U(Fs, [["__scopeId", "data-v-c14e6f9c"]]), Rs = { cla
|
|
|
655
676
|
question: s.question || s.recognizedText
|
|
656
677
|
};
|
|
657
678
|
s.conversations.push(C);
|
|
658
|
-
const N =
|
|
659
|
-
N.value = s.question || s.recognizedText, s.question = "";
|
|
660
|
-
const
|
|
679
|
+
const N = m("");
|
|
680
|
+
N.value = s.question || s.recognizedText, s.question = "", y.value && (y.value.style.height = "auto");
|
|
681
|
+
const M = {
|
|
661
682
|
ohr_id: a.value,
|
|
662
683
|
past_messages: s.past_messages,
|
|
663
684
|
question: N.value || s.recognizedText,
|
|
@@ -665,38 +686,43 @@ const zs = /* @__PURE__ */ U(Fs, [["__scopeId", "data-v-c14e6f9c"]]), Rs = { cla
|
|
|
665
686
|
userGenomeFunction: s.genomeFunctionValue,
|
|
666
687
|
userGenomeRole: s.genomeRoleValue,
|
|
667
688
|
skillId: s.simulationSkill || "937e84ef-e95d-4327-9afe-e7be2bf420eb"
|
|
668
|
-
}, L = await
|
|
669
|
-
if (
|
|
689
|
+
}, L = await J("/sqlTest", M);
|
|
690
|
+
if (o.value += (c = (h = L.data) == null ? void 0 : h.body) == null ? void 0 : c.totalTokenCount, console.log("Token Count:", o.value), a.value = (A = (f = L.data) == null ? void 0 : f.body) == null ? void 0 : A.ohr, ((E = (F = L == null ? void 0 : L.data) == null ? void 0 : F.body) == null ? void 0 : E.answer) === "") {
|
|
670
691
|
console.log("in the if case calling api again");
|
|
671
|
-
const
|
|
672
|
-
s.addConversation((
|
|
692
|
+
const D = await J("/sqlTest", M);
|
|
693
|
+
s.addConversation((ee = D.data) == null ? void 0 : ee.body, "new");
|
|
673
694
|
} else
|
|
674
|
-
console.log("in the else case"), s.addConversation((
|
|
695
|
+
console.log("in the else case"), s.addConversation((te = L.data) == null ? void 0 : te.body, "new");
|
|
675
696
|
v.value = !1, s.dotLoader = !1, s.recognizedText = "";
|
|
676
697
|
} catch (C) {
|
|
677
|
-
if (console.error(C), s.dotLoader = !1,
|
|
698
|
+
if (console.error(C), s.dotLoader = !1, v.value = !0, $.isAxiosError(C)) {
|
|
678
699
|
const N = C;
|
|
679
|
-
console.log("Error found!"), console.error((
|
|
700
|
+
console.log("Error found!"), console.error((se = N.response) == null ? void 0 : se.data), b.setError((oe = (ae = N.response) == null ? void 0 : ae.data) == null ? void 0 : oe.message);
|
|
680
701
|
} else
|
|
681
|
-
|
|
702
|
+
b.setError("There was an issue, please contact helpmate");
|
|
682
703
|
}
|
|
704
|
+
}, g = (h) => {
|
|
705
|
+
h.key === "Enter" && !h.shiftKey && (h.preventDefault(), _());
|
|
706
|
+
}, d = (h) => {
|
|
707
|
+
const c = h.target;
|
|
708
|
+
c.style.height = "auto", c.style.height = c.scrollHeight + "px";
|
|
683
709
|
};
|
|
684
|
-
return t({ sendQuestion:
|
|
685
|
-
e("div",
|
|
686
|
-
e("div",
|
|
687
|
-
e("div",
|
|
688
|
-
e("div",
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
710
|
+
return t({ sendQuestion: _ }), (h, c) => (i(), r("div", ta, [
|
|
711
|
+
e("div", sa, [
|
|
712
|
+
e("div", aa, [
|
|
713
|
+
e("div", oa, [
|
|
714
|
+
e("div", na, [
|
|
715
|
+
ia,
|
|
716
|
+
l(s).showVoiceComponent ? (i(), r("div", la, [
|
|
717
|
+
T(ea)
|
|
692
718
|
])) : z("", !0)
|
|
693
719
|
]),
|
|
694
|
-
e("div",
|
|
695
|
-
e("div",
|
|
696
|
-
e("div",
|
|
697
|
-
|
|
698
|
-
(
|
|
699
|
-
onClick:
|
|
720
|
+
e("div", ra, [
|
|
721
|
+
e("div", da, [
|
|
722
|
+
e("div", ca, [
|
|
723
|
+
ua,
|
|
724
|
+
(i(), r("svg", {
|
|
725
|
+
onClick: x,
|
|
700
726
|
class: "ml-2 h-7 w-7 rounded",
|
|
701
727
|
id: "newTopicDisable",
|
|
702
728
|
width: "7",
|
|
@@ -705,96 +731,97 @@ const zs = /* @__PURE__ */ U(Fs, [["__scopeId", "data-v-c14e6f9c"]]), Rs = { cla
|
|
|
705
731
|
fill: "none",
|
|
706
732
|
xmlns: "http://www.w3.org/2000/svg",
|
|
707
733
|
title: "restart"
|
|
708
|
-
},
|
|
734
|
+
}, pa))
|
|
709
735
|
])
|
|
710
736
|
]),
|
|
711
|
-
e("div",
|
|
712
|
-
v.value ? (
|
|
713
|
-
(
|
|
714
|
-
disabled:
|
|
715
|
-
class:
|
|
716
|
-
|
|
737
|
+
e("div", fa, [
|
|
738
|
+
v.value ? (i(), r("div", ya, Aa)) : (i(), r("div", ga, [
|
|
739
|
+
(i(), r("svg", {
|
|
740
|
+
disabled: l(s).beginFlag === !0,
|
|
741
|
+
class: X([
|
|
742
|
+
l(s).beginFlag === !0 ? "cursor-not-allowed text-gray-600" : "cursor-pointer",
|
|
717
743
|
"bi bi-send ml-2 h-7 w-7 rotate-45 rounded"
|
|
718
744
|
]),
|
|
719
|
-
onClick:
|
|
745
|
+
onClick: c[0] || (c[0] = (f) => l(s).searchBoxdisable === !1 || l(s).beginFlag === !0 ? "" : _()),
|
|
720
746
|
xmlns: "http://www.w3.org/2000/svg",
|
|
721
747
|
fill: "currentColor",
|
|
722
748
|
viewBox: "0 0 16 16"
|
|
723
|
-
},
|
|
749
|
+
}, xa, 10, va))
|
|
724
750
|
]))
|
|
725
751
|
]),
|
|
726
|
-
e("div",
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
class:
|
|
734
|
-
|
|
735
|
-
|
|
752
|
+
e("div", ka, [
|
|
753
|
+
xe(e("textarea", {
|
|
754
|
+
onPaste: c[1] || (c[1] = xt(() => {
|
|
755
|
+
}, ["prevent"])),
|
|
756
|
+
onKeydown: c[2] || (c[2] = (f) => v.value ? "" : g(f)),
|
|
757
|
+
disabled: l(s).searchBoxdisable === !1 || l(s).beginFlag === !0,
|
|
758
|
+
"onUpdate:modelValue": c[3] || (c[3] = (f) => l(s).question = f),
|
|
759
|
+
class: X([
|
|
760
|
+
"fontFormattingAMA rounded-lg flex w-full border border-genpact-darkest-teal py-[18px] px-[70px]",
|
|
761
|
+
l(s).beginFlag === !0 || l(s).searchBoxdisable === !1 ? "cursor-not-allowed bg-[#e5e7eb]" : "bg-white"
|
|
736
762
|
]),
|
|
737
|
-
"onUpdate:modelValue": m[2] || (m[2] = (y) => i(s).question = y),
|
|
738
763
|
placeholder: "Write your answer here...",
|
|
739
|
-
type: "text",
|
|
740
764
|
ref_key: "AiSearch",
|
|
741
|
-
ref:
|
|
742
|
-
|
|
743
|
-
[
|
|
765
|
+
ref: y,
|
|
766
|
+
rows: "1",
|
|
767
|
+
onInput: c[4] || (c[4] = (f) => d(f)),
|
|
768
|
+
style: { overflow: "hidden", transition: "height 0.2s" }
|
|
769
|
+
}, null, 42, Sa), [
|
|
770
|
+
[ct, l(s).question]
|
|
744
771
|
])
|
|
745
772
|
])
|
|
746
773
|
]),
|
|
747
|
-
|
|
774
|
+
Ca
|
|
748
775
|
])
|
|
749
776
|
])
|
|
750
777
|
])
|
|
751
778
|
]));
|
|
752
779
|
}
|
|
753
780
|
});
|
|
754
|
-
const
|
|
755
|
-
|
|
756
|
-
],
|
|
781
|
+
const La = /* @__PURE__ */ W(Na, [["__scopeId", "data-v-bc339815"]]), ue = (p) => (K("data-v-6c0980b5"), p = p(), Z(), p), Pa = { class: "z-3 absolute bottom-0 mt-4 w-full bg-white px-2 md:px-6" }, Ta = { class: "py-2" }, Fa = { class: "flex" }, za = { class: "z-1 relative w-full" }, Ma = { class: "relative w-full" }, Ra = { class: "absolute inset-y-0 right-0 flex items-center md:pr-8 pr-3" }, Da = { key: 0 }, ja = ["disabled"], Ea = /* @__PURE__ */ ue(() => /* @__PURE__ */ e("path", { d: "M15.854.146a.5.5 0 0 1 .11.54l-5.819 14.547a.75.75 0 0 1-1.329.124l-3.178-4.995L.643 7.184a.75.75 0 0 1 .124-1.33L15.314.037a.5.5 0 0 1 .54.11ZM6.636 10.07l2.761 4.338L14.13 2.576 6.636 10.07Zm6.787-8.201L1.591 6.602l4.339 2.76 7.494-7.493Z" }, null, -1)), Ia = [
|
|
782
|
+
Ea
|
|
783
|
+
], qa = {
|
|
757
784
|
key: 1,
|
|
758
785
|
class: "tooltip"
|
|
759
|
-
},
|
|
786
|
+
}, Ha = /* @__PURE__ */ ue(() => /* @__PURE__ */ e("span", { class: "tooltiptext fontFormattingAMA" }, "Waiting for response", -1)), Ba = /* @__PURE__ */ ue(() => /* @__PURE__ */ e("img", {
|
|
760
787
|
class: "w-7 h-7",
|
|
761
|
-
src:
|
|
788
|
+
src: dt,
|
|
762
789
|
alt: "watingIcon"
|
|
763
|
-
}, null, -1)),
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
],
|
|
790
|
+
}, null, -1)), $a = [
|
|
791
|
+
Ha,
|
|
792
|
+
Ba
|
|
793
|
+
], Va = { class: "flex justify-start gap-2 md:gap-1" }, Qa = ["disabled"], Ga = /* @__PURE__ */ ue(() => /* @__PURE__ */ e("div", { class: "pt-1 text-start font-sans text-[0.8125rem] md:text-[0.9375rem] font-bold text-gray-500" }, [
|
|
767
794
|
/* @__PURE__ */ e("div", null, " Note: AI-generated response may not be fully accurate; check with experts for critical information. ")
|
|
768
|
-
], -1)),
|
|
795
|
+
], -1)), Oa = /* @__PURE__ */ R({
|
|
769
796
|
__name: "NewMDMQuestionSimulation",
|
|
770
|
-
setup(
|
|
771
|
-
const t =
|
|
797
|
+
setup(p) {
|
|
798
|
+
const t = H(), s = ce(), b = m("");
|
|
772
799
|
t.question = "";
|
|
773
|
-
const a =
|
|
774
|
-
|
|
800
|
+
const a = m(null), u = m(!1), y = m(ie), v = m(!1);
|
|
801
|
+
b.value = t.recognizedText, de(() => {
|
|
775
802
|
a.value.focus();
|
|
776
803
|
});
|
|
777
|
-
const o = (
|
|
778
|
-
const
|
|
779
|
-
|
|
780
|
-
},
|
|
781
|
-
var
|
|
804
|
+
const o = (_) => {
|
|
805
|
+
const g = _.length;
|
|
806
|
+
y.value = ie - g, u.value = g >= ie;
|
|
807
|
+
}, x = async () => {
|
|
808
|
+
var _, g, d;
|
|
782
809
|
console.log("options fdsfdscdzxfsdv", t.recognizedText);
|
|
783
810
|
try {
|
|
784
811
|
if (console.log("options fdsfdscdzxfsdv", t.recognizedText), t.question.trim().length < 1) {
|
|
785
812
|
console.log("Please enter answer!");
|
|
786
813
|
return;
|
|
787
814
|
}
|
|
788
|
-
|
|
789
|
-
const
|
|
815
|
+
v.value = !0, t.dotLoader = !0;
|
|
816
|
+
const h = {
|
|
790
817
|
question: t.question || t.recognizedText
|
|
791
818
|
};
|
|
792
|
-
console.log("ques",
|
|
793
|
-
const
|
|
794
|
-
|
|
795
|
-
const
|
|
819
|
+
console.log("ques", h), t.conversations.push(h);
|
|
820
|
+
const c = m("");
|
|
821
|
+
c.value = t.question || t.recognizedText, t.question = "";
|
|
822
|
+
const f = {
|
|
796
823
|
assessmentId: t.simulationSkill,
|
|
797
|
-
question:
|
|
824
|
+
question: c.value,
|
|
798
825
|
past_messages: t.past_messages,
|
|
799
826
|
prompt: t.generatedPrompt,
|
|
800
827
|
assessmentType: t.assessmentType,
|
|
@@ -805,143 +832,143 @@ const ka = /* @__PURE__ */ U(Aa, [["__scopeId", "data-v-3e7d283f"]]), ue = (h) =
|
|
|
805
832
|
storeFinalFeedback: t.storeFinalFeedback,
|
|
806
833
|
storeFinalScore: t.storeFinalScore
|
|
807
834
|
};
|
|
808
|
-
console.log("Payload for MDM1==> ",
|
|
809
|
-
let
|
|
810
|
-
|
|
811
|
-
const
|
|
812
|
-
t.addConversation((
|
|
813
|
-
} catch (
|
|
814
|
-
if (console.error(
|
|
815
|
-
const
|
|
816
|
-
console.log("Error found!"), console.error((
|
|
835
|
+
console.log("Payload for MDM1==> ", f);
|
|
836
|
+
let A;
|
|
837
|
+
O === "prod" ? A = "/ManualExportActivity" : A = "/fetchCompletionDemo";
|
|
838
|
+
const F = await J(A, f);
|
|
839
|
+
t.addConversation((_ = F.data) == null ? void 0 : _.body, "new"), v.value = !1, t.dotLoader = !1, t.recognizedText = "";
|
|
840
|
+
} catch (h) {
|
|
841
|
+
if (console.error(h), $.isAxiosError(h)) {
|
|
842
|
+
const c = h;
|
|
843
|
+
console.log("Error found!"), console.error((g = c.response) == null ? void 0 : g.data), s.setError(((d = c.response) == null ? void 0 : d.data).message);
|
|
817
844
|
} else
|
|
818
845
|
s.setError("There was an issue, please contact helpmate");
|
|
819
846
|
}
|
|
820
847
|
};
|
|
821
|
-
return (
|
|
822
|
-
e("div",
|
|
823
|
-
e("div",
|
|
824
|
-
e("div",
|
|
825
|
-
e("div",
|
|
826
|
-
e("div",
|
|
827
|
-
|
|
828
|
-
(
|
|
829
|
-
disabled:
|
|
830
|
-
class:
|
|
831
|
-
|
|
848
|
+
return (_, g) => (i(), r("div", Pa, [
|
|
849
|
+
e("div", Ta, [
|
|
850
|
+
e("div", Fa, [
|
|
851
|
+
e("div", za, [
|
|
852
|
+
e("div", Ma, [
|
|
853
|
+
e("div", Ra, [
|
|
854
|
+
v.value ? (i(), r("div", qa, $a)) : (i(), r("div", Da, [
|
|
855
|
+
(i(), r("svg", {
|
|
856
|
+
disabled: l(t).beginFlag === !0,
|
|
857
|
+
class: X([
|
|
858
|
+
l(t).beginFlag === !0 ? "cursor-not-allowed text-gray-600" : "cursor-pointer",
|
|
832
859
|
"bi bi-send ml-2 h-7 w-7 rotate-45 rounded"
|
|
833
860
|
]),
|
|
834
|
-
onClick:
|
|
861
|
+
onClick: g[0] || (g[0] = (d) => l(t).searchBoxdisable === !1 || l(t).beginFlag === !0 ? "" : x()),
|
|
835
862
|
xmlns: "http://www.w3.org/2000/svg",
|
|
836
863
|
fill: "currentColor",
|
|
837
864
|
viewBox: "0 0 16 16"
|
|
838
|
-
},
|
|
865
|
+
}, Ia, 10, ja))
|
|
839
866
|
]))
|
|
840
867
|
]),
|
|
841
|
-
e("div",
|
|
842
|
-
|
|
868
|
+
e("div", Va, [
|
|
869
|
+
xe(e("input", {
|
|
843
870
|
onKeyup: [
|
|
844
|
-
|
|
845
|
-
|
|
871
|
+
g[1] || (g[1] = yt((d) => v.value ? "" : x(), ["enter"])),
|
|
872
|
+
g[3] || (g[3] = (d) => o(l(t).question))
|
|
846
873
|
],
|
|
847
|
-
disabled:
|
|
848
|
-
class:
|
|
849
|
-
|
|
874
|
+
disabled: l(t).beginFlag === !0 || l(t).searchBoxdisable === !1,
|
|
875
|
+
class: X([
|
|
876
|
+
l(t).beginFlag === !0 || l(t).searchBoxdisable === !1 ? "cursor-not-allowed bg-[#e5e7eb]" : "bg-white",
|
|
850
877
|
"fontFormattingAMA rounded-lg flex w-full border border-genpact-darkest-teal py-[18px] pl-[30px] pr-[70px]"
|
|
851
878
|
]),
|
|
852
|
-
"onUpdate:modelValue":
|
|
879
|
+
"onUpdate:modelValue": g[2] || (g[2] = (d) => l(t).question = d),
|
|
853
880
|
placeholder: "Write your answer here...",
|
|
854
881
|
type: "text",
|
|
855
882
|
ref_key: "AiSearch",
|
|
856
883
|
ref: a
|
|
857
|
-
}, null, 42,
|
|
858
|
-
[ct,
|
|
884
|
+
}, null, 42, Qa), [
|
|
885
|
+
[ct, l(t).question]
|
|
859
886
|
])
|
|
860
887
|
])
|
|
861
888
|
]),
|
|
862
|
-
|
|
889
|
+
Ga
|
|
863
890
|
])
|
|
864
891
|
])
|
|
865
892
|
])
|
|
866
893
|
]));
|
|
867
894
|
}
|
|
868
895
|
});
|
|
869
|
-
const
|
|
896
|
+
const Xa = /* @__PURE__ */ W(Oa, [["__scopeId", "data-v-6c0980b5"]]), Y = (p) => (K("data-v-2f3d502d"), p = p(), Z(), p), Wa = { class: "max-h-screen overflow-auto md:p-6 p-3 text-[#161916]" }, Ua = {
|
|
870
897
|
key: 0,
|
|
871
898
|
class: "flex flex-col items-center justify-center gap-4"
|
|
872
|
-
},
|
|
873
|
-
Oa,
|
|
874
|
-
Xa
|
|
875
|
-
], Ua = {
|
|
876
|
-
key: 1,
|
|
877
|
-
class: "flex flex-col items-center justify-center gap-4"
|
|
878
|
-
}, Ja = /* @__PURE__ */ ee(() => /* @__PURE__ */ e("div", { class: "text-2xl font-[700]" }, "Invalid URL", -1)), Ka = /* @__PURE__ */ ee(() => /* @__PURE__ */ e("h3", { className: "text-lg font-medium my-6 text-center text-gray-500" }, " Invalid URL or assessment not found. Please check the URL or contact support. ", -1)), Za = [
|
|
899
|
+
}, Ja = /* @__PURE__ */ Y(() => /* @__PURE__ */ e("div", { class: "text-2xl font-[700]" }, "Assessment Access Required", -1)), Ka = /* @__PURE__ */ Y(() => /* @__PURE__ */ e("h3", { className: "text-lg font-medium my-6 text-center text-gray-500" }, " You don't have access to this assessment. Please contact to administrator ", -1)), Za = [
|
|
879
900
|
Ja,
|
|
880
901
|
Ka
|
|
881
902
|
], Ya = {
|
|
903
|
+
key: 1,
|
|
904
|
+
class: "flex flex-col items-center justify-center gap-4"
|
|
905
|
+
}, eo = /* @__PURE__ */ Y(() => /* @__PURE__ */ e("div", { class: "text-2xl font-[700]" }, "Invalid URL", -1)), to = /* @__PURE__ */ Y(() => /* @__PURE__ */ e("h3", { className: "text-lg font-medium my-6 text-center text-gray-500" }, " Invalid URL or assessment not found. Please check the URL or contact support. ", -1)), so = [
|
|
906
|
+
eo,
|
|
907
|
+
to
|
|
908
|
+
], ao = {
|
|
882
909
|
key: 1,
|
|
883
910
|
className: "h-screen flex flex-col items-stretch"
|
|
884
|
-
},
|
|
911
|
+
}, oo = { class: "z-20" }, no = /* @__PURE__ */ Y(() => /* @__PURE__ */ e("div", { class: "mt-6" }, null, -1)), io = { class: "flex h-full items-stretch overflow-hidden" }, lo = { class: "mx-auto w-11/12 bg-white" }, ro = { class: "relative flex h-full w-full flex-col items-stretch overflow-hidden" }, co = {
|
|
885
912
|
key: 0,
|
|
886
913
|
class: "relative"
|
|
887
|
-
},
|
|
914
|
+
}, uo = {
|
|
888
915
|
key: 1,
|
|
889
916
|
class: "relative"
|
|
890
|
-
},
|
|
917
|
+
}, mo = /* @__PURE__ */ R({
|
|
891
918
|
__name: "AssessmentSimulation",
|
|
892
|
-
setup(
|
|
893
|
-
const t =
|
|
894
|
-
|
|
895
|
-
const a =
|
|
896
|
-
let
|
|
897
|
-
const d =
|
|
898
|
-
let
|
|
899
|
-
const
|
|
900
|
-
|
|
901
|
-
const
|
|
919
|
+
setup(p) {
|
|
920
|
+
const t = m(!0), s = m(!1), b = m(!1);
|
|
921
|
+
m(!1), m(!1);
|
|
922
|
+
const a = H(), u = ce(), y = m(""), v = m(""), o = m(""), x = m(""), _ = localStorage.getItem("accessToken");
|
|
923
|
+
let g = "";
|
|
924
|
+
const d = m("");
|
|
925
|
+
let h = "", c = "";
|
|
926
|
+
const f = m(), A = m(!1), F = new URL(window.location.href), E = F.searchParams.get("skillId") || F.searchParams.get("assessmentId");
|
|
927
|
+
v.value = F.searchParams.get("mode") ?? "", a.simulationSkill = E ?? "";
|
|
928
|
+
const ee = ["703331197", "703380812", "703331909", "703363051", "703319578"];
|
|
902
929
|
de(async () => {
|
|
903
|
-
t.value = !0, await
|
|
930
|
+
t.value = !0, await te(), await ae();
|
|
904
931
|
});
|
|
905
|
-
const
|
|
906
|
-
var C, N,
|
|
932
|
+
const te = async () => {
|
|
933
|
+
var C, N, M, L, I, D, q;
|
|
907
934
|
try {
|
|
908
935
|
const S = await me(
|
|
909
936
|
`/getLearnerData?forSimulation=true&skillForSimulation=${a.simulationSkill}`
|
|
910
937
|
);
|
|
911
|
-
a.initialize(S.data), a.assessmentQuestion || (console.log("getAssessmentDetails========================>"), await
|
|
938
|
+
a.initialize(S.data), a.assessmentQuestion || (console.log("getAssessmentDetails========================>"), await se()), t.value = !1, a.simulationSkill === "937e84ef-e95d-4327-9afe-e7be2bf420eb" ? a.skillNameForSimulation = "GenpactNext" : a.simulationSkill === "32b7d6d8-f7a8-40a0-ab84-8784f25897ea" || a.simulationSkill === "32b7d6d8-f7a8-40a0-ab84-8784f25897ef" ? a.skillNameForSimulation = "Agentic AI" : a.simulationSkill === "7bd03cb6-79ad-4e2a-8a8b-88dc16147369" ? a.skillNameForSimulation = "Data" : a.simulationSkill === "25f8e44f-b83e-42d6-a168-b0e1fb83b26a" && (a.skillNameForSimulation = "SLDP Simulation");
|
|
912
939
|
} catch (S) {
|
|
913
|
-
if (console.error(S), t.value = !1,
|
|
940
|
+
if (console.error(S), t.value = !1, $.isAxiosError(S) && ((C = S.response) != null && C.status) || S && typeof S == "object" && "response" in S && S.response && typeof S.response == "object" && "status" in S.response && S.response.status) {
|
|
914
941
|
const k = S;
|
|
915
|
-
if (console.log("Error found!"), console.error((N = k.response) == null ? void 0 : N.data), ((
|
|
916
|
-
|
|
942
|
+
if (console.log("Error found!"), console.error((N = k.response) == null ? void 0 : N.data), ((M = k.response) == null ? void 0 : M.status) === 424 || ((L = k.response) == null ? void 0 : L.status) === 425 || ((I = k.response) == null ? void 0 : I.status) === 400) {
|
|
943
|
+
x.value = (D = k.response) == null ? void 0 : D.status, console.log("errorCode value", x.value), b.value = !0;
|
|
917
944
|
return;
|
|
918
945
|
}
|
|
919
|
-
|
|
946
|
+
u.setError(((q = k.response) == null ? void 0 : q.data).message);
|
|
920
947
|
} else
|
|
921
|
-
|
|
948
|
+
u.setError("There was an issue, please contact helpmate");
|
|
922
949
|
}
|
|
923
|
-
},
|
|
924
|
-
var C, N,
|
|
950
|
+
}, se = async () => {
|
|
951
|
+
var C, N, M, L, I, D, q, S, k, U, ye, we, _e, Ae, ke, Se, Ce, Ne, Le, Pe, Te, Fe, ze, Me, Re, De, je, Ee, Ie, qe, He, Be, $e, Ve, Qe, Ge, Oe, Xe, We, Ue, Je, Ke, Ze, Ye, et, tt, st, at;
|
|
925
952
|
console.log("Start getAssessmentDetails");
|
|
926
953
|
try {
|
|
927
|
-
|
|
928
|
-
const n = await me(
|
|
929
|
-
|
|
930
|
-
const Q = (
|
|
931
|
-
if (a.mcqType = (
|
|
954
|
+
O === "prod" ? g = `https://api-v2.genpact.com/api/my-profile/assessment-master/getAssessmentDetailsById?id=${a.simulationSkill}` : g = `https://api-v2-dev.genpact.com/api/my-profile/assessment-master/getAssessmentDetailsById?id=${a.simulationSkill}`;
|
|
955
|
+
const n = await me(g);
|
|
956
|
+
y.value = (N = (C = n == null ? void 0 : n.data) == null ? void 0 : C.data) == null ? void 0 : N.name, a.skillNameForSimulation = y.value, a.generatedPrompt = (L = (M = n == null ? void 0 : n.data) == null ? void 0 : M.data) == null ? void 0 : L.generatedPrompt, a.assessmentType = (D = (I = n == null ? void 0 : n.data) == null ? void 0 : I.data) == null ? void 0 : D.assessmentType, o.value = (S = (q = n == null ? void 0 : n.data) == null ? void 0 : q.data) == null ? void 0 : S.status, A.value = (U = (k = n == null ? void 0 : n.data) == null ? void 0 : k.data) == null ? void 0 : U.editMode, a.empSeniority = (we = (ye = n == null ? void 0 : n.data) == null ? void 0 : ye.data) == null ? void 0 : we.empSeniority, a.functionRole = (Ae = (_e = n == null ? void 0 : n.data) == null ? void 0 : _e.data) == null ? void 0 : Ae.functionRole, h = (Se = (ke = n == null ? void 0 : n.data) == null ? void 0 : ke.data) == null ? void 0 : Se.accessBand, c = (Ne = (Ce = n == null ? void 0 : n.data) == null ? void 0 : Ce.data) == null ? void 0 : Ne.accessOhrList;
|
|
957
|
+
const Q = (Pe = (Le = n == null ? void 0 : n.data) == null ? void 0 : Le.data) == null ? void 0 : Pe.createdBy;
|
|
958
|
+
if (a.mcqType = (Fe = (Te = n == null ? void 0 : n.data) == null ? void 0 : Te.data) == null ? void 0 : Fe.mcqTypes, a.storeFinalFeedback = (Me = (ze = n == null ? void 0 : n.data) == null ? void 0 : ze.data) == null ? void 0 : Me.storeFinalFeedback, a.storeFinalScore = (De = (Re = n == null ? void 0 : n.data) == null ? void 0 : Re.data) == null ? void 0 : De.storeFinalScore, o.value === "inactive")
|
|
932
959
|
s.value = !0;
|
|
933
960
|
else if (o.value === "draft")
|
|
934
|
-
|
|
935
|
-
else if (o.value === "active" &&
|
|
936
|
-
|
|
937
|
-
const w = await me(
|
|
938
|
-
a.generatedPrompt = (
|
|
961
|
+
v.value !== nt.DRAFT && (s.value = !0);
|
|
962
|
+
else if (o.value === "active" && A.value && v.value === nt.DRAFT) {
|
|
963
|
+
O === "prod" ? g = `https://api-v2.genpact.com/api/my-profile/assessment-master/getDraftAssessmentDetailsById?assessmentId=${a.simulationSkill}` : g = `https://api-v2-dev.genpact.com/api/my-profile/assessment-master/getDraftAssessmentDetailsById?assessmentId=${a.simulationSkill}`;
|
|
964
|
+
const w = await me(g);
|
|
965
|
+
a.generatedPrompt = (Ee = (je = w == null ? void 0 : w.data) == null ? void 0 : je.data) == null ? void 0 : Ee.generatedPrompt, a.assessmentType = (qe = (Ie = w == null ? void 0 : w.data) == null ? void 0 : Ie.data) == null ? void 0 : qe.assessmentType, a.empSeniority = (Be = (He = w == null ? void 0 : w.data) == null ? void 0 : He.data) == null ? void 0 : Be.empSeniority, a.functionRole = (Ve = ($e = w == null ? void 0 : w.data) == null ? void 0 : $e.data) == null ? void 0 : Ve.functionRole, a.storeFinalFeedback = (Ge = (Qe = w == null ? void 0 : w.data) == null ? void 0 : Qe.data) == null ? void 0 : Ge.storeFinalFeedback, a.storeFinalScore = (Xe = (Oe = w == null ? void 0 : w.data) == null ? void 0 : Oe.data) == null ? void 0 : Xe.storeFinalScore, h = (Ue = (We = w == null ? void 0 : w.data) == null ? void 0 : We.data) == null ? void 0 : Ue.accessBand, c = (Ke = (Je = w == null ? void 0 : w.data) == null ? void 0 : Je.data) == null ? void 0 : Ke.accessOhrList;
|
|
939
966
|
}
|
|
940
|
-
const
|
|
941
|
-
if (Q === (a == null ? void 0 : a.ohr) ||
|
|
967
|
+
const mt = a == null ? void 0 : a.band_code, ot = (Ze = h == null ? void 0 : h.split(",")) == null ? void 0 : Ze.map((w) => w.trim());
|
|
968
|
+
if (Q === (a == null ? void 0 : a.ohr) || ee.includes(a == null ? void 0 : a.ohr))
|
|
942
969
|
console.log("User has access to this assessment.");
|
|
943
970
|
else {
|
|
944
|
-
if (
|
|
971
|
+
if (ot.length === 0 && c.length === 0)
|
|
945
972
|
throw console.log("Both bands and exceptionOHR are empty. Access denied."), {
|
|
946
973
|
response: {
|
|
947
974
|
status: 424,
|
|
@@ -950,7 +977,7 @@ const Va = /* @__PURE__ */ U($a, [["__scopeId", "data-v-6c0980b5"]]), ee = (h) =
|
|
|
950
977
|
}
|
|
951
978
|
}
|
|
952
979
|
};
|
|
953
|
-
if (
|
|
980
|
+
if (ot.includes(mt) || c.includes(a == null ? void 0 : a.ohr))
|
|
954
981
|
console.log("User has access to this assessment.");
|
|
955
982
|
else
|
|
956
983
|
throw console.log("User does not have access to this assessment."), {
|
|
@@ -964,71 +991,71 @@ const Va = /* @__PURE__ */ U($a, [["__scopeId", "data-v-6c0980b5"]]), ee = (h) =
|
|
|
964
991
|
}
|
|
965
992
|
console.log("end getAssessmentDetails");
|
|
966
993
|
} catch (n) {
|
|
967
|
-
if (console.error(n), t.value = !1,
|
|
994
|
+
if (console.error(n), t.value = !1, $.isAxiosError(n) && ((Ye = n.response) != null && Ye.status) || n && typeof n == "object" && "response" in n && n.response && typeof n.response == "object" && "status" in n.response && n.response.status) {
|
|
968
995
|
const Q = n;
|
|
969
|
-
if (console.log("Error found!"), console.error((
|
|
970
|
-
|
|
996
|
+
if (console.log("Error found!"), console.error((et = Q.response) == null ? void 0 : et.data), ((tt = Q.response) == null ? void 0 : tt.status) === 424 || ((st = Q.response) == null ? void 0 : st.status) === 425) {
|
|
997
|
+
b.value = !0;
|
|
971
998
|
return;
|
|
972
999
|
}
|
|
973
|
-
|
|
1000
|
+
u.setError(((at = Q.response) == null ? void 0 : at.data).message);
|
|
974
1001
|
} else
|
|
975
|
-
|
|
1002
|
+
u.setError("There was an issue, please contact helpmate");
|
|
976
1003
|
}
|
|
977
|
-
},
|
|
978
|
-
var C, N,
|
|
1004
|
+
}, ae = async () => {
|
|
1005
|
+
var C, N, M, L, I, D, q, S;
|
|
979
1006
|
try {
|
|
980
|
-
|
|
981
|
-
const k = await
|
|
1007
|
+
O === "prod" ? d.value = "https://api-v2.genpact.com/api/delphi/v2/myprofile" : d.value = "https://api-v2-dev.genpact.com/api/delphi/v2/myprofile";
|
|
1008
|
+
const k = await $({
|
|
982
1009
|
url: d.value,
|
|
983
1010
|
headers: {
|
|
984
|
-
authorization: `Bearer ${
|
|
1011
|
+
authorization: `Bearer ${_}`,
|
|
985
1012
|
"content-type": "application/json"
|
|
986
1013
|
},
|
|
987
1014
|
method: "get"
|
|
988
1015
|
});
|
|
989
|
-
a.genomeFunctionValue = (
|
|
1016
|
+
a.genomeFunctionValue = (M = (N = (C = k == null ? void 0 : k.data) == null ? void 0 : C.role_function) == null ? void 0 : N.function) == null ? void 0 : M.name, a.genomeRoleValue = (D = (I = (L = k == null ? void 0 : k.data) == null ? void 0 : L.role_function) == null ? void 0 : I.role) == null ? void 0 : D.name;
|
|
990
1017
|
} catch (k) {
|
|
991
|
-
if (console.error(k), t.value = !1,
|
|
992
|
-
const
|
|
993
|
-
console.log("Error found!"), console.error((
|
|
1018
|
+
if (console.error(k), t.value = !1, $.isAxiosError(k)) {
|
|
1019
|
+
const U = k;
|
|
1020
|
+
console.log("Error found!"), console.error((q = U.response) == null ? void 0 : q.data), u.setError(((S = U.response) == null ? void 0 : S.data).message);
|
|
994
1021
|
} else
|
|
995
|
-
|
|
1022
|
+
u.setError("There was an issue, please contact helpmate");
|
|
996
1023
|
}
|
|
997
|
-
},
|
|
1024
|
+
}, oe = () => {
|
|
998
1025
|
var C;
|
|
999
|
-
(C =
|
|
1026
|
+
(C = f.value) == null || C.sendQuestion();
|
|
1000
1027
|
};
|
|
1001
|
-
return (C, N) => (
|
|
1002
|
-
|
|
1003
|
-
default:
|
|
1004
|
-
e("div",
|
|
1005
|
-
|
|
1006
|
-
|
|
1028
|
+
return (C, N) => (i(), r("section", null, [
|
|
1029
|
+
T(pe, { "is-visible": b.value }, {
|
|
1030
|
+
default: ge(() => [
|
|
1031
|
+
e("div", Wa, [
|
|
1032
|
+
x.value === 424 || x.value === "425" ? (i(), r("div", Ua, Za)) : z("", !0),
|
|
1033
|
+
x.value === 400 ? (i(), r("div", Ya, so)) : z("", !0)
|
|
1007
1034
|
])
|
|
1008
1035
|
]),
|
|
1009
1036
|
_: 1
|
|
1010
1037
|
}, 8, ["is-visible"]),
|
|
1011
1038
|
e("div", null, [
|
|
1012
|
-
t.value ? (
|
|
1013
|
-
e("div",
|
|
1014
|
-
|
|
1039
|
+
t.value ? (i(), wt(pt, { key: 0 })) : (i(), r("main", ao, [
|
|
1040
|
+
e("div", oo, [
|
|
1041
|
+
T(Mt)
|
|
1015
1042
|
]),
|
|
1016
|
-
|
|
1017
|
-
e("div",
|
|
1018
|
-
e("div",
|
|
1019
|
-
e("div",
|
|
1020
|
-
|
|
1043
|
+
no,
|
|
1044
|
+
e("div", io, [
|
|
1045
|
+
e("div", lo, [
|
|
1046
|
+
e("div", ro, [
|
|
1047
|
+
T(js, { onCallQuestion: oe }),
|
|
1021
1048
|
e("div", {
|
|
1022
|
-
class:
|
|
1049
|
+
class: X(l(a).showVoiceComponent === !0 ? "mt-[160px]" : "mt-[120px]")
|
|
1023
1050
|
}, null, 2)
|
|
1024
1051
|
]),
|
|
1025
|
-
|
|
1026
|
-
|
|
1052
|
+
l(a).assessmentQuestion ? (i(), r("div", co, [
|
|
1053
|
+
T(La, {
|
|
1027
1054
|
ref_key: "newQuestionRef",
|
|
1028
|
-
ref:
|
|
1055
|
+
ref: f
|
|
1029
1056
|
}, null, 512)
|
|
1030
|
-
])) : (
|
|
1031
|
-
|
|
1057
|
+
])) : (i(), r("div", uo, [
|
|
1058
|
+
T(Xa)
|
|
1032
1059
|
]))
|
|
1033
1060
|
])
|
|
1034
1061
|
])
|
|
@@ -1037,7 +1064,7 @@ const Va = /* @__PURE__ */ U($a, [["__scopeId", "data-v-6c0980b5"]]), ee = (h) =
|
|
|
1037
1064
|
]));
|
|
1038
1065
|
}
|
|
1039
1066
|
});
|
|
1040
|
-
const
|
|
1067
|
+
const _o = /* @__PURE__ */ W(mo, [["__scopeId", "data-v-2f3d502d"]]);
|
|
1041
1068
|
export {
|
|
1042
|
-
|
|
1069
|
+
_o as default
|
|
1043
1070
|
};
|