@genpact/genome.mfe.mgtwin-app 1.1.335-alpha → 1.1.337-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-77879961.mjs → AssessmentAMA-0fdfb05b.mjs} +4 -4
- package/dist/{AssessmentSimulation-8c7f6d37.mjs → AssessmentSimulation-4e3f1909.mjs} +415 -409
- package/dist/{EditSkillAdminData-a60df47f.mjs → EditSkillAdminData-6b64163b.mjs} +2 -2
- package/dist/{EditSkillData-7cd63c04.mjs → EditSkillData-012bf6a7.mjs} +2 -2
- package/dist/{HomeView-4b9a9899.mjs → HomeView-59916f42.mjs} +5 -5
- package/dist/{Loading-67bec750.mjs → Loading-e83d85ae.mjs} +1 -1
- package/dist/{LoadingSimulation-cf50d262.mjs → LoadingSimulation-ee05a63b.mjs} +1 -1
- package/dist/{Modal-58db3acb.mjs → Modal-f6946d41.mjs} +1 -1
- package/dist/{PaperAirplaneIcon-38b9f316.mjs → PaperAirplaneIcon-fe288191.mjs} +1 -1
- package/dist/{PromptTesting-5dbd9814.mjs → PromptTesting-ff25796e.mjs} +3 -3
- package/dist/{SkillAutomation-bda8c9c7.mjs → SkillAutomation-dc5fbb94.mjs} +3 -3
- package/dist/{SkillData-bd44a6be.mjs → SkillData-ba1ef675.mjs} +3 -3
- package/dist/{Testcase-ac672c60.mjs → Testcase-099ced39.mjs} +3 -3
- package/dist/{UnderMaintenance-1c77f1ec.mjs → UnderMaintenance-2dc61ef6.mjs} +1 -1
- package/dist/{VoiceTestcase-0887635a.mjs → VoiceTestcase-0c17fb30.mjs} +3 -3
- package/dist/{XMarkIcon-933bd730.mjs → XMarkIcon-88288de8.mjs} +1 -1
- package/dist/{api-6f243fe1.mjs → api-c2724495.mjs} +1 -1
- package/dist/{main-b8626228.mjs → main-d87f80d2.mjs} +930 -930
- 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-15a48bfb.mjs → voiceServices-da2e2440.mjs} +2 -2
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { _ as ht, a as dt, L as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { d as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { p as
|
|
6
|
-
import { i as
|
|
7
|
-
import { r as St } from "./XMarkIcon-
|
|
1
|
+
import { _ as ht, a as dt, L as pt } from "./LoadingSimulation-ee05a63b.mjs";
|
|
2
|
+
import { _ as ft, a as pe, Q as ie, M as nt } from "./Modal-f6946d41.mjs";
|
|
3
|
+
import { d as R, r as m, H as O, o as i, c as r, a as e, u as H, y as fe, h as T, s as ge, t as V, b as l, f as z, i as P, I as le, F as ve, e as be, w as xe, J as gt, p as K, g as Z, G as re, C as de, z as vt, K as bt, k as ce, n as W, q as $, m as ct, A as xt, L as yt, l as wt } from "./main-d87f80d2.mjs";
|
|
4
|
+
import { _ as X } from "./_plugin-vue_export-helper-dad06003.mjs";
|
|
5
|
+
import { p as J, g as me } from "./api-c2724495.mjs";
|
|
6
|
+
import { i as j, s as _t, a as At, b as it, c as he, r as G, d as ne, e as kt, p as lt, f as rt } from "./voiceServices-da2e2440.mjs";
|
|
7
|
+
import { r as St } from "./XMarkIcon-88288de8.mjs";
|
|
8
8
|
import "./loadernew-ac153a51.mjs";
|
|
9
9
|
import "./_commonjsHelpers-92157f1b.mjs";
|
|
10
|
-
const
|
|
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
12
|
src: ht,
|
|
13
13
|
alt: "Genome Logo"
|
|
@@ -15,20 +15,20 @@ const Ct = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#0
|
|
|
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
20
|
}, null, -1), zt = [
|
|
21
21
|
Ft
|
|
22
|
-
],
|
|
22
|
+
], Mt = /* @__PURE__ */ R({
|
|
23
23
|
__name: "headerSimulation",
|
|
24
|
-
setup(
|
|
24
|
+
setup(f) {
|
|
25
25
|
const s = m(""), t = m("");
|
|
26
|
-
return
|
|
26
|
+
return O === "prod" ? s.value = "https://genome.genpact.com" : s.value = "https://genome-dev.genpact.com", O === "prod" ? t.value = "https://genome.genpact.com/#aiguru" : t.value = "https://genome-dev.genpact.com/#aiguru", (b, a) => (i(), r("nav", Nt, [
|
|
27
27
|
e("a", {
|
|
28
28
|
class: "px-2 md:px-0 lg:px-0",
|
|
29
29
|
href: s.value,
|
|
30
30
|
target: "_blank"
|
|
31
|
-
}, Pt, 8,
|
|
31
|
+
}, Pt, 8, Ct),
|
|
32
32
|
e("a", {
|
|
33
33
|
class: "px-2 md:px-0 lg:px-0",
|
|
34
34
|
href: t.value,
|
|
@@ -36,7 +36,7 @@ const Ct = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#0
|
|
|
36
36
|
}, zt, 8, Tt)
|
|
37
37
|
]));
|
|
38
38
|
}
|
|
39
|
-
}),
|
|
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" }, Dt = /* @__PURE__ */ e("div", { class: "text-lg md:text-xl font-[700]" }, "Please Note Before You Begin", -1), jt = /* @__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
41
|
/* @__PURE__ */ P(" Choose a "),
|
|
42
42
|
/* @__PURE__ */ e("span", { class: "font-[600]" }, "quiet space"),
|
|
@@ -75,29 +75,29 @@ const Ct = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#0
|
|
|
75
75
|
/* @__PURE__ */ e("span", { class: "font-[600]" }, "10 minutes "),
|
|
76
76
|
/* @__PURE__ */ P(", so plan accordingly. ")
|
|
77
77
|
])
|
|
78
|
-
], -1),
|
|
78
|
+
], -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" }, It = /* @__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
|
-
/* @__PURE__ */ e("li", null, " Please ensure it is concluded within 30 minutes, as sessions exceeding this duration will automatically restart from the beginning ")
|
|
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
81
|
], -1), Ht = { class: "flex items-end justify-start" }, Bt = { class: "fontFormattingAMA w-full bg-gray-100 rounded-lg" }, $t = { class: "w-full rounded-md px-3 py-2 text-lg md:text-xl font-bold text-black" }, Vt = { class: "w-full px-3 py-2 text-sm text-black md:text-base font-[550]" }, Qt = {
|
|
82
82
|
key: 0,
|
|
83
83
|
class: "fontFormattingAMA"
|
|
84
84
|
}, Gt = /* @__PURE__ */ e("br", null, null, -1), Ot = ` You're about to step into a realistic, voice-based client conversation powered by AI.
|
|
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.`, Xt = /* @__PURE__ */
|
|
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.`, Wt = "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.", Xt = /* @__PURE__ */ R({
|
|
86
86
|
__name: "greetingsSimulation",
|
|
87
87
|
emits: ["callQuestion"],
|
|
88
|
-
setup(
|
|
89
|
-
const t =
|
|
90
|
-
t.simulationSkill === "7bd03cb6-79ad-4e2a-8a8b-88dc16147369"
|
|
91
|
-
},
|
|
92
|
-
return (
|
|
93
|
-
T(
|
|
88
|
+
setup(f, { emit: s }) {
|
|
89
|
+
const t = H(), b = m(!1), a = m(!1), c = () => {
|
|
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
|
+
}, y = `Hi, get ready to test your ${t.skillNameForSimulation || "Unknown"} knowledge! Here’s what to expect:`, v = ` Hi ${t.learnerName || "Expert"}, and welcome!`, o = ` Hi ${t.learnerName || "Expert"}, We'd like to see how you're progressing in Genpact. Are you ready for a conversation?`, x = ` Hi, ${t.learnerName || "Expert"}. Get ready to test your ${t.skillNameForSimulation || "Unknown"} knowledge! Here’s what to expect:`, A = fe(() => ["32b7d6d8-f7a8-40a0-ab84-8784f25897ef"].includes(t.simulationSkill) ? y : ["7bd03cb6-79ad-4e2a-8a8b-88dc16147369"].includes(t.simulationSkill) ? v : ["25f8e44f-b83e-42d6-a168-b0e1fb83b26a"].includes(t.simulationSkill) ? o : x), g = `Hi, get ready to test your ${t.skillNameForSimulation || "Unknown"} knowledge! Here’s what to expect:`, d = ` 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.`, h = fe(() => ["32b7d6d8-f7a8-40a0-ab84-8784f25897ef"].includes(t.simulationSkill) ? g : ["7bd03cb6-79ad-4e2a-8a8b-88dc16147369"].includes(t.simulationSkill) ? Ot : ["25f8e44f-b83e-42d6-a168-b0e1fb83b26a"].includes(t.simulationSkill) ? Wt : d);
|
|
92
|
+
return (u, p) => (i(), r("section", null, [
|
|
93
|
+
T(pe, { "is-visible": b.value }, {
|
|
94
94
|
default: ge(() => [
|
|
95
|
-
e("div",
|
|
96
|
-
jt,
|
|
95
|
+
e("div", Rt, [
|
|
97
96
|
Dt,
|
|
97
|
+
jt,
|
|
98
98
|
e("button", {
|
|
99
|
-
onClick:
|
|
100
|
-
|
|
99
|
+
onClick: p[0] || (p[0] = (w) => {
|
|
100
|
+
b.value = !1, s("callQuestion");
|
|
101
101
|
}),
|
|
102
102
|
type: "button",
|
|
103
103
|
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"
|
|
@@ -106,13 +106,13 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
106
106
|
]),
|
|
107
107
|
_: 1
|
|
108
108
|
}, 8, ["is-visible"]),
|
|
109
|
-
T(
|
|
109
|
+
T(pe, { "is-visible": a.value }, {
|
|
110
110
|
default: ge(() => [
|
|
111
|
-
e("div",
|
|
112
|
-
Et,
|
|
111
|
+
e("div", Et, [
|
|
113
112
|
It,
|
|
113
|
+
qt,
|
|
114
114
|
e("button", {
|
|
115
|
-
onClick:
|
|
115
|
+
onClick: p[1] || (p[1] = (w) => {
|
|
116
116
|
a.value = !1, s("callQuestion");
|
|
117
117
|
}),
|
|
118
118
|
type: "button",
|
|
@@ -124,11 +124,11 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
124
124
|
}, 8, ["is-visible"]),
|
|
125
125
|
e("div", Ht, [
|
|
126
126
|
e("div", Bt, [
|
|
127
|
-
e("div", $t,
|
|
128
|
-
e("div", Vt,
|
|
127
|
+
e("div", $t, V(A.value), 1),
|
|
128
|
+
e("div", Vt, V(h.value), 1)
|
|
129
129
|
])
|
|
130
130
|
]),
|
|
131
|
-
|
|
131
|
+
l(t).beginFlag ? (i(), r("span", Qt, [
|
|
132
132
|
e("button", {
|
|
133
133
|
type: "button",
|
|
134
134
|
id: "button",
|
|
@@ -139,34 +139,34 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
139
139
|
Gt
|
|
140
140
|
]));
|
|
141
141
|
}
|
|
142
|
-
}),
|
|
142
|
+
}), Ut = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAB9AH0DASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOk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8Tvp9/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 = (f) => (K("data-v-cc5db4a2"), f = f(), Z(), f), Jt = { class: "fontFormattingAMA flex items-end justify-start py-2" }, Kt = { class: "line-break w-full bg-gray-100 p-3 text-sm text-black md:text-[15px] rounded-lg" }, Zt = ["innerHTML"], Yt = ["innerHTML"], es = {
|
|
143
143
|
key: 0,
|
|
144
144
|
class: "py-4"
|
|
145
|
-
},
|
|
145
|
+
}, ts = { class: "fontFormattingAMA px-2 py-1.5 md:px-6" }, ss = ["value", "disabled", "name"], as = {
|
|
146
146
|
for: "item",
|
|
147
147
|
name: "options-Array",
|
|
148
148
|
id: "index"
|
|
149
|
-
},
|
|
149
|
+
}, os = {
|
|
150
150
|
key: 1,
|
|
151
151
|
class: "py-4"
|
|
152
|
-
},
|
|
152
|
+
}, ns = { class: "fontFormattingAMA px-2 py-1.5 md:px-6" }, is = ["onClick", "disabled", "name"], ls = {
|
|
153
153
|
for: "item",
|
|
154
154
|
name: "options-Array",
|
|
155
155
|
id: "index"
|
|
156
|
-
},
|
|
156
|
+
}, rs = {
|
|
157
157
|
key: 2,
|
|
158
158
|
class: "flex flex-col justify-start py-10"
|
|
159
|
-
},
|
|
159
|
+
}, ds = /* @__PURE__ */ ut(() => /* @__PURE__ */ e("div", { class: "mb-4" }, " Add Agentic AI to your Digital Skills on Genome.ai and start mastering AI today! ", -1)), cs = /* @__PURE__ */ ut(() => /* @__PURE__ */ e("img", {
|
|
160
160
|
class: "h-20 w-20",
|
|
161
|
-
src:
|
|
161
|
+
src: Ut,
|
|
162
162
|
alt: "qr_code"
|
|
163
|
-
}, null, -1)),
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
],
|
|
163
|
+
}, null, -1)), us = [
|
|
164
|
+
ds,
|
|
165
|
+
cs
|
|
166
|
+
], ms = {
|
|
167
167
|
key: 3,
|
|
168
168
|
class: "flex flex-col justify-start items-start bg-gray-100 rounded-lg"
|
|
169
|
-
},
|
|
169
|
+
}, hs = { class: "flex justify-start items-center md:gap-[40px] gap-[30px]" }, ps = /* @__PURE__ */ R({
|
|
170
170
|
__name: "responseSimulation",
|
|
171
171
|
props: {
|
|
172
172
|
question: {
|
|
@@ -196,16 +196,16 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
196
196
|
}
|
|
197
197
|
},
|
|
198
198
|
emits: ["char-typed"],
|
|
199
|
-
setup(
|
|
200
|
-
const t =
|
|
201
|
-
let
|
|
202
|
-
const
|
|
203
|
-
|
|
204
|
-
for (let d = 0; d <
|
|
205
|
-
|
|
199
|
+
setup(f, { emit: s }) {
|
|
200
|
+
const t = f, b = m([]), a = m(!1), c = H(), y = m("");
|
|
201
|
+
let v = [], o = "";
|
|
202
|
+
const x = async () => {
|
|
203
|
+
v = o.split(""), y.value = "";
|
|
204
|
+
for (let d = 0; d < v.length; d++)
|
|
205
|
+
y.value += v[d], t.answer.includes("Feedback and Assessment") ? (console.log("Feedback and Assessment found"), o.length - 5 > v.length && d % 30 && s("char-typed")) : d % 30 && s("char-typed"), await new Promise((h) => setTimeout(h, 60));
|
|
206
206
|
}, A = () => {
|
|
207
207
|
c.isRestart = !0, c.searchBoxdisable = !1, c.showVoiceComponent = !0, c.showSelectTypeConvesation = !1, c.showModelToggle = !0, c.isSpeechToggle = !1;
|
|
208
|
-
},
|
|
208
|
+
}, g = fe(() => {
|
|
209
209
|
const d = t.answer.replace(/[*#]/g, "").replace(
|
|
210
210
|
/Assessment Rating & Feedback/g,
|
|
211
211
|
'<div style="font-size: 26px; font-weight: bold; text-decoration: underline;">Rating & Feedback</div>'
|
|
@@ -238,12 +238,12 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
238
238
|
'<div style="font-size: 16px; font-weight: bold;">Model Solution</div>'
|
|
239
239
|
);
|
|
240
240
|
(d.includes("Thank you for your participation!") || d.includes("Thank you for your participation")) && (c.searchBoxdisable = !1, a.value = !0), (d.includes("BEGIN ROLE PLAY") || d.includes("BEGIN ROLE PLAY.")) && (c.showSelectTypeConvesation = !0);
|
|
241
|
-
const
|
|
241
|
+
const h = /\[([^\]]+)\]\((https?:\/\/[^\s]+)\)/g;
|
|
242
242
|
if (d.includes("AI Guru")) {
|
|
243
243
|
if (d.includes("AI Guru"))
|
|
244
|
-
return console.log("aig found"), d.replace(
|
|
244
|
+
return console.log("aig found"), d.replace(h, (u, p, w) => `<a href="https://genome.genpact.com/#aiguru" target="_blank" style="color: blue; text-decoration: underline; cursor:pointer;">${p}</a>`);
|
|
245
245
|
} else
|
|
246
|
-
return d.replace(
|
|
246
|
+
return d.replace(h, (u, p, w) => `<a href="${w}" target="_blank" rel="noopener noreferrer" style="color: blue; text-decoration: underline;">${p}</a>`);
|
|
247
247
|
});
|
|
248
248
|
return le(
|
|
249
249
|
() => t.answer,
|
|
@@ -276,68 +276,68 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
276
276
|
/Model Solution/g,
|
|
277
277
|
'<div style="font-size: 16px; font-weight: bold;">Model Solution</div>'
|
|
278
278
|
);
|
|
279
|
-
const
|
|
280
|
-
d.includes("AI Guru") ? d = d.replace(
|
|
279
|
+
const h = /\[([^\]]+)\]\((https?:\/\/[^\s]+)\)/g;
|
|
280
|
+
d.includes("AI Guru") ? d = d.replace(h, (u, p, w) => `<a href="https://genome.genpact.com/#aiguru" target="_blank" style="color: blue; text-decoration: underline; cursor:pointer;">${p}</a>`) : d = d.replace(h, (u, p, w) => `<a href="${w}" target="_blank" rel="noopener noreferrer" style="color: blue; text-decoration: underline;">${p}</a>`), d.includes("Feedback and Assessment") && d.includes("END ROLE PLAY") ? (o = d.split("END ROLE PLAY")[0], console.log("END ROLE PLAY")) : o = d, c.showVoiceComponent && x();
|
|
281
281
|
},
|
|
282
282
|
{ immediate: !0 }
|
|
283
|
-
), le(
|
|
283
|
+
), le(b, (d) => {
|
|
284
284
|
c.question = (d ?? []).join(", ");
|
|
285
|
-
}), (d,
|
|
286
|
-
e("div",
|
|
287
|
-
|
|
285
|
+
}), (d, h) => (i(), r("div", Jt, [
|
|
286
|
+
e("div", Kt, [
|
|
287
|
+
l(c).simulationSkill === "7bd03cb6-79ad-4e2a-8a8b-88dc16147369" && l(c).showVoiceComponent === !0 && l(c).conversations.length - 1 === t.ansId && !t.answer.includes("BEGIN ROLE PLAY") ? (i(), r("span", {
|
|
288
288
|
key: 0,
|
|
289
289
|
class: "fontFormattingAMA answer-link",
|
|
290
|
-
innerHTML:
|
|
291
|
-
}, null, 8,
|
|
290
|
+
innerHTML: y.value
|
|
291
|
+
}, null, 8, Zt)) : (i(), r("span", {
|
|
292
292
|
key: 1,
|
|
293
293
|
class: "fontFormattingAMA answer-link",
|
|
294
|
-
innerHTML:
|
|
295
|
-
}, null, 8,
|
|
294
|
+
innerHTML: g.value
|
|
295
|
+
}, null, 8, Yt)),
|
|
296
296
|
e("div", null, [
|
|
297
|
-
|
|
298
|
-
(
|
|
299
|
-
key:
|
|
297
|
+
f.optionsArray.length && l(c).mcqType === "multi_choice" ? (i(), r("div", es, [
|
|
298
|
+
(i(!0), r(ve, null, be(f.optionsArray, (u, p) => (i(), r("div", {
|
|
299
|
+
key: p,
|
|
300
300
|
class: "italic"
|
|
301
301
|
}, [
|
|
302
|
-
e("div",
|
|
302
|
+
e("div", ts, [
|
|
303
303
|
xe(e("input", {
|
|
304
304
|
class: "mr-4 cursor-pointer",
|
|
305
305
|
type: "checkbox",
|
|
306
|
-
value:
|
|
307
|
-
"onUpdate:modelValue":
|
|
308
|
-
disabled:
|
|
309
|
-
name:
|
|
310
|
-
}, null, 8,
|
|
311
|
-
[
|
|
306
|
+
value: u,
|
|
307
|
+
"onUpdate:modelValue": h[0] || (h[0] = (w) => b.value = w),
|
|
308
|
+
disabled: l(c).conversations.length - 1 !== t.ansId,
|
|
309
|
+
name: g.value
|
|
310
|
+
}, null, 8, ss), [
|
|
311
|
+
[gt, b.value]
|
|
312
312
|
]),
|
|
313
|
-
e("label",
|
|
313
|
+
e("label", as, V(u), 1)
|
|
314
314
|
])
|
|
315
315
|
]))), 128))
|
|
316
|
-
])) :
|
|
317
|
-
(
|
|
318
|
-
key:
|
|
316
|
+
])) : f.optionsArray.length ? (i(), r("div", os, [
|
|
317
|
+
(i(!0), r(ve, null, be(f.optionsArray, (u, p) => (i(), r("div", {
|
|
318
|
+
key: p,
|
|
319
319
|
class: "italic"
|
|
320
320
|
}, [
|
|
321
|
-
e("div",
|
|
321
|
+
e("div", ns, [
|
|
322
322
|
e("input", {
|
|
323
323
|
class: "mr-4 cursor-pointer",
|
|
324
324
|
type: "radio",
|
|
325
|
-
onClick: (
|
|
326
|
-
disabled:
|
|
327
|
-
name:
|
|
328
|
-
}, null, 8,
|
|
329
|
-
e("label",
|
|
325
|
+
onClick: (w) => l(c).question = String(f.optionsArray[p]),
|
|
326
|
+
disabled: l(c).conversations.length - 1 !== t.ansId,
|
|
327
|
+
name: g.value
|
|
328
|
+
}, null, 8, is),
|
|
329
|
+
e("label", ls, V(u), 1)
|
|
330
330
|
])
|
|
331
331
|
]))), 128))
|
|
332
332
|
])) : z("", !0)
|
|
333
333
|
]),
|
|
334
|
-
a.value &&
|
|
335
|
-
|
|
336
|
-
e("div",
|
|
334
|
+
a.value && l(c).simulationSkill === "32b7d6d8-f7a8-40a0-ab84-8784f25897ef" ? (i(), r("div", rs, us)) : z("", !0),
|
|
335
|
+
l(c).isSpeechToggle && l(c).showSelectTypeConvesation && l(c).simulationSkill === "7bd03cb6-79ad-4e2a-8a8b-88dc16147369" && l(c).conversations.length - 1 === t.ansId ? (i(), r("div", ms, [
|
|
336
|
+
e("div", hs, [
|
|
337
337
|
e("button", {
|
|
338
338
|
type: "button",
|
|
339
339
|
id: "button",
|
|
340
|
-
onClick:
|
|
340
|
+
onClick: h[1] || (h[1] = (u) => A()),
|
|
341
341
|
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
342
|
}, " Start Conversation ")
|
|
343
343
|
])
|
|
@@ -346,7 +346,7 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
346
346
|
]));
|
|
347
347
|
}
|
|
348
348
|
});
|
|
349
|
-
const
|
|
349
|
+
const fs = /* @__PURE__ */ X(ps, [["__scopeId", "data-v-cc5db4a2"]]), gs = { class: "flex justify-end items-end py-3" }, vs = { class: "max-w-[80%]" }, bs = ["innerHTML"], xs = /* @__PURE__ */ R({
|
|
350
350
|
__name: "learnerSimulation",
|
|
351
351
|
props: {
|
|
352
352
|
question: {
|
|
@@ -358,20 +358,23 @@ const hs = /* @__PURE__ */ U(ps, [["__scopeId", "data-v-cc5db4a2"]]), fs = { cla
|
|
|
358
358
|
default: !0
|
|
359
359
|
}
|
|
360
360
|
},
|
|
361
|
-
setup(
|
|
362
|
-
return (s, t) => (
|
|
363
|
-
e("div",
|
|
364
|
-
e("div",
|
|
361
|
+
setup(f) {
|
|
362
|
+
return (s, t) => (i(), r("div", gs, [
|
|
363
|
+
e("div", vs, [
|
|
364
|
+
e("div", {
|
|
365
|
+
class: "w-fit fontFormattingAMA text-[0.8125rem] md:text-[0.9375rem] text-white bg-genpact-blue-box leading-6 p-3",
|
|
366
|
+
innerHTML: f.question.replace(/\n/g, "<br>")
|
|
367
|
+
}, null, 8, bs)
|
|
365
368
|
])
|
|
366
369
|
]));
|
|
367
370
|
}
|
|
368
|
-
}),
|
|
371
|
+
}), ys = (f) => (K("data-v-347ad6de"), f = f(), Z(), f), ws = { class: "flex w-full flex-col items-start justify-start bg-white" }, _s = { class: "bot-typing-animation gap-1" }, As = { class: "block w-full text-lg italic text-gray-800" }, ks = /* @__PURE__ */ ys(() => /* @__PURE__ */ e("span", { class: "dot-animation" }, [
|
|
369
372
|
/* @__PURE__ */ e("span", null, "."),
|
|
370
373
|
/* @__PURE__ */ e("span", null, "."),
|
|
371
374
|
/* @__PURE__ */ e("span", null, ".")
|
|
372
|
-
], -1)),
|
|
375
|
+
], -1)), Ss = /* @__PURE__ */ re('<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), Ns = /* @__PURE__ */ R({
|
|
373
376
|
__name: "LoadingResponse",
|
|
374
|
-
setup(
|
|
377
|
+
setup(f) {
|
|
375
378
|
const s = m("Generating response"), t = m([
|
|
376
379
|
"This may take a few seconds",
|
|
377
380
|
"Fetching the best response for you",
|
|
@@ -382,134 +385,134 @@ const hs = /* @__PURE__ */ U(ps, [["__scopeId", "data-v-cc5db4a2"]]), fs = { cla
|
|
|
382
385
|
"Compiling a response for you"
|
|
383
386
|
]);
|
|
384
387
|
return setTimeout(() => {
|
|
385
|
-
const
|
|
386
|
-
s.value = t.value[
|
|
387
|
-
}, 15e3), (
|
|
388
|
-
e("div",
|
|
389
|
-
e("div",
|
|
390
|
-
|
|
388
|
+
const b = Math.floor(Math.random() * t.value.length);
|
|
389
|
+
s.value = t.value[b];
|
|
390
|
+
}, 15e3), (b, a) => (i(), r("div", ws, [
|
|
391
|
+
e("div", _s, [
|
|
392
|
+
e("div", As, V(s.value), 1),
|
|
393
|
+
ks
|
|
391
394
|
]),
|
|
392
|
-
|
|
395
|
+
Ss
|
|
393
396
|
]));
|
|
394
397
|
}
|
|
395
398
|
});
|
|
396
|
-
const Cs = /* @__PURE__ */
|
|
399
|
+
const Cs = /* @__PURE__ */ X(Ns, [["__scopeId", "data-v-347ad6de"]]), Ls = { class: "flex mx-auto justify-end items-end py-3" }, Ps = { class: "max-w-[80%]" }, Ts = {
|
|
397
400
|
key: 0,
|
|
398
401
|
class: "fontFormattingAMA w-fit text-[0.8125rem] md:text-[0.9375rem] text-white bg-genpact-blue-box leading-6 p-3 rounded-lg"
|
|
399
|
-
},
|
|
402
|
+
}, Fs = /* @__PURE__ */ R({
|
|
400
403
|
__name: "QuestionStreaming",
|
|
401
|
-
setup(
|
|
402
|
-
const s =
|
|
403
|
-
return (t,
|
|
404
|
-
e("div",
|
|
405
|
-
|
|
404
|
+
setup(f) {
|
|
405
|
+
const s = H();
|
|
406
|
+
return (t, b) => (i(), r("div", Ls, [
|
|
407
|
+
e("div", Ps, [
|
|
408
|
+
l(s).userSpeechText.toLowerCase().includes("play") && l(s).userSpeechText.length < 10 ? z("", !0) : (i(), r("div", Ts, V(l(s).userSpeechText), 1))
|
|
406
409
|
])
|
|
407
410
|
]));
|
|
408
411
|
}
|
|
409
|
-
}),
|
|
412
|
+
}), zs = { key: 0 }, Ms = { key: 1 }, Rs = {
|
|
410
413
|
key: 0,
|
|
411
414
|
class: "flex"
|
|
412
|
-
},
|
|
415
|
+
}, Ds = {
|
|
413
416
|
key: 1,
|
|
414
417
|
name: "askQuestion"
|
|
415
|
-
}, js = /* @__PURE__ */
|
|
418
|
+
}, js = /* @__PURE__ */ R({
|
|
416
419
|
__name: "conversationSimulation",
|
|
417
|
-
setup(
|
|
420
|
+
setup(f) {
|
|
418
421
|
let s = m(""), t = m("");
|
|
419
422
|
s.value = '<a style="color:#00AECF;"', t.value = '<ul style="list-style: disc !important; margin-left: 3.5rem !important; padding: 0;"';
|
|
420
|
-
const
|
|
423
|
+
const b = H(), a = m(), c = () => {
|
|
421
424
|
a.value.scrollTo(0, a.value.scrollHeight);
|
|
422
425
|
};
|
|
423
426
|
return de(() => {
|
|
424
427
|
var o;
|
|
425
|
-
const
|
|
426
|
-
|
|
427
|
-
}),
|
|
428
|
+
const y = document.getElementsByName("askQuestion"), v = Array.from(y);
|
|
429
|
+
y.length && ((o = v == null ? void 0 : v.pop()) == null || o.scrollIntoView({ behavior: "smooth", block: "center" })), window.addEventListener("custom-event", c);
|
|
430
|
+
}), vt(() => {
|
|
428
431
|
var o;
|
|
429
|
-
const
|
|
430
|
-
|
|
431
|
-
}),
|
|
432
|
+
const y = document.getElementsByName("askQuestion"), v = Array.from(y);
|
|
433
|
+
y.length && ((o = v == null ? void 0 : v.pop()) == null || o.scrollIntoView({ behavior: "smooth", block: "center" }));
|
|
434
|
+
}), bt(() => {
|
|
432
435
|
window.removeEventListener("custom-event", c);
|
|
433
|
-
}), (
|
|
436
|
+
}), (y, v) => (i(), r("div", {
|
|
434
437
|
ref_key: "nestedElement",
|
|
435
438
|
ref: a,
|
|
436
439
|
class: "smooth-scroll overflow-auto md:px-6 px-2"
|
|
437
440
|
}, [
|
|
438
441
|
T(Xt, {
|
|
439
|
-
onCallQuestion:
|
|
442
|
+
onCallQuestion: v[0] || (v[0] = (o) => y.$emit("callQuestion"))
|
|
440
443
|
}),
|
|
441
|
-
(
|
|
442
|
-
o.question ? (
|
|
443
|
-
T(
|
|
444
|
+
(i(!0), r(ve, null, be(l(b).conversations, (o, x) => (i(), r("div", { key: x }, [
|
|
445
|
+
o.question ? (i(), r("div", zs, [
|
|
446
|
+
T(xs, {
|
|
444
447
|
question: o == null ? void 0 : o.question,
|
|
445
448
|
c2question: o == null ? void 0 : o.c2question,
|
|
446
449
|
"show-feedback": o == null ? void 0 : o.showFeedback,
|
|
447
|
-
id: `qId${
|
|
450
|
+
id: `qId${x}`,
|
|
448
451
|
name: "askQuestion",
|
|
449
|
-
"que-id":
|
|
452
|
+
"que-id": x
|
|
450
453
|
}, null, 8, ["question", "c2question", "show-feedback", "id", "que-id"])
|
|
451
454
|
])) : z("", !0),
|
|
452
|
-
o.answer ? (
|
|
453
|
-
T(
|
|
455
|
+
o.answer ? (i(), r("div", Ms, [
|
|
456
|
+
T(fs, {
|
|
454
457
|
question: o == null ? void 0 : o.question,
|
|
455
458
|
c2question: o == null ? void 0 : o.c2question,
|
|
456
459
|
"show-sources": o == null ? void 0 : o.showSources,
|
|
457
460
|
questionId: o.id,
|
|
458
|
-
answer: o.answer.replaceAll("<a",
|
|
461
|
+
answer: o.answer.replaceAll("<a", l(s)).replaceAll("<ul", l(t)),
|
|
459
462
|
"show-feedback": o.showFeedback,
|
|
460
463
|
"related-ques": o == null ? void 0 : o.relatedQues,
|
|
461
464
|
"options-array": o == null ? void 0 : o.optionsArray,
|
|
462
|
-
"ans-id":
|
|
465
|
+
"ans-id": x,
|
|
463
466
|
onCharTyped: c
|
|
464
467
|
}, null, 8, ["question", "c2question", "show-sources", "questionId", "answer", "show-feedback", "related-ques", "options-array", "ans-id"])
|
|
465
468
|
])) : z("", !0)
|
|
466
469
|
]))), 128)),
|
|
467
|
-
|
|
470
|
+
l(b).dotLoader ? (i(), r("div", Rs, [
|
|
468
471
|
T(Cs)
|
|
469
472
|
])) : z("", !0),
|
|
470
|
-
|
|
471
|
-
T(
|
|
473
|
+
l(b).userspeaking ? (i(), r("div", Ds, [
|
|
474
|
+
T(Fs)
|
|
472
475
|
])) : z("", !0)
|
|
473
476
|
], 512));
|
|
474
477
|
}
|
|
475
478
|
});
|
|
476
|
-
const
|
|
479
|
+
const Es = /* @__PURE__ */ X(js, [["__scopeId", "data-v-c14e6f9c"]]), Is = { class: "flex items-center gap-4 py-2 rounded-full z-10" }, qs = {
|
|
477
480
|
key: 0,
|
|
478
481
|
class: "flex items-center"
|
|
479
|
-
},
|
|
482
|
+
}, Hs = {
|
|
480
483
|
width: "30",
|
|
481
484
|
height: "30",
|
|
482
485
|
viewBox: "0 0 36 24",
|
|
483
486
|
class: "fill-white",
|
|
484
487
|
style: { transform: "scaleX(-1)" }
|
|
485
|
-
},
|
|
486
|
-
|
|
487
|
-
],
|
|
488
|
+
}, Bs = /* @__PURE__ */ re('<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), $s = [
|
|
489
|
+
Bs
|
|
490
|
+
], Vs = {
|
|
488
491
|
key: 1,
|
|
489
492
|
class: "flex items-center"
|
|
490
|
-
},
|
|
493
|
+
}, Qs = {
|
|
491
494
|
width: "30",
|
|
492
495
|
height: "30",
|
|
493
496
|
viewBox: "0 0 36 24",
|
|
494
497
|
class: "fill-white",
|
|
495
498
|
style: { transform: "scaleX(-1)" }
|
|
496
|
-
},
|
|
497
|
-
|
|
498
|
-
],
|
|
499
|
+
}, Gs = /* @__PURE__ */ re('<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 = [
|
|
500
|
+
Gs
|
|
501
|
+
], Ws = {
|
|
499
502
|
key: 2,
|
|
500
503
|
class: "flex items-center"
|
|
501
|
-
}, Xs = /* @__PURE__ */ re('<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),
|
|
504
|
+
}, Xs = /* @__PURE__ */ re('<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), Us = [
|
|
502
505
|
Xs
|
|
503
|
-
],
|
|
506
|
+
], Js = { class: "tooltiptext text-genpact-darkest-teal" }, Ks = /* @__PURE__ */ e("svg", {
|
|
504
507
|
xmlns: "http://www.w3.org/2000/svg",
|
|
505
508
|
class: "h-[10px] w-[10px] text-gray-700",
|
|
506
509
|
fill: "currentColor",
|
|
507
510
|
viewBox: "0 0 24 24"
|
|
508
511
|
}, [
|
|
509
512
|
/* @__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" })
|
|
510
|
-
], -1),
|
|
511
|
-
|
|
512
|
-
],
|
|
513
|
+
], -1), Zs = [
|
|
514
|
+
Ks
|
|
515
|
+
], Ys = /* @__PURE__ */ e("svg", {
|
|
513
516
|
xmlns: "http://www.w3.org/2000/svg",
|
|
514
517
|
class: "h-[10px] w-[10px] text-gray-700",
|
|
515
518
|
fill: "currentColor",
|
|
@@ -524,198 +527,202 @@ const Ds = /* @__PURE__ */ U(js, [["__scopeId", "data-v-c14e6f9c"]]), qs = { cla
|
|
|
524
527
|
stroke: "currentColor",
|
|
525
528
|
"stroke-width": "2"
|
|
526
529
|
})
|
|
527
|
-
], -1),
|
|
528
|
-
|
|
529
|
-
],
|
|
530
|
+
], -1), ea = [
|
|
531
|
+
Ys
|
|
532
|
+
], ta = /* @__PURE__ */ R({
|
|
530
533
|
__name: "NewVoiceConversation",
|
|
531
|
-
setup(
|
|
532
|
-
const s =
|
|
533
|
-
a.value === !1 ? s.elevenLabs ? (console.log("mic enabled true 11labs"), a.value = !0, _t(),
|
|
534
|
-
},
|
|
535
|
-
s.elevenLabs ? (console.log("closeConversation 11 labs"), it(),
|
|
534
|
+
setup(f) {
|
|
535
|
+
const s = H(), t = ce(), b = m(""), a = m(!1), c = m("Turn on mic"), y = () => {
|
|
536
|
+
a.value === !1 ? s.elevenLabs ? (console.log("mic enabled true 11labs"), a.value = !0, _t(), j.value = "user", c.value = "Turn off mic") : (console.log("mic enabled true"), a.value = !0, rt(), At(), j.value = "user", c.value = "Turn off mic") : s.elevenLabs ? (console.log("mic enabled false"), it(), a.value = !1, c.value = "Turn on mic") : (console.log("mic enabled false"), he(), a.value = !1, c.value = "Turn on mic");
|
|
537
|
+
}, v = () => {
|
|
538
|
+
s.elevenLabs ? (console.log("closeConversation 11 labs"), it(), j.value = "none", a.value = !1) : (console.log("closeConversation"), he(), rt(), j.value = "none", a.value = !1);
|
|
536
539
|
}, o = async () => {
|
|
537
|
-
var
|
|
540
|
+
var x, A, g, d, h, u;
|
|
538
541
|
try {
|
|
539
|
-
const
|
|
540
|
-
question: G.value ||
|
|
542
|
+
const p = {
|
|
543
|
+
question: G.value || ne.value
|
|
541
544
|
};
|
|
542
|
-
s.conversations.push(
|
|
543
|
-
const
|
|
545
|
+
s.conversations.push(p), s.dotLoader = !0, s.question = "";
|
|
546
|
+
const w = {
|
|
544
547
|
past_messages: s.past_messages,
|
|
545
|
-
question: G.value ||
|
|
548
|
+
question: G.value || ne.value,
|
|
546
549
|
bandCode: "4A",
|
|
547
550
|
userGenomeFunction: "HR",
|
|
548
551
|
userGenomeRole: "Consultant",
|
|
549
552
|
skillId: "7bd03cb6-79ad-4e2a-8a8b-88dc16147369"
|
|
550
|
-
}, F = await
|
|
551
|
-
if (
|
|
553
|
+
}, F = await J("/sqlTest", w);
|
|
554
|
+
if (j.value = "bot", b.value = (A = (x = F == null ? void 0 : F.data) == null ? void 0 : x.body) == null ? void 0 : A.answer, b.value === "") {
|
|
552
555
|
console.log("in the if case calling api again");
|
|
553
|
-
const
|
|
554
|
-
s.addConversation((
|
|
556
|
+
const E = await J("/sqlTest", w);
|
|
557
|
+
s.addConversation((g = E.data) == null ? void 0 : g.body, "new");
|
|
555
558
|
} else
|
|
556
559
|
console.log("in the else case"), s.addConversation((d = F.data) == null ? void 0 : d.body, "new");
|
|
557
560
|
if (s.dotLoader = !1, s.elevenLabs)
|
|
558
|
-
await kt(
|
|
559
|
-
else if (
|
|
560
|
-
if (
|
|
561
|
-
const
|
|
562
|
-
if (
|
|
561
|
+
await kt(b.value.replace(/[*#]/g, ""));
|
|
562
|
+
else if (b.value.includes("Feedback and Assessment"))
|
|
563
|
+
if (he(), a.value = !1, b.value.includes("END ROLE PLAY")) {
|
|
564
|
+
const E = b.value.split("END ROLE PLAY")[0];
|
|
565
|
+
if (E.length < 0) {
|
|
563
566
|
s.showVoiceComponent = !1;
|
|
564
567
|
return;
|
|
565
568
|
}
|
|
566
|
-
await lt(
|
|
569
|
+
await lt(E.replace(/[*#]/g, "")), s.showVoiceComponent = !1;
|
|
567
570
|
} else
|
|
568
571
|
s.showVoiceComponent = !1;
|
|
569
572
|
else
|
|
570
|
-
await lt(
|
|
571
|
-
} catch (
|
|
572
|
-
if (console.error(
|
|
573
|
-
const
|
|
574
|
-
console.log("Error found!"), console.error((
|
|
573
|
+
await lt(b.value.replace(/[*#]/g, ""));
|
|
574
|
+
} catch (p) {
|
|
575
|
+
if (console.error(p), $.isAxiosError(p)) {
|
|
576
|
+
const w = p;
|
|
577
|
+
console.log("Error found!"), console.error((h = w.response) == null ? void 0 : h.data), t.setError(((u = w.response) == null ? void 0 : u.data).message);
|
|
575
578
|
} else
|
|
576
579
|
t.setError("There was an issue, please contact helpmate");
|
|
577
580
|
}
|
|
578
581
|
};
|
|
579
|
-
return le(G, async (
|
|
580
|
-
if (
|
|
581
|
-
if (console.log("Recognized text:",
|
|
582
|
+
return le(G, async (x) => {
|
|
583
|
+
if (x) {
|
|
584
|
+
if (console.log("Recognized text:", x), G.value.toLowerCase().includes("play") && G.value.length < 10) {
|
|
582
585
|
console.log("play command detected, ignoring input");
|
|
583
586
|
return;
|
|
584
587
|
}
|
|
585
|
-
|
|
588
|
+
j.value = "listening", s.userspeaking = !1, await o(), G.value = "";
|
|
586
589
|
}
|
|
587
|
-
}), le(
|
|
588
|
-
|
|
589
|
-
}), (
|
|
590
|
-
|
|
590
|
+
}), le(ne, async (x) => {
|
|
591
|
+
x && (console.log("Recognized text:", x), j.value = "listening", await o(), ne.value = "");
|
|
592
|
+
}), (x, A) => (i(), r("div", Is, [
|
|
593
|
+
l(j) === "bot" ? (i(), r("div", qs, [
|
|
591
594
|
e("span", null, [
|
|
592
|
-
(
|
|
595
|
+
(i(), r("svg", Hs, $s))
|
|
593
596
|
])
|
|
594
|
-
])) :
|
|
597
|
+
])) : l(j) === "user" ? (i(), r("div", Vs, [
|
|
595
598
|
e("span", null, [
|
|
596
|
-
(
|
|
599
|
+
(i(), r("svg", Qs, Os))
|
|
597
600
|
])
|
|
598
|
-
])) :
|
|
601
|
+
])) : l(j) === "listening" ? (i(), r("div", Ws, Us)) : z("", !0),
|
|
599
602
|
e("div", {
|
|
600
603
|
class: W([a.value ? "" : "animate-pulse", "tooltip"])
|
|
601
604
|
}, [
|
|
602
|
-
e("span",
|
|
603
|
-
a.value ? (
|
|
605
|
+
e("span", Js, V(c.value), 1),
|
|
606
|
+
a.value ? (i(), r("button", {
|
|
604
607
|
key: 0,
|
|
605
608
|
class: "rounded-full bg-white p-2 transition hover:bg-gray-300",
|
|
606
|
-
onClick: A[0] || (A[0] = (
|
|
607
|
-
},
|
|
609
|
+
onClick: A[0] || (A[0] = (g) => y())
|
|
610
|
+
}, Zs)) : (i(), r("button", {
|
|
608
611
|
key: 1,
|
|
609
612
|
class: "rounded-full bg-white p-2 transition hover:bg-gray-300",
|
|
610
|
-
onClick: A[1] || (A[1] = (
|
|
611
|
-
},
|
|
613
|
+
onClick: A[1] || (A[1] = (g) => y())
|
|
614
|
+
}, ea))
|
|
612
615
|
], 2),
|
|
613
616
|
e("button", {
|
|
614
617
|
class: "rounded-full bg-white p-2 hover:bg-gray-300",
|
|
615
|
-
onClick: A[2] || (A[2] = (
|
|
618
|
+
onClick: A[2] || (A[2] = (g) => v())
|
|
616
619
|
}, [
|
|
617
|
-
T(
|
|
620
|
+
T(l(St), { class: "h-[10px] w-[10px] text-gray-700" })
|
|
618
621
|
])
|
|
619
622
|
]));
|
|
620
623
|
}
|
|
621
|
-
}),
|
|
624
|
+
}), B = (f) => (K("data-v-bc339815"), f = f(), Z(), f), sa = { class: "z-3 absolute bottom-0 mt-4 w-full bg-white px-2 md:px-6" }, aa = { class: "py-2" }, oa = { class: "flex" }, na = { class: "z-1 relative w-full" }, ia = { class: "flex justify-between my-2 w-full" }, la = /* @__PURE__ */ B(() => /* @__PURE__ */ e("div", null, null, -1)), ra = {
|
|
622
625
|
key: 0,
|
|
623
626
|
class: "flex justify-center bg-genpact-darkest-blue px-4 rounded-full"
|
|
624
|
-
},
|
|
627
|
+
}, da = { class: "relative w-full" }, ca = { class: "absolute inset-y-0 left-0 flex items-center pl-3" }, ua = { class: "tooltip" }, ma = /* @__PURE__ */ B(() => /* @__PURE__ */ e("span", { class: "tooltiptext text-genpact-darkest-teal" }, "Restart", -1)), ha = /* @__PURE__ */ B(() => /* @__PURE__ */ e("path", {
|
|
625
628
|
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",
|
|
626
629
|
stroke: "currentColor",
|
|
627
630
|
"stroke-width": "2"
|
|
628
|
-
}, null, -1)), pa = /* @__PURE__ */
|
|
631
|
+
}, null, -1)), pa = /* @__PURE__ */ B(() => /* @__PURE__ */ e("path", {
|
|
629
632
|
d: "M9 10H15M9 14H12M19 8V2M16 5H22",
|
|
630
633
|
stroke: "currentColor",
|
|
631
634
|
"stroke-width": "2",
|
|
632
635
|
"stroke-linecap": "round",
|
|
633
636
|
"stroke-linejoin": "round"
|
|
634
|
-
}, null, -1)),
|
|
635
|
-
|
|
637
|
+
}, null, -1)), fa = [
|
|
638
|
+
ha,
|
|
636
639
|
pa
|
|
637
|
-
],
|
|
638
|
-
|
|
639
|
-
],
|
|
640
|
+
], ga = { class: "absolute inset-y-0 right-0 flex items-center md:pr-8 pr-3" }, va = { key: 0 }, ba = ["disabled"], xa = /* @__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)), ya = [
|
|
641
|
+
xa
|
|
642
|
+
], wa = {
|
|
640
643
|
key: 1,
|
|
641
644
|
class: "tooltip"
|
|
642
|
-
},
|
|
645
|
+
}, _a = /* @__PURE__ */ B(() => /* @__PURE__ */ e("span", { class: "tooltiptext text-genpact-darkest-teal" }, "Processing", -1)), Aa = /* @__PURE__ */ B(() => /* @__PURE__ */ e("img", {
|
|
643
646
|
class: "w-7 h-7",
|
|
644
647
|
src: dt,
|
|
645
648
|
alt: "watingIcon"
|
|
646
|
-
}, null, -1)),
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
],
|
|
649
|
+
}, null, -1)), ka = [
|
|
650
|
+
_a,
|
|
651
|
+
Aa
|
|
652
|
+
], Sa = { class: "flex justify-start gap-2 md:gap-1" }, Na = ["disabled"], Ca = /* @__PURE__ */ B(() => /* @__PURE__ */ e("div", { class: "pt-1 text-start font-sans text-xs font-bold text-gray-500 md:text-sm" }, [
|
|
650
653
|
/* @__PURE__ */ e("div", null, " Note: AI-generated response may not be fully accurate; check with experts for critical information. ")
|
|
651
|
-
], -1)),
|
|
654
|
+
], -1)), La = /* @__PURE__ */ R({
|
|
652
655
|
__name: "NewQuestionSimulation",
|
|
653
|
-
setup(
|
|
654
|
-
const t =
|
|
656
|
+
setup(f, { expose: s }) {
|
|
657
|
+
const t = H(), b = ce(), a = m(""), c = m("");
|
|
655
658
|
t.question = "";
|
|
656
|
-
const
|
|
659
|
+
const y = m(null);
|
|
660
|
+
m(!1), m(ie);
|
|
661
|
+
const v = m(!1), o = m(0);
|
|
657
662
|
c.value = t.recognizedText, de(() => {
|
|
658
|
-
|
|
663
|
+
y.value.focus();
|
|
659
664
|
});
|
|
660
|
-
const
|
|
665
|
+
const x = () => {
|
|
661
666
|
window.location.reload();
|
|
662
|
-
},
|
|
663
|
-
|
|
664
|
-
o.value = O - u, x.value = u >= O;
|
|
665
|
-
}, v = async () => {
|
|
666
|
-
var f, u, y, F, q, te, se, ae, oe, ne;
|
|
667
|
+
}, A = async () => {
|
|
668
|
+
var h, u, p, w, F, E, ee, te, se, ae, oe;
|
|
667
669
|
try {
|
|
668
670
|
if (t.question.trim().length < 1) {
|
|
669
671
|
console.log("Please enter answer!");
|
|
670
672
|
return;
|
|
671
673
|
}
|
|
672
|
-
|
|
673
|
-
const
|
|
674
|
+
v.value = !0, t.dotLoader = !0;
|
|
675
|
+
const N = {
|
|
674
676
|
question: t.question || t.recognizedText
|
|
675
677
|
};
|
|
676
|
-
t.conversations.push(
|
|
677
|
-
const
|
|
678
|
-
|
|
679
|
-
const
|
|
678
|
+
t.conversations.push(N);
|
|
679
|
+
const C = m("");
|
|
680
|
+
C.value = t.question || t.recognizedText, t.question = "", y.value && (y.value.style.height = "auto");
|
|
681
|
+
const M = {
|
|
680
682
|
ohr_id: a.value,
|
|
681
683
|
past_messages: t.past_messages,
|
|
682
|
-
question:
|
|
684
|
+
question: C.value || t.recognizedText,
|
|
683
685
|
bandCode: t.band_code,
|
|
684
686
|
userGenomeFunction: t.genomeFunctionValue,
|
|
685
687
|
userGenomeRole: t.genomeRoleValue,
|
|
686
688
|
skillId: t.simulationSkill || "937e84ef-e95d-4327-9afe-e7be2bf420eb"
|
|
687
|
-
}, L = await
|
|
688
|
-
if (
|
|
689
|
+
}, L = await J("/sqlTest", M);
|
|
690
|
+
if (o.value += (u = (h = L.data) == null ? void 0 : h.body) == null ? void 0 : u.totalTokenCount, console.log("Token Count:", o.value), a.value = (w = (p = L.data) == null ? void 0 : p.body) == null ? void 0 : w.ohr, ((E = (F = L == null ? void 0 : L.data) == null ? void 0 : F.body) == null ? void 0 : E.answer) === "") {
|
|
689
691
|
console.log("in the if case calling api again");
|
|
690
|
-
const
|
|
691
|
-
t.addConversation((
|
|
692
|
+
const D = await J("/sqlTest", M);
|
|
693
|
+
t.addConversation((ee = D.data) == null ? void 0 : ee.body, "new");
|
|
692
694
|
} else
|
|
693
|
-
console.log("in the else case"), t.addConversation((
|
|
694
|
-
|
|
695
|
-
} catch (
|
|
696
|
-
if (console.error(
|
|
697
|
-
const
|
|
698
|
-
console.log("Error found!"), console.error((
|
|
695
|
+
console.log("in the else case"), t.addConversation((te = L.data) == null ? void 0 : te.body, "new");
|
|
696
|
+
v.value = !1, t.dotLoader = !1, t.recognizedText = "";
|
|
697
|
+
} catch (N) {
|
|
698
|
+
if (console.error(N), t.dotLoader = !1, v.value = !0, $.isAxiosError(N)) {
|
|
699
|
+
const C = N;
|
|
700
|
+
console.log("Error found!"), console.error((se = C.response) == null ? void 0 : se.data), b.setError((oe = (ae = C.response) == null ? void 0 : ae.data) == null ? void 0 : oe.message);
|
|
699
701
|
} else
|
|
700
|
-
|
|
702
|
+
b.setError("There was an issue, please contact helpmate");
|
|
701
703
|
}
|
|
704
|
+
}, g = (h) => {
|
|
705
|
+
h.key === "Enter" && !h.shiftKey && (h.preventDefault(), A());
|
|
706
|
+
}, d = (h) => {
|
|
707
|
+
const u = h.target;
|
|
708
|
+
u.style.height = "auto", u.style.height = u.scrollHeight + "px";
|
|
702
709
|
};
|
|
703
|
-
return s({ sendQuestion:
|
|
704
|
-
e("div",
|
|
705
|
-
e("div",
|
|
706
|
-
e("div",
|
|
707
|
-
e("div",
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
T(
|
|
710
|
+
return s({ sendQuestion: A }), (h, u) => (i(), r("div", sa, [
|
|
711
|
+
e("div", aa, [
|
|
712
|
+
e("div", oa, [
|
|
713
|
+
e("div", na, [
|
|
714
|
+
e("div", ia, [
|
|
715
|
+
la,
|
|
716
|
+
l(t).showVoiceComponent ? (i(), r("div", ra, [
|
|
717
|
+
T(ta)
|
|
711
718
|
])) : z("", !0)
|
|
712
719
|
]),
|
|
713
|
-
e("div",
|
|
714
|
-
e("div",
|
|
715
|
-
e("div",
|
|
716
|
-
|
|
717
|
-
(
|
|
718
|
-
onClick:
|
|
720
|
+
e("div", da, [
|
|
721
|
+
e("div", ca, [
|
|
722
|
+
e("div", ua, [
|
|
723
|
+
ma,
|
|
724
|
+
(i(), r("svg", {
|
|
725
|
+
onClick: x,
|
|
719
726
|
class: "ml-2 h-7 w-7 rounded",
|
|
720
727
|
id: "newTopicDisable",
|
|
721
728
|
width: "7",
|
|
@@ -724,44 +731,43 @@ const Ds = /* @__PURE__ */ U(js, [["__scopeId", "data-v-c14e6f9c"]]), qs = { cla
|
|
|
724
731
|
fill: "none",
|
|
725
732
|
xmlns: "http://www.w3.org/2000/svg",
|
|
726
733
|
title: "restart"
|
|
727
|
-
},
|
|
734
|
+
}, fa))
|
|
728
735
|
])
|
|
729
736
|
]),
|
|
730
|
-
e("div",
|
|
731
|
-
|
|
732
|
-
(
|
|
733
|
-
disabled:
|
|
737
|
+
e("div", ga, [
|
|
738
|
+
v.value ? (i(), r("div", wa, ka)) : (i(), r("div", va, [
|
|
739
|
+
(i(), r("svg", {
|
|
740
|
+
disabled: l(t).beginFlag === !0,
|
|
734
741
|
class: W([
|
|
735
|
-
|
|
742
|
+
l(t).beginFlag === !0 ? "cursor-not-allowed text-gray-600" : "cursor-pointer",
|
|
736
743
|
"bi bi-send ml-2 h-7 w-7 rotate-45 rounded"
|
|
737
744
|
]),
|
|
738
|
-
onClick: u[0] || (u[0] = (
|
|
745
|
+
onClick: u[0] || (u[0] = (p) => l(t).searchBoxdisable === !1 || l(t).beginFlag === !0 ? "" : A()),
|
|
739
746
|
xmlns: "http://www.w3.org/2000/svg",
|
|
740
747
|
fill: "currentColor",
|
|
741
748
|
viewBox: "0 0 16 16"
|
|
742
|
-
},
|
|
749
|
+
}, ya, 10, ba))
|
|
743
750
|
]))
|
|
744
751
|
]),
|
|
745
|
-
e("div",
|
|
746
|
-
xe(e("
|
|
747
|
-
onPaste: u[1] || (u[1] =
|
|
752
|
+
e("div", Sa, [
|
|
753
|
+
xe(e("textarea", {
|
|
754
|
+
onPaste: u[1] || (u[1] = xt(() => {
|
|
748
755
|
}, ["prevent"])),
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
],
|
|
753
|
-
disabled: i(t).beginFlag === !0 || i(t).searchBoxdisable === !1,
|
|
756
|
+
onKeydown: u[2] || (u[2] = (p) => v.value ? "" : g(p)),
|
|
757
|
+
disabled: l(t).searchBoxdisable === !1 || l(t).beginFlag === !0,
|
|
758
|
+
"onUpdate:modelValue": u[3] || (u[3] = (p) => l(t).question = p),
|
|
754
759
|
class: W([
|
|
755
|
-
|
|
756
|
-
|
|
760
|
+
"fontFormattingAMA rounded-lg flex w-full border border-genpact-darkest-teal py-[18px] px-[70px]",
|
|
761
|
+
l(t).beginFlag === !0 || l(t).searchBoxdisable === !1 ? "cursor-not-allowed bg-[#e5e7eb]" : "bg-white"
|
|
757
762
|
]),
|
|
758
|
-
"onUpdate:modelValue": u[3] || (u[3] = (y) => i(t).question = y),
|
|
759
763
|
placeholder: "Write your answer here...",
|
|
760
|
-
type: "text",
|
|
761
764
|
ref_key: "AiSearch",
|
|
762
|
-
ref:
|
|
763
|
-
|
|
764
|
-
[
|
|
765
|
+
ref: y,
|
|
766
|
+
rows: "1",
|
|
767
|
+
onInput: u[4] || (u[4] = (p) => d(p)),
|
|
768
|
+
style: { overflow: "hidden", transition: "height 0.2s" }
|
|
769
|
+
}, null, 42, Na), [
|
|
770
|
+
[ct, l(t).question]
|
|
765
771
|
])
|
|
766
772
|
])
|
|
767
773
|
]),
|
|
@@ -772,50 +778,50 @@ const Ds = /* @__PURE__ */ U(js, [["__scopeId", "data-v-c14e6f9c"]]), qs = { cla
|
|
|
772
778
|
]));
|
|
773
779
|
}
|
|
774
780
|
});
|
|
775
|
-
const
|
|
776
|
-
|
|
777
|
-
],
|
|
781
|
+
const Pa = /* @__PURE__ */ X(La, [["__scopeId", "data-v-bc339815"]]), ue = (f) => (K("data-v-6c0980b5"), f = f(), Z(), f), Ta = { class: "z-3 absolute bottom-0 mt-4 w-full bg-white px-2 md:px-6" }, Fa = { class: "py-2" }, za = { class: "flex" }, Ma = { class: "z-1 relative w-full" }, Ra = { class: "relative w-full" }, Da = { class: "absolute inset-y-0 right-0 flex items-center md:pr-8 pr-3" }, ja = { key: 0 }, Ea = ["disabled"], Ia = /* @__PURE__ */ ue(() => /* @__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)), qa = [
|
|
782
|
+
Ia
|
|
783
|
+
], Ha = {
|
|
778
784
|
key: 1,
|
|
779
785
|
class: "tooltip"
|
|
780
|
-
},
|
|
786
|
+
}, Ba = /* @__PURE__ */ ue(() => /* @__PURE__ */ e("span", { class: "tooltiptext fontFormattingAMA" }, "Waiting for response", -1)), $a = /* @__PURE__ */ ue(() => /* @__PURE__ */ e("img", {
|
|
781
787
|
class: "w-7 h-7",
|
|
782
788
|
src: dt,
|
|
783
789
|
alt: "watingIcon"
|
|
784
|
-
}, null, -1)),
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
],
|
|
790
|
+
}, null, -1)), Va = [
|
|
791
|
+
Ba,
|
|
792
|
+
$a
|
|
793
|
+
], Qa = { class: "flex justify-start gap-2 md:gap-1" }, Ga = ["disabled"], Oa = /* @__PURE__ */ ue(() => /* @__PURE__ */ e("div", { class: "pt-1 text-start font-sans text-[0.8125rem] md:text-[0.9375rem] font-bold text-gray-500" }, [
|
|
788
794
|
/* @__PURE__ */ e("div", null, " Note: AI-generated response may not be fully accurate; check with experts for critical information. ")
|
|
789
|
-
], -1)),
|
|
795
|
+
], -1)), Wa = /* @__PURE__ */ R({
|
|
790
796
|
__name: "NewMDMQuestionSimulation",
|
|
791
|
-
setup(
|
|
792
|
-
const s =
|
|
797
|
+
setup(f) {
|
|
798
|
+
const s = H(), t = ce(), b = m("");
|
|
793
799
|
s.question = "";
|
|
794
|
-
const a = m(null), c = m(!1),
|
|
795
|
-
|
|
800
|
+
const a = m(null), c = m(!1), y = m(ie), v = m(!1);
|
|
801
|
+
b.value = s.recognizedText, de(() => {
|
|
796
802
|
a.value.focus();
|
|
797
803
|
});
|
|
798
804
|
const o = (A) => {
|
|
799
|
-
const
|
|
800
|
-
|
|
801
|
-
},
|
|
802
|
-
var A,
|
|
805
|
+
const g = A.length;
|
|
806
|
+
y.value = ie - g, c.value = g >= ie;
|
|
807
|
+
}, x = async () => {
|
|
808
|
+
var A, g, d;
|
|
803
809
|
console.log("options fdsfdscdzxfsdv", s.recognizedText);
|
|
804
810
|
try {
|
|
805
811
|
if (console.log("options fdsfdscdzxfsdv", s.recognizedText), s.question.trim().length < 1) {
|
|
806
812
|
console.log("Please enter answer!");
|
|
807
813
|
return;
|
|
808
814
|
}
|
|
809
|
-
|
|
810
|
-
const
|
|
815
|
+
v.value = !0, s.dotLoader = !0;
|
|
816
|
+
const h = {
|
|
811
817
|
question: s.question || s.recognizedText
|
|
812
818
|
};
|
|
813
|
-
console.log("ques",
|
|
814
|
-
const
|
|
815
|
-
|
|
816
|
-
const
|
|
819
|
+
console.log("ques", h), s.conversations.push(h);
|
|
820
|
+
const u = m("");
|
|
821
|
+
u.value = s.question || s.recognizedText, s.question = "";
|
|
822
|
+
const p = {
|
|
817
823
|
assessmentId: s.simulationSkill,
|
|
818
|
-
question:
|
|
824
|
+
question: u.value,
|
|
819
825
|
past_messages: s.past_messages,
|
|
820
826
|
prompt: s.generatedPrompt,
|
|
821
827
|
assessmentType: s.assessmentType,
|
|
@@ -826,143 +832,143 @@ const La = /* @__PURE__ */ U(Na, [["__scopeId", "data-v-70512682"]]), ue = (p) =
|
|
|
826
832
|
storeFinalFeedback: s.storeFinalFeedback,
|
|
827
833
|
storeFinalScore: s.storeFinalScore
|
|
828
834
|
};
|
|
829
|
-
console.log("Payload for MDM1==> ",
|
|
830
|
-
let
|
|
831
|
-
|
|
832
|
-
const F = await
|
|
833
|
-
s.addConversation((A = F.data) == null ? void 0 : A.body, "new"),
|
|
834
|
-
} catch (
|
|
835
|
-
if (console.error(
|
|
836
|
-
const
|
|
837
|
-
console.log("Error found!"), console.error((
|
|
835
|
+
console.log("Payload for MDM1==> ", p);
|
|
836
|
+
let w;
|
|
837
|
+
O === "prod" ? w = "/ManualExportActivity" : w = "/fetchCompletionDemo";
|
|
838
|
+
const F = await J(w, p);
|
|
839
|
+
s.addConversation((A = F.data) == null ? void 0 : A.body, "new"), v.value = !1, s.dotLoader = !1, s.recognizedText = "";
|
|
840
|
+
} catch (h) {
|
|
841
|
+
if (console.error(h), $.isAxiosError(h)) {
|
|
842
|
+
const u = h;
|
|
843
|
+
console.log("Error found!"), console.error((g = u.response) == null ? void 0 : g.data), t.setError(((d = u.response) == null ? void 0 : d.data).message);
|
|
838
844
|
} else
|
|
839
845
|
t.setError("There was an issue, please contact helpmate");
|
|
840
846
|
}
|
|
841
847
|
};
|
|
842
|
-
return (A,
|
|
843
|
-
e("div",
|
|
844
|
-
e("div",
|
|
845
|
-
e("div",
|
|
848
|
+
return (A, g) => (i(), r("div", Ta, [
|
|
849
|
+
e("div", Fa, [
|
|
850
|
+
e("div", za, [
|
|
851
|
+
e("div", Ma, [
|
|
846
852
|
e("div", Ra, [
|
|
847
|
-
e("div",
|
|
848
|
-
|
|
849
|
-
(
|
|
850
|
-
disabled:
|
|
853
|
+
e("div", Da, [
|
|
854
|
+
v.value ? (i(), r("div", Ha, Va)) : (i(), r("div", ja, [
|
|
855
|
+
(i(), r("svg", {
|
|
856
|
+
disabled: l(s).beginFlag === !0,
|
|
851
857
|
class: W([
|
|
852
|
-
|
|
858
|
+
l(s).beginFlag === !0 ? "cursor-not-allowed text-gray-600" : "cursor-pointer",
|
|
853
859
|
"bi bi-send ml-2 h-7 w-7 rotate-45 rounded"
|
|
854
860
|
]),
|
|
855
|
-
onClick:
|
|
861
|
+
onClick: g[0] || (g[0] = (d) => l(s).searchBoxdisable === !1 || l(s).beginFlag === !0 ? "" : x()),
|
|
856
862
|
xmlns: "http://www.w3.org/2000/svg",
|
|
857
863
|
fill: "currentColor",
|
|
858
864
|
viewBox: "0 0 16 16"
|
|
859
|
-
},
|
|
865
|
+
}, qa, 10, Ea))
|
|
860
866
|
]))
|
|
861
867
|
]),
|
|
862
|
-
e("div",
|
|
868
|
+
e("div", Qa, [
|
|
863
869
|
xe(e("input", {
|
|
864
870
|
onKeyup: [
|
|
865
|
-
|
|
866
|
-
|
|
871
|
+
g[1] || (g[1] = yt((d) => v.value ? "" : x(), ["enter"])),
|
|
872
|
+
g[3] || (g[3] = (d) => o(l(s).question))
|
|
867
873
|
],
|
|
868
|
-
disabled:
|
|
874
|
+
disabled: l(s).beginFlag === !0 || l(s).searchBoxdisable === !1,
|
|
869
875
|
class: W([
|
|
870
|
-
|
|
876
|
+
l(s).beginFlag === !0 || l(s).searchBoxdisable === !1 ? "cursor-not-allowed bg-[#e5e7eb]" : "bg-white",
|
|
871
877
|
"fontFormattingAMA rounded-lg flex w-full border border-genpact-darkest-teal py-[18px] pl-[30px] pr-[70px]"
|
|
872
878
|
]),
|
|
873
|
-
"onUpdate:modelValue":
|
|
879
|
+
"onUpdate:modelValue": g[2] || (g[2] = (d) => l(s).question = d),
|
|
874
880
|
placeholder: "Write your answer here...",
|
|
875
881
|
type: "text",
|
|
876
882
|
ref_key: "AiSearch",
|
|
877
883
|
ref: a
|
|
878
|
-
}, null, 42,
|
|
879
|
-
[ct,
|
|
884
|
+
}, null, 42, Ga), [
|
|
885
|
+
[ct, l(s).question]
|
|
880
886
|
])
|
|
881
887
|
])
|
|
882
888
|
]),
|
|
883
|
-
|
|
889
|
+
Oa
|
|
884
890
|
])
|
|
885
891
|
])
|
|
886
892
|
])
|
|
887
893
|
]));
|
|
888
894
|
}
|
|
889
895
|
});
|
|
890
|
-
const Xa = /* @__PURE__ */
|
|
896
|
+
const Xa = /* @__PURE__ */ X(Wa, [["__scopeId", "data-v-6c0980b5"]]), Y = (f) => (K("data-v-2f3d502d"), f = f(), Z(), f), Ua = { class: "max-h-screen overflow-auto md:p-6 p-3 text-[#161916]" }, Ja = {
|
|
891
897
|
key: 0,
|
|
892
898
|
class: "flex flex-col items-center justify-center gap-4"
|
|
893
|
-
},
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
],
|
|
899
|
+
}, Ka = /* @__PURE__ */ Y(() => /* @__PURE__ */ e("div", { class: "text-2xl font-[700]" }, "Assessment Access Required", -1)), Za = /* @__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)), Ya = [
|
|
900
|
+
Ka,
|
|
901
|
+
Za
|
|
902
|
+
], eo = {
|
|
897
903
|
key: 1,
|
|
898
904
|
class: "flex flex-col items-center justify-center gap-4"
|
|
899
|
-
},
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
],
|
|
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 = [
|
|
906
|
+
to,
|
|
907
|
+
so
|
|
908
|
+
], oo = {
|
|
903
909
|
key: 1,
|
|
904
910
|
className: "h-screen flex flex-col items-stretch"
|
|
905
|
-
},
|
|
911
|
+
}, no = { class: "z-20" }, io = /* @__PURE__ */ Y(() => /* @__PURE__ */ e("div", { class: "mt-6" }, null, -1)), lo = { class: "flex h-full items-stretch overflow-hidden" }, ro = { class: "mx-auto w-11/12 bg-white" }, co = { class: "relative flex h-full w-full flex-col items-stretch overflow-hidden" }, uo = {
|
|
906
912
|
key: 0,
|
|
907
913
|
class: "relative"
|
|
908
|
-
},
|
|
914
|
+
}, mo = {
|
|
909
915
|
key: 1,
|
|
910
916
|
class: "relative"
|
|
911
|
-
},
|
|
917
|
+
}, ho = /* @__PURE__ */ R({
|
|
912
918
|
__name: "AssessmentSimulation",
|
|
913
|
-
setup(
|
|
914
|
-
const s = m(!0), t = m(!1),
|
|
919
|
+
setup(f) {
|
|
920
|
+
const s = m(!0), t = m(!1), b = m(!1);
|
|
915
921
|
m(!1), m(!1);
|
|
916
|
-
const a =
|
|
917
|
-
let
|
|
922
|
+
const a = H(), c = ce(), y = m(""), v = m(""), o = m(""), x = m(""), A = localStorage.getItem("accessToken");
|
|
923
|
+
let g = "";
|
|
918
924
|
const d = m("");
|
|
919
|
-
let
|
|
920
|
-
const
|
|
921
|
-
|
|
922
|
-
const
|
|
925
|
+
let h = "", u = "";
|
|
926
|
+
const p = m(), w = m(!1), F = new URL(window.location.href), E = F.searchParams.get("skillId") || F.searchParams.get("assessmentId");
|
|
927
|
+
v.value = F.searchParams.get("mode") ?? "", a.simulationSkill = E ?? "";
|
|
928
|
+
const ee = ["703331197", "703380812", "703331909", "703363051", "703319578"];
|
|
923
929
|
de(async () => {
|
|
924
|
-
s.value = !0, await
|
|
930
|
+
s.value = !0, await te(), await ae();
|
|
925
931
|
});
|
|
926
|
-
const
|
|
927
|
-
var
|
|
932
|
+
const te = async () => {
|
|
933
|
+
var N, C, M, L, I, D, q;
|
|
928
934
|
try {
|
|
929
935
|
const S = await me(
|
|
930
936
|
`/getLearnerData?forSimulation=true&skillForSimulation=${a.simulationSkill}`
|
|
931
937
|
);
|
|
932
|
-
a.initialize(S.data), a.assessmentQuestion || (console.log("getAssessmentDetails========================>"), await
|
|
938
|
+
a.initialize(S.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");
|
|
933
939
|
} catch (S) {
|
|
934
|
-
if (console.error(S), s.value = !1,
|
|
940
|
+
if (console.error(S), s.value = !1, $.isAxiosError(S) && ((N = S.response) != null && N.status) || S && typeof S == "object" && "response" in S && S.response && typeof S.response == "object" && "status" in S.response && S.response.status) {
|
|
935
941
|
const k = S;
|
|
936
|
-
if (console.log("Error found!"), console.error((
|
|
937
|
-
|
|
942
|
+
if (console.log("Error found!"), console.error((C = k.response) == null ? void 0 : C.data), ((M = k.response) == null ? void 0 : M.status) === 424 || ((L = k.response) == null ? void 0 : L.status) === 425 || ((I = k.response) == null ? void 0 : I.status) === 400) {
|
|
943
|
+
x.value = (D = k.response) == null ? void 0 : D.status, console.log("errorCode value", x.value), b.value = !0;
|
|
938
944
|
return;
|
|
939
945
|
}
|
|
940
|
-
c.setError(((
|
|
946
|
+
c.setError(((q = k.response) == null ? void 0 : q.data).message);
|
|
941
947
|
} else
|
|
942
948
|
c.setError("There was an issue, please contact helpmate");
|
|
943
949
|
}
|
|
944
|
-
},
|
|
945
|
-
var
|
|
950
|
+
}, se = async () => {
|
|
951
|
+
var N, C, M, L, I, D, q, S, k, U, ye, we, _e, Ae, ke, Se, Ne, Ce, Le, Pe, Te, Fe, ze, Me, Re, De, je, Ee, Ie, qe, He, Be, $e, Ve, Qe, Ge, Oe, We, Xe, Ue, Je, Ke, Ze, Ye, et, tt, st, at;
|
|
946
952
|
console.log("Start getAssessmentDetails");
|
|
947
953
|
try {
|
|
948
|
-
|
|
949
|
-
const n = await me(
|
|
950
|
-
|
|
954
|
+
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 me(g);
|
|
956
|
+
y.value = (C = (N = n == null ? void 0 : n.data) == null ? void 0 : N.data) == null ? void 0 : C.name, a.skillNameForSimulation = y.value, a.generatedPrompt = (L = (M = n == null ? void 0 : n.data) == null ? void 0 : M.data) == null ? void 0 : L.generatedPrompt, a.assessmentType = (D = (I = n == null ? void 0 : n.data) == null ? void 0 : I.data) == null ? void 0 : D.assessmentType, o.value = (S = (q = n == null ? void 0 : n.data) == null ? void 0 : q.data) == null ? void 0 : S.status, w.value = (U = (k = n == null ? void 0 : n.data) == null ? void 0 : k.data) == null ? void 0 : U.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, h = (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;
|
|
951
957
|
const Q = (Pe = (Le = n == null ? void 0 : n.data) == null ? void 0 : Le.data) == null ? void 0 : Pe.createdBy;
|
|
952
|
-
if (a.mcqType = (Fe = (Te = n == null ? void 0 : n.data) == null ? void 0 : Te.data) == null ? void 0 : Fe.mcqTypes, a.storeFinalFeedback = (
|
|
958
|
+
if (a.mcqType = (Fe = (Te = n == null ? void 0 : n.data) == null ? void 0 : Te.data) == null ? void 0 : Fe.mcqTypes, a.storeFinalFeedback = (Me = (ze = n == null ? void 0 : n.data) == null ? void 0 : ze.data) == null ? void 0 : Me.storeFinalFeedback, a.storeFinalScore = (De = (Re = n == null ? void 0 : n.data) == null ? void 0 : Re.data) == null ? void 0 : De.storeFinalScore, o.value === "inactive")
|
|
953
959
|
t.value = !0;
|
|
954
960
|
else if (o.value === "draft")
|
|
955
|
-
|
|
956
|
-
else if (o.value === "active" &&
|
|
957
|
-
|
|
958
|
-
const
|
|
959
|
-
a.generatedPrompt = (
|
|
961
|
+
v.value !== nt.DRAFT && (t.value = !0);
|
|
962
|
+
else if (o.value === "active" && w.value && v.value === nt.DRAFT) {
|
|
963
|
+
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 _ = await me(g);
|
|
965
|
+
a.generatedPrompt = (Ee = (je = _ == null ? void 0 : _.data) == null ? void 0 : je.data) == null ? void 0 : Ee.generatedPrompt, a.assessmentType = (qe = (Ie = _ == null ? void 0 : _.data) == null ? void 0 : Ie.data) == null ? void 0 : qe.assessmentType, a.empSeniority = (Be = (He = _ == null ? void 0 : _.data) == null ? void 0 : He.data) == null ? void 0 : Be.empSeniority, a.functionRole = (Ve = ($e = _ == null ? void 0 : _.data) == null ? void 0 : $e.data) == null ? void 0 : Ve.functionRole, a.storeFinalFeedback = (Ge = (Qe = _ == null ? void 0 : _.data) == null ? void 0 : Qe.data) == null ? void 0 : Ge.storeFinalFeedback, a.storeFinalScore = (We = (Oe = _ == null ? void 0 : _.data) == null ? void 0 : Oe.data) == null ? void 0 : We.storeFinalScore, h = (Ue = (Xe = _ == null ? void 0 : _.data) == null ? void 0 : Xe.data) == null ? void 0 : Ue.accessBand, u = (Ke = (Je = _ == null ? void 0 : _.data) == null ? void 0 : Je.data) == null ? void 0 : Ke.accessOhrList;
|
|
960
966
|
}
|
|
961
|
-
const
|
|
962
|
-
if (Q === (a == null ? void 0 : a.ohr) ||
|
|
967
|
+
const mt = a == null ? void 0 : a.band_code, ot = (Ze = h == null ? void 0 : h.split(",")) == null ? void 0 : Ze.map((_) => _.trim());
|
|
968
|
+
if (Q === (a == null ? void 0 : a.ohr) || ee.includes(a == null ? void 0 : a.ohr))
|
|
963
969
|
console.log("User has access to this assessment.");
|
|
964
970
|
else {
|
|
965
|
-
if (ot.length === 0 &&
|
|
971
|
+
if (ot.length === 0 && u.length === 0)
|
|
966
972
|
throw console.log("Both bands and exceptionOHR are empty. Access denied."), {
|
|
967
973
|
response: {
|
|
968
974
|
status: 424,
|
|
@@ -971,7 +977,7 @@ const Xa = /* @__PURE__ */ U(Oa, [["__scopeId", "data-v-6c0980b5"]]), ee = (p) =
|
|
|
971
977
|
}
|
|
972
978
|
}
|
|
973
979
|
};
|
|
974
|
-
if (ot.includes(
|
|
980
|
+
if (ot.includes(mt) || u.includes(a == null ? void 0 : a.ohr))
|
|
975
981
|
console.log("User has access to this assessment.");
|
|
976
982
|
else
|
|
977
983
|
throw console.log("User does not have access to this assessment."), {
|
|
@@ -985,21 +991,21 @@ const Xa = /* @__PURE__ */ U(Oa, [["__scopeId", "data-v-6c0980b5"]]), ee = (p) =
|
|
|
985
991
|
}
|
|
986
992
|
console.log("end getAssessmentDetails");
|
|
987
993
|
} catch (n) {
|
|
988
|
-
if (console.error(n), s.value = !1,
|
|
994
|
+
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) {
|
|
989
995
|
const Q = n;
|
|
990
996
|
if (console.log("Error found!"), console.error((et = Q.response) == null ? void 0 : et.data), ((tt = Q.response) == null ? void 0 : tt.status) === 424 || ((st = Q.response) == null ? void 0 : st.status) === 425) {
|
|
991
|
-
|
|
997
|
+
b.value = !0;
|
|
992
998
|
return;
|
|
993
999
|
}
|
|
994
1000
|
c.setError(((at = Q.response) == null ? void 0 : at.data).message);
|
|
995
1001
|
} else
|
|
996
1002
|
c.setError("There was an issue, please contact helpmate");
|
|
997
1003
|
}
|
|
998
|
-
},
|
|
999
|
-
var
|
|
1004
|
+
}, ae = async () => {
|
|
1005
|
+
var N, C, M, L, I, D, q, S;
|
|
1000
1006
|
try {
|
|
1001
|
-
|
|
1002
|
-
const k = await
|
|
1007
|
+
O === "prod" ? d.value = "https://api-v2.genpact.com/api/delphi/v2/myprofile" : d.value = "https://api-v2-dev.genpact.com/api/delphi/v2/myprofile";
|
|
1008
|
+
const k = await $({
|
|
1003
1009
|
url: d.value,
|
|
1004
1010
|
headers: {
|
|
1005
1011
|
authorization: `Bearer ${A}`,
|
|
@@ -1007,48 +1013,48 @@ const Xa = /* @__PURE__ */ U(Oa, [["__scopeId", "data-v-6c0980b5"]]), ee = (p) =
|
|
|
1007
1013
|
},
|
|
1008
1014
|
method: "get"
|
|
1009
1015
|
});
|
|
1010
|
-
a.genomeFunctionValue = (
|
|
1016
|
+
a.genomeFunctionValue = (M = (C = (N = k == null ? void 0 : k.data) == null ? void 0 : N.role_function) == null ? void 0 : C.function) == null ? void 0 : M.name, a.genomeRoleValue = (D = (I = (L = k == null ? void 0 : k.data) == null ? void 0 : L.role_function) == null ? void 0 : I.role) == null ? void 0 : D.name;
|
|
1011
1017
|
} catch (k) {
|
|
1012
|
-
if (console.error(k), s.value = !1,
|
|
1013
|
-
const
|
|
1014
|
-
console.log("Error found!"), console.error((
|
|
1018
|
+
if (console.error(k), s.value = !1, $.isAxiosError(k)) {
|
|
1019
|
+
const U = k;
|
|
1020
|
+
console.log("Error found!"), console.error((q = U.response) == null ? void 0 : q.data), c.setError(((S = U.response) == null ? void 0 : S.data).message);
|
|
1015
1021
|
} else
|
|
1016
1022
|
c.setError("There was an issue, please contact helpmate");
|
|
1017
1023
|
}
|
|
1018
|
-
},
|
|
1019
|
-
var
|
|
1020
|
-
(
|
|
1024
|
+
}, oe = () => {
|
|
1025
|
+
var N;
|
|
1026
|
+
(N = p.value) == null || N.sendQuestion();
|
|
1021
1027
|
};
|
|
1022
|
-
return (
|
|
1023
|
-
T(
|
|
1028
|
+
return (N, C) => (i(), r("section", null, [
|
|
1029
|
+
T(pe, { "is-visible": b.value }, {
|
|
1024
1030
|
default: ge(() => [
|
|
1025
|
-
e("div",
|
|
1026
|
-
|
|
1027
|
-
|
|
1031
|
+
e("div", Ua, [
|
|
1032
|
+
x.value === 424 || x.value === "425" ? (i(), r("div", Ja, Ya)) : z("", !0),
|
|
1033
|
+
x.value === 400 ? (i(), r("div", eo, ao)) : z("", !0)
|
|
1028
1034
|
])
|
|
1029
1035
|
]),
|
|
1030
1036
|
_: 1
|
|
1031
1037
|
}, 8, ["is-visible"]),
|
|
1032
1038
|
e("div", null, [
|
|
1033
|
-
s.value ? (
|
|
1034
|
-
e("div",
|
|
1035
|
-
T(
|
|
1039
|
+
s.value ? (i(), wt(pt, { key: 0 })) : (i(), r("main", oo, [
|
|
1040
|
+
e("div", no, [
|
|
1041
|
+
T(Mt)
|
|
1036
1042
|
]),
|
|
1037
|
-
|
|
1038
|
-
e("div",
|
|
1039
|
-
e("div",
|
|
1040
|
-
e("div",
|
|
1041
|
-
T(
|
|
1043
|
+
io,
|
|
1044
|
+
e("div", lo, [
|
|
1045
|
+
e("div", ro, [
|
|
1046
|
+
e("div", co, [
|
|
1047
|
+
T(Es, { onCallQuestion: oe }),
|
|
1042
1048
|
e("div", {
|
|
1043
|
-
class: W(
|
|
1049
|
+
class: W(l(a).showVoiceComponent === !0 ? "mt-[160px]" : "mt-[120px]")
|
|
1044
1050
|
}, null, 2)
|
|
1045
1051
|
]),
|
|
1046
|
-
|
|
1047
|
-
T(
|
|
1052
|
+
l(a).assessmentQuestion ? (i(), r("div", uo, [
|
|
1053
|
+
T(Pa, {
|
|
1048
1054
|
ref_key: "newQuestionRef",
|
|
1049
|
-
ref:
|
|
1055
|
+
ref: p
|
|
1050
1056
|
}, null, 512)
|
|
1051
|
-
])) : (
|
|
1057
|
+
])) : (i(), r("div", mo, [
|
|
1052
1058
|
T(Xa)
|
|
1053
1059
|
]))
|
|
1054
1060
|
])
|
|
@@ -1058,7 +1064,7 @@ const Xa = /* @__PURE__ */ U(Oa, [["__scopeId", "data-v-6c0980b5"]]), ee = (p) =
|
|
|
1058
1064
|
]));
|
|
1059
1065
|
}
|
|
1060
1066
|
});
|
|
1061
|
-
const
|
|
1067
|
+
const Ao = /* @__PURE__ */ X(ho, [["__scopeId", "data-v-2f3d502d"]]);
|
|
1062
1068
|
export {
|
|
1063
|
-
|
|
1069
|
+
Ao as default
|
|
1064
1070
|
};
|