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