@genpact/genome.mfe.mgtwin-app 1.1.310-alpha → 1.1.312-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-e14acd82.mjs → ArrowLeftCircleIcon-2be68489.mjs} +1 -1
- package/dist/{AssessmentAMA-a10fe60e.mjs → AssessmentAMA-b7a32d79.mjs} +159 -165
- package/dist/{AssessmentSimulation-9d8a6de4.mjs → AssessmentSimulation-514bc62b.mjs} +5 -5
- package/dist/{EditSkillAdminData-88949575.mjs → EditSkillAdminData-60412728.mjs} +3 -3
- package/dist/{EditSkillData-f39928b4.mjs → EditSkillData-3008533c.mjs} +3 -3
- package/dist/{HomeView-c240686d.mjs → HomeView-f325fe60.mjs} +5 -5
- package/dist/{Loading-06476186.mjs → Loading-7429bd4e.mjs} +1 -1
- package/dist/{LoadingSimulation-22be5efd.mjs → LoadingSimulation-7f97a93f.mjs} +1 -1
- package/dist/{Modal-7dacf952.mjs → Modal-6d8f7e5b.mjs} +1 -1
- package/dist/{PaperAirplaneIcon-57c42772.mjs → PaperAirplaneIcon-b446e525.mjs} +1 -1
- package/dist/{PromptTesting-0f8284b1.mjs → PromptTesting-c0c9b1bb.mjs} +3 -3
- package/dist/{SkillAutomation-8cb49df9.mjs → SkillAutomation-d070b5e6.mjs} +3 -3
- package/dist/{SkillData-4ec779fc.mjs → SkillData-82b28d02.mjs} +3 -3
- package/dist/{Testcase-b5a1f305.mjs → Testcase-e84e8aa4.mjs} +3 -3
- package/dist/{UnderMaintenance-fac37030.mjs → UnderMaintenance-6d7e18c6.mjs} +1 -1
- package/dist/{_commonjsHelpers-78d57187.mjs → _commonjsHelpers-087be944.mjs} +1 -1
- package/dist/{api-5d072975.mjs → api-59c6e1f4.mjs} +1 -1
- package/dist/{main-c076478b.mjs → main-32671bcc.mjs} +1417 -1417
- package/dist/mgtwin.es.min.js +1 -1
- package/dist/mgtwin.umd.min.js +12 -12
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { d as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { g as
|
|
1
|
+
import { _ as B, a as G, L as U } from "./LoadingSimulation-7f97a93f.mjs";
|
|
2
|
+
import { _ as V, Q as S, a as D } from "./Modal-6d8f7e5b.mjs";
|
|
3
|
+
import { d as h, r as d, H as R, o as c, c as _, a as s, u as $, y as C, t as q, G as H, p as L, g as P, C as E, z, h as g, F as O, e as W, f as I, b, k as T, w as Z, m as K, L as Y, q as F, s as J, l as X } from "./main-32671bcc.mjs";
|
|
4
|
+
import { _ as A } from "./_plugin-vue_export-helper-dad06003.mjs";
|
|
5
|
+
import { p as ee, g as se } from "./api-59c6e1f4.mjs";
|
|
6
6
|
import "./loadernew-ac153a51.mjs";
|
|
7
|
-
const
|
|
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
8
|
class: "h-11 w-auto cursor-pointer",
|
|
9
|
-
src:
|
|
9
|
+
src: B,
|
|
10
10
|
alt: "Genome Logo"
|
|
11
|
-
}, null, -1),
|
|
12
|
-
|
|
13
|
-
],
|
|
11
|
+
}, null, -1), oe = [
|
|
12
|
+
le
|
|
13
|
+
], ie = ["href"], ne = /* @__PURE__ */ s("img", {
|
|
14
14
|
class: "h-9 w-28 cursor-pointer md:w-36",
|
|
15
|
-
src:
|
|
15
|
+
src: V,
|
|
16
16
|
alt: "Aiguru Logo"
|
|
17
|
-
}, null, -1),
|
|
18
|
-
|
|
19
|
-
],
|
|
17
|
+
}, null, -1), re = [
|
|
18
|
+
ne
|
|
19
|
+
], ce = /* @__PURE__ */ h({
|
|
20
20
|
__name: "headerAMA",
|
|
21
21
|
setup(t) {
|
|
22
|
-
const e =
|
|
23
|
-
return
|
|
22
|
+
const e = d(""), l = d("");
|
|
23
|
+
return R === "prod" ? e.value = "https://genome.genpact.com" : e.value = "https://genome-dev.genpact.com", R === "prod" ? l.value = "https://genome.genpact.com/#aiguru" : l.value = "https://genome-dev.genpact.com/#aiguru", (n, m) => (c(), _("nav", ae, [
|
|
24
24
|
s("a", {
|
|
25
25
|
class: "px-2 md:px-0 lg:px-0",
|
|
26
26
|
href: e.value,
|
|
27
27
|
target: "_blank"
|
|
28
|
-
},
|
|
28
|
+
}, oe, 8, te),
|
|
29
29
|
s("a", {
|
|
30
30
|
class: "px-2 md:px-0 lg:px-0",
|
|
31
31
|
href: l.value,
|
|
32
32
|
target: "_blank"
|
|
33
|
-
},
|
|
33
|
+
}, re, 8, ie)
|
|
34
34
|
]));
|
|
35
35
|
}
|
|
36
|
-
}),
|
|
36
|
+
}), de = { 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 = /* @__PURE__ */ s("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), fe = /* @__PURE__ */ s("br", null, null, -1), pe = /* @__PURE__ */ h({
|
|
37
37
|
__name: "greetingsAMA",
|
|
38
38
|
setup(t) {
|
|
39
|
-
const e =
|
|
40
|
-
return
|
|
41
|
-
s("div",
|
|
42
|
-
s("div",
|
|
43
|
-
s("div",
|
|
44
|
-
|
|
39
|
+
const e = $(), l = ` Hi ${e.learnerName || "Expert"}, and welcome to ${e.amaSkillName || "SkillName"} !`, n = C(() => l);
|
|
40
|
+
return C(() => e.welcomeMessage), (m, f) => (c(), _("section", null, [
|
|
41
|
+
s("div", de, [
|
|
42
|
+
s("div", _e, [
|
|
43
|
+
s("div", ue, q(n.value), 1),
|
|
44
|
+
me
|
|
45
45
|
])
|
|
46
46
|
]),
|
|
47
|
-
|
|
47
|
+
fe
|
|
48
48
|
]));
|
|
49
49
|
}
|
|
50
|
-
}),
|
|
50
|
+
}), ge = { class: "fontFormattingAMA flex items-end justify-start py-2" }, he = { class: "line-break w-full bg-gray-100 p-3 text-sm text-black md:text-[15px] rounded-lg" }, ke = ["innerHTML"], be = /* @__PURE__ */ h({
|
|
51
51
|
__name: "responseAMA",
|
|
52
52
|
props: {
|
|
53
53
|
answer: {
|
|
@@ -56,24 +56,24 @@ const X = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#02
|
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
setup(t) {
|
|
59
|
-
const e = t, l =
|
|
60
|
-
const
|
|
59
|
+
const e = t, l = C(() => {
|
|
60
|
+
const n = e.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
|
-
),
|
|
64
|
-
return
|
|
63
|
+
), m = /\[([^\]]+)\]\((https?:\/\/[^\s]+)\)/g;
|
|
64
|
+
return n.replace(m, (f, i, a) => `<a href="${a}" target="_blank" rel="noopener noreferrer" style="color: blue; text-decoration: underline;">${i}</a>`);
|
|
65
65
|
});
|
|
66
|
-
return (
|
|
67
|
-
s("div",
|
|
66
|
+
return (n, m) => (c(), _("div", ge, [
|
|
67
|
+
s("div", he, [
|
|
68
68
|
s("span", {
|
|
69
69
|
class: "fontFormattingAMA",
|
|
70
70
|
innerHTML: l.value
|
|
71
|
-
}, null, 8,
|
|
71
|
+
}, null, 8, ke)
|
|
72
72
|
])
|
|
73
73
|
]));
|
|
74
74
|
}
|
|
75
75
|
});
|
|
76
|
-
const
|
|
76
|
+
const ve = /* @__PURE__ */ A(be, [["__scopeId", "data-v-38edcca6"]]), xe = { 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" }, Ae = /* @__PURE__ */ h({
|
|
77
77
|
__name: "learnerAMA",
|
|
78
78
|
props: {
|
|
79
79
|
question: {
|
|
@@ -82,20 +82,20 @@ const he = /* @__PURE__ */ y(ge, [["__scopeId", "data-v-38edcca6"]]), ke = { cla
|
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
setup(t) {
|
|
85
|
-
return (e, l) => (
|
|
86
|
-
s("div",
|
|
87
|
-
s("div",
|
|
85
|
+
return (e, l) => (c(), _("div", xe, [
|
|
86
|
+
s("div", ye, [
|
|
87
|
+
s("div", we, q(t.question), 1)
|
|
88
88
|
])
|
|
89
89
|
]));
|
|
90
90
|
}
|
|
91
|
-
}),
|
|
91
|
+
}), $e = (t) => (L("data-v-12a02acf"), t = t(), P(), t), Me = { class: "flex w-full flex-col items-start justify-start bg-white" }, Se = { class: "bot-typing-animation gap-1" }, Ie = { class: "block w-full text-lg italic text-gray-800" }, Ce = /* @__PURE__ */ $e(() => /* @__PURE__ */ s("span", { class: "dot-animation" }, [
|
|
92
92
|
/* @__PURE__ */ s("span", null, "."),
|
|
93
93
|
/* @__PURE__ */ s("span", null, "."),
|
|
94
94
|
/* @__PURE__ */ s("span", null, ".")
|
|
95
|
-
], -1)),
|
|
95
|
+
], -1)), qe = /* @__PURE__ */ H('<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), Le = /* @__PURE__ */ h({
|
|
96
96
|
__name: "LoadingResponseAMA",
|
|
97
97
|
setup(t) {
|
|
98
|
-
const e =
|
|
98
|
+
const e = d("Generating response"), l = d([
|
|
99
99
|
"This may take a few seconds",
|
|
100
100
|
"Fetching the best response for you",
|
|
101
101
|
"Thinking... give me a moment",
|
|
@@ -105,177 +105,171 @@ const he = /* @__PURE__ */ y(ge, [["__scopeId", "data-v-38edcca6"]]), ke = { cla
|
|
|
105
105
|
"Compiling a response for you"
|
|
106
106
|
]);
|
|
107
107
|
return setTimeout(() => {
|
|
108
|
-
const
|
|
109
|
-
e.value = l.value[
|
|
110
|
-
}, 15e3), (
|
|
111
|
-
s("div",
|
|
112
|
-
s("div",
|
|
113
|
-
|
|
108
|
+
const n = Math.floor(Math.random() * l.value.length);
|
|
109
|
+
e.value = l.value[n];
|
|
110
|
+
}, 15e3), (n, m) => (c(), _("div", Me, [
|
|
111
|
+
s("div", Se, [
|
|
112
|
+
s("div", Ie, q(e.value), 1),
|
|
113
|
+
Ce
|
|
114
114
|
]),
|
|
115
|
-
|
|
115
|
+
qe
|
|
116
116
|
]));
|
|
117
117
|
}
|
|
118
118
|
});
|
|
119
|
-
const
|
|
119
|
+
const Pe = /* @__PURE__ */ A(Le, [["__scopeId", "data-v-12a02acf"]]), Ee = { key: 0 }, Ne = { key: 1 }, Re = {
|
|
120
120
|
key: 0,
|
|
121
121
|
class: "flex"
|
|
122
|
-
},
|
|
122
|
+
}, Te = /* @__PURE__ */ h({
|
|
123
123
|
__name: "conversationAMA",
|
|
124
124
|
setup(t) {
|
|
125
|
-
let e =
|
|
125
|
+
let e = d(""), l = d("");
|
|
126
126
|
e.value = '<a style="color:#00AECF;"', l.value = '<ul style="list-style: disc !important; margin-left: 3.5rem !important; padding: 0;"';
|
|
127
|
-
const
|
|
128
|
-
return
|
|
127
|
+
const n = $(), m = d();
|
|
128
|
+
return E(() => {
|
|
129
129
|
var a;
|
|
130
130
|
const f = document.getElementsByName("askQuestion"), i = Array.from(f);
|
|
131
131
|
f.length && ((a = i == null ? void 0 : i.pop()) == null || a.scrollIntoView({ behavior: "smooth", block: "center" }));
|
|
132
|
-
}),
|
|
132
|
+
}), z(() => {
|
|
133
133
|
var a;
|
|
134
134
|
const f = document.getElementsByName("askQuestion"), i = Array.from(f);
|
|
135
135
|
f.length && ((a = i == null ? void 0 : i.pop()) == null || a.scrollIntoView({ behavior: "smooth", block: "center" }));
|
|
136
|
-
}), (f, i) => (
|
|
136
|
+
}), (f, i) => (c(), _("div", {
|
|
137
137
|
ref_key: "nestedElement",
|
|
138
|
-
ref:
|
|
138
|
+
ref: m,
|
|
139
139
|
class: "smooth-scroll overflow-auto md:px-6 px-2"
|
|
140
140
|
}, [
|
|
141
|
-
|
|
142
|
-
(
|
|
143
|
-
a.question ? (
|
|
144
|
-
|
|
141
|
+
g(pe),
|
|
142
|
+
(c(!0), _(O, null, W(b(n).conversations, (a, u) => (c(), _("div", { key: u }, [
|
|
143
|
+
a.question ? (c(), _("div", Ee, [
|
|
144
|
+
g(Ae, {
|
|
145
145
|
question: a.question,
|
|
146
146
|
c2question: a.c2question,
|
|
147
147
|
"show-feedback": a.showFeedback,
|
|
148
|
-
id: `qId${
|
|
148
|
+
id: `qId${u}`,
|
|
149
149
|
name: "askQuestion",
|
|
150
|
-
"que-id":
|
|
150
|
+
"que-id": u
|
|
151
151
|
}, null, 8, ["question", "c2question", "show-feedback", "id", "que-id"])
|
|
152
|
-
])) :
|
|
153
|
-
a.answer ? (
|
|
154
|
-
|
|
152
|
+
])) : I("", !0),
|
|
153
|
+
a.answer ? (c(), _("div", Ne, [
|
|
154
|
+
g(ve, {
|
|
155
155
|
question: a == null ? void 0 : a.question,
|
|
156
156
|
c2question: a == null ? void 0 : a.c2question,
|
|
157
157
|
"show-sources": a == null ? void 0 : a.showSources,
|
|
158
158
|
questionId: a.id,
|
|
159
|
-
answer: a.answer.replaceAll("<a",
|
|
159
|
+
answer: a.answer.replaceAll("<a", b(e)).replaceAll("<ul", b(l)),
|
|
160
160
|
"show-feedback": a.showFeedback,
|
|
161
161
|
"related-ques": a.relatedQues,
|
|
162
162
|
"options-array": a.optionsArray,
|
|
163
|
-
"ans-id":
|
|
163
|
+
"ans-id": u
|
|
164
164
|
}, null, 8, ["question", "c2question", "show-sources", "questionId", "answer", "show-feedback", "related-ques", "options-array", "ans-id"])
|
|
165
|
-
])) :
|
|
165
|
+
])) : I("", !0)
|
|
166
166
|
]))), 128)),
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
])) :
|
|
167
|
+
b(n).dotLoader ? (c(), _("div", Re, [
|
|
168
|
+
g(Pe)
|
|
169
|
+
])) : I("", !0)
|
|
170
170
|
], 512));
|
|
171
171
|
}
|
|
172
172
|
});
|
|
173
|
-
const
|
|
174
|
-
|
|
175
|
-
],
|
|
173
|
+
const Fe = /* @__PURE__ */ A(Te, [["__scopeId", "data-v-e6168dd4"]]), M = (t) => (L("data-v-0009d2fa"), t = t(), P(), t), Qe = { class: "z-3 absolute bottom-0 mt-4 w-full bg-white px-2 md:px-6" }, je = { class: "py-2" }, Be = { class: "flex" }, Ge = { class: "z-1 relative w-full" }, Ue = { class: "relative w-full" }, Ve = { class: "absolute inset-y-0 right-0 flex items-center md:pr-8 pr-3" }, De = { key: 0 }, He = /* @__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)), ze = [
|
|
174
|
+
He
|
|
175
|
+
], Oe = {
|
|
176
176
|
key: 1,
|
|
177
177
|
class: "tooltip"
|
|
178
|
-
},
|
|
178
|
+
}, We = /* @__PURE__ */ M(() => /* @__PURE__ */ s("span", { class: "tooltiptext fontFormattingAMA" }, "Waiting for response", -1)), Ze = /* @__PURE__ */ M(() => /* @__PURE__ */ s("img", {
|
|
179
179
|
class: "w-7 h-7",
|
|
180
|
-
src:
|
|
180
|
+
src: G,
|
|
181
181
|
alt: "watingIcon"
|
|
182
|
-
}, null, -1)),
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
],
|
|
182
|
+
}, null, -1)), Ke = [
|
|
183
|
+
We,
|
|
184
|
+
Ze
|
|
185
|
+
], Ye = { class: "flex justify-start" }, Je = /* @__PURE__ */ M(() => /* @__PURE__ */ s("div", { class: "pt-1 text-start font-sans" }, [
|
|
186
186
|
/* @__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. ")
|
|
187
|
-
], -1)),
|
|
187
|
+
], -1)), Xe = /* @__PURE__ */ h({
|
|
188
188
|
__name: "NewQuestionAMA",
|
|
189
189
|
setup(t) {
|
|
190
|
-
const e =
|
|
190
|
+
const e = $(), l = T();
|
|
191
191
|
e.question = "";
|
|
192
|
-
const
|
|
193
|
-
|
|
194
|
-
|
|
192
|
+
const n = d(null), m = d(!1), f = d(S), i = d(!1);
|
|
193
|
+
E(() => {
|
|
194
|
+
n.value.focus();
|
|
195
195
|
});
|
|
196
|
-
const
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
196
|
+
const u = d(((p) => new URLSearchParams(window.location.search).get(p) || "")("amaId"));
|
|
197
|
+
console.log("amaId", u.value);
|
|
198
|
+
const v = (p) => {
|
|
199
|
+
const r = p.length;
|
|
200
|
+
f.value = S - r, m.value = r >= S;
|
|
201
|
+
}, x = async () => {
|
|
202
|
+
var p, r, o, k;
|
|
201
203
|
try {
|
|
202
204
|
if (e.question.trim().length < 1) {
|
|
203
205
|
l.setError("Please enter answer!");
|
|
204
206
|
return;
|
|
205
207
|
}
|
|
206
208
|
i.value = !0, e.dotLoader = !0;
|
|
207
|
-
const
|
|
209
|
+
const y = {
|
|
208
210
|
question: e == null ? void 0 : e.question
|
|
209
211
|
};
|
|
210
|
-
e.conversations.push(
|
|
211
|
-
const
|
|
212
|
-
|
|
213
|
-
const
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
question: g.value,
|
|
212
|
+
e.conversations.push(y);
|
|
213
|
+
const w = d("");
|
|
214
|
+
w.value = e == null ? void 0 : e.question, e.question = "";
|
|
215
|
+
const Q = {
|
|
216
|
+
skillId: u.value,
|
|
217
|
+
question: w.value,
|
|
217
218
|
past_messages: e.past_messages
|
|
218
|
-
},
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
data: F
|
|
225
|
-
});
|
|
226
|
-
e.addConversation($ == null ? void 0 : $.data, "new"), i.value = !1, e.dotLoader = !1;
|
|
227
|
-
} catch (n) {
|
|
228
|
-
if (console.error(n), e.dotLoader = !1, i.value = !1, I.isAxiosError(n)) {
|
|
229
|
-
const g = n;
|
|
230
|
-
console.log("Error found!"), console.error((h = g.response) == null ? void 0 : h.data), l.setError((p = (c = g.response) == null ? void 0 : c.data) == null ? void 0 : p.message);
|
|
219
|
+
}, j = await ee("/amaBotResponse", Q);
|
|
220
|
+
e.addConversation((p = j.data) == null ? void 0 : p.body, "new"), i.value = !1, e.dotLoader = !1;
|
|
221
|
+
} catch (y) {
|
|
222
|
+
if (console.error(y), e.dotLoader = !1, i.value = !1, F.isAxiosError(y)) {
|
|
223
|
+
const w = y;
|
|
224
|
+
console.log("Error found!"), console.error((r = w.response) == null ? void 0 : r.data), l.setError((k = (o = w.response) == null ? void 0 : o.data) == null ? void 0 : k.message);
|
|
231
225
|
} else
|
|
232
226
|
l.setError("There was an issue, please contact helpmate");
|
|
233
227
|
}
|
|
234
228
|
};
|
|
235
|
-
return (
|
|
236
|
-
s("div",
|
|
237
|
-
s("div",
|
|
238
|
-
s("div",
|
|
239
|
-
s("div",
|
|
240
|
-
s("div",
|
|
241
|
-
i.value ? (
|
|
242
|
-
(
|
|
243
|
-
onClick:
|
|
229
|
+
return (p, r) => (c(), _("div", Qe, [
|
|
230
|
+
s("div", je, [
|
|
231
|
+
s("div", Be, [
|
|
232
|
+
s("div", Ge, [
|
|
233
|
+
s("div", Ue, [
|
|
234
|
+
s("div", Ve, [
|
|
235
|
+
i.value ? (c(), _("div", Oe, Ke)) : (c(), _("div", De, [
|
|
236
|
+
(c(), _("svg", {
|
|
237
|
+
onClick: r[0] || (r[0] = (o) => x()),
|
|
244
238
|
xmlns: "http://www.w3.org/2000/svg",
|
|
245
239
|
fill: "currentColor",
|
|
246
240
|
class: "bi bi-send ml-2 h-7 w-7 rotate-45 rounded",
|
|
247
241
|
viewBox: "0 0 16 16"
|
|
248
|
-
},
|
|
242
|
+
}, ze))
|
|
249
243
|
]))
|
|
250
244
|
]),
|
|
251
|
-
s("div",
|
|
252
|
-
|
|
245
|
+
s("div", Ye, [
|
|
246
|
+
Z(s("input", {
|
|
253
247
|
onKeyup: [
|
|
254
|
-
|
|
255
|
-
|
|
248
|
+
r[1] || (r[1] = Y((o) => i.value ? "" : x(), ["enter"])),
|
|
249
|
+
r[3] || (r[3] = (o) => v(b(e).question))
|
|
256
250
|
],
|
|
257
|
-
"onUpdate:modelValue":
|
|
251
|
+
"onUpdate:modelValue": r[2] || (r[2] = (o) => b(e).question = o),
|
|
258
252
|
class: "fontFormattingAMA rounded-lg flex w-full border border-genpact-darkest-teal py-[18px] pl-[30px] pr-[70px]",
|
|
259
253
|
placeholder: "Write your answer here...",
|
|
260
254
|
type: "text",
|
|
261
255
|
ref_key: "AiSearch",
|
|
262
|
-
ref:
|
|
256
|
+
ref: n
|
|
263
257
|
}, null, 544), [
|
|
264
|
-
[
|
|
258
|
+
[K, b(e).question]
|
|
265
259
|
])
|
|
266
260
|
])
|
|
267
261
|
]),
|
|
268
|
-
|
|
262
|
+
Je
|
|
269
263
|
])
|
|
270
264
|
])
|
|
271
265
|
])
|
|
272
266
|
]));
|
|
273
267
|
}
|
|
274
268
|
});
|
|
275
|
-
const
|
|
269
|
+
const es = /* @__PURE__ */ A(Xe, [["__scopeId", "data-v-0009d2fa"]]), ss = (t) => {
|
|
276
270
|
var e;
|
|
277
|
-
return (e =
|
|
278
|
-
},
|
|
271
|
+
return (e = as.find((l) => l.skill_id === t)) == null ? void 0 : e.skill_name;
|
|
272
|
+
}, as = [
|
|
279
273
|
{
|
|
280
274
|
skill_alias: "Client Relationships",
|
|
281
275
|
skill_name: "Client Relationships",
|
|
@@ -419,23 +413,23 @@ const Ye = /* @__PURE__ */ y(Ke, [["__scopeId", "data-v-74770342"]]), Je = (t) =
|
|
|
419
413
|
skill_name: "Cloud",
|
|
420
414
|
skill_id: "9e018249-fba4-41b8-be19-364ddf78b61d"
|
|
421
415
|
}
|
|
422
|
-
],
|
|
416
|
+
], N = (t) => (L("data-v-466e517f"), t = t(), P(), t), ts = /* @__PURE__ */ N(() => /* @__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]" }, [
|
|
423
417
|
/* @__PURE__ */ s("div", { class: "text-2xl font-[700]" }, "Assessment Access Required"),
|
|
424
418
|
/* @__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 ")
|
|
425
|
-
], -1)),
|
|
419
|
+
], -1)), ls = {
|
|
426
420
|
key: 1,
|
|
427
421
|
className: "h-screen flex flex-col items-stretch"
|
|
428
|
-
},
|
|
422
|
+
}, os = { class: "z-20" }, is = /* @__PURE__ */ N(() => /* @__PURE__ */ s("div", { class: "mt-6" }, null, -1)), ns = { class: "flex h-full items-stretch overflow-hidden" }, rs = { class: "mx-auto w-11/12 bg-white" }, cs = { class: "relative flex h-full w-full flex-col items-stretch overflow-hidden" }, ds = /* @__PURE__ */ N(() => /* @__PURE__ */ s("div", { class: "mt-[160px]" }, null, -1)), _s = { class: "relative" }, us = /* @__PURE__ */ h({
|
|
429
423
|
__name: "AssessmentAMA",
|
|
430
424
|
setup(t) {
|
|
431
|
-
const e =
|
|
432
|
-
|
|
433
|
-
const i =
|
|
434
|
-
|
|
425
|
+
const e = d(!0), l = d(!1), n = $(), m = T();
|
|
426
|
+
d("");
|
|
427
|
+
const i = d(((u) => new URLSearchParams(window.location.search).get(u) || "")("amaId"));
|
|
428
|
+
n.amaSkillId = i.value ?? "", E(async () => {
|
|
435
429
|
e.value = !0, await a(), e.value = !1;
|
|
436
430
|
});
|
|
437
431
|
const a = async () => {
|
|
438
|
-
var
|
|
432
|
+
var u, v, x, p, r;
|
|
439
433
|
try {
|
|
440
434
|
if (i.value === null)
|
|
441
435
|
throw {
|
|
@@ -447,43 +441,43 @@ const Ye = /* @__PURE__ */ y(Ke, [["__scopeId", "data-v-74770342"]]), Je = (t) =
|
|
|
447
441
|
}
|
|
448
442
|
};
|
|
449
443
|
console.log("before calling get learner");
|
|
450
|
-
const
|
|
444
|
+
const o = await se(
|
|
451
445
|
`/getLearnerData?forSimulation=true&skillForSimulation=${i.value}`
|
|
452
446
|
);
|
|
453
|
-
|
|
454
|
-
} catch (
|
|
455
|
-
if (console.error(
|
|
456
|
-
const
|
|
457
|
-
if (console.log("Error found!"), console.error((v =
|
|
447
|
+
n.initialize(o.data), n.amaSkillName = ss(n.amaSkillId) || "", e.value = !1;
|
|
448
|
+
} catch (o) {
|
|
449
|
+
if (console.error(o), e.value = !1, F.isAxiosError(o) && ((u = o.response) != null && u.status) || o && typeof o == "object" && "response" in o && o.response && typeof o.response == "object" && "status" in o.response && o.response.status) {
|
|
450
|
+
const k = o;
|
|
451
|
+
if (console.log("Error found!"), console.error((v = k.response) == null ? void 0 : v.data), ((x = k.response) == null ? void 0 : x.status) === 424 || ((p = k.response) == null ? void 0 : p.status) === 425) {
|
|
458
452
|
l.value = !0;
|
|
459
453
|
return;
|
|
460
454
|
}
|
|
461
|
-
|
|
455
|
+
m.setError(((r = k.response) == null ? void 0 : r.data).message);
|
|
462
456
|
} else
|
|
463
|
-
|
|
457
|
+
m.setError("There was an issue, please contact helpmate");
|
|
464
458
|
}
|
|
465
459
|
};
|
|
466
|
-
return (
|
|
467
|
-
|
|
468
|
-
default:
|
|
469
|
-
|
|
460
|
+
return (u, v) => (c(), _("section", null, [
|
|
461
|
+
g(D, { "is-visible": l.value }, {
|
|
462
|
+
default: J(() => [
|
|
463
|
+
ts
|
|
470
464
|
]),
|
|
471
465
|
_: 1
|
|
472
466
|
}, 8, ["is-visible"]),
|
|
473
467
|
s("div", null, [
|
|
474
|
-
e.value ? (
|
|
475
|
-
s("div",
|
|
476
|
-
|
|
468
|
+
e.value ? (c(), X(U, { key: 0 })) : (c(), _("main", ls, [
|
|
469
|
+
s("div", os, [
|
|
470
|
+
g(ce)
|
|
477
471
|
]),
|
|
478
|
-
|
|
479
|
-
s("div",
|
|
480
|
-
s("div",
|
|
481
|
-
s("div",
|
|
482
|
-
|
|
483
|
-
|
|
472
|
+
is,
|
|
473
|
+
s("div", ns, [
|
|
474
|
+
s("div", rs, [
|
|
475
|
+
s("div", cs, [
|
|
476
|
+
g(Fe),
|
|
477
|
+
ds
|
|
484
478
|
]),
|
|
485
|
-
s("div",
|
|
486
|
-
|
|
479
|
+
s("div", _s, [
|
|
480
|
+
g(es)
|
|
487
481
|
])
|
|
488
482
|
])
|
|
489
483
|
])
|
|
@@ -492,7 +486,7 @@ const Ye = /* @__PURE__ */ y(Ke, [["__scopeId", "data-v-74770342"]]), Je = (t) =
|
|
|
492
486
|
]));
|
|
493
487
|
}
|
|
494
488
|
});
|
|
495
|
-
const
|
|
489
|
+
const bs = /* @__PURE__ */ A(us, [["__scopeId", "data-v-466e517f"]]);
|
|
496
490
|
export {
|
|
497
|
-
|
|
491
|
+
bs as default
|
|
498
492
|
};
|
|
@@ -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-7f97a93f.mjs";
|
|
2
|
+
import { _ as Pl, a as cp, Q as jt, M as Ta } from "./Modal-6d8f7e5b.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-32671bcc.mjs";
|
|
4
|
+
import { g as Bn, p as Rt } from "./api-59c6e1f4.mjs";
|
|
5
|
+
import { c as q, a as Il, r as _l } from "./_commonjsHelpers-087be944.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-32671bcc.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-59c6e1f4.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-2be68489.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-32671bcc.mjs";
|
|
2
2
|
import { _ as K } from "./loadernew-ac153a51.mjs";
|
|
3
|
-
import { p as $ } from "./api-
|
|
3
|
+
import { p as $ } from "./api-59c6e1f4.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-2be68489.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",
|