@genpact/genome.mfe.mgtwin-app 1.1.302-alpha → 1.1.303-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 (21) hide show
  1. package/dist/{ArrowLeftCircleIcon-7e2b4027.mjs → ArrowLeftCircleIcon-e9c9d4c6.mjs} +1 -1
  2. package/dist/{AssessmentAMA-2deebb42.mjs → AssessmentAMA-bbea483a.mjs} +76 -76
  3. package/dist/{AssessmentSimulation-8cefafd5.mjs → AssessmentSimulation-34e17614.mjs} +5 -5
  4. package/dist/{EditSkillAdminData-b0afd89e.mjs → EditSkillAdminData-2381ac43.mjs} +3 -3
  5. package/dist/{EditSkillData-ccf3724a.mjs → EditSkillData-a3702a58.mjs} +3 -3
  6. package/dist/{HomeView-bff6475c.mjs → HomeView-7692d63b.mjs} +5 -5
  7. package/dist/{Loading-8eb7a002.mjs → Loading-1ba4bf31.mjs} +1 -1
  8. package/dist/{LoadingSimulation-56921bf4.mjs → LoadingSimulation-cd0573f3.mjs} +1 -1
  9. package/dist/{Modal-95f5642e.mjs → Modal-9976c18b.mjs} +1 -1
  10. package/dist/{PaperAirplaneIcon-01e88008.mjs → PaperAirplaneIcon-199f413a.mjs} +1 -1
  11. package/dist/{PromptTesting-26bc6e2a.mjs → PromptTesting-187895e9.mjs} +3 -3
  12. package/dist/{SkillAutomation-c841a90a.mjs → SkillAutomation-efca6bd9.mjs} +3 -3
  13. package/dist/{SkillData-cabbc442.mjs → SkillData-06d3225e.mjs} +3 -3
  14. package/dist/{Testcase-6bbf66fa.mjs → Testcase-c381245c.mjs} +3 -3
  15. package/dist/{UnderMaintenance-e0deb490.mjs → UnderMaintenance-5080e7fc.mjs} +1 -1
  16. package/dist/{_commonjsHelpers-d87d7365.mjs → _commonjsHelpers-2adab886.mjs} +1 -1
  17. package/dist/{api-df9ffdfc.mjs → api-504bd72b.mjs} +1 -1
  18. package/dist/{main-09b2b572.mjs → main-8184eeb7.mjs} +478 -478
  19. package/dist/mgtwin.es.min.js +1 -1
  20. package/dist/mgtwin.umd.min.js +9 -9
  21. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { o as e, c as r, a } from "./main-09b2b572.mjs";
