@genpact/genome.mfe.mgtwin-app 1.1.434-alpha → 1.1.435-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.
- package/dist/{AssessmentAMA-69589dcb.mjs → AMABot-60401cff.mjs} +83 -83
- package/dist/{AssessmentSimulation-de4fae50.mjs → AssessmentSimulation-8f13ed5a.mjs} +6 -6
- package/dist/{EditSkillAdminData-be5030e2.mjs → EditSkillAdminData-47fd9ace.mjs} +2 -2
- package/dist/{EditSkillData-e2629b7b.mjs → EditSkillData-ab0285da.mjs} +2 -2
- package/dist/{HomeView-434181f8.mjs → HomeView-3374faca.mjs} +4 -4
- package/dist/{Loading-bdfa2c78.mjs → Loading-fc0617d6.mjs} +1 -1
- package/dist/{PaperAirplaneIcon-283785f2.mjs → PaperAirplaneIcon-1f1b9420.mjs} +1 -1
- package/dist/{PromptTesting-cd9de14c.mjs → PromptTesting-28188d3b.mjs} +3 -3
- package/dist/{SkillAutomation-a61f8eb4.mjs → SkillAutomation-a15cf890.mjs} +3 -3
- package/dist/{SkillData-4ffc16eb.mjs → SkillData-b7051cad.mjs} +3 -3
- package/dist/{Testcase-a20a1d23.mjs → Testcase-5ec19354.mjs} +3 -3
- package/dist/{UnderMaintenance-5eb28199.mjs → UnderMaintenance-1e84605a.mjs} +1 -1
- package/dist/{VoiceTestcase-9090d5ad.mjs → VoiceTestcase-cd70c11a.mjs} +3 -3
- package/dist/{XMarkIcon-b37896cd.mjs → XMarkIcon-8941ff00.mjs} +1 -1
- package/dist/{api-b2437335.mjs → api-bcd81c0c.mjs} +1 -1
- package/dist/{index.es-c52c5c27.mjs → index.es-7df55209.mjs} +6 -6
- package/dist/{main-8b428ae0.mjs → main-25dbe608.mjs} +284 -284
- package/dist/mgtwin.es.min.js +1 -1
- package/dist/mgtwin.umd.min.js +7 -7
- package/dist/native/aiguru-native.css +1 -1
- package/dist/native/aiguru-native.umd.min.js +1 -1
- package/dist/{simulationPopup.vue_vue_type_script_setup_true_lang-45b379b3.mjs → simulationPopup.vue_vue_type_script_setup_true_lang-1deaa932.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{voiceServices-f4632581.mjs → voiceServices-8dcba4f0.mjs} +2 -2
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as J, _ as X, a as Z, b as ee, d as te, c as se, L as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { o as p, c as h, a as t, d as w, z as C, r as v, G as ae, I as re, b as f, u as L, B as q, t as I, p as E, g as B, h as b, s as T, T as U, H as j, C as ie, F as le, e as ce, f as M, N as H, J as P, k as G, E as D, q as de, w as ue, m as pe, P as _e, n as me, R as W, x as K, U as fe, l as R, i as he } from "./main-
|
|
1
|
+
import { r as J, _ as X, a as Z, b as ee, d as te, c as se, L as oe } from "./simulationPopup.vue_vue_type_script_setup_true_lang-1deaa932.mjs";
|
|
2
|
+
import { _ as ne, Q as N } from "./constants-e0c83ac4.mjs";
|
|
3
|
+
import { o as p, c as h, a as t, d as w, z as C, r as v, G as ae, I as re, b as f, u as L, B as q, t as I, p as E, g as B, h as b, s as T, T as U, H as j, C as ie, F as le, e as ce, f as M, N as H, J as P, k as G, E as D, q as de, w as ue, m as pe, P as _e, n as me, R as W, x as K, U as fe, l as R, i as he } from "./main-25dbe608.mjs";
|
|
4
4
|
import { _ as k } from "./_plugin-vue_export-helper-dad06003.mjs";
|
|
5
|
-
import { u as O, i as Y } from "./api-
|
|
5
|
+
import { u as O, i as Y } from "./api-bcd81c0c.mjs";
|
|
6
6
|
import "./loadernew-ac153a51.mjs";
|
|
7
|
-
function ge(
|
|
7
|
+
function ge(o, e) {
|
|
8
8
|
return p(), h("svg", {
|
|
9
9
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10
10
|
fill: "none",
|
|
@@ -24,34 +24,34 @@ const xe = { class: "flex h-14 w-full flex-1 items-center justify-between bg-bla
|
|
|
24
24
|
class: "h-16 w-auto cursor-pointer",
|
|
25
25
|
src: X,
|
|
26
26
|
alt: "Genome Logo"
|
|
27
|
-
}, null, -1),
|
|
27
|
+
}, null, -1), ye = [
|
|
28
28
|
be
|
|
29
|
-
],
|
|
29
|
+
], Ae = ["href"], we = /* @__PURE__ */ t("img", {
|
|
30
30
|
class: "h-6 w-28 cursor-pointer md:w-36",
|
|
31
|
-
src:
|
|
31
|
+
src: ne,
|
|
32
32
|
alt: "Aiguru Logo"
|
|
33
33
|
}, null, -1), ke = [
|
|
34
34
|
we
|
|
35
35
|
], $e = /* @__PURE__ */ w({
|
|
36
36
|
__name: "headerAMA",
|
|
37
|
-
setup(
|
|
37
|
+
setup(o) {
|
|
38
38
|
const e = C(), a = v(""), l = v(""), d = J(ae(re, void 0), window.location);
|
|
39
39
|
return d === "prod" ? a.value = "https://genome.genpact.com" : a.value = "https://genome-dev.genpact.com", d === "prod" ? l.value = "https://genome.genpact.com/#aiguru" : l.value = "https://genome-dev.genpact.com/#aiguru", (c, r) => (p(), h("nav", xe, [
|
|
40
40
|
t("a", {
|
|
41
41
|
class: "px-2 md:px-0 lg:px-0",
|
|
42
42
|
href: f(e).url(a.value),
|
|
43
43
|
target: "_blank"
|
|
44
|
-
},
|
|
44
|
+
}, ye, 8, ve),
|
|
45
45
|
t("a", {
|
|
46
46
|
class: "px-2 md:px-0 lg:px-0",
|
|
47
47
|
href: f(e).url(l.value),
|
|
48
48
|
target: "_blank"
|
|
49
|
-
}, ke, 8,
|
|
49
|
+
}, ke, 8, Ae)
|
|
50
50
|
]));
|
|
51
51
|
}
|
|
52
52
|
}), Fe = { class: "fontFormattingAMA py-2" }, qe = { class: "text-base font-semibold text-[#181C23] md:text-lg" }, Me = { key: 0 }, Ce = ["innerHTML"], Ie = /* @__PURE__ */ w({
|
|
53
53
|
__name: "greetingsAMA",
|
|
54
|
-
setup(
|
|
54
|
+
setup(o) {
|
|
55
55
|
const e = L(), a = C(), l = ` Hi ${e.learnerName || "Learner"}! 👋`, d = q(() => l), c = q(() => a.text(l.replace("👋", "👋")));
|
|
56
56
|
return q(() => `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.`), (r, s) => (p(), h("section", null, [
|
|
57
57
|
t("div", Fe, [
|
|
@@ -64,7 +64,7 @@ const xe = { class: "flex h-14 w-full flex-1 items-center justify-between bg-bla
|
|
|
64
64
|
])
|
|
65
65
|
]));
|
|
66
66
|
}
|
|
67
|
-
}), Se = (
|
|
67
|
+
}), Se = (o) => (E("data-v-684baff4"), o = o(), B(), o), Le = { class: "fontFormattingAMA flex justify-start py-2" }, Ee = { class: "w-full max-w-[92%]" }, Be = { class: "line-break rounded-2xl rounded-bl-sm border border-gray-200 bg-gray-50 px-4 py-4 text-sm leading-6 text-[#3f4451]" }, Ne = ["innerHTML"], Qe = /* @__PURE__ */ Se(() => /* @__PURE__ */ t("div", { class: "mt-1 text-xs text-gray-400" }, "AI Guru", -1)), Re = /* @__PURE__ */ w({
|
|
68
68
|
__name: "responseAMA",
|
|
69
69
|
props: {
|
|
70
70
|
answer: {
|
|
@@ -72,17 +72,17 @@ const xe = { class: "flex h-14 w-full flex-1 items-center justify-between bg-bla
|
|
|
72
72
|
required: !0
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
|
-
setup(
|
|
76
|
-
const e =
|
|
75
|
+
setup(o) {
|
|
76
|
+
const e = o, a = C(), l = (r) => r.replace(/\*\*(.+?)\*\*/g, "<strong>$1</strong>").replace(/\*/g, ""), d = (r) => {
|
|
77
77
|
const s = [];
|
|
78
78
|
let m = [];
|
|
79
|
-
const
|
|
79
|
+
const n = () => {
|
|
80
80
|
m.length && (s.push({ html: `<ul style="list-style: disc; margin: 0 0 0 2.5rem; padding: 0;">${m.join("")}</ul>`, block: !0 }), m = []);
|
|
81
81
|
};
|
|
82
82
|
for (const i of r.split(`
|
|
83
83
|
`)) {
|
|
84
84
|
if (!i.trim()) {
|
|
85
|
-
|
|
85
|
+
n();
|
|
86
86
|
const u = s[s.length - 1];
|
|
87
87
|
u && !u.block && u.html !== "" && s.push({ html: "", block: !1 });
|
|
88
88
|
continue;
|
|
@@ -92,11 +92,11 @@ const xe = { class: "flex h-14 w-full flex-1 items-center justify-between bg-bla
|
|
|
92
92
|
m.push(`<li>${l(x[1])}</li>`);
|
|
93
93
|
continue;
|
|
94
94
|
}
|
|
95
|
-
|
|
95
|
+
n();
|
|
96
96
|
const _ = i.match(/^\s*#{1,6}\s*(.*)$/);
|
|
97
97
|
_ ? s.push({ html: `<div style="font-weight: 700;">${l(_[1])}</div>`, block: !0 }) : s.push({ html: l(i), block: !1 });
|
|
98
98
|
}
|
|
99
|
-
|
|
99
|
+
n();
|
|
100
100
|
for (let i = s.length - 2; i >= 0; i--)
|
|
101
101
|
s[i].html === "" && !s[i].block && s[i + 1].block && s.splice(i, 1);
|
|
102
102
|
for (; s.length && s[s.length - 1].html === ""; )
|
|
@@ -107,7 +107,7 @@ const xe = { class: "flex h-14 w-full flex-1 items-center justify-between bg-bla
|
|
|
107
107
|
const r = d(e.answer).replace(
|
|
108
108
|
/Assessment Rating & Feedback/g,
|
|
109
109
|
'<div style="font-size: 26px; font-weight: bold; text-decoration: underline;">Rating & Feedback</div>'
|
|
110
|
-
), s = /\[([^\]]+)\]\((https?:\/\/[^\s]+)\)/g, m = r.replace(s, (
|
|
110
|
+
), s = /\[([^\]]+)\]\((https?:\/\/[^\s]+)\)/g, m = r.replace(s, (n, i, x) => `<a href="${a.url(x)}" target="_blank" rel="noopener noreferrer" style="color: #00AECF; text-decoration: underline;">${i}</a>`);
|
|
111
111
|
return a.html(m);
|
|
112
112
|
});
|
|
113
113
|
return (r, s) => (p(), h("div", Le, [
|
|
@@ -131,17 +131,17 @@ const Te = /* @__PURE__ */ k(Re, [["__scopeId", "data-v-684baff4"]]), je = { cla
|
|
|
131
131
|
required: !0
|
|
132
132
|
}
|
|
133
133
|
},
|
|
134
|
-
setup(
|
|
134
|
+
setup(o) {
|
|
135
135
|
return (e, a) => (p(), h("div", je, [
|
|
136
136
|
t("div", He, [
|
|
137
137
|
t("div", Ge, [
|
|
138
|
-
t("div", Ve, I(
|
|
138
|
+
t("div", Ve, I(o.question), 1)
|
|
139
139
|
]),
|
|
140
140
|
ze
|
|
141
141
|
])
|
|
142
142
|
]));
|
|
143
143
|
}
|
|
144
|
-
}), V = (
|
|
144
|
+
}), V = (o) => (E("data-v-9fdc3afc"), o = o(), B(), o), Pe = { class: "fontFormattingAMA flex w-full justify-start py-2" }, De = { class: "w-full max-w-[92%]" }, We = { class: "rounded-2xl rounded-bl-sm border border-gray-200 bg-gray-50 px-4 py-4" }, Ke = {
|
|
145
145
|
class: "flex items-center gap-2.5",
|
|
146
146
|
role: "status",
|
|
147
147
|
"aria-live": "polite"
|
|
@@ -158,7 +158,7 @@ const Te = /* @__PURE__ */ k(Re, [["__scopeId", "data-v-684baff4"]]), je = { cla
|
|
|
158
158
|
/* @__PURE__ */ t("div", { class: "shimmer h-2.5 w-4/6 rounded" })
|
|
159
159
|
], -1)), Je = /* @__PURE__ */ V(() => /* @__PURE__ */ t("div", { class: "mt-1 text-xs text-gray-400" }, "AI Guru", -1)), Xe = /* @__PURE__ */ w({
|
|
160
160
|
__name: "LoadingResponseAMA",
|
|
161
|
-
setup(
|
|
161
|
+
setup(o) {
|
|
162
162
|
const e = C(), a = [
|
|
163
163
|
"Generating response",
|
|
164
164
|
"Fetching the best response for you",
|
|
@@ -199,15 +199,15 @@ const Te = /* @__PURE__ */ k(Re, [["__scopeId", "data-v-684baff4"]]), je = { cla
|
|
|
199
199
|
const Ze = /* @__PURE__ */ k(Xe, [["__scopeId", "data-v-9fdc3afc"]]), et = { key: 0 }, tt = { key: 1 }, st = {
|
|
200
200
|
key: 0,
|
|
201
201
|
class: "flex"
|
|
202
|
-
},
|
|
202
|
+
}, ot = /* @__PURE__ */ w({
|
|
203
203
|
__name: "conversationAMA",
|
|
204
|
-
setup(
|
|
204
|
+
setup(o) {
|
|
205
205
|
let e = v(""), a = v("");
|
|
206
206
|
e.value = '<a style="color:#00AECF;"', a.value = '<ul style="list-style: disc !important; margin-left: 3.5rem !important; padding: 0;"';
|
|
207
207
|
const l = L(), d = C(), c = v(), r = () => {
|
|
208
|
-
var
|
|
208
|
+
var n;
|
|
209
209
|
const s = d.native && d.root && typeof d.root.querySelectorAll == "function" ? d.root.querySelectorAll('[name="askQuestion"]') : document.getElementsByName("askQuestion"), m = Array.from(s);
|
|
210
|
-
m.length && ((
|
|
210
|
+
m.length && ((n = m.pop()) == null || n.scrollIntoView({ behavior: "smooth", block: "center" }));
|
|
211
211
|
};
|
|
212
212
|
return j(r), ie(r), (s, m) => (p(), h("div", {
|
|
213
213
|
ref_key: "nestedElement",
|
|
@@ -215,27 +215,27 @@ const Ze = /* @__PURE__ */ k(Xe, [["__scopeId", "data-v-9fdc3afc"]]), et = { key
|
|
|
215
215
|
class: "smooth-scroll overflow-auto md:px-6 px-2"
|
|
216
216
|
}, [
|
|
217
217
|
b(Ie),
|
|
218
|
-
(p(!0), h(le, null, ce(f(l).conversations, (
|
|
219
|
-
|
|
218
|
+
(p(!0), h(le, null, ce(f(l).conversations, (n, i) => (p(), h("div", { key: i }, [
|
|
219
|
+
n.question ? (p(), h("div", et, [
|
|
220
220
|
b(Ue, {
|
|
221
|
-
question:
|
|
222
|
-
c2question:
|
|
223
|
-
"show-feedback":
|
|
221
|
+
question: n.question,
|
|
222
|
+
c2question: n.c2question,
|
|
223
|
+
"show-feedback": n.showFeedback,
|
|
224
224
|
id: `qId${i}`,
|
|
225
225
|
name: "askQuestion",
|
|
226
226
|
"que-id": i
|
|
227
227
|
}, null, 8, ["question", "c2question", "show-feedback", "id", "que-id"])
|
|
228
228
|
])) : M("", !0),
|
|
229
|
-
|
|
229
|
+
n.answer ? (p(), h("div", tt, [
|
|
230
230
|
b(Te, {
|
|
231
|
-
question:
|
|
232
|
-
c2question:
|
|
233
|
-
"show-sources":
|
|
234
|
-
questionId:
|
|
235
|
-
answer:
|
|
236
|
-
"show-feedback":
|
|
237
|
-
"related-ques":
|
|
238
|
-
"options-array":
|
|
231
|
+
question: n == null ? void 0 : n.question,
|
|
232
|
+
c2question: n == null ? void 0 : n.c2question,
|
|
233
|
+
"show-sources": n == null ? void 0 : n.showSources,
|
|
234
|
+
questionId: n.id,
|
|
235
|
+
answer: n.answer.replaceAll("<a", f(e)).replaceAll("<ul", f(a)),
|
|
236
|
+
"show-feedback": n.showFeedback,
|
|
237
|
+
"related-ques": n.relatedQues,
|
|
238
|
+
"options-array": n.optionsArray,
|
|
239
239
|
"ans-id": i
|
|
240
240
|
}, null, 8, ["question", "c2question", "show-sources", "questionId", "answer", "show-feedback", "related-ques", "options-array", "ans-id"])
|
|
241
241
|
])) : M("", !0)
|
|
@@ -246,49 +246,49 @@ const Ze = /* @__PURE__ */ k(Xe, [["__scopeId", "data-v-9fdc3afc"]]), et = { key
|
|
|
246
246
|
], 512));
|
|
247
247
|
}
|
|
248
248
|
});
|
|
249
|
-
const
|
|
250
|
-
function at(
|
|
249
|
+
const nt = /* @__PURE__ */ k(ot, [["__scopeId", "data-v-ee7bc477"]]), Q = (o) => String(o.query.amaId ?? "");
|
|
250
|
+
function at(o, e, a, l, d, c = (r) => !1) {
|
|
251
251
|
const r = v(!1);
|
|
252
252
|
let s = 0, m = !0;
|
|
253
|
-
const
|
|
253
|
+
const n = () => {
|
|
254
254
|
s += 1, r.value = !1, e.dotLoader = !1;
|
|
255
255
|
};
|
|
256
|
-
H(() => Q(
|
|
257
|
-
m = !1,
|
|
256
|
+
H(() => Q(o), n), P(() => {
|
|
257
|
+
m = !1, n();
|
|
258
258
|
});
|
|
259
|
-
const i = (_, u) => m && _ === s && u === Q(
|
|
259
|
+
const i = (_, u) => m && _ === s && u === Q(o);
|
|
260
260
|
return { isWaitingResponse: r, sendQuestion: async () => {
|
|
261
261
|
var $, F, g;
|
|
262
262
|
if (e.question.trim().length < 1) {
|
|
263
|
-
a.setError("Please enter
|
|
263
|
+
a.setError("Please enter question!");
|
|
264
264
|
return;
|
|
265
265
|
}
|
|
266
266
|
if (e.amaQuestionsLeft <= 0) {
|
|
267
267
|
a.setError("You have exhausted your question limit!");
|
|
268
268
|
return;
|
|
269
269
|
}
|
|
270
|
-
const _ = ++s, u = Q(
|
|
270
|
+
const _ = ++s, u = Q(o);
|
|
271
271
|
r.value = !0, e.dotLoader = !0;
|
|
272
|
-
const
|
|
273
|
-
e.conversations.push({ question:
|
|
272
|
+
const y = e.question;
|
|
273
|
+
e.conversations.push({ question: y }), e.question = "";
|
|
274
274
|
const S = {
|
|
275
275
|
skillId: u,
|
|
276
|
-
question:
|
|
276
|
+
question: y,
|
|
277
277
|
past_messages: e.past_messages
|
|
278
278
|
};
|
|
279
279
|
try {
|
|
280
|
-
const
|
|
280
|
+
const A = await l(S);
|
|
281
281
|
if (!i(_, u))
|
|
282
282
|
return;
|
|
283
|
-
e.addConversation(($ =
|
|
284
|
-
} catch (
|
|
285
|
-
if (c(
|
|
283
|
+
e.addConversation(($ = A.data) == null ? void 0 : $.body, "new"), r.value = !1, e.dotLoader = !1;
|
|
284
|
+
} catch (A) {
|
|
285
|
+
if (c(A) || !i(_, u))
|
|
286
286
|
return;
|
|
287
|
-
r.value = !1, e.dotLoader = !1, d(
|
|
287
|
+
r.value = !1, e.dotLoader = !1, d(A) ? a.setError((g = (F = A.response) == null ? void 0 : F.data) == null ? void 0 : g.message) : a.setError("There was an issue, please contact helpmate");
|
|
288
288
|
}
|
|
289
289
|
} };
|
|
290
290
|
}
|
|
291
|
-
const z = (
|
|
291
|
+
const z = (o) => (E("data-v-67ac6151"), o = o(), B(), o), rt = { class: "w-full px-2 pb-3 pt-3 md:px-6" }, it = { class: "relative" }, lt = { class: "pointer-events-none absolute inset-y-0 left-3 flex items-center md:left-4" }, ct = {
|
|
292
292
|
class: "flex h-8 w-8 items-center justify-center rounded-full bg-[#FFF4E0] text-[#E08A00] md:h-9 md:w-9",
|
|
293
293
|
"aria-hidden": "true"
|
|
294
294
|
}, dt = ["placeholder"], ut = { class: "absolute inset-y-0 right-2 flex items-center md:right-3" }, pt = {
|
|
@@ -304,10 +304,10 @@ const z = (n) => (E("data-v-67ac6151"), n = n(), B(), n), rt = { class: "w-full
|
|
|
304
304
|
"aria-hidden": "true"
|
|
305
305
|
}, "·", -1)), xt = { class: "font-semibold text-[#181C23]" }, vt = /* @__PURE__ */ w({
|
|
306
306
|
__name: "NewQuestionAMA",
|
|
307
|
-
setup(
|
|
307
|
+
setup(o) {
|
|
308
308
|
const e = L(), a = G();
|
|
309
309
|
e.question = "";
|
|
310
|
-
const l = v(null), d = v(!1), c = v(N), r = D(), s = O(), { isWaitingResponse: m, sendQuestion:
|
|
310
|
+
const l = v(null), d = v(!1), c = v(N), r = D(), s = O(), { isWaitingResponse: m, sendQuestion: n } = at(
|
|
311
311
|
r,
|
|
312
312
|
e,
|
|
313
313
|
a,
|
|
@@ -341,12 +341,12 @@ const z = (n) => (E("data-v-67ac6151"), n = n(), B(), n), rt = { class: "w-full
|
|
|
341
341
|
ue(t("textarea", {
|
|
342
342
|
ref_key: "AiSearch",
|
|
343
343
|
ref: l,
|
|
344
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
344
|
+
"onUpdate:modelValue": u[0] || (u[0] = (y) => f(e).question = y),
|
|
345
345
|
rows: "1",
|
|
346
346
|
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",
|
|
347
347
|
placeholder: `Ask me about ${f(e).amaSkillName || "Skill Name"}`,
|
|
348
|
-
onKeydown: u[1] || (u[1] = _e(K((
|
|
349
|
-
onInput: u[2] || (u[2] = (
|
|
348
|
+
onKeydown: u[1] || (u[1] = _e(K((y) => f(m) ? "" : f(n)(), ["exact", "prevent"]), ["enter"])),
|
|
349
|
+
onInput: u[2] || (u[2] = (y) => x(f(e).question))
|
|
350
350
|
}, null, 40, dt), [
|
|
351
351
|
[pe, f(e).question]
|
|
352
352
|
]),
|
|
@@ -357,7 +357,7 @@ const z = (n) => (E("data-v-67ac6151"), n = n(), B(), n), rt = { class: "w-full
|
|
|
357
357
|
title: "Send",
|
|
358
358
|
"aria-label": "Send question",
|
|
359
359
|
class: me([i.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"]),
|
|
360
|
-
onClick: u[3] || (u[3] = (
|
|
360
|
+
onClick: u[3] || (u[3] = (y) => f(n)())
|
|
361
361
|
}, [
|
|
362
362
|
b(f(Z), {
|
|
363
363
|
class: "h-5 w-5",
|
|
@@ -378,15 +378,15 @@ const z = (n) => (E("data-v-67ac6151"), n = n(), B(), n), rt = { class: "w-full
|
|
|
378
378
|
]));
|
|
379
379
|
}
|
|
380
380
|
});
|
|
381
|
-
const bt = /* @__PURE__ */ k(vt, [["__scopeId", "data-v-67ac6151"]]),
|
|
381
|
+
const bt = /* @__PURE__ */ k(vt, [["__scopeId", "data-v-67ac6151"]]), yt = (o) => (E("data-v-fb943644"), o = o(), B(), o), At = {
|
|
382
382
|
class: "inline-flex h-10 w-10 items-center justify-center rounded-full bg-[#FDF3E1] text-[#C68A16]",
|
|
383
383
|
"aria-hidden": "true"
|
|
384
|
-
}, wt = /* @__PURE__ */
|
|
384
|
+
}, wt = /* @__PURE__ */ yt(() => /* @__PURE__ */ t("div", { class: "mt-3 text-xs font-bold uppercase tracking-[0.12em] text-[#C68A16]" }, "Heads up", -1)), kt = {
|
|
385
385
|
id: "ama-error-text",
|
|
386
386
|
class: "mt-1.5 text-base font-semibold leading-snug text-[#181C23]"
|
|
387
387
|
}, $t = /* @__PURE__ */ w({
|
|
388
388
|
__name: "errorPopupAMA",
|
|
389
|
-
setup(
|
|
389
|
+
setup(o) {
|
|
390
390
|
const e = G(), a = v(""), l = v(null), d = () => {
|
|
391
391
|
a.value = "";
|
|
392
392
|
};
|
|
@@ -417,7 +417,7 @@ const bt = /* @__PURE__ */ k(vt, [["__scopeId", "data-v-67ac6151"]]), At = (n) =
|
|
|
417
417
|
onClick: s[0] || (s[0] = K(() => {
|
|
418
418
|
}, ["stop"]))
|
|
419
419
|
}, [
|
|
420
|
-
t("span",
|
|
420
|
+
t("span", At, [
|
|
421
421
|
b(f(te), { class: "h-5 w-5" })
|
|
422
422
|
]),
|
|
423
423
|
wt,
|
|
@@ -436,14 +436,14 @@ const bt = /* @__PURE__ */ k(vt, [["__scopeId", "data-v-67ac6151"]]), At = (n) =
|
|
|
436
436
|
}));
|
|
437
437
|
}
|
|
438
438
|
});
|
|
439
|
-
const Ft = /* @__PURE__ */ k($t, [["__scopeId", "data-v-fb943644"]]), qt = (
|
|
440
|
-
function Mt(
|
|
439
|
+
const Ft = /* @__PURE__ */ k($t, [["__scopeId", "data-v-fb943644"]]), qt = (o) => String(o.query.amaId ?? "");
|
|
440
|
+
function Mt(o, e, a, l, d = (c) => !1) {
|
|
441
441
|
const c = v(!0), r = v(!1);
|
|
442
442
|
let s = 0;
|
|
443
443
|
const m = (i) => {
|
|
444
444
|
e.amaSkillId = i, e.amaSkillName = "", e.amaQuestionsLeft = 0, e.question = "", e.conversations = [], e.past_messages = [];
|
|
445
|
-
},
|
|
446
|
-
var u,
|
|
445
|
+
}, n = async (i) => {
|
|
446
|
+
var u, y, S, $, F;
|
|
447
447
|
const x = ++s;
|
|
448
448
|
c.value = !0, r.value = !1, m(i);
|
|
449
449
|
let _ = !1;
|
|
@@ -451,7 +451,7 @@ function Mt(n, e, a, l, d = (c) => !1) {
|
|
|
451
451
|
const g = await l(i);
|
|
452
452
|
if (x !== s)
|
|
453
453
|
return;
|
|
454
|
-
e.initialize(g.data), e.amaQuestionsLeft = (u = g == null ? void 0 : g.data) == null ? void 0 : u.questionsLeftAIGC, e.amaSkillName = (
|
|
454
|
+
e.initialize(g.data), e.amaQuestionsLeft = (u = g == null ? void 0 : g.data) == null ? void 0 : u.questionsLeftAIGC, e.amaSkillName = (y = g == null ? void 0 : g.data) == null ? void 0 : y.skillName;
|
|
455
455
|
} catch (g) {
|
|
456
456
|
if (d(g)) {
|
|
457
457
|
_ = !0;
|
|
@@ -459,14 +459,14 @@ function Mt(n, e, a, l, d = (c) => !1) {
|
|
|
459
459
|
}
|
|
460
460
|
if (x !== s)
|
|
461
461
|
return;
|
|
462
|
-
const
|
|
463
|
-
|
|
462
|
+
const A = g && typeof g == "object" && ((S = g.response) == null ? void 0 : S.status);
|
|
463
|
+
A === 424 || A === 425 ? r.value = !0 : A ? a.setError((F = ($ = g.response) == null ? void 0 : $.data) == null ? void 0 : F.message) : a.setError("There was an issue, please contact helpmate");
|
|
464
464
|
} finally {
|
|
465
465
|
!_ && x === s && (c.value = !1);
|
|
466
466
|
}
|
|
467
467
|
};
|
|
468
|
-
return H(() => qt(
|
|
469
|
-
|
|
468
|
+
return H(() => qt(o), (i) => {
|
|
469
|
+
n(i);
|
|
470
470
|
}, { immediate: !0 }), P(() => {
|
|
471
471
|
s += 1;
|
|
472
472
|
}), { loaderValue: c, notAllowedModalVisible: r };
|
|
@@ -475,8 +475,8 @@ const Ct = {
|
|
|
475
475
|
key: 1,
|
|
476
476
|
class: "flex h-screen flex-col overflow-hidden"
|
|
477
477
|
}, It = { class: "z-20 shrink-0" }, St = { class: "min-h-0 flex-1 overflow-hidden pb-1" }, Lt = { class: "flex h-full flex-col bg-gray-100 px-2 sm:px-6 md:px-10 lg:px-20" }, Et = { class: "fontFormattingAMA flex min-h-0 flex-1 flex-col border-x border-b border-black bg-white pt-3 md:pt-4" }, Bt = { class: "shrink-0" }, Nt = /* @__PURE__ */ w({
|
|
478
|
-
__name: "
|
|
479
|
-
setup(
|
|
478
|
+
__name: "AMABot",
|
|
479
|
+
setup(o) {
|
|
480
480
|
const e = L(), a = G(), l = D(), d = O(), { loaderValue: c, notAllowedModalVisible: r } = Mt(
|
|
481
481
|
l,
|
|
482
482
|
e,
|
|
@@ -497,7 +497,7 @@ const Ct = {
|
|
|
497
497
|
})) : M("", !0),
|
|
498
498
|
b(Ft),
|
|
499
499
|
t("div", null, [
|
|
500
|
-
f(c) ? (p(), R(
|
|
500
|
+
f(c) ? (p(), R(oe, {
|
|
501
501
|
key: 0,
|
|
502
502
|
message: "Loading AI Guru"
|
|
503
503
|
})) : (p(), h("main", Ct, [
|
|
@@ -507,7 +507,7 @@ const Ct = {
|
|
|
507
507
|
t("section", St, [
|
|
508
508
|
t("div", Lt, [
|
|
509
509
|
t("div", Et, [
|
|
510
|
-
b(
|
|
510
|
+
b(nt, { class: "min-h-0 flex-1" }),
|
|
511
511
|
t("div", Bt, [
|
|
512
512
|
b(bt)
|
|
513
513
|
])
|
|
@@ -519,7 +519,7 @@ const Ct = {
|
|
|
519
519
|
]));
|
|
520
520
|
}
|
|
521
521
|
});
|
|
522
|
-
const Vt = /* @__PURE__ */ k(Nt, [["__scopeId", "data-v-
|
|
522
|
+
const Vt = /* @__PURE__ */ k(Nt, [["__scopeId", "data-v-47c695ba"]]);
|
|
523
523
|
export {
|
|
524
524
|
Vt as default
|
|
525
525
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var Xh = Object.defineProperty;
|
|
2
2
|
var Mh = (e, n, t) => n in e ? Xh(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
3
3
|
var Ct = (e, n, t) => (Mh(e, typeof n != "symbol" ? n + "" : n, t), t);
|
|
4
|
-
import { o as ke, c as Se, a as L, d as Fn, z as ro, r as _e, G as xa, I as Ka, b as Oe, p as Qi, g as Wi, h as bt, s as Tr, T as Fh, f as Xt, n as zn, x as Gs, y as Sd, u as Kr, B as tn, t as Yt, i as Be, F as jr, e as wa, M as Qn, J as _a, N as vi, l as pa, w as Us, O as Bd, P as il, H as Kc, C as Eh, k as ml, L as _c, q as Hd, E as $c, m as Td, Q as Zh, R as $f, S as Ih, v as Gh } from "./main-
|
|
5
|
-
import { r as jd, _ as Rh, a as Cd, b as Xd, c as Md, L as Jh } from "./simulationPopup.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { o as ke, c as Se, a as L, d as Fn, z as ro, r as _e, G as xa, I as Ka, b as Oe, p as Qi, g as Wi, h as bt, s as Tr, T as Fh, f as Xt, n as zn, x as Gs, y as Sd, u as Kr, B as tn, t as Yt, i as Be, F as jr, e as wa, M as Qn, J as _a, N as vi, l as pa, w as Us, O as Bd, P as il, H as Kc, C as Eh, k as ml, L as _c, q as Hd, E as $c, m as Td, Q as Zh, R as $f, S as Ih, v as Gh } from "./main-25dbe608.mjs";
|
|
5
|
+
import { r as jd, _ as Rh, a as Cd, b as Xd, c as Md, L as Jh } from "./simulationPopup.vue_vue_type_script_setup_true_lang-1deaa932.mjs";
|
|
6
6
|
import { _ as Qh, Q as ic, M as eu } from "./constants-e0c83ac4.mjs";
|
|
7
7
|
import { _ as gi } from "./_plugin-vue_export-helper-dad06003.mjs";
|
|
8
|
-
import { u as za, i as Mi, c as Es } from "./api-
|
|
9
|
-
import { u as Wh, a as Uh } from "./voiceServices-
|
|
10
|
-
import { r as qh } from "./XMarkIcon-
|
|
8
|
+
import { u as za, i as Mi, c as Es } from "./api-bcd81c0c.mjs";
|
|
9
|
+
import { u as Wh, a as Uh } from "./voiceServices-8dcba4f0.mjs";
|
|
10
|
+
import { r as qh } from "./XMarkIcon-8941ff00.mjs";
|
|
11
11
|
function Yh(e, n) {
|
|
12
12
|
return ke(), Se("svg", {
|
|
13
13
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -12469,7 +12469,7 @@ function(e) {
|
|
|
12469
12469
|
var d = u.getContext("2d");
|
|
12470
12470
|
d.fillStyle = "#fff", d.fillRect(0, 0, u.width, u.height);
|
|
12471
12471
|
var v = { ignoreMouse: !0, ignoreAnimation: !0, ignoreDimensions: !0 }, w = this;
|
|
12472
|
-
return (at.canvg ? Promise.resolve(at.canvg) : import("./index.es-
|
|
12472
|
+
return (at.canvg ? Promise.resolve(at.canvg) : import("./index.es-7df55209.mjs")).catch(function(A) {
|
|
12473
12473
|
return Promise.reject(new Error("Could not load canvg: " + A));
|
|
12474
12474
|
}).then(function(A) {
|
|
12475
12475
|
return A.default ? A.default : A;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as O, D as P, u as $, k as H, r as c, o as i, c as d, a as e, w as b, m as T, b as n, n as F, v as B, F as G, e as Y, t as f, q as j, p as J, g as Q, i as E } from "./main-
|
|
1
|
+
import { d as O, D as P, u as $, k as H, r as c, o as i, c as d, a as e, w as b, m as T, b as n, n as F, v as B, F as G, e as Y, t as f, q as j, p as J, g as Q, i as E } from "./main-25dbe608.mjs";
|
|
2
2
|
import { _ as C } from "./loadernew-ac153a51.mjs";
|
|
3
|
-
import { u as X, a as Z, i as A } from "./api-
|
|
3
|
+
import { u as X, a as Z, i as A } from "./api-bcd81c0c.mjs";
|
|
4
4
|
import { _ as ee } from "./_plugin-vue_export-helper-dad06003.mjs";
|
|
5
5
|
const a = (_) => (J("data-v-53586205"), _ = _(), Q(), _), te = /* @__PURE__ */ a(() => /* @__PURE__ */ e("nav", { class: "bg-genpact-blue-box w-full px-5 mb-6" }, null, -1)), se = { class: "grid grid-cols-5 gap-8 p-10 items-stretch" }, oe = /* @__PURE__ */ a(() => /* @__PURE__ */ e("div", { class: "col-span-1 text-right" }, [
|
|
6
6
|
/* @__PURE__ */ e("label", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { o as r, c, a as e, d as z, D as G, h as L, b as a, U as H, u as Y, k as J, r as i, w, m as T, n as F, f as b, F as j, e as Q, v as X, t as m, q, p as Z, g as ee, i as I } from "./main-
|
|
1
|
+
import { o as r, c, a as e, d as z, D as G, h as L, b as a, U as H, u as Y, k as J, r as i, w, m as T, n as F, f as b, F as j, e as Q, v as X, t as m, q, p as Z, g as ee, i as I } from "./main-25dbe608.mjs";
|
|
2
2
|
import { _ as R } from "./loadernew-ac153a51.mjs";
|
|
3
|
-
import { a as U, u as te, i as M } from "./api-
|
|
3
|
+
import { a as U, u as te, i as M } from "./api-bcd81c0c.mjs";
|
|
4
4
|
import { _ as se } from "./genome-Logo-white-ffcf2413.mjs";
|
|
5
5
|
import { _ as oe } from "./_plugin-vue_export-helper-dad06003.mjs";
|
|
6
6
|
function ae(u, h) {
|