@genpact/genome.mfe.mgtwin-app 1.1.317-alpha → 1.1.319-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-c9f2a7b9.mjs → ArrowLeftCircleIcon-d1d1d85b.mjs} +1 -1
  2. package/dist/{AssessmentAMA-b07e83d5.mjs → AssessmentAMA-aa5d5f49.mjs} +97 -97
  3. package/dist/{AssessmentSimulation-70ee812d.mjs → AssessmentSimulation-40e4aa07.mjs} +9 -9
  4. package/dist/{EditSkillAdminData-e696c69b.mjs → EditSkillAdminData-0f8c109a.mjs} +3 -3
  5. package/dist/{EditSkillData-f1176639.mjs → EditSkillData-b9774796.mjs} +3 -3
  6. package/dist/{HomeView-abfafcbb.mjs → HomeView-f09da0db.mjs} +195 -195
  7. package/dist/{Loading-f3465c5e.mjs → Loading-436f42a2.mjs} +1 -1
  8. package/dist/{LoadingSimulation-e594bd82.mjs → LoadingSimulation-2e09ef88.mjs} +1 -1
  9. package/dist/{Modal-9f4995ec.mjs → Modal-2cde5f09.mjs} +1 -1
  10. package/dist/{PaperAirplaneIcon-d2ca0f8c.mjs → PaperAirplaneIcon-1c105913.mjs} +1 -1
  11. package/dist/{PromptTesting-856736c6.mjs → PromptTesting-8348b74a.mjs} +3 -3
  12. package/dist/{SkillAutomation-32b6a9eb.mjs → SkillAutomation-8f7cacd8.mjs} +3 -3
  13. package/dist/{SkillData-8a1e24db.mjs → SkillData-b4dd2242.mjs} +3 -3
  14. package/dist/{Testcase-f59e7f03.mjs → Testcase-a35cd6ed.mjs} +3 -3
  15. package/dist/{UnderMaintenance-eb471018.mjs → UnderMaintenance-63256fdf.mjs} +1 -1
  16. package/dist/{_commonjsHelpers-9c3f6692.mjs → _commonjsHelpers-92615264.mjs} +1 -1
  17. package/dist/{api-ee91e0ad.mjs → api-4de69f18.mjs} +1 -1
  18. package/dist/{main-3eaa1b6a.mjs → main-3f017e53.mjs} +1074 -1074
  19. package/dist/mgtwin.es.min.js +1 -1
  20. package/dist/mgtwin.umd.min.js +4 -4
  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-3eaa1b6a.mjs";
