1"use strict";(self.webpackChunkaccount_settings=self.webpackChunkaccount_settings||[]).push([[2988],{20673:(J,A,_)=>{_.d(A,{Z:()=>S});var c=_(19212);let S=(()=>{class e{transform(f){return Object.keys(f).map(v=>(f[v].key=v,f[v]))}static{this.\u0275fac=function(v){return new(v||e)}}static{this.\u0275pipe=c.Yjl({name:"objNgFor",type:e,pure:!0})}}return e})()},1940:(J,A,_)=>{_.d(A,{b:()=>Z});var c=_(19212),S=_(39346),e=_(8447),H=_(96814),f=_(40285);const v=["searchInput"];function C(u,T){if(1&u&&(c.TgZ(0,"button",12),c._UZ(1,"span"),c.qZA()),2&u){const g=c.oxw();c.xp6(),c.Tol(null==g.searchConfig?null:g.searchConfig.inline_clear_btn_class)}}function b(u,T){if(1&u&&(c.TgZ(0,"button",13),c._UZ(1,"span"),c.qZA()),2&u){const g=c.oxw();c.xp6(),c.Tol(null==g.searchConfig?null:g.searchConfig.search_bar_toggle_class)}}function l(u,T){1&u&&c._UZ(0,"button",14)}function m(u,T){if(1&u&&(c.ynx(0),c.TgZ(1,"a",17),c._uU(2),c.qZA(),c._uU(3),c.BQk()),2&u){const g=T.$implicit,h=T.index,p=c.oxw(2);c.xp6(),c.Q6J("href",p.searchPageUrl+g,c.LSH),c.xp6(),c.Oqu(g),c.xp6(),c.hij("",p.getPopularTermsDelimiter(h)," ")}}function w(u,T){if(1&u&&(c.TgZ(0,"div")(1,"div",15),c._uU(2," Looking for "),c.YNc(3,m,4,3,"ng-container",16),c.qZA()()),2&u){const g=c.oxw();c.Gre("comp-popular-search-terms-container ",g.searchTermsPlaceholderClass,""),c.xp6(3),c.Q6J("ngForOf",g.popularSearchTerms)}}let Z=(()=>{class u{constructor(g,h){if(this.ConfigManagerService=g,this.LocalStorageService=h,this.query="",this.hasPopularSearchTerms=!1,this.popularSearchTerms=[],this.searchPageUrl="",this.searchTermsPlaceholderClass="search-terms-placeholder",this.onEmitSearch=new c.vpe,this.searchConfig=this.ConfigManagerService.getConfig("search_bar"),this.appConfig=this.ConfigManagerService.getConfig("app"),this.searchConfig.popular_search_terms&&(this.popularSearchTermsConfig=this.searchConfig.popular_search_terms,this.hasPopularSearchTerms=!0,this.popularSearchTerms=this.popularSearchTermsConfig.default_search_terms.slice(0,3),this.searchTermsPlaceholderClass=this.popularSearchTermsConfig.placeholder_class_name,this.searchPageUrl=this.appConfig.site_url+"/search/",this.LocalStorageService.getItem(this.popularSearchTermsConfig.cache_key))){const p=JSON.parse(this.LocalStorageService.getItem(this.popularSearchTermsConfig.cache_key)),x=JSON.parse(p.popularSearchTerms),L=[];for(const y of x)y.query&&L.push(y.query);L.length>0&&(this.popularSearchTerms=L)}}redirect(){!window.searchClientLoaded&&this.query?window.location.href=this.appConfig.site_url+"/search/"+this.query:(this.initSearchClient(),this.searchInput.nativeElement.focus())}initSearchClient(){this.onEmitSearch.emit(!0)}getPopularTermsDelimiter(g){const h=this.popularSearchTerms.length-1,p=h-1;return g<p?",":g===p?" or":g===h?"?":""}static{this.\u0275fac=function(h){return new(h||u)(c.Y36(S.Q),c.Y36(e.n))}}static{this.\u0275cmp=c.Xpm({type:u,selectors:[["standard-searchbar"]],viewQuery:function(h,p){if(1&h&&c.Gf(v,5),2&h){let x;c.iGM(x=c.CRH())&&(p.searchInput=x.first)}},outputs:{onEmitSearch:"onEmitSearch"},decls:14,vars:12,consts:[["role","search",1,"comp-search-lookahead-container"],[1,"comp-search-bar-container"],["type","text","maxlength","200","autocomplete","off",1,"search-bar-input",3,"ngModel","placeholder","keyup.enter","click","ngModelChange"],["searchInput",""],["class","search-bar-clear-btn","aria-label","Clear","role","button",4,"ngIf"],["aria-label","Search","role","button",1,"search-bar-btn",3,"click"],["class","search-bar-toggle","aria-label","Search","role","button",4,"ngIf"],[1,"search-bar-loader"],["class","search-bar-clear-btn",4,"ngIf"],[1,"comp-search-lookahead-results-container"],[3,"class",4,"ngIf"],[1,"search-backdrop"],["aria-label","Clear","role","button",1,"search-bar-clear-btn"],["aria-label","Search","role","button",1,"search-bar-toggle"],[1,"search-bar-clear-btn"],[1,"search-term-group"],[4,"ngFor","ngForOf"],[1,"popular-search-term",3,"href"]],template:function(h,p){1&h&&(c.TgZ(0,"div",0)(1,"div",1)(2,"input",2,3),c.NdJ("keyup.enter",function(){return p.redirect()})("click",function(){return p.initSearchClient()})("ngModelChange",function(L){return p.query=L}),c.qZA(),c.YNc(4,C,2,3,"button",4),c.TgZ(5,"button",5),c.NdJ("click",function(){return p.redirect()}),c._UZ(6,"span"),c.qZA(),c.YNc(7,b,2,3,"button",6),c.TgZ(8,"div",7),c._UZ(9,"span"),c.qZA(),c.YNc(10,l,1,0,"button",8),c.qZA(),c._UZ(11,"div",9),c.YNc(12,w,4,4,"div",10),c._UZ(13,"div",11),c.qZA()),2&h&&(c.xp6(2),c.s9C("placeholder",null==p.searchConfig?null:p.searchConfig.placeholder),c.Q6J("ngModel",p.query),c.xp6(2),c.Q6J("ngIf",(null==p.searchConfig?null:p.searchConfig.clear_btn)&&
1(null==p.searchConfig?null:p.searchConfig.inline_clear_btn)),c.xp6(2),c.Tol(null==p.searchConfig?null:p.searchConfig.search_icon_class),c.xp6(),c.Q6J("ngIf",null==p.searchConfig?null:p.searchConfig.has_toggle),c.xp6(2),c.Tol(null==p.searchConfig?null:p.searchConfig.search_loader_class),c.xp6(),c.Q6J("ngIf",(null==p.searchConfig?null:p.searchConfig.clear_btn)&&(null==p.searchConfig?null:p.searchConfig.inline_clear_btn)),c.xp6(2),c.Q6J("ngIf",p.hasPopularSearchTerms))},dependencies:[H.sg,H.O5,f.Fj,f.JJ,f.nD,f.On],encapsulation:2})}}return u})()},96693:(J,A,_)=>{_.d(A,{l:()=>v});var c=_(15861),e=_(19212),H=_(39346),f=_(69862);let v=(()=>{class C{constructor(l,m){this.ConfigManagerService=l,this.http=m,this.isLoaded={},this.searchConfigs=this.ConfigManagerService.getConfig("search_client"),this.appConfig=this.ConfigManagerService.getConfig("app"),this.searchConfig=this.ConfigManagerService.getConfig("search")}loadSearchFeature(l,m=null){if(!this.searchConfigs.loaders[l])throw new TypeError("No loader set up for this config.");if(this.isLoaded[l]&&this.isLoaded[l].loaded)return new Promise(u=>{u(!0)});if(this.isLoaded[l]&&this.isLoaded[l].loading)return this.isLoaded[l].callback;const w=typeof searchClientVersion<"u"?`?v=${searchClientVersion}`:m?`?v=${m}`:"",Z=new Promise((u,T)=>{const g=document.createElement("script");g.type="text/javascript",g.src=this.searchConfigs.url+this.searchConfigs.loaders[l]+w,g.readyState?g.onreadystatechange=()=>{("loaded"===g.readyState||"complete"===g.readyState)&&(this.isLoaded[l].loading=!1,this.isLoaded[l]=!0,u(!0))}:g.onload=()=>{this.isLoaded[l].loading=!1,this.isLoaded[l]=!1,u(!0)},document.getElementsByTagName("head")[0].appendChild(g)});return this.isLoaded[l]={loading:!0,loaded:!1,callback:Z},Z}getSearchClientVersion(l){return this.http.get(l+"/search_client_version.txt",{responseType:"text"})}initSearch(l,m){var w=this;return(0,c.Z)(function*(){const Z=yield function S(C){return new Promise((b,l)=>{C.subscribe({next(m){b(m)},error(m){l(m)}})})}(w.getSearchClientVersion(w.appConfig.site_url));yield w.loadSearchFeature("lookahead",Z),l&&new SearchClient.SearchLookahead(w.appConfig.website_code).init(l.nativeElement,!0,{type:"breakpoint",minWidth:w.searchConfig.search_min_width_init_breakpoint??992}),m&&new SearchClient.SearchLookahead(w.appConfig.website_code).init(m.nativeElement,!0,{type:"breakpoint",maxWidth:w.searchConfig.search_max_width_init_breakpoint??991})})()}static{this.\u0275fac=function(m){return new(m||C)(e.LFG(H.Q),e.LFG(f.eN))}}static{this.\u0275prov=e.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"})}}return C})()},92988:(J,A,_)=>{_.r(A),_.d(A,{AppHeaderComponent:()=>mn});var c=_(15861),S=_(3609),e=_(19212),H=_(8154),f=_(98715),v=_(98152);let C=(()=>{class t{constructor(){this.menuNavVisibilitySubject=new v.xQ,this.menuNavVisibility$=this.menuNavVisibilitySubject.asObservable(),this.logOutSubject=new v.xQ,this.onLogOut$=this.logOutSubject.asObservable(),this.openLoginModalSubject=new v.xQ,this.onOpenLoginModal$=this.openLoginModalSubject.asObservable()}emitMenuNavVisibility(n){this.menuNavVisibilitySubject.next(n)}logout(){this.logOutSubject.next(null)}openLoginModal(){this.openLoginModalSubject.next(null)}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var b=_(39346),l=_(96814);function m(t,r){if(1&t){const n=e.EpF();e.TgZ(0,"a",9),e.NdJ("click",function(){e.CHM(n);const o=e.oxw();return e.KtG(o.toggleAccountDropdown())}),e.TgZ(1,"div",10),e._uU(2),e.qZA(),e.TgZ(3,"div",11),e._uU(4," Your Account "),e._UZ(5,"span",12),e.qZA()()}if(2&t){const n=e.oxw();e.xp6(2),e.hij(" Hi, ",null==n.customerInfo?null:n.customerInfo.first_name,"! ")}}const w=(t,r)=>({open:t,shown:r}),Z=t=>({shown:t});let u=(()=>{class t{constructor(n,a,o,i,s){this.eRef=n,this.LoginRegisterModalService=a,this.LogoutHandlerService=o,this.CustomerEventsService=i,this.ConfigManagerService=s,this.showAccountDropdown=!1,this.customerConfig=this.ConfigManagerService.getConfig("customer")}toggleAccountDropdown(){this.showAccountDropdown=!this.showAccountDropdown,this.CustomerEventsService.emitMenuNavVisibility(this.showAccountDropdown),event.stopPropagation()}logout(){this.isLoggedIn=!1,this.LogoutHandlerService.logout().subscribe()}openLoginRegister(){!0===this.customerConfig?.redirect_to_login_page?window.location.href=`${this.customerConfig.login_page_url}?url=${window.location.href}`:this.LoginRegisterModalService.openModal({customClass:"site-modal",redirect_url:window.location.href})}onFocusHideDropdown(n){!document.querySelector(".account-info-container").contains(n.relatedTarget)&&document.querySelector(".account-info-container").classList.contains("open")&&this.toggleAccountDropdown()}static{this.\u0275fac=function(a){return new(a||t)(e.Y36(e.SBq),e.Y36(H.h),e.Y36(f.d),e.Y36(C),e.Y36(b.Q))}}static{this.\u0275cmp=e.Xpm({type:t,selectors:[["customer-section"]],inputs:{customerInfo:"customerInfo",isLoggedIn:"isLoggedIn",appConfig:"appConfig",routes:"routes"},decls:26,vars:13,consts:[[1,"account-info-container",3,"ngClass","focusout"],[1,"user-icon","pp-account"],["href","javascript:void(0);","class","account-dropdown-toggle",3,"click",4,"ngIf"],[1,"dropdown-menu","account-dropdown-menu"],[1,"account-dropdown-list-item"],[3,"href"],["href","javascript:void(0);",3,"click"],[1,"login-link-container",3,"ngClass"],["href","javascript:void(0);",1,"login-link",3,"click"],["href","javascript:void(0);",1,"account-dropdown-toggle",3,"click"],[1,"customer-salutation"],["role","navigation","aria-label","Expand Your Account",1,"account-label"],[1,"account-caret-down","hidden-xs","hidden-sm"]],template:function(a,o){1&a&&(e.TgZ(0,"div",0),e.NdJ("focusout",function(s){return o.onFocusHideDropdown(s)}),e._UZ(1,"span",1),e.YNc(2,m,6,1,"a",2),e.TgZ(3,"ul",3)(4,"li",4)(5,"a",5),e._uU(6," Order Status "),e.qZA()(),e.TgZ(7,"li",4)(8,"a",5),e._uU(9," Quotes "),e.qZA()(),e.TgZ(10,"li",4)(11,"a",5),e._uU(12," Saved Designs "),e.qZA()(),e.TgZ(13,"li",4)(14,"a",5),e._uU(15," Mailing Lists "),e.qZA()(),e.TgZ(16,"li",4)(17,"a",5),e._uU(18," Settings "),e.qZA()(),e.TgZ(19,"li",4)(20,"a",6),e.NdJ("click",function(){return o.logout()}),e._uU(21," Log Out "),e.qZA()()()(),e.TgZ(22,"div",7),e._UZ(23,"span",1),e.TgZ(24,"a",8),e.NdJ("click",function(){return o.openLoginRegister()}),e._uU(25,"Sign Up | Log In"),e.qZA()()),2&a&&(e.Q6J("ngClass",e.WLB(8,w,o.showAccountDropdown,o.isLoggedIn)),e.xp6(2),e.Q6J("ngIf",o.isLoggedIn),e.xp6(3),e.MGl("href","",o.appConfig.account_orders_client,"/order",e.LSH),e.xp6(3),e.MGl("href","",o.appConfig.account_quotes_client,"/quotes",e.LSH),e.xp6(3),e.MGl("href","",o.appConfig.account_designs_client,"/my-saved-designs",e.LSH),e.xp6(3),e.MGl("href","",o.appConfig.account_mailing_client,"/mailing-list",e.LSH),e.xp6(3),e.MGl("href","",o.appConfig.account_settings_client,"/contact-information",e.LSH),e.xp6(
15),e.Q6J("ngClass",e.VKq(11,Z,!o.isLoggedIn)))},dependencies:[l.mk,l.O5],encapsulation:2})}}return t})();var T=_(69745),g=_(72786),h=_(6593),p=_(9359),x=_(20673);function L(t,r){if(1&t&&e._UZ(0,"img",9),2&t){const n=e.oxw().$implicit;e.s9C("alt",n.catalog_name),e.uIk("data-src",n.catalog_image)}}const y=t=>({active:t});function E(t,r){if(1&t){const n=e.EpF();e.TgZ(0,"div",4),e.NdJ("mouseenter",function(){const o=e.CHM(n),i=o.index,s=o.$implicit,d=e.oxw();return e.KtG(d.showNestedNavItem(i,d.navItem.catalog_item_id,s.catalog_item_id))}),e.ALo(1,"json"),e.TgZ(2,"a",5),e.NdJ("click",function(o){const s=e.CHM(n).$implicit,d=e.oxw();return e.KtG(d.redirect(s.url,s.new_window_flag,o))}),e.YNc(3,L,1,2,"img",6),e._UZ(4,"span",7),e.qZA(),e.TgZ(5,"button",8),e.NdJ("click",function(o){const i=e.CHM(n),s=i.index,d=i.$implicit,I=e.oxw();return e.KtG(I.expandNestedNav(s,I.navItem.catalog_item_id,o,d.catalog_item_id))}),e._uU(6),e.qZA()()}if(2&t){const n=r.$implicit,a=r.first,o=r.index,i=e.oxw();e.Q6J("ngClass",e.VKq(13,y,a))("hidden","{}"==e.lcZ(1,11,n.link_groups)),e.uIk("data-id",o)("data-nav-title",n.catalog_name)("data-parent-title",i.navItem.catalog_name),e.xp6(2),e.Q6J("href",n.url?-1==n.url.indexOf("http")?i.appConfig.site_url+n.url:n.url:"#",e.LSH),e.uIk("rel",n.rel_attribute?n.rel_attribute:"")("target","y"==n.new_window_flag?"_blank":""),e.xp6(),e.Q6J("ngIf",n.catalog_image),e.xp6(),e.Q6J("innerHTML",n.catalog_name,e.oJD),e.xp6(2),e.hij(" Expand: ",n.catalog_name," ")}}const D=t=>({"link-with-icon":t});function U(t,r){if(1&t){const n=e.EpF();e.TgZ(0,"a",19),e.NdJ("click",function(o){e.CHM(n);const i=e.oxw().$implicit,s=e.oxw(5);return e.KtG(s.redirect(i.url,i.new_window_flag,o))}),e.qZA()}if(2&t){const n=e.oxw().$implicit,a=e.oxw(5);e.Tol(n.custom_styles?n.custom_styles:""),e.Q6J("href",n.url?-1==n.url.indexOf("http")?a.appConfig.site_url+n.url:n.url:"#",e.LSH)("ngClass",e.VKq(8,D,n.custom_styles))("innerHTML",n.catalog_name,e.oJD),e.uIk("rel",n.rel_attribute?n.rel_attribute:"")("target","y"==n.new_window_flag?"_blank":"")}}function G(t,r){if(1&t&&e._UZ(0,"h3",20),2&t){const n=e.oxw().$implicit;e.Q6J("innerHTML",n.catalog_name,e.oJD)}}function B(t,r){if(1&t){const n=e.EpF();e.TgZ(0,"a",21),e.NdJ("click",function(o){e.CHM(n);const i=e.oxw().$implicit,s=e.oxw(5);return e.KtG(s.redirect(i.url,i.new_window_flag,o))}),e.qZA()}if(2&t){const n=e.oxw().$implicit;e.Tol(n.custom_styles?n.custom_styles:""),e.Q6J("ngClass",e.VKq(7,D,n.custom_styles))("innerHTML",n.catalog_name,e.oJD),e.uIk("rel",n.rel_attribute?n.rel_attribute:"")("target","y"==n.new_window_flag?"_blank":"")}}function Y(t,r){if(1&t&&(e.TgZ(0,"div",15),e.YNc(1,U,1,10,"a",16)(2,G,1,1,"h3",17)(3,B,1,9,"a",18),e.qZA()),2&t){const n=r.$implicit,a=e.oxw(3).$implicit;e.uIk("data-nav-title",n.catalog_name)("data-parent-title",a.catalog_name),e.xp6(),e.Q6J("ngIf",n.url),e.xp6(),e.Q6J("ngIf",n.custom_styles&&n.custom_styles.indexOf("column-label")>=0),e.xp6(),e.Q6J("ngIf",!n.url&&n.custom_styles&&n.custom_styles.indexOf("column-label")<0)}}function V(t,r){if(1&t&&(e.ynx(0),e.TgZ(1,"div",13),e.YNc(2,Y,4,5,"div",14),e.ALo(3,"objNgFor"),e.qZA(),e.BQk()),2&t){const n=e.oxw().$implicit;e.xp6(2),e.Q6J("ngForOf",e.lcZ(3,1,n.children))}}function $(t,r){if(1&t){const n=e.EpF();e.ynx(0),e.TgZ(1,"div",22)(2,"a",23),e.NdJ("click",function(o){e.CHM(n);const i=e.oxw().$implicit,s=e.oxw(3);return e.KtG(s.redirect(i.url,i.new_window_flag,o))}),e.qZA()(),e.BQk()}if(2&t){const n=e.oxw().$implicit,a=e.oxw().$implicit,o=e.oxw(2);e.xp6(),e.uIk("data-nav-title",n.catalog_name)("data-parent-title",a.catalog_name),e.xp6(),e.Q6J("href",n.url?-1==n.url.indexOf("http")?o.appConfig.site_url+n.url:n.url:"#",e.LSH)("innerHTML",n.catalog_name,e.oJD),e.uIk("rel",n.rel_attribute?n.rel_attribute:"")("target","y"==n.new_window_flag?"_blank":"")}}function R(t,r){if(1&t&&(e.ynx(0),e.YNc(1,V,4,3,"ng-container",3)(2,$,3,6,"ng-container",3),e.BQk()),2&t){const n=r.$implicit,a=e.oxw(3);e.xp6(),e.Q6J("ngIf",a.hasChildItem(n.children)),e.xp6(),e.Q6J("ngIf",n.url&&n.custom_styles.indexOf("view-all-products")>=0)}}function j(t,r){if(1&t&&(e.TgZ(0,"div",25),e._UZ(1,"img",9),e.qZA()),2&t){const n=e.oxw().$implicit,a=e.oxw().$implicit;e.xp6(),e.s9C("alt",a.catalog_name),e.uIk("data-src",n.menu_image)}}function P(t,r){if(1&t&&(e.ynx(0),e.YNc(1,j,2,2,"div",24),e.BQk()),2&t){const n=r.$implicit;e.xp6(),e.Q6J("ngIf",n.menu_image&&n.custom_styles&&n.custom_styles.indexOf("section-image-banner")>=0)}}function K(t,r){if(1&t&&(e.ynx(0),e.TgZ(1,"div",11)(2,"div",12),e.YNc(3,R,3,2,"ng-container",10),e.ALo(4,"objNgFor"),e.qZA(),e.YNc(5,P,2,1,"ng-container",10),e.ALo(6,"objNgFor"),e.qZA(),e.BQk()),2&t){const n=r.$implicit,a=e.oxw(2);
1e.xp6(),e.uIk("data-id",n.catalog_item_id),e.xp6(),e.Q6J("ngClass","col-"+a.countColumns(n.link_groups)),e.xp6(),e.Q6J("ngForOf",e.lcZ(4,4,n.link_groups)),e.xp6(2),e.Q6J("ngForOf",e.lcZ(6,6,n.link_groups))}}function z(t,r){if(1&t&&(e.ynx(0),e.YNc(1,K,7,8,"ng-container",10),e.ALo(2,"objNgFor"),e.BQk()),2&t){const n=e.oxw();e.xp6(),e.Q6J("ngForOf",e.lcZ(2,1,n.columnGroupData))}}let W=(()=>{class t{constructor(n){this.ConfigManagerService=n,this.appConfig=this.ConfigManagerService.getConfig("app")}redirect(n,a,o){if(o.preventDefault(),!n)return!1;n&&-1==n.indexOf("http")&&(n=this.appConfig.site_url+n),"y"==a?window.open(n,"_blank"):window.location.href=n}expandNestedNav(n,a,o,i){if(o.preventDefault(),this.showNestedNavItem(n,a,i),"click"==o.type){const s=document.querySelector('.dropdown-column-image-wrapper[data-id="'+i+'"].active .dropdown-link-item');s&&(s.querySelector("a")?s.querySelector("a").focus():s.querySelector("h3")&&s.querySelector("h3").focus())}}showNestedNavItem(n,a,o){const i=document.getElementById("nav-"+a);if(i){const s=i.querySelectorAll(".dropdown-column-container");[].forEach.call(s,function(d){parseInt(d.dataset.id)!=parseInt(n)||d.classList.contains("active")?parseInt(d.dataset.id)!==parseInt(n)&&d.classList.contains("active")&&d.classList.remove("active"):d.classList.add("active")}),this.showSubItem(i,o)}}setActiveCatalog(n){const a=document.getElementById("nav-"+n);a.querySelector(".dropdown-column-image-wrapper.active")||a.querySelectorAll(".dropdown-column-image-wrapper")[0]&&a.querySelectorAll(".dropdown-column-image-wrapper")[0].classList.add("active")}showSubItem(n,a){const o=n.querySelectorAll(".dropdown-column-image-wrapper");[].forEach.call(o,function(i){parseInt(i.dataset.id)!=parseInt(a)||i.classList.contains("active")?parseInt(i.dataset.id)!==parseInt(a)&&i.classList.contains("active")&&i.classList.remove("active"):i.classList.add("active")})}hasChildItem(n){return"object"==typeof n&&Object.keys(n).length}countColumns(n){const a=Object.keys(n).length-2;return a>3?3:a}static{this.\u0275fac=function(a){return new(a||t)(e.Y36(b.Q))}}static{this.\u0275cmp=e.Xpm({type:t,selectors:[["app-header-nested-nav"]],inputs:{columnGroupData:"columnGroupData",navItem:"navItem"},decls:6,vars:7,consts:[[1,"dropdown-links-container"],["class","dropdown-column-container nav-hover-lazy","data-nav-level","1","data-has-children","1",3,"ngClass","hidden","mouseenter",4,"ngFor","ngForOf"],[1,"child-container"],[4,"ngIf"],["data-nav-level","1","data-has-children","1",1,"dropdown-column-container","nav-hover-lazy",3,"ngClass","hidden","mouseenter"],[1,"dropdown-column-title-container",3,"href","click"],[3,"alt",4,"ngIf"],[1,"dropdown-column-title",3,"innerHTML"],[1,"nav-expander",3,"click"],[3,"alt"],[4,"ngFor","ngForOf"],[1,"dropdown-column-image-wrapper"],[1,"dropdown-column",3,"ngClass"],[1,"link-item-container"],["class","dropdown-link-item","data-nav-level","2",4,"ngFor","ngForOf"],["data-nav-level","2",1,"dropdown-link-item"],[3,"href","class","ngClass","innerHTML","click",4,"ngIf"],["tabindex","0",3,"innerHTML",4,"ngIf"],["href","#",3,"class","ngClass","innerHTML","click",4,"ngIf"],[3,"href","ngClass","innerHTML","click"],["tabindex","0",3,"innerHTML"],["href","#",3,"ngClass","innerHTML","click"],["data-nav-level","2",1,"show-related-products"],[3,"href","innerHTML","click"],["class","featured-catalog-img-container",4,"ngIf"],[1,"featured-catalog-img-container"]],template:function(a,o){1&a&&(e.TgZ(0,"div")(1,"div",0),e.YNc(2,E,7,15,"div",1),e.ALo(3,"objNgFor"),e.qZA(),e.TgZ(4,"div",2),e.YNc(5,z,3,3,"ng-container",3),e.qZA()()),2&a&&(e.Gre("dropdown-content-container ",o.navItem.catalog_class?o.navItem.catalog_class:"",""),e.xp6(2),e.Q6J("ngForOf",e.lcZ(3,5,o.columnGroupData)),e.xp6(3),e.Q6J("ngIf",o.navItem.custom_styles&&o.navItem.custom_styles.indexOf("nested-nav")>=0))},dependencies:[l.mk,l.sg,l.O5,l.Ts,x.Z],encapsulation:2})}}return t})();function X(t,r){if(1&t){const n=e.EpF();e.ynx(0),e.TgZ(1,"a",8),e.NdJ("click",function(o){e.CHM(n);const i=e.oxw().$implicit,s=e.oxw();return e.KtG(s.redirect(i.url,i.new_window_flag,o))}),e._UZ(2,"h3",9),e.qZA(),e.BQk()}if(2&t){const n=e.oxw().$implicit,a=e.oxw();e.xp6(),e.Q6J("href",n.url?-1==n.url.indexOf("http")?a.appConfig.site_url+n.url:n.url:"#",e.LSH),e.xp6(),e.Q6J("innerHTML",n.catalog_name,e.oJD)}}function ee(t,r){if(1&t&&e._UZ(0,"h3",9),2&t){const n=e.oxw().$implicit;e.Q6J("innerHTML",n.catalog_name,e.oJD)}}function ne(t,r){if(1&t){const n=e.EpF();e.ynx(0),e.TgZ(1,"div",12)(2,"a",8),e.NdJ("click",function(o){const s=e.CHM(n).$implicit,d=e.oxw(4);return e.KtG(d.redirect(s.url,s.new_window_flag,o))}),e._UZ(3,"span",9),e.qZA()(),e.BQk()}if(2&t){const n=r.$implicit,a=e.oxw(3).$implicit,o=e.oxw();e.xp6(),e.uIk("data-nav-title",n.catalog_name)("data-parent-title",a.
1catalog_name),e.xp6(),e.Q6J("href",n.url?-1==n.url.indexOf("http")?o.appConfig.site_url+n.url:n.url:"#",e.LSH),e.xp6(),e.Q6J("innerHTML",n.catalog_name,e.oJD)}}function te(t,r){if(1&t&&(e.ynx(0),e.TgZ(1,"div",11),e.YNc(2,ne,4,4,"ng-container",2),e.ALo(3,"objNgFor"),e.qZA(),e.BQk()),2&t){const n=e.oxw().$implicit;e.xp6(2),e.Q6J("ngForOf",e.lcZ(3,1,n.children))}}function oe(t,r){if(1&t){const n=e.EpF();e.TgZ(0,"div",12)(1,"a",8),e.NdJ("click",function(o){e.CHM(n);const i=e.oxw().$implicit,s=e.oxw(2);return e.KtG(s.redirect(i.url,i.new_window_flag,o))}),e._UZ(2,"span",9),e.qZA()()}if(2&t){const n=e.oxw().$implicit,a=e.oxw().$implicit,o=e.oxw();e.uIk("data-nav-title",n.catalog_name)("data-parent-title",a.catalog_name),e.xp6(),e.Q6J("href",n.url?-1==n.url.indexOf("http")?o.appConfig.site_url+n.url:n.url:"#",e.LSH),e.xp6(),e.Q6J("innerHTML",n.catalog_name,e.oJD)}}function ae(t,r){if(1&t&&(e.ynx(0),e.YNc(1,te,4,3,"ng-container",5)(2,oe,3,4,"ng-template",null,10,e.W1O),e.BQk()),2&t){const n=r.$implicit,a=e.MAs(3),o=e.oxw(2);e.xp6(),e.Q6J("ngIf",o.childCount(n.children))("ngIfElse",a)}}function ie(t,r){if(1&t&&(e.ynx(0),e.TgZ(1,"div",3)(2,"div",4),e.YNc(3,X,3,2,"ng-container",5)(4,ee,1,1,"ng-template",null,6,e.W1O),e.qZA(),e.TgZ(6,"div",7),e.YNc(7,ae,4,2,"ng-container",2),e.ALo(8,"objNgFor"),e.qZA()(),e.BQk()),2&t){const n=r.$implicit,a=e.MAs(5),o=e.oxw();e.xp6(2),e.uIk("data-nav-title",n.catalog_name)("data-parent-title",o.navItem.catalog_name),e.xp6(),e.Q6J("ngIf",n.url)("ngIfElse",a),e.xp6(3),e.Q6J("ngClass","col-"+o.countChildColumns(o.columnGroupData,3)),e.xp6(),e.Q6J("ngForOf",e.lcZ(8,6,n.link_groups))}}const re=t=>({"no-child-items":t});let ce=(()=>{class t{constructor(n){this.ConfigManagerService=n,this.appConfig=this.ConfigManagerService.getConfig("app")}childCount(n){return"object"==typeof n?Object.keys(n).length:0}countChildColumns(n,a){const o=Object.keys(n).length;return o>a?a:o}redirect(n,a,o){if(o.preventDefault(),!n)return!1;n&&-1==n.indexOf("http")&&(n=this.appConfig.site_url+n),"y"==a?window.open(n,"_blank"):window.location.href=n}static{this.\u0275fac=function(a){return new(a||t)(e.Y36(b.Q))}}static{this.\u0275cmp=e.Xpm({type:t,selectors:[["app-header-grouped-nav"]],inputs:{columnGroupData:"columnGroupData",navItem:"navItem"},decls:4,vars:10,consts:[[3,"ngClass"],[1,"dropdown-links-container","grouped-nav-container",3,"ngClass"],[4,"ngFor","ngForOf"],[1,"group-nav"],["data-nav-level","1",1,"dropdown-link-item"],[4,"ngIf","ngIfElse"],["withoutUrl",""],[1,"group-nav-l2",3,"ngClass"],[3,"href","click"],[3,"innerHTML"],["oneColumnNav",""],[1,"group-nav-column"],["data-nav-level","2",1,"dropdown-link-item"]],template:function(a,o){1&a&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,ie,9,8,"ng-container",2),e.ALo(3,"objNgFor"),e.qZA()()),2&a&&(e.Gre("dropdown-content-container ",o.navItem.catalog_class?o.navItem.catalog_class:"",""),e.Q6J("ngClass",e.VKq(8,re,!o.childCount(o.columnGroupData))),e.xp6(),e.Q6J("ngClass","col-"+o.countChildColumns(o.columnGroupData,4)),e.xp6(),e.Q6J("ngForOf",e.lcZ(3,6,o.columnGroupData)))},dependencies:[l.mk,l.sg,l.O5,x.Z],encapsulation:2})}}return t})();var se=_(3214),le=_(14687),_e=_(18073);const O=t=>({shown:t});function pe(t,r){if(1&t&&(e.TgZ(0,"div",2)(1,"span",3)(2,"a",4),e._UZ(3,"span",5),e.TgZ(4,"span",6)(5,"span",7),e._uU(6),e.qZA()()()()()),2&t){const n=e.oxw();e.xp6(2),e.s9C("href",n.poCartUrl,e.LSH),e.xp6(2),e.Q6J("ngClass",e.VKq(3,O,n.poCartCount)),e.xp6(2),e.Oqu(n.poCartCount)}}function de(t,r){if(1&t&&(e.TgZ(0,"div",8)(1,"a",9)(2,"span",10),e._UZ(3,"span",5),e.TgZ(4,"span",6)(5,"span",7),e._uU(6),e.qZA()()(),e.TgZ(7,"span",11),e._uU(8,"Cart"),e.qZA()()()),2&t){const n=e.oxw();e.xp6(),e.s9C("href",n.poCartUrl,e.LSH),e.xp6(3),e.Q6J("ngClass",e.VKq(3,O,n.poCartCount)),e.xp6(2),e.Oqu(n.poCartCount)}}let F=(()=>{class t{constructor(n,a,o,i){this.CartCountService=n,this.ConfigManagerService=a,this.StorageService=o,this.RefreshTokenHelper=i,this.poCartCount=0,this.tabletViewAndBelow=!1;const s=this.ConfigManagerService.getConfig("routes").checkout_client,d=this.ConfigManagerService.getConfig("app").checkout_client_url;this.poCartUrl=d+"/"+s.cart,this.cartConfig=this.ConfigManagerService.getConfig("cart"),this.poCartId=this.StorageService.getItem(this.ConfigManagerService.getConfig("storage_keys").cart_id)}ngOnInit(){this.poCartId&&(this.cartConfig?.enable_cart_api?this.CartCountService.getCartCountServerless(this.poCartId).then(n=>{this.poCartCount=Number(n)}):this.CartCountService.getCartCount(this.poCartId).then(n=>{this.poCartCount=Number(n)})),this.CartCountService.cartCount$.subscribe(n=>{this.poCartCount=n}),this.RefreshTokenHelper.persistentCart$.subscribe(n=>{n&&n.hasOwnProperty("cart_count")&&(this.poCartCount=n.cart_count)})}static{this.\u0275fac=function(a){return new(a||t)(e.Y36(se.Y),e.Y36(b.Q),e.Y36(le.V),e.Y36(_e.P))}}
1static{this.\u0275cmp=e.Xpm({type:t,selectors:[["cart-count"]],inputs:{tabletViewAndBelow:"tabletViewAndBelow"},decls:2,vars:2,consts:[["class","mobile-cart-container",4,"ngIf"],["class","cart-container",4,"ngIf"],[1,"mobile-cart-container"],[1,"cart-wrapper"],[1,"cart-icon-container",3,"href"],[1,"cart-icon","pp-cart"],[1,"cart-count",3,"ngClass"],[1,"count"],[1,"cart-container"],[1,"cart-wrapper",3,"href"],[1,"cart-icon-container"],[1,"cart-label"]],template:function(a,o){1&a&&e.YNc(0,pe,7,5,"div",0)(1,de,9,5,"div",1),2&a&&(e.Q6J("ngIf",o.tabletViewAndBelow),e.xp6(),e.Q6J("ngIf",!o.tabletViewAndBelow))},dependencies:[l.mk,l.O5],encapsulation:2})}}return t})();_(16363);const ge=["navLinkGroup"];function ue(t,r){if(1&t&&(e.ynx(0),e._UZ(1,"app-header-nested-nav",17),e.BQk()),2&t){const n=e.oxw(2).$implicit,a=e.oxw().$implicit;e.xp6(),e.Q6J("columnGroupData",n.column_data)("navItem",a)}}function me(t,r){if(1&t&&(e.ynx(0),e._UZ(1,"app-header-grouped-nav",17),e.BQk()),2&t){const n=e.oxw(2).$implicit,a=e.oxw().$implicit;e.xp6(),e.Q6J("columnGroupData",n.column_data)("navItem",a)}}function he(t,r){}function fe(t,r){if(1&t&&(e.ynx(0),e.YNc(1,he,0,0,"ng-template",18),e.BQk()),2&t){e.oxw(2);const n=e.MAs(3);e.xp6(),e.Q6J("ngTemplateOutlet",n)}}function ve(t,r){if(1&t&&(e.ynx(0),e.YNc(1,ue,2,2,"ng-container",16)(2,me,2,2,"ng-container",16)(3,fe,2,1,"ng-container",16),e.BQk()),2&t){const n=e.oxw(2).$implicit;e.xp6(),e.Q6J("ngIf",n.custom_styles.includes("nested-nav")),e.xp6(),e.Q6J("ngIf",n.custom_styles.includes("grouped-nav")),e.xp6(),e.Q6J("ngIf",n.custom_styles.includes("list-nav"))}}const Ce=t=>({"pp-direct-mail":t});function we(t,r){if(1&t&&e._UZ(0,"span",26),2&t){const n=e.oxw().$implicit;e.Q6J("ngClass",e.VKq(1,Ce,"fa fa-envelope"==n.custom_styles))}}function xe(t,r){if(1&t){const n=e.EpF();e.TgZ(0,"div",22)(1,"a",23),e.NdJ("click",function(o){const s=e.CHM(n).$implicit,d=e.oxw(6);return e.KtG(d.redirect(s.url,s.new_window_flag,o))}),e.YNc(2,we,1,3,"span",24),e._UZ(3,"span",25),e.qZA()()}if(2&t){const n=r.$implicit,a=e.oxw(3).$implicit,o=e.oxw(3);e.uIk("data-nav-title",n.catalog_name)("data-parent-title",a.catalog_name),e.xp6(),e.Q6J("href",n.url?-1==n.url.indexOf("http")?o.appConfig.site_url+n.url:n.url:"#",e.LSH),e.xp6(),e.Q6J("ngIf",n.custom_styles&&"Direct Mail Services"==n.catalog_name),e.xp6(),e.Q6J("innerHTML",n.catalog_name,e.oJD)}}const Ne=t=>({"no-child-items":t});function be(t,r){if(1&t&&(e.TgZ(0,"div",19)(1,"div",20),e.YNc(2,xe,4,5,"div",21),e.ALo(3,"objNgFor"),e.qZA()()),2&t){const n=e.oxw().$implicit,a=e.oxw().$implicit,o=e.oxw(3);e.Gre("dropdown-content-container ",a.catalog_class?a.catalog_class:"",""),e.Q6J("ngClass",e.VKq(7,Ne,!o.hasChildItem(n.column_data))),e.xp6(2),e.Q6J("ngForOf",e.lcZ(3,5,n.column_data))}}function Ie(t,r){if(1&t&&(e.TgZ(0,"div",14),e.YNc(1,ve,4,3,"ng-container",0)(2,be,4,9,"ng-template",null,15,e.W1O),e.qZA()),2&t){const n=e.MAs(3),a=e.oxw().$implicit;e.xp6(),e.Q6J("ngIf",a.custom_styles)("ngIfElse",n)}}const Te=t=>({"logged-in":t}),Ae=(t,r)=>({active:t,"logged-in-nav":r});function Se(t,r){if(1&t){const n=e.EpF();e.TgZ(0,"a",10),e.NdJ("focus",function(o){const i=e.CHM(n),s=i.index,d=i.$implicit,I=e.oxw(3);return e.KtG(I.showMenuContent(s,o,d.catalog_item_id))})("mouseenter",function(o){const i=e.CHM(n),s=i.index,d=i.$implicit,I=e.oxw(3);return e.KtG(I.showMenuContent(s,o,d.catalog_item_id))})("mouseleave",function(){e.CHM(n);const o=e.oxw(3);return e.KtG(o.hideMenuContent())})("click",function(o){const s=e.CHM(n).index,d=e.oxw(3);return e.KtG(d.toggleMenuOnClick(s,o))}),e._UZ(1,"span",11),e.TgZ(2,"div",12),e.YNc(3,Ie,4,2,"div",13),e.ALo(4,"objNgFor"),e.qZA()()}if(2&t){const n=r.$implicit,a=r.index,o=e.oxw(3);e.Gre("nav-link default-hover-lazy ",n.custom_styles,""),e.Q6J("href",n.url?-1==n.url.indexOf("http")?o.appConfig.site_url+n.url:n.url:"#",e.LSH)("ngClass",e.VKq(12,Te,o.isLoggedIn)),e.uIk("data-nav-title",n.catalog_name),e.xp6(),e.Q6J("innerHTML",n.catalog_name,e.oJD),e.xp6(),e.MGl("id","nav-",n.catalog_item_id,""),e.Q6J("ngClass",e.WLB(14,Ae,o.visibleNavContent==a,o.isLoggedIn)),e.xp6(),e.Q6J("ngForOf",e.lcZ(4,10,n.content_row_data))}}function Ze(t,r){if(1&t){const n=e.EpF();e.TgZ(0,"nav",3)(1,"div",4,5),e.NdJ("focusout",function(o){e.CHM(n);const i=e.oxw(2);return e.KtG(i.onFocusOutHideMenuContent(o))}),e.YNc(3,Se,5,17,"a",6),e.ALo(4,"objNgFor"),e.qZA(),e.TgZ(5,"div",7),e._UZ(6,"customer-section",8)(7,"cart-count",9),e.qZA()()}if(2&t){const n=e.oxw(2);e.xp6(3),e.Q6J("ngForOf",e.lcZ(4,6,n.headerNavData)),e.xp6(3),e.Q6J("customerInfo",n.customerInfo)("isLoggedIn",
1n.isLoggedIn)("appConfig",n.appConfig)("routes",n.routes),e.xp6(),e.Q6J("tabletViewAndBelow",n.tabletViewAndBelow)}}function He(t,r){if(1&t&&(e.ynx(0),e.YNc(1,Ze,8,8,"nav",2),e.BQk()),2&t){const n=e.oxw();e.xp6(),e.Q6J("ngIf",n.headerNavData)}}function Le(t,r){if(1&t&&(e.ynx(0),e.TgZ(1,"span"),e._UZ(2,"span",44)(3,"span",25),e.qZA(),e.BQk()),2&t){const n=e.oxw(2).$implicit;e.xp6(3),e.Q6J("innerHTML",n.catalog_name,e.oJD)}}const Q=t=>({"link-with-icon":t});function ke(t,r){if(1&t&&e._UZ(0,"span",45),2&t){const n=e.oxw(2).$implicit;e.Tol(n.custom_styles),e.Q6J("innerHTML",n.catalog_name,e.oJD)("ngClass",e.VKq(5,Q,n.custom_styles))}}function ye(t,r){if(1&t&&(e.TgZ(0,"li",40)(1,"a",41),e.YNc(2,Le,4,1,"ng-container",0)(3,ke,1,7,"ng-template",null,42,e.W1O),e._UZ(5,"span",43),e.qZA()()),2&t){const n=e.MAs(4),a=e.oxw().$implicit,o=e.oxw(6);e.uIk("data-nav-title",a.catalog_name),e.xp6(),e.Q6J("href",o.prependSiteUrl(a.url),e.LSH),e.xp6(),e.Q6J("ngIf","fa fa-envelope"==a.custom_styles&&"Direct Mail Services"==a.catalog_name)("ngIfElse",n)}}function Me(t,r){if(1&t&&(e.TgZ(0,"li",40)(1,"a",41),e._UZ(2,"span",45)(3,"span",43),e.qZA()()),2&t){const n=r.$implicit,a=e.oxw(7);e.uIk("data-nav-title",n.catalog_name),e.xp6(),e.Q6J("href",a.prependSiteUrl(n.url),e.LSH),e.xp6(),e.Tol(n.custom_styles),e.Q6J("innerHTML",n.catalog_name,e.oJD)("ngClass",e.VKq(7,Q,n.custom_styles))}}function Je(t,r){if(1&t&&(e.TgZ(0,"ul",37),e.YNc(1,ye,6,4,"li",38),e.ALo(2,"json"),e.YNc(3,Me,4,9,"li",39),e.ALo(4,"objNgFor"),e.qZA()),2&t){const n=r.$implicit,a=e.oxw(3).$implicit;e.xp6(),e.Q6J("ngIf","{}"==e.lcZ(2,2,n.link_groups)&&"all_products"!==a.catalog_id),e.xp6(2),e.Q6J("ngForOf",e.lcZ(4,4,n.link_groups))}}function Qe(t,r){if(1&t&&(e.TgZ(0,"div",35),e.YNc(1,Je,5,6,"ul",36),e.ALo(2,"objNgFor"),e.qZA()),2&t){const n=r.$implicit;e.xp6(),e.Q6J("ngForOf",e.lcZ(2,1,n.column_data))}}function De(t,r){if(1&t&&(e.ynx(0),e.YNc(1,Qe,3,3,"div",34),e.ALo(2,"objNgFor"),e.BQk()),2&t){const n=e.oxw().$implicit;e.xp6(),e.Q6J("ngForOf",e.lcZ(2,1,n.content_row_data))}}function Oe(t,r){if(1&t&&(e.TgZ(0,"li",52)(1,"a",41),e._UZ(2,"span",45)(3,"span",43),e.qZA()()),2&t){const n=r.$implicit,a=e.oxw(7);e.uIk("data-nav-title",n.catalog_name),e.xp6(),e.Q6J("href",a.prependSiteUrl(n.url),e.LSH),e.xp6(),e.Tol(n.custom_styles?n.custom_styles:""),e.Q6J("innerHTML",n.catalog_name,e.oJD)("ngClass",e.VKq(7,Q,n.custom_styles))}}function Fe(t,r){if(1&t){const n=e.EpF();e.TgZ(0,"div",47)(1,"div",48),e.NdJ("click",function(o){const s=e.CHM(n).index,d=e.oxw(6);return e.KtG(d.toggleMobileMenu("#catalog"+s,o))}),e.TgZ(2,"span",49),e._UZ(3,"span"),e.ALo(4,"lowercase"),e._UZ(5,"span",25),e.qZA(),e.TgZ(6,"span",30),e._UZ(7,"i",31)(8,"i",32),e.qZA()(),e.TgZ(9,"div",50)(10,"ul",37),e.YNc(11,Oe,4,9,"li",51),e.ALo(12,"objNgFor"),e.qZA()()()}if(2&t){const n=r.$implicit,a=r.index,o=e.oxw(6);let i;e.uIk("data-nav-title",n.catalog_name),e.xp6(),e.Q2q("data-target","#catalog",a,""),e.xp6(2),e.Gre("pp-industry-icon ",e.lcZ(4,10,n.catalog_name.split(" ").join("")),"-icon"),e.xp6(2),e.Q6J("innerHTML",n.catalog_name,e.oJD),e.xp6(4),e.Q6J("collapse",null===(i=o.isCollapsed["catalog"+a])||void 0===i||i)("isAnimated",!0),e.uIk("id","catalog"+a),e.xp6(2),e.Q6J("ngForOf",e.lcZ(12,12,n.link_groups))}}function qe(t,r){if(1&t&&(e.TgZ(0,"div",35),e.YNc(1,Fe,13,14,"div",46),e.ALo(2,"objNgFor"),e.qZA()),2&t){const n=r.$implicit;e.xp6(),e.Q6J("ngForOf",e.lcZ(2,1,n.column_data))}}function Ee(t,r){if(1&t&&(e.ynx(0),e.YNc(1,qe,3,3,"div",34),e.ALo(2,"objNgFor"),e.BQk()),2&t){const n=e.oxw().$implicit;e.xp6(),e.Q6J("ngForOf",e.lcZ(2,1,n.content_row_data))}}function Ue(t,r){if(1&t){const n=e.EpF();e.TgZ(0,"div",28)(1,"div",29),e.NdJ("click",function(o){const s=e.CHM(n).index,d=e.oxw(3);return e.KtG(d.toggleMobileMenu("#nav"+s,o))}),e._UZ(2,"span",25),e.TgZ(3,"span",30),e._UZ(4,"i",31)(5,"i",32),e.qZA()(),e.TgZ(6,"div",33),e.YNc(7,De,3,3,"ng-container",16)(8,Ee,3,3,"ng-container",16),e.qZA()()}if(2&t){const n=r.$implicit,a=r.index,o=e.oxw(3);let i,s;e.xp6(),e.ekj("collapsed",null===(i=o.isCollapsed[a])||void 0===i||i),e.s9C("id",a),e.uIk("data-target","#nav"+a)("data-nav-title",n.catalog_name),e.xp6(),e.Q6J("innerHTML",n.catalog_name,e.oJD),e.xp6(4),e.Q6J("collapse",null===(s=o.isCollapsed[a])||void 0===s||s)("isAnimated",!0),e.uIk("id","nav"+a),e.xp6(),e.Q6J("ngIf","shop_by_industry"!==n.catalog_id),e.xp6(),e.Q6J("ngIf","shop_by_industry"==n.catalog_id)}}function Ge(t,r){if(1&t&&(e.ynx(0),e.YNc(1,Ue,9,11,"div",27),e.ALo(2,"objNgFor"),e.BQk()),2&t){const n=e.oxw(2);e.xp6(),e.Q6J("ngForOf",e.lcZ(2,1,n.mobileHeaderNavData))}}function Be(t,r){if(1&t&&e.YNc(0,Ge,3,3,"ng-container",16),2&t){const n=e.oxw();e.Q6J("ngIf",n.mobileHeaderNavData)}}let q=(()=>{class t{onClick(n){this.tap&&!this.tabletViewAndBelow&&!this.navLinkGroup.nativeElement.contains(n.target)&&(this.visibleNavContent=null,this.CostumerEventsService.emitMenuNavVisibility(!1))}constructor(n,a,o,i,s,d,I){this.ConfigManagerService=n,this.MenuNavService=a,this.modalService=o,this.CostumerEventsService=i,this.eRef=s,this.sanitized=d,this.GA4NavClick=I,this.enableHeaderNavDataFetching=!0,this.onHeaderNavDataResponse=new e.vpe,this.onLogout=new e.vpe,this.onShowMenuNav=new e.vpe,this.openHeaderNavContent=!1,this.tap=!1,this.showAccountDropdown=!1,this.isCollapsed={},this.appConfig=this.ConfigManagerService.getConfig("app"),this.tap="ontouchstart"in document.documentElement,this.MenuNavService.menuNavData$.subscribe(k=>{this.headerNavData=k.header_nav,this.mobileHeaderNavData=k.mobile_header_nav,this.featuredProductData=this.getFeaturedProduct(k.featured_products),this.onHeaderNavDataResponse.emit(k),this.lazyLoadInit(),this.defaultImgLazyLoadInit()})}ngOnInit(){this.enableHeaderNavDataFetching&&(this.headerNavResponseData?(this.headerNavData=this.headerNavResponseData.header_nav,this.mobileHeaderNavData=this.headerNavResponseData.mobile_header_nav,this.featuredProductData=this.getFeaturedProduct(this.headerNavResponseData.featured_products),this.lazyLoadInit(),this.defaultImgLazyLoadInit()):this.getMenuNavData())}ngAfterViewInit(){const n=this,a=setInterval(function(){const o=document.getElementsByClassName("ga4-nav-click header"),i=window.innerWidth>=992;(!i&&1==o.length||i&&o.length>1)&&(n.GA4NavClick.initialize({mainNavText:"",class:".header",disableNavTextDefaultMobile:!0}),clearInterval(a))},500)}getMenuNavData(){this.MenuNavService.getMenuNavData(this.appConfig.site_url+"/menu-nav")}getFeaturedProduct(n){const a=Object.keys(n.children)[0];return n.children[a]}showMenuContent(n,a,o){if(!this.tap){const i=document.querySelectorAll(".active-catalog-item");if(i.length&&[].forEach.call(i,function(s){s&&s.classList.remove("active-catalog-item")}),clearInterval(this.navContentTimer),this.openHeaderNavContent){const s=a.target.querySelector(".no-child-items");this.visibleNavContent=s?null:n,this.parentIndex=n,a.target.childNodes[0].classList.add("active-catalog-item")}else this.navContentTimer=setTimeout(()=>{const s=a.target.querySelector(".no-child-items");this.visibleNavContent=s?null:n,this.openHeaderNavContent=!0,this.parentIndex=n,a.target.childNodes[0].classList.add("active-catalog-item")},300);this.setActiveCatalog(o),this.hoverLazy(a.target),this.CostumerEventsService.emitMenuNavVisibility(!0)}if(null!=a&&"focus"==a.type){const i=a.target.querySelectorAll("img:not(.lazy-loaded)")[0];this.loadImage(i)}}setActiveCatalog(n){const a=document.getElementById("nav-"+n);a.querySelector(".dropdown-column-image-wrapper.active")||a.querySelectorAll(".dropdown-column-image-wrapper")[0]&&a.querySelectorAll(".dropdown-column-image-wrapper")[0].classList.add("active")}onFocusOutHideMenuContent(n){document.querySelector(".header-nav-link-group").contains(n.relatedTarget)||this.hideMenuContent()}hideMenuContent(){if(!this.tap){clearInterval(this.navContentTimer),this.visibleNavContent=null,this.CostumerEventsService.emitMenuNavVisibility(!1);const n=document.querySelectorAll(".active-catalog-item");n.length&&[].forEach.call(n,function(a){a&&a.classList.remove("active-catalog-item")})}}toggleMenuOnClick(n,a){if(a.preventDefault(),this.tap){const o=(a.currentTarget||a.target).childNodes[0];n==this.visibleNavContent?(this.visibleNavContent=null,this.CostumerEventsService.emitMenuNavVisibility(!1),o&&o.classList&&o.classList.remove("active-catalog-item")):(this.visibleNavContent=n,this.CostumerEventsService.emitMenuNavVisibility(!0),o&&o.classList&&o.classList.remove("active-catalog-item"))}}prependSiteUrl(n){return n?n&&-1==n.indexOf("http")?this.appConfig.site_url+n:n:this.sanitized.bypassSecurityTrustResourceUrl("javascript:void(0)")}redirect(n,a,o){if(o.preventDefault(),!n)return!1;n&&-1==n.indexOf("http")&&(n=this.appConfig.site_url+n),"y"==a?window.open(n,"_blank"):window.location.href=n}lazyLoadInit(){setTimeout(()=>{const n=document.querySelectorAll(".nav-hover-lazy");if(n.length>0)for(const a in n)n[a]instanceof HTMLElement&&n[a].addEventListener("mouseenter",o=>{this.hoverLazy(o.target)})},500)}hoverLazy(n){const a=n.querySelectorAll("img:not(.lazy-loaded)");if(a.length>0)for(const o in a)a[o]instanceof HTMLElement&&!a[o].classList.contains(".lazy-loaded")&&(null!=a[o].getAttribute("data-srcset")&&a[o].setAttribute("srcset",a[o].getAttribute("data-srcset")),null!=a[o].getAttribute("data-src")&&a[o].setAttribute("src",a[o].getAttribute("data-src")),a[o].classList.add("lazy-loaded"))}defaultImgLazyLoadInit(){setTimeout(()=>{const n=document.querySelectorAll(".default-hover-lazy");if(n.length>0){const a=this;for(const o in n)n[o]instanceof HTMLElement&&n[o].addEventListener("mouseenter",function(){const i=this.querySelectorAll("img:not(.lazy-loaded)")[0];a.loadImage(i)})}},500)}loadImage(n){null!=n&&n instanceof HTMLElement&&!n.classList.contains(".lazy-loaded")&&(null!=n.getAttribute("data-srcset")&&n.setAttribute("srcset",n.getAttribute("data-srcset")),null!=n.getAttribute("data-src")&&n.setAttribute("src",n.getAttribute("data-src")),n.classList.add("lazy-loaded"))}hasChildItem(n){return"object"==typeof n&&Object.keys(n).length}toggleMobileMenu(n,a){a.preventDefault();let o=String(n).replace("#","");o.startsWith("nav")&&(o=o.replace("nav","")),this.isCollapsed[o]=!(this.isCollapsed[o]??1)}static{this.\u0275fac=function(a){return new(a||t)(e.Y36(b.Q),e.Y36(T.Y),e.Y36(g.tT),e.Y36(C),e.Y36(e.SBq),e.Y36(h.H7),e.Y36("GA4NavClick"))}}static{this.\u0275cmp=e.Xpm({type:t,selectors:[["header-nav"]],viewQuery:function(a,o){if(1&a&&(e.Gf(ge,5),e.Gf(u,5)),2&a){let i;e.iGM(i=e.CRH())&&(o.navLinkGroup=i.first),e.iGM(i=e.CRH())&&(o.customerSection=i.first)}},hostBindings:function(a,o){1&a&&e.NdJ("click",function(s){return o.onClick(s)},!1,e.evT)},inputs:{navType:"navType",enableHeaderNavDataFetching:"enableHeaderNavDataFetching",headerNavResponseData:"headerNavResponseData",tabletViewAndBelow:"tabletViewAndBelow",customerInfo:"customerInfo",isLoggedIn:"isLoggedIn",appConfig:"appConfig",routes:"routes"},outputs:{onHeaderNavDataResponse:"onHeaderNavDataResponse",onLogout:"onLogout",onShowMenuNav:"onShowMenuNav"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["mobileNav",""],["class","header-nav container ga4-nav-click header",4,"ngIf"],[1,"header-nav","container","ga4-nav-click","header"],[1,"header-nav-link-group",3,"focusout"],["navLinkGroup",""],["data-nav-level","0","data-has-children","1",3,"href","class","ngClass","focus","mouseenter","mouseleave","click",4,"ngFor","ngForOf"],[1,"customer-section-container"],[3,"customerInfo","isLoggedIn","appConfig","routes"],[3,"tabletViewAndBelow"],["data-nav-level","0","data-has-children","1",3,"href","ngClass","focus","mouseenter","mouseleave","click"],[1,"nav-link-title",3,"innerHTML"],[1,"nav-content-container","nav-link-menu","client-menu",3,"id","ngClass"],["class","dropdown-content",4,"ngFor","ngForOf"],[1,"dropdown-content"],["normalDropdown",""],[4,"ngIf"],[3,"columnGroupData","navItem"],[3,"ngTemplateOutlet"],[3,"ngClass"],[1,"dropdown-links-container","simple-dropdown"],["class","dropdown-link-item","data-nav-level","1",4,"ngFor","ngForOf"],["data-nav-level","1",1,"dropdown-link-item"],[3,"href","click"],["class","catalog-item-icon",3,"ngClass",4,"ngIf"],[3,"innerHTML"],[1,"catalog-item-icon",3,"ngClass"],["class","nav-link-panel",4,"ngFor","ngForOf"],[1,"nav-link-panel"],["data-parent","#nav_accordion","data-toggle","collapse","data-nav-level","0","data-has-children","1",1,"nav-menu-toggler",3,"id","click"],[1,"accordion-icon-container"],[1,"accordion-closed-icon","pp-open"],[1,"accordion-open-icon","pp-up"],[1,"nav-link-menu-mobile","collapse",3,"collapse","isAnimated"],["class","dropdown-row",4,"ngFor","ngForOf"],[1,"dropdown-row"],["class","dropdown-column",4,"ngFor","ngForOf"],[1,"dropdown-column"],["class","catalog-list-item","data-nav-level","1",4,"ngIf"],["class","catalog-list-item","data-nav-level","1",4,"ngFor","ngForOf"],["data-nav-level","1",1,"catalog-list-item"],[1,"site-secondary-link",3,"href"],["defaultItem",""],[1,"pp-right","arrow-right-icon"],[1,"pp-direct-mail","link-with-icon"],[3,"innerHTML","ngClass"],["class","industry-accordion-container","data-nav-level","1","data-has-children","1",4,"ngFor","ngForOf"],["data-nav-level","1","data-has-children","1",1,"industry-accordion-container"],["data-toggle","collapse",1,"industry-accordion-title-container","accordion-item-toggle","collapsed",3,"click"],[1,"industry-accordion-title"],[1,"collapse",3,"collapse","isAnimated"],["class","catalog-list-item","data-nav-level","2",4,"ngFor","ngForOf"],["data-nav-level","2",1,"catalog-list-item"]],template:function(a,o){if(1&a&&e.YNc(0,He,2,1,"ng-container",0)(1,Be,1,1,"ng-template",null,1,e.W1O),2&a){const i=e.MAs(2);e.Q6J("ngIf",!o.tabletViewAndBelow)("ngIfElse",i)}},dependencies:[l.mk,l.sg,l.O5,l.tP,p.Y,u,W,ce,F,l.i8,l.Ts,x.Z],encapsulation:2})}}return t})();var Ye=_(72026),Ve=_(22567),$e=_(96693),Re=_(1940),je=_(27417),Pe=_(22308);const Ke=["desktop_search_widget"],ze=["mobile_search_widget"],We=["accountDropdownMenu"];function Xe(t,r){if(1&t&&e._UZ(0,"app-announcement-placeholder",35),2&t){const n=e.oxw();e.Q6J("endPointUrl",n.appConfig.submodule_api_url+"/announcements")("placeholderCode","HEADER_TOP")("websiteCode",n.appConfig.website_code)("containerClass","header-top")("itemClass","header-banner-item")("closeIconClass","pp-close-x")}}function en(t,r){if(1&t&&(e.TgZ(0,"div",36),e._UZ(1,"customer-section",37),e.qZA()),2&t){const n=e.oxw();
1e.xp6(),e.Q6J("customerInfo",n.customerInfo)("isLoggedIn",n.isLoggedIn)("appConfig",n.appConfig)("routes",n.routes)}}function nn(t,r){if(1&t&&(e.TgZ(0,"div",38),e._UZ(1,"cart-count",39),e.qZA()),2&t){const n=e.oxw();e.xp6(),e.Q6J("tabletViewAndBelow",n.tabletViewAndBelow)}}function tn(t,r){if(1&t){const n=e.EpF();e.TgZ(0,"header-nav",41),e.NdJ("onHeaderNavDataResponse",function(o){e.CHM(n);const i=e.oxw(2);return e.KtG(i.handleHeaderNavResponse(o))}),e.qZA()}if(2&t){const n=e.oxw(2);e.Q6J("tabletViewAndBelow",n.tabletViewAndBelow)("customerInfo",n.customerInfo)("isLoggedIn",n.isLoggedIn)("appConfig",n.appConfig)("routes",n.routes)("headerNavResponseData",n.headerNavResponseData)}}function on(t,r){if(1&t&&(e.TgZ(0,"div",40),e.YNc(1,tn,1,6,"header-nav",28),e.qZA()),2&t){const n=e.oxw();e.xp6(),e.Q6J("ngIf",!n.tabletViewAndBelow)}}function an(t,r){if(1&t){const n=e.EpF();e.TgZ(0,"span",54),e.NdJ("click",function(){e.CHM(n);const o=e.oxw(2);return e.KtG(o.openLoginRegister())}),e.qZA()}}function rn(t,r){if(1&t){const n=e.EpF();e.TgZ(0,"span",54),e.NdJ("click",function(){e.CHM(n);const o=e.oxw(2);return e.KtG(o.mobileToggleClick("account"))}),e.qZA()}}function cn(t,r){if(1&t){const n=e.EpF();e.TgZ(0,"div",42)(1,"div",43)(2,"div",44)(3,"div",45)(4,"span",46),e.NdJ("click",function(){e.CHM(n);const o=e.oxw();return e.KtG(o.headerNavResponseData?o.mobileToggleClick("menu"):null)}),e.qZA()(),e.TgZ(5,"div",47)(6,"a",48),e._UZ(7,"span",49),e.qZA()()(),e.TgZ(8,"div",50)(9,"a",6),e._UZ(10,"img",51),e.qZA()(),e.TgZ(11,"div",44)(12,"div",52),e.YNc(13,an,1,0,"span",53)(14,rn,1,0,"span",53),e.qZA(),e._UZ(15,"cart-count",39),e.qZA()()()}if(2&t){const n=e.oxw();e.xp6(6),e.MGl("href","tel:",n.siteConfig.phone_no,"",e.LSH),e.xp6(3),e.s9C("href",n.appConfig.site_url,e.LSH),e.xp6(),e.MGl("src","",n.appConfig.shared_image_path,"/pp-logo-mobile.svg",e.LSH),e.xp6(3),e.Q6J("ngIf",!n.isLoggedIn),e.xp6(),e.Q6J("ngIf",n.isLoggedIn),e.xp6(),e.Q6J("tabletViewAndBelow",n.tabletViewAndBelow)}}function sn(t,r){if(1&t){const n=e.EpF();e.TgZ(0,"div",55)(1,"ul",56,57)(3,"li",58)(4,"a",12),e._uU(5," Order Status "),e._UZ(6,"span",59),e.qZA()(),e.TgZ(7,"li",58)(8,"a",12),e._uU(9," Quotes "),e._UZ(10,"span",59),e.qZA()(),e.TgZ(11,"li",58)(12,"a",12),e._uU(13," Saved Designs "),e._UZ(14,"span",59),e.qZA()(),e.TgZ(15,"li",58)(16,"a",12),e._uU(17," Mailing Lists "),e._UZ(18,"span",59),e.qZA()(),e.TgZ(19,"li",58)(20,"a",12),e._uU(21," Settings "),e._UZ(22,"span",59),e.qZA()(),e.TgZ(23,"li",58)(24,"a",60),e.NdJ("click",function(){e.CHM(n);const o=e.oxw();return e.KtG(o.logout())}),e._uU(25," Log Out "),e._UZ(26,"span",59),e.qZA()()()()}if(2&t){const n=e.oxw();e.xp6(),e.Q6J("collapse",!n.isMobileAccountNavOpen)("isAnimated",!0),e.xp6(3),e.MGl("href","",n.appConfig.account_orders_client,"/order",e.LSH),e.xp6(4),e.MGl("href","",n.appConfig.account_quotes_client,"/quotes",e.LSH),e.xp6(4),e.MGl("href","",n.appConfig.account_designs_client,"/my-saved-designs",e.LSH),e.xp6(4),e.MGl("href","",n.appConfig.account_mailing_client,"/mailing-list",e.LSH),e.xp6(4),e.MGl("href","",n.appConfig.account_settings_client,"/contact-information",e.LSH)}}function ln(t,r){if(1&t){const n=e.EpF();e.TgZ(0,"header-nav",41),e.NdJ("onHeaderNavDataResponse",function(o){e.CHM(n);const i=e.oxw();return e.KtG(i.handleHeaderNavResponse(o))}),e.qZA()}if(2&t){const n=e.oxw();e.Q6J("tabletViewAndBelow",n.tabletViewAndBelow)("customerInfo",n.customerInfo)("isLoggedIn",n.isLoggedIn)("appConfig",n.appConfig)("routes",n.routes)("headerNavResponseData",n.headerNavResponseData)}}function _n(t,r){1&t&&e._UZ(0,"coupon-banner-widget",61)}function pn(t,r){1&t&&e._UZ(0,"holiday-message",62)}function dn(t,r){if(1&t&&e._UZ(0,"app-announcement-placeholder",63),2&t){const n=e.oxw();e.Q6J("endPointUrl",n.appConfig.submodule_api_url+"/announcements")("placeholderCode","HEADER_BANNER")("websiteCode",n.appConfig.website_code)("containerClass","header-banner")("closeIconClass","pp-close-x")}}const gn=(t,r,n)=>({"simple-header":t,"simple-mobile-header":r,"simple-with-customer-login":n}),un=t=>({shown:t});let mn=(()=>{class t{onResize(n){this.tabletViewAndBelow=n.target.innerWidth<=991,!this.tabletViewAndBelow&&this.headerNav?(this.headerNav.lazyLoadInit(),this.headerNav.defaultImgLazyLoadInit()):this.showBackdrop=!1}onClick(n){const a=document.getElementById("orderSummaryClickContainer");if(this.tabletViewAndBelow&&this.accountDropdownMenu&&this.accountDropdownMenu.nativeElement&&this.accountDropdownMenu.nativeElement.contains(n.target)&&(a&&!a.contains(n.target)||!a)&&(this.accountDropdownMenu.nativeElement.classList.remove("in"),this.closeActiveFooterAccordion()),!this.tabletViewAndBelow&&this.headerNav&&this.headerNav.customerSection&&!this.headerNav.customerSection.eRef.nativeElement.contains(n.target)&&(a&&!a.contains(n.target)||!a)&&(this.headerNav.navLinkGroup.nativeElement.contains(n.target)||(this.showBackdrop=!1),this.headerNav.customerSection.showAccountDropdown=!1),!this.tabletViewAndBelow&&this.headerNav&&this.headerNav.customerSection&&this.headerNav.customerSection.eRef.nativeElement.contains(n.target)&&(a&&!a.contains(n.target)||!a)){const o=this.headerNav.customerSection.eRef.nativeElement.querySelectorAll(".account-dropdown-list-item");[].forEach.call(o,i=>{i.contains(n.target)&&(this.showBackdrop=!1,this.headerNav.customerSection.showAccountDropdown=!1)})}this.tabletViewAndBelow&&this.tellSearchWidgetToCloseItself()}constructor(n,a,o,i,s,d,I,k,hn){if(this.AuthService=n,this.LogoutHandlerService=a,this.Router=o,this.Location=i,this.ConfigManagerService=s,this.CustomerEventsService=d,this.CrossStorageClientService=I,this.SearchClientLoaderService=k,this.LoginRegisterModalService=hn,this.isLoggedIn=!1,this.isLiveChatActive=!1,this.tabletViewAndBelow=!1,this.showBackdrop=!1,this.isMobileAccountNavOpen=!1,this.isMobileMenuNavOpen=!1,this.isSearchClientLoaded=!1,this.enabledSections={headerNav:!1,holidayBanner:!0,showHeader:!1,loginNav:!1,searchBar:!1,topHeaderCart:!1,topHeaderLoginNav:!1},this.appConfig=this.ConfigManagerService.getConfig("app"),this.siteConfig=this.ConfigManagerService.getConfig("site"),this.discountConfig=this.ConfigManagerService.getConfig("discount"),this.routes=this.ConfigManagerService.getConfig("routes"),this.crossStorageConfig=this.ConfigManagerService.getConfig("cross_storage"),this.incontactConfig=this.ConfigManagerService.getConfig("incontact"),this.customerConfig=this.ConfigManagerService.getConfig("customer"),this.CrossStorageClientService.onInit(this.crossStorageConfig.hub_url,this.crossStorageConfig.hub_opt),this.AuthService.parseAccessTokenData()){const N=this.AuthService.parseAccessTokenData();this.customerInfo=N.data,this.isLoggedIn=!0}n.logged_in$.subscribe(N=>{const M=this.AuthService.parseAccessTokenData();this.customerInfo=M.data,this.isLoggedIn=!0}),n.logged_out$.subscribe(N=>{this.customerInfo={},this.isLoggedIn=!1,this.clearNotification()}),n.customerInfo$.subscribe(N=>{null==N&&(this.customerInfo={},this.isLoggedIn=!1)}),this.AuthService.refreshToken$.subscribe(N=>{const M=this.AuthService.parseAccessTokenData();M&&(this.customerInfo=M.data,this.isLoggedIn=!0)}),d.menuNavVisibility$.subscribe(N=>{this.showBackdrop=N}),d.onLogOut$.subscribe(N=>{this.logout()}),this.setHeaderVisibility(),this.Router.events.subscribe(N=>{N instanceof S.m2&&this.setHeaderVisibility()})}ngOnInit(){this.tabletViewAndBelow=window.innerWidth<=991}initSearch(){var n=this;return(0,c.Z)(function*(){n.isSearchClientLoaded||(n.SearchClientLoaderService.initSearch(n.desktopSearchWidget,n.mobileSearchWidget),n.isSearchClientLoaded=!0)})()}requestChat(){window.open(this.incontactConfig.new_window_url+"?poc="+this.incontactConfig.poc+"&bu="+this.incontactConfig.bus_no,"","width=6
150,height=680")}logout(){this.LogoutHandlerService.logout().subscribe(n=>{window.location.href=this.appConfig.site_url})}handleHeaderNavResponse(n){this.headerNavResponseData=n}closeActiveFooterAccordion(){const n=document.getElementsByClassName("site-link-heading");[].forEach.call(n,function(a){const o=a.nextElementSibling;a.classList.contains("active")&&(a.classList.remove("active"),o.classList.remove("shown"))})}setHeaderVisibility(){const n=this.ConfigManagerService.getConfig("custom_header_routes"),a={headerNav:!0,holidayBanner:!0,showHeader:!0,loginNav:!0,searchBar:!0,topHeaderCart:!1,topHeaderLoginNav:!1};for(const o of Object.keys(n)){if(this.Location.path().search(o)>=0){Object.assign(this.enabledSections,n[o]);break}Object.assign(this.enabledSections,a)}}scrollIntoView(n){const a=document.getElementById(n);setTimeout(()=>{const o=a.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(o){let i=!1;for(let s=0;s<o.length;s++)if(null!==o[s].offsetParent){o[s].focus(),i=!0;break}i||a.focus()}})}scrollIntoViewOnEnter(n,a){13==n.keyCode&&this.scrollIntoView(a)}clearNotification(){this.CrossStorageClientService.deleteData(this.appConfig.customer_notification.notification_storage),this.CrossStorageClientService.deleteData(this.appConfig.customer_notification.notification_query_storage),this.CrossStorageClientService.deleteData(this.appConfig.customer_notification.notification_query_data)}tellSearchWidgetToCloseItself(){document.querySelector(".search-bar-input").innerHTML=""}mobileToggleClick(n){"menu"==n?(this.isMobileMenuNavOpen=!this.isMobileMenuNavOpen,this.isMobileAccountNavOpen=!1):"account"==n&&(this.isMobileAccountNavOpen=!this.isMobileAccountNavOpen,this.isMobileMenuNavOpen=!1)}openLoginRegister(){!0===this.customerConfig?.redirect_to_login_page?window.location.href=`${this.customerConfig.login_page_url}?url=${window.location.href}`:this.LoginRegisterModalService.openModal({customClass:"site-modal",redirect_url:window.location.href})}static{this.\u0275fac=function(a){return new(a||t)(e.Y36(Ye.e),e.Y36(f.d),e.Y36(S.F0),e.Y36(l.Ye),e.Y36(b.Q),e.Y36(C),e.Y36(Ve.T),e.Y36($e.l),e.Y36(H.h))}}static{this.\u0275cmp=e.Xpm({type:t,selectors:[["app-header"]],viewQuery:function(a,o){if(1&a&&(e.Gf(Ke,7),e.Gf(ze,7),e.Gf(q,5),e.Gf(We,5)),2&a){let i;e.iGM(i=e.CRH())&&(o.desktopSearchWidget=i.first),e.iGM(i=e.CRH())&&(o.mobileSearchWidget=i.first),e.iGM(i=e.CRH())&&(o.headerNav=i.first),e.iGM(i=e.CRH())&&(o.accountDropdownMenu=i.first)}},hostBindings:function(a,o){1&a&&e.NdJ("resize",function(s){return o.onResize(s)},!1,e.Jf7)("click",function(s){return o.onClick(s)},!1,e.evT)},decls:40,vars:28,consts:[["id","header",1,"global-header-container",3,"ngClass"],[1,"skip-main-content"],["href","javascript:void(0)",3,"keydown","click"],["class","comp-announcement-container",3,"endPointUrl","placeholderCode","websiteCode","containerClass","itemClass","closeIconClass",4,"ngIf"],[1,"header-top-desktop","container"],[1,"header-logo-container"],[1,"header-logo-link",3,"href"],["alt","PrintPlace Online Printing Services",1,"company-logo",3,"src"],[1,"header-contact-info-container"],[1,"contact-schedule"],[1,"contact-info-container"],[1,"primary-contact-info"],[3,"href"],[1,"pp-phone","phone-icon"],[1,"phone-no"],[1,"search-bar-container","site-form-group"],["id","desktop_search_widget",1,"search-widget-wrapper","search-bar",3,"hidden"],["desktop_search_widget",""],[3,"onEmitSearch"],["class","customer-section-container top-header-customer-section",4,"ngIf"],["class","top-header-cart-container",4,"ngIf"],["class","global-header-nav-container-desktop",4,"ngIf"],["class","full-width-mobile-header-container",4,"ngIf"],["class","panel mobile-account-dropdown-container container",4,"ngIf"],[1,"panel","mobile-nav-panel"],["id","mobileNavMenu",1,"global-header-nav-container-mobile","container","ga4-nav-click","header",3,"collapse","isAnimated"],["id","mobile_search_widget",1,"search-widget-wrapper"],["mobile_search_widget",""],[3,"tabletViewAndBelow","customerInfo","isLoggedIn","appConfig","routes","headerNavResponseData","onHeaderNavDataResponse",4,"ngIf"],[1,"comp-header-banner-container"],["class","coupon-banner-wrapper",4,"ngIf"],["class","comp-holiday-container client-holiday-wrapper",4,"ngIf"],[1,"comp-header-banner-container","placeholder","clearfix"],["class","comp-announcement-container",3,"endPointUrl","placeholderCode","websiteCode","containerClass","closeIconClass",4,"ngIf"],[1,"header-nav-backdrop",3,"ngClass"],[1,"comp-announcement-container",3,"endPointUrl","placeholderCode","websiteCode","containerClass","itemClass","closeIconClass"],[1,"customer-section-container","top-header-customer-section"],[3,"customerInfo","isLoggedIn","appConfig","routes"],[1,"top-header-cart-container"],[3,"tabletViewAndBelow"],[1,"global-header-nav-container-desktop"],[3,"tabletViewAndBelow","customerInfo","isLoggedIn","appConfig","routes","headerNavResponseData","onHeaderNavDataResponse"],[1,"full-width-mobile-header-container"],[1,"header-top-mobile","container"],[1,"nav-icons-container"],[1,"mobile-nav-toggle-container"],[1,"mobile-nav-toggle","pp-hamburger-menu",3,"click"],[1,"ph
1one-contact-container"],[1,"icon-wrapper",3,"href"],[1,"phone-icon","pp-phone"],[1,"logo-container"],["alt","PrintPlace Online Printing Services",1,"header-logo-img",3,"src"],[1,"account-menu-toggle-container"],["class","account-menu-toggle pp-account",3,"click",4,"ngIf"],[1,"account-menu-toggle","pp-account",3,"click"],[1,"panel","mobile-account-dropdown-container","container"],["id","mobileAccountDropdown",1,"account-dropdown-menu",3,"collapse","isAnimated"],["accountDropdownMenu",""],[1,"account-dropdown-list-item"],[1,"pp-right"],["href","javascript:void(0);",3,"click"],[1,"coupon-banner-wrapper"],[1,"comp-holiday-container","client-holiday-wrapper"],[1,"comp-announcement-container",3,"endPointUrl","placeholderCode","websiteCode","containerClass","closeIconClass"]],template:function(a,o){1&a&&(e.TgZ(0,"header",0)(1,"div",1)(2,"a",2),e.NdJ("keydown",function(s){return o.scrollIntoViewOnEnter(s,"main_content")})("click",function(){return o.scrollIntoView("main_content")}),e._uU(3,"Skip to main content"),e.qZA()(),e.YNc(4,Xe,1,6,"app-announcement-placeholder",3),e.TgZ(5,"div",4)(6,"div",5)(7,"a",6),e._UZ(8,"img",7),e.qZA()(),e.TgZ(9,"div",8)(10,"div",9)(11,"span"),e._uU(12),e.qZA()(),e.TgZ(13,"div",10)(14,"span",11)(15,"a",12),e._UZ(16,"span",13),e.TgZ(17,"span",14),e._uU(18),e.qZA()()()()(),e.TgZ(19,"div",15)(20,"div",16,17)(22,"standard-searchbar",18),e.NdJ("onEmitSearch",function(){return o.initSearch()}),e.qZA()()(),e.YNc(23,en,2,4,"div",19)(24,nn,2,1,"div",20),e.qZA(),e.YNc(25,on,2,1,"div",21)(26,cn,16,6,"div",22)(27,sn,27,7,"div",23),e.TgZ(28,"div",24)(29,"div",25)(30,"div",26,27)(32,"standard-searchbar",18),e.NdJ("onEmitSearch",function(){return o.initSearch()}),e.qZA()(),e.YNc(33,ln,1,6,"header-nav",28),e.qZA()()(),e.TgZ(34,"div",29),e.YNc(35,_n,1,0,"coupon-banner-widget",30)(36,pn,1,0,"holiday-message",31),e.qZA(),e.TgZ(37,"div",32),e.YNc(38,dn,1,5,"app-announcement-placeholder",33),e.qZA(),e._UZ(39,"div",34)),2&a&&(e.Q6J("ngClass",e.kEZ(22,gn,!o.enabledSections.headerNav&&!o.tabletViewAndBelow,!o.enabledSections.headerNav&&o.tabletViewAndBelow,!o.enabledSections.headerNav&&o.tabletViewAndBelow&&o.enabledSections.topHeaderLoginNav)),e.xp6(4),e.Q6J("ngIf",o.enabledSections.holidayBanner),e.xp6(3),e.s9C("href",o.appConfig.site_url,e.LSH),e.xp6(),e.MGl("src","",o.appConfig.shared_image_path,"/pp-logo.svg",e.LSH),e.xp6(4),e.hij("Give us a call ",o.siteConfig.cs_hours,""),e.xp6(3),e.MGl("href","tel:",o.siteConfig.phone_no,">",e.LSH),e.zWS("aria-label","Give us a call ",o.siteConfig.cs_hours," at ",o.siteConfig.phone_no,""),e.xp6(3),e.Oqu(o.siteConfig.phone_no),e.xp6(2),e.Q6J("hidden",!o.enabledSections.searchBar),e.xp6(3),e.Q6J("ngIf",o.enabledSections.topHeaderLoginNav),e.xp6(),e.Q6J("ngIf",o.enabledSections.topHeaderCart),e.xp6(),e.Q6J("ngIf",o.enabledSections.headerNav),e.xp6(),e.Q6J("ngIf",o.tabletViewAndBelow),e.xp6(),e.Q6J("ngIf",o.tabletViewAndBelow),e.xp6(2),e.Q6J("collapse",!o.isMobileMenuNavOpen)("isAnimated",!0),e.xp6(4),e.Q6J("ngIf",o.tabletViewAndBelow),e.xp6(2),e.Q6J("ngIf",(null==o.discountConfig?null:o.discountConfig.coupon_banner)&&(null==o.discountConfig.coupon_banner?null:o.discountConfig.coupon_banner.enabled)),e.xp6(),e.Q6J("ngIf",o.siteConfig.enable_holiday_message&&o.enabledSections.holidayBanner),e.xp6(2),e.Q6J("ngIf",o.enabledSections.holidayBanner),e.xp6(),e.Q6J("ngClass",e.VKq(26,un,o.showBackdrop)))},dependencies:[l.mk,l.O5,p.Y,Re.b,je.n,Pe.C,q,u,F],encapsulation:2})}}return t})()}}]);
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.