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