@genpact/genome.mfe.mgtwin-app 1.1.323-alpha → 1.1.324-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-d51afb45.mjs → ArrowLeftCircleIcon-815948fd.mjs} +1 -1
  2. package/dist/{AssessmentAMA-09cdceca.mjs → AssessmentAMA-f3bd5dc4.mjs} +136 -139
  3. package/dist/{AssessmentSimulation-c3efb800.mjs → AssessmentSimulation-fcde9db4.mjs} +5 -5
  4. package/dist/{EditSkillAdminData-f8afd88a.mjs → EditSkillAdminData-b0f60d80.mjs} +3 -3
  5. package/dist/{EditSkillData-d37e1376.mjs → EditSkillData-ec744852.mjs} +3 -3
  6. package/dist/{HomeView-10b0648d.mjs → HomeView-f390007d.mjs} +5 -5
  7. package/dist/{Loading-7fdccea0.mjs → Loading-fe1d1ee6.mjs} +1 -1
  8. package/dist/{LoadingSimulation-ed8e2e4f.mjs → LoadingSimulation-ec18b2ef.mjs} +1 -1
  9. package/dist/{Modal-2a097c78.mjs → Modal-34bd751a.mjs} +1 -1
  10. package/dist/{PaperAirplaneIcon-f6b4885b.mjs → PaperAirplaneIcon-5b0a90bf.mjs} +1 -1
  11. package/dist/{PromptTesting-536f53e1.mjs → PromptTesting-ba83dadc.mjs} +3 -3
  12. package/dist/{SkillAutomation-06b32c22.mjs → SkillAutomation-db968a8a.mjs} +3 -3
  13. package/dist/{SkillData-eb4e2be0.mjs → SkillData-36f2cd97.mjs} +3 -3
  14. package/dist/{Testcase-04bdc1c2.mjs → Testcase-ca41fb2f.mjs} +3 -3
  15. package/dist/{UnderMaintenance-008cc870.mjs → UnderMaintenance-0d993bc0.mjs} +1 -1
  16. package/dist/{_commonjsHelpers-79296848.mjs → _commonjsHelpers-a1d29b72.mjs} +1 -1
  17. package/dist/{api-0ecf07d1.mjs → api-b792715e.mjs} +1 -1
  18. package/dist/{main-48da8199.mjs → main-fee11cf2.mjs} +1394 -1394
  19. package/dist/mgtwin.es.min.js +1 -1
  20. package/dist/mgtwin.umd.min.js +4 -4
  21. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { o as e, c as r, a } from "./main-48da8199.mjs";
