@genpact/genome.mfe.mgtwin-app 1.1.118-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-0e535048.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 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-0e535048.mjs";
2
- import { _ as Q, p as G, g as X, a as F } from "./loadernew-55a7601a.mjs";
3
- import { r as Z } from "./ArrowLeftCircleIcon-29dc66c7.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",
@@ -1,6 +1,6 @@
1
- import { d as $, J as U, o as a, c as l, a as e, b as q, e as r, K as G, u as W, j as z, h as i, p as v, v as k, n as S, f as d, F as A, r as H, q as O, t as f, i as B, G as J, B as Y, C as Q, g as D } from "./main-0e535048.mjs";
2
- import { _ as X, p as j, a as K } from "./loadernew-55a7601a.mjs";
3
- import { r as Z } from "./ArrowLeftCircleIcon-29dc66c7.mjs";
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
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 Data", -1), ae = /* @__PURE__ */ e("img", {
6
6
  class: "md:w-36 w-20",
@@ -8,24 +8,24 @@ const te = { className: "flex justify-between items-center gap-4 h-14" }, se = /
8
8
  }, null, -1), le = /* @__PURE__ */ $({
9
9
  __name: "HeaderForEditSkillData",
10
10
  setup(_) {
11
- const t = U(), u = () => {
11
+ const s = W(), d = () => {
12
12
  G(() => {
13
13
  sessionStorage.removeItem("dataViewAccess");
14
- }), t.push({ name: "SkillData" }), sessionStorage.removeItem("dataViewAccess"), sessionStorage.removeItem("role");
14
+ }), s.push({ name: "SkillData" }), sessionStorage.removeItem("dataViewAccess"), sessionStorage.removeItem("role");
15
15
  };
16
- return (b, m) => (a(), l("div", te, [
16
+ return (b, m) => (r(), c("div", te, [
17
17
  e("div", {
18
- onClick: u,
18
+ onClick: d,
19
19
  class: "flex justify-start items-center text-white cursor-pointer"
20
20
  }, [
21
- q(r(Z), { class: "md:w-9 w-5 h-5 md:h-9 mr-1" }),
21
+ q(a(Z), { class: "md:w-9 w-5 h-5 md:h-9 mr-1" }),
22
22
  se
23
23
  ]),
24
24
  oe,
25
25
  ae
26
26
  ]));
27
27
  }
28
- }), n = (_) => (Y("data-v-7ea37bc3"), _ = _(), 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" }, [
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
29
  /* @__PURE__ */ e("label", {
30
30
  for: "topic",
31
31
  class: "block text-lg font-bold text-gray-900 mb-1 italic"
@@ -75,7 +75,7 @@ const te = { className: "flex justify-between items-center gap-4 h-14" }, se = /
75
75
  ], Ne = {
76
76
  key: 0,
77
77
  class: "pl-16 pr-8 py-2"
78
- }, Ce = { key: 0 }, 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" }, 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" }, [
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
79
  /* @__PURE__ */ e("tr", null, [
80
80
  /* @__PURE__ */ e("th", {
81
81
  scope: "col",
@@ -94,93 +94,87 @@ const te = { className: "flex justify-between items-center gap-4 h-14" }, se = /
94
94
  class: "px-6 py-3"
95
95
  }, "Score")
96
96
  ])
97
- ], -1)), je = {
97
+ ], -1)), Be = {
98
98
  key: 0,
99
99
  class: "px-3 py-4 font-medium text-gray-900 text-center"
100
- }, $e = {
100
+ }, je = {
101
101
  key: 1,
102
102
  class: "px-3 py-4"
103
- }, qe = {
103
+ }, $e = {
104
104
  key: 2,
105
105
  class: "px-3 py-4 text-center"
106
- }, Ge = {
106
+ }, qe = {
107
107
  key: 3,
108
108
  class: "px-3 py-4 text-center"
109
- }, Ke = {
110
- key: 1,
111
- class: "w-7/12 mx-auto"
112
- }, Le = {
113
- key: 0,
114
- class: "p-2 items-center text-lg font-bold bg-gray-200"
115
- }, Re = { 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" }, Pe = /* @__PURE__ */ $({
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__ */ $({
116
110
  __name: "EditSkillData",
117
111
  setup(_) {
118
- const t = W(), u = z(), b = i(!0), m = i(!0), w = i(!1), T = i(""), L = i(""), F = i(!1), p = i(!1), I = i(), h = i(), E = i([]), R = async () => {
119
- var g, o, s, y, N, C, V;
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;
120
114
  try {
121
- const x = {
122
- question: t.descriptionForSkillData
115
+ const h = {
116
+ question: s.descriptionForSkillData
123
117
  };
124
118
  console.log("question", L.value), b.value = !1;
125
- const c = await j("/SearchSkillTags", x);
126
- console.log("abc", (g = c == null ? void 0 : c.data) == null ? void 0 : g.body), h.value = (s = (o = c == null ? void 0 : c.data) == null ? void 0 : o.body) == null ? void 0 : s.length, console.log("ARRAY LENGTH", h.value), I.value = ((y = c == null ? void 0 : c.data) == null ? void 0 : y.body) || [], E.value = I.value, console.log("length", (C = (N = c == null ? void 0 : c.data) == null ? void 0 : N.body) == null ? void 0 : C.length), console.log("data", c), b.value = !0, F.value = !0, p.value = !0, console.log("showSubmitButton", p.value);
127
- } catch (x) {
128
- if (console.error(x), b.value = !0, B.isAxiosError(x)) {
129
- const c = x;
130
- u.setError(((V = c.response) == null ? void 0 : V.data).message);
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);
131
125
  } else
132
- u.setError("We ran into an issue while fetching duplicate values.");
126
+ d.setError("We ran into an issue while fetching duplicate values.");
133
127
  }
134
128
  }, M = async () => {
135
- var g;
129
+ var p;
136
130
  try {
137
131
  const o = {
138
- Topic: t.topicNameForSkillData,
139
- Description: t.descriptionForSkillData,
140
- OfferingType: t.offeringTypeForSkillData,
141
- DuplicateExists: h.value > 0 ? 1 : 0
132
+ Topic: s.topicNameForSkillData,
133
+ Description: s.descriptionForSkillData,
134
+ OfferingType: s.offeringTypeForSkillData,
135
+ DuplicateExists: w.value > 0 ? 1 : 0
142
136
  };
143
137
  m.value = !1, console.log("payload-=====>", o);
144
- const s = await j("/InsertIntoTempSkillFile", o);
145
- console.log("data", s), T.value = "Data Submitted Successfully!", m.value = !0, P();
138
+ const t = await j("/InsertIntoTempSkillFile", o);
139
+ console.log("data", t), T.value = "Data Submitted Successfully!", m.value = !0, U();
146
140
  } catch (o) {
147
141
  if (console.error(o), m.value = !0, B.isAxiosError(o)) {
148
- const s = o;
149
- u.setError(((g = s.response) == null ? void 0 : g.data).message);
142
+ const t = o;
143
+ d.setError(((p = t.response) == null ? void 0 : p.data).message);
150
144
  } else
151
- u.setError("There was an issue while inserting data");
145
+ d.setError("There was an issue while inserting data");
152
146
  }
153
- }, P = () => {
154
- w.value = !0, setTimeout(() => {
155
- w.value = !1, G(() => {
147
+ }, U = () => {
148
+ v.value = !0, setTimeout(() => {
149
+ v.value = !1, G(() => {
156
150
  sessionStorage.removeItem("dataViewAccess");
157
151
  }), J.push({ name: "SkillData" }), sessionStorage.removeItem("dataViewAccess"), sessionStorage.removeItem("role");
158
- }, 3e3), p.value = !1;
152
+ }, 3e3), u.value = !1;
159
153
  };
160
- return (g, o) => (a(), l(A, null, [
154
+ return (p, o) => (r(), c(A, null, [
161
155
  e("nav", re, [
162
156
  q(le)
163
157
  ]),
164
158
  e("div", ce, [
165
159
  ie,
166
160
  e("div", ne, [
167
- v(e("input", {
168
- disabled: r(t).enableInputbox !== !0,
169
- class: S([r(t).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"]),
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"]),
170
164
  type: "text",
171
- "onUpdate:modelValue": o[0] || (o[0] = (s) => r(t).topicNameForSkillData = s),
165
+ "onUpdate:modelValue": o[0] || (o[0] = (t) => a(s).topicNameForSkillData = t),
172
166
  id: "topic",
173
167
  placeholder: "Write here...",
174
168
  required: ""
175
169
  }, null, 10, de), [
176
- [k, r(t).topicNameForSkillData]
170
+ [k, a(s).topicNameForSkillData]
177
171
  ])
178
172
  ]),
179
173
  ue,
180
174
  e("div", pe, [
181
- v(e("textarea", {
182
- "onUpdate:modelValue": o[1] || (o[1] = (s) => r(t).descriptionForSkillData = s),
183
- onInput: o[2] || (o[2] = (s) => p.value = !1),
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),
184
178
  type: "text",
185
179
  id: "description",
186
180
  rows: "5",
@@ -188,81 +182,77 @@ const te = { className: "flex justify-between items-center gap-4 h-14" }, se = /
188
182
  placeholder: "Write here...",
189
183
  required: ""
190
184
  }, null, 544), [
191
- [k, r(t).descriptionForSkillData]
185
+ [k, a(s).descriptionForSkillData]
192
186
  ])
193
187
  ]),
194
188
  ge,
195
189
  e("div", _e, [
196
- v(e("input", {
197
- "onUpdate:modelValue": o[3] || (o[3] = (s) => r(t).offeringTypeForSkillData = s),
190
+ y(e("input", {
191
+ "onUpdate:modelValue": o[3] || (o[3] = (t) => a(s).offeringTypeForSkillData = t),
198
192
  type: "text",
199
193
  id: "offeringType",
200
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",
201
195
  placeholder: "Write here...",
202
196
  required: ""
203
197
  }, null, 512), [
204
- [k, r(t).offeringTypeForSkillData]
198
+ [k, a(s).offeringTypeForSkillData]
205
199
  ])
206
200
  ]),
207
201
  be,
208
202
  e("div", me, [
209
203
  e("div", he, [
210
- b.value ? (a(), l("button", {
204
+ b.value ? (r(), c("button", {
211
205
  key: 0,
212
- disabled: r(t).isTopicPending === !0,
206
+ disabled: a(s).isTopicPending === !0,
213
207
  class: S([
214
- r(t).isTopicPending === !0 ? "cursor-not-allowed bg-gray-600" : "cursor-pointer bg-genpact-darkest-blue",
208
+ a(s).isTopicPending === !0 ? "cursor-not-allowed bg-gray-600" : "cursor-pointer bg-genpact-darkest-blue",
215
209
  "text-center whitespace-nowrap text-white w-40 px-4 py-2 rounded-md font-bold"
216
210
  ]),
217
211
  onClick: R,
218
212
  type: "button"
219
- }, " Duplicate Check ", 10, xe)) : (a(), l("div", fe, ve)),
220
- m.value ? (a(), l("button", {
213
+ }, " Duplicate Check ", 10, xe)) : (r(), c("div", fe, ve)),
214
+ m.value ? (r(), c("button", {
221
215
  key: 2,
222
- disabled: p.value !== !0,
216
+ disabled: u.value !== !0,
223
217
  class: S([
224
- p.value !== !0 ? "cursor-not-allowed bg-gray-600" : "cursor-pointer bg-genpact-darkest-blue",
218
+ u.value !== !0 ? "cursor-not-allowed bg-gray-600" : "cursor-pointer bg-genpact-darkest-blue",
225
219
  "text-center text-white w-40 px-10 py-2 rounded-md font-bold"
226
220
  ]),
227
221
  onClick: M,
228
222
  type: "submit"
229
- }, " Submit ", 10, we)) : (a(), l("div", ke, De))
223
+ }, " Submit ", 10, we)) : (r(), c("div", ke, De))
230
224
  ])
231
225
  ]),
232
226
  Te,
233
- r(t).isTopicPending ? (a(), l("div", Fe, Ee)) : d("", !0)
227
+ a(s).isTopicPending ? (r(), c("div", Fe, Ee)) : g("", !0)
234
228
  ]),
235
- F.value && h.value ? (a(), l("div", Ne, [
236
- h.value > 1 ? (a(), l("div", Ce, [
237
- e("div", Ve, [
238
- e("table", Ae, [
239
- Be,
240
- e("tbody", null, [
241
- (a(!0), l(A, null, H(E.value, (s, y) => (a(), l("tr", {
242
- key: y,
243
- class: "odd:bg-white even:bg-gray-100"
244
- }, [
245
- s.Topic !== r(t).topicNameForSkillData ? (a(), l("th", je, f(s.Topic || "title"), 1)) : d("", !0),
246
- s.Topic !== r(t).topicNameForSkillData ? (a(), l("td", $e, f(s.Description || "desc"), 1)) : d("", !0),
247
- s.Topic !== r(t).topicNameForSkillData ? (a(), l("td", qe, f(s.OfferingType || "Knowledge Corpus"), 1)) : d("", !0),
248
- s.Topic !== r(t).topicNameForSkillData ? (a(), l("td", Ge, f(s.new_tag), 1)) : d("", !0)
249
- ]))), 128))
250
- ])
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))
251
243
  ])
252
244
  ])
253
- ])) : (a(), l("div", Ke, [
254
- r(t).isTopicPending ? d("", !0) : (a(), l("div", Le, " No duplicate values "))
255
- ]))
256
- ])) : d("", !0),
257
- v(e("div", Re, [
258
- e("div", Me, f(T.value), 1)
245
+ ])
246
+ ])) : g("", !0),
247
+ y(e("div", Ge, [
248
+ e("div", Ke, x(T.value), 1)
259
249
  ], 512), [
260
- [O, w.value]
250
+ [O, v.value]
261
251
  ])
262
252
  ], 64));
263
253
  }
264
254
  });
265
- const Oe = /* @__PURE__ */ ee(Pe, [["__scopeId", "data-v-7ea37bc3"]]);
255
+ const ze = /* @__PURE__ */ ee(Le, [["__scopeId", "data-v-18de1cf9"]]);
266
256
  export {
267
- Oe as default
257
+ ze as default
268
258
  };