{"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/*# sourceMappingURL=clock.component.css.map*/\"]\n    });\n  }\n  return ClockComponent;\n})();","map":{"version":3,"names":["format","ptBR","ClockComponent","constructor","currentTime","currentDate","ngOnInit","updateTime","setInterval","now","Date","locale","_","_2","selectors","decls","vars","template","ClockComponent_Template","rf","ctx","i0","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate"],"sources":["/root/rfcontavagas_hom/12.-Servidor-local-Docker/Front-Parking-Angular/src/app/clock/clock.component.ts","/root/rfcontavagas_hom/12.-Servidor-local-Docker/Front-Parking-Angular/src/app/clock/clock.component.html"],"sourcesContent":["import { Component, OnInit } from '@angular/core';\r\nimport { format } from 'date-fns';\r\nimport { ptBR } from 'date-fns/locale';\r\n\r\n@Component({\r\n  selector: 'app-clock',\r\n  templateUrl: './clock.component.html',\r\n  styleUrls: ['./clock.component.css']\r\n})\r\nexport class ClockComponent implements OnInit {\r\n  currentTime: string = '';\r\n  currentDate: string = '';\r\n\r\n  ngOnInit(): void {\r\n    this.updateTime();\r\n    setInterval(() => this.updateTime(), 1000);\r\n  }\r\n\r\n  updateTime(): void {\r\n    const now = new Date();\r\n    this.currentTime = format(now, 'HH:mm', { locale: ptBR });\r\n    this.currentDate = format(now, \"EEEE, d 'de' MMMM 'de' yyyy\", { locale: ptBR });\r\n  }\r\n}\r\n","<div>\r\n  <div>{{ currentTime }}</div>\r\n  <div>{{ currentDate }}</div>\r\n</div>\r\n"],"mappings":"AACA,SAASA,MAAM,QAAQ,UAAU;AACjC,SAASC,IAAI,QAAQ,iBAAiB;;AAOtC,WAAaC,cAAc;EAArB,MAAOA,cAAc;IAL3BC,YAAA;MAME,KAAAC,WAAW,GAAW,EAAE;MACxB,KAAAC,WAAW,GAAW,EAAE;;IAExBC,QAAQA,CAAA;MACN,IAAI,CAACC,UAAU,EAAE;MACjBC,WAAW,CAAC,MAAM,IAAI,CAACD,UAAU,EAAE,EAAE,IAAI,CAAC;IAC5C;IAEAA,UAAUA,CAAA;MACR,MAAME,GAAG,GAAG,IAAIC,IAAI,EAAE;MACtB,IAAI,CAACN,WAAW,GAAGJ,MAAM,CAACS,GAAG,EAAE,OAAO,EAAE;QAAEE,MAAM,EAAEV;MAAI,CAAE,CAAC;MACzD,IAAI,CAACI,WAAW,GAAGL,MAAM,CAACS,GAAG,EAAE,6BAA6B,EAAE;QAAEE,MAAM,EAAEV;MAAI,CAAE,CAAC;IACjF;IAAC,QAAAW,CAAA,G;uBAbUV,cAAc;IAAA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