@genpact/genome.mfe.mgtwin-app 1.1.302-alpha → 1.1.304-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/{ArrowLeftCircleIcon-7e2b4027.mjs → ArrowLeftCircleIcon-9bede7c3.mjs} +1 -1
- package/dist/{AssessmentAMA-2deebb42.mjs → AssessmentAMA-c68017ce.mjs} +142 -142
- package/dist/{AssessmentSimulation-8cefafd5.mjs → AssessmentSimulation-aa93526d.mjs} +5 -5
- package/dist/{EditSkillAdminData-b0afd89e.mjs → EditSkillAdminData-1bc884bc.mjs} +3 -3
- package/dist/{EditSkillData-ccf3724a.mjs → EditSkillData-e81a6017.mjs} +3 -3
- package/dist/{HomeView-bff6475c.mjs → HomeView-ccf81ea8.mjs} +5 -5
- package/dist/{Loading-8eb7a002.mjs → Loading-0be0caad.mjs} +1 -1
- package/dist/{LoadingSimulation-56921bf4.mjs → LoadingSimulation-092404b9.mjs} +1 -1
- package/dist/{Modal-95f5642e.mjs → Modal-2a913816.mjs} +1 -1
- package/dist/{PaperAirplaneIcon-01e88008.mjs → PaperAirplaneIcon-0303759e.mjs} +1 -1
- package/dist/{PromptTesting-26bc6e2a.mjs → PromptTesting-a4b8f945.mjs} +3 -3
- package/dist/{SkillAutomation-c841a90a.mjs → SkillAutomation-cf482672.mjs} +3 -3
- package/dist/{SkillData-cabbc442.mjs → SkillData-061985a1.mjs} +3 -3
- package/dist/{Testcase-6bbf66fa.mjs → Testcase-578ddd49.mjs} +3 -3
- package/dist/{UnderMaintenance-e0deb490.mjs → UnderMaintenance-97351b60.mjs} +1 -1
- package/dist/{_commonjsHelpers-d87d7365.mjs → _commonjsHelpers-8c67bafb.mjs} +1 -1
- package/dist/{api-df9ffdfc.mjs → api-30aaf5af.mjs} +1 -1
- package/dist/{main-09b2b572.mjs → main-e911afee.mjs} +592 -592
- package/dist/mgtwin.es.min.js +1 -1
- package/dist/mgtwin.umd.min.js +5 -5
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
import { _ as me, a as he, L as fe } from "./LoadingSimulation-
|
|
2
|
-
import { _ as ge, Q as
|
|
3
|
-
import { d as k, r as i, H as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { p as ie, g as de } from "./api-
|
|
1
|
+
import { _ as me, a as he, L as fe } from "./LoadingSimulation-092404b9.mjs";
|
|
2
|
+
import { _ as ge, Q as P, a as ve } from "./Modal-2a913816.mjs";
|
|
3
|
+
import { d as k, r as i, H as j, o as d, c as p, a as t, u as F, y as B, t as N, G as xe, p as G, g as V, C as D, z as ye, h as b, F as we, e as Ae, f as T, b as $, k as ue, w as be, m as $e, L as ke, q as U, s as qe, l as Me } from "./main-e911afee.mjs";
|
|
4
|
+
import { _ as L } from "./_plugin-vue_export-helper-dad06003.mjs";
|
|
5
|
+
import { p as ie, g as de } from "./api-30aaf5af.mjs";
|
|
6
6
|
import "./loadernew-ac153a51.mjs";
|
|
7
|
-
const Ie = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#021c42] md:pr-6 lg:pr-6" }, Le = ["href"], Se = /* @__PURE__ */
|
|
7
|
+
const Ie = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#021c42] md:pr-6 lg:pr-6" }, Le = ["href"], Se = /* @__PURE__ */ t("img", {
|
|
8
8
|
class: "h-11 w-auto cursor-pointer",
|
|
9
9
|
src: me,
|
|
10
10
|
alt: "Genome Logo"
|
|
11
11
|
}, null, -1), Ee = [
|
|
12
12
|
Se
|
|
13
|
-
], Fe = ["href"],
|
|
13
|
+
], Fe = ["href"], Ne = /* @__PURE__ */ t("img", {
|
|
14
14
|
class: "h-9 w-28 cursor-pointer md:w-36",
|
|
15
15
|
src: ge,
|
|
16
16
|
alt: "Aiguru Logo"
|
|
17
|
-
}, null, -1),
|
|
18
|
-
|
|
19
|
-
],
|
|
17
|
+
}, null, -1), Re = [
|
|
18
|
+
Ne
|
|
19
|
+
], Ce = /* @__PURE__ */ k({
|
|
20
20
|
__name: "headerAMA",
|
|
21
21
|
setup(l) {
|
|
22
|
-
const
|
|
23
|
-
return
|
|
24
|
-
|
|
22
|
+
const s = i(""), n = i("");
|
|
23
|
+
return j === "prod" ? s.value = "https://genome.genpact.com" : s.value = "https://genome-dev.genpact.com", j === "prod" ? n.value = "https://genome.genpact.com/#aiguru" : n.value = "https://genome-dev.genpact.com/#aiguru", (a, m) => (d(), p("nav", Ie, [
|
|
24
|
+
t("a", {
|
|
25
25
|
class: "px-2 md:px-0 lg:px-0",
|
|
26
|
-
href:
|
|
26
|
+
href: s.value,
|
|
27
27
|
target: "_blank"
|
|
28
28
|
}, Ee, 8, Le),
|
|
29
|
-
|
|
29
|
+
t("a", {
|
|
30
30
|
class: "px-2 md:px-0 lg:px-0",
|
|
31
31
|
href: n.value,
|
|
32
32
|
target: "_blank"
|
|
33
|
-
},
|
|
33
|
+
}, Re, 8, Fe)
|
|
34
34
|
]));
|
|
35
35
|
}
|
|
36
|
-
}), Qe = { class: "flex items-end justify-start" },
|
|
36
|
+
}), Qe = { class: "flex items-end justify-start" }, Pe = { class: "fontFormattingAMA w-full bg-gray-100 rounded-lg" }, Te = { class: "w-full rounded-md px-3 py-2 text-lg font-bold text-black text-[18px] md:text-[22px]" }, je = /* @__PURE__ */ t("div", { class: "w-full px-3 py-2 text-base text-black text-[12px] md:text-[16px] font-[550]" }, " Need help with a concept, information on Genpact offerings, productivity tips or Gen AI ideas - Ask me anything ", -1), Be = /* @__PURE__ */ t("br", null, null, -1), Ue = /* @__PURE__ */ k({
|
|
37
37
|
__name: "greetingsAMA",
|
|
38
38
|
setup(l) {
|
|
39
|
-
const
|
|
40
|
-
return (
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
39
|
+
const s = F(), n = ` Hi ${s.learnerName || "Expert"}, and welcome!`, a = B(() => n);
|
|
40
|
+
return B(() => s.welcomeMessage), (m, h) => (d(), p("section", null, [
|
|
41
|
+
t("div", Qe, [
|
|
42
|
+
t("div", Pe, [
|
|
43
|
+
t("div", Te, N(a.value), 1),
|
|
44
|
+
je
|
|
45
45
|
])
|
|
46
46
|
]),
|
|
47
|
-
|
|
47
|
+
Be
|
|
48
48
|
]));
|
|
49
49
|
}
|
|
50
|
-
}),
|
|
50
|
+
}), Ge = { class: "fontFormattingAMA flex items-end justify-start py-2" }, Ve = { class: "line-break w-full bg-gray-100 p-3 text-sm text-black md:text-[15px] rounded-lg" }, De = ["innerHTML"], He = /* @__PURE__ */ k({
|
|
51
51
|
__name: "responseAMA",
|
|
52
52
|
props: {
|
|
53
53
|
answer: {
|
|
@@ -56,24 +56,24 @@ const Ie = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#0
|
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
setup(l) {
|
|
59
|
-
const
|
|
60
|
-
const a =
|
|
59
|
+
const s = l, n = B(() => {
|
|
60
|
+
const a = s.answer.replace(/[*#]/g, "").replace(
|
|
61
61
|
/Assessment Rating & Feedback/g,
|
|
62
62
|
'<div style="font-size: 26px; font-weight: bold; text-decoration: underline;">Rating & Feedback</div>'
|
|
63
63
|
), m = /\[([^\]]+)\]\((https?:\/\/[^\s]+)\)/g;
|
|
64
64
|
return a.replace(m, (h, c, o) => `<a href="${o}" target="_blank" rel="noopener noreferrer" style="color: blue; text-decoration: underline;">${c}</a>`);
|
|
65
65
|
});
|
|
66
|
-
return (a, m) => (d(), p("div",
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
return (a, m) => (d(), p("div", Ge, [
|
|
67
|
+
t("div", Ve, [
|
|
68
|
+
t("span", {
|
|
69
69
|
class: "fontFormattingAMA",
|
|
70
70
|
innerHTML: n.value
|
|
71
|
-
}, null, 8,
|
|
71
|
+
}, null, 8, De)
|
|
72
72
|
])
|
|
73
73
|
]));
|
|
74
74
|
}
|
|
75
75
|
});
|
|
76
|
-
const
|
|
76
|
+
const Oe = /* @__PURE__ */ L(He, [["__scopeId", "data-v-38edcca6"]]), ze = { class: "flex justify-end items-end py-3" }, Ye = { class: "max-w-[80%]" }, We = { class: "w-fit md:text-[15px] fontFormattingAMA text-sm text-white bg-genpact-blue-box leading-6 p-3 rounded-lg" }, Ze = /* @__PURE__ */ k({
|
|
77
77
|
__name: "learnerAMA",
|
|
78
78
|
props: {
|
|
79
79
|
question: {
|
|
@@ -82,20 +82,20 @@ const ze = /* @__PURE__ */ S(Oe, [["__scopeId", "data-v-38edcca6"]]), Ge = { cla
|
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
setup(l) {
|
|
85
|
-
return (
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
return (s, n) => (d(), p("div", ze, [
|
|
86
|
+
t("div", Ye, [
|
|
87
|
+
t("div", We, N(l.question), 1)
|
|
88
88
|
])
|
|
89
89
|
]));
|
|
90
90
|
}
|
|
91
|
-
}), Ke = (l) => (
|
|
92
|
-
/* @__PURE__ */
|
|
93
|
-
/* @__PURE__ */
|
|
94
|
-
/* @__PURE__ */
|
|
95
|
-
], -1)),
|
|
91
|
+
}), Ke = (l) => (G("data-v-12a02acf"), l = l(), V(), l), Je = { class: "flex w-full flex-col items-start justify-start bg-white" }, Xe = { class: "bot-typing-animation gap-1" }, et = { class: "block w-full text-lg italic text-gray-800" }, tt = /* @__PURE__ */ Ke(() => /* @__PURE__ */ t("span", { class: "dot-animation" }, [
|
|
92
|
+
/* @__PURE__ */ t("span", null, "."),
|
|
93
|
+
/* @__PURE__ */ t("span", null, "."),
|
|
94
|
+
/* @__PURE__ */ t("span", null, ".")
|
|
95
|
+
], -1)), st = /* @__PURE__ */ xe('<div class="block w-full max-w-full items-stretch" data-v-12a02acf><div class="flex animate-pulse items-start justify-start space-x-4" data-v-12a02acf><div class="flex-1 space-y-6 py-1" data-v-12a02acf><div class="h-2 w-full rounded bg-gray-300" data-v-12a02acf></div><div class="space-y-3" data-v-12a02acf><div class="grid grid-cols-3 gap-4" data-v-12a02acf><div class="col-span-2 h-2 rounded bg-gray-300" data-v-12a02acf></div><div class="col-span-1 h-2 rounded bg-gray-300" data-v-12a02acf></div></div><div class="h-2 rounded bg-gray-300" data-v-12a02acf></div></div></div></div></div>', 1), at = /* @__PURE__ */ k({
|
|
96
96
|
__name: "LoadingResponseAMA",
|
|
97
97
|
setup(l) {
|
|
98
|
-
const
|
|
98
|
+
const s = i("Generating response"), n = i([
|
|
99
99
|
"This may take a few seconds",
|
|
100
100
|
"Fetching the best response for you",
|
|
101
101
|
"Thinking... give me a moment",
|
|
@@ -106,26 +106,26 @@ const ze = /* @__PURE__ */ S(Oe, [["__scopeId", "data-v-38edcca6"]]), Ge = { cla
|
|
|
106
106
|
]);
|
|
107
107
|
return setTimeout(() => {
|
|
108
108
|
const a = Math.floor(Math.random() * n.value.length);
|
|
109
|
-
|
|
109
|
+
s.value = n.value[a];
|
|
110
110
|
}, 15e3), (a, m) => (d(), p("div", Je, [
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
111
|
+
t("div", Xe, [
|
|
112
|
+
t("div", et, N(s.value), 1),
|
|
113
|
+
tt
|
|
114
114
|
]),
|
|
115
|
-
|
|
115
|
+
st
|
|
116
116
|
]));
|
|
117
117
|
}
|
|
118
118
|
});
|
|
119
|
-
const
|
|
119
|
+
const ot = /* @__PURE__ */ L(at, [["__scopeId", "data-v-12a02acf"]]), nt = { key: 0 }, rt = { key: 1 }, lt = {
|
|
120
120
|
key: 0,
|
|
121
121
|
class: "flex"
|
|
122
|
-
},
|
|
122
|
+
}, ct = /* @__PURE__ */ k({
|
|
123
123
|
__name: "conversationAMA",
|
|
124
124
|
setup(l) {
|
|
125
|
-
let
|
|
126
|
-
|
|
127
|
-
const a =
|
|
128
|
-
return
|
|
125
|
+
let s = i(""), n = i("");
|
|
126
|
+
s.value = '<a style="color:#00AECF;"', n.value = '<ul style="list-style: disc !important; margin-left: 3.5rem !important; padding: 0;"';
|
|
127
|
+
const a = F(), m = i();
|
|
128
|
+
return D(() => {
|
|
129
129
|
var o;
|
|
130
130
|
const h = document.getElementsByName("askQuestion"), c = Array.from(h);
|
|
131
131
|
h.length && ((o = c == null ? void 0 : c.pop()) == null || o.scrollIntoView({ behavior: "smooth", block: "center" }));
|
|
@@ -140,7 +140,7 @@ const os = /* @__PURE__ */ S(as, [["__scopeId", "data-v-12a02acf"]]), ns = { key
|
|
|
140
140
|
}, [
|
|
141
141
|
b(Ue),
|
|
142
142
|
(d(!0), p(we, null, Ae($(a).conversations, (o, f) => (d(), p("div", { key: f }, [
|
|
143
|
-
o.question ? (d(), p("div",
|
|
143
|
+
o.question ? (d(), p("div", nt, [
|
|
144
144
|
b(Ze, {
|
|
145
145
|
question: o.question,
|
|
146
146
|
c2question: o.c2question,
|
|
@@ -149,150 +149,150 @@ const os = /* @__PURE__ */ S(as, [["__scopeId", "data-v-12a02acf"]]), ns = { key
|
|
|
149
149
|
name: "askQuestion",
|
|
150
150
|
"que-id": f
|
|
151
151
|
}, null, 8, ["question", "c2question", "show-feedback", "id", "que-id"])
|
|
152
|
-
])) :
|
|
153
|
-
o.answer ? (d(), p("div",
|
|
154
|
-
b(
|
|
152
|
+
])) : T("", !0),
|
|
153
|
+
o.answer ? (d(), p("div", rt, [
|
|
154
|
+
b(Oe, {
|
|
155
155
|
question: o == null ? void 0 : o.question,
|
|
156
156
|
c2question: o == null ? void 0 : o.c2question,
|
|
157
157
|
"show-sources": o == null ? void 0 : o.showSources,
|
|
158
158
|
questionId: o.id,
|
|
159
|
-
answer: o.answer.replaceAll("<a", $(
|
|
159
|
+
answer: o.answer.replaceAll("<a", $(s)).replaceAll("<ul", $(n)),
|
|
160
160
|
"show-feedback": o.showFeedback,
|
|
161
161
|
"related-ques": o.relatedQues,
|
|
162
162
|
"options-array": o.optionsArray,
|
|
163
163
|
"ans-id": f
|
|
164
164
|
}, null, 8, ["question", "c2question", "show-sources", "questionId", "answer", "show-feedback", "related-ques", "options-array", "ans-id"])
|
|
165
|
-
])) :
|
|
165
|
+
])) : T("", !0)
|
|
166
166
|
]))), 128)),
|
|
167
|
-
$(a).dotLoader ? (d(), p("div",
|
|
168
|
-
b(
|
|
169
|
-
])) :
|
|
167
|
+
$(a).dotLoader ? (d(), p("div", lt, [
|
|
168
|
+
b(ot)
|
|
169
|
+
])) : T("", !0)
|
|
170
170
|
], 512));
|
|
171
171
|
}
|
|
172
172
|
});
|
|
173
|
-
const
|
|
174
|
-
|
|
175
|
-
],
|
|
173
|
+
const it = /* @__PURE__ */ L(ct, [["__scopeId", "data-v-e6168dd4"]]), R = (l) => (G("data-v-bc70baaf"), l = l(), V(), l), dt = { class: "z-3 absolute bottom-0 mt-4 w-full bg-white px-2 md:px-6" }, ut = { class: "py-2" }, pt = { class: "flex" }, _t = { class: "z-1 relative w-full" }, mt = { class: "relative w-full" }, ht = { class: "absolute inset-y-0 right-0 flex items-center md:pr-8 pr-3" }, ft = { key: 0 }, gt = /* @__PURE__ */ R(() => /* @__PURE__ */ t("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)), vt = [
|
|
174
|
+
gt
|
|
175
|
+
], xt = {
|
|
176
176
|
key: 1,
|
|
177
177
|
class: "tooltip"
|
|
178
|
-
},
|
|
178
|
+
}, yt = /* @__PURE__ */ R(() => /* @__PURE__ */ t("span", { class: "tooltiptext fontFormattingAMA" }, "Waiting for response", -1)), wt = /* @__PURE__ */ R(() => /* @__PURE__ */ t("img", {
|
|
179
179
|
class: "w-7 h-7",
|
|
180
180
|
src: he,
|
|
181
181
|
alt: "watingIcon"
|
|
182
|
-
}, null, -1)),
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
],
|
|
186
|
-
/* @__PURE__ */
|
|
187
|
-
], -1)),
|
|
182
|
+
}, null, -1)), At = [
|
|
183
|
+
yt,
|
|
184
|
+
wt
|
|
185
|
+
], bt = { class: "flex justify-start" }, $t = { class: "flex justify-start items-start text-[#161916]" }, kt = /* @__PURE__ */ R(() => /* @__PURE__ */ t("div", { class: "pt-1 text-start font-sans" }, [
|
|
186
|
+
/* @__PURE__ */ t("div", { class: "text-xs font-bold text-gray-500 md:text-sm" }, " Note: AI-generated response may not be fully accurate; check with experts for critical information. ")
|
|
187
|
+
], -1)), qt = /* @__PURE__ */ k({
|
|
188
188
|
__name: "NewQuestionAMA",
|
|
189
189
|
setup(l) {
|
|
190
|
-
const
|
|
191
|
-
|
|
192
|
-
const a = i(null), m = i(!1), h = i(
|
|
193
|
-
|
|
190
|
+
const s = F(), n = ue();
|
|
191
|
+
s.question = "";
|
|
192
|
+
const a = i(null), m = i(!1), h = i(P), c = i(!1);
|
|
193
|
+
D(() => {
|
|
194
194
|
a.value.focus();
|
|
195
195
|
});
|
|
196
|
-
const o = (y) => new URLSearchParams(window.location.search).get(y) || "", f = i(o("amaId")),
|
|
196
|
+
const o = (y) => new URLSearchParams(window.location.search).get(y) || "", f = i(o("amaId")), O = i(o("corpusId")), q = (y) => {
|
|
197
197
|
const u = y.length;
|
|
198
|
-
h.value =
|
|
199
|
-
},
|
|
198
|
+
h.value = P - u, m.value = u >= P;
|
|
199
|
+
}, S = async () => {
|
|
200
200
|
var y, u, _, v, w, A;
|
|
201
201
|
try {
|
|
202
|
-
if (
|
|
202
|
+
if (s.question.trim().length < 1) {
|
|
203
203
|
n.setError("Please enter answer!");
|
|
204
204
|
return;
|
|
205
205
|
}
|
|
206
|
-
if (
|
|
206
|
+
if (s.amaQuestionsLeft <= 0) {
|
|
207
207
|
n.setError("You have exhausted your question limit!");
|
|
208
208
|
return;
|
|
209
209
|
}
|
|
210
|
-
c.value = !0,
|
|
210
|
+
c.value = !0, s.dotLoader = !0;
|
|
211
211
|
const g = {
|
|
212
|
-
question:
|
|
212
|
+
question: s.question
|
|
213
213
|
};
|
|
214
|
-
|
|
214
|
+
s.conversations.push(g);
|
|
215
215
|
const r = i("");
|
|
216
|
-
r.value =
|
|
216
|
+
r.value = s.question, s.question = "";
|
|
217
217
|
const x = {
|
|
218
218
|
amaId: f.value,
|
|
219
|
-
amaCorpusId:
|
|
220
|
-
past_messages:
|
|
219
|
+
amaCorpusId: O.value,
|
|
220
|
+
past_messages: s.past_messages,
|
|
221
221
|
question: r.value,
|
|
222
|
-
prompt:
|
|
223
|
-
}, M = await ie("/
|
|
222
|
+
prompt: s.generatedPrompt
|
|
223
|
+
}, M = await ie("/agenticRAG", x);
|
|
224
224
|
if (((u = (y = M == null ? void 0 : M.data) == null ? void 0 : y.body) == null ? void 0 : u.answer) === "") {
|
|
225
225
|
console.log("in the if case calling api again");
|
|
226
|
-
const
|
|
227
|
-
|
|
226
|
+
const E = await ie("/agenticRAG", x);
|
|
227
|
+
s.addConversation((_ = E.data) == null ? void 0 : _.body, "new");
|
|
228
228
|
} else
|
|
229
|
-
|
|
230
|
-
c.value = !1,
|
|
229
|
+
s.addConversation((v = M.data) == null ? void 0 : v.body, "new");
|
|
230
|
+
c.value = !1, s.dotLoader = !1;
|
|
231
231
|
} catch (g) {
|
|
232
|
-
if (console.error(g),
|
|
232
|
+
if (console.error(g), s.dotLoader = !1, c.value = !1, U.isAxiosError(g)) {
|
|
233
233
|
const r = g;
|
|
234
234
|
console.log("Error found!"), console.error((w = r.response) == null ? void 0 : w.data), n.setError(((A = r.response) == null ? void 0 : A.data).message);
|
|
235
235
|
} else
|
|
236
236
|
n.setError("There was an issue, please contact helpmate");
|
|
237
237
|
}
|
|
238
238
|
};
|
|
239
|
-
return (y, u) => (d(), p("div",
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
c.value ? (d(), p("div",
|
|
239
|
+
return (y, u) => (d(), p("div", dt, [
|
|
240
|
+
t("div", ut, [
|
|
241
|
+
t("div", pt, [
|
|
242
|
+
t("div", _t, [
|
|
243
|
+
t("div", mt, [
|
|
244
|
+
t("div", ht, [
|
|
245
|
+
c.value ? (d(), p("div", xt, At)) : (d(), p("div", ft, [
|
|
246
246
|
(d(), p("svg", {
|
|
247
|
-
onClick: u[0] || (u[0] = (_) =>
|
|
247
|
+
onClick: u[0] || (u[0] = (_) => S()),
|
|
248
248
|
xmlns: "http://www.w3.org/2000/svg",
|
|
249
249
|
fill: "currentColor",
|
|
250
250
|
class: "bi bi-send ml-2 h-7 w-7 rotate-45 rounded",
|
|
251
251
|
viewBox: "0 0 16 16"
|
|
252
|
-
},
|
|
252
|
+
}, vt))
|
|
253
253
|
]))
|
|
254
254
|
]),
|
|
255
|
-
|
|
256
|
-
be(
|
|
255
|
+
t("div", bt, [
|
|
256
|
+
be(t("input", {
|
|
257
257
|
onKeyup: [
|
|
258
|
-
u[1] || (u[1] = ke((_) => c.value ? "" :
|
|
259
|
-
u[3] || (u[3] = (_) => q($(
|
|
258
|
+
u[1] || (u[1] = ke((_) => c.value ? "" : S(), ["enter"])),
|
|
259
|
+
u[3] || (u[3] = (_) => q($(s).question))
|
|
260
260
|
],
|
|
261
|
-
"onUpdate:modelValue": u[2] || (u[2] = (_) => $(
|
|
261
|
+
"onUpdate:modelValue": u[2] || (u[2] = (_) => $(s).question = _),
|
|
262
262
|
class: "fontFormattingAMA rounded-lg flex w-full border border-genpact-darkest-teal py-[18px] pl-[30px] pr-[70px]",
|
|
263
263
|
placeholder: "Write your answer here...",
|
|
264
264
|
type: "text",
|
|
265
265
|
ref_key: "AiSearch",
|
|
266
266
|
ref: a
|
|
267
267
|
}, null, 544), [
|
|
268
|
-
[$e, $(
|
|
268
|
+
[$e, $(s).question]
|
|
269
269
|
])
|
|
270
270
|
])
|
|
271
271
|
]),
|
|
272
|
-
|
|
273
|
-
|
|
272
|
+
t("div", $t, N($(s).amaQuestionsLeft) + " questions remaining for the day ", 1),
|
|
273
|
+
kt
|
|
274
274
|
])
|
|
275
275
|
])
|
|
276
276
|
])
|
|
277
277
|
]));
|
|
278
278
|
}
|
|
279
279
|
});
|
|
280
|
-
const
|
|
281
|
-
/* @__PURE__ */
|
|
282
|
-
/* @__PURE__ */
|
|
283
|
-
], -1)),
|
|
280
|
+
const Mt = /* @__PURE__ */ L(qt, [["__scopeId", "data-v-bc70baaf"]]), H = (l) => (G("data-v-263db3f3"), l = l(), V(), l), It = /* @__PURE__ */ H(() => /* @__PURE__ */ t("div", { class: "max-h-screen overflow-auto md:p-6 p-3 flex flex-col items-center justify-center gap-4 text-[#161916]" }, [
|
|
281
|
+
/* @__PURE__ */ t("div", { class: "text-2xl font-[700]" }, "Assessment Access Required"),
|
|
282
|
+
/* @__PURE__ */ t("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 ")
|
|
283
|
+
], -1)), Lt = {
|
|
284
284
|
key: 1,
|
|
285
285
|
className: "h-screen flex flex-col items-stretch"
|
|
286
|
-
},
|
|
286
|
+
}, St = { class: "z-20" }, Et = /* @__PURE__ */ H(() => /* @__PURE__ */ t("div", { class: "mt-6" }, null, -1)), Ft = { class: "flex h-full items-stretch overflow-hidden" }, Nt = { class: "mx-auto w-11/12 bg-white" }, Rt = { class: "relative flex h-full w-full flex-col items-stretch overflow-hidden" }, Ct = /* @__PURE__ */ H(() => /* @__PURE__ */ t("div", { class: "mt-[160px]" }, null, -1)), Qt = { class: "relative" }, Pt = /* @__PURE__ */ k({
|
|
287
287
|
__name: "AssessmentAMA",
|
|
288
288
|
setup(l) {
|
|
289
|
-
const
|
|
289
|
+
const s = i(!0), n = i(!1), a = F(), m = ue(), h = i("");
|
|
290
290
|
let c = "", o = "", f = "";
|
|
291
291
|
const q = i(((_) => new URLSearchParams(window.location.search).get(_) || "")("amaId"));
|
|
292
292
|
a.amaSkillId = q.value ?? "";
|
|
293
|
-
const
|
|
294
|
-
|
|
295
|
-
|
|
293
|
+
const S = ["703331197", "703380812", "703331909", "703363051", "703319578"];
|
|
294
|
+
D(async () => {
|
|
295
|
+
s.value = !0, await y(), s.value = !1;
|
|
296
296
|
});
|
|
297
297
|
const y = async () => {
|
|
298
298
|
var _, v, w, A, g;
|
|
@@ -312,7 +312,7 @@ const Ms = /* @__PURE__ */ S(qs, [["__scopeId", "data-v-cf5c2d94"]]), O = (l) =>
|
|
|
312
312
|
);
|
|
313
313
|
a.initialize(r.data), await u();
|
|
314
314
|
} catch (r) {
|
|
315
|
-
if (console.error(r),
|
|
315
|
+
if (console.error(r), s.value = !1, U.isAxiosError(r) && ((_ = r.response) != null && _.status) || r && typeof r == "object" && "response" in r && r.response && typeof r.response == "object" && "status" in r.response && r.response.status) {
|
|
316
316
|
const x = r;
|
|
317
317
|
if (console.log("Error found!"), console.error((v = x.response) == null ? void 0 : v.data), ((w = x.response) == null ? void 0 : w.status) === 424 || ((A = x.response) == null ? void 0 : A.status) === 425) {
|
|
318
318
|
n.value = !0;
|
|
@@ -323,18 +323,18 @@ const Ms = /* @__PURE__ */ S(qs, [["__scopeId", "data-v-cf5c2d94"]]), O = (l) =>
|
|
|
323
323
|
m.setError("There was an issue, please contact helpmate");
|
|
324
324
|
}
|
|
325
325
|
}, u = async () => {
|
|
326
|
-
var _, v, w, A, g, r, x, M,
|
|
326
|
+
var _, v, w, A, g, r, x, M, C, E, z, Y, W, Z, K, J, X, ee, te, se, ae, oe, ne, re, le, ce;
|
|
327
327
|
console.log("Start getAssessmentDetails");
|
|
328
328
|
try {
|
|
329
|
-
|
|
329
|
+
j === "prod" ? c = `https://api-v2-dev.genpact.com/api/my-profile/ama-master/getAMADetailsById?id=${q.value}` : c = `https://api-v2-dev.genpact.com/api/my-profile/ama-master/getAMADetailsById?id=${q.value}`;
|
|
330
330
|
const e = await de(c);
|
|
331
|
-
console.log("response from GetAMA", e), h.value = (v = (_ = e == null ? void 0 : e.data) == null ? void 0 : _.data) == null ? void 0 : v.name, a.welcomeMessage = (A = (w = e == null ? void 0 : e.data) == null ? void 0 : w.data) == null ? void 0 : A.displayMsg, console.log("response from GetAMA skill Name", h.value), a.skillNameForSimulation = h.value, a.generatedPrompt = (r = (g = e == null ? void 0 : e.data) == null ? void 0 : g.data) == null ? void 0 : r.generatedPrompt, o = (M = (x = e == null ? void 0 : e.data) == null ? void 0 : x.data) == null ? void 0 : M.accessBand, f = (
|
|
332
|
-
const I = (Y = (
|
|
333
|
-
a.mcqType = (Z = (W = e == null ? void 0 : e.data) == null ? void 0 : W.data) == null ? void 0 : Z.mcqTypes, a.storeFinalFeedback = (J = (K = e == null ? void 0 : e.data) == null ? void 0 : K.data) == null ? void 0 : J.storeFinalFeedback, a.storeFinalScore = (ee = (X = e == null ? void 0 : e.data) == null ? void 0 : X.data) == null ? void 0 : ee.storeFinalScore, a.amaQuestionsLeft = (
|
|
331
|
+
console.log("response from GetAMA", e), h.value = (v = (_ = e == null ? void 0 : e.data) == null ? void 0 : _.data) == null ? void 0 : v.name, a.welcomeMessage = (A = (w = e == null ? void 0 : e.data) == null ? void 0 : w.data) == null ? void 0 : A.displayMsg, console.log("response from GetAMA skill Name", h.value), a.skillNameForSimulation = h.value, a.generatedPrompt = (r = (g = e == null ? void 0 : e.data) == null ? void 0 : g.data) == null ? void 0 : r.generatedPrompt, o = (M = (x = e == null ? void 0 : e.data) == null ? void 0 : x.data) == null ? void 0 : M.accessBand, f = (E = (C = e == null ? void 0 : e.data) == null ? void 0 : C.data) == null ? void 0 : E.accessOhrList;
|
|
332
|
+
const I = (Y = (z = e == null ? void 0 : e.data) == null ? void 0 : z.data) == null ? void 0 : Y.createdBy;
|
|
333
|
+
a.mcqType = (Z = (W = e == null ? void 0 : e.data) == null ? void 0 : W.data) == null ? void 0 : Z.mcqTypes, a.storeFinalFeedback = (J = (K = e == null ? void 0 : e.data) == null ? void 0 : K.data) == null ? void 0 : J.storeFinalFeedback, a.storeFinalScore = (ee = (X = e == null ? void 0 : e.data) == null ? void 0 : X.data) == null ? void 0 : ee.storeFinalScore, a.amaQuestionsLeft = (se = (te = e == null ? void 0 : e.data) == null ? void 0 : te.data) == null ? void 0 : se.amaQuestionsLeft, console.log("store mcqType====>", a.mcqType);
|
|
334
334
|
const pe = a == null ? void 0 : a.band_code;
|
|
335
335
|
console.log("accessBand , accessOhrList====>", o, f);
|
|
336
336
|
const Q = (ae = o == null ? void 0 : o.split(",")) == null ? void 0 : ae.map((_e) => _e.trim());
|
|
337
|
-
if (console.log("bands ,====>", Q), I === (a == null ? void 0 : a.ohr) ||
|
|
337
|
+
if (console.log("bands ,====>", Q), I === (a == null ? void 0 : a.ohr) || S.includes(a == null ? void 0 : a.ohr))
|
|
338
338
|
console.log("User has access to this assessment.");
|
|
339
339
|
else {
|
|
340
340
|
if (Q.length === 0 && f.length === 0)
|
|
@@ -360,7 +360,7 @@ const Ms = /* @__PURE__ */ S(qs, [["__scopeId", "data-v-cf5c2d94"]]), O = (l) =>
|
|
|
360
360
|
}
|
|
361
361
|
console.log("end getAssessmentDetails");
|
|
362
362
|
} catch (e) {
|
|
363
|
-
if (console.error(e),
|
|
363
|
+
if (console.error(e), s.value = !1, U.isAxiosError(e) && ((oe = e.response) != null && oe.status) || e && typeof e == "object" && "response" in e && e.response && typeof e.response == "object" && "status" in e.response && e.response.status) {
|
|
364
364
|
const I = e;
|
|
365
365
|
if (console.log("Error found!"), console.error((ne = I.response) == null ? void 0 : ne.data), ((re = I.response) == null ? void 0 : re.status) === 424 || ((le = I.response) == null ? void 0 : le.status) === 425) {
|
|
366
366
|
n.value = !0;
|
|
@@ -374,24 +374,24 @@ const Ms = /* @__PURE__ */ S(qs, [["__scopeId", "data-v-cf5c2d94"]]), O = (l) =>
|
|
|
374
374
|
return (_, v) => (d(), p("section", null, [
|
|
375
375
|
b(ve, { "is-visible": n.value }, {
|
|
376
376
|
default: qe(() => [
|
|
377
|
-
|
|
377
|
+
It
|
|
378
378
|
]),
|
|
379
379
|
_: 1
|
|
380
380
|
}, 8, ["is-visible"]),
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
b(
|
|
381
|
+
t("div", null, [
|
|
382
|
+
s.value ? (d(), Me(fe, { key: 0 })) : (d(), p("main", Lt, [
|
|
383
|
+
t("div", St, [
|
|
384
|
+
b(Ce)
|
|
385
385
|
]),
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
b(
|
|
391
|
-
|
|
386
|
+
Et,
|
|
387
|
+
t("div", Ft, [
|
|
388
|
+
t("div", Nt, [
|
|
389
|
+
t("div", Rt, [
|
|
390
|
+
b(it),
|
|
391
|
+
Ct
|
|
392
392
|
]),
|
|
393
|
-
|
|
394
|
-
b(
|
|
393
|
+
t("div", Qt, [
|
|
394
|
+
b(Mt)
|
|
395
395
|
])
|
|
396
396
|
])
|
|
397
397
|
])
|
|
@@ -400,7 +400,7 @@ const Ms = /* @__PURE__ */ S(qs, [["__scopeId", "data-v-cf5c2d94"]]), O = (l) =>
|
|
|
400
400
|
]));
|
|
401
401
|
}
|
|
402
402
|
});
|
|
403
|
-
const
|
|
403
|
+
const Dt = /* @__PURE__ */ L(Pt, [["__scopeId", "data-v-263db3f3"]]);
|
|
404
404
|
export {
|
|
405
|
-
|
|
405
|
+
Dt as default
|
|
406
406
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as Cl, a as ap, L as yl } from "./LoadingSimulation-
|
|
2
|
-
import { _ as Pl, a as cp, Q as jt, M as Ta } from "./Modal-
|
|
3
|
-
import { d as Ae, r as T, H as Pt, o as D, c as k, a as P, k as wt, u as De, C as Wt, q as Ee, y as qo, h as Ce, s as up, t as Ge, b as O, f as ye, i as ge, I as Ji, F as Fo, e as Uo, w as Zo, J as Rl, p as Vn, g as $n, G as Zi, z as El, K as wl, n as Lt, m as pp, L as dp, l as Al } from "./main-
|
|
4
|
-
import { g as Bn, p as Rt } from "./api-
|
|
5
|
-
import { c as q, a as Il, r as _l } from "./_commonjsHelpers-
|
|
1
|
+
import { _ as Cl, a as ap, L as yl } from "./LoadingSimulation-092404b9.mjs";
|
|
2
|
+
import { _ as Pl, a as cp, Q as jt, M as Ta } from "./Modal-2a913816.mjs";
|
|
3
|
+
import { d as Ae, r as T, H as Pt, o as D, c as k, a as P, k as wt, u as De, C as Wt, q as Ee, y as qo, h as Ce, s as up, t as Ge, b as O, f as ye, i as ge, I as Ji, F as Fo, e as Uo, w as Zo, J as Rl, p as Vn, g as $n, G as Zi, z as El, K as wl, n as Lt, m as pp, L as dp, l as Al } from "./main-e911afee.mjs";
|
|
4
|
+
import { g as Bn, p as Rt } from "./api-30aaf5af.mjs";
|
|
5
|
+
import { c as q, a as Il, r as _l } from "./_commonjsHelpers-8c67bafb.mjs";
|
|
6
6
|
import { _ as Vt } from "./_plugin-vue_export-helper-dad06003.mjs";
|
|
7
7
|
import "./loadernew-ac153a51.mjs";
|
|
8
8
|
const Tl = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#021c42] md:pr-6 lg:pr-6" }, bl = ["href"], Ml = /* @__PURE__ */ P("img", {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as G, M as z, o as n, c as d, a as e, h as L, b as c, u as H, k as O, r, w as h, m as k, n as S, v as $, F as q, e as P, t as b, q as D, D as T, p as Y, g as J, i as F } from "./main-
|
|
1
|
+
import { d as G, M as z, o as n, c as d, a as e, h as L, b as c, u as H, k as O, r, w as h, m as k, n as S, v as $, F as q, e as P, t as b, q as D, D as T, p as Y, g as J, i as F } from "./main-e911afee.mjs";
|
|
2
2
|
import { _ as j } from "./loadernew-ac153a51.mjs";
|
|
3
|
-
import { p as B, g as Q } from "./api-
|
|
3
|
+
import { p as B, g as Q } from "./api-30aaf5af.mjs";
|
|
4
4
|
import { _ as X } from "./genome-Logo-white-ffcf2413.mjs";
|
|
5
|
-
import { r as Z } from "./ArrowLeftCircleIcon-
|
|
5
|
+
import { r as Z } from "./ArrowLeftCircleIcon-9bede7c3.mjs";
|
|
6
6
|
import { _ as ee } from "./_plugin-vue_export-helper-dad06003.mjs";
|
|
7
7
|
const te = { className: "flex justify-between items-center gap-4 h-14" }, se = /* @__PURE__ */ e("div", { class: "font-bold text-base md:text-xl" }, "Back", -1), oe = /* @__PURE__ */ e("div", { class: "text-white font-bold md:text-xl text-base" }, "AI Guru Edit Skill Admin Data", -1), le = /* @__PURE__ */ e("img", {
|
|
8
8
|
class: "md:w-36 w-20",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as j, M as W, o as r, c, a as e, h as q, b as a, K as G, u as z, k as P, r as i, w as y, m as k, n as S, f as g, F as A, e as H, v as O, t as x, q as B, D as Y, p as J, g as Q, i as D } from "./main-
|
|
1
|
+
import { d as j, M as W, o as r, c, a as e, h as q, b as a, K as G, u as z, k as P, r as i, w as y, m as k, n as S, f as g, F as A, e as H, v as O, t as x, q as B, D as Y, p as J, g as Q, i as D } from "./main-e911afee.mjs";
|
|
2
2
|
import { _ as K } from "./loadernew-ac153a51.mjs";
|
|
3
|
-
import { p as $ } from "./api-
|
|
3
|
+
import { p as $ } from "./api-30aaf5af.mjs";
|
|
4
4
|
import { _ as X } from "./genome-Logo-white-ffcf2413.mjs";
|
|
5
|
-
import { r as Z } from "./ArrowLeftCircleIcon-
|
|
5
|
+
import { r as Z } from "./ArrowLeftCircleIcon-9bede7c3.mjs";
|
|
6
6
|
import { _ as ee } from "./_plugin-vue_export-helper-dad06003.mjs";
|
|
7
7
|
const te = { className: "flex justify-between items-center gap-4 h-14" }, se = /* @__PURE__ */ e("div", { class: "font-bold text-base md:text-xl" }, "Back", -1), oe = /* @__PURE__ */ e("div", { class: "text-white font-bold md:text-xl text-base" }, "AI Guru Edit Skill Data", -1), ae = /* @__PURE__ */ e("img", {
|
|
8
8
|
class: "md:w-36 w-20",
|