@genpact/genome.mfe.mgtwin-app 1.1.303-alpha → 1.1.305-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-e9c9d4c6.mjs → ArrowLeftCircleIcon-8e05a4d2.mjs} +1 -1
  2. package/dist/{AssessmentAMA-bbea483a.mjs → AssessmentAMA-1d947501.mjs} +142 -142
  3. package/dist/{AssessmentSimulation-34e17614.mjs → AssessmentSimulation-6fd33bef.mjs} +5 -5
  4. package/dist/{EditSkillAdminData-2381ac43.mjs → EditSkillAdminData-759101d8.mjs} +3 -3
  5. package/dist/{EditSkillData-a3702a58.mjs → EditSkillData-08c0ebaa.mjs} +3 -3
  6. package/dist/{HomeView-7692d63b.mjs → HomeView-4beb8f56.mjs} +103 -103
  7. package/dist/{Loading-1ba4bf31.mjs → Loading-b38684f7.mjs} +1 -1
  8. package/dist/{LoadingSimulation-cd0573f3.mjs → LoadingSimulation-c8921b62.mjs} +1 -1
  9. package/dist/{Modal-9976c18b.mjs → Modal-5eb6615a.mjs} +1 -1
  10. package/dist/{PaperAirplaneIcon-199f413a.mjs → PaperAirplaneIcon-5d9a500d.mjs} +1 -1
  11. package/dist/{PromptTesting-187895e9.mjs → PromptTesting-b1d92b91.mjs} +3 -3
  12. package/dist/{SkillAutomation-efca6bd9.mjs → SkillAutomation-72c3505d.mjs} +3 -3
  13. package/dist/{SkillData-06d3225e.mjs → SkillData-f089dcb3.mjs} +3 -3
  14. package/dist/{Testcase-c381245c.mjs → Testcase-944e49bc.mjs} +3 -3
  15. package/dist/{UnderMaintenance-5080e7fc.mjs → UnderMaintenance-bd2c45ca.mjs} +1 -1
  16. package/dist/{_commonjsHelpers-2adab886.mjs → _commonjsHelpers-cd1100c7.mjs} +1 -1
  17. package/dist/{api-504bd72b.mjs → api-4ca74687.mjs} +1 -1
  18. package/dist/{main-8184eeb7.mjs → main-8df03f88.mjs} +1078 -1078
  19. package/dist/mgtwin.es.min.js +1 -1
  20. package/dist/mgtwin.umd.min.js +11 -11
  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-8184eeb7.mjs";
