@genpact/genome.mfe.mgtwin-app 1.1.433-alpha → 1.1.435-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.
Files changed (26) hide show
  1. package/dist/AMABot-60401cff.mjs +525 -0
  2. package/dist/{AssessmentSimulation-b238ba3c.mjs → AssessmentSimulation-8f13ed5a.mjs} +6 -6
  3. package/dist/{EditSkillAdminData-c3d3a010.mjs → EditSkillAdminData-47fd9ace.mjs} +2 -2
  4. package/dist/{EditSkillData-3702c394.mjs → EditSkillData-ab0285da.mjs} +8 -8
  5. package/dist/{HomeView-f12bfefb.mjs → HomeView-3374faca.mjs} +4 -4
  6. package/dist/{Loading-48e7a5e2.mjs → Loading-fc0617d6.mjs} +1 -1
  7. package/dist/{PaperAirplaneIcon-80abf24a.mjs → PaperAirplaneIcon-1f1b9420.mjs} +1 -1
  8. package/dist/{PromptTesting-4ac5a4e9.mjs → PromptTesting-28188d3b.mjs} +3 -3
  9. package/dist/{SkillAutomation-4a0142cd.mjs → SkillAutomation-a15cf890.mjs} +3 -3
  10. package/dist/{SkillData-5786939a.mjs → SkillData-b7051cad.mjs} +3 -3
  11. package/dist/{Testcase-581404fc.mjs → Testcase-5ec19354.mjs} +3 -3
  12. package/dist/{UnderMaintenance-76a2be33.mjs → UnderMaintenance-1e84605a.mjs} +1 -1
  13. package/dist/{VoiceTestcase-10f97733.mjs → VoiceTestcase-cd70c11a.mjs} +3 -3
  14. package/dist/{XMarkIcon-12c0c9c6.mjs → XMarkIcon-8941ff00.mjs} +1 -1
  15. package/dist/{api-f7295800.mjs → api-bcd81c0c.mjs} +1 -1
  16. package/dist/{index.es-d105eb27.mjs → index.es-7df55209.mjs} +6 -6
  17. package/dist/{main-67de537c.mjs → main-25dbe608.mjs} +461 -461
  18. package/dist/mgtwin.es.min.js +1 -1
  19. package/dist/mgtwin.umd.min.js +68 -68
  20. package/dist/native/aiguru-native.css +1 -1
  21. package/dist/native/aiguru-native.umd.min.js +68 -68
  22. package/dist/{simulationPopup.vue_vue_type_script_setup_true_lang-e2d0424e.mjs → simulationPopup.vue_vue_type_script_setup_true_lang-1deaa932.mjs} +5 -4
  23. package/dist/style.css +1 -1
  24. package/dist/{voiceServices-b74291f2.mjs → voiceServices-8dcba4f0.mjs} +2 -2
  25. package/package.json +1 -1
  26. package/dist/AssessmentAMA-34d63026.mjs +0 -466
