1"use strict";(self.webpackChunkaccount_settings=self.webpackChunkaccount_settings||[]).push([[8503],{20673:(F,M,l)=>{l.d(M,{Z:()=>e});var s=l(19212);let e=(()=>{class w{transform(v){return Object.keys(v).map(Z=>(v[Z].key=Z,v[Z]))}static{this.\u0275fac=function(Z){return new(Z||w)}}static{this.\u0275pipe=s.Yjl({name:"objNgFor",type:w,pure:!0})}}return w})()},1940:(F,M,l)=>{l.d(M,{b:()=>Q});var s=l(19212),e=l(39346),w=l(8447),J=l(96814),v=l(40285);const Z=["searchInput"];function C(g,I){if(1&g&&(s.TgZ(0,"button",12),s._UZ(1,"span"),s.qZA()),2&g){const p=s.oxw();s.xp6(),s.Tol(null==p.searchConfig?null:p.searchConfig.inline_clear_btn_class)}}function O(g,I){if(1&g&&(s.TgZ(0,"button",13),s._UZ(1,"span"),s.qZA()),2&g){const p=s.oxw();s.xp6(),s.Tol(null==p.searchConfig?null:p.searchConfig.search_bar_toggle_class)}}function d(g,I){1&g&&s._UZ(0,"button",14)}function m(g,I){if(1&g&&(s.ynx(0),s.TgZ(1,"a",17),s._uU(2),s.qZA(),s._uU(3),s.BQk()),2&g){const p=I.$implicit,x=I.index,_=s.oxw(2);s.xp6(),s.Q6J("href",_.searchPageUrl+p,s.LSH),s.xp6(),s.Oqu(p),s.xp6(),s.hij("",_.getPopularTermsDelimiter(x)," ")}}function y(g,I){if(1&g&&(s.TgZ(0,"div")(1,"div",15),s._uU(2," Looking for "),s.YNc(3,m,4,3,"ng-container",16),s.qZA()()),2&g){const p=s.oxw();s.Gre("comp-popular-search-terms-container ",p.searchTermsPlaceholderClass,""),s.xp6(3),s.Q6J("ngForOf",p.popularSearchTerms)}}let Q=(()=>{class g{constructor(p,x){if(this.ConfigManagerService=p,this.LocalStorageService=x,this.query="",this.hasPopularSearchTerms=!1,this.popularSearchTerms=[],this.searchPageUrl="",this.searchTermsPlaceholderClass="search-terms-placeholder",this.onEmitSearch=new s.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 _=JSON.parse(this.LocalStorageService.getItem(this.popularSearchTermsConfig.cache_key)),A=JSON.parse(_.popularSearchTerms),k=[];for(const q of A)q.query&&k.push(q.query);k.length>0&&(this.popularSearchTerms=k)}}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(p){const x=this.popularSearchTerms.length-1,_=x-1;return p<_?",":p===_?" or":p===x?"?":""}static{this.\u0275fac=function(x){return new(x||g)(s.Y36(e.Q),s.Y36(w.n))}}static{this.\u0275cmp=s.Xpm({type:g,selectors:[["standard-searchbar"]],viewQuery:function(x,_){if(1&x&&s.Gf(Z,5),2&x){let A;s.iGM(A=s.CRH())&&(_.searchInput=A.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(x,_){1&x&&(s.TgZ(0,"div",0)(1,"div",1)(2,"input",2,3),s.NdJ("keyup.enter",function(){return _.redirect()})("click",function(){return _.initSearchClient()})("ngModelChange",function(k){return _.query=k}
1),s.qZA(),s.YNc(4,C,2,3,"button",4),s.TgZ(5,"button",5),s.NdJ("click",function(){return _.redirect()}),s._UZ(6,"span"),s.qZA(),s.YNc(7,O,2,3,"button",6),s.TgZ(8,"div",7),s._UZ(9,"span"),s.qZA(),s.YNc(10,d,1,0,"button",8),s.qZA(),s._UZ(11,"div",9),s.YNc(12,y,4,4,"div",10),s._UZ(13,"div",11),s.qZA()),2&x&&(s.xp6(2),s.s9C("placeholder",null==_.searchConfig?null:_.searchConfig.placeholder),s.Q6J("ngModel",_.query),s.xp6(2),s.Q6J("ngIf",(null==_.searchConfig?null:_.searchConfig.clear_btn)&&(null==_.searchConfig?null:_.searchConfig.inline_clear_btn)),s.xp6(2),s.Tol(null==_.searchConfig?null:_.searchConfig.search_icon_class),s.xp6(),s.Q6J("ngIf",null==_.searchConfig?null:_.searchConfig.has_toggle),s.xp6(2),s.Tol(null==_.searchConfig?null:_.searchConfig.search_loader_class),s.xp6(),s.Q6J("ngIf",(null==_.searchConfig?null:_.searchConfig.clear_btn)&&(null==_.searchConfig?null:_.searchConfig.inline_clear_btn)),s.xp6(2),s.Q6J("ngIf",_.hasPopularSearchTerms))},dependencies:[J.sg,J.O5,v.Fj,v.JJ,v.nD,v.On],encapsulation:2})}}return g})()},96693:(F,M,l)=>{l.d(M,{l:()=>Z});var s=l(15861),w=l(19212),J=l(39346),v=l(69862);let Z=(()=>{class C{constructor(d,m){this.ConfigManagerService=d,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(d,m=null){if(!this.searchConfigs.loaders[d])throw new TypeError("No loader set up for this config.");if(this.isLoaded[d]&&this.isLoaded[d].loaded)return new Promise(g=>{g(!0)});if(this.isLoaded[d]&&this.isLoaded[d].loading)return this.isLoaded[d].callback;const y=typeof searchClientVersion<"u"?`?v=${searchClientVersion}`:m?`?v=${m}`:"",Q=new Promise((g,I)=>{const p=document.createElement("script");p.type="text/javascript",p.src=this.searchConfigs.url+this.searchConfigs.loaders[d]+y,p.readyState?p.onreadystatechange=()=>{("loaded"===p.readyState||"complete"===p.readyState)&&(this.isLoaded[d].loading=!1,this.isLoaded[d]=!0,g(!0))}:p.onload=()=>{this.isLoaded[d].loading=!1,this.isLoaded[d]=!1,g(!0)},document.getElementsByTagName("head")[0].appendChild(p)});return this.isLoaded[d]={loading:!0,loaded:!1,callback:Q},Q}getSearchClientVersion(d){return this.http.get(d+"/search_client_version.txt",{responseType:"text"})}initSearch(d,m){var y=this;return(0,s.Z)(function*(){const Q=yield function e(C){return new Promise((O,d)=>{C.subscribe({next(m){O(m)},error(m){d(m)}})})}(y.getSearchClientVersion(y.appConfig.site_url));yield y.loadSearchFeature("lookahead",Q),d&&new SearchClient.SearchLookahead(y.appConfig.website_code).init(d.nativeElement,!0,{type:"breakpoint",minWidth:y.searchConfig.search_min_width_init_breakpoint??992}),m&&new SearchClient.SearchLookahead(y.appConfig.website_code).init(m.nativeElement,!0,{type:"breakpoint",maxWidth:y.searchConfig.search_max_width_init_breakpoint??991})})()}static{this.\u0275fac=function(m){return new(m||C)(w.LFG(J.Q),w.LFG(v.eN))}}static{this.\u0275prov=w.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"})}}return C})()},18503:(F,M,l)=>{l.r(M),l.d(M,{AppHeaderComponent:()=>Ut});var s=l(15861),e=l(19212),w=l(8154),J=l(98715),v=l(98152);let Z=(()=>{class n{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(t){this.menuNavVisibilitySubject.next(t)}logout(){this.logOutSubject.next(null)}openLoginModal(){this.openLoginModalSubject.next(null)}static{this.\u0275fac=function(a){return new(a||n)}}static{this.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var C=l(39346),O=l(15060),d=l(96814);function m(n,o){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(),e.Oqu(", "+t.customerInfo.first_name)}}function y(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"a",9),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.openLoginModal())}),e._uU(1," Log In "),e.qZA()}}function Q(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"a",9),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.logout())}),e._uU(1," Log Out "),e.qZA()}}const g=n=>({custom:n});let I=(()=>{class n{constructor(t,a,i,r,c,u){this.eRef=t,this.LoginRegisterModalService=a,this.LogoutHandlerService=i,this.CustomerEventsService=r,this.ConfigManagerService=c,this.recentlyViewedProductsService=u,this.showAccountDropdown=!1,this.ordersRoute=this.ConfigManagerService.getConfig("routes").orders_and_proofs}toggleAccountDropdown(){this.showAccountDropdown=!this.showAccountDropdown,this.CustomerEventsService.emitMenuNavVisibility(this.showAccountDropdown),event.stopPropagation()}logout(){this.isLoggedIn=!1;const t=()=>{this.LogoutHandlerService.logout().subscribe(()=>{window.location.href=this.appConfig.site_url})},a=this.customerInfo?.customer_id;a?this.recentlyViewedProductsService.getPageIds(a).then(()=>{this.recentlyViewedProductsService.clearIdsCookie().subscribe(t,t)}).catch(t):t()}openLoginModal(){this.LoginRegisterModalService.openModal({customClass:"site-modal"})}onFocusHideDropdown(t){!document.querySelector(".account-info-container").contains(t.relatedTarget)&&document.querySelector(".account-info-container").classList.contains("open")&&this.toggleAccountDropdown()}static{this.\u0275fac=function(a){return new(a||n)(e.Y36(e.SBq),e.Y36(w.h),e.Y36(J.d),e.Y36(Z),e.Y36(C.Q),e.Y36(O.r))}}static{this.\u0275cmp=e.Xpm({type:n,selectors:[["customer-section"]],inputs:{customerInfo:"customerInfo",isLoggedIn:"isLoggedIn",appConfig:"appConfig",routes:"routes",tabletViewAndBelow:"tabletViewAndBelow",enabledSections:"enabledSections"},decls:12,vars:8,consts:[[1,"account-info-container"],[1,"account-salutation-container",3,"ngClass"],[1,"account-salutation"],[4,"ngIf"],[1,"login-links-wrapper"],["href","javascript:void(0)","class","site-secondary-link",3,"click",4,"ngIf"],["class","site-secondary-link","href","javascript:void(0)",3,"click",4,"ngIf"],[1,"account-link-container"],[1,"site-secondary-link",3,"href"],["href","javascript:void(0)",1,"site-secondary-link",3,"click"]],template:function(a,i){1&a&&(e.TgZ(0,"div",0)(1,"div",1)(2,"span",2),e._uU(3," Hello"),e.YNc(4,m,2,1,"span",3),e._uU(5,"! "),e.qZA(),e.TgZ(6,"span",4),e.YNc(7,y,2,0,"a",5)(8,Q,2,0,"a",6),e.qZA()(),e.TgZ(9,"div",7)(10,"a",8),e._uU(11," My Account "),e.qZA()()()),2&a&&(e.xp6(),e.Q6J("ngClass",e.VKq(6,g,!i.isLoggedIn&&!i.enabledSections.login_nav)),e.xp6(),e.uIk("tabindex",i.isLoggedIn?0:-1),e.xp6(2),e.Q6J("ngIf",i.isLoggedIn),e.xp6(3),e.Q6J("ngIf",!i.isLoggedIn&&i.enabledSections.login_nav),e.xp6(),e.Q6J("ngIf",i.isLoggedIn),e.xp6(2),e.MGl("href","",i.appConfig.account_orders_client,"/order",e.LSH))},dependencies:[d.mk,d.O5],encapsulation:2})}}return n})();class p{getHeaderMenuNavData(o,t,a){return new Promise(function(r,c){var u=new XMLHttpRequest;function b(h){var T={};for(var S in h){var N=h[S].sort;if(T[N]=h[S],Object.keys(T[N].children).length>0){var H=b(T[N].children);T[N].children=H}}return T}u.open(t,o,!0),u.send(a),u.onreadystatechange=function(){if(4===u.readyState)if(200===u.status){console.log("Request done successfully.");var T=JSON.parse(u.responseText),S=T.menu_nav_data,N={},H={};for(var L in S.children){var f=S.children[L];if(typeof f.children<"u"&&Object.keys(f.children).length>0){var G=b(f.children);f.custom_styles.includes("desktop-menu")?(N[f.sort]=f,N[f.sort].children=G):(H[f.sort]=f,H[f.sort].children=G),(f.custom_styles.includes("desktop-menu")&&f.custom_styles.includes("type-1")||f.custom_styles.includes("type-3"))&&(H[f.sort]=f,H[f.sort].children=G)}}r({success:T.success,header_nav_data:N,mobile_header_nav_data:H})}else c(u.status),console.log("Request failed.");else console.log("Request is in progress.")},console.log("Request sent succesfully.")})}}let x=(()=>
1{class n{constructor(){this.menuNavSubject=new v.xQ,this.menuNavData$=this.menuNavSubject.asObservable(),this.NdfHeaderNavLibrary=new p}getMenuNavData(t){this.NdfHeaderNavLibrary.getHeaderMenuNavData(t,"GET",null).then(a=>{this.menuNavSubject.next(a)})}static{this.\u0275fac=function(a){return new(a||n)}}static{this.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var _=l(72786),A=l(6593),k=l(20673),q=l(64150);let Y=(()=>{class n{transform(t){if(null!=t)return t.split(" ")}static{this.\u0275fac=function(a){return new(a||n)}}static{this.\u0275pipe=e.Yjl({name:"whiteSpaceStringNgFor",type:n,pure:!0})}}return n})();var U=l(85395);function B(n,o){1&n&&e._UZ(0,"i",9)}const E=n=>({active:n});function V(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",5)(1,"a",6),e.NdJ("mouseenter",function(){const r=e.CHM(t).$implicit,c=e.oxw(2);return e.KtG(c.openType1MenuNav(r.catalog_item_id,c.navItem.catalog_item_id))})("focus",function(){const r=e.CHM(t).$implicit,c=e.oxw(2);return e.KtG(c.openType1MenuNav(r.catalog_item_id,c.navItem.catalog_item_id))}),e.TgZ(2,"span"),e._uU(3),e.ALo(4,"decodeHtml"),e.ALo(5,"utf8Decode"),e.qZA(),e.YNc(6,B,1,0,"i",7),e.qZA(),e.TgZ(7,"button",8),e.NdJ("click",function(i){e.CHM(t);const r=e.oxw(2);return e.KtG(r.navExpanderOnClickHandler(i))}),e._uU(8),e.ALo(9,"decodeHtml"),e.ALo(10,"utf8Decode"),e.qZA()()}if(2&n){const t=o.$implicit,a=o.first,i=e.oxw(2);e.uIk("data-nav-title",t.catalog_name)("data-has-children",t.hasOwnProperty("children")?1:0),e.xp6(),e.Q6J("href",i.checkRedirectUrl(t.url),e.LSH)("target","n"===(null==t?null:t.new_window_flag)?"_self":"_blank")("ngClass",e.VKq(20,E,a)),e.uIk("data-nav-title",t.catalog_name)("data-target-id","nav-"+t.catalog_item_id),e.xp6(2),e.Oqu(e.lcZ(4,12,e.lcZ(5,14,t.catalog_name))),e.xp6(3),e.Q6J("ngIf",t.hasOwnProperty("children")&&0!=t.children.length),e.xp6(),e.uIk("data-target-id","nav-"+t.catalog_item_id)("data-parent-id","nav-"+i.navItem.catalog_item_id),e.xp6(),e.hij(" Expand: ",e.lcZ(9,16,e.lcZ(10,18,t.catalog_name))," ")}}function $(n,o){if(1&n&&e._UZ(0,"span"),2&n){const t=e.oxw().$implicit;e.Tol(t)}}function K(n,o){if(1&n&&(e.ynx(0),e.YNc(1,$,1,3,"span",18),e.BQk()),2&n){const t=o.$implicit;e.xp6(),e.Q6J("ngIf",-1!=t.indexOf("badge"))}}function W(n,o){if(1&n&&(e.TgZ(0,"div",16),e.YNc(1,K,2,1,"ng-container",17),e.ALo(2,"whiteSpaceStringNgFor"),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(),e.Q6J("ngForOf",e.lcZ(2,1,t.custom_styles))}}function z(n,o){if(1&n&&(e.TgZ(0,"li",12)(1,"a",13)(2,"span",14),e._uU(3),e.ALo(4,"decodeHtml"),e.ALo(5,"utf8Decode"),e.qZA(),e.YNc(6,W,3,3,"div",15),e.qZA()()),2&n){const t=o.$implicit,a=e.oxw().$implicit,i=e.oxw(2);e.uIk("data-parent-title",a.catalog_name)("data-nav-title",t.catalog_name),e.xp6(),e.Q6J("href",i.checkRedirectUrl(t.url),e.LSH)("target","n"===(null==t?null:t.new_window_flag)?"_self":"_blank"),e.xp6(2),e.Oqu(e.lcZ(4,6,e.lcZ(5,8,t.catalog_name))),e.xp6(3),e.Q6J("ngIf",t.custom_styles&&-1!=t.custom_styles.indexOf("badge"))}}function X(n,o){if(1&n&&(e.TgZ(0,"ul",10),e.YNc(1,z,7,10,"li",11),e.ALo(2,"objNgFor"),e.qZA()),2&n){const t=o.$implicit;e.Q6J("ngClass",e.VKq(5,E,o.first)),e.uIk("data-id","nav-"+t.catalog_item_id),e.xp6(),e.Q6J("ngForOf",e.lcZ(2,3,t.children))}}function ee(n,o){if(1&n&&(e.ynx(0),e.TgZ(1,"div")(2,"div",1),e.YNc(3,V,11,22,"div",2),e.ALo(4,"objNgFor"),e.qZA(),e.TgZ(5,"div",3),e.YNc(6,X,3,7,"ul",4),e.ALo(7,"objNgFor"),e.qZA()(),e.BQk()),2&n){const t=e.oxw();e.xp6(),e.Gre("js-nav-type1-menu nav-link-menu ",t.navItem.custom_styles," aria-parent-nav"),e.xp6(2),e.Q6J("ngForOf",e.lcZ(4,5,t.navItem.children)),e.xp6(3),e.Q6J("ngForOf",e.lcZ(7,7,t.navItem.children))}}function te(n,o){if(1&n&&e._UZ(0,"span"),2&n){const t=e.oxw().$implicit;e.Tol(t)}}function ne(n,o){if(1&n&&(e.ynx(0),e.YNc(1,te,1,3,"span",18),e.BQk()),2&n){const t=o.$implicit;e.xp6(),e.Q6J("ngIf",-1!=t.indexOf("badge"))}}function ae(n,o){if(1&n&&(e.TgZ(0,"div",16),e.YNc(1,ne,2,1,"ng-container",17),e.ALo(2,"whiteSpaceStringNgFor"),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(),e.Q6J("ngForOf",e.lcZ(2,1,t.custom_styles))}}function ie(n,o){if(1&n&&(e.TgZ(0,"li",22)(1,"a",13),e._uU(2),e.ALo(3,"decodeHtml"),e.ALo(4,"utf8Decode"),e.YNc(5,ae,3,3,"div",15),e.qZA()()),2&n){const t=o.$implicit,a=e.oxw(2);
1e.uIk("data-nav-title",t.catalog_name),e.xp6(),e.Gre("nav-link ",t.custom_styles,""),e.Q6J("href",a.checkRedirectUrl(t.url),e.LSH)("target","n"===(null==t?null:t.new_window_flag)?"_self":"_blank"),e.xp6(),e.hij(" ",e.lcZ(3,8,e.lcZ(4,10,t.catalog_name))," "),e.xp6(3),e.Q6J("ngIf",t.custom_styles&&-1!=t.custom_styles.indexOf("badge"))}}function oe(n,o){if(1&n&&(e.ynx(0),e.TgZ(1,"div",19)(2,"ul",20),e.YNc(3,ie,6,12,"li",21),e.ALo(4,"objNgFor"),e.qZA()(),e.BQk()),2&n){const t=e.oxw();e.xp6(3),e.Q6J("ngForOf",e.lcZ(4,1,t.navItem.children))}}function re(n,o){if(1&n&&(e.TgZ(0,"li",40)(1,"a",13),e._uU(2),e.ALo(3,"decodeHtml"),e.ALo(4,"utf8Decode"),e.qZA()()),2&n){const t=o.$implicit,a=e.oxw(2);e.uIk("data-nav-title",t.catalog_name),e.xp6(),e.Gre("nav-link ",t.custom_styles,""),e.Q6J("href",a.checkRedirectUrl(t.url),e.LSH)("target","n"===(null==t?null:t.new_window_flag)?"_self":"_blank"),e.xp6(),e.hij(" ",e.lcZ(3,7,e.lcZ(4,9,t.catalog_name))," ")}}function se(n,o){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",23)(2,"div",24)(3,"ul",25),e.YNc(4,re,5,11,"li",26),e.ALo(5,"objNgFor"),e.qZA(),e.TgZ(6,"ul",27)(7,"li",28)(8,"span",29),e._uU(9,"Support"),e.qZA()(),e.TgZ(10,"li",30)(11,"a",31),e._UZ(12,"span",32),e.TgZ(13,"span",33),e._uU(14),e.qZA()()(),e.TgZ(15,"li",34)(16,"a",35),e._UZ(17,"img",36),e.TgZ(18,"span",37),e._uU(19),e.qZA()()(),e.TgZ(20,"li",38)(21,"a",39),e.NdJ("blur",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.lastNavLinkOnBlurHandler())}),e._UZ(22,"img",36),e.TgZ(23,"span",37),e._uU(24,"FAQ Help Center"),e.qZA()()()()()(),e.BQk()}if(2&n){const t=e.oxw();e.xp6(4),e.Q6J("ngForOf",e.lcZ(5,10,t.navItem.children)),e.xp6(6),e.uIk("data-nav-title",t.siteConfig.phone_no),e.xp6(),e.s9C("href",t.siteConfig.phone_no,e.LSH),e.Q6J("aria-label","Give us a call at "+t.siteConfig.phone_no),e.xp6(3),e.Oqu(t.siteConfig.phone_no),e.xp6(),e.MGl("nav-title","customercare@",t.appConfig.email_sender,""),e.xp6(2),e.MGl("src","",t.appConfig.shared_assets_path,"/img/icons/mail.png",e.LSH),e.xp6(2),e.hij("customercare@",t.appConfig.email_sender,""),e.xp6(2),e.MGl("href","",t.appConfig.site_url,"/helpcenter/",e.LSH),e.xp6(),e.MGl("src","",t.appConfig.shared_assets_path,"/img/icons/faq.png",e.LSH)}}let ce=(()=>{class n{constructor(t,a){this.ConfigManagerService=t,this.sanitized=a,this.hoverTimeout=[],this.closingTimeout=[],this.appConfig=this.ConfigManagerService.getConfig("app"),this.siteConfig=this.ConfigManagerService.getConfig("site")}checkRedirectUrl(t){return t?-1==t.indexOf("http")?this.appConfig.site_url+t:t:this.sanitized.bypassSecurityTrustResourceUrl("javascript:void(0)")}openType1MenuNav(t,a){if(t="nav-"+t,(a="nav-"+a)&&t){const c=document.querySelector("[data-id="+a+"]");if(c){var i=c.querySelectorAll(".nav-type1-parent-link");i.length>0&&this.setActiveClass(i,t,"target-id");var r=c.querySelectorAll(".nav-type1-item-list");r.length>0&&this.setActiveClass(r,t,"id")}}}setActiveClass(t,a,i="id"){"target-id"==i&&(i="targetId"),[].forEach.call(t,function(r){r.dataset[i]!=a||r.classList.contains("active")?r.dataset[i]!=a&&r.classList.contains("active")&&r.classList.remove("active"):r.classList.add("active")})}closeLevel1MenuNav(t,a){this.hoverTimeout[a]&&(clearTimeout(this.hoverTimeout[a]),this.closingTimeout[a]=setTimeout(function(){const i=t.target.closest(".js-nav-link-list");i&&i.classList.remove("active")},400))}static{this.\u0275fac=function(a){return new(a||n)(e.Y36(C.Q),e.Y36(A.H7))}}static{this.\u0275cmp=e.Xpm({type:n,selectors:[["header-grouped-nav"]],inputs:{navItemChildren:"navItemChildren",navItem:"navItem"},decls:3,vars:3,consts:[[4,"ngIf"],["data-navi-type","1",1,"nav-link-menu-parents","aria-parent-nav"],["class","nav-type1-parent-wrapper aria-child-nav","data-nav-level","1","data-parent-column","1",4,"ngFor","ngForOf"],["data-navi-type","1",1,"nav-link-menu-items","aria-child-nav"],["class","nav-type1-item-list aria-parent-nav","data-navi-type","1",3,"ngClass",4,"ngFor","ngForOf"],["data-nav-level","1","data-parent-column","1",1,"nav-type1-parent-wrapper","aria-child-nav"],["data-nav-tabindex","true",1,"nav-type1-parent-link",3,"href","target","ngClass","mouseenter","focus"],["class","fa fa-angle-right fa-2x","aria-hidden","true",4,"ngIf"],[1,"js-nav-expander","nav-expander",3,"click"],["aria-hidden","true",1,"fa","fa-angle-right","fa-2x"],["data-navi-type","1",1,"nav-type1-item-list","aria-parent-nav",3,"ngClass"],["data-nav-level","2","data-parent-column","2","class","aria-child-nav","data-navi-type","1",4,"ngFor","ngForOf"],["data-nav-level","2","data-parent-column","2","data-navi-type","1",1,"aria-child-nav"],["data-nav-tabindex","true",3,"href","target"],[1,"item-text"],["class","product-badge",4,"ngIf"],[1,"product-badge"],[4,"ngFor","ngForOf"],[3,"class",4,"ngIf"],[1,"type-2","aria-parent-nav"],["role","menuitem","data-navi-type","2","data-nav-column","true",1,"menu-items-container","aria-parent-nav"],["data-nav-level","1","data-navi-type","2","class","nav-list aria-child-nav",4,"ngFor","ngForOf"],["data-nav-level","1","data-navi-type","2",1,"nav-list","aria-child-nav"],[1,"type-3","aria-parent-nav"],["data-navi-type","2",1,"menu-items-container","aria-nav-child"],["role","menuitem","data-nav-column","true","data-navi-type","2",1,"aria-parent-nav"],["data-nav-level","1","class","nav-list aria-nav-child","data-navi-type","2",4,"ngFor","ngForOf"],["data-nav-column","true","data-navi-type","2",1,"aria-parent-nav"],["data-navi-type","2","data-nav-level","1","data-nav-title","Support",1,"nav-list","aria-nav-child"],["data-nav-tabindex","true","tabindex","0",1,"column-header"],["data-navi-type","2","data-nav-level","2","data-parent-title","Support",1,"nav-list","aria-nav-child"],["data-nav-tabindex","true",1,"nav-link",3,"href","aria-label"],[1,"ndf-phone-solid","solid-phone-icon","icons"],[1,"ph
1one-no"],["data-navi-type","2","data-nav-level","2","data-parent-title","Support",1,"nav-list","aria-nav-child",3,"nav-title"],["data-nav-tabindex","true","href","mailto:[email protected]",1,"nav-link"],[1,"icons",3,"src"],[1,"support-text"],["data-navi-type","2","data-nav-level","2","data-parent-title","Support","data-nav-title","FAQ Help Center",1,"nav-list","aria-nav-child"],["data-nav-tabindex","true",1,"nav-link",3,"href","blur"],["data-nav-level","1","data-navi-type","2",1,"nav-list","aria-nav-child"]],template:function(a,i){1&a&&e.YNc(0,ee,8,9,"ng-container",0)(1,oe,5,3,"ng-container",0)(2,se,25,12,"ng-container",0),2&a&&(e.Q6J("ngIf",i.navItem.custom_styles&&i.navItem.custom_styles.indexOf("type-1")>-1&&i.navItem.hasOwnProperty("children")),e.xp6(),e.Q6J("ngIf",i.navItem.custom_styles&&i.navItem.custom_styles.indexOf("type-2")>-1),e.xp6(),e.Q6J("ngIf",i.navItem.custom_styles&&i.navItem.custom_styles.indexOf("type-3")>-1))},dependencies:[d.mk,d.sg,d.O5,k.Z,q.v,Y,U.j],encapsulation:2})}}return n})();l(16363);const le=["navLinkGroup"];function de(n,o){if(1&n&&(e.TgZ(0,"span",11),e._UZ(1,"img",12),e.qZA()),2&n){const t=e.oxw(4);e.xp6(),e.MGl("src","",t.appConfig.shared_assets_path,"/img/icons/hamburger-menu-white.png",e.LSH)}}function _e(n,o){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",9),e.NdJ("focus",function(i){e.CHM(t);const r=e.oxw().$implicit,c=e.oxw(2);return e.KtG(c.navLinkListOnFocusHandler(i,"nav-"+r.catalog_item_id))}),e.YNc(2,de,2,1,"span",10),e._uU(3),e.ALo(4,"decodeHtml"),e.ALo(5,"utf8Decode"),e.qZA(),e.BQk()}if(2&n){const t=e.oxw().$implicit;e.xp6(),e.uIk("aria-label","All"==t.catalog_name.trim()?"All Products":t.catalog_name),e.xp6(),e.Q6J("ngIf",t.custom_styles&&t.custom_styles.indexOf("icon-hamburger")>-1),e.xp6(),e.hij(" ",e.lcZ(4,3,e.lcZ(5,5,t.catalog_name))," ")}}function pe(n,o){if(1&n&&(e.TgZ(0,"span",11),e._UZ(1,"img",12),e.qZA()),2&n){const t=e.oxw(4);e.xp6(),e.MGl("src","",t.appConfig.shared_asset_path,"/img/icons/hamburger-menu-white.png",e.LSH)}}function ue(n,o){if(1&n&&(e.TgZ(0,"a",13),e.YNc(1,pe,2,1,"span",10),e._uU(2),e.ALo(3,"decodeHtml"),e.ALo(4,"utf8Decode"),e.qZA()),2&n){const t=e.oxw().$implicit,a=e.oxw(2);e.Q6J("href",a.checkRedirectUrl(t.url),e.LSH)("target","n"===(null==t?null:t.new_window_flag)?"_self":"_blank"),e.uIk("data-nav-title",t.catalog_name)("aria-label","All"==t.catalog_name.trim()?"All Products":t.catalog_name),e.xp6(),e.Q6J("ngIf",t.custom_styles&&t.custom_styles.indexOf("icon-hamburger")>-1),e.xp6(),e.hij(" ",e.lcZ(3,6,e.lcZ(4,8,t.catalog_name))," ")}}function ge(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"li",4,5),e.NdJ("mouseenter",function(i){const c=e.CHM(t).$implicit,u=e.oxw(2);return e.KtG(u.openLevel1MenuNav(i,!0,"nav-"+c.catalog_item_id))})("mouseleave",function(i){const c=e.CHM(t).$implicit,u=e.oxw(2);return e.KtG(u.closeLevel1MenuNav(i,"nav-"+c.catalog_item_id))}),e.YNc(2,_e,6,7,"ng-container",6)(3,ue,5,10,"ng-template",null,7,e.W1O),e._UZ(5,"header-grouped-nav",8),e.qZA()}if(2&n){const t=o.$implicit,a=e.MAs(4);e.uIk("data-id","nav-"+t.catalog_item_id)("data-nav-title",t.catalog_name),e.xp6(2),e.Q6J("ngIf",!t.url)("ngIfElse",a),e.xp6(3),e.Q6J("navItem",t)}}function he(n,o){if(1&n&&(e.ynx(0),e.TgZ(1,"div",1)(2,"ul",2),e.YNc(3,ge,6,5,"li",3),e.ALo(4,"objNgFor"),e.qZA()(),e.BQk()),2&n){const t=e.oxw();e.xp6(3),e.Q6J("ngForOf",e.lcZ(4,1,t.headerNavData))}}let P=(()=>{class n{onClick(t){this.eRef.nativeElement.contains(t.target)||(this.visibleNavContent=null)}constructor(t,a,i,r,c,u,b){this.ConfigManagerService=t,this.MenuNavService=a,this.modalService=i,this.CostumerEventsService=r,this.eRef=c,this.sanitized=u,this.GA4NavClick=b,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.closingTimeout=[],this.hoverTimeout=[],this.appConfig=this.ConfigManagerService.getConfig("app"),this.tap="ontouchstart"in document.documentElement,this.MenuNavService.menuNavData$.subscribe(h=>{this.headerNavData=h.header_nav_data,this.mobileHeaderNavData=h.mobile_header_nav_data,this.onHeaderNavDataResponse.emit(h)})}ngOnInit(){this.enableHeaderNavDataFetching&&(this.headerNavResponseData?(this.headerNavData=this.headerNavResponseData.header_nav_data,this.mobileHeaderNavData=this.headerNavResponseData.mobile_header_nav_data):this.getMenuNavData())}ngAfterViewInit(){const t=this,a=setInterval(function(){const i=document.getElementsByClassName("ga4-nav-click header"),r=window.innerWidth>=992;(!r&&1==i.length||r&&i.length>1)&&(t.GA4NavClick.initialize({mainNavText:"",class:".header",disableNavTextDefaultMobile:!0}),clearInterval(a))},500)}getMenuNavData(){this.MenuNavService.getMenuNavData(this.appConfig.site_url+"/header-menu-nav")}openLevel1MenuNav(t,a,i){const r=a?300:0;this.closingTimeout[i]&&clearTimeout(this.closingTimeout[i]),this.hoverTimeout[i]=setTimeout(function(){const c=t.target.closest(".
1js-nav-link-list");c&&c.classList.add("active")},r)}navLinkListOnFocusHandler(t,a){this.resetAllActiveItem(),this.openLevel1MenuNav(t,!1,a)}resetAllActiveItem(){var t=document.querySelectorAll(".js-nav-link-list.active");if(t.length>0)for(var a in t)t[a]instanceof HTMLElement&&t[a].classList.remove("active")}closeLevel1MenuNav(t,a){this.hoverTimeout[a]&&(clearTimeout(this.hoverTimeout[a]),this.closingTimeout[a]=setTimeout(function(){const i=t.target.closest(".js-nav-link-list");i&&i.classList.remove("active")},400))}static{this.\u0275fac=function(a){return new(a||n)(e.Y36(C.Q),e.Y36(x),e.Y36(_.tT),e.Y36(Z),e.Y36(e.SBq),e.Y36(A.H7),e.Y36("GA4NavClick"))}}static{this.\u0275cmp=e.Xpm({type:n,selectors:[["header-nav"]],viewQuery:function(a,i){if(1&a&&(e.Gf(le,5),e.Gf(I,5)),2&a){let r;e.iGM(r=e.CRH())&&(i.navLinkGroup=r.first),e.iGM(r=e.CRH())&&(i.customerSection=r.first)}},hostBindings:function(a,i){1&a&&e.NdJ("click",function(c){return i.onClick(c)},!1,e.evT)},inputs:{navType:"navType",enableHeaderNavDataFetching:"enableHeaderNavDataFetching",headerNavResponseData:"headerNavResponseData",tabletViewAndBelow:"tabletViewAndBelow",customer_info:"customer_info",is_logged_in:"is_logged_in",appConfig:"appConfig",routes:"routes"},outputs:{onHeaderNavDataResponse:"onHeaderNavDataResponse",onLogout:"onLogout",onShowMenuNav:"onShowMenuNav"},decls:1,vars:1,consts:[[4,"ngIf"],["role","application","id","keyboard-start","aria-roledescription","menu"],[1,"header-nav-link-group","ga4-nav-click","ga4-nav-click-header","aria-parent-nav"],["class","nav-link-list js-nav-link-list aria-child-nav","data-nav-level","0","data-has-children","1",3,"mouseenter","mouseleave",4,"ngFor","ngForOf"],["data-nav-level","0","data-has-children","1",1,"nav-link-list","js-nav-link-list","aria-child-nav",3,"mouseenter","mouseleave"],["parentNav",""],[4,"ngIf","ngIfElse"],["catalogLink",""],[3,"navItem"],["data-nav-tabindex","true","nav-orientation","horizontal","tabindex","0",1,"nav-heading-link",3,"focus"],["class","icon-hamburger-menu",4,"ngIf"],[1,"icon-hamburger-menu"],[3,"src"],["data-nav-level","1","data-nav-tabindex","true","nav-orientation","horizontal",1,"nav-heading-link",3,"href","target"]],template:function(a,i){1&a&&e.YNc(0,he,5,3,"ng-container",0),2&a&&e.Q6J("ngIf","header_nav"==i.navType&&i.headerNavData)},dependencies:[d.sg,d.O5,ce,k.Z,q.v,U.j],encapsulation:2})}}return n})();var fe=l(72026),D=l(3609),me=l(22567),R=l(96693),ve=l(17678),Ce=l(22308);function xe(n,o){1&n&&(e.TgZ(0,"div",9),e._uU(1," All Products "),e.qZA())}function be(n,o){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(),e.Oqu(t.customerInfo.first_name+"!")}}function Te(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"a",22),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2);return e.KtG(i.loadLoginRegister())}),e._uU(1,"Log In"),e.qZA()}}function Se(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"li",23)(1,"a",22),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2);return e.KtG(i.loadLoginRegister())}),e._uU(2,"Log In"),e.qZA()()}}function we(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"li",24)(1,"a",25),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2);return e.KtG(i.logout())}),e._uU(2,"Log Out"),e.qZA()()}}function Ze(n,o){if(1&n&&(e.ynx(0),e.TgZ(1,"ul",10)(2,"li",11)(3,"span",12),e._uU(4," Hello,\xa0"),e.YNc(5,be,2,1,"span",6)(6,Te,2,0,"a",13),e.qZA()(),e.TgZ(7,"li",14)(8,"a",15),e._uU(9," Order Status "),e.qZA()(),e.TgZ(10,"li",16)(11,"a",15),e._uU(12," Quotes "),e.qZA()(),e.TgZ(13,"li",17)(14,"a",15),e._uU(15," Saved Designs "),e.qZA()(),e.TgZ(16,"li",18)(17,"a",15),e._uU(18," Mailing List "),e.qZA()(),e.TgZ(19,"li",19)(20,"a",15),e._uU(21," Settings "),e.qZA()(),e.YNc(22,Se,3,0,"li",20)(23,we,3,0,"li",21),e.qZA(),e.BQk()),2&n){const t=e.oxw();e.xp6(5),e.Q6J("ngIf",t.isLoggedIn),e.xp6(),e.Q6J("ngIf",!t.isLoggedIn),e.xp6(2),e.MGl("href","",t.appConfig.account_orders_client,"/order",e.LSH),e.xp6(3),e.MGl("href","",t.appConfig.account_quotes_client,"/quotes",e.LSH),e.xp6(3),e.MGl("href","",t.appConfig.account_designs_client,"/my-saved-designs",e.LSH),e.xp6(3),e.MGl("href","",t.appConfig.account_mailing_client,"/mailing-list",e.LSH),e.xp6(3),e.MGl("href","",t.appConfig.account_settings_client,"/contact-information",e.LSH),e.xp6(2),e.Q6J("ngIf",!t.isLoggedIn),e.xp6(),e.Q6J("ngIf",t.isLoggedIn)}}function ye(n,o){1&n&&e._UZ(0,"i",32)}function Ae(n,o){if(1&n&&(e.ynx(0),e.TgZ(1,"a",29)(2,"span",30),e._uU(3),e.ALo(4,"decodeHtml"),e.ALo(5,"utf8Decode"),e.qZA(),e.YNc(6,ye,1,0,"i",31),e.qZA(),e.BQk()),2&n){const t=e.oxw().$implicit,a=e.oxw();e.xp6(),e.Gre("catalog-item ",t.custom_styles,""),e.s9C("href",t.url,e.LSH),e.uIk("data-nav-level",a.isNavType3?0:1)("data-nav-title",t.catalog_name)("data-has-children",t.children?"1":"0"),e.xp6(2),e.Oqu(e.l
1cZ(4,9,e.lcZ(5,11,t.catalog_name))),e.xp6(3),e.Q6J("ngIf",t.hasOwnProperty("children")&&0!=t.children.length)}}function Ne(n,o){1&n&&e._UZ(0,"i",32)}function Le(n,o){if(1&n&&(e.TgZ(0,"div",33)(1,"span",30),e._uU(2),e.ALo(3,"decodeHtml"),e.ALo(4,"utf8Decode"),e.qZA(),e.YNc(5,Ne,1,0,"i",31),e.qZA()),2&n){const t=e.oxw().$implicit,a=e.oxw();e.uIk("data-nav-level",a.isNavType3?0:1)("data-nav-title",t.catalog_name)("data-has-children",t.children?"1":"0"),e.xp6(2),e.Oqu(e.lcZ(3,5,e.lcZ(4,7,t.catalog_name))),e.xp6(3),e.Q6J("ngIf",t.hasOwnProperty("children")&&0!=t.children.length)}}function Ie(n,o){if(1&n&&e._UZ(0,"span"),2&n){const t=e.oxw().$implicit;e.Tol(t)}}function ke(n,o){if(1&n&&(e.ynx(0),e.YNc(1,Ie,1,3,"span",40),e.BQk()),2&n){const t=o.$implicit;e.xp6(),e.Q6J("ngIf",-1!=t.indexOf("badge"))}}function He(n,o){if(1&n&&(e.TgZ(0,"div",39),e.YNc(1,ke,2,1,"ng-container",35),e.ALo(2,"whiteSpaceStringNgFor"),e.qZA()),2&n){const t=e.oxw(2).$implicit;e.xp6(),e.Q6J("ngForOf",e.lcZ(2,1,t.custom_styles))}}function Me(n,o){if(1&n&&(e.TgZ(0,"a",37)(1,"span",30),e._uU(2),e.ALo(3,"decodeHtml"),e.ALo(4,"utf8Decode"),e.qZA(),e.YNc(5,He,3,3,"div",38),e.qZA()),2&n){const t=e.oxw().$implicit,a=e.oxw(3);e.Gre("catalog-item catalog-sub-item ",t.custom_styles,""),e.Q6J("href",a.checkRedirectUrl(t.url),e.LSH),e.xp6(2),e.hij(" ",e.lcZ(3,6,e.lcZ(4,8,t.catalog_name))," "),e.xp6(3),e.Q6J("ngIf",!a.isNavType3&&t.custom_styles&&-1!=t.custom_styles.indexOf("badge"))}}function Qe(n,o){if(1&n&&(e.ynx(0),e.YNc(1,Me,6,10,"a",36),e.BQk()),2&n){const t=o.$implicit;e.xp6(),e.Q6J("ngIf",!(t.custom_styles&&-1!==t.custom_styles.indexOf("column-header")))}}function Je(n,o){if(1&n&&(e.ynx(0),e.TgZ(1,"a",41),e._UZ(2,"span",42),e.TgZ(3,"span",43),e._uU(4),e.qZA()(),e.TgZ(5,"a",41),e._UZ(6,"img",44),e.TgZ(7,"span",45),e._uU(8,"[email protected]"),e.qZA()(),e.TgZ(9,"a",41),e._UZ(10,"img",44),e.TgZ(11,"span",45),e._uU(12,"FAQ Help Center"),e.qZA()(),e.BQk()),2&n){const t=e.oxw(3);e.xp6(),e.MGl("href","tel:1-",t.siteConfig.phone_no,"",e.LSH),e.uIk("aria-label","Give us a call at "+t.siteConfig.phone_no),e.xp6(3),e.Oqu(t.siteConfig.phone_no),e.xp6(),e.MGl("href","mailto:customercare@",t.appConfig.email_sender,"",e.LSH),e.xp6(),e.MGl("src","",t.appConfig.shared_assets_path,"/img/icons/mail.png",e.LSH),e.xp6(3),e.MGl("href","",t.appConfig.site_url,"/helpcenter/",e.LSH),e.xp6(),e.MGl("src","",t.appConfig.shared_assets_path,"/img/icons/faq.png",e.LSH)}}function qe(n,o){if(1&n&&(e.ynx(0),e.TgZ(1,"div",34),e.YNc(2,Qe,2,1,"ng-container",35),e.ALo(3,"objNgFor"),e.YNc(4,Je,13,7,"ng-container",6),e.qZA(),e.BQk()),2&n){const t=e.oxw().$implicit,a=e.oxw();e.xp6(2),e.Q6J("ngForOf",e.lcZ(3,2,t.children)),e.xp6(2),e.Q6J("ngIf","account_menu"==a.menuType)}}function Oe(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",26),e.NdJ("click",function(){const r=e.CHM(t).$implicit,c=e.oxw();return e.KtG(c.subItemToggle(r.catalog_item_id))}),e.YNc(1,Ae,7,13,"ng-container",27)(2,Le,6,9,"ng-template",null,28,e.W1O)(4,qe,5,4,"ng-container",6),e.qZA()}if(2&n){const t=o.$implicit,a=e.MAs(3);e.Gre("parent-item catalog-item-list-",t.catalog_item_id,""),e.xp6(),e.Q6J("ngIf",t.url)("ngIfElse",a),e.xp6(3),e.Q6J("ngIf",t.children)}}const Ue=(n,o)=>({"left-direction":n,"right-direction":o});let Fe=(()=>{class n{constructor(t,a){this.ConfigManagerService=t,this.sanitized=a,this.isLoggedIn=!1,this.showSlideLabel=!0,this.menuType="mobile_product_menu",this.onMenuToggle=new e.vpe,this.onLoginRegister=new e.vpe,this.onLogOut=new e.vpe,this.isNavType3=!1,this.appConfig=this.ConfigManagerService.getConfig("app"),this.siteConfig=this.ConfigManagerService.getConfig("site"),this.routes=this.ConfigManagerService.getConfig("routes").portal_client}ngOnInit(){this.navData=this.headerNavData.children,this.headerNavData.custom_styles&&this.headerNavData.custom_styles.indexOf("type-3")>-1&&(this.isNavType3=!0,this.navData={0:this.headerNavData})}menuToggle(t){this.onMenuToggle.emit(t)}loadLoginRegister(){this.onMenuToggle.emit("account_menu"),this.onLoginRegister.emit()}logout(){this.onLogOut.emit()}subItemToggle(t){const a=document.querySelector(".catalog-item-list-"+t);if(a){const i=a.querySelector(".sub-item");if(i){let r=0;[].forEach.call(i.children,function(u){r+=u.offsetHeight});const c=r+"px";if(a.classList.contains("active"))a.classList.remove("active"),i.setAttribute("style","height: 0");else{const u=document.querySelectorAll("#mobile_main_navigation .parent-item");[].forEach.call(u,function(b){const h=b.querySelector(".sub-item");b.classList.remove("active"),h&&h.setAttribute("style","height: 0")}),a.classList.add("active"),i.setAttribute("style","height: "+c)}}}}checkRedirectUrl(t){return t?-1==t.indexOf("http")?this.appConfig.site_url+t:t:this.sanitized.bypassSecurityTrustResourceUrl("javascript:void(0)")}static{this.\u0275fac=function(a){return new(a||n)(e.Y36(C.Q),e.Y36(A.H7))}}static{this.\u0275cmp=e.Xpm({type:n,selectors:[["header-side-nav"]],inputs:{headerNavData:"headerNavData",isLoggedIn:"isLoggedIn",customerInfo:"customerInfo",showSlideLabel:"showSlideLabel",menuType:"menuType"},outputs:{onMenuToggle:"onMenuToggle",onLoginRegister:"onLoginRegister",onLogOut:"onLogOut"},decls:10,vars:9,consts:[[1,"mobile-side-nav-drawer-slider","ga4-nav-click","ga4-nav-click-
1header",3,"ngClass"],[1,"mobile-side-nav-drawer-slide","mobile-side-nav-drawer-list"],[1,"close-container"],[1,"ndf-close",3,"click"],["class","mobile-nav-title","data-nav-level","0","data-nav-title","All Products","data-has-children","1",4,"ngIf"],["id","mobile_main_navigation","data-drawer-list","0",1,"catalog-list","main-item"],[4,"ngIf"],[3,"class","click",4,"ngFor","ngForOf"],["data-drawer-id","backdrop","id","js-ex-drawer-backdrop",1,"mobile-side-nav-drawer__backdrop",3,"click"],["data-nav-level","0","data-nav-title","All Products","data-has-children","1",1,"mobile-nav-title"],[1,"catalog-list","account"],[1,"catalog-item","account-item"],[1,"account-salutation"],["class","login-link site-secondary-link",3,"click",4,"ngIf"],["data-nav-level","0","data-nav-title","Order Status",1,"catalog-item","account-item"],[1,"account-link","site-secondary-link",3,"href"],["data-nav-level","0","data-nav-title","Quotes",1,"catalog-item","account-item"],["data-nav-level","0","data-nav-title","Saved Designs",1,"catalog-item","account-item"],["data-nav-level","0","data-nav-title","Mailing List",1,"catalog-item","account-item"],["data-nav-level","0","data-nav-title","Settings",1,"catalog-item","account-item"],["data-nav-level","0","data-nav-title","Log In","class","catalog-item account-item",4,"ngIf"],["data-nav-level","0","data-nav-title","Log Out","class","catalog-item account-item",4,"ngIf"],[1,"login-link","site-secondary-link",3,"click"],["data-nav-level","0","data-nav-title","Log In",1,"catalog-item","account-item"],["data-nav-level","0","data-nav-title","Log Out",1,"catalog-item","account-item"],[1,"logout-link","site-secondary-link",3,"click"],[3,"click"],[4,"ngIf","ngIfElse"],["notLinkCatalog",""],["data-parent-title","All Products",3,"href"],[1,"menu-item"],["aria-hidden","true","class","dropdown-icon fa fa-angle-down",4,"ngIf"],["aria-hidden","true",1,"dropdown-icon","fa","fa-angle-down"],["data-parent-title","All Products",1,"catalog-item"],[1,"sub-item"],[4,"ngFor","ngForOf"],[3,"href","class",4,"ngIf"],[3,"href"],["class","product-badge",4,"ngIf"],[1,"product-badge"],[3,"class",4,"ngIf"],[1,"nav-link","catalog-item",3,"href"],[1,"ndf-phone-solid","solid-phone-icon","icons"],[1,"phone-no"],[1,"icons",3,"src"],[1,"support-text"]],template:function(a,i){1&a&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"span",3),e.NdJ("click",function(){return i.menuToggle(i.menuType)}),e.qZA()(),e.YNc(4,xe,2,0,"div",4),e.TgZ(5,"div",5),e.YNc(6,Ze,24,9,"ng-container",6)(7,Oe,5,6,"div",7),e.ALo(8,"objNgFor"),e.qZA()()(),e.TgZ(9,"div",8),e.NdJ("click",function(){return i.menuToggle(i.menuType)}),e.qZA()),2&a&&(e.Q6J("ngClass",e.WLB(6,Ue,"mobile_product_menu"==i.menuType,"account_menu"==i.menuType)),e.xp6(4),e.Q6J("ngIf",i.showSlideLabel),e.xp6(2),e.Q6J("ngIf",i.isNavType3),e.xp6(),e.Q6J("ngForOf",e.lcZ(8,4,i.navData)))},dependencies:[d.mk,d.sg,d.O5,k.Z,q.v,Y,U.j],encapsulation:2})}}return n})();var De=l(3214),Ge=l(14687),Ye=l(18073),Ee=l(8435);function Pe(n,o){if(1&n&&(e.TgZ(0,"a",12),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.s9C("href",t.poCartUrl,e.LSH),e.uIk("aria-label","print orders cart with "+t.poCartCount+" item"+(t.poCartCount>1?"s":"")),e.xp6(),e.hij(" Print orders (",t.poCartCount,") ")}}function Re(n,o){if(1&n&&(e.TgZ(0,"a",12),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.s9C("href",t.poCartUrl,e.LSH),e.uIk("aria-label","print orders cart with "+t.poCartCount+" item"+(t.poCartCount>1?"s":"")),e.xp6(),e.hij(" Print orders (",t.poCartCount,") ")}}function je(n,o){if(1&n&&(e.TgZ(0,"a",12),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.s9C("href",t.ffrCartUrl,e.LSH),e.uIk("aria-label","free file proof cart with "+t.ffrCartCount+" item"+(t.ffrCartCount>1?"s":"")),e.xp6(),e.hij(" Free proofs (",t.ffrCartCount,") ")}}function Be(n,o){if(1&n&&(e.TgZ(0,"a",12),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.s9C("href",t.ffrCartUrl,e.LSH),e.uIk("aria-label","free file proof cart with "+t.ffrCartCount+" item"+(t.ffrCartCount>1?"s":"")),e.xp6(),e.hij(" Free proofs (",t.ffrCartCount,") ")}}const Ve=n=>({"has-item":n}),j=n=>({open:n});
1function $e(n,o){if(1&n&&(e.ynx(0),e.TgZ(1,"a",3),e._UZ(2,"span",4),e.TgZ(3,"span",5)(4,"span",6),e._uU(5),e.qZA()()(),e.TgZ(6,"div",7)(7,"ul",8)(8,"li"),e.YNc(9,Pe,2,3,"a",9)(10,Re,2,3,"ng-template",null,10,e.W1O),e.qZA(),e.TgZ(12,"li"),e.YNc(13,je,2,3,"a",9)(14,Be,2,3,"ng-template",null,11,e.W1O),e.qZA()()(),e.BQk()),2&n){const t=e.MAs(11),a=e.MAs(15),i=e.oxw();e.xp6(),e.Q6J("ngClass",e.VKq(8,Ve,i.poCartCount+i.ffrCartCount>0)),e.uIk("aria-label","cart with "+(i.poCartCount+i.ffrCartCount)+" item"+(i.poCartCount+i.ffrCartCount>1?"s":"")),e.xp6(4),e.Oqu(i.poCartCount+i.ffrCartCount),e.xp6(),e.Q6J("ngClass",e.VKq(10,j,i.showCartCountDropdown)),e.xp6(3),e.Q6J("ngIf",!i.isDesignToolPage)("ngIfElse",t),e.xp6(4),e.Q6J("ngIf",!i.isDesignToolPage)("ngIfElse",a)}}function Ke(n,o){if(1&n&&(e.TgZ(0,"a",12),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.s9C("href",t.poCartUrl,e.LSH),e.xp6(),e.hij(" Print orders (",t.poCartCount,") ")}}function We(n,o){if(1&n&&(e.TgZ(0,"a",12),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.s9C("href",t.poCartUrl,e.LSH),e.xp6(),e.hij(" Print orders (",t.poCartCount,") ")}}function ze(n,o){if(1&n&&(e.TgZ(0,"a",12),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.s9C("href",t.ffrCartUrl,e.LSH),e.xp6(),e.hij(" Free proofs (",t.ffrCartCount,") ")}}function Xe(n,o){if(1&n&&(e.TgZ(0,"a",12),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.s9C("href",t.ffrCartUrl,e.LSH),e.xp6(),e.hij(" Free proofs (",t.ffrCartCount,") ")}}const et=n=>({shown:n});function tt(n,o){if(1&n&&(e.TgZ(0,"span",13)(1,"a",14),e._UZ(2,"span",15),e.TgZ(3,"span",16)(4,"span",6),e._uU(5),e.qZA()()(),e.TgZ(6,"div",7)(7,"ul",8)(8,"li"),e.YNc(9,Ke,2,2,"a",9)(10,We,2,2,"ng-template",null,17,e.W1O),e.qZA(),e.TgZ(12,"li"),e.YNc(13,ze,2,2,"a",9)(14,Xe,2,2,"ng-template",null,18,e.W1O),e.qZA()()()()),2&n){const t=e.MAs(11),a=e.MAs(15),i=e.oxw();e.xp6(3),e.Q6J("ngClass",e.VKq(7,et,i.poCartCount+i.ffrCartCount)),e.xp6(2),e.hij(" ",i.poCartCount+i.ffrCartCount," "),e.xp6(),e.Q6J("ngClass",e.VKq(9,j,i.showCartCountDropdown)),e.xp6(3),e.Q6J("ngIf",!i.isDesignToolPage)("ngIfElse",t),e.xp6(4),e.Q6J("ngIf",!i.isDesignToolPage)("ngIfElse",a)}}let nt=(()=>{class n{onClick(t){this.eRef.nativeElement.contains(t.target)?this.redirectToCart():this.hideDropDown()}onScroll(t){window.innerWidth<768&&this.hideDropDown()}constructor(t,a,i,r,c,u,b,h){this.eRef=t,this.Router=a,this.CartCountService=i,this.ConfigManagerService=r,this.StorageService=c,this.RefreshTokenHelper=u,this.FfrCartCountService=b,this.Location=h,this.poCartCount=0,this.ffrCartCount=0,this.showCartCountDropdown=!1,this.isDesignToolPage=!1,this.tabletViewAndBelow=!1,this.Router.events.subscribe(N=>{N instanceof D.m2&&(this.isDesignToolPage=!1,this.Location.path().search("/design/tool")>=0&&(this.isDesignToolPage=!0))});const T=this.ConfigManagerService.getConfig("routes").checkout_client,S=this.ConfigManagerService.getConfig("app").checkout_client_url;this.poCartUrl=S+"/"+T.cart,this.cartConfig=this.ConfigManagerService.getConfig("cart"),this.poCartId=this.StorageService.getItem(this.ConfigManagerService.getConfig("storage_keys").cart_id),this.ffrCartId=this.StorageService.getItem(this.ConfigManagerService.getConfig("storage_keys").ffr_cart_id),this.ffrCartUrl=S+"/"+T.ffr_cart}ngOnInit(){this.poCartId&&(this.cartConfig?.enable_cart_api?this.CartCountService.getCartCountServerless(this.poCartId).then(t=>{this.poCartCount=Number(t)}):this.CartCountService.getCartCount(this.poCartId).then(t=>{this.poCartCount=Number(t)})),this.CartCountService.cartCount$.subscribe(t=>{this.poCartCount=t}),this.ffrCartId&&(this.cartConfig?.enable_cart_api?this.FfrCartCountService.getCartCountServerless(this.ffrCartId).then(t=>{this.ffrCartCount=Number(t)}):this.FfrCartCountService.getCartCount(this.ffrCartId).then(t=>{this.ffrCartCount=Number(t)})),this.FfrCartCountService.ffrCartCount$.subscribe(t=>{this.ffrCartCount=t}),this.RefreshTokenHelper.persistentCart$.subscribe(t=>{t&&(t.hasOwnProperty("cart_count")&&(this.poCartCount=t.cart_count),t.hasOwnProperty("ffr_cart_count")&&(this.ffrCartCount=Number(t.ffr_cart_count)))})}hideDropDown(){this.showCartCountDropdown&&(this.showCartCountDropdown=!this.showCartCountDropdown)}redirectToCart(){return this.poCartCount>0&&this.ffrCartCount>0?(this.showCartCountDropdown=!this.showCartCountDropdown,!0):!!this.isDesignToolPage||(0==this.ffrCartCount&&(window.location.href=this.poCartUrl),this.ffrCartCount>0&&0==this.poCartCount&&(window.location.href=this.ffrCartUrl),void(window.location.href=this.poCartUrl))}get showAsLink(){let t=!1;return(!this.poCartCount&&!this.ffrCartCount||this.poCartCount&&!this.ffrCartCount||!this.poCartCount&&this.ffrCartCount)&&(t=!0),t}static{this.\u0275fac=function(a){return new(a||n)(e.Y36(e.SBq),e.Y36(D.F0),e.Y36(De.Y),e.Y36(C.Q),e.Y36(Ge.V),e.Y36(Ye.P),e.Y36(Ee.e),e.Y36(d.Ye))}}
1static{this.\u0275cmp=e.Xpm({type:n,selectors:[["cart-count"]],hostBindings:function(a,i){1&a&&e.NdJ("click",function(c){return i.onClick(c)},!1,e.evT)("scroll",function(c){return i.onScroll(c)},!1,e.Jf7)},inputs:{tabletViewAndBelow:"tabletViewAndBelow"},decls:4,vars:2,consts:[[1,"cart-count-wrapper"],[4,"ngIf","ngIfElse"],["mobileCartCount",""],["href","javascript:void(0)",1,"cart-btn",3,"ngClass"],[1,"ndf-cart-solid","cart-icon"],[1,"cart-count"],[1,"count"],[3,"ngClass"],[1,"dropdown-menu","cart-dropdown-menu","pull-right"],["class","cart-link",3,"href",4,"ngIf","ngIfElse"],["poCartLinkDesktop",""],["ffrCartLinkDesktop",""],[1,"cart-link",3,"href"],[1,"cart-count-wrapper-mobile","hidden-sm","hidden-md"],[1,"cart-btn-mobile"],[1,"ndf-cart-solid","cart-icon","solid-cart-icon"],[1,"cart-count","shown",3,"ngClass"],["poCartLinkMobile",""],["ffrCartLinkMobile",""]],template:function(a,i){if(1&a&&(e.TgZ(0,"div",0),e.YNc(1,$e,16,12,"ng-container",1)(2,tt,16,11,"ng-template",null,2,e.W1O),e.qZA()),2&a){const r=e.MAs(3);e.xp6(),e.Q6J("ngIf",!i.tabletViewAndBelow)("ngIfElse",r)}},dependencies:[d.mk,d.O5],encapsulation:2})}}return n})();var at=l(1940);const it=["search_widget"];let ot=(()=>{class n{constructor(t){this.SearchClientLoaderService=t,this.isSearchClientLoaded=!1}initSearch(){var t=this;return(0,s.Z)(function*(){t.isSearchClientLoaded||(t.SearchClientLoaderService.initSearch(t.desktop?t.searchWidget:null,t.desktop?null:t.searchWidget),t.isSearchClientLoaded=!0)})()}static{this.\u0275fac=function(a){return new(a||n)(e.Y36(R.l))}}static{this.\u0275cmp=e.Xpm({type:n,selectors:[["searchbar"]],viewQuery:function(a,i){if(1&a&&e.Gf(it,7),2&a){let r;e.iGM(r=e.CRH())&&(i.searchWidget=r.first)}},inputs:{desktop:"desktop"},decls:3,vars:4,consts:[[3,"id"],["search_widget",""],[3,"onEmitSearch"]],template:function(a,i){1&a&&(e.TgZ(0,"div",0,1)(2,"standard-searchbar",2),e.NdJ("onEmitSearch",function(){return i.initSearch()}),e.qZA()()),2&a&&(e.Gre("search-widget-wrapper search-bar ",i.desktop?"":"mobile-search-container",""),e.s9C("id",i.desktop?"search_widget":"mobile_search_widget"))},dependencies:[at.b],encapsulation:2})}}return n})();const rt=["desktop_search_widget"],st=["mobile_search_widget"],ct=["accountDropdownMenu"];function lt(n,o){if(1&n&&e._UZ(0,"announcement-placeholder",19),2&n){const t=e.oxw(2);e.Q6J("endPointUrl",t.appConfig.submodule_api_url+"/announcements")("placeholderCode","HEADER_TOP")("websiteCode",t.appConfig.websiteCode)("containerClass","header-top")("closeIconClass","ndf-close")}}function dt(n,o){1&n&&e._UZ(0,"searchbar",34),2&n&&e.Q6J("desktop",!0)}function _t(n,o){if(1&n&&(e.TgZ(0,"div",35),e._UZ(1,"customer-section",36)(2,"cart-count",37),e.qZA()),2&n){const t=e.oxw(3);e.xp6(),e.Q6J("customerInfo",t.customerInfo)("isLoggedIn",t.isLoggedIn)("appConfig",t.appConfig)("routes",t.routes)("tabletViewAndBelow",!t.tabletViewAndBelow)("enabledSections",t.enabledSections),e.xp6(),e.Q6J("tabletViewAndBelow",t.tabletViewAndBelow)}}function pt(n,o){if(1&n&&(e.TgZ(0,"div",20)(1,"div",21)(2,"a",22),e._UZ(3,"img",23),e.qZA()(),e.TgZ(4,"div",24)(5,"div",25)(6,"a",26),e._UZ(7,"span",27),e.TgZ(8,"span",28),e._uU(9),e.qZA()()()(),e.TgZ(10,"div",29)(11,"div",30,31),e.YNc(13,dt,1,1,"searchbar",32),e.qZA()(),e.YNc(14,_t,3,7,"div",33),e.qZA()),2&n){const t=e.oxw(2);e.xp6(2),e.s9C("href",t.appConfig.site_url,e.LSH),e.xp6(),e.MGl("src","",t.appConfig.shared_assets_path,"/img/ndf-logo.svg",e.LSH),e.xp6(3),e.MGl("href","tel:",t.siteConfig.phone_no,">",e.LSH),e.zWS("aria-label","Give us a call ",t.siteConfig.cs_hours," at ",t.siteConfig.phone_no,""),e.xp6(3),e.Oqu(t.siteConfig.phone_no),e.xp6(2),e.Q6J("hidden",!t.enabledSections.search_bar),e.xp6(2),e.Q6J("ngIf",t.enabledSections.search_bar),e.xp6(),e.Q6J("ngIf",t.enabledSections.top_header_login_nav)}}function ut(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",38)(1,"header-nav",39),e.NdJ("onHeaderNavDataResponse",function(i){e.CHM(t);const r=e.oxw(2);return e.KtG(r.handleHeaderNavResponse(i))}),e.qZA()()}if(2&n){const t=e.oxw(2);e.xp6(),e.Q6J("navType","header_nav")("tabletViewAndBelow",t.tabletViewAndBelow)("customerInfo",t.customerInfo)("isLoggedIn",t.isLoggedIn)("appConfig",t.appConfig)("routes",t.routes)("headerNavResponseData",t.headerNavResponseData)}}function gt(n,o){1&n&&e._UZ(0,"searchbar",34),2&n&&e.Q6J("desktop",!1)}function ht(n,o){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"header-side-nav",60),e.NdJ("onMenuToggle",function(i){e.CHM(t);const r=e.oxw(5);return e.KtG(r.menuToggle(i))}),e.qZA(),e.BQk()}if(2&n){const t=e.oxw().$implicit;e.xp6(),e.Q6J("headerNavData",t)("menuType","mobile_product_menu")}}function ft(n,o){if(1&n&&(e.ynx(0),e.YNc(1,ht,2,2,"ng-container",57),e.BQk()),2&n){const t=o.$implicit,a=e.oxw(4);e.xp6(),e.Q6J("ngIf",t.custom_styles&&a.checkType1Display(t.custom_styles))}}function mt(n,o){if(1&n&&(e.TgZ(0,"div",58),e.YNc(1,ft,2,1,"ng-container",59),e.ALo(2,"objNgFor"),e.qZA()),2&n){const t=e.oxw(3);e.xp6(),e.Q6J("ngForOf",e.lcZ(2,1,t.mobileMenuData))}}function vt(n,o){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"header-side-nav",62),e.NdJ("onLoginRegister",function(){e.CHM(t);const i=e.oxw(5);return e.KtG(i.loadLoginRegister())})("onLogOut",function(){e.CHM(t);const i=e.oxw(5);return e.KtG(i.logout())})("onMenuToggle",function(i){e.CHM(t);const r=e.oxw(5);return e.KtG(r.menuToggle(i))}),e.qZA(),e.BQk()}if(2&n){const t=e.oxw().$implicit,a=e.oxw(4);e.xp6(),e.Q6J("headerNavData",t)("isLoggedIn",a.isLoggedIn)("customerInfo",a.customerInfo)("showSlideLabel",!1)("menuType","account_menu")}}function Ct(n,o){if(1&n&&(e.ynx(0),e.YNc(1,vt,2,5,"ng-container",57),e.BQk()),2&n){const t=o.$implicit;e.xp6(),e.Q6J("ngIf",t.custom_styles&&t.custom_styles.indexOf("type-3")>-1)}}function xt(n,o){if(1&n&&(e.TgZ(0,"div",61),e.YNc(1,Ct,2,1,"ng-container",59),e.ALo(2,"objNgFor"),e.qZA()),2&n){const t=e.oxw(3);e.xp6(),e.Q6J("ngForOf",e.lcZ(2,1,t.mobileMenuData))}}function bt(n,o){if(1&n&&(e.TgZ(0,"a",26)(1,"span",66),e._uU(2),e.ALo(3,"decodeHtml"),e.ALo(4,"utf8Decode"),e.qZA()()),2&n){const t=o.$implicit,a=e.oxw(6);e.Gre("",t.custom_styles," catalog-item catalog-sub-item sub-item-list"),e.Q6J("href",a.checkRedirectUrl(t.url),e.LSH),e.xp6(2),e.hij("",e.lcZ(3,5,e.lcZ(4,7,t.catalog_name))," ")}}function Tt(n,o){if(1&n&&(e.TgZ(0,"div",64),e.YNc(1,bt,5,9,"a",65),e.ALo(2,"objNgFor"),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(),e.Q6J("ngForOf",e.lcZ(2,1,t.children))}}function St(n,o){if(1&n&&(e.ynx(0),e.YNc(1,Tt,3,3,"div",63),e.BQk()),2&n){const t=o.$implicit;e.xp6(),e.Q6J("ngIf",t.custom_styles&&t.custom_styles.indexOf("mobile-type-1")>-1)}}function wt(n,o){if(1&n&&(e.ynx(0),e.YNc(1,St,2,1,"ng-container",59),e.ALo(2,"objNgFor"),e.BQk()),2&n){const t=e.oxw(3);e.xp6(),e.Q6J("ngForOf",e.lcZ(2,1,t.mobileMenuData))}}const Zt=n=>({open:n});function yt(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",40)(1,"div",41)(2,"div",42),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2);return e.KtG(i.menuToggle("mobile_product_menu"))}),e._UZ(3,"span",43),e.qZA(),e.TgZ(4,"div",21)(5,"a",22),e._UZ(6,"img",44),e.qZA()()(),e.TgZ(7,"div",45),e.YNc(8,gt,1,1,"searchbar",32),e.TgZ(9,"button",46),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2);return e.KtG(i.menuToggle("search"))}),e._UZ(10,"img",47),e.qZA()(),e.TgZ(11,"div",48)(12,"div",49)(13,"span",50),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2);return e.KtG(i.menuToggle("search"))}),e._UZ(14,"img",51),e.qZA()(),e.TgZ(15,"div",52)(16,"span",50),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2);return e.KtG(i.menuToggle("account_menu"))}),e._UZ(17,"img",51),e.qZA()(),e.TgZ(18,"div",53),e._UZ(19,"cart-count",37),e.qZA()(),e.YNc(20,mt,3,3,"div",54)(21,xt,3,3,"div",55),e.TgZ(22,"div",56),e.YNc(23,wt,3,3,"ng-container",57),e.qZA()()}if(2&n){const t=e.oxw(2);
1e.Q6J("ngClass",e.VKq(11,Zt,t.tabletViewAndBelow)),e.xp6(5),e.s9C("href",t.appConfig.site_url,e.LSH),e.xp6(),e.MGl("src","",t.appConfig.shared_assets_path,"/img/ndf-logo.svg",e.LSH),e.xp6(2),e.Q6J("ngIf",t.enabledSections.search_bar),e.xp6(2),e.MGl("src","",t.appConfig.shared_assets_path,"/img/icons/close-circle.png",e.LSH),e.xp6(4),e.MGl("src","",t.appConfig.shared_assets_path,"/img/icons/search-icon.svg",e.LSH),e.xp6(3),e.MGl("src","",t.appConfig.shared_assets_path,"/img/icons/user-icon.svg",e.LSH),e.xp6(2),e.Q6J("tabletViewAndBelow",t.tabletViewAndBelow),e.xp6(),e.Q6J("ngIf",t.mobileMenuData),e.xp6(),e.Q6J("ngIf",t.mobileMenuData),e.xp6(2),e.Q6J("ngIf",t.mobileMenuData)}}function At(n,o){if(1&n&&(e.TgZ(0,"li",72)(1,"a",26)(2,"span",66),e._uU(3),e.ALo(4,"decodeHtml"),e.ALo(5,"utf8Decode"),e.qZA()()()),2&n){const t=o.$implicit,a=e.oxw(6);e.uIk("data-nav-title",t.catalog_name),e.xp6(),e.Gre("",t.custom_styles," catalog-item catalog-sub-item"),e.Q6J("href",a.checkRedirectUrl(t.url),e.LSH),e.xp6(2),e.hij("",e.lcZ(4,6,e.lcZ(5,8,t.catalog_name))," ")}}function Nt(n,o){if(1&n&&(e.TgZ(0,"div",70)(1,"ul",64),e.YNc(2,At,6,10,"li",71),e.ALo(3,"objNgFor"),e.qZA()()),2&n){const t=e.oxw().$implicit;e.xp6(2),e.Q6J("ngForOf",e.lcZ(3,1,t.children))}}function Lt(n,o){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"header-side-nav",60),e.NdJ("onMenuToggle",function(i){e.CHM(t);const r=e.oxw(5);return e.KtG(r.menuToggle(i))}),e.qZA(),e.BQk()}if(2&n){const t=e.oxw().$implicit;e.xp6(),e.Q6J("headerNavData",t)("menuType","mobile_product_menu")}}function It(n,o){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"header-side-nav",73),e.NdJ("onMenuToggle",function(i){e.CHM(t);const r=e.oxw(5);return e.KtG(r.menuToggle(i))}),e.qZA(),e.BQk()}if(2&n){const t=e.oxw().$implicit,a=e.oxw(4);e.xp6(),e.Q6J("headerNavData",t)("isLoggedIn",a.isLoggedIn)("customerInfo",a.customerInfo)("showSlideLabel",!1)("menuType","account_menu")}}function kt(n,o){if(1&n&&(e.ynx(0),e.YNc(1,Nt,4,3,"div",69)(2,Lt,2,2,"ng-container",57)(3,It,2,5,"ng-container",57),e.BQk()),2&n){const t=o.$implicit,a=e.oxw(4);e.xp6(),e.Q6J("ngIf",t.custom_styles&&t.custom_styles.indexOf("mobile-type-1")>-1),e.xp6(),e.Q6J("ngIf",t.custom_styles&&a.checkType1Display(t.custom_styles)),e.xp6(),e.Q6J("ngIf",t.custom_styles&&t.custom_styles.indexOf("type-3")>-1)}}function Ht(n,o){if(1&n&&(e.ynx(0),e.YNc(1,kt,4,3,"ng-container",59),e.ALo(2,"objNgFor"),e.BQk()),2&n){const t=e.oxw(3);e.xp6(),e.Q6J("ngForOf",e.lcZ(2,1,t.mobileMenuData))}}function Mt(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",67)(1,"div",68)(2,"header-nav",39),e.NdJ("onHeaderNavDataResponse",function(i){e.CHM(t);const r=e.oxw(2);return e.KtG(r.handleHeaderNavResponse(i))}),e.qZA(),e.YNc(3,Ht,3,3,"ng-container",57),e.qZA()()}if(2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("navType","mobile_header_nav")("tabletViewAndBelow",t.tabletViewAndBelow)("customerInfo",t.customerInfo)("isLoggedIn",t.isLoggedIn)("appConfig",t.appConfig)("routes",t.routes)("headerNavResponseData",t.headerNavResponseData),e.xp6(),e.Q6J("ngIf",t.mobileMenuData)}}function Qt(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"header",7)(1,"div",8)(2,"a",9),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.scrollIntoView("main_content"))}),e._uU(3,"Skip to main content"),e.qZA()(),e.TgZ(4,"a",10)(5,"div",11)(6,"span",12)(7,"strong"),e._uU(8,"33 Checkpoints:"),e.qZA(),e._uU(9," quality printing at the speed you need. "),e.qZA(),e._UZ(10,"img",13),e.qZA()(),e.YNc(11,lt,1,5,"announcement-placeholder",14)(12,pt,15,9,"div",15)(13,ut,2,7,"div",16)(14,yt,24,13,"div",17)(15,Mt,4,8,"div",18),e.qZA()}if(2&n){const t=e.oxw();e.xp6(4),e.Q6J("href",t.appConfig.site_url+"/secure/quality-checkpoints",e.LSH),e.xp6(6),e.MGl("src","",t.appConfig.shared_assets_path,"/img/arrow.png",e.LSH),e.xp6(),e.Q6J("ngIf",t.enabledSections.holiday_banner),e.xp6(),e.Q6J("ngIf",!t.tabletViewAndBelow),e.xp6(),e.Q6J("ngIf",t.enabledSections.header_nav&&!t.tabletViewAndBelow),e.xp6(),e.Q6J("ngIf",t.enabledSections.header_nav&&t.tabletViewAndBelow),e.xp6(),e.Q6J("ngIf",t.tabletViewAndBelow)}}function Jt(n,o){1&n&&e._UZ(0,"coupon-banner-widget",74)}function qt(n,o){1&n&&e._UZ(0,"holiday-message",75)}const Ot=n=>({shown:n});let Ut=(()=>{class n{onResize(t){this.tabletViewAndBelow=t.target.innerWidth<=767}constructor(t,a,i,r,c,u,b,h,T,S,N,H){if(this.AuthService=t,this.LogoutHandlerService=a,this.Router=i,this.Location=r,this.ConfigManagerService=c,this.CustomerEventsService=u,this.CrossStorageClientService=b,this.SearchClientLoaderService=h,this.sanitized=T,this.LoginRegisterModalService=S,this.recentlyViewedProductsService=N,this.GA4NavClick=H,this.isLoggedIn=!1,this.isLiveChatActive=!1,this.tabletViewAndBelow=!1,this.showBackdrop=!1,this.mobileProductMenuShown=!1,this.openMobileSearch=!1,this.isSearchClientLoaded=!1,this.enabledSections={header_nav:!0,holiday_banner:!0,show_header:!0,login_nav:!0,search_bar:!0,top_header_cart:!1,top_header_login_nav:!0},this.websiteCode=window.siteCode,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.CrossStorageClientService.onInit(this.crossStorageConfig.hub_url,this.crossStorageConfig.hub_opt),this.AuthService.parseAccessTokenData()){const L=this.AuthService.parseAccessTokenData();this.customerInfo=L.data,this.isLoggedIn=!0}t.logged_in$.subscribe(L=>{const f=this.AuthService.parseAccessTokenData();this.customerInfo=f.data,this.isLoggedIn=!0}),t.logged_out$.subscribe(L=>{this.customerInfo={},this.isLoggedIn=!1,this.clearNotification()}),t.customerInfo$.subscribe(L=>{null==L&&(this.customerInfo={},this.isLoggedIn=!1)}),this.AuthService.refreshToken$.subscribe(L=>{const f=this.AuthService.parseAccessTokenData();f&&(this.customerInfo=f.data,this.isLoggedIn=!0)}),u.menuNavVisibility$.subscribe(L=>{this.showBackdrop=L}),u.onLogOut$.subscribe(L=>{this.logout()})}ngOnInit(){this.tabletViewAndBelow=window.innerWidth<=767}ngAfterViewInit(){var t=this;return(0,s.Z)(function*(){const a=t,i=setInterval(function(){document.getElementsByClassName("ga4-nav-click-
1header").length>0&&(a.GA4NavClick.initialize({mainNavText:"All Products",header_class:"ga4-nav-click-header"}),clearInterval(i))},500)})()}initSearch(){var t=this;return(0,s.Z)(function*(){t.isSearchClientLoaded||(t.SearchClientLoaderService.initSearch(t.desktopSearchWidget,t.mobileSearchWidget),t.isSearchClientLoaded=!0)})()}logout(){const t=()=>{this.LogoutHandlerService.logout().subscribe(()=>{window.location.href=this.appConfig.site_url})},a=this.customerInfo?.customer_id;a?this.recentlyViewedProductsService.getPageIds(a).then(()=>{this.recentlyViewedProductsService.clearIdsCookie().subscribe(t,t)}).catch(t):t()}handleHeaderNavResponse(t){this.headerNavResponseData=t,this.mobileMenuData=t.mobile_header_nav_data,setTimeout(()=>{this.productSlider(),this.hideMobileSearch()},500)}scrollIntoView(t){const a=document.getElementById(t);a.scrollIntoView(),a.focus()}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)}menuToggle(t){switch(t){case"mobile_product_menu":this.mobileProductMenuShown=!this.mobileProductMenuShown,this.mobileElementShowHide(".js-mobile-product-menu-shown-left",this.mobileProductMenuShown);break;case"account_menu":this.mobileProductMenuShown=!this.mobileProductMenuShown,this.mobileElementShowHide(".js-mobile-product-menu-shown-right",this.mobileProductMenuShown);break;case"search":this.openMobileSearch=!this.openMobileSearch,this.mobileElementShowHide(".product-search-container-mobile",this.openMobileSearch),setTimeout(function(){const a=document.querySelector("#mobile_search_widget .search-bar-input");a&&(a.click(),a.focus())},0)}}mobileElementShowHide(t,a){const i=document.querySelector(t);i&&(i.classList.remove("open"),a&&i.classList.add("open"))}checkType1Display(t){return t.includes("desktop-menu")&&t.includes("type-1")}checkRedirectUrl(t){return t?-1==t.indexOf("http")?this.appConfig.site_url+t:t:this.sanitized.bypassSecurityTrustResourceUrl("javascript:void(0)")}productSlider(){const t=document.querySelector(".mobile-product-slider");if(t){let i,r,c,a=!1;const u=h=>{a=!0,c=h.pageX?h.pageX:h.touches[0].pageX,i=c-t.offsetLeft,r=t.scrollLeft},b=()=>{a=!1};t.addEventListener("mousemove",h=>{a&&(c=h.pageX,t.scrollLeft=r-(c-t.offsetLeft-i))}),t.addEventListener("touchmove",h=>{a&&(c=h.touches[0].pageX,t.scrollLeft=r-(c-t.offsetLeft-i))}),t.addEventListener("mousedown",u,!1),t.addEventListener("mouseup",b,!1),t.addEventListener("mouseleave",b,!1),t.addEventListener("touchstart",u,!1),t.addEventListener("touchend",b,!1)}}hideMobileSearch(){const t=document.querySelector("#mobile_search_widget .search-backdrop");t&&t.addEventListener("click",a=>{const i=document.querySelector("#mobile_search_widget .comp-search-bar-container"),r=document.querySelector(".search-menu-toggler .account-icon-wrapper");r&&r.click(),i.classList.remove("active"),t.classList.remove("show")})}loadLoginRegister(){this.LoginRegisterModalService.openModal({customClass:"site-modal"})}static{this.\u0275fac=function(a){return new(a||n)(e.Y36(fe.e),e.Y36(J.d),e.Y36(D.F0),e.Y36(d.Ye),e.Y36(C.Q),e.Y36(Z),e.Y36(me.T),e.Y36(R.l),e.Y36(A.H7),e.Y36(w.h),e.Y36(O.r),e.Y36("GA4NavClick"))}}static{this.\u0275cmp=e.Xpm({type:n,selectors:[["app-header"]],viewQuery:function(a,i){if(1&a&&(e.Gf(rt,7),e.Gf(st,7),e.Gf(P,5),e.Gf(ct,5)),2&a){let r;e.iGM(r=e.CRH())&&(i.desktopSearchWidget=r.first),e.iGM(r=e.CRH())&&(i.mobileSearchWidget=r.first),e.iGM(r=e.CRH())&&(i.headerNav=r.first),e.iGM(r=e.CRH())&&(i.accountDropdownMenu=r.first)}},hostBindings:function(a,i){1&a&&e.NdJ("resize",function(c){return i.onResize(c)},!1,e.Jf7)},decls:7,vars:11,consts:[["class","global-header-container",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"],[1,"comp-announcement-container",3,"closeIconClass","endPointUrl","placeholderCode","websiteCode","containerClass"],[1,"header-nav-backdrop",3,"ngClass"],[1,"global-header-container"],[1,"skip-main-content"],["href","javascript:void(0)",3,"click"],["id","point_check",3,"href"],[1,"point-check"],[1,"pc-label"],[1,"pt-check-icon",3,"src"],["class","comp-announcement-container",3,"endPointUrl","placeholderCode","websiteCode","containerClass","closeIconClass",4,"ngIf"],["class","header header-top-desktop container",4,"ngIf"],["class","global-header-nav-container",4,"ngIf"],["class","mobile-header-container display-mobile",3,"ngClass",4,"ngIf"],["class","panel mobile-nav-panel",4,"ngIf"],[1,"comp-announcement-container",3,"endPointUrl","placeholderCode","websiteCode","containerClass","closeIconClass"],[1,"header","header-top-desktop","container"],[1,"header-logo-container"],[1,"header-logo-link",3,"href"],["alt","Next Day Flyers: Online Printing Services",1,"company-logo",3,"src"],[1,"icons-container"],[1,"primary-contact-info"],[3,"href"],[1,"ndf-phone-solid","solid-phone-icon"],[1,"ph
1one-no"],[1,"product-search-container"],["id","desktop_search_widget",1,"search-widget-wrapper","search-bar",3,"hidden"],["desktop_search_widget",""],[3,"desktop",4,"ngIf"],["class","header-account-info-container customer-section-container top-header-customer-section",4,"ngIf"],[3,"desktop"],[1,"header-account-info-container","customer-section-container","top-header-customer-section"],[3,"customerInfo","isLoggedIn","appConfig","routes","tabletViewAndBelow","enabledSections"],[3,"tabletViewAndBelow"],[1,"global-header-nav-container"],[3,"navType","tabletViewAndBelow","customerInfo","isLoggedIn","appConfig","routes","headerNavResponseData","onHeaderNavDataResponse"],[1,"mobile-header-container","display-mobile",3,"ngClass"],[1,"mobile-container"],[1,"mobile-burger-wrapper",3,"click"],[1,"ndf-menu"],["alt","Next Day Flyers: Online Printing Services",1,"header-logo-img",3,"src"],[1,"product-search-container-mobile"],[1,"btn-close-search-mobile",3,"click"],[1,"close",3,"src"],[1,"icons-container","mobile-container"],[1,"search-menu-toggler"],[1,"account-icon-wrapper",3,"click"],[3,"src"],[1,"account-menu-toggler"],[1,"cart-wrapper"],["class","js-mobile-product-menu-shown-left mobile-side-nav-drawer display-mobile",4,"ngIf"],["class","js-mobile-product-menu-shown-right mobile-side-nav-drawer display-mobile",4,"ngIf"],[1,"mobile-product-slider","display-mobile","ga4-nav-click","ga4-nav-click-header"],[4,"ngIf"],[1,"js-mobile-product-menu-shown-left","mobile-side-nav-drawer","display-mobile"],[4,"ngFor","ngForOf"],[3,"headerNavData","menuType","onMenuToggle"],[1,"js-mobile-product-menu-shown-right","mobile-side-nav-drawer","display-mobile"],[3,"headerNavData","isLoggedIn","customerInfo","showSlideLabel","menuType","onLoginRegister","onLogOut","onMenuToggle"],["class","catalog-list",4,"ngIf"],[1,"catalog-list"],[3,"href","class",4,"ngFor","ngForOf"],[1,"menu-item"],[1,"panel","mobile-nav-panel"],["id","mobileNavMenu","data-parent","#header",1,"global-header-nav-container-mobile","container","collapse","ga4-nav-click","header"],["class","mobile-product-slider ga4-nav-click ga4-nav-click-header",4,"ngIf"],[1,"mobile-product-slider","ga4-nav-click","ga4-nav-click-header"],["class","sub-item-list","data-nav-level","0","data-mobile-nav-level","0","data-override-parent","1",4,"ngFor","ngForOf"],["data-nav-level","0","data-mobile-nav-level","0","data-override-parent","1",1,"sub-item-list"],[3,"headerNavData","isLoggedIn","customerInfo","showSlideLabel","menuType","onMenuToggle"],[1,"coupon-banner-wrapper"],[1,"comp-holiday-container","client-holiday-wrapper"]],template:function(a,i){1&a&&(e.YNc(0,Qt,16,7,"header",0),e.TgZ(1,"div",1),e.YNc(2,Jt,1,0,"coupon-banner-widget",2)(3,qt,1,0,"holiday-message",3),e.qZA(),e.TgZ(4,"div",4),e._UZ(5,"announcement-placeholder",5),e.qZA(),e._UZ(6,"div",6)),2&a&&(e.Q6J("ngIf",i.enabledSections.show_header),e.xp6(2),e.Q6J("ngIf",(null==i.discountConfig?null:i.discountConfig.coupon_banner)&&(null==i.discountConfig.coupon_banner?null:i.discountConfig.coupon_banner.enabled)),e.xp6(),e.Q6J("ngIf",i.siteConfig.enable_holiday_message&&i.enabledSections.holiday_banner),e.xp6(2),e.Q6J("closeIconClass","ndf-close")("endPointUrl",i.appConfig.submodule_api_url+"/announcements")("placeholderCode","HEADER_BANNER")("websiteCode",i.websiteCode)("containerClass","header-banner"),e.xp6(),e.Q6J("ngClass",e.VKq(9,Ot,i.showBackdrop)))},dependencies:[d.mk,d.sg,d.O5,ve.q,Ce.C,P,Fe,I,nt,ot,k.Z,q.v,U.j],encapsulation:2})}}return n})()}}]);
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.