mario-education 2.0.94-staging → 2.0.95-staging
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.
- package/dist/EditFlagCard-BLYcaAv6.js +722 -0
- package/dist/EditFlagCard-rD3j6Ni2.cjs +3 -0
- package/dist/index.js +1 -1
- package/dist/index.modern.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,722 @@
|
|
|
1
|
+
import { jsxs as i, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useState as B, useCallback as y, useEffect as L, useRef as K } from "react";
|
|
3
|
+
import { Button as I } from "reactstrap";
|
|
4
|
+
import { c as G, d as D } from "./index-DHRCvnA3.js";
|
|
5
|
+
import { b as H, u as Y, s as e, S as O, d as q } from "./styles.module-DYO9cimr.js";
|
|
6
|
+
import { setLoading as b, setAlert as S } from "mario-core";
|
|
7
|
+
import { useDispatch as V } from "react-redux";
|
|
8
|
+
import { useNavigate as Q, useParams as U } from "react-router-dom";
|
|
9
|
+
import { TextField as j, MenuItem as W } from "@mui/material";
|
|
10
|
+
var _ = /* @__PURE__ */ ((n) => (n.OneToOne = "OneToOne", n.Conference = "Conference", n))(_ || {});
|
|
11
|
+
const $ = {
|
|
12
|
+
questionText: "",
|
|
13
|
+
questionId: void 0,
|
|
14
|
+
text: "",
|
|
15
|
+
flag: "",
|
|
16
|
+
from: 0,
|
|
17
|
+
to: 0,
|
|
18
|
+
type: _.OneToOne,
|
|
19
|
+
activeKpis: "",
|
|
20
|
+
safetyThreshold: void 0,
|
|
21
|
+
stressThreshold: void 0,
|
|
22
|
+
decreaseInAnyMetric: void 0,
|
|
23
|
+
recipientRoles: "",
|
|
24
|
+
isInAppNotification: !1,
|
|
25
|
+
isEmailNotification: !1,
|
|
26
|
+
safetyAnswers: [],
|
|
27
|
+
stressAnswers: [],
|
|
28
|
+
maxSafetyThreshold: 100,
|
|
29
|
+
minSafetyThreshold: 0
|
|
30
|
+
}, z = () => {
|
|
31
|
+
const n = V(), a = Q(), { id: t } = U(), [r, m] = B($), [k, g] = B(!1), u = async () => {
|
|
32
|
+
localStorage.setItem(window.location.href, "true"), g(!0);
|
|
33
|
+
}, f = async () => {
|
|
34
|
+
localStorage.getItem(window.location.href) && localStorage.removeItem(window.location.href), g(!1);
|
|
35
|
+
}, N = y(
|
|
36
|
+
(d, o) => {
|
|
37
|
+
m((h) => ({ ...h, [d]: o })), u();
|
|
38
|
+
},
|
|
39
|
+
[m, u]
|
|
40
|
+
), R = y(
|
|
41
|
+
(d, o) => {
|
|
42
|
+
const h = r[d].split(",").map((v) => v.trim()).filter(Boolean), w = h.includes(o) ? h.filter((v) => v !== o) : [...h, o];
|
|
43
|
+
N(d, w.join(","));
|
|
44
|
+
},
|
|
45
|
+
[r, N]
|
|
46
|
+
), p = () => {
|
|
47
|
+
a("/admin/custom-alert");
|
|
48
|
+
};
|
|
49
|
+
L(() => {
|
|
50
|
+
t ? T() : m($);
|
|
51
|
+
}, [t]), L(() => {
|
|
52
|
+
f();
|
|
53
|
+
}, []);
|
|
54
|
+
const T = y(async () => {
|
|
55
|
+
n(b(!0));
|
|
56
|
+
try {
|
|
57
|
+
if (!t) return;
|
|
58
|
+
const d = await H(t ? Number(t) : 0);
|
|
59
|
+
m(d.data);
|
|
60
|
+
} catch (d) {
|
|
61
|
+
n(
|
|
62
|
+
S({
|
|
63
|
+
type: "danger",
|
|
64
|
+
message: d.response?.data?.title || d.message
|
|
65
|
+
})
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
n(b(!1));
|
|
69
|
+
}, [t]), A = y(
|
|
70
|
+
async (d, o) => {
|
|
71
|
+
n(b(!0));
|
|
72
|
+
try {
|
|
73
|
+
await Y(d), n(
|
|
74
|
+
S({
|
|
75
|
+
type: "success",
|
|
76
|
+
message: "Update question alert successfully"
|
|
77
|
+
})
|
|
78
|
+
), o && o();
|
|
79
|
+
} catch (h) {
|
|
80
|
+
n(
|
|
81
|
+
S({
|
|
82
|
+
type: "danger",
|
|
83
|
+
message: h.response?.data?.title || h.message
|
|
84
|
+
})
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
n(b(!1));
|
|
88
|
+
},
|
|
89
|
+
[t]
|
|
90
|
+
);
|
|
91
|
+
return {
|
|
92
|
+
id: t,
|
|
93
|
+
questionAlertDetail: r,
|
|
94
|
+
setQuestionAlertDetail: m,
|
|
95
|
+
getData: T,
|
|
96
|
+
updateQuestionAlert: A,
|
|
97
|
+
initValue: $,
|
|
98
|
+
edited: k,
|
|
99
|
+
setEdited: g,
|
|
100
|
+
setEditedTrue: u,
|
|
101
|
+
setEditedFalse: f,
|
|
102
|
+
goBack: p,
|
|
103
|
+
toggleField: R,
|
|
104
|
+
handleChange: N,
|
|
105
|
+
dispatch: n
|
|
106
|
+
};
|
|
107
|
+
}, M = {
|
|
108
|
+
danger: e.badgeDanger,
|
|
109
|
+
warning: e.badgeWarning,
|
|
110
|
+
concern: e.badgeConcern,
|
|
111
|
+
safe: e.badgeSafe,
|
|
112
|
+
great: e.badgeGreat
|
|
113
|
+
}, P = [
|
|
114
|
+
"danger",
|
|
115
|
+
"warning",
|
|
116
|
+
"concern",
|
|
117
|
+
"safe",
|
|
118
|
+
"great"
|
|
119
|
+
], F = [
|
|
120
|
+
"great",
|
|
121
|
+
"safe",
|
|
122
|
+
"concern",
|
|
123
|
+
"warning",
|
|
124
|
+
"danger"
|
|
125
|
+
], E = (n, a, t) => Math.min(Math.max(n, a), t), X = (n) => {
|
|
126
|
+
if (n == null || isNaN(n)) return -1;
|
|
127
|
+
const a = E(n, 0, 100);
|
|
128
|
+
return Math.min(Math.floor(a / 20), 4);
|
|
129
|
+
}, J = (n) => {
|
|
130
|
+
if (n == null || isNaN(n)) return -1;
|
|
131
|
+
const a = E(n, -100, 100), t = (a + 100) / 40, r = a >= 20 ? Math.floor(t) : Math.ceil(t) - 1;
|
|
132
|
+
return E(r, 0, 4);
|
|
133
|
+
}, Z = [
|
|
134
|
+
e.scaleRangeDanger,
|
|
135
|
+
e.scaleRangeDanger,
|
|
136
|
+
e.scaleRangeWarning,
|
|
137
|
+
e.scaleRangeSuccess,
|
|
138
|
+
e.scaleRangeSuccess
|
|
139
|
+
], ee = [
|
|
140
|
+
e.scaleRangeSuccess,
|
|
141
|
+
e.scaleRangeBlue,
|
|
142
|
+
e.scaleRangeWarning,
|
|
143
|
+
e.scaleRangeDanger,
|
|
144
|
+
e.scaleRangeDanger
|
|
145
|
+
], de = () => {
|
|
146
|
+
const {
|
|
147
|
+
goBack: n,
|
|
148
|
+
questionAlertDetail: a,
|
|
149
|
+
toggleField: t,
|
|
150
|
+
handleChange: r,
|
|
151
|
+
updateQuestionAlert: m,
|
|
152
|
+
dispatch: k
|
|
153
|
+
} = z(), g = K(a.safetyThreshold), u = K(a.stressThreshold), f = a.flag.toLocaleLowerCase().includes("red"), N = f ? e.editPageTitleRed : e.editPageTitleYellow, R = f ? e.editPageRed : e.editPageYellow, p = X(a.safetyThreshold), T = p >= 0 && a.safetyAnswers?.[p] ? a.safetyAnswers[p] : "Some Concerns", A = p >= 0 && P[p] ? P[p] : "concern", d = M[A], o = J(a.stressThreshold), h = o >= 0 && a.stressAnswers?.[o] ? a.stressAnswers[o] : "Overwhelmed", w = o >= 0 && F[o] ? F[o] : "danger", v = M[w];
|
|
154
|
+
return /* @__PURE__ */ i("div", { className: `${e.editPage} fadeIn animated`, children: [
|
|
155
|
+
/* @__PURE__ */ i("div", { className: e.editPageHeader, children: [
|
|
156
|
+
/* @__PURE__ */ i("button", { className: e.editPageBack, onClick: n, children: [
|
|
157
|
+
/* @__PURE__ */ s(G, {}),
|
|
158
|
+
" Back"
|
|
159
|
+
] }),
|
|
160
|
+
/* @__PURE__ */ i("div", { className: e.editPageTitleBlock, children: [
|
|
161
|
+
/* @__PURE__ */ s("h5", { className: `${e.editPageTitle} ${N}`, children: `Edit ${a.flag}` }),
|
|
162
|
+
/* @__PURE__ */ s("p", { className: e.editPageSubtitle, children: a.text })
|
|
163
|
+
] }),
|
|
164
|
+
/* @__PURE__ */ i(
|
|
165
|
+
I,
|
|
166
|
+
{
|
|
167
|
+
color: "primary",
|
|
168
|
+
className: e.editPageSaveBtn,
|
|
169
|
+
onClick: () => m(a),
|
|
170
|
+
children: [
|
|
171
|
+
/* @__PURE__ */ s(D, {}),
|
|
172
|
+
" Save Changes"
|
|
173
|
+
]
|
|
174
|
+
}
|
|
175
|
+
)
|
|
176
|
+
] }),
|
|
177
|
+
/* @__PURE__ */ i("div", { className: `${e.editPagePanel} ${R}`, children: [
|
|
178
|
+
/* @__PURE__ */ i("div", { children: [
|
|
179
|
+
/* @__PURE__ */ s("p", { className: e.editDescriptionLabel, children: "Trigger Conditions Description" }),
|
|
180
|
+
/* @__PURE__ */ s(
|
|
181
|
+
"textarea",
|
|
182
|
+
{
|
|
183
|
+
className: e.editDescriptionInput,
|
|
184
|
+
name: "text",
|
|
185
|
+
value: a.text,
|
|
186
|
+
onChange: (l) => r("text", l.target.value),
|
|
187
|
+
rows: 1
|
|
188
|
+
}
|
|
189
|
+
)
|
|
190
|
+
] }),
|
|
191
|
+
/* @__PURE__ */ i(
|
|
192
|
+
"div",
|
|
193
|
+
{
|
|
194
|
+
className: `${e.editSection} ${e.editSectionBorder}`,
|
|
195
|
+
children: [
|
|
196
|
+
/* @__PURE__ */ i("div", { className: e.editSectionHeader, children: [
|
|
197
|
+
/* @__PURE__ */ s("h6", { className: e.editSectionTitle, children: "Select KPIs to Monitor" }),
|
|
198
|
+
/* @__PURE__ */ s("p", { className: e.editSectionSubtitle, children: "Choose which key performance indicators should trigger this flag" })
|
|
199
|
+
] }),
|
|
200
|
+
/* @__PURE__ */ i("div", { className: e.kpiCheckboxList, children: [
|
|
201
|
+
/* @__PURE__ */ i("label", { className: e.kpiCheckboxRow, children: [
|
|
202
|
+
/* @__PURE__ */ s(
|
|
203
|
+
"input",
|
|
204
|
+
{
|
|
205
|
+
type: "checkbox",
|
|
206
|
+
name: "activeKpis",
|
|
207
|
+
checked: a.activeKpis.includes(
|
|
208
|
+
"Safety"
|
|
209
|
+
),
|
|
210
|
+
onChange: () => t("activeKpis", "Safety")
|
|
211
|
+
}
|
|
212
|
+
),
|
|
213
|
+
"Safety"
|
|
214
|
+
] }),
|
|
215
|
+
/* @__PURE__ */ i(
|
|
216
|
+
"label",
|
|
217
|
+
{
|
|
218
|
+
className: `${e.kpiCheckboxRow}`,
|
|
219
|
+
children: [
|
|
220
|
+
/* @__PURE__ */ s(
|
|
221
|
+
"input",
|
|
222
|
+
{
|
|
223
|
+
type: "checkbox",
|
|
224
|
+
name: "activeKpis",
|
|
225
|
+
checked: a.activeKpis.includes(
|
|
226
|
+
"Stress"
|
|
227
|
+
),
|
|
228
|
+
onChange: () => t("activeKpis", "Stress")
|
|
229
|
+
}
|
|
230
|
+
),
|
|
231
|
+
"Stress"
|
|
232
|
+
]
|
|
233
|
+
}
|
|
234
|
+
),
|
|
235
|
+
/* @__PURE__ */ i("label", { className: e.kpiCheckboxRow, children: [
|
|
236
|
+
/* @__PURE__ */ s(
|
|
237
|
+
"input",
|
|
238
|
+
{
|
|
239
|
+
type: "checkbox",
|
|
240
|
+
name: "activeKpis",
|
|
241
|
+
checked: a.activeKpis.includes(
|
|
242
|
+
"Readiness to Learn"
|
|
243
|
+
),
|
|
244
|
+
onChange: () => t(
|
|
245
|
+
"activeKpis",
|
|
246
|
+
"Readiness to Learn"
|
|
247
|
+
)
|
|
248
|
+
}
|
|
249
|
+
),
|
|
250
|
+
"Readiness to Learn"
|
|
251
|
+
] }),
|
|
252
|
+
/* @__PURE__ */ i("label", { className: e.kpiCheckboxRow, children: [
|
|
253
|
+
/* @__PURE__ */ s(
|
|
254
|
+
"input",
|
|
255
|
+
{
|
|
256
|
+
type: "checkbox",
|
|
257
|
+
name: "activeKpis",
|
|
258
|
+
checked: a.activeKpis.includes(
|
|
259
|
+
"Decrease in Any Metric"
|
|
260
|
+
),
|
|
261
|
+
onChange: () => t(
|
|
262
|
+
"activeKpis",
|
|
263
|
+
"Decrease in Any Metric"
|
|
264
|
+
)
|
|
265
|
+
}
|
|
266
|
+
),
|
|
267
|
+
"Decrease in Any Metric"
|
|
268
|
+
] })
|
|
269
|
+
] })
|
|
270
|
+
]
|
|
271
|
+
}
|
|
272
|
+
),
|
|
273
|
+
/* @__PURE__ */ i(
|
|
274
|
+
"div",
|
|
275
|
+
{
|
|
276
|
+
className: `${e.editSection} ${e.editSectionBorder}`,
|
|
277
|
+
children: [
|
|
278
|
+
/* @__PURE__ */ i("div", { className: e.editSectionHeader, children: [
|
|
279
|
+
/* @__PURE__ */ s("h6", { className: e.editSectionTitle, children: "Configure Thresholds" }),
|
|
280
|
+
/* @__PURE__ */ s("p", { className: e.editSectionSubtitle, children: "Set the threshold values for each selected KPI" })
|
|
281
|
+
] }),
|
|
282
|
+
/* @__PURE__ */ i("div", { className: e.kpiCardList, children: [
|
|
283
|
+
/* @__PURE__ */ i(
|
|
284
|
+
"div",
|
|
285
|
+
{
|
|
286
|
+
className: `${e.kpiConfigCard} ${a.activeKpis.includes("Safety") ? e.kpiConfigCardActive : e.kpiConfigCardInactive}`,
|
|
287
|
+
children: [
|
|
288
|
+
/* @__PURE__ */ i("div", { className: e.kpiConfigCardHeader, children: [
|
|
289
|
+
/* @__PURE__ */ s("span", { className: e.kpiConfigCardName, children: "Safety" }),
|
|
290
|
+
/* @__PURE__ */ s(
|
|
291
|
+
"span",
|
|
292
|
+
{
|
|
293
|
+
className: a.activeKpis.includes(
|
|
294
|
+
"Safety"
|
|
295
|
+
) ? e.kpiStatusBadgeActive : e.kpiStatusBadgeInactive,
|
|
296
|
+
children: a.activeKpis.includes(
|
|
297
|
+
"Safety"
|
|
298
|
+
) ? "Active" : "Inactive"
|
|
299
|
+
}
|
|
300
|
+
)
|
|
301
|
+
] }),
|
|
302
|
+
/* @__PURE__ */ i("div", { className: e.kpiConfigCardBody, children: [
|
|
303
|
+
/* @__PURE__ */ i("div", { className: e.kpiConfigLeft, children: [
|
|
304
|
+
/* @__PURE__ */ s("p", { className: e.kpiThresholdLabel, children: "Threshold (trigger when lower than)" }),
|
|
305
|
+
/* @__PURE__ */ i("div", { className: e.kpiThresholdRow, children: [
|
|
306
|
+
/* @__PURE__ */ i(
|
|
307
|
+
"div",
|
|
308
|
+
{
|
|
309
|
+
className: e.kpiThresholdInputGroup,
|
|
310
|
+
children: [
|
|
311
|
+
/* @__PURE__ */ s(
|
|
312
|
+
"input",
|
|
313
|
+
{
|
|
314
|
+
type: "number",
|
|
315
|
+
name: "safetyThreshold",
|
|
316
|
+
className: e.kpiThresholdInput,
|
|
317
|
+
value: a.safetyThreshold,
|
|
318
|
+
onFocus: () => {
|
|
319
|
+
g.current = a.safetyThreshold;
|
|
320
|
+
},
|
|
321
|
+
onChange: (l) => r(
|
|
322
|
+
"safetyThreshold",
|
|
323
|
+
Number(l.target.value)
|
|
324
|
+
),
|
|
325
|
+
onBlur: (l) => {
|
|
326
|
+
const c = Number(l.target.value), C = a.minSafetyThreshold ?? 0, x = a.maxSafetyThreshold ?? 100;
|
|
327
|
+
(c < C || c > x) && (r("safetyThreshold", g.current), k(
|
|
328
|
+
S({
|
|
329
|
+
type: "danger",
|
|
330
|
+
message: `Flag Error
|
|
331
|
+
Threshold levels must have unique flag assignments. Yellow and red flags detected in the same range.`
|
|
332
|
+
})
|
|
333
|
+
));
|
|
334
|
+
},
|
|
335
|
+
min: a.minSafetyThreshold ?? 0,
|
|
336
|
+
max: a.maxSafetyThreshold ?? 100
|
|
337
|
+
}
|
|
338
|
+
),
|
|
339
|
+
/* @__PURE__ */ s(
|
|
340
|
+
"span",
|
|
341
|
+
{
|
|
342
|
+
className: e.kpiThresholdUnit,
|
|
343
|
+
children: "%"
|
|
344
|
+
}
|
|
345
|
+
)
|
|
346
|
+
]
|
|
347
|
+
}
|
|
348
|
+
),
|
|
349
|
+
/* @__PURE__ */ s(
|
|
350
|
+
"span",
|
|
351
|
+
{
|
|
352
|
+
className: `${e.badge} ${d}`,
|
|
353
|
+
children: T
|
|
354
|
+
}
|
|
355
|
+
)
|
|
356
|
+
] })
|
|
357
|
+
] }),
|
|
358
|
+
/* @__PURE__ */ i("div", { className: e.kpiConfigRight, children: [
|
|
359
|
+
/* @__PURE__ */ s("p", { className: e.scaleTableLabel, children: "Scale Reference" }),
|
|
360
|
+
/* @__PURE__ */ s("div", { className: e.scaleTable, children: a.safetyAnswers.map(
|
|
361
|
+
(l, c) => /* @__PURE__ */ i(
|
|
362
|
+
"div",
|
|
363
|
+
{
|
|
364
|
+
className: e.scaleRow,
|
|
365
|
+
children: [
|
|
366
|
+
/* @__PURE__ */ s(
|
|
367
|
+
"span",
|
|
368
|
+
{
|
|
369
|
+
className: `${e.scaleRange} ${Z[c]}`,
|
|
370
|
+
children: O[c]
|
|
371
|
+
}
|
|
372
|
+
),
|
|
373
|
+
/* @__PURE__ */ s(
|
|
374
|
+
"span",
|
|
375
|
+
{
|
|
376
|
+
className: e.scaleLabel,
|
|
377
|
+
children: l
|
|
378
|
+
}
|
|
379
|
+
)
|
|
380
|
+
]
|
|
381
|
+
},
|
|
382
|
+
c
|
|
383
|
+
)
|
|
384
|
+
) })
|
|
385
|
+
] })
|
|
386
|
+
] })
|
|
387
|
+
]
|
|
388
|
+
}
|
|
389
|
+
),
|
|
390
|
+
/* @__PURE__ */ i(
|
|
391
|
+
"div",
|
|
392
|
+
{
|
|
393
|
+
className: `${e.kpiConfigCard} ${a.activeKpis.includes("Stress") ? e.kpiConfigCardActive : e.kpiConfigCardInactive}`,
|
|
394
|
+
children: [
|
|
395
|
+
/* @__PURE__ */ i("div", { className: e.kpiConfigCardHeader, children: [
|
|
396
|
+
/* @__PURE__ */ s("span", { className: e.kpiConfigCardName, children: "Stress" }),
|
|
397
|
+
/* @__PURE__ */ s("span", { className: a.activeKpis.includes("Stress") ? e.kpiStatusBadgeActive : e.kpiStatusBadgeInactive, children: a.activeKpis.includes(
|
|
398
|
+
"Stress"
|
|
399
|
+
) ? "Active" : "Inactive" })
|
|
400
|
+
] }),
|
|
401
|
+
/* @__PURE__ */ i("div", { className: e.kpiConfigCardBody, children: [
|
|
402
|
+
/* @__PURE__ */ i("div", { className: e.kpiConfigLeft, children: [
|
|
403
|
+
/* @__PURE__ */ s("p", { className: e.kpiThresholdLabel, children: "Threshold (trigger when higher than)" }),
|
|
404
|
+
/* @__PURE__ */ i("div", { className: e.kpiThresholdRow, children: [
|
|
405
|
+
/* @__PURE__ */ i(
|
|
406
|
+
"div",
|
|
407
|
+
{
|
|
408
|
+
className: e.kpiThresholdInputGroup,
|
|
409
|
+
children: [
|
|
410
|
+
/* @__PURE__ */ s(
|
|
411
|
+
"input",
|
|
412
|
+
{
|
|
413
|
+
type: "number",
|
|
414
|
+
name: "stressThreshold",
|
|
415
|
+
className: e.kpiThresholdInput,
|
|
416
|
+
value: a.stressThreshold,
|
|
417
|
+
onFocus: () => {
|
|
418
|
+
u.current = a.stressThreshold;
|
|
419
|
+
},
|
|
420
|
+
onChange: (l) => r(
|
|
421
|
+
"stressThreshold",
|
|
422
|
+
Number(l.target.value)
|
|
423
|
+
),
|
|
424
|
+
onBlur: (l) => {
|
|
425
|
+
const c = Number(l.target.value), C = a.minStressThreshold ?? -100, x = a.maxStressThreshold ?? 100;
|
|
426
|
+
(c < C || c > x) && (r("stressThreshold", u.current), k(
|
|
427
|
+
S({
|
|
428
|
+
type: "danger",
|
|
429
|
+
message: `Flag Error
|
|
430
|
+
Threshold levels must have unique flag assignments. Yellow and red flags detected in the same range.`
|
|
431
|
+
})
|
|
432
|
+
));
|
|
433
|
+
},
|
|
434
|
+
min: a.minStressThreshold ?? -100,
|
|
435
|
+
max: a.maxStressThreshold ?? 100
|
|
436
|
+
}
|
|
437
|
+
),
|
|
438
|
+
/* @__PURE__ */ s(
|
|
439
|
+
"span",
|
|
440
|
+
{
|
|
441
|
+
className: e.kpiThresholdUnit,
|
|
442
|
+
children: "%"
|
|
443
|
+
}
|
|
444
|
+
)
|
|
445
|
+
]
|
|
446
|
+
}
|
|
447
|
+
),
|
|
448
|
+
/* @__PURE__ */ s(
|
|
449
|
+
"span",
|
|
450
|
+
{
|
|
451
|
+
className: `${e.badge} ${v}`,
|
|
452
|
+
children: h
|
|
453
|
+
}
|
|
454
|
+
)
|
|
455
|
+
] })
|
|
456
|
+
] }),
|
|
457
|
+
/* @__PURE__ */ i("div", { className: e.kpiConfigRight, children: [
|
|
458
|
+
/* @__PURE__ */ s("p", { className: e.scaleTableLabel, children: "Scale Reference" }),
|
|
459
|
+
/* @__PURE__ */ s("div", { className: e.scaleTable, children: a.stressAnswers.map(
|
|
460
|
+
(l, c) => /* @__PURE__ */ i(
|
|
461
|
+
"div",
|
|
462
|
+
{
|
|
463
|
+
className: e.scaleRow,
|
|
464
|
+
children: [
|
|
465
|
+
/* @__PURE__ */ s(
|
|
466
|
+
"span",
|
|
467
|
+
{
|
|
468
|
+
className: `${e.scaleRange} ${ee[c]}`,
|
|
469
|
+
children: q[c]
|
|
470
|
+
}
|
|
471
|
+
),
|
|
472
|
+
/* @__PURE__ */ s(
|
|
473
|
+
"span",
|
|
474
|
+
{
|
|
475
|
+
className: e.scaleLabel,
|
|
476
|
+
children: l
|
|
477
|
+
}
|
|
478
|
+
)
|
|
479
|
+
]
|
|
480
|
+
},
|
|
481
|
+
c
|
|
482
|
+
)
|
|
483
|
+
) })
|
|
484
|
+
] })
|
|
485
|
+
] })
|
|
486
|
+
]
|
|
487
|
+
}
|
|
488
|
+
),
|
|
489
|
+
/* @__PURE__ */ i(
|
|
490
|
+
"div",
|
|
491
|
+
{
|
|
492
|
+
className: `${e.kpiConfigCard} ${a.activeKpis.includes("Readiness to Learn") ? e.kpiConfigCardActive : e.kpiConfigCardInactive}`,
|
|
493
|
+
children: [
|
|
494
|
+
/* @__PURE__ */ i("div", { className: e.kpiConfigCardHeader, children: [
|
|
495
|
+
/* @__PURE__ */ s("span", { className: e.kpiConfigCardName, children: "Readiness to Learn" }),
|
|
496
|
+
/* @__PURE__ */ s(
|
|
497
|
+
"span",
|
|
498
|
+
{
|
|
499
|
+
className: a.activeKpis.includes(
|
|
500
|
+
"Readiness to Learn"
|
|
501
|
+
) ? e.kpiStatusBadgeActive : e.kpiStatusBadgeInactive,
|
|
502
|
+
children: a.activeKpis.includes(
|
|
503
|
+
"Readiness to Learn"
|
|
504
|
+
) ? "Active" : "Inactive"
|
|
505
|
+
}
|
|
506
|
+
)
|
|
507
|
+
] }),
|
|
508
|
+
/* @__PURE__ */ s("span", { className: e.kpiConfigCardDescription, children: `This flag will trigger when a student's readiness to learn is marked as "No"` }),
|
|
509
|
+
/* @__PURE__ */ i(
|
|
510
|
+
"div",
|
|
511
|
+
{
|
|
512
|
+
className: `${e.readyTriggerBlock} ${e.kpiSpace}`,
|
|
513
|
+
children: [
|
|
514
|
+
/* @__PURE__ */ s("p", { className: e.booleanTriggerLabel, children: "Trigger when readiness is:" }),
|
|
515
|
+
/* @__PURE__ */ s(
|
|
516
|
+
"span",
|
|
517
|
+
{
|
|
518
|
+
className: `${e.badge} ${e.badgeDanger}`,
|
|
519
|
+
children: "No (Not Ready)"
|
|
520
|
+
}
|
|
521
|
+
)
|
|
522
|
+
]
|
|
523
|
+
}
|
|
524
|
+
)
|
|
525
|
+
]
|
|
526
|
+
}
|
|
527
|
+
),
|
|
528
|
+
/* @__PURE__ */ i(
|
|
529
|
+
"div",
|
|
530
|
+
{
|
|
531
|
+
className: `${e.kpiConfigCard} ${a.activeKpis.includes("Decrease in Any Metric") ? e.kpiConfigCardActive : e.kpiConfigCardInactive}`,
|
|
532
|
+
children: [
|
|
533
|
+
/* @__PURE__ */ i("div", { className: e.kpiConfigCardHeader, children: [
|
|
534
|
+
/* @__PURE__ */ s("span", { className: e.kpiConfigCardName, children: "Decrease in Any Metric" }),
|
|
535
|
+
/* @__PURE__ */ s("span", { className: a.activeKpis.includes("Decrease in Any Metric") ? e.kpiStatusBadgeActive : e.kpiStatusBadgeInactive, children: a.activeKpis.includes(
|
|
536
|
+
"Decrease in Any Metric"
|
|
537
|
+
) ? "Active" : "Inactive" })
|
|
538
|
+
] }),
|
|
539
|
+
/* @__PURE__ */ i("span", { className: e.kpiConfigCardDescription, children: [
|
|
540
|
+
"This flag will trigger when a student's has a decrease of X% in any metric (success, readiness to learn , etc.) comparing with the average of the last 4 check-ins.",
|
|
541
|
+
" "
|
|
542
|
+
] }),
|
|
543
|
+
/* @__PURE__ */ s(
|
|
544
|
+
"div",
|
|
545
|
+
{
|
|
546
|
+
className: `${e.kpiConfigCardBody} ${e.kpiSpace}`,
|
|
547
|
+
children: /* @__PURE__ */ s("div", { className: e.kpiConfigLeft, children: /* @__PURE__ */ s("div", { className: e.kpiThresholdRow, children: /* @__PURE__ */ i(
|
|
548
|
+
"div",
|
|
549
|
+
{
|
|
550
|
+
className: e.kpiThresholdInputGroup,
|
|
551
|
+
children: [
|
|
552
|
+
/* @__PURE__ */ s(
|
|
553
|
+
"input",
|
|
554
|
+
{
|
|
555
|
+
type: "number",
|
|
556
|
+
className: e.kpiThresholdInput,
|
|
557
|
+
value: a.decreaseInAnyMetric,
|
|
558
|
+
onChange: (l) => r(
|
|
559
|
+
"decreaseInAnyMetric",
|
|
560
|
+
Math.min(
|
|
561
|
+
100,
|
|
562
|
+
Math.max(
|
|
563
|
+
0,
|
|
564
|
+
Number(
|
|
565
|
+
l.target.value
|
|
566
|
+
)
|
|
567
|
+
)
|
|
568
|
+
)
|
|
569
|
+
),
|
|
570
|
+
min: 0,
|
|
571
|
+
max: 100
|
|
572
|
+
}
|
|
573
|
+
),
|
|
574
|
+
/* @__PURE__ */ s(
|
|
575
|
+
"span",
|
|
576
|
+
{
|
|
577
|
+
className: e.kpiThresholdUnit,
|
|
578
|
+
children: "%"
|
|
579
|
+
}
|
|
580
|
+
)
|
|
581
|
+
]
|
|
582
|
+
}
|
|
583
|
+
) }) })
|
|
584
|
+
}
|
|
585
|
+
)
|
|
586
|
+
]
|
|
587
|
+
}
|
|
588
|
+
)
|
|
589
|
+
] })
|
|
590
|
+
]
|
|
591
|
+
}
|
|
592
|
+
),
|
|
593
|
+
/* @__PURE__ */ i("div", { className: e.editSection, children: [
|
|
594
|
+
/* @__PURE__ */ i("div", { className: e.editSectionHeader, children: [
|
|
595
|
+
/* @__PURE__ */ s("h6", { className: e.editSectionTitle, children: "Notification Settings" }),
|
|
596
|
+
/* @__PURE__ */ s("p", { className: e.editSectionSubtitle, children: "Choose who should receive notifications and how they receive them" })
|
|
597
|
+
] }),
|
|
598
|
+
/* @__PURE__ */ s("p", { className: e.notificationSubSection, children: "Recipients" }),
|
|
599
|
+
/* @__PURE__ */ i("div", { className: e.notificationCheckboxList, children: [
|
|
600
|
+
/* @__PURE__ */ i("label", { className: e.notificationCheckboxRow, children: [
|
|
601
|
+
/* @__PURE__ */ s(
|
|
602
|
+
"input",
|
|
603
|
+
{
|
|
604
|
+
type: "checkbox",
|
|
605
|
+
name: "recipientRoles",
|
|
606
|
+
checked: a.recipientRoles.includes(
|
|
607
|
+
"Educator"
|
|
608
|
+
),
|
|
609
|
+
onChange: () => t("recipientRoles", "Educator")
|
|
610
|
+
}
|
|
611
|
+
),
|
|
612
|
+
" ",
|
|
613
|
+
"Educator"
|
|
614
|
+
] }),
|
|
615
|
+
/* @__PURE__ */ i("label", { className: e.notificationCheckboxRow, children: [
|
|
616
|
+
/* @__PURE__ */ s(
|
|
617
|
+
"input",
|
|
618
|
+
{
|
|
619
|
+
type: "checkbox",
|
|
620
|
+
name: "recipientRoles",
|
|
621
|
+
checked: a.recipientRoles.includes(
|
|
622
|
+
"Counselor"
|
|
623
|
+
),
|
|
624
|
+
onChange: () => t("recipientRoles", "Counselor")
|
|
625
|
+
}
|
|
626
|
+
),
|
|
627
|
+
" ",
|
|
628
|
+
"Counselor"
|
|
629
|
+
] }),
|
|
630
|
+
/* @__PURE__ */ i("label", { className: e.notificationCheckboxRow, children: [
|
|
631
|
+
/* @__PURE__ */ s(
|
|
632
|
+
"input",
|
|
633
|
+
{
|
|
634
|
+
type: "checkbox",
|
|
635
|
+
name: "recipientRoles",
|
|
636
|
+
checked: a.recipientRoles.includes(
|
|
637
|
+
"Admin"
|
|
638
|
+
),
|
|
639
|
+
onChange: () => t("recipientRoles", "Admin")
|
|
640
|
+
}
|
|
641
|
+
),
|
|
642
|
+
" ",
|
|
643
|
+
"Admin"
|
|
644
|
+
] })
|
|
645
|
+
] }),
|
|
646
|
+
/* @__PURE__ */ s("p", { className: e.notificationSubSection, children: "Notification Methods" }),
|
|
647
|
+
/* @__PURE__ */ i("div", { className: e.notificationCheckboxList, children: [
|
|
648
|
+
/* @__PURE__ */ i("label", { className: e.notificationCheckboxRow, children: [
|
|
649
|
+
/* @__PURE__ */ s(
|
|
650
|
+
"input",
|
|
651
|
+
{
|
|
652
|
+
type: "checkbox",
|
|
653
|
+
name: "isInAppNotification",
|
|
654
|
+
checked: a.isInAppNotification,
|
|
655
|
+
onChange: () => r(
|
|
656
|
+
"isInAppNotification",
|
|
657
|
+
!a.isInAppNotification
|
|
658
|
+
)
|
|
659
|
+
}
|
|
660
|
+
),
|
|
661
|
+
" ",
|
|
662
|
+
"In-App Notification"
|
|
663
|
+
] }),
|
|
664
|
+
/* @__PURE__ */ i("label", { className: e.notificationCheckboxRow, children: [
|
|
665
|
+
/* @__PURE__ */ s(
|
|
666
|
+
"input",
|
|
667
|
+
{
|
|
668
|
+
type: "checkbox",
|
|
669
|
+
name: "isEmailNotification",
|
|
670
|
+
checked: a.isEmailNotification,
|
|
671
|
+
onChange: () => r(
|
|
672
|
+
"isEmailNotification",
|
|
673
|
+
!a.isEmailNotification
|
|
674
|
+
)
|
|
675
|
+
}
|
|
676
|
+
),
|
|
677
|
+
" ",
|
|
678
|
+
"Email Notification"
|
|
679
|
+
] })
|
|
680
|
+
] })
|
|
681
|
+
] }),
|
|
682
|
+
/* @__PURE__ */ s("div", { className: e.editSection, children: /* @__PURE__ */ i("div", { className: e.editSectionHeader, children: [
|
|
683
|
+
/* @__PURE__ */ s("h6", { className: e.editSectionTitle, children: "Time to send summary email" }),
|
|
684
|
+
/* @__PURE__ */ s("p", { className: e.editSectionSubtitle, children: "Choose the time to send summary email for educator daily" }),
|
|
685
|
+
/* @__PURE__ */ s(
|
|
686
|
+
j,
|
|
687
|
+
{
|
|
688
|
+
select: !0,
|
|
689
|
+
size: "small",
|
|
690
|
+
label: "Time",
|
|
691
|
+
value: a?.hourSendEmail ?? 16,
|
|
692
|
+
onChange: (l) => r("hourSendEmail", Number(l.target.value)),
|
|
693
|
+
disabled: !(a?.isEmailNotification ?? !0),
|
|
694
|
+
style: { width: "150px" },
|
|
695
|
+
children: Array.from({ length: 24 }).map((l, c) => {
|
|
696
|
+
const C = c === 0 ? "12:00 AM" : c < 12 ? `${c}:00 AM` : c === 12 ? "12:00 PM" : `${c - 12}:00 PM`;
|
|
697
|
+
return /* @__PURE__ */ s(W, { value: c, children: C }, c);
|
|
698
|
+
})
|
|
699
|
+
}
|
|
700
|
+
)
|
|
701
|
+
] }) })
|
|
702
|
+
] }),
|
|
703
|
+
/* @__PURE__ */ i("div", { className: e.editFooter, children: [
|
|
704
|
+
/* @__PURE__ */ s(I, { onClick: n, className: e.editCancelBtn, children: "Cancel" }),
|
|
705
|
+
/* @__PURE__ */ i(
|
|
706
|
+
I,
|
|
707
|
+
{
|
|
708
|
+
color: "primary",
|
|
709
|
+
className: e.editPageSaveBtn,
|
|
710
|
+
onClick: () => m(a),
|
|
711
|
+
children: [
|
|
712
|
+
/* @__PURE__ */ s(D, {}),
|
|
713
|
+
" Save Changes"
|
|
714
|
+
]
|
|
715
|
+
}
|
|
716
|
+
)
|
|
717
|
+
] })
|
|
718
|
+
] });
|
|
719
|
+
};
|
|
720
|
+
export {
|
|
721
|
+
de as default
|
|
722
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),h=require("react"),R=require("reactstrap"),A=require("./index-Cr971Te3.cjs"),e=require("./styles.module-BbMd8YwD.cjs"),y=require("mario-core"),M=require("react-redux"),$=require("react-router-dom"),B=require("@mui/material");var D=(t=>(t.OneToOne="OneToOne",t.Conference="Conference",t))(D||{});const w={questionText:"",questionId:void 0,text:"",flag:"",from:0,to:0,type:D.OneToOne,activeKpis:"",safetyThreshold:void 0,stressThreshold:void 0,decreaseInAnyMetric:void 0,recipientRoles:"",isInAppNotification:!1,isEmailNotification:!1,safetyAnswers:[],stressAnswers:[],maxSafetyThreshold:100,minSafetyThreshold:0},P=()=>{const t=M.useDispatch(),a=$.useNavigate(),{id:i}=$.useParams(),[c,m]=h.useState(w),[j,g]=h.useState(!1),u=async()=>{localStorage.setItem(window.location.href,"true"),g(!0)},x=async()=>{localStorage.getItem(window.location.href)&&localStorage.removeItem(window.location.href),g(!1)},f=h.useCallback((o,r)=>{m(d=>({...d,[o]:r})),u()},[m,u]),S=h.useCallback((o,r)=>{const d=c[o].split(",").map(N=>N.trim()).filter(Boolean),T=d.includes(r)?d.filter(N=>N!==r):[...d,r];f(o,T.join(","))},[c,f]),p=()=>{a("/admin/custom-alert")};h.useEffect(()=>{i?C():m(w)},[i]),h.useEffect(()=>{x()},[]);const C=h.useCallback(async()=>{t(y.setLoading(!0));try{if(!i)return;const o=await e.getById(i?Number(i):0);m(o.data)}catch(o){t(y.setAlert({type:"danger",message:o.response?.data?.title||o.message}))}t(y.setLoading(!1))},[i]),k=h.useCallback(async(o,r)=>{t(y.setLoading(!0));try{await e.update(o),t(y.setAlert({type:"success",message:"Update question alert successfully"})),r&&r()}catch(d){t(y.setAlert({type:"danger",message:d.response?.data?.title||d.message}))}t(y.setLoading(!1))},[i]);return{id:i,questionAlertDetail:c,setQuestionAlertDetail:m,getData:C,updateQuestionAlert:k,initValue:w,edited:j,setEdited:g,setEditedTrue:u,setEditedFalse:x,goBack:p,toggleField:S,handleChange:f,dispatch:t}},E={danger:e.styles.badgeDanger,warning:e.styles.badgeWarning,concern:e.styles.badgeConcern,safe:e.styles.badgeSafe,great:e.styles.badgeGreat},L=["danger","warning","concern","safe","great"],K=["great","safe","concern","warning","danger"],I=(t,a,i)=>Math.min(Math.max(t,a),i),q=t=>{if(t==null||isNaN(t))return-1;const a=I(t,0,100);return Math.min(Math.floor(a/20),4)},F=t=>{if(t==null||isNaN(t))return-1;const a=I(t,-100,100),i=(a+100)/40,c=a>=20?Math.floor(i):Math.ceil(i)-1;return I(c,0,4)},_=[e.styles.scaleRangeDanger,e.styles.scaleRangeDanger,e.styles.scaleRangeWarning,e.styles.scaleRangeSuccess,e.styles.scaleRangeSuccess],O=[e.styles.scaleRangeSuccess,e.styles.scaleRangeBlue,e.styles.scaleRangeWarning,e.styles.scaleRangeDanger,e.styles.scaleRangeDanger],G=()=>{const{goBack:t,questionAlertDetail:a,toggleField:i,handleChange:c,updateQuestionAlert:m,dispatch:j}=P(),g=h.useRef(a.safetyThreshold),u=h.useRef(a.stressThreshold),x=a.flag.toLocaleLowerCase().includes("red"),f=x?e.styles.editPageTitleRed:e.styles.editPageTitleYellow,S=x?e.styles.editPageRed:e.styles.editPageYellow,p=q(a.safetyThreshold),C=p>=0&&a.safetyAnswers?.[p]?a.safetyAnswers[p]:"Some Concerns",k=p>=0&&L[p]?L[p]:"concern",o=E[k],r=F(a.stressThreshold),d=r>=0&&a.stressAnswers?.[r]?a.stressAnswers[r]:"Overwhelmed",T=r>=0&&K[r]?K[r]:"danger",N=E[T];return s.jsxs("div",{className:`${e.styles.editPage} fadeIn animated`,children:[s.jsxs("div",{className:e.styles.editPageHeader,children:[s.jsxs("button",{className:e.styles.editPageBack,onClick:t,children:[s.jsx(A.IoArrowBack,{})," Back"]}),s.jsxs("div",{className:e.styles.editPageTitleBlock,children:[s.jsx("h5",{className:`${e.styles.editPageTitle} ${f}`,children:`Edit ${a.flag}`}),s.jsx("p",{className:e.styles.editPageSubtitle,children:a.text})]}),s.jsxs(R.Button,{color:"primary",className:e.styles.editPageSaveBtn,onClick:()=>m(a),children:[s.jsx(A.IoSaveOutline,{})," Save Changes"]})]}),s.jsxs("div",{className:`${e.styles.editPagePanel} ${S}`,children:[s.jsxs("div",{children:[s.jsx("p",{className:e.styles.editDescriptionLabel,children:"Trigger Conditions Description"}),s.jsx("textarea",{className:e.styles.editDescriptionInput,name:"text",value:a.text,onChange:n=>c("text",n.target.value),rows:1})]}),s.jsxs("div",{className:`${e.styles.editSection} ${e.styles.editSectionBorder}`,children:[s.jsxs("div",{className:e.styles.editSectionHeader,children:[s.jsx("h6",{className:e.styles.editSectionTitle,children:"Select KPIs to Monitor"}),s.jsx("p",{className:e.styles.editSectionSubtitle,children:"Choose which key performance indicators should trigger this flag"})]}),s.jsxs("div",{className:e.styles.kpiCheckboxList,children:[s.jsxs("label",{className:e.styles.kpiCheckboxRow,children:[s.jsx("input",{type:"checkbox",name:"activeKpis",checked:a.activeKpis.includes("Safety"),onChange:()=>i("activeKpis","Safety")}),"Safety"]}),s.jsxs("label",{className:`${e.styles.kpiCheckboxRow}`,children:[s.jsx("input",{type:"checkbox",name:"activeKpis",checked:a.activeKpis.includes("Stress"),onChange:()=>i("activeKpis","Stress")}),"Stress"]}),s.jsxs("label",{className:e.styles.kpiCheckboxRow,children:[s.jsx("input",{type:"checkbox",name:"activeKpis",checked:a.activeKpis.includes("Readiness to Learn"),onChange:()=>i("activeKpis","Readiness to Learn")}),"Readiness to Learn"]}),s.jsxs("label",{className:e.styles.kpiCheckboxRow,children:[s.jsx("input",{type:"checkbox",name:"activeKpis",checked:a.activeKpis.includes("Decrease in Any Metric"),onChange:()=>i("activeKpis","Decrease in Any Metric")}),"Decrease in Any Metric"]})]})]}),s.jsxs("div",{className:`${e.styles.editSection} ${e.styles.editSectionBorder}`,children:[s.jsxs("div",{className:e.styles.editSectionHeader,children:[s.jsx("h6",{className:e.styles.editSectionTitle,children:"Configure Thresholds"}),s.jsx("p",{className:e.styles.editSectionSubtitle,children:"Set the threshold values for each selected KPI"})]}),s.jsxs("div",{className:e.styles.kpiCardList,children:[s.jsxs("div",{className:`${e.styles.kpiConfigCard} ${a.activeKpis.includes("Safety")?e.styles.kpiConfigCardActive:e.styles.kpiConfigCardInactive}`,children:[s.jsxs("div",{className:e.styles.kpiConfigCardHeader,children:[s.jsx("span",{className:e.styles.kpiConfigCardName,children:"Safety"}),s.jsx("span",{className:a.activeKpis.includes("Safety")?e.styles.kpiStatusBadgeActive:e.styles.kpiStatusBadgeInactive,children:a.activeKpis.includes("Safety")?"Active":"Inactive"})]}),s.jsxs("div",{className:e.styles.kpiConfigCardBody,children:[s.jsxs("div",{className:e.styles.kpiConfigLeft,children:[s.jsx("p",{className:e.styles.kpiThresholdLabel,children:"Threshold (trigger when lower than)"}),s.jsxs("div",{className:e.styles.kpiThresholdRow,children:[s.jsxs("div",{className:e.styles.kpiThresholdInputGroup,children:[s.jsx("input",{type:"number",name:"safetyThreshold",className:e.styles.kpiThresholdInput,value:a.safetyThreshold,onFocus:()=>{g.current=a.safetyThreshold},onChange:n=>c("safetyThreshold",Number(n.target.value)),onBlur:n=>{const l=Number(n.target.value),v=a.minSafetyThreshold??0,b=a.maxSafetyThreshold??100;(l<v||l>b)&&(c("safetyThreshold",g.current),j(y.setAlert({type:"danger",message:`Flag Error
|
|
2
|
+
Threshold levels must have unique flag assignments. Yellow and red flags detected in the same range.`})))},min:a.minSafetyThreshold??0,max:a.maxSafetyThreshold??100}),s.jsx("span",{className:e.styles.kpiThresholdUnit,children:"%"})]}),s.jsx("span",{className:`${e.styles.badge} ${o}`,children:C})]})]}),s.jsxs("div",{className:e.styles.kpiConfigRight,children:[s.jsx("p",{className:e.styles.scaleTableLabel,children:"Scale Reference"}),s.jsx("div",{className:e.styles.scaleTable,children:a.safetyAnswers.map((n,l)=>s.jsxs("div",{className:e.styles.scaleRow,children:[s.jsx("span",{className:`${e.styles.scaleRange} ${_[l]}`,children:e.SAFETY_RANGES[l]}),s.jsx("span",{className:e.styles.scaleLabel,children:n})]},l))})]})]})]}),s.jsxs("div",{className:`${e.styles.kpiConfigCard} ${a.activeKpis.includes("Stress")?e.styles.kpiConfigCardActive:e.styles.kpiConfigCardInactive}`,children:[s.jsxs("div",{className:e.styles.kpiConfigCardHeader,children:[s.jsx("span",{className:e.styles.kpiConfigCardName,children:"Stress"}),s.jsx("span",{className:a.activeKpis.includes("Stress")?e.styles.kpiStatusBadgeActive:e.styles.kpiStatusBadgeInactive,children:a.activeKpis.includes("Stress")?"Active":"Inactive"})]}),s.jsxs("div",{className:e.styles.kpiConfigCardBody,children:[s.jsxs("div",{className:e.styles.kpiConfigLeft,children:[s.jsx("p",{className:e.styles.kpiThresholdLabel,children:"Threshold (trigger when higher than)"}),s.jsxs("div",{className:e.styles.kpiThresholdRow,children:[s.jsxs("div",{className:e.styles.kpiThresholdInputGroup,children:[s.jsx("input",{type:"number",name:"stressThreshold",className:e.styles.kpiThresholdInput,value:a.stressThreshold,onFocus:()=>{u.current=a.stressThreshold},onChange:n=>c("stressThreshold",Number(n.target.value)),onBlur:n=>{const l=Number(n.target.value),v=a.minStressThreshold??-100,b=a.maxStressThreshold??100;(l<v||l>b)&&(c("stressThreshold",u.current),j(y.setAlert({type:"danger",message:`Flag Error
|
|
3
|
+
Threshold levels must have unique flag assignments. Yellow and red flags detected in the same range.`})))},min:a.minStressThreshold??-100,max:a.maxStressThreshold??100}),s.jsx("span",{className:e.styles.kpiThresholdUnit,children:"%"})]}),s.jsx("span",{className:`${e.styles.badge} ${N}`,children:d})]})]}),s.jsxs("div",{className:e.styles.kpiConfigRight,children:[s.jsx("p",{className:e.styles.scaleTableLabel,children:"Scale Reference"}),s.jsx("div",{className:e.styles.scaleTable,children:a.stressAnswers.map((n,l)=>s.jsxs("div",{className:e.styles.scaleRow,children:[s.jsx("span",{className:`${e.styles.scaleRange} ${O[l]}`,children:e.STRESS_RANGES[l]}),s.jsx("span",{className:e.styles.scaleLabel,children:n})]},l))})]})]})]}),s.jsxs("div",{className:`${e.styles.kpiConfigCard} ${a.activeKpis.includes("Readiness to Learn")?e.styles.kpiConfigCardActive:e.styles.kpiConfigCardInactive}`,children:[s.jsxs("div",{className:e.styles.kpiConfigCardHeader,children:[s.jsx("span",{className:e.styles.kpiConfigCardName,children:"Readiness to Learn"}),s.jsx("span",{className:a.activeKpis.includes("Readiness to Learn")?e.styles.kpiStatusBadgeActive:e.styles.kpiStatusBadgeInactive,children:a.activeKpis.includes("Readiness to Learn")?"Active":"Inactive"})]}),s.jsx("span",{className:e.styles.kpiConfigCardDescription,children:`This flag will trigger when a student's readiness to learn is marked as "No"`}),s.jsxs("div",{className:`${e.styles.readyTriggerBlock} ${e.styles.kpiSpace}`,children:[s.jsx("p",{className:e.styles.booleanTriggerLabel,children:"Trigger when readiness is:"}),s.jsx("span",{className:`${e.styles.badge} ${e.styles.badgeDanger}`,children:"No (Not Ready)"})]})]}),s.jsxs("div",{className:`${e.styles.kpiConfigCard} ${a.activeKpis.includes("Decrease in Any Metric")?e.styles.kpiConfigCardActive:e.styles.kpiConfigCardInactive}`,children:[s.jsxs("div",{className:e.styles.kpiConfigCardHeader,children:[s.jsx("span",{className:e.styles.kpiConfigCardName,children:"Decrease in Any Metric"}),s.jsx("span",{className:a.activeKpis.includes("Decrease in Any Metric")?e.styles.kpiStatusBadgeActive:e.styles.kpiStatusBadgeInactive,children:a.activeKpis.includes("Decrease in Any Metric")?"Active":"Inactive"})]}),s.jsxs("span",{className:e.styles.kpiConfigCardDescription,children:["This flag will trigger when a student's has a decrease of X% in any metric (success, readiness to learn , etc.) comparing with the average of the last 4 check-ins."," "]}),s.jsx("div",{className:`${e.styles.kpiConfigCardBody} ${e.styles.kpiSpace}`,children:s.jsx("div",{className:e.styles.kpiConfigLeft,children:s.jsx("div",{className:e.styles.kpiThresholdRow,children:s.jsxs("div",{className:e.styles.kpiThresholdInputGroup,children:[s.jsx("input",{type:"number",className:e.styles.kpiThresholdInput,value:a.decreaseInAnyMetric,onChange:n=>c("decreaseInAnyMetric",Math.min(100,Math.max(0,Number(n.target.value)))),min:0,max:100}),s.jsx("span",{className:e.styles.kpiThresholdUnit,children:"%"})]})})})})]})]})]}),s.jsxs("div",{className:e.styles.editSection,children:[s.jsxs("div",{className:e.styles.editSectionHeader,children:[s.jsx("h6",{className:e.styles.editSectionTitle,children:"Notification Settings"}),s.jsx("p",{className:e.styles.editSectionSubtitle,children:"Choose who should receive notifications and how they receive them"})]}),s.jsx("p",{className:e.styles.notificationSubSection,children:"Recipients"}),s.jsxs("div",{className:e.styles.notificationCheckboxList,children:[s.jsxs("label",{className:e.styles.notificationCheckboxRow,children:[s.jsx("input",{type:"checkbox",name:"recipientRoles",checked:a.recipientRoles.includes("Educator"),onChange:()=>i("recipientRoles","Educator")})," ","Educator"]}),s.jsxs("label",{className:e.styles.notificationCheckboxRow,children:[s.jsx("input",{type:"checkbox",name:"recipientRoles",checked:a.recipientRoles.includes("Counselor"),onChange:()=>i("recipientRoles","Counselor")})," ","Counselor"]}),s.jsxs("label",{className:e.styles.notificationCheckboxRow,children:[s.jsx("input",{type:"checkbox",name:"recipientRoles",checked:a.recipientRoles.includes("Admin"),onChange:()=>i("recipientRoles","Admin")})," ","Admin"]})]}),s.jsx("p",{className:e.styles.notificationSubSection,children:"Notification Methods"}),s.jsxs("div",{className:e.styles.notificationCheckboxList,children:[s.jsxs("label",{className:e.styles.notificationCheckboxRow,children:[s.jsx("input",{type:"checkbox",name:"isInAppNotification",checked:a.isInAppNotification,onChange:()=>c("isInAppNotification",!a.isInAppNotification)})," ","In-App Notification"]}),s.jsxs("label",{className:e.styles.notificationCheckboxRow,children:[s.jsx("input",{type:"checkbox",name:"isEmailNotification",checked:a.isEmailNotification,onChange:()=>c("isEmailNotification",!a.isEmailNotification)})," ","Email Notification"]})]})]}),s.jsx("div",{className:e.styles.editSection,children:s.jsxs("div",{className:e.styles.editSectionHeader,children:[s.jsx("h6",{className:e.styles.editSectionTitle,children:"Time to send summary email"}),s.jsx("p",{className:e.styles.editSectionSubtitle,children:"Choose the time to send summary email for educator daily"}),s.jsx(B.TextField,{select:!0,size:"small",label:"Time",value:a?.hourSendEmail??16,onChange:n=>c("hourSendEmail",Number(n.target.value)),disabled:!(a?.isEmailNotification??!0),style:{width:"150px"},children:Array.from({length:24}).map((n,l)=>{const v=l===0?"12:00 AM":l<12?`${l}:00 AM`:l===12?"12:00 PM":`${l-12}:00 PM`;return s.jsx(B.MenuItem,{value:l,children:v},l)})})]})})]}),s.jsxs("div",{className:e.styles.editFooter,children:[s.jsx(R.Button,{onClick:t,className:e.styles.editCancelBtn,children:"Cancel"}),s.jsxs(R.Button,{color:"primary",className:e.styles.editPageSaveBtn,onClick:()=>m(a),children:[s.jsx(A.IoSaveOutline,{})," Save Changes"]})]})]})};exports.default=G;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("mario-core"),t=require("@ag-grid-enterprise/core"),e=require("react"),n=e.lazy(()=>Promise.resolve().then(()=>require("./ConferenceRubricList-CASLPVnE.cjs"))),i=e.lazy(()=>Promise.resolve().then(()=>require("./ConferenceRubricDetail-BcKMyu7H.cjs"))),s=e.lazy(()=>Promise.resolve().then(()=>require("./LearningStrategyList-c9ut_ZBs.cjs"))),a=e.lazy(()=>Promise.resolve().then(()=>require("./SetupContainer-j8hhfjeL.cjs"))),l=e.lazy(()=>Promise.resolve().then(()=>require("./QuestionBankList-CrB0n_-u.cjs"))),u=e.lazy(()=>Promise.resolve().then(()=>require("./ReflectionContainer-T8k3ipxn.cjs"))),m=e.lazy(()=>Promise.resolve().then(()=>require("./QuestionDetail-Bt7lZ36M.cjs"))),y=e.lazy(()=>Promise.resolve().then(()=>require("./SubjectList-DBvEGKQs.cjs"))),v=e.lazy(()=>Promise.resolve().then(()=>require("./LearningSupportCategoryList-BpCRx0CF.cjs"))),c=e.lazy(()=>Promise.resolve().then(()=>require("./BadgeList-DHs-Rsvu.cjs"))),P=e.lazy(()=>Promise.resolve().then(()=>require("./GoalExampleList-DdkEu4hA.cjs"))),h=e.lazy(()=>Promise.resolve().then(()=>require("./TutorialScreenContainer-Cc7pBhl5.cjs"))),q=e.lazy(()=>Promise.resolve().then(()=>require("./QuestionBankContainer-Bjh5LiB1.cjs"))),z=e.lazy(()=>Promise.resolve().then(()=>require("./SurveyQuestionContainer-CGSa7zSH.cjs"))),S=e.lazy(()=>Promise.resolve().then(()=>require("./SessionTemplateDetail-B9-wcCpc.cjs"))),d=e.lazy(()=>Promise.resolve().then(()=>require("./CustomAlertList-C9WlP5dR.cjs"))),C=e.lazy(()=>Promise.resolve().then(()=>require("./AssetLog-Bexcnjvn.cjs"))),g=e.lazy(()=>Promise.resolve().then(()=>require("./Dashboard-B1zCcw9f.cjs"))),p=e.lazy(()=>Promise.resolve().then(()=>require("./AdminTraining-CFhKwWEu.cjs"))),A=e.lazy(()=>Promise.resolve().then(()=>require("./TemplateContainer-wVMb1knJ.cjs"))),L=e.lazy(()=>Promise.resolve().then(()=>require("./OneRosterContainer-cE-kU6Ly.cjs"))),D=e.lazy(()=>Promise.resolve().then(()=>require("./SandboxContainer-2xT8qr0Z.cjs"))),b=e.lazy(()=>Promise.resolve().then(()=>require("./TemplateBuilderPage-RtTtRDYv.cjs"))),Q=e.lazy(()=>Promise.resolve().then(()=>require("./TemplateStartBuild-L-GJIKx5.cjs"))),T=e.lazy(()=>Promise.resolve().then(()=>require("./SurveyDashboardContainer-FFtQDVoj.cjs"))),W=e.lazy(()=>Promise.resolve().then(()=>require("./RevertUser-BQszWVGK.cjs"))),f=e.lazy(()=>Promise.resolve().then(()=>require("./CustomQuestionAlert-C8EpG87H.cjs"))),R=e.lazy(()=>Promise.resolve().then(()=>require("./SurveyDetailAdmin-BaBoA_m0.cjs"))),B=e.lazy(()=>Promise.resolve().then(()=>require("./SurveyStudentFlagListAdmin-NpLnUUks.cjs"))),M=e.lazy(()=>Promise.resolve().then(()=>require("./SurveyResultAdmin-Bmwp-X33.cjs"))),k=e.lazy(()=>Promise.resolve().then(()=>require("./SurveyIndexAdmin-CwpVoOUA.cjs"))),F=e.lazy(()=>Promise.resolve().then(()=>require("./CreateSurveyAdmin-BHwRSSCq.cjs"))),I=e.lazy(()=>Promise.resolve().then(()=>require("./PreviewSurveyAdmin-BjnHuw4d.cjs"))),x=e.lazy(()=>Promise.resolve().then(()=>require("./ExternalApi-C9QAZfYm.cjs"))),E=e.lazy(()=>Promise.resolve().then(()=>require("./WeeklyQuest-B_Vw_BP5.cjs"))),O=e.lazy(()=>Promise.resolve().then(()=>require("./SettingWeeklyQuest-CDi1sio0.cjs"))),w=e.lazy(()=>Promise.resolve().then(()=>require("./HomePage-Dj_9gia6.cjs"))),G=e.lazy(()=>Promise.resolve().then(()=>require("./MainLayoutAdmin-BCH_8O1B.cjs"))),H=e.lazy(()=>Promise.resolve().then(()=>require("./SyncData-C2Shc7Al.cjs"))),U=e.lazy(()=>Promise.resolve().then(()=>require("./SummarizeQuestion-CxQR_WIb.cjs"))),j=e.lazy(()=>Promise.resolve().then(()=>require("./SurveyQuestion-BVq6vu5M.cjs"))),V=e.lazy(()=>Promise.resolve().then(()=>require("./MarioAi-CqHtgeFP.cjs"))),K=e.lazy(()=>Promise.resolve().then(()=>require("./AIMario-DP2HBmgn.cjs"))),N=e.lazy(()=>Promise.resolve().then(()=>require("./ChatWithAI-DOQCVUXe.cjs"))),_=e.lazy(()=>Promise.resolve().then(()=>require("./ViewHistoryPrompt-DAaaXoCx.cjs"))),$=e.lazy(()=>Promise.resolve().then(()=>require("./SurveyPortal-CRWz4TYf.cjs"))),J=e.lazy(()=>Promise.resolve().then(()=>require("./ConversationGoal-DpXDZc4j.cjs"))),X=e.lazy(()=>Promise.resolve().then(()=>require("./FrequencyAndSetup-DYXSMEnN.cjs"))),Y=e.lazy(()=>Promise.resolve().then(()=>require("./DesignatedStaff-DPzjf1sF.cjs"))),Z=e.lazy(()=>Promise.resolve().then(()=>require("./WellBeingDashboard-DwjpUHH2.cjs"))),ee=e.lazy(()=>Promise.resolve().then(()=>require("./OpenFieldWellbeingQuestion-Z3w7NmKC.cjs"))),re=e.lazy(()=>Promise.resolve().then(()=>require("./MyProfile-Ci7ubPZE.cjs"))),oe=e.lazy(()=>Promise.resolve().then(()=>require("./UserProfileManagement-BN6nZmKa.cjs"))),te=e.lazy(()=>Promise.resolve().then(()=>require("./EditFlagCard-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("mario-core"),t=require("@ag-grid-enterprise/core"),e=require("react"),n=e.lazy(()=>Promise.resolve().then(()=>require("./ConferenceRubricList-CASLPVnE.cjs"))),i=e.lazy(()=>Promise.resolve().then(()=>require("./ConferenceRubricDetail-BcKMyu7H.cjs"))),s=e.lazy(()=>Promise.resolve().then(()=>require("./LearningStrategyList-c9ut_ZBs.cjs"))),a=e.lazy(()=>Promise.resolve().then(()=>require("./SetupContainer-j8hhfjeL.cjs"))),l=e.lazy(()=>Promise.resolve().then(()=>require("./QuestionBankList-CrB0n_-u.cjs"))),u=e.lazy(()=>Promise.resolve().then(()=>require("./ReflectionContainer-T8k3ipxn.cjs"))),m=e.lazy(()=>Promise.resolve().then(()=>require("./QuestionDetail-Bt7lZ36M.cjs"))),y=e.lazy(()=>Promise.resolve().then(()=>require("./SubjectList-DBvEGKQs.cjs"))),v=e.lazy(()=>Promise.resolve().then(()=>require("./LearningSupportCategoryList-BpCRx0CF.cjs"))),c=e.lazy(()=>Promise.resolve().then(()=>require("./BadgeList-DHs-Rsvu.cjs"))),P=e.lazy(()=>Promise.resolve().then(()=>require("./GoalExampleList-DdkEu4hA.cjs"))),h=e.lazy(()=>Promise.resolve().then(()=>require("./TutorialScreenContainer-Cc7pBhl5.cjs"))),q=e.lazy(()=>Promise.resolve().then(()=>require("./QuestionBankContainer-Bjh5LiB1.cjs"))),z=e.lazy(()=>Promise.resolve().then(()=>require("./SurveyQuestionContainer-CGSa7zSH.cjs"))),S=e.lazy(()=>Promise.resolve().then(()=>require("./SessionTemplateDetail-B9-wcCpc.cjs"))),d=e.lazy(()=>Promise.resolve().then(()=>require("./CustomAlertList-C9WlP5dR.cjs"))),C=e.lazy(()=>Promise.resolve().then(()=>require("./AssetLog-Bexcnjvn.cjs"))),g=e.lazy(()=>Promise.resolve().then(()=>require("./Dashboard-B1zCcw9f.cjs"))),p=e.lazy(()=>Promise.resolve().then(()=>require("./AdminTraining-CFhKwWEu.cjs"))),A=e.lazy(()=>Promise.resolve().then(()=>require("./TemplateContainer-wVMb1knJ.cjs"))),L=e.lazy(()=>Promise.resolve().then(()=>require("./OneRosterContainer-cE-kU6Ly.cjs"))),D=e.lazy(()=>Promise.resolve().then(()=>require("./SandboxContainer-2xT8qr0Z.cjs"))),b=e.lazy(()=>Promise.resolve().then(()=>require("./TemplateBuilderPage-RtTtRDYv.cjs"))),Q=e.lazy(()=>Promise.resolve().then(()=>require("./TemplateStartBuild-L-GJIKx5.cjs"))),T=e.lazy(()=>Promise.resolve().then(()=>require("./SurveyDashboardContainer-FFtQDVoj.cjs"))),W=e.lazy(()=>Promise.resolve().then(()=>require("./RevertUser-BQszWVGK.cjs"))),f=e.lazy(()=>Promise.resolve().then(()=>require("./CustomQuestionAlert-C8EpG87H.cjs"))),R=e.lazy(()=>Promise.resolve().then(()=>require("./SurveyDetailAdmin-BaBoA_m0.cjs"))),B=e.lazy(()=>Promise.resolve().then(()=>require("./SurveyStudentFlagListAdmin-NpLnUUks.cjs"))),M=e.lazy(()=>Promise.resolve().then(()=>require("./SurveyResultAdmin-Bmwp-X33.cjs"))),k=e.lazy(()=>Promise.resolve().then(()=>require("./SurveyIndexAdmin-CwpVoOUA.cjs"))),F=e.lazy(()=>Promise.resolve().then(()=>require("./CreateSurveyAdmin-BHwRSSCq.cjs"))),I=e.lazy(()=>Promise.resolve().then(()=>require("./PreviewSurveyAdmin-BjnHuw4d.cjs"))),x=e.lazy(()=>Promise.resolve().then(()=>require("./ExternalApi-C9QAZfYm.cjs"))),E=e.lazy(()=>Promise.resolve().then(()=>require("./WeeklyQuest-B_Vw_BP5.cjs"))),O=e.lazy(()=>Promise.resolve().then(()=>require("./SettingWeeklyQuest-CDi1sio0.cjs"))),w=e.lazy(()=>Promise.resolve().then(()=>require("./HomePage-Dj_9gia6.cjs"))),G=e.lazy(()=>Promise.resolve().then(()=>require("./MainLayoutAdmin-BCH_8O1B.cjs"))),H=e.lazy(()=>Promise.resolve().then(()=>require("./SyncData-C2Shc7Al.cjs"))),U=e.lazy(()=>Promise.resolve().then(()=>require("./SummarizeQuestion-CxQR_WIb.cjs"))),j=e.lazy(()=>Promise.resolve().then(()=>require("./SurveyQuestion-BVq6vu5M.cjs"))),V=e.lazy(()=>Promise.resolve().then(()=>require("./MarioAi-CqHtgeFP.cjs"))),K=e.lazy(()=>Promise.resolve().then(()=>require("./AIMario-DP2HBmgn.cjs"))),N=e.lazy(()=>Promise.resolve().then(()=>require("./ChatWithAI-DOQCVUXe.cjs"))),_=e.lazy(()=>Promise.resolve().then(()=>require("./ViewHistoryPrompt-DAaaXoCx.cjs"))),$=e.lazy(()=>Promise.resolve().then(()=>require("./SurveyPortal-CRWz4TYf.cjs"))),J=e.lazy(()=>Promise.resolve().then(()=>require("./ConversationGoal-DpXDZc4j.cjs"))),X=e.lazy(()=>Promise.resolve().then(()=>require("./FrequencyAndSetup-DYXSMEnN.cjs"))),Y=e.lazy(()=>Promise.resolve().then(()=>require("./DesignatedStaff-DPzjf1sF.cjs"))),Z=e.lazy(()=>Promise.resolve().then(()=>require("./WellBeingDashboard-DwjpUHH2.cjs"))),ee=e.lazy(()=>Promise.resolve().then(()=>require("./OpenFieldWellbeingQuestion-Z3w7NmKC.cjs"))),re=e.lazy(()=>Promise.resolve().then(()=>require("./MyProfile-Ci7ubPZE.cjs"))),oe=e.lazy(()=>Promise.resolve().then(()=>require("./UserProfileManagement-BN6nZmKa.cjs"))),te=e.lazy(()=>Promise.resolve().then(()=>require("./EditFlagCard-rD3j6Ni2.cjs"))),ne=e.lazy(()=>Promise.resolve().then(()=>require("./ConversationTarget-58vm-69p.cjs"))),ie=e.lazy(()=>Promise.resolve().then(()=>require("./TeacherConversations-oDH8-5A2.cjs")).then(r=>r.TeacherConversations$1)),se=e.lazy(()=>Promise.resolve().then(()=>require("./index-DFrRk7yz.cjs"))),ae=e.lazy(()=>Promise.resolve().then(()=>require("./index-C_on_woZ.cjs"))),le=e.lazy(()=>Promise.resolve().then(()=>require("./DashboardWrapper-BqcF82EB.cjs"))),ue=e.lazy(()=>Promise.resolve().then(()=>require("./FlagAlertWrapper-D_OLRdEa.cjs"))),me=e.lazy(()=>Promise.resolve().then(()=>require("./PersonalLearningPlansWrapper-CDAwvKfS.cjs")));t.LicenseManager.setLicenseKey(o.LICENSE_AGGRID);exports.AIMario=K;exports.AdminTraining=p;exports.AssetLog=C;exports.BadgeList=c;exports.ChatWithAI=N;exports.CheckInSetup=se;exports.ConferenceRubricDetail=i;exports.ConferenceRubricList=n;exports.ConversationGoal=J;exports.ConversationTarget=ne;exports.CreateSurveyAdmin=F;exports.CustomAlertList=d;exports.CustomQuestionAlert=f;exports.Dashboard=g;exports.DashboardWrapper=le;exports.DesignatedStaff=Y;exports.EditFlagCard=te;exports.ExternalApi=x;exports.FlagAlertWrapper=ue;exports.FrequencyAndSetup=X;exports.GoalExampleList=P;exports.HomePage=w;exports.LearningStrategyList=s;exports.LearningSupportCategoryList=v;exports.MainLayoutAdmin=G;exports.MarioAi=V;exports.MyProfile=re;exports.OneRosterContainer=L;exports.OpenFieldWellbeingQuestion=ee;exports.Overview=ae;exports.PersonalLearningPlansWrapper=me;exports.PreviewSurveyAdmin=I;exports.QuestionBankContainer=q;exports.QuestionBankList=l;exports.QuestionDetail=m;exports.ReflectionContainer=u;exports.RevertUser=W;exports.SandboxContainer=D;exports.SessionTemplateDetail=S;exports.SettingWeeklyQuest=O;exports.SetupContainer=a;exports.SubjectList=y;exports.SummarizeQuestion=U;exports.SurveyDashboardContainer=T;exports.SurveyDetailAdmin=R;exports.SurveyIndexAdmin=k;exports.SurveyPortal=$;exports.SurveyQuestion=j;exports.SurveyQuestionContainer=z;exports.SurveyResultAdmin=M;exports.SurveyStudentFlagListAdmin=B;exports.SyncData=H;exports.TeacherConversations=ie;exports.TemplateBuilderPage=b;exports.TemplateContainer=A;exports.TemplateStartBuild=Q;exports.TutorialScreenContainer=h;exports.UserProfileManagement=oe;exports.ViewHistoryPrompt=_;exports.WeeklyQuest=E;exports.WellBeingDashboard=Z;
|
package/dist/index.modern.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LICENSE_AGGRID as n } from "mario-core";
|
|
2
2
|
import { LicenseManager as r } from "@ag-grid-enterprise/core";
|
|
3
3
|
import { lazy as t } from "react";
|
|
4
|
-
const m = t(() => import("./ConferenceRubricList-BMS__Zhg.js")), p = t(() => import("./ConferenceRubricDetail-Dkw4IAmz.js")), a = t(() => import("./LearningStrategyList-CXDUExaq.js")), c = t(() => import("./SetupContainer-Jy0SNWce.js")), u = t(() => import("./QuestionBankList-DJifni6K.js")), l = t(() => import("./ReflectionContainer-DYumB3DG.js")), S = t(() => import("./QuestionDetail-B4vkT9uW.js")), d = t(() => import("./SubjectList-ewa6hXBk.js")), C = t(() => import("./LearningSupportCategoryList-BmFj6dul.js")), y = t(() => import("./BadgeList-DUEUMpRP.js")), g = t(() => import("./GoalExampleList-DwoJ0Zn_.js")), A = t(() => import("./TutorialScreenContainer-BIhGp5Xb.js")), v = t(() => import("./QuestionBankContainer-CKs40aJ0.js")), L = t(() => import("./SurveyQuestionContainer-9ktS0uMM.js")), D = t(() => import("./SessionTemplateDetail-Y0ShCfW-.js")), b = t(() => import("./CustomAlertList-CEBlJZHr.js")), f = t(() => import("./AssetLog-9i4_srMc.js")), Q = t(() => import("./Dashboard-Dr8ts3ps.js")), h = t(() => import("./AdminTraining-BS64lsyg.js")), P = t(() => import("./TemplateContainer-CPK7IVP1.js")), T = t(() => import("./OneRosterContainer-A2ngteit.js")), W = t(() => import("./SandboxContainer-DmPlQa8l.js")), R = t(() => import("./TemplateBuilderPage-DzJLw-Su.js")), B = t(() => import("./TemplateStartBuild-naD1Xn49.js")), I = t(() => import("./SurveyDashboardContainer-BEc3fYcY.js")), M = t(() => import("./RevertUser-bHci1c1Z.js")), k = t(() => import("./CustomQuestionAlert-E8URxUBD.js")), x = t(() => import("./SurveyDetailAdmin-BCmcuW3p.js")), E = t(() => import("./SurveyStudentFlagListAdmin-SXnu2HpK.js")), F = t(() => import("./SurveyResultAdmin-DYu8Kvy2.js")), G = t(() => import("./SurveyIndexAdmin-D2WMAjgg.js")), w = t(() => import("./CreateSurveyAdmin-DvHW5Xfl.js")), O = t(() => import("./PreviewSurveyAdmin-CqjaHoN7.js")), z = t(() => import("./ExternalApi-CFsQM9Kw.js")), H = t(() => import("./WeeklyQuest-D8B5Fw-0.js")), U = t(() => import("./SettingWeeklyQuest-D61948jR.js")), j = t(() => import("./HomePage-Wp52RhWh.js")), q = t(() => import("./MainLayoutAdmin-3xAJReUH.js")), K = t(() => import("./SyncData-BTSEX_ZA.js")), N = t(() => import("./SummarizeQuestion-D_RYoT5M.js")), V = t(() => import("./SurveyQuestion-BVp8gZ4d.js")), _ = t(() => import("./MarioAi-B-ricYkP.js")), J = t(() => import("./AIMario-Bk_MPYou.js")), X = t(() => import("./ChatWithAI-Da8rIe7x.js")), Y = t(() => import("./ViewHistoryPrompt-BH7HEaKc.js")), Z = t(() => import("./SurveyPortal-WCUgHo68.js")), $ = t(() => import("./ConversationGoal-CPtGyH13.js")), tt = t(() => import("./FrequencyAndSetup-BrHauewt.js")), ot = t(() => import("./DesignatedStaff-CVjs0LG4.js")), nt = t(() => import("./WellBeingDashboard-DT_i-ghk.js")), rt = t(() => import("./OpenFieldWellbeingQuestion-Cp7Nn8Q7.js")), it = t(() => import("./MyProfile-BtlyDPG3.js")), et = t(() => import("./UserProfileManagement-BjKkSVSJ.js")), st = t(() => import("./EditFlagCard-
|
|
4
|
+
const m = t(() => import("./ConferenceRubricList-BMS__Zhg.js")), p = t(() => import("./ConferenceRubricDetail-Dkw4IAmz.js")), a = t(() => import("./LearningStrategyList-CXDUExaq.js")), c = t(() => import("./SetupContainer-Jy0SNWce.js")), u = t(() => import("./QuestionBankList-DJifni6K.js")), l = t(() => import("./ReflectionContainer-DYumB3DG.js")), S = t(() => import("./QuestionDetail-B4vkT9uW.js")), d = t(() => import("./SubjectList-ewa6hXBk.js")), C = t(() => import("./LearningSupportCategoryList-BmFj6dul.js")), y = t(() => import("./BadgeList-DUEUMpRP.js")), g = t(() => import("./GoalExampleList-DwoJ0Zn_.js")), A = t(() => import("./TutorialScreenContainer-BIhGp5Xb.js")), v = t(() => import("./QuestionBankContainer-CKs40aJ0.js")), L = t(() => import("./SurveyQuestionContainer-9ktS0uMM.js")), D = t(() => import("./SessionTemplateDetail-Y0ShCfW-.js")), b = t(() => import("./CustomAlertList-CEBlJZHr.js")), f = t(() => import("./AssetLog-9i4_srMc.js")), Q = t(() => import("./Dashboard-Dr8ts3ps.js")), h = t(() => import("./AdminTraining-BS64lsyg.js")), P = t(() => import("./TemplateContainer-CPK7IVP1.js")), T = t(() => import("./OneRosterContainer-A2ngteit.js")), W = t(() => import("./SandboxContainer-DmPlQa8l.js")), R = t(() => import("./TemplateBuilderPage-DzJLw-Su.js")), B = t(() => import("./TemplateStartBuild-naD1Xn49.js")), I = t(() => import("./SurveyDashboardContainer-BEc3fYcY.js")), M = t(() => import("./RevertUser-bHci1c1Z.js")), k = t(() => import("./CustomQuestionAlert-E8URxUBD.js")), x = t(() => import("./SurveyDetailAdmin-BCmcuW3p.js")), E = t(() => import("./SurveyStudentFlagListAdmin-SXnu2HpK.js")), F = t(() => import("./SurveyResultAdmin-DYu8Kvy2.js")), G = t(() => import("./SurveyIndexAdmin-D2WMAjgg.js")), w = t(() => import("./CreateSurveyAdmin-DvHW5Xfl.js")), O = t(() => import("./PreviewSurveyAdmin-CqjaHoN7.js")), z = t(() => import("./ExternalApi-CFsQM9Kw.js")), H = t(() => import("./WeeklyQuest-D8B5Fw-0.js")), U = t(() => import("./SettingWeeklyQuest-D61948jR.js")), j = t(() => import("./HomePage-Wp52RhWh.js")), q = t(() => import("./MainLayoutAdmin-3xAJReUH.js")), K = t(() => import("./SyncData-BTSEX_ZA.js")), N = t(() => import("./SummarizeQuestion-D_RYoT5M.js")), V = t(() => import("./SurveyQuestion-BVp8gZ4d.js")), _ = t(() => import("./MarioAi-B-ricYkP.js")), J = t(() => import("./AIMario-Bk_MPYou.js")), X = t(() => import("./ChatWithAI-Da8rIe7x.js")), Y = t(() => import("./ViewHistoryPrompt-BH7HEaKc.js")), Z = t(() => import("./SurveyPortal-WCUgHo68.js")), $ = t(() => import("./ConversationGoal-CPtGyH13.js")), tt = t(() => import("./FrequencyAndSetup-BrHauewt.js")), ot = t(() => import("./DesignatedStaff-CVjs0LG4.js")), nt = t(() => import("./WellBeingDashboard-DT_i-ghk.js")), rt = t(() => import("./OpenFieldWellbeingQuestion-Cp7Nn8Q7.js")), it = t(() => import("./MyProfile-BtlyDPG3.js")), et = t(() => import("./UserProfileManagement-BjKkSVSJ.js")), st = t(() => import("./EditFlagCard-BLYcaAv6.js")), mt = t(() => import("./ConversationTarget-D_UtCXA_.js")), pt = t(() => import("./TeacherConversations-u42EuCZX.js").then((o) => o.b)), at = t(() => import("./index-C44pkLLI.js")), ct = t(() => import("./index-BCFfLcPg.js")), ut = t(() => import("./DashboardWrapper-CxXistlm.js")), lt = t(() => import("./FlagAlertWrapper-BXV9VXMs.js")), St = t(() => import("./PersonalLearningPlansWrapper-Cx_orIAt.js"));
|
|
5
5
|
r.setLicenseKey(n);
|
|
6
6
|
export {
|
|
7
7
|
J as AIMario,
|