@genpact/genome.mfe.mgtwin-app 1.1.103-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.
@@ -1,4 +1,4 @@
1
- import { o as e, c as r, a } from "./main-506030a5.mjs";
1
+ import { o as e, c as r, a } from "./main-b8e7d688.mjs";
2
2
  function c(l, o) {
3
3
  return e(), r("svg", {
4
4
  xmlns: "http://www.w3.org/2000/svg",
@@ -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
+ };
@@ -0,0 +1,231 @@
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
+ import { _ as Q } from "./_plugin-vue_export-helper-dad06003.mjs";
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
+ class: "md:w-36 w-20",
7
+ src: K
8
+ }, null, -1), se = /* @__PURE__ */ j({
9
+ __name: "HeaderForEditSkillData",
10
+ setup(g) {
11
+ const o = O(), d = () => {
12
+ U(() => {
13
+ sessionStorage.removeItem("dataViewAccess");
14
+ }), o.push({ name: "SkillData" }), sessionStorage.removeItem("dataViewAccess"), sessionStorage.removeItem("role");
15
+ };
16
+ return (f, b) => (i(), c("div", X, [
17
+ e("div", {
18
+ onClick: d,
19
+ class: "flex justify-start items-center text-white cursor-pointer"
20
+ }, [
21
+ $(l(Y), { class: "md:w-9 w-5 h-5 md:h-9 mr-1" }),
22
+ Z
23
+ ]),
24
+ ee,
25
+ te
26
+ ]));
27
+ }
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
+ /* @__PURE__ */ e("label", {
30
+ for: "topic",
31
+ class: "block text-lg font-bold text-gray-900 mb-1 italic"
32
+ }, [
33
+ /* @__PURE__ */ S("Topic Name "),
34
+ /* @__PURE__ */ e("span", { class: "label" }, "*")
35
+ ])
36
+ ], -1)), re = { class: "col-span-4" }, ie = ["disabled"], ce = /* @__PURE__ */ n(() => /* @__PURE__ */ e("div", { class: "col-span-1 text-right" }, [
37
+ /* @__PURE__ */ e("label", {
38
+ for: "description",
39
+ class: "block text-lg font-bold text-gray-900 mb-1 italic"
40
+ }, [
41
+ /* @__PURE__ */ S("Description "),
42
+ /* @__PURE__ */ e("span", { class: "label" }, "*")
43
+ ])
44
+ ], -1)), ne = { class: "col-span-4" }, de = /* @__PURE__ */ n(() => /* @__PURE__ */ e("div", { class: "col-span-1 text-right" }, [
45
+ /* @__PURE__ */ e("label", {
46
+ for: "offeringType",
47
+ class: "block text-lg font-bold text-gray-900 mb-1 italic"
48
+ }, [
49
+ /* @__PURE__ */ S("Offering Type "),
50
+ /* @__PURE__ */ e("span", { class: "label" }, "*")
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" }, fe = { class: "md:flex block justify-between items-center space-y-2" }, be = ["disabled"], _e = {
53
+ key: 1,
54
+ class: "flex justify-center items-center text-center bg-genpact-darkest-blue text-white rounded-md w-40 px-4 py-2"
55
+ }, xe = /* @__PURE__ */ n(() => /* @__PURE__ */ e("img", {
56
+ class: "w-6 h-6 block loadercss",
57
+ src: q,
58
+ alt: "Loader Gif"
59
+ }, null, -1)), he = [
60
+ xe
61
+ ], me = ["disabled"], ye = {
62
+ key: 3,
63
+ class: "flex justify-center items-center text-center bg-genpact-darkest-blue text-white rounded-md w-40 px-10 py-2"
64
+ }, ve = /* @__PURE__ */ n(() => /* @__PURE__ */ e("img", {
65
+ class: "w-6 h-6 block loadercss",
66
+ src: q,
67
+ alt: "Loader Gif"
68
+ }, null, -1)), we = [
69
+ ve
70
+ ], ke = { class: "pl-16 pr-8 py-2" }, Se = { class: "w-full relative overflow-x-auto rounded-lg border border-gray-200 max-h-[550px]" }, Te = { class: "table-auto w-full text-sm text-left rtl:text-right rounded-lg" }, De = /* @__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" }, [
71
+ /* @__PURE__ */ e("tr", null, [
72
+ /* @__PURE__ */ e("th", {
73
+ scope: "col",
74
+ class: "px-6 py-3"
75
+ }, "Topic name"),
76
+ /* @__PURE__ */ e("th", {
77
+ scope: "col",
78
+ class: "px-6 py-3"
79
+ }, "Description"),
80
+ /* @__PURE__ */ e("th", {
81
+ scope: "col",
82
+ class: "px-6 py-3"
83
+ }, "OfferingType")
84
+ ])
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
+ __name: "EditSkillData",
87
+ setup(g) {
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
+ try {
91
+ const _ = {
92
+ question: o.descriptionForSkillData
93
+ };
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
+ d.setError(((N = a.response) == null ? void 0 : N.data).message);
101
+ } else
102
+ d.setError("We ran into an issue while fetching duplicate values.");
103
+ }
104
+ }, R = async () => {
105
+ var p;
106
+ try {
107
+ const t = {
108
+ Topic: o.topicNameForSkillData,
109
+ Description: o.descriptionForSkillData,
110
+ OfferingType: o.offeringTypeForSkillData,
111
+ DuplicateExists: v.value > 0 ? 1 : 0
112
+ };
113
+ b.value = !1, console.log("payload-=====>", t);
114
+ const s = await V("/InsertIntoTempSkillFile", t);
115
+ console.log("data", s), T.value = "Data Submitted Successfully!", b.value = !0, M();
116
+ } catch (t) {
117
+ if (console.error(t), b.value = !0, C.isAxiosError(t)) {
118
+ const s = t;
119
+ d.setError(((p = s.response) == null ? void 0 : p.data).message);
120
+ } else
121
+ d.setError("There was an issue while inserting data");
122
+ }
123
+ }, M = () => {
124
+ y.value = !0, setTimeout(() => {
125
+ y.value = !1;
126
+ }, 1e4), u.value = !1;
127
+ };
128
+ return (p, t) => (i(), c(B, null, [
129
+ e("nav", oe, [
130
+ $(se)
131
+ ]),
132
+ e("div", ae, [
133
+ le,
134
+ e("div", re, [
135
+ x(e("input", {
136
+ disabled: l(o).enableInputbox !== !0,
137
+ class: k([
138
+ l(o).enableInputbox !== !0 ? "cursor-not-allowed fill-gray-400" : "cursor-pointer",
139
+ "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"
140
+ ]),
141
+ type: "text",
142
+ "onUpdate:modelValue": t[0] || (t[0] = (s) => l(o).topicNameForSkillData = s),
143
+ id: "topic",
144
+ placeholder: "Write here...",
145
+ required: ""
146
+ }, null, 10, ie), [
147
+ [w, l(o).topicNameForSkillData]
148
+ ])
149
+ ]),
150
+ ce,
151
+ e("div", ne, [
152
+ x(e("textarea", {
153
+ "onUpdate:modelValue": t[1] || (t[1] = (s) => l(o).descriptionForSkillData = s),
154
+ onInput: t[2] || (t[2] = (s) => u.value = !1),
155
+ type: "text",
156
+ id: "description",
157
+ rows: "5",
158
+ 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",
159
+ placeholder: "Write here...",
160
+ required: ""
161
+ }, null, 544), [
162
+ [w, l(o).descriptionForSkillData]
163
+ ])
164
+ ]),
165
+ de,
166
+ e("div", ue, [
167
+ x(e("input", {
168
+ "onUpdate:modelValue": t[3] || (t[3] = (s) => l(o).offeringTypeForSkillData = s),
169
+ type: "text",
170
+ id: "offeringType",
171
+ 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",
172
+ placeholder: "Write here...",
173
+ required: ""
174
+ }, null, 512), [
175
+ [w, l(o).offeringTypeForSkillData]
176
+ ])
177
+ ]),
178
+ pe,
179
+ e("div", ge, [
180
+ e("div", fe, [
181
+ f.value ? (i(), c("button", {
182
+ key: 0,
183
+ disabled: l(o).isTopicPending === !0,
184
+ class: k([
185
+ l(o).isTopicPending === !0 ? "cursor-not-allowed bg-gray-600" : "cursor-pointer bg-genpact-darkest-blue",
186
+ "text-center whitespace-nowrap text-white w-40 px-4 py-2 rounded-md font-bold"
187
+ ]),
188
+ onClick: L,
189
+ type: "button"
190
+ }, " Duplicate Check ", 10, be)) : (i(), c("div", _e, he)),
191
+ b.value ? (i(), c("button", {
192
+ key: 2,
193
+ disabled: u.value !== !0,
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"]),
195
+ onClick: R,
196
+ type: "submit"
197
+ }, " Submit ", 10, me)) : (i(), c("div", ye, we))
198
+ ])
199
+ ])
200
+ ]),
201
+ x(e("div", ke, [
202
+ e("div", Se, [
203
+ e("table", Te, [
204
+ De,
205
+ e("tbody", null, [
206
+ (i(!0), c(B, null, H(F.value, (s, h) => (i(), c("tr", {
207
+ key: h,
208
+ class: "odd:bg-white even:bg-gray-100"
209
+ }, [
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
+ ]))), 128))
214
+ ])
215
+ ])
216
+ ])
217
+ ], 512), [
218
+ [A, D.value]
219
+ ]),
220
+ x(e("div", Ne, [
221
+ e("div", Ae, m(T.value), 1)
222
+ ], 512), [
223
+ [A, y.value]
224
+ ])
225
+ ], 64));
226
+ }
227
+ });
228
+ const qe = /* @__PURE__ */ Q(Be, [["__scopeId", "data-v-ffe1e5ae"]]);
229
+ export {
230
+ qe as default
231
+ };