@genpact/genome.mfe.mgtwin-app 1.1.340-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-8a516362.mjs → AssessmentAMA-b224f19c.mjs} +4 -4
- package/dist/{AssessmentSimulation-034c0f8a.mjs → AssessmentSimulation-42c72f89.mjs} +65 -64
- package/dist/{EditSkillAdminData-153df5c8.mjs → EditSkillAdminData-d2fb59f3.mjs} +2 -2
- package/dist/{EditSkillData-cea08e7d.mjs → EditSkillData-557a0340.mjs} +2 -2
- package/dist/{HomeView-dd806d8a.mjs → HomeView-7db416ab.mjs} +5 -5
- package/dist/{Loading-7e32cd81.mjs → Loading-fd19c362.mjs} +1 -1
- package/dist/{LoadingSimulation-83817b7a.mjs → LoadingSimulation-26981c4e.mjs} +1 -1
- package/dist/{Modal-5bb3ed08.mjs → Modal-45d308ed.mjs} +1 -1
- package/dist/{PaperAirplaneIcon-21d1c79b.mjs → PaperAirplaneIcon-6f1d6d2e.mjs} +1 -1
- package/dist/{PromptTesting-50d7b188.mjs → PromptTesting-d477741f.mjs} +3 -3
- package/dist/{SkillAutomation-15758005.mjs → SkillAutomation-e84aa483.mjs} +3 -3
- package/dist/{SkillData-a48755e0.mjs → SkillData-bbf87ddd.mjs} +3 -3
- package/dist/{Testcase-1d816e54.mjs → Testcase-8f4fbd89.mjs} +3 -3
- package/dist/{UnderMaintenance-96214e44.mjs → UnderMaintenance-73021316.mjs} +1 -1
- package/dist/{VoiceTestcase-dcbe2287.mjs → VoiceTestcase-52f5590d.mjs} +3 -3
- package/dist/{XMarkIcon-cdc08cbd.mjs → XMarkIcon-0d644af3.mjs} +1 -1
- package/dist/{api-30738dbe.mjs → api-32199dd9.mjs} +1 -1
- package/dist/{main-ba33cc03.mjs → main-9ffc8c22.mjs} +1299 -1299
- package/dist/mgtwin.es.min.js +1 -1
- package/dist/mgtwin.umd.min.js +11 -11
- package/dist/{voiceServices-e627f944.mjs → voiceServices-ffc3bf4b.mjs} +2 -2
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as U, a as V, L as B } from "./LoadingSimulation-
|
|
2
|
-
import { _ as H, Q as M, a as z } from "./Modal-
|
|
3
|
-
import { d as y, r as u, H as R, o as c, c as d, a as s, u as $, y as L, t as S, G, p as N, g as E, C as Q, z as D, h as x, F as O, e as Z, f as I, b as v, k as F, w as K, m as W, L as Y, q as P, s as J, l as X } from "./main-
|
|
1
|
+
import { _ as U, a as V, L as B } from "./LoadingSimulation-26981c4e.mjs";
|
|
2
|
+
import { _ as H, Q as M, a as z } from "./Modal-45d308ed.mjs";
|
|
3
|
+
import { d as y, r as u, H as R, o as c, c as d, a as s, u as $, y as L, t as S, G, p as N, g as E, C as Q, z as D, h as x, F as O, e as Z, f as I, b as v, k as F, w as K, m as W, L as Y, q as P, s as J, l as X } from "./main-9ffc8c22.mjs";
|
|
4
4
|
import { _ as k } from "./_plugin-vue_export-helper-dad06003.mjs";
|
|
5
|
-
import { p as ee, g as se } from "./api-
|
|
5
|
+
import { p as ee, g as se } from "./api-32199dd9.mjs";
|
|
6
6
|
import "./loadernew-ac153a51.mjs";
|
|
7
7
|
const te = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#021c42] md:pr-6 lg:pr-6" }, ae = ["href"], oe = /* @__PURE__ */ s("img", {
|
|
8
8
|
class: "h-11 w-auto cursor-pointer",
|
|
@@ -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 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
|
|
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", {
|
|
@@ -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,9 +106,9 @@ 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
|
+
}, 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);
|
|
111
112
|
return (A, k) => (l(), r("section", null, [
|
|
112
113
|
F(ie, { "is-visible": b.value }, {
|
|
113
114
|
default: le(() => [
|
|
@@ -168,7 +169,7 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
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),
|
|
@@ -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,7 +314,7 @@ 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) => {
|
|
@@ -323,7 +324,7 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
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
|
+
innerHTML: y.value
|
|
327
328
|
}, null, 8, ss)) : (l(), r("span", {
|
|
328
329
|
key: 1,
|
|
329
330
|
class: "fontFormattingAMA answer-link",
|
|
@@ -336,7 +337,7 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
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,
|
|
@@ -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-a8021deb"]]), xs = { cla
|
|
|
395
396
|
}
|
|
396
397
|
},
|
|
397
398
|
setup(p) {
|
|
398
|
-
return (s, t) => (l(), r("div",
|
|
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",
|
|
@@ -461,35 +462,35 @@ 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) => (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
|
-
(l(!0), r(ve, null, be(i(b).conversations, (o,
|
|
481
|
+
(l(!0), r(ve, null, be(i(b).conversations, (o, x) => (l(), r("div", { key: x }, [
|
|
481
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
492
|
o.answer ? (l(), r("div", Hs, [
|
|
492
|
-
F(
|
|
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,
|
|
@@ -498,7 +499,7 @@ const Fs = /* @__PURE__ */ X(Ts, [["__scopeId", "data-v-347ad6de"]]), Ms = { cla
|
|
|
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)
|
|
@@ -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,17 +616,17 @@ 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
|
-
}), (
|
|
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, [
|
|
629
630
|
i(H) === "bot" ? (l(), r("div", Vs, [
|
|
630
631
|
e("span", null, [
|
|
631
632
|
(l(), r("svg", Gs, Os))
|
|
@@ -642,11 +643,11 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
642
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
|
+
onClick: _[0] || (_[0] = (g) => y())
|
|
646
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", {
|
|
@@ -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,
|
|
@@ -756,7 +757,7 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
756
757
|
e("div", fa, [
|
|
757
758
|
ga,
|
|
758
759
|
(l(), r("svg", {
|
|
759
|
-
onClick:
|
|
760
|
+
onClick: x,
|
|
760
761
|
class: "ml-2 h-7 w-7 rounded",
|
|
761
762
|
id: "newTopicDisable",
|
|
762
763
|
width: "7",
|
|
@@ -765,10 +766,10 @@ 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
|
+
e("div", ya, [
|
|
772
773
|
v.value ? (l(), r("div", Sa, La)) : (l(), r("div", wa, [
|
|
773
774
|
(l(), r("svg", {
|
|
774
775
|
disabled: i(t).beginFlag === !0,
|
|
@@ -784,8 +785,8 @@ 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
792
|
disabled: i(t).searchBoxdisable === !1 || i(t).beginFlag === !0,
|
|
@@ -796,7 +797,7 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
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" }
|
|
@@ -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 {
|
|
@@ -892,7 +893,7 @@ const za = /* @__PURE__ */ X(Ma, [["__scopeId", "data-v-9ec493aa"]]), me = (p) =
|
|
|
892
893
|
i(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) => i(s).searchBoxdisable === !1 || i(s).beginFlag === !0 ? "" :
|
|
896
|
+
onClick: g[0] || (g[0] = (c) => i(s).searchBoxdisable === !1 || i(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,9 +901,9 @@ 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[1] || (g[1] = yt((c) => v.value ? "" : x(), ["enter"])),
|
|
906
907
|
g[3] || (g[3] = (c) => o(i(s).question))
|
|
907
908
|
],
|
|
908
909
|
disabled: i(s).beginFlag === !0 || i(s).searchBoxdisable === !1,
|
|
@@ -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;
|
|
@@ -1063,8 +1064,8 @@ const Za = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-6c0980b5"]]), Y = (p) =>
|
|
|
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" ? (l(), r("div", eo, ao)) : M("", !0),
|
|
1068
|
+
x.value === 400 ? (l(), r("div", oo, lo)) : M("", !0)
|
|
1068
1069
|
])
|
|
1069
1070
|
]),
|
|
1070
1071
|
_: 1
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as U, u as z, k as O, r as c, o as i, c as d, a as e, w as b, m as k, b as n, n as S, v as L, F as V, e as P, t as _, q as D, D as T, p as $, g as H, i as F } from "./main-
|
|
1
|
+
import { d as U, u as z, k as O, r as c, o as i, c as d, a as e, w as b, m as k, b as n, n as S, v as L, F as V, e as P, t as _, q as D, D as T, p as $, g as H, i as F } from "./main-9ffc8c22.mjs";
|
|
2
2
|
import { _ as j } from "./loadernew-ac153a51.mjs";
|
|
3
|
-
import { p as B, g as Y } from "./api-
|
|
3
|
+
import { p as B, g as Y } from "./api-32199dd9.mjs";
|
|
4
4
|
import { _ as J } from "./_plugin-vue_export-helper-dad06003.mjs";
|
|
5
5
|
const r = (f) => ($("data-v-50115682"), f = f(), H(), f), Q = /* @__PURE__ */ r(() => /* @__PURE__ */ e("nav", { class: "bg-genpact-blue-box w-full px-5 mb-6" }, null, -1)), X = { class: "grid grid-cols-5 gap-8 p-10 items-stretch" }, Z = /* @__PURE__ */ r(() => /* @__PURE__ */ e("div", { class: "col-span-1 text-right" }, [
|
|
6
6
|
/* @__PURE__ */ e("label", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { o as r, c, a as e, d as j, M as U, h as q, b as a, K as M, u as W, k as P, r as i, w as y, m as k, n as S, f as _, F as A, e as H, v as O, t as x, q as B, D as Y, p as J, g as Q, i as D } from "./main-
|
|
1
|
+
import { o as r, c, a as e, d as j, M as U, h as q, b as a, K as M, u as W, k as P, r as i, w as y, m as k, n as S, f as _, F as A, e as H, v as O, t as x, q as B, D as Y, p as J, g as Q, i as D } from "./main-9ffc8c22.mjs";
|
|
2
2
|
import { _ as z } from "./loadernew-ac153a51.mjs";
|
|
3
|
-
import { p as $ } from "./api-
|
|
3
|
+
import { p as $ } from "./api-32199dd9.mjs";
|
|
4
4
|
import { _ as X } from "./genome-Logo-white-ffcf2413.mjs";
|
|
5
5
|
import { _ as Z } from "./_plugin-vue_export-helper-dad06003.mjs";
|
|
6
6
|
function ee(d, t) {
|