PageSourceSearch

https://empower.health/8706.08553d4e9fc51375.js

js empower.health collected 2026-10-08 03:55:22 UTC 10,640 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkng_portal=self.webpackChunkng_portal||[]).push([[8706],{94723($,C,a){a.d(C,{Y:()=>s});var d=a(49769),h=a(35547),m=a(85802);let s=(()=>{class g{static \u0275fac=function(F){return new(F||g)};static \u0275mod=h.$C({type:g});static \u0275inj=m.G2t({imports:[d.MD]})}return g})()},8267($,C,a){a.d(C,{n:()=>m});var d=a(2505),h=a(35547);let m=(()=>{class s{transform(p){return d.aCC.timeToAmPm(p)}static \u0275fac=function(v){return new(v||s)};static \u0275pipe=h.EJ8({name:"ampm",type:s,pure:!0,standalone:!1})}return s})()},68706($,C,a){a.d(C,{CoachingScheduleModule:()=>le});var d=a(49769),h=a(41838),m=a(88834),s=a(65571),g=a(25596),p=a(25084),v=a(9183),F=a(95416),x=a(93049),k=a(94723),i=a(85802),_=a(37702),u=a(2505),y=a(80146),M=a(21413),D=a(84572),f=a(96354),b=a(56977),O=a(5964),A=a(70152),T=a(96697),L=a(21109),G=a(50957),W=a(54449),E=a(47144),X=a(17705),j=a(454),e=a(35547),R=a(21518),B=a(92367);let U=(()=>{class n{_calendar=(0,i.WQX)(p.JJ);_dateAdapter=(0,i.WQX)(j.MJ);_dateFormats=(0,i.WQX)(j.de);_destroyed=new M.B;constructor(){const t=this._calendar,o=(0,i.WQX)(X.gRc);t.stateChanges.pipe((0,b.Q)(this._destroyed)).subscribe(()=>o.markForCheck())}ngOnInit(){}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}get periodLabel(){return this._dateAdapter.format(this._calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase()}previousClicked(t){this._calendar.activeDate="month"===t?this._dateAdapter.addCalendarMonths(this._calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this._calendar.activeDate,-1)}nextClicked(t){this._calendar.activeDate="month"===t?this._dateAdapter.addCalendarMonths(this._calendar.activeDate,1):this._dateAdapter.addCalendarYears(this._calendar.activeDate,1)}static \u0275fac=function(o){return new(o||n)};static \u0275cmp=e.VBU({type:n,selectors:[["app-calendar-customer-header"]],standalone:!1,decls:9,vars:1,consts:[[1,"example-header"],["mat-icon-button","",3,"click"],[1,"example-header-label"]],template:function(o,l){1&o&&(e.j41(0,"div",0)(1,"button",1),e.bIt("click",function(){return l.previousClicked("month")}),e.j41(2,"mat-icon"),e.EFF(3,"keyboard_arrow_left"),e.k0s()(),e.j41(4,"span",2),e.EFF(5),e.k0s(),e.j41(6,"button",1),e.bIt("click",function(){return l.nextClicked("month")}),e.j41(7,"mat-icon"),e.EFF(8,"keyboard_arrow_right"),e.k0s()()()),2&o&&(e.R7$(5),e.JRh(l.periodLabel))},dependencies:[R.An,B.iY],styles:[".example-header[_ngcontent-%COMP%]{display:flex;align-items:center;padding:.5em}.example-header-label[_ngcontent-%COMP%]{flex:1;height:1em;font-weight:500;text-align:center}.example-double-arrow[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{margin:-22%}"],changeDetection:0})}return n})();var Q=a(96284),S=a(62302),P=a(43740),I=a(44095),V=a(8267);const Y=["timeSelected"],J=()=>({margin:0}),z=()=>({width:"unset",margin:"0 16px"});function N(n,c){1&n&&(e.j41(0,"div",7),e.EFF(1," Consultations on "),e.j41(2,"span",15),e.EFF(3,"June 3rd"),e.k0s(),e.j41(4,"span",16),e.EFF(5,"are reserved for spanish speaking participants"),e.k0s(),e.EFF(6," who require a spanish speaking nurse."),e.k0s())}function H(n,c){1&n&&(e.j41(0,"div",11),e.nrm(1,"mat-spinner",17),e.k0s())}function K(n,c){if(1&n&&(e.j41(0,"mat-button-toggle",20),e.EFF(1),e.nI1(2,"ampm"),e.k0s()),2&n){const t=c.$implicit;e.Y8G("value",t),e.R7$(),e.SpI(" ",e.bMT(2,2,t)," ")}}function Z(n,c){if(1&n&&e.Z7z(0,K,3,4,"mat-button-toggle",20,e.fX1),2&n){const t=e.XpG();e.Dyx(t)}}function w(n,c){1&n&&e.EFF(0," No available times. ")}function q(n,c){if(1&n){const t=e.RV6();e.j41(0,"mat-button-toggle-group",19,0),e.bIt("change",function(l){i.eBV(t);const r=e.XpG(3);return i.Njj(r.onTimeSelect(l))}),e.nVh(2,Z,2,0)(3,w,1,0),e.k0s()}2&n&&(e.R7$(2),e.vxM(c.length?2:3))}function ee(n,c){if(1&n&&(e.nVh(0,q,4,1,"mat-button-toggle-group",18),e.nI1(1,"async")),2&n){let t;const o=e.XpG(2);e.vxM((t=e.bMT(1,1,o.availableTimes$))?0:-1,t)}}function te(n,c){if(1&n){const t=e.RV6();e.j41(0,"div",2)(1,"div",4)(2,"mat-card",5)(3,"div",6),e.EFF(4,"1. Select a day "),e.k0s(),e.nVh(5,N,7,0,"div",7),e.j41(6,"mat-calendar",8),e.nI1(7,"async"),e.nI1(8,"async"),e.bIt("selectedChange",function(l){i.eBV(t);const r=e.XpG();return i.Njj(r.onDateSelect(l))}),e.k0s()(),e.j41(9,"div",9)(10,"div",10),e.EFF(11),e.nI1(12,"async"),e.nI1(13,"date"),e.k0s(),e.nVh(14,H,2,0,"div",11),e.nI1(15,"async"),e.vZN(16,ee,2,3),e.k0s()(),e.j41(17,"div",12)(18,"a",13),e.EFF(19," Cancel "),e.k0s(),e.j41(20,"a",14),e.bIt("click",function(){i.eBV(t);const l=e.XpG();return i.Njj(l.nextPage())}),e.EFF(21," Next "),e.k0s()()()}if(2&n){const t=e.XpG();e.Y8G("ngStyle.lt-md",e.lJ4(23,J)),e.R7$(2),e.Y8G("ngStyle.xs",e.lJ4(24,z)),e.R7$(3),e.vxM(t.showNote()?5:-1),e.R7$(),e.Y8G("selected",e.bMT(7,12,t.selectedDate$))("headerComponent",t.calendarHeader)("minDate",t.minDate)("maxDate",e.bMT(8,14,t.maxDate$))("dateFilter",t.disableWeekends),e.R7$(5),e.SpI("2. Select a time on ",e.i5U(13,18,e.bMT(12,16,t.selectedDate$),"mediumDate")," "),e.R7$(3),e.vxM(e.bMT(15,21,t.loadingAvailableTimes$)?14:16),e.R7$(6),e.Y8G("disabled",t.timeSelected&&!t.timeSelected.value)("ngClass",null!=t.timeSelected&&t.timeSelected.value?"mat-flat-button":"mat-button")}}function ne(n,c){1&n&&(e.j41(0,"div",3),e.nrm(1,"mat-spinner",17),e.k0s())}const ae=[{path:"",component:(()=>{class n{router=(0,i.WQX)(_.Ix);route=(0,i.WQX)(_.nX);coachingSessionFacade=(0,i.WQX)(L.r);hraResultFacade=(0,i.WQX)(W.x);eventServiceFacade=(0,i.WQX)(G.c);userRegFacade=(0,i.WQX)(Q._);timeSelected;userTimezone=y.c9.local().zoneName;minDate=y.c9.local().plus({day:1}).toJSDate();maxDate$;calendarHeader=U;loadingAvailableTimes$;loading$;selectedTime$;selectedDate$;availableTimes$;takeUntil=new M.B;ngOnInit(){this.maxDate$=this.userRegFacade.eventServiceWithCoaching$.pipe((0,f.T)(t=>t?new Date(t.endDate):new Date)),this.selectedTime$=this.userRegFacade.selectedEventTime$,this.selectedDate$=this.getSelectedDate$(),this.loading$=this.getLoading$(),this.availableTimes$=this.getAvailableTimes$(),this.loadingAvailableTimes$=this.coachingSessionFacade.loadingAvailabilities$,this.selectedDate$.pipe((0,b.Q)(this.takeUntil)).subscribe(t=>this.coachingSessionFacade.listAvailabilities({date:u.rL3.convertToString(t),timezone:this.userTimezone})),this.canSignUp$().subscribe(t=>{t||(E.q.log("cannot sign up",t),this.router.navigate(["/"]))})}getAvailableTimes$(){return(0,D.z)([this.selectedDate$,this.coachingSessionFacade.availabilities$]).pipe((0,f.T)(([t,o])=>{if(!t)return o;const l=u.aCC.getFutureTime({hours:2});return E.q.log("earliest time:",l),u.l_g.filterAvailableTimes({availableTimes:o,earliestTime:l})}))}getSelectedDate$(){return this.userRegFacade.selectedEventDate$.pipe((0,f.T)(t=>u.rL3.convertFromString(t||u.rL3.getToday())))}ngOnDestroy(){this.takeUntil.next(),this.takeUntil.unsubscribe()}canSignUp$(){return(0,D.z)([this.loading$,this.coachingSessionFacade.eventServiceWithCoaching$]).pipe((0,O.p)(([t])=>!t),(0,f.T)(([,t])=>!!t),(0,A.B)(10),(0,T.s)(1),(0,b.Q)(this.takeUntil))}getLoading$(){return(0,D.z)([this.coachingSessionFacade.loading$,this.hraResultFacade.loading$,this.eventServiceFacade.loading$]).pipe((0,f.T)(t=>!!t.find(Boolean)))}onDateSelect(t){this.selectedTime$.pipe((0,T.s)(1)).subscribe(o=>this.userRegFacade.setEventDateTime({eventTime:o,eventDate:u.rL3.convertToString(t)}))}onTimeSelect(t){const o=t.value;this.selectedDate$.pipe((0,T.s)(1)).subscribe(l=>this.userRegFacade.setEventDateTime({eventTime:o,eventDate:u.rL3.convertToString(l)}
1))}showNote(){return y.c9.local().toFormat("MM/dd/yyyy")<"06/04/2020"}disableWeekends(t){if(0!==t.getDay())return t}nextPage(){this.userRegFacade.selectedEventLocationTime$.pipe((0,T.s)(1)).subscribe(t=>{t.eventDate&&t.eventTime&&(this.userRegFacade.setCoaching({coaching:!0}),this.router.navigate(["../../","consent"],{relativeTo:this.route}))})}static \u0275fac=function(o){return new(o||n)};static \u0275cmp=e.VBU({type:n,selectors:[["app-coaching-schedule"]],viewQuery:function(o,l){if(1&o&&e.GBs(Y,7),2&o){let r;e.mGM(r=e.lsd())&&(l.timeSelected=r.first)}},standalone:!1,decls:4,vars:3,consts:[["timeSelected","matButtonToggleGroup"],["fxLayout","row","fxLayoutAlign","center start"],[2,"margin","0 32px","width","100%","max-width","1200px","background-color","white",3,"ngStyle.lt-md"],[1,"center-spinner"],["gdColumns","1fr 1fr","gdColumns.xs","1fr","gdGap","16px","gdGap.xs","16px",2,"min-height","400px"],[1,"mat-elevation-z0",2,"width","80%","margin","0 auto","padding","0",3,"ngStyle.xs"],[2,"font-weight","500"],[1,"note"],[2,"border","1px solid #ddd","border-radius","5px",3,"selectedChange","selected","headerComponent","minDate","maxDate","dateFilter"],[2,"margin","0 16px"],[2,"padding-bottom","8px","font-weight","500","color","black"],[1,"center-spinner","margin"],["fxLayout","row","fxLayoutAlign","space-between center","fxLayoutGap","16px",2,"margin","0 32px 16px"],["type","button","mat-button","","routerLink","/"],["type","button","mat-button","","color","primary",3,"click","disabled","ngClass"],[1,"date-text"],[1,"important"],["diameter","50",1,"circle-center"],["gdColumns","1fr 1fr 1fr","gdColumns.lt-md","1fr 1fr","gdGap","8px",2,"border","0"],["gdColumns","1fr 1fr 1fr","gdColumns.lt-md","1fr 1fr","gdGap","8px",2,"border","0",3,"change"],[1,"time-box",3,"value"]],template:function(o,l){1&o&&(e.j41(0,"div",1),e.nVh(1,te,22,25,"div",2),e.nI1(2,"async"),e.vZN(3,ne,2,0,"div",3),e.k0s()),2&o&&(e.R7$(),e.vxM(!1===e.bMT(2,1,l.loading$)?1:3))},dependencies:[d.YU,x.Wk,S.DJ,S.BO,S.sA,P.PW,P.eI,I.EK,I.BV,v.LG,m.$z,p.JJ,g.RN,s.ec,s.pc,d.Jj,d.vh,V.n],styles:["mat-button-toggle.time-box[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:5px}mat-button-toggle.time-box.mat-button-toggle-checked[_ngcontent-%COMP%]{background-color:#1a237e;color:#fff}.note[_ngcontent-%COMP%]{font-size:12px;line-height:18px;margin-bottom:8px}.note[_ngcontent-%COMP%]   .date-text[_ngcontent-%COMP%]{color:red;padding-right:4px;font-weight:500}.note[_ngcontent-%COMP%]   .important[_ngcontent-%COMP%]{font-weight:500;text-decoration:underline}"],changeDetection:0})}return n})()}];let oe=(()=>{class n{static \u0275fac=function(o){return new(o||n)};static \u0275mod=e.$C({type:n});static \u0275inj=i.G2t({imports:[x.iI.forChild(ae),x.iI]})}return n})(),ie=(()=>{class n{static \u0275fac=function(o){return new(o||n)};static \u0275mod=e.$C({type:n});static \u0275inj=i.G2t({imports:[d.MD,R.m_,m.Hl,h.YF]})}return n})(),le=(()=>{class n{static \u0275fac=function(o){return new(o||n)};static \u0275mod=e.$C({type:n});static \u0275inj=i.G2t({imports:[d.MD,oe,x.iI,k.Y,h.YF,v.D6,m.Hl,F._T,p.X6,g.Hu,s.Vg,ie]})}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.