1
+ import { o as e, c as r, a } from "./main-3f017e53.mjs";
2
2
  function c(l, o) {
3
3
  return e(), r("svg", {
4
4
  xmlns: "http://www.w3.org/2000/svg",
@@ -1,10 +1,10 @@
1
- import { _ as H, a as U, L as V } from "./LoadingSimulation-e594bd82.mjs";
2
- import { _ as B, Q as M, a as z } from "./Modal-9f4995ec.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 E, g as C, C as N, z as D, h as v, F as W, e as O, f as I, b as x, k as F, w as Z, m as K, M as Y, q as T, s as J, l as X } from "./main-3eaa1b6a.mjs";
1
+ import { _ as H, a as U, L as V } from "./LoadingSimulation-2e09ef88.mjs";
2
+ import { _ as B, Q as M, a as z } from "./Modal-2cde5f09.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-3f017e53.mjs";
4
4
  import { _ as $ } from "./_plugin-vue_export-helper-dad06003.mjs";
5
- import { p as ee, g as te } from "./api-ee91e0ad.mjs";
5
+ import { p as ee, g as se } from "./api-4de69f18.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 te = { 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", {
8
8
  class: "h-11 w-auto cursor-pointer",
9
9
  src: H,
10
10
  alt: "Genome Logo"
@@ -19,11 +19,11 @@ const se = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#0
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, [
22
+ const s = d(""), o = d("");
23
+ return R === "prod" ? s.value = "https://genome.genpact.com" : s.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", te, [
24
24
  e("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
  }, ne, 8, ae),
29
29
  e("a", {
@@ -33,10 +33,10 @@ const se = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#0
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 font-bold text-black text-[18px] md:text-[22px]" }, pe = ["innerHTML"], me = { class: "w-full px-3 py-2 text-base text-black text-[12px] md:text-[16px] font-[550]" }, he = ["innerHTML"], fe = /* @__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" }, pe = ["innerHTML"], me = { class: "w-full px-3 py-2 text-black text-xs md:text-base font-[550]" }, he = ["innerHTML"], fe = /* @__PURE__ */ e("br", null, null, -1), ge = /* @__PURE__ */ y({
37
37
  __name: "greetingsAMA",
38
38
  setup(n) {
39
- const t = k(), o = ` Hi ${t.learnerName || "Learner"}! &#128075;`, l = L(() => o), _ = L(() => `Welcome to AI Guru Connect your on-demand learning buddy.<br/> Ask me anything about the <span class='font-[600]'>${t.amaSkillName || "Skill"}</span>, and I’ll give you quick, clear answers so you can keep learning without pause.`);
39
+ const s = k(), o = ` Hi ${s.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]'>${s.amaSkillName || "Skill"}</span>? <br/> Ask me to explain concepts, provide examples, or clarify anything that seems confusing.`);
40
40
  return (m, r) => (c(), u("section", null, [
41
41
  e("div", de, [
42
42
  e("div", ue, [
@@ -60,12 +60,12 @@ const se = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#0
60
60
  }
61
61
  },
62
62
  setup(n) {
63
- const t = n, o = L(() => {
64
- const l = t.answer.replace(/[*#]/g, "").replace(
63
+ const s = n, o = L(() => {
64
+ const l = s.answer.replace(/[*#]/g, "").replace(
65
65
  /Assessment Rating & Feedback/g,
66
66
  '<div style="font-size: 26px; font-weight: bold; text-decoration: underline;">Rating & Feedback</div>'
67
67
  ), _ = /\[([^\]]+)\]\((https?:\/\/[^\s]+)\)/g;
68
- return l.replace(_, (m, r, s) => `<a href="${s}" target="_blank" rel="noopener noreferrer" style="color: blue; text-decoration: underline;">${r}</a>`);
68
+ return l.replace(_, (m, r, t) => `<a href="${t}" target="_blank" rel="noopener noreferrer" style="color: blue; text-decoration: underline;">${r}</a>`);
69
69
  });
70
70
  return (l, _) => (c(), u("div", ve, [
71
71
  e("div", xe, [
@@ -86,20 +86,20 @@ const Ae = /* @__PURE__ */ $(we, [["__scopeId", "data-v-38edcca6"]]), be = { cla
86
86
  }
87
87
  },
88
88
  setup(n) {
89
- return (t, o) => (c(), u("div", be, [
89
+ return (s, o) => (c(), u("div", be, [
90
90
  e("div", $e, [
91
91
  e("div", ke, S(n.question), 1)
92
92
  ])
93
93
  ]));
94
94
  }
95
- }), Me = (n) => (E("data-v-12a02acf"), n = n(), C(), 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" }, Ee = /* @__PURE__ */ Me(() => /* @__PURE__ */ e("span", { class: "dot-animation" }, [
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
96
  /* @__PURE__ */ e("span", null, "."),
97
97
  /* @__PURE__ */ e("span", null, "."),
98
98
  /* @__PURE__ */ e("span", null, ".")
99
- ], -1)), Ce = /* @__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({
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({
100
100
  __name: "LoadingResponseAMA",
101
101
  setup(n) {
102
- const t = d("Generating response"), o = d([
102
+ const s = d("Generating response"), o = d([
103
103
  "This may take a few seconds",
104
104
  "Fetching the best response for you",
105
105
  "Thinking... give me a moment",
@@ -110,72 +110,72 @@ const Ae = /* @__PURE__ */ $(we, [["__scopeId", "data-v-38edcca6"]]), be = { cla
110
110
  ]);
111
111
  return setTimeout(() => {
112
112
  const l = Math.floor(Math.random() * o.value.length);
113
- t.value = o.value[l];
113
+ s.value = o.value[l];
114
114
  }, 15e3), (l, _) => (c(), u("div", Ie, [
115
115
  e("div", Le, [
116
- e("div", Se, S(t.value), 1),
117
- Ee
116
+ e("div", Se, S(s.value), 1),
117
+ Ne
118
118
  ]),
119
- Ce
119
+ Ee
120
120
  ]));
121
121
  }
122
122
  });
123
- const Qe = /* @__PURE__ */ $(Ne, [["__scopeId", "data-v-12a02acf"]]), Re = { key: 0 }, Fe = { key: 1 }, Te = {
123
+ const Ce = /* @__PURE__ */ $(Qe, [["__scopeId", "data-v-12a02acf"]]), Re = { key: 0 }, Fe = { key: 1 }, Te = {
124
124
  key: 0,
125
125
  class: "flex"
126
126
  }, je = /* @__PURE__ */ y({
127
127
  __name: "conversationAMA",
128
128
  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;"';
129
+ let s = d(""), o = d("");
130
+ s.value = '<a style="color:#00AECF;"', o.value = '<ul style="list-style: disc !important; margin-left: 3.5rem !important; padding: 0;"';
131
131
  const l = k(), _ = d();
132
- return N(() => {
133
- var s;
132
+ return Q(() => {
133
+ var t;
134
134
  const m = document.getElementsByName("askQuestion"), r = Array.from(m);
135
- m.length && ((s = r == null ? void 0 : r.pop()) == null || s.scrollIntoView({ behavior: "smooth", block: "center" }));
135
+ m.length && ((t = r == null ? void 0 : r.pop()) == null || t.scrollIntoView({ behavior: "smooth", block: "center" }));
136
136
  }), D(() => {
137
- var s;
137
+ var t;
138
138
  const m = document.getElementsByName("askQuestion"), r = Array.from(m);
139
- m.length && ((s = r == null ? void 0 : r.pop()) == null || s.scrollIntoView({ behavior: "smooth", block: "center" }));
139
+ m.length && ((t = r == null ? void 0 : r.pop()) == null || t.scrollIntoView({ behavior: "smooth", block: "center" }));
140
140
  }), (m, r) => (c(), u("div", {
141
141
  ref_key: "nestedElement",
142
142
  ref: _,
143
143
  class: "smooth-scroll overflow-auto md:px-6 px-2"
144
144
  }, [
145
- v(ge),
146
- (c(!0), u(W, null, O(x(l).conversations, (s, p) => (c(), u("div", { key: p }, [
147
- s.question ? (c(), u("div", Re, [
148
- v(qe, {
149
- question: s.question,
150
- c2question: s.c2question,
151
- "show-feedback": s.showFeedback,
145
+ x(ge),
146
+ (c(!0), u(O, null, W(v(l).conversations, (t, p) => (c(), u("div", { key: p }, [
147
+ t.question ? (c(), u("div", Re, [
148
+ x(qe, {
149
+ question: t.question,
150
+ c2question: t.c2question,
151
+ "show-feedback": t.showFeedback,
152
152
  id: `qId${p}`,
153
153
  name: "askQuestion",
154
154
  "que-id": p
155
155
  }, null, 8, ["question", "c2question", "show-feedback", "id", "que-id"])
156
156
  ])) : I("", !0),
157
- s.answer ? (c(), u("div", Fe, [
158
- v(Ae, {
159
- question: s == null ? void 0 : s.question,
160
- c2question: s == null ? void 0 : s.c2question,
161
- "show-sources": s == null ? void 0 : s.showSources,
162
- questionId: s.id,
163
- answer: s.answer.replaceAll("<a", x(t)).replaceAll("<ul", x(o)),
164
- "show-feedback": s.showFeedback,
165
- "related-ques": s.relatedQues,
166
- "options-array": s.optionsArray,
157
+ t.answer ? (c(), u("div", Fe, [
158
+ x(Ae, {
159
+ question: t == null ? void 0 : t.question,
160
+ c2question: t == null ? void 0 : t.c2question,
161
+ "show-sources": t == null ? void 0 : t.showSources,
162
+ questionId: t.id,
163
+ answer: t.answer.replaceAll("<a", v(s)).replaceAll("<ul", v(o)),
164
+ "show-feedback": t.showFeedback,
165
+ "related-ques": t.relatedQues,
166
+ "options-array": t.optionsArray,
167
167
  "ans-id": p
168
168
  }, null, 8, ["question", "c2question", "show-sources", "questionId", "answer", "show-feedback", "related-ques", "options-array", "ans-id"])
169
169
  ])) : I("", !0)
170
170
  ]))), 128)),
171
- x(l).dotLoader ? (c(), u("div", Te, [
172
- v(Qe)
171
+ v(l).dotLoader ? (c(), u("div", Te, [
172
+ x(Ce)
173
173
  ])) : I("", !0)
174
174
  ], 512));
175
175
  }
176
176
  });
177
- const Pe = /* @__PURE__ */ $(je, [["__scopeId", "data-v-e6168dd4"]]), q = (n) => (E("data-v-482b2d96"), n = n(), C(), 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 }, We = /* @__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)), Oe = [
178
- We
177
+ const Pe = /* @__PURE__ */ $(je, [["__scopeId", "data-v-e6168dd4"]]), q = (n) => (N("data-v-8e36b250"), 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
179
  ], Ze = {
180
180
  key: 1,
181
181
  class: "tooltip"
@@ -186,15 +186,15 @@ const Pe = /* @__PURE__ */ $(je, [["__scopeId", "data-v-e6168dd4"]]), q = (n) =>
186
186
  }, null, -1)), Je = [
187
187
  Ke,
188
188
  Ye
189
- ], Xe = { class: "flex justify-start" }, et = { class: "flex justify-start items-start text-[#161916]" }, tt = /* @__PURE__ */ q(() => /* @__PURE__ */ e("div", { class: "pt-1 text-start font-sans" }, [
189
+ ], Xe = { class: "flex justify-start" }, es = ["placeholder"], ss = { class: "flex justify-start items-start text-[#161916]" }, ts = /* @__PURE__ */ q(() => /* @__PURE__ */ e("div", { class: "pt-1 text-start font-sans" }, [
190
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)), st = /* @__PURE__ */ y({
191
+ ], -1)), as = /* @__PURE__ */ y({
192
192
  __name: "NewQuestionAMA",
193
193
  setup(n) {
194
- const t = k(), o = F();
195
- t.question = "";
194
+ const s = k(), o = F();
195
+ s.question = "";
196
196
  const l = d(null), _ = d(!1), m = d(M), r = d(!1);
197
- N(() => {
197
+ Q(() => {
198
198
  l.value.focus();
199
199
  });
200
200
  const p = d(((h) => new URLSearchParams(window.location.search).get(h) || "")("amaId"));
@@ -205,29 +205,29 @@ const Pe = /* @__PURE__ */ $(je, [["__scopeId", "data-v-e6168dd4"]]), q = (n) =>
205
205
  }, A = async () => {
206
206
  var h, i, f, b;
207
207
  try {
208
- if (t.question.trim().length < 1) {
208
+ if (s.question.trim().length < 1) {
209
209
  o.setError("Please enter answer!");
210
210
  return;
211
211
  }
212
- if (t.amaQuestionsLeft <= 0) {
212
+ if (s.amaQuestionsLeft <= 0) {
213
213
  o.setError("You have exhausted your question limit!");
214
214
  return;
215
215
  }
216
- r.value = !0, t.dotLoader = !0;
216
+ r.value = !0, s.dotLoader = !0;
217
217
  const a = {
218
- question: t == null ? void 0 : t.question
218
+ question: s == null ? void 0 : s.question
219
219
  };
220
- t.conversations.push(a);
220
+ s.conversations.push(a);
221
221
  const g = d("");
222
- g.value = t == null ? void 0 : t.question, t.question = "";
222
+ g.value = s == null ? void 0 : s.question, s.question = "";
223
223
  const j = {
224
224
  skillId: p.value,
225
225
  question: g.value,
226
- past_messages: t.past_messages
226
+ past_messages: s.past_messages
227
227
  }, P = await ee("/amaBotResponse", j);
228
- t.addConversation((h = P.data) == null ? void 0 : h.body, "new"), r.value = !1, t.dotLoader = !1;
228
+ s.addConversation((h = P.data) == null ? void 0 : h.body, "new"), r.value = !1, s.dotLoader = !1;
229
229
  } catch (a) {
230
- if (console.error(a), t.dotLoader = !1, r.value = !1, T.isAxiosError(a)) {
230
+ if (console.error(a), s.dotLoader = !1, r.value = !1, T.isAxiosError(a)) {
231
231
  const g = a;
232
232
  console.log("Error found!"), console.error((i = g.response) == null ? void 0 : i.data), o.setError((b = (f = g.response) == null ? void 0 : f.data) == null ? void 0 : b.message);
233
233
  } else
@@ -247,50 +247,50 @@ const Pe = /* @__PURE__ */ $(je, [["__scopeId", "data-v-e6168dd4"]]), q = (n) =>
247
247
  fill: "currentColor",
248
248
  class: "bi bi-send ml-2 h-7 w-7 rotate-45 rounded",
249
249
  viewBox: "0 0 16 16"
250
- }, Oe))
250
+ }, We))
251
251
  ]))
252
252
  ]),
253
253
  e("div", Xe, [
254
254
  Z(e("input", {
255
255
  onKeyup: [
256
256
  i[1] || (i[1] = Y((f) => r.value ? "" : A(), ["enter"])),
257
- i[3] || (i[3] = (f) => w(x(t).question))
257
+ i[3] || (i[3] = (f) => w(v(s).question))
258
258
  ],
259
- "onUpdate:modelValue": i[2] || (i[2] = (f) => x(t).question = f),
259
+ "onUpdate:modelValue": i[2] || (i[2] = (f) => v(s).question = f),
260
260
  class: "fontFormattingAMA rounded-lg flex w-full border border-genpact-darkest-teal py-[18px] pl-[30px] pr-[70px]",
261
- placeholder: "Write your answer here...",
261
+ placeholder: `Ask me about ${v(s).amaSkillName || "Skill Name"}`,
262
262
  type: "text",
263
263
  ref_key: "AiSearch",
264
264
  ref: l
265
- }, null, 544), [
266
- [K, x(t).question]
265
+ }, null, 40, es), [
266
+ [K, v(s).question]
267
267
  ])
268
268
  ])
269
269
  ]),
270
- e("div", et, S(x(t).amaQuestionsLeft) + " questions remaining for the day ", 1),
271
- tt
270
+ e("div", ss, S(v(s).amaQuestionsLeft) + " questions remaining for the day ", 1),
271
+ ts
272
272
  ])
273
273
  ])
274
274
  ])
275
275
  ]));
276
276
  }
277
277
  });
278
- const at = /* @__PURE__ */ $(st, [["__scopeId", "data-v-482b2d96"]]), Q = (n) => (E("data-v-944ca5e3"), n = n(), C(), n), ot = /* @__PURE__ */ Q(() => /* @__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]" }, [
278
+ const os = /* @__PURE__ */ $(as, [["__scopeId", "data-v-8e36b250"]]), C = (n) => (N("data-v-944ca5e3"), n = n(), E(), n), ns = /* @__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
279
  /* @__PURE__ */ e("div", { class: "text-2xl font-[700]" }, "Assessment Access Required"),
280
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)), nt = {
281
+ ], -1)), rs = {
282
282
  key: 1,
283
283
  className: "h-screen flex flex-col items-stretch"
284
- }, rt = { class: "z-20" }, lt = /* @__PURE__ */ Q(() => /* @__PURE__ */ e("div", { class: "mt-6" }, null, -1)), it = { class: "flex h-full items-stretch overflow-hidden" }, ct = { class: "mx-auto w-11/12 bg-white" }, dt = { class: "relative flex h-full w-full flex-col items-stretch overflow-hidden" }, ut = /* @__PURE__ */ Q(() => /* @__PURE__ */ e("div", { class: "mt-[160px]" }, null, -1)), _t = { class: "relative" }, pt = /* @__PURE__ */ y({
284
+ }, ls = { class: "z-20" }, is = /* @__PURE__ */ C(() => /* @__PURE__ */ e("div", { class: "mt-6" }, null, -1)), cs = { class: "flex h-full items-stretch overflow-hidden" }, ds = { class: "mx-auto w-11/12 bg-white" }, us = { class: "relative flex h-full w-full flex-col items-stretch overflow-hidden" }, _s = /* @__PURE__ */ C(() => /* @__PURE__ */ e("div", { class: "mt-[160px]" }, null, -1)), ps = { class: "relative" }, ms = /* @__PURE__ */ y({
285
285
  __name: "AssessmentAMA",
286
286
  setup(n) {
287
- const t = d(!0), o = d(!1), l = k(), _ = F();
287
+ const s = d(!0), o = d(!1), l = k(), _ = F();
288
288
  d("");
289
289
  const r = d(((p) => new URLSearchParams(window.location.search).get(p) || "")("amaId"));
290
- l.amaSkillId = r.value ?? "", N(async () => {
291
- t.value = !0, await s(), t.value = !1;
290
+ l.amaSkillId = r.value ?? "", Q(async () => {
291
+ s.value = !0, await t(), s.value = !1;
292
292
  });
293
- const s = async () => {
293
+ const t = async () => {
294
294
  var p, w, A, h, i, f, b;
295
295
  try {
296
296
  if (r.value === null)
@@ -303,12 +303,12 @@ const at = /* @__PURE__ */ $(st, [["__scopeId", "data-v-482b2d96"]]), Q = (n) =>
303
303
  }
304
304
  };
305
305
  console.log("before calling get learner");
306
- const a = await te(
306
+ const a = await se(
307
307
  `/getLearnerData?amaSkillId=${r.value}`
308
308
  );
309
- l.initialize(a.data), l.amaQuestionsLeft = (p = a == null ? void 0 : a.data) == null ? void 0 : p.questionsLeftAIGC, l.amaSkillName = (w = a == null ? void 0 : a.data) == null ? void 0 : w.skillName, t.value = !1;
309
+ l.initialize(a.data), l.amaQuestionsLeft = (p = a == null ? void 0 : a.data) == null ? void 0 : p.questionsLeftAIGC, l.amaSkillName = (w = a == null ? void 0 : a.data) == null ? void 0 : w.skillName, s.value = !1;
310
310
  } 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) {
311
+ if (console.error(a), s.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
312
  const g = a;
313
313
  if (console.log("Error found!"), console.error((h = g.response) == null ? void 0 : h.data), ((i = g.response) == null ? void 0 : i.status) === 424 || ((f = g.response) == null ? void 0 : f.status) === 425) {
314
314
  o.value = !0;
@@ -320,26 +320,26 @@ const at = /* @__PURE__ */ $(st, [["__scopeId", "data-v-482b2d96"]]), Q = (n) =>
320
320
  }
321
321
  };
322
322
  return (p, w) => (c(), u("section", null, [
323
- v(z, { "is-visible": o.value }, {
323
+ x(z, { "is-visible": o.value }, {
324
324
  default: J(() => [
325
- ot
325
+ ns
326
326
  ]),
327
327
  _: 1
328
328
  }, 8, ["is-visible"]),
329
329
  e("div", null, [
330
- t.value ? (c(), X(V, { key: 0 })) : (c(), u("main", nt, [
331
- e("div", rt, [
332
- v(ce)
330
+ s.value ? (c(), X(V, { key: 0 })) : (c(), u("main", rs, [
331
+ e("div", ls, [
332
+ x(ce)
333
333
  ]),
334
- lt,
335
- e("div", it, [
336
- e("div", ct, [
337
- e("div", dt, [
338
- v(Pe),
339
- ut
334
+ is,
335
+ e("div", cs, [
336
+ e("div", ds, [
337
+ e("div", us, [
338
+ x(Pe),
339
+ _s
340
340
  ]),
341
- e("div", _t, [
342
- v(at)
341
+ e("div", ps, [
342
+ x(os)
343
343
  ])
344
344
  ])
345
345
  ])
@@ -348,7 +348,7 @@ const at = /* @__PURE__ */ $(st, [["__scopeId", "data-v-482b2d96"]]), Q = (n) =>
348
348
  ]));
349
349
  }
350
350
  });
351
- const yt = /* @__PURE__ */ $(pt, [["__scopeId", "data-v-944ca5e3"]]);
351
+ const ws = /* @__PURE__ */ $(ms, [["__scopeId", "data-v-944ca5e3"]]);
352
352
  export {
353
- yt as default
353
+ ws as default
354
354
  };
@@ -1,9 +1,9 @@
1
- import { _ as el, a as $u, L as tl } from "./LoadingSimulation-e594bd82.mjs";
2
- import { _ as rl, a as Ku, Q as _t, M as va } from "./Modal-9f4995ec.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-3eaa1b6a.mjs";
1
+ import { _ as el, a as $u, L as tl } from "./LoadingSimulation-2e09ef88.mjs";
2
+ import { _ as rl, a as Ku, Q as _t, M as va } from "./Modal-2cde5f09.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-3f017e53.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-9c3f6692.mjs";
6
- import { g as Ni, p as pl } from "./api-ee91e0ad.mjs";
5
+ import { c as q, a as cl, r as ul } from "./_commonjsHelpers-92615264.mjs";
6
+ import { g as Ni, p as pl } from "./api-4de69f18.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",
@@ -34,7 +34,7 @@ const dl = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#0
34
34
  }, ml, 8, fl)
35
35
  ]));
36
36
  }
37
- }), Cl = { class: "max-h-screen overflow-auto md:p-6 p-3 flex flex-col items-center justify-center gap-4 text-[#161916] fontFormattingAMA" }, yl = /* @__PURE__ */ P("div", { class: "text-[22px] font-[700]" }, "Please Note Before You Begin", -1), Pl = /* @__PURE__ */ P("ul", { className: "list-disc max-h-[40vh] overflow-auto space-y-3 pl-6 text-[#102345] text-[15px]" }, [
37
+ }), Cl = { class: "max-h-screen overflow-auto md:p-6 p-3 flex flex-col items-center justify-center gap-4 text-[#161916] fontFormattingAMA" }, yl = /* @__PURE__ */ P("div", { class: "text-xl font-[700]" }, "Please Note Before You Begin", -1), Pl = /* @__PURE__ */ P("ul", { className: "list-disc max-h-[40vh] overflow-auto space-y-3 pl-6 text-[#102345] text-base" }, [
38
38
  /* @__PURE__ */ P("li", null, [
39
39
  /* @__PURE__ */ fe(" Choose a "),
40
40
  /* @__PURE__ */ P("span", { class: "font-[600]" }, "quiet space"),
@@ -73,7 +73,7 @@ const dl = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#0
73
73
  /* @__PURE__ */ P("span", { class: "font-[600]" }, "10 minutes "),
74
74
  /* @__PURE__ */ fe(", so plan accordingly. ")
75
75
  ])
76
- ], -1), Rl = { class: "flex items-end justify-start" }, El = { class: "fontFormattingAMA w-full bg-gray-100 rounded-lg" }, Al = { class: "w-full rounded-md px-3 py-2 text-lg font-bold text-black md:text-[22px]" }, wl = { class: "w-full px-3 py-2 text-base text-black md:text-[16px] font-[550]" }, Il = {
76
+ ], -1), Rl = { class: "flex items-end justify-start" }, El = { class: "fontFormattingAMA w-full bg-gray-100 rounded-lg" }, Al = { class: "w-full rounded-md px-3 py-2 text-lg md:text-xl font-bold text-black" }, wl = { class: "w-full px-3 py-2 text-base text-black md:text-base font-[550]" }, Il = {
77
77
  key: 0,
78
78
  class: "fontFormattingAMA"
79
79
  }, _l = /* @__PURE__ */ P("br", null, null, -1), Tl = ` You're about to step into a realistic, voice-based client conversation powered by AI.
@@ -99,7 +99,7 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
99
99
  s.value = !1, e("callQuestion");
100
100
  }),
101
101
  type: "button",
102
- class: "bg-[#021c42] rounded-md px-4 py-1.5 text-center text-[16px] text-white cursor-pointer italic hover:bg-blue-700"
102
+ class: "bg-[#021c42] rounded-md px-4 py-1.5 text-center text-base text-white cursor-pointer italic hover:bg-blue-700"
103
103
  }, " Proceed ")
104
104
  ])
105
105
  ]),
@@ -116,7 +116,7 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
116
116
  type: "button",
117
117
  id: "button",
118
118
  onClick: u,
119
- class: "mt-4 bg-[#021c42] rounded-md px-4 py-1.5 text-center text-[16px] text-white cursor-pointer italic hover:bg-blue-700 w-32"
119
+ class: "mt-4 bg-[#021c42] rounded-md px-4 py-1.5 text-center text-base text-white cursor-pointer italic hover:bg-blue-700 w-32"
120
120
  }, " Let's begin ")
121
121
  ])) : Ce("", !0),
122
122
  _l
@@ -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-3eaa1b6a.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-3f017e53.mjs";
2
2
  import { _ as j } from "./loadernew-ac153a51.mjs";
3
- import { p as B, g as Q } from "./api-ee91e0ad.mjs";
3
+ import { p as B, g as Q } from "./api-4de69f18.mjs";
4
4
  import { _ as X } from "./genome-Logo-white-ffcf2413.mjs";
5
- import { r as Z } from "./ArrowLeftCircleIcon-c9f2a7b9.mjs";
5
+ import { r as Z } from "./ArrowLeftCircleIcon-d1d1d85b.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-3eaa1b6a.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-3f017e53.mjs";
2
2
  import { _ as K } from "./loadernew-ac153a51.mjs";
3
- import { p as $ } from "./api-ee91e0ad.mjs";
3
+ import { p as $ } from "./api-4de69f18.mjs";
4
4
  import { _ as X } from "./genome-Logo-white-ffcf2413.mjs";
5
- import { r as Z } from "./ArrowLeftCircleIcon-c9f2a7b9.mjs";
5
+ import { r as Z } from "./ArrowLeftCircleIcon-d1d1d85b.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",