PageSourceSearch

https://arammu.com/chunk-EEORQNHT.js

js arammu.com collected 2026-10-02 17:55:52 UTC 23,171 bytes, 1 lines download raw bytes

1import{a as _e}from"./chunk-Y5K5QCRH.js";import{k as te}from"./chunk-2WYU753V.js";import"./chunk-HTHMAP6P.js";import"./chunk-X6CGW6A5.js";import"./chunk-OLXY66IE.js";import"./chunk-YVKFHWGQ.js";import"./chunk-USRONKFJ.js";import"./chunk-J66XLKUM.js";import"./chunk-AGFRX7KM.js";import"./chunk-22DDHLDM.js";import"./chunk-IPS4UIZL.js";import"./chunk-QWP2DNAD.js";import"./chunk-DJLYS3B7.js";import"./chunk-PT7POJRM.js";import"./chunk-JC7X7OAT.js";import"./chunk-VHF7ZOYY.js";import"./chunk-CMDRO3BG.js";import"./chunk-5VQXULXV.js";import{d as Ce,e as Ee,k as ye,l as Se,p as ke}from"./chunk-6BXQWBRO.js";import"./chunk-NUS35B7S.js";import{Fa as j,S as he,T as ae,U as L,Ya as V,Z as B,_,ba as fe,da as N,f as ge,i as ve,ka as oe,la as re,sa as se,ua as ee,ya as le}from"./chunk-4LMHOBHZ.js";import"./chunk-E36RJ6KP.js";import{g as ue}from"./chunk-V5Z6QOXD.js";import{Ab as Q,Bb as b,Cb as r,Db as s,Dc as O,Eb as f,Fb as u,Gb as c,Ia as ce,Ic as k,Nb as H,Oa as o,Pb as w,W as z,ac as n,bc as S,cb as A,cc as x,dc as E,la as me,nd as Z,rc as ne,vb as M,wb as P,xb as G,xc as D,yb as K,yc as I,zb as F}from"./chunk-HP43WR4T.js";import{a as Y,b as J,i as U}from"./chunk-JILVGSAM.js";function Me(t,m){t&1&&(u(0,"tr")(1,"th"),n(2,"Client"),c(),u(3,"th"),n(4,"Post Checkup"),c()())}function Pe(t,m){if(t&1&&(M(0,Me,5,0,"tr"),u(1,"tr")(2,"td",4),n(3),c(),u(4,"td"),n(5),c()()),t&2){let e=m.$implicit,a=m.$index;P(a===0?0:-1),o(3),S(e.clientName),o(2),S(e.checkupReview)}}function qe(t,m){t&1&&(u(0,"tr")(1,"td",3),n(2,"No feedback found."),c()())}var Te=(()=>{class t{checkups=k.required();clientQuotes=[];ngOnInit(){this.clientQuotes=this.checkups().reduce((e,a)=>(a.userPostReview&&e.push({clientName:this.getInitials(a.userName||"XX"),checkupReview:a.userPostReview}),a.partnerPostReview&&e.push({clientName:this.getInitials(a.partnerName||"XX"),checkupReview:a.partnerPostReview}),e),[])}getInitials=e=>e.split(" ").map(a=>a.charAt(0).toUpperCase()).join("");static \u0275fac=function(a){return new(a||t)};static \u0275cmp=A({type:t,selectors:[["arammu-client-quotes"]],inputs:{checkups:[1,"checkups"]},decls:10,vars:1,consts:[[1,"table-responsive"],[1,"table","table-bordered","w-auto"],[1,"table-warning","text-center"],["colspan","2"],[1,"text-nowrap"]],template:function(a,i){a&1&&(u(0,"div",0)(1,"table",1)(2,"thead",2)(3,"tr")(4,"th",3),n(5,"Client Feedback"),c()()(),u(6,"tbody"),F(7,Pe,6,3,null,null,K,!1,qe,3,0,"tr"),c()()()),a&2&&(o(7),Q(i.clientQuotes))},encapsulation:2})}return t})();var Fe=(t,m)=>m.tableLabel;function Qe(t,m){if(t&1&&(r(0,"div",0),n(1),s()),t&2){let e=w();o(),S(e.errorMsg)}}function Le(t,m){t&1&&(r(0,"div"),n(1,"Loading..."),s())}function Be(t,m){if(t&1&&(r(0,"div",2),f(1,"arammu-questions-table",3),s()),t&2){let e=m.$implicit;o(),b("tableLabel",e.tableLabel)("preAnswers",e.preAnswers)("postAnswers",e.postAnswers)("bothAnswered",e.bothAnswered)}}function Re(t,m){if(t&1&&(r(0,"div",1),F(1,Be,2,4,"div",2,Fe),s()),t&2){let e=w();o(),Q(e.tableDetails())}}var Ne=(()=>{class t{tableLabel=k.required();preAnswers=k.required();postAnswers=k.required();bothAnswered=k.required();preAverage=O(()=>V(this.preAnswers()));postAverage=O(()=>V(this.postAnswers()));bothAverage=O(()=>[V(this.bothAnswered().map(e=>e[0])),V(this.bothAnswered().map(e=>e[1]))]);static \u0275fac=function(a){return new(a||t)};static \u0275cmp=A({type:t,selectors:[["arammu-questions-table"]],inputs:{tableLabel:[1,"tableLabel"],preAnswers:[1,"preAnswers"],postAnswers:[1,"postAnswers"],bothAnswered:[1,"bothAnswered"]},decls:44,vars:12,consts:[[1,"table","table-bordered","w-auto"],[1,"table-warning","text-center"],["colspan","4"],["tooltipText","This is the count of clients who completed BOTH the pre AND the post optional questionnaire"],["tooltipText","This INCLUDES clients who did not complete the POST optional questionnaire"],["tooltipText","This INCLUDES clients who did not complete the PRE optional questionnaire"],[1,"fw-bold"],[1,"bg-success-subtle"]],template:function(a,i){a&1&&(r(0,"table",0)(1,"thead",1)(2,"tr")(3,"th",2),n(4),s()()(),r(5,"tbody")(6,"tr"),f(7,"th"),r(8,"th"),n(9," Pre & Post "),f(10,"arammu-tooltip",3),s(),r(11,"th"),n(12," Pre Checkup "),f(13,"arammu-tooltip",4),s(),r(14,"th"),n(15," Post Checkup "),f(16,"arammu-tooltip",5),s()(),r(17,"tr")(18,"td",6),n(19,"Count"),s(),r(20,"td"),n(21),s(),r(22,"td"),n(23),s(),r(24,"td"),n(25),s()(),r(26,"tr")(27,"td",6),n(28,"Mean"),s(),r(29,"td",7),n(30),s(),r(31,"td"),n(32),s(),r(33,"td"),n(34),s()(),r(35,"tr")(36,"td",6),n(37,"Std Dev"),s(),r(38,"td"),n(39),s(),r(40,"td"),n(41),s(),r(42,"td"),n(43),s()()()()),a&2&&(
1o(4),x("",i.tableLabel()," (1-10 scale)"),o(17),S(i.bothAnswered().length.toLocaleString()),o(2),S(i.preAnswers().length.toLocaleString()),o(2),S(i.postAnswers().length.toLocaleString()),o(5),E(" ",i.bothAverage()[0].average," \u2192 ",i.bothAverage()[1].average," "),o(2),S(i.preAverage().average),o(2),S(i.postAverage().average),o(5),E(" ",i.bothAverage()[0].standardDeviation," \u2192 ",i.bothAverage()[1].standardDeviation," "),o(2),S(i.preAverage().standardDeviation),o(2),S(i.postAverage().standardDeviation))},dependencies:[te],encapsulation:2})}return t})(),be=(()=>{class t{firestore=z(j).getFirestoreInstance();checkups=k.required();checkupType=k.required();isFRC=O(()=>this.checkupType()==="FAMILY_RESILIENCE");tableDetails=me([]);loading=!0;errorMsg="";ngOnInit(){return U(this,null,function*(){try{if(this.isFRC()){let e=this.checkups().map(({userSurvey:l,partnerSurvey:p})=>[l,p]).flat().filter(l=>l&&!["incomplete","complete"].includes(l)),a=re(yield Promise.all(oe(e,30).map(l=>N(B(L(this.firestore,"survey"),_(ae(),"in",l)))))).map(l=>l.data()).filter(l=>l.results.preQuestions?.familyQuestions||l.results.postQuestions?.familyQuestions),i=["All things considered, I feel happy in my family.","I am confident in my family's ability to meet life's challenges with resilience.","Right now, I feel close to my family.","Right now, I feel like a burden to my family.","During the past week, I felt sad or down."],d=a.reduce((l,p)=>{let{preQuestions:y,postQuestions:C}=p.results,v=y?.familyQuestions||[],h=C?.familyQuestions||[];for(let g=0;g<5;g++){let T=v[g],q=h[g];T!==void 0&&q!==void 0&&l[g].bothAnswered.push([T,q]),T!==void 0&&l[g].preAnswers.push(T),q!==void 0&&l[g].postAnswers.push(q)}return l},i.map(l=>({preAnswers:[],postAnswers:[],bothAnswered:[],tableLabel:l})));this.tableDetails.set(d)}else{if(this.checkupType()==="ACTIVE_DUTY"){let a=this.checkups().map(({userSurvey:p,partnerSurvey:y})=>[p,y]).flat().filter(p=>p&&!["incomplete","complete"].includes(p)),i=re(yield Promise.all(oe(a,30).map(p=>N(B(L(this.firestore,"survey"),_(ae(),"in",p)))))).map(p=>p.data()).filter(p=>p.results.preActiveDuty||p.results.postActiveDuty),d=["I feel certain I am going to complete my current enlistment.","I feel certain that I will re-enlist in the military.","I feel like a burden to those around me.","I feel like I really belong in this community.","During the past week I felt sad or down."],l=i.reduce((p,y)=>{let C=y.results,v=C.preActiveDuty||[],h=C.postActiveDuty||[];for(let g=0;g<5;g++){let T=v[g],q=h[g];T!==void 0&&q!==void 0&&p[g].bothAnswered.push([T,q]),T!==void 0&&p[g].preAnswers.push(T),q!==void 0&&p[g].postAnswers.push(q)}return p},d.map(p=>({preAnswers:[],postAnswers:[],bothAnswered:[],tableLabel:p})));this.tableDetails.set(l)}let e=this.checkups().reduce((a,{userPreQuestion:i,partnerPreQuestion:d,userPostQuestion:l,partnerPostQuestion:p})=>(i&&l&&a.bothAnswered.push([i,l]),i&&a.preAnswers.push(i),l&&a.postAnswers.push(l),d&&p&&a.bothAnswered.push([d,p]),d&&a.preAnswers.push(d),p&&a.postAnswers.push(p),a),{preAnswers:[],postAnswers:[],bothAnswered:[],tableLabel:"What degree of happiness describes your relationship?"});this.tableDetails.update(a=>[...a,e])}}catch(e){ee("[optional-questions] ngOnInit",e),this.errorMsg=e.message}finally{this.loading=!1}})}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=A({type:t,selectors:[["arammu-optional-questions"]],inputs:{checkups:[1,"checkups"],checkupType:[1,"checkupType"]},decls:3,vars:1,consts:[[1,"error"],[1,"row"],[1,"col-auto"],[3,"tableLabel","preAnswers","postAnswers","bothAnswered"]],template:function(a,i){a&1&&M(0,Qe,2,1,"div",0)(1,Le,2,0,"div")(2,Re,3,0,"div",1),a&2&&P(i.errorMsg?0:i.loading?1:2)},dependencies:[Ne],encapsulation:2})}return t})();var we=(()=>{class t{providers=k.required();checkups=k.required();participantStatus=O(()=>{let e=this.checkups(),a=this.providers(),i=e.reduce((l,p)=>{let{user:y,partner:C,hidePartner:v}=p;return le(y)||y==="unregistered"?l.pending+=1:l.registered+=1,v||(le(C)||y=="unregistered"?l.pending+=1:l.registered+=1),l.total+=1+(v?0:1),l},{pending:0,registered:0,total:0}),d=a.reduce((l,p)=>p._offline.length+l,0);return J(Y({},i),{offline:d*2,totalCheckups:e.length+d,total:i.total+d*2})});static \u0275fac=function(a){return new(a||t)};static \u0275cmp=A({type:t,selectors:[["arammu-participant-breakdown"]],inputs:{providers:[1,"providers"],checkups:[1,"checkups"]},decls:27,vars:14,consts:[[1,"table","table-bordered","w-auto"],[1,"table-warning","text-center"],["colspan","4"]],template:function(a,i){if(a&1&&(u(0,"table",0)(1,"thead",1)(2,"tr")(3,"th",2),n(4),c()()(),u(5,"tbody")(6,"tr")(7,"th"),n(8,"Pending"),c(),u(9,"th"),n(10,"Registered"),c(),u(11,"th"),n(12,"Offline"),c(),u(13,"th"),n(14,"Total"),c()(),u(15,"tr")(16,"td"),n(17),D(18,"percent"),c(),u(19,"td"),n(20),D(21,"percent"),c(),u(22,"td"),n(23),D(24,"percent"),c(),u(25,"td"),n(26),c()()()()),a&2){let d=i.participantStatus();
1o(4),x(" Participant Breakdown (",d.totalCheckups.toLocaleString()," Checkups) "),o(13),E(" ",d.pending.toLocaleString()," (",I(18,8,d.pending/d.total),") "),o(3),E(" ",d.registered.toLocaleString()," (",I(21,10,d.registered/d.total),") "),o(3),E(" ",d.offline.toLocaleString()," (",I(24,12,d.offline/d.total),") "),o(3),x(" ",d.total.toLocaleString()," ")}},dependencies:[Z],encapsulation:2})}return t})();function ze(t,m){if(t&1&&(u(0,"div",4),n(1),c()),t&2){let e=w();o(),S(e.errorMsg)}}function Oe(t,m){t&1&&(u(0,"tr")(1,"td",5)(2,"div",6)(3,"span",7),n(4,"Loading..."),c()(),u(5,"div",8),n(6,"Loading..."),c()()())}function $e(t,m){if(t&1&&(u(0,"i"),n(1),c(),n(2)),t&2){let e=w().$implicit;o(),x("",e.immediateDate,":"),o(),E(" (",e.immediateScore,") ",e.immediateQuote," ")}}function Ue(t,m){if(t&1&&(u(0,"i"),n(1),c(),n(2)),t&2){let e=w().$implicit;o(),x("",e.delayedDate,":"),o(),x(" ",e.delayedQuote," ")}}function He(t,m){if(t&1&&(u(0,"tr")(1,"td",9),n(2),c(),u(3,"td"),M(4,$e,3,3),c(),u(5,"td"),M(6,Ue,3,2),c()()),t&2){let e=m.$implicit;o(2),x(" ",e.providerName," "),o(2),P(e.immediateQuote?4:-1),o(2),P(e.delayedQuote?6:-1)}}function je(t,m){if(t&1&&F(0,He,7,3,"tr",null,K),t&2){let e=w();Q(e.providerQuotes)}}function Xe(t,m){t&1&&(u(0,"tr")(1,"td",10),n(2,"No feedback found."),c()())}var xe=(()=>{class t{firestore=z(j).getFirestoreInstance();providers=k.required();checkupType=k.required();providerQuotes=[];loading=!0;errorMsg="";ngOnInit(){return U(this,null,function*(){try{yield Promise.all(this.providers().map(e=>U(this,null,function*(){let{trainingDays:a}=e._training;if(a[a.length-1].quiz){let d=(yield N(B(L(this.firestore,"post-quiz-survey"),_("provider","==",e.id),_("checkupType","==",this.checkupType())))).docs.map(C=>C.data()),l=d.reduce((C,v,h)=>(C.immediateQuote=h?", ":v.trainingRecommendedReason,C.immediateScore=h?", ":v.trainingRecommend?.toString(),C.immediateDate=h?", ":se(v.createdAt.toDate()),C),{immediateQuote:"",immediateScore:"",immediateDate:""}),p={delayedQuote:"",delayedDate:""},y;if(e.programEvalSurveyComplete==="complete"){let v=(yield N(B(L(this.firestore,"provider-survey"),_("providerId","==",e.id)))).docs.map(h=>h.data());y=v[0]?.createdAt,p=v.reduce((h,g,T)=>(h.delayedQuote=T?", ":g.openQuestion,h.delayedDate=T?", ":se(g.createdAt.toDate()),h),p)}(d.length||y)&&this.providerQuotes.push(J(Y(Y({},l),p),{providerName:`${e.firstName} ${e.lastName}`,sortBy:d[0]?d[0].createdAt:y||he.now()}))}}))),this.providerQuotes.sort((e,a)=>a.sortBy.toMillis()-e.sortBy.toMillis())}catch(e){this.errorMsg=e.message}finally{this.loading=!1}})}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=A({type:t,selectors:[["arammu-provider-quotes"]],inputs:{providers:[1,"providers"],checkupType:[1,"checkupType"]},decls:18,vars:3,consts:[[1,"table-responsive"],[1,"table","table-bordered","w-auto"],[1,"table-warning","text-center"],["colspan","3"],[1,"error"],["colspan","3",1,"text-center"],["role","status",1,"spinner-border"],[1,"visually-hidden"],[1,"my-auto"],[1,"text-nowrap"],["colspan","2"]],template:function(a,i){a&1&&(u(0,"div",0)(1,"table",1)(2,"thead",2)(3,"tr")(4,"th",3),n(5),c()()(),u(6,"tbody")(7,"tr")(8,"th"),n(9,"Provider"),c(),u(10,"th"),n(11,"Post Training"),c(),u(12,"th"),n(13,"Post 3 (ANY) Reports Created"),c()(),M(14,ze,2,1,"div",4),M(15,Oe,7,0,"tr")(16,je,2,0)(17,Xe,3,0,"tr"),c()()()),a&2&&(o(5),x("Provider Feedback (",i.providerQuotes.length," Responses)"),o(9),P(i.errorMsg?14:-1),o(),P(i.loading?15:i.providerQuotes.length?16:17))},encapsulation:2})}return t})();var De=()=>[];function Ye(t,m){if(t&1&&(r(0,"th"),n(1),s()),t&2){let e=m.$index;o(),x("Quiz ",e+1)}}function Ge(t,m){if(t&1&&(r(0,"td"),n(1),D(2,"percent"),s()),t&2){let e=m.$implicit,a=w();o(),E("",e," (",I(2,2,e/a.providerCount()),")")}}function Ve(t,m){if(t&1&&(r(0,"th"),n(1),s()),t&2){let e=m.$index;o(),x("CE Eval ",e+1)}}function We(t,m){if(t&1&&(r(0,"td"),n(1),D(2,"percent"),s()),t&2){let e=m.$implicit,a=w();o(),E("",e," (",I(2,2,e/a.providerCount()),")")}}var de=class{testCheckupCreated=0;testCheckupComplete=0;quizzes=[];evaluations=[];finalEval=0;missing=0;complete=0;incomplete=0;noLink=0},Ie=(()=>{class t{providers=k.required();providerCount=O(()=>this.providers().length);trainingStatus;ngOnInit(){this.trainingStatus=this.providers().reduce((e,a)=>{let{testCheckupCreated:i,testCheckupComplete:d,trainingDays:l,finalEvaluation:p,trainingComplete:y,dashboardLink:C}=a._training;if(e.testCheckupCreated+=i?1:0,e.testCheckupComplete+=d?1:0,l.forEach(({quiz:v,status:h},g)=>{v&&(e.quizzes[g]=(e.quizzes[g]||0)+1),h==="COMPLETE"&&(e.evaluations[g]=(e.evaluations[g]||0)+1)}),e.complete+=y?1:0,C){e.finalEval+=p==="COMPLETE"?1:0;let v=l.map(({status:g})=>
1g),h=v.some(g=>g==="MISSING");e.missing+=h?1:0,e.incomplete+=!h&&v.concat([p]).some(g=>g!=="COMPLETE")?1:0}else e.noLink+=1;return e},new de)}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=A({type:t,selectors:[["arammu-training-breakdown"]],inputs:{providers:[1,"providers"]},decls:73,vars:32,consts:[[1,"table","table-bordered","w-auto"],[1,"table-warning","text-center"],["colspan","6"],["tooltipText","Provider created the test checkup"],["tooltipText","Provider created report in the test checkup"],["colspan","9"],["tooltipText","Providers with ALL evaluations complete."],["tooltipText","Providers with at least one incomplete evaluation."],["tooltipText","Providers with at least one missed training."],["tooltipText","Providers with no CE-GO training link."],[1,"bg-success-subtle"]],template:function(a,i){a&1&&(r(0,"table",0)(1,"thead",1)(2,"tr")(3,"th",2),n(4,"Training Status Breakdown"),s()()(),r(5,"tbody")(6,"tr")(7,"th"),n(8," HW 1 "),f(9,"arammu-tooltip",3),s(),r(10,"th"),n(11," HW 2 "),f(12,"arammu-tooltip",4),s(),F(13,Ye,2,1,"th",null,G),r(15,"th"),n(16,"Total"),s()(),r(17,"tr")(18,"td"),n(19),D(20,"percent"),s(),r(21,"td"),n(22),D(23,"percent"),s(),F(24,Ge,3,4,"td",null,G),r(26,"td"),n(27),s()()()(),r(28,"table",0)(29,"thead",1)(30,"tr")(31,"th",5),n(32,"CE Status Breakdown"),s()()(),r(33,"tbody")(34,"tr"),F(35,Ve,2,1,"th",null,G),r(37,"th"),n(38,"Final Eval"),s(),r(39,"th"),n(40," Trained "),f(41,"arammu-tooltip",6),s(),r(42,"th"),n(43," Incomplete "),f(44,"arammu-tooltip",7),s(),r(45,"th"),n(46," Dropped "),f(47,"arammu-tooltip",8),s(),r(48,"th"),n(49," Outdated "),f(50,"arammu-tooltip",9),s(),r(51,"th"),n(52,"Total"),s()(),r(53,"tr"),F(54,We,3,4,"td",null,G),r(56,"td"),n(57),D(58,"percent"),s(),r(59,"td",10),n(60),D(61,"percent"),s(),r(62,"td"),n(63),D(64,"percent"),s(),r(65,"td"),n(66),D(67,"percent"),s(),r(68,"td"),n(69),D(70,"percent"),s(),r(71,"td"),n(72),s()()()()),a&2&&(o(13),Q(ne(30,De).constructor(i.trainingStatus.quizzes.length)),o(6),E(" ",i.trainingStatus.testCheckupCreated," (",I(20,16,i.trainingStatus.testCheckupCreated/i.providerCount()),") "),o(3),E(" ",i.trainingStatus.testCheckupComplete," (",I(23,18,i.trainingStatus.testCheckupComplete/i.providerCount()),") "),o(2),Q(i.trainingStatus.quizzes),o(3),S(i.providerCount()),o(8),Q(ne(31,De).constructor(i.trainingStatus.quizzes.length)),o(19),Q(i.trainingStatus.evaluations),o(3),E(" ",i.trainingStatus.finalEval," (",I(58,20,i.trainingStatus.finalEval/i.providerCount()),") "),o(3),E(" ",i.trainingStatus.complete," (",I(61,22,i.trainingStatus.complete/i.providerCount()),") "),o(3),E(" ",i.trainingStatus.incomplete," (",I(64,24,i.trainingStatus.incomplete/i.providerCount()),") "),o(3),E(" ",i.trainingStatus.missing," (",I(67,26,i.trainingStatus.missing/i.providerCount()),") "),o(3),E(" ",i.trainingStatus.noLink," (",I(70,28,i.trainingStatus.noLink/i.providerCount()),") "),o(3),S(i.providerCount()))},dependencies:[te,Z],encapsulation:2})}return t})();function Je(t,m){if(t&1&&f(0,"div",4),t&2){let e=w();b("innerHTML",e.errorMsg,ce)}}function Ke(t,m){t&1&&(r(0,"div",14)(1,"div",17)(2,"span",18),n(3,"Loading..."),s()(),r(4,"div",19),n(5,"Loading..."),s()())}function Ze(t,m){t&1&&(r(0,"div",15)(1,"div",19),n(2,"No Data Found."),s()())}function et(t,m){if(t&1&&(r(0,"div",16)(1,"div",7),f(2,"arammu-training-breakdown",20),s(),r(3,"div",7),f(4,"arammu-participant-breakdown",21),s(),r(5,"div",7),f(6,"arammu-provider-quotes",22),s(),r(7,"div",7),f(8,"arammu-client-quotes",23),s(),f(9,"arammu-optional-questions",24),s()),t&2){let e=w();o(2),b("providers",e.providers),o(2),b("providers",e.providers)("checkups",e.checkups),o(2),b("providers",e.providers)("checkupType",e.trainingEvalFilters.checkupType),o(2),b("checkups",e.checkups),o(),b("checkups",e.checkups)("checkupType",e.trainingEvalFilters.checkupType)}}var ie=class{organizationId;checkupType;checkupStart;checkupEnd;trainingTag;constructor(m){this.checkupStart=m.get("checkupStart")||null,this.checkupEnd=m.get("checkupEnd")||null,this.organizationId=m.get("organizationId")||"8XAbyNQceXjtYni8kMoV",this.trainingTag=m.get("trainingTag")||null,this.checkupType=m.get("checkupType")||"ACTIVE_DUTY"}},Vt=(()=>{class t{firestore=z(j).getFirestoreInstance();activatedRoute=z(ge);router=z(ve);title=z(ue);errorMsg="";loading=!0;requestedCount=0;providers=[];checkups=[];trainingEvalFilters=new ie(this.activatedRoute.snapshot.queryParamMap);constructor(){this.title.setTitle("Training Evaluation"),this.onUpdateResults()}onUpdateParams=e=>U(this,null,function*(){yield this.router.navigate([],{queryParams:Object.assign({},this.trainingEvalFilters,e),queryParamsHandling:"merge"}),this.trainingEvalFilters=new ie(this.activatedRoute.snapshot.queryParamMap),yield this.onUpdateResults()});onUpdateResults=()=>U(this,null,function*(){try{this.loading=!0;let{checkupEnd:e,checkupStart:a,organizationId:i,checkupType:d,trainingTag:l}=this.trainingEvalFilters,p=new Date(`${a||""}T00:00:00`),y=new Date(`${e||""}T23:59:59`),C=[_("organization","==",i),...l?[_("tags","array-contains",l)]:[]],v=[_("isTest","==",!1),_("type","==",d),_("organization","==",i),...a?[_("createdAt",">=",p)]:[],...e?[_("createdAt","<=",y)]:[],...l?[_("cohort","==",l)]:[]],[h,g,T,q]=yield Promise.all([N(B(L(this.firestore,"clinician"),...C)),fe(B(L(this.firestore,"requested"),...C)),N(B(L(this.firestore,"checkup"),...v)),N(B(L(this.firestore,"deleted-checkups"),...v))]);this.checkups=[...T.docs,...q.docs].map(X=>X.data()),this.requestedCount=g.data().count;let Ae=h.docs.map(X=>{let $=X.data();if($.tags.includes("MGL MOD"))return null;let pe=$.trainings.find(R=>R.checkupType===d&&(!l||R.cohort.name===l));return pe?($._training=pe,$._checkups=this.checkups.filter(R=>R.clinician===$.id),$._offline=$.generatedList.filter(R=>R.checkupType===d&&(a?R.createdAt.toDate()>=p:!0)&&(e?R.createdAt.toDate()<=y:!0)).map(R=>R.createdAt),$):null});this.providers=Ae.filter(X=>!!X)}catch(e){ee("[training-eval] onUpdateResults",e,{}),this.errorMsg=e.message}finally{this.loading=!1}});static \u0275fac=function(a){return new(a||t)};static \u0275cmp=A({type:t,selectors:[["arammu-training-eval"]],decls:21,vars:8,consts:[[1,"training-eval-container","page-card"],["title","Training Evaluation"],[3,"click"],[1,"body-container"],["role","alert",1,"alert","alert-danger",3,"innerHTML"],["role","alert",1,"alert","alert-secondary"],[1,"row","justify-content-center"],[1,"col-auto"],[1,"pe-0","pe-sm-5"],[3,"organizationIdChange","organizationId"],[3,"selectedCheckupTypeChange","selectedCheckupType"],[3,"selectedTagChange","selectedTag","allowClear"],["dateLabel","Earliest 
1Checkup Creation",3,"selectedDateStringChange","selectedDateString"],["dateLabel","Latest Checkup Creation",3,"selectedDateStringChange","selectedDateString"],["role","alert",1,"alert","alert-success","text-center"],["role","alert",1,"alert","alert-light","text-center"],[1,"row"],["role","status",1,"spinner-border"],[1,"visually-hidden"],[1,"my-auto"],[3,"providers"],[3,"providers","checkups"],[3,"providers","checkupType"],[3,"checkups"],[3,"checkups","checkupType"]],template:function(a,i){a&1&&(r(0,"div",0)(1,"arammu-page-header",1)(2,"arammu-button",2),H("click",function(){return i.onUpdateParams({providerStart:"2020-01-01",providerEnd:null,mirrorDates:"true"})}),n(3," Set to All Time "),s()(),r(4,"div",3),M(5,Je,1,1,"div",4),r(6,"div",5)(7,"div",6)(8,"div",7)(9,"div",8)(10,"arammu-organization-select",9),H("organizationIdChange",function(l){return i.onUpdateParams({organizationId:l})}),s(),r(11,"arammu-checkup-type-select",10),H("selectedCheckupTypeChange",function(l){return i.onUpdateParams({checkupType:l})}),s()()(),r(12,"div",7)(13,"div",8)(14,"arammu-select-tags",11),H("selectedTagChange",function(l){return i.onUpdateParams({trainingTag:l})}),s()()(),r(15,"div",7)(16,"arammu-timestamp-select",12),H("selectedDateStringChange",function(l){return i.onUpdateParams({checkupStart:l})}),s(),r(17,"arammu-timestamp-select",13),H("selectedDateStringChange",function(l){return i.onUpdateParams({checkupEnd:l})}),s()()()(),M(18,Ke,6,0,"div",14)(19,Ze,3,0,"div",15)(20,et,10,8,"div",16),s()()),a&2&&(o(5),P(i.errorMsg?5:-1),o(5),b("organizationId",i.trainingEvalFilters.organizationId),o(),b("selectedCheckupType",i.trainingEvalFilters.checkupType),o(3),b("selectedTag",i.trainingEvalFilters.trainingTag)("allowClear",!0),o(2),b("selectedDateString",i.trainingEvalFilters.checkupStart),o(),b("selectedDateString",i.trainingEvalFilters.checkupEnd),o(),P(i.loading?18:i.providers.length===0?19:20))},dependencies:[Ce,Ee,Te,ke,be,ye,Se,we,xe,_e,Ie],styles:[".training-eval-container[_ngcontent-%COMP%]     .table-responsive table{border-bottom:1px solid rgb(222,226,230)}.training-eval-container[_ngcontent-%COMP%]     .table-responsive tbody{display:block;max-height:300px;overflow-y:scroll}"]})}return t})();export{Vt as TrainingEvalComponent};

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.