@genpact/genome.mfe.mgtwin-app 1.1.84-alpha → 1.1.86-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.
@@ -0,0 +1,171 @@
1
+ import { o as r, c as i, a as e, d as k, J as T, b as S, e as c, u as F, j as E, h as u, p as _, v as f, q as C, F as w, r as B, t as b, B as N, C as $ } from "./main-8cfd8acd.mjs";
2
+ import { _ as j, p as I, a as V } from "./loadernew-580b8799.mjs";
3
+ import { _ as W } from "./_plugin-vue_export-helper-dad06003.mjs";
4
+ function q(n, s) {
5
+ return r(), i("svg", {
6
+ xmlns: "http://www.w3.org/2000/svg",
7
+ viewBox: "0 0 24 24",
8
+ fill: "currentColor",
9
+ "aria-hidden": "true"
10
+ }, [
11
+ e("path", {
12
+ "fill-rule": "evenodd",
13
+ d: "M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25zm-4.28 9.22a.75.75 0 000 1.06l3 3a.75.75 0 101.06-1.06l-1.72-1.72h5.69a.75.75 0 000-1.5h-5.69l1.72-1.72a.75.75 0 00-1.06-1.06l-3 3z",
14
+ "clip-rule": "evenodd"
15
+ })
16
+ ]);
17
+ }
18
+ const z = { className: "flex justify-between items-center gap-4 h-14" }, G = /* @__PURE__ */ e("div", { class: "font-bold text-xl" }, "Back", -1), O = /* @__PURE__ */ e("div", { class: "text-white font-bold text-xl" }, "AI Guru Edit Skill Data", -1), U = /* @__PURE__ */ e("img", {
19
+ class: "w-36",
20
+ src: j
21
+ }, null, -1), A = /* @__PURE__ */ k({
22
+ __name: "HeaderForEditSkillData",
23
+ setup(n) {
24
+ const s = T(), g = () => {
25
+ s.push({ name: "SkillData" });
26
+ };
27
+ return (d, x) => (r(), i("div", z, [
28
+ e("div", {
29
+ onClick: g,
30
+ class: "flex justify-start items-center text-white cursor-pointer"
31
+ }, [
32
+ S(c(q), { class: "w-9 h-9 mr-1" }),
33
+ G
34
+ ]),
35
+ O,
36
+ U
37
+ ]));
38
+ }
39
+ }), l = (n) => (N("data-v-67604cd1"), n = n(), $(), n), L = { class: "bg-genpact-blue-box w-full px-5 mb-6" }, M = { class: "grid grid-cols-5 gap-8 p-10 items-stretch" }, R = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "col-span-1 text-right" }, [
40
+ /* @__PURE__ */ e("label", {
41
+ for: "topic",
42
+ class: "block text-lg font-bold text-gray-900 mb-1 italic"
43
+ }, "Topic Name")
44
+ ], -1)), H = { class: "col-span-4" }, J = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "col-span-1 text-right" }, [
45
+ /* @__PURE__ */ e("label", {
46
+ for: "description",
47
+ class: "block text-lg font-bold text-gray-900 mb-1 italic"
48
+ }, "Description")
49
+ ], -1)), K = { class: "col-span-4" }, P = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "col-span-1 text-right" }, [
50
+ /* @__PURE__ */ e("label", {
51
+ for: "offeringType",
52
+ class: "block text-lg font-bold text-gray-900 mb-1 italic"
53
+ }, "Offering Type")
54
+ ], -1)), Q = { class: "col-span-4" }, X = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "col-span-1" }, null, -1)), Y = { class: "col-span-4" }, Z = { class: "flex justify-between items-center" }, ee = {
55
+ key: 1,
56
+ class: "flex justify-center items-center text-center bg-genpact-darkest-blue text-white rounded-md w-40"
57
+ }, te = /* @__PURE__ */ l(() => /* @__PURE__ */ e("img", {
58
+ class: "w-10 h-10 block loadercss",
59
+ src: V,
60
+ alt: "Loader Gif"
61
+ }, null, -1)), se = [
62
+ te
63
+ ], oe = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", null, null, -1)), le = /* @__PURE__ */ l(() => /* @__PURE__ */ e("div", { class: "bg-genpact-darkest-blue text-center text-white w-40 px-10 py-2 rounded-md font-bold" }, " Submit ", -1)), ae = { class: "px-16 py-6" }, ce = { class: "w-full relative overflow-x-auto rounded-lg border border-black max-h-[550px]" }, re = { class: "table-auto w-full text-sm text-left rtl:text-right rounded-lg" }, ie = /* @__PURE__ */ l(() => /* @__PURE__ */ e("thead", { class: "text-sm text-center md:text-base text-gray-700 uppercase bg-gray-200 top-0 sticky z-10" }, [
64
+ /* @__PURE__ */ e("tr", null, [
65
+ /* @__PURE__ */ e("th", {
66
+ scope: "col",
67
+ class: "px-6 py-3"
68
+ }, "Topic name"),
69
+ /* @__PURE__ */ e("th", {
70
+ scope: "col",
71
+ class: "px-6 py-3"
72
+ }, "Description"),
73
+ /* @__PURE__ */ e("th", {
74
+ scope: "col",
75
+ class: "px-6 py-3"
76
+ }, "OfferingType")
77
+ ])
78
+ ], -1)), ne = { class: "h-28" }, de = { class: "px-3 py-4 font-medium text-gray-900 h-28" }, pe = { class: "px-3 py-4 h-28" }, ue = { class: "px-3 py-4 h-28" }, _e = /* @__PURE__ */ k({
79
+ __name: "EditSkillData",
80
+ setup(n) {
81
+ const s = F(), g = E(), d = u(!0), x = u(""), m = u(!1), y = u(), v = u([]), D = async () => {
82
+ var h, o, t;
83
+ try {
84
+ const p = {
85
+ question: s.descriptionForSkillData
86
+ };
87
+ console.log("question", x.value), d.value = !1;
88
+ const a = await I("/SearchSkillTags", p);
89
+ y.value = ((h = a == null ? void 0 : a.data) == null ? void 0 : h.body) || [], v.value = y.value, console.log("length", (t = (o = a == null ? void 0 : a.data) == null ? void 0 : o.body) == null ? void 0 : t.length), console.log("data", a), d.value = !0, m.value = !0;
90
+ } catch (p) {
91
+ console.log(p), d.value = !0, g.setError("We ran into an issue while fetching duplicate values.");
92
+ }
93
+ };
94
+ return (h, o) => (r(), i(w, null, [
95
+ e("nav", L, [
96
+ S(A)
97
+ ]),
98
+ e("div", M, [
99
+ R,
100
+ e("div", H, [
101
+ _(e("input", {
102
+ "onUpdate:modelValue": o[0] || (o[0] = (t) => c(s).topicNameForSkillData = t),
103
+ id: "topic",
104
+ 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",
105
+ placeholder: "Write here..."
106
+ }, null, 512), [
107
+ [f, c(s).topicNameForSkillData]
108
+ ])
109
+ ]),
110
+ J,
111
+ e("div", K, [
112
+ _(e("textarea", {
113
+ "onUpdate:modelValue": o[1] || (o[1] = (t) => c(s).descriptionForSkillData = t),
114
+ id: "description",
115
+ rows: "5",
116
+ 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",
117
+ placeholder: "Write here..."
118
+ }, null, 512), [
119
+ [f, c(s).descriptionForSkillData]
120
+ ])
121
+ ]),
122
+ P,
123
+ e("div", Q, [
124
+ _(e("input", {
125
+ "onUpdate:modelValue": o[2] || (o[2] = (t) => c(s).offeringTypeForSkillData = t),
126
+ id: "offeringType",
127
+ 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",
128
+ placeholder: "Write here..."
129
+ }, null, 512), [
130
+ [f, c(s).offeringTypeForSkillData]
131
+ ])
132
+ ]),
133
+ X,
134
+ e("div", Y, [
135
+ e("div", Z, [
136
+ d.value ? (r(), i("div", {
137
+ key: 0,
138
+ onClick: D,
139
+ class: "bg-genpact-darkest-blue text-center whitespace-nowrap text-white w-40 px-4 py-2 rounded-md font-bold cursor-pointer"
140
+ }, " Duplicate Check ")) : (r(), i("div", ee, se)),
141
+ oe,
142
+ le
143
+ ])
144
+ ])
145
+ ]),
146
+ _(e("div", ae, [
147
+ e("div", ce, [
148
+ e("table", re, [
149
+ ie,
150
+ e("tbody", ne, [
151
+ (r(!0), i(w, null, B(v.value, (t, p) => (r(), i("tr", {
152
+ key: p,
153
+ class: "odd:bg-white even:bg-gray-100"
154
+ }, [
155
+ e("th", de, b(t.Topic || "title"), 1),
156
+ e("td", pe, b(t.Description || "desc"), 1),
157
+ e("td", ue, b(t.OfferingType || "offeringType"), 1)
158
+ ]))), 128))
159
+ ])
160
+ ])
161
+ ])
162
+ ], 512), [
163
+ [C, m.value]
164
+ ])
165
+ ], 64));
166
+ }
167
+ });
168
+ const be = /* @__PURE__ */ W(_e, [["__scopeId", "data-v-67604cd1"]]);
169
+ export {
170
+ be as default
171
+ };