Files
doneit-web/.angular/cache/14.2.12/babel-webpack/e1ff8caac704547fa01297c5303f9d77.json
T

1 line
64 KiB
JSON
Raw Normal View History

2023-06-30 09:54:21 +01:00
{"ast":null,"code":"import _asyncToGenerator from \"C:/Users/eudes.inacio/GabineteDigital/gabinete-digital-fo/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";\nimport { __decorate } from \"tslib\";\nimport __NG_CLI_RESOURCE__0 from \"./chat.page.html?ngResource\";\nimport __NG_CLI_RESOURCE__1 from \"./chat.page.scss?ngResource\";\nimport { HttpHeaders, HttpParams } from '@angular/common/http';\nimport { Component, ViewChild, ViewContainerRef, Output } from '@angular/core';\nimport { ModalController, Platform } from '@ionic/angular';\nimport { AuthService } from 'src/app/services/auth.service';\nimport { ChatService } from 'src/app/services/chat.service';\nimport { ChatSystemService } from 'src/app/services/chat/chat-system.service';\nimport { GroupMessagesPage } from './group-messages/group-messages.page';\nimport { ContactsPage } from './messages/contacts/contacts.page';\nimport { MessagesPage } from './messages/messages.page';\nimport { NewGroupPage } from './new-group/new-group.page';\nimport { EditGroupPage } from 'src/app/shared/chat/edit-group/edit-group.page';\nimport { Router, NavigationEnd, ActivatedRoute } from '@angular/router';\nimport { removeDuplicate } from 'src/plugin/removeDuplicate.js';\nimport { environment } from 'src/environments/environment';\nimport { TimeService } from 'src/app/services/functions/time.service';\nimport { ThemeService } from 'src/app/services/theme.service';\nimport { DataService } from 'src/app/services/data.service';\nimport { SqliteService } from 'src/app/services/sqlite.service';\nimport { StorageService } from 'src/app/services/storage.service';\nimport { SessionStore } from 'src/app/store/session.service';\nimport { ChatDebuggingPage } from 'src/app/shared/popover/chat-debugging/chat-debugging.page';\nimport { EventTrigger } from 'src/app/services/eventTrigger.service';\nlet ChatPage = class ChatPage {\n constructor(chatService, modalController, authService, route, timeService, ThemeService, dataService, router, sqlservice, platform, storageservice, ChatSystemService, activatedRoute, eventTriger) {\n this.chatService = chatService;\n this.modalController = modalController;\n this.authService = authService;\n this.route = route;\n this.timeService = timeService;\n this.ThemeService = ThemeService;\n this.dataService = dataService;\n this.router = router;\n this.sqlservice = sqlservice;\n this.platform = platform;\n this.storageservice = storageservice;\n this.ChatSystemService = ChatSystemService;\n this.activatedRoute = activatedRoute;\n this.eventTriger = eventTriger;\n this.dmUsers = [];\n this.desktopComponent = {\n showMessages: false,\n showGroupMessages: false\n };\n this.showEmptyComponent = true;\n this.showMessages = false;\n this.showContacts = false;\n this.showNewGroup = false;\n this.showEditGroup = false;\n this.showGroupMessages = false;\n this.showGroupContacts = false;\n this.showNewEvent = false;\n this.showAttendees = false;\n this.emptyTextDescription = 'Sem conversa selecionada';\n this.message = {\n \"msg\": \"connect\",\n \"version\": \"1\",\n \"support\": [\"1\"]\n };\n this.hideRefreshBtn = true;\n this.taskParticipants = [];\n this.taskParticipantsCc = [];\n this.adding = \"intervenient\";\n this.eventSelectedDate = new Date();\n this.showEventEditOrOpen = \"\";\n this.headers = new HttpHeaders();\n window.onresize = event => {\n if (window.innerWidth > 701) {\n this.modalController.dismiss();\n }\n };\n this.showLoader = true;\n this.segment = 'Contactos';\n this.eventTriger.getObservable().subscribe(event => {\n if (event.notification == \"recive\") {\n this.onSegmentChange();\n }\n // console.log(event)\n });\n }\n\n ngOnInit() {\n this.segment = \"Contactos\";\n this.authService.userData$.subscribe(res => {\n this.loggedUser = res;\n });\n this.hideRefreshButton();\n this.getChatMembers();\n this.router.events.forEach(e