@genpact/genome.mfe.mgtwin-app 1.1.334-alpha → 1.1.335-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-77879961.mjs} +4 -4
- package/dist/{AssessmentSimulation-f1a2a2fd.mjs → AssessmentSimulation-8c7f6d37.mjs} +442 -421
- package/dist/{EditSkillAdminData-8ec9d6d1.mjs → EditSkillAdminData-a60df47f.mjs} +2 -2
- package/dist/{EditSkillData-9bae2ea2.mjs → EditSkillData-7cd63c04.mjs} +2 -2
- package/dist/{HomeView-abe908c6.mjs → HomeView-4b9a9899.mjs} +5 -5
- package/dist/{Loading-b6235612.mjs → Loading-67bec750.mjs} +1 -1
- package/dist/{LoadingSimulation-3bad9122.mjs → LoadingSimulation-cf50d262.mjs} +1 -1
- package/dist/{Modal-b1fa5450.mjs → Modal-58db3acb.mjs} +1 -1
- package/dist/{PaperAirplaneIcon-3cf8bb48.mjs → PaperAirplaneIcon-38b9f316.mjs} +1 -1
- package/dist/{PromptTesting-5539725e.mjs → PromptTesting-5dbd9814.mjs} +3 -3
- package/dist/{SkillAutomation-e66cfd2d.mjs → SkillAutomation-bda8c9c7.mjs} +3 -3
- package/dist/{SkillData-d4bffa31.mjs → SkillData-bd44a6be.mjs} +3 -3
- package/dist/{Testcase-fd73186c.mjs → Testcase-ac672c60.mjs} +3 -3
- package/dist/{UnderMaintenance-62a65aa3.mjs → UnderMaintenance-1c77f1ec.mjs} +1 -1
- package/dist/{VoiceTestcase-34d267dd.mjs → VoiceTestcase-0887635a.mjs} +52 -52
- package/dist/{XMarkIcon-f626c953.mjs → XMarkIcon-933bd730.mjs} +1 -1
- package/dist/{api-344eaaaa.mjs → api-6f243fe1.mjs} +1 -1
- package/dist/{main-09820a10.mjs → main-b8626228.mjs} +1441 -1441
- 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-15a48bfb.mjs} +114 -114
- package/package.json +1 -1
|
@@ -1,100 +1,119 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { _ as gt, a as
|
|
3
|
-
import { d as M, r as
|
|
1
|
+
import { _ as ht, a as dt, L as ft } from "./LoadingSimulation-cf50d262.mjs";
|
|
2
|
+
import { _ as gt, a as he, Q as O, M as nt } from "./Modal-58db3acb.mjs";
|
|
3
|
+
import { d as M, r as m, H as X, o as l, c as r, a as e, u as B, y as fe, h as T, s as ge, t as H, b as i, f as z, i as P, I as le, F as ve, e as be, w as xe, J as vt, p as Z, g as Y, G as re, C as de, z as bt, K as xt, k as ce, n as W, q as V, m as ct, A as yt, L as ut, l as wt } from "./main-b8626228.mjs";
|
|
4
4
|
import { _ as U } from "./_plugin-vue_export-helper-dad06003.mjs";
|
|
5
|
-
import { p as K, g as me } from "./api-
|
|
6
|
-
import { i as D, s as
|
|
7
|
-
import { r as
|
|
5
|
+
import { p as K, g as me } from "./api-6f243fe1.mjs";
|
|
6
|
+
import { i as D, s as _t, a as At, b as it, c as pe, r as G, d as ie, e as kt, p as lt, f as rt } from "./voiceServices-15a48bfb.mjs";
|
|
7
|
+
import { r as St } from "./XMarkIcon-933bd730.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
18
|
src: gt,
|
|
19
19
|
alt: "Aiguru Logo"
|
|
20
|
-
}, null, -1),
|
|
21
|
-
|
|
22
|
-
],
|
|
20
|
+
}, null, -1), zt = [
|
|
21
|
+
Ft
|
|
22
|
+
], Rt = /* @__PURE__ */ M({
|
|
23
23
|
__name: "headerSimulation",
|
|
24
|
-
setup(
|
|
25
|
-
const
|
|
26
|
-
return X === "prod" ?
|
|
24
|
+
setup(p) {
|
|
25
|
+
const s = m(""), t = m("");
|
|
26
|
+
return X === "prod" ? s.value = "https://genome.genpact.com" : s.value = "https://genome-dev.genpact.com", X === "prod" ? t.value = "https://genome.genpact.com/#aiguru" : t.value = "https://genome-dev.genpact.com/#aiguru", (g, a) => (l(), r("nav", Ct, [
|
|
27
27
|
e("a", {
|
|
28
28
|
class: "px-2 md:px-0 lg:px-0",
|
|
29
|
-
href:
|
|
29
|
+
href: s.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
|
-
href:
|
|
34
|
+
href: t.value,
|
|
35
35
|
target: "_blank"
|
|
36
|
-
},
|
|
36
|
+
}, zt, 8, Tt)
|
|
37
37
|
]));
|
|
38
38
|
}
|
|
39
|
-
}),
|
|
39
|
+
}), Mt = { class: "max-h-screen overflow-auto md:p-6 p-3 flex flex-col items-center justify-center gap-4 text-[#161916] fontFormattingAMA" }, jt = /* @__PURE__ */ e("div", { class: "text-lg md:text-xl font-[700]" }, "Please Note Before You Begin", -1), Dt = /* @__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), qt = { class: "max-h-screen overflow-auto md:p-6 p-3 flex flex-col items-center justify-center gap-4 text-[#161916] fontFormattingAMA" }, Et = /* @__PURE__ */ e("div", { class: "text-lg md:text-xl font-[700]" }, "Please Note Before You Begin", -1), It = /* @__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__ */ M({
|
|
83
86
|
__name: "greetingsSimulation",
|
|
84
87
|
emits: ["callQuestion"],
|
|
85
|
-
setup(
|
|
86
|
-
const
|
|
87
|
-
|
|
88
|
-
},
|
|
89
|
-
return (
|
|
90
|
-
|
|
91
|
-
default:
|
|
92
|
-
e("div",
|
|
93
|
-
Mt,
|
|
88
|
+
setup(p, { emit: s }) {
|
|
89
|
+
const t = B(), g = m(!1), a = m(!1), c = () => {
|
|
90
|
+
t.simulationSkill === "7bd03cb6-79ad-4e2a-8a8b-88dc16147369" && (t.question = "Let's start", t.beginFlag = !1, g.value = !0), t.simulationSkill === "25f8e44f-b83e-42d6-a168-b0e1fb83b26a" ? (t.question = "Let's start", t.beginFlag = !1, a.value = !0) : (t.beginFlag = !1, t.question = "Let's start", s("callQuestion"));
|
|
91
|
+
}, _ = `Hi, get ready to test your ${t.skillNameForSimulation || "Unknown"} knowledge! Here’s what to expect:`, x = ` Hi ${t.learnerName || "Expert"}, and welcome!`, o = ` Hi, ${t.learnerName || "Expert"}. Get ready to test your ${t.skillNameForSimulation || "Unknown"} knowledge! Here’s what to expect:`, b = fe(() => ["32b7d6d8-f7a8-40a0-ab84-8784f25897ef"].includes(t.simulationSkill) ? _ : ["7bd03cb6-79ad-4e2a-8a8b-88dc16147369"].includes(t.simulationSkill) ? x : o), A = `Hi, get ready to test your ${t.skillNameForSimulation || "Unknown"} knowledge! Here’s what to expect:`, h = ` AI Guru will ask you a few questions on '${t.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(t.simulationSkill) ? A : ["7bd03cb6-79ad-4e2a-8a8b-88dc16147369"].includes(t.simulationSkill) ? Ot : h);
|
|
92
|
+
return (v, f) => (l(), r("section", null, [
|
|
93
|
+
T(he, { "is-visible": g.value }, {
|
|
94
|
+
default: ge(() => [
|
|
95
|
+
e("div", Mt, [
|
|
94
96
|
jt,
|
|
97
|
+
Dt,
|
|
98
|
+
e("button", {
|
|
99
|
+
onClick: f[0] || (f[0] = (u) => {
|
|
100
|
+
g.value = !1, s("callQuestion");
|
|
101
|
+
}),
|
|
102
|
+
type: "button",
|
|
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"
|
|
104
|
+
}, " Proceed ")
|
|
105
|
+
])
|
|
106
|
+
]),
|
|
107
|
+
_: 1
|
|
108
|
+
}, 8, ["is-visible"]),
|
|
109
|
+
T(he, { "is-visible": a.value }, {
|
|
110
|
+
default: ge(() => [
|
|
111
|
+
e("div", qt, [
|
|
112
|
+
Et,
|
|
113
|
+
It,
|
|
95
114
|
e("button", {
|
|
96
|
-
onClick: f[
|
|
97
|
-
|
|
115
|
+
onClick: f[1] || (f[1] = (u) => {
|
|
116
|
+
a.value = !1, s("callQuestion");
|
|
98
117
|
}),
|
|
99
118
|
type: "button",
|
|
100
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"
|
|
@@ -103,51 +122,51 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
103
122
|
]),
|
|
104
123
|
_: 1
|
|
105
124
|
}, 8, ["is-visible"]),
|
|
106
|
-
e("div",
|
|
107
|
-
e("div",
|
|
108
|
-
e("div",
|
|
109
|
-
e("div",
|
|
125
|
+
e("div", Ht, [
|
|
126
|
+
e("div", Bt, [
|
|
127
|
+
e("div", $t, H(b.value), 1),
|
|
128
|
+
e("div", Vt, H(d.value), 1)
|
|
110
129
|
])
|
|
111
130
|
]),
|
|
112
|
-
i(
|
|
131
|
+
i(t).beginFlag ? (l(), r("span", Qt, [
|
|
113
132
|
e("button", {
|
|
114
133
|
type: "button",
|
|
115
134
|
id: "button",
|
|
116
|
-
onClick:
|
|
135
|
+
onClick: c,
|
|
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+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBh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HBNedt4OPw0u28SeLUTWoZz5WzG47z/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=", mt = (p) => (Z("data-v-cc5db4a2"), p = p(), Y(), 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__ */ mt(() => /* @__PURE__ */ e("div", { class: "mb-4" }, " Add Agentic AI to your Digital Skills on Genome.ai and start mastering AI today! ", -1)), ds = /* @__PURE__ */ mt(() => /* @__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]" }, ps = /* @__PURE__ */ M({
|
|
151
170
|
__name: "responseSimulation",
|
|
152
171
|
props: {
|
|
153
172
|
question: {
|
|
@@ -177,17 +196,17 @@ 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
|
|
199
|
+
setup(p, { emit: s }) {
|
|
200
|
+
const t = p, g = m([]), a = m(!1), c = B(), _ = m("");
|
|
182
201
|
let x = [], o = "";
|
|
183
|
-
const
|
|
202
|
+
const b = async () => {
|
|
184
203
|
x = o.split(""), _.value = "";
|
|
185
204
|
for (let d = 0; d < x.length; d++)
|
|
186
|
-
_.value += x[d],
|
|
205
|
+
_.value += x[d], t.answer.includes("Feedback and Assessment") ? (console.log("Feedback and Assessment found"), o.length - 5 > x.length && d % 30 && s("char-typed")) : d % 30 && s("char-typed"), await new Promise((v) => setTimeout(v, 60));
|
|
187
206
|
}, A = () => {
|
|
188
207
|
c.isRestart = !0, c.searchBoxdisable = !1, c.showVoiceComponent = !0, c.showSelectTypeConvesation = !1, c.showModelToggle = !0, c.isSpeechToggle = !1;
|
|
189
|
-
},
|
|
190
|
-
const d =
|
|
208
|
+
}, h = fe(() => {
|
|
209
|
+
const d = t.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>'
|
|
193
212
|
).replace(
|
|
@@ -219,17 +238,17 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
219
238
|
'<div style="font-size: 16px; font-weight: bold;">Model Solution</div>'
|
|
220
239
|
);
|
|
221
240
|
(d.includes("Thank you for your participation!") || d.includes("Thank you for your participation")) && (c.searchBoxdisable = !1, a.value = !0), (d.includes("BEGIN ROLE PLAY") || d.includes("BEGIN ROLE PLAY.")) && (c.showSelectTypeConvesation = !0);
|
|
222
|
-
const
|
|
241
|
+
const v = /\[([^\]]+)\]\((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(v, (f, u, y) => `<a href="https://genome.genpact.com/#aiguru" target="_blank" style="color: blue; text-decoration: underline; cursor:pointer;">${u}</a>`);
|
|
226
245
|
} else
|
|
227
|
-
return d.replace(
|
|
246
|
+
return d.replace(v, (f, u, y) => `<a href="${y}" target="_blank" rel="noopener noreferrer" style="color: blue; text-decoration: underline;">${u}</a>`);
|
|
228
247
|
});
|
|
229
248
|
return le(
|
|
230
|
-
() =>
|
|
249
|
+
() => t.answer,
|
|
231
250
|
() => {
|
|
232
|
-
let d =
|
|
251
|
+
let d = t.answer.replace(/[*#]/g, "").replace(
|
|
233
252
|
/Assessment Rating & Feedback/g,
|
|
234
253
|
'<div style="font-size: 26px; font-weight: bold; text-decoration: underline;">Rating & Feedback</div>'
|
|
235
254
|
).replace(
|
|
@@ -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 v = /\[([^\]]+)\]\((https?:\/\/[^\s]+)\)/g;
|
|
280
|
+
d.includes("AI Guru") ? d = d.replace(v, (f, u, y) => `<a href="https://genome.genpact.com/#aiguru" target="_blank" style="color: blue; text-decoration: underline; cursor:pointer;">${u}</a>`) : d = d.replace(v, (f, u, y) => `<a href="${y}" target="_blank" rel="noopener noreferrer" style="color: blue; text-decoration: underline;">${u}</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, c.showVoiceComponent && b();
|
|
262
281
|
},
|
|
263
282
|
{ immediate: !0 }
|
|
264
283
|
), le(g, (d) => {
|
|
265
284
|
c.question = (d ?? []).join(", ");
|
|
266
|
-
}), (d,
|
|
267
|
-
e("div",
|
|
268
|
-
i(c).simulationSkill === "7bd03cb6-79ad-4e2a-8a8b-88dc16147369" && i(c).showVoiceComponent === !0 && i(c).conversations.length - 1 ===
|
|
285
|
+
}), (d, v) => (l(), r("div", Ut, [
|
|
286
|
+
e("div", Jt, [
|
|
287
|
+
i(c).simulationSkill === "7bd03cb6-79ad-4e2a-8a8b-88dc16147369" && i(c).showVoiceComponent === !0 && i(c).conversations.length - 1 === t.ansId && !t.answer.includes("BEGIN ROLE PLAY") ? (l(), r("span", {
|
|
269
288
|
key: 0,
|
|
270
289
|
class: "fontFormattingAMA answer-link",
|
|
271
290
|
innerHTML: _.value
|
|
272
|
-
}, null, 8,
|
|
291
|
+
}, null, 8, Kt)) : (l(), r("span", {
|
|
273
292
|
key: 1,
|
|
274
293
|
class: "fontFormattingAMA answer-link",
|
|
275
|
-
innerHTML:
|
|
276
|
-
}, null, 8,
|
|
294
|
+
innerHTML: h.value
|
|
295
|
+
}, null, 8, Zt)),
|
|
277
296
|
e("div", null, [
|
|
278
|
-
|
|
279
|
-
(l(!0), r(
|
|
280
|
-
key:
|
|
297
|
+
p.optionsArray.length && i(c).mcqType === "multi_choice" ? (l(), r("div", Yt, [
|
|
298
|
+
(l(!0), r(ve, null, be(p.optionsArray, (f, u) => (l(), r("div", {
|
|
299
|
+
key: u,
|
|
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: i(c).conversations.length - 1 !==
|
|
290
|
-
name:
|
|
291
|
-
}, null, 8,
|
|
306
|
+
value: f,
|
|
307
|
+
"onUpdate:modelValue": v[0] || (v[0] = (y) => g.value = y),
|
|
308
|
+
disabled: i(c).conversations.length - 1 !== t.ansId,
|
|
309
|
+
name: h.value
|
|
310
|
+
}, null, 8, ts), [
|
|
292
311
|
[vt, g.value]
|
|
293
312
|
]),
|
|
294
|
-
e("label",
|
|
313
|
+
e("label", ss, H(f), 1)
|
|
295
314
|
])
|
|
296
315
|
]))), 128))
|
|
297
|
-
])) :
|
|
298
|
-
(l(!0), r(
|
|
299
|
-
key:
|
|
316
|
+
])) : p.optionsArray.length ? (l(), r("div", as, [
|
|
317
|
+
(l(!0), r(ve, null, be(p.optionsArray, (f, u) => (l(), r("div", {
|
|
318
|
+
key: u,
|
|
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: (y) => i(c).question = String(
|
|
307
|
-
disabled: i(c).conversations.length - 1 !==
|
|
308
|
-
name:
|
|
309
|
-
}, null, 8,
|
|
310
|
-
e("label",
|
|
325
|
+
onClick: (y) => i(c).question = String(p.optionsArray[u]),
|
|
326
|
+
disabled: i(c).conversations.length - 1 !== t.ansId,
|
|
327
|
+
name: h.value
|
|
328
|
+
}, null, 8, ns),
|
|
329
|
+
e("label", is, H(f), 1)
|
|
311
330
|
])
|
|
312
331
|
]))), 128))
|
|
313
332
|
])) : z("", !0)
|
|
314
333
|
]),
|
|
315
|
-
a.value && i(c).simulationSkill === "32b7d6d8-f7a8-40a0-ab84-8784f25897ef" ? (l(), r("div",
|
|
316
|
-
i(c).isSpeechToggle && i(c).showSelectTypeConvesation && i(c).simulationSkill === "7bd03cb6-79ad-4e2a-8a8b-88dc16147369" && i(c).conversations.length - 1 ===
|
|
317
|
-
e("div",
|
|
334
|
+
a.value && i(c).simulationSkill === "32b7d6d8-f7a8-40a0-ab84-8784f25897ef" ? (l(), r("div", ls, cs)) : z("", !0),
|
|
335
|
+
i(c).isSpeechToggle && i(c).showSelectTypeConvesation && i(c).simulationSkill === "7bd03cb6-79ad-4e2a-8a8b-88dc16147369" && i(c).conversations.length - 1 === t.ansId ? (l(), r("div", us, [
|
|
336
|
+
e("div", ms, [
|
|
318
337
|
e("button", {
|
|
319
338
|
type: "button",
|
|
320
339
|
id: "button",
|
|
321
|
-
onClick:
|
|
340
|
+
onClick: v[1] || (v[1] = (f) => A()),
|
|
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 hs = /* @__PURE__ */ U(ps, [["__scopeId", "data-v-cc5db4a2"]]), fs = { class: "flex justify-end items-end py-3" }, gs = { class: "max-w-[80%]" }, vs = { class: "fontFormattingAMA w-fit text-[0.8125rem] md:text-[0.9375rem] text-white bg-genpact-blue-box leading-6 p-3 rounded-lg" }, bs = /* @__PURE__ */ M({
|
|
331
350
|
__name: "learnerSimulation",
|
|
332
351
|
props: {
|
|
333
352
|
question: {
|
|
@@ -339,21 +358,21 @@ const cs = /* @__PURE__ */ U(ds, [["__scopeId", "data-v-cc5db4a2"]]), us = { cla
|
|
|
339
358
|
default: !0
|
|
340
359
|
}
|
|
341
360
|
},
|
|
342
|
-
setup(
|
|
343
|
-
return (
|
|
344
|
-
e("div",
|
|
345
|
-
e("div",
|
|
361
|
+
setup(p) {
|
|
362
|
+
return (s, t) => (l(), r("div", fs, [
|
|
363
|
+
e("div", gs, [
|
|
364
|
+
e("div", vs, H(p.question), 1)
|
|
346
365
|
])
|
|
347
366
|
]));
|
|
348
367
|
}
|
|
349
|
-
}),
|
|
368
|
+
}), xs = (p) => (Z("data-v-347ad6de"), p = p(), Y(), 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
369
|
/* @__PURE__ */ e("span", null, "."),
|
|
351
370
|
/* @__PURE__ */ e("span", null, "."),
|
|
352
371
|
/* @__PURE__ */ e("span", null, ".")
|
|
353
|
-
], -1)),
|
|
372
|
+
], -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__ */ M({
|
|
354
373
|
__name: "LoadingResponse",
|
|
355
|
-
setup(
|
|
356
|
-
const
|
|
374
|
+
setup(p) {
|
|
375
|
+
const s = m("Generating response"), t = m([
|
|
357
376
|
"This may take a few seconds",
|
|
358
377
|
"Fetching the best response for you",
|
|
359
378
|
"Thinking... give me a moment",
|
|
@@ -363,42 +382,42 @@ const cs = /* @__PURE__ */ U(ds, [["__scopeId", "data-v-cc5db4a2"]]), us = { cla
|
|
|
363
382
|
"Compiling a response for you"
|
|
364
383
|
]);
|
|
365
384
|
return setTimeout(() => {
|
|
366
|
-
const g = Math.floor(Math.random() *
|
|
367
|
-
|
|
368
|
-
}, 15e3), (g, a) => (l(), r("div",
|
|
369
|
-
e("div",
|
|
370
|
-
e("div",
|
|
371
|
-
|
|
385
|
+
const g = Math.floor(Math.random() * t.value.length);
|
|
386
|
+
s.value = t.value[g];
|
|
387
|
+
}, 15e3), (g, a) => (l(), r("div", ys, [
|
|
388
|
+
e("div", ws, [
|
|
389
|
+
e("div", _s, H(s.value), 1),
|
|
390
|
+
As
|
|
372
391
|
]),
|
|
373
|
-
|
|
392
|
+
ks
|
|
374
393
|
]));
|
|
375
394
|
}
|
|
376
395
|
});
|
|
377
|
-
const
|
|
396
|
+
const Cs = /* @__PURE__ */ U(Ss, [["__scopeId", "data-v-347ad6de"]]), Ns = { class: "flex mx-auto justify-end items-end py-3" }, Ls = { class: "max-w-[80%]" }, Ps = {
|
|
378
397
|
key: 0,
|
|
379
398
|
class: "fontFormattingAMA w-fit text-[0.8125rem] md:text-[0.9375rem] text-white bg-genpact-blue-box leading-6 p-3 rounded-lg"
|
|
380
|
-
},
|
|
399
|
+
}, Ts = /* @__PURE__ */ M({
|
|
381
400
|
__name: "QuestionStreaming",
|
|
382
|
-
setup(
|
|
383
|
-
const
|
|
384
|
-
return (
|
|
385
|
-
e("div",
|
|
386
|
-
i(
|
|
401
|
+
setup(p) {
|
|
402
|
+
const s = B();
|
|
403
|
+
return (t, g) => (l(), r("div", Ns, [
|
|
404
|
+
e("div", Ls, [
|
|
405
|
+
i(s).userSpeechText.toLowerCase().includes("play") && i(s).userSpeechText.length < 10 ? z("", !0) : (l(), r("div", Ps, H(i(s).userSpeechText), 1))
|
|
387
406
|
])
|
|
388
407
|
]));
|
|
389
408
|
}
|
|
390
|
-
}),
|
|
409
|
+
}), Fs = { key: 0 }, zs = { key: 1 }, Rs = {
|
|
391
410
|
key: 0,
|
|
392
411
|
class: "flex"
|
|
393
|
-
},
|
|
412
|
+
}, Ms = {
|
|
394
413
|
key: 1,
|
|
395
414
|
name: "askQuestion"
|
|
396
|
-
},
|
|
415
|
+
}, js = /* @__PURE__ */ M({
|
|
397
416
|
__name: "conversationSimulation",
|
|
398
|
-
setup(
|
|
399
|
-
let
|
|
400
|
-
|
|
401
|
-
const g = B(), a =
|
|
417
|
+
setup(p) {
|
|
418
|
+
let s = m(""), t = m("");
|
|
419
|
+
s.value = '<a style="color:#00AECF;"', t.value = '<ul style="list-style: disc !important; margin-left: 3.5rem !important; padding: 0;"';
|
|
420
|
+
const g = B(), a = m(), c = () => {
|
|
402
421
|
a.value.scrollTo(0, a.value.scrollHeight);
|
|
403
422
|
};
|
|
404
423
|
return de(() => {
|
|
@@ -416,81 +435,81 @@ const _s = /* @__PURE__ */ U(ws, [["__scopeId", "data-v-347ad6de"]]), As = { cla
|
|
|
416
435
|
ref: a,
|
|
417
436
|
class: "smooth-scroll overflow-auto md:px-6 px-2"
|
|
418
437
|
}, [
|
|
419
|
-
|
|
438
|
+
T(Xt, {
|
|
420
439
|
onCallQuestion: x[0] || (x[0] = (o) => _.$emit("callQuestion"))
|
|
421
440
|
}),
|
|
422
|
-
(l(!0), r(
|
|
423
|
-
o.question ? (l(), r("div",
|
|
424
|
-
|
|
441
|
+
(l(!0), r(ve, null, be(i(g).conversations, (o, b) => (l(), r("div", { key: b }, [
|
|
442
|
+
o.question ? (l(), r("div", Fs, [
|
|
443
|
+
T(bs, {
|
|
425
444
|
question: o == null ? void 0 : o.question,
|
|
426
445
|
c2question: o == null ? void 0 : o.c2question,
|
|
427
446
|
"show-feedback": o == null ? void 0 : o.showFeedback,
|
|
428
|
-
id: `qId${
|
|
447
|
+
id: `qId${b}`,
|
|
429
448
|
name: "askQuestion",
|
|
430
|
-
"que-id":
|
|
449
|
+
"que-id": b
|
|
431
450
|
}, null, 8, ["question", "c2question", "show-feedback", "id", "que-id"])
|
|
432
451
|
])) : z("", !0),
|
|
433
|
-
o.answer ? (l(), r("div",
|
|
434
|
-
|
|
452
|
+
o.answer ? (l(), r("div", zs, [
|
|
453
|
+
T(hs, {
|
|
435
454
|
question: o == null ? void 0 : o.question,
|
|
436
455
|
c2question: o == null ? void 0 : o.c2question,
|
|
437
456
|
"show-sources": o == null ? void 0 : o.showSources,
|
|
438
457
|
questionId: o.id,
|
|
439
|
-
answer: o.answer.replaceAll("<a", i(
|
|
458
|
+
answer: o.answer.replaceAll("<a", i(s)).replaceAll("<ul", i(t)),
|
|
440
459
|
"show-feedback": o.showFeedback,
|
|
441
460
|
"related-ques": o == null ? void 0 : o.relatedQues,
|
|
442
461
|
"options-array": o == null ? void 0 : o.optionsArray,
|
|
443
|
-
"ans-id":
|
|
462
|
+
"ans-id": b,
|
|
444
463
|
onCharTyped: c
|
|
445
464
|
}, null, 8, ["question", "c2question", "show-sources", "questionId", "answer", "show-feedback", "related-ques", "options-array", "ans-id"])
|
|
446
465
|
])) : z("", !0)
|
|
447
466
|
]))), 128)),
|
|
448
|
-
i(g).dotLoader ? (l(), r("div",
|
|
449
|
-
|
|
467
|
+
i(g).dotLoader ? (l(), r("div", Rs, [
|
|
468
|
+
T(Cs)
|
|
450
469
|
])) : z("", !0),
|
|
451
|
-
i(g).userspeaking ? (l(), r("div",
|
|
452
|
-
|
|
470
|
+
i(g).userspeaking ? (l(), r("div", Ms, [
|
|
471
|
+
T(Ts)
|
|
453
472
|
])) : z("", !0)
|
|
454
473
|
], 512));
|
|
455
474
|
}
|
|
456
475
|
});
|
|
457
|
-
const
|
|
476
|
+
const Ds = /* @__PURE__ */ U(js, [["__scopeId", "data-v-c14e6f9c"]]), qs = { class: "flex items-center gap-4 py-2 rounded-full z-10" }, Es = {
|
|
458
477
|
key: 0,
|
|
459
478
|
class: "flex items-center"
|
|
460
|
-
},
|
|
479
|
+
}, Is = {
|
|
461
480
|
width: "30",
|
|
462
481
|
height: "30",
|
|
463
482
|
viewBox: "0 0 36 24",
|
|
464
483
|
class: "fill-white",
|
|
465
484
|
style: { transform: "scaleX(-1)" }
|
|
466
|
-
},
|
|
467
|
-
|
|
468
|
-
],
|
|
485
|
+
}, 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 = [
|
|
486
|
+
Hs
|
|
487
|
+
], $s = {
|
|
469
488
|
key: 1,
|
|
470
489
|
class: "flex items-center"
|
|
471
|
-
},
|
|
490
|
+
}, Vs = {
|
|
472
491
|
width: "30",
|
|
473
492
|
height: "30",
|
|
474
493
|
viewBox: "0 0 36 24",
|
|
475
494
|
class: "fill-white",
|
|
476
495
|
style: { transform: "scaleX(-1)" }
|
|
477
|
-
},
|
|
478
|
-
|
|
479
|
-
],
|
|
496
|
+
}, 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 = [
|
|
497
|
+
Qs
|
|
498
|
+
], Os = {
|
|
480
499
|
key: 2,
|
|
481
500
|
class: "flex items-center"
|
|
482
|
-
},
|
|
483
|
-
|
|
484
|
-
],
|
|
501
|
+
}, 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 = [
|
|
502
|
+
Xs
|
|
503
|
+
], Us = { class: "tooltiptext text-genpact-darkest-teal" }, Js = /* @__PURE__ */ e("svg", {
|
|
485
504
|
xmlns: "http://www.w3.org/2000/svg",
|
|
486
505
|
class: "h-[10px] w-[10px] text-gray-700",
|
|
487
506
|
fill: "currentColor",
|
|
488
507
|
viewBox: "0 0 24 24"
|
|
489
508
|
}, [
|
|
490
509
|
/* @__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
|
-
],
|
|
510
|
+
], -1), Ks = [
|
|
511
|
+
Js
|
|
512
|
+
], Zs = /* @__PURE__ */ e("svg", {
|
|
494
513
|
xmlns: "http://www.w3.org/2000/svg",
|
|
495
514
|
class: "h-[10px] w-[10px] text-gray-700",
|
|
496
515
|
fill: "currentColor",
|
|
@@ -505,198 +524,198 @@ const zs = /* @__PURE__ */ U(Fs, [["__scopeId", "data-v-c14e6f9c"]]), Rs = { cla
|
|
|
505
524
|
stroke: "currentColor",
|
|
506
525
|
"stroke-width": "2"
|
|
507
526
|
})
|
|
508
|
-
], -1),
|
|
509
|
-
|
|
510
|
-
],
|
|
527
|
+
], -1), Ys = [
|
|
528
|
+
Zs
|
|
529
|
+
], ea = /* @__PURE__ */ M({
|
|
511
530
|
__name: "NewVoiceConversation",
|
|
512
|
-
setup(
|
|
513
|
-
const
|
|
514
|
-
a.value === !1 ?
|
|
531
|
+
setup(p) {
|
|
532
|
+
const s = B(), t = ce(), g = m(""), a = m(!1), c = m("Turn on mic"), _ = () => {
|
|
533
|
+
a.value === !1 ? s.elevenLabs ? (console.log("mic enabled true 11labs"), a.value = !0, _t(), D.value = "user", c.value = "Turn off mic") : (console.log("mic enabled true"), a.value = !0, rt(), At(), D.value = "user", c.value = "Turn off mic") : s.elevenLabs ? (console.log("mic enabled false"), it(), a.value = !1, c.value = "Turn on mic") : (console.log("mic enabled false"), pe(), a.value = !1, c.value = "Turn on mic");
|
|
515
534
|
}, x = () => {
|
|
516
|
-
|
|
535
|
+
s.elevenLabs ? (console.log("closeConversation 11 labs"), it(), D.value = "none", a.value = !1) : (console.log("closeConversation"), pe(), rt(), D.value = "none", a.value = !1);
|
|
517
536
|
}, o = async () => {
|
|
518
|
-
var
|
|
537
|
+
var b, A, h, d, v, f;
|
|
519
538
|
try {
|
|
520
|
-
const
|
|
539
|
+
const u = {
|
|
521
540
|
question: G.value || ie.value
|
|
522
541
|
};
|
|
523
|
-
|
|
542
|
+
s.conversations.push(u), s.dotLoader = !0, s.question = "";
|
|
524
543
|
const y = {
|
|
525
|
-
past_messages:
|
|
544
|
+
past_messages: s.past_messages,
|
|
526
545
|
question: G.value || ie.value,
|
|
527
546
|
bandCode: "4A",
|
|
528
547
|
userGenomeFunction: "HR",
|
|
529
548
|
userGenomeRole: "Consultant",
|
|
530
549
|
skillId: "7bd03cb6-79ad-4e2a-8a8b-88dc16147369"
|
|
531
|
-
},
|
|
532
|
-
if (D.value = "bot", g.value = (A = (
|
|
550
|
+
}, F = await K("/sqlTest", y);
|
|
551
|
+
if (D.value = "bot", g.value = (A = (b = F == null ? void 0 : F.data) == null ? void 0 : b.body) == null ? void 0 : A.answer, g.value === "") {
|
|
533
552
|
console.log("in the if case calling api again");
|
|
534
553
|
const q = await K("/sqlTest", y);
|
|
535
|
-
|
|
554
|
+
s.addConversation((h = q.data) == null ? void 0 : h.body, "new");
|
|
536
555
|
} else
|
|
537
|
-
console.log("in the else case"),
|
|
538
|
-
if (
|
|
539
|
-
await
|
|
556
|
+
console.log("in the else case"), s.addConversation((d = F.data) == null ? void 0 : d.body, "new");
|
|
557
|
+
if (s.dotLoader = !1, s.elevenLabs)
|
|
558
|
+
await kt(g.value.replace(/[*#]/g, ""));
|
|
540
559
|
else if (g.value.includes("Feedback and Assessment"))
|
|
541
|
-
if (
|
|
560
|
+
if (pe(), a.value = !1, g.value.includes("END ROLE PLAY")) {
|
|
542
561
|
const q = g.value.split("END ROLE PLAY")[0];
|
|
543
562
|
if (q.length < 0) {
|
|
544
|
-
|
|
563
|
+
s.showVoiceComponent = !1;
|
|
545
564
|
return;
|
|
546
565
|
}
|
|
547
|
-
await
|
|
566
|
+
await lt(q.replace(/[*#]/g, "")), s.showVoiceComponent = !1;
|
|
548
567
|
} else
|
|
549
|
-
|
|
568
|
+
s.showVoiceComponent = !1;
|
|
550
569
|
else
|
|
551
|
-
await
|
|
552
|
-
} catch (
|
|
553
|
-
if (console.error(
|
|
554
|
-
const y =
|
|
555
|
-
console.log("Error found!"), console.error((
|
|
570
|
+
await lt(g.value.replace(/[*#]/g, ""));
|
|
571
|
+
} catch (u) {
|
|
572
|
+
if (console.error(u), V.isAxiosError(u)) {
|
|
573
|
+
const y = u;
|
|
574
|
+
console.log("Error found!"), console.error((v = y.response) == null ? void 0 : v.data), t.setError(((f = y.response) == null ? void 0 : f.data).message);
|
|
556
575
|
} else
|
|
557
|
-
|
|
576
|
+
t.setError("There was an issue, please contact helpmate");
|
|
558
577
|
}
|
|
559
578
|
};
|
|
560
|
-
return le(G, async (
|
|
561
|
-
if (
|
|
562
|
-
if (console.log("Recognized text:",
|
|
579
|
+
return le(G, async (b) => {
|
|
580
|
+
if (b) {
|
|
581
|
+
if (console.log("Recognized text:", b), G.value.toLowerCase().includes("play") && G.value.length < 10) {
|
|
563
582
|
console.log("play command detected, ignoring input");
|
|
564
583
|
return;
|
|
565
584
|
}
|
|
566
|
-
D.value = "listening",
|
|
585
|
+
D.value = "listening", s.userspeaking = !1, await o(), G.value = "";
|
|
567
586
|
}
|
|
568
|
-
}), le(ie, async (
|
|
569
|
-
|
|
570
|
-
}), (
|
|
571
|
-
i(D) === "bot" ? (l(), r("div",
|
|
587
|
+
}), le(ie, async (b) => {
|
|
588
|
+
b && (console.log("Recognized text:", b), D.value = "listening", await o(), ie.value = "");
|
|
589
|
+
}), (b, A) => (l(), r("div", qs, [
|
|
590
|
+
i(D) === "bot" ? (l(), r("div", Es, [
|
|
572
591
|
e("span", null, [
|
|
573
|
-
(l(), r("svg",
|
|
592
|
+
(l(), r("svg", Is, Bs))
|
|
574
593
|
])
|
|
575
|
-
])) : i(D) === "user" ? (l(), r("div",
|
|
594
|
+
])) : i(D) === "user" ? (l(), r("div", $s, [
|
|
576
595
|
e("span", null, [
|
|
577
|
-
(l(), r("svg",
|
|
596
|
+
(l(), r("svg", Vs, Gs))
|
|
578
597
|
])
|
|
579
|
-
])) : i(D) === "listening" ? (l(), r("div",
|
|
598
|
+
])) : i(D) === "listening" ? (l(), r("div", Os, Ws)) : z("", !0),
|
|
580
599
|
e("div", {
|
|
581
600
|
class: W([a.value ? "" : "animate-pulse", "tooltip"])
|
|
582
601
|
}, [
|
|
583
|
-
e("span",
|
|
602
|
+
e("span", Us, H(c.value), 1),
|
|
584
603
|
a.value ? (l(), r("button", {
|
|
585
604
|
key: 0,
|
|
586
605
|
class: "rounded-full bg-white p-2 transition hover:bg-gray-300",
|
|
587
|
-
onClick: A[0] || (A[0] = (
|
|
588
|
-
},
|
|
606
|
+
onClick: A[0] || (A[0] = (h) => _())
|
|
607
|
+
}, Ks)) : (l(), r("button", {
|
|
589
608
|
key: 1,
|
|
590
609
|
class: "rounded-full bg-white p-2 transition hover:bg-gray-300",
|
|
591
|
-
onClick: A[1] || (A[1] = (
|
|
592
|
-
},
|
|
610
|
+
onClick: A[1] || (A[1] = (h) => _())
|
|
611
|
+
}, Ys))
|
|
593
612
|
], 2),
|
|
594
613
|
e("button", {
|
|
595
614
|
class: "rounded-full bg-white p-2 hover:bg-gray-300",
|
|
596
|
-
onClick: A[2] || (A[2] = (
|
|
615
|
+
onClick: A[2] || (A[2] = (h) => x())
|
|
597
616
|
}, [
|
|
598
|
-
|
|
617
|
+
T(i(St), { class: "h-[10px] w-[10px] text-gray-700" })
|
|
599
618
|
])
|
|
600
619
|
]));
|
|
601
620
|
}
|
|
602
|
-
}), $ = (
|
|
621
|
+
}), $ = (p) => (Z("data-v-70512682"), p = p(), Y(), 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__ */ $(() => /* @__PURE__ */ e("div", null, null, -1)), la = {
|
|
603
622
|
key: 0,
|
|
604
623
|
class: "flex justify-center bg-genpact-darkest-blue px-4 rounded-full"
|
|
605
|
-
},
|
|
624
|
+
}, ra = { class: "relative w-full" }, da = { class: "absolute inset-y-0 left-0 flex items-center pl-3" }, ca = { class: "tooltip" }, ua = /* @__PURE__ */ $(() => /* @__PURE__ */ e("span", { class: "tooltiptext text-genpact-darkest-teal" }, "Restart", -1)), ma = /* @__PURE__ */ $(() => /* @__PURE__ */ e("path", {
|
|
606
625
|
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
626
|
stroke: "currentColor",
|
|
608
627
|
"stroke-width": "2"
|
|
609
|
-
}, null, -1)),
|
|
628
|
+
}, null, -1)), pa = /* @__PURE__ */ $(() => /* @__PURE__ */ e("path", {
|
|
610
629
|
d: "M9 10H15M9 14H12M19 8V2M16 5H22",
|
|
611
630
|
stroke: "currentColor",
|
|
612
631
|
"stroke-width": "2",
|
|
613
632
|
"stroke-linecap": "round",
|
|
614
633
|
"stroke-linejoin": "round"
|
|
615
|
-
}, null, -1)),
|
|
616
|
-
|
|
617
|
-
da
|
|
618
|
-
], ua = { class: "absolute inset-y-0 right-0 flex items-center md:pr-8 pr-3" }, ma = { key: 0 }, ha = ["disabled"], pa = /* @__PURE__ */ $(() => /* @__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)), fa = [
|
|
634
|
+
}, null, -1)), ha = [
|
|
635
|
+
ma,
|
|
619
636
|
pa
|
|
620
|
-
], ga = {
|
|
637
|
+
], fa = { class: "absolute inset-y-0 right-0 flex items-center md:pr-8 pr-3" }, ga = { key: 0 }, va = ["disabled"], ba = /* @__PURE__ */ $(() => /* @__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 = [
|
|
638
|
+
ba
|
|
639
|
+
], ya = {
|
|
621
640
|
key: 1,
|
|
622
641
|
class: "tooltip"
|
|
623
|
-
},
|
|
642
|
+
}, wa = /* @__PURE__ */ $(() => /* @__PURE__ */ e("span", { class: "tooltiptext text-genpact-darkest-teal" }, "Processing", -1)), _a = /* @__PURE__ */ $(() => /* @__PURE__ */ e("img", {
|
|
624
643
|
class: "w-7 h-7",
|
|
625
|
-
src:
|
|
644
|
+
src: dt,
|
|
626
645
|
alt: "watingIcon"
|
|
627
|
-
}, null, -1)),
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
],
|
|
646
|
+
}, null, -1)), Aa = [
|
|
647
|
+
wa,
|
|
648
|
+
_a
|
|
649
|
+
], ka = { class: "flex justify-start gap-2 md:gap-1" }, Sa = ["disabled"], Ca = /* @__PURE__ */ $(() => /* @__PURE__ */ e("div", { class: "pt-1 text-start font-sans text-xs font-bold text-gray-500 md:text-sm" }, [
|
|
631
650
|
/* @__PURE__ */ e("div", null, " Note: AI-generated response may not be fully accurate; check with experts for critical information. ")
|
|
632
|
-
], -1)),
|
|
651
|
+
], -1)), Na = /* @__PURE__ */ M({
|
|
633
652
|
__name: "NewQuestionSimulation",
|
|
634
|
-
setup(
|
|
635
|
-
const
|
|
636
|
-
|
|
637
|
-
const _ =
|
|
638
|
-
c.value =
|
|
653
|
+
setup(p, { expose: s }) {
|
|
654
|
+
const t = B(), g = ce(), a = m(""), c = m("");
|
|
655
|
+
t.question = "";
|
|
656
|
+
const _ = m(null), x = m(!1), o = m(O), b = m(!1), A = m(0);
|
|
657
|
+
c.value = t.recognizedText, de(() => {
|
|
639
658
|
_.value.focus();
|
|
640
659
|
});
|
|
641
|
-
const
|
|
660
|
+
const h = () => {
|
|
642
661
|
window.location.reload();
|
|
643
|
-
}, d = (
|
|
644
|
-
const
|
|
645
|
-
o.value = O -
|
|
646
|
-
},
|
|
647
|
-
var
|
|
662
|
+
}, d = (f) => {
|
|
663
|
+
const u = f.length;
|
|
664
|
+
o.value = O - u, x.value = u >= O;
|
|
665
|
+
}, v = async () => {
|
|
666
|
+
var f, u, y, F, q, te, se, ae, oe, ne;
|
|
648
667
|
try {
|
|
649
|
-
if (
|
|
668
|
+
if (t.question.trim().length < 1) {
|
|
650
669
|
console.log("Please enter answer!");
|
|
651
670
|
return;
|
|
652
671
|
}
|
|
653
|
-
|
|
672
|
+
b.value = !0, t.dotLoader = !0;
|
|
654
673
|
const C = {
|
|
655
|
-
question:
|
|
674
|
+
question: t.question || t.recognizedText
|
|
656
675
|
};
|
|
657
|
-
|
|
658
|
-
const N =
|
|
659
|
-
N.value =
|
|
676
|
+
t.conversations.push(C);
|
|
677
|
+
const N = m("");
|
|
678
|
+
N.value = t.question || t.recognizedText, t.question = "";
|
|
660
679
|
const R = {
|
|
661
680
|
ohr_id: a.value,
|
|
662
|
-
past_messages:
|
|
663
|
-
question: N.value ||
|
|
664
|
-
bandCode:
|
|
665
|
-
userGenomeFunction:
|
|
666
|
-
userGenomeRole:
|
|
667
|
-
skillId:
|
|
681
|
+
past_messages: t.past_messages,
|
|
682
|
+
question: N.value || t.recognizedText,
|
|
683
|
+
bandCode: t.band_code,
|
|
684
|
+
userGenomeFunction: t.genomeFunctionValue,
|
|
685
|
+
userGenomeRole: t.genomeRoleValue,
|
|
686
|
+
skillId: t.simulationSkill || "937e84ef-e95d-4327-9afe-e7be2bf420eb"
|
|
668
687
|
}, L = await K("/sqlTest", R);
|
|
669
|
-
if (A.value += (
|
|
688
|
+
if (A.value += (u = (f = L.data) == null ? void 0 : f.body) == null ? void 0 : u.totalTokenCount, console.log("Token Count:", A.value), a.value = (F = (y = L.data) == null ? void 0 : y.body) == null ? void 0 : F.ohr, ((te = (q = L == null ? void 0 : L.data) == null ? void 0 : q.body) == null ? void 0 : te.answer) === "") {
|
|
670
689
|
console.log("in the if case calling api again");
|
|
671
690
|
const j = await K("/sqlTest", R);
|
|
672
|
-
|
|
691
|
+
t.addConversation((se = j.data) == null ? void 0 : se.body, "new");
|
|
673
692
|
} else
|
|
674
|
-
console.log("in the else case"),
|
|
675
|
-
|
|
693
|
+
console.log("in the else case"), t.addConversation((ae = L.data) == null ? void 0 : ae.body, "new");
|
|
694
|
+
b.value = !1, t.dotLoader = !1, t.recognizedText = "";
|
|
676
695
|
} catch (C) {
|
|
677
|
-
if (console.error(C),
|
|
696
|
+
if (console.error(C), t.dotLoader = !1, V.isAxiosError(C)) {
|
|
678
697
|
const N = C;
|
|
679
698
|
console.log("Error found!"), console.error((oe = N.response) == null ? void 0 : oe.data), g.setError(((ne = N.response) == null ? void 0 : ne.data).message);
|
|
680
699
|
} else
|
|
681
700
|
g.setError("There was an issue, please contact helpmate");
|
|
682
701
|
}
|
|
683
702
|
};
|
|
684
|
-
return
|
|
685
|
-
e("div",
|
|
686
|
-
e("div",
|
|
687
|
-
e("div",
|
|
688
|
-
e("div",
|
|
689
|
-
|
|
690
|
-
i(
|
|
691
|
-
|
|
703
|
+
return s({ sendQuestion: v }), (f, u) => (l(), r("div", ta, [
|
|
704
|
+
e("div", sa, [
|
|
705
|
+
e("div", aa, [
|
|
706
|
+
e("div", oa, [
|
|
707
|
+
e("div", na, [
|
|
708
|
+
ia,
|
|
709
|
+
i(t).showVoiceComponent ? (l(), r("div", la, [
|
|
710
|
+
T(ea)
|
|
692
711
|
])) : z("", !0)
|
|
693
712
|
]),
|
|
694
|
-
e("div",
|
|
695
|
-
e("div",
|
|
696
|
-
e("div",
|
|
697
|
-
|
|
713
|
+
e("div", ra, [
|
|
714
|
+
e("div", da, [
|
|
715
|
+
e("div", ca, [
|
|
716
|
+
ua,
|
|
698
717
|
(l(), r("svg", {
|
|
699
|
-
onClick:
|
|
718
|
+
onClick: h,
|
|
700
719
|
class: "ml-2 h-7 w-7 rounded",
|
|
701
720
|
id: "newTopicDisable",
|
|
702
721
|
width: "7",
|
|
@@ -705,202 +724,204 @@ const zs = /* @__PURE__ */ U(Fs, [["__scopeId", "data-v-c14e6f9c"]]), Rs = { cla
|
|
|
705
724
|
fill: "none",
|
|
706
725
|
xmlns: "http://www.w3.org/2000/svg",
|
|
707
726
|
title: "restart"
|
|
708
|
-
},
|
|
727
|
+
}, ha))
|
|
709
728
|
])
|
|
710
729
|
]),
|
|
711
|
-
e("div",
|
|
712
|
-
|
|
730
|
+
e("div", fa, [
|
|
731
|
+
b.value ? (l(), r("div", ya, Aa)) : (l(), r("div", ga, [
|
|
713
732
|
(l(), r("svg", {
|
|
714
|
-
disabled: i(
|
|
733
|
+
disabled: i(t).beginFlag === !0,
|
|
715
734
|
class: W([
|
|
716
|
-
i(
|
|
735
|
+
i(t).beginFlag === !0 ? "cursor-not-allowed text-gray-600" : "cursor-pointer",
|
|
717
736
|
"bi bi-send ml-2 h-7 w-7 rotate-45 rounded"
|
|
718
737
|
]),
|
|
719
|
-
onClick:
|
|
738
|
+
onClick: u[0] || (u[0] = (y) => i(t).searchBoxdisable === !1 || i(t).beginFlag === !0 ? "" : v()),
|
|
720
739
|
xmlns: "http://www.w3.org/2000/svg",
|
|
721
740
|
fill: "currentColor",
|
|
722
741
|
viewBox: "0 0 16 16"
|
|
723
|
-
},
|
|
742
|
+
}, xa, 10, va))
|
|
724
743
|
]))
|
|
725
744
|
]),
|
|
726
|
-
e("div",
|
|
727
|
-
|
|
745
|
+
e("div", ka, [
|
|
746
|
+
xe(e("input", {
|
|
747
|
+
onPaste: u[1] || (u[1] = yt(() => {
|
|
748
|
+
}, ["prevent"])),
|
|
728
749
|
onKeyup: [
|
|
729
|
-
|
|
730
|
-
|
|
750
|
+
u[2] || (u[2] = ut((y) => b.value ? "" : v(), ["enter"])),
|
|
751
|
+
u[4] || (u[4] = (y) => d(i(t).question))
|
|
731
752
|
],
|
|
732
|
-
disabled: i(
|
|
753
|
+
disabled: i(t).beginFlag === !0 || i(t).searchBoxdisable === !1,
|
|
733
754
|
class: W([
|
|
734
|
-
i(
|
|
755
|
+
i(t).beginFlag === !0 || i(t).searchBoxdisable === !1 ? "cursor-not-allowed bg-[#e5e7eb]" : "bg-white",
|
|
735
756
|
"fontFormattingAMA rounded-lg flex w-full border border-genpact-darkest-teal py-[18px] px-[70px]"
|
|
736
757
|
]),
|
|
737
|
-
"onUpdate:modelValue":
|
|
758
|
+
"onUpdate:modelValue": u[3] || (u[3] = (y) => i(t).question = y),
|
|
738
759
|
placeholder: "Write your answer here...",
|
|
739
760
|
type: "text",
|
|
740
761
|
ref_key: "AiSearch",
|
|
741
762
|
ref: _
|
|
742
|
-
}, null, 42,
|
|
743
|
-
[ct, i(
|
|
763
|
+
}, null, 42, Sa), [
|
|
764
|
+
[ct, i(t).question]
|
|
744
765
|
])
|
|
745
766
|
])
|
|
746
767
|
]),
|
|
747
|
-
|
|
768
|
+
Ca
|
|
748
769
|
])
|
|
749
770
|
])
|
|
750
771
|
])
|
|
751
772
|
]));
|
|
752
773
|
}
|
|
753
774
|
});
|
|
754
|
-
const
|
|
755
|
-
|
|
756
|
-
],
|
|
775
|
+
const La = /* @__PURE__ */ U(Na, [["__scopeId", "data-v-70512682"]]), ue = (p) => (Z("data-v-6c0980b5"), p = p(), Y(), 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" }, Ra = { class: "relative w-full" }, Ma = { class: "absolute inset-y-0 right-0 flex items-center md:pr-8 pr-3" }, ja = { key: 0 }, Da = ["disabled"], qa = /* @__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)), Ea = [
|
|
776
|
+
qa
|
|
777
|
+
], Ia = {
|
|
757
778
|
key: 1,
|
|
758
779
|
class: "tooltip"
|
|
759
|
-
},
|
|
780
|
+
}, Ha = /* @__PURE__ */ ue(() => /* @__PURE__ */ e("span", { class: "tooltiptext fontFormattingAMA" }, "Waiting for response", -1)), Ba = /* @__PURE__ */ ue(() => /* @__PURE__ */ e("img", {
|
|
760
781
|
class: "w-7 h-7",
|
|
761
|
-
src:
|
|
782
|
+
src: dt,
|
|
762
783
|
alt: "watingIcon"
|
|
763
|
-
}, null, -1)),
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
],
|
|
784
|
+
}, null, -1)), $a = [
|
|
785
|
+
Ha,
|
|
786
|
+
Ba
|
|
787
|
+
], 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
788
|
/* @__PURE__ */ e("div", null, " Note: AI-generated response may not be fully accurate; check with experts for critical information. ")
|
|
768
|
-
], -1)),
|
|
789
|
+
], -1)), Oa = /* @__PURE__ */ M({
|
|
769
790
|
__name: "NewMDMQuestionSimulation",
|
|
770
|
-
setup(
|
|
771
|
-
const
|
|
772
|
-
|
|
773
|
-
const a =
|
|
774
|
-
g.value =
|
|
791
|
+
setup(p) {
|
|
792
|
+
const s = B(), t = ce(), g = m("");
|
|
793
|
+
s.question = "";
|
|
794
|
+
const a = m(null), c = m(!1), _ = m(O), x = m(!1);
|
|
795
|
+
g.value = s.recognizedText, de(() => {
|
|
775
796
|
a.value.focus();
|
|
776
797
|
});
|
|
777
798
|
const o = (A) => {
|
|
778
|
-
const
|
|
779
|
-
_.value = O -
|
|
780
|
-
},
|
|
781
|
-
var A,
|
|
782
|
-
console.log("options fdsfdscdzxfsdv",
|
|
799
|
+
const h = A.length;
|
|
800
|
+
_.value = O - h, c.value = h >= O;
|
|
801
|
+
}, b = async () => {
|
|
802
|
+
var A, h, d;
|
|
803
|
+
console.log("options fdsfdscdzxfsdv", s.recognizedText);
|
|
783
804
|
try {
|
|
784
|
-
if (console.log("options fdsfdscdzxfsdv",
|
|
805
|
+
if (console.log("options fdsfdscdzxfsdv", s.recognizedText), s.question.trim().length < 1) {
|
|
785
806
|
console.log("Please enter answer!");
|
|
786
807
|
return;
|
|
787
808
|
}
|
|
788
|
-
x.value = !0,
|
|
789
|
-
const
|
|
790
|
-
question:
|
|
809
|
+
x.value = !0, s.dotLoader = !0;
|
|
810
|
+
const v = {
|
|
811
|
+
question: s.question || s.recognizedText
|
|
791
812
|
};
|
|
792
|
-
console.log("ques",
|
|
793
|
-
const
|
|
794
|
-
|
|
795
|
-
const
|
|
796
|
-
assessmentId:
|
|
797
|
-
question:
|
|
798
|
-
past_messages:
|
|
799
|
-
prompt:
|
|
800
|
-
assessmentType:
|
|
813
|
+
console.log("ques", v), s.conversations.push(v);
|
|
814
|
+
const f = m("");
|
|
815
|
+
f.value = s.question || s.recognizedText, s.question = "";
|
|
816
|
+
const u = {
|
|
817
|
+
assessmentId: s.simulationSkill,
|
|
818
|
+
question: f.value,
|
|
819
|
+
past_messages: s.past_messages,
|
|
820
|
+
prompt: s.generatedPrompt,
|
|
821
|
+
assessmentType: s.assessmentType,
|
|
801
822
|
userFunction: "HR",
|
|
802
|
-
empSeniority:
|
|
803
|
-
functionRole:
|
|
804
|
-
userBand:
|
|
805
|
-
storeFinalFeedback:
|
|
806
|
-
storeFinalScore:
|
|
823
|
+
empSeniority: s.empSeniority,
|
|
824
|
+
functionRole: s.functionRole,
|
|
825
|
+
userBand: s.band_code,
|
|
826
|
+
storeFinalFeedback: s.storeFinalFeedback,
|
|
827
|
+
storeFinalScore: s.storeFinalScore
|
|
807
828
|
};
|
|
808
|
-
console.log("Payload for MDM1==> ",
|
|
829
|
+
console.log("Payload for MDM1==> ", u);
|
|
809
830
|
let y;
|
|
810
831
|
X === "prod" ? y = "/ManualExportActivity" : y = "/fetchCompletionDemo";
|
|
811
|
-
const
|
|
812
|
-
|
|
813
|
-
} catch (
|
|
814
|
-
if (console.error(
|
|
815
|
-
const
|
|
816
|
-
console.log("Error found!"), console.error((
|
|
832
|
+
const F = await K(y, u);
|
|
833
|
+
s.addConversation((A = F.data) == null ? void 0 : A.body, "new"), x.value = !1, s.dotLoader = !1, s.recognizedText = "";
|
|
834
|
+
} catch (v) {
|
|
835
|
+
if (console.error(v), V.isAxiosError(v)) {
|
|
836
|
+
const f = v;
|
|
837
|
+
console.log("Error found!"), console.error((h = f.response) == null ? void 0 : h.data), t.setError(((d = f.response) == null ? void 0 : d.data).message);
|
|
817
838
|
} else
|
|
818
|
-
|
|
839
|
+
t.setError("There was an issue, please contact helpmate");
|
|
819
840
|
}
|
|
820
841
|
};
|
|
821
|
-
return (A,
|
|
822
|
-
e("div",
|
|
823
|
-
e("div",
|
|
824
|
-
e("div",
|
|
825
|
-
e("div",
|
|
826
|
-
e("div",
|
|
827
|
-
x.value ? (l(), r("div",
|
|
842
|
+
return (A, h) => (l(), r("div", Pa, [
|
|
843
|
+
e("div", Ta, [
|
|
844
|
+
e("div", Fa, [
|
|
845
|
+
e("div", za, [
|
|
846
|
+
e("div", Ra, [
|
|
847
|
+
e("div", Ma, [
|
|
848
|
+
x.value ? (l(), r("div", Ia, $a)) : (l(), r("div", ja, [
|
|
828
849
|
(l(), r("svg", {
|
|
829
|
-
disabled: i(
|
|
850
|
+
disabled: i(s).beginFlag === !0,
|
|
830
851
|
class: W([
|
|
831
|
-
i(
|
|
852
|
+
i(s).beginFlag === !0 ? "cursor-not-allowed text-gray-600" : "cursor-pointer",
|
|
832
853
|
"bi bi-send ml-2 h-7 w-7 rotate-45 rounded"
|
|
833
854
|
]),
|
|
834
|
-
onClick:
|
|
855
|
+
onClick: h[0] || (h[0] = (d) => i(s).searchBoxdisable === !1 || i(s).beginFlag === !0 ? "" : b()),
|
|
835
856
|
xmlns: "http://www.w3.org/2000/svg",
|
|
836
857
|
fill: "currentColor",
|
|
837
858
|
viewBox: "0 0 16 16"
|
|
838
|
-
},
|
|
859
|
+
}, Ea, 10, Da))
|
|
839
860
|
]))
|
|
840
861
|
]),
|
|
841
|
-
e("div",
|
|
842
|
-
|
|
862
|
+
e("div", Va, [
|
|
863
|
+
xe(e("input", {
|
|
843
864
|
onKeyup: [
|
|
844
|
-
|
|
845
|
-
|
|
865
|
+
h[1] || (h[1] = ut((d) => x.value ? "" : b(), ["enter"])),
|
|
866
|
+
h[3] || (h[3] = (d) => o(i(s).question))
|
|
846
867
|
],
|
|
847
|
-
disabled: i(
|
|
868
|
+
disabled: i(s).beginFlag === !0 || i(s).searchBoxdisable === !1,
|
|
848
869
|
class: W([
|
|
849
|
-
i(
|
|
870
|
+
i(s).beginFlag === !0 || i(s).searchBoxdisable === !1 ? "cursor-not-allowed bg-[#e5e7eb]" : "bg-white",
|
|
850
871
|
"fontFormattingAMA rounded-lg flex w-full border border-genpact-darkest-teal py-[18px] pl-[30px] pr-[70px]"
|
|
851
872
|
]),
|
|
852
|
-
"onUpdate:modelValue":
|
|
873
|
+
"onUpdate:modelValue": h[2] || (h[2] = (d) => i(s).question = d),
|
|
853
874
|
placeholder: "Write your answer here...",
|
|
854
875
|
type: "text",
|
|
855
876
|
ref_key: "AiSearch",
|
|
856
877
|
ref: a
|
|
857
|
-
}, null, 42,
|
|
858
|
-
[ct, i(
|
|
878
|
+
}, null, 42, Qa), [
|
|
879
|
+
[ct, i(s).question]
|
|
859
880
|
])
|
|
860
881
|
])
|
|
861
882
|
]),
|
|
862
|
-
|
|
883
|
+
Ga
|
|
863
884
|
])
|
|
864
885
|
])
|
|
865
886
|
])
|
|
866
887
|
]));
|
|
867
888
|
}
|
|
868
889
|
});
|
|
869
|
-
const
|
|
890
|
+
const Xa = /* @__PURE__ */ U(Oa, [["__scopeId", "data-v-6c0980b5"]]), ee = (p) => (Z("data-v-2f3d502d"), p = p(), Y(), p), Wa = { class: "max-h-screen overflow-auto md:p-6 p-3 text-[#161916]" }, Ua = {
|
|
870
891
|
key: 0,
|
|
871
892
|
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 = [
|
|
893
|
+
}, Ja = /* @__PURE__ */ ee(() => /* @__PURE__ */ e("div", { class: "text-2xl font-[700]" }, "Assessment Access Required", -1)), Ka = /* @__PURE__ */ ee(() => /* @__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
894
|
Ja,
|
|
880
895
|
Ka
|
|
881
896
|
], Ya = {
|
|
897
|
+
key: 1,
|
|
898
|
+
class: "flex flex-col items-center justify-center gap-4"
|
|
899
|
+
}, eo = /* @__PURE__ */ ee(() => /* @__PURE__ */ e("div", { class: "text-2xl font-[700]" }, "Invalid URL", -1)), to = /* @__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)), so = [
|
|
900
|
+
eo,
|
|
901
|
+
to
|
|
902
|
+
], ao = {
|
|
882
903
|
key: 1,
|
|
883
904
|
className: "h-screen flex flex-col items-stretch"
|
|
884
|
-
},
|
|
905
|
+
}, oo = { class: "z-20" }, no = /* @__PURE__ */ ee(() => /* @__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
906
|
key: 0,
|
|
886
907
|
class: "relative"
|
|
887
|
-
},
|
|
908
|
+
}, uo = {
|
|
888
909
|
key: 1,
|
|
889
910
|
class: "relative"
|
|
890
|
-
},
|
|
911
|
+
}, mo = /* @__PURE__ */ M({
|
|
891
912
|
__name: "AssessmentSimulation",
|
|
892
|
-
setup(
|
|
893
|
-
const
|
|
894
|
-
|
|
895
|
-
const a = B(), c = ce(), _ =
|
|
896
|
-
let
|
|
897
|
-
const d =
|
|
898
|
-
let
|
|
899
|
-
const
|
|
900
|
-
x.value =
|
|
913
|
+
setup(p) {
|
|
914
|
+
const s = m(!0), t = m(!1), g = m(!1);
|
|
915
|
+
m(!1), m(!1);
|
|
916
|
+
const a = B(), c = ce(), _ = m(""), x = m(""), o = m(""), b = m(""), A = localStorage.getItem("accessToken");
|
|
917
|
+
let h = "";
|
|
918
|
+
const d = m("");
|
|
919
|
+
let v = "", f = "";
|
|
920
|
+
const u = m(), y = m(!1), F = new URL(window.location.href), q = F.searchParams.get("skillId") || F.searchParams.get("assessmentId");
|
|
921
|
+
x.value = F.searchParams.get("mode") ?? "", a.simulationSkill = q ?? "";
|
|
901
922
|
const te = ["703331197", "703380812", "703331909", "703363051", "703319578"];
|
|
902
923
|
de(async () => {
|
|
903
|
-
|
|
924
|
+
s.value = !0, await se(), await oe();
|
|
904
925
|
});
|
|
905
926
|
const se = async () => {
|
|
906
927
|
var C, N, R, L, E, j, I;
|
|
@@ -908,12 +929,12 @@ const Va = /* @__PURE__ */ U($a, [["__scopeId", "data-v-6c0980b5"]]), ee = (h) =
|
|
|
908
929
|
const S = await me(
|
|
909
930
|
`/getLearnerData?forSimulation=true&skillForSimulation=${a.simulationSkill}`
|
|
910
931
|
);
|
|
911
|
-
a.initialize(S.data), a.assessmentQuestion || (console.log("getAssessmentDetails========================>"), await ae()),
|
|
932
|
+
a.initialize(S.data), a.assessmentQuestion || (console.log("getAssessmentDetails========================>"), await ae()), s.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
933
|
} catch (S) {
|
|
913
|
-
if (console.error(S),
|
|
934
|
+
if (console.error(S), s.value = !1, V.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
935
|
const k = S;
|
|
915
936
|
if (console.log("Error found!"), console.error((N = k.response) == null ? void 0 : N.data), ((R = k.response) == null ? void 0 : R.status) === 424 || ((L = k.response) == null ? void 0 : L.status) === 425 || ((E = k.response) == null ? void 0 : E.status) === 400) {
|
|
916
|
-
|
|
937
|
+
b.value = (j = k.response) == null ? void 0 : j.status, console.log("errorCode value", b.value), g.value = !0;
|
|
917
938
|
return;
|
|
918
939
|
}
|
|
919
940
|
c.setError(((I = k.response) == null ? void 0 : I.data).message);
|
|
@@ -921,27 +942,27 @@ const Va = /* @__PURE__ */ U($a, [["__scopeId", "data-v-6c0980b5"]]), ee = (h) =
|
|
|
921
942
|
c.setError("There was an issue, please contact helpmate");
|
|
922
943
|
}
|
|
923
944
|
}, ae = async () => {
|
|
924
|
-
var C, N, R, L, E, j, I, S, k, J,
|
|
945
|
+
var C, N, R, L, E, j, I, S, k, J, ye, we, _e, Ae, ke, Se, Ce, Ne, Le, Pe, Te, Fe, ze, Re, Me, je, De, qe, Ee, Ie, He, Be, $e, Ve, Qe, Ge, Oe, Xe, We, Ue, Je, Ke, Ze, Ye, et, tt, st, at;
|
|
925
946
|
console.log("Start getAssessmentDetails");
|
|
926
947
|
try {
|
|
927
|
-
X === "prod" ?
|
|
928
|
-
const n = await me(
|
|
929
|
-
_.value = (N = (C = n == null ? void 0 : n.data) == null ? void 0 : C.data) == null ? void 0 : N.name, a.skillNameForSimulation = _.value, a.generatedPrompt = (L = (R = n == null ? void 0 : n.data) == null ? void 0 : R.data) == null ? void 0 : L.generatedPrompt, a.assessmentType = (j = (E = n == null ? void 0 : n.data) == null ? void 0 : E.data) == null ? void 0 : j.assessmentType, o.value = (S = (I = n == null ? void 0 : n.data) == null ? void 0 : I.data) == null ? void 0 : S.status, y.value = (J = (k = n == null ? void 0 : n.data) == null ? void 0 : k.data) == null ? void 0 : J.editMode, a.empSeniority = (
|
|
930
|
-
const Q = (
|
|
931
|
-
if (a.mcqType = (
|
|
932
|
-
|
|
948
|
+
X === "prod" ? h = `https://api-v2.genpact.com/api/my-profile/assessment-master/getAssessmentDetailsById?id=${a.simulationSkill}` : h = `https://api-v2-dev.genpact.com/api/my-profile/assessment-master/getAssessmentDetailsById?id=${a.simulationSkill}`;
|
|
949
|
+
const n = await me(h);
|
|
950
|
+
_.value = (N = (C = n == null ? void 0 : n.data) == null ? void 0 : C.data) == null ? void 0 : N.name, a.skillNameForSimulation = _.value, a.generatedPrompt = (L = (R = n == null ? void 0 : n.data) == null ? void 0 : R.data) == null ? void 0 : L.generatedPrompt, a.assessmentType = (j = (E = n == null ? void 0 : n.data) == null ? void 0 : E.data) == null ? void 0 : j.assessmentType, o.value = (S = (I = n == null ? void 0 : n.data) == null ? void 0 : I.data) == null ? void 0 : S.status, y.value = (J = (k = n == null ? void 0 : n.data) == null ? void 0 : k.data) == null ? void 0 : J.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, v = (Se = (ke = n == null ? void 0 : n.data) == null ? void 0 : ke.data) == null ? void 0 : Se.accessBand, f = (Ne = (Ce = n == null ? void 0 : n.data) == null ? void 0 : Ce.data) == null ? void 0 : Ne.accessOhrList;
|
|
951
|
+
const Q = (Pe = (Le = n == null ? void 0 : n.data) == null ? void 0 : Le.data) == null ? void 0 : Pe.createdBy;
|
|
952
|
+
if (a.mcqType = (Fe = (Te = n == null ? void 0 : n.data) == null ? void 0 : Te.data) == null ? void 0 : Fe.mcqTypes, a.storeFinalFeedback = (Re = (ze = n == null ? void 0 : n.data) == null ? void 0 : ze.data) == null ? void 0 : Re.storeFinalFeedback, a.storeFinalScore = (je = (Me = n == null ? void 0 : n.data) == null ? void 0 : Me.data) == null ? void 0 : je.storeFinalScore, o.value === "inactive")
|
|
953
|
+
t.value = !0;
|
|
933
954
|
else if (o.value === "draft")
|
|
934
|
-
x.value !==
|
|
935
|
-
else if (o.value === "active" && y.value && x.value ===
|
|
936
|
-
X === "prod" ?
|
|
937
|
-
const w = await me(
|
|
938
|
-
a.generatedPrompt = (
|
|
955
|
+
x.value !== nt.DRAFT && (t.value = !0);
|
|
956
|
+
else if (o.value === "active" && y.value && x.value === nt.DRAFT) {
|
|
957
|
+
X === "prod" ? h = `https://api-v2.genpact.com/api/my-profile/assessment-master/getDraftAssessmentDetailsById?assessmentId=${a.simulationSkill}` : h = `https://api-v2-dev.genpact.com/api/my-profile/assessment-master/getDraftAssessmentDetailsById?assessmentId=${a.simulationSkill}`;
|
|
958
|
+
const w = await me(h);
|
|
959
|
+
a.generatedPrompt = (qe = (De = w == null ? void 0 : w.data) == null ? void 0 : De.data) == null ? void 0 : qe.generatedPrompt, a.assessmentType = (Ie = (Ee = w == null ? void 0 : w.data) == null ? void 0 : Ee.data) == null ? void 0 : Ie.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, v = (Ue = (We = w == null ? void 0 : w.data) == null ? void 0 : We.data) == null ? void 0 : Ue.accessBand, f = (Ke = (Je = w == null ? void 0 : w.data) == null ? void 0 : Je.data) == null ? void 0 : Ke.accessOhrList;
|
|
939
960
|
}
|
|
940
|
-
const
|
|
961
|
+
const pt = a == null ? void 0 : a.band_code, ot = (Ze = v == null ? void 0 : v.split(",")) == null ? void 0 : Ze.map((w) => w.trim());
|
|
941
962
|
if (Q === (a == null ? void 0 : a.ohr) || te.includes(a == null ? void 0 : a.ohr))
|
|
942
963
|
console.log("User has access to this assessment.");
|
|
943
964
|
else {
|
|
944
|
-
if (
|
|
965
|
+
if (ot.length === 0 && f.length === 0)
|
|
945
966
|
throw console.log("Both bands and exceptionOHR are empty. Access denied."), {
|
|
946
967
|
response: {
|
|
947
968
|
status: 424,
|
|
@@ -950,7 +971,7 @@ const Va = /* @__PURE__ */ U($a, [["__scopeId", "data-v-6c0980b5"]]), ee = (h) =
|
|
|
950
971
|
}
|
|
951
972
|
}
|
|
952
973
|
};
|
|
953
|
-
if (
|
|
974
|
+
if (ot.includes(pt) || f.includes(a == null ? void 0 : a.ohr))
|
|
954
975
|
console.log("User has access to this assessment.");
|
|
955
976
|
else
|
|
956
977
|
throw console.log("User does not have access to this assessment."), {
|
|
@@ -964,13 +985,13 @@ const Va = /* @__PURE__ */ U($a, [["__scopeId", "data-v-6c0980b5"]]), ee = (h) =
|
|
|
964
985
|
}
|
|
965
986
|
console.log("end getAssessmentDetails");
|
|
966
987
|
} catch (n) {
|
|
967
|
-
if (console.error(n),
|
|
988
|
+
if (console.error(n), s.value = !1, V.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
989
|
const Q = n;
|
|
969
|
-
if (console.log("Error found!"), console.error((
|
|
990
|
+
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) {
|
|
970
991
|
g.value = !0;
|
|
971
992
|
return;
|
|
972
993
|
}
|
|
973
|
-
c.setError(((
|
|
994
|
+
c.setError(((at = Q.response) == null ? void 0 : at.data).message);
|
|
974
995
|
} else
|
|
975
996
|
c.setError("There was an issue, please contact helpmate");
|
|
976
997
|
}
|
|
@@ -988,7 +1009,7 @@ const Va = /* @__PURE__ */ U($a, [["__scopeId", "data-v-6c0980b5"]]), ee = (h) =
|
|
|
988
1009
|
});
|
|
989
1010
|
a.genomeFunctionValue = (R = (N = (C = k == null ? void 0 : k.data) == null ? void 0 : C.role_function) == null ? void 0 : N.function) == null ? void 0 : R.name, a.genomeRoleValue = (j = (E = (L = k == null ? void 0 : k.data) == null ? void 0 : L.role_function) == null ? void 0 : E.role) == null ? void 0 : j.name;
|
|
990
1011
|
} catch (k) {
|
|
991
|
-
if (console.error(k),
|
|
1012
|
+
if (console.error(k), s.value = !1, V.isAxiosError(k)) {
|
|
992
1013
|
const J = k;
|
|
993
1014
|
console.log("Error found!"), console.error((I = J.response) == null ? void 0 : I.data), c.setError(((S = J.response) == null ? void 0 : S.data).message);
|
|
994
1015
|
} else
|
|
@@ -996,39 +1017,39 @@ const Va = /* @__PURE__ */ U($a, [["__scopeId", "data-v-6c0980b5"]]), ee = (h) =
|
|
|
996
1017
|
}
|
|
997
1018
|
}, ne = () => {
|
|
998
1019
|
var C;
|
|
999
|
-
(C =
|
|
1020
|
+
(C = u.value) == null || C.sendQuestion();
|
|
1000
1021
|
};
|
|
1001
1022
|
return (C, N) => (l(), r("section", null, [
|
|
1002
|
-
|
|
1003
|
-
default:
|
|
1004
|
-
e("div",
|
|
1005
|
-
|
|
1006
|
-
|
|
1023
|
+
T(he, { "is-visible": g.value }, {
|
|
1024
|
+
default: ge(() => [
|
|
1025
|
+
e("div", Wa, [
|
|
1026
|
+
b.value === 424 || b.value === "425" ? (l(), r("div", Ua, Za)) : z("", !0),
|
|
1027
|
+
b.value === 400 ? (l(), r("div", Ya, so)) : z("", !0)
|
|
1007
1028
|
])
|
|
1008
1029
|
]),
|
|
1009
1030
|
_: 1
|
|
1010
1031
|
}, 8, ["is-visible"]),
|
|
1011
1032
|
e("div", null, [
|
|
1012
|
-
|
|
1013
|
-
e("div",
|
|
1014
|
-
|
|
1033
|
+
s.value ? (l(), wt(ft, { key: 0 })) : (l(), r("main", ao, [
|
|
1034
|
+
e("div", oo, [
|
|
1035
|
+
T(Rt)
|
|
1015
1036
|
]),
|
|
1016
|
-
|
|
1017
|
-
e("div",
|
|
1018
|
-
e("div",
|
|
1019
|
-
e("div",
|
|
1020
|
-
|
|
1037
|
+
no,
|
|
1038
|
+
e("div", io, [
|
|
1039
|
+
e("div", lo, [
|
|
1040
|
+
e("div", ro, [
|
|
1041
|
+
T(Ds, { onCallQuestion: ne }),
|
|
1021
1042
|
e("div", {
|
|
1022
1043
|
class: W(i(a).showVoiceComponent === !0 ? "mt-[160px]" : "mt-[120px]")
|
|
1023
1044
|
}, null, 2)
|
|
1024
1045
|
]),
|
|
1025
|
-
i(a).assessmentQuestion ? (l(), r("div",
|
|
1026
|
-
|
|
1046
|
+
i(a).assessmentQuestion ? (l(), r("div", co, [
|
|
1047
|
+
T(La, {
|
|
1027
1048
|
ref_key: "newQuestionRef",
|
|
1028
|
-
ref:
|
|
1049
|
+
ref: u
|
|
1029
1050
|
}, null, 512)
|
|
1030
|
-
])) : (l(), r("div",
|
|
1031
|
-
|
|
1051
|
+
])) : (l(), r("div", uo, [
|
|
1052
|
+
T(Xa)
|
|
1032
1053
|
]))
|
|
1033
1054
|
])
|
|
1034
1055
|
])
|
|
@@ -1037,7 +1058,7 @@ const Va = /* @__PURE__ */ U($a, [["__scopeId", "data-v-6c0980b5"]]), ee = (h) =
|
|
|
1037
1058
|
]));
|
|
1038
1059
|
}
|
|
1039
1060
|
});
|
|
1040
|
-
const
|
|
1061
|
+
const _o = /* @__PURE__ */ U(mo, [["__scopeId", "data-v-2f3d502d"]]);
|
|
1041
1062
|
export {
|
|
1042
|
-
|
|
1063
|
+
_o as default
|
|
1043
1064
|
};
|