1
+ import { o as e, c as r, a } from "./main-fee11cf2.mjs";
2
2
  function c(l, o) {
3
3
  return e(), r("svg", {
4
4
  xmlns: "http://www.w3.org/2000/svg",
@@ -1,57 +1,54 @@
1
- import { _ as H, a as U, L as V } from "./LoadingSimulation-ed8e2e4f.mjs";
2
- import { _ as B, Q as M, a as z } from "./Modal-2a097c78.mjs";
3
- import { d as y, r as d, H as R, o as c, c as u, a as e, u as k, y as L, t as S, G, p as N, g as E, C as Q, z as D, h as x, F as O, e as W, f as I, b as v, k as F, w as Z, m as K, M as Y, q as T, s as J, l as X } from "./main-48da8199.mjs";
1
+ import { _ as U, a as V, L as B } from "./LoadingSimulation-ec18b2ef.mjs";
2
+ import { _ as H, Q as M, a as z } from "./Modal-34bd751a.mjs";
3
+ import { d as y, r as d, H as R, o as c, c as u, a as t, u as k, y as L, t as S, G, p as N, g as E, C as Q, z as D, h as x, F as O, e as W, f as I, b as v, k as F, w as Z, m as K, M as Y, q as T, s as J, l as X } from "./main-fee11cf2.mjs";
4
4
  import { _ as $ } from "./_plugin-vue_export-helper-dad06003.mjs";
5
- import { p as ee, g as te } from "./api-0ecf07d1.mjs";
5
+ import { p as ee, g as te } from "./api-b792715e.mjs";
6
6
  import "./loadernew-ac153a51.mjs";
7
- const se = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#021c42] md:pr-6 lg:pr-6" }, ae = ["href"], oe = /* @__PURE__ */ e("img", {
7
+ const se = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#021c42] md:pr-6 lg:pr-6" }, ae = ["href"], oe = /* @__PURE__ */ t("img", {
8
8
  class: "h-11 w-auto cursor-pointer",
9
- src: H,
9
+ src: U,
10
10
  alt: "Genome Logo"
11
11
  }, null, -1), ne = [
12
12
  oe
13
- ], re = ["href"], le = /* @__PURE__ */ e("img", {
13
+ ], re = ["href"], le = /* @__PURE__ */ t("img", {
14
14
  class: "h-9 w-28 cursor-pointer md:w-36",
15
- src: B,
15
+ src: H,
16
16
  alt: "Aiguru Logo"
17
17
  }, null, -1), ie = [
18
18
  le
19
19
  ], ce = /* @__PURE__ */ y({
20
20
  __name: "headerAMA",
21
21
  setup(n) {
22
- const t = d(""), o = d("");
23
- return R === "prod" ? t.value = "https://genome.genpact.com" : t.value = "https://genome-dev.genpact.com", R === "prod" ? o.value = "https://genome.genpact.com/#aiguru" : o.value = "https://genome-dev.genpact.com/#aiguru", (l, _) => (c(), u("nav", se, [
24
- e("a", {
22
+ const e = d(""), o = d("");
23
+ return R === "prod" ? e.value = "https://genome.genpact.com" : e.value = "https://genome-dev.genpact.com", R === "prod" ? o.value = "https://genome.genpact.com/#aiguru" : o.value = "https://genome-dev.genpact.com/#aiguru", (l, m) => (c(), u("nav", se, [
24
+ t("a", {
25
25
  class: "px-2 md:px-0 lg:px-0",
26
- href: t.value,
26
+ href: e.value,
27
27
  target: "_blank"
28
28
  }, ne, 8, ae),
29
- e("a", {
29
+ t("a", {
30
30
  class: "px-2 md:px-0 lg:px-0",
31
31
  href: o.value,
32
32
  target: "_blank"
33
33
  }, ie, 8, re)
34
34
  ]));
35
35
  }
36
- }), de = { class: "flex items-end justify-start" }, ue = { class: "fontFormattingAMA w-full bg-gray-100 rounded-lg" }, _e = { class: "w-full rounded-md px-3 py-2 text-lg text-black md:text-xl" }, me = ["innerHTML"], pe = { class: "w-full px-3 py-2 text-black text-sm md:text-base font-[550]" }, fe = ["innerHTML"], he = /* @__PURE__ */ e("br", null, null, -1), ge = /* @__PURE__ */ y({
36
+ }), de = { class: "flex items-end justify-start" }, ue = { class: "fontFormattingAMA w-full bg-gray-100 rounded-lg" }, _e = { class: "w-full rounded-md px-3 py-2 text-lg text-black md:text-xl" }, me = ["innerHTML"], pe = /* @__PURE__ */ t("br", null, null, -1), fe = /* @__PURE__ */ y({
37
37
  __name: "greetingsAMA",
38
38
  setup(n) {
39
- const t = k(), o = ` Hi ${t.learnerName || "Learner"} ! &#128075;`, l = L(() => o), _ = L(() => `I'm here and ready to help! What would you like to know about <span class='font-[600]'>${t.amaSkillName || "Skill"}</span>? <br/> Ask me to explain concepts, provide examples, or clarify anything that seems confusing.`);
40
- return (p, r) => (c(), u("section", null, [
41
- e("div", de, [
42
- e("div", ue, [
43
- e("div", _e, [
44
- e("div", { innerHTML: l.value }, null, 8, me)
45
- ]),
46
- e("div", pe, [
47
- e("div", { innerHTML: _.value }, null, 8, fe)
39
+ const e = k(), o = ` Hi ${e.learnerName || "Learner"}! &#128075;`, l = L(() => o);
40
+ return L(() => `I'm here and ready to help! What would you like to know about <span class='font-[600]'>${e.amaSkillName || "Skill"}</span>? <br/> Ask me to explain concepts, provide examples, or clarify anything that seems confusing.`), (m, p) => (c(), u("section", null, [
41
+ t("div", de, [
42
+ t("div", ue, [
43
+ t("div", _e, [
44
+ t("div", { innerHTML: l.value }, null, 8, me)
48
45
  ])
49
46
  ])
50
47
  ]),
51
- he
48
+ pe
52
49
  ]));
53
50
  }
54
- }), ve = { class: "fontFormattingAMA flex items-end justify-start py-2" }, xe = { class: "line-break w-full bg-gray-100 p-3 text-[0.8125rem] md:text-[0.9375rem] text-black rounded-lg" }, ye = ["innerHTML"], we = /* @__PURE__ */ y({
51
+ }), he = { class: "fontFormattingAMA flex items-end justify-start py-2" }, ge = { class: "line-break w-full bg-gray-100 p-3 text-[0.8125rem] md:text-[0.9375rem] text-black rounded-lg" }, ve = ["innerHTML"], xe = /* @__PURE__ */ y({
55
52
  __name: "responseAMA",
56
53
  props: {
57
54
  answer: {
@@ -60,24 +57,24 @@ const se = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#0
60
57
  }
61
58
  },
62
59
  setup(n) {
63
- const t = n, o = L(() => {
64
- const l = t.answer.replace(/[*#]/g, "").replace(
60
+ const e = n, o = L(() => {
61
+ const l = e.answer.replace(/[*#]/g, "").replace(
65
62
  /Assessment Rating & Feedback/g,
66
63
  '<div style="font-size: 26px; font-weight: bold; text-decoration: underline;">Rating & Feedback</div>'
67
- ), _ = /\[([^\]]+)\]\((https?:\/\/[^\s]+)\)/g;
68
- return l.replace(_, (p, r, s) => `<a href="${s}" target="_blank" rel="noopener noreferrer" style="color: blue; text-decoration: underline;">${r}</a>`);
64
+ ), m = /\[([^\]]+)\]\((https?:\/\/[^\s]+)\)/g;
65
+ return l.replace(m, (p, r, s) => `<a href="${s}" target="_blank" rel="noopener noreferrer" style="color: blue; text-decoration: underline;">${r}</a>`);
69
66
  });
70
- return (l, _) => (c(), u("div", ve, [
71
- e("div", xe, [
72
- e("span", {
67
+ return (l, m) => (c(), u("div", he, [
68
+ t("div", ge, [
69
+ t("span", {
73
70
  class: "fontFormattingAMA",
74
71
  innerHTML: o.value
75
- }, null, 8, ye)
72
+ }, null, 8, ve)
76
73
  ])
77
74
  ]));
78
75
  }
79
76
  });
80
- const Ae = /* @__PURE__ */ $(we, [["__scopeId", "data-v-f88d6450"]]), be = { class: "flex justify-end items-end py-3" }, $e = { class: "max-w-[80%]" }, ke = { class: "w-fit fontFormattingAMA text-[0.8125rem] md:text-[0.9375rem] text-white bg-genpact-blue-box leading-6 p-3 rounded-lg" }, qe = /* @__PURE__ */ y({
77
+ const ye = /* @__PURE__ */ $(xe, [["__scopeId", "data-v-f88d6450"]]), we = { class: "flex justify-end items-end py-3" }, Ae = { class: "max-w-[80%]" }, be = { class: "w-fit fontFormattingAMA text-[0.8125rem] md:text-[0.9375rem] text-white bg-genpact-blue-box leading-6 p-3 rounded-lg" }, $e = /* @__PURE__ */ y({
81
78
  __name: "learnerAMA",
82
79
  props: {
83
80
  question: {
@@ -86,20 +83,20 @@ const Ae = /* @__PURE__ */ $(we, [["__scopeId", "data-v-f88d6450"]]), be = { cla
86
83
  }
87
84
  },
88
85
  setup(n) {
89
- return (t, o) => (c(), u("div", be, [
90
- e("div", $e, [
91
- e("div", ke, S(n.question), 1)
86
+ return (e, o) => (c(), u("div", we, [
87
+ t("div", Ae, [
88
+ t("div", be, S(n.question), 1)
92
89
  ])
93
90
  ]));
94
91
  }
95
- }), Me = (n) => (N("data-v-12a02acf"), n = n(), E(), n), Ie = { class: "flex w-full flex-col items-start justify-start bg-white" }, Le = { class: "bot-typing-animation gap-1" }, Se = { class: "block w-full text-lg italic text-gray-800" }, Ne = /* @__PURE__ */ Me(() => /* @__PURE__ */ e("span", { class: "dot-animation" }, [
96
- /* @__PURE__ */ e("span", null, "."),
97
- /* @__PURE__ */ e("span", null, "."),
98
- /* @__PURE__ */ e("span", null, ".")
99
- ], -1)), Ee = /* @__PURE__ */ G('<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__ */ y({
92
+ }), ke = (n) => (N("data-v-12a02acf"), n = n(), E(), n), qe = { class: "flex w-full flex-col items-start justify-start bg-white" }, Me = { class: "bot-typing-animation gap-1" }, Ie = { class: "block w-full text-lg italic text-gray-800" }, Le = /* @__PURE__ */ ke(() => /* @__PURE__ */ t("span", { class: "dot-animation" }, [
93
+ /* @__PURE__ */ t("span", null, "."),
94
+ /* @__PURE__ */ t("span", null, "."),
95
+ /* @__PURE__ */ t("span", null, ".")
96
+ ], -1)), Se = /* @__PURE__ */ G('<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), Ne = /* @__PURE__ */ y({
100
97
  __name: "LoadingResponseAMA",
101
98
  setup(n) {
102
- const t = d("Generating response"), o = d([
99
+ const e = d("Generating response"), o = d([
103
100
  "This may take a few seconds",
104
101
  "Fetching the best response for you",
105
102
  "Thinking... give me a moment",
@@ -110,25 +107,25 @@ const Ae = /* @__PURE__ */ $(we, [["__scopeId", "data-v-f88d6450"]]), be = { cla
110
107
  ]);
111
108
  return setTimeout(() => {
112
109
  const l = Math.floor(Math.random() * o.value.length);
113
- t.value = o.value[l];
114
- }, 15e3), (l, _) => (c(), u("div", Ie, [
115
- e("div", Le, [
116
- e("div", Se, S(t.value), 1),
117
- Ne
110
+ e.value = o.value[l];
111
+ }, 15e3), (l, m) => (c(), u("div", qe, [
112
+ t("div", Me, [
113
+ t("div", Ie, S(e.value), 1),
114
+ Le
118
115
  ]),
119
- Ee
116
+ Se
120
117
  ]));
121
118
  }
122
119
  });
123
- const Ce = /* @__PURE__ */ $(Qe, [["__scopeId", "data-v-12a02acf"]]), Re = { key: 0 }, Fe = { key: 1 }, Te = {
120
+ const Ee = /* @__PURE__ */ $(Ne, [["__scopeId", "data-v-12a02acf"]]), Qe = { key: 0 }, Ce = { key: 1 }, Re = {
124
121
  key: 0,
125
122
  class: "flex"
126
- }, je = /* @__PURE__ */ y({
123
+ }, Fe = /* @__PURE__ */ y({
127
124
  __name: "conversationAMA",
128
125
  setup(n) {
129
- let t = d(""), o = d("");
130
- t.value = '<a style="color:#00AECF;"', o.value = '<ul style="list-style: disc !important; margin-left: 3.5rem !important; padding: 0;"';
131
- const l = k(), _ = d();
126
+ let e = d(""), o = d("");
127
+ e.value = '<a style="color:#00AECF;"', o.value = '<ul style="list-style: disc !important; margin-left: 3.5rem !important; padding: 0;"';
128
+ const l = k(), m = d();
132
129
  return Q(() => {
133
130
  var s;
134
131
  const p = document.getElementsByName("askQuestion"), r = Array.from(p);
@@ -139,159 +136,159 @@ const Ce = /* @__PURE__ */ $(Qe, [["__scopeId", "data-v-12a02acf"]]), Re = { key
139
136
  p.length && ((s = r == null ? void 0 : r.pop()) == null || s.scrollIntoView({ behavior: "smooth", block: "center" }));
140
137
  }), (p, r) => (c(), u("div", {
141
138
  ref_key: "nestedElement",
142
- ref: _,
139
+ ref: m,
143
140
  class: "smooth-scroll overflow-auto md:px-6 px-2"
144
141
  }, [
145
- x(ge),
146
- (c(!0), u(O, null, W(v(l).conversations, (s, m) => (c(), u("div", { key: m }, [
147
- s.question ? (c(), u("div", Re, [
148
- x(qe, {
142
+ x(fe),
143
+ (c(!0), u(O, null, W(v(l).conversations, (s, _) => (c(), u("div", { key: _ }, [
144
+ s.question ? (c(), u("div", Qe, [
145
+ x($e, {
149
146
  question: s.question,
150
147
  c2question: s.c2question,
151
148
  "show-feedback": s.showFeedback,
152
- id: `qId${m}`,
149
+ id: `qId${_}`,
153
150
  name: "askQuestion",
154
- "que-id": m
151
+ "que-id": _
155
152
  }, null, 8, ["question", "c2question", "show-feedback", "id", "que-id"])
156
153
  ])) : I("", !0),
157
- s.answer ? (c(), u("div", Fe, [
158
- x(Ae, {
154
+ s.answer ? (c(), u("div", Ce, [
155
+ x(ye, {
159
156
  question: s == null ? void 0 : s.question,
160
157
  c2question: s == null ? void 0 : s.c2question,
161
158
  "show-sources": s == null ? void 0 : s.showSources,
162
159
  questionId: s.id,
163
- answer: s.answer.replaceAll("<a", v(t)).replaceAll("<ul", v(o)),
160
+ answer: s.answer.replaceAll("<a", v(e)).replaceAll("<ul", v(o)),
164
161
  "show-feedback": s.showFeedback,
165
162
  "related-ques": s.relatedQues,
166
163
  "options-array": s.optionsArray,
167
- "ans-id": m
164
+ "ans-id": _
168
165
  }, null, 8, ["question", "c2question", "show-sources", "questionId", "answer", "show-feedback", "related-ques", "options-array", "ans-id"])
169
166
  ])) : I("", !0)
170
167
  ]))), 128)),
171
- v(l).dotLoader ? (c(), u("div", Te, [
172
- x(Ce)
168
+ v(l).dotLoader ? (c(), u("div", Re, [
169
+ x(Ee)
173
170
  ])) : I("", !0)
174
171
  ], 512));
175
172
  }
176
173
  });
177
- const Pe = /* @__PURE__ */ $(je, [["__scopeId", "data-v-e6168dd4"]]), q = (n) => (N("data-v-18fef92d"), n = n(), E(), n), He = { class: "z-3 absolute bottom-0 mt-4 w-full bg-white px-2 md:px-6" }, Ue = { class: "py-2" }, Ve = { class: "flex" }, Be = { class: "z-1 relative w-full" }, ze = { class: "relative w-full" }, Ge = { class: "absolute inset-y-0 right-0 flex items-center md:pr-8 pr-3" }, De = { key: 0 }, Oe = /* @__PURE__ */ q(() => /* @__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)), We = [
178
- Oe
179
- ], Ze = {
174
+ const Te = /* @__PURE__ */ $(Fe, [["__scopeId", "data-v-e6168dd4"]]), q = (n) => (N("data-v-18fef92d"), n = n(), E(), n), je = { class: "z-3 absolute bottom-0 mt-4 w-full bg-white px-2 md:px-6" }, Pe = { class: "py-2" }, Ue = { class: "flex" }, Ve = { class: "z-1 relative w-full" }, Be = { class: "relative w-full" }, He = { class: "absolute inset-y-0 right-0 flex items-center md:pr-8 pr-3" }, ze = { key: 0 }, Ge = /* @__PURE__ */ q(() => /* @__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)), De = [
175
+ Ge
176
+ ], Oe = {
180
177
  key: 1,
181
178
  class: "tooltip"
182
- }, Ke = /* @__PURE__ */ q(() => /* @__PURE__ */ e("span", { class: "tooltiptext fontFormattingAMA" }, "Waiting for response", -1)), Ye = /* @__PURE__ */ q(() => /* @__PURE__ */ e("img", {
179
+ }, We = /* @__PURE__ */ q(() => /* @__PURE__ */ t("span", { class: "tooltiptext fontFormattingAMA" }, "Waiting for response", -1)), Ze = /* @__PURE__ */ q(() => /* @__PURE__ */ t("img", {
183
180
  class: "w-7 h-7",
184
- src: U,
181
+ src: V,
185
182
  alt: "watingIcon"
186
- }, null, -1)), Je = [
187
- Ke,
188
- Ye
189
- ], Xe = { class: "flex justify-start" }, et = ["placeholder"], tt = { class: "flex justify-start items-start text-[#161916]" }, st = /* @__PURE__ */ q(() => /* @__PURE__ */ e("div", { class: "pt-1 text-start font-sans" }, [
190
- /* @__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. ")
191
- ], -1)), at = /* @__PURE__ */ y({
183
+ }, null, -1)), Ke = [
184
+ We,
185
+ Ze
186
+ ], Ye = { class: "flex justify-start" }, Je = ["placeholder"], Xe = { class: "flex justify-start items-start text-[#161916]" }, et = /* @__PURE__ */ q(() => /* @__PURE__ */ t("div", { class: "pt-1 text-start font-sans" }, [
187
+ /* @__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. ")
188
+ ], -1)), tt = /* @__PURE__ */ y({
192
189
  __name: "NewQuestionAMA",
193
190
  setup(n) {
194
- const t = k(), o = F();
195
- t.question = "";
196
- const l = d(null), _ = d(!1), p = d(M), r = d(!1);
191
+ const e = k(), o = F();
192
+ e.question = "";
193
+ const l = d(null), m = d(!1), p = d(M), r = d(!1);
197
194
  Q(() => {
198
195
  l.value.focus();
199
196
  });
200
- const m = d(((f) => new URLSearchParams(window.location.search).get(f) || "")("amaId"));
201
- console.log("amaId", m.value);
197
+ const _ = d(((f) => new URLSearchParams(window.location.search).get(f) || "")("amaId"));
198
+ console.log("amaId", _.value);
202
199
  const w = (f) => {
203
200
  const i = f.length;
204
- p.value = M - i, _.value = i >= M;
201
+ p.value = M - i, m.value = i >= M;
205
202
  }, A = async () => {
206
203
  var f, i, h, b;
207
204
  try {
208
- if (t.question.trim().length < 1) {
205
+ if (e.question.trim().length < 1) {
209
206
  o.setError("Please enter answer!");
210
207
  return;
211
208
  }
212
- if (t.amaQuestionsLeft <= 0) {
209
+ if (e.amaQuestionsLeft <= 0) {
213
210
  o.setError("You have exhausted your question limit!");
214
211
  return;
215
212
  }
216
- r.value = !0, t.dotLoader = !0;
213
+ r.value = !0, e.dotLoader = !0;
217
214
  const a = {
218
- question: t == null ? void 0 : t.question
215
+ question: e == null ? void 0 : e.question
219
216
  };
220
- t.conversations.push(a);
217
+ e.conversations.push(a);
221
218
  const g = d("");
222
- g.value = t == null ? void 0 : t.question, t.question = "";
219
+ g.value = e == null ? void 0 : e.question, e.question = "";
223
220
  const j = {
224
- skillId: m.value,
221
+ skillId: _.value,
225
222
  question: g.value,
226
- past_messages: t.past_messages
223
+ past_messages: e.past_messages
227
224
  }, P = await ee("/amaBotResponse", j);
228
- t.addConversation((f = P.data) == null ? void 0 : f.body, "new"), r.value = !1, t.dotLoader = !1;
225
+ e.addConversation((f = P.data) == null ? void 0 : f.body, "new"), r.value = !1, e.dotLoader = !1;
229
226
  } catch (a) {
230
- if (console.error(a), t.dotLoader = !1, r.value = !1, T.isAxiosError(a)) {
227
+ if (console.error(a), e.dotLoader = !1, r.value = !1, T.isAxiosError(a)) {
231
228
  const g = a;
232
229
  console.log("Error found!"), console.error((i = g.response) == null ? void 0 : i.data), o.setError((b = (h = g.response) == null ? void 0 : h.data) == null ? void 0 : b.message);
233
230
  } else
234
231
  o.setError("There was an issue, please contact helpmate");
235
232
  }
236
233
  };
237
- return (f, i) => (c(), u("div", He, [
238
- e("div", Ue, [
239
- e("div", Ve, [
240
- e("div", Be, [
241
- e("div", ze, [
242
- e("div", Ge, [
243
- r.value ? (c(), u("div", Ze, Je)) : (c(), u("div", De, [
234
+ return (f, i) => (c(), u("div", je, [
235
+ t("div", Pe, [
236
+ t("div", Ue, [
237
+ t("div", Ve, [
238
+ t("div", Be, [
239
+ t("div", He, [
240
+ r.value ? (c(), u("div", Oe, Ke)) : (c(), u("div", ze, [
244
241
  (c(), u("svg", {
245
242
  onClick: i[0] || (i[0] = (h) => A()),
246
243
  xmlns: "http://www.w3.org/2000/svg",
247
244
  fill: "currentColor",
248
245
  class: "bi bi-send ml-2 h-7 w-7 rotate-45 rounded",
249
246
  viewBox: "0 0 16 16"
250
- }, We))
247
+ }, De))
251
248
  ]))
252
249
  ]),
253
- e("div", Xe, [
254
- Z(e("input", {
250
+ t("div", Ye, [
251
+ Z(t("input", {
255
252
  onKeyup: [
256
253
  i[1] || (i[1] = Y((h) => r.value ? "" : A(), ["enter"])),
257
- i[3] || (i[3] = (h) => w(v(t).question))
254
+ i[3] || (i[3] = (h) => w(v(e).question))
258
255
  ],
259
- "onUpdate:modelValue": i[2] || (i[2] = (h) => v(t).question = h),
256
+ "onUpdate:modelValue": i[2] || (i[2] = (h) => v(e).question = h),
260
257
  class: "fontFormattingAMA text-[0.8125rem] md:text-[0.9375rem] rounded-lg flex w-full border border-genpact-darkest-teal py-4 pl-7 pr-16",
261
- placeholder: `Ask me about ${v(t).amaSkillName || "Skill Name"}`,
258
+ placeholder: `Ask me about ${v(e).amaSkillName || "Skill Name"}`,
262
259
  type: "text",
263
260
  ref_key: "AiSearch",
264
261
  ref: l
265
- }, null, 40, et), [
266
- [K, v(t).question]
262
+ }, null, 40, Je), [
263
+ [K, v(e).question]
267
264
  ])
268
265
  ])
269
266
  ]),
270
- e("div", tt, S(v(t).amaQuestionsLeft) + " questions remaining for the day ", 1),
271
- st
267
+ t("div", Xe, S(v(e).amaQuestionsLeft) + " questions remaining for the day ", 1),
268
+ et
272
269
  ])
273
270
  ])
274
271
  ])
275
272
  ]));
276
273
  }
277
274
  });
278
- const ot = /* @__PURE__ */ $(at, [["__scopeId", "data-v-18fef92d"]]), C = (n) => (N("data-v-944ca5e3"), n = n(), E(), n), nt = /* @__PURE__ */ C(() => /* @__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]" }, [
279
- /* @__PURE__ */ e("div", { class: "text-2xl font-[700]" }, "Assessment Access Required"),
280
- /* @__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 ")
281
- ], -1)), rt = {
275
+ const st = /* @__PURE__ */ $(tt, [["__scopeId", "data-v-18fef92d"]]), C = (n) => (N("data-v-944ca5e3"), n = n(), E(), n), at = /* @__PURE__ */ C(() => /* @__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]" }, [
276
+ /* @__PURE__ */ t("div", { class: "text-2xl font-[700]" }, "Assessment Access Required"),
277
+ /* @__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 ")
278
+ ], -1)), ot = {
282
279
  key: 1,
283
280
  className: "h-screen flex flex-col items-stretch"
284
- }, lt = { class: "z-20" }, it = /* @__PURE__ */ C(() => /* @__PURE__ */ e("div", { class: "mt-6" }, null, -1)), ct = { class: "flex h-full items-stretch overflow-hidden" }, dt = { class: "mx-auto w-11/12 bg-white" }, ut = { class: "relative flex h-full w-full flex-col items-stretch overflow-hidden" }, _t = /* @__PURE__ */ C(() => /* @__PURE__ */ e("div", { class: "mt-[160px]" }, null, -1)), mt = { class: "relative" }, pt = /* @__PURE__ */ y({
281
+ }, nt = { class: "z-20" }, rt = /* @__PURE__ */ C(() => /* @__PURE__ */ t("div", { class: "mt-6" }, null, -1)), lt = { class: "flex h-full items-stretch overflow-hidden" }, it = { class: "mx-auto w-11/12 bg-white" }, ct = { class: "relative flex h-full w-full flex-col items-stretch overflow-hidden" }, dt = /* @__PURE__ */ C(() => /* @__PURE__ */ t("div", { class: "mt-[160px]" }, null, -1)), ut = { class: "relative" }, _t = /* @__PURE__ */ y({
285
282
  __name: "AssessmentAMA",
286
283
  setup(n) {
287
- const t = d(!0), o = d(!1), l = k(), _ = F();
284
+ const e = d(!0), o = d(!1), l = k(), m = F();
288
285
  d("");
289
- const r = d(((m) => new URLSearchParams(window.location.search).get(m) || "")("amaId"));
286
+ const r = d(((_) => new URLSearchParams(window.location.search).get(_) || "")("amaId"));
290
287
  l.amaSkillId = r.value ?? "", Q(async () => {
291
- t.value = !0, await s(), t.value = !1;
288
+ e.value = !0, await s(), e.value = !1;
292
289
  });
293
290
  const s = async () => {
294
- var m, w, A, f, i, h, b;
291
+ var _, w, A, f, i, h, b;
295
292
  try {
296
293
  if (r.value === null)
297
294
  throw {
@@ -306,40 +303,40 @@ const ot = /* @__PURE__ */ $(at, [["__scopeId", "data-v-18fef92d"]]), C = (n) =>
306
303
  const a = await te(
307
304
  `/getLearnerData?amaSkillId=${r.value}`
308
305
  );
309
- l.initialize(a.data), l.amaQuestionsLeft = (m = a == null ? void 0 : a.data) == null ? void 0 : m.questionsLeftAIGC, l.amaSkillName = (w = a == null ? void 0 : a.data) == null ? void 0 : w.skillName, t.value = !1;
306
+ l.initialize(a.data), l.amaQuestionsLeft = (_ = a == null ? void 0 : a.data) == null ? void 0 : _.questionsLeftAIGC, l.amaSkillName = (w = a == null ? void 0 : a.data) == null ? void 0 : w.skillName, e.value = !1;
310
307
  } catch (a) {
311
- if (console.error(a), t.value = !1, T.isAxiosError(a) && ((A = a.response) != null && A.status) || a && typeof a == "object" && "response" in a && a.response && typeof a.response == "object" && "status" in a.response && a.response.status) {
308
+ if (console.error(a), e.value = !1, T.isAxiosError(a) && ((A = a.response) != null && A.status) || a && typeof a == "object" && "response" in a && a.response && typeof a.response == "object" && "status" in a.response && a.response.status) {
312
309
  const g = a;
313
310
  if (console.log("Error found!"), console.error((f = g.response) == null ? void 0 : f.data), ((i = g.response) == null ? void 0 : i.status) === 424 || ((h = g.response) == null ? void 0 : h.status) === 425) {
314
311
  o.value = !0;
315
312
  return;
316
313
  }
317
- _.setError(((b = g.response) == null ? void 0 : b.data).message);
314
+ m.setError(((b = g.response) == null ? void 0 : b.data).message);
318
315
  } else
319
- _.setError("There was an issue, please contact helpmate");
316
+ m.setError("There was an issue, please contact helpmate");
320
317
  }
321
318
  };
322
- return (m, w) => (c(), u("section", null, [
319
+ return (_, w) => (c(), u("section", null, [
323
320
  x(z, { "is-visible": o.value }, {
324
321
  default: J(() => [
325
- nt
322
+ at
326
323
  ]),
327
324
  _: 1
328
325
  }, 8, ["is-visible"]),
329
- e("div", null, [
330
- t.value ? (c(), X(V, { key: 0 })) : (c(), u("main", rt, [
331
- e("div", lt, [
326
+ t("div", null, [
327
+ e.value ? (c(), X(B, { key: 0 })) : (c(), u("main", ot, [
328
+ t("div", nt, [
332
329
  x(ce)
333
330
  ]),
334
- it,
335
- e("div", ct, [
336
- e("div", dt, [
337
- e("div", ut, [
338
- x(Pe),
339
- _t
331
+ rt,
332
+ t("div", lt, [
333
+ t("div", it, [
334
+ t("div", ct, [
335
+ x(Te),
336
+ dt
340
337
  ]),
341
- e("div", mt, [
342
- x(ot)
338
+ t("div", ut, [
339
+ x(st)
343
340
  ])
344
341
  ])
345
342
  ])
@@ -348,7 +345,7 @@ const ot = /* @__PURE__ */ $(at, [["__scopeId", "data-v-18fef92d"]]), C = (n) =>
348
345
  ]));
349
346
  }
350
347
  });
351
- const wt = /* @__PURE__ */ $(pt, [["__scopeId", "data-v-944ca5e3"]]);
348
+ const xt = /* @__PURE__ */ $(_t, [["__scopeId", "data-v-944ca5e3"]]);
352
349
  export {
353
- wt as default
350
+ xt as default
354
351
  };
@@ -1,9 +1,9 @@
1
- import { _ as el, a as $u, L as tl } from "./LoadingSimulation-ed8e2e4f.mjs";
2
- import { _ as rl, a as Ku, Q as _t, M as va } from "./Modal-2a097c78.mjs";
3
- import { d as Ae, r as N, H as Tt, o as O, c as D, a as P, u as Xe, k as kn, y as _o, h as Se, s as Ju, t as Je, b as M, f as Ce, i as fe, I as To, F as bo, e as Mo, w as xo, J as nl, p as Nn, g as zn, G as qi, C as jn, z as il, K as sl, q as Ve, n as bt, L as ol, m as Gu, M as Qu, l as al } from "./main-48da8199.mjs";
1
+ import { _ as el, a as $u, L as tl } from "./LoadingSimulation-ec18b2ef.mjs";
2
+ import { _ as rl, a as Ku, Q as _t, M as va } from "./Modal-34bd751a.mjs";
3
+ import { d as Ae, r as N, H as Tt, o as O, c as D, a as P, u as Xe, k as kn, y as _o, h as Se, s as Ju, t as Je, b as M, f as Ce, i as fe, I as To, F as bo, e as Mo, w as xo, J as nl, p as Nn, g as zn, G as qi, C as jn, z as il, K as sl, q as Ve, n as bt, L as ol, m as Gu, M as Qu, l as al } from "./main-fee11cf2.mjs";
4
4
  import { _ as jt } from "./_plugin-vue_export-helper-dad06003.mjs";
5
- import { c as q, a as cl, r as ul } from "./_commonjsHelpers-79296848.mjs";
6
- import { g as Ni, p as pl } from "./api-0ecf07d1.mjs";
5
+ import { c as q, a as cl, r as ul } from "./_commonjsHelpers-a1d29b72.mjs";
6
+ import { g as Ni, p as pl } from "./api-b792715e.mjs";
7
7
  import "./loadernew-ac153a51.mjs";
8
8
  const dl = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#021c42] md:pr-6 lg:pr-6" }, ll = ["href"], hl = /* @__PURE__ */ P("img", {
9
9
  class: "h-11 w-auto cursor-pointer",
@@ -1,8 +1,8 @@
1
- import { d as G, N 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-48da8199.mjs";
1
+ import { d as G, N 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-fee11cf2.mjs";
2
2
  import { _ as j } from "./loadernew-ac153a51.mjs";
3
- import { p as B, g as Q } from "./api-0ecf07d1.mjs";
3
+ import { p as B, g as Q } from "./api-b792715e.mjs";
4
4
  import { _ as X } from "./genome-Logo-white-ffcf2413.mjs";
5
- import { r as Z } from "./ArrowLeftCircleIcon-d51afb45.mjs";
5
+ import { r as Z } from "./ArrowLeftCircleIcon-815948fd.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, N 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-48da8199.mjs";
1
+ import { d as j, N 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-fee11cf2.mjs";
2
2
  import { _ as K } from "./loadernew-ac153a51.mjs";
3
- import { p as $ } from "./api-0ecf07d1.mjs";
3
+ import { p as $ } from "./api-b792715e.mjs";
4
4
  import { _ as X } from "./genome-Logo-white-ffcf2413.mjs";
5
- import { r as Z } from "./ArrowLeftCircleIcon-d51afb45.mjs";
5
+ import { r as Z } from "./ArrowLeftCircleIcon-815948fd.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",