@piveau/piveau-hub-ui-modules 4.6.69 → 4.6.72

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,324 +1,327 @@
1
- import { computed as R, ref as u, getCurrentInstance as at, openBlock as r, createElementBlock as v, createElementVNode as l, createTextVNode as e, toDisplayString as i, unref as n, createCommentVNode as M, normalizeClass as k, Fragment as K, renderList as G, withDirectives as x, vModelText as N, isRef as H } from "vue";
2
- import { useRouter as rt, useRoute as vt } from "vue-router";
3
- import { useStore as dt, mapActions as pt } from "vuex";
1
+ import { computed as T, ref as i, getCurrentInstance as rt, openBlock as r, createElementBlock as d, createElementVNode as e, createTextVNode as l, toDisplayString as u, unref as n, createCommentVNode as M, normalizeClass as k, withDirectives as x, isRef as H, vModelText as E, Fragment as K, renderList as G } from "vue";
2
+ import { useRouter as dt, useRoute as vt } from "vue-router";
3
+ import { useStore as pt, mapActions as mt } from "vuex";
4
4
  import z from "axios";
5
5
  import "./CatalogueMQA.vue2.mjs";
6
- import mt from "../_virtual/_plugin-vue_export-helper.mjs";
7
- const ft = { class: "container mb-3" }, bt = { class: "debug" }, gt = { key: 0 }, yt = { key: 1 }, kt = { key: 0 }, wt = { class: "mqaWrapper" }, Ct = { key: 0 }, Mt = ["onUpdate:modelValue", "onInput"], $t = ["onClick"], St = ["onClick"], At = {
6
+ import ft from "../_virtual/_plugin-vue_export-helper.mjs";
7
+ const gt = { class: "container mb-3" }, bt = { class: "debug" }, yt = { key: 0 }, kt = { key: 1 }, wt = { key: 0 }, Ct = { class: "mqaWrapper" }, Mt = { class: "w-50 mt-3" }, $t = { class: "mqaWrapper" }, At = { class: "d-flex mt-3" }, St = { class: "mr-3 my-3" }, qt = ["disabled", "onClick"], Vt = { class: "my-3" }, It = ["disabled"], Bt = { class: "caretWrap" }, Dt = { class: "mqaWrapper" }, Ut = { key: 0 }, xt = ["onUpdate:modelValue", "onInput"], Et = ["onClick"], Nt = ["onClick"], Wt = {
8
8
  key: 0,
9
9
  class: "errormsg"
10
- }, It = { class: "d-flex mt-3" }, Dt = {
10
+ }, Qt = { class: "d-flex mt-3" }, Rt = {
11
11
  key: 1,
12
12
  class: "errormsg"
13
- }, Vt = { class: "mqaWrapper" }, Bt = { class: "d-flex mt-3" }, Ut = { class: "mr-3 my-3" }, qt = ["disabled", "onClick"], xt = { class: "my-3" }, Nt = ["disabled"], Wt = { class: "caretWrap" }, Et = { class: "mqaWrapper" }, Tt = { class: "w-50 mt-3" }, Pt = { class: "actionWrapper" }, Rt = {
13
+ }, Tt = { class: "actionWrapper" }, zt = {
14
14
  __name: "CatalogueMQA",
15
- setup(zt) {
16
- const W = dt(), E = rt();
17
- R(() => W.getters["auth/getUserDrafts"]);
18
- const X = R(() => W.getters["auth/getUserData"]), B = R(() => X.value.rtpToken);
19
- pt("auth", {
15
+ setup(Pt) {
16
+ const N = pt(), W = dt();
17
+ T(() => N.getters["auth/getUserDrafts"]);
18
+ const X = T(() => N.getters["auth/getUserData"]), D = T(() => X.value.rtpToken);
19
+ mt("auth", {
20
20
  updateUserData: "updateUserData"
21
21
  });
22
- const F = (s) => {
23
- W.dispatch("snackbar/showSnackbar", s);
22
+ const P = (s) => {
23
+ N.dispatch("snackbar/showSnackbar", s);
24
24
  }, U = () => {
25
- F({
25
+ P({
26
26
  message: "Saved Successfully",
27
27
  variant: "success"
28
28
  });
29
- }, Y = vt();
30
- let y = u(!1), f = u(!1), Z = u(null), D = u("Activate"), T = u(!1), d = u(!1), b = u(), h = ["Mo", "Tue", "We", "Th", "Fr", "Sa", "Su"], p = u(1), A = u(!1), w = u(0), $ = u(""), g = u(""), S = u(null);
31
- const q = Y.params.id, Q = at(), P = Q.appContext.app.config.globalProperties.$env.api.notificationBaseUrl;
32
- Q.appContext.app.config.globalProperties.$env.api.apiKey;
33
- const L = (s) => {
34
- f.value && (S.value = s, g.value = S);
35
- }, c = () => {
36
- f.value = !0, y.value = !1, S.value = g.value;
29
+ }, F = vt();
30
+ let y = i(!1), f = i(!1), Z = i(null), V = i("Activate"), Q = i(!1), v = i(!1), g = i(), h = ["Mo", "Tue", "We", "Th", "Fr", "Sa", "Su"], p = i(1), S = i(!1), w = i(0), $ = i(""), b = i(""), A = i(null);
31
+ const I = F.params.id, L = rt(), R = L.appContext.app.config.globalProperties.$env.api.notificationBaseUrl;
32
+ L.appContext.app.config.globalProperties.$env.api.apiKey;
33
+ const c = () => {
34
+ const s = "https://data.europa.eu", t = F.query.locale || "en", o = `${s}/mqa/catalogues/${I}?locale=${t}`;
35
+ window.open(o, "_blank");
36
+ }, j = (s) => {
37
+ f.value && (A.value = s, b.value = A);
37
38
  }, _ = () => {
38
- f.value = !1, y.value = !0, S.value = g.value;
39
- }, C = u({}), j = (s) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s);
40
- let m = u({ mail: "", isValid: !0 }), I = u({});
41
- const tt = async () => {
39
+ f.value = !0, y.value = !1, A.value = b.value;
40
+ }, tt = () => {
41
+ f.value = !1, y.value = !0, A.value = b.value;
42
+ }, C = i({}), J = (s) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s);
43
+ let m = i({ mail: "", isValid: !0 }), q = i({});
44
+ const et = async () => {
42
45
  const s = {
43
46
  method: "get",
44
- url: `${P}/catalogue/${q}/setting`,
47
+ url: `${R}/catalogue/${I}/setting`,
45
48
  headers: {
46
- Authorization: `Bearer ${B.value}`
49
+ Authorization: `Bearer ${D.value}`
47
50
  }
48
51
  };
49
52
  try {
50
53
  const t = await z.request(s);
51
- C.value = t.data, C.value.activeStatus === !0 && (d.value = !0, D.value = "Deactivate"), C.value.activeStatus === !1 && (d.value = !1, D.value = "Activate"), b.value = C.value.receiverEmailList, $.value = C.value.frequency.unit, g.value = C.value.frequency.value, w.value = C.value.threshold, $.value === "week" ? (f.value = !0, y.value = !1, S.value = g.value) : $.value === "month" && (f.value = !1, y.value = !0, p.value = g.value), console.log("Response:", t);
54
+ C.value = t.data, C.value.activeStatus === !0 && (v.value = !0, V.value = "Deactivate"), C.value.activeStatus === !1 && (v.value = !1, V.value = "Activate"), g.value = C.value.receiverEmailList, $.value = C.value.frequency.unit, b.value = C.value.frequency.value, w.value = C.value.threshold, $.value === "week" ? (f.value = !0, y.value = !1, A.value = b.value) : $.value === "month" && (f.value = !1, y.value = !0, p.value = b.value), console.log("Response:", t);
52
55
  } catch (t) {
53
56
  console.log("Full error:", t);
54
57
  }
55
58
  }, lt = async () => {
56
- f.value === !0 ? ($.value = "week", g.value = S.value) : y.value === !0 && ($.value = "month", g.value = p.value);
59
+ f.value === !0 ? ($.value = "week", b.value = A.value) : y.value === !0 && ($.value = "month", b.value = p.value);
57
60
  const s = {
58
61
  method: "post",
59
- url: `${P}/catalogue/${q}/setting`,
62
+ url: `${R}/catalogue/${I}/setting`,
60
63
  headers: {
61
- Authorization: `Bearer ${B.value}`,
64
+ Authorization: `Bearer ${D.value}`,
62
65
  "Content-Type": "application/json"
63
66
  },
64
67
  withCredentials: !0,
65
68
  data: JSON.stringify({
66
- receiverEmailList: b.value,
69
+ receiverEmailList: g.value,
67
70
  threshold: Number(w.value),
68
71
  frequency: {
69
72
  unit: $.value,
70
- value: g.value
73
+ value: b.value
71
74
  },
72
75
  activeStatus: !0
73
76
  })
74
77
  };
75
78
  try {
76
79
  const t = await z.request(s);
77
- return console.log("Settings updated:", t.data), U(), E.push({ name: "DataProviderInterface-UserCatalogues" }), t.data;
80
+ return console.log("Settings updated:", t.data), U(), W.push({ name: "DataProviderInterface-UserCatalogues" }), t.data;
78
81
  } catch (t) {
79
82
  throw U(), console.log("Error updating settings:", t), t;
80
83
  }
81
84
  };
82
- tt();
83
- const J = async () => {
85
+ et();
86
+ const O = async () => {
84
87
  const s = {
85
88
  method: "post",
86
- url: `${P}/catalogue/${q}/setting`,
89
+ url: `${R}/catalogue/${I}/setting`,
87
90
  headers: {
88
- Authorization: `Bearer ${B.value}`,
91
+ Authorization: `Bearer ${D.value}`,
89
92
  "Content-Type": "application/json"
90
93
  },
91
94
  withCredentials: !0,
92
95
  data: JSON.stringify({
93
- activeStatus: d.value
96
+ activeStatus: v.value
94
97
  })
95
98
  };
96
99
  try {
97
100
  const t = await z.request(s);
98
- return console.log("Settings updated:", t.data), U(), d.value || E.push({ name: "DataProviderInterface-UserCatalogues" }), t.data;
101
+ return console.log("Settings updated:", t.data), U(), v.value || W.push({ name: "DataProviderInterface-UserCatalogues" }), t.data;
99
102
  } catch (t) {
100
103
  throw U(), console.log("Error updating settings:", t), t;
101
104
  }
102
- }, et = () => {
103
- A.value = !0, F({
105
+ }, nt = () => {
106
+ S.value = !0, P({
104
107
  message: "Email added successfully.",
105
108
  variant: "success"
106
109
  });
107
- }, nt = (s) => {
108
- const t = b.value[s].trim();
109
- j(t) ? (A.value = !1, delete I.value[s]) : I.value[s] = "*Invalid email format";
110
110
  }, st = (s) => {
111
- b.value.splice(s, 1);
112
- }, O = (s) => {
113
- s === "up" && p.value < 28 ? (p.value > 8 && (T.value = !0), p.value++) : p.value > 1 && (p.value < 11 && (T.value = !1), p.value--);
114
- }, ot = () => {
111
+ const t = g.value[s].trim();
112
+ J(t) ? (S.value = !1, delete q.value[s]) : q.value[s] = "*Invalid email format";
113
+ }, ot = (s) => {
114
+ g.value.splice(s, 1);
115
+ }, Y = (s) => {
116
+ s === "up" && p.value < 28 ? (p.value > 8 && (Q.value = !0), p.value++) : p.value > 1 && (p.value < 11 && (Q.value = !1), p.value--);
117
+ }, it = () => {
115
118
  if (m.value.mail.trim() === "") {
116
119
  m.value.isValid = !1;
117
120
  return;
118
121
  }
119
- j(m.value.mail) ? (b.value.push(m.value.mail), m.value.mail = "", m.value.isValid = !0) : m.value.isValid = !1;
122
+ J(m.value.mail) ? (g.value.push(m.value.mail), m.value.mail = "", m.value.isValid = !0) : m.value.isValid = !1;
120
123
  }, ut = () => {
121
- d.value ? (d.value = !1, D.value = "Activate", J()) : (d.value = !0, D.value = "Deactivate", J());
122
- }, it = () => {
123
- E.push({ name: "DataProviderInterface-UserCatalogues" });
124
+ v.value ? (v.value = !1, V.value = "Activate", O()) : (v.value = !0, V.value = "Deactivate", O());
125
+ }, at = () => {
126
+ W.push({ name: "DataProviderInterface-UserCatalogues" });
124
127
  };
125
- return (s, t) => (r(), v("div", ft, [
126
- l("div", null, [
127
- l("div", null, [
128
- l("div", bt, [
129
- t[12] || (t[12] = l("strong", null, " API object:", -1)),
130
- t[13] || (t[13] = e()),
131
- t[14] || (t[14] = l("br", null, null, -1)),
132
- t[15] || (t[15] = l("br", null, null, -1)),
133
- t[16] || (t[16] = e()),
134
- l("textarea", null, " " + i(B.value) + " ", 1),
135
- t[17] || (t[17] = e()),
136
- t[18] || (t[18] = l("hr", null, null, -1)),
137
- e(" " + i(C.value) + " ", 1),
138
- t[19] || (t[19] = l("br", null, null, -1)),
139
- t[20] || (t[20] = e(" --- ")),
140
- t[21] || (t[21] = l("br", null, null, -1)),
141
- e(" " + i(n(b)) + " ", 1),
142
- t[22] || (t[22] = l("br", null, null, -1)),
143
- t[23] || (t[23] = e("---")),
144
- t[24] || (t[24] = l("br", null, null, -1)),
145
- t[25] || (t[25] = e()),
146
- t[26] || (t[26] = l("strong", null, "Fequency:", -1)),
147
- t[27] || (t[27] = e()),
148
- t[28] || (t[28] = l("br", null, null, -1)),
149
- e(`
150
- weekly: ` + i(n(f)), 1),
151
- t[29] || (t[29] = l("br", null, null, -1)),
152
- e(`
153
- monthly: ` + i(n(y)) + " ", 1),
154
- t[30] || (t[30] = l("br", null, null, -1)),
155
- t[31] || (t[31] = e()),
156
- t[32] || (t[32] = l("p", null, null, -1)),
157
- e(`
158
- unit: ` + i(n($)) + " ", 1),
159
- t[33] || (t[33] = l("br", null, null, -1)),
160
- e(`
161
- value: ` + i(n(g)) + " ", 1),
162
- t[34] || (t[34] = l("br", null, null, -1)),
163
- t[35] || (t[35] = e("---")),
164
- t[36] || (t[36] = l("br", null, null, -1)),
165
- e(`
166
- threshold: ` + i(n(w)), 1)
128
+ return (s, t) => (r(), d("div", gt, [
129
+ e("div", null, [
130
+ e("div", null, [
131
+ e("div", bt, [
132
+ t[13] || (t[13] = e("strong", null, " API object:", -1)),
133
+ t[14] || (t[14] = l()),
134
+ t[15] || (t[15] = e("br", null, null, -1)),
135
+ t[16] || (t[16] = e("br", null, null, -1)),
136
+ t[17] || (t[17] = l()),
137
+ e("textarea", null, " " + u(D.value) + " ", 1),
138
+ t[18] || (t[18] = l()),
139
+ t[19] || (t[19] = e("hr", null, null, -1)),
140
+ l(" " + u(C.value) + " ", 1),
141
+ t[20] || (t[20] = e("br", null, null, -1)),
142
+ t[21] || (t[21] = l(" --- ")),
143
+ t[22] || (t[22] = e("br", null, null, -1)),
144
+ l(" " + u(n(g)) + " ", 1),
145
+ t[23] || (t[23] = e("br", null, null, -1)),
146
+ t[24] || (t[24] = l("---")),
147
+ t[25] || (t[25] = e("br", null, null, -1)),
148
+ t[26] || (t[26] = l()),
149
+ t[27] || (t[27] = e("strong", null, "Fequency:", -1)),
150
+ t[28] || (t[28] = l()),
151
+ t[29] || (t[29] = e("br", null, null, -1)),
152
+ l(`
153
+ weekly: ` + u(n(f)), 1),
154
+ t[30] || (t[30] = e("br", null, null, -1)),
155
+ l(`
156
+ monthly: ` + u(n(y)) + " ", 1),
157
+ t[31] || (t[31] = e("br", null, null, -1)),
158
+ t[32] || (t[32] = l()),
159
+ t[33] || (t[33] = e("p", null, null, -1)),
160
+ l(`
161
+ unit: ` + u(n($)) + " ", 1),
162
+ t[34] || (t[34] = e("br", null, null, -1)),
163
+ l(`
164
+ value: ` + u(n(b)) + " ", 1),
165
+ t[35] || (t[35] = e("br", null, null, -1)),
166
+ t[36] || (t[36] = l("---")),
167
+ t[37] || (t[37] = e("br", null, null, -1)),
168
+ l(`
169
+ threshold: ` + u(n(w)), 1)
167
170
  ]),
168
- t[43] || (t[43] = e()),
169
- t[44] || (t[44] = l("h1", null, "MQA notification settings", -1)),
170
- t[45] || (t[45] = e()),
171
- l("p", null, [
172
- t[37] || (t[37] = e(`Configuration for
171
+ t[44] || (t[44] = l()),
172
+ t[45] || (t[45] = e("h1", null, "MQA notification settings", -1)),
173
+ t[46] || (t[46] = l()),
174
+ e("p", null, [
175
+ t[38] || (t[38] = l(`Configuration for
173
176
 
174
177
  `)),
175
- l("strong", null, i(n(q)), 1)
178
+ e("strong", null, u(n(I)), 1)
176
179
  ]),
177
- t[46] || (t[46] = e()),
178
- l("p", null, [
179
- t[39] || (t[39] = e("For this Catalogue the ")),
180
- t[40] || (t[40] = l("b", null, "MQA Rating Checks ", -1)),
181
- t[41] || (t[41] = e("are currently ")),
182
- l("b", null, [
183
- n(d) ? M("", !0) : (r(), v("span", gt, "deactivated")),
184
- t[38] || (t[38] = e()),
185
- n(d) ? (r(), v("span", yt, "activated")) : M("", !0)
180
+ t[47] || (t[47] = l()),
181
+ e("p", null, [
182
+ t[40] || (t[40] = l("For this Catalogue the ")),
183
+ t[41] || (t[41] = e("b", null, "MQA Rating Checks ", -1)),
184
+ t[42] || (t[42] = l("are currently ")),
185
+ e("b", null, [
186
+ n(v) ? M("", !0) : (r(), d("span", yt, "deactivated")),
187
+ t[39] || (t[39] = l()),
188
+ n(v) ? (r(), d("span", kt, "activated")) : M("", !0)
186
189
  ]),
187
- t[42] || (t[42] = e("."))
190
+ t[43] || (t[43] = l("."))
188
191
  ])
189
192
  ]),
190
- t[47] || (t[47] = e()),
191
- l("button", {
193
+ t[49] || (t[49] = l()),
194
+ e("button", {
192
195
  type: "button",
193
- class: k({ "btn btn-primary mb-5": !n(d), "btn btn-secondary": n(d) }),
196
+ class: k({ "btn btn-primary mb-5": !n(v), "btn btn-secondary": n(v) }),
194
197
  onClick: t[0] || (t[0] = (o) => ut())
195
- }, i(n(D)), 3)
196
- ]),
197
- t[87] || (t[87] = e()),
198
- n(d) ? (r(), v("div", kt, [
199
- l("div", wt, [
200
- t[55] || (t[55] = l("h3", null, "Recipients Mail", -1)),
201
- t[56] || (t[56] = e()),
202
- t[57] || (t[57] = l("span", null, "Add and edit mail addresses for recieving the MQA report", -1)),
203
- t[58] || (t[58] = e()),
204
- n(b).length !== 0 ? (r(), v("table", {
205
- key: 0,
206
- class: "mt-4",
207
- ref_key: "mailButtonWrap",
208
- ref: Z
198
+ }, u(n(V)), 3),
199
+ t[50] || (t[50] = l()),
200
+ e("button", {
201
+ type: "button",
202
+ class: "btn btn-action mb-5",
203
+ onClick: t[1] || (t[1] = (o) => c())
204
+ }, t[48] || (t[48] = [
205
+ e("span", { class: "mr-1" }, " MQA report ", -1),
206
+ l(),
207
+ e("svg", {
208
+ xmlns: "http://www.w3.org/2000/svg",
209
+ width: "16",
210
+ height: "16",
211
+ fill: "currentColor",
212
+ class: "bi bi-box-arrow-up-right mb-1",
213
+ viewBox: "0 0 16 16"
209
214
  }, [
210
- t[52] || (t[52] = l("tr", null, [
211
- l("th", null, "Mail")
212
- ], -1)),
213
- t[53] || (t[53] = e()),
214
- (r(!0), v(K, null, G(n(b), (o, a) => (r(), v("tr", {
215
- class: "mailItems",
216
- key: a
217
- }, [
218
- l("td", null, [
219
- n(A) ? M("", !0) : (r(), v("span", Ct, i(o), 1)),
220
- t[49] || (t[49] = e()),
221
- n(A) ? x((r(), v("input", {
222
- key: 1,
223
- type: "text",
224
- "onUpdate:modelValue": (V) => n(b)[a] = V,
225
- class: k(["mail-input", { invalidNewMail: n(I)[a] }]),
226
- onInput: (V) => n(I)[a] = ""
227
- }, null, 42, Mt)), [
228
- [N, n(b)[a]]
229
- ]) : M("", !0),
230
- t[50] || (t[50] = e()),
231
- l("div", null, [
232
- l("button", {
233
- type: "button",
234
- class: "btn btn-simple",
235
- onClick: (V) => n(A) ? nt(a) : et()
236
- }, i(n(A) ? "Save" : "Edit"), 9, $t),
237
- t[48] || (t[48] = e()),
238
- l("button", {
239
- type: "button",
240
- class: "btn btn-simple",
241
- onClick: (V) => st(a)
242
- }, "Delete", 8, St)
243
- ])
215
+ e("path", {
216
+ "fill-rule": "evenodd",
217
+ d: "M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5"
218
+ }),
219
+ l(),
220
+ e("path", {
221
+ "fill-rule": "evenodd",
222
+ d: "M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z"
223
+ })
224
+ ], -1)
225
+ ]))
226
+ ]),
227
+ t[90] || (t[90] = l()),
228
+ n(v) ? (r(), d("div", wt, [
229
+ e("div", Ct, [
230
+ t[56] || (t[56] = e("h3", null, "Notification threshold", -1)),
231
+ t[57] || (t[57] = l()),
232
+ t[58] || (t[58] = e("span", null, [
233
+ l(`The slider sets a threshold value. If your catalogue’s MQA rating decreases by a value higher than
234
+ this threshold, this is notified to the email recipients you define at the end of this page. You can
235
+ adjust the frequency of the rating checks below. `),
236
+ e("p"),
237
+ l(),
238
+ e("strong", null, "Example:"),
239
+ l(` You setup the MQA checking to be done weekly and the threshold to -10;
240
+ your current catalogue MQA rating is 200; if your rating drops to 180, on the next weekly rating
241
+ schedule the new value (180) is compared with the previous one (200) and, as the difference (-20) is
242
+ higher than the setup notification threshold (-10), the listed recipients are notified by
243
+ email.`)
244
+ ], -1)),
245
+ t[59] || (t[59] = l()),
246
+ e("div", Mt, [
247
+ t[53] || (t[53] = e("div", { class: "d-flex justify-content-between" }, [
248
+ e("span", null, [
249
+ e("b", null, "-1")
244
250
  ]),
245
- t[51] || (t[51] = e()),
246
- n(I)[a] ? (r(), v("span", At, i(n(I)[a]), 1)) : M("", !0)
247
- ]))), 128))
248
- ], 512)) : M("", !0),
249
- t[59] || (t[59] = e()),
250
- l("div", It, [
251
- x(l("input", {
252
- type: "text",
253
- "onUpdate:modelValue": t[1] || (t[1] = (o) => n(m).mail = o),
254
- onInput: t[2] || (t[2] = (o) => n(m).isValid = !0),
255
- class: k([{ invalidNewMail: !n(m).isValid }, "mail"]),
256
- placeholder: "Enter email address"
257
- }, null, 34), [
258
- [N, n(m).mail]
251
+ l(),
252
+ e("span", null, [
253
+ e("b", null, "-400")
254
+ ])
255
+ ], -1)),
256
+ t[54] || (t[54] = l()),
257
+ x(e("input", {
258
+ type: "range",
259
+ "onUpdate:modelValue": t[2] || (t[2] = (o) => H(w) ? w.value = o : w = o),
260
+ min: "0",
261
+ max: "400"
262
+ }, null, 512), [
263
+ [E, n(w)]
259
264
  ]),
260
- t[54] || (t[54] = e()),
261
- l("button", {
262
- type: "button",
263
- class: "btn btn-simple mx-3",
264
- onClick: t[3] || (t[3] = (o) => ot())
265
- }, "+ Add Mail")
266
- ]),
267
- t[60] || (t[60] = e()),
268
- n(m).isValid ? M("", !0) : (r(), v("span", Dt, "*Invalid email format"))
265
+ t[55] || (t[55] = l()),
266
+ e("p", null, [
267
+ t[51] || (t[51] = l("Decrease higher than ")),
268
+ e("b", null, "-" + u(n(w)), 1),
269
+ t[52] || (t[52] = l(" Points"))
270
+ ])
271
+ ])
269
272
  ]),
270
- t[84] || (t[84] = e()),
271
- l("div", Vt, [
272
- t[70] || (t[70] = l("h3", null, "Frequency of Rating Checks", -1)),
273
- t[71] || (t[71] = e()),
274
- t[72] || (t[72] = l("span", null, "Configure the frequency of the MQA rating checks.", -1)),
275
- t[73] || (t[73] = e()),
276
- l("div", Bt, [
277
- l("div", Ut, [
278
- l("button", {
273
+ t[87] || (t[87] = l()),
274
+ e("div", $t, [
275
+ t[69] || (t[69] = e("h3", null, "Frequency of Rating Checks", -1)),
276
+ t[70] || (t[70] = l()),
277
+ t[71] || (t[71] = e("span", null, "Configure the frequency of the MQA rating checks.", -1)),
278
+ t[72] || (t[72] = l()),
279
+ e("div", At, [
280
+ e("div", St, [
281
+ e("button", {
279
282
  type: "button",
280
283
  class: k(["btn btn-simple", { activeChoiceButton: n(f) }]),
281
- onClick: t[4] || (t[4] = (o) => c())
284
+ onClick: t[3] || (t[3] = (o) => _())
282
285
  }, "Weekly", 2),
283
- t[61] || (t[61] = e()),
284
- l("div", {
286
+ t[60] || (t[60] = l()),
287
+ e("div", {
285
288
  class: k(["weekdays", { blur: !n(f) }])
286
289
  }, [
287
- (r(!0), v(K, null, G(n(h), (o, a) => (r(), v("span", { key: a }, [
288
- l("button", {
290
+ (r(!0), d(K, null, G(n(h), (o, a) => (r(), d("span", { key: a }, [
291
+ e("button", {
289
292
  disabled: !n(f),
290
- class: k(["dayButtons", { activeItem: n(S) === a }]),
291
- onClick: (V) => L(a)
292
- }, i(o), 11, qt)
293
+ class: k(["dayButtons", { activeItem: n(A) === a }]),
294
+ onClick: (B) => j(a)
295
+ }, u(o), 11, qt)
293
296
  ]))), 128))
294
297
  ], 2)
295
298
  ]),
296
- t[69] || (t[69] = e()),
297
- l("div", xt, [
298
- l("button", {
299
+ t[68] || (t[68] = l()),
300
+ e("div", Vt, [
301
+ e("button", {
299
302
  type: "button",
300
303
  class: k([{ activeChoiceButton: n(y) }, "btn btn-simple"]),
301
- onClick: t[5] || (t[5] = (o) => _())
304
+ onClick: t[4] || (t[4] = (o) => tt())
302
305
  }, "Monthly", 2),
303
- t[68] || (t[68] = e()),
304
- l("div", {
306
+ t[67] || (t[67] = l()),
307
+ e("div", {
305
308
  class: k(["d-flex daypicker my-3", { blur: !n(y) }])
306
309
  }, [
307
- x(l("input", {
308
- "onUpdate:modelValue": t[6] || (t[6] = (o) => H(p) ? p.value = o : p = o),
309
- onInput: t[7] || (t[7] = (o) => L(s.index)),
310
- class: k({ dynamicWidth: n(T) }),
310
+ x(e("input", {
311
+ "onUpdate:modelValue": t[5] || (t[5] = (o) => H(p) ? p.value = o : p = o),
312
+ onInput: t[6] || (t[6] = (o) => j(s.index)),
313
+ class: k({ dynamicWidth: n(Q) }),
311
314
  disabled: !n(y)
312
- }, null, 42, Nt), [
313
- [N, n(p)]
315
+ }, null, 42, It), [
316
+ [E, n(p)]
314
317
  ]),
315
- t[65] || (t[65] = e()),
316
- l("div", Wt, [
317
- l("button", {
318
- onClick: t[8] || (t[8] = (o) => O("up")),
318
+ t[64] || (t[64] = l()),
319
+ e("div", Bt, [
320
+ e("button", {
321
+ onClick: t[7] || (t[7] = (o) => Y("up")),
319
322
  class: "caretButtons ml-1"
320
- }, t[62] || (t[62] = [
321
- l("svg", {
323
+ }, t[61] || (t[61] = [
324
+ e("svg", {
322
325
  xmlns: "http://www.w3.org/2000/svg",
323
326
  width: "12",
324
327
  height: "12",
@@ -326,15 +329,15 @@ const ft = { class: "container mb-3" }, bt = { class: "debug" }, gt = { key: 0 }
326
329
  class: "bi bi-caret-up-fill",
327
330
  viewBox: "0 0 16 16"
328
331
  }, [
329
- l("path", { d: "m7.247 4.86-4.796 5.481c-.566.647-.106 1.659.753 1.659h9.592a1 1 0 0 0 .753-1.659l-4.796-5.48a1 1 0 0 0-1.506 0z" })
332
+ e("path", { d: "m7.247 4.86-4.796 5.481c-.566.647-.106 1.659.753 1.659h9.592a1 1 0 0 0 .753-1.659l-4.796-5.48a1 1 0 0 0-1.506 0z" })
330
333
  ], -1)
331
334
  ])),
332
- t[64] || (t[64] = e()),
333
- l("button", {
334
- onClick: t[9] || (t[9] = (o) => O()),
335
+ t[63] || (t[63] = l()),
336
+ e("button", {
337
+ onClick: t[8] || (t[8] = (o) => Y()),
335
338
  class: "caretButtons mr-1"
336
- }, t[63] || (t[63] = [
337
- l("svg", {
339
+ }, t[62] || (t[62] = [
340
+ e("svg", {
338
341
  xmlns: "http://www.w3.org/2000/svg",
339
342
  width: "12",
340
343
  height: "12",
@@ -342,68 +345,107 @@ const ft = { class: "container mb-3" }, bt = { class: "debug" }, gt = { key: 0 }
342
345
  class: "bi bi-caret-down-fill",
343
346
  viewBox: "0 0 16 16"
344
347
  }, [
345
- l("path", { d: "M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z" })
348
+ e("path", { d: "M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z" })
346
349
  ], -1)
347
350
  ]))
348
351
  ]),
349
- t[66] || (t[66] = e()),
350
- t[67] || (t[67] = l("span", null, "day of the month", -1))
352
+ t[65] || (t[65] = l()),
353
+ t[66] || (t[66] = e("span", null, "day of the month", -1))
351
354
  ], 2)
352
355
  ])
353
356
  ])
354
357
  ]),
355
- t[85] || (t[85] = e()),
356
- l("div", Et, [
357
- t[79] || (t[79] = l("h3", null, "Notification Threshold", -1)),
358
- t[80] || (t[80] = e()),
359
- t[81] || (t[81] = l("span", null, "This slider sets a threshold value. A notification email will be sent when the measured value increases and the difference between the first and last measurement exceeds the set threshold.", -1)),
360
- t[82] || (t[82] = e()),
361
- l("div", Tt, [
362
- t[76] || (t[76] = l("div", { class: "d-flex justify-content-between" }, [
363
- l("span", null, [
364
- l("b", null, "0")
365
- ]),
366
- e(),
367
- l("span", null, [
368
- l("b", null, "400")
369
- ])
358
+ t[88] || (t[88] = l()),
359
+ e("div", Dt, [
360
+ t[80] || (t[80] = e("h3", null, "Recipients Mail", -1)),
361
+ t[81] || (t[81] = l()),
362
+ t[82] || (t[82] = e("span", null, "Add and edit mail addresses for recieving the MQA report", -1)),
363
+ t[83] || (t[83] = l()),
364
+ n(g).length !== 0 ? (r(), d("table", {
365
+ key: 0,
366
+ class: "mt-4",
367
+ ref_key: "mailButtonWrap",
368
+ ref: Z
369
+ }, [
370
+ t[77] || (t[77] = e("tr", null, [
371
+ e("th", null, "Mail")
370
372
  ], -1)),
371
- t[77] || (t[77] = e()),
372
- x(l("input", {
373
- type: "range",
374
- "onUpdate:modelValue": t[10] || (t[10] = (o) => H(w) ? w.value = o : w = o),
375
- min: "0",
376
- max: "400"
377
- }, null, 512), [
378
- [N, n(w)]
373
+ t[78] || (t[78] = l()),
374
+ (r(!0), d(K, null, G(n(g), (o, a) => (r(), d("tr", {
375
+ class: "mailItems",
376
+ key: a
377
+ }, [
378
+ e("td", null, [
379
+ n(S) ? M("", !0) : (r(), d("span", Ut, u(o), 1)),
380
+ t[74] || (t[74] = l()),
381
+ n(S) ? x((r(), d("input", {
382
+ key: 1,
383
+ type: "text",
384
+ "onUpdate:modelValue": (B) => n(g)[a] = B,
385
+ class: k(["mail-input", { invalidNewMail: n(q)[a] }]),
386
+ onInput: (B) => n(q)[a] = ""
387
+ }, null, 42, xt)), [
388
+ [E, n(g)[a]]
389
+ ]) : M("", !0),
390
+ t[75] || (t[75] = l()),
391
+ e("div", null, [
392
+ e("button", {
393
+ type: "button",
394
+ class: "btn btn-simple",
395
+ onClick: (B) => n(S) ? st(a) : nt()
396
+ }, u(n(S) ? "Save" : "Edit"), 9, Et),
397
+ t[73] || (t[73] = l()),
398
+ e("button", {
399
+ type: "button",
400
+ class: "btn btn-simple",
401
+ onClick: (B) => ot(a)
402
+ }, "Delete", 8, Nt)
403
+ ])
404
+ ]),
405
+ t[76] || (t[76] = l()),
406
+ n(q)[a] ? (r(), d("span", Wt, u(n(q)[a]), 1)) : M("", !0)
407
+ ]))), 128))
408
+ ], 512)) : M("", !0),
409
+ t[84] || (t[84] = l()),
410
+ e("div", Qt, [
411
+ x(e("input", {
412
+ type: "text",
413
+ "onUpdate:modelValue": t[9] || (t[9] = (o) => n(m).mail = o),
414
+ onInput: t[10] || (t[10] = (o) => n(m).isValid = !0),
415
+ class: k([{ invalidNewMail: !n(m).isValid }, "mail"]),
416
+ placeholder: "Enter email address"
417
+ }, null, 34), [
418
+ [E, n(m).mail]
379
419
  ]),
380
- t[78] || (t[78] = e()),
381
- l("p", null, [
382
- t[74] || (t[74] = e("Lower than ")),
383
- l("b", null, i(n(w)), 1),
384
- t[75] || (t[75] = e(" Points"))
385
- ])
386
- ])
420
+ t[79] || (t[79] = l()),
421
+ e("button", {
422
+ type: "button",
423
+ class: "btn btn-simple mx-3",
424
+ onClick: t[11] || (t[11] = (o) => it())
425
+ }, "+ Add Mail")
426
+ ]),
427
+ t[85] || (t[85] = l()),
428
+ n(m).isValid ? M("", !0) : (r(), d("span", Rt, "*Invalid email format"))
387
429
  ]),
388
- t[86] || (t[86] = e()),
389
- l("div", Pt, [
390
- l("button", {
430
+ t[89] || (t[89] = l()),
431
+ e("div", Tt, [
432
+ e("button", {
391
433
  type: "button",
392
434
  class: "btn btn-primary",
393
435
  onClick: lt
394
436
  }, "Save"),
395
- t[83] || (t[83] = e()),
396
- l("button", {
437
+ t[86] || (t[86] = l()),
438
+ e("button", {
397
439
  type: "button",
398
440
  class: "btn btn-cancel",
399
- onClick: t[11] || (t[11] = (o) => it())
441
+ onClick: t[12] || (t[12] = (o) => at())
400
442
  }, "Cancel")
401
443
  ])
402
444
  ])) : M("", !0)
403
445
  ]));
404
446
  }
405
- }, Kt = /* @__PURE__ */ mt(Rt, [["__scopeId", "data-v-0f58d176"]]);
447
+ }, Ht = /* @__PURE__ */ ft(zt, [["__scopeId", "data-v-71e9009c"]]);
406
448
  export {
407
- Kt as default
449
+ Ht as default
408
450
  };
409
451
  //# sourceMappingURL=CatalogueMQA.vue.mjs.map