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