1"use strict";(self.webpackChunkeSusoft=self.webpackChunkeSusoft||[]).push([[5168],{38631:(C,_,a)=>{a.d(_,{s:()=>h});var e=a(17705),l=a(51960);let h=(()=>{var s;class p{constructor(c){this.networkRepository=c}execute(c=0,d=100){return this.networkRepository.getManufacturers(c,d)}}return(s=p).\u0275fac=function(c){return new(c||s)(e.KVO(l.J))},s.\u0275prov=e.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),p})()},8950:(C,_,a)=>{a.d(_,{z:()=>h});var e=a(17705),l=a(51960);let h=(()=>{var s;class p{constructor(c){this.networkRepository=c}execute(c,d){return this.networkRepository.getPriceBooks(c,d)}}return(s=p).\u0275fac=function(c){return new(c||s)(e.KVO(l.J))},s.\u0275prov=e.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),p})()},29485:(C,_,a)=>{a.d(_,{J:()=>h});var e=a(17705),l=a(51960);let h=(()=>{var s;class p{constructor(c){this.networkRepository=c}execute(c=0,d=100){return this.networkRepository.getVendors(c,d)}}return(s=p).\u0275fac=function(c){return new(c||s)(e.KVO(l.J))},s.\u0275prov=e.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),p})()},359:(C,_,a)=>{a.d(_,{e:()=>J});var e=a(17705),l=a(270),h=a(84135),s=a(84572),p=a(44437),g=a(54305),c=a(65831),d=a(34602),v=a(8950),x=a(70521),P=a(42353),u=a(59459),f=a(60177),y=a(52168),b=a(9183),L=a(9454);function I(n,i){if(1&n&&(e.j41(0,"div",9),e.nrm(1,"webshop-category-level",10),e.k0s()),2&n){const r=i.$implicit,t=e.XpG(3);e.R7$(1),e.Y8G("category",r)("currentCategory",t.currentCategory)("mainCategory",t.mainCategory)("manufacturerId",t.manufacturerId)("vendorId",t.vendorId)("listView",t.listView)("generalInfo",t.generalInfo)("maxLevel",t.maxLevel)}}const M=function(n,i){return[n,i]};function w(n,i){if(1&n){const r=e.RV6();e.j41(0,"mat-expansion-panel",4,5)(2,"mat-expansion-panel-header",6),e.bIt("click",function(o){e.eBV(r);const m=e.sdS(1),O=e.XpG(2);return e.Njj(O.expandPanel(m,o))}),e.j41(3,"a",7),e.bIt("click",function(){e.eBV(r);const o=e.sdS(1);return e.Njj(o.open())}),e.EFF(4),e.k0s()(),e.DNE(5,I,2,8,"div",8),e.k0s()}if(2&n){const r=e.XpG(2);e.Y8G("expanded",r.isSelectedCategory(r.category)),e.R7$(2),e.AVh("selected",r.isSelectedCategory(r.category)),e.R7$(1),e.Y8G("queryParams",r.getQueryParams())("routerLink",e.l_i(7,M,r.getUrl("/products"),r.mainCategory.id)),e.R7$(1),e.JRh(r.category.name),e.R7$(1),e.Y8G("ngForOf",r.category.childrenViewList)}}function V(n,i){if(1&n&&(e.j41(0,"div"),e.nrm(1,"webshop-category-level",10),e.k0s()),2&n){const r=i.$implicit,t=e.XpG(4);e.R7$(1),e.Y8G("category",r)("currentCategory",t.currentCategory)("mainCategory",t.mainCategory)("manufacturerId",t.manufacturerId)("vendorId",t.vendorId)("listView",t.listView)("generalInfo",t.generalInfo)("maxLevel",t.maxLevel)}}function T(n,i){if(1&n&&(e.j41(0,"div",13),e.DNE(1,V,2,8,"div",14),e.k0s()),2&n){const r=e.XpG(3);e.R7$(1),e.Y8G("ngForOf",r.category.childrenViewList)}}function E(n,i){if(1&n&&(e.j41(0,"div")(1,"a",11)(2,"span"),e.EFF(3),e.k0s()(),e.DNE(4,T,2,1,"div",12),e.k0s()),2&n){const r=e.XpG(2);e.R7$(1),e.AVh("selected",r.isSelectedCategory(r.category)),e.Y8G("queryParams",r.getQueryParams())("routerLink",e.l_i(6,M,r.getUrl("/products"),r.mainCategory.id)),e.R7$(2),e.JRh(r.category.name),e.R7$(1),e.Y8G("ngIf",r.isSelectedCategory(r.category))}}function k(n,i){if(1&n&&(e.qex(0),e.DNE(1,w,6,10,"mat-expansion-panel",2),e.DNE(2,E,5,9,"div",3),e.bVm()),2&n){const r=e.XpG();e.R7$(1),e.Y8G("ngIf",r.listView==r.CategoryListView.TREE),e.R7$(1),e.Y8G("ngIf",r.listView==r.CategoryListView.TAB)}}function S(n,i){if(1&n&&(e.j41(0,"a",16)(1,"span"),e.EFF(2),e.k0s()()),2&n){const r=e.XpG(2);e.AVh("selected",r.isSelectedCategory(r.category))("category-tab",r.listView==r.CategoryListView.TAB),e.Y8G("queryParams",r.getQueryParams())("routerLink",e.l_i(7,M,r.getUrl("/products"),r.mainCategory.id)),e.R7$(2),e.JRh(r.category.name)}}function G(n,i){if(1&n&&e.DNE(0,S,3,10,"a",15),2&n){const r=e.XpG();e.Y8G("ngIf",r.category)}}let B=(()=>{var n;class i extends h.${constructor(t,o){super(o),this.shopService=t,this.cdk=o,this.CategoryListView=c.u}static _isExpansionIndicator(t){return t.classList&&t.classList.contains("mat-expansion-indicator")}ngOnInit(){}expandPanel(t,o){o.stopPropagation(),i._isExpansionIndicator(o.target)||t.toggle(
1)}isSelectedCategory(t){return!(!this.currentCategory||!this.currentCategory.id1)&&(!t||t.id===this.currentCategory["id"+t.level]&&this.isSelectedCategory(t.parent))}getQueryParams(){const t={};this.vendorId?t.vendor=this.vendorId:this.manufacturerId&&(t.manufacturer=this.manufacturerId);let o=this.category;for(;o&&o.parent;)t["id"+o.level]=o.id,o=o.parent;return t}getUrl(t){return this.shopService.getUrl(t)}}return(n=i).\u0275fac=function(t){return new(t||n)(e.rXU(l.L),e.rXU(e.gRc))},n.\u0275cmp=e.VBU({type:n,selectors:[["webshop-category-level"]],inputs:{mainCategory:"mainCategory",maxLevel:"maxLevel",category:"category",currentCategory:"currentCategory",vendorId:"vendorId",manufacturerId:"manufacturerId",listView:"listView",generalInfo:"generalInfo"},features:[e.Vt3],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["noSubCategories",""],["class","mat-elevation-z0",3,"expanded",4,"ngIf"],[4,"ngIf"],[1,"mat-elevation-z0",3,"expanded"],["expansionPanel",""],["collapsedHeight","40px","expandedHeight","40px",1,"category-expansion-btn",3,"click"],[3,"queryParams","routerLink","click"],["class","ps-3",4,"ngFor","ngForOf"],[1,"ps-3"],[3,"category","currentCategory","mainCategory","manufacturerId","vendorId","listView","generalInfo","maxLevel"],[1,"category-tab","category-btn",3,"queryParams","routerLink"],["class","category-inner-level-container",4,"ngIf"],[1,"category-inner-level-container"],[4,"ngFor","ngForOf"],["class","category-btn",3,"selected","queryParams","routerLink","category-tab",4,"ngIf"],[1,"category-btn",3,"queryParams","routerLink"]],template:function(t,o){if(1&t&&(e.DNE(0,k,3,2,"ng-container",0),e.DNE(1,G,1,1,"ng-template",null,1,e.C5r)),2&t){const m=e.sdS(2);e.Y8G("ngIf",(null==o.category||null==o.category.childrenViewList?null:o.category.childrenViewList.length)&&(null==o.category?null:o.category.level)<o.maxLevel)("ngIfElse",m)}},dependencies:[L.GK,L.Z2,f.Sq,f.bT,y.Wk,n],styles:[".category-inner-level-container[_ngcontent-%COMP%]{display:flex;gap:.5rem;margin:0;padding:.5rem 1rem;background:white;z-index:999;border-radius:50px;position:absolute}"],changeDetection:0}),i})();var U=a(41780);function F(n,i){if(1&n&&(e.j41(0,"div")(1,"a",6)(2,"span"),e.EFF(3),e.nI1(4,"translate"),e.k0s()()()),2&n){const r=e.XpG(2);e.R7$(1),e.HbH(r.isTabView()?"category-tab category-btn":" price-book category-btn"),e.AVh("selected",!r.currentPriceBook&&!r.currentCategory),e.Y8G("routerLink",r.getUrl("/products/")),e.R7$(2),e.SpI(" ",e.bMT(4,6,"category_list.all"),"")}}function $(n,i){if(1&n&&(e.j41(0,"div",9)(1,"span"),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n){const r=e.XpG(3);e.R7$(2),e.JRh(e.bMT(3,1,(null==r.customText?null:r.customText.pricebooksPageTitle)||"category_list.price_books"))}}const j=function(n,i,r){return{pb:n,vendor:i,manufacturer:r}};function A(n,i){if(1&n&&(e.j41(0,"div")(1,"a",10)(2,"span"),e.EFF(3),e.k0s()()()),2&n){const r=i.$implicit,t=e.XpG(3);e.R7$(1),e.HbH(t.isTabView()?"category-tab category-btn":" price-book category-btn"),e.AVh("selected",r.id===t.currentPriceBook),e.Y8G("queryParams",e.sMw(7,j,r.id,t.vendorId,t.manufacturerId))("routerLink",t.getUrl("/products/")),e.R7$(2),e.SpI("",r.name," ")}}function Y(n,i){if(1&n&&(e.qex(0),e.DNE(1,$,4,3,"div",7),e.DNE(2,A,4,11,"div",8),e.bVm()),2&n){const r=e.XpG(2);e.R7$(1),e.Y8G("ngIf",!r.isTabView()),e.R7$(1),e.Y8G("ngForOf",r.priceBooks)}}function X(n,i){1&n&&(e.j41(0,"div",11)(1,"span"),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"category_list.categories")))}
1function K(n,i){if(1&n&&(e.j41(0,"div"),e.nrm(1,"webshop-category-level",12),e.k0s()),2&n){const r=i.$implicit,t=e.XpG(2);e.HbH(t.isTabView()?"":"categories-tree expansion-panel-tree"),e.R7$(1),e.Y8G("category",r)("currentCategory",t.currentCategory)("mainCategory",r)("manufacturerId",t.manufacturerId)("vendorId",t.vendorId)("listView",t.listView)("generalInfo",t.generalInfo)("maxLevel",t.isTabView()?1:t.maxLevel)}}function N(n,i){if(1&n&&(e.j41(0,"div"),e.qex(1),e.DNE(2,F,5,8,"div",3),e.DNE(3,Y,3,2,"ng-container",3),e.DNE(4,X,4,3,"div",4),e.DNE(5,K,2,10,"div",5),e.bVm(),e.k0s()),2&n){const r=e.XpG();e.HbH(r.isTabView()?"category-tabs-container":"category-list"),e.R7$(2),e.Y8G("ngIf",r.isTabView()),e.R7$(1),e.Y8G("ngIf",(null==r.priceBooks?null:r.priceBooks.length)>0),e.R7$(1),e.Y8G("ngIf",(!r.isMobile||(null==r.priceBooks?null:r.priceBooks.length)>0)&&!r.isTabView()),e.R7$(1),e.Y8G("ngForOf",r.categories)}}function W(n,i){if(1&n&&(e.j41(0,"div"),e.nrm(1,"webshop-category-level",12),e.k0s()),2&n){const r=i.$implicit,t=e.XpG(2);e.R7$(1),e.Y8G("category",r)("currentCategory",t.currentCategory)("mainCategory",t.getSelectedCategory())("manufacturerId",t.manufacturerId)("vendorId",t.vendorId)("listView",t.listView)("generalInfo",t.generalInfo)("maxLevel",t.maxLevel)}}const H=function(n,i){return[n,i]};function Q(n,i){if(1&n&&(e.j41(0,"div",13)(1,"div")(2,"a",14)(3,"span"),e.EFF(4),e.nI1(5,"translate"),e.k0s()()(),e.DNE(6,W,2,8,"div",8),e.k0s()),2&n){const r=e.XpG();e.R7$(2),e.AVh("selected",!(r.currentPriceBook||null!=r.currentCategory&&r.currentCategory.id2)),e.Y8G("routerLink",e.l_i(7,H,r.getUrl("/products"),r.getSelectedCategory().id)),e.R7$(2),e.JRh(e.bMT(5,5,"category_list.all")),e.R7$(2),e.Y8G("ngForOf",r.getSelectedCategory().childrenViewList)}}function z(n,i){1&n&&(e.j41(0,"div",15),e.nrm(1,"mat-spinner",16),e.k0s())}let J=(()=>{var n;class i extends h.${constructor(t,o,m,O,Z,q,R,D){super(D,void 0,R),this.getCategoriesInteractor=t,this.getPriceBooksInteractor=o,this.snackbarService=m,this.shopInfoService=O,this.deviceInfoService=Z,this.shopService=q,this.platformId=R,this.cdk=D,this.maxLevel=5,this.listView=c.u.TREE,this.CategoryListView=c.u,this.queryParamService=(0,e.WQX)(g.r),this.isMobile=!0,this.isLoading=!0}ngOnInit(){this.isServer()||(this.addSubscription((0,s.z)([this.queryParamService.getCurrentVendor(),this.queryParamService.getCurrentManufacturer()]).subscribe(([t,o])=>{this.vendorId=t,this.manufacturerId=o,this.loadCategories()})),this.addSubscription((0,s.z)([this.shopInfoService.getCustomText(),this.deviceInfoService.getIsHandset$(),this.queryParamService.getCurrentCategory(),this.queryParamService.getCurrentPriceBook()]).subscribe(([t,o,m,O])=>{this.customText=t,this.isHandset=o,this.currentCategory=m,this.currentPriceBook=O,this.detectChanges()})))}loadCategories(){this.categoriesSubscription&&!this.categoriesSubscription.closed&&this.categoriesSubscription.unsubscribe(),this.isLoading=!0,this.detectChanges(),this.categoriesSubscription=(0,p.y)(this.getCategoriesInteractor.loadCategories(this.vendorId,this.manufacturerId),this.getPriceBooksInteractor.execute(this.manufacturerId,this.vendorId)).subscribe(([t,o])=>{this.categories=t,this.priceBooks=o,this.isLoading=!1,this.detectChanges()},()=>this.snackbarService.error("category_list.loading_failed")),this.addSubscription(this.categoriesSubscription)}isSelectedCategory(t){return!(!this.currentCategory||!this.currentCategory.id1)&&(!t||t.id===this.currentCategory["id"+t.level]&&this.isSelectedCategory(t.parent))}getSelectedCategory(){var t;let o=null;return null===(t=this.categories)||void 0===t||t.some(m=>{if(this.isSelectedCategory(m))return o=m,!0}),o}isTabView(){return this.listView==c.u.TAB}getUrl(t){return this.shopService.getUrl(t)}}return(n=i).\u0275fac=function(t){return new(t||n)(e.rXU(d.A),e.rXU(v.z),e.rXU(x.z),e.rXU(P.W),e.rXU(u.E),e.rXU(l.L),e.rXU(e.Agw),e.rXU(e.gRc))},n.\u0275cmp=e.VBU({type:n,selectors:[["webshop-category-list"]],inputs:{isMobile:"isMobile",maxLevel:"maxLevel",generalInfo:"generalInfo",listView:"listView"},features:[e.Vt3],decls:3,vars:3,consts:[[3,"class",4,"ngIf"],["class","category-tabs-container border-top",4,"ngIf"],["class","h-100 w-100 d-flex justify-content-center","style","padding-top: 50px;",4,"ngIf"],[4,"ngIf"],["class","category-top-bar mt-2",4,"ngIf"],[3,"class",4,"ngFor","ngForOf"],[3,"routerLink"],["class","category-top-bar",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"category-top-bar"],[3,"queryParams","routerLink"],[1,"category-top-bar","mt-2"],[3,"category","currentCategory","mainCategory","manufacturerId","vendorId","listView","generalInfo","maxLevel"],[1,"category-tabs-container","border-top"],[1,"category-tab","category-btn",3,"routerLink"],[1,"h-100","w-100","d-flex","justify-content-center",2,"padding-top","50px"],["color","accent"]],template:function(t,o){if(1&t&&(e.DNE(0,N,6,6,"div",0),e.DNE(1,Q,7,10,"div",1),e.DNE(2,z,2,0,"div",2)),2&t){let m;e.Y8G("ngIf",!o.isLoading),e.R7$(1),e.Y8G("ngIf",o.isTabView()&&(null==(m=o.getSelectedCategory())||null==m.childrenViewList?null:m.childrenViewList.length)>0&&!o.isLoading&&o.isHandset&&2==o.maxLevel),e.R7$(1),e.Y8G("ngIf",o.isLoading)}},dependencies:[f.Sq,f.bT,y.Wk,b.LG,B,U.D9],styles:["[_nghost-%COMP%] .categories-tree{color:var(--theme-dark-neutral)}[_nghost-%COMP%] .categories-tree a.category-btn:hover, [_nghost-%COMP%] .categories-tree a.category-btn:hover>span, [_nghost-%COMP%] .categories-tree a.category-btn.selected, [_nghost-%COMP%] .categories-tree mat-expansion-panel-header>span.mat-content:hover, [_nghost-%COMP%] .categories-tree mat-expansion-panel-header.selected>span.mat-content{color:var(--theme-primary)}[_nghost-%COMP%] .categories-tree a.category-btn:hover>.mat-button-focus-overlay, [_nghost-%COMP%] .categories-tree a.category-btn:hover>span>.mat-button-focus-overlay, [_nghost-%COMP%] .categories-tree a.category-btn.selected>.mat-button-focus-overlay, [_nghost-%COMP%] .categories-tree mat-expansion-panel-header>span.mat-content:hover>.mat-button-focus-overlay, [_nghost-%COMP%] .categories-tree mat-expansion-panel-header.selected>span.mat-content>.mat-button-focus-overlay{opacity:0!important}[_nghost-%COMP%] .categories-tree a{color:inherit}[_nghost-%COMP%] .categories-tree a.category-btn>span{max-width:100%;overflow:hidden;text-overflow:ellipsis}[_nghost-%COMP%] div.categories-tree.expansion-panel-tree .mat-expansion-panel.mat-expanded{border:none!important}[_nghost-%COMP%] div.categories-tree.expansion-panel-tree mat-expansion-panel-header{font-size:1rem}[_nghost-%COMP%] div.categories-tree.expansion-panel-tree mat-expansion-panel-header>span.mat-content{height:100%}[_nghost-%COMP%] div.categories-tree.expansion-panel-tree mat-expansion-panel-header>span.mat-content>a{height:100%;width:100%;align-items:center;display:flex}[_nghost-%COMP%] div.categories-tree.expansion-panel-tree mat-expansion-panel-header>span.mat-expansion-indicator{height:100%;display:flex;justify-content:center;align-items:center;width:25px;cursor:pointer}[_nghost-%COMP%] div.categories-tree.expansion-panel-tree mat-expansion-panel-header>span.mat-expansion-indicator:hover:after{border-width:0 2.5px 2.5px 0}[_nghost-%COMP%] div.categories-tree.expansion-panel-tree .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true]), [_nghost-%COMP%] div.categories-tree.expansion-panel-tree .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true]), [_nghost-%COMP%] div.categories-tree.expansion-panel-tree .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true]){background:rgba(0,0,0,0)}[_nghost-%COMP%] div.categories-tree.expansion-panel-tree .mat-expansion-panel{border-radius:0;margin:0;background:inherit}[_nghost-%COMP%] div.categories-tree.expansion-panel-tree .mat-expansion-panel .mat-expansion-panel-body{padding:0}[_nghost-%COMP%] div.categories-tree.expansion-panel-tree .mat-expansion-panel .mat-expansion-panel-header.mat-expanded{border-bottom:1px solid #f0f
10f0!important}[_nghost-%COMP%] div.categories-tree.expansion-panel-tree a.category-btn, [_nghost-%COMP%] div.categories-tree.expansion-panel-tree mat-expansion-panel-header{text-align:left;word-break:break-word;align-items:center;border-radius:0;display:flex;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:0!important}.category-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;color:var(--theme-dark-neutral);max-height:75vh;overflow-y:auto;scrollbar-width:thin}.category-list[_ngcontent-%COMP%] > .category-top-bar[_ngcontent-%COMP%]{padding:1rem 0;text-align:center;display:flex}@media (max-width: 768px){.category-list[_ngcontent-%COMP%] > .category-top-bar[_ngcontent-%COMP%]{margin:0}}.category-list[_ngcontent-%COMP%] > .category-top-bar[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-weight:600;letter-spacing:1px;font-size:.8rem;position:relative;color:var(--bs-gray-600);text-transform:uppercase}a.price-book[_ngcontent-%COMP%]{font-weight:400;text-align:start;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:inherit;padding:0;font-size:1rem;width:100%}a.price-book.selected[_ngcontent-%COMP%]{color:var(--theme-primary);font-weight:600}"],changeDetection:0}),i})()},4216:(C,_,a)=>{a.d(_,{L:()=>c});var e=a(85956),l=a(9454),h=a(9183),s=a(89417),p=a(26015),g=a(17705);let c=(()=>{var d;class v{}return(d=v).\u0275fac=function(P){return new(P||d)},d.\u0275mod=g.$C({type:d}),d.\u0275inj=g.G2t({imports:[l.MY,p.G,s.YN,e.wG,h.D6]}),v})()},65831:(C,_,a)=>{a.d(_,{u:()=>e});var e=function(l){return l.TREE="tree",l.TAB="tab",l}(e||{})},54305:(C,_,a)=>{a.d(_,{r:()=>d});var e=a(17705),l=a(52168),h=a(60177),s=a(92771),p=a(5964),g=a(23294);let d=(()=>{var v;class x{constructor(u,f){this.router=u,this.platformId=f,this.currentManufacturer=new s.m(1),this.searchQuerySubject=new s.m(1),this.currentVendor=new s.m(1),this.priceBookSubject=new s.m(1),this.currentCategory=new s.m(1),!(0,h.Vy)(f)&&(this.router.events.pipe((0,p.p)(y=>y instanceof l.wF)).subscribe(()=>this.updateData()),this.updateData())}getCurrentManufacturer(){return this.currentManufacturer.asObservable().pipe((0,g.F)())}getCurrentSearchQuery(){return this.searchQuerySubject.asObservable().pipe((0,g.F)())}getCurrentVendor(){return this.currentVendor.asObservable().pipe((0,g.F)())}getCurrentPriceBook(){return this.priceBookSubject.asObservable().pipe((0,g.F)())}getCurrentCategory(){return this.currentCategory.asObservable().pipe((0,g.F)())}updateData(){this.updateManufacturer(),this.updateSearchQuery(),this.updateVendor(),this.updateCategory(),this.updatePriceBook()}updateManufacturer(){let u=this.router.parseUrl(this.router.url).queryParamMap.get("manufacturer");this.currentManufacturer.next(u)}updateSearchQuery(){const u=this.router.parseUrl(this.router.url).queryParamMap.get("q");this.searchQuerySubject.next(u)}updateVendor(){const u=this.router.parseUrl(this.router.url).queryParamMap.get("vendor");this.currentVendor.next(u)}updatePriceBook(){const u=this.router.parseUrl(this.router.url).queryParamMap.get("pb"),f=u?Number(u):void 0;this.priceBookSubject.next(f)}updateCategory(){if(!this.router.url.includes("products"))return void this.currentCategory.next(null);const f=this.router.parseUrl(this.router.url);let y=null;const b=f.toString().split("/"),L=b.findIndex(k=>"products"===k||"category"===k)+1;b.length>=L&&(y=b[L],y=y&&y.includes("?")?y.split("?")[0]:y);const I=f.queryParams;let E=null;y&&(E={id1:y,id2:I.id2,id3:I.id3,id4:I.id4,id5:I.id5}),this.currentCategory.next(E)}}return(v=x).\u0275fac=function(u){return new(u||v)(e.KVO(l.Ix),e.KVO(e.Agw))},v.\u0275prov=e.jDH({token:v,factory:v.\u0275fac,providedIn:"root"}),x})()}}]);
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.