PageSourceSearch

https://assets.myceapp.com/_next/static/chunks/4163-162c37ddd4bca840.js

js myceapp.com collected 2026-10-05 02:25:10 UTC 57,549 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4163],{24163:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>e9,paperProps:()=>e5});var a=r(37876),n=r(14232),l=r(12095),o=r(54850),s=r(17683),i=r(94108),c=r(25501),d=r(97771),u=r(22828),m=r(21098),p=r(68873),f=r(12055),g=r(42862),_=r.n(g),h=r(50153),C=r(18847),x=r.n(C),y=r(95932),b=r(57335),D=r.n(b),E=r(87276),A=r(91313),N=r(76659),I=r(59429),S=r(73193),v=r(12753),T=r(40066),j=r(10841),k=r.n(j),O=r(28928),w=r(95527),U=r(36904),B=r(25893),P=r(69129),F=r(79047);let L=({selectedFilterValue:e,setSelectedFilterValue:t,isReqsPresent:r})=>{let l=(0,m.j)(),o=(0,m.G)(P.fD),i=(0,m.G)(P.Uj),c=(0,m.G)(F.aI),d=(0,m.G)(P.Gb),[u,p]=(0,n.useState)("startDate"),f=()=>{"DATE_PICKER"===i.componentMounted?(l((0,P.u3)("DEFAULT")),t(r?"currentCycle":"allTime"),"currentCycle"!==e&&r?l((0,P.n_)({startDate:null,endDate:null,thisCycleFilter:!0})):l((0,P.n_)({startDate:null,endDate:null,thisCycleFilter:null}))):l((0,P.Wk)(!1))},g=(0,n.useMemo)(()=>{let e=[{optionValue:"allTime",optionName:"All time",onClick:e=>{t("allTime"),l((0,P.n_)({startDate:null,endDate:null,thisCycleFilter:null})),l((0,P.Wk)(!1))}},{optionValue:"last12Months",optionName:"Last 12 months",onClick:e=>{t("last12Months"),l((0,P.n_)({startDate:k()().subtract("12","months").format(I.dateFormatFilter),endDate:k()().format(I.dateFormatFilter),thisCycleFilter:null})),l((0,P.Wk)(!1))}},{optionValue:"last24Months",optionName:"Last 24 months",onClick:e=>{t("last24Months"),l((0,P.n_)({startDate:k()().subtract("24","months").format(I.dateFormatFilter),endDate:k()().format(I.dateFormatFilter),thisCycleFilter:null})),l((0,P.Wk)(!1))}},{optionValue:"currentCycle",optionName:"This cycle only",MenuItemLabel:()=>(0,a.jsxs)("div",{className:`flex-container row space-between ${D().radioOptionTypography}`,children:["This cycle only",(0,a.jsx)(w.A,{fontSize:"medium",color:"secondary",onClick:e=>{e.preventDefault(),e.stopPropagation(),l((0,P.Wk)(!1)),l((0,U.qf)({isOpen:!0,modalName:"THIS_CYCLE_CE_FILTER"}))}})]}),onClick:()=>{t("currentCycle"),l((0,P.Wk)(!1)),l((0,P.n_)({thisCycleFilter:!0,startDate:null,endDate:null}))}},{optionValue:"customDateRange",optionName:"Custom date range",onClick:()=>{t("customDateRange"),l((0,P.u3)("DATE_PICKER"))}}];return c.length>0&&d>0&&!r&&e.splice(3,1),e},[r,c,d,l,t]);return(0,a.jsx)(O.X,{onDismiss:()=>f(),header:(0,a.jsxs)("div",{className:`flex-container row space-between ${D().container}`,children:[(0,a.jsx)("span",{className:D().emptySpan}),(0,a.jsx)(s.A,{sx:{fontWeight:700,fontSize:20},children:"Filters"}),(0,a.jsx)(A.A,{onClick:()=>f(),className:D().iconBackground,fontSize:"medium"})]}),open:i.isOpen,children:(0,a.jsx)("div",{className:D().bottomSheetContainer,children:"DEFAULT"===i.componentMounted?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(N.v,{radioOptions:g,label:"Date Filters",value:e,onChangeHandler:e=>{t(e.target.value)},name:"dateFilter",radioColor:"secondary"}),e===g[g.length-1].optionValue?(0,a.jsxs)(s.A,{sx:{fontWeight:"bold",textAlign:"center"},children:[k()(new Date(o.startDate)).format(I.FULL_DATE_VIEW),"\xa0-\xa0",k()(new Date(o.endDate)).format(I.FULL_DATE_VIEW),(0,a.jsx)(S.SG1,{fontSize:18,style:{marginLeft:"10px"},onClick:()=>{l((0,P.u3)("DATE_PICKER"))}})]}):null]}):"DATE_PICKER"===i.componentMounted?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex-container row space-between",children:[(0,a.jsx)(v.LH,{name:"startDate",focused:"startDate"===u,onFocus:e=>{p("startDate")},color:"secondary",label:"Start Date",value:k()(new Date(o.startDate)).format(I.VIEW_DATE_FORMAT),isReadOnly:!0}),(0,a.jsx)(v.LH,{name:"endDate",focused:"endDate"===u,onFocus:e=>{p("endDate")},color:"secondary",label:"End Date",value:k()(new Date(o.endDate)).format(I.VIEW_DATE_FORMAT),isReadOnly:!0})]}),(0,a.jsx)(T.$,{className:D().staticDatePickerStyles,showDaysOutsideCurrentMonth:!0,views:["year","month","day"],value:"startDate"===u?k()(new Date(o.startDate)):k()(new Date(o.endDate)),displayStaticWrapperAs:"mobile",onChange:e=>{l((0,P.N)({...o,[u]:e?.toDate().getTime()}))},minDate:I.MIN_START_DATE,slots:{actionBar:()=>(0,a.jsxs)(E.A,{style:{justifyContent:"space-between"},children:[(0,a.jsx)(B.Q,{style:{borderRadius:"10px"},onClick:()=>
1{if(l((0,P.u3)("DEFAULT")),r){t("currentCycle"),l((0,P.n_)({startDate:null,endDate:null,thisCycleFilter:!0}));return}l((0,P.n_)({startDate:null,endDate:null,thisCycleFilter:null}))},buttonText:"Back",color:"secondaryVariant500"}),(0,a.jsx)(B.Q,{style:{borderRadius:"10px"},onClick:()=>{"startDate"===u?p("endDate"):(l((0,P.n_)({startDate:k()(new Date(o.startDate)).format(I.dateFormatFilter),endDate:k()(new Date(o.endDate)).format(I.dateFormatFilter),thisCycleFilter:null})),l((0,P.Wi)({isOpen:!1,componentMounted:"DEFAULT"})))},buttonText:"Done",color:"secondary"})]})}})]}):null})})};var R=r(91840),q=r(51017),G=r(18199),M=r(20661),$=r(3913),W=r(89099),H=r(90879),V=r(94953),z=r(95986),Y=r(46842),Q=r(65040),K=r(35662),Z=r(88992),J=r(71090),X=r(91408),ee=r(51461),et=r(57674),er=r(14328),ea=r(99427),en=r(54004),el=r(67376),eo=r.n(el),es=r(29774),ei=r.n(es);let ec=(0,X.Ik)({courseName:(0,X.Yj)().required("Course name is required"),creditHours:(0,X.ai)().typeError("Hours must be a number").min(.001,"Hours must be greater than 0").required("Hours are required"),dateAttended:(0,X.Yj)().transform(z.tF).required("Date is required")}),ed=({lic:e,ceUnit:t,showTitle:r,details:l})=>{let o=((e,t)=>{if(!e||t)return{color:"#6b7280",label:"",barColor:""};let r=k()(e).diff(k()(),"days");return r<0?{color:"#d32f2f",label:"Overdue",barColor:"#d32f2f",days:r,pulse:!0}:r<=6?{color:"#d32f2f",label:`${r}d left — urgent`,barColor:"#d32f2f",days:r,pulse:!1}:r<=29?{color:"#e65100",label:`${r} days — act soon`,barColor:"#e65100",days:r,pulse:!1}:r<=89?{color:"#f9a825",label:`${r} days remaining`,barColor:"#f9a825",days:r,pulse:!1}:{color:"#2e7d32",label:`${r} days remaining`,barColor:"#2e7d32",days:r,pulse:!1}})(e.licenseDue,e.invalidLicenseDueDate),i=((e,t,r)=>{if(void 0===r)return null;if(0===e)return"You're starting fresh — log your first CE to get ahead";let a=e/t;return r<30&&a<.5?"You're behind schedule — now's the time to catch up":a>=1?"You're all caught up!":a>=.75?"Almost there — just a few more to go":null})(e.hoursCompleted,e.hoursRequired,o.days),c=((e,t=1e3)=>{let[r,a]=(0,n.useState)(0);return(0,n.useEffect)(()=>{if(0===e)return;a(0);let r=Math.min(e,60),n=0,l=setInterval(()=>{a(Math.round((1-Math.pow(1-++n/r,3))*e)),n>=r&&(clearInterval(l),a(e))},t/r);return()=>clearInterval(l)},[e,t]),r})(e.hoursRequired);return(0,a.jsxs)("div",{className:ei().progressSection,children:[r?(0,a.jsxs)(s.A,{className:ei().reqLicenseTitle,children:[e.stateShort??e.state," ",e.credentialName]}):null,(0,a.jsxs)("div",{className:`flex-container space-between ${ei().progressLabel}`,children:[(0,a.jsxs)(s.A,{className:ei().hoursText,children:[e.hoursCompleted," / ",c," ",t]}),e.licenseDue&&!e.invalidLicenseDueDate?(0,a.jsxs)("div",{className:`flex-container column-center ${ei().deadlineGroup}`,children:[(0,a.jsxs)(s.A,{className:ei().dueDate,children:["Due ",k()(e.licenseDue).format("MMM D, YYYY")]}),(0,a.jsx)(s.A,{className:`${ei().countdown} ${o.pulse?ei().countdownPulse:""}`,style:{color:o.color},children:o.label})]}):null]}),(0,a.jsx)("div",{className:ei().progressBar,children:(0,a.jsx)("div",{className:ei().progressFill,style:{width:`${Math.min(100,e.percentageCompleted)}%`,backgroundColor:o.barColor||void 0}})}),e.hoursRemaining>0?(0,a.jsxs)(s.A,{className:ei().remainingText,children:[c," ",t," remaining"]}):null,i?(0,a.jsx)(s.A,{className:ei().urgencyMessage,style:{color:o.color},children:i}):null,l.length>0?(0,a.jsx)("div",{className:ei().reqBreakdown,children:l.map((e,t)=>{let r=e.reqString?e.reqString:eo()((0,en.Bp)(e),{allowedTags:[],allowedAttributes:{}}),n=e.remainingCreditHours<=0;return(0,a.jsxs)(G.P.div,{className:`flex-container column-center ${ei().reqBreakdownRow}`,initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.3,delay:.15*t,ease:"easeOut"},children:[(0,a.jsx)("div",{className:`${ei().reqCircle} ${n?ei().reqCircleDone:""}`,children:n?(0,a.jsx)(S.YrT,{size:12}):null}),(0,a.jsxs)("div",{className:`flex-container space-between column-center ${ei().reqRowContent}`,children:[(0,a.jsxs)(s.A,{className:ei().reqBreakdownLabel,children:[e.reqCreditHours>0?`${e.reqCreditHours} `:"",r]}),(0,a.jsx)(s.A,{className:`${ei().reqBreakdownStatus} ${n?ei().reqComplete:""}`,children:n?"Complete":`${e.completedCreditHours}/${e.reqCreditHours}`})]})]},e.reqId)})}):null]})},eu={maxWidth:80,minHeight:50,alignItems:"center",justifyContent:"start",ga
1p:8},em=(e,t)=>(0,ea.M8)({variant:"actionResultSnackbar",title:e,autoHideDuration:"SUCCESS"===t?5e3:4e3,action:t,style:eu}),ep=()=>{let e=(0,m.j)(),t=(0,W.useRouter)(),r=(0,m.G)(p.cE),l=(0,M.Mo)(),o=(0,m.G)(p.kE),i=(0,m.G)(F.aI),d=(0,m.G)(P.Pc),u=(0,m.G)(U.qy),f=(0,m.G)($.xL),g=r.userProfile?.emailAddress,_=(0,z.Q)(Y.y1.CERTIFICATE_OCR,r?.orgConfig?.features??[]),{allowed:h,isLoading:C,hasResponded:x}=(0,V.N)(),[y,b]=(0,n.useState)([]),[D,E]=(0,n.useState)(!0),[A,N]=(0,n.useState)(!1),[I,T]=(0,n.useState)(!1),[j,O]=(0,n.useState)(0),[w,L]=(0,n.useState)(!1),[R,X]=(0,n.useState)({}),ea=(0,n.useRef)(null),{control:en,handleSubmit:el,reset:eo}=(0,Z.mN)({defaultValues:{courseName:"",creditHours:"",dateAttended:""},resolver:(0,J.t)(ec)}),es=(0,n.useCallback)((t,a)=>{if(0===t.length||!r.userUUID)return;let n=new FormData;t.forEach(e=>n.append("files",e)),(0,z.Dt)(z.HG.UPLOADING_A_CERTIFICATE,g),(0,z.Dt)(z.HG.COMPLIANCE_PLAN_UPLOAD_STARTED,g,{runOcr:a,fileType:t[0]?.type||"unknown"}),O(5);let l={id:0};et.nC.post(`ce-list/user/${r.userUUID}/ce/save`,{headers:{"Content-Type":"multipart/form-data"},formData:n,onUploadProgress:e=>{let t=e.progress??0;O(Math.round(70*t)),t>=1&&!l.id&&(l.id=setInterval(()=>{O(e=>e<95?e+2:e)},200))}}).then(t=>{clearInterval(l.id),O(0),L(!0),(0,z.Dt)(z.HG.UPLOADED_A_CERTIFICATE,g),(0,z.Dt)(z.HG.COMPLIANCE_PLAN_UPLOAD_COMPLETED,g,{runOcr:a});let n=t[0];n?.ceId&&(a&&et.nC.post(`ce-list/user/${r.userUUID}/ce/${n.ceId}/extract-fields`,{doNotShowError:!0}).catch(()=>{}),e((0,U.u)({ceId:n.ceId,userId:r.userUUID,fileName:n.originalFileName??"Certificate",status:a?"processing":"completed",fileAttachments:t})),a||e((0,U.qf)({modalName:"ADD_CE",isOpen:!0,initialStep:"FORM",ocrCeId:n.ceId})))}).catch(()=>{clearInterval(l.id),O(0),(0,z.Dt)(z.HG.COMPLIANCE_PLAN_UPLOAD_FAILED,g,{runOcr:a}),em("Upload failed","DELETE")})},[r.userUUID,g,e]),eu=(0,n.useCallback)(t=>{if(0===t.length)return;let r=t.some(e=>e.name.toLowerCase().endsWith(".pdf")||e.type.includes("pdf"));if(r&&_&&!C&&!x){ea.current=t,(0,z.Dt)(z.HG.COMPLIANCE_PLAN_AI_CONSENT_TRIGGERED,g),e((0,U.qf)({modalName:"AI_TERMS",isOpen:!0}));return}es(t,r&&_&&h)},[es,_,h,C,x,e]);(0,n.useEffect)(()=>{if(!ea.current||!x||C)return;let e=ea.current;ea.current=null,es(e,h)},[x,C,h,es,e]),(0,n.useEffect)(()=>{w&&0===u.length&&L(!1)},[u,w]);let{getRootProps:ep,getInputProps:ef,isDragActive:eg}=(0,K.VB)({onDrop:eu,onDropRejected:e=>{let t=e[0]?.errors[0]?.code;(0,z.Dt)(z.HG.COMPLIANCE_PLAN_FILE_REJECTED,g,{rejection_code:t,file_count:e.length}),em("too-many-files"===t?"Please upload one file at a time":"file-too-large"===t?"File is too large (max 10 MB)":"file-invalid-type"===t?"Unsupported file type — use PDF, image, or DOCX":"File could not be uploaded","DELETE")},accept:{"application/pdf":[".pdf"],"image/*":[".png",".jpg",".jpeg"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":[".docx"]},multiple:!1,maxSize:0xa00000,disabled:j>0||w});(0,n.useEffect)(()=>{r.userUUID&&et.nC.get(`requirements/licenses/${r.userUUID}`,{doNotShowError:!0}).then(e=>{Array.isArray(e)&&b(e)}).catch(()=>{}).finally(()=>E(!1))},[r.userUUID]),(0,n.useEffect)(()=>{r.userUUID&&0!==y.length&&Promise.all(y.map(e=>et.nC.get(`requirements/licenses/${e.licenseId}/details/${r.userUUID}`,{queryParams:{currentCycle:!0},doNotShowError:!0}).then(t=>t?.requirementsDetails?[e.licenseId,t.requirementsDetails]:null).catch(()=>null))).then(e=>{let t={};e.forEach(e=>{e&&(t[e[0]]=e[1])}),X(t)})},[r.userUUID,y]);let e_=i[0],eh=y[0],eC=eh?.fullCredentialName??eh?.credentialName??e_?.licenseDefinitionsDto?.license??e_?.issuingBody??e_?.licenseOrCert??"Your Credential",ex=eh?.state??eh?.stateShort??e_?.stateOrIssuingBodyRef?.issuingBodyStateName??e_?.state??"",ey=o.ceUnitTerminology||"hours",eb=o.ceLanguageShort||"CE",eD=`👋 Welcome${r.userProfile?.firstName?`, ${r.userProfile.firstName}`:""}!`,eE=((e,t=50)=>{let[r,a]=(0,n.useState)("");return(0,n.useEffect)(()=>{if(!e)return;a("");let r=0,n=setInterval(()=>{r++,a(e.slice(0,r)),r>=e.length&&clearInterval(n)},t);return()=>clearInterval(n)},[e,t]),r})(eD,120),eA=f.onTrial,eN=!f.plan?.defaultPlan&&f.method,eI=f.periodEnd?Math.max(0,k()(f.periodEnd).diff(k()(),"days")):null,eS=()=>{N(!1),eo()};return((0,n.useEffect)(()=>{!D&&y.length>0&&(0,z.Dt)(z.HG.COMPLIANCE_PLAN_VIEWED,g,{licenseCount:y.length,credential:eC,state:ex})},[D,y.length]),D)?(0,a.jsx)("div",{className:"flex-container center",style:{padding:"60px 0"},children:(0,a.jsx)(q.A,{size:32})}):(0,a.jsxs)("div",{className:ei().container,children:[(0,a.jsxs)("div",{className:ei().header,children:[(0,a.jsxs)(s.A,{className:ei().welcome,children:[eE,eE.length<eD.length?(0,a.jsx)("span",{className:ei().cursor,children:"|"}):null]}),(0,a.jsxs)(s.A,{className:ei().credentialName,children:[ex?`${ex} — `:"",eC]}),(0,a.jsx)(s.A,{className:ei().subtitle,children:"Here's your compliance plan. Upload certificates or log your CE to stay on track."})]}),y.length>0?(0,a.jsx)(a.Fragment,{children:y.map(e=>(0,a.jsx)(ed,{lic:e,ceUnit:ey,showTitle:y.length>1,details:R[e.licenseId]??[]},e.licenseId))}):(0,a.jsx)("div",{className:ei().noRequirements,children:(0,a.jsxs)(s.A,{className:ei().noReqText,children:["We don't have specific requirements for this credential yet. You can still track your ",eb," records below."]})}),eN?null:(0,a.jsxs)(G.P.div,{className:ei().upgradeCta,onClick:()=>{(0,z.Dt)(z.HG.UPGRADE_PLAN_CLICKED,g,{source:"compliance-plan",trialDaysLeft:eI}),t.push({pathname:t.pathname,query:{...t.query,pricingModal:"true",pricingSource:"compliance-plan"}},void 0,{shallow:!0})},initial:{opacity:0,y:8}
1,animate:{opacity:1,y:0},transition:{duration:.4,delay:.6},whileHover:{scale:1.01},children:[(0,a.jsxs)("div",{className:`flex-container column ${ei().upgradeCtaText}`,children:[(0,a.jsx)(s.A,{className:ei().upgradeCtaTitle,children:eA?null!==eI&&eI<=14?`${eI} ${1===eI?"day":"days"} left in your trial`:"Stay on track after your trial ends":"Your trial ended — upgrade to keep tracking"}),(0,a.jsxs)(s.A,{className:ei().upgradeCtaSubtitle,children:["Upgrade to keep tracking your ",eb," requirements without interruption"]})]}),(0,a.jsxs)("div",{className:`flex-container column-center ${ei().upgradeCtaButton}`,children:[(0,a.jsx)(s.A,{className:ei().upgradeCtaButtonText,children:"Upgrade"}),(0,a.jsx)(H.L2n,{size:16})]})]}),(0,a.jsxs)("div",{className:`flex-container column ${ei().actionsSection}`,children:[(0,a.jsxs)("div",{...ep(),className:`${ei().uploadZone} ${eg?ei().uploadZoneActive:""}`,children:[(0,a.jsx)("input",{...ef()}),j>0?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(s.A,{className:ei().uploadTitle,children:["Uploading... ",j,"%"]}),(0,a.jsx)(c.A,{variant:"determinate",value:j,sx:{width:"100%",mt:1,borderRadius:4}})]}):w?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:ei().uploadIcon,children:(0,a.jsx)(S.YrT,{size:28})}),(0,a.jsx)(s.A,{className:ei().uploadTitle,children:"Uploaded! Scanning your certificate..."})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:ei().uploadIcon,children:(0,a.jsx)(S.B88,{size:28})}),(0,a.jsx)(s.A,{className:ei().uploadTitle,children:eg?"Drop it here":"Have certificates? Upload & scan them here"}),(0,a.jsxs)(s.A,{className:ei().uploadHint,children:["Drop a PDF or image and AI certificate scanning will auto-fill your ",eb," record"]})]})]}),(0,a.jsx)("div",{className:`flex-container column-center ${ei().orDivider}`,children:(0,a.jsx)(s.A,{className:ei().orText,children:"or"})}),(0,a.jsx)("div",{className:ei().quickAddButton,children:(0,a.jsx)(B.Q,{buttonText:`Quick add ${eb}`,onClick:()=>{(0,z.Dt)(z.HG.COMPLIANCE_PLAN_QUICK_ADD_OPENED,g),N(!0)},startIcon:(0,a.jsx)(S.GGD,{}),variant:"outlined"})})]}),(0,a.jsx)(Q.ModalComponent,{isModalOpen:A,maxWidth:"xs",fullWidth:!0,onClose:eS,showCloseIcon:!1,Content:(0,a.jsxs)("form",{onSubmit:el(t=>{T(!0);let a=(0,er.BG)(t);(0,z.Dt)(z.HG.ADDING_CE,g),et.nC.post(`ce-list/user/${r.userUUID}/ce/`,{body:a,doNotShowError:!0}).then(()=>{(0,z.Dt)(z.HG.ADDED_CE,g),(0,z.Dt)(z.HG.COMPLIANCE_PLAN_QUICK_ADD_SUBMITTED,g,{creditHours:t.creditHours}),eS(),e((0,P.n_)(structuredClone(d))),l(r.userUUID),em("CE Recorded!","SUCCESS")}).catch(()=>{(0,z.Dt)(z.HG.COMPLIANCE_PLAN_QUICK_ADD_FAILED,g),em("Error saving CE","DELETE")}).finally(()=>T(!1))}),className:ei().quickAddForm,children:[(0,a.jsxs)(s.A,{className:ei().quickAddTitle,children:["Quick add ",eb]}),(0,a.jsxs)("div",{className:`flex-container column ${ei().quickAddFields}`,children:[(0,a.jsx)(v.Kf,{control:en,name:"courseName",inputLabel:"What did you complete",required:!0,placeholder:"e.g. Ethics Course at ABC Hospital",size:"small",maxWidth:!0,styleProps:{margin:0,marginBottom:"8px"}}),(0,a.jsx)(v.Kf,{control:en,name:"creditHours",inputLabel:`How many ${ey}`,required:!0,placeholder:"e.g. 2",size:"small",type:"number",maxWidth:!0,styleProps:{margin:0,marginBottom:"8px"}}),(0,a.jsx)(ee.$9,{control:en,name:"dateAttended",label:"When",placeholder:"mm/dd/yyyy",slots:{openPickerIcon:()=>(0,a.jsx)(H.a9f,{})},TextFieldProps:{required:!0,size:"small",styleProps:{margin:0}}})]}),(0,a.jsxs)("div",{className:`flex-container ${ei().formActions}`,children:[(0,a.jsx)(B.Q,{buttonText:"Cancel",onClick:eS,variant:"outlined",fullWidth:!0}),(0,a.jsx)(B.Q,{buttonText:"Save",type:"submit",isLoading:I,onClick:()=>{},fullWidth:!0,isLoadingWidth:"100%"})]})]})})]})};var ef=r(27371),eg=r(88108),e_=r(65453);let eh=()=>{let{get:e,addToObject:t}=(0,e_.M)("CONFIG"),r=e(),a=(0,m.G)(F.aI),l=(0,m.G)(F.qs),o=(0,m.G)(P.Gb),s=(0,m.G)(F.Vr),i=(0,m.G)(P.Pc),c=(0,n.useCallback)(()=>a.reduce((e,t)=>{let r=!1;for(let e of l)if(e.credentialId===t.credentialId){r=!0;break}return r&&null!==t.endDate||e.push({...t,haveReqs:r}),e},[]).length>0,[a,l])();return!r?.licenseExpiredShow&&c&&o>0&&"COMPLETED_STATE"===s&&i?.thisCycleFilter===!0&&((0,ea.M8)("We know the cycle dates for some of your credentials, but not all of them. Feel free to filter by a custom date range above.",{variant:"snackbarWithTitle",preventDuplicate:!0,autoHideDuration:1e4,title:"",snackbarType:"INFO"}),r&&!r.licenseExpiredShow?t({licenseExpiredShow:!0}
1):r||t({licenseExpiredShow:!0})),null};var eC=r(61823),ex=r(43788),ey=r(30367),eb=r(75784),eD=r(14e3),eE=r(23999),eA=r(41524),eN=r(18465),eI=r(77281),eS=r(54587),ev=r.n(eS),eT=r(96003),ej=r(17681),ek=r(56720),eO=r(42135),ew=r(19090),eU=r(95386),eB=r(84259),eP=r(41411),eF=r.n(eP),eL=r(7535);let eR=({title:e,children:t,descriptionText:r,placement:l="right",chipText:o})=>{let[c,d]=(0,n.useState)(!0),{mutate:u}=(0,eL.$g)(),f=(0,m.G)(p.cE),g=()=>{u({userUUID:f.userUUID,flagName:z.a3.SIDEBAR_VIDEO_MODAL_TOOLTIP,onSuccess:()=>{d(!1)}})};return void 0===f.userFlags||z.a3.SIDEBAR_VIDEO_MODAL_TOOLTIP in f.userFlags&&f.userFlags?.[z.a3.SIDEBAR_VIDEO_MODAL_TOOLTIP]?(0,a.jsx)("div",{children:t}):(0,a.jsx)(i.A,{slotProps:{tooltip:{sx:{backgroundColor:"#392080",minWidth:400}},arrow:{sx:{color:"#392080"}}},title:(0,a.jsxs)(eU.A,{className:eF().mainBox,children:[(0,a.jsxs)(eU.A,{className:"flex-container column-center space-between",children:[(0,a.jsxs)(s.A,{variant:"body2",sx:{fontWeight:"bold",color:"white"},children:[o?(0,a.jsx)("span",{className:eF().span,children:"NEW"}):null,e||null]}),(0,a.jsx)(eB.A,{size:"small",onClick:g,className:eF().closeIcon,children:(0,a.jsx)(A.A,{fontSize:"small"})})]}
1),r?(0,a.jsx)(s.A,{variant:"body2",className:eF().description,children:r}):null]}),placement:l,open:c,disableHoverListener:!0,disableFocusListener:!0,children:(0,a.jsx)("div",{onClick:g,children:t})})};var eq=r(61467),eG=r(2491),eM=r(54448),e$=r(92293),eW=r(30720),eH=r(55790),eV=r(7399),ez=r(81414),eY=r.n(ez);let eQ=({onTryOcr:e,onDismiss:t})=>(0,a.jsx)(eH.A,{variant:"outlined",className:eY().banner,children:(0,a.jsxs)("div",{className:eY().content,children:[(0,a.jsx)("div",{className:eY().iconBox,children:(0,a.jsx)(ey.h_6,{size:24})}),(0,a.jsxs)("div",{className:eY().textBox,children:[(0,a.jsxs)("div",{className:eY().titleRow,children:[(0,a.jsx)(s.A,{variant:"subtitle1",className:eY().title,children:"New: Upload your certificate and we'll fill in the details automatically"}),(0,a.jsx)(eV.A,{label:"Free",size:"small",className:eY().freeChip})]}),(0,a.jsx)(s.A,{variant:"body2",className:eY().description,children:"AI-powered scanning reads your certificate and pre-fills the details — just review and save."})]}),(0,a.jsxs)("div",{className:eY().actions,children:[(0,a.jsx)(B.Q,{buttonText:"Try AI Scanning",variant:"contained",onClick:e,className:eY().actionButton}),(0,a.jsx)(B.Q,{buttonText:"Maybe later",variant:"outlined",onClick:t,className:eY().actionButton})]})]})});var eK=r(37715),eZ=r.n(eK);let eJ="trialSummaryDismissed",eX=()=>{let e=(0,W.useRouter)(),{pathname:t,query:r}=e,l=(0,m.G)(p.cE),o=(0,m.G)($.xL),i=(0,m.G)($.WJ),c=(0,m.G)(F.aI),[d,u]=(0,n.use
1State)(!1),f=l.orgConfig.refOrgUUID===z.hz.ORG_UUID,g=!o.onTrial&&k()(o.periodEnd).isBefore(k()()),_=!o.method;(0,n.useEffect)(()=>{if(!f||!g||!_||localStorage.getItem(eJ)===l.userUUID)return;let e=setTimeout(()=>u(!0),1500);return()=>clearTimeout(e)},[f,g,_,l.userUUID]);let h=()=>{localStorage.setItem(eJ,l.userUUID),u(!1)},C=i.ceUsage.totalCesRecorded,x=c.length;return(0,a.jsx)(Q.ModalComponent,{isModalOpen:d,maxWidth:"xs",fullWidth:!0,pad:!1,onClose:h,Content:(0,a.jsxs)("div",{className:eZ().mainContainer,children:[(0,a.jsx)(s.A,{className:eZ().heading,children:"Your 14-day trial ended"}),(0,a.jsx)(s.A,{className:eZ().subtitle,children:"Here's what happened during your trial"}),(0,a.jsxs)("div",{className:eZ().statsGrid,children:[(0,a.jsxs)("div",{className:eZ().statItem,children:[(0,a.jsx)(s.A,{className:eZ().statValue,children:x}),(0,a.jsx)(s.A,{className:eZ().statLabel,children:1===x?"credential":"credentials"})]}),(0,a.jsxs)("div",{className:eZ().statItem,children:[(0,a.jsx)(s.A,{className:eZ().statValue,children:C}),(0,a.jsx)(s.A,{className:eZ().statLabel,children:1===C?"CE recorded":"CEs recorded"})]})]}),0===C?(0,a.jsxs)("div",{className:eZ().complianceWarning,children:[(0,a.jsx)(ey.z1N,{size:20,color:"#856404"}),(0,a.jsx)(s.A,{className:eZ().warningText,children:"You haven't logged any CE yet. Staying on top of requirements is easier when you track as you go."})]}):null,(0,a.jsxs)("div",{className:eZ().actions,children:[(0,a.jsx)(B.Q,{buttonText:"Keep tracking — upgrade for $4.99/mo",onClick:()=>{h(),e.push({pathname:t,query:{...r,pricingModal:"true",pricingSource:"trial-summary-modal"}},void 0,{shallow:!0})},fullWidth:!0}),(0,a.jsx)(s.A,{className:eZ().laterLink,onClick:h,children:"Continue with free plan"})]})]})})},e0=x()(()=>r.e(4457).then(r.bind(r,34457)),{loadableGenerated:{webpack:()=>[null]},ssr:!1}),e1=new Set,e2=()=>{let e=(0,m.G)(p.cE),{mutate:t}=(0,eL.$g)(),[r,l]=(0,n.useState)(!1),[o,s]=(0,n.useState)({width:0,height:0}),i=e.orgConfig?.refOrgUUID===z.hz.ORG_UUID,c=void 0!==e.userFlags&&z.a3.ONBOARDING_COMPLETION_CONFETTI in e.userFlags&&!!e.userFlags?.[z.a3.ONBOARDING_COMPLETION_CONFETTI];return((0,n.useEffect)(()=>{!i||!e.userUUID||void 0===e.userFlags||c||e1.has(e.userUUID)||(e1.add(e.userUUID),s({width:window.innerWidth,height:window.innerHeight}),l(!0),t({userUUID:e.userUUID,flagName:z.a3.ONBOARDING_COMPLETION_CONFETTI}))},[i,e.userUUID,e.userFlags,c,t]),(0,n.useEffect)(()=>{if(!r)return;let e=()=>s({width:window.innerWidth,height:window.innerHeight});return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[r]),(0,n.useEffect)(()=>{if(!r)return;let e=setTimeout(()=>l(!1),8e3);return()=>clearTimeout(e)},[r]),r)?(0,a.jsx)("div",{style:{position:"fixed",inset:0,pointerEvents:"none",zIndex:9999},children:(0,a.jsx)(e0,{width:o.width,height:o.height,numberOfPieces:400,gravity:.12,recycle:!1,tweenDuration:6e3})}):null},e5={sx:{borderRadius:"8px"}},e3=x()(()=>Promise.all([r.e(3760),r.e(3624),r.e(8119),r.e(772),r.e(9914),r.e(5016),r.e(9927),r.e(821)]).then(r.bind(r,10821)).then(e=>e.CEListDesktopComponent),{loadableGenerated:{webpack:()=>[10821]},ssr:!1,loading:()=>(0,a.jsx)(y.N,{variant:"rectangular",width:"100%",height:500})}),e6=x()(()=>Promise.all([r.e(3880),r.e(8119),r.e(3624),r.e(3760),r.e(772),r.e(2517),r.e(9914),r.e(5016),r.e(9927),r.e(8950),r.e(4031)]).then(r.bind(r,18212)).then(e=>e.CeListMobileComponent),{loadableGenerated:{webpack:()=>[18212]},ssr:!1,loading:()=>(0,a.jsx)(y.N,{variant:"rectangular",width:"100%",height:500})}),e4=(0,n.memo)(({token:e})=>{let t=(0,m.j)(),r=(0,eD.useSearchParams)(),g=(0,m.G)(p.cE),C=(0,m.G)(P.Pc),x=(0,m.G)(P.LP),y=(0,m.G)(p.kE),b=(0,m.G)(P.Pg),D=(0,m.G)(P.s1),E=(0,m.G)(P.BN),A=(0,m.G)(P.Mk),N=(0,m.G)(eT._L),S=(0,m.G)($.xL),v=(0,m.G)($.WJ),T=(0,m.G)(U.vx),j=(0,m.G)(U.qy),O=(0,m.G)(F.aI),w=(0,m.G)(P.Gb),q=(0,m.G)(P.nA),M=(0,m.G)(P.vM),Q=(0,m.G)(P.g7),K=(0,eN.Q)(Y.y1.CERTIFICATE_OCR,g?.orgConfig?.features??[]),{hasResponded:Z}=(0,V.N)(),{mutate:J}=(0,eL.$g)(),X=(0,n.useRef)(!1);(0,n.useEffect)(()=>{X.current&&Z&&"AI_TERMS"!==T.modalName&&(X.current=!1,t((0,U.qf)({modalName:"ADD_CE",isOpen:!0})))}
1,[Z,T.modalName,t]);let ee=(0,n.useCallback)((e,r)=>{let a=(0,eE.cp)(r);a&&Object.entries(a).some(([e,t])=>!eE.TT.has(e)&&null!=t&&""!==t&&(!Array.isArray(t)||t.length>0))?t((0,U.yl)({ceId:e,status:"completed",extractedFields:a})):t((0,U.yl)({ceId:e,status:"failed",extractedFields:null}))},[t]),er=(0,n.useCallback)(e=>{t((0,U.yl)({ceId:e,status:"failed",extractedFields:null}))},[t]);(({jobs:e,onCompleted:t,onFailed:r})=>{let a=(0,n.useRef)(null),l=(0,n.useRef)(e),o=(0,n.useRef)({onCompleted:t,onFailed:r}),s=(0,n.useRef)({});(0,n.useEffect)(()=>{l.current=e},[e]),(0,n.useEffect)(()=>{o.current={onCompleted:t,onFailed:r}},[t,r]);let i=e.length>0;(0,n.useEffect)(()=>{if(!i){a.current&&(clearInterval(a.current),a.current=null);return}if(a.current)return;let e=()=>{l.current.forEach(({ceId:e,userId:t})=>{if(e&&t){if(s.current[e]=(s.current[e]??0)+1,s.current[e]>36)return void o.current.onFailed(e);et.nC.get(`ce-list/user/${t}/ce/${e}/ocr-status`,{doNotShowError:!0}).then(t=>{"Completed"===t.ocrStatus?o.current.onCompleted(e,t.extractedFields):"Failed"===t.ocrStatus&&o.current.onFailed(e)}).catch(()=>{})}})};return e(),a.current=setInterval(e,5e3),()=>{a.current&&(clearInterval(a.current),a.current=null)}},[i])})({jobs:(0,n.useMemo)(()=>j.filter(e=>"processing"===e.status).map(e=>({ceId:e.ceId,userId:e.userId})),[j]),onCompleted:ee,onFailed:er});let ea=(0,n.useRef)(j);(0,n.useEffect)(()=>{ea.current=j},[j]),(0,n.useEffect)(()=>{g.userUUID&&et.nC.get(`ce-list/user/${g.userUUID}/pending-ocr`,{doNotShowError:!0}).then(e=>{e&&0!==e.length&&e.filter(e=>"Pending"===e.ocrStatus||null===e.ocrStatus).filter(e=>!ea.current.some(t=>t.ceId===e.ceId)).forEach(e=>{t((0,U.u)({ceId:e.ceId,userId:g.userUUID,fileName:"Certificate",status:"processing",fileAttachments:[]}))})}).catch(()=>{})},[g.userUUID]);let en=(0,n.useRef)(!1);(0,n.useEffect)(()=>{g.userUUID&&!en.current&&(en.current=!0,(0,z.Dt)(z.HG.CE_LIST_PAGE_VIEWED,g.userProfile?.emailAddress))},[g.userUUID]);let el=!S.plan?.defaultPlan&&S.method,eo=(0,eN.Q)(Y.y1.PRICING_PLAN,g?.orgConfig?.features),es=(0,eN.Q)(Y.y1.HIDE_RECORD_CE_BUTTON,g?.orgConfig?.features),ei=!!N?.userUUID,ec=k()(S.periodEnd).isBefore(k()()),ed=(0,W.useRouter)(),{query:eu,pathname:em}=ed,eS={...eu,pricingModal:"true"},{get:eU,addToObject:eB}=(0,e_.M)("CONFIG"),[eP,eF]=(0,eO.Mj)("lastClosed",null),eH=eU(),eV=eP&&Date.now()-eP>ej.k||!eP,[ez,eY]=(0,n.useState)(!1),[eK,eZ]=(0,n.useState)("This cycle only"),[eJ,e0]=(0,n.useState)("currentCycle"),[e1,e4]=(0,n.useState)(!1),[e9,e8]=(0,n.use
1State)(!1),[e7,te]=(0,n.useState)(""),[tt,tr]=(0,n.useState)(null),[ta,tn]=(0,n.useState)(!0),[tl,to]=(0,n.useState)(null),ts=(0,l.A)(),ti=(0,o.A)(ts.breakpoints.down("md")),tc=(0,n.useMemo)(()=>{let e={...C,...q};return Q&&Q.length&&(e.approvalStatus=Q),e},[C,q,Q]);(0,n.useEffect)(()=>{M&&((0,R.V)(f.C.APPROVED,Q)?te("Approved CEs"):(0,R.V)(f.C.AWAITING_APPROVAL,Q)?te("CEs Pending Approval"):te(""))},[M,Q]);let td=`${C?.startDate??""}|${C?.endDate??""}|${C?.thisCycleFilter??""}`,tu=(0,n.useRef)(td);(0,n.useEffect)(()=>{tu.current!==td&&(tu.current=td,M&&1!==q.page&&t((0,P.Bp)({...q,page:1})))},[td,M,q,t]);let{data:tm}=(0,eG.I)({queryKey:[z.Bz.PRICING_PLANS,g.userUUID],queryFn:eM.Ne,enabled:!!g.userUUID&&eo,staleTime:6e6}),tp=k()(),tf=k()(S.periodStart),tg=k()(S.periodEnd);(tm??[]).some(e=>e.monthlyCouponEndTime&&k()(e.monthlyCouponEndTime).isAfter(k()())||e.annualCouponEndTime&&k()(e.annualCouponEndTime).isAfter(k()()));let{data:t_}=(0,e$.O)(),th=t_?.eligible?t_.percentageOff:void 0,tC=Math.max(0,...(tm??[]).flatMap(e=>[e.monthlyCouponEndTime&&k()(e.monthlyCouponEndTime).isAfter(k()())?e.percentageOffMonthly??0:0,e.annualCouponEndTime&&k()(e.annualCouponEndTime).isAfter(k()())?e.percentageOffAnnually??0:0])),tx=th??(tC>0?tC:void 0),ty=tp.diff(tf,"days"),tb=tg.diff(tf,"days"),tD=Math.max(tg.diff(tp,"days"),0),tE=Math.min(ty/tb*100,100),tA="success";tE>40&&(tA="warning"),tE>80&&(tA="error");let[tN,tI]=(0,n.useState)(!1),[tS,tv]=(0,n.useState)(!1),tT=eo&&(null!==r.get("paymentSuccess")||"true"===r.get("trialEnabled"));(0,n.useEffect)(()=>{"true"===r.get("pricingModal")&&tI(!1)},[r]);let tj=[{name:"Approved",key:f.C.APPROVED,count:b?.approvedCredits,color:"#0BD57D",onClick:e=>{M?t((0,P.eu)((0,R.n)(e,Q))):(0,z.kg)(A,e)?t((0,P.SV)([])):(t((0,P.SV)([{value:f.C.APPROVED,operator:"equals",field:"approvedStatus"}])),te("Approved CEs"))}},{name:"Pending approval",key:f.C.AWAITING_APPROVAL,count:b?.pendingCredits,color:"#FFAB12",onClick:e=>{M?t((0,P.eu)((0,R.n)(e,Q))):(0,z.kg)(A,e)?t((0,P.SV)([])):(t((0,P.SV)([{id:1,value:[f.C.REVIEW_AND_NOT_APPROVED,f.C.AWAITING_APPROVAL],operator:"isAnyOf",field:"approvedStatus"}])),te("CEs Pending Approval"))}}],tk=[{name:`Total ${y.ceUnitTerminology}`,count:D||0,icon:(0,a.jsx)(ey.mSX,{color:ts.palette.neutral["700"]}),onClick:()=>{t((0,P.SV)([])),t((0,P.n_)({startDate:null,endDate:null,thisCycleFilter:null})),to(0)}},...ez?[{name:"This Cycle",count:E||0,icon:(0,a.jsx)(ey.mSX,{color:ts.palette.neutral["700"]}),onClick:()=>{t((0,P.SV)([])),t((0,P.n_)({startDate:null,endDate:null,thisCycleFilter:!0})),eZ("This cycle only"),e0("currentCycle"),to(1)}}]:[]];(0,n.useEffect)(()=>{C?.endDate===null&&null===C.startDate&&(C?.thisCycleFilter===null||C?.thisCycleFilter===!0)?C?.thisCycleFilter===null?to(0):to(1):to(null)},[C]),(0,n.useEffect)(()=>{A&&(A[0]?.value.length===2?te("CEs Pending Approval"):A[0]?.value.length>0&&te("Approved CEs"))},[A]),(0,n.useEffect)(()=>{C&&e1&&Object.values(C).every(e=>null===e)&&(e0("allTime"),eZ("All time"))},[C,e1]),(0,n.useEffect)(()=>{"true"===r.get("recordCE")&&t((0,U.qf)({modalName:"ADD_CE",isOpen:!0}))},[r]),(0,n.useEffect)(()=>{g.userUUID&&et.nC.get(`requirements/show-this-cycle-filter/${g.userUUID}`).then(e=>{eY(e),!e||ed.query.isEmptyState?(t((0,P.n_)({startDate:null,endDate:null,thisCycleFilter:null})),eZ("All time"),e0("allTime")):(t((0,P.n_)({startDate:null,endDate:null,thisCycleFilter:!0})),eZ("This cycle only"),e0("currentCycle")),e4(!0)}).catch(()=>{})},[g.userUUID,e]),(0,n.useEffect)(()=>{g?.orgConfig.refOrgUUID&&(0,eg.xC)(g?.orgConfig.refOrgUUID)},[g?.orgConfig.refOrgUUID,e]),(0,n.useEffect)(()=>{let{query:e}=ed;if(void 0!==e.isRequirementStatusShow){(eH?.isRequirementStatusShow===null||eH?.isRequirementStatusShow===void 0)&&eB({isRequirementStatusShow:!0}),delete e.isRequirementStatusShow;let t={pathname:ed.pathname,query:{...e}};ed.replace(t,void 0,{shallow:!0})}},[ed.query]);let tO=g.orgConfig.orgInfoBoxesStructure?g?.orgConfig.orgInfoBoxesStructure:g.orgConfig.orgInfoBoxes,tw=(0,z.ou)(tO,"ce-list"),tU="bad414e3-4a2b-11ed-af6f-0c010a2de601"===y.id||"bad450e3-4a2b-11ed-af6f-0c010a2de601"===y.id;return(0,n.useEffect)(()=>
1{if(void 0!==g.userFlags&&(!(z.a3.CE_LIST_WELCOME_TOUR in g.userFlags)||!g.userFlags?.[z.a3.CE_LIST_WELCOME_TOUR])&&(tS||!tT)&&e1&&g.orgConfig.refOrgUUID===z.hz.ORG_UUID&&w>0){let e=setTimeout(()=>{if(!["#ceListTable","#filterSelectButton"].every(e=>document.querySelector(e)))return void console.warn("Tour not started: Required elements not found in DOM");let e=[];document.querySelector("#recordNewCe")&&e.push({element:"#recordNewCe",popover:{title:"Click to Record your Education",description:"You can add new education records to your profile by clicking this button.",popoverClass:"small-popover",showButtons:["next","close"]}}),e.push({element:"#ceListTable",popover:{title:"View your CE Records",description:"This table displays all your continuing education records in one place.",popoverClass:"small-popover"}}),e.push({element:"#filterSelectButton",popover:{title:"Filter your CE Records",description:"Use this filter to view records from a specific date range or cycle.",popoverClass:"small-popover"}}),document.querySelector("#orgBrandingCEFiltersSection")&&e.push({element:"#orgBrandingCEFiltersSection",popover:{title:"Quick Access Your Records",description:"You can use this to quick access your total credits and this cycle credits",popoverClass:"small-popover"}}),document.querySelector("#provideFeedback")&&e.push({element:"#provideFeedback",popover:{title:"Share Feedback with Us",description:"We would love to hear your thoughts and suggestions to improve our CE App experience.",popoverClass:"small-popover"}}),(0,eq.B)({steps:e,onDestroyed:()=>{J({userUUID:g.userUUID,flagName:z.a3.CE_LIST_WELCOME_TOUR})}}).drive(),tv(!1)},tS?500:1e3);return()=>clearTimeout(e)}},[g,tS,tT,e1,w]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(e2,{}),v.details.uploadedFileSizes>=0x3200000&&eo?(0,a.jsx)(ej.A,{}):null,(0,a.jsxs)("div",{style:{justifyContent:y.orgBlurb&&!ti&&ta?"left":"center"},className:_().mainContainer,children:[y.orgBlurb&&!ti?(0,a.jsx)(G.P.div,{initial:!1,animate:{width:ta?"17.5%":"1%"},transition:{duration:.3,ease:"easeInOut"},className:_().brandingContainer,children:(0,a.jsxs)(G.P.div,{initial:!1,animate:{opacity:+!!ta},transition:{opacity:{duration:.15,ease:"easeInOut",delay:.15*!!ta}},style:{visibility:ta?"visible":"hidden"},children:[(0,a.jsx)(I.BrandChip,{handleClick:e=>{tr(e.currentTarget),e8(e=>!e)},referenceOrg:y}),y?.isApprovalEnabled?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.A,{className:_().headerText,children:"Quick Access"}),tj.map((e,t)=>(0,a.jsxs)("div",{className:`flex-container column-center ${_().quickAccessContainer}`,onClick:()=>e.onClick(e.key),style:{backgroundColor:(M?(0,R.V)(e.key,Q):(0,z.kg)(A,e.key))?ts.palette.neutral["200"]:"transparent"},children:[(0,a.jsx)("div",{className:_().circle,style:{backgroundColor:e.color}}),(0,a.jsx)(s.A,{className:_().quickAccessText,children:e.name}),(0,a.jsx)(i.A,{title:"No. of credits",arrow:!0,placement:"top",children:(0,a.jsx)(s.A,{className:_().quickAccessText,children:e.count?.toFixed(2*(e.count%1!=0))})})]},t))]}):null,(0,a.jsxs)("div",{className:"flex-container column fullwidth",id:"orgBrandingCEFiltersSection",children:[(0,a.jsx)(s.A,{className:_().headerText,children:"Your records"}),tk.map((e,t)=>(0,a.jsxs)("div",{className:`flex-container column-center ${_().quickAccessContainer}`,onClick:e.onClick,style:{backgroundColor:tl===t?ts.palette.neutral["200"]:"transparent"},children:[e.icon,(0,a.jsx)(s.A,{className:_().quickAccessText,children:e.name}),(0,a.jsx)(i.A,{title:`No. of ${y.ceUnitTerminology}`,arrow:!0,placement:"top",children:(0,a.jsx)(s.A,{className:_().quickAccessText,children:e.count?.toFixed(2*(e.count%1!=0))})})]},t))]}),(0,a.jsxs)("div",{className:_().upgradeContainer,children:[eo&&S.onTrial&&!ec&&!S.method?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:`flex-container ${_().trialSpanContainer}`,children:[(0,a.jsx)(s.A,{className:_().trialHeading,children:"Free trial"}),(0,a.jsxs)(s.A,{className:_().trialDays,children:[tD," days left"]})]}),(0,a.jsx)(c.A,{className:_().progressBar,variant:"determinate",value:tE,color:tA})]}):null,eo&&!el?(0,a.jsx)(B.Q,{buttonText:tx?`Upgrade — ${tx}% off! 🎉`:"Upgrade Plan",onClick:()=>{(0,z.Dt)(z.HG.UPGRADE_PLAN_CLICKED,g.userProfile?.emailAddress,{source:"ce-list-sidebar-upgrade"}),tI(!0),ed.push({pathname:em,query:{...eS,pricingSource:"ce-list-sidebar-upgrade"}},void 0,{shallow:!0})},fullWidth:!0,style:{borderRadius:8,backgroundColor:"#06804B"},startIcon:(0,a.jsx)(ey.XtC,{}
1),isLoading:tN,isLoadingWidth:"100%",isLoadingBackgroundColor:"#06804B"}):null,(0,a.jsx)(eA.A,{id:"provideFeedback",icon:(0,a.jsx)(ey.z3p,{}),text:"Share feedback with us",onClick:()=>ed.push({pathname:em,query:{...eu,provideFeedback:"true"}},void 0,{shallow:!0}),mainContainerClassName:`${_().ctaButtons} ${tU?null:_().donate}`,textClassName:_().iconText}),tU?(0,a.jsx)(eR,{title:"Watch intro video",chipText:"New",descriptionText:'You can always watch the "Getting started video" from here anytime.',children:(0,a.jsx)(eA.A,{icon:(0,a.jsx)(ey.NiB,{}),text:"Watch the video",onClick:()=>t((0,U.qf)({isOpen:!0,modalName:"VIDEO_MODAL",videoUrl:z.KT.WELCOME_CE_VIDEO,title:"Record "+y.ceLanguageShort})),mainContainerClassName:`${_().ctaButtons} ${_().donate}`,textClassName:_().iconText})}):null]})]})}):null,y.orgBlurb&&!ti?(0,a.jsx)(d.A,{orientation:"vertical",style:{width:"2px"},flexItem:!0,className:_().divider,children:y.orgBlurb&&!ti?(0,a.jsx)("div",{onClick:()=>{tn(e=>!e)},className:`flex-container center ${_().expandIcon}`,children:(0,a.jsx)(G.P.div,{initial:{rotate:0},animate:{rotate:180*!!ta},transition:{duration:.5},children:(0,a.jsx)(H.huF,{className:"flex-container row-center"})})}):null}):null,(0,a.jsx)(G.P.div,{initial:!1,className:`${_().rightContainer}`,children:(0,a.jsxs)("div",{className:`flex-container row-center column ${_().contentContainer}`,children:[(0,a.jsx)(eb.N,{children:!ei&&eo&&!el&&eV&&(!S.plan.defaultPlan||ec&&S.periodEnd)?(0,a.jsxs)(G.P.div,{initial:{opacity:1,y:0},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.5},className:`flex-container space-between ${_().trialContainer}`,children:[(0,a.jsx)(ev(),{src:"/static/stars.svg",height:30,width:50,alt:"forbidden error"}),(0,a.jsxs)("div",{className:`flex-container column fullwidth ${_().trialText}`,children:[(0,a.jsx)(s.A,{className:_().heading,children:ec?`Your free trial has expired${tx?`. We've set aside ${tx}% off for you! 🎉`:""}`:`You’re on a free trial${tx?`. We've set aside ${tx}% off for you! 🎉`:""}`}),ec?(0,a.jsx)(s.A,{className:_().description,children:"You have been moved to the free plan. To access more features, upgrade to a more exciting plan."}):(0,a.jsxs)(s.A,{className:_().description,children:["You are currently on a 14-day trial of the ",S.plan.name," plan ending on"," ",(0,a.jsx)("b",{className:"black",children:k()(S.periodEnd).format("MMMM D, YYYY")}),". You will be switched to the ",S.method?"Paid":"Free"," plan after the trial."]}),S.method?null:(0,a.jsxs)(s.A,{className:`flex-container column-center ${_().ctaLink}`,onClick:()=>{(0,z.Dt)(z.HG.UPGRADE_PLAN_CLICKED,g.userProfile?.emailAddress,{source:"ce-list-trial-banner"}),ed.push({pathname:em,query:{...eS,pricingSource:"ce-list-trial-banner"}},void 0,{shallow:!0})},children:["Explore upgrades ",(0,a.jsx)(ey.L2n,{})]})]}),(0,a.jsx)("div",{className:`flex-container ${_().iconContainer}`,children:(0,a.jsx)(eI.Tfw,{onClick:()=>{(0,z.Dt)(z.HG.TRIAL_BANNER_DISMISSED,g.userProfile?.emailAddress),eF(Date.now())},className:"cursor",fontSize:24})})]}):null}),ti||g.orgConfig.refOrgUUID!==z.hz.ORG_UUID||z.a3.OCR_PROMO_BANNER in g.userFlags&&g.userFlags?.[z.a3.OCR_PROMO_BANNER]?null:(0,a.jsx)(eQ,{onTryOcr:()=>{K&&!Z?(X.current=!0,(0,z.Dt)(z.HG.OCR_BANNER_AI_CONSENT_TRIGGERED,g?.userProfile?.emailAddress),t((0,U.qf)({modalName:"AI_TERMS",isOpen:!0}))):t((0,U.qf)({modalName:"ADD_CE",isOpen:!0})),J({userUUID:g.userUUID,flagName:z.a3.OCR_PROMO_BANNER})},onDismiss:()=>{J({userUUID:g.userUUID,flagName:z.a3.OCR_PROMO_BANNER})}}),(0,a.jsxs)("div",{className:`flex-container row ${_().titleButton}`,style:{justifyContent:y.orgBlurb&&!ti?"space-between":"center"},children:[(0,a.jsx)(s.A,{variant:"h1",id:"continuingEducation",children:y.orgBlurb&&y.orgBlurb&&(0!=A.length||Q?.length)?e7:`My ${y?.ceLanguageLong} Records`}),ti||!y.orgBlurb||es?null:(0,a.jsx)(I.RecordButtonComponent,{id:"recordNewCe",userConfig:g,variant:"contained"})]}),tw?.boxContent?(0,a.jsx)(ex.C,{content:tw?.boxContent}):null,g.userUUID&&e1?(0,a.jsx)(h.F,{subKey:"list",responseCallback:e=>{t((0,P.rc)(e))},isLoading:!e1,refreshCondition:String(x),apiConfig:{method:"GET",apiUrl:`ce-list/${g.userUUID}`,headers:{Authorization:`Bearer ${e}`},queryParams:tc,shouldUseParamsSerializer:!0},children:e=>g.orgConfig.refOrgUUID===z.hz.ORG_UUID&&0===w&&O.length>0?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ep,{}),(0,a.jsx)(ef.x,{})]}):(0,a.jsxs)(a.Fragment,{children:[!ti&&(0,a.jsx)("div",{style:{height:"auto"},children:(0,a.jsx)(e3,{isReqsPresent:ez,selectedFilterValue:eK,setSelectedFilterValue:eZ,data:e})}),ti&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(e6,{data:e}),(0,a.jsx)(L,{isReqsPresent:ez,selectedFilterValue:eJ,setSelectedFilterValue:e0})]})]})}):null,(0,a.jsx)(eh,{}),(0,a.jsx)(eC.A,{})]})})]}),(0,a.jsx)(eW.A,{}),(0,a.jsx)(u.Ay,{open:e9,slotProps:{paper:e5},anchorEl:tt,onClose:()=>e8(!1),anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},className:_().brandPopover,children:(0,a.jsx)(I.BrandDetails,{referenceOrg:y})}),(0,a.jsx)(ek.A,{onClose:()=>{void 0===g.userFlags||z.a3.CE_LIST_WELCOME_TOUR in g.userFlags&&g.userFlags?.[z.a3.CE_LIST_WELCOME_TOUR]||tv(!0)}}),eo?(0,a.jsx)(ew.A,{}):null,eo?(0,a.jsx)(eX,{}):null]})});
1e4.displayName="CeListComponent";let e9=e4},29774: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",lightBlueBackground:"#f2f7ff",lightGreenBackground:"#fffbf3",lightYellowBackground:"#f3fdf9",successLightBg:"#e6f4ea",successDark:"#1e7e34",dangerColor:"#dc2626",dangerBgSoft:"#fee2e2",dangerTextStrong:"#991b1b",amberBgSoft:"#fef3c7",amberBorder:"#f59e0b",amberTextStrong:"#92400e",lineClamp:"compliance-plan_lineClamp__yAzeg",container:"compliance-plan_container__qqWk7",header:"compliance-plan_header__B2nIV",welcome:"compliance-plan_welcome__GZceu",cursor:"compliance-plan_cursor__9yNA1",blink:"compliance-plan_blink__2WwvE",credentialName:"compliance-plan_credentialName__yr_IO",subtitle:"compliance-plan_subtitle__WP5G8",progressSection:"compliance-plan_progressSection__QJm10",reqLicenseTitle:"compliance-plan_reqLicenseTitle__3_4Qr",progressLabel:"compliance-plan_progressLabel___fkr3",hoursText:"compliance-plan_hoursText__r_m21",dueDate:"compliance-plan_dueDate__XQccH",deadlineGroup:"compliance-plan_deadlineGroup__noWWn",countdown:"compliance-plan_countdown__EEIbO",countdownPulse:"compliance-plan_countdownPulse__k0_jk",pulse:"compliance-plan_pulse__0C062",progressBar:"compliance-plan_progressBar__quq0h",progressFill:"compliance-plan_progressFill__uPLcC",remainingText:"compliance-plan_remainingText__82TEH",urgencyMessage:"compliance-plan_urgencyMessage___Z_OV",reqBreakdown:"compliance-plan_reqBreakdown__fwrTM",reqBreakdownRow:"compliance-plan_reqBreakdownRow__NRw_m",reqCircle:"compliance-plan_reqCircle__ViBvm",reqCircleDone:"compliance-plan_reqCircleDone__NxycH",reqRowContent:"compliance-plan_reqRowContent__e346n",reqBreakdownLabel:"compliance-plan_reqBreakdownLabel___vmJM",reqBreakdownStatus:"compliance-plan_reqBreakdownStatus__ySewK",reqComplete:"compliance-plan_reqComplete__yHJSN",requirementsList:"compliance-plan_requirementsList__VZK0a",requirementsHeading:"compliance-plan_requirementsHeading__g5R98",requirementItem:"compliance-plan_requirementItem__6mDiK",checkbox:"compliance-plan_checkbox__0jlP1",reqText:"compliance-plan_reqText__jwH1E",reqName:"compliance-plan_reqName__ei8NY",reqHours:"compliance-plan_reqHours__reuvQ",noRequirements:"compliance-plan_noRequirements__WIzjY",noReqText:"compliance-plan_noReqText__tF6lg",upgradeCta:"compliance-plan_upgradeCta__zemGz",upgradeCtaText:"compliance-plan_upgradeCtaText__QOUje",upgradeCtaTitle:"compliance-plan_upgradeCtaTitle__3K1zb",upgradeCtaSubtitle:"compliance-plan_upgradeCtaSubtitle__fg6qL",upgradeCtaButton:"compliance-plan_upgradeCtaButton__ZEGjZ",upgradeCtaButtonText:"compliance-plan_upgradeCtaButtonText__h_B0b",actionsSection:"compliance-plan_actionsSection__5DL_K",uploadZone:"compliance-plan_uploadZone__eQ0dQ",uploadZoneActive:"compliance-plan_uploadZoneActive__c8Xeu",uploadIcon:"compliance-plan_uploadIcon__gbBIA",uploadTitle:"compliance-plan_uploadTitle__D2DP7",uploadHint:"compliance-plan_uploadHint__7O59d",orDivider:"compliance-plan_orDivider__AAv2u",orText:"compliance-plan_orText__QQWXA",quickAddButton:"compliance-plan_quickAddButton__ZPjC1",quickAddForm:"compliance-plan_quickAddForm__yYLwD",quickAddTitle:"compliance-plan_quickAddTitle__UdHbZ",formActions:"compliance-plan_formActions__ElSvX"}},37715: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",chipBackgroun
1dColor:"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",lightBlueBackground:"#f2f7ff",lightGreenBackground:"#fffbf3",lightYellowBackground:"#f3fdf9",successLightBg:"#e6f4ea",successDark:"#1e7e34",dangerColor:"#dc2626",dangerBgSoft:"#fee2e2",dangerTextStrong:"#991b1b",amberBgSoft:"#fef3c7",amberBorder:"#f59e0b",amberTextStrong:"#92400e",lineClamp:"trial-summary-modal_lineClamp__UjyFM",mainContainer:"trial-summary-modal_mainContainer__1Inej",heading:"trial-summary-modal_heading__6BYOl",subtitle:"trial-summary-modal_subtitle__Uz_x_",statsGrid:"trial-summary-modal_statsGrid__JvDVl",statItem:"trial-summary-modal_statItem__mWG0U",statValue:"trial-summary-modal_statValue__MxyZb",statLabel:"trial-summary-modal_statLabel__X5Ccr",complianceWarning:"trial-summary-modal_complianceWarning__cgKYY",warningText:"trial-summary-modal_warningText__yUtZr",actions:"trial-summary-modal_actions__k_BlK",laterLink:"trial-summary-modal_laterLink__SWTPZ"}},41411: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:"tooltip-with-close_lineClamp__cKCOJ",mainBox:"tooltip-with-close_mainBox__OZuPc",span:"tooltip-with-close_span__Rn0XB",closeIcon:"tooltip-with-close_closeIcon__bzLYn",description:"tooltip-with-close_description__OtzEZ"}},42862: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:"ce-list_lineClamp__GqGdq",mainContainer:"ce-list_mainContainer__tibLq",divider:"ce-list_divider__Fq7mm",expandIcon:"ce-list_expandIcon__o_n4m",rightContainer:"ce-list_rightContainer__SWveA",contentContainer:"ce-list_contentContainer__bJb1G",trialContainer:"ce-list_trialContainer__WRrZD",trialText:"ce-list_trialText__XOzRp",heading:"ce-list_heading__SDSFi",description:"ce-list_description__hNhN_",ctaLink:"ce-list_ctaLink__mxDoO",iconContainer:"ce-list_iconContainer__f_k6P",titleButton:"ce-list_titleButton__3Gtqg",infoBox:"ce-list_infoBox__89HbG",dataCompletedText:"ce-list_dataCompletedText__R6KXU",gracePeriodChip:"ce-list_gracePeriodChip__cQILR",topicsAndCredits:"ce-list_topicsAndCredits__huiqk",link:"ce-list_link__mlQ_N",gridContainer:"ce-list_gridContainer__t6aGt",brandingContainer:"ce-list_brandingContainer__uAz3b",headerText:"ce-list_headerText__n9AKy",upgradeContainer:"ce-list_upgradeContainer__GD3Tl",trialSpanContainer:"ce-list_trialSpanContainer__aFtVs",trialHeading:"ce-list_trialHeading__kK4Rj",trialDays:"ce-list_trialDays__1oKSL",progressBar:"ce-list_progressBar__D8LVe",ctaButtons:"ce-list_ctaButtons__P777Z",iconText:"ce-list_iconText__Jd4oG",donate:"ce-list_donate__PVuh_",quickAccessContainer:"ce-list_quickAccessContainer__7vPh3",circle:"ce-list_circle__pkuMV",quickAccessText:"ce-list_quickAccessText__3nJXP",brandPopover:"ce-list_brandPopover__7Zzmc",dateContainer:"ce-list_dateContainer__rCuHP",saveContent:"ce-list_saveContent__dv3lN",snackbar:"ce-list_snackbar__mpnTa",newChip:"ce-list_newChip__rz4fc"}},50153:(e,t,r)=>{"use strict";r.d(t,{F:()=>i});var a=r(37876),n=r(14232),l=r(57674),o=r(17683),s=r(95932);let i=({apiConfig:e,children:t,isLoading:r,responseCallback:i,subKey:c,refreshCondition:d})=>{let[u,m]=(0,n.useState)(l.gu.INITIAL_STATE),[p,f]=(0,n.useState)(null);return(0,n.useEffect)(()=>{m(l.gu.LOADING_STATE),(0,l.nC)(e).then(e=>{i&&i(e),c?f(e[c]):f(e),m(l.gu.COMPLETED_STATE)}).catch(()=>{m(l.gu.ERROR_STATE)})},[e.queryParams,d]),u===l.gu.LOADING_STATE||r?(0,a.jsx)(s.N,{variant:"rounded",width:"100%",height:500}):u===l.gu.ERROR_STATE?(0,a.jsx)(o.A,{variant:"h1",children:"An error occurred while loading data"}):u===l.gu.COMPLETED_STATE?"function"==typeof t?t(p):{children:t}:null}},65453:(e,t,r)=>{"use strict";r.d(t,{M:()=>n});let a={TOKENS:"TOKEN",USER:"USER",CONFIG:"config"},n=e=>({set:t=>{"string"==typeof t?localStorage.setItem(a[e],t):t&&localStorage.setItem(a[e],JSON.stringify(t))},get:()=>{let t=localStorage.getItem(a[e]);return t?JSON.parse(t):void 0},addToObject:t=>{let r=localStorage.getItem(a[e]);if(r){let n={...JSON.parse(r),...t};localStorage.setItem(a[e],JSON.stringify(n));return}localStorage.setItem(a[e],JSON.stringify(t))},removeFromObject:t=>{let r=localStorage.getItem(a[e]);if(r){let n=JSON.parse(r);delete n[t],localStorage.setItem(a[e],JSON.stringify(n))}}})},81414: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:"ocr-promo-banner_lineClamp__g1muu",banner:"ocr-promo-banner_banner___Iwp_",content:"ocr-promo-banner_content__QX_xL",iconBox:"ocr-promo-banner_iconBox__kTcYS",textBox:"ocr-promo-banner_textBox__KTxyS",titleRow:"ocr-promo-banner_titleRow__YA_lC",title:"ocr-promo-banner_title__rpInw",freeChip:"ocr-promo-banner_freeChip__eTqSo",description:"ocr-promo-banner_description__0Mw34",actions:"ocr-promo-banner_actions__b9L_n",actionButton:"ocr-promo-banner_actionButton__8_If0"}},88108:(e,t,r)=>{"use strict";r.d(t,{$L:()=>x,Ez:()=>_,MF:()=>h,Nu:()=>p,Od:()=>C,W$:()=>g,k5:()=>f,nA:()=>y,qv:()=>u,sC:()=>m,tL:()=>d,xC:()=>c});var a=r(57674),n=r(68873),l=r(89263),o=r(26913),s=r(40097);let i=l.M_.dispatch,c=e=>{a.nC.get(`reference-org/${e}`).then(e=>{i((0,n.OV)(e))}).catch(()=>{})},d=(e,t)=>a.nC.get(`admin/reference-org/${e}/user/${t}/orgs/all`).then(e=>{i((0,o.$C)(e))}).catch(()=>{}),u=()=>(0,s.n)({mutationFn:({refOrgId:e,formData:t})=>a.nC.put(`reference-org/${e}/picture/update`,{body:t,headers:{"Content-Type":"multipart/form-data"},doNotShowError:!0}),onSuccess:(e,{onSuccess:t})=>{t&&t(e)},onError:(e,{refOrgId:t,onError:r})=>{r&&r(e),console.error("Error updating reference org logo:",e,t)}}),m=()=>(0,s.n)({mutationFn:({refOrgId:e,data:t})=>a.nC.put(`reference-org/${e}/update`,{body:t,doNotShowError:!0}),onSuccess:(e,{onSuccess:t})=>{t&&t(e)},onError:(e,{refOrgId:t,onError:r})=>{r&&r(e),console.error("Error updating org information:",e,t)}}),p=()=>(0,s.n)({mutationFn:({refOrgId:e,data:t})=>a.nC.put(`reference-org/${e}/org-features/update`,{body:t,doNotShowError:!0}),onSuccess:(e,{onSuccess:t})=>{t&&t(e)},onError:(e,{refOrgId:t,onError:r})=>{r&&r(e),console.error("Error updating org features:",e,t)}}),f=()=>(0,s.n)({mutationFn:({refOrgId:e,data:t})=>a.nC.put(`reference-org/${e}/org-info-boxes/update`,{body:t,doNotShowError:!0}),onSuccess:(e,{onSuccess:t})=>{t&&t(e)},onError:(e,{refOrgId:t,onError:r})=>{r&&r(e),console.error("Error updating org features:",e,t)}}),g=async({queryKey:e})=>{let[,t]=e;return a.nC.get(`reference-org/${t}/all`)},_=async e=>a.nC.get(`reference-org/${e}/credo-forms-url`),h=async({queryKey:e})=>{let[,t]=e;return a.nC.get(`reference-org/${t}/email-template-mappings`)},C=async({queryKey:e})=>{let[,t]=e;return a.nC.get(`admin/reference-org/${t}/branch-units`)},x=()=>(0,s.n)({mutationFn:({refOrgId:e,data:t})=>a.nC.put(`reference-org/${e}/email-template-mappings/update`,{body:t,doNotShowError:!0}),onSuccess:(e,{onSuccess:t})=>{t&&t(e)},onError:(e,{refOrgId:t,onError:r})=>{r&&r(e),console.error("Error updating email template mappings:",e,t)}}),y=()=>(0,s.n)({mutationFn:({refOrgId:e,branchId:t})=>a.nC.delete(`reference-org/${e}/email-template-mappings${t?`?branchId=${t}`:""}`,{doNotShowError:!0}),onSuccess:(e,{onSuccess:t})=>{t&&t(e)},onError:(e,{refOrgId:t,onError:r})=>{r&&r(e),console.error("Error deleting email template mappings:",e,t)}})},91840:(e,t,r)=>{"use strict";r.d(t,{V:()=>s,n:()=>i});var a=r(12055);let n=["APPROVED"],l=["AWAITING_APPROVAL","REVIEW_AND_NOT_APPROVED"],o=e=>e===a.C.APPROVED?n:l,s=(e,t)=>{let r=o(e);return!!t&&t.length===r.length&&r.every(e=>t.includes(e))},i=(e,t)=>s(e,t)?null:o(e)}}]);

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.