mario-education 2.0.290-staging → 2.0.291-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/{ArrowUp-BlVEvm-j.js → ArrowUp-Br_-q4PW.js} +116 -115
- package/dist/{ArrowUp-Bnpp-9Q9.cjs → ArrowUp-D9aBSCUB.cjs} +1 -1
- package/dist/{ConversationTarget-k085Zz2n.js → ConversationTarget-BZHmFDUA.js} +2 -2
- package/dist/{ConversationTarget-BrcaPFmb.cjs → ConversationTarget-l6JCVquJ.cjs} +1 -1
- package/dist/{Dashboard-DPh0hefd.cjs → Dashboard-CRUWtvu8.cjs} +1 -1
- package/dist/{Dashboard-QU6hfYzh.js → Dashboard-Cw23Um0v.js} +3 -3
- package/dist/{LineChart-CMhjO2Ye.cjs → LineChart-CJHEYWjf.cjs} +1 -1
- package/dist/{LineChart-DwuPSopW.js → LineChart-j_PWgA0L.js} +1 -1
- package/dist/{SurveyDashboardContainer-hA8XR9tg.js → SurveyDashboardContainer-BuQ9uGGP.js} +1 -1
- package/dist/{SurveyDashboardContainer-B4D5J6o-.cjs → SurveyDashboardContainer-CNu8-T2q.cjs} +1 -1
- package/dist/{TeacherConversations-DGOoi4al.cjs → TeacherConversations-Dz2CWjoB.cjs} +1 -1
- package/dist/{TeacherConversations-C-MjC92P.js → TeacherConversations-fIYjLU_F.js} +1 -1
- package/dist/WellBeingDashboard-CDnCVrlQ.cjs +5 -0
- package/dist/WellBeingDashboard-DnLhKDnQ.js +2316 -0
- package/dist/containers/WellBeingDashboard/configs/type.d.ts +1 -0
- package/dist/containers/WellBeingDashboard/configs/utils.d.ts +11 -1
- package/dist/index.js +1 -1
- package/dist/index.modern.js +1 -1
- package/dist/mario-education.css +1 -1
- package/dist/plp.module-BUvVgYUX.cjs +1 -0
- package/dist/plp.module-DtKgZggz.js +242 -0
- package/package.json +1 -1
- package/dist/WellBeingDashboard-Cc-roP0R.js +0 -2271
- package/dist/WellBeingDashboard-Tslg_peg.cjs +0 -5
- package/dist/plp.module-BElMo3qj.js +0 -241
- package/dist/plp.module-BMy_AJUh.cjs +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { Grid as c, Typography as b } from "@mui/material";
|
|
3
3
|
import { s as y } from "./styles.module-BJ4dhumc.js";
|
|
4
|
-
import { useState as r1, memo as
|
|
5
|
-
import { s as
|
|
4
|
+
import { useState as r1, memo as V, useMemo as M, Fragment as e1 } from "react";
|
|
5
|
+
import { s as r } from "./plp.module-DtKgZggz.js";
|
|
6
6
|
import { useSelector as b1 } from "react-redux";
|
|
7
7
|
import { useTranslation as x } from "mario-core";
|
|
8
8
|
import { A as w1, O as S1 } from "./OverallDonutChart-DZSYeIvs.js";
|
|
9
|
-
import { r as j, E as
|
|
10
|
-
import { u as s1, a as T1, M as v1, L as O1, B as q1 } from "./LineChart-
|
|
9
|
+
import { r as j, E as D, y as v, O as t1, q as J, t as S, v as F, Q as _1 } from "./constants-GIn9Fhba.js";
|
|
10
|
+
import { u as s1, a as T1, M as v1, L as O1, B as q1 } from "./LineChart-j_PWgA0L.js";
|
|
11
11
|
import { h as J1, c as I1 } from "./constantsFn-xJPOaqgs.js";
|
|
12
12
|
import { E as x1 } from "./Error-DGB_YSVF.js";
|
|
13
13
|
import { C as G1 } from "./CheckCircle-pzvKW5G5.js";
|
|
@@ -15,21 +15,21 @@ import { i as a1 } from "./utils-CmRMSrkk.js";
|
|
|
15
15
|
import { C as P1 } from "./CheckboxCustom-CRZWuCKp.js";
|
|
16
16
|
import { L as I } from "./Loading-9Xhwui4j.js";
|
|
17
17
|
import { A as W1 } from "./ArrowRightIcon-Sq9hCEbe.js";
|
|
18
|
-
const h2 = ({ options: t, value:
|
|
18
|
+
const h2 = ({ options: t, value: a, onChange: o, disabled: h = !1, customClassName: s }) => /* @__PURE__ */ i(c, { className: `${y["calendar-select"]} ${y[s || ""]}`, children: [
|
|
19
19
|
/* @__PURE__ */ e(b, { className: y["calendar-label"], children: "Filter by date" }),
|
|
20
20
|
/* @__PURE__ */ e(c, { className: y["calendar-options"], children: t.map((l) => /* @__PURE__ */ e(
|
|
21
21
|
b,
|
|
22
22
|
{
|
|
23
|
-
onClick: () => !
|
|
24
|
-
className: `${y["option-item"]} ${
|
|
23
|
+
onClick: () => !h && o?.(l),
|
|
24
|
+
className: `${y["option-item"]} ${a == l.value ? y.selected : y["no-selected"]}`,
|
|
25
25
|
children: l.label
|
|
26
26
|
},
|
|
27
27
|
l.value
|
|
28
28
|
)) })
|
|
29
29
|
] }), A1 = (t) => t.replace(
|
|
30
30
|
/rgba\((\d+),\s*(\d+),\s*(\d+),\s*[\d.]+\)/,
|
|
31
|
-
(
|
|
32
|
-
), Q1 = (t,
|
|
31
|
+
(a, o, h, s) => `rgba(${o}, ${h}, ${s}, 0.6)`
|
|
32
|
+
), Q1 = (t, a = !1) => {
|
|
33
33
|
const o = [
|
|
34
34
|
"rgba(196, 65, 64, 0.24)",
|
|
35
35
|
"rgba(255, 176, 79, 0.24)",
|
|
@@ -37,7 +37,7 @@ const h2 = ({ options: t, value: r, onChange: o, disabled: d = !1, customClassNa
|
|
|
37
37
|
"rgba(169, 214, 96, 0.24)",
|
|
38
38
|
"rgba(15, 150, 85, 0.24)"
|
|
39
39
|
];
|
|
40
|
-
if (
|
|
40
|
+
if (a) {
|
|
41
41
|
if (t <= -60 || t >= 60)
|
|
42
42
|
return o[0];
|
|
43
43
|
if (t >= -60 && t < -20)
|
|
@@ -47,28 +47,28 @@ const h2 = ({ options: t, value: r, onChange: o, disabled: d = !1, customClassNa
|
|
|
47
47
|
if (t >= 20 && t < 60)
|
|
48
48
|
return o[2];
|
|
49
49
|
}
|
|
50
|
-
const
|
|
51
|
-
let l = Math.floor(
|
|
50
|
+
const h = Math.max(0, Math.min(100, t)), s = 100 / o.length;
|
|
51
|
+
let l = Math.floor(h / s);
|
|
52
52
|
return l = Math.min(l, o.length - 1), o[l];
|
|
53
53
|
}, n1 = ({
|
|
54
54
|
value: t,
|
|
55
|
-
label:
|
|
55
|
+
label: a,
|
|
56
56
|
isStress: o,
|
|
57
|
-
timeOfDay:
|
|
57
|
+
timeOfDay: h,
|
|
58
58
|
valueData: s,
|
|
59
59
|
loadingComplete: l = !0
|
|
60
60
|
}) => {
|
|
61
|
-
const g = A1(Q1(s || 0, o)), $ =
|
|
62
|
-
return /* @__PURE__ */ i(c, { className: `${
|
|
61
|
+
const g = A1(Q1(s || 0, o)), $ = a ? `${a} |` : "";
|
|
62
|
+
return /* @__PURE__ */ i(c, { className: `${r["graph-trend"]}`, children: [
|
|
63
63
|
l ? /* @__PURE__ */ e(
|
|
64
64
|
b,
|
|
65
65
|
{
|
|
66
66
|
style: { backgroundColor: g },
|
|
67
|
-
className: `${
|
|
67
|
+
className: `${r["graph-label"]}`,
|
|
68
68
|
children: `${$} ${(s || 0)?.toFixed(2)}%`
|
|
69
69
|
}
|
|
70
70
|
) : /* @__PURE__ */ e(I, {}),
|
|
71
|
-
|
|
71
|
+
h && /* @__PURE__ */ e(
|
|
72
72
|
"img",
|
|
73
73
|
{
|
|
74
74
|
src: `/images/${t < 0 ? "trend-down.png" : "trend-up.png"}`,
|
|
@@ -78,26 +78,26 @@ const h2 = ({ options: t, value: r, onChange: o, disabled: d = !1, customClassNa
|
|
|
78
78
|
] });
|
|
79
79
|
}, R1 = ({
|
|
80
80
|
percent: t,
|
|
81
|
-
lowMetricStudents:
|
|
81
|
+
lowMetricStudents: a = [],
|
|
82
82
|
isPrint: o = !1,
|
|
83
|
-
onBeforeViewCheckIn:
|
|
83
|
+
onBeforeViewCheckIn: h
|
|
84
84
|
}) => {
|
|
85
85
|
const { t: s } = x(), [l, g] = r1(!1), $ = () => {
|
|
86
86
|
g(!l);
|
|
87
87
|
}, w = s1(
|
|
88
|
-
|
|
89
|
-
).length || 0,
|
|
90
|
-
|
|
88
|
+
a?.filter((u) => u.matchedGroupNames.includes("Not Ready to Learn"))?.map((u) => u.studentName)
|
|
89
|
+
).length || 0, d = s1(
|
|
90
|
+
a?.filter((u) => u.matchedGroupNames.includes("Success") || u.matchedGroupNames.includes("Readiness"))?.map((u) => u.studentName)
|
|
91
91
|
).length || 0;
|
|
92
|
-
return /* @__PURE__ */ i(c, { className: `${
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
return /* @__PURE__ */ i(c, { className: `${r["static-metric"]} ${r[a?.length === 0 ? "green-background" : "red-background"]}`, children: [
|
|
93
|
+
a?.length === 0 ? /* @__PURE__ */ e(G1, { className: `${r["check-icon"]}` }) : /* @__PURE__ */ e(x1, { className: `${r["warning-icon"]}` }),
|
|
94
|
+
a?.length === 0 ? /* @__PURE__ */ e("div", { children: s("all_students_have_good_metrics") }) : /* @__PURE__ */ i("div", { className: r["static-metric__container"], children: [
|
|
95
95
|
/* @__PURE__ */ i("div", { children: [
|
|
96
96
|
/* @__PURE__ */ e("b", { children: `${t.toFixed(2)}%` }),
|
|
97
97
|
" ",
|
|
98
98
|
s("of_students_have_concerned_metrics"),
|
|
99
99
|
" ",
|
|
100
|
-
!o && /* @__PURE__ */ i("b", { className: `${
|
|
100
|
+
!o && /* @__PURE__ */ i("b", { className: `${r.link}`, onClick: () => $(), children: [
|
|
101
101
|
"(",
|
|
102
102
|
s("see_them"),
|
|
103
103
|
")"
|
|
@@ -109,12 +109,12 @@ const h2 = ({ options: t, value: r, onChange: o, disabled: d = !1, customClassNa
|
|
|
109
109
|
s("are_not_ready_to_learn"),
|
|
110
110
|
",",
|
|
111
111
|
" ",
|
|
112
|
-
/* @__PURE__ */ e("b", { children: `${
|
|
112
|
+
/* @__PURE__ */ e("b", { children: `${d} ${s("students")}` }),
|
|
113
113
|
" ",
|
|
114
114
|
s("have_metrics_40")
|
|
115
115
|
] })
|
|
116
116
|
] }),
|
|
117
|
-
!o && /* @__PURE__ */ e(T1, { lowMetricStudents:
|
|
117
|
+
!o && /* @__PURE__ */ e(T1, { lowMetricStudents: a, handleToggleModel: $, openModel: l, onBeforeViewCheckIn: h })
|
|
118
118
|
] });
|
|
119
119
|
}, j1 = () => /* @__PURE__ */ i("svg", { width: "40", height: "40", viewBox: "0 0 40 40", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
120
120
|
/* @__PURE__ */ e("circle", { cx: "24.9521", cy: "25.943", r: "12.2047", fill: "white", stroke: "#242424", strokeWidth: "1.6" }),
|
|
@@ -124,7 +124,7 @@ const h2 = ({ options: t, value: r, onChange: o, disabled: d = !1, customClassNa
|
|
|
124
124
|
/* @__PURE__ */ e("path", { d: "M2.84277 14.5371L6.56435 17.4966C6.79541 17.6803 7.13909 17.559 7.20364 17.2709L7.88551 14.2275C7.95006 13.9394 8.29374 13.8181 8.5248 14.0018L12.5278 17.1851", stroke: "#242424", strokeWidth: "1.6" }),
|
|
125
125
|
/* @__PURE__ */ e("path", { d: "M11.6611 4.42773L13.3372 8.87738C13.4412 9.15364 13.7985 9.22586 14.0017 9.0117L16.1485 6.74917C16.3517 6.53501 16.7089 6.60722 16.8129 6.88349L18.6158 11.6697", stroke: "#242424", strokeWidth: "1.6" }),
|
|
126
126
|
/* @__PURE__ */ e("path", { d: "M24.3058 1.85364L23.8326 6.59318C23.8034 6.8849 24.0876 7.10781 24.364 7.01001L27.4233 5.92739C27.6997 5.82959 27.9839 6.05249 27.9548 6.34421L27.4459 11.4416", stroke: "#242424", strokeWidth: "1.6" })
|
|
127
|
-
] }),
|
|
127
|
+
] }), D1 = () => /* @__PURE__ */ i("svg", { width: "40", height: "40", viewBox: "0 0 40 40", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
128
128
|
/* @__PURE__ */ i("g", { clipPath: "url(#clip0_14971_6395)", children: [
|
|
129
129
|
/* @__PURE__ */ e("path", { d: "M37.7857 8.62683L36.3306 10.8095L37.7857 12.9921M37.7857 8.62683V12.9921M37.7857 8.62683L39.2408 10.8095L37.7857 12.9921", stroke: "#242424", strokeWidth: "1.6", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
130
130
|
/* @__PURE__ */ e("path", { d: "M1.98141 26.75L0.759216 28.5833L1.98141 30.4166M1.98141 26.75V30.4166M1.98141 26.75L3.20361 28.5833L1.98141 30.4166", stroke: "#242424", strokeWidth: "1.6", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
@@ -134,22 +134,22 @@ const h2 = ({ options: t, value: r, onChange: o, disabled: d = !1, customClassNa
|
|
|
134
134
|
/* @__PURE__ */ e("path", { d: "M18.8099 10.9359C18.9307 10.853 19.0737 10.8086 19.2202 10.8086M19.2202 10.8086C19.3666 10.8086 19.5096 10.853 19.6304 10.9359C19.8491 11.0708 20.0551 11.2254 20.2457 11.3979C20.9865 12.0849 21.8111 12.6751 22.7 13.1545C23.258 13.4441 23.8458 13.6721 24.453 13.8343C25.1245 14.0433 25.8082 14.2154 26.4972 14.3612C26.8998 14.4195 27.3054 14.4546 27.712 14.4666C28.2607 14.5141 28.8077 14.5738 29.3546 14.623C29.4553 14.6306 29.5514 14.6681 29.6307 14.7307C29.71 14.7932 29.7689 14.8781 29.7999 14.9743C29.9176 15.2706 29.9886 15.5835 30.0103 15.9018C30.0406 17.3176 30.0494 18.7334 30.0366 20.1492C30.0339 21.5198 29.9113 22.8876 29.6702 24.2367C29.6505 24.367 29.6406 24.4985 29.6404 24.6302C29.6037 25.2189 29.4894 25.8001 29.3003 26.3587C29.125 26.9208 29.0181 27.5022 28.8112 28.0503C28.5868 28.651 28.3178 29.2341 28.0065 29.7946C27.3364 30.9887 26.4861 32.0719 25.4856 33.0056C24.3788 34.0306 23.1204 34.8779 21.7551 35.5175C21.0223 35.8689 20.2738 36.1921 19.5147 36.4784C19.428 36.5111 19.3259 36.5155 19.2202 36.5043M19.2202 10.8086V36.5043M18.8134 36.4099C18.9376 36.4487 19.082 36.4898 19.2202 36.5043", stroke: "#242424", strokeWidth: "1.6" })
|
|
135
135
|
] }),
|
|
136
136
|
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e("clipPath", { id: "clip0_14971_6395", children: /* @__PURE__ */ e("rect", { width: "40", height: "40", fill: "white" }) }) })
|
|
137
|
-
] }),
|
|
137
|
+
] }), F1 = ({
|
|
138
138
|
typeChart: t,
|
|
139
|
-
activeColumn:
|
|
139
|
+
activeColumn: a,
|
|
140
140
|
series: o,
|
|
141
|
-
months:
|
|
141
|
+
months: h,
|
|
142
142
|
name: s,
|
|
143
143
|
dayOfWeek: l = [],
|
|
144
144
|
colors: g,
|
|
145
145
|
textColors: $,
|
|
146
146
|
avgQuestionLastMonth: w,
|
|
147
|
-
studentCount:
|
|
148
|
-
studentPercentage:
|
|
147
|
+
studentCount: d,
|
|
148
|
+
studentPercentage: u,
|
|
149
149
|
responseStudent: k,
|
|
150
150
|
classFontSize: _,
|
|
151
151
|
avgContent: p,
|
|
152
|
-
print:
|
|
152
|
+
print: m,
|
|
153
153
|
width: T,
|
|
154
154
|
height: i1,
|
|
155
155
|
titleClassFontSize: o1,
|
|
@@ -163,8 +163,8 @@ const h2 = ({ options: t, value: r, onChange: o, disabled: d = !1, customClassNa
|
|
|
163
163
|
kpiClassName: d1,
|
|
164
164
|
lowMetricStudents: H = [],
|
|
165
165
|
studentMetricPercent: h1,
|
|
166
|
-
noGradient:
|
|
167
|
-
setOptionDate:
|
|
166
|
+
noGradient: u1,
|
|
167
|
+
setOptionDate: m1,
|
|
168
168
|
stressValue: z,
|
|
169
169
|
noAvgTotal: C1,
|
|
170
170
|
onActiveColumn: Y,
|
|
@@ -173,7 +173,7 @@ const h2 = ({ options: t, value: r, onChange: o, disabled: d = !1, customClassNa
|
|
|
173
173
|
onBeforeViewCheckIn: P,
|
|
174
174
|
interventionLogs: g1
|
|
175
175
|
}) => {
|
|
176
|
-
const { t: f } = x(), [L, f1] = r1("Monthly"), N1 = b1((n) => n?.common?.user).roles.includes("Student"), C = M(() => L != "Monthly" ||
|
|
176
|
+
const { t: f } = x(), [L, f1] = r1("Monthly"), N1 = b1((n) => n?.common?.user).roles.includes("Student"), C = M(() => L != "Monthly" || m && q != "Monthly" ? G || [] : o, [o, G, L, q, m]), W = M(() => L != "Monthly" || m && q != "Monthly" ? E : h, [L, h, E, q, m]), $1 = M(() => C.map((n) => {
|
|
177
177
|
const N = w.find(
|
|
178
178
|
(R) => R.questionText.toLowerCase().includes(n.name.toLowerCase())
|
|
179
179
|
);
|
|
@@ -181,22 +181,22 @@ const h2 = ({ options: t, value: r, onChange: o, disabled: d = !1, customClassNa
|
|
|
181
181
|
return N.avgQuestionResponse - N.avgQuestionResponseLastMonth;
|
|
182
182
|
const Q = n?.data.reduce((R, M1) => R + M1, 0);
|
|
183
183
|
return n?.data?.length > 0 ? Q / n.data.length : 0;
|
|
184
|
-
}), [C, w]), A = M(() => C.filter((n, N) =>
|
|
184
|
+
}), [C, w]), A = M(() => C.filter((n, N) => a[N]).map((n) => ({
|
|
185
185
|
data: n.data,
|
|
186
186
|
name: n.questionTranslation || n.name,
|
|
187
187
|
questionTranslation: n.questionTranslation ?? ""
|
|
188
|
-
})), [C,
|
|
188
|
+
})), [C, a]), K = M(() => C.map((n) => n.data[0] || 0), [C]), p1 = M(
|
|
189
189
|
() => C.map((n) => n.name.charAt(0).toUpperCase() + n.name.slice(1)),
|
|
190
190
|
[C]
|
|
191
|
-
), L1 = (s === f(j) || s === f(
|
|
192
|
-
return /* @__PURE__ */ i(c, { className: `${
|
|
193
|
-
(J === s || S === s) && /* @__PURE__ */ i("div", { className:
|
|
194
|
-
J === s && /* @__PURE__ */ e(
|
|
191
|
+
), L1 = (s === f(j) || s === f(D) || s === f(v)) && 6, k1 = s === f(j) && 6 || (s === f(D) || s === f(t1)) && 4 || s === f(v) && 12, y1 = (s === f(j) || s === f(D) || s === f(v) || s === f(t1)) && "auto", X = (n) => n.length === 0 ? 0 : n.reduce((N, Q) => N + Q) / n.length;
|
|
192
|
+
return /* @__PURE__ */ i(c, { className: `${r["generate-chart"]} ${r[_]}`, children: [
|
|
193
|
+
(J === s || S === s) && /* @__PURE__ */ i("div", { className: r["icon-safety-and-stress"], children: [
|
|
194
|
+
J === s && /* @__PURE__ */ e(D1, {}),
|
|
195
195
|
S === s && /* @__PURE__ */ e(j1, {})
|
|
196
196
|
] }),
|
|
197
|
-
!
|
|
198
|
-
/* @__PURE__ */ e(b, { className: `${o1 ||
|
|
199
|
-
!C1 && C?.[0]?.description?.length > 0 && s !==
|
|
197
|
+
!m && /* @__PURE__ */ i(c, { className: `${r["header-chart-generate"]}`, children: [
|
|
198
|
+
/* @__PURE__ */ e(b, { className: `${o1 || r["title-chart"]}`, children: f(s) }),
|
|
199
|
+
!C1 && C?.[0]?.description?.length > 0 && s !== F && (O ? /* @__PURE__ */ e(
|
|
200
200
|
n1,
|
|
201
201
|
{
|
|
202
202
|
label: a1(
|
|
@@ -212,20 +212,20 @@ const h2 = ({ options: t, value: r, onChange: o, disabled: d = !1, customClassNa
|
|
|
212
212
|
}
|
|
213
213
|
) : /* @__PURE__ */ e(I, {}))
|
|
214
214
|
] }),
|
|
215
|
-
!
|
|
215
|
+
!m && Z && /* @__PURE__ */ e(b, { className: `${r["header-chart-description"]}`, children: f(Z) }),
|
|
216
216
|
!O && /* @__PURE__ */ e("div", { style: { width: "100%", height: 400, display: "flex", justifyContent: "center", alignItems: "center" }, children: /* @__PURE__ */ e(I, {}) }),
|
|
217
217
|
O && /* @__PURE__ */ i(e1, { children: [
|
|
218
|
-
/* @__PURE__ */ i(c, { className: `${
|
|
219
|
-
!
|
|
218
|
+
/* @__PURE__ */ i(c, { className: `${r["kpi-module"]} ${r[d1 ?? ""]}`, children: [
|
|
219
|
+
!m && /* @__PURE__ */ e(
|
|
220
220
|
c,
|
|
221
221
|
{
|
|
222
|
-
className: `${
|
|
223
|
-
hidden: !
|
|
222
|
+
className: `${r["box-model-student-skill"]} ${r[U ?? ""]}`,
|
|
223
|
+
hidden: !d && d != 0 || N1 || C.length == 0 || s === F,
|
|
224
224
|
children: /* @__PURE__ */ e(
|
|
225
225
|
v1,
|
|
226
226
|
{
|
|
227
|
-
studentCount:
|
|
228
|
-
studentPercentage:
|
|
227
|
+
studentCount: d,
|
|
228
|
+
studentPercentage: u,
|
|
229
229
|
name: s,
|
|
230
230
|
responseStudent: k,
|
|
231
231
|
onBeforeViewCheckIn: P
|
|
@@ -236,20 +236,20 @@ const h2 = ({ options: t, value: r, onChange: o, disabled: d = !1, customClassNa
|
|
|
236
236
|
/* @__PURE__ */ e(
|
|
237
237
|
c,
|
|
238
238
|
{
|
|
239
|
-
className: `${
|
|
240
|
-
hidden: s !==
|
|
239
|
+
className: `${r["box-model-student-skill"]} ${r[U ?? ""]}`,
|
|
240
|
+
hidden: s !== F,
|
|
241
241
|
children: /* @__PURE__ */ e(
|
|
242
242
|
R1,
|
|
243
243
|
{
|
|
244
244
|
lowMetricStudents: H,
|
|
245
245
|
percent: h1 || 0,
|
|
246
|
-
isPrint:
|
|
246
|
+
isPrint: m,
|
|
247
247
|
onBeforeViewCheckIn: P
|
|
248
248
|
}
|
|
249
249
|
)
|
|
250
250
|
}
|
|
251
251
|
),
|
|
252
|
-
!l1 && /* @__PURE__ */ e(c, { className: `${
|
|
252
|
+
!l1 && /* @__PURE__ */ e(c, { className: `${r.listItem} ${r["ml-10"]}`, children: C.map((n, N) => m && !a[N] ? null : /* @__PURE__ */ i(
|
|
253
253
|
c,
|
|
254
254
|
{
|
|
255
255
|
item: !0,
|
|
@@ -257,39 +257,39 @@ const h2 = ({ options: t, value: r, onChange: o, disabled: d = !1, customClassNa
|
|
|
257
257
|
sm: k1,
|
|
258
258
|
lg: y1,
|
|
259
259
|
hidden: !n.name,
|
|
260
|
-
className: `${
|
|
260
|
+
className: `${r["item-checkbox"]}`,
|
|
261
261
|
children: [
|
|
262
|
-
!!Y && /* @__PURE__ */ e("div", { className: `${
|
|
262
|
+
!!Y && /* @__PURE__ */ e("div", { className: `${r["box-checkbox"]}`, children: /* @__PURE__ */ e(
|
|
263
263
|
P1,
|
|
264
264
|
{
|
|
265
|
-
isActive: !!
|
|
265
|
+
isActive: !!a[N],
|
|
266
266
|
onClick: () => Y?.(N, s)
|
|
267
267
|
}
|
|
268
268
|
) }),
|
|
269
|
-
/* @__PURE__ */ i(c, { className: `${
|
|
270
|
-
/* @__PURE__ */ i(c, { className: `${
|
|
269
|
+
/* @__PURE__ */ i(c, { className: `${r["item-detail"]}`, children: [
|
|
270
|
+
/* @__PURE__ */ i(c, { className: `${r.question}`, children: [
|
|
271
271
|
/* @__PURE__ */ e(
|
|
272
272
|
c,
|
|
273
273
|
{
|
|
274
|
-
className: `${
|
|
274
|
+
className: `${r["point-custom"]}`,
|
|
275
275
|
style: { backgroundColor: g[N] }
|
|
276
276
|
}
|
|
277
277
|
),
|
|
278
|
-
/* @__PURE__ */ e("label", { className: `${
|
|
278
|
+
/* @__PURE__ */ e("label", { className: `${r["label-chart"]}`, children: n.questionTranslation || n.name })
|
|
279
279
|
] }),
|
|
280
|
-
/* @__PURE__ */ e(b, { className: `${
|
|
280
|
+
/* @__PURE__ */ e(b, { className: `${r["avr-question"]}`, children: J1(n.data, B == -100, p) ?? 0 })
|
|
281
281
|
] })
|
|
282
282
|
]
|
|
283
283
|
},
|
|
284
284
|
N
|
|
285
285
|
)) }),
|
|
286
|
-
!!G && !
|
|
286
|
+
!!G && !m && /* @__PURE__ */ e(c, { className: `${r["label-options"]}`, children: _1.map((n) => /* @__PURE__ */ e(
|
|
287
287
|
b,
|
|
288
288
|
{
|
|
289
289
|
onClick: () => {
|
|
290
|
-
f1?.(n),
|
|
290
|
+
f1?.(n), m1?.(n);
|
|
291
291
|
},
|
|
292
|
-
className: `${
|
|
292
|
+
className: `${r["option-item"]} ${L == n ? r.selected : r["no-selected"]}`,
|
|
293
293
|
children: n
|
|
294
294
|
},
|
|
295
295
|
n
|
|
@@ -298,7 +298,7 @@ const h2 = ({ options: t, value: r, onChange: o, disabled: d = !1, customClassNa
|
|
|
298
298
|
/* @__PURE__ */ i(
|
|
299
299
|
c,
|
|
300
300
|
{
|
|
301
|
-
className: `${
|
|
301
|
+
className: `${m ? `w-100 d-flex justify-content-center ${t == "donut" ? "" : r["print-chart"]}` : ""}`,
|
|
302
302
|
style: { position: "relative" },
|
|
303
303
|
children: [
|
|
304
304
|
t == "area" && /* @__PURE__ */ e(
|
|
@@ -306,12 +306,12 @@ const h2 = ({ options: t, value: r, onChange: o, disabled: d = !1, customClassNa
|
|
|
306
306
|
{
|
|
307
307
|
isCountSeries: !!p,
|
|
308
308
|
months: W,
|
|
309
|
-
activeColumn:
|
|
309
|
+
activeColumn: a,
|
|
310
310
|
series: A,
|
|
311
311
|
dayOfWeek: l,
|
|
312
312
|
colors: g,
|
|
313
313
|
min: B,
|
|
314
|
-
noGradient:
|
|
314
|
+
noGradient: u1,
|
|
315
315
|
interventionLogs: g1
|
|
316
316
|
},
|
|
317
317
|
L
|
|
@@ -320,7 +320,7 @@ const h2 = ({ options: t, value: r, onChange: o, disabled: d = !1, customClassNa
|
|
|
320
320
|
O1,
|
|
321
321
|
{
|
|
322
322
|
months: W,
|
|
323
|
-
activeColumn:
|
|
323
|
+
activeColumn: a,
|
|
324
324
|
series: A,
|
|
325
325
|
dayOfWeek: l,
|
|
326
326
|
colors: g
|
|
@@ -342,7 +342,7 @@ const h2 = ({ options: t, value: r, onChange: o, disabled: d = !1, customClassNa
|
|
|
342
342
|
},
|
|
343
343
|
L
|
|
344
344
|
),
|
|
345
|
-
s === v && /* @__PURE__ */ i("div", { className:
|
|
345
|
+
s === v && /* @__PURE__ */ i("div", { className: r["data-overall-readline-value-yes"], children: [
|
|
346
346
|
/* @__PURE__ */ i("p", { children: [
|
|
347
347
|
"Yes: ",
|
|
348
348
|
(K?.[0] || 0).toFixed(1),
|
|
@@ -355,11 +355,11 @@ const h2 = ({ options: t, value: r, onChange: o, disabled: d = !1, customClassNa
|
|
|
355
355
|
q1,
|
|
356
356
|
{
|
|
357
357
|
series: A,
|
|
358
|
-
activeColumn:
|
|
358
|
+
activeColumn: a,
|
|
359
359
|
dayOfWeek: l,
|
|
360
360
|
months: W,
|
|
361
361
|
colors: g,
|
|
362
|
-
print:
|
|
362
|
+
print: m,
|
|
363
363
|
isCountSeries: !0,
|
|
364
364
|
lowMetricStudents: H,
|
|
365
365
|
labelDate: L,
|
|
@@ -373,36 +373,36 @@ const h2 = ({ options: t, value: r, onChange: o, disabled: d = !1, customClassNa
|
|
|
373
373
|
] })
|
|
374
374
|
] }, s);
|
|
375
375
|
};
|
|
376
|
-
function
|
|
377
|
-
return t.name ===
|
|
376
|
+
function V1(t, a) {
|
|
377
|
+
return t.name === a.name && t.typeChart === a.typeChart && t.print === a.print && JSON.stringify(t.dayOfWeek) === JSON.stringify(a.dayOfWeek) && t.lowMetricStudents === a.lowMetricStudents && t.studentMetricPercent === a.studentMetricPercent && JSON.stringify(t.series) === JSON.stringify(a.series) && JSON.stringify(t.weeklySeries) === JSON.stringify(a.weeklySeries) && JSON.stringify(t.activeColumn) === JSON.stringify(a.activeColumn) && JSON.stringify(t.avgQuestionLastMonth) === JSON.stringify(a.avgQuestionLastMonth) && JSON.stringify(t.lowMetricStudents) === JSON.stringify(a.lowMetricStudents) && t.studentCount === a.studentCount && t.studentPercentage === a.studentPercentage && JSON.stringify(t.responseStudent) === JSON.stringify(a.responseStudent) && t.timeOfDay === a.timeOfDay && t.stressValue === a.stressValue && t.loadingComplete === a.loadingComplete && t.interventionLogs === a.interventionLogs;
|
|
378
378
|
}
|
|
379
|
-
const
|
|
379
|
+
const u2 = V(F1, V1), B1 = ({
|
|
380
380
|
iconSrc: t,
|
|
381
|
-
label:
|
|
381
|
+
label: a,
|
|
382
382
|
value: o,
|
|
383
|
-
loadingComplete:
|
|
383
|
+
loadingComplete: h = !0,
|
|
384
384
|
customClassName: s,
|
|
385
385
|
handleOpenModal: l,
|
|
386
386
|
customClassNameBootStrap: g
|
|
387
387
|
}) => {
|
|
388
388
|
const { t: $ } = x();
|
|
389
|
-
return /* @__PURE__ */ i(c, { className: `${
|
|
390
|
-
/* @__PURE__ */ i(c, { className: `${
|
|
389
|
+
return /* @__PURE__ */ i(c, { className: `${r["total-item"]} ${r[s || ""]} ${g || ""}`, children: [
|
|
390
|
+
/* @__PURE__ */ i(c, { className: `${r["total-item-content"]}`, children: [
|
|
391
391
|
/* @__PURE__ */ e(
|
|
392
392
|
"div",
|
|
393
393
|
{
|
|
394
|
-
className: `${
|
|
395
|
-
dangerouslySetInnerHTML: { __html:
|
|
394
|
+
className: `${r["total-item-name"]}`,
|
|
395
|
+
dangerouslySetInnerHTML: { __html: a }
|
|
396
396
|
}
|
|
397
397
|
),
|
|
398
|
-
|
|
399
|
-
/* @__PURE__ */ i("div", { className: `${
|
|
398
|
+
h ? /* @__PURE__ */ i("div", { children: [
|
|
399
|
+
/* @__PURE__ */ i("div", { className: `${r["total-item-value"]}`, children: [
|
|
400
400
|
o,
|
|
401
|
-
!!l && Number(o) > 0 &&
|
|
401
|
+
!!l && Number(o) > 0 && a.toLocaleLowerCase().indexOf("check-ins") < 0 && /* @__PURE__ */ i(
|
|
402
402
|
"button",
|
|
403
403
|
{
|
|
404
404
|
type: "button",
|
|
405
|
-
className: `${
|
|
405
|
+
className: `${r["total-item-btn"]}`,
|
|
406
406
|
onClick: () => l?.(),
|
|
407
407
|
children: [
|
|
408
408
|
$("see_them"),
|
|
@@ -411,11 +411,11 @@ const m2 = D(V1, D1), B1 = ({
|
|
|
411
411
|
}
|
|
412
412
|
)
|
|
413
413
|
] }),
|
|
414
|
-
!!l && Number(o) > 0 &&
|
|
414
|
+
!!l && Number(o) > 0 && a.toLocaleLowerCase().indexOf("check-ins") >= 0 && /* @__PURE__ */ i(
|
|
415
415
|
"button",
|
|
416
416
|
{
|
|
417
417
|
type: "button",
|
|
418
|
-
className: `${
|
|
418
|
+
className: `${r["total-item-btn"]}`,
|
|
419
419
|
onClick: () => l?.(),
|
|
420
420
|
children: [
|
|
421
421
|
/* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", children: [
|
|
@@ -431,46 +431,46 @@ const m2 = D(V1, D1), B1 = ({
|
|
|
431
431
|
t && /* @__PURE__ */ e(
|
|
432
432
|
"img",
|
|
433
433
|
{
|
|
434
|
-
className: `${
|
|
434
|
+
className: `${r["total-item-icon"]}`,
|
|
435
435
|
src: `/images/${t}`,
|
|
436
436
|
alt: ""
|
|
437
437
|
}
|
|
438
438
|
)
|
|
439
439
|
] });
|
|
440
|
-
},
|
|
440
|
+
}, m2 = V(B1), E1 = ({
|
|
441
441
|
series: t,
|
|
442
|
-
avgQuestionLastMonth:
|
|
442
|
+
avgQuestionLastMonth: a,
|
|
443
443
|
icons: o,
|
|
444
|
-
className:
|
|
444
|
+
className: h,
|
|
445
445
|
noAvgText: s,
|
|
446
446
|
timeOfDay: l,
|
|
447
447
|
loadingComplete: g
|
|
448
448
|
}) => {
|
|
449
|
-
const { t: $ } = x(), w = M(() => t.map((
|
|
450
|
-
const
|
|
451
|
-
return
|
|
449
|
+
const { t: $ } = x(), w = M(() => t.map((d) => {
|
|
450
|
+
const u = d?.data.reduce((k, _) => k + _, 0);
|
|
451
|
+
return d.data.length > 0 ? u / d.data.length : 0;
|
|
452
452
|
}), [t]);
|
|
453
|
-
return /* @__PURE__ */ e(c, { className: `${
|
|
454
|
-
const k =
|
|
455
|
-
(T) => T.questionText?.toLowerCase()?.includes(
|
|
456
|
-
), _ = k ? k.avgQuestionResponse - k.avgQuestionResponseLastMonth : 0, p = o?.[
|
|
453
|
+
return /* @__PURE__ */ e(c, { className: `${r["trend-question-list"]}`, children: t.map((d, u) => {
|
|
454
|
+
const k = a.find(
|
|
455
|
+
(T) => T.questionText?.toLowerCase()?.includes(d.name?.toLowerCase())
|
|
456
|
+
), _ = k ? k.avgQuestionResponse - k.avgQuestionResponseLastMonth : 0, p = o?.[u], m = !!(p && typeof p == "string" && p.trim() !== "" && p !== "undefined" && p !== "null");
|
|
457
457
|
return /* @__PURE__ */ i(
|
|
458
458
|
c,
|
|
459
459
|
{
|
|
460
|
-
className: `${
|
|
460
|
+
className: `${r["trend-question-item"]}`,
|
|
461
461
|
children: [
|
|
462
|
-
/* @__PURE__ */ i(c, { className: `${
|
|
462
|
+
/* @__PURE__ */ i(c, { className: `${r["trend-item-header"]}`, children: [
|
|
463
463
|
/* @__PURE__ */ e(
|
|
464
464
|
"div",
|
|
465
465
|
{
|
|
466
|
-
className: `${
|
|
467
|
-
dangerouslySetInnerHTML: { __html: `${s ? "" : $("average")} ${
|
|
466
|
+
className: `${r["trend-item-title"]}`,
|
|
467
|
+
dangerouslySetInnerHTML: { __html: `${s ? "" : $("average")} ${d.questionTranslation || d.name}` }
|
|
468
468
|
}
|
|
469
469
|
),
|
|
470
|
-
|
|
470
|
+
m && /* @__PURE__ */ e(
|
|
471
471
|
"img",
|
|
472
472
|
{
|
|
473
|
-
className: `${
|
|
473
|
+
className: `${r["trend-item-icon"]} ${r[h || ""]}`,
|
|
474
474
|
src: `/images/${p}`,
|
|
475
475
|
alt: "icon",
|
|
476
476
|
onError: (T) => {
|
|
@@ -479,26 +479,27 @@ const m2 = D(V1, D1), B1 = ({
|
|
|
479
479
|
}
|
|
480
480
|
)
|
|
481
481
|
] }),
|
|
482
|
+
d.questionDesc && /* @__PURE__ */ e("div", { className: r["trend-item-desc"], children: d.questionDesc }),
|
|
482
483
|
/* @__PURE__ */ e(
|
|
483
484
|
n1,
|
|
484
485
|
{
|
|
485
|
-
label: I1(a1(
|
|
486
|
+
label: I1(a1(d?.data?.[0] || 0, d.description) || ""),
|
|
486
487
|
value: _ || 0,
|
|
487
|
-
valueData: w[
|
|
488
|
+
valueData: w[u] || 0,
|
|
488
489
|
timeOfDay: l,
|
|
489
490
|
loadingComplete: g
|
|
490
491
|
}
|
|
491
492
|
)
|
|
492
493
|
]
|
|
493
494
|
},
|
|
494
|
-
|
|
495
|
+
d.name
|
|
495
496
|
);
|
|
496
497
|
}) });
|
|
497
|
-
}, C2 =
|
|
498
|
+
}, C2 = V(E1), g2 = ({ opacity: t = 1, color: a = "#242424" }) => /* @__PURE__ */ e("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ e("path", { opacity: t, d: "M8 10L3.5 6H12.5L8 10Z", fill: a }) });
|
|
498
499
|
export {
|
|
499
500
|
g2 as A,
|
|
500
501
|
h2 as C,
|
|
501
|
-
|
|
502
|
-
|
|
502
|
+
u2 as G,
|
|
503
|
+
m2 as T,
|
|
503
504
|
C2 as a
|
|
504
505
|
};
|