PageSourceSearch

https://empower.health/1454.231f88e1bfa38a4e.js

js empower.health collected 2026-10-08 03:50:17 UTC 8,342 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkng_portal=self.webpackChunkng_portal||[]).push([[1454],{21454(ie,_,a){a.d(_,{EhscServiceEventListModule:()=>ae});var p=a(49769),E=a(41838),S=a(88834),F=a(21518),L=a(9183),h=a(93049),I=a(1843),C=a(67428),x=a(76513),T=a(70571),u=a(61676),$=a(53719),j=a(40100),e=a(35547),r=a(85802);let G=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=e.$C({type:t});static \u0275inj=r.G2t({imports:[p.MD,E.YF,$.RG,j.fS]})}return t})();var f=a(37702),g=a(2505),M=a(59093),P=a(84572),d=a(96354),N=a(5964),V=a(18226),R=a(80954),X=a(32442),m=a(62302),y=a(79296);let B=(()=>{class t{route=(0,r.WQX)(f.nX);router=(0,r.WQX)(f.Ix);static \u0275fac=function(i){return new(i||t)};static \u0275cmp=e.VBU({type:t,selectors:[["ehsc-service-event-list-filters"]],standalone:!1,decls:33,vars:12,consts:[["searchInput",""],["eventDateInput",""],["startDateInput",""],["endDateInput",""],["fxLayout","row","fxLayout.lt-md","column","fxLayoutAlign.lt-md","start start","fxLayoutGap","8px"],["type","text","matInput","","autocomplete","off",3,"keyup","value"],["type","date","matInput","","autocomplete","off","placeholder","mm/dd/yyy",3,"change","value"]],template:function(i,s){if(1&i){const o=e.RV6();e.j41(0,"div",4)(1,"mat-form-field")(2,"mat-label"),e.EFF(3," Search "),e.k0s(),e.j41(4,"input",5,0),e.nI1(6,"async"),e.bIt("keyup",function(){r.eBV(o);const l=e.sdS(5);return r.Njj(s.router.navigate(["./"],{queryParams:{search:l.value},queryParamsHandling:"merge",relativeTo:s.route}))}),e.k0s(),e.j41(7,"mat-hint"),e.EFF(8," Compares against id, and location info "),e.k0s()(),e.j41(9,"mat-form-field")(10,"mat-label"),e.EFF(11," Event Date "),e.k0s(),e.j41(12,"input",6,1),e.nI1(14,"async"),e.bIt("change",function(){r.eBV(o);const l=e.sdS(13);return r.Njj(s.router.navigate(["./"],{queryParams:{eventDate:l.value},queryParamsHandling:"merge",relativeTo:s.route}))}),e.k0s(),e.j41(15,"mat-hint"),e.EFF(16," Date of the event "),e.k0s()(),e.j41(17,"mat-form-field")(18,"mat-label"),e.EFF(19," Start Date "),e.k0s(),e.j41(20,"input",6,2),e.nI1(22,"async"),e.bIt("change",function(){r.eBV(o);const l=e.sdS(21);return r.Njj(s.router.navigate(["./"],{queryParams:{startDate:l.value},queryParamsHandling:"merge",relativeTo:s.route}))}),e.k0s(),e.j41(23,"mat-hint"),e.EFF(24," The oldest date to include "),e.k0s()(),e.j41(25,"mat-form-field")(26,"mat-label"),e.EFF(27," End Date "),e.k0s(),e.j41(28,"input",6,3),e.nI1(30,"async"),e.bIt("change",function(){r.eBV(o);const l=e.sdS(29);return r.Njj(s.router.navigate(["./"],{queryParams:{endDate:l.value},queryParamsHandling:"merge",relativeTo:s.route}))}),e.k0s(),e.j41(31,"mat-hint"),e.EFF(32," The future date to include "),e.k0s()()()}if(2&i){let o,v,l,D;e.R7$(4),e.Y8G("value",(null==(o=e.bMT(6,4,s.route.queryParams))?null:o.search)||""),e.R7$(8),e.Y8G("value",(null==(v=e.bMT(14,6,s.route.queryParams))?null:v.eventDate)||""),e.R7$(8),e.Y8G("value",(null==(l=e.bMT(22,8,s.route.queryParams))?null:l.startDate)||""),e.R7$(8),e.Y8G("value",(null==(D=e.bMT(30,10,s.route.queryParams))?null:D.endDate)||"")}},dependencies:[m.DJ,m.BO,m.sA,y.rl,y.nJ,y.MV,j.fg,p.Jj],encapsulation:2,changeDetection:0})}return t})();var A=a(5722),k=a(57462),W=a(5736),Y=a(7456);const Q=(t,c)=>["/ehs/client/company",t,"service",c],H=(t,c)=>["/ehs/client/company/",t,"service",c],J=()=>({});function O(t,c){1&t&&(e.j41(0,"div",8),e.nrm(1,"mat-spinner",11),e.k0s())}function Z(t,c){if(1&t){const n=e.RV6();e.j41(0,"ehs-gwapps-service",15,2),e.bIt("view",function(){const s=r.eBV(n),o=e.sdS(1);return r.Njj(o.store.viewAsJson(s))})("validate",function(){const s=r.eBV(n),o=e.sdS(1);return r.Njj(o.store.validateData({id:s._id,resource:"eventService"}))}),e.k0s()}2&t&&e.Y8G("eventService",c)}function w(t,c){if(1&t&&(e.j41(0,"p",12),e.EFF(1," This page shows all the events for the given service, detailed below. "),e.k0s(),e.j41(2,"a",13),e.nV
1h(3,Z,2,1,"ehs-gwapps-service",14),e.nI1(4,"async"),e.k0s()),2&t){let n;const i=e.XpG(),s=e.sdS(2);e.R7$(2),e.Y8G("routerLink",e.l_i(4,H,i.company,i.eventService)),e.R7$(),e.vxM((n=e.bMT(4,2,s.store.currentByRoute$))?3:-1,n)}}function z(t,c){1&t&&(e.j41(0,"div",8),e.nrm(1,"mat-spinner",11),e.k0s())}function U(t,c){1&t&&e.nrm(0,"ehs-call-to-action",16)}function K(t,c){if(1&t&&(e.nrm(0,"ehs-gwapps-event",17),e.nI1(1,"async")),2&t){const n=c.$implicit,i=e.XpG(4);e.Y8G("eventLocation",n)("stats",(e.bMT(1,4,i.eventLocationRegStats$)||e.lJ4(6,J))[n._id+""])("hideAddress",!0)("clientAdmin",!0)}}function b(t,c){if(1&t&&e.Z7z(0,K,2,7,"ehs-gwapps-event",17,e.fX1),2&t){const n=e.XpG();e.Dyx(n)}}function q(t,c){if(1&t&&(e.nVh(0,U,1,0,"ehs-call-to-action",16),e.nVh(1,b,2,0)),2&t){const n=c;e.vxM(n.length?-1:0),e.R7$(),e.vxM(n.length?1:-1)}}function ee(t,c){if(1&t&&(e.nVh(0,q,2,2),e.nI1(1,"async")),2&t){let n;const i=e.XpG();e.vxM((n=e.bMT(1,1,i.eventLocations$))?0:-1,n)}}const te=[{path:"",component:(()=>{class t{route=(0,r.WQX)(f.nX);eventServiceNgrxFacade=(0,r.WQX)(T.zd);eventLocationNgrxFacade=(0,r.WQX)(x.dr);adminCoreNgrx=(0,r.WQX)(M.V);companyNgrxFacade=(0,r.WQX)(C.nG);confirmDialog=(0,r.WQX)(u.gW5);search$=this.route.queryParamMap.pipe((0,d.T)(n=>n.get("search")||""));eventDate$=this.route.queryParamMap.pipe((0,d.T)(n=>n.get("eventDate")||""));startDate$=this.route.queryParamMap.pipe((0,d.T)(n=>n.get("startDate")||""));endDate$=this.route.queryParamMap.pipe((0,d.T)(n=>n.get("endDate")||""));eventLocations$=this.eventLocationNgrxFacade.createSearch$({keys:[{name:"shortId",weight:.5},{name:"eventId",weight:.5},...["address1","address2","city","eventDate","eventId"].map(n=>({name:n,weight:.1}))],search$:this.search$,filterFn$:(0,P.z)([this.eventServiceNgrxFacade.currentByRoute$,this.eventDate$,this.startDate$,this.endDate$]).pipe((0,d.T)(([n,i,s,o])=>v=>!(!n||(0,g.OXZ)(v?.service)!==(0,g.OXZ)(n)||i&&v?.eventDate!==i||s&&v?.eventDate<s||o&&v?.eventDate>o)))}).pipe((0,d.T)(n=>g.wrv.sortEventsByDate({eventLocations:n})));eventLocationRegStats$=this.eventLocationNgrxFacade.getStats$().pipe((0,N.p)(n=>!!n));company=this.route?.snapshot?.params?.companyId;eventService=this.route?.snapshot?.params?.eventServiceId;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=e.VBU({type:t,selectors:[["ehsc-service-event-list"]],standalone:!1,decls:19,vars:10,consts:[["eventServiceProvider","eventServiceNgrx"],["eventLocationProvider","eventLocationNgrx"],["adminGwProvider","adminGwNgrx"],["fxLayout","column","fxLayoutGap","8px",1,"padding"],["eventServiceNgrx","","titleIcon","medication","title","Onsite Events"],["optionalAction",""],["fxLayout","row","fxLayoutAlign","end","fxFlex",""],["mat-flat-button","","queryParamsHandling","preserve",3,"routerLink"],[1,"center-spinner","margin"],["simple","true"],["eventLocationNgrx","","simple","true"],["diameter","50",1,"circle-center"],[1,"mat-caption"],[3,"routerLink"],["adminGwNgrx","",3,"eventService"],["adminGwNgrx","",3,"view","validate","eventService"],["icon","widgets","message","No Onsite Events for this service"],[3,"eventLocation","stats","hideAddress","clientAdmin"]],template:function(i,s){if(1&i&&(e.j41(0,"div",3)(1,"ehs-card",4,0),e.qex(3,5),e.j41(4,"div",6)(5,"a",7)(6,"mat-icon"),e.EFF(7," arrow_back "),e.k0s(),e.EFF(8," Back "),e.k0s()(),e.bVm(),e.nVh(9,O,2,0,"div",8),e.nI1(10,"async"),e.vZN(11,w,5,7),e.k0s(),e.j41(12,"ehs-card",9),e.nrm(13,"ehsc-service-event-list-filters"),e.k0s(),e.j41(14,"ehs-card",10,1),e.nVh(16,z,2,0,"div",8),e.nI1(17,"async"),e.vZN(18,ee,2,3),e.k0s()()),2&i){const o=e.sdS(2),v=e.sdS(15);e.R7$(5),e.Y8G("routerLink",e.l_i(7,Q,s.company,s.eventService)),e.R7$(4),e.vxM(e.bMT(10,3,o.store.loading$)?9:11),e.R7$(7),e.vxM(e.bMT(17,5,v.store.loading$)?16:18)}},dependencies:[h.Wk,V.F,R.l,X.P,m.DJ,m.BO,m.sA,m.UI,L.LG,F.An,S.$z,B,A.W,k.f,W.y,Y.b,p.Jj],encapsulation:2,changeDetection:0})}return t})()}];let ne=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=e.$C({type:t});static \u0275inj=r.G2t({imports:[h.iI.forChild(te),h.iI]})}return t})();a(96661),a(82525),a(54791);let ae=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=e.$C({type:t});
1static \u0275inj=r.G2t({imports:[p.MD,ne,h.iI,T.vG.forFeature({clientAdmin:!0}),x.tQ.forFeature({clientAdmin:!0}),C.Fc.forFeature({clientAdmin:!0}),I.Hs,E.YF,L.D6,F.m_,S.Hl,G,u.FDO,u.csK,u.BCB,u.cU9]})}return t})()}}]);

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.