@genpact/genome.mfe.mgtwin-app 1.1.441-alpha → 1.1.443-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 (25) hide show
  1. package/dist/{AMABot-6f20b813.mjs → AMABot-c1df78bc.mjs} +204 -198
  2. package/dist/{AssessmentSimulation-f71e37dc.mjs → AssessmentSimulation-e870462d.mjs} +2021 -1999
  3. package/dist/{EditSkillAdminData-57ebd2fc.mjs → EditSkillAdminData-3efd59f6.mjs} +2 -2
  4. package/dist/{EditSkillData-54c98ddd.mjs → EditSkillData-89debf99.mjs} +2 -2
  5. package/dist/{HomeView-2058fac7.mjs → HomeView-7be25eb0.mjs} +4 -4
  6. package/dist/{Loading-3138344f.mjs → Loading-5666b6e5.mjs} +1 -1
  7. package/dist/{PaperAirplaneIcon-873a4037.mjs → PaperAirplaneIcon-faee8a6d.mjs} +1 -1
  8. package/dist/{PromptTesting-f11ef712.mjs → PromptTesting-81a51ff6.mjs} +3 -3
  9. package/dist/{SkillAutomation-29b2252d.mjs → SkillAutomation-9b1479e3.mjs} +3 -3
  10. package/dist/{SkillData-09a8a175.mjs → SkillData-86c18d9e.mjs} +3 -3
  11. package/dist/{Testcase-40b089b4.mjs → Testcase-0f21fe90.mjs} +3 -3
  12. package/dist/{UnderMaintenance-20d46e5d.mjs → UnderMaintenance-ab0dd048.mjs} +1 -1
  13. package/dist/{VoiceTestcase-7b4bf4e4.mjs → VoiceTestcase-6aa6b473.mjs} +3 -3
  14. package/dist/{XMarkIcon-5cf84f8e.mjs → XMarkIcon-f5d7f1c1.mjs} +1 -1
  15. package/dist/{api-c006f408.mjs → api-ff86d688.mjs} +1 -1
  16. package/dist/{index.es-cd4c58cb.mjs → index.es-7205d25d.mjs} +6 -6
  17. package/dist/{main-125c0cff.mjs → main-98d6075c.mjs} +284 -284
  18. package/dist/mgtwin.es.min.js +1 -1
  19. package/dist/mgtwin.umd.min.js +53 -53
  20. package/dist/native/aiguru-native.css +1 -1
  21. package/dist/native/aiguru-native.umd.min.js +50 -50
  22. package/dist/{simulationPopup.vue_vue_type_script_setup_true_lang-da88b71b.mjs → simulationPopup.vue_vue_type_script_setup_true_lang-7c6b5796.mjs} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/{voiceServices-d21484ab.mjs → voiceServices-2489e2ec.mjs} +2 -2
  25. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
- import { r as Z, _ as ee, a as te, b as se, d as oe, c as ne, L as ae } from "./simulationPopup.vue_vue_type_script_setup_true_lang-da88b71b.mjs";
1
+ import { r as Z, _ as ee, a as te, b as se, d as oe, c as ne, L as ae } from "./simulationPopup.vue_vue_type_script_setup_true_lang-7c6b5796.mjs";
2
2
  import { _ as re, Q as j } from "./constants-e0c83ac4.mjs";
3
- import { o as c, c as h, a as t, d as A, z as C, r as b, G as ie, I as le, b as d, B as L, p as I, g as S, t as $, h as v, s as T, T as P, u as N, H, C as de, i as E, f as k, F as ce, e as ue, N as z, J as W, k as G, E as D, q as pe, w as me, m as _e, P as he, n as fe, R as K, x as O, U as ge, l as R } from "./main-125c0cff.mjs";
4
- import { _ as F } from "./_plugin-vue_export-helper-dad06003.mjs";
5
- import { u as Y, i as J } from "./api-c006f408.mjs";
3
+ import { o as u, c as f, a as t, d as A, z as E, r as b, G as ie, I as le, b as c, B, p as M, g as q, t as C, h as v, s as T, T as P, u as N, H as G, C as ce, i as F, f as $, F as de, e as ue, N as z, J as W, k as V, E as D, q as pe, w as _e, m as me, P as he, n as fe, R as K, x as O, U as ge, l as R } from "./main-98d6075c.mjs";
4
+ import { _ as k } from "./_plugin-vue_export-helper-dad06003.mjs";
5
+ import { u as Y, i as J } from "./api-ff86d688.mjs";
6
6
  import "./loadernew-ac153a51.mjs";
