{"ast":null,"code":"import { format } from 'date-fns';\nimport { ptBR } from 'date-fns/locale';\nimport * as i0 from \"@angular/core\";\nexport let ClockComponent = /*#__PURE__*/(() => {\n  class ClockComponent {\n    constructor() {\n      this.currentTime = '';\n      this.currentDate = '';\n    }\n    ngOnInit() {\n      this.updateTime();\n      setInterval(() => this.updateTime(), 1000);\n    }\n    updateTime() {\n      const now = new Date();\n      this.currentTime = format(now, 'HH:mm', {\n        locale: ptBR\n      });\n      this.currentDate = format(now, \"EEEE, d 'de' MMMM 'de' yyyy\", {\n        locale: ptBR\n      });\n    }\n    static #_ = this.ɵfac = function ClockComponent_Factory(t) {\n      return new (t || ClockComponent)();\n    };\n    static #_2 = this.ɵcmp = /*@__PURE__*/i0.ɵɵdefineComponent({\n      type: ClockComponent,\n      selectors: [[\"app-clock\"]],\n      decls: 5,\n      vars: 2,\n      template: function ClockComponent_Template(rf, ctx) {\n        if (rf & 1) {\n          i0.ɵɵelementStart(0, \"div\")(1, \"div\");\n          i0.ɵɵtext(2);\n          i0.ɵɵelementEnd();\n          i0.ɵɵelementStart(3, \"div\");\n          i0.ɵɵtext(4);\n          i0.ɵɵelementEnd()();\n        }\n        if (rf & 2) {\n          i0.ɵɵadvance(2);\n          i0.ɵɵtextInterpolate(ctx.currentTime);\n          i0.ɵɵadvance(2);\n          i0.ɵɵtextInterpolate(ctx.currentDate);\n        }\n      },\n      styles: [\".clock[_ngcontent-%COMP%]{text-align:center;font-size:1.5em;margin-bottom:20px}\"]\n    });\n  }\n  return ClockComponent;\n})();","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}