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