@genpact/genome.mfe.mgtwin-app 1.1.338-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-e7914052.mjs → AssessmentAMA-8a516362.mjs} +4 -4
- package/dist/{AssessmentSimulation-b3827d6f.mjs → AssessmentSimulation-034c0f8a.mjs} +469 -435
- package/dist/{EditSkillAdminData-f87338d1.mjs → EditSkillAdminData-153df5c8.mjs} +2 -2
- package/dist/{EditSkillData-1cbf2f6b.mjs → EditSkillData-cea08e7d.mjs} +2 -2
- package/dist/{HomeView-078f1500.mjs → HomeView-dd806d8a.mjs} +5 -5
- package/dist/{Loading-508b05e2.mjs → Loading-7e32cd81.mjs} +1 -1
- package/dist/{LoadingSimulation-bb2a93da.mjs → LoadingSimulation-83817b7a.mjs} +1 -1
- package/dist/{Modal-b27c118f.mjs → Modal-5bb3ed08.mjs} +1 -1
- package/dist/{PaperAirplaneIcon-7219b992.mjs → PaperAirplaneIcon-21d1c79b.mjs} +1 -1
- package/dist/{PromptTesting-4c2a6851.mjs → PromptTesting-50d7b188.mjs} +3 -3
- package/dist/{SkillAutomation-95b19579.mjs → SkillAutomation-15758005.mjs} +3 -3
- package/dist/{SkillData-50447d12.mjs → SkillData-a48755e0.mjs} +3 -3
- package/dist/{Testcase-61aa9f54.mjs → Testcase-1d816e54.mjs} +3 -3
- package/dist/{UnderMaintenance-e1b6bb4d.mjs → UnderMaintenance-96214e44.mjs} +1 -1
- package/dist/{VoiceTestcase-a1f296ee.mjs → VoiceTestcase-dcbe2287.mjs} +3 -3
- package/dist/{XMarkIcon-3c1990a8.mjs → XMarkIcon-cdc08cbd.mjs} +1 -1
- package/dist/{api-b900dd0b.mjs → api-30738dbe.mjs} +1 -1
- package/dist/{main-f31ba65c.mjs → main-ba33cc03.mjs} +713 -712
- package/dist/mgtwin.es.min.js +1 -1
- package/dist/mgtwin.umd.min.js +14 -14
- package/dist/style.css +1 -1
- package/dist/{voiceServices-ad6aa906.mjs → voiceServices-e627f944.mjs} +2 -2
- package/package.json +1 -1
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { d 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
|
|
6
|
-
import { i as
|
|
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", {
|
|
11
11
|
class: "h-11 w-auto cursor-pointer",
|
|
12
|
-
src:
|
|
12
|
+
src: ht,
|
|
13
13
|
alt: "Genome Logo"
|
|
14
14
|
}, null, -1), Pt = [
|
|
15
15
|
Lt
|
|
16
16
|
], Tt = ["href"], Ft = /* @__PURE__ */ e("img", {
|
|
17
17
|
class: "h-9 w-28 cursor-pointer md:w-36",
|
|
18
|
-
src:
|
|
18
|
+
src: ft,
|
|
19
19
|
alt: "Aiguru Logo"
|
|
20
|
-
}, null, -1),
|
|
20
|
+
}, null, -1), Mt = [
|
|
21
21
|
Ft
|
|
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,
|
|
@@ -33,70 +33,89 @@ const Nt = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#0
|
|
|
33
33
|
class: "px-2 md:px-0 lg:px-0",
|
|
34
34
|
href: t.value,
|
|
35
35
|
target: "_blank"
|
|
36
|
-
},
|
|
36
|
+
}, Mt, 8, Tt)
|
|
37
37
|
]));
|
|
38
38
|
}
|
|
39
|
-
}), Rt = { class: "max-h-screen overflow-auto md:p-6 p-3 flex flex-col items-center justify-center gap-4 text-[#161916] fontFormattingAMA" },
|
|
39
|
+
}), Rt = { class: "max-h-screen overflow-auto md:p-6 p-3 flex flex-col items-center justify-center gap-4 text-[#161916] fontFormattingAMA" }, It = /* @__PURE__ */ e("div", { class: "text-lg md:text-xl font-[700]" }, "Please Note Before You Begin", -1), Dt = /* @__PURE__ */ e("ul", { className: "list-disc max-h-[40vh] overflow-auto space-y-3 pl-6 text-[#102345] text-sm md:text-base" }, [
|
|
40
40
|
/* @__PURE__ */ e("li", null, [
|
|
41
|
-
/* @__PURE__ */
|
|
41
|
+
/* @__PURE__ */ L(" Choose a "),
|
|
42
42
|
/* @__PURE__ */ e("span", { class: "font-[600]" }, "quiet space"),
|
|
43
|
-
/* @__PURE__ */
|
|
43
|
+
/* @__PURE__ */ L(" and ensure your mic and internet connection are working properly. ")
|
|
44
44
|
]),
|
|
45
45
|
/* @__PURE__ */ e("li", null, [
|
|
46
|
-
/* @__PURE__ */
|
|
46
|
+
/* @__PURE__ */ L(" The assessment will "),
|
|
47
47
|
/* @__PURE__ */ e("span", { class: "font-[600]" }, "begin in text mode "),
|
|
48
|
-
/* @__PURE__ */
|
|
48
|
+
/* @__PURE__ */ L(", where the AI will ask you a few initial questions. ")
|
|
49
49
|
]),
|
|
50
50
|
/* @__PURE__ */ e("li", null, [
|
|
51
|
-
/* @__PURE__ */
|
|
51
|
+
/* @__PURE__ */ L(" You'll need to type your responses, which will help the "),
|
|
52
52
|
/* @__PURE__ */ e("span", { class: "font-[600]" }, "AI generate tailored scenarios "),
|
|
53
|
-
/* @__PURE__ */
|
|
53
|
+
/* @__PURE__ */ L(" for the role-play exercise. ")
|
|
54
54
|
]),
|
|
55
55
|
/* @__PURE__ */ e("li", null, [
|
|
56
56
|
/* @__PURE__ */ e("span", { class: "font-[600]" }, "Voice mode "),
|
|
57
|
-
/* @__PURE__ */
|
|
57
|
+
/* @__PURE__ */ L(" will be activated, once you initiate the role-play. ")
|
|
58
58
|
]),
|
|
59
59
|
/* @__PURE__ */ e("li", null, [
|
|
60
|
-
/* @__PURE__ */
|
|
60
|
+
/* @__PURE__ */ L(" Click "),
|
|
61
61
|
/* @__PURE__ */ e("span", { class: "font-[600]" }, "“Turn on Mic”"),
|
|
62
|
-
/* @__PURE__ */
|
|
62
|
+
/* @__PURE__ */ L(" to initiate the conversation with the voice bot. ")
|
|
63
63
|
]),
|
|
64
64
|
/* @__PURE__ */ e("li", null, [
|
|
65
65
|
/* @__PURE__ */ e("span", { class: "font-[600]" }, "Don’t mute "),
|
|
66
|
-
/* @__PURE__ */
|
|
66
|
+
/* @__PURE__ */ L(" until your response is fully processed to ensure smooth interaction. ")
|
|
67
67
|
]),
|
|
68
68
|
/* @__PURE__ */ e("li", null, [
|
|
69
|
-
/* @__PURE__ */
|
|
69
|
+
/* @__PURE__ */ L(" Stay expressive — this is an interactive role-play, so your "),
|
|
70
70
|
/* @__PURE__ */ e("span", { class: "font-[600]" }, "engagement matters"),
|
|
71
|
-
/* @__PURE__ */
|
|
71
|
+
/* @__PURE__ */ L(". ")
|
|
72
72
|
]),
|
|
73
73
|
/* @__PURE__ */ e("li", null, [
|
|
74
|
-
/* @__PURE__ */
|
|
74
|
+
/* @__PURE__ */ L(" The session may take up to "),
|
|
75
75
|
/* @__PURE__ */ e("span", { class: "font-[600]" }, "10 minutes "),
|
|
76
|
-
/* @__PURE__ */
|
|
76
|
+
/* @__PURE__ */ L(", so plan accordingly. ")
|
|
77
77
|
])
|
|
78
|
-
], -1),
|
|
78
|
+
], -1), Ht = { class: "max-h-screen overflow-auto md:p-6 p-3 flex flex-col items-center justify-center gap-4 text-[#161916] fontFormattingAMA" }, jt = /* @__PURE__ */ e("div", { class: "text-lg md:text-xl font-[700]" }, "Please Note Before You Begin", -1), qt = /* @__PURE__ */ e("ul", { className: "list-disc max-h-[40vh] overflow-auto space-y-3 pl-6 text-[#102345] text-sm md:text-base" }, [
|
|
79
79
|
/* @__PURE__ */ e("li", null, "This simulation is expected to take approximately 15 minutes to complete."),
|
|
80
80
|
/* @__PURE__ */ e("li", null, " Please ensure it is concluded within 30 minutes, as sessions exceeding this duration will automatically restart from the beginning. ")
|
|
81
|
-
], -1),
|
|
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
|
+
/* @__PURE__ */ e("li", null, "your current role and area of expertise."),
|
|
83
|
+
/* @__PURE__ */ e("li", null, "You may choose an industry or domain of your liking."),
|
|
84
|
+
/* @__PURE__ */ e("ul", { className: "list-disc max-h-[40vh] overflow-auto space-y-3 pl-6 text-[#102345] text-sm md:text-base" }, [
|
|
85
|
+
/* @__PURE__ */ e("li", null, [
|
|
86
|
+
/* @__PURE__ */ e("b", null, "Part 1:"),
|
|
87
|
+
/* @__PURE__ */ L(" You’ll be presented with a client scenario and asked to identify the most appropriate Genpact solution based on the client’s challenges. ")
|
|
88
|
+
]),
|
|
89
|
+
/* @__PURE__ */ e("li", null, [
|
|
90
|
+
/* @__PURE__ */ e("b", null, "Part 2:"),
|
|
91
|
+
/* @__PURE__ */ L(" Role-play which covers an HR or Talent-related challenge that’s directly connected to the client’s business issues and your own HR expertise. ")
|
|
92
|
+
])
|
|
93
|
+
]),
|
|
94
|
+
/* @__PURE__ */ e("li", null, " You'll need to type your responses, which will help the AI generate tailored scenarios. "),
|
|
95
|
+
/* @__PURE__ */ e("li", null, "For the role-play, you will be presented with both - text and voice mode."),
|
|
96
|
+
/* @__PURE__ */ e("li", null, " In case you opt for voice mode, you must choose a quiet space and ensure your mic and internet connection are working properly. "),
|
|
97
|
+
/* @__PURE__ */ e("li", null, "Voice mode will be activated, once you initiate the role-play."),
|
|
98
|
+
/* @__PURE__ */ e("li", null, "Click “Turn on Mic” to initiate the conversation with the voice bot."),
|
|
99
|
+
/* @__PURE__ */ e("li", null, "Don’t mute until your response is fully processed to ensure smooth interaction.")
|
|
100
|
+
], -1), Vt = { class: "flex items-end justify-start" }, Gt = { class: "fontFormattingAMA w-full bg-gray-100 rounded-lg" }, Qt = { class: "w-full rounded-md px-3 py-2 text-lg md:text-xl font-bold text-black" }, Ot = { class: "w-full px-3 py-2 text-sm text-black md:text-base font-[550]" }, Wt = {
|
|
82
101
|
key: 0,
|
|
83
102
|
class: "fontFormattingAMA"
|
|
84
|
-
},
|
|
85
|
-
This is a role-play simulation designed to mirror real-world scenarios. Just follow the prompts, speak naturally, and let the AI guide you. Based on your responses, you’ll receive personalized feedback to help sharpen your client engagement skills.`,
|
|
103
|
+
}, Xt = /* @__PURE__ */ e("br", null, null, -1), Jt = ` You're about to step into a realistic, voice-based client conversation powered by AI.
|
|
104
|
+
This is a role-play simulation designed to mirror real-world scenarios. Just follow the prompts, speak naturally, and let the AI guide you. Based on your responses, you’ll receive personalized feedback to help sharpen your client engagement skills.`, Ut = "AI Guru will ask you a few questions regarding our strategy, some of our advanced technology solutions, and your comfort with it. At the end, you'll also receive a feedback on active listening, outlining your strengths and improvement areas.", Kt = "You're about to step into a realistic, AI-Powered (voice and text enabled) client situations. This is a role-play designed to mirror real-world scenarios. Just follow the prompts, and let the AI guide you. Based on your responses, you’ll receive personalized feedback to help sharpen your client engagement skills.", Zt = /* @__PURE__ */ I({
|
|
86
105
|
__name: "greetingsSimulation",
|
|
87
106
|
emits: ["callQuestion"],
|
|
88
107
|
setup(p, { emit: s }) {
|
|
89
|
-
const t =
|
|
90
|
-
t.simulationSkill === "7bd03cb6-79ad-4e2a-8a8b-88dc16147369" ? (t.question = "Let's start", t.beginFlag = !1, b.value = !0) : t.simulationSkill === "25f8e44f-b83e-42d6-a168-b0e1fb83b26a" ? (t.question = "Let's start", t.beginFlag = !1, a.value = !0) : (t.beginFlag = !1, t.question = "Let's start", s("callQuestion"));
|
|
91
|
-
},
|
|
92
|
-
return (
|
|
93
|
-
|
|
94
|
-
default:
|
|
108
|
+
const t = E(), b = h(!1), a = h(!1), d = h(!1), x = () => {
|
|
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), 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
|
+
F(ie, { "is-visible": b.value }, {
|
|
113
|
+
default: le(() => [
|
|
95
114
|
e("div", Rt, [
|
|
115
|
+
It,
|
|
96
116
|
Dt,
|
|
97
|
-
jt,
|
|
98
117
|
e("button", {
|
|
99
|
-
onClick:
|
|
118
|
+
onClick: k[0] || (k[0] = (z) => {
|
|
100
119
|
b.value = !1, s("callQuestion");
|
|
101
120
|
}),
|
|
102
121
|
type: "button",
|
|
@@ -106,13 +125,13 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
106
125
|
]),
|
|
107
126
|
_: 1
|
|
108
127
|
}, 8, ["is-visible"]),
|
|
109
|
-
|
|
110
|
-
default:
|
|
111
|
-
e("div",
|
|
112
|
-
|
|
128
|
+
F(ie, { "is-visible": a.value }, {
|
|
129
|
+
default: le(() => [
|
|
130
|
+
e("div", Ht, [
|
|
131
|
+
jt,
|
|
113
132
|
qt,
|
|
114
133
|
e("button", {
|
|
115
|
-
onClick:
|
|
134
|
+
onClick: k[1] || (k[1] = (z) => {
|
|
116
135
|
a.value = !1, s("callQuestion");
|
|
117
136
|
}),
|
|
118
137
|
type: "button",
|
|
@@ -122,51 +141,68 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
122
141
|
]),
|
|
123
142
|
_: 1
|
|
124
143
|
}, 8, ["is-visible"]),
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
e("div",
|
|
128
|
-
|
|
144
|
+
F(ie, { "is-visible": d.value }, {
|
|
145
|
+
default: le(() => [
|
|
146
|
+
e("div", Et, [
|
|
147
|
+
Bt,
|
|
148
|
+
L(" The assessment will begin in text mode , where the AI will ask you a few initial questions – "),
|
|
149
|
+
$t,
|
|
150
|
+
e("button", {
|
|
151
|
+
onClick: k[2] || (k[2] = (z) => {
|
|
152
|
+
d.value = !1, s("callQuestion");
|
|
153
|
+
}),
|
|
154
|
+
type: "button",
|
|
155
|
+
class: "bg-[#021c42] rounded-md px-4 py-1.5 text-center md:text-base text-sm text-white cursor-pointer italic hover:bg-blue-700"
|
|
156
|
+
}, " Proceed ")
|
|
157
|
+
])
|
|
158
|
+
]),
|
|
159
|
+
_: 1
|
|
160
|
+
}, 8, ["is-visible"]),
|
|
161
|
+
e("div", Vt, [
|
|
162
|
+
e("div", Gt, [
|
|
163
|
+
e("div", Qt, V(c.value), 1),
|
|
164
|
+
e("div", Ot, V(f.value), 1)
|
|
129
165
|
])
|
|
130
166
|
]),
|
|
131
|
-
|
|
167
|
+
i(t).beginFlag ? (l(), r("span", Wt, [
|
|
132
168
|
e("button", {
|
|
133
169
|
type: "button",
|
|
134
170
|
id: "button",
|
|
135
|
-
onClick:
|
|
171
|
+
onClick: x,
|
|
136
172
|
class: "mt-4 bg-[#021c42] rounded-md px-4 py-1.5 text-center md:text-base text-sm text-white cursor-pointer italic hover:bg-blue-700 w-32"
|
|
137
173
|
}, " Let's begin ")
|
|
138
|
-
])) :
|
|
139
|
-
|
|
174
|
+
])) : M("", !0),
|
|
175
|
+
Xt
|
|
140
176
|
]));
|
|
141
177
|
}
|
|
142
|
-
}),
|
|
178
|
+
}), Yt = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAB9AH0DASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD36medEDgypn/eFLL/AKl8f3TXzJofh/xD458Z6/a23iGWzSzkLEsxIwTjtQB9NefD/wA9U/76FHnw/wDPVP8AvoV4R/wqLX84/wCFgRZHX94f8ap6x8LfEul6FeapH41+0pbRlyqMecds0AfQysrjKsGHqDQzKoyzAD1JrzH4G6hPdfD37RfXTSMJ3G+Vugz61ynxd+J7M954V0uCb7SjKftUD5B9higD3dZI3OFkVj7HNKzon33C/U4r538P3Go/DnRrbxjqurPqUdynlf2f5nzoW6E59MVifET4uXfinT7SOxsbzS9j7jIWxvoA+olkRwSrqcdcGk8+H/nqn/fQr5Y+HXxH1DTI73T7mO8vWvv3STbsiEnjJrsl+D3iSdWlj8cqyE5YqzED60Ae7qyuMqwYeoOaRpY1OGkUH0LCvIfCfiOTwP4itPAt9ctq1xct5ovUfIUN/D+lcn4tsta8R/GufQLHWZbNXjDA7jtXA9BQB9E+fD/z1T/voUefD/z1T/voV4S/wg8Qo5R/H0asOoZyCP1oHwe8SOjmLx2spVScIzGgD3hXR/uurfQ5pa8P+At3qE19r1tfXstybeXywXbPQ4yK9woAbL/qZP8AdNeEfCb/AJHXxxjj923P4mvd5v8AUyf7pr58+GWs6VpXjvxeuqX0VqlxlFLtjPzc0AeOanqN8mq3areT4Ezf8tD617H8OZpZ/gx4maaV5DtfG45xSz/Dv4Zz3EszeKlBkYtjzPWtpB4M8J/DrW9L0rX4bhriJiAXBJOOgoAj+Fulxa18E7iwmvTZRyXD5nDbdvPrXIeDNP0zw18azZT6nBe2kcJ/0mVgVYkDvWt4YOP2b9S+YgiaTkH3rzzwX4NXV7yK811pbPRHU5vDwu7sM0Aez658E7bxLqk+px66/wBmnbekS8oPpXmPxK8Q3l3p9r4fm0P7JHYSeWlx5eDLjjrX0XpV3oXhPwjZKNST+z0XbFPI/wB/8a8w1K6/4TzUjbeMUXStKt5d9jc/d849hnvxQBm/BOwhttO1a01mNbNrxdsD3A2k5H8OaPEd5d/Cmwn8LWzy6k+rKZFlJO5M8YFaPxnjSLWPCEUDHylkQKy8ZGRiqPxpurqx+IHh26sYfOuo4QY4yM7jmgB3wh+G1zeT2vinU7i4hurecgQyqckDoeatxHP7Tn/bE/yrvvBHjafU7VLTxHHFp2sPIQlqeGZexxXm9zqNnpf7SDXV/cJbwLDgu5wM4oA86+Jt9eQ/ELVljuplXzTgByK7b4AXNxcazqvnTySAW54Zia2tf8HfDjX9cutUuPFCJJcNuZVk4BrU8G6b4B8EXF3dWPiSKWSaIoQ8g4FAGd8Bf+Q54o/6+m/9CNe514V8AnSTWfEzxsGRrglSO4JNe60AIwDKVPQ8GvHfFXw0+HWk3gvtcnuIXvpjtxKQCxr2J92xtv3scfWvDNY3WmsTTfFMibSxLnSxF2YHnOPagDab4GeBVsjeE3X2cJ5hfzj93Gc1k6f8NPhdqmk3OqWd1cvZ22fNfzj8uKvah4g1Xx09na+BJwdJhxFfJKNuUPBH5Zrsx4W8L+EfCOoW5tPK02RC1yoOc+tAGLpem+BV+GFza2l07eHy7ebIX5z35rh3+ztZjR7h8fDdcGK5x85f03deuatzeIfBeq+DLnwZ4NWVZ7vJhikUgFj6k10Fpo+l+Ffg3bab46iH2WKT94kfPzEnbQBvP4J8MeKfAthpURkk0mHD27I+Dx715NDr+keJNVuvDnjG5Een6SxXTwh2ksOBk9+KZr+veNfC2jR6nod2kHhWRwlkuAWVT0BFc54xv/B2p2OkXGiJJ/bUsqtesw4JPX9aAJfHeo+MptS0cavbpGsLj+zwF+8Aflz+lWNb1rxIvxB0G98aRpamDaUKrgbPWvWPH154UsNC0mbxIjtfR2wazK/wuF4/WuS8J6ZJ8WfB+q32uKLzVLcmKykJ2hRigCfW5otW+Klj43tG83w/aRqk10OisM5H6it7xJ4T+Hvia3k8Z6jdS/ZZcI0qSEAmvITZeN9EkPw5Dxot7+8MHUNn3/Cus0zw94h8K6Qtj45WM+DoiTLFGcnefu/rQBr6H8PPhV4kvTZ6VeXM04XdtEx6VY0v4XfDLWtTudO0+5uZbq1JEqiY8EVj+GLPT/AXiibxmYmg8L3KFLVh8z/N04q213ZazfXF38KR5OryMZLx5RtDKfTNAHqHhD4f6N4I+0f2UsoM+N5kbPSuqryH4MeLPEHiG51i2126897STYBjG0jg169QAV5p8X/Aeq+ObDTodMkiVreQswkOOoxXpfaq819bQwyuZ4iY1LEbxnigD580b4R/EXw8kq6Vq1tbLL98LJjNei+HrDV/DfgrVH8cXAv4wCzKp3fJ6Vyl7rl58Sbt9S0jUG0yDQ5C00bvjzgvPH1xXYaH8R9N8TeDNS1WSyJhtAVe3cgmTHoKAPKtZ8eeAItHnfw5pE9nqwH7iby8bD65rqfh1480jxpo1p4U8QwzX18+Xd5UyjYPHNYreLPDXjoHwxp3htNPvbz5Y5nQDYfWuj+H11pXhXxPD4Gm05JNWt0ZmvlUfN3+vegDT0v4e6q3ii5h1iSC48LqD9ls92dp7ce1UfiF8HrfVrO0Xwva2lncRSbnYttyKz/BmrXr/HLW7S51BzbJG+2N3+XPbFct8R9G8T+E71dVTxDLdQXNySsULklRnPIoAl1/4SePtTsfN1bVLaeOziJQNJ0AHasj4YWXia1sLnW7C/WHSLGbN3Fu+Z8dcCuye+1L4v2cMGlXsujmyjEcwmYr5xx29a5NvCWr/D/xvpOjy37z2d84eVUzsIzgg0AejaT8SfA/inxnZSJplz/azfJFO8eNtdh8SfDd54t8HXGk2EkazyMrDeeOKbrQ8M+EtKm1yHTLaSS1GVWAAufpXhw+LN1H8SB4klt71dL2bDanOP8ACgDvPBXwz8R2syWHiu5t73RIoyI7UPuAbscVr+LPh7d21kr+BfI0y6GfPYNjcvpXHfDHxjceJfizqF613JHYyxMUglfgela+o3Op/C7V77WtUu59Vs9SdlhhjJOzPTNAGd+z2kseoeIUnbdMs2JG9Wzz+te814T+z+7zaj4huGheNZpvMUMMdSTivdqAGy/6mT/dNfGWsvrN/wCM9StbOe8kBuSrCNmOATivs5l3IynuMVxPhv4fWfhHVtY1m2le5nvVLeW4zgjnAoA8B8Z/DzVfBkNl9guru5F9HulWIHg+hxWl8PvA+pDRrjxLJLcxfYJN5sSCPOx2x3r1TRPiNdS2mrSeJ7GDTZLYMbVZRjzMZx1rjrD40+L9Uikk0zwzDcQo2CY1OKAMHSfELeJfjdpl+2l/2acKvkbNp474ruPGdlaeCPGd14+F9FcXGBH9h3DdyMZq54U8LT+MNdtfHGtQPp2oQnYLVRhSF6GvPvF+kad4h+OWoafq+omys2TcZC3AIAwKANtvhpH4sX/hMn17+y/7R/ebd23bntmu48BfDH/hGbue6vNUOqxTJhFl+dR7jNeQ/ELW9Wt/DMPhuKyP9h2koFvfDP73HTmul0n4nePLPRbSGDwt5sMUQCyFT8ygdaANT4xWdxa+IPDp0u3khiEwMrW67RjPfFeiay2ha3oslnJqVmk7xbFm3ruQ46g1xPg34pW3jOy1Oz8Rm108qpjHODzwevevJfG/geLSZhN4ZvbjU7AJummVsiM+hxQBc1O0vvhz4yt7qO6l1zToVEjtuLxknse1eqySaD8T/h1hnsdJmnf/AGVK4/xrnvhXHo/iL4XXHhq91BI7q6nf5c/PjjGKvr+zrpKrgaxeD2GKAOfi+CemW7b4PGcET+qSgH9DXeeI/FVv4Q8MadaWtrH4gkiUI+AJCMdz1rjLj4R+CLK5e2uvF0sUycMjOMimfC6zj8JeJtYbU5vL050KW1xcfdlHYjNAHffDDx7B4za+SLSI7A25AYIoGfrXo1eF/ANlk1rxO6EFGuSVI6EZNe6UAI5IRioy2OK8XvfFPxaj1qWK30WA2gmwh8vOUz617PISsTkdQCRXzxb+MviZ4h8T6rp+gSwyLZyHIZQNq5wKAPU/FHw60zx5DYz6358VxCnKwtjk9RS6b4RXwB4S1CDwxG9xdEGSNZjnLV57/wAXw/uW/wClVtQv/jRpenz310IFggXe5ABwKAPTfCviPV4vB8mq+NY4rCaNzuwu0bexxXlfj/RvCPjWa51HwzeyXniGcgrCjfKwHXiu7+Hd7N8SPhzIPEhFwJZWRto25APFYHhv4Y33hn4vm/0+z8vQ0jIR2fJ5AoApeF/DnijxVp0PhTxfpxttFtE8yOWMbXLjoCe/eqFn8Q/HMuqXfh/QrG2uLXTyYiTH8wjHGSfpXsth420TVfEV1oFrcM2oW6kuhXA/OvKtAjl+G3ivXNS8T/6Na6mzJasvzbyTx9KAPOviBovhmG5sh4au5Lm/uW/0mMnOHPUD8a9A+HgsPB3hXUtB8aSf2e2oNuRHPLIR1HpXEXPwr8Z215PrcFkixI5uY33j7udwOKuJ4q0Dxf4c1C48azl9bt18uy8tcDGP8aAM6+t7HQPiPY/8K+ma/ZVDRiQ7vn7ivRf+Et+Mm/8A5ANv1/55D/GvKvhNn/hZekbc/wCsPT6V9Hq3jf8A4WZgrF/wjOzrxnOP50AfM+o6T4m8WeMr2GSxLaszF5oU4217zBpPhjx/4VsfD17eP9v0qACWKJsMjAcg+tcbY+KNM8J/HLWr7V5migYMgYLnk16C8ngXwRFJ4pVniOrqWEn3t270HagDkf2fYEttT8R28ZJSKfYpPoCRXu9eEfs/zR3GreJJYjlJJy6/QkkV7vQA2X/Uyf7prwn4RuyeN/G7ocMqMQffdXu0v+pk/wB014T8IlEnjvxrFvVTIpUZPq1AHmuofFDxhBqVzGusShVlYAfjXpvg7xFqviH4P+JLjVLtriREdVZuoGKw7v8AZ/1e5vJ5v7UtMSOWHzeprsNL8F3Hgj4VeIbG7u4ZXliZxsbgcUAU/hZa6re/BS4t9EmEGoNO/luTjHNdJ4G8ZvbajD4L12aSbxDErGWTGVPcc/Sue+E2uxeGfgzPq08TyxwzuSiDk81nSeMNO+JGofYPD1g+m69N8wvyuCFHUZoAxLTxXpvgn4163qGqI5iO6MeWMkE16f4/8ReET4f0u9161e4huzutQFyQxHBNedt4OPw0u28SeLUTWoZz5WzG47z/ABGvboNP0bxNoVhNPp0bW+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 = {
|
|
143
179
|
key: 0,
|
|
144
180
|
class: "py-4"
|
|
145
|
-
},
|
|
181
|
+
}, ns = { class: "fontFormattingAMA px-2 py-1.5 md:px-6" }, is = ["value", "disabled", "name"], ls = {
|
|
146
182
|
for: "item",
|
|
147
183
|
name: "options-Array",
|
|
148
184
|
id: "index"
|
|
149
|
-
},
|
|
185
|
+
}, rs = {
|
|
150
186
|
key: 1,
|
|
151
187
|
class: "py-4"
|
|
152
|
-
},
|
|
188
|
+
}, ds = { class: "fontFormattingAMA px-2 py-1.5 md:px-6" }, cs = ["onClick", "disabled", "name"], us = {
|
|
153
189
|
for: "item",
|
|
154
190
|
name: "options-Array",
|
|
155
191
|
id: "index"
|
|
156
|
-
},
|
|
192
|
+
}, ms = {
|
|
157
193
|
key: 2,
|
|
158
194
|
class: "flex flex-col justify-start py-10"
|
|
159
|
-
},
|
|
195
|
+
}, hs = /* @__PURE__ */ ut(() => /* @__PURE__ */ e("div", { class: "mb-4" }, " Add Agentic AI to your Digital Skills on Genome.ai and start mastering AI today! ", -1)), ps = /* @__PURE__ */ ut(() => /* @__PURE__ */ e("img", {
|
|
160
196
|
class: "h-20 w-20",
|
|
161
|
-
src:
|
|
197
|
+
src: Yt,
|
|
162
198
|
alt: "qr_code"
|
|
163
|
-
}, null, -1)),
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
],
|
|
199
|
+
}, null, -1)), fs = [
|
|
200
|
+
hs,
|
|
201
|
+
ps
|
|
202
|
+
], gs = {
|
|
167
203
|
key: 3,
|
|
168
204
|
class: "flex flex-col justify-start items-start bg-gray-100 rounded-lg"
|
|
169
|
-
},
|
|
205
|
+
}, vs = { class: "flex justify-start items-center md:gap-[40px] gap-[30px]" }, bs = /* @__PURE__ */ I({
|
|
170
206
|
__name: "responseSimulation",
|
|
171
207
|
props: {
|
|
172
208
|
question: {
|
|
@@ -197,16 +233,16 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
197
233
|
},
|
|
198
234
|
emits: ["char-typed"],
|
|
199
235
|
setup(p, { emit: s }) {
|
|
200
|
-
const t = p, b =
|
|
236
|
+
const t = p, b = h([]), a = h(!1), d = E(), x = h("");
|
|
201
237
|
let v = [], o = "";
|
|
202
|
-
const
|
|
203
|
-
v = o.split(""),
|
|
204
|
-
for (let
|
|
205
|
-
|
|
206
|
-
},
|
|
207
|
-
|
|
208
|
-
}, g =
|
|
209
|
-
const
|
|
238
|
+
const y = async () => {
|
|
239
|
+
v = o.split(""), x.value = "";
|
|
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((m) => setTimeout(m, 60));
|
|
242
|
+
}, _ = () => {
|
|
243
|
+
d.isRestart = !0, d.searchBoxdisable = !1, d.showVoiceComponent = !0, d.showSelectTypeConvesation = !1, d.showModelToggle = !0, d.isSpeechToggle = !1;
|
|
244
|
+
}, g = ge(() => {
|
|
245
|
+
const c = t.answer.replace(/[*#]/g, "").replace(
|
|
210
246
|
/Assessment Rating & Feedback/g,
|
|
211
247
|
'<div style="font-size: 26px; font-weight: bold; text-decoration: underline;">Rating & Feedback</div>'
|
|
212
248
|
).replace(
|
|
@@ -237,18 +273,18 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
237
273
|
/Model Solution/g,
|
|
238
274
|
'<div style="font-size: 16px; font-weight: bold;">Model Solution</div>'
|
|
239
275
|
);
|
|
240
|
-
(
|
|
241
|
-
const
|
|
242
|
-
if (
|
|
243
|
-
if (
|
|
244
|
-
return console.log("aig found"),
|
|
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 m = /\[([^\]]+)\]\((https?:\/\/[^\s]+)\)/g;
|
|
278
|
+
if (c.includes("AI Guru")) {
|
|
279
|
+
if (c.includes("AI Guru"))
|
|
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>`);
|
|
245
281
|
} else
|
|
246
|
-
return
|
|
282
|
+
return c.replace(m, (u, f, A) => `<a href="${A}" target="_blank" rel="noopener noreferrer" style="color: blue; text-decoration: underline;">${f}</a>`);
|
|
247
283
|
});
|
|
248
|
-
return
|
|
284
|
+
return re(
|
|
249
285
|
() => t.answer,
|
|
250
286
|
() => {
|
|
251
|
-
let
|
|
287
|
+
let c = t.answer.replace(/[*#]/g, "").replace(
|
|
252
288
|
/Assessment Rating & Feedback/g,
|
|
253
289
|
'<div style="font-size: 26px; font-weight: bold; text-decoration: underline;">Rating & Feedback</div>'
|
|
254
290
|
).replace(
|
|
@@ -276,77 +312,77 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
276
312
|
/Model Solution/g,
|
|
277
313
|
'<div style="font-size: 16px; font-weight: bold;">Model Solution</div>'
|
|
278
314
|
);
|
|
279
|
-
const
|
|
280
|
-
|
|
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();
|
|
281
317
|
},
|
|
282
318
|
{ immediate: !0 }
|
|
283
|
-
),
|
|
284
|
-
|
|
285
|
-
}), (
|
|
286
|
-
e("div",
|
|
287
|
-
|
|
319
|
+
), re(b, (c) => {
|
|
320
|
+
d.question = (c ?? []).join(", ");
|
|
321
|
+
}), (c, m) => (l(), r("div", es, [
|
|
322
|
+
e("div", ts, [
|
|
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", {
|
|
288
324
|
key: 0,
|
|
289
325
|
class: "fontFormattingAMA answer-link",
|
|
290
|
-
innerHTML:
|
|
291
|
-
}, null, 8,
|
|
326
|
+
innerHTML: x.value
|
|
327
|
+
}, null, 8, ss)) : (l(), r("span", {
|
|
292
328
|
key: 1,
|
|
293
329
|
class: "fontFormattingAMA answer-link",
|
|
294
330
|
innerHTML: g.value
|
|
295
|
-
}, null, 8,
|
|
331
|
+
}, null, 8, as)),
|
|
296
332
|
e("div", null, [
|
|
297
|
-
p.optionsArray.length &&
|
|
298
|
-
(
|
|
299
|
-
key:
|
|
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
|
+
key: f,
|
|
300
336
|
class: "italic"
|
|
301
337
|
}, [
|
|
302
|
-
e("div",
|
|
303
|
-
|
|
338
|
+
e("div", ns, [
|
|
339
|
+
ye(e("input", {
|
|
304
340
|
class: "mr-4 cursor-pointer",
|
|
305
341
|
type: "checkbox",
|
|
306
342
|
value: u,
|
|
307
|
-
"onUpdate:modelValue":
|
|
308
|
-
disabled:
|
|
343
|
+
"onUpdate:modelValue": m[0] || (m[0] = (A) => b.value = A),
|
|
344
|
+
disabled: i(d).conversations.length - 1 !== t.ansId,
|
|
309
345
|
name: g.value
|
|
310
|
-
}, null, 8,
|
|
346
|
+
}, null, 8, is), [
|
|
311
347
|
[gt, b.value]
|
|
312
348
|
]),
|
|
313
|
-
e("label",
|
|
349
|
+
e("label", ls, V(u), 1)
|
|
314
350
|
])
|
|
315
351
|
]))), 128))
|
|
316
|
-
])) : p.optionsArray.length ? (
|
|
317
|
-
(
|
|
318
|
-
key:
|
|
352
|
+
])) : p.optionsArray.length ? (l(), r("div", rs, [
|
|
353
|
+
(l(!0), r(ve, null, be(p.optionsArray, (u, f) => (l(), r("div", {
|
|
354
|
+
key: f,
|
|
319
355
|
class: "italic"
|
|
320
356
|
}, [
|
|
321
|
-
e("div",
|
|
357
|
+
e("div", ds, [
|
|
322
358
|
e("input", {
|
|
323
359
|
class: "mr-4 cursor-pointer",
|
|
324
360
|
type: "radio",
|
|
325
|
-
onClick: (
|
|
326
|
-
disabled:
|
|
361
|
+
onClick: (A) => i(d).question = String(p.optionsArray[f]),
|
|
362
|
+
disabled: i(d).conversations.length - 1 !== t.ansId,
|
|
327
363
|
name: g.value
|
|
328
|
-
}, null, 8,
|
|
329
|
-
e("label",
|
|
364
|
+
}, null, 8, cs),
|
|
365
|
+
e("label", us, V(u), 1)
|
|
330
366
|
])
|
|
331
367
|
]))), 128))
|
|
332
|
-
])) :
|
|
368
|
+
])) : M("", !0)
|
|
333
369
|
]),
|
|
334
|
-
a.value &&
|
|
335
|
-
|
|
336
|
-
e("div",
|
|
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
|
+
e("div", vs, [
|
|
337
373
|
e("button", {
|
|
338
374
|
type: "button",
|
|
339
375
|
id: "button",
|
|
340
|
-
onClick:
|
|
376
|
+
onClick: m[1] || (m[1] = (u) => _()),
|
|
341
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]"
|
|
342
378
|
}, " Start Conversation ")
|
|
343
379
|
])
|
|
344
|
-
])) :
|
|
380
|
+
])) : M("", !0)
|
|
345
381
|
])
|
|
346
382
|
]));
|
|
347
383
|
}
|
|
348
384
|
});
|
|
349
|
-
const
|
|
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({
|
|
350
386
|
__name: "learnerSimulation",
|
|
351
387
|
props: {
|
|
352
388
|
question: {
|
|
@@ -359,23 +395,23 @@ const ps = /* @__PURE__ */ X(hs, [["__scopeId", "data-v-cc5db4a2"]]), gs = { cla
|
|
|
359
395
|
}
|
|
360
396
|
},
|
|
361
397
|
setup(p) {
|
|
362
|
-
return (s, t) => (
|
|
363
|
-
e("div",
|
|
398
|
+
return (s, t) => (l(), r("div", xs, [
|
|
399
|
+
e("div", ws, [
|
|
364
400
|
e("div", {
|
|
365
401
|
class: "w-fit fontFormattingAMA text-[0.8125rem] md:text-[0.9375rem] text-white bg-genpact-blue-box leading-6 p-3",
|
|
366
402
|
innerHTML: p.question.replace(/\n/g, "<br>")
|
|
367
|
-
}, null, 8,
|
|
403
|
+
}, null, 8, _s)
|
|
368
404
|
])
|
|
369
405
|
]));
|
|
370
406
|
}
|
|
371
|
-
}),
|
|
407
|
+
}), ks = (p) => (K("data-v-347ad6de"), p = p(), Z(), p), Ss = { class: "flex w-full flex-col items-start justify-start bg-white" }, Ns = { class: "bot-typing-animation gap-1" }, Cs = { class: "block w-full text-lg italic text-gray-800" }, Ls = /* @__PURE__ */ ks(() => /* @__PURE__ */ e("span", { class: "dot-animation" }, [
|
|
372
408
|
/* @__PURE__ */ e("span", null, "."),
|
|
373
409
|
/* @__PURE__ */ e("span", null, "."),
|
|
374
410
|
/* @__PURE__ */ e("span", null, ".")
|
|
375
|
-
], -1)),
|
|
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({
|
|
376
412
|
__name: "LoadingResponse",
|
|
377
413
|
setup(p) {
|
|
378
|
-
const s =
|
|
414
|
+
const s = h("Generating response"), t = h([
|
|
379
415
|
"This may take a few seconds",
|
|
380
416
|
"Fetching the best response for you",
|
|
381
417
|
"Thinking... give me a moment",
|
|
@@ -387,132 +423,132 @@ const ps = /* @__PURE__ */ X(hs, [["__scopeId", "data-v-cc5db4a2"]]), gs = { cla
|
|
|
387
423
|
return setTimeout(() => {
|
|
388
424
|
const b = Math.floor(Math.random() * t.value.length);
|
|
389
425
|
s.value = t.value[b];
|
|
390
|
-
}, 15e3), (b, a) => (
|
|
391
|
-
e("div",
|
|
392
|
-
e("div",
|
|
393
|
-
|
|
426
|
+
}, 15e3), (b, a) => (l(), r("div", Ss, [
|
|
427
|
+
e("div", Ns, [
|
|
428
|
+
e("div", Cs, V(s.value), 1),
|
|
429
|
+
Ls
|
|
394
430
|
]),
|
|
395
|
-
|
|
431
|
+
Ps
|
|
396
432
|
]));
|
|
397
433
|
}
|
|
398
434
|
});
|
|
399
|
-
const
|
|
435
|
+
const Fs = /* @__PURE__ */ X(Ts, [["__scopeId", "data-v-347ad6de"]]), Ms = { class: "flex mx-auto justify-end items-end py-3" }, zs = { class: "max-w-[80%]" }, Rs = {
|
|
400
436
|
key: 0,
|
|
401
437
|
class: "fontFormattingAMA w-fit text-[0.8125rem] md:text-[0.9375rem] text-white bg-genpact-blue-box leading-6 p-3 rounded-lg"
|
|
402
|
-
},
|
|
438
|
+
}, Is = /* @__PURE__ */ I({
|
|
403
439
|
__name: "QuestionStreaming",
|
|
404
440
|
setup(p) {
|
|
405
|
-
const s =
|
|
406
|
-
return (t, b) => (
|
|
407
|
-
e("div",
|
|
408
|
-
|
|
441
|
+
const s = E();
|
|
442
|
+
return (t, b) => (l(), r("div", Ms, [
|
|
443
|
+
e("div", zs, [
|
|
444
|
+
i(s).userSpeechText.toLowerCase().includes("play") && i(s).userSpeechText.length < 10 ? M("", !0) : (l(), r("div", Rs, V(i(s).userSpeechText), 1))
|
|
409
445
|
])
|
|
410
446
|
]));
|
|
411
447
|
}
|
|
412
|
-
}),
|
|
448
|
+
}), Ds = { key: 0 }, Hs = { key: 1 }, js = {
|
|
413
449
|
key: 0,
|
|
414
450
|
class: "flex"
|
|
415
|
-
},
|
|
451
|
+
}, qs = {
|
|
416
452
|
key: 1,
|
|
417
453
|
name: "askQuestion"
|
|
418
|
-
},
|
|
454
|
+
}, Es = /* @__PURE__ */ I({
|
|
419
455
|
__name: "conversationSimulation",
|
|
420
456
|
setup(p) {
|
|
421
|
-
let s =
|
|
457
|
+
let s = h(""), t = h("");
|
|
422
458
|
s.value = '<a style="color:#00AECF;"', t.value = '<ul style="list-style: disc !important; margin-left: 3.5rem !important; padding: 0;"';
|
|
423
|
-
const b =
|
|
459
|
+
const b = E(), a = h(), d = () => {
|
|
424
460
|
a.value.scrollTo(0, a.value.scrollHeight);
|
|
425
461
|
};
|
|
426
|
-
return
|
|
462
|
+
return ce(() => {
|
|
427
463
|
var o;
|
|
428
|
-
const
|
|
429
|
-
|
|
464
|
+
const x = document.getElementsByName("askQuestion"), v = Array.from(x);
|
|
465
|
+
x.length && ((o = v == null ? void 0 : v.pop()) == null || o.scrollIntoView({ behavior: "smooth", block: "center" })), window.addEventListener("custom-event", d);
|
|
430
466
|
}), vt(() => {
|
|
431
467
|
var o;
|
|
432
|
-
const
|
|
433
|
-
|
|
468
|
+
const x = document.getElementsByName("askQuestion"), v = Array.from(x);
|
|
469
|
+
x.length && ((o = v == null ? void 0 : v.pop()) == null || o.scrollIntoView({ behavior: "smooth", block: "center" }));
|
|
434
470
|
}), bt(() => {
|
|
435
|
-
window.removeEventListener("custom-event",
|
|
436
|
-
}), (
|
|
471
|
+
window.removeEventListener("custom-event", d);
|
|
472
|
+
}), (x, v) => (l(), r("div", {
|
|
437
473
|
ref_key: "nestedElement",
|
|
438
474
|
ref: a,
|
|
439
475
|
class: "smooth-scroll overflow-auto md:px-6 px-2"
|
|
440
476
|
}, [
|
|
441
|
-
|
|
442
|
-
onCallQuestion: v[0] || (v[0] = (o) =>
|
|
477
|
+
F(Zt, {
|
|
478
|
+
onCallQuestion: v[0] || (v[0] = (o) => x.$emit("callQuestion"))
|
|
443
479
|
}),
|
|
444
|
-
(
|
|
445
|
-
o.question ? (
|
|
446
|
-
|
|
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
|
+
F(As, {
|
|
447
483
|
question: o == null ? void 0 : o.question,
|
|
448
484
|
c2question: o == null ? void 0 : o.c2question,
|
|
449
485
|
"show-feedback": o == null ? void 0 : o.showFeedback,
|
|
450
|
-
id: `qId${
|
|
486
|
+
id: `qId${y}`,
|
|
451
487
|
name: "askQuestion",
|
|
452
|
-
"que-id":
|
|
488
|
+
"que-id": y
|
|
453
489
|
}, null, 8, ["question", "c2question", "show-feedback", "id", "que-id"])
|
|
454
|
-
])) :
|
|
455
|
-
o.answer ? (
|
|
456
|
-
|
|
490
|
+
])) : M("", !0),
|
|
491
|
+
o.answer ? (l(), r("div", Hs, [
|
|
492
|
+
F(ys, {
|
|
457
493
|
question: o == null ? void 0 : o.question,
|
|
458
494
|
c2question: o == null ? void 0 : o.c2question,
|
|
459
495
|
"show-sources": o == null ? void 0 : o.showSources,
|
|
460
496
|
questionId: o.id,
|
|
461
|
-
answer: o.answer.replaceAll("<a",
|
|
497
|
+
answer: o.answer.replaceAll("<a", i(s)).replaceAll("<ul", i(t)),
|
|
462
498
|
"show-feedback": o.showFeedback,
|
|
463
499
|
"related-ques": o == null ? void 0 : o.relatedQues,
|
|
464
500
|
"options-array": o == null ? void 0 : o.optionsArray,
|
|
465
|
-
"ans-id":
|
|
466
|
-
onCharTyped:
|
|
501
|
+
"ans-id": y,
|
|
502
|
+
onCharTyped: d
|
|
467
503
|
}, null, 8, ["question", "c2question", "show-sources", "questionId", "answer", "show-feedback", "related-ques", "options-array", "ans-id"])
|
|
468
|
-
])) :
|
|
504
|
+
])) : M("", !0)
|
|
469
505
|
]))), 128)),
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
])) :
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
])) :
|
|
506
|
+
i(b).dotLoader ? (l(), r("div", js, [
|
|
507
|
+
F(Fs)
|
|
508
|
+
])) : M("", !0),
|
|
509
|
+
i(b).userspeaking ? (l(), r("div", qs, [
|
|
510
|
+
F(Is)
|
|
511
|
+
])) : M("", !0)
|
|
476
512
|
], 512));
|
|
477
513
|
}
|
|
478
514
|
});
|
|
479
|
-
const
|
|
515
|
+
const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { class: "flex items-center gap-4 py-2 rounded-full z-10" }, Vs = {
|
|
480
516
|
key: 0,
|
|
481
517
|
class: "flex items-center"
|
|
482
|
-
},
|
|
518
|
+
}, Gs = {
|
|
483
519
|
width: "30",
|
|
484
520
|
height: "30",
|
|
485
521
|
viewBox: "0 0 36 24",
|
|
486
522
|
class: "fill-white",
|
|
487
523
|
style: { transform: "scaleX(-1)" }
|
|
488
|
-
},
|
|
489
|
-
|
|
490
|
-
],
|
|
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
|
+
Qs
|
|
526
|
+
], Ws = {
|
|
491
527
|
key: 1,
|
|
492
528
|
class: "flex items-center"
|
|
493
|
-
},
|
|
529
|
+
}, Xs = {
|
|
494
530
|
width: "30",
|
|
495
531
|
height: "30",
|
|
496
532
|
viewBox: "0 0 36 24",
|
|
497
533
|
class: "fill-white",
|
|
498
534
|
style: { transform: "scaleX(-1)" }
|
|
499
|
-
},
|
|
500
|
-
|
|
501
|
-
],
|
|
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
|
+
Js
|
|
537
|
+
], Ks = {
|
|
502
538
|
key: 2,
|
|
503
539
|
class: "flex items-center"
|
|
504
|
-
},
|
|
505
|
-
|
|
506
|
-
],
|
|
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
|
+
Zs
|
|
542
|
+
], ea = { class: "tooltiptext text-genpact-darkest-teal" }, ta = /* @__PURE__ */ e("svg", {
|
|
507
543
|
xmlns: "http://www.w3.org/2000/svg",
|
|
508
544
|
class: "h-[10px] w-[10px] text-gray-700",
|
|
509
545
|
fill: "currentColor",
|
|
510
546
|
viewBox: "0 0 24 24"
|
|
511
547
|
}, [
|
|
512
548
|
/* @__PURE__ */ e("path", { d: "M12 14a3 3 0 0 0 3-3V5a3 3 0 0 0-6 0v6a3 3 0 0 0 3 3zm5-3a5 5 0 0 1-10 0H5a7 7 0 0 0 14 0h-2zm-5 9a7 7 0 0 0 7-7h2a9 9 0 0 1-8 8.94V22h-2v-1.06A9 9 0 0 1 3 13h2a7 7 0 0 0 7 7z" })
|
|
513
|
-
], -1),
|
|
514
|
-
|
|
515
|
-
],
|
|
549
|
+
], -1), sa = [
|
|
550
|
+
ta
|
|
551
|
+
], aa = /* @__PURE__ */ e("svg", {
|
|
516
552
|
xmlns: "http://www.w3.org/2000/svg",
|
|
517
553
|
class: "h-[10px] w-[10px] text-gray-700",
|
|
518
554
|
fill: "currentColor",
|
|
@@ -527,202 +563,200 @@ const Es = /* @__PURE__ */ X(js, [["__scopeId", "data-v-c14e6f9c"]]), Is = { cla
|
|
|
527
563
|
stroke: "currentColor",
|
|
528
564
|
"stroke-width": "2"
|
|
529
565
|
})
|
|
530
|
-
], -1),
|
|
531
|
-
|
|
532
|
-
],
|
|
566
|
+
], -1), oa = [
|
|
567
|
+
aa
|
|
568
|
+
], na = /* @__PURE__ */ I({
|
|
533
569
|
__name: "NewVoiceConversation",
|
|
534
570
|
setup(p) {
|
|
535
|
-
const s =
|
|
536
|
-
a.value === !1 ? s.elevenLabs ? (console.log("mic enabled true 11labs"), a.value = !0, _t(),
|
|
571
|
+
const s = E(), t = ue(), b = h(""), a = h(!1), d = h("Turn on mic"), x = () => {
|
|
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");
|
|
537
573
|
}, v = () => {
|
|
538
|
-
s.elevenLabs ? (console.log("closeConversation 11 labs"), it(),
|
|
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);
|
|
539
575
|
}, o = async () => {
|
|
540
|
-
var
|
|
576
|
+
var y, _, g, c, m, u;
|
|
541
577
|
try {
|
|
542
|
-
const
|
|
543
|
-
question:
|
|
578
|
+
const f = {
|
|
579
|
+
question: Q.value || ne.value
|
|
544
580
|
};
|
|
545
|
-
s.conversations.push(
|
|
546
|
-
const
|
|
581
|
+
s.conversations.push(f), s.dotLoader = !0, s.question = "";
|
|
582
|
+
const A = {
|
|
547
583
|
past_messages: s.past_messages,
|
|
548
|
-
question:
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
},
|
|
554
|
-
if (
|
|
584
|
+
question: Q.value || ne.value,
|
|
585
|
+
skillId: s.simulationSkill,
|
|
586
|
+
bandCode: s.band_code,
|
|
587
|
+
userGenomeFunction: s.genomeFunctionValue,
|
|
588
|
+
userGenomeRole: s.genomeRoleValue
|
|
589
|
+
}, k = await U("/sqlTest", A);
|
|
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 === "") {
|
|
555
591
|
console.log("in the if case calling api again");
|
|
556
|
-
const
|
|
557
|
-
s.addConversation((g =
|
|
592
|
+
const z = await U("/sqlTest", A);
|
|
593
|
+
s.addConversation((g = z.data) == null ? void 0 : g.body, "new");
|
|
558
594
|
} else
|
|
559
|
-
console.log("in the else case"), s.addConversation((
|
|
595
|
+
console.log("in the else case"), s.addConversation((c = k.data) == null ? void 0 : c.body, "new");
|
|
560
596
|
if (s.dotLoader = !1, s.elevenLabs)
|
|
561
597
|
await kt(b.value.replace(/[*#]/g, ""));
|
|
562
598
|
else if (b.value.includes("Feedback and Assessment"))
|
|
563
599
|
if (fe(), a.value = !1, b.value.includes("END ROLE PLAY")) {
|
|
564
|
-
const
|
|
565
|
-
if (
|
|
600
|
+
const z = b.value.split("END ROLE PLAY")[0];
|
|
601
|
+
if (z.length < 0) {
|
|
566
602
|
s.showVoiceComponent = !1;
|
|
567
603
|
return;
|
|
568
604
|
}
|
|
569
|
-
await lt(
|
|
605
|
+
await lt(z.replace(/[*#]/g, "")), s.showVoiceComponent = !1;
|
|
570
606
|
} else
|
|
571
607
|
s.showVoiceComponent = !1;
|
|
572
608
|
else
|
|
573
609
|
await lt(b.value.replace(/[*#]/g, ""));
|
|
574
|
-
} catch (
|
|
575
|
-
if (console.error(
|
|
576
|
-
const
|
|
577
|
-
console.log("Error found!"), console.error((
|
|
610
|
+
} catch (f) {
|
|
611
|
+
if (console.error(f), $.isAxiosError(f)) {
|
|
612
|
+
const A = f;
|
|
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);
|
|
578
614
|
} else
|
|
579
615
|
t.setError("There was an issue, please contact helpmate");
|
|
580
616
|
}
|
|
581
617
|
};
|
|
582
|
-
return
|
|
583
|
-
if (
|
|
584
|
-
if (console.log("Recognized text:",
|
|
618
|
+
return re(Q, async (y) => {
|
|
619
|
+
if (y) {
|
|
620
|
+
if (console.log("Recognized text:", y), Q.value.toLowerCase().includes("play") && Q.value.length < 10) {
|
|
585
621
|
console.log("play command detected, ignoring input");
|
|
586
622
|
return;
|
|
587
623
|
}
|
|
588
|
-
|
|
624
|
+
H.value = "listening", s.userspeaking = !1, await o(), Q.value = "";
|
|
589
625
|
}
|
|
590
|
-
}),
|
|
591
|
-
|
|
592
|
-
}), (
|
|
593
|
-
|
|
626
|
+
}), re(ne, async (y) => {
|
|
627
|
+
y && (console.log("Recognized text:", y), H.value = "listening", await o(), ne.value = "");
|
|
628
|
+
}), (y, _) => (l(), r("div", $s, [
|
|
629
|
+
i(H) === "bot" ? (l(), r("div", Vs, [
|
|
594
630
|
e("span", null, [
|
|
595
|
-
(
|
|
631
|
+
(l(), r("svg", Gs, Os))
|
|
596
632
|
])
|
|
597
|
-
])) :
|
|
633
|
+
])) : i(H) === "user" ? (l(), r("div", Ws, [
|
|
598
634
|
e("span", null, [
|
|
599
|
-
(
|
|
635
|
+
(l(), r("svg", Xs, Us))
|
|
600
636
|
])
|
|
601
|
-
])) :
|
|
637
|
+
])) : i(H) === "listening" ? (l(), r("div", Ks, Ys)) : M("", !0),
|
|
602
638
|
e("div", {
|
|
603
639
|
class: W([a.value ? "" : "animate-pulse", "tooltip"])
|
|
604
640
|
}, [
|
|
605
|
-
e("span",
|
|
606
|
-
a.value ? (
|
|
641
|
+
e("span", ea, V(d.value), 1),
|
|
642
|
+
a.value ? (l(), r("button", {
|
|
607
643
|
key: 0,
|
|
608
644
|
class: "rounded-full bg-white p-2 transition hover:bg-gray-300",
|
|
609
|
-
onClick:
|
|
610
|
-
},
|
|
645
|
+
onClick: _[0] || (_[0] = (g) => x())
|
|
646
|
+
}, sa)) : (l(), r("button", {
|
|
611
647
|
key: 1,
|
|
612
648
|
class: "rounded-full bg-white p-2 transition hover:bg-gray-300",
|
|
613
|
-
onClick:
|
|
614
|
-
},
|
|
649
|
+
onClick: _[1] || (_[1] = (g) => x())
|
|
650
|
+
}, oa))
|
|
615
651
|
], 2),
|
|
616
652
|
e("button", {
|
|
617
653
|
class: "rounded-full bg-white p-2 hover:bg-gray-300",
|
|
618
|
-
onClick:
|
|
654
|
+
onClick: _[2] || (_[2] = (g) => v())
|
|
619
655
|
}, [
|
|
620
|
-
|
|
656
|
+
F(i(St), { class: "h-[10px] w-[10px] text-gray-700" })
|
|
621
657
|
])
|
|
622
658
|
]));
|
|
623
659
|
}
|
|
624
|
-
}), 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 = {
|
|
625
661
|
key: 0,
|
|
626
662
|
class: "flex justify-center bg-genpact-darkest-blue px-4 rounded-full"
|
|
627
|
-
},
|
|
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", {
|
|
628
664
|
d: "M12 4C8.229 4 6.343 4 5.172 5.172C4.001 6.344 4 8.229 4 12V18C4 18.943 4 19.414 4.293 19.707C4.586 20 5.057 20 6 20H12C15.771 20 17.657 20 18.828 18.828C19.999 17.656 20 15.771 20 12",
|
|
629
665
|
stroke: "currentColor",
|
|
630
666
|
"stroke-width": "2"
|
|
631
|
-
}, null, -1)),
|
|
667
|
+
}, null, -1)), ba = /* @__PURE__ */ B(() => /* @__PURE__ */ e("path", {
|
|
632
668
|
d: "M9 10H15M9 14H12M19 8V2M16 5H22",
|
|
633
669
|
stroke: "currentColor",
|
|
634
670
|
"stroke-width": "2",
|
|
635
671
|
"stroke-linecap": "round",
|
|
636
672
|
"stroke-linejoin": "round"
|
|
637
|
-
}, null, -1)),
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
],
|
|
641
|
-
|
|
642
|
-
],
|
|
673
|
+
}, null, -1)), ya = [
|
|
674
|
+
va,
|
|
675
|
+
ba
|
|
676
|
+
], xa = { 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
|
+
Aa
|
|
678
|
+
], Sa = {
|
|
643
679
|
key: 1,
|
|
644
680
|
class: "tooltip"
|
|
645
|
-
},
|
|
681
|
+
}, Na = /* @__PURE__ */ B(() => /* @__PURE__ */ e("span", { class: "tooltiptext text-genpact-darkest-teal" }, "Processing", -1)), Ca = /* @__PURE__ */ B(() => /* @__PURE__ */ e("img", {
|
|
646
682
|
class: "w-7 h-7",
|
|
647
683
|
src: dt,
|
|
648
684
|
alt: "watingIcon"
|
|
649
|
-
}, null, -1)),
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
],
|
|
685
|
+
}, null, -1)), La = [
|
|
686
|
+
Na,
|
|
687
|
+
Ca
|
|
688
|
+
], Pa = { class: "flex justify-start gap-2 md:gap-1" }, Ta = ["disabled"], Fa = /* @__PURE__ */ B(() => /* @__PURE__ */ e("div", { class: "pt-1 text-start font-sans text-xs font-bold text-gray-500 md:text-sm" }, [
|
|
653
689
|
/* @__PURE__ */ e("div", null, " Note: AI-generated response may not be fully accurate; check with experts for critical information. ")
|
|
654
|
-
], -1)),
|
|
690
|
+
], -1)), Ma = /* @__PURE__ */ I({
|
|
655
691
|
__name: "NewQuestionSimulation",
|
|
656
692
|
setup(p, { expose: s }) {
|
|
657
|
-
const t =
|
|
693
|
+
const t = E(), b = ue(), a = h(""), d = h("");
|
|
658
694
|
t.question = "";
|
|
659
|
-
const
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
c.value = t.recognizedText, de(() => {
|
|
663
|
-
y.value.focus();
|
|
695
|
+
const x = h(null), v = h(!1), o = h(0);
|
|
696
|
+
d.value = t.recognizedText, ce(() => {
|
|
697
|
+
x.value.focus();
|
|
664
698
|
});
|
|
665
|
-
const
|
|
699
|
+
const y = () => {
|
|
666
700
|
window.location.reload();
|
|
667
|
-
},
|
|
668
|
-
var
|
|
701
|
+
}, _ = async () => {
|
|
702
|
+
var m, u, f, A, k, z, ee, te, se, ae, oe;
|
|
669
703
|
try {
|
|
670
704
|
if (t.question.trim().length < 1) {
|
|
671
705
|
console.log("Please enter answer!");
|
|
672
706
|
return;
|
|
673
707
|
}
|
|
674
708
|
v.value = !0, t.dotLoader = !0;
|
|
675
|
-
const
|
|
709
|
+
const C = {
|
|
676
710
|
question: t.question || t.recognizedText
|
|
677
711
|
};
|
|
678
|
-
t.conversations.push(
|
|
679
|
-
const
|
|
680
|
-
|
|
681
|
-
const
|
|
712
|
+
t.conversations.push(C);
|
|
713
|
+
const P = h("");
|
|
714
|
+
P.value = t.question || t.recognizedText, t.question = "", x.value && (x.value.style.height = "auto");
|
|
715
|
+
const R = {
|
|
682
716
|
ohr_id: a.value,
|
|
683
717
|
past_messages: t.past_messages,
|
|
684
|
-
question:
|
|
718
|
+
question: P.value || t.recognizedText,
|
|
685
719
|
bandCode: t.band_code,
|
|
686
720
|
userGenomeFunction: t.genomeFunctionValue,
|
|
687
721
|
userGenomeRole: t.genomeRoleValue,
|
|
688
722
|
skillId: t.simulationSkill || "937e84ef-e95d-4327-9afe-e7be2bf420eb"
|
|
689
|
-
},
|
|
690
|
-
if (o.value += (u = (
|
|
723
|
+
}, T = await U("/sqlTest", R);
|
|
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) === "") {
|
|
691
725
|
console.log("in the if case calling api again");
|
|
692
|
-
const D = await
|
|
726
|
+
const D = await U("/sqlTest", R);
|
|
693
727
|
t.addConversation((ee = D.data) == null ? void 0 : ee.body, "new");
|
|
694
728
|
} else
|
|
695
|
-
console.log("in the else case"), t.addConversation((te =
|
|
729
|
+
console.log("in the else case"), t.addConversation((te = T.data) == null ? void 0 : te.body, "new");
|
|
696
730
|
v.value = !1, t.dotLoader = !1, t.recognizedText = "";
|
|
697
|
-
} catch (
|
|
698
|
-
if (console.error(
|
|
699
|
-
const
|
|
700
|
-
console.log("Error found!"), console.error((se =
|
|
731
|
+
} catch (C) {
|
|
732
|
+
if (console.error(C), t.dotLoader = !1, v.value = !1, $.isAxiosError(C)) {
|
|
733
|
+
const P = C;
|
|
734
|
+
console.log("Error found!"), console.error((se = P.response) == null ? void 0 : se.data), b.setError((oe = (ae = P.response) == null ? void 0 : ae.data) == null ? void 0 : oe.message);
|
|
701
735
|
} else
|
|
702
736
|
b.setError("There was an issue, please contact helpmate");
|
|
703
737
|
}
|
|
704
|
-
}, g = (
|
|
705
|
-
|
|
706
|
-
},
|
|
707
|
-
const u =
|
|
738
|
+
}, g = (m) => {
|
|
739
|
+
m.key === "Enter" && !m.shiftKey && (m.preventDefault(), _());
|
|
740
|
+
}, c = (m) => {
|
|
741
|
+
const u = m.target;
|
|
708
742
|
u.style.height = "auto", u.style.height = u.scrollHeight + "px";
|
|
709
743
|
};
|
|
710
|
-
return s({ sendQuestion:
|
|
711
|
-
e("div",
|
|
712
|
-
e("div",
|
|
713
|
-
e("div",
|
|
714
|
-
e("div",
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
])) :
|
|
744
|
+
return s({ sendQuestion: _ }), (m, u) => (l(), r("div", ia, [
|
|
745
|
+
e("div", la, [
|
|
746
|
+
e("div", ra, [
|
|
747
|
+
e("div", da, [
|
|
748
|
+
e("div", ca, [
|
|
749
|
+
ua,
|
|
750
|
+
i(t).showVoiceComponent ? (l(), r("div", ma, [
|
|
751
|
+
F(na)
|
|
752
|
+
])) : M("", !0)
|
|
719
753
|
]),
|
|
720
|
-
e("div",
|
|
721
|
-
e("div",
|
|
722
|
-
e("div",
|
|
723
|
-
|
|
724
|
-
(
|
|
725
|
-
onClick:
|
|
754
|
+
e("div", ha, [
|
|
755
|
+
e("div", pa, [
|
|
756
|
+
e("div", fa, [
|
|
757
|
+
ga,
|
|
758
|
+
(l(), r("svg", {
|
|
759
|
+
onClick: y,
|
|
726
760
|
class: "ml-2 h-7 w-7 rounded",
|
|
727
761
|
id: "newTopicDisable",
|
|
728
762
|
width: "7",
|
|
@@ -731,81 +765,81 @@ const Es = /* @__PURE__ */ X(js, [["__scopeId", "data-v-c14e6f9c"]]), Is = { cla
|
|
|
731
765
|
fill: "none",
|
|
732
766
|
xmlns: "http://www.w3.org/2000/svg",
|
|
733
767
|
title: "restart"
|
|
734
|
-
},
|
|
768
|
+
}, ya))
|
|
735
769
|
])
|
|
736
770
|
]),
|
|
737
|
-
e("div",
|
|
738
|
-
v.value ? (
|
|
739
|
-
(
|
|
740
|
-
disabled:
|
|
771
|
+
e("div", xa, [
|
|
772
|
+
v.value ? (l(), r("div", Sa, La)) : (l(), r("div", wa, [
|
|
773
|
+
(l(), r("svg", {
|
|
774
|
+
disabled: i(t).beginFlag === !0,
|
|
741
775
|
class: W([
|
|
742
|
-
|
|
776
|
+
i(t).beginFlag === !0 ? "cursor-not-allowed text-gray-600" : "cursor-pointer",
|
|
743
777
|
"bi bi-send ml-2 h-7 w-7 rotate-45 rounded"
|
|
744
778
|
]),
|
|
745
|
-
onClick: u[0] || (u[0] = (
|
|
779
|
+
onClick: u[0] || (u[0] = (f) => i(t).searchBoxdisable === !1 || i(t).beginFlag === !0 ? "" : _()),
|
|
746
780
|
xmlns: "http://www.w3.org/2000/svg",
|
|
747
781
|
fill: "currentColor",
|
|
748
782
|
viewBox: "0 0 16 16"
|
|
749
|
-
},
|
|
783
|
+
}, ka, 10, _a))
|
|
750
784
|
]))
|
|
751
785
|
]),
|
|
752
|
-
e("div",
|
|
753
|
-
|
|
754
|
-
onPaste: u[1] || (u[1] =
|
|
786
|
+
e("div", Pa, [
|
|
787
|
+
ye(e("textarea", {
|
|
788
|
+
onPaste: u[1] || (u[1] = yt(() => {
|
|
755
789
|
}, ["prevent"])),
|
|
756
|
-
onKeydown: u[2] || (u[2] = (
|
|
757
|
-
disabled:
|
|
758
|
-
"onUpdate:modelValue": u[3] || (u[3] = (
|
|
790
|
+
onKeydown: u[2] || (u[2] = (f) => v.value ? "" : g(f)),
|
|
791
|
+
disabled: i(t).searchBoxdisable === !1 || i(t).beginFlag === !0,
|
|
792
|
+
"onUpdate:modelValue": u[3] || (u[3] = (f) => i(t).question = f),
|
|
759
793
|
class: W([
|
|
760
794
|
"fontFormattingAMA rounded-lg flex w-full border border-genpact-darkest-teal py-[18px] px-[70px]",
|
|
761
|
-
|
|
795
|
+
i(t).beginFlag === !0 || i(t).searchBoxdisable === !1 ? "cursor-not-allowed bg-[#e5e7eb]" : "bg-white"
|
|
762
796
|
]),
|
|
763
797
|
placeholder: "Write your answer here...",
|
|
764
798
|
ref_key: "AiSearch",
|
|
765
|
-
ref:
|
|
799
|
+
ref: x,
|
|
766
800
|
rows: "1",
|
|
767
|
-
onInput: u[4] || (u[4] = (
|
|
801
|
+
onInput: u[4] || (u[4] = (f) => c(f)),
|
|
768
802
|
style: { overflow: "hidden", transition: "height 0.2s" }
|
|
769
|
-
}, null, 42,
|
|
770
|
-
[ct,
|
|
803
|
+
}, null, 42, Ta), [
|
|
804
|
+
[ct, i(t).question]
|
|
771
805
|
])
|
|
772
806
|
])
|
|
773
807
|
]),
|
|
774
|
-
|
|
808
|
+
Fa
|
|
775
809
|
])
|
|
776
810
|
])
|
|
777
811
|
])
|
|
778
812
|
]));
|
|
779
813
|
}
|
|
780
814
|
});
|
|
781
|
-
const
|
|
782
|
-
|
|
783
|
-
],
|
|
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 = [
|
|
816
|
+
$a
|
|
817
|
+
], Ga = {
|
|
784
818
|
key: 1,
|
|
785
819
|
class: "tooltip"
|
|
786
|
-
},
|
|
820
|
+
}, Qa = /* @__PURE__ */ me(() => /* @__PURE__ */ e("span", { class: "tooltiptext fontFormattingAMA" }, "Waiting for response", -1)), Oa = /* @__PURE__ */ me(() => /* @__PURE__ */ e("img", {
|
|
787
821
|
class: "w-7 h-7",
|
|
788
822
|
src: dt,
|
|
789
823
|
alt: "watingIcon"
|
|
790
|
-
}, null, -1)),
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
],
|
|
824
|
+
}, null, -1)), Wa = [
|
|
825
|
+
Qa,
|
|
826
|
+
Oa
|
|
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" }, [
|
|
794
828
|
/* @__PURE__ */ e("div", null, " Note: AI-generated response may not be fully accurate; check with experts for critical information. ")
|
|
795
|
-
], -1)),
|
|
829
|
+
], -1)), Ka = /* @__PURE__ */ I({
|
|
796
830
|
__name: "NewMDMQuestionSimulation",
|
|
797
831
|
setup(p) {
|
|
798
|
-
const s =
|
|
832
|
+
const s = E(), t = ue(), b = h("");
|
|
799
833
|
s.question = "";
|
|
800
|
-
const a =
|
|
801
|
-
b.value = s.recognizedText,
|
|
834
|
+
const a = h(null), d = h(!1), x = h(he), v = h(!1);
|
|
835
|
+
b.value = s.recognizedText, ce(() => {
|
|
802
836
|
a.value.focus();
|
|
803
837
|
});
|
|
804
|
-
const o = (
|
|
805
|
-
const g =
|
|
806
|
-
|
|
807
|
-
},
|
|
808
|
-
var
|
|
838
|
+
const o = (_) => {
|
|
839
|
+
const g = _.length;
|
|
840
|
+
x.value = he - g, d.value = g >= he;
|
|
841
|
+
}, y = async () => {
|
|
842
|
+
var _, g, c;
|
|
809
843
|
console.log("options fdsfdscdzxfsdv", s.recognizedText);
|
|
810
844
|
try {
|
|
811
845
|
if (console.log("options fdsfdscdzxfsdv", s.recognizedText), s.question.trim().length < 1) {
|
|
@@ -813,13 +847,13 @@ const Pa = /* @__PURE__ */ X(La, [["__scopeId", "data-v-f3203a7f"]]), ue = (p) =
|
|
|
813
847
|
return;
|
|
814
848
|
}
|
|
815
849
|
v.value = !0, s.dotLoader = !0;
|
|
816
|
-
const
|
|
850
|
+
const m = {
|
|
817
851
|
question: s.question || s.recognizedText
|
|
818
852
|
};
|
|
819
|
-
console.log("ques",
|
|
820
|
-
const u =
|
|
853
|
+
console.log("ques", m), s.conversations.push(m);
|
|
854
|
+
const u = h("");
|
|
821
855
|
u.value = s.question || s.recognizedText, s.question = "";
|
|
822
|
-
const
|
|
856
|
+
const f = {
|
|
823
857
|
assessmentId: s.simulationSkill,
|
|
824
858
|
question: u.value,
|
|
825
859
|
past_messages: s.past_messages,
|
|
@@ -832,140 +866,140 @@ const Pa = /* @__PURE__ */ X(La, [["__scopeId", "data-v-f3203a7f"]]), ue = (p) =
|
|
|
832
866
|
storeFinalFeedback: s.storeFinalFeedback,
|
|
833
867
|
storeFinalScore: s.storeFinalScore
|
|
834
868
|
};
|
|
835
|
-
console.log("Payload for MDM1==> ",
|
|
836
|
-
let
|
|
837
|
-
O === "prod" ?
|
|
838
|
-
const
|
|
839
|
-
s.addConversation((
|
|
840
|
-
} catch (
|
|
841
|
-
if (console.error(
|
|
842
|
-
const u =
|
|
843
|
-
console.log("Error found!"), console.error((g = u.response) == null ? void 0 : g.data), t.setError(((
|
|
869
|
+
console.log("Payload for MDM1==> ", f);
|
|
870
|
+
let A;
|
|
871
|
+
O === "prod" ? A = "/ManualExportActivity" : A = "/fetchCompletionDemo";
|
|
872
|
+
const k = await U(A, f);
|
|
873
|
+
s.addConversation((_ = k.data) == null ? void 0 : _.body, "new"), v.value = !1, s.dotLoader = !1, s.recognizedText = "";
|
|
874
|
+
} catch (m) {
|
|
875
|
+
if (console.error(m), $.isAxiosError(m)) {
|
|
876
|
+
const u = m;
|
|
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);
|
|
844
878
|
} else
|
|
845
879
|
t.setError("There was an issue, please contact helpmate");
|
|
846
880
|
}
|
|
847
881
|
};
|
|
848
|
-
return (
|
|
849
|
-
e("div",
|
|
850
|
-
e("div",
|
|
851
|
-
e("div",
|
|
852
|
-
e("div",
|
|
853
|
-
e("div",
|
|
854
|
-
v.value ? (
|
|
855
|
-
(
|
|
856
|
-
disabled:
|
|
882
|
+
return (_, g) => (l(), r("div", Ra, [
|
|
883
|
+
e("div", Ia, [
|
|
884
|
+
e("div", Da, [
|
|
885
|
+
e("div", Ha, [
|
|
886
|
+
e("div", ja, [
|
|
887
|
+
e("div", qa, [
|
|
888
|
+
v.value ? (l(), r("div", Ga, Wa)) : (l(), r("div", Ea, [
|
|
889
|
+
(l(), r("svg", {
|
|
890
|
+
disabled: i(s).beginFlag === !0,
|
|
857
891
|
class: W([
|
|
858
|
-
|
|
892
|
+
i(s).beginFlag === !0 ? "cursor-not-allowed text-gray-600" : "cursor-pointer",
|
|
859
893
|
"bi bi-send ml-2 h-7 w-7 rotate-45 rounded"
|
|
860
894
|
]),
|
|
861
|
-
onClick: g[0] || (g[0] = (
|
|
895
|
+
onClick: g[0] || (g[0] = (c) => i(s).searchBoxdisable === !1 || i(s).beginFlag === !0 ? "" : y()),
|
|
862
896
|
xmlns: "http://www.w3.org/2000/svg",
|
|
863
897
|
fill: "currentColor",
|
|
864
898
|
viewBox: "0 0 16 16"
|
|
865
|
-
},
|
|
899
|
+
}, Va, 10, Ba))
|
|
866
900
|
]))
|
|
867
901
|
]),
|
|
868
|
-
e("div",
|
|
869
|
-
|
|
902
|
+
e("div", Xa, [
|
|
903
|
+
ye(e("input", {
|
|
870
904
|
onKeyup: [
|
|
871
|
-
g[1] || (g[1] =
|
|
872
|
-
g[3] || (g[3] = (
|
|
905
|
+
g[1] || (g[1] = xt((c) => v.value ? "" : y(), ["enter"])),
|
|
906
|
+
g[3] || (g[3] = (c) => o(i(s).question))
|
|
873
907
|
],
|
|
874
|
-
disabled:
|
|
908
|
+
disabled: i(s).beginFlag === !0 || i(s).searchBoxdisable === !1,
|
|
875
909
|
class: W([
|
|
876
|
-
|
|
910
|
+
i(s).beginFlag === !0 || i(s).searchBoxdisable === !1 ? "cursor-not-allowed bg-[#e5e7eb]" : "bg-white",
|
|
877
911
|
"fontFormattingAMA rounded-lg flex w-full border border-genpact-darkest-teal py-[18px] pl-[30px] pr-[70px]"
|
|
878
912
|
]),
|
|
879
|
-
"onUpdate:modelValue": g[2] || (g[2] = (
|
|
913
|
+
"onUpdate:modelValue": g[2] || (g[2] = (c) => i(s).question = c),
|
|
880
914
|
placeholder: "Write your answer here...",
|
|
881
915
|
type: "text",
|
|
882
916
|
ref_key: "AiSearch",
|
|
883
917
|
ref: a
|
|
884
|
-
}, null, 42,
|
|
885
|
-
[ct,
|
|
918
|
+
}, null, 42, Ja), [
|
|
919
|
+
[ct, i(s).question]
|
|
886
920
|
])
|
|
887
921
|
])
|
|
888
922
|
]),
|
|
889
|
-
|
|
923
|
+
Ua
|
|
890
924
|
])
|
|
891
925
|
])
|
|
892
926
|
])
|
|
893
927
|
]));
|
|
894
928
|
}
|
|
895
929
|
});
|
|
896
|
-
const
|
|
930
|
+
const Za = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-6c0980b5"]]), Y = (p) => (K("data-v-8bb74be6"), p = p(), Z(), p), Ya = { class: "max-h-screen overflow-auto md:p-6 p-3 text-[#161916]" }, eo = {
|
|
897
931
|
key: 0,
|
|
898
932
|
class: "flex flex-col items-center justify-center gap-4"
|
|
899
|
-
},
|
|
900
|
-
Ka,
|
|
901
|
-
Za
|
|
902
|
-
], eo = {
|
|
903
|
-
key: 1,
|
|
904
|
-
class: "flex flex-col items-center justify-center gap-4"
|
|
905
|
-
}, to = /* @__PURE__ */ Y(() => /* @__PURE__ */ e("div", { class: "text-2xl font-[700]" }, "Invalid URL", -1)), so = /* @__PURE__ */ Y(() => /* @__PURE__ */ e("h3", { className: "text-lg font-medium my-6 text-center text-gray-500" }, " Invalid URL or assessment not found. Please check the URL or contact support. ", -1)), ao = [
|
|
933
|
+
}, to = /* @__PURE__ */ Y(() => /* @__PURE__ */ e("div", { class: "text-2xl font-[700]" }, "Assessment Access Required", -1)), so = /* @__PURE__ */ Y(() => /* @__PURE__ */ e("h3", { className: "text-lg font-medium my-6 text-center text-gray-500" }, " You don't have access to this assessment. Please contact to administrator ", -1)), ao = [
|
|
906
934
|
to,
|
|
907
935
|
so
|
|
908
936
|
], oo = {
|
|
937
|
+
key: 1,
|
|
938
|
+
class: "flex flex-col items-center justify-center gap-4"
|
|
939
|
+
}, no = /* @__PURE__ */ Y(() => /* @__PURE__ */ e("div", { class: "text-2xl font-[700]" }, "Invalid URL", -1)), io = /* @__PURE__ */ Y(() => /* @__PURE__ */ e("h3", { className: "text-lg font-medium my-6 text-center text-gray-500" }, " Invalid URL or assessment not found. Please check the URL or contact support. ", -1)), lo = [
|
|
940
|
+
no,
|
|
941
|
+
io
|
|
942
|
+
], ro = {
|
|
909
943
|
key: 1,
|
|
910
944
|
className: "h-screen flex flex-col items-stretch"
|
|
911
|
-
},
|
|
945
|
+
}, co = { class: "z-20" }, uo = /* @__PURE__ */ Y(() => /* @__PURE__ */ e("div", { class: "mt-6" }, null, -1)), mo = { class: "flex h-full items-stretch overflow-hidden" }, ho = { class: "mx-auto w-11/12 bg-white" }, po = { class: "relative flex h-full w-full flex-col items-stretch overflow-hidden" }, fo = {
|
|
912
946
|
key: 0,
|
|
913
947
|
class: "relative"
|
|
914
|
-
},
|
|
948
|
+
}, go = {
|
|
915
949
|
key: 1,
|
|
916
950
|
class: "relative"
|
|
917
|
-
},
|
|
951
|
+
}, vo = /* @__PURE__ */ I({
|
|
918
952
|
__name: "AssessmentSimulation",
|
|
919
953
|
setup(p) {
|
|
920
|
-
const s =
|
|
921
|
-
|
|
922
|
-
const a =
|
|
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");
|
|
923
957
|
let g = "";
|
|
924
|
-
const
|
|
925
|
-
let
|
|
926
|
-
const
|
|
927
|
-
v.value =
|
|
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");
|
|
961
|
+
v.value = k.searchParams.get("mode") ?? "", a.simulationSkill = z ?? "";
|
|
928
962
|
const ee = ["703331197", "703380812", "703331909", "703363051", "703319578"];
|
|
929
|
-
|
|
963
|
+
ce(async () => {
|
|
930
964
|
s.value = !0, await te(), await ae();
|
|
931
965
|
});
|
|
932
966
|
const te = async () => {
|
|
933
|
-
var
|
|
967
|
+
var C, P, R, T, j, D, q;
|
|
934
968
|
try {
|
|
935
|
-
const
|
|
969
|
+
const N = await pe(
|
|
936
970
|
`/getLearnerData?forSimulation=true&skillForSimulation=${a.simulationSkill}`
|
|
937
971
|
);
|
|
938
|
-
a.initialize(
|
|
939
|
-
} catch (
|
|
940
|
-
if (console.error(
|
|
941
|
-
const
|
|
942
|
-
if (console.log("Error found!"), console.error((
|
|
943
|
-
|
|
972
|
+
a.initialize(N.data), a.assessmentQuestion || (console.log("getAssessmentDetails========================>"), await se()), s.value = !1, a.simulationSkill === "937e84ef-e95d-4327-9afe-e7be2bf420eb" ? a.skillNameForSimulation = "GenpactNext" : a.simulationSkill === "32b7d6d8-f7a8-40a0-ab84-8784f25897ea" || a.simulationSkill === "32b7d6d8-f7a8-40a0-ab84-8784f25897ef" ? a.skillNameForSimulation = "Agentic AI" : a.simulationSkill === "7bd03cb6-79ad-4e2a-8a8b-88dc16147369" ? a.skillNameForSimulation = "Data" : a.simulationSkill === "25f8e44f-b83e-42d6-a168-b0e1fb83b26a" ? a.skillNameForSimulation = "SLDP Simulation" : a.simulationSkill === "bdce5798-c378-4306-abe3-66c62983b423" && (a.skillNameForSimulation = "HRO Simulation");
|
|
973
|
+
} catch (N) {
|
|
974
|
+
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
|
+
const S = N;
|
|
976
|
+
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
|
+
y.value = (D = S.response) == null ? void 0 : D.status, console.log("errorCode value", y.value), b.value = !0;
|
|
944
978
|
return;
|
|
945
979
|
}
|
|
946
|
-
|
|
980
|
+
d.setError(((q = S.response) == null ? void 0 : q.data).message);
|
|
947
981
|
} else
|
|
948
|
-
|
|
982
|
+
d.setError("There was an issue, please contact helpmate");
|
|
949
983
|
}
|
|
950
984
|
}, se = async () => {
|
|
951
|
-
var
|
|
985
|
+
var C, P, R, T, j, D, q, N, S, J, xe, 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;
|
|
952
986
|
console.log("Start getAssessmentDetails");
|
|
953
987
|
try {
|
|
954
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}`;
|
|
955
|
-
const n = await
|
|
956
|
-
|
|
957
|
-
const
|
|
958
|
-
if (a.mcqType = (Fe = (Te = n == null ? void 0 : n.data) == null ? void 0 : Te.data) == null ? void 0 : Fe.mcqTypes, a.storeFinalFeedback = (
|
|
989
|
+
const n = await pe(g);
|
|
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;
|
|
991
|
+
const G = (Pe = (Le = n == null ? void 0 : n.data) == null ? void 0 : Le.data) == null ? void 0 : Pe.createdBy;
|
|
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")
|
|
959
993
|
t.value = !0;
|
|
960
994
|
else if (o.value === "draft")
|
|
961
995
|
v.value !== nt.DRAFT && (t.value = !0);
|
|
962
|
-
else if (o.value === "active" &&
|
|
996
|
+
else if (o.value === "active" && A.value && v.value === nt.DRAFT) {
|
|
963
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}`;
|
|
964
|
-
const
|
|
965
|
-
a.generatedPrompt = (
|
|
998
|
+
const w = await pe(g);
|
|
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;
|
|
966
1000
|
}
|
|
967
|
-
const mt = a == null ? void 0 : a.band_code, ot = (Ze =
|
|
968
|
-
if (
|
|
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());
|
|
1002
|
+
if (G === (a == null ? void 0 : a.ohr) || ee.includes(a == null ? void 0 : a.ohr))
|
|
969
1003
|
console.log("User has access to this assessment.");
|
|
970
1004
|
else {
|
|
971
1005
|
if (ot.length === 0 && u.length === 0)
|
|
@@ -992,70 +1026,70 @@ const Xa = /* @__PURE__ */ X(Wa, [["__scopeId", "data-v-6c0980b5"]]), Y = (p) =>
|
|
|
992
1026
|
console.log("end getAssessmentDetails");
|
|
993
1027
|
} catch (n) {
|
|
994
1028
|
if (console.error(n), s.value = !1, $.isAxiosError(n) && ((Ye = n.response) != null && Ye.status) || n && typeof n == "object" && "response" in n && n.response && typeof n.response == "object" && "status" in n.response && n.response.status) {
|
|
995
|
-
const
|
|
996
|
-
if (console.log("Error found!"), console.error((et =
|
|
1029
|
+
const G = n;
|
|
1030
|
+
if (console.log("Error found!"), console.error((et = G.response) == null ? void 0 : et.data), ((tt = G.response) == null ? void 0 : tt.status) === 424 || ((st = G.response) == null ? void 0 : st.status) === 425) {
|
|
997
1031
|
b.value = !0;
|
|
998
1032
|
return;
|
|
999
1033
|
}
|
|
1000
|
-
|
|
1034
|
+
d.setError(((at = G.response) == null ? void 0 : at.data).message);
|
|
1001
1035
|
} else
|
|
1002
|
-
|
|
1036
|
+
d.setError("There was an issue, please contact helpmate");
|
|
1003
1037
|
}
|
|
1004
1038
|
}, ae = async () => {
|
|
1005
|
-
var
|
|
1039
|
+
var C, P, R, T, j, D, q, N;
|
|
1006
1040
|
try {
|
|
1007
|
-
O === "prod" ?
|
|
1008
|
-
const
|
|
1009
|
-
url:
|
|
1041
|
+
O === "prod" ? c.value = "https://api-v2.genpact.com/api/delphi/v2/myprofile" : c.value = "https://api-v2-dev.genpact.com/api/delphi/v2/myprofile";
|
|
1042
|
+
const S = await $({
|
|
1043
|
+
url: c.value,
|
|
1010
1044
|
headers: {
|
|
1011
|
-
authorization: `Bearer ${
|
|
1045
|
+
authorization: `Bearer ${_}`,
|
|
1012
1046
|
"content-type": "application/json"
|
|
1013
1047
|
},
|
|
1014
1048
|
method: "get"
|
|
1015
1049
|
});
|
|
1016
|
-
a.genomeFunctionValue = (
|
|
1017
|
-
} catch (
|
|
1018
|
-
if (console.error(
|
|
1019
|
-
const
|
|
1020
|
-
console.log("Error found!"), console.error((q =
|
|
1050
|
+
a.genomeFunctionValue = (R = (P = (C = S == null ? void 0 : S.data) == null ? void 0 : C.role_function) == null ? void 0 : P.function) == null ? void 0 : R.name, a.genomeRoleValue = (D = (j = (T = S == null ? void 0 : S.data) == null ? void 0 : T.role_function) == null ? void 0 : j.role) == null ? void 0 : D.name;
|
|
1051
|
+
} catch (S) {
|
|
1052
|
+
if (console.error(S), s.value = !1, $.isAxiosError(S)) {
|
|
1053
|
+
const J = S;
|
|
1054
|
+
console.log("Error found!"), console.error((q = J.response) == null ? void 0 : q.data), d.setError(((N = J.response) == null ? void 0 : N.data).message);
|
|
1021
1055
|
} else
|
|
1022
|
-
|
|
1056
|
+
d.setError("There was an issue, please contact helpmate");
|
|
1023
1057
|
}
|
|
1024
1058
|
}, oe = () => {
|
|
1025
|
-
var
|
|
1026
|
-
(
|
|
1059
|
+
var C;
|
|
1060
|
+
(C = f.value) == null || C.sendQuestion();
|
|
1027
1061
|
};
|
|
1028
|
-
return (
|
|
1029
|
-
|
|
1030
|
-
default:
|
|
1031
|
-
e("div",
|
|
1032
|
-
|
|
1033
|
-
|
|
1062
|
+
return (C, P) => (l(), r("section", null, [
|
|
1063
|
+
F(ie, { "is-visible": b.value }, {
|
|
1064
|
+
default: le(() => [
|
|
1065
|
+
e("div", Ya, [
|
|
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)
|
|
1034
1068
|
])
|
|
1035
1069
|
]),
|
|
1036
1070
|
_: 1
|
|
1037
1071
|
}, 8, ["is-visible"]),
|
|
1038
1072
|
e("div", null, [
|
|
1039
|
-
s.value ? (
|
|
1040
|
-
e("div",
|
|
1041
|
-
|
|
1073
|
+
s.value ? (l(), wt(pt, { key: 0 })) : (l(), r("main", ro, [
|
|
1074
|
+
e("div", co, [
|
|
1075
|
+
F(zt)
|
|
1042
1076
|
]),
|
|
1043
|
-
|
|
1044
|
-
e("div",
|
|
1045
|
-
e("div",
|
|
1046
|
-
e("div",
|
|
1047
|
-
|
|
1077
|
+
uo,
|
|
1078
|
+
e("div", mo, [
|
|
1079
|
+
e("div", ho, [
|
|
1080
|
+
e("div", po, [
|
|
1081
|
+
F(Bs, { onCallQuestion: oe }),
|
|
1048
1082
|
e("div", {
|
|
1049
|
-
class: W(
|
|
1083
|
+
class: W(i(a).showVoiceComponent === !0 ? "mt-[160px]" : "mt-[120px]")
|
|
1050
1084
|
}, null, 2)
|
|
1051
1085
|
]),
|
|
1052
|
-
|
|
1053
|
-
|
|
1086
|
+
i(a).assessmentQuestion ? (l(), r("div", fo, [
|
|
1087
|
+
F(za, {
|
|
1054
1088
|
ref_key: "newQuestionRef",
|
|
1055
|
-
ref:
|
|
1089
|
+
ref: f
|
|
1056
1090
|
}, null, 512)
|
|
1057
|
-
])) : (
|
|
1058
|
-
|
|
1091
|
+
])) : (l(), r("div", go, [
|
|
1092
|
+
F(Za)
|
|
1059
1093
|
]))
|
|
1060
1094
|
])
|
|
1061
1095
|
])
|
|
@@ -1064,7 +1098,7 @@ const Xa = /* @__PURE__ */ X(Wa, [["__scopeId", "data-v-6c0980b5"]]), Y = (p) =>
|
|
|
1064
1098
|
]));
|
|
1065
1099
|
}
|
|
1066
1100
|
});
|
|
1067
|
-
const
|
|
1101
|
+
const Co = /* @__PURE__ */ X(vo, [["__scopeId", "data-v-8bb74be6"]]);
|
|
1068
1102
|
export {
|
|
1069
|
-
|
|
1103
|
+
Co as default
|
|
1070
1104
|
};
|