1
+ import { o as e, c as r, a } from "./main-8184eeb7.mjs";
2
2
  function c(l, o) {
3
3
  return e(), r("svg", {
4
4
  xmlns: "http://www.w3.org/2000/svg",
@@ -1,26 +1,26 @@
1
- import { _ as me, a as he, L as fe } from "./LoadingSimulation-56921bf4.mjs";
2
- import { _ as ge, Q as B, a as ve } from "./Modal-95f5642e.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-09b2b572.mjs";
4
- import { _ as S } from "./_plugin-vue_export-helper-dad06003.mjs";
5
- import { p as ie, g as de } from "./api-df9ffdfc.mjs";
1
+ import { _ as _e, a as he, L as fe } from "./LoadingSimulation-cd0573f3.mjs";
2
+ import { _ as ge, Q as B, a as ve } from "./Modal-9976c18b.mjs";
3
+ import { d as k, r as i, H as T, o as d, c as p, a as s, u as F, y as j, t as N, G as xe, p as V, g as D, C as G, 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-8184eeb7.mjs";
4
+ import { _ as L } from "./_plugin-vue_export-helper-dad06003.mjs";
5
+ import { p as ie, g as de } from "./api-504bd72b.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",
9
- src: me,
9
+ src: _e,
10
10
  alt: "Genome Logo"
11
11
  }, null, -1), Ee = [
12
12
  Se
13
- ], Fe = ["href"], Re = /* @__PURE__ */ s("img", {
13
+ ], Fe = ["href"], Ne = /* @__PURE__ */ s("img", {
14
14
  class: "h-9 w-28 cursor-pointer md:w-36",
15
15
  src: ge,
16
16
  alt: "Aiguru Logo"
17
- }, null, -1), Ce = [
18
- Re
19
- ], Ne = /* @__PURE__ */ k({
17
+ }, null, -1), Re = [
18
+ Ne
19
+ ], Ce = /* @__PURE__ */ k({
20
20
  __name: "headerAMA",
21
21
  setup(l) {
22
22
  const t = i(""), n = i("");
23
- return T === "prod" ? t.value = "https://genome.genpact.com" : t.value = "https://genome-dev.genpact.com", T === "prod" ? n.value = "https://genome.genpact.com/#aiguru" : n.value = "https://genome-dev.genpact.com/#aiguru", (a, m) => (d(), p("nav", Ie, [
23
+ return T === "prod" ? t.value = "https://genome.genpact.com" : t.value = "https://genome-dev.genpact.com", T === "prod" ? n.value = "https://genome.genpact.com/#aiguru" : n.value = "https://genome-dev.genpact.com/#aiguru", (a, _) => (d(), p("nav", Ie, [
24
24
  s("a", {
25
25
  class: "px-2 md:px-0 lg:px-0",
26
26
  href: t.value,
@@ -30,24 +30,24 @@ const Ie = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#0
30
30
  class: "px-2 md:px-0 lg:px-0",
31
31
  href: n.value,
32
32
  target: "_blank"
33
- }, Ce, 8, Fe)
33
+ }, Re, 8, Fe)
34
34
  ]));
35
35
  }
36
- }), Qe = { class: "flex items-end justify-start" }, Be = { class: "fontFormattingAMA w-full bg-gray-100 rounded-lg" }, Pe = { class: "w-full rounded-md px-3 py-2 text-lg font-bold text-black text-[18px] md:text-[22px]" }, Te = { class: "w-full px-3 py-2 text-base text-black text-[12px] md:text-[16px] font-[550]" }, je = /* @__PURE__ */ s("br", null, null, -1), Ue = /* @__PURE__ */ k({
36
+ }), Qe = { class: "flex items-end justify-start" }, Be = { class: "fontFormattingAMA w-full bg-gray-100 rounded-lg" }, Pe = { class: "w-full rounded-md px-3 py-2 text-lg font-bold text-black text-[18px] md:text-[22px]" }, Te = /* @__PURE__ */ s("div", { class: "w-full px-3 py-2 text-base text-black text-[12px] md:text-[16px] font-[550]" }, " Need help with a concept, information on Genpact offerings, productivity tips or Gen AI ideas - Ask me anything ", -1), je = /* @__PURE__ */ s("br", null, null, -1), Ue = /* @__PURE__ */ k({
37
37
  __name: "greetingsAMA",
38
38
  setup(l) {
39
- const t = R(), n = ` Hi ${t.learnerName || "Expert"}, and welcome!`, a = j(() => n), m = j(() => t.welcomeMessage);
40
- return (h, c) => (d(), p("section", null, [
39
+ const t = F(), n = ` Hi ${t.learnerName || "Expert"}, and welcome!`, a = j(() => n);
40
+ return j(() => t.welcomeMessage), (_, h) => (d(), p("section", null, [
41
41
  s("div", Qe, [
42
42
  s("div", Be, [
43
- s("div", Pe, L(a.value), 1),
44
- s("div", Te, L(m.value), 1)
43
+ s("div", Pe, N(a.value), 1),
44
+ Te
45
45
  ])
46
46
  ]),
47
47
  je
48
48
  ]));
49
49
  }
50
- }), Ve = { class: "fontFormattingAMA flex items-end justify-start py-2" }, De = { class: "line-break w-full bg-gray-100 p-3 text-sm text-black md:text-[15px] rounded-lg" }, He = ["innerHTML"], Oe = /* @__PURE__ */ k({
50
+ }), Ve = { class: "fontFormattingAMA flex items-end justify-start py-2" }, De = { class: "line-break w-full bg-gray-100 p-3 text-sm text-black md:text-[15px] rounded-lg" }, Ge = ["innerHTML"], He = /* @__PURE__ */ k({
51
51
  __name: "responseAMA",
52
52
  props: {
53
53
  answer: {
@@ -60,20 +60,20 @@ const Ie = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#0
60
60
  const a = t.answer.replace(/[*#]/g, "").replace(
61
61
  /Assessment Rating & Feedback/g,
62
62
  '<div style="font-size: 26px; font-weight: bold; text-decoration: underline;">Rating & Feedback</div>'
63
- ), m = /\[([^\]]+)\]\((https?:\/\/[^\s]+)\)/g;
64
- return a.replace(m, (h, c, o) => `<a href="${o}" target="_blank" rel="noopener noreferrer" style="color: blue; text-decoration: underline;">${c}</a>`);
63
+ ), _ = /\[([^\]]+)\]\((https?:\/\/[^\s]+)\)/g;
64
+ return a.replace(_, (h, c, o) => `<a href="${o}" target="_blank" rel="noopener noreferrer" style="color: blue; text-decoration: underline;">${c}</a>`);
65
65
  });
66
- return (a, m) => (d(), p("div", Ve, [
66
+ return (a, _) => (d(), p("div", Ve, [
67
67
  s("div", De, [
68
68
  s("span", {
69
69
  class: "fontFormattingAMA",
70
70
  innerHTML: n.value
71
- }, null, 8, He)
71
+ }, null, 8, Ge)
72
72
  ])
73
73
  ]));
74
74
  }
75
75
  });
76
- const ze = /* @__PURE__ */ S(Oe, [["__scopeId", "data-v-38edcca6"]]), Ge = { class: "flex justify-end items-end py-3" }, Ye = { class: "max-w-[80%]" }, We = { class: "w-fit md:text-[15px] fontFormattingAMA text-sm text-white bg-genpact-blue-box leading-6 p-3 rounded-lg" }, Ze = /* @__PURE__ */ k({
76
+ const Oe = /* @__PURE__ */ L(He, [["__scopeId", "data-v-38edcca6"]]), ze = { class: "flex justify-end items-end py-3" }, Ye = { class: "max-w-[80%]" }, We = { class: "w-fit md:text-[15px] fontFormattingAMA text-sm text-white bg-genpact-blue-box leading-6 p-3 rounded-lg" }, Ze = /* @__PURE__ */ k({
77
77
  __name: "learnerAMA",
78
78
  props: {
79
79
  question: {
@@ -82,9 +82,9 @@ const ze = /* @__PURE__ */ S(Oe, [["__scopeId", "data-v-38edcca6"]]), Ge = { cla
82
82
  }
83
83
  },
84
84
  setup(l) {
85
- return (t, n) => (d(), p("div", Ge, [
85
+ return (t, n) => (d(), p("div", ze, [
86
86
  s("div", Ye, [
87
- s("div", We, L(l.question), 1)
87
+ s("div", We, N(l.question), 1)
88
88
  ])
89
89
  ]));
90
90
  }
@@ -107,16 +107,16 @@ const ze = /* @__PURE__ */ S(Oe, [["__scopeId", "data-v-38edcca6"]]), Ge = { cla
107
107
  return setTimeout(() => {
108
108
  const a = Math.floor(Math.random() * n.value.length);
109
109
  t.value = n.value[a];
110
- }, 15e3), (a, m) => (d(), p("div", Je, [
110
+ }, 15e3), (a, _) => (d(), p("div", Je, [
111
111
  s("div", Xe, [
112
- s("div", es, L(t.value), 1),
112
+ s("div", es, N(t.value), 1),
113
113
  ss
114
114
  ]),
115
115
  ts
116
116
  ]));
117
117
  }
118
118
  });
119
- const os = /* @__PURE__ */ S(as, [["__scopeId", "data-v-12a02acf"]]), ns = { key: 0 }, rs = { key: 1 }, ls = {
119
+ const os = /* @__PURE__ */ L(as, [["__scopeId", "data-v-12a02acf"]]), ns = { key: 0 }, rs = { key: 1 }, ls = {
120
120
  key: 0,
121
121
  class: "flex"
122
122
  }, cs = /* @__PURE__ */ k({
@@ -124,8 +124,8 @@ const os = /* @__PURE__ */ S(as, [["__scopeId", "data-v-12a02acf"]]), ns = { key
124
124
  setup(l) {
125
125
  let t = i(""), n = i("");
126
126
  t.value = '<a style="color:#00AECF;"', n.value = '<ul style="list-style: disc !important; margin-left: 3.5rem !important; padding: 0;"';
127
- const a = R(), m = i();
128
- return H(() => {
127
+ const a = F(), _ = i();
128
+ return G(() => {
129
129
  var o;
130
130
  const h = document.getElementsByName("askQuestion"), c = Array.from(h);
131
131
  h.length && ((o = c == null ? void 0 : c.pop()) == null || o.scrollIntoView({ behavior: "smooth", block: "center" }));
@@ -135,7 +135,7 @@ const os = /* @__PURE__ */ S(as, [["__scopeId", "data-v-12a02acf"]]), ns = { key
135
135
  h.length && ((o = c == null ? void 0 : c.pop()) == null || o.scrollIntoView({ behavior: "smooth", block: "center" }));
136
136
  }), (h, c) => (d(), p("div", {
137
137
  ref_key: "nestedElement",
138
- ref: m,
138
+ ref: _,
139
139
  class: "smooth-scroll overflow-auto md:px-6 px-2"
140
140
  }, [
141
141
  b(Ue),
@@ -151,7 +151,7 @@ const os = /* @__PURE__ */ S(as, [["__scopeId", "data-v-12a02acf"]]), ns = { key
151
151
  }, null, 8, ["question", "c2question", "show-feedback", "id", "que-id"])
152
152
  ])) : P("", !0),
153
153
  o.answer ? (d(), p("div", rs, [
154
- b(ze, {
154
+ b(Oe, {
155
155
  question: o == null ? void 0 : o.question,
156
156
  c2question: o == null ? void 0 : o.c2question,
157
157
  "show-sources": o == null ? void 0 : o.showSources,
@@ -170,34 +170,34 @@ 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-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 = [
173
+ const is = /* @__PURE__ */ L(cs, [["__scopeId", "data-v-e6168dd4"]]), R = (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" }, ms = { class: "z-1 relative w-full" }, _s = { 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__ */ R(() => /* @__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
- }, ys = /* @__PURE__ */ C(() => /* @__PURE__ */ s("span", { class: "tooltiptext fontFormattingAMA" }, "Waiting for response", -1)), ws = /* @__PURE__ */ C(() => /* @__PURE__ */ s("img", {
178
+ }, ys = /* @__PURE__ */ R(() => /* @__PURE__ */ s("span", { class: "tooltiptext fontFormattingAMA" }, "Waiting for response", -1)), ws = /* @__PURE__ */ R(() => /* @__PURE__ */ s("img", {
179
179
  class: "w-7 h-7",
180
180
  src: he,
181
181
  alt: "watingIcon"
182
182
  }, null, -1)), As = [
183
183
  ys,
184
184
  ws
185
- ], bs = { class: "flex justify-start" }, $s = { class: "flex justify-start items-start text-[#161916]" }, ks = /* @__PURE__ */ C(() => /* @__PURE__ */ s("div", { class: "pt-1 text-start font-sans" }, [
185
+ ], bs = { class: "flex justify-start" }, $s = { class: "flex justify-start items-start text-[#161916]" }, ks = /* @__PURE__ */ R(() => /* @__PURE__ */ s("div", { class: "pt-1 text-start font-sans" }, [
186
186
  /* @__PURE__ */ s("div", { class: "text-xs font-bold text-gray-500 md:text-sm" }, " Note: AI-generated response may not be fully accurate; check with experts for critical information. ")
187
187
  ], -1)), qs = /* @__PURE__ */ k({
188
188
  __name: "NewQuestionAMA",
189
189
  setup(l) {
190
- const t = R(), n = ue();
190
+ const t = F(), n = ue();
191
191
  t.question = "";
192
- const a = i(null), m = i(!1), h = i(B), c = i(!1);
193
- H(() => {
192
+ const a = i(null), _ = i(!1), h = i(B), c = i(!1);
193
+ G(() => {
194
194
  a.value.focus();
195
195
  });
196
- const o = (y) => new URLSearchParams(window.location.search).get(y) || "", f = i(o("amaId")), z = i(o("corpusId")), q = (y) => {
196
+ const o = (y) => new URLSearchParams(window.location.search).get(y) || "", f = i(o("amaId")), O = i(o("corpusId")), q = (y) => {
197
197
  const u = y.length;
198
- h.value = B - u, m.value = u >= B;
199
- }, E = async () => {
200
- var y, u, _, v, w, A;
198
+ h.value = B - u, _.value = u >= B;
199
+ }, S = async () => {
200
+ var y, u, m, v, w, A;
201
201
  try {
202
202
  if (t.question.trim().length < 1) {
203
203
  n.setError("Please enter answer!");
@@ -216,15 +216,15 @@ const is = /* @__PURE__ */ S(cs, [["__scopeId", "data-v-e6168dd4"]]), C = (l) =>
216
216
  r.value = t.question, t.question = "";
217
217
  const x = {
218
218
  amaId: f.value,
219
- amaCorpusId: z.value,
219
+ amaCorpusId: O.value,
220
220
  past_messages: t.past_messages,
221
221
  question: r.value,
222
222
  prompt: t.generatedPrompt
223
223
  }, M = await ie("/amaBotResponse", x);
224
224
  if (((u = (y = M == null ? void 0 : M.data) == null ? void 0 : y.body) == null ? void 0 : u.answer) === "") {
225
225
  console.log("in the if case calling api again");
226
- const F = await ie("/amaBotResponse", x);
227
- t.addConversation((_ = F.data) == null ? void 0 : _.body, "new");
226
+ const E = await ie("/amaBotResponse", x);
227
+ t.addConversation((m = E.data) == null ? void 0 : m.body, "new");
228
228
  } else
229
229
  t.addConversation((v = M.data) == null ? void 0 : v.body, "new");
230
230
  c.value = !1, t.dotLoader = !1;
@@ -239,12 +239,12 @@ const is = /* @__PURE__ */ S(cs, [["__scopeId", "data-v-e6168dd4"]]), C = (l) =>
239
239
  return (y, u) => (d(), p("div", ds, [
240
240
  s("div", us, [
241
241
  s("div", ps, [
242
- s("div", _s, [
243
- s("div", ms, [
242
+ s("div", ms, [
243
+ s("div", _s, [
244
244
  s("div", hs, [
245
245
  c.value ? (d(), p("div", xs, As)) : (d(), p("div", fs, [
246
246
  (d(), p("svg", {
247
- onClick: u[0] || (u[0] = (_) => E()),
247
+ onClick: u[0] || (u[0] = (m) => S()),
248
248
  xmlns: "http://www.w3.org/2000/svg",
249
249
  fill: "currentColor",
250
250
  class: "bi bi-send ml-2 h-7 w-7 rotate-45 rounded",
@@ -255,10 +255,10 @@ const is = /* @__PURE__ */ S(cs, [["__scopeId", "data-v-e6168dd4"]]), C = (l) =>
255
255
  s("div", bs, [
256
256
  be(s("input", {
257
257
  onKeyup: [
258
- u[1] || (u[1] = ke((_) => c.value ? "" : E(), ["enter"])),
259
- u[3] || (u[3] = (_) => q($(t).question))
258
+ u[1] || (u[1] = ke((m) => c.value ? "" : S(), ["enter"])),
259
+ u[3] || (u[3] = (m) => q($(t).question))
260
260
  ],
261
- "onUpdate:modelValue": u[2] || (u[2] = (_) => $(t).question = _),
261
+ "onUpdate:modelValue": u[2] || (u[2] = (m) => $(t).question = m),
262
262
  class: "fontFormattingAMA rounded-lg flex w-full border border-genpact-darkest-teal py-[18px] pl-[30px] pr-[70px]",
263
263
  placeholder: "Write your answer here...",
264
264
  type: "text",
@@ -269,7 +269,7 @@ const is = /* @__PURE__ */ S(cs, [["__scopeId", "data-v-e6168dd4"]]), C = (l) =>
269
269
  ])
270
270
  ])
271
271
  ]),
272
- s("div", $s, L($(t).amaQuestionsLeft) + " questions remaining for the day ", 1),
272
+ s("div", $s, N($(t).amaQuestionsLeft) + " questions remaining for the day ", 1),
273
273
  ks
274
274
  ])
275
275
  ])
@@ -277,25 +277,25 @@ 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-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]" }, [
280
+ const Ms = /* @__PURE__ */ L(qs, [["__scopeId", "data-v-cf5c2d94"]]), H = (l) => (V("data-v-263db3f3"), l = l(), D(), l), Is = /* @__PURE__ */ H(() => /* @__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 = {
284
284
  key: 1,
285
285
  className: "h-screen flex flex-col items-stretch"
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({
286
+ }, Ss = { class: "z-20" }, Es = /* @__PURE__ */ H(() => /* @__PURE__ */ s("div", { class: "mt-6" }, null, -1)), Fs = { class: "flex h-full items-stretch overflow-hidden" }, Ns = { class: "mx-auto w-11/12 bg-white" }, Rs = { class: "relative flex h-full w-full flex-col items-stretch overflow-hidden" }, Cs = /* @__PURE__ */ H(() => /* @__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(), h = i("");
289
+ const t = i(!0), n = i(!1), a = F(), _ = ue(), h = i("");
290
290
  let c = "", o = "", f = "";
291
- const q = i(((_) => new URLSearchParams(window.location.search).get(_) || "")("amaId"));
291
+ const q = i(((m) => new URLSearchParams(window.location.search).get(m) || "")("amaId"));
292
292
  a.amaSkillId = q.value ?? "";
293
- const E = ["703331197", "703380812", "703331909", "703363051", "703319578"];
294
- H(async () => {
293
+ const S = ["703331197", "703380812", "703331909", "703363051", "703319578"];
294
+ G(async () => {
295
295
  t.value = !0, await y(), t.value = !1;
296
296
  });
297
297
  const y = async () => {
298
- var _, v, w, A, g;
298
+ var m, v, w, A, g;
299
299
  try {
300
300
  if (q.value === null)
301
301
  throw {
@@ -312,29 +312,29 @@ const Ms = /* @__PURE__ */ S(qs, [["__scopeId", "data-v-cf5c2d94"]]), O = (l) =>
312
312
  );
313
313
  a.initialize(r.data), await u();
314
314
  } catch (r) {
315
- if (console.error(r), t.value = !1, U.isAxiosError(r) && ((_ = r.response) != null && _.status) || r && typeof r == "object" && "response" in r && r.response && typeof r.response == "object" && "status" in r.response && r.response.status) {
315
+ if (console.error(r), t.value = !1, U.isAxiosError(r) && ((m = r.response) != null && m.status) || r && typeof r == "object" && "response" in r && r.response && typeof r.response == "object" && "status" in r.response && r.response.status) {
316
316
  const x = r;
317
317
  if (console.log("Error found!"), console.error((v = x.response) == null ? void 0 : v.data), ((w = x.response) == null ? void 0 : w.status) === 424 || ((A = x.response) == null ? void 0 : A.status) === 425) {
318
318
  n.value = !0;
319
319
  return;
320
320
  }
321
- m.setError(((g = x.response) == null ? void 0 : g.data).message);
321
+ _.setError(((g = x.response) == null ? void 0 : g.data).message);
322
322
  } else
323
- m.setError("There was an issue, please contact helpmate");
323
+ _.setError("There was an issue, please contact helpmate");
324
324
  }
325
325
  }, u = async () => {
326
- var _, v, w, A, g, r, x, M, N, F, G, Y, W, Z, K, J, X, ee, se, te, ae, oe, ne, re, le, ce;
326
+ var m, v, w, A, g, r, x, M, C, E, z, Y, W, Z, K, J, X, ee, se, te, ae, oe, ne, re, le, ce;
327
327
  console.log("Start getAssessmentDetails");
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), 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
- const I = (Y = (G = e == null ? void 0 : e.data) == null ? void 0 : G.data) == null ? void 0 : Y.createdBy;
331
+ console.log("response from GetAMA", e), h.value = (v = (m = e == null ? void 0 : e.data) == null ? void 0 : m.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 = (E = (C = e == null ? void 0 : e.data) == null ? void 0 : C.data) == null ? void 0 : E.accessOhrList;
332
+ const I = (Y = (z = e == null ? void 0 : e.data) == null ? void 0 : z.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
335
  console.log("accessBand , accessOhrList====>", o, f);
336
- const Q = (ae = o == null ? void 0 : o.split(",")) == null ? void 0 : ae.map((_e) => _e.trim());
337
- if (console.log("bands ,====>", Q), I === (a == null ? void 0 : a.ohr) || E.includes(a == null ? void 0 : a.ohr))
336
+ const Q = (ae = o == null ? void 0 : o.split(",")) == null ? void 0 : ae.map((me) => me.trim());
337
+ if (console.log("bands ,====>", Q), I === (a == null ? void 0 : a.ohr) || S.includes(a == null ? void 0 : a.ohr))
338
338
  console.log("User has access to this assessment.");
339
339
  else {
340
340
  if (Q.length === 0 && f.length === 0)
@@ -366,12 +366,12 @@ const Ms = /* @__PURE__ */ S(qs, [["__scopeId", "data-v-cf5c2d94"]]), O = (l) =>
366
366
  n.value = !0;
367
367
  return;
368
368
  }
369
- m.setError(((ce = I.response) == null ? void 0 : ce.data).message);
369
+ _.setError(((ce = I.response) == null ? void 0 : ce.data).message);
370
370
  } else
371
- m.setError("There was an issue, please contact helpmate");
371
+ _.setError("There was an issue, please contact helpmate");
372
372
  }
373
373
  };
374
- return (_, v) => (d(), p("section", null, [
374
+ return (m, v) => (d(), p("section", null, [
375
375
  b(ve, { "is-visible": n.value }, {
376
376
  default: qe(() => [
377
377
  Is
@@ -381,14 +381,14 @@ const Ms = /* @__PURE__ */ S(qs, [["__scopeId", "data-v-cf5c2d94"]]), O = (l) =>
381
381
  s("div", null, [
382
382
  t.value ? (d(), Me(fe, { key: 0 })) : (d(), p("main", Ls, [
383
383
  s("div", Ss, [
384
- b(Ne)
384
+ b(Ce)
385
385
  ]),
386
386
  Es,
387
387
  s("div", Fs, [
388
- s("div", Rs, [
389
- s("div", Cs, [
388
+ s("div", Ns, [
389
+ s("div", Rs, [
390
390
  b(is),
391
- Ns
391
+ Cs
392
392
  ]),
393
393
  s("div", Qs, [
394
394
  b(Ms)
@@ -400,7 +400,7 @@ const Ms = /* @__PURE__ */ S(qs, [["__scopeId", "data-v-cf5c2d94"]]), O = (l) =>
400
400
  ]));
401
401
  }
402
402
  });
403
- const Hs = /* @__PURE__ */ S(Bs, [["__scopeId", "data-v-263db3f3"]]);
403
+ const Gs = /* @__PURE__ */ L(Bs, [["__scopeId", "data-v-263db3f3"]]);
404
404
  export {
405
- Hs as default
405
+ Gs as default
406
406
  };
@@ -1,8 +1,8 @@
1
- import { _ as Cl, a as ap, L as yl } from "./LoadingSimulation-56921bf4.mjs";
2
- import { _ as Pl, a as cp, Q as jt, M as Ta } from "./Modal-95f5642e.mjs";
3
- import { d as Ae, r as T, H as Pt, o as D, c as k, a as P, k as wt, u as De, C as Wt, q as Ee, y as qo, h as Ce, s as up, t as Ge, b as O, f as ye, i as ge, I as Ji, F as Fo, e as Uo, w as Zo, J as Rl, p as Vn, g as $n, G as Zi, z as El, K as wl, n as Lt, m as pp, L as dp, l as Al } from "./main-09b2b572.mjs";
4
- import { g as Bn, p as Rt } from "./api-df9ffdfc.mjs";
5
- import { c as q, a as Il, r as _l } from "./_commonjsHelpers-d87d7365.mjs";
1
+ import { _ as Cl, a as ap, L as yl } from "./LoadingSimulation-cd0573f3.mjs";
2
+ import { _ as Pl, a as cp, Q as jt, M as Ta } from "./Modal-9976c18b.mjs";
3
+ import { d as Ae, r as T, H as Pt, o as D, c as k, a as P, k as wt, u as De, C as Wt, q as Ee, y as qo, h as Ce, s as up, t as Ge, b as O, f as ye, i as ge, I as Ji, F as Fo, e as Uo, w as Zo, J as Rl, p as Vn, g as $n, G as Zi, z as El, K as wl, n as Lt, m as pp, L as dp, l as Al } from "./main-8184eeb7.mjs";
4
+ import { g as Bn, p as Rt } from "./api-504bd72b.mjs";
5
+ import { c as q, a as Il, r as _l } from "./_commonjsHelpers-2adab886.mjs";
6
6
  import { _ as Vt } from "./_plugin-vue_export-helper-dad06003.mjs";
7
7
  import "./loadernew-ac153a51.mjs";
8
8
  const Tl = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#021c42] md:pr-6 lg:pr-6" }, bl = ["href"], Ml = /* @__PURE__ */ P("img", {
@@ -1,8 +1,8 @@
1
- import { d as G, M as z, o as n, c as d, a as e, h as L, b as c, u as H, k as O, r, w as h, m as k, n as S, v as $, F as q, e as P, t as b, q as D, D as T, p as Y, g as J, i as F } from "./main-09b2b572.mjs";
1
+ import { d as G, M as z, o as n, c as d, a as e, h as L, b as c, u as H, k as O, r, w as h, m as k, n as S, v as $, F as q, e as P, t as b, q as D, D as T, p as Y, g as J, i as F } from "./main-8184eeb7.mjs";
2
2
  import { _ as j } from "./loadernew-ac153a51.mjs";
3
- import { p as B, g as Q } from "./api-df9ffdfc.mjs";
3
+ import { p as B, g as Q } from "./api-504bd72b.mjs";
4
4
  import { _ as X } from "./genome-Logo-white-ffcf2413.mjs";
5
- import { r as Z } from "./ArrowLeftCircleIcon-7e2b4027.mjs";
5
+ import { r as Z } from "./ArrowLeftCircleIcon-e9c9d4c6.mjs";
6
6
  import { _ as ee } from "./_plugin-vue_export-helper-dad06003.mjs";
7
7
  const te = { className: "flex justify-between items-center gap-4 h-14" }, se = /* @__PURE__ */ e("div", { class: "font-bold text-base md:text-xl" }, "Back", -1), oe = /* @__PURE__ */ e("div", { class: "text-white font-bold md:text-xl text-base" }, "AI Guru Edit Skill Admin Data", -1), le = /* @__PURE__ */ e("img", {
8
8
  class: "md:w-36 w-20",
@@ -1,8 +1,8 @@
1
- import { d as j, M as W, o as r, c, a as e, h as q, b as a, K as G, u as z, k as P, r as i, w as y, m as k, n as S, f as g, F as A, e as H, v as O, t as x, q as B, D as Y, p as J, g as Q, i as D } from "./main-09b2b572.mjs";
1
+ import { d as j, M as W, o as r, c, a as e, h as q, b as a, K as G, u as z, k as P, r as i, w as y, m as k, n as S, f as g, F as A, e as H, v as O, t as x, q as B, D as Y, p as J, g as Q, i as D } from "./main-8184eeb7.mjs";
2
2
  import { _ as K } from "./loadernew-ac153a51.mjs";
3
- import { p as $ } from "./api-df9ffdfc.mjs";
3
+ import { p as $ } from "./api-504bd72b.mjs";
4
4
  import { _ as X } from "./genome-Logo-white-ffcf2413.mjs";
5
- import { r as Z } from "./ArrowLeftCircleIcon-7e2b4027.mjs";
5
+ import { r as Z } from "./ArrowLeftCircleIcon-e9c9d4c6.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",