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

1 line
19 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 \"./attendee-modal.page.html?ngResource\";\nimport __NG_CLI_RESOURCE__1 from \"./attendee-modal.page.scss?ngResource\";\nimport { Component, EventEmitter, Input, Output } from '@angular/core';\nimport { ModalController } from '@ionic/angular';\nimport { ContactsService } from 'src/app/services/contacts.service';\nimport { removeDuplicate } from 'src/plugin/removeDuplicate.js';\nimport { ThemeService } from 'src/app/services/theme.service';\nimport { ViewChild } from '@angular/core';\nlet AttendeePage = class AttendeePage {\n constructor(modalCtrl, contactsService, ThemeService) {\n this.modalCtrl = modalCtrl;\n this.contactsService = contactsService;\n this.ThemeService = ThemeService;\n this.showLoader = false;\n this.inputFilter = '';\n this.closeComponent = new EventEmitter();\n this.setIntervenient = new EventEmitter();\n this.setIntervenientCC = new EventEmitter();\n this.dynamicSetIntervenient = new EventEmitter();\n this.taskParticipants = [];\n this.taskParticipantsCc = [];\n this.LtaskParticipants = [];\n this.LtaskParticipantsCc = [];\n this.currentPath = window.location.pathname;\n this.LtaskParticipants = removeDuplicate(this.taskParticipants);\n this.LtaskParticipantsCc = removeDuplicate(this.taskParticipantsCc);\n }\n ngOnChanges() {\n this.LtaskParticipants = removeDuplicate(this.taskParticipants);\n this.LtaskParticipantsCc = removeDuplicate(this.taskParticipantsCc);\n }\n ngOnInit() {\n this.fetchContacts(\"\");\n if (this.LtaskParticipants == null || this.LtaskParticipants == undefined) {\n this.LtaskParticipants = [];\n }\n if (this.LtaskParticipantsCc == null || this.LtaskParticipantsCc == undefined) {\n this.LtaskParticipantsCc = [];\n }\n }\n save() {\n this.setIntervenient.emit(removeDuplicate(this.LtaskParticipants));\n this.setIntervenientCC.emit(removeDuplicate(this.LtaskParticipantsCc));\n this.searchbar.value = null;\n this.closeComponent.emit();\n }\n setContactWithClose() {\n if (this.currentPath == '/home/gabinete-digital') {\n this.setIntervenient.emit(this.LtaskParticipants);\n this.setIntervenientCC.emit(this.LtaskParticipantsCc);\n }\n this.dynamicSetIntervenient.emit({\n taskParticipants: this.LtaskParticipants,\n taskParticipantsCc: this.LtaskParticipantsCc\n });\n }\n selectContact(itm) {\n var _this = this;\n return _asyncToGenerator(function* () {\n if (_this.adding == \"intervenient\") {\n itm.IsRequired = true;\n _this.LtaskParticipants.push(itm);\n } else if (_this.adding == \"CC\") {\n itm.IsRequired = false;\n _this.LtaskParticipantsCc.push(itm);\n } else {\n // \n }\n // run only in gabinete digital\n _this.setContactWithClose();\n })();\n }\n close() {\n this.closeComponent.emit();\n }\n onChange(evt) {\n this.fetchContacts(evt.detail.value);\n }\n filterSearchList(itm) {\n const result = this.LtaskParticipants.concat(this.LtaskParticipantsCc).find((contact, index) => {\n if (this.checkStringNull(contact.Name) == this.checkStringNull(itm.Name) && this.checkStringNull(contact.EmailAddress) == this.checkStringNull(itm.EmailAddress)) {\n index = index;\n return contact;\n }\n });\n // if to show\n if (undefined != result) {\n return false;\n }\n const result2 = this.LtaskParticipantsCc.find((contact, index) => {\n if (this.checkStringNull(contact.Name) == itm.Name && this.checkStringNull(contact.EmailAddress) == this.checkStringNull(itm.EmailAddress)) {\n index = index;\n return contact;\n }\n });\n // if to show\n if (undefined != result2) {\n return false;\n }\n // don't show\n return true;\n }\n remove(itm) {\n if (this