PageSourceSearch

https://app.vandoo.com/src_app_modules_stock_part-list_routes_ts.48cc73a1aa31496e.js

js vandoo.com collected 2026-10-08 23:57:07 UTC 15,280 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkturntable_auction=self.webpackChunkturntable_auction||[]).push([["src_app_modules_stock_part-list_routes_ts"],{44201:(Q,h,a)=>{a.r(h),a.d(h,{PART_LIST_ROUTES:()=>J});var m=a(62557),u=a(60177),P=a(56952),d=a(56977),f=a(49665),T=a(87864),L=a(77223),t=a(54438),_=a(511),l=a(89417),I=a(70152),A=a(50821),F=a(87875);class E{constructor(){this.partNumber=null,this.vin=null,this.state=null,this.auctionName=null,this.condition=null,this.stockLocation=null,this.filterPartType=null,this.filterAuctionType=null,this.filterState=null}}var C=a(67262),y=a(88048),S=a(90640),b=a(42233),v=a(46941);const N=i=>({"clr-form-horizontal":i});function j(i,c){if(1&i&&(t.j41(0,"option",12),t.EFF(1),t.k0s()),2&i){const e=c.$implicit,o=t.XpG();t.Y8G("ngValue",e),t.R7$(),t.JRh(o.getStateString(e))}}function D(i,c){if(1&i&&t.nrm(0,"app-location-filter",29),2&i){const e=t.XpG();t.Y8G("colWidth",0)("formGroup",e.searchGroup)("filterValues",e.getLocationFilterValues())}}let G=(()=>{class i extends f.${constructor(e,o,n,s,p,g){super(),this.fb=e,this.vehicleService=o,this.enumToTextService=n,this.partService=s,this.router=p,this.translocoService=g,this.filterChange=new t.bkB,this.DEFAULT_FILTER={state:_.Ob.DRAFT},this.totalStockLocations=[]}ngOnInit(){this.initOriginValues(),this.initAuctionItemStateValues(),this.initStockLocations(),this.initSearchGroup(),this.initSubscribeSearch()}ngAfterViewInit(){this.resetFilter()}initStockLocations(){this.partService.getStockSearchOptions().pipe((0,d.Q)(this.destroyed)).subscribe(e=>{this.stockLocationsByState=e.stockLocationsByState,this.sortStockLocationsByCountDesc(),this.initTotalStockLocations()})}sortStockLocationsByCountDesc(){for(const e in this.stockLocationsByState)this.stockLocationsByState.hasOwnProperty(e)&&this.stockLocationsByState[e].sort((o,n)=>n.second-o.second)}initTotalStockLocations(){const e=this.flattenLocationsByStateToSimpleArray();this.totalStockLocations=this.reduceArrayToUniqueLocations(e),this.totalStockLocations.sort((o,n)=>n.second-o.second)}reduceArrayToUniqueLocations(e){const o=[];for(const n of e){const s=o.findIndex(p=>p.first===n.first);-1===s?o.push({first:n.first,second:n.second}):o[s].second+=n.second}return o}flattenLocationsByStateToSimpleArray(){const e=[];for(const o in this.stockLocationsByState)this.stockLocationsByState.hasOwnProperty(o)&&e.push(this.stockLocationsByState[o]);return[].concat.apply([],e)}initAuctionItemStateValues(){this.auctionItemStates=Object.keys(_.Ob).filter(e=>isNaN(Number(e)))}initOriginValues(){this.origins=Object.keys(A.M).filter(e=>isNaN(Number(e)))}initSearchGroup(){this.searchGroup=(0,F.eL)(new E)}resetFilter(){this.searchGroup.reset(this.DEFAULT_FILTER)}initSubscribeSearch(){this.searchGroup.valueChanges.pipe((0,d.Q)(this.destroyed),(0,I.B)(300)).subscribe(e=>{this.filterChange.emit(e)})}getOriginString(e){return this.translocoService.translate("origin."+e)}getStateString(e){return this.translocoService.translate("auction_item_state."+e)}isNotMobileScreen(){return!(0,F.lb)()}getLotState(){return this.searchGroup.get("state").value}getLocationFilterValues(){const e=this.getLotState();return e?this.stockLocationsByState[e]:this.totalStockLocations}createNewPart(){this.partService.createPart().pipe((0,d.Q)(this.destroyed)).subscribe(e=>this.router.navigate(["/partdetail/"+e]))}static{this.\u0275fac=function(o){return new(o||i)(t.rXU(l.ok),t.rXU(y.K),t.rXU(S.J),t.rXU(b.B),t.rXU(m.Ix),t.rXU(v.JO))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-part-list-filter"]],outputs:{filterChange:"filterChange"},standalone:!0,features:[t.Vt3,t.aNF],decls:49,vars:8,consts:[[1,"clr-form",3,"formGroup","ngClass"],[1,"clr-row"],[1,"clr-col-lg-6","clr-col-sm-12"],[1,"clr-form-control"],["for","partNumber",1,"clr-control-label"],[1,"clr-input-wrapper"],["data-test","input-partNumber","id","partNumber","name","partNumber","type","text","formControlName","partNumber",1,"clr-input"],["for","vin",1,"clr-control-label"],["data-test","input-vin","id","vin","name","vin","type","text","formControlName","vin",1,"clr-input"],["for","state",1,"clr-control-label"],[1,"clr-select-wrapper"],["data-test","select-state","formControlName","state","id","state","name","state"],[3,"ngValue"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"colWidth","formGroup","filterValues",4,"ngIf"],[1,"clr-col-lg-6","clr-col-md-12","clr-col-sm-12"],["for","auctionName",1,"clr-control-label"],["data-test","input-auctionName","id","auctionName","name","auctionName","type","text","formControlName","auctionName",1,"clr-input"],["for","condition",1,"clr-control-label"],["data-test","select-condition","formControlName","condition","id","condition","name","condition"],["selected","",3,"ngValue"],["value","LIKE_NEW"],["value","USED"],["value","DAMAGED"],[1,"clr-row","full-width"],[1,"clr-float-xs-left"],["data-test","button-reset-filter","type","button",1,"btn","btn-link",3,"click"],[1,"clr-float-xs-right"],["data-test","button-create-part-button","id","create-part-button","type","button",1,"btn","btn-primary",3,"click"],[3,"colWidth","formGroup","filterValues"]],template:function(o,n){1&o&&(t.j41(0,"form",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"label",4),t.EFF(5,"Teilenummer"),t.k0s(),t.j41(6,"div",5),t.nrm(7,"input",6),t.k0s()(),t.j41(8,"div",3)(9,"label",7),t.EFF(10,"VIN"),t.k0s(),t.j41(11,"div",5),t.nrm(12,"input",8),t.k0s()(),t.j41(13,"div",3)(14,"label",9),t.EFF(15,"Status"),t.k0s(),t.j41(16,"div",10)(17,"select",11)(18,"option",12),t.EFF(19,"Alle"),t.k0s(),t.DNE(20,j,2,2,"option",13),t.k0s()()(),t.DNE(21,D,1,3,"app-location-filter",14),t.k0s(),t.j41(22,"div",15)(23,"div",3)(24,"label",16),t.EFF(25,"Auktionsname"),t.k0s(),t.j41(26,"div",5),t.nrm(27,"input",17),t.k0s()(),t.j41(28,"div",3)(29,"label",18),t.EFF(30,"Zustand"),t.k0s(),t.j41(31,"div",10)(32,"select",19)(33,"option",20),t.EFF(34,"Alle"),t.k0s(),t.j41(35,"option",21),t.EFF(36,"Neuartig"),t.k0s(),t.j41(37,"option",22),t.EFF(38,"Gebraucht"),t.k0s(),t.j41(39,"option",23),t.EFF(40,"Be
1sch\xe4digt"),t.k0s()()()()()(),t.nrm(41,"hr"),t.j41(42,"div",24)(43,"div",25)(44,"button",26),t.bIt("click",function(){return n.resetFilter()}),t.EFF(45,"Filter zur\xfccksetzen "),t.k0s()(),t.j41(46,"div",27)(47,"button",28),t.bIt("click",function(){return n.createNewPart()}),t.EFF(48,"Neues Teil "),t.k0s()()()()),2&o&&(t.Y8G("formGroup",n.searchGroup)("ngClass",t.eq3(6,N,n.isNotMobileScreen())),t.R7$(18),t.Y8G("ngValue",null),t.R7$(2),t.Y8G("ngForOf",n.auctionItemStates),t.R7$(),t.Y8G("ngIf",n.stockLocationsByState),t.R7$(12),t.Y8G("ngValue",null))},dependencies:[l.YN,l.qT,l.xH,l.y7,l.me,l.wz,l.BC,l.cb,l.X1,l.j4,l.JD,u.YU,u.pM,u.bT,C.x],styles:["[_nghost-%COMP%]  select, input[_ngcontent-%COMP%]{width:192px!important}.full-width[_ngcontent-%COMP%]{width:100%;display:inline-block;overflow:auto;white-space:nowrap;margin:0 auto}.fill-width[_ngcontent-%COMP%]{padding-left:0;padding-right:0}"]})}}return i})();var r=a(61930),R=a(38993);function $(i,c){1&i&&t.eu8(0)}function x(i,c){if(1&i){const e=t.RV6();t.j41(0,"button",16),t.bIt("click",function(){t.eBV(e);const n=t.XpG(2);return t.Njj(n.addToAuction(n.selectedAuction.id))}),t.EFF(1),t.k0s()}if(2&i){const e=t.XpG(2);t.Y8G("disabled",!e.selectedParts.length),t.R7$(),t.SpI(' Auktion "',e.selectedAuction.name,'" zuweisen ')}}function O(i,c){1&i&&(t.j41(0,"span"),t.EFF(1,"Bestehender Auktion zuweisen"),t.k0s())}function V(i,c){1&i&&t.EFF(0,"keine offenen Auktionen vorhanden")}function B(i,c){if(1&i){const e=t.RV6();t.j41(0,"div",18),t.bIt("click",function(){const n=t.eBV(e).$implicit,s=t.XpG(3);return t.Njj(s.addToAuction(n.id))}),t.EFF(1),t.k0s()}if(2&i){const e=c.$implicit;t.R7$(),t.JRh(e.name)}}function w(i,c){if(1&i&&(t.j41(0,"clr-dropdown-menu"),t.DNE(1,B,2,1,"div",17),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngForOf",e.availableAuctions)}}function X(i,c){if(1&i&&(t.j41(0,"clr-dg-cell",25)(1,"strong"),t.EFF(2,"Status: "),t.k0s(),t.EFF(3),t.nrm(4,"br"),t.j41(5,"strong"),t.EFF(6,"Auktion: "),t.k0s(),t.EFF(7),t.nrm(8,"br"),t.j41(9,"strong"),t.EFF(10,"Katalognummer: "),t.k0s(),t.EFF(11),t.k0s()),2&i){const e=t.XpG().$implicit,o=t.XpG(2);t.R7$(3),t.JRh(o.getAuctionItemStateString(e.state)),t.R7$(4),t.JRh(e.auction.name),t.R7$(4),t.SpI("",e.catalogNumber," ")}}function U(i,c){if(1&i&&(t.j41(0,"clr-dg-cell",25)(1,"strong"),t.EFF(2,"Status:"),t.k0s(),t.EFF(3),t.nrm(4,"br"),t.j41(5,"strong"),t.EFF(6,"Auktion:"),t.k0s(),t.EFF(7),t.k0s()),2&i){const e=t.XpG().$implicit,o=t.XpG(2);t.R7$(3),t.SpI(" ",o.getAuctionItemStateString(e.state),""),t.R7$(4),t.SpI(" ",e.auction.name," ")}}function Y(i,c){1&i&&(t.j41(0,"clr-dg-cell",25)(1,"strong"),t.EFF(2,"Teil im Bestand"),t.k0s(),t.nrm(3,"br"),t.EFF(4," Keiner Auktion zugeordnet "),t.k0s())}function M(i,c){if(1&i&&(t.j41(0,"clr-dg-row",19)(1,"clr-dg-cell",20)(2,"div"),t.nrm(3,"app-vehicle-list-image",21),t.k0s()(),t.j41(4,"clr-dg-cell",22)(5,"div")(6,"strong",23),t.EFF(7,"Teilenummer: "),t.k0s(),t.EFF(8),t.nrm(9,"br"),t.j41(10,"strong"),t.EFF(11,"Marketingname: "),t.k0s(),t.EFF(12),t.nrm(13,"br"),t.k0s()(),t.DNE(14,X,12,3,"clr-dg-cell",24)(15,U,8,2,"clr-dg-cell",24)(16,Y,5,0,"clr-dg-cell",24),t.k0s()),2&i){const e=c.$implicit;t.Mz_("id","row_",e.partNumber,""),t.Y8G("clrDgItem",e),t.R7$(),t.Mz_("routerLink","/partdetail/",e.id,""),t.R7$(2),t.Y8G("image",null==e?null:e.firstImage)("lotId",e.id)("width",180),t.R7$(),t.Mz_("routerLink","/partdetail/",e.id,""),t.R7$(2),t.Mz_("id","part-entry-",e.partNumber,""),t.R7$(2),t.JRh(e.partNumber),t.R7$(4),t.JRh(e.marketingName),t.R7$(2),t.Y8G("ngIf",e.auction&&"HOT_BID"===(null==e.auction?null:e.auction.type)),t.R7$(),t.Y8G("ngIf",e.auction&&"HOT_BID"!==(null==e.auction?null:e.auction.type)),t.R7$(),t.Y8G("ngIf",!e.auction)}}function z(i,c){if(1&i){const e=t.RV6();t.j41(0,"clr-datagrid",7),t.mxI("clrDgSelectedChange",function(n){t.eBV(e);const s=t.XpG();return t.DH7(s.selectedParts,n)||(s.selectedParts=n),t.Njj(n)}),t.j41(1,"clr-dg-action-bar")(2,"div"),t.DNE(3,x,2,2,"button",8),t.j41(4,"clr-dropdown",9)(5,"button",10),t.DNE(6,O,2,0,"span",11)(7,V,1,0,"ng-template",null,1,t.C5r),t.nrm(9,"cds-icon",12),t.k0s(),t.DNE(10,w,2,1,"clr-dropdown-menu",13),t.k0s()()(),t.j41(11,"clr-dg-column"),t.EFF(12,"Teilbild"),t.k0s(),t.j41(13,"clr-dg-column"),t.EFF(14,"Details"),t.k0s(),t.j41(15,"clr-dg-column"),t.EFF(16,"Status"),t.k0s(),t.DNE(17,M,17,17,"clr-dg-row",14),t.j41(18,"clr-dg-footer")(19,"clr-dg-pagination",15,2),t.bIt("clrDgPageChange",function(n){t.eBV(e);const s=t.XpG();return t.Njj(s.onChangedPaginationPage(n))}),t.EFF(21),t.k0s()()()}if(2&i){const e=t.sdS(8),o=t.sdS(20),n=t.XpG();t.R50("clrDgSelected",n.selectedParts),t.Y8G("clrDgLoading",n.loading),t.R7$(3),t.Y8G("ngIf",n.selectedAu
1ction),t.R7$(2),t.Y8G("disabled",!n.selectedParts.length||!n.availableAuctions),t.R7$(),t.Y8G("ngIf",n.availableAuctions)("ngIfElse",e),t.R7$(11),t.Y8G("ngForOf",n.filteredParts),t.R7$(2),t.Y8G("clrDgPageSize",n.getPartsPerPage())("clrDgTotalItems",n.totalElements)("clrDgPage",n.currentPaginationPage),t.R7$(2),t.E5c(" ",o.firstItem+1," - ",o.lastItem+1," von ",o.totalItems," Fahrzeug(en) ")}}let k=(()=>{class i extends f.${constructor(e,o,n,s,p,g){super(),this.route=e,this.location=o,this.auctionService=n,this.partService=s,this.enumToTextService=p,this.translocoService=g,this.showFilter=!0,this.goToAuctionDetailPage=!1,this.selectedParts=[]}ngOnInit(){this.selectedAuctionId=+this.route.snapshot.paramMap.get("auctionId"),this.selectAuctionDisabled=0!==this.selectedAuctionId,this.goToAuctionDetailPage=0!==this.selectedAuctionId,this.loading=!0,this.getAvailableAuctions()}manufacturerString(e){return this.enumToTextService.manufacturerString(e)}getAvailableAuctions(){this.auctionService.getAuctionNames(P.$.DRAFT).pipe((0,d.Q)(this.destroyed)).subscribe(e=>{this.availableAuctions=e;const o=+this.route.snapshot.paramMap.get("auctionId");this.selectedAuction=e.find(n=>n.id===o),this.selectedAuctionId=this.selectedAuction?o:null})}addToAuction(e){const o={assignedLotIds:this.selectedParts.map(n=>n.id),articleType:T.P.PART};this.auctionService.addArticleToAuction(e,o).pipe((0,d.Q)(this.destroyed)).subscribe(n=>{void 0!==n&&this.goToAuctionDetailPage&&this.location.back(),this.doSearch(this.currentFilterValue),this.selectedParts=[]})}getPartsPerPage(){return 10}getAuctionItemStateString(e){return this.translocoService.translate("auction_item_state."+e)}doSearch(e,o=1){this.loading=!0,this.currentFilterValue=e,this.currentPaginationPage=o,this.partService.getParts(e,o-1,this.getPartsPerPage()).pipe((0,d.Q)(this.destroyed)).subscribe(n=>{this.filteredParts=n.partDTOS,this.totalElements=n.totalElements,this.loading=!1})}onChangedPaginationPage(e){this.doSearch(this.currentFilterValue,e)}static{this.\u0275fac=function(o){return new(o||i)(t.rXU(m.nX),t.rXU(u.aZ),t.rXU(R.j),t.rXU(b.B),t.rXU(S.J),t.rXU(v.JO))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-part-list"]],standalone:!0,features:[t.Vt3,t.aNF],decls:12,vars:2,consts:[["VehicleGrid",""],["noAuctions",""],["pagination",""],[1,"content-area","content-without-padding"],[3,"clrAccordionPanelOpen"],[3,"filterChange"],[4,"ngTemplateOutlet"],["data-test","datatable-stock-parts","id","vehicleDataGrid",3,"clrDgSelectedChange","clrDgSelected","clrDgLoading"],["class","btn btn-sm btn-primary","data-test","button-assignPartsToCurrentAuction","id","assignPartsToCurrentAuction",3,"disabled","click",4,"ngIf"],[1,"auction-selection-margin"],["clrDropdownTrigger","","data-test","button-auction-select-button","id","auction-select-button",1,"btn","btn-sm","btn-secondary",3,"disabled"],[4,"ngIf","ngIfElse"],["shape","angle","direction","down"],[4,"clrIfOpen"],["class","align-text-top",3,"clrDgItem","id",4,"ngFor","ngForOf"],[3,"clrDgPageChange","clrDgPageSize","clrDgTotalItems","clrDgPage"],["data-test","button-assignPartsToCurrentAuction","id","assignPartsToCurrentAuction",1,"btn","btn-sm","btn-primary",3,"click","disabled"],["clrDropdownItem","",3,"click",4,"ngFor","ngForOf"],["clrDropdownItem","",3,"click"],[1,"align-text-top",3,"clrDgItem","id"],[1,"pointer",3,"routerLink"],[3,"image","lotId","width"],[1,"pointer","line-height",3,"routerLink"],[3,"id"],["class","pointer line-height",4,"ngIf"],[1,"pointer","line-height"]],template:function(o,n){if(1&o){const s=t.RV6();t.j41(0,"div",3)(1,"h2"),t.EFF(2,"Teilebestand"),t.k0s(),t.j41(3,"clr-accordion")(4,"clr-accordion-panel",4)(5,"clr-accordion-title"),t.EFF(6,"Filter"),t.k0s(),t.j41(7,"clr-accordion-content")(8,"app-part-list-filter",5),t.bIt("filterChange",function(g){return t.eBV(s),t.Njj(n.doSearch(g))}),t.k0s()()()(),t.DNE(9,$,1,0,"ng-container",6),t.k0s(),t.DNE(10,z,22,13,"ng-template",null,0,t.C5r)}if(2&o){const s=t.sdS(11);t.R7$(4),t.Y8G("clrAccordionPanelOpen",!0),t.R7$(5),t.Y8G("ngTemplateOutlet",s)}},dependencies:[u.MD,u.Sq,u.bT,u.T3,r.G$W,r.iLy,r.QPC,r.m4M,r.tTA,r.SNL,r.VXf,G,r.oFi,r.ghA,r.fQA,r.slD,r.scM,r.Lwm,r.o3y,r.E1i,r.NTI,r.cIg,r.qDI,r.v0q,r.Aup,r.rpC,r.mCo,r.j1e,r.TZW,r.e3J,r.jWx,r.wIE,r.vEc,r.BlU,r.Lfk,r.eI5,m.Wk,L.r],styles:[".content-without-padding[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.line-height[_ngcontent-%COMP%]{line-height:2em}"]})}}return i})();const J=[{path:"",component:k,data:{reuseRoute:["partdetail/:id"],refreshRoute:!0}},{path:":auctionId",component:k}]}}]);

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.