{"version":3,"sources":["configs/themeConfig.js","services/joleService.js","assets/images/logo/logo.png","assets/images/logo/giveChances.png","redux/reducers/auth/index.js","redux/reducers/navbar/index.js","redux/reducers/layout/index.js","redux/reducers/appData/index.js","redux/reducers/rootReducer.js","redux/storeConfig/store.js","utility/context/ThemeColors.js","@core/components/spinner/Fallback-spinner.js","@core/components/ripple-button/index.js","serviceWorker.js","index.js"],"names":["themeConfig","app","appName","appLogoImage","require","default","layout","isRTL","skin","routerTransition","type","contentWidth","menu","isHidden","isCollapsed","navbar","backgroundColor","footer","customizer","scrollTop","JoleServiceContext","React","createContext","JoleService","top","skip","orderBy","order","query","axios","get","process","schoolId","id","user","put","unitId","newEmployee","post","role","delete","userInfo","guardian","proofOfIncomeId","proofOfIncomeFile","proofOfIncomeFileId","workingHour","unit","school","session","sessions","meal","mealAttachment","hourLetter","hourLetterId","periodStartDate","periodEndDate","volunteerId","boardId","board","articleId","article","replyId","reply","articleAttachment","attachmentId","file","fileId","studentSessionReportId","studentSessionReport","attendanceId","attendance","attendances","reportId","report","filters","returnString","forEach","entry","value","field","concat","operator","String","getMonth","Date","toISOString","raw","kvObj","Object","keys","length","searchParams","URLSearchParams","window","location","search","key","set","newurl","protocol","host","pathname","toString","history","replaceState","path","initialState","userData","JSON","parse","localStorage","getItem","authReducer","state","action","data","config","storageTokenKeyName","storageRefreshTokenKeyName","obj","suggestions","bookmarks","navbarReducer","val","objectToUpdate","find","item","isBookmarked","bookmarkIndex","findIndex","x","push","splice","menuCollapsed","initialMenuCollapsed","menuHidden","layoutReducer","setItem","submittedApplicationCount","currentSchool","name","remainedReports","appDataReducer","stringify","rootReducer","combineReducers","auth","appData","middleware","thunk","createDebounce","composeEnhancers","__REDUX_DEVTOOLS_EXTENSION_COMPOSE__","compose","store","createStore","applyMiddleware","ThemeColors","ThemeContext","children","useState","colors","setColors","useEffect","getHex","color","getComputedStyle","document","body","getPropertyValue","trim","primary","light","main","secondary","success","danger","warning","info","dark","Provider","SpinnerComponent","className","src","logo","alt","Button","Ripple","onClick","rest","mounted","setMounted","isRippling","setIsRippling","y","coords","setCoords","setTimeout","classnames","e","rect","target","getBoundingClientRect","clientX","left","clientY","style","Boolean","hostname","match","LazyApp","lazy","ReactDOM","render","joleSvc","fallback","newestOnTop","getElementById","navigator","serviceWorker","ready","then","registration","unregister"],"mappings":"kHAGA,IAAMA,EAAc,CAClBC,IAAK,CACHC,QAAS,kBACTC,aAAcC,EAAQ,IAA2CC,SAEnEC,OAAQ,CACNC,OAAO,EACPC,KAAM,QACNC,iBAAkB,SAClBC,KAAM,WACNC,aAAc,OACdC,KAAM,CACJC,UAAU,EACVC,aAAa,GAEfC,OAAQ,CAENL,KAAM,WACNM,gBAAiB,SAEnBC,OAAQ,CACNP,KAAM,UAERQ,YAAY,EACZC,WAAW,IAIAnB,O,6GC3BFoB,E,OAAqBC,EAAMC,gBAIlCC,E,WAEF,aAAe,oB,4CAGf,SAASC,EAAKC,EAAMC,EAASC,EAAOC,GAChC,OAAOC,IAAMC,IAAIC,iLAAqLP,EAAM,UAAYC,EAAO,aAAeC,EAAU,IAAMC,GAASC,EAAQ,YAAcA,EAAQ,O,6BAEzS,SAAgBF,EAASC,EAAOC,GAC5B,OAAOC,IAAMC,IAAIC,4JAAgKL,EAAU,IAAMC,GAASC,EAAQ,YAAcA,EAAQ,O,+BAE5O,SAAkBA,GACd,OAAOC,IAAMC,IAAIC,wJAA4JH,EAAQ,YAAcA,EAAQ,O,6BAE/M,SAAgBJ,EAAKC,EAAMC,EAASC,EAAOC,GACvC,OAAOC,IAAMC,IAAIC,4LAAgMP,EAAM,UAAYC,EAAO,aAAeC,EAAU,IAAMC,GAASC,EAAQ,YAAcA,EAAQ,O,+BAEpT,SAAkBJ,EAAKC,EAAMC,EAASC,EAAOC,GACzC,OAAOC,IAAMC,IAAIC,4LAAgMP,EAAM,UAAYC,EAAO,aAAeC,EAAU,IAAMC,GAASC,EAAQ,YAAcA,EAAQ,O,oCAEpT,SAAuBF,EAASC,EA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C,SAASkH,UAEhBnH,OAAOC,SAASkH,SAASC,MAAM,2DCsBnC,IAAMC,EAAUC,gBAAK,kBAAM,yDAE3BC,IAASC,OACP,cAAC,IAAD,CAAU3D,MAAOA,EAAjB,SACE,cAAC,IAAmB0B,SAApB,CAA6BtG,MAAO,CAAEwI,QAAS,IAAIhM,KAAnD,SACA,cAAC,WAAD,CAAUiM,SAAU,cAAC,EAAD,IAApB,SACE,eAAC,EAAD,WACE,cAACL,EAAD,IACA,cAAC,IAAD,CAAgBM,aAAW,aAKjCjD,SAASkD,eAAe,SDsEpB,kBAAmBC,WACrBA,UAAUC,cAAcC,MAAMC,MAAK,SAAAC,GACjCA,EAAaC,kB","file":"static/js/main.8b8d5773.chunk.js","sourcesContent":["// You can customize the template with the help of this file\r\n\r\n//Template config options\r\nconst themeConfig = {\r\n app: {\r\n appName: 'Joyful Learning',\r\n appLogoImage: require('@src/assets/images/logo/giveChances.png').default\r\n },\r\n layout: {\r\n isRTL: false,\r\n skin: 'light', // light, dark, bordered, semi-dark\r\n routerTransition: 'fadeIn', // fadeIn, fadeInLeft, zoomIn, none or check this for more transition https://animate.style/\r\n type: 'vertical', // vertical, horizontal\r\n contentWidth: 'full', // full, boxed\r\n menu: {\r\n isHidden: false,\r\n isCollapsed: false\r\n },\r\n navbar: {\r\n // ? For horizontal menu, navbar type will work for navMenu type\r\n type: 'floating', // static , sticky , floating, hidden\r\n backgroundColor: 'white' // BS color options [primary, success, etc]\r\n },\r\n footer: {\r\n type: 'static' // static, sticky, hidden\r\n },\r\n customizer: false,\r\n scrollTop: true // Enable scroll to top button\r\n }\r\n}\r\n\r\nexport default themeConfig\r\n","import axios from 'axios'\r\nimport React from 'react'\r\nimport { Subject } from 'rxjs'\r\n\r\nexport const JoleServiceContext = React.createContext()\r\n\r\n//const activityLogUpdateSubject = new Subject();\r\n\r\nclass JoleService {\r\n\r\n constructor() { }\r\n\r\n // Odata Controller\r\n getUsers(top, skip, orderBy, order, query) {\r\n return axios.get(process.env.REACT_APP_JOLE_ODATA_URL + '/User?$select=id,firstName,lastName,isActive&$count=true&$expand=studentInfo($expand=proofOfIncome),volunteerInfo,userRoles,contact&$top=' + top + '&$skip=' + skip + '&$orderby=' + orderBy + \" \" + order + (query ? '&$filter=' + query : \"\"));\r\n }\r\n getUsers4Export(orderBy, order, query) {\r\n return axios.get(process.env.REACT_APP_JOLE_ODATA_URL + '/User?$select=id,firstName,lastName,gender,birthDate&$count=true&$expand=studentInfo,volunteerInfo,contact&$orderby=' + orderBy + \" \" + order + (query ? '&$filter=' + query : \"\"));\r\n }\r\n getNotInUnitUsers(query) {\r\n return axios.get(process.env.REACT_APP_JOLE_ODATA_URL + '/User?$select=id,firstName,lastName,studentInfoId,volunteerInfoId,employeeInfoId&$expand=Contact($select=email)' + (query ? '&$filter=' + query : \"\"))\r\n }\r\n getWorkingHours(top, skip, orderBy, order, query) {\r\n return axios.get(process.env.REACT_APP_JOLE_ODATA_URL + '/WorkingHour?$expand=user($select=isActive,firstName,LastName;$expand=contact($select=email))&$select=id,checkedIn,checkedOut,note&$count=true&$top=' + top + '&$skip=' + skip + '&$orderby=' + orderBy + \" \" + order + (query ? '&$filter=' + query : \"\"));\r\n }\r\n getMyWorkingHours(top, skip, orderBy, order, query) {\r\n return axios.get(process.env.REACT_APP_JOLE_ODATA_URL + '/WorkingHour?$expand=user($select=isActive,firstName,LastName;$expand=contact($select=email))&$select=id,checkedIn,checkedOut,note&$count=true&$top=' + top + '&$skip=' + skip + '&$orderby=' + orderBy + \" \" + order + (query ? '&$filter=' + query : \"\"));\r\n }\r\n getWorkingHours4Export(orderBy, order, query) {\r\n return axios.get(process.env.REACT_APP_JOLE_ODATA_URL + '/WorkingHour?$expand=user($select=isActive,firstName,LastName;$expand=contact($select=email))&$select=id,checkedIn,checkedOut,note&$count=true&$orderby=' + orderBy + \" \" + order + (query ? '&$filter=' + query : \"\"));\r\n }\r\n getMyWorkingHours4Export(orderBy, order, query) {\r\n return axios.get(process.env.REACT_APP_JOLE_ODATA_URL + '/WorkingHour?$expand=user($select=isActive,firstName,LastName;$expand=contact($select=email))&$select=id,checkedIn,checkedOut,note&$count=true&$orderby=' + orderBy + \" \" + order + (query ? '&$filter=' + query : \"\"));\r\n }\r\n getSessions(top, skip, orderBy, order, query) {\r\n return axios.get(process.env.REACT_APP_JOLE_ODATA_URL + '/Session?$expand=Moderator,Unit($expand=School),UserSessions($expand=User,Attendance)&$select=id,title,description,startOn,endOn,startedOn,finishedOn,type,status&$count=true&$top=' + top + '&$skip=' + skip + '&$orderby=' + orderBy + \" \" + order + (query ? '&$filter=' + query : \"\"));\r\n }\r\n getSessionsForHour(query) {\r\n return axios.get(process.env.REACT_APP_JOLE_ODATA_URL + '/Session?$select=type,status,startOn,endOn,startedOn,finishedOn' + (query ? '&$filter=' + query : \"\"));\r\n }\r\n getSessions4Export(orderBy, order, query) {\r\n return axios.get(process.env.REACT_APP_JOLE_ODATA_URL + '/Session?$select=Title,Description,Status,StartOn,EndOn,StartedOn,FinishedOn,OnlineMeetingRoomName,type&$expand=Moderator($select=FirstName,LastName),UserSessions($select=User;$expand=User($select=FirstName,LastName,StudentInfo,VolunteerInfo;$expand=StudentInfo($select=ZoomEmail),VolunteerInfo($select=ZoomEmail)))&$orderby=' + orderBy + \" \" + order + (query ? '&$filter=' + query : \"\"));\r\n }\r\n getSessions4Import(query) {\r\n return axios.get(process.env.REACT_APP_JOLE_ODATA_URL + '/Session?$select=Title,StartOn,EndOn,Type,UserSessions&$expand=UserSessions($expand=User)&$orderby=startOn desc' + (query ? '&$filter=' + query : \"\"));\r\n }\r\n getStudentSessionReports(top, skip, orderBy, order, query) {\r\n return axios.get(process.env.REACT_APP_JOLE_ODATA_URL + '/studentsessionreport?$expand=Usersession($select=user;$expand=user($select=firstName,lastName),session($select=title,starton,endon;$expand=Moderator($select=firstname,lastname))),volunteer($select=firstname,lastname)&$select=id,usersessionid,status&$count=true&$top=' + top + '&$skip=' + skip + '&$orderby=' + orderBy + \" \" + order + (query ? '&$filter=' + query : \"\"));\r\n }\r\n getStudentSessionReports4Export(orderBy, order, query) {\r\n return axios.get(process.env.REACT_APP_JOLE_ODATA_URL + '/studentsessionreport?$expand=Usersession($select=user;$expand=user($select=firstName,lastName),session($select=title,starton,endon;$expand=Moderator($select=firstname,lastname))),volunteer($select=firstname,lastname)&$select=id,usersessionid,report&$orderby=' + orderBy + \" \" + order + (query ? '&$filter=' + query : \"\"));\r\n }\r\n getSchools(top, skip, orderBy, order, query) {\r\n return axios.get(process.env.REACT_APP_JOLE_ODATA_URL + '/School?$select=id,name,division,isVolunteerApplicationAllowed,isStudentApplicationAllowed&$expand=units($select=id,isDeleted;$expand=userUnits($select=userId))&$count=true&$top=' + top + '&$skip=' + skip + '&$orderby=' + orderBy + \" \" + order + (query ? '&$filter=' + query : \"\"));\r\n }\r\n getSchoolsWithUnits() {\r\n return axios.get(process.env.REACT_APP_JOLE_ODATA_URL + '/School?$select=id,division,name,units,isVolunteerApplicationAllowed,isStudentApplicationAllowed&$expand=Units($select=id,name;$filter=isDeleted eq false)');\r\n }\r\n getUnits(top, skip, orderBy, order, query) {\r\n return axios.get(process.env.REACT_APP_JOLE_ODATA_URL + '/Unit?$expand=UserUnits,School&$select=id,Name,isActive&$count=true&$top=' + top + '&$skip=' + skip + '&$orderby=' + orderBy + \" \" + order + (query ? '&$filter=' + query : \"\"));\r\n }\r\n getBoards(top, skip, orderBy, order, query) {\r\n return axios.get(process.env.REACT_APP_JOLE_ODATA_URL + '/Board?$expand=School,Unit&$select=id,name,description&$count=true&$top=' + top + '&$skip=' + skip + '&$orderby=school/id asc,' + orderBy + \" \" + order + (query ? '&$filter=' + query : \"\"));\r\n }\r\n getArticles(top, skip, orderBy, order, query) {\r\n return axios.get(process.env.REACT_APP_JOLE_ODATA_URL + '/Article?$expand=Author,Replies($count=true;$top=0;$filter=isDeleted eq false)&$select=id,title,viewCount,createdOn,lastUpdatedOn&$count=true&$top=' + top + '&$skip=' + skip + '&$orderby=' + orderBy + \" \" + order + (query ? '&$filter=' + query : \"\"));\r\n }\r\n getMyBoards() {\r\n return axios.get(process.env.REACT_APP_JOLE_ODATA_URL + '/board?$select=id,school,unit,name&$expand=school($select=division,id,name),Unit($select=id,name)&$orderBy=school/division asc,school/id asc,unit/id asc,name asc');\r\n }\r\n getVolunteerHourLetters(top, skip, orderBy, order, query) {\r\n return axios.get(process.env.REACT_APP_JOLE_ODATA_URL + '/VolunteerHourLetter?$expand=Volunteer,File&$select=id,periodStartDate,periodEndDate,hours,requestedOn,status,type,volunteerId&$count=true&$top=' + top + '&$skip=' + skip + '&$orderby=' + orderBy + \" \" + order + (query ? '&$filter=' + query : \"\"));\r\n }\r\n getAttendances(top, skip, orderBy, order, query) {\r\n return axios.get(process.env.REACT_APP_JOLE_ODATA_URL + '/Attendance?$expand=UserSession($expand=user($select=firstname,lastname),session($select=title,starton,endon,status;$expand=moderator($select=firstname,lastname)))&$select=id,comment,type&$count=true&$top=' + top + '&$skip=' + skip + '&$orderby=' + orderBy + \" \" + order + (query ? '&$filter=' + query : \"\"));\r\n }\r\n getNeedApprovalApplicationCountForSchool(schoolId) {\r\n return axios.get(process.env.REACT_APP_JOLE_ODATA_URL + \"/User?$select=id&$expand=userUnits&$count=true&$top=1&$filter=(studentInfo/status eq 'SUBMITTED' and studentInfo/applicationSchoolId eq \" + schoolId + \" or volunteerInfo/status eq 'SUBMITTED' and volunteerInfo/volunteerAvailableDays/any(va: va/schoolId eq \" + schoolId + \"))\");\r\n }\r\n getMeals(top, skip, orderBy, order, query) {\r\n return axios.get(process.env.REACT_APP_JOLE_ODATA_URL + '/Meal?$select=id,description,providedOn,providedBy,servingCount&$expand=MealMenus&$count=true&$top=' + top + '&$skip=' + skip + '&$orderby=' + orderBy + \" \" + order + (query ? '&$filter=' + query : ''));\r\n }\r\n getLeadTeacherReports(top, skip, orderBy, order, query) {\r\n return axios.get(process.env.REACT_APP_JOLE_ODATA_URL + '/leadTeacherReport?$expand=reportedBy($select=firstName,lastName)&$select=id,firstDate,status,report,reportedOn&$count=true&$top=' + top + '&$skip=' + skip + '&$orderby=' + orderBy + \" \" + order + (query ? '&$filter=' + query : \"\"));\r\n }\r\n getAvailableVolunteers(schoolId) {\r\n return axios.get(process.env.REACT_APP_JOLE_ODATA_URL + \"/user?$filter=volunteerInfo/volunteerAvailableDays/any(va: va/schoolId eq \" + schoolId + \") and isActive eq true and volunteerInfo/status eq 'APPROVED' and userUnits/any(uu: uu/unit/schoolId eq \" + schoolId + \")&$select=firstName,LastName&$expand=volunteerInfo($select=id,grade,volunteerAvailableDays;$expand=volunteerAvailableDays($filter=schoolId eq \" + schoolId + \"))\")\r\n }\r\n\r\n // API Controller\r\n // Users\r\n getUsersApi(query) {\r\n return axios.get(process.env.REACT_APP_JOLE_API_URL + '/Users?$select=id,firstName,lastName&$expand=Contact($select=email)')// + (query ? '&$filter=' + query : \"\"))\r\n }\r\n getCurrentUser() {\r\n return axios.get(process.env.REACT_APP_JOLE_API_URL + '/Users/me');\r\n }\r\n getUserData() {\r\n return axios.get(process.env.REACT_APP_JOLE_API_URL + '/Users/me/data');\r\n }\r\n getUser(id) {\r\n return axios.get(process.env.REACT_APP_JOLE_API_URL + '/Users/' + id);\r\n }\r\n putUser(id, user) {\r\n return axios.put(process.env.REACT_APP_JOLE_API_URL + '/Users/' + id, user)\r\n }\r\n getModerators(schoolId = 0) {\r\n return axios.get(process.env.REACT_APP_JOLE_API_URL + '/Users/GetModerators/' + (schoolId === 0 ? '' : schoolId));\r\n }\r\n getVolunteersByUnit(unitId) {\r\n return axios.get(process.env.REACT_APP_JOLE_API_URL + '/Users/getVolunteers/' + unitId);\r\n }\r\n //GetMyApplicationStatus(){\r\n // return axios.get(process.env.REACT_APP_JOLE_API_URL + '/Users/GetMyApplicationStatus');\r\n //}\r\n postAddNewEmployee(newEmployee) {\r\n return axios.post(process.env.REACT_APP_JOLE_API_URL + '/Users/CreateEmployee', newEmployee)\r\n }\r\n removeRole(id,role) {\r\n return axios.delete(process.env.REACT_APP_JOLE_API_URL + '/Users/RemoveRole/'+ id + \"?role=\" +role)\r\n }\r\n // getVolunteers(unitId) {\r\n // return axios.get(process.env.REACT_APP_JOLE_API_URL + '/Users/getVolunteers/' + (unitId === null ? '' : unitId));\r\n // }\r\n getVolunteers() {\r\n return axios.get(process.env.REACT_APP_JOLE_API_URL + '/Users/getVolunteers');\r\n }\r\n getStudentsByUnit(unitId) {\r\n return axios.get(process.env.REACT_APP_JOLE_API_URL + '/Users/getStudents/' + unitId);\r\n }\r\n // getStudents(unitId) {\r\n // return axios.get(process.env.REACT_APP_JOLE_API_URL + '/Users/getStudents/' + (unitId === null ? '' : unitId));\r\n // }\r\n getStudents() {\r\n return axios.get(process.env.REACT_APP_JOLE_API_URL + '/Users/getStudents');\r\n }\r\n getLeadTeachers() {\r\n return axios.get(process.env.REACT_APP_JOLE_API_URL + '/Users/getLeadTeachers');\r\n }\r\n // application\r\n postStudent(userInfo) {\r\n return axios.post(process.env.REACT_APP_JOLE_API_URL + '/Users/PostStudent', userInfo);\r\n }\r\n postVolunteer(userInfo) {\r\n return axios.post(process.env.REACT_APP_JOLE_API_URL + '/Users/PostVolunteer', userInfo);\r\n }\r\n postLeadTeacher(userInfo) {\r\n return axios.post(process.env.REACT_APP_JOLE_API_URL + '/Users/PostLeadTeacher', userInfo);\r\n }\r\n postAdministrator(userInfo) {\r\n return axios.post(process.env.REACT_APP_JOLE_API_URL + '/Users/PostAdministrator', userInfo);\r\n }\r\n // GuardianContact\r\n getGuardianContact(id) {\r\n return axios.get(process.env.REACT_APP_JOLE_API_URL + '/GuardianContacts/' + id);\r\n }\r\n postGuardianContact(guardian) {\r\n return axios.post(process.env.REACT_APP_JOLE_API_URL + '/Guardians', guardian)\r\n }\r\n putGuardianContact(id, guardian) {\r\n return axios.put(process.env.REACT_APP_JOLE_API_URL + '/GuardianContacts/' + id, guardian)\r\n }\r\n //Student\r\n getStudent(id) {\r\n return axios.get(process.env.REACT_APP_JOLE_API_URL + '/students/' + id)\r\n }\r\n //ProofOfIncome\r\n getProofOfIncomeFilesByProofOfIncome(proofOfIncomeId){\r\n return axios.get(process.env.REACT_APP_JOLE_API_URL + '/ProofOfIncomeFiles/GetProofOfIncomeFilesByProofOfIncome/' + proofOfIncomeId)\r\n }\r\n postProofOfIncomeFile(proofOfIncomeFile){\r\n return axios.post(process.env.REACT_APP_JOLE_API_URL + '/ProofOfIncomeFiles', proofOfIncomeFile)\r\n }\r\n deleteProofOfIncomeFile(proofOfIncomeFileId){\r\n return axios.delete(process.env.REACT_APP_JOLE_API_URL + '/ProofOfIncomeFiles/' + proofOfIncomeFileId)\r\n }\r\n\r\n //WorkingHour\r\n getCheckInStatus() {\r\n return axios.get(process.env.REACT_APP_JOLE_API_URL + '/WorkingHours/CheckInStatus')\r\n }\r\n postCheckIn() {\r\n return axios.post(process.env.REACT_APP_JOLE_API_URL + '/WorkingHours/CheckIn')\r\n }\r\n postCheckOut(id) {\r\n return axios.post(process.env.REACT_APP_JOLE_API_URL + '/WorkingHours/CheckOut/' + id)\r\n }\r\n getWorkingHour(id) {\r\n return axios.get(process.env.REACT_APP_JOLE_API_URL + '/WorkingHours/' + id)\r\n }\r\n\r\n putWorkingHour(id, workingHour) {\r\n return axios.put(process.env.REACT_APP_JOLE_API_URL + '/WorkingHours/' + id, workingHour)\r\n }\r\n //Unit\r\n getUnit(id) {\r\n return axios.get(process.env.REACT_APP_JOLE_API_URL + '/Units/' + id)\r\n }\r\n putUnit(id, unit) {\r\n return axios.put(process.env.REACT_APP_JOLE_API_URL + '/Units/' + id, unit)\r\n }\r\n deleteUnit(unitId) {\r\n return axios.delete(process.env.REACT_APP_JOLE_API_URL + '/Units/' + unitId)\r\n }\r\n postUnit(unit) {\r\n return axios.post(process.env.REACT_APP_JOLE_API_URL + '/Units', unit)\r\n }\r\n \r\n getUnitsBySchool(schoolId) {\r\n return axios.get(process.env.REACT_APP_JOLE_API_URL + '/Units/UnitsBySchool/' + schoolId);\r\n }\r\n\r\n //School\r\n getAllSchools() {\r\n return axios.get(process.env.REACT_APP_JOLE_API_URL + '/Schools')\r\n }\r\n getSchool(schoolId) {\r\n return axios.get(process.env.REACT_APP_JOLE_API_URL + '/Schools/' + schoolId)\r\n }\r\n postSchool(school) {\r\n return axios.post(process.env.REACT_APP_JOLE_API_URL + '/Schools', school)\r\n }\r\n putSchool(schoolId, school) {\r\n return axios.put(process.env.REACT_APP_JOLE_API_URL + '/Schools/' + schoolId, school)\r\n }\r\n deleteSchool(schoolId) {\r\n return axios.delete(process.env.REACT_APP_JOLE_API_URL + '/Schools/' + schoolId)\r\n }\r\n //Session\r\n getSession(id) {\r\n return axios.get(process.env.REACT_APP_JOLE_API_URL + '/Sessions/' + id)\r\n }\r\n postSession(session) {\r\n return axios.post(process.env.REACT_APP_JOLE_API_URL + '/Sessions', session)\r\n }\r\n putSession(id, session) {\r\n return axios.put(process.env.REACT_APP_JOLE_API_URL + '/Sessions/' + id, session)\r\n }\r\n postStartSession(id) {\r\n return axios.post(process.env.REACT_APP_JOLE_API_URL + '/Sessions/StartSession/' + id)\r\n }\r\n postEndSession(id) {\r\n return axios.post(process.env.REACT_APP_JOLE_API_URL + '/Sessions/EndSession/' + id)\r\n }\r\n postBulkSession(sessions) {\r\n return axios.post(process.env.REACT_APP_JOLE_API_URL + '/Sessions/PostBulkSession', sessions)\r\n }\r\n deleteSession(id) {\r\n return axios.delete(process.env.REACT_APP_JOLE_API_URL + '/Sessions/' + id)\r\n }\r\n // Meal\r\n getMeal(id) {\r\n return axios.get(process.env.REACT_APP_JOLE_API_URL + '/Meals/' + id)\r\n }\r\n postMeal(meal) {\r\n return axios.post(process.env.REACT_APP_JOLE_API_URL + '/Meals', meal)\r\n }\r\n putMeal(id, meal) {\r\n return axios.put(process.env.REACT_APP_JOLE_API_URL + '/Meals/' + id, meal)\r\n }\r\n deleteMeal(id) {\r\n return axios.delete(process.env.REACT_APP_JOLE_API_URL + '/Meals/' + id)\r\n }\r\n postMealAttachment(mealAttachment) {\r\n return axios.post(process.env.REACT_APP_JOLE_API_URL + '/MealAttachments', mealAttachment)\r\n }\r\n // hour letter\r\n getVolunteerHourLetter(id) {\r\n return axios.get(process.env.REACT_APP_JOLE_API_URL + '/VolunteerHourLetters/' + id)\r\n }\r\n postVolunteerHourLetter(hourLetter) {\r\n return axios.post(process.env.REACT_APP_JOLE_API_URL + '/VolunteerHourLetters/', hourLetter)\r\n }\r\n postGenerateVolunteerHourLetter(hourLetterId) {\r\n return axios.post(process.env.REACT_APP_JOLE_API_URL + '/VolunteerHourLetters/GenerateVolunteerHourLetter/' + hourLetterId)\r\n }\r\n putVolunteerHourLetter(id, hourLetter) {\r\n return axios.put(process.env.REACT_APP_JOLE_API_URL + '/VolunteerHourLetters/' + id, hourLetter)\r\n }\r\n GetVolunteerHourSessions(periodStartDate, periodEndDate, volunteerId) {\r\n return axios.get(process.env.REACT_APP_JOLE_API_URL + '/VolunteerHourLetters/GetVolunteerHourSessions?periodStartDate=' + periodStartDate + '&periodEndDate=' + periodEndDate + '&volunteerId=' + volunteerId)\r\n }\r\n GetMyVolunteerHourSessions(periodStartDate, periodEndDate) {\r\n return axios.get(process.env.REACT_APP_JOLE_API_URL + '/VolunteerHourLetters/GetMyVolunteerHourSessions?periodStartDate=' + periodStartDate + '&periodEndDate=' + periodEndDate)\r\n }\r\n // board\r\n getAllBoards() {\r\n return axios.get(process.env.REACT_APP_JOLE_API_URL + '/Boards')\r\n }\r\n getBoardsBySchool(schoolId) {\r\n return axios.get(process.env.REACT_APP_JOLE_API_URL + '/Boards/BoardsBySchool/' + schoolId)\r\n }\r\n getBoardsByUnit(unitId) {\r\n return axios.get(process.env.REACT_APP_JOLE_API_URL + '/Boards/BoardsByUnit/' + unitId)\r\n }\r\n getBoard(boardId) {\r\n return axios.get(process.env.REACT_APP_JOLE_API_URL + '/Boards/' + boardId)\r\n }\r\n putBoard(boardId, board) {\r\n return axios.put(process.env.REACT_APP_JOLE_API_URL + '/Boards/' + boardId, board)\r\n }\r\n postBoard(board) {\r\n return axios.post(process.env.REACT_APP_JOLE_API_URL + '/Boards/', board)\r\n }\r\n getArticle(articleId) {\r\n return axios.get(process.env.REACT_APP_JOLE_API_URL + '/Articles/' + articleId)\r\n }\r\n postArticle(article) {\r\n return axios.post(process.env.REACT_APP_JOLE_API_URL + '/Articles/', article)\r\n }\r\n putArticle(articleId, article) {\r\n return axios.put(process.env.REACT_APP_JOLE_API_URL + '/Articles/' + articleId, article)\r\n }\r\n getReply(replyId) {\r\n return axios.get(process.env.REACT_APP_JOLE_API_URL + '/Replies/' + replyId)\r\n }\r\n postReply(reply) {\r\n return axios.post(process.env.REACT_APP_JOLE_API_URL + '/Replies/', reply)\r\n }\r\n putReply(replyId, reply) {\r\n return axios.put(process.env.REACT_APP_JOLE_API_URL + '/Replies/' + replyId, reply)\r\n }\r\n getArticleAttachmentsByArticle(articleId){\r\n return axios.get(process.env.REACT_APP_JOLE_API_URL + '/ArticleAttachments/GetArticleAttachmentsByArticle/' + articleId)\r\n }\r\n postArticleAttachment(articleAttachment) {\r\n return axios.post(process.env.REACT_APP_JOLE_API_URL + '/ArticleAttachments', articleAttachment)\r\n }\r\n deleteAttachment(attachmentId) {\r\n return axios.delete(process.env.REACT_APP_JOLE_API_URL + '/ArticleAttachments/' + attachmentId)\r\n }\r\n // file\r\n postFile(file) {\r\n return axios.post(process.env.REACT_APP_JOLE_API_URL + '/Files', file)\r\n }\r\n postFileWithThumbnail(file) {\r\n return axios.post(process.env.REACT_APP_JOLE_API_URL + '/Files/PostFileWithThumbnail', file)\r\n }\r\n getDownloadLink(fileId) {\r\n return axios.get(process.env.REACT_APP_JOLE_API_URL + '/Files/DownloadLink/' + fileId)\r\n }\r\n deleteFile(fileId) {\r\n return axios.delete(process.env.REACT_APP_JOLE_API_URL + '/Files/' + fileId)\r\n }\r\n // StudentSessionReport\r\n getStudentSessionReport(studentSessionReportId) {\r\n return axios.get(process.env.REACT_APP_JOLE_API_URL + '/StudentSessionReports/' + studentSessionReportId)\r\n }\r\n putStudentSessionReport(studentSessionReportId, studentSessionReport) {\r\n return axios.put(process.env.REACT_APP_JOLE_API_URL + '/StudentSessionReports/' + studentSessionReportId, studentSessionReport)\r\n }\r\n getMyRemainedStudentProgressReports() {\r\n return axios.get(process.env.REACT_APP_JOLE_API_URL + \"/StudentSessionReports/MyRemainedStudentProgressReports/\");\r\n }\r\n // Attendance\r\n getAttendance(attendanceId) {\r\n return axios.get(process.env.REACT_APP_JOLE_API_URL + '/Attendances/' + attendanceId)\r\n }\r\n getAttendancesApi(query) {\r\n // return axios.get(process.env.REACT_APP_JOLE_API_URL + '/Attendances?$expand=UserSession($expand=user,session($expand=moderator))' + (query ? '&$filter=' + query : \"\"))\r\n return axios.get(process.env.REACT_APP_JOLE_API_URL + '/Attendances?$select=id,type,comment&$expand=userSession($expand=user($select=firstName,lastName),session($select=id,status;$expand=moderator($select=firstname,lastname),unit($select=name)))' + (query ? '&$filter=' + query : \"\"))\r\n //return axios.get(process.env.REACT_APP_JOLE_API_URL + '/Attendances?$expand=UserSession($expand=user($select=firstname,lastname))')\r\n //,session($select=title,starton,endon,status;$expand=moderator($select=firstname,lastname)))&$select=id,comment,type')\r\n }\r\n putAttendance(attendanceId, attendance) {\r\n return axios.put(process.env.REACT_APP_JOLE_API_URL + '/Attendances/' + attendanceId, attendance)\r\n \r\n }\r\n putDailyAttendance(attendances) {\r\n return axios.put(process.env.REACT_APP_JOLE_API_URL + '/Attendances/PutDailyAttendance',attendances)\r\n }\r\n // Calendar\r\n getCalendarSession(query){\r\n return axios.get(process.env.REACT_APP_JOLE_ODATA_URL + \"/session?$select=id,title,starton,endon,status,type&$expand=userSessions($filter=user/volunteerInfoId ne null;$expand=user($select=volunteerInfoId))\" + (query ? '&$filter=' + query : \"\"))\r\n }\r\n // LeadTeacherReport\r\n getLeadTeacherReport(reportId) {\r\n return axios.get(process.env.REACT_APP_JOLE_API_URL + '/LeadTeacherReports/' + reportId)\r\n }\r\n putLeadTeacherReport(reportId, report) {\r\n return axios.put(process.env.REACT_APP_JOLE_API_URL + '/LeadTeacherReports/' + reportId, report)\r\n }\r\n getLeadTeacherReportAttendanceInfo(reportId) {\r\n return axios.get(process.env.REACT_APP_JOLE_API_URL + '/LeadTeacherReports/AttendanceInfo/' + reportId)\r\n }\r\n\r\n makeFilterString(filters) {\r\n // {field:\"\",operator:\"\",value:\"\"}\r\n var returnString = \"\";\r\n filters.forEach(entry => {\r\n if ((entry.value || entry.value === false) && entry.field) {\r\n returnString = returnString.concat((returnString === \"\" ? \"\" : \" and \") + (entry.field + \" \" + entry.operator + \" \" +\r\n ((typeof entry.value === 'string' || entry.value instanceof String) ? (\"'\" + entry.value + \"'\") :\r\n ((typeof entry.value.getMonth === 'function' || entry.value instanceof Date) ? (\"cast(\" + entry.value.toISOString() + \",Edm.DateTimeOffset)\") : entry.value))));\r\n } else if (entry.raw) {\r\n returnString = returnString.concat((returnString === \"\" ? \"\" : \" and \") + entry.raw);\r\n }\r\n });\r\n return returnString;\r\n }\r\n insertUrlParam(kvObj) {\r\n if (kvObj && Object.keys(kvObj).length > 0) {\r\n let searchParams = new URLSearchParams(window.location.search);\r\n Object.keys(kvObj).forEach(key => {\r\n if (kvObj[key] !== '') {\r\n searchParams.set(key, kvObj[key])\r\n }\r\n else {\r\n searchParams.delete(key);\r\n }\r\n });\r\n let newurl = window.location.protocol + \"//\" + window.location.host + window.location.pathname + '?' + searchParams.toString();\r\n window.history.replaceState({ path: newurl }, '', newurl);\r\n } else if (Object.keys(kvObj).length === 0) {\r\n let newurl = window.location.protocol + \"//\" + window.location.host + window.location.pathname;\r\n window.history.replaceState({ path: newurl }, '', newurl);\r\n }\r\n }\r\n}\r\n\r\nexport default JoleService","export default __webpack_public_path__ + \"static/media/logo.50d1c413.png\";","export default __webpack_public_path__ + \"static/media/giveChances.50d1c413.png\";","// ** Initial State\r\nconst initialState = {\r\n userData: JSON.parse(localStorage.getItem('userData')) ? JSON.parse(localStorage.getItem('userData')) : {}\r\n}\r\n\r\nconst authReducer = (state = initialState, action) => {\r\n switch (action.type) {\r\n case 'LOGIN':\r\n return {\r\n ...state,\r\n userData: action.data,\r\n [action.config.storageTokenKeyName]: action[action.config.storageTokenKeyName],\r\n [action.config.storageRefreshTokenKeyName]: action[action.config.storageRefreshTokenKeyName]\r\n }\r\n case 'USER_DATA_REFRESH':\r\n return {\r\n ...state,\r\n userData: action.data\r\n }\r\n case 'LOGOUT':\r\n const obj = { ...action }\r\n delete obj.type\r\n return { ...state, userData: {}, ...obj }\r\n default:\r\n return {...state, userData: JSON.parse(localStorage.getItem('userData')) ? JSON.parse(localStorage.getItem('userData')) : {}}\r\n }\r\n}\r\n\r\nexport default authReducer\r\n","// ** Initial State\r\nconst initialState = {\r\n suggestions: [],\r\n bookmarks: [],\r\n query: ''\r\n}\r\n\r\nconst navbarReducer = (state = initialState, action) => {\r\n switch (action.type) {\r\n case 'HANDLE_SEARCH_QUERY':\r\n return { ...state, query: action.val }\r\n case 'GET_BOOKMARKS':\r\n return { ...state, suggestions: action.data, bookmarks: action.bookmarks }\r\n return { ...state}\r\n case 'UPDATE_BOOKMARKED':\r\n let objectToUpdate\r\n\r\n // ** find & update object\r\n state.suggestions.find(item => {\r\n if (item.id === action.id) {\r\n item.isBookmarked = !item.isBookmarked\r\n objectToUpdate = item\r\n }\r\n })\r\n\r\n // ** Get index to add or remove bookmark from array\r\n const bookmarkIndex = state.bookmarks.findIndex(x => x.id === action.id)\r\n\r\n if (bookmarkIndex === -1) {\r\n state.bookmarks.push(objectToUpdate)\r\n } else {\r\n state.bookmarks.splice(bookmarkIndex, 1)\r\n }\r\n\r\n return { ...state }\r\n default:\r\n return state\r\n }\r\n}\r\n\r\nexport default navbarReducer\r\n","// ** ThemeConfig Import\r\nimport themeConfig from '@configs/themeConfig'\r\n\r\n// ** Returns Initial Menu Collapsed State\r\nconst initialMenuCollapsed = () => {\r\n const item = window.localStorage.getItem('menuCollapsed')\r\n //** Parse stored json or if none return initialValue\r\n return item ? JSON.parse(item) : themeConfig.layout.menu.isCollapsed\r\n}\r\n\r\n// ** Initial State\r\nconst initialState = {\r\n isRTL: themeConfig.layout.isRTL,\r\n menuCollapsed: initialMenuCollapsed(),\r\n menuHidden: themeConfig.layout.menu.isHidden,\r\n contentWidth: themeConfig.layout.contentWidth\r\n}\r\n\r\nconst layoutReducer = (state = initialState, action) => {\r\n switch (action.type) {\r\n case 'HANDLE_CONTENT_WIDTH':\r\n return { ...state, contentWidth: action.value }\r\n case 'HANDLE_MENU_COLLAPSED':\r\n window.localStorage.setItem('menuCollapsed', action.value)\r\n return { ...state, menuCollapsed: action.value }\r\n case 'HANDLE_MENU_HIDDEN':\r\n return { ...state, menuHidden: action.value }\r\n case 'HANDLE_RTL':\r\n return { ...state, isRTL: action.value }\r\n default:\r\n return state\r\n }\r\n}\r\n\r\nexport default layoutReducer\r\n","// ** Initial State\r\nconst initialState = {\r\n submittedApplicationCount : 0,\r\n currentSchool: JSON.parse(localStorage.getItem('currentSchool')) ? JSON.parse(localStorage.getItem('currentSchool')) : {id:0,name:\"\"},\r\n remainedReports : []\r\n }\r\n \r\n const appDataReducer = (state = initialState, action) => {\r\n switch (action.type) {\r\n case 'UPDATE_APPLICATION_COUNT':\r\n return { ...state, submittedApplicationCount: action.val }\r\n case 'UPDATE_CURRENT_SCHOOL':\r\n localStorage.setItem('currentSchool',JSON.stringify(action.data));\r\n return { ...state, currentSchool: action.data}\r\n case 'UPDATE_REMAINED_REPORTS':\r\n return { ...state, remainedReports: action.val}\r\n default:\r\n var currentSchool = JSON.parse(localStorage.getItem('currentSchool')) ? JSON.parse(localStorage.getItem('currentSchool')) : {id:0,name:\"\"}\r\n return { ...state, currentSchool:currentSchool }\r\n }\r\n }\r\n \r\n export default appDataReducer\r\n ","// ** Redux Imports\r\nimport { combineReducers } from 'redux'\r\n\r\n// ** Reducers Imports\r\nimport auth from './auth'\r\nimport navbar from './navbar'\r\nimport layout from './layout'\r\nimport appData from './appData'\r\n\r\nconst rootReducer = combineReducers({\r\n auth,\r\n navbar,\r\n layout,\r\n appData\r\n})\r\n\r\nexport default rootReducer\r\n","// ** Redux, Thunk & Root Reducer Imports\r\nimport thunk from 'redux-thunk'\r\nimport createDebounce from 'redux-debounced'\r\nimport rootReducer from '../reducers/rootReducer'\r\nimport { createStore, applyMiddleware, compose } from 'redux'\r\n\r\n// ** init middleware\r\nconst middleware = [thunk, createDebounce()]\r\n\r\n// ** Dev Tools\r\nconst composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose\r\n\r\n// ** Create store\r\nconst store = createStore(rootReducer, {}, composeEnhancers(applyMiddleware(...middleware)))\r\n\r\nexport { store }\r\n","// ** React Imports\r\nimport { useEffect, useState, createContext } from 'react'\r\n\r\n// ** Create Context\r\nconst ThemeColors = createContext()\r\n\r\nconst ThemeContext = ({ children }) => {\r\n // ** State\r\n const [colors, setColors] = useState({})\r\n\r\n //** ComponentDidMount\r\n useEffect(() => {\r\n if (window !== 'undefined') {\r\n //** Get variable value\r\n const getHex = color => window.getComputedStyle(document.body).getPropertyValue(color).trim()\r\n\r\n //** Colors obj\r\n const obj = {\r\n primary: {\r\n light: getHex('--primary').concat('1a'),\r\n main: getHex('--primary')\r\n },\r\n secondary: {\r\n light: getHex('--secondary').concat('1a'),\r\n main: getHex('--secondary')\r\n },\r\n success: {\r\n light: getHex('--success').concat('1a'),\r\n main: getHex('--success')\r\n },\r\n danger: {\r\n light: getHex('--danger').concat('1a'),\r\n main: getHex('--danger')\r\n },\r\n warning: {\r\n light: getHex('--warning').concat('1a'),\r\n main: getHex('--warning')\r\n },\r\n info: {\r\n light: getHex('--info').concat('1a'),\r\n main: getHex('--info')\r\n },\r\n dark: {\r\n light: getHex('--dark').concat('1a'),\r\n main: getHex('--dark')\r\n }\r\n }\r\n\r\n setColors({ ...obj })\r\n }\r\n }, [])\r\n\r\n return