@genpact/genome.mfe.mgtwin-app 1.1.309-alpha → 1.1.311-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-8a13f362.mjs → ArrowLeftCircleIcon-5d3ac10e.mjs} +1 -1
  2. package/dist/{AssessmentAMA-1f022c01.mjs → AssessmentAMA-7dbd0987.mjs} +169 -176
  3. package/dist/{AssessmentSimulation-973132a5.mjs → AssessmentSimulation-9e0c78c9.mjs} +5 -5
  4. package/dist/{EditSkillAdminData-2335ec46.mjs → EditSkillAdminData-a315c42b.mjs} +3 -3
  5. package/dist/{EditSkillData-fa8d055a.mjs → EditSkillData-3adb9c25.mjs} +3 -3
  6. package/dist/{HomeView-298e7b79.mjs → HomeView-1403e99e.mjs} +5 -5
  7. package/dist/{Loading-c55ed87d.mjs → Loading-55c1b179.mjs} +1 -1
  8. package/dist/{LoadingSimulation-f208b0ac.mjs → LoadingSimulation-eb991eab.mjs} +1 -1
  9. package/dist/{Modal-05b123c8.mjs → Modal-6063cc76.mjs} +1 -1
  10. package/dist/{PaperAirplaneIcon-bb91eb02.mjs → PaperAirplaneIcon-35eb2c6d.mjs} +1 -1
  11. package/dist/{PromptTesting-7fc93002.mjs → PromptTesting-b8e80b97.mjs} +3 -3
  12. package/dist/{SkillAutomation-71625668.mjs → SkillAutomation-c04a74bd.mjs} +3 -3
  13. package/dist/{SkillData-76e40ece.mjs → SkillData-dc571aff.mjs} +3 -3
  14. package/dist/{Testcase-5dda1793.mjs → Testcase-1b11356a.mjs} +3 -3
  15. package/dist/{UnderMaintenance-db708890.mjs → UnderMaintenance-f5dcb753.mjs} +1 -1
  16. package/dist/{_commonjsHelpers-b8337805.mjs → _commonjsHelpers-3c08efdf.mjs} +1 -1
  17. package/dist/{api-b391c57e.mjs → api-c764c078.mjs} +1 -1
  18. package/dist/{main-ef59e3b2.mjs → main-de91403a.mjs} +1778 -1778
  19. package/dist/mgtwin.es.min.js +1 -1
  20. package/dist/mgtwin.umd.min.js +13 -13
  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-ef59e3b2.mjs";
