@piveau/piveau-hub-ui-modules 4.5.10 → 4.5.12

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,46 +1,58 @@
1
- import { ref as a, getCurrentInstance as X, openBlock as p, createElementBlock as m, createElementVNode as l, createTextVNode as e, toDisplayString as x, unref as o, createCommentVNode as C, Fragment as z, renderList as R, normalizeClass as b, withDirectives as B, vModelText as S, isRef as A } from "vue";
2
- import { onClickOutside as Y } from "../external/@vueuse/core/index";
3
- import { useRoute as c } from "vue-router";
4
- import D from "axios";
1
+ import { ref as i, getCurrentInstance as it, openBlock as a, createElementBlock as v, createElementVNode as l, createTextVNode as e, toDisplayString as u, unref as n, createCommentVNode as A, normalizeClass as k, Fragment as Q, renderList as L, withDirectives as E, vModelText as T, isRef as G } from "vue";
2
+ import { useRouter as ut, useRoute as rt } from "vue-router";
3
+ import { useStore as at } from "vuex";
4
+ import U from "axios";
5
5
  import "./CatalogueMQA.vue2.mjs";
6
- import h from "../_virtual/_plugin-vue_export-helper.mjs";
7
- const _ = { class: "container mb-3" }, tt = { key: 0 }, lt = { key: 1 }, et = { key: 0 }, nt = { class: "mqaWrapper" }, ot = { class: "mailItems" }, st = ["value", "readonly", "onInput"], it = ["onClick"], at = ["onClick"], rt = {
6
+ import vt from "../_virtual/_plugin-vue_export-helper.mjs";
7
+ const dt = { class: "container mb-3" }, pt = { class: "debug" }, ft = { key: 0 }, mt = { key: 1 }, bt = { key: 0 }, gt = { class: "mqaWrapper" }, yt = { key: 0 }, kt = ["onUpdate:modelValue", "onInput"], Ct = ["onClick"], wt = ["onClick"], At = {
8
8
  key: 0,
9
9
  class: "errormsg"
10
- }, ut = { class: "my-3 d-flex" }, dt = ["disabled"], vt = {
10
+ }, St = { class: "d-flex mt-3" }, Mt = {
11
11
  key: 1,
12
12
  class: "errormsg"
13
- }, pt = { class: "mqaWrapper" }, mt = { class: "d-flex" }, ft = { class: "mr-3 my-3" }, yt = ["onClick"], bt = ["disabled"], gt = { class: "my-3" }, Ct = ["disabled"], kt = { class: "caretWrap" }, wt = { class: "mqaWrapper" }, At = { class: "w-50" }, xt = { class: "actionWrapper" }, Mt = {
13
+ }, It = { class: "mqaWrapper" }, $t = { class: "d-flex mt-3" }, Vt = { class: "mr-3 my-3" }, qt = ["disabled", "onClick"], Nt = { class: "my-3" }, Bt = ["disabled"], Et = { class: "caretWrap" }, Tt = { class: "mqaWrapper" }, Dt = { class: "w-50 mt-3" }, Wt = { class: "actionWrapper" }, Pt = {
14
14
  __name: "CatalogueMQA",
15
- setup(It) {
16
- const L = c();
17
- let r = a(!1), u = a(!1), f = a({ mail: "", valid: !0 }), E = a(null);
18
- a(!0);
19
- let k = a("Activate"), w = a(!1), y = a(!1), d = a(), j = ["Mo", "Tue", "We", "Th", "Fr", "Sa", "Su"], i = a(1);
20
- const M = L.params.id, W = X(), O = W.appContext.app.config.globalProperties.$env.api.notificationBaseUrl, N = W.appContext.app.config.globalProperties.$env.api.apiKey, I = a({}), $ = a(0), P = /^(2[0-8]|[1-9])$/;
21
- d.value = [{ mail: "mail@mail2.com", readonly: !0, valid: !0 }, { mail: "mail@mail1.com", readonly: !0, valid: !0 }];
22
- const V = async () => {
15
+ setup(Ut) {
16
+ const H = at(), D = ut(), x = (s) => {
17
+ H.dispatch("snackbar/showSnackbar", s);
18
+ }, N = () => {
19
+ x({
20
+ message: "Saved Successfully",
21
+ variant: "success"
22
+ });
23
+ }, J = rt();
24
+ let y = i(!1), m = i(!1), K = i(null), V = i("Activate"), W = i(!1), d = i(!1), b = i(), X = ["Mo", "Tue", "We", "Th", "Fr", "Sa", "Su"], p = i(1), I = i(!1), C = i(0), S = i(""), g = i(""), M = i(null);
25
+ const B = J.params.id, O = it(), Y = O.appContext.app.config.globalProperties.$env.api.notificationBaseUrl, P = O.appContext.app.config.globalProperties.$env.api.apiKey, z = (s) => {
26
+ m.value && (M.value = s, g.value = M);
27
+ }, Z = () => {
28
+ m.value = !0, y.value = !1, M.value = g.value;
29
+ }, h = () => {
30
+ m.value = !1, y.value = !0, M.value = g.value;
31
+ }, w = i({}), R = (s) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s);
32
+ let f = i({ mail: "", isValid: !0 }), $ = i({});
33
+ const c = async () => {
23
34
  const s = {
24
35
  method: "get",
25
- url: `${O}/catalogue/${M}/setting`,
36
+ url: `${Y}/catalogue/${B}/setting`,
26
37
  headers: {
27
- Authorization: N,
38
+ Authorization: P,
28
39
  Accept: "application/json"
29
40
  },
30
41
  withCredentials: !0
31
42
  };
32
43
  try {
33
- const t = await D.request(s);
34
- I.value = t.data, I.value.activeStatus === !0 && (y.value = !0, k.value = "Deactivate"), I.value.activeStatus === !1 && (y.value = !1, k.value = "Activate"), console.log("Response:", t);
44
+ const t = await U.request(s);
45
+ w.value = t.data, w.value.activeStatus === !0 && (d.value = !0, V.value = "Deactivate"), w.value.activeStatus === !1 && (d.value = !1, V.value = "Activate"), b.value = w.value.receiverEmailList, S.value = w.value.frequency.unit, g.value = w.value.frequency.value, C.value = w.value.threshold, S.value === "week" ? (m.value = !0, y.value = !1, M.value = g.value) : S.value === "month" && (m.value = !1, y.value = !0, p.value = g.value), console.log("Response:", t);
35
46
  } catch (t) {
36
47
  console.log("Full error:", t);
37
48
  }
38
- }, F = async () => {
49
+ }, _ = async () => {
50
+ m.value === !0 ? (S.value = "week", g.value = M.value) : y.value === !0 && (S.value = "month", g.value = p.value);
39
51
  const s = {
40
52
  method: "post",
41
- url: `https://piveau-metrics-notifications-piveau.apps.osc.fokus.fraunhofer.de/catalogue/${M}/setting`,
53
+ url: `https://piveau-metrics-notifications-piveau.apps.osc.fokus.fraunhofer.de/catalogue/${B}/setting`,
42
54
  headers: {
43
- Authorization: N,
55
+ Authorization: P,
44
56
  Accept: "application/json",
45
57
  "Content-Type": "application/json",
46
58
  "Access-Control-Allow-Origin": "*",
@@ -49,221 +61,261 @@ const _ = { class: "container mb-3" }, tt = { key: 0 }, lt = { key: 1 }, et = {
49
61
  },
50
62
  withCredentials: !0,
51
63
  data: JSON.stringify({
52
- receiverEmailList: d.value,
64
+ receiverEmailList: b.value,
65
+ threshold: Number(C.value),
53
66
  frequency: {
54
- unit: "week",
55
- value: 9
67
+ unit: S.value,
68
+ value: g.value
56
69
  },
57
70
  activeStatus: !0
58
71
  })
59
72
  };
60
73
  try {
61
- const t = await D.request(s);
62
- return console.log("Settings updated:", t.data), t.data;
74
+ const t = await U.request(s);
75
+ return console.log("Settings updated:", t.data), N(), D.push({ name: "DataProviderInterface-UserCatalogues" }), t.data;
63
76
  } catch (t) {
64
- throw console.log("Error updating settings:", t), t;
77
+ throw N(), console.log("Error updating settings:", t), t;
65
78
  }
66
79
  };
67
- V(), Y(E, (s) => {
68
- d.value.forEach((t) => {
69
- t.readonly = !0;
80
+ c();
81
+ const j = async () => {
82
+ const s = {
83
+ method: "post",
84
+ url: `https://piveau-metrics-notifications-piveau.apps.osc.fokus.fraunhofer.de/catalogue/${B}/setting`,
85
+ headers: {
86
+ Authorization: P,
87
+ Accept: "application/json",
88
+ "Content-Type": "application/json",
89
+ "Access-Control-Allow-Origin": "*",
90
+ "Access-Control-Allow-Methods": "GET, POST, OPTIONS",
91
+ "Access-Control-Allow-Headers": "Authorization"
92
+ },
93
+ withCredentials: !0,
94
+ data: JSON.stringify({
95
+ activeStatus: d.value
96
+ })
97
+ };
98
+ try {
99
+ const t = await U.request(s);
100
+ return console.log("Settings updated:", t.data), N(), d.value || D.push({ name: "DataProviderInterface-UserCatalogues" }), t.data;
101
+ } catch (t) {
102
+ throw N(), console.log("Error updating settings:", t), t;
103
+ }
104
+ }, tt = () => {
105
+ I.value = !0, x({
106
+ message: "Email added successfully.",
107
+ variant: "success"
70
108
  });
71
- });
72
- const Q = () => {
73
- const s = document.getElementsByClassName("dayButtons");
74
- for (let t = 0; t < s.length; t++)
75
- s[t].classList.remove("activeItem");
76
- }, T = (s) => {
77
- s === "up" && i.value < 28 ? (i.value > 8 && (w.value = !0), i.value++) : i.value > 1 && (i.value < 11 && (w.value = !1), i.value--);
78
- }, U = (s, t) => {
79
- t.target.classList.toggle("activeItem");
80
- }, Z = () => {
81
- P.test(i.value) || (i.value = "28"), i.value > 8 ? w.value = !0 : w.value = !1;
82
- }, K = () => {
83
- f.value.mail != "" && (d.value.push({ mail: f.value.mail, readonly: !0, valid: !0 }), f.value = { mail: "", valid: !0 });
84
- }, G = () => {
85
- y.value ? (y.value = !1, k.value = "Activate") : (y.value = !0, k.value = "Deactivate");
86
- }, H = (s) => {
87
- d.value.forEach((t) => {
88
- t.readonly = !0;
89
- }), s.readonly = !s.readonly;
90
- }, q = (s, t) => {
91
- const n = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/, v = s.target.value;
92
- n.test(v) || v === "" ? (d.value.forEach((g) => {
93
- g.mail === t && (g.mail = v, g.valid = !0);
94
- }), t === void 0 && (f.value.valid = !0)) : (d.value.forEach((g) => {
95
- g.mail === t && (g.valid = !1);
96
- }), t === void 0 && (f.value.valid = !1));
97
- }, J = (s) => {
98
- let t = -1;
99
- d.value.forEach((n, v) => {
100
- n.mail === s && (t = v);
101
- }), t !== -1 && d.value.splice(t, 1);
109
+ }, lt = (s) => {
110
+ const t = b.value[s].trim();
111
+ R(t) ? (I.value = !1, delete $.value[s]) : $.value[s] = "*Invalid email format";
112
+ }, et = (s) => {
113
+ b.value.splice(s, 1);
114
+ }, F = (s) => {
115
+ s === "up" && p.value < 28 ? (p.value > 8 && (W.value = !0), p.value++) : p.value > 1 && (p.value < 11 && (W.value = !1), p.value--);
116
+ }, nt = () => {
117
+ if (f.value.mail.trim() === "") {
118
+ f.value.isValid = !1;
119
+ return;
120
+ }
121
+ R(f.value.mail) ? (b.value.push(f.value.mail), f.value.mail = "", f.value.isValid = !0) : f.value.isValid = !1;
122
+ }, st = () => {
123
+ d.value ? (d.value = !1, V.value = "Activate", j()) : (d.value = !0, V.value = "Deactivate", j());
124
+ }, ot = () => {
125
+ D.push({ name: "DataProviderInterface-UserCatalogues" });
102
126
  };
103
- return (s, t) => (p(), m("div", _, [
127
+ return (s, t) => (a(), v("div", dt, [
104
128
  l("div", null, [
105
129
  l("div", null, [
106
- t[18] || (t[18] = l("div", { class: "debug" }, [
107
- l("strong", null, " API object:"),
108
- e(),
109
- l("br"),
110
- l("br")
111
- ], -1)),
112
- t[19] || (t[19] = e()),
113
- t[20] || (t[20] = l("h1", null, "MQA Report Settings", -1)),
114
- t[21] || (t[21] = e()),
130
+ l("div", pt, [
131
+ t[12] || (t[12] = l("strong", null, " API object:", -1)),
132
+ t[13] || (t[13] = e()),
133
+ t[14] || (t[14] = l("br", null, null, -1)),
134
+ t[15] || (t[15] = l("br", null, null, -1)),
135
+ e(" " + u(w.value) + " ", 1),
136
+ t[16] || (t[16] = l("br", null, null, -1)),
137
+ t[17] || (t[17] = e(" --- ")),
138
+ t[18] || (t[18] = l("br", null, null, -1)),
139
+ e(" " + u(n(b)) + " ", 1),
140
+ t[19] || (t[19] = l("br", null, null, -1)),
141
+ t[20] || (t[20] = e("---")),
142
+ t[21] || (t[21] = l("br", null, null, -1)),
143
+ t[22] || (t[22] = e()),
144
+ t[23] || (t[23] = l("strong", null, "Fequency:", -1)),
145
+ t[24] || (t[24] = e()),
146
+ t[25] || (t[25] = l("br", null, null, -1)),
147
+ e(`
148
+ weekly: ` + u(n(m)), 1),
149
+ t[26] || (t[26] = l("br", null, null, -1)),
150
+ e(`
151
+ monthly: ` + u(n(y)) + " ", 1),
152
+ t[27] || (t[27] = l("br", null, null, -1)),
153
+ t[28] || (t[28] = e()),
154
+ t[29] || (t[29] = l("p", null, null, -1)),
155
+ e(`
156
+ unit: ` + u(n(S)) + " ", 1),
157
+ t[30] || (t[30] = l("br", null, null, -1)),
158
+ e(`
159
+ value: ` + u(n(g)) + " ", 1),
160
+ t[31] || (t[31] = l("br", null, null, -1)),
161
+ t[32] || (t[32] = e("---")),
162
+ t[33] || (t[33] = l("br", null, null, -1)),
163
+ e(`
164
+ treshold: ` + u(n(C)), 1)
165
+ ]),
166
+ t[40] || (t[40] = e()),
167
+ t[41] || (t[41] = l("h1", null, "MQA Report Settings", -1)),
168
+ t[42] || (t[42] = e()),
115
169
  l("p", null, [
116
- t[12] || (t[12] = e(`Configuration for
117
-
118
-
119
- `)),
120
- l("strong", null, x(o(M)), 1)
170
+ t[34] || (t[34] = e(`Configuration for
171
+
172
+ `)),
173
+ l("strong", null, u(n(B)), 1)
121
174
  ]),
122
- t[22] || (t[22] = e()),
175
+ t[43] || (t[43] = e()),
123
176
  l("p", null, [
124
- t[14] || (t[14] = e("For this Catalogue the ")),
125
- t[15] || (t[15] = l("b", null, "MQA Rating Checks ", -1)),
126
- t[16] || (t[16] = e("are currently ")),
177
+ t[36] || (t[36] = e("For this Catalogue the ")),
178
+ t[37] || (t[37] = l("b", null, "MQA Rating Checks ", -1)),
179
+ t[38] || (t[38] = e("are currently ")),
127
180
  l("b", null, [
128
- o(y) ? C("", !0) : (p(), m("span", tt, "deactivated")),
129
- t[13] || (t[13] = e()),
130
- o(y) ? (p(), m("span", lt, "activated")) : C("", !0)
181
+ n(d) ? A("", !0) : (a(), v("span", ft, "deactivated")),
182
+ t[35] || (t[35] = e()),
183
+ n(d) ? (a(), v("span", mt, "activated")) : A("", !0)
131
184
  ]),
132
- t[17] || (t[17] = e("."))
185
+ t[39] || (t[39] = e("."))
133
186
  ])
134
187
  ]),
135
- t[23] || (t[23] = e()),
188
+ t[44] || (t[44] = e()),
136
189
  l("button", {
137
190
  type: "button",
138
- class: "btn btn-secondary",
139
- onClick: t[0] || (t[0] = (n) => G())
140
- }, x(o(k)), 1)
191
+ class: k({ "btn btn-primary mb-5": !n(d), "btn btn-secondary": n(d) }),
192
+ onClick: t[0] || (t[0] = (o) => st())
193
+ }, u(n(V)), 3)
141
194
  ]),
142
- t[62] || (t[62] = e()),
143
- o(y) ? (p(), m("div", et, [
144
- l("div", nt, [
145
- t[30] || (t[30] = l("h3", null, "Recipients Mail", -1)),
146
- t[31] || (t[31] = e()),
147
- t[32] || (t[32] = l("span", null, "Add and edit mail addresses for recieving the MQA report", -1)),
148
- t[33] || (t[33] = e()),
149
- o(d).length != 0 ? (p(), m("table", {
195
+ t[84] || (t[84] = e()),
196
+ n(d) ? (a(), v("div", bt, [
197
+ l("div", gt, [
198
+ t[52] || (t[52] = l("h3", null, "Recipients Mail", -1)),
199
+ t[53] || (t[53] = e()),
200
+ t[54] || (t[54] = l("span", null, "Add and edit mail addresses for recieving the MQA report", -1)),
201
+ t[55] || (t[55] = e()),
202
+ n(b).length != 0 ? (a(), v("table", {
150
203
  key: 0,
204
+ class: "mt-4",
151
205
  ref_key: "mailButtonWrap",
152
- ref: E
206
+ ref: K
153
207
  }, [
154
- t[27] || (t[27] = l("tr", null, [
208
+ t[49] || (t[49] = l("tr", null, [
155
209
  l("th", null, "Mail")
156
210
  ], -1)),
157
- t[28] || (t[28] = e()),
158
- (p(!0), m(z, null, R(o(d), (n) => (p(), m("tr", ot, [
211
+ t[50] || (t[50] = e()),
212
+ (a(!0), v(Q, null, L(n(b), (o, r) => (a(), v("tr", {
213
+ class: "mailItems",
214
+ key: r
215
+ }, [
159
216
  l("td", null, [
160
- l("input", {
217
+ n(I) ? A("", !0) : (a(), v("span", yt, u(o), 1)),
218
+ t[46] || (t[46] = e()),
219
+ n(I) ? E((a(), v("input", {
220
+ key: 1,
161
221
  type: "text",
162
- value: n.mail,
163
- readonly: n.readonly,
164
- class: b({ editable: !n.readonly, invalid: !n.valid }),
165
- onInput: (v) => q(v, n.mail)
166
- }, null, 42, st),
167
- t[25] || (t[25] = e()),
222
+ "onUpdate:modelValue": (q) => n(b)[r] = q,
223
+ class: k(["mail-input", { invalidNewMail: n($)[r] }]),
224
+ onInput: (q) => n($)[r] = ""
225
+ }, null, 42, kt)), [
226
+ [T, n(b)[r]]
227
+ ]) : A("", !0),
228
+ t[47] || (t[47] = e()),
168
229
  l("div", null, [
169
230
  l("button", {
170
231
  type: "button",
171
- class: "btn btn-secondary",
172
- onClick: (v) => H(n)
173
- }, "Edit", 8, it),
174
- t[24] || (t[24] = e()),
232
+ class: "btn btn-simple",
233
+ onClick: (q) => n(I) ? lt(r) : tt()
234
+ }, u(n(I) ? "Save" : "Edit"), 9, Ct),
235
+ t[45] || (t[45] = e()),
175
236
  l("button", {
176
237
  type: "button",
177
- class: "btn btn-secondary",
178
- onClick: (v) => J(n.mail)
179
- }, "Delete", 8, at)
238
+ class: "btn btn-simple",
239
+ onClick: (q) => et(r)
240
+ }, "Delete", 8, wt)
180
241
  ])
181
242
  ]),
182
- t[26] || (t[26] = e()),
183
- n.valid ? C("", !0) : (p(), m("span", rt, "*Invalid email format"))
184
- ]))), 256))
185
- ], 512)) : C("", !0),
186
- t[34] || (t[34] = e()),
187
- l("div", ut, [
188
- B(l("input", {
243
+ t[48] || (t[48] = e()),
244
+ n($)[r] ? (a(), v("span", At, u(n($)[r]), 1)) : A("", !0)
245
+ ]))), 128))
246
+ ], 512)) : A("", !0),
247
+ t[56] || (t[56] = e()),
248
+ l("div", St, [
249
+ E(l("input", {
189
250
  type: "text",
190
- "onUpdate:modelValue": t[1] || (t[1] = (n) => o(f).mail = n),
191
- onInput: t[2] || (t[2] = (n) => q(n)),
192
- class: b({ invalidNewMail: !o(f).valid }),
193
- style: { padding: "0.25rem" }
251
+ "onUpdate:modelValue": t[1] || (t[1] = (o) => n(f).mail = o),
252
+ onInput: t[2] || (t[2] = (o) => n(f).isValid = !0),
253
+ class: k([{ invalidNewMail: !n(f).isValid }, "mail"]),
254
+ placeholder: "Enter email address"
194
255
  }, null, 34), [
195
- [S, o(f).mail]
256
+ [T, n(f).mail]
196
257
  ]),
197
- t[29] || (t[29] = e()),
258
+ t[51] || (t[51] = e()),
198
259
  l("button", {
199
260
  type: "button",
200
- class: "btn btn-secondary mx-3",
201
- disabled: !o(f).valid,
202
- onClick: t[3] || (t[3] = (n) => K())
203
- }, `+
204
- add Mail`, 8, dt)
261
+ class: "btn btn-simple mx-3",
262
+ onClick: t[3] || (t[3] = (o) => nt())
263
+ }, "+ Add Mail")
205
264
  ]),
206
- t[35] || (t[35] = e()),
207
- o(f).valid ? C("", !0) : (p(), m("span", vt, "*Invalid email format"))
265
+ t[57] || (t[57] = e()),
266
+ n(f).isValid ? A("", !0) : (a(), v("span", Mt, "*Invalid email format"))
208
267
  ]),
209
- t[59] || (t[59] = e()),
210
- l("div", pt, [
211
- t[45] || (t[45] = l("h3", null, "Frequency of Rating Checks", -1)),
212
- t[46] || (t[46] = e()),
213
- t[47] || (t[47] = l("span", null, `Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut
214
- labore et dolore magna aliquyam erat, sed diam voluptua`, -1)),
215
- t[48] || (t[48] = e()),
216
- l("div", mt, [
217
- l("div", ft, [
268
+ t[81] || (t[81] = e()),
269
+ l("div", It, [
270
+ t[67] || (t[67] = l("h3", null, "Frequency of Rating Checks", -1)),
271
+ t[68] || (t[68] = e()),
272
+ t[69] || (t[69] = l("span", null, "Configure the frequency of the MQA rating checks.", -1)),
273
+ t[70] || (t[70] = e()),
274
+ l("div", $t, [
275
+ l("div", Vt, [
218
276
  l("button", {
219
277
  type: "button",
220
- class: b(["btn btn-secondary", { activeChoiceButton: o(u) === !0 }]),
221
- onClick: t[4] || (t[4] = (n) => {
222
- A(u) ? u.value = !o(u) : u = !o(u), A(r) ? r.value = !1 : r = !1;
223
- })
278
+ class: k(["btn btn-simple", { activeChoiceButton: n(m) }]),
279
+ onClick: t[4] || (t[4] = (o) => Z())
224
280
  }, "Weekly", 2),
225
- t[36] || (t[36] = e()),
281
+ t[58] || (t[58] = e()),
226
282
  l("div", {
227
- class: b(["weekdays", { blur: !o(u) }])
283
+ class: k(["weekdays", { blur: !n(m) }])
228
284
  }, [
229
- (p(!0), m(z, null, R(o(j), (n) => (p(), m("span", {
230
- onClick: (v) => U(n, v)
231
- }, [
285
+ (a(!0), v(Q, null, L(n(X), (o, r) => (a(), v("span", { key: r }, [
232
286
  l("button", {
233
- disabled: !o(u),
234
- class: "dayButtons"
235
- }, x(n), 9, bt)
236
- ], 8, yt))), 256))
287
+ disabled: !n(m),
288
+ class: k(["dayButtons", { activeItem: n(M) === r }]),
289
+ onClick: (q) => z(r)
290
+ }, u(o), 11, qt)
291
+ ]))), 128))
237
292
  ], 2)
238
293
  ]),
239
- t[44] || (t[44] = e()),
240
- l("div", gt, [
294
+ t[66] || (t[66] = e()),
295
+ l("div", Nt, [
241
296
  l("button", {
242
297
  type: "button",
243
- class: b([{ activeChoiceButton: o(r) === !0 }, "btn btn-secondary"]),
244
- onClick: t[5] || (t[5] = (n) => {
245
- A(r) ? r.value = !o(r) : r = !o(r), A(u) ? u.value = !1 : u = !1, Q();
246
- })
298
+ class: k([{ activeChoiceButton: n(y) }, "btn btn-simple"]),
299
+ onClick: t[5] || (t[5] = (o) => h())
247
300
  }, "Monthly", 2),
248
- t[43] || (t[43] = e()),
301
+ t[65] || (t[65] = e()),
249
302
  l("div", {
250
- class: b(["d-flex daypicker my-3", { blur: !o(r) }])
303
+ class: k(["d-flex daypicker my-3", { blur: !n(y) }])
251
304
  }, [
252
- B(l("input", {
253
- "onUpdate:modelValue": t[6] || (t[6] = (n) => A(i) ? i.value = n : i = n),
254
- onInput: t[7] || (t[7] = (n) => Z()),
255
- class: b({ dynamicWidth: o(w) }),
256
- disabled: !o(r)
257
- }, null, 42, Ct), [
258
- [S, o(i)]
305
+ E(l("input", {
306
+ "onUpdate:modelValue": t[6] || (t[6] = (o) => G(p) ? p.value = o : p = o),
307
+ onInput: t[7] || (t[7] = (o) => z(s.index)),
308
+ class: k({ dynamicWidth: n(W) }),
309
+ disabled: !n(y)
310
+ }, null, 42, Bt), [
311
+ [T, n(p)]
259
312
  ]),
260
- t[40] || (t[40] = e(`.
261
- `)),
262
- l("div", kt, [
313
+ t[62] || (t[62] = e()),
314
+ l("div", Et, [
263
315
  l("button", {
264
- onClick: t[8] || (t[8] = (n) => T("up")),
316
+ onClick: t[8] || (t[8] = (o) => F("up")),
265
317
  class: "caretButtons ml-1"
266
- }, t[37] || (t[37] = [
318
+ }, t[59] || (t[59] = [
267
319
  l("svg", {
268
320
  xmlns: "http://www.w3.org/2000/svg",
269
321
  width: "12",
@@ -275,11 +327,11 @@ const _ = { class: "container mb-3" }, tt = { key: 0 }, lt = { key: 1 }, et = {
275
327
  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" })
276
328
  ], -1)
277
329
  ])),
278
- t[39] || (t[39] = e()),
330
+ t[61] || (t[61] = e()),
279
331
  l("button", {
280
- onClick: t[9] || (t[9] = (n) => T()),
332
+ onClick: t[9] || (t[9] = (o) => F()),
281
333
  class: "caretButtons mr-1"
282
- }, t[38] || (t[38] = [
334
+ }, t[60] || (t[60] = [
283
335
  l("svg", {
284
336
  xmlns: "http://www.w3.org/2000/svg",
285
337
  width: "12",
@@ -292,21 +344,20 @@ const _ = { class: "container mb-3" }, tt = { key: 0 }, lt = { key: 1 }, et = {
292
344
  ], -1)
293
345
  ]))
294
346
  ]),
295
- t[41] || (t[41] = e()),
296
- t[42] || (t[42] = l("span", null, "day of the month", -1))
347
+ t[63] || (t[63] = e()),
348
+ t[64] || (t[64] = l("span", null, "day of the month", -1))
297
349
  ], 2)
298
350
  ])
299
351
  ])
300
352
  ]),
301
- t[60] || (t[60] = e()),
302
- l("div", wt, [
303
- t[54] || (t[54] = l("h3", null, "Notification Treshold", -1)),
304
- t[55] || (t[55] = e()),
305
- t[56] || (t[56] = l("span", null, `Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut
306
- labore et dolore magna aliquyam erat, sed diam voluptua`, -1)),
307
- t[57] || (t[57] = e()),
308
- l("div", At, [
309
- t[51] || (t[51] = l("div", { class: "d-flex justify-content-between" }, [
353
+ t[82] || (t[82] = e()),
354
+ l("div", Tt, [
355
+ t[76] || (t[76] = l("h3", null, "Notification Treshold", -1)),
356
+ t[77] || (t[77] = e()),
357
+ t[78] || (t[78] = l("span", null, "Set the threshold for triggering the report.", -1)),
358
+ t[79] || (t[79] = e()),
359
+ l("div", Dt, [
360
+ t[73] || (t[73] = l("div", { class: "d-flex justify-content-between" }, [
310
361
  l("span", null, [
311
362
  l("b", null, "0")
312
363
  ]),
@@ -315,42 +366,42 @@ const _ = { class: "container mb-3" }, tt = { key: 0 }, lt = { key: 1 }, et = {
315
366
  l("b", null, "400")
316
367
  ])
317
368
  ], -1)),
318
- t[52] || (t[52] = e()),
319
- B(l("input", {
369
+ t[74] || (t[74] = e()),
370
+ E(l("input", {
320
371
  type: "range",
321
- "onUpdate:modelValue": t[10] || (t[10] = (n) => $.value = n),
372
+ "onUpdate:modelValue": t[10] || (t[10] = (o) => G(C) ? C.value = o : C = o),
322
373
  min: "0",
323
374
  max: "400"
324
375
  }, null, 512), [
325
- [S, $.value]
376
+ [T, n(C)]
326
377
  ]),
327
- t[53] || (t[53] = e()),
378
+ t[75] || (t[75] = e()),
328
379
  l("p", null, [
329
- t[49] || (t[49] = e("Lower than ")),
330
- l("b", null, x($.value), 1),
331
- t[50] || (t[50] = e(" Points"))
380
+ t[71] || (t[71] = e("Lower than ")),
381
+ l("b", null, u(n(C)), 1),
382
+ t[72] || (t[72] = e(" Points"))
332
383
  ])
333
384
  ])
334
385
  ]),
335
- t[61] || (t[61] = e()),
336
- l("div", xt, [
386
+ t[83] || (t[83] = e()),
387
+ l("div", Wt, [
337
388
  l("button", {
338
389
  type: "button",
339
- class: "btn btn-secondary",
340
- onClick: F
390
+ class: "btn btn-primary",
391
+ onClick: _
341
392
  }, "Save"),
342
- t[58] || (t[58] = e()),
393
+ t[80] || (t[80] = e()),
343
394
  l("button", {
344
395
  type: "button",
345
- class: "btn btn-secondary",
346
- onClick: t[11] || (t[11] = (n) => s.back())
396
+ class: "btn btn-cancel",
397
+ onClick: t[11] || (t[11] = (o) => ot())
347
398
  }, "Cancel")
348
399
  ])
349
- ])) : C("", !0)
400
+ ])) : A("", !0)
350
401
  ]));
351
402
  }
352
- }, Tt = /* @__PURE__ */ h(Mt, [["__scopeId", "data-v-dd84825d"]]);
403
+ }, Qt = /* @__PURE__ */ vt(Pt, [["__scopeId", "data-v-f74c3d6f"]]);
353
404
  export {
354
- Tt as default
405
+ Qt as default
355
406
  };
356
407
  //# sourceMappingURL=CatalogueMQA.vue.mjs.map