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demographicUtils.ts","webpack://_N_E/./atoms/savedCalendarEvents.atom.ts","webpack://_N_E/./components/displays/Calendar/Overview/Insights/Cards.tsx","webpack://_N_E/./components/displays/Calendar/Overview/Insights/PieChart.tsx","webpack://_N_E/./components/displays/Charts/Pie/Label.tsx","webpack://_N_E/./components/displays/LoadingSpinner.tsx","webpack://_N_E/./components/displays/Strapi/Markdown.tsx","webpack://_N_E/./components/displays/Strapi/UploadedFile.tsx","webpack://_N_E/./components/displays/WalkthroughPane.tsx","webpack://_N_E/./components/displays/Calendar/CalendarInsightsSection.tsx","webpack://_N_E/./components/displays/Spotlight/SpotlightCard.tsx","webpack://_N_E/./components/displays/Spotlight/SpotlightSection.tsx","webpack://_N_E/./components/displays/HomepageSurveysCard.tsx","webpack://_N_E/./components/displays/Walkthrough.tsx","webpack://_N_E/./pages/index.tsx","webpack://_N_E/./utils/calendarUtils.ts","webpack://_N_E/./utils/demographicUtils.ts","webpack://_N_E/"],"sourcesContent":["\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/\",\n function () {\n return require(\"private-next-pages/index.tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/\"])\n });\n }\n ","export enum Demographics {\n BOARDING = \"BOARDING\",\n SEXUAL_ORIENTATION_SEX = \"SEXUAL_ORIENTATION_SEX\",\n DISABILITY = \"DISABILITY\",\n DISABILITY_TYPE = \"DISABILITY_TYPE\",\n SEXUAL_ORIENTATION_GENDER = \"SEXUAL_ORIENTATION_GENDER\",\n ETHNICITY = \"ETHNICITY\",\n MENTAL_HEALTH = \"MENTAL_HEALTH\",\n RELIGION = \"RELIGION\",\n SEXUAL_ORIENTATION = \"SEXUAL_ORIENTATION\",\n SOCIO_ECONOMIC = \"SOCIO_ECONOMIC\",\n}\n\nexport const DemographicTitles: Record = {\n [Demographics.BOARDING]: \"Boarding\",\n [Demographics.SEXUAL_ORIENTATION_SEX]: \"Birth Sex\",\n [Demographics.DISABILITY]: \"Disability\",\n [Demographics.DISABILITY_TYPE]: \"Disability type\",\n [Demographics.SEXUAL_ORIENTATION_GENDER]: \"Gender\",\n [Demographics.ETHNICITY]: \"Race & Ethnicity\",\n [Demographics.MENTAL_HEALTH]: \"Mental Health\",\n [Demographics.RELIGION]: \"Religion & Beliefs\",\n [Demographics.SEXUAL_ORIENTATION]: \"LGBTQ+\",\n [Demographics.SOCIO_ECONOMIC]: \"Socio-Economic\",\n};\n\nexport const DemographicTagMap: Record = {\n Boarding: Demographics.BOARDING,\n \"Birth Sex\": Demographics.SEXUAL_ORIENTATION_SEX,\n Disability: Demographics.DISABILITY,\n Disabilities: Demographics.DISABILITY,\n Gender: Demographics.SEXUAL_ORIENTATION_GENDER,\n \"Race & Ethnicity\": Demographics.ETHNICITY,\n \"Mental Health\": Demographics.MENTAL_HEALTH,\n \"Religion & Beliefs\": Demographics.RELIGION,\n Buddhism: Demographics.RELIGION,\n Hinduism: Demographics.RELIGION,\n Islam: Demographics.RELIGION,\n Judaism: Demographics.RELIGION,\n \"LGBTQ+\": Demographics.SEXUAL_ORIENTATION,\n \"Socio-Economic\": Demographics.SOCIO_ECONOMIC,\n \"Sexual Orientation\": Demographics.SEXUAL_ORIENTATION,\n};\n\nexport const DemographicTagMapReverse: Record =\n Object.entries(DemographicTagMap).reduce((acc, [tag, demographic]) => {\n if (!acc[demographic]) {\n acc[demographic] = [];\n }\n acc[demographic].push(tag);\n return acc;\n }, {} as Record);\n\nexport function getDemographicByTitle(title: string): Demographics | undefined {\n // Small hack, due to the `tag` names being different when stored in the DB\n switch (title) {\n case \"Disabilities\":\n title = DemographicTitles.DISABILITY;\n break;\n case \"LGBTQ+\":\n title = DemographicTitles.SEXUAL_ORIENTATION;\n break;\n }\n return Object.entries(DemographicTitles).find(\n ([, value]) => value === title\n )?.[0] as Demographics | undefined;\n}\n","import { CalendarEventsWithTags } from \"@monorepo/api-types\";\nimport { atom } from \"recoil\";\n\nexport const savedCalendarEventsAtom = atom({\n key: \"savedCalendarEventsAtom\",\n default: [],\n});\n","import { css } from \"@emotion/react\";\nimport { CalendarEventsWithTags } from \"@monorepo/api-types\";\nimport { VisibilityOutlined } from \"@mui/icons-material\";\nimport {\n Avatar,\n Box,\n Card,\n CardActions,\n Divider,\n Typography,\n} from \"@mui/material\";\nimport {\n Demographics,\n DemographicTagMap,\n DemographicTitles,\n} from \"apps/api/src/utils/demographicUtils\";\nimport { IconPosition } from \"apps/dashboard-client/components/inputs/Button\";\nimport NavLink from \"apps/dashboard-client/components/inputs/NavLink\";\nimport { respond } from \"apps/dashboard-client/styles/mixins\";\nimport {\n DemographicTagColours,\n ListedDemographics,\n} from \"apps/dashboard-client/utils/demographicUtils\";\nimport { useMemo } from \"react\";\n\ntype CalendarOverviewInsightsCardsProps = {\n calendarEvents: CalendarEventsWithTags[];\n setSelectedDemographic?: (demographic: Demographics | null) => void;\n};\n\nconst s = {\n card: css(\n {\n background: \"#fff\",\n border: \"1px solid #e0e0e0\",\n padding: \"1.6rem\",\n margin: \"0.8rem\",\n marginLeft: \"0\",\n flex: \"1 1 calc(100% - 1.6rem)\",\n },\n respond(\n \"l\",\n css({\n flex: \"1 1 calc(50% - 1.6rem)\",\n })\n ),\n respond(\n \"xxl\",\n css({\n flex: \"1 1 calc(33.333% - 1.6rem)\",\n })\n )\n ),\n cardHeader: css({\n display: \"flex\",\n alignItems: \"center\",\n }),\n cardIcon: css({\n marginRight: \"1.8rem\",\n }),\n cardTitle: css({}),\n cardContent: css({\n display: \"flex\",\n justifyContent: \"space-between\",\n alignItems: \"end\",\n padding: 0,\n \"&:last-child\": {\n padding: 0,\n },\n }),\n dataPoints: css({\n display: \"flex\",\n flexDirection: \"column\",\n }),\n cardActions: css({\n marginTop: \"1.2rem\",\n }),\n};\n\nconst CalendarOverviewInsightsCards = ({\n calendarEvents,\n setSelectedDemographic,\n}: CalendarOverviewInsightsCardsProps) => {\n const { eventCounts, totalEvents } = useMemo(() => {\n const eventCounts: Record = {} as Record<\n Demographics,\n number\n >;\n\n Object.values(ListedDemographics).forEach((demographic) => {\n eventCounts[demographic] = 0;\n });\n\n if (calendarEvents) {\n calendarEvents.forEach((event) => {\n const demographicsInEvent = new Set();\n\n event.calendar_events_has_tags.forEach((ceht) => {\n const tagName = ceht.tag.name;\n const demographic = DemographicTagMap[tagName];\n if (demographic) {\n demographicsInEvent.add(demographic);\n }\n });\n\n demographicsInEvent.forEach((demographic) => {\n eventCounts[demographic] += 1;\n });\n });\n }\n\n const totalEvents = Object.values(eventCounts).reduce(\n (sum, count) => sum + (count || 0),\n 0\n );\n\n return { eventCounts, totalEvents };\n }, [calendarEvents]);\n\n const cardsData = useMemo(() => {\n return Object.values(ListedDemographics).map((demographic) => {\n const count = eventCounts[demographic] || 0;\n const balance = totalEvents > 0 ? (count / totalEvents) * 100 : 0;\n\n return {\n demographic,\n icon: (\n \n  \n \n ),\n title: DemographicTitles[demographic],\n events: count,\n balance: `${Math.round(balance * 10) / 10}%`, // Percentage with up to 1 decimal place\n };\n });\n }, [eventCounts, totalEvents]);\n\n return (\n <>\n {cardsData.map((card, index) => (\n \n
\n {card.icon}\n \n {card.title}\n \n Balance: {card.balance}\n \n \n
\n

