@genpact/genome.mfe.mgtwin-app 1.1.115-alpha → 1.1.117-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-08ed4cc5.mjs → ArrowLeftCircleIcon-a9d5b109.mjs} +1 -1
- package/dist/{EditSkillAdminData-131db02d.mjs → EditSkillAdminData-17152d7a.mjs} +71 -71
- package/dist/{EditSkillData-29da515a.mjs → EditSkillData-6019fe86.mjs} +57 -57
- package/dist/{HomeView-92342ef8.mjs → HomeView-44f1463c.mjs} +5 -5
- package/dist/{Loading-a221f553.mjs → Loading-fc87d067.mjs} +2 -2
- package/dist/{MagnifyingGlassIcon-7607e0a5.mjs → MagnifyingGlassIcon-5e7d1bee.mjs} +1 -1
- package/dist/{PaperAirplaneIcon-b1364f14.mjs → PaperAirplaneIcon-bb05916f.mjs} +1 -1
- package/dist/{PromptTesting-eea8bad9.mjs → PromptTesting-97a1bea7.mjs} +3 -3
- package/dist/{SkillAutomation-b03be567.mjs → SkillAutomation-1956b4f2.mjs} +26 -28
- package/dist/{SkillData-d9152da2.mjs → SkillData-a58ea515.mjs} +40 -40
- package/dist/TestCase-314480a9.mjs +87 -0
- package/dist/{UnderMaintenance-16cba7d1.mjs → UnderMaintenance-b0dae98e.mjs} +1 -1
- package/dist/{loadernew-02ceea08.mjs → loadernew-9689e9ea.mjs} +1 -1
- package/dist/{main-87679222.mjs → main-0b9ac5a6.mjs} +245 -237
- package/dist/mgtwin.es.min.js +1 -1
- package/dist/mgtwin.umd.min.js +6 -6
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { d as q, J as z, o as
|
|
2
|
-
import { _ as Q, p as G, g as X, a as F } from "./loadernew-
|
|
3
|
-
import { r as Z } from "./ArrowLeftCircleIcon-
|
|
1
|
+
import { d as q, J as z, o as c, c as n, a as e, b as L, e as i, u as H, j as O, h as r, p as h, v as k, n as S, q as $, F as B, r as P, t as y, i as D, G as T, B as J, C as Y, g as j } from "./main-0b9ac5a6.mjs";
|
|
2
|
+
import { _ as Q, p as G, g as X, a as F } from "./loadernew-9689e9ea.mjs";
|
|
3
|
+
import { r as Z } from "./ArrowLeftCircleIcon-a9d5b109.mjs";
|
|
4
4
|
import { _ as ee } from "./_plugin-vue_export-helper-dad06003.mjs";
|
|
5
|
-
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),
|
|
5
|
+
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", {
|
|
6
6
|
class: "md:w-36 w-20",
|
|
7
7
|
src: Q
|
|
8
|
-
}, null, -1),
|
|
8
|
+
}, null, -1), ae = /* @__PURE__ */ q({
|
|
9
9
|
__name: "HeaderForEditSKillAdminDatas",
|
|
10
10
|
setup(g) {
|
|
11
11
|
const s = z(), p = () => {
|
|
12
12
|
const u = sessionStorage.getItem("role");
|
|
13
13
|
console.log("role", u), u === "user" ? s.push({ name: "SkillData" }) : u === "admin" ? s.push({ name: "SkillData" }) : s.push({ name: "SkillAutomation" }), sessionStorage.removeItem("dataViewAccess"), sessionStorage.removeItem("role");
|
|
14
14
|
};
|
|
15
|
-
return (u,
|
|
15
|
+
return (u, m) => (c(), n("div", te, [
|
|
16
16
|
e("div", {
|
|
17
17
|
onClick: p,
|
|
18
18
|
class: "flex justify-start items-center text-white cursor-pointer"
|
|
@@ -21,10 +21,10 @@ const te = { className: "flex justify-between items-center gap-4 h-14" }, se = /
|
|
|
21
21
|
se
|
|
22
22
|
]),
|
|
23
23
|
oe,
|
|
24
|
-
|
|
24
|
+
le
|
|
25
25
|
]));
|
|
26
26
|
}
|
|
27
|
-
}), d = (g) => (
|
|
27
|
+
}), d = (g) => (J("data-v-c0362ece"), g = g(), Y(), g), re = { class: "bg-genpact-blue-box w-full px-5 mb-6" }, ie = { class: "grid grid-cols-5 gap-8 p-10 items-stretch" }, ce = /* @__PURE__ */ d(() => /* @__PURE__ */ e("div", { class: "col-span-1 text-right" }, [
|
|
28
28
|
/* @__PURE__ */ e("label", {
|
|
29
29
|
for: "topic",
|
|
30
30
|
class: "block text-lg font-bold text-gray-900 mb-1 italic"
|
|
@@ -32,7 +32,7 @@ const te = { className: "flex justify-between items-center gap-4 h-14" }, se = /
|
|
|
32
32
|
/* @__PURE__ */ j("Topic Name "),
|
|
33
33
|
/* @__PURE__ */ e("span", { class: "label" }, "*")
|
|
34
34
|
])
|
|
35
|
-
], -1)),
|
|
35
|
+
], -1)), ne = { class: "col-span-4" }, de = ["disabled"], ue = /* @__PURE__ */ d(() => /* @__PURE__ */ e("div", { class: "col-span-1 text-right" }, [
|
|
36
36
|
/* @__PURE__ */ e("label", {
|
|
37
37
|
for: "description",
|
|
38
38
|
class: "block text-lg font-bold text-gray-900 mb-1 italic"
|
|
@@ -42,13 +42,13 @@ const te = { className: "flex justify-between items-center gap-4 h-14" }, se = /
|
|
|
42
42
|
])
|
|
43
43
|
], -1)), pe = { class: "col-span-4" }, ge = /* @__PURE__ */ d(() => /* @__PURE__ */ e("div", { class: "col-span-1 text-right" }, [
|
|
44
44
|
/* @__PURE__ */ e("label", {
|
|
45
|
-
for: "
|
|
45
|
+
for: "Knowledge Corpus",
|
|
46
46
|
class: "block text-lg font-bold text-gray-900 mb-1 italic"
|
|
47
47
|
}, [
|
|
48
|
-
/* @__PURE__ */ j("
|
|
48
|
+
/* @__PURE__ */ j("Knowledge Corpus "),
|
|
49
49
|
/* @__PURE__ */ e("span", { class: "label" }, "*")
|
|
50
50
|
])
|
|
51
|
-
], -1)),
|
|
51
|
+
], -1)), me = { class: "col-span-4" }, _e = /* @__PURE__ */ d(() => /* @__PURE__ */ e("div", { class: "col-span-1" }, null, -1)), be = { class: "col-span-4" }, he = { class: "grid md:grid-cols-5 grid-cols-1 justify-start items-center gap-2" }, fe = { class: "col-span-1" }, xe = ["disabled"], ye = {
|
|
52
52
|
key: 1,
|
|
53
53
|
class: "flex justify-center items-center text-center bg-genpact-darkest-blue text-white rounded-md w-40"
|
|
54
54
|
}, ve = /* @__PURE__ */ d(() => /* @__PURE__ */ e("img", {
|
|
@@ -69,12 +69,12 @@ const te = { className: "flex justify-between items-center gap-4 h-14" }, se = /
|
|
|
69
69
|
], Ae = { class: "col-span-1 flex md:justify-end justify-start items-end" }, Ee = ["disabled"], Ie = {
|
|
70
70
|
key: 1,
|
|
71
71
|
class: "flex justify-center items-center text-center w-52 bg-genpact-darkest-blue text-white rounded-md"
|
|
72
|
-
},
|
|
72
|
+
}, Ce = /* @__PURE__ */ d(() => /* @__PURE__ */ e("img", {
|
|
73
73
|
class: "w-10 h-10 block loadercss",
|
|
74
74
|
src: F,
|
|
75
75
|
alt: "Loader Gif"
|
|
76
|
-
}, null, -1)),
|
|
77
|
-
|
|
76
|
+
}, null, -1)), Ne = [
|
|
77
|
+
Ce
|
|
78
78
|
], Re = { class: "pl-16 pr-8 py-2" }, Ve = { class: "w-full relative overflow-x-auto rounded-lg border border-gray-200 max-h-[550px]" }, $e = { class: "table-auto w-full text-sm text-left rtl:text-right rounded-lg" }, Be = /* @__PURE__ */ d(() => /* @__PURE__ */ e("thead", { class: "text-sm text-center md:text-base text-gray-700 uppercase bg-gray-200 top-0 sticky z-10" }, [
|
|
79
79
|
/* @__PURE__ */ e("tr", null, [
|
|
80
80
|
/* @__PURE__ */ e("th", {
|
|
@@ -88,42 +88,42 @@ const te = { className: "flex justify-between items-center gap-4 h-14" }, se = /
|
|
|
88
88
|
/* @__PURE__ */ e("th", {
|
|
89
89
|
scope: "col",
|
|
90
90
|
class: "px-6 py-3"
|
|
91
|
-
}, "
|
|
91
|
+
}, "Knowledge Corpus")
|
|
92
92
|
])
|
|
93
|
-
], -1)), Ge = { class: "px-3 py-4 font-medium text-gray-900 text-center" }, qe = { class: "px-3 py-4" }, Le = { class: "px-3 py-4 text-center" },
|
|
93
|
+
], -1)), Ge = { class: "px-3 py-4 font-medium text-gray-900 text-center" }, qe = { class: "px-3 py-4" }, Le = { class: "px-3 py-4 text-center" }, Ke = { class: "absolute top-0 md:left-20 md:right-20 left-12 right-12 flex justify-center items-center mx-auto z-[100]" }, Me = { class: "w-full rounded-md px-3 text-center mt-4 bg-green-500 py-2 text-white" }, We = /* @__PURE__ */ q({
|
|
94
94
|
__name: "EditSkillAdminData",
|
|
95
95
|
setup(g) {
|
|
96
|
-
const s = H(), p =
|
|
97
|
-
var
|
|
96
|
+
const s = H(), p = O(), u = r(!0), m = r(!0), f = r(!0), v = r(!1), K = r(""), A = r(!1), _ = r(!1), E = r(), I = r(), w = r(""), C = r([]), M = async () => {
|
|
97
|
+
var l, t, o, x, R, V;
|
|
98
98
|
try {
|
|
99
|
-
const
|
|
99
|
+
const b = {
|
|
100
100
|
question: s.descriptionForSkillData
|
|
101
101
|
};
|
|
102
|
-
console.log("question",
|
|
103
|
-
const
|
|
104
|
-
I.value = (t = (
|
|
105
|
-
} catch (
|
|
106
|
-
if (console.error(
|
|
107
|
-
const
|
|
108
|
-
p.setError(((V =
|
|
102
|
+
console.log("question", K.value), u.value = !1;
|
|
103
|
+
const a = await G("/SearchSkillTags", b);
|
|
104
|
+
I.value = (t = (l = a == null ? void 0 : a.data) == null ? void 0 : l.body) == null ? void 0 : t.length, console.log("ARRAY LENGTH", I.value), E.value = ((o = a == null ? void 0 : a.data) == null ? void 0 : o.body) || [], C.value = E.value, console.log("length", (R = (x = a == null ? void 0 : a.data) == null ? void 0 : x.body) == null ? void 0 : R.length), console.log("data", a), u.value = !0, A.value = !0, _.value = !0, console.log("showSubmitButton", _.value);
|
|
105
|
+
} catch (b) {
|
|
106
|
+
if (console.error(b), u.value = !0, D.isAxiosError(b)) {
|
|
107
|
+
const a = b;
|
|
108
|
+
p.setError(((V = a.response) == null ? void 0 : V.data).message);
|
|
109
109
|
} else
|
|
110
110
|
p.setError("We ran into an issue while fetching duplicate values.");
|
|
111
111
|
}
|
|
112
|
-
},
|
|
113
|
-
var
|
|
112
|
+
}, W = async () => {
|
|
113
|
+
var l;
|
|
114
114
|
try {
|
|
115
|
-
console.log("before rejecting topic"),
|
|
115
|
+
console.log("before rejecting topic"), m.value = !1;
|
|
116
116
|
const t = encodeURIComponent(s.topicNameForSkillData), o = await X(`/rejectTempTopic?Topic=${t}`);
|
|
117
|
-
console.log("encoded topic", t), console.log("response", o),
|
|
117
|
+
console.log("encoded topic", t), console.log("response", o), m.value = !0, o.status === 200 && (s.topicNameForSkillData = "", s.descriptionForSkillData = "", s.offeringTypeForSkillData = "", console.log("after rejecting topic"), w.value = "Data Rejected Successfully!", N());
|
|
118
118
|
} catch (t) {
|
|
119
|
-
if (console.error(t),
|
|
119
|
+
if (console.error(t), m.value = !0, D.isAxiosError(t)) {
|
|
120
120
|
const o = t;
|
|
121
|
-
p.setError(((
|
|
121
|
+
p.setError(((l = o.response) == null ? void 0 : l.data).message);
|
|
122
122
|
} else
|
|
123
123
|
p.setError("We ran into an issue while rejecting values.");
|
|
124
124
|
}
|
|
125
125
|
}, U = async () => {
|
|
126
|
-
var
|
|
126
|
+
var l;
|
|
127
127
|
try {
|
|
128
128
|
const t = {
|
|
129
129
|
Topic: s.topicNameForSkillData,
|
|
@@ -131,31 +131,31 @@ const te = { className: "flex justify-between items-center gap-4 h-14" }, se = /
|
|
|
131
131
|
OfferingType: s.offeringTypeForSkillData
|
|
132
132
|
// DuplicateExists: duplicateLength.value > 0 ? 1 : 0
|
|
133
133
|
};
|
|
134
|
-
console.log("payload-=====>", t),
|
|
134
|
+
console.log("payload-=====>", t), f.value = !1;
|
|
135
135
|
const o = await G("/editMasterSkillFile", t);
|
|
136
|
-
console.log("data", o),
|
|
136
|
+
console.log("data", o), f.value = !0, w.value = "Data Submitted Successfully!", N();
|
|
137
137
|
} catch (t) {
|
|
138
|
-
if (console.error(t),
|
|
138
|
+
if (console.error(t), f.value = !0, D.isAxiosError(t)) {
|
|
139
139
|
const o = t;
|
|
140
|
-
p.setError(((
|
|
140
|
+
p.setError(((l = o.response) == null ? void 0 : l.data).message);
|
|
141
141
|
} else
|
|
142
142
|
p.setError("There was an issue while inserting data");
|
|
143
143
|
}
|
|
144
|
-
},
|
|
144
|
+
}, N = () => {
|
|
145
145
|
v.value = !0, setTimeout(() => {
|
|
146
146
|
v.value = !1;
|
|
147
|
-
const
|
|
148
|
-
console.log("role",
|
|
147
|
+
const l = sessionStorage.getItem("role");
|
|
148
|
+
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");
|
|
149
149
|
}, 3e3);
|
|
150
150
|
};
|
|
151
|
-
return (
|
|
151
|
+
return (l, t) => (c(), n(B, null, [
|
|
152
152
|
e("nav", re, [
|
|
153
|
-
L(
|
|
153
|
+
L(ae)
|
|
154
154
|
]),
|
|
155
155
|
e("div", ie, [
|
|
156
|
-
|
|
157
|
-
e("div",
|
|
158
|
-
|
|
156
|
+
ce,
|
|
157
|
+
e("div", ne, [
|
|
158
|
+
h(e("input", {
|
|
159
159
|
disabled: i(s).enableInputbox !== !0,
|
|
160
160
|
class: S([
|
|
161
161
|
i(s).enableInputbox !== !0 ? "cursor-not-allowed fill-gray-400" : "",
|
|
@@ -172,9 +172,9 @@ const te = { className: "flex justify-between items-center gap-4 h-14" }, se = /
|
|
|
172
172
|
]),
|
|
173
173
|
ue,
|
|
174
174
|
e("div", pe, [
|
|
175
|
-
|
|
175
|
+
h(e("textarea", {
|
|
176
176
|
"onUpdate:modelValue": t[1] || (t[1] = (o) => i(s).descriptionForSkillData = o),
|
|
177
|
-
onInput: t[2] || (t[2] = (o) =>
|
|
177
|
+
onInput: t[2] || (t[2] = (o) => _.value = !1),
|
|
178
178
|
type: "text",
|
|
179
179
|
id: "description",
|
|
180
180
|
rows: "5",
|
|
@@ -186,8 +186,8 @@ const te = { className: "flex justify-between items-center gap-4 h-14" }, se = /
|
|
|
186
186
|
])
|
|
187
187
|
]),
|
|
188
188
|
ge,
|
|
189
|
-
e("div",
|
|
190
|
-
|
|
189
|
+
e("div", me, [
|
|
190
|
+
h(e("input", {
|
|
191
191
|
"onUpdate:modelValue": t[3] || (t[3] = (o) => i(s).offeringTypeForSkillData = o),
|
|
192
192
|
type: "text",
|
|
193
193
|
id: "offeringType",
|
|
@@ -198,11 +198,11 @@ const te = { className: "flex justify-between items-center gap-4 h-14" }, se = /
|
|
|
198
198
|
[k, i(s).offeringTypeForSkillData]
|
|
199
199
|
])
|
|
200
200
|
]),
|
|
201
|
-
|
|
202
|
-
e("div",
|
|
203
|
-
e("div",
|
|
204
|
-
e("div",
|
|
205
|
-
u.value ? (
|
|
201
|
+
_e,
|
|
202
|
+
e("div", be, [
|
|
203
|
+
e("div", he, [
|
|
204
|
+
e("div", fe, [
|
|
205
|
+
u.value ? (c(), n("button", {
|
|
206
206
|
key: 0,
|
|
207
207
|
disabled: i(s).isTopicPending === !0,
|
|
208
208
|
class: S([
|
|
@@ -210,46 +210,46 @@ const te = { className: "flex justify-between items-center gap-4 h-14" }, se = /
|
|
|
210
210
|
"text-center whitespace-nowrap text-white w-52 px-4 py-2 rounded-md font-bold"
|
|
211
211
|
]),
|
|
212
212
|
type: "button",
|
|
213
|
-
onClick:
|
|
214
|
-
}, " Duplicate Check ", 10, xe)) : (
|
|
213
|
+
onClick: M
|
|
214
|
+
}, " Duplicate Check ", 10, xe)) : (c(), n("div", ye, we))
|
|
215
215
|
]),
|
|
216
216
|
ke,
|
|
217
217
|
Se,
|
|
218
218
|
e("div", De, [
|
|
219
|
-
|
|
219
|
+
m.value ? (c(), n("button", {
|
|
220
220
|
key: 0,
|
|
221
221
|
type: "button",
|
|
222
|
-
onClick:
|
|
222
|
+
onClick: W,
|
|
223
223
|
class: "bg-genpact-darkest-blue text-center text-white w-52 px-16 py-2 rounded-md font-bold cursor-pointer"
|
|
224
|
-
}, " Reject ")) : (
|
|
224
|
+
}, " Reject ")) : (c(), n("div", Te, Fe))
|
|
225
225
|
]),
|
|
226
226
|
e("div", Ae, [
|
|
227
|
-
|
|
227
|
+
f.value ? (c(), n("button", {
|
|
228
228
|
key: 0,
|
|
229
229
|
type: "submit",
|
|
230
|
-
disabled:
|
|
230
|
+
disabled: _.value !== !0,
|
|
231
231
|
class: S([
|
|
232
|
-
|
|
232
|
+
_.value !== !0 ? "cursor-not-allowed bg-gray-600" : "cursor-pointer bg-genpact-darkest-blue",
|
|
233
233
|
"text-center text-white w-52 px-2 py-2 rounded-md whitespace-nowrap font-bold"
|
|
234
234
|
]),
|
|
235
235
|
onClick: U
|
|
236
|
-
}, " Approve & Submit ", 10, Ee)) : (
|
|
236
|
+
}, " Approve & Submit ", 10, Ee)) : (c(), n("div", Ie, Ne))
|
|
237
237
|
])
|
|
238
238
|
])
|
|
239
239
|
])
|
|
240
240
|
]),
|
|
241
|
-
|
|
241
|
+
h(e("div", Re, [
|
|
242
242
|
e("div", Ve, [
|
|
243
243
|
e("table", $e, [
|
|
244
244
|
Be,
|
|
245
245
|
e("tbody", null, [
|
|
246
|
-
(
|
|
246
|
+
(c(!0), n(B, null, P(C.value, (o, x) => (c(), n("tr", {
|
|
247
247
|
key: x,
|
|
248
248
|
class: "odd:bg-white even:bg-gray-100"
|
|
249
249
|
}, [
|
|
250
250
|
e("th", Ge, y(o.Topic || "title"), 1),
|
|
251
251
|
e("td", qe, y(o.Description || "desc"), 1),
|
|
252
|
-
e("td", Le, y(o.OfferingType || "
|
|
252
|
+
e("td", Le, y(o.OfferingType || "Knowledge Corpus"), 1)
|
|
253
253
|
]))), 128))
|
|
254
254
|
])
|
|
255
255
|
])
|
|
@@ -257,15 +257,15 @@ const te = { className: "flex justify-between items-center gap-4 h-14" }, se = /
|
|
|
257
257
|
], 512), [
|
|
258
258
|
[$, A.value]
|
|
259
259
|
]),
|
|
260
|
-
|
|
261
|
-
e("div",
|
|
260
|
+
h(e("div", Ke, [
|
|
261
|
+
e("div", Me, y(w.value), 1)
|
|
262
262
|
], 512), [
|
|
263
263
|
[$, v.value]
|
|
264
264
|
])
|
|
265
265
|
], 64));
|
|
266
266
|
}
|
|
267
267
|
});
|
|
268
|
-
const
|
|
268
|
+
const Pe = /* @__PURE__ */ ee(We, [["__scopeId", "data-v-c0362ece"]]);
|
|
269
269
|
export {
|
|
270
|
-
|
|
270
|
+
Pe as default
|
|
271
271
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as j, J as U, o as i, c, a as e, b as $, e as l, K as q, u as W, j as z, h as r, p as
|
|
2
|
-
import { _ as Q, p as B, a as G } from "./loadernew-
|
|
3
|
-
import { r as X } from "./ArrowLeftCircleIcon-
|
|
1
|
+
import { d as j, J as U, o as i, c as n, a as e, b as $, e as l, K as q, u as W, j as z, h as r, p as h, v as w, n as k, f as P, q as V, F as A, r as H, t as f, i as N, G as O, B as J, C as Y, g as S } from "./main-0b9ac5a6.mjs";
|
|
2
|
+
import { _ as Q, p as B, a as G } from "./loadernew-9689e9ea.mjs";
|
|
3
|
+
import { r as X } from "./ArrowLeftCircleIcon-a9d5b109.mjs";
|
|
4
4
|
import { _ as Z } from "./_plugin-vue_export-helper-dad06003.mjs";
|
|
5
5
|
const ee = { className: "flex justify-between items-center gap-4 h-14" }, te = /* @__PURE__ */ e("div", { class: "font-bold text-base md:text-xl" }, "Back", -1), se = /* @__PURE__ */ e("div", { class: "text-white font-bold md:text-xl text-base" }, "AI Guru Edit Skill Data", -1), oe = /* @__PURE__ */ e("img", {
|
|
6
6
|
class: "md:w-36 w-20",
|
|
@@ -13,7 +13,7 @@ const ee = { className: "flex justify-between items-center gap-4 h-14" }, te = /
|
|
|
13
13
|
sessionStorage.removeItem("dataViewAccess");
|
|
14
14
|
}), s.push({ name: "SkillData" }), sessionStorage.removeItem("dataViewAccess"), sessionStorage.removeItem("role");
|
|
15
15
|
};
|
|
16
|
-
return (b, _) => (i(),
|
|
16
|
+
return (b, _) => (i(), n("div", ee, [
|
|
17
17
|
e("div", {
|
|
18
18
|
onClick: d,
|
|
19
19
|
class: "flex justify-start items-center text-white cursor-pointer"
|
|
@@ -25,7 +25,7 @@ const ee = { className: "flex justify-between items-center gap-4 h-14" }, te = /
|
|
|
25
25
|
oe
|
|
26
26
|
]));
|
|
27
27
|
}
|
|
28
|
-
}),
|
|
28
|
+
}), c = (g) => (J("data-v-599143e1"), g = g(), Y(), g), le = { class: "bg-genpact-blue-box w-full px-5 mb-6" }, re = { class: "grid grid-cols-5 gap-8 p-10 items-stretch" }, ie = /* @__PURE__ */ c(() => /* @__PURE__ */ e("div", { class: "col-span-1 text-right" }, [
|
|
29
29
|
/* @__PURE__ */ e("label", {
|
|
30
30
|
for: "topic",
|
|
31
31
|
class: "block text-lg font-bold text-gray-900 mb-1 italic"
|
|
@@ -33,7 +33,7 @@ const ee = { className: "flex justify-between items-center gap-4 h-14" }, te = /
|
|
|
33
33
|
/* @__PURE__ */ S("Topic Name "),
|
|
34
34
|
/* @__PURE__ */ e("span", { class: "label" }, "*")
|
|
35
35
|
])
|
|
36
|
-
], -1)),
|
|
36
|
+
], -1)), ne = { class: "col-span-4" }, ce = ["disabled"], de = /* @__PURE__ */ c(() => /* @__PURE__ */ e("div", { class: "col-span-1 text-right" }, [
|
|
37
37
|
/* @__PURE__ */ e("label", {
|
|
38
38
|
for: "description",
|
|
39
39
|
class: "block text-lg font-bold text-gray-900 mb-1 italic"
|
|
@@ -41,38 +41,38 @@ const ee = { className: "flex justify-between items-center gap-4 h-14" }, te = /
|
|
|
41
41
|
/* @__PURE__ */ S("Description "),
|
|
42
42
|
/* @__PURE__ */ e("span", { class: "label" }, "*")
|
|
43
43
|
])
|
|
44
|
-
], -1)), ue = { class: "col-span-4" }, pe = /* @__PURE__ */
|
|
44
|
+
], -1)), ue = { class: "col-span-4" }, pe = /* @__PURE__ */ c(() => /* @__PURE__ */ e("div", { class: "col-span-1 text-right" }, [
|
|
45
45
|
/* @__PURE__ */ e("label", {
|
|
46
|
-
for: "
|
|
46
|
+
for: "Knowledge Corpus",
|
|
47
47
|
class: "block text-lg font-bold text-gray-900 mb-1 italic"
|
|
48
48
|
}, [
|
|
49
|
-
/* @__PURE__ */ S("
|
|
49
|
+
/* @__PURE__ */ S("Knowledge Corpus "),
|
|
50
50
|
/* @__PURE__ */ e("span", { class: "label" }, "*")
|
|
51
51
|
])
|
|
52
|
-
], -1)), ge = { class: "col-span-4" }, be = /* @__PURE__ */
|
|
52
|
+
], -1)), ge = { class: "col-span-4" }, be = /* @__PURE__ */ c(() => /* @__PURE__ */ e("div", { class: "col-span-1" }, null, -1)), _e = { class: "col-span-4" }, me = { class: "md:flex block justify-between items-center space-y-2" }, he = ["disabled"], xe = {
|
|
53
53
|
key: 1,
|
|
54
54
|
class: "flex justify-center items-center text-center bg-genpact-darkest-blue text-white rounded-md w-40 px-4 py-2"
|
|
55
|
-
},
|
|
55
|
+
}, fe = /* @__PURE__ */ c(() => /* @__PURE__ */ e("img", {
|
|
56
56
|
class: "w-6 h-6 block loadercss",
|
|
57
57
|
src: G,
|
|
58
58
|
alt: "Loader Gif"
|
|
59
59
|
}, null, -1)), ye = [
|
|
60
|
-
|
|
60
|
+
fe
|
|
61
61
|
], ve = ["disabled"], we = {
|
|
62
62
|
key: 3,
|
|
63
63
|
class: "flex justify-center items-center text-center bg-genpact-darkest-blue text-white rounded-md w-40 px-10 py-2"
|
|
64
|
-
}, ke = /* @__PURE__ */
|
|
64
|
+
}, ke = /* @__PURE__ */ c(() => /* @__PURE__ */ e("img", {
|
|
65
65
|
class: "w-6 h-6 block loadercss",
|
|
66
66
|
src: G,
|
|
67
67
|
alt: "Loader Gif"
|
|
68
68
|
}, null, -1)), Se = [
|
|
69
69
|
ke
|
|
70
|
-
],
|
|
70
|
+
], De = /* @__PURE__ */ c(() => /* @__PURE__ */ e("div", { class: "col-span-1" }, null, -1)), Te = {
|
|
71
71
|
key: 0,
|
|
72
72
|
class: "col-span-4"
|
|
73
|
-
}, Ie = /* @__PURE__ */
|
|
73
|
+
}, Ie = /* @__PURE__ */ c(() => /* @__PURE__ */ e("div", { class: "p-2 items-center text-base font-bold bg-gray-200" }, " This topic is under review and cannot be submitted again at this moment ", -1)), Ee = [
|
|
74
74
|
Ie
|
|
75
|
-
], Fe = { class: "pl-16 pr-8 py-2" },
|
|
75
|
+
], Fe = { class: "pl-16 pr-8 py-2" }, Ce = { class: "w-full relative overflow-x-auto rounded-lg border border-gray-200 max-h-[550px]" }, Ve = { class: "table-auto w-full text-sm text-left rtl:text-right rounded-lg" }, Ae = /* @__PURE__ */ c(() => /* @__PURE__ */ e("thead", { class: "text-sm text-center md:text-base text-gray-700 uppercase bg-gray-200 top-0 sticky z-10" }, [
|
|
76
76
|
/* @__PURE__ */ e("tr", null, [
|
|
77
77
|
/* @__PURE__ */ e("th", {
|
|
78
78
|
scope: "col",
|
|
@@ -85,28 +85,28 @@ const ee = { className: "flex justify-between items-center gap-4 h-14" }, te = /
|
|
|
85
85
|
/* @__PURE__ */ e("th", {
|
|
86
86
|
scope: "col",
|
|
87
87
|
class: "px-6 py-3"
|
|
88
|
-
}, "
|
|
88
|
+
}, "Knowledge Corpus")
|
|
89
89
|
])
|
|
90
|
-
], -1)),
|
|
90
|
+
], -1)), Ne = { class: "px-3 py-4 font-medium text-gray-900 text-center" }, Be = { class: "px-3 py-4" }, je = { class: "px-3 py-4 text-center" }, $e = { class: "absolute top-0 md:left-20 md:right-20 left-12 right-12 flex justify-center items-center mx-auto z-[100]" }, qe = { class: "w-full rounded-md px-3 text-center mt-4 bg-green-500 py-2 text-white" }, Ge = /* @__PURE__ */ j({
|
|
91
91
|
__name: "EditSkillData",
|
|
92
92
|
setup(g) {
|
|
93
|
-
const s = W(), d = z(), b = r(!0), _ = r(!0), y = r(!1),
|
|
94
|
-
var p, t, o,
|
|
93
|
+
const s = W(), d = z(), b = r(!0), _ = r(!0), y = r(!1), D = r(""), K = r(""), T = r(!1), u = r(!1), I = r(), v = r(), E = r([]), L = async () => {
|
|
94
|
+
var p, t, o, x, F, C;
|
|
95
95
|
try {
|
|
96
96
|
const m = {
|
|
97
97
|
question: s.descriptionForSkillData
|
|
98
98
|
};
|
|
99
|
-
console.log("question",
|
|
99
|
+
console.log("question", K.value), b.value = !1;
|
|
100
100
|
const a = await B("/SearchSkillTags", m);
|
|
101
|
-
v.value = (t = (p = a == null ? void 0 : a.data) == null ? void 0 : p.body) == null ? void 0 : t.length, console.log("ARRAY LENGTH", v.value), I.value = ((o = a == null ? void 0 : a.data) == null ? void 0 : o.body) || [], E.value = I.value, console.log("length", (F = (
|
|
101
|
+
v.value = (t = (p = a == null ? void 0 : a.data) == null ? void 0 : p.body) == null ? void 0 : t.length, console.log("ARRAY LENGTH", v.value), I.value = ((o = a == null ? void 0 : a.data) == null ? void 0 : o.body) || [], E.value = I.value, console.log("length", (F = (x = a == null ? void 0 : a.data) == null ? void 0 : x.body) == null ? void 0 : F.length), console.log("data", a), b.value = !0, T.value = !0, u.value = !0, console.log("showSubmitButton", u.value);
|
|
102
102
|
} catch (m) {
|
|
103
|
-
if (console.error(m), b.value = !0,
|
|
103
|
+
if (console.error(m), b.value = !0, N.isAxiosError(m)) {
|
|
104
104
|
const a = m;
|
|
105
|
-
d.setError(((
|
|
105
|
+
d.setError(((C = a.response) == null ? void 0 : C.data).message);
|
|
106
106
|
} else
|
|
107
107
|
d.setError("We ran into an issue while fetching duplicate values.");
|
|
108
108
|
}
|
|
109
|
-
},
|
|
109
|
+
}, R = async () => {
|
|
110
110
|
var p;
|
|
111
111
|
try {
|
|
112
112
|
const t = {
|
|
@@ -117,29 +117,29 @@ const ee = { className: "flex justify-between items-center gap-4 h-14" }, te = /
|
|
|
117
117
|
};
|
|
118
118
|
_.value = !1, console.log("payload-=====>", t);
|
|
119
119
|
const o = await B("/InsertIntoTempSkillFile", t);
|
|
120
|
-
console.log("data", o),
|
|
120
|
+
console.log("data", o), D.value = "Data Submitted Successfully!", _.value = !0, M();
|
|
121
121
|
} catch (t) {
|
|
122
|
-
if (console.error(t), _.value = !0,
|
|
122
|
+
if (console.error(t), _.value = !0, N.isAxiosError(t)) {
|
|
123
123
|
const o = t;
|
|
124
124
|
d.setError(((p = o.response) == null ? void 0 : p.data).message);
|
|
125
125
|
} else
|
|
126
126
|
d.setError("There was an issue while inserting data");
|
|
127
127
|
}
|
|
128
|
-
},
|
|
128
|
+
}, M = () => {
|
|
129
129
|
y.value = !0, setTimeout(() => {
|
|
130
130
|
y.value = !1, q(() => {
|
|
131
131
|
sessionStorage.removeItem("dataViewAccess");
|
|
132
|
-
}),
|
|
132
|
+
}), O.push({ name: "SkillData" }), sessionStorage.removeItem("dataViewAccess"), sessionStorage.removeItem("role");
|
|
133
133
|
}, 3e3), u.value = !1;
|
|
134
134
|
};
|
|
135
|
-
return (p, t) => (i(),
|
|
135
|
+
return (p, t) => (i(), n(A, null, [
|
|
136
136
|
e("nav", le, [
|
|
137
137
|
$(ae)
|
|
138
138
|
]),
|
|
139
139
|
e("div", re, [
|
|
140
140
|
ie,
|
|
141
|
-
e("div",
|
|
142
|
-
|
|
141
|
+
e("div", ne, [
|
|
142
|
+
h(e("input", {
|
|
143
143
|
disabled: l(s).enableInputbox !== !0,
|
|
144
144
|
class: k([l(s).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"]),
|
|
145
145
|
type: "text",
|
|
@@ -147,13 +147,13 @@ const ee = { className: "flex justify-between items-center gap-4 h-14" }, te = /
|
|
|
147
147
|
id: "topic",
|
|
148
148
|
placeholder: "Write here...",
|
|
149
149
|
required: ""
|
|
150
|
-
}, null, 10,
|
|
150
|
+
}, null, 10, ce), [
|
|
151
151
|
[w, l(s).topicNameForSkillData]
|
|
152
152
|
])
|
|
153
153
|
]),
|
|
154
154
|
de,
|
|
155
155
|
e("div", ue, [
|
|
156
|
-
|
|
156
|
+
h(e("textarea", {
|
|
157
157
|
"onUpdate:modelValue": t[1] || (t[1] = (o) => l(s).descriptionForSkillData = o),
|
|
158
158
|
onInput: t[2] || (t[2] = (o) => u.value = !1),
|
|
159
159
|
type: "text",
|
|
@@ -168,7 +168,7 @@ const ee = { className: "flex justify-between items-center gap-4 h-14" }, te = /
|
|
|
168
168
|
]),
|
|
169
169
|
pe,
|
|
170
170
|
e("div", ge, [
|
|
171
|
-
|
|
171
|
+
h(e("input", {
|
|
172
172
|
"onUpdate:modelValue": t[3] || (t[3] = (o) => l(s).offeringTypeForSkillData = o),
|
|
173
173
|
type: "text",
|
|
174
174
|
id: "offeringType",
|
|
@@ -182,59 +182,59 @@ const ee = { className: "flex justify-between items-center gap-4 h-14" }, te = /
|
|
|
182
182
|
be,
|
|
183
183
|
e("div", _e, [
|
|
184
184
|
e("div", me, [
|
|
185
|
-
b.value ? (i(),
|
|
185
|
+
b.value ? (i(), n("button", {
|
|
186
186
|
key: 0,
|
|
187
187
|
disabled: l(s).isTopicPending === !0,
|
|
188
188
|
class: k([
|
|
189
189
|
l(s).isTopicPending === !0 ? "cursor-not-allowed bg-gray-600" : "cursor-pointer bg-genpact-darkest-blue",
|
|
190
190
|
"text-center whitespace-nowrap text-white w-40 px-4 py-2 rounded-md font-bold"
|
|
191
191
|
]),
|
|
192
|
-
onClick:
|
|
192
|
+
onClick: L,
|
|
193
193
|
type: "button"
|
|
194
|
-
}, " Duplicate Check ", 10,
|
|
195
|
-
_.value ? (i(),
|
|
194
|
+
}, " Duplicate Check ", 10, he)) : (i(), n("div", xe, ye)),
|
|
195
|
+
_.value ? (i(), n("button", {
|
|
196
196
|
key: 2,
|
|
197
197
|
disabled: u.value !== !0,
|
|
198
198
|
class: k([
|
|
199
199
|
u.value !== !0 ? "cursor-not-allowed bg-gray-600" : "cursor-pointer bg-genpact-darkest-blue",
|
|
200
200
|
"text-center text-white w-40 px-10 py-2 rounded-md font-bold"
|
|
201
201
|
]),
|
|
202
|
-
onClick:
|
|
202
|
+
onClick: R,
|
|
203
203
|
type: "submit"
|
|
204
|
-
}, " Submit ", 10, ve)) : (i(),
|
|
204
|
+
}, " Submit ", 10, ve)) : (i(), n("div", we, Se))
|
|
205
205
|
])
|
|
206
206
|
]),
|
|
207
|
-
|
|
208
|
-
l(s).isTopicPending ? (i(),
|
|
207
|
+
De,
|
|
208
|
+
l(s).isTopicPending ? (i(), n("div", Te, Ee)) : P("", !0)
|
|
209
209
|
]),
|
|
210
|
-
|
|
211
|
-
e("div",
|
|
212
|
-
e("table",
|
|
213
|
-
|
|
210
|
+
h(e("div", Fe, [
|
|
211
|
+
e("div", Ce, [
|
|
212
|
+
e("table", Ve, [
|
|
213
|
+
Ae,
|
|
214
214
|
e("tbody", null, [
|
|
215
|
-
(i(!0),
|
|
216
|
-
key:
|
|
215
|
+
(i(!0), n(A, null, H(E.value, (o, x) => (i(), n("tr", {
|
|
216
|
+
key: x,
|
|
217
217
|
class: "odd:bg-white even:bg-gray-100"
|
|
218
218
|
}, [
|
|
219
|
-
e("th",
|
|
220
|
-
e("td", Be,
|
|
221
|
-
e("td", je,
|
|
219
|
+
e("th", Ne, f(o.Topic || "title"), 1),
|
|
220
|
+
e("td", Be, f(o.Description || "desc"), 1),
|
|
221
|
+
e("td", je, f(o.OfferingType || "Knowledge Corpus"), 1)
|
|
222
222
|
]))), 128))
|
|
223
223
|
])
|
|
224
224
|
])
|
|
225
225
|
])
|
|
226
226
|
], 512), [
|
|
227
|
-
[
|
|
227
|
+
[V, T.value]
|
|
228
228
|
]),
|
|
229
|
-
|
|
230
|
-
e("div", qe,
|
|
229
|
+
h(e("div", $e, [
|
|
230
|
+
e("div", qe, f(D.value), 1)
|
|
231
231
|
], 512), [
|
|
232
|
-
[
|
|
232
|
+
[V, y.value]
|
|
233
233
|
])
|
|
234
234
|
], 64));
|
|
235
235
|
}
|
|
236
236
|
});
|
|
237
|
-
const Ue = /* @__PURE__ */ Z(Ge, [["__scopeId", "data-v-
|
|
237
|
+
const Ue = /* @__PURE__ */ Z(Ge, [["__scopeId", "data-v-599143e1"]]);
|
|
238
238
|
export {
|
|
239
239
|
Ue as default
|
|
240
240
|
};
|