@genpact/genome.mfe.mgtwin-app 1.1.313-alpha → 1.1.314-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-035043b1.mjs} +1 -1
- package/dist/{AssessmentAMA-9f4571fc.mjs → AssessmentAMA-7f02776d.mjs} +110 -108
- package/dist/{AssessmentSimulation-9170b3cf.mjs → AssessmentSimulation-73210639.mjs} +5 -5
- package/dist/{EditSkillAdminData-da0d4ee6.mjs → EditSkillAdminData-9e42ff08.mjs} +3 -3
- package/dist/{EditSkillData-bd6c8835.mjs → EditSkillData-ae0e5c42.mjs} +3 -3
- package/dist/{HomeView-28edadca.mjs → HomeView-84386aba.mjs} +5 -5
- package/dist/{Loading-8059ee43.mjs → Loading-1e59a1f3.mjs} +1 -1
- package/dist/{LoadingSimulation-747b686d.mjs → LoadingSimulation-7fc43474.mjs} +1 -1
- package/dist/{Modal-26b30cd1.mjs → Modal-5557ee8a.mjs} +1 -1
- package/dist/{PaperAirplaneIcon-34068787.mjs → PaperAirplaneIcon-234829f4.mjs} +1 -1
- package/dist/{PromptTesting-8deafb35.mjs → PromptTesting-fe687122.mjs} +3 -3
- package/dist/{SkillAutomation-54c5d872.mjs → SkillAutomation-f659fd5c.mjs} +3 -3
- package/dist/{SkillData-7ab6d0c1.mjs → SkillData-b020db39.mjs} +3 -3
- package/dist/{Testcase-e01f1c24.mjs → Testcase-f6e6677a.mjs} +3 -3
- package/dist/{UnderMaintenance-e54e12f0.mjs → UnderMaintenance-5eabeb61.mjs} +1 -1
- package/dist/{_commonjsHelpers-29332104.mjs → _commonjsHelpers-c12d4152.mjs} +1 -1
- package/dist/{api-e3c97323.mjs → api-850c682e.mjs} +1 -1
- package/dist/{main-db24298c.mjs → main-52b92f99.mjs} +1260 -1260
- package/dist/mgtwin.es.min.js +1 -1
- package/dist/mgtwin.umd.min.js +3 -3
- package/package.json +1 -1
|
@@ -1,53 +1,55 @@
|
|
|
1
|
-
import { _ as B, a as G, L as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { d as v, r as
|
|
1
|
+
import { _ as B, a as G, L as H } from "./LoadingSimulation-7fc43474.mjs";
|
|
2
|
+
import { _ as U, Q as I, a as V } from "./Modal-5557ee8a.mjs";
|
|
3
|
+
import { d as v, r as c, H as R, o as d, c as _, a as s, u as $, y as C, t as M, G as D, p as L, g as P, C as E, z, h as k, F as O, e as W, f as q, b, k as N, w as Z, m as K, L as Y, q as Q, s as J, l as X } from "./main-52b92f99.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-850c682e.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
9
|
src: B,
|
|
10
10
|
alt: "Genome Logo"
|
|
11
|
-
}, null, -1),
|
|
11
|
+
}, null, -1), oe = [
|
|
12
12
|
le
|
|
13
|
-
],
|
|
13
|
+
], ie = ["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", (i,
|
|
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", (i, u) => (d(), _("nav", ae, [
|
|
24
24
|
s("a", {
|
|
25
25
|
class: "px-2 md:px-0 lg:px-0",
|
|
26
26
|
href: e.value,
|
|
27
27
|
target: "_blank"
|
|
28
|
-
},
|
|
28
|
+
}, oe, 8, te),
|
|
29
29
|
s("a", {
|
|
30
30
|
class: "px-2 md:px-0 lg:px-0",
|
|
31
31
|
href: t.value,
|
|
32
32
|
target: "_blank"
|
|
33
|
-
}, re, 8,
|
|
33
|
+
}, re, 8, ie)
|
|
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 = { class: "w-full px-3 py-2 text-base text-black text-[12px] md:text-[16px] font-[550]" }, fe = ["innerHTML"], pe = /* @__PURE__ */ s("br", null, null, -1), ge = /* @__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"}!`, i = C(() => t), u = C(() => `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, o) => (d(), _("section", null, [
|
|
41
|
+
s("div", ce, [
|
|
42
42
|
s("div", _e, [
|
|
43
43
|
s("div", ue, M(i.value), 1),
|
|
44
|
-
me
|
|
44
|
+
s("div", me, [
|
|
45
|
+
s("div", { innerHTML: u.value }, null, 8, fe)
|
|
46
|
+
])
|
|
45
47
|
])
|
|
46
48
|
]),
|
|
47
|
-
|
|
49
|
+
pe
|
|
48
50
|
]));
|
|
49
51
|
}
|
|
50
|
-
}),
|
|
52
|
+
}), he = { class: "fontFormattingAMA flex items-end justify-start py-2" }, ke = { class: "line-break w-full bg-gray-100 p-3 text-sm text-black md:text-[15px] rounded-lg" }, be = ["innerHTML"], ve = /* @__PURE__ */ v({
|
|
51
53
|
__name: "responseAMA",
|
|
52
54
|
props: {
|
|
53
55
|
answer: {
|
|
@@ -60,20 +62,20 @@ const ae = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#0
|
|
|
60
62
|
const i = e.answer.replace(/[*#]/g, "").replace(
|
|
61
63
|
/Assessment Rating & Feedback/g,
|
|
62
64
|
'<div style="font-size: 26px; font-weight: bold; text-decoration: underline;">Rating & Feedback</div>'
|
|
63
|
-
),
|
|
64
|
-
return i.replace(
|
|
65
|
+
), u = /\[([^\]]+)\]\((https?:\/\/[^\s]+)\)/g;
|
|
66
|
+
return i.replace(u, (f, o, a) => `<a href="${a}" target="_blank" rel="noopener noreferrer" style="color: blue; text-decoration: underline;">${o}</a>`);
|
|
65
67
|
});
|
|
66
|
-
return (i,
|
|
67
|
-
s("div",
|
|
68
|
+
return (i, u) => (d(), _("div", he, [
|
|
69
|
+
s("div", ke, [
|
|
68
70
|
s("span", {
|
|
69
71
|
class: "fontFormattingAMA",
|
|
70
72
|
innerHTML: t.value
|
|
71
|
-
}, null, 8,
|
|
73
|
+
}, null, 8, be)
|
|
72
74
|
])
|
|
73
75
|
]));
|
|
74
76
|
}
|
|
75
77
|
});
|
|
76
|
-
const
|
|
78
|
+
const xe = /* @__PURE__ */ A(ve, [["__scopeId", "data-v-38edcca6"]]), ye = { class: "flex justify-end items-end py-3" }, we = { class: "max-w-[80%]" }, Ae = { class: "w-fit md:text-[15px] fontFormattingAMA text-sm text-white bg-genpact-blue-box leading-6 p-3 rounded-lg" }, $e = /* @__PURE__ */ v({
|
|
77
79
|
__name: "learnerAMA",
|
|
78
80
|
props: {
|
|
79
81
|
question: {
|
|
@@ -82,20 +84,20 @@ const ve = /* @__PURE__ */ A(be, [["__scopeId", "data-v-38edcca6"]]), xe = { cla
|
|
|
82
84
|
}
|
|
83
85
|
},
|
|
84
86
|
setup(l) {
|
|
85
|
-
return (e, t) => (
|
|
86
|
-
s("div",
|
|
87
|
-
s("div",
|
|
87
|
+
return (e, t) => (d(), _("div", ye, [
|
|
88
|
+
s("div", we, [
|
|
89
|
+
s("div", Ae, M(l.question), 1)
|
|
88
90
|
])
|
|
89
91
|
]));
|
|
90
92
|
}
|
|
91
|
-
}),
|
|
93
|
+
}), Me = (l) => (L("data-v-12a02acf"), l = l(), P(), l), Se = { class: "flex w-full flex-col items-start justify-start bg-white" }, Ie = { class: "bot-typing-animation gap-1" }, qe = { class: "block w-full text-lg italic text-gray-800" }, Ce = /* @__PURE__ */ Me(() => /* @__PURE__ */ s("span", { class: "dot-animation" }, [
|
|
92
94
|
/* @__PURE__ */ s("span", null, "."),
|
|
93
95
|
/* @__PURE__ */ s("span", null, "."),
|
|
94
96
|
/* @__PURE__ */ s("span", null, ".")
|
|
95
|
-
], -1)),
|
|
97
|
+
], -1)), Le = /* @__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
98
|
__name: "LoadingResponseAMA",
|
|
97
99
|
setup(l) {
|
|
98
|
-
const e =
|
|
100
|
+
const e = c("Generating response"), t = c([
|
|
99
101
|
"This may take a few seconds",
|
|
100
102
|
"Fetching the best response for you",
|
|
101
103
|
"Thinking... give me a moment",
|
|
@@ -107,25 +109,25 @@ const ve = /* @__PURE__ */ A(be, [["__scopeId", "data-v-38edcca6"]]), xe = { cla
|
|
|
107
109
|
return setTimeout(() => {
|
|
108
110
|
const i = Math.floor(Math.random() * t.value.length);
|
|
109
111
|
e.value = t.value[i];
|
|
110
|
-
}, 15e3), (i,
|
|
111
|
-
s("div",
|
|
112
|
-
s("div",
|
|
113
|
-
|
|
112
|
+
}, 15e3), (i, u) => (d(), _("div", Se, [
|
|
113
|
+
s("div", Ie, [
|
|
114
|
+
s("div", qe, M(e.value), 1),
|
|
115
|
+
Ce
|
|
114
116
|
]),
|
|
115
|
-
|
|
117
|
+
Le
|
|
116
118
|
]));
|
|
117
119
|
}
|
|
118
120
|
});
|
|
119
|
-
const Ee = /* @__PURE__ */ A(
|
|
121
|
+
const Ee = /* @__PURE__ */ A(Pe, [["__scopeId", "data-v-12a02acf"]]), Te = { key: 0 }, Re = { key: 1 }, Ne = {
|
|
120
122
|
key: 0,
|
|
121
123
|
class: "flex"
|
|
122
|
-
},
|
|
124
|
+
}, Qe = /* @__PURE__ */ v({
|
|
123
125
|
__name: "conversationAMA",
|
|
124
126
|
setup(l) {
|
|
125
|
-
let e =
|
|
127
|
+
let e = c(""), t = c("");
|
|
126
128
|
e.value = '<a style="color:#00AECF;"', t.value = '<ul style="list-style: disc !important; margin-left: 3.5rem !important; padding: 0;"';
|
|
127
|
-
const i = $(),
|
|
128
|
-
return
|
|
129
|
+
const i = $(), u = c();
|
|
130
|
+
return E(() => {
|
|
129
131
|
var a;
|
|
130
132
|
const f = document.getElementsByName("askQuestion"), o = Array.from(f);
|
|
131
133
|
f.length && ((a = o == null ? void 0 : o.pop()) == null || a.scrollIntoView({ behavior: "smooth", block: "center" }));
|
|
@@ -133,25 +135,25 @@ const Ee = /* @__PURE__ */ A(Le, [["__scopeId", "data-v-12a02acf"]]), Pe = { key
|
|
|
133
135
|
var a;
|
|
134
136
|
const f = document.getElementsByName("askQuestion"), o = Array.from(f);
|
|
135
137
|
f.length && ((a = o == null ? void 0 : o.pop()) == null || a.scrollIntoView({ behavior: "smooth", block: "center" }));
|
|
136
|
-
}), (f, o) => (
|
|
138
|
+
}), (f, o) => (d(), _("div", {
|
|
137
139
|
ref_key: "nestedElement",
|
|
138
|
-
ref:
|
|
140
|
+
ref: u,
|
|
139
141
|
class: "smooth-scroll overflow-auto md:px-6 px-2"
|
|
140
142
|
}, [
|
|
141
|
-
k(
|
|
142
|
-
(
|
|
143
|
-
a.question ? (
|
|
144
|
-
k(
|
|
143
|
+
k(ge),
|
|
144
|
+
(d(!0), _(O, null, W(b(i).conversations, (a, m) => (d(), _("div", { key: m }, [
|
|
145
|
+
a.question ? (d(), _("div", Te, [
|
|
146
|
+
k($e, {
|
|
145
147
|
question: a.question,
|
|
146
148
|
c2question: a.c2question,
|
|
147
149
|
"show-feedback": a.showFeedback,
|
|
148
|
-
id: `qId${
|
|
150
|
+
id: `qId${m}`,
|
|
149
151
|
name: "askQuestion",
|
|
150
|
-
"que-id":
|
|
152
|
+
"que-id": m
|
|
151
153
|
}, null, 8, ["question", "c2question", "show-feedback", "id", "que-id"])
|
|
152
154
|
])) : q("", !0),
|
|
153
|
-
a.answer ? (
|
|
154
|
-
k(
|
|
155
|
+
a.answer ? (d(), _("div", Re, [
|
|
156
|
+
k(xe, {
|
|
155
157
|
question: a == null ? void 0 : a.question,
|
|
156
158
|
c2question: a == null ? void 0 : a.c2question,
|
|
157
159
|
"show-sources": a == null ? void 0 : a.showSources,
|
|
@@ -160,44 +162,44 @@ const Ee = /* @__PURE__ */ A(Le, [["__scopeId", "data-v-12a02acf"]]), Pe = { key
|
|
|
160
162
|
"show-feedback": a.showFeedback,
|
|
161
163
|
"related-ques": a.relatedQues,
|
|
162
164
|
"options-array": a.optionsArray,
|
|
163
|
-
"ans-id":
|
|
165
|
+
"ans-id": m
|
|
164
166
|
}, null, 8, ["question", "c2question", "show-sources", "questionId", "answer", "show-feedback", "related-ques", "options-array", "ans-id"])
|
|
165
167
|
])) : q("", !0)
|
|
166
168
|
]))), 128)),
|
|
167
|
-
b(i).dotLoader ? (
|
|
169
|
+
b(i).dotLoader ? (d(), _("div", Ne, [
|
|
168
170
|
k(Ee)
|
|
169
171
|
])) : q("", !0)
|
|
170
172
|
], 512));
|
|
171
173
|
}
|
|
172
174
|
});
|
|
173
|
-
const
|
|
174
|
-
|
|
175
|
-
],
|
|
175
|
+
const Fe = /* @__PURE__ */ A(Qe, [["__scopeId", "data-v-e6168dd4"]]), S = (l) => (L("data-v-482b2d96"), l = l(), P(), l), je = { class: "z-3 absolute bottom-0 mt-4 w-full bg-white px-2 md:px-6" }, Be = { class: "py-2" }, Ge = { class: "flex" }, He = { class: "z-1 relative w-full" }, Ue = { class: "relative w-full" }, Ve = { class: "absolute inset-y-0 right-0 flex items-center md:pr-8 pr-3" }, De = { key: 0 }, ze = /* @__PURE__ */ S(() => /* @__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)), Oe = [
|
|
176
|
+
ze
|
|
177
|
+
], We = {
|
|
176
178
|
key: 1,
|
|
177
179
|
class: "tooltip"
|
|
178
|
-
},
|
|
180
|
+
}, Ze = /* @__PURE__ */ S(() => /* @__PURE__ */ s("span", { class: "tooltiptext fontFormattingAMA" }, "Waiting for response", -1)), Ke = /* @__PURE__ */ S(() => /* @__PURE__ */ s("img", {
|
|
179
181
|
class: "w-7 h-7",
|
|
180
182
|
src: G,
|
|
181
183
|
alt: "watingIcon"
|
|
182
|
-
}, null, -1)),
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
],
|
|
184
|
+
}, null, -1)), Ye = [
|
|
185
|
+
Ze,
|
|
186
|
+
Ke
|
|
187
|
+
], Je = { class: "flex justify-start" }, Xe = { class: "flex justify-start items-start text-[#161916]" }, es = /* @__PURE__ */ S(() => /* @__PURE__ */ s("div", { class: "pt-1 text-start font-sans" }, [
|
|
186
188
|
/* @__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)),
|
|
189
|
+
], -1)), ss = /* @__PURE__ */ v({
|
|
188
190
|
__name: "NewQuestionAMA",
|
|
189
191
|
setup(l) {
|
|
190
|
-
const e = $(), t =
|
|
192
|
+
const e = $(), t = N();
|
|
191
193
|
e.question = "";
|
|
192
|
-
const i =
|
|
193
|
-
|
|
194
|
+
const i = c(null), u = c(!1), f = c(I), o = c(!1);
|
|
195
|
+
E(() => {
|
|
194
196
|
i.value.focus();
|
|
195
197
|
});
|
|
196
|
-
const
|
|
197
|
-
console.log("amaId",
|
|
198
|
+
const m = c(((p) => new URLSearchParams(window.location.search).get(p) || "")("amaId"));
|
|
199
|
+
console.log("amaId", m.value);
|
|
198
200
|
const x = (p) => {
|
|
199
201
|
const r = p.length;
|
|
200
|
-
f.value = I - r,
|
|
202
|
+
f.value = I - r, u.value = r >= I;
|
|
201
203
|
}, y = async () => {
|
|
202
204
|
var p, r, g, n;
|
|
203
205
|
try {
|
|
@@ -214,10 +216,10 @@ const Qe = /* @__PURE__ */ A(Te, [["__scopeId", "data-v-e6168dd4"]]), S = (l) =>
|
|
|
214
216
|
question: e == null ? void 0 : e.question
|
|
215
217
|
};
|
|
216
218
|
e.conversations.push(h);
|
|
217
|
-
const w =
|
|
219
|
+
const w = c("");
|
|
218
220
|
w.value = e == null ? void 0 : e.question, e.question = "";
|
|
219
221
|
const F = {
|
|
220
|
-
skillId:
|
|
222
|
+
skillId: m.value,
|
|
221
223
|
question: w.value,
|
|
222
224
|
past_messages: e.past_messages
|
|
223
225
|
}, j = await ee("/amaBotResponse", F);
|
|
@@ -230,23 +232,23 @@ const Qe = /* @__PURE__ */ A(Te, [["__scopeId", "data-v-e6168dd4"]]), S = (l) =>
|
|
|
230
232
|
t.setError("There was an issue, please contact helpmate");
|
|
231
233
|
}
|
|
232
234
|
};
|
|
233
|
-
return (p, r) => (
|
|
234
|
-
s("div",
|
|
235
|
-
s("div",
|
|
236
|
-
s("div",
|
|
235
|
+
return (p, r) => (d(), _("div", je, [
|
|
236
|
+
s("div", Be, [
|
|
237
|
+
s("div", Ge, [
|
|
238
|
+
s("div", He, [
|
|
237
239
|
s("div", Ue, [
|
|
238
240
|
s("div", Ve, [
|
|
239
|
-
o.value ? (
|
|
240
|
-
(
|
|
241
|
+
o.value ? (d(), _("div", We, Ye)) : (d(), _("div", De, [
|
|
242
|
+
(d(), _("svg", {
|
|
241
243
|
onClick: r[0] || (r[0] = (g) => y()),
|
|
242
244
|
xmlns: "http://www.w3.org/2000/svg",
|
|
243
245
|
fill: "currentColor",
|
|
244
246
|
class: "bi bi-send ml-2 h-7 w-7 rotate-45 rounded",
|
|
245
247
|
viewBox: "0 0 16 16"
|
|
246
|
-
},
|
|
248
|
+
}, Oe))
|
|
247
249
|
]))
|
|
248
250
|
]),
|
|
249
|
-
s("div",
|
|
251
|
+
s("div", Je, [
|
|
250
252
|
Z(s("input", {
|
|
251
253
|
onKeyup: [
|
|
252
254
|
r[1] || (r[1] = Y((g) => o.value ? "" : y(), ["enter"])),
|
|
@@ -263,18 +265,18 @@ const Qe = /* @__PURE__ */ A(Te, [["__scopeId", "data-v-e6168dd4"]]), S = (l) =>
|
|
|
263
265
|
])
|
|
264
266
|
])
|
|
265
267
|
]),
|
|
266
|
-
s("div",
|
|
267
|
-
|
|
268
|
+
s("div", Xe, M(b(e).amaQuestionsLeft) + " questions remaining for the day ", 1),
|
|
269
|
+
es
|
|
268
270
|
])
|
|
269
271
|
])
|
|
270
272
|
])
|
|
271
273
|
]));
|
|
272
274
|
}
|
|
273
275
|
});
|
|
274
|
-
const
|
|
276
|
+
const as = /* @__PURE__ */ A(ss, [["__scopeId", "data-v-482b2d96"]]), ts = (l) => {
|
|
275
277
|
var e;
|
|
276
|
-
return (e =
|
|
277
|
-
},
|
|
278
|
+
return (e = ls.find((t) => t.skill_id === l)) == null ? void 0 : e.skill_name;
|
|
279
|
+
}, ls = [
|
|
278
280
|
{
|
|
279
281
|
skill_alias: "Client Relationships",
|
|
280
282
|
skill_name: "Client Relationships",
|
|
@@ -418,23 +420,23 @@ const ss = /* @__PURE__ */ A(es, [["__scopeId", "data-v-482b2d96"]]), as = (l) =
|
|
|
418
420
|
skill_name: "Cloud",
|
|
419
421
|
skill_id: "9e018249-fba4-41b8-be19-364ddf78b61d"
|
|
420
422
|
}
|
|
421
|
-
],
|
|
423
|
+
], T = (l) => (L("data-v-1821197c"), l = l(), P(), l), os = /* @__PURE__ */ T(() => /* @__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
424
|
/* @__PURE__ */ s("div", { class: "text-2xl font-[700]" }, "Assessment Access Required"),
|
|
423
425
|
/* @__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
426
|
], -1)), is = {
|
|
425
427
|
key: 1,
|
|
426
428
|
className: "h-screen flex flex-col items-stretch"
|
|
427
|
-
},
|
|
429
|
+
}, ns = { class: "z-20" }, rs = /* @__PURE__ */ T(() => /* @__PURE__ */ s("div", { class: "mt-6" }, null, -1)), ds = { class: "flex h-full items-stretch overflow-hidden" }, cs = { class: "mx-auto w-11/12 bg-white" }, _s = { class: "relative flex h-full w-full flex-col items-stretch overflow-hidden" }, us = /* @__PURE__ */ T(() => /* @__PURE__ */ s("div", { class: "mt-[160px]" }, null, -1)), ms = { class: "relative" }, fs = /* @__PURE__ */ v({
|
|
428
430
|
__name: "AssessmentAMA",
|
|
429
431
|
setup(l) {
|
|
430
|
-
const e =
|
|
431
|
-
|
|
432
|
-
const o =
|
|
433
|
-
i.amaSkillId = o.value ?? "",
|
|
432
|
+
const e = c(!0), t = c(!1), i = $(), u = N();
|
|
433
|
+
c("");
|
|
434
|
+
const o = c(((m) => new URLSearchParams(window.location.search).get(m) || "")("amaId"));
|
|
435
|
+
i.amaSkillId = o.value ?? "", E(async () => {
|
|
434
436
|
e.value = !0, await a(), e.value = !1;
|
|
435
437
|
});
|
|
436
438
|
const a = async () => {
|
|
437
|
-
var
|
|
439
|
+
var m, x, y, p, r, g;
|
|
438
440
|
try {
|
|
439
441
|
if (o.value === null)
|
|
440
442
|
throw {
|
|
@@ -449,7 +451,7 @@ const ss = /* @__PURE__ */ A(es, [["__scopeId", "data-v-482b2d96"]]), as = (l) =
|
|
|
449
451
|
const n = await se(
|
|
450
452
|
`/getLearnerData?amaSkillId=${o.value}`
|
|
451
453
|
);
|
|
452
|
-
i.initialize(n.data), i.amaQuestionsLeft = (
|
|
454
|
+
i.initialize(n.data), i.amaQuestionsLeft = (m = n == null ? void 0 : n.data) == null ? void 0 : m.questionsLeftAIGC, i.amaSkillName = ts(i.amaSkillId) || "", e.value = !1;
|
|
453
455
|
} catch (n) {
|
|
454
456
|
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
457
|
const h = n;
|
|
@@ -457,32 +459,32 @@ const ss = /* @__PURE__ */ A(es, [["__scopeId", "data-v-482b2d96"]]), as = (l) =
|
|
|
457
459
|
t.value = !0;
|
|
458
460
|
return;
|
|
459
461
|
}
|
|
460
|
-
|
|
462
|
+
u.setError(((g = h.response) == null ? void 0 : g.data).message);
|
|
461
463
|
} else
|
|
462
|
-
|
|
464
|
+
u.setError("There was an issue, please contact helpmate");
|
|
463
465
|
}
|
|
464
466
|
};
|
|
465
|
-
return (
|
|
466
|
-
k(
|
|
467
|
+
return (m, x) => (d(), _("section", null, [
|
|
468
|
+
k(V, { "is-visible": t.value }, {
|
|
467
469
|
default: J(() => [
|
|
468
|
-
|
|
470
|
+
os
|
|
469
471
|
]),
|
|
470
472
|
_: 1
|
|
471
473
|
}, 8, ["is-visible"]),
|
|
472
474
|
s("div", null, [
|
|
473
|
-
e.value ? (
|
|
474
|
-
s("div",
|
|
475
|
-
k(
|
|
475
|
+
e.value ? (d(), X(H, { key: 0 })) : (d(), _("main", is, [
|
|
476
|
+
s("div", ns, [
|
|
477
|
+
k(de)
|
|
476
478
|
]),
|
|
477
|
-
|
|
478
|
-
s("div",
|
|
479
|
+
rs,
|
|
480
|
+
s("div", ds, [
|
|
479
481
|
s("div", cs, [
|
|
480
|
-
s("div",
|
|
481
|
-
k(
|
|
482
|
-
|
|
482
|
+
s("div", _s, [
|
|
483
|
+
k(Fe),
|
|
484
|
+
us
|
|
483
485
|
]),
|
|
484
|
-
s("div",
|
|
485
|
-
k(
|
|
486
|
+
s("div", ms, [
|
|
487
|
+
k(as)
|
|
486
488
|
])
|
|
487
489
|
])
|
|
488
490
|
])
|
|
@@ -491,7 +493,7 @@ const ss = /* @__PURE__ */ A(es, [["__scopeId", "data-v-482b2d96"]]), as = (l) =
|
|
|
491
493
|
]));
|
|
492
494
|
}
|
|
493
495
|
});
|
|
494
|
-
const
|
|
496
|
+
const xs = /* @__PURE__ */ A(fs, [["__scopeId", "data-v-1821197c"]]);
|
|
495
497
|
export {
|
|
496
|
-
|
|
498
|
+
xs as default
|
|
497
499
|
};
|
|
@@ -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-7fc43474.mjs";
|
|
2
|
+
import { _ as Pl, a as cp, Q as jt, M as Ta } from "./Modal-5557ee8a.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-52b92f99.mjs";
|
|
4
|
+
import { g as Bn, p as Rt } from "./api-850c682e.mjs";
|
|
5
|
+
import { c as q, a as Il, r as _l } from "./_commonjsHelpers-c12d4152.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-52b92f99.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-850c682e.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-035043b1.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-52b92f99.mjs";
|
|
2
2
|
import { _ as K } from "./loadernew-ac153a51.mjs";
|
|
3
|
-
import { p as $ } from "./api-
|
|
3
|
+
import { p as $ } from "./api-850c682e.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-035043b1.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",
|