1"use strict";(self.webpackChunkboxoutstore=self.webpackChunkboxoutstore||[]).push([[554,7294,8173],{50075(I,y,r){r.d(y,{B:()=>a,U:()=>C});const a={myAccount:"myAccount",rapidOrder:"Rapid Order",orderHistory:"myAccount,orderHistory",quoteHistory:"myAccount,quoteHistory",approvalOrders:"myAccount,orderApprovals",businessAccounts:"myAccount,myBusinessAccounts",clientsAddresses:"myAccount,myClients&Addresses",quickOrder:"quickOrder",favoriteLists:"myAccount,favoriteLists",itemPurchaseActivity:"myAccount,itemsPurchaseActivity",itemPurchaseActivityReport:"myAccount,itemsPurchaseActivity,itemsPurchaseActivityReport",advancedEbill:"myAccount,advancedeBill",advancedEbillReport:"myAccount,advancedeBill,advancedeBillReport",downloadReports:"myAccount,reportDownloads",userIdAndPreferences:"myAccount,userIdAndPreferences",signInAndSecurity:"myAccount,signInAndSecurity",usersAdmin:"myAccount,userAdmin",createNewUser:"myAccount,userAdmin,createNewUser",manageUser:"myAccount,userAdmin,manageUser",paymentTypes:"myAccount,paymentTypes",manageFavoritesProductList:"myAccount,favoriteLists",cart:"cart",categoryListing:"allCategories",brandsListing:"brands",manageAccount:"myAccount,manageAccount",orderDetail:"myAccount,orderHistory",orderRequiringApproval:"myAccount,orderApprovals",editOrderOther:"myAccount,orderApprovals,ordersRequiringApproval",editOrderUnapproved:"myAccount,orderHistory,orderDetail",backorder:"myAccount,backorder",backorderReport:"myAccount,backorder,backorderReport",bulkPODExport:"myAccount,proofOfDeliveryBulkExport",onlineBillPay:"myAccount,onlineBillPay",frequentlyPurchased:"myAccount,frequentlyPurchased",categorySpecific:"categoryCode",rewards:"myAccount,rebatesIncentives &Rewards",rewardsDetails:"myAccount,rebatesIncentives &Rewards",accountSettings:"myAccount,Settings,AccountSettings",help:"Help",returns:"Orders, Returns","my-account":"My Account",changePassword:"myAccount,User,Settings,Password",products:"Products,ProductList",notFound:"Not Found",home:"Home",product:"Product",inventoryByLocation:"Inventory,Inventory by Location",inventoryByStatus:"Inventory,Inventory by Status",manufacturerSKU:"Inventory,Manufacturer SKU Inventory",inventoryByTransaction:"Inventory, Inventory Transaction History",receiving:"Receiving,openWarehouseReceivingOrders",orders:"Orders,Transaction History",reports:"Reports, List",quarantineProduct:"Inventory, Quarantine Product",receivingReceipt:"Receiving,warehouseReceipts",wroDetails:"Receiving,Open Warehouse Receiving Orders",newItemSetup:"Products,New Item Setup",orderDetails:"Order, Transaction History",wroList:"Receiving, Open Warehouse Receiving Orders",quotes:"Quotes, Quote Dashboard"},C={myAccount:"my-account",orderHistory:"my-account/orderHistory",orderDetail:"my-account/order",orderApprovals:"my-account/approvalOrders",userAdmin:"my-account/userAdmin",favoriteLists:"my-account/favoriteLists",itemsPurchaseActivity:"my-account/itemPurchaseActivity",advancedeBill:"my-account/advanced-ebill",ordersRequiringApproval:"my-account/orderApprovalDetails",backorder:"my-account/backorderSearch",frequentlyPurchased:"my-account/frequentlyPurchased","Manufacturer Rebates":"my-account/rewards-credits",Orders:"orders",Products:"product-list",Inventory:"inventory",Receiving:"receiving",User:"account-configuration",Reports:"reports",Quotes:"/sales-rep/quotes"}},47294(I,y,r){r.d(y,{PortalBxdDrawerComponent:()=>We});var a=r(85802),C=r(50075),e=r(35547),R=r(81535),x=r(37702),h=r(86568),k=r(95111),g=r(88260),b=r(90882),B=r(25994),A=r(8173),F=r(60177),w=r(89417),T=r(7673),p=r(25558),f=r(86367),u=r(5631),l=r(45312),c=r(65157),S=r(93049),U=r(67157),E=r(76987),M=r(34006),V=r(2490),O=r(12917),P=r(9310),D=r(5138),H=r(36213),X=r(99213),G=r(59115),W=r(49769);function Y(n,s){if(1&n&&(e.j41(0,"div",11),e.nrm(1,"mat-icon",23,1),e.k0s()),2&n){e.XpG();const t=e.sdS(13);e.R7$(),e.Y8G("matMenuTriggerFor",t)}}function J(n,s){if(1&n&&e.nrm(0,"img",16),2&n){const t=e.XpG();e.Y8G("src",t.baseURL+t.userDetails,e.B4B)}}function K(n,s){1&n&&e.nrm(0,"mat-icon",17)}function Q(n,s){if(1&n&&(e.j41(0,"a",24),e.nrm(1,"mat-icon",26),e.j41(2,"div",27),e.EFF(3),e.k0s()()),2&n){const t=e.XpG().$implicit;e.Y8G("routerLink",e.mNQ(null==t?null:t.route)),e.R7$(),e.Y8G("svgIcon",t.icon),e.R7$(2),e.JRh(null==t?null:t.name)}}function Z(n,s){if(1&n){const t=e.RV6();e.j41(0,"span",28),e.bIt("click",function(){a.eBV(t);const o=e.XpG(3);return a.Njj(o.openB2bUnitModal())}),e.nrm(1,"mat-icon",26),e.j41(2,"div",27),e.EFF(3),e.k0s()()}if(2&n){const t=e.XpG(2).$implicit;e.R7$(),e.Y8G("svgIcon",t.icon),e.R7$(2),e.JRh(null==t?null:t.name)}}
1function z(n,s){if(1&n&&(e.j41(0,"span"),e.nVh(1,Z,4,2,"span",25),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.vxM("SWITCH_ACCOUNT"===(null==t?null:t.type)?1:-1)}}function q(n,s){if(1&n){const t=e.RV6();e.j41(0,"span",28),e.bIt("click",function(){a.eBV(t);const o=e.XpG(2);return a.Njj(o.logoutBxdUser())}),e.nrm(1,"mat-icon",26),e.j41(2,"div",27),e.EFF(3),e.k0s()()}if(2&n){const t=e.XpG().$implicit;e.R7$(),e.Y8G("svgIcon",t.icon),e.R7$(2),e.JRh(null==t?null:t.name)}}function ee(n,s){if(1&n&&(e.nVh(0,Q,4,4,"a",24),e.nVh(1,z,2,1,"span"),e.nVh(2,q,4,2,"span",25)),2&n){const t=s.$implicit,i=e.XpG();e.vxM("SWITCH_ACCOUNT"!==(null==t?null:t.type)&&"LOGOUT"!==(null==t?null:t.type)?0:-1),e.R7$(),e.vxM(i.showSwitchAccount?1:-1),e.R7$(),e.vxM("LOGOUT"===(null==t?null:t.type)?2:-1)}}let te=(()=>{class n{constructor(t,i,o,m,d,_,v,L,Ye,Je,Ke,Qe,Ze,ze,qe,et,tt,nt,it,ot){this.router=t,this.csAgentAuthService=i,this.customHttp=o,this.config=m,this.activatedRoute=d,this.windowRef=_,this.dialog=v,this.portalBxdService=L,this.auth=Ye,this.authStorageService=Je,this.cookieService=Ke,this.userAccount=Qe,this.breakpointObserver=Ze,this.cd=ze,this.document=qe,this.changeDetectorRef=et,this.store=tt,this.gtmService=nt,this.scriptService=it,this.platformId=ot,this.profileLinks=[{name:"Switch Account",icon:"bxd_switch-account",route:"/sales-rep/switch-account",type:"SWITCH_ACCOUNT"},{name:"Account Configuration",icon:"sr_profile_setting",type:"ACCOUNT_CONFIG",route:"/account-configuration"},{name:"User Settings",icon:"bxd_user-settings",route:"/user-security",type:"SETTING"},{name:"Help",icon:"bxd_help",type:"HELP",route:"/help-center"},{name:"Logout",icon:"sr_profile_logout",type:"LOGOUT",route:"/logout"}],this.subscription=[],this.searchForm=new w.gE({search:new w.MJ("")}),this.openSideNav=!0,this.isMobile=!0,this.showSwitchAccount=!1,this.toggleNav=()=>{this.openSideNav="true"===this.windowRef?.sessionStorage?.getItem("openSideNav"),this.openSideNav=!this.openSideNav,this.windowRef?.sessionStorage?.setItem("openSideNav",this.openSideNav.toString()),this.cd.detectChanges();const $=this.windowRef?.sessionStorage?.getItem("openSideNav"),N=this.windowRef?.sessionStorage?.getItem("responsiveNess");this.portalBxdService.changeValue($),this.document?.querySelector(".mat-drawer-content")?.classList?.remove("mat-drawer-content-desktop"),"true"!==$?this.breakpointObserver.observe(["(max-width:992px)"]).subscribe(j=>{j.breakpoints["(max-width:992px)"]||("true"!==N?this.document?.querySelector(".mat-drawer-content")?.classList?.add("mat-drawer-content-mobile"):(this.document?.querySelector(".mat-drawer-content")?.classList?.remove("mat-drawer-content-mobile"),this.document?.querySelector(".mat-drawer-content")?.classList?.add("mat-drawer-content-desktop")))}):this.breakpointObserver.observe(["(max-width:992px)"]).subscribe(j=>{j.breakpoints["(max-width:992px)"]||(this.document?.querySelector(".mat-drawer-content")?.classList?.remove("mat-drawer-content-mobile"),this.document?.querySelector(".mat-drawer-content")?.classList?.add("mat-drawer-content-desktop"))})},this.searchUsers=()=>{this.searchForm.get("search")?.value?this.router.navigate(["/sales-rep/account-search"],{queryParams:{searchFor:this.searchForm.get("search")?.value}}):this.router.navigate(["/sales-rep/account-search"])},this.getUserProfile=()=>{this.subscription.push(this.customHttp.get("/salesRepUsers/salesRepDetails").subscribe($=>{this.userProfile=$,this.windowRef?.localStorage?.setItem("asmLoggedInUserEmail",this.userProfile?.email)}))},this.baseURL=this.config?.backend?.occ?.baseUrl,(0,a.QZP)(()=>{(0,F.UE)(this.platformId)&&this.scriptService.osanoReady()&&this.loadGTAScript()})}ngOnInit(){this.baseSiteNameVal=this.config?.context?.baseSite[0],this.subscription.push(this.activatedRoute?.queryParamMap?.subscribe(t=>{this.searchForm?.setValue(t?.params?.searchFor?{search:decodeURIComponent(t?.params?.searchFor)}:{search:""}),this.searchForm.updateValueAndValidity()})),this.user$=this.auth.isUserLoggedIn().pipe((0,p.n)(t=>t?this.userAccount.get():(0,T.of)(void 0))),this.currentUser=this.user$.subscribe(t=>{this.userDetails=t,this.headerMsg=t?.tplProgramName,this.email=t?.email,this.firstName=t?.firstName,this.lastName=t?.lastName,this.imageUrl=t?.profilePic?.url,this.userDetails&&(this.store.dispatch(f.Ne({user:this.userDetails})),this.gtmService.setGTMUserData(this.userDetails)),this.cd.detectChanges(),t?.email&&this.windowRef?.localStorage?.setItem("bxdLoggedInUserEmail",t?.email)}),this.windowRef.localStorage?.getItem("multipleB2bUnitFlag")&&(this.showSwitchAccount="true"===this.windowRef.localStorage?.getItem("multipleB2bUnitFlag"),this.changeDetectorRef.detectChanges()),this.GtaSiteKey=l.mB[this.baseSiteNameVal]}loadGTAScript(){let i=`<iframe src="https://www.googletagmanager.com/ns.html?id=${this.GtaSiteKey}" height="0" width="0"\n style="display:none;visibility:hidden"></iframe>`;this.scriptService.loadGTAScript(`(function (w, d, s, l, i) {\n w[l] = w[l] || [];\n w[l].push({ "gtm.start": new Date().getTime(), event: "gtm.js" });\n var f = d.getElementsByTagName(s)[0],\n j = d.createElement(s),\n dl = l != "dataLayer" ? "&l=" + l : "",\n osanoScript = d.getElementById("osano-script");\n j.async = true;\n j.src = "https://www.googletagmanager.com/gtm.js?id=" + i + dl;\n if (osanoScript && osanoScript.parentNode) {\n osanoScript.parentNode.insertBefore(j, osanoScript.
1nextSibling);\n } else {\n f.parentNode.insertBefore(j, f);\n }\n })(window, document, "script", "dataLayer", "${this.GtaSiteKey}");`,"head","script"),this.scriptService.loadGTAScript(i,"body","noscript")}openB2bUnitModal(){this.dialog.open(u.y,{data:{userId:this.userDetails?.email,b2bunit:this.userDetails?.orgUnit?.uid},panelClass:["custom-dialog-size"],width:"730px"})}logoutBxdUser(){this.windowRef.localStorage?.setItem("isLogoutClicked","true"),this.windowRef.localStorage?.getItem("bxdLoggedInUserEmail")&&this.router.navigateByUrl("/logout").then(()=>{this.portalBxdService.resetStorage(),this.store.dispatch(f.ri())}).finally(()=>{this.portalBxdService.resetStorage(),this.router.navigate(["/login"])})}ngOnDestroy(){this.subscription?.length&&this.subscription.forEach(t=>t?.unsubscribe())}static{this.\u0275fac=function(i){return new(i||n)(e.rXU(x.Ix),e.rXU(U.lg),e.rXU(E.I),e.rXU(h.fkq),e.rXU(x.nX),e.rXU(h.WTn),e.rXU(M.bZ),e.rXU(k.P),e.rXU(h.uRZ),e.rXU(h.v4J),e.rXU(V.O),e.rXU(O.zq),e.rXU(R.Q),e.rXU(c.gRc),e.rXU(a.qQL),e.rXU(c.gRc),e.rXU(P.il),e.rXU(D.e),e.rXU(H.f),e.rXU(e.Agw))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-bxd-header"]],standalone:!1,decls:30,vars:10,consts:[["menu","matMenu"],["menuTrigger",""],[1,"header-msg","t-sales-rep-header-msg","d-flex","flex-row","align-items-center","justify-content-center"],["position","BoxoutPortalHomeHeader"],[1,"header-body","d-flex","align-items-center","py-2","px-3"],[1,"hamburger-icon","d-flex","align-items-center"],["role","button","svgIcon","hamburger","title","Hamburger Icon","aria-label","Hamburger Icon",1,"cursor-pointer",3,"click"],["aria-label","Boxout Portal","tabindex","0",1,"website-logo","bxd-logo","t-sales-rep-header","d-none","d-sm-block"],["position","BoxoutPortalHomeHeaderLogo",1,"ml-4"],[1,"website-name","t-sales-rep-header","d-none","d-sm-block"],[1,"m-0","p-0","ml-4","text-white","t-bxdPortal-headerText"],[1,"user-icon","d-flex","align-items-center","ml-auto"],["role","menu",1,"sr-profile-details","mt-3"],["role","menuitem",1,"sr-profile-description","d-flex","align-items-center","justify-content-center","p-2"],["routerLink","/my-account",1,"d-flex","align-items-center","justify-content-center","text-decoration-none"],[1,"profile-image","rounded-circle","d-flex","align-items-center","justify-content-center"],["alt","profile-pic",1,"profile-pic","rounded-circle",3,"src"],["svgIcon","sr_profile_white"],[1,"profile-description"],[1,"name","t-sales-rep-nav"],[1,"email","t-sales-rep-search"],[1,"sr-profile-rule","mx-2","mt-0","p-0"],["role","menuitem",1,"sr-link-section","t-table-s"],["role","button","svgIcon","profile_white","title","User Icon",1,"cursor-pointer",3,"matMenuTriggerFor"],[1,"nav-link","cursor-pointer","d-flex","align-items-center","py-2","px-3",3,"routerLink"],[1,"nav-link","cursor-pointer","d-flex","align-items-center","py-2","px-3"],[3,"svgIcon"],[1,"nav-name"],[1,"nav-link","cursor-pointer","d-flex","align-items-center","py-2","px-3",3,"click"]],template:function(i,o){1&i&&(e.j41(0,"div")(1,"section",2),e.nrm(2,"cx-page-slot",3),e.k0s(),e.j41(3,"section",4)(4,"div",5)(5,"mat-icon",6),e.bIt("click",function(){return o.toggleNav()}),e.k0s()(),e.j41(6,"div",7),e.nrm(7,"cx-page-slot",8),e.k0s(),e.j41(8,"div",9)(9,"p",10),e.EFF(10),e.k0s()(),e.nVh(11,Y,3,1,"div",11),e.k0s()(),e.j41(12,"mat-menu",12,0)(14,"div",13)(15,"a",14)(16,"div",15),e.nVh(17,J,1,1,"img",16)(18,K,1,0,"mat-icon",17),e.k0s(),e.j41(19,"div",18)(20,"div",19),e.EFF(21),e.nI1(22,"titlecase"),e.nI1(23,"titlecase"),e.k0s(),e.j41(24,"div",20),e.EFF(25),e.k0s()()()(),e.nrm(26,"hr",21),e.j41(27,"div",22),e.Z7z(28,ee,3,3,null,null,e.fX1),e.k0s()()),2&i&&(e.R7$(10),e.JRh(o.headerMsg),e.R7$(),e.vxM(o.userDetails?11:-1),e.R7$(6),e.vxM(null!=o.userDetails&&o.userDetails.profilePic&&o.imageUrl?17:18),e.R7$(4),e.Lme(" ",e.bMT(22,6,o.firstName)," ",e.bMT(23,8,o.lastName)," "),e.R7$(4),e.JRh(o.email),e.R7$(3),e.Dyx(o.profileLinks))},dependencies:[S.Wk,X.An,G.kk,G.Cp,B.ZW9,W.PV],encapsulation:2})}}return n})();var ne=r(5964);function ie(n,s){if(1&n&&(e.j41(0,"div",13),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2).$implicit;e.R7$(),e.JRh(null==t?null:t.name)}}
1function oe(n,s){if(1&n&&(e.j41(0,"a",11),e.nrm(1,"mat-icon",12),e.nVh(2,ie,2,1,"div",13),e.k0s()),2&n){const t=e.XpG().$implicit,i=e.XpG(2);e.AVh("justify-content-center",!i.openSideNav),e.Y8G("routerLink",e.mNQ(null==t?null:t.route)),e.BMQ("aria-label",null==t?null:t.name),e.R7$(),e.Y8G("svgIcon",t.icon),e.R7$(),e.vxM(i.isExpanded?2:-1)}}function se(n,s){if(1&n&&(e.j41(0,"div",13),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2).$implicit;e.R7$(),e.JRh(null==t?null:t.name)}}function ae(n,s){1&n&&e.nrm(0,"mat-icon",15),2&n&&e.Y8G("svgIcon","bxd_collapse-arrow")}function re(n,s){if(1&n){const t=e.RV6();e.j41(0,"div",14),e.bIt("click",function(o){a.eBV(t);const m=e.XpG(),d=m.$implicit,_=m.$index,v=e.XpG(2);return a.Njj(d.subRoutes?v.handleSidenavAccordion(d.subRoutes[0].route,_,!1,o):null)}),e.nrm(1,"mat-icon",12),e.nVh(2,se,2,1,"div",13),e.nVh(3,ae,1,1,"mat-icon",15),e.k0s()}if(2&n){const t=e.XpG().$implicit,i=e.XpG(2);e.AVh("justify-content-center",!i.openSideNav),e.R7$(),e.Y8G("svgIcon",t.icon),e.R7$(),e.vxM(i.isExpanded?2:-1),e.R7$(),e.vxM(t.subRoutes&&i.isExpanded?3:-1)}}function ce(n,s){if(1&n&&(e.j41(0,"div",17),e.EFF(1),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.JRh(null==t?null:t.name)}}function le(n,s){if(1&n){const t=e.RV6();e.j41(0,"a",16),e.bIt("click",function(o){a.eBV(t);const m=e.XpG(3);return a.Njj(m.handleAccordionChild(o))}),e.nVh(1,ce,2,1,"div",17),e.k0s()}if(2&n){const t=s.$implicit,i=e.XpG(3);e.Y8G("routerLink",e.mNQ(null==t?null:t.route)),e.R7$(),e.vxM(i.isExpanded?1:-1)}}function de(n,s){if(1&n&&(e.j41(0,"div",2),e.nVh(1,oe,3,7,"a",7)(2,re,4,5,"div",8),e.j41(3,"div",9),e.Z7z(4,le,2,3,"a",10,e.fX1),e.k0s()()),2&n){const t=s.$implicit;e.R7$(),e.vxM(void 0!==(null==t?null:t.route)?1:2),e.R7$(3),e.Dyx(t.subRoutes)}}function ue(n,s){if(1&n&&(e.j41(0,"div",13),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2).$implicit;e.R7$(),e.JRh(null==t?null:t.name)}}function me(n,s){if(1&n&&(e.j41(0,"a",11),e.nrm(1,"mat-icon",12),e.nVh(2,ue,2,1,"div",13),e.k0s()),2&n){const t=e.XpG().$implicit,i=e.XpG(2);e.AVh("justify-content-center",!i.openSideNav),e.Y8G("routerLink",e.mNQ(null==t?null:t.route)),e.BMQ("aria-label",null==t?null:t.name),e.R7$(),e.Y8G("svgIcon",t.icon),e.R7$(),e.vxM(i.isExpanded?2:-1)}}function pe(n,s){if(1&n&&(e.j41(0,"div",13),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2).$implicit;e.R7$(),e.JRh(null==t?null:t.name)}}function _e(n,s){1&n&&e.nrm(0,"mat-icon",15),2&n&&e.Y8G("svgIcon","bxd_collapse-arrow")}function ve(n,s){if(1&n){const t=e.RV6();e.j41(0,"div",19),e.bIt("click",function(o){a.eBV(t);const m=e.XpG(),d=m.$implicit,_=m.$index,v=e.XpG(2);return a.Njj(d.subRoutes?v.handleSidenavAccordion(d.subRoutes[0].route,_,!1,o):null)}),e.nrm(1,"mat-icon",12),e.nVh(2,pe,2,1,"div",13),e.nVh(3,_e,1,1,"mat-icon",15),e.k0s()}if(2&n){const t=e.XpG().$implicit,i=e.XpG(2);e.AVh("justify-content-center",!i.openSideNav),e.R7$(),e.Y8G("svgIcon",t.icon),e.R7$(),e.vxM(i.isExpanded?2:-1),e.R7$(),e.vxM(t.subRoutes&&i.isExpanded?3:-1)}}function he(n,s){if(1&n&&(e.j41(0,"div",17),e.EFF(1),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.JRh(null==t?null:t.name)}}function fe(n,s){if(1&n){const t=e.RV6();e.j41(0,"a",16),e.bIt("click",function(o){a.eBV(t);const m=e.XpG(3);return a.Njj(m.handleAccordionChild(o))}),e.nVh(1,he,2,1,"div",17),e.k0s()}if(2&n){const t=s.$implicit,i=e.XpG(3);e.Y8G("routerLink",e.mNQ(null==t?null:t.route)),e.R7$(),e.vxM(i.isExpanded?1:-1)}}function xe(n,s){if(1&n&&(e.j41(0,"div",2),e.nVh(1,me,3,7,"a",7)(2,ve,4,5,"div",18),e.j41(3,"div",9),e.Z7z(4,fe,2,3,"a",10,e.fX1),e.k0s()()),2&n){const t=s.$implicit;e.R7$(),e.vxM(void 0!==(null==t?null:t.route)?1:2),e.R7$(3),e.Dyx(t.subRoutes)}}function ge(n,s){1&n&&(e.j41(0,"div",6)(1,"span",20),e.EFF(2,"\xa92024 Boxout, LLC"),e.k0s()())}function Ce(n,s){if(1&n){const t=e.RV6();e.j41(0,"section",0)(1,"div",1),e.Z7z(2,de,6,1,"div",2,e.fX1),e.j41(4,"div",3),e.nrm(5,"hr"),e.k0s(),e.Z7z(6,xe,6,1,"div",2,e.fX1),e.k0s(),e.j41(8,"div",4),e.bIt("click",function(){a.eBV(t);const o=e.XpG();return a.Njj(o.logoutBxdUser())}),e.nrm(9,"mat-icon",5),e.nVh(10,ge,3,0,"div",6),e.k0s()()}if(2&n){const t=e.XpG();e.R7$(2),e.Dyx(t.sideNav),e.R7$(4),e.Dyx(t.sideNavCommon),e.R7$(4),e.vxM(t.isExpanded?10:-1)}}
1function be(n,s){if(1&n&&(e.j41(0,"div",13),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2).$implicit;e.R7$(),e.JRh(null==t?null:t.name)}}function ye(n,s){if(1&n&&(e.j41(0,"a",11),e.nrm(1,"mat-icon",12),e.nVh(2,be,2,1,"div",13),e.k0s()),2&n){const t=e.XpG().$implicit,i=e.XpG(3);e.Y8G("routerLink",e.mNQ(null==t?null:t.route)),e.R7$(),e.Y8G("svgIcon",t.icon),e.R7$(),e.vxM(i.isExpanded?2:-1)}}function Se(n,s){if(1&n&&(e.j41(0,"div",13),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2).$implicit;e.R7$(),e.JRh(null==t?null:t.name)}}function Re(n,s){1&n&&e.nrm(0,"mat-icon",15),2&n&&e.Y8G("svgIcon","bxd_collapse-arrow")}function ke(n,s){if(1&n){const t=e.RV6();e.j41(0,"div",23),e.bIt("click",function(o){a.eBV(t);const m=e.XpG(),d=m.$implicit,_=m.$index,v=e.XpG(3);return a.Njj(d.subRoutes?v.handleSidenavAccordion(d.subRoutes[0].route,_,!1,o):null)}),e.nrm(1,"mat-icon",12),e.nVh(2,Se,2,1,"div",13),e.nVh(3,Re,1,1,"mat-icon",15),e.k0s()}if(2&n){const t=e.XpG().$implicit,i=e.XpG(3);e.R7$(),e.Y8G("svgIcon",t.icon),e.R7$(),e.vxM(i.isExpanded?2:-1),e.R7$(),e.vxM(t.subRoutes?3:-1)}}function Be(n,s){if(1&n&&(e.j41(0,"div",17),e.EFF(1),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.JRh(null==t?null:t.name)}}function we(n,s){if(1&n){const t=e.RV6();e.j41(0,"a",16),e.bIt("click",function(o){a.eBV(t);const m=e.XpG(4);return a.Njj(m.handleAccordionChild(o))}),e.nVh(1,Be,2,1,"div",17),e.k0s()}if(2&n){const t=s.$implicit,i=e.XpG(4);e.Y8G("routerLink",e.mNQ(null==t?null:t.route)),e.R7$(),e.vxM(i.isExpanded?1:-1)}}
1function $e(n,s){if(1&n&&(e.j41(0,"div",2),e.nVh(1,ye,3,4,"a",11)(2,ke,4,3,"div",22),e.j41(3,"div",9),e.Z7z(4,we,2,3,"a",10,e.fX1),e.k0s()()),2&n){const t=s.$implicit;e.R7$(),e.vxM(void 0!==(null==t?null:t.route)?1:2),e.R7$(3),e.Dyx(t.subRoutes)}}function Ie(n,s){if(1&n&&(e.j41(0,"div",13),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2).$implicit;e.R7$(),e.JRh(null==t?null:t.name)}}function Ae(n,s){if(1&n&&(e.j41(0,"a",11),e.nrm(1,"mat-icon",12),e.nVh(2,Ie,2,1,"div",13),e.k0s()),2&n){const t=e.XpG().$implicit,i=e.XpG(3);e.Y8G("routerLink",e.mNQ(null==t?null:t.route)),e.R7$(),e.Y8G("svgIcon",t.icon),e.R7$(),e.vxM(i.isExpanded?2:-1)}}function Fe(n,s){if(1&n&&(e.j41(0,"div",13),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2).$implicit;e.R7$(),e.JRh(null==t?null:t.name)}}function Te(n,s){1&n&&e.nrm(0,"mat-icon",15),2&n&&e.Y8G("svgIcon","bxd_collapse-arrow")}function Ue(n,s){if(1&n){const t=e.RV6();e.j41(0,"div",19),e.bIt("click",function(o){a.eBV(t);const m=e.XpG(),d=m.$implicit,_=m.$index,v=e.XpG(3);return a.Njj(d.subRoutes?v.handleSidenavAccordion(d.subRoutes[0].route,_,!1,o):null)}),e.nrm(1,"mat-icon",12),e.nVh(2,Fe,2,1,"div",13),e.nVh(3,Te,1,1,"mat-icon",15),e.k0s()}if(2&n){const t=e.XpG().$implicit,i=e.XpG(3);e.R7$(),e.Y8G("svgIcon",t.icon),e.R7$(),e.vxM(i.isExpanded?2:-1),e.R7$(),e.vxM(t.subRoutes?3:-1)}}function Le(n,s){if(1&n&&(e.j41(0,"div",17),e.EFF(1),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.JRh(null==t?null:t.name)}}function je(n,s){if(1&n){const t=e.RV6();e.j41(0,"a",16),e.bIt("click",function(o){a.eBV(t);const m=e.XpG(4);return a.Njj(m.handleAccordionChild(o))}),e.nVh(1,Le,2,1,"div",17),e.k0s()}if(2&n){const t=s.$implicit,i=e.XpG(4);e.Y8G("routerLink",e.mNQ(null==t?null:t.route)),e.R7$(),e.vxM(i.isExpanded?1:-1)}}
1function Pe(n,s){if(1&n&&(e.j41(0,"div",2),e.nVh(1,Ae,3,4,"a",11)(2,Ue,4,3,"div",24),e.j41(3,"div",9),e.Z7z(4,je,2,3,"a",10,e.fX1),e.k0s()()),2&n){const t=s.$implicit;e.R7$(),e.vxM(void 0!==(null==t?null:t.route)?1:2),e.R7$(3),e.Dyx(t.subRoutes)}}function Xe(n,s){if(1&n&&(e.j41(0,"div",1),e.Z7z(1,$e,6,1,"div",2,e.fX1),e.j41(3,"div",3),e.nrm(4,"hr"),e.k0s(),e.Z7z(5,Pe,6,1,"div",2,e.fX1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Dyx(t.sideNav),e.R7$(4),e.Dyx(t.sideNavCommon)}}function Ge(n,s){1&n&&(e.j41(0,"div",6)(1,"span",20),e.EFF(2,"\xa92024 Boxout, LLC"),e.k0s()())}function Ne(n,s){if(1&n){const t=e.RV6();e.j41(0,"div",25),e.bIt("click",function(){a.eBV(t);const o=e.XpG(2);return a.Njj(o.logoutBxdUser())}),e.nrm(1,"mat-icon",5),e.nVh(2,Ge,3,0,"div",6),e.k0s()}if(2&n){const t=e.XpG(2);e.R7$(2),e.vxM(t.isExpanded?2:-1)}}function Ee(n,s){if(1&n&&(e.j41(0,"section",0),e.nVh(1,Xe,7,0,"div",1),e.nVh(2,Ne,3,1,"div",21),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.vxM(t.isExpanded?1:-1),e.R7$(),e.vxM(t.isExpanded?2:-1)}}let Me=(()=>{class n{constructor(t,i,o,m,d,_,v,L){this.router=t,this.windowRef=i,this.config=o,this.portalBxdService=m,this.cd=d,this.store=_,this.document=v,this.bxdService=L,this.isExpanded=!0,this.isMobile=!1,this.isLaptop=!1,this.isAccordionOpen=!1,this.commonItem=!1,this.routePath="",this.accordionState={product:!1,inventory:!1,receiving:!1},this.sideNav=[{name:"Home",icon:"sr_home",route:"/"},{name:"Orders",icon:"bxd_orders",subRoutes:[{name:"Order History",route:"/orders"},{name:"Order Line Details",route:"/orderDetails"}]},{name:"Products",icon:"bxd_products",subRoutes:[{name:"Product List",route:"/product-list"},{name:"New Item Setup",route:"/newItemSetup"}]},{name:"Inventory",icon:"bxd_inventory",subRoutes:[{name:"Inventory Status",route:"/inventory"},{name:"Inventory History",route:"/inventoryTransaction"},{name:"Lot-Tracked Inventory",route:"/inventoryLotTracked"},{name:"Quarantined Inventory",route:"/quarantine"},{name:"Manufacturer SKU",route:"/manufacturerSKU"}]},{name:"Receiving",icon:"bxd_receiving",subRoutes:[{name:"All WROs",route:"/wroList"},{name:"Open Receiving Orders",route:"/receiving"},{name:"WRO Receipts",route:"/warehouseReceipts"},{name:"Create WRO",route:"/createWro"}]},{name:"Reports",icon:"bxd_reports",route:"/reports"}],this.sideNavCommon=[{name:"Help",icon:"bxd_help",route:"/help-center"},{name:"Settings",icon:"bxd_settings",route:"/account-configuration"}],this.routePath=this.router.url,this.baseSiteNameVal=this.config?.context?.baseSite[0]}ngOnInit(){this.portalBxdService.valueSource.subscribe(t=>{const i="true"===t;this.openSideNav=i,this.isExpanded=i,this.cd.detectChanges()}),this.portalBxdService.responsiveValueSource.subscribe(t=>{"true"===t?(this.isMobile=!0,this.isLaptop=!1):(this.isMobile=!1,this.isLaptop=!0),this.cd.detectChanges()}),this.bxdService.redirectToInventory.subscribe(t=>{t&&this.handleAccordionOpen(this.routePath)}),this.router.events.pipe((0,ne.p)(t=>t instanceof x.wF)).subscribe(t=>{this.currentRoute=t.urlAfterRedirects,this.updateStyles(this.currentRoute),this.handleAccordionOpen(this.currentRoute)}),this.updateStyles(this.routePath),this.handleAccordionOpen(this.routePath),this.cd.detectChanges()}updateStyles(t){let i="";switch(this.currentRoute||t){case"/":i="Home";break;case"/help":case"/contentpage/help-center":i="Help";break;case"/reports":i="Reports";break;case"/my-account":case"/account-configuration":i="Settings";break;case"/inventoryTransaction":i="Inventory History";break;case"/inventoryLotTracked":i="Lot-Tracked Inventory";break;case"/quarantine":i="Quarantined Inventory";break;case"/manufacturerSKU":i="Manufacturer SKU";break;case"/orders":i="Order History";break;case"/orderDetails":i="Order Line Details";break;case"/inventory":i="Inventory Status";break;case"/product-list":i="Product List";break;case"/newItemSetup":i="New Item Setup";break;case"/receiving":i="Open Receiving Orders";break;case"/contentpage/createNewWro":i="Create WRO";break;case"/warehouseReceipts":i="WRO Receipts";break;case"/wroList":i="All WROs";break;default:i=""}this.document.querySelectorAll(".sidenav-common").forEach(d=>{if(i.trim()===d.textContent?.trim())d.classList.add("active");else if(d.classList.remove("active"),d.classList.contains("is-open")){d.classList.add("sidenav-highlight");let _=d.nextElementSibling.querySelectorAll(".sub-nav");_&&_.forEach(v=>{i.trim()===v.textContent?.trim()?v.classList.add("accordionActive"):v.classList.remove("accordionActive")}
1)}else d.classList.contains("accordion-parent")&&(d.classList.contains("is-open")||d.classList.remove("sidenav-highlight"))}),this.cd.detectChanges()}handleAccordionOpen(t){for(let i=0;i<this.sideNav.length;i++){const o=this.sideNav[i];if(o.subRoutes)for(const m of o.subRoutes)m.route===t&&(this.handleSidenavAccordion(m.route,i),this.updateStyles(m.route))}}handleAccordionChild(t){t.stopPropagation(),t.preventDefault(),this.updateStyles()}handleSidenavAccordion(t,i,o,m){this.updateStyles();const d=Array.from(this.document.querySelectorAll(!0===o?".common-items":".sidenav-accordion"));m?(m.stopPropagation(),d[i]?.classList.toggle("is-open")):d[i]?.classList.add("is-open");let _=d[i]?.nextElementSibling;d[i]?.classList.contains("is-open")?(_.style.maxHeight="",_.style.display="block",d[i]?.classList.add("active"),this.router?.navigateByUrl(t),d[i]?.classList.add("sidenav-highlight")):(_.style.maxHeight=_.scrollHeight+"px",_.style.display="none",d[i]?.classList.remove("is-open"),d[i]?.classList.remove("sidenav-highlight"))}logoutBxdUser(){this.windowRef.localStorage?.setItem("isLogoutClicked","true"),this.windowRef.localStorage?.getItem("bxdLoggedInUserEmail")&&this.router.navigateByUrl("/logout").then(()=>{this.portalBxdService.resetStorage(),this.store.dispatch(f.ri())}).finally(()=>{this.portalBxdService.resetStorage(),this.router.navigate(["/login"])})}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||n)(e.rXU(x.Ix),e.rXU(h.WTn),e.rXU(h.fkq),e.rXU(k.P),e.rXU(c.gRc),e.rXU(P.il),e.rXU(a.qQL),e.rXU(k.P))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-bxd-sidenav"]],inputs:{isMobile:"isMobile",isLaptop:"isLaptop"},standalone:!1,decls:2,vars:2,consts:[[1,"sr-nav","bxd-nav","h-100"],[1,"sr-nav-items","bxd-nav-items","w-100"],[1,"nav-link-section"],[1,"sr-nav-line","bxd-nav-line","px-3","py-4"],[1,"sr-logout-button","cursor-pointer","t-sales-rep-version","d-flex","align-items-center","py-2","px-3","w-100",3,"click"],["svgIcon","sr_logout"],[1,"version-text"],[1,"nav-link","sidenav-link","sidenav-accordion","sidenav-common","side__nav-link","cursor-pointer","t-sales-rep-sidenav","d-flex","align-items-center","py-2","px-3",3,"justify-content-center","routerLink"],[1,"nav-link","sidenav-link","sidenav-accordion","accordion-parent","sidenav-common","side__nav-link","cursor-pointer","t-sales-rep-sidenav","d-flex","align-items-center","py-2","px-3",3,"justify-content-center"],[1,"accordion-content","t-sales-rep-sidenav"],[1,"nav-link","sidenav-link","side__nav-link","accordion-item","cursor-pointer","t-sales-rep-sidenav","d-flex","align-items-center","justify-content-end","py-2","px-3",3,"routerLink"],[1,"nav-link","sidenav-link","sidenav-accordion","sidenav-common","side__nav-link","cursor-pointer","t-sales-rep-sidenav","d-flex","align-items-center","py-2","px-3",3,"routerLink"],[3,"svgIcon"],[1,"nav-name"],[1,"nav-link","sidenav-link","sidenav-accordion","accordion-parent","sidenav-common","side__nav-link","cursor-pointer","t-sales-rep-sidenav","d-flex","align-items-center","py-2","px-3",3,"click"],[1,"expand-icon",3,"svgIcon"],[1,"nav-link","sidenav-link","side__nav-link","accordion-item","cursor-pointer","t-sales-rep-sidenav","d-flex","align-items-center","justify-content-end","py-2","px-3",3,"click","routerLink"],[1,"nav-name","sub-nav","d-flex","justify-content-right","align-items-center","text-right"],[1,"nav-link","sidenav-link","sidenav-accordion","sidenav-common","accordion-parent","common-items","side__nav-link","cursor-pointer","t-sales-rep-sidenav","d-flex","align-items-center","py-2","px-3",3,"justify-content-center"],[1,"nav-link","sidenav-link","sidenav-accordion","sidenav-common","accordion-parent","common-items","side__nav-link","cursor-pointer","t-sales-rep-sidenav","d-flex","align-items-center","py-2","px-3",3,"click"],[1,"t-sales-rep-sidenav-footer"],[1,"sr-logout-button","w-100","cursor-pointer","t-sales-rep-version","d-flex","align-items-center","py-2","px-3","w-100"],[1,"nav-link","sidenav-link","sidenav-accordion","sidenav-common","accordion-parent","side__nav-link","cursor-pointer","t-sales-rep-sidenav","d-flex","align-items-center","py-2","px-3"],[1,"nav-link","sidenav-link","sidenav-accordion","sidenav-common","accordion-parent","side__nav-link","cursor-pointer","t-sales-rep-sidenav","d-flex","align-items-center","py-2","px-3",3,"click"],[1,"nav-link","sidenav-link","sidenav-accordion","sidenav-common","accordion-parent","common-items","side__nav-link","cursor-pointer","t-sales-rep-sidenav","d-flex","align-items-center","py-2","px-3"],[1,"sr-logout-button","w-100","cursor-pointer","t-sales-rep-version","d-flex","align-items-center","py-2","px-3","w-100",3,"click"]],template:function(i,o){1&i&&(e.nVh(0,Ce,11,1,"section",0),e.nVh(1,Ee,3,2,"section",0)),2&i&&(e.vxM(o.isLaptop?0:-1),e.R7$(),e.vxM(o.isMobile?1:-1))},dependencies:[S.Wk,X.An],encapsulation:2})}}return n})();function Ve(n,s){1&n&&(e.j41(0,"div",7),e.nrm(1,"router-outlet"),e.k0s())}function Oe(n,s){1&n&&(e.j41(0,"div",7),e.nrm(1,"cx-page-slot",8),e.k0s())}
1function De(n,s){if(1&n&&e.nrm(0,"app-breadcrumb",9),2&n){const t=e.XpG(2);e.Y8G("breadcrumbMapping",t.breadcrumb)}}function He(n,s){if(1&n&&(e.j41(0,"div",7),e.nVh(1,De,1,1,"app-breadcrumb",9),e.nrm(2,"cx-page-slot",10)(3,"cx-page-slot",11)(4,"cx-page-slot",12)(5,"cx-page-slot",13)(6,"cx-page-slot",14)(7,"cx-page-slot",15)(8,"cx-page-slot",16),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.vxM(t.isHome?1:-1)}}let We=(()=>{class n{constructor(t,i,o,m,d,_,v){this.breakpointObserver=t,this.router=i,this.windowRef=o,this.cmsService=m,this.portalBxdService=d,this.utilService=_,this.document=v,this.isExpanded=!0,this.isMobile=!0,this.isLaptop=!1,this.isBrowser=!0,this.openSideNav=!0,this.adjustSide=!0,this.isErrorPage=!1,this.isContentPage=!1,this.isHome=!1,this.router.url.includes("/cx-preview")&&(this.isBrowser=!1)}ngOnInit(){this.breakpointObserver.observe(["(max-width:992px)"]).subscribe(t=>{t.breakpoints["(max-width:992px)"]?(this.openSideNav=!1,this.isMobile=!0,this.isLaptop=!1,this.document?.querySelector(".mat-drawer-content")?.classList?.remove("mat-drawer-content-desktop"),this.document?.querySelector(".mat-drawer-content")?.classList?.remove("mat-drawer-content-mobile"),this.windowRef?.sessionStorage?.setItem("openSideNav",this.openSideNav.toString()),this.windowRef?.sessionStorage?.setItem("responsiveNess",this.isMobile.toString())):(this.openSideNav=!0,this.isMobile=!1,this.isLaptop=!0,this.document?.querySelector(".mat-drawer-content")?.classList?.add("mat-drawer-content-desktop"),this.windowRef?.sessionStorage?.setItem("openSideNav",this.openSideNav.toString()),this.windowRef?.sessionStorage?.setItem("responsiveNess",this.isMobile.toString()));const i=this.windowRef?.sessionStorage?.getItem("responsiveNess");this.portalBxdService.changeResponsiveness(i);const o=this.windowRef?.sessionStorage?.getItem("openSideNav");this.portalBxdService.changeValue(o)}),this.cmsService.getCurrentPage().subscribe(t=>{t&&(this.isErrorPage="errorDetailsPage"===t.pageId,"BoxoutPortalLandingPage2Template"===t.template?(this.isContentPage=!0,this.utilService.setMeta({heading:(t?.title?t?.title+" | ":"")+this.utilService.checkBaseSite(),title:(t?.title?t?.title+" | ":"")+this.utilService.checkBaseSite()})):this.isContentPage=!1,t.label?.toLowerCase()?.includes("bxdhomepage")?(this.isContentPage=!0,this.isHome=!0,this.breadcrumb=C.B.home):this.isHome=!1)})}static{this.\u0275fac=function(i){return new(i||n)(e.rXU(R.Q),e.rXU(x.Ix),e.rXU(h.WTn),e.rXU(h.xYq),e.rXU(k.P),e.rXU(g.a),e.rXU(a.qQL))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-portal-bxd-drawer"]],standalone:!1,decls:10,vars:7,consts:[[1,"sr-home"],[1,"sr-home-layout","h-auto"],[1,"sr-home-layout-header","h-auto"],[1,"sr-home-content"],["autosize","",1,"example-container"],[1,"sr-home-layout-sidenav","h-100",3,"opened","mode"],[3,"isMobile","isLaptop"],[1,"sr-home-layout-content","p-3"],["position","BodyContent"],[3,"breadcrumbMapping"],["position","Section1"],["position","Section2A"],["position","Section2B"],["position","Section2C"],["position","Section3"],["position","Section4"],["position","Section5"]],template:function(i,o){1&i&&(e.j41(0,"div",0)(1,"section",1),e.nrm(2,"app-bxd-header",2),e.k0s(),e.j41(3,"section",3)(4,"mat-drawer-container",4)(5,"mat-drawer",5),e.nrm(6,"app-bxd-sidenav",6),e.k0s(),e.nVh(7,Ve,2,0,"div",7),e.nVh(8,Oe,2,0,"div",7),e.nVh(9,He,9,1,"div",7),e.k0s()()()),2&i&&(e.R7$(5),e.Y8G("opened",o.isExpanded)("mode",o.isMobile?"over":"side"),e.R7$(),e.Y8G("isMobile",o.isMobile)("isLaptop",o.isLaptop),e.R7$(),e.vxM(o.isErrorPage||o.isContentPage?-1:7),e.R7$(),e.vxM(o.isErrorPage?8:-1),e.R7$(),e.vxM(o.isContentPage?9:-1))},dependencies:[x.n3,b.qe,b.$C,B.ZW9,A.D,te,Me],encapsulation:2})}}return n})()},95111(I,y,r){r.d(y,{P:()=>x});var a=r(84412),C=r(85802),e=r(86568),R=r(2490);let x=(()=>{class h{constructor(g,b){this.windowRef=g,this.cookieService=b,this.valueSource=new a.t(null),this.responsiveValueSource=new a.t(null),this.emitReusbaleFilter=new a.t(null),this.bxdDynamicColumn=new a.t(null),this.redirectToInventory=new a.t(null)}changeValue(g){this.valueSource.next(g)}changeResponsiveness(g){this.responsiveValueSource.next(g)}resetStorage(){this.windowRef.localStorage?.removeItem("bxdLoggedInUserEmail"),this.windowRef.localStorage?.removeItem("b2bUnit"),this.windowRef.localStorage?.removeItem("isLoggedIn"),this.windowRef.localStorage?.removeItem("loggedInFrom"),this.windowRef.sessionStorage?.removeItem("cartId"),this.windowRef.sessionStorage?.removeItem("viewBy"),this.windowRef.localStorage?.removeItem("multipleB2bUnitFlag"),this.windowRef.localStorage?.removeItem("goToUrl"),this.cookieService.delete("ACCESS_TOKEN")}static{this.\u0275fac=function(b){return new(b||h)(C.KVO(e.WTn),C.KVO(R.O))}}static{this.\u0275prov=C.jDH({token:h,factory:h.\u0275fac,providedIn:"root"})}}return h})()},8173(I,y,r){r.d(y,{D:()=>T});var a=r(50075),C=r(70268),e=r(35547),R=r(86568),x=r(93049);function h(p,f){if(1&p&&(e.j41(0,"a",2),e.EFF(1),e.k0s()),2&p){const u=e.XpG().$implicit;e.R7$(),e.JRh(u.label)}}
1function k(p,f){if(1&p&&(e.j41(0,"a",3),e.EFF(1),e.k0s()),2&p){const u=e.XpG(),l=u.$implicit,c=u.$index,S=u.$count,U=e.XpG();e.Y8G("routerLink",U.buildRoutingArray(l,c===S-1)),e.R7$(),e.JRh(null==l?null:l.label)}}function g(p,f){if(1&p&&(e.j41(0,"span",1),e.EFF(1),e.k0s()),2&p){const u=e.XpG().$implicit;e.R7$(),e.JRh(null==u?null:u.label)}}function b(p,f){if(1&p&&(e.j41(0,"span",4),e.EFF(1),e.k0s()),2&p){const u=e.XpG().$implicit,l=e.XpG();e.Y8G("routerLink",l.buildRoutingArray(u,!1)),e.R7$(),e.JRh(null==u?null:u.label)}}function B(p,f){1&p&&(e.j41(0,"span",5),e.EFF(1," |"),e.k0s())}function A(p,f){1&p&&(e.j41(0,"span",5),e.EFF(1," |"),e.k0s())}function F(p,f){if(1&p&&(e.nVh(0,h,2,1,"a",2),e.nVh(1,k,2,2,"a",3),e.nVh(2,g,2,1,"span",1),e.nVh(3,b,2,2,"span",4),e.nVh(4,B,2,0,"span",5),e.nVh(5,A,2,0,"span",5)),2&p){const u=f.$index,l=f.$count,c=e.XpG();e.vxM(0===u?0:-1),e.R7$(),e.vxM(0!==u&&u!==l-1?1:-1),e.R7$(),e.vxM(c.dynamicParam||u!==l-1?-1:2),e.R7$(),e.vxM(c.dynamicParam&&u===l-1&&!c.page?3:-1),e.R7$(),e.vxM(u!==l-1?4:-1),e.R7$(),e.vxM(u===l-1&&c.dynamicParam&&!c.page?5:-1)}}function w(p,f){if(1&p&&(e.j41(0,"span",1),e.EFF(1),e.k0s()),2&p){const u=e.XpG();e.R7$(),e.JRh(u.dynamicParam)}}let T=(()=>{class p{constructor(u){this.config=u,this.breadcrumbs=[],this.translations=C.S.account.breadCrumb}ngOnInit(){this.baseSiteName=this.config?.context?.baseSite,this.checkBaseSite(),"PDP"===this.page?this.createPDPBreadCrumb():this.createBreadCrumb()}checkBaseSite(){switch(this.baseSiteName[0]){case"mmsite":this.baseSiteName=this.translations.mmsite;break;case"ptsite":this.baseSiteName=this.translations.ptsite;break;case"spasite":this.baseSiteName=this.translations.spasite;break;case"fwsite":this.baseSiteName=this.translations.fwsite;break;case"omsite":this.baseSiteName=this.translations.omsite;break;case"musite":this.baseSiteName=this.translations.musite;break;case"chsite":this.baseSiteName=this.translations.chsite;break;case"mesite":this.baseSiteName=this.translations.mesite;break;default:this.baseSiteName=this.translations.boxout}}createPDPBreadCrumb(){if(this.breadcrumbs.push({label:this.baseSiteName.charAt(0).toUpperCase()+this.baseSiteName.slice(1),url:"homepage"}),this.breadcrumbMapping&&this.breadcrumbMapping.length){for(let u of this.breadcrumbMapping)this.breadcrumbs.push({label:u.name,url:"/"+u?.url});this.dynamicParam&&this.breadcrumbs.push({label:this.dynamicParam,url:""})}}createBreadCrumb(){this.breadcrumbs.push({label:this.baseSiteName.charAt(0).toUpperCase()+this.baseSiteName.slice(1),url:"homepage"});let l,u=this.breadcrumbMapping.split(",");for(let c of u){if(c===this.translations.advancedeBill)l={label:this.translations.advancedEbill,url:a.U[c]};else if(c===this.translations.advancedeBillReport)l={label:this.translations.advancedEbillReport,url:a.U[c]};else if(c===this.translations.userIdAndPreferences)l={label:this.translations.userIdPreferences,url:a.U[c]};else if(c===this.translations.signInAndSecurity)l={label:this.translations.signInSecurity,url:a.U[c]};else if(c===this.translations.ordersRequiringApproval)l={label:this.translations.ordersRequiringApprovalLabel,url:a.U[c]+`/${this.dynamicRouteParam}/${this.workflowActionCode}`};else if(c===this.translations.orderDetail)l={label:this.translations.orderDetailLabel,url:a.U[c]+`/${this.dynamicRouteParam}`};else if(c===this.translations.orders||c===this.translations.order||c===this.translations.tranHist)l={label:c,url:a.U[this.translations.orders]};else if(c===this.translations.products||c===this.translations.product)l={label:c,url:a.U[this.translations.products]};else if(c===this.translations.inventory)l={label:this.translations.inventory,url:a.U[c]};else if(c===this.translations.receiving)l={label:this.translations.receiving,url:a.U[c]};else if(c===this.translations.user||c===this.translations.settings)l={label:c,url:a.U[this.translations.user]};else if(c===this.translations.reports)l={label:this.translations.reports,url:a.U[c]};else if(c===this.translations.manufacturerSKU)l={label:this.translations.manufacturerSKU,url:a.U[c]};else{const S=c.replace(/([A-Z])/g," $1");l={label:S.charAt(0).toUpperCase()+S.slice(1),url:a.U[c]}}this.breadcrumbs.push(l)}}buildRoutingArray(u,l){if(!l)return"/"+u?.url}static{this.\u0275fac=function(l){return new(l||p)(e.rXU(R.fkq))}}static{this.\u0275cmp=e.VBU({type:p,selectors:[["app-breadcrumb"]],inputs:{breadcrumbMapping:"breadcrumbMapping",dynamicParam:"dynamicParam",dynamicRouteParam:"dynamicRouteParam",workflowActionCode:"workflowActionCode",page:"page"},standalone:!1,decls:4,vars:1,consts:[[1,"mb-3","ml-2","ml-sm-0","ml-md-0","ml-lg-0","ml-xl-0","pt-3","breadcrumb-container","d-block","d-lg-flex"],[1,"ml-1","t-title-s","order-opacity"],["routerLink","/",1,"mr-1","t-title-s","base-site","cursor-pointer","d-inline"],[1,"mx-1","t-title-s","cursor-pointer","d-inline",3,"routerLink"],[1,"ml-1","t-title-s","cursor-pointer",3,"routerLink"],[1,"icon"]],template:function(l,c){1&l&&(e.j41(0,"div",0),e.Z7z(1,F,6,6,null,null,e.fX1),e.nVh(3,w,2,1,"span",1),e.k0s()),2&l&&(e.R7$(),e.Dyx(c.breadcrumbs),e.R7$(2),e.vxM(c.dynamicParam?3:-1))},dependencies:[x.Wk],encapsulation:2})}}return p})()}}]);
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.