PageSourceSearch

https://autorepaircloud.com/src_app_owner-vehicles-list_owner-vehicles_module_ts.5ef38d798bae81d2.js

js autorepaircloud.com collected 2026-10-05 02:05:58 UTC 52,012 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkshop_app=self.webpackChunkshop_app||[]).push([["src_app_owner-vehicles-list_owner-vehicles_module_ts"],{87977(b,u,a){a.d(u,{L:()=>w});class w{static toDistanceUnit(v){return"USA"===v?"mi":"km"}static resolve(v,C){return v?.metric||C||"USA"}static unitLabelKey(v,C){return"mi"===v?`${C}.MI`:`${C}.KM`}}},66962(b,u,a){a.d(u,{OwnerVehiclesModule:()=>Be});var w=a(49769),g=a(89417),v=a(28483),C=a(50779),T=a(69966),E=a(88400),P=a(91079),o=a(33129),I=a(48423),L=a(53751),h=a(85802),j=a(23824),S=a(98128),D=a(40015),y=a(86455);let k=(()=>{class i{constructor(n,r,t,c){this.ownerOfflineService=n,this.ownerCacheService=r,this.vehicleOfflineService=t,this.vehicleCachedService=c}getOwners(n,r,t){return Promise.all([this.ownerOfflineService.getOwners(),this.ownerCacheService.getCachedOwners()]).then(([c,p])=>(p.map(l=>{this.vehicleCachedService.getVehiclesByOwnerId(l.id).then(O=>{l.vehicles=O})}),[...c,...p]))}static{this.\u0275fac=function(r){return new(r||i)(h.KVO(j.e),h.KVO(S.N),h.KVO(D.P),h.KVO(y.S))}}static{this.\u0275prov=h.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),V=(()=>{class i{constructor(n){this.ownerVehicleService=n}getOwners(n,r,t,c){return this.ownerVehicleService.getOwners(n,r,t,c)}static{this.\u0275fac=function(r){return new(r||i)(h.KVO(o.i))}}static{this.\u0275prov=h.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var A=a(59640);let R=(()=>{class i extends L._{constructor(n,r,t){super(t,r,n),this.httpOfflineService=n,this.httpOnlineService=r,this.store=t}getOwners(n,r,t,c){return this.currentServiceInstance.getOwners(n,r,t,c)}static{this.\u0275fac=function(r){return new(r||i)(h.KVO(k),h.KVO(V),h.KVO(A.il))}}static{this.\u0275prov=h.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var _=a(93049),M=a(71985),s=a(96354),m=a(99437),F=a(70980),f=a(31397),B=a(9661),U=a(4296),X=a(87977),e=a(35547),W=a(45984),H=a(92170),K=a(38790),x=a(37702),J=a(63452),Z=a(76927),z=a(42969),G=a(27601),Q=a(62507),q=a(37699),ee=a(64488),ne=a(23031),te=a(82068),ie=a(22036),re=a(3568),oe=a(84746),$=a(70586),ae=a(78702),ce=a(1818),le=a(17740),se=a(93919);const Y=(i,d)=>({"glyphicon-chevron-up":i,"glyphicon-chevron-down":d}),he=i=>({"no-repairs":i});let pe=(()=>{class i{constructor(){this.isOpen=!1}static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["arc-toggle-repair"]],inputs:{isOpen:"isOpen",vehiclesLength:"vehiclesLength"},standalone:!1,decls:20,vars:11,consts:[[1,"toggle-repair"],[1,"left"],[1,"glyphicon",3,"ngClass"],[1,"vehicle",3,"ngClass"],["src","./assets/a1/img/repair.png","alt","Repair",1,"icon"],[1,"right"]],template:function(r,t){1&r&&(e.j41(0,"div",0),e.EFF(1,"\n    "),e.j41(2,"div",1),e.EFF(3,"\n        "),e.j41(4,"i",2),e.EFF(5,"\n        "),e.k0s(),e.EFF(6,"\n    "),e.k0s(),e.EFF(7,"\n\n    "),e.j41(8,"div",3),e.EFF(9,"\n        "),e.nrm(10,"img",4),e.EFF(11,"\n    "),e.k0s(),e.EFF(12,"\n\n    "),e.j41(13,"div",5),e.EFF(14,"\n        "),e.j41(15,"i",2),e.EFF(16,"\n        "),e.k0s(),e.EFF(17,"\n    "),e.k0s(),e.EFF(18,"\n"),e.k0s(),e.EFF(19,"\n")),2&r&&(e.R7$(4),e.Y8G("ngClass",e.l_i(3,Y,t.isOpen,!t.isOpen)),e.R7$(4),e.Y8G("ngClass",e.eq3(6,he,!t.vehiclesLength)),e.R7$(7),e.Y8G("ngClass",e.l_i(8,Y,t.isOpen,!t.isOpen)))},dependencies:[w.YU,$.m],styles:[".toggle-repair[_ngcontent-%COMP%]{display:flex}.toggle-repair[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]{float:left;padding:6px;z-index:9}.toggle-repair[_ngcontent-%COMP%]   .vehicle[_ngcontent-%COMP%]{display:inline-block;margin-left:auto;margin-right:auto}.toggle-repair[_ngcontent-%COMP%]   .vehicle[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:35px;height:35px;opacity:.55}.toggle-repair[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]{float:right;padding:6px}"]})}}return i})();var de=a(80196),ge=a(66548),_e=a(65651);const Fe=i=>({active:i}),ve=i=>({invisible:i}),me=(i,d)=>({first:i,last:d});function Oe(i,d){1&i&&(e.EFF(0,"\n        "),e.nrm(1,"arc-label-edit",51),e.EFF(2,"\n    "))}function we(i,d){if(1&i&&(e.j41(0,"span"),e.EFF(1,"\n                    "),e.k0s()),2&i){const n=e.XpG();e.HbH(e.VkB("glyphicon ",n.sortDirection.icon))}}function Ce(i,d){if(1&i&&(e.j41(0,"span"),e.EFF(1,"\n                            "),e.k0s()),2&i){const n=e.XpG().$implicit;e.HbH(e.VkB("glyphicon ",n.icon))}}function Me(i,d){if(1&i){const n=e.RV6();e.j41(0,"li",52),e.EFF(1,"\n                            "),e.j41(2,"a",53),e.bIt("click",function(){const t=h.eBV(n).$implicit,c=e.XpG();return h.Njj(c.selectSortDirection(t))}),e.EFF(3,"\n                            "),e.DNE(4,Ce,2,3,"span",10),e.EFF(5,"\n                                "),e.nrm(6,"arc-label-edit",54),e.EFF(7,"\n                            "),e.k0s(),e.EFF(8,"\n                        "),e.k0s()}if(2&i){const n=d.$implicit,r=e.XpG();e.Y8G("ngClass",e.eq3(3,Fe,(null==r.sortDirection?null:r.sortDirection.code)===(null==n?null:n.code))),e.R7$(4),e.Y8G("ngIf",n.icon),e.R7$(2),e.Y8G("ref",n.label)}}function fe(i,d){if(1&i&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&i){const n=e.XpG(2).$implicit;e.R7$(),e.SpI("\n                            ",n.companyName,"\n                        ")}}function ue(i,d){1&i&&(e.j41(0,"span"),e.EFF(1,"\n                            "),e.nrm(2,"arc-label-edit",66),e.EFF(3,"\n                        "),e.k0s())}function Ee(i,d){if(1&i&&(e.qex(0),e.EFF(1,"\n                        "),e.DNE(2,fe,2,1,"span",62),e.EFF(3,"\n                        "),e.DNE(4,ue,4,0,"span",62),e.EFF(5,"\n                    "),e.bVm()),2&i){const n=e.XpG().$implicit;e.R7$(2),e.Y8G("ngIf",n.companyName),e.R7$(2),e.Y8G("ngIf",!n.companyName)}}function Pe(i,d){1&i&&(e.j41(0,"span"),e.EFF(1,", "),e.k0s())}function ye(i,d){1&i&&(e.j41(0,"span"),e.EFF(1,"\n                            "),e.nrm(2,"arc-label-edit",66),e.EFF(3,"\n                        "),e.k0s())}function Se(i,d){if(1&i&&(e.EFF(0),e.DNE(1,Pe,2,0,"span",62),e.EFF(2),e.DNE(3,ye,4,0,"span",62),e.EFF(4,"\n                    ")),2&i){const n=e.XpG().$implicit;e.SpI("\n                        ",n.nameLast,"\n                        "),e.R7$(),e.Y8G("ngIf",n.nameLast&&n.nameFirst),e.R7$(),e.SpI("\n                        ",n.nameFirst,"\n                        "),e.R7$(),e.Y8G("ngIf",!n.nameLast&&!n.nameFirst)}}function ke(i,d){if(1&i&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"arcHidePhoneCode"),e.k0s()),2&i){const n=e.XpG().$implicit;e.R7$(),e.JRh(e.bMT(2,1,n.phone))}}function Ve(i,d){1&i&&(e.j41(0,"span"),e.EFF(1,"\n                        "),e.j41(2,"arc-label-edit",66),e.EFF(3,"\n                        "),e.k0s(),e.EFF(4,"\n                    "),e.k0s())}function Re(i,d){if(1&i){const n=e.RV6();e.j41(0,"div",59),e.bIt("click",function(){h.eBV(n);const t=e.XpG().$implicit,c=e.XpG().$implicit,p=e.XpG(2);return h.Njj(p.openOwnerVehicle(c,null==t?null:t.id))}),e.EFF(1,"\n                    "),e.nrm(2,"div",60),e.EFF(3,"\n\n                    "),e.nrm(4,"div",14),e.EFF(5,"\n\n                    "),e.j41(6,"div",16),e.EFF(7,"\n                        "),e.j41(8,"div",63),e.EFF(9),e.k0s(),e.EFF(10,"\n\n                        "),e.j41(11,"div",19),e.EFF(12),e.k0s(),e.EFF(13,"\n\n                        "),e.j41(14,"div",21),e.EFF(15),e.k0s(),e.EFF(16,"\n                    "),e.k0s(),e.EFF(17,"\n\n                    "),e.j41(18,"div",23),e.
1EFF(19),e.k0s(),e.EFF(20,"\n\n                    "),e.j41(21,"div",64),e.EFF(22),e.k0s(),e.EFF(23,"\n\n                    "),e.j41(24,"div",27),e.EFF(25,"\n                        "),e.j41(26,"arc-toggle-repair",65),e.bIt("click",function(t){h.eBV(n);const c=e.XpG().index,p=e.XpG().$implicit,l=e.XpG(2);return h.Njj(l.toggleRepairs(t,p,c))}),e.EFF(27,"\n                        "),e.k0s(),e.EFF(28,"\n                    "),e.k0s(),e.EFF(29,"\n                "),e.k0s()}if(2&i){const n=e.XpG().$implicit,r=e.XpG().$implicit;e.R7$(9),e.SpI("\n                            ",n.modelYear,"\n                        "),e.R7$(3),e.SpI("\n                            ",n.modelMake,"\n                        "),e.R7$(3),e.SpI("\n                            ",n.modelName,"\n                        "),e.R7$(4),e.SpI("\n                        ",n.vin,"\n                    "),e.R7$(3),e.SpI("\n                        ",n.licensePlate,"\n                    "),e.R7$(4),e.Y8G("isOpen",n.showRepairs)("vehiclesLength",null==r.vehicles?null:r.vehicles.length)}}function Te(i,d){if(1&i&&(e.j41(0,"div",74),e.EFF(1),e.nI1(2,"distance"),e.k0s()),2&i){const n=e.XpG().$implicit,r=e.XpG(4);e.R7$(),e.Lme("\n                            ",e.bMT(2,2,null==n?null:n.odometer)," ",r.distanceUnitPerYear,"\n                        ")}}function Ie(i,d){if(1&i){const n=e.RV6();e.qex(0),e.EFF(1,"\n                    "),e.j41(2,"div",69),e.bIt("click",function(){const t=h.eBV(n).$implicit,c=e.XpG().$implicit,p=e.XpG().$implicit,l=e.XpG(2);return h.Njj(l.gotoRepair(t,c,p))}),e.EFF(3,"\n                        "),e.j41(4,"div",70),e.EFF(5),e.nI1(6,"arcDateFormat"),e.k0s(),e.EFF(7,"\n\n                        "),e.DNE(8,Te,3,4,"div",71),e.EFF(9,"\n\n                        "),e.j41(10,"div",72),e.EFF(11),e.k0s(),e.EFF(12,"\n\n                        "),e.j41(13,"div",27),e.EFF(14,"\n                            "),e.nrm(15,"i",73),e.EFF(16,"\n                        "),e.k0s(),e.EFF(17,"\n                    "),e.k0s(),e.EFF(18,"\n                "),e.bVm()}if(2&i){const n=d.$implicit,r=d.index,t=e.XpG().$implicit;e.R7$(2),e.Y8G("ngClass",e.l_i(6,me,0===r,r===(null==t.repairs?null:t.repairs.length)-1)),e.R7$(3),e.SpI("\n                            ",e.bMT(6,4,"CF"===n.status?n.timeEnded:n.timeStarted),"\n                        "),e.R7$(3),e.Y8G("ngIf",null==n?null:n.odometer),e.R7$(3),e.SpI("\n                            ",("CF"===n.status?"CARFAX: ":"")+n.description,"\n                        ")}}function Le(i,d){1&i&&(e.j41(0,"div",75),e.EFF(1,"\n                    "),e.j41(2,"div",76),e.EFF(3,"\n                        "),e.j41(4,"arc-label-edit",77),e.EFF(5,"\n                        "),e.k0s(),e.EFF(6,"\n                    "),e.k0s(),e.EFF(7,"\n                "),e.k0s())}function je(i,d){if(1&i&&(e.qex(0),e.EFF(1,"\n                "),e.DNE(2,Re,30,7,"div",67),e.EFF(3,"\n\n                "),e.DNE(4,Ie,19,9,"ng-container",56),e.EFF(5,"\n\n                "),e.DNE(6,Le,8,0,"div",68),e.EFF(7,"\n\n            "),e.bVm()),2&i){const n=d.$implicit,r=d.index;e.R7$(2),e.Y8G("ngIf",0!==r),e.R7$(2),e.Y8G("ngForOf",n.repairs),e.R7$(2),e.Y8G("ngIf",n.showRepairs&&0===(null==n.repairs?null:n.repairs.length))}}function De(i,d){if(1&i){const n=e.RV6();e.qex(0),e.EFF(1,"\n            "),e.j41(2,"div",59),e.bIt("click",function(){const t=h.eBV(n).$implicit,c=e.XpG(2);return h.Njj(c.openOwnerVehicle(t,null==t.vehicles[0]?null:t.vehicles[0].id))}),e.EFF(3,"\n                "),e.j41(4,"div",60),e.EFF(5,"\n                    "),e.DNE(6,Ee,6,2,"ng-container",61),e.EFF(7,"\n                    "),e.DNE(8,Se,5,4,"ng-template",null,1,e.C5r),e.EFF(10,"\n                "),e.k0s(),e.EFF(11,"\n\n                "),e.j41(12,"div",14),e.EFF(13,"\n                    "),e.DNE(14,ke,3,3,"span",62),e.EFF(15,"\n                    "),e.DNE(16,Ve,5,0,"span",62),e.EFF(17,"\n                "),e.k0s(),e.EFF(18,"\n\n                "),e.j41(19,"div",16),e.EFF(20,"\n                    "),e.j41(21,"div",63),e.EFF(22),e.k0s(),e.EFF(23,"\n\n                    "),e.j41(24,"div",19),e.EFF(25),e.k0s(),e.EFF(26,"\n\n                    "),e.j41(27,"div",21),e.EFF(28),e.k0s(),e.EFF(29,"\n                "),e.k0s(),e.EFF(30,"\n\n                "),e.j41(31,"div",23),e.
1EFF(32),e.k0s(),e.EFF(33,"\n\n                "),e.j41(34,"div",64),e.EFF(35),e.k0s(),e.EFF(36,"\n\n                "),e.j41(37,"div",27),e.EFF(38,"\n                    "),e.j41(39,"arc-toggle-repair",65),e.bIt("click",function(t){const c=h.eBV(n).$implicit,p=e.XpG(2);return h.Njj(p.toggleRepairs(t,c,0))}),e.EFF(40,"\n                    "),e.k0s(),e.EFF(41,"\n                "),e.k0s(),e.EFF(42,"\n            "),e.k0s(),e.EFF(43,"\n\n            "),e.DNE(44,je,8,3,"ng-container",56),e.EFF(45,"\n\n        "),e.bVm()}if(2&i){const n=d.$implicit,r=e.sdS(9);e.R7$(6),e.Y8G("ngIf",null==n?null:n.companyTrue)("ngIfElse",r),e.R7$(8),e.Y8G("ngIf","T"!==n.phone[0]),e.R7$(2),e.Y8G("ngIf","T"===n.phone[0]),e.R7$(6),e.SpI("\n                        ",null==n.vehicles[0]?null:n.vehicles[0].modelYear,"\n                    "),e.R7$(3),e.SpI("\n                        ",null==n.vehicles[0]?null:n.vehicles[0].modelMake,"\n                    "),e.R7$(3),e.SpI("\n                        ",null==n.vehicles[0]?null:n.vehicles[0].modelName,"\n                    "),e.R7$(4),e.SpI("\n                    ",null==n.vehicles[0]?null:n.vehicles[0].vin,"\n                "),e.R7$(3),e.SpI("\n                    ",null==n.vehicles[0]?null:n.vehicles[0].licensePlate,"\n                "),e.R7$(4),e.Y8G("isOpen",null==n.vehicles[0]?null:n.vehicles[0].showRepairs)("vehiclesLength",null==n.vehicles?null:n.vehicles.length),e.R7$(5),e.Y8G("ngForOf",n.vehicles)}}function Ae(i,d){if(1&i){const n=e.RV6();e.j41(0,"div",55),e.EFF(1,"\n        "),e.DNE(2,De,46,12,"ng-container",56),e.EFF(3,"\n\n        "),e.j41(4,"div",57),e.EFF(5,"\n            "),e.j41(6,"arc-show-more",58),e.bIt("click",function(){h.eBV(n);const t=e.XpG();return h.Njj(t.showMoreClick())}),e.EFF(7,"\n            "),e.k0s(),e.EFF(8,"\n        "),e.k0s(),e.EFF(9,"\n    "),e.k0s()}if(2&i){const n=e.XpG();e.R7$(2),e.Y8G("ngForOf",n.owners),e.R7$(4),e.Y8G("ngClass",e.eq3(4,ve,!n.showMore||n.isLoading))("showMore",n.showMore)("noChangeDirection",!0)}}function Ne(i,d){if(1&i){const n=e.RV6();e.j41(0,"div",78),e.EFF(1,"\n        "),e.nrm(2,"arc-label-edit",79),e.EFF(3,"\n        "),e.j41(4,"div",80),e.EFF(5,"\n            "),e.j41(6,"button",81),e.bIt("click",function(){h.eBV(n);const t=e.XpG();return h.Njj(t.openOwnerVehicleByVin(t.dataFilter,null==t.owners?null:t.owners.length,t.isLoading))}),e.EFF(7,"\n                "),e.nrm(8,"span",82),e.EFF(9,"\n            "),e.k0s(),e.EFF(10,"\n            "),e.j41(11,"span",83),e.EFF(12,"\n                "),e.nrm(13,"arc-label-edit",84),e.EFF(14,"\n            "),e.k0s(),e.EFF(15,"\n        "),e.k0s(),e.EFF(16,"\n    "),e.k0s()}}function be(i,d){1&i&&(e.j41(0,"arc-loading-spinner",85),e.EFF(1,"\n"),e.k0s()),2&i&&e.Y8G("isFixed",!0)}function xe(i,d){if(1&i){const n=e.RV6();e.EFF(0,"\n            "),e.j41(1,"div",86),e.EFF(2,"\n                "),e.j41(3,"a",87),e.bIt("click",function(){h.eBV(n);const t=e.XpG();return h.Njj(t.openEmptyForm())}),e.EFF(4,"\n                    "),e.j41(5,"div",88),e.EFF(6,"\n                        "),e.nrm(7,"img",89),e.EFF(8,"\n                    "),e.k0s(),e.EFF(9,"\n                    "),e.j41(10,"span"),e.EFF(11,"\n                        "),e.nrm(12,"arc-label-edit",90),e.EFF(13,"\n                    "),e.k0s(),e.EFF(14,"\n                "),e.k0s(),e.EFF(15,"\n            "),e.k0s(),e.EFF(16,"\n        ")}}const Ge=[{path:"",component:(()=>{class i{constructor(n,r,t,c,p,l,O,N,Ue,Xe,We,He,Ke,Je){this.location=n,this.ownerVehiclesService=r,this.ownerCacheService=t,this.ownerSwitchService=c,this.localStorage=p,this.toastService=l,this.router=O,this.scannerService=N,this.route=Ue,this.carfaxService=Xe,this.searchFiltersService=We,this.phonePipe=He,this.ownerPhoneTypeaheadService=Ke,this.translateService=Je,this.isFirstLoading=!1,this.isLoading=!1,this.showMore=!0,this.page=0,this.noOwnerId=1,this.vehicleId=this.localStorage.get("ownersOpenVehicle"),this.owners=[],this.appSection=B.$s,this.sortArr=[{code:"NO_SORT",icon:"glyphicon-time",label:"LBL.CUSTOMER.NO_SORT"},{code:"LAST_NAME_ASC",icon:"glyphicon-sort-by-alphabet",label:"LBL.CUSTOMER.LAST_NAME_ASC"},{code:"LAST_NAME_DESC",icon:"glyphicon-sort-by-alphabet-alt",label:"LBL.CUSTOMER.LAST_NAME_DESC"}],this.videoHelpButtons=[]}get distanceUnitPerYear(){return this.translateService.translateRef(X.L.unitLabelKey(U.Y.distanceUnit,"LBL.CUSTOMERS_AND_VEHICLES"))}ngOnInit(){this.isFirstLoading=!0,this.vehicleFromRepairId=+this.route?.snapshot?.queryParams?.vehicleId,this.isFromRepair=!!this.route?.snapshot?.queryParams?.isFromRepair,this.getOwnersSearchData()||(this.clearDataFilter(),this.setOwnersSearchData()),this.vehicleForm=new g.J3({vehicle:ne
1w g.hs({vehicleModelYear:this.dataFilter?.vehicleModelYear||"",vehicleModelMake:this.dataFilter?.vehicleModelMake||"",vehicleModelName:this.dataFilter?.vehicleModelName||""})});const n=JSON.parse(this.localStorage.getOwnersSearchSortDirection());return this.sortDirection=null!==n&&"object"==typeof n?n:this.sortArr[0],this.setTypeheadObservables(),this.getOwners().then(()=>this.carfaxService?.getCarfaxIntegration()).then(r=>{this.carfaxIntegration=r}).then(()=>{if(this.isFromRepair){let r=this.owners?.find(t=>t?.phone===this.dataFilter?.ownerPhone);if(r){let t=r&&r?.vehicles?.findIndex(c=>c?.id===this.vehicleFromRepairId);this.toggleRepairs(null,r,t)}}}).catch(r=>this.toastService.errorPopupApi(r)).then(()=>{this.isFirstLoading=!1})}goBack(){this.location.back()}showMoreClick(){return this.page++,this.search(this.page)}search(n){const r=this.vehicleForm.controls.vehicle.value;this.dataFilter.vehicleModelYear=r.vehicleModelYear,this.dataFilter.vehicleModelMake=r.vehicleModelMake,this.dataFilter.vehicleModelName=r.vehicleModelName;const t=Object.assign({},this.dataFilter,{ownerPhone:this.dataFilter.ownerPhone?.replace(/(?!\+)\D/g,"")||""});return n||(this.showMore=!0),this.searchFiltersService.setOwnersSearchData({dataFilter:this.dataFilter}),this.ownerSwitchService.getOwners(t,n||0,this.sortDirection.code||"NO_SORT").then(c=>{if(this.ownerCacheService.cacheOwnersList(c),this.localStorage.setOwnersSearchSortDirection(JSON.stringify(this.sortDirection)||"NO_SORT"),!c?.length)return this.showMore=!1,void(n||(this.owners=[]));c.reduce((l,O)=>l+(O?.vehicles?.length||1),0)<20&&(this.showMore=!1),c=c.map(l=>(l.vehicles=l.vehicles.map(O=>(O.repairs=null,O)),l)),this.owners=n?this.mergeArrays(this.owners,c):c,this.vehicleId&&this.owners?.forEach(l=>{l.vehicles?.forEach((O,N)=>{if(O?.id===this.vehicleId)return this.toggleRepairs(null,l,N)})})}).catch(c=>this.toastService.errorPopupApi(c))}getOwnerPhoneTypeahead(){return this.ownerPhoneTypeaheadService.ownerPhoneTypeahead(this.dataFilter.ownerPhone)}mergeArrays(n,r){const t=n.reduce((c,p,l)=>(c[p?.id]=l,c),{});return r?.forEach(c=>{if(!(c?.id in t))return t[c?.id]=n?.length,void n?.push(c);if(c.vehicles){const p=t[c?.id];n[p].vehicles=this.mergeVehicleArrays(n[p].vehicles,c.vehicles)}}),n}mergeVehicleArrays(n,r){const t=n.reduce((c,p,l)=>(c[p?.id]=l,c),{});return r?.forEach(c=>{if(!(c?.id in t))return t[c?.id]=n?.length,void n?.push(c)}),n}openOwnerVehicleByVin(n,r,t){0!==r||t||this.localStorage.setUnknownVehicle({vehicleVin:n.vehicleVin?n.vehicleVin:null,ownerPhone:n.ownerPhone?n.ownerPhone:null,licensePlate:n.vehicleLicensePlate?n.vehicleLicensePlate:null}),this.router.navigate(["main/addOwnerVehicle",0])}clearSearch(){return this.isFirstLoading=!0,this.clearDataFilter(),this.search().then(()=>{this.isFirstLoading=!1})}getAutoComplete(n,r){return this.isLoading=!0,this.ownerVehiclesService.getOwnerVehiclesAutoComplete(n,r).pipe((0,s.T)(t=>t),(0,m.W)(()=>[]),(0,F.j)(()=>this.isLoading=!1))}getAutoCompletePhone(n,r){return this.isLoading=!0,this.ownerVehiclesService.getOwnerPhoneAutoCompleteFormat(n,r).pipe((0,s.T)(t=>t.map(c=>this.phonePipe.transform(c))),(0,m.W)(()=>[]),(0,F.j)(()=>this.isLoading=!1))}toggleRepairs(n,r,t){if(n&&n.stopPropagation(),r.vehicles[t]&&r.vehicles[t].repairs&&r.vehicles[t].showRepairs)return r.vehicles[t].repairs=null,void(r.vehicles[t].showRepairs=!1);if(!r.vehicles[t])return;let c=this.carfaxIntegration&&"ACTIVE"===this.carfaxIntegration.status;return this.ownerVehiclesService.getVehicleRepairs(r.vehicles[t]?.id,c).then(p=>{r.vehicles[t].repairs=(p||[]).map(l=>(l.description=(l.description||"").replace(/;/g,", "),l)),r.vehicles[t].repairs?.sort((l,O)=>O?.timeStarted-l?.timeStarted),r.vehicles[t].showRepairs=!0})}openOwnerVehicle(n,r){this.router.navigate(["main/addOwnerVehicle",n?.id],{queryParams:{vehicleId:r,isCached:n.isCached}})}openEmptyForm(){this.router.navigate(["main/addOwnerVehicle",0])}gotoRepair(n,r,t){"CF"===n.status?(this.localStorage.setCarfaxRepair(n),this.localStorage.setCarfaxOwner(t),this.localStorage.setCarfaxVehicle(r),this.router.navigate(["main/repair/"],{queryParams:{isCarfax:!0}})):this.router.navigate(["main/repair/",n?.id])}selectSortDirection(n){return this.sortDirection=n,this.search().then(()=>{this.page=0})}setDataVehicleVin(n){this.dataFilter.vehicleVin=n[0]}onScanBarcodeData(n){return this.clearSearch().then(()=>(this.dataFilter.vehicleVin=n,this.search()))}onSelectedVehicleData(n){this.dataFilter.vehicleVin=n}getOwners(){const n=JSON.parse(JSON.stringify(this.dataFilter));return n.ownerPhone&&(n.ownerPhone=n.ownerPhone.replace(/\D/g,"")),this.ownerSwitchService.getOwners(n).then(r=>{this.ownerCacheService.cacheOwnersList(r),this.owners=r,this.countOfRows(r)<20&&(this.showMore=!1)})}countOfRows(n){return n.reduce((r,t)=>r+(t?.vehicles?.length||1),0)}clearDataFilter(){this.owners=[],this.dataFilter={ownerNameFirst:"",ownerNameLast:"",ownerPhone:"",repairStatus:"",vehicleLicensePlate:"",vehicleModelMake:"",vehicleModelName:"",vehicleModelYear:"",vehicleVin:""},this.page=0,this.showMore=!0,this.vehicleForm?.controls?.vehicle?.setValue({vehicleModelYear:"",vehicleModelMake:"",vehicleModelName:""}),this.searchFiltersService.setOwnersSearchData({dataFilter:this.dataFilter})}setOwnersSearchData(){this.searchFiltersService.setOwnersSearchData({dataFilter:this.dataFilter})}getOwnersSearchData(){const n=this.searchFiltersService.getOwnersSearchData();return!!n&&(this.dataFilter=n.dataFilter,!0)}scanBarcodeOnDevice(){this.scannerService.scanBarcode().then(n=>this.clearSearch().then(()=>(this.dataFilter.vehicleVin=n,this.search()))).catch(n=>this.toastService.errorPopupApi(n))}setTypeheadObservables(){this.ownerNameLastAsync=M.c.create(n=>n.next(this.dataFilter.ownerNameLast)).pipe((0,f.Z)(n=>this.getAutoComplete("owner/lastNames",[{key:"lastName",value:n}]))),this.ownerPhoneAsync=this.ownerPhoneTypeaheadService.ownerPhoneTypeahead(this.dataFilter.ownerPhone),this.vehicleLicensePlateAsync=M.c.create(n=>n.next(this.dataFilter.vehicleLicensePlate)).pipe((0,f.Z)(n=>
1this.getAutoComplete("vehicle/licensePlates",[{key:"licensePlate",value:n}]))),this.vehicleVinAsync=M.c.create(n=>n.next(this.dataFilter.vehicleVin)).pipe((0,f.Z)(n=>this.getAutoComplete("vehicle/vins",[{key:"vin",value:n}])))}static{this.\u0275fac=function(r){return new(r||i)(e.rXU(W.aZ),e.rXU(o.i),e.rXU(S.N),e.rXU(R),e.rXU(H.s),e.rXU(K.f),e.rXU(x.Ix),e.rXU(J.I),e.rXU(x.nX),e.rXU(Z.b),e.rXU(z.Z),e.rXU(G.s),e.rXU(Q.u),e.rXU(q.c))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["arc-owner-vehicles"]],standalone:!1,decls:146,vars:35,consts:[["center",""],["isIndividualOwner",""],[3,"tabTitle"],[1,"owner-vehicles-wrapper"],[1,"filter-wrapper"],[1,"headers"],[1,"item","name","d-flex"],["ref","LBL.SELECT_SHOP_DIALOG.NAME"],[1,"dropdown"],["href","","type","button","id","dropdownMenu1","data-toggle","dropdown","aria-haspopup","true","aria-expanded","true",1,"dropdown-toggle"],[3,"class",4,"ngIf"],[1,"caret"],["aria-labelledby","dropdownMenu1",1,"dropdown-menu"],[3,"ngClass",4,"ngFor","ngForOf"],[1,"item","phone"],["ref","LBL.SEARCH_CUSTOMER.PHONE"],[1,"item","vehicle"],["arcTextTruncate","",1,"year"],["ref","LBL.SEARCH_CUSTOMER.YEAR"],[1,"make"],["ref","LBL.SEARCH_CUSTOMER.MAKE"],[1,"model"],["ref","LBL.SEARCH_CUSTOMER.MODEL"],[1,"item","vin"],["ref","LBL.SEARCH_CUSTOMER.VIN"],["arcTextTruncate","",1,"item","l-plate"],["ref","LBL.SEARCH_CUSTOMER.LICENSE"],[1,"item","repairs"],["ref","LBL.MAIN.REPAIRS"],[1,"filters"],[1,"filters-item","name"],["type","text","accessLevel","G","typeaheadMinLength","2","arcTypeaheadWidth","",1,"form-control","name-input",3,"ngModelChange","typeaheadOnSelect","keydown.enter","arcActionAllowed","makeDisabled","ngModel","typeahead"],[1,"filters-item","phone"],["arcOnlyDigitsPhone","","type","tel","accessLevel","G","typeaheadMinLength","5","arcTypeaheadWidth","",1,"form-control",3,"ngModelChange","typeaheadOnSelect","keydown.enter","arcActionAllowed","makeDisabled","ngModel","typeahead"],[1,"filters-item","vehicle"],[3,"formGroup"],["formControlName","vehicle",3,"keydown.enter","hasPlaceholder","yearFieldWidth","makeFieldWidth","modelFieldWidth"],[1,"filters-item","vin"],[1,"input-group"],["type","text","maxlength","17","accessLevel","G","typeaheadMinLength","3","container","body","arcTypeaheadWidth","",1,"form-control",3,"ngModelChange","typeaheadOnSelect","keydown.enter","arcActionAllowed","makeDisabled","ngModel","typeahead"],[1,"input-group-btn"],[3,"lpPhotoVinData","scanBarcodeData","selectedVehicleData","isWithPadding"],[1,"filters-item","l-plate"],["type","text","accessLevel","G","typeaheadMinLength","3","arcTypeaheadWidth","",1,"form-control",3,"ngModelChange","typeaheadOnSelect","keydown.enter","arcActionAllowed","makeDisabled","ngModel","typeahead"],[1,"filters-item","repairs"],["accessLevel","G",1,"glyphicon","glyphicon-search","text-muted",3,"click","arcActionAllowed","makeDisabled"],["accessLevel","G",1,"glyphicon","glyphicon-erase","text-muted",3,"click","arcActionAllowed","makeDisabled"],["class","owner-vehicles",4,"ngIf"],["class","empty-owner a1",4,"ngIf"],[3,"isFixed",4,"ngIf"],[3,"videoHelpButtons"],["ref","LBL.MAIN.CUSTOMERS"],[3,"ngClass"],[3,"click"],[3,"ref"],[1,"owner-vehicles"],[4,"ngFor","ngForOf"],[1,"show-more"],[3,"click","ngClass","showMore","noChangeDirection"],[1,"owner-row",3,"click"],[1,"item","name"],[4,"ngIf","ngIfElse"],[4,"ngIf"],[1,"year"],[1,"item","l-plate"],[3,"click","isOpen","vehiclesLength"],["ref","LBL.SEARCH_CUSTOMER.NOT_SPECIFIED"],["class","owner-row",3,"click",4,"ngIf"],["class","owner-row",4,"ngIf"],[1,"owner-row","repair",3,"click","ngClass"],[1,"item","time"],["class","item odometer",4,"ngIf"],[1,"item","description","trimContent"],[1,"glyphicon","glyphicon-chevron-right"],[1,"item","odometer"],[1,"owner-row"],[1,"empty-repairs"],["ref","LBL.CUSTOMER.NO_REPAIRS"],[1,"empty-owner","a1"],["ref","LBL.AUTOPART.NO_FOUND",1,"not-found-text"],[1,"standard-add-new"],["type","button",1,"regular-circle",3,"click"],[1,"glyphicon","glyphicon-plus","rounded"],[1,"regular-circle-text"],["ref","LBL.SEARCH_CUSTOMER.FIND_ADD_CUSTOMER"],[3,"isFixed"],[1,"standard-footer-center-item"],["id","owners-tour-create-customer-and-vehicle",1,"standard-footer-center-item-button",3,"click"],[1,"footer-button-img"],["src","./assets/img/footer/supervised.png","alt","Supervised"],["ref","LBL.CUSTOMER.ADD_FIND_CUST_VEH"]],template:function(r,t){if(1&r){const c=e.RV6();e.j41(0,"arc-standard-header",2),e.nI1(1,"translate"),e.EFF(2,"\n    "),e.DNE(3,Oe,3,0,"ng-template",null,0,e.C5r),e.EFF(5,"\n"),e.k0s(),e.EFF(6,"\n\n"),e.j41(7,"div",3),e.EFF(8,"\n    "),e.j41(9,"div",4),e.EFF(10,"\n        "),e.j41(11,"div",5),e.EFF(12,"\n            "),e.j41(13,"div",6),e.EFF(14,"\n                "),e.j41(15,"arc-label-edit",7),e.EFF(16,"\n                "),e.k0s(),e.EFF(17,"\n\n                "),e.j41(18,"div",8),e.
1EFF(19,"\n                    "),e.j41(20,"a",9),e.EFF(21,"\n                    "),e.DNE(22,we,2,3,"span",10),e.EFF(23,"\n                        "),e.nrm(24,"span",11),e.EFF(25,"\n                    "),e.k0s(),e.EFF(26,"\n\n                    "),e.j41(27,"ul",12),e.EFF(28,"\n                        "),e.DNE(29,Me,9,5,"li",13),e.EFF(30,"\n                    "),e.k0s(),e.EFF(31,"\n                "),e.k0s(),e.EFF(32,"\n            "),e.k0s(),e.EFF(33,"\n\n            "),e.j41(34,"div",14),e.EFF(35,"\n                "),e.j41(36,"arc-label-edit",15),e.EFF(37,"\n                "),e.k0s(),e.EFF(38,"\n            "),e.k0s(),e.EFF(39,"\n\n            "),e.j41(40,"div",16),e.EFF(41,"\n                "),e.j41(42,"div",17),e.EFF(43,"\n                    "),e.j41(44,"arc-label-edit",18),e.EFF(45,"\n                    "),e.k0s(),e.EFF(46,"\n                "),e.k0s(),e.EFF(47,"\n\n                "),e.j41(48,"div",19),e.EFF(49,"\n                    "),e.j41(50,"arc-label-edit",20),e.EFF(51,"\n                    "),e.k0s(),e.EFF(52,"\n                "),e.k0s(),e.EFF(53,"\n\n                "),e.j41(54,"div",21),e.EFF(55,"\n                    "),e.j41(56,"arc-label-edit",22),e.EFF(57,"\n                    "),e.k0s(),e.EFF(58,"\n                "),e.k0s(),e.EFF(59,"\n            "),e.k0s(),e.EFF(60,"\n\n            "),e.j41(61,"div",23),e.EFF(62,"\n                "),e.j41(63,"arc-label-edit",24),e.EFF(64,"\n                "),e.k0s(),e.EFF(65,"\n            "),e.k0s(),e.EFF(66,"\n\n            "),e.j41(67,"div",25),e.EFF(68,"\n                "),e.j41(69,"arc-label-edit",26),e.EFF(70,"\n                "),e.k0s(),e.EFF(71,"\n            "),e.k0s(),e.EFF(72,"\n\n            "),e.j41(73,"div",27),e.EFF(74,"\n                "),e.j41(75,"arc-label-edit",28),e.EFF(76,"\n                "),e.k0s(),e.EFF(77,"\n            "),e.k0s(),e.EFF(78,"\n        "),e.k0s(),e.EFF(79,"\n\n        "),e.j41(80,"div",29),e.EFF(81,"\n            "),e.j41(82,"div",30),e.EFF(83,"\n                "),e.j41(84,"input",31),e.mxI("ngModelChange",function(l){return h.eBV(c),e.DH7(t.dataFilter.ownerNameLast,l)||(t.dataFilter.ownerNameLast=l),h.Njj(l)}),e.bIt("typeaheadOnSelect",function(){return t.search()})("keydown.enter",function(){return t.search()}),e.k0s(),e.EFF(85,"\n            "),e.k0s(),e.EFF(86,"\n\n            "),e.j41(87,"div",32),e.EFF(88,"\n                "),e.j41(89,"input",33),e.mxI("ngModelChange",function(l){return h.eBV(c),e.DH7(t.dataFilter.ownerPhone,l)||(t.dataFilter.ownerPhone=l),h.Njj(l)}),e.bIt("ngModelChange",function(l){return t.dataFilter.ownerPhone=l})("typeaheadOnSelect",function(){return t.search()})("keydown.enter",function(){return t.search()}),e.k0s(),e.EFF(90,"\n            "),e.k0s(),e.EFF(91,"\n\n            "),e.j41(92,"div",34),e.EFF(93,"\n                "),e.j41(94,"form",35),e.EFF(95,"\n                    "),e.j41(96,"arc-vehicle-fields",36),e.bIt("keydown.enter",function(){return t.search()}),e.EFF(97,"\n                    "),e.k0s(),e.EFF(98,"\n                "),e.k0s(),e.EFF(99,"\n            "),e.k0s(),e.EFF(100,"\n\n            "),e.j41(101,"div",37),e.EFF(102,"\n                "),e.j41(103,"div",38),e.EFF(104,"\n                    "),e.j41(105,"input",39),e.mxI("ngModelChange",function(l){return h.eBV(c),e.DH7(t.dataFilter.vehicleVin,l)||(t.dataFilter.vehicleVin=l),h.Njj(l)}),e.bIt("typeaheadOnSelect",function(){return t.search()})("keydown.enter",function(){return t.search()}),e.k0s(),e.EFF(106,"\n                    "),e.j41(107,"div",40),e.EFF(108,"\n                      "),e.j41(109,"arc-vin-barcode-actions",41),e.bIt("lpPhotoVinData",function(l){return t.setDataVehicleVin(l)})("scanBarcodeData",function(l){return t.onScanBarcodeData(l)})("selectedVehicleData",function(l){return t.onSelectedVehicleData(l)}),e.k0s(),e.EFF(110,"\n                    "),e.k0s(),e.EFF(111,"\n                "),e.k0s(),e.EFF(112,"\n            "),e.k0s(),e.EFF(113,"\n\n            "),e.j41(114,"div",42),e.EFF(115,"\n                "),e.j41(116,"input",43),e.mxI("ngModelChange",function(l){return h.eBV(c),e.DH7(t.dataFilter.vehicleLicensePlate,l)||(t.dataFilter.vehicleLicensePlate=l),h.Njj(l)}),e.bIt("typeaheadOnSelect",function(){return t.search()})("keydown.enter",function(){return t.search()}),e.k0s(),e.EFF(117,"\n            "),e.k0s(),e.EFF(118,"\n\n            "),e.j41(119,"div",44),e.EFF(120,"\n                "),e.j41(121,"i",45),e.bIt("click",function(){return t.search()}),e.EFF(122,"\n                "),e.k0s(),e.EFF(123,"\n                "),e.j41(124,"i",46),e.bIt("click",function(){return t.clearSearch()}),e.EFF(125,"\n                "),e.k0s(),e.EFF(126,"\n            "),e.k0s(),e.EFF(127,"\n        "),e.k0s(),e.EFF(128,"\n    "),e.k0s(),e.EFF(129,"\n\n    "),e.DNE(130,Ae,10,6,"div",47),e.EFF(131,"\n\n    "),e.DNE(132,Ne,17,0,"div",48),e.
1EFF(133,"\n"),e.k0s(),e.EFF(134,"\n"),e.DNE(135,be,2,1,"arc-loading-spinner",49),e.EFF(136,"\n\n"),e.j41(137,"arc-standard-footer",50),e.EFF(138,"\n    "),e.qex(139),e.EFF(140,"\n        "),e.DNE(141,xe,17,0,"ng-template",null,0,e.C5r),e.EFF(143,"\n    "),e.bVm(),e.EFF(144,"\n"),e.k0s(),e.EFF(145,"\n")}2&r&&(e.Y8G("tabTitle",e.bMT(1,33,"LBL.MAIN.CUSTOMERS")),e.R7$(22),e.Y8G("ngIf",null==t.sortDirection?null:t.sortDirection.icon),e.R7$(7),e.Y8G("ngForOf",t.sortArr),e.R7$(55),e.Y8G("arcActionAllowed",t.appSection.CUSTOMERS_AND_VEHICLES+".FILTERS")("makeDisabled",!0),e.R50("ngModel",t.dataFilter.ownerNameLast),e.Y8G("typeahead",t.ownerNameLastAsync),e.R7$(5),e.Y8G("arcActionAllowed",t.appSection.CUSTOMERS_AND_VEHICLES+".FILTERS")("makeDisabled",!0),e.R50("ngModel",t.dataFilter.ownerPhone),e.Y8G("typeahead",t.getOwnerPhoneTypeahead()),e.R7$(5),e.Y8G("formGroup",t.vehicleForm),e.R7$(2),e.Y8G("hasPlaceholder",!1)("yearFieldWidth","21%")("makeFieldWidth","39%")("modelFieldWidth","40%"),e.R7$(9),e.Y8G("arcActionAllowed",t.appSection.CUSTOMERS_AND_VEHICLES+".FILTERS")("makeDisabled",!0),e.R50("ngModel",t.dataFilter.vehicleVin),e.Y8G("typeahead",t.vehicleVinAsync),e.R7$(4),e.Y8G("isWithPadding",!0),e.R7$(7),e.Y8G("arcActionAllowed",t.appSection.CUSTOMERS_AND_VEHICLES+".FILTERS")("makeDisabled",!0),e.R50("ngModel",t.dataFilter.vehicleLicensePlate),e.Y8G("typeahead",t.vehicleLicensePlateAsync),e.R7$(5),e.Y8G("arcActionAllowed",t.appSection.CUSTOMERS_AND_VEHICLES+".FILTERS")("makeDisabled",!0),e.R7$(3),e.Y8G("arcActionAllowed",t.appSection.CUSTOMERS_AND_VEHICLES+".FILTERS")("makeDisabled",!0),e.R7$(6),e.Y8G("ngIf",(null==t.owners?null:t.owners.length)&&!t.isFirstLoading),e.R7$(2),e.Y8G("ngIf",!(null!=t.owners&&t.owners.length||t.isFirstLoading)),e.R7$(3),e.Y8G("ngIf",t.isFirstLoading||t.isLoading),e.R7$(2),e.Y8G("videoHelpButtons",t.videoHelpButtons))},dependencies:[w.YU,w.Sq,w.bT,g.qT,g.me,g.BC,g.cb,g.tU,g.vS,ee.i,ne.S,te.N,ie.l,re.n,oe.s,$.m,ae.t,ce.Z,le._,se.b,E.Xi,g.j4,g.JD,v.q,pe,de.D,G.s,ge.O,_e.U],styles:[".owner-vehicles-wrapper[_ngcontent-%COMP%]{width:90%;margin:0 auto 70px;max-width:1400px;min-width:775px}.owner-vehicles-wrapper[_ngcontent-%COMP%]   .filter-wrapper[_ngcontent-%COMP%]{font-weight:700}.owner-vehicles-wrapper[_ngcontent-%COMP%]   .filter-wrapper[_ngcontent-%COMP%]   .headers[_ngcontent-%COMP%], .owner-vehicles-wrapper[_ngcontent-%COMP%]   .filter-wrapper[_ngcontent-%COMP%]   .filters[_ngcontent-%COMP%]{display:grid;grid-template-columns:2.5fr 2fr 1.75fr 1fr 1fr 2fr 1fr 1.3fr;border-bottom:2px solid #ddd;border-bottom-color:#1c1c1ccc;border-collapse:collapse;padding:10px 5px;-moz-column-gap:10px;column-gap:10px}.owner-vehicles-wrapper[_ngcontent-%COMP%]   .filter-wrapper[_ngcontent-%COMP%]   .headers[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%], .owner-vehicles-wrapper[_ngcontent-%COMP%]   .filter-wrapper[_ngcontent-%COMP%]   .filters[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{display:flex;align-items:center}.owner-vehicles-wrapper[_ngcontent-%COMP%]   .filter-wrapper[_ngcontent-%COMP%]   .headers[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]   .dropdown[_ngcontent-%COMP%], .owner-vehicles-wrapper[_ngcontent-%COMP%]   .filter-wrapper[_ngcontent-%COMP%]   .filters[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]   .dropdown[_ngcontent-%COMP%]{margin-left:2rem;margin-top:3px;font-size:14px}.owner-vehicles-wrapper[_ngcontent-%COMP%]   .filter-wrapper[_ngcontent-%COMP%]   .headers[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]   .dropdown[_ngcontent-%COMP%]   .dropdown-menu[_ngcontent-%COMP%]   li[_ngcontent-%COMP%], .owner-vehicles-wrapper[_ngcontent-%COMP%]   .filter-wrapper[_ngcontent-%COMP%]   .filters[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]   .dropdown[_ngcontent-%COMP%]   .dropdown-menu[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{cursor:pointer}.owner-vehicles-wrapper[_ngcontent-%COMP%]   .filter-wrapper[_ngcontent-%COMP%]   .headers[_ngcontent-%COMP%]   .vehicle[_ngcontent-%COMP%], .owner-vehicles-wrapper[_ngcontent-%COMP%]   .filter-wrapper[_ngcontent-%COMP%]   .filters[_ngcontent-%COMP%]   .vehicle[_ngcontent-%COMP%]{grid-column:3/6;display:flex;gap:10px;margin-right:0}.owner-vehicles-wrapper[_ngcontent-%COMP%]   .filter-wrapper[_ngcontent-%COMP%]   .headers[_ngcontent-%COMP%]   .vehicle[_ngcontent-%COMP%]   .year[_ngcontent-%COMP%], .owner-vehicles-wrapper[_ngcontent-%COMP%]   .filter-wrapper[_ngcontent-%COMP%]   .filters[_ngcontent-%COMP%]   .vehicle[_ngcontent-%COMP%]   .year[_ngcontent-%COMP%]{width:20%}.owner-vehicles-wrapper[_ngcontent-%COMP%]   .filter-wrapper[_ngcontent-%COMP%]   .headers[_ngcontent-%COMP%]   .vehicle[_ngcontent-%COMP%]   .make[_ngcontent-%COMP%], .owner-vehicles-wrapper[_ngcontent-%COMP%]   .filter-wrapper[_ngcontent-%COMP%]   .headers[_ngcontent-%COMP%]   .vehicle[_ngcontent-%COMP%]   .model[_ngcontent-%COMP%], .owner-vehicles-wrapper[_ngcontent-%COMP%]   .filter-wrapper[_ngcontent-%COMP%]   .filters[_ngcontent-%COMP%]   .vehicle[_ngcontent-%COMP%]   .make[_ngcontent-%COMP%], .owner-vehicles-wrapper[_ngcontent-%COMP%]   .filter-wrapper[_ngcontent-%COMP%]   .filters[_ngcontent-%COMP%]   .vehicle[_ngcontent-%COMP%]   .model[_ngcontent-%COMP%]{width:40%;margin-left:5px}.owner-vehicles-wrapper[_ngcontent-%COMP%]   .filter-wrapper[_ngcontent-%COMP%]   .headers[_ngcontent-%COMP%]   .repairs[_ngcontent-%COMP%], .owner-vehicles-wrapper[_ngcontent-%COMP%]   .filter-wrapper[_ngcontent-%COMP%]   .filters[_ngcontent-%COMP%]   .repairs[_ngcontent-%COMP%]{display:flex}.owner-vehicles-wrapper[_ngcontent-%COMP%]   .filter-wrapper[_ngcontent-%COMP%]   .headers[_ngcontent-%COMP%]   .repairs[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], .owner-vehicles-wrapper[_ngcontent-%COMP%]   .filter-wrapper[_ngcontent-%COMP%]   .filters[_ngcontent-%COMP%]   .repairs[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:30px;cursor:pointer}.owner-vehicles-wrapper[_ngcontent-%COMP%]   .filter-wrapper[_ngcontent-%COMP%]   .filters[_ngcontent-%COMP%]   .repairs[_ngcontent-%COMP%]{justify-content:space-between;padding:0 5px}.owner-vehicles-wrapper[_ngcontent-%COMP%]   .filter-wrapper[_ngcontent-%COMP%]   .headers[_ngcontent-%COMP%]{padding:8px 5px;margin-top:6px}.owner-vehicles-wrapper[_ngcontent-%COMP%]   .filter-wrapper[_ngcontent-%COMP%]   .headers[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{margin-left:5px}.owner-vehicles-wrapper[_ngcontent-%COMP%]   .owner-vehicles[_ngcontent-%COMP%]{font-weight:500}.owner-vehicles-wrapper[_ngcontent-%COMP%]   .owner-vehicles[_ngcontent-%COMP%]   .owner-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:2.5fr 2fr 1.75fr 1fr 1fr 2fr 1fr 1.3fr;border-bottom:1px solid #ddd;
1color:#777;height:45px;align-items:center;grid-gap:10px;padding:0 5px;font-weight:700;cursor:pointer}.owner-vehicles-wrapper[_ngcontent-%COMP%]   .owner-vehicles[_ngcontent-%COMP%]   .owner-row.repair[_ngcontent-%COMP%]{grid-template-columns:2.5fr 2fr 1.75fr 1fr 90px 2fr 1fr 1.3fr}.owner-vehicles-wrapper[_ngcontent-%COMP%]   .owner-vehicles[_ngcontent-%COMP%]   .owner-row[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{margin-left:5px;white-space:nowrap}.owner-vehicles-wrapper[_ngcontent-%COMP%]   .owner-vehicles[_ngcontent-%COMP%]   .owner-row[_ngcontent-%COMP%]   .item.l-plate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.owner-vehicles-wrapper[_ngcontent-%COMP%]   .owner-vehicles[_ngcontent-%COMP%]   .owner-row[_ngcontent-%COMP%]   .item.vehicle[_ngcontent-%COMP%]{grid-column:3/6;display:flex;gap:10px}.owner-vehicles-wrapper[_ngcontent-%COMP%]   .owner-vehicles[_ngcontent-%COMP%]   .owner-row[_ngcontent-%COMP%]   .item.vehicle[_ngcontent-%COMP%]   .year[_ngcontent-%COMP%], .owner-vehicles-wrapper[_ngcontent-%COMP%]   .owner-vehicles[_ngcontent-%COMP%]   .owner-row[_ngcontent-%COMP%]   .item.vehicle[_ngcontent-%COMP%]   .make[_ngcontent-%COMP%], .owner-vehicles-wrapper[_ngcontent-%COMP%]   .owner-vehicles[_ngcontent-%COMP%]   .owner-row[_ngcontent-%COMP%]   .item.vehicle[_ngcontent-%COMP%]   .model[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.owner-vehicles-wrapper[_ngcontent-%COMP%]   .owner-vehicles[_ngcontent-%COMP%]   .owner-row[_ngcontent-%COMP%]   .item.vehicle[_ngcontent-%COMP%]   .year[_ngcontent-%COMP%]{width:21%}.owner-vehicles-wrapper[_ngcontent-%COMP%]   .owner-vehicles[_ngcontent-%COMP%]   .owner-row[_ngcontent-%COMP%]   .item.vehicle[_ngcontent-%COMP%]   .make[_ngcontent-%COMP%]{margin-left:5px;width:39%}.owner-vehicles-wrapper[_ngcontent-%COMP%]   .owner-vehicles[_ngcontent-%COMP%]   .owner-row[_ngcontent-%COMP%]   .item.vehicle[_ngcontent-%COMP%]   .model[_ngcontent-%COMP%]{margin-left:5px;width:40%}.owner-vehicles-wrapper[_ngcontent-%COMP%]   .owner-vehicles[_ngcontent-%COMP%]   .owner-row[_ngcontent-%COMP%]   .item.time[_ngcontent-%COMP%]{grid-column:1/5;text-align:right}.owner-vehicles-wrapper[_ngcontent-%COMP%]   .owner-vehicles[_ngcontent-%COMP%]   .owner-row[_ngcontent-%COMP%]   .item.odometer[_ngcontent-%COMP%]{min-width:90px}.owner-vehicles-wrapper[_ngcontent-%COMP%]   .owner-vehicles[_ngcontent-%COMP%]   .owner-row[_ngcontent-%COMP%]   .item.description[_ngcontent-%COMP%]{grid-column:6/8}.owner-vehicles-wrapper[_ngcontent-%COMP%]   .owner-vehicles[_ngcontent-%COMP%]   .owner-row[_ngcontent-%COMP%]   .item.repairs[_ngcontent-%COMP%]{width:100%;margin-left:auto;margin-right:10px}.owner-vehicles-wrapper[_ngcontent-%COMP%]   .owner-vehicles[_ngcontent-%COMP%]   .owner-row[_ngcontent-%COMP%]   .empty-repairs[_ngcontent-%COMP%]{grid-column:1/9;color:#ccc;background-image:linear-gradient(180deg,rgba(0,0,0,.1) 0,transparent 15%,transparent 85%,rgba(0,0,0,.1));font-weight:700;height:100%;align-items:center;display:flex;justify-content:center}.owner-vehicles-wrapper[_ngcontent-%COMP%]   .owner-vehicles[_ngcontent-%COMP%]   .owner-row.first[_ngcontent-%COMP%]{background-image:linear-gradient(to bottom,#0000001a 0,#0000 22% 100%,#0000001a)}.owner-vehicles-wrapper[_ngcontent-%COMP%]   .owner-vehicles[_ngcontent-%COMP%]   .owner-row.last[_ngcontent-%COMP%]{background-image:linear-gradient(to bottom,#0000001a,#0000 0% 77%,#0000001a 107%)}.owner-vehicles-wrapper[_ngcontent-%COMP%]   .owner-vehicles[_ngcontent-%COMP%]   .owner-row[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%], .owner-vehicles-wrapper[_ngcontent-%COMP%]   .owner-vehicles[_ngcontent-%COMP%]   .owner-row[_ngcontent-%COMP%]   .vin[_ngcontent-%COMP%], .owner-vehicles-wrapper[_ngcontent-%COMP%]   .owner-vehicles[_ngcontent-%COMP%]   .owner-row[_ngcontent-%COMP%]   .phone[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.owner-vehicles-wrapper[_ngcontent-%COMP%]   .owner-vehicles[_ngcontent-%COMP%]   .owner-row[_ngcontent-%COMP%]:nth-child(odd){background-color:#f9f9f9}.owner-vehicles-wrapper[_ngcontent-%COMP%]   .owner-vehicles[_ngcontent-%COMP%]   .show-more[_ngcontent-%COMP%]{margin-top:8px}.owner-vehicles-wrapper[_ngcontent-%COMP%]   .empty-owner[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.owner-vehicles-wrapper[_ngcontent-%COMP%]   .empty-owner[_ngcontent-%COMP%]   .not-found-text[_ngcontent-%COMP%]{font-weight:700;
1color:#777;margin:8px 0}.owner-vehicles-wrapper[_ngcontent-%COMP%]   .empty-owner[_ngcontent-%COMP%]   .standard-add-new[_ngcontent-%COMP%]{margin-top:20px}.glyphicon-barcode[_ngcontent-%COMP%]{margin-top:5px}.btn-info[_ngcontent-%COMP%]{height:34px;width:31px;padding:0}.btn-info.barcode[_ngcontent-%COMP%]{border-radius:0}.btn-info.img[_ngcontent-%COMP%]{position:relative;align-self:center;height:34px;width:30px;border-left:1px solid}.btn-info-img[_ngcontent-%COMP%]{position:absolute;top:0;width:36px;height:36px;filter:brightness(0) saturate(100%) invert(94%) sepia(6%) saturate(26%) hue-rotate(239deg) brightness(107%) contrast(106%);justify-self:anchor-center;padding:0;margin-left:-3px;margin-top:-1px}@media(max-width:1024px){.owner-vehicles-wrapper[_ngcontent-%COMP%]   .filter-wrapper[_ngcontent-%COMP%]   .headers[_ngcontent-%COMP%], .owner-vehicles-wrapper[_ngcontent-%COMP%]   .filter-wrapper[_ngcontent-%COMP%]   .filters[_ngcontent-%COMP%]{grid-template-columns:0 2fr 1.5fr 1fr 1fr 2fr 1fr 1.5fr}.owner-vehicles-wrapper[_ngcontent-%COMP%]   .filter-wrapper[_ngcontent-%COMP%]   .headers[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%], .owner-vehicles-wrapper[_ngcontent-%COMP%]   .filter-wrapper[_ngcontent-%COMP%]   .filters[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%], .owner-vehicles-wrapper[_ngcontent-%COMP%]   .filter-wrapper[_ngcontent-%COMP%]   .headers[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .owner-vehicles-wrapper[_ngcontent-%COMP%]   .filter-wrapper[_ngcontent-%COMP%]   .filters[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:flex}.owner-vehicles-wrapper[_ngcontent-%COMP%]   .filter-wrapper[_ngcontent-%COMP%]   .headers[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%], .owner-vehicles-wrapper[_ngcontent-%COMP%]   .filter-wrapper[_ngcontent-%COMP%]   .filters[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{overflow:hidden}.owner-vehicles-wrapper[_ngcontent-%COMP%]   .owner-vehicles[_ngcontent-%COMP%]   .owner-row[_ngcontent-%COMP%]{grid-template-columns:0 2fr 1.5fr 1fr 1fr 2fr 1fr 1.5fr}.owner-vehicles-wrapper[_ngcontent-%COMP%]   .owner-vehicles[_ngcontent-%COMP%]   .owner-row[_ngcontent-%COMP%]   .vehicle[_ngcontent-%COMP%]   .year[_ngcontent-%COMP%], .owner-vehicles-wrapper[_ngcontent-%COMP%]   .owner-vehicles[_ngcontent-%COMP%]   .owner-row[_ngcontent-%COMP%]   .vehicle[_ngcontent-%COMP%]   .make[_ngcontent-%COMP%], .owner-vehicles-wrapper[_ngcontent-%COMP%]   .owner-vehicles[_ngcontent-%COMP%]   .owner-row[_ngcontent-%COMP%]   .vehicle[_ngcontent-%COMP%]   .model[_ngcontent-%COMP%]{padding:0}}"]})}}return i})()}];let $e=(()=>{class i{static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275mod=e.$C({type:i})}static{this.\u0275inj=h.G2t({imports:[_.iI.forChild(Ge),_.iI]})}}return i})();var Ye=a(57715);let Be=(()=>{class i{static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275mod=e.$C({type:i})}static{this.\u0275inj=h.G2t({providers:[o.i,R,k,V,Ye.f],imports:[w.MD,g.YN,$e,P.G,E.qP,I.U,T.k0,C.Q_,g.X1,v.q]})}}return i})()},78702(b,u,a){a.d(u,{t:()=>R});var w=a(85802),g=a(89417),v=a(71985),C=a(18359),T=a(99437),E=a(96354),P=a(31397),o=a(35547),I=a(33129),L=a(49769),h=a(88400),j=a(3902),S=a(80196);const D=["makeInput"],y=_=>({width:_});function k(_,M){if(1&_&&(o.EFF(0,"\n        "),o.nrm(1,"input",6),o.nI1(2,"translate"),o.EFF(3,"\n      ")),2&_){const s=o.XpG();o.R7$(),o.Y8G("placeholder",o.mNQ(s.hasPlaceholder?o.bMT(2,8,"LBL.VEHICLES_IN_SHOP.YEAR"):""))("typeahead",s.vehicleModelYear$)("typeaheadMinLength",0)("typeaheadOptionsLimit",100)("typeaheadScrollable",!0)("typeaheadOptionsInScrollableView",10)("typeaheadWaitMs",300)}}function V(_,M){if(1&_&&(o.EFF(0,"\n        "),o.nrm(1,"input",7,0),o.nI1(3,"translate"),o.EFF(4,"\n      ")),2&_){const s=o.XpG();o.R7$(),o.Y8G("placeholder",o.mNQ(s.hasPlaceholder?o.bMT(3,8,"LBL.VEHICLES_IN_SHOP.MAKE"):""))("typeahead",s.vehicleModelMake$)("typeaheadMinLength",0)("typeaheadOptionsLimit",100)("typeaheadScrollable",!0)("typeaheadOptionsInScrollableView",10)("typeaheadWaitMs",300)}}function A(_,M){if(1&_&&(o.EFF(0,"\n        "),o.nrm(1,"input",8),o.nI1(2,"translate"),o.EFF(3,"\n      ")),2&_){const s=o.XpG();o.R7$(),o.Y8G("placeholder",o.mNQ(s.hasPlaceholder?o.bMT(2,8,"LBL.VEHICLES_IN_SHOP.MODEL"):""))("typeahead",s.vehicleModelName$)("typeaheadMinLength",0)("typeaheadOptionsLimit",100)("typeaheadScrollable",!0)("typeaheadOptionsInScrollableView",10)("typeaheadWaitMs",300)}}let R=(()=>{class _{constructor(s){this.ownerVehiclesService=s,this.subscription=new C.yU,this.onChange=()=>{},this.onTouched=()=>{}}writeValue(s){s&&this.vehicleForm.patchValue({vehicleModelYear:s.vehicleModelYear,vehicleModelMake:s.vehicleModelMake,vehicleModelName:s.vehicleModelName})}registerOnChange(s){this.onChange=s}registerOnTouched(s){this.onTouched=s}ngOnInit(){this.vehicleForm=new g.J3({vehicleModelYear:new g.hs(""),vehicleModelMake:new g.hs(""),vehicleModelName:new g.hs("")}),this.setTypeheadObservables(),this.subscription.add(this.vehicleForm.valueChanges.subscribe(s=>{this.onChange(s),this.onTouched(s)}))}ngAfterViewInit(){this.autoFocusMake&&setTimeout(()=>this.focusMakeInput())}ngOnDestroy(){this.subscription.unsubscribe()}focusMakeInput(){const s=this.makeInput?.nativeElement;s&&(s.focus(),s.dispatchEvent(new Event("input",{bubbles:!0})))}setTypeheadObservables(){this.vehicleModelYear$=v.c.create(s=>s.next(this.vehicleForm.controls.vehicleModelYear.value)).pipe((0,P.Z)(s=>this.getAutoComplete("refVehicle/years",[{key:"year",value:s}])),(0,E.T)(s=>s.reverse())),this.vehicleModelMake$=v.c.create(s=>s.next(this.vehicleForm.controls.vehicleModelMake.value)).pipe((0,P.Z)(s=>this.getAutoComplete("refVehicle/makes",[{key:"make",value:s},{key:"year",value:this.vehicleForm.controls.vehicleModelYear.value}]))),this.vehicleModelName$=v.c.create(s=>s.next(this.vehicleForm.controls.vehicleModelName.value)).pipe((0,P.Z)(s=>this.getAutoComplete("refVehicle/models",[{key:"model",value:s},{key:"year",value:this.vehicleForm.controls.vehicleModelYear.value},{key:"make",value:this.vehicleForm.controls.vehicleModelMake.value}])))}getAutoComplete(s,m){return this.ownerVehiclesService.getOwnerVehiclesAutoComplete(s,m).pipe((0,E.T)(F=>F),(0,T.W)(()=>[]))}static{this.\u0275fac=function(m){return new(m||_)(o.rXU(I.i))}}static{this.\u0275cmp=o.VBU({type:_,selectors:[["arc-vehicle-fields"]],viewQuery:function(m,F){if(1&m&&o.GBs(D,5),2&m){let f;o.mGM(f=o.lsd())&&(F.makeInput=f.first)}},inputs:{hasPlaceholder:"hasPlaceholder",hideYear:"hideYear",hideMake:"hideMake",hideModel:"hideModel",yearFieldWidth:"yearFieldWidth",modelFieldWidth:"modelFieldWidth",makeFieldWidth:"makeFieldWidth",autoFocusMake:"autoFocusMake"},standalone:!1,features:[o.Jv_([{provide:g.kq,useExisting:(0,w.Rfq)(()=>_),multi:!0}])],decls:18,vars:13,consts:[["makeInput",""],[1,"vehicle-fields"],[3,"formGroup"],[1,"vehicle-fields-item","year",3,"ngStyle"],[1,"vehicle-fields-item","make",3,"ngStyle"],[1,"vehicle-fields-item","model",3,"ngStyle"],["onlyNumbersAllowed","","formControlName","vehicleModelYear","autocomplete","off","inputmode","numeric",1,"standard-form-control",3,"typeahead","typeaheadMinLength","typeaheadOptionsLimit","typeaheadScrollable","typeaheadOptionsInScrollableView","typeaheadWaitMs","placeholder"],["formControlName","vehicleModelMake",1,"standard-form-control",3,"typeahead","typeaheadMinLength","typeaheadOptionsLimit","typeaheadScrollable","typeaheadOptionsInScrollableView","typeaheadWaitMs","placeholder"],["formControlName","vehicleModelName",1,"standard-form-control",3,"typeahead","typeaheadMinLength","typeaheadOptionsLimit","typeaheadScrollable","typeaheadOptionsInScrollableView","typeaheadWaitMs","placeholder"]],template:function(m,F){1&m&&(o.j41(0,"div",1),o.EFF(1,"\n  "),o.j41(2,"form",2),o.EFF(3,"\n    "),o.j41(4,"div",3),o.EFF(5,"\n      "),o.nVh(6,k,4,10),o.k0s(),o.EFF(7,"\n\n    "),o.j41(8,"div",4),o.EFF(9,"\n      "),o.nVh(10,V,5,10),o.k0s(),o.EFF(11,"\n\n    "),o.j41(12,"div",5),o.EFF(13,"\n      "),o.nVh(14,A,4,10),o.k0s(),o.EFF(1
15,"\n  "),o.k0s(),o.EFF(16,"\n"),o.k0s(),o.EFF(17,"\n")),2&m&&(o.R7$(2),o.Y8G("formGroup",F.vehicleForm),o.R7$(2),o.Y8G("ngStyle",o.eq3(7,y,F.yearFieldWidth)),o.R7$(2),o.vxM(F.hideYear?-1:6),o.R7$(2),o.Y8G("ngStyle",o.eq3(9,y,F.modelFieldWidth)),o.R7$(2),o.vxM(F.hideMake?-1:10),o.R7$(2),o.Y8G("ngStyle",o.eq3(11,y,F.makeFieldWidth)),o.R7$(2),o.vxM(F.hideModel?-1:14))},dependencies:[L.B3,g.qT,g.me,g.BC,g.cb,g.j4,g.JD,h.Xi,j.Z,S.D],styles:[".vehicle-fields[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]{display:flex;gap:10px}.vehicle-fields[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::placeholder{font-weight:700}.vehicle-fields[_ngcontent-%COMP%]   .standard-form-control[_ngcontent-%COMP%]{font-size:16px;font-weight:700}"]})}}return _})()}}]);

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.