Files
kapp/3400.2a2e5cc7fec5f427.js
2026-05-21 11:19:10 -03:00

1 line
10 KiB
JavaScript

(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3400],{43400:(M,l,o)=>{o.r(l),o.d(l,{EventTransportTypePageModule:()=>O});var g=o(61380),t=o(45449),a=o(47898),d=o(90944),s=o(90603),p=o(36290),u=o(99826);function P(n,r){if(1&n){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",7)(1,"div",8)(2,"button",6),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const c=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(c.onFoot())}),t.\u0275\u0275text(3),t.\u0275\u0275pipe(4,"translate"),t.\u0275\u0275elementEnd()()()}2&n&&(t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(4,1,"PG_CREATE_TRANSPORT_STEP_BTN_ON_FOOT")," "))}let _=(()=>{class n{constructor(e,i,c,f){this.createLogisticEventService=e,this.navigationService=i,this.helperService=c,this.pendingRelease=f,this.driver=null,this.existPendings=!1,this.navigateToQRCode=()=>{this.navigationService.forward(["/home"])},this.navigateToPendingLiberations=()=>{this.navigationService.forward(["/push-notifications"])},this.withOutCartVehicle=()=>{this.createLogisticEventService.setOnFoot(!1),this.createLogisticEventService.setHasCart(!1),this.createLogisticEventService.setLicensePlateTwo(""),this.navigationService.forward(this.driver?["/logistic-events/create/event-first-license-plate"]:["/logistic-events/create/event-options"])},this.withCartVehicle=()=>{this.createLogisticEventService.setOnFoot(!1),this.createLogisticEventService.setHasCart(!0),this.navigationService.forward(this.driver?["/logistic-events/create/event-first-license-plate"]:["/logistic-events/create/event-options"])},this.onFoot=()=>{this.createLogisticEventService.setOnFoot(!0),this.createLogisticEventService.setHasCart(!1),this.navigationService.forward(["/logistic-events/create/event-options"])},this.goOneStepBack=()=>{this.navigationService.back("ENTRY"===this.eventType||"CLONE_EXIT"===this.eventType?["/logistic-events/create/event-assistants"]:["/logistic-events/create/event-driver"])},this.canShowOnFoot=()=>("ENTRY"===this.eventType||"CLONE_EXIT"===this.eventType)&&this.driver}ionViewDidEnter(){this.eventType=this.createLogisticEventService.getType();let e=this.createLogisticEventService.getDriver();e=e?"null"===e?null:e:null,this.driver=e}ionViewDidLeave(){}}return n.\u0275fac=function(e){return new(e||n)(t.\u0275\u0275directiveInject(a.V),t.\u0275\u0275directiveInject(a.f5),t.\u0275\u0275directiveInject(a.W_),t.\u0275\u0275directiveInject(a.xJ))},n.\u0275cmp=t.\u0275\u0275defineComponent({type:n,selectors:[["app-event-transport-type"]],decls:27,vars:19,consts:[["defaultHref","/logistic-events/create/event-assistants",3,"title","showBadge","refresh","menuToggle"],[1,"centralized-content"],[1,"page-title"],[1,"sub-title"],[1,"add-from"],[1,"add-user"],[3,"click"],[1,"dont-add-just-go"],[1,"skip"],["class","dont-add-just-go",4,"ngIf"],[1,"button-holder"],["type","button",1,"back",3,"click"]],template:function(e,i){1&e&&(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,"ion-row")(9,"ion-col")(10,"div",4)(11,"div",5)(12,"button",6),t.\u0275\u0275listener("click",function(){return i.withOutCartVehicle()}),t.\u0275\u0275text(13),t.\u0275\u0275pipe(14,"translate"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(15,"div",7)(16,"div",8)(17,"button",6),t.\u0275\u0275listener("click",function(){return i.withCartVehicle()}),t.\u0275\u0275text(18),t.\u0275\u0275pipe(19,"translate"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275template(20,P,5,3,"div",9),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(21,"ion-row")(22,"ion-col")(23,"div",10)(24,"button",11),t.\u0275\u0275listener("click",function(){return i.goOneStepBack()}),t.\u0275\u0275text(25),t.\u0275\u0275pipe(26,"translate"),t.\u0275\u0275elementEnd()()()()()()),2&e&&(t.\u0275\u0275property("title",t.\u0275\u0275pipeBind1(1,9,"PG_CREATE_TRANSPORT_STEP_HEADER_TITLE"))("showBadge",!0)("refresh",!1)("menuToggle",!1),t.\u0275\u0275advance(6),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(7,11,"PG_CREATE_TRANSPORT_STEP_TEXT_DRIVER_TRANSPORT")),t.\u0275\u0275advance(7),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(14,13,"PG_CREATE_TRANSPORT_STEP_BTN_VEHICLE_WITHOUT_TRAILER")," "),t.\u0275\u0275advance(5),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(19,15,"PG_CREATE_TRANSPORT_STEP_BTN_VEHICLE_WITH_TRAILER")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",i.canShowOnFoot()),t.\u0275\u0275advance(5),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(26,17,"BTN_BACK")," "))},dependencies:[d.NgIf,s.IonCol,s.IonContent,s.IonRow,p.G,u.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:32px;margin-bottom:32px}.centralized-content[_ngcontent-%COMP%] .page-title[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:initial!important;font-weight:700;text-align:center}.centralized-content[_ngcontent-%COMP%] .page-title[_ngcontent-%COMP%] .sub-title[_ngcontent-%COMP%]{text-align:center;color:#656768;font-size:.9em;margin-top:4px}.centralized-content[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%]{margin-top:8px}.centralized-content[_ngcontent-%COMP%] .add-from[_ngcontent-%COMP%]{display:flex;width:80%;margin:0 10%}.centralized-content[_ngcontent-%COMP%] .add-from[_ngcontent-%COMP%] .add-user[_ngcontent-%COMP%]{display:flex;align-content:center;justify-content:center;flex:1}.centralized-content[_ngcontent-%COMP%] .add-from[_ngcontent-%COMP%] .add-user[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:.75em 1.5em;border-radius:4px;background-color:#0ec254;color:#fff;font-size:1em;width:calc(100% - 4px);margin-left:4px;transition:background-color .1s ease-out}.centralized-content[_ngcontent-%COMP%] .add-from[_ngcontent-%COMP%] .add-user[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:active{background-color:#fff;color:#0ec254;transition:background-color .1s ease-out}.centralized-content[_ngcontent-%COMP%] .add-from[_ngcontent-%COMP%] .add-user[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:focus{outline:none}.centralized-content[_ngcontent-%COMP%] .dont-add-just-go[_ngcontent-%COMP%]{align-content:center;justify-content:center;display:flex;width:80%;margin:8px 10% 0}.centralized-content[_ngcontent-%COMP%] .dont-add-just-go[_ngcontent-%COMP%] .skip[_ngcontent-%COMP%]{display:flex;align-content:center;justify-content:center;flex:1}.centralized-content[_ngcontent-%COMP%] .dont-add-just-go[_ngcontent-%COMP%] .skip[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:.75em 1.5em;border-radius:4px;background-color:#0ec254;color:#fff;font-size:1em;width:calc(100% - 4px);margin-left:4px;transition:background-color .1s ease-out}.centralized-content[_ngcontent-%COMP%] .dont-add-just-go[_ngcontent-%COMP%] .skip[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:active{background-color:#fff;color:#0ec254;transition:background-color .1s ease-out}.centralized-content[_ngcontent-%COMP%] .dont-add-just-go[_ngcontent-%COMP%] .skip[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:focus{outline:none}.centralized-content[_ngcontent-%COMP%] .results[_ngcontent-%COMP%]{margin-top:1.5em}.centralized-content[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:initial!important;width:80%;margin:0 10% 6px;font-weight:700}.centralized-content[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .sub-title[_ngcontent-%COMP%]{width:80%;margin:0 10% 11px;font-size:.9em;background-color:#eee;padding:4px 8px;border-radius:2px}.centralized-content[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .result[_ngcontent-%COMP%]{width:80%;margin:0 10% 4px;border:1px solid #eee;border-radius:4px;padding:8px 12px;display:flex;justify-content:space-between;flex-direction:column}.centralized-content[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .result[_ngcontent-%COMP%] .main[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%}.centralized-content[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .result[_ngcontent-%COMP%] .main[_ngcontent-%COMP%] .user-info[_ngcontent-%COMP%] .company[_ngcontent-%COMP%]{color:#aaa}.centralized-content[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .result[_ngcontent-%COMP%] .main[_ngcontent-%COMP%] .open-actions[_ngcontent-%COMP%]{width:32px;height:32px;display:flex;justify-content:center;align-items:center;border-radius:32px;border:1px solid #eee}.centralized-content[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .result[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:none}.centralized-content[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .result[_ngcontent-%COMP%] .actions.show[_ngcontent-%COMP%]{display:block;margin-top:4px;border-top:1px solid #eee}.centralized-content[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .result[_ngcontent-%COMP%] .actions.show[_ngcontent-%COMP%] .edit-action[_ngcontent-%COMP%], .centralized-content[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .result[_ngcontent-%COMP%] .actions.show[_ngcontent-%COMP%] .cant-edit[_ngcontent-%COMP%]{margin-top:4px}.centralized-content[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%]{justify-content:space-evenly}.pulsate-fwd[_ngcontent-%COMP%]{animation:pulsate-fwd .5s ease-in-out infinite both;outline:none}@keyframes pulsate-fwd{0%{transform:scale(1)}50%{transform:scale(1.5)}to{transform:scale(1)}}"]}),n})();var C=o(69270);const v=[{path:"",component:_}];let O=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.\u0275\u0275defineNgModule({type:n}),n.\u0275inj=t.\u0275\u0275defineInjector({imports:[C.I,g.RouterModule.forChild(v)]}),n})()}}]);