@genpact/genome.mfe.mgtwin-app 1.1.340-alpha → 1.1.342-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-8a516362.mjs → AssessmentAMA-918a145f.mjs} +4 -4
- package/dist/{AssessmentSimulation-034c0f8a.mjs → AssessmentSimulation-a1061afa.mjs} +124 -123
- package/dist/{EditSkillAdminData-153df5c8.mjs → EditSkillAdminData-9057335b.mjs} +2 -2
- package/dist/{EditSkillData-cea08e7d.mjs → EditSkillData-b0451cd3.mjs} +2 -2
- package/dist/{HomeView-dd806d8a.mjs → HomeView-258bf975.mjs} +5 -5
- package/dist/{Loading-7e32cd81.mjs → Loading-8ee26a7c.mjs} +1 -1
- package/dist/{LoadingSimulation-83817b7a.mjs → LoadingSimulation-c91e179f.mjs} +1 -1
- package/dist/{Modal-5bb3ed08.mjs → Modal-dbeb8b2e.mjs} +1 -1
- package/dist/{PaperAirplaneIcon-21d1c79b.mjs → PaperAirplaneIcon-5948b576.mjs} +1 -1
- package/dist/{PromptTesting-50d7b188.mjs → PromptTesting-bd3e6654.mjs} +3 -3
- package/dist/{SkillAutomation-15758005.mjs → SkillAutomation-44fafe41.mjs} +3 -3
- package/dist/{SkillData-a48755e0.mjs → SkillData-454a27c3.mjs} +3 -3
- package/dist/{Testcase-1d816e54.mjs → Testcase-5fd0ae4a.mjs} +3 -3
- package/dist/{UnderMaintenance-96214e44.mjs → UnderMaintenance-8ef4f22a.mjs} +1 -1
- package/dist/{VoiceTestcase-dcbe2287.mjs → VoiceTestcase-c95c3ce4.mjs} +3 -3
- package/dist/{XMarkIcon-cdc08cbd.mjs → XMarkIcon-15e3ee52.mjs} +1 -1
- package/dist/{api-30738dbe.mjs → api-68e7ae7c.mjs} +1 -1
- package/dist/{main-ba33cc03.mjs → main-6b3c46ae.mjs} +1333 -1333
- package/dist/mgtwin.es.min.js +1 -1
- package/dist/mgtwin.umd.min.js +11 -11
- package/dist/style.css +1 -1
- package/dist/{voiceServices-e627f944.mjs → voiceServices-6efcd5a1.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 he, M as nt } from "./Modal-
|
|
3
|
-
import { d as I, r as h, H as O, o as
|
|
1
|
+
import { _ as ht, a as dt, L as pt } from "./LoadingSimulation-c91e179f.mjs";
|
|
2
|
+
import { _ as ft, a as ie, Q as he, M as nt } from "./Modal-dbeb8b2e.mjs";
|
|
3
|
+
import { d as I, r as h, H as O, o as i, 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 l, 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-6b3c46ae.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-68e7ae7c.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-6efcd5a1.mjs";
|
|
7
|
+
import { r as St } from "./XMarkIcon-15e3ee52.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", {
|
|
@@ -23,7 +23,7 @@ const Nt = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#0
|
|
|
23
23
|
__name: "headerSimulation",
|
|
24
24
|
setup(p) {
|
|
25
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) => (
|
|
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
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,10 +106,10 @@ 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 = h(!1), a = h(!1), d = h(!1),
|
|
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) => (i(), r("section", null, [
|
|
112
113
|
F(ie, { "is-visible": b.value }, {
|
|
113
114
|
default: le(() => [
|
|
114
115
|
e("div", Rt, [
|
|
@@ -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
|
+
l(t).beginFlag ? (i(), 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/8QAHwAAAQUBAQEBAQEAAAA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AbP8AoG/bt3fN+VaPi34feNdM8L3t1f8AiZ7q2jXLweZncK5x/H1o3wi/4REWU/2rfu8zHy9aANHRtEi02KPxv46j+26dfDChfmbcehIrqvjS1ldeBvDk1hHssZHXylxjCntWxba9o3h74M6Pca5YpfQEKohYZIPrivMPiPoWsW2jWWtzaiZNLu232lrniFTyBj2oA+i/CHhnSNA0m3k02zWB7iFGkI/iO0V0leH/ALP+sapqaalHf3U80cQURiQkhRjtXuFACOu+Nl9QRXiF78CL+bWby/tfEUtsbiQuRHlTg9uK9wooA8L/AOFE63/0N95/38b/ABpsnwG1iWNo5PFl06MOVZ2IP617tRQByHgPwSnhDwqdFuJVvEaRnbevBz7V0VtpGm2coltrC2hkAwGSIA1dooAgurS2vYvKureOaPOdsihhn8ac8I+ytBGBGpQqu0Y28VLRQB5/4T+H174ft9ahutYmvBqAYLvJOzOa8/H7Oc6zGVNeKNuyCq4Ir6AooA8f8PfBzUdK162vr3xFcXtvEcvBKxZX9iDXp/8AYOkZ/wCQXZ/9+V/wrRooA8X8T/BC61/WLm5TW3htJH3JbY+RPoOldD4r+GL+I/Cuj6Mt95f9nhQXI+/ivR6KAKGlaVa6VZQ29tbxRlI1RmRAu4gYyav0UUAf/9k=", ut = (p) => (K("data-v-13e0a910"), 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 = h([]), a = h(!1), d = E(),
|
|
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(() => {
|
|
@@ -313,35 +314,35 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
313
314
|
'<div style="font-size: 16px; font-weight: bold;">Model Solution</div>'
|
|
314
315
|
);
|
|
315
316
|
const m = /\[([^\]]+)\]\((https?:\/\/[^\s]+)\)/g;
|
|
316
|
-
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 &&
|
|
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, m) => (
|
|
322
|
+
}), (c, m) => (i(), r("div", es, [
|
|
322
323
|
e("div", ts, [
|
|
323
|
-
|
|
324
|
+
l(d).simulationSkill === "7bd03cb6-79ad-4e2a-8a8b-88dc16147369" && l(d).showVoiceComponent === !0 && l(d).conversations.length - 1 === t.ansId && !t.answer.includes("BEGIN ROLE PLAY") ? (i(), 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)) : (i(), 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 && l(d).mcqType === "multi_choice" ? (i(), r("div", os, [
|
|
335
|
+
(i(!0), r(ve, null, be(p.optionsArray, (u, f) => (i(), 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
344
|
"onUpdate:modelValue": m[0] || (m[0] = (A) => b.value = A),
|
|
344
|
-
disabled:
|
|
345
|
+
disabled: l(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 ? (i(), r("div", rs, [
|
|
354
|
+
(i(!0), r(ve, null, be(p.optionsArray, (u, f) => (i(), 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) => l(d).question = String(p.optionsArray[f]),
|
|
363
|
+
disabled: l(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,8 +368,8 @@ 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 && l(d).simulationSkill === "32b7d6d8-f7a8-40a0-ab84-8784f25897ef" ? (i(), r("div", ms, fs)) : M("", !0),
|
|
372
|
+
l(d).isSpeechToggle && l(d).showSelectTypeConvesation && l(d).simulationSkill === "7bd03cb6-79ad-4e2a-8a8b-88dc16147369" && l(d).conversations.length - 1 === t.ansId ? (i(), r("div", gs, [
|
|
372
373
|
e("div", vs, [
|
|
373
374
|
e("button", {
|
|
374
375
|
type: "button",
|
|
@@ -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-13e0a910"]]), 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-a8021deb"]]), xs = { cla
|
|
|
395
396
|
}
|
|
396
397
|
},
|
|
397
398
|
setup(p) {
|
|
398
|
-
return (s, t) => (
|
|
399
|
+
return (s, t) => (i(), 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",
|
|
@@ -423,7 +424,7 @@ const ys = /* @__PURE__ */ X(bs, [["__scopeId", "data-v-a8021deb"]]), 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) => (i(), 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) => (i(), r("div", Ms, [
|
|
443
444
|
e("div", zs, [
|
|
444
|
-
|
|
445
|
+
l(s).userSpeechText.toLowerCase().includes("play") && l(s).userSpeechText.length < 10 ? M("", !0) : (i(), r("div", Rs, V(l(s).userSpeechText), 1))
|
|
445
446
|
])
|
|
446
447
|
]));
|
|
447
448
|
}
|
|
@@ -461,52 +462,52 @@ const Fs = /* @__PURE__ */ X(Ts, [["__scopeId", "data-v-347ad6de"]]), Ms = { cla
|
|
|
461
462
|
};
|
|
462
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) => (i(), 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
|
+
(i(!0), r(ve, null, be(l(b).conversations, (o, x) => (i(), r("div", { key: x }, [
|
|
482
|
+
o.question ? (i(), 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 ? (i(), 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", l(s)).replaceAll("<ul", l(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
|
+
l(b).dotLoader ? (i(), r("div", js, [
|
|
507
508
|
F(Fs)
|
|
508
509
|
])) : M("", !0),
|
|
509
|
-
|
|
510
|
+
l(b).userspeaking ? (i(), r("div", qs, [
|
|
510
511
|
F(Is)
|
|
511
512
|
])) : M("", !0)
|
|
512
513
|
], 512));
|
|
@@ -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 = ue(), b = h(""), a = h(!1), d = h("Turn on mic"),
|
|
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
|
|
@@ -587,7 +588,7 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
587
588
|
userGenomeFunction: s.genomeFunctionValue,
|
|
588
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");
|
|
@@ -615,45 +616,45 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
615
616
|
t.setError("There was an issue, please contact helpmate");
|
|
616
617
|
}
|
|
617
618
|
};
|
|
618
|
-
return re(Q, async (
|
|
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
|
-
}), re(ne, async (
|
|
627
|
-
|
|
628
|
-
}), (
|
|
629
|
-
|
|
627
|
+
}), re(ne, async (x) => {
|
|
628
|
+
x && (console.log("Recognized text:", x), H.value = "listening", await o(), ne.value = "");
|
|
629
|
+
}), (x, _) => (i(), r("div", $s, [
|
|
630
|
+
l(H) === "bot" ? (i(), r("div", Vs, [
|
|
630
631
|
e("span", null, [
|
|
631
|
-
(
|
|
632
|
+
(i(), r("svg", Gs, Os))
|
|
632
633
|
])
|
|
633
|
-
])) :
|
|
634
|
+
])) : l(H) === "user" ? (i(), r("div", Ws, [
|
|
634
635
|
e("span", null, [
|
|
635
|
-
(
|
|
636
|
+
(i(), r("svg", Xs, Us))
|
|
636
637
|
])
|
|
637
|
-
])) :
|
|
638
|
+
])) : l(H) === "listening" ? (i(), 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 ? (i(), 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)) : (i(), 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(l(St), { class: "h-[10px] w-[10px] text-gray-700" })
|
|
657
658
|
])
|
|
658
659
|
]));
|
|
659
660
|
}
|
|
@@ -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,
|
|
@@ -692,11 +693,11 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
692
693
|
setup(p, { expose: s }) {
|
|
693
694
|
const t = E(), b = ue(), a = h(""), d = h("");
|
|
694
695
|
t.question = "";
|
|
695
|
-
const
|
|
696
|
+
const y = h(null), v = h(!1), o = h(0);
|
|
696
697
|
d.value = t.recognizedText, ce(() => {
|
|
697
|
-
|
|
698
|
+
y.value.focus();
|
|
698
699
|
});
|
|
699
|
-
const
|
|
700
|
+
const x = () => {
|
|
700
701
|
window.location.reload();
|
|
701
702
|
}, _ = async () => {
|
|
702
703
|
var m, u, f, A, k, z, ee, te, se, ae, oe;
|
|
@@ -711,7 +712,7 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
711
712
|
};
|
|
712
713
|
t.conversations.push(C);
|
|
713
714
|
const P = h("");
|
|
714
|
-
P.value = t.question || t.recognizedText, t.question = "",
|
|
715
|
+
P.value = t.question || t.recognizedText, t.question = "", y.value && (y.value.style.height = "auto");
|
|
715
716
|
const R = {
|
|
716
717
|
ohr_id: a.value,
|
|
717
718
|
past_messages: t.past_messages,
|
|
@@ -741,13 +742,13 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
741
742
|
const u = m.target;
|
|
742
743
|
u.style.height = "auto", u.style.height = u.scrollHeight + "px";
|
|
743
744
|
};
|
|
744
|
-
return s({ sendQuestion: _ }), (m, u) => (
|
|
745
|
+
return s({ sendQuestion: _ }), (m, u) => (i(), r("div", ia, [
|
|
745
746
|
e("div", la, [
|
|
746
747
|
e("div", ra, [
|
|
747
748
|
e("div", da, [
|
|
748
749
|
e("div", ca, [
|
|
749
750
|
ua,
|
|
750
|
-
|
|
751
|
+
l(t).showVoiceComponent ? (i(), r("div", ma, [
|
|
751
752
|
F(na)
|
|
752
753
|
])) : M("", !0)
|
|
753
754
|
]),
|
|
@@ -755,8 +756,8 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
755
756
|
e("div", pa, [
|
|
756
757
|
e("div", fa, [
|
|
757
758
|
ga,
|
|
758
|
-
(
|
|
759
|
-
onClick:
|
|
759
|
+
(i(), r("svg", {
|
|
760
|
+
onClick: x,
|
|
760
761
|
class: "ml-2 h-7 w-7 rounded",
|
|
761
762
|
id: "newTopicDisable",
|
|
762
763
|
width: "7",
|
|
@@ -765,18 +766,18 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
765
766
|
fill: "none",
|
|
766
767
|
xmlns: "http://www.w3.org/2000/svg",
|
|
767
768
|
title: "restart"
|
|
768
|
-
},
|
|
769
|
+
}, xa))
|
|
769
770
|
])
|
|
770
771
|
]),
|
|
771
|
-
e("div",
|
|
772
|
-
v.value ? (
|
|
773
|
-
(
|
|
774
|
-
disabled:
|
|
772
|
+
e("div", ya, [
|
|
773
|
+
v.value ? (i(), r("div", Sa, La)) : (i(), r("div", wa, [
|
|
774
|
+
(i(), r("svg", {
|
|
775
|
+
disabled: l(t).beginFlag === !0,
|
|
775
776
|
class: W([
|
|
776
|
-
|
|
777
|
+
l(t).beginFlag === !0 ? "cursor-not-allowed text-gray-600" : "cursor-pointer",
|
|
777
778
|
"bi bi-send ml-2 h-7 w-7 rotate-45 rounded"
|
|
778
779
|
]),
|
|
779
|
-
onClick: u[0] || (u[0] = (f) =>
|
|
780
|
+
onClick: u[0] || (u[0] = (f) => l(t).searchBoxdisable === !1 || l(t).beginFlag === !0 ? "" : _()),
|
|
780
781
|
xmlns: "http://www.w3.org/2000/svg",
|
|
781
782
|
fill: "currentColor",
|
|
782
783
|
viewBox: "0 0 16 16"
|
|
@@ -784,24 +785,24 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
784
785
|
]))
|
|
785
786
|
]),
|
|
786
787
|
e("div", Pa, [
|
|
787
|
-
|
|
788
|
-
onPaste: u[1] || (u[1] =
|
|
788
|
+
xe(e("textarea", {
|
|
789
|
+
onPaste: u[1] || (u[1] = xt(() => {
|
|
789
790
|
}, ["prevent"])),
|
|
790
791
|
onKeydown: u[2] || (u[2] = (f) => v.value ? "" : g(f)),
|
|
791
|
-
disabled:
|
|
792
|
-
"onUpdate:modelValue": u[3] || (u[3] = (f) =>
|
|
792
|
+
disabled: l(t).searchBoxdisable === !1 || l(t).beginFlag === !0,
|
|
793
|
+
"onUpdate:modelValue": u[3] || (u[3] = (f) => l(t).question = f),
|
|
793
794
|
class: W([
|
|
794
795
|
"fontFormattingAMA rounded-lg flex w-full border border-genpact-darkest-teal py-[18px] px-[70px]",
|
|
795
|
-
|
|
796
|
+
l(t).beginFlag === !0 || l(t).searchBoxdisable === !1 ? "cursor-not-allowed bg-[#e5e7eb]" : "bg-white"
|
|
796
797
|
]),
|
|
797
798
|
placeholder: "Write your answer here...",
|
|
798
799
|
ref_key: "AiSearch",
|
|
799
|
-
ref:
|
|
800
|
+
ref: y,
|
|
800
801
|
rows: "1",
|
|
801
802
|
onInput: u[4] || (u[4] = (f) => c(f)),
|
|
802
803
|
style: { overflow: "hidden", transition: "height 0.2s" }
|
|
803
804
|
}, null, 42, Ta), [
|
|
804
|
-
[ct,
|
|
805
|
+
[ct, l(t).question]
|
|
805
806
|
])
|
|
806
807
|
])
|
|
807
808
|
]),
|
|
@@ -831,14 +832,14 @@ const za = /* @__PURE__ */ X(Ma, [["__scopeId", "data-v-9ec493aa"]]), me = (p) =
|
|
|
831
832
|
setup(p) {
|
|
832
833
|
const s = E(), t = ue(), b = h("");
|
|
833
834
|
s.question = "";
|
|
834
|
-
const a = h(null), d = h(!1),
|
|
835
|
+
const a = h(null), d = h(!1), y = h(he), v = h(!1);
|
|
835
836
|
b.value = s.recognizedText, ce(() => {
|
|
836
837
|
a.value.focus();
|
|
837
838
|
});
|
|
838
839
|
const o = (_) => {
|
|
839
840
|
const g = _.length;
|
|
840
|
-
|
|
841
|
-
},
|
|
841
|
+
y.value = he - g, d.value = g >= he;
|
|
842
|
+
}, x = async () => {
|
|
842
843
|
var _, g, c;
|
|
843
844
|
console.log("options fdsfdscdzxfsdv", s.recognizedText);
|
|
844
845
|
try {
|
|
@@ -879,20 +880,20 @@ const za = /* @__PURE__ */ X(Ma, [["__scopeId", "data-v-9ec493aa"]]), me = (p) =
|
|
|
879
880
|
t.setError("There was an issue, please contact helpmate");
|
|
880
881
|
}
|
|
881
882
|
};
|
|
882
|
-
return (_, g) => (
|
|
883
|
+
return (_, g) => (i(), r("div", Ra, [
|
|
883
884
|
e("div", Ia, [
|
|
884
885
|
e("div", Da, [
|
|
885
886
|
e("div", Ha, [
|
|
886
887
|
e("div", ja, [
|
|
887
888
|
e("div", qa, [
|
|
888
|
-
v.value ? (
|
|
889
|
-
(
|
|
890
|
-
disabled:
|
|
889
|
+
v.value ? (i(), r("div", Ga, Wa)) : (i(), r("div", Ea, [
|
|
890
|
+
(i(), r("svg", {
|
|
891
|
+
disabled: l(s).beginFlag === !0,
|
|
891
892
|
class: W([
|
|
892
|
-
|
|
893
|
+
l(s).beginFlag === !0 ? "cursor-not-allowed text-gray-600" : "cursor-pointer",
|
|
893
894
|
"bi bi-send ml-2 h-7 w-7 rotate-45 rounded"
|
|
894
895
|
]),
|
|
895
|
-
onClick: g[0] || (g[0] = (c) =>
|
|
896
|
+
onClick: g[0] || (g[0] = (c) => l(s).searchBoxdisable === !1 || l(s).beginFlag === !0 ? "" : x()),
|
|
896
897
|
xmlns: "http://www.w3.org/2000/svg",
|
|
897
898
|
fill: "currentColor",
|
|
898
899
|
viewBox: "0 0 16 16"
|
|
@@ -900,23 +901,23 @@ const za = /* @__PURE__ */ X(Ma, [["__scopeId", "data-v-9ec493aa"]]), me = (p) =
|
|
|
900
901
|
]))
|
|
901
902
|
]),
|
|
902
903
|
e("div", Xa, [
|
|
903
|
-
|
|
904
|
+
xe(e("input", {
|
|
904
905
|
onKeyup: [
|
|
905
|
-
g[1] || (g[1] =
|
|
906
|
-
g[3] || (g[3] = (c) => o(
|
|
906
|
+
g[1] || (g[1] = yt((c) => v.value ? "" : x(), ["enter"])),
|
|
907
|
+
g[3] || (g[3] = (c) => o(l(s).question))
|
|
907
908
|
],
|
|
908
|
-
disabled:
|
|
909
|
+
disabled: l(s).beginFlag === !0 || l(s).searchBoxdisable === !1,
|
|
909
910
|
class: W([
|
|
910
|
-
|
|
911
|
+
l(s).beginFlag === !0 || l(s).searchBoxdisable === !1 ? "cursor-not-allowed bg-[#e5e7eb]" : "bg-white",
|
|
911
912
|
"fontFormattingAMA rounded-lg flex w-full border border-genpact-darkest-teal py-[18px] pl-[30px] pr-[70px]"
|
|
912
913
|
]),
|
|
913
|
-
"onUpdate:modelValue": g[2] || (g[2] = (c) =>
|
|
914
|
+
"onUpdate:modelValue": g[2] || (g[2] = (c) => l(s).question = c),
|
|
914
915
|
placeholder: "Write your answer here...",
|
|
915
916
|
type: "text",
|
|
916
917
|
ref_key: "AiSearch",
|
|
917
918
|
ref: a
|
|
918
919
|
}, null, 42, Ja), [
|
|
919
|
-
[ct,
|
|
920
|
+
[ct, l(s).question]
|
|
920
921
|
])
|
|
921
922
|
])
|
|
922
923
|
]),
|
|
@@ -953,7 +954,7 @@ const Za = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-6c0980b5"]]), Y = (p) =>
|
|
|
953
954
|
setup(p) {
|
|
954
955
|
const s = h(!0), t = h(!1), b = h(!1);
|
|
955
956
|
h(!1), h(!1);
|
|
956
|
-
const a = E(), d = ue(),
|
|
957
|
+
const a = E(), d = ue(), y = h(""), v = h(""), o = h(""), x = h(""), _ = localStorage.getItem("accessToken");
|
|
957
958
|
let g = "";
|
|
958
959
|
const c = h("");
|
|
959
960
|
let m = "", u = "";
|
|
@@ -974,7 +975,7 @@ const Za = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-6c0980b5"]]), Y = (p) =>
|
|
|
974
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) {
|
|
975
976
|
const S = N;
|
|
976
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) {
|
|
977
|
-
|
|
978
|
+
x.value = (D = S.response) == null ? void 0 : D.status, console.log("errorCode value", x.value), b.value = !0;
|
|
978
979
|
return;
|
|
979
980
|
}
|
|
980
981
|
d.setError(((q = S.response) == null ? void 0 : q.data).message);
|
|
@@ -982,12 +983,12 @@ const Za = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-6c0980b5"]]), Y = (p) =>
|
|
|
982
983
|
d.setError("There was an issue, please contact helpmate");
|
|
983
984
|
}
|
|
984
985
|
}, se = async () => {
|
|
985
|
-
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;
|
|
986
987
|
console.log("Start getAssessmentDetails");
|
|
987
988
|
try {
|
|
988
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}`;
|
|
989
990
|
const n = await pe(g);
|
|
990
|
-
|
|
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;
|
|
991
992
|
const G = (Pe = (Le = n == null ? void 0 : n.data) == null ? void 0 : Le.data) == null ? void 0 : Pe.createdBy;
|
|
992
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")
|
|
993
994
|
t.value = !0;
|
|
@@ -1059,18 +1060,18 @@ const Za = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-6c0980b5"]]), Y = (p) =>
|
|
|
1059
1060
|
var C;
|
|
1060
1061
|
(C = f.value) == null || C.sendQuestion();
|
|
1061
1062
|
};
|
|
1062
|
-
return (C, P) => (
|
|
1063
|
+
return (C, P) => (i(), r("section", null, [
|
|
1063
1064
|
F(ie, { "is-visible": b.value }, {
|
|
1064
1065
|
default: le(() => [
|
|
1065
1066
|
e("div", Ya, [
|
|
1066
|
-
|
|
1067
|
-
|
|
1067
|
+
x.value === 424 || x.value === "425" ? (i(), r("div", eo, ao)) : M("", !0),
|
|
1068
|
+
x.value === 400 ? (i(), r("div", oo, lo)) : M("", !0)
|
|
1068
1069
|
])
|
|
1069
1070
|
]),
|
|
1070
1071
|
_: 1
|
|
1071
1072
|
}, 8, ["is-visible"]),
|
|
1072
1073
|
e("div", null, [
|
|
1073
|
-
s.value ? (
|
|
1074
|
+
s.value ? (i(), wt(pt, { key: 0 })) : (i(), r("main", ro, [
|
|
1074
1075
|
e("div", co, [
|
|
1075
1076
|
F(zt)
|
|
1076
1077
|
]),
|
|
@@ -1080,15 +1081,15 @@ const Za = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-6c0980b5"]]), Y = (p) =>
|
|
|
1080
1081
|
e("div", po, [
|
|
1081
1082
|
F(Bs, { onCallQuestion: oe }),
|
|
1082
1083
|
e("div", {
|
|
1083
|
-
class: W(
|
|
1084
|
+
class: W(l(a).showVoiceComponent === !0 ? "mt-[160px]" : "mt-[120px]")
|
|
1084
1085
|
}, null, 2)
|
|
1085
1086
|
]),
|
|
1086
|
-
|
|
1087
|
+
l(a).assessmentQuestion ? (i(), r("div", fo, [
|
|
1087
1088
|
F(za, {
|
|
1088
1089
|
ref_key: "newQuestionRef",
|
|
1089
1090
|
ref: f
|
|
1090
1091
|
}, null, 512)
|
|
1091
|
-
])) : (
|
|
1092
|
+
])) : (i(), r("div", go, [
|
|
1092
1093
|
F(Za)
|
|
1093
1094
|
]))
|
|
1094
1095
|
])
|