{"ast":null,"code":"import { NavigationEnd } from '@angular/router';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/router\";\nimport * as i2 from \"@angular/common\";\nimport * as i3 from \"./navbar/navbar.component\";\nimport * as i4 from \"./footer/footer.component\";\nfunction AppComponent_app_navbar_0_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelement(0, \"app-navbar\");\n  }\n}\nfunction AppComponent_app_footer_2_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelement(0, \"app-footer\");\n  }\n}\nexport class AppComponent {\n  constructor(router) {\n    this.router = router;\n    this.title = 'wtsOrder';\n    this.showNavbar = true;\n  }\n  ngOnInit() {\n    this.router.events.subscribe(event => {\n      if (event instanceof NavigationEnd) {\n        const noNavbarRoutes = ['/signup', '/auth/401', '/auth/404', '/auth/500'];\n        this.showNavbar = !noNavbarRoutes.includes(this.router.url);\n      }\n    });\n  }\n  static #_ = this.ɵfac = function AppComponent_Factory(t) {\n    return new (t || AppComponent)(i0.ɵɵdirectiveInject(i1.Router));\n  };\n  static #_2 = this.ɵcmp = /*@__PURE__*/i0.ɵɵdefineComponent({\n    type: AppComponent,\n    selectors: [[\"app-root\"]],\n    decls: 3,\n    vars: 2,\n    consts: [[4, \"ngIf\"]],\n    template: function AppComponent_Template(rf, ctx) {\n      if (rf & 1) {\n        i0.ɵɵtemplate(0, AppComponent_app_navbar_0_Template, 1, 0, \"app-navbar\", 0);\n        i0.ɵɵelement(1, \"router-outlet\");\n        i0.ɵɵtemplate(2, AppComponent_app_footer_2_Template, 1, 0, \"app-footer\", 0);\n      }\n      if (rf & 2) {\n        i0.ɵɵproperty(\"ngIf\", ctx.showNavbar);\n        i0.ɵɵadvance(2);\n        i0.ɵɵproperty(\"ngIf\", ctx.showNavbar);\n      }\n    },\n    dependencies: [i2.NgIf, i1.RouterOutlet, i3.NavbarComponent, i4.FooterComponent],\n    styles: [\"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */\"]\n  });\n}","map":{"version":3,"names":["NavigationEnd","i0","ɵɵelement","AppComponent","constructor","router","title","showNavbar","ngOnInit","events","subscribe","event","noNavbarRoutes","includes","url","_","ɵɵdirectiveInject","i1","Router","_2","selectors","decls","vars","consts","template","AppComponent_Template","rf","ctx","ɵɵtemplate","AppComponent_app_navbar_0_Template","AppComponent_app_footer_2_Template","ɵɵproperty","ɵɵadvance"],"sources":["D:\\Website_project\\Ems_Base\\wtsOrderIndia\\src\\app\\app.component.ts","D:\\Website_project\\Ems_Base\\wtsOrderIndia\\src\\app\\app.component.html"],"sourcesContent":["import { Component } from '@angular/core';\nimport { Router, NavigationEnd } from '@angular/router';\n\n\n@Component({\n  selector: 'app-root',\n  templateUrl: './app.component.html',\n  styleUrls: ['./app.component.scss']\n})\nexport class AppComponent {\n  title = 'wtsOrder';\n\n  showNavbar: boolean = true;\n\n  constructor(private router: Router) {}\n\n  ngOnInit() {\n    this.router.events.subscribe(event => {\n      if (event instanceof NavigationEnd) {\n        const noNavbarRoutes = ['/signup','/auth/401','/auth/404','/auth/500',];\n        this.showNavbar = !noNavbarRoutes.includes(this.router.url);\n      }\n    });\n  }\n}\n","<app-navbar *ngIf=\"showNavbar\"></app-navbar>\n<router-outlet></router-outlet>\n<app-footer *ngIf=\"showNavbar\"></app-footer>"],"mappings":"AACA,SAAiBA,aAAa,QAAQ,iBAAiB;;;;;;;;ICDvDC,EAAA,CAAAC,SAAA,iBAA4C;;;;;IAE5CD,EAAA,CAAAC,SAAA,iBAA4C;;;ADO5C,OAAM,MAAOC,YAAY;EAKvBC,YAAoBC,MAAc;IAAd,KAAAA,MAAM,GAANA,MAAM;IAJ1B,KAAAC,KAAK,GAAG,UAAU;IAElB,KAAAC,UAAU,GAAY,IAAI;EAEW;EAErCC,QAAQA,CAAA;IACN,IAAI,CAACH,MAAM,CA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