Files
kapp/5356.bb5a6ccd98be87b1.js
T
2026-05-21 11:19:10 -03:00

1 line
100 KiB
JavaScript

(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5356],{71994:(pe,F,C)=>{C.d(F,{sZ:()=>B,ue:()=>H,AQ:()=>Z,Ut:()=>te,oY:()=>ae,YH:()=>d,i9:()=>f});var e=C(45449),M=C(47898),x=C(90944),_=C(90603),U=C(87871);function V(o,l){if(1&o&&(e.\u0275\u0275elementStart(0,"div",7),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&o){const n=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",n.foundUser.document," ")}}function y(o,l){if(1&o&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,V,2,1,"div",6),e.\u0275\u0275elementContainerEnd()),2&o){const n=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==n.foundUser?null:n.foundUser.document)}}function L(o,l){if(1&o&&(e.\u0275\u0275elementStart(0,"div",7),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&o){const n=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",n.foundUser.company," ")}}function b(o,l){if(1&o&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,L,2,1,"div",6),e.\u0275\u0275elementContainerEnd()),2&o){const n=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==n.foundUser?null:n.foundUser.company)}}function N(o,l){if(1&o){const n=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",1),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(n);const s=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(s.userSelect.emit(s.foundUser))}),e.\u0275\u0275element(2,"app-avatar",2),e.\u0275\u0275elementStart(3,"div",3)(4,"div",4),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(6,y,2,1,"ng-container",0),e.\u0275\u0275template(7,b,2,1,"ng-container",0),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(8,"ion-ripple-effect",5),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}if(2&o){const n=e.\u0275\u0275nextContext();let r;e.\u0275\u0275advance(2),e.\u0275\u0275property("firstName",n.foundUser.firstName)("lastName",n.foundUser.lastName)("thumbnailImage",null!==(r=null!==(r=null==n.foundUser?null:n.foundUser.image)&&void 0!==r?r:null==n.foundUser?null:n.foundUser.thumbnailImage)&&void 0!==r?r:null)("size","md"),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",n.helperService.normalizeName(n.foundUser.firstName,n.foundUser.lastName)," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","driver"===n.typeofuser),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","assistant"===n.typeofuser)}}function t(o,l){1&o&&(e.\u0275\u0275elementStart(0,"div",14),e.\u0275\u0275element(1,"ion-skeleton-text",15),e.\u0275\u0275elementStart(2,"div",3)(3,"div",4),e.\u0275\u0275element(4,"ion-skeleton-text",16),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"div",7),e.\u0275\u0275element(6,"ion-skeleton-text",17),e.\u0275\u0275elementEnd()()())}const me=function(){return[1,2,3,4,5,6,7,8,9,10]};function J(o,l){1&o&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",8)(2,"div",9)(3,"div",10),e.\u0275\u0275element(4,"ion-skeleton-text",11)(5,"ion-skeleton-text",12),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(6,t,7,0,"div",13),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&o&&(e.\u0275\u0275advance(6),e.\u0275\u0275property("ngForOf",e.\u0275\u0275pureFunction0(1,me)))}let B=(()=>{class o{constructor(n){this.helperService=n,this.skeleton=!1,this.userSelect=new e.EventEmitter}ngOnInit(){}}return o.\u0275fac=function(n){return new(n||o)(e.\u0275\u0275directiveInject(M.W_))},o.\u0275cmp=e.\u0275\u0275defineComponent({type:o,selectors:[["app-card-founduser-lg"]],inputs:{foundUser:"foundUser",skeleton:"skeleton",typeofuser:"typeofuser"},outputs:{userSelect:"userSelect"},decls:2,vars:2,consts:[[4,"ngIf"],[1,"result","ion-activatable",3,"click"],[3,"firstName","lastName","thumbnailImage","size"],[1,"user-info"],[1,"full-name"],["type","bounded"],["class","company",4,"ngIf"],[1,"company"],[1,"results"],[1,"sub-title"],[1,"ion-text-center",2,"display","flex","flex-direction","column","align-items","center"],["animated","",2,"width","100%"],["animated","",2,"width","60%"],["class","result",4,"ngFor","ngForOf"],[1,"result"],["animated","",1,"avatar-skeleton"],["animated","",2,"width","85%"],["animated","",2,"width","50%"]],template:function(n,r){1&n&&(e.\u0275\u0275template(0,N,9,7,"ng-container",0),e.\u0275\u0275template(1,J,7,2,"ng-container",0)),2&n&&(e.\u0275\u0275property("ngIf",r.foundUser&&!r.skeleton),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",r.skeleton))},dependencies:[x.NgForOf,x.NgIf,_.IonRippleEffect,_.IonSkeletonText,U.A],styles:[".avatar-skeleton[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:50%;flex-shrink:0}.result[_ngcontent-%COMP%]{position:relative;margin:10px 0;border:1px solid #eee;border-radius:4px;padding:6px 10px;display:flex;align-items:center;gap:10px}.result[_ngcontent-%COMP%] app-avatar[_ngcontent-%COMP%]{flex-shrink:0}.result[_ngcontent-%COMP%] .user-info[_ngcontent-%COMP%]{flex:1;min-width:0}.result[_ngcontent-%COMP%] .company[_ngcontent-%COMP%]{color:#aaa;font-size:.8em}.results[_ngcontent-%COMP%]{padding:1em;overflow:scroll;height:100%}.results[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:initial!important;font-weight:700;text-align:left}.results[_ngcontent-%COMP%] .sub-title[_ngcontent-%COMP%]{margin:10px 0;font-size:.9em;background-color:#eee;border:1px solid #ccc;padding:8px;border-radius:2px;text-align:center}"]}),o})();var u=C(24006),A=C(99826);function R(o,l){if(1&o&&(e.\u0275\u0275elementStart(0,"div",16),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&o){const n=l.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",n.message," ")}}function Y(o,l){if(1&o&&(e.\u0275\u0275elementStart(0,"div",14),e.\u0275\u0275template(1,R,2,1,"div",15),e.\u0275\u0275elementEnd()),2&o){const n=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",n.getFieldInputValidationErrors("reason"))}}let H=(()=>{class o{constructor(n,r,s,S,O,E){this.ngZoneService=n,this.createLogisticEventService=r,this.formBuilder=s,this.modalController=S,this.notificatorService=O,this.translateConfigService=E,this.reasonFormErrors=[],this.onClose=()=>{this.modalController.dismiss({reason:null})},this.onSubmit=()=>{const P=this.reasonForm.controls.reason.value,v=this.validateInput({reason:P});if(v.length){this.setValidationErrors(v);const g={title:this.translateConfigService.translate("TOAST_INVALID_DATA_TITLE"),message:this.translateConfigService.translate("TOAST_INVALID_DATA_NESSAGE"),type:"error"};this.notificatorService.notify(g)}else this.modalController.dismiss({reason:P})},this.validateInput=P=>{const p=[],v=this.validateReasonInput(P);return v&&p.push(v),p},this.validateReasonInput=P=>!P.reason||P.reason.length<1?{message:this.translateConfigService.translate("MD_JUSTIFY_INVITE_WITOUT_LOCATOR_JUSTIFICATION_PROVIDED"),field:"reason"}:null,this.setValidationErrors=P=>{this.reasonFormErrors=P},this.thereIsFieldInputValidationErrors=P=>this.reasonFormErrors.find(p=>p.field===P),this.getFieldInputValidationErrors=P=>this.reasonFormErrors.filter(p=>p.field===P)}ngOnInit(){this.reasonForm=this.formBuilder.group({reason:[""]})}}return o.\u0275fac=function(n){return new(n||o)(e.\u0275\u0275directiveInject(M.zf),e.\u0275\u0275directiveInject(M.V),e.\u0275\u0275directiveInject(u.UntypedFormBuilder),e.\u0275\u0275directiveInject(_.ModalController),e.\u0275\u0275directiveInject(M.V6),e.\u0275\u0275directiveInject(M.wK))},o.\u0275cmp=e.\u0275\u0275defineComponent({type:o,selectors:[["app-justify-self-invite-without-locator"]],decls:25,vars:15,consts:[[3,"ngClass"],[1,"content"],[1,"modal-container"],[1,"modal-title"],[1,"button-holder"],[1,"back",3,"click"],[1,"title"],[1,"modal-body"],[3,"formGroup","ngSubmit"],[1,"input-holder"],["maxlength","55","id","reason","formControlName","reason",3,"placeholder"],["class","errors",4,"ngIf"],[1,"modal-footer"],["type","submit",3,"click"],[1,"errors"],["class","error",4,"ngFor","ngForOf"],[1,"error"]],template:function(n,r){1&n&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"button",5),e.\u0275\u0275listener("click",function(){return r.onClose()}),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(8,"div",6),e.\u0275\u0275text(9),e.\u0275\u0275pipe(10,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(11,"div",7)(12,"ion-row")(13,"ion-col")(14,"form",8),e.\u0275\u0275listener("ngSubmit",function(){return r.onSubmit()}),e.\u0275\u0275elementStart(15,"div",9)(16,"textarea",10),e.\u0275\u0275pipe(17,"translate"),e.\u0275\u0275text(18," "),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(19,Y,2,1,"div",11),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(20,"div",12)(21,"div",4)(22,"button",13),e.\u0275\u0275listener("click",function(){return r.onSubmit()}),e.\u0275\u0275text(23),e.\u0275\u0275pipe(24,"translate"),e.\u0275\u0275elementEnd()()()()()()),2&n&&(e.\u0275\u0275property("ngClass","selector"),e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(7,7,"BTN_BACK")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(10,9,"MD_JUSTIFY_INVITE_WITOUT_LOCATOR_TITLE")),e.\u0275\u0275advance(5),e.\u0275\u0275property("formGroup",r.reasonForm),e.\u0275\u0275advance(2),e.\u0275\u0275property("placeholder",e.\u0275\u0275pipeBind1(17,11,"MD_JUSTIFY_INVITE_WITOUT_LOCATOR_INPUT")),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",r.thereIsFieldInputValidationErrors("reason")),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(24,13,"MD_JUSTIFY_INVITE_WITOUT_LOCATOR_BTN_CONFIRM_REFUSAL")," "))},dependencies:[x.NgClass,x.NgForOf,x.NgIf,_.IonCol,_.IonRow,u.\u0275NgNoValidate,u.DefaultValueAccessor,u.NgControlStatus,u.NgControlStatusGroup,u.MaxLengthValidator,u.FormGroupDirective,u.FormControlName,A.X$],styles:[".selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{height:100vh}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%]{box-shadow:0 -6px 3px rgba(0,0,0,.1);margin-top:0;transition:margin-top 1s ease;background-color:#fff;height:100%;overflow:scroll}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{display:flex;padding-top:1em;justify-content:center;align-items:center;flex-direction:column}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:initial!important;font-weight:700;text-align:center;margin:32px 32px 8px}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%]{justify-content:center;margin:0}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%]{margin-top:8px;display:flex;justify-content:center;align-items:center;flex-direction:column}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%]{margin-top:18px}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%]{margin-top:0}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid #eee;border-radius:8px;color:#656768;width:100%;padding:8px;margin-top:18px}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus{border:1px solid #656768;outline:none}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}"]}),o})();function $(o,l){if(1&o&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",16)(2,"div",17),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"div",18)(6,"div",19),e.\u0275\u0275text(7),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementContainerEnd()),2&o){const n=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,3,"MD_JUSTIFY_LG_INVITE_WITOUT_LOCATOR_DESTINATION")," "),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate2("",null==n.data?null:n.data.firstName," ",null==n.data?null:n.data.lastName,"")}}function K(o,l){if(1&o&&(e.\u0275\u0275elementStart(0,"div",22),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&o){const n=l.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",n.message," ")}}function X(o,l){if(1&o&&(e.\u0275\u0275elementStart(0,"div",20),e.\u0275\u0275template(1,K,2,1,"div",21),e.\u0275\u0275elementEnd()),2&o){const n=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",n.getFieldInputValidationErrors("reason"))}}const j=function(o){return{"no-margim":o}};let Z=(()=>{class o{constructor(n,r,s,S){this.formBuilder=n,this.modalController=r,this.notificatorService=s,this.translateConfigService=S,this.data=null,this.reasonFormErrors=[],this.onClose=()=>{this.modalController.dismiss({reason:null})},this.onSubmit=()=>{const O=this.reasonForm.controls.reason.value,P=this.validateInput({reason:O});if(P.length){this.setValidationErrors(P);const p={title:this.translateConfigService.translate("TOAST_INVALID_DATA_TITLE"),message:this.translateConfigService.translate("TOAST_INVALID_DATA_NESSAGE"),type:"error"};this.notificatorService.notify(p)}else this.modalController.dismiss({reason:O})},this.validateInput=O=>{const E=[],P=this.validateReasonInput(O);return P&&E.push(P),E},this.validateReasonInput=O=>!O.reason||O.reason.length<1?{message:this.translateConfigService.translate("MD_JUSTIFY_LG_INVITE_WITOUT_LOCATOR_JUSTIFICATION_PROVIDED"),field:"reason"}:null,this.setValidationErrors=O=>{this.reasonFormErrors=O},this.thereIsFieldInputValidationErrors=O=>this.reasonFormErrors.find(E=>E.field===O),this.getFieldInputValidationErrors=O=>this.reasonFormErrors.filter(E=>E.field===O)}ngOnInit(){this.reasonForm=this.formBuilder.group({reason:[""]})}}return o.\u0275fac=function(n){return new(n||o)(e.\u0275\u0275directiveInject(u.UntypedFormBuilder),e.\u0275\u0275directiveInject(_.ModalController),e.\u0275\u0275directiveInject(M.V6),e.\u0275\u0275directiveInject(M.wK))},o.\u0275cmp=e.\u0275\u0275defineComponent({type:o,selectors:[["app-logistic-justify-self-invite-with-locator"]],inputs:{data:"data"},decls:28,vars:23,consts:[[3,"ngClass"],[1,"content"],[1,"modal-container"],[1,"modal-title"],[1,"button-holder"],[1,"back",3,"click"],[1,"title"],[1,"modal-body"],[4,"ngIf"],[3,"formGroup","ngSubmit"],[1,"input-holder",3,"ngClass"],["maxlength","55","id","reason","formControlName","reason",3,"ngClass","placeholder"],[1,"count"],["class","errors",4,"ngIf"],[1,"modal-footer"],["type","submit",3,"click"],[1,"destination-holder",2,"margin-top","0","padding","0 2.5em"],[1,"destination-label"],[1,"destination-box"],[1,"name"],[1,"errors"],["class","error",4,"ngFor","ngForOf"],[1,"error"]],template:function(n,r){if(1&n&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"button",5),e.\u0275\u0275listener("click",function(){return r.onClose()}),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(8,"div",6),e.\u0275\u0275text(9),e.\u0275\u0275pipe(10,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(11,"div",7),e.\u0275\u0275template(12,$,8,5,"ng-container",8),e.\u0275\u0275elementStart(13,"ion-row")(14,"ion-col")(15,"form",9),e.\u0275\u0275listener("ngSubmit",function(){return r.onSubmit()}),e.\u0275\u0275elementStart(16,"div",10)(17,"textarea",11),e.\u0275\u0275pipe(18,"translate"),e.\u0275\u0275text(19," "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(20,"div",12),e.\u0275\u0275text(21),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(22,X,2,1,"div",13),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(23,"div",14)(24,"div",4)(25,"button",15),e.\u0275\u0275listener("click",function(){return r.onSubmit()}),e.\u0275\u0275text(26),e.\u0275\u0275pipe(27,"translate"),e.\u0275\u0275elementEnd()()()()()()),2&n){let s;e.\u0275\u0275property("ngClass","selector"),e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(7,11,"BTN_BACK")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(10,13,"MD_JUSTIFY_LG_INVITE_WITOUT_LOCATOR_TITLE")),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",null==r.data?null:r.data.event),e.\u0275\u0275advance(3),e.\u0275\u0275property("formGroup",r.reasonForm),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(19,j,null!=r.data&&r.data.event?"no-margim":"")),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(21,j,null!=r.data&&r.data.event?"no-margim":""))("placeholder",e.\u0275\u0275pipeBind1(18,15,"MD_JUSTIFY_LG_INVITE_WITOUT_LOCATOR_INPUT")),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1("",(null==r.reasonForm||null==(s=r.reasonForm.get("reason"))||null==s.value?null:s.value.length)||0,"/55"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",r.thereIsFieldInputValidationErrors("reason")),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(27,17,"MD_JUSTIFY_LG_INVITE_WITOUT_LOCATOR_BTN_CONFIRM_REFUSAL")," ")}},dependencies:[x.NgClass,x.NgForOf,x.NgIf,_.IonCol,_.IonRow,u.\u0275NgNoValidate,u.DefaultValueAccessor,u.NgControlStatus,u.NgControlStatusGroup,u.MaxLengthValidator,u.FormGroupDirective,u.FormControlName,A.X$],styles:["ion-content.selector.ios[_ngcontent-%COMP%]{--offset-top: 0px !important}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{height:auto;max-height:100%}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%]{box-shadow:0 -6px 3px rgba(0,0,0,.1);margin-top:0;transition:margin-top 1s ease;background-color:#fff;height:auto;max-height:100%;overflow-y:auto}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{display:flex;padding-top:1em;justify-content:center;align-items:center;flex-direction:column}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:initial!important;font-weight:700;text-align:center;margin:32px 32px 8px}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%]{justify-content:center;margin:0}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%]{margin-top:8px;display:flex;justify-content:center;align-items:center;flex-direction:column}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%]{margin-top:18px}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%]{margin-top:0}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .destination-label[_ngcontent-%COMP%]{font-weight:500;font-size:14px;color:#333;width:100%;text-align:left;margin-bottom:6px}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .destination-box[_ngcontent-%COMP%]{background:#f5f5f5;border:1px solid #e0e0e0;border-radius:4px;padding:8px;width:100%;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .destination-box[_ngcontent-%COMP%] .photo[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:auto}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .destination-box[_ngcontent-%COMP%] .photo[_ngcontent-%COMP%] ion-avatar[_ngcontent-%COMP%]{width:48px;height:48px}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .destination-box[_ngcontent-%COMP%] .photo[_ngcontent-%COMP%] .initials.escort[_ngcontent-%COMP%]{width:48px!important;height:48px!important;min-width:48px!important;border-radius:50%;display:flex;justify-content:center;align-items:center;background-color:#eee}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .destination-box[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{text-align:left;font-size:12px;color:#666;width:auto}@media (max-width: 480px){.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .destination-box[_ngcontent-%COMP%]{padding:6px;gap:6px}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .destination-label[_ngcontent-%COMP%]{font-size:13px}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .destination-box[_ngcontent-%COMP%] .photo[_ngcontent-%COMP%] ion-avatar[_ngcontent-%COMP%], .selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .destination-box[_ngcontent-%COMP%] .photo[_ngcontent-%COMP%] .initials.escort[_ngcontent-%COMP%]{width:44px;height:44px;min-width:44px}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .destination-box[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{font-size:12px}}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .count[_ngcontent-%COMP%]{align-self:flex-start;font-size:11px;color:#bbb;margin-top:2px}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] textarea.no-margim[_ngcontent-%COMP%]{margin-top:0}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid #eee;border-radius:8px;color:#656768;width:100%;padding:8px;margin-top:18px}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus{border:1px solid #656768;outline:none}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%]{margin-bottom:1em;display:flex;justify-content:center;padding:1em}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%]{text-align:center;margin:auto;width:100%;display:flex;justify-content:center}"]}),o})();function Q(o,l){if(1&o){const n=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"ion-card",12),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(n);const s=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(s.createNewConventional())}),e.\u0275\u0275elementStart(1,"ion-label")(2,"h6",13),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"p",14),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd()()()}2&o&&(e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(4,2,"MD_EVENT_TYPE_VISITOR")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(7,4,"MD_EVENT_TYPE_VISITOR_NEW_EVENT")," "))}function q(o,l){if(1&o){const n=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"ion-card",12),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(n);const s=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(s.createNewEntry())}),e.\u0275\u0275elementStart(1,"ion-label")(2,"h6",13),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"p",14),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd()()()}2&o&&(e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,2,"MD_EVENT_TYPE_CARGO_ARRIVAL")," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(7,4,"MD_EVENT_TYPE_CARGO_ARRIVAL_NEW")," "))}function ee(o,l){if(1&o){const n=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"ion-card",12),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(n);const s=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(s.createNewExit())}),e.\u0275\u0275elementStart(1,"ion-label")(2,"h6",13),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"p",14),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd()()()}2&o&&(e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(4,2,"MD_EVENT_TYPE_CARGO_DEPARTURE")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(7,4,"MD_EVENT_TYPE_CARGO_DEPARTURE_NEW")," "))}let te=(()=>{class o{constructor(n){this.modalController=n,this.availableTypes=[],this.createNewConventional=()=>{this.modalController.dismiss({type:"CONVENTIONAL"})},this.createNewEntry=()=>{this.modalController.dismiss({type:"NEW_ENTRY"})},this.createEntryFromExit=()=>{this.modalController.dismiss({type:"CLONE_EXIT"})},this.createNewExit=()=>{this.modalController.dismiss({type:"NEW_EXIT"})},this.createExitFromEntry=()=>{this.modalController.dismiss({type:"CLONE_ENTRY"})},this.back=()=>{this.modalController.dismiss(null)}}}return o.\u0275fac=function(n){return new(n||o)(e.\u0275\u0275directiveInject(_.ModalController))},o.\u0275cmp=e.\u0275\u0275defineComponent({type:o,selectors:[["app-select-logistic-event-type-modal"]],inputs:{availableTypes:"availableTypes"},decls:18,vars:10,consts:[[3,"ngClass"],[1,"content"],[1,"background"],[1,"modal-container"],[1,"modal-title"],["tabindex","1"],[1,"modal-body"],[1,"types"],["lines","none",2,"padding","0 2px"],["button","","class","type ion-no-padding",3,"click",4,"ngIf"],[1,"modal-footer"],["mode","ios","fill","clear",1,"reject",3,"click"],["button","",1,"type","ion-no-padding",3,"click"],[1,"name"],[1,"description","ion-text-wrap"]],template:function(n,r){1&n&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1),e.\u0275\u0275element(2,"div",2),e.\u0275\u0275elementStart(3,"div",3)(4,"div",4)(5,"h6",5),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(8,"div",6)(9,"div",7)(10,"ion-list",8),e.\u0275\u0275template(11,Q,8,6,"ion-card",9),e.\u0275\u0275template(12,q,8,6,"ion-card",9),e.\u0275\u0275template(13,ee,8,6,"ion-card",9),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(14,"div",10)(15,"ion-button",11),e.\u0275\u0275listener("click",function(){return r.back()}),e.\u0275\u0275text(16),e.\u0275\u0275pipe(17,"translate"),e.\u0275\u0275elementEnd()()()()()),2&n&&(e.\u0275\u0275property("ngClass","select-logistic-event-type-modal"),e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(7,6,"MD_EVENT_TYPE_TITLE")),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngIf",r.availableTypes.includes("CONVENTIONAL")),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",r.availableTypes.includes("ENTRY")),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",r.availableTypes.includes("EXIT")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(17,8,"BTN_BACK")," "))},dependencies:[x.NgClass,x.NgIf,_.IonButton,_.IonCard,_.IonLabel,_.IonList,A.X$],styles:[".select-logistic-event-type-modal[_ngcontent-%COMP%]{width:100vw;transition:height .5s ease-in-out;overflow:hidden;z-index:1000;height:100vh}.select-logistic-event-type-modal[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .select-logistic-event-type-modal[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .select-logistic-event-type-modal[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .select-logistic-event-type-modal[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .select-logistic-event-type-modal[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .select-logistic-event-type-modal[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{all:unset!important}.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{height:100vh;position:absolute;width:100vw;top:0;color:#383a3e}.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .background[_ngcontent-%COMP%]{position:absolute;height:100vh;width:100vw;background-color:#333;opacity:.3;top:0;transition:opacity .5s ease-out}.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%]{height:60vh;background-color:#fff;width:86vw;margin:auto;border-radius:8px;padding:24px;box-shadow:2px 2px rgba(0,0,0,.1);position:relative;margin-top:20vh;transition:margin-top 1s ease}.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{text-align:center;font-weight:500;position:absolute;top:0;height:3.5em;line-height:3.5em;width:calc(100% - 48px);background-color:#fff}.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{position:absolute;height:calc(100% - 7em);width:calc(100% - 48px);top:3.5em;overflow-y:scroll;text-align:justify;font-size:.9em;background-color:#fff}.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] ion-card[_ngcontent-%COMP%]{margin:0;box-shadow:none}.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .type[_ngcontent-%COMP%]{padding:8px 12px;border:1px solid #eee;border-radius:4px;margin-bottom:8px}.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .type[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{font-weight:700}.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .type[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{color:#656768}.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%]{position:absolute;bottom:0;height:3.5em;width:calc(100% - 48px);line-height:3.5em;display:flex;justify-content:center;align-items:center;overflow:hidden;background-color:#fff}.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{font-size:1em;background-color:#fff;color:#656768;padding:.75em 1.25em;border-radius:32px;transition:background-color .1s ease-out;height:36px}.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]:active{background-color:#eee;color:#656768;transition:background-color .1s ease-out}.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] ion-button.accept[_ngcontent-%COMP%]{color:#0ec254}.select-logistic-event-type-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] ion-button.accept[_ngcontent-%COMP%]:active{background-color:#0ec254;color:#fff;transition:background-color .1s ease-out}"]}),o})();var G=C(15861),z=C(24889);function ne(o,l){if(1&o){const n=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"app-card-founduser-lg",23),e.\u0275\u0275listener("userSelect",function(){const S=e.\u0275\u0275restoreView(n).$implicit,O=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(O.onUserSelect(S))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}if(2&o){const n=l.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("foundUser",n)}}function oe(o,l){if(1&o&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,ne,2,1,"ng-container",22),e.\u0275\u0275elementContainerEnd()),2&o){const n=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",n.foundUsers)}}function ie(o,l){if(1&o&&(e.\u0275\u0275elementStart(0,"div",20)(1,"div",7),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",21),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(7,oe,2,1,"ng-container",16),e.\u0275\u0275elementEnd()),2&o){const n=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(3,3,"MD_ASSISTANT_USERS_FOUND")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(6,5,"MD_ASSISTANT_TAP_ITEM")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",n.isLoading)}}function re(o,l){1&o&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275element(1,"app-card-founduser-lg",24),e.\u0275\u0275elementContainerEnd()),2&o&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("skeleton",!0))}let ae=(()=>{class o{constructor(n,r,s,S,O,E,P,p){var v=this;this.ngZoneService=n,this.createLogisticEventService=r,this.formBuilder=s,this.modalController=S,this.changeDetectorRef=O,this.helperService=E,this.logService=P,this.userPhotoService=p,this.page=0,this.size=15,this.onClose=g=>{this.modalController.dismiss(g)},this.onUserSelect=g=>{g.fullName=this.helperService.normalizeName(g.firstName,g.lastName),setTimeout(()=>{this.onClose(g)},750)},this.onCreateGuest=(0,G.Z)(function*(){const g=yield v.modalController.create({component:z._y});g.onDidDismiss().then(v.onModalDismissCallback),yield g.present()}),this.onModalDismissCallback=g=>{g&&g.data&&this.onUserSelect(g.data)},this.onUpdateContactInfoSuccessResponse=g=>{console.log("onUpdateContactInfoSuccessResponse"),console.log("contact:",g)},this.onUpdateContactInfoErrorResponse=g=>{console.log("onUpdateContactInfoErrorResponse"),console.log("error:",g)},this.onInputChange=g=>{const{value:D}=g.target;this.infiniteScroll.disabled=!1,this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{D.length>1&&(this.foundUsers=[],this.page=0),this.doSearch(D)},750)},this.doSearch=g=>{const D={searchTerm:g=g.trim()};this.dataTerms=D,this.createLogisticEventService.getCompanyAssistants(D,this.page,this.size).then(this.handleGetGuestsSuccessResponse).catch(this.handleGetGuestsErrorResponse).finally(()=>this.isLoading=!0)},this.handleGetGuestsSuccessResponse=g=>{console.log("handleGetGuestsSuccessResponse"),console.log("response:",g),this.setFoundUsers(g),this.userPhotoService.enrichUsersWithPhotos(g)},this.handleGetGuestsErrorResponse=g=>{this.logService.logError("http::handleGetGuestsErrorResponse","",g),console.log("handleGetGuestsErrorResponse"),console.log("error:",g)},this.setFoundUsers=g=>{this.foundUsers=g,this.changeDetectorRef.detectChanges(),scrollBy(0,1)}}ngOnInit(){this.foundUsers=[],this.searchTimeout=null,this.userForm=this.formBuilder.group({searchTerm:[""]})}ionViewWillEnter(){this.onInputChange({target:{value:""}})}loadData(n){this.page+=1,this.loadMore(this.page,n)}loadMore(n,r){this.createLogisticEventService.getCompanyDrivers(this.dataTerms,n,this.size,!!r).then(s=>{this.isLoading=!0,s.length>0?(this.handleGetGuestsSuccessResponse(this.foundUsers.concat(s)),this.size>0&&r.target.complete()):r.target.disabled=!0}).catch(s=>{this.handleGetGuestsErrorResponse(s),r.target.complete(),r.target.disabled=!0})}}return o.\u0275fac=function(n){return new(n||o)(e.\u0275\u0275directiveInject(M.zf),e.\u0275\u0275directiveInject(M.V),e.\u0275\u0275directiveInject(u.UntypedFormBuilder),e.\u0275\u0275directiveInject(_.ModalController),e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(M.W_),e.\u0275\u0275directiveInject(M.$V),e.\u0275\u0275directiveInject(M.IR))},o.\u0275cmp=e.\u0275\u0275defineComponent({type:o,selectors:[["app-selector-for-assistants-to-add-to-event"]],viewQuery:function(n,r){if(1&n&&e.\u0275\u0275viewQuery(_.IonInfiniteScroll,5),2&n){let s;e.\u0275\u0275queryRefresh(s=e.\u0275\u0275loadQuery())&&(r.infiniteScroll=s.first)}},decls:35,vars:16,consts:[[1,"fix-header-modal-ios","ion-no-border"],[3,"ngClass"],[1,"content"],[1,"modal-container"],[1,"modal-title"],[1,"button-holder"],[1,"back",3,"click"],[1,"title"],[1,"modal-body"],[3,"formGroup"],[1,"input-holder"],[1,"upper-options"],["id","name","type","text","formControlName","searchTerm",3,"placeholder","keyup"],[1,"new-holder"],["type","button",3,"click"],["class","results",4,"ngIf"],[4,"ngIf"],[1,"modal-footer"],["threshold","15%","position","bottom",3,"ionInfinite"],["IonInfiniteScroll",""],[1,"results"],[1,"sub-title"],[4,"ngFor","ngForOf"],["typeofuser","assistant",3,"foundUser","userSelect"],[3,"skeleton"]],template:function(n,r){1&n&&(e.\u0275\u0275elementStart(0,"ion-header",0)(1,"ion-toolbar"),e.\u0275\u0275element(2,"ion-title"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(3,"ion-content",1)(4,"div",2)(5,"div",3)(6,"div",4)(7,"div",5)(8,"button",6),e.\u0275\u0275listener("click",function(){return r.onClose()}),e.\u0275\u0275text(9),e.\u0275\u0275pipe(10,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(11,"div",7),e.\u0275\u0275text(12),e.\u0275\u0275pipe(13,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(14,"div",8)(15,"ion-row")(16,"ion-col")(17,"form",9)(18,"div",10)(19,"div",11)(20,"input",12),e.\u0275\u0275listener("keyup",function(S){return r.onInputChange(S)}),e.\u0275\u0275pipe(21,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(22,"div",13)(23,"div",5)(24,"button",14),e.\u0275\u0275listener("click",function(){return r.onCreateGuest()}),e.\u0275\u0275text(25),e.\u0275\u0275pipe(26,"translate"),e.\u0275\u0275elementEnd()()()()()()()(),e.\u0275\u0275elementStart(27,"ion-row")(28,"ion-col"),e.\u0275\u0275template(29,ie,8,7,"div",15),e.\u0275\u0275template(30,re,2,1,"ng-container",16),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275element(31,"div",17),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(32,"ion-infinite-scroll",18,19),e.\u0275\u0275listener("ionInfinite",function(S){return r.loadData(S)}),e.\u0275\u0275element(34,"ion-infinite-scroll-content"),e.\u0275\u0275elementEnd()()),2&n&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("ngClass","selector"),e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(10,8,"MD_ASSISTANT_BTN_CLOSE")," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(13,10,"MD_ASSISTANT_TITLE")),e.\u0275\u0275advance(5),e.\u0275\u0275property("formGroup",r.userForm),e.\u0275\u0275advance(3),e.\u0275\u0275property("placeholder",e.\u0275\u0275pipeBind1(21,12,"MD_ASSISTANT_INPUT")),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(26,14,"MD_ASSISTANT_BTN_NEW")," "),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngIf",!!r.foundUsers.length),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!r.isLoading))},dependencies:[x.NgClass,x.NgForOf,x.NgIf,_.IonCol,_.IonContent,_.IonHeader,_.IonInfiniteScroll,_.IonInfiniteScrollContent,_.IonRow,_.IonTitle,_.IonToolbar,u.\u0275NgNoValidate,u.DefaultValueAccessor,u.NgControlStatus,u.NgControlStatusGroup,u.FormGroupDirective,u.FormControlName,B,A.X$],styles:["ion-content.selector.ios[_ngcontent-%COMP%]{--offset-top: 0px !important}ion-content.selector.ios[_ngcontent-%COMP%] ion-fab.fab[_ngcontent-%COMP%]{position:fixed;margin-top:10px}ion-header.fix-header-modal-ios[_ngcontent-%COMP%] ion-toolbar[_ngcontent-%COMP%]{height:0px!important;--background: #fff}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%]{box-shadow:0 -6px 3px rgba(0,0,0,.1);margin-top:0;transition:margin-top 1s ease;background-color:#fff;height:100%;overflow:scroll}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{display:flex;padding-top:1.5em;justify-content:center;align-items:center;flex-direction:column}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:initial!important;font-weight:700;text-align:center;margin:32px 32px 8px}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%]{justify-content:center;margin:0}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%]{margin-top:8px;display:flex;justify-content:center;align-items:center;flex-direction:column;width:100%}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%]{margin-top:18px}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%]{margin-top:0}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .bottom-options[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .bottom-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%]{margin-top:18px}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .bottom-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%]{margin-top:0;width:100%}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%]{overflow:scroll;height:100%;padding:1em}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:initial!important;width:80%;margin:0 10% 2px;font-weight:700;text-align:center}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .sub-title[_ngcontent-%COMP%]{margin:10px 0;font-size:.9em;background-color:#eee;border:1px solid #ccc;padding:8px;border-radius:2px;text-align:center}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .result[_ngcontent-%COMP%]{width:95%;margin:10px;border:1px solid #eee;border-radius:4px;padding:10px}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .result[_ngcontent-%COMP%] .company[_ngcontent-%COMP%]{color:#aaa}"]}),o})();function ce(o,l){if(1&o){const n=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"app-card-founduser-lg",24),e.\u0275\u0275listener("userSelect",function(){const S=e.\u0275\u0275restoreView(n).$implicit,O=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(O.onUserSelect(S))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}if(2&o){const n=l.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("foundUser",n)}}function _e(o,l){if(1&o&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,ce,2,1,"ng-container",23),e.\u0275\u0275elementContainerEnd()),2&o){const n=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",n.foundUsers)}}function se(o,l){if(1&o&&(e.\u0275\u0275elementStart(0,"div",21)(1,"div",22),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(4,_e,2,1,"ng-container",17),e.\u0275\u0275elementEnd()),2&o){const n=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(3,2,"MD_DRIVER_SUBTITLE")),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",n.isLoading)}}function le(o,l){1&o&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275element(1,"app-card-founduser-lg",25),e.\u0275\u0275elementContainerEnd()),2&o&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("skeleton",!0))}let d=(()=>{class o{constructor(n,r,s,S,O,E,P){var p=this;this.createLogisticEventService=n,this.formBuilder=r,this.modalController=s,this.changeDetectorRef=S,this.helperService=O,this.logService=E,this.userPhotoService=P,this.isLoading=!1,this.page=0,this.size=15,this.onClose=v=>{this.modalController.dismiss(v)},this.onUserSelect=v=>{v.fullName=this.helperService.normalizeName(v.firstName,v.lastName),setTimeout(()=>{this.onClose(v)},750)},this.onCreateDriver=(0,G.Z)(function*(){const v=yield p.modalController.create({component:z.v_});v.onDidDismiss().then(g=>{p.onModalDismissCallback(g)}),yield v.present()}),this.onInputChange=v=>{const{value:g}=v.target;this.infiniteScroll.disabled=!1,this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{g.length>1&&(this.foundUsers=[],this.page=0),this.doSearch(g)},750)},this.doSearch=v=>{const g={searchTerm:v=v.trim()};this.dataTerms=g,this.createLogisticEventService.getCompanyDrivers(g,this.page,this.size).then(this.handleGetCompanyDriversSuccessResponse).catch(this.handleGetgetCompanyDriversErrorResponse).finally(()=>this.isLoading=!0)},this.handleGetCompanyDriversSuccessResponse=v=>{console.log("handleGetCompanyDriversSuccessResponse"),console.log("response:",v),this.setFoundUsers(v),this.userPhotoService.enrichUsersWithPhotos(v)},this.handleGetgetCompanyDriversErrorResponse=v=>{console.log("handleGetgetCompanyDriversErrorResponse"),this.logService.logError("http::handleGetgetCompanyDriversErrorResponse","",v),console.log("error:",v)},this.setFoundUsers=v=>{this.foundUsers=v,console.log("foundUsers",v),this.changeDetectorRef.detectChanges(),scrollBy(0,1)}}ngOnInit(){this.foundUsers=[],this.searchTimeout=null,this.userForm=this.formBuilder.group({searchTerm:[""]})}ionViewWillEnter(){this.onInputChange({target:{value:""}})}onModalDismissCallback(n){n&&n.data&&this.onUserSelect(n.data)}loadData(n){this.page+=1,this.loadMore(this.page,n)}loadMore(n,r){this.createLogisticEventService.getCompanyDrivers(this.dataTerms,n,this.size,!!r).then(s=>{this.isLoading=!0,s.length>0?(this.handleGetCompanyDriversSuccessResponse(this.foundUsers.concat(s)),this.size>0&&r.target.complete()):r.target.disabled=!0}).catch(s=>{this.handleGetCompanyDriversSuccessResponse(s),r.target.complete(),r.target.disabled=!0})}}return o.\u0275fac=function(n){return new(n||o)(e.\u0275\u0275directiveInject(M.V),e.\u0275\u0275directiveInject(u.UntypedFormBuilder),e.\u0275\u0275directiveInject(_.ModalController),e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(M.W_),e.\u0275\u0275directiveInject(M.$V),e.\u0275\u0275directiveInject(M.IR))},o.\u0275cmp=e.\u0275\u0275defineComponent({type:o,selectors:[["app-selector-for-driver-to-add-to-event"]],viewQuery:function(n,r){if(1&n&&e.\u0275\u0275viewQuery(_.IonInfiniteScroll,5),2&n){let s;e.\u0275\u0275queryRefresh(s=e.\u0275\u0275loadQuery())&&(r.infiniteScroll=s.first)}},decls:32,vars:10,consts:[[1,"fix-header-modal-ios","ion-no-border"],[3,"ngClass"],["horizontal","center","slot","fixed",1,"fab",3,"click"],["color","medium"],["name","close"],[1,"content"],[1,"modal-container"],[1,"modal-title"],[1,"button-holder"],[1,"modal-body"],[3,"formGroup"],[1,"input-holder"],[1,"upper-options"],["id","name","type","text","formControlName","searchTerm",2,"height","47px",3,"placeholder","keyup"],[1,"new-holder"],["type","button",3,"click"],["class","results",4,"ngIf"],[4,"ngIf"],[1,"modal-footer"],["threshold","15%","position","bottom",3,"ionInfinite"],["IonInfiniteScroll",""],[1,"results"],[1,"sub-title"],[4,"ngFor","ngForOf"],["typeofuser","driver",3,"foundUser","userSelect"],[3,"skeleton"]],template:function(n,r){1&n&&(e.\u0275\u0275elementStart(0,"ion-header",0)(1,"ion-toolbar"),e.\u0275\u0275element(2,"ion-title"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(3,"ion-content",1)(4,"ion-fab",2),e.\u0275\u0275listener("click",function(){return r.onClose()}),e.\u0275\u0275elementStart(5,"ion-fab-button",3),e.\u0275\u0275element(6,"ion-icon",4),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(7,"div",5)(8,"div",6)(9,"div",7),e.\u0275\u0275element(10,"div",8),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"div",9)(12,"ion-row")(13,"ion-col")(14,"form",10)(15,"div",11)(16,"div",12)(17,"input",13),e.\u0275\u0275listener("keyup",function(S){return r.onInputChange(S)}),e.\u0275\u0275pipe(18,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(19,"div",14)(20,"div",8)(21,"button",15),e.\u0275\u0275listener("click",function(){return r.onCreateDriver()}),e.\u0275\u0275text(22),e.\u0275\u0275pipe(23,"translate"),e.\u0275\u0275elementEnd()()()()()()()(),e.\u0275\u0275elementStart(24,"ion-row")(25,"ion-col"),e.\u0275\u0275template(26,se,5,4,"div",16),e.\u0275\u0275template(27,le,2,1,"ng-container",17),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275element(28,"div",18),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(29,"ion-infinite-scroll",19,20),e.\u0275\u0275listener("ionInfinite",function(S){return r.loadData(S)}),e.\u0275\u0275element(31,"ion-infinite-scroll-content"),e.\u0275\u0275elementEnd()()),2&n&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("ngClass","selector"),e.\u0275\u0275advance(11),e.\u0275\u0275property("formGroup",r.userForm),e.\u0275\u0275advance(3),e.\u0275\u0275property("placeholder",e.\u0275\u0275pipeBind1(18,6,"MD_DRIVER_INPUT")),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(23,8,"MD_DRIVER_BTN_NEW")," "),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngIf",!!r.foundUsers.length),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!r.isLoading))},dependencies:[x.NgClass,x.NgForOf,x.NgIf,_.IonCol,_.IonContent,_.IonFab,_.IonFabButton,_.IonHeader,_.IonIcon,_.IonInfiniteScroll,_.IonInfiniteScrollContent,_.IonRow,_.IonTitle,_.IonToolbar,u.\u0275NgNoValidate,u.DefaultValueAccessor,u.NgControlStatus,u.NgControlStatusGroup,u.FormGroupDirective,u.FormControlName,B,A.X$],styles:["ion-content.selector[_ngcontent-%COMP%]{--offset-top: 0px !important}ion-content.selector[_ngcontent-%COMP%] ion-fab.fab[_ngcontent-%COMP%]{position:fixed;margin-top:10px}ion-header.fix-header-modal-ios[_ngcontent-%COMP%] ion-toolbar[_ngcontent-%COMP%]{height:0px!important;--background: #fff}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%]{box-shadow:0 -6px 3px rgba(0,0,0,.1);margin-top:0;transition:margin-top 1s ease;background-color:#fff;height:100%;overflow:scroll}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{display:flex;padding-top:3.5em;justify-content:center;align-items:center;flex-direction:column}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:initial!important;font-weight:700;text-align:center;margin:32px 32px 8px}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%]{justify-content:center;margin:0}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%]{margin-top:8px;display:flex;justify-content:center;align-items:center;flex-direction:column;width:100%}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%]{margin-top:18px}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%]{margin-top:0}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .bottom-options[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .bottom-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%]{margin-top:18px}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .bottom-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%]{margin-top:0;width:100%}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%]{overflow:scroll;height:100%;padding:1em}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:initial!important;width:80%;margin:0 10% 2px;font-weight:700;text-align:center}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .sub-title[_ngcontent-%COMP%]{margin:10px 0;font-size:.9em;background-color:#eee;border:1px solid #ccc;padding:8px;border-radius:2px;text-align:center}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .result[_ngcontent-%COMP%]{width:95%;margin:10px;border:1px solid #eee;border-radius:4px;padding:10px}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .result[_ngcontent-%COMP%] .company[_ngcontent-%COMP%]{color:#aaa}"]}),o})();function I(o,l){1&o&&(e.\u0275\u0275elementStart(0,"div",10),e.\u0275\u0275element(1,"ion-spinner",11),e.\u0275\u0275elementEnd())}function a(o,l){if(1&o){const n=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",12)(1,"ion-row")(2,"ion-col")(3,"div",13)(4,"div",14)(5,"button",15),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(n);const s=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(s.deny())}),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"button",15),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(n);const s=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(s.authorize())}),e.\u0275\u0275text(9),e.\u0275\u0275pipe(10,"translate"),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(11,"ion-row")(12,"ion-col")(13,"div",16)(14,"div",17)(15,"div",18),e.\u0275\u0275text(16),e.\u0275\u0275pipe(17,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(18,"div",19),e.\u0275\u0275element(19,"div",20),e.\u0275\u0275elementStart(20,"div",21),e.\u0275\u0275text(21),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(22,"div",22)(23,"div",18),e.\u0275\u0275text(24),e.\u0275\u0275pipe(25,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(26,"div",19),e.\u0275\u0275text(27),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(28,"div",23)(29,"div",18),e.\u0275\u0275text(30),e.\u0275\u0275pipe(31,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(32,"div",19),e.\u0275\u0275text(33),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(34,"div",24)(35,"div",18),e.\u0275\u0275text(36),e.\u0275\u0275pipe(37,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(38,"div",19),e.\u0275\u0275text(39),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(40,"div",25)(41,"div",18),e.\u0275\u0275text(42),e.\u0275\u0275pipe(43,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(44,"div",19),e.\u0275\u0275text(45),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(46,"ion-row")(47,"ion-col")(48,"div",16)(49,"div",17)(50,"div",18),e.\u0275\u0275text(51),e.\u0275\u0275pipe(52,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(53,"div",19),e.\u0275\u0275element(54,"div",20),e.\u0275\u0275elementStart(55,"div",21),e.\u0275\u0275text(56),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(57,"div",22)(58,"div",18),e.\u0275\u0275text(59),e.\u0275\u0275pipe(60,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(61,"div",19),e.\u0275\u0275text(62),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(63,"div",23)(64,"div",18),e.\u0275\u0275text(65),e.\u0275\u0275pipe(66,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(67,"div",19),e.\u0275\u0275text(68),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(69,"div",24)(70,"div",18),e.\u0275\u0275text(71),e.\u0275\u0275pipe(72,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(73,"div",19),e.\u0275\u0275text(74),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(75,"div",25)(76,"div",18),e.\u0275\u0275text(77),e.\u0275\u0275pipe(78,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(79,"div",19),e.\u0275\u0275text(80),e.\u0275\u0275elementEnd()()()()()()}if(2&o){const n=e.\u0275\u0275nextContext();e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(7,22,"MD_DRIVER_CONFLICT_BTN_CONFIRM_REFUSAL")," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(10,24,"MD_DRIVER_CONFLICT_BTN_ALLOW")," "),e.\u0275\u0275advance(7),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(17,26,"MD_DRIVER_CONFLICT_REGISTERED_DRIVER")),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate1(" ",n.registeredDriverInvite.driver.fullName," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(25,28,"MD_DRIVER_CONFLICT_LICENSEPLATONE")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",n.getLicensePlateOneToBeRendered(n.registeredDriverInvite)," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(31,30,"MD_DRIVER_CONFLICT_LICENSEPLATTWO")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",n.getLicensePlateTwoToBeRendered(n.registeredDriverInvite)," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(37,32,"MD_DRIVER_CONFLICT_ON_FOOT")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",n.getOnFootToBeRendered(n.registeredDriverInvite)," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(43,34,"MD_DRIVER_CONFLICT_VEHICLE_HAS_TRAILER")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",n.getOnFootToBeRendered(n.getHasCartToBeRendered)," "),e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(52,36,"MD_DRIVER_CONFLICT_DRIVER_CHECKIN")),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate1(" ",n.candidateDriverInvite.driver.fullName," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(60,38,"MD_DRIVER_CONFLICT_LICENSEPLATONE")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",n.getLicensePlateOneToBeRendered(n.candidateDriverInvite)," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(66,40,"MD_DRIVER_CONFLICT_LICENSEPLATTWO")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",n.getLicensePlateTwoToBeRendered(n.candidateDriverInvite)," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(72,42,"MD_DRIVER_CONFLICT_ON_FOOT")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",n.getOnFootToBeRendered(n.candidateDriverInvite)," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(78,44,"MD_DRIVER_CONFLICT_VEHICLE_HAS_TRAILER")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",n.getOnFootToBeRendered(n.getHasCartToBeRendered)," ")}}let f=(()=>{class o{constructor(n,r,s,S,O,E,P){this.modalController=n,this.portalLoginManagerService=r,this.profileManagerService=s,this.logisticEventApiService=S,this.authService=O,this.loadingService=E,this.translateConfigService=P,this.loaded=!1,this.comparePendingApprovals=()=>{const p=this.profileManagerService.getProfileLogistic();return new Promise((v,g)=>{this.authService.getToken().then(D=>this.portalLoginManagerService.getAccessToken(p.login,p.portal,D)).then(D=>this.logisticEventApiService.comparePendingApprovals(this.instanceName,this.inviteId,D.access_token).subscribe(v,g)).catch(g)}).finally(()=>this.loaded=!0)},this.handleComparePendingApprovalsSuccessResponse=p=>{console.log("handleComparePendingApprovalsSuccessResponse:",p),this.loadingService.hide(null,"loading-drivers-data");const v=p.current;this.registeredDriverInvite=p.previous,this.candidateDriverInvite=v},this.handleComparePendingApprovalsErrorResponse=p=>{this.loadingService.hide(null,"loading-drivers-data"),console.log("handleComparePendingApprovalsErrorResponse:",p)},this.getLicensePlateOneToBeRendered=p=>{if(p&&p.driver&&p.driver.licensePlateOne)return p.driver.licensePlateOne},this.getLicensePlateTwoToBeRendered=p=>{if(p&&p.driver&&p.driver.licensePlateTwo)return p.driver.licensePlateTwo},this.getOnFootToBeRendered=p=>{if(p&&p.driver)return this.translateConfigService.translate(p.driver.onFoot?"TEXT_YES":"TEXT_NOT")},this.getHasCartToBeRendered=p=>{if(p&&p.driver)return this.translateConfigService.translate(p.driver.hasCart?"TEXT_YES":"TEXT_NOT")},this.deny=()=>{const p={action:"deny",invite:{companyInstance:this.candidateDriverInvite.company.instanceName,inviteId:this.candidateDriverInvite.driver.inviteId,eventId:this.candidateDriverInvite.driver.eventId,event:{eventId:this.candidateDriverInvite.driver.eventId,target:this.candidateDriverInvite.target},...this.candidateDriverInvite}};this.modalController.dismiss(p)},this.authorize=()=>{const p={action:"authorize",invite:{eventId:this.candidateDriverInvite.driver.eventId,companyInstance:this.candidateDriverInvite.company.instanceName,inviteId:this.candidateDriverInvite.driver.inviteId,event:{eventId:this.candidateDriverInvite.driver.eventId,target:this.candidateDriverInvite.target},...this.candidateDriverInvite}};this.modalController.dismiss(p)},this.onClose=()=>{this.modalController.dismiss()}}ngOnInit(){this.loadingService.show(this.translateConfigService.translate("LOADING_DATA"),"loading-drivers-data"),this.comparePendingApprovals().then(this.handleComparePendingApprovalsSuccessResponse).catch(this.handleComparePendingApprovalsErrorResponse)}}return o.\u0275fac=function(n){return new(n||o)(e.\u0275\u0275directiveInject(_.ModalController),e.\u0275\u0275directiveInject(M.dj),e.\u0275\u0275directiveInject(M.v4),e.\u0275\u0275directiveInject(M.cv),e.\u0275\u0275directiveInject(M.e8),e.\u0275\u0275directiveInject(M.bz),e.\u0275\u0275directiveInject(M.wK))},o.\u0275cmp=e.\u0275\u0275defineComponent({type:o,selectors:[["app-solve-driver-checkin-conflict"]],inputs:{inviteId:"inviteId",instanceName:"instanceName"},decls:14,vars:9,consts:[[3,"ngClass"],[1,"content"],[1,"modal-container"],[1,"modal-title"],[1,"button-holder"],[1,"back",3,"click"],[1,"title"],["class","spinner",4,"ngIf"],["class","modal-body",4,"ngIf"],[1,"modal-footer"],[1,"spinner"],["mode","ios","name","crescent"],[1,"modal-body"],[1,"section","bottom"],[1,"actions","two-or-more"],["type","button",3,"click"],[1,"driver-holder"],[1,"item","driver-details"],[1,"label"],[1,"value"],[1,"photo"],[1,"name"],[1,"item","license-plate-one-details"],[1,"item","license-plate-two-details"],[1,"item","entrance-type-details"],[1,"item","has-cart-details"]],template:function(n,r){1&n&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"button",5),e.\u0275\u0275listener("click",function(){return r.onClose()}),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(8,"div",6),e.\u0275\u0275text(9),e.\u0275\u0275pipe(10,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(11,I,2,0,"div",7),e.\u0275\u0275template(12,a,81,46,"div",8),e.\u0275\u0275element(13,"div",9),e.\u0275\u0275elementEnd()()()),2&n&&(e.\u0275\u0275property("ngClass","selector"),e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(7,5,"BTN_BACK")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(10,7,"MD_DRIVER_CONFLICT_TITLE")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!r.loaded),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",r.registeredDriverInvite&&r.candidateDriverInvite&&r.loaded))},dependencies:[x.NgClass,x.NgIf,_.IonCol,_.IonRow,_.IonSpinner,A.X$],styles:["ion-content.selector.ios[_ngcontent-%COMP%]{--offset-top: 0px !important}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{height:100vh}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%]{box-shadow:0 -6px 3px rgba(0,0,0,.1);margin-top:0;transition:margin-top 1s ease;background-color:#fff;height:100%;overflow:scroll}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{display:flex;padding-top:1em;justify-content:center;align-items:center;flex-direction:column}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:initial!important;font-weight:700;text-align:center;margin:32px;margin-bottom:24px 32px 8px 32px}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%]{justify-content:center;margin:0}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%]{margin-top:8px;display:flex;justify-content:center;align-items:center;flex-direction:column}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%]{margin-top:18px}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%]{margin-top:0}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .bottom-options[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .bottom-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%]{margin-top:18px}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .bottom-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%]{margin-top:0;width:100%}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;margin:8px}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .actions.two-or-more[_ngcontent-%COMP%]{justify-content:space-around}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .actions.only-one[_ngcontent-%COMP%]{justify-content:center}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:1em;color:#0ec254;background-color:#fff;padding:.5em 1.25em;border-radius:32px;border:1px solid #0ec254;transition:background-color .1s ease-out}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:active{background-color:#0ec254;color:#fff;transition:background-color .1s ease-out}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .driver-holder[_ngcontent-%COMP%]{padding:16px;border:1px solid #eee;border-radius:8px}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .driver-holder[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{margin-bottom:12px}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .driver-holder[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-weight:700}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .driver-holder[_ngcontent-%COMP%] .driver-details[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{color:#0ec254}.selector[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:50vh}"]}),o})()},15356:(pe,F,C)=>{C.r(F),C.d(F,{EventAssistantsPageModule:()=>le});var e=C(61380),M=C(69270),x=C(90944),_=C(70079),U=C(24006),V=C(92216),y=C(90603),L=C(99826),b=C(15626),N=C(71994),t=C(45449);const J=[x.CommonModule,y.IonicModule,U.ReactiveFormsModule,U.FormsModule,V.uH,_.Tx,L.aw,b.K];let B=(()=>{class d{}return d.\u0275fac=function(a){return new(a||d)},d.\u0275mod=t.\u0275\u0275defineNgModule({type:d}),d.\u0275inj=t.\u0275\u0275defineInjector({imports:[J]}),d})();var u=C(15861),A=C(24889),R=C(47898),Y=C(23925),H=C(71003),$=C(14690),K=C(11814),X=C(21284),j=C(37763),Z=C(87871),Q=C(36290);function q(d,I){if(1&d){const a=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",10)(1,"button",11),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(a);const o=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(o.openAddUserModal())}),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd()()}if(2&d){const a=t.\u0275\u0275nextContext().ngIf;t.\u0275\u0275advance(1),t.\u0275\u0275property("disabled","Offline"===a.status),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(3,2,"PG_CREATE_ASSISTANT_STEP_BTN_ADD")," ")}}function ee(d,I){if(1&d){const a=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",10)(1,"button",11),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(a);const o=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(o.openAddUserModal())}),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd()()}if(2&d){const a=t.\u0275\u0275nextContext().ngIf;t.\u0275\u0275advance(1),t.\u0275\u0275property("disabled","Offline"===a.status),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(3,2,"PG_CREATE_ASSISTANT_STEP_BTN_ADD_ANOTHER")," ")}}function te(d,I){if(1&d){const a=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",12)(1,"div",13)(2,"button",11),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(a);const o=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(o.goToNextStep())}),t.\u0275\u0275text(3),t.\u0275\u0275pipe(4,"translate"),t.\u0275\u0275elementEnd()()()}if(2&d){const a=t.\u0275\u0275nextContext().ngIf;t.\u0275\u0275advance(2),t.\u0275\u0275property("disabled","Offline"===a.status),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(4,2,"PG_CREATE_ASSISTANT_STEP_BTN_LET_REGISTER")," ")}}function G(d,I){if(1&d&&(t.\u0275\u0275elementStart(0,"div",24),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&d){const a=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",a.company," ")}}function z(d,I){if(1&d){const a=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",18)(1,"div",19),t.\u0275\u0275listener("click",function(){const l=t.\u0275\u0275restoreView(a).$implicit,n=t.\u0275\u0275nextContext(3);return t.\u0275\u0275resetView(n.toggleActions(l))}),t.\u0275\u0275element(2,"app-avatar",20),t.\u0275\u0275elementStart(3,"div",21)(4,"div",22),t.\u0275\u0275text(5),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(6,G,2,1,"div",23),t.\u0275\u0275elementEnd()()()}if(2&d){const a=I.$implicit;let f,o,l,n;t.\u0275\u0275advance(2),t.\u0275\u0275property("firstName",null!==(f=null!==(f=null==a?null:a.firstName)&&void 0!==f?f:null==a||null==a.fullName||null==(f=a.fullName.split(" "))?null:f[0])&&void 0!==f?f:"")("lastName",null!==(o=null!==(o=null==a?null:a.lastName)&&void 0!==o?o:null==a||null==a.fullName||null==(o=a.fullName.split(" "))||null==(l=o.slice(1))?null:l.join(" "))&&void 0!==o?o:"")("thumbnailImage",null!==(n=null==a?null:a.thumbnailImage)&&void 0!==n?n:null)("size","md"),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(a.fullName),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",a.company)}}function ne(d,I){if(1&d&&(t.\u0275\u0275elementStart(0,"div",14)(1,"div",15),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(4,"div",16),t.\u0275\u0275text(5),t.\u0275\u0275pipe(6,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(7,z,7,6,"div",17),t.\u0275\u0275elementEnd()),2&d){const a=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(3,3,"PG_CREATE_ASSISTANT_STEP_ASSISTANTS")," "),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(6,5,"PG_CREATE_ASSISTANT_STEP_TAP_ITEM")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngForOf",a.selectedUsers)}}function oe(d,I){if(1&d){const a=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",29),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(a);const o=t.\u0275\u0275nextContext(3);return t.\u0275\u0275resetView(o.goToNextStep())}),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()}if(2&d){const a=t.\u0275\u0275nextContext(2).ngIf;t.\u0275\u0275property("disabled","Offline"===a.status),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(2,2,"BTN_NEXT")," ")}}function ie(d,I){if(1&d){const a=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",25)(1,"button",26),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(a);const o=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(o.goOneStepBack())}),t.\u0275\u0275elementStart(2,"span",27),t.\u0275\u0275text(3),t.\u0275\u0275pipe(4,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(5,oe,3,4,"button",28),t.\u0275\u0275elementEnd()}if(2&d){const a=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(4,2,"BTN_BACK"),""),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",!!a.selectedUsers.length)}}function re(d,I){if(1&d){const a=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",29),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(a);const o=t.\u0275\u0275nextContext(3);return t.\u0275\u0275resetView(o.goToNextStep())}),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()}if(2&d){const a=t.\u0275\u0275nextContext(2).ngIf;t.\u0275\u0275property("disabled","Offline"===a.status),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(2,2,"BTN_NEXT")," ")}}function ae(d,I){if(1&d){const a=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",25)(1,"button",26),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(a);const o=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(o.goOneStepBack())}),t.\u0275\u0275elementStart(2,"span",27),t.\u0275\u0275text(3),t.\u0275\u0275pipe(4,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(5,re,3,4,"button",28),t.\u0275\u0275elementEnd()}if(2&d){const a=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(4,2,"BTN_BACK"),""),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",!!a.selectedUsers.length)}}function ce(d,I){if(1&d&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275elementStart(1,"div",2)(2,"div",3)(3,"div",4),t.\u0275\u0275text(4),t.\u0275\u0275pipe(5,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(6,"ion-row")(7,"ion-col")(8,"div",5),t.\u0275\u0275template(9,q,4,4,"div",6),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(10,"div",5),t.\u0275\u0275template(11,ee,4,4,"div",6),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(12,te,5,4,"div",7),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(13,"ion-row")(14,"ion-col"),t.\u0275\u0275template(15,ne,8,7,"div",8),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(16,"ion-row")(17,"ion-col"),t.\u0275\u0275template(18,ie,6,4,"div",9),t.\u0275\u0275template(19,ae,6,4,"div",9),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementContainerEnd()),2&d){const a=t.\u0275\u0275nextContext();t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(5,7,"PG_CREATE_ASSISTANT_STEP_TEXT_SUBTITLE")),t.\u0275\u0275advance(5),t.\u0275\u0275property("ngIf",!a.selectedUsers.length),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",!!a.selectedUsers.length),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!a.selectedUsers.length),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngIf",!!a.selectedUsers.length),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngIf",!1===a.isLimitedProfile),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!0===a.isLimitedProfile)}}const se=[{path:"",component:(()=>{class d{constructor(a,f,o,l,n,r,s,S,O,E,P,p,v,g,D,de,Ce,ue,ve,he){var h=this;this.createLogisticEventService=a,this.navigationService=f,this.modalController=o,this.commonService=l,this.logService=n,this.loadingService=r,this.actionSheetController=s,this.activatedRoute=S,this.router=O,this.pendingRelease=E,this.notificatorService=P,this.permissionsAndroidService=p,this.modalPermissionsService=v,this.platform=g,this.androidPermissions=D,this.deviceContactsService=de,this.translateConfigService=Ce,this.stateService=ue,this.focusService=ve,this.userPhotoService=he,this.isLimitedProfile=!1,this.driver=null,this.existPendings=!1,this.navigateToQRCode=()=>{this.navigationService.forward(["/home"])},this.navigateToPendingLiberations=()=>{this.navigationService.forward(["/push-notifications"])},this.addUserToSelectedUsers=i=>{console.log("addUserToSelectedUsers:",i);const c=this.selectedUsers.find(m=>i.id?m.id===i.id:m.document===i.document);c?this.selectedUsers=this.selectedUsers.map(m=>(m?.id?m.id&&m.id===c.id&&(m=i):m.document===c.document&&(m=i),m)):this.selectedUsers.push(i)},this.removeUserFromSelectedUsers=i=>{if(i.status&&"WAITING_FOR_CHECKIN"!==i.status){const c={title:this.translateConfigService.translate("PG_CREATE_ASSISTANT_STEP_CANNOT_REMOVE_USER_TITLE"),message:this.translateConfigService.translate("PG_CREATE_ASSISTANT_STEP_CANNOT_REMOVE_USER_MESSAGE"),type:"error",timeout:5e3};this.notificatorService.notify(c)}else this.selectedUsers=this.selectedUsers.filter(c=>i.refId?c.refId!==i.refId:c.document!==i.document)},this.openAddUserModal=(0,u.Z)(function*(){const i=yield h.modalController.create({component:N.oY,componentProps:{contact:null}});i.onDidDismiss().then(h.onModalDismissCallback),yield i.present()}),this.onModalDismissCallback=i=>{if(i&&i.data){const c=i.data;c.fullName=(i.data.firstName?i.data.firstName:"")+" "+(i.data.lastName?i.data.lastName:""),this.addUserToSelectedUsers(c)}},this.goOneStepBack=()=>{this.isLimitedProfile?this.navigationService.back(["/events"]):(this.createLogisticEventService.setAssistants(this.selectedUsers),this.navigationService.back(["/logistic-events/create/event-driver"]))},this.goToNextStep=()=>{this.createLogisticEventService.setAssistants(this.selectedUsers),this.navigationService.forward(this.driver?["/logistic-events/create/event-transport-type"]:["/logistic-events/create/event-options"])},this.goToEventResume=()=>{const c={state:{event:{id:this.createLogisticEventService.getId(),title:this.createLogisticEventService.getTitle(),startAt:this.createLogisticEventService.getStartDate(),endAt:this.createLogisticEventService.getEndDate(),needAuthorization:this.createLogisticEventService.getNeedAuthorization()},isLimitedProfile:this.isLimitedProfile}};this.navigationService.forward(["/create-event-event-resume"],c)},this.canBeEdited=()=>!this.createLogisticEventService.getAssistants().find(i=>i.status&&"WAITING_FOR_CHECKIN"!==i.status),this.toggleActions=function(){var i=(0,u.Z)(function*(c){yield(yield h.actionSheetController.create({header:h.translateConfigService.translate("ACTION_SHEET_HEADER"),cssClass:"",buttons:[{text:h.translateConfigService.translate("ACTION_SHEET_BTN_REMOVE"),role:"destructive",icon:"trash",handler:()=>{h.removeUserFromSelectedUsers(c)}},{text:h.translateConfigService.translate("ACTION_SHEET_BTN_BACK"),icon:"arrow-back",role:"cancel",handler:()=>{}}]})).present()});return function(c){return i.apply(this,arguments)}}(),this.onGuestClick=function(){var i=(0,u.Z)(function*(c){console.log("guest:",c);const m=yield h.modalController.create({component:A.Ez,componentProps:{contact:c}});m.onDidDismiss().then(h.onModalDismissCallback),yield m.present()});return function(c){return i.apply(this,arguments)}}(),this.selectFromUserContacts=(0,u.Z)(function*(){const i=yield h.handlePermissionConctats();h.modalPermissionsService.openModal({permission:"CONTACT"}).then(c=>{c?i?h.deviceContactsService.pickContact().then(h.handleSelectFromUserContactsSuccessResponse).catch(h.handleSelectFromUserContactsErrorResponse):h.permissionsAndroidService.multRequestPermissions([h.androidPermissions.PERMISSION.READ_CONTACTS,h.androidPermissions.PERMISSION.WRITE_CONTACTS]).then(()=>{h.deviceContactsService.pickContact().then(h.handleSelectFromUserContactsSuccessResponse).catch(h.handleSelectFromUserContactsErrorResponse)}).catch(h.handleSelectFromUserContactsErrorResponse):h.logService.logError("permissionModal::handleSelectFromUserPageEventAssistent","","modal-permission-rejected")})}),this.handleSelectFromUserContactsSuccessResponse=i=>{console.log("handleSelectFromUserContactsSuccessResponse",JSON.stringify(i)),this.verifyIfNeedsPhoneNumberSelectionModal(i.contact)},this.handleSelectFromUserContactsErrorResponse=i=>{console.log("handleSelectFromUserContactsErrorResponse"),console.log("error:",i),this.logService.logError("contacts::handleSelectFromUserContactsErrorResponse","",i)},this.verifyIfNeedsPhoneNumberSelectionModal=i=>{const c=i.phones;c&&c.length&&void 0!==c?c.length>1?this.handlePhoneSelectionModal(i):this.phoneNumberSelectionModalOnPhoneNumberSelectionCallback(i,c[0]):this.phoneNumberSelectionModalOnPhoneNumberSelectionCallback(i,null)},this.phoneNumberSelectionModalOnPhoneNumberSelectionCallback=(i,c)=>{const m={phone:this.getPhoneNumberFromSelectedContact(c)};this.verifyIfAlreadyExistsInUserPersonalAgenda(m).then(T=>{T?this.verifyIfUserNeedsToUpdateEmailModal(i,T):this.verifyIfNeedsEmailSelectionModal(i,c)})},this.verifyIfAlreadyExistsInUserPersonalAgenda=i=>(this.loadingService.show(this.translateConfigService.translate("LOADING_DATA"),"contact-loading-data"),i={...i,phoneNumber:i.phone},new Promise(c=>{this.createLogisticEventService.getPrivateGuestByPhoneNumber(i).then(m=>{this.loadingService.hide(null,"contact-loading-data"),console.log("response:",m),c(m)}).catch(m=>{this.loadingService.hide(null,"contact-loading-data"),console.log("error:",m),c(!1)})})),this.verifyIfUserNeedsToUpdateEmailModal=(i,c)=>{const m=i.emails;m&&m.length&&m.length>1?this.handleEmailUpdateSelectionModal(i,c):this.addUserToSelectedUsers(c)},this.verifyIfNeedsEmailSelectionModal=(i,c)=>{const m=i.emails;m&&m.length?m.length>1?this.handleEmailSelectionModal(i,c):this.emailSelectionModalOnEmailSelectionCallback(i,m[0],c):this.emailSelectionModalOnEmailSelectionCallback(i,null,c)},this.handleEmailSelectionModal=function(){var i=(0,u.Z)(function*(c,m){const T=yield h.modalController.create({component:A.id,componentProps:{contact:c}});T.onDidDismiss().then(w=>{w.data?h.emailSelectionModalOnEmailSelectionCallback(c,w.data,m):h.emailSelectionModalOnBackCallback()}),yield T.present()});return function(c,m){return i.apply(this,arguments)}}(),this.handleEmailUpdateSelectionModal=function(){var i=(0,u.Z)(function*(c,m){const T=yield h.modalController.create({component:A.id,componentProps:{contact:c}});T.onDidDismiss().then(w=>{w.data?h.emailUpdateSelectionModalOnEmailSelectionCallback(m,w.data):h.emailSelectionModalOnBackCallback()}),yield T.present()});return function(c,m){return i.apply(this,arguments)}}(),this.emailUpdateSelectionModalOnEmailSelectionCallback=(i,c)=>{const m=this.getEmailFromSelectedEmail(c);i.email===m?this.addUserToSelectedUsers(i):(i.email=m,this.onUpdateGuest(i))},this.emailSelectionModalOnEmailSelectionCallback=(i,c,m)=>{const T=this.getEmailFromSelectedEmail(c),w=this.getPhoneNumberFromSelectedContact(m),k=this.getFirstNameFromSelectedContact(i),W=this.getLastNameFromSelectedContact(i),ge={email:T,firstName:k.split(" ").length>0?k.split(" ")[0]:k,lastName:`${W||""} ${k.split(" ").length>0?k.split(" ").slice(1).join(" "):W}`,phone:w};k&&W&&w?w.length<9?this.onOpenModalToAddMissingInfo(ge,i):this.onAutoCreateGuest(ge):this.onOpenModalToAddMissingInfo(ge,i)},this.handlePhoneSelectionModal=function(){var i=(0,u.Z)(function*(c){const m=yield h.modalController.create({component:A.Mf,componentProps:{contact:c}});m.onDidDismiss().then(T=>{T.data?h.phoneNumberSelectionModalOnPhoneNumberSelectionCallback(c,T.data):h.emailSelectionModalOnBackCallback()}),yield m.present()});return function(c){return i.apply(this,arguments)}}(),this.emailSelectionModalOnBackCallback=()=>{console.log("emailSelectionModalOnBackCallback")},this.onOpenModalToAddMissingInfo=function(){var i=(0,u.Z)(function*(c,m){const T=yield h.modalController.create({component:A.Ez,componentProps:{contact:c,type:"personal"}});T.onDidDismiss().then(w=>{h.onModalDismissCallback(w)}),yield T.present()});return function(c,m){return i.apply(this,arguments)}}(),this.onAutoCreateGuest=i=>{this.loadingService.show(this.translateConfigService.translate("LOADING_DATA"),"contact-loading-data-again"),i={...i,phoneNumber:i.phone},this.createLogisticEventService.createPrivateGuest(i).then(this.handleCreateGuestSuccessResponse).catch(this.handleCreateGuestErrorResponse)},this.onUpdateGuest=i=>{this.createLogisticEventService.updatePrivateGuest(i).then(this.handleUpdateGuestSuccessResponse).catch(this.handleUpdateGuestErrorResponse)},this.handleUpdateGuestSuccessResponse=i=>{console.log("handleUpdateGuestSuccessResponse"),console.log("response:",i),this.addUserToSelectedUsers(i)},this.handleUpdateGuestErrorResponse=i=>{console.log("handleUpdateGuestErrorResponse"),console.log("error:",i),this.logService.logError("http::handleUpdateGuestErrorResponse","",i)},this.handleCreateGuestSuccessResponse=i=>{console.log("handleCreateGuestSuccessResponse"),this.loadingService.hide(null,"contact-loading-data-again").then(()=>{this.addUserToSelectedUsers(i)})},this.handleCreateGuestErrorResponse=i=>{console.log("handleCreateGuestErrorResponse"),console.log("error:",i),this.loadingService.hide(null,"contact-loading-data-again"),this.logService.logError("http::handleCreateGuestErrorResponse","",i)},this.getEmailFromSelectedEmail=i=>i&&i.address?this.commonService.clearString(i.address):null,this.getFirstNameFromSelectedContact=i=>i&&i.name&&i.name.given?this.commonService.clearString(i.name.given):"",this.getLastNameFromSelectedContact=i=>i&&i.name&&i.name.family?this.commonService.clearString(i.name.family):"",this.getPhoneNumberFromSelectedContact=i=>(i&&i.number?this.commonService.clearString(i.number):"").replace(/\D+/g,""),this.activatedRoute.queryParams.subscribe(i=>{this.router.getCurrentNavigation().extras.state&&(this.isLimitedProfile=!!this.router.getCurrentNavigation().extras.state.isLimitedProfile&&this.router.getCurrentNavigation().extras.state.isLimitedProfile)})}ngOnInit(){this.showActions=null;let a=this.createLogisticEventService.getAssistants();a=a||[],this.selectedUsers=a,this.userPhotoService.enrichUsersWithPhotos(this.selectedUsers);let f=this.createLogisticEventService.getDriver();f=f?"null"===f?null:f:null,this.driver=f}ionViewWillEnter(){this.focusService.applyFocusQuerySelector("create_event_assistants",3500)}ionViewDidLeave(){}handlePermissionConctats(){var a=this;return(0,u.Z)(function*(){const f=a.platform.is("cordova")?yield a.permissionsAndroidService.hasPermission("READ_CONTACTS"):{hasPermission:!1},o=a.platform.is("cordova")?yield a.permissionsAndroidService.hasPermission("WRITE_CONTACTS"):{hasPermission:!1};return!(!f.hasPermission||!o.hasPermission)})()}}return d.\u0275fac=function(a){return new(a||d)(t.\u0275\u0275directiveInject(R.V),t.\u0275\u0275directiveInject(R.f5),t.\u0275\u0275directiveInject(y.ModalController),t.\u0275\u0275directiveInject(R.v_),t.\u0275\u0275directiveInject(R.$V),t.\u0275\u0275directiveInject(R.bz),t.\u0275\u0275directiveInject(y.ActionSheetController),t.\u0275\u0275directiveInject(e.ActivatedRoute),t.\u0275\u0275directiveInject(e.Router),t.\u0275\u0275directiveInject(R.xJ),t.\u0275\u0275directiveInject(R.V6),t.\u0275\u0275directiveInject(Y.Y),t.\u0275\u0275directiveInject(H.J),t.\u0275\u0275directiveInject(y.Platform),t.\u0275\u0275directiveInject($.r),t.\u0275\u0275directiveInject(K.r),t.\u0275\u0275directiveInject(R.wK),t.\u0275\u0275directiveInject(X.b),t.\u0275\u0275directiveInject(j.i),t.\u0275\u0275directiveInject(R.IR))},d.\u0275cmp=t.\u0275\u0275defineComponent({type:d,selectors:[["app-event-assistants"]],decls:5,vars:9,consts:[["defaultHref","/logistic-events/create/event-driver",3,"title","showBadge","refresh","menuToggle"],[4,"ngIf"],[1,"centralized-content"],["id","create_event_assistants","tabindex","1",1,"page-title"],[1,"sub-title"],[1,"add-from"],["class","add-user","tabindex","2",4,"ngIf"],["class","dont-add-just-go",4,"ngIf"],["class","results",4,"ngIf"],["class","button-holder",4,"ngIf"],["tabindex","2",1,"add-user"],[3,"disabled","click"],[1,"dont-add-just-go"],["tabindex","3",1,"skip"],[1,"results"],["tabindex","4",1,"title"],["tabindex","5",1,"sub-title"],["class","result",4,"ngFor","ngForOf"],[1,"result"],[1,"main",3,"click"],[3,"firstName","lastName","thumbnailImage","size"],[1,"user-info"],["tabindex","6",1,"full-name"],["class","company","tabindex","7",4,"ngIf"],["tabindex","7",1,"company"],[1,"button-holder"],["type","button",1,"back",3,"click"],["tabindex","8"],["type","submit",3,"disabled","click",4,"ngIf"],["type","submit",3,"disabled","click"]],template:function(a,f){1&a&&(t.\u0275\u0275element(0,"app-header",0),t.\u0275\u0275pipe(1,"translate"),t.\u0275\u0275elementStart(2,"ion-content"),t.\u0275\u0275template(3,ce,20,9,"ng-container",1),t.\u0275\u0275pipe(4,"async"),t.\u0275\u0275elementEnd()),2&a&&(t.\u0275\u0275property("title",t.\u0275\u0275pipeBind1(1,5,"PG_CREATE_ASSISTANT_STEP_HEADER_TITLE"))("showBadge",!0)("refresh",!1)("menuToggle",!1),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngIf",t.\u0275\u0275pipeBind1(4,7,f.stateService.getState())))},dependencies:[x.NgForOf,x.NgIf,y.IonCol,y.IonContent,y.IonRow,Z.A,Q.G,x.AsyncPipe,L.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%] .dont-add-just-go[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%] .add-from[_ngcontent-%COMP%]{display:flex;width:80%;margin:0 10%}.centralized-content[_ngcontent-%COMP%] .dont-add-just-go[_ngcontent-%COMP%] .add-user[_ngcontent-%COMP%], .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%] .dont-add-just-go[_ngcontent-%COMP%] .add-user[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .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%] .dont-add-just-go[_ngcontent-%COMP%] .add-user[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:active, .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%] .dont-add-just-go[_ngcontent-%COMP%] .add-user[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:focus, .centralized-content[_ngcontent-%COMP%] .add-from[_ngcontent-%COMP%] .add-user[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:focus{outline:none}.centralized-content[_ngcontent-%COMP%] .dont-add-just-go[_ngcontent-%COMP%] .skip[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%] .add-from[_ngcontent-%COMP%] .skip[_ngcontent-%COMP%]{display:flex;align-content:center;justify-content:center;flex:1;margin-top:8px}.centralized-content[_ngcontent-%COMP%] .dont-add-just-go[_ngcontent-%COMP%] .skip[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%] .add-from[_ngcontent-%COMP%] .skip[_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%] .dont-add-just-go[_ngcontent-%COMP%] .skip[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:active, .centralized-content[_ngcontent-%COMP%] .add-from[_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, .centralized-content[_ngcontent-%COMP%] .add-from[_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}.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 8px;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}.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}.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)}}"]}),d})()}];let le=(()=>{class d{}return d.\u0275fac=function(a){return new(a||d)},d.\u0275mod=t.\u0275\u0275defineNgModule({type:d}),d.\u0275inj=t.\u0275\u0275defineInjector({imports:[M.I,B,e.RouterModule.forChild(se)]}),d})()},37763:(pe,F,C)=>{C.d(F,{i:()=>V});var e=C(61380),x=C(92198),_=C(45449);let V=(()=>{class y{constructor(b){this.router=b}focusInRouterNavigate(){this.router.events.pipe((0,x.h)(b=>b instanceof e.NavigationEnd)).subscribe(()=>{const b=document.querySelector("#focusHeader");b&&b?.focus()})}applyFocusQuerySelector(b,N){setTimeout(()=>{document.querySelector(`#${b}`)?.focus()},N)}}return y.\u0275fac=function(b){return new(b||y)(_.\u0275\u0275inject(e.Router))},y.\u0275prov=_.\u0275\u0275defineInjectable({token:y,factory:y.\u0275fac,providedIn:"root"}),y})()}}]);