@genpact/genome.mfe.mgtwin-app 1.1.313-alpha → 1.1.315-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/{ArrowLeftCircleIcon-1209c3fe.mjs → ArrowLeftCircleIcon-39762b31.mjs} +1 -1
- package/dist/{AssessmentAMA-9f4571fc.mjs → AssessmentAMA-b6427c19.mjs} +132 -128
- package/dist/{AssessmentSimulation-9170b3cf.mjs → AssessmentSimulation-e8b2b114.mjs} +5 -5
- package/dist/{EditSkillAdminData-da0d4ee6.mjs → EditSkillAdminData-da1542fa.mjs} +3 -3
- package/dist/{EditSkillData-bd6c8835.mjs → EditSkillData-2eafa942.mjs} +3 -3
- package/dist/{HomeView-28edadca.mjs → HomeView-d7f2acb7.mjs} +5 -5
- package/dist/{Loading-8059ee43.mjs → Loading-c7be062d.mjs} +1 -1
- package/dist/{LoadingSimulation-747b686d.mjs → LoadingSimulation-8a2c4725.mjs} +1 -1
- package/dist/{Modal-26b30cd1.mjs → Modal-65cfe959.mjs} +1 -1
- package/dist/{PaperAirplaneIcon-34068787.mjs → PaperAirplaneIcon-7966efb2.mjs} +1 -1
- package/dist/{PromptTesting-8deafb35.mjs → PromptTesting-0b873496.mjs} +3 -3
- package/dist/{SkillAutomation-54c5d872.mjs → SkillAutomation-1d886d3f.mjs} +3 -3
- package/dist/{SkillData-7ab6d0c1.mjs → SkillData-8fa9b186.mjs} +3 -3
- package/dist/{Testcase-e01f1c24.mjs → Testcase-aefea752.mjs} +3 -3
- package/dist/{UnderMaintenance-e54e12f0.mjs → UnderMaintenance-2a07f65e.mjs} +1 -1
- package/dist/{_commonjsHelpers-29332104.mjs → _commonjsHelpers-777ec84c.mjs} +1 -1
- package/dist/{api-e3c97323.mjs → api-4b466ad8.mjs} +1 -1
- package/dist/{main-db24298c.mjs → main-736b05ea.mjs} +701 -701
- package/dist/mgtwin.es.min.js +1 -1
- package/dist/mgtwin.umd.min.js +8 -8
- package/package.json +1 -1
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { d as v, r as
|
|
1
|
+
import { _ as H, a as B, L as G } from "./LoadingSimulation-8a2c4725.mjs";
|
|
2
|
+
import { _ as U, Q as S, a as V } from "./Modal-65cfe959.mjs";
|
|
3
|
+
import { d as v, r as c, H as R, o as d, c as _, a as s, u as $, y as L, t as q, G as D, p as C, g as T, C as P, z, h as k, F as O, e as W, f as I, b, k as N, w as Z, m as K, L as Y, q as Q, s as J, l as X } from "./main-736b05ea.mjs";
|
|
4
4
|
import { _ as A } from "./_plugin-vue_export-helper-dad06003.mjs";
|
|
5
|
-
import { p as ee, g as se } from "./api-
|
|
5
|
+
import { p as ee, g as se } from "./api-4b466ad8.mjs";
|
|
6
6
|
import "./loadernew-ac153a51.mjs";
|
|
7
7
|
const ae = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#021c42] md:pr-6 lg:pr-6" }, te = ["href"], le = /* @__PURE__ */ s("img", {
|
|
8
8
|
class: "h-11 w-auto cursor-pointer",
|
|
9
|
-
src:
|
|
9
|
+
src: H,
|
|
10
10
|
alt: "Genome Logo"
|
|
11
11
|
}, null, -1), ie = [
|
|
12
12
|
le
|
|
13
13
|
], oe = ["href"], ne = /* @__PURE__ */ s("img", {
|
|
14
14
|
class: "h-9 w-28 cursor-pointer md:w-36",
|
|
15
|
-
src:
|
|
15
|
+
src: U,
|
|
16
16
|
alt: "Aiguru Logo"
|
|
17
17
|
}, null, -1), re = [
|
|
18
18
|
ne
|
|
19
|
-
],
|
|
19
|
+
], de = /* @__PURE__ */ v({
|
|
20
20
|
__name: "headerAMA",
|
|
21
21
|
setup(l) {
|
|
22
|
-
const e =
|
|
23
|
-
return R === "prod" ? e.value = "https://genome.genpact.com" : e.value = "https://genome-dev.genpact.com", R === "prod" ? t.value = "https://genome.genpact.com/#aiguru" : t.value = "https://genome-dev.genpact.com/#aiguru", (
|
|
22
|
+
const e = c(""), t = c("");
|
|
23
|
+
return R === "prod" ? e.value = "https://genome.genpact.com" : e.value = "https://genome-dev.genpact.com", R === "prod" ? t.value = "https://genome.genpact.com/#aiguru" : t.value = "https://genome-dev.genpact.com/#aiguru", (o, u) => (d(), _("nav", ae, [
|
|
24
24
|
s("a", {
|
|
25
25
|
class: "px-2 md:px-0 lg:px-0",
|
|
26
26
|
href: e.value,
|
|
@@ -33,21 +33,25 @@ const ae = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#0
|
|
|
33
33
|
}, re, 8, oe)
|
|
34
34
|
]));
|
|
35
35
|
}
|
|
36
|
-
}),
|
|
36
|
+
}), ce = { class: "flex items-end justify-start" }, _e = { class: "fontFormattingAMA w-full bg-gray-100 rounded-lg" }, ue = { class: "w-full rounded-md px-3 py-2 text-lg font-bold text-black text-[18px] md:text-[22px]" }, me = ["innerHTML"], fe = { class: "w-full px-3 py-2 text-base text-black text-[12px] md:text-[16px] font-[550]" }, pe = ["innerHTML"], ge = /* @__PURE__ */ s("br", null, null, -1), he = /* @__PURE__ */ v({
|
|
37
37
|
__name: "greetingsAMA",
|
|
38
38
|
setup(l) {
|
|
39
|
-
const e = $(), t = ` Hi ${e.learnerName || "
|
|
40
|
-
return
|
|
41
|
-
s("div",
|
|
39
|
+
const e = $(), t = ` Hi ${e.learnerName || "Learner"}! 👋`, o = L(() => t), u = L(() => `Welcome to AI Guru Connect — your on-demand learning buddy.<br/> Ask me anything about the <span class='font-[600]'>${e.amaSkillName || "Skill"}</span>, and I’ll give you quick, clear answers so you can keep learning without pause.`);
|
|
40
|
+
return (f, i) => (d(), _("section", null, [
|
|
41
|
+
s("div", ce, [
|
|
42
42
|
s("div", _e, [
|
|
43
|
-
s("div", ue,
|
|
44
|
-
|
|
43
|
+
s("div", ue, [
|
|
44
|
+
s("div", { innerHTML: o.value }, null, 8, me)
|
|
45
|
+
]),
|
|
46
|
+
s("div", fe, [
|
|
47
|
+
s("div", { innerHTML: u.value }, null, 8, pe)
|
|
48
|
+
])
|
|
45
49
|
])
|
|
46
50
|
]),
|
|
47
|
-
|
|
51
|
+
ge
|
|
48
52
|
]));
|
|
49
53
|
}
|
|
50
|
-
}),
|
|
54
|
+
}), ke = { class: "fontFormattingAMA flex items-end justify-start py-2" }, be = { class: "line-break w-full bg-gray-100 p-3 text-sm text-black md:text-[15px] rounded-lg" }, ve = ["innerHTML"], xe = /* @__PURE__ */ v({
|
|
51
55
|
__name: "responseAMA",
|
|
52
56
|
props: {
|
|
53
57
|
answer: {
|
|
@@ -56,24 +60,24 @@ const ae = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#0
|
|
|
56
60
|
}
|
|
57
61
|
},
|
|
58
62
|
setup(l) {
|
|
59
|
-
const e = l, t =
|
|
60
|
-
const
|
|
63
|
+
const e = l, t = L(() => {
|
|
64
|
+
const o = e.answer.replace(/[*#]/g, "").replace(
|
|
61
65
|
/Assessment Rating & Feedback/g,
|
|
62
66
|
'<div style="font-size: 26px; font-weight: bold; text-decoration: underline;">Rating & Feedback</div>'
|
|
63
|
-
),
|
|
64
|
-
return
|
|
67
|
+
), u = /\[([^\]]+)\]\((https?:\/\/[^\s]+)\)/g;
|
|
68
|
+
return o.replace(u, (f, i, a) => `<a href="${a}" target="_blank" rel="noopener noreferrer" style="color: blue; text-decoration: underline;">${i}</a>`);
|
|
65
69
|
});
|
|
66
|
-
return (
|
|
67
|
-
s("div",
|
|
70
|
+
return (o, u) => (d(), _("div", ke, [
|
|
71
|
+
s("div", be, [
|
|
68
72
|
s("span", {
|
|
69
73
|
class: "fontFormattingAMA",
|
|
70
74
|
innerHTML: t.value
|
|
71
|
-
}, null, 8,
|
|
75
|
+
}, null, 8, ve)
|
|
72
76
|
])
|
|
73
77
|
]));
|
|
74
78
|
}
|
|
75
79
|
});
|
|
76
|
-
const
|
|
80
|
+
const ye = /* @__PURE__ */ A(xe, [["__scopeId", "data-v-38edcca6"]]), we = { class: "flex justify-end items-end py-3" }, Ae = { class: "max-w-[80%]" }, $e = { class: "w-fit md:text-[15px] fontFormattingAMA text-sm text-white bg-genpact-blue-box leading-6 p-3 rounded-lg" }, Me = /* @__PURE__ */ v({
|
|
77
81
|
__name: "learnerAMA",
|
|
78
82
|
props: {
|
|
79
83
|
question: {
|
|
@@ -82,20 +86,20 @@ const ve = /* @__PURE__ */ A(be, [["__scopeId", "data-v-38edcca6"]]), xe = { cla
|
|
|
82
86
|
}
|
|
83
87
|
},
|
|
84
88
|
setup(l) {
|
|
85
|
-
return (e, t) => (
|
|
86
|
-
s("div",
|
|
87
|
-
s("div",
|
|
89
|
+
return (e, t) => (d(), _("div", we, [
|
|
90
|
+
s("div", Ae, [
|
|
91
|
+
s("div", $e, q(l.question), 1)
|
|
88
92
|
])
|
|
89
93
|
]));
|
|
90
94
|
}
|
|
91
|
-
}),
|
|
95
|
+
}), Se = (l) => (C("data-v-12a02acf"), l = l(), T(), l), Ie = { class: "flex w-full flex-col items-start justify-start bg-white" }, Le = { class: "bot-typing-animation gap-1" }, qe = { class: "block w-full text-lg italic text-gray-800" }, Ce = /* @__PURE__ */ Se(() => /* @__PURE__ */ s("span", { class: "dot-animation" }, [
|
|
92
96
|
/* @__PURE__ */ s("span", null, "."),
|
|
93
97
|
/* @__PURE__ */ s("span", null, "."),
|
|
94
98
|
/* @__PURE__ */ s("span", null, ".")
|
|
95
|
-
], -1)),
|
|
99
|
+
], -1)), Te = /* @__PURE__ */ D('<div class="block w-full max-w-full items-stretch" data-v-12a02acf><div class="flex animate-pulse items-start justify-start space-x-4" data-v-12a02acf><div class="flex-1 space-y-6 py-1" data-v-12a02acf><div class="h-2 w-full rounded bg-gray-300" data-v-12a02acf></div><div class="space-y-3" data-v-12a02acf><div class="grid grid-cols-3 gap-4" data-v-12a02acf><div class="col-span-2 h-2 rounded bg-gray-300" data-v-12a02acf></div><div class="col-span-1 h-2 rounded bg-gray-300" data-v-12a02acf></div></div><div class="h-2 rounded bg-gray-300" data-v-12a02acf></div></div></div></div></div>', 1), Pe = /* @__PURE__ */ v({
|
|
96
100
|
__name: "LoadingResponseAMA",
|
|
97
101
|
setup(l) {
|
|
98
|
-
const e =
|
|
102
|
+
const e = c("Generating response"), t = c([
|
|
99
103
|
"This may take a few seconds",
|
|
100
104
|
"Fetching the best response for you",
|
|
101
105
|
"Thinking... give me a moment",
|
|
@@ -105,53 +109,53 @@ const ve = /* @__PURE__ */ A(be, [["__scopeId", "data-v-38edcca6"]]), xe = { cla
|
|
|
105
109
|
"Compiling a response for you"
|
|
106
110
|
]);
|
|
107
111
|
return setTimeout(() => {
|
|
108
|
-
const
|
|
109
|
-
e.value = t.value[
|
|
110
|
-
}, 15e3), (
|
|
111
|
-
s("div",
|
|
112
|
-
s("div",
|
|
113
|
-
|
|
112
|
+
const o = Math.floor(Math.random() * t.value.length);
|
|
113
|
+
e.value = t.value[o];
|
|
114
|
+
}, 15e3), (o, u) => (d(), _("div", Ie, [
|
|
115
|
+
s("div", Le, [
|
|
116
|
+
s("div", qe, q(e.value), 1),
|
|
117
|
+
Ce
|
|
114
118
|
]),
|
|
115
|
-
|
|
119
|
+
Te
|
|
116
120
|
]));
|
|
117
121
|
}
|
|
118
122
|
});
|
|
119
|
-
const Ee = /* @__PURE__ */ A(
|
|
123
|
+
const Ee = /* @__PURE__ */ A(Pe, [["__scopeId", "data-v-12a02acf"]]), Re = { key: 0 }, Ne = { key: 1 }, Qe = {
|
|
120
124
|
key: 0,
|
|
121
125
|
class: "flex"
|
|
122
|
-
},
|
|
126
|
+
}, Fe = /* @__PURE__ */ v({
|
|
123
127
|
__name: "conversationAMA",
|
|
124
128
|
setup(l) {
|
|
125
|
-
let e =
|
|
129
|
+
let e = c(""), t = c("");
|
|
126
130
|
e.value = '<a style="color:#00AECF;"', t.value = '<ul style="list-style: disc !important; margin-left: 3.5rem !important; padding: 0;"';
|
|
127
|
-
const
|
|
131
|
+
const o = $(), u = c();
|
|
128
132
|
return P(() => {
|
|
129
133
|
var a;
|
|
130
|
-
const f = document.getElementsByName("askQuestion"),
|
|
131
|
-
f.length && ((a =
|
|
134
|
+
const f = document.getElementsByName("askQuestion"), i = Array.from(f);
|
|
135
|
+
f.length && ((a = i == null ? void 0 : i.pop()) == null || a.scrollIntoView({ behavior: "smooth", block: "center" }));
|
|
132
136
|
}), z(() => {
|
|
133
137
|
var a;
|
|
134
|
-
const f = document.getElementsByName("askQuestion"),
|
|
135
|
-
f.length && ((a =
|
|
136
|
-
}), (f,
|
|
138
|
+
const f = document.getElementsByName("askQuestion"), i = Array.from(f);
|
|
139
|
+
f.length && ((a = i == null ? void 0 : i.pop()) == null || a.scrollIntoView({ behavior: "smooth", block: "center" }));
|
|
140
|
+
}), (f, i) => (d(), _("div", {
|
|
137
141
|
ref_key: "nestedElement",
|
|
138
|
-
ref:
|
|
142
|
+
ref: u,
|
|
139
143
|
class: "smooth-scroll overflow-auto md:px-6 px-2"
|
|
140
144
|
}, [
|
|
141
|
-
k(
|
|
142
|
-
(
|
|
143
|
-
a.question ? (
|
|
144
|
-
k(
|
|
145
|
+
k(he),
|
|
146
|
+
(d(!0), _(O, null, W(b(o).conversations, (a, m) => (d(), _("div", { key: m }, [
|
|
147
|
+
a.question ? (d(), _("div", Re, [
|
|
148
|
+
k(Me, {
|
|
145
149
|
question: a.question,
|
|
146
150
|
c2question: a.c2question,
|
|
147
151
|
"show-feedback": a.showFeedback,
|
|
148
|
-
id: `qId${
|
|
152
|
+
id: `qId${m}`,
|
|
149
153
|
name: "askQuestion",
|
|
150
|
-
"que-id":
|
|
154
|
+
"que-id": m
|
|
151
155
|
}, null, 8, ["question", "c2question", "show-feedback", "id", "que-id"])
|
|
152
|
-
])) :
|
|
153
|
-
a.answer ? (
|
|
154
|
-
k(
|
|
156
|
+
])) : I("", !0),
|
|
157
|
+
a.answer ? (d(), _("div", Ne, [
|
|
158
|
+
k(ye, {
|
|
155
159
|
question: a == null ? void 0 : a.question,
|
|
156
160
|
c2question: a == null ? void 0 : a.c2question,
|
|
157
161
|
"show-sources": a == null ? void 0 : a.showSources,
|
|
@@ -160,44 +164,44 @@ const Ee = /* @__PURE__ */ A(Le, [["__scopeId", "data-v-12a02acf"]]), Pe = { key
|
|
|
160
164
|
"show-feedback": a.showFeedback,
|
|
161
165
|
"related-ques": a.relatedQues,
|
|
162
166
|
"options-array": a.optionsArray,
|
|
163
|
-
"ans-id":
|
|
167
|
+
"ans-id": m
|
|
164
168
|
}, null, 8, ["question", "c2question", "show-sources", "questionId", "answer", "show-feedback", "related-ques", "options-array", "ans-id"])
|
|
165
|
-
])) :
|
|
169
|
+
])) : I("", !0)
|
|
166
170
|
]))), 128)),
|
|
167
|
-
b(
|
|
171
|
+
b(o).dotLoader ? (d(), _("div", Qe, [
|
|
168
172
|
k(Ee)
|
|
169
|
-
])) :
|
|
173
|
+
])) : I("", !0)
|
|
170
174
|
], 512));
|
|
171
175
|
}
|
|
172
176
|
});
|
|
173
|
-
const
|
|
174
|
-
|
|
175
|
-
],
|
|
177
|
+
const je = /* @__PURE__ */ A(Fe, [["__scopeId", "data-v-e6168dd4"]]), M = (l) => (C("data-v-482b2d96"), l = l(), T(), l), He = { class: "z-3 absolute bottom-0 mt-4 w-full bg-white px-2 md:px-6" }, Be = { class: "py-2" }, Ge = { class: "flex" }, Ue = { class: "z-1 relative w-full" }, Ve = { class: "relative w-full" }, De = { class: "absolute inset-y-0 right-0 flex items-center md:pr-8 pr-3" }, ze = { key: 0 }, Oe = /* @__PURE__ */ M(() => /* @__PURE__ */ s("path", { d: "M15.854.146a.5.5 0 0 1 .11.54l-5.819 14.547a.75.75 0 0 1-1.329.124l-3.178-4.995L.643 7.184a.75.75 0 0 1 .124-1.33L15.314.037a.5.5 0 0 1 .54.11ZM6.636 10.07l2.761 4.338L14.13 2.576 6.636 10.07Zm6.787-8.201L1.591 6.602l4.339 2.76 7.494-7.493Z" }, null, -1)), We = [
|
|
178
|
+
Oe
|
|
179
|
+
], Ze = {
|
|
176
180
|
key: 1,
|
|
177
181
|
class: "tooltip"
|
|
178
|
-
},
|
|
182
|
+
}, Ke = /* @__PURE__ */ M(() => /* @__PURE__ */ s("span", { class: "tooltiptext fontFormattingAMA" }, "Waiting for response", -1)), Ye = /* @__PURE__ */ M(() => /* @__PURE__ */ s("img", {
|
|
179
183
|
class: "w-7 h-7",
|
|
180
|
-
src:
|
|
184
|
+
src: B,
|
|
181
185
|
alt: "watingIcon"
|
|
182
|
-
}, null, -1)),
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
],
|
|
186
|
+
}, null, -1)), Je = [
|
|
187
|
+
Ke,
|
|
188
|
+
Ye
|
|
189
|
+
], Xe = { class: "flex justify-start" }, es = { class: "flex justify-start items-start text-[#161916]" }, ss = /* @__PURE__ */ M(() => /* @__PURE__ */ s("div", { class: "pt-1 text-start font-sans" }, [
|
|
186
190
|
/* @__PURE__ */ s("div", { class: "text-xs font-bold text-gray-500 md:text-sm" }, " Note: AI-generated response may not be fully accurate; check with experts for critical information. ")
|
|
187
|
-
], -1)),
|
|
191
|
+
], -1)), as = /* @__PURE__ */ v({
|
|
188
192
|
__name: "NewQuestionAMA",
|
|
189
193
|
setup(l) {
|
|
190
|
-
const e = $(), t =
|
|
194
|
+
const e = $(), t = N();
|
|
191
195
|
e.question = "";
|
|
192
|
-
const
|
|
196
|
+
const o = c(null), u = c(!1), f = c(S), i = c(!1);
|
|
193
197
|
P(() => {
|
|
194
|
-
|
|
198
|
+
o.value.focus();
|
|
195
199
|
});
|
|
196
|
-
const
|
|
197
|
-
console.log("amaId",
|
|
200
|
+
const m = c(((p) => new URLSearchParams(window.location.search).get(p) || "")("amaId"));
|
|
201
|
+
console.log("amaId", m.value);
|
|
198
202
|
const x = (p) => {
|
|
199
203
|
const r = p.length;
|
|
200
|
-
f.value =
|
|
204
|
+
f.value = S - r, u.value = r >= S;
|
|
201
205
|
}, y = async () => {
|
|
202
206
|
var p, r, g, n;
|
|
203
207
|
try {
|
|
@@ -209,47 +213,47 @@ const Qe = /* @__PURE__ */ A(Te, [["__scopeId", "data-v-e6168dd4"]]), S = (l) =>
|
|
|
209
213
|
t.setError("You have exhausted your question limit!");
|
|
210
214
|
return;
|
|
211
215
|
}
|
|
212
|
-
|
|
216
|
+
i.value = !0, e.dotLoader = !0;
|
|
213
217
|
const h = {
|
|
214
218
|
question: e == null ? void 0 : e.question
|
|
215
219
|
};
|
|
216
220
|
e.conversations.push(h);
|
|
217
|
-
const w =
|
|
221
|
+
const w = c("");
|
|
218
222
|
w.value = e == null ? void 0 : e.question, e.question = "";
|
|
219
223
|
const F = {
|
|
220
|
-
skillId:
|
|
224
|
+
skillId: m.value,
|
|
221
225
|
question: w.value,
|
|
222
226
|
past_messages: e.past_messages
|
|
223
227
|
}, j = await ee("/amaBotResponse", F);
|
|
224
|
-
e.addConversation((p = j.data) == null ? void 0 : p.body, "new"),
|
|
228
|
+
e.addConversation((p = j.data) == null ? void 0 : p.body, "new"), i.value = !1, e.dotLoader = !1;
|
|
225
229
|
} catch (h) {
|
|
226
|
-
if (console.error(h), e.dotLoader = !1,
|
|
230
|
+
if (console.error(h), e.dotLoader = !1, i.value = !1, Q.isAxiosError(h)) {
|
|
227
231
|
const w = h;
|
|
228
232
|
console.log("Error found!"), console.error((r = w.response) == null ? void 0 : r.data), t.setError((n = (g = w.response) == null ? void 0 : g.data) == null ? void 0 : n.message);
|
|
229
233
|
} else
|
|
230
234
|
t.setError("There was an issue, please contact helpmate");
|
|
231
235
|
}
|
|
232
236
|
};
|
|
233
|
-
return (p, r) => (
|
|
234
|
-
s("div",
|
|
235
|
-
s("div",
|
|
236
|
-
s("div",
|
|
237
|
-
s("div",
|
|
238
|
-
s("div",
|
|
239
|
-
|
|
240
|
-
(
|
|
237
|
+
return (p, r) => (d(), _("div", He, [
|
|
238
|
+
s("div", Be, [
|
|
239
|
+
s("div", Ge, [
|
|
240
|
+
s("div", Ue, [
|
|
241
|
+
s("div", Ve, [
|
|
242
|
+
s("div", De, [
|
|
243
|
+
i.value ? (d(), _("div", Ze, Je)) : (d(), _("div", ze, [
|
|
244
|
+
(d(), _("svg", {
|
|
241
245
|
onClick: r[0] || (r[0] = (g) => y()),
|
|
242
246
|
xmlns: "http://www.w3.org/2000/svg",
|
|
243
247
|
fill: "currentColor",
|
|
244
248
|
class: "bi bi-send ml-2 h-7 w-7 rotate-45 rounded",
|
|
245
249
|
viewBox: "0 0 16 16"
|
|
246
|
-
},
|
|
250
|
+
}, We))
|
|
247
251
|
]))
|
|
248
252
|
]),
|
|
249
|
-
s("div",
|
|
253
|
+
s("div", Xe, [
|
|
250
254
|
Z(s("input", {
|
|
251
255
|
onKeyup: [
|
|
252
|
-
r[1] || (r[1] = Y((g) =>
|
|
256
|
+
r[1] || (r[1] = Y((g) => i.value ? "" : y(), ["enter"])),
|
|
253
257
|
r[3] || (r[3] = (g) => x(b(e).question))
|
|
254
258
|
],
|
|
255
259
|
"onUpdate:modelValue": r[2] || (r[2] = (g) => b(e).question = g),
|
|
@@ -257,24 +261,24 @@ const Qe = /* @__PURE__ */ A(Te, [["__scopeId", "data-v-e6168dd4"]]), S = (l) =>
|
|
|
257
261
|
placeholder: "Write your answer here...",
|
|
258
262
|
type: "text",
|
|
259
263
|
ref_key: "AiSearch",
|
|
260
|
-
ref:
|
|
264
|
+
ref: o
|
|
261
265
|
}, null, 544), [
|
|
262
266
|
[K, b(e).question]
|
|
263
267
|
])
|
|
264
268
|
])
|
|
265
269
|
]),
|
|
266
|
-
s("div",
|
|
267
|
-
|
|
270
|
+
s("div", es, q(b(e).amaQuestionsLeft) + " questions remaining for the day ", 1),
|
|
271
|
+
ss
|
|
268
272
|
])
|
|
269
273
|
])
|
|
270
274
|
])
|
|
271
275
|
]));
|
|
272
276
|
}
|
|
273
277
|
});
|
|
274
|
-
const
|
|
278
|
+
const ts = /* @__PURE__ */ A(as, [["__scopeId", "data-v-482b2d96"]]), ls = (l) => {
|
|
275
279
|
var e;
|
|
276
|
-
return (e =
|
|
277
|
-
},
|
|
280
|
+
return (e = is.find((t) => t.skill_id === l)) == null ? void 0 : e.skill_name;
|
|
281
|
+
}, is = [
|
|
278
282
|
{
|
|
279
283
|
skill_alias: "Client Relationships",
|
|
280
284
|
skill_name: "Client Relationships",
|
|
@@ -418,25 +422,25 @@ const ss = /* @__PURE__ */ A(es, [["__scopeId", "data-v-482b2d96"]]), as = (l) =
|
|
|
418
422
|
skill_name: "Cloud",
|
|
419
423
|
skill_id: "9e018249-fba4-41b8-be19-364ddf78b61d"
|
|
420
424
|
}
|
|
421
|
-
],
|
|
425
|
+
], E = (l) => (C("data-v-1821197c"), l = l(), T(), l), os = /* @__PURE__ */ E(() => /* @__PURE__ */ s("div", { class: "max-h-screen overflow-auto md:p-6 p-3 flex flex-col items-center justify-center gap-4 text-[#161916]" }, [
|
|
422
426
|
/* @__PURE__ */ s("div", { class: "text-2xl font-[700]" }, "Assessment Access Required"),
|
|
423
427
|
/* @__PURE__ */ s("h3", { className: "text-lg font-medium my-6 text-center text-gray-500" }, " You don't have access to this assessment. Please contact to administrator ")
|
|
424
|
-
], -1)),
|
|
428
|
+
], -1)), ns = {
|
|
425
429
|
key: 1,
|
|
426
430
|
className: "h-screen flex flex-col items-stretch"
|
|
427
|
-
},
|
|
431
|
+
}, rs = { class: "z-20" }, ds = /* @__PURE__ */ E(() => /* @__PURE__ */ s("div", { class: "mt-6" }, null, -1)), cs = { class: "flex h-full items-stretch overflow-hidden" }, _s = { class: "mx-auto w-11/12 bg-white" }, us = { class: "relative flex h-full w-full flex-col items-stretch overflow-hidden" }, ms = /* @__PURE__ */ E(() => /* @__PURE__ */ s("div", { class: "mt-[160px]" }, null, -1)), fs = { class: "relative" }, ps = /* @__PURE__ */ v({
|
|
428
432
|
__name: "AssessmentAMA",
|
|
429
433
|
setup(l) {
|
|
430
|
-
const e =
|
|
431
|
-
|
|
432
|
-
const
|
|
433
|
-
|
|
434
|
+
const e = c(!0), t = c(!1), o = $(), u = N();
|
|
435
|
+
c("");
|
|
436
|
+
const i = c(((m) => new URLSearchParams(window.location.search).get(m) || "")("amaId"));
|
|
437
|
+
o.amaSkillId = i.value ?? "", P(async () => {
|
|
434
438
|
e.value = !0, await a(), e.value = !1;
|
|
435
439
|
});
|
|
436
440
|
const a = async () => {
|
|
437
|
-
var
|
|
441
|
+
var m, x, y, p, r, g;
|
|
438
442
|
try {
|
|
439
|
-
if (
|
|
443
|
+
if (i.value === null)
|
|
440
444
|
throw {
|
|
441
445
|
response: {
|
|
442
446
|
status: 424,
|
|
@@ -447,9 +451,9 @@ const ss = /* @__PURE__ */ A(es, [["__scopeId", "data-v-482b2d96"]]), as = (l) =
|
|
|
447
451
|
};
|
|
448
452
|
console.log("before calling get learner");
|
|
449
453
|
const n = await se(
|
|
450
|
-
`/getLearnerData?amaSkillId=${
|
|
454
|
+
`/getLearnerData?amaSkillId=${i.value}`
|
|
451
455
|
);
|
|
452
|
-
|
|
456
|
+
o.initialize(n.data), o.amaQuestionsLeft = (m = n == null ? void 0 : n.data) == null ? void 0 : m.questionsLeftAIGC, o.amaSkillName = ls(o.amaSkillId) || "", e.value = !1;
|
|
453
457
|
} catch (n) {
|
|
454
458
|
if (console.error(n), e.value = !1, Q.isAxiosError(n) && ((x = n.response) != null && x.status) || n && typeof n == "object" && "response" in n && n.response && typeof n.response == "object" && "status" in n.response && n.response.status) {
|
|
455
459
|
const h = n;
|
|
@@ -457,32 +461,32 @@ const ss = /* @__PURE__ */ A(es, [["__scopeId", "data-v-482b2d96"]]), as = (l) =
|
|
|
457
461
|
t.value = !0;
|
|
458
462
|
return;
|
|
459
463
|
}
|
|
460
|
-
|
|
464
|
+
u.setError(((g = h.response) == null ? void 0 : g.data).message);
|
|
461
465
|
} else
|
|
462
|
-
|
|
466
|
+
u.setError("There was an issue, please contact helpmate");
|
|
463
467
|
}
|
|
464
468
|
};
|
|
465
|
-
return (
|
|
466
|
-
k(
|
|
469
|
+
return (m, x) => (d(), _("section", null, [
|
|
470
|
+
k(V, { "is-visible": t.value }, {
|
|
467
471
|
default: J(() => [
|
|
468
|
-
|
|
472
|
+
os
|
|
469
473
|
]),
|
|
470
474
|
_: 1
|
|
471
475
|
}, 8, ["is-visible"]),
|
|
472
476
|
s("div", null, [
|
|
473
|
-
e.value ? (
|
|
474
|
-
s("div", os, [
|
|
475
|
-
k(ce)
|
|
476
|
-
]),
|
|
477
|
-
ns,
|
|
477
|
+
e.value ? (d(), X(G, { key: 0 })) : (d(), _("main", ns, [
|
|
478
478
|
s("div", rs, [
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
479
|
+
k(de)
|
|
480
|
+
]),
|
|
481
|
+
ds,
|
|
482
|
+
s("div", cs, [
|
|
483
|
+
s("div", _s, [
|
|
484
484
|
s("div", us, [
|
|
485
|
-
k(
|
|
485
|
+
k(je),
|
|
486
|
+
ms
|
|
487
|
+
]),
|
|
488
|
+
s("div", fs, [
|
|
489
|
+
k(ts)
|
|
486
490
|
])
|
|
487
491
|
])
|
|
488
492
|
])
|
|
@@ -491,7 +495,7 @@ const ss = /* @__PURE__ */ A(es, [["__scopeId", "data-v-482b2d96"]]), as = (l) =
|
|
|
491
495
|
]));
|
|
492
496
|
}
|
|
493
497
|
});
|
|
494
|
-
const
|
|
498
|
+
const ys = /* @__PURE__ */ A(ps, [["__scopeId", "data-v-1821197c"]]);
|
|
495
499
|
export {
|
|
496
|
-
|
|
500
|
+
ys as default
|
|
497
501
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as Cl, a as ap, L as yl } from "./LoadingSimulation-
|
|
2
|
-
import { _ as Pl, a as cp, Q as jt, M as Ta } from "./Modal-
|
|
3
|
-
import { d as Ae, r as T, H as Pt, o as D, c as k, a as P, k as wt, u as De, C as Wt, q as Ee, y as qo, h as Ce, s as up, t as Ge, b as O, f as ye, i as ge, I as Ji, F as Fo, e as Uo, w as Zo, J as Rl, p as Vn, g as $n, G as Zi, z as El, K as wl, n as Lt, m as pp, L as dp, l as Al } from "./main-
|
|
4
|
-
import { g as Bn, p as Rt } from "./api-
|
|
5
|
-
import { c as q, a as Il, r as _l } from "./_commonjsHelpers-
|
|
1
|
+
import { _ as Cl, a as ap, L as yl } from "./LoadingSimulation-8a2c4725.mjs";
|
|
2
|
+
import { _ as Pl, a as cp, Q as jt, M as Ta } from "./Modal-65cfe959.mjs";
|
|
3
|
+
import { d as Ae, r as T, H as Pt, o as D, c as k, a as P, k as wt, u as De, C as Wt, q as Ee, y as qo, h as Ce, s as up, t as Ge, b as O, f as ye, i as ge, I as Ji, F as Fo, e as Uo, w as Zo, J as Rl, p as Vn, g as $n, G as Zi, z as El, K as wl, n as Lt, m as pp, L as dp, l as Al } from "./main-736b05ea.mjs";
|
|
4
|
+
import { g as Bn, p as Rt } from "./api-4b466ad8.mjs";
|
|
5
|
+
import { c as q, a as Il, r as _l } from "./_commonjsHelpers-777ec84c.mjs";
|
|
6
6
|
import { _ as Vt } from "./_plugin-vue_export-helper-dad06003.mjs";
|
|
7
7
|
import "./loadernew-ac153a51.mjs";
|
|
8
8
|
const Tl = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#021c42] md:pr-6 lg:pr-6" }, bl = ["href"], Ml = /* @__PURE__ */ P("img", {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as G, M as z, o as n, c as d, a as e, h as L, b as c, u as H, k as O, r, w as h, m as k, n as S, v as $, F as q, e as P, t as b, q as D, D as T, p as Y, g as J, i as F } from "./main-
|
|
1
|
+
import { d as G, M as z, o as n, c as d, a as e, h as L, b as c, u as H, k as O, r, w as h, m as k, n as S, v as $, F as q, e as P, t as b, q as D, D as T, p as Y, g as J, i as F } from "./main-736b05ea.mjs";
|
|
2
2
|
import { _ as j } from "./loadernew-ac153a51.mjs";
|
|
3
|
-
import { p as B, g as Q } from "./api-
|
|
3
|
+
import { p as B, g as Q } from "./api-4b466ad8.mjs";
|
|
4
4
|
import { _ as X } from "./genome-Logo-white-ffcf2413.mjs";
|
|
5
|
-
import { r as Z } from "./ArrowLeftCircleIcon-
|
|
5
|
+
import { r as Z } from "./ArrowLeftCircleIcon-39762b31.mjs";
|
|
6
6
|
import { _ as ee } from "./_plugin-vue_export-helper-dad06003.mjs";
|
|
7
7
|
const te = { className: "flex justify-between items-center gap-4 h-14" }, se = /* @__PURE__ */ e("div", { class: "font-bold text-base md:text-xl" }, "Back", -1), oe = /* @__PURE__ */ e("div", { class: "text-white font-bold md:text-xl text-base" }, "AI Guru Edit Skill Admin Data", -1), le = /* @__PURE__ */ e("img", {
|
|
8
8
|
class: "md:w-36 w-20",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as j, M as W, o as r, c, a as e, h as q, b as a, K as G, u as z, k as P, r as i, w as y, m as k, n as S, f as g, F as A, e as H, v as O, t as x, q as B, D as Y, p as J, g as Q, i as D } from "./main-
|
|
1
|
+
import { d as j, M as W, o as r, c, a as e, h as q, b as a, K as G, u as z, k as P, r as i, w as y, m as k, n as S, f as g, F as A, e as H, v as O, t as x, q as B, D as Y, p as J, g as Q, i as D } from "./main-736b05ea.mjs";
|
|
2
2
|
import { _ as K } from "./loadernew-ac153a51.mjs";
|
|
3
|
-
import { p as $ } from "./api-
|
|
3
|
+
import { p as $ } from "./api-4b466ad8.mjs";
|
|
4
4
|
import { _ as X } from "./genome-Logo-white-ffcf2413.mjs";
|
|
5
|
-
import { r as Z } from "./ArrowLeftCircleIcon-
|
|
5
|
+
import { r as Z } from "./ArrowLeftCircleIcon-39762b31.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",
|