@genpact/genome.mfe.mgtwin-app 1.1.298-alpha → 1.1.300-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 (22) hide show
  1. package/dist/{ArrowLeftCircleIcon-0c2629d2.mjs → ArrowLeftCircleIcon-30918bb2.mjs} +1 -1
  2. package/dist/{AssessmentAMA-ed3b93cb.mjs → AssessmentAMA-7123f2b1.mjs} +31 -31
  3. package/dist/{AssessmentSimulation-9f6db8be.mjs → AssessmentSimulation-5fc2c81b.mjs} +1110 -1085
  4. package/dist/{EditSkillAdminData-c87b503f.mjs → EditSkillAdminData-c137ff07.mjs} +3 -3
  5. package/dist/{EditSkillData-d351c5f3.mjs → EditSkillData-e0f5007e.mjs} +3 -3
  6. package/dist/{HomeView-649ec323.mjs → HomeView-b34e6f1e.mjs} +741 -787
  7. package/dist/{Loading-35878007.mjs → Loading-f1409e3b.mjs} +1 -1
  8. package/dist/{LoadingSimulation-7ad860ef.mjs → LoadingSimulation-e0e7a310.mjs} +1 -1
  9. package/dist/{Modal-19b7fa20.mjs → Modal-fb912682.mjs} +1 -1
  10. package/dist/{PaperAirplaneIcon-15dfb3d2.mjs → PaperAirplaneIcon-2b257917.mjs} +1 -1
  11. package/dist/{PromptTesting-24abf932.mjs → PromptTesting-79696b66.mjs} +3 -3
  12. package/dist/{SkillAutomation-fed28f94.mjs → SkillAutomation-15d445ee.mjs} +3 -3
  13. package/dist/{SkillData-e0b7bd98.mjs → SkillData-9b541a73.mjs} +3 -3
  14. package/dist/{Testcase-65ab9404.mjs → Testcase-6f60b1bc.mjs} +5 -5
  15. package/dist/{UnderMaintenance-131fde39.mjs → UnderMaintenance-bc84fb0b.mjs} +1 -1
  16. package/dist/{_commonjsHelpers-f5d4812e.mjs → _commonjsHelpers-9274b57b.mjs} +1 -1
  17. package/dist/{api-5d885da3.mjs → api-8ec3033c.mjs} +1 -1
  18. package/dist/{main-600d491d.mjs → main-3ce0e409.mjs} +2286 -2293
  19. package/dist/mgtwin.es.min.js +1 -1
  20. package/dist/mgtwin.umd.min.js +15 -15
  21. package/dist/style.css +1 -1
  22. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { o as e, c as r, a } from "./main-600d491d.mjs";
