"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2639],{184839:function(e,t,a){a.d(t,{Z:function(){return g}});var r=a(824246);a(827378);var n=a(298784),o=a(832964),l=a(353354),i=a(485318),s=a(736376),E=a(512709),d=a(318261),c=a(381337),u=a(629603);let p=(0,E.ZP)("div")(()=>({display:"block",position:"relative"})),R=(0,E.ZP)(i.default)(()=>({["&.".concat(d.Z.root)]:{marginLeft:3,opacity:.5,position:"absolute",right:-20,top:"25%",width:17}})),_=(0,E.ZP)(c.Z)(()=>({["&.".concat(u.Z.root)]:{display:"block"},"& .MuiOutlinedInput-root":{"&.Mui-disabled":{cursor:"not-allowed"},border:"1px solid ".concat(s.default.SECONDARY),borderRadius:8,color:s.default.TEXT_SECONDARY,fontSize:14,height:36,minHeight:36,padding:"0 12px",position:"relative",width:"65%"}})),D=e=>{let{disabled:t,errorMessage:a,inputProps:{maxDate:i,minDate:s,...E},labelProps:d,required:c}=e,u=(0,r.jsxs)(p,{children:[(0,r.jsx)(_,{InputProps:{inputProps:{max:i,min:s},sx:a?{borderColor:"customColors.ERROR_DARK",borderStyle:"solid",borderWidth:1}:void 0},type:"date",...E}),a&&(0,r.jsx)(o.Z,{arrow:!0,placement:"top",title:a,children:(0,r.jsx)(R,{htmlColor:"#8E0024"})})]});return(0,r.jsxs)(r.Fragment,{children:[d&&(0,r.jsx)("div",{children:(0,r.jsx)(l.InputLabel,{disabled:t,error:!!a||(0,n.get)(d,"error"),required:c,...d})}),u]})};D.defaultProps={disabled:void 0,errorMessage:void 0,labelProps:void 0,required:void 0};var g=D},861249:function(e,t,a){var r=a(358117),n=a(512709);let o=(0,n.ZP)(r.Z)(()=>({"&.MuiAutocomplete-endAdornment":{"& > .MuiButtonBase-root":{height:"unset",width:"unset"}}}));t.Z=o},986150:function(e,t){t.Z={ERROR_BG:"#FAE6EB",ERROR_INPUT:"#f44336",ERROR_TXT:"#8E0024",GREEN:"#16D620",GREY_DARK:"#6F6F6F",GREY_LIGHT:"#D2D4D7",GREY_MEDIUM:"#929497",INFO_BG:"#FEF8DC",INPUT_BORDER:"#929497",INPUT_DISABLED:"#FCFCFC",LAYOUT_BORDER:"#E8E8E8",LIGHT_BLUE:"#E6F2F7",LINK:"#0077AA",LINK_ACTIVE:"#042E60",LINK_HOVER:"#016089",ORANGE:"#FFD500",PRODUCT_RED:"#e31b23",RED:"#8E0024",SCREEN_BACKGROUND:"#ffffff",SCREEN_BACKGROUND_SECONDARY:"#FAFAFA",SUCCESS_BG:"#D9F0D9",SUCCESS_LIGHT:"#81c784",SUCCESS_MEDIUM:"#4caf50",TRANSPARENT:"rgba(0, 0, 0, 0)",BACKGROUND:"#F7F7F7",ERROR:"#CC0033",ERROR_DARK:"#8E0024",INFO:"#2196F3",INFO_DARK:"#1976D2",INFO_LIGHT:"#64B5F6",PRIMARY:"#0077AA",PRIMARY_DARK:"#042E60",PRIMARY_LIGHT:"#0077AA",SECONDARY:"#2D2D2D",SUCCESS:"#009900",SUCCESS_DARK:"#007B00",TERTIARY:"#2D2D2D",TEXT_SECONDARY:"#444444",WARNING:"#FF9900",WARNING_DARK:"#D14900",BLUE1:"rgb(0, 119, 170)",BLUE2:"rgb(0, 125, 179)",BLUE3:"rgb(0, 143, 204)",BLUE4:"rgb(0, 161, 230)",BLUE5:"rgb(0, 179, 255)",BLUE6:"rgb(26, 186, 255)",BLUE7:"rgb(51, 194, 255)",BLUE8:"rgb(77, 201, 255)",BLUE9:"rgb(102, 209, 255)",BLUE10:"rgb(128, 217, 255)",BLUE11:"rgb(153, 224, 255)",GREEN1:"rgb(9, 121, 105)",GREEN2:"rgb(69, 75, 27)",GREEN3:"rgb(8, 143, 143)",GREEN4:"rgb(95, 158, 160)",GREEN5:"rgb(175, 225, 175)",GREEN6:"rgb(2, 48, 32)",GREEN7:"rgb(80, 200, 120)",GREEN8:"rgb(95, 133, 117)",GREEN9:"rgb(79, 121, 66)",GREEN10:"rgb(34, 139, 34)",GREEN11:"rgb(124, 252, 0)",GREEN12:"rgb(0, 128, 0)",GREEN13:"rgb(53, 94, 59)",GREEN14:"rgb(0, 163, 108)",GREEN15:"rgb(42, 170, 138)",GREEN16:"rgb(76, 187, 23)",GREEN17:"rgb(50, 205, 50)",GREEN18:"rgb(71, 135, 120)",GREEN19:"rgb(11, 218, 81)",GREEN20:"rgb(15, 255, 80)",GREEN21:"rgb(180, 196, 36)",GREEN22:"rgb(147, 197, 114)",GREEN23:"rgb(46, 139, 87)",GREEN24:"rgb(0, 158, 96)",GREEN25:"rgb(0, 128, 128)",RoyalBlue:"#1f77b4",DarkOrange:"#ff7f0e",ForestGreen:"#2ca02c",BrickRed:"#d62728",Purple:"#9467bd",Rust:"#8c564b",Pink:"#e377c2",Gray:"#7f7f7f",Olive:"#bcbd22",Turquoise:"#17becf",LightBlue:"#aec7e8",LightOrange:"#ffbb78",LightGreen:"#98df8a",LightRed:"#ff9896",Lavender:"#c5b0d5",Taupe:"#c49c94",LightPink:"#f7b6d2",Silver:"#c7c7c7",PaleYellow:"#dbdb8d",PaleTurquoise:"#9edae5",PaleRed:"#ff9896",PaleGray:"#c7c7c7",PaleOlive:"#dbdb8d",PaleBlue:"#9edae5",PaleSkyBlue:"#aec7e8",EarthyBrown:"#8c564b",DeepRed:"#d62728",DeepPurple:"#9467bd",DeepBlue:"#1f77b4",DeepGreen:"#2ca02c",DeepOrange:"#ff7f0e",DarkGray:"#7f7f7f",Apricot:"#ffbb78",MintGreen:"#98df8a",SkyBlue:"#17becf",Lilac:"#c5b0d5",Mauve:"#c49c94",BubblegumPink:"#f7b6d2",Chartreuse:"#bcbd22",OrchidPink:"#e377c2",Crimson:"#d62728",PowderBlue:"#9edae5",Mahogany:"#8c564b",BurntOrange:"#ff7f0e",IndigoBlue:"#1f77b4",LushGreen:"#2ca02c",Coral:"#ff7f50",CornflowerBlue:"#6495ed",HotPink:"#ff69b4",OliveGreen:"#808000",Black:"#212121",Yellow:"#ffeb3b",RED500:"#f44336",RED900:"#b71c1c",RED700:"#d32f2f",PINK500:"#e91e63",PINK700:"#c2185b",PINK900:"#880e4f",PURPLE500:"#9c27b0",PURPLE700:"#7b1fa2",PURPLE900:"#4a148c",DEEPPURPLE700:"#512da8",DEEPPURPLE900:"#311b92",BLUEGREYA400:"#78909c",INDIGO500:"#3f51b5",INDIGO700:"#303f9f",INDIGO900:"#1a237e",INDIGOA700:"#304ffe",BLUE500:"#2196f3",BLUE700:"#1976d2",BLUE900:"#0d47a1",CYAN900:"#006064",CYAN500:"#00bcd4",GREY600:"#757575",TEAL500:"#009688",TEAL700:"#00796b",TEAL900:"#004d40",TEALA400:"#1de9b6",GREEN500:"#4caf50",GREEN700:"#388e3c",GREEN900:"#1b5e20",LIGHTGREENA700:"#64dd17",LIGHTGREENA400:"#76ff03",LIME500:"#cddc39",LIME900:"#827717",GREY500:"#9e9e9e",GREY800:"#424242",LIMEA100:"#f4ff81",YELLOW500:"#ffeb3b",YELLOW700:"#fbc02d",BROWN700:"#5d4037",BROWN900:"#3e2723",AMBER300:"#ffd54f",AMBER700:"#ffa000",DEEPORANGE500:"#ff5722",DEEPORANGE200:"#ffab91",BLACK1:"#212121",BLUEGREY500:"#607d8b",DEEPORANGEA400:"#ff3d00",DARKMEHROON:"#4a148c",DARKBLUE:"#880e4f"}},77967:function(e,t,a){var r,n;a.d(t,{D:function(){return r}}),(n=r||(r={})).PROFILE_MERGE_RECEIVED="profile.merge-received",n.PROFILE_MERGE_DELETED="profile.merge-deleted",n.PROFILE_MERGE_CLONED_DELETED="profile.merge-cloned-deleted",n.PROFILE_MERGE_CREATED="profile.merge-created",n.PROFILE_MERGE_COMPLETED="profile.merge-completed",n.PROFILE_MERGE_NOACTION="profile.merge-noaction",n.PROFILE_MERGE_ERRORED="profile.merge-errored",n.EVENT_PUBLISHED="event.published",n.EVENT_ERROR="event.error"},47144:function(e,t,a){var r,n;a.d(t,{t:function(){return r}}),(n=r||(r={})).PROFILE_DEMOGRAPHICS_UPDATED="profile.demographics-updated",n.PROFILE_CONTACT_EMAIL_UPDATED="profile.contact-email-updated",n.PROFILE_CONTACT_HOME_ADDRESS_UPDATED="profile.contact-home-address-updated",n.PROFILE_COLLEGE_RECRUITEMENT_IND_UPDATED="profile.college-recruitment-ind-updated",n.PROFILE_PARENT_COLLEGE_COMPLETION_IND_UPDATED="profile.parent-college-completion-ind-updated",n.PROFILE_ACTID_ASSIGNED="profile.actid-assigned",n.PROFILE_CREATED="profile.created",n.PROFILE_ALL_FAV_OCCUPATIONS_UPDATED="profile.all-favorite-occupations-updated",n.PROFILE_FAV_OCCUPATION_REMOVED="profile.favorite-occupation-removed",n.PROFILE_FAV_OCCUPATION_ADDED="profile.favorite-occupation-added",n.PROFILE_SOCIAL_BEHAVIOR_UPDATED="profile.college-social-behavior-updated",n.PROFILE_COLLEGE_TYPES="profile.college-types",n.PROFILE_COLLEGE_HOURS_FROM_HOME_UPDATED="profile.college-hours-from-home-updated",n.PROFILE_COLLEGE_CAMPUS_POPULATION_SIZE_UPDATED="profile.college-campus-population-size-updated",n.PROFILE_EXTRACURRICULAR_INTERESTS_UPDATED="profile.extracurricular-interests-updated",n.PROFILE_COLLEGE_GEOGRAPHIC_SETTING_UPDATED="profile.college-geographic-setting-updated",n.PROFILE_SCOIAL_CULTURAL_RELIGIOUS_AFFILIATION_UPDATED="profile.social-cultural-religious-affiliation-updated",n.PROFILE_COLLEGE_PREFERRED_STATES_UPDATED="profile.college-preferred-states-updated",n.PROFILE_PLANS_MILITARY_BRANCHES_UPDATED="profile.plans-military-branches-updated",n.PROFILE_PLANS_MILITARY_INTERESTS_UPDATED="profile.plans-military-interests-updated",n.PROFILE_CONSIDERING_MILITARY_OPTIONS_UPDATED="profile.considering-military-options-updated",n.PROFILE_HIGH_SCHOOL_ACADEMIC_RECORD_UPDATED="profile.high-school-academic-record-updated",n.PROFILE_HIGH_SCHOOL_ENROLLMENT_UPDATED="profile.high-school-enrollment-updated",n.PROFILE_HIGH_SCHOOL_ADVANCED_PROGRAMS_UPDATED="profile.high-school-advanced-programs-updated",n.PROFILE_COLLEGE_MINDSET_CARE_ABOUT_MOST_UPDATED="profile.college-mindset-care-about-most-updated",n.PROFILE_COLLEGE_MINDSET_EXPERIENCES_TO_LEARN_MOST_FROM_UPDATED="profile.college-mindset-experiences-to-learn-most-from-updated",n.PROFILE_COLLEGE_MINDSET_EXPECTATIONS_FOR_EDUCATION_UPDATED="profile.college-mindset-expectations-for-education-updated",n.PROFILE_ENCOURAGE_ONBOARDING_COMPLETE_UPDATED="profile.encourage-onboarding-complete-updated",n.PROFILE_MERGE_RECEIVED="profile.merge-received",n.PROFILE_MERGE_DELETED="profile.merge-deleted",n.PROFILE_MERGE_CLONED_DELETED="profile.merge-cloned-deleted",n.PROFILE_MERGE_CREATED="profile.merge-created",n.PROFILE_MERGE_COMPLETED="profile.merge-completed",n.PROFILE_MERGE_NOACTION="profile.merge-noaction",n.PROFILE_MERGE_ERRORED="profile.merge-errored",n.EVENT_PUBLISHED="event.published",n.EVENT_ERROR="event.error"},411228:function(e,t,a){var r,n;a.d(t,{a:function(){return r}}),(n=r||(r={})).USER_ACCOUNT_CREATED="user.account-created",n.USER_ACCOUNT_VERIFIED="user.account-verified",n.USER_PASSWORD_CHANGED="user.password-changed",n.USER_FORGOT_PASSWORD_REQUESTED="user.forgot-password-requested",n.USER_COMPLETE_FORGOT_PASSWORD="user.complete-forgot-password",n.USER_RESEND_VERIFICATION_CODE_REQUESTED="user.resend-verification-code-requested",n.USER_ACCEPTED_TERMS_AND_CONDITIONS="user.accepted-terms-and-conditions",n.USER_LOGGED_IN="user.logged-in",n.USER_ACCESS_TOKEN_REFRESHED="user.access-token-refreshed",n.USER_LOGGED_OUT="user.logged-out",n.USER_OPT_OUT_PROCESSED="user.opt-out-processed"},433564:function(e,t,a){a.d(t,{B:function(){return o}});var r=a(898478),n=a(383763);async function o(e,t,a){let n=new r.ZP("p","px"),o=document.getElementsByClassName("aigr-chart");await l({doc:n,elements:o,param1:e,fromDate:t,toDate:a}),n.save("AIGR_Report_".concat(t,"_").concat(a,".pdf"))}async function l(e){let{doc:t,elements:a,param1:r,fromDate:o,toDate:l}=e,i=40;t.setFont("Lato-Regular","normal"),t.setFontSize(10),t.text("AIGR Chart between ".concat(o," and ").concat(l),120,20);for(let e=0;ed){let e=d/E;s=s*e-20,E=E*e-20}let c=t.internal.pageSize.getHeight();i+s>c&&(t.addPage(),i=40),t.addImage(l,"PNG",10,i,E,s,"image".concat(e)),i+=s+40;let u=!0,p=[];if(""===r)return;r.includes(",")&&(p.push(r.split(",")),u=!1);let R=i+10;if(u)t.text("Selected Option:",20,R),t.text("".concat(r),70,R+10);else{t.text("Selected Options:",20,R);for(let e=0;e{let{actions:e}=r.useContext(n.AlertContext),t=(0,E.useRouter)();sessionStorage.length>0&&(sessionStorage.removeItem(o.Z.SESSION_ID_TOKEN),s.Z.remove(o.Z.SESSION_TOKEN)),await e.addAlert({message:"session timeout. please login again!",options:{variant:"error"}}),t.push({pathname:i().SIGNIN})};t.Z=d},802639:function(e,t,a){a.d(t,{Z:function(){return ew}});var r=a(824246),n=a(827378),o=a(298784),l=a(760032),i=a(867746),s=a(491623),E=a(28873);let d=()=>(0,r.jsx)(E.Z,{title:"Audit Events Metrics"});var c=a(655863),u=a(452054),p=a(975490),R=a(638807),_=a(184839),D=a(512709),g=a(360982),f=a(234180);let O=(0,D.ZP)(g.Z)(e=>{let{theme:t}=e;return{["&.".concat(f.Z.root)]:{padding:t.spacing(2)}}});var P=a(161320),h=a.n(P),I=a(129602),L=a(18013),A=a(36479),T=a(119989),v=a(931811),m=a(2779),C=a(319551),y=a(353354),N=a(411228),S=a(47144),x=a(77967),b=a(67461);function G(){let e=(0,T.Z)(["\n query AuditEventCountsByDayQuery($input: AuditEventsInput!) {\n auditEventCountsByDay(input: $input) {\n date\n total\n clientCounts {\n client\n count\n eventType\n }\n }\n }\n"]);return G=function(){return e},e}let Z=(0,v.Ps)(G()),U=e=>{let{fromDate:t,toDate:a,eventType:n,clientApp:l}=e;n.length>0&&(n=n.filter((e,t)=>n.indexOf(e)===t));let i={fromDate:t,toDate:a,eventType:n,clientApp:l},s={fromDate:t,toDate:a,eventType:n},E=l.length>0?i:s,{data:d,error:c,loading:R}=(0,m.a)(Z,{variables:{input:E}}),_=(0,o.cloneDeep)((0,o.get)(d,"auditEventCountsByDay")||[]);if(R)return(0,r.jsx)(y.Loading,{});(null==c?void 0:c.message)==="Unauthorized"&&(0,b.Z)();let D=0;_.forEach(e=>{D+=e.total});let g=[];n.forEach(e=>{let t=N.a[e]||S.t[e]||x.D[e];void 0!==t&&g.push(t)}),g=g.filter((e,t)=>g.indexOf(e)===t);let f=[];f.push({label:"Event Date",name:"date",options:{customBodyRender:e=>h()(e).format("MM/DD/YYYY"),filter:!0,sort:!0}}),f.push({label:"Total",name:"total",options:{filter:!0,sort:!0}}),g.forEach(e=>{f.push({label:e,name:"clientCounts",options:{setCellProps:()=>({align:"right"}),customBodyRender:t=>{let a=0,r=t.map(t=>t.eventType===e?t.count:"A");return r.forEach(e=>{a+=e}),function(e){let t=e.filter(e=>"A"!==e);if(0===t.length)t.push(0);else{let e=0;t.forEach(t=>{e+=t}),t=e}return t}(r)},filter:!0,sort:!0}})});let O=new Date(t).toISOString().slice(0,10),P=new Date(a).toISOString().slice(0,10),I={downloadOptions:{filename:"AuditEventsCountPerDay_".concat(O,"_").concat(P,".csv"),filterOptions:{useDisplayedColumnsOnly:!0,useDisplayedRowsOnly:!0}},filter:!0,filterType:"multiselect",print:!1,responsive:"standard",rowsPerPage:10,rowsPerPageOptions:[10,25,50],rowHover:!0};return(0,r.jsx)(r.Fragment,{children:D>0?(0,r.jsx)(p.ZP,{container:!0,direction:"row",spacing:1,children:(0,r.jsx)(p.ZP,{item:!0,xs:12,spacing:1,children:(0,r.jsx)(C.ZP,{columns:f,data:_,options:I,title:"Total Events: "+D})})}):(0,r.jsx)(u.Z,{children:"Sorry, no matching records found"})})},F=(0,o.flow)(I.C);var M=F(U);a(390042);var j=a(831734),k=a(996900),B=a(979280),Y=a(936712),w=a(735020),H=a(30433),V=a(823626),K=a(908228),W=a(830055),q=a(690750),$=a(879119),z=a(433564),Q=a(177255);function X(e,t,a){return"Bar"===a||"Line"==a?{plugins:{tooltip:{callbacks:{title:()=>""}},datalabels:{anchor:"end",align:"top",formatter:(e,t)=>{let a=[];t.chart.data.datasets.forEach(e=>{void 0!==e.data[t.dataIndex]&&a.push(e.data[t.dataIndex])});let r=a.reduce(function(e,t){return e+t},0);return t.datasetIndex===a.length-1?r:""},font:{weight:"bold"},color:"rgba(0, 79, 143, 1)"},legend:{position:"top"},title:{display:!0,text:"Total Events: ".concat(t)}},responsive:!0,scales:{x:{stacked:!0,type:"time",time:{unit:e,displayFormats:{week:"MM/dd/yyyy",month:"MMM yyyy",year:"yyyy"}},adapters:{date:{locale:Q.Z}}},y:{stacked:!0,grace:10}}}:{plugins:{tooltip:{callbacks:{title:()=>""}},datalabels:{anchor:"end",align:"top",font:{weight:"bold"},color:"rgba(0, 79, 143, 1)"},legend:{position:"top"},title:{display:!0,text:"Total Events: ".concat(t)}},responsive:!0,type:"bar",scales:{x:{stacked:!0,type:"time",time:{unit:e,displayFormats:{week:"MM/dd/yyyy",month:"MMM yyyy",year:"yyyy"}},adapters:{date:{locale:Q.Z}}},y:{stacked:!0,grace:10}}}}var J=a(127025),ee=a(986150);function et(e,t){return(0,J.ZP)(e).alpha(void 0===t?.5:1-t).rgbString()}function ea(e){return e===N.a.USER_ACCOUNT_CREATED?ee.Z.BLACK1:e===N.a.USER_ACCOUNT_VERIFIED?ee.Z.RED500:e===N.a.USER_PASSWORD_CHANGED?ee.Z.RED700:e===N.a.USER_FORGOT_PASSWORD_REQUESTED?ee.Z.RED900:e===N.a.USER_COMPLETE_FORGOT_PASSWORD?ee.Z.PINK500:e===N.a.USER_RESEND_VERIFICATION_CODE_REQUESTED?ee.Z.PINK700:e===N.a.USER_ACCEPTED_TERMS_AND_CONDITIONS?ee.Z.PINK900:e===N.a.USER_LOGGED_IN?ee.Z.PURPLE500:e===N.a.USER_ACCESS_TOKEN_REFRESHED?ee.Z.PURPLE700:e===N.a.USER_LOGGED_IN?ee.Z.PURPLE900:e===N.a.USER_LOGGED_OUT?ee.Z.DEEPPURPLE700:e===N.a.USER_OPT_OUT_PROCESSED?ee.Z.DEEPPURPLE900:e===S.t.PROFILE_DEMOGRAPHICS_UPDATED?ee.Z.BLUEGREYA400:e===S.t.PROFILE_CONTACT_EMAIL_UPDATED?ee.Z.INDIGO500:e===S.t.PROFILE_CONTACT_HOME_ADDRESS_UPDATED?ee.Z.INDIGO700:e===S.t.PROFILE_COLLEGE_RECRUITEMENT_IND_UPDATED?ee.Z.INDIGO900:e===S.t.PROFILE_PARENT_COLLEGE_COMPLETION_IND_UPDATED?ee.Z.INDIGOA700:e===S.t.PROFILE_ACTID_ASSIGNED?ee.Z.BLUE500:e===S.t.PROFILE_CREATED?ee.Z.BLUE700:e===S.t.PROFILE_ALL_FAV_OCCUPATIONS_UPDATED?ee.Z.BLUE900:e===S.t.PROFILE_FAV_OCCUPATION_REMOVED?ee.Z.CYAN900:e===S.t.PROFILE_FAV_OCCUPATION_ADDED?ee.Z.CYAN500:e===S.t.PROFILE_SOCIAL_BEHAVIOR_UPDATED?ee.Z.GREY600:e===S.t.PROFILE_COLLEGE_TYPES?ee.Z.TEAL500:e===S.t.PROFILE_COLLEGE_HOURS_FROM_HOME_UPDATED?ee.Z.TEAL700:e===S.t.PROFILE_COLLEGE_CAMPUS_POPULATION_SIZE_UPDATED?ee.Z.TEAL900:e===S.t.PROFILE_EXTRACURRICULAR_INTERESTS_UPDATED?ee.Z.TEALA400:e===S.t.PROFILE_COLLEGE_GEOGRAPHIC_SETTING_UPDATED?ee.Z.GREEN500:e===S.t.PROFILE_SCOIAL_CULTURAL_RELIGIOUS_AFFILIATION_UPDATED?ee.Z.GREEN700:e===S.t.PROFILE_COLLEGE_PREFERRED_STATES_UPDATED?ee.Z.GREEN900:e===S.t.PROFILE_PLANS_MILITARY_BRANCHES_UPDATED?ee.Z.LIGHTGREENA700:e===S.t.PROFILE_PLANS_MILITARY_INTERESTS_UPDATED?ee.Z.LIGHTGREENA400:e===S.t.PROFILE_CONSIDERING_MILITARY_OPTIONS_UPDATED?ee.Z.LIME500:e===S.t.PROFILE_HIGH_SCHOOL_ACADEMIC_RECORD_UPDATED?ee.Z.LIME900:e===S.t.PROFILE_HIGH_SCHOOL_ENROLLMENT_UPDATED?ee.Z.GREY500:e===S.t.PROFILE_HIGH_SCHOOL_ADVANCED_PROGRAMS_UPDATED?ee.Z.GREY800:e===S.t.PROFILE_COLLEGE_MINDSET_CARE_ABOUT_MOST_UPDATED?ee.Z.LIMEA100:e===S.t.PROFILE_COLLEGE_MINDSET_EXPERIENCES_TO_LEARN_MOST_FROM_UPDATED?ee.Z.YELLOW500:e===S.t.PROFILE_COLLEGE_MINDSET_EXPECTATIONS_FOR_EDUCATION_UPDATED?ee.Z.YELLOW700:e===S.t.PROFILE_ENCOURAGE_ONBOARDING_COMPLETE_UPDATED?ee.Z.BROWN700:e===x.D.PROFILE_MERGE_RECEIVED?ee.Z.BROWN900:e===x.D.PROFILE_MERGE_DELETED?ee.Z.AMBER300:e===x.D.PROFILE_MERGE_CLONED_DELETED?ee.Z.AMBER700:e===x.D.PROFILE_MERGE_CREATED?ee.Z.DEEPORANGE500:e===x.D.PROFILE_MERGE_COMPLETED?ee.Z.DEEPORANGE200:e===x.D.PROFILE_MERGE_NOACTION?ee.Z.BLUEGREY500:e===x.D.PROFILE_MERGE_ERRORED?ee.Z.DEEPORANGEA400:e===x.D.EVENT_PUBLISHED?ee.Z.DARKMEHROON:e===x.D.EVENT_ERROR?ee.Z.DARKBLUE:void 0}function er(){let e=(0,T.Z)(["\n query AuditEventCountsChartByDayQuery($input: AuditEventsInput!) {\n auditEventCountsByDay(input: $input) {\n date\n total\n clientCounts {\n client\n count\n eventType\n }\n }\n }\n"]);return er=function(){return e},e}function en(){let e=(0,T.Z)(["\n query AuditEventCountsChartByWeekQuery($input: AuditEventsInput!) {\n auditEventCountsByWeek(input: $input) {\n week\n year\n total\n clientCounts {\n client\n count\n eventType\n }\n }\n }\n"]);return en=function(){return e},e}function eo(){let e=(0,T.Z)(["\n query AuditEventCountsChartByMonthQuery($input: AuditEventsInput!) {\n auditEventCountsByMonth(input: $input) {\n month\n year\n total\n clientCounts {\n client\n count\n eventType\n }\n }\n }\n"]);return eo=function(){return e},e}function el(){let e=(0,T.Z)(["\n query AuditEventCountsChartByYearQuery($input: AuditEventsInput!) {\n auditEventCountsByYear(input: $input) {\n year\n total\n clientCounts {\n client\n count\n eventType\n }\n }\n }\n"]);return el=function(){return e},e}j.kL.register(j.uw,j.f$,j.ZL,j.od,j.jn,j.Dx,j.u,j.De,w.Z,j.FB,j.qi);let ei=(0,v.Ps)(er()),es=(0,v.Ps)(en()),eE=(0,v.Ps)(eo()),ed=(0,v.Ps)(el()),ec=e=>{var t;let a,l,i,s;let{fromDate:E,toDate:d,eventType:c,clientApp:_}=e,[D,g]=n.useState("Day"),[f,O]=n.useState("Bar"),[P]=n.useState({sortBy:"date",sortDirection:B.default.ASCENDING});c.length>0&&(c=c.filter((e,t)=>c.indexOf(e)===t));let I={fromDate:E,toDate:d,eventType:c,clientApp:_},L={fromDate:E,toDate:d,eventType:c},A=_.length>0?I:L,{data:T,error:v,loading:C}=(0,m.a)(ei,{fetchPolicy:"network-only",variables:{input:A}}),{data:G,error:Z,loading:U}=(0,m.a)(es,{fetchPolicy:"network-only",variables:{input:A}}),{data:F,error:M,loading:j}=(0,m.a)(eE,{fetchPolicy:"network-only",variables:{input:A}}),{data:Q,error:J,loading:ee}=(0,m.a)(ed,{fetchPolicy:"network-only",variables:{input:A}}),er=(0,o.cloneDeep)((0,o.get)(T,"auditEventCountsByDay")||[]),en=(0,o.cloneDeep)((0,o.get)(G,"auditEventCountsByWeek")||[]),eo=(0,o.cloneDeep)((0,o.get)(F,"auditEventCountsByMonth")||[]),el=(0,o.cloneDeep)((0,o.get)(Q,"auditEventCountsByYear")||[]);if(C||U||j||ee)return(0,r.jsx)(y.Loading,{});(null===(t=v||Z||M||J)||void 0===t?void 0:t.message)==="Unauthorized"&&(0,b.Z)();let ec=(a=0,er.forEach(e=>{a+=e.total}),a);er=er.sort((0,Y.DY)(P)),en=en.sort((0,Y.DY)(P)),eo=eo.sort((0,Y.DY)(P)),el=el.sort((0,Y.DY)(P));let eu=er.map(e=>h()(e.date).format("MM/DD/YYYY")),ep=(l=[],en.forEach(e=>{let t=1+(e.week?e.week-1:0)*7,a=new Date(e.year||0,0,t);l.push(a)}),l),eR=(i=[],eo.forEach(e=>{let t=e.month?e.month-1:0;i.push(new Date(e.year||0,t,1))}),i),e_=(s=[],el.forEach(e=>{var t;s.push(null===(t=e.year)||void 0===t?void 0:t.toString())}),s),eD={plugins:{datalabels:{anchor:"end",align:"top",formatter:(e,t)=>{let a=[];t.chart.data.datasets.forEach(e=>{void 0!==e.data[t.dataIndex]&&a.push(e.data[t.dataIndex])});let r=a.reduce(function(e,t){return e+t},0);return t.datasetIndex===a.length-1?r:""},font:{weight:"bold"},color:"rgba(0, 79, 143, 1)"},legend:{position:"top"},title:{display:!0,text:"Total Events: ".concat(ec)}},responsive:!0,scales:{x:{stacked:!0},y:{stacked:!0,grace:10}}},eg=[];c.forEach(e=>{let t=N.a[e]||S.t[e]||x.D[e];void 0!==t&&eg.push(t)}),eg=eg.filter((e,t)=>eg.indexOf(e)===t);let ef=ev(er,""),eO=ev(en,""),eP=ev(eo,""),eh=ev(el,""),eI=ev(er,"GroupedBar"),eL=ev(en,"GroupedBar"),eA=ev(eo,"GroupedBar"),eT=ev(el,"GroupedBar");function ev(e,t){let a=[];eg.forEach(t=>{let r=e.map(e=>{let a=e.clientCounts.sort((e,t)=>e.eventType.localeCompare(t.eventType)).filter(e=>t===e.eventType),r=0;return a.forEach(e=>{r+=e.count}),r>0?r:0});a.push(r)});let r=[],n=0;return"GroupedBar"!==t?eg.forEach(e=>{let t={label:e,data:a[n],backgroundColor:et(ea(e),0),borderColor:ea(e)};r.push(t),n++}):eg.forEach(e=>{let t={label:e,data:a[n],backgroundColor:et(ea(e),0),borderColor:ea(e),stack:e};r.push(t),n++}),r}let em={labels:eu,datasets:ef},eC={labels:ep,datasets:eO},ey={labels:eR,datasets:eP},eN={labels:e_,datasets:eh},eS=e=>{g(e.target.value)},ex=e=>{O(e.target.value)};return(0,r.jsx)("div",{children:ec>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(p.ZP,{container:!0,direction:"row",spacing:1,children:[(0,r.jsx)(p.ZP,{item:!0,xs:4,style:{display:"flex",justifyContent:"flex-start"},spacing:1,children:(0,r.jsxs)(H.Z,{children:[(0,r.jsx)(V.Z,{children:(0,r.jsx)(u.Z,{variant:"subtitle1",children:"Chart Type"})}),(0,r.jsxs)(K.Z,{row:!0,value:f,onChange:ex,children:[(0,r.jsx)(W.Z,{value:"Bar",control:(0,r.jsx)(q.Z,{}),label:"Stacked"}),(0,r.jsx)(W.Z,{value:"GroupedBar",control:(0,r.jsx)(q.Z,{}),label:"Group"}),(0,r.jsx)(W.Z,{value:"Line",control:(0,r.jsx)(q.Z,{}),label:"Line"})]})]})}),(0,r.jsx)(p.ZP,{item:!0,xs:.1,children:(0,r.jsx)($.Z,{orientation:"vertical",sx:{height:50}})}),(0,r.jsx)(p.ZP,{item:!0,xs:4,style:{display:"flex",justifyContent:"flex-start"},spacing:1,children:(0,r.jsxs)(H.Z,{children:[(0,r.jsx)(V.Z,{children:(0,r.jsx)(u.Z,{variant:"subtitle1",children:"View By"})}),(0,r.jsxs)(K.Z,{row:!0,value:D,onChange:eS,children:[(0,r.jsx)(W.Z,{value:"Day",control:(0,r.jsx)(q.Z,{}),label:"Day"}),(0,r.jsx)(W.Z,{value:"Week",control:(0,r.jsx)(q.Z,{}),label:"Week"}),(0,r.jsx)(W.Z,{value:"Month",control:(0,r.jsx)(q.Z,{}),label:"Month"}),(0,r.jsx)(W.Z,{value:"Year",control:(0,r.jsx)(q.Z,{}),label:"Year"})]})]})}),(0,r.jsx)(p.ZP,{item:!0,xs:3,style:{display:"flex",justifyContent:"flex-end"},children:(0,r.jsx)(R.Z,{color:"primary",onClick:()=>(0,z.B)("".concat(_),h()(E).format("MM/DD/YYYY"),h()(d).format("MM/DD/YYYY")),variant:"contained",children:"Download in PDF"})})]}),"Bar"===f?"Day"===D?(0,r.jsx)(k.$Q,{options:eD,data:em,plugins:[w.Z],className:"aigr-chart"}):"Week"===D?(0,r.jsx)(k.$Q,{options:X("week",ec,"Bar"),data:eC,plugins:[w.Z],className:"aigr-chart"}):"Month"===D?(0,r.jsx)(k.$Q,{options:X("month",ec,"Bar"),data:ey,plugins:[w.Z],className:"aigr-chart"}):"Year"===D?(0,r.jsx)(k.$Q,{options:X("year",ec,"Bar"),data:eN,plugins:[w.Z],className:"aigr-chart"}):(0,r.jsx)(r.Fragment,{}):(0,r.jsx)(r.Fragment,{}),"GroupedBar"===f?"Day"===D?(0,r.jsx)(k.$Q,{options:{plugins:{datalabels:{anchor:"end",align:"top",font:{weight:"bold"},color:"rgba(0, 79, 143, 1)"},legend:{position:"top"},title:{display:!0,text:"Total Events: ".concat(ec)}},responsive:!0,scales:{x:{stacked:!0},y:{stacked:!0,grace:10}}},data:{labels:eu,datasets:eI},plugins:[w.Z],className:"aigr-chart"}):"Week"===D?(0,r.jsx)(k.$Q,{options:X("week",ec,"GroupedBar"),data:{labels:ep,datasets:eL},plugins:[w.Z],className:"aigr-chart"}):"Month"===D?(0,r.jsx)(k.$Q,{options:X("month",ec,"GroupedBar"),data:{labels:eR,datasets:eA},plugins:[w.Z],className:"aigr-chart"}):"Year"===D?(0,r.jsx)(k.$Q,{options:X("year",ec,"GroupedBar"),data:{labels:e_,datasets:eT},plugins:[w.Z],className:"aigr-chart"}):(0,r.jsx)(r.Fragment,{}):(0,r.jsx)(r.Fragment,{}),"Line"===f?"Day"===D?(0,r.jsx)(k.x1,{options:eD,data:em,plugins:[w.Z],className:"aigr-chart"}):"Week"===D?(0,r.jsx)(k.x1,{options:X("week",ec,"Line"),data:eC,plugins:[w.Z],className:"aigr-chart"}):"Month"===D?(0,r.jsx)(k.x1,{options:X("month",ec,"Line"),data:ey,plugins:[w.Z],className:"aigr-chart"}):"Year"===D?(0,r.jsx)(k.x1,{options:X("year",ec,"Line"),data:eN,plugins:[w.Z],className:"aigr-chart"}):(0,r.jsx)(r.Fragment,{}):(0,r.jsx)(r.Fragment,{})]}):(0,r.jsx)(u.Z,{children:"Sorry, no matching records found"})})},eu=(0,o.flow)(I.C);var ep=eu(ec);let eR=e=>{let{fromDate:t,toDate:a,eventType:o,clientApp:l}=e,[i,s]=n.useState("chart"),E=(e,t)=>{null!==t&&s(t)},d=[];return o.forEach(e=>{if(Object.values(S.t).includes(e)){let t=Object.values(S.t).indexOf(e);d.push(Object.keys(S.t)[t])}if(Object.values(N.a).includes(e)){let t=Object.values(N.a).indexOf(e);d.push(Object.keys(N.a)[t])}if(Object.values(x.D).includes(e)){let t=Object.values(x.D).indexOf(e);d.push(Object.keys(x.D)[t])}}),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("br",{}),(0,r.jsxs)(L.Z,{color:"primary",value:i,exclusive:!0,onChange:E,children:[(0,r.jsx)(A.Z,{sx:{width:"110px",height:"25px"},value:"chart",children:"Chart View"}),(0,r.jsx)(A.Z,{sx:{width:"110px",height:"25px"},value:"table",children:"Table View"})]}),(0,r.jsx)(u.Z,{variant:"caption",children:"view options are independent"}),(0,r.jsx)("br",{}),i.includes("chart")?(0,r.jsx)(ep,{fromDate:t,toDate:a,eventType:d,clientApp:l}):(0,r.jsx)(M,{fromDate:t,toDate:a,eventType:d,clientApp:l})]})},e_=(0,o.flow)(I.C);var eD=e_(eR),eg=a(381337),ef=a(606181),eO=a(861249),eP=a(626407),eh=a.n(eP),eI=[{key:"account created",value:"user.account-created"},{key:"account verified",value:"user.account-verified"},{key:"password changed",value:"user.password-changed"},{key:"forgot password requested",value:"user.forgot-password-requested"},{key:"complete forgot password",value:"user.complete-forgot-password"},{key:"resend verification code requested",value:"user.resend-verification-code-requested"},{key:"accepted terms and conditions",value:"user.accepted-terms-and-conditions"},{key:"logged in",value:"user.logged-in"},{key:"access token refreshed",value:"user.access-token-refreshed"},{key:"logged out",value:"user.logged-out"},{key:"opt out processed",value:"user.opt-out-processed"}];let eL=e=>{let{multiple:t,onChange:a,value:l}=e,i=[];return eI.map(e=>i.push(e.value)),(0,r.jsx)(eO.Z,{getOptionLabel:e=>"".concat(e),isOptionEqualToValue:(e,t)=>e===t,limitTags:1,multiple:t,onChange:(e,t)=>{a(t)},options:i,renderInput:e=>{let{InputLabelProps:a,InputProps:n,...l}=e;return(0,r.jsx)(eg.Z,{InputLabelProps:(0,o.merge)(a,{shrink:!0}),InputProps:(0,o.merge)(n,{notched:!1}),label:"User Event(s)",placeholder:eh()("Event",t?2:1),...l})},renderTags:(e,t)=>e.map((e,a)=>(0,n.createElement)(ef.Z,{label:"".concat(e),size:"small",style:{fontSize:"unset"},variant:"outlined",...t({index:a}),key:"".concat(e)})),value:l})};eL.defaultProps={multiple:!1};var eA=[{key:"demographics updated",value:"profile.demographics-updated"},{key:"contact email updated",value:"profile.contact-email-updated"},{key:"contact home address updated",value:"profile.contact-home-address-updated"},{key:"college recruitment ind updated",value:"profile.college-recruitment-ind-updated"},{key:"parent college completion ind updated",value:"profile.parent-college-completion-ind-updated"},{key:"actid assigned",value:"profile.actid-assigned"},{key:"created",value:"profile.created"},{key:"all favorite occupations updated",value:"profile.all-favorite-occupations-updated"},{key:"favorite occupation removed",value:"profile.favorite-occupation-removed"},{key:"favorite occupation added",value:"profile.favorite-occupation-added"},{key:"college social behavior updated",value:"profile.college-social-behavior-updated"},{key:"college types",value:"profile.college-types"},{key:"college hours from home updated",value:"profile.college-hours-from-home-updated"},{key:"college campus population size updated",value:"profile.college-campus-population-size-updated"},{key:"extracurricular interests updated",value:"profile.extracurricular-interests-updated"},{key:"college geographic setting updated",value:"profile.college-geographic-setting-updated"},{key:"social cultural religious affiliation updated",value:"profile.social-cultural-religious-affiliation-updated"},{key:"college preferred states updated",value:"profile.college-preferred-states-updated"},{key:"plans military branches updated",value:"profile.plans-military-branches-updated"},{key:"plans military interests updated",value:"profile.plans-military-interests-updated"},{key:"considering military options updated",value:"profile.considering-military-options-updated"},{key:"high school academic record updated",value:"profile.high-school-academic-record-updated"},{key:"high school enrollment updated",value:"profile.high-school-enrollment-updated"},{key:"high school advanced programs updated",value:"profile.high-school-advanced-programs-updated"},{key:"college mindset care about most updated",value:"profile.college-mindset-care-about-most-updated"},{key:"college mindset experiences to learn most from updated",value:"profile.college-mindset-experiences-to-learn-most-from-updated"},{key:"college mindset expectations for education updated",value:"profile.college-mindset-expectations-for-education-updated"},{key:"encourage onboarding complete updated",value:"profile.encourage-onboarding-complete-updated"}];let eT=e=>{let{multiple:t,onChange:a,value:l}=e,i=[];return eA.map(e=>i.push(e.value)),(0,r.jsx)(eO.Z,{getOptionLabel:e=>"".concat(e),isOptionEqualToValue:(e,t)=>e===t,limitTags:1,multiple:t,onChange:(e,t)=>{a(t)},options:i,renderInput:e=>{let{InputLabelProps:a,InputProps:n,...l}=e;return(0,r.jsx)(eg.Z,{InputLabelProps:(0,o.merge)(a,{shrink:!0}),InputProps:(0,o.merge)(n,{notched:!1}),label:"Profile Event(s)",placeholder:eh()("Event",t?2:1),...l})},renderTags:(e,t)=>e.map((e,a)=>(0,n.createElement)(ef.Z,{label:"".concat(e),size:"small",style:{fontSize:"unset"},variant:"outlined",...t({index:a}),key:"".concat(e)})),value:l})};eT.defaultProps={multiple:!1};var ev=[{key:"merge received",value:"profile.merge-received"},{key:"merge deleted",value:"profile.merge-deleted"},{key:"merge cloned deleted",value:"profile.merge-cloned-deleted"},{key:"merge created",value:"profile.merge-created"},{key:"merge completed",value:"profile.merge-completed"},{key:"merge noaction",value:"profile.merge-noaction"},{key:"merge errored",value:"profile.merge-errored"},{key:"event published",value:"event.published"},{key:"event error",value:"event.error"}];let em=e=>{let{multiple:t,onChange:a,value:l}=e,i=[];return ev.map(e=>i.push(e.value)),(0,r.jsx)(eO.Z,{getOptionLabel:e=>"".concat(e),isOptionEqualToValue:(e,t)=>e===t,limitTags:1,multiple:t,onChange:(e,t)=>{a(t)},options:i,renderInput:e=>{let{InputLabelProps:a,InputProps:n,...l}=e;return(0,r.jsx)(eg.Z,{InputLabelProps:(0,o.merge)(a,{shrink:!0}),InputProps:(0,o.merge)(n,{notched:!1}),label:"Merge Event(s)",placeholder:eh()("Event",t?2:1),...l})},renderTags:(e,t)=>e.map((e,a)=>(0,n.createElement)(ef.Z,{label:"".concat(e),size:"small",style:{fontSize:"unset"},variant:"outlined",...t({index:a}),key:"".concat(e)})),value:l})};em.defaultProps={multiple:!1};var eC=a(832964),ey=[{key:"ENCOURAGE",value:"ENCOURAGE"},{key:"MYACT",value:"MYACT"},{key:"AIST",value:"AIST"},{key:"AIGR",value:"AIGR"}],eN=a(917553);let eS=e=>{let{multiple:t,onChange:a,value:l}=e,i=[];return ey.map(e=>i.push(e.value)),(0,r.jsx)(eO.Z,{getOptionLabel:e=>"".concat(e),isOptionEqualToValue:(e,t)=>e===t,limitTags:1,multiple:t,onChange:(e,t)=>{a(t)},options:i,renderInput:e=>{let{InputLabelProps:a,InputProps:n,...l}=e;return(0,r.jsx)(eg.Z,{InputLabelProps:(0,o.merge)(a,{shrink:!0}),InputProps:(0,o.merge)(n,{notched:!1}),label:(0,r.jsxs)("div",{children:["Client App(s)",(0,r.jsx)(eC.Z,{placement:"top",title:"optional",children:(0,r.jsx)(eN.Z,{fontSize:"small"})})]}),placeholder:eh()("ClientApp",t?2:1),...l})},renderTags:(e,t)=>e.map((e,a)=>(0,n.createElement)(ef.Z,{label:"".concat(e),size:"small",style:{fontSize:"unset"},variant:"outlined",...t({index:a}),key:"".concat(e)})),value:l})};eS.defaultProps={multiple:!1};let ex={userEventType:[],profileEventType:[],mergeEventType:[],clientApp:[]},eb=e=>{let{value:t}=e,[a,o]=n.useState(t),l={endDate:h()().format("YYYY-MM-DD"),startDate:h()().subtract(30,"days").format("YYYY-MM-DD"),showMetrics:!1,startDateChanged:!1,endDateChanged:!1},[i,s]=n.useState(l.startDate),[E,d]=n.useState(l.startDateChanged),[c,D]=n.useState(l.endDate),[g,f]=n.useState(l.endDateChanged),[P,I]=n.useState(l.showMetrics),L=()=>{s(l.startDate),d(l.startDateChanged),D(l.endDate),f(l.endDateChanged),I(!1),o({userEventType:[],profileEventType:[],mergeEventType:[],clientApp:[]})};n.useEffect(()=>{L()},[]);let A=async()=>{(E||g||a.userEventType.length>0||a.profileEventType.length>0||a.mergeEventType.length>0)&&I(!0)};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.Z,{variant:"caption",children:"(date range defaulted to last 30 days. Please choose different Dates and Type to run the metrics)"}),(0,r.jsxs)(O,{elevation:2,children:[(0,r.jsxs)(p.ZP,{container:!0,direction:"row",spacing:2,children:[(0,r.jsx)(p.ZP,{item:!0,sx:{width:"25%"},children:(0,r.jsx)(_.Z,{inputProps:{name:"startDate",onChange:e=>{s(e.target.value),d(!0),I(!1)},value:i},labelProps:{children:"Start Date*"}})}),(0,r.jsx)(p.ZP,{item:!0,sx:{width:"25%"},children:(0,r.jsx)(_.Z,{inputProps:{name:"endDate",onChange:e=>{D(e.target.value),f(!0),I(!1)},value:c},labelProps:{children:"End Date*"}})}),(0,r.jsx)(p.ZP,{item:!0,sx:{width:"25%"},children:(0,r.jsx)(eS,{multiple:!0,onChange:e=>{o(t=>({...t,clientApp:e})),I(!1)},value:a.clientApp})}),(0,r.jsxs)(p.ZP,{item:!0,sx:{width:"25%"},children:[(0,r.jsx)(p.ZP,{item:!0,children:"\xa0"}),(0,r.jsxs)(p.ZP,{item:!0,justifyContent:"center",display:"flex",children:[(0,r.jsx)(R.Z,{color:"primary",onClick:A,variant:"text",children:"Search"})," ","\xa0",(0,r.jsx)(R.Z,{color:"primary",onClick:()=>{L()},variant:"text",children:"Reset"})]})]})]}),(0,r.jsx)(p.ZP,{item:!0,mt:3,children:(0,r.jsxs)(p.ZP,{container:!0,spacing:2,children:[(0,r.jsx)(p.ZP,{item:!0,sx:{width:"33%"},children:(0,r.jsx)(eL,{multiple:!0,onChange:e=>{o(t=>({...t,userEventType:e})),I(!1)},value:a.userEventType})}),(0,r.jsx)(p.ZP,{item:!0,sx:{width:"33%"},children:(0,r.jsx)(eT,{multiple:!0,onChange:e=>{o(t=>({...t,profileEventType:e})),I(!1)},value:a.profileEventType})}),(0,r.jsx)(p.ZP,{item:!0,sx:{width:"33%"},children:(0,r.jsx)(em,{multiple:!0,onChange:e=>{o(t=>({...t,mergeEventType:e})),I(!1)},value:a.mergeEventType})})]})}),(0,r.jsx)(r.Fragment,{children:P?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("br",{}),(0,r.jsx)(p.ZP,{container:!0,direction:"column",spacing:2,style:{marginLeft:"-7px"},children:(0,r.jsx)(eD,{fromDate:h()(i).format("MM-DD-YYYY"),toDate:h()(c).format("MM-DD-YYYY"),eventType:a.userEventType.concat(a.profileEventType).concat(a.mergeEventType),clientApp:a.clientApp})})]}):(0,r.jsx)(r.Fragment,{})})]})]})};var eG=a(770309),eZ=a(429471);let eU=(0,D.ZP)(eG.Z)(e=>{let{theme:t}=e;return{["&.".concat(eZ.Z.root)]:{minHeight:"100%",padding:t.spacing(1)}}}),eF=()=>{let[e,t]=n.useState(ex);return(0,r.jsx)(eU,{children:(0,r.jsx)(eb,{onChange:e=>{t({...e})},value:e})})},eM=(0,o.flow)(c.Z);var ej=eM(eF),ek=a(856908);let eB=()=>(0,r.jsxs)(ek.Z,{acceptableRoles:[l.Z.AIGR_ADMIN],children:[(0,r.jsx)(ej,{}),(0,r.jsx)(d,{})]}),eY=(0,o.flow)(s.Z,(0,i.Z)());var ew=eY(eB)}}]);