@@ -0,0 +1,525 @@
1
+ import { r as J, _ as X, a as Z, b as ee, d as te, c as se, L as oe } from "./simulationPopup.vue_vue_type_script_setup_true_lang-1deaa932.mjs";
2
+ import { _ as ne, Q as N } from "./constants-e0c83ac4.mjs";
3
+ import { o as p, c as h, a as t, d as w, z as C, r as v, G as ae, I as re, b as f, u as L, B as q, t as I, p as E, g as B, h as b, s as T, T as U, H as j, C as ie, F as le, e as ce, f as M, N as H, J as P, k as G, E as D, q as de, w as ue, m as pe, P as _e, n as me, R as W, x as K, U as fe, l as R, i as he } from "./main-25dbe608.mjs";
4
+ import { _ as k } from "./_plugin-vue_export-helper-dad06003.mjs";
5
+ import { u as O, i as Y } from "./api-bcd81c0c.mjs";
6
+ import "./loadernew-ac153a51.mjs";
7
+ function ge(o, e) {
8
+ return p(), h("svg", {
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ fill: "none",
11
+ viewBox: "0 0 24 24",
12
+ "stroke-width": "1.5",
13
+ stroke: "currentColor",
14
+ "aria-hidden": "true"
15
+ }, [
16
+ t("path", {
17
+ "stroke-linecap": "round",
18
+ "stroke-linejoin": "round",
19
+ d: "M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0115.75 21H5.25A2.25 2.25 0 013 18.75V8.25A2.25 2.25 0 015.25 6H10"
20
+ })
21
+ ]);
22
+ }
23
+ const xe = { class: "flex h-14 w-full flex-1 items-center justify-between bg-black md:pr-6 lg:pr-6" }, ve = ["href"], be = /* @__PURE__ */ t("img", {
24
+ class: "h-16 w-auto cursor-pointer",
25
+ src: X,
26
+ alt: "Genome Logo"
27
+ }, null, -1), ye = [
28
+ be
29
+ ], Ae = ["href"], we = /* @__PURE__ */ t("img", {
30
+ class: "h-6 w-28 cursor-pointer md:w-36",
31
+ src: ne,
32
+ alt: "Aiguru Logo"
33
+ }, null, -1), ke = [
34
+ we
35
+ ], $e = /* @__PURE__ */ w({
36
+ __name: "headerAMA",
37
+ setup(o) {
38
+ const e = C(), a = v(""), l = v(""), d = J(ae(re, void 0), window.location);
39
+ return d === "prod" ? a.value = "https://genome.genpact.com" : a.value = "https://genome-dev.genpact.com", d === "prod" ? l.value = "https://genome.genpact.com/#aiguru" : l.value = "https://genome-dev.genpact.com/#aiguru", (c, r) => (p(), h("nav", xe, [
40
+ t("a", {
41
+ class: "px-2 md:px-0 lg:px-0",
42
+ href: f(e).url(a.value),
43
+ target: "_blank"
44
+ }, ye, 8, ve),
45
+ t("a", {
46
+ class: "px-2 md:px-0 lg:px-0",
47
+ href: f(e).url(l.value),
48
+ target: "_blank"
49
+ }, ke, 8, Ae)
50
+ ]));
51
+ }
52
+ }), Fe = { class: "fontFormattingAMA py-2" }, qe = { class: "text-base font-semibold text-[#181C23] md:text-lg" }, Me = { key: 0 }, Ce = ["innerHTML"], Ie = /* @__PURE__ */ w({
53
+ __name: "greetingsAMA",
54
+ setup(o) {
55
+ const e = L(), a = C(), l = ` Hi ${e.learnerName || "Learner"}! 👋`, d = q(() => l), c = q(() => a.text(l.replace("👋", "👋")));
56
+ return q(() => `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.`), (r, s) => (p(), h("section", null, [
57
+ t("div", Fe, [
58
+ t("div", qe, [
59
+ f(a).native ? (p(), h("div", Me, I(c.value), 1)) : (p(), h("div", {
60
+ key: 1,
61
+ innerHTML: d.value
62
+ }, null, 8, Ce))
63
+ ])
64
+ ])
65
+ ]));
66
+ }
67
+ }), Se = (o) => (E("data-v-684baff4"), o = o(), B(), o), Le = { class: "fontFormattingAMA flex justify-start py-2" }, Ee = { class: "w-full max-w-[92%]" }, Be = { class: "line-break rounded-2xl rounded-bl-sm border border-gray-200 bg-gray-50 px-4 py-4 text-sm leading-6 text-[#3f4451]" }, Ne = ["innerHTML"], Qe = /* @__PURE__ */ Se(() => /* @__PURE__ */ t("div", { class: "mt-1 text-xs text-gray-400" }, "AI Guru", -1)), Re = /* @__PURE__ */ w({
68
+ __name: "responseAMA",
69
+ props: {
70
+ answer: {
71
+ type: String,
72
+ required: !0
73
+ }
74
+ },
75
+ setup(o) {
76
+ const e = o, a = C(), l = (r) => r.replace(/\*\*(.+?)\*\*/g, "<strong>$1</strong>").replace(/\*/g, ""), d = (r) => {
77
+ const s = [];
78
+ let m = [];
79
+ const n = () => {
80
+ m.length && (s.push({ html: `<ul style="list-style: disc; margin: 0 0 0 2.5rem; padding: 0;">${m.join("")}</ul>`, block: !0 }), m = []);
81
+ };
82
+ for (const i of r.split(`
83
+ `)) {
84
+ if (!i.trim()) {
85
+ n();
86
+ const u = s[s.length - 1];
87
+ u && !u.block && u.html !== "" && s.push({ html: "", block: !1 });
88
+ continue;
89
+ }
90
+ const x = i.match(/^\s*[-*•]\s+(.*)$/);
91
+ if (x) {
92
+ m.push(`<li>${l(x[1])}</li>`);
93
+ continue;
94
+ }
95
+ n();
96
+ const _ = i.match(/^\s*#{1,6}\s*(.*)$/);
97
+ _ ? s.push({ html: `<div style="font-weight: 700;">${l(_[1])}</div>`, block: !0 }) : s.push({ html: l(i), block: !1 });
98
+ }
99
+ n();
100
+ for (let i = s.length - 2; i >= 0; i--)
101
+ s[i].html === "" && !s[i].block && s[i + 1].block && s.splice(i, 1);
102
+ for (; s.length && s[s.length - 1].html === ""; )
103
+ s.pop();
104
+ return s.reduce((i, x, _) => _ === 0 ? x.html : i + (x.block || s[_ - 1].block ? "" : `
105
+ `) + x.html, "");
106
+ }, c = q(() => {
107
+ const r = d(e.answer).replace(
108
+ /Assessment Rating & Feedback/g,
109
+ '<div style="font-size: 26px; font-weight: bold; text-decoration: underline;">Rating & Feedback</div>'
110
+ ), s = /\[([^\]]+)\]\((https?:\/\/[^\s]+)\)/g, m = r.replace(s, (n, i, x) => `<a href="${a.url(x)}" target="_blank" rel="noopener noreferrer" style="color: #00AECF; text-decoration: underline;">${i}</a>`);
111
+ return a.html(m);
112
+ });
113
+ return (r, s) => (p(), h("div", Le, [
114
+ t("div", Ee, [
115
+ t("div", Be, [
116
+ t("span", {
117
+ class: "fontFormattingAMA answer-link",
118
+ innerHTML: c.value
119
+ }, null, 8, Ne)
120
+ ]),
121
+ Qe
122
+ ])
123
+ ]));
124
+ }
125
+ });
126
+ const Te = /* @__PURE__ */ k(Re, [["__scopeId", "data-v-684baff4"]]), je = { class: "fontFormattingAMA flex justify-end py-2" }, He = { class: "max-w-[80%]" }, Ge = { class: "rounded-2xl rounded-br-sm bg-[#FFAB28] px-4 py-3" }, Ve = { class: "fontFormattingAMA whitespace-pre-line break-words text-sm leading-5 text-[#181C23]" }, ze = /* @__PURE__ */ t("div", { class: "mt-1 text-right text-xs text-gray-400" }, "You", -1), Ue = /* @__PURE__ */ w({
127
+ __name: "learnerAMA",
128
+ props: {
129
+ question: {
130
+ type: String,
131
+ required: !0
132
+ }
133
+ },
134
+ setup(o) {
135
+ return (e, a) => (p(), h("div", je, [
136
+ t("div", He, [
137
+ t("div", Ge, [
138
+ t("div", Ve, I(o.question), 1)
139
+ ]),
140
+ ze
141
+ ])
142
+ ]));
143
+ }
144
+ }), V = (o) => (E("data-v-9fdc3afc"), o = o(), B(), o), Pe = { class: "fontFormattingAMA flex w-full justify-start py-2" }, De = { class: "w-full max-w-[92%]" }, We = { class: "rounded-2xl rounded-bl-sm border border-gray-200 bg-gray-50 px-4 py-4" }, Ke = {
145
+ class: "flex items-center gap-2.5",
146
+ role: "status",
147
+ "aria-live": "polite"
148
+ }, Oe = /* @__PURE__ */ V(() => /* @__PURE__ */ t("span", {
149
+ class: "dots flex shrink-0 items-center gap-1",
150
+ "aria-hidden": "true"
151
+ }, [
152
+ /* @__PURE__ */ t("span", { class: "h-1.5 w-1.5 rounded-full bg-[#FFAB28]" }),
153
+ /* @__PURE__ */ t("span", { class: "h-1.5 w-1.5 rounded-full bg-[#FFAB28]" }),
154
+ /* @__PURE__ */ t("span", { class: "h-1.5 w-1.5 rounded-full bg-[#FFAB28]" })
155
+ ], -1)), Ye = /* @__PURE__ */ V(() => /* @__PURE__ */ t("div", { class: "mt-4 space-y-2.5" }, [
156
+ /* @__PURE__ */ t("div", { class: "shimmer h-2.5 w-full rounded" }),
157
+ /* @__PURE__ */ t("div", { class: "shimmer h-2.5 w-11/12 rounded" }),
158
+ /* @__PURE__ */ t("div", { class: "shimmer h-2.5 w-4/6 rounded" })
159
+ ], -1)), Je = /* @__PURE__ */ V(() => /* @__PURE__ */ t("div", { class: "mt-1 text-xs text-gray-400" }, "AI Guru", -1)), Xe = /* @__PURE__ */ w({
160
+ __name: "LoadingResponseAMA",
161
+ setup(o) {
162
+ const e = C(), a = [
163
+ "Generating response",
164
+ "Fetching the best response for you",
165
+ "Thinking... give me a moment",
166
+ "One moment while I gather the information",
167
+ "Hang in tight, we are almost there",
168
+ "Almost there... just a bit longer",
169
+ "Compiling a response for you"
170
+ ], l = v(0), d = setInterval(() => {
171
+ var c, r;
172
+ !((r = (c = e.scope) == null ? void 0 : c.isActive) != null && r.call(c)) && e.native || (l.value = (l.value + 1) % a.length);
173
+ }, 5e3);
174
+ return e.own(() => clearInterval(d)), (c, r) => (p(), h("div", Pe, [
175
+ t("div", De, [
176
+ t("div", We, [
177
+ t("div", Ke, [
178
+ Oe,
179
+ b(U, {
180
+ name: "fade",
181
+ mode: "out-in"
182
+ }, {
183
+ default: T(() => [
184
+ (p(), h("span", {
185
+ key: l.value,
186
+ class: "text-xs italic leading-4 text-gray-500"
187
+ }, I(a[l.value]), 1))
188
+ ]),
189
+ _: 1
190
+ })
191
+ ]),
192
+ Ye
193
+ ]),
194
+ Je
195
+ ])
196
+ ]));
197
+ }
198
+ });
199
+ const Ze = /* @__PURE__ */ k(Xe, [["__scopeId", "data-v-9fdc3afc"]]), et = { key: 0 }, tt = { key: 1 }, st = {
200
+ key: 0,
201
+ class: "flex"
202
+ }, ot = /* @__PURE__ */ w({
203
+ __name: "conversationAMA",
204
+ setup(o) {
205
+ let e = v(""), a = v("");
206
+ e.value = '<a style="color:#00AECF;"', a.value = '<ul style="list-style: disc !important; margin-left: 3.5rem !important; padding: 0;"';
207
+ const l = L(), d = C(), c = v(), r = () => {
208
+ var n;
209
+ const s = d.native && d.root && typeof d.root.querySelectorAll == "function" ? d.root.querySelectorAll('[name="askQuestion"]') : document.getElementsByName("askQuestion"), m = Array.from(s);
210
+ m.length && ((n = m.pop()) == null || n.scrollIntoView({ behavior: "smooth", block: "center" }));
211
+ };
212
+ return j(r), ie(r), (s, m) => (p(), h("div", {
213
+ ref_key: "nestedElement",
214
+ ref: c,
215
+ class: "smooth-scroll overflow-auto md:px-6 px-2"
216
+ }, [
217
+ b(Ie),
218
+ (p(!0), h(le, null, ce(f(l).conversations, (n, i) => (p(), h("div", { key: i }, [
219
+ n.question ? (p(), h("div", et, [
220
+ b(Ue, {
221
+ question: n.question,
222
+ c2question: n.c2question,
223
+ "show-feedback": n.showFeedback,
224
+ id: `qId${i}`,
225
+ name: "askQuestion",
226
+ "que-id": i
227
+ }, null, 8, ["question", "c2question", "show-feedback", "id", "que-id"])
228
+ ])) : M("", !0),
229
+ n.answer ? (p(), h("div", tt, [
230
+ b(Te, {
231
+ question: n == null ? void 0 : n.question,
232
+ c2question: n == null ? void 0 : n.c2question,
233
+ "show-sources": n == null ? void 0 : n.showSources,
234
+ questionId: n.id,
235
+ answer: n.answer.replaceAll("<a", f(e)).replaceAll("<ul", f(a)),
236
+ "show-feedback": n.showFeedback,
237
+ "related-ques": n.relatedQues,
238
+ "options-array": n.optionsArray,
239
+ "ans-id": i
240
+ }, null, 8, ["question", "c2question", "show-sources", "questionId", "answer", "show-feedback", "related-ques", "options-array", "ans-id"])
241
+ ])) : M("", !0)
242
+ ]))), 128)),
243
+ f(l).dotLoader ? (p(), h("div", st, [
244
+ b(Ze)
245
+ ])) : M("", !0)
246
+ ], 512));
247
+ }
248
+ });
249
+ const nt = /* @__PURE__ */ k(ot, [["__scopeId", "data-v-ee7bc477"]]), Q = (o) => String(o.query.amaId ?? "");
250
+ function at(o, e, a, l, d, c = (r) => !1) {
251
+ const r = v(!1);
252
+ let s = 0, m = !0;
253
+ const n = () => {
254
+ s += 1, r.value = !1, e.dotLoader = !1;
255
+ };
256
+ H(() => Q(o), n), P(() => {
257
+ m = !1, n();
258
+ });
259
+ const i = (_, u) => m && _ === s && u === Q(o);
260
+ return { isWaitingResponse: r, sendQuestion: async () => {
261
+ var $, F, g;
262
+ if (e.question.trim().length < 1) {
263
+ a.setError("Please enter question!");
264
+ return;
265
+ }
266
+ if (e.amaQuestionsLeft <= 0) {
267
+ a.setError("You have exhausted your question limit!");
268
+ return;
269
+ }
270
+ const _ = ++s, u = Q(o);
271
+ r.value = !0, e.dotLoader = !0;
272
+ const y = e.question;
273
+ e.conversations.push({ question: y }), e.question = "";
274
+ const S = {
275
+ skillId: u,
276
+ question: y,
277
+ past_messages: e.past_messages
278
+ };
279
+ try {
280
+ const A = await l(S);
281
+ if (!i(_, u))
282
+ return;
283
+ e.addConversation(($ = A.data) == null ? void 0 : $.body, "new"), r.value = !1, e.dotLoader = !1;
284
+ } catch (A) {
285
+ if (c(A) || !i(_, u))
286
+ return;
287
+ r.value = !1, e.dotLoader = !1, d(A) ? a.setError((g = (F = A.response) == null ? void 0 : F.data) == null ? void 0 : g.message) : a.setError("There was an issue, please contact helpmate");
288
+ }
289
+ } };
290
+ }
291
+ const z = (o) => (E("data-v-67ac6151"), o = o(), B(), o), rt = { class: "w-full px-2 pb-3 pt-3 md:px-6" }, it = { class: "relative" }, lt = { class: "pointer-events-none absolute inset-y-0 left-3 flex items-center md:left-4" }, ct = {
292
+ class: "flex h-8 w-8 items-center justify-center rounded-full bg-[#FFF4E0] text-[#E08A00] md:h-9 md:w-9",
293
+ "aria-hidden": "true"
294
+ }, dt = ["placeholder"], ut = { class: "absolute inset-y-0 right-2 flex items-center md:right-3" }, pt = {
295
+ key: 1,
296
+ class: "flex h-10 w-10 items-center justify-center rounded-full bg-[#FFF4E0]",
297
+ role: "status",
298
+ "aria-label": "Waiting for response",
299
+ title: "Waiting for response"
300
+ }, _t = /* @__PURE__ */ z(() => /* @__PURE__ */ t("span", { class: "h-5 w-5 animate-spin rounded-full border-[2.5px] border-[#FFAB28] border-t-transparent" }, null, -1)), mt = [
301
+ _t
302
+ ], ft = { class: "fontFormattingAMA flex flex-wrap items-center justify-center gap-x-1.5 gap-y-0.5 pt-2 text-center text-xs text-gray-500 md:text-sm" }, ht = /* @__PURE__ */ z(() => /* @__PURE__ */ t("span", null, "Note: AI-generated response may not be fully accurate; check with experts for critical information.", -1)), gt = /* @__PURE__ */ z(() => /* @__PURE__ */ t("span", {
303
+ class: "hidden sm:inline",
304
+ "aria-hidden": "true"
305
+ }, "·", -1)), xt = { class: "font-semibold text-[#181C23]" }, vt = /* @__PURE__ */ w({
306
+ __name: "NewQuestionAMA",
307
+ setup(o) {
308
+ const e = L(), a = G();
309
+ e.question = "";
310
+ const l = v(null), d = v(!1), c = v(N), r = D(), s = O(), { isWaitingResponse: m, sendQuestion: n } = at(
311
+ r,
312
+ e,
313
+ a,
314
+ (_) => s.postApi("/amaBotResponse", _),
315
+ de.isAxiosError,
316
+ Y
317
+ );
318
+ j(() => {
319
+ l.value.focus();
320
+ });
321
+ const i = q(() => e.question.trim().length > 0);
322
+ H(
323
+ () => e.question,
324
+ async () => {
325
+ await W();
326
+ const _ = l.value;
327
+ _ && (_.style.height = "auto", _.style.height = `${_.scrollHeight}px`);
328
+ }
329
+ );
330
+ const x = (_) => {
331
+ const u = _.length;
332
+ c.value = N - u, d.value = u >= N;
333
+ };
334
+ return (_, u) => (p(), h("div", rt, [
335
+ t("div", it, [
336
+ t("div", lt, [
337
+ t("span", ct, [
338
+ b(f(ge), { class: "h-4 w-4 md:h-5 md:w-5" })
339
+ ])
340
+ ]),
341
+ ue(t("textarea", {
342
+ ref_key: "AiSearch",
343
+ ref: l,
344
+ "onUpdate:modelValue": u[0] || (u[0] = (y) => f(e).question = y),
345
+ rows: "1",
346
+ class: "fontFormattingAMA block max-h-40 w-full !cursor-text resize-none overflow-y-auto rounded-2xl border border-[#FFAB28]/40 bg-white py-3 pl-14 pr-16 text-sm leading-6 text-[#181C23] shadow-[0_4px_16px_rgba(7,50,98,0.08)] transition placeholder:text-gray-400 hover:border-[#FFAB28]/70 focus:border-[#FFAB28] focus:outline-none focus:ring-4 focus:ring-[#FFAB28]/20 md:py-4 md:pl-16 md:pr-20 md:text-base",
347
+ placeholder: `Ask me about ${f(e).amaSkillName || "Skill Name"}`,
348
+ onKeydown: u[1] || (u[1] = _e(K((y) => f(m) ? "" : f(n)(), ["exact", "prevent"]), ["enter"])),
349
+ onInput: u[2] || (u[2] = (y) => x(f(e).question))
350
+ }, null, 40, dt), [
351
+ [pe, f(e).question]
352
+ ]),
353
+ t("div", ut, [
354
+ f(m) ? (p(), h("span", pt, mt)) : (p(), h("button", {
355
+ key: 0,
356
+ type: "button",
357
+ title: "Send",
358
+ "aria-label": "Send question",
359
+ class: me([i.value ? "bg-[#FFAB28] text-[#181C23] shadow-md hover:-translate-y-0.5 hover:shadow-lg" : "bg-[#FFAB28]/40 text-[#181C23]/60", "flex h-10 w-10 items-center justify-center rounded-full transition"]),
360
+ onClick: u[3] || (u[3] = (y) => f(n)())
361
+ }, [
362
+ b(f(Z), {
363
+ class: "h-5 w-5",
364
+ "aria-hidden": "true"
365
+ })
366
+ ], 2))
367
+ ])
368
+ ]),
369
+ t("div", ft, [
370
+ b(f(ee), {
371
+ class: "h-4 w-4 shrink-0 text-[#E08A00]",
372
+ "aria-hidden": "true"
373
+ }),
374
+ ht,
375
+ gt,
376
+ t("span", xt, I(f(e).amaQuestionsLeft) + " questions remaining for the day", 1)
377
+ ])
378
+ ]));
379
+ }
380
+ });
381
+ const bt = /* @__PURE__ */ k(vt, [["__scopeId", "data-v-67ac6151"]]), yt = (o) => (E("data-v-fb943644"), o = o(), B(), o), At = {
382
+ class: "inline-flex h-10 w-10 items-center justify-center rounded-full bg-[#FDF3E1] text-[#C68A16]",
383
+ "aria-hidden": "true"
384
+ }, wt = /* @__PURE__ */ yt(() => /* @__PURE__ */ t("div", { class: "mt-3 text-xs font-bold uppercase tracking-[0.12em] text-[#C68A16]" }, "Heads up", -1)), kt = {
385
+ id: "ama-error-text",
386
+ class: "mt-1.5 text-base font-semibold leading-snug text-[#181C23]"
387
+ }, $t = /* @__PURE__ */ w({
388
+ __name: "errorPopupAMA",
389
+ setup(o) {
390
+ const e = G(), a = v(""), l = v(null), d = () => {
391
+ a.value = "";
392
+ };
393
+ e.$subscribe(
394
+ (r, s) => {
395
+ s.error && (a.value = s.error, W(() => {
396
+ var m;
397
+ return (m = l.value) == null ? void 0 : m.focus();
398
+ }));
399
+ },
400
+ { flush: "sync" }
401
+ );
402
+ const c = (r) => {
403
+ a.value && r.key === "Escape" && d();
404
+ };
405
+ return j(() => window.addEventListener("keydown", c)), fe(() => window.removeEventListener("keydown", c)), (r, s) => (p(), R(U, { name: "ama-popup" }, {
406
+ default: T(() => [
407
+ a.value ? (p(), h("div", {
408
+ key: 0,
409
+ class: "fixed inset-0 z-[99999] flex items-center justify-center bg-[#181C23]/35 p-4 backdrop-blur-[2px]",
410
+ onClick: d
411
+ }, [
412
+ t("div", {
413
+ role: "alertdialog",
414
+ "aria-modal": "true",
415
+ "aria-labelledby": "ama-error-text",
416
+ class: "ama-popup-card fontFormattingAMA w-full max-w-[360px] rounded-[14px] border border-[#F3E6CF] bg-[#FFFCF7] px-[22px] pb-5 pt-6 text-center shadow-[0_18px_40px_rgba(24,28,35,0.18)]",
417
+ onClick: s[0] || (s[0] = K(() => {
418
+ }, ["stop"]))
419
+ }, [
420
+ t("span", At, [
421
+ b(f(te), { class: "h-5 w-5" })
422
+ ]),
423
+ wt,
424
+ t("div", kt, I(a.value), 1),
425
+ t("button", {
426
+ ref_key: "okButton",
427
+ ref: l,
428
+ type: "button",
429
+ class: "mt-5 w-full rounded-lg bg-[#181C23] px-4 py-2.5 text-sm font-semibold text-white transition hover:bg-[#2B313C] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#FFAB28]",
430
+ onClick: d
431
+ }, " Got it ", 512)
432
+ ])
433
+ ])) : M("", !0)
434
+ ]),
435
+ _: 1
436
+ }));
437
+ }
438
+ });
439
+ const Ft = /* @__PURE__ */ k($t, [["__scopeId", "data-v-fb943644"]]), qt = (o) => String(o.query.amaId ?? "");
440
+ function Mt(o, e, a, l, d = (c) => !1) {
441
+ const c = v(!0), r = v(!1);
442
+ let s = 0;
443
+ const m = (i) => {
444
+ e.amaSkillId = i, e.amaSkillName = "", e.amaQuestionsLeft = 0, e.question = "", e.conversations = [], e.past_messages = [];
445
+ }, n = async (i) => {
446
+ var u, y, S, $, F;
447
+ const x = ++s;
448
+ c.value = !0, r.value = !1, m(i);
449
+ let _ = !1;
450
+ try {
451
+ const g = await l(i);
452
+ if (x !== s)
453
+ return;
454
+ e.initialize(g.data), e.amaQuestionsLeft = (u = g == null ? void 0 : g.data) == null ? void 0 : u.questionsLeftAIGC, e.amaSkillName = (y = g == null ? void 0 : g.data) == null ? void 0 : y.skillName;
455
+ } catch (g) {
456
+ if (d(g)) {
457
+ _ = !0;
458
+ return;
459
+ }
460
+ if (x !== s)
461
+ return;
462
+ const A = g && typeof g == "object" && ((S = g.response) == null ? void 0 : S.status);
463
+ A === 424 || A === 425 ? r.value = !0 : A ? a.setError((F = ($ = g.response) == null ? void 0 : $.data) == null ? void 0 : F.message) : a.setError("There was an issue, please contact helpmate");
464
+ } finally {
465
+ !_ && x === s && (c.value = !1);
466
+ }
467
+ };
468
+ return H(() => qt(o), (i) => {
469
+ n(i);
470
+ }, { immediate: !0 }), P(() => {
471
+ s += 1;
472
+ }), { loaderValue: c, notAllowedModalVisible: r };
473
+ }
474
+ const Ct = {
475
+ key: 1,
476
+ class: "flex h-screen flex-col overflow-hidden"
477
+ }, It = { class: "z-20 shrink-0" }, St = { class: "min-h-0 flex-1 overflow-hidden pb-1" }, Lt = { class: "flex h-full flex-col bg-gray-100 px-2 sm:px-6 md:px-10 lg:px-20" }, Et = { class: "fontFormattingAMA flex min-h-0 flex-1 flex-col border-x border-b border-black bg-white pt-3 md:pt-4" }, Bt = { class: "shrink-0" }, Nt = /* @__PURE__ */ w({
478
+ __name: "AMABot",
479
+ setup(o) {
480
+ const e = L(), a = G(), l = D(), d = O(), { loaderValue: c, notAllowedModalVisible: r } = Mt(
481
+ l,
482
+ e,
483
+ a,
484
+ (s) => d.getApi(`/getLearnerData?amaSkillId=${s}`),
485
+ Y
486
+ );
487
+ return (s, m) => (p(), h("section", null, [
488
+ f(r) ? (p(), R(se, {
489
+ key: 0,
490
+ tone: "error",
491
+ title: "Assessment Access Required"
492
+ }, {
493
+ default: T(() => [
494
+ he(" You don't have access to this assessment. Please contact to administrator ")
495
+ ]),
496
+ _: 1
497
+ })) : M("", !0),
498
+ b(Ft),
499
+ t("div", null, [
500
+ f(c) ? (p(), R(oe, {
501
+ key: 0,
502
+ message: "Loading AI Guru"
503
+ })) : (p(), h("main", Ct, [
504
+ t("div", It, [
505
+ b($e)
506
+ ]),
507
+ t("section", St, [
508
+ t("div", Lt, [
509
+ t("div", Et, [
510
+ b(nt, { class: "min-h-0 flex-1" }),
511
+ t("div", Bt, [
512
+ b(bt)
513
+ ])
514
+ ])
515
+ ])
516
+ ])
517
+ ]))
518
+ ])
519
+ ]));
520
+ }
521
+ });
522
+ const Vt = /* @__PURE__ */ k(Nt, [["__scopeId", "data-v-47c695ba"]]);
523
+ export {
524
+ Vt as default
525
+ };
@@ -1,13 +1,13 @@
1
1
  var Xh = Object.defineProperty;
