@genpact/genome.mfe.mgtwin-app 1.1.328-alpha → 1.1.330-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-72c54a74.mjs → AssessmentAMA-512bf558.mjs} +29 -31
- package/dist/{AssessmentSimulation-72e4ee6b.mjs → AssessmentSimulation-8a889284.mjs} +402 -406
- package/dist/EditSkillAdminData-004697fc.mjs +252 -0
- package/dist/{EditSkillData-49ef4275.mjs → EditSkillData-4ed7649e.mjs} +82 -69
- package/dist/{HomeView-3d62ea04.mjs → HomeView-3a8e4360.mjs} +125 -127
- package/dist/{Loading-c434e673.mjs → Loading-0d5e62d8.mjs} +1 -1
- package/dist/{LoadingSimulation-f5917992.mjs → LoadingSimulation-cc4a0116.mjs} +1 -1
- package/dist/{Modal-55efd07c.mjs → Modal-3972b1fd.mjs} +4 -5
- package/dist/{PaperAirplaneIcon-35d47726.mjs → PaperAirplaneIcon-fb0120cb.mjs} +1 -1
- package/dist/{PromptTesting-ca6b362f.mjs → PromptTesting-f5472453.mjs} +3 -3
- package/dist/{SkillAutomation-21539258.mjs → SkillAutomation-6f49fc7e.mjs} +3 -3
- package/dist/{SkillData-27860de7.mjs → SkillData-e8277b80.mjs} +3 -3
- package/dist/{Testcase-6a46ad9a.mjs → Testcase-4175d1c7.mjs} +3 -3
- package/dist/{UnderMaintenance-f355843a.mjs → UnderMaintenance-a3ecb241.mjs} +1 -1
- package/dist/{_commonjsHelpers-49bf7401.mjs → _commonjsHelpers-17845752.mjs} +1 -1
- package/dist/{api-d4fe1294.mjs → api-4f02f963.mjs} +1 -1
- package/dist/{main-74d4584a.mjs → main-c5829298.mjs} +1723 -1722
- package/dist/mgtwin.es.min.js +1 -1
- package/dist/mgtwin.umd.min.js +15 -15
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/ArrowLeftCircleIcon-683541a2.mjs +0 -18
- package/dist/EditSkillAdminData-601f7e5f.mjs +0 -278
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
import { d as U, u as z, k as O, r as c, o as i, c as d, a as e, w as b, m as k, b as n, n as S, v as L, F as V, e as P, t as _, q as D, D as T, p as $, g as H, i as F } from "./main-c5829298.mjs";
|
|
2
|
+
import { _ as j } from "./loadernew-ac153a51.mjs";
|
|
3
|
+
import { p as B, g as Y } from "./api-4f02f963.mjs";
|
|
4
|
+
import { _ as J } from "./_plugin-vue_export-helper-dad06003.mjs";
|
|
5
|
+
const r = (f) => ($("data-v-50115682"), f = f(), H(), f), Q = /* @__PURE__ */ r(() => /* @__PURE__ */ e("nav", { class: "bg-genpact-blue-box w-full px-5 mb-6" }, null, -1)), X = { class: "grid grid-cols-5 gap-8 p-10 items-stretch" }, Z = /* @__PURE__ */ r(() => /* @__PURE__ */ e("div", { class: "col-span-1 text-right" }, [
|
|
6
|
+
/* @__PURE__ */ e("label", {
|
|
7
|
+
for: "topic",
|
|
8
|
+
class: "block text-lg font-bold text-gray-900 mb-1 italic"
|
|
9
|
+
}, [
|
|
10
|
+
/* @__PURE__ */ F("Topic Name "),
|
|
11
|
+
/* @__PURE__ */ e("span", { class: "label" }, "*")
|
|
12
|
+
])
|
|
13
|
+
], -1)), ee = { class: "col-span-4" }, te = ["disabled"], se = /* @__PURE__ */ r(() => /* @__PURE__ */ e("div", { class: "col-span-1 text-right" }, [
|
|
14
|
+
/* @__PURE__ */ e("label", {
|
|
15
|
+
for: "description",
|
|
16
|
+
class: "block text-lg font-bold text-gray-900 mb-1 italic"
|
|
17
|
+
}, [
|
|
18
|
+
/* @__PURE__ */ F("Description "),
|
|
19
|
+
/* @__PURE__ */ e("span", { class: "label" }, "*")
|
|
20
|
+
])
|
|
21
|
+
], -1)), oe = { class: "col-span-4" }, le = /* @__PURE__ */ r(() => /* @__PURE__ */ e("div", { class: "col-span-1 text-right" }, [
|
|
22
|
+
/* @__PURE__ */ e("label", {
|
|
23
|
+
for: "Knowledge Corpus",
|
|
24
|
+
class: "block text-lg font-bold text-gray-900 mb-1 italic"
|
|
25
|
+
}, [
|
|
26
|
+
/* @__PURE__ */ F("Knowledge Corpus "),
|
|
27
|
+
/* @__PURE__ */ e("span", { class: "label" }, "*")
|
|
28
|
+
])
|
|
29
|
+
], -1)), ae = { class: "col-span-4" }, re = /* @__PURE__ */ r(() => /* @__PURE__ */ e("div", { class: "col-span-1" }, null, -1)), ce = { class: "col-span-4" }, ne = { class: "grid md:grid-cols-5 grid-cols-1 justify-start items-center gap-2" }, ie = { class: "col-span-1" }, de = ["disabled"], ue = {
|
|
30
|
+
key: 1,
|
|
31
|
+
class: "flex justify-center items-center text-center bg-genpact-darkest-blue text-white rounded-md w-40"
|
|
32
|
+
}, pe = /* @__PURE__ */ r(() => /* @__PURE__ */ e("img", {
|
|
33
|
+
class: "w-10 h-10 block loadercss",
|
|
34
|
+
src: j,
|
|
35
|
+
alt: "Loader Gif"
|
|
36
|
+
}, null, -1)), ge = [
|
|
37
|
+
pe
|
|
38
|
+
], be = /* @__PURE__ */ r(() => /* @__PURE__ */ e("div", { class: "col-span-1" }, null, -1)), _e = /* @__PURE__ */ r(() => /* @__PURE__ */ e("div", { class: "col-span-1" }, null, -1)), fe = { class: "col-span-1 flex md:justify-end justify-start items-end" }, he = {
|
|
39
|
+
key: 1,
|
|
40
|
+
class: "flex justify-center items-center text-center w-52 bg-genpact-darkest-blue text-white rounded-md"
|
|
41
|
+
}, me = /* @__PURE__ */ r(() => /* @__PURE__ */ e("img", {
|
|
42
|
+
class: "w-10 h-10 block loadercss",
|
|
43
|
+
src: j,
|
|
44
|
+
alt: "Loader Gif"
|
|
45
|
+
}, null, -1)), xe = [
|
|
46
|
+
me
|
|
47
|
+
], ye = { class: "col-span-1 flex md:justify-end justify-start items-end" }, ve = ["disabled"], we = {
|
|
48
|
+
key: 1,
|
|
49
|
+
class: "flex justify-center items-center text-center w-52 bg-genpact-darkest-blue text-white rounded-md"
|
|
50
|
+
}, ke = /* @__PURE__ */ r(() => /* @__PURE__ */ e("img", {
|
|
51
|
+
class: "w-10 h-10 block loadercss",
|
|
52
|
+
src: j,
|
|
53
|
+
alt: "Loader Gif"
|
|
54
|
+
}, null, -1)), Se = [
|
|
55
|
+
ke
|
|
56
|
+
], De = { class: "pl-16 pr-8 py-2" }, Te = { class: "w-full relative overflow-x-auto rounded-lg border border-gray-200 max-h-[550px]" }, Fe = { class: "table-auto w-full text-sm text-left rtl:text-right rounded-lg" }, je = /* @__PURE__ */ r(() => /* @__PURE__ */ e("thead", { class: "text-sm text-center md:text-base text-gray-700 uppercase bg-gray-200 top-0 sticky z-10" }, [
|
|
57
|
+
/* @__PURE__ */ e("tr", null, [
|
|
58
|
+
/* @__PURE__ */ e("th", {
|
|
59
|
+
scope: "col",
|
|
60
|
+
class: "px-6 py-3"
|
|
61
|
+
}, "Topic name"),
|
|
62
|
+
/* @__PURE__ */ e("th", {
|
|
63
|
+
scope: "col",
|
|
64
|
+
class: "px-6 py-3"
|
|
65
|
+
}, "Description"),
|
|
66
|
+
/* @__PURE__ */ e("th", {
|
|
67
|
+
scope: "col",
|
|
68
|
+
class: "px-6 py-3"
|
|
69
|
+
}, "Knowledge Corpus"),
|
|
70
|
+
/* @__PURE__ */ e("th", {
|
|
71
|
+
scope: "col",
|
|
72
|
+
class: "px-6 py-3"
|
|
73
|
+
}, "Score")
|
|
74
|
+
])
|
|
75
|
+
], -1)), Ee = { class: "px-3 py-4 font-medium text-gray-900 text-center" }, Ae = { class: "px-3 py-4" }, Ce = { class: "px-3 py-4 text-center" }, Ie = /* @__PURE__ */ r(() => /* @__PURE__ */ e("td", { class: "px-3 py-4 text-center" }, /* @__PURE__ */ _("1.05"), -1)), Ne = { class: "absolute top-0 md:left-20 md:right-20 left-12 right-12 flex justify-center items-center mx-auto z-[100]" }, Re = { class: "w-full rounded-md px-3 text-center mt-4 bg-green-500 py-2 text-white" }, qe = /* @__PURE__ */ U({
|
|
76
|
+
__name: "EditSkillAdminData",
|
|
77
|
+
setup(f) {
|
|
78
|
+
const o = z(), u = O(), h = c(!0), m = c(!0), x = c(!0), v = c(!1), G = c(""), E = c(!1), p = c(!1), A = c(), C = c(), w = c(""), I = c([]), M = async () => {
|
|
79
|
+
var l, t, s, y, R, q;
|
|
80
|
+
try {
|
|
81
|
+
const g = {
|
|
82
|
+
question: o.descriptionForSkillData
|
|
83
|
+
};
|
|
84
|
+
console.log("question", G.value), h.value = !1;
|
|
85
|
+
const a = await B("/SearchSkillTags", g);
|
|
86
|
+
C.value = (t = (l = a == null ? void 0 : a.data) == null ? void 0 : l.body) == null ? void 0 : t.length, console.log("ARRAY LENGTH", C.value), A.value = ((s = a == null ? void 0 : a.data) == null ? void 0 : s.body) || [], I.value = A.value, console.log("length", (R = (y = a == null ? void 0 : a.data) == null ? void 0 : y.body) == null ? void 0 : R.length), console.log("data", a), h.value = !0, E.value = !0, p.value = !0, console.log("showSubmitButton", p.value);
|
|
87
|
+
} catch (g) {
|
|
88
|
+
if (console.error(g), h.value = !0, D.isAxiosError(g)) {
|
|
89
|
+
const a = g;
|
|
90
|
+
u.setError(((q = a.response) == null ? void 0 : q.data).message);
|
|
91
|
+
} else
|
|
92
|
+
u.setError("We ran into an issue while fetching duplicate values.");
|
|
93
|
+
}
|
|
94
|
+
}, W = async () => {
|
|
95
|
+
var l;
|
|
96
|
+
try {
|
|
97
|
+
console.log("before rejecting topic"), m.value = !1;
|
|
98
|
+
const t = encodeURIComponent(o.topicNameForSkillData), s = await Y(`/rejectTempTopic?Topic=${t}`);
|
|
99
|
+
console.log("encoded topic", t), console.log("response", s), m.value = !0, s.status === 200 && (o.topicNameForSkillData = "", o.descriptionForSkillData = "", o.offeringTypeForSkillData = "", console.log("after rejecting topic"), w.value = "Data Rejected Successfully!", N());
|
|
100
|
+
} catch (t) {
|
|
101
|
+
if (console.error(t), m.value = !0, D.isAxiosError(t)) {
|
|
102
|
+
const s = t;
|
|
103
|
+
u.setError(((l = s.response) == null ? void 0 : l.data).message);
|
|
104
|
+
} else
|
|
105
|
+
u.setError("We ran into an issue while rejecting values.");
|
|
106
|
+
}
|
|
107
|
+
}, K = async () => {
|
|
108
|
+
var l;
|
|
109
|
+
try {
|
|
110
|
+
const t = {
|
|
111
|
+
Topic: o.topicNameForSkillData,
|
|
112
|
+
Description: o.descriptionForSkillData,
|
|
113
|
+
OfferingType: o.offeringTypeForSkillData
|
|
114
|
+
// DuplicateExists: duplicateLength.value > 0 ? 1 : 0
|
|
115
|
+
};
|
|
116
|
+
console.log("payload-=====>", t), x.value = !1;
|
|
117
|
+
const s = await B("/editMasterSkillFile", t);
|
|
118
|
+
console.log("data", s), x.value = !0, w.value = "Data Submitted Successfully!", N();
|
|
119
|
+
} catch (t) {
|
|
120
|
+
if (console.error(t), x.value = !0, D.isAxiosError(t)) {
|
|
121
|
+
const s = t;
|
|
122
|
+
u.setError(((l = s.response) == null ? void 0 : l.data).message);
|
|
123
|
+
} else
|
|
124
|
+
u.setError("There was an issue while inserting data");
|
|
125
|
+
}
|
|
126
|
+
}, N = () => {
|
|
127
|
+
v.value = !0, setTimeout(() => {
|
|
128
|
+
v.value = !1;
|
|
129
|
+
const l = sessionStorage.getItem("role");
|
|
130
|
+
console.log("role", l), l === "user" ? T.push({ name: "SkillData" }) : l === "admin" ? T.push({ name: "SkillData" }) : T.push({ name: "SkillAutomation" }), sessionStorage.removeItem("dataViewAccess"), sessionStorage.removeItem("role");
|
|
131
|
+
}, 3e3);
|
|
132
|
+
};
|
|
133
|
+
return (l, t) => (i(), d(V, null, [
|
|
134
|
+
Q,
|
|
135
|
+
e("div", X, [
|
|
136
|
+
Z,
|
|
137
|
+
e("div", ee, [
|
|
138
|
+
b(e("input", {
|
|
139
|
+
disabled: n(o).enableInputbox !== !0,
|
|
140
|
+
class: S([
|
|
141
|
+
n(o).enableInputbox !== !0 ? "cursor-not-allowed fill-gray-400" : "",
|
|
142
|
+
"w-full p-2.5 text-sm text-gray-900 bg-gray-50 rounded-lg border border-gray-300 shadow-sm focus:outline-none focus:border-genpact-blue-box focus:ring-genpact-blue-box focus:ring-1"
|
|
143
|
+
]),
|
|
144
|
+
type: "text",
|
|
145
|
+
"onUpdate:modelValue": t[0] || (t[0] = (s) => n(o).topicNameForSkillData = s),
|
|
146
|
+
id: "topic",
|
|
147
|
+
placeholder: "Write here...",
|
|
148
|
+
required: ""
|
|
149
|
+
}, null, 10, te), [
|
|
150
|
+
[k, n(o).topicNameForSkillData]
|
|
151
|
+
])
|
|
152
|
+
]),
|
|
153
|
+
se,
|
|
154
|
+
e("div", oe, [
|
|
155
|
+
b(e("textarea", {
|
|
156
|
+
"onUpdate:modelValue": t[1] || (t[1] = (s) => n(o).descriptionForSkillData = s),
|
|
157
|
+
onInput: t[2] || (t[2] = (s) => p.value = !1),
|
|
158
|
+
type: "text",
|
|
159
|
+
id: "description",
|
|
160
|
+
rows: "5",
|
|
161
|
+
class: "w-full p-2.5 text-sm text-gray-900 bg-gray-50 rounded-lg border border-gray-300 shadow-sm focus:outline-none focus:border-genpact-blue-box focus:ring-genpact-blue-box focus:ring-1",
|
|
162
|
+
placeholder: "Write here...",
|
|
163
|
+
required: ""
|
|
164
|
+
}, null, 544), [
|
|
165
|
+
[k, n(o).descriptionForSkillData]
|
|
166
|
+
])
|
|
167
|
+
]),
|
|
168
|
+
le,
|
|
169
|
+
e("div", ae, [
|
|
170
|
+
b(e("input", {
|
|
171
|
+
"onUpdate:modelValue": t[3] || (t[3] = (s) => n(o).offeringTypeForSkillData = s),
|
|
172
|
+
type: "text",
|
|
173
|
+
id: "offeringType",
|
|
174
|
+
class: "w-full p-2.5 text-sm text-gray-900 bg-gray-50 rounded-lg border border-gray-300 shadow-sm focus:outline-none focus:border-genpact-blue-box focus:ring-genpact-blue-box focus:ring-1",
|
|
175
|
+
placeholder: "Write here...",
|
|
176
|
+
required: ""
|
|
177
|
+
}, null, 512), [
|
|
178
|
+
[k, n(o).offeringTypeForSkillData]
|
|
179
|
+
])
|
|
180
|
+
]),
|
|
181
|
+
re,
|
|
182
|
+
e("div", ce, [
|
|
183
|
+
e("div", ne, [
|
|
184
|
+
e("div", ie, [
|
|
185
|
+
h.value ? (i(), d("button", {
|
|
186
|
+
key: 0,
|
|
187
|
+
disabled: n(o).isTopicPending === !0,
|
|
188
|
+
class: S([
|
|
189
|
+
n(o).isTopicPending === !0 ? "cursor-not-allowed bg-gray-600" : "cursor-pointer bg-genpact-darkest-blue",
|
|
190
|
+
"text-center whitespace-nowrap text-white w-52 px-4 py-2 rounded-md font-bold"
|
|
191
|
+
]),
|
|
192
|
+
type: "button",
|
|
193
|
+
onClick: M
|
|
194
|
+
}, " Duplicate Check ", 10, de)) : (i(), d("div", ue, ge))
|
|
195
|
+
]),
|
|
196
|
+
be,
|
|
197
|
+
_e,
|
|
198
|
+
e("div", fe, [
|
|
199
|
+
m.value ? (i(), d("button", {
|
|
200
|
+
key: 0,
|
|
201
|
+
type: "button",
|
|
202
|
+
onClick: W,
|
|
203
|
+
class: "bg-genpact-darkest-blue text-center text-white w-52 px-16 py-2 rounded-md font-bold cursor-pointer"
|
|
204
|
+
}, " Reject ")) : (i(), d("div", he, xe))
|
|
205
|
+
]),
|
|
206
|
+
e("div", ye, [
|
|
207
|
+
x.value ? (i(), d("button", {
|
|
208
|
+
key: 0,
|
|
209
|
+
type: "submit",
|
|
210
|
+
disabled: p.value !== !0,
|
|
211
|
+
class: S([
|
|
212
|
+
p.value !== !0 ? "cursor-not-allowed bg-gray-600" : "cursor-pointer bg-genpact-darkest-blue",
|
|
213
|
+
"text-center text-white w-52 px-2 py-2 rounded-md whitespace-nowrap font-bold"
|
|
214
|
+
]),
|
|
215
|
+
onClick: K
|
|
216
|
+
}, " Approve & Submit ", 10, ve)) : (i(), d("div", we, Se))
|
|
217
|
+
])
|
|
218
|
+
])
|
|
219
|
+
])
|
|
220
|
+
]),
|
|
221
|
+
b(e("div", De, [
|
|
222
|
+
e("div", Te, [
|
|
223
|
+
e("table", Fe, [
|
|
224
|
+
je,
|
|
225
|
+
e("tbody", null, [
|
|
226
|
+
(i(!0), d(V, null, P(I.value, (s, y) => (i(), d("tr", {
|
|
227
|
+
key: y,
|
|
228
|
+
class: "odd:bg-white even:bg-gray-100"
|
|
229
|
+
}, [
|
|
230
|
+
e("th", Ee, _(s.Topic || "title"), 1),
|
|
231
|
+
e("td", Ae, _(s.Description || "desc"), 1),
|
|
232
|
+
e("td", Ce, _(s.OfferingType || "Knowledge Corpus"), 1),
|
|
233
|
+
Ie
|
|
234
|
+
]))), 128))
|
|
235
|
+
])
|
|
236
|
+
])
|
|
237
|
+
])
|
|
238
|
+
], 512), [
|
|
239
|
+
[L, E.value]
|
|
240
|
+
]),
|
|
241
|
+
b(e("div", Ne, [
|
|
242
|
+
e("div", Re, _(w.value), 1)
|
|
243
|
+
], 512), [
|
|
244
|
+
[L, v.value]
|
|
245
|
+
])
|
|
246
|
+
], 64));
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
const Me = /* @__PURE__ */ J(qe, [["__scopeId", "data-v-50115682"]]);
|
|
250
|
+
export {
|
|
251
|
+
Me as default
|
|
252
|
+
};
|
|
@@ -1,33 +1,46 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as
|
|
3
|
-
import { p as $ } from "./api-
|
|
1
|
+
import { o as r, c, a as e, d as j, M as U, h as q, b as a, K as M, u as W, k as P, r as i, w as y, m as k, n as S, f as _, 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-c5829298.mjs";
|
|
2
|
+
import { _ as z } from "./loadernew-ac153a51.mjs";
|
|
3
|
+
import { p as $ } from "./api-4f02f963.mjs";
|
|
4
4
|
import { _ as X } from "./genome-Logo-white-ffcf2413.mjs";
|
|
5
|
-
import {
|
|
6
|
-
|
|
5
|
+
import { _ as Z } from "./_plugin-vue_export-helper-dad06003.mjs";
|
|
6
|
+
function ee(d, t) {
|
|
7
|
+
return r(), c("svg", {
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
+
viewBox: "0 0 24 24",
|
|
10
|
+
fill: "currentColor",
|
|
11
|
+
"aria-hidden": "true"
|
|
12
|
+
}, [
|
|
13
|
+
e("path", {
|
|
14
|
+
"fill-rule": "evenodd",
|
|
15
|
+
d: "M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25zm-4.28 9.22a.75.75 0 000 1.06l3 3a.75.75 0 101.06-1.06l-1.72-1.72h5.69a.75.75 0 000-1.5h-5.69l1.72-1.72a.75.75 0 00-1.06-1.06l-3 3z",
|
|
16
|
+
"clip-rule": "evenodd"
|
|
17
|
+
})
|
|
18
|
+
]);
|
|
19
|
+
}
|
|
7
20
|
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
21
|
class: "md:w-36 w-20",
|
|
9
22
|
src: X
|
|
10
23
|
}, null, -1), le = /* @__PURE__ */ j({
|
|
11
24
|
__name: "HeaderForEditSkillData",
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
14
|
-
|
|
25
|
+
setup(d) {
|
|
26
|
+
const t = U(), u = () => {
|
|
27
|
+
M(() => {
|
|
15
28
|
sessionStorage.removeItem("dataViewAccess");
|
|
16
|
-
}),
|
|
29
|
+
}), t.push({ name: "SkillData" }), sessionStorage.removeItem("dataViewAccess"), sessionStorage.removeItem("role");
|
|
17
30
|
};
|
|
18
|
-
return (
|
|
31
|
+
return (m, b) => (r(), c("div", te, [
|
|
19
32
|
e("div", {
|
|
20
|
-
onClick:
|
|
33
|
+
onClick: u,
|
|
21
34
|
class: "flex justify-start items-center text-white cursor-pointer"
|
|
22
35
|
}, [
|
|
23
|
-
q(a(
|
|
36
|
+
q(a(ee), { class: "md:w-9 w-5 h-5 md:h-9 mr-1" }),
|
|
24
37
|
se
|
|
25
38
|
]),
|
|
26
39
|
oe,
|
|
27
40
|
ae
|
|
28
41
|
]));
|
|
29
42
|
}
|
|
30
|
-
}), n = (
|
|
43
|
+
}), n = (d) => (J("data-v-18de1cf9"), d = d(), Q(), d), re = { class: "bg-genpact-blue-box w-full px-5 mb-6" }, ce = { class: "grid grid-cols-5 gap-8 p-10 items-stretch" }, ie = /* @__PURE__ */ n(() => /* @__PURE__ */ e("div", { class: "col-span-1 text-right" }, [
|
|
31
44
|
/* @__PURE__ */ e("label", {
|
|
32
45
|
for: "topic",
|
|
33
46
|
class: "block text-lg font-bold text-gray-900 mb-1 italic"
|
|
@@ -51,12 +64,12 @@ const te = { className: "flex justify-between items-center gap-4 h-14" }, se = /
|
|
|
51
64
|
/* @__PURE__ */ D("Knowledge Corpus "),
|
|
52
65
|
/* @__PURE__ */ e("span", { class: "label" }, "*")
|
|
53
66
|
])
|
|
54
|
-
], -1)),
|
|
67
|
+
], -1)), _e = { class: "col-span-4" }, me = /* @__PURE__ */ n(() => /* @__PURE__ */ e("div", { class: "col-span-1" }, null, -1)), be = { class: "col-span-4" }, he = { class: "md:flex block justify-between items-center space-y-2" }, xe = ["disabled"], fe = {
|
|
55
68
|
key: 1,
|
|
56
69
|
class: "flex justify-center items-center text-center bg-genpact-darkest-blue text-white rounded-md w-40 px-4 py-2"
|
|
57
70
|
}, ye = /* @__PURE__ */ n(() => /* @__PURE__ */ e("img", {
|
|
58
71
|
class: "w-6 h-6 block loadercss",
|
|
59
|
-
src:
|
|
72
|
+
src: z,
|
|
60
73
|
alt: "Loader Gif"
|
|
61
74
|
}, null, -1)), ve = [
|
|
62
75
|
ye
|
|
@@ -65,7 +78,7 @@ const te = { className: "flex justify-between items-center gap-4 h-14" }, se = /
|
|
|
65
78
|
class: "flex justify-center items-center text-center bg-genpact-darkest-blue text-white rounded-md w-40 px-10 py-2"
|
|
66
79
|
}, Se = /* @__PURE__ */ n(() => /* @__PURE__ */ e("img", {
|
|
67
80
|
class: "w-6 h-6 block loadercss",
|
|
68
|
-
src:
|
|
81
|
+
src: z,
|
|
69
82
|
alt: "Loader Gif"
|
|
70
83
|
}, null, -1)), De = [
|
|
71
84
|
Se
|
|
@@ -108,52 +121,52 @@ const te = { className: "flex justify-between items-center gap-4 h-14" }, se = /
|
|
|
108
121
|
}, qe = {
|
|
109
122
|
key: 3,
|
|
110
123
|
class: "px-3 py-4 text-center"
|
|
111
|
-
},
|
|
124
|
+
}, Me = { class: "absolute top-0 md:left-20 md:right-20 left-12 right-12 flex justify-center items-center mx-auto z-[100]" }, ze = { class: "w-full rounded-md px-3 text-center mt-4 bg-green-500 py-2 text-white" }, Ge = /* @__PURE__ */ j({
|
|
112
125
|
__name: "EditSkillData",
|
|
113
|
-
setup(
|
|
114
|
-
const
|
|
115
|
-
var
|
|
126
|
+
setup(d) {
|
|
127
|
+
const t = W(), u = P(), m = i(!0), b = i(!0), v = i(!1), T = i(""), G = i(""), F = i(!1), p = i(!1), I = i(), w = i(), E = i([]), K = async () => {
|
|
128
|
+
var g, o, s, f, N, C, V;
|
|
116
129
|
try {
|
|
117
130
|
const h = {
|
|
118
|
-
question:
|
|
131
|
+
question: t.descriptionForSkillData
|
|
119
132
|
};
|
|
120
|
-
console.log("question",
|
|
133
|
+
console.log("question", G.value), m.value = !1;
|
|
121
134
|
const l = await $("/SearchSkillTags", h);
|
|
122
|
-
console.log("abc", (
|
|
135
|
+
console.log("abc", (g = l == null ? void 0 : l.data) == null ? void 0 : g.body), w.value = (s = (o = l == null ? void 0 : l.data) == null ? void 0 : o.body) == null ? void 0 : s.length, console.log("ARRAY LENGTH", w.value), I.value = ((f = l == null ? void 0 : l.data) == null ? void 0 : f.body) || [], E.value = I.value, console.log("length", (C = (N = l == null ? void 0 : l.data) == null ? void 0 : N.body) == null ? void 0 : C.length), console.log("data", l), m.value = !0, F.value = !0, p.value = !0, console.log("showSubmitButton", p.value);
|
|
123
136
|
} catch (h) {
|
|
124
|
-
if (console.error(h),
|
|
137
|
+
if (console.error(h), m.value = !0, B.isAxiosError(h)) {
|
|
125
138
|
const l = h;
|
|
126
|
-
|
|
139
|
+
u.setError(((V = l.response) == null ? void 0 : V.data).message);
|
|
127
140
|
} else
|
|
128
|
-
|
|
141
|
+
u.setError("We ran into an issue while fetching duplicate values.");
|
|
129
142
|
}
|
|
130
|
-
},
|
|
131
|
-
var
|
|
143
|
+
}, L = async () => {
|
|
144
|
+
var g;
|
|
132
145
|
try {
|
|
133
146
|
const o = {
|
|
134
|
-
Topic:
|
|
135
|
-
Description:
|
|
136
|
-
OfferingType:
|
|
147
|
+
Topic: t.topicNameForSkillData,
|
|
148
|
+
Description: t.descriptionForSkillData,
|
|
149
|
+
OfferingType: t.offeringTypeForSkillData,
|
|
137
150
|
DuplicateExists: w.value > 0 ? 1 : 0
|
|
138
151
|
};
|
|
139
152
|
b.value = !1, console.log("payload-=====>", o);
|
|
140
|
-
const
|
|
141
|
-
console.log("data",
|
|
153
|
+
const s = await $("/InsertIntoTempSkillFile", o);
|
|
154
|
+
console.log("data", s), T.value = "Data Submitted Successfully!", b.value = !0, R();
|
|
142
155
|
} catch (o) {
|
|
143
156
|
if (console.error(o), b.value = !0, B.isAxiosError(o)) {
|
|
144
|
-
const
|
|
145
|
-
|
|
157
|
+
const s = o;
|
|
158
|
+
u.setError(((g = s.response) == null ? void 0 : g.data).message);
|
|
146
159
|
} else
|
|
147
|
-
|
|
160
|
+
u.setError("There was an issue while inserting data");
|
|
148
161
|
}
|
|
149
|
-
},
|
|
162
|
+
}, R = () => {
|
|
150
163
|
v.value = !0, setTimeout(() => {
|
|
151
|
-
v.value = !1,
|
|
164
|
+
v.value = !1, M(() => {
|
|
152
165
|
sessionStorage.removeItem("dataViewAccess");
|
|
153
166
|
}), Y.push({ name: "SkillData" }), sessionStorage.removeItem("dataViewAccess"), sessionStorage.removeItem("role");
|
|
154
|
-
}, 3e3),
|
|
167
|
+
}, 3e3), p.value = !1;
|
|
155
168
|
};
|
|
156
|
-
return (
|
|
169
|
+
return (g, o) => (r(), c(A, null, [
|
|
157
170
|
e("nav", re, [
|
|
158
171
|
q(le)
|
|
159
172
|
]),
|
|
@@ -161,22 +174,22 @@ const te = { className: "flex justify-between items-center gap-4 h-14" }, se = /
|
|
|
161
174
|
ie,
|
|
162
175
|
e("div", ne, [
|
|
163
176
|
y(e("input", {
|
|
164
|
-
disabled: a(
|
|
165
|
-
class: S([a(
|
|
177
|
+
disabled: a(t).enableInputbox !== !0,
|
|
178
|
+
class: S([a(t).enableInputbox !== !0 ? "cursor-not-allowed fill-gray-400" : "", "w-full p-2.5 text-sm text-gray-900 bg-gray-50 rounded-lg border border-gray-300 shadow-sm focus:outline-none focus:border-genpact-blue-box focus:ring-genpact-blue-box focus:ring-1"]),
|
|
166
179
|
type: "text",
|
|
167
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
180
|
+
"onUpdate:modelValue": o[0] || (o[0] = (s) => a(t).topicNameForSkillData = s),
|
|
168
181
|
id: "topic",
|
|
169
182
|
placeholder: "Write here...",
|
|
170
183
|
required: ""
|
|
171
184
|
}, null, 10, de), [
|
|
172
|
-
[k, a(
|
|
185
|
+
[k, a(t).topicNameForSkillData]
|
|
173
186
|
])
|
|
174
187
|
]),
|
|
175
188
|
ue,
|
|
176
189
|
e("div", pe, [
|
|
177
190
|
y(e("textarea", {
|
|
178
|
-
"onUpdate:modelValue": o[1] || (o[1] = (
|
|
179
|
-
onInput: o[2] || (o[2] = (
|
|
191
|
+
"onUpdate:modelValue": o[1] || (o[1] = (s) => a(t).descriptionForSkillData = s),
|
|
192
|
+
onInput: o[2] || (o[2] = (s) => p.value = !1),
|
|
180
193
|
type: "text",
|
|
181
194
|
id: "description",
|
|
182
195
|
rows: "5",
|
|
@@ -184,77 +197,77 @@ const te = { className: "flex justify-between items-center gap-4 h-14" }, se = /
|
|
|
184
197
|
placeholder: "Write here...",
|
|
185
198
|
required: ""
|
|
186
199
|
}, null, 544), [
|
|
187
|
-
[k, a(
|
|
200
|
+
[k, a(t).descriptionForSkillData]
|
|
188
201
|
])
|
|
189
202
|
]),
|
|
190
203
|
ge,
|
|
191
|
-
e("div",
|
|
204
|
+
e("div", _e, [
|
|
192
205
|
y(e("input", {
|
|
193
|
-
"onUpdate:modelValue": o[3] || (o[3] = (
|
|
206
|
+
"onUpdate:modelValue": o[3] || (o[3] = (s) => a(t).offeringTypeForSkillData = s),
|
|
194
207
|
type: "text",
|
|
195
208
|
id: "offeringType",
|
|
196
209
|
class: "w-full p-2.5 text-sm text-gray-900 bg-gray-50 rounded-lg border border-gray-300 shadow-sm focus:outline-none focus:border-genpact-blue-box focus:ring-genpact-blue-box focus:ring-1",
|
|
197
210
|
placeholder: "Write here...",
|
|
198
211
|
required: ""
|
|
199
212
|
}, null, 512), [
|
|
200
|
-
[k, a(
|
|
213
|
+
[k, a(t).offeringTypeForSkillData]
|
|
201
214
|
])
|
|
202
215
|
]),
|
|
203
|
-
|
|
216
|
+
me,
|
|
204
217
|
e("div", be, [
|
|
205
218
|
e("div", he, [
|
|
206
|
-
|
|
219
|
+
m.value ? (r(), c("button", {
|
|
207
220
|
key: 0,
|
|
208
|
-
disabled: a(
|
|
221
|
+
disabled: a(t).isTopicPending === !0,
|
|
209
222
|
class: S([
|
|
210
|
-
a(
|
|
223
|
+
a(t).isTopicPending === !0 ? "cursor-not-allowed bg-gray-600" : "cursor-pointer bg-genpact-darkest-blue",
|
|
211
224
|
"text-center whitespace-nowrap text-white w-40 px-4 py-2 rounded-md font-bold"
|
|
212
225
|
]),
|
|
213
|
-
onClick:
|
|
226
|
+
onClick: K,
|
|
214
227
|
type: "button"
|
|
215
228
|
}, " Duplicate Check ", 10, xe)) : (r(), c("div", fe, ve)),
|
|
216
229
|
b.value ? (r(), c("button", {
|
|
217
230
|
key: 2,
|
|
218
|
-
disabled:
|
|
231
|
+
disabled: p.value !== !0,
|
|
219
232
|
class: S([
|
|
220
|
-
|
|
233
|
+
p.value !== !0 ? "cursor-not-allowed bg-gray-600" : "cursor-pointer bg-genpact-darkest-blue",
|
|
221
234
|
"text-center text-white w-40 px-10 py-2 rounded-md font-bold"
|
|
222
235
|
]),
|
|
223
|
-
onClick:
|
|
236
|
+
onClick: L,
|
|
224
237
|
type: "submit"
|
|
225
238
|
}, " Submit ", 10, we)) : (r(), c("div", ke, De))
|
|
226
239
|
])
|
|
227
240
|
]),
|
|
228
241
|
Te,
|
|
229
|
-
a(
|
|
242
|
+
a(t).isTopicPending ? (r(), c("div", Fe, Ee)) : _("", !0)
|
|
230
243
|
]),
|
|
231
244
|
F.value ? (r(), c("div", Ne, [
|
|
232
245
|
e("div", Ce, [
|
|
233
246
|
e("table", Ve, [
|
|
234
247
|
Ae,
|
|
235
248
|
e("tbody", null, [
|
|
236
|
-
(r(!0), c(A, null, H(E.value, (
|
|
249
|
+
(r(!0), c(A, null, H(E.value, (s, f) => (r(), c("tr", {
|
|
237
250
|
key: f,
|
|
238
251
|
class: "odd:bg-white even:bg-gray-100"
|
|
239
252
|
}, [
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
253
|
+
s.Topic !== a(t).topicNameForSkillData ? (r(), c("th", Be, x(s.Topic || "title"), 1)) : _("", !0),
|
|
254
|
+
s.Topic !== a(t).topicNameForSkillData ? (r(), c("td", $e, x(s.Description || "desc"), 1)) : _("", !0),
|
|
255
|
+
s.Topic !== a(t).topicNameForSkillData ? (r(), c("td", je, x(s.OfferingType || "Knowledge Corpus"), 1)) : _("", !0),
|
|
256
|
+
s.Topic !== a(t).topicNameForSkillData ? (r(), c("td", qe, x(s.new_tag), 1)) : _("", !0)
|
|
244
257
|
]))), 128))
|
|
245
258
|
])
|
|
246
259
|
])
|
|
247
260
|
])
|
|
248
|
-
])) :
|
|
249
|
-
y(e("div",
|
|
250
|
-
e("div",
|
|
261
|
+
])) : _("", !0),
|
|
262
|
+
y(e("div", Me, [
|
|
263
|
+
e("div", ze, x(T.value), 1)
|
|
251
264
|
], 512), [
|
|
252
265
|
[O, v.value]
|
|
253
266
|
])
|
|
254
267
|
], 64));
|
|
255
268
|
}
|
|
256
269
|
});
|
|
257
|
-
const
|
|
270
|
+
const Pe = /* @__PURE__ */ Z(Ge, [["__scopeId", "data-v-18de1cf9"]]);
|
|
258
271
|
export {
|
|
259
|
-
|
|
272
|
+
Pe as default
|
|
260
273
|
};
|