PageSourceSearch

https://sender.getpackage.com/99.82bba52dad233f1b.js

js getpackage.com collected 2026-10-06 07:18:51 UTC 25,002 bytes, 42 lines download raw bytes

1"use strict";(self.webpackChunkgp_fe_sender=self.webpackChunkgp_fe_sender||[]).push([[99],{8099:($,y,s)=>{s.r(y),s.d(y,{ActiveRoutesModule:()=>Ft});var i=s(3336),E=s(1635),M=s(4412),f=s(8141),D=s(5558),v=s(7673),h=s(9764),t=s(4438),I=s(1701),O=s(6354),d=s(9416);const j=d.J1`
2    query Routes($limit: Int, $offset: Int, $id: [Int!]) {
3  routes(limit: $limit, offset: $offset, status: [0, 1, 2], id: $id) {
4    items {
5      id
6      status
7      deliveries {
8        id
9        status
10        package {
11          customerUniqueId
12        }
13      }
14    }
15    totalCount
16  }
17}
18    `;let B=(()=>{class n extends d.XK{constructor(e){super(e),this.document=j}static{this.\u0275fac=function(o){return new(o||n)(t.KVO(d.Ic))}}static{this.\u0275prov=t.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();const C=d.J1`
19    query deliveryByBarcode($barcode: [String!]) {
20  deliveries(packageCustomerUniqueId: $barcode) {
21    items {
22      id
23      status
24      route {
25        id
26        status
27      }
28    }
29  }
30}
31    `;let V=(()=>{class n extends d.XK{constructor(e){super(e),this.document=C}static{this.\u0275fac=function(o){return new(o||n)(t.KVO(d.Ic))}}static{this.\u0275prov=t.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();const l=d.J1`
32    query deliveryActionItemByBarcode($barcode: [String!], $opStatus: DeliveryOpStatus) {
33  deliveryActionItemByBarcode(barcode: $barcode, opStatus: $opStatus) {
34    action
35    deliveryId
36    opStatus
37    packageId
38    routeId
39    updatedAt
40  }
41}
42    `;let R=(()=>{class n extends d.XK{constructor(e){super(e),this.document=l}static{this.\u0275fac=function(o){return new(o||n)(t.KVO(d.Ic))}}static{this.\u0275prov=t.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),c=(()=>{class n{constructor(e,o,r){this.routesGQL=e,this.deliveryByBarcodeGQL=o,this.deliveryActionItemByBarcodeGQL=r}getRoutes(e,o,r){return this.routesGQL.fetch({limit:o,offset:(e-1)*o,id:r},{fetchPolicy:"no-cache"}).pipe((0,O.T)(u=>u.data.routes))}deliveriesByBarcode(e){return this.deliveryByBarcodeGQL.fetch({barcode:e},{fetchPolicy:"no-cache"}).pipe((0,D.n)(o=>{if(o.data?.deliveries?.items?.[0]?.id){const r=o.data.deliveries.items[0];return(0,v.of)({totalCount:1,items:[{id:r.route?.id,status:r.route?.status,deliveries:[{id:r.id,status:r.status,package:{customerUniqueId:e}}]}]})}return/^\d+$/.test(e)&&parseInt(e)<2147483648?this.getRoutes(1,20,parseInt(e)):(0,v.of)({totalCount:0})}))}deliveriesActionByBarcode(e){return this.deliveryActionItemByBarcodeGQL.fetch({barcode:e},{fetchPolicy:"no-cache"}).pipe((0,O.T)(o=>o.data?.deliveryActionItemByBarcode))}deliveriesReturnedByBarcode(e){return this.deliveryActionItemByBarcodeGQL.fetch({barcode:e,opStatus:I.Sy.ReportedAsReturned},{fetchPolicy:"no-cache"}).pipe((0,O.T)(o=>o.data?.deliveryActionItemByBarcode))}static{this.\u0275fac=function(o){return new(o||n)(t.KVO(B),t.KVO(V),t.KVO(R))}}static{this.\u0275prov=t.jDH({token:n,factory:n.\u0275fac})}}return n})();var p=s(122),g=s(177),P=s(8834),A=s(4006),k=s(1094),N=s(1314),G=s(3955),U=s(144);const Y=["frame"],L=n=>({id:n}),z=()=>["warehouse:manager"];function w(n,a){if(1&n&&(t.qex(0),t.j41(1,"div"),t.EFF(2),t.nI1(3,"translate"),t.nI1(4,"enumTranslate"),t.nI1(5,"titlecase"),t.k0s(),t.j41(6,"div"),t.EFF(7),t.nI1(8,"translate"),t.k0s(),t.bVm()),2&n){const e=t.XpG().ngIf;t.R7$(2),t.Lme(" ",t.bMT(3,4,"active-routes.status"),": ",t.bMT(5,9,t.i5U(4,6,null==e.items[0].deliveries?null:e.items[0].deliveries[0].status,"DeliveryStatus"))," "),t.R7$(5),t.Lme(" ",t.bMT(8,11,"active-routes.route"),": ",e.items[0].id," ")}}function X(n,a){if(1&n&&(t.j41(0,"div",9)(1,"div",10),t.EFF(2),t.nI1(3,"async"),t.nI1(4,"translate"),t.k0s(),t.DNE(5,w,9,13,"ng-container",4),t.k0s()),2&n){const e=a.ngIf,o=t.XpG(2);t.R7$(2),t.SpI(" ",t.i5U(4,4,null!=e&&null!=e.items&&e.items.length||t.bMT(3,2,o.route$)?"active-routes.search":"active-routes.not_found",t.eq3(7,L,o.ttn))," "),t.R7$(3),t.Y8G("ngIf",null==e||null==e.items?null:e.items.length)}}function K(n,a){if(1&n&&(t.j41(0,"div"),t.EFF(1),t.nI1(2,"translate"),t.nI1(3,"translate"),t.k0s()),2&n){const e=t.XpG().ngIf;t.R7$(),t.Lme(" ",t.bMT(2,2,"DeliveryOpStatus.title"),": ",t.bMT(3,4,"DeliveryOpStatus."+e.opStatus)," ")}}function J(n,a){if(1&n){const e=t.RV6();t.j41(0,"button",12),t.bIt("click",function(){t.eBV(e);const r=t.XpG(4);return t.Njj(r.returned())}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}2&n&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"DeliveryAction.TO_RETURN")," "))}function H(n,a){if(1&n&&(t.j41(0,"div"),t.DNE(1,J,3,3,"button",6),t.k0s()),2&n){const e=t.XpG().ngIf;t.R7$(),t.Y8G("ngIf","RETURN_TO_SENDER"==e.action&&"REPORTED_AS_RETURNED"!=e.opStatus)}}function Q(n,a){if(1&n&&(t.j41(0,"div",9),t.DNE(1,K,4,6,"div",4),t.j41(2,"div"),t.EFF(3),t.nI1(4,"translate"),t.nI1(5,"translate"),t.k0s(),t.DNE(6,H,2,1,"div",11),t.k0s()),2&n){const e=a.ngIf;t.R7$(),t.Y8G("ngIf","NONE"!=e.opStatus),t.R7$(2),t.Lme(" ",t.bMT(4,4,"DeliveryAction.title"),": ",t.bMT(5,6,"DeliveryAction."+e.action)," "),t.R7$(3),t.Y8G("isPermitted",t.lJ4(8,z))}}function W(n,a){if(1&n&&(t.qex(0),t.DNE(1,X,6,9,"div",8),t.nI1(2,"async"),t.DNE(3,Q,7,9,"div",8),t.nI1(4,"async"),t.bVm()),2&n){const e=t.XpG();t.R7$(),t.Y8G("ngIf",t.bMT(2,2,e.routes$)),t.R7$(2),t.Y8G("ngIf",t.bMT(4,4,e.route$))}}function Z(n,a){if(1&n){const e=t.RV6();t.j41(0,"button",12),t.bIt("click",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.scanMore())}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}2&n&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"active-routes.continue_scan")," "))}let q=(()=>{class n{constructor(e,o){this.activeRoutesService=e,this.snackBarService=o,this.allowedF
42ormats=[h.BarcodeFormat.CODE_128],this.ttn="",this.hasDevices=!1}onCamerasFound(e){this.availableDevices=e,this.hasDevices=!(!e||!e.length),this.hasDevices&&setTimeout(()=>{this.drowFrame()},1e3)}scanSuccessHandler(e){this.ttn||(this.ttn=e,this.routes$=this.activeRoutesService.deliveriesByBarcode(this.ttn),this.route$=this.activeRoutesService.deliveriesActionByBarcode(this.ttn))}scanMore(){this.ttn=""}returned(){this.activeRoutesService.deliveriesReturnedByBarcode(this.ttn).subscribe(()=>{this.scanSuccessHandler(this.ttn)},e=>{this.snackBarService.error(e)})}drowFrame(){const e=this.canvas.nativeElement.getContext("2d");e&&(e.strokeStyle="blue",e.strokeRect(10,60,280,120),e.beginPath(),e.strokeStyle="red",e.moveTo(10,120),e.lineTo(290,120),e.stroke())}static{this.\u0275fac=function(o){return new(o||n)(t.rXU(c),t.rXU(p.v))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["gp-active-routes-scan"]],viewQuery:function(o,r){if(1&o&&t.GBs(Y,5),2&o){let u;t.mGM(u=t.lsd())&&(r.canvas=u.first)}},decls:10,vars:9,consts:[["frame",""],[1,"scanner"],[2,"width","300px",3,"scanSuccess","deviceChange","camerasFound","formats","device","tryHarder"],["height","230px","width","300px",1,"frame"],[4,"ngIf"],[1,"actions"],["mat-raised-button","","color","primary",3,"click",4,"ngIf"],["mat-raised-button","",3,"mat-dialog-close"],["class","route",4,"ngIf"],[1,"route"],[1,"route-title"],[4,"isPermitted"],["mat-raised-button","","color","primary",3,"click"]],template:function(o,r){if(1&o){const u=t.RV6();t.j41(0,"div",1)(1,"zxing-scanner",2),t.bIt("scanSuccess",function(b){return t.eBV(u),t.Njj(r.scanSuccessHandler(b))}),t.mxI("deviceChange",function(b){return t.eBV(u),t.DH7(r.currentDevice,b)||(r.currentDevice=b),t.Njj(b)}),t.bIt("camerasFound",function(b){return t.eBV(u),t.Njj(r.onCamerasFound(b))}),t.k0s(),t.nrm(2,"canvas",3,0),t.k0s(),t.DNE(4,W,5,6,"ng-container",4),t.j41(5,"div",5),t.DNE(6,Z,3,3,"button",6),t.j41(7,"button",7),t.EFF(8),t.nI1(9,"translate"),t.k0s()()}2&o&&(t.R7$(),t.Y8G("formats",r.allowedFormats),t.R50("device",r.currentDevice),t.Y8G("tryHarder",!0),t.R7$(3),t.Y8G("ngIf",r.ttn),t.R7$(2),t.Y8G("ngIf",r.ttn),t.R7$(),t.Y8G("mat-dialog-close",!1),t.R7$(),t.SpI(" ",t.bMT(9,7,"common.close")," "))},dependencies:[g.bT,P.$z,A.tx,k.c,N.M,g.Jj,g.PV,G.D9,U.g],styles:[".scanner[_ngcontent-%COMP%]{position:relative}.scanner[_ngcontent-%COMP%]   .frame[_ngcontent-%COMP%]{position:absolute;top:0}button[_ngcontent-%COMP%]{width:100%}.route[_ngcontent-%COMP%]{padding:10px;text-align:center;font-size:18px;display:flex;flex-direction:column;gap:10px}.route-title[_ngcontent-%COMP%]{font-weight:700}.actions[_ngcontent-%COMP%]{padding:5px 10px;display:flex;flex-direction:column;gap:10px}"]})}}return n})();var tt=s(4203),et=s(7382),_=s(7548),nt=s(2018),it=s(8612),ot=s(4103),at=s(9213),st=s(8203),F=s(2102),rt=s(9631),ct=s(9183),m=s(9159),x=s(9417),lt=s(9052),ut=s(3115);const gt=["barcode"],pt=n=>({id:n}),dt=()=>[],_t=()=>["warehouse:manager"];function mt(n,a){if(1&n){const e=t.RV6();t.j41(0,"h2",11),t.EFF(1),t.nI1(2,"translate"),t.j41(3,"button",12),t.bIt("click",function(){t.eBV(e);const r=t.XpG(2);return t.Njj(r.clear())}),t.j41(4,"mat-icon"),t.EFF(5,"close"),t.k0s()()()}if(2&n){const e=t.XpG().ngIf,o=t.XpG();t.R7$(),t.SpI(" ",t.i5U(2,1,null!=e.items&&e.items.length?(null==e.items||null==e.items[0]||null==e.items[0].id?null:e.items[0].id.toString())==o.ttnSearch?"active-routes.search_route":"active-routes.search_package":"active-routes.not_found",t.eq3(4,pt,o.ttnSearch))," ")}}function ft(n,a){1&n&&(t.j41(0,"th",20),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"active-routes.route")," "))}function vt(n,a){if(1&n&&(t.j41(0,"td",21),t.EFF(1),t.k0s()),2&n){const e=a.$implicit;t.R7$(),t.JRh(e.id)}}function ht(n,a){1&n&&(t.j41(0,"th",20)(1,"div",22)(2,"div",23),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"div"),t.EFF(6),t.nI1(7,"translate"),t.k0s()()()),2&n&&(t.R7$(3),t.SpI(" ",t.bMT(4,2,"active-routes.package_id")," "),t.R7$(3),t.JRh(t.bMT(7,4,"active-routes.status")))}function Rt(n,a){if(1&n&&(t.j41(0,"div",29),t.EFF(1),t.nI1(2,"enumTranslate"),t.nI1(3,"translate"),t.k0s()),2&n){const e=t.XpG().$implicit,o=t.XpG(4);
42t.Y8G("ngClass",o.getStatusClass(e.status)),t.R7$(),t.SpI(" ",e.status?t.bMT(3,5,"delivery-status."+t.i5U(2,2,e.status,"DeliveryStatus")):""," ")}}function Ct(n,a){if(1&n&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n){const e=t.XpG().$implicit;t.R7$(),t.SpI(" ",t.bMT(2,1,"DeliveryOpStatus."+e.opStatus)," ")}}function It(n,a){if(1&n&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n){const e=t.XpG().$implicit;t.R7$(),t.SpI(" ",t.bMT(2,1,"DeliveryAction."+e.action)," ")}}function Pt(n,a){if(1&n){const e=t.RV6();t.j41(0,"button",31),t.bIt("click",function(){t.eBV(e);const r=t.XpG(6);return t.Njj(r.returned())}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}2&n&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"DeliveryAction.TO_RETURN")," "))}function bt(n,a){if(1&n&&(t.qex(0),t.DNE(1,Pt,3,3,"button",30),t.bVm()),2&n){const e=t.XpG().$implicit;t.R7$(),t.Y8G("ngIf","RETURN_TO_SENDER"==e.action&&"REPORTED_AS_RETURNED"!=e.opStatus)}}function yt(n,a){if(1&n&&(t.j41(0,"div",22)(1,"div",23),t.EFF(2),t.k0s(),t.j41(3,"div",25),t.DNE(4,Rt,4,7,"div",26),t.j41(5,"div",27),t.DNE(6,Ct,3,3,"span",7)(7,It,3,3,"span",7)(8,bt,2,1,"ng-container",28),t.k0s()()()),2&n){const e=a.$implicit;t.R7$(2),t.SpI(" ",e.package.customerUniqueId||e.packageId," "),t.R7$(2),t.Y8G("ngIf",e.status),t.R7$(2),t.Y8G("ngIf",e.opStatus&&"NONE"!=e.opStatus),t.R7$(),t.Y8G("ngIf",e.action&&(!e.opStatus||"NONE"==e.opStatus)),t.R7$(),t.Y8G("isPermitted",t.lJ4(5,_t))}}function Et(n,a){if(1&n&&(t.j41(0,"td",21),t.DNE(1,yt,9,6,"div",24),t.k0s()),2&n){const e=a.$implicit;t.R7$(),t.Y8G("ngForOf",e.deliveries)}}function Tt(n,a){1&n&&t.nrm(0,"tr",32)}function St(n,a){1&n&&t.nrm(0,"tr",33)}function Mt(n,a){if(1&n&&(t.qex(0),t.j41(1,"table",13),t.qex(2,14),t.DNE(3,ft,3,3,"th",15)(4,vt,2,1,"td",16),t.bVm(),t.qex(5,17),t.DNE(6,ht,8,6,"th",15)(7,Et,2,1,"td",16),t.bVm(),t.DNE(8,Tt,1,0,"tr",18)(9,St,1,0,"tr",19),t.k0s(),t.bVm()),2&n){const e=t.XpG().ngIf,o=t.XpG();t.R7$(),t.Y8G("@.disabled",!0)("dataSource",e.items||t.lJ4(4,dt)),t.R7$(7),t.Y8G("matHeaderRowDef",o.displayedColumns),t.R7$(),t.Y8G("matRowDefColumns",o.displayedColumns)}}function Dt(n,a){if(1&n&&(t.qex(0),t.DNE(1,mt,6,6,"h2",10)(2,Mt,10,5,"ng-container",7),t.bVm()),2&n){const e=a.ngIf,o=t.XpG();t.R7$(),t.Y8G("ngIf",o.ttnSearch),t.R7$(),t.Y8G("ngIf",null==e.items?null:e.items.length)}}function Ot(n,a){if(1&n){const e=t.RV6();t.j41(0,"gp-pagination",34),t.bIt("currentPageChange",function(r){t.eBV(e);const u=t.XpG();return t.Njj(u.pageChange(r))})("pageSizeChange",function(r){t.eBV(e);const u=t.XpG();return t.Njj(u.changePageSize(r))}),t.k0s()}if(2&n){const e=t.XpG();t.Y8G("pageSize",e.pageSize)("currentPage",e.page)("lastPage",e.lastPage)}}function jt(n,a){1&n&&(t.j41(0,"div",35),t.nrm(1,"mat-spinner",36),t.k0s())}class T{constructor(a,e){this.activeRoutesService=a,this.dialog=e,this.displayedColumns=["id","packages"],this.loading$=new M.t(!0),this.pageSize=20,this.page=1,this.lastPage=1,this.routes$=this.setRoutes(),this.ttn="",this.ttnSearch=""}ngAfterViewInit(){setTimeout(()=>{this.barcode.nativeElement.focus()},200)}pageChange(a){this.page=a,this.routes$=this.setRoutes()}changePageSize(a){this.pageSize=a,this.page=1,this.routes$=this.setRoutes()}setRoutes(){return this.loading$.next(!0),this.activeRoutesService.getRoutes(this.page,this.pageSize).pipe((0,f.M)(a=>{this.lastPage=Math.ceil(a.totalCount/this.pageSize)||1,this.loading$.next(!1)}))}clear(){this.page=1,this.routes$=this.setRoutes(),this.ttnSearch="",this.barcode.nativeElement.focus()}scan(){this.dialog.open(q,{autoFocus:!1}).afterClosed().subscribe(a=>{a&&(this.ttn=a,this.searchTTN())})}searchTTN(){this.ttn=this.ttn.trim(),this.ttn&&(this.loading$.next(!0),this.ttnSearch=this.ttn,this.ttn="",this.routes$=(0,ot.Z)(this.clientPermissions,"warehouse:manager")?this.activeRoutesService.deliveriesActionByBarcode(this.ttnSearch).pipe((0,D.n)(a=>a?(this.loading$.next(!1),this.lastPage=1,this.getRoute(a)):this.deliveriesByBarcode())):this.deliveriesByBarcode())}deliveriesByBarcode(){return this.activeRoutesService.deliveriesByBarcode(this.ttnSearch).pipe((0,f.M)(()=>{this.loading$.next(!1),this.ttn="",this.lastPage=1,this.barcode.nativeElement.focus()}))}getStatusClass(a){switch(a){case _.n.LOCATING_COURIER_FOR_ROUTE:case"LOCATING_COURIER_FOR_ROUTE":case"IN_ROUTE":return"gp-mode-6";case _.n.ASSIGNED:case _.n.STARTED:case _.n.PICKED_UP:case"ASSIGNED":case"STARTED":case"PICKED_UP":case"IN_ROUTE":return"gp-mode-1";case _.n.COMPLETED:case"COMPLETED":return"gp-mode-2";
42case _.n.NOT_IN_LINE:case _.n.CANCELED:case"NOT_IN_LINE":case"CANCELED":case"CREATED":return"gp-mode-3";case _.n.CANCELED_BY_COURIER_ON_PICKUP:case _.n.FAILED_DROPOFF:case"CANCELED_BY_COURIER_ON_PICKUP":case"FAILED_DROPOFF":return"gp-mode-4";case _.n.RETURNED:case"RETURNED":return"gp-mode-5";default:return""}}returned(){this.routes$=this.activeRoutesService.deliveriesReturnedByBarcode(this.ttn).pipe((0,D.n)(a=>this.getRoute(a)))}getRoute(a){return(0,v.of)({totalCount:1,items:[{id:a.routeId,deliveries:[{id:a.routeId,action:a.action,opStatus:a.opStatus,package:{customerUniqueId:a.packageId}}]}]})}static{this.\u0275fac=function(e){return new(e||T)(t.rXU(c),t.rXU(A.bZ))}}static{this.\u0275cmp=t.VBU({type:T,selectors:[["gp-active-routes"]],viewQuery:function(e,o){if(1&e&&t.GBs(gt,5),2&e){let r;t.mGM(r=t.lsd())&&(o.barcode=r.first)}},decls:21,vars:17,consts:[["barcode",""],[3,"title"],[1,"barcode"],["subscriptSizing","dynamic",3,"dir"],["matInput","",3,"ngModelChange","keyup.enter","ngModel"],["matSuffix","","type","button","mat-icon-button","",3,"click"],["type","button","mat-icon-button","",1,"scanner",3,"click"],[4,"ngIf"],["class","gp-mt-16",3,"pageSize","currentPage","lastPage","currentPageChange","pageSizeChange",4,"ngIf"],["class","loading",4,"ngIf"],["class","barcode-title",4,"ngIf"],[1,"barcode-title"],["type","button","mat-icon-button","",3,"click"],["mat-table","",1,"gp-max-width",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","packages"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[1,"delivery"],[1,"delivery-id"],["class","delivery",4,"ngFor","ngForOf"],[1,"gp-status-cell-wrapper"],["class","gp-status-cell",3,"ngClass",4,"ngIf"],[1,"action"],[4,"isPermitted"],[1,"gp-status-cell",3,"ngClass"],["mat-raised-button","","color","primary",3,"click",4,"ngIf"],["mat-raised-button","","color","primary",3,"click"],["mat-header-row",""],["mat-row",""],[1,"gp-mt-16",3,"currentPageChange","pageSizeChange","pageSize","currentPage","lastPage"],[1,"loading"],["diameter","80"]],template:function(e,o){if(1&e){const r=t.RV6();t.j41(0,"gp-page-layout",1),t.nI1(1,"translate"),t.j41(2,"div",2)(3,"mat-form-field",3),t.nI1(4,"async"),t.j41(5,"input",4,0),t.mxI("ngModelChange",function(S){return t.eBV(r),t.DH7(o.ttn,S)||(o.ttn=S),t.Njj(S)}),t.bIt("keyup.enter",function(){return t.eBV(r),t.Njj(o.searchTTN())}),t.k0s(),t.j41(7,"mat-label"),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.j41(10,"button",5),t.bIt("click",function(){return t.eBV(r),t.Njj(o.searchTTN())}),t.j41(11,"mat-icon"),t.EFF(12,"search"),t.k0s()()(),t.j41(13,"button",6),t.bIt("click",function(){return t.eBV(r),t.Njj(o.scan())}),t.j41(14,"mat-icon"),t.EFF(15,"document_scanner"),t.k0s()()(),t.DNE(16,Dt,3,2,"ng-container",7),t.nI1(17,"async"),t.DNE(18,Ot,1,3,"gp-pagination",8)(19,jt,2,0,"div",9),t.nI1(20,"async"),t.k0s()}2&e&&(t.Y8G("title",t.bMT(1,7,"sidebar.routes")),t.R7$(3),t.Y8G("dir",t.bMT(4,9,o.dir$)||"rtl"),t.R7$(2),t.R50("ngModel",o.ttn),t.R7$(3),t.JRh(t.bMT(9,11,"active-routes.package_route_id")),t.R7$(8),t.Y8G("ngIf",t.bMT(17,13,o.routes$)),t.R7$(2),t.Y8G("ngIf",o.lastPage>1),t.R7$(),t.Y8G("ngIf",t.bMT(20,15,o.loading$)))},dependencies:[g.YU,g.Sq,g.bT,at.An,st.ig,P.$z,P.iY,F.rl,F.nJ,F.yw,rt.fg,ct.LG,m.Zl,m.tL,m.ji,m.cC,m.YV,m.iL,m.KS,m.$R,m.YZ,m.NB,x.me,x.BC,x.vS,lt.e,ut.J,k.c,g.Jj,G.D9,U.g],styles:[".loading[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:80%}.barcode[_ngcontent-%COMP%]{display:flex;align-items:center}.barcode[_ngcontent-%COMP%]   .scanner[_ngcontent-%COMP%]{display:none}.barcode-title[_ngcontent-%COMP%]{display:flex;gap:10px;align-items:center;padding:5px 0}@media screen and (max-width: 500px){.barcode[_ngcontent-%COMP%]   .scanner[_ngcontent-%COMP%]{display:block}}.delivery[_ngcontent-%COMP%]{display:flex;gap:20px;padding:10px 0;text-align:start;align-items:center}.delivery-id[_ngcontent-%COMP%]{min-width:140px}@media screen and (max-width: 500px){.delivery-id[_ngcontent-%COMP%]{min-width:120px}}.gp-status-cell-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center}.gp-status-cell[_ngcontent-%COMP%]{border-radius:28px;padding:4px 20px;box-sizing:border-box;width:-moz-fit-content;width:fit-content}.gp-mode-1[_ngcontent-%COMP%]{background-color:#f7e5bf}.gp-mode-2[_ngcontent-%COMP%]{background-color:#bdeedf}.gp-mode-3[_ngcontent-%COMP%]{background-color:#e2e2e4}.gp-mode-4[_ngcontent-%COMP%]{background-color:#cec9f4}.gp-mode-5[_ngcontent-%COMP%]{background-color:#bdd1f9}.gp-mode-6[_ngcontent-%COMP%]{background-color:#0e67956c}.action[_ngcontent-%COMP%]{display:flex;align-items:center;gap:20px;font-weight:700}  .mat-progress-spinner circle,   .mat-mdc-progress-spinner circle{stroke:#999!important}  .mat-form-field-appearance-outline .mat-form-field-wrapper{margin:0}  .mat-form-field-wrapper{padding:0}"]})}}(0,E.Cg)([(0,et.l6)(tt.t.dir)],T.prototype,"dir$",void 0),(0,E.Cg)([(0,it.bL)(nt.b.clientPermissions)],T.prototype,"clientPermissions",void 0);var Bt=s(2108);let Ft=(()=>{class n{static{this.\u0275fac=function(o){return new(o||n)}}static{this.\u0275mod=t.$C({type:n})}static{this.\u0275inj=t.G2t({providers:[c],imports:[i.G,Bt.iI.forChild([{path:"",component:T}]),N.x]})}}return n})()},9052:($,y,s)=>{s.d(y,{e:()=>B});var i=s(4438),E=s(3955),M=s(9213),f=s(8203),D=s(8834),v=s(4823),h=s(9631),t=s(9115),I=s(9417),O=s(177);const d=["pageInput"],j=C=>({direction:C});let B=(()=>{class C{set currentRows(l){this._currentRows=l?.replace("translate",this.translate.instant("common.of")),setTimeout(()=>{this._currentRows=l?.replace("translate",this.translate.instant("common.of"))},0)}get currentPage(){return this._currentPage}set currentPage(l){this.tryChangePage(l)}constructor(l){this.translate=l,this.currentPageChange=new i.bkB,this.pageSizeChange=new i.bkB,this._currentPage=1,this._currentRows=""}ngOnInit(){this.language=localStorage.getItem("lang")?localStorage.getItem("lang"):"he"}tryChangePage(l){l!==this._currentPage&&l>0&&l<=this.lastPage?(this._currentPage=l,this.currentPageChange.emit(this._currentPage)):this.pageInput.nativeElement.value=this._currentPage.toFixed()}onUpdateCurrentPage(l){this.currentPage=+l.value}static{this.\u0275fac=function(R){return new(R||C)(i.rXU(E.c$))}}static{this.\u0275cmp=i.VBU({type:C,selectors:[["gp-pagination"]],viewQuery:function(R,c){if(1&R&&i.GBs(d,7),2&R){let p;i.mGM(p=i.lsd())&&(c.pageInput=p.first)}},inputs:{pageSize:"pageSize",lastPage:"lastPage",currentRows:"currentRows",currentPage:"currentPage"},outputs:{currentPageChange:"currentPageChange",pageSizeChange:"pageSizeChange"},decls:34,vars:12,consts:[["pageInput",""],["menu","matMenu"],["dir","ltr",1,"gp-pagination"],[1,"gp-left-side"],[1,"gp-pagination__center"],["mat-icon-button","",3,"click","disabled"],["matInput","","type","number","matTooltipPosition","above",1,"gp-page-number",3,"blur","keyup.enter","matTooltip","matTooltipDisabled","ngModel"],[1,"gp-dots"],[1,"gp-right-side","gp-d-flex","gp-font-2"],[1,"number-of-rows-wrap"],[1,"gp-ml-20"],[1,"number-of-rows-trigger",3,"matMenuTriggerFor"],["yPosition","above","xPosition","before"],["mat-menu-item","",3,"click"],[1,"gp-ml-20",3,"ngStyle"]],template:function(R,c){if(1&R){const p=i.RV6();i.j41(0,"div",2),i.nrm(1,"div",3),i.j41(2,"div",4)(3,"button",5),i.bIt("click",function(){return i.eBV(p),i.Njj(c.currentPage=c.currentPage-1)}),i.j41(4,"mat-icon"),i.EFF(5,"keyboard_arrow_left"),i.k0s()(),i.j41(6,"input",6,0),i.bIt("blur",function(P){return i.eBV(p),i.Njj(c.onUpdateCurrentPage(P.target))})("keyup.enter",function(P){return i.eBV(p),i.Njj(c.onUpdateCurrentPage(P.target))}),i.k0s(),i.j41(8,"span",7),i.EFF(9,"..."),i.k0s(),i.j41(10,"span"),i.EFF(11),i.k0s(),i.j41(12,"button",5),i.bIt("click",function(){return i.eBV(p),i.Njj(c.currentPage=+c.currentPage+1)}),i.j41(13,"mat-icon"),i.EFF(14,"keyboard_arrow_right"),i.k0s()()(),i.j41(15,"div",8)(16,"div",9)(17,"div",10),i.EFF(18),i.k0s(),i.j41(19,"div",11)(20,"mat-icon"),i.EFF(21,"keyboard_arrow_up"),i.k0s()(),i.j41(22,"mat-menu",12,1)(24,"button",13),i.bIt("click",function(){return i.eBV(p),i.Njj(c.pageSizeChange.emit(5))}),i.EFF(25,"5"),i.k0s(),i.j41(26,"button",13),i.bIt("click",function(){return i.eBV(p),i.Njj(c.pageSizeChange.emit(10))}),i.EFF(27,"10"),i.k0s(),i.j41(28,"button",13),i.bIt("click",function(){return i.eBV(p),i.Njj(c.pageSizeChange.emit(50))}),i.EFF(29,"50"),i.k0s(),i.j41(30,"button",13),i.bIt("click",function(){return i.eBV(p),i.Njj(c.pageSizeChange.emit(100))}),i.EFF(31,"100"),i.k0s()(),i.j41(32,"div",14),i.EFF(33),i.k0s()()()()}if(2&R){const p=i.sdS(7),g=i.sdS(23);i.R7$(3),i.Y8G("disabled",1===c.currentPage),i.R7$(3),i.Y8G("matTooltip",p.value)("matTooltipDisabled",+p.value<100)("ngModel",c.currentPage),i.R7$(5),i.JRh(c.lastPage),i.R7$(),i.Y8G("disabled",c.currentPage===+c.lastPage),i.R7$(6),i.JRh(c.pageSize),i.R7$(),i.Y8G("matMenuTriggerFor",g),i.R7$(13),i.Y8G("ngStyle",i.eq3(10,j,"he"===c.language?"rtl":"ltr")),i.R7$(),i.JRh(c._currentRows)}},dependencies:[M.An,f.ig,D.iY,v.oV,h.fg,t.kk,t.fb,t.Cp,I.me,I.Q0,I.BC,I.vS,O.B3],styles:[".gp-pagination[_ngcontent-%COMP%]{display:flex;flex-flow:row;justify-content:space-between;margin-bottom:25px;flex:none;align-items:center;font-size:18px}.gp-pagination__center[_ngcontent-%COMP%]{display:flex;align-items:center}.gp-pagination__center[_ngcontent-%COMP%]   .gp-page-number[_ngcontent-%COMP%]{width:25px;height:25px;border-radius:5px;background-color:#fff;border:1px solid #b1b8c1;text-align:center;box-sizing:border-box}.gp-pagination[_ngcontent-%COMP%]   .gp-dots[_ngcontent-%COMP%]{margin:0 5px}.number-of-rows-wrap[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;font-size:14px;height:40px;line-height:40px}.number-of-rows-wrap[_ngcontent-%COMP%]   .number-of-rows-trigger[_ngcontent-%COMP%]{margin-top:15px;cursor:pointer}.gp-right-side[_ngcontent-%COMP%], .gp-left-side[_ngcontent-%COMP%]{width:300px;flex:1 1 auto;justify-content:flex-end}.gp-number-of-rows[_ngcontent-%COMP%]{width:0;height:0}input[_ngcontent-%COMP%]::-webkit-outer-spin-button, input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}"],changeDetection:0})}}return C})()},144:($,y,s)=>{s.d(y,{g:()=>M});var i=s(9344),E=s(4438);let M=(()=>{class f{transform(v,h){return h&&i.v[h]?i.v[h][v]:v}static{this.\u0275fac=function(h){return new(h||f)}}static{this.\u0275pipe=E.EJ8({name:"enumTranslate",type:f,pure:!0})}}return f})()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.