@genpact/genome.mfe.mgtwin-app 1.1.339-alpha → 1.1.341-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-8ade38ad.mjs → AssessmentAMA-b224f19c.mjs} +4 -4
- package/dist/{AssessmentSimulation-ffa5dc9a.mjs → AssessmentSimulation-42c72f89.mjs} +179 -180
- package/dist/{EditSkillAdminData-2733defb.mjs → EditSkillAdminData-d2fb59f3.mjs} +2 -2
- package/dist/{EditSkillData-4648bc79.mjs → EditSkillData-557a0340.mjs} +2 -2
- package/dist/{HomeView-e1446f43.mjs → HomeView-7db416ab.mjs} +5 -5
- package/dist/{Loading-379df1ec.mjs → Loading-fd19c362.mjs} +1 -1
- package/dist/{LoadingSimulation-9009f0c4.mjs → LoadingSimulation-26981c4e.mjs} +1 -1
- package/dist/{Modal-1f1cd056.mjs → Modal-45d308ed.mjs} +1 -1
- package/dist/{PaperAirplaneIcon-044fdb99.mjs → PaperAirplaneIcon-6f1d6d2e.mjs} +1 -1
- package/dist/{PromptTesting-ffc1ecc7.mjs → PromptTesting-d477741f.mjs} +3 -3
- package/dist/{SkillAutomation-477365de.mjs → SkillAutomation-e84aa483.mjs} +3 -3
- package/dist/{SkillData-3b40e98e.mjs → SkillData-bbf87ddd.mjs} +3 -3
- package/dist/{Testcase-5d530a6d.mjs → Testcase-8f4fbd89.mjs} +3 -3
- package/dist/{UnderMaintenance-66ce85d1.mjs → UnderMaintenance-73021316.mjs} +1 -1
- package/dist/{VoiceTestcase-ef93119b.mjs → VoiceTestcase-52f5590d.mjs} +3 -3
- package/dist/{XMarkIcon-10b8c78b.mjs → XMarkIcon-0d644af3.mjs} +1 -1
- package/dist/{api-3fd3a3a9.mjs → api-32199dd9.mjs} +1 -1
- package/dist/{main-de4142ca.mjs → main-9ffc8c22.mjs} +1119 -1119
- package/dist/mgtwin.es.min.js +1 -1
- package/dist/mgtwin.umd.min.js +8 -8
- package/dist/style.css +1 -1
- package/dist/{voiceServices-2e416043.mjs → voiceServices-ffc3bf4b.mjs} +2 -2
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { _ as ht, a as dt, L as pt } from "./LoadingSimulation-
|
|
2
|
-
import { _ as ft, a as ie, Q as
|
|
3
|
-
import { d as I, r as
|
|
1
|
+
import { _ as ht, a as dt, L as pt } from "./LoadingSimulation-26981c4e.mjs";
|
|
2
|
+
import { _ as ft, a as ie, Q as he, M as nt } from "./Modal-45d308ed.mjs";
|
|
3
|
+
import { d as I, r as h, H as O, o as l, c as r, a as e, u as E, y as ge, h as F, s as le, i as L, t as V, b as i, f as M, I as re, F as ve, e as be, w as xe, J as gt, p as K, g as Z, G as de, C as ce, z as vt, K as bt, k as ue, n as W, q as $, m as ct, A as xt, L as yt, l as wt } from "./main-9ffc8c22.mjs";
|
|
4
4
|
import { _ as X } from "./_plugin-vue_export-helper-dad06003.mjs";
|
|
5
|
-
import { p as U, g as pe } from "./api-
|
|
6
|
-
import { i as H, s as _t, a as At, b as it, c as fe, r as Q, d as ne, e as kt, p as lt, f as rt } from "./voiceServices-
|
|
7
|
-
import { r as St } from "./XMarkIcon-
|
|
5
|
+
import { p as U, g as pe } from "./api-32199dd9.mjs";
|
|
6
|
+
import { i as H, s as _t, a as At, b as it, c as fe, r as Q, d as ne, e as kt, p as lt, f as rt } from "./voiceServices-ffc3bf4b.mjs";
|
|
7
|
+
import { r as St } from "./XMarkIcon-0d644af3.mjs";
|
|
8
8
|
import "./loadernew-ac153a51.mjs";
|
|
9
9
|
import "./_commonjsHelpers-92157f1b.mjs";
|
|
10
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", {
|
|
@@ -22,8 +22,8 @@ const Nt = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#0
|
|
|
22
22
|
], zt = /* @__PURE__ */ I({
|
|
23
23
|
__name: "headerSimulation",
|
|
24
24
|
setup(p) {
|
|
25
|
-
const s =
|
|
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) => (
|
|
25
|
+
const s = h(""), t = h("");
|
|
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) => (l(), r("nav", Nt, [
|
|
27
27
|
e("a", {
|
|
28
28
|
class: "px-2 md:px-0 lg:px-0",
|
|
29
29
|
href: s.value,
|
|
@@ -81,6 +81,7 @@ const Nt = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#0
|
|
|
81
81
|
], -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" }, Bt = /* @__PURE__ */ e("div", { class: "text-lg md:text-xl font-[700]" }, "Please Note Before You Begin", -1), $t = /* @__PURE__ */ e("ul", { className: "list-disc max-h-[40vh] overflow-auto space-y-3 pl-6 text-[#102345] text-sm md:text-base" }, [
|
|
82
82
|
/* @__PURE__ */ e("li", null, "your current role and area of expertise."),
|
|
83
83
|
/* @__PURE__ */ e("li", null, "You may choose an industry or domain of your liking."),
|
|
84
|
+
/* @__PURE__ */ e("li", null, "The exercise has 2 parts –"),
|
|
84
85
|
/* @__PURE__ */ e("ul", { className: "list-disc max-h-[40vh] overflow-auto space-y-3 pl-6 text-[#102345] text-sm md:text-base" }, [
|
|
85
86
|
/* @__PURE__ */ e("li", null, [
|
|
86
87
|
/* @__PURE__ */ e("b", null, "Part 1:"),
|
|
@@ -105,12 +106,12 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
105
106
|
__name: "greetingsSimulation",
|
|
106
107
|
emits: ["callQuestion"],
|
|
107
108
|
setup(p, { emit: s }) {
|
|
108
|
-
const t = E(), b =
|
|
109
|
+
const t = E(), b = h(!1), a = h(!1), d = h(!1), y = () => {
|
|
109
110
|
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.simulationSkill === "bdce5798-c378-4306-abe3-66c62983b423" ? (t.question = "Let's start", t.beginFlag = !1, d.value = !0) : (t.beginFlag = !1, t.question = "Let's start", s("callQuestion"));
|
|
110
|
-
}, v = `Hi, get ready to test your ${t.skillNameForSimulation || "Unknown"} knowledge! Here’s what to expect:`, o = ` Hi ${t.learnerName || "Expert"}, and welcome!`,
|
|
111
|
-
return (A, k) => (
|
|
111
|
+
}, v = `Hi, get ready to test your ${t.skillNameForSimulation || "Unknown"} knowledge! Here’s what to expect:`, o = ` Hi ${t.learnerName || "Expert"}, and welcome!`, x = ` Hi ${t.learnerName || "Expert"}, We'd like to see how you're progressing in Genpact. Are you ready for a conversation?`, _ = ` Hi ${t.learnerName || "Expert! "} 👋, Get ready for an interesting challenge based on Genpact’s Data and AI offerings.`, g = ` Hi, ${t.learnerName || "Expert"}. Get ready to test your ${t.skillNameForSimulation || "Unknown"} knowledge! Here’s what to expect:`, c = ge(() => ["32b7d6d8-f7a8-40a0-ab84-8784f25897ef"].includes(t.simulationSkill) ? v : ["7bd03cb6-79ad-4e2a-8a8b-88dc16147369"].includes(t.simulationSkill) ? o : ["25f8e44f-b83e-42d6-a168-b0e1fb83b26a"].includes(t.simulationSkill) ? x : ["bdce5798-c378-4306-abe3-66c62983b423"].includes(t.simulationSkill) ? _ : g), m = `Hi, get ready to test your ${t.skillNameForSimulation || "Unknown"} knowledge! Here’s what to expect:`, u = ` 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.`, f = ge(() => ["32b7d6d8-f7a8-40a0-ab84-8784f25897ef"].includes(t.simulationSkill) ? m : ["7bd03cb6-79ad-4e2a-8a8b-88dc16147369"].includes(t.simulationSkill) ? Jt : ["25f8e44f-b83e-42d6-a168-b0e1fb83b26a"].includes(t.simulationSkill) ? Ut : ["bdce5798-c378-4306-abe3-66c62983b423"].includes(t.simulationSkill) ? Kt : u);
|
|
112
|
+
return (A, k) => (l(), r("section", null, [
|
|
112
113
|
F(ie, { "is-visible": b.value }, {
|
|
113
|
-
default:
|
|
114
|
+
default: le(() => [
|
|
114
115
|
e("div", Rt, [
|
|
115
116
|
It,
|
|
116
117
|
Dt,
|
|
@@ -126,7 +127,7 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
126
127
|
_: 1
|
|
127
128
|
}, 8, ["is-visible"]),
|
|
128
129
|
F(ie, { "is-visible": a.value }, {
|
|
129
|
-
default:
|
|
130
|
+
default: le(() => [
|
|
130
131
|
e("div", Ht, [
|
|
131
132
|
jt,
|
|
132
133
|
qt,
|
|
@@ -142,7 +143,7 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
142
143
|
_: 1
|
|
143
144
|
}, 8, ["is-visible"]),
|
|
144
145
|
F(ie, { "is-visible": d.value }, {
|
|
145
|
-
default:
|
|
146
|
+
default: le(() => [
|
|
146
147
|
e("div", Et, [
|
|
147
148
|
Bt,
|
|
148
149
|
L(" The assessment will begin in text mode , where the AI will ask you a few initial questions – "),
|
|
@@ -164,18 +165,18 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
164
165
|
e("div", Ot, V(f.value), 1)
|
|
165
166
|
])
|
|
166
167
|
]),
|
|
167
|
-
|
|
168
|
+
i(t).beginFlag ? (l(), r("span", Wt, [
|
|
168
169
|
e("button", {
|
|
169
170
|
type: "button",
|
|
170
171
|
id: "button",
|
|
171
|
-
onClick:
|
|
172
|
+
onClick: y,
|
|
172
173
|
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"
|
|
173
174
|
}, " Let's begin ")
|
|
174
175
|
])) : M("", !0),
|
|
175
176
|
Xt
|
|
176
177
|
]));
|
|
177
178
|
}
|
|
178
|
-
}), Yt = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAB9AH0DASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD36medEDgypn/eFLL/AKl8f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r+GL+I/Cuj6Mt95f9nhQXI+/ivR6KAKGlaVa6VZQ29tbxRlI1RmRAu4gYyav0UUAf/9k=", ut = (p) => (K("data-v-a8021deb"), p = p(), Z(), p), es = { class: "fontFormattingAMA flex items-end justify-start py-2" }, ts = { class: "line-break w-full bg-gray-100 p-3 text-sm text-black md:text-[15px] rounded-lg" }, ss = ["innerHTML"], as = ["innerHTML"], os = {
|
|
179
180
|
key: 0,
|
|
180
181
|
class: "py-4"
|
|
181
182
|
}, ns = { class: "fontFormattingAMA px-2 py-1.5 md:px-6" }, is = ["value", "disabled", "name"], ls = {
|
|
@@ -233,12 +234,12 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
233
234
|
},
|
|
234
235
|
emits: ["char-typed"],
|
|
235
236
|
setup(p, { emit: s }) {
|
|
236
|
-
const t = p, b =
|
|
237
|
+
const t = p, b = h([]), a = h(!1), d = E(), y = h("");
|
|
237
238
|
let v = [], o = "";
|
|
238
|
-
const
|
|
239
|
-
v = o.split(""),
|
|
239
|
+
const x = async () => {
|
|
240
|
+
v = o.split(""), y.value = "";
|
|
240
241
|
for (let c = 0; c < v.length; c++)
|
|
241
|
-
|
|
242
|
+
y.value += v[c], t.answer.includes("Feedback and Assessment") ? (console.log("Feedback and Assessment found"), o.length - 5 > v.length && c % 30 && s("char-typed")) : c % 30 && s("char-typed"), await new Promise((m) => setTimeout(m, 60));
|
|
242
243
|
}, _ = () => {
|
|
243
244
|
d.isRestart = !0, d.searchBoxdisable = !1, d.showVoiceComponent = !0, d.showSelectTypeConvesation = !1, d.showModelToggle = !0, d.isSpeechToggle = !1;
|
|
244
245
|
}, g = ge(() => {
|
|
@@ -274,14 +275,14 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
274
275
|
'<div style="font-size: 16px; font-weight: bold;">Model Solution</div>'
|
|
275
276
|
);
|
|
276
277
|
(c.includes("Thank you for your participation!") || c.includes("Thank you for your participation")) && (d.searchBoxdisable = !1, a.value = !0), (c.includes("BEGIN ROLE PLAY") || c.includes("BEGIN ROLE PLAY.")) && (d.showSelectTypeConvesation = !0);
|
|
277
|
-
const
|
|
278
|
+
const m = /\[([^\]]+)\]\((https?:\/\/[^\s]+)\)/g;
|
|
278
279
|
if (c.includes("AI Guru")) {
|
|
279
280
|
if (c.includes("AI Guru"))
|
|
280
|
-
return console.log("aig found"), c.replace(
|
|
281
|
+
return console.log("aig found"), c.replace(m, (u, f, A) => `<a href="https://genome.genpact.com/#aiguru" target="_blank" style="color: blue; text-decoration: underline; cursor:pointer;">${f}</a>`);
|
|
281
282
|
} else
|
|
282
|
-
return c.replace(
|
|
283
|
+
return c.replace(m, (u, f, A) => `<a href="${A}" target="_blank" rel="noopener noreferrer" style="color: blue; text-decoration: underline;">${f}</a>`);
|
|
283
284
|
});
|
|
284
|
-
return
|
|
285
|
+
return re(
|
|
285
286
|
() => t.answer,
|
|
286
287
|
() => {
|
|
287
288
|
let c = t.answer.replace(/[*#]/g, "").replace(
|
|
@@ -312,36 +313,36 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
312
313
|
/Model Solution/g,
|
|
313
314
|
'<div style="font-size: 16px; font-weight: bold;">Model Solution</div>'
|
|
314
315
|
);
|
|
315
|
-
const
|
|
316
|
-
c.includes("AI Guru") ? c = c.replace(
|
|
316
|
+
const m = /\[([^\]]+)\]\((https?:\/\/[^\s]+)\)/g;
|
|
317
|
+
c.includes("AI Guru") ? c = c.replace(m, (u, f, A) => `<a href="https://genome.genpact.com/#aiguru" target="_blank" style="color: blue; text-decoration: underline; cursor:pointer;">${f}</a>`) : c = c.replace(m, (u, f, A) => `<a href="${A}" target="_blank" rel="noopener noreferrer" style="color: blue; text-decoration: underline;">${f}</a>`), c.includes("Feedback and Assessment") && c.includes("END ROLE PLAY") ? (o = c.split("END ROLE PLAY")[0], console.log("END ROLE PLAY")) : o = c, d.showVoiceComponent && x();
|
|
317
318
|
},
|
|
318
319
|
{ immediate: !0 }
|
|
319
|
-
),
|
|
320
|
+
), re(b, (c) => {
|
|
320
321
|
d.question = (c ?? []).join(", ");
|
|
321
|
-
}), (c,
|
|
322
|
+
}), (c, m) => (l(), r("div", es, [
|
|
322
323
|
e("div", ts, [
|
|
323
|
-
|
|
324
|
+
i(d).simulationSkill === "7bd03cb6-79ad-4e2a-8a8b-88dc16147369" && i(d).showVoiceComponent === !0 && i(d).conversations.length - 1 === t.ansId && !t.answer.includes("BEGIN ROLE PLAY") ? (l(), r("span", {
|
|
324
325
|
key: 0,
|
|
325
326
|
class: "fontFormattingAMA answer-link",
|
|
326
|
-
innerHTML:
|
|
327
|
-
}, null, 8, ss)) : (
|
|
327
|
+
innerHTML: y.value
|
|
328
|
+
}, null, 8, ss)) : (l(), r("span", {
|
|
328
329
|
key: 1,
|
|
329
330
|
class: "fontFormattingAMA answer-link",
|
|
330
331
|
innerHTML: g.value
|
|
331
332
|
}, null, 8, as)),
|
|
332
333
|
e("div", null, [
|
|
333
|
-
p.optionsArray.length &&
|
|
334
|
-
(
|
|
334
|
+
p.optionsArray.length && i(d).mcqType === "multi_choice" ? (l(), r("div", os, [
|
|
335
|
+
(l(!0), r(ve, null, be(p.optionsArray, (u, f) => (l(), r("div", {
|
|
335
336
|
key: f,
|
|
336
337
|
class: "italic"
|
|
337
338
|
}, [
|
|
338
339
|
e("div", ns, [
|
|
339
|
-
|
|
340
|
+
xe(e("input", {
|
|
340
341
|
class: "mr-4 cursor-pointer",
|
|
341
342
|
type: "checkbox",
|
|
342
343
|
value: u,
|
|
343
|
-
"onUpdate:modelValue":
|
|
344
|
-
disabled:
|
|
344
|
+
"onUpdate:modelValue": m[0] || (m[0] = (A) => b.value = A),
|
|
345
|
+
disabled: i(d).conversations.length - 1 !== t.ansId,
|
|
345
346
|
name: g.value
|
|
346
347
|
}, null, 8, is), [
|
|
347
348
|
[gt, b.value]
|
|
@@ -349,8 +350,8 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
349
350
|
e("label", ls, V(u), 1)
|
|
350
351
|
])
|
|
351
352
|
]))), 128))
|
|
352
|
-
])) : p.optionsArray.length ? (
|
|
353
|
-
(
|
|
353
|
+
])) : p.optionsArray.length ? (l(), r("div", rs, [
|
|
354
|
+
(l(!0), r(ve, null, be(p.optionsArray, (u, f) => (l(), r("div", {
|
|
354
355
|
key: f,
|
|
355
356
|
class: "italic"
|
|
356
357
|
}, [
|
|
@@ -358,8 +359,8 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
358
359
|
e("input", {
|
|
359
360
|
class: "mr-4 cursor-pointer",
|
|
360
361
|
type: "radio",
|
|
361
|
-
onClick: (A) =>
|
|
362
|
-
disabled:
|
|
362
|
+
onClick: (A) => i(d).question = String(p.optionsArray[f]),
|
|
363
|
+
disabled: i(d).conversations.length - 1 !== t.ansId,
|
|
363
364
|
name: g.value
|
|
364
365
|
}, null, 8, cs),
|
|
365
366
|
e("label", us, V(u), 1)
|
|
@@ -367,13 +368,13 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
367
368
|
]))), 128))
|
|
368
369
|
])) : M("", !0)
|
|
369
370
|
]),
|
|
370
|
-
a.value &&
|
|
371
|
-
|
|
371
|
+
a.value && i(d).simulationSkill === "32b7d6d8-f7a8-40a0-ab84-8784f25897ef" ? (l(), r("div", ms, fs)) : M("", !0),
|
|
372
|
+
i(d).isSpeechToggle && i(d).showSelectTypeConvesation && (i(d).simulationSkill === "7bd03cb6-79ad-4e2a-8a8b-88dc16147369" || i(d).simulationSkill === "bdce5798-c378-4306-abe3-66c62983b423") && i(d).conversations.length - 1 === t.ansId ? (l(), r("div", gs, [
|
|
372
373
|
e("div", vs, [
|
|
373
374
|
e("button", {
|
|
374
375
|
type: "button",
|
|
375
376
|
id: "button",
|
|
376
|
-
onClick:
|
|
377
|
+
onClick: m[1] || (m[1] = (u) => _()),
|
|
377
378
|
class: "mt-4 cursor-pointer bg-[#021c42] hover:bg-blue-700 italic rounded-md px-4 py-2 text-center text-white text-[16px]"
|
|
378
379
|
}, " Start Conversation ")
|
|
379
380
|
])
|
|
@@ -382,7 +383,7 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
382
383
|
]));
|
|
383
384
|
}
|
|
384
385
|
});
|
|
385
|
-
const
|
|
386
|
+
const xs = /* @__PURE__ */ X(bs, [["__scopeId", "data-v-a8021deb"]]), ys = { class: "flex justify-end items-end py-3" }, ws = { class: "max-w-[80%]" }, _s = ["innerHTML"], As = /* @__PURE__ */ I({
|
|
386
387
|
__name: "learnerSimulation",
|
|
387
388
|
props: {
|
|
388
389
|
question: {
|
|
@@ -395,7 +396,7 @@ const ys = /* @__PURE__ */ X(bs, [["__scopeId", "data-v-cc5db4a2"]]), xs = { cla
|
|
|
395
396
|
}
|
|
396
397
|
},
|
|
397
398
|
setup(p) {
|
|
398
|
-
return (s, t) => (
|
|
399
|
+
return (s, t) => (l(), r("div", ys, [
|
|
399
400
|
e("div", ws, [
|
|
400
401
|
e("div", {
|
|
401
402
|
class: "w-fit fontFormattingAMA text-[0.8125rem] md:text-[0.9375rem] text-white bg-genpact-blue-box leading-6 p-3",
|
|
@@ -408,10 +409,10 @@ const ys = /* @__PURE__ */ X(bs, [["__scopeId", "data-v-cc5db4a2"]]), xs = { cla
|
|
|
408
409
|
/* @__PURE__ */ e("span", null, "."),
|
|
409
410
|
/* @__PURE__ */ e("span", null, "."),
|
|
410
411
|
/* @__PURE__ */ e("span", null, ".")
|
|
411
|
-
], -1)), Ps = /* @__PURE__ */
|
|
412
|
+
], -1)), Ps = /* @__PURE__ */ de('<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), Ts = /* @__PURE__ */ I({
|
|
412
413
|
__name: "LoadingResponse",
|
|
413
414
|
setup(p) {
|
|
414
|
-
const s =
|
|
415
|
+
const s = h("Generating response"), t = h([
|
|
415
416
|
"This may take a few seconds",
|
|
416
417
|
"Fetching the best response for you",
|
|
417
418
|
"Thinking... give me a moment",
|
|
@@ -423,7 +424,7 @@ const ys = /* @__PURE__ */ X(bs, [["__scopeId", "data-v-cc5db4a2"]]), xs = { cla
|
|
|
423
424
|
return setTimeout(() => {
|
|
424
425
|
const b = Math.floor(Math.random() * t.value.length);
|
|
425
426
|
s.value = t.value[b];
|
|
426
|
-
}, 15e3), (b, a) => (
|
|
427
|
+
}, 15e3), (b, a) => (l(), r("div", Ss, [
|
|
427
428
|
e("div", Ns, [
|
|
428
429
|
e("div", Cs, V(s.value), 1),
|
|
429
430
|
Ls
|
|
@@ -439,9 +440,9 @@ const Fs = /* @__PURE__ */ X(Ts, [["__scopeId", "data-v-347ad6de"]]), Ms = { cla
|
|
|
439
440
|
__name: "QuestionStreaming",
|
|
440
441
|
setup(p) {
|
|
441
442
|
const s = E();
|
|
442
|
-
return (t, b) => (
|
|
443
|
+
return (t, b) => (l(), r("div", Ms, [
|
|
443
444
|
e("div", zs, [
|
|
444
|
-
|
|
445
|
+
i(s).userSpeechText.toLowerCase().includes("play") && i(s).userSpeechText.length < 10 ? M("", !0) : (l(), r("div", Rs, V(i(s).userSpeechText), 1))
|
|
445
446
|
])
|
|
446
447
|
]));
|
|
447
448
|
}
|
|
@@ -454,59 +455,59 @@ const Fs = /* @__PURE__ */ X(Ts, [["__scopeId", "data-v-347ad6de"]]), Ms = { cla
|
|
|
454
455
|
}, Es = /* @__PURE__ */ I({
|
|
455
456
|
__name: "conversationSimulation",
|
|
456
457
|
setup(p) {
|
|
457
|
-
let s =
|
|
458
|
+
let s = h(""), t = h("");
|
|
458
459
|
s.value = '<a style="color:#00AECF;"', t.value = '<ul style="list-style: disc !important; margin-left: 3.5rem !important; padding: 0;"';
|
|
459
|
-
const b = E(), a =
|
|
460
|
+
const b = E(), a = h(), d = () => {
|
|
460
461
|
a.value.scrollTo(0, a.value.scrollHeight);
|
|
461
462
|
};
|
|
462
|
-
return
|
|
463
|
+
return ce(() => {
|
|
463
464
|
var o;
|
|
464
|
-
const
|
|
465
|
-
|
|
465
|
+
const y = document.getElementsByName("askQuestion"), v = Array.from(y);
|
|
466
|
+
y.length && ((o = v == null ? void 0 : v.pop()) == null || o.scrollIntoView({ behavior: "smooth", block: "center" })), window.addEventListener("custom-event", d);
|
|
466
467
|
}), vt(() => {
|
|
467
468
|
var o;
|
|
468
|
-
const
|
|
469
|
-
|
|
469
|
+
const y = document.getElementsByName("askQuestion"), v = Array.from(y);
|
|
470
|
+
y.length && ((o = v == null ? void 0 : v.pop()) == null || o.scrollIntoView({ behavior: "smooth", block: "center" }));
|
|
470
471
|
}), bt(() => {
|
|
471
472
|
window.removeEventListener("custom-event", d);
|
|
472
|
-
}), (
|
|
473
|
+
}), (y, v) => (l(), r("div", {
|
|
473
474
|
ref_key: "nestedElement",
|
|
474
475
|
ref: a,
|
|
475
476
|
class: "smooth-scroll overflow-auto md:px-6 px-2"
|
|
476
477
|
}, [
|
|
477
478
|
F(Zt, {
|
|
478
|
-
onCallQuestion: v[0] || (v[0] = (o) =>
|
|
479
|
+
onCallQuestion: v[0] || (v[0] = (o) => y.$emit("callQuestion"))
|
|
479
480
|
}),
|
|
480
|
-
(
|
|
481
|
-
o.question ? (
|
|
481
|
+
(l(!0), r(ve, null, be(i(b).conversations, (o, x) => (l(), r("div", { key: x }, [
|
|
482
|
+
o.question ? (l(), r("div", Ds, [
|
|
482
483
|
F(As, {
|
|
483
484
|
question: o == null ? void 0 : o.question,
|
|
484
485
|
c2question: o == null ? void 0 : o.c2question,
|
|
485
486
|
"show-feedback": o == null ? void 0 : o.showFeedback,
|
|
486
|
-
id: `qId${
|
|
487
|
+
id: `qId${x}`,
|
|
487
488
|
name: "askQuestion",
|
|
488
|
-
"que-id":
|
|
489
|
+
"que-id": x
|
|
489
490
|
}, null, 8, ["question", "c2question", "show-feedback", "id", "que-id"])
|
|
490
491
|
])) : M("", !0),
|
|
491
|
-
o.answer ? (
|
|
492
|
-
F(
|
|
492
|
+
o.answer ? (l(), r("div", Hs, [
|
|
493
|
+
F(xs, {
|
|
493
494
|
question: o == null ? void 0 : o.question,
|
|
494
495
|
c2question: o == null ? void 0 : o.c2question,
|
|
495
496
|
"show-sources": o == null ? void 0 : o.showSources,
|
|
496
497
|
questionId: o.id,
|
|
497
|
-
answer: o.answer.replaceAll("<a",
|
|
498
|
+
answer: o.answer.replaceAll("<a", i(s)).replaceAll("<ul", i(t)),
|
|
498
499
|
"show-feedback": o.showFeedback,
|
|
499
500
|
"related-ques": o == null ? void 0 : o.relatedQues,
|
|
500
501
|
"options-array": o == null ? void 0 : o.optionsArray,
|
|
501
|
-
"ans-id":
|
|
502
|
+
"ans-id": x,
|
|
502
503
|
onCharTyped: d
|
|
503
504
|
}, null, 8, ["question", "c2question", "show-sources", "questionId", "answer", "show-feedback", "related-ques", "options-array", "ans-id"])
|
|
504
505
|
])) : M("", !0)
|
|
505
506
|
]))), 128)),
|
|
506
|
-
|
|
507
|
+
i(b).dotLoader ? (l(), r("div", js, [
|
|
507
508
|
F(Fs)
|
|
508
509
|
])) : M("", !0),
|
|
509
|
-
|
|
510
|
+
i(b).userspeaking ? (l(), r("div", qs, [
|
|
510
511
|
F(Is)
|
|
511
512
|
])) : M("", !0)
|
|
512
513
|
], 512));
|
|
@@ -521,7 +522,7 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
521
522
|
viewBox: "0 0 36 24",
|
|
522
523
|
class: "fill-white",
|
|
523
524
|
style: { transform: "scaleX(-1)" }
|
|
524
|
-
}, Qs = /* @__PURE__ */
|
|
525
|
+
}, Qs = /* @__PURE__ */ de('<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 = [
|
|
525
526
|
Qs
|
|
526
527
|
], Ws = {
|
|
527
528
|
key: 1,
|
|
@@ -532,12 +533,12 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
532
533
|
viewBox: "0 0 36 24",
|
|
533
534
|
class: "fill-white",
|
|
534
535
|
style: { transform: "scaleX(-1)" }
|
|
535
|
-
}, Js = /* @__PURE__ */
|
|
536
|
+
}, Js = /* @__PURE__ */ de('<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), Us = [
|
|
536
537
|
Js
|
|
537
538
|
], Ks = {
|
|
538
539
|
key: 2,
|
|
539
540
|
class: "flex items-center"
|
|
540
|
-
}, Zs = /* @__PURE__ */
|
|
541
|
+
}, Zs = /* @__PURE__ */ de('<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), Ys = [
|
|
541
542
|
Zs
|
|
542
543
|
], ea = { class: "tooltiptext text-genpact-darkest-teal" }, ta = /* @__PURE__ */ e("svg", {
|
|
543
544
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -568,12 +569,12 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
568
569
|
], na = /* @__PURE__ */ I({
|
|
569
570
|
__name: "NewVoiceConversation",
|
|
570
571
|
setup(p) {
|
|
571
|
-
const s = E(), t =
|
|
572
|
+
const s = E(), t = ue(), b = h(""), a = h(!1), d = h("Turn on mic"), y = () => {
|
|
572
573
|
a.value === !1 ? s.elevenLabs ? (console.log("mic enabled true 11labs"), a.value = !0, _t(), H.value = "user", d.value = "Turn off mic") : (console.log("mic enabled true"), a.value = !0, rt(), At(), H.value = "user", d.value = "Turn off mic") : s.elevenLabs ? (console.log("mic enabled false"), it(), a.value = !1, d.value = "Turn on mic") : (console.log("mic enabled false"), fe(), a.value = !1, d.value = "Turn on mic");
|
|
573
574
|
}, v = () => {
|
|
574
575
|
s.elevenLabs ? (console.log("closeConversation 11 labs"), it(), H.value = "none", a.value = !1) : (console.log("closeConversation"), fe(), rt(), H.value = "none", a.value = !1);
|
|
575
576
|
}, o = async () => {
|
|
576
|
-
var
|
|
577
|
+
var x, _, g, c, m, u;
|
|
577
578
|
try {
|
|
578
579
|
const f = {
|
|
579
580
|
question: Q.value || ne.value
|
|
@@ -582,12 +583,12 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
582
583
|
const A = {
|
|
583
584
|
past_messages: s.past_messages,
|
|
584
585
|
question: Q.value || ne.value,
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
586
|
+
skillId: s.simulationSkill,
|
|
587
|
+
bandCode: s.band_code,
|
|
588
|
+
userGenomeFunction: s.genomeFunctionValue,
|
|
589
|
+
userGenomeRole: s.genomeRoleValue
|
|
589
590
|
}, k = await U("/sqlTest", A);
|
|
590
|
-
if (H.value = "bot", b.value = (_ = (
|
|
591
|
+
if (H.value = "bot", b.value = (_ = (x = k == null ? void 0 : k.data) == null ? void 0 : x.body) == null ? void 0 : _.answer, b.value === "") {
|
|
591
592
|
console.log("in the if case calling api again");
|
|
592
593
|
const z = await U("/sqlTest", A);
|
|
593
594
|
s.addConversation((g = z.data) == null ? void 0 : g.body, "new");
|
|
@@ -610,54 +611,54 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
610
611
|
} catch (f) {
|
|
611
612
|
if (console.error(f), $.isAxiosError(f)) {
|
|
612
613
|
const A = f;
|
|
613
|
-
console.log("Error found!"), console.error((
|
|
614
|
+
console.log("Error found!"), console.error((m = A.response) == null ? void 0 : m.data), t.setError(((u = A.response) == null ? void 0 : u.data).message);
|
|
614
615
|
} else
|
|
615
616
|
t.setError("There was an issue, please contact helpmate");
|
|
616
617
|
}
|
|
617
618
|
};
|
|
618
|
-
return
|
|
619
|
-
if (
|
|
620
|
-
if (console.log("Recognized text:",
|
|
619
|
+
return re(Q, async (x) => {
|
|
620
|
+
if (x) {
|
|
621
|
+
if (console.log("Recognized text:", x), Q.value.toLowerCase().includes("play") && Q.value.length < 10) {
|
|
621
622
|
console.log("play command detected, ignoring input");
|
|
622
623
|
return;
|
|
623
624
|
}
|
|
624
625
|
H.value = "listening", s.userspeaking = !1, await o(), Q.value = "";
|
|
625
626
|
}
|
|
626
|
-
}),
|
|
627
|
-
|
|
628
|
-
}), (
|
|
629
|
-
|
|
627
|
+
}), re(ne, async (x) => {
|
|
628
|
+
x && (console.log("Recognized text:", x), H.value = "listening", await o(), ne.value = "");
|
|
629
|
+
}), (x, _) => (l(), r("div", $s, [
|
|
630
|
+
i(H) === "bot" ? (l(), r("div", Vs, [
|
|
630
631
|
e("span", null, [
|
|
631
|
-
(
|
|
632
|
+
(l(), r("svg", Gs, Os))
|
|
632
633
|
])
|
|
633
|
-
])) :
|
|
634
|
+
])) : i(H) === "user" ? (l(), r("div", Ws, [
|
|
634
635
|
e("span", null, [
|
|
635
|
-
(
|
|
636
|
+
(l(), r("svg", Xs, Us))
|
|
636
637
|
])
|
|
637
|
-
])) :
|
|
638
|
+
])) : i(H) === "listening" ? (l(), r("div", Ks, Ys)) : M("", !0),
|
|
638
639
|
e("div", {
|
|
639
640
|
class: W([a.value ? "" : "animate-pulse", "tooltip"])
|
|
640
641
|
}, [
|
|
641
642
|
e("span", ea, V(d.value), 1),
|
|
642
|
-
a.value ? (
|
|
643
|
+
a.value ? (l(), r("button", {
|
|
643
644
|
key: 0,
|
|
644
645
|
class: "rounded-full bg-white p-2 transition hover:bg-gray-300",
|
|
645
|
-
onClick: _[0] || (_[0] = (g) =>
|
|
646
|
-
}, sa)) : (
|
|
646
|
+
onClick: _[0] || (_[0] = (g) => y())
|
|
647
|
+
}, sa)) : (l(), r("button", {
|
|
647
648
|
key: 1,
|
|
648
649
|
class: "rounded-full bg-white p-2 transition hover:bg-gray-300",
|
|
649
|
-
onClick: _[1] || (_[1] = (g) =>
|
|
650
|
+
onClick: _[1] || (_[1] = (g) => y())
|
|
650
651
|
}, oa))
|
|
651
652
|
], 2),
|
|
652
653
|
e("button", {
|
|
653
654
|
class: "rounded-full bg-white p-2 hover:bg-gray-300",
|
|
654
655
|
onClick: _[2] || (_[2] = (g) => v())
|
|
655
656
|
}, [
|
|
656
|
-
F(
|
|
657
|
+
F(i(St), { class: "h-[10px] w-[10px] text-gray-700" })
|
|
657
658
|
])
|
|
658
659
|
]));
|
|
659
660
|
}
|
|
660
|
-
}), B = (p) => (K("data-v-
|
|
661
|
+
}), B = (p) => (K("data-v-9ec493aa"), p = p(), Z(), p), ia = { class: "z-3 absolute bottom-0 mt-4 w-full bg-white px-2 md:px-6" }, la = { class: "py-2" }, ra = { class: "flex" }, da = { class: "z-1 relative w-full" }, ca = { class: "flex justify-between my-2 w-full" }, ua = /* @__PURE__ */ B(() => /* @__PURE__ */ e("div", null, null, -1)), ma = {
|
|
661
662
|
key: 0,
|
|
662
663
|
class: "flex justify-center bg-genpact-darkest-blue px-4 rounded-full"
|
|
663
664
|
}, ha = { class: "relative w-full" }, pa = { class: "absolute inset-y-0 left-0 flex items-center pl-3" }, fa = { class: "tooltip" }, ga = /* @__PURE__ */ B(() => /* @__PURE__ */ e("span", { class: "tooltiptext text-genpact-darkest-teal" }, "Restart", -1)), va = /* @__PURE__ */ B(() => /* @__PURE__ */ e("path", {
|
|
@@ -670,10 +671,10 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
670
671
|
"stroke-width": "2",
|
|
671
672
|
"stroke-linecap": "round",
|
|
672
673
|
"stroke-linejoin": "round"
|
|
673
|
-
}, null, -1)),
|
|
674
|
+
}, null, -1)), xa = [
|
|
674
675
|
va,
|
|
675
676
|
ba
|
|
676
|
-
],
|
|
677
|
+
], ya = { class: "absolute inset-y-0 right-0 flex items-center md:pr-8 pr-3" }, wa = { key: 0 }, _a = ["disabled"], Aa = /* @__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)), ka = [
|
|
677
678
|
Aa
|
|
678
679
|
], Sa = {
|
|
679
680
|
key: 1,
|
|
@@ -690,18 +691,16 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
690
691
|
], -1)), Ma = /* @__PURE__ */ I({
|
|
691
692
|
__name: "NewQuestionSimulation",
|
|
692
693
|
setup(p, { expose: s }) {
|
|
693
|
-
const t = E(), b =
|
|
694
|
+
const t = E(), b = ue(), a = h(""), d = h("");
|
|
694
695
|
t.question = "";
|
|
695
|
-
const
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
d.value = t.recognizedText, ue(() => {
|
|
699
|
-
x.value.focus();
|
|
696
|
+
const y = h(null), v = h(!1), o = h(0);
|
|
697
|
+
d.value = t.recognizedText, ce(() => {
|
|
698
|
+
y.value.focus();
|
|
700
699
|
});
|
|
701
|
-
const
|
|
700
|
+
const x = () => {
|
|
702
701
|
window.location.reload();
|
|
703
702
|
}, _ = async () => {
|
|
704
|
-
var
|
|
703
|
+
var m, u, f, A, k, z, ee, te, se, ae, oe;
|
|
705
704
|
try {
|
|
706
705
|
if (t.question.trim().length < 1) {
|
|
707
706
|
console.log("Please enter answer!");
|
|
@@ -712,8 +711,8 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
712
711
|
question: t.question || t.recognizedText
|
|
713
712
|
};
|
|
714
713
|
t.conversations.push(C);
|
|
715
|
-
const P =
|
|
716
|
-
P.value = t.question || t.recognizedText, t.question = "",
|
|
714
|
+
const P = h("");
|
|
715
|
+
P.value = t.question || t.recognizedText, t.question = "", y.value && (y.value.style.height = "auto");
|
|
717
716
|
const R = {
|
|
718
717
|
ohr_id: a.value,
|
|
719
718
|
past_messages: t.past_messages,
|
|
@@ -723,7 +722,7 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
723
722
|
userGenomeRole: t.genomeRoleValue,
|
|
724
723
|
skillId: t.simulationSkill || "937e84ef-e95d-4327-9afe-e7be2bf420eb"
|
|
725
724
|
}, T = await U("/sqlTest", R);
|
|
726
|
-
if (o.value += (u = (
|
|
725
|
+
if (o.value += (u = (m = T.data) == null ? void 0 : m.body) == null ? void 0 : u.totalTokenCount, console.log("Token Count:", o.value), a.value = (A = (f = T.data) == null ? void 0 : f.body) == null ? void 0 : A.ohr, ((z = (k = T == null ? void 0 : T.data) == null ? void 0 : k.body) == null ? void 0 : z.answer) === "") {
|
|
727
726
|
console.log("in the if case calling api again");
|
|
728
727
|
const D = await U("/sqlTest", R);
|
|
729
728
|
t.addConversation((ee = D.data) == null ? void 0 : ee.body, "new");
|
|
@@ -737,19 +736,19 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
737
736
|
} else
|
|
738
737
|
b.setError("There was an issue, please contact helpmate");
|
|
739
738
|
}
|
|
740
|
-
}, g = (
|
|
741
|
-
|
|
742
|
-
}, c = (
|
|
743
|
-
const u =
|
|
739
|
+
}, g = (m) => {
|
|
740
|
+
m.key === "Enter" && !m.shiftKey && (m.preventDefault(), _());
|
|
741
|
+
}, c = (m) => {
|
|
742
|
+
const u = m.target;
|
|
744
743
|
u.style.height = "auto", u.style.height = u.scrollHeight + "px";
|
|
745
744
|
};
|
|
746
|
-
return s({ sendQuestion: _ }), (
|
|
745
|
+
return s({ sendQuestion: _ }), (m, u) => (l(), r("div", ia, [
|
|
747
746
|
e("div", la, [
|
|
748
747
|
e("div", ra, [
|
|
749
748
|
e("div", da, [
|
|
750
749
|
e("div", ca, [
|
|
751
750
|
ua,
|
|
752
|
-
|
|
751
|
+
i(t).showVoiceComponent ? (l(), r("div", ma, [
|
|
753
752
|
F(na)
|
|
754
753
|
])) : M("", !0)
|
|
755
754
|
]),
|
|
@@ -757,8 +756,8 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
757
756
|
e("div", pa, [
|
|
758
757
|
e("div", fa, [
|
|
759
758
|
ga,
|
|
760
|
-
(
|
|
761
|
-
onClick:
|
|
759
|
+
(l(), r("svg", {
|
|
760
|
+
onClick: x,
|
|
762
761
|
class: "ml-2 h-7 w-7 rounded",
|
|
763
762
|
id: "newTopicDisable",
|
|
764
763
|
width: "7",
|
|
@@ -767,18 +766,18 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
767
766
|
fill: "none",
|
|
768
767
|
xmlns: "http://www.w3.org/2000/svg",
|
|
769
768
|
title: "restart"
|
|
770
|
-
},
|
|
769
|
+
}, xa))
|
|
771
770
|
])
|
|
772
771
|
]),
|
|
773
|
-
e("div",
|
|
774
|
-
v.value ? (
|
|
775
|
-
(
|
|
776
|
-
disabled:
|
|
772
|
+
e("div", ya, [
|
|
773
|
+
v.value ? (l(), r("div", Sa, La)) : (l(), r("div", wa, [
|
|
774
|
+
(l(), r("svg", {
|
|
775
|
+
disabled: i(t).beginFlag === !0,
|
|
777
776
|
class: W([
|
|
778
|
-
|
|
777
|
+
i(t).beginFlag === !0 ? "cursor-not-allowed text-gray-600" : "cursor-pointer",
|
|
779
778
|
"bi bi-send ml-2 h-7 w-7 rotate-45 rounded"
|
|
780
779
|
]),
|
|
781
|
-
onClick: u[0] || (u[0] = (f) =>
|
|
780
|
+
onClick: u[0] || (u[0] = (f) => i(t).searchBoxdisable === !1 || i(t).beginFlag === !0 ? "" : _()),
|
|
782
781
|
xmlns: "http://www.w3.org/2000/svg",
|
|
783
782
|
fill: "currentColor",
|
|
784
783
|
viewBox: "0 0 16 16"
|
|
@@ -786,24 +785,24 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
786
785
|
]))
|
|
787
786
|
]),
|
|
788
787
|
e("div", Pa, [
|
|
789
|
-
|
|
790
|
-
onPaste: u[1] || (u[1] =
|
|
788
|
+
xe(e("textarea", {
|
|
789
|
+
onPaste: u[1] || (u[1] = xt(() => {
|
|
791
790
|
}, ["prevent"])),
|
|
792
791
|
onKeydown: u[2] || (u[2] = (f) => v.value ? "" : g(f)),
|
|
793
|
-
disabled:
|
|
794
|
-
"onUpdate:modelValue": u[3] || (u[3] = (f) =>
|
|
792
|
+
disabled: i(t).searchBoxdisable === !1 || i(t).beginFlag === !0,
|
|
793
|
+
"onUpdate:modelValue": u[3] || (u[3] = (f) => i(t).question = f),
|
|
795
794
|
class: W([
|
|
796
795
|
"fontFormattingAMA rounded-lg flex w-full border border-genpact-darkest-teal py-[18px] px-[70px]",
|
|
797
|
-
|
|
796
|
+
i(t).beginFlag === !0 || i(t).searchBoxdisable === !1 ? "cursor-not-allowed bg-[#e5e7eb]" : "bg-white"
|
|
798
797
|
]),
|
|
799
798
|
placeholder: "Write your answer here...",
|
|
800
799
|
ref_key: "AiSearch",
|
|
801
|
-
ref:
|
|
800
|
+
ref: y,
|
|
802
801
|
rows: "1",
|
|
803
802
|
onInput: u[4] || (u[4] = (f) => c(f)),
|
|
804
803
|
style: { overflow: "hidden", transition: "height 0.2s" }
|
|
805
804
|
}, null, 42, Ta), [
|
|
806
|
-
[ct,
|
|
805
|
+
[ct, i(t).question]
|
|
807
806
|
])
|
|
808
807
|
])
|
|
809
808
|
]),
|
|
@@ -814,33 +813,33 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
814
813
|
]));
|
|
815
814
|
}
|
|
816
815
|
});
|
|
817
|
-
const za = /* @__PURE__ */ X(Ma, [["__scopeId", "data-v-
|
|
816
|
+
const za = /* @__PURE__ */ X(Ma, [["__scopeId", "data-v-9ec493aa"]]), me = (p) => (K("data-v-6c0980b5"), p = p(), Z(), p), Ra = { class: "z-3 absolute bottom-0 mt-4 w-full bg-white px-2 md:px-6" }, Ia = { class: "py-2" }, Da = { class: "flex" }, Ha = { class: "z-1 relative w-full" }, ja = { class: "relative w-full" }, qa = { class: "absolute inset-y-0 right-0 flex items-center md:pr-8 pr-3" }, Ea = { key: 0 }, Ba = ["disabled"], $a = /* @__PURE__ */ me(() => /* @__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)), Va = [
|
|
818
817
|
$a
|
|
819
818
|
], Ga = {
|
|
820
819
|
key: 1,
|
|
821
820
|
class: "tooltip"
|
|
822
|
-
}, Qa = /* @__PURE__ */
|
|
821
|
+
}, Qa = /* @__PURE__ */ me(() => /* @__PURE__ */ e("span", { class: "tooltiptext fontFormattingAMA" }, "Waiting for response", -1)), Oa = /* @__PURE__ */ me(() => /* @__PURE__ */ e("img", {
|
|
823
822
|
class: "w-7 h-7",
|
|
824
823
|
src: dt,
|
|
825
824
|
alt: "watingIcon"
|
|
826
825
|
}, null, -1)), Wa = [
|
|
827
826
|
Qa,
|
|
828
827
|
Oa
|
|
829
|
-
], Xa = { class: "flex justify-start gap-2 md:gap-1" }, Ja = ["disabled"], Ua = /* @__PURE__ */
|
|
828
|
+
], Xa = { class: "flex justify-start gap-2 md:gap-1" }, Ja = ["disabled"], Ua = /* @__PURE__ */ me(() => /* @__PURE__ */ e("div", { class: "pt-1 text-start font-sans text-[0.8125rem] md:text-[0.9375rem] font-bold text-gray-500" }, [
|
|
830
829
|
/* @__PURE__ */ e("div", null, " Note: AI-generated response may not be fully accurate; check with experts for critical information. ")
|
|
831
830
|
], -1)), Ka = /* @__PURE__ */ I({
|
|
832
831
|
__name: "NewMDMQuestionSimulation",
|
|
833
832
|
setup(p) {
|
|
834
|
-
const s = E(), t =
|
|
833
|
+
const s = E(), t = ue(), b = h("");
|
|
835
834
|
s.question = "";
|
|
836
|
-
const a =
|
|
837
|
-
b.value = s.recognizedText,
|
|
835
|
+
const a = h(null), d = h(!1), y = h(he), v = h(!1);
|
|
836
|
+
b.value = s.recognizedText, ce(() => {
|
|
838
837
|
a.value.focus();
|
|
839
838
|
});
|
|
840
839
|
const o = (_) => {
|
|
841
840
|
const g = _.length;
|
|
842
|
-
|
|
843
|
-
},
|
|
841
|
+
y.value = he - g, d.value = g >= he;
|
|
842
|
+
}, x = async () => {
|
|
844
843
|
var _, g, c;
|
|
845
844
|
console.log("options fdsfdscdzxfsdv", s.recognizedText);
|
|
846
845
|
try {
|
|
@@ -849,11 +848,11 @@ const za = /* @__PURE__ */ X(Ma, [["__scopeId", "data-v-f3203a7f"]]), he = (p) =
|
|
|
849
848
|
return;
|
|
850
849
|
}
|
|
851
850
|
v.value = !0, s.dotLoader = !0;
|
|
852
|
-
const
|
|
851
|
+
const m = {
|
|
853
852
|
question: s.question || s.recognizedText
|
|
854
853
|
};
|
|
855
|
-
console.log("ques",
|
|
856
|
-
const u =
|
|
854
|
+
console.log("ques", m), s.conversations.push(m);
|
|
855
|
+
const u = h("");
|
|
857
856
|
u.value = s.question || s.recognizedText, s.question = "";
|
|
858
857
|
const f = {
|
|
859
858
|
assessmentId: s.simulationSkill,
|
|
@@ -873,28 +872,28 @@ const za = /* @__PURE__ */ X(Ma, [["__scopeId", "data-v-f3203a7f"]]), he = (p) =
|
|
|
873
872
|
O === "prod" ? A = "/ManualExportActivity" : A = "/fetchCompletionDemo";
|
|
874
873
|
const k = await U(A, f);
|
|
875
874
|
s.addConversation((_ = k.data) == null ? void 0 : _.body, "new"), v.value = !1, s.dotLoader = !1, s.recognizedText = "";
|
|
876
|
-
} catch (
|
|
877
|
-
if (console.error(
|
|
878
|
-
const u =
|
|
875
|
+
} catch (m) {
|
|
876
|
+
if (console.error(m), $.isAxiosError(m)) {
|
|
877
|
+
const u = m;
|
|
879
878
|
console.log("Error found!"), console.error((g = u.response) == null ? void 0 : g.data), t.setError(((c = u.response) == null ? void 0 : c.data).message);
|
|
880
879
|
} else
|
|
881
880
|
t.setError("There was an issue, please contact helpmate");
|
|
882
881
|
}
|
|
883
882
|
};
|
|
884
|
-
return (_, g) => (
|
|
883
|
+
return (_, g) => (l(), r("div", Ra, [
|
|
885
884
|
e("div", Ia, [
|
|
886
885
|
e("div", Da, [
|
|
887
886
|
e("div", Ha, [
|
|
888
887
|
e("div", ja, [
|
|
889
888
|
e("div", qa, [
|
|
890
|
-
v.value ? (
|
|
891
|
-
(
|
|
892
|
-
disabled:
|
|
889
|
+
v.value ? (l(), r("div", Ga, Wa)) : (l(), r("div", Ea, [
|
|
890
|
+
(l(), r("svg", {
|
|
891
|
+
disabled: i(s).beginFlag === !0,
|
|
893
892
|
class: W([
|
|
894
|
-
|
|
893
|
+
i(s).beginFlag === !0 ? "cursor-not-allowed text-gray-600" : "cursor-pointer",
|
|
895
894
|
"bi bi-send ml-2 h-7 w-7 rotate-45 rounded"
|
|
896
895
|
]),
|
|
897
|
-
onClick: g[0] || (g[0] = (c) =>
|
|
896
|
+
onClick: g[0] || (g[0] = (c) => i(s).searchBoxdisable === !1 || i(s).beginFlag === !0 ? "" : x()),
|
|
898
897
|
xmlns: "http://www.w3.org/2000/svg",
|
|
899
898
|
fill: "currentColor",
|
|
900
899
|
viewBox: "0 0 16 16"
|
|
@@ -902,23 +901,23 @@ const za = /* @__PURE__ */ X(Ma, [["__scopeId", "data-v-f3203a7f"]]), he = (p) =
|
|
|
902
901
|
]))
|
|
903
902
|
]),
|
|
904
903
|
e("div", Xa, [
|
|
905
|
-
|
|
904
|
+
xe(e("input", {
|
|
906
905
|
onKeyup: [
|
|
907
|
-
g[1] || (g[1] =
|
|
908
|
-
g[3] || (g[3] = (c) => o(
|
|
906
|
+
g[1] || (g[1] = yt((c) => v.value ? "" : x(), ["enter"])),
|
|
907
|
+
g[3] || (g[3] = (c) => o(i(s).question))
|
|
909
908
|
],
|
|
910
|
-
disabled:
|
|
909
|
+
disabled: i(s).beginFlag === !0 || i(s).searchBoxdisable === !1,
|
|
911
910
|
class: W([
|
|
912
|
-
|
|
911
|
+
i(s).beginFlag === !0 || i(s).searchBoxdisable === !1 ? "cursor-not-allowed bg-[#e5e7eb]" : "bg-white",
|
|
913
912
|
"fontFormattingAMA rounded-lg flex w-full border border-genpact-darkest-teal py-[18px] pl-[30px] pr-[70px]"
|
|
914
913
|
]),
|
|
915
|
-
"onUpdate:modelValue": g[2] || (g[2] = (c) =>
|
|
914
|
+
"onUpdate:modelValue": g[2] || (g[2] = (c) => i(s).question = c),
|
|
916
915
|
placeholder: "Write your answer here...",
|
|
917
916
|
type: "text",
|
|
918
917
|
ref_key: "AiSearch",
|
|
919
918
|
ref: a
|
|
920
919
|
}, null, 42, Ja), [
|
|
921
|
-
[ct,
|
|
920
|
+
[ct, i(s).question]
|
|
922
921
|
])
|
|
923
922
|
])
|
|
924
923
|
]),
|
|
@@ -953,16 +952,16 @@ const Za = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-6c0980b5"]]), Y = (p) =>
|
|
|
953
952
|
}, vo = /* @__PURE__ */ I({
|
|
954
953
|
__name: "AssessmentSimulation",
|
|
955
954
|
setup(p) {
|
|
956
|
-
const s =
|
|
957
|
-
|
|
958
|
-
const a = E(), d =
|
|
955
|
+
const s = h(!0), t = h(!1), b = h(!1);
|
|
956
|
+
h(!1), h(!1);
|
|
957
|
+
const a = E(), d = ue(), y = h(""), v = h(""), o = h(""), x = h(""), _ = localStorage.getItem("accessToken");
|
|
959
958
|
let g = "";
|
|
960
|
-
const c =
|
|
961
|
-
let
|
|
962
|
-
const f =
|
|
959
|
+
const c = h("");
|
|
960
|
+
let m = "", u = "";
|
|
961
|
+
const f = h(), A = h(!1), k = new URL(window.location.href), z = k.searchParams.get("skillId") || k.searchParams.get("assessmentId");
|
|
963
962
|
v.value = k.searchParams.get("mode") ?? "", a.simulationSkill = z ?? "";
|
|
964
963
|
const ee = ["703331197", "703380812", "703331909", "703363051", "703319578"];
|
|
965
|
-
|
|
964
|
+
ce(async () => {
|
|
966
965
|
s.value = !0, await te(), await ae();
|
|
967
966
|
});
|
|
968
967
|
const te = async () => {
|
|
@@ -976,7 +975,7 @@ const Za = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-6c0980b5"]]), Y = (p) =>
|
|
|
976
975
|
if (console.error(N), s.value = !1, $.isAxiosError(N) && ((C = N.response) != null && C.status) || N && typeof N == "object" && "response" in N && N.response && typeof N.response == "object" && "status" in N.response && N.response.status) {
|
|
977
976
|
const S = N;
|
|
978
977
|
if (console.log("Error found!"), console.error((P = S.response) == null ? void 0 : P.data), ((R = S.response) == null ? void 0 : R.status) === 424 || ((T = S.response) == null ? void 0 : T.status) === 425 || ((j = S.response) == null ? void 0 : j.status) === 400) {
|
|
979
|
-
|
|
978
|
+
x.value = (D = S.response) == null ? void 0 : D.status, console.log("errorCode value", x.value), b.value = !0;
|
|
980
979
|
return;
|
|
981
980
|
}
|
|
982
981
|
d.setError(((q = S.response) == null ? void 0 : q.data).message);
|
|
@@ -984,12 +983,12 @@ const Za = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-6c0980b5"]]), Y = (p) =>
|
|
|
984
983
|
d.setError("There was an issue, please contact helpmate");
|
|
985
984
|
}
|
|
986
985
|
}, se = async () => {
|
|
987
|
-
var C, P, R, T, j, D, q, N, S, J,
|
|
986
|
+
var C, P, R, T, j, D, q, N, S, J, ye, we, _e, Ae, ke, Se, Ne, Ce, Le, Pe, Te, Fe, Me, ze, Re, Ie, De, He, je, qe, Ee, Be, $e, Ve, Ge, Qe, Oe, We, Xe, Je, Ue, Ke, Ze, Ye, et, tt, st, at;
|
|
988
987
|
console.log("Start getAssessmentDetails");
|
|
989
988
|
try {
|
|
990
989
|
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}`;
|
|
991
990
|
const n = await pe(g);
|
|
992
|
-
|
|
991
|
+
y.value = (P = (C = n == null ? void 0 : n.data) == null ? void 0 : C.data) == null ? void 0 : P.name, a.skillNameForSimulation = y.value, a.generatedPrompt = (T = (R = n == null ? void 0 : n.data) == null ? void 0 : R.data) == null ? void 0 : T.generatedPrompt, a.assessmentType = (D = (j = n == null ? void 0 : n.data) == null ? void 0 : j.data) == null ? void 0 : D.assessmentType, o.value = (N = (q = n == null ? void 0 : n.data) == null ? void 0 : q.data) == null ? void 0 : N.status, A.value = (J = (S = n == null ? void 0 : n.data) == null ? void 0 : S.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, m = (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;
|
|
993
992
|
const G = (Pe = (Le = n == null ? void 0 : n.data) == null ? void 0 : Le.data) == null ? void 0 : Pe.createdBy;
|
|
994
993
|
if (a.mcqType = (Fe = (Te = n == null ? void 0 : n.data) == null ? void 0 : Te.data) == null ? void 0 : Fe.mcqTypes, a.storeFinalFeedback = (ze = (Me = n == null ? void 0 : n.data) == null ? void 0 : Me.data) == null ? void 0 : ze.storeFinalFeedback, a.storeFinalScore = (Ie = (Re = n == null ? void 0 : n.data) == null ? void 0 : Re.data) == null ? void 0 : Ie.storeFinalScore, o.value === "inactive")
|
|
995
994
|
t.value = !0;
|
|
@@ -998,9 +997,9 @@ const Za = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-6c0980b5"]]), Y = (p) =>
|
|
|
998
997
|
else if (o.value === "active" && A.value && v.value === nt.DRAFT) {
|
|
999
998
|
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}`;
|
|
1000
999
|
const w = await pe(g);
|
|
1001
|
-
a.generatedPrompt = (He = (De = w == null ? void 0 : w.data) == null ? void 0 : De.data) == null ? void 0 : He.generatedPrompt, a.assessmentType = (qe = (je = w == null ? void 0 : w.data) == null ? void 0 : je.data) == null ? void 0 : qe.assessmentType, a.empSeniority = (Be = (Ee = w == null ? void 0 : w.data) == null ? void 0 : Ee.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 = (Qe = (Ge = w == null ? void 0 : w.data) == null ? void 0 : Ge.data) == null ? void 0 : Qe.storeFinalFeedback, a.storeFinalScore = (We = (Oe = w == null ? void 0 : w.data) == null ? void 0 : Oe.data) == null ? void 0 : We.storeFinalScore,
|
|
1000
|
+
a.generatedPrompt = (He = (De = w == null ? void 0 : w.data) == null ? void 0 : De.data) == null ? void 0 : He.generatedPrompt, a.assessmentType = (qe = (je = w == null ? void 0 : w.data) == null ? void 0 : je.data) == null ? void 0 : qe.assessmentType, a.empSeniority = (Be = (Ee = w == null ? void 0 : w.data) == null ? void 0 : Ee.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 = (Qe = (Ge = w == null ? void 0 : w.data) == null ? void 0 : Ge.data) == null ? void 0 : Qe.storeFinalFeedback, a.storeFinalScore = (We = (Oe = w == null ? void 0 : w.data) == null ? void 0 : Oe.data) == null ? void 0 : We.storeFinalScore, m = (Je = (Xe = w == null ? void 0 : w.data) == null ? void 0 : Xe.data) == null ? void 0 : Je.accessBand, u = (Ke = (Ue = w == null ? void 0 : w.data) == null ? void 0 : Ue.data) == null ? void 0 : Ke.accessOhrList;
|
|
1002
1001
|
}
|
|
1003
|
-
const mt = a == null ? void 0 : a.band_code, ot = (Ze =
|
|
1002
|
+
const mt = a == null ? void 0 : a.band_code, ot = (Ze = m == null ? void 0 : m.split(",")) == null ? void 0 : Ze.map((w) => w.trim());
|
|
1004
1003
|
if (G === (a == null ? void 0 : a.ohr) || ee.includes(a == null ? void 0 : a.ohr))
|
|
1005
1004
|
console.log("User has access to this assessment.");
|
|
1006
1005
|
else {
|
|
@@ -1061,18 +1060,18 @@ const Za = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-6c0980b5"]]), Y = (p) =>
|
|
|
1061
1060
|
var C;
|
|
1062
1061
|
(C = f.value) == null || C.sendQuestion();
|
|
1063
1062
|
};
|
|
1064
|
-
return (C, P) => (
|
|
1063
|
+
return (C, P) => (l(), r("section", null, [
|
|
1065
1064
|
F(ie, { "is-visible": b.value }, {
|
|
1066
|
-
default:
|
|
1065
|
+
default: le(() => [
|
|
1067
1066
|
e("div", Ya, [
|
|
1068
|
-
|
|
1069
|
-
|
|
1067
|
+
x.value === 424 || x.value === "425" ? (l(), r("div", eo, ao)) : M("", !0),
|
|
1068
|
+
x.value === 400 ? (l(), r("div", oo, lo)) : M("", !0)
|
|
1070
1069
|
])
|
|
1071
1070
|
]),
|
|
1072
1071
|
_: 1
|
|
1073
1072
|
}, 8, ["is-visible"]),
|
|
1074
1073
|
e("div", null, [
|
|
1075
|
-
s.value ? (
|
|
1074
|
+
s.value ? (l(), wt(pt, { key: 0 })) : (l(), r("main", ro, [
|
|
1076
1075
|
e("div", co, [
|
|
1077
1076
|
F(zt)
|
|
1078
1077
|
]),
|
|
@@ -1082,15 +1081,15 @@ const Za = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-6c0980b5"]]), Y = (p) =>
|
|
|
1082
1081
|
e("div", po, [
|
|
1083
1082
|
F(Bs, { onCallQuestion: oe }),
|
|
1084
1083
|
e("div", {
|
|
1085
|
-
class: W(
|
|
1084
|
+
class: W(i(a).showVoiceComponent === !0 ? "mt-[160px]" : "mt-[120px]")
|
|
1086
1085
|
}, null, 2)
|
|
1087
1086
|
]),
|
|
1088
|
-
|
|
1087
|
+
i(a).assessmentQuestion ? (l(), r("div", fo, [
|
|
1089
1088
|
F(za, {
|
|
1090
1089
|
ref_key: "newQuestionRef",
|
|
1091
1090
|
ref: f
|
|
1092
1091
|
}, null, 512)
|
|
1093
|
-
])) : (
|
|
1092
|
+
])) : (l(), r("div", go, [
|
|
1094
1093
|
F(Za)
|
|
1095
1094
|
]))
|
|
1096
1095
|
])
|