@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.
@@ -1,4 +1,4 @@
1
- import { o as e, c as r, a } from "./main-87679222.mjs";
1
+ import { o as e, c as r, a } from "./main-0b9ac5a6.mjs";
2
2
  function c(l, o) {
3
3
  return e(), r("svg", {
4
4
  xmlns: "http://www.w3.org/2000/svg",
@@ -1,18 +1,18 @@
1
- import { d as q, J as z, 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-87679222.mjs";
2
- import { _ as Q, p as G, g as X, a as F } from "./loadernew-02ceea08.mjs";
3
- import { r as Z } from "./ArrowLeftCircleIcon-08ed4cc5.mjs";
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), ae = /* @__PURE__ */ e("img", {
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), le = /* @__PURE__ */ q({
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, f) => (n(), c("div", te, [
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
- ae
24
+ le
25
25
  ]));
26
26
  }
27
- }), d = (g) => (K("data-v-49583fb8"), 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" }, [
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)), ce = { class: "col-span-4" }, de = ["disabled"], ue = /* @__PURE__ */ d(() => /* @__PURE__ */ e("div", { class: "col-span-1 text-right" }, [
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: "offeringType",
45
+ for: "Knowledge Corpus",
46
46
  class: "block text-lg font-bold text-gray-900 mb-1 italic"
47
47
  }, [
48
- /* @__PURE__ */ j("Offering Type "),
48
+ /* @__PURE__ */ j("Knowledge Corpus "),
49
49
  /* @__PURE__ */ e("span", { class: "label" }, "*")
50
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 = {
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
- }, Ne = /* @__PURE__ */ d(() => /* @__PURE__ */ e("img", {
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)), Ce = [
77
- Ne
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
- }, "OfferingType")
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" }, 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({
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 = 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;
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", 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);
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
- }, O = async () => {
113
- var a;
112
+ }, W = async () => {
113
+ var l;
114
114
  try {
115
- console.log("before rejecting topic"), f.value = !1;
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), f.value = !0, o.status === 200 && (s.topicNameForSkillData = "", s.descriptionForSkillData = "", s.offeringTypeForSkillData = "", console.log("after rejecting topic"), w.value = "Data Rejected Successfully!", C());
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), f.value = !0, D.isAxiosError(t)) {
119
+ if (console.error(t), m.value = !0, D.isAxiosError(t)) {
120
120
  const o = t;
121
- p.setError(((a = o.response) == null ? void 0 : a.data).message);
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 a;
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), h.value = !1;
134
+ console.log("payload-=====>", t), f.value = !1;
135
135
  const o = await G("/editMasterSkillFile", t);
136
- console.log("data", o), h.value = !0, w.value = "Data Submitted Successfully!", C();
136
+ console.log("data", o), f.value = !0, w.value = "Data Submitted Successfully!", N();
137
137
  } catch (t) {
138
- if (console.error(t), h.value = !0, D.isAxiosError(t)) {
138
+ if (console.error(t), f.value = !0, D.isAxiosError(t)) {
139
139
  const o = t;
140
- p.setError(((a = o.response) == null ? void 0 : a.data).message);
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
- }, C = () => {
144
+ }, N = () => {
145
145
  v.value = !0, setTimeout(() => {
146
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");
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 (a, t) => (n(), c(B, null, [
151
+ return (l, t) => (c(), n(B, null, [
152
152
  e("nav", re, [
153
- L(le)
153
+ L(ae)
154
154
  ]),
155
155
  e("div", ie, [
156
- ne,
157
- e("div", ce, [
158
- b(e("input", {
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
- b(e("textarea", {
175
+ h(e("textarea", {
176
176
  "onUpdate:modelValue": t[1] || (t[1] = (o) => i(s).descriptionForSkillData = o),
177
- onInput: t[2] || (t[2] = (o) => m.value = !1),
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", fe, [
190
- b(e("input", {
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
- me,
202
- e("div", _e, [
203
- e("div", be, [
204
- e("div", he, [
205
- u.value ? (n(), c("button", {
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: W
214
- }, " Duplicate Check ", 10, xe)) : (n(), c("div", ye, we))
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
- f.value ? (n(), c("button", {
219
+ m.value ? (c(), n("button", {
220
220
  key: 0,
221
221
  type: "button",
222
- onClick: O,
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 ")) : (n(), c("div", Te, Fe))
224
+ }, " Reject ")) : (c(), n("div", Te, Fe))
225
225
  ]),
226
226
  e("div", Ae, [
227
- h.value ? (n(), c("button", {
227
+ f.value ? (c(), n("button", {
228
228
  key: 0,
229
229
  type: "submit",
230
- disabled: m.value !== !0,
230
+ disabled: _.value !== !0,
231
231
  class: S([
232
- m.value !== !0 ? "cursor-not-allowed bg-gray-600" : "cursor-pointer bg-genpact-darkest-blue",
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)) : (n(), c("div", Ie, Ce))
236
+ }, " Approve & Submit ", 10, Ee)) : (c(), n("div", Ie, Ne))
237
237
  ])
238
238
  ])
239
239
  ])
240
240
  ]),
241
- b(e("div", Re, [
241
+ h(e("div", Re, [
242
242
  e("div", Ve, [
243
243
  e("table", $e, [
244
244
  Be,
245
245
  e("tbody", null, [
246
- (n(!0), c(B, null, J(N.value, (o, x) => (n(), c("tr", {
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 || "offeringType"), 1)
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
- b(e("div", Me, [
261
- e("div", We, y(w.value), 1)
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 Je = /* @__PURE__ */ ee(Oe, [["__scopeId", "data-v-49583fb8"]]);
268
+ const Pe = /* @__PURE__ */ ee(We, [["__scopeId", "data-v-c0362ece"]]);
269
269
  export {
270
- Je as default
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 f, v as w, n as k, g as P, q as A, F as N, r as H, t as x, i as C, G as J, B as K, C as Y, f as S } from "./main-87679222.mjs";
2
- import { _ as Q, p as B, a as G } from "./loadernew-02ceea08.mjs";
3
- import { r as X } from "./ArrowLeftCircleIcon-08ed4cc5.mjs";
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(), c("div", ee, [
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
- }), n = (g) => (K("data-v-987796cc"), 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__ */ n(() => /* @__PURE__ */ e("div", { class: "col-span-1 text-right" }, [
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)), ce = { class: "col-span-4" }, ne = ["disabled"], de = /* @__PURE__ */ n(() => /* @__PURE__ */ e("div", { class: "col-span-1 text-right" }, [
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__ */ n(() => /* @__PURE__ */ e("div", { class: "col-span-1 text-right" }, [
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: "offeringType",
46
+ for: "Knowledge Corpus",
47
47
  class: "block text-lg font-bold text-gray-900 mb-1 italic"
48
48
  }, [
49
- /* @__PURE__ */ S("Offering Type "),
49
+ /* @__PURE__ */ S("Knowledge Corpus "),
50
50
  /* @__PURE__ */ e("span", { class: "label" }, "*")
51
51
  ])
52
- ], -1)), ge = { class: "col-span-4" }, be = /* @__PURE__ */ n(() => /* @__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" }, fe = ["disabled"], he = {
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
- }, xe = /* @__PURE__ */ n(() => /* @__PURE__ */ e("img", {
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
- xe
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__ */ n(() => /* @__PURE__ */ e("img", {
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
- ], Te = /* @__PURE__ */ n(() => /* @__PURE__ */ e("div", { class: "col-span-1" }, null, -1)), De = {
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__ */ n(() => /* @__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 = [
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" }, Ve = { class: "w-full relative overflow-x-auto rounded-lg border border-gray-200 max-h-[550px]" }, Ae = { class: "table-auto w-full text-sm text-left rtl:text-right rounded-lg" }, Ne = /* @__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" }, [
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
- }, "OfferingType")
88
+ }, "Knowledge Corpus")
89
89
  ])
90
- ], -1)), Ce = { 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({
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), T = r(""), L = r(""), D = r(!1), u = r(!1), I = r(), v = r(), E = r([]), R = async () => {
94
- var p, t, o, h, F, V;
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", L.value), b.value = !1;
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 = (h = a == null ? void 0 : a.data) == null ? void 0 : h.body) == null ? void 0 : F.length), console.log("data", a), b.value = !0, D.value = !0, u.value = !0, console.log("showSubmitButton", u.value);
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, C.isAxiosError(m)) {
103
+ if (console.error(m), b.value = !0, N.isAxiosError(m)) {
104
104
  const a = m;
105
- d.setError(((V = a.response) == null ? void 0 : V.data).message);
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
- }, M = async () => {
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), T.value = "Data Submitted Successfully!", _.value = !0, 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, C.isAxiosError(t)) {
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
- }, O = () => {
128
+ }, M = () => {
129
129
  y.value = !0, setTimeout(() => {
130
130
  y.value = !1, q(() => {
131
131
  sessionStorage.removeItem("dataViewAccess");
132
- }), J.push({ name: "SkillData" }), sessionStorage.removeItem("dataViewAccess"), sessionStorage.removeItem("role");
132
+ }), O.push({ name: "SkillData" }), sessionStorage.removeItem("dataViewAccess"), sessionStorage.removeItem("role");
133
133
  }, 3e3), u.value = !1;
134
134
  };
135
- return (p, t) => (i(), c(N, null, [
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", ce, [
142
- f(e("input", {
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, ne), [
150
+ }, null, 10, ce), [
151
151
  [w, l(s).topicNameForSkillData]
152
152
  ])
153
153
  ]),
154
154
  de,
155
155
  e("div", ue, [
156
- f(e("textarea", {
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
- f(e("input", {
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(), c("button", {
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: R,
192
+ onClick: L,
193
193
  type: "button"
194
- }, " Duplicate Check ", 10, fe)) : (i(), c("div", he, ye)),
195
- _.value ? (i(), c("button", {
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: M,
202
+ onClick: R,
203
203
  type: "submit"
204
- }, " Submit ", 10, ve)) : (i(), c("div", we, Se))
204
+ }, " Submit ", 10, ve)) : (i(), n("div", we, Se))
205
205
  ])
206
206
  ]),
207
- Te,
208
- l(s).isTopicPending ? (i(), c("div", De, Ee)) : P("", !0)
207
+ De,
208
+ l(s).isTopicPending ? (i(), n("div", Te, Ee)) : P("", !0)
209
209
  ]),
210
- f(e("div", Fe, [
211
- e("div", Ve, [
212
- e("table", Ae, [
213
- Ne,
210
+ h(e("div", Fe, [
211
+ e("div", Ce, [
212
+ e("table", Ve, [
213
+ Ae,
214
214
  e("tbody", null, [
215
- (i(!0), c(N, null, H(E.value, (o, h) => (i(), c("tr", {
216
- key: h,
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", Ce, x(o.Topic || "title"), 1),
220
- e("td", Be, x(o.Description || "desc"), 1),
221
- e("td", je, x(o.OfferingType || "offeringType"), 1)
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
- [A, D.value]
227
+ [V, T.value]
228
228
  ]),
229
- f(e("div", $e, [
230
- e("div", qe, x(T.value), 1)
229
+ h(e("div", $e, [
230
+ e("div", qe, f(D.value), 1)
231
231
  ], 512), [
232
- [A, y.value]
232
+ [V, y.value]
233
233
  ])
234
234
  ], 64));
235
235
  }
236
236
  });
237
- const Ue = /* @__PURE__ */ Z(Ge, [["__scopeId", "data-v-987796cc"]]);
237
+ const Ue = /* @__PURE__ */ Z(Ge, [["__scopeId", "data-v-599143e1"]]);
238
238
  export {
239
239
  Ue as default
240
240
  };