@genpact/genome.mfe.mgtwin-app 1.1.318-alpha → 1.1.320-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-b915c350.mjs → ArrowLeftCircleIcon-b5ed9f06.mjs} +1 -1
- package/dist/{AssessmentAMA-20c73da0.mjs → AssessmentAMA-a96b227f.mjs} +86 -86
- package/dist/{AssessmentSimulation-5be3d73f.mjs → AssessmentSimulation-da09cee2.mjs} +9 -9
- package/dist/{EditSkillAdminData-58e02e9f.mjs → EditSkillAdminData-edcb40e8.mjs} +3 -3
- package/dist/{EditSkillData-b84ac746.mjs → EditSkillData-a4d59f2e.mjs} +3 -3
- package/dist/{HomeView-e034de42.mjs → HomeView-a75d1df1.mjs} +195 -195
- package/dist/{Loading-ed02254f.mjs → Loading-d82b8d6a.mjs} +1 -1
- package/dist/{LoadingSimulation-309cc266.mjs → LoadingSimulation-a3238a75.mjs} +1 -1
- package/dist/{Modal-0dde3399.mjs → Modal-dc33b394.mjs} +1 -1
- package/dist/{PaperAirplaneIcon-c5ef6e89.mjs → PaperAirplaneIcon-b691f058.mjs} +1 -1
- package/dist/{PromptTesting-396ff34c.mjs → PromptTesting-9b4903e5.mjs} +3 -3
- package/dist/{SkillAutomation-dadb1d19.mjs → SkillAutomation-8e7367b7.mjs} +3 -3
- package/dist/{SkillData-8f9989b7.mjs → SkillData-b5c812f2.mjs} +3 -3
- package/dist/{Testcase-2e0f4bcf.mjs → Testcase-663ecf54.mjs} +3 -3
- package/dist/{UnderMaintenance-7a623b43.mjs → UnderMaintenance-2ab081e7.mjs} +1 -1
- package/dist/{_commonjsHelpers-75eb9b2e.mjs → _commonjsHelpers-4b28839d.mjs} +1 -1
- package/dist/{api-7ee8a1fc.mjs → api-b57f93f6.mjs} +1 -1
- package/dist/{main-33d85fab.mjs → main-97ca87f4.mjs} +1710 -1710
- package/dist/mgtwin.es.min.js +1 -1
- package/dist/mgtwin.umd.min.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
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
|
|
1
|
+
import { _ as H, a as U, L as V } from "./LoadingSimulation-a3238a75.mjs";
|
|
2
|
+
import { _ as B, Q as M, a as z } from "./Modal-dc33b394.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 N, g as E, 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-97ca87f4.mjs";
|
|
4
4
|
import { _ as $ } from "./_plugin-vue_export-helper-dad06003.mjs";
|
|
5
|
-
import { p as ee, g as
|
|
5
|
+
import { p as ee, g as se } from "./api-b57f93f6.mjs";
|
|
6
6
|
import "./loadernew-ac153a51.mjs";
|
|
7
|
-
const
|
|
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__ */ e("img", {
|
|
8
8
|
class: "h-11 w-auto cursor-pointer",
|
|
9
9
|
src: H,
|
|
10
10
|
alt: "Genome Logo"
|
|
@@ -19,11 +19,11 @@ const se = { 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
|
|
23
|
-
return R === "prod" ?
|
|
22
|
+
const s = d(""), o = d("");
|
|
23
|
+
return R === "prod" ? s.value = "https://genome.genpact.com" : s.value = "https://genome-dev.genpact.com", R === "prod" ? o.value = "https://genome.genpact.com/#aiguru" : o.value = "https://genome-dev.genpact.com/#aiguru", (l, _) => (c(), u("nav", te, [
|
|
24
24
|
e("a", {
|
|
25
25
|
class: "px-2 md:px-0 lg:px-0",
|
|
26
|
-
href:
|
|
26
|
+
href: s.value,
|
|
27
27
|
target: "_blank"
|
|
28
28
|
}, ne, 8, ae),
|
|
29
29
|
e("a", {
|
|
@@ -33,10 +33,10 @@ const se = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#0
|
|
|
33
33
|
}, ie, 8, re)
|
|
34
34
|
]));
|
|
35
35
|
}
|
|
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
|
|
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 = { class: "w-full px-3 py-2 text-black text-xs md:text-base font-[550]" }, he = ["innerHTML"], fe = /* @__PURE__ */ e("br", null, null, -1), ge = /* @__PURE__ */ y({
|
|
37
37
|
__name: "greetingsAMA",
|
|
38
38
|
setup(n) {
|
|
39
|
-
const
|
|
39
|
+
const s = k(), o = ` Hi ${s.learnerName || "Learner"} ! 👋`, l = L(() => o), _ = L(() => `I'm here and ready to help! What would you like to know about <span class='font-[600]'>${s.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, [
|
|
@@ -51,7 +51,7 @@ const se = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#0
|
|
|
51
51
|
fe
|
|
52
52
|
]));
|
|
53
53
|
}
|
|
54
|
-
}), ve = { class: "fontFormattingAMA flex items-end justify-start py-2" }, xe = { class: "line-break w-full bg-gray-100 p-3 text-
|
|
54
|
+
}), ve = { class: "fontFormattingAMA flex items-end justify-start py-2" }, xe = { class: "line-break w-full bg-gray-100 p-3 text-xs md:text-sm text-black rounded-lg" }, ye = ["innerHTML"], we = /* @__PURE__ */ y({
|
|
55
55
|
__name: "responseAMA",
|
|
56
56
|
props: {
|
|
57
57
|
answer: {
|
|
@@ -60,12 +60,12 @@ const se = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#0
|
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
setup(n) {
|
|
63
|
-
const
|
|
64
|
-
const l =
|
|
63
|
+
const s = n, o = L(() => {
|
|
64
|
+
const l = s.answer.replace(/[*#]/g, "").replace(
|
|
65
65
|
/Assessment Rating & Feedback/g,
|
|
66
66
|
'<div style="font-size: 26px; font-weight: bold; text-decoration: underline;">Rating & Feedback</div>'
|
|
67
67
|
), _ = /\[([^\]]+)\]\((https?:\/\/[^\s]+)\)/g;
|
|
68
|
-
return l.replace(_, (m, r,
|
|
68
|
+
return l.replace(_, (m, r, t) => `<a href="${t}" target="_blank" rel="noopener noreferrer" style="color: blue; text-decoration: underline;">${r}</a>`);
|
|
69
69
|
});
|
|
70
70
|
return (l, _) => (c(), u("div", ve, [
|
|
71
71
|
e("div", xe, [
|
|
@@ -77,7 +77,7 @@ const se = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#0
|
|
|
77
77
|
]));
|
|
78
78
|
}
|
|
79
79
|
});
|
|
80
|
-
const Ae = /* @__PURE__ */ $(we, [["__scopeId", "data-v-
|
|
80
|
+
const Ae = /* @__PURE__ */ $(we, [["__scopeId", "data-v-aea5566e"]]), be = { class: "flex justify-end items-end py-3" }, $e = { class: "max-w-[80%]" }, ke = { class: "w-fit fontFormattingAMA text-xs md:text-sm text-white bg-genpact-blue-box leading-6 p-3 rounded-lg" }, qe = /* @__PURE__ */ y({
|
|
81
81
|
__name: "learnerAMA",
|
|
82
82
|
props: {
|
|
83
83
|
question: {
|
|
@@ -86,20 +86,20 @@ const Ae = /* @__PURE__ */ $(we, [["__scopeId", "data-v-38edcca6"]]), be = { cla
|
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
88
|
setup(n) {
|
|
89
|
-
return (
|
|
89
|
+
return (s, o) => (c(), u("div", be, [
|
|
90
90
|
e("div", $e, [
|
|
91
91
|
e("div", ke, S(n.question), 1)
|
|
92
92
|
])
|
|
93
93
|
]));
|
|
94
94
|
}
|
|
95
|
-
}), Me = (n) => (
|
|
95
|
+
}), Me = (n) => (N("data-v-12a02acf"), n = n(), E(), 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" }, Ne = /* @__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)), Ee = /* @__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
|
-
const
|
|
102
|
+
const s = d("Generating response"), o = d([
|
|
103
103
|
"This may take a few seconds",
|
|
104
104
|
"Fetching the best response for you",
|
|
105
105
|
"Thinking... give me a moment",
|
|
@@ -110,13 +110,13 @@ const Ae = /* @__PURE__ */ $(we, [["__scopeId", "data-v-38edcca6"]]), be = { cla
|
|
|
110
110
|
]);
|
|
111
111
|
return setTimeout(() => {
|
|
112
112
|
const l = Math.floor(Math.random() * o.value.length);
|
|
113
|
-
|
|
113
|
+
s.value = o.value[l];
|
|
114
114
|
}, 15e3), (l, _) => (c(), u("div", Ie, [
|
|
115
115
|
e("div", Le, [
|
|
116
|
-
e("div", Se, S(
|
|
117
|
-
|
|
116
|
+
e("div", Se, S(s.value), 1),
|
|
117
|
+
Ne
|
|
118
118
|
]),
|
|
119
|
-
|
|
119
|
+
Ee
|
|
120
120
|
]));
|
|
121
121
|
}
|
|
122
122
|
});
|
|
@@ -126,44 +126,44 @@ const Ce = /* @__PURE__ */ $(Qe, [["__scopeId", "data-v-12a02acf"]]), Re = { key
|
|
|
126
126
|
}, je = /* @__PURE__ */ y({
|
|
127
127
|
__name: "conversationAMA",
|
|
128
128
|
setup(n) {
|
|
129
|
-
let
|
|
130
|
-
|
|
129
|
+
let s = d(""), o = d("");
|
|
130
|
+
s.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
132
|
return Q(() => {
|
|
133
|
-
var
|
|
133
|
+
var t;
|
|
134
134
|
const m = document.getElementsByName("askQuestion"), r = Array.from(m);
|
|
135
|
-
m.length && ((
|
|
135
|
+
m.length && ((t = r == null ? void 0 : r.pop()) == null || t.scrollIntoView({ behavior: "smooth", block: "center" }));
|
|
136
136
|
}), D(() => {
|
|
137
|
-
var
|
|
137
|
+
var t;
|
|
138
138
|
const m = document.getElementsByName("askQuestion"), r = Array.from(m);
|
|
139
|
-
m.length && ((
|
|
139
|
+
m.length && ((t = r == null ? void 0 : r.pop()) == null || t.scrollIntoView({ behavior: "smooth", block: "center" }));
|
|
140
140
|
}), (m, r) => (c(), u("div", {
|
|
141
141
|
ref_key: "nestedElement",
|
|
142
142
|
ref: _,
|
|
143
143
|
class: "smooth-scroll overflow-auto md:px-6 px-2"
|
|
144
144
|
}, [
|
|
145
145
|
x(ge),
|
|
146
|
-
(c(!0), u(O, null, W(v(l).conversations, (
|
|
147
|
-
|
|
146
|
+
(c(!0), u(O, null, W(v(l).conversations, (t, p) => (c(), u("div", { key: p }, [
|
|
147
|
+
t.question ? (c(), u("div", Re, [
|
|
148
148
|
x(qe, {
|
|
149
|
-
question:
|
|
150
|
-
c2question:
|
|
151
|
-
"show-feedback":
|
|
149
|
+
question: t.question,
|
|
150
|
+
c2question: t.c2question,
|
|
151
|
+
"show-feedback": t.showFeedback,
|
|
152
152
|
id: `qId${p}`,
|
|
153
153
|
name: "askQuestion",
|
|
154
154
|
"que-id": p
|
|
155
155
|
}, null, 8, ["question", "c2question", "show-feedback", "id", "que-id"])
|
|
156
156
|
])) : I("", !0),
|
|
157
|
-
|
|
157
|
+
t.answer ? (c(), u("div", Fe, [
|
|
158
158
|
x(Ae, {
|
|
159
|
-
question:
|
|
160
|
-
c2question:
|
|
161
|
-
"show-sources":
|
|
162
|
-
questionId:
|
|
163
|
-
answer:
|
|
164
|
-
"show-feedback":
|
|
165
|
-
"related-ques":
|
|
166
|
-
"options-array":
|
|
159
|
+
question: t == null ? void 0 : t.question,
|
|
160
|
+
c2question: t == null ? void 0 : t.c2question,
|
|
161
|
+
"show-sources": t == null ? void 0 : t.showSources,
|
|
162
|
+
questionId: t.id,
|
|
163
|
+
answer: t.answer.replaceAll("<a", v(s)).replaceAll("<ul", v(o)),
|
|
164
|
+
"show-feedback": t.showFeedback,
|
|
165
|
+
"related-ques": t.relatedQues,
|
|
166
|
+
"options-array": t.optionsArray,
|
|
167
167
|
"ans-id": p
|
|
168
168
|
}, null, 8, ["question", "c2question", "show-sources", "questionId", "answer", "show-feedback", "related-ques", "options-array", "ans-id"])
|
|
169
169
|
])) : I("", !0)
|
|
@@ -174,7 +174,7 @@ const Ce = /* @__PURE__ */ $(Qe, [["__scopeId", "data-v-12a02acf"]]), Re = { key
|
|
|
174
174
|
], 512));
|
|
175
175
|
}
|
|
176
176
|
});
|
|
177
|
-
const Pe = /* @__PURE__ */ $(je, [["__scopeId", "data-v-e6168dd4"]]), q = (n) => (
|
|
177
|
+
const Pe = /* @__PURE__ */ $(je, [["__scopeId", "data-v-e6168dd4"]]), q = (n) => (N("data-v-43c648f4"), n = n(), E(), 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
178
|
Oe
|
|
179
179
|
], Ze = {
|
|
180
180
|
key: 1,
|
|
@@ -186,13 +186,13 @@ 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" },
|
|
189
|
+
], Xe = { class: "flex justify-start" }, es = ["placeholder"], ss = { class: "flex justify-start items-start text-[#161916]" }, ts = /* @__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)), as = /* @__PURE__ */ y({
|
|
192
192
|
__name: "NewQuestionAMA",
|
|
193
193
|
setup(n) {
|
|
194
|
-
const
|
|
195
|
-
|
|
194
|
+
const s = k(), o = F();
|
|
195
|
+
s.question = "";
|
|
196
196
|
const l = d(null), _ = d(!1), m = d(M), r = d(!1);
|
|
197
197
|
Q(() => {
|
|
198
198
|
l.value.focus();
|
|
@@ -205,29 +205,29 @@ const Pe = /* @__PURE__ */ $(je, [["__scopeId", "data-v-e6168dd4"]]), q = (n) =>
|
|
|
205
205
|
}, A = async () => {
|
|
206
206
|
var h, i, f, b;
|
|
207
207
|
try {
|
|
208
|
-
if (
|
|
208
|
+
if (s.question.trim().length < 1) {
|
|
209
209
|
o.setError("Please enter answer!");
|
|
210
210
|
return;
|
|
211
211
|
}
|
|
212
|
-
if (
|
|
212
|
+
if (s.amaQuestionsLeft <= 0) {
|
|
213
213
|
o.setError("You have exhausted your question limit!");
|
|
214
214
|
return;
|
|
215
215
|
}
|
|
216
|
-
r.value = !0,
|
|
216
|
+
r.value = !0, s.dotLoader = !0;
|
|
217
217
|
const a = {
|
|
218
|
-
question:
|
|
218
|
+
question: s == null ? void 0 : s.question
|
|
219
219
|
};
|
|
220
|
-
|
|
220
|
+
s.conversations.push(a);
|
|
221
221
|
const g = d("");
|
|
222
|
-
g.value =
|
|
222
|
+
g.value = s == null ? void 0 : s.question, s.question = "";
|
|
223
223
|
const j = {
|
|
224
224
|
skillId: p.value,
|
|
225
225
|
question: g.value,
|
|
226
|
-
past_messages:
|
|
226
|
+
past_messages: s.past_messages
|
|
227
227
|
}, P = await ee("/amaBotResponse", j);
|
|
228
|
-
|
|
228
|
+
s.addConversation((h = P.data) == null ? void 0 : h.body, "new"), r.value = !1, s.dotLoader = !1;
|
|
229
229
|
} catch (a) {
|
|
230
|
-
if (console.error(a),
|
|
230
|
+
if (console.error(a), s.dotLoader = !1, r.value = !1, T.isAxiosError(a)) {
|
|
231
231
|
const g = a;
|
|
232
232
|
console.log("Error found!"), console.error((i = g.response) == null ? void 0 : i.data), o.setError((b = (f = g.response) == null ? void 0 : f.data) == null ? void 0 : b.message);
|
|
233
233
|
} else
|
|
@@ -254,43 +254,43 @@ const Pe = /* @__PURE__ */ $(je, [["__scopeId", "data-v-e6168dd4"]]), q = (n) =>
|
|
|
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(v(
|
|
257
|
+
i[3] || (i[3] = (f) => w(v(s).question))
|
|
258
258
|
],
|
|
259
|
-
"onUpdate:modelValue": i[2] || (i[2] = (f) => v(
|
|
260
|
-
class: "fontFormattingAMA rounded-lg flex w-full border border-genpact-darkest-teal py-
|
|
261
|
-
placeholder: `Ask me about ${v(
|
|
259
|
+
"onUpdate:modelValue": i[2] || (i[2] = (f) => v(s).question = f),
|
|
260
|
+
class: "fontFormattingAMA text-xs md:text-sm rounded-lg flex w-full border border-genpact-darkest-teal py-4 pl-7 pr-16",
|
|
261
|
+
placeholder: `Ask me about ${v(s).amaSkillName || "Skill Name"}`,
|
|
262
262
|
type: "text",
|
|
263
263
|
ref_key: "AiSearch",
|
|
264
264
|
ref: l
|
|
265
|
-
}, null, 40,
|
|
266
|
-
[K, v(
|
|
265
|
+
}, null, 40, es), [
|
|
266
|
+
[K, v(s).question]
|
|
267
267
|
])
|
|
268
268
|
])
|
|
269
269
|
]),
|
|
270
|
-
e("div",
|
|
271
|
-
|
|
270
|
+
e("div", ss, S(v(s).amaQuestionsLeft) + " questions remaining for the day ", 1),
|
|
271
|
+
ts
|
|
272
272
|
])
|
|
273
273
|
])
|
|
274
274
|
])
|
|
275
275
|
]));
|
|
276
276
|
}
|
|
277
277
|
});
|
|
278
|
-
const
|
|
278
|
+
const os = /* @__PURE__ */ $(as, [["__scopeId", "data-v-43c648f4"]]), C = (n) => (N("data-v-944ca5e3"), n = n(), E(), n), ns = /* @__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)), rs = {
|
|
282
282
|
key: 1,
|
|
283
283
|
className: "h-screen flex flex-col items-stretch"
|
|
284
|
-
},
|
|
284
|
+
}, ls = { class: "z-20" }, is = /* @__PURE__ */ C(() => /* @__PURE__ */ e("div", { class: "mt-6" }, null, -1)), cs = { class: "flex h-full items-stretch overflow-hidden" }, ds = { class: "mx-auto w-11/12 bg-white" }, us = { class: "relative flex h-full w-full flex-col items-stretch overflow-hidden" }, _s = /* @__PURE__ */ C(() => /* @__PURE__ */ e("div", { class: "mt-[160px]" }, null, -1)), ps = { class: "relative" }, ms = /* @__PURE__ */ y({
|
|
285
285
|
__name: "AssessmentAMA",
|
|
286
286
|
setup(n) {
|
|
287
|
-
const
|
|
287
|
+
const s = 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
290
|
l.amaSkillId = r.value ?? "", Q(async () => {
|
|
291
|
-
|
|
291
|
+
s.value = !0, await t(), s.value = !1;
|
|
292
292
|
});
|
|
293
|
-
const
|
|
293
|
+
const t = async () => {
|
|
294
294
|
var p, w, A, h, i, f, b;
|
|
295
295
|
try {
|
|
296
296
|
if (r.value === null)
|
|
@@ -303,12 +303,12 @@ const ot = /* @__PURE__ */ $(at, [["__scopeId", "data-v-429e479e"]]), C = (n) =>
|
|
|
303
303
|
}
|
|
304
304
|
};
|
|
305
305
|
console.log("before calling get learner");
|
|
306
|
-
const a = await
|
|
306
|
+
const a = await se(
|
|
307
307
|
`/getLearnerData?amaSkillId=${r.value}`
|
|
308
308
|
);
|
|
309
|
-
l.initialize(a.data), l.amaQuestionsLeft = (p = a == null ? void 0 : a.data) == null ? void 0 : p.questionsLeftAIGC, l.amaSkillName = (w = a == null ? void 0 : a.data) == null ? void 0 : w.skillName,
|
|
309
|
+
l.initialize(a.data), l.amaQuestionsLeft = (p = a == null ? void 0 : a.data) == null ? void 0 : p.questionsLeftAIGC, l.amaSkillName = (w = a == null ? void 0 : a.data) == null ? void 0 : w.skillName, s.value = !1;
|
|
310
310
|
} catch (a) {
|
|
311
|
-
if (console.error(a),
|
|
311
|
+
if (console.error(a), s.value = !1, T.isAxiosError(a) && ((A = a.response) != null && A.status) || a && typeof a == "object" && "response" in a && a.response && typeof a.response == "object" && "status" in a.response && a.response.status) {
|
|
312
312
|
const g = a;
|
|
313
313
|
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) {
|
|
314
314
|
o.value = !0;
|
|
@@ -322,24 +322,24 @@ const ot = /* @__PURE__ */ $(at, [["__scopeId", "data-v-429e479e"]]), C = (n) =>
|
|
|
322
322
|
return (p, w) => (c(), u("section", null, [
|
|
323
323
|
x(z, { "is-visible": o.value }, {
|
|
324
324
|
default: J(() => [
|
|
325
|
-
|
|
325
|
+
ns
|
|
326
326
|
]),
|
|
327
327
|
_: 1
|
|
328
328
|
}, 8, ["is-visible"]),
|
|
329
329
|
e("div", null, [
|
|
330
|
-
|
|
331
|
-
e("div",
|
|
330
|
+
s.value ? (c(), X(V, { key: 0 })) : (c(), u("main", rs, [
|
|
331
|
+
e("div", ls, [
|
|
332
332
|
x(ce)
|
|
333
333
|
]),
|
|
334
|
-
|
|
335
|
-
e("div",
|
|
336
|
-
e("div",
|
|
337
|
-
e("div",
|
|
334
|
+
is,
|
|
335
|
+
e("div", cs, [
|
|
336
|
+
e("div", ds, [
|
|
337
|
+
e("div", us, [
|
|
338
338
|
x(Pe),
|
|
339
|
-
|
|
339
|
+
_s
|
|
340
340
|
]),
|
|
341
|
-
e("div",
|
|
342
|
-
x(
|
|
341
|
+
e("div", ps, [
|
|
342
|
+
x(os)
|
|
343
343
|
])
|
|
344
344
|
])
|
|
345
345
|
])
|
|
@@ -348,7 +348,7 @@ const ot = /* @__PURE__ */ $(at, [["__scopeId", "data-v-429e479e"]]), C = (n) =>
|
|
|
348
348
|
]));
|
|
349
349
|
}
|
|
350
350
|
});
|
|
351
|
-
const
|
|
351
|
+
const ws = /* @__PURE__ */ $(ms, [["__scopeId", "data-v-944ca5e3"]]);
|
|
352
352
|
export {
|
|
353
|
-
|
|
353
|
+
ws as default
|
|
354
354
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as el, a as $u, L as tl } from "./LoadingSimulation-
|
|
2
|
-
import { _ as rl, a as Ku, Q as _t, M as va } from "./Modal-
|
|
3
|
-
import { d as Ae, r as N, H as Tt, o as O, c as D, a as P, u as Xe, k as kn, y as _o, h as Se, s as Ju, t as Je, b as M, f as Ce, i as fe, I as To, F as bo, e as Mo, w as xo, J as nl, p as Nn, g as zn, G as qi, C as jn, z as il, K as sl, q as Ve, n as bt, L as ol, m as Gu, M as Qu, l as al } from "./main-
|
|
1
|
+
import { _ as el, a as $u, L as tl } from "./LoadingSimulation-a3238a75.mjs";
|
|
2
|
+
import { _ as rl, a as Ku, Q as _t, M as va } from "./Modal-dc33b394.mjs";
|
|
3
|
+
import { d as Ae, r as N, H as Tt, o as O, c as D, a as P, u as Xe, k as kn, y as _o, h as Se, s as Ju, t as Je, b as M, f as Ce, i as fe, I as To, F as bo, e as Mo, w as xo, J as nl, p as Nn, g as zn, G as qi, C as jn, z as il, K as sl, q as Ve, n as bt, L as ol, m as Gu, M as Qu, l as al } from "./main-97ca87f4.mjs";
|
|
4
4
|
import { _ as jt } from "./_plugin-vue_export-helper-dad06003.mjs";
|
|
5
|
-
import { c as q, a as cl, r as ul } from "./_commonjsHelpers-
|
|
6
|
-
import { g as Ni, p as pl } from "./api-
|
|
5
|
+
import { c as q, a as cl, r as ul } from "./_commonjsHelpers-4b28839d.mjs";
|
|
6
|
+
import { g as Ni, p as pl } from "./api-b57f93f6.mjs";
|
|
7
7
|
import "./loadernew-ac153a51.mjs";
|
|
8
8
|
const dl = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#021c42] md:pr-6 lg:pr-6" }, ll = ["href"], hl = /* @__PURE__ */ P("img", {
|
|
9
9
|
class: "h-11 w-auto cursor-pointer",
|
|
@@ -34,7 +34,7 @@ const dl = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#0
|
|
|
34
34
|
}, ml, 8, fl)
|
|
35
35
|
]));
|
|
36
36
|
}
|
|
37
|
-
}), Cl = { class: "max-h-screen overflow-auto md:p-6 p-3 flex flex-col items-center justify-center gap-4 text-[#161916] fontFormattingAMA" }, yl = /* @__PURE__ */ P("div", { class: "text-
|
|
37
|
+
}), Cl = { class: "max-h-screen overflow-auto md:p-6 p-3 flex flex-col items-center justify-center gap-4 text-[#161916] fontFormattingAMA" }, yl = /* @__PURE__ */ P("div", { class: "text-xl font-[700]" }, "Please Note Before You Begin", -1), Pl = /* @__PURE__ */ P("ul", { className: "list-disc max-h-[40vh] overflow-auto space-y-3 pl-6 text-[#102345] text-base" }, [
|
|
38
38
|
/* @__PURE__ */ P("li", null, [
|
|
39
39
|
/* @__PURE__ */ fe(" Choose a "),
|
|
40
40
|
/* @__PURE__ */ P("span", { class: "font-[600]" }, "quiet space"),
|
|
@@ -73,7 +73,7 @@ const dl = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#0
|
|
|
73
73
|
/* @__PURE__ */ P("span", { class: "font-[600]" }, "10 minutes "),
|
|
74
74
|
/* @__PURE__ */ fe(", so plan accordingly. ")
|
|
75
75
|
])
|
|
76
|
-
], -1), Rl = { class: "flex items-end justify-start" }, El = { class: "fontFormattingAMA w-full bg-gray-100 rounded-lg" }, Al = { class: "w-full rounded-md px-3 py-2 text-lg font-bold text-black
|
|
76
|
+
], -1), Rl = { class: "flex items-end justify-start" }, El = { class: "fontFormattingAMA w-full bg-gray-100 rounded-lg" }, Al = { class: "w-full rounded-md px-3 py-2 text-lg md:text-xl font-bold text-black" }, wl = { class: "w-full px-3 py-2 text-base text-black md:text-base font-[550]" }, Il = {
|
|
77
77
|
key: 0,
|
|
78
78
|
class: "fontFormattingAMA"
|
|
79
79
|
}, _l = /* @__PURE__ */ P("br", null, null, -1), Tl = ` You're about to step into a realistic, voice-based client conversation powered by AI.
|
|
@@ -99,7 +99,7 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
99
99
|
s.value = !1, e("callQuestion");
|
|
100
100
|
}),
|
|
101
101
|
type: "button",
|
|
102
|
-
class: "bg-[#021c42] rounded-md px-4 py-1.5 text-center text-
|
|
102
|
+
class: "bg-[#021c42] rounded-md px-4 py-1.5 text-center text-base text-white cursor-pointer italic hover:bg-blue-700"
|
|
103
103
|
}, " Proceed ")
|
|
104
104
|
])
|
|
105
105
|
]),
|
|
@@ -116,7 +116,7 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
116
116
|
type: "button",
|
|
117
117
|
id: "button",
|
|
118
118
|
onClick: u,
|
|
119
|
-
class: "mt-4 bg-[#021c42] rounded-md px-4 py-1.5 text-center text-
|
|
119
|
+
class: "mt-4 bg-[#021c42] rounded-md px-4 py-1.5 text-center text-base text-white cursor-pointer italic hover:bg-blue-700 w-32"
|
|
120
120
|
}, " Let's begin ")
|
|
121
121
|
])) : Ce("", !0),
|
|
122
122
|
_l
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as G, N 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, N 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-97ca87f4.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-b57f93f6.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-b5ed9f06.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, N 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, N 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-97ca87f4.mjs";
|
|
2
2
|
import { _ as K } from "./loadernew-ac153a51.mjs";
|
|
3
|
-
import { p as $ } from "./api-
|
|
3
|
+
import { p as $ } from "./api-b57f93f6.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-b5ed9f06.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",
|