1 line
30 KiB
JavaScript
1 line
30 KiB
JavaScript
(self.webpackChunkapp=self.webpackChunkapp||[]).push([[2023],{52023:(G,S,c)=>{c.r(S),c.d(S,{CreateEventEventGuestsPageModule:()=>Z});var _=c(61380),b=c(69270),g=c(15861),p=c(24889),P=c(70713),e=c(45449),u=c(47898),f=c(90603),h=c(23925),O=c(71003),y=c(14690),U=c(11814),k=c(21284),N=c(37763),x=c(90944),R=c(87871),A=c(36290),w=c(99826);function D(s,v){if(1&s){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",4)(2,"div",10)(3,"button",11),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(i);const l=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(l.openAddUserModal())}),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(6,"div",4)(7,"div",10)(8,"button",11),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(i);const l=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(l.openAddNewUserModal())}),e.\u0275\u0275text(9),e.\u0275\u0275pipe(10,"translate"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementContainerEnd()}if(2&s){const i=v.ngIf;e.\u0275\u0275advance(3),e.\u0275\u0275property("disabled","Offline"===i.status),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(5,4,"PG_CREATE_GUESTS_STEP_BTN_COMPANY_SHEDULE")," "),e.\u0275\u0275advance(4),e.\u0275\u0275property("disabled","Offline"===i.status),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(10,6,"PG_CREATE_GUESTS_STEP_BTN_REGISTER_NEW")," ")}}function F(s,v){if(1&s&&(e.\u0275\u0275elementStart(0,"div",22),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&s){const i=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(i.company)}}function z(s,v){if(1&s){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",16)(1,"div",17),e.\u0275\u0275listener("click",function(){const E=e.\u0275\u0275restoreView(i).$implicit,I=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(I.toggleActions(E))}),e.\u0275\u0275element(2,"app-avatar",18),e.\u0275\u0275elementStart(3,"div",19)(4,"div",20),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(6,F,2,1,"div",21),e.\u0275\u0275elementEnd()()()}if(2&s){const i=v.$implicit,a=e.\u0275\u0275nextContext(2);let l;e.\u0275\u0275advance(2),e.\u0275\u0275property("firstName",i.firstName)("lastName",i.lastName)("thumbnailImage",null!==(l=null!==(l=null==i?null:i.image)&&void 0!==l?l:null==i?null:i.thumbnailImage)&&void 0!==l?l:null)("size","md"),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",a.helperService.normalizeName(i.firstName,i.lastName)," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",i.company)}}function B(s,v){if(1&s&&(e.\u0275\u0275elementStart(0,"div",12)(1,"div",13),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",14),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(7,z,7,6,"div",15),e.\u0275\u0275elementEnd()),2&s){const i=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(3,3,"PG_CREATE_GUESTS_STEP_TEXT_GUESTS")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(6,5,"PG_CREATE_GUESTS_STEP_TEXT_TAP_ITEM_EDIT")),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",i.selectedUsers)}}function j(s,v){if(1&s){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"ion-row")(1,"ion-col",23)(2,"div",24)(3,"button",25),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(i);const l=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(l.goToNextStep())}),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd()()()()}2&s&&(e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(5,1,"PG_CREATE_GUESTS_STEP_BTN_NOT_ADD_GUEST")," "))}function V(s,v){if(1&s){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",28),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(i);const l=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(l.goToNextStep())}),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()}2&s&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(2,1,"BTN_NEXT")," "))}function L(s,v){if(1&s){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",24)(1,"button",26),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(i);const l=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(l.goOneStepBack())}),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(4,V,3,3,"button",27),e.\u0275\u0275elementEnd()}if(2&s){const i=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(3,2,"BTN_BACK")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!!i.selectedUsers.length)}}function H(s,v){if(1&s){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",28),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(i);const l=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(l.goToNextStep())}),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()}2&s&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(2,1,"BTN_NEXT")," "))}function K(s,v){if(1&s){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",24)(1,"button",26),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(i);const l=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(l.goOneStepBack())}),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(4,H,3,3,"button",27),e.\u0275\u0275elementEnd()}if(2&s){const i=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(3,2,"BTN_BACK")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!!i.selectedUsers.length)}}const W=[{path:"",component:(()=>{class s{constructor(i,a,l,E,I,X,$,Q,Y,J,q,ee,te,ne,ie,oe,se,re,ae,ce){var r=this;this.createEventService=i,this.navigationService=a,this.modalController=l,this.helperService=E,this.commonService=I,this.logService=X,this.loadingService=$,this.actionSheetController=Q,this.activatedRoute=Y,this.router=J,this.permissionsAndroidService=q,this.modalPermissionsService=ee,this.androidPermissions=te,this.platform=ne,this.deviceContactsService=ie,this.translateConfigService=oe,this.stateService=se,this.focusService=re,this.notificator=ae,this.userPhotoService=ce,this.selectedUsers=[],this.isLimitedProfile=!1,this.existPendings=!1,this.approveEventReview="",this.event=null,this.selectedInvitesForCancel=[],this.navigateToQRCode=()=>{this.navigationService.root(["/home"])},this.navigateToPendingLiberations=()=>{this.navigationService.forward(["/push-notifications"])},this.addUserToSelectedUsers=t=>{if(!this.checkIsMaxGuestsInvited())return;console.log("addUserToSelectedUsers:",t);const o=this.selectedUsers.find(d=>d.id===t.id);o?this.selectedUsers=this.selectedUsers.map(d=>(d.id===o.id&&(d=t),d)):this.selectedUsers.push(t)},this.removeUserFromSelectedUsers=t=>{(!t.status||"WAITING_FOR_CHECKIN"===t.status)&&(this.selectedUsers=this.selectedUsers.filter(n=>n.id!==t.id)),this.existIdEvent&&this.addInvitesToCancel(t)},this.openAddUserModal=(0,g.Z)(function*(){if(!r.checkIsMaxGuestsInvited())return;const n=yield r.modalController.create({component:p.lZ,componentProps:{contact:null,isNewContact:!1}});n.onDidDismiss().then(r.onModalDismissCallback),yield n.present()}),this.openAddNewUserModal=(0,g.Z)(function*(){if(!r.checkIsMaxGuestsInvited())return;const n=yield r.modalController.create({component:P.E,componentProps:{isNewContact:!0}});n.onDidDismiss().then(r.onModalDismissCallback),yield n.present()}),this.onModalDismissCallback=t=>{t&&t.data&&this.addUserToSelectedUsers(t.data)},this.goOneStepBack=()=>{this.isLimitedProfile?this.navigationService.back(["/events"]):(this.createEventService.setGuests(this.selectedUsers),this.navigationService.back(["/create-event-event-hosts"]))},this.goToNextStep=()=>{this.createEventService.setGuests(this.selectedUsers),this.existIdEvent&&this.createEventService.setInvitesToDelete(this.selectedInvitesForCancel),this.isLimitedProfile?this.goToEventResume():this.canBeEdited()||this.approveEventReview?this.navigationService.forward(["/create-event-event-options"]):this.goToEventResume()},this.goToEventResume=()=>{let t=null,n=null;this.isLimitedProfile&&this.event?.id?(t=this.event?.floor,n=this.event?.group):(t=this.createEventService.getSelectedFloor(),n=this.createEventService.getSelectedGroup());const d={state:{event:{id:this.createEventService.getId(),title:this.createEventService.getTitle(),startAt:this.createEventService.getStartDate(),endAt:this.createEventService.getEndDate(),floor:t,group:n,hosts:this.createEventService.getHosts(),guests:this.createEventService.getGuests(),multiCheckin:this.createEventService.getMultiCheckIn(),allowCompanion:this.createEventService.getCompanionAllowed(),needAuthorization:this.createEventService.getNeedAuthorization(),checkinStartAt:this.createEventService.getCheckInStartAt(),bookeis:this.createEventService.getBookings(),bookeisToCancel:this.existIdEvent?this.createEventService.getBookeisToCancel():[],invitesToDelete:this.existIdEvent?this.createEventService.getInvitesToDelete():[],periods:this.createEventService.getPeriods()??[],recurrenceDates:this.createEventService.getRecurrenceDates()??[],recurrent:this.createEventService.getRecurrent()??!1},isLimitedProfile:this.isLimitedProfile}};this.navigationService.forward(["/create-event-event-resume"],d)},this.canBeEdited=()=>!this.createEventService.getGuests().find(t=>t.status&&"WAITING_FOR_CHECKIN"!==t.status),this.toggleActions=function(){var t=(0,g.Z)(function*(n){yield(yield r.actionSheetController.create({header:r.translateConfigService.translate("ACTION_SHEET_HEADER"),cssClass:"",buttons:[{text:r.translateConfigService.translate("ACTION_SHEET_BTN_REMOVE"),role:"destructive",icon:"trash",handler:()=>{r.removeUserFromSelectedUsers(n)}},{text:r.translateConfigService.translate("ACTION_SHEET_BTN_EDIT"),icon:"create",handler:()=>{r.onGuestClick(n)}},{text:r.translateConfigService.translate("ACTION_SHEET_BTN_BACK"),icon:"arrow-back",role:"cancel",handler:()=>{}}]})).present()});return function(n){return t.apply(this,arguments)}}(),this.onGuestClick=function(){var t=(0,g.Z)(function*(n){console.log("guest:",n);const o=yield r.modalController.create({component:P.E,componentProps:{contact:n}});o.onDidDismiss().then(r.onModalDismissCallback),yield o.present()});return function(n){return t.apply(this,arguments)}}(),this.selectFromUserContacts=(0,g.Z)(function*(){r.checkIsMaxGuestsInvited()&&((yield r.handlePermissionConctats())?r.deviceContactsService.pickContact().then(r.handleSelectFromUserContactsSuccessResponse).catch(r.handleSelectFromUserContactsErrorResponse):r.modalPermissionsService.openModal({permission:"CONTACT"}).then(o=>{o?r.deviceContactsService.pickContact().then(r.handleSelectFromUserContactsSuccessResponse).catch(r.handleSelectFromUserContactsErrorResponse):r.logService.logError("permissionModal::handleSelectFromUserContactsErrorResponsePageCreateEventGuestContacts","","modal-permission-rejected")}))}),this.handleSelectFromUserContactsSuccessResponse=t=>{console.log("handleSelectFromUserContactsSuccessResponse"),console.log("response: are you here?",t),this.verifyIfNeedsPhoneNumberSelectionModal(t.contact)},this.handleSelectFromUserContactsErrorResponse=t=>{console.log("handleSelectFromUserContactsErrorResponse"),console.log("error:",t),this.logService.logError("contacts::handleSelectFromUserContactsErrorResponse","",t)},this.verifyIfNeedsPhoneNumberSelectionModal=t=>{const n=t.phones;this.phoneNumberSelectionModalOnPhoneNumberSelectionCallback(t,n&&n.length?n[0]:null)},this.phoneNumberSelectionModalOnPhoneNumberSelectionCallback=(t,n)=>{const o={phone:this.getPhoneNumberFromSelectedContact(n)};this.verifyIfAlreadyExistsInUserPersonalAgenda(o).then(d=>{d?this.verifyIfUserNeedsToUpdateEmailModal(t,d):this.verifyIfNeedsEmailSelectionModal(t,n)})},this.verifyIfAlreadyExistsInUserPersonalAgenda=t=>(this.loadingService.show(this.translateConfigService.translate("PG_CREATE_HOSTS_STEP_LOADING"),"contact-loading-data"),t={...t,phoneNumber:t.phone},new Promise(n=>{this.createEventService.getPrivateGuestByPhoneNumber(t).then(o=>{this.loadingService.hide(null,"contact-loading-data"),console.log("response:",o),n(o)}).catch(o=>{this.loadingService.hide(null,"contact-loading-data"),console.log("error:",o),n(!1)})})),this.verifyIfUserNeedsToUpdateEmailModal=(t,n)=>{const o=t.emails;o&&o.length&&o.length>1?this.handleEmailUpdateSelectionModal(t,n):this.addUserToSelectedUsers(n)},this.verifyIfNeedsEmailSelectionModal=(t,n)=>{const o=t.emails;o&&o.length?o.length>1?this.handleEmailSelectionModal(t,n):this.emailSelectionModalOnEmailSelectionCallback(t,o[0],n):this.emailSelectionModalOnEmailSelectionCallback(t,null,n)},this.handleEmailSelectionModal=function(){var t=(0,g.Z)(function*(n,o){const d=yield r.modalController.create({component:p.id,componentProps:{contact:n}});d.onDidDismiss().then(m=>{m.data?r.emailSelectionModalOnEmailSelectionCallback(n,m.data,o):r.emailSelectionModalOnBackCallback()}),yield d.present()});return function(n,o){return t.apply(this,arguments)}}(),this.handleEmailUpdateSelectionModal=function(){var t=(0,g.Z)(function*(n,o){const d=yield r.modalController.create({component:p.id,componentProps:{contact:n}});d.onDidDismiss().then(m=>{m.data?r.emailUpdateSelectionModalOnEmailSelectionCallback(o,m.data):r.emailSelectionModalOnBackCallback()}),yield d.present()});return function(n,o){return t.apply(this,arguments)}}(),this.emailUpdateSelectionModalOnEmailSelectionCallback=(t,n)=>{const o=this.getEmailFromSelectedEmail(n);t.email===o?this.addUserToSelectedUsers(t):(t.email=o,this.onUpdateGuest(t))},this.emailSelectionModalOnEmailSelectionCallback=(t,n,o)=>{const d=this.getEmailFromSelectedEmail(n),m=this.getPhoneNumberFromSelectedContact(o),C=this.getFirstNameFromSelectedContact(t),M=this.getLastNameFromSelectedContact(t),T={email:d,firstName:C.split(" ").length>0?C.split(" ")[0]:C,lastName:`${M||""} ${C.split(" ").length>0?C.split(" ").slice(1).join(" "):M}`,phone:m};C&&M&&m?m.length<9?this.onOpenModalToAddMissingInfo(T,t):this.onAutoCreateGuest(T):this.onOpenModalToAddMissingInfo(T,t)},this.handlePhoneSelectionModal=function(){var t=(0,g.Z)(function*(n){const o=yield r.modalController.create({component:p.Mf,componentProps:{contact:n}});o.onDidDismiss().then(d=>{d.data?r.phoneNumberSelectionModalOnPhoneNumberSelectionCallback(n,d.data):r.emailSelectionModalOnBackCallback()}),yield o.present()});return function(n){return t.apply(this,arguments)}}(),this.emailSelectionModalOnBackCallback=()=>{console.log("emailSelectionModalOnBackCallback")},this.onOpenModalToAddMissingInfo=function(){var t=(0,g.Z)(function*(n,o){const d=yield r.modalController.create({component:P.E,componentProps:{contact:n,type:"personal"}});d.onDidDismiss().then(m=>{r.onModalDismissCallback(m)}),yield d.present()});return function(n,o){return t.apply(this,arguments)}}(),this.onAutoCreateGuest=t=>{this.loadingService.show(this.translateConfigService.translate("PG_CREATE_HOSTS_STEP_LOADING"),"contact-loading-data-again"),t={...t,phoneNumber:t.phone},this.createEventService.createPrivateGuest(t).then(this.handleCreateGuestSuccessResponse).catch(this.handleCreateGuestErrorResponse)},this.onUpdateGuest=t=>{this.createEventService.updatePrivateGuest(t).then(this.handleUpdateGuestSuccessResponse).catch(this.handleUpdateGuestErrorResponse)},this.handleUpdateGuestSuccessResponse=t=>{console.log("handleUpdateGuestSuccessResponse"),console.log("response:",t),this.addUserToSelectedUsers(t)},this.handleUpdateGuestErrorResponse=t=>{console.log("handleUpdateGuestErrorResponse"),console.log("error:",t),this.logService.logError("http::handleUpdateGuestErrorResponse","",t)},this.handleCreateGuestSuccessResponse=t=>{console.log("handleCreateGuestSuccessResponse"),this.loadingService.hide(null,"contact-loading-data-again").then(()=>{this.addUserToSelectedUsers(t)})},this.handleCreateGuestErrorResponse=t=>{console.log("handleCreateGuestErrorResponse"),console.log("error:",t),this.loadingService.hide(null,"contact-loading-data-again"),this.logService.logError("http::handleCreateGuestErrorResponse","",t)},this.getEmailFromSelectedEmail=t=>t&&t.address?this.commonService.clearString(t.address):null,this.getFirstNameFromSelectedContact=t=>t&&t.name&&t.name.given?this.commonService.clearString(t.name.given):"",this.getLastNameFromSelectedContact=t=>t&&t.name&&t.name.family?this.commonService.clearString(t.name.family):"",this.getPhoneNumberFromSelectedContact=t=>(t&&t.number?this.commonService.clearString(t.number):"").replace(/\D+/g,""),this.approveEventReview=this.isApproveEventReview(),this.existIdEvent=!this.createEventService.getIsNew(),this.activatedRoute.queryParams.subscribe(t=>{const n=this.router.getCurrentNavigation()?.extras?.state;n&&(this.isLimitedProfile=!!n.isLimitedProfile&&n.isLimitedProfile,this.event=n?.event)})}ionViewWillEnter(){this.focusService.applyFocusQuerySelector("create_event_guests",3500)}ngOnInit(){this.showActions=null;let i=this.createEventService.getGuests();if(i=i||[],this.selectedUsers=i,this.userPhotoService.enrichUsersWithPhotos(this.selectedUsers),this.maxInvites=this.createEventService.getMaxInvites(),this.existIdEvent){let a=this.createEventService.getInvitesToDelete();a=a||[],this.selectedInvitesForCancel=a}}ionViewDidEnter(){}ionViewDidLeave(){}addInvitesToCancel(i){const{inviteId:a}=i;!this.verifyForRepetition(i)&&a&&this.selectedInvitesForCancel.push(a)}verifyForRepetition(i){return this.selectedInvitesForCancel.find(a=>a===i.inviteId)}handlePermissionConctats(){var i=this;return(0,g.Z)(function*(){return!!(i.platform.is("cordova")?yield i.permissionsAndroidService.hasPermission("READ_CONTACTS"):{hasPermission:!1}).hasPermission})()}isApproveEventReview(){return this.createEventService.getApproveEventReview()}checkIsMaxGuestsInvited(){return!(this.maxInvites&&this.selectedUsers.length>=this.maxInvites&&(this.toastShowMaxGuestsInvited(),1))}toastShowMaxGuestsInvited(){const a=this.translateConfigService.translate("TOAST_MAX_GUESTS_INVITED",{count:this.maxInvites}),l=this.translateConfigService.translate("TOAST_MAX_GUESTS_INVITED_TITLE");this.createEventService.setApproveEventReview(!0),this.notificator.notify({message:a,type:"error",title:l,timeout:8e3})}}return s.\u0275fac=function(i){return new(i||s)(e.\u0275\u0275directiveInject(u.jc),e.\u0275\u0275directiveInject(u.f5),e.\u0275\u0275directiveInject(f.ModalController),e.\u0275\u0275directiveInject(u.W_),e.\u0275\u0275directiveInject(u.v_),e.\u0275\u0275directiveInject(u.$V),e.\u0275\u0275directiveInject(u.bz),e.\u0275\u0275directiveInject(f.ActionSheetController),e.\u0275\u0275directiveInject(_.ActivatedRoute),e.\u0275\u0275directiveInject(_.Router),e.\u0275\u0275directiveInject(h.Y),e.\u0275\u0275directiveInject(O.J),e.\u0275\u0275directiveInject(y.r),e.\u0275\u0275directiveInject(f.Platform),e.\u0275\u0275directiveInject(U.r),e.\u0275\u0275directiveInject(u.wK),e.\u0275\u0275directiveInject(k.b),e.\u0275\u0275directiveInject(N.i),e.\u0275\u0275directiveInject(u.V6),e.\u0275\u0275directiveInject(u.IR))},s.\u0275cmp=e.\u0275\u0275defineComponent({type:s,selectors:[["app-create-event-event-guests"]],decls:25,vars:19,consts:[["defaultHref","create-event-event-hosts",3,"title","showBadge","refresh","menuToggle"],[1,"centralized-content"],[1,"page-title"],["id","create_event_guests","tabindex","1",1,"sub-title"],[1,"add-from"],[1,"add-user"],[3,"click"],[4,"ngIf"],["class","results",4,"ngIf"],["class","button-holder",4,"ngIf"],[1,"add-user",2,"margin-top","10px"],[3,"disabled","click"],[1,"results"],[1,"title"],[1,"sub-title"],["class","result",4,"ngFor","ngForOf"],[1,"result"],[1,"main",3,"click"],[3,"firstName","lastName","thumbnailImage","size"],[1,"user-info"],[1,"full-name"],["class","company",4,"ngIf"],[1,"company"],[1,"ion-margin-vertical"],[1,"button-holder"],["type","button",3,"click"],["type","button",1,"back",3,"click"],["type","submit",3,"click",4,"ngIf"],["type","submit",3,"click"]],template:function(i,a){1&i&&(e.\u0275\u0275element(0,"app-header",0),e.\u0275\u0275pipe(1,"translate"),e.\u0275\u0275elementStart(2,"ion-content")(3,"div",1)(4,"div",2)(5,"div",3),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(8,"ion-row")(9,"ion-col")(10,"div",4)(11,"div",5)(12,"button",6),e.\u0275\u0275listener("click",function(){return a.selectFromUserContacts()}),e.\u0275\u0275text(13),e.\u0275\u0275pipe(14,"translate"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(15,D,11,8,"ng-container",7),e.\u0275\u0275pipe(16,"async"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(17,"ion-row")(18,"ion-col"),e.\u0275\u0275template(19,B,8,7,"div",8),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(20,j,6,3,"ion-row",7),e.\u0275\u0275elementStart(21,"ion-row")(22,"ion-col"),e.\u0275\u0275template(23,L,5,4,"div",9),e.\u0275\u0275template(24,K,5,4,"div",9),e.\u0275\u0275elementEnd()()()()),2&i&&(e.\u0275\u0275property("title",e.\u0275\u0275pipeBind1(1,11,"PG_CREATE_GUESTS_STEP_HEADER_TITLE"))("showBadge",!0)("refresh",!1)("menuToggle",!1),e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(7,13,"PG_CREATE_GUESTS_STEP_TEXT_SUBTITLE")," "),e.\u0275\u0275advance(7),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(14,15,"PG_CREATE_GUESTS_STEP_BTN_PHONE_SHEDULE")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(16,17,a.stateService.getState())),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngIf",!!a.selectedUsers.length),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!a.selectedUsers.length),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",!1===a.isLimitedProfile),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!0===a.isLimitedProfile))},dependencies:[x.NgForOf,x.NgIf,f.IonCol,f.IonContent,f.IonRow,R.A,A.G,x.AsyncPipe,w.X$],styles:["ion-content[_ngcontent-%COMP%]{--background: #f1f1f1}ion-toolbar[_ngcontent-%COMP%]{font-family:Nunito,sans-serif}ion-toolbar[_ngcontent-%COMP%] ion-img[_ngcontent-%COMP%]{height:25px;width:25px}ion-toolbar[_ngcontent-%COMP%] ion-title[_ngcontent-%COMP%]{letter-spacing:1px}ion-toolbar[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:24px;padding:0;width:24px;margin:0;font-size:19px;color:#656768}ion-toolbar[_ngcontent-%COMP%] ion-button.hover[_ngcontent-%COMP%]{background:#fff}.centralized-content[_ngcontent-%COMP%]{height:calc(100vh - 56px);display:flex;justify-content:flex-start;flex-direction:column}.centralized-content[_ngcontent-%COMP%] .page-title[_ngcontent-%COMP%]{margin-top:30px;margin-bottom:26px}.centralized-content[_ngcontent-%COMP%] .page-title[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:initial!important;font-weight:700;text-align:center}.centralized-content[_ngcontent-%COMP%] .page-title[_ngcontent-%COMP%] .sub-title[_ngcontent-%COMP%]{text-align:center;color:#656768;font-size:.9em;margin-top:4px}.centralized-content[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%]{margin-top:8px}.centralized-content[_ngcontent-%COMP%] .add-from[_ngcontent-%COMP%]{display:flex;width:80%;margin:0 10%}.centralized-content[_ngcontent-%COMP%] .add-from[_ngcontent-%COMP%] .add-user[_ngcontent-%COMP%]{display:flex;align-content:center;justify-content:center;flex:1}.centralized-content[_ngcontent-%COMP%] .add-from[_ngcontent-%COMP%] .add-user[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:.75em 1.5em;border-radius:4px;background-color:#0ec254;color:#fff;font-size:1em;width:calc(100% - 4px);margin-left:4px;transition:background-color .1s ease-out}.centralized-content[_ngcontent-%COMP%] .add-from[_ngcontent-%COMP%] .add-user[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:active{background-color:#fff;color:#0ec254;transition:background-color .1s ease-out}.centralized-content[_ngcontent-%COMP%] .add-from[_ngcontent-%COMP%] .add-user[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:focus{outline:none}.centralized-content[_ngcontent-%COMP%] .add-from[_ngcontent-%COMP%] .add-user-from-contacts[_ngcontent-%COMP%]{display:flex;align-content:center;justify-content:center;flex:1}.centralized-content[_ngcontent-%COMP%] .add-from[_ngcontent-%COMP%] .add-user-from-contacts[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:.75em 1.5em;border-radius:4px;background-color:#0ec254;color:#fff;font-size:1em;width:calc(100% - 4px);margin-right:4px;min-height:100px;transition:background-color .1s ease-out}.centralized-content[_ngcontent-%COMP%] .add-from[_ngcontent-%COMP%] .add-user-from-contacts[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:active{background-color:#fff;color:#0ec254;transition:background-color .1s ease-out}.centralized-content[_ngcontent-%COMP%] .add-from[_ngcontent-%COMP%] .add-user-from-contacts[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:focus{outline:none}.centralized-content[_ngcontent-%COMP%] .dont-add-just-go[_ngcontent-%COMP%]{display:flex;align-content:center;justify-content:center;margin-top:8px}.centralized-content[_ngcontent-%COMP%] .dont-add-just-go[_ngcontent-%COMP%] .skip[_ngcontent-%COMP%]{display:flex;align-content:center;justify-content:center}.centralized-content[_ngcontent-%COMP%] .dont-add-just-go[_ngcontent-%COMP%] .skip[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:.75em 1.5em;border-radius:4px;background-color:#0ec254;color:#fff;font-size:1em;width:80%;min-height:100px;transition:background-color .1s ease-out}.centralized-content[_ngcontent-%COMP%] .dont-add-just-go[_ngcontent-%COMP%] .skip[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:active{background-color:#fff;color:#0ec254;transition:background-color .1s ease-out}.centralized-content[_ngcontent-%COMP%] .dont-add-just-go[_ngcontent-%COMP%] .skip[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:focus{outline:none}.centralized-content[_ngcontent-%COMP%] .results[_ngcontent-%COMP%]{margin-top:1.5em}.centralized-content[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:initial!important;width:80%;margin:0 10% 6px;font-weight:700;text-align:center}.centralized-content[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .sub-title[_ngcontent-%COMP%]{width:80%;margin:0 10% 11px;font-size:.9em;background-color:#eee;padding:4px 6px;border-radius:2px}.centralized-content[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .result[_ngcontent-%COMP%]{width:80%;margin:0 10% 4px;border:1px solid #eee;border-radius:4px;padding:8px 12px;display:flex;justify-content:space-between;flex-direction:column;background-color:#fff}.centralized-content[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .result[_ngcontent-%COMP%] .main[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%}.centralized-content[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .result[_ngcontent-%COMP%] .main[_ngcontent-%COMP%] app-avatar[_ngcontent-%COMP%]{flex-shrink:0}.centralized-content[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .result[_ngcontent-%COMP%] .main[_ngcontent-%COMP%] .user-info[_ngcontent-%COMP%]{flex:1;min-width:0}.centralized-content[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .result[_ngcontent-%COMP%] .main[_ngcontent-%COMP%] .user-info[_ngcontent-%COMP%] .company[_ngcontent-%COMP%]{color:#aaa;font-size:.8em}.centralized-content[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .result[_ngcontent-%COMP%] .main[_ngcontent-%COMP%] .open-actions[_ngcontent-%COMP%]{width:32px;height:32px;display:flex;justify-content:center;align-items:center;border-radius:32px;border:1px solid #eee}.centralized-content[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .result[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:none}.centralized-content[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .result[_ngcontent-%COMP%] .actions.show[_ngcontent-%COMP%]{display:block;margin-top:4px;border-top:1px solid #eee}.centralized-content[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .result[_ngcontent-%COMP%] .actions.show[_ngcontent-%COMP%] .edit-action[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .result[_ngcontent-%COMP%] .actions.show[_ngcontent-%COMP%] .cant-edit[_ngcontent-%COMP%]{margin-top:4px}.centralized-content[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%]{justify-content:space-evenly}.pulsate-fwd[_ngcontent-%COMP%]{animation:pulsate-fwd .5s ease-in-out infinite both;outline:none}@keyframes pulsate-fwd{0%{transform:scale(1)}50%{transform:scale(1.5)}to{transform:scale(1)}}"]}),s})()}];let Z=(()=>{class s{}return s.\u0275fac=function(i){return new(i||s)},s.\u0275mod=e.\u0275\u0275defineNgModule({type:s}),s.\u0275inj=e.\u0275\u0275defineInjector({imports:[b.I,_.RouterModule.forChild(W)]}),s})()},37763:(G,S,c)=>{c.d(S,{i:()=>e});var _=c(61380),g=c(92198),p=c(45449);let e=(()=>{class u{constructor(h){this.router=h}focusInRouterNavigate(){this.router.events.pipe((0,g.h)(h=>h instanceof _.NavigationEnd)).subscribe(()=>{const h=document.querySelector("#focusHeader");h&&h?.focus()})}applyFocusQuerySelector(h,O){setTimeout(()=>{document.querySelector(`#${h}`)?.focus()},O)}}return u.\u0275fac=function(h){return new(h||u)(p.\u0275\u0275inject(_.Router))},u.\u0275prov=p.\u0275\u0275defineInjectable({token:u,factory:u.\u0275fac,providedIn:"root"}),u})()}}]); |