@genpact/genome.mfe.mgtwin-app 1.1.315-alpha → 1.1.316-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-39762b31.mjs → ArrowLeftCircleIcon-f48a3b81.mjs} +1 -1
- package/dist/AssessmentAMA-2e464489.mjs +354 -0
- package/dist/{AssessmentSimulation-e8b2b114.mjs → AssessmentSimulation-8e52f361.mjs} +5 -5
- package/dist/{EditSkillAdminData-da1542fa.mjs → EditSkillAdminData-a528fcce.mjs} +3 -3
- package/dist/{EditSkillData-2eafa942.mjs → EditSkillData-80fd9cf2.mjs} +3 -3
- package/dist/{HomeView-d7f2acb7.mjs → HomeView-21ca5038.mjs} +5 -5
- package/dist/{Loading-c7be062d.mjs → Loading-3792adf1.mjs} +1 -1
- package/dist/{LoadingSimulation-8a2c4725.mjs → LoadingSimulation-34c5f726.mjs} +1 -1
- package/dist/{Modal-65cfe959.mjs → Modal-67a1878a.mjs} +1 -1
- package/dist/{PaperAirplaneIcon-7966efb2.mjs → PaperAirplaneIcon-c75b786a.mjs} +1 -1
- package/dist/{PromptTesting-0b873496.mjs → PromptTesting-cbbc5049.mjs} +3 -3
- package/dist/{SkillAutomation-1d886d3f.mjs → SkillAutomation-03f94cc2.mjs} +3 -3
- package/dist/{SkillData-8fa9b186.mjs → SkillData-dbf89dbe.mjs} +3 -3
- package/dist/{Testcase-aefea752.mjs → Testcase-56747ba6.mjs} +3 -3
- package/dist/{UnderMaintenance-2a07f65e.mjs → UnderMaintenance-b59b5b42.mjs} +1 -1
- package/dist/{_commonjsHelpers-777ec84c.mjs → _commonjsHelpers-28e2523e.mjs} +1 -1
- package/dist/{api-4b466ad8.mjs → api-4be5e39f.mjs} +1 -1
- package/dist/{main-736b05ea.mjs → main-c03f45fa.mjs} +2224 -2223
- package/dist/mgtwin.es.min.js +1 -1
- package/dist/mgtwin.umd.min.js +15 -15
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/AssessmentAMA-b6427c19.mjs +0 -501
|
@@ -1,501 +0,0 @@
|
|
|
1
|
-
import { _ as H, a as B, L as G } from "./LoadingSimulation-8a2c4725.mjs";
|
|
2
|
-
import { _ as U, Q as S, a as V } from "./Modal-65cfe959.mjs";
|
|
3
|
-
import { d as v, r as c, H as R, o as d, c as _, a as s, u as $, y as L, t as q, G as D, p as C, g as T, C as P, z, h as k, F as O, e as W, f as I, b, k as N, w as Z, m as K, L as Y, q as Q, s as J, l as X } from "./main-736b05ea.mjs";
|
|
4
|
-
import { _ as A } from "./_plugin-vue_export-helper-dad06003.mjs";
|
|
5
|
-
import { p as ee, g as se } from "./api-4b466ad8.mjs";
|
|
6
|
-
import "./loadernew-ac153a51.mjs";
|
|
7
|
-
const ae = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#021c42] md:pr-6 lg:pr-6" }, te = ["href"], le = /* @__PURE__ */ s("img", {
|
|
8
|
-
class: "h-11 w-auto cursor-pointer",
|
|
9
|
-
src: H,
|
|
10
|
-
alt: "Genome Logo"
|
|
11
|
-
}, null, -1), ie = [
|
|
12
|
-
le
|
|
13
|
-
], oe = ["href"], ne = /* @__PURE__ */ s("img", {
|
|
14
|
-
class: "h-9 w-28 cursor-pointer md:w-36",
|
|
15
|
-
src: U,
|
|
16
|
-
alt: "Aiguru Logo"
|
|
17
|
-
}, null, -1), re = [
|
|
18
|
-
ne
|
|
19
|
-
], de = /* @__PURE__ */ v({
|
|
20
|
-
__name: "headerAMA",
|
|
21
|
-
setup(l) {
|
|
22
|
-
const e = c(""), t = c("");
|
|
23
|
-
return R === "prod" ? e.value = "https://genome.genpact.com" : e.value = "https://genome-dev.genpact.com", R === "prod" ? t.value = "https://genome.genpact.com/#aiguru" : t.value = "https://genome-dev.genpact.com/#aiguru", (o, u) => (d(), _("nav", ae, [
|
|
24
|
-
s("a", {
|
|
25
|
-
class: "px-2 md:px-0 lg:px-0",
|
|
26
|
-
href: e.value,
|
|
27
|
-
target: "_blank"
|
|
28
|
-
}, ie, 8, te),
|
|
29
|
-
s("a", {
|
|
30
|
-
class: "px-2 md:px-0 lg:px-0",
|
|
31
|
-
href: t.value,
|
|
32
|
-
target: "_blank"
|
|
33
|
-
}, re, 8, oe)
|
|
34
|
-
]));
|
|
35
|
-
}
|
|
36
|
-
}), ce = { class: "flex items-end justify-start" }, _e = { class: "fontFormattingAMA w-full bg-gray-100 rounded-lg" }, ue = { class: "w-full rounded-md px-3 py-2 text-lg font-bold text-black text-[18px] md:text-[22px]" }, me = ["innerHTML"], fe = { class: "w-full px-3 py-2 text-base text-black text-[12px] md:text-[16px] font-[550]" }, pe = ["innerHTML"], ge = /* @__PURE__ */ s("br", null, null, -1), he = /* @__PURE__ */ v({
|
|
37
|
-
__name: "greetingsAMA",
|
|
38
|
-
setup(l) {
|
|
39
|
-
const e = $(), t = ` Hi ${e.learnerName || "Learner"}! 👋`, o = L(() => t), u = L(() => `Welcome to AI Guru Connect — your on-demand learning buddy.<br/> Ask me anything about the <span class='font-[600]'>${e.amaSkillName || "Skill"}</span>, and I’ll give you quick, clear answers so you can keep learning without pause.`);
|
|
40
|
-
return (f, i) => (d(), _("section", null, [
|
|
41
|
-
s("div", ce, [
|
|
42
|
-
s("div", _e, [
|
|
43
|
-
s("div", ue, [
|
|
44
|
-
s("div", { innerHTML: o.value }, null, 8, me)
|
|
45
|
-
]),
|
|
46
|
-
s("div", fe, [
|
|
47
|
-
s("div", { innerHTML: u.value }, null, 8, pe)
|
|
48
|
-
])
|
|
49
|
-
])
|
|
50
|
-
]),
|
|
51
|
-
ge
|
|
52
|
-
]));
|
|
53
|
-
}
|
|
54
|
-
}), ke = { class: "fontFormattingAMA flex items-end justify-start py-2" }, be = { class: "line-break w-full bg-gray-100 p-3 text-sm text-black md:text-[15px] rounded-lg" }, ve = ["innerHTML"], xe = /* @__PURE__ */ v({
|
|
55
|
-
__name: "responseAMA",
|
|
56
|
-
props: {
|
|
57
|
-
answer: {
|
|
58
|
-
type: String,
|
|
59
|
-
required: !0
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
setup(l) {
|
|
63
|
-
const e = l, t = L(() => {
|
|
64
|
-
const o = e.answer.replace(/[*#]/g, "").replace(
|
|
65
|
-
/Assessment Rating & Feedback/g,
|
|
66
|
-
'<div style="font-size: 26px; font-weight: bold; text-decoration: underline;">Rating & Feedback</div>'
|
|
67
|
-
), u = /\[([^\]]+)\]\((https?:\/\/[^\s]+)\)/g;
|
|
68
|
-
return o.replace(u, (f, i, a) => `<a href="${a}" target="_blank" rel="noopener noreferrer" style="color: blue; text-decoration: underline;">${i}</a>`);
|
|
69
|
-
});
|
|
70
|
-
return (o, u) => (d(), _("div", ke, [
|
|
71
|
-
s("div", be, [
|
|
72
|
-
s("span", {
|
|
73
|
-
class: "fontFormattingAMA",
|
|
74
|
-
innerHTML: t.value
|
|
75
|
-
}, null, 8, ve)
|
|
76
|
-
])
|
|
77
|
-
]));
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
const ye = /* @__PURE__ */ A(xe, [["__scopeId", "data-v-38edcca6"]]), we = { class: "flex justify-end items-end py-3" }, Ae = { class: "max-w-[80%]" }, $e = { class: "w-fit md:text-[15px] fontFormattingAMA text-sm text-white bg-genpact-blue-box leading-6 p-3 rounded-lg" }, Me = /* @__PURE__ */ v({
|
|
81
|
-
__name: "learnerAMA",
|
|
82
|
-
props: {
|
|
83
|
-
question: {
|
|
84
|
-
type: String,
|
|
85
|
-
required: !0
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
setup(l) {
|
|
89
|
-
return (e, t) => (d(), _("div", we, [
|
|
90
|
-
s("div", Ae, [
|
|
91
|
-
s("div", $e, q(l.question), 1)
|
|
92
|
-
])
|
|
93
|
-
]));
|
|
94
|
-
}
|
|
95
|
-
}), Se = (l) => (C("data-v-12a02acf"), l = l(), T(), l), Ie = { class: "flex w-full flex-col items-start justify-start bg-white" }, Le = { class: "bot-typing-animation gap-1" }, qe = { class: "block w-full text-lg italic text-gray-800" }, Ce = /* @__PURE__ */ Se(() => /* @__PURE__ */ s("span", { class: "dot-animation" }, [
|
|
96
|
-
/* @__PURE__ */ s("span", null, "."),
|
|
97
|
-
/* @__PURE__ */ s("span", null, "."),
|
|
98
|
-
/* @__PURE__ */ s("span", null, ".")
|
|
99
|
-
], -1)), Te = /* @__PURE__ */ D('<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), Pe = /* @__PURE__ */ v({
|
|
100
|
-
__name: "LoadingResponseAMA",
|
|
101
|
-
setup(l) {
|
|
102
|
-
const e = c("Generating response"), t = c([
|
|
103
|
-
"This may take a few seconds",
|
|
104
|
-
"Fetching the best response for you",
|
|
105
|
-
"Thinking... give me a moment",
|
|
106
|
-
"One moment while I gather the information",
|
|
107
|
-
"Hang in tight, we are almost there",
|
|
108
|
-
"Almost there... just a bit longer",
|
|
109
|
-
"Compiling a response for you"
|
|
110
|
-
]);
|
|
111
|
-
return setTimeout(() => {
|
|
112
|
-
const o = Math.floor(Math.random() * t.value.length);
|
|
113
|
-
e.value = t.value[o];
|
|
114
|
-
}, 15e3), (o, u) => (d(), _("div", Ie, [
|
|
115
|
-
s("div", Le, [
|
|
116
|
-
s("div", qe, q(e.value), 1),
|
|
117
|
-
Ce
|
|
118
|
-
]),
|
|
119
|
-
Te
|
|
120
|
-
]));
|
|
121
|
-
}
|
|
122
|
-
});
|
|
123
|
-
const Ee = /* @__PURE__ */ A(Pe, [["__scopeId", "data-v-12a02acf"]]), Re = { key: 0 }, Ne = { key: 1 }, Qe = {
|
|
124
|
-
key: 0,
|
|
125
|
-
class: "flex"
|
|
126
|
-
}, Fe = /* @__PURE__ */ v({
|
|
127
|
-
__name: "conversationAMA",
|
|
128
|
-
setup(l) {
|
|
129
|
-
let e = c(""), t = c("");
|
|
130
|
-
e.value = '<a style="color:#00AECF;"', t.value = '<ul style="list-style: disc !important; margin-left: 3.5rem !important; padding: 0;"';
|
|
131
|
-
const o = $(), u = c();
|
|
132
|
-
return P(() => {
|
|
133
|
-
var a;
|
|
134
|
-
const f = document.getElementsByName("askQuestion"), i = Array.from(f);
|
|
135
|
-
f.length && ((a = i == null ? void 0 : i.pop()) == null || a.scrollIntoView({ behavior: "smooth", block: "center" }));
|
|
136
|
-
}), z(() => {
|
|
137
|
-
var a;
|
|
138
|
-
const f = document.getElementsByName("askQuestion"), i = Array.from(f);
|
|
139
|
-
f.length && ((a = i == null ? void 0 : i.pop()) == null || a.scrollIntoView({ behavior: "smooth", block: "center" }));
|
|
140
|
-
}), (f, i) => (d(), _("div", {
|
|
141
|
-
ref_key: "nestedElement",
|
|
142
|
-
ref: u,
|
|
143
|
-
class: "smooth-scroll overflow-auto md:px-6 px-2"
|
|
144
|
-
}, [
|
|
145
|
-
k(he),
|
|
146
|
-
(d(!0), _(O, null, W(b(o).conversations, (a, m) => (d(), _("div", { key: m }, [
|
|
147
|
-
a.question ? (d(), _("div", Re, [
|
|
148
|
-
k(Me, {
|
|
149
|
-
question: a.question,
|
|
150
|
-
c2question: a.c2question,
|
|
151
|
-
"show-feedback": a.showFeedback,
|
|
152
|
-
id: `qId${m}`,
|
|
153
|
-
name: "askQuestion",
|
|
154
|
-
"que-id": m
|
|
155
|
-
}, null, 8, ["question", "c2question", "show-feedback", "id", "que-id"])
|
|
156
|
-
])) : I("", !0),
|
|
157
|
-
a.answer ? (d(), _("div", Ne, [
|
|
158
|
-
k(ye, {
|
|
159
|
-
question: a == null ? void 0 : a.question,
|
|
160
|
-
c2question: a == null ? void 0 : a.c2question,
|
|
161
|
-
"show-sources": a == null ? void 0 : a.showSources,
|
|
162
|
-
questionId: a.id,
|
|
163
|
-
answer: a.answer.replaceAll("<a", b(e)).replaceAll("<ul", b(t)),
|
|
164
|
-
"show-feedback": a.showFeedback,
|
|
165
|
-
"related-ques": a.relatedQues,
|
|
166
|
-
"options-array": a.optionsArray,
|
|
167
|
-
"ans-id": m
|
|
168
|
-
}, null, 8, ["question", "c2question", "show-sources", "questionId", "answer", "show-feedback", "related-ques", "options-array", "ans-id"])
|
|
169
|
-
])) : I("", !0)
|
|
170
|
-
]))), 128)),
|
|
171
|
-
b(o).dotLoader ? (d(), _("div", Qe, [
|
|
172
|
-
k(Ee)
|
|
173
|
-
])) : I("", !0)
|
|
174
|
-
], 512));
|
|
175
|
-
}
|
|
176
|
-
});
|
|
177
|
-
const je = /* @__PURE__ */ A(Fe, [["__scopeId", "data-v-e6168dd4"]]), M = (l) => (C("data-v-482b2d96"), l = l(), T(), l), He = { class: "z-3 absolute bottom-0 mt-4 w-full bg-white px-2 md:px-6" }, Be = { class: "py-2" }, Ge = { class: "flex" }, Ue = { class: "z-1 relative w-full" }, Ve = { class: "relative w-full" }, De = { class: "absolute inset-y-0 right-0 flex items-center md:pr-8 pr-3" }, ze = { key: 0 }, Oe = /* @__PURE__ */ M(() => /* @__PURE__ */ s("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)), We = [
|
|
178
|
-
Oe
|
|
179
|
-
], Ze = {
|
|
180
|
-
key: 1,
|
|
181
|
-
class: "tooltip"
|
|
182
|
-
}, Ke = /* @__PURE__ */ M(() => /* @__PURE__ */ s("span", { class: "tooltiptext fontFormattingAMA" }, "Waiting for response", -1)), Ye = /* @__PURE__ */ M(() => /* @__PURE__ */ s("img", {
|
|
183
|
-
class: "w-7 h-7",
|
|
184
|
-
src: B,
|
|
185
|
-
alt: "watingIcon"
|
|
186
|
-
}, null, -1)), Je = [
|
|
187
|
-
Ke,
|
|
188
|
-
Ye
|
|
189
|
-
], Xe = { class: "flex justify-start" }, es = { class: "flex justify-start items-start text-[#161916]" }, ss = /* @__PURE__ */ M(() => /* @__PURE__ */ s("div", { class: "pt-1 text-start font-sans" }, [
|
|
190
|
-
/* @__PURE__ */ s("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. ")
|
|
191
|
-
], -1)), as = /* @__PURE__ */ v({
|
|
192
|
-
__name: "NewQuestionAMA",
|
|
193
|
-
setup(l) {
|
|
194
|
-
const e = $(), t = N();
|
|
195
|
-
e.question = "";
|
|
196
|
-
const o = c(null), u = c(!1), f = c(S), i = c(!1);
|
|
197
|
-
P(() => {
|
|
198
|
-
o.value.focus();
|
|
199
|
-
});
|
|
200
|
-
const m = c(((p) => new URLSearchParams(window.location.search).get(p) || "")("amaId"));
|
|
201
|
-
console.log("amaId", m.value);
|
|
202
|
-
const x = (p) => {
|
|
203
|
-
const r = p.length;
|
|
204
|
-
f.value = S - r, u.value = r >= S;
|
|
205
|
-
}, y = async () => {
|
|
206
|
-
var p, r, g, n;
|
|
207
|
-
try {
|
|
208
|
-
if (e.question.trim().length < 1) {
|
|
209
|
-
t.setError("Please enter answer!");
|
|
210
|
-
return;
|
|
211
|
-
}
|
|
212
|
-
if (e.amaQuestionsLeft <= 0) {
|
|
213
|
-
t.setError("You have exhausted your question limit!");
|
|
214
|
-
return;
|
|
215
|
-
}
|
|
216
|
-
i.value = !0, e.dotLoader = !0;
|
|
217
|
-
const h = {
|
|
218
|
-
question: e == null ? void 0 : e.question
|
|
219
|
-
};
|
|
220
|
-
e.conversations.push(h);
|
|
221
|
-
const w = c("");
|
|
222
|
-
w.value = e == null ? void 0 : e.question, e.question = "";
|
|
223
|
-
const F = {
|
|
224
|
-
skillId: m.value,
|
|
225
|
-
question: w.value,
|
|
226
|
-
past_messages: e.past_messages
|
|
227
|
-
}, j = await ee("/amaBotResponse", F);
|
|
228
|
-
e.addConversation((p = j.data) == null ? void 0 : p.body, "new"), i.value = !1, e.dotLoader = !1;
|
|
229
|
-
} catch (h) {
|
|
230
|
-
if (console.error(h), e.dotLoader = !1, i.value = !1, Q.isAxiosError(h)) {
|
|
231
|
-
const w = h;
|
|
232
|
-
console.log("Error found!"), console.error((r = w.response) == null ? void 0 : r.data), t.setError((n = (g = w.response) == null ? void 0 : g.data) == null ? void 0 : n.message);
|
|
233
|
-
} else
|
|
234
|
-
t.setError("There was an issue, please contact helpmate");
|
|
235
|
-
}
|
|
236
|
-
};
|
|
237
|
-
return (p, r) => (d(), _("div", He, [
|
|
238
|
-
s("div", Be, [
|
|
239
|
-
s("div", Ge, [
|
|
240
|
-
s("div", Ue, [
|
|
241
|
-
s("div", Ve, [
|
|
242
|
-
s("div", De, [
|
|
243
|
-
i.value ? (d(), _("div", Ze, Je)) : (d(), _("div", ze, [
|
|
244
|
-
(d(), _("svg", {
|
|
245
|
-
onClick: r[0] || (r[0] = (g) => y()),
|
|
246
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
247
|
-
fill: "currentColor",
|
|
248
|
-
class: "bi bi-send ml-2 h-7 w-7 rotate-45 rounded",
|
|
249
|
-
viewBox: "0 0 16 16"
|
|
250
|
-
}, We))
|
|
251
|
-
]))
|
|
252
|
-
]),
|
|
253
|
-
s("div", Xe, [
|
|
254
|
-
Z(s("input", {
|
|
255
|
-
onKeyup: [
|
|
256
|
-
r[1] || (r[1] = Y((g) => i.value ? "" : y(), ["enter"])),
|
|
257
|
-
r[3] || (r[3] = (g) => x(b(e).question))
|
|
258
|
-
],
|
|
259
|
-
"onUpdate:modelValue": r[2] || (r[2] = (g) => b(e).question = g),
|
|
260
|
-
class: "fontFormattingAMA rounded-lg flex w-full border border-genpact-darkest-teal py-[18px] pl-[30px] pr-[70px]",
|
|
261
|
-
placeholder: "Write your answer here...",
|
|
262
|
-
type: "text",
|
|
263
|
-
ref_key: "AiSearch",
|
|
264
|
-
ref: o
|
|
265
|
-
}, null, 544), [
|
|
266
|
-
[K, b(e).question]
|
|
267
|
-
])
|
|
268
|
-
])
|
|
269
|
-
]),
|
|
270
|
-
s("div", es, q(b(e).amaQuestionsLeft) + " questions remaining for the day ", 1),
|
|
271
|
-
ss
|
|
272
|
-
])
|
|
273
|
-
])
|
|
274
|
-
])
|
|
275
|
-
]));
|
|
276
|
-
}
|
|
277
|
-
});
|
|
278
|
-
const ts = /* @__PURE__ */ A(as, [["__scopeId", "data-v-482b2d96"]]), ls = (l) => {
|
|
279
|
-
var e;
|
|
280
|
-
return (e = is.find((t) => t.skill_id === l)) == null ? void 0 : e.skill_name;
|
|
281
|
-
}, is = [
|
|
282
|
-
{
|
|
283
|
-
skill_alias: "Client Relationships",
|
|
284
|
-
skill_name: "Client Relationships",
|
|
285
|
-
skill_id: "ac3c53d7-c355-429b-b196-799a1084f1e3"
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
skill_alias: "Trust and Safety",
|
|
289
|
-
skill_name: "Trust and Safety",
|
|
290
|
-
skill_id: "6a46531f-eead-4811-a22c-ba4c6649e52b",
|
|
291
|
-
skill_master_id: "a1486895-8395-4dba-a891-809ae02a59f0"
|
|
292
|
-
},
|
|
293
|
-
{
|
|
294
|
-
skill_alias: "Retail",
|
|
295
|
-
skill_name: "Retail",
|
|
296
|
-
skill_id: "72c55104-2d20-4477-a185-fc76e5855a44"
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
skill_alias: "Executive Presence",
|
|
300
|
-
skill_name: "Executive Presence",
|
|
301
|
-
skill_id: "3bf308ca-b85c-4f64-94d2-45870aaafa13"
|
|
302
|
-
},
|
|
303
|
-
{
|
|
304
|
-
skill_alias: "Hi-Tech",
|
|
305
|
-
skill_name: "Hi-Tech",
|
|
306
|
-
skill_id: "85a1058e-7ba2-4214-a708-7566ba51825f"
|
|
307
|
-
},
|
|
308
|
-
{
|
|
309
|
-
skill_alias: "Impact Commercial Models",
|
|
310
|
-
skill_name: "Impact Commercial Models",
|
|
311
|
-
skill_id: "7035d0aa-e6c8-11ec-8fea-0242ac120002"
|
|
312
|
-
},
|
|
313
|
-
{
|
|
314
|
-
skill_alias: "Agile",
|
|
315
|
-
skill_name: "Agile",
|
|
316
|
-
skill_id: "6cd7fdaa-e0ab-4190-9a83-ba523f4b5f9f",
|
|
317
|
-
skill_master_id: "6aba81fb-88c1-49e1-97af-2743be385abf"
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
skill_alias: "Collaboration Tools and Methods",
|
|
321
|
-
skill_name: "Collaboration Tools and Methods",
|
|
322
|
-
skill_id: "261b3031-ba90-4f12-ba60-25025fc6408e"
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
skill_alias: "People Leadership",
|
|
326
|
-
skill_name: "People Leadership",
|
|
327
|
-
skill_id: "e3376031-1b14-48b1-b61b-deb68e0c4bb2",
|
|
328
|
-
skill_master_id: "8500c2a5-dafb-4aa9-acc2-038334147857"
|
|
329
|
-
},
|
|
330
|
-
{
|
|
331
|
-
skill_alias: "Banking and Capital Markets",
|
|
332
|
-
skill_name: "Banking and Capital Markets",
|
|
333
|
-
skill_id: "93f65205-4c5b-4767-b778-906a5f3429d0"
|
|
334
|
-
},
|
|
335
|
-
{
|
|
336
|
-
skill_alias: "Information Security",
|
|
337
|
-
skill_name: "Information Security",
|
|
338
|
-
skill_id: "a7484d97-5796-4711-bce4-a0786c75f8b5"
|
|
339
|
-
},
|
|
340
|
-
{
|
|
341
|
-
skill_alias: "Supply Chain Management",
|
|
342
|
-
skill_name: "Supply Chain Management",
|
|
343
|
-
skill_id: "f1031499-7ce5-4ebc-97f3-00cb5710f3a6"
|
|
344
|
-
},
|
|
345
|
-
{
|
|
346
|
-
skill_alias: "Solution Design",
|
|
347
|
-
skill_name: "Solution Design",
|
|
348
|
-
skill_id: "b6619ae7-1671-4f49-b1a6-9f3ffe64de16"
|
|
349
|
-
},
|
|
350
|
-
{
|
|
351
|
-
skill_alias: "Agentic AI",
|
|
352
|
-
skill_name: "Agentic AI",
|
|
353
|
-
skill_id: "646ed97a-b7af-49c2-9c0e-be16e7ff47a1"
|
|
354
|
-
},
|
|
355
|
-
{
|
|
356
|
-
skill_alias: "Data Literacy",
|
|
357
|
-
skill_name: "Data Literacy",
|
|
358
|
-
skill_id: "7c4ccbbf-a2e7-4f5b-bb81-304478de6d45"
|
|
359
|
-
},
|
|
360
|
-
{
|
|
361
|
-
skill_alias: "Generative AI",
|
|
362
|
-
skill_name: "Generative AI",
|
|
363
|
-
skill_id: "f7d42458-5668-447f-806e-f1b7b1025a45",
|
|
364
|
-
skill_master_id: "f7d42458-5668-447f-806e-f1b7b1025a45"
|
|
365
|
-
},
|
|
366
|
-
{
|
|
367
|
-
skill_alias: "Consulting",
|
|
368
|
-
skill_name: "Consulting",
|
|
369
|
-
skill_id: "c693820f-e14d-4080-9531-2c9b1d274dcf"
|
|
370
|
-
},
|
|
371
|
-
{
|
|
372
|
-
skill_alias: "Storytelling",
|
|
373
|
-
skill_name: "Storytelling",
|
|
374
|
-
skill_id: "5d1fb5e7-c13c-43e4-9620-00a5e2eed483"
|
|
375
|
-
},
|
|
376
|
-
{
|
|
377
|
-
skill_alias: "Critical Thinking",
|
|
378
|
-
skill_name: "Critical Thinking",
|
|
379
|
-
skill_id: "bebdf5d2-249f-4bb4-b81d-896c8646fc45"
|
|
380
|
-
},
|
|
381
|
-
{
|
|
382
|
-
skill_alias: "Sourcing and Procurement",
|
|
383
|
-
skill_name: "Sourcing and Procurement",
|
|
384
|
-
skill_id: "84781074-69ac-476a-9d1d-47228a2301f8"
|
|
385
|
-
},
|
|
386
|
-
{
|
|
387
|
-
skill_alias: "Consumer Packaged Goods",
|
|
388
|
-
skill_name: "Consumer Packaged Goods",
|
|
389
|
-
skill_id: "fc4bc60a-3038-4db7-9c32-efcfd00adaa8"
|
|
390
|
-
},
|
|
391
|
-
{
|
|
392
|
-
skill_alias: "Customer Care",
|
|
393
|
-
skill_name: "Customer Care",
|
|
394
|
-
skill_id: "1c8a37b6-1e2c-46b0-b8e3-019feb72ad0a",
|
|
395
|
-
skill_master_id: "bed04b67-be6b-405f-96b0-80f0e61f6a86"
|
|
396
|
-
},
|
|
397
|
-
{
|
|
398
|
-
skill_alias: "MS Office",
|
|
399
|
-
skill_name: "MS Office",
|
|
400
|
-
skill_id: "ea4ac01d-efec-44fc-9720-a24a1d1a5d05",
|
|
401
|
-
skill_master_id: "8354fc8d-545f-4d21-b1cb-8908abfd62c4"
|
|
402
|
-
},
|
|
403
|
-
{
|
|
404
|
-
skill_alias: "Commercial Lending and Leasing",
|
|
405
|
-
skill_name: "Commercial Lending and Leasing",
|
|
406
|
-
skill_id: "678fa9ff-39fe-4c9d-af2d-d9e92318f126"
|
|
407
|
-
},
|
|
408
|
-
{
|
|
409
|
-
skill_alias: "Integrated Program Management",
|
|
410
|
-
skill_name: "Integrated Program Management",
|
|
411
|
-
skill_id: "150d0021-1d76-4447-a08b-dc195c9b114a",
|
|
412
|
-
skill_master_id: "88a0cb70-87d2-448d-86ba-3a412c60bce2"
|
|
413
|
-
},
|
|
414
|
-
{
|
|
415
|
-
skill_alias: "Lean and Six Sigma",
|
|
416
|
-
skill_name: "Lean and Six Sigma",
|
|
417
|
-
skill_id: "90d48eb4-5fea-4bd7-85b9-3170f6bd2b53",
|
|
418
|
-
skill_master_id: "db5b7b61-0633-4a06-9066-3c6f356dc5c2"
|
|
419
|
-
},
|
|
420
|
-
{
|
|
421
|
-
skill_alias: "Cloud",
|
|
422
|
-
skill_name: "Cloud",
|
|
423
|
-
skill_id: "9e018249-fba4-41b8-be19-364ddf78b61d"
|
|
424
|
-
}
|
|
425
|
-
], E = (l) => (C("data-v-1821197c"), l = l(), T(), l), os = /* @__PURE__ */ E(() => /* @__PURE__ */ s("div", { class: "max-h-screen overflow-auto md:p-6 p-3 flex flex-col items-center justify-center gap-4 text-[#161916]" }, [
|
|
426
|
-
/* @__PURE__ */ s("div", { class: "text-2xl font-[700]" }, "Assessment Access Required"),
|
|
427
|
-
/* @__PURE__ */ s("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 ")
|
|
428
|
-
], -1)), ns = {
|
|
429
|
-
key: 1,
|
|
430
|
-
className: "h-screen flex flex-col items-stretch"
|
|
431
|
-
}, rs = { class: "z-20" }, ds = /* @__PURE__ */ E(() => /* @__PURE__ */ s("div", { class: "mt-6" }, null, -1)), cs = { class: "flex h-full items-stretch overflow-hidden" }, _s = { class: "mx-auto w-11/12 bg-white" }, us = { class: "relative flex h-full w-full flex-col items-stretch overflow-hidden" }, ms = /* @__PURE__ */ E(() => /* @__PURE__ */ s("div", { class: "mt-[160px]" }, null, -1)), fs = { class: "relative" }, ps = /* @__PURE__ */ v({
|
|
432
|
-
__name: "AssessmentAMA",
|
|
433
|
-
setup(l) {
|
|
434
|
-
const e = c(!0), t = c(!1), o = $(), u = N();
|
|
435
|
-
c("");
|
|
436
|
-
const i = c(((m) => new URLSearchParams(window.location.search).get(m) || "")("amaId"));
|
|
437
|
-
o.amaSkillId = i.value ?? "", P(async () => {
|
|
438
|
-
e.value = !0, await a(), e.value = !1;
|
|
439
|
-
});
|
|
440
|
-
const a = async () => {
|
|
441
|
-
var m, x, y, p, r, g;
|
|
442
|
-
try {
|
|
443
|
-
if (i.value === null)
|
|
444
|
-
throw {
|
|
445
|
-
response: {
|
|
446
|
-
status: 424,
|
|
447
|
-
data: {
|
|
448
|
-
message: "Invalid URL"
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
};
|
|
452
|
-
console.log("before calling get learner");
|
|
453
|
-
const n = await se(
|
|
454
|
-
`/getLearnerData?amaSkillId=${i.value}`
|
|
455
|
-
);
|
|
456
|
-
o.initialize(n.data), o.amaQuestionsLeft = (m = n == null ? void 0 : n.data) == null ? void 0 : m.questionsLeftAIGC, o.amaSkillName = ls(o.amaSkillId) || "", e.value = !1;
|
|
457
|
-
} catch (n) {
|
|
458
|
-
if (console.error(n), e.value = !1, Q.isAxiosError(n) && ((x = n.response) != null && x.status) || n && typeof n == "object" && "response" in n && n.response && typeof n.response == "object" && "status" in n.response && n.response.status) {
|
|
459
|
-
const h = n;
|
|
460
|
-
if (console.log("Error found!"), console.error((y = h.response) == null ? void 0 : y.data), ((p = h.response) == null ? void 0 : p.status) === 424 || ((r = h.response) == null ? void 0 : r.status) === 425) {
|
|
461
|
-
t.value = !0;
|
|
462
|
-
return;
|
|
463
|
-
}
|
|
464
|
-
u.setError(((g = h.response) == null ? void 0 : g.data).message);
|
|
465
|
-
} else
|
|
466
|
-
u.setError("There was an issue, please contact helpmate");
|
|
467
|
-
}
|
|
468
|
-
};
|
|
469
|
-
return (m, x) => (d(), _("section", null, [
|
|
470
|
-
k(V, { "is-visible": t.value }, {
|
|
471
|
-
default: J(() => [
|
|
472
|
-
os
|
|
473
|
-
]),
|
|
474
|
-
_: 1
|
|
475
|
-
}, 8, ["is-visible"]),
|
|
476
|
-
s("div", null, [
|
|
477
|
-
e.value ? (d(), X(G, { key: 0 })) : (d(), _("main", ns, [
|
|
478
|
-
s("div", rs, [
|
|
479
|
-
k(de)
|
|
480
|
-
]),
|
|
481
|
-
ds,
|
|
482
|
-
s("div", cs, [
|
|
483
|
-
s("div", _s, [
|
|
484
|
-
s("div", us, [
|
|
485
|
-
k(je),
|
|
486
|
-
ms
|
|
487
|
-
]),
|
|
488
|
-
s("div", fs, [
|
|
489
|
-
k(ts)
|
|
490
|
-
])
|
|
491
|
-
])
|
|
492
|
-
])
|
|
493
|
-
]))
|
|
494
|
-
])
|
|
495
|
-
]));
|
|
496
|
-
}
|
|
497
|
-
});
|
|
498
|
-
const ys = /* @__PURE__ */ A(ps, [["__scopeId", "data-v-1821197c"]]);
|
|
499
|
-
export {
|
|
500
|
-
ys as default
|
|
501
|
-
};
|