{"version":3,"sources":["src/app/pages/SaludPlus/Chat-Soporte/chat/Components/Chat.component.ts","src/app/pages/SaludPlus/Chat-Soporte/chat/Components/Chat.component.html","src/app/pages/SaludPlus/Chat-Soporte/chat/Services/FirebaseChat.service.ts","node_modules/.pnpm/@angular+fire@19.0.0_@angular+common@19.1.3_@angular+core@19.1.3_rxjs@7.8.1_zone.js@0.15.0__r_xzu27rqbvbxj2nldx5bwm5k5v4/node_modules/@angular/fire/fesm2022/angular-fire.mjs","node_modules/.pnpm/firebase@11.2.0/node_modules/firebase/app/dist/esm/index.esm.js","node_modules/.pnpm/@angular+core@19.1.3_rxjs@7.8.1_zone.js@0.15.0/node_modules/@angular/core/fesm2022/rxjs-interop.mjs","node_modules/.pnpm/@angular+fire@19.0.0_@angular+common@19.1.3_@angular+core@19.1.3_rxjs@7.8.1_zone.js@0.15.0__r_xzu27rqbvbxj2nldx5bwm5k5v4/node_modules/@angular/fire/fesm2022/angular-fire-database.mjs","node_modules/.pnpm/@angular+fire@19.0.0_@angular+common@19.1.3_@angular+core@19.1.3_rxjs@7.8.1_zone.js@0.15.0__r_xzu27rqbvbxj2nldx5bwm5k5v4/node_modules/@angular/fire/fesm2022/angular-fire-app.mjs","node_modules/.pnpm/@firebase+app-check@0.8.11_@firebase+app@0.10.18/node_modules/@firebase/app-check/dist/esm/index.esm2017.js","node_modules/.pnpm/@angular+fire@19.0.0_@angular+common@19.1.3_@angular+core@19.1.3_rxjs@7.8.1_zone.js@0.15.0__r_xzu27rqbvbxj2nldx5bwm5k5v4/node_modules/@angular/fire/fesm2022/angular-fire-app-check.mjs","node_modules/.pnpm/@firebase+auth@1.8.2_@firebase+app@0.10.18/node_modules/@firebase/auth/dist/esm2017/index-ea1a36e4.js","node_modules/.pnpm/@angular+fire@19.0.0_@angular+common@19.1.3_@angular+core@19.1.3_rxjs@7.8.1_zone.js@0.15.0__r_xzu27rqbvbxj2nldx5bwm5k5v4/node_modules/@angular/fire/fesm2022/angular-fire-auth.mjs"],"sourcesContent":["import { CommonModule } from '@angular/common';\r\nimport { ApplicationConfig, Component, importProvidersFrom, inject, OnInit } from '@angular/core';\r\nimport { child, Database, get, ref } from '@angular/fire/database';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { Title } from '@angular/platform-browser';\r\nimport { ActivatedRoute, RouterModule } from '@angular/router';\r\nimport { KENDO_BUTTONS } from '@progress/kendo-angular-buttons';\r\nimport { KENDO_DROPDOWNS } from '@progress/kendo-angular-dropdowns';\r\nimport { KENDO_INDICATORS } from '@progress/kendo-angular-indicators';\r\nimport { KENDO_INPUTS } from '@progress/kendo-angular-inputs';\r\nimport { ComponentsCoreFormsModule, DirectivesCoreFormsModule } from '@src/app/components/Core/core.saludplus.module';\r\nimport { from, Observable } from 'rxjs';\r\nimport { FirebaseChatService } from '../Services/FirebaseChat.service';\r\nimport { provideDatabase, getDatabase } from '@angular/fire/database';\r\nimport { provideFirestore, getFirestore } from '@angular/fire/firestore';\r\nimport { provideFirebaseApp, initializeApp } from '@angular/fire/app';\r\nimport { environment } from '@src/environments/environment';\r\n\r\n \r\n\r\n@Component({\r\n selector: 'app-Chat',\r\n templateUrl: './Chat.component.html',\r\n styleUrls: ['./Chat.component.scss'],\r\n imports: [\r\n CommonModule,\r\n ComponentsCoreFormsModule,\r\n DirectivesCoreFormsModule,\r\n FormsModule,\r\n ReactiveFormsModule,\r\n KENDO_INPUTS,\r\n KENDO_BUTTONS,\r\n KENDO_DROPDOWNS,\r\n KENDO_INDICATORS\r\n ],\r\n providers: [\r\n \r\n ]\r\n})\r\nexport class ChatComponent implements OnInit {\r\n\r\n isLoading: boolean = false;\r\n title: string;\r\n icon: string;\r\n\r\n public route = inject(ActivatedRoute);\r\n public titleService = inject(Title);\r\n\r\n items: any[] = [];\r\n firebaseChatService = inject(FirebaseChatService);\r\n\r\n constructor() {\r\n \r\n }\r\n\r\n ngOnInit() {\r\n this.title = this.route.snapshot.data['title'];\r\n this.icon = this.route.snapshot.data['icon'];\r\n this.titleService.setTitle(this.title);\r\n\r\n this.firebaseChatService.getRealtimeData('chats').subscribe((data) => {\r\n if (data) {\r\n this.items = Object.values(data); // Convierte los datos a un array\r\n\r\n console.log(this.items);\r\n }\r\n });\r\n }\r\n\r\n\r\n\r\n}\r\n","\r\n