+{"ast":null,"code":"import * as i0 from \"@angular/core\";\nimport * as i1 from \"./services/login.service\";\nimport * as i2 from \"@angular/common\";\nimport * as i3 from \"@angular/router\";\n\nfunction AppComponent_span_15_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\")(1, \"li\")(2, \"a\", 9);\n i0.ɵɵtext(3, \" PON TU ANUNCIO \");\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(4, \"li\")(5, \"a\", 10);\n i0.ɵɵtext(6, \" FAVORITOS \");\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(7, \"li\")(8, \"a\", 11);\n i0.ɵɵtext(9);\n i0.ɵɵelement(10, \"i\", 12);\n i0.ɵɵelementEnd()()();\n }\n\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵadvance(9);\n i0.ɵɵtextInterpolate1(\" \", ctx_r0.loginService.currentUser().full_NAME, \" \");\n }\n}\n\nfunction AppComponent_span_16_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\")(1, \"li\")(2, \"a\", 13);\n i0.ɵɵtext(3, \" CREAR CUENTA \");\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(4, \"li\")(5, \"a\", 14);\n i0.ɵɵtext(6, \" INICIAR SESI\\u00D3N \");\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(7, \"li\")(8, \"a\", 14);\n i0.ɵɵelement(9, \"i\", 12);\n i0.ɵɵelementEnd()()();\n }\n}\n\nfunction AppComponent_span_17_Template(rf, ctx) {\n if (rf & 1) {\n const _r4 = i0.ɵɵgetCurrentView();\n\n i0.ɵɵelementStart(0, \"span\")(1, \"li\")(2, \"button\", 15);\n i0.ɵɵlistener(\"click\", function AppComponent_span_17_Template_button_click_2_listener() {\n i0.ɵɵrestoreView(_r4);\n const ctx_r3 = i0.ɵɵnextContext();\n return ctx_r3.logOut();\n });\n i0.ɵɵtext(3, \"Log Out\");\n i0.ɵɵelementEnd()()();\n }\n}\n\nexport let AppComponent = /*#__PURE__*/(() => {\n class AppComponent {\n constructor(loginService) {\n this.loginService = loginService;\n }\n\n logOut() {\n this.loginService.logOut();\n }\n\n }\n\n AppComponent.ɵfac = function AppComponent_Factory(t) {\n return new (t || AppComponent)(i0.ɵɵdirectiveInject(i1.LoginService));\n };\n\n AppComponent.ɵcmp = /*@__PURE__*/i0.ɵɵdefineComponent({\n type: AppComponent,\n selectors: [[\"app-root\"]],\n decls: 20,\n vars: 3,\n consts: [[1, \"full-width\", \"NavBar\"], [1, \"full-width\", \"text-semi-bold\", \"NavBar-logo\"], [\"href\", \"/new/\"], [\"src\", \"assets/img/LogoAPP.png\", \"alt\", \"Wallypop Corporation\"], [1, \"full-width\", \"NavBar-Nav\"], [1, \"list-unstyled\", \"full-width\"], [\"href\", \"/new/commercial\"], [\"href\", \"/new/sold\"], [4, \"ngIf\"], [\"href\", \"/new/adcommercial\"], [\"href\", \"/new/favorites\"], [\"href\", \"/new/profile\"], [\"aria-hidden\", \"true\", 1, \"fa\", \"fa-user\", \"NavBar-Nav-icon\"], [\"href\", \"/new/newaccount\"], [\"href\", \"/new/login\"], [\"type\", \"submit\", 1, \"btn\", \"btn-default\", \"navbar-btn\", 3, \"click\"]],\n template: function AppComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 0)(1, \"div\", 1)(2, \"a\", 2);\n i0.ɵɵelement(3, \"img\", 3);\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(4, \"nav\", 4)(5, \"ul\", 5)(6, \"li\")(7, \"a\", 2);\n i0.ɵɵtext(8, \" INICIO \");\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(9, \"li\")(10, \"a\", 6);\n i0.ɵɵtext(11, \" ANUNCIOS \");\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(12, \"li\")(13, \"a\", 7);\n i0.ɵɵtext(14, \" ANUNCIOS VENDIDOS \");\n i0.ɵɵelementEnd()();\n i0.ɵɵtemplate(15, AppComponent_span_15_Template, 11, 1, \"span\", 8);\n i0.ɵɵtemplate(16, AppComponent_span_16_Template, 10, 0, \"span\", 8);\n i0.ɵɵtemplate(17, AppComponent_span_17_Template, 4, 0, \"span\", 8);\n i0.ɵɵelementEnd()()();\n i0.ɵɵelementStart(18, \"section\");\n i0.ɵɵelement(19, \"router-outlet\");\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n i0.ɵɵadvance(15);\n i0.ɵɵproperty(\"ngIf\", ctx.loginService.isLogged());\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", !ctx.loginService.isLogged());\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", ctx.loginService.isLogged());\n }\n },\n directives: [i2.NgIf, i3.RouterOutlet],\n encapsulation: 2\n });\n return AppComponent;\n})();","map":null,"metadata":{},"sourceType":"module"}
0 commit comments