(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{JJIx:function(e,t,n){"use strict";n.r(t),n.d(t,"PortalModule",(function(){return ut}));var i=n("ofXK"),s=n("tyNb"),r=n("PSD3"),o=n.n(r),c=n("fXoL"),a=n("AGyb"),b=n("1kSV"),l=n("3Pt+");function d(e,t){if(1&e){const e=c.Pb();c.Ob(0,"div",28),c.Ob(1,"div",29),c.Ob(2,"p"),c.Kb(3,"i",30),c.Ob(4,"strong"),c.zc(5,"Your password is older than 180 days,"),c.Nb(),c.zc(6," please update it. "),c.Nb(),c.Ob(7,"button",31),c.Zb("click",(function(){c.qc(e);const t=c.bc(),n=c.pc(51);return t.open(n)})),c.Kb(8,"i",32),c.zc(9," Change Password Now "),c.Nb(),c.Nb(),c.Nb()}}function g(e,t){1&e&&(c.Kb(0,"i",32),c.zc(1," Update "))}function u(e,t){1&e&&(c.Kb(0,"i",60),c.zc(1," Please Wait... "))}function p(e,t){if(1&e){const e=c.Pb();c.Ob(0,"form",33,34),c.Zb("ngSubmit",(function(){c.qc(e);const t=c.pc(1);return c.bc().saveSettings(t)})),c.Ob(2,"div",35),c.Ob(3,"h4",36),c.Kb(4,"i",37),c.zc(5," Update Settings"),c.Nb(),c.Nb(),c.Ob(6,"div",38),c.Ob(7,"div",39),c.Ob(8,"label",40),c.zc(9,"First Name"),c.Nb(),c.Ob(10,"div",41),c.Ob(11,"input",42,43),c.Zb("ngModelChange",(function(t){return c.qc(e),c.bc().userFirstName=t})),c.Nb(),c.Nb(),c.Nb(),c.Ob(13,"div",39),c.Ob(14,"label",44),c.zc(15,"Last Name"),c.Nb(),c.Ob(16,"div",41),c.Ob(17,"input",45,46),c.Zb("ngModelChange",(function(t){return c.qc(e),c.bc().userLastName=t})),c.Nb(),c.Nb(),c.Nb(),c.Kb(19,"br"),c.Ob(20,"p"),c.Ob(21,"small"),c.zc(22,"Only fill the fields below if you want to change password"),c.Nb(),c.Nb(),c.Ob(23,"div",39),c.Ob(24,"label",47),c.zc(25,"Current Password"),c.Nb(),c.Ob(26,"div",41),c.Kb(27,"input",48),c.Nb(),c.Nb(),c.Ob(28,"div",39),c.Ob(29,"label",49),c.zc(30,"New Password"),c.Nb(),c.Ob(31,"div",41),c.Kb(32,"input",50,51),c.Nb(),c.Nb(),c.Ob(34,"div",39),c.Ob(35,"label",52),c.zc(36,"Confirm Password"),c.Nb(),c.Ob(37,"div",41),c.Kb(38,"input",53,54),c.Nb(),c.Nb(),c.Nb(),c.Ob(40,"div",55),c.Ob(41,"button",56),c.xc(42,g,2,0,"ng-template",57),c.xc(43,u,2,0,"ng-template",57),c.Nb(),c.Ob(44,"button",58),c.Zb("click",(function(){return t.$implicit.close()})),c.Kb(45,"i",59),c.zc(46," Cancel "),c.Nb(),c.Nb(),c.Nb()}if(2&e){const e=c.pc(1),t=c.pc(12),n=c.pc(18),i=c.pc(33),s=c.pc(39),r=c.bc();c.xb(11),c.Bb("invalidControl",t.dirty&&t.invalid),c.hc("value",r.mainSvc.user.firstName),c.gc("ngModel",r.userFirstName),c.xb(6),c.Bb("invalidControl",n.dirty&&n.invalid),c.gc("ngModel",r.userLastName),c.xb(15),c.Bb("invalidControl",i.dirty&&i.invalid),c.xb(6),c.Bb("invalidControl",s.dirty&&s.invalid),c.xb(3),c.gc("disabled",e.pristine||e.invalid),c.xb(1),c.gc("ngIf",!r.isProcessing),c.xb(1),c.gc("ngIf",r.isProcessing)}}let f=(()=>{class e{constructor(e,t){this.mainSvc=e,this.modalService=t,this.isProcessing=!1,this.userFirstName=null,this.userLastName=null,this.showUpdatePasswordNotification=!1}ngOnInit(){this.window=window,this.location=location,document.getElementById("header-container")&&(document.getElementById("header-container").style.display="none");const e=window.localStorage.getItem("showUpdatePasswordNotification");this.showUpdatePasswordNotification=null!==e&&"yes"===e}open(e){this.mainSvc.isLoggedIn&&(this.userFirstName=this.mainSvc.user.firstName,this.userLastName=this.mainSvc.user.lastName,this.modalService.open(e))}doLogout(){o.a.fire({title:"Are you sure?",text:"",icon:"warning",showCancelButton:!0,confirmButtonText:"Yes, Logout",cancelButtonText:"No"}).then(e=>{if(e.value&&(this.mainSvc.logout(),window.outerWidth>700&&(document.getElementsByClassName("header-top-links-box").length>0&&(document.getElementsByClassName("header-top-links-box")[0].style.display="block"),document.getElementsByClassName("header-menu-container").length>0&&(document.getElementsByClassName("header-menu-container")[0].style.display="block"),document.getElementsByClassName("search-form-wrapper").length>0&&(document.getElementsByClassName("search-form-wrapper")[0].style.visibility="visible"),document.getElementById("header-container")))){const e=document.getElementById("header-container");e.style.paddingTop="0",e.style.paddingBottom="0"}})}saveSettings(e){this.isProcessing=!0,console.log(e.controls),this.mainSvc.saveSettings(this.userFirstName,this.userLastName,e.controls.currentPassword.value,e.controls.newPassword.value,e.controls.confirmPassword.value).subscribe(e=>{this.isProcessing=!1,e.error?o.a.fire("Error Occurred!",e.errorMessage,"error"):e.success&&o.a.fire("Settings Saved Successfully!","","success").then(e=>{this.modalService.dismissAll()})},e=>{this.isProcessing=!1,o.a.fire("Error Occurred!","Something went wrong. Please re-try again.","error")})}}return e.\u0275fac=function(t){return new(t||e)(c.Jb(a.a),c.Jb(b.e))},e.\u0275cmp=c.Db({type:e,selectors:[["app-portal"]],decls:52,vars:2,consts:[[1,"pt-2","pb-2"],[1,"container"],[1,"d-sm-flex","d-none","align-items-center","justify-content-between"],[1,"d-flex","align-items-center","justify-content-between"],["routerLink","/app/dashboard"],["alt","","src","https://secure3.mearie.ca/hubfs/portal-app/assets/logo-2022.svg",2,"max-width","310px","margin-right","5px"],["routerLink","/app/dashboard",1,"main-menu-item"],[1,"main-menu-item"],["href","https://secure3.mearie.ca/contact-us",1,"main-menu-item"],["href","tel:18006689979",1,"main-menu-item"],[1,"main-menu-secondary"],["href","https://secure3.mearie.ca/","target","_blank",1,"main-menu-secondary-item"],[1,"main-menu-secondary-item"],[1,"main-menu-secondary-item",2,"cursor","pointer",3,"click"],[1,"d-flex","d-sm-none","align-items-center","justify-content-between"],["alt","","src","https://secure3.mearie.ca/hubfs/portal-app/assets/logo-2022.svg",2,"max-width","60px"],["ngbDropdown","","display","dynamic",1,"dropdown"],["id","dropdownBasic1","ngbDropdownToggle","",1,"btn","btn-lg","btn-outline-secondary"],[1,"fas","fa-bars"],["ngbDropdownMenu","","aria-labelledby","dropdownBasic1"],["ngbDropdownItem","","routerLink","/app/dashboard"],["ngbDropdownItem","",3,"click"],[1,"hero-container"],[1,"d-sm-flex","align-items-sm-center"],[1,"white"],["class","container mt-3",4,"ngIf"],[1,"inner-body"],["modalSettings",""],[1,"container","mt-3"],[1,"alert","alert-primary"],[1,"fa","fa-exclamation-circle"],["type","button",1,"btn","btn-dark",3,"click"],[1,"fa","fa-check"],[3,"ngSubmit"],["settingsForm","ngForm"],[1,"modal-header"],["id","modal-basic-title",1,"modal-title"],[1,"fa","fa-edit"],[1,"modal-body"],[1,"form-group","row"],["for","firstName",1,"col-form-label","col-sm-4"],[1,"col-sm-8"],["id","firstName","name","firstName","required","","type","text",1,"form-control",3,"ngModel","value","ngModelChange"],["firstName","ngModel"],["for","lastName",1,"col-form-label","col-sm-4"],["id","lastName","name","lastName","required","","type","text",1,"form-control",3,"ngModel","ngModelChange"],["lastName","ngModel"],["for","currentPassword",1,"col-form-label","col-sm-4"],["ngModel","","id","currentPassword","name","currentPassword","type","password",1,"form-control"],["for","newPassword",1,"col-form-label","col-sm-4"],["placeholder","Must be at least 12 - 20 characters long","id","newPassword","minlength","8","name","newPassword","ngModel","","type","password",1,"form-control"],["newPassword","ngModel"],["for","confirmPassword",1,"col-form-label","col-sm-4"],["id","confirmPassword","minlength","8","name","confirmPassword","ngModel","","type","password",1,"form-control"],["confirmPassword","ngModel"],[1,"modal-footer"],["type","submit",1,"btn","btn-default",3,"disabled"],[3,"ngIf"],["type","button",1,"btn","btn-grey",3,"click"],[1,"fa","fa-times"],[1,"fa","fa-cog","fa-spin"]],template:function(e,t){if(1&e){const e=c.Pb();c.Ob(0,"header",0),c.Ob(1,"div",1),c.Ob(2,"div",2),c.Ob(3,"div",3),c.Ob(4,"a",4),c.Kb(5,"img",5),c.Nb(),c.Ob(6,"a",6),c.zc(7,"My MEARIE Home"),c.Nb(),c.Ob(8,"span",7),c.zc(9,"|"),c.Nb(),c.Ob(10,"a",8),c.zc(11,"Contact Us"),c.Nb(),c.Ob(12,"span",7),c.zc(13,"|"),c.Nb(),c.Ob(14,"a",9),c.zc(15,"Toll Free: 1800-668-9979"),c.Nb(),c.Nb(),c.Ob(16,"div",10),c.Ob(17,"a",11),c.zc(18,"MEARIE.ca"),c.Nb(),c.Ob(19,"span",12),c.zc(20,"|"),c.Nb(),c.Ob(21,"a",13),c.Zb("click",(function(){return t.doLogout()})),c.zc(22,"Logout"),c.Nb(),c.Ob(23,"span",12),c.zc(24,"/"),c.Nb(),c.Ob(25,"a",13),c.Zb("click",(function(){c.qc(e);const n=c.pc(51);return t.open(n)})),c.zc(26,"Settings"),c.Nb(),c.Nb(),c.Nb(),c.Ob(27,"div",14),c.Ob(28,"a",4),c.Kb(29,"img",15),c.Nb(),c.Ob(30,"div",16),c.Ob(31,"button",17),c.Kb(32,"i",18),c.Nb(),c.Ob(33,"div",19),c.Ob(34,"button",20),c.zc(35,"My MEARIE Home"),c.Nb(),c.Ob(36,"button",21),c.Zb("click",(function(){return t.location.href="https://secure3.mearie.ca/contact-us"})),c.zc(37,"Contact Us"),c.Nb(),c.Ob(38,"button",21),c.Zb("click",(function(){c.qc(e);const n=c.pc(51);return t.open(n)})),c.zc(39,"Settings"),c.Nb(),c.Ob(40,"button",21),c.Zb("click",(function(){return t.doLogout()})),c.zc(41,"Logout"),c.Nb(),c.Nb(),c.Nb(),c.Nb(),c.Nb(),c.Nb(),c.Ob(42,"div",22),c.Ob(43,"div",1),c.Ob(44,"div",23),c.Ob(45,"h4",24),c.zc(46),c.Nb(),c.Nb(),c.Nb(),c.Nb(),c.xc(47,d,10,0,"div",25),c.Ob(48,"div",26),c.Kb(49,"router-outlet"),c.Nb(),c.xc(50,p,47,14,"ng-template",null,27,c.yc)}2&e&&(c.xb(46),c.Bc("Welcome ",null===t.mainSvc.user?"User":t.mainSvc.user.firstName,""),c.xb(1),c.gc("ngIf",t.showUpdatePasswordNotification))},directives:[s.d,b.a,b.d,b.c,b.b,s.c,i.k,s.f,l.p,l.i,l.j,l.a,l.m,l.h,l.k,l.e],styles:["#dropdownBasic1[_ngcontent-%COMP%]:after{content:none}header[_ngcontent-%COMP%]{background:#fff}"]}),e})(),m=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=c.Db({type:e,selectors:[["app-load-message"]],decls:2,vars:0,consts:[[1,"fa","fa-cog","fa-spin"]],template:function(e,t){1&e&&(c.Kb(0,"i",0),c.zc(1," Loading...\n"))},styles:[".heading-line[_ngcontent-%COMP%]{border:1px solid #00205b;width:60px}"]}),e})();function h(e,t){1&e&&c.Kb(0,"app-load-message")}function O(e,t){1&e&&(c.Ob(0,"div",7),c.Kb(1,"i",8),c.zc(2," Failed to load categories. Reload page to try-again. "),c.Nb())}function N(e,t){if(1&e&&(c.Ob(0,"a",16),c.zc(1),c.Nb()),2&e){const e=c.bc(2).$implicit;c.ic("routerLink","/app/category/",e.id,""),c.xb(1),c.Ac(e.title)}}function v(e,t){if(1&e&&(c.Ob(0,"a",17),c.zc(1),c.Nb()),2&e){const e=c.bc(2).$implicit;c.xb(1),c.Ac(e.title)}}function x(e,t){if(1&e&&(c.Ob(0,"a",18),c.zc(1),c.Nb()),2&e){const e=c.bc(2).$implicit;c.xb(1),c.Ac(e.title)}}function y(e,t){if(1&e&&(c.Ob(0,"a",19),c.zc(1),c.Nb()),2&e){const e=c.bc(2).$implicit;c.xb(1),c.Ac(e.title)}}function k(e,t){if(1&e&&(c.Ob(0,"a",20),c.zc(1),c.Nb()),2&e){const e=c.bc(2).$implicit;c.xb(1),c.Ac(e.title)}}const w=function(){return["28","7","30","2"]};function P(e,t){if(1&e&&(c.Ob(0,"li"),c.xc(1,N,2,2,"a",11),c.xc(2,v,2,1,"a",12),c.xc(3,x,2,1,"a",13),c.xc(4,y,2,1,"a",14),c.xc(5,k,2,1,"a",15),c.Nb()),2&e){const e=c.bc().$implicit;c.xb(1),c.gc("ngIf",-1==c.kc(5,w).indexOf(e.id)),c.xb(1),c.gc("ngIf","28"==e.id),c.xb(1),c.gc("ngIf","7"==e.id),c.xb(1),c.gc("ngIf","30"==e.id),c.xb(1),c.gc("ngIf","2"==e.id)}}function I(e,t){1&e&&c.xc(0,P,6,6,"li",10),2&e&&c.gc("ngIf",t.$implicit.latest_resources.length>0)}function C(e,t){if(1&e&&(c.Ob(0,"ul",2),c.xc(1,I,1,1,"ng-template",9),c.Nb()),2&e){const e=c.bc();c.wc("display",e.showCategory?"block":"none"),c.xb(1),c.gc("ngForOf",e.categories)}}let z=(()=>{class e{constructor(e){this.mainSvc=e,this.isProcessing=!1,this.loadError=!1,this.categories=[],this.showCategory=!1}ngOnInit(){this.isProcessing=!0,this.showCategory=window.outerWidth>700,this.mainSvc.getTopLevelCategories().subscribe(e=>{this.isProcessing=!1,e.error&&(this.loadError=!0),e.success&&(this.categories=e.childCategories)},e=>{this.loadError=!0})}showHideCategory(){this.showCategory=!this.showCategory}}return e.\u0275fac=function(t){return new(t||e)(c.Jb(a.a))},e.\u0275cmp=c.Db({type:e,selectors:[["app-categories-panel"]],decls:15,vars:3,consts:[[3,"ngIf"],[1,"header","d-none","d-sm-block"],[1,"list-categories",2,"border-top","solid 1px #DBDBDB"],["routerLink","/app/my-courses"],[1,"d-block","d-sm-none","mb-3"],["type","button",1,"btn","btn-default",3,"click"],["class","list-categories","style","border-top: solid 1px #DBDBDB;",3,"display",4,"ngIf"],[1,"alert","alert-danger"],[1,"fa","fa-exclamation-triangle"],["ngFor","",3,"ngForOf"],[4,"ngIf"],[3,"routerLink",4,"ngIf"],["routerLink","/app/cbd-search",4,"ngIf"],["routerLink","/app/resource/page/4",4,"ngIf"],["routerLink","/app/resource/page/40",4,"ngIf"],["routerLink","/app/resource/page/30",4,"ngIf"],[3,"routerLink"],["routerLink","/app/cbd-search"],["routerLink","/app/resource/page/4"],["routerLink","/app/resource/page/40"],["routerLink","/app/resource/page/30"]],template:function(e,t){1&e&&(c.xc(0,h,1,0,"ng-template",0),c.xc(1,O,3,0,"ng-template",0),c.Ob(2,"h5",1),c.zc(3,"Training"),c.Nb(),c.Ob(4,"ul",2),c.Ob(5,"li"),c.Ob(6,"a",3),c.zc(7,"My Courses"),c.Nb(),c.Nb(),c.Nb(),c.Kb(8,"br"),c.Ob(9,"h5",1),c.zc(10,"Categories"),c.Nb(),c.Ob(11,"div",4),c.Ob(12,"button",5),c.Zb("click",(function(){return t.showHideCategory()})),c.zc(13,"Show Categories"),c.Nb(),c.Nb(),c.xc(14,C,2,3,"ul",6)),2&e&&(c.gc("ngIf",t.isProcessing),c.xb(1),c.gc("ngIf",t.loadError),c.xb(13),c.gc("ngIf",!t.isProcessing&&!t.loadError))},directives:[i.k,s.d,m,i.j],styles:[".list-categories[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0}.list-categories[_ngcontent-%COMP%] li.header[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-style:normal;font-weight:400;font-size:18px;color:#222a41;border-bottom:1px solid #dbdbdb}.list-categories[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{border-bottom:1px solid #dbdbdb;padding:10px 0}.list-categories[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#666869;text-decoration:none;font-size:14px}.list-categories[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}"]}),e})();function M(e,t){if(1&e&&(c.Ob(0,"div",1),c.Ob(1,"div",2),c.Ob(2,"div",3),c.Ob(3,"div",4),c.Ob(4,"h5",5),c.zc(5,"MEARIE P&C Insurance Portal"),c.Nb(),c.Ob(6,"p",6),c.zc(7," The MEARIE P&C Insurance Portal includes "),c.Ob(8,"strong"),c.zc(9,"Applications"),c.Nb(),c.zc(10," for MEARIE Insurance products and the self-serve "),c.Ob(11,"strong"),c.zc(12,"Certificate Request"),c.Nb(),c.Nb(),c.Nb(),c.Ob(13,"div",7),c.Ob(14,"a",8),c.zc(15,"Click Here"),c.Nb(),c.Nb(),c.Nb(),c.Nb(),c.Nb()),2&e){const e=c.bc();c.xb(14),c.hc("href",e.portalLink,c.sc)}}let E=(()=>{class e{constructor(e){this.mainSvc=e,this.isProcessing=!1,this.showBar=!1,this.portalLink=null}ngOnInit(){this.mainSvc.getFeaturePermission("mearie-insurance-portal").subscribe(e=>{e.success&&(this.showBar=e.canAccess,this.showBar&&this.getPortalLink())},e=>{this.showBar=!1})}getPortalLink(){this.mainSvc.getBrokerCoreLink().subscribe(e=>{e.success&&(this.portalLink=e.portalLink)},e=>{this.portalLink=null})}}return e.\u0275fac=function(t){return new(t||e)(c.Jb(a.a))},e.\u0275cmp=c.Db({type:e,selectors:[["app-insurance-bar"]],decls:1,vars:1,consts:[[3,"ngIf"],[1,"card","mt-3"],[1,"card-body",2,"padding","0.5rem 1rem"],[1,"d-flex","justify-content-end","align-items-center"],[1,"mr-3"],[1,"blue"],[1,"mb-0"],[1,"text-right"],[1,"btn","btn-lg","btn-default",2,"white-space","nowrap",3,"href"]],template:function(e,t){1&e&&c.xc(0,M,16,1,"ng-template",0),2&e&&c.gc("ngIf",t.showBar&&null!==t.portalLink)},directives:[i.k],styles:[""]}),e})();function K(e,t){1&e&&(c.Ob(0,"div",1),c.Ob(1,"div",2),c.Ob(2,"div",3),c.Ob(3,"div",4),c.Ob(4,"h5",5),c.zc(5,"Group Benefits Digital Enrollment Form"),c.Nb(),c.Nb(),c.Ob(6,"div",6),c.Ob(7,"a",7),c.zc(8,"Click Here"),c.Nb(),c.Nb(),c.Nb(),c.Nb(),c.Nb())}let L=(()=>{class e{constructor(e){this.mainSvc=e,this.isProcessing=!1,this.showBar=!1}ngOnInit(){this.mainSvc.getFeaturePermission("group-benefits-digital-enrollment-form").subscribe(e=>{e.success&&(this.showBar=e.canAccess)},e=>{this.showBar=!1})}}return e.\u0275fac=function(t){return new(t||e)(c.Jb(a.a))},e.\u0275cmp=c.Db({type:e,selectors:[["app-group-benefits-bar"]],decls:1,vars:1,consts:[[3,"ngIf"],[1,"card","mt-3"],[1,"card-body",2,"padding","0.5rem 1rem"],[1,"row","align-items-center"],[1,"col-sm-8"],[1,"mb-0",2,"font-weight","normal"],[1,"col-sm-4","text-right"],["href","https://ca.docusign.net/Member/PowerFormSigning.aspx?PowerFormId=4b21d452-72c3-4210-ac03-699d6ca59424&env=ca&acct=2e4ef24c-bd05-4e1a-8262-c04c37248b90&v=2","target","_blank",1,"btn","btn-lg","btn-default"]],template:function(e,t){1&e&&c.xc(0,K,9,0,"ng-template",0),2&e&&c.gc("ngIf",t.showBar)},directives:[i.k],styles:[""]}),e})();function S(e,t){if(1&e&&(c.Ob(0,"div",1),c.Ob(1,"div",2),c.Ob(2,"div",3),c.Ob(3,"div",4),c.Ob(4,"h5",5),c.zc(5,"Access Brokercore"),c.Nb(),c.Nb(),c.Ob(6,"div",6),c.Ob(7,"a",7),c.zc(8,"Click Here"),c.Nb(),c.Nb(),c.Nb(),c.Nb(),c.Nb()),2&e){const e=c.bc();c.xb(7),c.hc("href",e.portalLink,c.sc)}}let B=(()=>{class e{constructor(e){this.mainSvc=e,this.showBrokerCore=!1,this.showBrokerCoreTest=!1,this.portalLink=null}ngOnInit(){this.mainSvc.getFeaturePermission("broker-core").subscribe(e=>{e.success&&(this.showBrokerCore=e.canAccess,this.showBrokerCore&&this.getPortalLink())},e=>{this.showBrokerCore=!1}),this.mainSvc.getFeaturePermission("broker-core-test").subscribe(e=>{e.success&&(this.showBrokerCoreTest=e.canAccess)},e=>{this.showBrokerCoreTest=!1})}getPortalLink(){this.mainSvc.getBrokerCoreLink().subscribe(e=>{e.success&&(this.portalLink=e.portalLink)},e=>{this.portalLink=null})}}return e.\u0275fac=function(t){return new(t||e)(c.Jb(a.a))},e.\u0275cmp=c.Db({type:e,selectors:[["app-broker-core-bar"]],decls:1,vars:1,consts:[[3,"ngIf"],[1,"card","mt-3"],[1,"card-body",2,"padding","0.5rem 1rem"],[1,"row","align-items-center"],[1,"col-sm-8"],[1,"mb-0",2,"font-weight","normal"],[1,"col-sm-4","text-right"],["target","_blank",1,"btn","btn-lg","btn-default",3,"href"]],template:function(e,t){1&e&&c.xc(0,S,9,1,"ng-template",0),2&e&&c.gc("ngIf",t.showBrokerCore&&!t.showBrokerCoreTest&&null!==t.portalLink)},directives:[i.k],styles:[""]}),e})();function _(e,t){if(1&e&&(c.Ob(0,"div",1),c.Ob(1,"div",2),c.Ob(2,"div",3),c.Ob(3,"div",4),c.Ob(4,"h5",5),c.zc(5,"Access Brokercore (Test)"),c.Nb(),c.Nb(),c.Ob(6,"div",6),c.Ob(7,"a",7),c.zc(8,"Click Here"),c.Nb(),c.Nb(),c.Nb(),c.Nb(),c.Nb()),2&e){const e=c.bc();c.xb(7),c.hc("href",e.portalLink,c.sc)}}let A=(()=>{class e{constructor(e){this.mainSvc=e,this.showBar=!1,this.portalLink=null}ngOnInit(){this.mainSvc.getFeaturePermission("broker-core-test").subscribe(e=>{e.success&&(this.showBar=e.canAccess,this.showBar&&this.getPortalLink())},e=>{this.showBar=!1})}getPortalLink(){this.mainSvc.getBrokerCoreLink(!0).subscribe(e=>{e.success&&(this.portalLink=e.portalLink)},e=>{this.portalLink=null})}}return e.\u0275fac=function(t){return new(t||e)(c.Jb(a.a))},e.\u0275cmp=c.Db({type:e,selectors:[["app-broker-core-bar-test"]],decls:1,vars:1,consts:[[3,"ngIf"],[1,"card","mt-3"],[1,"card-body",2,"padding","0.5rem 1rem"],[1,"row","align-items-center"],[1,"col-sm-8"],[1,"mb-0",2,"font-weight","normal"],[1,"col-sm-4","text-right"],["target","_blank",1,"btn","btn-lg","btn-default",3,"href"]],template:function(e,t){1&e&&c.xc(0,_,9,1,"ng-template",0),2&e&&c.gc("ngIf",t.showBar&&null!==t.portalLink)},directives:[i.k],styles:[""]}),e})();function F(e,t){1&e&&c.Kb(0,"app-load-message")}function D(e,t){1&e&&(c.Ob(0,"div",6),c.Kb(1,"i",7),c.zc(2," Failed to load page. Refresh to try-again. "),c.Nb())}function R(e,t){if(1&e&&(c.Ob(0,"a",25),c.Kb(1,"i",26),c.Ob(2,"span",27),c.zc(3),c.Nb(),c.Nb()),2&e){const e=c.bc().$implicit;c.jc("routerLink","/app/resource/",e.type,"/",e.id,""),c.xb(3),c.Ac(e.title)}}function T(e,t){if(1&e&&(c.Ob(0,"a",28),c.Kb(1,"i",29),c.Ob(2,"span",27),c.zc(3),c.Nb(),c.Nb()),2&e){const e=c.bc().$implicit;c.ic("routerLink","/app/document/",e.hash,""),c.xb(3),c.Ac(e.title)}}function Z(e,t){if(1&e&&(c.Ob(0,"li"),c.xc(1,R,4,3,"a",23),c.xc(2,T,4,2,"a",24),c.Nb()),2&e){const e=t.$implicit;c.xb(1),c.gc("ngIf","page"===e.type),c.xb(1),c.gc("ngIf","document"===e.type)}}function J(e,t){if(1&e&&(c.Ob(0,"div",11),c.Ob(1,"div",12),c.Ob(2,"div"),c.Ob(3,"div",13),c.Kb(4,"i",14),c.Nb(),c.Nb(),c.Ob(5,"div"),c.Ob(6,"h3",15),c.zc(7),c.Nb(),c.Kb(8,"div",16),c.Nb(),c.Nb(),c.Ob(9,"div",17),c.Ob(10,"ul",18),c.xc(11,Z,3,2,"li",19),c.Nb(),c.Nb(),c.Ob(12,"div",20),c.Ob(13,"a",21),c.zc(14,"View All"),c.Nb(),c.Kb(15,"i",22),c.Nb(),c.Nb()),2&e){const e=c.bc().$implicit;c.xb(7),c.Ac(e.title),c.xb(4),c.gc("ngForOf",e.latest_resources),c.xb(2),c.ic("routerLink","/app/category/",e.id,"")}}function $(e,t){1&e&&c.xc(0,J,16,3,"div",10),2&e&&c.gc("ngIf",t.$implicit.latest_resources.length>0)}function j(e,t){if(1&e&&(c.Ob(0,"div",8),c.xc(1,$,1,1,"ng-template",9),c.Nb()),2&e){const e=c.bc();c.xb(1),c.gc("ngForOf",e.categories)}}let q=(()=>{class e{constructor(e){this.mainSvc=e,this.loadError=!1,this.isProcessing=!1,this.categories=[]}ngOnInit(){this.isProcessing=!0,document.title="My MEARIE Home",this.mainSvc.getTopLevelCategories().subscribe(e=>{this.isProcessing=!1,this.loadError=e.error,e.success&&(this.categories=e.childCategories)},e=>{this.loadError=!0})}ngAfterViewInit(){const e=document.getElementsByClassName("list-category-box-entry");let t=1,n=1;for(let i=0;i{class e{constructor(e){this.mainSvc=e,this.isProcessing=!1,this.emailAddress=null,this.firstName=null,this.lastName=null,this.userId=null,this.showBar=!1}ngOnInit(){this.mainSvc.getFeaturePermission("erisk-hub-bar").subscribe(e=>{e.success&&(this.showBar=e.canAccess)},e=>{this.showBar=!1})}process(e){this.isProcessing=!0,this.mainSvc.getCurrentUserProfile().subscribe(t=>{this.isProcessing=!1,console.log(t),t.error?o.a.fire("Error Encountered!","Failed to launch eRisk Hub. Please re-try again.","error"):t.success&&(this.emailAddress=t.data.email_address,this.firstName=t.data.first_name,this.lastName=t.data.last_name,this.userId=t.data.hubspot_id,setTimeout(()=>{e.submit()},1e3))},e=>{this.isProcessing=!1,o.a.fire("Error Encountered!","Failed to launch eRisk Hub. Please re-try again.","error")})}}return e.\u0275fac=function(t){return new(t||e)(c.Jb(a.a))},e.\u0275cmp=c.Db({type:e,selectors:[["app-erisk"]],decls:1,vars:1,consts:[[3,"ngIf"],[1,"card","mt-3"],[1,"card-body",2,"padding","0.5rem 1rem"],[1,"row","align-items-center"],[1,"col-sm-8"],[1,"mb-0",2,"font-weight","normal"],[1,"col-sm-4","text-right"],["method","post","action","https://eriskhub.com/MEARIE-sso.php","name","eRHSSO","target","_blank"],["eRiskForm",""],["name","REQUESTER","type","hidden","value","MEARIE"],["name","EMAIL","type","hidden",3,"ngModel","ngModelChange"],["name","USERID","type","hidden",3,"ngModel","ngModelChange"],["name","FNAME","type","hidden",3,"ngModel","ngModelChange"],["name","LNAME","type","hidden",3,"ngModel","ngModelChange"],["name","ORGANIZATION","type","hidden","value",""],["type","button",1,"btn","btn-lg","btn-default",3,"click"],[1,"fa","fa-cog","fa-spin"]],template:function(e,t){1&e&&c.xc(0,G,18,6,"ng-template",0),2&e&&c.gc("ngIf",t.showBar)},directives:[i.k,l.p,l.i,l.j,l.a,l.h,l.k],styles:[""]}),e})();function W(e,t){1&e&&c.Kb(0,"app-load-message")}function Y(e,t){if(1&e){const e=c.Pb();c.Ob(0,"div",1),c.Kb(1,"i",2),c.zc(2," Failed to load resources for current category. "),c.Nb(),c.Ob(3,"button",3),c.Zb("click",(function(){return c.qc(e),c.bc().loadResources()})),c.Kb(4,"i",4),c.zc(5," Retry Again "),c.Nb()}}function X(e,t){1&e&&c.Kb(0,"i",15)}function Q(e,t){1&e&&c.Kb(0,"i",16)}function ee(e,t){if(1&e&&(c.Ob(0,"a",17),c.zc(1),c.Nb()),2&e){const e=c.bc().$implicit;c.jc("routerLink","/app/resource/",e.type,"/",e.id,""),c.xb(1),c.Ac(e.title)}}function te(e,t){if(1&e&&(c.Ob(0,"a",18),c.zc(1),c.Nb()),2&e){const e=c.bc().$implicit;c.ic("routerLink","/app/document/",e.hash,""),c.xb(1),c.Ac(e.title)}}function ne(e,t){if(1&e&&(c.Ob(0,"li",8),c.Ob(1,"div",9),c.Ob(2,"div",10),c.xc(3,X,1,0,"i",11),c.xc(4,Q,1,0,"i",12),c.Nb(),c.xc(5,ee,2,3,"a",13),c.xc(6,te,2,2,"a",14),c.Nb(),c.Nb()),2&e){const e=t.$implicit;c.xb(3),c.gc("ngIf","document"===e.type),c.xb(1),c.gc("ngIf","page"===e.type),c.xb(1),c.gc("ngIf","page"===e.type),c.xb(1),c.gc("ngIf","document"===e.type)}}function ie(e,t){1&e&&(c.Ob(0,"span"),c.Kb(1,"i",21),c.zc(2," Please wait... "),c.Nb())}function se(e,t){1&e&&(c.Ob(0,"span"),c.zc(1," Load More "),c.Nb())}function re(e,t){if(1&e){const e=c.Pb();c.Ob(0,"button",19),c.Zb("click",(function(){return c.qc(e),c.bc(2).loadResources()})),c.xc(1,ie,3,0,"span",20),c.xc(2,se,2,0,"span",20),c.Nb()}if(2&e){const e=c.bc(2);c.xb(1),c.gc("ngIf",e.isProcessing),c.xb(1),c.gc("ngIf",!e.isProcessing)}}function oe(e,t){if(1&e&&(c.Ob(0,"ul",5),c.xc(1,ne,7,4,"li",6),c.Nb(),c.xc(2,re,3,2,"button",7)),2&e){const e=c.bc();c.xb(1),c.gc("ngForOf",e.resources)("ngForTrackBy",e.updateNewResource),c.xb(1),c.gc("ngIf",!e.noMorePages)}}let ce=(()=>{class e{constructor(e){this.mainSvc=e,this.sortOrder="latest",this.skipDocuments=[],this.skipPages=[],this.isProcessing=!0,this.loadError=!0,this.resources=[],this.pageNo=1,this.noMorePages=!1}ngOnInit(){}ngOnChanges(e){(e.sortOrder&&e.sortOrder.currentValue!==e.sortOrder.previousValue||e.categoryId&&e.categoryId!==e.categoryId.previousValue)&&(this.pageNo=1,this.resources=[],this.noMorePages=!1,this.loadResources())}loadResources(){this.isProcessing=!0,this.loadError=!1,this.mainSvc.getResources(this.categoryId,this.sortOrder,this.pageNo,this.skipDocuments,this.skipPages).subscribe(e=>{this.isProcessing=!1,this.loadError=e.error,e.success&&(this.resources.push(...e.resources),this.noMorePages=e.noMorePages,this.pageNo++)},e=>{this.isProcessing=!1,this.loadError=!1})}updateNewResource(e,t){return t.id}}return e.\u0275fac=function(t){return new(t||e)(c.Jb(a.a))},e.\u0275cmp=c.Db({type:e,selectors:[["app-category-resources"]],inputs:{categoryId:"categoryId",sortOrder:"sortOrder",skipDocuments:"skipDocuments",skipPages:"skipPages"},features:[c.vb],decls:3,vars:3,consts:[[3,"ngIf"],[1,"alert","alert-danger"],[1,"fa","fa-exclamation-triangle"],["type","button",1,"btn","btn-purple",3,"click"],[1,"fa","fa-refresh"],[1,"list-resources"],["class","resource-entry",4,"ngFor","ngForOf","ngForTrackBy"],["type","button","class","btn btn-default",3,"click",4,"ngIf"],[1,"resource-entry"],[1,"d-flex"],[1,"mr-2"],["class","far fa-file-pdf",4,"ngIf"],["class","far fa-file",4,"ngIf"],[3,"routerLink",4,"ngIf"],["target","_blank",3,"routerLink",4,"ngIf"],[1,"far","fa-file-pdf"],[1,"far","fa-file"],[3,"routerLink"],["target","_blank",3,"routerLink"],["type","button",1,"btn","btn-default",3,"click"],[4,"ngIf"],[1,"fa","fa-cog","fa-spin"]],template:function(e,t){1&e&&(c.xc(0,W,1,0,"ng-template",0),c.xc(1,Y,6,0,"ng-template",0),c.xc(2,oe,3,3,"ng-template",0)),2&e&&(c.gc("ngIf",t.isProcessing),c.xb(1),c.gc("ngIf",t.loadError),c.xb(1),c.gc("ngIf",!t.loadError))},directives:[i.k,m,i.j,s.d],styles:[".list-resources[_ngcontent-%COMP%]{list-style-type:none;padding:0;margin:2rem 0}.resource-entry[_ngcontent-%COMP%]{margin:1rem 0;font-size:18px}.resource-entry[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#00205b}"]}),e})();function ae(e,t){1&e&&c.Kb(0,"app-load-message")}function be(e,t){if(1&e){const e=c.Pb();c.Ob(0,"div",2),c.Kb(1,"i",3),c.zc(2," Failed to load search result. "),c.Nb(),c.Ob(3,"button",4),c.Zb("click",(function(){return c.qc(e),c.bc().search()})),c.zc(4,"Retry Again"),c.Nb()}}function le(e,t){1&e&&(c.Ob(0,"div",6),c.Kb(1,"i",3),c.zc(2," No matching record found. "),c.Nb())}function de(e,t){1&e&&c.Kb(0,"i",14)}function ge(e,t){1&e&&c.Kb(0,"i",15)}function ue(e,t){if(1&e&&(c.Ob(0,"a",16),c.zc(1),c.Nb()),2&e){const e=c.bc().$implicit;c.jc("routerLink","/app/resource/",e.type,"/",e.id,""),c.xb(1),c.Ac(e.title)}}function pe(e,t){if(1&e&&(c.Ob(0,"a",16),c.zc(1),c.Nb()),2&e){const e=c.bc().$implicit;c.ic("routerLink","/app/document/",e.hash,""),c.xb(1),c.Ac(e.title)}}function fe(e,t){if(1&e&&(c.Ob(0,"li",9),c.Ob(1,"div",10),c.xc(2,de,1,0,"i",11),c.xc(3,ge,1,0,"i",12),c.xc(4,ue,2,3,"a",13),c.xc(5,pe,2,2,"a",13),c.Nb(),c.Ob(6,"p"),c.Ob(7,"small"),c.zc(8),c.Nb(),c.Nb(),c.Nb()),2&e){const e=t.$implicit;c.xb(2),c.gc("ngIf","document"===e.type),c.xb(1),c.gc("ngIf","page"===e.type),c.xb(1),c.gc("ngIf","page"===e.type),c.xb(1),c.gc("ngIf","document"===e.type),c.xb(3),c.Ac(e.description)}}function me(e,t){if(1&e&&(c.Ob(0,"ul",7),c.xc(1,fe,9,5,"li",8),c.Nb()),2&e){const e=c.bc(2);c.xb(1),c.gc("ngForOf",e.results)}}function he(e,t){if(1&e&&(c.xc(0,le,3,0,"ng-template",1),c.xc(1,me,2,1,"ul",5)),2&e){const e=c.bc();c.gc("ngIf",0==e.results.length),c.xb(1),c.gc("ngIf",e.results.length>0)}}let Oe=(()=>{class e{constructor(e){this.mainSvc=e,this.searchKeyword="",this.isProcessing=!1,this.loadError=!1,this.results=[]}ngOnInit(){}ngOnChanges(e){e.searchKeyword.currentValue!==e.searchKeyword.previousValue&&(this.results=[],this.search())}search(){0!==this.searchKeyword.length&&(this.isProcessing=!0,this.mainSvc.doSearchResource(this.searchKeyword,this.category).subscribe(e=>{this.isProcessing=!1,this.loadError=e.error,e.success&&(this.results=e.results)},e=>{this.isProcessing=!1,this.loadError=!0}))}}return e.\u0275fac=function(t){return new(t||e)(c.Jb(a.a))},e.\u0275cmp=c.Db({type:e,selectors:[["app-search-result"]],inputs:{searchKeyword:"searchKeyword",category:"category"},features:[c.vb],decls:4,vars:3,consts:[[1,"pb-3"],[3,"ngIf"],[1,"alert","alert-danger"],[1,"fa","fa-exclamation-triangle"],["type","button",1,"btn","btn-default",3,"click"],["style","padding: 0; margin: 0; list-style-type: square;",4,"ngIf"],[1,"alert","alert-warning"],[2,"padding","0","margin","0","list-style-type","square"],["class","m-3",4,"ngFor","ngForOf"],[1,"m-3"],[2,"font-size","1.5em"],["class","fa fa-file-pdf",4,"ngIf"],["class","fa fa-file",4,"ngIf"],["target","_blank","class","blue",3,"routerLink",4,"ngIf"],[1,"fa","fa-file-pdf"],[1,"fa","fa-file"],["target","_blank",1,"blue",3,"routerLink"]],template:function(e,t){1&e&&(c.Ob(0,"div",0),c.xc(1,ae,1,0,"ng-template",1),c.xc(2,be,5,0,"ng-template",1),c.xc(3,he,2,2,"ng-template",1),c.Nb()),2&e&&(c.xb(1),c.gc("ngIf",t.isProcessing),c.xb(1),c.gc("ngIf",t.loadError),c.xb(1),c.gc("ngIf",!t.isProcessing))},directives:[i.k,m,i.j,s.d],styles:[""]}),e})();function Ne(e,t){1&e&&c.Kb(0,"app-load-message")}function ve(e,t){1&e&&(c.Ob(0,"div",5),c.Kb(1,"i",6),c.zc(2," Failed to load category. Please refresh to try again. "),c.Nb())}function xe(e,t){if(1&e&&(c.Ob(0,"div"),c.Kb(1,"br"),c.Ob(2,"p"),c.zc(3),c.Nb(),c.Nb()),2&e){const e=c.bc(2);c.xb(3),c.Ac(e.category.description)}}function ye(e,t){1&e&&c.Kb(0,"app-erisk")}function ke(e,t){1&e&&c.Kb(0,"i",39)}function we(e,t){1&e&&c.Kb(0,"i",40)}function Pe(e,t){if(1&e&&(c.Ob(0,"a",41),c.zc(1),c.Nb()),2&e){const e=c.bc().$implicit;c.jc("routerLink","/app/resource/",e.type,"/",e.id,""),c.xb(1),c.Ac(e.title)}}function Ie(e,t){if(1&e&&(c.Ob(0,"a",42),c.zc(1),c.Nb()),2&e){const e=c.bc().$implicit;c.ic("routerLink","/app/document/",e.hash,""),c.xb(1),c.Ac(e.title)}}function Ce(e,t){if(1&e&&(c.Ob(0,"div",32),c.Ob(1,"div",33),c.Ob(2,"div",34),c.xc(3,ke,1,0,"i",35),c.xc(4,we,1,0,"i",36),c.Nb(),c.Ob(5,"div"),c.xc(6,Pe,2,3,"a",37),c.xc(7,Ie,2,2,"a",38),c.Nb(),c.Nb(),c.zc(8),c.Nb()),2&e){const e=t.$implicit,n=t.last,i=c.bc(4);c.xb(3),c.gc("ngIf","document"===e.type),c.xb(1),c.gc("ngIf","page"===e.type),c.xb(2),c.gc("ngIf","page"===e.type),c.xb(1),c.gc("ngIf","document"===e.type),c.xb(1),c.Bc(" ",n?i.processGridItems():""," ")}}function ze(e,t){if(1&e&&(c.Ob(0,"div",30),c.xc(1,Ce,9,5,"div",31),c.Nb()),2&e){const e=c.bc(3);c.xb(1),c.gc("ngForOf",e.category.latest_resources)}}function Me(e,t){if(1&e&&(c.xc(0,ze,2,1,"div",29),c.Kb(1,"br")),2&e){const e=c.bc(2);c.gc("ngIf",e.category.latest_resources.length>0)}}function Ee(e,t){if(1&e&&c.Kb(0,"app-category-resources",43),2&e){const e=c.bc(2);c.gc("categoryId",e.category.id)("skipDocuments",e.skipDocuments)("skipPages",e.skipPages)("sortOrder",e.sortOrder)}}function Ke(e,t){if(1&e){const e=c.Pb();c.Ob(0,"div",44),c.Ob(1,"div",45),c.Ob(2,"h4"),c.Kb(3,"i",46),c.zc(4," Search Result for "),c.Ob(5,"strong"),c.zc(6),c.Nb(),c.Nb(),c.Nb(),c.Ob(7,"div",47),c.Ob(8,"button",48),c.Zb("click",(function(){c.qc(e),c.bc();const t=c.pc(24);return c.bc().isSearchMode=!1,t.value=""})),c.Kb(9,"i",49),c.Nb(),c.Nb(),c.Nb(),c.Kb(10,"app-search-result",50)}if(2&e){const e=c.bc(2);c.xb(6),c.Bc('" ',e.searchKeyword,' "'),c.xb(4),c.gc("searchKeyword",e.searchKeyword)("category",e.category.id)}}function Le(e,t){if(1&e){const e=c.Pb();c.Ob(0,"div",7),c.Ob(1,"div",8),c.Ob(2,"div",9),c.Ob(3,"div",10),c.Kb(4,"i",11),c.Nb(),c.Nb(),c.Ob(5,"div"),c.Ob(6,"h3"),c.zc(7),c.Nb(),c.Kb(8,"div",12),c.Nb(),c.Nb(),c.xc(9,xe,4,1,"div",13),c.Nb(),c.xc(10,ye,1,0,"app-erisk",13),c.Ob(11,"div",14),c.Ob(12,"div",15),c.Ob(13,"div",16),c.Ob(14,"select",17,18),c.Zb("change",(function(){c.qc(e);const t=c.pc(15);return c.bc().updateResourceList(t)})),c.Ob(16,"option",19),c.zc(17,"Latest First"),c.Nb(),c.Ob(18,"option",20),c.zc(19,"Alphabetically A-Z"),c.Nb(),c.Ob(20,"option",21),c.zc(21,"Oldest First"),c.Nb(),c.Nb(),c.Ob(22,"div",22),c.Kb(23,"input",23,24),c.Ob(25,"div",25),c.Ob(26,"button",26),c.Zb("click",(function(){c.qc(e);const t=c.pc(24);return c.bc().doSearch(t.value)})),c.Kb(27,"i",27),c.Nb(),c.Nb(),c.Nb(),c.Nb(),c.Nb(),c.Nb(),c.xc(28,Me,2,1,"ng-template",4),c.xc(29,Ee,1,4,"app-category-resources",28),c.xc(30,Ke,11,3,"ng-template",4)}if(2&e){const e=c.bc();c.xb(7),c.Ac(e.category.title),c.xb(2),c.gc("ngIf",e.category.description.length>0),c.xb(1),c.gc("ngIf","7"===e.category.id),c.xb(4),c.gc("value",e.sortOrder),c.xb(14),c.gc("ngIf",!e.isSearchMode),c.xb(1),c.gc("ngIf",!e.isSearchMode),c.xb(1),c.gc("ngIf",e.isSearchMode)}}let Se=(()=>{class e{constructor(e,t,n){this.mainSvc=e,this.router=t,this.activatedRoute=n,this.isProcessing=!1,this.loadError=!1,this.category=null,this.childCategories=[],this.searchKeyword=null,this.sortOrder="latest",this.skipDocuments=[],this.skipPages=[],this.isSearchMode=!1}ngOnInit(){this.activatedRoute.params.subscribe(e=>{this.isProcessing=!0,this.mainSvc.getCategory(e.id).subscribe(e=>{if(this.isProcessing=!1,this.loadError=e.error,e.success){if(this.category=e.category,console.log(this.category),document.title=this.category.title,this.childCategories=e.childCategories,1===this.category.latest_resources.length){const e=this.category.latest_resources[0];let t;t="page"===e.type?"/app/resource/page/"+e.id:"/app/document/"+e.hash,this.router.navigateByUrl(t)}for(const e of this.category.latest_resources)"document"===e.type?this.skipDocuments.push(e.id):this.skipPages.push(e.id)}},e=>{this.isProcessing=!1,this.loadError=!0})})}doSearch(e){e.length>0&&(this.searchKeyword=e,this.isSearchMode=!0)}updateResourceList(e){this.sortOrder=e.options[e.selectedIndex].value}processGridItems(){const e=document.getElementsByClassName("latest-res-entry");let t=1,n=1;for(let i=0;i{class e{constructor(e,t,n,i,s){this.mainSvc=e,this.location=t,this.router=n,this.activatedRoute=i,this.sanitizer=s,this.isProcessing=!1,this.loadError=!1,this.resource=null,this.resourceType="document",this.resourceId=0,this.permissionError=!1,this.anchor=null}ngOnInit(){this.activatedRoute.params.subscribe(e=>{var t;this.resourceType=e.type,this.resourceId=Number.parseInt(e.id,10),this.anchor=null!==(t=e.anchor)&&void 0!==t?t:null,this.loadResource()})}loadResource(){this.isProcessing=!0,this.loadError=!1,this.mainSvc.getResource(this.resourceType,this.resourceId).subscribe(e=>{this.isProcessing=!1,this.loadError=e.error,this.permissionError=!e.hasPermission,e.success&&(document.title=e.data.title,this.resource=e.data,this.resource.sanitizedContent=this.sanitizer.bypassSecurityTrustHtml(this.resource.content),null!==this.anchor&&setTimeout(()=>{const e=document.getElementById(this.anchor);e&&e.scrollIntoView()},1e3))},e=>{this.isProcessing=!1,this.loadError=!0})}goBack(){this.mainSvc.isDirectFromLogin?this.router.navigateByUrl("/app/dashboard"):this.location.back()}}return e.\u0275fac=function(t){return new(t||e)(c.Jb(a.a),c.Jb(i.h),c.Jb(s.b),c.Jb(s.a),c.Jb(Be.b))},e.\u0275cmp=c.Db({type:e,selectors:[["app-resource-page"]],decls:8,vars:3,consts:[[1,"container","pb-5","pt-5"],[1,"row"],[1,"col-sm-3"],[1,"offset-sm-1","col-sm-8"],[3,"ngIf"],[4,"ngIf"],[1,"alert","alert-danger"],[1,"fas","fa-exclamation-triangle"],["type","button",1,"btn","btn-purple",3,"click"],[1,"fas","fa-exclamation-circle"],["routerLink","/app/dashboard",1,"btn","btn-default"],[1,"p-3","mb-3",2,"background","#eee","border-radius","5px"],[1,"btn","btn-link","btn-sm",3,"click"],[1,"fa","fa-angle-left"],["class","mb-3",4,"ngIf"],[1,"card"],[1,"card-body"],[1,"heading-line"],[1,"mb-3"],["target","_blank",1,"btn","btn-lg","btn-default",3,"href"],[3,"innerHTML"]],template:function(e,t){1&e&&(c.Ob(0,"div",0),c.Ob(1,"div",1),c.Ob(2,"div",2),c.Kb(3,"app-categories-panel"),c.Nb(),c.Ob(4,"div",3),c.xc(5,_e,1,0,"ng-template",4),c.xc(6,De,2,2,"ng-template",4),c.xc(7,$e,16,6,"ng-template",4),c.Nb(),c.Nb(),c.Nb()),2&e&&(c.xb(5),c.gc("ngIf",t.isProcessing),c.xb(1),c.gc("ngIf",t.loadError),c.xb(1),c.gc("ngIf",!t.isProcessing&&!t.loadError))},directives:[z,i.k,m,s.d,V,E],styles:[""]}),e})();function qe(e,t){1&e&&(c.Ob(0,"h3"),c.Kb(1,"i",5),c.zc(2," Please wait, processing..."),c.Nb())}function Ue(e,t){1&e&&(c.Ob(0,"div",6),c.Kb(1,"i",7),c.zc(2," Failed to load the document. Please re-try again. "),c.Nb())}function He(e,t){1&e&&(c.Ob(0,"div",8),c.Kb(1,"i",9),c.zc(2," Document opened successfully. "),c.Nb(),c.Ob(3,"a",10),c.zc(4,"Return To Dashboard"),c.Nb())}function Ge(e,t){1&e&&(c.Ob(0,"div",6),c.Kb(1,"i",7),c.zc(2," You don't have access to this document. "),c.Nb(),c.Ob(3,"a",10),c.zc(4,"Return To Dashboard"),c.Nb())}function Ve(e,t){1&e&&c.Kb(0,"app-load-message")}function We(e,t){1&e&&(c.Ob(0,"div",9),c.Kb(1,"i",10),c.zc(2," Failed to load page. Refresh to try-again. "),c.Nb())}function Ye(e,t){1&e&&(c.Ob(0,"div"),c.Ob(1,"div",13),c.zc(2," No upcoming course! "),c.Nb(),c.Nb())}function Xe(e,t){if(1&e&&(c.Ob(0,"p"),c.Ob(1,"span",20),c.zc(2,"Location:"),c.Nb(),c.zc(3),c.Nb()),2&e){const e=c.bc(2).$implicit;c.xb(3),c.Bc(" ",e.location," ")}}function Qe(e,t){if(1&e&&(c.Ob(0,"div",17),c.Ob(1,"div"),c.Ob(2,"strong"),c.Ob(3,"a",18),c.zc(4),c.Nb(),c.Nb(),c.Nb(),c.Ob(5,"div",19),c.Ob(6,"span",20),c.zc(7,"Start Date:"),c.Nb(),c.zc(8),c.Ob(9,"span",20),c.zc(10,"End Date:"),c.Nb(),c.zc(11),c.Nb(),c.xc(12,Xe,4,1,"p",12),c.Kb(13,"br"),c.Kb(14,"div",21),c.Nb()),2&e){const e=c.bc().$implicit;c.xb(3),c.hc("href",e.summaryLink,c.sc),c.xb(1),c.Ac(e.title),c.xb(4),c.Bc(" ",e.startDate," "),c.xb(3),c.Bc(" ",e.endDate," "),c.xb(1),c.gc("ngIf",null!==e.location)}}function et(e,t){1&e&&c.xc(0,Qe,15,5,"div",16),2&e&&c.gc("ngIf",t.$implicit.isFutureEvent)}function tt(e,t){if(1&e&&(c.Ob(0,"div"),c.Ob(1,"div",14),c.xc(2,et,1,1,"ng-template",15),c.Nb(),c.Nb()),2&e){const e=c.bc(2);c.xb(2),c.gc("ngForOf",e.events)}}function nt(e,t){if(1&e&&(c.Ob(0,"p"),c.Ob(1,"span",20),c.zc(2,"Location:"),c.Nb(),c.zc(3),c.Nb()),2&e){const e=c.bc(2).$implicit;c.xb(3),c.Bc(" ",e.location," ")}}function it(e,t){if(1&e&&(c.Ob(0,"div",17),c.Ob(1,"div"),c.Ob(2,"strong"),c.Ob(3,"a",24),c.zc(4),c.Nb(),c.Nb(),c.Nb(),c.Ob(5,"div",19),c.Ob(6,"span",20),c.zc(7,"Start Date:"),c.Nb(),c.zc(8),c.Ob(9,"span",20),c.zc(10,"End Date:"),c.Nb(),c.zc(11),c.Nb(),c.xc(12,nt,4,1,"p",12),c.Kb(13,"br"),c.Kb(14,"div",21),c.Nb()),2&e){const e=c.bc().$implicit;c.xb(4),c.Ac(e.title),c.xb(4),c.Bc(" ",e.startDate," "),c.xb(3),c.Bc(" ",e.endDate," "),c.xb(1),c.gc("ngIf",null!==e.location)}}function st(e,t){1&e&&c.xc(0,it,15,4,"div",16),2&e&&c.gc("ngIf",!t.$implicit.isFutureEvent)}function rt(e,t){if(1&e&&(c.Ob(0,"div"),c.Kb(1,"br"),c.Kb(2,"br"),c.Ob(3,"h4",22),c.zc(4,"Previous Courses"),c.Nb(),c.Ob(5,"p",23),c.zc(6,"Course and events attended previously"),c.Nb(),c.Kb(7,"div",11),c.Kb(8,"br"),c.Ob(9,"div",14),c.xc(10,st,1,1,"ng-template",15),c.Nb(),c.Nb()),2&e){const e=c.bc(2);c.xb(10),c.gc("ngForOf",e.events)}}function ot(e,t){if(1&e&&(c.Ob(0,"div",4),c.Ob(1,"div",5),c.Ob(2,"div"),c.Ob(3,"h4",6),c.zc(4,"Upcoming Courses"),c.Nb(),c.Kb(5,"div",11),c.Kb(6,"br"),c.xc(7,Ye,3,0,"div",12),c.xc(8,tt,3,1,"div",12),c.Nb(),c.xc(9,rt,11,1,"div",12),c.Nb(),c.Nb()),2&e){const e=c.bc();c.xb(7),c.gc("ngIf",!e.hasUpcomingCourses),c.xb(1),c.gc("ngIf",e.hasUpcomingCourses),c.xb(1),c.gc("ngIf",e.hasPastCourses)}}function ct(e,t){1&e&&c.Kb(0,"app-load-message")}function at(e,t){1&e&&(c.Ob(0,"div",35),c.Kb(1,"i",36),c.zc(2," Failed to load category. Please refresh to try again. "),c.Nb())}function bt(e,t){if(1&e&&(c.Ob(0,"li"),c.Ob(1,"h5",40),c.Ob(2,"a",41),c.zc(3),c.Nb(),c.Nb(),c.Ob(4,"div",42),c.zc(5),c.Nb(),c.Nb()),2&e){const e=t.$implicit;c.xb(2),c.ic("routerLink","/app/document/",e.hash,""),c.xb(1),c.Ac(e.title),c.xb(2),c.Ac(e.description)}}function lt(e,t){if(1&e&&(c.Ob(0,"div",4),c.Ob(1,"div",5),c.Ob(2,"h4"),c.Kb(3,"i",37),c.zc(4," Search Results"),c.Nb(),c.Kb(5,"hr"),c.Ob(6,"ul",38),c.xc(7,bt,6,3,"li",39),c.Nb(),c.Nb(),c.Nb()),2&e){const e=c.bc();c.xb(7),c.gc("ngForOf",e.results)}}const dt=[{path:"",component:f,children:[{path:"dashboard",component:q},{path:"category/:id",component:Se},{path:"resource/:type/:id",component:je},{path:"resource/:type/:id/:anchor",component:je},{path:"document/:id",component:(()=>{class e{constructor(e,t){this.mainSvc=e,this.activatedRoute=t,this.isProcessing=!1,this.loadError=!1,this.isCompleted=!1,this.isPermissionError=!1}ngOnInit(){this.activatedRoute.params.subscribe(e=>{const t=e.id;this.isProcessing=!0,this.mainSvc.getDocument(t).subscribe(e=>{console.log(e),this.isProcessing=!1;const t=e.headers.get("x-filename"),n=e.headers.get("content-disposition"),i=/filename="doc\.(.*)"/.exec(n)[1];if("pdf"===i){const n=new Blob([e.body],{type:"application/pdf"});if(window.navigator&&window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(n,t);else{const e=document.createElement("a");e.href=window.URL.createObjectURL(n),e.click()}}else{const n=new Blob([e.body],{type:"application/octet-stream"});if(window.navigator&&window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(n,t);else{const e=document.createElement("a");e.href=window.URL.createObjectURL(n),e.download=t+"."+i,e.click()}}this.isCompleted=!0},e=>{this.isProcessing=!1,this.loadError=!0,this.isPermissionError=403===e.status,console.log(e)})})}}return e.\u0275fac=function(t){return new(t||e)(c.Jb(a.a),c.Jb(s.a))},e.\u0275cmp=c.Db({type:e,selectors:[["app-document"]],decls:9,vars:4,consts:[[1,"container","pb-5","pt-5"],[1,"row"],[1,"col-sm-3"],[1,"offset-sm-1","col-sm-8"],[3,"ngIf"],[1,"fa","fa-cog","fa-spin"],[1,"alert","alert-danger"],[1,"fa","fa-exclamation-triangle"],[1,"alert","alert-info"],[1,"fa","fa-check-square"],["routerLink","/app/dashboard",1,"btn","btn-default"]],template:function(e,t){1&e&&(c.Ob(0,"div",0),c.Ob(1,"div",1),c.Ob(2,"div",2),c.Kb(3,"app-categories-panel"),c.Nb(),c.Ob(4,"div",3),c.xc(5,qe,3,0,"ng-template",4),c.xc(6,Ue,3,0,"ng-template",4),c.xc(7,He,5,0,"ng-template",4),c.xc(8,Ge,5,0,"ng-template",4),c.Nb(),c.Nb(),c.Nb()),2&e&&(c.xb(5),c.gc("ngIf",t.isProcessing),c.xb(1),c.gc("ngIf",t.loadError&&!t.isPermissionError),c.xb(1),c.gc("ngIf",t.isCompleted),c.xb(1),c.gc("ngIf",t.isPermissionError))},directives:[z,i.k,s.d],styles:[""]}),e})()},{path:"my-courses",component:(()=>{class e{constructor(e){this.mainSvc=e,this.isProcessing=!1,this.loadError=!1,this.hasUpcomingCourses=!1,this.hasPastCourses=!1,this.events=[]}ngOnInit(){document.title="My Courses",this.isProcessing=!0,this.mainSvc.getEventHistory().subscribe(e=>{if(this.isProcessing=!1,this.loadError=e.error,e.success){for(const n of e.events)if(n.isFutureEvent){this.hasUpcomingCourses=!0;break}for(const n of e.events)if(!n.isFutureEvent){this.hasPastCourses=!0;break}const t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];for(const n of e.events){const e=new Date(n.event.start),i=new Date(n.event.end);this.events.push({title:n.event.title,startDate:t[e.getMonth()]+" "+e.getDate()+", "+e.getFullYear(),endDate:t[i.getMonth()]+" "+i.getDate()+", "+i.getFullYear(),location:n.event.venues?n.event.venues[0].name:null,isFutureEvent:n.isFutureEvent,registrationLink:n.event._links.registration.href,summaryLink:n.event._links.summary.href})}}},e=>{this.isProcessing=!1,this.loadError=!0})}}return e.\u0275fac=function(t){return new(t||e)(c.Jb(a.a))},e.\u0275cmp=c.Db({type:e,selectors:[["app-my-course"]],decls:14,vars:3,consts:[[1,"container","pt-5","pb-5"],[1,"row"],[1,"col-sm-3"],[1,"offset-sm-1","col-sm-8"],[1,"card","border-0"],[1,"card-body"],[1,"mb-1"],[2,"width","50px","height","2px","background","#00205B"],[3,"ngIf"],[1,"alert","alert-danger"],[1,"fa","fa-exclamation-triangle"],[2,"width","100px","height","1px","background","purple"],[4,"ngIf"],[1,"alert","alert-info"],[1,"list-events"],["ngFor","",3,"ngForOf"],["class","event-entry mb-3",4,"ngIf"],[1,"event-entry","mb-3"],[2,"color","#00205B","font-weight","normal",3,"href"],[1,"small"],[1,"text-black-50"],[1,"m-auto",2,"width","250px","height","1px","background","#eee"],[1,"mb-0"],[1,"small","text-black-50"],[2,"color","#00205B","font-weight","normal"]],template:function(e,t){1&e&&(c.Ob(0,"div",0),c.Ob(1,"div",1),c.Ob(2,"div",2),c.Kb(3,"app-categories-panel"),c.Nb(),c.Ob(4,"div",3),c.Ob(5,"div",4),c.Ob(6,"div",5),c.Ob(7,"h4",6),c.zc(8,"My Event(s)"),c.Nb(),c.Kb(9,"div",7),c.Nb(),c.Nb(),c.Kb(10,"br"),c.xc(11,Ve,1,0,"ng-template",8),c.xc(12,We,3,0,"ng-template",8),c.xc(13,ot,10,3,"ng-template",8),c.Nb(),c.Nb(),c.Nb()),2&e&&(c.xb(11),c.gc("ngIf",t.isProcessing),c.xb(1),c.gc("ngIf",t.loadError),c.xb(1),c.gc("ngIf",!t.loadError&&!t.isProcessing))},directives:[z,i.k,m,i.j],styles:[""]}),e})()},{path:"cbd-search",component:(()=>{class e{constructor(e){this.mainSvc=e,this.isProcessing=!1,this.loadError=!1,this.documentType="",this.region="",this.employeeCount="",this.keyword="",this.results=[]}ngOnInit(){}doSearch(){this.results=[],this.isProcessing=!0,this.mainSvc.cbdSearch(this.documentType,this.employeeCount,this.region,this.keyword).subscribe(e=>{this.isProcessing=!1,this.loadError=e.error,e.success&&(this.results=e.results)},e=>{this.isProcessing=!1,this.loadError=!0})}}return e.\u0275fac=function(t){return new(t||e)(c.Jb(a.a))},e.\u0275cmp=c.Db({type:e,selectors:[["app-cbdsearch"]],decls:75,vars:7,consts:[[1,"container","pt-5","pb-5"],[1,"row"],[1,"col-sm-3"],[1,"offset-sm-1","col-sm-8"],[1,"card"],[1,"card-body"],[3,"ngSubmit"],["searchForm","ngForm"],[1,"col-sm-6"],[1,"form-group"],["for","documentType"],["id","documentType","name","documentType",1,"form-control",3,"ngModel","ngModelChange"],["value",""],["value","Case Law"],["value","Collective Agreement"],["for","employeeCount"],["id","employeeCount","name","employeeCount",1,"form-control",3,"ngModel","ngModelChange"],["value","1-50"],["value","50-200"],["value","201-1000"],["value","1001"],["for","region"],["id","region","name","region",1,"form-control",3,"ngModel","ngModelChange"],["selected","selected","value",""],["value","GB"],["value","NE"],["value","NG"],["value","NW"],["value","UC"],["value","WE"],["for","keyword"],["id","keyword","name","keyword","placeholder","Enter search keyword here (Optional)","type","text",1,"form-control",3,"ngModel","ngModelChange"],[1,"col"],["type","submit",1,"btn","btn-primary"],[3,"ngIf"],[1,"alert","alert-danger"],[1,"fa","fa-exclamation-triangle"],[1,"fa","fa-search"],[1,"list-result"],[4,"ngFor","ngForOf"],[1,"title"],["target","_blank",3,"routerLink"],[1,"description"]],template:function(e,t){1&e&&(c.Ob(0,"div",0),c.Ob(1,"div",1),c.Ob(2,"div",2),c.Kb(3,"app-categories-panel"),c.Nb(),c.Ob(4,"div",3),c.Ob(5,"div",4),c.Ob(6,"div",5),c.Ob(7,"h2"),c.zc(8,"Collective Bargaining Agreements & Resources Search"),c.Nb(),c.Ob(9,"p"),c.zc(10,"Search Tips: You may use company names, union numbers and keywords you expect to find. Leave blank to search for all documents."),c.Nb(),c.Nb(),c.Nb(),c.Kb(11,"br"),c.Ob(12,"div",4),c.Ob(13,"div",5),c.Ob(14,"form",6,7),c.Zb("ngSubmit",(function(){return t.doSearch()})),c.Ob(16,"div",1),c.Ob(17,"div",8),c.Ob(18,"div",9),c.Ob(19,"label",10),c.zc(20,"Document Type"),c.Nb(),c.Ob(21,"select",11),c.Zb("ngModelChange",(function(e){return t.documentType=e})),c.Ob(22,"option",12),c.zc(23,"--- All ---"),c.Nb(),c.Ob(24,"option",13),c.zc(25,"Case Law"),c.Nb(),c.Ob(26,"option",14),c.zc(27,"Collective Agreement"),c.Nb(),c.Nb(),c.Nb(),c.Nb(),c.Ob(28,"div",8),c.Ob(29,"div",9),c.Ob(30,"label",15),c.zc(31,"Number of Employees:"),c.Nb(),c.Ob(32,"select",16),c.Zb("ngModelChange",(function(e){return t.employeeCount=e})),c.Ob(33,"option",12),c.zc(34,"--- All ---"),c.Nb(),c.Ob(35,"option",17),c.zc(36,"1-50"),c.Nb(),c.Ob(37,"option",18),c.zc(38,"50-200"),c.Nb(),c.Ob(39,"option",19),c.zc(40,"201-1000"),c.Nb(),c.Ob(41,"option",20),c.zc(42,"1000+"),c.Nb(),c.Nb(),c.Nb(),c.Nb(),c.Ob(43,"div",8),c.Ob(44,"div",9),c.Ob(45,"label",21),c.zc(46,"Region:"),c.Nb(),c.Ob(47,"select",22),c.Zb("ngModelChange",(function(e){return t.region=e})),c.Ob(48,"option",23),c.zc(49,"--- All ---"),c.Nb(),c.Ob(50,"option",24),c.zc(51,"Georgian Bay District"),c.Nb(),c.Ob(52,"option",25),c.zc(53,"Northeastern District"),c.Nb(),c.Ob(54,"option",26),c.zc(55,"Niagara Grand District"),c.Nb(),c.Ob(56,"option",27),c.zc(57,"Northwestern District"),c.Nb(),c.Ob(58,"option",28),c.zc(59,"Upper Canada District"),c.Nb(),c.Ob(60,"option",29),c.zc(61,"Western District"),c.Nb(),c.Nb(),c.Nb(),c.Nb(),c.Ob(62,"div",8),c.Ob(63,"div",9),c.Ob(64,"label",30),c.zc(65,"Keyword:"),c.Nb(),c.Ob(66,"input",31),c.Zb("ngModelChange",(function(e){return t.keyword=e})),c.Nb(),c.Nb(),c.Nb(),c.Nb(),c.Ob(67,"div",1),c.Ob(68,"div",32),c.Ob(69,"button",33),c.zc(70," Search "),c.Nb(),c.Nb(),c.Nb(),c.Nb(),c.Nb(),c.Nb(),c.Kb(71,"br"),c.xc(72,ct,1,0,"ng-template",34),c.xc(73,at,3,0,"ng-template",34),c.xc(74,lt,8,1,"ng-template",34),c.Nb(),c.Nb(),c.Nb()),2&e&&(c.xb(21),c.gc("ngModel",t.documentType),c.xb(11),c.gc("ngModel",t.employeeCount),c.xb(15),c.gc("ngModel",t.region),c.xb(19),c.gc("ngModel",t.keyword),c.xb(6),c.gc("ngIf",t.isProcessing),c.xb(1),c.gc("ngIf",t.loadError),c.xb(1),c.gc("ngIf",t.results.length>0))},directives:[z,l.p,l.i,l.j,l.n,l.h,l.k,l.l,l.o,l.a,i.k,m,i.j,s.d],styles:[".list-result[_ngcontent-%COMP%]{list-style-type:none;margin:0;padding:0 0 0 15px}.list-result[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{margin-bottom:25px}.list-result[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{font-size:14px;color:#999}.list-result[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin-bottom:0}"]}),e})()},{path:"broker-core-sso-error",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=c.Db({type:e,selectors:[["app-broker-core-error"]],decls:13,vars:0,consts:[[1,"container"],[1,"m-2"],["href","mailto:insurance@mearie.ca"]],template:function(e,t){1&e&&(c.Ob(0,"div",0),c.Ob(1,"div",1),c.Ob(2,"h3"),c.zc(3,"Error:"),c.Nb(),c.Ob(4,"p"),c.zc(5," Sorry, there is something wrong with your contact permission. Please contact "),c.Ob(6,"a",2),c.zc(7,"insurance@mearie.ca"),c.Nb(),c.zc(8," for more information. "),c.Nb(),c.Ob(9,"p"),c.zc(10," Thank you,"),c.Kb(11,"br"),c.zc(12," The MEARIE Group "),c.Nb(),c.Nb(),c.Nb())},styles:[""]}),e})()}]}];let gt=(()=>{class e{}return e.\u0275mod=c.Hb({type:e}),e.\u0275inj=c.Gb({factory:function(t){return new(t||e)},imports:[[s.e.forChild(dt)],s.e]}),e})(),ut=(()=>{class e{}return e.\u0275mod=c.Hb({type:e}),e.\u0275inj=c.Gb({factory:function(t){return new(t||e)},imports:[[i.c,l.c,gt,b.f]]}),e})()}}]);