PageSourceSearch

https://drsavealife.com/150.ca401eee62d8673f.js

js drsavealife.com collected 2026-09-24 11:04:32 UTC 53,208 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkcare_app_frontend=self.webpackChunkcare_app_frontend||[]).push([[150],{5150:(he,$,l)=>{l.r($),l.d($,{AntenatalModule:()=>fe});var r=l(177),x=l(1188),A=l(7837),M=l(8020),t=l(3953),v=l(8526),g=l(1695),j=l(9183),d=l(2920),k=l(9213);let w=(()=>{class n{constructor(e){this.location=e,this.title="",this.isWhite=!1}ngOnInit(){}goBack(){this.location.back()}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(r.aZ))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-antenatal-nav"]],inputs:{title:"title",isWhite:"isWhite"},decls:6,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between",1,"appt-nav"],[3,"click"]],template:function(i,o){1&i&&(t.j41(0,"div",0)(1,"div")(2,"a",1),t.bIt("click",function(){return o.goBack()}),t.j41(3,"mat-icon"),t.EFF(4,"arrow_back"),t.k0s()()(),t.nrm(5,"div"),t.k0s()),2&i&&(t.R7$(3),t.xc7("color",o.isWhite?"white":"black"))},dependencies:[k.An,d.DJ,d.sA,d.UI]})}}return n})();var c=l(9417),Y=l(3881);let P=(()=>{class n{constructor(e,i){this.store=e,this.antenatalEnrollmentService=i}ngOnInit(){this.currentWeek=this.antenatalEnrollmentService.weeks}onSliderChange(e){console.log(e),this.store.dispatch((0,M.uS)({week:this.currentWeek}))}formatLabel(e){return`Week ${e}`}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(v.il),t.rXU(g.G))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-baby-mum-slider"]],decls:6,vars:7,consts:[["valueText","Week","tickInterval","1","thumbLabel","",2,"width","100%",3,"valueChange","ngModelChange","min","max","displayWith","ngModel","step"],["fxLayout","row","fxLayoutAlign","space-between center"]],template:function(i,o){1&i&&(t.j41(0,"mat-slider",0),t.bIt("valueChange",function(p){return o.onSliderChange(p)}),t.mxI("ngModelChange",function(p){return t.DH7(o.currentWeek,p)||(o.currentWeek=p),p}),t.k0s(),t.j41(1,"div",1)(2,"div"),t.EFF(3),t.k0s(),t.j41(4,"div"),t.EFF(5),t.k0s()()),2&i&&(t.Y8G("min",o.antenatalEnrollmentService.minWeek)("max",o.antenatalEnrollmentService.weeks)("displayWith",o.formatLabel),t.R50("ngModel",o.currentWeek),t.Y8G("step",1),t.R7$(3),t.SpI(" Week ",o.antenatalEnrollmentService.minWeek," "),t.R7$(2),t.SpI(" Week ",o.antenatalEnrollmentService.weeks," "))},dependencies:[c.BC,c.vS,Y.IV,d.DJ,d.sA]})}}return n})();var U=l(345);let N=(()=>{class n{constructor(e){this.sanitized=e}transform(e,...i){return this.sanitized.bypassSecurityTrustHtml(e)}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(U.up,16))}}static{this.\u0275pipe=t.EJ8({name:"safeHtml",type:n,pure:!0})}}return n})();function V(n,a){1&n&&(t.j41(0,"div",6),t.nrm(1,"mat-spinner"),t.k0s())}function L(n,a){if(1&n&&(t.j41(0,"div",11),t.nrm(1,"img",12),t.k0s()),2&n){const e=a.$implicit;t.R7$(),t.Y8G("src",e,t.B4B)}}function Q(n,a){if(1&n&&(t.j41(0,"div",9),t.DNE(1,L,2,1,"div",10),t.k0s()),2&n){const e=t.XpG(2);t.R7$(),t.Y8G("ngForOf",e.babyMumData.baby_images)}}function W(n,a){1&n&&(t.j41(0,"div"),t.nrm(1,"app-baby-mum-slider"),t.k0s())}function H(n,a){if(1&n&&(t.j41(0,"div"),t.DNE(1,Q,2,1,"div",7),t.j41(2,"h3")(3,"b"),t.EFF(4),t.k0s()(),t.nrm(5,"div",8),t.nI1(6,"safeHtml"),t.DNE(7,W,2,0,"div",5),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.Y8G("ngIf",e.babyMumData.baby_images.length>0),t.R7$(3),t.SpI(" ",e.babyMumData.week_number," Weeks Old "),t.R7$(),t.Y8G("innerHTML",t.bMT(6,4,e.babyMumData.baby_text),t.npT),t.R7$(2),t.Y8G("ngIf",e.antenatalEnrollmentService.minWeek!=e.antenatalEnrollmentService.weeks)}}let J=(()=>{class n{constructor(e,i){this.store=e,this.antenatalEnrollmentService=i,this.currentIndex=0,this.loading=this.store.select("loadingBabyMumDataStatus")}ngOnInit(){this.store.select("antenatalEnrollment").subscribe({next:e=>{e?._id&&this.store.dispatch((0,M.uS)({week:this.antenatalEnrollmentService.weeks}))}}),this.store.select("babyMumData").subscribe({next:e=>{this.babyMumData=e}})}displayImage(e){return e.replace("-",",")}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(v.il),t.rXU(g.G))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-antenatal-baby"]],decls:7,vars:4,consts:[["fxLayout","column","fxLayoutAlign.gt-xs","50px","fxLayoutGap.gt-xs","50px",1,"full-screen"],["fxLayout","row","fxLayoutAlign","start center",1,"mb-2"],["fxFlex","100"],["title","Baby"],["fxLayout","row","fxLayoutAlign","center center","style","padding: 40px;",4,"ngIf"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","center center",2,"padding","40px"],["fxLayout","row wrap","fxLayoutGap","20px",4,"ngIf"],[3,"innerHTML"],["fxLayout","row wrap","fxLayoutGap","20px"],["fxFlex","100","fxFlex.gt-sm","30","style","padding-bottom: 1.5em;",4,"ngFor","ngForOf"],["fxFlex","100","fxFlex.gt-sm","30",2,"padding-bottom","1.5em"],[2,"width","100%","border-radius","20px",3,"src"]],template:function(i,o){1&i&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2),t.nrm(3,"app-antenatal-nav",3),t.k0s()(),t.DNE(4,V,2,0,"div",4),t.nI1(5,"async"),t.DNE(6,H,8,6,"div",5),t.k0s()),2&i&&(t.R7$(4),t.Y8G("ngIf",t.bMT(5,2,o.loading)&&!(null!=o.babyMumData&&o.babyMumData.id)),t.R7$(2),t.Y8G("ngIf",o.babyMumData&&(null==o.babyMumData?null:o.babyMumData.id)))},dependencies:[r.Sq,r.bT,j.LG,d.DJ,d.BO,d.sA,d.UI,w,P,r.Jj,N]})}}return n})();var S=l(9327),y=l(6354),F=l(4095),z=l(3351),b=l(6665);function q(n,a){1&n&&t.nrm(0,"div",19)}function K(n,a){1&n&&(t.j41(0,"div",20)(1,"div",21),t.EFF(2," You are overdue. Kindly visit the hospital to see a doctor. "),t.k0s()())}function Z(n,a){if(1&n&&(t.j41(0,"div")(1,"span",8),t.EFF(2,"Next Appointment"),t.k0s(),t.nrm(3,"br"),t.j41(4,"span",7),t.EFF(5),t.nI1(6,"async"),t.nI1(7,"date"),t.k0s()()),2&n){let e;const i=t.XpG(4);t.R7$(5),t.JRh(t.bMT(7,3,null==(e=t.bMT(6,1,i.antenatalEnrollmentService.$nextAppt))?null:e.returnDate))}}function tt(n,a){if(1&n&&(t.j41(0,"div",23)(1,"div",24)(2,"div")(3,"span",8),t.EFF(4),t.k0s(),t.nrm(5,"br"),t.j41(6,"span",7),t.EFF(7,"Day(s)"),t.k0s()(),t.j41(8,"div")(9,"span",8),t.EFF(10),t.k0s(),t.nrm(11,"br"),t.j41(12,"span",7),t.EFF(13,"Trimester"),t.k0s()(),t.j41(14,"div")(15,"span",8),t.EFF(16),t.k0s(),t.nrm(17,"br"),t.j41(18,"span",7),t.EFF(19,"Days left"),t.k0s()()(),t.nrm(20,"hr"),t.DNE(21,Z,8,5,"div",25),t.nI1(22,"async"),t.k0s()),2&n){let e;const i=t.XpG(3);t.R7$(4),t.JRh(i.antenatalEnrollmentService.days),t.R7$(6),t.JRh(i.antenatalEnrollmentService.trimester),t.R7$(6),t.JRh(i.antenatalEnrollmentService.daysLeft),t.R7$(5),t.Y8G("ngIf",null==(e=t.bMT(22,4,i.antenatalEnrollmentService.$nextAppt))?null:e.returnDate)}}function et(n,a){if(1&n&&t.DNE(0,tt,23,6,"div",22),2&n){const e=t.XpG(2);t.Y8G("ngIf",null==e.antenatalEnrollmentService.antenatal?null:e.antenatalEnrollmentService.antenatal._id
1)}}function nt(n,a){if(1&n&&(t.j41(0,"div",10),t.DNE(1,q,1,0,"div",11),t.nI1(2,"async"),t.j41(3,"div",12)(4,"div",13)(5,"div",14)(6,"div",13)(7,"div",15)(8,"span",16),t.EFF(9,"Week"),t.k0s(),t.j41(10,"span",17),t.EFF(11),t.k0s()(),t.j41(12,"div",15)(13,"span",16),t.EFF(14,"Day"),t.k0s(),t.j41(15,"span",17),t.EFF(16),t.k0s()()()()()(),t.DNE(17,K,3,0,"div",18)(18,et,1,1,"ng-template",null,0,t.C5r),t.k0s()),2&n){const e=t.sdS(19),i=t.XpG();t.R7$(),t.Y8G("ngIf",t.bMT(2,7,i.isHandset$)),t.R7$(4),t.xc7("background",i.antenatalEnrollmentService.backgroundRadial),t.R7$(6),t.SpI(" ",i.antenatalEnrollmentService.weeks,""),t.R7$(5),t.SpI(" ",i.antenatalEnrollmentService.remainingDaysInWeek,""),t.R7$(),t.Y8G("ngIf",(null==i.antenatalEnrollmentService.antenatal?null:i.antenatalEnrollmentService.antenatal._id)&&i.antenatalEnrollmentService.daysLeft<=0)("ngIfElse",e)}}function it(n,a){if(1&n){const e=t.RV6();t.j41(0,"div")(1,"div",26),t.bIt("click",function(){const o=t.eBV(e).$implicit;return t.Njj(o.action())}),t.nrm(2,"span",27)(3,"br"),t.j41(4,"span",28),t.EFF(5),t.k0s()()()}if(2&n){const e=a.$implicit;t.R7$(),t.HbH(e.extraCss),t.R7$(),t.Y8G("innerHTML",e.title,t.npT),t.R7$(3),t.JRh(e.icon)}}let ot=(()=>{class n{constructor(e,i,o,s,p){this.emergencyService=e,this.breakpointObserver=i,this.router=o,this.antenatalEnrollmentService=s,this.bottomSheet=p,this.links=[{title:"Baby",extraCss:"dark-box",icon:"\u{1f476}\u{1f3fb}",action:()=>{this.router.navigateByUrl("/antenatal/baby")}},{title:"Mum",extraCss:"dark-box",icon:"\u{1f930}\u{1f3fb}",action:()=>{this.router.navigateByUrl("/antenatal/mum")}},{title:"Weekly Questions",extraCss:"dark-box",icon:"\u2754",action:()=>{this.router.navigateByUrl("/antenatal/question")}},{title:"My Routine Check",extraCss:"dark-box",icon:"\u{1f6bc}",action:()=>{this.openBottomSheet()}},{title:"Any Emergency?",extraCss:"red-box",icon:"\u26a0",action:()=>{this.emergencyService.haveEmergency()}}],this.isHandset$=this.breakpointObserver.observe([S.Rp.Handset,S.Rp.Tablet]).pipe((0,y.T)(m=>m.matches))}ngOnInit(){this.antenatalEnrollmentService.fetchNextAppointment()}openBottomSheet(){this.bottomSheet.open(F.B,{hasBackdrop:!1,data:{}})}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(z.$),t.rXU(S.QP),t.rXU(x.Ix),t.rXU(g.G),t.rXU(b.VK))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-antenatal-home"]],hostAttrs:[1,"fullFlex"],decls:15,vars:9,consts:[["stillPregnant",""],["fxFlex","100"],["title","My Baby&I",3,"isWhite"],["style","position: relative",4,"ngIf"],[1,"box-container"],[4,"ngFor","ngForOf"],[1,"dark-div","lighter-div","due-date-box"],[1,"gray-text"],[1,"purple-text"],["alt","calender","src","/assets/images/calender.png",1,"due-date-img"],[2,"position","relative"],["class","circle-container",4,"ngIf"],[1,"circle-section"],[1,"circle"],[1,"circle-wrap"],[1,"circle-row"],[1,"sub-title"],[1,"weeks"],["class","dark-div white-div mt-4 mb-4","fxLayout","row","fxLayoutGap","30px","fxLayoutAlign","center",4,"ngIf","ngIfElse"],[1,"circle-container"],["fxLayout","row","fxLayoutGap","30px","fxLayoutAlign","center",1,"dark-div","white-div","mt-4","mb-4"],[2,"color","red"],["class","white-box mt-4 mb-4",4,"ngIf"],[1,"white-box","mt-4","mb-4"],[1,"white-row"],[4,"ngIf"],[3,"click"],[3,"innerHTML"],[2,"font-size","25px"]],template:function(i,o){if(1&i&&(t.j41(0,"div")(1,"div")(2,"div",1),t.nrm(3,"app-antenatal-nav",2),t.nI1(4,"async"),t.k0s()(),t.DNE(5,nt,20,9,"div",3),t.j41(6,"div",4),t.DNE(7,it,6,4,"div",5),t.k0s(),t.j41(8,"div",6)(9,"p",7),t.EFF(10,"Due Date:"),t.k0s(),t.j41(11,"p",8),t.EFF(12),t.nI1(13,"date"),t.k0s(),t.nrm(14,"img",9),t.k0s()()),2&i){let s;t.R7$(3),t.Y8G("isWhite",null!==(s=t.bMT(4,4,o.isHandset$))&&void 0!==s&&s),t.R7$(2),t.Y8G("ngIf",null==o.antenatalEnrollmentService.antenatal?null:o.antenatalEnrollmentService.antenatal._id),t.R7$(2),t.Y8G("ngForOf",o.links),t.R7$(5),t.SpI(" ",t.i5U(13,6,null==o.antenatalEnrollmentService.antenatal?null:o.antenatalEnrollmentService.antenatal.expectedDeliveryDate,"longDate")," ")}},dependencies:[r.Sq,r.bT,d.DJ,d.BO,d.sA,d.UI,w,r.Jj,r.vh],styles:[".dark-div[_ngcontent-%COMP%]{border-radius:12px;position:relative;width:100%;background-color:var(--dl-color-dark-blue);padding:10px;color:#c4e3ff;cursor:pointer}.box-container[_ngcontent-%COMP%]{display:grid!important;grid-template-columns:1fr 1fr;gap:10px}.due-date-box[_ngcontent-%COMP%]{padding:20px;position:relative;margin-top:15px}.dark-box[_ngcontent-%COMP%]{cursor:pointer;padding:12px;border-radius:8px;background:#3a156a;color:#fff;font-size:16px;font-weight:800}.red-box[_ngcontent-%COMP%]{cursor:pointer;padding:12px;border-radius:8px;background:#de3e3d;color:#fff;font-size:16px;font-weight:800}.circle-wrap[_ngcontent-%COMP%]{height:10.5em;width:10.5em;border-radius:50%;padding:5px}.circle-section[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;color:#fff}.circle-container[_ngcontent-%COMP%]{position:absolute;background:#7a2bdf;inset:-50% -50% 6em;z-index:-2}.light-div[_ngcontent-%COMP%]{background:#eadaff!important;color:#fff}.weeks[_ngcontent-%COMP%]{font-size:3em;font-weight:700}
1.circle[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;background:#7a2bdf;height:100%;width:100%;border-radius:50%}.circle-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto auto auto;justify-content:center;align-items:center}.sub-title[_ngcontent-%COMP%]{font-size:14px;font-weight:800;line-height:10px;letter-spacing:0em;color:#eadaff}.lighter-div[_ngcontent-%COMP%]{background:#eadaff!important;color:#1e88e5}.white-div[_ngcontent-%COMP%]{background-color:#fff!important;color:#7a2bdf;border:2px solid #eadaff;border-radius:15px}.white-box[_ngcontent-%COMP%]{background-color:#fff;border-radius:16px;border:2px;color:#fff;border:2px solid #eadaff;color:#7a2bdf;padding:30px}.white-box[_ngcontent-%COMP%]   .white-row[_ngcontent-%COMP%]{display:flex;justify-content:start;gap:50px}.white-box[_ngcontent-%COMP%]   .appointment[_ngcontent-%COMP%]{margin-top:5px;background:#7a2bdf;color:#fff;padding:15px;border-radius:8px;text-align:center}.purple-text[_ngcontent-%COMP%]{color:#7a2bdf;font-size:16px;font-weight:900;line-height:20px;letter-spacing:0em}.gray-text[_ngcontent-%COMP%]{color:#63738a;font-size:14px;font-weight:700;line-height:18px;letter-spacing:0em}.due-date-img[_ngcontent-%COMP%]{position:absolute;right:0;bottom:-50px;mix-blend-mode:overlay;color:#7a2bdf}"]})}}return n})();function at(n,a){if(1&n&&(t.j41(0,"div",9),t.nrm(1,"img",10),t.k0s()),2&n){const e=a.$implicit;t.R7$(),t.Y8G("src",e,t.B4B)}}function st(n,a){if(1&n&&(t.j41(0,"div",7),t.DNE(1,at,2,1,"div",8),t.k0s()),2&n){const e=t.XpG(2);t.R7$(),t.Y8G("ngForOf",e.babyMumData.mother_images)}}function lt(n,a){1&n&&(t.j41(0,"div"),t.nrm(1,"app-baby-mum-slider"),t.k0s())}function rt(n,a){if(1&n&&(t.j41(0,"div"),t.DNE(1,st,2,1,"div",5),t.j41(2,"h3")(3,"b"),t.EFF(4),t.k0s()(),t.nrm(5,"div",6),t.nI1(6,"safeHtml"),t.DNE(7,lt,2,0,"div",4),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.Y8G("ngIf",e.babyMumData.mother_images.length>0),t.R7$(3),t.SpI(" Week ",e.babyMumData.week_number," of Pregnancy "),t.R7$(),t.Y8G("innerHTML",t.bMT(6,4,e.babyMumData.mother_text),t.npT),t.R7$(2),t.Y8G("ngIf",e.antenatalEnrollmentService.minWeek!=e.antenatalEnrollmentService.weeks)}}let ct=(()=>{class n{constructor(e,i){this.store=e,this.antenatalEnrollmentService=i,this.currentIndex=0}ngOnInit(){this.store.select("antenatalEnrollment").subscribe({next:e=>{e?._id&&this.store.dispatch((0,M.uS)({week:this.antenatalEnrollmentService.weeks-this.currentIndex}))}}),this.store.select("babyMumData").subscribe({next:e=>{this.babyMumData=e}})}displayImage(e){return e.replace("-",",")}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(v.il),t.rXU(g.G))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-antenatal-mum"]],decls:5,vars:1,consts:[["fxLayout","column","fxLayoutAlign.gt-xs","50px","fxLayoutGap.gt-xs","50px",1,"full-screen"],["fxLayout","row","fxLayoutAlign","start center",1,"mb-2"],["fxFlex","100"],["title","Mum"],[4,"ngIf"],["fxLayout","row wrap","fxLayoutGap","20px",4,"ngIf"],[3,"innerHTML"],["fxLayout","row wrap","fxLayoutGap","20px"],["fxFlex","100","fxFlex.gt-sm","30","class","p-2","style","padding-bottom: 1.5em;",4,"ngFor","ngForOf"],["fxFlex","100","fxFlex.gt-sm","30",1,"p-2",2,"padding-bottom","1.5em"],[2,"width","100%","border-radius","20px",3,"src"]],template:function(i,o){1&i&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2),t.nrm(3,"app-antenatal-nav",3),t.k0s()(),t.DNE(4,rt,8,6,"div",4),t.k0s()),2&i&&(t.R7$(4),t.Y8G("ngIf",o.babyMumData&&(null==o.babyMumData?null:o.babyMumData.id)))},dependencies:[r.Sq,r.bT,d.DJ,d.BO,d.sA,d.UI,w,P,N]})}}return n})();var C=l(9632),pt=l(3989),dt=l(8032),mt=l.n(dt),ut=l(8834),I=l(9631),_=l(2102);function ft(n,a){1&n&&(t.j41(0,"div",6),t.nrm(1,"mat-spinner"),t.k0s())}function ht(n,a){if(1&n&&t.nrm(0,"div",16),2&n){const e=t.XpG().$implicit;t.xc7("background-color","#"+e.key)}}function gt(n,a){if(1&n&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&n){const e=t.XpG().$implicit;t.R7$(),t.JRh(e.title)}}function vt(n,a){if(1&n&&(t.j41(0,"div")(1,"mat-form-field")(2,"mat-label"),t.EFF(3,"Enter your Answer"),t.k0s(),t.nrm(4,"textarea",17),t.k0s()()),2&n){const e=t.XpG().$implicit,i=t.XpG(3);t.R7$(4),t.Y8G("placeholder",e.key)("formControl",i.manualAnswer)}}function _t(n,a){if(1&n){const e=t.RV6();t.j41(0,"div",14),t.bIt("click",function(){const o=t.eBV(e).$implicit,s=t.XpG(3);return t.Njj(s.questions[s.activeQuestionIndex].answers.length>1?s.selectAnswer(o.key,o.title):"")}),t.DNE(1,ht,1,2,"div",15)(2,gt,2,1,"span",8)(3,vt,5,2,"div",8),t.k0s()}if(2&n){const e=a.$implicit,i=t.XpG(3);t.AVh("selected",i.isSelected(e.key)&&i.questions[i.activeQuestionIndex].answers.length>1)("urinalysis",i.questions[i.activeQuestionIndex].key===i.urinalysis),t.R7$(),t.Y8G("ngIf",i.questions[i.activeQuestionIndex].answers.length>1&&i.questions[i.activeQuestionIndex].key===i.urinalysis),t.R7$(),t.Y8G("ngIf",i.questions[i.activeQuestionIndex].answers.length>1&&i.questions[i.activeQuestionIndex].key!=i.urinalysis),t.R7$(),t.Y8G("ngIf",1===i.questions[i.activeQuestionIndex].answers.length)}}function xt(n,a){if(1&n){const e=t.RV6();t.j41(0,"div")(1,"button",18),t.bIt("click",function(){t.eBV(e);const o=t.XpG(3);return t.Njj(o.nextQuestion())}),t.j41(2,"span"),t.EFF(3,"Next \u27f6 "),t.k0s()()()}}function bt(n,a){if(1&n){const e=t.RV6();t.j41(0,"div")(1,"button",18),t.bIt("click",function(){t.eBV(e);const o=t.XpG(3);return t.Njj(o.submitQA())}),t.j41(2,"span"),t.EFF(3,"Submit \u2714"),t.k0s()()()}}function kt(n,a){if(1&n){const e=t.RV6();t.j41(0,"div",9)(1,"div")(2,"p",10),t.EFF(3),t.k0s()(),t.j41(4,"div"),t.nrm(5,"div"),t.DNE(6,_t,4,7,"div",11),t.k0s(),t.nrm(7,"div"),t.j41(8,"div",12)(9,"div")(10,"button",13),t.bIt("click",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.prevQuestion())}),t.j41(11,"span"),t.EFF(12),t.k0s()()(),t.DNE(13,xt,4,0,"div",8)(14,bt,4,0,"div",8),t.k0s()()}if(2&n){const e=t.XpG(2);t.R7$(3),t.JRh(e.questions[e.activeQuestionIndex].title),t.R7$(3),t.Y8G("ngForOf",e.questions[e.activeQuestionIndex].answers),t.R7$(6),t.JRh(0===e.activeQuestionIndex?"\u27f5 Back":"\u27f5 Previous"),t.R7$(),t.Y8G("ngIf",e.activeQuestionIndex<e.questions.length-1),t.R7$(),t.Y8G("ngIf",e.activeQuestionIndex==e.questions.length-1)}}function yt(n,a){if(1&n){const e=t.RV6();t.j41(0,"div")(1,"div",19)(2,"div",20),t.nrm(3,"img",21),t.j41(4,"span",22),t.EFF(5),t.k0s(),t.j41(6,"span",23),t.EFF(7),t.k0s(),t.nrm(8,"div",24),t.k0s(),t.j41(9,"div",25)(10,"div",26),t.bIt("click",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.openBottomSheet())}),t.EFF(11,"My routine check"),t.k0s(),t.j41(12,"div",27),t.bIt("click",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.location.back())}),t.EFF(13,"Go back"),t.k0s()()()()}if(2&n){let e;const i=t.XpG(2);t.R7$(5),t.SpI(" Your Week ",i.antenatalEnrollmentService.weeks," Result "),t.R7$(2),t.SpI(" ",null!==(e=null==i.diagnosis?null:i.diagnosis.title)&&void 0!==e?e:"Your data has been sent to the doctor. Feedback will be given if need be."," ")}}function Ft(n,a){if(1&n&&t.DNE(0,kt,15,5,"div",7)(1,yt,14,2,"div",8),2&n){const e=t.XpG();t.Y8G("ngIf",e.weeklyChecklist&&(null==e.weeklyChecklist?null:e.weeklyChecklist.key)&&e.answeredWeeklyChecklist.length<1),t.R7$(),t.Y8G("ngIf",e.answeredWeeklyChecklist.length>0)}}let wt=(()=>{class n{constructor(e,i,o,s){this.store=e,this.antenatalEnrollmentService=i,this.location=o,this.bottomSheet=s,this.activeQuestionIndex=0,this.qa=[],this.weeklyChecklist={},this.questions=[],this.urinalysis="basic-urinalysis",this.manualAnswer=new c.MJ(""),this.subs=[],this.loadingWeeklyData=this.store.select("loadingWeeklyData"),this.loadingDiagnosisData=this.store.select("loadingDiagnosisData"),this.answeredWeeklyChecklist=[],this.selectAnswer=(p,m)=>{if(console.log(`${p} ${m}`),!this.weeklyChecklist?.questions||!this.questions[this.activeQuestionIndex])return;const u=this.qa.find(h=>h.questionKey===this.questions[this.activeQuestionIndex].key);
1u?(console.log(`${u.answerKey} !== ${p} ${u.answerKey!==p}`),u.answerKey!==p&&(u.answerKey=p||m||"",u.answerTitle=m??"")):this.qa.push({questionKey:this.questions[this.activeQuestionIndex].key,answerKey:p||m||"",complaintKey:`${pt.u}${this.antenatalEnrollmentService.weeks}`,answerTitle:m??"",questionTitle:this.questions[this.activeQuestionIndex].title}),console.log(this.qa),this.manualAnswer.reset()},this.nextQuestion=()=>{this.activeQuestionIndex!==this.questions.length-1&&(this.manualAnswer.value&&this.selectAnswer(void 0,`${this.manualAnswer.value}`||""),this.activeQuestionIndex+=1,console.log(this.activeQuestionIndex),this.skipQuestion())},this.prevQuestion=()=>{console.log(this.activeQuestionIndex),0!==this.activeQuestionIndex&&(this.activeQuestionIndex-=1,this.skipQuestion(-1))},this.skipQuestion=(p=1)=>{this.activeQuestionIndex>this.questions.length-1||this.activeQuestionIndex<1&&-1===p||(this.questions[this.activeQuestionIndex].title?.includes("Unit")||this.questions[this.activeQuestionIndex].dep&&!this.qaFlatWithDash?.find(m=>m===this.questions[this.activeQuestionIndex].dep))&&(console.log("Skipping"),this.activeQuestionIndex+=p,this.skipQuestion(p))}}ngOnDestroy(){this.subs.forEach(e=>{e.closed||e.unsubscribe()})}ngOnInit(){const e=this.manualAnswer.valueChanges.pipe((0,y.T)(i=>{const o=this.manualAnswer.value?.split(" ");return o&&o?.length>50&&this.manualAnswer.setValue(o.slice(0,51).join()),i})).subscribe();this.subs.push(e),this.store.select("questionAndAnswers").subscribe({next:i=>{this.answeredWeeklyChecklist=i}}),this.store.select("weeklyChecklistResult").subscribe({next:i=>{this.diagnosis=i}}),this.store.select("antenatalEnrollment").subscribe({next:i=>{i?._id&&this.store.dispatch((0,C.m8)({week:this.antenatalEnrollmentService.weeks}))}}),this.store.select("weeklyChecklist").subscribe({next:i=>{this.weeklyChecklist=i,this.questions=this.weeklyChecklist.questions??[]}})}isSelected(e){const i=void 0!==this.qa.find(o=>this.questions[this.activeQuestionIndex].key+e===`${o.questionKey}${o.answerKey}`);return i&&this.selectAnswer(e),i}get qaFlatWithDash(){return this.qa.map(e=>`${e.questionKey}-${e.answerKey}`)}submitQA(){mt().fire({title:"You cannot change your answers after submitting. Are you sure you want to submit?",icon:"question",confirmButtonText:"Yes",denyButtonText:"No",showCancelButton:!0}).then(e=>{e.isConfirmed&&this.submitQAFunc()})}submitQAFunc(){this.manualAnswer.value&&this.selectAnswer(void 0,this.manualAnswer.value||""),this.store.dispatch((0,C.tH)({qa:this.qa.map(e=>({hospitalNumber:this.antenatalEnrollmentService.antenatal?.hospitalNumber,antenatalEnrollmentId:this.antenatalEnrollmentService.antenatal?._id,patientId:this.antenatalEnrollmentService.antenatal?.patientId,patientFirstName:this.antenatalEnrollmentService.antenatal?.patientFirstName,patientLastName:this.antenatalEnrollmentService.antenatal?.patientLastName,week:this.antenatalEnrollmentService.weeks,day:this.antenatalEnrollmentService.days,questionKey:e.questionKey,questionText:e.questionTitle,answerKey:e.answerKey,answerText:e.answerTitle}))})),console.log("here oooh")}openBottomSheet(){this.bottomSheet.open(F.B,{hasBackdrop:!1,data:{}})}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(v.il),t.rXU(g.G),t.rXU(r.aZ),t.rXU(b.VK))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-antenatal-question-of-day"]],decls:9,vars:8,consts:[["notLoading",""],["fxLayout","column","fxLayoutAlign.gt-xs","50px","fxLayoutGap.gt-xs","50px",1,"full-screen"],["fxLayout","row","fxLayoutAlign","start center",1,"mb-2"],["fxFlex","100"],[3,"title"],["fxLayout","row","fxLayoutAlign","center center","style","padding: 40px;",4,"ngIf","ngIfElse"],["fxLayout","row","fxLayoutAlign","center center",2,"padding","40px"],["class","questions-container",4,"ngIf"],[4,"ngIf"],[1,"questions-container"],[1,"question"],["class","answer-box",3,"selected","urinalysis","click",4,"ngFor","ngForOf"],[1,"next-prev-container"],["mat-button","",1,"previous-btn",3,"click"],[1,"answer-box",3,"click"],["style","width: 50px; height: 20px",3,"background-color",4,"ngIf"],[2,"width","50px","height","20px"],["title","Answer","matInput","",3,"placeholder","formControl"],["mat-button","",1,"next-btn",3,"click"],[1,"diagnosis-container"],[1,"diagnosis-box"],["alt","checklist img","src","../../../../assets/images/checklist-illustration-resized.png",1,"checklist-img"],[1,"title"],[1,"subtitle"],[1,"line"],[1,"diagnosis-btns"],[1,"goto-routine-dark",3,"click"],[1,"goto-routine-light",3,"click"]],template:function(i,o){if(1&i&&(t.j41(0,"div",1)(1,"div",2)(2,"div",3),t.nrm(3,"app-antenatal-nav",4),t.k0s()(),t.DNE(4,ft,2,0,"div",5),t.nI1(5,"async"),t.nI1(6,"async"),t.DNE(7,Ft,2,2,"ng-template",null,0,t.C5r),t.k0s()),2&i){const s=t.sdS(8);t.R7$(3),t.Mz_("title","Week ",o.antenatalEnrollmentService.weeks," Checklist"),t.R7$(),t.Y8G("ngIf",t.bMT(5,4,o.loadingWeeklyData)||t.bMT(6,6,o.loadingDiagnosisData))("ngIfElse",s)}},dependencies:[r.Sq,r.bT,c.me,c.BC,ut.$z,I.fg,_.rl,_.nJ,j.LG,d.DJ,d.BO,d.sA,d.UI,c.l_,w,r.Jj],styles:[".content[_ngcontent-%COMP%]{padding:25px;min-height:100%}.next-prev-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;gap:10px;margin-top:20px}.next-btn[_ngcontent-%COMP%]{border:1px solid #7A2BDF;background:#7a2bdf;padding:16px 38px;border-radius:8px}.next-btn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-family:Mulish;font-size:16px;font-weight:700;line-height:20px;letter-spacing:0em;text-align:center;color:#fff}.previous-btn[_ngcontent-%COMP%]{border:1px solid #7A2BDF;padding:16px 38px;border-radius:8px}.previous-btn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-family:Mulish;font-size:16px;font-weight:700;line-height:20px;letter-spacing:0em;text-align:center;color:#7a2bdf}.checklist-img[_ngcontent-%COMP%]{margin-top:-50%}.diagnosis-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:50px;margin-left:20px;margin-right:20px}.goto-routine-dark[_ngcontent-%COMP%]{padding:16px 24px;border-radius:8px;background:#7a2bdf;border:2px solid #7A2BDF;color:#fff;text-align:center;margin-bottom:5px;font-family:Mulish;font-size:16px;font-weight:700}.goto-routine-light[_ngcontent-%COMP%]{padding:16px 24px;border-radius:8px;border:2px solid #7A2BDF;color:#7a2bdf;background:#fff;text-align:center;margin-bottom:5px;font-family:Mulish;font-size:16px;font-weight:700}.diagnosis-box[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:16px;border-radius:16px;gap:10px;background:#3a156a;margin-top:50%}.diagnosis-box[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-family:Mulish;font-size:34px;font-weight:900;text-align:center;color:#fff}.diagnosis-box[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]{color:#eadaff;font-family:Mulish;font-size:14px;font-weight:700;text-align:center}.diagnosis-box[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%]{border:2px solid #EADAFF;
1display:flex;margin-top:20px;margin-right:100px;margin-left:100px}.disabled[_ngcontent-%COMP%]{background-color:gray!important}.questions-container[_ngcontent-%COMP%]{padding:15px}.question[_ngcontent-%COMP%]{font-family:Mulish;font-size:34px;font-weight:800;line-height:43px;letter-spacing:0em;text-align:left;color:#3a156a}.answer-box[_ngcontent-%COMP%]{color:#7a2bdf;border:1px solid #DFE5ED;padding:24px 16px;border-radius:8px;margin-top:10px;color:#3a156a}.answer-box[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-family:Mulish;font-size:16px;font-weight:700;line-height:20px;letter-spacing:0em;text-align:left}.answer-box.selected[_ngcontent-%COMP%]{background:#7a2bdf;color:#fff!important}.urinalysis[_ngcontent-%COMP%]{padding:5px!important}"]})}}return n})();function Ct(n,a){1&n&&t.nrm(0,"router-outlet")}function It(n,a){1&n&&(t.j41(0,"div",3),t.nrm(1,"mat-spinner"),t.k0s())}let Et=(()=>{class n{constructor(e,i){this.store=e,this.antenatalEnrollmentService=i}ngOnInit(){this.store.select("antenatalEnrollment").subscribe({next:e=>{this.antenatal=e,e._id&&this.store.dispatch((0,C.p4)())}}),this.store.select("weeklyDiagnosisKey").subscribe({next:e=>{console.log(e),e.diagnosis_key&&this.store.dispatch((0,C.cR)({key:e.diagnosis_key}))}})}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(v.il),t.rXU(g.G))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-antenatal"]],decls:4,vars:2,consts:[["noAntenatal",""],[1,"p10"],[4,"ngIf","ngIfElse"],["fxLayout","row","fxLayoutAlign","center center",2,"padding","40px"]],template:function(i,o){if(1&i&&(t.j41(0,"div",1),t.DNE(1,Ct,1,0,"router-outlet",2)(2,It,2,0,"ng-template",null,0,t.C5r),t.k0s()),2&i){const s=t.sdS(3);t.R7$(),t.Y8G("ngIf",null==o.antenatal?null:o.antenatal._id)("ngIfElse",s)}},dependencies:[r.bT,x.n3,j.LG,d.DJ,d.sA],styles:[".full-screen{padding-bottom:0;height:90vh}\n"],encapsulation:2})}}return n})();var T=l(7374),f=l(3598),G=l(2229),D=l(6600),B=l(7575),R=l(2798),E=l(4165),O=l(3210);const Mt=["page"];function jt(n,a){if(1&n){const e=t.RV6();t.j41(0,"div")(1,"mat-icon",12),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.cancelBtn())}),t.EFF(2,"cancel"),t.k0s()()}}function St(n,a){if(1&n&&(t.j41(0,"div"),t.nrm(1,"app-top-menu-bar",13),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.Y8G("menuData",e.headerConfig)}}function Tt(n,a){if(1&n&&(t.j41(0,"div",14)(1,"span",15),t.EFF(2),t.k0s(),t.nrm(3,"img",16),t.k0s()),2&n){const e=t.XpG();t.R7$(2),t.Lme(" ",e.antenatalEnrollmentService.weeks," week",e.antenatalEnrollmentService.weeks>1?"s":""," ")}}function Gt(n,a){1&n&&(t.j41(0,"div",17)(1,"span",8),t.EFF(2,"Recorded Baby Heart Rate"),t.k0s(),t.j41(3,"mat-form-field",18)(4,"mat-label"),t.EFF(5,"Filter by week"),t.k0s(),t.j41(6,"mat-select")(7,"mat-option",19),t.EFF(8,"First option"),t.k0s(),t.j41(9,"mat-option",20),t.EFF(10,"Second option"),t.k0s()()()())}function Dt(n,a){if(1&n){const e=t.RV6();t.j41(0,"div",26),t.bIt("click",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.submitFhr())}),t.EFF(1,"Submit"),t.k0s()}}function Bt(n,a){if(1&n&&(t.j41(0,"div",21)(1,"div",22)(2,"mat-form-field",23)(3,"mat-label"),t.EFF(4,"Type in your baby's heart rate (bpm)"),t.k0s(),t.nrm(5,"input",24),t.k0s()(),t.DNE(6,Dt,2,0,"div",25),t.k0s()),2&n){const e=t.XpG();t.Y8G("formGroup",e.form),t.R7$(6),t.Y8G("ngIf",null==e.form.value.fhr?null:e.form.value.fhr.value)}}function Rt(n,a){1&n&&t.nrm(0,"mat-progress-bar",27)}function Ot(n,a){if(1&n&&(t.j41(0,"div",29)(1,"div",7)(2,"div",30)(3,"span",31),t.EFF(4),t.nI1(5,"vitalsWeek"),t.k0s(),t.j41(6,"span",32),t.EFF(7),t.nI1(8,"date"),t.k0s()(),t.j41(9,"div",30)(10,"span",33),t.EFF(11),t.k0s()()(),t.nrm(12,"div",34),t.k0s()),2&n){const e=a.$implicit,i=t.XpG(2);t.R7$(4),t.SpI("Week ",t.i5U(5,3,e.timeTaken,i.lmp),""),t.R7$(3),t.JRh(t.i5U(8,6,e.timeTaken,"medium")),t.R7$(4),t.SpI("",null==e.fhr?null:e.fhr.value," bpm")}}function $t(n,a){if(1&n&&(t.j41(0,"div"),t.DNE(1,Ot,13,9,"div",28),t.nI1(2,"async"),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.Y8G("ngForOf",t.bMT(2,1,e.vitals))}}const Nt=["page"];function Xt(n,a){if(1&n){const e=t.RV6();t.j41(0,"div")(1,"mat-icon",12),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.cancelBtn())}),t.EFF(2,"cancel"),t.k0s()()}}function Yt(n,a){if(1&n&&(t.j41(0,"div"),t.nrm(1,"app-top-menu-bar",13),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.Y8G("menuData",e.headerConfig)}}function Ut(n,a){if(1&n&&(t.j41(0,"div",14)(1,"span",15),t.EFF(2),t.k0s(),t.nrm(3,"img",16),t.k0s()),2&n){const e=t.XpG();t.R7$(2),t.Lme(" ",e.antenatalEnrollmentService.weeks," week",e.antenatalEnrollmentService.weeks>1?"s":""," ")}}function Vt(n,a){1&n&&(t.j41(0,"div",17)(1,"span",8),t.EFF(2,"Recorded Blood Pressure"),t.k0s(),t.j41(3,"mat-form-field",18)(4,"mat-label"),t.EFF(5,"Filter by week"),t.k0s(),t.j41(6,"mat-select")(7,"mat-option",19),t.EFF(8,"First option"),t.k0s(),t.j41(9,"mat-option",20),t.EFF(10,"Second option"),t.k0s()()()())}function Lt(n,a){if(1&n){const e=t.RV6();t.j41(0,"div",28),t.bIt("click",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.submitBp())}),t.EFF(1,"Submit"),t.k0s()}}function Qt(n,a){if(1&n&&(t.j41(0,"div",21)(1,"div",22),t.nrm(2,"div"),t.j41(3,"mat-form-field",23)(4,"mat-label"),t.EFF(5,"Systolic (mmHg)"),t.k0s(),t.j41(6,"div",24),t.nrm(7,"input",25),t.k0s()(),t.j41(8,"mat-form-field",23)(9,"mat-label"),t.EFF(10,"Diastolic (mmHg)"),t.k0s(),t.j41(11,"div",26),t.nrm(12,"input",25),t.k0s()(),t.nrm(13,"div"),t.k0s(),t.DNE(14,Lt,2,0,"div",27),t.k0s()),2&n){const e=t.XpG();t.Y8G("formGroup",e.form),t.R7$(14),t.Y8G("ngIf",(null==e.form.value.cystolic?null:e.form.value.cystolic.value)&&(null==e.form.value.diastolic?null:e.form.value.diastolic.value))}}function Wt(n,a){1&n&&t.nrm(0,"mat-progress-bar",29)}function Ht(n,a){if(1&n&&(t.j41(0,"span",37),t.EFF(1),t.k0s()),2&n){const e=t.XpG().$implicit;t.R7$(),t.Lme("",null==e.bloodPressure.cystolic?null:e.bloodPressure.cystolic.value,"/",null==e.bloodPressure.diastolic?null:e.bloodPressure.diastolic.value," mmHg")}}function Jt(n,a){if(1&n&&(t.j41(0,"div",31)(1,"div",7)(2,"div",32)(3,"span",33),t.EFF(4),t.nI1(5,"vitalsWeek"),t.k0s(),t.j41(6,"span",34),t.EFF(7),t.nI1(8,"date"),t.k0s()(),t.j41(9,"div",32),t.DNE(10,Ht,2,2,"span",35),t.k0s()(),t.nrm(11,"div",36),t.k0s()),2&n){const e=a.$implicit,i=t.XpG(2);t.R7$(4),t.SpI("Week ",t.i5U(5,3,e.timeTaken,i.lmp),""),t.R7$(3),t.JRh(t.i5U(8,6,e.timeTaken,"medium")),t.R7$(3),t.Y8G("ngIf",e.bloodPressure)}}function zt(n,a){if(1&n&&(t.j41(0,"div"),t.DNE(1,Jt,12,9,"div",30),t.nI1(2,"async"),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.Y8G("ngForOf",t.bMT(2,1,e.vitals))}}const Kt=["page"];function Zt(n,a){if(1&n){const e=t.RV6();t.j41(0,"div")(1,"mat-icon",12),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.cancelBtn())}),t.EFF(2,"cancel"),t.k0s()()}}function te(n,a){if(1&n&&(t.j41(0,"div"),t.nrm(1,"app-top-menu-bar",13),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.Y8G("menuData",e.headerConfig)}}function ee(n,a){if(1&n&&(t.j41(0,"div",14)(1,"span",15),t.EFF(2),t.k0s(),t.nrm(3,"img",16),t.k0s()),2&n){const e=t.XpG();t.R7$(2),t.Lme(" ",e.antenatalEnrollmentService.weeks," week",e.antenatalEnrollmentService.weeks>1?"s":""," ")}}function ne(n,a){1&n&&(t.j41(0,"div",17)(1,"span",8),t.EFF(2,"Recorded Weights"),t.k0s(),t.j41(3,"mat-form-field",18)(4,"mat-label"),t.EFF(5,"Filter by week"),t.k0s(),t.j41(6,"mat-select")(7,"mat-option",19),t.EFF(8,"First option"),t.k0s(),t.j41(9,"mat-option",20),t.EFF(10,"Second option"),t.k0s()()()())}function ie(n,a){if(1&n){const e=t.RV6();t.j41(0,"div",26),t.bIt("click",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.submitWeight())}),t.EFF(1,"Submit"),t.k0s()}}function oe(n,a){if(1&n&&(t.j41(0,"div",21)(1,"div",22)(2,"mat-form-field",23)(3,"mat-label"),t.EFF(4,"Type in your Weight (Kg)"),t.k0s(),t.nrm(5,"input",24),t.k0s()(),t.DNE(6,ie,2,0,"div",25),t.k0s()),2&n){const e=t.XpG();t.Y8G("formGroup",e.form),t.R7$(6),t.Y8G("ngIf",null==e.form.value.weight?null:e.form.value.weight.value)}}function ae(n,a){1&n&&t.nrm(0,"mat-progress-bar",27)}function se(n,a){if(1&n&&(t.j41(0,"div",29)(1,"div",7)(2,"div",30)(3,"span",31),t.EFF(4),t.nI1(5,"vitalsWeek"),t.k0s(),t.j41(6,"span",32),t.EFF(7),t.nI1(8,"date"),t.k0s()(),t.j41(9,"div",30)(10,"span",33),t.EFF(11),t.k0s()()(),t.nrm(12,"div",34),t.k0s()),2&n){const e=a.$implicit,i=t.XpG(2);t.R7$(4),t.SpI("Week ",t.i5U(5,3,e.timeTaken,i.lmp),""),t.R7$(3),t.JRh(t.i5U(8,6,e.timeTaken,"medium")),t.R7$(4),t.SpI("",null==e.weight?null:e.weight.value," kg")}}function le(n,a){if(1&n&&(t.j41(0,"div"),t.DNE(1,se,13,9,"div",28),t.nI1(2,"async"),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.Y8G("ngForOf",t.bMT(2,1,e.vitals))}}const ce=[{path:"",component:Et,canActivate:[A.u],canActivateChild:[A.u],children:[{path:"home",component:ot},{path:"baby",component:J},{path:"mum",component:ct},{path:"question",component:wt},{path:"fetal-heart-rate-monitor",component:(()=>{class n{constructor(e,i,o,s,p,m){this.location=e,this.fb=i,this.authService=o,this.antenatalEnrollmentService=s,this.store=p,this.bottomSheet=m,this.show
1Filter=!1,this.vitals=this.store.select("vitals").pipe((0,y.T)(u=>u.filter(h=>h.fhr&&h.fhr.value))),this.loading=this.store.select("fetchingVitals"),this.currentPage=0,this.limit=50,this.headerConfig={left:{callback:()=>{this.location.back()},icon:"arrow_back"},center:{callback:()=>{},text:"MyHomeClinic",isHome:!0},right:{callback:()=>{},icon:""}},this.form=this.fb.group({patientId:[""],patientHospitalNumber:[""],timeTaken:T().toISOString(),patientSex:[""],recordedByUsername:[""],recordedByFirstName:[""],recordedByLastName:[""],fhr:this.fb.group({value:[""],unit:"bpm",flag:!1})}),this.lmp=new Date(this.antenatalEnrollmentService.antenatal?.lastMenstrualPeriod||new Date)}ngOnInit(){this.store.dispatch((0,f.w5)({page:this.currentPage,limit:this.limit})),this.store.select("afterAddingVitals").subscribe({next:()=>{this.scrollToBottom()}})}scrollToBottom(){this.pageElement.nativeElement.scrollIntoView({behavior:"smooth",block:"end"})}cancelBtn(){this.store.dispatch((0,f.w5)({page:this.currentPage,limit:this.limit})),this.showFilter=!0,this.showFilter=!this.showFilter}submitFhr(){this.form.patchValue({}),this.form.patchValue({patientId:this.authService.patient$.value._id,patientHospitalNumber:this.authService.patient$.value.hospital_number,patientSex:this.authService.patient$.value.sex,recordedByUsername:this.authService.patient$.value.email,recordedByFirstName:this.authService.patient$.value.fname,recordedByLastName:this.authService.patient$.value.lname}),this.store.dispatch((0,f.Au)({vital:this.form.value,isFromAntenatal:!0})),this.form.reset()}openBottomSheet(e,i){this.bottomSheet.open(F.B,{hasBackdrop:!1,data:{message:i,title:e}})}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(r.aZ),t.rXU(c.ok),t.rXU(G.g),t.rXU(g.G),t.rXU(v.il),t.rXU(b.VK))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-fhr-monitor"]],viewQuery:function(i,o){if(1&i&&t.GBs(Mt,5),2&i){let s;t.mGM(s=t.lsd())&&(o.pageElement=s.first)}},decls:18,vars:9,consts:[["page",""],["loader",""],[4,"ngIf"],[1,"container"],["class","illustration-container",4,"ngIf"],["class","alternate-top-container ",4,"ngIf"],["class","form-container",3,"formGroup",4,"ngIf"],[1,"history-sub-container-row"],[1,"history-sub-title"],[1,"list-container"],[4,"ngIf","ngIfElse"],[1,"next-check",3,"click"],[2,"float","right",3,"click"],[3,"menuData"],[1,"illustration-container"],[1,"menu-title"],["src","/assets/images/heart-rate.png","alt","fetal-heart-rate"],[1,"alternate-top-container"],["appearance","outline"],["value","one"],["value","two"],[1,"form-container",3,"formGroup"],["formGroupName","fhr"],["appearance","fill",1,"form-width-c"],["placeholder","0","matInput","","formControlName","value"],["class","menu-fill-btn",3,"click",4,"ngIf"],[1,"menu-fill-btn",3,"click"],["mode","buffer"],["class","history-sub-container-col list",4,"ngFor","ngForOf"],[1,"history-sub-container-col","list"],[1,"history-sub-container-col"],[1,"history-week-text"],[1,"history-time-text"],[1,"history-green-text"],[1,"divider"]],template:function(i,o){if(1&i){const s=t.RV6();t.DNE(0,jt,3,0,"div",2),t.j41(1,"div"),t.DNE(2,St,2,1,"div",2),t.j41(3,"div",3,0),t.DNE(5,Tt,4,2,"div",4)(6,Gt,11,0,"div",5)(7,Bt,7,2,"div",6),t.j41(8,"div",7)(9,"span",8),t.EFF(10,"Recent Fetal Heart Rates "),t.k0s()(),t.DNE(11,Rt,1,0,"ng-template",null,1,t.C5r),t.j41(13,"div",9),t.DNE(14,$t,3,3,"div",10),t.nI1(15,"async"),t.k0s(),t.j41(16,"span",11),t.bIt("click",function(){return t.eBV(s),t.Njj(o.openBottomSheet("","You can do more checks by selecting an option below"))}),t.EFF(17," Next Routine Check \u27f6"),t.k0s()()()}if(2&i){const s=t.sdS(12);t.Y8G("ngIf",o.showFilter),t.R7$(2),t.Y8G("ngIf",!o.showFilter),t.R7$(3),t.Y8G("ngIf",!o.showFilter),t.R7$(),t.Y8G("ngIf",o.showFilter),t.R7$(),t.Y8G("ngIf",!o.showFilter),t.R7$(7),t.Y8G("ngIf",!t.bMT(15,7,o.loading))("ngIfElse",s)}},dependencies:[r.Sq,r.bT,c.me,c.BC,c.cb,D.wT,k.An,I.fg,_.rl,_.nJ,B.HM,R.VO,c.j4,c.JD,c.$R,E.R,r.Jj,r.vh,O.M],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;padding:20px}.sub-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:10px;width:30px}.form-width-c[_ngcontent-%COMP%]{width:100%}.form-container[_ngcontent-%COMP%]{margin-bottom:20px}.divider[_ngcontent-%COMP%]{border:.5px solid #DFE5ED;margin-bottom:5px;margin-top:5px}.list-container[_ngcontent-%COMP%]{height:400px;overflow:auto}.list[_ngcontent-%COMP%]{list-style-type:none;margin:0;padding:0}"]})}}return n})()},{path:"urine-test",component:(()=>{class n{constructor(e){this.bottomSheetRef=e}ngOnInit(){}closeBottomSheet(){this.bottomSheetRef.dismiss()}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(b.eN))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-urine-test"]],decls:20,vars:0,consts:[[1,"container"],[1,"top-container"],[1,"centralize"],[1,"circle"],[1,"justify-end"],[1,"close-btn",3,"click"],[1,"title"],[1,"sub-title"],["routerLink","/antenatal/urine-test",1,"cont-btn",3,"click"],[1,"n
1o-btn"]],template:function(i,o){1&i&&(t.j41(0,"div",0)(1,"div",1),t.nrm(2,"span"),t.j41(3,"div",2)(4,"div",3)(5,"span"),t.EFF(6,"\u{1f590}\u{1f3fb}"),t.k0s()()(),t.j41(7,"div",4)(8,"mat-icon",5),t.bIt("click",function(){return o.closeBottomSheet()}),t.EFF(9,"cancel"),t.k0s()()(),t.j41(10,"div")(11,"span",6),t.EFF(12,'Do you have the "Urine Test" stripes?'),t.k0s()(),t.j41(13,"div")(14,"span",7),t.EFF(15," You need to have the stripes in order to use this section! "),t.k0s()(),t.j41(16,"div",8),t.bIt("click",function(){return o.closeBottomSheet()}),t.EFF(17,"Yes, Continue"),t.k0s(),t.j41(18,"div",9),t.EFF(19,"No, I want to buy"),t.k0s()())},dependencies:[x.Wk,k.An],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;text-align:center}.circle[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:center;width:96px;height:96px;border-radius:96px;background:linear-gradient(0deg,#4d9fe8,#4d9fe8);border:1px solid white;font-size:40px}.top-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 5fr 1fr}.centralize[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;align-items:center}.justify-end[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:end}.title[_ngcontent-%COMP%]{font-family:Mulish;font-size:24px;font-weight:900;line-height:30px;letter-spacing:0em;text-align:center;color:#0d3d66}.sub-title[_ngcontent-%COMP%]{font-family:Mulish;font-size:14px;font-weight:700;line-height:18px;letter-spacing:0em;text-align:center;color:#63738a}.cont-btn[_ngcontent-%COMP%]{width:Fill 341px;height:Hug 52px;padding:16px 24px;border-radius:8px;gap:10px;background:#1e88e5;color:#fff;font-size:16px;font-weight:700}.no-btn[_ngcontent-%COMP%]{width:Fill 341px;height:Hug 52px;padding:16px 24px;border-radius:8px;background:#fff;border:1px solid #1E88E5;color:#1e88e5;font-size:16px;font-weight:700}.close-btn[_ngcontent-%COMP%]{color:red}"]})}}return n})()},{path:"bp-monitor",component:(()=>{class n{constructor(e,i,o,s,p,m,u){this.location=e,this.fb=i,this.authService=o,this.route=s,this.antenatalEnrollmentService=p,this.store=m,this.bottomSheet=u,this.showFilter=!1,this.vitals=this.store.select("vitals").pipe((0,y.T)(h=>h.filter(X=>X.bloodPressure&&X.bloodPressure.cystolic?.value))),this.loading=this.store.select("fetchingVitals"),this.total=this.store.select("totalVitalsHistory"),this.currentPage=0,this.limit=50,this.headerConfig={left:{callback:()=>{this.location.back()},icon:"arrow_back"},center:{callback:()=>{},text:"MyHomeClinic",isHome:!0},right:{callback:()=>{},icon:""}},this.form=this.fb.group({diastolic:this.fb.group({value:[""],unit:"mmHg",flag:!1}),cystolic:this.fb.group({value:[""],unit:"mmHg",flag:!1})}),this.afterAddingVitals=this.store.select("afterAddingVitals").subscribe({next:h=>{h.state===f.OD.SUCCESS&&this.openBottomSheet("Vitals Recorded Successfully","You can do more checks by selecting an option below")}}),this.lmp=new Date(this.antenatalEnrollmentService.antenatal?.lastMenstrualPeriod||new Date)}ngOnInit(){this.store.dispatch((0,f.w5)({page:this.currentPage,limit:this.limit})),this.store.select("afterAddingVitals").subscribe({next:()=>{this.scrollToBottom()}})}scrollToBottom(){this.pageElement.nativeElement.scrollIntoView({behavior:"smooth",block:"end"})}cancelBtn(){this.store.dispatch((0,f.w5)({page:this.currentPage,limit:this.limit})),this.showFilter=!0,this.showFilter=!this.showFilter}submitBp(){this.form.patchValue({}),this.store.dispatch((0,f.Au)({vital:{patientId:this.authService.patient$.value._id,patientHospitalNumber:this.authService.patient$.value.hospital_number,patientSex:this.authService.patient$.value.sex,recordedByUsername:this.authService.patient$.value.email,recordedByFirstName:this.authService.patient$.value.fname,recordedByLastName:this.authService.patient$.value.lname,timeTaken:T().toISOString(),bloodPressure:{cystolic:this.form.value.cystolic,diastolic:this.form.value.diastolic}},isFromAntenatal:!0})),this.form.reset()}openBottomSheet(e,i){this.bottomSheet.open(F.B,{hasBackdrop:!1,data:{message:i,title:e}})}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(r.aZ),t.rXU(c.ok),t.rXU(G.g),t.rXU(x.nX),t.rXU(g.G),t.rXU(v.il),t.rXU(b.VK))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-blood-pressure"]],viewQuery:function(i,o){if(1&i&&t.GBs(Nt,5),2&i){let s;t.mGM(s=t.lsd())&&(o.pageElement=s.first)}},decls:18,vars:9,consts:[["page",""],["loader",""],[4,"ngIf"],[1,"container"],["class","illustration-container",4,"ngIf"],["class","alternate-top-container ",4,"ngIf"],["class","form-container",3,"formGroup",4,"ngIf"],[1,"history-sub-container-row"],[1,"history-sub-title"],[1,"list-container"],[4,"ngIf","ngIfElse"],[1,"next-check",3,"click"],[2,"float","right",3,"click"],[3,"menuData"],[1,"illustration-container"],[1,"menu-title"],["src","/assets/images/bp-test-illustration.png","alt","bloodPressure"],[1,"alternate-top-container"],["appearance","outline"],["value","one"],["value","two"],[1,"form-container",3,"formGroup"],[1,"sub-row"],["appearance","fill",1,"form-width-c"],["formGroupName","cystolic"],["placeholder","0","matInput","","formControlName","value"],["formGroupName","diastolic"],["class","menu-fill-btn",3,"click",4,"ngIf"],[1,"menu-fill-btn",3,"click"],["mode","buffer"],["class","history-sub-container-col list",4,"ngFor","ngForOf"],[1,"history-sub-container-col","list"],[1,"history-sub-container-col"],[1,"history-week-text"],[1,"history-time-text"],["class","history-green-text",4,"ngIf"],[1,"divi
1der"],[1,"history-green-text"]],template:function(i,o){if(1&i){const s=t.RV6();t.DNE(0,Xt,3,0,"div",2),t.j41(1,"div"),t.DNE(2,Yt,2,1,"div",2),t.j41(3,"div",3,0),t.DNE(5,Ut,4,2,"div",4)(6,Vt,11,0,"div",5)(7,Qt,15,2,"div",6),t.j41(8,"div",7)(9,"span",8),t.EFF(10,"Recent Blood Pressure "),t.k0s()(),t.DNE(11,Wt,1,0,"ng-template",null,1,t.C5r),t.j41(13,"div",9),t.DNE(14,zt,3,3,"div",10),t.nI1(15,"async"),t.k0s(),t.j41(16,"span",11),t.bIt("click",function(){return t.eBV(s),t.Njj(o.openBottomSheet("","You can do more checks by selecting an option below"))}),t.EFF(17," Next Routine Check \u27f6"),t.k0s()()()}if(2&i){const s=t.sdS(12);t.Y8G("ngIf",o.showFilter),t.R7$(2),t.Y8G("ngIf",!o.showFilter),t.R7$(3),t.Y8G("ngIf",!o.showFilter),t.R7$(),t.Y8G("ngIf",o.showFilter),t.R7$(),t.Y8G("ngIf",!o.showFilter),t.R7$(7),t.Y8G("ngIf",!t.bMT(15,7,o.loading))("ngIfElse",s)}},dependencies:[r.Sq,r.bT,c.me,c.BC,c.cb,D.wT,k.An,I.fg,_.rl,_.nJ,B.HM,R.VO,c.j4,c.JD,c.$R,E.R,r.Jj,r.vh,O.M],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;padding:20px}.sub-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:10px;width:30px}.form-width-c[_ngcontent-%COMP%]{flex:1;min-width:160px}.form-width-c[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{width:70%;background:#fff;border-radius:15px}.form-width-c[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]     .mat-mdc-text-field-wrapper{border-radius:10px}.form-container[_ngcontent-%COMP%]{margin-bottom:20px}.divider[_ngcontent-%COMP%]{border:.5px solid #dfe5ed;margin-bottom:5px;margin-top:5px}.list-container[_ngcontent-%COMP%]{height:400px;overflow:auto}.list[_ngcontent-%COMP%]{list-style-type:none;margin:0;padding:0}"]})}}return n})()},{path:"weight-monitor",component:(()=>{class n{constructor(e,i,o,s,p,m){this.location=e,this.fb=i,this.authService=o,this.antenatalEnrollmentService=s,this.store=p,this.bottomSheet=m,this.showFilter=!1,this.vitals=this.store.select("vitals").pipe((0,y.T)(u=>u.filter(h=>h.weight&&h.weight?.value))),this.loading=this.store.select("fetchingVitals"),this.currentPage=0,this.limit=50,this.headerConfig={left:{callback:()=>{this.location.back()},icon:"arrow_back"},center:{callback:()=>{},text:"MyHomeClinic",isHome:!0},right:{callback:()=>{},icon:""}},this.form=this.fb.group({patientId:[""],patientHospitalNumber:[""],timeTaken:T().toISOString(),patientSex:[""],recordedByUsername:[""],recordedByFirstName:[""],recordedByLastName:[""],weight:this.fb.group({value:[""],unit:"kg",flag:!1})}),this.afterAddingVitals=this.store.select("afterAddingVitals").subscribe({next:u=>{u.state===f.OD.SUCCESS&&this.openBottomSheet("Vitals Recorded Successfully","You can do more checks by selecting an option below")}}),this.lmp=new Date(this.antenatalEnrollmentService.antenatal?.lastMenstrualPeriod||new Date)}ngOnInit(){this.store.dispatch((0,f.w5)({page:this.currentPage,limit:this.limit})),this.store.select("afterAddingVitals").subscribe({next:()=>{this.scrollToBottom()}})}scrollToBottom(){this.pageElement.nativeElement.scrollIntoView({behavior:"smooth",block:"end"})}cancelBtn(){this.store.dispatch((0,f.w5)({page:this.currentPage,limit:this.limit})),this.showFilter=!0,this.showFilter=!this.showFilter}submitWeight(){this.form.patchValue({}),this.form.patchValue({patientId:this.authService.patient$.value._id,patientHospitalNumber:this.authService.patient$.value.hospital_number,patientSex:this.authService.patient$.value.sex,recordedByUsername:this.authService.patient$.value.email,recordedByFirstName:this.authService.patient$.value.fname,recordedByLastName:this.authService.patient$.value.lname}),this.store.dispatch((0,f.Au)({vital:this.form.value,isFromAntenatal:!0})),this.form.reset()}openBottomSheet(e,i){this.bottomSheet.open(F.B,{hasBackdrop:!1,data:{message:i,title:e}})}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(r.aZ),t.rXU(c.ok),t.rXU(G.g),t.rXU(g.G),t.rXU(v.il),t.rXU(b.VK))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-weight-monitor"]],viewQuery:function(i,o){if(1&i&&t.GBs(Kt,5),2&i){let s;t.mGM(s=t.lsd())&&(o.pageElement=s.first)}},decls:18,vars:9,consts:[["page",""],["loader",""],[4,"ngIf"],[1,"container"],["class","illustration-container",4,"ngIf"],["class","alternate-top-container ",4,"ngIf"],["class","form-container",3,"formGroup",4,"ngIf"],[1,"history-sub-container-row"],[1,"history-sub-title"],[1,"list-container"],[4,"ngIf","ngIfElse"],[1,"next-check",3,"click"],[2,"float","right",3,"click"],[3,"menuData"],[1,"illustration-container"],[1,"menu-title"],["src","/assets/images/weight-test-illustration.png","alt","weight"],[1,"alternate-top-container"],["appearance","outline"],["value","one"],["value","two"],[1,"form-container",3,"formGroup"],["formGroupName","weight"],["appearance","fill",1,"form-width-c"],["placeholder","0","matInput","","formControlName","value"],["class","menu-fill-btn",3,"click",4,"ngIf"],[1,"menu-fill-btn",3,"click"],["mode","buffer"],["class","history-sub-container-col list",4,"ngFor","ngForOf"],[1,"history-sub-container-col","list"],[1,"history-sub-container-col"],[1,"history-week-text"],[1,"history-time-text"],[1,"history-green-text"],[1,"divi
1der"]],template:function(i,o){if(1&i){const s=t.RV6();t.DNE(0,Zt,3,0,"div",2),t.j41(1,"div"),t.DNE(2,te,2,1,"div",2),t.j41(3,"div",3,0),t.DNE(5,ee,4,2,"div",4)(6,ne,11,0,"div",5)(7,oe,7,2,"div",6),t.j41(8,"div",7)(9,"span",8),t.EFF(10,"Recent Weights "),t.k0s()(),t.DNE(11,ae,1,0,"ng-template",null,1,t.C5r),t.j41(13,"div",9),t.DNE(14,le,3,3,"div",10),t.nI1(15,"async"),t.k0s(),t.j41(16,"span",11),t.bIt("click",function(){return t.eBV(s),t.Njj(o.openBottomSheet("","You can do more checks by selecting an option below"))}),t.EFF(17," Next Routine Check \u27f6"),t.k0s()()()}if(2&i){const s=t.sdS(12);t.Y8G("ngIf",o.showFilter),t.R7$(2),t.Y8G("ngIf",!o.showFilter),t.R7$(3),t.Y8G("ngIf",!o.showFilter),t.R7$(),t.Y8G("ngIf",o.showFilter),t.R7$(),t.Y8G("ngIf",!o.showFilter),t.R7$(7),t.Y8G("ngIf",!t.bMT(15,7,o.loading))("ngIfElse",s)}},dependencies:[r.Sq,r.bT,c.me,c.BC,c.cb,D.wT,k.An,I.fg,_.rl,_.nJ,B.HM,R.VO,c.j4,c.JD,c.$R,E.R,r.Jj,r.vh,O.M],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;padding:20px}.sub-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:10px;width:30px}.form-width-c[_ngcontent-%COMP%]{width:100%}.form-container[_ngcontent-%COMP%]{margin-bottom:20px}.divider[_ngcontent-%COMP%]{border:.5px solid #DFE5ED;margin-bottom:5px;margin-top:5px}.list-container[_ngcontent-%COMP%]{height:400px;overflow:auto}.list[_ngcontent-%COMP%]{list-style-type:none;margin:0;padding:0}"]})}}return n})()},{path:"",redirectTo:"home",pathMatch:"full"}]}];let pe=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=t.$C({type:n})}static{this.\u0275inj=t.G2t({imports:[x.iI.forChild(ce),x.iI]})}}return n})();var de=l(5553),me=l(4216),ue=l(1683);let fe=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=t.$C({type:n})}static{this.\u0275inj=t.G2t({imports:[r.MD,pe,c.YN,me.G,de.h,c.X1,ue.Y,E.R]})}}return n})()}}]);

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.