mario-education 2.1.0-staging → 2.1.1-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.
@@ -0,0 +1,2529 @@
1
+ import { jsx as e, jsxs as a, Fragment as ne } from "react/jsx-runtime";
2
+ import Ce, { useState as R, useEffect as oe, useCallback as Me, useRef as nt, useMemo as _e } from "react";
3
+ import { useSelector as ge, useDispatch as Ge } from "react-redux";
4
+ import { api as me, BASE_URL as pe, useGradeLabel as de, useTranslation as J, setAlert as ve, getFileUrl as ye, getStaticFileUrl as V, CURRICULUM_MAPPING_DATA as st, setLoading as je } from "mario-core";
5
+ import { useNavigate as he, useLocation as at } from "react-router-dom";
6
+ import q from "moment";
7
+ import { a as Re, V as Ae, L as ot, N as lt, H as rt } from "./EmotionIcons-Be5vBOe5.js";
8
+ import { g as it } from "./constants-CFtuTn5q.js";
9
+ import { o as Oe } from "./constants-BlXI2HPS.js";
10
+ import { Dialog as Se, DialogContent as Ye, Avatar as Ie, Tooltip as ct, Typography as j, Button as ie, Chip as dt } from "@mui/material";
11
+ import { U as ht } from "./UnlockWellBeingModal-CDV2XuKp.js";
12
+ import { L as Ee, s as _t } from "./LockIcon-BXWcgbZy.js";
13
+ import { L as ae } from "./Loading-9Xhwui4j.js";
14
+ const ut = (t = "en-US", l) => {
15
+ const s = new URLSearchParams({ language: t });
16
+ return l && l !== "BOTH" && s.append("schoolType", l), me.get(`${pe}/api/Report/homepage-init?${s.toString()}`);
17
+ }, gt = (t) => {
18
+ const l = new URLSearchParams();
19
+ t && t !== "BOTH" && l.append("schoolType", t);
20
+ const s = l.toString();
21
+ return me.get(`${pe}/api/Report/homepage-analytics${s ? `?${s}` : ""}`);
22
+ }, mt = (t) => me.get(`${pe}/api/WellBeing/total-dashboard`, { params: t }), pt = (t, l, s = "en-US") => {
23
+ const o = ["Admin", "Teacher", "Assistant", "Counselor", "SecondaryTeacher"], r = l ? { "x-school-level": "es" } : { "x-school-level": "ms" };
24
+ return me.get(`${pe}/api/Session/${t}/results`, {
25
+ params: { roles: o, lang: s },
26
+ headers: r
27
+ });
28
+ }, ke = (t) => {
29
+ const l = t ? { "x-school-level": "es" } : { "x-school-level": "ms" };
30
+ return me.get(`${pe}/api/scaffoldingQuestion/get-tree`, { headers: l });
31
+ }, Fe = [
32
+ { icon: "sparkles", color: "#336DDA", gradient: "linear-gradient(135deg, #3b82f6, #6366f1)" },
33
+ { icon: "heart", color: "#C54140", gradient: "linear-gradient(135deg, #f87171, #f43f5e)" },
34
+ { icon: "trending-up", color: "#FFB04F", gradient: "linear-gradient(135deg, #fb923c, #f59e0b)" },
35
+ { icon: "sparkles", color: "#73C8E5", gradient: "linear-gradient(135deg, #38bdf8, #3b82f6)" },
36
+ { icon: "heart", color: "#C54140", gradient: "linear-gradient(135deg, #f472b6, #ef4444)" },
37
+ { icon: "trending-up", color: "#336DDA", gradient: "linear-gradient(135deg, #60a5fa, #4f46e5)" },
38
+ { icon: "trending-up", color: "#FFB04F", gradient: "linear-gradient(135deg, #fde047, #f97316)" },
39
+ { icon: "trophy", color: "#73C8E5", gradient: "linear-gradient(135deg, #38bdf8, #22d3ee)" }
40
+ ], ze = (t, l, s = 22) => {
41
+ const o = (l || "").toLowerCase();
42
+ return o === "yes" || o === "1" ? /* @__PURE__ */ e(Re, { size: s }) : o === "no" || o === "0" ? /* @__PURE__ */ e(Ae, { size: s }) : !t || isNaN(t) ? null : t <= 20 ? /* @__PURE__ */ e(Ae, { size: s }) : t <= 40 ? /* @__PURE__ */ e(ot, { size: s }) : t <= 60 ? /* @__PURE__ */ e(lt, { size: s }) : t <= 80 ? /* @__PURE__ */ e(rt, { size: s }) : /* @__PURE__ */ e(Re, { size: s });
43
+ };
44
+ function Ke(t) {
45
+ if (!t) return "S";
46
+ const l = t.trim().split(/\s+/);
47
+ return l.length === 1 ? l[0].slice(0, 2).toUpperCase() : (l[0][0] + l[l.length - 1][0]).toUpperCase();
48
+ }
49
+ function Ue(t) {
50
+ const l = Math.round((t || 0) * 60), s = Math.floor(l / 3600), o = Math.floor(l % 3600 / 60), r = l % 60, h = (b) => b.toString().padStart(2, "0");
51
+ return `${h(s)}:${h(o)}:${h(r)}`;
52
+ }
53
+ function Qe(t) {
54
+ return !t || t.length === 0 ? [] : t.map((l) => ({
55
+ studentId: l.studentId || 0,
56
+ studentName: l.studentName || "",
57
+ studentAvatar: l.studentAvatar,
58
+ gradeLevel: l.gradeLevel || "",
59
+ isUnsafe: !!l.isUnsafe,
60
+ isHighStress: !!l.isHighStress,
61
+ lastInteractionDate: l.time,
62
+ sessionId: l.sessionId,
63
+ sessionResultId: l.sessionResultId
64
+ })).sort((l, s) => {
65
+ const o = l.lastInteractionDate ? new Date(l.lastInteractionDate).getTime() : 0;
66
+ return (s.lastInteractionDate ? new Date(s.lastInteractionDate).getTime() : 0) - o;
67
+ });
68
+ }
69
+ const we = (t) => {
70
+ const l = t.nameQuestion || t.text || t.question || t.name || "", s = l.match(/<p[^>]*>(.*?)<\/p>/i);
71
+ let r = (s ? s[1] : l).replace(/<[^>]+>/g, "").trim();
72
+ return r === "School" ? r = "Safety at school" : r === "Home" ? r = "Safety at home" : r === "Online" && (r = "Safety online"), r;
73
+ }, Te = (t, l = !1) => {
74
+ const s = t.answer !== void 0 && t.answer !== null ? String(t.answer).trim() : "";
75
+ if (!s) return "";
76
+ if (isNaN(Number(s)))
77
+ return s;
78
+ const o = Number(s);
79
+ let r = t.questionAnswer || t.questionAnswers || [];
80
+ if (typeof r == "string")
81
+ try {
82
+ r = JSON.parse(r);
83
+ } catch {
84
+ r = [];
85
+ }
86
+ const h = String(t.type || "").toLowerCase(), b = t.type === "Rating" || t.type === 10 || t.type === "StarRating" || t.type === 6 || t.type === "Slider" || t.type === 4 || t.type === "ProgressBar" || t.type === 5 || h.includes("rating") || h.includes("slider") || h.includes("progressbar"), c = l || !!t.isQuestionForGrade1And2 || typeof t.page == "number";
87
+ if (Array.isArray(r) && r.length > 0) {
88
+ if (c) {
89
+ if (b && (o === 20 || o === 40 || o === 60 || o === 80 || o === 100)) {
90
+ const g = Math.min(Math.max(0, Math.round(o / 20) - 1), r.length - 1);
91
+ return r[g] || "";
92
+ }
93
+ if (Number.isInteger(o) && o >= 0 && o < r.length)
94
+ return r[o] || "";
95
+ if (Number.isInteger(o) && o >= 1 && o <= r.length && r[o - 1])
96
+ return r[o - 1];
97
+ }
98
+ if (!c && b) {
99
+ if (we(t).toLowerCase().includes("stress")) {
100
+ let d = 0;
101
+ return o < -60 ? d = 0 : o < -20 ? d = 1 : o < 20 ? d = 2 : o < 60 ? d = 3 : d = 4, r[d] || r[0] || "";
102
+ }
103
+ const w = Math.max(0, Math.min(100, o)), m = 100 / r.length;
104
+ let C = Math.floor(w / m);
105
+ return C = Math.min(C, r.length - 1), r[C] || "";
106
+ }
107
+ if (Array.isArray(t.questionItemAnswers) && t.questionItemAnswers.length > 0) {
108
+ const g = t.questionItemAnswers.find((w) => String(w.id) === s);
109
+ if (g) return g.text || g.name || "";
110
+ }
111
+ if (Number.isInteger(o) && o >= 0 && o < r.length) {
112
+ const g = r[o];
113
+ return typeof g == "string" ? g : g?.text || g?.name || "";
114
+ }
115
+ if (Number.isInteger(o) && o >= 1 && o <= r.length && r[o - 1]) {
116
+ const g = r[o - 1];
117
+ return typeof g == "string" ? g : g?.text || g?.name || "";
118
+ }
119
+ const v = Math.max(0, Math.min(100, o)), u = 100 / r.length;
120
+ let N = Math.floor(v / u);
121
+ return N = Math.min(N, r.length - 1), r[N] || "";
122
+ }
123
+ if (c && b) {
124
+ if (o === 20) return "Low";
125
+ if (o === 40) return "Medium Low";
126
+ if (o === 60) return "Medium";
127
+ if (o === 80) return "Medium High";
128
+ if (o === 100) return "High";
129
+ }
130
+ return "";
131
+ }, Ze = (t, l = !1, s = !1) => {
132
+ if (l) {
133
+ if (t <= -60 || t >= 60) return { bg: "rgba(196, 65, 64, 0.24)", color: "#C44140" };
134
+ if (t >= -60 && t < -20) return { bg: "rgba(169, 214, 96, 0.24)", color: "#5C8A18" };
135
+ if (t >= -20 && t < 20) return { bg: "rgba(15, 150, 85, 0.24)", color: "#0F9655" };
136
+ if (t >= 20 && t < 60) return { bg: "rgba(255, 208, 40, 0.24)", color: "#854d0e" };
137
+ }
138
+ const o = Math.max(0, Math.min(100, t));
139
+ return s ? o <= 20 ? { bg: "rgba(196, 65, 64, 0.24)", color: "#C44140" } : o <= 40 ? { bg: "rgba(255, 176, 79, 0.24)", color: "#FFB04F" } : o <= 60 ? { bg: "rgba(255, 208, 40, 0.24)", color: "#854d0e" } : o <= 80 ? { bg: "rgba(169, 214, 96, 0.24)", color: "#5C8A18" } : { bg: "rgba(15, 150, 85, 0.24)", color: "#0F9655" } : o < 20 ? { bg: "rgba(196, 65, 64, 0.24)", color: "#C44140" } : o < 40 ? { bg: "rgba(255, 176, 79, 0.24)", color: "#FFB04F" } : o < 60 ? { bg: "rgba(255, 208, 40, 0.24)", color: "#854d0e" } : o < 80 ? { bg: "rgba(169, 214, 96, 0.24)", color: "#5C8A18" } : { bg: "rgba(15, 150, 85, 0.24)", color: "#0F9655" };
140
+ }, ft = (t) => {
141
+ if (!t) return [];
142
+ const l = t?.resultTeacher?.questions || t?.teacherResult?.questions || [], s = l.find((h) => h.type === "LearningStrategy" || h.learningStrategyAnswers && h.learningStrategyAnswers.length > 0) || l[0] || t?.learningStrategyOptions, o = s?.answer || t?.resultTeacher?.answer || t?.teacherResult?.answer || "", r = s?.learningStrategyAnswers || t?.learningStrategyAnswers || [];
143
+ return o ? String(o).split(";").filter(Boolean).map((b) => {
144
+ const c = b.split("|"), v = parseInt(c[0], 10);
145
+ if (!isNaN(v) && r && r.length > 0) {
146
+ const u = r.find((N) => Number(N.id) === v);
147
+ if (u && (u.text || u.name))
148
+ return (u.text || u.name).trim();
149
+ }
150
+ return c[1] && c[1].trim() !== "" && isNaN(Number(c[1].trim())) ? c[1].trim() : "";
151
+ }).filter(Boolean) : t?.agreedStrategies && Array.isArray(t.agreedStrategies) ? t.agreedStrategies : t?.previousOneToOneStrategyName ? t.previousOneToOneStrategyName.split(",").map((h) => h.trim()).filter(Boolean) : [];
152
+ }, vt = (t, l = !1) => {
153
+ if (!t || t.length === 0) return [];
154
+ const s = t.find((c) => {
155
+ const v = we(c).toLowerCase();
156
+ return v.includes("ready to learn") || v.includes("ready to do your best learning") || v.includes("are you ready");
157
+ }), o = s ? Te(s, l).toLowerCase() : "", r = s?.answer !== void 0 && s?.answer !== null ? String(s.answer).trim().toLowerCase() : "", h = o === "yes" || r === "yes" || r === "1";
158
+ return t.filter((c) => {
159
+ if (c.type === "Summarize" || c.type === 20) return !1;
160
+ const v = String(c.type || "").toLowerCase();
161
+ if (c.type === "TextInput" || c.type === "TextInputWithSuggestions" || c.type === 3 || c.type === 7 || v.includes("textinput"))
162
+ return !1;
163
+ const u = we(c).toLowerCase(), N = u.includes("why") && (u.includes("not ready") || u.includes("ready"));
164
+ return h && N || N && !Te(c, l) && (!c.answer || String(c.answer).trim() === "") ? !1 : !c.isReasonQuestion;
165
+ }).map((c) => {
166
+ const v = we(c) || "Indicator", u = Number(c.answer) || 0, N = v.toLowerCase().includes("stress"), g = Te(c, l);
167
+ let { bg: w, color: m } = Ze(u, N, l);
168
+ const C = c.type === "SingleChoice" || c.type === 2 || String(c.type).toLowerCase() === "singlechoice", d = String(c.answer || "").trim(), p = g.toLowerCase(), A = d.toLowerCase();
169
+ (C || p === "yes" || p === "no" || A === "yes" || A === "no") && (p === "yes" || A === "yes" || d === "1" ? (w = "rgba(15, 150, 85, 0.24)", m = "#0F9655") : (p === "no" || A === "no" || d === "0") && (w = "rgba(196, 65, 64, 0.24)", m = "#C44140"));
170
+ const y = c.percent ? `${c.percent}%` : u ? `${u}%` : "";
171
+ return {
172
+ name: v,
173
+ val: g,
174
+ num: C || p === "yes" || p === "no" || A === "yes" || A === "no" ? "" : y,
175
+ score: u,
176
+ bg: w,
177
+ color: m,
178
+ type: c.type,
179
+ group: c.group
180
+ };
181
+ });
182
+ }, xe = (t) => !t || !Array.isArray(t) ? [] : t.map((l, s) => {
183
+ const o = Fe[s % Fe.length];
184
+ return {
185
+ id: `${(l.category || "").replace(/[^a-zA-Z0-9]/g, "_").toLowerCase()}_${s}`,
186
+ label: l.category,
187
+ ...o,
188
+ questions: l.questions || []
189
+ };
190
+ });
191
+ function Be(t, l, s, o, r, h, b) {
192
+ const c = l || 0, v = s || o || 0;
193
+ if (r)
194
+ h ? h({ sessionId: c, sessionResultId: v }) : window.dispatchEvent(
195
+ new CustomEvent("OPEN_ES_IFRAME", {
196
+ detail: { sessionId: c, sessionResultId: v }
197
+ })
198
+ );
199
+ else {
200
+ const u = b ? `&actionBack=${b}` : "", N = `/view-session/${c}/${v}?isReadOnly=true${u}`;
201
+ t(N);
202
+ }
203
+ }
204
+ async function wt(t, l, s) {
205
+ if (!t) return null;
206
+ try {
207
+ const o = await pt(t, l);
208
+ if (o?.data)
209
+ return s && s(o.data), o.data;
210
+ } catch (o) {
211
+ console.error("Failed to fetch session detail for log modal", o);
212
+ }
213
+ return null;
214
+ }
215
+ function yt(t = "BOTH") {
216
+ const l = he(), s = ge(($) => $.common?.user), o = ge(($) => $.common?.language), r = ge(($) => $.common?.isEnableWellBeing), h = s?.roles || [], b = s?.hasEsSchool !== !1, c = (s?.appTypeRaw ?? s?.appType ?? "").toUpperCase(), v = !c || c.includes("MS") || c.includes("HS"), u = b && (!c || c.includes("ES")), { msRoles: N, esRoles: g, hsRoles: w } = it(s?.appType, s?.msRoles, s?.esRoles, s?.hsRoles), m = N.includes("Admin") || w.includes("Admin"), C = g.includes("Admin");
217
+ let d = "BOTH";
218
+ m && !C ? d = "MS" : C && !m ? d = "ES" : u ? v ? d = "BOTH" : d = "ES" : d = "MS";
219
+ const p = t !== "BOTH" ? t : d, [A, y] = R(!0), [f, k] = R(!0), [S, I] = R(null), [E, O] = R(null), [D, G] = R(null), [X, K] = R(!0), [ee, U] = R(null), [T, H] = R([]), [Q, le] = R([]), { config: re } = de(), [se, be] = R("without"), [_, x] = R(() => (re?.system || "US").toUpperCase() === "UK" ? "UK" : "US");
220
+ oe(() => {
221
+ re?.system && x(re.system.toUpperCase() === "UK" ? "UK" : "US");
222
+ }, [re?.system]);
223
+ const [L, Y] = R(null), [P, W] = R(null), Z = Me(
224
+ ($, F, M, B, z) => {
225
+ Be(l, $, F, M, B, (Ne) => {
226
+ W(Ne);
227
+ }, z);
228
+ },
229
+ [l]
230
+ ), te = Me(() => {
231
+ I(null), y(!0), k(!0), r ? K(!0) : (K(!1), U(null)), ut(o || "en-US", p).then((M) => {
232
+ const B = M.data;
233
+ p !== "BOTH" && B?.students && (B.students = B.students.filter(
234
+ (z) => z.schoolType?.toUpperCase() === p
235
+ )), O(B);
236
+ }).catch((M) => {
237
+ console.error("Failed to load init data:", M), I(M?.message || "Failed to load init data");
238
+ }).finally(() => {
239
+ y(!1);
240
+ }), gt(p).then((M) => {
241
+ const B = M.data;
242
+ p !== "BOTH" && B?.flaggedStudents && (B.flaggedStudents.redFlags && (B.flaggedStudents.redFlags = B.flaggedStudents.redFlags.filter(
243
+ (z) => z.schoolType?.toUpperCase() === p
244
+ ), B.flaggedStudents.redFlagCount = B.flaggedStudents.redFlags.length), B.flaggedStudents.yellowFlags && (B.flaggedStudents.yellowFlags = B.flaggedStudents.yellowFlags.filter(
245
+ (z) => z.schoolType?.toUpperCase() === p
246
+ ), B.flaggedStudents.yellowFlagCount = B.flaggedStudents.yellowFlags.length)), G(B);
247
+ }).catch((M) => {
248
+ console.error("Failed to load analytics data:", M), I(M?.message || "Failed to load analytics data");
249
+ }).finally(() => {
250
+ k(!1);
251
+ }), r ? (async () => {
252
+ try {
253
+ const M = {
254
+ startDate: q().startOf("month").valueOf(),
255
+ endDate: q().endOf("month").valueOf(),
256
+ optionDate: "Monthly",
257
+ includeMonthAndWeekView: !0,
258
+ roles: h,
259
+ language: o || "en-US"
260
+ }, B = await mt(M);
261
+ B?.data && U(B.data);
262
+ } catch (M) {
263
+ console.error("Failed to load staff well-being data:", M), I(M?.message || "Failed to load staff well-being data");
264
+ } finally {
265
+ K(!1);
266
+ }
267
+ })() : (U(null), K(!1));
268
+ const F = [];
269
+ u ? F.push(
270
+ ke(!0).then((M) => {
271
+ M?.data && H(xe(M.data));
272
+ }).catch(() => null)
273
+ ) : H([]), v ? F.push(
274
+ ke(!1).then((M) => {
275
+ M?.data && le(xe(M.data));
276
+ }).catch(() => null)
277
+ ) : le([]), Promise.all(F);
278
+ }, [u, v, h, o, p, r]);
279
+ return oe(() => {
280
+ document.title = "Overview", te();
281
+ }, [te]), {
282
+ loading: A || f,
283
+ loadingInit: A,
284
+ loadingAnalytics: f,
285
+ error: S,
286
+ initData: E,
287
+ analyticsData: D,
288
+ caseMode: se,
289
+ setCaseMode: be,
290
+ curriculumSystem: _,
291
+ setCurriculumSystem: x,
292
+ flagModal: L,
293
+ setFlagModal: Y,
294
+ schoolType: p,
295
+ refetch: te,
296
+ handleViewCheckIn: Z,
297
+ esSessionIframe: P,
298
+ setEsSessionIframe: W,
299
+ conversationStartersEs: T,
300
+ conversationStartersMs: Q,
301
+ loadingWellBeing: X,
302
+ staffWellBeingData: ee,
303
+ isEnableWellBeing: r
304
+ };
305
+ }
306
+ const De = ({
307
+ width: t = 17,
308
+ height: l = 17,
309
+ color: s = "#316CD9",
310
+ className: o
311
+ }) => /* @__PURE__ */ a(
312
+ "svg",
313
+ {
314
+ width: t,
315
+ height: l,
316
+ viewBox: "0 0 24 24",
317
+ fill: "none",
318
+ stroke: s,
319
+ strokeWidth: "2",
320
+ className: o,
321
+ children: [
322
+ /* @__PURE__ */ e("path", { d: "M9 18h6" }),
323
+ /* @__PURE__ */ e("path", { d: "M10 22h4" }),
324
+ /* @__PURE__ */ e("path", { d: "M15.09 14c.18-.98.65-1.74 1.41-2.5A4.65 4.65 0 0 0 18 8 6 6 0 0 0 6 8c0 1.55.6 2.8 1.5 3.5.76.76 1.23 1.52 1.41 2.5" })
325
+ ]
326
+ }
327
+ ), Je = ({
328
+ fill: t = "#C44140",
329
+ width: l = 18,
330
+ height: s = 22,
331
+ className: o
332
+ }) => /* @__PURE__ */ e(
333
+ "svg",
334
+ {
335
+ width: l,
336
+ height: s,
337
+ viewBox: "0 0 25 32",
338
+ fill: "none",
339
+ xmlns: "http://www.w3.org/2000/svg",
340
+ className: o,
341
+ children: /* @__PURE__ */ e(
342
+ "path",
343
+ {
344
+ d: "M24.2872 -0.141754C21.4658 3.28575 21.1281 7.25702 21.2999 11.6181C21.5098 16.9475 22.358 24.291 23.1786 29.5842C23.2998 30.3658 22.3867 30.8232 21.8404 30.2545C18.7939 27.0829 15.2541 23.33 12.0658 19.1775C9.28717 22.6735 7.06154 26.7226 4.6545 31.0487C4.42524 31.4608 3.88078 31.5433 3.52569 31.2194C3.11675 30.8465 2.84835 30.3374 2.77008 29.7869C1.08065 17.9028 0.131368 12.0405 2.66545e-06 -0.206989L24.2872 -0.141754Z",
345
+ fill: t
346
+ }
347
+ )
348
+ }
349
+ ), Le = ({
350
+ width: t = 16,
351
+ height: l = 16,
352
+ color: s = "currentColor",
353
+ className: o
354
+ }) => /* @__PURE__ */ a(
355
+ "svg",
356
+ {
357
+ width: t,
358
+ height: l,
359
+ viewBox: "0 0 24 24",
360
+ fill: "none",
361
+ stroke: s,
362
+ strokeWidth: "2",
363
+ className: o,
364
+ children: [
365
+ /* @__PURE__ */ e("line", { x1: "5", y1: "12", x2: "19", y2: "12" }),
366
+ /* @__PURE__ */ e("polyline", { points: "12 5 19 12 12 19" })
367
+ ]
368
+ }
369
+ ), Xe = ({
370
+ width: t = 22,
371
+ height: l = 22,
372
+ color: s = "#316CD9",
373
+ className: o
374
+ }) => /* @__PURE__ */ a(
375
+ "svg",
376
+ {
377
+ width: t,
378
+ height: l,
379
+ viewBox: "0 0 24 24",
380
+ fill: "none",
381
+ stroke: s,
382
+ strokeWidth: "2",
383
+ className: o,
384
+ children: [
385
+ /* @__PURE__ */ e("path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" }),
386
+ /* @__PURE__ */ e("circle", { cx: "12", cy: "7", r: "4" })
387
+ ]
388
+ }
389
+ ), bt = ({
390
+ width: t = 18,
391
+ height: l = 18,
392
+ color: s = "rgba(36,36,36,0.56)",
393
+ className: o
394
+ }) => /* @__PURE__ */ a(
395
+ "svg",
396
+ {
397
+ width: t,
398
+ height: l,
399
+ viewBox: "0 0 24 24",
400
+ fill: "none",
401
+ stroke: s,
402
+ strokeWidth: "2",
403
+ className: o,
404
+ children: [
405
+ /* @__PURE__ */ e("circle", { cx: "11", cy: "11", r: "8" }),
406
+ /* @__PURE__ */ e("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" })
407
+ ]
408
+ }
409
+ ), Nt = ({
410
+ width: t = 17,
411
+ height: l = 17,
412
+ color: s = "currentColor",
413
+ className: o
414
+ }) => /* @__PURE__ */ a(
415
+ "svg",
416
+ {
417
+ width: t,
418
+ height: l,
419
+ viewBox: "0 0 24 24",
420
+ fill: "none",
421
+ stroke: s,
422
+ strokeWidth: "2",
423
+ className: o,
424
+ children: [
425
+ /* @__PURE__ */ e("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }),
426
+ /* @__PURE__ */ e("polyline", { points: "15 3 21 3 21 9" }),
427
+ /* @__PURE__ */ e("line", { x1: "10", y1: "14", x2: "21", y2: "3" })
428
+ ]
429
+ }
430
+ ), Ct = ({
431
+ direction: t = "up",
432
+ width: l = 16,
433
+ height: s = 16,
434
+ color: o,
435
+ className: r
436
+ }) => {
437
+ const h = t === "up";
438
+ return /* @__PURE__ */ e(
439
+ "svg",
440
+ {
441
+ width: l,
442
+ height: s,
443
+ viewBox: "0 0 24 24",
444
+ fill: "none",
445
+ stroke: o || (h ? "#0F9655" : "#C44140"),
446
+ strokeWidth: "2.5",
447
+ strokeLinecap: "round",
448
+ strokeLinejoin: "round",
449
+ className: r,
450
+ children: h ? /* @__PURE__ */ a(ne, { children: [
451
+ /* @__PURE__ */ e("polyline", { points: "23 6 13.5 15.5 8.5 10.5 1 18" }),
452
+ /* @__PURE__ */ e("polyline", { points: "17 6 23 6 23 12" })
453
+ ] }) : /* @__PURE__ */ a(ne, { children: [
454
+ /* @__PURE__ */ e("polyline", { points: "23 18 13.5 8.5 8.5 13.5 1 6" }),
455
+ /* @__PURE__ */ e("polyline", { points: "17 18 23 18 23 12" })
456
+ ] })
457
+ }
458
+ );
459
+ }, Tt = ({
460
+ width: t = 28,
461
+ height: l = 28,
462
+ color: s = "#ffffff",
463
+ className: o
464
+ }) => /* @__PURE__ */ a(
465
+ "svg",
466
+ {
467
+ width: t,
468
+ height: l,
469
+ viewBox: "0 0 24 24",
470
+ fill: "none",
471
+ stroke: s,
472
+ strokeWidth: "2",
473
+ className: o,
474
+ children: [
475
+ /* @__PURE__ */ e("path", { d: "M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" }),
476
+ /* @__PURE__ */ e("circle", { cx: "9", cy: "7", r: "4" }),
477
+ /* @__PURE__ */ e("path", { d: "M23 21v-2a4 4 0 0 0-3-3.87" }),
478
+ /* @__PURE__ */ e("path", { d: "M16 3.13a4 4 0 0 1 0 7.75" })
479
+ ]
480
+ }
481
+ ), kt = ({
482
+ width: t = 18,
483
+ height: l = 18,
484
+ color: s = "#D3D3D3",
485
+ className: o
486
+ }) => /* @__PURE__ */ a(
487
+ "svg",
488
+ {
489
+ xmlns: "http://www.w3.org/2000/svg",
490
+ width: t,
491
+ height: l,
492
+ viewBox: "0 0 24 24",
493
+ fill: "none",
494
+ stroke: s,
495
+ strokeWidth: "2",
496
+ strokeLinecap: "round",
497
+ strokeLinejoin: "round",
498
+ className: o,
499
+ children: [
500
+ /* @__PURE__ */ e("rect", { width: "8", height: "4", x: "8", y: "2", rx: "1", ry: "1" }),
501
+ /* @__PURE__ */ e("path", { d: "M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2" }),
502
+ /* @__PURE__ */ e("path", { d: "m9 14 2 2 4-4" })
503
+ ]
504
+ }
505
+ ), xt = ({
506
+ width: t = 18,
507
+ height: l = 18,
508
+ color: s = "#D3D3D3",
509
+ className: o
510
+ }) => /* @__PURE__ */ a(
511
+ "svg",
512
+ {
513
+ xmlns: "http://www.w3.org/2000/svg",
514
+ width: t,
515
+ height: l,
516
+ viewBox: "0 0 24 24",
517
+ fill: "none",
518
+ stroke: s,
519
+ strokeWidth: "2",
520
+ strokeLinecap: "round",
521
+ strokeLinejoin: "round",
522
+ className: o,
523
+ children: [
524
+ /* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "10" }),
525
+ /* @__PURE__ */ e("path", { d: "M12 6v6l4 2" })
526
+ ]
527
+ }
528
+ ), Lt = ({
529
+ width: t = 18,
530
+ height: l = 18,
531
+ color: s = "#D3D3D3",
532
+ className: o
533
+ }) => /* @__PURE__ */ e(
534
+ "svg",
535
+ {
536
+ xmlns: "http://www.w3.org/2000/svg",
537
+ width: t,
538
+ height: l,
539
+ viewBox: "0 0 24 24",
540
+ fill: "none",
541
+ stroke: s,
542
+ strokeWidth: "2",
543
+ strokeLinecap: "round",
544
+ strokeLinejoin: "round",
545
+ className: o,
546
+ children: /* @__PURE__ */ e("path", { d: "M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z" })
547
+ }
548
+ ), qe = ({
549
+ width: t = 18,
550
+ height: l = 18,
551
+ color: s = "rgba(36,36,36,0.56)",
552
+ className: o
553
+ }) => /* @__PURE__ */ a(
554
+ "svg",
555
+ {
556
+ width: t,
557
+ height: l,
558
+ viewBox: "0 0 24 24",
559
+ fill: "none",
560
+ stroke: s,
561
+ strokeWidth: "2",
562
+ className: o,
563
+ children: [
564
+ /* @__PURE__ */ e("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
565
+ /* @__PURE__ */ e("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
566
+ ]
567
+ }
568
+ ), St = ({
569
+ width: t = 12,
570
+ height: l = 12,
571
+ color: s = "rgba(36,36,36,0.56)",
572
+ className: o
573
+ }) => /* @__PURE__ */ a(
574
+ "svg",
575
+ {
576
+ xmlns: "http://www.w3.org/2000/svg",
577
+ width: t,
578
+ height: l,
579
+ viewBox: "0 0 24 24",
580
+ fill: "none",
581
+ stroke: s,
582
+ strokeWidth: "2",
583
+ strokeLinecap: "round",
584
+ strokeLinejoin: "round",
585
+ className: o,
586
+ children: [
587
+ /* @__PURE__ */ e("path", { d: "M8 2v4" }),
588
+ /* @__PURE__ */ e("path", { d: "M16 2v4" }),
589
+ /* @__PURE__ */ e("rect", { width: "18", height: "18", x: "3", y: "4", rx: "2" }),
590
+ /* @__PURE__ */ e("path", { d: "M3 10h18" })
591
+ ]
592
+ }
593
+ ), It = ({
594
+ width: t = 13,
595
+ height: l = 13,
596
+ color: s = "#0F9655",
597
+ className: o
598
+ }) => /* @__PURE__ */ a(
599
+ "svg",
600
+ {
601
+ xmlns: "http://www.w3.org/2000/svg",
602
+ width: t,
603
+ height: l,
604
+ viewBox: "0 0 24 24",
605
+ fill: "none",
606
+ stroke: s,
607
+ strokeWidth: "2",
608
+ strokeLinecap: "round",
609
+ strokeLinejoin: "round",
610
+ className: o,
611
+ children: [
612
+ /* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "10" }),
613
+ /* @__PURE__ */ e("path", { d: "m9 12 2 2 4-4" })
614
+ ]
615
+ }
616
+ ), Bt = ({
617
+ width: t = 13,
618
+ height: l = 13,
619
+ color: s = "rgba(36,36,36,0.56)",
620
+ className: o
621
+ }) => /* @__PURE__ */ a(
622
+ "svg",
623
+ {
624
+ xmlns: "http://www.w3.org/2000/svg",
625
+ width: t,
626
+ height: l,
627
+ viewBox: "0 0 24 24",
628
+ fill: "none",
629
+ stroke: s,
630
+ strokeWidth: "2",
631
+ strokeLinecap: "round",
632
+ strokeLinejoin: "round",
633
+ className: o,
634
+ children: [
635
+ /* @__PURE__ */ e("path", { d: "M10.1 2.182a10 10 0 0 1 3.8 0" }),
636
+ /* @__PURE__ */ e("path", { d: "M13.9 21.818a10 10 0 0 1-3.8 0" }),
637
+ /* @__PURE__ */ e("path", { d: "M17.609 3.721a10 10 0 0 1 2.69 2.7" }),
638
+ /* @__PURE__ */ e("path", { d: "M2.182 13.9a10 10 0 0 1 0-3.8" }),
639
+ /* @__PURE__ */ e("path", { d: "M20.279 17.609a10 10 0 0 1-2.7 2.69" }),
640
+ /* @__PURE__ */ e("path", { d: "M21.818 10.1a10 10 0 0 1 0 3.8" }),
641
+ /* @__PURE__ */ e("path", { d: "M3.721 6.391a10 10 0 0 1 2.7-2.69" }),
642
+ /* @__PURE__ */ e("path", { d: "M6.391 20.279a10 10 0 0 1-2.69-2.7" })
643
+ ]
644
+ }
645
+ ), et = ({
646
+ width: t = 15,
647
+ height: l = 15,
648
+ color: s = "currentColor",
649
+ className: o
650
+ }) => /* @__PURE__ */ a(
651
+ "svg",
652
+ {
653
+ xmlns: "http://www.w3.org/2000/svg",
654
+ width: t,
655
+ height: l,
656
+ viewBox: "0 0 24 24",
657
+ fill: "none",
658
+ stroke: s,
659
+ strokeWidth: "2",
660
+ strokeLinecap: "round",
661
+ strokeLinejoin: "round",
662
+ className: o,
663
+ children: [
664
+ /* @__PURE__ */ e("rect", { width: "8", height: "4", x: "8", y: "2", rx: "1", ry: "1" }),
665
+ /* @__PURE__ */ e("path", { d: "M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2" }),
666
+ /* @__PURE__ */ e("path", { d: "M12 11h4" }),
667
+ /* @__PURE__ */ e("path", { d: "M12 16h4" }),
668
+ /* @__PURE__ */ e("path", { d: "M8 11h.01" }),
669
+ /* @__PURE__ */ e("path", { d: "M8 16h.01" })
670
+ ]
671
+ }
672
+ ), Mt = ({
673
+ width: t = 15,
674
+ height: l = 15,
675
+ color: s = "currentColor",
676
+ className: o
677
+ }) => /* @__PURE__ */ a(
678
+ "svg",
679
+ {
680
+ xmlns: "http://www.w3.org/2000/svg",
681
+ width: t,
682
+ height: l,
683
+ viewBox: "0 0 24 24",
684
+ fill: "none",
685
+ stroke: s,
686
+ strokeWidth: "2",
687
+ strokeLinecap: "round",
688
+ strokeLinejoin: "round",
689
+ className: o,
690
+ children: [
691
+ /* @__PURE__ */ e("path", { d: "M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4" }),
692
+ /* @__PURE__ */ e("path", { d: "M2 6h4" }),
693
+ /* @__PURE__ */ e("path", { d: "M2 10h4" }),
694
+ /* @__PURE__ */ e("path", { d: "M2 14h4" }),
695
+ /* @__PURE__ */ e("path", { d: "M2 18h4" }),
696
+ /* @__PURE__ */ e("path", { d: "M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z" })
697
+ ]
698
+ }
699
+ ), ue = ({ color: t = "#0F9655", width: l = 8, height: s = 9 }) => /* @__PURE__ */ e("svg", { width: l, height: s, viewBox: "0 0 8 9", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ e("path", { d: "M4.35355 0.646446C4.15829 0.451184 3.84171 0.451184 3.64645 0.646446L0.464466 3.82843C0.269204 4.02369 0.269204 4.34027 0.464466 4.53553C0.659728 4.7308 0.976311 4.7308 1.17157 4.53553L4 1.70711L6.82843 4.53553C7.02369 4.7308 7.34027 4.7308 7.53553 4.53553C7.7308 4.34027 7.7308 4.02369 7.53553 3.82843L4.35355 0.646446ZM4.5 9L4.5 1L3.5 1L3.5 9L4.5 9Z", fill: t }) }), He = ({ color: t = "#C44140", width: l = 8, height: s = 9 }) => /* @__PURE__ */ e("svg", { width: l, height: s, viewBox: "0 0 8 9", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ e("path", { d: "M4.35355 8.35355C4.15829 8.54882 3.84171 8.54882 3.64645 8.35355L0.464466 5.17157C0.269204 4.97631 0.269204 4.65973 0.464466 4.46447C0.659728 4.2692 0.976311 4.2692 1.17157 4.46447L4 7.29289L6.82843 4.46447C7.02369 4.2692 7.34027 4.2692 7.53553 4.46447C7.7308 4.65973 7.7308 4.97631 7.53553 5.17157L4.35355 8.35355ZM4.5 2.18557e-08L4.5 8L3.5 8L3.5 -2.18557e-08L4.5 2.18557e-08Z", fill: t }) }), jt = ({
700
+ width: t = 17,
701
+ height: l = 17,
702
+ color: s = "#316CD9",
703
+ className: o
704
+ }) => /* @__PURE__ */ a(
705
+ "svg",
706
+ {
707
+ width: t,
708
+ height: l,
709
+ viewBox: "0 0 24 24",
710
+ fill: "none",
711
+ stroke: s,
712
+ strokeWidth: "2",
713
+ strokeLinecap: "round",
714
+ strokeLinejoin: "round",
715
+ className: o,
716
+ children: [
717
+ /* @__PURE__ */ e("path", { d: "M3 3v18h18" }),
718
+ /* @__PURE__ */ e("path", { d: "M18 17V9" }),
719
+ /* @__PURE__ */ e("path", { d: "M13 17V5" }),
720
+ /* @__PURE__ */ e("path", { d: "M8 17v-3" })
721
+ ]
722
+ }
723
+ ), Rt = ({
724
+ width: t = 18,
725
+ height: l = 18,
726
+ color: s = "#316CD9",
727
+ className: o
728
+ }) => /* @__PURE__ */ a(
729
+ "svg",
730
+ {
731
+ width: t,
732
+ height: l,
733
+ viewBox: "0 0 24 24",
734
+ fill: "none",
735
+ stroke: s,
736
+ strokeWidth: "2",
737
+ strokeLinecap: "round",
738
+ strokeLinejoin: "round",
739
+ className: o,
740
+ children: [
741
+ /* @__PURE__ */ e("path", { d: "M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" }),
742
+ /* @__PURE__ */ e("polyline", { points: "9 22 9 12 15 12 15 22" })
743
+ ]
744
+ }
745
+ ), At = ({
746
+ width: t = 18,
747
+ height: l = 18,
748
+ color: s = "#316CD9",
749
+ className: o
750
+ }) => /* @__PURE__ */ a(
751
+ "svg",
752
+ {
753
+ width: t,
754
+ height: l,
755
+ viewBox: "0 0 24 24",
756
+ fill: "none",
757
+ stroke: s,
758
+ strokeWidth: "2",
759
+ strokeLinecap: "round",
760
+ strokeLinejoin: "round",
761
+ className: o,
762
+ children: [
763
+ /* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "10" }),
764
+ /* @__PURE__ */ e("line", { x1: "2", y1: "12", x2: "22", y2: "12" }),
765
+ /* @__PURE__ */ e("path", { d: "M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z" })
766
+ ]
767
+ }
768
+ ), Ot = ({
769
+ width: t = 18,
770
+ height: l = 18,
771
+ color: s = "#316CD9",
772
+ className: o
773
+ }) => /* @__PURE__ */ a(
774
+ "svg",
775
+ {
776
+ width: t,
777
+ height: l,
778
+ viewBox: "0 0 24 24",
779
+ fill: "none",
780
+ stroke: s,
781
+ strokeWidth: "2",
782
+ strokeLinecap: "round",
783
+ strokeLinejoin: "round",
784
+ className: o,
785
+ children: [
786
+ /* @__PURE__ */ e("path", { d: "M14 22v-4a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v4" }),
787
+ /* @__PURE__ */ e("path", { d: "M18 22V6l-6-4-6 4v16" }),
788
+ /* @__PURE__ */ e("path", { d: "M6 12h12" }),
789
+ /* @__PURE__ */ e("path", { d: "M6 16h12" }),
790
+ /* @__PURE__ */ e("circle", { cx: "12", cy: "6", r: "1", fill: s })
791
+ ]
792
+ }
793
+ ), Et = ({
794
+ width: t = 14,
795
+ height: l = 14,
796
+ color: s = "#C44140",
797
+ className: o
798
+ }) => /* @__PURE__ */ e(
799
+ "svg",
800
+ {
801
+ width: t,
802
+ height: l,
803
+ viewBox: "0 0 24 24",
804
+ fill: "none",
805
+ stroke: s,
806
+ strokeWidth: "2",
807
+ strokeLinecap: "round",
808
+ strokeLinejoin: "round",
809
+ className: o,
810
+ children: /* @__PURE__ */ e("path", { d: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" })
811
+ }
812
+ ), tt = ({
813
+ width: t = 14,
814
+ height: l = 14,
815
+ color: s = "#B46A00",
816
+ className: o
817
+ }) => /* @__PURE__ */ e(
818
+ "svg",
819
+ {
820
+ width: t,
821
+ height: l,
822
+ viewBox: "0 0 24 24",
823
+ fill: "none",
824
+ stroke: s,
825
+ strokeWidth: "2",
826
+ strokeLinecap: "round",
827
+ strokeLinejoin: "round",
828
+ className: o,
829
+ children: /* @__PURE__ */ e("polyline", { points: "22 12 18 12 15 21 9 3 6 12 2 12" })
830
+ }
831
+ ), Ft = ({
832
+ width: t = 17,
833
+ height: l = 17,
834
+ color: s = "#C44140",
835
+ className: o
836
+ }) => /* @__PURE__ */ a(
837
+ "svg",
838
+ {
839
+ width: t,
840
+ height: l,
841
+ viewBox: "0 0 24 24",
842
+ fill: "none",
843
+ stroke: s,
844
+ strokeWidth: "2",
845
+ strokeLinecap: "round",
846
+ strokeLinejoin: "round",
847
+ className: o,
848
+ children: [
849
+ /* @__PURE__ */ e("path", { d: "M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" }),
850
+ /* @__PURE__ */ e("circle", { cx: "9", cy: "7", r: "4" }),
851
+ /* @__PURE__ */ e("path", { d: "M23 21v-2a4 4 0 0 0-3-3.87" }),
852
+ /* @__PURE__ */ e("path", { d: "M16 3.13a4 4 0 0 1 0 7.75" })
853
+ ]
854
+ }
855
+ ), Ut = ({
856
+ width: t = 16,
857
+ height: l = 16,
858
+ color: s = "#316CD9",
859
+ className: o
860
+ }) => /* @__PURE__ */ a(
861
+ "svg",
862
+ {
863
+ width: t,
864
+ height: l,
865
+ viewBox: "0 0 24 24",
866
+ fill: "none",
867
+ stroke: s,
868
+ strokeWidth: "2",
869
+ strokeLinecap: "round",
870
+ strokeLinejoin: "round",
871
+ className: o,
872
+ children: [
873
+ /* @__PURE__ */ e("line", { x1: "19", y1: "12", x2: "5", y2: "12" }),
874
+ /* @__PURE__ */ e("polyline", { points: "12 19 5 12 12 5" })
875
+ ]
876
+ }
877
+ ), Dt = "_overviewContainer_socjn_3", Ht = "_mainContent_socjn_13", Wt = "_maxWidthWrapper_socjn_19", Pt = "_headerRow_socjn_24", $t = "_mainTitle_socjn_33", Vt = "_subTitle_socjn_42", Gt = "_layoutGrid_socjn_50", Yt = "_leftColumn_socjn_63", zt = "_rightColumn_socjn_76", Kt = "_statCardGrid_socjn_86", Qt = "_statCard_socjn_86", Zt = "_statCardHeader_socjn_115", Jt = "_iconBadge_socjn_122", Xt = "_iconBadgeRed_socjn_131", qt = "_iconBadgeYellow_socjn_135", en = "_statCardLabel_socjn_139", tn = "_statCardBody_socjn_148", nn = "_statCardValue_socjn_156", sn = "_statCardFooter_socjn_164", an = "_lookupCard_socjn_175", on = "_lookupTitleGroup_socjn_186", ln = "_lookupIconBadge_socjn_194", rn = "_lookupHeading_socjn_204", cn = "_lookupSubText_socjn_213", dn = "_lookupSearchGroup_socjn_219", hn = "_searchInputWrapper_socjn_228", _n = "_searchInput_socjn_228", un = "_autocompleteMenu_socjn_255", gn = "_autocompleteItem_socjn_269", mn = "_viewProfileBtn_socjn_279", pn = "_wellnessCard_socjn_297", fn = "_wellnessHeader_socjn_304", vn = "_wellnessTitle_socjn_313", wn = "_wellnessSubtitle_socjn_322", yn = "_phaseTabContainer_socjn_329", bn = "_phaseTabs_socjn_330", Nn = "_phaseTabBtn_socjn_338", Cn = "_phaseTabBtnActive_socjn_350", Tn = "_wellnessGrid_socjn_356", kn = "_wellnessGridEs_socjn_369", xn = "_wellnessRow_socjn_374", Ln = "_wellnessIconImg_socjn_382", Sn = "_wellnessIconBadge_socjn_389", In = "_wellnessRowLabel_socjn_399", Bn = "_wellnessRowLabelMs_socjn_405", Mn = "_wellnessRowLabelEs_socjn_410", jn = "_wellnessPill_socjn_414", Rn = "_wellnessPillDivider_socjn_426", An = "_wellnessPillPct_socjn_432", On = "_wellnessRowPct_socjn_436", En = "_wellnessRowRight_socjn_443", Fn = "_viewDashBtn_socjn_450", Un = "_seeUnhealthyBtn_socjn_466", Dn = "_unsafeBadge_socjn_487", Hn = "_highStressBadge_socjn_499", Wn = "_usagePanel_socjn_512", Pn = "_usageHeader_socjn_519", $n = "_usageIconCircle_socjn_527", Vn = "_schoolLogoImg_socjn_538", Gn = "_schoolBadgeName_socjn_545", Yn = "_usageTitle_socjn_553", zn = "_usageDivider_socjn_561", Kn = "_usageTilesList_socjn_567", Qn = "_usageTile_socjn_567", Zn = "_usageTileHeader_socjn_580", Jn = "_usageTileLabel_socjn_587", Xn = "_usageProgressBarTrack_socjn_595", qn = "_usageProgressBarFill_socjn_603", es = "_usageProgressBarFillGreen_socjn_609", ts = "_usageTileValue_socjn_615", ns = "_usageTileSubText_socjn_623", ss = "_deltaUp_socjn_630", as = "_deltaDown_socjn_635", os = "_campusCard_socjn_641", ls = "_campusHeader_socjn_649", rs = "_campusTitle_socjn_658", is = "_campusSubText_socjn_666", cs = "_sysToggleGroup_socjn_671", ds = "_sysToggleLabel_socjn_677", hs = "_tableWrapper_socjn_683", _s = "_overviewTable_socjn_689", us = "_totalsRow_socjn_722", gs = "_dashMuted_socjn_730", ms = "_redFlagText_socjn_735", ps = "_yellowFlagText_socjn_740", fs = "_helpPopoverWrapper_socjn_746", vs = "_infoHelpBtn_socjn_751", ws = "_popoverBackdrop_socjn_770", ys = "_referencePopover_socjn_779", bs = "_refTitle_socjn_803", Ns = "_refSubText_socjn_811", Cs = "_refTableWrapper_socjn_818", Ts = "_refTable_socjn_818", ks = "_usStageTd_socjn_849", xs = "_adminTipsWrapper_socjn_855", Ls = "_adminTipsBtn_socjn_862", Ss = "_adminTipsPopover_socjn_876", Is = "_popoverArrow_socjn_889", Bs = "_popoverHeaderRow_socjn_907", Ms = "_popoverIconCircle_socjn_914", js = "_popoverHeaderTitle_socjn_923", Rs = "_tipItem_socjn_937", As = "_tipNumber_socjn_944", Os = "_tipText_socjn_958", Es = "_dialogContentZero_socjn_969", Fs = "_studentAvatarRed_socjn_973", Us = "_studentAvatarYellow_socjn_978", Ds = "_studentInfoCol_socjn_983", Hs = "_modalHeader_socjn_988", Ws = "_modalTitle_socjn_996", Ps = "_modalSubtitle_socjn_1004", $s = "_modalCloseBtn_socjn_1010", Vs = "_modalStudentList_socjn_1022", Gs = "_studentRow_socjn_1028", Ys = "_studentAvatar_socjn_973", zs = "_studentName_socjn_1050", Ks = "_studentGrade_socjn_1056", Qs = "_studentMetaRow_socjn_1062", Zs = "_dateLabel_socjn_1070", Js = "_loggedPill_socjn_1078", Xs = "_notLoggedPill_socjn_1090", qs = "_modalActionButtons_socjn_1102", ea = "_btnViewCheckIn_socjn_1109", ta = "_btnViewLogActive_socjn_1123", na = "_btnViewLogDisabled_socjn_1137", sa = "_wellBeingCard_socjn_1506", aa = "_iconContainer_socjn_1517", oa = "_wellBeingIconLabel_socjn_1527", la = "_wellBeingTitle_socjn_1532", ra = "_wellBeingDescription_socjn_1541", ia = "_wellBeingHeader_socjn_1550", ca = "_wellBeingActionBtn_socjn_1563", da = "_staffOnlyBadge_socjn_1577", ha = "_gridContainer_socjn_1590", _a = "_cardItem_socjn_1597", ua = "_cardTitle_socjn_1603", ga = "_cardValue_socjn_1614", ma = "_subValue_socjn_1622", pa = "_cardSubText_socjn_1631", fa = "_customTooltip_socjn_1637", va = "_emptyRoutineContainer_socjn_1666", wa = "_emptyIconWrapper_socjn_1680", ya = "_emptyTitle_socjn_1691", ba = "_emptySubText_socjn_1698", Na = "_setupRoutineBtn_socjn_1706", n = {
878
+ overviewContainer: Dt,
879
+ mainContent: Ht,
880
+ maxWidthWrapper: Wt,
881
+ headerRow: Pt,
882
+ mainTitle: $t,
883
+ subTitle: Vt,
884
+ layoutGrid: Gt,
885
+ leftColumn: Yt,
886
+ rightColumn: zt,
887
+ statCardGrid: Kt,
888
+ statCard: Qt,
889
+ statCardHeader: Zt,
890
+ iconBadge: Jt,
891
+ iconBadgeRed: Xt,
892
+ iconBadgeYellow: qt,
893
+ statCardLabel: en,
894
+ statCardBody: tn,
895
+ statCardValue: nn,
896
+ statCardFooter: sn,
897
+ lookupCard: an,
898
+ lookupTitleGroup: on,
899
+ lookupIconBadge: ln,
900
+ lookupHeading: rn,
901
+ lookupSubText: cn,
902
+ lookupSearchGroup: dn,
903
+ searchInputWrapper: hn,
904
+ searchInput: _n,
905
+ autocompleteMenu: un,
906
+ autocompleteItem: gn,
907
+ viewProfileBtn: mn,
908
+ wellnessCard: pn,
909
+ wellnessHeader: fn,
910
+ wellnessTitle: vn,
911
+ wellnessSubtitle: wn,
912
+ phaseTabContainer: yn,
913
+ phaseTabs: bn,
914
+ phaseTabBtn: Nn,
915
+ phaseTabBtnActive: Cn,
916
+ wellnessGrid: Tn,
917
+ wellnessGridEs: kn,
918
+ wellnessRow: xn,
919
+ wellnessIconImg: Ln,
920
+ wellnessIconBadge: Sn,
921
+ wellnessRowLabel: In,
922
+ wellnessRowLabelMs: Bn,
923
+ wellnessRowLabelEs: Mn,
924
+ wellnessPill: jn,
925
+ wellnessPillDivider: Rn,
926
+ wellnessPillPct: An,
927
+ wellnessRowPct: On,
928
+ wellnessRowRight: En,
929
+ viewDashBtn: Fn,
930
+ seeUnhealthyBtn: Un,
931
+ unsafeBadge: Dn,
932
+ highStressBadge: Hn,
933
+ usagePanel: Wn,
934
+ usageHeader: Pn,
935
+ usageIconCircle: $n,
936
+ schoolLogoImg: Vn,
937
+ schoolBadgeName: Gn,
938
+ usageTitle: Yn,
939
+ usageDivider: zn,
940
+ usageTilesList: Kn,
941
+ usageTile: Qn,
942
+ usageTileHeader: Zn,
943
+ usageTileLabel: Jn,
944
+ usageProgressBarTrack: Xn,
945
+ usageProgressBarFill: qn,
946
+ usageProgressBarFillGreen: es,
947
+ usageTileValue: ts,
948
+ usageTileSubText: ns,
949
+ deltaUp: ss,
950
+ deltaDown: as,
951
+ campusCard: os,
952
+ campusHeader: ls,
953
+ campusTitle: rs,
954
+ campusSubText: is,
955
+ sysToggleGroup: cs,
956
+ sysToggleLabel: ds,
957
+ tableWrapper: hs,
958
+ overviewTable: _s,
959
+ totalsRow: us,
960
+ dashMuted: gs,
961
+ redFlagText: ms,
962
+ yellowFlagText: ps,
963
+ helpPopoverWrapper: fs,
964
+ infoHelpBtn: vs,
965
+ popoverBackdrop: ws,
966
+ referencePopover: ys,
967
+ refTitle: bs,
968
+ refSubText: Ns,
969
+ refTableWrapper: Cs,
970
+ refTable: Ts,
971
+ usStageTd: ks,
972
+ adminTipsWrapper: xs,
973
+ adminTipsBtn: Ls,
974
+ adminTipsPopover: Ss,
975
+ popoverArrow: Is,
976
+ popoverHeaderRow: Bs,
977
+ popoverIconCircle: Ms,
978
+ popoverHeaderTitle: js,
979
+ tipItem: Rs,
980
+ tipNumber: As,
981
+ tipText: Os,
982
+ dialogContentZero: Es,
983
+ studentAvatarRed: Fs,
984
+ studentAvatarYellow: Us,
985
+ studentInfoCol: Ds,
986
+ modalHeader: Hs,
987
+ modalTitle: Ws,
988
+ modalSubtitle: Ps,
989
+ modalCloseBtn: $s,
990
+ modalStudentList: Vs,
991
+ studentRow: Gs,
992
+ studentAvatar: Ys,
993
+ studentName: zs,
994
+ studentGrade: Ks,
995
+ studentMetaRow: Qs,
996
+ dateLabel: Zs,
997
+ loggedPill: Js,
998
+ notLoggedPill: Xs,
999
+ modalActionButtons: qs,
1000
+ btnViewCheckIn: ea,
1001
+ btnViewLogActive: ta,
1002
+ btnViewLogDisabled: na,
1003
+ wellBeingCard: sa,
1004
+ iconContainer: aa,
1005
+ wellBeingIconLabel: oa,
1006
+ wellBeingTitle: la,
1007
+ wellBeingDescription: ra,
1008
+ wellBeingHeader: ia,
1009
+ wellBeingActionBtn: ca,
1010
+ staffOnlyBadge: da,
1011
+ gridContainer: ha,
1012
+ cardItem: _a,
1013
+ cardTitle: ua,
1014
+ cardValue: ga,
1015
+ subValue: ma,
1016
+ cardSubText: pa,
1017
+ customTooltip: fa,
1018
+ emptyRoutineContainer: va,
1019
+ emptyIconWrapper: wa,
1020
+ emptyTitle: ya,
1021
+ emptySubText: ba,
1022
+ setupRoutineBtn: Na
1023
+ }, We = ({ kind: t, label: l, value: s, onOpen: o }) => {
1024
+ const { t: r } = J(), h = t === "red", b = h ? "#C44140" : "#F5D500", c = h ? n.iconBadgeRed : n.iconBadgeYellow, v = r(h ? "see_all_red_flags" : "see_all_yellow_flags");
1025
+ return /* @__PURE__ */ a("div", { className: n.statCard, onClick: o, children: [
1026
+ /* @__PURE__ */ a("div", { className: n.statCardHeader, children: [
1027
+ /* @__PURE__ */ e("div", { className: `${n.iconBadge} ${c}`, children: /* @__PURE__ */ e(Je, { fill: b, width: 18, height: 22 }) }),
1028
+ /* @__PURE__ */ e("span", { className: n.statCardLabel, children: l })
1029
+ ] }),
1030
+ /* @__PURE__ */ e("div", { className: n.statCardBody, children: /* @__PURE__ */ e("span", { className: n.statCardValue, children: s }) }),
1031
+ /* @__PURE__ */ a("div", { className: n.statCardFooter, children: [
1032
+ /* @__PURE__ */ e("span", { children: v }),
1033
+ /* @__PURE__ */ e(Le, { width: 16, height: 16 })
1034
+ ] })
1035
+ ] });
1036
+ }, Ca = ({ students: t = [], onSelectStudent: l }) => {
1037
+ const { t: s } = J(), { getLabel: o } = de(), r = Ge(), h = he(), c = ge((y) => y.common?.user)?.hasEsSchool !== !1, v = nt(null), [u, N] = R(""), [g, w] = R(!1), [m, C] = R(null), d = u.trim() ? t.filter((y) => y.fullName.toLowerCase().includes(u.toLowerCase())) : [];
1038
+ oe(() => {
1039
+ const y = (f) => {
1040
+ v.current && !v.current.contains(f.target) && w(!1);
1041
+ };
1042
+ return document.addEventListener("mousedown", y), () => {
1043
+ document.removeEventListener("mousedown", y);
1044
+ };
1045
+ }, []);
1046
+ const p = (y) => {
1047
+ N(y.fullName), C(y), w(!1), l && l(y);
1048
+ }, A = () => {
1049
+ if (!m) {
1050
+ r(
1051
+ ve({
1052
+ type: "danger",
1053
+ message: s("please_select_a_student") || "Please select a student from the list"
1054
+ })
1055
+ );
1056
+ return;
1057
+ }
1058
+ const y = {
1059
+ studentId: Number(m.id),
1060
+ studentUserId: m.userId || "",
1061
+ gender: [0, 1, 2],
1062
+ grade: m.gradeLevel ? [m.gradeLevel] : [],
1063
+ optionDate: "Monthly"
1064
+ };
1065
+ sessionStorage.setItem(Oe, JSON.stringify(y)), localStorage.setItem(Oe, JSON.stringify(y));
1066
+ const f = m.schoolType?.trim().toUpperCase() || "", k = m.gradeLevel?.trim().toLowerCase() || "", S = c && (f === "ES" || f === "ELEMENTARY" || ["k", "kg", "pk", "prek", "pre-k", "1", "2", "3", "4", "5"].includes(k));
1067
+ h(S ? `/admin/dashboard-wrapper?type=elementary&studentId=${m.id}` : `/admin/dashboard?studentId=${m.id}`);
1068
+ };
1069
+ return /* @__PURE__ */ a("div", { className: n.lookupCard, ref: v, children: [
1070
+ /* @__PURE__ */ a("div", { className: n.lookupTitleGroup, children: [
1071
+ /* @__PURE__ */ e("div", { className: n.lookupIconBadge, children: /* @__PURE__ */ e(Xe, { width: 22, height: 22, color: "#316CD9" }) }),
1072
+ /* @__PURE__ */ a("div", { children: [
1073
+ /* @__PURE__ */ e("h2", { className: n.lookupHeading, children: s("student_lookup") }),
1074
+ /* @__PURE__ */ e("p", { className: n.lookupSubText, children: s("search_and_view_any_student_profile") })
1075
+ ] })
1076
+ ] }),
1077
+ /* @__PURE__ */ a("div", { className: n.lookupSearchGroup, children: [
1078
+ /* @__PURE__ */ a("div", { className: n.searchInputWrapper, children: [
1079
+ /* @__PURE__ */ e(bt, { width: 18, height: 18, color: "rgba(36,36,36,0.56)" }),
1080
+ /* @__PURE__ */ e(
1081
+ "input",
1082
+ {
1083
+ type: "text",
1084
+ className: n.searchInput,
1085
+ value: u,
1086
+ onChange: (y) => {
1087
+ N(y.target.value), C(null), w(!0);
1088
+ },
1089
+ onFocus: () => w(!0),
1090
+ placeholder: s("search_by_student_name")
1091
+ }
1092
+ )
1093
+ ] }),
1094
+ g && d.length > 0 && /* @__PURE__ */ e("div", { className: n.autocompleteMenu, children: d.map((y) => /* @__PURE__ */ a(
1095
+ "div",
1096
+ {
1097
+ className: n.autocompleteItem,
1098
+ onClick: () => p(y),
1099
+ children: [
1100
+ y.fullName,
1101
+ " (",
1102
+ y.gradeLevel ? o(y.gradeLevel) : "——",
1103
+ ")"
1104
+ ]
1105
+ },
1106
+ y.id
1107
+ )) }),
1108
+ /* @__PURE__ */ a(
1109
+ "button",
1110
+ {
1111
+ type: "button",
1112
+ className: n.viewProfileBtn,
1113
+ onClick: A,
1114
+ children: [
1115
+ /* @__PURE__ */ e(Nt, { width: 17, height: 17 }),
1116
+ /* @__PURE__ */ e("span", { children: s("view_profile") })
1117
+ ]
1118
+ }
1119
+ )
1120
+ ] })
1121
+ ] });
1122
+ }, Ta = "/images/image-default.png", ka = ({
1123
+ open: t,
1124
+ onClose: l,
1125
+ students: s,
1126
+ curriculumSystem: o,
1127
+ isEs: r = !1
1128
+ }) => {
1129
+ const h = he(), { t: b } = J(), { getLabel: c, system: v } = de(), u = o ?? (v === "UK" ? "UK" : "US"), N = Qe(s), g = b("unsafe_and_stressed_students"), w = `${N.length} ${b("students_flagged_for_safety_or_stress")}`;
1130
+ return /* @__PURE__ */ a(
1131
+ Se,
1132
+ {
1133
+ open: t,
1134
+ onClose: l,
1135
+ maxWidth: "md",
1136
+ fullWidth: !0,
1137
+ PaperProps: {
1138
+ style: {
1139
+ borderRadius: 20,
1140
+ boxShadow: "0 20px 60px rgba(31, 63, 115, 0.3)",
1141
+ overflow: "hidden"
1142
+ }
1143
+ },
1144
+ children: [
1145
+ /* @__PURE__ */ a("div", { className: n.modalHeader, children: [
1146
+ /* @__PURE__ */ a("div", { children: [
1147
+ /* @__PURE__ */ e("h2", { className: n.modalTitle, children: g }),
1148
+ /* @__PURE__ */ e("p", { className: n.modalSubtitle, children: w })
1149
+ ] }),
1150
+ /* @__PURE__ */ e("button", { type: "button", className: n.modalCloseBtn, onClick: l, children: /* @__PURE__ */ e(qe, { width: 18, height: 18, color: "rgba(36,36,36,0.56)" }) })
1151
+ ] }),
1152
+ /* @__PURE__ */ e(Ye, { className: n.dialogContentZero, children: /* @__PURE__ */ e("div", { className: n.modalStudentList, children: N.map((m) => /* @__PURE__ */ a("div", { className: n.studentRow, children: [
1153
+ m.studentAvatar ? /* @__PURE__ */ e(
1154
+ Ie,
1155
+ {
1156
+ alt: m.studentName?.toUpperCase(),
1157
+ src: ye(m.studentAvatar) || Ta,
1158
+ className: `${n.studentAvatar} ${n.studentAvatarRed}`
1159
+ }
1160
+ ) : /* @__PURE__ */ e("div", { className: `${n.studentAvatar} ${n.studentAvatarRed}`, children: Ke(m.studentName) }),
1161
+ /* @__PURE__ */ e("div", { className: n.studentInfoCol, children: /* @__PURE__ */ a("div", { className: n.studentName, children: [
1162
+ m.studentName,
1163
+ m.gradeLevel && /* @__PURE__ */ a("span", { className: n.studentGrade, children: [
1164
+ " · ",
1165
+ c(m.gradeLevel, { system: u === "UK" ? "UK" : "US" })
1166
+ ] })
1167
+ ] }) }),
1168
+ /* @__PURE__ */ a("div", { style: { display: "flex", alignItems: "center", gap: 8, marginLeft: "auto", marginRight: 16 }, children: [
1169
+ m.isUnsafe && /* @__PURE__ */ a("span", { className: n.unsafeBadge, children: [
1170
+ /* @__PURE__ */ e(Et, { width: 14, height: 14, color: "#C44140" }),
1171
+ /* @__PURE__ */ e("span", { children: b("unsafe_badge") })
1172
+ ] }),
1173
+ m.isHighStress && /* @__PURE__ */ a("span", { className: n.highStressBadge, children: [
1174
+ /* @__PURE__ */ e(tt, { width: 14, height: 14, color: "#B46A00" }),
1175
+ /* @__PURE__ */ e("span", { children: b("high_stress") })
1176
+ ] })
1177
+ ] }),
1178
+ /* @__PURE__ */ e("div", { className: n.modalActionButtons, style: { marginLeft: 0 }, children: /* @__PURE__ */ a(
1179
+ "button",
1180
+ {
1181
+ type: "button",
1182
+ className: n.btnViewCheckIn,
1183
+ onClick: () => Be(h, m.sessionId, m.sessionResultId, m.studentId, r, void 0, r ? "overview_openSafetyEs" : "overview_openSafety"),
1184
+ children: [
1185
+ /* @__PURE__ */ e(et, { width: 15, height: 15 }),
1186
+ /* @__PURE__ */ e("span", { children: b("view_check_in") })
1187
+ ]
1188
+ }
1189
+ ) })
1190
+ ] }, m.studentId || m.studentName)) }) })
1191
+ ]
1192
+ }
1193
+ );
1194
+ }, xa = ({ wellnessData: t, schoolType: l = "BOTH", curriculumSystem: s }) => {
1195
+ const o = he(), r = at(), { t: h } = J(), [b, c] = R("MS"), [v, u] = R(!1);
1196
+ oe(() => {
1197
+ const f = new URLSearchParams(r.search), k = f.get("actionBack");
1198
+ if (k === "openSafety" || k === "openSafetyEs" || k === "overview_openSafety" || k === "overview_openSafetyEs") {
1199
+ c(k === "openSafetyEs" || k === "overview_openSafetyEs" ? "ES" : "MS"), u(!0), f.delete("actionBack");
1200
+ const S = r.pathname + (f.toString() ? `?${f.toString()}` : "");
1201
+ o(S, { replace: !0 });
1202
+ }
1203
+ }, [r, o]);
1204
+ const N = t?.msWellness && t.msWellness.length > 0 ? [...t.msWellness].sort((f, k) => {
1205
+ const S = (f.title || "").toLowerCase(), I = (k.title || "").toLowerCase();
1206
+ return S.includes("stress") ? -1 : I.includes("stress") ? 1 : 0;
1207
+ }) : [], g = t?.esWellness && t.esWellness.length > 0 ? [...t.esWellness].sort((f, k) => {
1208
+ const S = (f.title || "").toLowerCase(), I = (k.title || "").toLowerCase();
1209
+ return S.includes("stress") ? -1 : I.includes("stress") ? 1 : 0;
1210
+ }) : [], w = l === "MS" ? "MS" : l === "ES" ? "ES" : N.length > 0 && g.length === 0 ? "MS" : g.length > 0 && N.length === 0 ? "ES" : b, m = l === "BOTH" && N.length > 0 && g.length > 0, C = w === "ES" ? g : N, d = w === "ES" ? t?.esUnhealthyStudents || [] : t?.msUnhealthyStudents || [], A = Qe(d).length > 0, y = (f) => {
1211
+ const k = (f.key || "").toLowerCase(), S = (f.title || "").toLowerCase(), I = k.includes("stress") || S.includes("stress");
1212
+ if (w === "ES")
1213
+ return I ? /* @__PURE__ */ e("img", { src: V("/images/home/stress.png"), alt: "", className: n.wellnessIconImg }) : k.includes("home") || S.includes("home") ? /* @__PURE__ */ e("div", { className: n.wellnessIconBadge, children: /* @__PURE__ */ e(Rt, { width: 18, height: 18, color: "#316CD9" }) }) : k.includes("online") || S.includes("online") ? /* @__PURE__ */ e("div", { className: n.wellnessIconBadge, children: /* @__PURE__ */ e(At, { width: 18, height: 18, color: "#316CD9" }) }) : k.includes("school") || S.includes("school") ? /* @__PURE__ */ e("div", { className: n.wellnessIconBadge, children: /* @__PURE__ */ e(Ot, { width: 18, height: 18, color: "#316CD9" }) }) : /* @__PURE__ */ e("img", { src: V("/images/home/safety.png"), alt: "", className: n.wellnessIconImg });
1214
+ const O = k.includes("safety") || S.includes("safety") || S.includes("safe") ? V("/images/home/safety.png") : I ? V("/images/home/stress.png") : null;
1215
+ return O ? /* @__PURE__ */ e("img", { src: O, alt: "", className: n.wellnessIconImg }) : null;
1216
+ };
1217
+ return /* @__PURE__ */ a("div", { className: n.wellnessCard, children: [
1218
+ /* @__PURE__ */ a("div", { className: n.wellnessHeader, children: [
1219
+ /* @__PURE__ */ a("div", { children: [
1220
+ /* @__PURE__ */ e("h2", { className: n.wellnessTitle, children: h("student_wellness") }),
1221
+ /* @__PURE__ */ e("p", { className: n.wellnessSubtitle, children: h("this_months_average_vs_last_month") })
1222
+ ] }),
1223
+ m && /* @__PURE__ */ a("div", { className: n.phaseTabContainer, children: [
1224
+ /* @__PURE__ */ e(
1225
+ "button",
1226
+ {
1227
+ type: "button",
1228
+ className: `${n.phaseTabBtn} ${w === "MS" ? n.phaseTabBtnActive : ""}`,
1229
+ onClick: () => c("MS"),
1230
+ children: h("middle_school")
1231
+ }
1232
+ ),
1233
+ /* @__PURE__ */ e(
1234
+ "button",
1235
+ {
1236
+ type: "button",
1237
+ className: `${n.phaseTabBtn} ${w === "ES" ? n.phaseTabBtnActive : ""}`,
1238
+ onClick: () => c("ES"),
1239
+ children: h("elementary_school")
1240
+ }
1241
+ )
1242
+ ] })
1243
+ ] }),
1244
+ /* @__PURE__ */ e("div", { className: `${n.wellnessGrid} ${w === "ES" ? n.wellnessGridEs : ""}`, children: C.map((f, k) => {
1245
+ const S = (f.key || "").toLowerCase().includes("stress") || (f.title || "").toLowerCase().includes("stress"), I = Ze(f.averageScore, S);
1246
+ return /* @__PURE__ */ a("div", { className: n.wellnessRow, children: [
1247
+ y(f),
1248
+ /* @__PURE__ */ e("span", { className: `${n.wellnessRowLabel} ${w === "ES" ? n.wellnessRowLabelEs : n.wellnessRowLabelMs}`, children: h(f.title) }),
1249
+ w === "ES" ? /* @__PURE__ */ a(ne, { children: [
1250
+ /* @__PURE__ */ a("span", { className: n.wellnessRowPct, children: [
1251
+ f.averageScore,
1252
+ "%"
1253
+ ] }),
1254
+ ze(f.averageScore, void 0, 36)
1255
+ ] }) : (() => {
1256
+ const E = f.changeVsLastMonth >= 0;
1257
+ return /* @__PURE__ */ a(ne, { children: [
1258
+ /* @__PURE__ */ a(
1259
+ "span",
1260
+ {
1261
+ className: n.wellnessPill,
1262
+ style: {
1263
+ backgroundColor: I.bg,
1264
+ color: I.color
1265
+ },
1266
+ children: [
1267
+ /* @__PURE__ */ e("span", { style: { fontWeight: 500 }, children: h(f.ratingLabel || "") }),
1268
+ /* @__PURE__ */ e("span", { className: n.wellnessPillDivider }),
1269
+ /* @__PURE__ */ a("span", { className: n.wellnessPillPct, children: [
1270
+ f.averageScore,
1271
+ "%"
1272
+ ] })
1273
+ ]
1274
+ }
1275
+ ),
1276
+ /* @__PURE__ */ e("span", { className: n.wellnessRowRight, children: /* @__PURE__ */ e(Ct, { direction: E ? "up" : "down", width: 20, height: 20 }) })
1277
+ ] });
1278
+ })()
1279
+ ] }, f.key || k);
1280
+ }) }),
1281
+ /* @__PURE__ */ a(
1282
+ "button",
1283
+ {
1284
+ type: "button",
1285
+ className: n.viewDashBtn,
1286
+ onClick: () => {
1287
+ o(w === "ES" ? "/admin/dashboard-wrapper?type=elementary" : "/admin/dashboard");
1288
+ },
1289
+ children: [
1290
+ /* @__PURE__ */ e(jt, { width: 17, height: 17, color: "#316CD9" }),
1291
+ /* @__PURE__ */ e("span", { children: h("view_data_dashboard") }),
1292
+ /* @__PURE__ */ e(Le, { width: 15, height: 15 })
1293
+ ]
1294
+ }
1295
+ ),
1296
+ A && /* @__PURE__ */ a(
1297
+ "button",
1298
+ {
1299
+ type: "button",
1300
+ className: n.seeUnhealthyBtn,
1301
+ onClick: () => u(!0),
1302
+ children: [
1303
+ /* @__PURE__ */ e(Ft, { width: 17, height: 17, color: "#C44140" }),
1304
+ /* @__PURE__ */ e("span", { children: h("see_all_unsafe_and_stressed_students") }),
1305
+ /* @__PURE__ */ e(Le, { width: 15, height: 15, color: "#C44140" })
1306
+ ]
1307
+ }
1308
+ ),
1309
+ v && /* @__PURE__ */ e(
1310
+ ka,
1311
+ {
1312
+ open: v,
1313
+ onClose: () => u(!1),
1314
+ students: d,
1315
+ isEs: w === "ES",
1316
+ curriculumSystem: s
1317
+ }
1318
+ )
1319
+ ] });
1320
+ }, La = ({ usageData: t }) => {
1321
+ const { t: l } = J(), s = t?.schoolName || "", o = t?.schoolLogo ? ye(t.schoolLogo) : null, r = t?.totalCheckIns ?? 0, h = t?.totalStudents ?? 0, b = (t?.totalCheckIns ?? 0) - (t?.totalCheckInsLastMonth ?? 0), c = t?.totalOneToOneMinutes ?? 0, v = Ue(c), u = Math.round((t?.totalOneToOneMinutes ?? 0) - (t?.totalOneToOneMinutesLastMonth ?? 0)), N = Ue(Math.abs(u)), g = t?.totalOneToOneCount ?? 0, w = t?.totalOneToOneRequired ?? 0, m = w > 0 ? Math.min(1, g / w) : 0, C = Math.round(m * 100), d = t?.totalConferenceCount ?? 0, p = (t?.totalConferenceCount ?? 0) - (t?.totalConferenceCountLastMonth ?? 0), A = t?.totalClassReflectionsCount ?? 0, y = (t?.totalClassReflectionsCount ?? 0) - (t?.totalClassReflectionsCountLastMonth ?? 0), f = Math.min(1, Math.max(0, r / (h || 1))), k = (I) => {
1322
+ if (I === 0) {
1323
+ const G = "#8E8E93";
1324
+ return /* @__PURE__ */ a("span", { style: { color: G, display: "inline-flex", alignItems: "center", gap: "4px" }, children: [
1325
+ /* @__PURE__ */ e(ue, { color: G, width: 8, height: 9 }),
1326
+ "0 ",
1327
+ l("vs_last_month")
1328
+ ] });
1329
+ }
1330
+ const E = I > 0, O = E ? "#0F9655" : "#C44140", D = E ? ue : He;
1331
+ return /* @__PURE__ */ a("span", { className: E ? n.deltaUp : n.deltaDown, style: { color: O, display: "inline-flex", alignItems: "center", gap: "4px" }, children: [
1332
+ /* @__PURE__ */ e(D, { color: O, width: 8, height: 9 }),
1333
+ Math.abs(I),
1334
+ " ",
1335
+ l("vs_last_month")
1336
+ ] });
1337
+ }, S = (I, E) => {
1338
+ if (I === 0) {
1339
+ const X = "#8E8E93";
1340
+ return /* @__PURE__ */ a("span", { style: { color: X, display: "inline-flex", alignItems: "center", gap: "4px" }, children: [
1341
+ /* @__PURE__ */ e(ue, { color: X, width: 8, height: 9 }),
1342
+ E,
1343
+ " ",
1344
+ l("vs_last_month")
1345
+ ] });
1346
+ }
1347
+ const O = I > 0, D = O ? "#0F9655" : "#C44140", G = O ? ue : He;
1348
+ return /* @__PURE__ */ a("span", { className: O ? n.deltaUp : n.deltaDown, style: { color: D, display: "inline-flex", alignItems: "center", gap: "4px" }, children: [
1349
+ /* @__PURE__ */ e(G, { color: D, width: 8, height: 9 }),
1350
+ E,
1351
+ " ",
1352
+ l("vs_last_month")
1353
+ ] });
1354
+ };
1355
+ return /* @__PURE__ */ a("div", { className: n.usagePanel, children: [
1356
+ /* @__PURE__ */ a("div", { className: n.usageHeader, children: [
1357
+ /* @__PURE__ */ e("div", { className: n.usageIconCircle, children: o ? /* @__PURE__ */ e(
1358
+ "img",
1359
+ {
1360
+ src: o,
1361
+ alt: s,
1362
+ className: n.schoolLogoImg,
1363
+ onError: (I) => {
1364
+ I.target.style.display = "none";
1365
+ }
1366
+ }
1367
+ ) : /* @__PURE__ */ e(Tt, { width: 28, height: 28, color: "#ffffff" }) }),
1368
+ s && /* @__PURE__ */ e("span", { className: n.schoolBadgeName, children: s }),
1369
+ /* @__PURE__ */ e("h2", { className: n.usageTitle, children: l("school_monthly_usage") })
1370
+ ] }),
1371
+ /* @__PURE__ */ e("div", { className: n.usageDivider }),
1372
+ /* @__PURE__ */ a("div", { className: n.usageTilesList, children: [
1373
+ /* @__PURE__ */ a("div", { className: n.usageTile, children: [
1374
+ /* @__PURE__ */ a("div", { className: n.usageTileHeader, children: [
1375
+ /* @__PURE__ */ e("span", { className: n.usageTileLabel, children: l("total_check_ins") }),
1376
+ /* @__PURE__ */ e(kt, { width: 18, height: 18, color: "#D3D3D3" })
1377
+ ] }),
1378
+ /* @__PURE__ */ e("div", { className: n.usageProgressBarTrack, children: /* @__PURE__ */ e(
1379
+ "div",
1380
+ {
1381
+ className: n.usageProgressBarFill,
1382
+ style: { width: `${Math.round(f * 100)}%` }
1383
+ }
1384
+ ) }),
1385
+ /* @__PURE__ */ e("div", { className: n.usageTileValue, children: r }),
1386
+ /* @__PURE__ */ a("div", { className: n.usageTileSubText, children: [
1387
+ /* @__PURE__ */ a("span", { children: [
1388
+ "/ ",
1389
+ h,
1390
+ " ",
1391
+ l("students"),
1392
+ " "
1393
+ ] }),
1394
+ k(b)
1395
+ ] })
1396
+ ] }),
1397
+ /* @__PURE__ */ a("div", { className: n.usageTile, children: [
1398
+ /* @__PURE__ */ a("div", { className: n.usageTileHeader, children: [
1399
+ /* @__PURE__ */ e("span", { className: n.usageTileLabel, children: l("total_conversation_time") }),
1400
+ /* @__PURE__ */ e(xt, { width: 18, height: 18, color: "#D3D3D3" })
1401
+ ] }),
1402
+ /* @__PURE__ */ e("div", { className: n.usageTileValue, children: v }),
1403
+ /* @__PURE__ */ e("div", { className: n.usageTileSubText, children: S(u, N) })
1404
+ ] }),
1405
+ /* @__PURE__ */ a("div", { className: n.usageTile, children: [
1406
+ /* @__PURE__ */ a("div", { className: n.usageTileHeader, children: [
1407
+ /* @__PURE__ */ e("span", { className: n.usageTileLabel, children: l("total_one_to_one_conversations") }),
1408
+ /* @__PURE__ */ e(Lt, { width: 18, height: 18, color: "#D3D3D3" })
1409
+ ] }),
1410
+ /* @__PURE__ */ e("div", { className: n.usageProgressBarTrack, children: /* @__PURE__ */ e(
1411
+ "div",
1412
+ {
1413
+ className: n.usageProgressBarFillGreen,
1414
+ style: { width: `${C}%` }
1415
+ }
1416
+ ) }),
1417
+ /* @__PURE__ */ e("div", { className: n.usageTileValue, children: g }),
1418
+ /* @__PURE__ */ a("div", { className: n.usageTileSubText, children: [
1419
+ /* @__PURE__ */ a("span", { children: [
1420
+ "/ ",
1421
+ w,
1422
+ " ",
1423
+ l("required"),
1424
+ " "
1425
+ ] }),
1426
+ /* @__PURE__ */ a("span", { className: n.deltaUp, style: { color: "#0F9655", display: "inline-flex", alignItems: "center", gap: "4px" }, children: [
1427
+ /* @__PURE__ */ e(ue, { color: "#0F9655", width: 8, height: 9 }),
1428
+ " ",
1429
+ C,
1430
+ "% ",
1431
+ l("completion")
1432
+ ] })
1433
+ ] })
1434
+ ] }),
1435
+ /* @__PURE__ */ a("div", { className: n.usageTile, children: [
1436
+ /* @__PURE__ */ a("div", { className: n.usageTileHeader, children: [
1437
+ /* @__PURE__ */ e("span", { className: n.usageTileLabel, children: l("total_conferences") }),
1438
+ /* @__PURE__ */ e(Xe, { width: 18, height: 18, color: "#D3D3D3" })
1439
+ ] }),
1440
+ /* @__PURE__ */ e("div", { className: n.usageTileValue, children: d }),
1441
+ /* @__PURE__ */ e("div", { className: n.usageTileSubText, children: k(p) })
1442
+ ] }),
1443
+ /* @__PURE__ */ a("div", { className: n.usageTile, children: [
1444
+ /* @__PURE__ */ a("div", { className: n.usageTileHeader, children: [
1445
+ /* @__PURE__ */ e("span", { className: n.usageTileLabel, children: l("total_class_reflections") }),
1446
+ /* @__PURE__ */ e(tt, { width: 18, height: 18, color: "#D3D3D3" })
1447
+ ] }),
1448
+ /* @__PURE__ */ e("div", { className: n.usageTileValue, children: A }),
1449
+ /* @__PURE__ */ e("div", { className: n.usageTileSubText, children: k(y) })
1450
+ ] })
1451
+ ] })
1452
+ ] });
1453
+ }, Sa = ({
1454
+ gradeOverview: t,
1455
+ caseMode: l = "without",
1456
+ curriculumSystem: s,
1457
+ onSetCurriculumSystem: o
1458
+ }) => {
1459
+ const { t: r } = J(), { getLabel: h, system: b } = de(), c = s ?? (b === "UK" ? "UK" : "US"), [v, u] = R(!1), N = l === "with", g = c === "UK", w = /* @__PURE__ */ new Map();
1460
+ (t ?? []).forEach((d) => {
1461
+ const p = (d.grade || "").trim();
1462
+ if (!p) return;
1463
+ const A = h(p, { system: g ? "UK" : "US" }), y = p.toLowerCase();
1464
+ if (!w.has(y))
1465
+ w.set(y, {
1466
+ label: A,
1467
+ redFlagCount: d.redFlagCount || 0,
1468
+ yellowFlagCount: d.yellowFlagCount || 0,
1469
+ cases: d.cases || 0,
1470
+ totalCheckIn: d.totalCheckIn || 0,
1471
+ totalOneToOne: d.totalOneToOne || 0
1472
+ });
1473
+ else {
1474
+ const f = w.get(y);
1475
+ f.redFlagCount += d.redFlagCount || 0, f.yellowFlagCount += d.yellowFlagCount || 0, f.cases += d.cases || 0, f.totalCheckIn += d.totalCheckIn || 0, f.totalOneToOne += d.totalOneToOne || 0;
1476
+ }
1477
+ });
1478
+ const m = Array.from(w.values()), C = m.reduce(
1479
+ (d, p) => ({
1480
+ checkIns: d.checkIns + p.totalCheckIn,
1481
+ redFlags: d.redFlags + p.redFlagCount,
1482
+ yellowFlags: d.yellowFlags + p.yellowFlagCount,
1483
+ cases: d.cases + p.cases,
1484
+ oneToOneLogs: d.oneToOneLogs + p.totalOneToOne
1485
+ }),
1486
+ { checkIns: 0, redFlags: 0, yellowFlags: 0, cases: 0, oneToOneLogs: 0 }
1487
+ );
1488
+ return /* @__PURE__ */ a("div", { className: n.campusCard, children: [
1489
+ /* @__PURE__ */ a("div", { className: n.campusHeader, children: [
1490
+ /* @__PURE__ */ a("div", { children: [
1491
+ /* @__PURE__ */ e("h2", { className: n.campusTitle, children: r("school_overview") }),
1492
+ /* @__PURE__ */ e("p", { className: n.campusSubText, children: r("flag_metrics_and_engagement_breakdown") })
1493
+ ] }),
1494
+ /* @__PURE__ */ a("div", { className: n.sysToggleGroup, children: [
1495
+ /* @__PURE__ */ a("span", { className: n.sysToggleLabel, children: [
1496
+ r("curriculum_system"),
1497
+ ":"
1498
+ ] }),
1499
+ /* @__PURE__ */ a("div", { className: n.phaseTabs, children: [
1500
+ /* @__PURE__ */ e(
1501
+ "button",
1502
+ {
1503
+ type: "button",
1504
+ className: `${n.phaseTabBtn} ${c === "US" ? n.phaseTabBtnActive : ""}`,
1505
+ onClick: () => o && o("US"),
1506
+ children: "US (Grades)"
1507
+ }
1508
+ ),
1509
+ /* @__PURE__ */ e(
1510
+ "button",
1511
+ {
1512
+ type: "button",
1513
+ className: `${n.phaseTabBtn} ${c === "UK" ? n.phaseTabBtnActive : ""}`,
1514
+ onClick: () => o && o("UK"),
1515
+ children: "UK (Years)"
1516
+ }
1517
+ )
1518
+ ] }),
1519
+ /* @__PURE__ */ a("div", { className: n.helpPopoverWrapper, children: [
1520
+ /* @__PURE__ */ e(
1521
+ "button",
1522
+ {
1523
+ type: "button",
1524
+ className: n.infoHelpBtn,
1525
+ onClick: () => u((d) => !d),
1526
+ title: r("curriculum_system_reference"),
1527
+ children: "?"
1528
+ }
1529
+ ),
1530
+ v && /* @__PURE__ */ a(ne, { children: [
1531
+ /* @__PURE__ */ e("div", { className: n.popoverBackdrop, onClick: () => u(!1) }),
1532
+ /* @__PURE__ */ a("div", { className: n.referencePopover, children: [
1533
+ /* @__PURE__ */ e("h3", { className: n.refTitle, children: r("curriculum_system_reference") }),
1534
+ /* @__PURE__ */ e("p", { className: n.refSubText, children: r("how_us_grades_map_to_uk_year_groups") }),
1535
+ /* @__PURE__ */ e("div", { className: n.refTableWrapper, children: /* @__PURE__ */ a("table", { className: n.refTable, children: [
1536
+ /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ a("tr", { children: [
1537
+ /* @__PURE__ */ e("th", { children: r("us_stage") }),
1538
+ /* @__PURE__ */ e("th", { children: r("us_grade") }),
1539
+ /* @__PURE__ */ e("th", { children: r("uk_stage") }),
1540
+ /* @__PURE__ */ e("th", { children: r("uk_year_group") }),
1541
+ /* @__PURE__ */ e("th", { children: r("uk_key_stage") })
1542
+ ] }) }),
1543
+ /* @__PURE__ */ e("tbody", { children: st.map((d, p) => /* @__PURE__ */ a("tr", { children: [
1544
+ /* @__PURE__ */ e("td", { className: n.usStageTd, children: d.usStage }),
1545
+ /* @__PURE__ */ e("td", { children: d.usGrade }),
1546
+ /* @__PURE__ */ e("td", { children: d.ukStage }),
1547
+ /* @__PURE__ */ e("td", { children: d.ukYearGroup }),
1548
+ /* @__PURE__ */ e("td", { children: d.ukKeyStage })
1549
+ ] }, p)) })
1550
+ ] }) })
1551
+ ] })
1552
+ ] })
1553
+ ] })
1554
+ ] })
1555
+ ] }),
1556
+ /* @__PURE__ */ e("div", { className: n.tableWrapper, children: /* @__PURE__ */ a("table", { className: n.overviewTable, children: [
1557
+ /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ a("tr", { children: [
1558
+ /* @__PURE__ */ e("th", { children: r(g ? "year_group_grade" : "grade_year_group") }),
1559
+ /* @__PURE__ */ e("th", { children: r("red_flags") }),
1560
+ /* @__PURE__ */ e("th", { children: r("yellow_flags") }),
1561
+ N && /* @__PURE__ */ e("th", { children: r("cases") }),
1562
+ /* @__PURE__ */ e("th", { children: r("check_ins") }),
1563
+ /* @__PURE__ */ e("th", { children: r("one_to_one_logs") })
1564
+ ] }) }),
1565
+ /* @__PURE__ */ a("tbody", { children: [
1566
+ m.map((d, p) => /* @__PURE__ */ a("tr", { children: [
1567
+ /* @__PURE__ */ e("td", { children: d.label }),
1568
+ /* @__PURE__ */ e("td", { children: d.redFlagCount ? /* @__PURE__ */ e("span", { className: n.redFlagText, children: d.redFlagCount }) : /* @__PURE__ */ e("span", { className: n.dashMuted, children: "—" }) }),
1569
+ /* @__PURE__ */ e("td", { children: d.yellowFlagCount ? /* @__PURE__ */ e("span", { className: n.yellowFlagText, children: d.yellowFlagCount }) : /* @__PURE__ */ e("span", { className: n.dashMuted, children: "—" }) }),
1570
+ N && /* @__PURE__ */ e("td", { children: d.cases ? d.cases : /* @__PURE__ */ e("span", { className: n.dashMuted, children: "—" }) }),
1571
+ /* @__PURE__ */ e("td", { children: d.totalCheckIn }),
1572
+ /* @__PURE__ */ e("td", { children: d.totalOneToOne })
1573
+ ] }, p)),
1574
+ /* @__PURE__ */ a("tr", { className: n.totalsRow, children: [
1575
+ /* @__PURE__ */ e("td", { children: r("totals") }),
1576
+ /* @__PURE__ */ e("td", { children: C.redFlags ? /* @__PURE__ */ e("span", { className: n.redFlagText, children: C.redFlags }) : /* @__PURE__ */ e("span", { className: n.dashMuted, children: "—" }) }),
1577
+ /* @__PURE__ */ e("td", { children: C.yellowFlags ? /* @__PURE__ */ e("span", { className: n.yellowFlagText, children: C.yellowFlags }) : /* @__PURE__ */ e("span", { className: n.dashMuted, children: "—" }) }),
1578
+ N && /* @__PURE__ */ e("td", { children: C.cases ? C.cases : /* @__PURE__ */ e("span", { className: n.dashMuted, children: "—" }) }),
1579
+ /* @__PURE__ */ e("td", { children: C.checkIns.toLocaleString() }),
1580
+ /* @__PURE__ */ e("td", { children: C.oneToOneLogs })
1581
+ ] })
1582
+ ] })
1583
+ ] }) })
1584
+ ] });
1585
+ };
1586
+ function Pe(t) {
1587
+ return t ? typeof t == "string" ? t : typeof t == "object" && t.text ? t.text : String(t) : "";
1588
+ }
1589
+ const Ia = ({ adminTips: t, tips: l }) => {
1590
+ const { t: s } = J(), [o, r] = R(!1), h = t?.msAdminTips || [], b = t?.esAdminTips || [], c = h.length > 0 && b.length > 0, v = [...h, ...b], u = v.length > 0 ? v : l || [];
1591
+ return /* @__PURE__ */ a("div", { className: n.adminTipsWrapper, children: [
1592
+ /* @__PURE__ */ a(
1593
+ "button",
1594
+ {
1595
+ type: "button",
1596
+ className: n.adminTipsBtn,
1597
+ onClick: () => r((N) => !N),
1598
+ children: [
1599
+ /* @__PURE__ */ e(De, { width: 17, height: 17, color: "#316CD9" }),
1600
+ /* @__PURE__ */ e("span", { children: s("admin_tips") })
1601
+ ]
1602
+ }
1603
+ ),
1604
+ o && /* @__PURE__ */ a(ne, { children: [
1605
+ /* @__PURE__ */ e(
1606
+ "div",
1607
+ {
1608
+ className: n.popoverBackdrop,
1609
+ onClick: () => r(!1)
1610
+ }
1611
+ ),
1612
+ /* @__PURE__ */ a("div", { className: n.adminTipsPopover, children: [
1613
+ /* @__PURE__ */ e("div", { className: n.popoverArrow }),
1614
+ /* @__PURE__ */ a("div", { className: n.popoverHeaderRow, children: [
1615
+ /* @__PURE__ */ e("div", { className: n.popoverIconCircle, children: /* @__PURE__ */ e(De, { width: 18, height: 18, color: "#316CD9" }) }),
1616
+ /* @__PURE__ */ e("h3", { className: n.popoverHeaderTitle, children: s("admin_tips") })
1617
+ ] }),
1618
+ c ? /* @__PURE__ */ e("div", { children: h.map((N, g) => /* @__PURE__ */ a("div", { className: n.tipItem, children: [
1619
+ /* @__PURE__ */ e("div", { className: n.tipNumber, children: g + 1 }),
1620
+ /* @__PURE__ */ e(
1621
+ "div",
1622
+ {
1623
+ className: n.tipText,
1624
+ dangerouslySetInnerHTML: { __html: Pe(N) }
1625
+ }
1626
+ )
1627
+ ] }, `ms-${g}`)) }) : u.map((N, g) => /* @__PURE__ */ a("div", { className: n.tipItem, children: [
1628
+ /* @__PURE__ */ e("div", { className: n.tipNumber, children: g + 1 }),
1629
+ /* @__PURE__ */ e(
1630
+ "div",
1631
+ {
1632
+ className: n.tipText,
1633
+ dangerouslySetInnerHTML: { __html: Pe(N) }
1634
+ }
1635
+ )
1636
+ ] }, g))
1637
+ ] })
1638
+ ] })
1639
+ ] });
1640
+ }, i = {
1641
+ "hn-root": "_hn-root_18mp7_1",
1642
+ "hn-header": "_hn-header_18mp7_13",
1643
+ "hn-header__left": "_hn-header__left_18mp7_23",
1644
+ "hn-header__avatar": "_hn-header__avatar_18mp7_28",
1645
+ "hn-header__avatar--icon": "_hn-header__avatar--icon_18mp7_37",
1646
+ "hn-header__info": "_hn-header__info_18mp7_43",
1647
+ "hn-header__name-row": "_hn-header__name-row_18mp7_46",
1648
+ "hn-header__student-name": "_hn-header__student-name_18mp7_51",
1649
+ "hn-header__grade-badge": "_hn-header__grade-badge_18mp7_56",
1650
+ "hn-header__duration-row": "_hn-header__duration-row_18mp7_65",
1651
+ "hn-header__close-btn": "_hn-header__close-btn_18mp7_76",
1652
+ "hn-body": "_hn-body_18mp7_88",
1653
+ "hn-left": "_hn-left_18mp7_97",
1654
+ "hn-left__section-header": "_hn-left__section-header_18mp7_115",
1655
+ "hn-left__section-icon": "_hn-left__section-icon_18mp7_121",
1656
+ "hn-left__section-title": "_hn-left__section-title_18mp7_132",
1657
+ "hn-left__card": "_hn-left__card_18mp7_137",
1658
+ "hn-left__card-last": "_hn-left__card-last_18mp7_145",
1659
+ "hn-left__last-checkin-row": "_hn-left__last-checkin-row_18mp7_152",
1660
+ "hn-left__dot-row": "_hn-left__dot-row_18mp7_155",
1661
+ "hn-left__dot": "_hn-left__dot_18mp7_155",
1662
+ "hn-left__checkin-value": "_hn-left__checkin-value_18mp7_172",
1663
+ "hn-left__indicators-grid": "_hn-left__indicators-grid_18mp7_177",
1664
+ "hn-left__indicator-item": "_hn-left__indicator-item_18mp7_182",
1665
+ "hn-left__indicator-name": "_hn-left__indicator-name_18mp7_187",
1666
+ "hn-left__indicator-badge": "_hn-left__indicator-badge_18mp7_193",
1667
+ "hn-left__prev-notes-header": "_hn-left__prev-notes-header_18mp7_203",
1668
+ "hn-left__prev-notes-block": "_hn-left__prev-notes-block_18mp7_214",
1669
+ "hn-left__prev-date": "_hn-left__prev-date_18mp7_218",
1670
+ "hn-left__prev-user": "_hn-left__prev-user_18mp7_224",
1671
+ "hn-left__prev-text": "_hn-left__prev-text_18mp7_230",
1672
+ "hn-left__prev-notes-divider": "_hn-left__prev-notes-divider_18mp7_238",
1673
+ "hn-left__prev-strategy": "_hn-left__prev-strategy_18mp7_243",
1674
+ "hn-left__prev-notes-extra": "_hn-left__prev-notes-extra_18mp7_252",
1675
+ "hn-left__prev-outcome": "_hn-left__prev-outcome_18mp7_255",
1676
+ "hn-left__prev-scaffolding-list": "_hn-left__prev-scaffolding-list_18mp7_264",
1677
+ "hn-left__prev-scaffolding-item": "_hn-left__prev-scaffolding-item_18mp7_269",
1678
+ "hn-middle": "_hn-middle_18mp7_276",
1679
+ "hn-middle__focus-card": "_hn-middle__focus-card_18mp7_294",
1680
+ "hn-middle__notes-card": "_hn-middle__notes-card_18mp7_294",
1681
+ "hn-middle__strategy-card": "_hn-middle__strategy-card_18mp7_294",
1682
+ "hn-middle__outcomes-card": "_hn-middle__outcomes-card_18mp7_294",
1683
+ "hn-middle__toggle-card": "_hn-middle__toggle-card_18mp7_294",
1684
+ "hn-middle__notes-label": "_hn-middle__notes-label_18mp7_307",
1685
+ "hn-middle__strategy-label": "_hn-middle__strategy-label_18mp7_307",
1686
+ "hn-middle__outcomes-label": "_hn-middle__outcomes-label_18mp7_307",
1687
+ "hn-middle__focus-tags": "_hn-middle__focus-tags_18mp7_313",
1688
+ "hn-middle__outcomes-tags": "_hn-middle__outcomes-tags_18mp7_313",
1689
+ "hn-middle__focus-tag": "_hn-middle__focus-tag_18mp7_313",
1690
+ "hn-middle__outcome-tag": "_hn-middle__outcome-tag_18mp7_319",
1691
+ "hn-middle__focus-tag--active": "_hn-middle__focus-tag--active_18mp7_330",
1692
+ "hn-middle__outcome-tag--active": "_hn-middle__outcome-tag--active_18mp7_330",
1693
+ "hn-middle__strategy-chips": "_hn-middle__strategy-chips_18mp7_339",
1694
+ "hn-middle__strategy-chip": "_hn-middle__strategy-chip_18mp7_339",
1695
+ "hn-middle__readonly-text": "_hn-middle__readonly-text_18mp7_349",
1696
+ "hn-middle__toggle-btn": "_hn-middle__toggle-btn_18mp7_369",
1697
+ "hn-middle__toggle-btn--active": "_hn-middle__toggle-btn--active_18mp7_379",
1698
+ "hn-middle__toggle-thumb": "_hn-middle__toggle-thumb_18mp7_382",
1699
+ "hn-middle__toggle-info": "_hn-middle__toggle-info_18mp7_397",
1700
+ "hn-middle__toggle-label": "_hn-middle__toggle-label_18mp7_401",
1701
+ "hn-middle__toggle-sub": "_hn-middle__toggle-sub_18mp7_406",
1702
+ "hn-right": "_hn-right_18mp7_411",
1703
+ "hn-right__header": "_hn-right__header_18mp7_432",
1704
+ "hn-right__header-title-row": "_hn-right__header-title-row_18mp7_437",
1705
+ "hn-right__header-title": "_hn-right__header-title_18mp7_437",
1706
+ "hn-right__header-sub": "_hn-right__header-sub_18mp7_448",
1707
+ "hn-right__scroll-list": "_hn-right__scroll-list_18mp7_452",
1708
+ "hn-right__cat-wrapper": "_hn-right__cat-wrapper_18mp7_457",
1709
+ "hn-right__cat-btn": "_hn-right__cat-btn_18mp7_460",
1710
+ "hn-right__cat-inner-row": "_hn-right__cat-inner-row_18mp7_472",
1711
+ "hn-right__cat-icon-circle": "_hn-right__cat-icon-circle_18mp7_477",
1712
+ "hn-right__cat-title-col": "_hn-right__cat-title-col_18mp7_488",
1713
+ "hn-right__cat-label": "_hn-right__cat-label_18mp7_491",
1714
+ "hn-right__cat-right": "_hn-right__cat-right_18mp7_496",
1715
+ "hn-right__cat-count": "_hn-right__cat-count_18mp7_501",
1716
+ "hn-right__questions-list": "_hn-right__questions-list_18mp7_506",
1717
+ "hn-right__question-btn": "_hn-right__question-btn_18mp7_513",
1718
+ "hn-right__question-btn--clicked": "_hn-right__question-btn--clicked_18mp7_526",
1719
+ "hn-right__q-dot": "_hn-right__q-dot_18mp7_530",
1720
+ "hn-right__question-text": "_hn-right__question-text_18mp7_544"
1721
+ }, Ba = ({ size: t = 20 }) => /* @__PURE__ */ e("img", { src: V("/teacher-student/icons/close.svg"), width: t, height: t, alt: "close" }), $e = ({ size: t = 20 }) => /* @__PURE__ */ e("img", { src: V("/teacher-student/icons/sparkles.svg"), width: t, height: t, alt: "sparkles" }), Ma = ({ size: t = 20 }) => /* @__PURE__ */ e("img", { src: V("/teacher-student/icons/sparkles_blue.svg"), width: t, height: t, alt: "sparkles" }), ja = ({ size: t = 16 }) => /* @__PURE__ */ e("img", { src: V("/teacher-student/icons/heart.svg"), width: t, height: t, alt: "heart" }), Ra = ({ size: t = 16 }) => /* @__PURE__ */ e("img", { src: V("/teacher-student/icons/trending-up.svg"), width: t, height: t, alt: "trending-up" }), Aa = ({ size: t = 16 }) => /* @__PURE__ */ e("img", { src: V("/teacher-student/icons/trophy.svg"), width: t, height: t, alt: "trophy" }), Oa = ({ size: t = 16, style: l }) => /* @__PURE__ */ e("img", { src: V("/teacher-student/icons/chevron-down.svg"), width: t, height: t, style: l, alt: "chevron-down" }), Ea = ({ size: t = 14 }) => /* @__PURE__ */ e("img", { src: V("/teacher-student/icons/eye.svg"), width: t, height: t, alt: "eye" }), Fa = ({ size: t = 14 }) => /* @__PURE__ */ e("img", { src: V("/teacher-student/icons/eye-off.svg"), width: t, height: t, alt: "eye-off" }), Ua = "0001-01-01T00:00:00", ce = (t) => {
1722
+ if (!t || t === Ua || t.startsWith("0001-01-01")) return !0;
1723
+ const l = q.utc(t);
1724
+ return !l.isValid() || l.year() <= 1900;
1725
+ }, Ve = (t) => !t || ce(t) ? "" : q.utc(t).local().fromNow(), Da = ({
1726
+ isOpen: t,
1727
+ onClose: l,
1728
+ sessionSelected: s,
1729
+ typeHappen: o,
1730
+ conversationStarters: r = [],
1731
+ isEs: h,
1732
+ curriculumSystem: b
1733
+ }) => {
1734
+ const { t: c } = J(), { getLabel: v, system: u } = de(), N = b ?? (u === "UK" ? "UK" : "US"), [g, w] = R(""), [m, C] = R([]);
1735
+ oe(() => {
1736
+ const _ = s?.scaffoldingIds || s?.previousScaffoldingIds || s?.resultTeacher?.scaffoldingIds || s?.teacherResult?.scaffoldingIds || "";
1737
+ if (_) {
1738
+ const x = String(_).split(",").map((L) => L.trim()).filter(Boolean);
1739
+ C(x);
1740
+ } else
1741
+ C([]);
1742
+ }, [s]);
1743
+ const d = (_) => {
1744
+ C(
1745
+ (x) => x.includes(_) ? x.filter((L) => L !== _) : [...x, _]
1746
+ );
1747
+ }, p = !!(h || s?.isEs || s?.schoolType?.toUpperCase() === "ES" || s?.schoolLevel?.toLowerCase() === "es" || s?.isKidConversation), A = o === 2 || s?.oneToOneType === 2 || s?.typeHappen === 2, [y, f] = R(r || []);
1748
+ oe(() => {
1749
+ r && r.length > 0 ? f(r) : ke(p).then((_) => {
1750
+ _?.data && Array.isArray(_.data) && _.data.length > 0 && f(xe(_.data));
1751
+ }).catch(() => {
1752
+ });
1753
+ }, [r, p]);
1754
+ const k = _e(() => {
1755
+ const _ = s?.previousScaffoldingIds;
1756
+ if (!_ || !y?.length) return [];
1757
+ const x = new Set(
1758
+ String(_).split(",").map((P) => P.trim()).filter(Boolean)
1759
+ ), L = (P) => {
1760
+ const W = [];
1761
+ for (const Z of P)
1762
+ x.has(String(Z.id)) && W.push(Z.question || Z.text || ""), Z.questions?.length && W.push(...L(Z.questions)), Z.children?.length && W.push(...L(Z.children));
1763
+ return W.filter(Boolean);
1764
+ }, Y = [];
1765
+ for (const P of y)
1766
+ P.questions?.length && Y.push(...L(P.questions));
1767
+ return Y;
1768
+ }, [y, s?.previousScaffoldingIds]), S = m.length > 0, I = !A || S, E = s?.categoryOneToOne, O = s?.outcomes, D = s?.resultStudent, G = _e(() => E ? typeof E == "string" ? E.split(",").map((_) => _.trim()) : [] : [], [E]), X = _e(() => O ? typeof O == "string" ? O.split(",").map((_) => _.trim()) : [] : [], [O]), K = _e(() => ft(s), [s]), ee = _e(() => {
1769
+ const _ = D?.questions || s?.studentResult?.questions || [], x = vt(_, p);
1770
+ return p ? x.filter((L) => {
1771
+ const Y = String(L.type || "").toLowerCase(), P = L.type === "Rating" || L.type === 10 || L.type === "StarRating" || L.type === 6 || L.type === "Slider" || L.type === 4 || L.type === "ProgressBar" || L.type === 5 || Y.includes("rating") || Y.includes("slider") || Y.includes("progressbar"), W = typeof L.score == "number" && L.score > 0;
1772
+ return P || W;
1773
+ }) : x;
1774
+ }, [D, s, p]);
1775
+ if (!s) return null;
1776
+ const U = s?.studentProfile?.name || s?.studentName || "Student", T = s?.studentProfile?.avatar || s?.studentProfileImage || "", H = s?.studentProfile?.gradeLevel || s?.gradeLevel || s?.student?.gradeLevel || "", Q = !!s?.isPrivateOneToOne, le = s?.oneToOneDate, re = le && !ce(le) ? q.utc(le).local().format("DD MMMM YYYY - hh:mm A") : s?.startTime && !ce(s.startTime) ? q.utc(s.startTime).local().format("DD MMMM YYYY - hh:mm A") : "N/A", se = s?.startTime || s?.startDate || s?.studentResult?.createdAt || s?.resultStudent?.createdAt || s?.createAt || s?.createdAt, be = se && !ce(se) ? q.utc(se).local().format("DD MMMM YYYY - hh:mm A") : "N/A";
1777
+ return /* @__PURE__ */ e(
1778
+ Se,
1779
+ {
1780
+ open: t,
1781
+ onClose: l,
1782
+ maxWidth: I ? "xl" : "lg",
1783
+ fullWidth: !0,
1784
+ style: { zIndex: 1400 },
1785
+ PaperProps: {
1786
+ style: {
1787
+ borderRadius: 24,
1788
+ maxHeight: "92vh",
1789
+ backgroundColor: "#ffffff",
1790
+ boxShadow: "0 25px 50px -12px rgba(0, 0, 0, 0.25)",
1791
+ overflow: "hidden"
1792
+ }
1793
+ },
1794
+ children: /* @__PURE__ */ a("div", { className: i["hn-root"], children: [
1795
+ /* @__PURE__ */ a("div", { className: i["hn-header"], children: [
1796
+ /* @__PURE__ */ a("div", { className: i["hn-header__left"], children: [
1797
+ /* @__PURE__ */ e(Ie, { className: i["hn-header__avatar"], children: T ? /* @__PURE__ */ e(
1798
+ "img",
1799
+ {
1800
+ className: i["hn-header__avatar--icon"],
1801
+ src: ye(T),
1802
+ alt: "avatar"
1803
+ }
1804
+ ) : U.charAt(0) }),
1805
+ /* @__PURE__ */ a("div", { className: i["hn-header__info"], children: [
1806
+ /* @__PURE__ */ a("div", { className: i["hn-header__name-row"], children: [
1807
+ /* @__PURE__ */ e(ct, { title: /* @__PURE__ */ e("span", { style: { fontSize: "16px" }, children: U }), arrow: !0, placement: "bottom", children: /* @__PURE__ */ e(j, { variant: "h3", className: i["hn-header__student-name"], children: U }) }),
1808
+ H && /* @__PURE__ */ e("span", { className: i["hn-header__grade-badge"], children: v(H, { system: N === "UK" ? "UK" : "US" }) })
1809
+ ] }),
1810
+ /* @__PURE__ */ e("div", { className: i["hn-header__duration-row"], children: /* @__PURE__ */ a(j, { children: [
1811
+ c("one_to_one_conversation_log"),
1812
+ " • ",
1813
+ re,
1814
+ s?.timeOneToOne ? ` (${s.timeOneToOne} mins)` : ""
1815
+ ] }) })
1816
+ ] })
1817
+ ] }),
1818
+ /* @__PURE__ */ e(ie, { onClick: l, className: i["hn-header__close-btn"], children: /* @__PURE__ */ e(Ba, { size: 20 }) })
1819
+ ] }),
1820
+ /* @__PURE__ */ a("div", { className: i["hn-body"], children: [
1821
+ /* @__PURE__ */ a("div", { className: i["hn-left"], children: [
1822
+ /* @__PURE__ */ a("div", { className: i["hn-left__section-header"], children: [
1823
+ /* @__PURE__ */ e("div", { className: i["hn-left__section-icon"], children: /* @__PURE__ */ e("svg", { fill: "currentColor", viewBox: "0 0 20 20", width: "16", height: "16", children: /* @__PURE__ */ e("path", { fillRule: "evenodd", d: "M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z", clipRule: "evenodd" }) }) }),
1824
+ /* @__PURE__ */ e(j, { className: i["hn-left__section-title"], children: c("student_context") })
1825
+ ] }),
1826
+ /* @__PURE__ */ a("div", { className: i["hn-left__card"], children: [
1827
+ /* @__PURE__ */ a("div", { className: i["hn-left__last-checkin-row"], children: [
1828
+ /* @__PURE__ */ a("div", { className: i["hn-left__dot-row"], children: [
1829
+ /* @__PURE__ */ e("div", { className: i["hn-left__dot"] }),
1830
+ /* @__PURE__ */ e(j, { children: c("check_in_time") })
1831
+ ] }),
1832
+ /* @__PURE__ */ a(j, { className: i["hn-left__checkin-value"], children: [
1833
+ be,
1834
+ " ",
1835
+ Ve(se) && `(${Ve(se)})`
1836
+ ] })
1837
+ ] }),
1838
+ /* @__PURE__ */ e("div", { className: i["hn-left__indicators-grid"], children: ee.map((_, x) => {
1839
+ const L = ze(_.score, _.val);
1840
+ return p ? /* @__PURE__ */ e("div", { className: i["hn-left__indicator-item"], children: /* @__PURE__ */ a(
1841
+ "div",
1842
+ {
1843
+ className: i["hn-left__indicator-badge"],
1844
+ style: {
1845
+ backgroundColor: _.bg,
1846
+ color: _.color,
1847
+ display: "flex",
1848
+ alignItems: "center",
1849
+ justifyContent: "space-between",
1850
+ padding: "8px 12px",
1851
+ borderRadius: "12px",
1852
+ fontWeight: 600,
1853
+ width: "100%",
1854
+ boxSizing: "border-box"
1855
+ },
1856
+ children: [
1857
+ /* @__PURE__ */ e("span", { style: { fontSize: "13px", lineHeight: 1.2 }, children: _.name }),
1858
+ L ? /* @__PURE__ */ e("span", { style: { display: "inline-flex", marginLeft: 8, flexShrink: 0 }, children: L }) : /* @__PURE__ */ e("span", { style: { marginLeft: 8, fontSize: "12px", flexShrink: 0 }, children: [_.val, _.num].filter(Boolean).join(" | ") })
1859
+ ]
1860
+ }
1861
+ ) }, x) : /* @__PURE__ */ a("div", { className: i["hn-left__indicator-item"], children: [
1862
+ /* @__PURE__ */ e(j, { className: i["hn-left__indicator-name"], children: _.name }),
1863
+ /* @__PURE__ */ e(
1864
+ "div",
1865
+ {
1866
+ className: i["hn-left__indicator-badge"],
1867
+ style: {
1868
+ backgroundColor: _.bg,
1869
+ color: _.color
1870
+ },
1871
+ children: [_.val, _.num].filter(Boolean).join(" | ")
1872
+ }
1873
+ )
1874
+ ] }, x);
1875
+ }) })
1876
+ ] }),
1877
+ /* @__PURE__ */ a("div", { className: i["hn-left__card-last"], children: [
1878
+ /* @__PURE__ */ a("div", { className: i["hn-left__prev-notes-header"], children: [
1879
+ /* @__PURE__ */ e("div", { className: i["hn-left__dot"], style: { backgroundColor: "#FFB04F" } }),
1880
+ /* @__PURE__ */ e(j, { children: c("previous_notes") })
1881
+ ] }),
1882
+ s?.previousOneToOneDate && !ce(s?.previousOneToOneDate) ? /* @__PURE__ */ a("div", { className: i["hn-left__prev-notes-block"], children: [
1883
+ !ce(s.previousOneToOneDate) && /* @__PURE__ */ e(j, { className: i["hn-left__prev-date"], children: q.utc(s.previousOneToOneDate).local().format("MMMM D, YYYY") }),
1884
+ (() => {
1885
+ const _ = s?.previousUserLog && s.previousUserLog !== "undefined" && s.previousUserLog !== "null" ? s.previousUserLog.trim() : "", x = s?.previousUserRoleLog && s.previousUserRoleLog !== "undefined" && s.previousUserRoleLog !== "null" ? s.previousUserRoleLog.trim() : "", L = [_, x ? `(${x})` : ""].filter(Boolean).join(" ");
1886
+ return L ? /* @__PURE__ */ e(j, { className: i["hn-left__prev-user"], children: L }) : null;
1887
+ })(),
1888
+ s?.previousOneToOneNote && s.previousOneToOneNote !== "undefined" && s.previousOneToOneNote !== "null" && /* @__PURE__ */ e(j, { className: i["hn-left__prev-text"], children: s.previousOneToOneNote }),
1889
+ s?.previousOneToOneStrategyName && /* @__PURE__ */ e("div", { className: i["hn-left__prev-notes-divider"], children: /* @__PURE__ */ a(j, { className: i["hn-left__prev-strategy"], children: [
1890
+ /* @__PURE__ */ a("span", { style: { textTransform: "capitalize" }, children: [
1891
+ c("strategy"),
1892
+ ": "
1893
+ ] }),
1894
+ s.previousOneToOneStrategyName
1895
+ ] }) }),
1896
+ s?.previousOutcomes && /* @__PURE__ */ e("div", { className: i["hn-left__prev-notes-extra"], children: /* @__PURE__ */ a(j, { className: i["hn-left__prev-outcome"], children: [
1897
+ /* @__PURE__ */ a("span", { children: [
1898
+ c("session_outcome"),
1899
+ ": "
1900
+ ] }),
1901
+ s.previousOutcomes.replace(/^,\s*/, "")
1902
+ ] }) }),
1903
+ k?.length > 0 && /* @__PURE__ */ a("div", { className: i["hn-left__prev-notes-extra"], children: [
1904
+ /* @__PURE__ */ e(j, { className: i["hn-left__prev-outcome"], children: /* @__PURE__ */ a("span", { children: [
1905
+ c("conversation_starters"),
1906
+ ":"
1907
+ ] }) }),
1908
+ /* @__PURE__ */ e("ul", { className: i["hn-left__prev-scaffolding-list"], children: k.map((_, x) => /* @__PURE__ */ e("li", { className: i["hn-left__prev-scaffolding-item"], children: _ }, x)) })
1909
+ ] })
1910
+ ] }) : /* @__PURE__ */ e("div", { className: i["hn-left__prev-notes-block"], children: /* @__PURE__ */ e(j, { style: { color: "#94a3b8", fontSize: 12 }, children: c("no_conversation_history") }) })
1911
+ ] })
1912
+ ] }),
1913
+ /* @__PURE__ */ a("div", { className: i["hn-middle"], children: [
1914
+ /* @__PURE__ */ a("div", { className: i["hn-middle__focus-card"], children: [
1915
+ /* @__PURE__ */ a(j, { className: i["hn-middle__focus-label"], children: [
1916
+ "🎯 ",
1917
+ c("what_was_the_main_focus_of_this_session")
1918
+ ] }),
1919
+ /* @__PURE__ */ e("div", { className: i["hn-middle__focus-tags"], children: ["Academics", "Social", "Home Life", "Goals", "Personal", "Well-being"].map((_) => {
1920
+ const x = G.includes(_);
1921
+ return /* @__PURE__ */ e(
1922
+ ie,
1923
+ {
1924
+ disabled: !0,
1925
+ className: `${i["hn-middle__focus-tag"]}${x ? ` ${i["hn-middle__focus-tag--active"]}` : ""}`,
1926
+ children: _
1927
+ },
1928
+ _
1929
+ );
1930
+ }) }),
1931
+ /* @__PURE__ */ e("div", { className: i["hn-middle__readonly-text"], children: s?.topicOneToOne || c("no_description_provided") })
1932
+ ] }),
1933
+ /* @__PURE__ */ a("div", { className: i["hn-middle__notes-card"], children: [
1934
+ /* @__PURE__ */ e(j, { className: i["hn-middle__notes-label"], children: c("other_notes_optional") }),
1935
+ /* @__PURE__ */ e("div", { className: i["hn-middle__readonly-text"], children: s?.oneToOneNote || s?.OneToOneNote || c("no_notes_added") })
1936
+ ] }),
1937
+ !p && /* @__PURE__ */ a("div", { className: i["hn-middle__strategy-card"], children: [
1938
+ /* @__PURE__ */ a(j, { className: i["hn-middle__strategy-label"], children: [
1939
+ "💡 ",
1940
+ c("agreed_learning_strategy")
1941
+ ] }),
1942
+ K.length > 0 ? /* @__PURE__ */ e("div", { className: i["hn-middle__strategy-chips"], children: K.map((_, x) => /* @__PURE__ */ e(dt, { label: _, className: i["hn-middle__strategy-chip"] }, x)) }) : /* @__PURE__ */ e("div", { className: i["hn-middle__readonly-text"], children: c("no_strategy_selected") || "No agreed strategy selected" })
1943
+ ] }),
1944
+ /* @__PURE__ */ a("div", { className: i["hn-middle__outcomes-card"], children: [
1945
+ /* @__PURE__ */ a(j, { className: i["hn-middle__outcomes-label"], children: [
1946
+ "✅ ",
1947
+ c("session_outcomes_next_steps")
1948
+ ] }),
1949
+ /* @__PURE__ */ e("div", { className: i["hn-middle__outcomes-tags"], children: ["Follow-up Set", "Goal Established", "Refer to Counselor", "Action Item Created", "No Follow-up Necessary"].map((_) => {
1950
+ const x = X.includes(_);
1951
+ return /* @__PURE__ */ e(
1952
+ ie,
1953
+ {
1954
+ disabled: !0,
1955
+ className: `${i["hn-middle__outcome-tag"]}${x ? ` ${i["hn-middle__outcome-tag--active"]}` : ""}`,
1956
+ children: _
1957
+ },
1958
+ _
1959
+ );
1960
+ }) })
1961
+ ] }),
1962
+ /* @__PURE__ */ a("div", { className: i["hn-middle__toggle-card"], children: [
1963
+ /* @__PURE__ */ e("div", { className: `${i["hn-middle__toggle-btn"]}${Q ? ` ${i["hn-middle__toggle-btn--active"]}` : ""}`, children: /* @__PURE__ */ e(
1964
+ "div",
1965
+ {
1966
+ className: i["hn-middle__toggle-thumb"],
1967
+ style: {
1968
+ transform: Q ? "translateX(24px)" : "translateX(0)"
1969
+ },
1970
+ children: Q ? /* @__PURE__ */ e(Fa, { size: 14 }) : /* @__PURE__ */ e(Ea, { size: 14 })
1971
+ }
1972
+ ) }),
1973
+ /* @__PURE__ */ a("div", { className: i["hn-middle__toggle-info"], children: [
1974
+ /* @__PURE__ */ e(j, { className: i["hn-middle__toggle-label"], children: c("hidden_from_student") }),
1975
+ /* @__PURE__ */ e(j, { className: i["hn-middle__toggle-sub"], children: c(Q ? "hidden_from_students_description" : "shared_with_students_unless_hidden") })
1976
+ ] })
1977
+ ] })
1978
+ ] }),
1979
+ I && /* @__PURE__ */ a("div", { className: i["hn-right"], children: [
1980
+ /* @__PURE__ */ a("div", { className: i["hn-right__header"], children: [
1981
+ /* @__PURE__ */ a("div", { className: i["hn-right__header-title-row"], children: [
1982
+ /* @__PURE__ */ e(Ma, { size: 20 }),
1983
+ /* @__PURE__ */ e(j, { className: i["hn-right__header-title"], children: c("conversation_starters") })
1984
+ ] }),
1985
+ /* @__PURE__ */ e(j, { className: i["hn-right__header-sub"], children: c("tap_cards_to_guide_the_conversation") })
1986
+ ] }),
1987
+ /* @__PURE__ */ e("div", { className: i["hn-right__scroll-list"], children: y.map((_) => {
1988
+ const x = g === _.id, L = (_.questions || []).reduce((F, M) => [...F, M, ...M.children || []], []), Y = L.length, P = L.filter((F) => m.includes(String(F.id))).length, W = P === Y && Y > 0, Z = "linear-gradient(135deg, #3b82f6, #6366f1)", te = typeof _.gradient == "string" ? _.gradient.trim() : "", $ = te.startsWith("linear-gradient") || te.startsWith("#") || te.startsWith("rgb") ? te : Z;
1989
+ return /* @__PURE__ */ a("div", { className: i["hn-right__cat-wrapper"], children: [
1990
+ /* @__PURE__ */ a(
1991
+ ie,
1992
+ {
1993
+ onClick: () => w(x ? "" : _.id),
1994
+ className: `${i["hn-right__cat-btn"]}${x ? ` ${i["hn-right__cat-btn--expanded"]}` : ""}`,
1995
+ children: [
1996
+ /* @__PURE__ */ a("div", { className: i["hn-right__cat-inner-row"], children: [
1997
+ /* @__PURE__ */ e(
1998
+ "div",
1999
+ {
2000
+ className: i["hn-right__cat-icon-circle"],
2001
+ style: {
2002
+ background: $,
2003
+ "--hn-cat-gradient": $,
2004
+ border: W ? "2px solid #05df72" : "none"
2005
+ },
2006
+ children: W ? "✓" : /* @__PURE__ */ a(ne, { children: [
2007
+ _.icon === "sparkles" && /* @__PURE__ */ e($e, { size: 16 }),
2008
+ _.icon === "heart" && /* @__PURE__ */ e(ja, { size: 16 }),
2009
+ _.icon === "trending-up" && /* @__PURE__ */ e(Ra, { size: 16 }),
2010
+ _.icon === "trophy" && /* @__PURE__ */ e(Aa, { size: 16 }),
2011
+ !["sparkles", "heart", "trending-up", "trophy"].includes(_.icon) && /* @__PURE__ */ e($e, { size: 16 })
2012
+ ] })
2013
+ }
2014
+ ),
2015
+ /* @__PURE__ */ a("div", { className: i["hn-right__cat-title-col"], children: [
2016
+ /* @__PURE__ */ e(j, { className: i["hn-right__cat-label"], children: _.label }),
2017
+ W && /* @__PURE__ */ e(j, { className: i["hn-right__cat-completed"], children: c("completed") })
2018
+ ] })
2019
+ ] }),
2020
+ /* @__PURE__ */ a("div", { className: i["hn-right__cat-right"], children: [
2021
+ /* @__PURE__ */ a(j, { className: `${i["hn-right__cat-count"]}${W ? ` ${i["hn-right__cat-count--completed"]}` : ""}`, children: [
2022
+ P,
2023
+ "/",
2024
+ Y
2025
+ ] }),
2026
+ /* @__PURE__ */ e(
2027
+ Oa,
2028
+ {
2029
+ size: 16,
2030
+ style: {
2031
+ transition: "transform 0.2s",
2032
+ transform: x ? "rotate(180deg)" : "rotate(0)"
2033
+ }
2034
+ }
2035
+ )
2036
+ ] })
2037
+ ]
2038
+ }
2039
+ ),
2040
+ x && /* @__PURE__ */ e("div", { className: i["hn-right__questions-list"], children: (_.questions || []).map((F, M) => {
2041
+ const B = m.includes(String(F.id));
2042
+ return /* @__PURE__ */ a("div", { className: i["hn-right__question-group"], children: [
2043
+ /* @__PURE__ */ a(
2044
+ ie,
2045
+ {
2046
+ onClick: () => d(String(F.id)),
2047
+ className: [
2048
+ i["hn-right__question-btn"],
2049
+ B ? i["hn-right__question-btn--clicked"] : ""
2050
+ ].filter(Boolean).join(" "),
2051
+ children: [
2052
+ /* @__PURE__ */ e(
2053
+ "div",
2054
+ {
2055
+ className: i["hn-right__q-dot"],
2056
+ style: {
2057
+ "--hn-q-dot-bg": B ? "#10B981" : $
2058
+ },
2059
+ children: B ? "✓" : "L1"
2060
+ }
2061
+ ),
2062
+ /* @__PURE__ */ e(j, { className: `${i["hn-right__question-text"]}${B ? ` ${i["hn-right__question-text--clicked"]}` : ""}`, children: F.question })
2063
+ ]
2064
+ }
2065
+ ),
2066
+ B && F.children && F.children.length > 0 && /* @__PURE__ */ e("div", { className: i["hn-right__l2-list"], style: { marginLeft: "24px", marginTop: "8px", display: "flex", flexDirection: "column", gap: "8px" }, children: F.children.map((z, Ne) => {
2067
+ const fe = m.includes(String(z.id));
2068
+ return /* @__PURE__ */ a(
2069
+ ie,
2070
+ {
2071
+ onClick: () => d(String(z.id)),
2072
+ className: [
2073
+ i["hn-right__question-btn"],
2074
+ i["hn-right__question-btn--l2"],
2075
+ fe ? i["hn-right__question-btn--clicked"] : ""
2076
+ ].filter(Boolean).join(" "),
2077
+ children: [
2078
+ /* @__PURE__ */ e(
2079
+ "div",
2080
+ {
2081
+ className: i["hn-right__q-dot"],
2082
+ style: {
2083
+ "--hn-q-dot-bg": fe ? "#10B981" : $
2084
+ },
2085
+ children: fe ? "✓" : "L2"
2086
+ }
2087
+ ),
2088
+ /* @__PURE__ */ e(j, { className: `${i["hn-right__question-text"]}${fe ? ` ${i["hn-right__question-text--clicked"]}` : ""}`, children: z.question })
2089
+ ]
2090
+ },
2091
+ z.id || Ne
2092
+ );
2093
+ }) })
2094
+ ] }, F.id || M);
2095
+ }) })
2096
+ ] }, _.id);
2097
+ }) })
2098
+ ] })
2099
+ ] })
2100
+ ] })
2101
+ }
2102
+ );
2103
+ }, Ha = "/images/image-default.png";
2104
+ function Wa(t) {
2105
+ if (!t) return "";
2106
+ const l = q(t);
2107
+ return l.isValid() ? l.format("DD MMM YYYY · h:mm A") : t;
2108
+ }
2109
+ const Pa = ({
2110
+ kind: t,
2111
+ open: l,
2112
+ onClose: s,
2113
+ students: o,
2114
+ curriculumSystem: r,
2115
+ conversationStarters: h = [],
2116
+ conversationStartersEs: b = [],
2117
+ conversationStartersMs: c = []
2118
+ }) => {
2119
+ const v = he(), { t: u } = J(), { getLabel: N, system: g } = de(), w = r ?? (g === "UK" ? "UK" : "US"), C = ge((T) => T.common?.user)?.hasEsSchool !== !1, [d, p] = Ce.useState(null), [A, y] = Ce.useState(!1), [f, k] = Ce.useState(null), S = t === "red", I = S ? "#C44140" : "#F5D500", E = S ? n.iconBadgeRed : n.iconBadgeYellow, O = S ? n.studentAvatarRed : n.studentAvatarYellow, D = o && o.length > 0 ? o : [], G = u(S ? "red_flags_this_month" : "yellow_flags_this_month"), X = `${D.length} ${u("students_flagged_review_check_in")}`, K = async (T, H) => {
2120
+ T && (k(T), await wt(T, H, (Q) => {
2121
+ p({ ...Q, isEs: H }), y(!0);
2122
+ }), k(null));
2123
+ }, ee = C && (d?.isEs || d?.schoolType?.toUpperCase() === "ES" || d?.schoolLevel === "es"), U = ee ? b.length > 0 ? b : h : c.length > 0 ? c : h;
2124
+ return /* @__PURE__ */ a(ne, { children: [
2125
+ /* @__PURE__ */ a(
2126
+ Se,
2127
+ {
2128
+ open: l,
2129
+ onClose: s,
2130
+ maxWidth: "md",
2131
+ fullWidth: !0,
2132
+ PaperProps: {
2133
+ style: {
2134
+ borderRadius: 20,
2135
+ boxShadow: "0 20px 60px rgba(31, 63, 115, 0.3)",
2136
+ overflow: "hidden"
2137
+ }
2138
+ },
2139
+ children: [
2140
+ /* @__PURE__ */ a("div", { className: n.modalHeader, children: [
2141
+ /* @__PURE__ */ e("div", { className: `${n.iconBadge} ${E}`, children: /* @__PURE__ */ e(Je, { fill: I, width: 20, height: 24 }) }),
2142
+ /* @__PURE__ */ a("div", { children: [
2143
+ /* @__PURE__ */ e("h2", { className: n.modalTitle, children: G }),
2144
+ /* @__PURE__ */ e("p", { className: n.modalSubtitle, children: X })
2145
+ ] }),
2146
+ /* @__PURE__ */ e("button", { type: "button", className: n.modalCloseBtn, onClick: s, children: /* @__PURE__ */ e(qe, { width: 18, height: 18, color: "rgba(36,36,36,0.56)" }) })
2147
+ ] }),
2148
+ /* @__PURE__ */ e(Ye, { className: n.dialogContentZero, children: /* @__PURE__ */ e("div", { className: n.modalStudentList, children: D.map((T) => /* @__PURE__ */ a("div", { className: n.studentRow, children: [
2149
+ T.avatar ? /* @__PURE__ */ e(
2150
+ Ie,
2151
+ {
2152
+ alt: T.fullName?.toUpperCase(),
2153
+ src: ye(T.avatar) || Ha,
2154
+ className: `${n.studentAvatar} ${O}`
2155
+ }
2156
+ ) : /* @__PURE__ */ e("div", { className: `${n.studentAvatar} ${O}`, children: Ke(T.fullName) }),
2157
+ /* @__PURE__ */ a("div", { className: n.studentInfoCol, children: [
2158
+ /* @__PURE__ */ a("div", { className: n.studentName, children: [
2159
+ T.fullName,
2160
+ T.gradeLevel && /* @__PURE__ */ a("span", { className: n.studentGrade, children: [
2161
+ " · ",
2162
+ N(T.gradeLevel, { system: w === "UK" ? "UK" : "US" })
2163
+ ] })
2164
+ ] }),
2165
+ /* @__PURE__ */ a("div", { className: n.studentMetaRow, children: [
2166
+ /* @__PURE__ */ a("span", { className: n.dateLabel, children: [
2167
+ /* @__PURE__ */ e(St, { width: 12, height: 12 }),
2168
+ Wa(T.lastInteractionDate)
2169
+ ] }),
2170
+ T.hasOneToOneLogged ? /* @__PURE__ */ a("span", { className: n.loggedPill, children: [
2171
+ /* @__PURE__ */ e(It, { width: 13, height: 13 }),
2172
+ u("one_to_one_logged"),
2173
+ T.loggedByEducatorName ? ` · ${T.loggedByEducatorName}` : ""
2174
+ ] }) : /* @__PURE__ */ a("span", { className: n.notLoggedPill, children: [
2175
+ /* @__PURE__ */ e(Bt, { width: 13, height: 13 }),
2176
+ u("no_one_to_one_yet")
2177
+ ] })
2178
+ ] })
2179
+ ] }),
2180
+ /* @__PURE__ */ a("div", { className: n.modalActionButtons, children: [
2181
+ /* @__PURE__ */ a(
2182
+ "button",
2183
+ {
2184
+ type: "button",
2185
+ className: n.btnViewCheckIn,
2186
+ onClick: () => Be(
2187
+ v,
2188
+ T.sessionId,
2189
+ T.sessionResultId,
2190
+ T.studentId,
2191
+ C && T.schoolType?.toUpperCase() === "ES"
2192
+ ),
2193
+ children: [
2194
+ /* @__PURE__ */ e(et, { width: 15, height: 15 }),
2195
+ /* @__PURE__ */ e("span", { children: u("view_check_in") })
2196
+ ]
2197
+ }
2198
+ ),
2199
+ /* @__PURE__ */ a(
2200
+ "button",
2201
+ {
2202
+ type: "button",
2203
+ disabled: !T.hasOneToOneLogged || f === T.sessionId,
2204
+ className: T.hasOneToOneLogged ? n.btnViewLogActive : n.btnViewLogDisabled,
2205
+ onClick: () => K(
2206
+ T.sessionId,
2207
+ C && T.schoolType?.toUpperCase() === "ES"
2208
+ ),
2209
+ children: [
2210
+ /* @__PURE__ */ e(Mt, { width: 15, height: 15 }),
2211
+ /* @__PURE__ */ e("span", { children: f === T.sessionId ? "..." : u("view_log") })
2212
+ ]
2213
+ }
2214
+ )
2215
+ ] })
2216
+ ] }, T.studentId || T.fullName)) }) })
2217
+ ]
2218
+ }
2219
+ ),
2220
+ A && /* @__PURE__ */ e(
2221
+ Da,
2222
+ {
2223
+ isOpen: A,
2224
+ onClose: () => {
2225
+ y(!1), p(null);
2226
+ },
2227
+ sessionSelected: d,
2228
+ conversationStarters: U,
2229
+ isEs: ee,
2230
+ curriculumSystem: w
2231
+ }
2232
+ )
2233
+ ] });
2234
+ }, $a = ({
2235
+ staffWellBeingData: t,
2236
+ isEnableWellBeing: l = !0,
2237
+ onOpenUnlockModal: s
2238
+ }) => {
2239
+ const { t: o } = J(), r = he(), [h, b] = R(!1);
2240
+ return /* @__PURE__ */ a("div", { className: n.wellBeingCard, children: [
2241
+ /* @__PURE__ */ a("div", { className: n.wellBeingHeader, children: [
2242
+ /* @__PURE__ */ a("div", { className: "d-flex flex-items-start gap-2", children: [
2243
+ /* @__PURE__ */ e("div", { className: n.iconContainer, children: /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "21", height: "21", viewBox: "0 0 24 24", fill: "none", stroke: "#2E7D99", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ e("path", { d: "M19.414 14.414C21 12.828 22 11.5 22 9.5a5.5 5.5 0 0 0-9.591-3.676.6.6 0 0 1-.818.001A5.5 5.5 0 0 0 2 9.5c0 2.3 1.5 4 3 5.5l5.535 5.362a2 2 0 0 0 2.879.052 2.12 2.12 0 0 0-.004-3 2.124 2.124 0 1 0 3-3 2.124 2.124 0 0 0 3.004 0 2 2 0 0 0 0-2.828l-1.881-1.882a2.41 2.41 0 0 0-3.409 0l-1.71 1.71a2 2 0 0 1-2.828 0 2 2 0 0 1 0-2.828l2.823-2.762" }) }) }),
2244
+ /* @__PURE__ */ e("span", { className: n.wellBeingIconLabel, children: /* @__PURE__ */ e("h2", { className: n.wellBeingTitle, children: o("staff_well_being") }) })
2245
+ ] }),
2246
+ /* @__PURE__ */ a("div", { className: n.actionButtonsContainer, children: [
2247
+ l && !!t?.isEnabledRoutine && /* @__PURE__ */ a(
2248
+ "button",
2249
+ {
2250
+ onClick: () => {
2251
+ r("/admin/well-being-dashboard");
2252
+ },
2253
+ className: n.wellBeingActionBtn,
2254
+ children: [
2255
+ /* @__PURE__ */ a("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 24 24", fill: "none", stroke: "#2E7D99", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
2256
+ /* @__PURE__ */ e("rect", { width: "8", height: "4", x: "8", y: "2", rx: "1", ry: "1" }),
2257
+ /* @__PURE__ */ e("path", { d: "M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2" }),
2258
+ /* @__PURE__ */ e("path", { d: "M12 11h4" }),
2259
+ /* @__PURE__ */ e("path", { d: "M12 16h4" }),
2260
+ /* @__PURE__ */ e("path", { d: "M8 11h.01" }),
2261
+ /* @__PURE__ */ e("path", { d: "M8 16h.01" })
2262
+ ] }),
2263
+ o("view_check_in_data")
2264
+ ]
2265
+ }
2266
+ ),
2267
+ /* @__PURE__ */ a("div", { className: n.staffOnlyBadge, children: [
2268
+ /* @__PURE__ */ a("svg", { xmlns: "http://www.w3.org/2000/svg", width: "13", height: "13", viewBox: "0 0 24 24", fill: "none", stroke: "#2E7D99", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
2269
+ /* @__PURE__ */ e("rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2" }),
2270
+ /* @__PURE__ */ e("path", { d: "M7 11V7a5 5 0 0 1 10 0v4" })
2271
+ ] }),
2272
+ o("staff_only")
2273
+ ] })
2274
+ ] })
2275
+ ] }),
2276
+ /* @__PURE__ */ e("p", { className: n.wellBeingDescription, children: o("staff_well_being_description") }),
2277
+ l ? t?.isEnabledRoutine ? /* @__PURE__ */ a("div", { className: n.gridContainer, children: [
2278
+ /* @__PURE__ */ a("div", { className: n.cardItem, children: [
2279
+ /* @__PURE__ */ e("p", { className: n.cardTitle, children: o("total_check_ins") }),
2280
+ /* @__PURE__ */ e("p", { className: n.cardValue, children: t.totalWellbeing }),
2281
+ /* @__PURE__ */ e("p", { className: n.cardSubText, children: o("this_month") })
2282
+ ] }),
2283
+ /* @__PURE__ */ a("div", { className: n.cardItem, children: [
2284
+ /* @__PURE__ */ a("div", { className: "d-flex", children: [
2285
+ /* @__PURE__ */ e("p", { className: n.cardTitle, children: o("engagement") }),
2286
+ /* @__PURE__ */ a(
2287
+ "div",
2288
+ {
2289
+ className: n.tooltipContainer,
2290
+ onMouseEnter: () => b(!0),
2291
+ onMouseLeave: () => b(!1),
2292
+ style: { position: "relative", display: "inline-flex", marginLeft: "6px", cursor: "pointer" },
2293
+ children: [
2294
+ /* @__PURE__ */ a("svg", { xmlns: "http://www.w3.org/2000/svg", width: "13", height: "13", viewBox: "0 0 24 24", fill: "none", stroke: "rgba(36,36,36,0.56)", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
2295
+ /* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "10" }),
2296
+ /* @__PURE__ */ e("path", { d: "M12 16v-4" }),
2297
+ /* @__PURE__ */ e("path", { d: "M12 8h.01" })
2298
+ ] }),
2299
+ h && /* @__PURE__ */ e("div", { className: n.customTooltip, children: o("engagement_tooltip_text") || "Educators who have completed at least one check-in this month." })
2300
+ ]
2301
+ }
2302
+ )
2303
+ ] }),
2304
+ /* @__PURE__ */ a("div", { className: "d-flex", children: [
2305
+ /* @__PURE__ */ e("p", { className: n.cardValue, children: t.totalEngagement !== void 0 && t.totalEngagement !== null ? Number(t.totalEngagement).toLocaleString(void 0, {
2306
+ minimumFractionDigits: 2,
2307
+ maximumFractionDigits: 2
2308
+ }) : 0 }),
2309
+ /* @__PURE__ */ e("p", { className: n.subValue, children: "%" })
2310
+ ] }),
2311
+ /* @__PURE__ */ e("p", { className: n.cardSubText, children: o("this_month") })
2312
+ ] }),
2313
+ /* @__PURE__ */ a("div", { className: n.cardItem, children: [
2314
+ /* @__PURE__ */ e("p", { className: n.cardTitle, children: o("total_1_1_requested") }),
2315
+ /* @__PURE__ */ e("p", { className: n.cardValue, children: t.totalConversation }),
2316
+ /* @__PURE__ */ e("p", { className: n.cardSubText, children: o("this_month") })
2317
+ ] })
2318
+ ] }) : /* @__PURE__ */ a("div", { className: n.emptyRoutineContainer, children: [
2319
+ /* @__PURE__ */ e("div", { className: n.emptyIconWrapper, children: /* @__PURE__ */ a("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "#2E7D99", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
2320
+ /* @__PURE__ */ e("rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", ry: "2" }),
2321
+ /* @__PURE__ */ e("line", { x1: "16", x2: "16", y1: "2", y2: "6" }),
2322
+ /* @__PURE__ */ e("line", { x1: "8", x2: "8", y1: "2", y2: "6" }),
2323
+ /* @__PURE__ */ e("line", { x1: "3", x2: "21", y1: "10", y2: "10" }),
2324
+ /* @__PURE__ */ e("path", { d: "M8 14h.01" }),
2325
+ /* @__PURE__ */ e("path", { d: "M12 14h.01" }),
2326
+ /* @__PURE__ */ e("path", { d: "M16 14h.01" }),
2327
+ /* @__PURE__ */ e("path", { d: "M8 18h.01" }),
2328
+ /* @__PURE__ */ e("path", { d: "M12 18h.01" }),
2329
+ /* @__PURE__ */ e("path", { d: "M16 18h.01" })
2330
+ ] }) }),
2331
+ /* @__PURE__ */ e("h3", { className: n.emptyTitle, children: o("you_haven_t_set_the_staff_well_being_routine_yet") }),
2332
+ /* @__PURE__ */ e("p", { className: n.emptySubText, children: o("choose_check_in_cadence_desc") }),
2333
+ /* @__PURE__ */ a(
2334
+ "button",
2335
+ {
2336
+ type: "button",
2337
+ onClick: () => {
2338
+ r("/admin/frequency-and-setup");
2339
+ },
2340
+ className: n.setupRoutineBtn,
2341
+ children: [
2342
+ /* @__PURE__ */ a("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
2343
+ /* @__PURE__ */ e("path", { d: "M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" }),
2344
+ /* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "3" })
2345
+ ] }),
2346
+ o("set_up_the_routine")
2347
+ ]
2348
+ }
2349
+ )
2350
+ ] }) : /* @__PURE__ */ a("div", { className: n.emptyRoutineContainer, children: [
2351
+ /* @__PURE__ */ e("div", { className: n.emptyIconWrapper, children: /* @__PURE__ */ e(Ee, { size: 24, color: "#2E7D99" }) }),
2352
+ /* @__PURE__ */ e("h3", { className: n.emptyTitle, children: o("unlock_educator_check_ins") || "Unlock Educator Check-ins" }),
2353
+ /* @__PURE__ */ e("p", { className: n.emptySubText, children: o("unlock_educator_check_ins_desc") || "Empower your teaching staff with dedicated well-being check-ins. Monitor educator mental health, prevent burnout, and foster a positive school climate." }),
2354
+ /* @__PURE__ */ a(
2355
+ "button",
2356
+ {
2357
+ type: "button",
2358
+ onClick: s,
2359
+ className: n.setupRoutineBtn,
2360
+ children: [
2361
+ /* @__PURE__ */ e(Ee, { size: 16, color: "#ffffff" }),
2362
+ o("unlock_educator_check_ins") || "Unlock Educator Check-ins"
2363
+ ]
2364
+ }
2365
+ )
2366
+ ] })
2367
+ ] });
2368
+ }, so = () => {
2369
+ const { t } = J(), l = Ge(), [s, o] = R(!1), {
2370
+ loadingInit: r,
2371
+ loadingAnalytics: h,
2372
+ initData: b,
2373
+ analyticsData: c,
2374
+ caseMode: v,
2375
+ curriculumSystem: u,
2376
+ setCurriculumSystem: N,
2377
+ flagModal: g,
2378
+ setFlagModal: w,
2379
+ schoolType: m,
2380
+ esSessionIframe: C,
2381
+ setEsSessionIframe: d,
2382
+ conversationStartersEs: p,
2383
+ conversationStartersMs: A,
2384
+ staffWellBeingData: y,
2385
+ loadingWellBeing: f,
2386
+ isEnableWellBeing: k
2387
+ } = yt("BOTH"), S = async () => {
2388
+ l(je(!0));
2389
+ try {
2390
+ await _t() && l(
2391
+ ve({
2392
+ type: "success",
2393
+ message: "Thank you for your message! Our support team will get back to you as soon as possible."
2394
+ })
2395
+ );
2396
+ } catch (U) {
2397
+ U?.message ? l(ve({ type: "error", message: U.message })) : l(
2398
+ ve({
2399
+ type: "error",
2400
+ message: "Failed to send message. Please try again."
2401
+ })
2402
+ );
2403
+ } finally {
2404
+ l(je(!1));
2405
+ }
2406
+ };
2407
+ oe(() => {
2408
+ const U = (H) => {
2409
+ (H.data === "closeEsIframe" || H.data?.action === "backOverview" || H.data?.type === "BACK_OVERVIEW") && d(null);
2410
+ }, T = (H) => {
2411
+ const Q = H;
2412
+ Q.detail && d(Q.detail);
2413
+ };
2414
+ return window.addEventListener("message", U), window.addEventListener("OPEN_ES_IFRAME", T), () => {
2415
+ window.removeEventListener("message", U), window.removeEventListener("OPEN_ES_IFRAME", T);
2416
+ };
2417
+ }, [d]);
2418
+ const E = t(v === "with" ? "campus_engagement_and_guardrail_overview" : "school_engagement_and_overview"), O = t("real_time_summary_of_student_wellness"), D = c?.flaggedStudents?.redFlagCount ?? 0, G = c?.flaggedStudents?.yellowFlagCount ?? 0, X = c?.flaggedStudents?.redFlags, K = c?.flaggedStudents?.yellowFlags, ee = C ? `${window.location.origin}/es/view-session/${C.sessionId}/${C.sessionResultId}?isReadOnly=true&fullsize=true` : "";
2419
+ return /* @__PURE__ */ a("div", { className: n.overviewContainer, children: [
2420
+ /* @__PURE__ */ e("main", { className: n.mainContent, children: /* @__PURE__ */ a("div", { className: n.maxWidthWrapper, children: [
2421
+ /* @__PURE__ */ a("div", { className: n.headerRow, children: [
2422
+ /* @__PURE__ */ a("div", { children: [
2423
+ /* @__PURE__ */ e("h1", { className: n.mainTitle, children: E }),
2424
+ /* @__PURE__ */ e("p", { className: n.subTitle, children: O })
2425
+ ] }),
2426
+ r ? /* @__PURE__ */ e("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", minWidth: 100, height: 38 }, children: /* @__PURE__ */ e(ae, { size: 20 }) }) : /* @__PURE__ */ e(Ia, { adminTips: b?.adminTips })
2427
+ ] }),
2428
+ /* @__PURE__ */ a("div", { className: n.layoutGrid, children: [
2429
+ /* @__PURE__ */ a("div", { className: n.leftColumn, children: [
2430
+ h ? /* @__PURE__ */ e("div", { className: n.statCardGrid, style: { display: "flex", alignItems: "center", justifyContent: "center", minHeight: 140, background: "#ffffff", borderRadius: 16, border: "1px solid #E2E8F0" }, children: /* @__PURE__ */ e(ae, { size: 28 }) }) : /* @__PURE__ */ a("div", { className: n.statCardGrid, children: [
2431
+ /* @__PURE__ */ e(
2432
+ We,
2433
+ {
2434
+ kind: "red",
2435
+ label: t("red_flags_this_month"),
2436
+ value: D,
2437
+ onOpen: () => w("red")
2438
+ }
2439
+ ),
2440
+ /* @__PURE__ */ e(
2441
+ We,
2442
+ {
2443
+ kind: "yellow",
2444
+ label: t("yellow_flags_this_month"),
2445
+ value: G,
2446
+ onOpen: () => w("yellow")
2447
+ }
2448
+ )
2449
+ ] }),
2450
+ r ? /* @__PURE__ */ e("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", minHeight: 140, background: "#ffffff", borderRadius: 16, border: "1px solid #E2E8F0", padding: 24 }, children: /* @__PURE__ */ e(ae, { size: 28 }) }) : /* @__PURE__ */ e(Ca, { students: b?.students }),
2451
+ h ? /* @__PURE__ */ e("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", minHeight: 280, background: "#ffffff", borderRadius: 16, border: "1px solid #E2E8F0", padding: 24 }, children: /* @__PURE__ */ e(ae, { size: 32 }) }) : /* @__PURE__ */ e(
2452
+ xa,
2453
+ {
2454
+ wellnessData: c?.studentWellness,
2455
+ schoolType: m,
2456
+ curriculumSystem: u
2457
+ }
2458
+ ),
2459
+ f && k ? /* @__PURE__ */ e("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", minHeight: 280, background: "#ffffff", borderRadius: 16, border: "1px solid #E2E8F0", padding: 24 }, children: /* @__PURE__ */ e(ae, { size: 32 }) }) : /* @__PURE__ */ e(
2460
+ $a,
2461
+ {
2462
+ staffWellBeingData: y,
2463
+ isEnableWellBeing: k,
2464
+ onOpenUnlockModal: () => o(!0)
2465
+ }
2466
+ )
2467
+ ] }),
2468
+ /* @__PURE__ */ e("div", { className: n.rightColumn, children: h ? /* @__PURE__ */ e("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", minHeight: 480, background: "#ffffff", borderRadius: 16, border: "1px solid #E2E8F0", padding: 24, height: "100%" }, children: /* @__PURE__ */ e(ae, { size: 32 }) }) : /* @__PURE__ */ e(La, { usageData: c?.schoolMonthlyUsage }) })
2469
+ ] }),
2470
+ h ? /* @__PURE__ */ e("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", minHeight: 250, background: "#ffffff", borderRadius: 16, border: "1px solid #E2E8F0", padding: 24, marginTop: 24 }, children: /* @__PURE__ */ e(ae, { size: 32 }) }) : /* @__PURE__ */ e(
2471
+ Sa,
2472
+ {
2473
+ gradeOverview: c?.schoolOverviewByGrade,
2474
+ caseMode: v,
2475
+ curriculumSystem: u,
2476
+ onSetCurriculumSystem: N
2477
+ }
2478
+ )
2479
+ ] }) }),
2480
+ g && /* @__PURE__ */ e(
2481
+ Pa,
2482
+ {
2483
+ kind: g,
2484
+ open: !!g,
2485
+ onClose: () => w(null),
2486
+ students: g === "red" ? X : K,
2487
+ curriculumSystem: u,
2488
+ conversationStartersEs: p,
2489
+ conversationStartersMs: A
2490
+ }
2491
+ ),
2492
+ C && /* @__PURE__ */ a("div", { style: { position: "fixed", top: 0, left: 0, right: 0, bottom: 0, zIndex: 9999, background: "#ffffff", display: "flex", flexDirection: "column" }, children: [
2493
+ /* @__PURE__ */ a("div", { style: { height: 48, padding: "0 20px", background: "#F8FAFC", borderBottom: "1px solid #E2E8F0", display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
2494
+ /* @__PURE__ */ a(
2495
+ "button",
2496
+ {
2497
+ type: "button",
2498
+ onClick: () => d(null),
2499
+ style: { display: "flex", alignItems: "center", gap: 8, border: "none", background: "transparent", cursor: "pointer", fontSize: 14, fontWeight: 600, color: "#316CD9" },
2500
+ children: [
2501
+ /* @__PURE__ */ e(Ut, { width: 18, height: 18, color: "#316CD9" }),
2502
+ /* @__PURE__ */ e("span", { children: t("back_to_overview") })
2503
+ ]
2504
+ }
2505
+ ),
2506
+ /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 500, color: "#64748B" }, children: t("elementary_session_view") })
2507
+ ] }),
2508
+ /* @__PURE__ */ e(
2509
+ "iframe",
2510
+ {
2511
+ src: ee,
2512
+ style: { width: "100%", flex: 1, border: "none", display: "block" },
2513
+ title: "Elementary Session View"
2514
+ }
2515
+ )
2516
+ ] }),
2517
+ /* @__PURE__ */ e(
2518
+ ht,
2519
+ {
2520
+ open: s,
2521
+ onClose: () => o(!1),
2522
+ onContactSupport: S
2523
+ }
2524
+ )
2525
+ ] });
2526
+ };
2527
+ export {
2528
+ so as default
2529
+ };