1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4926,5363],{5146:()=>{},41237:(e,r,t)=>{"use strict";t.d(r,{Hf:()=>s,QF:()=>l});var a=t(14232),n=function(e,r){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t])})(e,r)};function i(e){var r,t,n,i,l,s,o,c,d=e.className,u=e.counterClockwise,h=e.dashRatio,g=e.pathRadius,p=e.strokeWidth,m=e.style;return(0,a.createElement)("path",{className:d,style:Object.assign({},m,(t=(r={pathRadius:g,dashRatio:h,counterClockwise:u}).counterClockwise,n=r.dashRatio,l=(1-n)*(i=2*Math.PI*r.pathRadius),{strokeDasharray:i+"px "+i+"px",strokeDashoffset:(t?-l:l)+"px"})),d:(o=(s={pathRadius:g,counterClockwise:u}).pathRadius,"\n M 50,50\n m 0,-"+o+"\n a "+o+","+o+" "+(c=+!!s.counterClockwise)+" 1 1 0,"+2*o+"\n a "+o+","+o+" "+c+" 1 1 0,-"+2*o+"\n "),strokeWidth:p,fillOpacity:0})}var l=function(e){function r(){this.constructor=t}function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r),t.prototype.getBackgroundPadding=function(){return this.props.background?this.props.backgroundPadding:0},t.prototype.getPathRadius=function(){return 50-this.props.strokeWidth/2-this.getBackgroundPadding()},t.prototype.getPathRatio=function(){var e=this.props,r=e.value,t=e.minValue,a=e.maxValue;return(Math.min(Math.max(r,t),a)-t)/(a-t)},t.prototype.render=function(){var e=this.props,r=e.circleRatio,t=e.className,n=e.classes,l=e.counterClockwise,s=e.styles,o=e.strokeWidth,c=e.text,d=this.getPathRadius(),u=this.getPathRatio();return(0,a.createElement)("svg",{className:n.root+" "+t,style:s.root,viewBox:"0 0 100 100","data-test-id":"CircularProgressbar"},this.props.background?(0,a.createElement)("circle",{className:n.background,style:s.background,cx:50,cy:50,r:50}):null,(0,a.createElement)(i,{className:n.trail,counterClockwise:l,dashRatio:r,pathRadius:d,strokeWidth:o,style:s.trail}),(0,a.createElement)(i,{className:n.path,counterClockwise:l,dashRatio:u*r,pathRadius:d,strokeWidth:o,style:s.path}),c?(0,a.createElement)("text",{className:n.text,style:s.text,x:50,y:50},c):null)},t.defaultProps={background:!1,backgroundPadding:0,circleRatio:1,classes:{root:"CircularProgressbar",trail:"CircularProgressbar-trail",path:"CircularProgressbar-path",text:"CircularProgressbar-text",background:"CircularProgressbar-background"},counterClockwise:!1,className:"",maxValue:100,minValue:0,strokeWidth:8,styles:{root:{},trail:{},path:{},text:{},background:{}},text:""},t}(a.Component);function s(e){var r=e.rotation,t=e.strokeLinecap,a=e.textColor,n=e.textSize,i=e.pathColor,l=e.pathTransition,s=e.pathTransitionDuration,c=e.trailColor,d=e.backgroundColor,u=null==r?void 0:"rotate("+r+"turn)",h=null==r?void 0:"center center";return{root:{},path:o({stroke:i,strokeLinecap:t,transform:u,transformOrigin:h,transition:l,transitionDuration:null==s?void 0:s+"s"}),trail:o({stroke:c,strokeLinecap:t,transform:u,transformOrigin:h}),text:o({fill:a,fontSize:n}),background:o({fill:d})}}function o(e){return Object.keys(e).forEach(function(r){null==e[r]&&delete e[r]}),e}},44492:e=>{e.exports={primaryColor:"#5f36d5",primaryColor500:"rgba(95,54,213,.2)",primaryColor50:"rgba(95,54,213,.04)",primaryColorBright:"#7e5ce0",colorOnPrimary:"#fff",colorOnPrimary500:"#5f36d5",secondaryColor:"rgba(0,103,252,.8)",secondaryColor500:"rgba(0,103,252,.1)",colorOnSecondary:"#fff",colorOnSecondary500:"rgba(0,103,252,.8)",gray:"#666",black:"#000",white:"#fff",backgroundColor:"#f9fafe",chipBackgroundColor:"rgba(221,241,239,.6)",linkColor:"#3676d5",fontFamily:'var(--font-lato),"Lato",sans-serif',montserratAlternatesFontFamily:'"Montserract Alternates",sans-serif',publicSans:'"Public Sans",sans-serif',neutral50:"#fdfdfe",neutral100:"#fbfafc",neutral200:"#f2f0f7",neutral300:"#e5e4eb",neutral400:"#cfcdd4",neutral500:"#b7b5bd",neutral600:"#86848a",neutral700:"#616066",neutral800:"#302f33",neutral900:"#18171a",spacing:"8px",skeletonColor:"#e6e6e6",lightBlueBackgroun
1d:"#f2f7ff",lightGreenBackground:"#fffbf3",lightYellowBackground:"#f3fdf9",successLightBg:"#e6f4ea",successDark:"#1e7e34",dangerColor:"#dc2626",dangerBgSoft:"#fee2e2",dangerTextStrong:"#991b1b",amberBgSoft:"#fef3c7",amberBorder:"#f59e0b",amberTextStrong:"#92400e",lineClamp:"credentials-reporting_lineClamp__qVcvi",filterBar:"credentials-reporting_filterBar__kDaR_",filterBarTopRow:"credentials-reporting_filterBarTopRow__Y20VP",savedSearchesRow:"credentials-reporting_savedSearchesRow__50sg6",savedSearchesLabel:"credentials-reporting_savedSearchesLabel__g_Kqh",savedSearchChip:"credentials-reporting_savedSearchChip__yeB4P",clearFilterText:"credentials-reporting_clearFilterText__LH8Lo",chipMenu:"credentials-reporting_chipMenu__s2pmj",menuPaper:"credentials-reporting_menuPaper__tsJ_w",menuItem:"credentials-reporting_menuItem__3dNZx",menuDivider:"credentials-reporting_menuDivider__c2f78",menuItemDanger:"credentials-reporting_menuItemDanger__WdqHK",menuIcon:"credentials-reporting_menuIcon__w8K6h",menuText:"credentials-reporting_menuText__8Dzwt",menuTextDanger:"credentials-reporting_menuTextDanger__FXtQc",deleteDialogContent:"credentials-reporting_deleteDialogContent__rMDAO",deleteDialogActions:"credentials-reporting_deleteDialogActions__ISv4q",deleteDialogBtn:"credentials-reporting_deleteDialogBtn__ht8JA"}},47621:e=>{e.exports={circularProgress:"progress-w-text_circularProgress__TCMQZ",pct:"progress-w-text_pct__HfHdB"}},52622:(e,r,t)=>{"use strict";t.d(r,{t:()=>o});var a=t(37876);t(14232);var n=t(47621),i=t.n(n),l=t(41237);t(5146);var s=t(17683);let o=({percentage:e,pathColor:r,trailColor:t,disabled:n,creditsLeft:o,previousCardDisable:c})=>(0,a.jsxs)("div",{className:i().circularProgress,children:[(0,a.jsx)(l.QF,{value:e,circleRatio:.75,styles:(0,l.Hf)({rotation:.875,strokeLinecap:"round",trailColor:t,pathColor:r})}),(0,a.jsxs)("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%) rotate(-360deg)",fontSize:"1.1rem",color:n||c?r:"black"},children:[e,"%"]}),(0,a.jsxs)("div",{style:{display:"flex",flexDirection:"column",position:"absolute",top:"92%",left:"50%",transform:"translate(-50%, -50%) rotate(-360deg)",textAlign:"center",width:"3rem"},children:[n||c?(0,a.jsx)("p",{style:{margin:0,fontSize:"0.6rem",color:r},children:c?o.toFixed(2):"N/A"}):null,(0,a.jsx)(s.A,{variant:"body2",style:{margin:0,fontSize:"0.6rem",color:n||c?r:"#616066"},children:100===e?"completed":"progress"})]})]})},81412:(e,r,t)=>{"use strict";t.r(r),t.d(r,{__N_SSP:()=>K,default:()=>Q});var a=t(37876),n=t(14232),i=t(25527),l=t(89896),s=t.n(l),o=t(44492),c=t.n(o),d=t(12095),u=t(94108),h=t(17683),g=t(42795),p=t(48274),m=t(84259),f=t(57520),x=t(57674),C=t(2491),y=t(40097),b=t(95932),_=t(21098),w=t(68873),N=t(95986),S=t(46842),v=t(25893),k=t(87584),j=t(4662),D=t(10841),R=t.n(D),A=t(26369),P=t(52622),O=t(42713),E=t(42135),T=t(56011),I=t(32812),B=t(50087),M=t(30367),q=t(99427),L=t(16568),F=t(96003),z=t(82951),U=t(45485),W=t(56573),G=t(7270);let $={firstName:"user.firstName",lastName:"user.lastName",endDate:"endDate",stateOrIssuingBody:"stateOrIssuingBodyRef.issuingBodyStateName",credentialNumber:"licenseNumber"},H=()=>{let e=(0,_.j)();(0,d.A)();let r=(0,_.G)(w.kE),t=(0,_.G)(w.cE),i=(0,_.G)(F._L),{isLoading:l,isRefetching:o,data:D}=(0,z.JI)({queryKeyExternal:[t.userUUID,i?.userUUID,t.orgConfig.refOrgUUID,t.userType]}),H=(0,N.Q)(S.y1.REQUIREMENTS,t?.orgConfig?.features),[V,K]=(0,n.useState)([{field:"endDate",sort:"desc"}]),[Q,Y]=(0,n.useState)([]),[J,X]=(0,n.useState)(1),[Z,ee]=(0,n.use
1State)(null),[er,et]=(0,n.useState)(""),[ea,en]=(0,n.useState)(10),[ei,el]=(0,n.useState)(!0),[es,eo]=(0,n.useState)(),[ec,ed]=(0,n.useState)(!1),[eu]=(0,E.Q3)(er,500),eh=(0,W.P)({orgId:Z?.id,reportType:"licenses",setFilters:Y,resetPage:()=>X(1)}),{data:eg}=(0,C.I)({queryKey:["credential","organization",Z?.id,"columns"],queryFn:()=>Z?.id?x.nC.get(`credential/organization/${Z?.id}/columns`):Promise.resolve([]),enabled:!!Z?.id,staleTime:216e5}),ep=(0,n.useMemo)(()=>(eg??[]).map(e=>({name:e.name,value:e.value,dataType:e.dataType,queryParam:e.queryParam})),[eg]),em=(0,n.useMemo)(()=>(eg??[]).reduce((e,r)=>({...e,[r.value]:r.allowedOperators.map(e=>k.C.create(e))}),{}),[eg]),ef=(0,n.useMemo)(()=>({logicalOperator:"AND",columnAttributeSelected:eg?.[0]?.value??"user.firstName",operator:k.C.EQ,value:"",dataType:"SCALAR"}),[eg]),{data:ex,isLoading:eC,isRefetching:ey}=(0,C.I)({queryKey:[N.Bz.CREDENTIALS_REPORTING,Z?.id,J,JSON.stringify(Q),eu,V,ea],queryFn:e=>{let r=(0,L.pn)(e.queryKey,3);return(({queryKey:e,searchCriteria:r,pageSize:t})=>{let[a,n,i,l,s,o]=e;if(!n)return new Promise(e=>e({}));let c={page:i,pageSize:t};if(o&&o.length>0){let e=o[0].field,r=o[0].sort;c.sortBy=$[e],c.direction="asc"===r?"ASC":"desc"===r?"DESC":null}return r&&(c.search=r),s&&(c.query=s),x.nC.get(`credential/organization/${n}/all`,{queryParams:c})})({queryKey:e.queryKey,searchCriteria:r,pageSize:ea})},enabled:!!Z,staleTime:6e5,placeholderData:e=>e});(0,n.useEffect)(()=>{ex&&ei&&el(!1)},[ex,ei]),(0,n.useEffect)(()=>{Z?.id!==es&&(el(!0),eo(Z?.id))},[Z?.id,es]);let{mutate:eb}=(0,y.n)({mutationFn:({organizationId:e,search:r,query:t,sortModel:a})=>{let n={},i=(0,L.pn)([r],0);if(i&&(n.search=i),t&&(n.query=t),a&&a.length>0){let e=a[0].field,r=a[0].sort;n.sortBy=$[e],n.direction="asc"===r?"ASC":"desc"===r?"DESC":null}return x.nC.post(`credential/organization/${e}/generate-report`,{queryParams:n,shouldUseParamsSerializer:!0})},onSuccess:e=>{e?(0,q.M8)("Request Submitted. You will soon receive an email with requested report",{variant:"snackbarWithTitle",title:"Requested"}):(0,q.M8)("An error occurred while requesting for report",{variant:"snackbarWithTitle",title:"Please try again later"})},onError:()=>{(0,q.M8)("An error occurred while requesting for report",{variant:"snackbarWithTitle",title:"Please try again later"})}}),e_=(0,n.useMemo)(()=>[{field:"firstName",headerName:"First Name",width:150,headerAlign:"center",align:"center",sortable:!0,renderCell:e=>(0,a.jsxs)("span",{className:"MuiDataGrid-cellContent lineClamp",children:[" ",e.value]})},{field:"lastName",headerName:"Last Name",width:150,headerAlign:"center",align:"center",sortable:!0,renderCell:e=>(0,a.jsxs)("span",{className:"MuiDataGrid-cellContent lineClamp",children:[" ",e.value]})},{field:"endDate",headerName:"Renewal Date",width:180,headerAlign:"center",align:"center",sortable:!0,renderCell:e=>(0,a.jsx)("span",{className:"MuiDataGrid-cellContent lineClamp",children:e.value?R()(e.value).format("MMMM DD, YYYY"):null})},{field:"percentageCompleted",headerName:`${Z?.ceLanguageShort??Z?.ceLanguageLong} Completion %`,width:150,headerAlign:"center",align:"center",sortable:!1,renderCell:e=>{if(e.row.showInReqs)return(0,a.jsx)(P.t,{percentage:Math.min(Number(e.row.percentageCompleted?.toFixed(1))??0,e.row.compliant?100:99.9),pathColor:(0,N.hD)(e.row.percentageCompleted??0),trailColor:(0,N.G8)(e.row.percentageCompleted??0,0),disabled:!1,creditsLeft:0});let r="Not Applicable";return(0,a.jsx)(u.A,{title:r,children:(0,a.jsx)("p",{className:`${s().branchUnit} lineClamp`,children:r})})}},{field:"licenseDefinitionName",headerName:"Credential Name",width:250,headerAlign:"center",align:"center",sortable:!1,renderCell:e=>e.row.showInReqs?(0,a.jsx)(u.A,{title:e.row.licenseDefinitionName,style:{minWidth:"100%",textAlign:"center"},children:(0,a.jsx)("p",{className:`${s().title} lineClamp`,children:e.row.licenseNameShort??e.row.licenseDefinitionName})}):null},{field:"stateOrIssuingBody",headerName:"State / Body",width:130,headerAlign:"center",align:"center",sortable:!0,renderCell:e=>(0,a.jsxs)("span",{className:"MuiDataGrid-cellContent lineClamp",children:[" ",e.value]})},{field:"compliant",headerName:`${Z?.ceLanguageShort} Compliant`,width:130,headerAlign:"center",align:"center",sortable:!1,renderCell:e=>{if(e.row.showInReqs)return(0,a.jsx)("span",{className:"MuiDataGrid-cellContent lineClamp",children:e.row.compliant?(0,a.jsx)(T.czF,{color:"green",fontSize:24}):(0,a.jsx)(I.cAB,{color:"red",fontSize:24})});let r="Not Applicable";return(0,a.jsx)(u.A,{title:r,children:(0,a.jsx)("p",{className:`${s().branchUnit} lineClamp`,children:r})})}},{field:"credentialNumber",headerName:"Credential Number",width:200,headerAlign:"center",align:"center",sortable:!0,renderCell:e=>(0,a.jsxs)("span",{className:"MuiDataGrid-cellContent lineClamp",children:[" ",e.value]})},{field:"topicsCreditsDetails",headerName:"Remaining Requirements",width:200,headerAlign:"center",align:"center",sortable:!1,renderCell:e=>(0,a.jsx)(u.A,{title:(0,a.jsx)("span",{style:{lineHeight:"1.7rem",textAlign:"center",whiteSpace:"pre-line"},dangerouslySetInnerHTML:{__html:e.row.topicsCreditsDetails}}),children:(0,a.jsx)("span",{className:`${s().title} lineClamp`,children:e.row.topicsCreditsDetails})})},{field:"branchUnits",headerName:"Branch / Unit",flex:3,minWidth:200,headerAlign:"center",align:"center",sortable:!1,renderCell:e=>{let r=e.row.branchUnits?.map(e=>e.branchName).join(", ");return r&&r?.length>0?(0,a.jsx)(u.A,{title:r,children:(0,a.jsx)("p",{className:`${s().branchUnit} lineClamp`,children:r})}):null}},{field:"action",headerName:"View",width:150,headerAlign:"center",align:"center",renderCell:e=>e.row.showInReqs?(0,a.jsx)(v.Q,{buttonText:H?"View Status":"View / Edit",color:"primaryVariant500",onClick:()=>{window.open(H?"/requirements?credentialId="+e.row.credentialId:"/manage-credentials?licenseId="+e.row.credentialId,"_blank")},fullWidth:!0}
1):null,sortable:!1}],[Z?.ceLanguageShort,Z?.ceLanguageLong,H]);return(0,n.useEffect)(()=>{null==Z&&r.id&&ee(r),Z&&e((0,w.OV)(Z))},[D,r,Z,e]),(0,a.jsxs)("div",{className:"flex-container column",style:{width:"100%"},children:[(0,a.jsx)("div",{style:{width:"100%",marginBottom:"1.5rem"},className:"flex-container center",children:(D??[]).length>1&&("superadmin"===t.userType||"orgadmin"===t.userType)?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h.A,{variant:"h1",sx:{mr:5},children:"Report's Organization"}),(0,a.jsx)(O.sH,{name:"allOrgs",options:D??[],getOptionLabel:e=>e.orgNameLong,value:Z,id:"allOrgs",labelKey:"id",disableClearable:!0,disabled:eC||ey||l||o,onChange:e=>ee(e),sx:{width:400},fuseOptions:{threshold:.2,ignoreLocation:!0,findAllMatches:!0,includeScore:!0,keys:[{name:"orgNameShort",weight:.8},{name:"orgNameLong",weight:.2}]}})]}):null}),(0,a.jsxs)("div",{className:`flex-container column fullwidth ${s().mainContainer}`,children:[(0,a.jsxs)("div",{className:"flex-container space-between fullwidth",children:[(0,a.jsxs)("div",{className:`flex-container column ${s().textContainer}`,children:[(0,a.jsx)(h.A,{className:s().header,children:"Credentials"}),(0,a.jsx)(h.A,{className:s().description,children:"Provides insights into user's credentials"})]}),(0,a.jsxs)("div",{className:"flex-container",style:{gap:"0.5rem",alignSelf:"end",marginBottom:"1rem"},children:[(0,a.jsx)(g.A,{onClick:()=>ed(!0),variant:"outlined",children:"Reports"}),(0,a.jsx)(g.A,{onClick:()=>{(0,N.Dt)(N.HG.REPORT_EXPORT_REQUESTED,t.userProfile?.emailAddress,{report_type:"licenses"}),eb({organizationId:Z?.id,search:JSON.stringify(Q),query:er,sortModel:V})},variant:"contained",startIcon:(0,a.jsx)(B.r5h,{}),children:"Export Report"})]})]}),(0,a.jsx)(G.r,{...eh,styles:c()}),(0,a.jsx)("div",{className:s().contentBox,children:eC&&ei?(0,a.jsx)(b.N,{variant:"rounded",width:"100%",height:600}):(0,a.jsxs)("div",{className:"fullwidth flex-container column",children:[(0,a.jsx)("div",{className:c().filterBar,children:(0,a.jsxs)("div",{className:c().filterBarTopRow,children:[(0,a.jsx)(p.A,{value:er,onChange:e=>et(e.target.value),sx:{flex:1,maxWidth:"300px",minWidth:"200px"},placeholder:"Search",size:"small"}),(0,a.jsx)(m.A,{onClick:eh.handleOpenDrawer,sx:{border:"1px solid rgba(0, 0, 0, 0.12)",borderRadius:"8px"},children:(0,a.jsx)(M.mB0,{size:20})}),(0,a.jsx)(j.a,{open:eh.filterDrawerOpen,onClose:eh.handleDrawerClose,onApply:eh.handleApplyFilters,columnOptions:ep,operatorsForColumns:em,defaultFilter:ef,initialFilters:eh.editFilters??(Q.length>0?Q:void 0),onSaveSearch:eh.handleSaveSearch,isSaving:eh.isSaving,title:eh.drawerTitle,editSearchId:eh.editSearchId,editSearchName:eh.editSearchName,organization:Z})]})}),(0,a.jsx)("div",{className:"flex-container column",style:{minHeight:ex?.content.length===0?"100%":"auto",height:ex?.content.length===0?"70dvh":"auto"},children:(0,a.jsx)(f.O,{borderRadius:"0 0 8px 8px",columns:e_,data:ex?.content??[],getRowId:e=>e.credentialId,slots:{noRowsOverlay:A.L},fetchDataForPage:e=>X(e),paginationProps:{count:ex?.totalElements||0,page:J},paginationMode:"server",sortingMode:"server",sortModel:V,onSortModelChange:e=>K(e),isLoading:ey,pageSize:ea,onPageSizeChange:e=>{en(e),X(1)}})})]})})]}),(0,a.jsx)(U.u,{isOpen:ec,onClose:()=>ed(!1),organizationId:Z?.id,reportType:"licenses",currentFiltersSnapshot:{searchCriteria:(0,L.pn)([JSON.stringify(Q)],0)||null,queryString:er,sortBy:V[0]?.field?$[V[0].field]??null:null,sortDirection:V[0]?.sort?"asc"===V[0].sort?"ASC":"DESC":null}})]})},V=e=>{let{recordCEUrl:r,userId:t,token:i,userUUID:l,userOnboarding:s,refresh:o,orgConfig:c,userType:d,permissions:u,userProfile:h,userFlags:g,hasPassword:p,hasPasskey:m,sessionId:f,ceReportingEnabled:x,infoRequestFormPending:C}=e,y=(0,_.j)(),b=(0,_.G)(F._L);return(0,n.useEffect)(()=>{i&&o&&t&&l&&(b?.userUUID===l&&y((0,F.EG)(null)),y((0,w.XO)({tokens:{accessToken:i.toString(),refreshToken:o.toString()},config:{recordCEUrl:r,userUUID:l,userOnboarding:s,orgConfig:c,userType:d,permissions:u,userProfile:h,userFlags:g,hasPassword:p,hasPasskey:m,sessionId:f,ceReportingEnabled:x,infoRequestFormPending:C},userId:t})))},[i,o,t,l,h]),(0,a.jsx)(H,{})};V.getLayout=e=>(0,a.jsx)(i.A,{children:e});var K=!0;let Q=V},84188:(e,r,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/reports/credentials",function(){return t(81412)}])}},e=>{e.O(0,[2517,1439,3578,6216,6059,2135,8045,5686,7520,994,6135,636,6593,8792],()=>e(e.s=84188)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.