@genpact/genome.mfe.mgtwin-app 1.1.429-alpha → 1.1.430-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 (25) hide show
  1. package/dist/{AssessmentAMA-1a73c00b.mjs → AssessmentAMA-42b31cb4.mjs} +93 -88
  2. package/dist/{AssessmentSimulation-a9dffb94.mjs → AssessmentSimulation-495e95b1.mjs} +6 -6
  3. package/dist/{EditSkillAdminData-077c630a.mjs → EditSkillAdminData-47039d34.mjs} +2 -2
  4. package/dist/{EditSkillData-a2ace12e.mjs → EditSkillData-96b20a78.mjs} +2 -2
  5. package/dist/{HomeView-450d5d0e.mjs → HomeView-fe05eb0f.mjs} +4 -4
  6. package/dist/{Loading-0191500f.mjs → Loading-e99281b2.mjs} +1 -1
  7. package/dist/{PaperAirplaneIcon-b08330f5.mjs → PaperAirplaneIcon-28b9a844.mjs} +1 -1
  8. package/dist/{PromptTesting-27a854c0.mjs → PromptTesting-638d7be3.mjs} +3 -3
  9. package/dist/{SkillAutomation-a7df1515.mjs → SkillAutomation-7ac3071a.mjs} +3 -3
  10. package/dist/{SkillData-189c5a3f.mjs → SkillData-603b10cc.mjs} +3 -3
  11. package/dist/{Testcase-0ef86f18.mjs → Testcase-304d8a95.mjs} +3 -3
  12. package/dist/{UnderMaintenance-3f1319a1.mjs → UnderMaintenance-32c4f20b.mjs} +1 -1
  13. package/dist/{VoiceTestcase-b4a537d4.mjs → VoiceTestcase-f8024200.mjs} +3 -3
  14. package/dist/{XMarkIcon-00c9268e.mjs → XMarkIcon-7f24a592.mjs} +1 -1
  15. package/dist/{api-cd0c35e1.mjs → api-6dc8b5ac.mjs} +1 -1
  16. package/dist/{index.es-ac666b05.mjs → index.es-cb06cdf3.mjs} +6 -6
  17. package/dist/{main-ece9019a.mjs → main-9832da77.mjs} +897 -897
  18. package/dist/mgtwin.es.min.js +1 -1
  19. package/dist/mgtwin.umd.min.js +33 -33
  20. package/dist/native/aiguru-native.css +1 -1
  21. package/dist/native/aiguru-native.umd.min.js +30 -30
  22. package/dist/{simulationPopup.vue_vue_type_script_setup_true_lang-b2dc2d77.mjs → simulationPopup.vue_vue_type_script_setup_true_lang-bf56f03d.mjs} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/{voiceServices-f741b361.mjs → voiceServices-04e9727e.mjs} +2 -2
  25. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
- import { r as K, _ as Y, a as T, b as J, c as X, d as Z, L as ee } from "./simulationPopup.vue_vue_type_script_setup_true_lang-b2dc2d77.mjs";
1
+ import { r as K, _ as Y, a as N, b as J, c as X, d as Z, L as ee } from "./simulationPopup.vue_vue_type_script_setup_true_lang-bf56f03d.mjs";
2
2
  import { _ as te, Q as B } from "./constants-e0c83ac4.mjs";
3
- import { o as p, c as h, a as t, d as b, z as q, r as v, G as se, I as ne, b as m, u as L, B as F, t as C, h as w, s as j, T as oe, p as H, g as V, H as z, C as ae, F as re, e as ie, f as I, N, J as G, k as U, E as W, q as le, w as ce, m as de, P as ue, n as me, R as pe, x as _e, l as R, i as he } from "./main-ece9019a.mjs";
3
+ import { o as p, c as h, a as t, d as b, z as q, r as v, G as se, I as ne, b as d, u as L, B as F, h as w, t as C, s as T, T as oe, p as H, g as V, H as G, C as ae, F as re, e as ie, f as S, N as Q, J as z, k as U, E as W, q as le, w as ce, m as de, P as ue, n as me, R as pe, x as _e, l as j, i as he } from "./main-9832da77.mjs";
4
4
  import { _ as M } from "./_plugin-vue_export-helper-dad06003.mjs";
5
- import { u as D, i as O } from "./api-cd0c35e1.mjs";
5
+ import { u as D, i as O } from "./api-6dc8b5ac.mjs";
6
6
  import "./loadernew-ac153a51.mjs";
