mario-education 2.0.84-release → 2.0.85-release

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,2296 @@
1
+ import { jsx as e, jsxs as s, Fragment as $ } from "react/jsx-runtime";
2
+ import ie, { useState as R, useCallback as me, useEffect as se, useMemo as ne } from "react";
3
+ import { api as oe, BASE_URL as le, useTranslation as D, getFileUrl as re, getStaticFileUrl as O } from "mario-core";
4
+ import { useNavigate as X, useLocation as De } from "react-router-dom";
5
+ import { a as fe, V as ve, L as $e, N as He, H as We } from "./EmotionIcons-Be5vBOe5.js";
6
+ import { Dialog as _e, DialogContent as Le, Avatar as ue, Tooltip as Ye, Typography as L, Button as V, Chip as Ue } from "@mui/material";
7
+ import Y from "moment";
8
+ import { L as K } from "./Loading-9Xhwui4j.js";
9
+ const Ve = (t = "en-US") => oe.get(`${le}/api/Report/homepage-init?language=${t}`), Ke = () => oe.get(`${le}/api/Report/homepage-analytics`), je = (t, o, a = "en-US") => {
10
+ const l = ["Admin", "Teacher", "Assistant", "Counselor", "SecondaryTeacher"], i = o ? { "x-school-level": "es" } : { "x-school-level": "ms" };
11
+ return oe.get(`${le}/api/Session/${t}/results`, {
12
+ params: { roles: l, lang: a },
13
+ headers: i
14
+ });
15
+ }, we = (t) => {
16
+ const o = t ? { "x-school-level": "es" } : { "x-school-level": "ms" };
17
+ return oe.get(`${le}/api/scaffoldingQuestion/get-tree`, { headers: o });
18
+ }, W = [
19
+ {
20
+ usStage: "Preschool / Early Childhood",
21
+ usGrade: "Preschool",
22
+ ukStage: "Early Years / Nursery",
23
+ ukYearGroup: "Nursery",
24
+ ukKeyStage: "EYFS"
25
+ },
26
+ {
27
+ usStage: "Pre-K / Kindergarten prep",
28
+ usGrade: "Pre-K",
29
+ ukStage: "Reception",
30
+ ukYearGroup: "Reception",
31
+ ukKeyStage: "EYFS"
32
+ },
33
+ {
34
+ usStage: "Elementary School",
35
+ usGrade: "Kindergarten",
36
+ ukStage: "Primary School",
37
+ ukYearGroup: "Year 1",
38
+ ukKeyStage: "Key Stage 1"
39
+ },
40
+ {
41
+ usStage: "Elementary School",
42
+ usGrade: "Grade 1",
43
+ ukStage: "Primary School",
44
+ ukYearGroup: "Year 2",
45
+ ukKeyStage: "Key Stage 1"
46
+ },
47
+ {
48
+ usStage: "Elementary School",
49
+ usGrade: "Grade 2",
50
+ ukStage: "Primary School",
51
+ ukYearGroup: "Year 3",
52
+ ukKeyStage: "Key Stage 2"
53
+ },
54
+ {
55
+ usStage: "Elementary School",
56
+ usGrade: "Grade 3",
57
+ ukStage: "Primary School",
58
+ ukYearGroup: "Year 4",
59
+ ukKeyStage: "Key Stage 2"
60
+ },
61
+ {
62
+ usStage: "Elementary School",
63
+ usGrade: "Grade 4",
64
+ ukStage: "Primary School",
65
+ ukYearGroup: "Year 5",
66
+ ukKeyStage: "Key Stage 2"
67
+ },
68
+ {
69
+ usStage: "Elementary School",
70
+ usGrade: "Grade 5",
71
+ ukStage: "Primary School",
72
+ ukYearGroup: "Year 6",
73
+ ukKeyStage: "Key Stage 2"
74
+ },
75
+ {
76
+ usStage: "Middle School",
77
+ usGrade: "Grade 6",
78
+ ukStage: "Secondary School",
79
+ ukYearGroup: "Year 7",
80
+ ukKeyStage: "Key Stage 3"
81
+ },
82
+ {
83
+ usStage: "Middle School",
84
+ usGrade: "Grade 7",
85
+ ukStage: "Secondary School",
86
+ ukYearGroup: "Year 8",
87
+ ukKeyStage: "Key Stage 3"
88
+ },
89
+ {
90
+ usStage: "Middle School",
91
+ usGrade: "Grade 8",
92
+ ukStage: "Secondary School",
93
+ ukYearGroup: "Year 9",
94
+ ukKeyStage: "Key Stage 3"
95
+ },
96
+ {
97
+ usStage: "High School",
98
+ usGrade: "Grade 9",
99
+ ukStage: "Secondary / GCSE years",
100
+ ukYearGroup: "Year 10",
101
+ ukKeyStage: "Key Stage 4"
102
+ },
103
+ {
104
+ usStage: "High School",
105
+ usGrade: "Grade 10",
106
+ ukStage: "Secondary / GCSE years",
107
+ ukYearGroup: "Year 11",
108
+ ukKeyStage: "Key Stage 4"
109
+ },
110
+ {
111
+ usStage: "High School",
112
+ usGrade: "Grade 11",
113
+ ukStage: "Sixth Form / College",
114
+ ukYearGroup: "Year 12",
115
+ ukKeyStage: "Key Stage 5"
116
+ },
117
+ {
118
+ usStage: "High School",
119
+ usGrade: "Grade 12",
120
+ ukStage: "Sixth Form / College",
121
+ ukYearGroup: "Year 13",
122
+ ukKeyStage: "Key Stage 5"
123
+ }
124
+ ], ye = [
125
+ { icon: "sparkles", color: "#336DDA", gradient: "linear-gradient(135deg, #3b82f6, #6366f1)" },
126
+ { icon: "heart", color: "#C54140", gradient: "linear-gradient(135deg, #f87171, #f43f5e)" },
127
+ { icon: "trending-up", color: "#FFB04F", gradient: "linear-gradient(135deg, #fb923c, #f59e0b)" },
128
+ { icon: "sparkles", color: "#73C8E5", gradient: "linear-gradient(135deg, #38bdf8, #3b82f6)" },
129
+ { icon: "heart", color: "#C54140", gradient: "gradient(135deg, #f472b6, #ef4444)" },
130
+ { icon: "trending-up", color: "#336DDA", gradient: "linear-gradient(135deg, #60a5fa, #4f46e5)" },
131
+ { icon: "trending-up", color: "#FFB04F", gradient: "linear-gradient(135deg, #fde047, #f97316)" },
132
+ { icon: "trophy", color: "#73C8E5", gradient: "linear-gradient(135deg, #38bdf8, #22d3ee)" }
133
+ ], xe = (t, o, a = 22) => {
134
+ const l = (o || "").toLowerCase();
135
+ return l === "yes" || l === "1" ? /* @__PURE__ */ e(fe, { size: a }) : l === "no" || l === "0" ? /* @__PURE__ */ e(ve, { size: a }) : !t || isNaN(t) ? null : t <= 20 ? /* @__PURE__ */ e(ve, { size: a }) : t <= 40 ? /* @__PURE__ */ e($e, { size: a }) : t <= 60 ? /* @__PURE__ */ e(He, { size: a }) : t <= 80 ? /* @__PURE__ */ e(We, { size: a }) : /* @__PURE__ */ e(fe, { size: a });
136
+ };
137
+ function ge(t, o) {
138
+ if (!t) return "";
139
+ const a = t.trim(), l = a.toLowerCase();
140
+ if (l === "k" || l === "kindergarten") {
141
+ const r = W.find((_) => _.usGrade.toLowerCase() === "kindergarten");
142
+ return r ? o ? `${r.ukYearGroup} / ${r.usGrade}` : `${r.usGrade} / ${r.ukYearGroup}` : "Kindergarten";
143
+ }
144
+ let i = W.find(
145
+ (r) => r.usGrade.toLowerCase() === l || r.ukYearGroup.toLowerCase() === l
146
+ );
147
+ !i && l.startsWith("grade ") && (i = W.find((r) => r.usGrade.toLowerCase() === l)), !i && l.startsWith("year ") && (i = W.find((r) => r.ukYearGroup.toLowerCase() === l));
148
+ const h = l.replace(/^grade\s+/i, "").replace(/^year\s+/i, "").trim();
149
+ return !i && /^\d+$/.test(h) && (o ? i = W.find((r) => r.ukYearGroup.toLowerCase().replace(/^year\s+/i, "").trim() === h) : i = W.find((r) => r.usGrade.toLowerCase().replace(/^grade\s+/i, "").trim() === h)), i ? o ? `${i.ukYearGroup} / ${i.usGrade}` : `${i.usGrade} / ${i.ukYearGroup}` : /^\d+$/.test(h) ? o ? `Year ${h} / Grade ${h}` : `Grade ${h} / Year ${h}` : a;
150
+ }
151
+ function Be(t) {
152
+ if (!t) return "S";
153
+ const o = t.trim().split(/\s+/);
154
+ return o.length === 1 ? o[0].slice(0, 2).toUpperCase() : (o[0][0] + o[o.length - 1][0]).toUpperCase();
155
+ }
156
+ function be(t) {
157
+ const o = Math.round((t || 0) * 60), a = Math.floor(o / 3600), l = Math.floor(o % 3600 / 60), i = o % 60, h = (r) => r.toString().padStart(2, "0");
158
+ return `${h(a)}:${h(l)}:${h(i)}`;
159
+ }
160
+ function Me(t) {
161
+ return !t || t.length === 0 ? [] : t.map((o) => ({
162
+ studentId: o.studentId || 0,
163
+ studentName: o.studentName || "",
164
+ studentAvatar: o.studentAvatar,
165
+ gradeLevel: o.gradeLevel || "",
166
+ isUnsafe: !!o.isUnsafe,
167
+ isHighStress: !!o.isHighStress,
168
+ lastInteractionDate: o.time,
169
+ sessionId: o.sessionId,
170
+ sessionResultId: o.sessionResultId
171
+ })).sort((o, a) => {
172
+ const l = o.lastInteractionDate ? new Date(o.lastInteractionDate).getTime() : 0;
173
+ return (a.lastInteractionDate ? new Date(a.lastInteractionDate).getTime() : 0) - l;
174
+ });
175
+ }
176
+ const ae = (t) => {
177
+ const o = t.nameQuestion || t.text || t.question || t.name || "", a = o.match(/<p[^>]*>(.*?)<\/p>/i);
178
+ let i = (a ? a[1] : o).replace(/<[^>]+>/g, "").trim();
179
+ return i === "School" ? i = "Safety at school" : i === "Home" ? i = "Safety at home" : i === "Online" && (i = "Safety online"), i;
180
+ }, de = (t) => {
181
+ const o = t.answer !== void 0 && t.answer !== null ? String(t.answer).trim() : "";
182
+ if (!o) return "";
183
+ if (isNaN(Number(o)))
184
+ return o;
185
+ const a = Number(o);
186
+ let l = t.questionAnswer || t.questionAnswers || [];
187
+ if (typeof l == "string")
188
+ try {
189
+ l = JSON.parse(l);
190
+ } catch {
191
+ l = [];
192
+ }
193
+ if (Array.isArray(l) && l.length > 0) {
194
+ if (Number.isInteger(a) && a >= 0 && a < l.length)
195
+ return l[a] || "";
196
+ if (Number.isInteger(a) && a >= 1 && a <= l.length && l[a - 1])
197
+ return l[a - 1];
198
+ if (ae(t).toLowerCase().includes("stress")) {
199
+ let m = 0;
200
+ return a < -60 ? m = 0 : a < -20 ? m = 1 : a < 20 ? m = 2 : a < 60 ? m = 3 : m = 4, l[m] || l[0] || "";
201
+ }
202
+ const h = Math.max(0, Math.min(100, a)), r = 100 / l.length;
203
+ let _ = Math.floor(h / r);
204
+ return _ = Math.min(_, l.length - 1), l[_] || "";
205
+ }
206
+ return "";
207
+ }, Re = (t, o = !1) => {
208
+ if (o) {
209
+ if (t <= -60 || t >= 60) return { bg: "rgba(196, 65, 64, 0.24)", color: "#C44140" };
210
+ if (t >= -60 && t < -20) return { bg: "rgba(169, 214, 96, 0.24)", color: "#5C8A18" };
211
+ if (t >= -20 && t < 20) return { bg: "rgba(15, 150, 85, 0.24)", color: "#0F9655" };
212
+ if (t >= 20 && t < 60) return { bg: "rgba(255, 208, 40, 0.24)", color: "#854d0e" };
213
+ }
214
+ const a = Math.max(0, Math.min(100, t));
215
+ return a < 20 ? { bg: "rgba(196, 65, 64, 0.24)", color: "#C44140" } : a < 40 ? { bg: "rgba(255, 176, 79, 0.24)", color: "#FFB04F" } : a < 60 ? { bg: "rgba(255, 208, 40, 0.24)", color: "#854d0e" } : a < 80 ? { bg: "rgba(169, 214, 96, 0.24)", color: "#5C8A18" } : { bg: "rgba(15, 150, 85, 0.24)", color: "#0F9655" };
216
+ }, ze = (t) => {
217
+ if (!t) return [];
218
+ const o = t?.resultTeacher?.questions || t?.teacherResult?.questions || [], a = o.find((h) => h.type === "LearningStrategy" || h.learningStrategyAnswers && h.learningStrategyAnswers.length > 0) || o[0] || t?.learningStrategyOptions, l = a?.answer || t?.resultTeacher?.answer || t?.teacherResult?.answer || "", i = a?.learningStrategyAnswers || t?.learningStrategyAnswers || [];
219
+ return l ? String(l).split(";").filter(Boolean).map((r) => {
220
+ const _ = r.split("|"), m = parseInt(_[0], 10);
221
+ if (!isNaN(m) && i && i.length > 0) {
222
+ const u = i.find((g) => Number(g.id) === m);
223
+ if (u && (u.text || u.name))
224
+ return (u.text || u.name).trim();
225
+ }
226
+ return _[1] && _[1].trim() !== "" && isNaN(Number(_[1].trim())) ? _[1].trim() : "";
227
+ }).filter(Boolean) : t?.agreedStrategies && Array.isArray(t.agreedStrategies) ? t.agreedStrategies : t?.previousOneToOneStrategyName ? t.previousOneToOneStrategyName.split(",").map((h) => h.trim()).filter(Boolean) : [];
228
+ }, Qe = (t) => {
229
+ if (!t || t.length === 0) return [];
230
+ const o = t.find((r) => {
231
+ const _ = ae(r).toLowerCase();
232
+ return _.includes("ready to learn") || _.includes("ready to do your best learning") || _.includes("are you ready");
233
+ }), a = o ? de(o).toLowerCase() : "", l = o?.answer !== void 0 && o?.answer !== null ? String(o.answer).trim().toLowerCase() : "", i = a === "yes" || l === "yes" || l === "1";
234
+ return t.filter((r) => {
235
+ if (r.type === "Summarize" || r.type === 20) return !1;
236
+ const _ = String(r.type || "").toLowerCase();
237
+ if (r.type === "TextInput" || r.type === "TextInputWithSuggestions" || r.type === 3 || r.type === 7 || _.includes("textinput"))
238
+ return !1;
239
+ const m = ae(r).toLowerCase(), u = m.includes("why") && (m.includes("not ready") || m.includes("ready"));
240
+ return i && u || u && !de(r) && (!r.answer || String(r.answer).trim() === "") ? !1 : !r.isReasonQuestion;
241
+ }).map((r) => {
242
+ const _ = ae(r) || "Indicator", m = Number(r.answer) || 0, u = _.toLowerCase().includes("stress"), g = de(r);
243
+ let { bg: w, color: c } = Re(m, u);
244
+ const v = r.type === "SingleChoice" || r.type === 2 || String(r.type).toLowerCase() === "singlechoice", S = String(r.answer || "").trim(), k = g.toLowerCase(), b = S.toLowerCase();
245
+ (v || k === "yes" || k === "no" || b === "yes" || b === "no") && (k === "yes" || b === "yes" || S === "1" ? (w = "rgba(15, 150, 85, 0.24)", c = "#0F9655") : (k === "no" || b === "no" || S === "0") && (w = "rgba(196, 65, 64, 0.24)", c = "#C44140"));
246
+ const y = r.percent ? `${r.percent}%` : m ? `${m}%` : "";
247
+ return {
248
+ name: _,
249
+ val: g,
250
+ num: v || k === "yes" || k === "no" || b === "yes" || b === "no" ? "" : y,
251
+ score: m,
252
+ bg: w,
253
+ color: c,
254
+ type: r.type,
255
+ group: r.group
256
+ };
257
+ });
258
+ }, Ce = (t) => !t || !Array.isArray(t) ? [] : t.map((o, a) => {
259
+ const l = ye[a % ye.length];
260
+ return {
261
+ id: `${(o.category || "").replace(/[^a-zA-Z0-9]/g, "_").toLowerCase()}_${a}`,
262
+ label: o.category,
263
+ ...l,
264
+ questions: o.questions || []
265
+ };
266
+ });
267
+ function pe(t, o, a, l, i, h, r) {
268
+ const _ = o || 0, m = a || l || 0;
269
+ if (i)
270
+ h ? h({ sessionId: _, sessionResultId: m }) : window.dispatchEvent(
271
+ new CustomEvent("OPEN_ES_IFRAME", {
272
+ detail: { sessionId: _, sessionResultId: m }
273
+ })
274
+ );
275
+ else {
276
+ const u = r ? `&actionBack=${r}` : "", g = `/view-session/${_}/${m}?isReadOnly=true${u}`;
277
+ t(g);
278
+ }
279
+ }
280
+ async function Ze(t, o, a) {
281
+ if (!t) return null;
282
+ try {
283
+ const l = await je(t, o);
284
+ if (l?.data)
285
+ return a && a(l.data), l.data;
286
+ } catch (l) {
287
+ console.error("Failed to fetch session detail for log modal", l);
288
+ }
289
+ return null;
290
+ }
291
+ function Xe(t = "BOTH") {
292
+ const o = X(), [a, l] = R(!0), [i, h] = R(!0), [r, _] = R(null), [m, u] = R(null), [g, w] = R(null), [c, v] = R([]), [S, k] = R([]), [b, y] = R("without"), [C, N] = R("US"), [x, E] = R(null), [B, F] = R(null), A = me(
293
+ (f, G, j, p, T) => {
294
+ pe(o, f, G, j, p, (I) => {
295
+ F(I);
296
+ }, T);
297
+ },
298
+ [o]
299
+ ), M = me(() => {
300
+ _(null), l(!0), h(!0), Ve().then((f) => {
301
+ u(f.data);
302
+ }).catch((f) => {
303
+ console.error("Failed to load init data:", f), _(f?.message || "Failed to load init data");
304
+ }).finally(() => {
305
+ l(!1);
306
+ }), Ke().then((f) => {
307
+ w(f.data);
308
+ }).catch((f) => {
309
+ console.error("Failed to load analytics data:", f), _(f?.message || "Failed to load analytics data");
310
+ }).finally(() => {
311
+ h(!1);
312
+ }), Promise.all([
313
+ we(!0).catch(() => null),
314
+ we(!1).catch(() => null)
315
+ ]).then(([f, G]) => {
316
+ f?.data && v(Ce(f.data)), G?.data && k(Ce(G.data));
317
+ });
318
+ }, []);
319
+ return se(() => {
320
+ M();
321
+ }, [M]), {
322
+ loading: a || i,
323
+ loadingInit: a,
324
+ loadingAnalytics: i,
325
+ error: r,
326
+ initData: m,
327
+ analyticsData: g,
328
+ caseMode: b,
329
+ setCaseMode: y,
330
+ curriculumSystem: C,
331
+ setCurriculumSystem: N,
332
+ flagModal: x,
333
+ setFlagModal: E,
334
+ schoolType: t,
335
+ refetch: M,
336
+ handleViewCheckIn: A,
337
+ esSessionIframe: B,
338
+ setEsSessionIframe: F,
339
+ conversationStartersEs: c,
340
+ conversationStartersMs: S
341
+ };
342
+ }
343
+ const Ne = ({
344
+ width: t = 17,
345
+ height: o = 17,
346
+ color: a = "#316CD9",
347
+ className: l
348
+ }) => /* @__PURE__ */ s(
349
+ "svg",
350
+ {
351
+ width: t,
352
+ height: o,
353
+ viewBox: "0 0 24 24",
354
+ fill: "none",
355
+ stroke: a,
356
+ strokeWidth: "2",
357
+ className: l,
358
+ children: [
359
+ /* @__PURE__ */ e("path", { d: "M9 18h6" }),
360
+ /* @__PURE__ */ e("path", { d: "M10 22h4" }),
361
+ /* @__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" })
362
+ ]
363
+ }
364
+ ), Ae = ({
365
+ fill: t = "#C44140",
366
+ width: o = 18,
367
+ height: a = 22,
368
+ className: l
369
+ }) => /* @__PURE__ */ e(
370
+ "svg",
371
+ {
372
+ width: o,
373
+ height: a,
374
+ viewBox: "0 0 25 32",
375
+ fill: "none",
376
+ xmlns: "http://www.w3.org/2000/svg",
377
+ className: l,
378
+ children: /* @__PURE__ */ e(
379
+ "path",
380
+ {
381
+ 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",
382
+ fill: t
383
+ }
384
+ )
385
+ }
386
+ ), he = ({
387
+ width: t = 16,
388
+ height: o = 16,
389
+ color: a = "currentColor",
390
+ className: l
391
+ }) => /* @__PURE__ */ s(
392
+ "svg",
393
+ {
394
+ width: t,
395
+ height: o,
396
+ viewBox: "0 0 24 24",
397
+ fill: "none",
398
+ stroke: a,
399
+ strokeWidth: "2",
400
+ className: l,
401
+ children: [
402
+ /* @__PURE__ */ e("line", { x1: "5", y1: "12", x2: "19", y2: "12" }),
403
+ /* @__PURE__ */ e("polyline", { points: "12 5 19 12 12 19" })
404
+ ]
405
+ }
406
+ ), Fe = ({
407
+ width: t = 22,
408
+ height: o = 22,
409
+ color: a = "#316CD9",
410
+ className: l
411
+ }) => /* @__PURE__ */ s(
412
+ "svg",
413
+ {
414
+ width: t,
415
+ height: o,
416
+ viewBox: "0 0 24 24",
417
+ fill: "none",
418
+ stroke: a,
419
+ strokeWidth: "2",
420
+ className: l,
421
+ children: [
422
+ /* @__PURE__ */ e("path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" }),
423
+ /* @__PURE__ */ e("circle", { cx: "12", cy: "7", r: "4" })
424
+ ]
425
+ }
426
+ ), Je = ({
427
+ width: t = 18,
428
+ height: o = 18,
429
+ color: a = "rgba(36,36,36,0.56)",
430
+ className: l
431
+ }) => /* @__PURE__ */ s(
432
+ "svg",
433
+ {
434
+ width: t,
435
+ height: o,
436
+ viewBox: "0 0 24 24",
437
+ fill: "none",
438
+ stroke: a,
439
+ strokeWidth: "2",
440
+ className: l,
441
+ children: [
442
+ /* @__PURE__ */ e("circle", { cx: "11", cy: "11", r: "8" }),
443
+ /* @__PURE__ */ e("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" })
444
+ ]
445
+ }
446
+ ), qe = ({
447
+ width: t = 17,
448
+ height: o = 17,
449
+ color: a = "currentColor",
450
+ className: l
451
+ }) => /* @__PURE__ */ s(
452
+ "svg",
453
+ {
454
+ width: t,
455
+ height: o,
456
+ viewBox: "0 0 24 24",
457
+ fill: "none",
458
+ stroke: a,
459
+ strokeWidth: "2",
460
+ className: l,
461
+ children: [
462
+ /* @__PURE__ */ e("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }),
463
+ /* @__PURE__ */ e("polyline", { points: "15 3 21 3 21 9" }),
464
+ /* @__PURE__ */ e("line", { x1: "10", y1: "14", x2: "21", y2: "3" })
465
+ ]
466
+ }
467
+ ), et = ({
468
+ direction: t = "up",
469
+ width: o = 16,
470
+ height: a = 16,
471
+ color: l,
472
+ className: i
473
+ }) => {
474
+ const h = t === "up";
475
+ return /* @__PURE__ */ e(
476
+ "svg",
477
+ {
478
+ width: o,
479
+ height: a,
480
+ viewBox: "0 0 24 24",
481
+ fill: "none",
482
+ stroke: l || (h ? "#0F9655" : "#C44140"),
483
+ strokeWidth: "2.5",
484
+ strokeLinecap: "round",
485
+ strokeLinejoin: "round",
486
+ className: i,
487
+ children: h ? /* @__PURE__ */ s($, { children: [
488
+ /* @__PURE__ */ e("polyline", { points: "23 6 13.5 15.5 8.5 10.5 1 18" }),
489
+ /* @__PURE__ */ e("polyline", { points: "17 6 23 6 23 12" })
490
+ ] }) : /* @__PURE__ */ s($, { children: [
491
+ /* @__PURE__ */ e("polyline", { points: "23 18 13.5 8.5 8.5 13.5 1 6" }),
492
+ /* @__PURE__ */ e("polyline", { points: "17 18 23 18 23 12" })
493
+ ] })
494
+ }
495
+ );
496
+ }, tt = ({
497
+ width: t = 28,
498
+ height: o = 28,
499
+ color: a = "#ffffff",
500
+ className: l
501
+ }) => /* @__PURE__ */ s(
502
+ "svg",
503
+ {
504
+ width: t,
505
+ height: o,
506
+ viewBox: "0 0 24 24",
507
+ fill: "none",
508
+ stroke: a,
509
+ strokeWidth: "2",
510
+ className: l,
511
+ children: [
512
+ /* @__PURE__ */ e("path", { d: "M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" }),
513
+ /* @__PURE__ */ e("circle", { cx: "9", cy: "7", r: "4" }),
514
+ /* @__PURE__ */ e("path", { d: "M23 21v-2a4 4 0 0 0-3-3.87" }),
515
+ /* @__PURE__ */ e("path", { d: "M16 3.13a4 4 0 0 1 0 7.75" })
516
+ ]
517
+ }
518
+ ), nt = ({
519
+ width: t = 18,
520
+ height: o = 18,
521
+ color: a = "#D3D3D3",
522
+ className: l
523
+ }) => /* @__PURE__ */ s(
524
+ "svg",
525
+ {
526
+ xmlns: "http://www.w3.org/2000/svg",
527
+ width: t,
528
+ height: o,
529
+ viewBox: "0 0 24 24",
530
+ fill: "none",
531
+ stroke: a,
532
+ strokeWidth: "2",
533
+ strokeLinecap: "round",
534
+ strokeLinejoin: "round",
535
+ className: l,
536
+ children: [
537
+ /* @__PURE__ */ e("rect", { width: "8", height: "4", x: "8", y: "2", rx: "1", ry: "1" }),
538
+ /* @__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" }),
539
+ /* @__PURE__ */ e("path", { d: "m9 14 2 2 4-4" })
540
+ ]
541
+ }
542
+ ), at = ({
543
+ width: t = 18,
544
+ height: o = 18,
545
+ color: a = "#D3D3D3",
546
+ className: l
547
+ }) => /* @__PURE__ */ s(
548
+ "svg",
549
+ {
550
+ xmlns: "http://www.w3.org/2000/svg",
551
+ width: t,
552
+ height: o,
553
+ viewBox: "0 0 24 24",
554
+ fill: "none",
555
+ stroke: a,
556
+ strokeWidth: "2",
557
+ strokeLinecap: "round",
558
+ strokeLinejoin: "round",
559
+ className: l,
560
+ children: [
561
+ /* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "10" }),
562
+ /* @__PURE__ */ e("path", { d: "M12 6v6l4 2" })
563
+ ]
564
+ }
565
+ ), st = ({
566
+ width: t = 18,
567
+ height: o = 18,
568
+ color: a = "#D3D3D3",
569
+ className: l
570
+ }) => /* @__PURE__ */ e(
571
+ "svg",
572
+ {
573
+ xmlns: "http://www.w3.org/2000/svg",
574
+ width: t,
575
+ height: o,
576
+ viewBox: "0 0 24 24",
577
+ fill: "none",
578
+ stroke: a,
579
+ strokeWidth: "2",
580
+ strokeLinecap: "round",
581
+ strokeLinejoin: "round",
582
+ className: l,
583
+ 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" })
584
+ }
585
+ ), Ge = ({
586
+ width: t = 18,
587
+ height: o = 18,
588
+ color: a = "rgba(36,36,36,0.56)",
589
+ className: l
590
+ }) => /* @__PURE__ */ s(
591
+ "svg",
592
+ {
593
+ width: t,
594
+ height: o,
595
+ viewBox: "0 0 24 24",
596
+ fill: "none",
597
+ stroke: a,
598
+ strokeWidth: "2",
599
+ className: l,
600
+ children: [
601
+ /* @__PURE__ */ e("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
602
+ /* @__PURE__ */ e("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
603
+ ]
604
+ }
605
+ ), ot = ({
606
+ width: t = 12,
607
+ height: o = 12,
608
+ color: a = "rgba(36,36,36,0.56)",
609
+ className: l
610
+ }) => /* @__PURE__ */ s(
611
+ "svg",
612
+ {
613
+ xmlns: "http://www.w3.org/2000/svg",
614
+ width: t,
615
+ height: o,
616
+ viewBox: "0 0 24 24",
617
+ fill: "none",
618
+ stroke: a,
619
+ strokeWidth: "2",
620
+ strokeLinecap: "round",
621
+ strokeLinejoin: "round",
622
+ className: l,
623
+ children: [
624
+ /* @__PURE__ */ e("path", { d: "M8 2v4" }),
625
+ /* @__PURE__ */ e("path", { d: "M16 2v4" }),
626
+ /* @__PURE__ */ e("rect", { width: "18", height: "18", x: "3", y: "4", rx: "2" }),
627
+ /* @__PURE__ */ e("path", { d: "M3 10h18" })
628
+ ]
629
+ }
630
+ ), lt = ({
631
+ width: t = 13,
632
+ height: o = 13,
633
+ color: a = "#0F9655",
634
+ className: l
635
+ }) => /* @__PURE__ */ s(
636
+ "svg",
637
+ {
638
+ xmlns: "http://www.w3.org/2000/svg",
639
+ width: t,
640
+ height: o,
641
+ viewBox: "0 0 24 24",
642
+ fill: "none",
643
+ stroke: a,
644
+ strokeWidth: "2",
645
+ strokeLinecap: "round",
646
+ strokeLinejoin: "round",
647
+ className: l,
648
+ children: [
649
+ /* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "10" }),
650
+ /* @__PURE__ */ e("path", { d: "m9 12 2 2 4-4" })
651
+ ]
652
+ }
653
+ ), rt = ({
654
+ width: t = 13,
655
+ height: o = 13,
656
+ color: a = "rgba(36,36,36,0.56)",
657
+ className: l
658
+ }) => /* @__PURE__ */ s(
659
+ "svg",
660
+ {
661
+ xmlns: "http://www.w3.org/2000/svg",
662
+ width: t,
663
+ height: o,
664
+ viewBox: "0 0 24 24",
665
+ fill: "none",
666
+ stroke: a,
667
+ strokeWidth: "2",
668
+ strokeLinecap: "round",
669
+ strokeLinejoin: "round",
670
+ className: l,
671
+ children: [
672
+ /* @__PURE__ */ e("path", { d: "M10.1 2.182a10 10 0 0 1 3.8 0" }),
673
+ /* @__PURE__ */ e("path", { d: "M13.9 21.818a10 10 0 0 1-3.8 0" }),
674
+ /* @__PURE__ */ e("path", { d: "M17.609 3.721a10 10 0 0 1 2.69 2.7" }),
675
+ /* @__PURE__ */ e("path", { d: "M2.182 13.9a10 10 0 0 1 0-3.8" }),
676
+ /* @__PURE__ */ e("path", { d: "M20.279 17.609a10 10 0 0 1-2.7 2.69" }),
677
+ /* @__PURE__ */ e("path", { d: "M21.818 10.1a10 10 0 0 1 0 3.8" }),
678
+ /* @__PURE__ */ e("path", { d: "M3.721 6.391a10 10 0 0 1 2.7-2.69" }),
679
+ /* @__PURE__ */ e("path", { d: "M6.391 20.279a10 10 0 0 1-2.69-2.7" })
680
+ ]
681
+ }
682
+ ), Ee = ({
683
+ width: t = 15,
684
+ height: o = 15,
685
+ color: a = "currentColor",
686
+ className: l
687
+ }) => /* @__PURE__ */ s(
688
+ "svg",
689
+ {
690
+ xmlns: "http://www.w3.org/2000/svg",
691
+ width: t,
692
+ height: o,
693
+ viewBox: "0 0 24 24",
694
+ fill: "none",
695
+ stroke: a,
696
+ strokeWidth: "2",
697
+ strokeLinecap: "round",
698
+ strokeLinejoin: "round",
699
+ className: l,
700
+ children: [
701
+ /* @__PURE__ */ e("rect", { width: "8", height: "4", x: "8", y: "2", rx: "1", ry: "1" }),
702
+ /* @__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" }),
703
+ /* @__PURE__ */ e("path", { d: "M12 11h4" }),
704
+ /* @__PURE__ */ e("path", { d: "M12 16h4" }),
705
+ /* @__PURE__ */ e("path", { d: "M8 11h.01" }),
706
+ /* @__PURE__ */ e("path", { d: "M8 16h.01" })
707
+ ]
708
+ }
709
+ ), it = ({
710
+ width: t = 15,
711
+ height: o = 15,
712
+ color: a = "currentColor",
713
+ className: l
714
+ }) => /* @__PURE__ */ s(
715
+ "svg",
716
+ {
717
+ xmlns: "http://www.w3.org/2000/svg",
718
+ width: t,
719
+ height: o,
720
+ viewBox: "0 0 24 24",
721
+ fill: "none",
722
+ stroke: a,
723
+ strokeWidth: "2",
724
+ strokeLinecap: "round",
725
+ strokeLinejoin: "round",
726
+ className: l,
727
+ children: [
728
+ /* @__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" }),
729
+ /* @__PURE__ */ e("path", { d: "M2 6h4" }),
730
+ /* @__PURE__ */ e("path", { d: "M2 10h4" }),
731
+ /* @__PURE__ */ e("path", { d: "M2 14h4" }),
732
+ /* @__PURE__ */ e("path", { d: "M2 18h4" }),
733
+ /* @__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" })
734
+ ]
735
+ }
736
+ ), Q = ({ color: t = "#0F9655", width: o = 8, height: a = 9 }) => /* @__PURE__ */ e("svg", { width: o, height: a, 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 }) }), ke = ({ color: t = "#C44140", width: o = 8, height: a = 9 }) => /* @__PURE__ */ e("svg", { width: o, height: a, 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 }) }), dt = ({
737
+ width: t = 17,
738
+ height: o = 17,
739
+ color: a = "#316CD9",
740
+ className: l
741
+ }) => /* @__PURE__ */ s(
742
+ "svg",
743
+ {
744
+ width: t,
745
+ height: o,
746
+ viewBox: "0 0 24 24",
747
+ fill: "none",
748
+ stroke: a,
749
+ strokeWidth: "2",
750
+ strokeLinecap: "round",
751
+ strokeLinejoin: "round",
752
+ className: l,
753
+ children: [
754
+ /* @__PURE__ */ e("path", { d: "M3 3v18h18" }),
755
+ /* @__PURE__ */ e("path", { d: "M18 17V9" }),
756
+ /* @__PURE__ */ e("path", { d: "M13 17V5" }),
757
+ /* @__PURE__ */ e("path", { d: "M8 17v-3" })
758
+ ]
759
+ }
760
+ ), ct = ({
761
+ width: t = 18,
762
+ height: o = 18,
763
+ color: a = "#316CD9",
764
+ className: l
765
+ }) => /* @__PURE__ */ s(
766
+ "svg",
767
+ {
768
+ width: t,
769
+ height: o,
770
+ viewBox: "0 0 24 24",
771
+ fill: "none",
772
+ stroke: a,
773
+ strokeWidth: "2",
774
+ strokeLinecap: "round",
775
+ strokeLinejoin: "round",
776
+ className: l,
777
+ children: [
778
+ /* @__PURE__ */ e("path", { d: "M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" }),
779
+ /* @__PURE__ */ e("polyline", { points: "9 22 9 12 15 12 15 22" })
780
+ ]
781
+ }
782
+ ), ht = ({
783
+ width: t = 18,
784
+ height: o = 18,
785
+ color: a = "#316CD9",
786
+ className: l
787
+ }) => /* @__PURE__ */ s(
788
+ "svg",
789
+ {
790
+ width: t,
791
+ height: o,
792
+ viewBox: "0 0 24 24",
793
+ fill: "none",
794
+ stroke: a,
795
+ strokeWidth: "2",
796
+ strokeLinecap: "round",
797
+ strokeLinejoin: "round",
798
+ className: l,
799
+ children: [
800
+ /* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "10" }),
801
+ /* @__PURE__ */ e("line", { x1: "2", y1: "12", x2: "22", y2: "12" }),
802
+ /* @__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" })
803
+ ]
804
+ }
805
+ ), _t = ({
806
+ width: t = 18,
807
+ height: o = 18,
808
+ color: a = "#316CD9",
809
+ className: l
810
+ }) => /* @__PURE__ */ s(
811
+ "svg",
812
+ {
813
+ width: t,
814
+ height: o,
815
+ viewBox: "0 0 24 24",
816
+ fill: "none",
817
+ stroke: a,
818
+ strokeWidth: "2",
819
+ strokeLinecap: "round",
820
+ strokeLinejoin: "round",
821
+ className: l,
822
+ children: [
823
+ /* @__PURE__ */ e("path", { d: "M14 22v-4a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v4" }),
824
+ /* @__PURE__ */ e("path", { d: "M18 22V6l-6-4-6 4v16" }),
825
+ /* @__PURE__ */ e("path", { d: "M6 12h12" }),
826
+ /* @__PURE__ */ e("path", { d: "M6 16h12" }),
827
+ /* @__PURE__ */ e("circle", { cx: "12", cy: "6", r: "1", fill: a })
828
+ ]
829
+ }
830
+ ), ut = ({
831
+ width: t = 14,
832
+ height: o = 14,
833
+ color: a = "#C44140",
834
+ className: l
835
+ }) => /* @__PURE__ */ e(
836
+ "svg",
837
+ {
838
+ width: t,
839
+ height: o,
840
+ viewBox: "0 0 24 24",
841
+ fill: "none",
842
+ stroke: a,
843
+ strokeWidth: "2",
844
+ strokeLinecap: "round",
845
+ strokeLinejoin: "round",
846
+ className: l,
847
+ children: /* @__PURE__ */ e("path", { d: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" })
848
+ }
849
+ ), Oe = ({
850
+ width: t = 14,
851
+ height: o = 14,
852
+ color: a = "#B46A00",
853
+ className: l
854
+ }) => /* @__PURE__ */ e(
855
+ "svg",
856
+ {
857
+ width: t,
858
+ height: o,
859
+ viewBox: "0 0 24 24",
860
+ fill: "none",
861
+ stroke: a,
862
+ strokeWidth: "2",
863
+ strokeLinecap: "round",
864
+ strokeLinejoin: "round",
865
+ className: l,
866
+ children: /* @__PURE__ */ e("polyline", { points: "22 12 18 12 15 21 9 3 6 12 2 12" })
867
+ }
868
+ ), gt = ({
869
+ width: t = 17,
870
+ height: o = 17,
871
+ color: a = "#C44140",
872
+ className: l
873
+ }) => /* @__PURE__ */ s(
874
+ "svg",
875
+ {
876
+ width: t,
877
+ height: o,
878
+ viewBox: "0 0 24 24",
879
+ fill: "none",
880
+ stroke: a,
881
+ strokeWidth: "2",
882
+ strokeLinecap: "round",
883
+ strokeLinejoin: "round",
884
+ className: l,
885
+ children: [
886
+ /* @__PURE__ */ e("path", { d: "M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" }),
887
+ /* @__PURE__ */ e("circle", { cx: "9", cy: "7", r: "4" }),
888
+ /* @__PURE__ */ e("path", { d: "M23 21v-2a4 4 0 0 0-3-3.87" }),
889
+ /* @__PURE__ */ e("path", { d: "M16 3.13a4 4 0 0 1 0 7.75" })
890
+ ]
891
+ }
892
+ ), pt = ({
893
+ width: t = 16,
894
+ height: o = 16,
895
+ color: a = "#316CD9",
896
+ className: l
897
+ }) => /* @__PURE__ */ s(
898
+ "svg",
899
+ {
900
+ width: t,
901
+ height: o,
902
+ viewBox: "0 0 24 24",
903
+ fill: "none",
904
+ stroke: a,
905
+ strokeWidth: "2",
906
+ strokeLinecap: "round",
907
+ strokeLinejoin: "round",
908
+ className: l,
909
+ children: [
910
+ /* @__PURE__ */ e("line", { x1: "19", y1: "12", x2: "5", y2: "12" }),
911
+ /* @__PURE__ */ e("polyline", { points: "12 19 5 12 12 5" })
912
+ ]
913
+ }
914
+ ), mt = "_overviewContainer_193p5_3", ft = "_mainContent_193p5_13", vt = "_maxWidthWrapper_193p5_19", wt = "_headerRow_193p5_24", yt = "_mainTitle_193p5_33", bt = "_subTitle_193p5_42", Ct = "_layoutGrid_193p5_50", Nt = "_leftColumn_193p5_63", kt = "_rightColumn_193p5_76", Tt = "_statCardGrid_193p5_86", St = "_statCard_193p5_86", It = "_statCardHeader_193p5_115", Lt = "_iconBadge_193p5_122", xt = "_iconBadgeRed_193p5_131", Bt = "_iconBadgeYellow_193p5_135", Mt = "_statCardLabel_193p5_139", Rt = "_statCardBody_193p5_148", At = "_statCardValue_193p5_156", Ft = "_statCardFooter_193p5_164", Gt = "_lookupCard_193p5_175", Et = "_lookupTitleGroup_193p5_186", Ot = "_lookupIconBadge_193p5_194", Pt = "_lookupHeading_193p5_204", Dt = "_lookupSubText_193p5_213", $t = "_lookupSearchGroup_193p5_219", Ht = "_searchInputWrapper_193p5_228", Wt = "_searchInput_193p5_228", Yt = "_autocompleteMenu_193p5_255", Ut = "_autocompleteItem_193p5_269", Vt = "_viewProfileBtn_193p5_279", Kt = "_wellnessCard_193p5_297", jt = "_wellnessHeader_193p5_304", zt = "_wellnessTitle_193p5_313", Qt = "_wellnessSubtitle_193p5_322", Zt = "_phaseTabContainer_193p5_329", Xt = "_phaseTabs_193p5_330", Jt = "_phaseTabBtn_193p5_338", qt = "_phaseTabBtnActive_193p5_350", en = "_wellnessGrid_193p5_356", tn = "_wellnessGridEs_193p5_369", nn = "_wellnessRow_193p5_374", an = "_wellnessIconImg_193p5_382", sn = "_wellnessIconBadge_193p5_389", on = "_wellnessRowLabel_193p5_399", ln = "_wellnessRowLabelMs_193p5_405", rn = "_wellnessRowLabelEs_193p5_413", dn = "_wellnessPill_193p5_417", cn = "_wellnessPillDivider_193p5_429", hn = "_wellnessPillPct_193p5_435", _n = "_wellnessRowPct_193p5_439", un = "_wellnessRowRight_193p5_446", gn = "_viewDashBtn_193p5_453", pn = "_seeUnhealthyBtn_193p5_469", mn = "_unsafeBadge_193p5_490", fn = "_highStressBadge_193p5_502", vn = "_usagePanel_193p5_515", wn = "_usageHeader_193p5_522", yn = "_usageIconCircle_193p5_530", bn = "_schoolLogoImg_193p5_541", Cn = "_schoolBadgeName_193p5_548", Nn = "_usageTitle_193p5_556", kn = "_usageDivider_193p5_564", Tn = "_usageTilesList_193p5_570", Sn = "_usageTile_193p5_570", In = "_usageTileHeader_193p5_583", Ln = "_usageTileLabel_193p5_590", xn = "_usageProgressBarTrack_193p5_598", Bn = "_usageProgressBarFill_193p5_606", Mn = "_usageProgressBarFillGreen_193p5_612", Rn = "_usageTileValue_193p5_618", An = "_usageTileSubText_193p5_626", Fn = "_deltaUp_193p5_633", Gn = "_deltaDown_193p5_638", En = "_campusCard_193p5_644", On = "_campusHeader_193p5_652", Pn = "_campusTitle_193p5_661", Dn = "_campusSubText_193p5_669", $n = "_sysToggleGroup_193p5_674", Hn = "_sysToggleLabel_193p5_680", Wn = "_tableWrapper_193p5_686", Yn = "_overviewTable_193p5_692", Un = "_totalsRow_193p5_725", Vn = "_dashMuted_193p5_733", Kn = "_redFlagText_193p5_738", jn = "_yellowFlagText_193p5_743", zn = "_helpPopoverWrapper_193p5_749", Qn = "_infoHelpBtn_193p5_754", Zn = "_popoverBackdrop_193p5_773", Xn = "_referencePopover_193p5_782", Jn = "_refTitle_193p5_806", qn = "_refSubText_193p5_814", ea = "_refTableWrapper_193p5_821", ta = "_refTable_193p5_821", na = "_usStageTd_193p5_852", aa = "_adminTipsWrapper_193p5_858", sa = "_adminTipsBtn_193p5_865", oa = "_adminTipsPopover_193p5_879", la = "_popoverArrow_193p5_892", ra = "_popoverHeaderRow_193p5_910", ia = "_popoverIconCircle_193p5_917", da = "_popoverHeaderTitle_193p5_926", ca = "_tipSectionDivider_193p5_933", ha = "_tipItem_193p5_940", _a = "_tipNumber_193p5_947", ua = "_tipText_193p5_961", ga = "_dialogContentZero_193p5_972", pa = "_studentAvatarRed_193p5_976", ma = "_studentAvatarYellow_193p5_981", fa = "_studentInfoCol_193p5_986", va = "_modalHeader_193p5_991", wa = "_modalTitle_193p5_999", ya = "_modalSubtitle_193p5_1007", ba = "_modalCloseBtn_193p5_1013", Ca = "_modalStudentList_193p5_1025", Na = "_studentRow_193p5_1031", ka = "_studentAvatar_193p5_976", Ta = "_studentName_193p5_1053", Sa = "_studentGrade_193p5_1059", Ia = "_studentMetaRow_193p5_1065", La = "_dateLabel_193p5_1073", xa = "_loggedPill_193p5_1081", Ba = "_notLoggedPill_193p5_1093", Ma = "_modalActionButtons_193p5_1105", Ra = "_btnViewCheckIn_193p5_1112", Aa = "_btnViewLogActive_193p5_1126", Fa = "_btnViewLogDisabled_193p5_1140", n = {
915
+ overviewContainer: mt,
916
+ mainContent: ft,
917
+ maxWidthWrapper: vt,
918
+ headerRow: wt,
919
+ mainTitle: yt,
920
+ subTitle: bt,
921
+ layoutGrid: Ct,
922
+ leftColumn: Nt,
923
+ rightColumn: kt,
924
+ statCardGrid: Tt,
925
+ statCard: St,
926
+ statCardHeader: It,
927
+ iconBadge: Lt,
928
+ iconBadgeRed: xt,
929
+ iconBadgeYellow: Bt,
930
+ statCardLabel: Mt,
931
+ statCardBody: Rt,
932
+ statCardValue: At,
933
+ statCardFooter: Ft,
934
+ lookupCard: Gt,
935
+ lookupTitleGroup: Et,
936
+ lookupIconBadge: Ot,
937
+ lookupHeading: Pt,
938
+ lookupSubText: Dt,
939
+ lookupSearchGroup: $t,
940
+ searchInputWrapper: Ht,
941
+ searchInput: Wt,
942
+ autocompleteMenu: Yt,
943
+ autocompleteItem: Ut,
944
+ viewProfileBtn: Vt,
945
+ wellnessCard: Kt,
946
+ wellnessHeader: jt,
947
+ wellnessTitle: zt,
948
+ wellnessSubtitle: Qt,
949
+ phaseTabContainer: Zt,
950
+ phaseTabs: Xt,
951
+ phaseTabBtn: Jt,
952
+ phaseTabBtnActive: qt,
953
+ wellnessGrid: en,
954
+ wellnessGridEs: tn,
955
+ wellnessRow: nn,
956
+ wellnessIconImg: an,
957
+ wellnessIconBadge: sn,
958
+ wellnessRowLabel: on,
959
+ wellnessRowLabelMs: ln,
960
+ wellnessRowLabelEs: rn,
961
+ wellnessPill: dn,
962
+ wellnessPillDivider: cn,
963
+ wellnessPillPct: hn,
964
+ wellnessRowPct: _n,
965
+ wellnessRowRight: un,
966
+ viewDashBtn: gn,
967
+ seeUnhealthyBtn: pn,
968
+ unsafeBadge: mn,
969
+ highStressBadge: fn,
970
+ usagePanel: vn,
971
+ usageHeader: wn,
972
+ usageIconCircle: yn,
973
+ schoolLogoImg: bn,
974
+ schoolBadgeName: Cn,
975
+ usageTitle: Nn,
976
+ usageDivider: kn,
977
+ usageTilesList: Tn,
978
+ usageTile: Sn,
979
+ usageTileHeader: In,
980
+ usageTileLabel: Ln,
981
+ usageProgressBarTrack: xn,
982
+ usageProgressBarFill: Bn,
983
+ usageProgressBarFillGreen: Mn,
984
+ usageTileValue: Rn,
985
+ usageTileSubText: An,
986
+ deltaUp: Fn,
987
+ deltaDown: Gn,
988
+ campusCard: En,
989
+ campusHeader: On,
990
+ campusTitle: Pn,
991
+ campusSubText: Dn,
992
+ sysToggleGroup: $n,
993
+ sysToggleLabel: Hn,
994
+ tableWrapper: Wn,
995
+ overviewTable: Yn,
996
+ totalsRow: Un,
997
+ dashMuted: Vn,
998
+ redFlagText: Kn,
999
+ yellowFlagText: jn,
1000
+ helpPopoverWrapper: zn,
1001
+ infoHelpBtn: Qn,
1002
+ popoverBackdrop: Zn,
1003
+ referencePopover: Xn,
1004
+ refTitle: Jn,
1005
+ refSubText: qn,
1006
+ refTableWrapper: ea,
1007
+ refTable: ta,
1008
+ usStageTd: na,
1009
+ adminTipsWrapper: aa,
1010
+ adminTipsBtn: sa,
1011
+ adminTipsPopover: oa,
1012
+ popoverArrow: la,
1013
+ popoverHeaderRow: ra,
1014
+ popoverIconCircle: ia,
1015
+ popoverHeaderTitle: da,
1016
+ tipSectionDivider: ca,
1017
+ tipItem: ha,
1018
+ tipNumber: _a,
1019
+ tipText: ua,
1020
+ dialogContentZero: ga,
1021
+ studentAvatarRed: pa,
1022
+ studentAvatarYellow: ma,
1023
+ studentInfoCol: fa,
1024
+ modalHeader: va,
1025
+ modalTitle: wa,
1026
+ modalSubtitle: ya,
1027
+ modalCloseBtn: ba,
1028
+ modalStudentList: Ca,
1029
+ studentRow: Na,
1030
+ studentAvatar: ka,
1031
+ studentName: Ta,
1032
+ studentGrade: Sa,
1033
+ studentMetaRow: Ia,
1034
+ dateLabel: La,
1035
+ loggedPill: xa,
1036
+ notLoggedPill: Ba,
1037
+ modalActionButtons: Ma,
1038
+ btnViewCheckIn: Ra,
1039
+ btnViewLogActive: Aa,
1040
+ btnViewLogDisabled: Fa
1041
+ }, Te = ({ kind: t, label: o, value: a, onOpen: l }) => {
1042
+ const { t: i } = D(), h = t === "red", r = h ? "#C44140" : "#F5D500", _ = h ? n.iconBadgeRed : n.iconBadgeYellow, m = i(h ? "see_all_red_flags" : "see_all_yellow_flags");
1043
+ return /* @__PURE__ */ s("div", { className: n.statCard, onClick: l, children: [
1044
+ /* @__PURE__ */ s("div", { className: n.statCardHeader, children: [
1045
+ /* @__PURE__ */ e("div", { className: `${n.iconBadge} ${_}`, children: /* @__PURE__ */ e(Ae, { fill: r, width: 18, height: 22 }) }),
1046
+ /* @__PURE__ */ e("span", { className: n.statCardLabel, children: o })
1047
+ ] }),
1048
+ /* @__PURE__ */ e("div", { className: n.statCardBody, children: /* @__PURE__ */ e("span", { className: n.statCardValue, children: a }) }),
1049
+ /* @__PURE__ */ s("div", { className: n.statCardFooter, children: [
1050
+ /* @__PURE__ */ e("span", { children: m }),
1051
+ /* @__PURE__ */ e(he, { width: 16, height: 16 })
1052
+ ] })
1053
+ ] });
1054
+ }, Ga = ({ students: t = [], onSelectStudent: o }) => {
1055
+ const { t: a } = D(), l = X(), [i, h] = R(""), [r, _] = R(!1), [m, u] = R(null), g = i.trim() ? t.filter((v) => v.fullName.toLowerCase().includes(i.toLowerCase())) : [], w = (v) => {
1056
+ h(v.fullName), u(v), _(!1), o && o(v);
1057
+ }, c = () => {
1058
+ const v = m || t.find((S) => S.fullName.toLowerCase() === i.trim().toLowerCase()) || g[0];
1059
+ v && l(`/student-detail/overview/${v?.id}?isReadOnly=true`);
1060
+ };
1061
+ return /* @__PURE__ */ s("div", { className: n.lookupCard, children: [
1062
+ /* @__PURE__ */ s("div", { className: n.lookupTitleGroup, children: [
1063
+ /* @__PURE__ */ e("div", { className: n.lookupIconBadge, children: /* @__PURE__ */ e(Fe, { width: 22, height: 22, color: "#316CD9" }) }),
1064
+ /* @__PURE__ */ s("div", { children: [
1065
+ /* @__PURE__ */ e("h2", { className: n.lookupHeading, children: a("student_lookup") }),
1066
+ /* @__PURE__ */ e("p", { className: n.lookupSubText, children: a("search_and_view_any_student_profile") })
1067
+ ] })
1068
+ ] }),
1069
+ /* @__PURE__ */ s("div", { className: n.lookupSearchGroup, children: [
1070
+ /* @__PURE__ */ s("div", { className: n.searchInputWrapper, children: [
1071
+ /* @__PURE__ */ e(Je, { width: 18, height: 18, color: "rgba(36,36,36,0.56)" }),
1072
+ /* @__PURE__ */ e(
1073
+ "input",
1074
+ {
1075
+ type: "text",
1076
+ className: n.searchInput,
1077
+ value: i,
1078
+ onChange: (v) => {
1079
+ h(v.target.value), u(null), _(!0);
1080
+ },
1081
+ onFocus: () => _(!0),
1082
+ placeholder: a("search_by_student_name")
1083
+ }
1084
+ )
1085
+ ] }),
1086
+ r && g.length > 0 && /* @__PURE__ */ e("div", { className: n.autocompleteMenu, children: g.map((v) => /* @__PURE__ */ s(
1087
+ "div",
1088
+ {
1089
+ className: n.autocompleteItem,
1090
+ onClick: () => w(v),
1091
+ children: [
1092
+ v.fullName,
1093
+ " (",
1094
+ `Grade ${v.gradeLevel || "——"}`,
1095
+ ")"
1096
+ ]
1097
+ },
1098
+ v.id
1099
+ )) }),
1100
+ /* @__PURE__ */ s(
1101
+ "button",
1102
+ {
1103
+ type: "button",
1104
+ className: n.viewProfileBtn,
1105
+ onClick: c,
1106
+ children: [
1107
+ /* @__PURE__ */ e(qe, { width: 17, height: 17 }),
1108
+ /* @__PURE__ */ e("span", { children: a("view_profile") })
1109
+ ]
1110
+ }
1111
+ )
1112
+ ] })
1113
+ ] });
1114
+ }, Ea = "/images/image-default.png", Oa = ({
1115
+ open: t,
1116
+ onClose: o,
1117
+ students: a,
1118
+ curriculumSystem: l = "US",
1119
+ isEs: i = !1
1120
+ }) => {
1121
+ const h = X(), { t: r } = D(), _ = Me(a), m = r("unsafe_and_stressed_students"), u = `${_.length} ${r("students_flagged_for_safety_or_stress")}`;
1122
+ return /* @__PURE__ */ s(
1123
+ _e,
1124
+ {
1125
+ open: t,
1126
+ onClose: o,
1127
+ maxWidth: "md",
1128
+ fullWidth: !0,
1129
+ PaperProps: {
1130
+ style: {
1131
+ borderRadius: 20,
1132
+ boxShadow: "0 20px 60px rgba(31, 63, 115, 0.3)",
1133
+ overflow: "hidden"
1134
+ }
1135
+ },
1136
+ children: [
1137
+ /* @__PURE__ */ s("div", { className: n.modalHeader, children: [
1138
+ /* @__PURE__ */ s("div", { children: [
1139
+ /* @__PURE__ */ e("h2", { className: n.modalTitle, children: m }),
1140
+ /* @__PURE__ */ e("p", { className: n.modalSubtitle, children: u })
1141
+ ] }),
1142
+ /* @__PURE__ */ e("button", { type: "button", className: n.modalCloseBtn, onClick: o, children: /* @__PURE__ */ e(Ge, { width: 18, height: 18, color: "rgba(36,36,36,0.56)" }) })
1143
+ ] }),
1144
+ /* @__PURE__ */ e(Le, { className: n.dialogContentZero, children: /* @__PURE__ */ e("div", { className: n.modalStudentList, children: _.map((g) => /* @__PURE__ */ s("div", { className: n.studentRow, children: [
1145
+ g.studentAvatar ? /* @__PURE__ */ e(
1146
+ ue,
1147
+ {
1148
+ alt: g.studentName?.toUpperCase(),
1149
+ src: re(g.studentAvatar) || Ea,
1150
+ className: `${n.studentAvatar} ${n.studentAvatarRed}`
1151
+ }
1152
+ ) : /* @__PURE__ */ e("div", { className: `${n.studentAvatar} ${n.studentAvatarRed}`, children: Be(g.studentName) }),
1153
+ /* @__PURE__ */ e("div", { className: n.studentInfoCol, children: /* @__PURE__ */ s("div", { className: n.studentName, children: [
1154
+ g.studentName,
1155
+ g.gradeLevel && /* @__PURE__ */ s("span", { className: n.studentGrade, children: [
1156
+ " · ",
1157
+ ge(g.gradeLevel, l === "UK")
1158
+ ] })
1159
+ ] }) }),
1160
+ /* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "center", gap: 8, marginLeft: "auto", marginRight: 16 }, children: [
1161
+ g.isUnsafe && /* @__PURE__ */ s("span", { className: n.unsafeBadge, children: [
1162
+ /* @__PURE__ */ e(ut, { width: 14, height: 14, color: "#C44140" }),
1163
+ /* @__PURE__ */ e("span", { children: r("unsafe_badge") })
1164
+ ] }),
1165
+ g.isHighStress && /* @__PURE__ */ s("span", { className: n.highStressBadge, children: [
1166
+ /* @__PURE__ */ e(Oe, { width: 14, height: 14, color: "#B46A00" }),
1167
+ /* @__PURE__ */ e("span", { children: r("high_stress") })
1168
+ ] })
1169
+ ] }),
1170
+ /* @__PURE__ */ e("div", { className: n.modalActionButtons, style: { marginLeft: 0 }, children: /* @__PURE__ */ s(
1171
+ "button",
1172
+ {
1173
+ type: "button",
1174
+ className: n.btnViewCheckIn,
1175
+ onClick: () => pe(h, g.sessionId, g.sessionResultId, g.studentId, i, void 0, i ? "overview_openSafetyEs" : "overview_openSafety"),
1176
+ children: [
1177
+ /* @__PURE__ */ e(Ee, { width: 15, height: 15 }),
1178
+ /* @__PURE__ */ e("span", { children: r("view_check_in") })
1179
+ ]
1180
+ }
1181
+ ) })
1182
+ ] }, g.studentId || g.studentName)) }) })
1183
+ ]
1184
+ }
1185
+ );
1186
+ }, Pa = ({ wellnessData: t, schoolType: o = "BOTH" }) => {
1187
+ const a = X(), l = De(), { t: i } = D(), [h, r] = R("MS"), [_, m] = R(!1);
1188
+ se(() => {
1189
+ const y = new URLSearchParams(l.search), C = y.get("actionBack");
1190
+ if (C === "openSafety" || C === "openSafetyEs" || C === "overview_openSafety" || C === "overview_openSafetyEs") {
1191
+ r(C === "openSafetyEs" || C === "overview_openSafetyEs" ? "ES" : "MS"), m(!0), y.delete("actionBack");
1192
+ const N = l.pathname + (y.toString() ? `?${y.toString()}` : "");
1193
+ a(N, { replace: !0 });
1194
+ }
1195
+ }, [l, a]);
1196
+ const u = o === "MS" ? "MS" : o === "ES" ? "ES" : h, g = t?.msWellness && t.msWellness.length > 0 ? [...t.msWellness].sort((y, C) => {
1197
+ const N = (y.title || "").toLowerCase(), x = (C.title || "").toLowerCase();
1198
+ return N.includes("stress") ? -1 : x.includes("stress") ? 1 : 0;
1199
+ }) : [], w = t?.esWellness && t.esWellness.length > 0 ? [...t.esWellness].sort((y, C) => {
1200
+ const N = (y.title || "").toLowerCase(), x = (C.title || "").toLowerCase();
1201
+ return N.includes("stress") ? -1 : x.includes("stress") ? 1 : 0;
1202
+ }) : [], c = u === "ES" ? w : g, v = u === "ES" ? t?.esUnhealthyStudents || [] : t?.msUnhealthyStudents || [], k = Me(v).length > 0, b = (y) => {
1203
+ const C = (y.key || "").toLowerCase(), N = (y.title || "").toLowerCase(), x = C.includes("stress") || N.includes("stress");
1204
+ if (u === "ES")
1205
+ return x ? /* @__PURE__ */ e("img", { src: O("/images/home/stress.png"), alt: "", className: n.wellnessIconImg }) : C.includes("home") || N.includes("home") ? /* @__PURE__ */ e("div", { className: n.wellnessIconBadge, children: /* @__PURE__ */ e(ct, { width: 18, height: 18, color: "#316CD9" }) }) : C.includes("online") || N.includes("online") ? /* @__PURE__ */ e("div", { className: n.wellnessIconBadge, children: /* @__PURE__ */ e(ht, { width: 18, height: 18, color: "#316CD9" }) }) : C.includes("school") || N.includes("school") ? /* @__PURE__ */ e("div", { className: n.wellnessIconBadge, children: /* @__PURE__ */ e(_t, { width: 18, height: 18, color: "#316CD9" }) }) : /* @__PURE__ */ e("img", { src: O("/images/home/safety.png"), alt: "", className: n.wellnessIconImg });
1206
+ const B = C.includes("safety") || N.includes("safety") || N.includes("safe") ? O("/images/home/safety.png") : x ? O("/images/home/stress.png") : null;
1207
+ return B ? /* @__PURE__ */ e("img", { src: B, alt: "", className: n.wellnessIconImg }) : null;
1208
+ };
1209
+ return /* @__PURE__ */ s("div", { className: n.wellnessCard, children: [
1210
+ /* @__PURE__ */ s("div", { className: n.wellnessHeader, children: [
1211
+ /* @__PURE__ */ s("div", { children: [
1212
+ /* @__PURE__ */ e("h2", { className: n.wellnessTitle, children: i("student_wellness") }),
1213
+ /* @__PURE__ */ e("p", { className: n.wellnessSubtitle, children: i("this_months_average_vs_last_month") })
1214
+ ] }),
1215
+ o === "BOTH" && /* @__PURE__ */ s("div", { className: n.phaseTabContainer, children: [
1216
+ /* @__PURE__ */ e(
1217
+ "button",
1218
+ {
1219
+ type: "button",
1220
+ className: `${n.phaseTabBtn} ${u === "MS" ? n.phaseTabBtnActive : ""}`,
1221
+ onClick: () => r("MS"),
1222
+ children: i("middle_school")
1223
+ }
1224
+ ),
1225
+ /* @__PURE__ */ e(
1226
+ "button",
1227
+ {
1228
+ type: "button",
1229
+ className: `${n.phaseTabBtn} ${u === "ES" ? n.phaseTabBtnActive : ""}`,
1230
+ onClick: () => r("ES"),
1231
+ children: i("elementary_school")
1232
+ }
1233
+ )
1234
+ ] })
1235
+ ] }),
1236
+ /* @__PURE__ */ e("div", { className: `${n.wellnessGrid} ${u === "ES" ? n.wellnessGridEs : ""}`, children: c.map((y, C) => {
1237
+ const N = (y.key || "").toLowerCase().includes("stress") || (y.title || "").toLowerCase().includes("stress"), x = Re(y.averageScore, N);
1238
+ return /* @__PURE__ */ s("div", { className: n.wellnessRow, children: [
1239
+ b(y),
1240
+ /* @__PURE__ */ e("span", { className: `${n.wellnessRowLabel} ${u === "ES" ? n.wellnessRowLabelEs : n.wellnessRowLabelMs}`, children: i(y.title) }),
1241
+ u === "ES" ? /* @__PURE__ */ s($, { children: [
1242
+ /* @__PURE__ */ s("span", { className: n.wellnessRowPct, children: [
1243
+ y.averageScore,
1244
+ "%"
1245
+ ] }),
1246
+ xe(y.averageScore, void 0, 36)
1247
+ ] }) : (() => {
1248
+ const E = y.changeVsLastMonth >= 0;
1249
+ return /* @__PURE__ */ s($, { children: [
1250
+ /* @__PURE__ */ s(
1251
+ "span",
1252
+ {
1253
+ className: n.wellnessPill,
1254
+ style: {
1255
+ backgroundColor: x.bg,
1256
+ color: x.color
1257
+ },
1258
+ children: [
1259
+ /* @__PURE__ */ e("span", { style: { fontWeight: 500 }, children: i(y.ratingLabel || "") }),
1260
+ /* @__PURE__ */ e("span", { className: n.wellnessPillDivider }),
1261
+ /* @__PURE__ */ s("span", { className: n.wellnessPillPct, children: [
1262
+ y.averageScore,
1263
+ "%"
1264
+ ] })
1265
+ ]
1266
+ }
1267
+ ),
1268
+ /* @__PURE__ */ e("span", { className: n.wellnessRowRight, children: /* @__PURE__ */ e(et, { direction: E ? "up" : "down", width: 20, height: 20 }) })
1269
+ ] });
1270
+ })()
1271
+ ] }, y.key || C);
1272
+ }) }),
1273
+ /* @__PURE__ */ s(
1274
+ "button",
1275
+ {
1276
+ type: "button",
1277
+ className: n.viewDashBtn,
1278
+ onClick: () => {
1279
+ a(u === "ES" ? "/admin/dashboard-wrapper?type=elementary" : "/admin/dashboard");
1280
+ },
1281
+ children: [
1282
+ /* @__PURE__ */ e(dt, { width: 17, height: 17, color: "#316CD9" }),
1283
+ /* @__PURE__ */ e("span", { children: i("view_data_dashboard") }),
1284
+ /* @__PURE__ */ e(he, { width: 15, height: 15 })
1285
+ ]
1286
+ }
1287
+ ),
1288
+ k && /* @__PURE__ */ s(
1289
+ "button",
1290
+ {
1291
+ type: "button",
1292
+ className: n.seeUnhealthyBtn,
1293
+ onClick: () => m(!0),
1294
+ children: [
1295
+ /* @__PURE__ */ e(gt, { width: 17, height: 17, color: "#C44140" }),
1296
+ /* @__PURE__ */ e("span", { children: i("see_all_unsafe_and_stressed_students") }),
1297
+ /* @__PURE__ */ e(he, { width: 15, height: 15, color: "#C44140" })
1298
+ ]
1299
+ }
1300
+ ),
1301
+ _ && /* @__PURE__ */ e(
1302
+ Oa,
1303
+ {
1304
+ open: _,
1305
+ onClose: () => m(!1),
1306
+ students: v,
1307
+ isEs: u === "ES"
1308
+ }
1309
+ )
1310
+ ] });
1311
+ }, Da = ({ usageData: t }) => {
1312
+ const { t: o } = D(), a = t?.schoolName || "", l = t?.schoolLogo ? re(t.schoolLogo) : null, i = t?.totalCheckIns ?? 0, h = t?.totalStudents ?? 0, r = (t?.totalCheckIns ?? 0) - (t?.totalCheckInsLastMonth ?? 0), _ = t?.totalOneToOneMinutes ?? 0, m = be(_), u = Math.round((t?.totalOneToOneMinutes ?? 0) - (t?.totalOneToOneMinutesLastMonth ?? 0)), g = be(Math.abs(u)), w = t?.totalOneToOneCount ?? 0, c = t?.totalOneToOneRequired ?? 0, v = c > 0 ? Math.min(1, w / c) : 0, S = Math.round(v * 100), k = t?.totalConferenceCount ?? 0, b = (t?.totalConferenceCount ?? 0) - (t?.totalConferenceCountLastMonth ?? 0), y = t?.totalClassReflectionsCount ?? 0, C = (t?.totalClassReflectionsCount ?? 0) - (t?.totalClassReflectionsCountLastMonth ?? 0), N = Math.min(1, Math.max(0, i / (h || 1))), x = (B) => {
1313
+ if (B === 0) {
1314
+ const f = "#8E8E93";
1315
+ return /* @__PURE__ */ s("span", { style: { color: f, display: "inline-flex", alignItems: "center", gap: "4px" }, children: [
1316
+ /* @__PURE__ */ e(Q, { color: f, width: 8, height: 9 }),
1317
+ "0 ",
1318
+ o("vs_last_month")
1319
+ ] });
1320
+ }
1321
+ const F = B > 0, A = F ? "#0F9655" : "#C44140", M = F ? Q : ke;
1322
+ return /* @__PURE__ */ s("span", { className: F ? n.deltaUp : n.deltaDown, style: { color: A, display: "inline-flex", alignItems: "center", gap: "4px" }, children: [
1323
+ /* @__PURE__ */ e(M, { color: A, width: 8, height: 9 }),
1324
+ Math.abs(B),
1325
+ " ",
1326
+ o("vs_last_month")
1327
+ ] });
1328
+ }, E = (B, F) => {
1329
+ if (B === 0) {
1330
+ const G = "#8E8E93";
1331
+ return /* @__PURE__ */ s("span", { style: { color: G, display: "inline-flex", alignItems: "center", gap: "4px" }, children: [
1332
+ /* @__PURE__ */ e(Q, { color: G, width: 8, height: 9 }),
1333
+ F,
1334
+ " ",
1335
+ o("vs_last_month")
1336
+ ] });
1337
+ }
1338
+ const A = B > 0, M = A ? "#0F9655" : "#C44140", f = A ? Q : ke;
1339
+ return /* @__PURE__ */ s("span", { className: A ? n.deltaUp : n.deltaDown, style: { color: M, display: "inline-flex", alignItems: "center", gap: "4px" }, children: [
1340
+ /* @__PURE__ */ e(f, { color: M, width: 8, height: 9 }),
1341
+ F,
1342
+ " ",
1343
+ o("vs_last_month")
1344
+ ] });
1345
+ };
1346
+ return /* @__PURE__ */ s("div", { className: n.usagePanel, children: [
1347
+ /* @__PURE__ */ s("div", { className: n.usageHeader, children: [
1348
+ /* @__PURE__ */ e("div", { className: n.usageIconCircle, children: l ? /* @__PURE__ */ e(
1349
+ "img",
1350
+ {
1351
+ src: l,
1352
+ alt: a,
1353
+ className: n.schoolLogoImg,
1354
+ onError: (B) => {
1355
+ B.target.style.display = "none";
1356
+ }
1357
+ }
1358
+ ) : /* @__PURE__ */ e(tt, { width: 28, height: 28, color: "#ffffff" }) }),
1359
+ a && /* @__PURE__ */ e("span", { className: n.schoolBadgeName, children: a }),
1360
+ /* @__PURE__ */ e("h2", { className: n.usageTitle, children: o("school_monthly_usage") })
1361
+ ] }),
1362
+ /* @__PURE__ */ e("div", { className: n.usageDivider }),
1363
+ /* @__PURE__ */ s("div", { className: n.usageTilesList, children: [
1364
+ /* @__PURE__ */ s("div", { className: n.usageTile, children: [
1365
+ /* @__PURE__ */ s("div", { className: n.usageTileHeader, children: [
1366
+ /* @__PURE__ */ e("span", { className: n.usageTileLabel, children: o("total_check_ins") }),
1367
+ /* @__PURE__ */ e(nt, { width: 18, height: 18, color: "#D3D3D3" })
1368
+ ] }),
1369
+ /* @__PURE__ */ e("div", { className: n.usageProgressBarTrack, children: /* @__PURE__ */ e(
1370
+ "div",
1371
+ {
1372
+ className: n.usageProgressBarFill,
1373
+ style: { width: `${Math.round(N * 100)}%` }
1374
+ }
1375
+ ) }),
1376
+ /* @__PURE__ */ e("div", { className: n.usageTileValue, children: i }),
1377
+ /* @__PURE__ */ s("div", { className: n.usageTileSubText, children: [
1378
+ /* @__PURE__ */ s("span", { children: [
1379
+ "/ ",
1380
+ h,
1381
+ " ",
1382
+ o("students"),
1383
+ " "
1384
+ ] }),
1385
+ x(r)
1386
+ ] })
1387
+ ] }),
1388
+ /* @__PURE__ */ s("div", { className: n.usageTile, children: [
1389
+ /* @__PURE__ */ s("div", { className: n.usageTileHeader, children: [
1390
+ /* @__PURE__ */ e("span", { className: n.usageTileLabel, children: o("total_conversation_time") }),
1391
+ /* @__PURE__ */ e(at, { width: 18, height: 18, color: "#D3D3D3" })
1392
+ ] }),
1393
+ /* @__PURE__ */ e("div", { className: n.usageTileValue, children: m }),
1394
+ /* @__PURE__ */ e("div", { className: n.usageTileSubText, children: E(u, g) })
1395
+ ] }),
1396
+ /* @__PURE__ */ s("div", { className: n.usageTile, children: [
1397
+ /* @__PURE__ */ s("div", { className: n.usageTileHeader, children: [
1398
+ /* @__PURE__ */ e("span", { className: n.usageTileLabel, children: o("total_one_to_one_conversations") }),
1399
+ /* @__PURE__ */ e(st, { width: 18, height: 18, color: "#D3D3D3" })
1400
+ ] }),
1401
+ /* @__PURE__ */ e("div", { className: n.usageProgressBarTrack, children: /* @__PURE__ */ e(
1402
+ "div",
1403
+ {
1404
+ className: n.usageProgressBarFillGreen,
1405
+ style: { width: `${S}%` }
1406
+ }
1407
+ ) }),
1408
+ /* @__PURE__ */ e("div", { className: n.usageTileValue, children: w }),
1409
+ /* @__PURE__ */ s("div", { className: n.usageTileSubText, children: [
1410
+ /* @__PURE__ */ s("span", { children: [
1411
+ "/ ",
1412
+ c,
1413
+ " ",
1414
+ o("required"),
1415
+ " "
1416
+ ] }),
1417
+ /* @__PURE__ */ s("span", { className: n.deltaUp, style: { color: "#0F9655", display: "inline-flex", alignItems: "center", gap: "4px" }, children: [
1418
+ /* @__PURE__ */ e(Q, { color: "#0F9655", width: 8, height: 9 }),
1419
+ " ",
1420
+ S,
1421
+ "% ",
1422
+ o("completion")
1423
+ ] })
1424
+ ] })
1425
+ ] }),
1426
+ /* @__PURE__ */ s("div", { className: n.usageTile, children: [
1427
+ /* @__PURE__ */ s("div", { className: n.usageTileHeader, children: [
1428
+ /* @__PURE__ */ e("span", { className: n.usageTileLabel, children: o("total_conferences") }),
1429
+ /* @__PURE__ */ e(Fe, { width: 18, height: 18, color: "#D3D3D3" })
1430
+ ] }),
1431
+ /* @__PURE__ */ e("div", { className: n.usageTileValue, children: k }),
1432
+ /* @__PURE__ */ e("div", { className: n.usageTileSubText, children: x(b) })
1433
+ ] }),
1434
+ /* @__PURE__ */ s("div", { className: n.usageTile, children: [
1435
+ /* @__PURE__ */ s("div", { className: n.usageTileHeader, children: [
1436
+ /* @__PURE__ */ e("span", { className: n.usageTileLabel, children: o("total_class_reflections") }),
1437
+ /* @__PURE__ */ e(Oe, { width: 18, height: 18, color: "#D3D3D3" })
1438
+ ] }),
1439
+ /* @__PURE__ */ e("div", { className: n.usageTileValue, children: y }),
1440
+ /* @__PURE__ */ e("div", { className: n.usageTileSubText, children: x(C) })
1441
+ ] })
1442
+ ] })
1443
+ ] });
1444
+ }, $a = ({
1445
+ gradeOverview: t,
1446
+ caseMode: o = "without",
1447
+ curriculumSystem: a = "US",
1448
+ onSetCurriculumSystem: l
1449
+ }) => {
1450
+ const { t: i } = D(), [h, r] = R(!1), _ = o === "with", m = a === "UK", u = /* @__PURE__ */ new Map();
1451
+ (t ?? []).forEach((c) => {
1452
+ const v = (c.grade || "").trim();
1453
+ if (!v) return;
1454
+ const S = ge(v, m), k = v.toLowerCase();
1455
+ if (!u.has(k))
1456
+ u.set(k, {
1457
+ label: S,
1458
+ redFlagCount: c.redFlagCount || 0,
1459
+ yellowFlagCount: c.yellowFlagCount || 0,
1460
+ cases: c.cases || 0,
1461
+ totalCheckIn: c.totalCheckIn || 0,
1462
+ totalOneToOne: c.totalOneToOne || 0
1463
+ });
1464
+ else {
1465
+ const b = u.get(k);
1466
+ b.redFlagCount += c.redFlagCount || 0, b.yellowFlagCount += c.yellowFlagCount || 0, b.cases += c.cases || 0, b.totalCheckIn += c.totalCheckIn || 0, b.totalOneToOne += c.totalOneToOne || 0;
1467
+ }
1468
+ });
1469
+ const g = Array.from(u.values()), w = g.reduce(
1470
+ (c, v) => ({
1471
+ checkIns: c.checkIns + v.totalCheckIn,
1472
+ redFlags: c.redFlags + v.redFlagCount,
1473
+ yellowFlags: c.yellowFlags + v.yellowFlagCount,
1474
+ cases: c.cases + v.cases,
1475
+ oneToOneLogs: c.oneToOneLogs + v.totalOneToOne
1476
+ }),
1477
+ { checkIns: 0, redFlags: 0, yellowFlags: 0, cases: 0, oneToOneLogs: 0 }
1478
+ );
1479
+ return /* @__PURE__ */ s("div", { className: n.campusCard, children: [
1480
+ /* @__PURE__ */ s("div", { className: n.campusHeader, children: [
1481
+ /* @__PURE__ */ s("div", { children: [
1482
+ /* @__PURE__ */ e("h2", { className: n.campusTitle, children: i("school_overview") }),
1483
+ /* @__PURE__ */ e("p", { className: n.campusSubText, children: i("flag_metrics_and_engagement_breakdown") })
1484
+ ] }),
1485
+ /* @__PURE__ */ s("div", { className: n.sysToggleGroup, children: [
1486
+ /* @__PURE__ */ s("span", { className: n.sysToggleLabel, children: [
1487
+ i("curriculum_system"),
1488
+ ":"
1489
+ ] }),
1490
+ /* @__PURE__ */ s("div", { className: n.phaseTabs, children: [
1491
+ /* @__PURE__ */ e(
1492
+ "button",
1493
+ {
1494
+ type: "button",
1495
+ className: `${n.phaseTabBtn} ${a === "US" ? n.phaseTabBtnActive : ""}`,
1496
+ onClick: () => l && l("US"),
1497
+ children: "US (Grades)"
1498
+ }
1499
+ ),
1500
+ /* @__PURE__ */ e(
1501
+ "button",
1502
+ {
1503
+ type: "button",
1504
+ className: `${n.phaseTabBtn} ${a === "UK" ? n.phaseTabBtnActive : ""}`,
1505
+ onClick: () => l && l("UK"),
1506
+ children: "UK (Years)"
1507
+ }
1508
+ )
1509
+ ] }),
1510
+ /* @__PURE__ */ s("div", { className: n.helpPopoverWrapper, children: [
1511
+ /* @__PURE__ */ e(
1512
+ "button",
1513
+ {
1514
+ type: "button",
1515
+ className: n.infoHelpBtn,
1516
+ onClick: () => r((c) => !c),
1517
+ title: i("curriculum_system_reference"),
1518
+ children: "?"
1519
+ }
1520
+ ),
1521
+ h && /* @__PURE__ */ s($, { children: [
1522
+ /* @__PURE__ */ e("div", { className: n.popoverBackdrop, onClick: () => r(!1) }),
1523
+ /* @__PURE__ */ s("div", { className: n.referencePopover, children: [
1524
+ /* @__PURE__ */ e("h3", { className: n.refTitle, children: i("curriculum_system_reference") }),
1525
+ /* @__PURE__ */ e("p", { className: n.refSubText, children: i("how_us_grades_map_to_uk_year_groups") }),
1526
+ /* @__PURE__ */ e("div", { className: n.refTableWrapper, children: /* @__PURE__ */ s("table", { className: n.refTable, children: [
1527
+ /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ s("tr", { children: [
1528
+ /* @__PURE__ */ e("th", { children: i("us_stage") }),
1529
+ /* @__PURE__ */ e("th", { children: i("us_grade") }),
1530
+ /* @__PURE__ */ e("th", { children: i("uk_stage") }),
1531
+ /* @__PURE__ */ e("th", { children: i("uk_year_group") }),
1532
+ /* @__PURE__ */ e("th", { children: i("uk_key_stage") })
1533
+ ] }) }),
1534
+ /* @__PURE__ */ e("tbody", { children: W.map((c, v) => /* @__PURE__ */ s("tr", { children: [
1535
+ /* @__PURE__ */ e("td", { className: n.usStageTd, children: c.usStage }),
1536
+ /* @__PURE__ */ e("td", { children: c.usGrade }),
1537
+ /* @__PURE__ */ e("td", { children: c.ukStage }),
1538
+ /* @__PURE__ */ e("td", { children: c.ukYearGroup }),
1539
+ /* @__PURE__ */ e("td", { children: c.ukKeyStage })
1540
+ ] }, v)) })
1541
+ ] }) })
1542
+ ] })
1543
+ ] })
1544
+ ] })
1545
+ ] })
1546
+ ] }),
1547
+ /* @__PURE__ */ e("div", { className: n.tableWrapper, children: /* @__PURE__ */ s("table", { className: n.overviewTable, children: [
1548
+ /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ s("tr", { children: [
1549
+ /* @__PURE__ */ e("th", { children: i(m ? "year_group_grade" : "grade_year_group") }),
1550
+ /* @__PURE__ */ e("th", { children: i("red_flags") }),
1551
+ /* @__PURE__ */ e("th", { children: i("yellow_flags") }),
1552
+ _ && /* @__PURE__ */ e("th", { children: i("cases") }),
1553
+ /* @__PURE__ */ e("th", { children: i("check_ins") }),
1554
+ /* @__PURE__ */ e("th", { children: i("one_to_one_logs") })
1555
+ ] }) }),
1556
+ /* @__PURE__ */ s("tbody", { children: [
1557
+ g.map((c, v) => /* @__PURE__ */ s("tr", { children: [
1558
+ /* @__PURE__ */ e("td", { children: c.label }),
1559
+ /* @__PURE__ */ e("td", { children: c.redFlagCount ? /* @__PURE__ */ e("span", { className: n.redFlagText, children: c.redFlagCount }) : /* @__PURE__ */ e("span", { className: n.dashMuted, children: "—" }) }),
1560
+ /* @__PURE__ */ e("td", { children: c.yellowFlagCount ? /* @__PURE__ */ e("span", { className: n.yellowFlagText, children: c.yellowFlagCount }) : /* @__PURE__ */ e("span", { className: n.dashMuted, children: "—" }) }),
1561
+ _ && /* @__PURE__ */ e("td", { children: c.cases ? c.cases : /* @__PURE__ */ e("span", { className: n.dashMuted, children: "—" }) }),
1562
+ /* @__PURE__ */ e("td", { children: c.totalCheckIn }),
1563
+ /* @__PURE__ */ e("td", { children: c.totalOneToOne })
1564
+ ] }, v)),
1565
+ /* @__PURE__ */ s("tr", { className: n.totalsRow, children: [
1566
+ /* @__PURE__ */ e("td", { children: i("totals") }),
1567
+ /* @__PURE__ */ e("td", { children: w.redFlags ? /* @__PURE__ */ e("span", { className: n.redFlagText, children: w.redFlags }) : /* @__PURE__ */ e("span", { className: n.dashMuted, children: "—" }) }),
1568
+ /* @__PURE__ */ e("td", { children: w.yellowFlags ? /* @__PURE__ */ e("span", { className: n.yellowFlagText, children: w.yellowFlags }) : /* @__PURE__ */ e("span", { className: n.dashMuted, children: "—" }) }),
1569
+ _ && /* @__PURE__ */ e("td", { children: w.cases ? w.cases : /* @__PURE__ */ e("span", { className: n.dashMuted, children: "—" }) }),
1570
+ /* @__PURE__ */ e("td", { children: w.checkIns.toLocaleString() }),
1571
+ /* @__PURE__ */ e("td", { children: w.oneToOneLogs })
1572
+ ] })
1573
+ ] })
1574
+ ] }) })
1575
+ ] });
1576
+ };
1577
+ function ce(t) {
1578
+ return t ? typeof t == "string" ? t : typeof t == "object" && t.text ? t.text : String(t) : "";
1579
+ }
1580
+ const Ha = ({ adminTips: t, tips: o }) => {
1581
+ const { t: a } = D(), [l, i] = R(!1), h = t?.msAdminTips || [], r = t?.esAdminTips || [], _ = h.length > 0 && r.length > 0, m = [...h, ...r], u = m.length > 0 ? m : o || [];
1582
+ return /* @__PURE__ */ s("div", { className: n.adminTipsWrapper, children: [
1583
+ /* @__PURE__ */ s(
1584
+ "button",
1585
+ {
1586
+ type: "button",
1587
+ className: n.adminTipsBtn,
1588
+ onClick: () => i((g) => !g),
1589
+ children: [
1590
+ /* @__PURE__ */ e(Ne, { width: 17, height: 17, color: "#316CD9" }),
1591
+ /* @__PURE__ */ e("span", { children: a("admin_tips") })
1592
+ ]
1593
+ }
1594
+ ),
1595
+ l && /* @__PURE__ */ s($, { children: [
1596
+ /* @__PURE__ */ e(
1597
+ "div",
1598
+ {
1599
+ className: n.popoverBackdrop,
1600
+ onClick: () => i(!1)
1601
+ }
1602
+ ),
1603
+ /* @__PURE__ */ s("div", { className: n.adminTipsPopover, children: [
1604
+ /* @__PURE__ */ e("div", { className: n.popoverArrow }),
1605
+ /* @__PURE__ */ s("div", { className: n.popoverHeaderRow, children: [
1606
+ /* @__PURE__ */ e("div", { className: n.popoverIconCircle, children: /* @__PURE__ */ e(Ne, { width: 18, height: 18, color: "#316CD9" }) }),
1607
+ /* @__PURE__ */ e("h3", { className: n.popoverHeaderTitle, children: a("admin_tips") })
1608
+ ] }),
1609
+ _ ? /* @__PURE__ */ s("div", { children: [
1610
+ h.map((g, w) => /* @__PURE__ */ s("div", { className: n.tipItem, children: [
1611
+ /* @__PURE__ */ e("div", { className: n.tipNumber, children: w + 1 }),
1612
+ /* @__PURE__ */ e(
1613
+ "div",
1614
+ {
1615
+ className: n.tipText,
1616
+ dangerouslySetInnerHTML: { __html: ce(g) }
1617
+ }
1618
+ )
1619
+ ] }, `ms-${w}`)),
1620
+ /* @__PURE__ */ e("hr", { className: n.tipSectionDivider }),
1621
+ r.map((g, w) => /* @__PURE__ */ s("div", { className: n.tipItem, children: [
1622
+ /* @__PURE__ */ e("div", { className: n.tipNumber, children: w + 1 }),
1623
+ /* @__PURE__ */ e(
1624
+ "div",
1625
+ {
1626
+ className: n.tipText,
1627
+ dangerouslySetInnerHTML: { __html: ce(g) }
1628
+ }
1629
+ )
1630
+ ] }, `es-${w}`))
1631
+ ] }) : u.map((g, w) => /* @__PURE__ */ s("div", { className: n.tipItem, children: [
1632
+ /* @__PURE__ */ e("div", { className: n.tipNumber, children: w + 1 }),
1633
+ /* @__PURE__ */ e(
1634
+ "div",
1635
+ {
1636
+ className: n.tipText,
1637
+ dangerouslySetInnerHTML: { __html: ce(g) }
1638
+ }
1639
+ )
1640
+ ] }, w))
1641
+ ] })
1642
+ ] })
1643
+ ] });
1644
+ }, d = {
1645
+ "hn-root": "_hn-root_1udam_1",
1646
+ "hn-header": "_hn-header_1udam_13",
1647
+ "hn-header__left": "_hn-header__left_1udam_23",
1648
+ "hn-header__avatar": "_hn-header__avatar_1udam_28",
1649
+ "hn-header__avatar--icon": "_hn-header__avatar--icon_1udam_37",
1650
+ "hn-header__info": "_hn-header__info_1udam_43",
1651
+ "hn-header__name-row": "_hn-header__name-row_1udam_46",
1652
+ "hn-header__student-name": "_hn-header__student-name_1udam_51",
1653
+ "hn-header__grade-badge": "_hn-header__grade-badge_1udam_56",
1654
+ "hn-header__duration-row": "_hn-header__duration-row_1udam_65",
1655
+ "hn-header__close-btn": "_hn-header__close-btn_1udam_76",
1656
+ "hn-body": "_hn-body_1udam_88",
1657
+ "hn-left": "_hn-left_1udam_97",
1658
+ "hn-left__section-header": "_hn-left__section-header_1udam_115",
1659
+ "hn-left__section-icon": "_hn-left__section-icon_1udam_121",
1660
+ "hn-left__section-title": "_hn-left__section-title_1udam_132",
1661
+ "hn-left__card": "_hn-left__card_1udam_137",
1662
+ "hn-left__card-last": "_hn-left__card-last_1udam_145",
1663
+ "hn-left__last-checkin-row": "_hn-left__last-checkin-row_1udam_152",
1664
+ "hn-left__dot-row": "_hn-left__dot-row_1udam_155",
1665
+ "hn-left__dot": "_hn-left__dot_1udam_155",
1666
+ "hn-left__checkin-value": "_hn-left__checkin-value_1udam_172",
1667
+ "hn-left__indicators-grid": "_hn-left__indicators-grid_1udam_177",
1668
+ "hn-left__indicator-item": "_hn-left__indicator-item_1udam_182",
1669
+ "hn-left__indicator-name": "_hn-left__indicator-name_1udam_187",
1670
+ "hn-left__indicator-badge": "_hn-left__indicator-badge_1udam_193",
1671
+ "hn-left__prev-notes-header": "_hn-left__prev-notes-header_1udam_203",
1672
+ "hn-left__prev-notes-block": "_hn-left__prev-notes-block_1udam_214",
1673
+ "hn-middle": "_hn-middle_1udam_219",
1674
+ "hn-middle__focus-card": "_hn-middle__focus-card_1udam_237",
1675
+ "hn-middle__notes-card": "_hn-middle__notes-card_1udam_237",
1676
+ "hn-middle__strategy-card": "_hn-middle__strategy-card_1udam_237",
1677
+ "hn-middle__outcomes-card": "_hn-middle__outcomes-card_1udam_237",
1678
+ "hn-middle__toggle-card": "_hn-middle__toggle-card_1udam_237",
1679
+ "hn-middle__notes-label": "_hn-middle__notes-label_1udam_250",
1680
+ "hn-middle__strategy-label": "_hn-middle__strategy-label_1udam_250",
1681
+ "hn-middle__outcomes-label": "_hn-middle__outcomes-label_1udam_250",
1682
+ "hn-middle__focus-tags": "_hn-middle__focus-tags_1udam_256",
1683
+ "hn-middle__outcomes-tags": "_hn-middle__outcomes-tags_1udam_256",
1684
+ "hn-middle__focus-tag": "_hn-middle__focus-tag_1udam_256",
1685
+ "hn-middle__outcome-tag": "_hn-middle__outcome-tag_1udam_262",
1686
+ "hn-middle__focus-tag--active": "_hn-middle__focus-tag--active_1udam_273",
1687
+ "hn-middle__outcome-tag--active": "_hn-middle__outcome-tag--active_1udam_273",
1688
+ "hn-middle__strategy-chips": "_hn-middle__strategy-chips_1udam_282",
1689
+ "hn-middle__strategy-chip": "_hn-middle__strategy-chip_1udam_282",
1690
+ "hn-middle__readonly-text": "_hn-middle__readonly-text_1udam_292",
1691
+ "hn-middle__toggle-btn": "_hn-middle__toggle-btn_1udam_312",
1692
+ "hn-middle__toggle-btn--active": "_hn-middle__toggle-btn--active_1udam_322",
1693
+ "hn-middle__toggle-thumb": "_hn-middle__toggle-thumb_1udam_325",
1694
+ "hn-middle__toggle-info": "_hn-middle__toggle-info_1udam_340",
1695
+ "hn-middle__toggle-label": "_hn-middle__toggle-label_1udam_344",
1696
+ "hn-middle__toggle-sub": "_hn-middle__toggle-sub_1udam_349",
1697
+ "hn-right": "_hn-right_1udam_354",
1698
+ "hn-right__header": "_hn-right__header_1udam_375",
1699
+ "hn-right__header-title-row": "_hn-right__header-title-row_1udam_380",
1700
+ "hn-right__header-title": "_hn-right__header-title_1udam_380",
1701
+ "hn-right__header-sub": "_hn-right__header-sub_1udam_391",
1702
+ "hn-right__scroll-list": "_hn-right__scroll-list_1udam_395",
1703
+ "hn-right__cat-wrapper": "_hn-right__cat-wrapper_1udam_400",
1704
+ "hn-right__cat-btn": "_hn-right__cat-btn_1udam_403",
1705
+ "hn-right__cat-inner-row": "_hn-right__cat-inner-row_1udam_415",
1706
+ "hn-right__cat-icon-circle": "_hn-right__cat-icon-circle_1udam_420",
1707
+ "hn-right__cat-title-col": "_hn-right__cat-title-col_1udam_431",
1708
+ "hn-right__cat-label": "_hn-right__cat-label_1udam_434",
1709
+ "hn-right__cat-right": "_hn-right__cat-right_1udam_439",
1710
+ "hn-right__cat-count": "_hn-right__cat-count_1udam_444",
1711
+ "hn-right__questions-list": "_hn-right__questions-list_1udam_449",
1712
+ "hn-right__question-btn": "_hn-right__question-btn_1udam_456",
1713
+ "hn-right__question-btn--clicked": "_hn-right__question-btn--clicked_1udam_469",
1714
+ "hn-right__q-dot": "_hn-right__q-dot_1udam_473",
1715
+ "hn-right__question-text": "_hn-right__question-text_1udam_487"
1716
+ }, Wa = ({ size: t = 20 }) => /* @__PURE__ */ e("img", { src: O("/teacher-student/icons/close.svg"), width: t, height: t, alt: "close" }), Se = ({ size: t = 20 }) => /* @__PURE__ */ e("img", { src: O("/teacher-student/icons/sparkles.svg"), width: t, height: t, alt: "sparkles" }), Ya = ({ size: t = 20 }) => /* @__PURE__ */ e("img", { src: O("/teacher-student/icons/sparkles_blue.svg"), width: t, height: t, alt: "sparkles" }), Ua = ({ size: t = 16 }) => /* @__PURE__ */ e("img", { src: O("/teacher-student/icons/heart.svg"), width: t, height: t, alt: "heart" }), Va = ({ size: t = 16 }) => /* @__PURE__ */ e("img", { src: O("/teacher-student/icons/trending-up.svg"), width: t, height: t, alt: "trending-up" }), Ka = ({ size: t = 16 }) => /* @__PURE__ */ e("img", { src: O("/teacher-student/icons/trophy.svg"), width: t, height: t, alt: "trophy" }), ja = ({ size: t = 16, style: o }) => /* @__PURE__ */ e("img", { src: O("/teacher-student/icons/chevron-down.svg"), width: t, height: t, style: o, alt: "chevron-down" }), za = ({ size: t = 14 }) => /* @__PURE__ */ e("img", { src: O("/teacher-student/icons/eye.svg"), width: t, height: t, alt: "eye" }), Qa = ({ size: t = 14 }) => /* @__PURE__ */ e("img", { src: O("/teacher-student/icons/eye-off.svg"), width: t, height: t, alt: "eye-off" }), Za = "0001-01-01T00:00:00", Z = (t) => {
1717
+ if (!t || t === Za || t.startsWith("0001-01-01")) return !0;
1718
+ const o = Y(t);
1719
+ return !o.isValid() || o.year() <= 1900;
1720
+ }, Ie = (t) => !t || Z(t) ? "" : Y(t).fromNow(), Xa = ({
1721
+ isOpen: t,
1722
+ onClose: o,
1723
+ sessionSelected: a,
1724
+ typeHappen: l,
1725
+ conversationStarters: i = [],
1726
+ isEs: h
1727
+ }) => {
1728
+ const { t: r } = D(), [_, m] = R(""), [u, g] = R([]);
1729
+ se(() => {
1730
+ const p = a?.scaffoldingIds || a?.previousScaffoldingIds || a?.resultTeacher?.scaffoldingIds || a?.teacherResult?.scaffoldingIds || "";
1731
+ if (p) {
1732
+ const T = String(p).split(",").map((I) => I.trim()).filter(Boolean);
1733
+ g(T);
1734
+ } else
1735
+ g([]);
1736
+ }, [a]);
1737
+ const w = (p) => {
1738
+ g(
1739
+ (T) => T.includes(p) ? T.filter((I) => I !== p) : [...T, p]
1740
+ );
1741
+ }, c = h || a?.isEs || a?.schoolType?.toUpperCase() === "ES" || a?.schoolLevel === "es", v = l === 2 || a?.oneToOneType === 2 || a?.typeHappen === 2, S = a?.categoryOneToOne, k = a?.outcomes, b = a?.resultStudent, y = ne(() => S ? typeof S == "string" ? S.split(",").map((p) => p.trim()) : [] : [], [S]), C = ne(() => k ? typeof k == "string" ? k.split(",").map((p) => p.trim()) : [] : [], [k]), N = ne(() => ze(a), [a]), x = ne(() => {
1742
+ const p = b?.questions || a?.studentResult?.questions || [], T = Qe(p);
1743
+ return c ? T.filter((I) => {
1744
+ const H = String(I.type || "").toLowerCase(), J = I.type === "Rating" || I.type === 10 || I.type === "StarRating" || I.type === 6 || I.type === "Slider" || I.type === 4 || I.type === "ProgressBar" || I.type === 5 || H.includes("rating") || H.includes("slider") || H.includes("progressbar"), U = typeof I.score == "number" && I.score > 0;
1745
+ return J || U;
1746
+ }) : T;
1747
+ }, [b, a, c]);
1748
+ if (!a) return null;
1749
+ const E = a?.studentProfile?.name || a?.studentName || "Student", B = a?.studentProfile?.avatar || a?.studentProfileImage || "", F = a?.studentProfile?.gradeLevel || a?.gradeLevel || "", A = !!a?.isPrivateOneToOne, M = a?.oneToOneDate, f = M && !Z(M) ? Y.utc(M).local().format("DD MMMM YYYY - hh:mm A") : a?.startTime && !Z(a.startTime) ? Y.utc(a.startTime).local().format("DD MMMM YYYY - hh:mm A") : "N/A", G = a?.startTime || a?.startDate || a?.studentResult?.createdAt || a?.resultStudent?.createdAt || a?.createAt || a?.createdAt, j = G && !Z(G) ? Y.utc(G).local().format("DD MMMM YYYY - hh:mm A") : "N/A";
1750
+ return /* @__PURE__ */ e(
1751
+ _e,
1752
+ {
1753
+ open: t,
1754
+ onClose: o,
1755
+ maxWidth: "xl",
1756
+ fullWidth: !0,
1757
+ PaperProps: {
1758
+ style: {
1759
+ borderRadius: 24,
1760
+ maxHeight: "92vh",
1761
+ backgroundColor: "transparent",
1762
+ boxShadow: "none"
1763
+ }
1764
+ },
1765
+ children: /* @__PURE__ */ s("div", { className: d["hn-root"], children: [
1766
+ /* @__PURE__ */ s("div", { className: d["hn-header"], children: [
1767
+ /* @__PURE__ */ s("div", { className: d["hn-header__left"], children: [
1768
+ /* @__PURE__ */ e(ue, { className: d["hn-header__avatar"], children: B ? /* @__PURE__ */ e(
1769
+ "img",
1770
+ {
1771
+ className: d["hn-header__avatar--icon"],
1772
+ src: re(B),
1773
+ alt: "avatar"
1774
+ }
1775
+ ) : E.charAt(0) }),
1776
+ /* @__PURE__ */ s("div", { className: d["hn-header__info"], children: [
1777
+ /* @__PURE__ */ s("div", { className: d["hn-header__name-row"], children: [
1778
+ /* @__PURE__ */ e(Ye, { title: /* @__PURE__ */ e("span", { style: { fontSize: "16px" }, children: E }), arrow: !0, placement: "bottom", children: /* @__PURE__ */ e(L, { variant: "h3", className: d["hn-header__student-name"], children: E }) }),
1779
+ F && /* @__PURE__ */ s("span", { className: d["hn-header__grade-badge"], children: [
1780
+ r("grade"),
1781
+ " ",
1782
+ F
1783
+ ] })
1784
+ ] }),
1785
+ /* @__PURE__ */ e("div", { className: d["hn-header__duration-row"], children: /* @__PURE__ */ s(L, { children: [
1786
+ r("one_to_one_conversation_log"),
1787
+ " • ",
1788
+ f,
1789
+ a?.timeOneToOne ? ` (${a.timeOneToOne} mins)` : ""
1790
+ ] }) })
1791
+ ] })
1792
+ ] }),
1793
+ /* @__PURE__ */ e(V, { onClick: o, className: d["hn-header__close-btn"], children: /* @__PURE__ */ e(Wa, { size: 20 }) })
1794
+ ] }),
1795
+ /* @__PURE__ */ s("div", { className: d["hn-body"], children: [
1796
+ /* @__PURE__ */ s("div", { className: d["hn-left"], children: [
1797
+ /* @__PURE__ */ s("div", { className: d["hn-left__section-header"], children: [
1798
+ /* @__PURE__ */ e("div", { className: d["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" }) }) }),
1799
+ /* @__PURE__ */ e(L, { className: d["hn-left__section-title"], children: r("student_context") })
1800
+ ] }),
1801
+ /* @__PURE__ */ s("div", { className: d["hn-left__card"], children: [
1802
+ /* @__PURE__ */ s("div", { className: d["hn-left__last-checkin-row"], children: [
1803
+ /* @__PURE__ */ s("div", { className: d["hn-left__dot-row"], children: [
1804
+ /* @__PURE__ */ e("div", { className: d["hn-left__dot"] }),
1805
+ /* @__PURE__ */ e(L, { children: r("check_in_time") })
1806
+ ] }),
1807
+ /* @__PURE__ */ s(L, { className: d["hn-left__checkin-value"], children: [
1808
+ j,
1809
+ " ",
1810
+ Ie(G) && `(${Ie(G)})`
1811
+ ] })
1812
+ ] }),
1813
+ /* @__PURE__ */ e("div", { className: d["hn-left__indicators-grid"], children: x.map((p, T) => {
1814
+ const I = xe(p.score, p.val);
1815
+ return c ? /* @__PURE__ */ e("div", { className: d["hn-left__indicator-item"], children: /* @__PURE__ */ s(
1816
+ "div",
1817
+ {
1818
+ className: d["hn-left__indicator-badge"],
1819
+ style: {
1820
+ backgroundColor: p.bg,
1821
+ color: p.color,
1822
+ display: "flex",
1823
+ alignItems: "center",
1824
+ justifyContent: "space-between",
1825
+ padding: "8px 12px",
1826
+ borderRadius: "12px",
1827
+ fontWeight: 600,
1828
+ width: "100%",
1829
+ boxSizing: "border-box"
1830
+ },
1831
+ children: [
1832
+ /* @__PURE__ */ e("span", { style: { fontSize: "13px", lineHeight: 1.2 }, children: p.name }),
1833
+ I ? /* @__PURE__ */ e("span", { style: { display: "inline-flex", marginLeft: 8, flexShrink: 0 }, children: I }) : /* @__PURE__ */ e("span", { style: { marginLeft: 8, fontSize: "12px", flexShrink: 0 }, children: [p.val, p.num].filter(Boolean).join(" | ") })
1834
+ ]
1835
+ }
1836
+ ) }, T) : /* @__PURE__ */ s("div", { className: d["hn-left__indicator-item"], children: [
1837
+ /* @__PURE__ */ e(L, { className: d["hn-left__indicator-name"], children: p.name }),
1838
+ /* @__PURE__ */ e(
1839
+ "div",
1840
+ {
1841
+ className: d["hn-left__indicator-badge"],
1842
+ style: {
1843
+ backgroundColor: p.bg,
1844
+ color: p.color
1845
+ },
1846
+ children: [p.val, p.num].filter(Boolean).join(" | ")
1847
+ }
1848
+ )
1849
+ ] }, T);
1850
+ }) })
1851
+ ] }),
1852
+ /* @__PURE__ */ s("div", { className: d["hn-left__card-last"], children: [
1853
+ /* @__PURE__ */ s("div", { className: d["hn-left__prev-notes-header"], children: [
1854
+ /* @__PURE__ */ e("div", { className: d["hn-left__dot"], style: { backgroundColor: "#FFB04F" } }),
1855
+ /* @__PURE__ */ e(L, { children: r("previous_notes") })
1856
+ ] }),
1857
+ a?.previousOneToOneDate && !Z(a?.previousOneToOneDate) ? /* @__PURE__ */ s("div", { className: d["hn-left__prev-notes-block"], children: [
1858
+ /* @__PURE__ */ e(L, { style: { fontWeight: 600 }, children: Y(a.previousOneToOneDate).format("MMMM D, YYYY") }),
1859
+ a?.previousOneToOneNote && /* @__PURE__ */ e(L, { style: { marginTop: 4 }, children: a.previousOneToOneNote })
1860
+ ] }) : /* @__PURE__ */ e(L, { style: { color: "#94a3b8", fontSize: 12 }, children: r("no_conversation_history") })
1861
+ ] })
1862
+ ] }),
1863
+ /* @__PURE__ */ s("div", { className: d["hn-middle"], children: [
1864
+ /* @__PURE__ */ s("div", { className: d["hn-middle__focus-card"], children: [
1865
+ /* @__PURE__ */ s(L, { className: d["hn-middle__focus-label"], children: [
1866
+ "🎯 ",
1867
+ r("what_was_the_main_focus_of_this_session")
1868
+ ] }),
1869
+ /* @__PURE__ */ e("div", { className: d["hn-middle__focus-tags"], children: ["Academics", "Social", "Home Life", "Goals", "Personal", "Well-being"].map((p) => {
1870
+ const T = y.includes(p);
1871
+ return /* @__PURE__ */ e(
1872
+ V,
1873
+ {
1874
+ disabled: !0,
1875
+ className: `${d["hn-middle__focus-tag"]}${T ? ` ${d["hn-middle__focus-tag--active"]}` : ""}`,
1876
+ children: p
1877
+ },
1878
+ p
1879
+ );
1880
+ }) }),
1881
+ /* @__PURE__ */ e("div", { className: d["hn-middle__readonly-text"], children: a?.topicOneToOne || r("no_description_provided") })
1882
+ ] }),
1883
+ /* @__PURE__ */ s("div", { className: d["hn-middle__notes-card"], children: [
1884
+ /* @__PURE__ */ e(L, { className: d["hn-middle__notes-label"], children: r("other_notes_optional") }),
1885
+ /* @__PURE__ */ e("div", { className: d["hn-middle__readonly-text"], children: a?.oneToOneNote || a?.OneToOneNote || r("no_notes_added") })
1886
+ ] }),
1887
+ !c && /* @__PURE__ */ s("div", { className: d["hn-middle__strategy-card"], children: [
1888
+ /* @__PURE__ */ s(L, { className: d["hn-middle__strategy-label"], children: [
1889
+ "💡 ",
1890
+ r("agreed_learning_strategy")
1891
+ ] }),
1892
+ N.length > 0 ? /* @__PURE__ */ e("div", { className: d["hn-middle__strategy-chips"], children: N.map((p, T) => /* @__PURE__ */ e(Ue, { label: p, className: d["hn-middle__strategy-chip"] }, T)) }) : /* @__PURE__ */ e("div", { className: d["hn-middle__readonly-text"], children: r("no_strategy_selected") || "No agreed strategy selected" })
1893
+ ] }),
1894
+ /* @__PURE__ */ s("div", { className: d["hn-middle__outcomes-card"], children: [
1895
+ /* @__PURE__ */ s(L, { className: d["hn-middle__outcomes-label"], children: [
1896
+ "✅ ",
1897
+ r("session_outcomes_next_steps")
1898
+ ] }),
1899
+ /* @__PURE__ */ e("div", { className: d["hn-middle__outcomes-tags"], children: ["Follow-up Set", "Goal Established", "Refer to Counselor", "Action Item Created", "No Follow-up Necessary"].map((p) => {
1900
+ const T = C.includes(p);
1901
+ return /* @__PURE__ */ e(
1902
+ V,
1903
+ {
1904
+ disabled: !0,
1905
+ className: `${d["hn-middle__outcome-tag"]}${T ? ` ${d["hn-middle__outcome-tag--active"]}` : ""}`,
1906
+ children: p
1907
+ },
1908
+ p
1909
+ );
1910
+ }) })
1911
+ ] }),
1912
+ /* @__PURE__ */ s("div", { className: d["hn-middle__toggle-card"], children: [
1913
+ /* @__PURE__ */ e("div", { className: `${d["hn-middle__toggle-btn"]}${A ? ` ${d["hn-middle__toggle-btn--active"]}` : ""}`, children: /* @__PURE__ */ e(
1914
+ "div",
1915
+ {
1916
+ className: d["hn-middle__toggle-thumb"],
1917
+ style: {
1918
+ transform: A ? "translateX(24px)" : "translateX(0)"
1919
+ },
1920
+ children: A ? /* @__PURE__ */ e(Qa, { size: 14 }) : /* @__PURE__ */ e(za, { size: 14 })
1921
+ }
1922
+ ) }),
1923
+ /* @__PURE__ */ s("div", { className: d["hn-middle__toggle-info"], children: [
1924
+ /* @__PURE__ */ e(L, { className: d["hn-middle__toggle-label"], children: r("hidden_from_student") }),
1925
+ /* @__PURE__ */ e(L, { className: d["hn-middle__toggle-sub"], children: r(A ? "hidden_from_students_description" : "shared_with_students_unless_hidden") })
1926
+ ] })
1927
+ ] })
1928
+ ] }),
1929
+ !v && /* @__PURE__ */ s("div", { className: d["hn-right"], children: [
1930
+ /* @__PURE__ */ s("div", { className: d["hn-right__header"], children: [
1931
+ /* @__PURE__ */ s("div", { className: d["hn-right__header-title-row"], children: [
1932
+ /* @__PURE__ */ e(Ya, { size: 20 }),
1933
+ /* @__PURE__ */ e(L, { className: d["hn-right__header-title"], children: r("conversation_starters") })
1934
+ ] }),
1935
+ /* @__PURE__ */ e(L, { className: d["hn-right__header-sub"], children: r("tap_cards_to_guide_the_conversation") })
1936
+ ] }),
1937
+ /* @__PURE__ */ e("div", { className: d["hn-right__scroll-list"], children: i.map((p) => {
1938
+ const T = _ === p.id, I = (p.questions || []).reduce((P, q) => [...P, q, ...q.children || []], []), H = I.length, J = I.filter((P) => u.includes(String(P.id))).length, U = J === H && H > 0;
1939
+ return /* @__PURE__ */ s("div", { className: d["hn-right__cat-wrapper"], children: [
1940
+ /* @__PURE__ */ s(
1941
+ V,
1942
+ {
1943
+ onClick: () => m(T ? "" : p.id),
1944
+ className: `${d["hn-right__cat-btn"]}${T ? ` ${d["hn-right__cat-btn--expanded"]}` : ""}`,
1945
+ children: [
1946
+ /* @__PURE__ */ s("div", { className: d["hn-right__cat-inner-row"], children: [
1947
+ /* @__PURE__ */ e(
1948
+ "div",
1949
+ {
1950
+ className: d["hn-right__cat-icon-circle"],
1951
+ style: {
1952
+ "--hn-cat-gradient": p.gradient || "linear-gradient(135deg, #3b82f6, #6366f1)",
1953
+ "--hn-cat-border": U ? "2px solid #05df72" : "unset"
1954
+ },
1955
+ children: U ? "✓" : /* @__PURE__ */ s($, { children: [
1956
+ p.icon === "sparkles" && /* @__PURE__ */ e(Se, { size: 16 }),
1957
+ p.icon === "heart" && /* @__PURE__ */ e(Ua, { size: 16 }),
1958
+ p.icon === "trending-up" && /* @__PURE__ */ e(Va, { size: 16 }),
1959
+ p.icon === "trophy" && /* @__PURE__ */ e(Ka, { size: 16 }),
1960
+ !["sparkles", "heart", "trending-up", "trophy"].includes(p.icon) && /* @__PURE__ */ e(Se, { size: 16 })
1961
+ ] })
1962
+ }
1963
+ ),
1964
+ /* @__PURE__ */ s("div", { className: d["hn-right__cat-title-col"], children: [
1965
+ /* @__PURE__ */ e(L, { className: d["hn-right__cat-label"], children: p.label }),
1966
+ U && /* @__PURE__ */ e(L, { className: d["hn-right__cat-completed"], children: r("completed") })
1967
+ ] })
1968
+ ] }),
1969
+ /* @__PURE__ */ s("div", { className: d["hn-right__cat-right"], children: [
1970
+ /* @__PURE__ */ s(L, { className: `${d["hn-right__cat-count"]}${U ? ` ${d["hn-right__cat-count--completed"]}` : ""}`, children: [
1971
+ J,
1972
+ "/",
1973
+ H
1974
+ ] }),
1975
+ /* @__PURE__ */ e(
1976
+ ja,
1977
+ {
1978
+ size: 16,
1979
+ style: {
1980
+ transition: "transform 0.2s",
1981
+ transform: T ? "rotate(180deg)" : "rotate(0)"
1982
+ }
1983
+ }
1984
+ )
1985
+ ] })
1986
+ ]
1987
+ }
1988
+ ),
1989
+ T && /* @__PURE__ */ e("div", { className: d["hn-right__questions-list"], children: (p.questions || []).map((P, q) => {
1990
+ const z = u.includes(String(P.id));
1991
+ return /* @__PURE__ */ s("div", { className: d["hn-right__question-group"], children: [
1992
+ /* @__PURE__ */ s(
1993
+ V,
1994
+ {
1995
+ onClick: () => w(String(P.id)),
1996
+ className: [
1997
+ d["hn-right__question-btn"],
1998
+ z ? d["hn-right__question-btn--clicked"] : ""
1999
+ ].filter(Boolean).join(" "),
2000
+ children: [
2001
+ /* @__PURE__ */ e(
2002
+ "div",
2003
+ {
2004
+ className: d["hn-right__q-dot"],
2005
+ style: {
2006
+ "--hn-q-dot-bg": z ? "#10B981" : p.gradient || "#3b82f6"
2007
+ },
2008
+ children: z ? "✓" : "L1"
2009
+ }
2010
+ ),
2011
+ /* @__PURE__ */ e(L, { className: `${d["hn-right__question-text"]}${z ? ` ${d["hn-right__question-text--clicked"]}` : ""}`, children: P.question })
2012
+ ]
2013
+ }
2014
+ ),
2015
+ z && P.children && P.children.length > 0 && /* @__PURE__ */ e("div", { className: d["hn-right__l2-list"], style: { marginLeft: "24px", marginTop: "8px", display: "flex", flexDirection: "column", gap: "8px" }, children: P.children.map((ee, Pe) => {
2016
+ const te = u.includes(String(ee.id));
2017
+ return /* @__PURE__ */ s(
2018
+ V,
2019
+ {
2020
+ onClick: () => w(String(ee.id)),
2021
+ className: [
2022
+ d["hn-right__question-btn"],
2023
+ d["hn-right__question-btn--l2"],
2024
+ te ? d["hn-right__question-btn--clicked"] : ""
2025
+ ].filter(Boolean).join(" "),
2026
+ children: [
2027
+ /* @__PURE__ */ e(
2028
+ "div",
2029
+ {
2030
+ className: d["hn-right__q-dot"],
2031
+ style: {
2032
+ "--hn-q-dot-bg": te ? "#10B981" : p.gradient || "#3b82f6"
2033
+ },
2034
+ children: te ? "✓" : "L2"
2035
+ }
2036
+ ),
2037
+ /* @__PURE__ */ e(L, { className: `${d["hn-right__question-text"]}${te ? ` ${d["hn-right__question-text--clicked"]}` : ""}`, children: ee.question })
2038
+ ]
2039
+ },
2040
+ ee.id || Pe
2041
+ );
2042
+ }) })
2043
+ ] }, P.id || q);
2044
+ }) })
2045
+ ] }, p.id);
2046
+ }) })
2047
+ ] })
2048
+ ] })
2049
+ ] })
2050
+ }
2051
+ );
2052
+ }, Ja = "/images/image-default.png";
2053
+ function qa(t) {
2054
+ if (!t) return "";
2055
+ const o = Y(t);
2056
+ return o.isValid() ? o.format("DD MMM YYYY · h:mm A") : t;
2057
+ }
2058
+ const es = ({
2059
+ kind: t,
2060
+ open: o,
2061
+ onClose: a,
2062
+ students: l,
2063
+ curriculumSystem: i = "US",
2064
+ conversationStarters: h = [],
2065
+ conversationStartersEs: r = [],
2066
+ conversationStartersMs: _ = []
2067
+ }) => {
2068
+ const m = X(), { t: u } = D(), [g, w] = ie.useState(null), [c, v] = ie.useState(!1), [S, k] = ie.useState(null), b = t === "red", y = b ? "#C44140" : "#F5D500", C = b ? n.iconBadgeRed : n.iconBadgeYellow, N = b ? n.studentAvatarRed : n.studentAvatarYellow, x = l && l.length > 0 ? l : [], E = u(b ? "red_flags_this_month" : "yellow_flags_this_month"), B = `${x.length} ${u("students_flagged_review_check_in")}`, F = async (f, G) => {
2069
+ f && (k(f), await Ze(f, G, (j) => {
2070
+ w({ ...j, isEs: G }), v(!0);
2071
+ }), k(null));
2072
+ }, A = g?.isEs || g?.schoolType?.toUpperCase() === "ES" || g?.schoolLevel === "es", M = A ? r.length > 0 ? r : h : _.length > 0 ? _ : h;
2073
+ return /* @__PURE__ */ s($, { children: [
2074
+ /* @__PURE__ */ s(
2075
+ _e,
2076
+ {
2077
+ open: o,
2078
+ onClose: a,
2079
+ maxWidth: "md",
2080
+ fullWidth: !0,
2081
+ PaperProps: {
2082
+ style: {
2083
+ borderRadius: 20,
2084
+ boxShadow: "0 20px 60px rgba(31, 63, 115, 0.3)",
2085
+ overflow: "hidden"
2086
+ }
2087
+ },
2088
+ children: [
2089
+ /* @__PURE__ */ s("div", { className: n.modalHeader, children: [
2090
+ /* @__PURE__ */ e("div", { className: `${n.iconBadge} ${C}`, children: /* @__PURE__ */ e(Ae, { fill: y, width: 20, height: 24 }) }),
2091
+ /* @__PURE__ */ s("div", { children: [
2092
+ /* @__PURE__ */ e("h2", { className: n.modalTitle, children: E }),
2093
+ /* @__PURE__ */ e("p", { className: n.modalSubtitle, children: B })
2094
+ ] }),
2095
+ /* @__PURE__ */ e("button", { type: "button", className: n.modalCloseBtn, onClick: a, children: /* @__PURE__ */ e(Ge, { width: 18, height: 18, color: "rgba(36,36,36,0.56)" }) })
2096
+ ] }),
2097
+ /* @__PURE__ */ e(Le, { className: n.dialogContentZero, children: /* @__PURE__ */ e("div", { className: n.modalStudentList, children: x.map((f) => /* @__PURE__ */ s("div", { className: n.studentRow, children: [
2098
+ f.avatar ? /* @__PURE__ */ e(
2099
+ ue,
2100
+ {
2101
+ alt: f.fullName?.toUpperCase(),
2102
+ src: re(f.avatar) || Ja,
2103
+ className: `${n.studentAvatar} ${N}`
2104
+ }
2105
+ ) : /* @__PURE__ */ e("div", { className: `${n.studentAvatar} ${N}`, children: Be(f.fullName) }),
2106
+ /* @__PURE__ */ s("div", { className: n.studentInfoCol, children: [
2107
+ /* @__PURE__ */ s("div", { className: n.studentName, children: [
2108
+ f.fullName,
2109
+ " ",
2110
+ /* @__PURE__ */ s("span", { className: n.studentGrade, children: [
2111
+ "· ",
2112
+ ge(f.gradeLevel, i === "UK")
2113
+ ] })
2114
+ ] }),
2115
+ /* @__PURE__ */ s("div", { className: n.studentMetaRow, children: [
2116
+ /* @__PURE__ */ s("span", { className: n.dateLabel, children: [
2117
+ /* @__PURE__ */ e(ot, { width: 12, height: 12 }),
2118
+ qa(f.lastInteractionDate)
2119
+ ] }),
2120
+ f.hasOneToOneLogged ? /* @__PURE__ */ s("span", { className: n.loggedPill, children: [
2121
+ /* @__PURE__ */ e(lt, { width: 13, height: 13 }),
2122
+ u("one_to_one_logged"),
2123
+ f.loggedByEducatorName ? ` · ${f.loggedByEducatorName}` : ""
2124
+ ] }) : /* @__PURE__ */ s("span", { className: n.notLoggedPill, children: [
2125
+ /* @__PURE__ */ e(rt, { width: 13, height: 13 }),
2126
+ u("no_one_to_one_yet")
2127
+ ] })
2128
+ ] })
2129
+ ] }),
2130
+ /* @__PURE__ */ s("div", { className: n.modalActionButtons, children: [
2131
+ /* @__PURE__ */ s(
2132
+ "button",
2133
+ {
2134
+ type: "button",
2135
+ className: n.btnViewCheckIn,
2136
+ onClick: () => pe(m, f.sessionId, f.sessionResultId, f.studentId, f.schoolType?.toUpperCase() === "ES"),
2137
+ children: [
2138
+ /* @__PURE__ */ e(Ee, { width: 15, height: 15 }),
2139
+ /* @__PURE__ */ e("span", { children: u("view_check_in") })
2140
+ ]
2141
+ }
2142
+ ),
2143
+ /* @__PURE__ */ s(
2144
+ "button",
2145
+ {
2146
+ type: "button",
2147
+ disabled: !f.hasOneToOneLogged || S === f.sessionId,
2148
+ className: f.hasOneToOneLogged ? n.btnViewLogActive : n.btnViewLogDisabled,
2149
+ onClick: () => F(f.sessionId, f.schoolType?.toUpperCase() === "ES"),
2150
+ children: [
2151
+ /* @__PURE__ */ e(it, { width: 15, height: 15 }),
2152
+ /* @__PURE__ */ e("span", { children: S === f.sessionId ? "..." : u("view_log") })
2153
+ ]
2154
+ }
2155
+ )
2156
+ ] })
2157
+ ] }, f.studentId || f.fullName)) }) })
2158
+ ]
2159
+ }
2160
+ ),
2161
+ c && /* @__PURE__ */ e(
2162
+ Xa,
2163
+ {
2164
+ isOpen: c,
2165
+ onClose: () => {
2166
+ v(!1), w(null);
2167
+ },
2168
+ sessionSelected: g,
2169
+ conversationStarters: M,
2170
+ isEs: A
2171
+ }
2172
+ )
2173
+ ] });
2174
+ }, ds = () => {
2175
+ const { t } = D(), {
2176
+ loadingInit: o,
2177
+ loadingAnalytics: a,
2178
+ initData: l,
2179
+ analyticsData: i,
2180
+ caseMode: h,
2181
+ curriculumSystem: r,
2182
+ setCurriculumSystem: _,
2183
+ flagModal: m,
2184
+ setFlagModal: u,
2185
+ schoolType: g,
2186
+ esSessionIframe: w,
2187
+ setEsSessionIframe: c,
2188
+ conversationStartersEs: v,
2189
+ conversationStartersMs: S
2190
+ } = Xe("BOTH");
2191
+ se(() => {
2192
+ const F = (M) => {
2193
+ (M.data === "closeEsIframe" || M.data?.action === "backOverview" || M.data?.type === "BACK_OVERVIEW") && c(null);
2194
+ }, A = (M) => {
2195
+ const f = M;
2196
+ f.detail && c(f.detail);
2197
+ };
2198
+ return window.addEventListener("message", F), window.addEventListener("OPEN_ES_IFRAME", A), () => {
2199
+ window.removeEventListener("message", F), window.removeEventListener("OPEN_ES_IFRAME", A);
2200
+ };
2201
+ }, [c]);
2202
+ const b = t(h === "with" ? "campus_engagement_and_guardrail_overview" : "school_engagement_and_overview"), y = t("real_time_summary_of_student_wellness"), C = i?.flaggedStudents?.redFlagCount ?? 0, N = i?.flaggedStudents?.yellowFlagCount ?? 0, x = i?.flaggedStudents?.redFlags, E = i?.flaggedStudents?.yellowFlags, B = w ? `${window.location.origin}/es/view-session/${w.sessionId}/${w.sessionResultId}?isReadOnly=true&fullsize=true` : "";
2203
+ return /* @__PURE__ */ s("div", { className: n.overviewContainer, children: [
2204
+ /* @__PURE__ */ e("main", { className: n.mainContent, children: /* @__PURE__ */ s("div", { className: n.maxWidthWrapper, children: [
2205
+ /* @__PURE__ */ s("div", { className: n.headerRow, children: [
2206
+ /* @__PURE__ */ s("div", { children: [
2207
+ /* @__PURE__ */ e("h1", { className: n.mainTitle, children: b }),
2208
+ /* @__PURE__ */ e("p", { className: n.subTitle, children: y })
2209
+ ] }),
2210
+ o ? /* @__PURE__ */ e("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", minWidth: 100, height: 38 }, children: /* @__PURE__ */ e(K, { size: 20 }) }) : /* @__PURE__ */ e(Ha, { adminTips: l?.adminTips })
2211
+ ] }),
2212
+ /* @__PURE__ */ s("div", { className: n.layoutGrid, children: [
2213
+ /* @__PURE__ */ s("div", { className: n.leftColumn, children: [
2214
+ a ? /* @__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(K, { size: 28 }) }) : /* @__PURE__ */ s("div", { className: n.statCardGrid, children: [
2215
+ /* @__PURE__ */ e(
2216
+ Te,
2217
+ {
2218
+ kind: "red",
2219
+ label: t("red_flags_this_month"),
2220
+ value: C,
2221
+ onOpen: () => u("red")
2222
+ }
2223
+ ),
2224
+ /* @__PURE__ */ e(
2225
+ Te,
2226
+ {
2227
+ kind: "yellow",
2228
+ label: t("yellow_flags_this_month"),
2229
+ value: N,
2230
+ onOpen: () => u("yellow")
2231
+ }
2232
+ )
2233
+ ] }),
2234
+ o ? /* @__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(K, { size: 28 }) }) : /* @__PURE__ */ e(Ga, { students: l?.students }),
2235
+ a ? /* @__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(K, { size: 32 }) }) : /* @__PURE__ */ e(
2236
+ Pa,
2237
+ {
2238
+ wellnessData: i?.studentWellness,
2239
+ schoolType: g
2240
+ }
2241
+ )
2242
+ ] }),
2243
+ /* @__PURE__ */ e("div", { className: n.rightColumn, children: a ? /* @__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(K, { size: 32 }) }) : /* @__PURE__ */ e(Da, { usageData: i?.schoolMonthlyUsage }) })
2244
+ ] }),
2245
+ a ? /* @__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(K, { size: 32 }) }) : /* @__PURE__ */ e(
2246
+ $a,
2247
+ {
2248
+ gradeOverview: i?.schoolOverviewByGrade,
2249
+ caseMode: h,
2250
+ curriculumSystem: r,
2251
+ onSetCurriculumSystem: _
2252
+ }
2253
+ )
2254
+ ] }) }),
2255
+ m && /* @__PURE__ */ e(
2256
+ es,
2257
+ {
2258
+ kind: m,
2259
+ open: !!m,
2260
+ onClose: () => u(null),
2261
+ students: m === "red" ? x : E,
2262
+ curriculumSystem: r,
2263
+ conversationStartersEs: v,
2264
+ conversationStartersMs: S
2265
+ }
2266
+ ),
2267
+ w && /* @__PURE__ */ s("div", { style: { position: "fixed", top: 0, left: 0, right: 0, bottom: 0, zIndex: 9999, background: "#ffffff", display: "flex", flexDirection: "column" }, children: [
2268
+ /* @__PURE__ */ s("div", { style: { height: 48, padding: "0 20px", background: "#F8FAFC", borderBottom: "1px solid #E2E8F0", display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
2269
+ /* @__PURE__ */ s(
2270
+ "button",
2271
+ {
2272
+ type: "button",
2273
+ onClick: () => c(null),
2274
+ style: { display: "flex", alignItems: "center", gap: 8, border: "none", background: "transparent", cursor: "pointer", fontSize: 14, fontWeight: 600, color: "#316CD9" },
2275
+ children: [
2276
+ /* @__PURE__ */ e(pt, { width: 18, height: 18, color: "#316CD9" }),
2277
+ /* @__PURE__ */ e("span", { children: t("back_to_overview") })
2278
+ ]
2279
+ }
2280
+ ),
2281
+ /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 500, color: "#64748B" }, children: t("elementary_session_view") })
2282
+ ] }),
2283
+ /* @__PURE__ */ e(
2284
+ "iframe",
2285
+ {
2286
+ src: B,
2287
+ style: { width: "100%", flex: 1, border: "none", display: "block" },
2288
+ title: "Elementary Session View"
2289
+ }
2290
+ )
2291
+ ] })
2292
+ ] });
2293
+ };
2294
+ export {
2295
+ ds as default
2296
+ };