@genpact/genome.mfe.mgtwin-app 1.1.316-alpha → 1.1.318-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-f48a3b81.mjs → ArrowLeftCircleIcon-b915c350.mjs} +1 -1
- package/dist/{AssessmentAMA-2e464489.mjs → AssessmentAMA-20c73da0.mjs} +49 -49
- package/dist/{AssessmentSimulation-8e52f361.mjs → AssessmentSimulation-5be3d73f.mjs} +5071 -5236
- package/dist/{EditSkillAdminData-a528fcce.mjs → EditSkillAdminData-58e02e9f.mjs} +9 -9
- package/dist/{EditSkillData-80fd9cf2.mjs → EditSkillData-b84ac746.mjs} +7 -7
- package/dist/{HomeView-21ca5038.mjs → HomeView-e034de42.mjs} +5 -5
- package/dist/{Loading-3792adf1.mjs → Loading-ed02254f.mjs} +1 -1
- package/dist/{LoadingSimulation-34c5f726.mjs → LoadingSimulation-309cc266.mjs} +1 -1
- package/dist/{Modal-67a1878a.mjs → Modal-0dde3399.mjs} +1 -1
- package/dist/{PaperAirplaneIcon-c75b786a.mjs → PaperAirplaneIcon-c5ef6e89.mjs} +1 -1
- package/dist/{PromptTesting-cbbc5049.mjs → PromptTesting-396ff34c.mjs} +3 -3
- package/dist/{SkillAutomation-03f94cc2.mjs → SkillAutomation-dadb1d19.mjs} +7 -7
- package/dist/{SkillData-dbf89dbe.mjs → SkillData-8f9989b7.mjs} +9 -9
- package/dist/{Testcase-56747ba6.mjs → Testcase-2e0f4bcf.mjs} +3 -3
- package/dist/{UnderMaintenance-b59b5b42.mjs → UnderMaintenance-7a623b43.mjs} +1 -1
- package/dist/{_commonjsHelpers-28e2523e.mjs → _commonjsHelpers-75eb9b2e.mjs} +1 -1
- package/dist/{api-4be5e39f.mjs → api-7ee8a1fc.mjs} +1 -1
- package/dist/{main-c03f45fa.mjs → main-33d85fab.mjs} +1793 -1790
- 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
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as H, a as U, L as V } from "./LoadingSimulation-
|
|
2
|
-
import { _ as B, Q as M, a as z } from "./Modal-
|
|
3
|
-
import { d as y, r as d, H as R, o as c, c as u, a as e, u as k, y as L, t as S, G, p as E, g as
|
|
1
|
+
import { _ as H, a as U, L as V } from "./LoadingSimulation-309cc266.mjs";
|
|
2
|
+
import { _ as B, Q as M, a as z } from "./Modal-0dde3399.mjs";
|
|
3
|
+
import { d as y, r as d, H as R, o as c, c as u, a as e, u as k, y as L, t as S, G, p as E, g as N, C as Q, z as D, h as x, F as O, e as W, f as I, b as v, k as F, w as Z, m as K, M as Y, q as T, s as J, l as X } from "./main-33d85fab.mjs";
|
|
4
4
|
import { _ as $ } from "./_plugin-vue_export-helper-dad06003.mjs";
|
|
5
|
-
import { p as ee, g as te } from "./api-
|
|
5
|
+
import { p as ee, g as te } from "./api-7ee8a1fc.mjs";
|
|
6
6
|
import "./loadernew-ac153a51.mjs";
|
|
7
7
|
const se = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#021c42] md:pr-6 lg:pr-6" }, ae = ["href"], oe = /* @__PURE__ */ e("img", {
|
|
8
8
|
class: "h-11 w-auto cursor-pointer",
|
|
@@ -36,7 +36,7 @@ const se = { 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 font-bold text-black text-[18px] md:text-[22px]" }, pe = ["innerHTML"], me = { class: "w-full px-3 py-2 text-base text-black text-[12px] md:text-[16px] font-[550]" }, he = ["innerHTML"], fe = /* @__PURE__ */ e("br", null, null, -1), ge = /* @__PURE__ */ y({
|
|
37
37
|
__name: "greetingsAMA",
|
|
38
38
|
setup(n) {
|
|
39
|
-
const t = k(), o = ` Hi ${t.learnerName || "Learner"}! 👋`, l = L(() => o), _ = L(() => `
|
|
39
|
+
const t = k(), o = ` Hi ${t.learnerName || "Learner"}! 👋`, l = L(() => o), _ = L(() => `I'm here and ready to help! What would you like to know about <span class='font-[600]'>${t.amaSkillName || "Skill"}</span>? <br/> Ask me to explain concepts, provide examples, or clarify anything that seems confusing.`);
|
|
40
40
|
return (m, r) => (c(), u("section", null, [
|
|
41
41
|
e("div", de, [
|
|
42
42
|
e("div", ue, [
|
|
@@ -92,11 +92,11 @@ const Ae = /* @__PURE__ */ $(we, [["__scopeId", "data-v-38edcca6"]]), be = { cla
|
|
|
92
92
|
])
|
|
93
93
|
]));
|
|
94
94
|
}
|
|
95
|
-
}), Me = (n) => (E("data-v-12a02acf"), n = n(),
|
|
95
|
+
}), Me = (n) => (E("data-v-12a02acf"), n = n(), N(), n), Ie = { class: "flex w-full flex-col items-start justify-start bg-white" }, Le = { class: "bot-typing-animation gap-1" }, Se = { class: "block w-full text-lg italic text-gray-800" }, Ee = /* @__PURE__ */ Me(() => /* @__PURE__ */ e("span", { class: "dot-animation" }, [
|
|
96
96
|
/* @__PURE__ */ e("span", null, "."),
|
|
97
97
|
/* @__PURE__ */ e("span", null, "."),
|
|
98
98
|
/* @__PURE__ */ e("span", null, ".")
|
|
99
|
-
], -1)),
|
|
99
|
+
], -1)), Ne = /* @__PURE__ */ G('<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), Qe = /* @__PURE__ */ y({
|
|
100
100
|
__name: "LoadingResponseAMA",
|
|
101
101
|
setup(n) {
|
|
102
102
|
const t = d("Generating response"), o = d([
|
|
@@ -116,11 +116,11 @@ const Ae = /* @__PURE__ */ $(we, [["__scopeId", "data-v-38edcca6"]]), be = { cla
|
|
|
116
116
|
e("div", Se, S(t.value), 1),
|
|
117
117
|
Ee
|
|
118
118
|
]),
|
|
119
|
-
|
|
119
|
+
Ne
|
|
120
120
|
]));
|
|
121
121
|
}
|
|
122
122
|
});
|
|
123
|
-
const
|
|
123
|
+
const Ce = /* @__PURE__ */ $(Qe, [["__scopeId", "data-v-12a02acf"]]), Re = { key: 0 }, Fe = { key: 1 }, Te = {
|
|
124
124
|
key: 0,
|
|
125
125
|
class: "flex"
|
|
126
126
|
}, je = /* @__PURE__ */ y({
|
|
@@ -129,7 +129,7 @@ const Qe = /* @__PURE__ */ $(Ne, [["__scopeId", "data-v-12a02acf"]]), Re = { key
|
|
|
129
129
|
let t = d(""), o = d("");
|
|
130
130
|
t.value = '<a style="color:#00AECF;"', o.value = '<ul style="list-style: disc !important; margin-left: 3.5rem !important; padding: 0;"';
|
|
131
131
|
const l = k(), _ = d();
|
|
132
|
-
return
|
|
132
|
+
return Q(() => {
|
|
133
133
|
var s;
|
|
134
134
|
const m = document.getElementsByName("askQuestion"), r = Array.from(m);
|
|
135
135
|
m.length && ((s = r == null ? void 0 : r.pop()) == null || s.scrollIntoView({ behavior: "smooth", block: "center" }));
|
|
@@ -142,10 +142,10 @@ const Qe = /* @__PURE__ */ $(Ne, [["__scopeId", "data-v-12a02acf"]]), Re = { key
|
|
|
142
142
|
ref: _,
|
|
143
143
|
class: "smooth-scroll overflow-auto md:px-6 px-2"
|
|
144
144
|
}, [
|
|
145
|
-
|
|
146
|
-
(c(!0), u(
|
|
145
|
+
x(ge),
|
|
146
|
+
(c(!0), u(O, null, W(v(l).conversations, (s, p) => (c(), u("div", { key: p }, [
|
|
147
147
|
s.question ? (c(), u("div", Re, [
|
|
148
|
-
|
|
148
|
+
x(qe, {
|
|
149
149
|
question: s.question,
|
|
150
150
|
c2question: s.c2question,
|
|
151
151
|
"show-feedback": s.showFeedback,
|
|
@@ -155,12 +155,12 @@ const Qe = /* @__PURE__ */ $(Ne, [["__scopeId", "data-v-12a02acf"]]), Re = { key
|
|
|
155
155
|
}, null, 8, ["question", "c2question", "show-feedback", "id", "que-id"])
|
|
156
156
|
])) : I("", !0),
|
|
157
157
|
s.answer ? (c(), u("div", Fe, [
|
|
158
|
-
|
|
158
|
+
x(Ae, {
|
|
159
159
|
question: s == null ? void 0 : s.question,
|
|
160
160
|
c2question: s == null ? void 0 : s.c2question,
|
|
161
161
|
"show-sources": s == null ? void 0 : s.showSources,
|
|
162
162
|
questionId: s.id,
|
|
163
|
-
answer: s.answer.replaceAll("<a",
|
|
163
|
+
answer: s.answer.replaceAll("<a", v(t)).replaceAll("<ul", v(o)),
|
|
164
164
|
"show-feedback": s.showFeedback,
|
|
165
165
|
"related-ques": s.relatedQues,
|
|
166
166
|
"options-array": s.optionsArray,
|
|
@@ -168,14 +168,14 @@ const Qe = /* @__PURE__ */ $(Ne, [["__scopeId", "data-v-12a02acf"]]), Re = { key
|
|
|
168
168
|
}, null, 8, ["question", "c2question", "show-sources", "questionId", "answer", "show-feedback", "related-ques", "options-array", "ans-id"])
|
|
169
169
|
])) : I("", !0)
|
|
170
170
|
]))), 128)),
|
|
171
|
-
|
|
172
|
-
|
|
171
|
+
v(l).dotLoader ? (c(), u("div", Te, [
|
|
172
|
+
x(Ce)
|
|
173
173
|
])) : I("", !0)
|
|
174
174
|
], 512));
|
|
175
175
|
}
|
|
176
176
|
});
|
|
177
|
-
const Pe = /* @__PURE__ */ $(je, [["__scopeId", "data-v-e6168dd4"]]), q = (n) => (E("data-v-
|
|
178
|
-
|
|
177
|
+
const Pe = /* @__PURE__ */ $(je, [["__scopeId", "data-v-e6168dd4"]]), q = (n) => (E("data-v-429e479e"), n = n(), N(), n), He = { class: "z-3 absolute bottom-0 mt-4 w-full bg-white px-2 md:px-6" }, Ue = { class: "py-2" }, Ve = { class: "flex" }, Be = { class: "z-1 relative w-full" }, ze = { class: "relative w-full" }, Ge = { class: "absolute inset-y-0 right-0 flex items-center md:pr-8 pr-3" }, De = { key: 0 }, Oe = /* @__PURE__ */ q(() => /* @__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)), We = [
|
|
178
|
+
Oe
|
|
179
179
|
], Ze = {
|
|
180
180
|
key: 1,
|
|
181
181
|
class: "tooltip"
|
|
@@ -186,15 +186,15 @@ const Pe = /* @__PURE__ */ $(je, [["__scopeId", "data-v-e6168dd4"]]), q = (n) =>
|
|
|
186
186
|
}, null, -1)), Je = [
|
|
187
187
|
Ke,
|
|
188
188
|
Ye
|
|
189
|
-
], Xe = { class: "flex justify-start" }, et = { class: "flex justify-start items-start text-[#161916]" },
|
|
189
|
+
], Xe = { class: "flex justify-start" }, et = ["placeholder"], tt = { class: "flex justify-start items-start text-[#161916]" }, st = /* @__PURE__ */ q(() => /* @__PURE__ */ e("div", { class: "pt-1 text-start font-sans" }, [
|
|
190
190
|
/* @__PURE__ */ e("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)),
|
|
191
|
+
], -1)), at = /* @__PURE__ */ y({
|
|
192
192
|
__name: "NewQuestionAMA",
|
|
193
193
|
setup(n) {
|
|
194
194
|
const t = k(), o = F();
|
|
195
195
|
t.question = "";
|
|
196
196
|
const l = d(null), _ = d(!1), m = d(M), r = d(!1);
|
|
197
|
-
|
|
197
|
+
Q(() => {
|
|
198
198
|
l.value.focus();
|
|
199
199
|
});
|
|
200
200
|
const p = d(((h) => new URLSearchParams(window.location.search).get(h) || "")("amaId"));
|
|
@@ -247,47 +247,47 @@ const Pe = /* @__PURE__ */ $(je, [["__scopeId", "data-v-e6168dd4"]]), q = (n) =>
|
|
|
247
247
|
fill: "currentColor",
|
|
248
248
|
class: "bi bi-send ml-2 h-7 w-7 rotate-45 rounded",
|
|
249
249
|
viewBox: "0 0 16 16"
|
|
250
|
-
},
|
|
250
|
+
}, We))
|
|
251
251
|
]))
|
|
252
252
|
]),
|
|
253
253
|
e("div", Xe, [
|
|
254
254
|
Z(e("input", {
|
|
255
255
|
onKeyup: [
|
|
256
256
|
i[1] || (i[1] = Y((f) => r.value ? "" : A(), ["enter"])),
|
|
257
|
-
i[3] || (i[3] = (f) => w(
|
|
257
|
+
i[3] || (i[3] = (f) => w(v(t).question))
|
|
258
258
|
],
|
|
259
|
-
"onUpdate:modelValue": i[2] || (i[2] = (f) =>
|
|
259
|
+
"onUpdate:modelValue": i[2] || (i[2] = (f) => v(t).question = f),
|
|
260
260
|
class: "fontFormattingAMA rounded-lg flex w-full border border-genpact-darkest-teal py-[18px] pl-[30px] pr-[70px]",
|
|
261
|
-
placeholder:
|
|
261
|
+
placeholder: `Ask me about ${v(t).amaSkillName}`,
|
|
262
262
|
type: "text",
|
|
263
263
|
ref_key: "AiSearch",
|
|
264
264
|
ref: l
|
|
265
|
-
}, null,
|
|
266
|
-
[K,
|
|
265
|
+
}, null, 40, et), [
|
|
266
|
+
[K, v(t).question]
|
|
267
267
|
])
|
|
268
268
|
])
|
|
269
269
|
]),
|
|
270
|
-
e("div",
|
|
271
|
-
|
|
270
|
+
e("div", tt, S(v(t).amaQuestionsLeft) + " questions remaining for the day ", 1),
|
|
271
|
+
st
|
|
272
272
|
])
|
|
273
273
|
])
|
|
274
274
|
])
|
|
275
275
|
]));
|
|
276
276
|
}
|
|
277
277
|
});
|
|
278
|
-
const
|
|
278
|
+
const ot = /* @__PURE__ */ $(at, [["__scopeId", "data-v-429e479e"]]), C = (n) => (E("data-v-944ca5e3"), n = n(), N(), n), nt = /* @__PURE__ */ C(() => /* @__PURE__ */ e("div", { class: "max-h-screen overflow-auto md:p-6 p-3 flex flex-col items-center justify-center gap-4 text-[#161916]" }, [
|
|
279
279
|
/* @__PURE__ */ e("div", { class: "text-2xl font-[700]" }, "Assessment Access Required"),
|
|
280
280
|
/* @__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 ")
|
|
281
|
-
], -1)),
|
|
281
|
+
], -1)), rt = {
|
|
282
282
|
key: 1,
|
|
283
283
|
className: "h-screen flex flex-col items-stretch"
|
|
284
|
-
},
|
|
284
|
+
}, lt = { class: "z-20" }, it = /* @__PURE__ */ C(() => /* @__PURE__ */ e("div", { class: "mt-6" }, null, -1)), ct = { class: "flex h-full items-stretch overflow-hidden" }, dt = { class: "mx-auto w-11/12 bg-white" }, ut = { class: "relative flex h-full w-full flex-col items-stretch overflow-hidden" }, _t = /* @__PURE__ */ C(() => /* @__PURE__ */ e("div", { class: "mt-[160px]" }, null, -1)), pt = { class: "relative" }, mt = /* @__PURE__ */ y({
|
|
285
285
|
__name: "AssessmentAMA",
|
|
286
286
|
setup(n) {
|
|
287
287
|
const t = d(!0), o = d(!1), l = k(), _ = F();
|
|
288
288
|
d("");
|
|
289
289
|
const r = d(((p) => new URLSearchParams(window.location.search).get(p) || "")("amaId"));
|
|
290
|
-
l.amaSkillId = r.value ?? "",
|
|
290
|
+
l.amaSkillId = r.value ?? "", Q(async () => {
|
|
291
291
|
t.value = !0, await s(), t.value = !1;
|
|
292
292
|
});
|
|
293
293
|
const s = async () => {
|
|
@@ -320,26 +320,26 @@ const at = /* @__PURE__ */ $(st, [["__scopeId", "data-v-482b2d96"]]), Q = (n) =>
|
|
|
320
320
|
}
|
|
321
321
|
};
|
|
322
322
|
return (p, w) => (c(), u("section", null, [
|
|
323
|
-
|
|
323
|
+
x(z, { "is-visible": o.value }, {
|
|
324
324
|
default: J(() => [
|
|
325
|
-
|
|
325
|
+
nt
|
|
326
326
|
]),
|
|
327
327
|
_: 1
|
|
328
328
|
}, 8, ["is-visible"]),
|
|
329
329
|
e("div", null, [
|
|
330
|
-
t.value ? (c(), X(V, { key: 0 })) : (c(), u("main",
|
|
331
|
-
e("div",
|
|
332
|
-
|
|
330
|
+
t.value ? (c(), X(V, { key: 0 })) : (c(), u("main", rt, [
|
|
331
|
+
e("div", lt, [
|
|
332
|
+
x(ce)
|
|
333
333
|
]),
|
|
334
|
-
|
|
335
|
-
e("div",
|
|
336
|
-
e("div",
|
|
337
|
-
e("div",
|
|
338
|
-
|
|
339
|
-
|
|
334
|
+
it,
|
|
335
|
+
e("div", ct, [
|
|
336
|
+
e("div", dt, [
|
|
337
|
+
e("div", ut, [
|
|
338
|
+
x(Pe),
|
|
339
|
+
_t
|
|
340
340
|
]),
|
|
341
|
-
e("div",
|
|
342
|
-
|
|
341
|
+
e("div", pt, [
|
|
342
|
+
x(ot)
|
|
343
343
|
])
|
|
344
344
|
])
|
|
345
345
|
])
|
|
@@ -348,7 +348,7 @@ const at = /* @__PURE__ */ $(st, [["__scopeId", "data-v-482b2d96"]]), Q = (n) =>
|
|
|
348
348
|
]));
|
|
349
349
|
}
|
|
350
350
|
});
|
|
351
|
-
const
|
|
351
|
+
const wt = /* @__PURE__ */ $(mt, [["__scopeId", "data-v-944ca5e3"]]);
|
|
352
352
|
export {
|
|
353
|
-
|
|
353
|
+
wt as default
|
|
354
354
|
};
|