@genpact/genome.mfe.mgtwin-app 1.1.328-alpha → 1.1.330-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-72c54a74.mjs → AssessmentAMA-512bf558.mjs} +29 -31
- package/dist/{AssessmentSimulation-72e4ee6b.mjs → AssessmentSimulation-8a889284.mjs} +402 -406
- package/dist/EditSkillAdminData-004697fc.mjs +252 -0
- package/dist/{EditSkillData-49ef4275.mjs → EditSkillData-4ed7649e.mjs} +82 -69
- package/dist/{HomeView-3d62ea04.mjs → HomeView-3a8e4360.mjs} +125 -127
- package/dist/{Loading-c434e673.mjs → Loading-0d5e62d8.mjs} +1 -1
- package/dist/{LoadingSimulation-f5917992.mjs → LoadingSimulation-cc4a0116.mjs} +1 -1
- package/dist/{Modal-55efd07c.mjs → Modal-3972b1fd.mjs} +4 -5
- package/dist/{PaperAirplaneIcon-35d47726.mjs → PaperAirplaneIcon-fb0120cb.mjs} +1 -1
- package/dist/{PromptTesting-ca6b362f.mjs → PromptTesting-f5472453.mjs} +3 -3
- package/dist/{SkillAutomation-21539258.mjs → SkillAutomation-6f49fc7e.mjs} +3 -3
- package/dist/{SkillData-27860de7.mjs → SkillData-e8277b80.mjs} +3 -3
- package/dist/{Testcase-6a46ad9a.mjs → Testcase-4175d1c7.mjs} +3 -3
- package/dist/{UnderMaintenance-f355843a.mjs → UnderMaintenance-a3ecb241.mjs} +1 -1
- package/dist/{_commonjsHelpers-49bf7401.mjs → _commonjsHelpers-17845752.mjs} +1 -1
- package/dist/{api-d4fe1294.mjs → api-4f02f963.mjs} +1 -1
- package/dist/{main-74d4584a.mjs → main-c5829298.mjs} +1723 -1722
- 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/ArrowLeftCircleIcon-683541a2.mjs +0 -18
- package/dist/EditSkillAdminData-601f7e5f.mjs +0 -278
|
@@ -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
|
|
1
|
+
import { _ as U, a as V, L as B } from "./LoadingSimulation-cc4a0116.mjs";
|
|
2
|
+
import { _ as H, Q as M, a as z } from "./Modal-3972b1fd.mjs";
|
|
3
|
+
import { d as y, r as u, H as R, o as c, c as d, a as s, u as k, 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-c5829298.mjs";
|
|
4
4
|
import { _ as $ } from "./_plugin-vue_export-helper-dad06003.mjs";
|
|
5
|
-
import { p as ee, g as se } from "./api-
|
|
5
|
+
import { p as ee, g as se } from "./api-4f02f963.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",
|
|
@@ -19,8 +19,8 @@ const te = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#0
|
|
|
19
19
|
], ce = /* @__PURE__ */ y({
|
|
20
20
|
__name: "headerAMA",
|
|
21
21
|
setup(n) {
|
|
22
|
-
const e =
|
|
23
|
-
return R === "prod" ? e.value = "https://genome.genpact.com" : e.value = "https://genome-dev.genpact.com", R === "prod" ? o.value = "https://genome.genpact.com/#aiguru" : o.value = "https://genome-dev.genpact.com/#aiguru", (l, p) => (c(),
|
|
22
|
+
const e = u(""), o = u("");
|
|
23
|
+
return R === "prod" ? e.value = "https://genome.genpact.com" : e.value = "https://genome-dev.genpact.com", R === "prod" ? o.value = "https://genome.genpact.com/#aiguru" : o.value = "https://genome-dev.genpact.com/#aiguru", (l, p) => (c(), d("nav", te, [
|
|
24
24
|
s("a", {
|
|
25
25
|
class: "px-2 md:px-0 lg:px-0",
|
|
26
26
|
href: e.value,
|
|
@@ -37,7 +37,7 @@ const te = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#0
|
|
|
37
37
|
__name: "greetingsAMA",
|
|
38
38
|
setup(n) {
|
|
39
39
|
const e = k(), o = ` Hi ${e.learnerName || "Learner"}! 👋`, l = L(() => o);
|
|
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(),
|
|
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, [
|
|
43
43
|
s("div", _e, [
|
|
@@ -64,7 +64,7 @@ const te = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#0
|
|
|
64
64
|
), p = /\[([^\]]+)\]\((https?:\/\/[^\s]+)\)/g;
|
|
65
65
|
return l.replace(p, (m, r, t) => `<a href="${t}" target="_blank" rel="noopener noreferrer" style="color: blue; text-decoration: underline;">${r}</a>`);
|
|
66
66
|
});
|
|
67
|
-
return (l, p) => (c(),
|
|
67
|
+
return (l, p) => (c(), d("div", fe, [
|
|
68
68
|
s("div", ge, [
|
|
69
69
|
s("span", {
|
|
70
70
|
class: "fontFormattingAMA",
|
|
@@ -83,7 +83,7 @@ const ye = /* @__PURE__ */ $(xe, [["__scopeId", "data-v-f88d6450"]]), we = { cla
|
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
85
|
setup(n) {
|
|
86
|
-
return (e, o) => (c(),
|
|
86
|
+
return (e, o) => (c(), d("div", we, [
|
|
87
87
|
s("div", Ae, [
|
|
88
88
|
s("div", be, S(n.question), 1)
|
|
89
89
|
])
|
|
@@ -96,7 +96,7 @@ const ye = /* @__PURE__ */ $(xe, [["__scopeId", "data-v-f88d6450"]]), we = { cla
|
|
|
96
96
|
], -1)), Se = /* @__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), Ne = /* @__PURE__ */ y({
|
|
97
97
|
__name: "LoadingResponseAMA",
|
|
98
98
|
setup(n) {
|
|
99
|
-
const e =
|
|
99
|
+
const e = u("Generating response"), o = u([
|
|
100
100
|
"This may take a few seconds",
|
|
101
101
|
"Fetching the best response for you",
|
|
102
102
|
"Thinking... give me a moment",
|
|
@@ -108,7 +108,7 @@ const ye = /* @__PURE__ */ $(xe, [["__scopeId", "data-v-f88d6450"]]), we = { cla
|
|
|
108
108
|
return setTimeout(() => {
|
|
109
109
|
const l = Math.floor(Math.random() * o.value.length);
|
|
110
110
|
e.value = o.value[l];
|
|
111
|
-
}, 15e3), (l, p) => (c(),
|
|
111
|
+
}, 15e3), (l, p) => (c(), d("div", qe, [
|
|
112
112
|
s("div", Me, [
|
|
113
113
|
s("div", Ie, S(e.value), 1),
|
|
114
114
|
Le
|
|
@@ -123,9 +123,9 @@ const Ee = /* @__PURE__ */ $(Ne, [["__scopeId", "data-v-12a02acf"]]), Qe = { key
|
|
|
123
123
|
}, Fe = /* @__PURE__ */ y({
|
|
124
124
|
__name: "conversationAMA",
|
|
125
125
|
setup(n) {
|
|
126
|
-
let e =
|
|
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 = k(), p =
|
|
128
|
+
const l = k(), p = u();
|
|
129
129
|
return Q(() => {
|
|
130
130
|
var t;
|
|
131
131
|
const m = document.getElementsByName("askQuestion"), r = Array.from(m);
|
|
@@ -134,14 +134,14 @@ const Ee = /* @__PURE__ */ $(Ne, [["__scopeId", "data-v-12a02acf"]]), Qe = { key
|
|
|
134
134
|
var t;
|
|
135
135
|
const m = document.getElementsByName("askQuestion"), r = Array.from(m);
|
|
136
136
|
m.length && ((t = r == null ? void 0 : r.pop()) == null || t.scrollIntoView({ behavior: "smooth", block: "center" }));
|
|
137
|
-
}), (m, r) => (c(),
|
|
137
|
+
}), (m, r) => (c(), d("div", {
|
|
138
138
|
ref_key: "nestedElement",
|
|
139
139
|
ref: p,
|
|
140
140
|
class: "smooth-scroll overflow-auto md:px-6 px-2"
|
|
141
141
|
}, [
|
|
142
142
|
x(he),
|
|
143
|
-
(c(!0),
|
|
144
|
-
t.question ? (c(),
|
|
143
|
+
(c(!0), d(O, null, Z(v(l).conversations, (t, _) => (c(), d("div", { key: _ }, [
|
|
144
|
+
t.question ? (c(), d("div", Qe, [
|
|
145
145
|
x($e, {
|
|
146
146
|
question: t.question,
|
|
147
147
|
c2question: t.c2question,
|
|
@@ -151,7 +151,7 @@ const Ee = /* @__PURE__ */ $(Ne, [["__scopeId", "data-v-12a02acf"]]), Qe = { key
|
|
|
151
151
|
"que-id": _
|
|
152
152
|
}, null, 8, ["question", "c2question", "show-feedback", "id", "que-id"])
|
|
153
153
|
])) : I("", !0),
|
|
154
|
-
t.answer ? (c(),
|
|
154
|
+
t.answer ? (c(), d("div", Ce, [
|
|
155
155
|
x(ye, {
|
|
156
156
|
question: t == null ? void 0 : t.question,
|
|
157
157
|
c2question: t == null ? void 0 : t.c2question,
|
|
@@ -165,7 +165,7 @@ const Ee = /* @__PURE__ */ $(Ne, [["__scopeId", "data-v-12a02acf"]]), Qe = { key
|
|
|
165
165
|
}, null, 8, ["question", "c2question", "show-sources", "questionId", "answer", "show-feedback", "related-ques", "options-array", "ans-id"])
|
|
166
166
|
])) : I("", !0)
|
|
167
167
|
]))), 128)),
|
|
168
|
-
v(l).dotLoader ? (c(),
|
|
168
|
+
v(l).dotLoader ? (c(), d("div", Re, [
|
|
169
169
|
x(Ee)
|
|
170
170
|
])) : I("", !0)
|
|
171
171
|
], 512));
|
|
@@ -190,11 +190,11 @@ const Pe = /* @__PURE__ */ $(Fe, [["__scopeId", "data-v-e6168dd4"]]), q = (n) =>
|
|
|
190
190
|
setup(n) {
|
|
191
191
|
const e = k(), o = F();
|
|
192
192
|
e.question = "";
|
|
193
|
-
const l =
|
|
193
|
+
const l = u(null), p = u(!1), m = u(M), r = u(!1);
|
|
194
194
|
Q(() => {
|
|
195
195
|
l.value.focus();
|
|
196
196
|
});
|
|
197
|
-
const _ =
|
|
197
|
+
const _ = u(((h) => new URLSearchParams(window.location.search).get(h) || "")("amaId"));
|
|
198
198
|
console.log("amaId", _.value);
|
|
199
199
|
const w = (h) => {
|
|
200
200
|
const i = h.length;
|
|
@@ -215,7 +215,7 @@ const Pe = /* @__PURE__ */ $(Fe, [["__scopeId", "data-v-e6168dd4"]]), q = (n) =>
|
|
|
215
215
|
question: e == null ? void 0 : e.question
|
|
216
216
|
};
|
|
217
217
|
e.conversations.push(a);
|
|
218
|
-
const g =
|
|
218
|
+
const g = u("");
|
|
219
219
|
g.value = e == null ? void 0 : e.question, e.question = "";
|
|
220
220
|
const T = {
|
|
221
221
|
skillId: _.value,
|
|
@@ -231,14 +231,14 @@ const Pe = /* @__PURE__ */ $(Fe, [["__scopeId", "data-v-e6168dd4"]]), q = (n) =>
|
|
|
231
231
|
o.setError("There was an issue, please contact helpmate");
|
|
232
232
|
}
|
|
233
233
|
};
|
|
234
|
-
return (h, i) => (c(),
|
|
234
|
+
return (h, i) => (c(), d("div", Te, [
|
|
235
235
|
s("div", je, [
|
|
236
236
|
s("div", Ue, [
|
|
237
237
|
s("div", Ve, [
|
|
238
238
|
s("div", Be, [
|
|
239
239
|
s("div", He, [
|
|
240
|
-
r.value ? (c(),
|
|
241
|
-
(c(),
|
|
240
|
+
r.value ? (c(), d("div", Oe, We)) : (c(), d("div", ze, [
|
|
241
|
+
(c(), d("svg", {
|
|
242
242
|
onClick: i[0] || (i[0] = (f) => A()),
|
|
243
243
|
xmlns: "http://www.w3.org/2000/svg",
|
|
244
244
|
fill: "currentColor",
|
|
@@ -272,7 +272,7 @@ const Pe = /* @__PURE__ */ $(Fe, [["__scopeId", "data-v-e6168dd4"]]), q = (n) =>
|
|
|
272
272
|
]));
|
|
273
273
|
}
|
|
274
274
|
});
|
|
275
|
-
const ts = /* @__PURE__ */ $(ss, [["__scopeId", "data-v-4d4db1ef"]]), C = (n) => (N("data-v-
|
|
275
|
+
const ts = /* @__PURE__ */ $(ss, [["__scopeId", "data-v-4d4db1ef"]]), C = (n) => (N("data-v-4632b0a7"), 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,9 +281,7 @@ 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 =
|
|
285
|
-
d("");
|
|
286
|
-
const r = d(((_) => new URLSearchParams(window.location.search).get(_) || "")("amaId"));
|
|
284
|
+
const e = u(!0), o = u(!1), l = k(), p = F(), r = u(((_) => new URLSearchParams(window.location.search).get(_) || "")("amaId"));
|
|
287
285
|
l.amaSkillId = r.value ?? "", Q(async () => {
|
|
288
286
|
e.value = !0, await t(), e.value = !1;
|
|
289
287
|
});
|
|
@@ -316,7 +314,7 @@ const ts = /* @__PURE__ */ $(ss, [["__scopeId", "data-v-4d4db1ef"]]), C = (n) =>
|
|
|
316
314
|
p.setError("There was an issue, please contact helpmate");
|
|
317
315
|
}
|
|
318
316
|
};
|
|
319
|
-
return (_, w) => (c(),
|
|
317
|
+
return (_, w) => (c(), d("section", null, [
|
|
320
318
|
x(z, { "is-visible": o.value }, {
|
|
321
319
|
default: J(() => [
|
|
322
320
|
as
|
|
@@ -324,7 +322,7 @@ const ts = /* @__PURE__ */ $(ss, [["__scopeId", "data-v-4d4db1ef"]]), C = (n) =>
|
|
|
324
322
|
_: 1
|
|
325
323
|
}, 8, ["is-visible"]),
|
|
326
324
|
s("div", null, [
|
|
327
|
-
e.value ? (c(), X(B, { key: 0 })) : (c(),
|
|
325
|
+
e.value ? (c(), X(B, { key: 0 })) : (c(), d("main", os, [
|
|
328
326
|
s("div", ns, [
|
|
329
327
|
x(ce)
|
|
330
328
|
]),
|
|
@@ -345,7 +343,7 @@ const ts = /* @__PURE__ */ $(ss, [["__scopeId", "data-v-4d4db1ef"]]), C = (n) =>
|
|
|
345
343
|
]));
|
|
346
344
|
}
|
|
347
345
|
});
|
|
348
|
-
const xs = /* @__PURE__ */ $(_s, [["__scopeId", "data-v-
|
|
346
|
+
const xs = /* @__PURE__ */ $(_s, [["__scopeId", "data-v-4632b0a7"]]);
|
|
349
347
|
export {
|
|
350
348
|
xs as default
|
|
351
349
|
};
|