@genpact/genome.mfe.mgtwin-app 1.1.339-alpha → 1.1.340-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-8a516362.mjs} +4 -4
- package/dist/{AssessmentSimulation-ffa5dc9a.mjs → AssessmentSimulation-034c0f8a.mjs} +142 -144
- package/dist/{EditSkillAdminData-2733defb.mjs → EditSkillAdminData-153df5c8.mjs} +2 -2
- package/dist/{EditSkillData-4648bc79.mjs → EditSkillData-cea08e7d.mjs} +2 -2
- package/dist/{HomeView-e1446f43.mjs → HomeView-dd806d8a.mjs} +5 -5
- package/dist/{Loading-379df1ec.mjs → Loading-7e32cd81.mjs} +1 -1
- package/dist/{LoadingSimulation-9009f0c4.mjs → LoadingSimulation-83817b7a.mjs} +1 -1
- package/dist/{Modal-1f1cd056.mjs → Modal-5bb3ed08.mjs} +1 -1
- package/dist/{PaperAirplaneIcon-044fdb99.mjs → PaperAirplaneIcon-21d1c79b.mjs} +1 -1
- package/dist/{PromptTesting-ffc1ecc7.mjs → PromptTesting-50d7b188.mjs} +3 -3
- package/dist/{SkillAutomation-477365de.mjs → SkillAutomation-15758005.mjs} +3 -3
- package/dist/{SkillData-3b40e98e.mjs → SkillData-a48755e0.mjs} +3 -3
- package/dist/{Testcase-5d530a6d.mjs → Testcase-1d816e54.mjs} +3 -3
- package/dist/{UnderMaintenance-66ce85d1.mjs → UnderMaintenance-96214e44.mjs} +1 -1
- package/dist/{VoiceTestcase-ef93119b.mjs → VoiceTestcase-dcbe2287.mjs} +3 -3
- package/dist/{XMarkIcon-10b8c78b.mjs → XMarkIcon-cdc08cbd.mjs} +1 -1
- package/dist/{api-3fd3a3a9.mjs → api-30738dbe.mjs} +1 -1
- package/dist/{main-de4142ca.mjs → main-ba33cc03.mjs} +627 -627
- 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-2e416043.mjs → voiceServices-e627f944.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-83817b7a.mjs";
|
|
2
|
+
import { _ as ft, a as ie, Q as he, M as nt } from "./Modal-5bb3ed08.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 ye, 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 yt, L as xt, l as wt } from "./main-ba33cc03.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-30738dbe.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-e627f944.mjs";
|
|
7
|
+
import { r as St } from "./XMarkIcon-cdc08cbd.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,
|
|
@@ -105,12 +105,12 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
105
105
|
__name: "greetingsSimulation",
|
|
106
106
|
emits: ["callQuestion"],
|
|
107
107
|
setup(p, { emit: s }) {
|
|
108
|
-
const t = E(), b =
|
|
108
|
+
const t = E(), b = h(!1), a = h(!1), d = h(!1), x = () => {
|
|
109
109
|
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!`, y = ` 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) ? y : ["bdce5798-c378-4306-abe3-66c62983b423"].includes(t.simulationSkill) ? _ : g),
|
|
111
|
-
return (A, k) => (
|
|
110
|
+
}, v = `Hi, get ready to test your ${t.skillNameForSimulation || "Unknown"} knowledge! Here’s what to expect:`, o = ` Hi ${t.learnerName || "Expert"}, and welcome!`, y = ` 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) ? y : ["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
|
+
return (A, k) => (l(), r("section", null, [
|
|
112
112
|
F(ie, { "is-visible": b.value }, {
|
|
113
|
-
default:
|
|
113
|
+
default: le(() => [
|
|
114
114
|
e("div", Rt, [
|
|
115
115
|
It,
|
|
116
116
|
Dt,
|
|
@@ -126,7 +126,7 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
126
126
|
_: 1
|
|
127
127
|
}, 8, ["is-visible"]),
|
|
128
128
|
F(ie, { "is-visible": a.value }, {
|
|
129
|
-
default:
|
|
129
|
+
default: le(() => [
|
|
130
130
|
e("div", Ht, [
|
|
131
131
|
jt,
|
|
132
132
|
qt,
|
|
@@ -142,7 +142,7 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
142
142
|
_: 1
|
|
143
143
|
}, 8, ["is-visible"]),
|
|
144
144
|
F(ie, { "is-visible": d.value }, {
|
|
145
|
-
default:
|
|
145
|
+
default: le(() => [
|
|
146
146
|
e("div", Et, [
|
|
147
147
|
Bt,
|
|
148
148
|
L(" The assessment will begin in text mode , where the AI will ask you a few initial questions – "),
|
|
@@ -164,7 +164,7 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
164
164
|
e("div", Ot, V(f.value), 1)
|
|
165
165
|
])
|
|
166
166
|
]),
|
|
167
|
-
|
|
167
|
+
i(t).beginFlag ? (l(), r("span", Wt, [
|
|
168
168
|
e("button", {
|
|
169
169
|
type: "button",
|
|
170
170
|
id: "button",
|
|
@@ -175,7 +175,7 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
175
175
|
Xt
|
|
176
176
|
]));
|
|
177
177
|
}
|
|
178
|
-
}), Yt = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh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oVhNPp0bW+wSQxyL9ygDzGx8U3/gC2kXxvdNdWWor/oiRjdtQ9j6cVyOo+CbD4mT/b/AlsltawfJOJvky/WvSvih4Hk8Tvp9/bzQ/ZdMG+WInqo5x+VctYfFTQLu2bw74e006bc3n7pJVG0BvWgDjLz4T+L/AARZyeIkuLeNrMb90cgJFWjrHxJXwT/wlv8AbP8AoG/bt3fN+VaPi34feNdM8L3t1f8AiZ7q2jXLweZncK5x/H1o3wi/4REWU/2rfu8zHy9aANHRtEi02KPxv46j+26dfDChfmbcehIrqvjS1ldeBvDk1hHssZHXylxjCntWxba9o3h74M6Pca5YpfQEKohYZIPrivMPiPoWsW2jWWtzaiZNLu232lrniFTyBj2oA+i/CHhnSNA0m3k02zWB7iFGkI/iO0V0leH/ALP+sapqaalHf3U80cQURiQkhRjtXuFACOu+Nl9QRXiF78CL+bWby/tfEUtsbiQuRHlTg9uK9wooA8L/AOFE63/0N95/38b/ABpsnwG1iWNo5PFl06MOVZ2IP617tRQByHgPwSnhDwqdFuJVvEaRnbevBz7V0VtpGm2coltrC2hkAwGSIA1dooAgurS2vYvKureOaPOdsihhn8ac8I+ytBGBGpQqu0Y28VLRQB5/4T+H174ft9ahutYmvBqAYLvJOzOa8/H7Oc6zGVNeKNuyCq4Ir6AooA8f8PfBzUdK162vr3xFcXtvEcvBKxZX9iDXp/8AYOkZ/wCQXZ/9+V/wrRooA8X8T/BC61/WLm5TW3htJH3JbY+RPoOldD4r+GL+I/Cuj6Mt95f9nhQXI+/ivR6KAKGlaVa6VZQ29tbxRlI1RmRAu4gYyav0UUAf/9k=", 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
179
|
key: 0,
|
|
180
180
|
class: "py-4"
|
|
181
181
|
}, ns = { class: "fontFormattingAMA px-2 py-1.5 md:px-6" }, is = ["value", "disabled", "name"], ls = {
|
|
@@ -233,12 +233,12 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
233
233
|
},
|
|
234
234
|
emits: ["char-typed"],
|
|
235
235
|
setup(p, { emit: s }) {
|
|
236
|
-
const t = p, b =
|
|
236
|
+
const t = p, b = h([]), a = h(!1), d = E(), x = h("");
|
|
237
237
|
let v = [], o = "";
|
|
238
238
|
const y = async () => {
|
|
239
239
|
v = o.split(""), x.value = "";
|
|
240
240
|
for (let c = 0; c < v.length; c++)
|
|
241
|
-
x.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((
|
|
241
|
+
x.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
242
|
}, _ = () => {
|
|
243
243
|
d.isRestart = !0, d.searchBoxdisable = !1, d.showVoiceComponent = !0, d.showSelectTypeConvesation = !1, d.showModelToggle = !0, d.isSpeechToggle = !1;
|
|
244
244
|
}, g = ge(() => {
|
|
@@ -274,14 +274,14 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
274
274
|
'<div style="font-size: 16px; font-weight: bold;">Model Solution</div>'
|
|
275
275
|
);
|
|
276
276
|
(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
|
|
277
|
+
const m = /\[([^\]]+)\]\((https?:\/\/[^\s]+)\)/g;
|
|
278
278
|
if (c.includes("AI Guru")) {
|
|
279
279
|
if (c.includes("AI Guru"))
|
|
280
|
-
return console.log("aig found"), c.replace(
|
|
280
|
+
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
281
|
} else
|
|
282
|
-
return c.replace(
|
|
282
|
+
return c.replace(m, (u, f, A) => `<a href="${A}" target="_blank" rel="noopener noreferrer" style="color: blue; text-decoration: underline;">${f}</a>`);
|
|
283
283
|
});
|
|
284
|
-
return
|
|
284
|
+
return re(
|
|
285
285
|
() => t.answer,
|
|
286
286
|
() => {
|
|
287
287
|
let c = t.answer.replace(/[*#]/g, "").replace(
|
|
@@ -312,26 +312,26 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
312
312
|
/Model Solution/g,
|
|
313
313
|
'<div style="font-size: 16px; font-weight: bold;">Model Solution</div>'
|
|
314
314
|
);
|
|
315
|
-
const
|
|
316
|
-
c.includes("AI Guru") ? c = c.replace(
|
|
315
|
+
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 && y();
|
|
317
317
|
},
|
|
318
318
|
{ immediate: !0 }
|
|
319
|
-
),
|
|
319
|
+
), re(b, (c) => {
|
|
320
320
|
d.question = (c ?? []).join(", ");
|
|
321
|
-
}), (c,
|
|
321
|
+
}), (c, m) => (l(), r("div", es, [
|
|
322
322
|
e("div", ts, [
|
|
323
|
-
|
|
323
|
+
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
324
|
key: 0,
|
|
325
325
|
class: "fontFormattingAMA answer-link",
|
|
326
326
|
innerHTML: x.value
|
|
327
|
-
}, null, 8, ss)) : (
|
|
327
|
+
}, null, 8, ss)) : (l(), r("span", {
|
|
328
328
|
key: 1,
|
|
329
329
|
class: "fontFormattingAMA answer-link",
|
|
330
330
|
innerHTML: g.value
|
|
331
331
|
}, null, 8, as)),
|
|
332
332
|
e("div", null, [
|
|
333
|
-
p.optionsArray.length &&
|
|
334
|
-
(
|
|
333
|
+
p.optionsArray.length && i(d).mcqType === "multi_choice" ? (l(), r("div", os, [
|
|
334
|
+
(l(!0), r(ve, null, be(p.optionsArray, (u, f) => (l(), r("div", {
|
|
335
335
|
key: f,
|
|
336
336
|
class: "italic"
|
|
337
337
|
}, [
|
|
@@ -340,8 +340,8 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
340
340
|
class: "mr-4 cursor-pointer",
|
|
341
341
|
type: "checkbox",
|
|
342
342
|
value: u,
|
|
343
|
-
"onUpdate:modelValue":
|
|
344
|
-
disabled:
|
|
343
|
+
"onUpdate:modelValue": m[0] || (m[0] = (A) => b.value = A),
|
|
344
|
+
disabled: i(d).conversations.length - 1 !== t.ansId,
|
|
345
345
|
name: g.value
|
|
346
346
|
}, null, 8, is), [
|
|
347
347
|
[gt, b.value]
|
|
@@ -349,8 +349,8 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
349
349
|
e("label", ls, V(u), 1)
|
|
350
350
|
])
|
|
351
351
|
]))), 128))
|
|
352
|
-
])) : p.optionsArray.length ? (
|
|
353
|
-
(
|
|
352
|
+
])) : p.optionsArray.length ? (l(), r("div", rs, [
|
|
353
|
+
(l(!0), r(ve, null, be(p.optionsArray, (u, f) => (l(), r("div", {
|
|
354
354
|
key: f,
|
|
355
355
|
class: "italic"
|
|
356
356
|
}, [
|
|
@@ -358,8 +358,8 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
358
358
|
e("input", {
|
|
359
359
|
class: "mr-4 cursor-pointer",
|
|
360
360
|
type: "radio",
|
|
361
|
-
onClick: (A) =>
|
|
362
|
-
disabled:
|
|
361
|
+
onClick: (A) => i(d).question = String(p.optionsArray[f]),
|
|
362
|
+
disabled: i(d).conversations.length - 1 !== t.ansId,
|
|
363
363
|
name: g.value
|
|
364
364
|
}, null, 8, cs),
|
|
365
365
|
e("label", us, V(u), 1)
|
|
@@ -367,13 +367,13 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
367
367
|
]))), 128))
|
|
368
368
|
])) : M("", !0)
|
|
369
369
|
]),
|
|
370
|
-
a.value &&
|
|
371
|
-
|
|
370
|
+
a.value && i(d).simulationSkill === "32b7d6d8-f7a8-40a0-ab84-8784f25897ef" ? (l(), r("div", ms, fs)) : M("", !0),
|
|
371
|
+
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
372
|
e("div", vs, [
|
|
373
373
|
e("button", {
|
|
374
374
|
type: "button",
|
|
375
375
|
id: "button",
|
|
376
|
-
onClick:
|
|
376
|
+
onClick: m[1] || (m[1] = (u) => _()),
|
|
377
377
|
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
378
|
}, " Start Conversation ")
|
|
379
379
|
])
|
|
@@ -382,7 +382,7 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
382
382
|
]));
|
|
383
383
|
}
|
|
384
384
|
});
|
|
385
|
-
const ys = /* @__PURE__ */ X(bs, [["__scopeId", "data-v-
|
|
385
|
+
const ys = /* @__PURE__ */ X(bs, [["__scopeId", "data-v-a8021deb"]]), xs = { class: "flex justify-end items-end py-3" }, ws = { class: "max-w-[80%]" }, _s = ["innerHTML"], As = /* @__PURE__ */ I({
|
|
386
386
|
__name: "learnerSimulation",
|
|
387
387
|
props: {
|
|
388
388
|
question: {
|
|
@@ -395,7 +395,7 @@ const ys = /* @__PURE__ */ X(bs, [["__scopeId", "data-v-cc5db4a2"]]), xs = { cla
|
|
|
395
395
|
}
|
|
396
396
|
},
|
|
397
397
|
setup(p) {
|
|
398
|
-
return (s, t) => (
|
|
398
|
+
return (s, t) => (l(), r("div", xs, [
|
|
399
399
|
e("div", ws, [
|
|
400
400
|
e("div", {
|
|
401
401
|
class: "w-fit fontFormattingAMA text-[0.8125rem] md:text-[0.9375rem] text-white bg-genpact-blue-box leading-6 p-3",
|
|
@@ -408,10 +408,10 @@ const ys = /* @__PURE__ */ X(bs, [["__scopeId", "data-v-cc5db4a2"]]), xs = { cla
|
|
|
408
408
|
/* @__PURE__ */ e("span", null, "."),
|
|
409
409
|
/* @__PURE__ */ e("span", null, "."),
|
|
410
410
|
/* @__PURE__ */ e("span", null, ".")
|
|
411
|
-
], -1)), Ps = /* @__PURE__ */
|
|
411
|
+
], -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
412
|
__name: "LoadingResponse",
|
|
413
413
|
setup(p) {
|
|
414
|
-
const s =
|
|
414
|
+
const s = h("Generating response"), t = h([
|
|
415
415
|
"This may take a few seconds",
|
|
416
416
|
"Fetching the best response for you",
|
|
417
417
|
"Thinking... give me a moment",
|
|
@@ -423,7 +423,7 @@ const ys = /* @__PURE__ */ X(bs, [["__scopeId", "data-v-cc5db4a2"]]), xs = { cla
|
|
|
423
423
|
return setTimeout(() => {
|
|
424
424
|
const b = Math.floor(Math.random() * t.value.length);
|
|
425
425
|
s.value = t.value[b];
|
|
426
|
-
}, 15e3), (b, a) => (
|
|
426
|
+
}, 15e3), (b, a) => (l(), r("div", Ss, [
|
|
427
427
|
e("div", Ns, [
|
|
428
428
|
e("div", Cs, V(s.value), 1),
|
|
429
429
|
Ls
|
|
@@ -439,9 +439,9 @@ const Fs = /* @__PURE__ */ X(Ts, [["__scopeId", "data-v-347ad6de"]]), Ms = { cla
|
|
|
439
439
|
__name: "QuestionStreaming",
|
|
440
440
|
setup(p) {
|
|
441
441
|
const s = E();
|
|
442
|
-
return (t, b) => (
|
|
442
|
+
return (t, b) => (l(), r("div", Ms, [
|
|
443
443
|
e("div", zs, [
|
|
444
|
-
|
|
444
|
+
i(s).userSpeechText.toLowerCase().includes("play") && i(s).userSpeechText.length < 10 ? M("", !0) : (l(), r("div", Rs, V(i(s).userSpeechText), 1))
|
|
445
445
|
])
|
|
446
446
|
]));
|
|
447
447
|
}
|
|
@@ -454,12 +454,12 @@ const Fs = /* @__PURE__ */ X(Ts, [["__scopeId", "data-v-347ad6de"]]), Ms = { cla
|
|
|
454
454
|
}, Es = /* @__PURE__ */ I({
|
|
455
455
|
__name: "conversationSimulation",
|
|
456
456
|
setup(p) {
|
|
457
|
-
let s =
|
|
457
|
+
let s = h(""), t = h("");
|
|
458
458
|
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 =
|
|
459
|
+
const b = E(), a = h(), d = () => {
|
|
460
460
|
a.value.scrollTo(0, a.value.scrollHeight);
|
|
461
461
|
};
|
|
462
|
-
return
|
|
462
|
+
return ce(() => {
|
|
463
463
|
var o;
|
|
464
464
|
const x = document.getElementsByName("askQuestion"), v = Array.from(x);
|
|
465
465
|
x.length && ((o = v == null ? void 0 : v.pop()) == null || o.scrollIntoView({ behavior: "smooth", block: "center" })), window.addEventListener("custom-event", d);
|
|
@@ -469,7 +469,7 @@ const Fs = /* @__PURE__ */ X(Ts, [["__scopeId", "data-v-347ad6de"]]), Ms = { cla
|
|
|
469
469
|
x.length && ((o = v == null ? void 0 : v.pop()) == null || o.scrollIntoView({ behavior: "smooth", block: "center" }));
|
|
470
470
|
}), bt(() => {
|
|
471
471
|
window.removeEventListener("custom-event", d);
|
|
472
|
-
}), (x, v) => (
|
|
472
|
+
}), (x, v) => (l(), r("div", {
|
|
473
473
|
ref_key: "nestedElement",
|
|
474
474
|
ref: a,
|
|
475
475
|
class: "smooth-scroll overflow-auto md:px-6 px-2"
|
|
@@ -477,8 +477,8 @@ const Fs = /* @__PURE__ */ X(Ts, [["__scopeId", "data-v-347ad6de"]]), Ms = { cla
|
|
|
477
477
|
F(Zt, {
|
|
478
478
|
onCallQuestion: v[0] || (v[0] = (o) => x.$emit("callQuestion"))
|
|
479
479
|
}),
|
|
480
|
-
(
|
|
481
|
-
o.question ? (
|
|
480
|
+
(l(!0), r(ve, null, be(i(b).conversations, (o, y) => (l(), r("div", { key: y }, [
|
|
481
|
+
o.question ? (l(), r("div", Ds, [
|
|
482
482
|
F(As, {
|
|
483
483
|
question: o == null ? void 0 : o.question,
|
|
484
484
|
c2question: o == null ? void 0 : o.c2question,
|
|
@@ -488,13 +488,13 @@ const Fs = /* @__PURE__ */ X(Ts, [["__scopeId", "data-v-347ad6de"]]), Ms = { cla
|
|
|
488
488
|
"que-id": y
|
|
489
489
|
}, null, 8, ["question", "c2question", "show-feedback", "id", "que-id"])
|
|
490
490
|
])) : M("", !0),
|
|
491
|
-
o.answer ? (
|
|
491
|
+
o.answer ? (l(), r("div", Hs, [
|
|
492
492
|
F(ys, {
|
|
493
493
|
question: o == null ? void 0 : o.question,
|
|
494
494
|
c2question: o == null ? void 0 : o.c2question,
|
|
495
495
|
"show-sources": o == null ? void 0 : o.showSources,
|
|
496
496
|
questionId: o.id,
|
|
497
|
-
answer: o.answer.replaceAll("<a",
|
|
497
|
+
answer: o.answer.replaceAll("<a", i(s)).replaceAll("<ul", i(t)),
|
|
498
498
|
"show-feedback": o.showFeedback,
|
|
499
499
|
"related-ques": o == null ? void 0 : o.relatedQues,
|
|
500
500
|
"options-array": o == null ? void 0 : o.optionsArray,
|
|
@@ -503,10 +503,10 @@ const Fs = /* @__PURE__ */ X(Ts, [["__scopeId", "data-v-347ad6de"]]), Ms = { cla
|
|
|
503
503
|
}, null, 8, ["question", "c2question", "show-sources", "questionId", "answer", "show-feedback", "related-ques", "options-array", "ans-id"])
|
|
504
504
|
])) : M("", !0)
|
|
505
505
|
]))), 128)),
|
|
506
|
-
|
|
506
|
+
i(b).dotLoader ? (l(), r("div", js, [
|
|
507
507
|
F(Fs)
|
|
508
508
|
])) : M("", !0),
|
|
509
|
-
|
|
509
|
+
i(b).userspeaking ? (l(), r("div", qs, [
|
|
510
510
|
F(Is)
|
|
511
511
|
])) : M("", !0)
|
|
512
512
|
], 512));
|
|
@@ -521,7 +521,7 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
521
521
|
viewBox: "0 0 36 24",
|
|
522
522
|
class: "fill-white",
|
|
523
523
|
style: { transform: "scaleX(-1)" }
|
|
524
|
-
}, Qs = /* @__PURE__ */
|
|
524
|
+
}, 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
525
|
Qs
|
|
526
526
|
], Ws = {
|
|
527
527
|
key: 1,
|
|
@@ -532,12 +532,12 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
532
532
|
viewBox: "0 0 36 24",
|
|
533
533
|
class: "fill-white",
|
|
534
534
|
style: { transform: "scaleX(-1)" }
|
|
535
|
-
}, Js = /* @__PURE__ */
|
|
535
|
+
}, 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
536
|
Js
|
|
537
537
|
], Ks = {
|
|
538
538
|
key: 2,
|
|
539
539
|
class: "flex items-center"
|
|
540
|
-
}, Zs = /* @__PURE__ */
|
|
540
|
+
}, 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
541
|
Zs
|
|
542
542
|
], ea = { class: "tooltiptext text-genpact-darkest-teal" }, ta = /* @__PURE__ */ e("svg", {
|
|
543
543
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -568,12 +568,12 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
568
568
|
], na = /* @__PURE__ */ I({
|
|
569
569
|
__name: "NewVoiceConversation",
|
|
570
570
|
setup(p) {
|
|
571
|
-
const s = E(), t =
|
|
571
|
+
const s = E(), t = ue(), b = h(""), a = h(!1), d = h("Turn on mic"), x = () => {
|
|
572
572
|
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
573
|
}, v = () => {
|
|
574
574
|
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
575
|
}, o = async () => {
|
|
576
|
-
var y, _, g, c,
|
|
576
|
+
var y, _, g, c, m, u;
|
|
577
577
|
try {
|
|
578
578
|
const f = {
|
|
579
579
|
question: Q.value || ne.value
|
|
@@ -582,10 +582,10 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
582
582
|
const A = {
|
|
583
583
|
past_messages: s.past_messages,
|
|
584
584
|
question: Q.value || ne.value,
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
585
|
+
skillId: s.simulationSkill,
|
|
586
|
+
bandCode: s.band_code,
|
|
587
|
+
userGenomeFunction: s.genomeFunctionValue,
|
|
588
|
+
userGenomeRole: s.genomeRoleValue
|
|
589
589
|
}, k = await U("/sqlTest", A);
|
|
590
590
|
if (H.value = "bot", b.value = (_ = (y = k == null ? void 0 : k.data) == null ? void 0 : y.body) == null ? void 0 : _.answer, b.value === "") {
|
|
591
591
|
console.log("in the if case calling api again");
|
|
@@ -610,12 +610,12 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
610
610
|
} catch (f) {
|
|
611
611
|
if (console.error(f), $.isAxiosError(f)) {
|
|
612
612
|
const A = f;
|
|
613
|
-
console.log("Error found!"), console.error((
|
|
613
|
+
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
614
|
} else
|
|
615
615
|
t.setError("There was an issue, please contact helpmate");
|
|
616
616
|
}
|
|
617
617
|
};
|
|
618
|
-
return
|
|
618
|
+
return re(Q, async (y) => {
|
|
619
619
|
if (y) {
|
|
620
620
|
if (console.log("Recognized text:", y), Q.value.toLowerCase().includes("play") && Q.value.length < 10) {
|
|
621
621
|
console.log("play command detected, ignoring input");
|
|
@@ -623,27 +623,27 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
623
623
|
}
|
|
624
624
|
H.value = "listening", s.userspeaking = !1, await o(), Q.value = "";
|
|
625
625
|
}
|
|
626
|
-
}),
|
|
626
|
+
}), re(ne, async (y) => {
|
|
627
627
|
y && (console.log("Recognized text:", y), H.value = "listening", await o(), ne.value = "");
|
|
628
|
-
}), (y, _) => (
|
|
629
|
-
|
|
628
|
+
}), (y, _) => (l(), r("div", $s, [
|
|
629
|
+
i(H) === "bot" ? (l(), r("div", Vs, [
|
|
630
630
|
e("span", null, [
|
|
631
|
-
(
|
|
631
|
+
(l(), r("svg", Gs, Os))
|
|
632
632
|
])
|
|
633
|
-
])) :
|
|
633
|
+
])) : i(H) === "user" ? (l(), r("div", Ws, [
|
|
634
634
|
e("span", null, [
|
|
635
|
-
(
|
|
635
|
+
(l(), r("svg", Xs, Us))
|
|
636
636
|
])
|
|
637
|
-
])) :
|
|
637
|
+
])) : i(H) === "listening" ? (l(), r("div", Ks, Ys)) : M("", !0),
|
|
638
638
|
e("div", {
|
|
639
639
|
class: W([a.value ? "" : "animate-pulse", "tooltip"])
|
|
640
640
|
}, [
|
|
641
641
|
e("span", ea, V(d.value), 1),
|
|
642
|
-
a.value ? (
|
|
642
|
+
a.value ? (l(), r("button", {
|
|
643
643
|
key: 0,
|
|
644
644
|
class: "rounded-full bg-white p-2 transition hover:bg-gray-300",
|
|
645
645
|
onClick: _[0] || (_[0] = (g) => x())
|
|
646
|
-
}, sa)) : (
|
|
646
|
+
}, sa)) : (l(), r("button", {
|
|
647
647
|
key: 1,
|
|
648
648
|
class: "rounded-full bg-white p-2 transition hover:bg-gray-300",
|
|
649
649
|
onClick: _[1] || (_[1] = (g) => x())
|
|
@@ -653,11 +653,11 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
653
653
|
class: "rounded-full bg-white p-2 hover:bg-gray-300",
|
|
654
654
|
onClick: _[2] || (_[2] = (g) => v())
|
|
655
655
|
}, [
|
|
656
|
-
F(
|
|
656
|
+
F(i(St), { class: "h-[10px] w-[10px] text-gray-700" })
|
|
657
657
|
])
|
|
658
658
|
]));
|
|
659
659
|
}
|
|
660
|
-
}), B = (p) => (K("data-v-
|
|
660
|
+
}), 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
661
|
key: 0,
|
|
662
662
|
class: "flex justify-center bg-genpact-darkest-blue px-4 rounded-full"
|
|
663
663
|
}, 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", {
|
|
@@ -690,18 +690,16 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
690
690
|
], -1)), Ma = /* @__PURE__ */ I({
|
|
691
691
|
__name: "NewQuestionSimulation",
|
|
692
692
|
setup(p, { expose: s }) {
|
|
693
|
-
const t = E(), b =
|
|
693
|
+
const t = E(), b = ue(), a = h(""), d = h("");
|
|
694
694
|
t.question = "";
|
|
695
|
-
const x =
|
|
696
|
-
|
|
697
|
-
const v = m(!1), o = m(0);
|
|
698
|
-
d.value = t.recognizedText, ue(() => {
|
|
695
|
+
const x = h(null), v = h(!1), o = h(0);
|
|
696
|
+
d.value = t.recognizedText, ce(() => {
|
|
699
697
|
x.value.focus();
|
|
700
698
|
});
|
|
701
699
|
const y = () => {
|
|
702
700
|
window.location.reload();
|
|
703
701
|
}, _ = async () => {
|
|
704
|
-
var
|
|
702
|
+
var m, u, f, A, k, z, ee, te, se, ae, oe;
|
|
705
703
|
try {
|
|
706
704
|
if (t.question.trim().length < 1) {
|
|
707
705
|
console.log("Please enter answer!");
|
|
@@ -712,7 +710,7 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
712
710
|
question: t.question || t.recognizedText
|
|
713
711
|
};
|
|
714
712
|
t.conversations.push(C);
|
|
715
|
-
const P =
|
|
713
|
+
const P = h("");
|
|
716
714
|
P.value = t.question || t.recognizedText, t.question = "", x.value && (x.value.style.height = "auto");
|
|
717
715
|
const R = {
|
|
718
716
|
ohr_id: a.value,
|
|
@@ -723,7 +721,7 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
723
721
|
userGenomeRole: t.genomeRoleValue,
|
|
724
722
|
skillId: t.simulationSkill || "937e84ef-e95d-4327-9afe-e7be2bf420eb"
|
|
725
723
|
}, T = await U("/sqlTest", R);
|
|
726
|
-
if (o.value += (u = (
|
|
724
|
+
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
725
|
console.log("in the if case calling api again");
|
|
728
726
|
const D = await U("/sqlTest", R);
|
|
729
727
|
t.addConversation((ee = D.data) == null ? void 0 : ee.body, "new");
|
|
@@ -737,19 +735,19 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
737
735
|
} else
|
|
738
736
|
b.setError("There was an issue, please contact helpmate");
|
|
739
737
|
}
|
|
740
|
-
}, g = (
|
|
741
|
-
|
|
742
|
-
}, c = (
|
|
743
|
-
const u =
|
|
738
|
+
}, g = (m) => {
|
|
739
|
+
m.key === "Enter" && !m.shiftKey && (m.preventDefault(), _());
|
|
740
|
+
}, c = (m) => {
|
|
741
|
+
const u = m.target;
|
|
744
742
|
u.style.height = "auto", u.style.height = u.scrollHeight + "px";
|
|
745
743
|
};
|
|
746
|
-
return s({ sendQuestion: _ }), (
|
|
744
|
+
return s({ sendQuestion: _ }), (m, u) => (l(), r("div", ia, [
|
|
747
745
|
e("div", la, [
|
|
748
746
|
e("div", ra, [
|
|
749
747
|
e("div", da, [
|
|
750
748
|
e("div", ca, [
|
|
751
749
|
ua,
|
|
752
|
-
|
|
750
|
+
i(t).showVoiceComponent ? (l(), r("div", ma, [
|
|
753
751
|
F(na)
|
|
754
752
|
])) : M("", !0)
|
|
755
753
|
]),
|
|
@@ -757,7 +755,7 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
757
755
|
e("div", pa, [
|
|
758
756
|
e("div", fa, [
|
|
759
757
|
ga,
|
|
760
|
-
(
|
|
758
|
+
(l(), r("svg", {
|
|
761
759
|
onClick: y,
|
|
762
760
|
class: "ml-2 h-7 w-7 rounded",
|
|
763
761
|
id: "newTopicDisable",
|
|
@@ -771,14 +769,14 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
771
769
|
])
|
|
772
770
|
]),
|
|
773
771
|
e("div", xa, [
|
|
774
|
-
v.value ? (
|
|
775
|
-
(
|
|
776
|
-
disabled:
|
|
772
|
+
v.value ? (l(), r("div", Sa, La)) : (l(), r("div", wa, [
|
|
773
|
+
(l(), r("svg", {
|
|
774
|
+
disabled: i(t).beginFlag === !0,
|
|
777
775
|
class: W([
|
|
778
|
-
|
|
776
|
+
i(t).beginFlag === !0 ? "cursor-not-allowed text-gray-600" : "cursor-pointer",
|
|
779
777
|
"bi bi-send ml-2 h-7 w-7 rotate-45 rounded"
|
|
780
778
|
]),
|
|
781
|
-
onClick: u[0] || (u[0] = (f) =>
|
|
779
|
+
onClick: u[0] || (u[0] = (f) => i(t).searchBoxdisable === !1 || i(t).beginFlag === !0 ? "" : _()),
|
|
782
780
|
xmlns: "http://www.w3.org/2000/svg",
|
|
783
781
|
fill: "currentColor",
|
|
784
782
|
viewBox: "0 0 16 16"
|
|
@@ -790,11 +788,11 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
790
788
|
onPaste: u[1] || (u[1] = yt(() => {
|
|
791
789
|
}, ["prevent"])),
|
|
792
790
|
onKeydown: u[2] || (u[2] = (f) => v.value ? "" : g(f)),
|
|
793
|
-
disabled:
|
|
794
|
-
"onUpdate:modelValue": u[3] || (u[3] = (f) =>
|
|
791
|
+
disabled: i(t).searchBoxdisable === !1 || i(t).beginFlag === !0,
|
|
792
|
+
"onUpdate:modelValue": u[3] || (u[3] = (f) => i(t).question = f),
|
|
795
793
|
class: W([
|
|
796
794
|
"fontFormattingAMA rounded-lg flex w-full border border-genpact-darkest-teal py-[18px] px-[70px]",
|
|
797
|
-
|
|
795
|
+
i(t).beginFlag === !0 || i(t).searchBoxdisable === !1 ? "cursor-not-allowed bg-[#e5e7eb]" : "bg-white"
|
|
798
796
|
]),
|
|
799
797
|
placeholder: "Write your answer here...",
|
|
800
798
|
ref_key: "AiSearch",
|
|
@@ -803,7 +801,7 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
803
801
|
onInput: u[4] || (u[4] = (f) => c(f)),
|
|
804
802
|
style: { overflow: "hidden", transition: "height 0.2s" }
|
|
805
803
|
}, null, 42, Ta), [
|
|
806
|
-
[ct,
|
|
804
|
+
[ct, i(t).question]
|
|
807
805
|
])
|
|
808
806
|
])
|
|
809
807
|
]),
|
|
@@ -814,32 +812,32 @@ const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { cla
|
|
|
814
812
|
]));
|
|
815
813
|
}
|
|
816
814
|
});
|
|
817
|
-
const za = /* @__PURE__ */ X(Ma, [["__scopeId", "data-v-
|
|
815
|
+
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
816
|
$a
|
|
819
817
|
], Ga = {
|
|
820
818
|
key: 1,
|
|
821
819
|
class: "tooltip"
|
|
822
|
-
}, Qa = /* @__PURE__ */
|
|
820
|
+
}, Qa = /* @__PURE__ */ me(() => /* @__PURE__ */ e("span", { class: "tooltiptext fontFormattingAMA" }, "Waiting for response", -1)), Oa = /* @__PURE__ */ me(() => /* @__PURE__ */ e("img", {
|
|
823
821
|
class: "w-7 h-7",
|
|
824
822
|
src: dt,
|
|
825
823
|
alt: "watingIcon"
|
|
826
824
|
}, null, -1)), Wa = [
|
|
827
825
|
Qa,
|
|
828
826
|
Oa
|
|
829
|
-
], Xa = { class: "flex justify-start gap-2 md:gap-1" }, Ja = ["disabled"], Ua = /* @__PURE__ */
|
|
827
|
+
], 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
828
|
/* @__PURE__ */ e("div", null, " Note: AI-generated response may not be fully accurate; check with experts for critical information. ")
|
|
831
829
|
], -1)), Ka = /* @__PURE__ */ I({
|
|
832
830
|
__name: "NewMDMQuestionSimulation",
|
|
833
831
|
setup(p) {
|
|
834
|
-
const s = E(), t =
|
|
832
|
+
const s = E(), t = ue(), b = h("");
|
|
835
833
|
s.question = "";
|
|
836
|
-
const a =
|
|
837
|
-
b.value = s.recognizedText,
|
|
834
|
+
const a = h(null), d = h(!1), x = h(he), v = h(!1);
|
|
835
|
+
b.value = s.recognizedText, ce(() => {
|
|
838
836
|
a.value.focus();
|
|
839
837
|
});
|
|
840
838
|
const o = (_) => {
|
|
841
839
|
const g = _.length;
|
|
842
|
-
x.value =
|
|
840
|
+
x.value = he - g, d.value = g >= he;
|
|
843
841
|
}, y = async () => {
|
|
844
842
|
var _, g, c;
|
|
845
843
|
console.log("options fdsfdscdzxfsdv", s.recognizedText);
|
|
@@ -849,11 +847,11 @@ const za = /* @__PURE__ */ X(Ma, [["__scopeId", "data-v-f3203a7f"]]), he = (p) =
|
|
|
849
847
|
return;
|
|
850
848
|
}
|
|
851
849
|
v.value = !0, s.dotLoader = !0;
|
|
852
|
-
const
|
|
850
|
+
const m = {
|
|
853
851
|
question: s.question || s.recognizedText
|
|
854
852
|
};
|
|
855
|
-
console.log("ques",
|
|
856
|
-
const u =
|
|
853
|
+
console.log("ques", m), s.conversations.push(m);
|
|
854
|
+
const u = h("");
|
|
857
855
|
u.value = s.question || s.recognizedText, s.question = "";
|
|
858
856
|
const f = {
|
|
859
857
|
assessmentId: s.simulationSkill,
|
|
@@ -873,28 +871,28 @@ const za = /* @__PURE__ */ X(Ma, [["__scopeId", "data-v-f3203a7f"]]), he = (p) =
|
|
|
873
871
|
O === "prod" ? A = "/ManualExportActivity" : A = "/fetchCompletionDemo";
|
|
874
872
|
const k = await U(A, f);
|
|
875
873
|
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 =
|
|
874
|
+
} catch (m) {
|
|
875
|
+
if (console.error(m), $.isAxiosError(m)) {
|
|
876
|
+
const u = m;
|
|
879
877
|
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
878
|
} else
|
|
881
879
|
t.setError("There was an issue, please contact helpmate");
|
|
882
880
|
}
|
|
883
881
|
};
|
|
884
|
-
return (_, g) => (
|
|
882
|
+
return (_, g) => (l(), r("div", Ra, [
|
|
885
883
|
e("div", Ia, [
|
|
886
884
|
e("div", Da, [
|
|
887
885
|
e("div", Ha, [
|
|
888
886
|
e("div", ja, [
|
|
889
887
|
e("div", qa, [
|
|
890
|
-
v.value ? (
|
|
891
|
-
(
|
|
892
|
-
disabled:
|
|
888
|
+
v.value ? (l(), r("div", Ga, Wa)) : (l(), r("div", Ea, [
|
|
889
|
+
(l(), r("svg", {
|
|
890
|
+
disabled: i(s).beginFlag === !0,
|
|
893
891
|
class: W([
|
|
894
|
-
|
|
892
|
+
i(s).beginFlag === !0 ? "cursor-not-allowed text-gray-600" : "cursor-pointer",
|
|
895
893
|
"bi bi-send ml-2 h-7 w-7 rotate-45 rounded"
|
|
896
894
|
]),
|
|
897
|
-
onClick: g[0] || (g[0] = (c) =>
|
|
895
|
+
onClick: g[0] || (g[0] = (c) => i(s).searchBoxdisable === !1 || i(s).beginFlag === !0 ? "" : y()),
|
|
898
896
|
xmlns: "http://www.w3.org/2000/svg",
|
|
899
897
|
fill: "currentColor",
|
|
900
898
|
viewBox: "0 0 16 16"
|
|
@@ -905,20 +903,20 @@ const za = /* @__PURE__ */ X(Ma, [["__scopeId", "data-v-f3203a7f"]]), he = (p) =
|
|
|
905
903
|
ye(e("input", {
|
|
906
904
|
onKeyup: [
|
|
907
905
|
g[1] || (g[1] = xt((c) => v.value ? "" : y(), ["enter"])),
|
|
908
|
-
g[3] || (g[3] = (c) => o(
|
|
906
|
+
g[3] || (g[3] = (c) => o(i(s).question))
|
|
909
907
|
],
|
|
910
|
-
disabled:
|
|
908
|
+
disabled: i(s).beginFlag === !0 || i(s).searchBoxdisable === !1,
|
|
911
909
|
class: W([
|
|
912
|
-
|
|
910
|
+
i(s).beginFlag === !0 || i(s).searchBoxdisable === !1 ? "cursor-not-allowed bg-[#e5e7eb]" : "bg-white",
|
|
913
911
|
"fontFormattingAMA rounded-lg flex w-full border border-genpact-darkest-teal py-[18px] pl-[30px] pr-[70px]"
|
|
914
912
|
]),
|
|
915
|
-
"onUpdate:modelValue": g[2] || (g[2] = (c) =>
|
|
913
|
+
"onUpdate:modelValue": g[2] || (g[2] = (c) => i(s).question = c),
|
|
916
914
|
placeholder: "Write your answer here...",
|
|
917
915
|
type: "text",
|
|
918
916
|
ref_key: "AiSearch",
|
|
919
917
|
ref: a
|
|
920
918
|
}, null, 42, Ja), [
|
|
921
|
-
[ct,
|
|
919
|
+
[ct, i(s).question]
|
|
922
920
|
])
|
|
923
921
|
])
|
|
924
922
|
]),
|
|
@@ -953,16 +951,16 @@ const Za = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-6c0980b5"]]), Y = (p) =>
|
|
|
953
951
|
}, vo = /* @__PURE__ */ I({
|
|
954
952
|
__name: "AssessmentSimulation",
|
|
955
953
|
setup(p) {
|
|
956
|
-
const s =
|
|
957
|
-
|
|
958
|
-
const a = E(), d =
|
|
954
|
+
const s = h(!0), t = h(!1), b = h(!1);
|
|
955
|
+
h(!1), h(!1);
|
|
956
|
+
const a = E(), d = ue(), x = h(""), v = h(""), o = h(""), y = h(""), _ = localStorage.getItem("accessToken");
|
|
959
957
|
let g = "";
|
|
960
|
-
const c =
|
|
961
|
-
let
|
|
962
|
-
const f =
|
|
958
|
+
const c = h("");
|
|
959
|
+
let m = "", u = "";
|
|
960
|
+
const f = h(), A = h(!1), k = new URL(window.location.href), z = k.searchParams.get("skillId") || k.searchParams.get("assessmentId");
|
|
963
961
|
v.value = k.searchParams.get("mode") ?? "", a.simulationSkill = z ?? "";
|
|
964
962
|
const ee = ["703331197", "703380812", "703331909", "703363051", "703319578"];
|
|
965
|
-
|
|
963
|
+
ce(async () => {
|
|
966
964
|
s.value = !0, await te(), await ae();
|
|
967
965
|
});
|
|
968
966
|
const te = async () => {
|
|
@@ -989,7 +987,7 @@ const Za = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-6c0980b5"]]), Y = (p) =>
|
|
|
989
987
|
try {
|
|
990
988
|
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
989
|
const n = await pe(g);
|
|
992
|
-
x.value = (P = (C = n == null ? void 0 : n.data) == null ? void 0 : C.data) == null ? void 0 : P.name, a.skillNameForSimulation = x.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 = (xe = n == null ? void 0 : n.data) == null ? void 0 : xe.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,
|
|
990
|
+
x.value = (P = (C = n == null ? void 0 : n.data) == null ? void 0 : C.data) == null ? void 0 : P.name, a.skillNameForSimulation = x.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 = (xe = n == null ? void 0 : n.data) == null ? void 0 : xe.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
991
|
const G = (Pe = (Le = n == null ? void 0 : n.data) == null ? void 0 : Le.data) == null ? void 0 : Pe.createdBy;
|
|
994
992
|
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
993
|
t.value = !0;
|
|
@@ -998,9 +996,9 @@ const Za = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-6c0980b5"]]), Y = (p) =>
|
|
|
998
996
|
else if (o.value === "active" && A.value && v.value === nt.DRAFT) {
|
|
999
997
|
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
998
|
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,
|
|
999
|
+
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
1000
|
}
|
|
1003
|
-
const mt = a == null ? void 0 : a.band_code, ot = (Ze =
|
|
1001
|
+
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
1002
|
if (G === (a == null ? void 0 : a.ohr) || ee.includes(a == null ? void 0 : a.ohr))
|
|
1005
1003
|
console.log("User has access to this assessment.");
|
|
1006
1004
|
else {
|
|
@@ -1061,18 +1059,18 @@ const Za = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-6c0980b5"]]), Y = (p) =>
|
|
|
1061
1059
|
var C;
|
|
1062
1060
|
(C = f.value) == null || C.sendQuestion();
|
|
1063
1061
|
};
|
|
1064
|
-
return (C, P) => (
|
|
1062
|
+
return (C, P) => (l(), r("section", null, [
|
|
1065
1063
|
F(ie, { "is-visible": b.value }, {
|
|
1066
|
-
default:
|
|
1064
|
+
default: le(() => [
|
|
1067
1065
|
e("div", Ya, [
|
|
1068
|
-
y.value === 424 || y.value === "425" ? (
|
|
1069
|
-
y.value === 400 ? (
|
|
1066
|
+
y.value === 424 || y.value === "425" ? (l(), r("div", eo, ao)) : M("", !0),
|
|
1067
|
+
y.value === 400 ? (l(), r("div", oo, lo)) : M("", !0)
|
|
1070
1068
|
])
|
|
1071
1069
|
]),
|
|
1072
1070
|
_: 1
|
|
1073
1071
|
}, 8, ["is-visible"]),
|
|
1074
1072
|
e("div", null, [
|
|
1075
|
-
s.value ? (
|
|
1073
|
+
s.value ? (l(), wt(pt, { key: 0 })) : (l(), r("main", ro, [
|
|
1076
1074
|
e("div", co, [
|
|
1077
1075
|
F(zt)
|
|
1078
1076
|
]),
|
|
@@ -1082,15 +1080,15 @@ const Za = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-6c0980b5"]]), Y = (p) =>
|
|
|
1082
1080
|
e("div", po, [
|
|
1083
1081
|
F(Bs, { onCallQuestion: oe }),
|
|
1084
1082
|
e("div", {
|
|
1085
|
-
class: W(
|
|
1083
|
+
class: W(i(a).showVoiceComponent === !0 ? "mt-[160px]" : "mt-[120px]")
|
|
1086
1084
|
}, null, 2)
|
|
1087
1085
|
]),
|
|
1088
|
-
|
|
1086
|
+
i(a).assessmentQuestion ? (l(), r("div", fo, [
|
|
1089
1087
|
F(za, {
|
|
1090
1088
|
ref_key: "newQuestionRef",
|
|
1091
1089
|
ref: f
|
|
1092
1090
|
}, null, 512)
|
|
1093
|
-
])) : (
|
|
1091
|
+
])) : (l(), r("div", go, [
|
|
1094
1092
|
F(Za)
|
|
1095
1093
|
]))
|
|
1096
1094
|
])
|