mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
1 line
18 KiB
JavaScript
1 line
18 KiB
JavaScript
|
|
(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[2783,5199],{18119:function(e,t,s){"use strict";s.d(t,{j:function(){return a}});class a{}},55199:function(e,t,s){"use strict";s.d(t,{V:function(){return P}});var a=s(64762),i=s(37716),r=s(35957),n=s(30407),o=s(38583);function l(e,t){1&e&&i._UZ(0,"ion-progress-bar",19)}function d(e,t){if(1&e){const e=i.EpF();i.TgZ(0,"ion-item",21),i.NdJ("click",function(){i.CHM(e);const t=i.oxw().$implicit;return i.oxw().selectContact(t)}),i.TgZ(1,"div",22),i._UZ(2,"ion-icon",23),i.qZA(),i.TgZ(3,"ion-label"),i.TgZ(4,"h3"),i._uU(5),i.qZA(),i.TgZ(6,"p"),i._uU(7),i.qZA(),i.qZA(),i.TgZ(8,"div"),i._UZ(9,"ion-icon",24),i.qZA(),i.qZA()}if(2&e){const e=i.oxw().$implicit;i.xp6(5),i.Oqu(e.Name),i.xp6(2),i.Oqu(e.EmailAddress)}}function h(e,t){if(1&e&&(i.TgZ(0,"div"),i.YNc(1,d,10,2,"ion-item",20),i.qZA()),2&e){const e=t.$implicit,s=i.oxw();i.xp6(1),i.Q6J("ngIf",s.filterSearchList(e))}}function c(e,t){1&e&&(i.TgZ(0,"div",28),i._uU(1," Destinat\xe1rio"),i.qZA())}function p(e,t){if(1&e){const e=i.EpF();i.TgZ(0,"ion-item",29),i.TgZ(1,"div",22),i._UZ(2,"ion-icon",23),i.qZA(),i.TgZ(3,"ion-label"),i.TgZ(4,"h3"),i._uU(5),i.qZA(),i.TgZ(6,"p"),i._uU(7),i.qZA(),i.qZA(),i.TgZ(8,"div",30),i.NdJ("click",function(){const t=i.CHM(e).$implicit;return i.oxw(2).remove(t)}),i._UZ(9,"ion-icon",31),i.qZA(),i.qZA()}if(2&e){const e=t.$implicit;i.xp6(5),i.Oqu(e.Name),i.xp6(2),i.Oqu(e.EmailAddress)}}function u(e,t){if(1&e&&(i.TgZ(0,"ion-list",25),i.YNc(1,c,2,0,"div",26),i.TgZ(2,"ion-item-sliding",8),i.YNc(3,p,10,2,"ion-item",27),i.qZA(),i.qZA()),2&e){const e=i.oxw();i.xp6(1),i.Q6J("ngIf",e.taskParticipants.length>=1||e.taskParticipantsCc.length>=1),i.xp6(2),i.Q6J("ngForOf",e.taskParticipants)}}function g(e,t){1&e&&(i.TgZ(0,"div",28),i._uU(1," Destinat\xe1rio"),i.qZA())}function f(e,t){if(1&e){const e=i.EpF();i.TgZ(0,"ion-item",29),i.TgZ(1,"div",22),i._UZ(2,"ion-icon",23),i.qZA(),i.TgZ(3,"ion-label"),i.TgZ(4,"h3"),i._uU(5),i.qZA(),i.TgZ(6,"p"),i._uU(7),i.qZA(),i.qZA(),i.TgZ(8,"div",30),i.NdJ("click",function(){const t=i.CHM(e).$implicit;return i.oxw(2).remove(t)}),i._UZ(9,"ion-icon",31),i.qZA(),i.qZA()}if(2&e){const e=t.$implicit;i.xp6(5),i.Oqu(e.Name),i.xp6(2),i.Oqu(e.EmailAddress)}}function m(e,t){if(1&e&&(i.TgZ(0,"ion-list",25),i.YNc(1,g,2,0,"div",26),i.TgZ(2,"ion-item-sliding",8),i.YNc(3,f,10,2,"ion-item",27),i.qZA(),i.qZA()),2&e){const e=i.oxw();i.xp6(1),i.Q6J("ngIf",e.taskParticipants.length>=1||e.taskParticipantsCc.length>=1),i.xp6(2),i.Q6J("ngForOf",e.taskParticipantsCc)}}let P=(()=>{class e{constructor(e,t,s,a){this.modalCtrl=e,this.contactsService=t,this.navParams=s,this.modalController=a,this.showLoader=!1,this.selectedContact=[],this.currentPath=window.location.pathname,this.taskParticipants=[],this.taskParticipantsCc=[],this.adding=this.navParams.get("adding"),this.taskParticipants=this.navParams.get("taskParticipants"),this.taskParticipantsCc=this.navParams.get("taskParticipantsCc")}ngOnInit(){this.fetchContacts(""),null!=this.taskParticipants&&null!=this.taskParticipants||(this.taskParticipants=[]),null!=this.taskParticipantsCc&&null!=this.taskParticipantsCc||(this.taskParticipantsCc=[])}ngOnChanges(e){}save(){this.modalController.dismiss({taskParticipants:this.taskParticipants,taskParticipantsCc:this.taskParticipantsCc})}close(){this.modalController.dismiss(!1)}onChange(e){this.fetchContacts(e.detail.value)}filterSearchList(e){return null==this.taskParticipants.concat(this.taskParticipantsCc).find((t,s)=>{if(t.Name.toLocaleLowerCase()==e.Name.toLocaleLowerCase()&&t.EmailAddress.toLocaleLowerCase()==e.EmailAddress.toLocaleLowerCase())return s=s,t})}remove(e){"intervenient"==this.adding?this.taskParticipants=this.taskParticipants.filter((t,s)=>t.Name.toLocaleLowerCase()!=e.Name.toLocaleLowerCase()&&t.EmailAddress.toLocaleLowerCase()!=e.EmailAddress.toLocaleLowerCase()&&t):"CC"==this.adding&&(this.taskParticipantsCc=this.taskParticipantsCc.filter((t,s)=>t.Name.toLocaleLowerCase()!=e.Name.toLocaleLowerCase()&&t.EmailAddress.toLocaleLowerCase()!=e.EmailAddress.toLocaleLowerCase()&&t))}s
|