1
+ import { o as e, c as r, a } from "./main-3ce0e409.mjs";
2
2
  function c(l, o) {
3
3
  return e(), r("svg", {
4
4
  xmlns: "http://www.w3.org/2000/svg",
@@ -1,8 +1,8 @@
1
- import { _ as me, a as fe, L as he } from "./LoadingSimulation-7ad860ef.mjs";
2
- import { _ as ge, Q as B, a as ve } from "./Modal-19b7fa20.mjs";
3
- import { d as k, r as i, H as T, o as d, c as p, a as s, u as R, y as j, t as L, G as xe, p as V, g as D, C as H, z as ye, h as b, F as we, e as Ae, f as P, b as $, k as ue, w as be, m as $e, L as ke, q as U, s as qe, l as Me } from "./main-600d491d.mjs";
1
+ import { _ as me, a as he, L as fe } from "./LoadingSimulation-e0e7a310.mjs";
2
+ import { _ as ge, Q as B, a as ve } from "./Modal-fb912682.mjs";
3
+ import { d as k, r as i, H as T, o as d, c as p, a as s, u as R, y as j, t as L, G as xe, p as V, g as D, C as H, z as ye, h as b, F as we, e as Ae, f as P, b as $, k as ue, w as be, m as $e, L as ke, q as U, s as qe, l as Me } from "./main-3ce0e409.mjs";
4
4
  import { _ as S } from "./_plugin-vue_export-helper-dad06003.mjs";
5
- import { p as ie, g as de } from "./api-5d885da3.mjs";
5
+ import { p as ie, g as de } from "./api-8ec3033c.mjs";
6
6
  import "./loadernew-ac153a51.mjs";
7
7
  const Ie = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#021c42] md:pr-6 lg:pr-6" }, Le = ["href"], Se = /* @__PURE__ */ s("img", {
8
8
  class: "h-11 w-auto cursor-pointer",
@@ -37,7 +37,7 @@ const Ie = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#0
37
37
  __name: "greetingsAMA",
38
38
  setup(l) {
39
39
  const t = R(), n = ` Hi ${t.learnerName || "Expert"}, and welcome!`, a = j(() => n), m = j(() => t.welcomeMessage);
40
- return (f, c) => (d(), p("section", null, [
40
+ return (h, c) => (d(), p("section", null, [
41
41
  s("div", Qe, [
42
42
  s("div", Be, [
43
43
  s("div", Pe, L(a.value), 1),
@@ -61,7 +61,7 @@ const Ie = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#0
61
61
  /Assessment Rating & Feedback/g,
62
62
  '<div style="font-size: 26px; font-weight: bold; text-decoration: underline;">Rating & Feedback</div>'
63
63
  ), m = /\[([^\]]+)\]\((https?:\/\/[^\s]+)\)/g;
64
- return a.replace(m, (f, c, o) => `<a href="${o}" target="_blank" rel="noopener noreferrer" style="color: blue; text-decoration: underline;">${c}</a>`);
64
+ return a.replace(m, (h, c, o) => `<a href="${o}" target="_blank" rel="noopener noreferrer" style="color: blue; text-decoration: underline;">${c}</a>`);
65
65
  });
66
66
  return (a, m) => (d(), p("div", Ve, [
67
67
  s("div", De, [
@@ -127,27 +127,27 @@ const os = /* @__PURE__ */ S(as, [["__scopeId", "data-v-12a02acf"]]), ns = { key
127
127
  const a = R(), m = i();
128
128
  return H(() => {
129
129
  var o;
130
- const f = document.getElementsByName("askQuestion"), c = Array.from(f);
131
- f.length && ((o = c == null ? void 0 : c.pop()) == null || o.scrollIntoView({ behavior: "smooth", block: "center" }));
130
+ const h = document.getElementsByName("askQuestion"), c = Array.from(h);
131
+ h.length && ((o = c == null ? void 0 : c.pop()) == null || o.scrollIntoView({ behavior: "smooth", block: "center" }));
132
132
  }), ye(() => {
133
133
  var o;
134
- const f = document.getElementsByName("askQuestion"), c = Array.from(f);
135
- f.length && ((o = c == null ? void 0 : c.pop()) == null || o.scrollIntoView({ behavior: "smooth", block: "center" }));
136
- }), (f, c) => (d(), p("div", {
134
+ const h = document.getElementsByName("askQuestion"), c = Array.from(h);
135
+ h.length && ((o = c == null ? void 0 : c.pop()) == null || o.scrollIntoView({ behavior: "smooth", block: "center" }));
136
+ }), (h, c) => (d(), p("div", {
137
137
  ref_key: "nestedElement",
138
138
  ref: m,
139
139
  class: "smooth-scroll overflow-auto md:px-6 px-2"
140
140
  }, [
141
141
  b(Ue),
142
- (d(!0), p(we, null, Ae($(a).conversations, (o, h) => (d(), p("div", { key: h }, [
142
+ (d(!0), p(we, null, Ae($(a).conversations, (o, f) => (d(), p("div", { key: f }, [
143
143
  o.question ? (d(), p("div", ns, [
144
144
  b(Ze, {
145
145
  question: o.question,
146
146
  c2question: o.c2question,
147
147
  "show-feedback": o.showFeedback,
148
- id: `qId${h}`,
148
+ id: `qId${f}`,
149
149
  name: "askQuestion",
150
- "que-id": h
150
+ "que-id": f
151
151
  }, null, 8, ["question", "c2question", "show-feedback", "id", "que-id"])
152
152
  ])) : P("", !0),
153
153
  o.answer ? (d(), p("div", rs, [
@@ -160,7 +160,7 @@ const os = /* @__PURE__ */ S(as, [["__scopeId", "data-v-12a02acf"]]), ns = { key
160
160
  "show-feedback": o.showFeedback,
161
161
  "related-ques": o.relatedQues,
162
162
  "options-array": o.optionsArray,
163
- "ans-id": h
163
+ "ans-id": f
164
164
  }, null, 8, ["question", "c2question", "show-sources", "questionId", "answer", "show-feedback", "related-ques", "options-array", "ans-id"])
165
165
  ])) : P("", !0)
166
166
  ]))), 128)),
@@ -170,14 +170,14 @@ const os = /* @__PURE__ */ S(as, [["__scopeId", "data-v-12a02acf"]]), ns = { key
170
170
  ], 512));
171
171
  }
172
172
  });
173
- const is = /* @__PURE__ */ S(cs, [["__scopeId", "data-v-e6168dd4"]]), C = (l) => (V("data-v-df62b92f"), l = l(), D(), l), ds = { class: "z-3 absolute bottom-0 mt-4 w-full bg-white px-2 md:px-6" }, us = { class: "py-2" }, ps = { class: "flex" }, _s = { class: "z-1 relative w-full" }, ms = { class: "relative w-full" }, fs = { class: "absolute inset-y-0 right-0 flex items-center md:pr-8 pr-3" }, hs = { key: 0 }, gs = /* @__PURE__ */ C(() => /* @__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)), vs = [
173
+ const is = /* @__PURE__ */ S(cs, [["__scopeId", "data-v-e6168dd4"]]), C = (l) => (V("data-v-cf5c2d94"), l = l(), D(), l), ds = { class: "z-3 absolute bottom-0 mt-4 w-full bg-white px-2 md:px-6" }, us = { class: "py-2" }, ps = { class: "flex" }, _s = { class: "z-1 relative w-full" }, ms = { class: "relative w-full" }, hs = { class: "absolute inset-y-0 right-0 flex items-center md:pr-8 pr-3" }, fs = { key: 0 }, gs = /* @__PURE__ */ C(() => /* @__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)), vs = [
174
174
  gs
175
175
  ], xs = {
176
176
  key: 1,
177
177
  class: "tooltip"
178
178
  }, ys = /* @__PURE__ */ C(() => /* @__PURE__ */ s("span", { class: "tooltiptext fontFormattingAMA" }, "Waiting for response", -1)), ws = /* @__PURE__ */ C(() => /* @__PURE__ */ s("img", {
179
179
  class: "w-7 h-7",
180
- src: fe,
180
+ src: he,
181
181
  alt: "watingIcon"
182
182
  }, null, -1)), As = [
183
183
  ys,
@@ -189,13 +189,13 @@ const is = /* @__PURE__ */ S(cs, [["__scopeId", "data-v-e6168dd4"]]), C = (l) =>
189
189
  setup(l) {
190
190
  const t = R(), n = ue();
191
191
  t.question = "";
192
- const a = i(null), m = i(!1), f = i(B), c = i(!1);
192
+ const a = i(null), m = i(!1), h = i(B), c = i(!1);
193
193
  H(() => {
194
194
  a.value.focus();
195
195
  });
196
- const o = (y) => new URLSearchParams(window.location.search).get(y) || "", h = i(o("amaId")), z = i(o("corpusId")), q = (y) => {
196
+ const o = (y) => new URLSearchParams(window.location.search).get(y) || "", f = i(o("amaId")), z = i(o("corpusId")), q = (y) => {
197
197
  const u = y.length;
198
- f.value = B - u, m.value = u >= B;
198
+ h.value = B - u, m.value = u >= B;
199
199
  }, E = async () => {
200
200
  var y, u, _, v, w, A;
201
201
  try {
@@ -215,7 +215,7 @@ const is = /* @__PURE__ */ S(cs, [["__scopeId", "data-v-e6168dd4"]]), C = (l) =>
215
215
  const r = i("");
216
216
  r.value = t.question, t.question = "";
217
217
  const x = {
218
- amaId: h.value,
218
+ amaId: f.value,
219
219
  amaCorpusId: z.value,
220
220
  past_messages: t.past_messages,
221
221
  question: r.value,
@@ -241,8 +241,8 @@ const is = /* @__PURE__ */ S(cs, [["__scopeId", "data-v-e6168dd4"]]), C = (l) =>
241
241
  s("div", ps, [
242
242
  s("div", _s, [
243
243
  s("div", ms, [
244
- s("div", fs, [
245
- c.value ? (d(), p("div", xs, As)) : (d(), p("div", hs, [
244
+ s("div", hs, [
245
+ c.value ? (d(), p("div", xs, As)) : (d(), p("div", fs, [
246
246
  (d(), p("svg", {
247
247
  onClick: u[0] || (u[0] = (_) => E()),
248
248
  xmlns: "http://www.w3.org/2000/svg",
@@ -277,7 +277,7 @@ const is = /* @__PURE__ */ S(cs, [["__scopeId", "data-v-e6168dd4"]]), C = (l) =>
277
277
  ]));
278
278
  }
279
279
  });
280
- const Ms = /* @__PURE__ */ S(qs, [["__scopeId", "data-v-df62b92f"]]), O = (l) => (V("data-v-263db3f3"), l = l(), D(), l), Is = /* @__PURE__ */ O(() => /* @__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]" }, [
280
+ const Ms = /* @__PURE__ */ S(qs, [["__scopeId", "data-v-cf5c2d94"]]), O = (l) => (V("data-v-263db3f3"), l = l(), D(), l), Is = /* @__PURE__ */ O(() => /* @__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]" }, [
281
281
  /* @__PURE__ */ s("div", { class: "text-2xl font-[700]" }, "Assessment Access Required"),
282
282
  /* @__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 ")
283
283
  ], -1)), Ls = {
@@ -286,8 +286,8 @@ const Ms = /* @__PURE__ */ S(qs, [["__scopeId", "data-v-df62b92f"]]), O = (l) =>
286
286
  }, Ss = { class: "z-20" }, Es = /* @__PURE__ */ O(() => /* @__PURE__ */ s("div", { class: "mt-6" }, null, -1)), Fs = { 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" }, Ns = /* @__PURE__ */ O(() => /* @__PURE__ */ s("div", { class: "mt-[160px]" }, null, -1)), Qs = { class: "relative" }, Bs = /* @__PURE__ */ k({
287
287
  __name: "AssessmentAMA",
288
288
  setup(l) {
289
- const t = i(!0), n = i(!1), a = R(), m = ue(), f = i("");
290
- let c = "", o = "", h = "";
289
+ const t = i(!0), n = i(!1), a = R(), m = ue(), h = i("");
290
+ let c = "", o = "", f = "";
291
291
  const q = i(((_) => new URLSearchParams(window.location.search).get(_) || "")("amaId"));
292
292
  a.amaSkillId = q.value ?? "";
293
293
  const E = ["703331197", "703380812", "703331909", "703363051", "703319578"];
@@ -328,16 +328,16 @@ const Ms = /* @__PURE__ */ S(qs, [["__scopeId", "data-v-df62b92f"]]), O = (l) =>
328
328
  try {
329
329
  T === "prod" ? c = `https://api-v2-dev.genpact.com/api/my-profile/ama-master/getAMADetailsById?id=${q.value}` : c = `https://api-v2-dev.genpact.com/api/my-profile/ama-master/getAMADetailsById?id=${q.value}`;
330
330
  const e = await de(c);
331
- console.log("response from GetAMA", e), f.value = (v = (_ = e == null ? void 0 : e.data) == null ? void 0 : _.data) == null ? void 0 : v.name, a.welcomeMessage = (A = (w = e == null ? void 0 : e.data) == null ? void 0 : w.data) == null ? void 0 : A.displayMsg, console.log("response from GetAMA skill Name", f.value), a.skillNameForSimulation = f.value, a.generatedPrompt = (r = (g = e == null ? void 0 : e.data) == null ? void 0 : g.data) == null ? void 0 : r.generatedPrompt, o = (M = (x = e == null ? void 0 : e.data) == null ? void 0 : x.data) == null ? void 0 : M.accessBand, h = (F = (N = e == null ? void 0 : e.data) == null ? void 0 : N.data) == null ? void 0 : F.accessOhrList;
331
+ console.log("response from GetAMA", e), h.value = (v = (_ = e == null ? void 0 : e.data) == null ? void 0 : _.data) == null ? void 0 : v.name, a.welcomeMessage = (A = (w = e == null ? void 0 : e.data) == null ? void 0 : w.data) == null ? void 0 : A.displayMsg, console.log("response from GetAMA skill Name", h.value), a.skillNameForSimulation = h.value, a.generatedPrompt = (r = (g = e == null ? void 0 : e.data) == null ? void 0 : g.data) == null ? void 0 : r.generatedPrompt, o = (M = (x = e == null ? void 0 : e.data) == null ? void 0 : x.data) == null ? void 0 : M.accessBand, f = (F = (N = e == null ? void 0 : e.data) == null ? void 0 : N.data) == null ? void 0 : F.accessOhrList;
332
332
  const I = (Y = (G = e == null ? void 0 : e.data) == null ? void 0 : G.data) == null ? void 0 : Y.createdBy;
333
333
  a.mcqType = (Z = (W = e == null ? void 0 : e.data) == null ? void 0 : W.data) == null ? void 0 : Z.mcqTypes, a.storeFinalFeedback = (J = (K = e == null ? void 0 : e.data) == null ? void 0 : K.data) == null ? void 0 : J.storeFinalFeedback, a.storeFinalScore = (ee = (X = e == null ? void 0 : e.data) == null ? void 0 : X.data) == null ? void 0 : ee.storeFinalScore, a.amaQuestionsLeft = (te = (se = e == null ? void 0 : e.data) == null ? void 0 : se.data) == null ? void 0 : te.amaQuestionsLeft, console.log("store mcqType====>", a.mcqType);
334
334
  const pe = a == null ? void 0 : a.band_code;
335
- console.log("accessBand , accessOhrList====>", o, h);
335
+ console.log("accessBand , accessOhrList====>", o, f);
336
336
  const Q = (ae = o == null ? void 0 : o.split(",")) == null ? void 0 : ae.map((_e) => _e.trim());
337
337
  if (console.log("bands ,====>", Q), I === (a == null ? void 0 : a.ohr) || E.includes(a == null ? void 0 : a.ohr))
338
338
  console.log("User has access to this assessment.");
339
339
  else {
340
- if (Q.length === 0 && h.length === 0)
340
+ if (Q.length === 0 && f.length === 0)
341
341
  throw console.log("Both bands and exceptionOHR are empty. Access denied."), {
342
342
  response: {
343
343
  status: 424,
@@ -346,7 +346,7 @@ const Ms = /* @__PURE__ */ S(qs, [["__scopeId", "data-v-df62b92f"]]), O = (l) =>
346
346
  }
347
347
  }
348
348
  };
349
- if (Q.includes(pe) || h.includes(a == null ? void 0 : a.ohr))
349
+ if (Q.includes(pe) || f.includes(a == null ? void 0 : a.ohr))
350
350
  console.log("User has access to this assessment.");
351
351
  else
352
352
  throw console.log("User does not have access to this assessment."), {
@@ -379,7 +379,7 @@ const Ms = /* @__PURE__ */ S(qs, [["__scopeId", "data-v-df62b92f"]]), O = (l) =>
379
379
  _: 1
380
380
  }, 8, ["is-visible"]),
381
381
  s("div", null, [
382
- t.value ? (d(), Me(he, { key: 0 })) : (d(), p("main", Ls, [
382
+ t.value ? (d(), Me(fe, { key: 0 })) : (d(), p("main", Ls, [
383
383
  s("div", Ss, [
384
384
  b(Ne)
385
385
  ]),