1 line
115 KiB
JavaScript
1 line
115 KiB
JavaScript
(self.webpackChunkapp=self.webpackChunkapp||[]).push([[1545],{71994:(pe,A,E)=>{E.d(A,{sZ:()=>N,ue:()=>j,AQ:()=>J,Ut:()=>Z,oY:()=>ne,YH:()=>ce,i9:()=>de});var e=E(45449),P=E(47898),M=E(90944),m=E(90603),D=E(87871);function t(i,u){if(1&i&&(e.\u0275\u0275elementStart(0,"div",7),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&i){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",o.foundUser.document," ")}}function O(i,u){if(1&i&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,t,2,1,"div",6),e.\u0275\u0275elementContainerEnd()),2&i){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==o.foundUser?null:o.foundUser.document)}}function R(i,u){if(1&i&&(e.\u0275\u0275elementStart(0,"div",7),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&i){const o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",o.foundUser.company," ")}}function I(i,u){if(1&i&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,R,2,1,"div",6),e.\u0275\u0275elementContainerEnd()),2&i){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==o.foundUser?null:o.foundUser.company)}}function b(i,u){if(1&i){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",1),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const n=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(n.userSelect.emit(n.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,O,2,1,"ng-container",0),e.\u0275\u0275template(7,I,2,1,"ng-container",0),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(8,"ion-ripple-effect",5),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}if(2&i){const o=e.\u0275\u0275nextContext();let c;e.\u0275\u0275advance(2),e.\u0275\u0275property("firstName",o.foundUser.firstName)("lastName",o.foundUser.lastName)("thumbnailImage",null!==(c=null!==(c=null==o.foundUser?null:o.foundUser.image)&&void 0!==c?c:null==o.foundUser?null:o.foundUser.thumbnailImage)&&void 0!==c?c:null)("size","md"),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",o.helperService.normalizeName(o.foundUser.firstName,o.foundUser.lastName)," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","driver"===o.typeofuser),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","assistant"===o.typeofuser)}}function w(i,u){1&i&&(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 F=function(){return[1,2,3,4,5,6,7,8,9,10]};function V(i,u){1&i&&(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,w,7,0,"div",13),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&i&&(e.\u0275\u0275advance(6),e.\u0275\u0275property("ngForOf",e.\u0275\u0275pureFunction0(1,F)))}let N=(()=>{class i{constructor(o){this.helperService=o,this.skeleton=!1,this.userSelect=new e.EventEmitter}ngOnInit(){}}return i.\u0275fac=function(o){return new(o||i)(e.\u0275\u0275directiveInject(P.W_))},i.\u0275cmp=e.\u0275\u0275defineComponent({type:i,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(o,c){1&o&&(e.\u0275\u0275template(0,b,9,7,"ng-container",0),e.\u0275\u0275template(1,V,7,2,"ng-container",0)),2&o&&(e.\u0275\u0275property("ngIf",c.foundUser&&!c.skeleton),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",c.skeleton))},dependencies:[M.NgForOf,M.NgIf,m.IonRippleEffect,m.IonSkeletonText,D.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}"]}),i})();var h=E(24006),L=E(99826);function B(i,u){if(1&i&&(e.\u0275\u0275elementStart(0,"div",16),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&i){const o=u.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",o.message," ")}}function z(i,u){if(1&i&&(e.\u0275\u0275elementStart(0,"div",14),e.\u0275\u0275template(1,B,2,1,"div",15),e.\u0275\u0275elementEnd()),2&i){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",o.getFieldInputValidationErrors("reason"))}}let j=(()=>{class i{constructor(o,c,n,v,r,s){this.ngZoneService=o,this.createLogisticEventService=c,this.formBuilder=n,this.modalController=v,this.notificatorService=r,this.translateConfigService=s,this.reasonFormErrors=[],this.onClose=()=>{this.modalController.dismiss({reason:null})},this.onSubmit=()=>{const g=this.reasonForm.controls.reason.value,p=this.validateInput({reason:g});if(p.length){this.setValidationErrors(p);const C={title:this.translateConfigService.translate("TOAST_INVALID_DATA_TITLE"),message:this.translateConfigService.translate("TOAST_INVALID_DATA_NESSAGE"),type:"error"};this.notificatorService.notify(C)}else this.modalController.dismiss({reason:g})},this.validateInput=g=>{const d=[],p=this.validateReasonInput(g);return p&&d.push(p),d},this.validateReasonInput=g=>!g.reason||g.reason.length<1?{message:this.translateConfigService.translate("MD_JUSTIFY_INVITE_WITOUT_LOCATOR_JUSTIFICATION_PROVIDED"),field:"reason"}:null,this.setValidationErrors=g=>{this.reasonFormErrors=g},this.thereIsFieldInputValidationErrors=g=>this.reasonFormErrors.find(d=>d.field===g),this.getFieldInputValidationErrors=g=>this.reasonFormErrors.filter(d=>d.field===g)}ngOnInit(){this.reasonForm=this.formBuilder.group({reason:[""]})}}return i.\u0275fac=function(o){return new(o||i)(e.\u0275\u0275directiveInject(P.zf),e.\u0275\u0275directiveInject(P.V),e.\u0275\u0275directiveInject(h.UntypedFormBuilder),e.\u0275\u0275directiveInject(m.ModalController),e.\u0275\u0275directiveInject(P.V6),e.\u0275\u0275directiveInject(P.wK))},i.\u0275cmp=e.\u0275\u0275defineComponent({type:i,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(o,c){1&o&&(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 c.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 c.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,z,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 c.onSubmit()}),e.\u0275\u0275text(23),e.\u0275\u0275pipe(24,"translate"),e.\u0275\u0275elementEnd()()()()()()),2&o&&(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",c.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",c.thereIsFieldInputValidationErrors("reason")),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(24,13,"MD_JUSTIFY_INVITE_WITOUT_LOCATOR_BTN_CONFIRM_REFUSAL")," "))},dependencies:[M.NgClass,M.NgForOf,M.NgIf,m.IonCol,m.IonRow,h.\u0275NgNoValidate,h.DefaultValueAccessor,h.NgControlStatus,h.NgControlStatusGroup,h.MaxLengthValidator,h.FormGroupDirective,h.FormControlName,L.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}"]}),i})();function W(i,u){if(1&i&&(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&i){const o=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==o.data?null:o.data.firstName," ",null==o.data?null:o.data.lastName,"")}}function X(i,u){if(1&i&&(e.\u0275\u0275elementStart(0,"div",22),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&i){const o=u.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",o.message," ")}}function Y(i,u){if(1&i&&(e.\u0275\u0275elementStart(0,"div",20),e.\u0275\u0275template(1,X,2,1,"div",21),e.\u0275\u0275elementEnd()),2&i){const o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",o.getFieldInputValidationErrors("reason"))}}const U=function(i){return{"no-margim":i}};let J=(()=>{class i{constructor(o,c,n,v){this.formBuilder=o,this.modalController=c,this.notificatorService=n,this.translateConfigService=v,this.data=null,this.reasonFormErrors=[],this.onClose=()=>{this.modalController.dismiss({reason:null})},this.onSubmit=()=>{const r=this.reasonForm.controls.reason.value,g=this.validateInput({reason:r});if(g.length){this.setValidationErrors(g);const d={title:this.translateConfigService.translate("TOAST_INVALID_DATA_TITLE"),message:this.translateConfigService.translate("TOAST_INVALID_DATA_NESSAGE"),type:"error"};this.notificatorService.notify(d)}else this.modalController.dismiss({reason:r})},this.validateInput=r=>{const s=[],g=this.validateReasonInput(r);return g&&s.push(g),s},this.validateReasonInput=r=>!r.reason||r.reason.length<1?{message:this.translateConfigService.translate("MD_JUSTIFY_LG_INVITE_WITOUT_LOCATOR_JUSTIFICATION_PROVIDED"),field:"reason"}:null,this.setValidationErrors=r=>{this.reasonFormErrors=r},this.thereIsFieldInputValidationErrors=r=>this.reasonFormErrors.find(s=>s.field===r),this.getFieldInputValidationErrors=r=>this.reasonFormErrors.filter(s=>s.field===r)}ngOnInit(){this.reasonForm=this.formBuilder.group({reason:[""]})}}return i.\u0275fac=function(o){return new(o||i)(e.\u0275\u0275directiveInject(h.UntypedFormBuilder),e.\u0275\u0275directiveInject(m.ModalController),e.\u0275\u0275directiveInject(P.V6),e.\u0275\u0275directiveInject(P.wK))},i.\u0275cmp=e.\u0275\u0275defineComponent({type:i,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(o,c){if(1&o&&(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 c.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,W,8,5,"ng-container",8),e.\u0275\u0275elementStart(13,"ion-row")(14,"ion-col")(15,"form",9),e.\u0275\u0275listener("ngSubmit",function(){return c.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,Y,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 c.onSubmit()}),e.\u0275\u0275text(26),e.\u0275\u0275pipe(27,"translate"),e.\u0275\u0275elementEnd()()()()()()),2&o){let n;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==c.data?null:c.data.event),e.\u0275\u0275advance(3),e.\u0275\u0275property("formGroup",c.reasonForm),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(19,U,null!=c.data&&c.data.event?"no-margim":"")),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(21,U,null!=c.data&&c.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==c.reasonForm||null==(n=c.reasonForm.get("reason"))||null==n.value?null:n.value.length)||0,"/55"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",c.thereIsFieldInputValidationErrors("reason")),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(27,17,"MD_JUSTIFY_LG_INVITE_WITOUT_LOCATOR_BTN_CONFIRM_REFUSAL")," ")}},dependencies:[M.NgClass,M.NgForOf,M.NgIf,m.IonCol,m.IonRow,h.\u0275NgNoValidate,h.DefaultValueAccessor,h.NgControlStatus,h.NgControlStatusGroup,h.MaxLengthValidator,h.FormGroupDirective,h.FormControlName,L.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}"]}),i})();function H(i,u){if(1&i){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"ion-card",12),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const n=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(n.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&i&&(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 K(i,u){if(1&i){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"ion-card",12),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const n=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(n.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&i&&(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 $(i,u){if(1&i){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"ion-card",12),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(o);const n=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(n.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&i&&(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 Z=(()=>{class i{constructor(o){this.modalController=o,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 i.\u0275fac=function(o){return new(o||i)(e.\u0275\u0275directiveInject(m.ModalController))},i.\u0275cmp=e.\u0275\u0275defineComponent({type:i,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(o,c){1&o&&(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,H,8,6,"ion-card",9),e.\u0275\u0275template(12,K,8,6,"ion-card",9),e.\u0275\u0275template(13,$,8,6,"ion-card",9),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(14,"div",10)(15,"ion-button",11),e.\u0275\u0275listener("click",function(){return c.back()}),e.\u0275\u0275text(16),e.\u0275\u0275pipe(17,"translate"),e.\u0275\u0275elementEnd()()()()()),2&o&&(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",c.availableTypes.includes("CONVENTIONAL")),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",c.availableTypes.includes("ENTRY")),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",c.availableTypes.includes("EXIT")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(17,8,"BTN_BACK")," "))},dependencies:[M.NgClass,M.NgIf,m.IonButton,m.IonCard,m.IonLabel,m.IonList,L.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}"]}),i})();var k=E(15861),G=E(24889);function Q(i,u){if(1&i){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"app-card-founduser-lg",23),e.\u0275\u0275listener("userSelect",function(){const v=e.\u0275\u0275restoreView(o).$implicit,r=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(r.onUserSelect(v))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}if(2&i){const o=u.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("foundUser",o)}}function q(i,u){if(1&i&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Q,2,1,"ng-container",22),e.\u0275\u0275elementContainerEnd()),2&i){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",o.foundUsers)}}function ee(i,u){if(1&i&&(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,q,2,1,"ng-container",16),e.\u0275\u0275elementEnd()),2&i){const o=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",o.isLoading)}}function te(i,u){1&i&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275element(1,"app-card-founduser-lg",24),e.\u0275\u0275elementContainerEnd()),2&i&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("skeleton",!0))}let ne=(()=>{class i{constructor(o,c,n,v,r,s,g,d){var p=this;this.ngZoneService=o,this.createLogisticEventService=c,this.formBuilder=n,this.modalController=v,this.changeDetectorRef=r,this.helperService=s,this.logService=g,this.userPhotoService=d,this.page=0,this.size=15,this.onClose=C=>{this.modalController.dismiss(C)},this.onUserSelect=C=>{C.fullName=this.helperService.normalizeName(C.firstName,C.lastName),setTimeout(()=>{this.onClose(C)},750)},this.onCreateGuest=(0,k.Z)(function*(){const C=yield p.modalController.create({component:G._y});C.onDidDismiss().then(p.onModalDismissCallback),yield C.present()}),this.onModalDismissCallback=C=>{C&&C.data&&this.onUserSelect(C.data)},this.onUpdateContactInfoSuccessResponse=C=>{console.log("onUpdateContactInfoSuccessResponse"),console.log("contact:",C)},this.onUpdateContactInfoErrorResponse=C=>{console.log("onUpdateContactInfoErrorResponse"),console.log("error:",C)},this.onInputChange=C=>{const{value:x}=C.target;this.infiniteScroll.disabled=!1,this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{x.length>1&&(this.foundUsers=[],this.page=0),this.doSearch(x)},750)},this.doSearch=C=>{const x={searchTerm:C=C.trim()};this.dataTerms=x,this.createLogisticEventService.getCompanyAssistants(x,this.page,this.size).then(this.handleGetGuestsSuccessResponse).catch(this.handleGetGuestsErrorResponse).finally(()=>this.isLoading=!0)},this.handleGetGuestsSuccessResponse=C=>{console.log("handleGetGuestsSuccessResponse"),console.log("response:",C),this.setFoundUsers(C),this.userPhotoService.enrichUsersWithPhotos(C)},this.handleGetGuestsErrorResponse=C=>{this.logService.logError("http::handleGetGuestsErrorResponse","",C),console.log("handleGetGuestsErrorResponse"),console.log("error:",C)},this.setFoundUsers=C=>{this.foundUsers=C,this.changeDetectorRef.detectChanges(),scrollBy(0,1)}}ngOnInit(){this.foundUsers=[],this.searchTimeout=null,this.userForm=this.formBuilder.group({searchTerm:[""]})}ionViewWillEnter(){this.onInputChange({target:{value:""}})}loadData(o){this.page+=1,this.loadMore(this.page,o)}loadMore(o,c){this.createLogisticEventService.getCompanyDrivers(this.dataTerms,o,this.size,!!c).then(n=>{this.isLoading=!0,n.length>0?(this.handleGetGuestsSuccessResponse(this.foundUsers.concat(n)),this.size>0&&c.target.complete()):c.target.disabled=!0}).catch(n=>{this.handleGetGuestsErrorResponse(n),c.target.complete(),c.target.disabled=!0})}}return i.\u0275fac=function(o){return new(o||i)(e.\u0275\u0275directiveInject(P.zf),e.\u0275\u0275directiveInject(P.V),e.\u0275\u0275directiveInject(h.UntypedFormBuilder),e.\u0275\u0275directiveInject(m.ModalController),e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(P.W_),e.\u0275\u0275directiveInject(P.$V),e.\u0275\u0275directiveInject(P.IR))},i.\u0275cmp=e.\u0275\u0275defineComponent({type:i,selectors:[["app-selector-for-assistants-to-add-to-event"]],viewQuery:function(o,c){if(1&o&&e.\u0275\u0275viewQuery(m.IonInfiniteScroll,5),2&o){let n;e.\u0275\u0275queryRefresh(n=e.\u0275\u0275loadQuery())&&(c.infiniteScroll=n.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(o,c){1&o&&(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 c.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(v){return c.onInputChange(v)}),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 c.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,ee,8,7,"div",15),e.\u0275\u0275template(30,te,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(v){return c.loadData(v)}),e.\u0275\u0275element(34,"ion-infinite-scroll-content"),e.\u0275\u0275elementEnd()()),2&o&&(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",c.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",!!c.foundUsers.length),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!c.isLoading))},dependencies:[M.NgClass,M.NgForOf,M.NgIf,m.IonCol,m.IonContent,m.IonHeader,m.IonInfiniteScroll,m.IonInfiniteScrollContent,m.IonRow,m.IonTitle,m.IonToolbar,h.\u0275NgNoValidate,h.DefaultValueAccessor,h.NgControlStatus,h.NgControlStatusGroup,h.FormGroupDirective,h.FormControlName,N,L.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}"]}),i})();function oe(i,u){if(1&i){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"app-card-founduser-lg",24),e.\u0275\u0275listener("userSelect",function(){const v=e.\u0275\u0275restoreView(o).$implicit,r=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(r.onUserSelect(v))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}if(2&i){const o=u.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("foundUser",o)}}function ie(i,u){if(1&i&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,oe,2,1,"ng-container",23),e.\u0275\u0275elementContainerEnd()),2&i){const o=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",o.foundUsers)}}function re(i,u){if(1&i&&(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,ie,2,1,"ng-container",17),e.\u0275\u0275elementEnd()),2&i){const o=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",o.isLoading)}}function ae(i,u){1&i&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275element(1,"app-card-founduser-lg",25),e.\u0275\u0275elementContainerEnd()),2&i&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("skeleton",!0))}let ce=(()=>{class i{constructor(o,c,n,v,r,s,g){var d=this;this.createLogisticEventService=o,this.formBuilder=c,this.modalController=n,this.changeDetectorRef=v,this.helperService=r,this.logService=s,this.userPhotoService=g,this.isLoading=!1,this.page=0,this.size=15,this.onClose=p=>{this.modalController.dismiss(p)},this.onUserSelect=p=>{p.fullName=this.helperService.normalizeName(p.firstName,p.lastName),setTimeout(()=>{this.onClose(p)},750)},this.onCreateDriver=(0,k.Z)(function*(){const p=yield d.modalController.create({component:G.v_});p.onDidDismiss().then(C=>{d.onModalDismissCallback(C)}),yield p.present()}),this.onInputChange=p=>{const{value:C}=p.target;this.infiniteScroll.disabled=!1,this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{C.length>1&&(this.foundUsers=[],this.page=0),this.doSearch(C)},750)},this.doSearch=p=>{const C={searchTerm:p=p.trim()};this.dataTerms=C,this.createLogisticEventService.getCompanyDrivers(C,this.page,this.size).then(this.handleGetCompanyDriversSuccessResponse).catch(this.handleGetgetCompanyDriversErrorResponse).finally(()=>this.isLoading=!0)},this.handleGetCompanyDriversSuccessResponse=p=>{console.log("handleGetCompanyDriversSuccessResponse"),console.log("response:",p),this.setFoundUsers(p),this.userPhotoService.enrichUsersWithPhotos(p)},this.handleGetgetCompanyDriversErrorResponse=p=>{console.log("handleGetgetCompanyDriversErrorResponse"),this.logService.logError("http::handleGetgetCompanyDriversErrorResponse","",p),console.log("error:",p)},this.setFoundUsers=p=>{this.foundUsers=p,console.log("foundUsers",p),this.changeDetectorRef.detectChanges(),scrollBy(0,1)}}ngOnInit(){this.foundUsers=[],this.searchTimeout=null,this.userForm=this.formBuilder.group({searchTerm:[""]})}ionViewWillEnter(){this.onInputChange({target:{value:""}})}onModalDismissCallback(o){o&&o.data&&this.onUserSelect(o.data)}loadData(o){this.page+=1,this.loadMore(this.page,o)}loadMore(o,c){this.createLogisticEventService.getCompanyDrivers(this.dataTerms,o,this.size,!!c).then(n=>{this.isLoading=!0,n.length>0?(this.handleGetCompanyDriversSuccessResponse(this.foundUsers.concat(n)),this.size>0&&c.target.complete()):c.target.disabled=!0}).catch(n=>{this.handleGetCompanyDriversSuccessResponse(n),c.target.complete(),c.target.disabled=!0})}}return i.\u0275fac=function(o){return new(o||i)(e.\u0275\u0275directiveInject(P.V),e.\u0275\u0275directiveInject(h.UntypedFormBuilder),e.\u0275\u0275directiveInject(m.ModalController),e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(P.W_),e.\u0275\u0275directiveInject(P.$V),e.\u0275\u0275directiveInject(P.IR))},i.\u0275cmp=e.\u0275\u0275defineComponent({type:i,selectors:[["app-selector-for-driver-to-add-to-event"]],viewQuery:function(o,c){if(1&o&&e.\u0275\u0275viewQuery(m.IonInfiniteScroll,5),2&o){let n;e.\u0275\u0275queryRefresh(n=e.\u0275\u0275loadQuery())&&(c.infiniteScroll=n.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(o,c){1&o&&(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 c.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(v){return c.onInputChange(v)}),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 c.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,re,5,4,"div",16),e.\u0275\u0275template(27,ae,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(v){return c.loadData(v)}),e.\u0275\u0275element(31,"ion-infinite-scroll-content"),e.\u0275\u0275elementEnd()()),2&o&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("ngClass","selector"),e.\u0275\u0275advance(11),e.\u0275\u0275property("formGroup",c.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",!!c.foundUsers.length),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!c.isLoading))},dependencies:[M.NgClass,M.NgForOf,M.NgIf,m.IonCol,m.IonContent,m.IonFab,m.IonFabButton,m.IonHeader,m.IonIcon,m.IonInfiniteScroll,m.IonInfiniteScrollContent,m.IonRow,m.IonTitle,m.IonToolbar,h.\u0275NgNoValidate,h.DefaultValueAccessor,h.NgControlStatus,h.NgControlStatusGroup,h.FormGroupDirective,h.FormControlName,N,L.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}"]}),i})();function le(i,u){1&i&&(e.\u0275\u0275elementStart(0,"div",10),e.\u0275\u0275element(1,"ion-spinner",11),e.\u0275\u0275elementEnd())}function se(i,u){if(1&i){const o=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(o);const n=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(n.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(o);const n=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(n.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&i){const o=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(" ",o.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(" ",o.getLicensePlateOneToBeRendered(o.registeredDriverInvite)," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(31,30,"MD_DRIVER_CONFLICT_LICENSEPLATTWO")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",o.getLicensePlateTwoToBeRendered(o.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(" ",o.getOnFootToBeRendered(o.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(" ",o.getOnFootToBeRendered(o.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(" ",o.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(" ",o.getLicensePlateOneToBeRendered(o.candidateDriverInvite)," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(66,40,"MD_DRIVER_CONFLICT_LICENSEPLATTWO")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",o.getLicensePlateTwoToBeRendered(o.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(" ",o.getOnFootToBeRendered(o.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(" ",o.getOnFootToBeRendered(o.getHasCartToBeRendered)," ")}}let de=(()=>{class i{constructor(o,c,n,v,r,s,g){this.modalController=o,this.portalLoginManagerService=c,this.profileManagerService=n,this.logisticEventApiService=v,this.authService=r,this.loadingService=s,this.translateConfigService=g,this.loaded=!1,this.comparePendingApprovals=()=>{const d=this.profileManagerService.getProfileLogistic();return new Promise((p,C)=>{this.authService.getToken().then(x=>this.portalLoginManagerService.getAccessToken(d.login,d.portal,x)).then(x=>this.logisticEventApiService.comparePendingApprovals(this.instanceName,this.inviteId,x.access_token).subscribe(p,C)).catch(C)}).finally(()=>this.loaded=!0)},this.handleComparePendingApprovalsSuccessResponse=d=>{console.log("handleComparePendingApprovalsSuccessResponse:",d),this.loadingService.hide(null,"loading-drivers-data");const p=d.current;this.registeredDriverInvite=d.previous,this.candidateDriverInvite=p},this.handleComparePendingApprovalsErrorResponse=d=>{this.loadingService.hide(null,"loading-drivers-data"),console.log("handleComparePendingApprovalsErrorResponse:",d)},this.getLicensePlateOneToBeRendered=d=>{if(d&&d.driver&&d.driver.licensePlateOne)return d.driver.licensePlateOne},this.getLicensePlateTwoToBeRendered=d=>{if(d&&d.driver&&d.driver.licensePlateTwo)return d.driver.licensePlateTwo},this.getOnFootToBeRendered=d=>{if(d&&d.driver)return this.translateConfigService.translate(d.driver.onFoot?"TEXT_YES":"TEXT_NOT")},this.getHasCartToBeRendered=d=>{if(d&&d.driver)return this.translateConfigService.translate(d.driver.hasCart?"TEXT_YES":"TEXT_NOT")},this.deny=()=>{const d={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(d)},this.authorize=()=>{const d={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(d)},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 i.\u0275fac=function(o){return new(o||i)(e.\u0275\u0275directiveInject(m.ModalController),e.\u0275\u0275directiveInject(P.dj),e.\u0275\u0275directiveInject(P.v4),e.\u0275\u0275directiveInject(P.cv),e.\u0275\u0275directiveInject(P.e8),e.\u0275\u0275directiveInject(P.bz),e.\u0275\u0275directiveInject(P.wK))},i.\u0275cmp=e.\u0275\u0275defineComponent({type:i,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(o,c){1&o&&(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 c.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,le,2,0,"div",7),e.\u0275\u0275template(12,se,81,46,"div",8),e.\u0275\u0275element(13,"div",9),e.\u0275\u0275elementEnd()()()),2&o&&(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",!c.loaded),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",c.registeredDriverInvite&&c.candidateDriverInvite&&c.loaded))},dependencies:[M.NgClass,M.NgIf,m.IonCol,m.IonRow,m.IonSpinner,L.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}"]}),i})()},1545:(pe,A,E)=>{E.r(A),E.d(A,{EventResumePageModule:()=>c});var e=E(61380),P=E(64921),M=E(69270),m=E(15861),D=E(71994),t=E(45449),O=E(47898),R=E(90603),I=E(37763),b=E(90944),w=E(87871),F=E(36290),V=E(96893),N=E(99826);function h(n,v){if(1&n){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",32),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(r);const g=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(g.createEvent())}),t.\u0275\u0275elementStart(1,"span",33),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd()()}2&n&&(t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(3,1,"PG_CREATE_RESUME_LG_STEP_BTN_CREATE")))}function L(n,v){if(1&n){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",32),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(r);const g=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(g.updateEvent())}),t.\u0275\u0275elementStart(1,"span",33),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd()()}2&n&&(t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(3,1,"PG_CREATE_RESUME_LG_STEP_BTN_SALVE")))}function B(n,v){if(1&n&&(t.\u0275\u0275elementStart(0,"div",30),t.\u0275\u0275template(1,h,4,3,"button",31),t.\u0275\u0275template(2,L,4,3,"button",31),t.\u0275\u0275elementEnd()),2&n){const r=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",r.isCreating()),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",r.isEditing())}}function z(n,v){if(1&n){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",35),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(r);const g=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(g.reproveEvent())}),t.\u0275\u0275elementStart(1,"span",10),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd()()}2&n&&(t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(3,1,"PG_CREATE_RESUME_LG_STEP_BTN_REPROVE")))}function j(n,v){if(1&n){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",30)(1,"button",32),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(r);const g=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(g.approveEvent())}),t.\u0275\u0275elementStart(2,"span",10),t.\u0275\u0275text(3),t.\u0275\u0275pipe(4,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(5,z,4,3,"button",34),t.\u0275\u0275elementEnd()}if(2&n){const r=t.\u0275\u0275nextContext();t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(4,2,"PG_CREATE_RESUME_LG_STEP_BTN_APPROVE"),""),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",!r.isApproveEventReview())}}function W(n,v){if(1&n&&(t.\u0275\u0275elementStart(0,"div",36)(1,"div",37),t.\u0275\u0275element(2,"app-avatar",38),t.\u0275\u0275elementStart(3,"div",39),t.\u0275\u0275text(4),t.\u0275\u0275elementEnd()()()),2&n){const r=t.\u0275\u0275nextContext();let s,g,d,p;t.\u0275\u0275advance(2),t.\u0275\u0275property("firstName",null!==(s=null!==(s=null==r.driver?null:r.driver.firstName)&&void 0!==s?s:null==r.driver||null==r.driver.fullName||null==(s=r.driver.fullName.split(" "))?null:s[0])&&void 0!==s?s:"")("lastName",null!==(g=null!==(g=null==r.driver?null:r.driver.lastName)&&void 0!==g?g:null==r.driver||null==r.driver.fullName||null==(g=r.driver.fullName.split(" "))||null==(d=g.slice(1))?null:d.join(" "))&&void 0!==g?g:"")("thumbnailImage",null!==(p=null==r.driver?null:r.driver.thumbnailImage)&&void 0!==p?p:null)("size","sm"),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(null==r.driver?null:r.driver.fullName)}}function X(n,v){1&n&&(t.\u0275\u0275elementStart(0,"div",40),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()),2&n&&(t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(2,1,"PG_CREATE_RESUME_LG_STEP_TEXT_NOT_DRIVER_SELECTED")," "))}function Y(n,v){if(1&n&&(t.\u0275\u0275elementStart(0,"div",41)(1,"div",42),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(4,"app-list-recurrence-dates",43),t.\u0275\u0275elementEnd()),2&n){const r=t.\u0275\u0275nextContext();t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(3,3,"TEXT_RECURRENCES_DATES")),t.\u0275\u0275advance(2),t.\u0275\u0275property("showShortDateList",!0)("recurrenceDates",r.recurrenceDates)}}function U(n,v){if(1&n&&(t.\u0275\u0275elementStart(0,"div",37),t.\u0275\u0275element(1,"app-avatar",38),t.\u0275\u0275elementStart(2,"div",47),t.\u0275\u0275text(3),t.\u0275\u0275elementEnd()()),2&n){const r=v.$implicit;let s,g,d,p;t.\u0275\u0275advance(1),t.\u0275\u0275property("firstName",null!==(s=null!==(s=null==r?null:r.firstName)&&void 0!==s?s:null==r||null==r.fullName||null==(s=r.fullName.split(" "))?null:s[0])&&void 0!==s?s:"")("lastName",null!==(g=null!==(g=null==r?null:r.lastName)&&void 0!==g?g:null==r||null==r.fullName||null==(g=r.fullName.split(" "))||null==(d=g.slice(1))?null:d.join(" "))&&void 0!==g?g:"")("thumbnailImage",null!==(p=null==r?null:r.thumbnailImage)&&void 0!==p?p:null)("size","sm"),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(r.fullName)}}function J(n,v){if(1&n&&(t.\u0275\u0275elementStart(0,"div",36),t.\u0275\u0275template(1,U,4,5,"div",46),t.\u0275\u0275elementEnd()),2&n){const r=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",r.assistants)}}function H(n,v){1&n&&(t.\u0275\u0275elementStart(0,"div",48),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()),2&n&&(t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(2,1,"PG_CREATE_RESUME_LG_STEP_NOT_ASSISTANT_SELECTED")," "))}function K(n,v){if(1&n&&(t.\u0275\u0275elementStart(0,"div",14)(1,"div",44),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(4,J,2,1,"div",16),t.\u0275\u0275template(5,H,3,3,"div",45),t.\u0275\u0275elementEnd()),2&n){const r=t.\u0275\u0275nextContext();t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(3,3,"PG_CREATE_RESUME_LG_STEP_TEXT_ASSISTANTS")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",r.assistants.length),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!r.assistants.length)}}function $(n,v){if(1&n&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275elementStart(1,"div",49)(2,"div",44),t.\u0275\u0275text(3),t.\u0275\u0275pipe(4,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(5,"div",50),t.\u0275\u0275text(6),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementContainerEnd()),2&n){const r=t.\u0275\u0275nextContext();t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(4,2,"PG_CREATE_RESUME_LG_STEP_TEXT_LICENSEPLATONE")," "),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(r.licensePlateOne)}}function Z(n,v){1&n&&(t.\u0275\u0275elementStart(0,"div",50),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()),2&n&&(t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(2,1,"TEXT_YES")))}function k(n,v){1&n&&(t.\u0275\u0275elementStart(0,"div",50),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()),2&n&&(t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(2,1,"TEXT_NOT")))}function G(n,v){if(1&n&&(t.\u0275\u0275elementStart(0,"div",49)(1,"div",44),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(4,Z,3,3,"div",51),t.\u0275\u0275template(5,k,3,3,"div",51),t.\u0275\u0275elementEnd()),2&n){const r=t.\u0275\u0275nextContext();t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(3,3,"PG_CREATE_RESUME_LG_STEP_TEXT_HASCART")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",r.hasCart),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!r.hasCart)}}function Q(n,v){if(1&n&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275elementStart(1,"div",49)(2,"div",44),t.\u0275\u0275text(3),t.\u0275\u0275pipe(4,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(5,"div",50),t.\u0275\u0275text(6),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementContainerEnd()),2&n){const r=t.\u0275\u0275nextContext();t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(4,2,"PG_CREATE_RESUME_LG_STEP_TEXT_LICENSEPLATTWO")," "),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(r.licensePlateTwo)}}function q(n,v){1&n&&(t.\u0275\u0275elementStart(0,"div",50),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()),2&n&&(t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(2,1,"TEXT_YES")))}function ee(n,v){1&n&&(t.\u0275\u0275elementStart(0,"div",50),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()),2&n&&(t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(2,1,"TEXT_NOT")))}function te(n,v){if(1&n&&(t.\u0275\u0275elementStart(0,"div",49)(1,"div",44),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(4,q,3,3,"div",51),t.\u0275\u0275template(5,ee,3,3,"div",51),t.\u0275\u0275elementEnd()),2&n){const r=t.\u0275\u0275nextContext();t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(3,3,"PG_CREATE_RESUME_LG_STEP_TEXT_ON_FOOT")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",r.onFoot),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!r.onFoot)}}function ne(n,v){1&n&&(t.\u0275\u0275elementStart(0,"div",50),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()),2&n&&(t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(2,1,"TEXT_YES")))}function oe(n,v){1&n&&(t.\u0275\u0275elementStart(0,"div",50),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()),2&n&&(t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(2,1,"TEXT_NOT")))}function ie(n,v){if(1&n&&(t.\u0275\u0275elementStart(0,"div",52)(1,"div",44),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(4,ne,3,3,"div",51),t.\u0275\u0275template(5,oe,3,3,"div",51),t.\u0275\u0275elementEnd()),2&n){const r=t.\u0275\u0275nextContext();t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(3,3,"PG_CREATE_RESUME_LG_STEP_TEXT_LOCATOR_PRE_AUTHORIZED")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",r.locatorPreAuthorized),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!r.locatorPreAuthorized)}}function re(n,v){1&n&&(t.\u0275\u0275elementStart(0,"div",50),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()),2&n&&(t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(2,1,"TEXT_YES")))}function ae(n,v){1&n&&(t.\u0275\u0275elementStart(0,"div",50),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()),2&n&&(t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(2,1,"TEXT_NOT")))}function ce(n,v){if(1&n&&(t.\u0275\u0275elementStart(0,"div",49)(1,"div",44),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(4,re,3,3,"div",51),t.\u0275\u0275template(5,ae,3,3,"div",51),t.\u0275\u0275elementEnd()),2&n){const r=t.\u0275\u0275nextContext();t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(3,3,"PG_CREATE_RESUME_LG_STEP_TEXT_PRE_AUTHORIZED")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",!r.needAuthorization),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",r.needAuthorization)}}function le(n,v){1&n&&(t.\u0275\u0275elementStart(0,"div",50),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()),2&n&&(t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(2,1,"TEXT_YES")))}function se(n,v){1&n&&(t.\u0275\u0275elementStart(0,"div",50),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()),2&n&&(t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(2,1,"TEXT_NOT")))}function de(n,v){if(1&n&&(t.\u0275\u0275elementStart(0,"div",49)(1,"div",44),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(4,le,3,3,"div",51),t.\u0275\u0275template(5,se,3,3,"div",51),t.\u0275\u0275elementEnd()),2&n){const r=t.\u0275\u0275nextContext();t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(3,3,"PG_CREATE_RESUME_LG_STEP_TEXT_MULTI_CHECKIN")),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",r.multiCheckin),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!r.multiCheckin)}}function i(n,v){if(1&n&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275elementStart(1,"div",53)(2,"div",44),t.\u0275\u0275text(3),t.\u0275\u0275pipe(4,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(5,"div",50),t.\u0275\u0275text(6),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementContainerEnd()),2&n){const r=t.\u0275\u0275nextContext();t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(4,2,"PG_CREATE_RESUME_LG_STEP_TEXT_NOTES")),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(r.notes)}}const o=[{path:"",component:(()=>{class n{constructor(r,s,g,d,p,C,x,ge,_e,ve,me,ue,Ce,Ee,he,fe,Pe,Oe){var a=this;this.createLogisticEventService=r,this.navigationService=s,this.loadingService=g,this.notificatorService=d,this.momentService=p,this.activatedRoute=C,this.router=x,this.logService=ge,this.geolocationService=_e,this.modalController=ve,this.resumeCreateEventInterruptedService=me,this.translateConfigService=ue,this.focusService=Ce,this.apiService=Ee,this.authService=he,this.profileManagerService=fe,this.portalLoginManagerService=Pe,this.userPhotoService=Oe,this.existPendings=!1,this.recurrenceDates=[],this.navigateToQRCode=()=>{this.navigationService.root(["/home"])},this.navigateToPendingLiberations=()=>{this.navigationService.forward(["/push-notifications"])},this.setEventValues=l=>{l&&(this.event=l,this.isNew=!l.id,this.title=l.title,this.startAt=this.momentService.formatAsEventAt(l.startAt),this.endAt=this.momentService.formatAsEventAt(l.endAt),this.driver=l.driver,this.assistants=l.assistants,this.needAuthorization=l.needAuthorization,this.multiCheckin=l.multiCheckin,this.hasCart=l.hasCart,this.onFoot=l.onFoot,this.licensePlateOne=l.licensePlateOne,this.licensePlateTwo=l.licensePlateTwo,this.notes=l.notes,this.directionEvent=l.directionEvent,this.locator=l.locator,this.useOwnLocator=l.useOwnLocator,this.useLocatorPreAuthorized=l.useLocatorPreAuthorized,this.locatorPreAuthorized=l.locatorPreAuthorized,this.recurrent=this.createLogisticEventService.getRecurrent(),this.recurrenceDates=this.createLogisticEventService.getRecurrenceDates())},this.onFixEventErrors=()=>{this.event.autoRelease=!this.event.needAuthorization;const l=this.createLogisticEventService.getType();let _=this.createLogisticEventService.getAction();"approve-event-review"===_&&(_="approve-event-edit");const f={state:{action:_,event:this.event,eventType:l,approveEventReview:this.createLogisticEventService.getApproveEventReview()?this.createLogisticEventService.getApproveEventReview():null}};this.navigationService.back(["/logistic-events/create/event-name"],f)},this.getInitialsFromFullName=l=>{const _=l.split(" "),f=_[0]?_[0]:"",S=_[_.length-1]?_[_.length-1]:"";return((f?f.substring(0,1):"")+(S?S.substring(0,1):"")).toUpperCase()},this.getInitials=(l,_)=>((l?l.substring(0,1):"")+(_?_.substring(0,1):"")).toUpperCase(),this.createEvent=(0,m.Z)(function*(){a.loadingService.show(a.translateConfigService.translate("PG_CREATE_RESUME_LG_STEP_LOADING_CREATING_EVENT"),"create-event");const l=a.profileManagerService.getProfile();let _=null;try{const T=yield a.getProfileRelatedAccessToken(l);try{const{authorized:y}=yield a.checkSoftLock(T);try{y||(_=yield a.geoCoordinates("geolocation::createEventLogistic","create-event"))}catch(Me){console.log("Erro ao pegar coordendas do dispositvo GPS"),a.logService.logError("geolocation::createEvent::geoCoordinates","Error get coordenates on Device GPS",Me)}}catch(y){a.logService.logError("http::createEvent::checkSoftLock","Error checkSoftLock",y),console.log("erro check checkSoftLock")}}catch(T){console.log("Erro ao obter accessToken"),a.logService.logError("http::createEvent::getProfileRelatedAccessToken","Error get Profile Related AccessToken",T)}let f=a.createLogisticEventService.getType();"CLONE_EXIT"===f?f="ENTRY":"CLONE_ENTRY"===f&&(f="EXIT");const S={type:f,title:a.createLogisticEventService.getTitle(),startAt:a.createLogisticEventService.getStartDate(),endAt:a.createLogisticEventService.getEndDate(),driver:a.createLogisticEventService.getDriver(),assistants:a.createLogisticEventService.getAssistants(),autoRelease:!a.createLogisticEventService.getNeedAuthorization(),hasCart:a.createLogisticEventService.getHasCart(),onFoot:a.createLogisticEventService.getOnFoot(),multiCheckin:a.createLogisticEventService.getMultiCheckIn(),directionEvent:a.directionEvent,licensePlateOne:a.createLogisticEventService.getLicensePlateOne(),licensePlateTwo:a.createLogisticEventService.getLicensePlateTwo(),notes:a.createLogisticEventService.getNotes(),locator:a.createLogisticEventService.getLocator(),useOwnLocator:a.createLogisticEventService.getUseOwnLocator(),useLocatorPreAuthorized:a.createLogisticEventService.getUseLocatorPreAuthorized(),locatorPreAuthorized:a.createLogisticEventService.getLocatorPreAuthorized(),geoCoordinates:_,recurrent:a.createLogisticEventService.getRecurrent(),recurrenceDates:a.createLogisticEventService.getRecurrenceDates()};a.createLogisticEventService.createEvent(S).then(a.handleCreateEventSuccessResponse).catch(a.handleCreateEventErrorResponse)}),this.handleCreateEventSuccessResponse=l=>{this.loadingService.hide(null,"create-event"),"EXIT"==l.behavior?(this.navigationService.forward(["/home"]),this.resumeCreateEventInterruptedService.clearProfileLogisticCreationInterrupte(),this.resumeCreateEventInterruptedService.clearResumeCreationInterrupte(),this.createLogisticEventService.clearCreateEventData()):this.navigationService.forward(["/logistic-events/create/event-share"]);const _={title:this.translateConfigService.translate("PG_CREATE_RESUME_LG_STEP_TOAST_CREATE_TITLE"),message:this.translateConfigService.translate("PG_CREATE_RESUME_LG_STEP_TOAST_CREATE_MESSAGE"),type:"success",timeout:5e3};this.createLogisticEventService.setLocator(l.locator),this.notificatorService.notify(_)},this.handleCreateEventErrorResponse=l=>{console.log("handleCreateEventErrorResponse"),console.log("error:",l),this.logService.logError("http::handleCreateEventErrorResponseLogistic","",l),this.loadingService.hide(null,"create-event");let _="";_=this.translateConfigService.translate(400===l.status?"notmatched"===l.error.errorKey?"PG_CREATE_RESUME_LG_STEP_TOAST_NOMATCHED":"geocoordinatesunauthorized"===l.error.errorKey?"PG_CREATE_RESUME_LG_STEP_TOAST_COORDINATES_UNAUTHORIZED":"locator"===l.error.fieldErrors[0].field&&"inUse"===l.error.fieldErrors[0].message?"PG_CREATE_RESUME_LG_STEP_TOAST_LOCATOR_INUSE":"PG_CREATE_RESUME_LG_STEP_TOAST_ERROR_UPDATE":403===l.status?"PG_CREATE_RESUME_LG_STEP_TOAST_FORBIDDEN_UPDATE":"PG_CREATE_RESUME_LG_STEP_TOAST_ERROR_UPDATE");const f={title:this.translateConfigService.translate("TOAST_TITLE_ERROR"),message:_,type:"error"};this.notificatorService.notify(f)},this.updateEvent=(0,m.Z)(function*(){a.loadingService.show(a.translateConfigService.translate("PG_CREATE_RESUME_LG_STEP_LOADING_UPDATING_EVENT"),"update-event");let l=null;const _=a.profileManagerService.getProfile();try{const S=yield a.getProfileRelatedAccessToken(_);try{const{authorized:T}=yield a.checkSoftLock(S);try{T||(l=yield a.geoCoordinates("geolocation::updateEventLogistic","update-event"))}catch(y){console.log("Erro ao pegar coordendas do dispositvo GPS"),a.loadingService.hide(null,"update-event"),a.logService.logError("geolocation::updateEventLogistic::geoCoordinates","Error get coordenates on Device GPS",y)}}catch(T){a.loadingService.hide(null,"update-event"),a.logService.logError("http::updateEventLogistic::checkSoftLock","Error checkSoftLock",T),console.log("erro check checkSoftLock")}}catch(S){console.log("Erro ao obter accessToken"),a.loadingService.hide(null,"update-event"),a.logService.logError("http::updateEventLogistic::getProfileRelatedAccessToken","Error get Profile Related AccessToken",S)}const f={id:a.createLogisticEventService.getId(),type:a.createLogisticEventService.getType(),title:a.createLogisticEventService.getTitle(),startAt:a.createLogisticEventService.getStartDate(),endAt:a.createLogisticEventService.getEndDate(),driver:a.createLogisticEventService.getDriver(),assistants:a.createLogisticEventService.getAssistants(),autoRelease:!a.createLogisticEventService.getNeedAuthorization(),hasCart:a.createLogisticEventService.getHasCart(),onFoot:a.createLogisticEventService.getOnFoot(),licensePlateOne:a.createLogisticEventService.getLicensePlateOne(),licensePlateTwo:a.createLogisticEventService.getLicensePlateTwo(),notes:a.createLogisticEventService.getNotes(),multiCheckin:a.createLogisticEventService.getMultiCheckIn(),locator:a.createLogisticEventService.getLocator(),directionEvent:a.directionEvent,useOwnLocator:a.createLogisticEventService.getUseOwnLocator(),useLocatorPreAuthorized:a.createLogisticEventService.getUseLocatorPreAuthorized(),locatorPreAuthorized:a.createLogisticEventService.getLocatorPreAuthorized(),geoCoordinates:l,recurrent:a.createLogisticEventService.getRecurrent(),recurrenceDates:a.createLogisticEventService.getRecurrenceDates()};a.createLogisticEventService.updateEvent(f).then(a.handleUpdateEventSuccessResponse).catch(a.handleUpdateEventErrorResponse).finally(()=>{a.loadingService.hide(null,"update-event")})}),this.handleUpdateEventSuccessResponse=l=>{console.log("handleUpdateEventSuccessResponse"),console.log("response:",l),this.loadingService.hide(null,"update-event");const _={title:this.translateConfigService.translate("PG_CREATE_RESUME_LG_STEP_TOAST_UPDATE_TITLE"),message:this.translateConfigService.translate("PG_CREATE_RESUME_LG_STEP_TOAST_UPDATE_MESSAGE"),type:"success"};this.notificatorService.notify(_);const T={state:{eventId:this.event.id,companyInstanceName:l.company.instanceName}};this.resumeCreateEventInterruptedService.clearProfileVoCreationInterrupte(),this.resumeCreateEventInterruptedService.clearResumeCreationInterrupte(),this.navigationService.forward(["/view-logistic-event/"],T)},this.handleUpdateEventErrorResponse=l=>{console.log("handleUpdateEventErrorResponse"),console.log("error:",l),this.logService.logError("http::handleUpdateEventErrorResponseLogistic","",l),this.loadingService.hide(null,"update-event");let _="";_=this.translateConfigService.translate(400===l.status?"notmatched"===l.error.errorKey?"PG_CREATE_RESUME_LG_STEP_TOAST_NOMATCHED":"geocoordinatesunauthorized"===l.error.errorKey?"PG_CREATE_RESUME_LG_STEP_TOAST_COORDINATES_UNAUTHORIZED_UPDATE":"locator"===l.error.fieldErrors[0].field&&"inUse"===l.error.fieldErrors[0].message?"PG_CREATE_RESUME_LG_STEP_TOAST_LOCATOR_INUSE":"PG_CREATE_RESUME_LG_STEP_TOAST_ERROR_UPDATE":403===l.status?"PG_CREATE_RESUME_LG_STEP_TOAST_FORBIDDEN_UPDATE":"PG_CREATE_RESUME_LG_STEP_TOAST_ERROR_UPDATE");const f={title:this.translateConfigService.translate("TOAST_TITLE_ERROR"),message:_,type:"error"};this.notificatorService.notify(f)},this.approveEvent=(0,m.Z)(function*(){a.loadingService.show(a.translateConfigService.translate("LOADING_APROVING"),"approve-event-review");let l=null;const _=a.profileManagerService.getProfile();try{const S=yield a.getProfileRelatedAccessToken(_);try{const{authorized:T}=yield a.checkSoftLock(S);try{T||(l=yield a.geoCoordinates("geolocation::approveEventLogistic","update-event"))}catch(y){a.loadingService.hide(null,"approve-event-review"),console.log("Erro ao pegar coordendas do dispositvo GPS"),a.logService.logError("geolocation::approveEventLogistic::geoCoordinates","Error get coordenates on Device GPS",y)}}catch(T){a.loadingService.hide(null,"approve-event-review"),a.logService.logError("http::approveEventLogistic::checkSoftLock","Error checkSoftLock",T),console.log("erro check checkSoftLock")}}catch(S){console.log("Erro ao obter accessToken"),a.loadingService.hide(null,"approve-event-review"),a.logService.logError("http::approveEventLogistic::getProfileRelatedAccessToken","Error get Profile Related AccessToken",S)}const f={id:a.createLogisticEventService.getId(),type:a.createLogisticEventService.getType(),title:a.createLogisticEventService.getTitle(),startAt:a.createLogisticEventService.getStartDate(),endAt:a.createLogisticEventService.getEndDate(),driver:a.createLogisticEventService.getDriver(),assistants:a.createLogisticEventService.getAssistants(),autoRelease:!a.createLogisticEventService.getNeedAuthorization(),hasCart:a.createLogisticEventService.getHasCart(),onFoot:a.createLogisticEventService.getOnFoot(),licensePlateOne:a.createLogisticEventService.getLicensePlateOne(),licensePlateTwo:a.createLogisticEventService.getLicensePlateTwo(),notes:a.createLogisticEventService.getNotes(),multiCheckin:a.createLogisticEventService.getMultiCheckIn(),geoCoordinates:l};a.createLogisticEventService.approveEvent(f).then(a.handleApproveEventSuccessResponse).catch(a.handleApproveEventErrorResponse).finally(()=>{a.loadingService.hide(null,"approve-event-review")})}),this.handleApproveEventSuccessResponse=l=>{console.log("handleApproveEventSuccessResponse"),console.log("response:",l);const _=l.company.instanceName;this.loadingService.hide(null,"approve-event-review");const f={title:this.translateConfigService.translate("PG_CREATE_RESUME_LG_STEP_TOAST_APPROVE_TITLE"),message:this.translateConfigService.translate("PG_CREATE_RESUME_LG_STEP_TOAST_APPROVE_MESSAGE"),type:"success"};this.notificatorService.notify(f);const T={state:{eventId:this.event.id,companyInstanceName:_}};this.isApproveEventReview()?(this.navigationService.forward(["/push-notifications"]),localStorage.setItem("forcer_reload","TRUE")):this.navigationService.forward(["/view-logistic-event/"],T)},this.handleApproveEventErrorResponse=l=>{console.log("handleApproveEventErrorResponse"),console.log("error:",l),this.logService.logError("http::handleApproveEventErrorResponseLogistic","",l),this.loadingService.hide(null,"approve-event-review");let _="";_=this.translateConfigService.translate(400===l.status?"notmatched"===l.error.errorKey?"PG_CREATE_RESUME_LG_STEP_TOAST_NOMATCHED":"PG_CREATE_RESUME_LG_STEP_TOAST_ERROR_UPDATE":403===l.status?"PG_CREATE_RESUME_LG_STEP_TOAST_FORBIDDEN_UPDATE":"PG_CREATE_RESUME_LG_STEP_TOAST_ERROR_UPDATE");const f={title:this.translateConfigService.translate("TOAST_TITLE_ERROR"),message:_,type:"error"};this.notificatorService.notify(f)},this.reproveEvent=(0,m.Z)(function*(){const l=yield a.modalController.create({component:D.ue});l.onDidDismiss().then(function(){var _=(0,m.Z)(function*(f){const S=f.data.reason;if(null===S)return;a.loadingService.show(a.translateConfigService.translate("PG_CREATE_RESUME_LG_STEP_LOADING_FAILING_EVENT"),"reprove-event");const T={id:a.createLogisticEventService.getId(),message:S};a.createLogisticEventService.denyEvent(T).then(a.handleReproveEventSuccessResponse).catch(a.handleReproveEventErrorResponse)});return function(f){return _.apply(this,arguments)}}()),yield l.present()}),this.handleReproveEventSuccessResponse=l=>{console.log("handleReproveEventSuccessResponse"),console.log("response:",l),this.loadingService.hide(null,"reprove-event");const _={title:this.translateConfigService.translate("PG_CREATE_RESUME_LG_STEP_TOAST_REPROVE_TITLE"),message:this.translateConfigService.translate("PG_CREATE_RESUME_LG_STEP_TOAST_REPROVE_MESSAGE"),type:"success"};this.notificatorService.notify(_),this.navigationService.forward(["/push-notifications"])},this.handleReproveEventErrorResponse=l=>{console.log("handleReproveEventErrorResponse"),console.log("error:",l),this.logService.logError("http::handleReproveEventErrorResponseLogistic","",l),this.loadingService.hide(null,"reprove-event");let _="";_=this.translateConfigService.translate(400===l.status?"notmatched"===l.error.errorKey?"PG_CREATE_RESUME_LG_STEP_TOAST_NOMATCHED":"PG_CREATE_RESUME_LG_STEP_TOAST_ERROR_UPDATE":403===l.status?"PG_CREATE_RESUME_LG_STEP_TOAST_FORBIDDEN_UPDATE":"PG_CREATE_RESUME_LG_STEP_TOAST_ERROR_UPDATE");const f={title:this.translateConfigService.translate("TOAST_TITLE_ERROR"),message:_,type:"error"};this.notificatorService.notify(f)},this.isEditing=()=>"edit"===this.createLogisticEventService.getAction()&&!("CLONE_ENTRY"===this.createLogisticEventService.getType()||"CLONE_EXIT"===this.createLogisticEventService.getType()),this.isCreating=()=>(console.log("isCreating type:",this.createLogisticEventService.getType()),console.log("isCreating action:",this.createLogisticEventService.getAction()),"CLONE_EXIT"===this.createLogisticEventService.getType()||"CLONE_ENTRY"===this.createLogisticEventService.getType()||"ENTRY"===this.createLogisticEventService.getType()&&"create"===this.createLogisticEventService.getAction()||"EXIT"===this.createLogisticEventService.getType()&&"create"===this.createLogisticEventService.getAction()),this.isApprovingEvent=()=>"approve-event-review"===this.createLogisticEventService.getAction()||"approve-event-edit"===this.createLogisticEventService.getAction(),this.title="",this.startAt="",this.endAt="",this.licensePlateOne="",this.licensePlateTwo="",this.notes="",this.locator="",this.useOwnLocator=!1,this.useLocatorPreAuthorized=!1,this.locatorPreAuthorized=!1,this.driver=null,this.onFoot=!1,this.hasCart=!1,this.needAuthorization=!1,this.assistants=[],this.activatedRoute.queryParams.subscribe(l=>{this.router.getCurrentNavigation().extras.state&&(this.event=this.router.getCurrentNavigation().extras.state.event,this.setEventValues(this.event))})}ionViewWillEnter(){this.focusService.applyFocusQuerySelector("create_event_resume",3500);const r=[...this.assistants??[]];this.driver&&r.push(this.driver),this.userPhotoService.enrichUsersWithPhotos(r)}ionViewDidLeave(){}isApproveEventReview(){return"TRUE"===this.createLogisticEventService.getApproveEventReview()}geoCoordinates(r,s){var g=this;return(0,m.Z)(function*(){try{const d=yield g.geolocationService.getCurrentPositionAndRequestPermission();return{lat:d&&d.coords&&d.coords.latitude?d.coords.latitude:null,lng:d&&d.coords&&d.coords.longitude?d.coords.longitude:null}}catch(d){g.loadingService.hide(null,s),g.logService.logError(r,"",d);const p={title:g.translateConfigService.translate("PG_CREATE_RESUME_LG_STEP_TOAST_GETTING_LOCATION_TITLE"),message:g.translateConfigService.translate("PG_CREATE_RESUME_LG_STEP_TOAST_GETTING_LOCATION_MESSAGE"),type:"error",timeout:5e3};return g.notificatorService.notify(p),d}})()}getProfileRelatedAccessToken(r){return new Promise((s,g)=>{this.authService.getToken().then(d=>this.portalLoginManagerService.getAccessToken(r.login,r.portal,d)).then(d=>{s(d.access_token)}).catch(g)})}checkSoftLock(r){var s=this;return(0,m.Z)(function*(){const d=s.profileManagerService.getProfile()?.company?.instanceName;try{const{authorized:p}=yield s.apiService.checkSoftLock(d,null,null,r).toPromise();return{authorized:p}}catch(p){throw p}})()}}return n.\u0275fac=function(r){return new(r||n)(t.\u0275\u0275directiveInject(O.V),t.\u0275\u0275directiveInject(O.f5),t.\u0275\u0275directiveInject(O.bz),t.\u0275\u0275directiveInject(O.V6),t.\u0275\u0275directiveInject(O.EM),t.\u0275\u0275directiveInject(e.ActivatedRoute),t.\u0275\u0275directiveInject(e.Router),t.\u0275\u0275directiveInject(O.$V),t.\u0275\u0275directiveInject(O._1),t.\u0275\u0275directiveInject(R.ModalController),t.\u0275\u0275directiveInject(O.NL),t.\u0275\u0275directiveInject(O.wK),t.\u0275\u0275directiveInject(I.i),t.\u0275\u0275directiveInject(O.sM),t.\u0275\u0275directiveInject(O.e8),t.\u0275\u0275directiveInject(O.v4),t.\u0275\u0275directiveInject(O.dj),t.\u0275\u0275directiveInject(O.IR))},n.\u0275cmp=t.\u0275\u0275defineComponent({type:n,selectors:[["app-event-resume"]],decls:54,vars:41,consts:[["defaultHref","/logistic-events/create/event-options",3,"title","showBadge","refresh","menuToggle"],[1,"centralized-content"],[1,"page-title"],["id","create_event_resume","tabindex","1",1,"sub-title"],[1,"actions"],[1,"button-holder"],[1,"button-group"],["class","create-event",4,"ngIf"],[1,"fix-errors"],["type","button",1,"back",3,"click"],["tabindex","3"],["tabindex","4","role","contentinfo",1,"event"],[1,"section","title"],["tabindex","5",1,"value"],[1,"section","guests"],["tabindex","6",1,"label"],["class","guests-holder",4,"ngIf"],["class","hosts-empty","tabindex","7",4,"ngIf"],[1,"section"],[1,"start-at"],["tabindex","8",1,"label"],["tabindex","9",1,"value"],[1,"end-at"],["tabindex","10",1,"label"],["tabindex","11",1,"value"],["class","section recurrences",4,"ngIf"],["class","section guests",4,"ngIf"],[4,"ngIf"],["class","section option multi-check-in",4,"ngIf"],["class","section option locator-pre-authorized",4,"ngIf"],[1,"create-event"],["type","submit",3,"click",4,"ngIf"],["type","submit",3,"click"],["tabindex","2"],["class","danger",3,"click",4,"ngIf"],[1,"danger",3,"click"],[1,"guests-holder"],[1,"guest"],[3,"firstName","lastName","thumbnailImage","size"],["tabindex","7",1,"full-name"],["tabindex","7",1,"hosts-empty"],[1,"section","recurrences"],["tabindex","12",1,"label"],[3,"showShortDateList","recurrenceDates"],[1,"label"],["class","guests-empty",4,"ngIf"],["class","guest",4,"ngFor","ngForOf"],[1,"full-name"],[1,"guests-empty"],[1,"section","option","multi-check-in"],[1,"value"],["class","value",4,"ngIf"],[1,"section","option","locator-pre-authorized"],[1,"section","option","add-companion"]],template:function(r,s){1&r&&(t.\u0275\u0275element(0,"app-header",0),t.\u0275\u0275pipe(1,"translate"),t.\u0275\u0275elementStart(2,"ion-content")(3,"div",1)(4,"div",2)(5,"div",3),t.\u0275\u0275text(6),t.\u0275\u0275pipe(7,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(8,"div",4)(9,"div",5)(10,"div",6),t.\u0275\u0275template(11,B,3,2,"div",7),t.\u0275\u0275template(12,j,6,4,"div",7),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(13,"div",8)(14,"button",9),t.\u0275\u0275listener("click",function(){return s.onFixEventErrors()}),t.\u0275\u0275elementStart(15,"span",10),t.\u0275\u0275text(16),t.\u0275\u0275pipe(17,"translate"),t.\u0275\u0275elementEnd()()()()(),t.\u0275\u0275elementStart(18,"ion-row")(19,"ion-col")(20,"div",11)(21,"div",12)(22,"div",13),t.\u0275\u0275pipe(23,"translate"),t.\u0275\u0275text(24),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(25,"div",14)(26,"div",15),t.\u0275\u0275text(27),t.\u0275\u0275pipe(28,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(29,W,5,5,"div",16),t.\u0275\u0275template(30,X,3,3,"div",17),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(31,"div",18)(32,"div",19)(33,"div",20),t.\u0275\u0275text(34),t.\u0275\u0275pipe(35,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(36,"div",21),t.\u0275\u0275text(37),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(38,"div",22)(39,"div",23),t.\u0275\u0275text(40),t.\u0275\u0275pipe(41,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(42,"div",24),t.\u0275\u0275text(43),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275template(44,Y,5,5,"div",25),t.\u0275\u0275template(45,K,6,5,"div",26),t.\u0275\u0275template(46,$,7,4,"ng-container",27),t.\u0275\u0275template(47,G,6,5,"div",28),t.\u0275\u0275template(48,Q,7,4,"ng-container",27),t.\u0275\u0275template(49,te,6,5,"div",28),t.\u0275\u0275template(50,ie,6,5,"div",29),t.\u0275\u0275template(51,ce,6,5,"div",28),t.\u0275\u0275template(52,de,6,5,"div",28),t.\u0275\u0275template(53,i,7,4,"ng-container",27),t.\u0275\u0275elementEnd()()()()()),2&r&&(t.\u0275\u0275property("title",t.\u0275\u0275pipeBind1(1,27,"PG_CREATE_RESUME_LG_STEP_HEADER_TITLE"))("showBadge",!0)("refresh",!1)("menuToggle",!1),t.\u0275\u0275advance(6),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(7,29,"PG_CREATE_RESUME_LG_STEP_TEXT_SUBTITLE")," "),t.\u0275\u0275advance(5),t.\u0275\u0275property("ngIf",s.isCreating()||s.isEditing()&&!s.isApproveEventReview()),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",s.isApprovingEvent()||s.isApproveEventReview()),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(17,31,"PG_CREATE_RESUME_LG_STEP_BTN_EDIT")),t.\u0275\u0275advance(6),t.\u0275\u0275attribute("aria-label",t.\u0275\u0275pipeBind1(23,33,"PG_CREATE_RESUME_LG_STEP_BTN_EDIT")),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",s.title," "),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(28,35,"PG_CREATE_RESUME_LG_STEP_TEXT_DRIVER")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",s.driver),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null===s.driver),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(35,37,"PG_CREATE_RESUME_LG_STEP_TEXT_STARTAT")," "),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(s.startAt),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(41,39,"PG_CREATE_RESUME_LG_STEP_TEXT_ENDAT")," "),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(s.endAt),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",s.recurrent),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf","ENTRY"===s.directionEvent||"CLONE_EXIT"===s.directionEvent),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",s.licensePlateOne),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!s.hasCart&&!s.licensePlateTwo&&!s.onFoot),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",s.licensePlateTwo),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",s.onFoot&&!s.licensePlateOne),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",s.useOwnLocator&&s.useLocatorPreAuthorized&&("ENTRY"===s.directionEvent||"CLONE_EXIT"===s.directionEvent)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf","ENTRY"===s.directionEvent||"CLONE_EXIT"===s.directionEvent),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",s.multiCheckin&&("ENTRY"===s.directionEvent||"CLONE_EXIT"===s.directionEvent)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",s.notes))},dependencies:[b.NgForOf,b.NgIf,R.IonCol,R.IonContent,R.IonRow,w.A,F.G,V._,N.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%] .actions[_ngcontent-%COMP%]{display:flex;align-content:center;justify-content:center}.centralized-content[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;flex-direction:column;margin:0}.centralized-content[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] .fix-errors[_ngcontent-%COMP%]{margin-top:24px}.centralized-content[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] button[type=submit][_ngcontent-%COMP%]{padding:.75em 1.5em;border-radius:50px;background-color:#0ec254;color:#fff;font-size:1em;transition:background-color .1s ease-out}.centralized-content[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] button[type=submit][_ngcontent-%COMP%]:active{background-color:#fff;color:#0ec254;transition:background-color .1s ease-out}.centralized-content[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] button[type=submit][_ngcontent-%COMP%]:focus{outline:none}.centralized-content[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] button.danger[_ngcontent-%COMP%]{margin-left:24px}.centralized-content[_ngcontent-%COMP%] .event[_ngcontent-%COMP%]{background-color:#fff;margin:20px}.centralized-content[_ngcontent-%COMP%] .section[_ngcontent-%COMP%]{padding:12px 0;border-bottom:1px solid #eee}.centralized-content[_ngcontent-%COMP%] .section[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{width:80%;margin:0 10% 2px;font-size:.8em;color:#656768}.centralized-content[_ngcontent-%COMP%] .section[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{width:80%;margin:0 10%}.centralized-content[_ngcontent-%COMP%] .section.title[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{font-weight:700;color:#333;font-size:1.2em;text-align:center}.centralized-content[_ngcontent-%COMP%] .section.guests[_ngcontent-%COMP%] .guest[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%] .section.guests[_ngcontent-%COMP%] .host[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%] .section.hosts[_ngcontent-%COMP%] .guest[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%] .section.hosts[_ngcontent-%COMP%] .host[_ngcontent-%COMP%]{display:flex;width:80%;margin:0 10% 4px;padding:4px 8px;align-items:center;gap:10px}.centralized-content[_ngcontent-%COMP%] .section.guests[_ngcontent-%COMP%] .guest[_ngcontent-%COMP%] app-avatar[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%] .section.guests[_ngcontent-%COMP%] .host[_ngcontent-%COMP%] app-avatar[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%] .section.hosts[_ngcontent-%COMP%] .guest[_ngcontent-%COMP%] app-avatar[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%] .section.hosts[_ngcontent-%COMP%] .host[_ngcontent-%COMP%] app-avatar[_ngcontent-%COMP%]{flex-shrink:0}.centralized-content[_ngcontent-%COMP%] .section.guests[_ngcontent-%COMP%] .guest[_ngcontent-%COMP%] .full-name[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%] .section.guests[_ngcontent-%COMP%] .host[_ngcontent-%COMP%] .full-name[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%] .section.hosts[_ngcontent-%COMP%] .guest[_ngcontent-%COMP%] .full-name[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%] .section.hosts[_ngcontent-%COMP%] .host[_ngcontent-%COMP%] .full-name[_ngcontent-%COMP%]{flex:1;min-width:0}.centralized-content[_ngcontent-%COMP%] .section.guests[_ngcontent-%COMP%] .guest[_ngcontent-%COMP%] .department[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%] .section.guests[_ngcontent-%COMP%] .host[_ngcontent-%COMP%] .department[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%] .section.hosts[_ngcontent-%COMP%] .guest[_ngcontent-%COMP%] .department[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%] .section.hosts[_ngcontent-%COMP%] .host[_ngcontent-%COMP%] .department[_ngcontent-%COMP%]{font-size:.8em;color:#aaa}.centralized-content[_ngcontent-%COMP%] .section.guests[_ngcontent-%COMP%] .hosts-empty[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%] .section.guests[_ngcontent-%COMP%] .guests-empty[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%] .section.hosts[_ngcontent-%COMP%] .hosts-empty[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%] .section.hosts[_ngcontent-%COMP%] .guests-empty[_ngcontent-%COMP%]{width:80%;margin:0 10% 4px}.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)}}"]}),n})()}];let c=(()=>{class n{}return n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=t.\u0275\u0275defineNgModule({type:n}),n.\u0275inj=t.\u0275\u0275defineInjector({imports:[M.I,P.D,e.RouterModule.forChild(o)]}),n})()},37763:(pe,A,E)=>{E.d(A,{i:()=>t});var e=E(61380),M=E(92198),m=E(45449);let t=(()=>{class O{constructor(I){this.router=I}focusInRouterNavigate(){this.router.events.pipe((0,M.h)(I=>I instanceof e.NavigationEnd)).subscribe(()=>{const I=document.querySelector("#focusHeader");I&&I?.focus()})}applyFocusQuerySelector(I,b){setTimeout(()=>{document.querySelector(`#${I}`)?.focus()},b)}}return O.\u0275fac=function(I){return new(I||O)(m.\u0275\u0275inject(e.Router))},O.\u0275prov=m.\u0275\u0275defineInjectable({token:O,factory:O.\u0275fac,providedIn:"root"}),O})()}}]); |