7
- function xe(o, e) {
8
- return c(), h("svg", {
7
+ function xe(s, e) {
8
+ return u(), f("svg", {
9
9
  xmlns: "http://www.w3.org/2000/svg",
10
10
  fill: "none",
11
11
  viewBox: "0 0 24 24",
@@ -20,8 +20,8 @@ function xe(o, e) {
20
20
  })
21
21
  ]);
22
22
  }
23
- function ve(o, e) {
24
- return c(), h("svg", {
23
+ function ve(s, e) {
24
+ return u(), f("svg", {
25
25
  xmlns: "http://www.w3.org/2000/svg",
26
26
  fill: "none",
27
27
  viewBox: "0 0 24 24",
@@ -36,8 +36,8 @@ function ve(o, e) {
36
36
  })
37
37
  ]);
38
38
  }
39
- function be(o, e) {
40
- return c(), h("svg", {
39
+ function be(s, e) {
40
+ return u(), f("svg", {
41
41
  xmlns: "http://www.w3.org/2000/svg",
42
42
  fill: "none",
43
43
  viewBox: "0 0 24 24",
@@ -66,22 +66,22 @@ const we = { class: "flex h-14 w-full flex-1 items-center justify-between bg-bla
66
66
  Fe
67
67
  ], qe = /* @__PURE__ */ A({
68
68
  __name: "headerAMA",
69
- setup(o) {
70
- const e = C(), r = b(""), i = b(""), p = Z(ie(le, void 0), window.location);
71
- return p === "prod" ? r.value = "https://genome.genpact.com" : r.value = "https://genome-dev.genpact.com", p === "prod" ? i.value = "https://genome.genpact.com/#aiguru" : i.value = "https://genome-dev.genpact.com/#aiguru", (u, a) => (c(), h("nav", we, [
69
+ setup(s) {
70
+ const e = E(), r = b(""), i = b(""), p = Z(ie(le, void 0), window.location);
71
+ return p === "prod" ? r.value = "https://genome.genpact.com" : r.value = "https://genome-dev.genpact.com", p === "prod" ? i.value = "https://genome.genpact.com/#aiguru" : i.value = "https://genome-dev.genpact.com/#aiguru", (d, a) => (u(), f("nav", we, [
72
72
  t("a", {
73
73
  class: "px-2 md:px-0 lg:px-0",
74
- href: d(e).url(r.value),
74
+ href: c(e).url(r.value),
75
75
  target: "_blank"
76
76
  }, ke, 8, ye),
77
77
  t("a", {
78
78
  class: "px-2 md:px-0 lg:px-0",
79
- href: d(e).url(i.value),
79
+ href: c(e).url(i.value),
80
80
  target: "_blank"
81
81
  }, Me, 8, $e)
82
82
  ]));
83
83
  }
84
- }), Le = (o) => (I("data-v-c2a7fb37"), o = o(), S(), o), Ce = { class: "fontFormattingAMA flex justify-start py-2" }, Ie = { class: "w-full max-w-[92%]" }, Se = { class: "line-break rounded-2xl rounded-bl-sm border border-gray-200 bg-gray-50 px-5 py-4 text-sm leading-6 md:px-6 md:py-5 text-[#3f4451]" }, Be = ["innerHTML"], Ee = /* @__PURE__ */ Le(() => /* @__PURE__ */ t("div", { class: "mt-1 text-xs text-gray-400" }, "AI Guru", -1)), Ne = /* @__PURE__ */ A({
84
+ }), Ce = (s) => (M("data-v-c2a7fb37"), s = s(), q(), s), Le = { class: "fontFormattingAMA flex justify-start py-2" }, Ie = { class: "w-full max-w-[92%]" }, Se = { class: "line-break rounded-2xl rounded-bl-sm border border-gray-200 bg-gray-50 px-5 py-4 text-sm leading-6 md:px-6 md:py-5 text-[#3f4451]" }, Be = ["innerHTML"], Ee = /* @__PURE__ */ Ce(() => /* @__PURE__ */ t("div", { class: "mt-1 text-xs text-gray-400" }, "AI Guru", -1)), Ne = /* @__PURE__ */ A({
85
85
  __name: "responseAMA",
86
86
  props: {
87
87
  answer: {
@@ -89,50 +89,50 @@ const we = { class: "flex h-14 w-full flex-1 items-center justify-between bg-bla
89
89
  required: !0
90
90
  }
91
91
  },
92
- setup(o) {
93
- const e = o, r = C(), i = (a) => a.replace(/\*\*(.+?)\*\*/g, "<strong>$1</strong>").replace(/\*/g, ""), p = (a) => {
94
- const s = [];
95
- let m = [];
92
+ setup(s) {
93
+ const e = s, r = E(), i = (a) => a.replace(/\*\*(.+?)\*\*/g, "<strong>$1</strong>").replace(/\*/g, ""), p = (a) => {
94
+ const o = [];
95
+ let h = [];
96
96
  const n = () => {
97
- m.length && (s.push({ html: `<ul style="list-style: disc; margin: 0 0 0 2.5rem; padding: 0;">${m.join("")}</ul>`, block: !0 }), m = []);
97
+ h.length && (o.push({ html: `<ul style="list-style: disc; margin: 0 0 0 2.5rem; padding: 0;">${h.join("")}</ul>`, block: !0 }), h = []);
98
98
  };
99
99
  for (const l of a.split(`
100
100
  `)) {
101
101
  if (!l.trim()) {
102
102
  n();
103
- const _ = s[s.length - 1];
104
- _ && !_.block && _.html !== "" && s.push({ html: "", block: !1 });
103
+ const _ = o[o.length - 1];
104
+ _ && !_.block && _.html !== "" && o.push({ html: "", block: !1 });
105
105
  continue;
106
106
  }
107
107
  const x = l.match(/^\s*[-*•]\s+(.*)$/);
108
108
  if (x) {
109
- m.push(`<li>${i(x[1])}</li>`);
109
+ h.push(`<li>${i(x[1])}</li>`);
110
110
  continue;
111
111
  }
112
112
  n();
113
- const f = l.match(/^\s*#{1,6}\s*(.*)$/);
114
- f ? s.push({ html: `<div style="font-weight: 700;">${i(f[1])}</div>`, block: !0 }) : s.push({ html: i(l), block: !1 });
113
+ const m = l.match(/^\s*#{1,6}\s*(.*)$/);
114
+ m ? o.push({ html: `<div style="font-weight: 700;">${i(m[1])}</div>`, block: !0 }) : o.push({ html: i(l), block: !1 });
115
115
  }
116
116
  n();
117
- for (let l = s.length - 2; l >= 0; l--)
118
- s[l].html === "" && !s[l].block && s[l + 1].block && s.splice(l, 1);
119
- for (; s.length && s[s.length - 1].html === ""; )
120
- s.pop();
121
- return s.reduce((l, x, f) => f === 0 ? x.html : l + (x.block || s[f - 1].block ? "" : `
117
+ for (let l = o.length - 2; l >= 0; l--)
118
+ o[l].html === "" && !o[l].block && o[l + 1].block && o.splice(l, 1);
119
+ for (; o.length && o[o.length - 1].html === ""; )
120
+ o.pop();
121
+ return o.reduce((l, x, m) => m === 0 ? x.html : l + (x.block || o[m - 1].block ? "" : `
122
122
  `) + x.html, "");
123
- }, u = L(() => {
123
+ }, d = B(() => {
124
124
  const a = p(e.answer).replace(
125
125
  /Assessment Rating & Feedback/g,
126
126
  '<div style="font-size: 26px; font-weight: bold; text-decoration: underline;">Rating & Feedback</div>'
127
- ), s = /\[([^\]]+)\]\((https?:\/\/[^\s]+)\)/g, m = a.replace(s, (n, l, x) => `<a href="${r.url(x)}" target="_blank" rel="noopener noreferrer" style="color: #00AECF; text-decoration: underline;">${l}</a>`);
128
- return r.html(m);
127
+ ), o = /\[([^\]]+)\]\((https?:\/\/[^\s]+)\)/g, h = a.replace(o, (n, l, x) => `<a href="${r.url(x)}" target="_blank" rel="noopener noreferrer" style="color: #00AECF; text-decoration: underline;">${l}</a>`);
128
+ return r.html(h);
129
129
  });
130
- return (a, s) => (c(), h("div", Ce, [
130
+ return (a, o) => (u(), f("div", Le, [
131
131
  t("div", Ie, [
132
132
  t("div", Se, [
133
133
  t("span", {
134
134
  class: "fontFormattingAMA answer-link",
135
- innerHTML: u.value
135
+ innerHTML: d.value
136
136
  }, null, 8, Be)
137
137
  ]),
138
138
  Ee
@@ -140,7 +140,7 @@ const we = { class: "flex h-14 w-full flex-1 items-center justify-between bg-bla
140
140
  ]));
141
141
  }
142
142
  });
143
- const je = /* @__PURE__ */ F(Ne, [["__scopeId", "data-v-c2a7fb37"]]), Qe = { class: "fontFormattingAMA flex justify-end py-2" }, Re = { class: "max-w-[80%]" }, Te = { class: "rounded-2xl rounded-br-sm bg-[#FFAB28] px-4 py-3" }, He = { class: "fontFormattingAMA whitespace-pre-line break-words text-sm leading-5 text-[#181C23]" }, ze = /* @__PURE__ */ t("div", { class: "mt-1 text-right text-xs text-gray-400" }, "You", -1), Ge = /* @__PURE__ */ A({
143
+ const je = /* @__PURE__ */ k(Ne, [["__scopeId", "data-v-c2a7fb37"]]), Qe = { class: "fontFormattingAMA flex justify-end py-2" }, Re = { class: "max-w-[80%]" }, Te = { class: "rounded-2xl rounded-br-sm bg-[#FFAB28] px-4 py-3" }, Ge = { class: "fontFormattingAMA whitespace-pre-line break-words text-sm leading-5 text-[#181C23]" }, ze = /* @__PURE__ */ t("div", { class: "mt-1 text-right text-xs text-gray-400" }, "You", -1), Ve = /* @__PURE__ */ A({
144
144
  __name: "learnerAMA",
145
145
  props: {
146
146
  question: {
@@ -148,35 +148,35 @@ const je = /* @__PURE__ */ F(Ne, [["__scopeId", "data-v-c2a7fb37"]]), Qe = { cla
148
148
  required: !0
149
149
  }
150
150
  },
151
- setup(o) {
152
- return (e, r) => (c(), h("div", Qe, [
151
+ setup(s) {
152
+ return (e, r) => (u(), f("div", Qe, [
153
153
  t("div", Re, [
154
154
  t("div", Te, [
155
- t("div", He, $(o.question), 1)
155
+ t("div", Ge, C(s.question), 1)
156
156
  ]),
157
157
  ze
158
158
  ])
159
159
  ]));
160
160
  }
161
- }), V = (o) => (I("data-v-a8911c8a"), o = o(), S(), o), Ve = { class: "fontFormattingAMA flex w-full justify-start py-2" }, Ue = { class: "w-full max-w-[92%]" }, Pe = { class: "rounded-2xl rounded-bl-sm border border-gray-200 bg-gray-50 px-5 py-4 md:px-6 md:py-5" }, We = {
161
+ }), H = (s) => (M("data-v-a8911c8a"), s = s(), q(), s), He = { class: "fontFormattingAMA flex w-full justify-start py-2" }, Ue = { class: "w-full max-w-[92%]" }, Pe = { class: "rounded-2xl rounded-bl-sm border border-gray-200 bg-gray-50 px-5 py-4 md:px-6 md:py-5" }, We = {
162
162
  class: "flex items-center gap-2.5",
163
163
  role: "status",
164
164
  "aria-live": "polite"
165
- }, De = /* @__PURE__ */ V(() => /* @__PURE__ */ t("span", {
165
+ }, De = /* @__PURE__ */ H(() => /* @__PURE__ */ t("span", {
166
166
  class: "dots flex shrink-0 items-center gap-1",
167
167
  "aria-hidden": "true"
168
168
  }, [
169
169
  /* @__PURE__ */ t("span", { class: "h-1.5 w-1.5 rounded-full bg-[#FFAB28]" }),
170
170
  /* @__PURE__ */ t("span", { class: "h-1.5 w-1.5 rounded-full bg-[#FFAB28]" }),
171
171
  /* @__PURE__ */ t("span", { class: "h-1.5 w-1.5 rounded-full bg-[#FFAB28]" })
172
- ], -1)), Ke = /* @__PURE__ */ V(() => /* @__PURE__ */ t("div", { class: "mt-4 space-y-2.5" }, [
172
+ ], -1)), Ke = /* @__PURE__ */ H(() => /* @__PURE__ */ t("div", { class: "mt-4 space-y-2.5" }, [
173
173
  /* @__PURE__ */ t("div", { class: "shimmer h-2.5 w-full rounded" }),
174
174
  /* @__PURE__ */ t("div", { class: "shimmer h-2.5 w-11/12 rounded" }),
175
175
  /* @__PURE__ */ t("div", { class: "shimmer h-2.5 w-4/6 rounded" })
176
- ], -1)), Oe = /* @__PURE__ */ V(() => /* @__PURE__ */ t("div", { class: "mt-1 text-xs text-gray-400" }, "AI Guru", -1)), Ye = /* @__PURE__ */ A({
176
+ ], -1)), Oe = /* @__PURE__ */ H(() => /* @__PURE__ */ t("div", { class: "mt-1 text-xs text-gray-400" }, "AI Guru", -1)), Ye = /* @__PURE__ */ A({
177
177
  __name: "LoadingResponseAMA",
178
- setup(o) {
179
- const e = C(), r = [
178
+ setup(s) {
179
+ const e = E(), r = [
180
180
  "Generating response",
181
181
  "Fetching the best response for you",
182
182
  "Thinking... give me a moment",
@@ -185,10 +185,10 @@ const je = /* @__PURE__ */ F(Ne, [["__scopeId", "data-v-c2a7fb37"]]), Qe = { cla
185
185
  "Almost there... just a bit longer",
186
186
  "Compiling a response for you"
187
187
  ], i = b(0), p = setInterval(() => {
188
- var u, a;
189
- !((a = (u = e.scope) == null ? void 0 : u.isActive) != null && a.call(u)) && e.native || (i.value = (i.value + 1) % r.length);
188
+ var d, a;
189
+ !((a = (d = e.scope) == null ? void 0 : d.isActive) != null && a.call(d)) && e.native || (i.value = (i.value + 1) % r.length);
190
190
  }, 5e3);
191
- return e.own(() => clearInterval(p)), (u, a) => (c(), h("div", Ve, [
191
+ return e.own(() => clearInterval(p)), (d, a) => (u(), f("div", He, [
192
192
  t("div", Ue, [
193
193
  t("div", Pe, [
194
194
  t("div", We, [
@@ -198,10 +198,10 @@ const je = /* @__PURE__ */ F(Ne, [["__scopeId", "data-v-c2a7fb37"]]), Qe = { cla
198
198
  mode: "out-in"
199
199
  }, {
200
200
  default: T(() => [
201
- (c(), h("span", {
201
+ (u(), f("span", {
202
202
  key: i.value,
203
203
  class: "text-xs italic leading-4 text-gray-500"
204
- }, $(r[i.value]), 1))
204
+ }, C(r[i.value]), 1))
205
205
  ]),
206
206
  _: 1
207
207
  })
@@ -213,7 +213,7 @@ const je = /* @__PURE__ */ F(Ne, [["__scopeId", "data-v-c2a7fb37"]]), Qe = { cla
213
213
  ]));
214
214
  }
215
215
  });
216
- const Je = /* @__PURE__ */ F(Ye, [["__scopeId", "data-v-a8911c8a"]]), X = (o) => (I("data-v-3bded0ae"), o = o(), S(), o), Xe = {
216
+ const Je = /* @__PURE__ */ k(Ye, [["__scopeId", "data-v-a8911c8a"]]), X = (s) => (M("data-v-3bded0ae"), s = s(), q(), s), Xe = {
217
217
  key: 0,
218
218
  class: "fontFormattingAMA flex h-full min-h-[260px] flex-col items-center justify-center px-2 py-8 text-center"
219
219
  }, Ze = {
@@ -224,34 +224,34 @@ const Je = /* @__PURE__ */ F(Ye, [["__scopeId", "data-v-a8911c8a"]]), X = (o) =>
224
224
  class: "flex"
225
225
  }, it = /* @__PURE__ */ A({
226
226
  __name: "conversationAMA",
227
- setup(o) {
227
+ setup(s) {
228
228
  let e = b(""), r = b("");
229
229
  e.value = '<a style="color:#00AECF;"', r.value = '<ul style="list-style: disc !important; margin-left: 3.5rem !important; padding: 0;"';
230
- const i = N(), p = C(), u = b(), a = () => {
230
+ const i = N(), p = E(), d = b(), a = () => {
231
231
  var n;
232
- const s = p.native && p.root && typeof p.root.querySelectorAll == "function" ? p.root.querySelectorAll('[name="askQuestion"]') : document.getElementsByName("askQuestion"), m = Array.from(s);
233
- m.length && ((n = m.pop()) == null || n.scrollIntoView({ behavior: "smooth", block: "center" }));
232
+ const o = p.native && p.root && typeof p.root.querySelectorAll == "function" ? p.root.querySelectorAll('[name="askQuestion"]') : document.getElementsByName("askQuestion"), h = Array.from(o);
233
+ h.length && ((n = h.pop()) == null || n.scrollIntoView({ behavior: "smooth", block: "center" }));
234
234
  };
235
- return H(a), de(a), (s, m) => (c(), h("div", {
235
+ return G(a), ce(a), (o, h) => (u(), f("div", {
236
236
  ref_key: "nestedElement",
237
- ref: u,
237
+ ref: d,
238
238
  class: "smooth-scroll overflow-auto px-4 md:px-10 lg:px-12"
239
239
  }, [
240
- !d(i).conversations.length && !d(i).dotLoader ? (c(), h("div", Xe, [
240
+ !c(i).conversations.length && !c(i).dotLoader ? (u(), f("div", Xe, [
241
241
  t("span", Ze, [
242
- v(d(be), { class: "h-7 w-7 text-[#E08A00] md:h-8 md:w-8" })
242
+ v(c(be), { class: "h-7 w-7 text-[#E08A00] md:h-8 md:w-8" })
243
243
  ]),
244
244
  et,
245
245
  t("p", tt, [
246
- E(" What would you like to know about "),
247
- t("span", st, $(d(i).amaSkillName || "Skill"), 1),
248
- E("? ")
246
+ F(" What would you like to know about "),
247
+ t("span", st, C(c(i).amaSkillName || "Skill"), 1),
248
+ F("? ")
249
249
  ]),
250
250
  ot
251
- ])) : k("", !0),
252
- (c(!0), h(ce, null, ue(d(i).conversations, (n, l) => (c(), h("div", { key: l }, [
253
- n.question ? (c(), h("div", nt, [
254
- v(Ge, {
251
+ ])) : $("", !0),
252
+ (u(!0), f(de, null, ue(c(i).conversations, (n, l) => (u(), f("div", { key: l }, [
253
+ n.question ? (u(), f("div", nt, [
254
+ v(Ve, {
255
255
  question: n.question,
256
256
  c2question: n.c2question,
257
257
  "show-feedback": n.showFeedback,
@@ -259,69 +259,75 @@ const Je = /* @__PURE__ */ F(Ye, [["__scopeId", "data-v-a8911c8a"]]), X = (o) =>
259
259
  name: "askQuestion",
260
260
  "que-id": l
261
261
  }, null, 8, ["question", "c2question", "show-feedback", "id", "que-id"])
262
- ])) : k("", !0),
263
- n.answer ? (c(), h("div", at, [
262
+ ])) : $("", !0),
263
+ n.answer ? (u(), f("div", at, [
264
264
  v(je, {
265
265
  question: n == null ? void 0 : n.question,
266
266
  c2question: n == null ? void 0 : n.c2question,
267
267
  "show-sources": n == null ? void 0 : n.showSources,
268
268
  questionId: n.id,
269
- answer: n.answer.replaceAll("<a", d(e)).replaceAll("<ul", d(r)),
269
+ answer: n.answer.replaceAll("<a", c(e)).replaceAll("<ul", c(r)),
270
270
  "show-feedback": n.showFeedback,
271
271
  "related-ques": n.relatedQues,
272
272
  "options-array": n.optionsArray,
273
273
  "ans-id": l
274
274
  }, null, 8, ["question", "c2question", "show-sources", "questionId", "answer", "show-feedback", "related-ques", "options-array", "ans-id"])
275
- ])) : k("", !0)
275
+ ])) : $("", !0)
276
276
  ]))), 128)),
277
- d(i).dotLoader ? (c(), h("div", rt, [
277
+ c(i).dotLoader ? (u(), f("div", rt, [
278
278
  v(Je)
279
- ])) : k("", !0)
279
+ ])) : $("", !0)
280
280
  ], 512));
281
281
  }
282
282
  });
283
- const lt = /* @__PURE__ */ F(it, [["__scopeId", "data-v-3bded0ae"]]), dt = { class: "fontFormattingAMA flex items-center justify-between gap-3 border-b border-gray-100 px-4 pb-3 pt-1 md:px-10 md:pb-4 lg:px-12" }, ct = { class: "min-w-0 text-base font-semibold text-[#181C23] md:text-lg" }, ut = { key: 0 }, pt = ["innerHTML"], mt = ["disabled"], _t = /* @__PURE__ */ A({
283
+ const lt = /* @__PURE__ */ k(it, [["__scopeId", "data-v-3bded0ae"]]), ct = (s) => (M("data-v-9c9fcaf5"), s = s(), q(), s), dt = { class: "fontFormattingAMA flex items-center justify-between gap-3 border-b border-gray-100 px-4 pb-3 pt-1 md:px-10 md:pb-4 lg:px-12" }, ut = { class: "flex min-w-0 items-center gap-2 text-xl font-bold tracking-tight text-[#181C23] md:text-2xl lg:text-3xl" }, pt = { class: "truncate" }, _t = { class: "text-[#B26A00]" }, mt = /* @__PURE__ */ ct(() => /* @__PURE__ */ t("span", {
284
+ class: "wave inline-block shrink-0",
285
+ "aria-hidden": "true"
286
+ }, "👋", -1)), ht = ["disabled"], ft = /* @__PURE__ */ A({
284
287
  __name: "greetingsAMA",
285
- setup(o) {
286
- const e = N(), r = C(), i = ` Hi ${e.learnerName || "Learner"}! &#128075;`, p = L(() => i), u = L(() => r.text(i.replace("&#128075;", "👋")));
287
- 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.`);
288
- const a = () => {
288
+ setup(s) {
289
+ const e = N(), r = B(() => e.learnerName || "Learner");
290
+ B(() => `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.`);
291
+ const i = () => {
289
292
  !e.conversations.length || e.dotLoader || (e.conversations = [], e.past_messages = []);
290
293
  };
291
- return (s, m) => (c(), h("section", dt, [
292
- t("div", ct, [
293
- d(r).native ? (c(), h("div", ut, $(u.value), 1)) : (c(), h("div", {
294
- key: 1,
295
- innerHTML: p.value
296
- }, null, 8, pt))
294
+ return (p, d) => (u(), f("section", dt, [
295
+ t("h2", ut, [
296
+ t("span", pt, [
297
+ F(" Hi "),
298
+ t("span", _t, C(r.value), 1),
299
+ F("! ")
300
+ ]),
301
+ mt
297
302
  ]),
298
303
  t("button", {
299
304
  type: "button",
300
- disabled: !d(e).conversations.length || d(e).dotLoader,
305
+ disabled: !c(e).conversations.length || c(e).dotLoader,
301
306
  class: "flex shrink-0 items-center gap-1.5 rounded-full border border-[#FFAB28]/50 bg-[#FFF4E0] px-3.5 py-1.5 text-xs font-semibold text-[#7A4A00] shadow-sm transition hover:-translate-y-0.5 hover:border-[#FFAB28] hover:bg-[#FFAB28] hover:text-[#181C23] hover:shadow-md disabled:pointer-events-none disabled:opacity-50 md:text-sm",
302
- onClick: m[0] || (m[0] = (n) => a())
307
+ onClick: d[0] || (d[0] = (a) => i())
303
308
  }, [
304
- v(d(ve), {
309
+ v(c(ve), {
305
310
  class: "h-4 w-4",
306
311
  "aria-hidden": "true"
307
312
  }),
308
- E(" New chat ")
309
- ], 8, mt)
313
+ F(" New chat ")
314
+ ], 8, ht)
310
315
  ]));
311
316
  }
312
- }), Q = (o) => String(o.query.amaId ?? "");
313
- function ht(o, e, r, i, p, u = (a) => !1) {
317
+ });
318
+ const gt = /* @__PURE__ */ k(ft, [["__scopeId", "data-v-9c9fcaf5"]]), Q = (s) => String(s.query.amaId ?? "");
319
+ function xt(s, e, r, i, p, d = (a) => !1) {
314
320
  const a = b(!1);
315
- let s = 0, m = !0;
321
+ let o = 0, h = !0;
316
322
  const n = () => {
317
- s += 1, a.value = !1, e.dotLoader = !1;
323
+ o += 1, a.value = !1, e.dotLoader = !1;
318
324
  };
319
- z(() => Q(o), n), W(() => {
320
- m = !1, n();
325
+ z(() => Q(s), n), W(() => {
326
+ h = !1, n();
321
327
  });
322
- const l = (f, _) => m && f === s && _ === Q(o);
328
+ const l = (m, _) => h && m === o && _ === Q(s);
323
329
  return { isWaitingResponse: a, sendQuestion: async () => {
324
- var M, q, g;
330
+ var L, I, g;
325
331
  if (e.question.trim().length < 1) {
326
332
  r.setError("Please enter question!");
327
333
  return;
@@ -330,144 +336,144 @@ function ht(o, e, r, i, p, u = (a) => !1) {
330
336
  r.setError("You have exhausted your question limit!");
331
337
  return;
332
338
  }
333
- const f = ++s, _ = Q(o);
339
+ const m = ++o, _ = Q(s);
334
340
  a.value = !0, e.dotLoader = !0;
335
341
  const w = e.question;
336
342
  e.conversations.push({ question: w }), e.question = "";
337
- const B = {
343
+ const S = {
338
344
  skillId: _,
339
345
  question: w,
340
346
  past_messages: e.past_messages
341
347
  };
342
348
  try {
343
- const y = await i(B);
344
- if (!l(f, _))
349
+ const y = await i(S);
350
+ if (!l(m, _))
345
351
  return;
346
- e.addConversation((M = y.data) == null ? void 0 : M.body, "new"), a.value = !1, e.dotLoader = !1;
352
+ e.addConversation((L = y.data) == null ? void 0 : L.body, "new"), a.value = !1, e.dotLoader = !1;
347
353
  } catch (y) {
348
- if (u(y) || !l(f, _))
354
+ if (d(y) || !l(m, _))
349
355
  return;
350
- a.value = !1, e.dotLoader = !1, p(y) ? r.setError((g = (q = y.response) == null ? void 0 : q.data) == null ? void 0 : g.message) : r.setError("There was an issue, please contact helpmate");
356
+ a.value = !1, e.dotLoader = !1, p(y) ? r.setError((g = (I = y.response) == null ? void 0 : I.data) == null ? void 0 : g.message) : r.setError("There was an issue, please contact helpmate");
351
357
  }
352
358
  } };
353
359
  }
354
- const U = (o) => (I("data-v-81aaf2f7"), o = o(), S(), o), ft = { class: "w-full px-4 pb-4 pt-3 md:px-10 lg:px-12" }, gt = { class: "relative" }, xt = { class: "pointer-events-none absolute inset-y-0 left-3 flex items-center md:left-4" }, vt = {
360
+ const U = (s) => (M("data-v-81aaf2f7"), s = s(), q(), s), vt = { class: "w-full px-4 pb-4 pt-3 md:px-10 lg:px-12" }, bt = { class: "relative" }, wt = { class: "pointer-events-none absolute inset-y-0 left-3 flex items-center md:left-4" }, yt = {
355
361
  class: "flex h-8 w-8 items-center justify-center rounded-full bg-[#FFF4E0] text-[#E08A00] md:h-9 md:w-9",
356
362
  "aria-hidden": "true"
357
- }, bt = ["placeholder"], wt = { class: "absolute inset-y-0 right-2 flex items-center md:right-3" }, yt = {
363
+ }, At = ["placeholder"], kt = { class: "absolute inset-y-0 right-2 flex items-center md:right-3" }, $t = {
358
364
  key: 1,
359
365
  class: "flex h-10 w-10 items-center justify-center rounded-full bg-[#FFF4E0]",
360
366
  role: "status",
361
367
  "aria-label": "Waiting for response",
362
368
  title: "Waiting for response"
363
- }, At = /* @__PURE__ */ U(() => /* @__PURE__ */ t("span", { class: "h-5 w-5 animate-spin rounded-full border-[2.5px] border-[#FFAB28] border-t-transparent" }, null, -1)), kt = [
364
- At
365
- ], $t = { class: "fontFormattingAMA flex flex-wrap items-center justify-center gap-x-1.5 gap-y-0.5 pt-2 text-center text-xs text-gray-500 md:text-sm" }, Ft = /* @__PURE__ */ U(() => /* @__PURE__ */ t("span", null, "Note: AI-generated response may not be fully accurate; check with experts for critical information.", -1)), Mt = /* @__PURE__ */ U(() => /* @__PURE__ */ t("span", {
369
+ }, Ft = /* @__PURE__ */ U(() => /* @__PURE__ */ t("span", { class: "h-5 w-5 animate-spin rounded-full border-[2.5px] border-[#FFAB28] border-t-transparent" }, null, -1)), Mt = [
370
+ Ft
371
+ ], qt = { class: "fontFormattingAMA flex flex-wrap items-center justify-center gap-x-1.5 gap-y-0.5 pt-2 text-center text-xs text-gray-500 md:text-sm" }, Ct = /* @__PURE__ */ U(() => /* @__PURE__ */ t("span", null, "Note: AI-generated response may not be fully accurate; check with experts for critical information.", -1)), Lt = /* @__PURE__ */ U(() => /* @__PURE__ */ t("span", {
366
372
  class: "hidden sm:inline",
367
373
  "aria-hidden": "true"
368
- }, "·", -1)), qt = { class: "font-semibold text-[#181C23]" }, Lt = /* @__PURE__ */ A({
374
+ }, "·", -1)), It = { class: "font-semibold text-[#181C23]" }, St = /* @__PURE__ */ A({
369
375
  __name: "NewQuestionAMA",
370
- setup(o) {
371
- const e = N(), r = G();
376
+ setup(s) {
377
+ const e = N(), r = V();
372
378
  e.question = "";
373
- const i = b(null), p = b(!1), u = b(j), a = D(), s = Y(), { isWaitingResponse: m, sendQuestion: n } = ht(
379
+ const i = b(null), p = b(!1), d = b(j), a = D(), o = Y(), { isWaitingResponse: h, sendQuestion: n } = xt(
374
380
  a,
375
381
  e,
376
382
  r,
377
- (f) => s.postApi("/amaBotResponse", f),
383
+ (m) => o.postApi("/amaBotResponse", m),
378
384
  pe.isAxiosError,
379
385
  J
380
386
  );
381
- H(() => {
387
+ G(() => {
382
388
  i.value.focus();
383
389
  });
384
- const l = L(() => e.question.trim().length > 0);
390
+ const l = B(() => e.question.trim().length > 0);
385
391
  z(
386
392
  () => e.question,
387
393
  async () => {
388
394
  await K();
389
- const f = i.value;
390
- f && (f.style.height = "auto", f.style.height = `${f.scrollHeight}px`);
395
+ const m = i.value;
396
+ m && (m.style.height = "auto", m.style.height = `${m.scrollHeight}px`);
391
397
  }
392
398
  );
393
- const x = (f) => {
394
- const _ = f.length;
395
- u.value = j - _, p.value = _ >= j;
399
+ const x = (m) => {
400
+ const _ = m.length;
401
+ d.value = j - _, p.value = _ >= j;
396
402
  };
397
- return (f, _) => (c(), h("div", ft, [
398
- t("div", gt, [
399
- t("div", xt, [
400
- t("span", vt, [
401
- v(d(xe), { class: "h-4 w-4 md:h-5 md:w-5" })
403
+ return (m, _) => (u(), f("div", vt, [
404
+ t("div", bt, [
405
+ t("div", wt, [
406
+ t("span", yt, [
407
+ v(c(xe), { class: "h-4 w-4 md:h-5 md:w-5" })
402
408
  ])
403
409
  ]),
404
- me(t("textarea", {
410
+ _e(t("textarea", {
405
411
  ref_key: "AiSearch",
406
412
  ref: i,
407
- "onUpdate:modelValue": _[0] || (_[0] = (w) => d(e).question = w),
413
+ "onUpdate:modelValue": _[0] || (_[0] = (w) => c(e).question = w),
408
414
  rows: "1",
409
415
  class: "fontFormattingAMA block max-h-40 w-full !cursor-text resize-none overflow-y-auto rounded-2xl border border-[#FFAB28]/40 bg-white py-3 pl-14 pr-16 text-sm leading-6 text-[#181C23] shadow-[0_4px_16px_rgba(7,50,98,0.08)] transition placeholder:text-gray-400 hover:border-[#FFAB28]/70 focus:border-[#FFAB28] focus:outline-none focus:ring-4 focus:ring-[#FFAB28]/20 md:py-4 md:pl-16 md:pr-20 md:text-base",
410
- placeholder: `Ask me about ${d(e).amaSkillName || "Skill Name"}`,
411
- onKeydown: _[1] || (_[1] = he(O((w) => d(m) ? "" : d(n)(), ["exact", "prevent"]), ["enter"])),
412
- onInput: _[2] || (_[2] = (w) => x(d(e).question))
413
- }, null, 40, bt), [
414
- [_e, d(e).question]
416
+ placeholder: `Ask me about ${c(e).amaSkillName || "Skill Name"}`,
417
+ onKeydown: _[1] || (_[1] = he(O((w) => c(h) ? "" : c(n)(), ["exact", "prevent"]), ["enter"])),
418
+ onInput: _[2] || (_[2] = (w) => x(c(e).question))
419
+ }, null, 40, At), [
420
+ [me, c(e).question]
415
421
  ]),
416
- t("div", wt, [
417
- d(m) ? (c(), h("span", yt, kt)) : (c(), h("button", {
422
+ t("div", kt, [
423
+ c(h) ? (u(), f("span", $t, Mt)) : (u(), f("button", {
418
424
  key: 0,
419
425
  type: "button",
420
426
  title: "Send",
421
427
  "aria-label": "Send question",
422
428
  class: fe([l.value ? "bg-[#FFAB28] text-[#181C23] shadow-md hover:-translate-y-0.5 hover:shadow-lg" : "bg-[#FFAB28]/40 text-[#181C23]/60", "flex h-10 w-10 items-center justify-center rounded-full transition"]),
423
- onClick: _[3] || (_[3] = (w) => d(n)())
429
+ onClick: _[3] || (_[3] = (w) => c(n)())
424
430
  }, [
425
- v(d(te), {
431
+ v(c(te), {
426
432
  class: "h-5 w-5",
427
433
  "aria-hidden": "true"
428
434
  })
429
435
  ], 2))
430
436
  ])
431
437
  ]),
432
- t("div", $t, [
433
- v(d(se), {
438
+ t("div", qt, [
439
+ v(c(se), {
434
440
  class: "h-4 w-4 shrink-0 text-[#E08A00]",
435
441
  "aria-hidden": "true"
436
442
  }),
437
- Ft,
438
- Mt,
439
- t("span", qt, $(d(e).amaQuestionsLeft) + " questions remaining for the day", 1)
443
+ Ct,
444
+ Lt,
445
+ t("span", It, C(c(e).amaQuestionsLeft) + " questions remaining for the day", 1)
440
446
  ])
441
447
  ]));
442
448
  }
443
449
  });
444
- const Ct = /* @__PURE__ */ F(Lt, [["__scopeId", "data-v-81aaf2f7"]]), It = (o) => (I("data-v-fb943644"), o = o(), S(), o), St = {
450
+ const Bt = /* @__PURE__ */ k(St, [["__scopeId", "data-v-81aaf2f7"]]), Et = (s) => (M("data-v-fb943644"), s = s(), q(), s), Nt = {
445
451
  class: "inline-flex h-10 w-10 items-center justify-center rounded-full bg-[#FDF3E1] text-[#C68A16]",
446
452
  "aria-hidden": "true"
447
- }, Bt = /* @__PURE__ */ It(() => /* @__PURE__ */ t("div", { class: "mt-3 text-xs font-bold uppercase tracking-[0.12em] text-[#C68A16]" }, "Heads up", -1)), Et = {
453
+ }, jt = /* @__PURE__ */ Et(() => /* @__PURE__ */ t("div", { class: "mt-3 text-xs font-bold uppercase tracking-[0.12em] text-[#C68A16]" }, "Heads up", -1)), Qt = {
448
454
  id: "ama-error-text",
449
455
  class: "mt-1.5 text-base font-semibold leading-snug text-[#181C23]"
450
- }, Nt = /* @__PURE__ */ A({
456
+ }, Rt = /* @__PURE__ */ A({
451
457
  __name: "errorPopupAMA",
452
- setup(o) {
453
- const e = G(), r = b(""), i = b(null), p = () => {
458
+ setup(s) {
459
+ const e = V(), r = b(""), i = b(null), p = () => {
454
460
  r.value = "";
455
461
  };
456
462
  e.$subscribe(
457
- (a, s) => {
458
- s.error && (r.value = s.error, K(() => {
459
- var m;
460
- return (m = i.value) == null ? void 0 : m.focus();
463
+ (a, o) => {
464
+ o.error && (r.value = o.error, K(() => {
465
+ var h;
466
+ return (h = i.value) == null ? void 0 : h.focus();
461
467
  }));
462
468
  },
463
469
  { flush: "sync" }
464
470
  );
465
- const u = (a) => {
471
+ const d = (a) => {
466
472
  r.value && a.key === "Escape" && p();
467
473
  };
468
- return H(() => window.addEventListener("keydown", u)), ge(() => window.removeEventListener("keydown", u)), (a, s) => (c(), R(P, { name: "ama-popup" }, {
474
+ return G(() => window.addEventListener("keydown", d)), ge(() => window.removeEventListener("keydown", d)), (a, o) => (u(), R(P, { name: "ama-popup" }, {
469
475
  default: T(() => [
470
- r.value ? (c(), h("div", {
476
+ r.value ? (u(), f("div", {
471
477
  key: 0,
472
478
  class: "fixed inset-0 z-[99999] flex items-center justify-center bg-[#181C23]/35 p-4 backdrop-blur-[2px]",
473
479
  onClick: p
@@ -477,14 +483,14 @@ const Ct = /* @__PURE__ */ F(Lt, [["__scopeId", "data-v-81aaf2f7"]]), It = (o) =
477
483
  "aria-modal": "true",
478
484
  "aria-labelledby": "ama-error-text",
479
485
  class: "ama-popup-card fontFormattingAMA w-full max-w-[360px] rounded-[14px] border border-[#F3E6CF] bg-[#FFFCF7] px-[22px] pb-5 pt-6 text-center shadow-[0_18px_40px_rgba(24,28,35,0.18)]",
480
- onClick: s[0] || (s[0] = O(() => {
486
+ onClick: o[0] || (o[0] = O(() => {
481
487
  }, ["stop"]))
482
488
  }, [
483
- t("span", St, [
484
- v(d(oe), { class: "h-5 w-5" })
489
+ t("span", Nt, [
490
+ v(c(oe), { class: "h-5 w-5" })
485
491
  ]),
486
- Bt,
487
- t("div", Et, $(r.value), 1),
492
+ jt,
493
+ t("div", Qt, C(r.value), 1),
488
494
  t("button", {
489
495
  ref_key: "okButton",
490
496
  ref: i,
@@ -493,87 +499,87 @@ const Ct = /* @__PURE__ */ F(Lt, [["__scopeId", "data-v-81aaf2f7"]]), It = (o) =
493
499
  onClick: p
494
500
  }, " Got it ", 512)
495
501
  ])
496
- ])) : k("", !0)
502
+ ])) : $("", !0)
497
503
  ]),
498
504
  _: 1
499
505
  }));
500
506
  }
501
507
  });
502
- const jt = /* @__PURE__ */ F(Nt, [["__scopeId", "data-v-fb943644"]]), Qt = (o) => String(o.query.amaId ?? "");
503
- function Rt(o, e, r, i, p = (u) => !1) {
504
- const u = b(!0), a = b(!1);
505
- let s = 0;
506
- const m = (l) => {
508
+ const Tt = /* @__PURE__ */ k(Rt, [["__scopeId", "data-v-fb943644"]]), Gt = (s) => String(s.query.amaId ?? "");
509
+ function zt(s, e, r, i, p = (d) => !1) {
510
+ const d = b(!0), a = b(!1);
511
+ let o = 0;
512
+ const h = (l) => {
507
513
  e.amaSkillId = l, e.amaSkillName = "", e.amaQuestionsLeft = 0, e.question = "", e.conversations = [], e.past_messages = [];
508
514
  }, n = async (l) => {
509
- var _, w, B, M, q;
510
- const x = ++s;
511
- u.value = !0, a.value = !1, m(l);
512
- let f = !1;
515
+ var _, w, S, L, I;
516
+ const x = ++o;
517
+ d.value = !0, a.value = !1, h(l);
518
+ let m = !1;
513
519
  try {
514
520
  const g = await i(l);
515
- if (x !== s)
521
+ if (x !== o)
516
522
  return;
517
523
  e.initialize(g.data), e.amaQuestionsLeft = (_ = g == null ? void 0 : g.data) == null ? void 0 : _.questionsLeftAIGC, e.amaSkillName = (w = g == null ? void 0 : g.data) == null ? void 0 : w.skillName;
518
524
  } catch (g) {
519
525
  if (p(g)) {
520
- f = !0;
526
+ m = !0;
521
527
  return;
522
528
  }
523
- if (x !== s)
529
+ if (x !== o)
524
530
  return;
525
- const y = g && typeof g == "object" && ((B = g.response) == null ? void 0 : B.status);
526
- y === 424 || y === 425 ? a.value = !0 : y ? r.setError((q = (M = g.response) == null ? void 0 : M.data) == null ? void 0 : q.message) : r.setError("There was an issue, please contact helpmate");
531
+ const y = g && typeof g == "object" && ((S = g.response) == null ? void 0 : S.status);
532
+ y === 424 || y === 425 ? a.value = !0 : y ? r.setError((I = (L = g.response) == null ? void 0 : L.data) == null ? void 0 : I.message) : r.setError("There was an issue, please contact helpmate");
527
533
  } finally {
528
- !f && x === s && (u.value = !1);
534
+ !m && x === o && (d.value = !1);
529
535
  }
530
536
  };
531
- return z(() => Qt(o), (l) => {
537
+ return z(() => Gt(s), (l) => {
532
538
  n(l);
533
539
  }, { immediate: !0 }), W(() => {
534
- s += 1;
535
- }), { loaderValue: u, notAllowedModalVisible: a };
540
+ o += 1;
541
+ }), { loaderValue: d, notAllowedModalVisible: a };
536
542
  }
537
- const Tt = {
543
+ const Vt = {
538
544
  key: 1,
539
545
  class: "flex h-screen flex-col overflow-hidden"
540
- }, Ht = { class: "z-20 shrink-0" }, zt = { class: "min-h-0 flex-1 overflow-hidden pb-1" }, Gt = { class: "flex h-full flex-col bg-gray-100 px-2 sm:px-6 md:px-10 lg:px-20" }, Vt = { class: "fontFormattingAMA flex min-h-0 flex-1 flex-col border-x border-b border-black bg-white pt-3 md:pt-4" }, Ut = { class: "shrink-0" }, Pt = /* @__PURE__ */ A({
546
+ }, Ht = { class: "z-20 shrink-0" }, Ut = { class: "min-h-0 flex-1 overflow-hidden pb-1" }, Pt = { class: "flex h-full flex-col bg-gray-100 px-2 sm:px-6 md:px-10 lg:px-20" }, Wt = { class: "fontFormattingAMA flex min-h-0 flex-1 flex-col border-x border-b border-black bg-white pt-3 md:pt-4" }, Dt = { class: "shrink-0" }, Kt = /* @__PURE__ */ A({
541
547
  __name: "AMABot",
542
- setup(o) {
543
- const e = N(), r = G(), i = D(), p = Y(), { loaderValue: u, notAllowedModalVisible: a } = Rt(
548
+ setup(s) {
549
+ const e = N(), r = V(), i = D(), p = Y(), { loaderValue: d, notAllowedModalVisible: a } = zt(
544
550
  i,
545
551
  e,
546
552
  r,
547
- (s) => p.getApi(`/getLearnerData?amaSkillId=${s}`),
553
+ (o) => p.getApi(`/getLearnerData?amaSkillId=${o}`),
548
554
  J
549
555
  );
550
- return (s, m) => (c(), h("section", null, [
551
- d(a) ? (c(), R(ne, {
556
+ return (o, h) => (u(), f("section", null, [
557
+ c(a) ? (u(), R(ne, {
552
558
  key: 0,
553
559
  tone: "error",
554
560
  title: "Assessment Access Required"
555
561
  }, {
556
562
  default: T(() => [
557
- E(" You don't have access to this assessment. Please contact to administrator ")
563
+ F(" You don't have access to this assessment. Please contact to administrator ")
558
564
  ]),
559
565
  _: 1
560
- })) : k("", !0),
561
- v(jt),
566
+ })) : $("", !0),
567
+ v(Tt),
562
568
  t("div", null, [
563
- d(u) ? (c(), R(ae, {
569
+ c(d) ? (u(), R(ae, {
564
570
  key: 0,
565
571
  message: "Loading AI Guru"
566
- })) : (c(), h("main", Tt, [
572
+ })) : (u(), f("main", Vt, [
567
573
  t("div", Ht, [
568
574
  v(qe)
569
575
  ]),
570
- t("section", zt, [
571
- t("div", Gt, [
572
- t("div", Vt, [
573
- v(_t, { class: "shrink-0" }),
576
+ t("section", Ut, [
577
+ t("div", Pt, [
578
+ t("div", Wt, [
579
+ v(gt, { class: "shrink-0" }),
574
580
  v(lt, { class: "min-h-0 flex-1 pt-3" }),
575
- t("div", Ut, [
576
- v(Ct)
581
+ t("div", Dt, [
582
+ v(Bt)
577
583
  ])
578
584
  ])
579
585
  ])
@@ -583,7 +589,7 @@ const Tt = {
583
589
  ]));
584
590
  }
585
591
  });
586
- const Xt = /* @__PURE__ */ F(Pt, [["__scopeId", "data-v-d2dc4f82"]]);
592
+ const ts = /* @__PURE__ */ k(Kt, [["__scopeId", "data-v-d2dc4f82"]]);
587
593
  export {
588
- Xt as default
594
+ ts as default
589
595
  };