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

1 line
113 KiB
JavaScript

(self.webpackChunkapp=self.webpackChunkapp||[]).push([[928],{30928:(ge,b,C)=>{C.r(b),C.d(b,{CreateEventEventResumePageModule:()=>d});var e=C(61380),P=C(64921),S=C(69270),_=C(15861),L=C(15439),D=C.n(L),x=C(71994),t=C(45449),h=C(47898),R=C(90603),k=C(21284),V=C(37763),w=C(90944),U=C(87871),u=C(36290),y=C(96893),j=C(99826);function z(n,i){if(1&n){const o=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",30),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(o);const l=t.\u0275\u0275nextContext(3);return t.\u0275\u0275resetView(l.createEvent())}),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()}if(2&n){const o=t.\u0275\u0275nextContext(2).ngIf;t.\u0275\u0275property("disabled","Offline"===o.status),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(2,2,"PG_CREATE_RESUME_STEP_BTN_CREATE")," ")}}function W(n,i){if(1&n){const o=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",30),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(o);const l=t.\u0275\u0275nextContext(3);return t.\u0275\u0275resetView(l.updateEvent())}),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()}if(2&n){const o=t.\u0275\u0275nextContext(2).ngIf;t.\u0275\u0275property("disabled","Offline"===o.status),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(2,2,"PG_CREATE_RESUME_STEP_BTN_SALVE")," ")}}function H(n,i){if(1&n&&(t.\u0275\u0275elementStart(0,"div",28),t.\u0275\u0275template(1,z,3,4,"button",29),t.\u0275\u0275template(2,W,3,4,"button",29),t.\u0275\u0275elementEnd()),2&n){const o=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",o.isCreating()),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",o.isEditing())}}function K(n,i){if(1&n){const o=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",32),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(o);const l=t.\u0275\u0275nextContext(3);return t.\u0275\u0275resetView(l.reproveEvent())}),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()}if(2&n){const o=t.\u0275\u0275nextContext(2).ngIf;t.\u0275\u0275property("disabled","Offline"===o.status),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(2,2,"PG_CREATE_RESUME_STEP_BTN_REPROVE")," ")}}function X(n,i){if(1&n){const o=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",28)(1,"button",30),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(o);const l=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(l.approveEvent())}),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(4,K,3,4,"button",31),t.\u0275\u0275elementEnd()}if(2&n){const o=t.\u0275\u0275nextContext().ngIf,s=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("disabled","Offline"===o.status),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(3,3,"PG_CREATE_RESUME_STEP_BTN_APPROVE")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",!s.isApproveEventReview())}}function F(n,i){if(1&n&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275elementStart(1,"div",26),t.\u0275\u0275template(2,H,3,2,"div",27),t.\u0275\u0275template(3,X,5,5,"div",27),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementContainerEnd()),2&n){const o=t.\u0275\u0275nextContext();t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",o.isCreating()||o.isEditing()&&!o.isApproveEventReview()),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",o.isApprovingEvent()||o.isApproveEventReview())}}function Y(n,i){if(1&n&&(t.\u0275\u0275elementStart(0,"div",35),t.\u0275\u0275element(1,"app-avatar",36),t.\u0275\u0275elementStart(2,"div",37),t.\u0275\u0275text(3),t.\u0275\u0275elementEnd()()),2&n){const o=i.$implicit,s=t.\u0275\u0275nextContext(2);let l;t.\u0275\u0275advance(1),t.\u0275\u0275property("firstName",o.firstName)("lastName",o.lastName)("thumbnailImage",null!==(l=null!==(l=null==o?null:o.image)&&void 0!==l?l:null==o?null:o.thumbnailImage)&&void 0!==l?l:null)("size","sm"),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",s.helperService.normalizeName(o.firstName,o.lastName)," ")}}function J(n,i){if(1&n&&(t.\u0275\u0275elementStart(0,"div",33),t.\u0275\u0275template(1,Y,4,5,"div",34),t.\u0275\u0275elementEnd()),2&n){const o=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",o.guests)}}function $(n,i){1&n&&(t.\u0275\u0275elementStart(0,"div",38),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_STEP_NOT_GUEST_SELECTED")," "))}function Z(n,i){if(1&n&&(t.\u0275\u0275elementStart(0,"div",39)(1,"div",13),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(4,"app-list-recurrence-dates",40),t.\u0275\u0275elementEnd()),2&n){const o=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",o.recurrenceDates)}}function Q(n,i){if(1&n&&(t.\u0275\u0275elementStart(0,"div",46),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&n){const o=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(o.department)}}function G(n,i){if(1&n&&(t.\u0275\u0275elementStart(0,"div",43),t.\u0275\u0275element(1,"app-avatar",36),t.\u0275\u0275elementStart(2,"div",44)(3,"div",37),t.\u0275\u0275text(4),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(5,Q,2,1,"div",45),t.\u0275\u0275elementEnd()()),2&n){const o=i.$implicit,s=t.\u0275\u0275nextContext(2);let l;t.\u0275\u0275advance(1),t.\u0275\u0275property("firstName",o.firstName)("lastName",o.lastName)("thumbnailImage",null!==(l=null!==(l=null==o||null==o.photos||null==o.photos[0]?null:o.photos[0].faceImageThumbnail)&&void 0!==l?l:null==o?null:o.thumbnailImage)&&void 0!==l?l:null)("size","sm"),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",s.helperService.normalizeName(o.firstName,o.lastName)," "),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",o.department)}}function B(n,i){if(1&n&&(t.\u0275\u0275elementStart(0,"div",41),t.\u0275\u0275template(1,G,6,6,"div",42),t.\u0275\u0275elementEnd()),2&n){const o=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",o.hosts)}}function q(n,i){1&n&&(t.\u0275\u0275elementStart(0,"div",47),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_STEP_NOT_HOST_SELECTED")," "))}function ee(n,i){if(1&n&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275elementStart(1,"div",16)(2,"div",13),t.\u0275\u0275text(3),t.\u0275\u0275pipe(4,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(5,"div",11),t.\u0275\u0275text(6),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementContainerEnd()),2&n){const o=t.\u0275\u0275nextContext();t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(4,2,"PG_CREATE_RESUME_STEP_TEXT_GROUP")," "),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(null==o.group?null:o.group.description)}}function te(n,i){1&n&&(t.\u0275\u0275elementStart(0,"div",11),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_STEP_TEXT_MULTICHECKIN_YES")," "))}function ne(n,i){1&n&&(t.\u0275\u0275elementStart(0,"div",11),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_STEP_TEXT_MULTICHECKIN_NO")," "))}function oe(n,i){1&n&&(t.\u0275\u0275elementStart(0,"div",11),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_STEP_TEXT_NEED_AUTHORIZATION_YES")," "))}function ie(n,i){1&n&&(t.\u0275\u0275elementStart(0,"div",11),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_STEP_TEXT_NEED_AUTHORIZATION_NO")," "))}function re(n,i){1&n&&(t.\u0275\u0275elementStart(0,"div",11),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_STEP_TEXT_CAN_ESCORTS_YES")," "))}function ae(n,i){1&n&&(t.\u0275\u0275elementStart(0,"div",11),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_STEP_TEXT_CAN_ESCORTS_NO")," "))}function ce(n,i){if(1&n&&(t.\u0275\u0275elementStart(0,"div",11),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()),2&n){const o=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate2(" ",o.checkInStartAt,"",t.\u0275\u0275pipeBind1(2,2,"PG_CREATE_RESUME_STEP_TEXT_MINUTES")," ")}}function se(n,i){1&n&&(t.\u0275\u0275elementStart(0,"div",11),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_STEP_TEXT_EARLY_CHECKIN_NO")," "))}function le(n,i){if(1&n&&(t.\u0275\u0275elementStart(0,"div",11),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&n){const o=i.$implicit;t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(null==o?null:o.name)}}function de(n,i){if(1&n&&(t.\u0275\u0275elementStart(0,"div",23)(1,"div",13),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(4,le,2,1,"div",48),t.\u0275\u0275elementEnd()),2&n){const o=t.\u0275\u0275nextContext();t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(3,2,"PG_CREATE_RESUME_STEP_TEXT_ROOM_RESERVATIONS")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngForOf",o.bookeis)}}const r=[{path:"",component:(()=>{class n{constructor(o,s,l,f,E,m,v,p,I,_e,ve,Ce,ue,Ee,he,fe,Pe,Oe,Me){var c=this;this.createEventService=o,this.navigationService=s,this.loadingService=l,this.notificatorService=f,this.momentService=E,this.activatedRoute=m,this.router=v,this.helperService=p,this.logService=I,this.profileManagerService=_e,this.modalController=ve,this.apiService=Ce,this.authService=ue,this.portalLoginManagerService=Ee,this.translateConfigService=he,this.resumeCreateEventInterruptedService=fe,this.stateService=Pe,this.focusService=Oe,this.userPhotoService=Me,this.isLimitedProfile=!1,this.existPendings=!1,this.recurrenceDates=[],this.navigateToQRCode=()=>{this.navigationService.root(["/home"])},this.navigateToPendingLiberations=()=>{this.navigationService.forward(["/push-notifications"])},this.setEventValues=a=>{if(a){this.event=a,this.isNew=!a.id,this.title=a.title,this.startAt=this.momentService.formatAsEventAt(a.startAt),this.recurrent=!!a?.recurrent&&a.recurrent,this.recurrenceDates=a?.recurrenceDates?a.recurrenceDates:[];this.formatDateEntAt(a,a?.recurrenceDates?a?.recurrenceDates[a?.recurrenceDates?.length-1]:null),this.hosts=a.hosts,this.guests=a.guests,this.multiCheckin=a.multiCheckin,this.allowCompanion=a.allowCompanion,this.needAuthorization=a.needAuthorization,this.checkInStartAt=a.checkinStartAt,this.floor=a.floor,this.group=a.group,this.bookeis=a.bookeis,this.bookeisToCancel=this.existIdEvent?this.createEventService.getBookeisToCancel():[]}},this.onFixEventErrors=()=>{this.event.autoRelease=!this.event.needAuthorization,"approve-event-review"===this.createEventService.getAction()&&this.createEventService.setAction("approve-event-edit");const a={state:{event:this.event,isLimitedProfile:this.isLimitedProfile,action:this.createEventService.getAction(),approveEventReview:this.createEventService.getApproveEventReview()?this.createEventService.getApproveEventReview():null}};this.navigationService.back(["/create-event-event-name-step"],a)},this.getInitials=(a,g)=>((a?a.substring(0,1):"")+(g?g.substring(0,1):"")).toUpperCase(),this.createEvent=(0,_.Z)(function*(){c.loadingService.show(c.translateConfigService.translate("PG_CREATE_RESUME_STEP_LOADING_CREATING_EVENT"),"create-event");const a={startAt:c.createEventService.getStartDate(),endAt:c.createEventService.getEndDate(),title:c.createEventService.getTitle(),hosts:c.createEventGetHosts(),guests:c.createEventService.getGuests(),floor:c.createEventService.getSelectedFloor(),group:c.createEventService.getSelectedGroup(),allowCompanion:c.createEventService.getCompanionAllowed(),autoRelease:!c.createEventService.getNeedAuthorization(),multiCheckin:c.createEventService.getMultiCheckIn(),checkinStartAt:c.createEventService.getCheckInStartAt(),bookeis:c.createEventService.getBookings(),recurrent:c.createEventService.getRecurrent(),recurrenceDates:c.createEventService.getRecurrenceDates(),geoCoordinates:{lat:0,lng:0}};console.log(a),c.createEventService.createEvent(a).then(c.handleCreateEventSuccessResponse).catch(c.handleCreateEventErrorResponse)}),this.createEventGetHosts=()=>{let a=this.createEventService.getHosts();return a=a.map(g=>({...g,company:g.company?g.company.name:""})),a},this.handleCreateEventSuccessResponse=a=>{this.loadingService.hide(null,"create-event");const g={title:this.translateConfigService.translate("PG_CREATE_RESUME_STEP_TOAST_CREATE_TITLE"),message:this.translateConfigService.translate("PG_CREATE_RESUME_STEP_TOAST_CREATE_MESSAGE"),type:"success"};this.createEventService.setLocator(a.locator),this.notificatorService.notify(g);const O={state:{event:{...this.event,id:a?.id,location:a?.company?.address??"",company:a?.company??"",fullPathLocator:a?.fullPathLocator??""}}};this.navigationService.forward(["/create-event-event-share-step"],O)},this.handleCreateEventErrorResponse=a=>{console.log("handleCreateEventErrorResponse"),console.log("error:",a),this.logService.logError("http::handleCreateEventErrorResponse","",a),this.loadingService.hide(null,"create-event");let g="",O=!1,T=!1,M=!1,N=!1;if(400===a.status){if("notmatched"===a.error.errorKey)g=this.translateConfigService.translate("PG_CREATE_RESUME_STEP_TOAST_NOMATCHED");else if("asset_already_booked"===a.error.errorKey)O=!0,g=this.translateConfigService.translate("PG_CREATE_RESUME_STEP_TOAST_BOOKED");else if("event_crowded"===a.error.errorKey||"too_much_invites"===a.error.errorKey){T=!0,M=!0;const A=this.createEventService.getMaxInvites();g=this.translateConfigService.translate("PG_CREATE_RESUME_STEP_TOAST_EVENT_CROWDED",{count:A})}else if("too_much_dates"===a.error.errorKey){const A=this.createEventService.getMaxDatesRecurrence();N=!0,g=this.translateConfigService.translate("TOAST_MAX_RECURRENCES_DATE",{count:A})}else g=this.translateConfigService.translate("people_already_checkin"===a.error.errorKey?"PG_CREATE_RESUME_STEP_TOAST_MESSSAGE_PEOPLE_ALREADY_CHECKIN":"PG_CREATE_RESUME_STEP_TOAST_ERROR_CREATE");this.logService.logError("http::handleCreateEventErrorResponse",a?.error?.message??"",a)}else g=this.translateConfigService.translate(403===a.status?"PG_CREATE_RESUME_STEP_TOAST_FORBIDDEN":"PG_CREATE_RESUME_STEP_TOAST_ERROR_CREATE");const pe={title:O||T||M||N?"":this.translateConfigService.translate("PG_CREATE_RESUME_STEP_TOAST_CREATE_ERROR_TITLE"),message:g,type:"error",timeout:1e4};this.notificatorService.notify(pe)},this.updateEvent=(0,_.Z)(function*(){c.loadingService.show(c.translateConfigService.translate("PG_CREATE_RESUME_STEP_LOADING_UPDATING_EVENT"),"update-event");const a={id:c.createEventService.getId(),startAt:c.createEventService.getStartDate(),endAt:c.createEventService.getEndDate(),title:c.createEventService.getTitle(),hosts:c.createEventGetHosts(),guests:c.createEventService.getGuests(),floor:c.createEventService.getSelectedFloor(),group:c.createEventService.getSelectedGroup(),allowCompanion:c.createEventService.getCompanionAllowed(),autoRelease:!c.createEventService.getNeedAuthorization(),multiCheckin:c.createEventService.getMultiCheckIn(),checkinStartAt:c.createEventService.getCheckInStartAt(),bookeis:c.createEventService.getBookings(),bookeisToCancel:c.existIdEvent?c.createEventService.getBookeisToCancel():[],invitesToDelete:c.existIdEvent?c.createEventService.getInvitesToDelete():[],recurrent:c.createEventService.getRecurrent(),recurrenceDates:c.createEventService.getRecurrenceDates(),geoCoordinates:{lat:0,lng:0},locator:c.createEventService.getLocator()};c.createEventService.updateEvent(a).then(c.handleUpdateEventSuccessResponse).catch(c.handleUpdateEventErrorResponse).finally(()=>{c.loadingService.hide(null,"update-event")})}),this.handleUpdateEventSuccessResponse=a=>{console.log("handleUpdateEventSuccessResponse"),console.log("response:",a);const g=a.company.instanceName;this.loadingService.hide(null,"update-event");const O={title:this.translateConfigService.translate("PG_CREATE_RESUME_STEP_TOAST_UPDATE_TITLE"),message:this.translateConfigService.translate("PG_CREATE_RESUME_STEP_TOAST_UPDATE_MESSAGE"),type:"success"};this.event.floor=this.event.floor?.description,this.event.autoRelease=!this.createEventService.getNeedAuthorization(),this.notificatorService.notify(O);const M={state:{eventId:this.event.id,companyInstanceName:g}};this.createEventService.clearInvitesToDelete(),this.resumeCreateEventInterruptedService.clearAll(),this.createEventService.clearCreateEventData(),this.navigationService.root(["/view-event/"],M)},this.handleUpdateEventErrorResponse=a=>{console.log("handleUpdateEventErrorResponse"),console.log("error:",a),this.logService.logError("http::handleUpdateEventErrorResponse","",a),this.loadingService.hide(null,"update-event");let g=!1,O=!1,T=!1,M="",N=!1;if(400===a.status)if("notmatched"===a.error.errorKey)M=this.translateConfigService.translate("PG_CREATE_RESUME_STEP_TOAST_NOMATCHED");else if("asset_already_booked"===a.error.errorKey)N=!0,M=this.translateConfigService.translate("PG_CREATE_RESUME_STEP_TOAST_BOOKED");else if("people_already_checkin"===a.error.errorKey)M=this.translateConfigService.translate("PG_CREATE_RESUME_STEP_TOAST_MESSSAGE_PEOPLE_ALREADY_CHECKIN");else if("event_crowded"===a.error.errorKey||"too_much_invites"===a.error.errorKey){g=!0,O=!0;const A=this.createEventService.getMaxInvites();M=this.translateConfigService.translate("PG_CREATE_RESUME_STEP_TOAST_EVENT_CROWDED",{count:A})}else if("too_much_dates"===a.error.errorKey){const A=this.createEventService.getMaxDatesRecurrence();T=!0,M=this.translateConfigService.translate("TOAST_MAX_RECURRENCES_DATE",{count:A})}else M=this.translateConfigService.translate("people_already_checkin"===a.error.errorKey?"PG_CREATE_RESUME_STEP_TOAST_MESSSAGE_PEOPLE_ALREADY_CHECKIN":"PG_CREATE_RESUME_STEP_TOAST_ERROR_UPDATE");else M=this.translateConfigService.translate(403===a.status?"PG_CREATE_RESUME_STEP_TOAST_FORBIDDEN_UPDATE":"PG_CREATE_RESUME_STEP_TOAST_ERROR_UPDATE");const pe={title:N?"":this.translateConfigService.translate("PG_CREATE_RESUME_STEP_TOAST_CREATE_ERROR_TITLE"),message:M,type:"error"};this.notificatorService.notify(pe)},this.approveEvent=(0,_.Z)(function*(){c.loadingService.show(c.translateConfigService.translate("LOADING_APROVING"),"approve-event-review");const a={id:c.createEventService.getId(),startAt:c.createEventService.getStartDate(),endAt:c.createEventService.getEndDate(),title:c.createEventService.getTitle(),hosts:c.createEventGetHosts(),guests:c.createEventService.getGuests(),floor:c.createEventService.getSelectedFloor(),group:c.createEventService.getSelectedGroup(),allowCompanion:c.createEventService.getCompanionAllowed(),autoRelease:!c.createEventService.getNeedAuthorization(),multiCheckin:c.createEventService.getMultiCheckIn(),checkinStartAt:c.createEventService.getCheckInStartAt(),bookeis:c.createEventService.getBookings(),bookeisToCancel:c.existIdEvent?c.createEventService.getBookeisToCancel():[],recurrent:c.createEventService.getRecurrent(),recurrenceDates:c.createEventService.getRecurrenceDates(),geoCoordinates:null,locator:c.createEventService.getLocator()};c.createEventService.approveEvent(a).then(c.handleApproveEventSuccessResponse).catch(c.handleApproveEventErrorResponse).finally(()=>{c.loadingService.hide(null,"approve-event-review")})}),this.handleOutOfArea=()=>{this.loadingService.hide(null,"on-delete-event");const a={title:this.translateConfigService.translate("PG_CREATE_RESUME_STEP_TOAST_OUTOFAREA_TITLE"),message:this.translateConfigService.translate("PG_CREATE_RESUME_STEP_TOAST_MESSAGE_OUTOFAREA"),type:"error",timeout:5e3};this.notificatorService.notify(a)},this.handleVerifyCoordinatesError=a=>{this.loadingService.hide(null,"on-delete-event"),this.loadingService.hide(null,"approve-event-review"),this.loadingService.hide(null,"update-event");const g={title:this.translateConfigService.translate("PG_CREATE_RESUME_STEP_TOAST_GETTING_LOCATION_TITLE"),message:this.translateConfigService.translate("PG_CREATE_RESUME_STEP_TOAST_MESSAGE_GETTING_LOCATION"),type:"error",timeout:5e3};this.notificatorService.notify(g),this.logService.logError("http::handleVerifyCoordinatesErrorResponse","Erro verifying coordinates api",a)},this.getProfileRelatedAccessToken=a=>new Promise((g,O)=>{this.authService.getToken().then(T=>this.portalLoginManagerService.getAccessToken(a.login,a.portal,T)).then(T=>{g(T.access_token)}).catch(O)}),this.handleApproveEventSuccessResponse=a=>{console.log("handleApproveEventSuccessResponse"),console.log("response:",a);const g=a.company.instanceName;this.loadingService.hide(null,"approve-event-review");const O={title:this.translateConfigService.translate("PG_CREATE_RESUME_STEP_TOAST_AUTHORIZED_TITLE"),message:this.translateConfigService.translate("PG_CREATE_RESUME_STEP_TOAST_AUTHORIZED_MESSAGE"),type:"success"};this.notificatorService.notify(O);const M={state:{eventId:this.event.id,companyInstanceName:g}};this.isApproveEventReview()?(this.createEventService.clearCreateEventData(),this.resumeCreateEventInterruptedService.clearProfileLogisticCreationInterrupte(),this.resumeCreateEventInterruptedService.clearProfileVoCreationInterrupte(),this.resumeCreateEventInterruptedService.clearResumeCreationInterrupte(),this.navigationService.forward(["/push-notifications/"]),localStorage.setItem("forcer_reload","TRUE")):this.navigationService.forward(["/view-event/"],M)},this.handleApproveEventErrorResponse=a=>{console.log("handleApproveEventErrorResponse"),console.log("error:",a),this.logService.logError("http::handleApproveEventErrorResponse","",a),this.loadingService.hide(null,"approve-event-review");let g="",O=!1;400===a.status?"notmatched"===a.error.errorKey?g=this.translateConfigService.translate("PG_CREATE_RESUME_STEP_TOAST_NOMATCHED"):"asset_already_booked"===a.error.errorKey?(O=!0,g=this.translateConfigService.translate("PG_CREATE_RESUME_STEP_TOAST_BOOKED")):g=this.translateConfigService.translate("PG_CREATE_RESUME_STEP_TOAST_ERROR_UPDATE"):g=this.translateConfigService.translate(403===a.status?"PG_CREATE_RESUME_STEP_TOAST_FORBIDDEN_UPDATE":"PG_CREATE_RESUME_STEP_TOAST_ERROR_UPDATE");const T={title:O?"":this.translateConfigService.translate("PG_CREATE_RESUME_STEP_TOAST_CREATE_ERROR_TITLE"),message:g,type:"error"};this.notificatorService.notify(T)},this.reproveEvent=(0,_.Z)(function*(){const a=yield c.modalController.create({component:x.ue});a.onDidDismiss().then(function(){var g=(0,_.Z)(function*(O){const T=O.data.reason;if(null===T)return;c.loadingService.show(c.translateConfigService.translate("PG_CREATE_RESUME_STEP_LOADING_FAILING_EVENT"),"reprove-event");const M={id:c.createEventService.getId(),message:T};c.createEventService.denyEvent(M).then(c.handleReproveEventSuccessResponse).catch(c.handleReproveEventErrorResponse).finally(()=>{c.loadingService.hide(null,"reprove-event")})});return function(O){return g.apply(this,arguments)}}()),yield a.present()}),this.handleReproveEventSuccessResponse=a=>{console.log("handleReproveEventSuccessResponse"),console.log("response:",a),this.loadingService.hide(null,"reprove-event");const g={title:this.translateConfigService.translate("PG_CREATE_RESUME_STEP_TOAST_REPROVE_TITLE"),message:this.translateConfigService.translate("PG_CREATE_RESUME_STEP_TOAST_REPROVE_MESSAGE"),type:"success"};this.notificatorService.notify(g),this.navigationService.forward(["/push-notifications"])},this.handleReproveEventErrorResponse=a=>{console.log("handleReproveEventErrorResponse"),console.log("error:",a),this.logService.logError("http::handleReproveEventErrorResponse","",a),this.loadingService.hide(null,"reprove-event");let g="",O=!1;400===a.status?"notmatched"===a.error.errorKey?g=this.translateConfigService.translate("PG_CREATE_RESUME_STEP_TOAST_NOMATCHED"):"asset_already_booked"===a.error.errorKey?(O=!0,g=this.translateConfigService.translate("PG_CREATE_RESUME_STEP_TOAST_BOOKED")):g=this.translateConfigService.translate("PG_CREATE_RESUME_STEP_TOAST_ERROR_UPDATE"):g=this.translateConfigService.translate(403===a.status?"PG_CREATE_RESUME_STEP_TOAST_FORBIDDEN_UPDATE":"PG_CREATE_RESUME_STEP_TOAST_ERROR_UPDATE");const T={title:O?"":this.translateConfigService.translate("PG_CREATE_RESUME_STEP_TOAST_CREATE_ERROR_TITLE"),message:g,type:"error"};this.notificatorService.notify(T)},this.isEditing=()=>"edit"===this.createEventService.getAction(),this.isApproveEventReview=()=>"TRUE"===this.createEventService.getApproveEventReview(),this.isCreating=()=>"create"===this.createEventService.getAction(),this.isApprovingEvent=()=>"approve-event-review"===this.createEventService.getAction()||"approve-event-edit"===this.createEventService.getAction(),this.title="",this.startAt="",this.endAt="",this.hosts=[],this.guests=[],this.floor={description:""},this.existIdEvent=!this.createEventService.getIsNew(),this.activatedRoute.queryParams.subscribe(a=>{this.router.getCurrentNavigation().extras.state&&(this.event=this.router.getCurrentNavigation().extras.state.event,this.setEventValues(this.event),this.isLimitedProfile=!!this.router.getCurrentNavigation().extras.state.isLimitedProfile&&this.router.getCurrentNavigation().extras.state.isLimitedProfile)})}ionViewDidEnter(){}ionViewWillEnter(){this.focusService.applyFocusQuerySelector("create_event_resume",3500),this.userPhotoService.enrichUsersWithPhotos([...this.hosts??[],...this.guests??[]])}ionViewDidLeave(){}formatDateHourEndAt(o,s){return D()(o).format("DD/MM/YYYY")+" \xe1s "+D()(s).format("HH[h]mm[min]")}formatDateEntAt(o,s){const l=new Date(o.endAt),f=s?.happensAt;this.endAt=o?.id&&o?.recurrent&&f?this.formatDateHourEndAt(f,o.endAt):o?.id&&!f?this.formatDateHourEndAt(l,o.endAt):this.momentService.formatAsEventAt(o.endAt)}checkSoftLock(o){var s=this;return(0,_.Z)(function*(){try{const l=o.company.instanceName,f=yield s.getProfileRelatedAccessToken(o);try{const{authorized:E}=yield s.apiService.checkSoftLock(l,null,null,f).toPromise();return{authorized:E}}catch(E){throw s.logService.logError("http::api:geo:verify-coodinates","CheckSoftLock HttpError",E),E}}catch(l){throw s.logService.logError("http::getProfileRelatedAccessToken::checkSoftLock","checkSoftLock error get profile related access token",l),l}})()}}return n.\u0275fac=function(o){return new(o||n)(t.\u0275\u0275directiveInject(h.jc),t.\u0275\u0275directiveInject(h.f5),t.\u0275\u0275directiveInject(h.bz),t.\u0275\u0275directiveInject(h.V6),t.\u0275\u0275directiveInject(h.EM),t.\u0275\u0275directiveInject(e.ActivatedRoute),t.\u0275\u0275directiveInject(e.Router),t.\u0275\u0275directiveInject(h.W_),t.\u0275\u0275directiveInject(h.$V),t.\u0275\u0275directiveInject(h.v4),t.\u0275\u0275directiveInject(R.ModalController),t.\u0275\u0275directiveInject(h.sM),t.\u0275\u0275directiveInject(h.e8),t.\u0275\u0275directiveInject(h.dj),t.\u0275\u0275directiveInject(h.wK),t.\u0275\u0275directiveInject(h.NL),t.\u0275\u0275directiveInject(k.b),t.\u0275\u0275directiveInject(V.i),t.\u0275\u0275directiveInject(h.IR))},n.\u0275cmp=t.\u0275\u0275defineComponent({type:n,selectors:[["app-create-event-event-resume"]],decls:78,vars:61,consts:[["defaultHref","create-event-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"],[4,"ngIf"],[1,"fix-errors"],["type","button",3,"click"],[1,"event"],[1,"section","title"],[1,"value"],[1,"section","guests"],[1,"label"],["class","guests-holder",4,"ngIf"],["class","guests-empty",4,"ngIf"],[1,"section"],[1,"start-at"],[1,"end-at"],["class","section recurrences",4,"ngIf"],[1,"section","hosts"],["class","hosts-holder",4,"ngIf"],["class","hosts-empty",4,"ngIf"],[1,"section","option"],["class","value",4,"ngIf"],["class","section option",4,"ngIf"],[1,"button-group"],["class","create-event",4,"ngIf"],[1,"create-event"],["type","submit",3,"disabled","click",4,"ngIf"],["type","submit",3,"disabled","click"],["type","submit","class","danger",3,"disabled","click",4,"ngIf"],["type","submit",1,"danger",3,"disabled","click"],[1,"guests-holder"],["class","guest",4,"ngFor","ngForOf"],[1,"guest"],[3,"firstName","lastName","thumbnailImage","size"],[1,"full-name"],[1,"guests-empty"],[1,"section","recurrences"],[3,"showShortDateList","recurrenceDates"],[1,"hosts-holder"],["class","host",4,"ngFor","ngForOf"],[1,"host"],[1,"host-info"],["class","department",4,"ngIf"],[1,"department"],[1,"hosts-empty"],["class","value",4,"ngFor","ngForOf"]],template:function(o,s){1&o&&(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),t.\u0275\u0275template(10,F,4,2,"ng-container",6),t.\u0275\u0275pipe(11,"async"),t.\u0275\u0275elementStart(12,"div",7)(13,"button",8),t.\u0275\u0275listener("click",function(){return s.onFixEventErrors()}),t.\u0275\u0275text(14),t.\u0275\u0275pipe(15,"translate"),t.\u0275\u0275elementEnd()()()(),t.\u0275\u0275elementStart(16,"ion-row")(17,"ion-col")(18,"div",9)(19,"div",10)(20,"div",11),t.\u0275\u0275text(21),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(22,"div",12)(23,"div",13),t.\u0275\u0275text(24),t.\u0275\u0275pipe(25,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(26,J,2,1,"div",14),t.\u0275\u0275template(27,$,3,3,"div",15),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(28,"div",16)(29,"div",17)(30,"div",13),t.\u0275\u0275text(31),t.\u0275\u0275pipe(32,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(33,"div",11),t.\u0275\u0275text(34),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(35,"div",18)(36,"div",13),t.\u0275\u0275text(37),t.\u0275\u0275pipe(38,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(39,"div",11),t.\u0275\u0275text(40),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275template(41,Z,5,5,"div",19),t.\u0275\u0275elementStart(42,"div",20)(43,"div",13),t.\u0275\u0275text(44),t.\u0275\u0275pipe(45,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(46,B,2,1,"div",21),t.\u0275\u0275template(47,q,3,3,"div",22),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(48,"div",16)(49,"div",13),t.\u0275\u0275text(50),t.\u0275\u0275pipe(51,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(52,"div",11),t.\u0275\u0275text(53),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(54,ee,7,4,"ng-container",6),t.\u0275\u0275elementStart(55,"div",23)(56,"div",13),t.\u0275\u0275text(57),t.\u0275\u0275pipe(58,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(59,te,3,3,"div",24),t.\u0275\u0275template(60,ne,3,3,"div",24),t.\u0275\u0275elementStart(61,"div",13),t.\u0275\u0275text(62),t.\u0275\u0275pipe(63,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(64,oe,3,3,"div",24),t.\u0275\u0275template(65,ie,3,3,"div",24),t.\u0275\u0275elementStart(66,"div",13),t.\u0275\u0275text(67),t.\u0275\u0275pipe(68,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(69,re,3,3,"div",24),t.\u0275\u0275template(70,ae,3,3,"div",24),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(71,"div",23)(72,"div",13),t.\u0275\u0275text(73),t.\u0275\u0275pipe(74,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(75,ce,3,4,"div",24),t.\u0275\u0275template(76,se,3,3,"div",24),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(77,de,5,4,"div",25),t.\u0275\u0275elementEnd()()()()()),2&o&&(t.\u0275\u0275property("title",t.\u0275\u0275pipeBind1(1,35,"PG_CREATE_RESUME_STEP_HEADER_TITLE"))("showBadge",!0)("refresh",!1)("menuToggle",!1),t.\u0275\u0275advance(6),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(7,37,"PG_CREATE_RESUME_STEP_TEXT_SUBTITLE")," "),t.\u0275\u0275advance(4),t.\u0275\u0275property("ngIf",t.\u0275\u0275pipeBind1(11,39,s.stateService.getState())),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(15,41,"PG_CREATE_RESUME_STEP_BTN_EDIT")," "),t.\u0275\u0275advance(7),t.\u0275\u0275textInterpolate(s.title),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(25,43,"PG_CREATE_RESUME_STEP_TEXT_GUESTS")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",s.guests.length),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!s.guests.length),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(32,45,"PG_CREATE_RESUME_STEP_TEXT_STARTAT")," "),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(s.startAt),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(38,47,"PG_CREATE_RESUME_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(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(45,49,"PG_CREATE_RESUME_STEP_TEXT_HOSTS")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",s.hosts.length),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!s.hosts.length),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(51,51,"PG_CREATE_RESUME_STEP_TEXT_FLOOR")," "),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(null==s.floor?null:s.floor.description),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",s.group),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(58,53,"PG_CREATE_RESUME_STEP_TEXT_MULTICHECKIN")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",s.multiCheckin),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!s.multiCheckin),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(63,55,"PG_CREATE_RESUME_STEP_TEXT_NEED_AUTHORIZATION")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",s.needAuthorization),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!s.needAuthorization),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(68,57,"PG_CREATE_RESUME_STEP_TEXT_CAN_ESCORTS")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",s.allowCompanion),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!s.allowCompanion),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(74,59,"PG_CREATE_RESUME_STEP_TEXT_EARLY_CHECKIN")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",s.checkInStartAt),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!s.checkInStartAt),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",(null==s.bookeis?null:s.bookeis.length)>0))},dependencies:[w.NgForOf,w.NgIf,R.IonCol,R.IonContent,R.IonRow,U.A,u.G,y._,w.AsyncPipe,j.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!important;text-align:center!important}.centralized-content[_ngcontent-%COMP%] .page-title[_ngcontent-%COMP%] .sub-title[_ngcontent-%COMP%]{text-align:center!important;color:#656768!important;font-size:.9em!important;margin-top:4px!important}.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%] .host-info[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%] .section.guests[_ngcontent-%COMP%] .host[_ngcontent-%COMP%] .host-info[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%] .section.hosts[_ngcontent-%COMP%] .guest[_ngcontent-%COMP%] .host-info[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%] .section.hosts[_ngcontent-%COMP%] .host[_ngcontent-%COMP%] .host-info[_ngcontent-%COMP%]{flex:1;min-width: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%]{color:#333}.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 d=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.\u0275\u0275defineNgModule({type:n}),n.\u0275inj=t.\u0275\u0275defineInjector({imports:[S.I,P.D,e.RouterModule.forChild(r)]}),n})()},71994:(ge,b,C)=>{C.d(b,{sZ:()=>U,ue:()=>W,AQ:()=>Y,Ut:()=>Q,oY:()=>oe,YH:()=>se,i9:()=>me});var e=C(45449),P=C(47898),S=C(90944),_=C(90603),L=C(87871);function D(r,d){if(1&r&&(e.\u0275\u0275elementStart(0,"div",7),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&r){const n=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",n.foundUser.document," ")}}function x(r,d){if(1&r&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,D,2,1,"div",6),e.\u0275\u0275elementContainerEnd()),2&r){const n=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==n.foundUser?null:n.foundUser.document)}}function t(r,d){if(1&r&&(e.\u0275\u0275elementStart(0,"div",7),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&r){const n=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",n.foundUser.company," ")}}function h(r,d){if(1&r&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,t,2,1,"div",6),e.\u0275\u0275elementContainerEnd()),2&r){const n=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==n.foundUser?null:n.foundUser.company)}}function R(r,d){if(1&r){const n=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",1),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(n);const o=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(o.userSelect.emit(o.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,x,2,1,"ng-container",0),e.\u0275\u0275template(7,h,2,1,"ng-container",0),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(8,"ion-ripple-effect",5),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}if(2&r){const n=e.\u0275\u0275nextContext();let i;e.\u0275\u0275advance(2),e.\u0275\u0275property("firstName",n.foundUser.firstName)("lastName",n.foundUser.lastName)("thumbnailImage",null!==(i=null!==(i=null==n.foundUser?null:n.foundUser.image)&&void 0!==i?i:null==n.foundUser?null:n.foundUser.thumbnailImage)&&void 0!==i?i:null)("size","md"),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",n.helperService.normalizeName(n.foundUser.firstName,n.foundUser.lastName)," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","driver"===n.typeofuser),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","assistant"===n.typeofuser)}}function k(r,d){1&r&&(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 V=function(){return[1,2,3,4,5,6,7,8,9,10]};function w(r,d){1&r&&(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,k,7,0,"div",13),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&r&&(e.\u0275\u0275advance(6),e.\u0275\u0275property("ngForOf",e.\u0275\u0275pureFunction0(1,V)))}let U=(()=>{class r{constructor(n){this.helperService=n,this.skeleton=!1,this.userSelect=new e.EventEmitter}ngOnInit(){}}return r.\u0275fac=function(n){return new(n||r)(e.\u0275\u0275directiveInject(P.W_))},r.\u0275cmp=e.\u0275\u0275defineComponent({type:r,selectors:[["app-card-founduser-lg"]],inputs:{foundUser:"foundUser",skeleton:"skeleton",typeofuser:"typeofuser"},outputs:{userSelect:"userSelect"},decls:2,vars:2,consts:[[4,"ngIf"],[1,"result","ion-activatable",3,"click"],[3,"firstName","lastName","thumbnailImage","size"],[1,"user-info"],[1,"full-name"],["type","bounded"],["class","company",4,"ngIf"],[1,"company"],[1,"results"],[1,"sub-title"],[1,"ion-text-center",2,"display","flex","flex-direction","column","align-items","center"],["animated","",2,"width","100%"],["animated","",2,"width","60%"],["class","result",4,"ngFor","ngForOf"],[1,"result"],["animated","",1,"avatar-skeleton"],["animated","",2,"width","85%"],["animated","",2,"width","50%"]],template:function(n,i){1&n&&(e.\u0275\u0275template(0,R,9,7,"ng-container",0),e.\u0275\u0275template(1,w,7,2,"ng-container",0)),2&n&&(e.\u0275\u0275property("ngIf",i.foundUser&&!i.skeleton),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",i.skeleton))},dependencies:[S.NgForOf,S.NgIf,_.IonRippleEffect,_.IonSkeletonText,L.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}"]}),r})();var u=C(24006),y=C(99826);function j(r,d){if(1&r&&(e.\u0275\u0275elementStart(0,"div",16),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&r){const n=d.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",n.message," ")}}function z(r,d){if(1&r&&(e.\u0275\u0275elementStart(0,"div",14),e.\u0275\u0275template(1,j,2,1,"div",15),e.\u0275\u0275elementEnd()),2&r){const n=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",n.getFieldInputValidationErrors("reason"))}}let W=(()=>{class r{constructor(n,i,o,s,l,f){this.ngZoneService=n,this.createLogisticEventService=i,this.formBuilder=o,this.modalController=s,this.notificatorService=l,this.translateConfigService=f,this.reasonFormErrors=[],this.onClose=()=>{this.modalController.dismiss({reason:null})},this.onSubmit=()=>{const E=this.reasonForm.controls.reason.value,v=this.validateInput({reason:E});if(v.length){this.setValidationErrors(v);const p={title:this.translateConfigService.translate("TOAST_INVALID_DATA_TITLE"),message:this.translateConfigService.translate("TOAST_INVALID_DATA_NESSAGE"),type:"error"};this.notificatorService.notify(p)}else this.modalController.dismiss({reason:E})},this.validateInput=E=>{const m=[],v=this.validateReasonInput(E);return v&&m.push(v),m},this.validateReasonInput=E=>!E.reason||E.reason.length<1?{message:this.translateConfigService.translate("MD_JUSTIFY_INVITE_WITOUT_LOCATOR_JUSTIFICATION_PROVIDED"),field:"reason"}:null,this.setValidationErrors=E=>{this.reasonFormErrors=E},this.thereIsFieldInputValidationErrors=E=>this.reasonFormErrors.find(m=>m.field===E),this.getFieldInputValidationErrors=E=>this.reasonFormErrors.filter(m=>m.field===E)}ngOnInit(){this.reasonForm=this.formBuilder.group({reason:[""]})}}return r.\u0275fac=function(n){return new(n||r)(e.\u0275\u0275directiveInject(P.zf),e.\u0275\u0275directiveInject(P.V),e.\u0275\u0275directiveInject(u.UntypedFormBuilder),e.\u0275\u0275directiveInject(_.ModalController),e.\u0275\u0275directiveInject(P.V6),e.\u0275\u0275directiveInject(P.wK))},r.\u0275cmp=e.\u0275\u0275defineComponent({type:r,selectors:[["app-justify-self-invite-without-locator"]],decls:25,vars:15,consts:[[3,"ngClass"],[1,"content"],[1,"modal-container"],[1,"modal-title"],[1,"button-holder"],[1,"back",3,"click"],[1,"title"],[1,"modal-body"],[3,"formGroup","ngSubmit"],[1,"input-holder"],["maxlength","55","id","reason","formControlName","reason",3,"placeholder"],["class","errors",4,"ngIf"],[1,"modal-footer"],["type","submit",3,"click"],[1,"errors"],["class","error",4,"ngFor","ngForOf"],[1,"error"]],template:function(n,i){1&n&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"button",5),e.\u0275\u0275listener("click",function(){return i.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 i.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 i.onSubmit()}),e.\u0275\u0275text(23),e.\u0275\u0275pipe(24,"translate"),e.\u0275\u0275elementEnd()()()()()()),2&n&&(e.\u0275\u0275property("ngClass","selector"),e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(7,7,"BTN_BACK")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(10,9,"MD_JUSTIFY_INVITE_WITOUT_LOCATOR_TITLE")),e.\u0275\u0275advance(5),e.\u0275\u0275property("formGroup",i.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",i.thereIsFieldInputValidationErrors("reason")),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(24,13,"MD_JUSTIFY_INVITE_WITOUT_LOCATOR_BTN_CONFIRM_REFUSAL")," "))},dependencies:[S.NgClass,S.NgForOf,S.NgIf,_.IonCol,_.IonRow,u.\u0275NgNoValidate,u.DefaultValueAccessor,u.NgControlStatus,u.NgControlStatusGroup,u.MaxLengthValidator,u.FormGroupDirective,u.FormControlName,y.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}"]}),r})();function H(r,d){if(1&r&&(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&r){const n=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,3,"MD_JUSTIFY_LG_INVITE_WITOUT_LOCATOR_DESTINATION")," "),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate2("",null==n.data?null:n.data.firstName," ",null==n.data?null:n.data.lastName,"")}}function K(r,d){if(1&r&&(e.\u0275\u0275elementStart(0,"div",22),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&r){const n=d.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",n.message," ")}}function X(r,d){if(1&r&&(e.\u0275\u0275elementStart(0,"div",20),e.\u0275\u0275template(1,K,2,1,"div",21),e.\u0275\u0275elementEnd()),2&r){const n=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",n.getFieldInputValidationErrors("reason"))}}const F=function(r){return{"no-margim":r}};let Y=(()=>{class r{constructor(n,i,o,s){this.formBuilder=n,this.modalController=i,this.notificatorService=o,this.translateConfigService=s,this.data=null,this.reasonFormErrors=[],this.onClose=()=>{this.modalController.dismiss({reason:null})},this.onSubmit=()=>{const l=this.reasonForm.controls.reason.value,E=this.validateInput({reason:l});if(E.length){this.setValidationErrors(E);const m={title:this.translateConfigService.translate("TOAST_INVALID_DATA_TITLE"),message:this.translateConfigService.translate("TOAST_INVALID_DATA_NESSAGE"),type:"error"};this.notificatorService.notify(m)}else this.modalController.dismiss({reason:l})},this.validateInput=l=>{const f=[],E=this.validateReasonInput(l);return E&&f.push(E),f},this.validateReasonInput=l=>!l.reason||l.reason.length<1?{message:this.translateConfigService.translate("MD_JUSTIFY_LG_INVITE_WITOUT_LOCATOR_JUSTIFICATION_PROVIDED"),field:"reason"}:null,this.setValidationErrors=l=>{this.reasonFormErrors=l},this.thereIsFieldInputValidationErrors=l=>this.reasonFormErrors.find(f=>f.field===l),this.getFieldInputValidationErrors=l=>this.reasonFormErrors.filter(f=>f.field===l)}ngOnInit(){this.reasonForm=this.formBuilder.group({reason:[""]})}}return r.\u0275fac=function(n){return new(n||r)(e.\u0275\u0275directiveInject(u.UntypedFormBuilder),e.\u0275\u0275directiveInject(_.ModalController),e.\u0275\u0275directiveInject(P.V6),e.\u0275\u0275directiveInject(P.wK))},r.\u0275cmp=e.\u0275\u0275defineComponent({type:r,selectors:[["app-logistic-justify-self-invite-with-locator"]],inputs:{data:"data"},decls:28,vars:23,consts:[[3,"ngClass"],[1,"content"],[1,"modal-container"],[1,"modal-title"],[1,"button-holder"],[1,"back",3,"click"],[1,"title"],[1,"modal-body"],[4,"ngIf"],[3,"formGroup","ngSubmit"],[1,"input-holder",3,"ngClass"],["maxlength","55","id","reason","formControlName","reason",3,"ngClass","placeholder"],[1,"count"],["class","errors",4,"ngIf"],[1,"modal-footer"],["type","submit",3,"click"],[1,"destination-holder",2,"margin-top","0","padding","0 2.5em"],[1,"destination-label"],[1,"destination-box"],[1,"name"],[1,"errors"],["class","error",4,"ngFor","ngForOf"],[1,"error"]],template:function(n,i){if(1&n&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"button",5),e.\u0275\u0275listener("click",function(){return i.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,H,8,5,"ng-container",8),e.\u0275\u0275elementStart(13,"ion-row")(14,"ion-col")(15,"form",9),e.\u0275\u0275listener("ngSubmit",function(){return i.onSubmit()}),e.\u0275\u0275elementStart(16,"div",10)(17,"textarea",11),e.\u0275\u0275pipe(18,"translate"),e.\u0275\u0275text(19," "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(20,"div",12),e.\u0275\u0275text(21),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(22,X,2,1,"div",13),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(23,"div",14)(24,"div",4)(25,"button",15),e.\u0275\u0275listener("click",function(){return i.onSubmit()}),e.\u0275\u0275text(26),e.\u0275\u0275pipe(27,"translate"),e.\u0275\u0275elementEnd()()()()()()),2&n){let o;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==i.data?null:i.data.event),e.\u0275\u0275advance(3),e.\u0275\u0275property("formGroup",i.reasonForm),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(19,F,null!=i.data&&i.data.event?"no-margim":"")),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(21,F,null!=i.data&&i.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==i.reasonForm||null==(o=i.reasonForm.get("reason"))||null==o.value?null:o.value.length)||0,"/55"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",i.thereIsFieldInputValidationErrors("reason")),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(27,17,"MD_JUSTIFY_LG_INVITE_WITOUT_LOCATOR_BTN_CONFIRM_REFUSAL")," ")}},dependencies:[S.NgClass,S.NgForOf,S.NgIf,_.IonCol,_.IonRow,u.\u0275NgNoValidate,u.DefaultValueAccessor,u.NgControlStatus,u.NgControlStatusGroup,u.MaxLengthValidator,u.FormGroupDirective,u.FormControlName,y.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}"]}),r})();function J(r,d){if(1&r){const n=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"ion-card",12),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(n);const o=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(o.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&r&&(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 $(r,d){if(1&r){const n=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"ion-card",12),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(n);const o=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(o.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&r&&(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 Z(r,d){if(1&r){const n=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"ion-card",12),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(n);const o=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(o.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&r&&(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 Q=(()=>{class r{constructor(n){this.modalController=n,this.availableTypes=[],this.createNewConventional=()=>{this.modalController.dismiss({type:"CONVENTIONAL"})},this.createNewEntry=()=>{this.modalController.dismiss({type:"NEW_ENTRY"})},this.createEntryFromExit=()=>{this.modalController.dismiss({type:"CLONE_EXIT"})},this.createNewExit=()=>{this.modalController.dismiss({type:"NEW_EXIT"})},this.createExitFromEntry=()=>{this.modalController.dismiss({type:"CLONE_ENTRY"})},this.back=()=>{this.modalController.dismiss(null)}}}return r.\u0275fac=function(n){return new(n||r)(e.\u0275\u0275directiveInject(_.ModalController))},r.\u0275cmp=e.\u0275\u0275defineComponent({type:r,selectors:[["app-select-logistic-event-type-modal"]],inputs:{availableTypes:"availableTypes"},decls:18,vars:10,consts:[[3,"ngClass"],[1,"content"],[1,"background"],[1,"modal-container"],[1,"modal-title"],["tabindex","1"],[1,"modal-body"],[1,"types"],["lines","none",2,"padding","0 2px"],["button","","class","type ion-no-padding",3,"click",4,"ngIf"],[1,"modal-footer"],["mode","ios","fill","clear",1,"reject",3,"click"],["button","",1,"type","ion-no-padding",3,"click"],[1,"name"],[1,"description","ion-text-wrap"]],template:function(n,i){1&n&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1),e.\u0275\u0275element(2,"div",2),e.\u0275\u0275elementStart(3,"div",3)(4,"div",4)(5,"h6",5),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(8,"div",6)(9,"div",7)(10,"ion-list",8),e.\u0275\u0275template(11,J,8,6,"ion-card",9),e.\u0275\u0275template(12,$,8,6,"ion-card",9),e.\u0275\u0275template(13,Z,8,6,"ion-card",9),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(14,"div",10)(15,"ion-button",11),e.\u0275\u0275listener("click",function(){return i.back()}),e.\u0275\u0275text(16),e.\u0275\u0275pipe(17,"translate"),e.\u0275\u0275elementEnd()()()()()),2&n&&(e.\u0275\u0275property("ngClass","select-logistic-event-type-modal"),e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(7,6,"MD_EVENT_TYPE_TITLE")),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngIf",i.availableTypes.includes("CONVENTIONAL")),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",i.availableTypes.includes("ENTRY")),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",i.availableTypes.includes("EXIT")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(17,8,"BTN_BACK")," "))},dependencies:[S.NgClass,S.NgIf,_.IonButton,_.IonCard,_.IonLabel,_.IonList,y.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}"]}),r})();var G=C(15861),B=C(24889);function q(r,d){if(1&r){const n=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"app-card-founduser-lg",23),e.\u0275\u0275listener("userSelect",function(){const s=e.\u0275\u0275restoreView(n).$implicit,l=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(l.onUserSelect(s))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}if(2&r){const n=d.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("foundUser",n)}}function ee(r,d){if(1&r&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,q,2,1,"ng-container",22),e.\u0275\u0275elementContainerEnd()),2&r){const n=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",n.foundUsers)}}function te(r,d){if(1&r&&(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,ee,2,1,"ng-container",16),e.\u0275\u0275elementEnd()),2&r){const n=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(3,3,"MD_ASSISTANT_USERS_FOUND")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(6,5,"MD_ASSISTANT_TAP_ITEM")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",n.isLoading)}}function ne(r,d){1&r&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275element(1,"app-card-founduser-lg",24),e.\u0275\u0275elementContainerEnd()),2&r&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("skeleton",!0))}let oe=(()=>{class r{constructor(n,i,o,s,l,f,E,m){var v=this;this.ngZoneService=n,this.createLogisticEventService=i,this.formBuilder=o,this.modalController=s,this.changeDetectorRef=l,this.helperService=f,this.logService=E,this.userPhotoService=m,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.onCreateGuest=(0,G.Z)(function*(){const p=yield v.modalController.create({component:B._y});p.onDidDismiss().then(v.onModalDismissCallback),yield p.present()}),this.onModalDismissCallback=p=>{p&&p.data&&this.onUserSelect(p.data)},this.onUpdateContactInfoSuccessResponse=p=>{console.log("onUpdateContactInfoSuccessResponse"),console.log("contact:",p)},this.onUpdateContactInfoErrorResponse=p=>{console.log("onUpdateContactInfoErrorResponse"),console.log("error:",p)},this.onInputChange=p=>{const{value:I}=p.target;this.infiniteScroll.disabled=!1,this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{I.length>1&&(this.foundUsers=[],this.page=0),this.doSearch(I)},750)},this.doSearch=p=>{const I={searchTerm:p=p.trim()};this.dataTerms=I,this.createLogisticEventService.getCompanyAssistants(I,this.page,this.size).then(this.handleGetGuestsSuccessResponse).catch(this.handleGetGuestsErrorResponse).finally(()=>this.isLoading=!0)},this.handleGetGuestsSuccessResponse=p=>{console.log("handleGetGuestsSuccessResponse"),console.log("response:",p),this.setFoundUsers(p),this.userPhotoService.enrichUsersWithPhotos(p)},this.handleGetGuestsErrorResponse=p=>{this.logService.logError("http::handleGetGuestsErrorResponse","",p),console.log("handleGetGuestsErrorResponse"),console.log("error:",p)},this.setFoundUsers=p=>{this.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:""}})}loadData(n){this.page+=1,this.loadMore(this.page,n)}loadMore(n,i){this.createLogisticEventService.getCompanyDrivers(this.dataTerms,n,this.size,!!i).then(o=>{this.isLoading=!0,o.length>0?(this.handleGetGuestsSuccessResponse(this.foundUsers.concat(o)),this.size>0&&i.target.complete()):i.target.disabled=!0}).catch(o=>{this.handleGetGuestsErrorResponse(o),i.target.complete(),i.target.disabled=!0})}}return r.\u0275fac=function(n){return new(n||r)(e.\u0275\u0275directiveInject(P.zf),e.\u0275\u0275directiveInject(P.V),e.\u0275\u0275directiveInject(u.UntypedFormBuilder),e.\u0275\u0275directiveInject(_.ModalController),e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(P.W_),e.\u0275\u0275directiveInject(P.$V),e.\u0275\u0275directiveInject(P.IR))},r.\u0275cmp=e.\u0275\u0275defineComponent({type:r,selectors:[["app-selector-for-assistants-to-add-to-event"]],viewQuery:function(n,i){if(1&n&&e.\u0275\u0275viewQuery(_.IonInfiniteScroll,5),2&n){let o;e.\u0275\u0275queryRefresh(o=e.\u0275\u0275loadQuery())&&(i.infiniteScroll=o.first)}},decls:35,vars:16,consts:[[1,"fix-header-modal-ios","ion-no-border"],[3,"ngClass"],[1,"content"],[1,"modal-container"],[1,"modal-title"],[1,"button-holder"],[1,"back",3,"click"],[1,"title"],[1,"modal-body"],[3,"formGroup"],[1,"input-holder"],[1,"upper-options"],["id","name","type","text","formControlName","searchTerm",3,"placeholder","keyup"],[1,"new-holder"],["type","button",3,"click"],["class","results",4,"ngIf"],[4,"ngIf"],[1,"modal-footer"],["threshold","15%","position","bottom",3,"ionInfinite"],["IonInfiniteScroll",""],[1,"results"],[1,"sub-title"],[4,"ngFor","ngForOf"],["typeofuser","assistant",3,"foundUser","userSelect"],[3,"skeleton"]],template:function(n,i){1&n&&(e.\u0275\u0275elementStart(0,"ion-header",0)(1,"ion-toolbar"),e.\u0275\u0275element(2,"ion-title"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(3,"ion-content",1)(4,"div",2)(5,"div",3)(6,"div",4)(7,"div",5)(8,"button",6),e.\u0275\u0275listener("click",function(){return i.onClose()}),e.\u0275\u0275text(9),e.\u0275\u0275pipe(10,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(11,"div",7),e.\u0275\u0275text(12),e.\u0275\u0275pipe(13,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(14,"div",8)(15,"ion-row")(16,"ion-col")(17,"form",9)(18,"div",10)(19,"div",11)(20,"input",12),e.\u0275\u0275listener("keyup",function(s){return i.onInputChange(s)}),e.\u0275\u0275pipe(21,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(22,"div",13)(23,"div",5)(24,"button",14),e.\u0275\u0275listener("click",function(){return i.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,te,8,7,"div",15),e.\u0275\u0275template(30,ne,2,1,"ng-container",16),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275element(31,"div",17),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(32,"ion-infinite-scroll",18,19),e.\u0275\u0275listener("ionInfinite",function(s){return i.loadData(s)}),e.\u0275\u0275element(34,"ion-infinite-scroll-content"),e.\u0275\u0275elementEnd()()),2&n&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("ngClass","selector"),e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(10,8,"MD_ASSISTANT_BTN_CLOSE")," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(13,10,"MD_ASSISTANT_TITLE")),e.\u0275\u0275advance(5),e.\u0275\u0275property("formGroup",i.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",!!i.foundUsers.length),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!i.isLoading))},dependencies:[S.NgClass,S.NgForOf,S.NgIf,_.IonCol,_.IonContent,_.IonHeader,_.IonInfiniteScroll,_.IonInfiniteScrollContent,_.IonRow,_.IonTitle,_.IonToolbar,u.\u0275NgNoValidate,u.DefaultValueAccessor,u.NgControlStatus,u.NgControlStatusGroup,u.FormGroupDirective,u.FormControlName,U,y.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}"]}),r})();function ie(r,d){if(1&r){const n=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"app-card-founduser-lg",24),e.\u0275\u0275listener("userSelect",function(){const s=e.\u0275\u0275restoreView(n).$implicit,l=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(l.onUserSelect(s))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}if(2&r){const n=d.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("foundUser",n)}}function re(r,d){if(1&r&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,ie,2,1,"ng-container",23),e.\u0275\u0275elementContainerEnd()),2&r){const n=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",n.foundUsers)}}function ae(r,d){if(1&r&&(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,re,2,1,"ng-container",17),e.\u0275\u0275elementEnd()),2&r){const n=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(3,2,"MD_DRIVER_SUBTITLE")),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",n.isLoading)}}function ce(r,d){1&r&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275element(1,"app-card-founduser-lg",25),e.\u0275\u0275elementContainerEnd()),2&r&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("skeleton",!0))}let se=(()=>{class r{constructor(n,i,o,s,l,f,E){var m=this;this.createLogisticEventService=n,this.formBuilder=i,this.modalController=o,this.changeDetectorRef=s,this.helperService=l,this.logService=f,this.userPhotoService=E,this.isLoading=!1,this.page=0,this.size=15,this.onClose=v=>{this.modalController.dismiss(v)},this.onUserSelect=v=>{v.fullName=this.helperService.normalizeName(v.firstName,v.lastName),setTimeout(()=>{this.onClose(v)},750)},this.onCreateDriver=(0,G.Z)(function*(){const v=yield m.modalController.create({component:B.v_});v.onDidDismiss().then(p=>{m.onModalDismissCallback(p)}),yield v.present()}),this.onInputChange=v=>{const{value:p}=v.target;this.infiniteScroll.disabled=!1,this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{p.length>1&&(this.foundUsers=[],this.page=0),this.doSearch(p)},750)},this.doSearch=v=>{const p={searchTerm:v=v.trim()};this.dataTerms=p,this.createLogisticEventService.getCompanyDrivers(p,this.page,this.size).then(this.handleGetCompanyDriversSuccessResponse).catch(this.handleGetgetCompanyDriversErrorResponse).finally(()=>this.isLoading=!0)},this.handleGetCompanyDriversSuccessResponse=v=>{console.log("handleGetCompanyDriversSuccessResponse"),console.log("response:",v),this.setFoundUsers(v),this.userPhotoService.enrichUsersWithPhotos(v)},this.handleGetgetCompanyDriversErrorResponse=v=>{console.log("handleGetgetCompanyDriversErrorResponse"),this.logService.logError("http::handleGetgetCompanyDriversErrorResponse","",v),console.log("error:",v)},this.setFoundUsers=v=>{this.foundUsers=v,console.log("foundUsers",v),this.changeDetectorRef.detectChanges(),scrollBy(0,1)}}ngOnInit(){this.foundUsers=[],this.searchTimeout=null,this.userForm=this.formBuilder.group({searchTerm:[""]})}ionViewWillEnter(){this.onInputChange({target:{value:""}})}onModalDismissCallback(n){n&&n.data&&this.onUserSelect(n.data)}loadData(n){this.page+=1,this.loadMore(this.page,n)}loadMore(n,i){this.createLogisticEventService.getCompanyDrivers(this.dataTerms,n,this.size,!!i).then(o=>{this.isLoading=!0,o.length>0?(this.handleGetCompanyDriversSuccessResponse(this.foundUsers.concat(o)),this.size>0&&i.target.complete()):i.target.disabled=!0}).catch(o=>{this.handleGetCompanyDriversSuccessResponse(o),i.target.complete(),i.target.disabled=!0})}}return r.\u0275fac=function(n){return new(n||r)(e.\u0275\u0275directiveInject(P.V),e.\u0275\u0275directiveInject(u.UntypedFormBuilder),e.\u0275\u0275directiveInject(_.ModalController),e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(P.W_),e.\u0275\u0275directiveInject(P.$V),e.\u0275\u0275directiveInject(P.IR))},r.\u0275cmp=e.\u0275\u0275defineComponent({type:r,selectors:[["app-selector-for-driver-to-add-to-event"]],viewQuery:function(n,i){if(1&n&&e.\u0275\u0275viewQuery(_.IonInfiniteScroll,5),2&n){let o;e.\u0275\u0275queryRefresh(o=e.\u0275\u0275loadQuery())&&(i.infiniteScroll=o.first)}},decls:32,vars:10,consts:[[1,"fix-header-modal-ios","ion-no-border"],[3,"ngClass"],["horizontal","center","slot","fixed",1,"fab",3,"click"],["color","medium"],["name","close"],[1,"content"],[1,"modal-container"],[1,"modal-title"],[1,"button-holder"],[1,"modal-body"],[3,"formGroup"],[1,"input-holder"],[1,"upper-options"],["id","name","type","text","formControlName","searchTerm",2,"height","47px",3,"placeholder","keyup"],[1,"new-holder"],["type","button",3,"click"],["class","results",4,"ngIf"],[4,"ngIf"],[1,"modal-footer"],["threshold","15%","position","bottom",3,"ionInfinite"],["IonInfiniteScroll",""],[1,"results"],[1,"sub-title"],[4,"ngFor","ngForOf"],["typeofuser","driver",3,"foundUser","userSelect"],[3,"skeleton"]],template:function(n,i){1&n&&(e.\u0275\u0275elementStart(0,"ion-header",0)(1,"ion-toolbar"),e.\u0275\u0275element(2,"ion-title"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(3,"ion-content",1)(4,"ion-fab",2),e.\u0275\u0275listener("click",function(){return i.onClose()}),e.\u0275\u0275elementStart(5,"ion-fab-button",3),e.\u0275\u0275element(6,"ion-icon",4),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(7,"div",5)(8,"div",6)(9,"div",7),e.\u0275\u0275element(10,"div",8),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"div",9)(12,"ion-row")(13,"ion-col")(14,"form",10)(15,"div",11)(16,"div",12)(17,"input",13),e.\u0275\u0275listener("keyup",function(s){return i.onInputChange(s)}),e.\u0275\u0275pipe(18,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(19,"div",14)(20,"div",8)(21,"button",15),e.\u0275\u0275listener("click",function(){return i.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,ae,5,4,"div",16),e.\u0275\u0275template(27,ce,2,1,"ng-container",17),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275element(28,"div",18),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(29,"ion-infinite-scroll",19,20),e.\u0275\u0275listener("ionInfinite",function(s){return i.loadData(s)}),e.\u0275\u0275element(31,"ion-infinite-scroll-content"),e.\u0275\u0275elementEnd()()),2&n&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("ngClass","selector"),e.\u0275\u0275advance(11),e.\u0275\u0275property("formGroup",i.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",!!i.foundUsers.length),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!i.isLoading))},dependencies:[S.NgClass,S.NgForOf,S.NgIf,_.IonCol,_.IonContent,_.IonFab,_.IonFabButton,_.IonHeader,_.IonIcon,_.IonInfiniteScroll,_.IonInfiniteScrollContent,_.IonRow,_.IonTitle,_.IonToolbar,u.\u0275NgNoValidate,u.DefaultValueAccessor,u.NgControlStatus,u.NgControlStatusGroup,u.FormGroupDirective,u.FormControlName,U,y.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}"]}),r})();function le(r,d){1&r&&(e.\u0275\u0275elementStart(0,"div",10),e.\u0275\u0275element(1,"ion-spinner",11),e.\u0275\u0275elementEnd())}function de(r,d){if(1&r){const n=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",12)(1,"ion-row")(2,"ion-col")(3,"div",13)(4,"div",14)(5,"button",15),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(n);const o=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(o.deny())}),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"button",15),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(n);const o=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(o.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&r){const n=e.\u0275\u0275nextContext();e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(7,22,"MD_DRIVER_CONFLICT_BTN_CONFIRM_REFUSAL")," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(10,24,"MD_DRIVER_CONFLICT_BTN_ALLOW")," "),e.\u0275\u0275advance(7),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(17,26,"MD_DRIVER_CONFLICT_REGISTERED_DRIVER")),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate1(" ",n.registeredDriverInvite.driver.fullName," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(25,28,"MD_DRIVER_CONFLICT_LICENSEPLATONE")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",n.getLicensePlateOneToBeRendered(n.registeredDriverInvite)," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(31,30,"MD_DRIVER_CONFLICT_LICENSEPLATTWO")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",n.getLicensePlateTwoToBeRendered(n.registeredDriverInvite)," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(37,32,"MD_DRIVER_CONFLICT_ON_FOOT")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",n.getOnFootToBeRendered(n.registeredDriverInvite)," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(43,34,"MD_DRIVER_CONFLICT_VEHICLE_HAS_TRAILER")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",n.getOnFootToBeRendered(n.getHasCartToBeRendered)," "),e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(52,36,"MD_DRIVER_CONFLICT_DRIVER_CHECKIN")),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate1(" ",n.candidateDriverInvite.driver.fullName," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(60,38,"MD_DRIVER_CONFLICT_LICENSEPLATONE")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",n.getLicensePlateOneToBeRendered(n.candidateDriverInvite)," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(66,40,"MD_DRIVER_CONFLICT_LICENSEPLATTWO")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",n.getLicensePlateTwoToBeRendered(n.candidateDriverInvite)," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(72,42,"MD_DRIVER_CONFLICT_ON_FOOT")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",n.getOnFootToBeRendered(n.candidateDriverInvite)," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(78,44,"MD_DRIVER_CONFLICT_VEHICLE_HAS_TRAILER")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",n.getOnFootToBeRendered(n.getHasCartToBeRendered)," ")}}let me=(()=>{class r{constructor(n,i,o,s,l,f,E){this.modalController=n,this.portalLoginManagerService=i,this.profileManagerService=o,this.logisticEventApiService=s,this.authService=l,this.loadingService=f,this.translateConfigService=E,this.loaded=!1,this.comparePendingApprovals=()=>{const m=this.profileManagerService.getProfileLogistic();return new Promise((v,p)=>{this.authService.getToken().then(I=>this.portalLoginManagerService.getAccessToken(m.login,m.portal,I)).then(I=>this.logisticEventApiService.comparePendingApprovals(this.instanceName,this.inviteId,I.access_token).subscribe(v,p)).catch(p)}).finally(()=>this.loaded=!0)},this.handleComparePendingApprovalsSuccessResponse=m=>{console.log("handleComparePendingApprovalsSuccessResponse:",m),this.loadingService.hide(null,"loading-drivers-data");const v=m.current;this.registeredDriverInvite=m.previous,this.candidateDriverInvite=v},this.handleComparePendingApprovalsErrorResponse=m=>{this.loadingService.hide(null,"loading-drivers-data"),console.log("handleComparePendingApprovalsErrorResponse:",m)},this.getLicensePlateOneToBeRendered=m=>{if(m&&m.driver&&m.driver.licensePlateOne)return m.driver.licensePlateOne},this.getLicensePlateTwoToBeRendered=m=>{if(m&&m.driver&&m.driver.licensePlateTwo)return m.driver.licensePlateTwo},this.getOnFootToBeRendered=m=>{if(m&&m.driver)return this.translateConfigService.translate(m.driver.onFoot?"TEXT_YES":"TEXT_NOT")},this.getHasCartToBeRendered=m=>{if(m&&m.driver)return this.translateConfigService.translate(m.driver.hasCart?"TEXT_YES":"TEXT_NOT")},this.deny=()=>{const m={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(m)},this.authorize=()=>{const m={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(m)},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 r.\u0275fac=function(n){return new(n||r)(e.\u0275\u0275directiveInject(_.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))},r.\u0275cmp=e.\u0275\u0275defineComponent({type:r,selectors:[["app-solve-driver-checkin-conflict"]],inputs:{inviteId:"inviteId",instanceName:"instanceName"},decls:14,vars:9,consts:[[3,"ngClass"],[1,"content"],[1,"modal-container"],[1,"modal-title"],[1,"button-holder"],[1,"back",3,"click"],[1,"title"],["class","spinner",4,"ngIf"],["class","modal-body",4,"ngIf"],[1,"modal-footer"],[1,"spinner"],["mode","ios","name","crescent"],[1,"modal-body"],[1,"section","bottom"],[1,"actions","two-or-more"],["type","button",3,"click"],[1,"driver-holder"],[1,"item","driver-details"],[1,"label"],[1,"value"],[1,"photo"],[1,"name"],[1,"item","license-plate-one-details"],[1,"item","license-plate-two-details"],[1,"item","entrance-type-details"],[1,"item","has-cart-details"]],template:function(n,i){1&n&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"button",5),e.\u0275\u0275listener("click",function(){return i.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,de,81,46,"div",8),e.\u0275\u0275element(13,"div",9),e.\u0275\u0275elementEnd()()()),2&n&&(e.\u0275\u0275property("ngClass","selector"),e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(7,5,"BTN_BACK")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(10,7,"MD_DRIVER_CONFLICT_TITLE")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!i.loaded),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",i.registeredDriverInvite&&i.candidateDriverInvite&&i.loaded))},dependencies:[S.NgClass,S.NgIf,_.IonCol,_.IonRow,_.IonSpinner,y.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}"]}),r})()},37763:(ge,b,C)=>{C.d(b,{i:()=>D});var e=C(61380),S=C(92198),_=C(45449);let D=(()=>{class x{constructor(h){this.router=h}focusInRouterNavigate(){this.router.events.pipe((0,S.h)(h=>h instanceof e.NavigationEnd)).subscribe(()=>{const h=document.querySelector("#focusHeader");h&&h?.focus()})}applyFocusQuerySelector(h,R){setTimeout(()=>{document.querySelector(`#${h}`)?.focus()},R)}}return x.\u0275fac=function(h){return new(h||x)(_.\u0275\u0275inject(e.Router))},x.\u0275prov=_.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac,providedIn:"root"}),x})()}}]);