@genpact/genome.mfe.mgtwin-app 1.1.342-alpha → 1.1.343-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-918a145f.mjs → AssessmentAMA-bb485281.mjs} +4 -4
- package/dist/AssessmentSimulation-480e25d8.mjs +12488 -0
- package/dist/{EditSkillAdminData-9057335b.mjs → EditSkillAdminData-a8ac49ec.mjs} +2 -2
- package/dist/{EditSkillData-b0451cd3.mjs → EditSkillData-7635f4e4.mjs} +2 -2
- package/dist/{HomeView-258bf975.mjs → HomeView-3c817fd7.mjs} +5 -5
- package/dist/{Loading-8ee26a7c.mjs → Loading-343eabe5.mjs} +1 -1
- package/dist/{LoadingSimulation-c91e179f.mjs → LoadingSimulation-3b234237.mjs} +1 -1
- package/dist/{Modal-dbeb8b2e.mjs → Modal-680a0e9e.mjs} +1 -1
- package/dist/{PaperAirplaneIcon-5948b576.mjs → PaperAirplaneIcon-03beaf78.mjs} +1 -1
- package/dist/{PromptTesting-bd3e6654.mjs → PromptTesting-7b4904f8.mjs} +3 -3
- package/dist/{SkillAutomation-44fafe41.mjs → SkillAutomation-62861a87.mjs} +3 -3
- package/dist/{SkillData-454a27c3.mjs → SkillData-e3fff876.mjs} +3 -3
- package/dist/{Testcase-5fd0ae4a.mjs → Testcase-5b9d6abb.mjs} +3 -3
- package/dist/{UnderMaintenance-8ef4f22a.mjs → UnderMaintenance-f69e36ca.mjs} +1 -1
- package/dist/{VoiceTestcase-c95c3ce4.mjs → VoiceTestcase-2b584f67.mjs} +3 -3
- package/dist/{XMarkIcon-15e3ee52.mjs → XMarkIcon-d65e6a05.mjs} +1 -1
- package/dist/{api-68e7ae7c.mjs → api-f68433a4.mjs} +1 -1
- package/dist/html2canvas.esm-7570f311.mjs +4886 -0
- package/dist/index.es-f8990ea8.mjs +5778 -0
- package/dist/{main-6b3c46ae.mjs → main-ceab822c.mjs} +2252 -2245
- package/dist/mgtwin.es.min.js +1 -1
- package/dist/mgtwin.umd.min.js +246 -15
- package/dist/purify.es-e2b9a570.mjs +563 -0
- package/dist/style.css +1 -1
- package/dist/{voiceServices-6efcd5a1.mjs → voiceServices-28a2d802.mjs} +2 -2
- package/package.json +2 -1
- package/dist/AssessmentSimulation-a1061afa.mjs +0 -1105
|
@@ -1,1105 +0,0 @@
|
|
|
1
|
-
import { _ as ht, a as dt, L as pt } from "./LoadingSimulation-c91e179f.mjs";
|
|
2
|
-
import { _ as ft, a as ie, Q as he, M as nt } from "./Modal-dbeb8b2e.mjs";
|
|
3
|
-
import { d as I, r as h, H as O, o as i, c as r, a as e, u as E, y as ge, h as F, s as le, i as L, t as V, b as l, f as M, I as re, F as ve, e as be, w as xe, J as gt, p as K, g as Z, G as de, C as ce, z as vt, K as bt, k as ue, n as W, q as $, m as ct, A as xt, L as yt, l as wt } from "./main-6b3c46ae.mjs";
|
|
4
|
-
import { _ as X } from "./_plugin-vue_export-helper-dad06003.mjs";
|
|
5
|
-
import { p as U, g as pe } from "./api-68e7ae7c.mjs";
|
|
6
|
-
import { i as H, s as _t, a as At, b as it, c as fe, r as Q, d as ne, e as kt, p as lt, f as rt } from "./voiceServices-6efcd5a1.mjs";
|
|
7
|
-
import { r as St } from "./XMarkIcon-15e3ee52.mjs";
|
|
8
|
-
import "./loadernew-ac153a51.mjs";
|
|
9
|
-
import "./_commonjsHelpers-92157f1b.mjs";
|
|
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
|
-
class: "h-11 w-auto cursor-pointer",
|
|
12
|
-
src: ht,
|
|
13
|
-
alt: "Genome Logo"
|
|
14
|
-
}, null, -1), Pt = [
|
|
15
|
-
Lt
|
|
16
|
-
], Tt = ["href"], Ft = /* @__PURE__ */ e("img", {
|
|
17
|
-
class: "h-9 w-28 cursor-pointer md:w-36",
|
|
18
|
-
src: ft,
|
|
19
|
-
alt: "Aiguru Logo"
|
|
20
|
-
}, null, -1), Mt = [
|
|
21
|
-
Ft
|
|
22
|
-
], zt = /* @__PURE__ */ I({
|
|
23
|
-
__name: "headerSimulation",
|
|
24
|
-
setup(p) {
|
|
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) => (i(), r("nav", Nt, [
|
|
27
|
-
e("a", {
|
|
28
|
-
class: "px-2 md:px-0 lg:px-0",
|
|
29
|
-
href: s.value,
|
|
30
|
-
target: "_blank"
|
|
31
|
-
}, Pt, 8, Ct),
|
|
32
|
-
e("a", {
|
|
33
|
-
class: "px-2 md:px-0 lg:px-0",
|
|
34
|
-
href: t.value,
|
|
35
|
-
target: "_blank"
|
|
36
|
-
}, Mt, 8, Tt)
|
|
37
|
-
]));
|
|
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" }, 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
|
-
/* @__PURE__ */ e("li", null, [
|
|
41
|
-
/* @__PURE__ */ L(" Choose a "),
|
|
42
|
-
/* @__PURE__ */ e("span", { class: "font-[600]" }, "quiet space"),
|
|
43
|
-
/* @__PURE__ */ L(" and ensure your mic and internet connection are working properly. ")
|
|
44
|
-
]),
|
|
45
|
-
/* @__PURE__ */ e("li", null, [
|
|
46
|
-
/* @__PURE__ */ L(" The assessment will "),
|
|
47
|
-
/* @__PURE__ */ e("span", { class: "font-[600]" }, "begin in text mode "),
|
|
48
|
-
/* @__PURE__ */ L(", where the AI will ask you a few initial questions. ")
|
|
49
|
-
]),
|
|
50
|
-
/* @__PURE__ */ e("li", null, [
|
|
51
|
-
/* @__PURE__ */ L(" You'll need to type your responses, which will help the "),
|
|
52
|
-
/* @__PURE__ */ e("span", { class: "font-[600]" }, "AI generate tailored scenarios "),
|
|
53
|
-
/* @__PURE__ */ L(" for the role-play exercise. ")
|
|
54
|
-
]),
|
|
55
|
-
/* @__PURE__ */ e("li", null, [
|
|
56
|
-
/* @__PURE__ */ e("span", { class: "font-[600]" }, "Voice mode "),
|
|
57
|
-
/* @__PURE__ */ L(" will be activated, once you initiate the role-play. ")
|
|
58
|
-
]),
|
|
59
|
-
/* @__PURE__ */ e("li", null, [
|
|
60
|
-
/* @__PURE__ */ L(" Click "),
|
|
61
|
-
/* @__PURE__ */ e("span", { class: "font-[600]" }, "“Turn on Mic”"),
|
|
62
|
-
/* @__PURE__ */ L(" to initiate the conversation with the voice bot. ")
|
|
63
|
-
]),
|
|
64
|
-
/* @__PURE__ */ e("li", null, [
|
|
65
|
-
/* @__PURE__ */ e("span", { class: "font-[600]" }, "Don’t mute "),
|
|
66
|
-
/* @__PURE__ */ L(" until your response is fully processed to ensure smooth interaction. ")
|
|
67
|
-
]),
|
|
68
|
-
/* @__PURE__ */ e("li", null, [
|
|
69
|
-
/* @__PURE__ */ L(" Stay expressive — this is an interactive role-play, so your "),
|
|
70
|
-
/* @__PURE__ */ e("span", { class: "font-[600]" }, "engagement matters"),
|
|
71
|
-
/* @__PURE__ */ L(". ")
|
|
72
|
-
]),
|
|
73
|
-
/* @__PURE__ */ e("li", null, [
|
|
74
|
-
/* @__PURE__ */ L(" The session may take up to "),
|
|
75
|
-
/* @__PURE__ */ e("span", { class: "font-[600]" }, "10 minutes "),
|
|
76
|
-
/* @__PURE__ */ L(", so plan accordingly. ")
|
|
77
|
-
])
|
|
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
|
-
/* @__PURE__ */ e("li", null, "This simulation is expected to take approximately 15 minutes to complete."),
|
|
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), 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("li", null, "The exercise has 2 parts –"),
|
|
85
|
-
/* @__PURE__ */ e("ul", { className: "list-disc max-h-[40vh] overflow-auto space-y-3 pl-6 text-[#102345] text-sm md:text-base" }, [
|
|
86
|
-
/* @__PURE__ */ e("li", null, [
|
|
87
|
-
/* @__PURE__ */ e("b", null, "Part 1:"),
|
|
88
|
-
/* @__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. ")
|
|
89
|
-
]),
|
|
90
|
-
/* @__PURE__ */ e("li", null, [
|
|
91
|
-
/* @__PURE__ */ e("b", null, "Part 2:"),
|
|
92
|
-
/* @__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. ")
|
|
93
|
-
])
|
|
94
|
-
]),
|
|
95
|
-
/* @__PURE__ */ e("li", null, " You'll need to type your responses, which will help the AI generate tailored scenarios. "),
|
|
96
|
-
/* @__PURE__ */ e("li", null, "For the role-play, you will be presented with both - text and voice mode."),
|
|
97
|
-
/* @__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. "),
|
|
98
|
-
/* @__PURE__ */ e("li", null, "Voice mode will be activated, once you initiate the role-play."),
|
|
99
|
-
/* @__PURE__ */ e("li", null, "Click “Turn on Mic” to initiate the conversation with the voice bot."),
|
|
100
|
-
/* @__PURE__ */ e("li", null, "Don’t mute until your response is fully processed to ensure smooth interaction.")
|
|
101
|
-
], -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 = {
|
|
102
|
-
key: 0,
|
|
103
|
-
class: "fontFormattingAMA"
|
|
104
|
-
}, Xt = /* @__PURE__ */ e("br", null, null, -1), Jt = ` You're about to step into a realistic, voice-based client conversation powered by AI.
|
|
105
|
-
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({
|
|
106
|
-
__name: "greetingsSimulation",
|
|
107
|
-
emits: ["callQuestion"],
|
|
108
|
-
setup(p, { emit: s }) {
|
|
109
|
-
const t = E(), b = h(!1), a = h(!1), d = h(!1), y = () => {
|
|
110
|
-
t.simulationSkill === "7bd03cb6-79ad-4e2a-8a8b-88dc16147369" ? (t.question = "Let's start", t.beginFlag = !1, b.value = !0) : t.simulationSkill === "25f8e44f-b83e-42d6-a168-b0e1fb83b26a" ? (t.question = "Let's start", t.beginFlag = !1, a.value = !0) : t.simulationSkill === "bdce5798-c378-4306-abe3-66c62983b423" ? (t.question = "Let's start", t.beginFlag = !1, d.value = !0) : (t.beginFlag = !1, t.question = "Let's start", s("callQuestion"));
|
|
111
|
-
}, v = `Hi, get ready to test your ${t.skillNameForSimulation || "Unknown"} knowledge! Here’s what to expect:`, o = ` Hi ${t.learnerName || "Expert"}, and welcome!`, x = ` Hi ${t.learnerName || "Expert"}, We'd like to see how you're progressing in Genpact. Are you ready for a conversation?`, _ = ` Hi ${t.learnerName || "Expert! "} 👋, Get ready for an interesting challenge based on Genpact’s Data and AI offerings.`, g = ` Hi, ${t.learnerName || "Expert"}. Get ready to test your ${t.skillNameForSimulation || "Unknown"} knowledge! Here’s what to expect:`, c = ge(() => ["32b7d6d8-f7a8-40a0-ab84-8784f25897ef"].includes(t.simulationSkill) ? v : ["7bd03cb6-79ad-4e2a-8a8b-88dc16147369"].includes(t.simulationSkill) ? o : ["25f8e44f-b83e-42d6-a168-b0e1fb83b26a"].includes(t.simulationSkill) ? x : ["bdce5798-c378-4306-abe3-66c62983b423"].includes(t.simulationSkill) ? _ : g), m = `Hi, get ready to test your ${t.skillNameForSimulation || "Unknown"} knowledge! Here’s what to expect:`, u = ` AI Guru will ask you a few questions on '${t.skillNameForSimulation.trim() || "Unknown"} '. Please provide detailed and thoughtful answers to the best of your knowledge. At the end, you'll receive a feedback, outlining your strengths and improvement areas.`, f = ge(() => ["32b7d6d8-f7a8-40a0-ab84-8784f25897ef"].includes(t.simulationSkill) ? m : ["7bd03cb6-79ad-4e2a-8a8b-88dc16147369"].includes(t.simulationSkill) ? Jt : ["25f8e44f-b83e-42d6-a168-b0e1fb83b26a"].includes(t.simulationSkill) ? Ut : ["bdce5798-c378-4306-abe3-66c62983b423"].includes(t.simulationSkill) ? Kt : u);
|
|
112
|
-
return (A, k) => (i(), r("section", null, [
|
|
113
|
-
F(ie, { "is-visible": b.value }, {
|
|
114
|
-
default: le(() => [
|
|
115
|
-
e("div", Rt, [
|
|
116
|
-
It,
|
|
117
|
-
Dt,
|
|
118
|
-
e("button", {
|
|
119
|
-
onClick: k[0] || (k[0] = (z) => {
|
|
120
|
-
b.value = !1, s("callQuestion");
|
|
121
|
-
}),
|
|
122
|
-
type: "button",
|
|
123
|
-
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"
|
|
124
|
-
}, " Proceed ")
|
|
125
|
-
])
|
|
126
|
-
]),
|
|
127
|
-
_: 1
|
|
128
|
-
}, 8, ["is-visible"]),
|
|
129
|
-
F(ie, { "is-visible": a.value }, {
|
|
130
|
-
default: le(() => [
|
|
131
|
-
e("div", Ht, [
|
|
132
|
-
jt,
|
|
133
|
-
qt,
|
|
134
|
-
e("button", {
|
|
135
|
-
onClick: k[1] || (k[1] = (z) => {
|
|
136
|
-
a.value = !1, s("callQuestion");
|
|
137
|
-
}),
|
|
138
|
-
type: "button",
|
|
139
|
-
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"
|
|
140
|
-
}, " Proceed ")
|
|
141
|
-
])
|
|
142
|
-
]),
|
|
143
|
-
_: 1
|
|
144
|
-
}, 8, ["is-visible"]),
|
|
145
|
-
F(ie, { "is-visible": d.value }, {
|
|
146
|
-
default: le(() => [
|
|
147
|
-
e("div", Et, [
|
|
148
|
-
Bt,
|
|
149
|
-
L(" The assessment will begin in text mode , where the AI will ask you a few initial questions – "),
|
|
150
|
-
$t,
|
|
151
|
-
e("button", {
|
|
152
|
-
onClick: k[2] || (k[2] = (z) => {
|
|
153
|
-
d.value = !1, s("callQuestion");
|
|
154
|
-
}),
|
|
155
|
-
type: "button",
|
|
156
|
-
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"
|
|
157
|
-
}, " Proceed ")
|
|
158
|
-
])
|
|
159
|
-
]),
|
|
160
|
-
_: 1
|
|
161
|
-
}, 8, ["is-visible"]),
|
|
162
|
-
e("div", Vt, [
|
|
163
|
-
e("div", Gt, [
|
|
164
|
-
e("div", Qt, V(c.value), 1),
|
|
165
|
-
e("div", Ot, V(f.value), 1)
|
|
166
|
-
])
|
|
167
|
-
]),
|
|
168
|
-
l(t).beginFlag ? (i(), r("span", Wt, [
|
|
169
|
-
e("button", {
|
|
170
|
-
type: "button",
|
|
171
|
-
id: "button",
|
|
172
|
-
onClick: y,
|
|
173
|
-
class: "mt-4 bg-[#021c42] rounded-md px-4 py-1.5 text-center md:text-base text-sm text-white cursor-pointer italic hover:bg-blue-700 w-32"
|
|
174
|
-
}, " Let's begin ")
|
|
175
|
-
])) : M("", !0),
|
|
176
|
-
Xt
|
|
177
|
-
]));
|
|
178
|
-
}
|
|
179
|
-
}), Yt = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAB9AH0DASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3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uSiDk81nSeMNO+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-13e0a910"), p = p(), Z(), p), es = { class: "fontFormattingAMA flex items-end justify-start py-2" }, ts = { class: "line-break w-full bg-gray-100 p-3 text-sm text-black md:text-[15px] rounded-lg" }, ss = ["innerHTML"], as = ["innerHTML"], os = {
|
|
180
|
-
key: 0,
|
|
181
|
-
class: "py-4"
|
|
182
|
-
}, ns = { class: "fontFormattingAMA px-2 py-1.5 md:px-6" }, is = ["value", "disabled", "name"], ls = {
|
|
183
|
-
for: "item",
|
|
184
|
-
name: "options-Array",
|
|
185
|
-
id: "index"
|
|
186
|
-
}, rs = {
|
|
187
|
-
key: 1,
|
|
188
|
-
class: "py-4"
|
|
189
|
-
}, ds = { class: "fontFormattingAMA px-2 py-1.5 md:px-6" }, cs = ["onClick", "disabled", "name"], us = {
|
|
190
|
-
for: "item",
|
|
191
|
-
name: "options-Array",
|
|
192
|
-
id: "index"
|
|
193
|
-
}, ms = {
|
|
194
|
-
key: 2,
|
|
195
|
-
class: "flex flex-col justify-start py-10"
|
|
196
|
-
}, 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", {
|
|
197
|
-
class: "h-20 w-20",
|
|
198
|
-
src: Yt,
|
|
199
|
-
alt: "qr_code"
|
|
200
|
-
}, null, -1)), fs = [
|
|
201
|
-
hs,
|
|
202
|
-
ps
|
|
203
|
-
], gs = {
|
|
204
|
-
key: 3,
|
|
205
|
-
class: "flex flex-col justify-start items-start bg-gray-100 rounded-lg"
|
|
206
|
-
}, vs = { class: "flex justify-start items-center md:gap-[40px] gap-[30px]" }, bs = /* @__PURE__ */ I({
|
|
207
|
-
__name: "responseSimulation",
|
|
208
|
-
props: {
|
|
209
|
-
question: {
|
|
210
|
-
type: String,
|
|
211
|
-
required: !0
|
|
212
|
-
},
|
|
213
|
-
answer: {
|
|
214
|
-
type: String,
|
|
215
|
-
required: !0
|
|
216
|
-
},
|
|
217
|
-
questionId: {
|
|
218
|
-
type: String,
|
|
219
|
-
required: !0
|
|
220
|
-
},
|
|
221
|
-
showFeedback: {
|
|
222
|
-
type: Boolean,
|
|
223
|
-
default: !0
|
|
224
|
-
},
|
|
225
|
-
optionsArray: {
|
|
226
|
-
type: Array,
|
|
227
|
-
// eslint-disable-next-line vue/require-valid-default-prop
|
|
228
|
-
default: []
|
|
229
|
-
},
|
|
230
|
-
ansId: {
|
|
231
|
-
type: Number,
|
|
232
|
-
default: 0
|
|
233
|
-
}
|
|
234
|
-
},
|
|
235
|
-
emits: ["char-typed"],
|
|
236
|
-
setup(p, { emit: s }) {
|
|
237
|
-
const t = p, b = h([]), a = h(!1), d = E(), y = h("");
|
|
238
|
-
let v = [], o = "";
|
|
239
|
-
const x = async () => {
|
|
240
|
-
v = o.split(""), y.value = "";
|
|
241
|
-
for (let c = 0; c < v.length; c++)
|
|
242
|
-
y.value += v[c], t.answer.includes("Feedback and Assessment") ? (console.log("Feedback and Assessment found"), o.length - 5 > v.length && c % 30 && s("char-typed")) : c % 30 && s("char-typed"), await new Promise((m) => setTimeout(m, 60));
|
|
243
|
-
}, _ = () => {
|
|
244
|
-
d.isRestart = !0, d.searchBoxdisable = !1, d.showVoiceComponent = !0, d.showSelectTypeConvesation = !1, d.showModelToggle = !0, d.isSpeechToggle = !1;
|
|
245
|
-
}, g = ge(() => {
|
|
246
|
-
const c = t.answer.replace(/[*#]/g, "").replace(
|
|
247
|
-
/Assessment Rating & Feedback/g,
|
|
248
|
-
'<div style="font-size: 26px; font-weight: bold; text-decoration: underline;">Rating & Feedback</div>'
|
|
249
|
-
).replace(
|
|
250
|
-
/BEGIN ROLE PLAY./g,
|
|
251
|
-
'<div style="font-size: 18px; font-weight: bold;">BEGIN ROLE PLAY</div>'
|
|
252
|
-
).replace(
|
|
253
|
-
/Feedback and Assessment:/g,
|
|
254
|
-
'<div style="font-size: 16px; font-weight: bold;">Feedback and Assessment</div>'
|
|
255
|
-
).replace(
|
|
256
|
-
/Feedback and Assessment/g,
|
|
257
|
-
'<div style="font-size: 16px; font-weight: bold;">Feedback and Assessment</div>'
|
|
258
|
-
).replace(
|
|
259
|
-
/Overall Assessment:/g,
|
|
260
|
-
'<div style="font-size: 16px; font-weight: bold;">Overall Assessment</div>'
|
|
261
|
-
).replace(
|
|
262
|
-
/Overall Assessment/g,
|
|
263
|
-
'<div style="font-size: 16px; font-weight: bold;">Overall Assessment</div>'
|
|
264
|
-
).replace(
|
|
265
|
-
/Overall Rating:/g,
|
|
266
|
-
'<div style="font-size: 16px; font-weight: bold;">Overall Rating</div>'
|
|
267
|
-
).replace(
|
|
268
|
-
/Overall Rating/g,
|
|
269
|
-
'<div style="font-size: 16px; font-weight: bold;">Overall Rating</div>'
|
|
270
|
-
).replace(
|
|
271
|
-
/Model Solution:/g,
|
|
272
|
-
'<div style="font-size: 16px; font-weight: bold;">Model Solution</div>'
|
|
273
|
-
).replace(
|
|
274
|
-
/Model Solution/g,
|
|
275
|
-
'<div style="font-size: 16px; font-weight: bold;">Model Solution</div>'
|
|
276
|
-
);
|
|
277
|
-
(c.includes("Thank you for your participation!") || c.includes("Thank you for your participation")) && (d.searchBoxdisable = !1, a.value = !0), (c.includes("BEGIN ROLE PLAY") || c.includes("BEGIN ROLE PLAY.")) && (d.showSelectTypeConvesation = !0);
|
|
278
|
-
const m = /\[([^\]]+)\]\((https?:\/\/[^\s]+)\)/g;
|
|
279
|
-
if (c.includes("AI Guru")) {
|
|
280
|
-
if (c.includes("AI Guru"))
|
|
281
|
-
return console.log("aig found"), c.replace(m, (u, f, A) => `<a href="https://genome.genpact.com/#aiguru" target="_blank" style="color: blue; text-decoration: underline; cursor:pointer;">${f}</a>`);
|
|
282
|
-
} else
|
|
283
|
-
return c.replace(m, (u, f, A) => `<a href="${A}" target="_blank" rel="noopener noreferrer" style="color: blue; text-decoration: underline;">${f}</a>`);
|
|
284
|
-
});
|
|
285
|
-
return re(
|
|
286
|
-
() => t.answer,
|
|
287
|
-
() => {
|
|
288
|
-
let c = t.answer.replace(/[*#]/g, "").replace(
|
|
289
|
-
/Assessment Rating & Feedback/g,
|
|
290
|
-
'<div style="font-size: 26px; font-weight: bold; text-decoration: underline;">Rating & Feedback</div>'
|
|
291
|
-
).replace(
|
|
292
|
-
/Feedback and Assessment:/g,
|
|
293
|
-
'<div style="font-size: 16px; font-weight: bold;">Feedback and Assessment</div>'
|
|
294
|
-
).replace(
|
|
295
|
-
/Feedback and Assessment/g,
|
|
296
|
-
'<div style="font-size: 16px; font-weight: bold;">Feedback and Assessment</div>'
|
|
297
|
-
).replace(
|
|
298
|
-
/Overall Assessment:/g,
|
|
299
|
-
'<div style="font-size: 16px; font-weight: bold;">Overall Assessment</div>'
|
|
300
|
-
).replace(
|
|
301
|
-
/Overall Assessment/g,
|
|
302
|
-
'<div style="font-size: 16px; font-weight: bold;">Overall Assessment</div>'
|
|
303
|
-
).replace(
|
|
304
|
-
/Overall Rating:/g,
|
|
305
|
-
'<div style="font-size: 16px; font-weight: bold;">Overall Rating</div>'
|
|
306
|
-
).replace(
|
|
307
|
-
/Overall Rating/g,
|
|
308
|
-
'<div style="font-size: 16px; font-weight: bold;">Overall Rating</div>'
|
|
309
|
-
).replace(
|
|
310
|
-
/Model Solution:/g,
|
|
311
|
-
'<div style="font-size: 16px; font-weight: bold;">Model Solution</div>'
|
|
312
|
-
).replace(
|
|
313
|
-
/Model Solution/g,
|
|
314
|
-
'<div style="font-size: 16px; font-weight: bold;">Model Solution</div>'
|
|
315
|
-
);
|
|
316
|
-
const m = /\[([^\]]+)\]\((https?:\/\/[^\s]+)\)/g;
|
|
317
|
-
c.includes("AI Guru") ? c = c.replace(m, (u, f, A) => `<a href="https://genome.genpact.com/#aiguru" target="_blank" style="color: blue; text-decoration: underline; cursor:pointer;">${f}</a>`) : c = c.replace(m, (u, f, A) => `<a href="${A}" target="_blank" rel="noopener noreferrer" style="color: blue; text-decoration: underline;">${f}</a>`), c.includes("Feedback and Assessment") && c.includes("END ROLE PLAY") ? (o = c.split("END ROLE PLAY")[0], console.log("END ROLE PLAY")) : o = c, d.showVoiceComponent && x();
|
|
318
|
-
},
|
|
319
|
-
{ immediate: !0 }
|
|
320
|
-
), re(b, (c) => {
|
|
321
|
-
d.question = (c ?? []).join(", ");
|
|
322
|
-
}), (c, m) => (i(), r("div", es, [
|
|
323
|
-
e("div", ts, [
|
|
324
|
-
l(d).simulationSkill === "7bd03cb6-79ad-4e2a-8a8b-88dc16147369" && l(d).showVoiceComponent === !0 && l(d).conversations.length - 1 === t.ansId && !t.answer.includes("BEGIN ROLE PLAY") ? (i(), r("span", {
|
|
325
|
-
key: 0,
|
|
326
|
-
class: "fontFormattingAMA answer-link",
|
|
327
|
-
innerHTML: y.value
|
|
328
|
-
}, null, 8, ss)) : (i(), r("span", {
|
|
329
|
-
key: 1,
|
|
330
|
-
class: "fontFormattingAMA answer-link",
|
|
331
|
-
innerHTML: g.value
|
|
332
|
-
}, null, 8, as)),
|
|
333
|
-
e("div", null, [
|
|
334
|
-
p.optionsArray.length && l(d).mcqType === "multi_choice" ? (i(), r("div", os, [
|
|
335
|
-
(i(!0), r(ve, null, be(p.optionsArray, (u, f) => (i(), r("div", {
|
|
336
|
-
key: f,
|
|
337
|
-
class: "italic"
|
|
338
|
-
}, [
|
|
339
|
-
e("div", ns, [
|
|
340
|
-
xe(e("input", {
|
|
341
|
-
class: "mr-4 cursor-pointer",
|
|
342
|
-
type: "checkbox",
|
|
343
|
-
value: u,
|
|
344
|
-
"onUpdate:modelValue": m[0] || (m[0] = (A) => b.value = A),
|
|
345
|
-
disabled: l(d).conversations.length - 1 !== t.ansId,
|
|
346
|
-
name: g.value
|
|
347
|
-
}, null, 8, is), [
|
|
348
|
-
[gt, b.value]
|
|
349
|
-
]),
|
|
350
|
-
e("label", ls, V(u), 1)
|
|
351
|
-
])
|
|
352
|
-
]))), 128))
|
|
353
|
-
])) : p.optionsArray.length ? (i(), r("div", rs, [
|
|
354
|
-
(i(!0), r(ve, null, be(p.optionsArray, (u, f) => (i(), r("div", {
|
|
355
|
-
key: f,
|
|
356
|
-
class: "italic"
|
|
357
|
-
}, [
|
|
358
|
-
e("div", ds, [
|
|
359
|
-
e("input", {
|
|
360
|
-
class: "mr-4 cursor-pointer",
|
|
361
|
-
type: "radio",
|
|
362
|
-
onClick: (A) => l(d).question = String(p.optionsArray[f]),
|
|
363
|
-
disabled: l(d).conversations.length - 1 !== t.ansId,
|
|
364
|
-
name: g.value
|
|
365
|
-
}, null, 8, cs),
|
|
366
|
-
e("label", us, V(u), 1)
|
|
367
|
-
])
|
|
368
|
-
]))), 128))
|
|
369
|
-
])) : M("", !0)
|
|
370
|
-
]),
|
|
371
|
-
a.value && l(d).simulationSkill === "32b7d6d8-f7a8-40a0-ab84-8784f25897ef" ? (i(), r("div", ms, fs)) : M("", !0),
|
|
372
|
-
l(d).isSpeechToggle && l(d).showSelectTypeConvesation && l(d).simulationSkill === "7bd03cb6-79ad-4e2a-8a8b-88dc16147369" && l(d).conversations.length - 1 === t.ansId ? (i(), r("div", gs, [
|
|
373
|
-
e("div", vs, [
|
|
374
|
-
e("button", {
|
|
375
|
-
type: "button",
|
|
376
|
-
id: "button",
|
|
377
|
-
onClick: m[1] || (m[1] = (u) => _()),
|
|
378
|
-
class: "mt-4 cursor-pointer bg-[#021c42] hover:bg-blue-700 italic rounded-md px-4 py-2 text-center text-white text-[16px]"
|
|
379
|
-
}, " Start Conversation ")
|
|
380
|
-
])
|
|
381
|
-
])) : M("", !0)
|
|
382
|
-
])
|
|
383
|
-
]));
|
|
384
|
-
}
|
|
385
|
-
});
|
|
386
|
-
const xs = /* @__PURE__ */ X(bs, [["__scopeId", "data-v-13e0a910"]]), ys = { class: "flex justify-end items-end py-3" }, ws = { class: "max-w-[80%]" }, _s = ["innerHTML"], As = /* @__PURE__ */ I({
|
|
387
|
-
__name: "learnerSimulation",
|
|
388
|
-
props: {
|
|
389
|
-
question: {
|
|
390
|
-
type: String,
|
|
391
|
-
required: !0
|
|
392
|
-
},
|
|
393
|
-
showFeedback: {
|
|
394
|
-
type: Boolean,
|
|
395
|
-
default: !0
|
|
396
|
-
}
|
|
397
|
-
},
|
|
398
|
-
setup(p) {
|
|
399
|
-
return (s, t) => (i(), r("div", ys, [
|
|
400
|
-
e("div", ws, [
|
|
401
|
-
e("div", {
|
|
402
|
-
class: "w-fit fontFormattingAMA text-[0.8125rem] md:text-[0.9375rem] text-white bg-genpact-blue-box leading-6 p-3",
|
|
403
|
-
innerHTML: p.question.replace(/\n/g, "<br>")
|
|
404
|
-
}, null, 8, _s)
|
|
405
|
-
])
|
|
406
|
-
]));
|
|
407
|
-
}
|
|
408
|
-
}), 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" }, [
|
|
409
|
-
/* @__PURE__ */ e("span", null, "."),
|
|
410
|
-
/* @__PURE__ */ e("span", null, "."),
|
|
411
|
-
/* @__PURE__ */ e("span", null, ".")
|
|
412
|
-
], -1)), Ps = /* @__PURE__ */ de('<div class="block w-full max-w-full items-stretch" data-v-347ad6de><div class="flex animate-pulse items-start justify-start space-x-4" data-v-347ad6de><div class="flex-1 space-y-6 py-1" data-v-347ad6de><div class="h-2 w-full rounded bg-gray-300" data-v-347ad6de></div><div class="space-y-3" data-v-347ad6de><div class="grid grid-cols-3 gap-4" data-v-347ad6de><div class="col-span-2 h-2 rounded bg-gray-300" data-v-347ad6de></div><div class="col-span-1 h-2 rounded bg-gray-300" data-v-347ad6de></div></div><div class="h-2 rounded bg-gray-300" data-v-347ad6de></div></div></div></div></div>', 1), Ts = /* @__PURE__ */ I({
|
|
413
|
-
__name: "LoadingResponse",
|
|
414
|
-
setup(p) {
|
|
415
|
-
const s = h("Generating response"), t = h([
|
|
416
|
-
"This may take a few seconds",
|
|
417
|
-
"Fetching the best response for you",
|
|
418
|
-
"Thinking... give me a moment",
|
|
419
|
-
"One moment while I gather the information",
|
|
420
|
-
"Hang in tight, we are almost there",
|
|
421
|
-
"Almost there... just a bit longer",
|
|
422
|
-
"Compiling a response for you"
|
|
423
|
-
]);
|
|
424
|
-
return setTimeout(() => {
|
|
425
|
-
const b = Math.floor(Math.random() * t.value.length);
|
|
426
|
-
s.value = t.value[b];
|
|
427
|
-
}, 15e3), (b, a) => (i(), r("div", Ss, [
|
|
428
|
-
e("div", Ns, [
|
|
429
|
-
e("div", Cs, V(s.value), 1),
|
|
430
|
-
Ls
|
|
431
|
-
]),
|
|
432
|
-
Ps
|
|
433
|
-
]));
|
|
434
|
-
}
|
|
435
|
-
});
|
|
436
|
-
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 = {
|
|
437
|
-
key: 0,
|
|
438
|
-
class: "fontFormattingAMA w-fit text-[0.8125rem] md:text-[0.9375rem] text-white bg-genpact-blue-box leading-6 p-3 rounded-lg"
|
|
439
|
-
}, Is = /* @__PURE__ */ I({
|
|
440
|
-
__name: "QuestionStreaming",
|
|
441
|
-
setup(p) {
|
|
442
|
-
const s = E();
|
|
443
|
-
return (t, b) => (i(), r("div", Ms, [
|
|
444
|
-
e("div", zs, [
|
|
445
|
-
l(s).userSpeechText.toLowerCase().includes("play") && l(s).userSpeechText.length < 10 ? M("", !0) : (i(), r("div", Rs, V(l(s).userSpeechText), 1))
|
|
446
|
-
])
|
|
447
|
-
]));
|
|
448
|
-
}
|
|
449
|
-
}), Ds = { key: 0 }, Hs = { key: 1 }, js = {
|
|
450
|
-
key: 0,
|
|
451
|
-
class: "flex"
|
|
452
|
-
}, qs = {
|
|
453
|
-
key: 1,
|
|
454
|
-
name: "askQuestion"
|
|
455
|
-
}, Es = /* @__PURE__ */ I({
|
|
456
|
-
__name: "conversationSimulation",
|
|
457
|
-
setup(p) {
|
|
458
|
-
let s = h(""), t = h("");
|
|
459
|
-
s.value = '<a style="color:#00AECF;"', t.value = '<ul style="list-style: disc !important; margin-left: 3.5rem !important; padding: 0;"';
|
|
460
|
-
const b = E(), a = h(), d = () => {
|
|
461
|
-
a.value.scrollTo(0, a.value.scrollHeight);
|
|
462
|
-
};
|
|
463
|
-
return ce(() => {
|
|
464
|
-
var o;
|
|
465
|
-
const y = document.getElementsByName("askQuestion"), v = Array.from(y);
|
|
466
|
-
y.length && ((o = v == null ? void 0 : v.pop()) == null || o.scrollIntoView({ behavior: "smooth", block: "center" })), window.addEventListener("custom-event", d);
|
|
467
|
-
}), vt(() => {
|
|
468
|
-
var o;
|
|
469
|
-
const y = document.getElementsByName("askQuestion"), v = Array.from(y);
|
|
470
|
-
y.length && ((o = v == null ? void 0 : v.pop()) == null || o.scrollIntoView({ behavior: "smooth", block: "center" }));
|
|
471
|
-
}), bt(() => {
|
|
472
|
-
window.removeEventListener("custom-event", d);
|
|
473
|
-
}), (y, v) => (i(), r("div", {
|
|
474
|
-
ref_key: "nestedElement",
|
|
475
|
-
ref: a,
|
|
476
|
-
class: "smooth-scroll overflow-auto md:px-6 px-2"
|
|
477
|
-
}, [
|
|
478
|
-
F(Zt, {
|
|
479
|
-
onCallQuestion: v[0] || (v[0] = (o) => y.$emit("callQuestion"))
|
|
480
|
-
}),
|
|
481
|
-
(i(!0), r(ve, null, be(l(b).conversations, (o, x) => (i(), r("div", { key: x }, [
|
|
482
|
-
o.question ? (i(), r("div", Ds, [
|
|
483
|
-
F(As, {
|
|
484
|
-
question: o == null ? void 0 : o.question,
|
|
485
|
-
c2question: o == null ? void 0 : o.c2question,
|
|
486
|
-
"show-feedback": o == null ? void 0 : o.showFeedback,
|
|
487
|
-
id: `qId${x}`,
|
|
488
|
-
name: "askQuestion",
|
|
489
|
-
"que-id": x
|
|
490
|
-
}, null, 8, ["question", "c2question", "show-feedback", "id", "que-id"])
|
|
491
|
-
])) : M("", !0),
|
|
492
|
-
o.answer ? (i(), r("div", Hs, [
|
|
493
|
-
F(xs, {
|
|
494
|
-
question: o == null ? void 0 : o.question,
|
|
495
|
-
c2question: o == null ? void 0 : o.c2question,
|
|
496
|
-
"show-sources": o == null ? void 0 : o.showSources,
|
|
497
|
-
questionId: o.id,
|
|
498
|
-
answer: o.answer.replaceAll("<a", l(s)).replaceAll("<ul", l(t)),
|
|
499
|
-
"show-feedback": o.showFeedback,
|
|
500
|
-
"related-ques": o == null ? void 0 : o.relatedQues,
|
|
501
|
-
"options-array": o == null ? void 0 : o.optionsArray,
|
|
502
|
-
"ans-id": x,
|
|
503
|
-
onCharTyped: d
|
|
504
|
-
}, null, 8, ["question", "c2question", "show-sources", "questionId", "answer", "show-feedback", "related-ques", "options-array", "ans-id"])
|
|
505
|
-
])) : M("", !0)
|
|
506
|
-
]))), 128)),
|
|
507
|
-
l(b).dotLoader ? (i(), r("div", js, [
|
|
508
|
-
F(Fs)
|
|
509
|
-
])) : M("", !0),
|
|
510
|
-
l(b).userspeaking ? (i(), r("div", qs, [
|
|
511
|
-
F(Is)
|
|
512
|
-
])) : M("", !0)
|
|
513
|
-
], 512));
|
|
514
|
-
}
|
|
515
|
-
});
|
|
516
|
-
const Bs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-c14e6f9c"]]), $s = { class: "flex items-center gap-4 py-2 rounded-full z-10" }, Vs = {
|
|
517
|
-
key: 0,
|
|
518
|
-
class: "flex items-center"
|
|
519
|
-
}, Gs = {
|
|
520
|
-
width: "30",
|
|
521
|
-
height: "30",
|
|
522
|
-
viewBox: "0 0 36 24",
|
|
523
|
-
class: "fill-white",
|
|
524
|
-
style: { transform: "scaleX(-1)" }
|
|
525
|
-
}, Qs = /* @__PURE__ */ de('<rect x="0" y="11" width="2" height="2" rx="1"><animate attributeName="height" values="2;6;2" dur="1s" repeatCount="indefinite" begin="0s"></animate><animate attributeName="y" values="11;9;11" dur="1s" repeatCount="indefinite" begin="0s"></animate></rect><rect x="4" y="10" width="2" height="4" rx="1"><animate attributeName="height" values="4;8;4" dur="1s" repeatCount="indefinite" begin="0.1s"></animate><animate attributeName="y" values="10;8;10" dur="1s" repeatCount="indefinite" begin="0.1s"></animate></rect><rect x="8" y="8" width="2" height="8" rx="1"><animate attributeName="height" values="8;12;8" dur="1s" repeatCount="indefinite" begin="0.2s"></animate><animate attributeName="y" values="8;6;8" dur="1s" repeatCount="indefinite" begin="0.2s"></animate></rect><rect x="12" y="6" width="2" height="12" rx="1"><animate attributeName="height" values="12;16;12" dur="1s" repeatCount="indefinite" begin="0.3s"></animate><animate attributeName="y" values="6;4;6" dur="1s" repeatCount="indefinite" begin="0.3s"></animate></rect><rect x="16" y="4" width="2" height="16" rx="1"><animate attributeName="height" values="16;20;16" dur="1s" repeatCount="indefinite" begin="0.4s"></animate><animate attributeName="y" values="4;2;4" dur="1s" repeatCount="indefinite" begin="0.4s"></animate></rect><rect x="20" y="6" width="2" height="12" rx="1"><animate attributeName="height" values="12;16;12" dur="1s" repeatCount="indefinite" begin="0.5s"></animate><animate attributeName="y" values="6;4;6" dur="1s" repeatCount="indefinite" begin="0.5s"></animate></rect><rect x="24" y="8" width="2" height="8" rx="1"><animate attributeName="height" values="8;12;8" dur="1s" repeatCount="indefinite" begin="0.6s"></animate><animate attributeName="y" values="8;6;8" dur="1s" repeatCount="indefinite" begin="0.6s"></animate></rect><rect x="28" y="10" width="2" height="4" rx="1"><animate attributeName="height" values="4;8;4" dur="1s" repeatCount="indefinite" begin="0.7s"></animate><animate attributeName="y" values="10;8;10" dur="1s" repeatCount="indefinite" begin="0.7s"></animate></rect><rect x="32" y="11" width="2" height="2" rx="1"><animate attributeName="height" values="2;6;2" dur="1s" repeatCount="indefinite" begin="0.8s"></animate><animate attributeName="y" values="11;9;11" dur="1s" repeatCount="indefinite" begin="0.8s"></animate></rect>', 9), Os = [
|
|
526
|
-
Qs
|
|
527
|
-
], Ws = {
|
|
528
|
-
key: 1,
|
|
529
|
-
class: "flex items-center"
|
|
530
|
-
}, Xs = {
|
|
531
|
-
width: "30",
|
|
532
|
-
height: "30",
|
|
533
|
-
viewBox: "0 0 36 24",
|
|
534
|
-
class: "fill-white",
|
|
535
|
-
style: { transform: "scaleX(-1)" }
|
|
536
|
-
}, Js = /* @__PURE__ */ de('<rect x="0" y="11" width="2" height="2" rx="1"><animate attributeName="height" values="2;6;2" dur="1s" repeatCount="indefinite" begin="0s"></animate><animate attributeName="y" values="11;9;11" dur="1s" repeatCount="indefinite" begin="0s"></animate></rect><rect x="4" y="10" width="2" height="4" rx="1"><animate attributeName="height" values="4;8;4" dur="1s" repeatCount="indefinite" begin="0.1s"></animate><animate attributeName="y" values="10;8;10" dur="1s" repeatCount="indefinite" begin="0.1s"></animate></rect><rect x="8" y="8" width="2" height="8" rx="1"><animate attributeName="height" values="8;12;8" dur="1s" repeatCount="indefinite" begin="0.2s"></animate><animate attributeName="y" values="8;6;8" dur="1s" repeatCount="indefinite" begin="0.2s"></animate></rect><rect x="12" y="6" width="2" height="12" rx="1"><animate attributeName="height" values="12;16;12" dur="1s" repeatCount="indefinite" begin="0.3s"></animate><animate attributeName="y" values="6;4;6" dur="1s" repeatCount="indefinite" begin="0.3s"></animate></rect><rect x="16" y="4" width="2" height="16" rx="1"><animate attributeName="height" values="16;20;16" dur="1s" repeatCount="indefinite" begin="0.4s"></animate><animate attributeName="y" values="4;2;4" dur="1s" repeatCount="indefinite" begin="0.4s"></animate></rect><rect x="20" y="6" width="2" height="12" rx="1"><animate attributeName="height" values="12;16;12" dur="1s" repeatCount="indefinite" begin="0.5s"></animate><animate attributeName="y" values="6;4;6" dur="1s" repeatCount="indefinite" begin="0.5s"></animate></rect><rect x="24" y="8" width="2" height="8" rx="1"><animate attributeName="height" values="8;12;8" dur="1s" repeatCount="indefinite" begin="0.6s"></animate><animate attributeName="y" values="8;6;8" dur="1s" repeatCount="indefinite" begin="0.6s"></animate></rect><rect x="28" y="10" width="2" height="4" rx="1"><animate attributeName="height" values="4;8;4" dur="1s" repeatCount="indefinite" begin="0.7s"></animate><animate attributeName="y" values="10;8;10" dur="1s" repeatCount="indefinite" begin="0.7s"></animate></rect><rect x="32" y="11" width="2" height="2" rx="1"><animate attributeName="height" values="2;6;2" dur="1s" repeatCount="indefinite" begin="0.8s"></animate><animate attributeName="y" values="11;9;11" dur="1s" repeatCount="indefinite" begin="0.8s"></animate></rect>', 9), Us = [
|
|
537
|
-
Js
|
|
538
|
-
], Ks = {
|
|
539
|
-
key: 2,
|
|
540
|
-
class: "flex items-center"
|
|
541
|
-
}, Zs = /* @__PURE__ */ de('<svg width="30" height="30" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="12" y="16" width="40" height="32" rx="8" fill="white" stroke="#9CA3AF" stroke-width="2"></rect><circle cx="24" cy="32" r="4" fill="black"></circle><circle cx="40" cy="32" r="4" fill="black"></circle><line x1="32" y1="10" x2="32" y2="16" stroke="#9CA3AF" stroke-width="2"></line><circle cx="32" cy="8" r="2" fill="white"></circle><circle cx="52" cy="14" r="3" fill="white"><animate attributeName="opacity" values="0;1;0" dur="1.2s" begin="0s" repeatCount="indefinite"></animate></circle><circle cx="58" cy="10" r="2.5" fill="white"><animate attributeName="opacity" values="0;1;0" dur="1.2s" begin="0.2s" repeatCount="indefinite"></animate></circle><circle cx="63" cy="6" r="2" fill="white"><animate attributeName="opacity" values="0;1;0" dur="1.2s" begin="0.4s" repeatCount="indefinite"></animate></circle></svg>', 1), Ys = [
|
|
542
|
-
Zs
|
|
543
|
-
], ea = { class: "tooltiptext text-genpact-darkest-teal" }, ta = /* @__PURE__ */ e("svg", {
|
|
544
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
545
|
-
class: "h-[10px] w-[10px] text-gray-700",
|
|
546
|
-
fill: "currentColor",
|
|
547
|
-
viewBox: "0 0 24 24"
|
|
548
|
-
}, [
|
|
549
|
-
/* @__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" })
|
|
550
|
-
], -1), sa = [
|
|
551
|
-
ta
|
|
552
|
-
], aa = /* @__PURE__ */ e("svg", {
|
|
553
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
554
|
-
class: "h-[10px] w-[10px] text-gray-700",
|
|
555
|
-
fill: "currentColor",
|
|
556
|
-
viewBox: "0 0 24 24"
|
|
557
|
-
}, [
|
|
558
|
-
/* @__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" }),
|
|
559
|
-
/* @__PURE__ */ e("line", {
|
|
560
|
-
x1: "4",
|
|
561
|
-
y1: "4",
|
|
562
|
-
x2: "20",
|
|
563
|
-
y2: "20",
|
|
564
|
-
stroke: "currentColor",
|
|
565
|
-
"stroke-width": "2"
|
|
566
|
-
})
|
|
567
|
-
], -1), oa = [
|
|
568
|
-
aa
|
|
569
|
-
], na = /* @__PURE__ */ I({
|
|
570
|
-
__name: "NewVoiceConversation",
|
|
571
|
-
setup(p) {
|
|
572
|
-
const s = E(), t = ue(), b = h(""), a = h(!1), d = h("Turn on mic"), y = () => {
|
|
573
|
-
a.value === !1 ? s.elevenLabs ? (console.log("mic enabled true 11labs"), a.value = !0, _t(), H.value = "user", d.value = "Turn off mic") : (console.log("mic enabled true"), a.value = !0, rt(), At(), H.value = "user", d.value = "Turn off mic") : s.elevenLabs ? (console.log("mic enabled false"), it(), a.value = !1, d.value = "Turn on mic") : (console.log("mic enabled false"), fe(), a.value = !1, d.value = "Turn on mic");
|
|
574
|
-
}, v = () => {
|
|
575
|
-
s.elevenLabs ? (console.log("closeConversation 11 labs"), it(), H.value = "none", a.value = !1) : (console.log("closeConversation"), fe(), rt(), H.value = "none", a.value = !1);
|
|
576
|
-
}, o = async () => {
|
|
577
|
-
var x, _, g, c, m, u;
|
|
578
|
-
try {
|
|
579
|
-
const f = {
|
|
580
|
-
question: Q.value || ne.value
|
|
581
|
-
};
|
|
582
|
-
s.conversations.push(f), s.dotLoader = !0, s.question = "";
|
|
583
|
-
const A = {
|
|
584
|
-
past_messages: s.past_messages,
|
|
585
|
-
question: Q.value || ne.value,
|
|
586
|
-
skillId: s.simulationSkill,
|
|
587
|
-
bandCode: s.band_code,
|
|
588
|
-
userGenomeFunction: s.genomeFunctionValue,
|
|
589
|
-
userGenomeRole: s.genomeRoleValue
|
|
590
|
-
}, k = await U("/sqlTest", A);
|
|
591
|
-
if (H.value = "bot", b.value = (_ = (x = k == null ? void 0 : k.data) == null ? void 0 : x.body) == null ? void 0 : _.answer, b.value === "") {
|
|
592
|
-
console.log("in the if case calling api again");
|
|
593
|
-
const z = await U("/sqlTest", A);
|
|
594
|
-
s.addConversation((g = z.data) == null ? void 0 : g.body, "new");
|
|
595
|
-
} else
|
|
596
|
-
console.log("in the else case"), s.addConversation((c = k.data) == null ? void 0 : c.body, "new");
|
|
597
|
-
if (s.dotLoader = !1, s.elevenLabs)
|
|
598
|
-
await kt(b.value.replace(/[*#]/g, ""));
|
|
599
|
-
else if (b.value.includes("Feedback and Assessment"))
|
|
600
|
-
if (fe(), a.value = !1, b.value.includes("END ROLE PLAY")) {
|
|
601
|
-
const z = b.value.split("END ROLE PLAY")[0];
|
|
602
|
-
if (z.length < 0) {
|
|
603
|
-
s.showVoiceComponent = !1;
|
|
604
|
-
return;
|
|
605
|
-
}
|
|
606
|
-
await lt(z.replace(/[*#]/g, "")), s.showVoiceComponent = !1;
|
|
607
|
-
} else
|
|
608
|
-
s.showVoiceComponent = !1;
|
|
609
|
-
else
|
|
610
|
-
await lt(b.value.replace(/[*#]/g, ""));
|
|
611
|
-
} catch (f) {
|
|
612
|
-
if (console.error(f), $.isAxiosError(f)) {
|
|
613
|
-
const A = f;
|
|
614
|
-
console.log("Error found!"), console.error((m = A.response) == null ? void 0 : m.data), t.setError(((u = A.response) == null ? void 0 : u.data).message);
|
|
615
|
-
} else
|
|
616
|
-
t.setError("There was an issue, please contact helpmate");
|
|
617
|
-
}
|
|
618
|
-
};
|
|
619
|
-
return re(Q, async (x) => {
|
|
620
|
-
if (x) {
|
|
621
|
-
if (console.log("Recognized text:", x), Q.value.toLowerCase().includes("play") && Q.value.length < 10) {
|
|
622
|
-
console.log("play command detected, ignoring input");
|
|
623
|
-
return;
|
|
624
|
-
}
|
|
625
|
-
H.value = "listening", s.userspeaking = !1, await o(), Q.value = "";
|
|
626
|
-
}
|
|
627
|
-
}), re(ne, async (x) => {
|
|
628
|
-
x && (console.log("Recognized text:", x), H.value = "listening", await o(), ne.value = "");
|
|
629
|
-
}), (x, _) => (i(), r("div", $s, [
|
|
630
|
-
l(H) === "bot" ? (i(), r("div", Vs, [
|
|
631
|
-
e("span", null, [
|
|
632
|
-
(i(), r("svg", Gs, Os))
|
|
633
|
-
])
|
|
634
|
-
])) : l(H) === "user" ? (i(), r("div", Ws, [
|
|
635
|
-
e("span", null, [
|
|
636
|
-
(i(), r("svg", Xs, Us))
|
|
637
|
-
])
|
|
638
|
-
])) : l(H) === "listening" ? (i(), r("div", Ks, Ys)) : M("", !0),
|
|
639
|
-
e("div", {
|
|
640
|
-
class: W([a.value ? "" : "animate-pulse", "tooltip"])
|
|
641
|
-
}, [
|
|
642
|
-
e("span", ea, V(d.value), 1),
|
|
643
|
-
a.value ? (i(), r("button", {
|
|
644
|
-
key: 0,
|
|
645
|
-
class: "rounded-full bg-white p-2 transition hover:bg-gray-300",
|
|
646
|
-
onClick: _[0] || (_[0] = (g) => y())
|
|
647
|
-
}, sa)) : (i(), r("button", {
|
|
648
|
-
key: 1,
|
|
649
|
-
class: "rounded-full bg-white p-2 transition hover:bg-gray-300",
|
|
650
|
-
onClick: _[1] || (_[1] = (g) => y())
|
|
651
|
-
}, oa))
|
|
652
|
-
], 2),
|
|
653
|
-
e("button", {
|
|
654
|
-
class: "rounded-full bg-white p-2 hover:bg-gray-300",
|
|
655
|
-
onClick: _[2] || (_[2] = (g) => v())
|
|
656
|
-
}, [
|
|
657
|
-
F(l(St), { class: "h-[10px] w-[10px] text-gray-700" })
|
|
658
|
-
])
|
|
659
|
-
]));
|
|
660
|
-
}
|
|
661
|
-
}), B = (p) => (K("data-v-9ec493aa"), p = p(), Z(), p), ia = { class: "z-3 absolute bottom-0 mt-4 w-full bg-white px-2 md:px-6" }, la = { class: "py-2" }, ra = { class: "flex" }, da = { class: "z-1 relative w-full" }, ca = { class: "flex justify-between my-2 w-full" }, ua = /* @__PURE__ */ B(() => /* @__PURE__ */ e("div", null, null, -1)), ma = {
|
|
662
|
-
key: 0,
|
|
663
|
-
class: "flex justify-center bg-genpact-darkest-blue px-4 rounded-full"
|
|
664
|
-
}, ha = { class: "relative w-full" }, pa = { class: "absolute inset-y-0 left-0 flex items-center pl-3" }, fa = { class: "tooltip" }, ga = /* @__PURE__ */ B(() => /* @__PURE__ */ e("span", { class: "tooltiptext text-genpact-darkest-teal" }, "Restart", -1)), va = /* @__PURE__ */ B(() => /* @__PURE__ */ e("path", {
|
|
665
|
-
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",
|
|
666
|
-
stroke: "currentColor",
|
|
667
|
-
"stroke-width": "2"
|
|
668
|
-
}, null, -1)), ba = /* @__PURE__ */ B(() => /* @__PURE__ */ e("path", {
|
|
669
|
-
d: "M9 10H15M9 14H12M19 8V2M16 5H22",
|
|
670
|
-
stroke: "currentColor",
|
|
671
|
-
"stroke-width": "2",
|
|
672
|
-
"stroke-linecap": "round",
|
|
673
|
-
"stroke-linejoin": "round"
|
|
674
|
-
}, null, -1)), xa = [
|
|
675
|
-
va,
|
|
676
|
-
ba
|
|
677
|
-
], ya = { class: "absolute inset-y-0 right-0 flex items-center md:pr-8 pr-3" }, wa = { key: 0 }, _a = ["disabled"], Aa = /* @__PURE__ */ B(() => /* @__PURE__ */ e("path", { d: "M15.854.146a.5.5 0 0 1 .11.54l-5.819 14.547a.75.75 0 0 1-1.329.124l-3.178-4.995L.643 7.184a.75.75 0 0 1 .124-1.33L15.314.037a.5.5 0 0 1 .54.11ZM6.636 10.07l2.761 4.338L14.13 2.576 6.636 10.07Zm6.787-8.201L1.591 6.602l4.339 2.76 7.494-7.493Z" }, null, -1)), ka = [
|
|
678
|
-
Aa
|
|
679
|
-
], Sa = {
|
|
680
|
-
key: 1,
|
|
681
|
-
class: "tooltip"
|
|
682
|
-
}, Na = /* @__PURE__ */ B(() => /* @__PURE__ */ e("span", { class: "tooltiptext text-genpact-darkest-teal" }, "Processing", -1)), Ca = /* @__PURE__ */ B(() => /* @__PURE__ */ e("img", {
|
|
683
|
-
class: "w-7 h-7",
|
|
684
|
-
src: dt,
|
|
685
|
-
alt: "watingIcon"
|
|
686
|
-
}, null, -1)), La = [
|
|
687
|
-
Na,
|
|
688
|
-
Ca
|
|
689
|
-
], 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" }, [
|
|
690
|
-
/* @__PURE__ */ e("div", null, " Note: AI-generated response may not be fully accurate; check with experts for critical information. ")
|
|
691
|
-
], -1)), Ma = /* @__PURE__ */ I({
|
|
692
|
-
__name: "NewQuestionSimulation",
|
|
693
|
-
setup(p, { expose: s }) {
|
|
694
|
-
const t = E(), b = ue(), a = h(""), d = h("");
|
|
695
|
-
t.question = "";
|
|
696
|
-
const y = h(null), v = h(!1), o = h(0);
|
|
697
|
-
d.value = t.recognizedText, ce(() => {
|
|
698
|
-
y.value.focus();
|
|
699
|
-
});
|
|
700
|
-
const x = () => {
|
|
701
|
-
window.location.reload();
|
|
702
|
-
}, _ = async () => {
|
|
703
|
-
var m, u, f, A, k, z, ee, te, se, ae, oe;
|
|
704
|
-
try {
|
|
705
|
-
if (t.question.trim().length < 1) {
|
|
706
|
-
console.log("Please enter answer!");
|
|
707
|
-
return;
|
|
708
|
-
}
|
|
709
|
-
v.value = !0, t.dotLoader = !0;
|
|
710
|
-
const C = {
|
|
711
|
-
question: t.question || t.recognizedText
|
|
712
|
-
};
|
|
713
|
-
t.conversations.push(C);
|
|
714
|
-
const P = h("");
|
|
715
|
-
P.value = t.question || t.recognizedText, t.question = "", y.value && (y.value.style.height = "auto");
|
|
716
|
-
const R = {
|
|
717
|
-
ohr_id: a.value,
|
|
718
|
-
past_messages: t.past_messages,
|
|
719
|
-
question: P.value || t.recognizedText,
|
|
720
|
-
bandCode: t.band_code,
|
|
721
|
-
userGenomeFunction: t.genomeFunctionValue,
|
|
722
|
-
userGenomeRole: t.genomeRoleValue,
|
|
723
|
-
skillId: t.simulationSkill || "937e84ef-e95d-4327-9afe-e7be2bf420eb"
|
|
724
|
-
}, T = await U("/sqlTest", R);
|
|
725
|
-
if (o.value += (u = (m = T.data) == null ? void 0 : m.body) == null ? void 0 : u.totalTokenCount, console.log("Token Count:", o.value), a.value = (A = (f = T.data) == null ? void 0 : f.body) == null ? void 0 : A.ohr, ((z = (k = T == null ? void 0 : T.data) == null ? void 0 : k.body) == null ? void 0 : z.answer) === "") {
|
|
726
|
-
console.log("in the if case calling api again");
|
|
727
|
-
const D = await U("/sqlTest", R);
|
|
728
|
-
t.addConversation((ee = D.data) == null ? void 0 : ee.body, "new");
|
|
729
|
-
} else
|
|
730
|
-
console.log("in the else case"), t.addConversation((te = T.data) == null ? void 0 : te.body, "new");
|
|
731
|
-
v.value = !1, t.dotLoader = !1, t.recognizedText = "";
|
|
732
|
-
} catch (C) {
|
|
733
|
-
if (console.error(C), t.dotLoader = !1, v.value = !1, $.isAxiosError(C)) {
|
|
734
|
-
const P = C;
|
|
735
|
-
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);
|
|
736
|
-
} else
|
|
737
|
-
b.setError("There was an issue, please contact helpmate");
|
|
738
|
-
}
|
|
739
|
-
}, g = (m) => {
|
|
740
|
-
m.key === "Enter" && !m.shiftKey && (m.preventDefault(), _());
|
|
741
|
-
}, c = (m) => {
|
|
742
|
-
const u = m.target;
|
|
743
|
-
u.style.height = "auto", u.style.height = u.scrollHeight + "px";
|
|
744
|
-
};
|
|
745
|
-
return s({ sendQuestion: _ }), (m, u) => (i(), r("div", ia, [
|
|
746
|
-
e("div", la, [
|
|
747
|
-
e("div", ra, [
|
|
748
|
-
e("div", da, [
|
|
749
|
-
e("div", ca, [
|
|
750
|
-
ua,
|
|
751
|
-
l(t).showVoiceComponent ? (i(), r("div", ma, [
|
|
752
|
-
F(na)
|
|
753
|
-
])) : M("", !0)
|
|
754
|
-
]),
|
|
755
|
-
e("div", ha, [
|
|
756
|
-
e("div", pa, [
|
|
757
|
-
e("div", fa, [
|
|
758
|
-
ga,
|
|
759
|
-
(i(), r("svg", {
|
|
760
|
-
onClick: x,
|
|
761
|
-
class: "ml-2 h-7 w-7 rounded",
|
|
762
|
-
id: "newTopicDisable",
|
|
763
|
-
width: "7",
|
|
764
|
-
height: "",
|
|
765
|
-
viewBox: "0 0 24 24",
|
|
766
|
-
fill: "none",
|
|
767
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
768
|
-
title: "restart"
|
|
769
|
-
}, xa))
|
|
770
|
-
])
|
|
771
|
-
]),
|
|
772
|
-
e("div", ya, [
|
|
773
|
-
v.value ? (i(), r("div", Sa, La)) : (i(), r("div", wa, [
|
|
774
|
-
(i(), r("svg", {
|
|
775
|
-
disabled: l(t).beginFlag === !0,
|
|
776
|
-
class: W([
|
|
777
|
-
l(t).beginFlag === !0 ? "cursor-not-allowed text-gray-600" : "cursor-pointer",
|
|
778
|
-
"bi bi-send ml-2 h-7 w-7 rotate-45 rounded"
|
|
779
|
-
]),
|
|
780
|
-
onClick: u[0] || (u[0] = (f) => l(t).searchBoxdisable === !1 || l(t).beginFlag === !0 ? "" : _()),
|
|
781
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
782
|
-
fill: "currentColor",
|
|
783
|
-
viewBox: "0 0 16 16"
|
|
784
|
-
}, ka, 10, _a))
|
|
785
|
-
]))
|
|
786
|
-
]),
|
|
787
|
-
e("div", Pa, [
|
|
788
|
-
xe(e("textarea", {
|
|
789
|
-
onPaste: u[1] || (u[1] = xt(() => {
|
|
790
|
-
}, ["prevent"])),
|
|
791
|
-
onKeydown: u[2] || (u[2] = (f) => v.value ? "" : g(f)),
|
|
792
|
-
disabled: l(t).searchBoxdisable === !1 || l(t).beginFlag === !0,
|
|
793
|
-
"onUpdate:modelValue": u[3] || (u[3] = (f) => l(t).question = f),
|
|
794
|
-
class: W([
|
|
795
|
-
"fontFormattingAMA rounded-lg flex w-full border border-genpact-darkest-teal py-[18px] px-[70px]",
|
|
796
|
-
l(t).beginFlag === !0 || l(t).searchBoxdisable === !1 ? "cursor-not-allowed bg-[#e5e7eb]" : "bg-white"
|
|
797
|
-
]),
|
|
798
|
-
placeholder: "Write your answer here...",
|
|
799
|
-
ref_key: "AiSearch",
|
|
800
|
-
ref: y,
|
|
801
|
-
rows: "1",
|
|
802
|
-
onInput: u[4] || (u[4] = (f) => c(f)),
|
|
803
|
-
style: { overflow: "hidden", transition: "height 0.2s" }
|
|
804
|
-
}, null, 42, Ta), [
|
|
805
|
-
[ct, l(t).question]
|
|
806
|
-
])
|
|
807
|
-
])
|
|
808
|
-
]),
|
|
809
|
-
Fa
|
|
810
|
-
])
|
|
811
|
-
])
|
|
812
|
-
])
|
|
813
|
-
]));
|
|
814
|
-
}
|
|
815
|
-
});
|
|
816
|
-
const za = /* @__PURE__ */ X(Ma, [["__scopeId", "data-v-9ec493aa"]]), me = (p) => (K("data-v-6c0980b5"), p = p(), Z(), p), Ra = { class: "z-3 absolute bottom-0 mt-4 w-full bg-white px-2 md:px-6" }, Ia = { class: "py-2" }, Da = { class: "flex" }, Ha = { class: "z-1 relative w-full" }, ja = { class: "relative w-full" }, qa = { class: "absolute inset-y-0 right-0 flex items-center md:pr-8 pr-3" }, Ea = { key: 0 }, Ba = ["disabled"], $a = /* @__PURE__ */ me(() => /* @__PURE__ */ e("path", { d: "M15.854.146a.5.5 0 0 1 .11.54l-5.819 14.547a.75.75 0 0 1-1.329.124l-3.178-4.995L.643 7.184a.75.75 0 0 1 .124-1.33L15.314.037a.5.5 0 0 1 .54.11ZM6.636 10.07l2.761 4.338L14.13 2.576 6.636 10.07Zm6.787-8.201L1.591 6.602l4.339 2.76 7.494-7.493Z" }, null, -1)), Va = [
|
|
817
|
-
$a
|
|
818
|
-
], Ga = {
|
|
819
|
-
key: 1,
|
|
820
|
-
class: "tooltip"
|
|
821
|
-
}, Qa = /* @__PURE__ */ me(() => /* @__PURE__ */ e("span", { class: "tooltiptext fontFormattingAMA" }, "Waiting for response", -1)), Oa = /* @__PURE__ */ me(() => /* @__PURE__ */ e("img", {
|
|
822
|
-
class: "w-7 h-7",
|
|
823
|
-
src: dt,
|
|
824
|
-
alt: "watingIcon"
|
|
825
|
-
}, null, -1)), Wa = [
|
|
826
|
-
Qa,
|
|
827
|
-
Oa
|
|
828
|
-
], Xa = { class: "flex justify-start gap-2 md:gap-1" }, Ja = ["disabled"], Ua = /* @__PURE__ */ me(() => /* @__PURE__ */ e("div", { class: "pt-1 text-start font-sans text-[0.8125rem] md:text-[0.9375rem] font-bold text-gray-500" }, [
|
|
829
|
-
/* @__PURE__ */ e("div", null, " Note: AI-generated response may not be fully accurate; check with experts for critical information. ")
|
|
830
|
-
], -1)), Ka = /* @__PURE__ */ I({
|
|
831
|
-
__name: "NewMDMQuestionSimulation",
|
|
832
|
-
setup(p) {
|
|
833
|
-
const s = E(), t = ue(), b = h("");
|
|
834
|
-
s.question = "";
|
|
835
|
-
const a = h(null), d = h(!1), y = h(he), v = h(!1);
|
|
836
|
-
b.value = s.recognizedText, ce(() => {
|
|
837
|
-
a.value.focus();
|
|
838
|
-
});
|
|
839
|
-
const o = (_) => {
|
|
840
|
-
const g = _.length;
|
|
841
|
-
y.value = he - g, d.value = g >= he;
|
|
842
|
-
}, x = async () => {
|
|
843
|
-
var _, g, c;
|
|
844
|
-
console.log("options fdsfdscdzxfsdv", s.recognizedText);
|
|
845
|
-
try {
|
|
846
|
-
if (console.log("options fdsfdscdzxfsdv", s.recognizedText), s.question.trim().length < 1) {
|
|
847
|
-
console.log("Please enter answer!");
|
|
848
|
-
return;
|
|
849
|
-
}
|
|
850
|
-
v.value = !0, s.dotLoader = !0;
|
|
851
|
-
const m = {
|
|
852
|
-
question: s.question || s.recognizedText
|
|
853
|
-
};
|
|
854
|
-
console.log("ques", m), s.conversations.push(m);
|
|
855
|
-
const u = h("");
|
|
856
|
-
u.value = s.question || s.recognizedText, s.question = "";
|
|
857
|
-
const f = {
|
|
858
|
-
assessmentId: s.simulationSkill,
|
|
859
|
-
question: u.value,
|
|
860
|
-
past_messages: s.past_messages,
|
|
861
|
-
prompt: s.generatedPrompt,
|
|
862
|
-
assessmentType: s.assessmentType,
|
|
863
|
-
userFunction: "HR",
|
|
864
|
-
empSeniority: s.empSeniority,
|
|
865
|
-
functionRole: s.functionRole,
|
|
866
|
-
userBand: s.band_code,
|
|
867
|
-
storeFinalFeedback: s.storeFinalFeedback,
|
|
868
|
-
storeFinalScore: s.storeFinalScore
|
|
869
|
-
};
|
|
870
|
-
console.log("Payload for MDM1==> ", f);
|
|
871
|
-
let A;
|
|
872
|
-
O === "prod" ? A = "/ManualExportActivity" : A = "/fetchCompletionDemo";
|
|
873
|
-
const k = await U(A, f);
|
|
874
|
-
s.addConversation((_ = k.data) == null ? void 0 : _.body, "new"), v.value = !1, s.dotLoader = !1, s.recognizedText = "";
|
|
875
|
-
} catch (m) {
|
|
876
|
-
if (console.error(m), $.isAxiosError(m)) {
|
|
877
|
-
const u = m;
|
|
878
|
-
console.log("Error found!"), console.error((g = u.response) == null ? void 0 : g.data), t.setError(((c = u.response) == null ? void 0 : c.data).message);
|
|
879
|
-
} else
|
|
880
|
-
t.setError("There was an issue, please contact helpmate");
|
|
881
|
-
}
|
|
882
|
-
};
|
|
883
|
-
return (_, g) => (i(), r("div", Ra, [
|
|
884
|
-
e("div", Ia, [
|
|
885
|
-
e("div", Da, [
|
|
886
|
-
e("div", Ha, [
|
|
887
|
-
e("div", ja, [
|
|
888
|
-
e("div", qa, [
|
|
889
|
-
v.value ? (i(), r("div", Ga, Wa)) : (i(), r("div", Ea, [
|
|
890
|
-
(i(), r("svg", {
|
|
891
|
-
disabled: l(s).beginFlag === !0,
|
|
892
|
-
class: W([
|
|
893
|
-
l(s).beginFlag === !0 ? "cursor-not-allowed text-gray-600" : "cursor-pointer",
|
|
894
|
-
"bi bi-send ml-2 h-7 w-7 rotate-45 rounded"
|
|
895
|
-
]),
|
|
896
|
-
onClick: g[0] || (g[0] = (c) => l(s).searchBoxdisable === !1 || l(s).beginFlag === !0 ? "" : x()),
|
|
897
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
898
|
-
fill: "currentColor",
|
|
899
|
-
viewBox: "0 0 16 16"
|
|
900
|
-
}, Va, 10, Ba))
|
|
901
|
-
]))
|
|
902
|
-
]),
|
|
903
|
-
e("div", Xa, [
|
|
904
|
-
xe(e("input", {
|
|
905
|
-
onKeyup: [
|
|
906
|
-
g[1] || (g[1] = yt((c) => v.value ? "" : x(), ["enter"])),
|
|
907
|
-
g[3] || (g[3] = (c) => o(l(s).question))
|
|
908
|
-
],
|
|
909
|
-
disabled: l(s).beginFlag === !0 || l(s).searchBoxdisable === !1,
|
|
910
|
-
class: W([
|
|
911
|
-
l(s).beginFlag === !0 || l(s).searchBoxdisable === !1 ? "cursor-not-allowed bg-[#e5e7eb]" : "bg-white",
|
|
912
|
-
"fontFormattingAMA rounded-lg flex w-full border border-genpact-darkest-teal py-[18px] pl-[30px] pr-[70px]"
|
|
913
|
-
]),
|
|
914
|
-
"onUpdate:modelValue": g[2] || (g[2] = (c) => l(s).question = c),
|
|
915
|
-
placeholder: "Write your answer here...",
|
|
916
|
-
type: "text",
|
|
917
|
-
ref_key: "AiSearch",
|
|
918
|
-
ref: a
|
|
919
|
-
}, null, 42, Ja), [
|
|
920
|
-
[ct, l(s).question]
|
|
921
|
-
])
|
|
922
|
-
])
|
|
923
|
-
]),
|
|
924
|
-
Ua
|
|
925
|
-
])
|
|
926
|
-
])
|
|
927
|
-
])
|
|
928
|
-
]));
|
|
929
|
-
}
|
|
930
|
-
});
|
|
931
|
-
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 = {
|
|
932
|
-
key: 0,
|
|
933
|
-
class: "flex flex-col items-center justify-center gap-4"
|
|
934
|
-
}, 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 = [
|
|
935
|
-
to,
|
|
936
|
-
so
|
|
937
|
-
], oo = {
|
|
938
|
-
key: 1,
|
|
939
|
-
class: "flex flex-col items-center justify-center gap-4"
|
|
940
|
-
}, 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 = [
|
|
941
|
-
no,
|
|
942
|
-
io
|
|
943
|
-
], ro = {
|
|
944
|
-
key: 1,
|
|
945
|
-
className: "h-screen flex flex-col items-stretch"
|
|
946
|
-
}, 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 = {
|
|
947
|
-
key: 0,
|
|
948
|
-
class: "relative"
|
|
949
|
-
}, go = {
|
|
950
|
-
key: 1,
|
|
951
|
-
class: "relative"
|
|
952
|
-
}, vo = /* @__PURE__ */ I({
|
|
953
|
-
__name: "AssessmentSimulation",
|
|
954
|
-
setup(p) {
|
|
955
|
-
const s = h(!0), t = h(!1), b = h(!1);
|
|
956
|
-
h(!1), h(!1);
|
|
957
|
-
const a = E(), d = ue(), y = h(""), v = h(""), o = h(""), x = h(""), _ = localStorage.getItem("accessToken");
|
|
958
|
-
let g = "";
|
|
959
|
-
const c = h("");
|
|
960
|
-
let m = "", u = "";
|
|
961
|
-
const f = h(), A = h(!1), k = new URL(window.location.href), z = k.searchParams.get("skillId") || k.searchParams.get("assessmentId");
|
|
962
|
-
v.value = k.searchParams.get("mode") ?? "", a.simulationSkill = z ?? "";
|
|
963
|
-
const ee = ["703331197", "703380812", "703331909", "703363051", "703319578"];
|
|
964
|
-
ce(async () => {
|
|
965
|
-
s.value = !0, await te(), await ae();
|
|
966
|
-
});
|
|
967
|
-
const te = async () => {
|
|
968
|
-
var C, P, R, T, j, D, q;
|
|
969
|
-
try {
|
|
970
|
-
const N = await pe(
|
|
971
|
-
`/getLearnerData?forSimulation=true&skillForSimulation=${a.simulationSkill}`
|
|
972
|
-
);
|
|
973
|
-
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");
|
|
974
|
-
} catch (N) {
|
|
975
|
-
if (console.error(N), s.value = !1, $.isAxiosError(N) && ((C = N.response) != null && C.status) || N && typeof N == "object" && "response" in N && N.response && typeof N.response == "object" && "status" in N.response && N.response.status) {
|
|
976
|
-
const S = N;
|
|
977
|
-
if (console.log("Error found!"), console.error((P = S.response) == null ? void 0 : P.data), ((R = S.response) == null ? void 0 : R.status) === 424 || ((T = S.response) == null ? void 0 : T.status) === 425 || ((j = S.response) == null ? void 0 : j.status) === 400) {
|
|
978
|
-
x.value = (D = S.response) == null ? void 0 : D.status, console.log("errorCode value", x.value), b.value = !0;
|
|
979
|
-
return;
|
|
980
|
-
}
|
|
981
|
-
d.setError(((q = S.response) == null ? void 0 : q.data).message);
|
|
982
|
-
} else
|
|
983
|
-
d.setError("There was an issue, please contact helpmate");
|
|
984
|
-
}
|
|
985
|
-
}, se = async () => {
|
|
986
|
-
var C, P, R, T, j, D, q, N, S, J, ye, we, _e, Ae, ke, Se, Ne, Ce, Le, Pe, Te, Fe, Me, ze, Re, Ie, De, He, je, qe, Ee, Be, $e, Ve, Ge, Qe, Oe, We, Xe, Je, Ue, Ke, Ze, Ye, et, tt, st, at;
|
|
987
|
-
console.log("Start getAssessmentDetails");
|
|
988
|
-
try {
|
|
989
|
-
O === "prod" ? g = `https://api-v2.genpact.com/api/my-profile/assessment-master/getAssessmentDetailsById?id=${a.simulationSkill}` : g = `https://api-v2-dev.genpact.com/api/my-profile/assessment-master/getAssessmentDetailsById?id=${a.simulationSkill}`;
|
|
990
|
-
const n = await pe(g);
|
|
991
|
-
y.value = (P = (C = n == null ? void 0 : n.data) == null ? void 0 : C.data) == null ? void 0 : P.name, a.skillNameForSimulation = y.value, a.generatedPrompt = (T = (R = n == null ? void 0 : n.data) == null ? void 0 : R.data) == null ? void 0 : T.generatedPrompt, a.assessmentType = (D = (j = n == null ? void 0 : n.data) == null ? void 0 : j.data) == null ? void 0 : D.assessmentType, o.value = (N = (q = n == null ? void 0 : n.data) == null ? void 0 : q.data) == null ? void 0 : N.status, A.value = (J = (S = n == null ? void 0 : n.data) == null ? void 0 : S.data) == null ? void 0 : J.editMode, a.empSeniority = (we = (ye = n == null ? void 0 : n.data) == null ? void 0 : ye.data) == null ? void 0 : we.empSeniority, a.functionRole = (Ae = (_e = n == null ? void 0 : n.data) == null ? void 0 : _e.data) == null ? void 0 : Ae.functionRole, m = (Se = (ke = n == null ? void 0 : n.data) == null ? void 0 : ke.data) == null ? void 0 : Se.accessBand, u = (Ce = (Ne = n == null ? void 0 : n.data) == null ? void 0 : Ne.data) == null ? void 0 : Ce.accessOhrList;
|
|
992
|
-
const G = (Pe = (Le = n == null ? void 0 : n.data) == null ? void 0 : Le.data) == null ? void 0 : Pe.createdBy;
|
|
993
|
-
if (a.mcqType = (Fe = (Te = n == null ? void 0 : n.data) == null ? void 0 : Te.data) == null ? void 0 : Fe.mcqTypes, a.storeFinalFeedback = (ze = (Me = n == null ? void 0 : n.data) == null ? void 0 : Me.data) == null ? void 0 : ze.storeFinalFeedback, a.storeFinalScore = (Ie = (Re = n == null ? void 0 : n.data) == null ? void 0 : Re.data) == null ? void 0 : Ie.storeFinalScore, o.value === "inactive")
|
|
994
|
-
t.value = !0;
|
|
995
|
-
else if (o.value === "draft")
|
|
996
|
-
v.value !== nt.DRAFT && (t.value = !0);
|
|
997
|
-
else if (o.value === "active" && A.value && v.value === nt.DRAFT) {
|
|
998
|
-
O === "prod" ? g = `https://api-v2.genpact.com/api/my-profile/assessment-master/getDraftAssessmentDetailsById?assessmentId=${a.simulationSkill}` : g = `https://api-v2-dev.genpact.com/api/my-profile/assessment-master/getDraftAssessmentDetailsById?assessmentId=${a.simulationSkill}`;
|
|
999
|
-
const w = await pe(g);
|
|
1000
|
-
a.generatedPrompt = (He = (De = w == null ? void 0 : w.data) == null ? void 0 : De.data) == null ? void 0 : He.generatedPrompt, a.assessmentType = (qe = (je = w == null ? void 0 : w.data) == null ? void 0 : je.data) == null ? void 0 : qe.assessmentType, a.empSeniority = (Be = (Ee = w == null ? void 0 : w.data) == null ? void 0 : Ee.data) == null ? void 0 : Be.empSeniority, a.functionRole = (Ve = ($e = w == null ? void 0 : w.data) == null ? void 0 : $e.data) == null ? void 0 : Ve.functionRole, a.storeFinalFeedback = (Qe = (Ge = w == null ? void 0 : w.data) == null ? void 0 : Ge.data) == null ? void 0 : Qe.storeFinalFeedback, a.storeFinalScore = (We = (Oe = w == null ? void 0 : w.data) == null ? void 0 : Oe.data) == null ? void 0 : We.storeFinalScore, m = (Je = (Xe = w == null ? void 0 : w.data) == null ? void 0 : Xe.data) == null ? void 0 : Je.accessBand, u = (Ke = (Ue = w == null ? void 0 : w.data) == null ? void 0 : Ue.data) == null ? void 0 : Ke.accessOhrList;
|
|
1001
|
-
}
|
|
1002
|
-
const mt = a == null ? void 0 : a.band_code, ot = (Ze = m == null ? void 0 : m.split(",")) == null ? void 0 : Ze.map((w) => w.trim());
|
|
1003
|
-
if (G === (a == null ? void 0 : a.ohr) || ee.includes(a == null ? void 0 : a.ohr))
|
|
1004
|
-
console.log("User has access to this assessment.");
|
|
1005
|
-
else {
|
|
1006
|
-
if (ot.length === 0 && u.length === 0)
|
|
1007
|
-
throw console.log("Both bands and exceptionOHR are empty. Access denied."), {
|
|
1008
|
-
response: {
|
|
1009
|
-
status: 424,
|
|
1010
|
-
data: {
|
|
1011
|
-
message: "You don't have access to this assessment. Please contact to administrator"
|
|
1012
|
-
}
|
|
1013
|
-
}
|
|
1014
|
-
};
|
|
1015
|
-
if (ot.includes(mt) || u.includes(a == null ? void 0 : a.ohr))
|
|
1016
|
-
console.log("User has access to this assessment.");
|
|
1017
|
-
else
|
|
1018
|
-
throw console.log("User does not have access to this assessment."), {
|
|
1019
|
-
response: {
|
|
1020
|
-
status: 424,
|
|
1021
|
-
data: {
|
|
1022
|
-
message: "You don't have access to this assessment. Please contact to administrator"
|
|
1023
|
-
}
|
|
1024
|
-
}
|
|
1025
|
-
};
|
|
1026
|
-
}
|
|
1027
|
-
console.log("end getAssessmentDetails");
|
|
1028
|
-
} catch (n) {
|
|
1029
|
-
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) {
|
|
1030
|
-
const G = n;
|
|
1031
|
-
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) {
|
|
1032
|
-
b.value = !0;
|
|
1033
|
-
return;
|
|
1034
|
-
}
|
|
1035
|
-
d.setError(((at = G.response) == null ? void 0 : at.data).message);
|
|
1036
|
-
} else
|
|
1037
|
-
d.setError("There was an issue, please contact helpmate");
|
|
1038
|
-
}
|
|
1039
|
-
}, ae = async () => {
|
|
1040
|
-
var C, P, R, T, j, D, q, N;
|
|
1041
|
-
try {
|
|
1042
|
-
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";
|
|
1043
|
-
const S = await $({
|
|
1044
|
-
url: c.value,
|
|
1045
|
-
headers: {
|
|
1046
|
-
authorization: `Bearer ${_}`,
|
|
1047
|
-
"content-type": "application/json"
|
|
1048
|
-
},
|
|
1049
|
-
method: "get"
|
|
1050
|
-
});
|
|
1051
|
-
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;
|
|
1052
|
-
} catch (S) {
|
|
1053
|
-
if (console.error(S), s.value = !1, $.isAxiosError(S)) {
|
|
1054
|
-
const J = S;
|
|
1055
|
-
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);
|
|
1056
|
-
} else
|
|
1057
|
-
d.setError("There was an issue, please contact helpmate");
|
|
1058
|
-
}
|
|
1059
|
-
}, oe = () => {
|
|
1060
|
-
var C;
|
|
1061
|
-
(C = f.value) == null || C.sendQuestion();
|
|
1062
|
-
};
|
|
1063
|
-
return (C, P) => (i(), r("section", null, [
|
|
1064
|
-
F(ie, { "is-visible": b.value }, {
|
|
1065
|
-
default: le(() => [
|
|
1066
|
-
e("div", Ya, [
|
|
1067
|
-
x.value === 424 || x.value === "425" ? (i(), r("div", eo, ao)) : M("", !0),
|
|
1068
|
-
x.value === 400 ? (i(), r("div", oo, lo)) : M("", !0)
|
|
1069
|
-
])
|
|
1070
|
-
]),
|
|
1071
|
-
_: 1
|
|
1072
|
-
}, 8, ["is-visible"]),
|
|
1073
|
-
e("div", null, [
|
|
1074
|
-
s.value ? (i(), wt(pt, { key: 0 })) : (i(), r("main", ro, [
|
|
1075
|
-
e("div", co, [
|
|
1076
|
-
F(zt)
|
|
1077
|
-
]),
|
|
1078
|
-
uo,
|
|
1079
|
-
e("div", mo, [
|
|
1080
|
-
e("div", ho, [
|
|
1081
|
-
e("div", po, [
|
|
1082
|
-
F(Bs, { onCallQuestion: oe }),
|
|
1083
|
-
e("div", {
|
|
1084
|
-
class: W(l(a).showVoiceComponent === !0 ? "mt-[160px]" : "mt-[120px]")
|
|
1085
|
-
}, null, 2)
|
|
1086
|
-
]),
|
|
1087
|
-
l(a).assessmentQuestion ? (i(), r("div", fo, [
|
|
1088
|
-
F(za, {
|
|
1089
|
-
ref_key: "newQuestionRef",
|
|
1090
|
-
ref: f
|
|
1091
|
-
}, null, 512)
|
|
1092
|
-
])) : (i(), r("div", go, [
|
|
1093
|
-
F(Za)
|
|
1094
|
-
]))
|
|
1095
|
-
])
|
|
1096
|
-
])
|
|
1097
|
-
]))
|
|
1098
|
-
])
|
|
1099
|
-
]));
|
|
1100
|
-
}
|
|
1101
|
-
});
|
|
1102
|
-
const Co = /* @__PURE__ */ X(vo, [["__scopeId", "data-v-8bb74be6"]]);
|
|
1103
|
-
export {
|
|
1104
|
-
Co as default
|
|
1105
|
-
};
|