@piveau/piveau-hub-ui-modules 4.5.11 → 4.5.13

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