(this["webpackJsonpjole-client"]=this["webpackJsonpjole-client"]||[]).push([[12],{12:function(e,t,n){"use strict";var a={app:{appName:"Joyful Learning",appLogoImage:n(52).default},layout:{isRTL:!1,skin:"light",routerTransition:"fadeIn",type:"vertical",contentWidth:"full",menu:{isHidden:!1,isCollapsed:!1},navbar:{type:"floating",backgroundColor:"white"},footer:{type:"static"},customizer:!1,scrollTop:!0}};t.a=a},15:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(26),o=n(27),s=n(1),r=n.n(s),i=n(0),c=n.n(i).a.createContext(),u=function(){function e(){Object(a.a)(this,e)}return Object(o.a)(e,[{key:"getUsers",value:function(e,t,n,a,o){return r.a.get("https://JoleAPI.givechances.org/odata/User?$select=id,firstName,lastName,isActive&$count=true&$expand=studentInfo($expand=proofOfIncome),volunteerInfo,userRoles,contact&$top="+e+"&$skip="+t+"&$orderby="+n+" "+a+(o?"&$filter="+o:""))}},{key:"getUsers4Export",value:function(e,t,n){return r.a.get("https://JoleAPI.givechances.org/odata/User?$select=id,firstName,lastName,gender,birthDate&$count=true&$expand=studentInfo,volunteerInfo,contact&$orderby="+e+" "+t+(n?"&$filter="+n:""))}},{key:"getNotInUnitUsers",value:function(e){return r.a.get("https://JoleAPI.givechances.org/odata/User?$select=id,firstName,lastName,studentInfoId,volunteerInfoId,employeeInfoId&$expand=Contact($select=email)"+(e?"&$filter="+e:""))}},{key:"getWorkingHours",value:function(e,t,n,a,o){return r.a.get("https://JoleAPI.givechances.org/odata/WorkingHour?$expand=user($select=isActive,firstName,LastName;$expand=contact($select=email))&$select=id,checkedIn,checkedOut,note&$count=true&$top="+e+"&$skip="+t+"&$orderby="+n+" "+a+(o?"&$filter="+o:""))}},{key:"getMyWorkingHours",value:function(e,t,n,a,o){return r.a.get("https://JoleAPI.givechances.org/odata/WorkingHour?$expand=user($select=isActive,firstName,LastName;$expand=contact($select=email))&$select=id,checkedIn,checkedOut,note&$count=true&$top="+e+"&$skip="+t+"&$orderby="+n+" "+a+(o?"&$filter="+o:""))}},{key:"getWorkingHours4Export",value:function(e,t,n){return r.a.get("https://JoleAPI.givechances.org/odata/WorkingHour?$expand=user($select=isActive,firstName,LastName;$expand=contact($select=email))&$select=id,checkedIn,checkedOut,note&$count=true&$orderby="+e+" "+t+(n?"&$filter="+n:""))}},{key:"getMyWorkingHours4Export",value:function(e,t,n){return r.a.get("https://JoleAPI.givechances.org/odata/WorkingHour?$expand=user($select=isActive,firstName,LastName;$expand=contact($select=email))&$select=id,checkedIn,checkedOut,note&$count=true&$orderby="+e+" "+t+(n?"&$filter="+n:""))}},{key:"getSessions",value:function(e,t,n,a,o){return r.a.get("https://JoleAPI.givechances.org/odata/Session?$expand=Moderator,Unit($expand=School),UserSessions($expand=User,Attendance)&$select=id,title,description,startOn,endOn,startedOn,finishedOn,type,status&$count=true&$top="+e+"&$skip="+t+"&$orderby="+n+" "+a+(o?"&$filter="+o:""))}},{key:"getSessionsForHour",value:function(e){return r.a.get("https://JoleAPI.givechances.org/odata/Session?$select=type,status,startOn,endOn,startedOn,finishedOn"+(e?"&$filter="+e:""))}},{key:"getSessions4Export",value:function(e,t,n){return r.a.get("https://JoleAPI.givechances.org/odata/Session?$select=Title,Description,Status,StartOn,EndOn,StartedOn,FinishedOn,OnlineMeetingRoomName&$expand=Moderator($select=FirstName,LastName),UserSessions($select=User;$expand=User($select=FirstName,LastName,StudentInfo,VolunteerInfo;$expand=StudentInfo($select=ZoomEmail),VolunteerInfo($select=ZoomEmail)))&$orderby="+e+" "+t+(n?"&$filter="+n:""))}},{key:"getSessions4Import",value:function(e){return r.a.get("https://JoleAPI.givechances.org/odata/Session?$select=Title,StartOn,EndOn,Type,UserSessions&$expand=UserSessions($expand=User)&$orderby=startOn desc"+(e?"&$filter="+e:""))}},{key:"getStudentSessionReports",value:function(e,t,n,a,o){return r.a.get("https://JoleAPI.givechances.org/odata/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&$count=true&$top="+e+"&$skip="+t+"&$orderby="+n+" "+a+(o?"&$filter="+o:""))}},{key:"getStudentSessionReports4Export",value:function(e,t,n){return r.a.get("https://JoleAPI.givechances.org/odata/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="+e+" "+t+(n?"&$filter="+n:""))}},{key:"getSchools",value:function(e,t,n,a,o){return r.a.get("https://JoleAPI.givechances.org/odata/School?$select=id,name,division,isVolunteerApplicationAllowed,isStudentApplicationAllowed&$expand=units($select=id,isDeleted;$expand=userUnits($select=userId))&$count=true&$top="+e+"&$skip="+t+"&$orderby="+n+" "+a+(o?"&$filter="+o:""))}},{key:"getSchoolsWithUnits",value:function(){return r.a.get("https://JoleAPI.givechances.org/odata/School?$select=id,division,name,units,isVolunteerApplicationAllowed,isStudentApplicationAllowed&$expand=Units($select=id,name;$filter=isDeleted eq false)")}},{key:"getUnits",value:function(e,t,n,a,o){return r.a.get("https://JoleAPI.givechances.org/odata/Unit?$expand=UserUnits,School&$select=id,Name&$count=true&$top="+e+"&$skip="+t+"&$orderby="+n+" "+a+(o?"&$filter="+o:""))}},{key:"getBoards",value:function(e,t,n,a,o){return r.a.get("https://JoleAPI.givechances.org/odata/Board?$expand=School,Unit&$select=id,name,description&$count=true&$top="+e+"&$skip="+t+"&$orderby=school/id asc,"+n+" "+a+(o?"&$filter="+o:""))}},{key:"getArticles",value:function(e,t,n,a,o){return r.a.get("https://JoleAPI.givechances.org/odata/Article?$expand=Author,Replies($count=true;$top=0;$filter=isDeleted eq false)&$select=id,title,viewCount,createdOn,lastUpdatedOn&$count=true&$top="+e+"&$skip="+t+"&$orderby="+n+" "+a+(o?"&$filter="+o:""))}},{key:"getMyBoards",value:function(){return r.a.get("https://JoleAPI.givechances.org/odata/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")}},{key:"getVolunteerHourLetters",value:function(e,t,n,a,o){return r.a.get("https://JoleAPI.givechances.org/odata/VolunteerHourLetter?$expand=Volunteer,File&$select=id,periodStartDate,periodEndDate,hours,requestedOn,status,type,volunteerId&$count=true&$top="+e+"&$skip="+t+"&$orderby="+n+" "+a+(o?"&$filter="+o:""))}},{key:"getAttendances",value:function(e,t,n,a,o){return r.a.get("https://JoleAPI.givechances.org/odata/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="+e+"&$skip="+t+"&$orderby="+n+" "+a+(o?"&$filter="+o:""))}},{key:"getNeedApprovalApplicationCountForSchool",value:function(e){return r.a.get("https://JoleAPI.givechances.org/odata/User?$select=id&$expand=userUnits&$count=true&$top=1&$filter=(studentInfo/status eq 'SUBMITTED' and studentInfo/applicationSchoolId eq "+e+" or volunteerInfo/status eq 'SUBMITTED' and volunteerInfo/applicationSchoolId eq "+e+")")}},{key:"getMeals",value:function(e,t,n,a,o){return r.a.get("https://JoleAPI.givechances.org/odata/Meal?$select=id,description,providedOn,providedBy,servingCount&$expand=MealMenus&$count=true&$top="+e+"&$skip="+t+"&$orderby="+n+" "+a+(o?"&$filter="+o:""))}},{key:"getUsersApi",value:function(e){return r.a.get("https://JoleAPI.givechances.org/api/Users?$select=id,firstName,lastName&$expand=Contact($select=email)")}},{key:"getCurrentUser",value:function(){return r.a.get("https://JoleAPI.givechances.org/api/Users/me")}},{key:"getUserData",value:function(){return r.a.get("https://JoleAPI.givechances.org/api/Users/me/data")}},{key:"getUser",value:function(e){return r.a.get("https://JoleAPI.givechances.org/api/Users/"+e)}},{key:"putUser",value:function(e,t){return r.a.put("https://JoleAPI.givechances.org/api/Users/"+e,t)}},{key:"getModerators",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return r.a.get("https://JoleAPI.givechances.org/api/Users/GetModerators/"+(0===e?"":e))}},{key:"getVolunteersByUnit",value:function(e){return r.a.get("https://JoleAPI.givechances.org/api/Users/getVolunteers/"+e)}},{key:"postAddNewEmployee",value:function(e){return r.a.post("https://JoleAPI.givechances.org/api/Users/CreateEmployee",e)}},{key:"removeRole",value:function(e,t){return r.a.delete("https://JoleAPI.givechances.org/api/Users/RemoveRole/"+e+"?role="+t)}},{key:"getVolunteers",value:function(){return r.a.get("https://JoleAPI.givechances.org/api/Users/getVolunteers")}},{key:"getStudentsByUnit",value:function(e){return r.a.get("https://JoleAPI.givechances.org/api/Users/getStudents/"+e)}},{key:"getStudents",value:function(){return r.a.get("https://JoleAPI.givechances.org/api/Users/getStudents")}},{key:"getLeadTeachers",value:function(){return r.a.get("https://JoleAPI.givechances.org/api/Users/getLeadTeachers")}},{key:"postStudent",value:function(e){return r.a.post("https://JoleAPI.givechances.org/api/Users/PostStudent",e)}},{key:"postVolunteer",value:function(e){return r.a.post("https://JoleAPI.givechances.org/api/Users/PostVolunteer",e)}},{key:"postLeadTeacher",value:function(e){return r.a.post("https://JoleAPI.givechances.org/api/Users/PostLeadTeacher",e)}},{key:"postAdministrator",value:function(e){return r.a.post("https://JoleAPI.givechances.org/api/Users/PostAdministrator",e)}},{key:"getGuardianContact",value:function(e){return r.a.get("https://JoleAPI.givechances.org/api/GuardianContacts/"+e)}},{key:"postGuardianContact",value:function(e){return r.a.post("https://JoleAPI.givechances.org/api/Guardians",e)}},{key:"putGuardianContact",value:function(e,t){return r.a.put("https://JoleAPI.givechances.org/api/GuardianContacts/"+e,t)}},{key:"getStudent",value:function(e){return r.a.get("https://JoleAPI.givechances.org/api/students/"+e)}},{key:"getCheckInStatus",value:function(){return r.a.get("https://JoleAPI.givechances.org/api/WorkingHours/CheckInStatus")}},{key:"postCheckIn",value:function(){return r.a.post("https://JoleAPI.givechances.org/api/WorkingHours/CheckIn")}},{key:"postCheckOut",value:function(e){return r.a.post("https://JoleAPI.givechances.org/api/WorkingHours/CheckOut/"+e)}},{key:"getWorkingHour",value:function(e){return r.a.get("https://JoleAPI.givechances.org/api/WorkingHours/"+e)}},{key:"putWorkingHour",value:function(e,t){return r.a.put("https://JoleAPI.givechances.org/api/WorkingHours/"+e,t)}},{key:"getUnit",value:function(e){return r.a.get("https://JoleAPI.givechances.org/api/Units/"+e)}},{key:"putUnit",value:function(e,t){return r.a.put("https://JoleAPI.givechances.org/api/Units/"+e,t)}},{key:"deleteUnit",value:function(e){return r.a.delete("https://JoleAPI.givechances.org/api/Units/"+e)}},{key:"postUnit",value:function(e){return r.a.post("https://JoleAPI.givechances.org/api/Units",e)}},{key:"getUnitsBySchool",value:function(e){return r.a.get("https://JoleAPI.givechances.org/api/Units/UnitsBySchool/"+e)}},{key:"getAllSchools",value:function(){return r.a.get("https://JoleAPI.givechances.org/api/Schools")}},{key:"getSchool",value:function(e){return r.a.get("https://JoleAPI.givechances.org/api/Schools/"+e)}},{key:"postSchool",value:function(e){return r.a.post("https://JoleAPI.givechances.org/api/Schools",e)}},{key:"putSchool",value:function(e,t){return r.a.put("https://JoleAPI.givechances.org/api/Schools/"+e,t)}},{key:"deleteSchool",value:function(e){return r.a.delete("https://JoleAPI.givechances.org/api/Schools/"+e)}},{key:"getSession",value:function(e){return r.a.get("https://JoleAPI.givechances.org/api/Sessions/"+e)}},{key:"postSession",value:function(e){return r.a.post("https://JoleAPI.givechances.org/api/Sessions",e)}},{key:"putSession",value:function(e,t){return r.a.put("https://JoleAPI.givechances.org/api/Sessions/"+e,t)}},{key:"postStartSession",value:function(e){return r.a.post("https://JoleAPI.givechances.org/api/Sessions/StartSession/"+e)}},{key:"postEndSession",value:function(e){return r.a.post("https://JoleAPI.givechances.org/api/Sessions/EndSession/"+e)}},{key:"postBulkSession",value:function(e){return r.a.post("https://JoleAPI.givechances.org/api/Sessions/PostBulkSession",e)}},{key:"getMeal",value:function(e){return r.a.get("https://JoleAPI.givechances.org/api/Meals/"+e)}},{key:"postMeal",value:function(e){return r.a.post("https://JoleAPI.givechances.org/api/Meals",e)}},{key:"putMeal",value:function(e,t){return r.a.put("https://JoleAPI.givechances.org/api/Meals/"+e,t)}},{key:"deleteMeal",value:function(e){return r.a.delete("https://JoleAPI.givechances.org/api/Meals/"+e)}},{key:"postMealAttachment",value:function(e){return r.a.post("https://JoleAPI.givechances.org/api/MealAttachments",e)}},{key:"getVolunteerHourLetter",value:function(e){return r.a.get("https://JoleAPI.givechances.org/api/VolunteerHourLetters/"+e)}},{key:"postVolunteerHourLetter",value:function(e){return r.a.post("https://JoleAPI.givechances.org/api/VolunteerHourLetters/",e)}},{key:"putVolunteerHourLetter",value:function(e,t){return r.a.put("https://JoleAPI.givechances.org/api/VolunteerHourLetters/"+e,t)}},{key:"getVolunteerHours",value:function(e,t,n){return r.a.get("https://JoleAPI.givechances.org/api/VolunteerHourLetters/GetVolunteerHours?periodStartDate="+e+"&periodEndDate="+t+"&volunteerId="+n)}},{key:"getMyVolunteerHours",value:function(e,t){return r.a.get("https://JoleAPI.givechances.org/api/VolunteerHourLetters/GetMyVolunteerHours?periodStartDate="+e+"&periodEndDate="+t)}},{key:"getAllBoards",value:function(){return r.a.get("https://JoleAPI.givechances.org/api/Boards")}},{key:"getBoardsBySchool",value:function(e){return r.a.get("https://JoleAPI.givechances.org/api/Boards/BoardsBySchool/"+e)}},{key:"getBoardsByUnit",value:function(e){return r.a.get("https://JoleAPI.givechances.org/api/Boards/BoardsByUnit/"+e)}},{key:"getBoard",value:function(e){return r.a.get("https://JoleAPI.givechances.org/api/Boards/"+e)}},{key:"putBoard",value:function(e,t){return r.a.put("https://JoleAPI.givechances.org/api/Boards/"+e,t)}},{key:"postBoard",value:function(e){return r.a.post("https://JoleAPI.givechances.org/api/Boards/",e)}},{key:"getArticle",value:function(e){return r.a.get("https://JoleAPI.givechances.org/api/Articles/"+e)}},{key:"postArticle",value:function(e){return r.a.post("https://JoleAPI.givechances.org/api/Articles/",e)}},{key:"putArticle",value:function(e,t){return r.a.put("https://JoleAPI.givechances.org/api/Articles/"+e,t)}},{key:"getReply",value:function(e){return r.a.get("https://JoleAPI.givechances.org/api/Replies/"+e)}},{key:"postReply",value:function(e){return r.a.post("https://JoleAPI.givechances.org/api/Replies/",e)}},{key:"putReply",value:function(e,t){return r.a.put("https://JoleAPI.givechances.org/api/Replies/"+e,t)}},{key:"getArticleAttachmentsByArticle",value:function(e){return r.a.get("https://JoleAPI.givechances.org/api/ArticleAttachments/GetArticleAttachmentsByArticle/"+e)}},{key:"postArticleAttachment",value:function(e){return r.a.post("https://JoleAPI.givechances.org/api/ArticleAttachments",e)}},{key:"deleteAttachment",value:function(e){return r.a.delete("https://JoleAPI.givechances.org/api/ArticleAttachments/"+e)}},{key:"postFile",value:function(e){return r.a.post("https://JoleAPI.givechances.org/api/Files",e)}},{key:"postFileWithThumbnail",value:function(e){return r.a.post("https://JoleAPI.givechances.org/api/Files/PostFileWithThumbnail",e)}},{key:"getDownloadLink",value:function(e){return r.a.get("https://JoleAPI.givechances.org/api/Files/DownloadLink/"+e)}},{key:"deleteFile",value:function(e){return r.a.delete("https://JoleAPI.givechances.org/api/Files/"+e)}},{key:"getStudentSessionReport",value:function(e){return r.a.get("https://JoleAPI.givechances.org/api/StudentSessionReports/"+e)}},{key:"putStudentSessionReport",value:function(e,t){return r.a.put("https://JoleAPI.givechances.org/api/StudentSessionReports/"+e,t)}},{key:"getAttendance",value:function(e){return r.a.get("https://JoleAPI.givechances.org/api/Attendances/"+e)}},{key:"getAttendancesApi",value:function(e){return r.a.get("https://JoleAPI.givechances.org/api/Attendances?$select=id,type,comment&$expand=userSession($expand=user($select=firstName,lastName),session($select=id,status;$expand=moderator($select=firstname,lastname),unit($select=name)))"+(e?"&$filter="+e:""))}},{key:"putAttendance",value:function(e,t){return r.a.put("https://JoleAPI.givechances.org/api/Attendances/"+e,t)}},{key:"putDailyAttendance",value:function(e){return r.a.put("https://JoleAPI.givechances.org/api/Attendances/PutDailyAttendance",e)}},{key:"getCalendarSession",value:function(e){return r.a.get("https://JoleAPI.givechances.org/api/sessions?$select=id,title,starton,endon,status"+(e?"&$filter="+e:""))}},{key:"makeFilterString",value:function(e){var t="";return e.forEach((function(e){(e.value||!1===e.value)&&e.field?t=t.concat((""===t?"":" and ")+e.field+" "+e.operator+" "+("string"===typeof e.value||e.value instanceof String?"'"+e.value+"'":"function"===typeof e.value.getMonth||e.value instanceof Date?"cast("+e.value.toISOString()+",Edm.DateTimeOffset)":e.value)):e.raw&&(t=t.concat((""===t?"":" and ")+e.raw))})),t}},{key:"insertUrlParam",value:function(e){if(e&&Object.keys(e).length>0){var t=new URLSearchParams(window.location.search);Object.keys(e).forEach((function(n){""!==e[n]?t.set(n,e[n]):t.delete(n)}));var n=window.location.protocol+"//"+window.location.host+window.location.pathname+"?"+t.toString();window.history.replaceState({path:n},"",n)}else if(0===Object.keys(e).length){var a=window.location.protocol+"//"+window.location.host+window.location.pathname;window.history.replaceState({path:a},"",a)}}}]),e}();t.b=u},28:function(e,t,n){"use strict";t.a=n.p+"static/media/logo.50d1c413.png"},52:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/giveChances.50d1c413.png"},71:function(e,t,n){},76:function(e,t,n){},77:function(e,t,n){},78:function(e,t,n){},79:function(e,t,n){},80:function(e,t,n){"use strict";n.r(t);var a=n(0),o=n(11),s=n.n(o),r=n(21),i=n(41),c=n(42),u=n.n(c),l=n(8),p=n(9),g=n(2),d={userData:JSON.parse(localStorage.getItem("userData"))?JSON.parse(localStorage.getItem("userData")):{}},h=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case"LOGIN":return Object(g.a)(Object(g.a)({},t),{},(e={userData:n.data},Object(p.a)(e,n.config.storageTokenKeyName,n[n.config.storageTokenKeyName]),Object(p.a)(e,n.config.storageRefreshTokenKeyName,n[n.config.storageRefreshTokenKeyName]),e));case"USER_DATA_REFRESH":return Object(g.a)(Object(g.a)({},t),{},{userData:n.data});case"LOGOUT":var a=Object(g.a)({},n);return delete a.type,Object(g.a)(Object(g.a)({},t),{},{userData:{}},a);default:return Object(g.a)(Object(g.a)({},t),{},{userData:JSON.parse(localStorage.getItem("userData"))?JSON.parse(localStorage.getItem("userData")):{}})}},v={suggestions:[],bookmarks:[],query:""},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"HANDLE_SEARCH_QUERY":return Object(g.a)(Object(g.a)({},e),{},{query:t.val});case"GET_BOOKMARKS":return Object(g.a)(Object(g.a)({},e),{},{suggestions:t.data,bookmarks:t.bookmarks});case"UPDATE_BOOKMARKED":var n;e.suggestions.find((function(e){e.id===t.id&&(e.isBookmarked=!e.isBookmarked,n=e)}));var a=e.bookmarks.findIndex((function(e){return e.id===t.id}));return-1===a?e.bookmarks.push(n):e.bookmarks.splice(a,1),Object(g.a)({},e);default:return e}},y=n(12),$={isRTL:y.a.layout.isRTL,menuCollapsed:function(){var e=window.localStorage.getItem("menuCollapsed");return e?JSON.parse(e):y.a.layout.menu.isCollapsed}(),menuHidden:y.a.layout.menu.isHidden,contentWidth:y.a.layout.contentWidth},k=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"HANDLE_CONTENT_WIDTH":return Object(g.a)(Object(g.a)({},e),{},{contentWidth:t.value});case"HANDLE_MENU_COLLAPSED":return window.localStorage.setItem("menuCollapsed",t.value),Object(g.a)(Object(g.a)({},e),{},{menuCollapsed:t.value});case"HANDLE_MENU_HIDDEN":return Object(g.a)(Object(g.a)({},e),{},{menuHidden:t.value});case"HANDLE_RTL":return Object(g.a)(Object(g.a)({},e),{},{isRTL:t.value});default:return e}},A={submittedApplicationCount:0,currentSchool:JSON.parse(localStorage.getItem("currentSchool"))?JSON.parse(localStorage.getItem("currentSchool")):{id:0,name:""}},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_APPLICATION_COUNT":return Object(g.a)(Object(g.a)({},e),{},{submittedApplicationCount:t.val});case"UPDATE_CURRENT_SCHOOL":return localStorage.setItem("currentSchool",JSON.stringify(t.data)),Object(g.a)(Object(g.a)({},e),{},{currentSchool:t.data});default:var n=JSON.parse(localStorage.getItem("currentSchool"))?JSON.parse(localStorage.getItem("currentSchool")):{id:0,name:""};return Object(g.a)(Object(g.a)({},e),{},{currentSchool:n})}},I=Object(l.c)({auth:h,navbar:f,layout:k,appData:m}),S=[i.a,u()()],O=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||l.d,P=Object(l.e)(I,{},O(l.a.apply(void 0,S))),b=n(22),J=n(10),j=n(4),U=Object(a.createContext)(),x=function(e){var t=e.children,n=Object(a.useState)({}),o=Object(J.a)(n,2),s=o[0],r=o[1];return Object(a.useEffect)((function(){if("undefined"!==window){var e=function(e){return window.getComputedStyle(document.body).getPropertyValue(e).trim()},t={primary:{light:e("--primary").concat("1a"),main:e("--primary")},secondary:{light:e("--secondary").concat("1a"),main:e("--secondary")},success:{light:e("--success").concat("1a"),main:e("--success")},danger:{light:e("--danger").concat("1a"),main:e("--danger")},warning:{light:e("--warning").concat("1a"),main:e("--warning")},info:{light:e("--info").concat("1a"),main:e("--info")},dark:{light:e("--dark").concat("1a"),main:e("--dark")}};r(Object(g.a)({},t))}}),[]),Object(j.jsx)(U.Provider,{value:{colors:s},children:t})},N=n(28),w=function(){return Object(j.jsxs)("div",{className:"fallback-spinner vh-100",children:[Object(j.jsx)("img",{className:"fallback-logo",src:N.a,alt:"logo"}),Object(j.jsxs)("div",{className:"loading",children:[Object(j.jsx)("div",{className:"effect-1 effects"}),Object(j.jsx)("div",{className:"effect-2 effects"}),Object(j.jsx)("div",{className:"effect-3 effects"})]})]})},E=n(15),D=n(29),C=n(82),H=n(13),L=n.n(H);n(71);C.a.Ripple=function(e){var t=e.className,n=e.children,o=e.onClick,s=Object(D.a)(e,["className","children","onClick"]),r=Object(a.useState)(!1),i=Object(J.a)(r,2),c=i[0],u=i[1],l=Object(a.useState)(!1),d=Object(J.a)(l,2),h=d[0],v=d[1],f=Object(a.useState)({x:-1,y:-1}),y=Object(J.a)(f,2),$=y[0],k=y[1];return Object(a.useEffect)((function(){return u(!0),function(){return u(!1)}}),[]),Object(a.useEffect)((function(){c&&(-1!==$.x&&-1!==$.y?(v(!0),setTimeout((function(){return v(!1)}),500)):v(!1))}),[$]),Object(a.useEffect)((function(){c&&(h||k({x:-1,y:-1}))}),[h]),Object(j.jsxs)(C.a,Object(g.a)(Object(g.a)({className:L()("waves-effect",Object(p.a)({},t,t)),onClick:function(e){var t=e.target.getBoundingClientRect();k({x:e.clientX-t.left,y:e.clientY-t.top}),o&&o(e)}},s),{},{children:[n,h?Object(j.jsx)("span",{className:"waves-ripple",style:{left:$.x,top:$.y}}):null]}))};n(72),n(73),n(74),n(75),n(76),n(77),n(78),n(79),Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));var T=Object(a.lazy)((function(){return Promise.all([n.e(14),n.e(16)]).then(n.bind(null,798))}));s.a.render(Object(j.jsx)(r.a,{store:P,children:Object(j.jsx)(E.a.Provider,{value:{joleSvc:new E.b},children:Object(j.jsx)(a.Suspense,{fallback:Object(j.jsx)(w,{}),children:Object(j.jsxs)(x,{children:[Object(j.jsx)(T,{}),Object(j.jsx)(b.b,{newestOnTop:!0})]})})})}),document.getElementById("root")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(e){e.unregister()}))}},[[80,13,15]]]); //# sourceMappingURL=main.c1884503.chunk.js.map