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AAA,EAAAA,IAAY,CAAE3I,GAAAA,EAAI4I,KAAAA,KAC3BlB,GACJ,MAsEJ,EClJA,GArDiB,WACb,IAAM/D,GAAWC,EAAAA,EAAAA,MACXiG,GAAO/F,EAAAA,EAAAA,IAAYgG,EAAAA,IACzB,GAA0CnK,EAAAA,EAAAA,WAAS,GAAK,eAAjDoK,EAAa,KAAEC,EAAgB,KACtCzB,QAAQC,IAAI,cAEZrE,EAAAA,EAAAA,YAAU,WACN6F,IAAsB,OAAJH,QAAI,IAAJA,GAAAA,EAAMI,SAC5B,GAAG,CAACJ,IAoBJ,OACI,UAACK,EAAA,EAAQ,CAACvC,MAPNkC,EAAKM,QACE,qBAEJ,+BAIuB,WAC1B,SAACtH,EAAA,EAAW,UACPgH,EAAKM,SACF,SAACrH,EAAA,GAAI,CAACC,WAAS,YACX,SAACD,EAAA,GAAI,CAACM,MAAI,EAACgH,GAAI,GAAG,UACd,SAAC,EAAU,SAInB,UAACtH,EAAA,GAAI,CAACC,WAAS,aACX,SAACD,EAAA,GAAI,CAACM,MAAI,EAACgH,GAAI,GAAIC,GAAI,EAAGC,GAAI,EAAE,UAC5B,SAAC,EAAK,OAEV,SAACxH,EAAA,GAAI,CAACM,MAAI,EAACgH,GAAI,GAAIC,GAAI,EAAGC,GAAI,EAAG/J,GAAI,CAAEgK,GAAI,CAAED,GAAI,GAAK9J,GAAI,CAAE4J,GAAI,EAAGE,GAAI,IAAM,UACzE,SAAC,GAAK,YAKpBT,EAAKM,UAAW,SAAC,EAAc,CAAC1K,KAAMsK,EAAerK,QAtC5C,SAACE,GAChB2I,QAAQC,IAAI,SACZD,QAAQC,IAAI5I,GACZoK,GAAiB,GACbpK,GAEA+D,GAAS6G,EAAAA,EAAAA,IAAW,CAAE5B,KAAM,CAAEqB,SAAS,KAE/C,MAiCJ,C","sources":["views/home-page/ExplainerModal.js","ui-component/StatCard.js","views/home-page/TitanStats.js","views/home-page/Stats.js","views/home-page/ToDos.js","views/home-page/index.js"],"sourcesContent":["import PropTypes from 'prop-types';\nimport { useState } from 'react';\nimport Link from '@mui/material/Link';\n\n// material-ui\nimport { Button, DialogActions, Checkbox, DialogContent, FormControlLabel, Typography, DialogTitle, Dialog } from '@mui/material';\n\n// ==============================|| SIMPLE MODAL ||============================== //\n\nconst ExplainerModal = ({ open, onClose }) => {\n const [doNotShow, setDoNotShow] = useState(false);\n return (\n \n );\n};\n\nExplainerModal.propTypes = {\n open: PropTypes.bool,\n onClose: PropTypes.func\n};\n\nexport default ExplainerModal;\n","import PropTypes from 'prop-types';\nimport { useNavigate } from 'react-router-dom';\n\n// material-ui\nimport { styled } from '@mui/material/styles';\nimport { Card, CardActionArea, CardContent, Grid, Typography } from '@mui/material';\n\n// styles\nconst IconWrapper = styled('div')({\n position: 'absolute',\n left: '-17px',\n bottom: '-27px',\n color: '#fff',\n transform: 'rotate(25deg)',\n '&> svg': {\n width: '100px',\n height: '100px',\n opacity: '0.35'\n }\n});\n\n// =============================|| USER NUM CARD ||============================= //\n\nconst StatCard = ({ primary, secondary, iconPrimary, color, navTo }) => {\n const navigate = useNavigate();\n const IconPrimary = iconPrimary;\n const primaryIcon = iconPrimary ? : null;\n\n return (\n \n navigate(`/${navTo}`)}>\n \n {primaryIcon}\n \n \n \n {secondary}\n \n \n \n \n {primary}\n \n \n \n \n \n \n );\n};\n\nStatCard.propTypes = {\n primary: PropTypes.string,\n secondary: PropTypes.string,\n iconPrimary: PropTypes.object,\n color: PropTypes.string,\n navTo: PropTypes.string\n};\n\nexport default StatCard;\n","import { useDispatch, useSelector } from 'react-redux';\n\n// material-ui\nimport { useTheme } from '@mui/styles';\nimport { Stack } from '@mui/material';\nimport InsertPhotoTwoToneIcon from '@mui/icons-material/InsertPhotoTwoTone';\nimport EventTwoToneIcon from '@mui/icons-material/EventTwoTone';\nimport LanTwoToneIcon from '@mui/icons-material/LanTwoTone';\nimport LocalPoliceTwoToneIcon from '@mui/icons-material/LocalPoliceTwoTone';\nimport NewReleasesTwoToneIcon from '@mui/icons-material/NewReleasesTwoTone';\nimport ArticleTwoToneIcon from '@mui/icons-material/ArticleTwoTone';\n\n// project imports\nimport SubCard from 'ui-component/cards/SubCard';\nimport StatCard from 'ui-component/StatCard';\nimport { useEffect } from 'react';\nimport { getStats, statsData } from 'store/slices/accountSlice';\nimport { getColor } from 'utils/colors';\nimport useAuth from 'hooks/useAuth';\n\n// ==========================|| DATA WIDGET - LATEST MESSAGES CARD ||========================== //\n\nconst TitanStats = () => {\n const theme = useTheme();\n const { isLoggedIn } = useAuth();\n const dispatch = useDispatch();\n const stats = useSelector(statsData) || {};\n const { projects = 0, titles = 0, registrations = 0 } = stats;\n\n useEffect(() => {\n if (!isLoggedIn) {\n return;\n }\n dispatch(getStats());\n }, [dispatch, isLoggedIn]);\n\n return (\n \n \n \n \n \n \n \n );\n};\n\nexport default TitanStats;\n","import { useDispatch, useSelector } from 'react-redux';\n\n// material-ui\nimport { useTheme } from '@mui/styles';\nimport { Stack } from '@mui/material';\nimport InsertPhotoTwoToneIcon from '@mui/icons-material/InsertPhotoTwoTone';\nimport EventTwoToneIcon from '@mui/icons-material/EventTwoTone';\nimport LanTwoToneIcon from '@mui/icons-material/LanTwoTone';\nimport LocalPoliceTwoToneIcon from '@mui/icons-material/LocalPoliceTwoTone';\nimport NewReleasesTwoToneIcon from '@mui/icons-material/NewReleasesTwoTone';\nimport ArticleTwoToneIcon from '@mui/icons-material/ArticleTwoTone';\n\n// project imports\nimport SubCard from 'ui-component/cards/SubCard';\nimport StatCard from 'ui-component/StatCard';\nimport { useEffect } from 'react';\nimport { getStats, statsData } from 'store/slices/accountSlice';\nimport { getColor } from 'utils/colors';\nimport useAuth from 'hooks/useAuth';\n\n// ==========================|| DATA WIDGET - LATEST MESSAGES CARD ||========================== //\n\nconst Stats = () => {\n const theme = useTheme();\n const { isLoggedIn } = useAuth();\n const dispatch = useDispatch();\n const stats = useSelector(statsData) || {};\n const { projects = 0, titles = 0, registrations = 0, infringements = 0, actions = 0, events = 0 } = stats;\n\n useEffect(() => {\n if (!isLoggedIn) {\n return;\n }\n dispatch(getStats());\n }, [dispatch, isLoggedIn]);\n\n return (\n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default Stats;\n","import { useEffect, useState } from 'react';\r\nimport { useNavigate } from 'react-router-dom';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\n\r\n// material-ui\r\nimport {\r\n Checkbox,\r\n Table,\r\n TableBody,\r\n TableCell,\r\n TableContainer,\r\n TableHead,\r\n TableRow,\r\n Typography,\r\n CardContent,\r\n Divider,\r\n CardActions,\r\n Button,\r\n Tooltip\r\n} from '@mui/material';\r\nimport { useTheme } from '@mui/styles';\r\nimport CircleIcon from '@mui/icons-material/Circle';\r\n\r\n// Third Party\r\nimport { isBefore } from 'date-fns';\r\n\r\n// project imports\r\nimport Chip from 'ui-component/extended/Chip';\r\nimport SubCard from 'ui-component/cards/SubCard';\r\nimport { getEventList, initialized, events, updateEvent, deleteEvent } from 'store/slices/eventSlice';\r\nimport { getColor } from 'utils/colors';\r\nimport useAuth from 'hooks/useAuth';\r\nimport { formatDateMMDDYY } from 'utils/dates';\r\nimport config from 'config';\r\nimport EventPopUp from 'ui-component/EventPopUp';\r\n\r\n// ===========================|| TO DO LIST ||=========================== //\r\n\r\nconst ToDos = () => {\r\n const theme = useTheme();\r\n const navigate = useNavigate();\r\n const dispatch = useDispatch();\r\n const { isLoggedIn } = useAuth();\r\n const eventsInitialized = useSelector(initialized);\r\n const allEvents = useSelector(events);\r\n const [topEvents, setTopEvents] = useState([]);\r\n const [showEvent, setShowEvent] = useState(false);\r\n const [selectedEvent, setSelectedEvent] = useState();\r\n\r\n useEffect(() => {\r\n if (!isLoggedIn) {\r\n return;\r\n }\r\n if (!eventsInitialized) {\r\n dispatch(getEventList());\r\n }\r\n if (topEvents.length === 0) {\r\n // Top 10...\r\n let sortedEvents = [...allEvents]\r\n .filter((item) => !item.isCompleted)\r\n .sort((a, b) => {\r\n const dateA = new Date(a.start);\r\n const dateB = new Date(b.start);\r\n return isBefore(dateA, dateB) ? -1 : 1;\r\n });\r\n if (sortedEvents.length > 10) {\r\n sortedEvents = sortedEvents.slice(0, 10);\r\n }\r\n setTopEvents(sortedEvents);\r\n } else {\r\n const updatedTop10 = [...topEvents].map((e1) => {\r\n const e3 = allEvents.find((e2) => e2.id === e1.id);\r\n return e3 || e1;\r\n });\r\n setTopEvents(updatedTop10);\r\n }\r\n }, [allEvents, dispatch, eventsInitialized, isLoggedIn]);\r\n\r\n const calendarPage = () => {\r\n navigate('/calendar');\r\n };\r\n\r\n const getType = (event) => {\r\n let typeColor;\r\n if (event.isCompleted) {\r\n typeColor = getColor({ id: 'completed', theme });\r\n } else {\r\n typeColor = getColor({ id: event.type, theme });\r\n }\r\n return ;\r\n };\r\n const getPriority = (event) => {\r\n if (event.isCompleted) {\r\n const chipColor = getColor({ id: 'completed', theme });\r\n return ;\r\n }\r\n const priorityRecord = config.eventPriorities.find((item) => item.id === event.priority);\r\n if (!priorityRecord) {\r\n return ;\r\n }\r\n return ;\r\n };\r\n\r\n const selectRow = (event) => {\r\n console.log('Row selected');\r\n setSelectedEvent(event);\r\n setShowEvent(true);\r\n };\r\n\r\n const handleModalClose = () => {\r\n setShowEvent(false);\r\n setSelectedEvent(null);\r\n };\r\n const handleDeleteEvent = (id) => {\r\n console.log('Delete Event', id);\r\n dispatch(deleteEvent({ id }));\r\n handleModalClose();\r\n };\r\n const handleUpdateEvent = (event) => {\r\n console.log('Update Event', event);\r\n const { id } = event;\r\n const data = { id };\r\n if (event.notes) {\r\n data.notes = event.notes;\r\n }\r\n if (event.start) {\r\n data.start = event.start;\r\n }\r\n if (event.priority) {\r\n data.priority = event.priority;\r\n }\r\n if (event.title) {\r\n data.title = event.title;\r\n }\r\n if (event.type) {\r\n data.type = event.type;\r\n }\r\n if (event.entityID) {\r\n data.entityID = event.entityID;\r\n }\r\n if (Object.keys(event).includes('isCompleted')) {\r\n data.isCompleted = event.isCompleted;\r\n }\r\n dispatch(updateEvent({ id, data }));\r\n handleModalClose();\r\n };\r\n\r\n const completeItem = (event) => {\r\n console.log('Complete Item', event);\r\n dispatch(updateEvent({ id: event.id, data: { isCompleted: !event.isCompleted } }));\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n Complete\r\n Type\r\n Name\r\n Due\r\n \r\n Priority\r\n \r\n \r\n \r\n \r\n {topEvents.map((row, index) => (\r\n selectRow(row)}>\r\n \r\n {\r\n e.stopPropagation();\r\n }}\r\n onChange={() => {\r\n completeItem(row);\r\n }}\r\n checked={row.isCompleted || false}\r\n />\r\n \r\n \r\n \r\n {getType(row)}\r\n \r\n \r\n {row.title}\r\n \r\n \r\n {formatDateMMDDYY(row.start)}\r\n \r\n \r\n {getPriority(row)}\r\n \r\n ))}\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default ToDos;\r\n","import { useEffect, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\n\n// material-ui\nimport { CardContent, Grid } from '@mui/material';\n\n// project imports\nimport MainCard from 'ui-component/cards/MainCard';\nimport ExplainerModal from './ExplainerModal';\nimport { updateUser, userData } from 'store/slices/accountSlice';\nimport TitanStats from './TitanStats';\nimport Stats from './Stats';\nimport ToDos from './ToDos';\n\n// ==============================|| HOME PAGE ||============================== //\n\nconst HomePage = () => {\n const dispatch = useDispatch();\n const user = useSelector(userData);\n const [showExplainer, setShowExplainer] = useState(true);\n console.log('HOME Page');\n\n useEffect(() => {\n setShowExplainer(!user?.noIntro);\n }, [user]);\n\n const closeModal = (doNotShow) => {\n console.log('close');\n console.log(doNotShow);\n setShowExplainer(false);\n if (doNotShow) {\n // update user record\n dispatch(updateUser({ data: { noIntro: true } }));\n }\n };\n\n // const isTitan = user.isTitan;\n const getWelcome = () => {\n if (user.isTitan) {\n return 'Welcome Titan User';\n }\n return 'Welcome to RightsClick™';\n };\n\n return (\n \n \n {user.isTitan ? (\n \n \n \n \n \n ) : (\n \n \n \n \n \n \n \n \n )}\n \n {!user.isTitan && }\n \n );\n};\n\nexport default HomePage;\n"],"names":["open","onClose","useState","doNotShow","setDoNotShow","Dialog","DialogTitle","id","Typography","component","variant","color","DialogContent","dividers","sx","mt","Link","href","target","DialogActions","FormControlLabel","control","Checkbox","checked","name","onChange","label","Button","mr","size","onClick","IconWrapper","styled","position","left","bottom","transform","width","height","opacity","primary","secondary","iconPrimary","navTo","navigate","useNavigate","IconPrimary","primaryIcon","fontSize","Card","background","CardActionArea","CardContent","Grid","container","direction","justifyContent","alignItems","spacing","item","sm","align","theme","useTheme","isLoggedIn","useAuth","dispatch","useDispatch","stats","useSelector","statsData","projects","titles","registrations","useEffect","getStats","SubCard","Stack","toString","LanTwoToneIcon","getColor","InsertPhotoTwoToneIcon","ArticleTwoToneIcon","infringements","actions","events","NewReleasesTwoToneIcon","LocalPoliceTwoToneIcon","EventTwoToneIcon","eventsInitialized","initialized","allEvents","topEvents","setTopEvents","showEvent","setShowEvent","selectedEvent","setSelectedEvent","getEventList","length","sortedEvents","filter","isCompleted","sort","a","b","dateA","Date","start","dateB","isBefore","slice","updatedTop10","map","e1","find","e2","getType","event","typeColor","type","Circle","getPriority","chipColor","Chip","chipcolor","priorityRecord","config","priority","handleModalClose","title","p","TableContainer","Table","TableHead","TableRow","TableCell","pr","TableBody","row","index","hover","console","log","e","stopPropagation","updateEvent","data","Tooltip","placement","textDecoration","formatDateMMDDYY","Divider","CardActions","EventPopUp","handleClose","handleDelete","deleteEvent","handleUpdate","notes","entityID","Object","keys","includes","user","userData","showExplainer","setShowExplainer","noIntro","MainCard","isTitan","xs","lg","md","pl","updateUser"],"sourceRoot":""}