@genpact/genome.mfe.mgtwin-app 1.1.86 → 1.1.87
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-ebf1438f.mjs → AssessmentAMA-f80c8c52.mjs} +27 -27
- package/dist/AssessmentSimulation-0b85713a.mjs +30041 -0
- package/dist/{EditSkillAdminData-9893fa7a.mjs → EditSkillAdminData-259007eb.mjs} +2 -2
- package/dist/{EditSkillData-f6c58809.mjs → EditSkillData-04c41de8.mjs} +2 -2
- package/dist/{HomeView-e69978ca.mjs → HomeView-fb33e209.mjs} +11 -8
- package/dist/{Loading-b9a50c79.mjs → Loading-6d51258d.mjs} +1 -1
- package/dist/{LoadingSimulation-34a3d8d1.mjs → LoadingSimulation-d1dd38e0.mjs} +1 -1
- package/dist/{Modal-7e715b5d.mjs → Modal-be92ac71.mjs} +1 -1
- package/dist/{PromptTesting-24bd3ffd.mjs → PromptTesting-25f2a636.mjs} +2 -2
- package/dist/{SkillAutomation-5b7734d3.mjs → SkillAutomation-23ad6c7b.mjs} +3 -3
- package/dist/{SkillData-55a009c4.mjs → SkillData-38d9fe59.mjs} +3 -3
- package/dist/{UnderMaintenance-cdcc026b.mjs → UnderMaintenance-0e5c9330.mjs} +1 -1
- package/dist/{_commonjsHelpers-705aff96.mjs → _commonjsHelpers-6aa5c963.mjs} +1 -1
- package/dist/{api-a7c3c5ac.mjs → api-87c918ff.mjs} +1 -1
- package/dist/html2canvas.esm-7570f311.mjs +4886 -0
- package/dist/index.es-5eb6e34c.mjs +5776 -0
- package/dist/{main-d87d6eda.mjs → main-55720abc.mjs} +1859 -1848
- package/dist/mgtwin.es.min.js +1 -1
- package/dist/mgtwin.umd.min.js +246 -15
- package/dist/purify.es-e2b9a570.mjs +563 -0
- package/dist/style.css +1 -1
- package/package.json +2 -1
- package/dist/AssessmentSimulation-718fba05.mjs +0 -18436
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as U, a as V, L as B } from "./LoadingSimulation-
|
|
2
|
-
import { _ as H, Q as M, a as z } from "./Modal-
|
|
3
|
-
import { d as y, r as u, H as R, o as c, c as d, a as s, u as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { p as ee, g as se } from "./api-
|
|
1
|
+
import { _ as U, a as V, L as B } from "./LoadingSimulation-d1dd38e0.mjs";
|
|
2
|
+
import { _ as H, Q as M, a as z } from "./Modal-be92ac71.mjs";
|
|
3
|
+
import { d as y, r as u, H as R, o as c, c as d, a as s, u as $, y as L, t as S, G, p as N, g as E, C as Q, z as D, h as x, F as O, e as Z, f as I, b as v, k as F, w as K, m as W, L as Y, q as P, s as J, l as X } from "./main-55720abc.mjs";
|
|
4
|
+
import { _ as k } from "./_plugin-vue_export-helper-dad06003.mjs";
|
|
5
|
+
import { p as ee, g as se } from "./api-87c918ff.mjs";
|
|
6
6
|
import "./loadernew-ac153a51.mjs";
|
|
7
7
|
const te = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#021c42] md:pr-6 lg:pr-6" }, ae = ["href"], oe = /* @__PURE__ */ s("img", {
|
|
8
8
|
class: "h-11 w-auto cursor-pointer",
|
|
@@ -36,7 +36,7 @@ const te = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#0
|
|
|
36
36
|
}), de = { class: "flex items-end justify-start" }, ue = { class: "fontFormattingAMA w-full bg-gray-100 rounded-lg" }, _e = { class: "w-full rounded-md px-3 py-2 text-lg text-black md:text-xl" }, pe = ["innerHTML"], me = /* @__PURE__ */ s("br", null, null, -1), he = /* @__PURE__ */ y({
|
|
37
37
|
__name: "greetingsAMA",
|
|
38
38
|
setup(n) {
|
|
39
|
-
const e =
|
|
39
|
+
const e = $(), o = ` Hi ${e.learnerName || "Learner"}! 👋`, l = L(() => o);
|
|
40
40
|
return L(() => `I'm here and ready to help! What would you like to know about <span class='font-[600]'>${e.amaSkillName || "Skill"}</span>? <br/> Ask me to explain concepts, provide examples, or clarify anything that seems confusing.`), (p, m) => (c(), d("section", null, [
|
|
41
41
|
s("div", de, [
|
|
42
42
|
s("div", ue, [
|
|
@@ -67,14 +67,14 @@ const te = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#0
|
|
|
67
67
|
return (l, p) => (c(), d("div", fe, [
|
|
68
68
|
s("div", ge, [
|
|
69
69
|
s("span", {
|
|
70
|
-
class: "fontFormattingAMA",
|
|
70
|
+
class: "fontFormattingAMA answer-link",
|
|
71
71
|
innerHTML: o.value
|
|
72
72
|
}, null, 8, ve)
|
|
73
73
|
])
|
|
74
74
|
]));
|
|
75
75
|
}
|
|
76
76
|
});
|
|
77
|
-
const ye = /* @__PURE__ */
|
|
77
|
+
const ye = /* @__PURE__ */ k(xe, [["__scopeId", "data-v-210f5db8"]]), we = { class: "flex justify-end items-end py-3" }, be = { class: "max-w-[80%]" }, Ae = { class: "w-fit fontFormattingAMA text-[0.8125rem] md:text-[0.9375rem] text-white bg-genpact-blue-box leading-6 p-3 rounded-lg" }, ke = /* @__PURE__ */ y({
|
|
78
78
|
__name: "learnerAMA",
|
|
79
79
|
props: {
|
|
80
80
|
question: {
|
|
@@ -84,12 +84,12 @@ const ye = /* @__PURE__ */ $(xe, [["__scopeId", "data-v-f88d6450"]]), we = { cla
|
|
|
84
84
|
},
|
|
85
85
|
setup(n) {
|
|
86
86
|
return (e, o) => (c(), d("div", we, [
|
|
87
|
-
s("div",
|
|
88
|
-
s("div",
|
|
87
|
+
s("div", be, [
|
|
88
|
+
s("div", Ae, S(n.question), 1)
|
|
89
89
|
])
|
|
90
90
|
]));
|
|
91
91
|
}
|
|
92
|
-
}),
|
|
92
|
+
}), $e = (n) => (N("data-v-12a02acf"), n = n(), E(), n), qe = { class: "flex w-full flex-col items-start justify-start bg-white" }, Me = { class: "bot-typing-animation gap-1" }, Ie = { class: "block w-full text-lg italic text-gray-800" }, Le = /* @__PURE__ */ $e(() => /* @__PURE__ */ s("span", { class: "dot-animation" }, [
|
|
93
93
|
/* @__PURE__ */ s("span", null, "."),
|
|
94
94
|
/* @__PURE__ */ s("span", null, "."),
|
|
95
95
|
/* @__PURE__ */ s("span", null, ".")
|
|
@@ -117,7 +117,7 @@ const ye = /* @__PURE__ */ $(xe, [["__scopeId", "data-v-f88d6450"]]), we = { cla
|
|
|
117
117
|
]));
|
|
118
118
|
}
|
|
119
119
|
});
|
|
120
|
-
const Ee = /* @__PURE__ */
|
|
120
|
+
const Ee = /* @__PURE__ */ k(Ne, [["__scopeId", "data-v-12a02acf"]]), Qe = { key: 0 }, Ce = { key: 1 }, Re = {
|
|
121
121
|
key: 0,
|
|
122
122
|
class: "flex"
|
|
123
123
|
}, Fe = /* @__PURE__ */ y({
|
|
@@ -125,7 +125,7 @@ const Ee = /* @__PURE__ */ $(Ne, [["__scopeId", "data-v-12a02acf"]]), Qe = { key
|
|
|
125
125
|
setup(n) {
|
|
126
126
|
let e = u(""), o = u("");
|
|
127
127
|
e.value = '<a style="color:#00AECF;"', o.value = '<ul style="list-style: disc !important; margin-left: 3.5rem !important; padding: 0;"';
|
|
128
|
-
const l =
|
|
128
|
+
const l = $(), p = u();
|
|
129
129
|
return Q(() => {
|
|
130
130
|
var t;
|
|
131
131
|
const m = document.getElementsByName("askQuestion"), r = Array.from(m);
|
|
@@ -142,7 +142,7 @@ const Ee = /* @__PURE__ */ $(Ne, [["__scopeId", "data-v-12a02acf"]]), Qe = { key
|
|
|
142
142
|
x(he),
|
|
143
143
|
(c(!0), d(O, null, Z(v(l).conversations, (t, _) => (c(), d("div", { key: _ }, [
|
|
144
144
|
t.question ? (c(), d("div", Qe, [
|
|
145
|
-
x(
|
|
145
|
+
x(ke, {
|
|
146
146
|
question: t.question,
|
|
147
147
|
c2question: t.c2question,
|
|
148
148
|
"show-feedback": t.showFeedback,
|
|
@@ -171,7 +171,7 @@ const Ee = /* @__PURE__ */ $(Ne, [["__scopeId", "data-v-12a02acf"]]), Qe = { key
|
|
|
171
171
|
], 512));
|
|
172
172
|
}
|
|
173
173
|
});
|
|
174
|
-
const Pe = /* @__PURE__ */
|
|
174
|
+
const Pe = /* @__PURE__ */ k(Fe, [["__scopeId", "data-v-e6168dd4"]]), q = (n) => (N("data-v-4d4db1ef"), n = n(), E(), n), Te = { class: "z-3 absolute bottom-0 mt-4 w-full bg-white px-2 md:px-6" }, je = { class: "py-2" }, Ue = { class: "flex" }, Ve = { class: "z-1 relative w-full" }, Be = { class: "relative w-full" }, He = { class: "absolute inset-y-0 right-0 flex items-center md:pr-8 pr-3" }, ze = { key: 0 }, Ge = /* @__PURE__ */ q(() => /* @__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)), De = [
|
|
175
175
|
Ge
|
|
176
176
|
], Oe = {
|
|
177
177
|
key: 1,
|
|
@@ -188,7 +188,7 @@ const Pe = /* @__PURE__ */ $(Fe, [["__scopeId", "data-v-e6168dd4"]]), q = (n) =>
|
|
|
188
188
|
], -1)), ss = /* @__PURE__ */ y({
|
|
189
189
|
__name: "NewQuestionAMA",
|
|
190
190
|
setup(n) {
|
|
191
|
-
const e =
|
|
191
|
+
const e = $(), o = F();
|
|
192
192
|
e.question = "";
|
|
193
193
|
const l = u(null), p = u(!1), m = u(M), r = u(!1);
|
|
194
194
|
Q(() => {
|
|
@@ -199,8 +199,8 @@ const Pe = /* @__PURE__ */ $(Fe, [["__scopeId", "data-v-e6168dd4"]]), q = (n) =>
|
|
|
199
199
|
const w = (h) => {
|
|
200
200
|
const i = h.length;
|
|
201
201
|
m.value = M - i, p.value = i >= M;
|
|
202
|
-
},
|
|
203
|
-
var h, i, f,
|
|
202
|
+
}, b = async () => {
|
|
203
|
+
var h, i, f, A;
|
|
204
204
|
try {
|
|
205
205
|
if (e.question.trim().length < 1) {
|
|
206
206
|
o.setError("Please enter answer!");
|
|
@@ -226,7 +226,7 @@ const Pe = /* @__PURE__ */ $(Fe, [["__scopeId", "data-v-e6168dd4"]]), q = (n) =>
|
|
|
226
226
|
} catch (a) {
|
|
227
227
|
if (console.error(a), e.dotLoader = !1, r.value = !1, P.isAxiosError(a)) {
|
|
228
228
|
const g = a;
|
|
229
|
-
console.log("Error found!"), console.error((i = g.response) == null ? void 0 : i.data), o.setError((
|
|
229
|
+
console.log("Error found!"), console.error((i = g.response) == null ? void 0 : i.data), o.setError((A = (f = g.response) == null ? void 0 : f.data) == null ? void 0 : A.message);
|
|
230
230
|
} else
|
|
231
231
|
o.setError("There was an issue, please contact helpmate");
|
|
232
232
|
}
|
|
@@ -239,7 +239,7 @@ const Pe = /* @__PURE__ */ $(Fe, [["__scopeId", "data-v-e6168dd4"]]), q = (n) =>
|
|
|
239
239
|
s("div", He, [
|
|
240
240
|
r.value ? (c(), d("div", Oe, We)) : (c(), d("div", ze, [
|
|
241
241
|
(c(), d("svg", {
|
|
242
|
-
onClick: i[0] || (i[0] = (f) =>
|
|
242
|
+
onClick: i[0] || (i[0] = (f) => b()),
|
|
243
243
|
xmlns: "http://www.w3.org/2000/svg",
|
|
244
244
|
fill: "currentColor",
|
|
245
245
|
class: "bi bi-send ml-2 h-7 w-7 rotate-45 rounded",
|
|
@@ -250,7 +250,7 @@ const Pe = /* @__PURE__ */ $(Fe, [["__scopeId", "data-v-e6168dd4"]]), q = (n) =>
|
|
|
250
250
|
s("div", Ye, [
|
|
251
251
|
K(s("input", {
|
|
252
252
|
onKeyup: [
|
|
253
|
-
i[1] || (i[1] = Y((f) => r.value ? "" :
|
|
253
|
+
i[1] || (i[1] = Y((f) => r.value ? "" : b(), ["enter"])),
|
|
254
254
|
i[3] || (i[3] = (f) => w(v(e).question))
|
|
255
255
|
],
|
|
256
256
|
"onUpdate:modelValue": i[2] || (i[2] = (f) => v(e).question = f),
|
|
@@ -272,7 +272,7 @@ const Pe = /* @__PURE__ */ $(Fe, [["__scopeId", "data-v-e6168dd4"]]), q = (n) =>
|
|
|
272
272
|
]));
|
|
273
273
|
}
|
|
274
274
|
});
|
|
275
|
-
const ts = /* @__PURE__ */
|
|
275
|
+
const ts = /* @__PURE__ */ k(ss, [["__scopeId", "data-v-4d4db1ef"]]), C = (n) => (N("data-v-cbb85cd8"), n = n(), E(), n), as = /* @__PURE__ */ C(() => /* @__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]" }, [
|
|
276
276
|
/* @__PURE__ */ s("div", { class: "text-2xl font-[700]" }, "Assessment Access Required"),
|
|
277
277
|
/* @__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 ")
|
|
278
278
|
], -1)), os = {
|
|
@@ -281,12 +281,12 @@ const ts = /* @__PURE__ */ $(ss, [["__scopeId", "data-v-4d4db1ef"]]), C = (n) =>
|
|
|
281
281
|
}, ns = { class: "z-20" }, rs = /* @__PURE__ */ C(() => /* @__PURE__ */ s("div", { class: "mt-6" }, null, -1)), ls = { class: "flex h-full items-stretch overflow-hidden" }, is = { class: "mx-auto w-11/12 bg-white" }, cs = { class: "relative flex h-full w-full flex-col items-stretch overflow-hidden" }, ds = /* @__PURE__ */ C(() => /* @__PURE__ */ s("div", { class: "mt-[160px]" }, null, -1)), us = { class: "relative" }, _s = /* @__PURE__ */ y({
|
|
282
282
|
__name: "AssessmentAMA",
|
|
283
283
|
setup(n) {
|
|
284
|
-
const e = u(!0), o = u(!1), l =
|
|
284
|
+
const e = u(!0), o = u(!1), l = $(), p = F(), r = u(((_) => new URLSearchParams(window.location.search).get(_) || "")("amaId"));
|
|
285
285
|
l.amaSkillId = r.value ?? "", Q(async () => {
|
|
286
286
|
e.value = !0, await t(), e.value = !1;
|
|
287
287
|
});
|
|
288
288
|
const t = async () => {
|
|
289
|
-
var _, w,
|
|
289
|
+
var _, w, b, h, i, f, A;
|
|
290
290
|
try {
|
|
291
291
|
if (r.value === null)
|
|
292
292
|
throw {
|
|
@@ -303,13 +303,13 @@ const ts = /* @__PURE__ */ $(ss, [["__scopeId", "data-v-4d4db1ef"]]), C = (n) =>
|
|
|
303
303
|
);
|
|
304
304
|
l.initialize(a.data), l.amaQuestionsLeft = ((_ = a == null ? void 0 : a.data) == null ? void 0 : _.questionsLeftAIGC) || 10, l.amaSkillName = (w = a == null ? void 0 : a.data) == null ? void 0 : w.skillName, e.value = !1;
|
|
305
305
|
} catch (a) {
|
|
306
|
-
if (console.error(a), e.value = !1, P.isAxiosError(a) && ((
|
|
306
|
+
if (console.error(a), e.value = !1, P.isAxiosError(a) && ((b = a.response) != null && b.status) || a && typeof a == "object" && "response" in a && a.response && typeof a.response == "object" && "status" in a.response && a.response.status) {
|
|
307
307
|
const g = a;
|
|
308
308
|
if (console.log("Error found!"), console.error((h = g.response) == null ? void 0 : h.data), ((i = g.response) == null ? void 0 : i.status) === 424 || ((f = g.response) == null ? void 0 : f.status) === 425) {
|
|
309
309
|
o.value = !0;
|
|
310
310
|
return;
|
|
311
311
|
}
|
|
312
|
-
p.setError(((
|
|
312
|
+
p.setError(((A = g.response) == null ? void 0 : A.data).message);
|
|
313
313
|
} else
|
|
314
314
|
p.setError("There was an issue, please contact helpmate");
|
|
315
315
|
}
|
|
@@ -343,7 +343,7 @@ const ts = /* @__PURE__ */ $(ss, [["__scopeId", "data-v-4d4db1ef"]]), C = (n) =>
|
|
|
343
343
|
]));
|
|
344
344
|
}
|
|
345
345
|
});
|
|
346
|
-
const xs = /* @__PURE__ */
|
|
346
|
+
const xs = /* @__PURE__ */ k(_s, [["__scopeId", "data-v-cbb85cd8"]]);
|
|
347
347
|
export {
|
|
348
348
|
xs as default
|
|
349
349
|
};
|