2
2
  var Mh = (e, n, t) => n in e ? Xh(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
3
  var Ct = (e, n, t) => (Mh(e, typeof n != "symbol" ? n + "" : n, t), t);
4
- import { o as ke, c as Se, a as L, d as Fn, z as ro, r as _e, G as xa, I as Ka, b as Oe, p as Qi, g as Wi, h as bt, s as Tr, T as Fh, f as Xt, n as zn, x as Gs, y as Sd, u as Kr, B as tn, t as Yt, i as Be, F as jr, e as wa, M as Qn, J as _a, N as vi, l as pa, w as Us, O as Bd, P as il, H as Kc, C as Eh, k as ml, L as _c, q as Hd, E as $c, m as Td, Q as Zh, R as $f, S as Ih, v as Gh } from "./main-67de537c.mjs";
5
- import { r as jd, _ as Rh, a as Cd, b as Xd, c as Md, L as Jh } from "./simulationPopup.vue_vue_type_script_setup_true_lang-e2d0424e.mjs";
4
+ import { o as ke, c as Se, a as L, d as Fn, z as ro, r as _e, G as xa, I as Ka, b as Oe, p as Qi, g as Wi, h as bt, s as Tr, T as Fh, f as Xt, n as zn, x as Gs, y as Sd, u as Kr, B as tn, t as Yt, i as Be, F as jr, e as wa, M as Qn, J as _a, N as vi, l as pa, w as Us, O as Bd, P as il, H as Kc, C as Eh, k as ml, L as _c, q as Hd, E as $c, m as Td, Q as Zh, R as $f, S as Ih, v as Gh } from "./main-25dbe608.mjs";
5
+ import { r as jd, _ as Rh, a as Cd, b as Xd, c as Md, L as Jh } from "./simulationPopup.vue_vue_type_script_setup_true_lang-1deaa932.mjs";
6
6
  import { _ as Qh, Q as ic, M as eu } from "./constants-e0c83ac4.mjs";
7
7
  import { _ as gi } from "./_plugin-vue_export-helper-dad06003.mjs";
8
- import { u as za, i as Mi, c as Es } from "./api-f7295800.mjs";
9
- import { u as Wh, a as Uh } from "./voiceServices-b74291f2.mjs";
10
- import { r as qh } from "./XMarkIcon-12c0c9c6.mjs";
8
+ import { u as za, i as Mi, c as Es } from "./api-bcd81c0c.mjs";
9
+ import { u as Wh, a as Uh } from "./voiceServices-8dcba4f0.mjs";
10
+ import { r as qh } from "./XMarkIcon-8941ff00.mjs";
11
11
  function Yh(e, n) {
12
12
  return ke(), Se("svg", {
13
13
  xmlns: "http://www.w3.org/2000/svg",
@@ -12469,7 +12469,7 @@ function(e) {
12469
12469
  var d = u.getContext("2d");
12470
12470
  d.fillStyle = "#fff", d.fillRect(0, 0, u.width, u.height);
12471
12471
  var v = { ignoreMouse: !0, ignoreAnimation: !0, ignoreDimensions: !0 }, w = this;
12472
- return (at.canvg ? Promise.resolve(at.canvg) : import("./index.es-d105eb27.mjs")).catch(function(A) {
12472
+ return (at.canvg ? Promise.resolve(at.canvg) : import("./index.es-7df55209.mjs")).catch(function(A) {
12473
12473
  return Promise.reject(new Error("Could not load canvg: " + A));
12474
12474
  }).then(function(A) {
12475
12475
  return A.default ? A.default : A;
@@ -1,6 +1,6 @@
1
- import { d as O, D as P, u as $, k as H, r as c, o as i, c as d, a as e, w as b, m as T, b as n, n as F, v as B, F as G, e as Y, t as f, q as j, p as J, g as Q, i as E } from "./main-67de537c.mjs";
1
+ import { d as O, D as P, u as $, k as H, r as c, o as i, c as d, a as e, w as b, m as T, b as n, n as F, v as B, F as G, e as Y, t as f, q as j, p as J, g as Q, i as E } from "./main-25dbe608.mjs";
2
2
  import { _ as C } from "./loadernew-ac153a51.mjs";
3
- import { u as X, a as Z, i as A } from "./api-f7295800.mjs";
3
+ import { u as X, a as Z, i as A } from "./api-bcd81c0c.mjs";
4
4
  import { _ as ee } from "./_plugin-vue_export-helper-dad06003.mjs";
5
5
  const a = (_) => (J("data-v-53586205"), _ = _(), Q(), _), te = /* @__PURE__ */ a(() => /* @__PURE__ */ e("nav", { class: "bg-genpact-blue-box w-full px-5 mb-6" }, null, -1)), se = { class: "grid grid-cols-5 gap-8 p-10 items-stretch" }, oe = /* @__PURE__ */ a(() => /* @__PURE__ */ e("div", { class: "col-span-1 text-right" }, [
6
6
  /* @__PURE__ */ e("label", {
@@ -1,6 +1,6 @@
1
- import { o as r, c, a as e, d as z, D as G, h as L, b as a, V as H, u as Y, k as J, r as i, w, m as T, n as F, f as b, F as j, e as Q, v as X, t as m, q, p as Z, g as ee, i as I } from "./main-67de537c.mjs";
1
+ import { o as r, c, a as e, d as z, D as G, h as L, b as a, U as H, u as Y, k as J, r as i, w, m as T, n as F, f as b, F as j, e as Q, v as X, t as m, q, p as Z, g as ee, i as I } from "./main-25dbe608.mjs";
2
2
  import { _ as R } from "./loadernew-ac153a51.mjs";
3
- import { a as K, u as te, i as M } from "./api-f7295800.mjs";
3
+ import { a as U, u as te, i as M } from "./api-bcd81c0c.mjs";
4
4
  import { _ as se } from "./genome-Logo-white-ffcf2413.mjs";
5
5
  import { _ as oe } from "./_plugin-vue_export-helper-dad06003.mjs";
6
6
  function ae(u, h) {
@@ -23,7 +23,7 @@ const le = { className: "flex justify-between items-center gap-4 h-14" }, re = /
23
23
  }, null, -1), ne = /* @__PURE__ */ z({
24
24
  __name: "HeaderForEditSkillData",
25
25
  setup(u) {
26
- const h = G(), t = K(), p = () => {
26
+ const h = G(), t = U(), p = () => {
27
27
  H(() => {
28
28
  t.removeItem("dataViewAccess");
29
29
  }), h.push({ name: "SkillData" }), t.removeItem("dataViewAccess"), t.removeItem("role");
@@ -121,16 +121,16 @@ const le = { className: "flex justify-between items-center gap-4 h-14" }, re = /
121
121
  }, Le = {
122
122
  key: 3,
123
123
  class: "px-3 py-4 text-center"
124
- }, Re = { class: "absolute top-0 md:left-20 md:right-20 left-12 right-12 flex justify-center items-center mx-auto z-[100]" }, Ke = { class: "w-full rounded-md px-3 text-center mt-4 bg-green-500 py-2 text-white" }, Ue = /* @__PURE__ */ z({
124
+ }, Re = { class: "absolute top-0 md:left-20 md:right-20 left-12 right-12 flex justify-center items-center mx-auto z-[100]" }, Ue = { class: "w-full rounded-md px-3 text-center mt-4 bg-green-500 py-2 text-white" }, Ke = /* @__PURE__ */ z({
125
125
  __name: "EditSkillData",
126
126
  setup(u) {
127
- const h = G(), t = Y(), p = J(), x = te(), k = K(), f = i(!0), y = i(!0), S = i(!1), E = i(""), U = i(""), C = i(!1), g = i(!1), N = i(), D = i(), A = i([]), W = async () => {
127
+ const h = G(), t = Y(), p = J(), x = te(), k = U(), f = i(!0), y = i(!0), S = i(!1), E = i(""), K = i(""), C = i(!1), g = i(!1), N = i(), D = i(), A = i([]), W = async () => {
128
128
  var d, o, s, v, V, B, $;
129
129
  try {
130
130
  const _ = {
131
131
  question: t.descriptionForSkillData
132
132
  };
133
- console.log("question", U.value), f.value = !1;
133
+ console.log("question", K.value), f.value = !1;
134
134
  const l = await x.postApi("/SearchSkillTags", _);
135
135
  console.log("abc", (d = l == null ? void 0 : l.data) == null ? void 0 : d.body), D.value = (s = (o = l == null ? void 0 : l.data) == null ? void 0 : o.body) == null ? void 0 : s.length, console.log("ARRAY LENGTH", D.value), N.value = ((v = l == null ? void 0 : l.data) == null ? void 0 : v.body) || [], A.value = N.value, console.log("length", (B = (V = l == null ? void 0 : l.data) == null ? void 0 : V.body) == null ? void 0 : B.length), console.log("data", l), f.value = !0, C.value = !0, g.value = !0, console.log("showSubmitButton", g.value);
136
136
  } catch (_) {
@@ -264,14 +264,14 @@ const le = { className: "flex justify-between items-center gap-4 h-14" }, re = /
264
264
  ])
265
265
  ])) : b("", !0),
266
266
  w(e("div", Re, [
267
- e("div", Ke, m(E.value), 1)
267
+ e("div", Ue, m(E.value), 1)
268
268
  ], 512), [
269
269
  [X, S.value]
270
270
  ])
271
271
  ], 64));
272
272
  }
273
273
  });
274
- const Je = /* @__PURE__ */ oe(Ue, [["__scopeId", "data-v-90a1cbc9"]]);
274
+ const Je = /* @__PURE__ */ oe(Ke, [["__scopeId", "data-v-90a1cbc9"]]);
275
275
  export {
276
276
  Je as default
277
277
  };