1
+ import { o as e, c as r, a } from "./main-de91403a.mjs";
2
2
  function c(l, o) {
3
3
  return e(), r("svg", {
4
4
  xmlns: "http://www.w3.org/2000/svg",
@@ -1,53 +1,53 @@
1
- import { _ as j, a as B, L as G } from "./LoadingSimulation-f208b0ac.mjs";
2
- import { _ as V, Q as M, a as U } from "./Modal-05b123c8.mjs";
3
- import { d as k, r as _, H as C, o as n, c, a as e, u as A, y as q, t as L, G as D, p as E, g as N, C as T, z as H, h as b, F as z, e as O, f as S, b as x, k as R, w as W, m as Z, L as K, q as I, s as Y, l as J } from "./main-ef59e3b2.mjs";
4
- import { _ as w } from "./_plugin-vue_export-helper-dad06003.mjs";
5
- import { g as X } from "./api-b391c57e.mjs";
1
+ import { _ as F, a as Q, L as j } from "./LoadingSimulation-eb991eab.mjs";
2
+ import { _ as B, Q as M, a as G } from "./Modal-6063cc76.mjs";
3
+ import { d as b, r as _, H as P, o as r, c as d, a as s, u as w, y as C, t as q, G as V, p as I, g as L, C as E, z as U, h as k, F as D, e as H, f as S, b as v, k as T, w as z, m as O, L as W, q as R, s as Z, l as K } from "./main-de91403a.mjs";
4
+ import { _ as y } from "./_plugin-vue_export-helper-dad06003.mjs";
5
+ import { p as Y, g as J } from "./api-c764c078.mjs";
6
6
  import "./loadernew-ac153a51.mjs";
7
- const ee = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#021c42] md:pr-6 lg:pr-6" }, se = ["href"], ae = /* @__PURE__ */ e("img", {
7
+ const X = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#021c42] md:pr-6 lg:pr-6" }, ee = ["href"], se = /* @__PURE__ */ s("img", {
8
8
  class: "h-11 w-auto cursor-pointer",
9
- src: j,
9
+ src: F,
10
10
  alt: "Genome Logo"
11
- }, null, -1), te = [
12
- ae
13
- ], le = ["href"], ie = /* @__PURE__ */ e("img", {
11
+ }, null, -1), ae = [
12
+ se
13
+ ], te = ["href"], le = /* @__PURE__ */ s("img", {
14
14
  class: "h-9 w-28 cursor-pointer md:w-36",
15
- src: V,
15
+ src: B,
16
16
  alt: "Aiguru Logo"
17
- }, null, -1), oe = [
18
- ie
19
- ], ne = /* @__PURE__ */ k({
17
+ }, null, -1), ie = [
18
+ le
19
+ ], oe = /* @__PURE__ */ b({
20
20
  __name: "headerAMA",
21
21
  setup(t) {
22
- const s = _(""), l = _("");
23
- return C === "prod" ? s.value = "https://genome.genpact.com" : s.value = "https://genome-dev.genpact.com", C === "prod" ? l.value = "https://genome.genpact.com/#aiguru" : l.value = "https://genome-dev.genpact.com/#aiguru", (o, u) => (n(), c("nav", ee, [
24
- e("a", {
22
+ const e = _(""), l = _("");
23
+ return P === "prod" ? e.value = "https://genome.genpact.com" : e.value = "https://genome-dev.genpact.com", P === "prod" ? l.value = "https://genome.genpact.com/#aiguru" : l.value = "https://genome-dev.genpact.com/#aiguru", (o, m) => (r(), d("nav", X, [
24
+ s("a", {
25
25
  class: "px-2 md:px-0 lg:px-0",
26
- href: s.value,
26
+ href: e.value,
27
27
  target: "_blank"
28
- }, te, 8, se),
29
- e("a", {
28
+ }, ae, 8, ee),
29
+ s("a", {
30
30
  class: "px-2 md:px-0 lg:px-0",
31
31
  href: l.value,
32
32
  target: "_blank"
33
- }, oe, 8, le)
33
+ }, ie, 8, te)
34
34
  ]));
35
35
  }
36
- }), re = { class: "flex items-end justify-start" }, ce = { class: "fontFormattingAMA w-full bg-gray-100 rounded-lg" }, de = { class: "w-full rounded-md px-3 py-2 text-lg font-bold text-black text-[18px] md:text-[22px]" }, _e = /* @__PURE__ */ e("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), ue = /* @__PURE__ */ e("br", null, null, -1), me = /* @__PURE__ */ k({
36
+ }), ne = { class: "flex items-end justify-start" }, re = { class: "fontFormattingAMA w-full bg-gray-100 rounded-lg" }, ce = { class: "w-full rounded-md px-3 py-2 text-lg font-bold text-black text-[18px] md:text-[22px]" }, de = /* @__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), _e = /* @__PURE__ */ s("br", null, null, -1), ue = /* @__PURE__ */ b({
37
37
  __name: "greetingsAMA",
38
38
  setup(t) {
39
- const s = A(), l = ` Hi ${s.learnerName || "Expert"}, and welcome to ${s.amaSkillName || "SkillName"} !`, o = q(() => l);
40
- return q(() => s.welcomeMessage), (u, f) => (n(), c("section", null, [
41
- e("div", re, [
42
- e("div", ce, [
43
- e("div", de, L(o.value), 1),
44
- _e
39
+ const e = w(), l = ` Hi ${e.learnerName || "Expert"}, and welcome to ${e.amaSkillName || "SkillName"} !`, o = C(() => l);
40
+ return C(() => e.welcomeMessage), (m, f) => (r(), d("section", null, [
41
+ s("div", ne, [
42
+ s("div", re, [
43
+ s("div", ce, q(o.value), 1),
44
+ de
45
45
  ])
46
46
  ]),
47
- ue
47
+ _e
48
48
  ]));
49
49
  }
50
- }), fe = { class: "fontFormattingAMA flex items-end justify-start py-2" }, pe = { 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
+ }), me = { class: "fontFormattingAMA flex items-end justify-start py-2" }, fe = { class: "line-break w-full bg-gray-100 p-3 text-sm text-black md:text-[15px] rounded-lg" }, pe = ["innerHTML"], ge = /* @__PURE__ */ b({
51
51
  __name: "responseAMA",
52
52
  props: {
53
53
  answer: {
@@ -56,24 +56,24 @@ const ee = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#0
56
56
  }
57
57
  },
58
58
  setup(t) {
59
- const s = t, l = q(() => {
60
- const o = s.answer.replace(/[*#]/g, "").replace(
59
+ const e = t, l = C(() => {
60
+ const o = e.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
- ), u = /\[([^\]]+)\]\((https?:\/\/[^\s]+)\)/g;
64
- return o.replace(u, (f, i, a) => `<a href="${a}" target="_blank" rel="noopener noreferrer" style="color: blue; text-decoration: underline;">${i}</a>`);
63
+ ), m = /\[([^\]]+)\]\((https?:\/\/[^\s]+)\)/g;
64
+ return o.replace(m, (f, i, a) => `<a href="${a}" target="_blank" rel="noopener noreferrer" style="color: blue; text-decoration: underline;">${i}</a>`);
65
65
  });
66
- return (o, u) => (n(), c("div", fe, [
67
- e("div", pe, [
68
- e("span", {
66
+ return (o, m) => (r(), d("div", me, [
67
+ s("div", fe, [
68
+ s("span", {
69
69
  class: "fontFormattingAMA",
70
70
  innerHTML: l.value
71
- }, null, 8, ge)
71
+ }, null, 8, pe)
72
72
  ])
73
73
  ]));
74
74
  }
75
75
  });
76
- const be = /* @__PURE__ */ w(he, [["__scopeId", "data-v-38edcca6"]]), ke = { class: "flex justify-end items-end py-3" }, ve = { class: "max-w-[80%]" }, xe = { class: "w-fit md:text-[15px] fontFormattingAMA text-sm text-white bg-genpact-blue-box leading-6 p-3 rounded-lg" }, ye = /* @__PURE__ */ k({
76
+ const he = /* @__PURE__ */ y(ge, [["__scopeId", "data-v-38edcca6"]]), ke = { class: "flex justify-end items-end py-3" }, be = { class: "max-w-[80%]" }, ve = { class: "w-fit md:text-[15px] fontFormattingAMA text-sm text-white bg-genpact-blue-box leading-6 p-3 rounded-lg" }, xe = /* @__PURE__ */ b({
77
77
  __name: "learnerAMA",
78
78
  props: {
79
79
  question: {
@@ -82,20 +82,20 @@ const be = /* @__PURE__ */ w(he, [["__scopeId", "data-v-38edcca6"]]), ke = { cla
82
82
  }
83
83
  },
84
84
  setup(t) {
85
- return (s, l) => (n(), c("div", ke, [
86
- e("div", ve, [
87
- e("div", xe, L(t.question), 1)
85
+ return (e, l) => (r(), d("div", ke, [
86
+ s("div", be, [
87
+ s("div", ve, q(t.question), 1)
88
88
  ])
89
89
  ]));
90
90
  }
91
- }), we = (t) => (E("data-v-12a02acf"), t = t(), N(), t), Ae = { class: "flex w-full flex-col items-start justify-start bg-white" }, $e = { class: "bot-typing-animation gap-1" }, Me = { class: "block w-full text-lg italic text-gray-800" }, Se = /* @__PURE__ */ we(() => /* @__PURE__ */ e("span", { class: "dot-animation" }, [
92
- /* @__PURE__ */ e("span", null, "."),
93
- /* @__PURE__ */ e("span", null, "."),
94
- /* @__PURE__ */ e("span", null, ".")
95
- ], -1)), Ce = /* @__PURE__ */ D('<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), qe = /* @__PURE__ */ k({
91
+ }), ye = (t) => (I("data-v-12a02acf"), t = t(), L(), t), we = { class: "flex w-full flex-col items-start justify-start bg-white" }, Ae = { class: "bot-typing-animation gap-1" }, $e = { class: "block w-full text-lg italic text-gray-800" }, Me = /* @__PURE__ */ ye(() => /* @__PURE__ */ s("span", { class: "dot-animation" }, [
92
+ /* @__PURE__ */ s("span", null, "."),
93
+ /* @__PURE__ */ s("span", null, "."),
94
+ /* @__PURE__ */ s("span", null, ".")
95
+ ], -1)), Se = /* @__PURE__ */ V('<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), Ce = /* @__PURE__ */ b({
96
96
  __name: "LoadingResponseAMA",
97
97
  setup(t) {
98
- const s = _("Generating response"), l = _([
98
+ const e = _("Generating response"), l = _([
99
99
  "This may take a few seconds",
100
100
  "Fetching the best response for you",
101
101
  "Thinking... give me a moment",
@@ -106,176 +106,169 @@ const be = /* @__PURE__ */ w(he, [["__scopeId", "data-v-38edcca6"]]), ke = { cla
106
106
  ]);
107
107
  return setTimeout(() => {
108
108
  const o = Math.floor(Math.random() * l.value.length);
109
- s.value = l.value[o];
110
- }, 15e3), (o, u) => (n(), c("div", Ae, [
111
- e("div", $e, [
112
- e("div", Me, L(s.value), 1),
113
- Se
109
+ e.value = l.value[o];
110
+ }, 15e3), (o, m) => (r(), d("div", we, [
111
+ s("div", Ae, [
112
+ s("div", $e, q(e.value), 1),
113
+ Me
114
114
  ]),
115
- Ce
115
+ Se
116
116
  ]));
117
117
  }
118
118
  });
119
- const Ie = /* @__PURE__ */ w(qe, [["__scopeId", "data-v-12a02acf"]]), Le = { key: 0 }, Ee = { key: 1 }, Ne = {
119
+ const qe = /* @__PURE__ */ y(Ce, [["__scopeId", "data-v-12a02acf"]]), Ie = { key: 0 }, Le = { key: 1 }, Ee = {
120
120
  key: 0,
121
121
  class: "flex"
122
- }, Te = /* @__PURE__ */ k({
122
+ }, Ne = /* @__PURE__ */ b({
123
123
  __name: "conversationAMA",
124
124
  setup(t) {
125
- let s = _(""), l = _("");
126
- s.value = '<a style="color:#00AECF;"', l.value = '<ul style="list-style: disc !important; margin-left: 3.5rem !important; padding: 0;"';
127
- const o = A(), u = _();
128
- return T(() => {
125
+ let e = _(""), l = _("");
126
+ e.value = '<a style="color:#00AECF;"', l.value = '<ul style="list-style: disc !important; margin-left: 3.5rem !important; padding: 0;"';
127
+ const o = w(), m = _();
128
+ return E(() => {
129
129
  var a;
130
130
  const f = document.getElementsByName("askQuestion"), i = Array.from(f);
131
131
  f.length && ((a = i == null ? void 0 : i.pop()) == null || a.scrollIntoView({ behavior: "smooth", block: "center" }));
132
- }), H(() => {
132
+ }), U(() => {
133
133
  var a;
134
134
  const f = document.getElementsByName("askQuestion"), i = Array.from(f);
135
135
  f.length && ((a = i == null ? void 0 : i.pop()) == null || a.scrollIntoView({ behavior: "smooth", block: "center" }));
136
- }), (f, i) => (n(), c("div", {
136
+ }), (f, i) => (r(), d("div", {
137
137
  ref_key: "nestedElement",
138
- ref: u,
138
+ ref: m,
139
139
  class: "smooth-scroll overflow-auto md:px-6 px-2"
140
140
  }, [
141
- b(me),
142
- (n(!0), c(z, null, O(x(o).conversations, (a, m) => (n(), c("div", { key: m }, [
143
- a.question ? (n(), c("div", Le, [
144
- b(ye, {
141
+ k(ue),
142
+ (r(!0), d(D, null, H(v(o).conversations, (a, u) => (r(), d("div", { key: u }, [
143
+ a.question ? (r(), d("div", Ie, [
144
+ k(xe, {
145
145
  question: a.question,
146
146
  c2question: a.c2question,
147
147
  "show-feedback": a.showFeedback,
148
- id: `qId${m}`,
148
+ id: `qId${u}`,
149
149
  name: "askQuestion",
150
- "que-id": m
150
+ "que-id": u
151
151
  }, null, 8, ["question", "c2question", "show-feedback", "id", "que-id"])
152
152
  ])) : S("", !0),
153
- a.answer ? (n(), c("div", Ee, [
154
- b(be, {
153
+ a.answer ? (r(), d("div", Le, [
154
+ k(he, {
155
155
  question: a == null ? void 0 : a.question,
156
156
  c2question: a == null ? void 0 : a.c2question,
157
157
  "show-sources": a == null ? void 0 : a.showSources,
158
158
  questionId: a.id,
159
- answer: a.answer.replaceAll("<a", x(s)).replaceAll("<ul", x(l)),
159
+ answer: a.answer.replaceAll("<a", v(e)).replaceAll("<ul", v(l)),
160
160
  "show-feedback": a.showFeedback,
161
161
  "related-ques": a.relatedQues,
162
162
  "options-array": a.optionsArray,
163
- "ans-id": m
163
+ "ans-id": u
164
164
  }, null, 8, ["question", "c2question", "show-sources", "questionId", "answer", "show-feedback", "related-ques", "options-array", "ans-id"])
165
165
  ])) : S("", !0)
166
166
  ]))), 128)),
167
- x(o).dotLoader ? (n(), c("div", Ne, [
168
- b(Ie)
167
+ v(o).dotLoader ? (r(), d("div", Ee, [
168
+ k(qe)
169
169
  ])) : S("", !0)
170
170
  ], 512));
171
171
  }
172
172
  });
173
- const Pe = /* @__PURE__ */ w(Te, [["__scopeId", "data-v-e6168dd4"]]), $ = (t) => (E("data-v-43fbdb46"), t = t(), N(), t), Re = { class: "z-3 absolute bottom-0 mt-4 w-full bg-white px-2 md:px-6" }, Fe = { class: "py-2" }, Qe = { class: "flex" }, je = { class: "z-1 relative w-full" }, Be = { class: "relative w-full" }, Ge = { class: "absolute inset-y-0 right-0 flex items-center md:pr-8 pr-3" }, Ve = { key: 0 }, Ue = /* @__PURE__ */ $(() => /* @__PURE__ */ e("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)), De = [
174
- Ue
175
- ], He = {
173
+ const Pe = /* @__PURE__ */ y(Ne, [["__scopeId", "data-v-e6168dd4"]]), A = (t) => (I("data-v-01b39c11"), t = t(), L(), t), Te = { class: "z-3 absolute bottom-0 mt-4 w-full bg-white px-2 md:px-6" }, Re = { class: "py-2" }, Fe = { class: "flex" }, Qe = { class: "z-1 relative w-full" }, je = { class: "relative w-full" }, Be = { class: "absolute inset-y-0 right-0 flex items-center md:pr-8 pr-3" }, Ge = { key: 0 }, Ve = /* @__PURE__ */ A(() => /* @__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)), Ue = [
174
+ Ve
175
+ ], De = {
176
176
  key: 1,
177
177
  class: "tooltip"
178
- }, ze = /* @__PURE__ */ $(() => /* @__PURE__ */ e("span", { class: "tooltiptext fontFormattingAMA" }, "Waiting for response", -1)), Oe = /* @__PURE__ */ $(() => /* @__PURE__ */ e("img", {
178
+ }, He = /* @__PURE__ */ A(() => /* @__PURE__ */ s("span", { class: "tooltiptext fontFormattingAMA" }, "Waiting for response", -1)), ze = /* @__PURE__ */ A(() => /* @__PURE__ */ s("img", {
179
179
  class: "w-7 h-7",
180
- src: B,
180
+ src: Q,
181
181
  alt: "watingIcon"
182
- }, null, -1)), We = [
183
- ze,
184
- Oe
185
- ], Ze = { class: "flex justify-start" }, Ke = /* @__PURE__ */ $(() => /* @__PURE__ */ e("div", { class: "pt-1 text-start font-sans" }, [
186
- /* @__PURE__ */ e("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)), Ye = /* @__PURE__ */ k({
182
+ }, null, -1)), Oe = [
183
+ He,
184
+ ze
185
+ ], We = { class: "flex justify-start" }, Ze = /* @__PURE__ */ A(() => /* @__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)), Ke = /* @__PURE__ */ b({
188
188
  __name: "NewQuestionAMA",
189
189
  setup(t) {
190
- const s = A(), l = R();
191
- s.question = "";
192
- const o = _(null), u = _(!1), f = _(M), i = _(!1), a = C === "prod" ? "https://aigurubackend-dev.genpact.com/api/LangchainAgenticCompletion" : "https://aigurubackend-dev.genpact.com/api/LangchainAgenticCompletion-dev";
193
- T(() => {
190
+ const e = w(), l = T();
191
+ e.question = "";
192
+ const o = _(null), m = _(!1), f = _(M), i = _(!1);
193
+ E(() => {
194
194
  o.value.focus();
195
195
  });
196
- const m = (h) => {
197
- const r = h.length;
198
- f.value = M - r, u.value = r >= M;
199
- }, v = async () => {
200
- var h, r, p, d;
196
+ const a = (p) => {
197
+ const c = p.length;
198
+ f.value = M - c, m.value = c >= M;
199
+ }, u = async () => {
200
+ var p, c, g;
201
201
  try {
202
- if (s.question.trim().length < 1) {
202
+ if (e.question.trim().length < 1) {
203
203
  l.setError("Please enter answer!");
204
204
  return;
205
205
  }
206
- i.value = !0, s.dotLoader = !0;
207
- const g = {
208
- question: s.question
206
+ i.value = !0, e.dotLoader = !0;
207
+ const h = {
208
+ question: e == null ? void 0 : e.question
209
209
  };
210
- s.conversations.push(g);
211
- const y = _("");
212
- y.value = s.question, s.question = "";
213
- const F = {
210
+ e.conversations.push(h);
211
+ const n = _("");
212
+ n.value = e == null ? void 0 : e.question, e.question = "";
213
+ const x = {
214
214
  AMA: !0,
215
- skill_name: s.amaSkillName,
216
- question: y.value,
217
- past_messages: s.past_messages
218
- }, Q = await I({
219
- method: "POST",
220
- headers: {
221
- "Content-Type": "application/json"
222
- },
223
- url: a,
224
- data: F
225
- });
226
- s.addConversation((h = Q.data) == null ? void 0 : h.body, "new"), i.value = !1, s.dotLoader = !1;
227
- } catch (g) {
228
- if (console.error(g), s.dotLoader = !1, i.value = !1, I.isAxiosError(g)) {
229
- const y = g;
230
- console.log("Error found!"), console.error((r = y.response) == null ? void 0 : r.data), l.setError((d = (p = y.response) == null ? void 0 : p.data) == null ? void 0 : d.message);
215
+ skill_name: e.amaSkillName,
216
+ question: n.value,
217
+ past_messages: e.past_messages
218
+ }, $ = await Y("/LangchainAgenticCompletion", x);
219
+ e.addConversation($ == null ? void 0 : $.data, "new"), i.value = !1, e.dotLoader = !1;
220
+ } catch (h) {
221
+ if (console.error(h), e.dotLoader = !1, i.value = !1, R.isAxiosError(h)) {
222
+ const n = h;
223
+ console.log("Error found!"), console.error((p = n.response) == null ? void 0 : p.data), l.setError((g = (c = n.response) == null ? void 0 : c.data) == null ? void 0 : g.message);
231
224
  } else
232
225
  l.setError("There was an issue, please contact helpmate");
233
226
  }
234
227
  };
235
- return (h, r) => (n(), c("div", Re, [
236
- e("div", Fe, [
237
- e("div", Qe, [
238
- e("div", je, [
239
- e("div", Be, [
240
- e("div", Ge, [
241
- i.value ? (n(), c("div", He, We)) : (n(), c("div", Ve, [
242
- (n(), c("svg", {
243
- onClick: r[0] || (r[0] = (p) => v()),
228
+ return (p, c) => (r(), d("div", Te, [
229
+ s("div", Re, [
230
+ s("div", Fe, [
231
+ s("div", Qe, [
232
+ s("div", je, [
233
+ s("div", Be, [
234
+ i.value ? (r(), d("div", De, Oe)) : (r(), d("div", Ge, [
235
+ (r(), d("svg", {
236
+ onClick: c[0] || (c[0] = (g) => u()),
244
237
  xmlns: "http://www.w3.org/2000/svg",
245
238
  fill: "currentColor",
246
239
  class: "bi bi-send ml-2 h-7 w-7 rotate-45 rounded",
247
240
  viewBox: "0 0 16 16"
248
- }, De))
241
+ }, Ue))
249
242
  ]))
250
243
  ]),
251
- e("div", Ze, [
252
- W(e("input", {
244
+ s("div", We, [
245
+ z(s("input", {
253
246
  onKeyup: [
254
- r[1] || (r[1] = K((p) => i.value ? "" : v(), ["enter"])),
255
- r[3] || (r[3] = (p) => m(x(s).question))
247
+ c[1] || (c[1] = W((g) => i.value ? "" : u(), ["enter"])),
248
+ c[3] || (c[3] = (g) => a(v(e).question))
256
249
  ],
257
- "onUpdate:modelValue": r[2] || (r[2] = (p) => x(s).question = p),
250
+ "onUpdate:modelValue": c[2] || (c[2] = (g) => v(e).question = g),
258
251
  class: "fontFormattingAMA rounded-lg flex w-full border border-genpact-darkest-teal py-[18px] pl-[30px] pr-[70px]",
259
252
  placeholder: "Write your answer here...",
260
253
  type: "text",
261
254
  ref_key: "AiSearch",
262
255
  ref: o
263
256
  }, null, 544), [
264
- [Z, x(s).question]
257
+ [O, v(e).question]
265
258
  ])
266
259
  ])
267
260
  ]),
268
- Ke
261
+ Ze
269
262
  ])
270
263
  ])
271
264
  ])
272
265
  ]));
273
266
  }
274
267
  });
275
- const Je = /* @__PURE__ */ w(Ye, [["__scopeId", "data-v-43fbdb46"]]), Xe = (t) => {
276
- var s;
277
- return (s = es.find((l) => l.skill_id === t)) == null ? void 0 : s.skill_name;
278
- }, es = [
268
+ const Ye = /* @__PURE__ */ y(Ke, [["__scopeId", "data-v-01b39c11"]]), Je = (t) => {
269
+ var e;
270
+ return (e = Xe.find((l) => l.skill_id === t)) == null ? void 0 : e.skill_name;
271
+ }, Xe = [
279
272
  {
280
273
  skill_alias: "Client Relationships",
281
274
  skill_name: "Client Relationships",
@@ -419,23 +412,23 @@ const Je = /* @__PURE__ */ w(Ye, [["__scopeId", "data-v-43fbdb46"]]), Xe = (t) =
419
412
  skill_name: "Cloud",
420
413
  skill_id: "9e018249-fba4-41b8-be19-364ddf78b61d"
421
414
  }
422
- ], P = (t) => (E("data-v-466e517f"), t = t(), N(), t), ss = /* @__PURE__ */ P(() => /* @__PURE__ */ e("div", { class: "max-h-screen overflow-auto md:p-6 p-3 flex flex-col items-center justify-center gap-4 text-[#161916]" }, [
423
- /* @__PURE__ */ e("div", { class: "text-2xl font-[700]" }, "Assessment Access Required"),
424
- /* @__PURE__ */ e("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 ")
425
- ], -1)), as = {
415
+ ], N = (t) => (I("data-v-466e517f"), t = t(), L(), t), es = /* @__PURE__ */ N(() => /* @__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]" }, [
416
+ /* @__PURE__ */ s("div", { class: "text-2xl font-[700]" }, "Assessment Access Required"),
417
+ /* @__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 ")
418
+ ], -1)), ss = {
426
419
  key: 1,
427
420
  className: "h-screen flex flex-col items-stretch"
428
- }, ts = { class: "z-20" }, ls = /* @__PURE__ */ P(() => /* @__PURE__ */ e("div", { class: "mt-6" }, null, -1)), is = { class: "flex h-full items-stretch overflow-hidden" }, os = { class: "mx-auto w-11/12 bg-white" }, ns = { class: "relative flex h-full w-full flex-col items-stretch overflow-hidden" }, rs = /* @__PURE__ */ P(() => /* @__PURE__ */ e("div", { class: "mt-[160px]" }, null, -1)), cs = { class: "relative" }, ds = /* @__PURE__ */ k({
421
+ }, as = { class: "z-20" }, ts = /* @__PURE__ */ N(() => /* @__PURE__ */ s("div", { class: "mt-6" }, null, -1)), ls = { class: "flex h-full items-stretch overflow-hidden" }, is = { class: "mx-auto w-11/12 bg-white" }, os = { class: "relative flex h-full w-full flex-col items-stretch overflow-hidden" }, ns = /* @__PURE__ */ N(() => /* @__PURE__ */ s("div", { class: "mt-[160px]" }, null, -1)), rs = { class: "relative" }, cs = /* @__PURE__ */ b({
429
422
  __name: "AssessmentAMA",
430
423
  setup(t) {
431
- const s = _(!0), l = _(!1), o = A(), u = R();
424
+ const e = _(!0), l = _(!1), o = w(), m = T();
432
425
  _("");
433
- const i = _(((m) => new URLSearchParams(window.location.search).get(m) || "")("amaId"));
434
- o.amaSkillId = i.value ?? "", T(async () => {
435
- s.value = !0, await a(), s.value = !1;
426
+ const i = _(((u) => new URLSearchParams(window.location.search).get(u) || "")("amaId"));
427
+ o.amaSkillId = i.value ?? "", E(async () => {
428
+ e.value = !0, await a(), e.value = !1;
436
429
  });
437
430
  const a = async () => {
438
- var m, v, h, r, p;
431
+ var u, p, c, g, h;
439
432
  try {
440
433
  if (i.value === null)
441
434
  throw {
@@ -447,43 +440,43 @@ const Je = /* @__PURE__ */ w(Ye, [["__scopeId", "data-v-43fbdb46"]]), Xe = (t) =
447
440
  }
448
441
  };
449
442
  console.log("before calling get learner");
450
- const d = await X(
443
+ const n = await J(
451
444
  `/getLearnerData?forSimulation=true&skillForSimulation=${i.value}`
452
445
  );
453
- o.initialize(d.data), o.amaSkillName = Xe(o.amaSkillId) || "", s.value = !1;
454
- } catch (d) {
455
- if (console.error(d), s.value = !1, I.isAxiosError(d) && ((m = d.response) != null && m.status) || d && typeof d == "object" && "response" in d && d.response && typeof d.response == "object" && "status" in d.response && d.response.status) {
456
- const g = d;
457
- if (console.log("Error found!"), console.error((v = g.response) == null ? void 0 : v.data), ((h = g.response) == null ? void 0 : h.status) === 424 || ((r = g.response) == null ? void 0 : r.status) === 425) {
446
+ o.initialize(n.data), o.amaSkillName = Je(o.amaSkillId) || "", e.value = !1;
447
+ } catch (n) {
448
+ if (console.error(n), e.value = !1, R.isAxiosError(n) && ((u = n.response) != null && u.status) || n && typeof n == "object" && "response" in n && n.response && typeof n.response == "object" && "status" in n.response && n.response.status) {
449
+ const x = n;
450
+ if (console.log("Error found!"), console.error((p = x.response) == null ? void 0 : p.data), ((c = x.response) == null ? void 0 : c.status) === 424 || ((g = x.response) == null ? void 0 : g.status) === 425) {
458
451
  l.value = !0;
459
452
  return;
460
453
  }
461
- u.setError(((p = g.response) == null ? void 0 : p.data).message);
454
+ m.setError(((h = x.response) == null ? void 0 : h.data).message);
462
455
  } else
463
- u.setError("There was an issue, please contact helpmate");
456
+ m.setError("There was an issue, please contact helpmate");
464
457
  }
465
458
  };
466
- return (m, v) => (n(), c("section", null, [
467
- b(U, { "is-visible": l.value }, {
468
- default: Y(() => [
469
- ss
459
+ return (u, p) => (r(), d("section", null, [
460
+ k(G, { "is-visible": l.value }, {
461
+ default: Z(() => [
462
+ es
470
463
  ]),
471
464
  _: 1
472
465
  }, 8, ["is-visible"]),
473
- e("div", null, [
474
- s.value ? (n(), J(G, { key: 0 })) : (n(), c("main", as, [
475
- e("div", ts, [
476
- b(ne)
466
+ s("div", null, [
467
+ e.value ? (r(), K(j, { key: 0 })) : (r(), d("main", ss, [
468
+ s("div", as, [
469
+ k(oe)
477
470
  ]),
478
- ls,
479
- e("div", is, [
480
- e("div", os, [
481
- e("div", ns, [
482
- b(Pe),
483
- rs
471
+ ts,
472
+ s("div", ls, [
473
+ s("div", is, [
474
+ s("div", os, [
475
+ k(Pe),
476
+ ns
484
477
  ]),
485
- e("div", cs, [
486
- b(Je)
478
+ s("div", rs, [
479
+ k(Ye)
487
480
  ])
488
481
  ])
489
482
  ])
@@ -492,7 +485,7 @@ const Je = /* @__PURE__ */ w(Ye, [["__scopeId", "data-v-43fbdb46"]]), Xe = (t) =
492
485
  ]));
493
486
  }
494
487
  });
495
- const hs = /* @__PURE__ */ w(ds, [["__scopeId", "data-v-466e517f"]]);
488
+ const gs = /* @__PURE__ */ y(cs, [["__scopeId", "data-v-466e517f"]]);
496
489
  export {
497
- hs as default
490
+ gs as default
498
491
  };
@@ -1,8 +1,8 @@
1
- import { _ as Cl, a as ap, L as yl } from "./LoadingSimulation-f208b0ac.mjs";
2
- import { _ as Pl, a as cp, Q as jt, M as Ta } from "./Modal-05b123c8.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-ef59e3b2.mjs";
4
- import { g as Bn, p as Rt } from "./api-b391c57e.mjs";
5
- import { c as q, a as Il, r as _l } from "./_commonjsHelpers-b8337805.mjs";
1
+ import { _ as Cl, a as ap, L as yl } from "./LoadingSimulation-eb991eab.mjs";
2
+ import { _ as Pl, a as cp, Q as jt, M as Ta } from "./Modal-6063cc76.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-de91403a.mjs";
4
+ import { g as Bn, p as Rt } from "./api-c764c078.mjs";
5
+ import { c as q, a as Il, r as _l } from "./_commonjsHelpers-3c08efdf.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-ef59e3b2.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-de91403a.mjs";
2
2
  import { _ as j } from "./loadernew-ac153a51.mjs";
3
- import { p as B, g as Q } from "./api-b391c57e.mjs";
3
+ import { p as B, g as Q } from "./api-c764c078.mjs";
4
4
  import { _ as X } from "./genome-Logo-white-ffcf2413.mjs";
5
- import { r as Z } from "./ArrowLeftCircleIcon-8a13f362.mjs";
5
+ import { r as Z } from "./ArrowLeftCircleIcon-5d3ac10e.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-ef59e3b2.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-de91403a.mjs";
2
2
  import { _ as K } from "./loadernew-ac153a51.mjs";
3
- import { p as $ } from "./api-b391c57e.mjs";
3
+ import { p as $ } from "./api-c764c078.mjs";
4
4
  import { _ as X } from "./genome-Logo-white-ffcf2413.mjs";
5
- import { r as Z } from "./ArrowLeftCircleIcon-8a13f362.mjs";
5
+ import { r as Z } from "./ArrowLeftCircleIcon-5d3ac10e.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",