@cuemath/leap 3.5.32-as3 → 3.5.32-as6

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.
Files changed (33) hide show
  1. package/dist/features/timeline/comps/new-progress-intro-modal/new-progress-intro-modal-constants.js +7 -7
  2. package/dist/features/timeline/comps/new-progress-intro-modal/new-progress-intro-modal-constants.js.map +1 -1
  3. package/dist/features/timeline/comps/new-progress-intro-modal/new-progress-intro-modal.js +13 -13
  4. package/dist/features/timeline/comps/new-progress-intro-modal/new-progress-intro-modal.js.map +1 -1
  5. package/dist/features/timeline/monthly-timeline/api/use-monthly-timeline-get.js +5 -5
  6. package/dist/features/timeline/monthly-timeline/api/use-monthly-timeline-get.js.map +1 -1
  7. package/dist/features/timeline/monthly-timeline/comps/monthly-card/monthly-card.js +40 -40
  8. package/dist/features/timeline/monthly-timeline/comps/monthly-card/monthly-card.js.map +1 -1
  9. package/dist/features/timeline/monthly-timeline/constants.js.map +1 -1
  10. package/dist/features/timeline/monthly-timeline/monthly-report/api/{use-monthly-report-get.js → use-monthly-report-api.js} +4 -4
  11. package/dist/features/timeline/monthly-timeline/monthly-report/api/use-monthly-report-api.js.map +1 -0
  12. package/dist/features/timeline/monthly-timeline/monthly-report/comps/activities/activities-card/activities-card.js +52 -52
  13. package/dist/features/timeline/monthly-timeline/monthly-report/comps/activities/activities-card/activities-card.js.map +1 -1
  14. package/dist/features/timeline/monthly-timeline/monthly-report/comps/activities/activities-card-puzzles/activities-card-puzzles.js +39 -88
  15. package/dist/features/timeline/monthly-timeline/monthly-report/comps/activities/activities-card-puzzles/activities-card-puzzles.js.map +1 -1
  16. package/dist/features/timeline/monthly-timeline/monthly-report/comps/activities/activities-card-puzzles/activity-puzzle-card.js +66 -0
  17. package/dist/features/timeline/monthly-timeline/monthly-report/comps/activities/activities-card-puzzles/activity-puzzle-card.js.map +1 -0
  18. package/dist/features/timeline/monthly-timeline/monthly-report/comps/activities/activities.js +13 -13
  19. package/dist/features/timeline/monthly-timeline/monthly-report/comps/activities/activities.js.map +1 -1
  20. package/dist/features/timeline/monthly-timeline/monthly-report/comps/activities/utils.js +6 -12
  21. package/dist/features/timeline/monthly-timeline/monthly-report/comps/activities/utils.js.map +1 -1
  22. package/dist/features/timeline/monthly-timeline/monthly-report/comps/feedback/feedback.js +12 -12
  23. package/dist/features/timeline/monthly-timeline/monthly-report/comps/feedback/feedback.js.map +1 -1
  24. package/dist/features/timeline/monthly-timeline/monthly-report/monthly-report.js +69 -59
  25. package/dist/features/timeline/monthly-timeline/monthly-report/monthly-report.js.map +1 -1
  26. package/dist/features/timeline/monthly-timeline/monthly-timeline.js +49 -46
  27. package/dist/features/timeline/monthly-timeline/monthly-timeline.js.map +1 -1
  28. package/dist/features/timeline/timeline-tabs/constants.js +17 -0
  29. package/dist/features/timeline/timeline-tabs/constants.js.map +1 -0
  30. package/dist/features/timeline/timeline-tabs/timeline-tabs.js +23 -37
  31. package/dist/features/timeline/timeline-tabs/timeline-tabs.js.map +1 -1
  32. package/package.json +1 -1
  33. package/dist/features/timeline/monthly-timeline/monthly-report/api/use-monthly-report-get.js.map +0 -1