7
7
  function fe(r, e) {
8
8
  return p(), h("svg", {
@@ -36,34 +36,36 @@ const ge = { class: "flex h-14 w-full flex-1 items-center justify-between bg-bla
36
36
  __name: "headerAMA",
37
37
  setup(r) {
38
38
  const e = q(), i = v(""), l = v(""), _ = K(se(ne, void 0), window.location);
39
- return _ === "prod" ? i.value = "https://genome.genpact.com" : i.value = "https://genome-dev.genpact.com", _ === "prod" ? l.value = "https://genome.genpact.com/#aiguru" : l.value = "https://genome-dev.genpact.com/#aiguru", (d, a) => (p(), h("nav", ge, [
39
+ return _ === "prod" ? i.value = "https://genome.genpact.com" : i.value = "https://genome-dev.genpact.com", _ === "prod" ? l.value = "https://genome.genpact.com/#aiguru" : l.value = "https://genome-dev.genpact.com/#aiguru", (u, a) => (p(), h("nav", ge, [
40
40
  t("a", {
41
41
  class: "px-2 md:px-0 lg:px-0",
42
- href: m(e).url(i.value),
42
+ href: d(e).url(i.value),
43
43
  target: "_blank"
44
44
  }, ve, 8, xe),
45
45
  t("a", {
46
46
  class: "px-2 md:px-0 lg:px-0",
47
- href: m(e).url(l.value),
47
+ href: d(e).url(l.value),
48
48
  target: "_blank"
49
49
  }, be, 8, Ae)
50
50
  ]));
51
51
  }
52
- }), $e = { class: "fontFormattingAMA flex items-center gap-3 pb-4 pt-2 md:pb-6" }, Fe = /* @__PURE__ */ t("span", {
53
- class: "h-3 w-10 shrink-0 rounded-r-full bg-[#FFAB28]",
52
+ }), $e = { class: "fontFormattingAMA flex items-center gap-3 py-2" }, Fe = {
53
+ class: "flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-genpact-darkest-blue text-[#FFAB28]",
54
54
  "aria-hidden": "true"
55
- }, null, -1), qe = { class: "text-xl font-bold text-genpact-darkest-blue md:text-2xl" }, Me = { key: 0 }, Se = ["innerHTML"], Ie = /* @__PURE__ */ b({
55
+ }, qe = { class: "text-base font-semibold text-[#181C23] md:text-lg" }, Me = { key: 0 }, Ie = ["innerHTML"], Se = /* @__PURE__ */ b({
56
56
  __name: "greetingsAMA",
57
57
  setup(r) {
58
- const e = L(), i = q(), l = ` Hi ${e.learnerName || "Learner"}! 👋`, _ = F(() => l), d = F(() => i.text(l.replace("👋", "👋")));
58
+ const e = L(), i = q(), l = ` Hi ${e.learnerName || "Learner"}! 👋`, _ = F(() => l), u = F(() => i.text(l.replace("👋", "👋")));
59
59
  return F(() => `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.`), (a, s) => (p(), h("section", null, [
60
60
  t("div", $e, [
61
- Fe,
61
+ t("div", Fe, [
62
+ w(d(N), { class: "h-[18px] w-[18px]" })
63
+ ]),
62
64
  t("div", qe, [
63
- m(i).native ? (p(), h("div", Me, C(d.value), 1)) : (p(), h("div", {
65
+ d(i).native ? (p(), h("div", Me, C(u.value), 1)) : (p(), h("div", {
64
66
  key: 1,
65
67
  innerHTML: _.value
66
- }, null, 8, Se))
68
+ }, null, 8, Ie))
67
69
  ])
68
70
  ])
69
71
  ]));
@@ -100,17 +102,17 @@ const ge = { class: "flex h-14 w-full flex-1 items-center justify-between bg-bla
100
102
  continue;
101
103
  }
102
104
  n();
103
- const u = o.match(/^\s*#{1,6}\s*(.*)$/);
104
- u ? s.push({ html: `<div style="margin: 10px 0 2px; font-weight: 700; color: #021C42;">${l(u[1])}</div>`, block: !0 }) : s.push({ html: l(o), block: !1 });
105
+ const m = o.match(/^\s*#{1,6}\s*(.*)$/);
106
+ m ? s.push({ html: `<div style="margin: 10px 0 2px; font-weight: 700; color: #021C42;">${l(m[1])}</div>`, block: !0 }) : s.push({ html: l(o), block: !1 });
105
107
  }
106
108
  n();
107
109
  for (let o = s.length - 2; o >= 0; o--)
108
110
  s[o].html === "" && !s[o].block && s[o + 1].block && s.splice(o, 1);
109
111
  for (; s.length && s[s.length - 1].html === ""; )
110
112
  s.pop();
111
- return s.reduce((o, x, u) => u === 0 ? x.html : o + (x.block || s[u - 1].block ? "" : `
113
+ return s.reduce((o, x, m) => m === 0 ? x.html : o + (x.block || s[m - 1].block ? "" : `
112
114
  `) + x.html, "");
113
- }, d = F(() => {
115
+ }, u = F(() => {
114
116
  const a = _(e.answer).replace(
115
117
  /Assessment Rating & Feedback/g,
116
118
  '<div style="font-size: 26px; font-weight: bold; text-decoration: underline;">Rating & Feedback</div>'
@@ -119,20 +121,20 @@ const ge = { class: "flex h-14 w-full flex-1 items-center justify-between bg-bla
119
121
  });
120
122
  return (a, s) => (p(), h("div", Le, [
121
123
  t("div", Ce, [
122
- w(m(T), { class: "h-[18px] w-[18px]" })
124
+ w(d(N), { class: "h-[18px] w-[18px]" })
123
125
  ]),
124
126
  t("div", Be, [
125
127
  t("div", Ee, [
126
128
  t("span", {
127
129
  class: "fontFormattingAMA answer-link",
128
- innerHTML: d.value
130
+ innerHTML: u.value
129
131
  }, null, 8, Ne)
130
132
  ])
131
133
  ])
132
134
  ]));
133
135
  }
134
136
  });
135
- const Re = /* @__PURE__ */ M(Qe, [["__scopeId", "data-v-9824fd60"]]), Te = { class: "fontFormattingAMA flex justify-end py-2" }, je = { class: "max-w-[80%]" }, He = { class: "rounded-2xl rounded-br-sm bg-[#FFAB28] px-4 py-3" }, Ve = { class: "fontFormattingAMA whitespace-pre-line break-words text-sm leading-6 text-[#181C23] md:text-base" }, ze = /* @__PURE__ */ t("div", { class: "mt-1 text-right text-xs text-gray-400" }, "You", -1), Ge = /* @__PURE__ */ b({
137
+ const Re = /* @__PURE__ */ M(Qe, [["__scopeId", "data-v-9824fd60"]]), je = { class: "fontFormattingAMA flex justify-end py-2" }, Te = { class: "max-w-[80%]" }, He = { class: "rounded-2xl rounded-br-sm bg-[#FFAB28] px-4 py-3" }, Ve = { class: "fontFormattingAMA whitespace-pre-line break-words text-sm leading-6 text-[#181C23] md:text-base" }, Ge = /* @__PURE__ */ t("div", { class: "mt-1 text-right text-xs text-gray-400" }, "You", -1), ze = /* @__PURE__ */ b({
136
138
  __name: "learnerAMA",
137
139
  props: {
138
140
  question: {
@@ -141,12 +143,12 @@ const Re = /* @__PURE__ */ M(Qe, [["__scopeId", "data-v-9824fd60"]]), Te = { cla
141
143
  }
142
144
  },
143
145
  setup(r) {
144
- return (e, i) => (p(), h("div", Te, [
145
- t("div", je, [
146
+ return (e, i) => (p(), h("div", je, [
147
+ t("div", Te, [
146
148
  t("div", He, [
147
149
  t("div", Ve, C(r.question), 1)
148
150
  ]),
149
- ze
151
+ Ge
150
152
  ])
151
153
  ]));
152
154
  }
@@ -180,12 +182,12 @@ const Re = /* @__PURE__ */ M(Qe, [["__scopeId", "data-v-9824fd60"]]), Te = { cla
180
182
  "Almost there... just a bit longer",
181
183
  "Compiling a response for you"
182
184
  ], l = v(0), _ = setInterval(() => {
183
- var d, a;
184
- !((a = (d = e.scope) == null ? void 0 : d.isActive) != null && a.call(d)) && e.native || (l.value = (l.value + 1) % i.length);
185
+ var u, a;
186
+ !((a = (u = e.scope) == null ? void 0 : u.isActive) != null && a.call(u)) && e.native || (l.value = (l.value + 1) % i.length);
185
187
  }, 5e3);
186
- return e.own(() => clearInterval(_)), (d, a) => (p(), h("div", Ue, [
188
+ return e.own(() => clearInterval(_)), (u, a) => (p(), h("div", Ue, [
187
189
  t("div", We, [
188
- w(m(T), { class: "h-[18px] w-[18px]" })
190
+ w(d(N), { class: "h-[18px] w-[18px]" })
189
191
  ]),
190
192
  t("div", De, [
191
193
  t("div", Oe, [
@@ -195,7 +197,7 @@ const Re = /* @__PURE__ */ M(Qe, [["__scopeId", "data-v-9824fd60"]]), Te = { cla
195
197
  name: "fade",
196
198
  mode: "out-in"
197
199
  }, {
198
- default: j(() => [
200
+ default: T(() => [
199
201
  (p(), h("span", {
200
202
  key: l.value,
201
203
  class: "text-xs italic leading-4 text-gray-500"
@@ -218,20 +220,20 @@ const Xe = /* @__PURE__ */ M(Je, [["__scopeId", "data-v-3d998441"]]), Ze = { key
218
220
  setup(r) {
219
221
  let e = v(""), i = v("");
220
222
  e.value = '<a style="color:#00AECF;"', i.value = '<ul style="list-style: disc !important; margin-left: 3.5rem !important; padding: 0;"';
221
- const l = L(), _ = q(), d = v(), a = () => {
223
+ const l = L(), _ = q(), u = v(), a = () => {
222
224
  var n;
223
225
  const s = _.native && _.root && typeof _.root.querySelectorAll == "function" ? _.root.querySelectorAll('[name="askQuestion"]') : document.getElementsByName("askQuestion"), f = Array.from(s);
224
226
  f.length && ((n = f.pop()) == null || n.scrollIntoView({ behavior: "smooth", block: "center" }));
225
227
  };
226
- return z(a), ae(a), (s, f) => (p(), h("div", {
228
+ return G(a), ae(a), (s, f) => (p(), h("div", {
227
229
  ref_key: "nestedElement",
228
- ref: d,
230
+ ref: u,
229
231
  class: "smooth-scroll overflow-auto md:px-6 px-2"
230
232
  }, [
231
- w(Ie),
232
- (p(!0), h(re, null, ie(m(l).conversations, (n, o) => (p(), h("div", { key: o }, [
233
+ w(Se),
234
+ (p(!0), h(re, null, ie(d(l).conversations, (n, o) => (p(), h("div", { key: o }, [
233
235
  n.question ? (p(), h("div", Ze, [
234
- w(Ge, {
236
+ w(ze, {
235
237
  question: n.question,
236
238
  c2question: n.c2question,
237
239
  "show-feedback": n.showFeedback,
@@ -239,38 +241,38 @@ const Xe = /* @__PURE__ */ M(Je, [["__scopeId", "data-v-3d998441"]]), Ze = { key
239
241
  name: "askQuestion",
240
242
  "que-id": o
241
243
  }, null, 8, ["question", "c2question", "show-feedback", "id", "que-id"])
242
- ])) : I("", !0),
244
+ ])) : S("", !0),
243
245
  n.answer ? (p(), h("div", et, [
244
246
  w(Re, {
245
247
  question: n == null ? void 0 : n.question,
246
248
  c2question: n == null ? void 0 : n.c2question,
247
249
  "show-sources": n == null ? void 0 : n.showSources,
248
250
  questionId: n.id,
249
- answer: n.answer.replaceAll("<a", m(e)).replaceAll("<ul", m(i)),
251
+ answer: n.answer.replaceAll("<a", d(e)).replaceAll("<ul", d(i)),
250
252
  "show-feedback": n.showFeedback,
251
253
  "related-ques": n.relatedQues,
252
254
  "options-array": n.optionsArray,
253
255
  "ans-id": o
254
256
  }, null, 8, ["question", "c2question", "show-sources", "questionId", "answer", "show-feedback", "related-ques", "options-array", "ans-id"])
255
- ])) : I("", !0)
257
+ ])) : S("", !0)
256
258
  ]))), 128)),
257
- m(l).dotLoader ? (p(), h("div", tt, [
259
+ d(l).dotLoader ? (p(), h("div", tt, [
258
260
  w(Xe)
259
- ])) : I("", !0)
261
+ ])) : S("", !0)
260
262
  ], 512));
261
263
  }
262
264
  });
263
265
  const nt = /* @__PURE__ */ M(st, [["__scopeId", "data-v-ee7bc477"]]), E = (r) => String(r.query.amaId ?? "");
264
- function ot(r, e, i, l, _, d = (a) => !1) {
266
+ function ot(r, e, i, l, _, u = (a) => !1) {
265
267
  const a = v(!1);
266
268
  let s = 0, f = !0;
267
269
  const n = () => {
268
270
  s += 1, a.value = !1, e.dotLoader = !1;
269
271
  };
270
- N(() => E(r), n), G(() => {
272
+ Q(() => E(r), n), z(() => {
271
273
  f = !1, n();
272
274
  });
273
- const o = (u, c) => f && u === s && c === E(r);
275
+ const o = (m, c) => f && m === s && c === E(r);
274
276
  return { isWaitingResponse: a, sendQuestion: async () => {
275
277
  var k, $, g;
276
278
  if (e.question.trim().length < 1) {
@@ -281,28 +283,28 @@ function ot(r, e, i, l, _, d = (a) => !1) {
281
283
  i.setError("You have exhausted your question limit!");
282
284
  return;
283
285
  }
284
- const u = ++s, c = E(r);
286
+ const m = ++s, c = E(r);
285
287
  a.value = !0, e.dotLoader = !0;
286
288
  const A = e.question;
287
289
  e.conversations.push({ question: A }), e.question = "";
288
- const S = {
290
+ const I = {
289
291
  skillId: c,
290
292
  question: A,
291
293
  past_messages: e.past_messages
292
294
  };
293
295
  try {
294
- const y = await l(S);
295
- if (!o(u, c))
296
+ const y = await l(I);
297
+ if (!o(m, c))
296
298
  return;
297
299
  e.addConversation((k = y.data) == null ? void 0 : k.body, "new"), a.value = !1, e.dotLoader = !1;
298
300
  } catch (y) {
299
- if (d(y) || !o(u, c))
301
+ if (u(y) || !o(m, c))
300
302
  return;
301
303
  a.value = !1, e.dotLoader = !1, _(y) ? i.setError((g = ($ = y.response) == null ? void 0 : $.data) == null ? void 0 : g.message) : i.setError("There was an issue, please contact helpmate");
302
304
  }
303
305
  } };
304
306
  }
305
- const Q = (r) => (H("data-v-7c8476bc"), r = r(), V(), r), at = { class: "w-full px-2 pb-3 pt-3 md:px-6" }, rt = { class: "relative" }, it = { class: "pointer-events-none absolute inset-y-0 left-3 flex items-center md:left-4" }, lt = {
307
+ const R = (r) => (H("data-v-7c8476bc"), r = r(), V(), r), at = { class: "w-full px-2 pb-3 pt-3 md:px-6" }, rt = { class: "relative" }, it = { class: "pointer-events-none absolute inset-y-0 left-3 flex items-center md:left-4" }, lt = {
306
308
  class: "flex h-8 w-8 items-center justify-center rounded-full bg-[#FFF4E0] text-[#E08A00] md:h-9 md:w-9",
307
309
  "aria-hidden": "true"
308
310
  }, ct = ["placeholder"], dt = { class: "absolute inset-y-0 right-2 flex items-center md:right-3" }, ut = {
@@ -311,9 +313,9 @@ const Q = (r) => (H("data-v-7c8476bc"), r = r(), V(), r), at = { class: "w-full
311
313
  role: "status",
312
314
  "aria-label": "Waiting for response",
313
315
  title: "Waiting for response"
314
- }, mt = /* @__PURE__ */ Q(() => /* @__PURE__ */ t("span", { class: "h-5 w-5 animate-spin rounded-full border-[2.5px] border-[#FFAB28] border-t-transparent" }, null, -1)), pt = [
316
+ }, mt = /* @__PURE__ */ R(() => /* @__PURE__ */ t("span", { class: "h-5 w-5 animate-spin rounded-full border-[2.5px] border-[#FFAB28] border-t-transparent" }, null, -1)), pt = [
315
317
  mt
316
- ], _t = { 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__ */ Q(() => /* @__PURE__ */ t("span", null, "Note: AI-generated response may not be fully accurate; check with experts for critical information.", -1)), ft = /* @__PURE__ */ Q(() => /* @__PURE__ */ t("span", {
318
+ ], _t = { 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__ */ R(() => /* @__PURE__ */ t("span", null, "Note: AI-generated response may not be fully accurate; check with experts for critical information.", -1)), ft = /* @__PURE__ */ R(() => /* @__PURE__ */ t("span", {
317
319
  class: "hidden sm:inline",
318
320
  "aria-hidden": "true"
319
321
  }, "·", -1)), gt = { class: "font-semibold text-[#181C23]" }, xt = /* @__PURE__ */ b({
@@ -321,59 +323,59 @@ const Q = (r) => (H("data-v-7c8476bc"), r = r(), V(), r), at = { class: "w-full
321
323
  setup(r) {
322
324
  const e = L(), i = U();
323
325
  e.question = "";
324
- const l = v(null), _ = v(!1), d = v(B), a = W(), s = D(), { isWaitingResponse: f, sendQuestion: n } = ot(
326
+ const l = v(null), _ = v(!1), u = v(B), a = W(), s = D(), { isWaitingResponse: f, sendQuestion: n } = ot(
325
327
  a,
326
328
  e,
327
329
  i,
328
- (u) => s.postApi("/amaBotResponse", u),
330
+ (m) => s.postApi("/amaBotResponse", m),
329
331
  le.isAxiosError,
330
332
  O
331
333
  );
332
- z(() => {
334
+ G(() => {
333
335
  l.value.focus();
334
336
  });
335
337
  const o = F(() => e.question.trim().length > 0);
336
- N(
338
+ Q(
337
339
  () => e.question,
338
340
  async () => {
339
341
  await pe();
340
- const u = l.value;
341
- u && (u.style.height = "auto", u.style.height = `${u.scrollHeight}px`);
342
+ const m = l.value;
343
+ m && (m.style.height = "auto", m.style.height = `${m.scrollHeight}px`);
342
344
  }
343
345
  );
344
- const x = (u) => {
345
- const c = u.length;
346
- d.value = B - c, _.value = c >= B;
346
+ const x = (m) => {
347
+ const c = m.length;
348
+ u.value = B - c, _.value = c >= B;
347
349
  };
348
- return (u, c) => (p(), h("div", at, [
350
+ return (m, c) => (p(), h("div", at, [
349
351
  t("div", rt, [
350
352
  t("div", it, [
351
353
  t("span", lt, [
352
- w(m(fe), { class: "h-4 w-4 md:h-5 md:w-5" })
354
+ w(d(fe), { class: "h-4 w-4 md:h-5 md:w-5" })
353
355
  ])
354
356
  ]),
355
357
  ce(t("textarea", {
356
358
  ref_key: "AiSearch",
357
359
  ref: l,
358
- "onUpdate:modelValue": c[0] || (c[0] = (A) => m(e).question = A),
360
+ "onUpdate:modelValue": c[0] || (c[0] = (A) => d(e).question = A),
359
361
  rows: "1",
360
362
  class: "fontFormattingAMA block max-h-40 w-full 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",
361
- placeholder: `Ask me about ${m(e).amaSkillName || "Skill Name"}`,
362
- onKeydown: c[1] || (c[1] = ue(_e((A) => m(f) ? "" : m(n)(), ["exact", "prevent"]), ["enter"])),
363
- onInput: c[2] || (c[2] = (A) => x(m(e).question))
363
+ placeholder: `Ask me about ${d(e).amaSkillName || "Skill Name"}`,
364
+ onKeydown: c[1] || (c[1] = ue(_e((A) => d(f) ? "" : d(n)(), ["exact", "prevent"]), ["enter"])),
365
+ onInput: c[2] || (c[2] = (A) => x(d(e).question))
364
366
  }, null, 40, ct), [
365
- [de, m(e).question]
367
+ [de, d(e).question]
366
368
  ]),
367
369
  t("div", dt, [
368
- m(f) ? (p(), h("span", ut, pt)) : (p(), h("button", {
370
+ d(f) ? (p(), h("span", ut, pt)) : (p(), h("button", {
369
371
  key: 0,
370
372
  type: "button",
371
373
  title: "Send",
372
374
  "aria-label": "Send question",
373
375
  class: me([o.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"]),
374
- onClick: c[3] || (c[3] = (A) => m(n)())
376
+ onClick: c[3] || (c[3] = (A) => d(n)())
375
377
  }, [
376
- w(m(J), {
378
+ w(d(J), {
377
379
  class: "h-5 w-5",
378
380
  "aria-hidden": "true"
379
381
  })
@@ -381,28 +383,28 @@ const Q = (r) => (H("data-v-7c8476bc"), r = r(), V(), r), at = { class: "w-full
381
383
  ])
382
384
  ]),
383
385
  t("div", _t, [
384
- w(m(X), {
386
+ w(d(X), {
385
387
  class: "h-4 w-4 shrink-0 text-[#E08A00]",
386
388
  "aria-hidden": "true"
387
389
  }),
388
390
  ht,
389
391
  ft,
390
- t("span", gt, C(m(e).amaQuestionsLeft) + " questions remaining for the day", 1)
392
+ t("span", gt, C(d(e).amaQuestionsLeft) + " questions remaining for the day", 1)
391
393
  ])
392
394
  ]));
393
395
  }
394
396
  });
395
397
  const wt = /* @__PURE__ */ M(xt, [["__scopeId", "data-v-7c8476bc"]]), vt = (r) => String(r.query.amaId ?? "");
396
- function At(r, e, i, l, _ = (d) => !1) {
397
- const d = v(!0), a = v(!1);
398
+ function At(r, e, i, l, _ = (u) => !1) {
399
+ const u = v(!0), a = v(!1);
398
400
  let s = 0;
399
401
  const f = (o) => {
400
402
  e.amaSkillId = o, e.amaSkillName = "", e.amaQuestionsLeft = 0, e.question = "", e.conversations = [], e.past_messages = [];
401
403
  }, n = async (o) => {
402
- var c, A, S, k, $;
404
+ var c, A, I, k, $;
403
405
  const x = ++s;
404
- d.value = !0, a.value = !1, f(o);
405
- let u = !1;
406
+ u.value = !0, a.value = !1, f(o);
407
+ let m = !1;
406
408
  try {
407
409
  const g = await l(o);
408
410
  if (x !== s)
@@ -410,22 +412,22 @@ function At(r, e, i, l, _ = (d) => !1) {
410
412
  e.initialize(g.data), e.amaQuestionsLeft = (c = g == null ? void 0 : g.data) == null ? void 0 : c.questionsLeftAIGC, e.amaSkillName = (A = g == null ? void 0 : g.data) == null ? void 0 : A.skillName;
411
413
  } catch (g) {
412
414
  if (_(g)) {
413
- u = !0;
415
+ m = !0;
414
416
  return;
415
417
  }
416
418
  if (x !== s)
417
419
  return;
418
- const y = g && typeof g == "object" && ((S = g.response) == null ? void 0 : S.status);
420
+ const y = g && typeof g == "object" && ((I = g.response) == null ? void 0 : I.status);
419
421
  y === 424 || y === 425 ? a.value = !0 : y ? i.setError(($ = (k = g.response) == null ? void 0 : k.data) == null ? void 0 : $.message) : i.setError("There was an issue, please contact helpmate");
420
422
  } finally {
421
- !u && x === s && (d.value = !1);
423
+ !m && x === s && (u.value = !1);
422
424
  }
423
425
  };
424
- return N(() => vt(r), (o) => {
426
+ return Q(() => vt(r), (o) => {
425
427
  n(o);
426
- }, { immediate: !0 }), G(() => {
428
+ }, { immediate: !0 }), z(() => {
427
429
  s += 1;
428
- }), { loaderValue: d, notAllowedModalVisible: a };
430
+ }), { loaderValue: u, notAllowedModalVisible: a };
429
431
  }
430
432
  const yt = {
431
433
  key: 1,
@@ -433,7 +435,7 @@ const yt = {
433
435
  }, bt = { class: "z-20 shrink-0" }, kt = { class: "min-h-0 flex-1 overflow-hidden pb-1" }, $t = { class: "flex h-full flex-col bg-gray-100 px-2 sm:px-6 md:px-10 lg:px-20" }, Ft = { class: "fontFormattingAMA flex min-h-0 flex-1 flex-col border-x border-b border-black bg-gray-200 pt-3 md:pt-4" }, qt = { class: "shrink-0" }, Mt = /* @__PURE__ */ b({
434
436
  __name: "AssessmentAMA",
435
437
  setup(r) {
436
- const e = L(), i = U(), l = W(), _ = D(), { loaderValue: d, notAllowedModalVisible: a } = At(
438
+ const e = L(), i = U(), l = W(), _ = D(), { loaderValue: u, notAllowedModalVisible: a } = At(
437
439
  l,
438
440
  e,
439
441
  i,
@@ -441,18 +443,21 @@ const yt = {
441
443
  O
442
444
  );
443
445
  return (s, f) => (p(), h("section", null, [
444
- m(a) ? (p(), R(Z, {
446
+ d(a) ? (p(), j(Z, {
445
447
  key: 0,
446
448
  tone: "error",
447
449
  title: "Assessment Access Required"
448
450
  }, {
449
- default: j(() => [
451
+ default: T(() => [
450
452
  he(" You don't have access to this assessment. Please contact to administrator ")
451
453
  ]),
452
454
  _: 1
453
- })) : I("", !0),
455
+ })) : S("", !0),
454
456
  t("div", null, [
455
- m(d) ? (p(), R(ee, { key: 0 })) : (p(), h("main", yt, [
457
+ d(u) ? (p(), j(ee, {
458
+ key: 0,
459
+ message: "Loading AI Guru"
460
+ })) : (p(), h("main", yt, [
456
461
  t("div", bt, [
457
462
  w(ke)
458
463
  ]),
@@ -471,7 +476,7 @@ const yt = {
471
476
  ]));
472
477
  }
473
478
  });
474
- const Nt = /* @__PURE__ */ M(Mt, [["__scopeId", "data-v-52c203d2"]]);
479
+ const Nt = /* @__PURE__ */ M(Mt, [["__scopeId", "data-v-17879a89"]]);
475
480
  export {
476
481
  Nt as default
477
482
  };
@@ -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 De, c as Se, a as D, 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-ece9019a.mjs";
5
- import { r as jd, _ as Rh, a as Cd, b as Xd, c as Md, d as Fd, L as Jh } from "./simulationPopup.vue_vue_type_script_setup_true_lang-b2dc2d77.mjs";
4
+ import { o as De, c as Se, a as D, 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-9832da77.mjs";
5
+ import { r as jd, _ as Rh, a as Cd, b as Xd, c as Md, d as Fd, L as Jh } from "./simulationPopup.vue_vue_type_script_setup_true_lang-bf56f03d.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-cd0c35e1.mjs";
9
- import { u as Wh, a as Uh } from "./voiceServices-f741b361.mjs";
10
- import { r as qh } from "./XMarkIcon-00c9268e.mjs";
8
+ import { u as za, i as Mi, c as Es } from "./api-6dc8b5ac.mjs";
9
+ import { u as Wh, a as Uh } from "./voiceServices-04e9727e.mjs";
10
+ import { r as qh } from "./XMarkIcon-7f24a592.mjs";
11
11
  function Yh(e, n) {
12
12
  return De(), Se("svg", {
13
13
  xmlns: "http://www.w3.org/2000/svg",
@@ -12455,7 +12455,7 @@ function(e) {
12455
12455
  var d = u.getContext("2d");
12456
12456
  d.fillStyle = "#fff", d.fillRect(0, 0, u.width, u.height);
12457
12457
  var v = { ignoreMouse: !0, ignoreAnimation: !0, ignoreDimensions: !0 }, w = this;
12458
- return (at.canvg ? Promise.resolve(at.canvg) : import("./index.es-ac666b05.mjs")).catch(function(A) {
12458
+ return (at.canvg ? Promise.resolve(at.canvg) : import("./index.es-cb06cdf3.mjs")).catch(function(A) {
12459
12459
  return Promise.reject(new Error("Could not load canvg: " + A));
12460
12460
  }).then(function(A) {
12461
12461
  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-ece9019a.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-9832da77.mjs";
2
2
  import { _ as C } from "./loadernew-ac153a51.mjs";
3
- import { u as X, a as Z, i as A } from "./api-cd0c35e1.mjs";
3
+ import { u as X, a as Z, i as A } from "./api-6dc8b5ac.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-ece9019a.mjs";
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-9832da77.mjs";
2
2
  import { _ as R } from "./loadernew-ac153a51.mjs";
3
- import { a as K, u as te, i as M } from "./api-cd0c35e1.mjs";
3
+ import { a as K, u as te, i as M } from "./api-6dc8b5ac.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) {