1
+ import { o as e, c as r, a } from "./main-8df03f88.mjs";
2
2
  function c(l, o) {
3
3
  return e(), r("svg", {
4
4
  xmlns: "http://www.w3.org/2000/svg",
@@ -1,16 +1,16 @@
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";
1
+ import { _ as me, a as he, L as fe } from "./LoadingSimulation-c8921b62.mjs";
2
+ import { _ as ge, Q as P, a as ve } from "./Modal-5eb6615a.mjs";
3
+ import { d as k, r as i, H as j, o as d, c as p, a as t, u as F, y as B, t as N, G as xe, p as G, g as V, C as D, z as ye, h as b, F as we, e as Ae, f as T, 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-8df03f88.mjs";
4
4
  import { _ as L } from "./_plugin-vue_export-helper-dad06003.mjs";
5
- import { p as ie, g as de } from "./api-504bd72b.mjs";
5
+ import { p as ie, g as de } from "./api-4ca74687.mjs";
6
6
  import "./loadernew-ac153a51.mjs";
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", {
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__ */ t("img", {
8
8
  class: "h-11 w-auto cursor-pointer",
9
- src: _e,
9
+ src: me,
10
10
  alt: "Genome Logo"
11
11
  }, null, -1), Ee = [
12
12
  Se
13
- ], Fe = ["href"], Ne = /* @__PURE__ */ s("img", {
13
+ ], Fe = ["href"], Ne = /* @__PURE__ */ t("img", {
14
14
  class: "h-9 w-28 cursor-pointer md:w-36",
15
15
  src: ge,
16
16
  alt: "Aiguru Logo"
@@ -19,35 +19,35 @@ const Ie = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#0
19
19
  ], Ce = /* @__PURE__ */ k({
20
20
  __name: "headerAMA",
21
21
  setup(l) {
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, _) => (d(), p("nav", Ie, [
24
- s("a", {
22
+ const s = i(""), n = i("");
23
+ return j === "prod" ? s.value = "https://genome.genpact.com" : s.value = "https://genome-dev.genpact.com", j === "prod" ? n.value = "https://genome.genpact.com/#aiguru" : n.value = "https://genome-dev.genpact.com/#aiguru", (a, m) => (d(), p("nav", Ie, [
24
+ t("a", {
25
25
  class: "px-2 md:px-0 lg:px-0",
26
- href: t.value,
26
+ href: s.value,
27
27
  target: "_blank"
28
28
  }, Ee, 8, Le),
29
- s("a", {
29
+ t("a", {
30
30
  class: "px-2 md:px-0 lg:px-0",
31
31
  href: n.value,
32
32
  target: "_blank"
33
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 = /* @__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({
36
+ }), Qe = { class: "flex items-end justify-start" }, Pe = { class: "fontFormattingAMA w-full bg-gray-100 rounded-lg" }, Te = { class: "w-full rounded-md px-3 py-2 text-lg font-bold text-black text-[18px] md:text-[22px]" }, je = /* @__PURE__ */ t("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), Be = /* @__PURE__ */ t("br", null, null, -1), Ue = /* @__PURE__ */ k({
37
37
  __name: "greetingsAMA",
38
38
  setup(l) {
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
- s("div", Qe, [
42
- s("div", Be, [
43
- s("div", Pe, N(a.value), 1),
44
- Te
39
+ const s = F(), n = ` Hi ${s.learnerName || "Expert"}, and welcome!`, a = B(() => n);
40
+ return B(() => s.welcomeMessage), (m, h) => (d(), p("section", null, [
41
+ t("div", Qe, [
42
+ t("div", Pe, [
43
+ t("div", Te, N(a.value), 1),
44
+ je
45
45
  ])
46
46
  ]),
47
- je
47
+ Be
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" }, Ge = ["innerHTML"], He = /* @__PURE__ */ k({
50
+ }), Ge = { class: "fontFormattingAMA flex items-end justify-start py-2" }, Ve = { class: "line-break w-full bg-gray-100 p-3 text-sm text-black md:text-[15px] rounded-lg" }, De = ["innerHTML"], He = /* @__PURE__ */ k({
51
51
  __name: "responseAMA",
52
52
  props: {
53
53
  answer: {
@@ -56,19 +56,19 @@ const Ie = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#0
56
56
  }
57
57
  },
58
58
  setup(l) {
59
- const t = l, n = j(() => {
60
- const a = t.answer.replace(/[*#]/g, "").replace(
59
+ const s = l, n = B(() => {
60
+ const a = s.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
- ), _ = /\[([^\]]+)\]\((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>`);
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>`);
65
65
  });
66
- return (a, _) => (d(), p("div", Ve, [
67
- s("div", De, [
68
- s("span", {
66
+ return (a, m) => (d(), p("div", Ge, [
67
+ t("div", Ve, [
68
+ t("span", {
69
69
  class: "fontFormattingAMA",
70
70
  innerHTML: n.value
71
- }, null, 8, Ge)
71
+ }, null, 8, De)
72
72
  ])
73
73
  ]));
74
74
  }
@@ -82,20 +82,20 @@ const Oe = /* @__PURE__ */ L(He, [["__scopeId", "data-v-38edcca6"]]), ze = { cla
82
82
  }
83
83
  },
84
84
  setup(l) {
85
- return (t, n) => (d(), p("div", ze, [
86
- s("div", Ye, [
87
- s("div", We, N(l.question), 1)
85
+ return (s, n) => (d(), p("div", ze, [
86
+ t("div", Ye, [
87
+ t("div", We, N(l.question), 1)
88
88
  ])
89
89
  ]));
90
90
  }
91
- }), Ke = (l) => (V("data-v-12a02acf"), l = l(), D(), l), Je = { class: "flex w-full flex-col items-start justify-start bg-white" }, Xe = { class: "bot-typing-animation gap-1" }, es = { class: "block w-full text-lg italic text-gray-800" }, ss = /* @__PURE__ */ Ke(() => /* @__PURE__ */ s("span", { class: "dot-animation" }, [
92
- /* @__PURE__ */ s("span", null, "."),
93
- /* @__PURE__ */ s("span", null, "."),
94
- /* @__PURE__ */ s("span", null, ".")
95
- ], -1)), ts = /* @__PURE__ */ xe('<div class="block w-full max-w-full items-stretch" data-v-12a02acf><div class="flex animate-pulse items-start justify-start space-x-4" data-v-12a02acf><div class="flex-1 space-y-6 py-1" data-v-12a02acf><div class="h-2 w-full rounded bg-gray-300" data-v-12a02acf></div><div class="space-y-3" data-v-12a02acf><div class="grid grid-cols-3 gap-4" data-v-12a02acf><div class="col-span-2 h-2 rounded bg-gray-300" data-v-12a02acf></div><div class="col-span-1 h-2 rounded bg-gray-300" data-v-12a02acf></div></div><div class="h-2 rounded bg-gray-300" data-v-12a02acf></div></div></div></div></div>', 1), as = /* @__PURE__ */ k({
91
+ }), Ke = (l) => (G("data-v-12a02acf"), l = l(), V(), l), Je = { class: "flex w-full flex-col items-start justify-start bg-white" }, Xe = { class: "bot-typing-animation gap-1" }, et = { class: "block w-full text-lg italic text-gray-800" }, tt = /* @__PURE__ */ Ke(() => /* @__PURE__ */ t("span", { class: "dot-animation" }, [
92
+ /* @__PURE__ */ t("span", null, "."),
93
+ /* @__PURE__ */ t("span", null, "."),
94
+ /* @__PURE__ */ t("span", null, ".")
95
+ ], -1)), st = /* @__PURE__ */ xe('<div class="block w-full max-w-full items-stretch" data-v-12a02acf><div class="flex animate-pulse items-start justify-start space-x-4" data-v-12a02acf><div class="flex-1 space-y-6 py-1" data-v-12a02acf><div class="h-2 w-full rounded bg-gray-300" data-v-12a02acf></div><div class="space-y-3" data-v-12a02acf><div class="grid grid-cols-3 gap-4" data-v-12a02acf><div class="col-span-2 h-2 rounded bg-gray-300" data-v-12a02acf></div><div class="col-span-1 h-2 rounded bg-gray-300" data-v-12a02acf></div></div><div class="h-2 rounded bg-gray-300" data-v-12a02acf></div></div></div></div></div>', 1), at = /* @__PURE__ */ k({
96
96
  __name: "LoadingResponseAMA",
97
97
  setup(l) {
98
- const t = i("Generating response"), n = i([
98
+ const s = i("Generating response"), n = i([
99
99
  "This may take a few seconds",
100
100
  "Fetching the best response for you",
101
101
  "Thinking... give me a moment",
@@ -106,26 +106,26 @@ const Oe = /* @__PURE__ */ L(He, [["__scopeId", "data-v-38edcca6"]]), ze = { cla
106
106
  ]);
107
107
  return setTimeout(() => {
108
108
  const a = Math.floor(Math.random() * n.value.length);
109
- t.value = n.value[a];
110
- }, 15e3), (a, _) => (d(), p("div", Je, [
111
- s("div", Xe, [
112
- s("div", es, N(t.value), 1),
113
- ss
109
+ s.value = n.value[a];
110
+ }, 15e3), (a, m) => (d(), p("div", Je, [
111
+ t("div", Xe, [
112
+ t("div", et, N(s.value), 1),
113
+ tt
114
114
  ]),
115
- ts
115
+ st
116
116
  ]));
117
117
  }
118
118
  });
119
- const os = /* @__PURE__ */ L(as, [["__scopeId", "data-v-12a02acf"]]), ns = { key: 0 }, rs = { key: 1 }, ls = {
119
+ const ot = /* @__PURE__ */ L(at, [["__scopeId", "data-v-12a02acf"]]), nt = { key: 0 }, rt = { key: 1 }, lt = {
120
120
  key: 0,
121
121
  class: "flex"
122
- }, cs = /* @__PURE__ */ k({
122
+ }, ct = /* @__PURE__ */ k({
123
123
  __name: "conversationAMA",
124
124
  setup(l) {
125
- let t = i(""), n = i("");
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 = F(), _ = i();
128
- return G(() => {
125
+ let s = i(""), n = i("");
126
+ s.value = '<a style="color:#00AECF;"', n.value = '<ul style="list-style: disc !important; margin-left: 3.5rem !important; padding: 0;"';
127
+ const a = F(), m = i();
128
+ return D(() => {
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,12 +135,12 @@ const os = /* @__PURE__ */ L(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: _,
138
+ ref: m,
139
139
  class: "smooth-scroll overflow-auto md:px-6 px-2"
140
140
  }, [
141
141
  b(Ue),
142
142
  (d(!0), p(we, null, Ae($(a).conversations, (o, f) => (d(), p("div", { key: f }, [
143
- o.question ? (d(), p("div", ns, [
143
+ o.question ? (d(), p("div", nt, [
144
144
  b(Ze, {
145
145
  question: o.question,
146
146
  c2question: o.c2question,
@@ -149,153 +149,153 @@ const os = /* @__PURE__ */ L(as, [["__scopeId", "data-v-12a02acf"]]), ns = { key
149
149
  name: "askQuestion",
150
150
  "que-id": f
151
151
  }, null, 8, ["question", "c2question", "show-feedback", "id", "que-id"])
152
- ])) : P("", !0),
153
- o.answer ? (d(), p("div", rs, [
152
+ ])) : T("", !0),
153
+ o.answer ? (d(), p("div", rt, [
154
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,
158
158
  questionId: o.id,
159
- answer: o.answer.replaceAll("<a", $(t)).replaceAll("<ul", $(n)),
159
+ answer: o.answer.replaceAll("<a", $(s)).replaceAll("<ul", $(n)),
160
160
  "show-feedback": o.showFeedback,
161
161
  "related-ques": o.relatedQues,
162
162
  "options-array": o.optionsArray,
163
163
  "ans-id": f
164
164
  }, null, 8, ["question", "c2question", "show-sources", "questionId", "answer", "show-feedback", "related-ques", "options-array", "ans-id"])
165
- ])) : P("", !0)
165
+ ])) : T("", !0)
166
166
  ]))), 128)),
167
- $(a).dotLoader ? (d(), p("div", ls, [
168
- b(os)
169
- ])) : P("", !0)
167
+ $(a).dotLoader ? (d(), p("div", lt, [
168
+ b(ot)
169
+ ])) : T("", !0)
170
170
  ], 512));
171
171
  }
172
172
  });
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
- gs
175
- ], xs = {
173
+ const it = /* @__PURE__ */ L(ct, [["__scopeId", "data-v-e6168dd4"]]), R = (l) => (G("data-v-bc70baaf"), l = l(), V(), l), dt = { class: "z-3 absolute bottom-0 mt-4 w-full bg-white px-2 md:px-6" }, ut = { class: "py-2" }, pt = { class: "flex" }, _t = { class: "z-1 relative w-full" }, mt = { class: "relative w-full" }, ht = { class: "absolute inset-y-0 right-0 flex items-center md:pr-8 pr-3" }, ft = { key: 0 }, gt = /* @__PURE__ */ R(() => /* @__PURE__ */ t("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)), vt = [
174
+ gt
175
+ ], xt = {
176
176
  key: 1,
177
177
  class: "tooltip"
178
- }, ys = /* @__PURE__ */ R(() => /* @__PURE__ */ s("span", { class: "tooltiptext fontFormattingAMA" }, "Waiting for response", -1)), ws = /* @__PURE__ */ R(() => /* @__PURE__ */ s("img", {
178
+ }, yt = /* @__PURE__ */ R(() => /* @__PURE__ */ t("span", { class: "tooltiptext fontFormattingAMA" }, "Waiting for response", -1)), wt = /* @__PURE__ */ R(() => /* @__PURE__ */ t("img", {
179
179
  class: "w-7 h-7",
180
180
  src: he,
181
181
  alt: "watingIcon"
182
- }, null, -1)), As = [
183
- ys,
184
- ws
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
- /* @__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
- ], -1)), qs = /* @__PURE__ */ k({
182
+ }, null, -1)), At = [
183
+ yt,
184
+ wt
185
+ ], bt = { class: "flex justify-start" }, $t = { class: "flex justify-start items-start text-[#161916]" }, kt = /* @__PURE__ */ R(() => /* @__PURE__ */ t("div", { class: "pt-1 text-start font-sans" }, [
186
+ /* @__PURE__ */ t("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
+ ], -1)), qt = /* @__PURE__ */ k({
188
188
  __name: "NewQuestionAMA",
189
189
  setup(l) {
190
- const t = F(), n = ue();
191
- t.question = "";
192
- const a = i(null), _ = i(!1), h = i(B), c = i(!1);
193
- G(() => {
190
+ const s = F(), n = ue();
191
+ s.question = "";
192
+ const a = i(null), m = i(!1), h = i(P), c = i(!1);
193
+ D(() => {
194
194
  a.value.focus();
195
195
  });
196
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, _.value = u >= B;
198
+ h.value = P - u, m.value = u >= P;
199
199
  }, S = async () => {
200
- var y, u, m, v, w, A;
200
+ var y, u, _, v, w, A;
201
201
  try {
202
- if (t.question.trim().length < 1) {
202
+ if (s.question.trim().length < 1) {
203
203
  n.setError("Please enter answer!");
204
204
  return;
205
205
  }
206
- if (t.amaQuestionsLeft <= 0) {
206
+ if (s.amaQuestionsLeft <= 0) {
207
207
  n.setError("You have exhausted your question limit!");
208
208
  return;
209
209
  }
210
- c.value = !0, t.dotLoader = !0;
210
+ c.value = !0, s.dotLoader = !0;
211
211
  const g = {
212
- question: t.question
212
+ question: s.question
213
213
  };
214
- t.conversations.push(g);
214
+ s.conversations.push(g);
215
215
  const r = i("");
216
- r.value = t.question, t.question = "";
216
+ r.value = s.question, s.question = "";
217
217
  const x = {
218
218
  amaId: f.value,
219
219
  amaCorpusId: O.value,
220
- past_messages: t.past_messages,
220
+ past_messages: s.past_messages,
221
221
  question: r.value,
222
- prompt: t.generatedPrompt
223
- }, M = await ie("/amaBotResponse", x);
222
+ prompt: s.generatedPrompt
223
+ }, M = await ie("/agenticRAG", 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 E = await ie("/amaBotResponse", x);
227
- t.addConversation((m = E.data) == null ? void 0 : m.body, "new");
226
+ const E = await ie("/agenticRAG", x);
227
+ s.addConversation((_ = E.data) == null ? void 0 : _.body, "new");
228
228
  } else
229
- t.addConversation((v = M.data) == null ? void 0 : v.body, "new");
230
- c.value = !1, t.dotLoader = !1;
229
+ s.addConversation((v = M.data) == null ? void 0 : v.body, "new");
230
+ c.value = !1, s.dotLoader = !1;
231
231
  } catch (g) {
232
- if (console.error(g), t.dotLoader = !1, c.value = !1, U.isAxiosError(g)) {
232
+ if (console.error(g), s.dotLoader = !1, c.value = !1, U.isAxiosError(g)) {
233
233
  const r = g;
234
234
  console.log("Error found!"), console.error((w = r.response) == null ? void 0 : w.data), n.setError(((A = r.response) == null ? void 0 : A.data).message);
235
235
  } else
236
236
  n.setError("There was an issue, please contact helpmate");
237
237
  }
238
238
  };
239
- return (y, u) => (d(), p("div", ds, [
240
- s("div", us, [
241
- s("div", ps, [
242
- s("div", ms, [
243
- s("div", _s, [
244
- s("div", hs, [
245
- c.value ? (d(), p("div", xs, As)) : (d(), p("div", fs, [
239
+ return (y, u) => (d(), p("div", dt, [
240
+ t("div", ut, [
241
+ t("div", pt, [
242
+ t("div", _t, [
243
+ t("div", mt, [
244
+ t("div", ht, [
245
+ c.value ? (d(), p("div", xt, At)) : (d(), p("div", ft, [
246
246
  (d(), p("svg", {
247
- onClick: u[0] || (u[0] = (m) => S()),
247
+ onClick: u[0] || (u[0] = (_) => 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",
251
251
  viewBox: "0 0 16 16"
252
- }, vs))
252
+ }, vt))
253
253
  ]))
254
254
  ]),
255
- s("div", bs, [
256
- be(s("input", {
255
+ t("div", bt, [
256
+ be(t("input", {
257
257
  onKeyup: [
258
- u[1] || (u[1] = ke((m) => c.value ? "" : S(), ["enter"])),
259
- u[3] || (u[3] = (m) => q($(t).question))
258
+ u[1] || (u[1] = ke((_) => c.value ? "" : S(), ["enter"])),
259
+ u[3] || (u[3] = (_) => q($(s).question))
260
260
  ],
261
- "onUpdate:modelValue": u[2] || (u[2] = (m) => $(t).question = m),
261
+ "onUpdate:modelValue": u[2] || (u[2] = (_) => $(s).question = _),
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",
265
265
  ref_key: "AiSearch",
266
266
  ref: a
267
267
  }, null, 544), [
268
- [$e, $(t).question]
268
+ [$e, $(s).question]
269
269
  ])
270
270
  ])
271
271
  ]),
272
- s("div", $s, N($(t).amaQuestionsLeft) + " questions remaining for the day ", 1),
273
- ks
272
+ t("div", $t, N($(s).amaQuestionsLeft) + " questions remaining for the day ", 1),
273
+ kt
274
274
  ])
275
275
  ])
276
276
  ])
277
277
  ]));
278
278
  }
279
279
  });
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
- /* @__PURE__ */ s("div", { class: "text-2xl font-[700]" }, "Assessment Access Required"),
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
- ], -1)), Ls = {
280
+ const Mt = /* @__PURE__ */ L(qt, [["__scopeId", "data-v-bc70baaf"]]), H = (l) => (G("data-v-263db3f3"), l = l(), V(), l), It = /* @__PURE__ */ H(() => /* @__PURE__ */ t("div", { class: "max-h-screen overflow-auto md:p-6 p-3 flex flex-col items-center justify-center gap-4 text-[#161916]" }, [
281
+ /* @__PURE__ */ t("div", { class: "text-2xl font-[700]" }, "Assessment Access Required"),
282
+ /* @__PURE__ */ t("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
+ ], -1)), Lt = {
284
284
  key: 1,
285
285
  className: "h-screen flex flex-col items-stretch"
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({
286
+ }, St = { class: "z-20" }, Et = /* @__PURE__ */ H(() => /* @__PURE__ */ t("div", { class: "mt-6" }, null, -1)), Ft = { class: "flex h-full items-stretch overflow-hidden" }, Nt = { class: "mx-auto w-11/12 bg-white" }, Rt = { class: "relative flex h-full w-full flex-col items-stretch overflow-hidden" }, Ct = /* @__PURE__ */ H(() => /* @__PURE__ */ t("div", { class: "mt-[160px]" }, null, -1)), Qt = { class: "relative" }, Pt = /* @__PURE__ */ k({
287
287
  __name: "AssessmentAMA",
288
288
  setup(l) {
289
- const t = i(!0), n = i(!1), a = F(), _ = ue(), h = i("");
289
+ const s = i(!0), n = i(!1), a = F(), m = ue(), h = i("");
290
290
  let c = "", o = "", f = "";
291
- const q = i(((m) => new URLSearchParams(window.location.search).get(m) || "")("amaId"));
291
+ const q = i(((_) => new URLSearchParams(window.location.search).get(_) || "")("amaId"));
292
292
  a.amaSkillId = q.value ?? "";
293
293
  const S = ["703331197", "703380812", "703331909", "703363051", "703319578"];
294
- G(async () => {
295
- t.value = !0, await y(), t.value = !1;
294
+ D(async () => {
295
+ s.value = !0, await y(), s.value = !1;
296
296
  });
297
297
  const y = async () => {
298
- var m, v, w, A, g;
298
+ var _, v, w, A, g;
299
299
  try {
300
300
  if (q.value === null)
301
301
  throw {
@@ -312,28 +312,28 @@ const Ms = /* @__PURE__ */ L(qs, [["__scopeId", "data-v-cf5c2d94"]]), H = (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) && ((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) {
315
+ if (console.error(r), s.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) {
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
- _.setError(((g = x.response) == null ? void 0 : g.data).message);
321
+ m.setError(((g = x.response) == null ? void 0 : g.data).message);
322
322
  } else
323
- _.setError("There was an issue, please contact helpmate");
323
+ m.setError("There was an issue, please contact helpmate");
324
324
  }
325
325
  }, u = async () => {
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;
326
+ var _, v, w, A, g, r, x, M, C, E, z, Y, W, Z, K, J, X, ee, te, se, ae, oe, ne, re, le, ce;
327
327
  console.log("Start getAssessmentDetails");
328
328
  try {
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}`;
329
+ j === "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 = (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;
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 = (E = (C = e == null ? void 0 : e.data) == null ? void 0 : C.data) == null ? void 0 : E.accessOhrList;
332
332
  const I = (Y = (z = e == null ? void 0 : e.data) == null ? void 0 : z.data) == null ? void 0 : Y.createdBy;
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);
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 = (se = (te = e == null ? void 0 : e.data) == null ? void 0 : te.data) == null ? void 0 : se.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((me) => me.trim());
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) || S.includes(a == null ? void 0 : a.ohr))
338
338
  console.log("User has access to this assessment.");
339
339
  else {
@@ -360,38 +360,38 @@ const Ms = /* @__PURE__ */ L(qs, [["__scopeId", "data-v-cf5c2d94"]]), H = (l) =>
360
360
  }
361
361
  console.log("end getAssessmentDetails");
362
362
  } catch (e) {
363
- if (console.error(e), t.value = !1, U.isAxiosError(e) && ((oe = e.response) != null && oe.status) || e && typeof e == "object" && "response" in e && e.response && typeof e.response == "object" && "status" in e.response && e.response.status) {
363
+ if (console.error(e), s.value = !1, U.isAxiosError(e) && ((oe = e.response) != null && oe.status) || e && typeof e == "object" && "response" in e && e.response && typeof e.response == "object" && "status" in e.response && e.response.status) {
364
364
  const I = e;
365
365
  if (console.log("Error found!"), console.error((ne = I.response) == null ? void 0 : ne.data), ((re = I.response) == null ? void 0 : re.status) === 424 || ((le = I.response) == null ? void 0 : le.status) === 425) {
366
366
  n.value = !0;
367
367
  return;
368
368
  }
369
- _.setError(((ce = I.response) == null ? void 0 : ce.data).message);
369
+ m.setError(((ce = I.response) == null ? void 0 : ce.data).message);
370
370
  } else
371
- _.setError("There was an issue, please contact helpmate");
371
+ m.setError("There was an issue, please contact helpmate");
372
372
  }
373
373
  };
374
- return (m, v) => (d(), p("section", null, [
374
+ return (_, v) => (d(), p("section", null, [
375
375
  b(ve, { "is-visible": n.value }, {
376
376
  default: qe(() => [
377
- Is
377
+ It
378
378
  ]),
379
379
  _: 1
380
380
  }, 8, ["is-visible"]),
381
- s("div", null, [
382
- t.value ? (d(), Me(fe, { key: 0 })) : (d(), p("main", Ls, [
383
- s("div", Ss, [
381
+ t("div", null, [
382
+ s.value ? (d(), Me(fe, { key: 0 })) : (d(), p("main", Lt, [
383
+ t("div", St, [
384
384
  b(Ce)
385
385
  ]),
386
- Es,
387
- s("div", Fs, [
388
- s("div", Ns, [
389
- s("div", Rs, [
390
- b(is),
391
- Cs
386
+ Et,
387
+ t("div", Ft, [
388
+ t("div", Nt, [
389
+ t("div", Rt, [
390
+ b(it),
391
+ Ct
392
392
  ]),
393
- s("div", Qs, [
394
- b(Ms)
393
+ t("div", Qt, [
394
+ b(Mt)
395
395
  ])
396
396
  ])
397
397
  ])
@@ -400,7 +400,7 @@ const Ms = /* @__PURE__ */ L(qs, [["__scopeId", "data-v-cf5c2d94"]]), H = (l) =>
400
400
  ]));
401
401
  }
402
402
  });
403
- const Gs = /* @__PURE__ */ L(Bs, [["__scopeId", "data-v-263db3f3"]]);
403
+ const Dt = /* @__PURE__ */ L(Pt, [["__scopeId", "data-v-263db3f3"]]);
404
404
  export {
405
- Gs as default
405
+ Dt as default
406
406
  };
@@ -1,8 +1,8 @@
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";
1
+ import { _ as Cl, a as ap, L as yl } from "./LoadingSimulation-c8921b62.mjs";
2
+ import { _ as Pl, a as cp, Q as jt, M as Ta } from "./Modal-5eb6615a.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-8df03f88.mjs";
4
+ import { g as Bn, p as Rt } from "./api-4ca74687.mjs";
5
+ import { c as q, a as Il, r as _l } from "./_commonjsHelpers-cd1100c7.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-8184eeb7.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-8df03f88.mjs";
2
2
  import { _ as j } from "./loadernew-ac153a51.mjs";
3
- import { p as B, g as Q } from "./api-504bd72b.mjs";
3
+ import { p as B, g as Q } from "./api-4ca74687.mjs";
4
4
  import { _ as X } from "./genome-Logo-white-ffcf2413.mjs";
5
- import { r as Z } from "./ArrowLeftCircleIcon-e9c9d4c6.mjs";
5
+ import { r as Z } from "./ArrowLeftCircleIcon-8e05a4d2.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-8184eeb7.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-8df03f88.mjs";
2
2
  import { _ as K } from "./loadernew-ac153a51.mjs";
3
- import { p as $ } from "./api-504bd72b.mjs";
3
+ import { p as $ } from "./api-4ca74687.mjs";
4
4
  import { _ as X } from "./genome-Logo-white-ffcf2413.mjs";
5
- import { r as Z } from "./ArrowLeftCircleIcon-e9c9d4c6.mjs";
5
+ import { r as Z } from "./ArrowLeftCircleIcon-8e05a4d2.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",