@@ -1,17 +1,17 @@
1
- import { ILLUSTRATIONS as e } from "../../../../assets/illustrations/illustrations.js";
2
- const t = [
1
+ import { ILLUSTRATIONS as i } from "../../../../assets/illustrations/illustrations.js";
2
+ const o = [
3
3
  {
4
4
  title: "Daily Progress",
5
- description: "View all activities (class + home) in real-time",
6
- icon: e.CLOCK_PURPLE
5
+ description: "Track both in-class and at-home activities in real-time",
6
+ icon: i.CLOCK_PURPLE
7
7
  },
8
8
  {
9
9
  title: "Monthly Reports",
10
- description: "Get detailed summaries of progress and achievements",
11
- icon: e.CALENDAR_PURPLE_2
10
+ description: "Get insights into your child's monthly progress and achievements",
11
+ icon: i.CALENDAR_PURPLE_2
12
12
  }
13
13
  ];
14
14
  export {
15
- t as PROGRESS_INFO
15
+ o as PROGRESS_INFO
16
16
  };
17
17
  //# sourceMappingURL=new-progress-intro-modal-constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"new-progress-intro-modal-constants.js","sources":["../../../../../src/features/timeline/comps/new-progress-intro-modal/new-progress-intro-modal-constants.ts"],"sourcesContent":["import { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\n\nexport const PROGRESS_INFO: {\n title: string;\n description: string;\n icon: string;\n}[] = [\n {\n title: 'Daily Progress',\n description: 'View all activities (class + home) in real-time',\n icon: ILLUSTRATIONS.CLOCK_PURPLE,\n },\n {\n title: 'Monthly Reports',\n description: 'Get detailed summaries of progress and achievements',\n icon: ILLUSTRATIONS.CALENDAR_PURPLE_2,\n },\n];\n"],"names":["PROGRESS_INFO","ILLUSTRATIONS"],"mappings":";AAEO,MAAMA,IAIP;AAAA,EACJ;AAAA,IACE,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAMC,EAAc;AAAA,EACtB;AAAA,EACA;AAAA,IACE,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAMA,EAAc;AAAA,EACtB;AACF;"}
1
+ {"version":3,"file":"new-progress-intro-modal-constants.js","sources":["../../../../../src/features/timeline/comps/new-progress-intro-modal/new-progress-intro-modal-constants.ts"],"sourcesContent":["import { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\n\nexport const PROGRESS_INFO: {\n title: string;\n description: string;\n icon: string;\n}[] = [\n {\n title: 'Daily Progress',\n description: 'Track both in-class and at-home activities in real-time',\n icon: ILLUSTRATIONS.CLOCK_PURPLE,\n },\n {\n title: 'Monthly Reports',\n description: `Get insights into your child's monthly progress and achievements`,\n icon: ILLUSTRATIONS.CALENDAR_PURPLE_2,\n },\n];\n"],"names":["PROGRESS_INFO","ILLUSTRATIONS"],"mappings":";AAEO,MAAMA,IAIP;AAAA,EACJ;AAAA,IACE,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAMC,EAAc;AAAA,EACtB;AAAA,EACA;AAAA,IACE,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAMA,EAAc;AAAA,EACtB;AACF;"}
@@ -1,35 +1,35 @@
1
1
  import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
- import { memo as h } from "react";
2
+ import { memo as d } from "react";
3
3
  import r from "../../../ui/layout/flex-view.js";
4
4
  import n from "../../../ui/separator/separator.js";
5
5
  import l from "../../../ui/image/image.js";
6
6
  import { ILLUSTRATIONS as a } from "../../../../assets/illustrations/illustrations.js";
7
- import o from "../../../ui/text/text.js";
8
- import { PROGRESS_INFO as d } from "./new-progress-intro-modal-constants.js";
9
- import m from "../../../ui/buttons/button/button.js";
10
- const g = ({ onClose: s }) => /* @__PURE__ */ t(r, { children: [
7
+ import i from "../../../ui/text/text.js";
8
+ import { PROGRESS_INFO as h } from "./new-progress-intro-modal-constants.js";
9
+ import g from "../../../ui/buttons/button/button.js";
10
+ const m = ({ onClose: s }) => /* @__PURE__ */ t(r, { children: [
11
11
  /* @__PURE__ */ t(r, { $background: "PURPLE_4", $alignItems: "center", $justifyContent: "center", children: [
12
12
  /* @__PURE__ */ e(n, { heightX: 1.5 }),
13
13
  /* @__PURE__ */ e(r, { $gutterX: 1.5, $alignItems: "center", $justifyContent: "center", $gap: 50, children: /* @__PURE__ */ e(l, { src: a.PROGRESS_BAR_PURPLE }) })
14
14
  ] }),
15
15
  /* @__PURE__ */ t(r, { $gutterX: 2, $gapX: 1.5, children: [
16
16
  /* @__PURE__ */ t(r, { children: [
17
- /* @__PURE__ */ e(o, { $renderAs: "ab1-bold", children: "New on Cuemath: Enhanced Progress Tracking!" }),
17
+ /* @__PURE__ */ e(i, { $renderAs: "ab1-bold", children: "Introducing: Enhanced Progress Tracking" }),
18
18
  /* @__PURE__ */ e(n, { height: 4 }),
19
- /* @__PURE__ */ e(o, { $renderAs: "ub1", children: "See your child's complete learning journey in one place. What’s New:" })
19
+ /* @__PURE__ */ e(i, { $renderAs: "ub1", children: "View your child's complete learning journey all in one place. Here’s what’s new:" })
20
20
  ] }),
21
21
  /* @__PURE__ */ e(n, { heightX: 1.5 }),
22
- d.map((i, c) => /* @__PURE__ */ t(
22
+ h.map((o, c) => /* @__PURE__ */ t(
23
23
  r,
24
24
  {
25
25
  $flexDirection: "row",
26
26
  $alignItems: "flex-start",
27
27
  $flexGapX: 0.5,
28
28
  children: [
29
- /* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(l, { src: i.icon, width: 32, height: 32 }) }),
29
+ /* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(l, { src: o.icon, width: 32, height: 32 }) }),
30
30
  /* @__PURE__ */ t(r, { $gutter: 4, $flex: 1, children: [
31
- /* @__PURE__ */ e(o, { $renderAs: "ub1-bold", children: i.title }),
32
- /* @__PURE__ */ e(o, { $renderAs: "ub1", children: i.description }),
31
+ /* @__PURE__ */ e(i, { $renderAs: "ub1-bold", children: o.title }),
32
+ /* @__PURE__ */ e(i, { $renderAs: "ub1", children: o.description }),
33
33
  /* @__PURE__ */ e(n, { heightX: 1.5 })
34
34
  ] })
35
35
  ]
@@ -37,7 +37,7 @@ const g = ({ onClose: s }) => /* @__PURE__ */ t(r, { children: [
37
37
  `progress-info-${c}`
38
38
  )),
39
39
  /* @__PURE__ */ e(r, { $alignItems: "center", $justifyContent: "center", $gapX: 0.5, children: /* @__PURE__ */ e(
40
- m,
40
+ g,
41
41
  {
42
42
  width: 240,
43
43
  label: "View progress",
@@ -47,7 +47,7 @@ const g = ({ onClose: s }) => /* @__PURE__ */ t(r, { children: [
47
47
  }
48
48
  ) })
49
49
  ] })
50
- ] }), R = h(g);
50
+ ] }), R = d(m);
51
51
  export {
52
52
  R as default
53
53
  };
@@ -1 +1 @@
1
- {"version":3,"file":"new-progress-intro-modal.js","sources":["../../../../../src/features/timeline/comps/new-progress-intro-modal/new-progress-intro-modal.tsx"],"sourcesContent":["import { memo } from 'react';\n\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport Image from '../../../ui/image/image';\nimport { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\nimport Text from '../../../ui/text/text';\nimport { PROGRESS_INFO } from './new-progress-intro-modal-constants';\nimport Button from '../../../ui/buttons/button/button';\n\nconst NewProgressIntroModal = ({ onClose }: { onClose: () => void }) => {\n return (\n <FlexView>\n <FlexView $background=\"PURPLE_4\" $alignItems=\"center\" $justifyContent=\"center\">\n <Separator heightX={1.5} />\n <FlexView $gutterX={1.5} $alignItems=\"center\" $justifyContent=\"center\" $gap={50}>\n <Image src={ILLUSTRATIONS.PROGRESS_BAR_PURPLE} />\n </FlexView>\n </FlexView>\n <FlexView $gutterX={2} $gapX={1.5}>\n <FlexView>\n <Text $renderAs=\"ab1-bold\">New on Cuemath: Enhanced Progress Tracking!</Text>\n <Separator height={4} />\n <Text $renderAs=\"ub1\">\n See your child's complete learning journey in one place. What’s New:\n </Text>\n </FlexView>\n <Separator heightX={1.5} />\n {PROGRESS_INFO.map((item, index) => (\n <FlexView\n key={`progress-info-${index}`}\n $flexDirection=\"row\"\n $alignItems=\"flex-start\"\n $flexGapX={0.5}\n >\n <FlexView>\n <Image src={item.icon} width={32} height={32} />\n </FlexView>\n <FlexView $gutter={4} $flex={1}>\n <Text $renderAs=\"ub1-bold\">{item.title}</Text>\n <Text $renderAs=\"ub1\">{item.description}</Text>\n <Separator heightX={1.5} />\n </FlexView>\n </FlexView>\n ))}\n <FlexView $alignItems=\"center\" $justifyContent=\"center\" $gapX={0.5}>\n <Button\n width={240}\n label=\"View progress\"\n renderAs=\"black\"\n shape=\"square\"\n onClick={onClose}\n />\n </FlexView>\n </FlexView>\n </FlexView>\n );\n};\n\nexport default memo(NewProgressIntroModal);\n"],"names":["NewProgressIntroModal","onClose","FlexView","jsxs","jsx","Separator","Image","ILLUSTRATIONS","Text","PROGRESS_INFO","item","index","Button","newProgressIntroModal","memo"],"mappings":";;;;;;;;;AAUA,MAAMA,IAAwB,CAAC,EAAE,SAAAC,0BAE5BC,GACC,EAAA,UAAA;AAAA,EAAA,gBAAAC,EAACD,KAAS,aAAY,YAA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AA;AAAA,MAZK,iBAAiBM,CAAK;AAAA,IAAA,CAc9B;AAAA,sBACAT,GAAS,EAAA,aAAY,UAAS,iBAAgB,UAAS,OAAO,KAC7D,UAAA,gBAAAE;AAAA,MAACQ;AAAA,MAAA;AAAA,QACC,OAAO;AAAA,QACP,OAAM;AAAA,QACN,UAAS;AAAA,QACT,OAAM;AAAA,QACN,SAASX;AAAA,MAAA;AAAA,IAAA,GAEb;AAAA,EAAA,GACF;AACF,EAAA,CAAA,GAIWY,IAAAC,EAAKd,CAAqB;"}
1
+ {"version":3,"file":"new-progress-intro-modal.js","sources":["../../../../../src/features/timeline/comps/new-progress-intro-modal/new-progress-intro-modal.tsx"],"sourcesContent":["import { memo } from 'react';\n\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport Image from '../../../ui/image/image';\nimport { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\nimport Text from '../../../ui/text/text';\nimport { PROGRESS_INFO } from './new-progress-intro-modal-constants';\nimport Button from '../../../ui/buttons/button/button';\n\nconst NewProgressIntroModal = ({ onClose }: { onClose: () => void }) => {\n return (\n <FlexView>\n <FlexView $background=\"PURPLE_4\" $alignItems=\"center\" $justifyContent=\"center\">\n <Separator heightX={1.5} />\n <FlexView $gutterX={1.5} $alignItems=\"center\" $justifyContent=\"center\" $gap={50}>\n <Image src={ILLUSTRATIONS.PROGRESS_BAR_PURPLE} />\n </FlexView>\n </FlexView>\n <FlexView $gutterX={2} $gapX={1.5}>\n <FlexView>\n <Text $renderAs=\"ab1-bold\">Introducing: Enhanced Progress Tracking</Text>\n <Separator height={4} />\n <Text $renderAs=\"ub1\">\n View your child's complete learning journey all in one place. Here’s what’s new:\n </Text>\n </FlexView>\n <Separator heightX={1.5} />\n {PROGRESS_INFO.map((item, index) => (\n <FlexView\n key={`progress-info-${index}`}\n $flexDirection=\"row\"\n $alignItems=\"flex-start\"\n $flexGapX={0.5}\n >\n <FlexView>\n <Image src={item.icon} width={32} height={32} />\n </FlexView>\n <FlexView $gutter={4} $flex={1}>\n <Text $renderAs=\"ub1-bold\">{item.title}</Text>\n <Text $renderAs=\"ub1\">{item.description}</Text>\n <Separator heightX={1.5} />\n </FlexView>\n </FlexView>\n ))}\n <FlexView $alignItems=\"center\" $justifyContent=\"center\" $gapX={0.5}>\n <Button\n width={240}\n label=\"View progress\"\n renderAs=\"black\"\n shape=\"square\"\n onClick={onClose}\n />\n </FlexView>\n </FlexView>\n </FlexView>\n );\n};\n\nexport default memo(NewProgressIntroModal);\n"],"names":["NewProgressIntroModal","onClose","FlexView","jsxs","jsx","Separator","Image","ILLUSTRATIONS","Text","PROGRESS_INFO","item","index","Button","newProgressIntroModal","memo"],"mappings":";;;;;;;;;AAUA,MAAMA,IAAwB,CAAC,EAAE,SAAAC,0BAE5BC,GACC,EAAA,UAAA;AAAA,EAAA,gBAAAC,EAACD,KAAS,aAAY,YAAW,aAAY,UAAS,iBAAgB,UACpE,UAAA;AAAA,IAAC,gBAAAE,EAAAC,GAAA,EAAU,SAAS,IAAK,CAAA;AAAA,IACxB,gBAAAD,EAAAF,GAAA,EAAS,UAAU,KAAK,aAAY,UAAS,iBAAgB,UAAS,MAAM,IAC3E,UAAC,gBAAAE,EAAAE,GAAA,EAAM,KAAKC,EAAc,oBAAqB,CAAA,GACjD;AAAA,EAAA,GACF;AAAA,EACC,gBAAAJ,EAAAD,GAAA,EAAS,UAAU,GAAG,OAAO,KAC5B,UAAA;AAAA,IAAA,gBAAAC,EAACD,GACC,EAAA,UAAA;AAAA,MAAC,gBAAAE,EAAAI,GAAA,EAAK,WAAU,YAAW,UAAuC,2CAAA;AAAA,MAClE,gBAAAJ,EAACC,GAAU,EAAA,QAAQ,EAAG,CAAA;AAAA,MACrB,gBAAAD,EAAAI,GAAA,EAAK,WAAU,OAAM,UAEtB,oFAAA;AAAA,IAAA,GACF;AAAA,IACA,gBAAAJ,EAACC,GAAU,EAAA,SAAS,IAAK,CAAA;AAAA,IACxBI,EAAc,IAAI,CAACC,GAAMC,MACxB,gBAAAR;AAAA,MAACD;AAAA,MAAA;AAAA,QAEC,gBAAe;AAAA,QACf,aAAY;AAAA,QACZ,WAAW;AAAA,QAEX,UAAA;AAAA,UAAC,gBAAAE,EAAAF,GAAA,EACC,UAAC,gBAAAE,EAAAE,GAAA,EAAM,KAAKI,EAAK,MAAM,OAAO,IAAI,QAAQ,GAAA,CAAI,EAChD,CAAA;AAAA,UACC,gBAAAP,EAAAD,GAAA,EAAS,SAAS,GAAG,OAAO,GAC3B,UAAA;AAAA,YAAA,gBAAAE,EAACI,GAAK,EAAA,WAAU,YAAY,UAAAE,EAAK,OAAM;AAAA,YACtC,gBAAAN,EAAAI,GAAA,EAAK,WAAU,OAAO,YAAK,aAAY;AAAA,YACxC,gBAAAJ,EAACC,GAAU,EAAA,SAAS,IAAK,CAAA;AAAA,UAAA,GAC3B;AAAA,QAAA;AAAA,MAAA;AAAA,MAZK,iBAAiBM,CAAK;AAAA,IAAA,CAc9B;AAAA,sBACAT,GAAS,EAAA,aAAY,UAAS,iBAAgB,UAAS,OAAO,KAC7D,UAAA,gBAAAE;AAAA,MAACQ;AAAA,MAAA;AAAA,QACC,OAAO;AAAA,QACP,OAAM;AAAA,QACN,UAAS;AAAA,QACT,OAAM;AAAA,QACN,SAASX;AAAA,MAAA;AAAA,IAAA,GAEb;AAAA,EAAA,GACF;AACF,EAAA,CAAA,GAIWY,IAAAC,EAAKd,CAAqB;"}
@@ -1,10 +1,10 @@
1
- import { createGetAPI as t } from "@cuemath/rest-api";
1
+ import { createGetAPI as e } from "@cuemath/rest-api";
2
2
  import { BASE_URL_V1 as o } from "../../../../constants/api.js";
3
- import { stringify as i } from "../../../../helpers/query-string.js";
4
- const { useGet: p } = t({
5
- getURL: (e, r) => `${o}/users/${e}/reports/?${i(r)}`
3
+ import { stringify as m } from "../../../../helpers/query-string.js";
4
+ const { useGet: p } = e({
5
+ getURL: (r, t) => `${o}/users/${r}/reports/?${m(t)}`
6
6
  });
7
7
  export {
8
- p as useMonthlyTimelineGet
8
+ p as monthlyTimelineGet
9
9
  };
10
10
  //# sourceMappingURL=use-monthly-timeline-get.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-monthly-timeline-get.js","sources":["../../../../../src/features/timeline/monthly-timeline/api/use-monthly-timeline-get.ts"],"sourcesContent":["import { createGetAPI } from '@cuemath/rest-api';\n\nimport { BASE_URL_V1 } from '../../../../constants/api';\nimport { type IMonthlyTimeline } from '../monthly-timeline-types';\nimport { stringify } from '../../../../helpers/query-string';\n\ninterface MonthlyTimelineParams {\n course_streams?: string[];\n timezone?: string;\n}\n\nconst { useGet: useMonthlyTimelineGet } = createGetAPI<IMonthlyTimeline[], MonthlyTimelineParams>({\n getURL: (studentId, params: MonthlyTimelineParams) => {\n return `${BASE_URL_V1}/users/${studentId}/reports/?${stringify(params)}`;\n },\n});\n\nexport { useMonthlyTimelineGet };\n"],"names":["useMonthlyTimelineGet","createGetAPI","studentId","params","BASE_URL_V1","stringify"],"mappings":";;;AAWA,MAAM,EAAE,QAAQA,EAAsB,IAAIC,EAAwD;AAAA,EAChG,QAAQ,CAACC,GAAWC,MACX,GAAGC,CAAW,UAAUF,CAAS,aAAaG,EAAUF,CAAM,CAAC;AAE1E,CAAC;"}
1
+ {"version":3,"file":"use-monthly-timeline-get.js","sources":["../../../../../src/features/timeline/monthly-timeline/api/use-monthly-timeline-get.ts"],"sourcesContent":["import { createGetAPI } from '@cuemath/rest-api';\n\nimport { BASE_URL_V1 } from '../../../../constants/api';\nimport { type IMonthlyTimeline } from '../monthly-timeline-types';\nimport { stringify } from '../../../../helpers/query-string';\n\ninterface MonthlyTimelineParams {\n course_streams?: string[];\n timezone?: string;\n}\n\nconst { useGet: monthlyTimelineGet } = createGetAPI<IMonthlyTimeline[], MonthlyTimelineParams>({\n getURL: (studentId, params: MonthlyTimelineParams) => {\n return `${BASE_URL_V1}/users/${studentId}/reports/?${stringify(params)}`;\n },\n});\n\nexport { monthlyTimelineGet };\n"],"names":["monthlyTimelineGet","createGetAPI","studentId","params","BASE_URL_V1","stringify"],"mappings":";;;AAWA,MAAM,EAAE,QAAQA,EAAmB,IAAIC,EAAwD;AAAA,EAC7F,QAAQ,CAACC,GAAWC,MACX,GAAGC,CAAW,UAAUF,CAAS,aAAaG,EAAUF,CAAM,CAAC;AAE1E,CAAC;"}
@@ -1,35 +1,35 @@
1
- import { jsxs as a, jsx as i } from "react/jsx-runtime";
2
- import { memo as x } from "react";
1
+ import { jsxs as a, jsx as l } from "react/jsx-runtime";
2
+ import { memo as C, useCallback as x } from "react";
3
3
  import { GoalsSection as P } from "./monthly-card.styled.js";
4
4
  import I from "../../monthly-report/comps/goals/goals-card/goals-card.js";
5
- import n from "../../../../ui/layout/flex-view.js";
6
- import M from "../../../../ui/buttons/clickable/clickable.js";
7
- import w from "../../../../../assets/line-icons/icons/carat-right.js";
8
- import $ from "../../../../ui/text/text.js";
9
- import g from "../../../../ui/image/image.js";
10
- import { REPORT_CONFIG as c, monthNames as E } from "../../constants.js";
5
+ import t from "../../../../ui/layout/flex-view.js";
6
+ import w from "../../../../ui/buttons/clickable/clickable.js";
7
+ import E from "../../../../../assets/line-icons/icons/carat-right.js";
8
+ import _ from "../../../../ui/text/text.js";
9
+ import u from "../../../../ui/image/image.js";
10
+ import { monthNames as V, REPORT_CONFIG as d } from "../../constants.js";
11
11
  import { REPORT_TYPE as o } from "../../monthly-timeline-types.js";
12
12
  import { ILLUSTRATIONS as L } from "../../../../../assets/illustrations/illustrations.js";
13
- const T = ({
14
- report: e,
15
- year: _,
16
- month: R,
13
+ const X = ({
14
+ report: i,
15
+ year: r,
16
+ month: h,
17
17
  onReportClick: s,
18
- reportType: l,
19
- courseStream: u
18
+ reportType: e,
19
+ courseStream: R
20
20
  }) => {
21
- var m, h, f;
22
- const b = () => {
23
- s && s((e == null ? void 0 : e.id) || "", l, _, E[R - 1] || "");
24
- };
25
- let t = { label: "", icon: "" };
26
- l === o.PTM ? t = c.PTM ?? { label: "Report", icon: "full" } : l === o.MPR_V1 ? t = c.MPR_V1 ?? { label: "Report", icon: "full" } : l === o.MPR_V2 && (t = c["MPR_V2_" + (u || "").toLowerCase()] ?? {
21
+ var f, $, g;
22
+ const b = x(() => {
23
+ s && s((i == null ? void 0 : i.id) || "", e, r, V[h - 1] || "");
24
+ }, [h, s, i == null ? void 0 : i.id, e, r]);
25
+ let n = { label: "", icon: "" };
26
+ e === o.PTM ? n = d.PTM ?? { label: "Report", icon: "full" } : e === o.MPR_V1 ? n = d.MPR_V1 ?? { label: "Report", icon: "full" } : e === o.MPR_V2 && (n = d["MPR_V2_" + (R || "").toLowerCase()] ?? {
27
27
  label: "Report",
28
28
  icon: "full"
29
29
  });
30
- const d = l === o.PTM ? [] : ((m = e == null ? void 0 : e.progress_data) == null ? void 0 : m.user_milestones) || [];
31
- return l === o.MPR_V2 && !((f = (h = e == null ? void 0 : e.progress_data) == null ? void 0 : h.user_milestones) != null && f.length) ? /* @__PURE__ */ a(
32
- n,
30
+ const m = e === o.PTM ? [] : ((f = i == null ? void 0 : i.progress_data) == null ? void 0 : f.user_milestones) || [];
31
+ return e === o.MPR_V2 && !((g = ($ = i == null ? void 0 : i.progress_data) == null ? void 0 : $.user_milestones) != null && g.length) ? /* @__PURE__ */ a(
32
+ t,
33
33
  {
34
34
  $flexDirection: "row",
35
35
  $alignItems: "center",
@@ -40,28 +40,28 @@ const T = ({
40
40
  $background: "WHITE_3",
41
41
  $heightX: 4.5,
42
42
  children: [
43
- /* @__PURE__ */ i(g, { src: L.NO_REPORT, alt: "report icon", withLoader: !0, width: 32, height: 32 }),
44
- /* @__PURE__ */ i($, { $renderAs: "ub2", $color: "BLACK_1", children: "Report unavailable - no activity this month." })
43
+ /* @__PURE__ */ l(u, { src: L.NO_REPORT, alt: "report icon", withLoader: !0, width: 32, height: 32 }),
44
+ /* @__PURE__ */ l(_, { $renderAs: "ub2", $color: "BLACK_1", children: "Report unavailable - no activity this month." })
45
45
  ]
46
46
  }
47
- ) : /* @__PURE__ */ i(
48
- M,
47
+ ) : /* @__PURE__ */ l(
48
+ w,
49
49
  {
50
50
  onClick: b,
51
- disabled: !(e != null && e.id) && l !== o.MPR_V1,
51
+ disabled: !(i != null && i.id) && e !== o.MPR_V1,
52
52
  label: "Report Card click",
53
- children: /* @__PURE__ */ a(n, { $flexGap: 1, $borderColor: "BLACK_1", children: [
54
- !!d.length && /* @__PURE__ */ i(P, { $flexGap: 1, children: d.map((r, C) => /* @__PURE__ */ i(
53
+ children: /* @__PURE__ */ a(t, { $flexGap: 1, $borderColor: "BLACK_1", children: [
54
+ !!m.length && /* @__PURE__ */ l(P, { $flexGap: 1, children: m.map((c, M) => /* @__PURE__ */ l(
55
55
  I,
56
56
  {
57
- category: r.goal_category,
58
- milestone: r,
57
+ category: c.goal_category,
58
+ milestone: c,
59
59
  isExpended: !1
60
60
  },
61
- r.user_milestone_id || C
61
+ c.user_milestone_id || M
62
62
  )) }),
63
63
  /* @__PURE__ */ a(
64
- n,
64
+ t,
65
65
  {
66
66
  $flexDirection: "row",
67
67
  $alignItems: "center",
@@ -69,19 +69,19 @@ const T = ({
69
69
  $background: "BLACK_1",
70
70
  $heightX: 3,
71
71
  children: [
72
- /* @__PURE__ */ a(n, { $flexDirection: "row", $alignItems: "center", $flexGapX: 0.5, $gutterX: 1, children: [
73
- /* @__PURE__ */ i(g, { src: t.icon, alt: "report icon", withLoader: !0, width: 32, height: 32 }),
74
- /* @__PURE__ */ i($, { $renderAs: "ub2-bold", $color: "WHITE", children: t.label })
72
+ /* @__PURE__ */ a(t, { $flexDirection: "row", $alignItems: "center", $flexGapX: 0.5, $gutterX: 1, children: [
73
+ /* @__PURE__ */ l(u, { src: n.icon, alt: "report icon", withLoader: !0, width: 32, height: 32 }),
74
+ /* @__PURE__ */ l(_, { $renderAs: "ub2-bold", $color: "WHITE", children: n.label })
75
75
  ] }),
76
- /* @__PURE__ */ i(n, { $gutterX: 0.75, children: /* @__PURE__ */ i(w, { width: 24, height: 24, color: "WHITE" }) })
76
+ /* @__PURE__ */ l(t, { $gutterX: 0.75, children: /* @__PURE__ */ l(E, { width: 24, height: 24, color: "WHITE" }) })
77
77
  ]
78
78
  }
79
79
  )
80
80
  ] })
81
81
  }
82
82
  );
83
- }, K = x(T);
83
+ }, v = C(X);
84
84
  export {
85
- K as default
85
+ v as default
86
86
  };
87
87
  //# sourceMappingURL=monthly-card.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"monthly-card.js","sources":["../../../../../../src/features/timeline/monthly-timeline/comps/monthly-card/monthly-card.tsx"],"sourcesContent":["import { memo, type FC } from 'react';\n\nimport { type IMonthlyReportCardProps } from './monthly-card-types';\nimport * as Styled from './monthly-card.styled';\nimport GoalsCard from '../../monthly-report/comps/goals/goals-card/goals-card';\nimport FlexView from '../../../../ui/layout/flex-view';\nimport Clickable from '../../../../ui/buttons/clickable/clickable';\nimport CaratRightIcon from '../../../../../assets/line-icons/icons/carat-right';\nimport Text from '../../../../ui/text/text';\nimport Image from '../../../../ui/image/image';\nimport { monthNames, REPORT_CONFIG } from '../../constants';\nimport { REPORT_TYPE } from '../../monthly-timeline-types';\nimport { ILLUSTRATIONS } from '../../../../../assets/illustrations/illustrations';\n\nconst MonthlyReportCard: FC<IMonthlyReportCardProps> = ({\n report,\n year,\n month,\n onReportClick,\n reportType,\n courseStream,\n}) => {\n const handleReportClick = () => {\n if (onReportClick) {\n onReportClick(report?.id || '', reportType, year, monthNames[month - 1] || '');\n }\n };\n\n let config = { label: '', icon: '' };\n\n if (reportType === REPORT_TYPE.PTM) {\n config = REPORT_CONFIG.PTM ?? { label: 'Report', icon: 'full' };\n } else if (reportType === REPORT_TYPE.MPR_V1) {\n config = REPORT_CONFIG.MPR_V1 ?? { label: 'Report', icon: 'full' };\n } else if (reportType === REPORT_TYPE.MPR_V2) {\n config = REPORT_CONFIG['MPR_V2_' + (courseStream || '').toLowerCase()] ?? {\n label: 'Report',\n icon: 'full',\n };\n }\n\n const reportMilestones =\n reportType === REPORT_TYPE.PTM ? [] : report?.progress_data?.user_milestones || [];\n\n if (reportType === REPORT_TYPE.MPR_V2 && !report?.progress_data?.user_milestones?.length) {\n return (\n <FlexView\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $flexGapX={0.5}\n $gutterX={1}\n $gapX={1}\n $borderColor=\"WHITE_5\"\n $background=\"WHITE_3\"\n $heightX={4.5}\n >\n <Image src={ILLUSTRATIONS.NO_REPORT} alt=\"report icon\" withLoader width={32} height={32} />\n <Text $renderAs=\"ub2\" $color=\"BLACK_1\">\n Report unavailable - no activity this month.\n </Text>\n </FlexView>\n );\n }\n\n return (\n <Clickable\n onClick={handleReportClick}\n disabled={!report?.id && reportType !== REPORT_TYPE.MPR_V1}\n label=\"Report Card click\"\n >\n <FlexView $flexGap={1} $borderColor=\"BLACK_1\">\n {!!reportMilestones.length && (\n <Styled.GoalsSection $flexGap={1}>\n {reportMilestones.map((milestone, milestoneIndex) => (\n <GoalsCard\n key={milestone.user_milestone_id || milestoneIndex}\n category={milestone.goal_category}\n milestone={milestone}\n isExpended={false}\n />\n ))}\n </Styled.GoalsSection>\n )}\n <FlexView\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $justifyContent=\"space-between\"\n $background=\"BLACK_1\"\n $heightX={3}\n >\n <FlexView $flexDirection=\"row\" $alignItems=\"center\" $flexGapX={0.5} $gutterX={1}>\n <Image src={config.icon} alt=\"report icon\" withLoader width={32} height={32} />\n <Text $renderAs=\"ub2-bold\" $color=\"WHITE\">\n {config.label}\n </Text>\n </FlexView>\n <FlexView $gutterX={0.75}>\n <CaratRightIcon width={24} height={24} color=\"WHITE\" />\n </FlexView>\n </FlexView>\n </FlexView>\n </Clickable>\n );\n};\n\nexport default memo(MonthlyReportCard);\n"],"names":["MonthlyReportCard","report","year","month","onReportClick","reportType","courseStream","handleReportClick","monthNames","config","REPORT_TYPE","REPORT_CONFIG","reportMilestones","_a","_c","_b","jsxs","FlexView","jsx","Image","ILLUSTRATIONS","Text","Clickable","Styled.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AAA,GACF;AAAA,IAAA;AAAA,EAAA;AAGN,GAEeC,IAAAC,EAAK7B,CAAiB;"}
1
+ {"version":3,"file":"monthly-card.js","sources":["../../../../../../src/features/timeline/monthly-timeline/comps/monthly-card/monthly-card.tsx"],"sourcesContent":["import { memo, useCallback, type FC } from 'react';\n\nimport { type IMonthlyReportCardProps } from './monthly-card-types';\nimport * as Styled from './monthly-card.styled';\nimport GoalsCard from '../../monthly-report/comps/goals/goals-card/goals-card';\nimport FlexView from '../../../../ui/layout/flex-view';\nimport Clickable from '../../../../ui/buttons/clickable/clickable';\nimport CaratRightIcon from '../../../../../assets/line-icons/icons/carat-right';\nimport Text from '../../../../ui/text/text';\nimport Image from '../../../../ui/image/image';\nimport { monthNames, REPORT_CONFIG } from '../../constants';\nimport { REPORT_TYPE } from '../../monthly-timeline-types';\nimport { ILLUSTRATIONS } from '../../../../../assets/illustrations/illustrations';\n\nconst MonthlyReportCard: FC<IMonthlyReportCardProps> = ({\n report,\n year,\n month,\n onReportClick,\n reportType,\n courseStream,\n}) => {\n const handleReportClick = useCallback(() => {\n if (onReportClick) {\n onReportClick(report?.id || '', reportType, year, monthNames[month - 1] || '');\n }\n }, [month, onReportClick, report?.id, reportType, year]);\n\n let config = { label: '', icon: '' };\n\n if (reportType === REPORT_TYPE.PTM) {\n config = REPORT_CONFIG.PTM ?? { label: 'Report', icon: 'full' };\n } else if (reportType === REPORT_TYPE.MPR_V1) {\n config = REPORT_CONFIG.MPR_V1 ?? { label: 'Report', icon: 'full' };\n } else if (reportType === REPORT_TYPE.MPR_V2) {\n config = REPORT_CONFIG[\n ('MPR_V2_' + (courseStream || '').toLowerCase()) as keyof typeof REPORT_CONFIG\n ] ?? {\n label: 'Report',\n icon: 'full',\n };\n }\n\n const reportMilestones =\n reportType === REPORT_TYPE.PTM ? [] : report?.progress_data?.user_milestones || [];\n\n const hasNoMprV2Milestones =\n reportType === REPORT_TYPE.MPR_V2 && !report?.progress_data?.user_milestones?.length;\n\n if (hasNoMprV2Milestones) {\n return (\n <FlexView\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $flexGapX={0.5}\n $gutterX={1}\n $gapX={1}\n $borderColor=\"WHITE_5\"\n $background=\"WHITE_3\"\n $heightX={4.5}\n >\n <Image src={ILLUSTRATIONS.NO_REPORT} alt=\"report icon\" withLoader width={32} height={32} />\n <Text $renderAs=\"ub2\" $color=\"BLACK_1\">\n Report unavailable - no activity this month.\n </Text>\n </FlexView>\n );\n }\n\n return (\n <Clickable\n onClick={handleReportClick}\n disabled={!report?.id && reportType !== REPORT_TYPE.MPR_V1}\n label=\"Report Card click\"\n >\n <FlexView $flexGap={1} $borderColor=\"BLACK_1\">\n {!!reportMilestones.length && (\n <Styled.GoalsSection $flexGap={1}>\n {reportMilestones.map((milestone, milestoneIndex) => (\n <GoalsCard\n key={milestone.user_milestone_id || milestoneIndex}\n category={milestone.goal_category}\n milestone={milestone}\n isExpended={false}\n />\n ))}\n </Styled.GoalsSection>\n )}\n <FlexView\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $justifyContent=\"space-between\"\n $background=\"BLACK_1\"\n $heightX={3}\n >\n <FlexView $flexDirection=\"row\" $alignItems=\"center\" $flexGapX={0.5} $gutterX={1}>\n <Image src={config.icon} alt=\"report icon\" withLoader width={32} height={32} />\n <Text $renderAs=\"ub2-bold\" $color=\"WHITE\">\n {config.label}\n </Text>\n </FlexView>\n <FlexView $gutterX={0.75}>\n <CaratRightIcon width={24} height={24} color=\"WHITE\" />\n </FlexView>\n </FlexView>\n </FlexView>\n </Clickable>\n );\n};\n\nexport default memo(MonthlyReportCard);\n"],"names":["MonthlyReportCard","report","year","month","onReportClick","reportType","courseStream","handleReportClick","useCallback","monthNames","config","REPORT_TYPE","REPORT_CONFIG","reportMilestones","_a","_c","_b","jsxs","FlexView","jsx","Image","ILLUSTRATIONS","Text","Clickable","Styled.GoalsSection","milestone","milestoneIndex","GoalsCard","CaratRightIcon","MonthlyReportCard$1","memo"],"mappings":";;;;;;;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,MAAA,GACF;AAAA,IAAA;AAAA,EAAA;AAGN,GAEeC,IAAAC,EAAK9B,CAAiB;"}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sources":["../../../../src/features/timeline/monthly-timeline/constants.ts"],"sourcesContent":["import { ILLUSTRATIONS } from '../../../assets/illustrations/illustrations';\n\nexport const monthNames = [\n 'Jan',\n 'Feb',\n 'Mar',\n 'Apr',\n 'May',\n 'Jun',\n 'Jul',\n 'Aug',\n 'Sep',\n 'Oct',\n 'Nov',\n 'Dec',\n];\n\nexport const yearImages: Record<number, string> = {\n 2021: ILLUSTRATIONS[2021],\n 2022: ILLUSTRATIONS[2022],\n 2023: ILLUSTRATIONS[2023],\n 2024: ILLUSTRATIONS[2024],\n 2025: ILLUSTRATIONS[2025],\n 2026: ILLUSTRATIONS[2026],\n 2027: ILLUSTRATIONS[2027],\n 2028: ILLUSTRATIONS[2028],\n};\n\nexport const REPORT_CONFIG: Record<string, { label: string; icon: string }> = {\n PTM: { label: 'PTM Report', icon: ILLUSTRATIONS.PTM_REPORT_ICON },\n MPR_V1: { label: 'View Full Report', icon: ILLUSTRATIONS.FULL_REPORT },\n MPR_V2_math: { label: 'MathFit Report', icon: ILLUSTRATIONS.MATH_FIT_GREY },\n MPR_V2_elp: { label: 'ELP Report', icon: ILLUSTRATIONS.ELP_ICON },\n MPR_V2_ela: { label: 'ELA Report', icon: ILLUSTRATIONS.ELP_ICON },\n MPR_V2_english: { label: 'English Report', icon: ILLUSTRATIONS.ENGLISH_ICON },\n MPR_V2_science: { label: 'Science Report', icon: ILLUSTRATIONS.SCIENCE_REPORT_ICON },\n MPR_V2_sat: { label: 'SAT Report', icon: ILLUSTRATIONS.SAT_REPORT_ICON },\n MPR_V2_coding: { label: 'Coding Report', icon: ILLUSTRATIONS.CODING_REPORT_ICON },\n};\n"],"names":["monthNames","yearImages","ILLUSTRATIONS","REPORT_CONFIG"],"mappings":";AAEO,MAAMA,IAAa;AAAA,EACxB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAEaC,IAAqC;AAAA,EAChD,MAAMC,EAAc,IAAI;AAAA,EACxB,MAAMA,EAAc,IAAI;AAAA,EACxB,MAAMA,EAAc,IAAI;AAAA,EACxB,MAAMA,EAAc,IAAI;AAAA,EACxB,MAAMA,EAAc,IAAI;AAAA,EACxB,MAAMA,EAAc,IAAI;AAAA,EACxB,MAAMA,EAAc,IAAI;AAAA,EACxB,MAAMA,EAAc,IAAI;AAC1B,GAEaC,IAAiE;AAAA,EAC5E,KAAK,EAAE,OAAO,cAAc,MAAMD,EAAc,gBAAgB;AAAA,EAChE,QAAQ,EAAE,OAAO,oBAAoB,MAAMA,EAAc,YAAY;AAAA,EACrE,aAAa,EAAE,OAAO,kBAAkB,MAAMA,EAAc,cAAc;AAAA,EAC1E,YAAY,EAAE,OAAO,cAAc,MAAMA,EAAc,SAAS;AAAA,EAChE,YAAY,EAAE,OAAO,cAAc,MAAMA,EAAc,SAAS;AAAA,EAChE,gBAAgB,EAAE,OAAO,kBAAkB,MAAMA,EAAc,aAAa;AAAA,EAC5E,gBAAgB,EAAE,OAAO,kBAAkB,MAAMA,EAAc,oBAAoB;AAAA,EACnF,YAAY,EAAE,OAAO,cAAc,MAAMA,EAAc,gBAAgB;AAAA,EACvE,eAAe,EAAE,OAAO,iBAAiB,MAAMA,EAAc,mBAAmB;AAClF;"}
1
+ {"version":3,"file":"constants.js","sources":["../../../../src/features/timeline/monthly-timeline/constants.ts"],"sourcesContent":["import { ILLUSTRATIONS } from '../../../assets/illustrations/illustrations';\n\nexport enum REPORT_CONFIG_TYPE {\n PTM = 'PTM',\n MPR_V1 = 'MPR_V1',\n MPR_V2_math = 'MPR_V2_math',\n MPR_V2_elp = 'MPR_V2_elp',\n MPR_V2_ela = 'MPR_V2_ela',\n MPR_V2_english = 'MPR_V2_english',\n MPR_V2_science = 'MPR_V2_science',\n MPR_V2_sat = 'MPR_V2_sat',\n MPR_V2_coding = 'MPR_V2_coding',\n}\n\nexport const monthNames = [\n 'Jan',\n 'Feb',\n 'Mar',\n 'Apr',\n 'May',\n 'Jun',\n 'Jul',\n 'Aug',\n 'Sep',\n 'Oct',\n 'Nov',\n 'Dec',\n];\n\nexport const yearImages: Record<number, string> = {\n 2021: ILLUSTRATIONS[2021],\n 2022: ILLUSTRATIONS[2022],\n 2023: ILLUSTRATIONS[2023],\n 2024: ILLUSTRATIONS[2024],\n 2025: ILLUSTRATIONS[2025],\n 2026: ILLUSTRATIONS[2026],\n 2027: ILLUSTRATIONS[2027],\n 2028: ILLUSTRATIONS[2028],\n};\n\nexport const REPORT_CONFIG: Record<REPORT_CONFIG_TYPE, { label: string; icon: string }> = {\n PTM: { label: 'PTM Report', icon: ILLUSTRATIONS.PTM_REPORT_ICON },\n MPR_V1: { label: 'View Full Report', icon: ILLUSTRATIONS.FULL_REPORT },\n MPR_V2_math: { label: 'MathFit Report', icon: ILLUSTRATIONS.MATH_FIT_GREY },\n MPR_V2_elp: { label: 'ELP Report', icon: ILLUSTRATIONS.ELP_ICON },\n MPR_V2_ela: { label: 'ELA Report', icon: ILLUSTRATIONS.ELP_ICON },\n MPR_V2_english: { label: 'English Report', icon: ILLUSTRATIONS.ENGLISH_ICON },\n MPR_V2_science: { label: 'Science Report', icon: ILLUSTRATIONS.SCIENCE_REPORT_ICON },\n MPR_V2_sat: { label: 'SAT Report', icon: ILLUSTRATIONS.SAT_REPORT_ICON },\n MPR_V2_coding: { label: 'Coding Report', icon: ILLUSTRATIONS.CODING_REPORT_ICON },\n};\n"],"names":["monthNames","yearImages","ILLUSTRATIONS","REPORT_CONFIG"],"mappings":";AAcO,MAAMA,IAAa;AAAA,EACxB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAEaC,IAAqC;AAAA,EAChD,MAAMC,EAAc,IAAI;AAAA,EACxB,MAAMA,EAAc,IAAI;AAAA,EACxB,MAAMA,EAAc,IAAI;AAAA,EACxB,MAAMA,EAAc,IAAI;AAAA,EACxB,MAAMA,EAAc,IAAI;AAAA,EACxB,MAAMA,EAAc,IAAI;AAAA,EACxB,MAAMA,EAAc,IAAI;AAAA,EACxB,MAAMA,EAAc,IAAI;AAC1B,GAEaC,IAA6E;AAAA,EACxF,KAAK,EAAE,OAAO,cAAc,MAAMD,EAAc,gBAAgB;AAAA,EAChE,QAAQ,EAAE,OAAO,oBAAoB,MAAMA,EAAc,YAAY;AAAA,EACrE,aAAa,EAAE,OAAO,kBAAkB,MAAMA,EAAc,cAAc;AAAA,EAC1E,YAAY,EAAE,OAAO,cAAc,MAAMA,EAAc,SAAS;AAAA,EAChE,YAAY,EAAE,OAAO,cAAc,MAAMA,EAAc,SAAS;AAAA,EAChE,gBAAgB,EAAE,OAAO,kBAAkB,MAAMA,EAAc,aAAa;AAAA,EAC5E,gBAAgB,EAAE,OAAO,kBAAkB,MAAMA,EAAc,oBAAoB;AAAA,EACnF,YAAY,EAAE,OAAO,cAAc,MAAMA,EAAc,gBAAgB;AAAA,EACvE,eAAe,EAAE,OAAO,iBAAiB,MAAMA,EAAc,mBAAmB;AAClF;"}
@@ -1,13 +1,13 @@
1
1
  import { createGetAPI as r, createPatchAPI as o } from "@cuemath/rest-api";
2
2
  import { BASE_URL_V1 as e } from "../../../../../constants/api.js";
3
- const { useGet: p, invalidate: a } = r({
3
+ const { useGet: s, invalidate: a } = r({
4
4
  getURL: (t) => `${e}/monthly-progress-reports/${t}`
5
5
  }), { usePatch: h } = o({
6
6
  getURL: (t) => `${e}/monthly-progress-reports/${t}`
7
7
  });
8
8
  export {
9
9
  a as invalidateMonthlyReport,
10
- p as useMonthlyReportGet,
11
- h as useMonthlyReportPatch
10
+ s as monthlyReportGet,
11
+ h as monthlyReportPatch
12
12
  };
13
- //# sourceMappingURL=use-monthly-report-get.js.map
13
+ //# sourceMappingURL=use-monthly-report-api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-monthly-report-api.js","sources":["../../../../../../src/features/timeline/monthly-timeline/monthly-report/api/use-monthly-report-api.ts"],"sourcesContent":["import { createGetAPI, createPatchAPI } from '@cuemath/rest-api';\n\nimport { BASE_URL_V1 } from '../../../../../constants/api';\nimport { type IMonthlyReportResponse } from '../monthly-report-types';\n\nconst { useGet: monthlyReportGet, invalidate: invalidateMonthlyReport } =\n createGetAPI<IMonthlyReportResponse>({\n getURL: (reportId: string) => {\n return `${BASE_URL_V1}/monthly-progress-reports/${reportId}`;\n },\n });\n\nconst { usePatch: monthlyReportPatch } = createPatchAPI<\n IMonthlyReportResponse,\n { feedback: string }\n>({\n getURL: (reportId: string) => {\n return `${BASE_URL_V1}/monthly-progress-reports/${reportId}`;\n },\n});\n\nexport { monthlyReportGet, monthlyReportPatch, invalidateMonthlyReport };\n"],"names":["monthlyReportGet","invalidateMonthlyReport","createGetAPI","reportId","BASE_URL_V1","monthlyReportPatch","createPatchAPI"],"mappings":";;AAKA,MAAM,EAAE,QAAQA,GAAkB,YAAYC,EAAA,IAC5CC,EAAqC;AAAA,EACnC,QAAQ,CAACC,MACA,GAAGC,CAAW,6BAA6BD,CAAQ;AAE9D,CAAC,GAEG,EAAE,UAAUE,EAAmB,IAAIC,EAGvC;AAAA,EACA,QAAQ,CAACH,MACA,GAAGC,CAAW,6BAA6BD,CAAQ;AAE9D,CAAC;"}
@@ -1,57 +1,57 @@
1
- import { jsxs as l, jsx as r } from "react/jsx-runtime";
2
- import { memo as z, useRef as I, useState as B, useMemo as d, useCallback as u } from "react";
3
- import { getCardTypeIconMap as $, stateIcon as p } from "../constants.js";
4
- import { CARD_TYPE as f } from "../../../monthly-report-types.js";
5
- import { ActivityCardContainerWrapper as M, ActivityCardContainer as S } from "./activities-card.styled.js";
1
+ import { jsxs as l, jsx as o } from "react/jsx-runtime";
2
+ import { memo as B, useRef as D, useState as I, useMemo as d, useCallback as u } from "react";
3
+ import { getCardTypeIconMap as $, stateIcon as S } from "../constants.js";
4
+ import { CARD_TYPE as g } from "../../../monthly-report-types.js";
5
+ import { ActivityCardContainerWrapper as M, ActivityCardContainer as T } from "./activities-card.styled.js";
6
6
  import n from "../../../../../../ui/layout/flex-view.js";
7
- import T from "../../../../../../ui/lottie-animation/lottie-animation.js";
7
+ import j from "../../../../../../ui/lottie-animation/lottie-animation.js";
8
8
  import m from "../../../../../../ui/text/text.js";
9
- import j from "../../../../../../homework/card-title.js";
10
- import k from "../activities-card-puzzles/activities-card-puzzles.js";
11
- import { NODE_STATE as h } from "../../../../../daily-timeline/daily-timeline-types.js";
12
- import G from "../../../../../../ui/buttons/text-button/text-button.js";
13
- import { countActivitiesByState as K } from "../utils.js";
14
- const O = {
9
+ import k from "../../../../../../homework/card-title.js";
10
+ import G from "../activities-card-puzzles/activities-card-puzzles.js";
11
+ import { NODE_STATE as p } from "../../../../../daily-timeline/daily-timeline-types.js";
12
+ import K from "../../../../../../ui/buttons/text-button/text-button.js";
13
+ import { countActivitiesByState as y } from "../utils.js";
14
+ const N = {
15
15
  autoplay: !1,
16
16
  loop: !0,
17
17
  renderer: "canvas"
18
- }, P = ({
18
+ }, O = ({
19
19
  cardType: t,
20
- nodeType: A,
21
- activitiesList: o = [],
22
- onPuzzleClick: C
20
+ nodeType: f,
21
+ activitiesList: r = [],
22
+ onPuzzleClick: A
23
23
  }) => {
24
- const a = I(null), [s, x] = B(!1), b = d(() => {
25
- const { totalDone: e, totalPending: i, totalOverdue: c } = K(o);
24
+ const a = D(null), [s, C] = I(!1), x = d(() => {
25
+ const { totalDone: e, totalPending: i, totalOverdue: c } = y(r);
26
26
  return [
27
27
  e > 0 && `${e} Done`,
28
28
  i > 0 && `${i} In-progress`,
29
29
  c > 0 && `${c} Overdue`
30
30
  ].filter(Boolean).join(", ");
31
- }, [o]), X = d(() => t ? t.split("_").join(" ") : "", [t]), { displayedActivities: E, remainingCount: g } = d(() => {
32
- if (t === f.puzzle)
33
- return { displayedActivities: o, remainingCount: 0 };
34
- const e = 3, i = o.length > e;
35
- return s || !i ? { displayedActivities: o, remainingCount: 0 } : {
36
- displayedActivities: o.slice(0, e),
37
- remainingCount: o.length - e
31
+ }, [r]), b = d(() => t ? t.split("_").join(" ") : "", [t]), { displayedActivities: X, remainingCount: h } = d(() => {
32
+ if (t === g.puzzle)
33
+ return { displayedActivities: r, remainingCount: 0 };
34
+ const e = 3, i = r.length > e;
35
+ return s || !i ? { displayedActivities: r, remainingCount: 0 } : {
36
+ displayedActivities: r.slice(0, e),
37
+ remainingCount: r.length - e
38
38
  };
39
- }, [o, s, t]), _ = u(() => {
39
+ }, [r, s, t]), w = (h > 0 || s) && r.length > 3, _ = u(() => {
40
40
  var e;
41
41
  (e = a.current) == null || e.play();
42
- }, []), w = u(() => {
42
+ }, []), v = u(() => {
43
43
  var e;
44
44
  (e = a.current) == null || e.stop();
45
- }, []), v = u(() => {
46
- x((e) => !e);
45
+ }, []), E = u(() => {
46
+ C((e) => !e);
47
47
  }, []);
48
- return /* @__PURE__ */ l(n, { onMouseEnter: _, onMouseLeave: w, children: [
49
- /* @__PURE__ */ r(
48
+ return /* @__PURE__ */ l(n, { onMouseEnter: _, onMouseLeave: v, children: [
49
+ /* @__PURE__ */ o(
50
50
  M,
51
51
  {
52
52
  $background: $(t).color,
53
53
  children: /* @__PURE__ */ l(
54
- S,
54
+ T,
55
55
  {
56
56
  $flexDirection: "row",
57
57
  $alignItems: "center",
@@ -60,7 +60,7 @@ const O = {
60
60
  $gutterX: 0.78125,
61
61
  $flexGap: 8.5,
62
62
  children: [
63
- /* @__PURE__ */ r(
63
+ /* @__PURE__ */ o(
64
64
  n,
65
65
  {
66
66
  $widthX: 2,
@@ -70,59 +70,59 @@ const O = {
70
70
  $position: "relative",
71
71
  $alignItems: "center",
72
72
  $justifyContent: "center",
73
- children: /* @__PURE__ */ r(
74
- T,
73
+ children: /* @__PURE__ */ o(
74
+ j,
75
75
  {
76
76
  ref: a,
77
77
  src: $(t).lottie,
78
78
  width: 32,
79
79
  height: 32,
80
- settings: O
80
+ settings: N
81
81
  }
82
82
  )
83
83
  }
84
84
  ),
85
85
  /* @__PURE__ */ l(n, { children: [
86
- /* @__PURE__ */ r(j, { cardHeader: X, nodeType: A }),
87
- /* @__PURE__ */ r(m, { $renderAs: "ub3", $color: "BLACK_1", children: b })
86
+ /* @__PURE__ */ o(k, { cardHeader: b, nodeType: f }),
87
+ /* @__PURE__ */ o(m, { $renderAs: "ub3", $color: "BLACK_1", children: x })
88
88
  ] })
89
89
  ]
90
90
  }
91
91
  )
92
92
  }
93
93
  ),
94
- o.length > 0 && (t === f.puzzle ? /* @__PURE__ */ r(k, { puzzles: o, onPuzzleClick: C }) : /* @__PURE__ */ l(n, { $flexRowGapX: 1.25, $gutterX: 1, $gapX: 1, $borderColor: "GREY_2", children: [
95
- E.map(({ state: e, title: i, subtext: c, id: D }, R) => /* @__PURE__ */ l(n, { $flexDirection: "row", $flexGapX: 1.05, children: [
96
- /* @__PURE__ */ r(n, { $gapX: 0.25, children: /* @__PURE__ */ r(
94
+ r.length > 0 && (t === g.puzzle ? /* @__PURE__ */ o(G, { puzzles: r, onPuzzleClick: A }) : /* @__PURE__ */ l(n, { $flexRowGapX: 1.25, $gutterX: 1, $gapX: 1, $borderColor: "GREY_2", children: [
95
+ X.map(({ state: e, title: i, subtext: c, id: R }, z) => /* @__PURE__ */ l(n, { $flexDirection: "row", $flexGapX: 1.05, children: [
96
+ /* @__PURE__ */ o(n, { $gapX: 0.25, children: /* @__PURE__ */ o(
97
97
  n,
98
98
  {
99
99
  $borderRadiusX: 1,
100
- $background: e === h.PENDING || e === h.NOT_STARTED ? "RED" : "BLACK_1",
100
+ $background: e === p.PENDING || e === p.NOT_STARTED ? "RED" : "BLACK_1",
101
101
  $widthX: 1,
102
102
  $heightX: 1,
103
103
  $alignItems: "center",
104
104
  $justifyContent: "center",
105
- children: !!e && (p[e] || p[h.COMPLETED])
105
+ children: !!e && S[e]
106
106
  }
107
107
  ) }),
108
108
  /* @__PURE__ */ l(n, { $flexRowGap: 4, children: [
109
- /* @__PURE__ */ r(m, { $renderAs: "ub2", $color: "BLACK_1", children: i || "" }),
110
- /* @__PURE__ */ r(m, { $renderAs: "ub3", $color: "BLACK_T_60", children: c || "" })
109
+ /* @__PURE__ */ o(m, { $renderAs: "ub2", $color: "BLACK_1", children: i || "" }),
110
+ /* @__PURE__ */ o(m, { $renderAs: "ub3", $color: "BLACK_T_60", children: c || "" })
111
111
  ] })
112
- ] }, `${D}-${R}`)),
113
- (g > 0 || s) && o.length > 3 && /* @__PURE__ */ r(n, { $gutterX: 2, children: /* @__PURE__ */ r(
114
- G,
112
+ ] }, `${R}-${z}`)),
113
+ w && /* @__PURE__ */ o(n, { $gutterX: 2, children: /* @__PURE__ */ o(
114
+ K,
115
115
  {
116
- label: s ? "Show less" : `+${g} activities`,
116
+ label: s ? "Show less" : `+${h} activities`,
117
117
  size: "regular",
118
118
  color: "BLACK_1",
119
- onClick: v
119
+ onClick: E
120
120
  }
121
121
  ) })
122
122
  ] }))
123
123
  ] });
124
- }, ee = z(P);
124
+ }, oe = B(O);
125
125
  export {
126
- ee as default
126
+ oe as default
127
127
  };
128
128
  //# sourceMappingURL=activities-card.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"activities-card.js","sources":["../../../../../../../../src/features/timeline/monthly-timeline/monthly-report/comps/activities/activities-card/activities-card.tsx"],"sourcesContent":["import { memo, type FC, useRef, useCallback, useMemo, useState } from 'react';\n\nimport { type IActivitiesCardProps } from './activities-card-types';\nimport { getCardTypeIconMap, stateIcon } from '../constants';\nimport { CARD_TYPE } from '../../../monthly-report-types';\nimport * as Styled from './activities-card.styled';\nimport FlexView from '../../../../../../ui/layout/flex-view';\nimport LottieAnimation from '../../../../../../ui/lottie-animation/lottie-animation';\nimport { type ILottieAnimationRef } from '../../../../../../ui/lottie-animation/types';\nimport Text from '../../../../../../ui/text/text';\nimport CardTitle from '../../../../../../homework/card-title';\nimport { type TColorNames } from '../../../../../../ui/types';\nimport ActivitiesCardPuzzles from '../activities-card-puzzles/activities-card-puzzles';\nimport { NODE_STATE } from '../../../../../daily-timeline/daily-timeline-types';\nimport TextButton from '../../../../../../ui/buttons/text-button/text-button';\nimport { countActivitiesByState } from '../utils';\n\nconst lottieSettings = {\n autoplay: false,\n loop: true,\n renderer: 'canvas',\n};\n\nconst ActivitiesCard: FC<IActivitiesCardProps> = ({\n cardType,\n nodeType,\n activitiesList = [],\n onPuzzleClick,\n}) => {\n const lottieRef = useRef<ILottieAnimationRef>(null);\n const [showAllActivities, setShowAllActivities] = useState(false);\n\n const progressStatus = useMemo(() => {\n const { totalDone, totalPending, totalOverdue } = countActivitiesByState(activitiesList);\n\n return [\n totalDone > 0 && `${totalDone} Done`,\n totalPending > 0 && `${totalPending} In-progress`,\n totalOverdue > 0 && `${totalOverdue} Overdue`,\n ]\n .filter(Boolean)\n .join(', ');\n }, [activitiesList]);\n const cardHeaderText = useMemo(() => (cardType ? cardType.split('_').join(' ') : ''), [cardType]);\n const { displayedActivities, remainingCount } = useMemo(() => {\n if (cardType === CARD_TYPE.puzzle) {\n return { displayedActivities: activitiesList, remainingCount: 0 };\n }\n\n const maxVisible = 3;\n const hasMore = activitiesList.length > maxVisible;\n\n if (showAllActivities || !hasMore) {\n return { displayedActivities: activitiesList, remainingCount: 0 };\n }\n\n return {\n displayedActivities: activitiesList.slice(0, maxVisible),\n remainingCount: activitiesList.length - maxVisible,\n };\n }, [activitiesList, showAllActivities, cardType]);\n\n const handleMouseEnter = useCallback(() => {\n lottieRef.current?.play();\n }, []);\n\n const handleMouseLeave = useCallback(() => {\n lottieRef.current?.stop();\n }, []);\n\n const handleToggleActivities = useCallback(() => {\n setShowAllActivities(prev => !prev);\n }, []);\n\n return (\n <FlexView onMouseEnter={handleMouseEnter} onMouseLeave={handleMouseLeave}>\n <Styled.ActivityCardContainerWrapper\n $background={getCardTypeIconMap(cardType).color as TColorNames}\n >\n <Styled.ActivityCardContainer\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $height=\"56px\"\n $bgImage={getCardTypeIconMap(cardType).background}\n $gutterX={0.78125}\n $flexGap={8.5}\n >\n <FlexView\n $widthX={2}\n $heightX={2}\n $borderRadiusX={2}\n $background=\"WHITE_1\"\n $position=\"relative\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n >\n <LottieAnimation\n ref={lottieRef}\n src={getCardTypeIconMap(cardType).lottie}\n width={32}\n height={32}\n settings={lottieSettings}\n />\n </FlexView>\n <FlexView>\n <CardTitle cardHeader={cardHeaderText} nodeType={nodeType} />\n <Text $renderAs=\"ub3\" $color=\"BLACK_1\">\n {progressStatus}\n </Text>\n </FlexView>\n </Styled.ActivityCardContainer>\n </Styled.ActivityCardContainerWrapper>\n {activitiesList.length > 0 &&\n (cardType === CARD_TYPE.puzzle ? (\n <ActivitiesCardPuzzles puzzles={activitiesList} onPuzzleClick={onPuzzleClick} />\n ) : (\n <FlexView $flexRowGapX={1.25} $gutterX={1} $gapX={1} $borderColor=\"GREY_2\">\n {displayedActivities.map(({ state, title, subtext, id }, index) => (\n <FlexView $flexDirection=\"row\" $flexGapX={1.05} key={`${id}-${index}`}>\n <FlexView $gapX={0.25}>\n <FlexView\n $borderRadiusX={1}\n $background={\n state === NODE_STATE.PENDING || state === NODE_STATE.NOT_STARTED\n ? 'RED'\n : 'BLACK_1'\n }\n $widthX={1}\n $heightX={1}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n >\n {!!state && (stateIcon[state as NODE_STATE] || stateIcon[NODE_STATE.COMPLETED])}\n </FlexView>\n </FlexView>\n <FlexView $flexRowGap={4}>\n <Text $renderAs=\"ub2\" $color=\"BLACK_1\">\n {title || ''}\n </Text>\n <Text $renderAs=\"ub3\" $color=\"BLACK_T_60\">\n {subtext || ''}\n </Text>\n </FlexView>\n </FlexView>\n ))}\n {(remainingCount > 0 || showAllActivities) && activitiesList.length > 3 && (\n <FlexView $gutterX={2}>\n <TextButton\n label={showAllActivities ? 'Show less' : `+${remainingCount} activities`}\n size=\"regular\"\n color=\"BLACK_1\"\n onClick={handleToggleActivities}\n />\n </FlexView>\n )}\n </FlexView>\n ))}\n </FlexView>\n );\n};\n\nexport default memo(ActivitiesCard);\n"],"names":["lottieSettings","ActivitiesCard","cardType","nodeType","activitiesList","onPuzzleClick","lottieRef","useRef","showAllActivities","setShowAllActivities","useState","progressStatus","useMemo","totalDone","totalPending","totalOverdue","countActivitiesByState","cardHeaderText","displayedActivities","remainingCount","CARD_TYPE","maxVisible","hasMore","handleMouseEnter","useCallback","_a","handleMouseLeave","handleToggleActivities","prev","jsxs","FlexView","jsx","Styled.ActivityCardContainerWrapper","getCardTypeIconMap","Styled.ActivityCardContainer","LottieAnimation","CardTitle","Text","ActivitiesCardPuzzles","state","title","subtext","id","index","NODE_STATE","stateIcon","TextButton","ActivitiesCard$1","memo"],"mappings":";;;;;;;;;;;;;AAiBA,MAAMA,IAAiB;AAAA,EACrB,UAAU;AAAA,EACV,MAAM;AAAA,EACN,UAAU;AACZ,GAEMC,IAA2C,CAAC;AAAA,EAChD,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,gBAAAC,IAAiB,CAAC;AAAA,EAClB,eAAAC;AACF,MAAM;AACE,QAAAC,IAAYC,EAA4B,IAAI,GAC5C,CAACC,GAAmBC,CAAoB,IAAIC,EAAS,EAAK,GAE1DC,IAAiBC,EAAQ,MAAM;AACnC,UAAM,EAAE,WAAAC,GAAW,cAAAC,GAAc,cAAAC,EAAa,IAAIC,EAAuBZ,CAAc;AAEhF,WAAA;AAAA,MACLS,IAAY,KAAK,GAAGA,CAAS;AAAA,MAC7BC,IAAe,KAAK,GAAGA,CAAY;AAAA,MACnCC,IAAe,KAAK,GAAGA,CAAY;AAAA,IAElC,EAAA,OAAO,OAAO,EACd,KAAK,IAAI;AAAA,EAAA,GACX,CAACX,CAAc,CAAC,GACba,IAAiBL,EAAQ,MAAOV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,MAAUM,EAAUN,CAAmB,KAAKM,EAAUD,EAAW,SAAS;AAAA,UAAA;AAAA,QAAA,GAEjF;AAAA,QACA,gBAAAf,EAACC,GAAS,EAAA,aAAa,GACrB,UAAA;AAAA,UAAA,gBAAAC,EAACM,KAAK,WAAU,OAAM,QAAO,WAC1B,eAAS,IACZ;AAAA,4BACCA,GAAK,EAAA,WAAU,OAAM,QAAO,cAC1B,eAAW,IACd;AAAA,QAAA,GACF;AAAA,MAAA,EAAA,GAxBmD,GAAGK,CAAE,IAAIC,CAAK,EAyBnE,CACD;AAAA,OACCxB,IAAiB,KAAKX,MAAsBJ,EAAe,SAAS,KACpE,gBAAA2B,EAACD,GAAS,EAAA,UAAU,GAClB,UAAA,gBAAAC;AAAA,QAACe;AAAA,QAAA;AAAA,UACC,OAAOtC,IAAoB,cAAc,IAAIW,CAAc;AAAA,UAC3D,MAAK;AAAA,UACL,OAAM;AAAA,UACN,SAASQ;AAAA,QAAA;AAAA,MAAA,GAEb;AAAA,IAEJ,EAAA,CAAA;AAAA,EAEN,EAAA,CAAA;AAEJ,GAEeoB,KAAAC,EAAK/C,CAAc;"}
1
+ {"version":3,"file":"activities-card.js","sources":["../../../../../../../../src/features/timeline/monthly-timeline/monthly-report/comps/activities/activities-card/activities-card.tsx"],"sourcesContent":["import { memo, type FC, useRef, useCallback, useMemo, useState } from 'react';\n\nimport { type IActivitiesCardProps } from './activities-card-types';\nimport { getCardTypeIconMap, stateIcon } from '../constants';\nimport { CARD_TYPE } from '../../../monthly-report-types';\nimport * as Styled from './activities-card.styled';\nimport FlexView from '../../../../../../ui/layout/flex-view';\nimport LottieAnimation from '../../../../../../ui/lottie-animation/lottie-animation';\nimport { type ILottieAnimationRef } from '../../../../../../ui/lottie-animation/types';\nimport Text from '../../../../../../ui/text/text';\nimport CardTitle from '../../../../../../homework/card-title';\nimport { type TColorNames } from '../../../../../../ui/types';\nimport ActivitiesCardPuzzles from '../activities-card-puzzles/activities-card-puzzles';\nimport { NODE_STATE } from '../../../../../daily-timeline/daily-timeline-types';\nimport TextButton from '../../../../../../ui/buttons/text-button/text-button';\nimport { countActivitiesByState } from '../utils';\n\nconst lottieSettings = {\n autoplay: false,\n loop: true,\n renderer: 'canvas',\n};\n\nconst ActivitiesCard: FC<IActivitiesCardProps> = ({\n cardType,\n nodeType,\n activitiesList = [],\n onPuzzleClick,\n}) => {\n const lottieRef = useRef<ILottieAnimationRef>(null);\n const [showAllActivities, setShowAllActivities] = useState(false);\n\n const progressStatus = useMemo(() => {\n const { totalDone, totalPending, totalOverdue } = countActivitiesByState(activitiesList);\n\n return [\n totalDone > 0 && `${totalDone} Done`,\n totalPending > 0 && `${totalPending} In-progress`,\n totalOverdue > 0 && `${totalOverdue} Overdue`,\n ]\n .filter(Boolean)\n .join(', ');\n }, [activitiesList]);\n const cardHeaderText = useMemo(() => (cardType ? cardType.split('_').join(' ') : ''), [cardType]);\n const { displayedActivities, remainingCount } = useMemo(() => {\n if (cardType === CARD_TYPE.puzzle) {\n return { displayedActivities: activitiesList, remainingCount: 0 };\n }\n\n const maxVisible = 3;\n const hasMore = activitiesList.length > maxVisible;\n\n if (showAllActivities || !hasMore) {\n return { displayedActivities: activitiesList, remainingCount: 0 };\n }\n\n return {\n displayedActivities: activitiesList.slice(0, maxVisible),\n remainingCount: activitiesList.length - maxVisible,\n };\n }, [activitiesList, showAllActivities, cardType]);\n\n const shouldShowToggleButton =\n (remainingCount > 0 || showAllActivities) && activitiesList.length > 3;\n\n const handleMouseEnter = useCallback(() => {\n lottieRef.current?.play();\n }, []);\n\n const handleMouseLeave = useCallback(() => {\n lottieRef.current?.stop();\n }, []);\n\n const handleToggleActivities = useCallback(() => {\n setShowAllActivities(prev => !prev);\n }, []);\n\n return (\n <FlexView onMouseEnter={handleMouseEnter} onMouseLeave={handleMouseLeave}>\n <Styled.ActivityCardContainerWrapper\n $background={getCardTypeIconMap(cardType).color as TColorNames}\n >\n <Styled.ActivityCardContainer\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $height=\"56px\"\n $bgImage={getCardTypeIconMap(cardType).background}\n $gutterX={0.78125}\n $flexGap={8.5}\n >\n <FlexView\n $widthX={2}\n $heightX={2}\n $borderRadiusX={2}\n $background=\"WHITE_1\"\n $position=\"relative\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n >\n <LottieAnimation\n ref={lottieRef}\n src={getCardTypeIconMap(cardType).lottie}\n width={32}\n height={32}\n settings={lottieSettings}\n />\n </FlexView>\n <FlexView>\n <CardTitle cardHeader={cardHeaderText} nodeType={nodeType} />\n <Text $renderAs=\"ub3\" $color=\"BLACK_1\">\n {progressStatus}\n </Text>\n </FlexView>\n </Styled.ActivityCardContainer>\n </Styled.ActivityCardContainerWrapper>\n {activitiesList.length > 0 &&\n (cardType === CARD_TYPE.puzzle ? (\n <ActivitiesCardPuzzles puzzles={activitiesList} onPuzzleClick={onPuzzleClick} />\n ) : (\n <FlexView $flexRowGapX={1.25} $gutterX={1} $gapX={1} $borderColor=\"GREY_2\">\n {displayedActivities.map(({ state, title, subtext, id }, index) => (\n <FlexView $flexDirection=\"row\" $flexGapX={1.05} key={`${id}-${index}`}>\n <FlexView $gapX={0.25}>\n <FlexView\n $borderRadiusX={1}\n $background={\n state === NODE_STATE.PENDING || state === NODE_STATE.NOT_STARTED\n ? 'RED'\n : 'BLACK_1'\n }\n $widthX={1}\n $heightX={1}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n >\n {!!state && stateIcon[state as NODE_STATE]}\n </FlexView>\n </FlexView>\n <FlexView $flexRowGap={4}>\n <Text $renderAs=\"ub2\" $color=\"BLACK_1\">\n {title || ''}\n </Text>\n <Text $renderAs=\"ub3\" $color=\"BLACK_T_60\">\n {subtext || ''}\n </Text>\n </FlexView>\n </FlexView>\n ))}\n {shouldShowToggleButton && (\n <FlexView $gutterX={2}>\n <TextButton\n label={showAllActivities ? 'Show less' : `+${remainingCount} activities`}\n size=\"regular\"\n color=\"BLACK_1\"\n onClick={handleToggleActivities}\n />\n </FlexView>\n )}\n </FlexView>\n ))}\n </FlexView>\n );\n};\n\nexport default memo(ActivitiesCard);\n"],"names":["lottieSettings","ActivitiesCard","cardType","nodeType","activitiesList","onPuzzleClick","lottieRef","useRef","showAllActivities","setShowAllActivities","useState","progressStatus","useMemo","totalDone","totalPending","totalOverdue","countActivitiesByState","cardHeaderText","displayedActivities","remainingCount","CARD_TYPE","maxVisible","hasMore","shouldShowToggleButton","handleMouseEnter","useCallback","_a","handleMouseLeave","handleToggleActivities","prev","jsxs","FlexView","jsx","Styled.ActivityCardContainerWrapper","getCardTypeIconMap","Styled.ActivityCardContainer","LottieAnimation","CardTitle","Text","ActivitiesCardPuzzles","state","title","subtext","id","index","NODE_STATE","stateIcon","TextButton","ActivitiesCard$1","memo"],"mappings":";;;;;;;;;;;;;AAiBA,MAAMA,IAAiB;AAAA,EACrB,UAAU;AAAA,EACV,MAAM;AAAA,EACN,UAAU;AACZ,GAEMC,IAA2C,CAAC;AAAA,EAChD,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,gBAAAC,IAAiB,CAAC;AAAA,EAClB,eAAAC;AACF,MAAM;AACE,QAAAC,IAAYC,EAA4B,IAAI,GAC5C,CAACC,GAAmBC,CAAoB,IAAIC,EAAS,EAAK,GAE1DC,IAAiBC,EAAQ,MAAM;AACnC,UAAM,EAAE,WAAAC,GAAW,cAAAC,GAAc,cAAAC,EAAa,IAAIC,EAAuBZ,CAAc;AAEhF,WAAA;AAAA,MACLS,IAAY,KAAK,GAAGA,CAAS;AAAA,MAC7BC,IAAe,KAAK,GAAGA,CAAY;AAAA,MACnCC,IAAe,KAAK,GAAGA,CAAY;AAAA,IAElC,EAAA,OAAO,OAAO,EACd,KAAK,IAAI;AAAA,EAAA,GACX,CAACX,CAAc,CAAC,GACba,IAAiBL,EAAQ,MAAOV,IAAWA,EAAS,MAAM,GAAG,EAAE,KAAK,GAAG,IAAI,IAAK,CAACA,CAAQ,CAAC,GAC1F,EAAE,qBAAAgB,GAAqB,gBA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