{card.events}

\n \n Events\n \n
\n
\n {setSelectedDemographic && ( // If we are able to open a modal, we're probably on the main calendar page\n
\n \n \n }\n onClick={() => {\n setSelectedDemographic(card.demographic);\n }}\n />\n \n
\n )}\n
\n ))}\n \n );\n};\n\nexport default CalendarOverviewInsightsCards;\n","import { css } from \"@emotion/react\";\nimport { CalendarEventsWithTags } from \"@monorepo/api-types\";\nimport { BookmarkBorderOutlined } from \"@mui/icons-material\";\nimport { Stack, Typography } from \"@mui/material\";\nimport {\n Demographics,\n DemographicTagMap,\n DemographicTitles,\n} from \"apps/api/src/utils/demographicUtils\";\nimport NavLink from \"apps/dashboard-client/components/inputs/NavLink\";\nimport {\n getDemographicColorRGBA,\n ListedDemographics,\n} from \"apps/dashboard-client/utils/demographicUtils\";\nimport { useMemo } from \"react\";\nimport { Pie, PieChart, Tooltip } from \"recharts\";\nimport ChartsPieLabel from \"../../../Charts/Pie/Label\";\n\ntype CalendarOverviewInsightsPieChartProps = {\n calendarEvents: CalendarEventsWithTags[];\n};\n\nconst s = {\n pieContainer: css({\n display: \"flex\",\n columnGap: \"1.2rem\",\n justifyContent: \"center\",\n }),\n};\n\nconst CalendarOverviewInsightsPieChart = ({\n calendarEvents,\n}: CalendarOverviewInsightsPieChartProps) => {\n const pieData = useMemo(() => {\n const eventCounts: Record = {} as Record<\n Demographics,\n number\n >;\n Object.values(ListedDemographics).forEach((demographic) => {\n eventCounts[demographic] = 0;\n });\n\n if (calendarEvents) {\n calendarEvents.forEach((event) => {\n const demographicsInEvent = new Set();\n\n event.calendar_events_has_tags.forEach((ceht) => {\n const tagName = ceht.tag.name;\n const demographic = DemographicTagMap[tagName];\n if (demographic) {\n demographicsInEvent.add(demographic);\n }\n });\n\n demographicsInEvent.forEach((demographic) => {\n eventCounts[demographic] += 1;\n });\n });\n }\n\n return Object.values(ListedDemographics).map((demographic) => ({\n name: DemographicTitles[demographic],\n fill: getDemographicColorRGBA(demographic),\n value: eventCounts[demographic] || 0,\n }));\n }, [calendarEvents]);\n\n const CustomPieTooltip = ({ payload }: { payload: any }) => {\n const activeSegment = payload[0]?.payload;\n if (!activeSegment) return <>;\n\n return (\n \n );\n };\n\n return (\n
\n {!pieData.some((d) => d.value > 0) ? (\n \n \n \n Save\n or\n {\" \"}\n \n to see calendar insights\n \n ) : (\n \n \n }\n />\n \n )}\n
\n );\n};\n\nexport default CalendarOverviewInsightsPieChart;\n","import { colorVars, RGBA } from \"apps/dashboard-client/utils/colorUtils\";\n\ninterface HoverLabelProps {\n color: RGBA;\n text: string;\n value: number | string | null;\n}\n\nconst ChartsPieLabel = ({ color, text, value }: HoverLabelProps) => {\n const lightColors = [colorVars.orange, colorVars.yellow, colorVars.gray2];\n const textColor = lightColors.includes(color)\n ? colorVars.textSecondary\n : color;\n\n return (\n \n \n {text}\n

\n {value !== null && (\n \n {value}\n

\n )}\n \n );\n};\n\nexport default ChartsPieLabel;\n","import { CircularProgress } from \"@mui/material\";\n\ntype LoadingSpinnerProps = {\n spinnerSize?: number;\n};\n\nconst LoadingSpinner = ({ spinnerSize = 24 }: LoadingSpinnerProps) => {\n return (\n \n \n \n );\n};\n\nexport default LoadingSpinner;\n","import { css, SerializedStyles } from \"@emotion/react\";\nimport Markdown from \"react-markdown\";\nimport NavLink from \"../../inputs/NavLink\";\nimport { GTMEvent } from \"apps/dashboard-client/utils/googleTagManagerUtils\";\n\nexport type gtmData = { source: string } & Record<\n string,\n string | number | string[]\n>;\ntype StrapiMarkdownProps = {\n text: string;\n linkTrackingEvent: GTMEvent;\n customCss?: SerializedStyles;\n};\n\nconst s = {\n container: css({\n display: \"flex\",\n flexDirection: \"column\",\n rowGap: \"1.6rem\",\n }),\n};\n\nconst StrapiMarkdown = ({\n text = \"\",\n customCss,\n linkTrackingEvent,\n}: StrapiMarkdownProps) => {\n return (\n
\n \n );\n },\n }}\n >\n {text}\n \n
\n );\n};\n\nexport default StrapiMarkdown;\n","import { GTMEvent } from \"apps/dashboard-client/utils/googleTagManagerUtils\";\nimport { StrapiFile } from \"libs/api-service/src/lib/cms\";\nimport NavLink from \"../../inputs/NavLink\";\n\ntype DimensionRem = `${number}rem`;\ntype DimensionPercent = `${number}%`;\ntype ImageDimension = DimensionPercent | DimensionRem | number;\ntype StrapiUploadedFileProps = StrapiFile & {\n imgMaxHeight?: ImageDimension;\n imgMaxWidth?: ImageDimension;\n downloadEvent: GTMEvent;\n};\n\nconst StrapiUploadedFile = ({\n is_embedded,\n title,\n height,\n width,\n file: { mime, url },\n imgMaxHeight = \"20rem\",\n imgMaxWidth = \"100%\",\n downloadEvent,\n}: StrapiUploadedFileProps) => {\n const renderFile = () => {\n if (is_embedded) {\n return