1"use strict";(self.webpackChunkaccount_settings=self.webpackChunkaccount_settings||[]).push([[3372],{20673:(E,M,u)=>{u.d(M,{Z:()=>x});var r=u(19212);let x=(()=>{class e{transform(T){return Object.keys(T).map(y=>(T[y].key=y,T[y]))}static{this.\u0275fac=function(y){return new(y||e)}}static{this.\u0275pipe=r.Yjl({name:"objNgFor",type:e,pure:!0})}}return e})()},72957:(E,M,u)=>{u.d(M,{y:()=>e});var r=u(19212),x=u(6593);let e=(()=>{class p{constructor(y){this.sanitizer=y}transform(y,C){switch(C){case"html":return this.sanitizer.bypassSecurityTrustHtml(y);case"style":return this.sanitizer.bypassSecurityTrustStyle(y);case"script":return this.sanitizer.bypassSecurityTrustScript(y);case"url":return this.sanitizer.bypassSecurityTrustUrl(y);case"resourceUrl":return this.sanitizer.bypassSecurityTrustResourceUrl(y);default:throw new Error(`Invalid safe type specified: ${C}`)}}static{this.\u0275fac=function(C){return new(C||p)(r.Y36(x.H7,16))}}static{this.\u0275pipe=r.Yjl({name:"safe",type:p,pure:!0})}}return p})()},1940:(E,M,u)=>{u.d(M,{b:()=>H});var r=u(19212),x=u(39346),e=u(8447),p=u(96814),T=u(40285);const y=["searchInput"];function C(h,A){if(1&h&&(r.TgZ(0,"button",12),r._UZ(1,"span"),r.qZA()),2&h){const f=r.oxw();r.xp6(),r.Tol(null==f.searchConfig?null:f.searchConfig.inline_clear_btn_class)}}function w(h,A){if(1&h&&(r.TgZ(0,"button",13),r._UZ(1,"span"),r.qZA()),2&h){const f=r.oxw();r.xp6(),r.Tol(null==f.searchConfig?null:f.searchConfig.search_bar_toggle_class)}}function _(h,A){1&h&&r._UZ(0,"button",14)}function v(h,A){if(1&h&&(r.ynx(0),r.TgZ(1,"a",17),r._uU(2),r.qZA(),r._uU(3),r.BQk()),2&h){const f=A.$implicit,N=A.index,g=r.oxw(2);r.xp6(),r.Q6J("href",g.searchPageUrl+f,r.LSH),r.xp6(),r.Oqu(f),r.xp6(),r.hij("",g.getPopularTermsDelimiter(N)," ")}}function I(h,A){if(1&h&&(r.TgZ(0,"div")(1,"div",15),r._uU(2," Looking for "),r.YNc(3,v,4,3,"ng-container",16),r.qZA()()),2&h){const f=r.oxw();r.Gre("comp-popular-search-terms-container ",f.searchTermsPlaceholderClass,""),r.xp6(3),r.Q6J("ngForOf",f.popularSearchTerms)}}let H=(()=>{class h{constructor(f,N){if(this.ConfigManagerService=f,this.LocalStorageService=N,this.query="",this.hasPopularSearchTerms=!1,this.popularSearchTerms=[],this.searchPageUrl="",this.searchTermsPlaceholderClass="search-terms-placeholder",this.onEmitSearch=new r.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 g=JSON.parse(this.LocalStorageService.getItem(this.popularSearchTermsConfig.cache_key)),L=JSON.parse(g.popularSearchTerms),Z=[];for(const J of L)J.query&&Z.push(J.query);Z.length>0&&(this.popularSearchTerms=Z)}}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(f){const N=this.popularSearchTerms.length-1,g=N-1;return f<g?",":f===g?" or":f===N?"?":""}static{this.\u0275fac=function(N){return new(N||h)(r.Y36(x.Q),r.Y36(e.n))}}static{this.\u0275cmp=r.Xpm({type:h,selectors:[["standard-searchbar"]],viewQuery:function(N,g){if(1&N&&r.Gf(y,5),2&N){let L;r.iGM(L=r.CRH())&&(g.searchInput=L.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(N,g){1&N&&(r.TgZ(0,"div",0)(1,"div",1)(2,"input",2,3),r.NdJ("keyup.enter",function(){return g.redirect()})("click",function(){return g.initSearchClient()})("ngModelChange",function(Z){return g.query=Z}),r.qZA(),r.YNc(4,C,2,3,"button",4),r.TgZ(5,"button",5),r.NdJ("click",function(){return g.redirect()}),r._UZ(6,"span"),r.qZA(),r.YNc(7,w,2,3,"button",6),r.TgZ(8,"div",7),r._UZ(9,"span"),r.qZA(),r.YNc(10,_,1,0,"button",8),r.qZA(),r._UZ(11,"div",9),r.YNc(12,I,4,4,"div",10),r._UZ(13,"div",11),r.qZA()),2&N&&(r.xp6(2),r.s9C("placeholder",null==g.searchConfig?null:g.searchConfig.placeholder),r.Q6J("ngModel",g.query),r.x
1p6(2),r.Q6J("ngIf",(null==g.searchConfig?null:g.searchConfig.clear_btn)&&(null==g.searchConfig?null:g.searchConfig.inline_clear_btn)),r.xp6(2),r.Tol(null==g.searchConfig?null:g.searchConfig.search_icon_class),r.xp6(),r.Q6J("ngIf",null==g.searchConfig?null:g.searchConfig.has_toggle),r.xp6(2),r.Tol(null==g.searchConfig?null:g.searchConfig.search_loader_class),r.xp6(),r.Q6J("ngIf",(null==g.searchConfig?null:g.searchConfig.clear_btn)&&(null==g.searchConfig?null:g.searchConfig.inline_clear_btn)),r.xp6(2),r.Q6J("ngIf",g.hasPopularSearchTerms))},dependencies:[p.sg,p.O5,T.Fj,T.JJ,T.nD,T.On],encapsulation:2})}}return h})()},96693:(E,M,u)=>{u.d(M,{l:()=>y});var r=u(15861),e=u(19212),p=u(39346),T=u(69862);let y=(()=>{class C{constructor(_,v){this.ConfigManagerService=_,this.http=v,this.isLoaded={},this.searchConfigs=this.ConfigManagerService.getConfig("search_client"),this.appConfig=this.ConfigManagerService.getConfig("app"),this.searchConfig=this.ConfigManagerService.getConfig("search")}loadSearchFeature(_,v=null){if(!this.searchConfigs.loaders[_])throw new TypeError("No loader set up for this config.");if(this.isLoaded[_]&&this.isLoaded[_].loaded)return new Promise(h=>{h(!0)});if(this.isLoaded[_]&&this.isLoaded[_].loading)return this.isLoaded[_].callback;const I=typeof searchClientVersion<"u"?`?v=${searchClientVersion}`:v?`?v=${v}`:"",H=new Promise((h,A)=>{const f=document.createElement("script");f.type="text/javascript",f.src=this.searchConfigs.url+this.searchConfigs.loaders[_]+I,f.readyState?f.onreadystatechange=()=>{("loaded"===f.readyState||"complete"===f.readyState)&&(this.isLoaded[_].loading=!1,this.isLoaded[_]=!0,h(!0))}:f.onload=()=>{this.isLoaded[_].loading=!1,this.isLoaded[_]=!1,h(!0)},document.getElementsByTagName("head")[0].appendChild(f)});return this.isLoaded[_]={loading:!0,loaded:!1,callback:H},H}getSearchClientVersion(_){return this.http.get(_+"/search_client_version.txt",{responseType:"text"})}initSearch(_,v){var I=this;return(0,r.Z)(function*(){const H=yield function x(C){return new Promise((w,_)=>{C.subscribe({next(v){w(v)},error(v){_(v)}})})}(I.getSearchClientVersion(I.appConfig.site_url));yield I.loadSearchFeature("lookahead",H),_&&new SearchClient.SearchLookahead(I.appConfig.website_code).init(_.nativeElement,!0,{type:"breakpoint",minWidth:I.searchConfig.search_min_width_init_breakpoint??992}),v&&new SearchClient.SearchLookahead(I.appConfig.website_code).init(v.nativeElement,!0,{type:"breakpoint",maxWidth:I.searchConfig.search_max_width_init_breakpoint??991})})()}static{this.\u0275fac=function(v){return new(v||C)(e.LFG(p.Q),e.LFG(T.eN))}}static{this.\u0275prov=e.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"})}}return C})()},78856:(E,M,u)=>{u.r(M),u.d(M,{AppHeaderComponent:()=>_o});var r=u(15861),x=u(3609),e=u(19212),p=u(96814),T=u(72026);class y{constructor(){this.defaultItemCount=7}getHeaderMenuNavData(s,t,n){return new Promise(function(c,l){var d=new XMLHttpRequest;function m(S){var b={};for(var q in S){var k=S[q].sort;if(b[k]=S[q],Object.keys(b[k].children).length>0){var G=m(b[k].children);b[k].children=G}}return b}d.open(t,s,!0),d.send(n),d.onreadystatechange=function(){if(4===d.readyState)if(200===d.status){console.log("Request done successfully.");var b=JSON.parse(d.responseText),q=b.menu_nav_data,k={};for(var G in q.children){var D=q.children[G];if(k[D.sort]=D,typeof D.children<"u"&&Object.keys(D.children).length>0&&"type-1"!=D.custom_styles){var mo=m(D.children);k[D.sort].children=mo}}c({success:b.success,header_nav_data:k,mobile_header_nav_data:k})}else l(d.status),console.log("Request failed.");else console.log("Request is in progress.")},console.log("Request sent succesfully.")})}}var C=u(45125);let w=(()=>{class o{constructor(){this.menuNavSubject=new C.X(null),this.menuNavData$=this.menuNavSubject.asObservable(),this.UpHeaderNavLibrary=new y}fetchMenuNavData(t){var n=this;return(0,r.Z)(function*(){yield n.UpHeaderNavLibrary.getHeaderMenuNavData(t,"GET",null).then(i=>{n.menuNavSubject.next(i)})})()}getMenuNavData(){return this.menuNavSubject.value}static{this.\u0275fac=function(n){return new(n||o)}}static{this.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o}
1)();var _=u(39346),v=u(22567),I=u(96693),H=u(22308),h=u(34294),A=u(1940),f=u(8154),N=u(98715),g=u(15060),L=u(3214),Z=u(14097),J=u(8435),W=u(14687);const F=o=>({hide:o}),Y=o=>({show:o});function ee(o,s){if(1&o&&(e.ynx(0),e._UZ(1,"i",14)(2,"i",15),e.BQk()),2&o){const t=e.oxw(2);e.xp6(),e.Q6J("ngClass",e.VKq(2,F,t.poCartCount||t.ffrCartCount)),e.xp6(),e.Q6J("ngClass",e.VKq(4,Y,t.poCartCount||t.ffrCartCount))}}function te(o,s){1&o&&e._UZ(0,"div",16)}function ne(o,s){if(1&o&&(e.TgZ(0,"a",17),e.NdJ("click",function(n){return n.stopPropagation()}),e._uU(1),e.qZA()),2&o){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 oe(o,s){if(1&o&&(e.TgZ(0,"a",17),e.NdJ("click",function(n){return n.stopPropagation()}),e._uU(1),e.qZA()),2&o){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 ie(o,s){if(1&o&&(e.TgZ(0,"a",17),e.NdJ("click",function(n){return n.stopPropagation()}),e._uU(1),e.qZA()),2&o){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 ae(o,s){if(1&o&&(e.TgZ(0,"a",17),e.NdJ("click",function(n){return n.stopPropagation()}),e._uU(1),e.qZA()),2&o){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 j=o=>({"exceed-cart":o}),se=o=>({open:o});function re(o,s){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"span",5),e._uU(2),e.qZA(),e.TgZ(3,"span",6),e.NdJ("keydown",function(i){e.CHM(t);const a=e.oxw();return e.KtG(a.handleDropdownKeyDown(i))}),e.YNc(4,ee,3,6,"ng-container",3)(5,te,1,0,"ng-template",null,7,e.W1O),e.TgZ(7,"span",8),e._uU(8,"Cart"),e.qZA()(),e.TgZ(9,"div",9)(10,"ul",10)(11,"li"),e.YNc(12,ne,2,3,"a",11)(13,oe,2,3,"ng-template",null,12,e.W1O),e.qZA(),e.TgZ(15,"li"),e.YNc(16,ie,2,3,"a",11)(17,ae,2,3,"ng-template",null,13,e.W1O),e.qZA()()(),e.BQk()}if(2&o){const t=e.MAs(6),n=e.MAs(14),i=e.MAs(18),a=e.oxw();e.xp6(),e.Q6J("ngClass",e.VKq(10,j,a.poCartCount+a.ffrCartCount>99)),e.xp6(),e.hij(" ",a.poCartCount+a.ffrCartCount," "),e.xp6(),e.uIk("aria-label","cart with "+(a.poCartCount+a.ffrCartCount)+"items"),e.xp6(),e.Q6J("ngIf",a.isMobile)("ngIfElse",t),e.xp6(5),e.Q6J("ngClass",e.VKq(12,se,a.showCartCountDropdown)),e.xp6(3),e.Q6J("ngIf",!a.isDesignToolPage)("ngIfElse",n),e.xp6(4),e.Q6J("ngIf",!a.isDesignToolPage)("ngIfElse",i)}}function ce(o,s){1&o&&e.GkF(0)}function le(o,s){if(1&o&&(e.TgZ(0,"a",23),e.YNc(1,ce,1,0,"ng-container",24),e.qZA()),2&o){e.oxw(2);const t=e.MAs(4),n=e.oxw();e.s9C("routerLink",n.poCartUrl),e.uIk("aria-label","cart with "+n.poCartCount+" item"+(n.poCartCount>1?"s":"")),e.xp6(),e.Q6J("ngTemplateOutlet",t)}}function ue(o,s){if(1&o&&(e.ynx(0),e.YNc(1,le,2,3,"a",22),e.BQk()),2&o){const t=e.oxw(2);e.xp6(),e.Q6J("ngIf",t.poCartCount||!t.ffrCartCount)}}function de(o,s){1&o&&e.GkF(0)}function _e(o,s){if(1&o&&(e.TgZ(0,"a",26),e.YNc(1,de,1,0,"ng-container",24),e.qZA()),2&o){e.oxw(2);const t=e.MAs(4),n=e.oxw();e.s9C("href",n.poCartUrl,e.LSH),e.uIk("aria-label","cart with "+n.poCartCount+" item"+(n.poCartCount>1?"s":"")),e.xp6(),e.Q6J("ngTemplateOutlet",t)}}function me(o,s){if(1&o&&e.YNc(0,_e,2,3,"a",25),2&o){const t=e.oxw(2);e.Q6J("ngIf",t.poCartCount||!t.ffrCartCount)}}function pe(o,s){if(1&o&&(e.ynx(0),e._UZ(1,"i",29)(2,"i",30),e.BQk()),2&o){const t=e.oxw(3);e.xp6(),e.Q6J("ngClass",e.VKq(2,F,t.poCartCount||t.ffrCartCount)),e.xp6(),e.Q6J("ngClass",e.VKq(4,Y,t.poCartCount||t.ffrCartCount))}}function ge(o,s){1&o&&e._UZ(0,"div",16)}function fe(o,s){if(1&o&&(e.TgZ(0,"span",5),e._uU(1),e.qZA(),e.TgZ(2,"span",27),e.YNc(3,pe,3,6,"ng-container",3)(4,ge,1,0,"ng-template",null,28,e.W1O),e.TgZ(6,"span",8),e._uU(7,"Cart"),e.qZA()()),2&o){const t=e.MAs(5),n=e.oxw(2);e.Q6J("ngClass",e.VKq(4,j,n.poCartCount>99)),e.xp6(),e.hij(" ",n.poCartCount," "),e.xp6(2),e.Q6J("ngIf",n.isMobile)("ngIfElse",t)}}function he(o,s){1&o&&e.GkF(0)}function ve(o,s){if(1&o&&(e.TgZ(0,"a",23),e.YNc(1,he,1,0,"ng-container",24),e.qZA()),2&o){e.oxw(2);const t=e.MAs(9),n=e.oxw();e.s9C("routerLink",n.ffrCartUrl),e.uIk("aria-label","cart with "+n.ffrCartCount+" item"+(n.ffrCartCount>1?"s":"")),e.xp6(),e.Q6J("ngTemplateOutlet",t)}}function Ce(o,s){if(1&o&&(e.ynx(0),e.YNc(1,ve,2,3,"a",22),e.BQk()),2&o){const t=e.oxw(2);e.xp6(),e.Q6J("ngIf",t.ffrCartCount)}}function be(o,s){1&o&&e.GkF(0)}function ye(o,s){if(1&o&&(e.TgZ(0,"a",26),e.YNc(1,be,1,0,"ng-container",24),e.qZA()),2&o){e.oxw(2);const t=e.MAs(9),n=e.oxw();e.s9C("href",n.ffrCartUrl,e.LSH),e.uIk("aria-label","cart with "+n.ffrCartCount+" item"+(n.ffrCartCount>1?"s":"")),e.xp6(),e.Q6J("ngTemplateOutlet",t)}}function Se(o,s){if(1&o&&e.YNc(0,ye,2,3,"a",25),2&o){const t=e.oxw(2);e.Q6J("ngIf",t.ffrCartCount)}}function xe(o,s){if(1&o&&(e.ynx(0),e._UZ(1,"i",29)(2,"i",30),e.BQk()),2&o){const t=e.oxw(3);e.xp6(),e.Q6J("ngClass",e.VKq(2,F,t.poCartCount||t.ffrCartCount)),e.xp6(),e.Q6J("ngClass",e.VKq(4,Y,t.poCartCount||t.ffrCartCount))}}function we(o,s){1&o&&e._UZ(0,"div",16)}function Ie(o,s){if(1&o&&(e.TgZ(0,"span",5),e._uU(1),e.qZA(),e.TgZ(2,"span",27),e.YNc(3,xe,3,6,"ng-container",3)(4,we,1,0,"ng-template",null,28,e.W1O),e.TgZ(6,"span",8),e._uU(7,"Cart"),e.qZA()()),2&o){const t=e.MAs(5),n=e.oxw(2);e.Q6J("ngClass",e.VKq(4,j,n.ffrCartCount>99)),e.xp6(),e.hij(" ",n.ffrCartCount," "),e.xp6(2),e.Q6J("ngIf",n.isMobile)("ngIfElse",t)}}function Me(o,s){if(1&o&&e.YNc(0,ue,2,1,"ng-container",3)(1,me,1,1,"ng-template",null,18,e.W1O)(3,fe,8,6,"ng-template",null,19,e.W1O)(5,Ce,2,1,"ng-container",3)(6,Se,1,1,"ng-template",null,20,e.W1O)(8,Ie,8,6,"ng-template",null,21,e.W1O),2&o){const t=e.MAs(2),n=e.MAs(7),i=e.oxw();e.Q6J("ngIf",!i.isDesignToolPage)("ngIfElse",t),e.xp6(5),e.Q6J("ngIf",!i.isDesignToolPage)("ngIfElse",n)}}const Te=o=>({"has-item":o});let K=(()=>{class o{constructor(t,n,i,a,c,l,d){this.eRef=t,this.CartCountService=n,this.RefreshTokenService=i,this.FfrCartCountService=a,this.ConfigManagerService=c,this.StorageService=l,this.Router=d,this.isMobile=!1,this.onHideDropdown=new e.vpe,this.poCartCount=0,this.ffrCartCount=0,this.showCartCountDropdown=!1,this.initialized=!1,this.subscriptions=[]}ngOnInit(){this.appConfig=this.ConfigManagerService.getConfig("app"),this.checkoutRoutes=this.ConfigManagerService.getConfig("routes").checkout_client,this.poCartUrl=this.appConfig.checkout_client_url+"/"+this.checkoutRoutes.cart,this.ffrCartUrl=this.appConfig.checkout_client_url+"/"+this.checkoutRoutes.ffr_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.ffrCartId&&this.FfrCartCountService.getCartCount(this.ffrCartId).then(a=>{this.ffrCartCount=Number(a)}),this.poCartId&&this.CartCountService.getCartCount(this.poCartId).then(a=>{this.poCartCount=Number(a)});const t=this.CartCountService.cartCount$.subscribe(a=>{this.poCartCount=a}),n=this.FfrCartCountService.ffrCartCount$.subscribe(a=>{this.ffrCartCount=a}),i=this.RefreshTokenService.persistentCart$.subscribe(a=>{a&&(a.hasOwnProperty("cart_count")&&(this.poCartCount=Number(a.cart_count)),a.hasOwnProperty("ffr_cart_count")&&(this.ffrCartCount=Number(a.ffr_cart_count)))});this.subscriptions.push(t,n,i),this.initialized=!0}ngOnDestroy(){this.subscriptions.forEach(t=>{t&&t.unsubscribe()})}get showAsLink(){let t=!1;return(!this.poCartCount&&!this.ffrCartCount||this.poCartCount&&!this.ffrCartCount||!this.poCartCount&&this.ffrCartCount)&&(t=!0),t}hideDropdown(t){setTimeout(()=>{t.stopPropagation(),this.onHideDropdown.emit(!0)},300)}closeDropdownOnFocusOut(t,n){9==t.keyCode?setTimeout(()=>{n.querySelector("*:focus")||(this.showCartCountDropdown=!1)},10):27==t.keyCode&&(this.showCartCountDropdown=!1,setTimeout(()=>{document.getElementById("cart_link_elem").focus()},10))}redirectToCart(){return this.poCartCount>0&&this.ffrCartCount>0?(this.showCartCountDropdown=!this.showCartCountDropdown,!0):0==this.ffrCartCount?(window.location.href=this.poCartUrl,!0):this.ffrCartCount>0&&0==this.poCartCount?(window.location.href=this.ffrCartUrl,!0):void(window.location.href=this.poCartUrl)}static{this.\u0275fac=function(n){return new(n||o)(e.Y36(e.SBq),e.Y36(L.Y),e.Y36(Z.$),e.Y36(J.e),e.Y36(_.Q),e.Y36(W.V),e.Y36(x.F0))}}
1static{this.\u0275cmp=e.Xpm({type:o,selectors:[["cart-count"]],inputs:{siteCode:"siteCode",isMobile:"isMobile"},outputs:{onHideDropdown:"onHideDropdown"},decls:6,vars:5,consts:[[1,"comp-shopping-cart-icon-container",3,"keydown","click"],["parentContainer",""],[1,"cart-icon-wrapper",3,"ngClass"],[4,"ngIf","ngIfElse"],["cartLink",""],[1,"cart-count",3,"ngClass"],["id","cart_link_elem","tabindex","0","role","navigation","aria-expanded","false",1,"cart-img-count-wrapper",3,"keydown"],["desktopViewLink",""],[1,"cart-label"],[3,"ngClass"],[1,"dropdown-menu","cart-dropdown-menu","pull-right"],["class","cart-link",3,"href","click",4,"ngIf","ngIfElse"],["poCartLink",""],["ffrCartLink",""],["alt","Cart Icon",1,"cart-icon",3,"ngClass"],["alt","Cart Icon",1,"cart-icon-with-item",3,"ngClass"],["alt","Cart Icon",1,"cart-icon"],[1,"cart-link",3,"href","click"],["poDesignCartLink",""],["poCartLinkTemplate",""],["ffrDesignCartLink",""],["ffrCartLinkTemplate",""],[3,"routerLink",4,"ngIf"],[3,"routerLink"],[4,"ngTemplateOutlet"],[3,"href",4,"ngIf"],[3,"href"],[1,"cart-img-count-wrapper"],["desktopView",""],[1,"cart-icon",3,"ngClass"],[1,"cart-icon-with-item",3,"ngClass"]],template:function(n,i){if(1&n){const a=e.EpF();e.TgZ(0,"div",0,1),e.NdJ("keydown",function(l){e.CHM(a);const d=e.MAs(1);return e.KtG(i.closeDropdownOnFocusOut(l,d))})("click",function(){return i.redirectToCart()}),e.TgZ(2,"div",2),e.YNc(3,re,19,14,"ng-container",3)(4,Me,10,4,"ng-template",null,4,e.W1O),e.qZA()()}if(2&n){const a=e.MAs(5);e.xp6(2),e.Q6J("ngClass",e.VKq(3,Te,i.poCartCount||i.ffrCartCount)),e.xp6(),e.Q6J("ngIf",!i.showAsLink)("ngIfElse",a)}},dependencies:[p.mk,p.O5,p.tP],encapsulation:2})}}return o})();function Ne(o,s){1&o&&(e.TgZ(0,"span"),e._uU(1," Log In! "),e.qZA())}function Ae(o,s){if(1&o&&(e.TgZ(0,"span",16),e._uU(1),e.qZA()),2&o){const t=e.oxw();e.xp6(),e.hij(" ",t.customerInfo.first_name,"! ")}}function Le(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"li",17)(1,"button",18),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.loadLoginRegister())}),e._uU(2," Log In or Create Account "),e.qZA()()}}function He(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"li")(1,"a",19),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.logout())}),e._uU(2," Log out "),e.qZA()()}}const ke=o=>({"hide-element":o});let Ze=(()=>{class o{constructor(t,n,i,a){this.ConfigManagerService=t,this.LoginRegisterModalService=n,this.LogoutHandlerService=i,this.RecentlyViewedProductsService=a,this.customerInfo=null,this.isLoggedIn=!1,this.activeDropdown=!1,this.tabIndex=!1,this.siteCode=null,this.isDesignToolPage=!1,this.appConfig=this.ConfigManagerService.getConfig("app"),this.siteConfig=this.ConfigManagerService.getConfig("site")}formatPhoneNumber(){return this.siteConfig.phone_no.replace(/\./g,"-")}closeAccountDropdown(){this.tabIndex=!1,document.getElementById("account_dropdown").classList.remove("open")}hideExpandButton(){document.getElementById("navExpander").classList.remove("hide-expander")}redirectToPortal(){let t=!1;navigator&&navigator.userAgent&&(t=null!=navigator.userAgent.match(/iPad/i)),t?this.showAccountDropdown():window.location.href=this.appConfig.account_orders_client+"/order"}hideHeaderDropdownHandler(t){this.activeDropdown=null,clearTimeout(this.timer)}showAccountDropdown(){this.tabIndex=!0,document.getElementById("account_dropdown").classList.contains("open")||(document.getElementById("wide_account_dropdown").focus(),document.getElementById("account_dropdown").classList.add("open"))}loadLoginRegister(){this.LoginRegisterModalService.openModal({customClass:"site-modal"})}toggleAccountDropdownOnKeyDown(t,n,i){13==t.keyCode?(this.tabIndex=!0,this.showAccountDropdown()):27==t.keyCode?(this.tabIndex=!1,this.closeAccountDropdown(),setTimeout(()=>{n.focus()},0)):9==t.keyCode&&setTimeout(()=>{i.querySelector("*:focus")||(this.tabIndex=!1,this.closeAccountDropdown())},0)}removeClass(){document.getElementById("navExpander").classList.remove("hide-expander")}logout(){const t=()=>{this.LogoutHandlerService.logout().subscribe()},n=this.customerInfo?.customer_id;n?this.RecentlyViewedProductsService.getPageIds(n).then(()=>{this.RecentlyViewedProductsService.clearIdsCookie().subscribe(t,t)}).catch(t):t()}static{this.\u0275fac=function(n){return new(n||o)(e.Y36(_.Q),e.Y36(f.h),e.Y36(N.d),e.Y36(g.r))}}static{this.\u0275cmp=e.Xpm({type:o,selectors:[["account-info"]],inputs:{customerInfo:"customerInfo",isLoggedIn:"isLoggedIn"},decls:35,vars:14,consts:[[1,"comp-account-info","css-grid-span-5"],["id","account_dropdown",1,"account-dropdown",3,"keydown","mouseover","mouseleave"],["accountContainer",""],[1,"account-wrapper"],[1,"account-salutation","customer-loaded"],[4,"ngIf"],["class","customer-name",4,"ngIf"],["tabindex","0","role","navigation","id","wide_account_dropdown","data-toggle","dropdown","aria-expanded","fal
1se",1,"account-link-dropdown","dropdown-toggle",3,"click"],["yourAccountLink",""],["id","navExpander",1,"nav-expander",3,"ngClass","focus","blur","click"],[1,"account-dropdown-menu-wrapper"],["role","menu","aria-labelledby","wide_account_dropdown",1,"account-dropdown-menu","dropdown-menu"],["class","login-button-wrapper",4,"ngIf"],["rel","nofollow",3,"href"],[1,"cart-count-wrapper"],[3,"siteCode","onHideDropdown"],[1,"customer-name"],[1,"login-button-wrapper"],[1,"login-button","btn","btn-primary","site-btn-primary","js-open-login-register-modal",3,"click"],["rel","nofollow","href","javascript:void(0)",1,"logout-link",3,"click"]],template:function(n,i){if(1&n){const a=e.EpF();e.TgZ(0,"div",0)(1,"div",1,2),e.NdJ("keydown",function(l){e.CHM(a);const d=e.MAs(9),m=e.MAs(2);return e.KtG(i.toggleAccountDropdownOnKeyDown(l,d,m))})("mouseover",function(){return i.showAccountDropdown()})("mouseleave",function(){return i.closeAccountDropdown()}),e.TgZ(3,"div",3)(4,"div",4),e._uU(5," Hi, "),e.YNc(6,Ne,2,0,"span",5)(7,Ae,2,1,"span",6),e.qZA(),e.TgZ(8,"div",7,8),e.NdJ("click",function(){return i.redirectToPortal()}),e.TgZ(10,"span"),e._uU(11,"Your Account"),e.qZA()(),e.TgZ(12,"button",9),e.NdJ("focus",function(){return i.hideExpandButton()})("blur",function(){return i.removeClass()})("click",function(){return i.showAccountDropdown()}),e._uU(13," Expand: Your Account "),e.qZA()(),e.TgZ(14,"div",10)(15,"ul",11),e.YNc(16,Le,3,0,"li",12),e.TgZ(17,"li")(18,"a",13),e._uU(19," Order Status "),e.qZA()(),e.TgZ(20,"li")(21,"a",13),e._uU(22," Quotes "),e.qZA()(),e.TgZ(23,"li")(24,"a",13),e._uU(25," Saved Designs "),e.qZA()(),e.TgZ(26,"li")(27,"a",13),e._uU(28," Mailing List "),e.qZA()(),e.TgZ(29,"li")(30,"a",13),e._uU(31," Settings "),e.qZA()(),e.YNc(32,He,3,0,"li",5),e.qZA()()(),e.TgZ(33,"div",14)(34,"cart-count",15),e.NdJ("onHideDropdown",function(l){return i.hideHeaderDropdownHandler(l)}),e.qZA()()()}2&n&&(e.xp6(6),e.Q6J("ngIf",!i.isLoggedIn),e.xp6(),e.Q6J("ngIf",i.isLoggedIn),e.xp6(),e.uIk("aria-label",(i.isLoggedIn?"hi "+i.customerInfo.first_name+", ":"")+"expand account options"),e.xp6(4),e.Q6J("ngClass",e.VKq(12,ke,i.tabIndex)),e.xp6(4),e.Q6J("ngIf",!i.isLoggedIn),e.xp6(2),e.MGl("href","",i.appConfig.account_orders_client,"/order",e.LSH),e.xp6(3),e.MGl("href","",i.appConfig.account_quotes_client,"/quotes",e.LSH),e.xp6(3),e.MGl("href","",i.appConfig.account_designs_client,"/my-saved-designs",e.LSH),e.xp6(3),e.MGl("href","",i.appConfig.account_mailing_client,"/mailing-list",e.LSH),e.xp6(3),e.MGl("href","",i.appConfig.account_settings_client,"/contact-information",e.LSH),e.xp6(2),e.Q6J("ngIf",i.isLoggedIn),e.xp6(2),e.Q6J("siteCode",i.siteCode))},dependencies:[p.mk,p.O5,K],encapsulation:2})}}return o})();var P=u(72786);let $=(()=>{class o{constructor(t,n){this.bsModalRef=t,this.ConfigManagerService=n,this.onClose=new e.vpe,this.appConfig=this.ConfigManagerService.getConfig("app")}closeModal(){const t=document.querySelector(".modal-backdrop.show"),n=document.querySelector(".modal.show");t&&t.classList.remove("show"),t&&n.classList.remove("show"),this.bsModalRef.hide()}static{this.\u0275fac=function(n){return new(n||o)(e.Y36(P.UZ),e.Y36(_.Q))}}static{this.\u0275cmp=e.Xpm({type:o,selectors:[["design-service-modal"]],outputs:{onClose:"onClose"},decls:21,vars:3,consts:[[1,"design-service-modal"],["tabindex","0",1,"modal-title"],[1,"modal-header-label"],["aria-label","Close","type","button",1,"close","modal-close-btn",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"content","img"],["alt","design-service",3,"src"],[1,"content","msg"],[1,"modal-footer"],[1,"action"],[1,"site-btn-primary",3,"href"],[1,"fa","fa-phone","phone-icon"]],template:function(n,i){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._uU(3," UPrinting Design Services "),e.qZA(),e.TgZ(4,"button",3),e.NdJ("click",function(){return i.closeModal()}),e.TgZ(5,"span",4),e._uU(6,"\xd7"),e.qZA()()(),e.TgZ(7,"div",5)(8,"div",6),e._UZ(9,"img",7),e.qZA(),e.TgZ(10,"div",8)(11,"p"),e._uU(12,"Whether it's a small design fix or maybe an entirely new design, let our in-house Design Services team work with you to bring the most out of each of your printed pieces."),e.qZA(),e.TgZ(13,"h5"),e._uU(14,"Call one of our Design Services Representatives today to get started!"),e.qZA()()(),e.TgZ(15,"div",9)(16,"div",10)(17,"a",11),e._UZ(18,"i",12),e.TgZ(19,"span"),e._uU(20),e.qZA()()()()()),2&n&&(e.xp6(9),e.Q6J("src",i.appConfig.static_url+"/assets/img/design-service.svg",e.LSH),e.xp6(8),e.MGl("href","tel:+1-",i.appConfig.design_service_phone,"",e.LSH),e.xp6(3),e.Oqu(i.appConfig.design_service_phone))},encapsulation:2})}}return o}
1)();var O=u(6593),V=u(57658),qe=u(48369),Q=u(64150),U=u(85395);function Ee(o,s){if(1&o&&(e.TgZ(0,"a",3),e._uU(1),e.ALo(2,"decodeHtml"),e.ALo(3,"utf8Decode"),e.qZA()),2&o){const t=e.oxw();e.Q6J("href",t.checkRedirectUrl(t.navItem.value.url),e.LSH),e.xp6(),e.hij(" ",e.lcZ(2,2,e.lcZ(3,4,t.navItem.value.catalog_name)),"\n")}}function De(o,s){if(1&o&&(e.TgZ(0,"div",4),e._uU(1),e.ALo(2,"decodeHtml"),e.ALo(3,"utf8Decode"),e.qZA()),2&o){const t=e.oxw();e.xp6(),e.hij(" ",e.lcZ(2,1,e.lcZ(3,3,t.navItem.value.catalog_name))," ")}}function Pe(o,s){if(1&o&&e._UZ(0,"i",7),2&o){const t=e.oxw(3).$implicit,n=e.oxw(4);e.Q6J("ngClass",n.replaceMenuIconClass(t.value.custom_styles))}}function Je(o,s){if(1&o&&e._UZ(0,"span",7),2&o){const t=e.oxw().$implicit;e.Q6J("ngClass",t)}}function Oe(o,s){if(1&o&&(e.ynx(0),e.YNc(1,Je,1,1,"span",16),e.BQk()),2&o){const t=s.$implicit,n=e.oxw(4).$implicit;e.xp6(),e.Q6J("ngIf",n.value.custom_styles.indexOf(t)>=0)}}function Qe(o,s){if(1&o&&(e.ynx(0),e.YNc(1,Oe,2,1,"ng-container",18),e.BQk()),2&o){const t=e.oxw(7);e.xp6(),e.Q6J("ngForOf",t.badgeArr)}}function Ue(o,s){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"button",15),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(6);return e.KtG(i.triggerDesignServiceModal())}),e.YNc(2,Pe,1,1,"i",16),e._uU(3),e.ALo(4,"decodeHtml"),e.ALo(5,"utf8Decode"),e.YNc(6,Qe,2,1,"ng-container",17),e.qZA(),e.BQk()}if(2&o){const t=e.oxw(2).$implicit;e.xp6(2),e.Q6J("ngIf",t.value.custom_styles),e.xp6(),e.hij(" ",e.lcZ(4,3,e.lcZ(5,5,t.value.catalog_name))," "),e.xp6(3),e.Q6J("ngIf",t.value.custom_styles)}}function Be(o,s){if(1&o&&e._UZ(0,"i",7),2&o){const t=e.oxw(4).$implicit,n=e.oxw(4);e.Q6J("ngClass",n.replaceMenuIconClass(t.value.custom_styles.replace("border-top","")))}}function Fe(o,s){if(1&o&&e._UZ(0,"span",25),2&o){const t=e.oxw().$implicit;e.Q6J("ngClass",t)}}function Ye(o,s){if(1&o&&(e.ynx(0),e.YNc(1,Fe,1,1,"span",24),e.BQk()),2&o){const t=s.$implicit,n=e.oxw(5).$implicit;e.xp6(),e.Q6J("ngIf",n.value.custom_styles.indexOf(t)>=0)}}function je(o,s){if(1&o&&(e.ynx(0),e.YNc(1,Ye,2,1,"ng-container",18),e.BQk()),2&o){const t=e.oxw(8);e.xp6(),e.Q6J("ngForOf",t.badgeArr)}}function Re(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"a",23),e.NdJ("keydown",function(i){e.CHM(t);const a=e.oxw(7);return e.KtG(a.keyNavigate(i))}),e.YNc(1,Be,1,1,"i",16),e._uU(2),e.ALo(3,"decodeHtml"),e.ALo(4,"utf8Decode"),e.YNc(5,je,2,1,"ng-container",17),e.qZA()}if(2&o){const t=e.oxw(3).$implicit,n=e.oxw(4);e.Q6J("href",n.checkRedirectUrl(t.value.url),e.LSH),e.uIk("rel",t.value.rel_attribute?t.value.rel_attribute:"")("target","y"==t.value.new_window_flag?"_blank":"")("data-item-id",t.value.catalog_item_id),e.xp6(),e.Q6J("ngIf",t.value.custom_styles&&(t.value.custom_styles.indexOf("site-icon-custom-quote")>=0||t.value.custom_styles.indexOf("site-icon-design-services")>=0||t.value.custom_styles.indexOf("site-icon-gear")>=0)),e.xp6(),e.hij(" ",e.lcZ(3,7,e.lcZ(4,9,t.value.catalog_name))," "),e.xp6(3),e.Q6J("ngIf",t.value.custom_styles)}}function Ge(o,s){if(1&o&&e._UZ(0,"i",7),2&o){const t=e.oxw(4).$implicit,n=e.oxw(4);e.Q6J("ngClass",n.replaceMenuIconClass(t.value.custom_styles.replace("border-top","")))}}function We(o,s){if(1&o&&e._UZ(0,"span",25),2&o){const t=e.oxw().$implicit;e.Q6J("ngClass",t)}}function Ke(o,s){if(1&o&&(e.ynx(0),e.YNc(1,We,1,1,"span",24),e.BQk()),2&o){const t=s.$implicit,n=e.oxw(5).$implicit;e.xp6(),e.Q6J("ngIf",n.value.custom_styles.indexOf(t)>=0)}}function $e(o,s){if(1&o&&(e.ynx(0),e.YNc(1,Ke,2,1,"ng-container",18),e.BQk()),2&o){const t=e.oxw(8);e.xp6(),e.Q6J("ngForOf",t.badgeArr)}}function Ve(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div",26),e.NdJ("keydown",function(i){e.CHM(t);const a=e.oxw(7);return e.KtG(a.keyNavigate(i))}),e.YNc(1,Ge,1,1,"i",16),e._uU(2),e.ALo(3,"decodeHtml"),e.ALo(4,"utf8Decode"),e.YNc(5,$e,2,1,"ng-container",17),e.qZA()}if(2&o){const t=e.oxw(3).$implicit;e.uIk("rel",t.value.rel_attribute?t.value.rel_attribute:"")("target","y"==t.value.new_window_flag?"_blank":"")("data-item-id",t.value.catalog_item_id),e.xp6(),e.Q6J("ngIf",t.value.custom_styles&&(t.value.custom_styles.indexOf("site-icon-custom-quote")>=0||t.value.custom_styles.indexOf("site-icon-design-services")>=0||t.value.custom_styles.indexOf("site-icon-gear")>=0)),e.xp6(),e.hij(" ",e.lcZ(3,6,e.lcZ(4,8,t.value.catalog_name))," "),e.xp6(3),e.Q6J("ngIf",t.value.custom_styles)}}function ze(o,s){if(1&o){const t=e.EpF();e.YNc(0,Re,6,11,"a",19)(1,Ve,6,10,"ng-template",null,20,e.W1O),e.TgZ(3,"span",21)(4,"button",22),e.NdJ("keydown",function(i){e.CHM(t);const a=e.oxw(6);return e.KtG(a.expandKeydown(i))})("click",function(i){e.CHM(t);const a=e.oxw(6);return e.KtG(a.keyNavigate(i))}),e._uU(5," Expand "),e.qZA()()}if(2&o){const t=e.MAs(2),n=e.oxw(2).$implicit;e.Q6J("ngIf",n.value.url)("ngIfElse",t),e.xp6(4),e.uIk("aria-label","expand "+n.value.catalog_name)}}function Xe(o,s){if(1&o&&(e.ynx(0),e.YNc(1,Ue,7,7,"ng-container",12)(2,ze,6,3,"ng-template",null,14,e.W1O),e.BQk()),2&o){const t=e.MAs(3),n=e.oxw().$implicit;e.xp6(),e.Q6J("ngIf",n.value.custom_styles&&n.value.custom_styles.indexOf("design-services")>=0)("ngIfElse",t)}}function et(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"figure",27),e.ALo(1,"decodeHtml"),e.ALo(2,"utf8Decode"),e.TgZ(3,"a",28),e.NdJ("keydown",function(i){e.CHM(t);const a=e.oxw(5);return e.KtG(a.keyNavigate(i))}),e.TgZ(4,"div",29),e._UZ(5,"img",30),e.TgZ(6,"button",31),e._uU(7,"Shop Now"),e.qZA()(),e.TgZ(8,"figcaption"),e._UZ(9,"p",32),e.ALo(10,"safeHtml"),e._UZ(11,"label",32),e.ALo(12,"safeHtml"),e.qZA()()()}if(2&o){const t=e.oxw().$implicit,n=e.oxw(4);e.uIk("data-nav-title",e.lcZ(1,5,e.lcZ(2,7,t.value.catalog_name))),e.xp6(3),e.Q6J("href",n.checkRedirectUrl(t.value.url),e.LSH),e.xp6(2),e.Q6J("src",n.getImageUrl(t.value.menu_image),e.LSH),e.xp6(4),e.Q6J("innerHtml",e.lcZ(10,9,t.value.catalog_name),e.oJD),e.xp6(2),e.Q6J("innerHtml",e.lcZ(12,11,t.value.catalog_desc),e.oJD)}}const tt=o=>({"border-top":o});function nt(o,s){if(1&o&&(e.TgZ(0,"li",11),e.ALo(1,"decodeHtml"),e.ALo(2,"utf8Decode"),e.YNc(3,Xe,4,2,"ng-container",12)(4,et,13,13,"ng-template",null,13,e.W1O),e.qZA()),2&o){const t=s.$implicit,n=e.MAs(5),i=e.oxw(2),a=i.index,c=i.$implicit;e.Q6J("ngClass",e.VKq(11,tt,t.value.custom_styles&&t.value.custom_styles.indexOf("border-top")>=0)),e.uIk("data-parent-column",a+1)("data-nav-level",a+1)("data-nav-title",e.lcZ(1,7,e.lcZ(2,9,t.value.catalog_name)))("data-has-children","image"!=c.key?"1":"0"),e.xp6(3),e.Q6J("ngIf","image"!=c.key)("ngIfElse",n)}}const ot=()=>[];function it(o,s){if(1&o&&(e.TgZ(0,"ul",9),e.YNc(1,nt,6,13,"li",10),e.ALo(2,"keyvalue"),e.qZA()),2&o){const t=s.$implicit,n=e.oxw(3);e.uIk("data-submenu-id",t.key),e.xp6(),e.Q6J("ngForOf",e.xi3(2,2,t.value||e.DdM(5,ot),n.orderBySort))}}function at(o,s){if(1&o&&(e.TgZ(0,"li",7),e.YNc(1,it,3,6,"ul",8),e.ALo(2,"keyvalue"),e.qZA()),2&o){const t=s.$implicit,n=s.index;e.Q6J("ngClass",t.key),e.uIk("data-column",n+1),e.xp6(),e.Q6J("ngForOf",e.lcZ(2,3,t.value))}}function st(o,s){if(1&o&&(e.TgZ(0,"ul",5),e.YNc(1,at,3,5,"li",6),e.ALo(2,"keyvalue"),e.qZA()),2&o){const t=e.oxw();e.Q6J("ngClass",t.navItem.value.custom_styles),e.xp6(),e.Q6J("ngForOf",e.lcZ(2,2,t.navItem.value.children))}}let rt=(()=>{class o{onResize(t){this.isMobile=window.innerWidth<=991}constructor(t,n,i,a){this.ConfigManagerService=t,this.BsModalService=n,this.sanitizer=i,this.SanitizeImageService=a,this.onCloseParentHamburger=new e.vpe,this.onFocusOutParentHamburger=new e.vpe,this.onLeaveAllProductsContent=new e.vpe,this.isMobile=!1,this.menuNavHoverStart=!1,this.tap=!1,this.activeImageMenuMapping=[],this.imgSubmenuIds=[],this.submenuIds=[],this.intervalPendingExecution=!1,this.openHeaderNavContent=!1,this.hasScrollbar=!1,this.badgeArr=["new-badge","reduced-badge","best-seller-badge"],this.isSanitizedData=!1,this.tap="ontouchstart"in document.documentElement,this.appConfig=this.ConfigManagerService.getConfig("app")}ngOnInit(){}ngOnChanges(t){typeof this.navItem<"u"&&(this.isSanitizedData||(this.SanitizeImageService.sanitizeMenuImages(this.navItem,"menu_image"),this.isSanitizedData=!0),setTimeout(()=>{this.removeDataItemId()},100))}orderBySort(t,n){return t.value.sort-n.value.sort}checkRedirectUrl(t){return t?-1==t.indexOf("http")?this.appConfig.site_url+t:t:this.sanitizer.bypassSecurityTrustResourceUrl("javascript:void(0)")}addScrollbarSpace(){const t=window.innerWidth-document.documentElement.clientWidth;document.body.classList.add("open-header-nav"),t>0&&(document.body.style.paddingRight=t+"px",this.hasScrollbar=!0,document.getElementById("livechat_floating_button")&&(document.getElementById("livechat_floating_button").style.right=-43+t+"px"),document.querySelector(".open-header-nav .window-scrolled")&&(document.querySelector(".open-header-nav .window-scrolled").style.width="calc(100% - "+t+"px)"))}showMenuContent(t){if(!this.tap){if(clearInterval(this.navContentTimer),this.openHeaderNavContent)this.visibleNavContent=t,this.addScrollbarSpace();else{const n=this;this.navContentTimer=setTimeout(()=>{document.getElementsByClassName("account-dropdown")[0].classList.remove("open"),n.visibleNavContent=t,n.openHeaderNavContent=!0,n.addScrollbarSpace()},300),this.intervalPendingExecution=!0}
10==t?document.getElementById("hamburger_toggle").classList.add("nav-content-open"):document.getElementById("hamburger_toggle").classList.remove("nav-content-open")}}triggerDesignServiceModal(){var t=this;return(0,r.Z)(function*(){t.BsModalService.show($,{class:"comp-design-service-container site-modal"})})()}handleDropdownKeyDown(t,n,i){13==t.keyCode?this.showMenuContent(n):27==t.keyCode?(this.hideMenuContent(n,t),setTimeout(()=>{if(null!==document.getElementById("hamburger_toggle").offsetParent)document.getElementById("hamburger_toggle").setAttribute("aria-expanded","false"),t&&setTimeout(function(){document.getElementById("hamburger_toggle").focus()},300),this.onCloseParentHamburger.emit(t);else{const a=i.getElementsByClassName("nav-heading-link")[0];a&&a.focus()}},10)):9==t.keyCode&&setTimeout(()=>{if(!i.querySelectorAll(":focus").length&&(this.hideMenuContent(n,t),null!==document.getElementById("hamburger_toggle").offsetParent)){const c=document.querySelector(t.shiftKey?"#hamburger_toggle":"search-widget input.search-bar");c&&setTimeout(()=>{this.onCloseParentHamburger.emit(t),c.focus()},0)}},0)}expandKeydown(t){(40==t.keyCode||39==t.keyCode||38==t.keyCode||37==t.keyCode)&&t.preventDefault()}hideMenuContent(t,n){this.tap||document.getElementById("hamburger_toggle").contains(n.relatedTarget)||(clearInterval(this.navContentTimer),this.intervalPendingExecution=!1,this.onLeaveAllProductsContent.emit(),this.visibleNavContent=null,this.removeScrollbarSpace(),document.getElementById("hamburger_toggle").classList.remove("nav-content-open"))}removeScrollbarSpace(){document.body.classList.remove("open-header-nav"),this.hasScrollbar&&(document.body.style.paddingRight="0",document.getElementById("livechat_floating_button")&&(document.getElementById("livechat_floating_button").style.right="-43px"),document.querySelector(".window-scrolled")&&(document.querySelector(".window-scrolled").style.width="100%"))}replaceMenuIconClass(t){return t.replace(/new-badge|best-seller-badge|new-badge/g,"")}resetAllActiveItem(){const t=document.querySelectorAll(".js-menu-nav .active");if(t.length>0)for(const n in t)t[n]instanceof HTMLElement&&t[n].classList.remove("active")}hideSubmenus(t,n){const i=document.querySelectorAll(".type-1 > li");for(const a in i)if(i[a]instanceof HTMLElement){const c=Number(i[a].getAttribute("data-column"));if(t&&t<c){i[a].classList.remove("active");const l=i[a].querySelectorAll('[data-nav-tabindex="true"]');if(l.length>0)for(const d in l)l[d]instanceof HTMLElement&&l[d].classList.remove("active")}if(t&&1*c!=t&&t<1*c&&i[a].querySelectorAll(".submenu.active")){const l=i[a].querySelectorAll(".submenu.active");if(l.length>0)for(const d in l)if(l[d]instanceof HTMLElement&&n){const m=l[d].getAttribute("data-submenu-id");-1!=this.submenuIds.indexOf(n)&&m!=n&&l[d].classList.remove("active")}}}}navFocus(t,d,m,l){if("focusin"==t.type&&t.target.classList.contains("nav-expander"))return;const c=t;this.menuNavHoverStart||(this.menunavType2Classes(),this.menuNavHoverStart=!0),this.imgSubmenuIds.length<1&&(this.imgSubmenuIds=this.getImgSubmenuIds()),this.removeDataItemId(),this.hoverTimeout&&clearTimeout(this.hoverTimeout),this.hoverTimeout=setTimeout(()=>{this.setImageDisplayMapping(d,m),t.target.parentNode.classList.contains("js-nav-link-list")&&(this.resetAllActiveItem(),t.target.parentNode.classList.add("active")),m&&(d?(t.target.offsetParent&&(c.target.parentNode.parentNode.parentNode.parentNode.parentNode.classList.add("active"),t.target.offsetParent.parentNode.classList.add("active")),document.querySelector('li[data-column="'+m+'"]').classList.add("active")):(document.querySelector('li[data-column="'+m+'"]').classList.remove("active"),1==m&&t.target.offsetParent&&t.target.offsetParent.parentNode.classList.remove("active"))),this.hideSubmenus(m,d),this.setDefaultActiveImage(m),m&&document.querySelector('li[data-column="'+m+'"] [data-nav-tabindex="true"].active')&&document.querySelector('li[data-column="'+m+'"] [data-nav-tabindex="true"].active').classList.remove("active"),d&&t.target.classList.add("active");const S=document.querySelectorAll('ul[data-submenu-id="'+d+'"]');if(d&&S.length>0)for(const b in S)S[b]instanceof HTMLElement&&S[b].classList.add("active");if(l){const b=document.querySelector('li[data-column="'+l+'"] ul.active');t.target.parentNode.parentNode.querySelector('[data-nav-tabindex="true"]').classList.add("active"),b&&b.querySelector('li [data-nav-tabindex="true"]')&&b.querySelector('li [data-nav-tabindex="true"]').focus()}},200)}getImageUrl(t){return t?this.sanitizer.bypassSecurityTrustUrl(t.trim()):""}menunavType2Classes(){const t=document.querySelectorAll(".js-nav-content-container");if(t.length>0)for(const n in t)if(t[n]instanceof HTMLElement){let i=0,a=0;const c=t[n].querySelectorAll(".links > ul:not(.logo)"),l=t[n].querySelectorAll(".images > figure");l.length>0&&(l.length<3&&(a=1),l.length>2&&l.length<5&&(a=2),l.length>=5&&(a=3),t[n].querySelector(".images").classList.add("col"+a));let d=0;a<5&&(d=5-a),c.length>0&&(i=c.length,t[n].querySelector(".links").classList.add("col"+i),d>0&&t[n].querySelector(".links").classList.add("custom-col"+d))}}setDefaultActiveImage(t){if(t&&this.activeImageMenuMapping.length>0){let n=this.activeImageMenuMapping[t];if(!n)for(const i in this.activeImageMenuMapping)t>i&&(n=this.activeImageMenuMapping[i]);if(document.querySelector(".type-1 .image .submenu.active")){const i=document.querySelectorAll(".type-1 .image .submenu.active");for(const a in i)i[a]instanceof HTMLElement&&i[a].classList.remove("active")}n&&document.querySelector('.image ul[data-submenu-id="'+n+'"]')&&document.querySelector('.image ul[data-submenu-id="'+n+'"]').classList.add("active")}}removeDataItemId(){if(this.submenuIds.length<1&&document.querySelectorAll("ul[data-submenu-id]"))for(const n in document.querySelectorAll("ul[data-submenu-id]"))document.querySelectorAll("ul[data-submenu-id]")[n]instanceof HTMLElement&&this.submenuIds.push(document.querySelectorAll("ul[data-submenu-id]")[n].getAttribute("data-submenu-id"));if(this.submenuIds.length>0){for(const n in document.querySelectorAll("a[data-item-id]"))if(document.querySelectorAll("a[data-item-id]")[n]instanceof HTMLElement){const i=document.querySelectorAll("a[data-item-id]")[n].getAttribute("data-item-id");-1==this.submenuIds.indexOf(i)&&(document.querySelectorAll("a[data-item-id]")[n].parentElement.setAttribute("data-has-children","0"),document.querySelectorAll("a[data-item-id]")[n].removeAttribute("aria-expanded"),document.querySelectorAll("a[data-item-id]")[n].removeAttribute("data-item-id"))}for(const n in document.querySelectorAll("div[data-item-id]"))if(document.querySelectorAll("div[data-item-id]")[n]instanceof HTMLElement){const i=document.querySelectorAll("div[data-item-id]")[n].getAttribute("data-item-id");-1==this.submenuIds.indexOf(i)&&(document.querySelectorAll("div[data-item-id]")[n].parentElement.setAttribute("data-has-children","0"),document.querySelectorAll("div[data-item-id]")[n].removeAttribute("aria-expanded"),document.querySelectorAll("div[data-item-id]")[n].removeAttribute("data-item-id"))}}const t=document.querySelectorAll(".type-1 .submenu a:not([data-item-id]) ~ .expand-wrap");if(t.length>0)for(const n in t)t[n]instanceof HTMLElement&&t[n].parentNode.removeChild(t[n])}getImgSubmenuIds(){const t=[];if(document.querySelector(".type-1 .image .submenu")){const n=document.querySelectorAll(".type-1 .image .submenu");for(const i in n)n[i]instanceof HTMLElement&&t.push(n[i].getAttribute("data-submenu-id"))}return t}setImageDisplayMapping(t,n){n&&this.imgSubmenuIds.length>0&&(Array.isArray(this.activeImageMenuMapping[n])||(this.activeImageMenuMapping[n]=[]),this.activeImageMenuMapping[n]=-1!=this.imgSubmenuIds.indexOf(t)?t:0);let i=!1;if(n&&this.activeImageMenuMapping.length>0)for(const a in this.activeImageMenuMapping)this.activeImageMenuMapping[a]||(i=!0),(n<a||i)&&delete this.activeImageMenuMapping[a];return this.activeImageMenuMapping}keyNavigate(t){if(t.target.parentNode.parentNode.parentNode){let i=t.target.parentNode.parentNode.getAttribute("data-parent-column");if("click"==t.type){i=1*i+1;const a=t.target.parentNode.parentNode.querySelector('[data-nav-tabindex="true"]').getAttribute("data-item-id"),c=t.target.parentNode.parentNode.parentNode.parentNode.getAttribute("data-column");this.navFocus(t,a,c,i),t.target.setAttribute("aria-expanded",!0)}if(37==t.keyCode){i=t.target.parentNode.getAttribute("data-parent-column"),i=1*i-1;var n=document.querySelector('li[data-column="'+i+'"] [data-nav-tabindex="true"].active');const a=document.querySelector('li[data-column="'+i+'"');a&&(n=a.querySelector('[data-nav-tabindex="true"].active')),n&&(n.nextElementSibling.querySelector(".nav-expander").getAttribute("aria-expanded")&&n.nextElementSibling.querySelector(".nav-expander").removeAttribute("aria-expanded"),n.focus(),n.classList.remove("active"),a.classList.remove("active"),t.target.parentNode.parentNode&&t.target.parentNode.parentNode.classList.remove("active"))}else 27==t.keyCode&&this.handleDropdownKeyDown(t,"nav",t.target.parentNode)}}static{this.\u0275fac=function(n){return new(n||o)(e.Y36(_.Q),e.Y36(P.tT),e.Y36(O.H7),e.Y36(V.c))}}static{this.\u0275cmp=e.Xpm({type:o,selectors:[["header-nav-menu"]],hostBindings:function(n,i){1&n&&e.NdJ("resize",function(c){return i.onResize(c)},!1,e.Jf7)},inputs:{navItem:"navItem"},outputs:{onCloseParentHamburger:"onCloseParentHamburger",onFocusOutParentHamburger:"onFocusOutParentHamburger",onLeaveAllProductsContent:"onLeaveAllProductsContent"},features:[e.TTD],decls:4,vars:3,consts:[["aria-expanded","true","nav-orientation","horizontal","class","nav-heading-link","data-nav-index","0","data-nav-type","all",3,"href",4,"ngIf","ngIfElse"],["type1NavHeadingNoLink",""],["role","menu",3,"ngClass",4,"ngIf"],["aria-expanded","true","nav-orientation","horizontal","data-nav-index","0","data-nav-type","all",1,"nav-heading-link",3,"href"],["role","list","aria-roledescription","menu expanded","data-nav-tabindex","true","tabindex","0","aria-expanded","true","nav-orientation","horizontal","data-nav-index","0","data-nav-type","all",1,"nav-heading-link"],["role","menu",3,"ngClass"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],["class","submenu",4,"ngFor","ngForOf"],[1,"submenu"],["class","submenu-item",3,"ngClass",4,"ngFor","ngForOf"],[1,"submenu-item",3,"ngClass"],[4,"ngIf","ngIfElse"],["featuredImage",""],["catalogLink",""],["tabindex","0","data-nav-tabindex","true",1,"submenu-item-link","item-no-link",3,"click"],[3,"ngClass",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["aria-expanded","fal
1se","class","submenu-item-link",3,"href","keydown",4,"ngIf","ngIfElse"],["type1NoLinkCatalog",""],[1,"expand-wrap"],["type","button","aria-description","press enter to expand",1,"nav-expander",3,"keydown","click"],["aria-expanded","false",1,"submenu-item-link",3,"href","keydown"],["class","badge",3,"ngClass",4,"ngIf"],[1,"badge",3,"ngClass"],["role","list","aria-roledescription","list collapsed","aria-expanded","false","tabindex","0","data-nav-tabindex","true",1,"submenu-item-link",3,"keydown"],["data-nav-level","5","data-has-children","0"],["nav-orientation","horizontal","data-el-type","featured_product",3,"href","keydown"],[1,"img-wrap"],["alt","",1,"img-main",3,"src"],["classs","site-primary-btn","tabindex","-1"],[3,"innerHtml"]],template:function(n,i){if(1&n&&e.YNc(0,Ee,4,6,"a",0)(1,De,4,5,"ng-template",null,1,e.W1O)(3,st,3,4,"ul",2),2&n){const a=e.MAs(2);e.Q6J("ngIf",i.navItem.value.url)("ngIfElse",a),e.xp6(3),e.Q6J("ngIf",i.navItem.value.hasOwnProperty("children")&&"type-1"==i.navItem.value.custom_styles)}},dependencies:[p.mk,p.sg,p.O5,p.Nd,qe.z,Q.v,U.j],encapsulation:2})}}return o})();function ct(o,s){if(1&o&&(e.TgZ(0,"a",5),e._uU(1),e.ALo(2,"decodeHtml"),e.ALo(3,"utf8Decode"),e.qZA()),2&o){const t=e.oxw();e.Q6J("href",t.checkRedirectUrl(t.navItem.value.url),e.LSH),e.uIk("data-nav-index",t.index),e.xp6(),e.hij(" ",e.lcZ(2,3,e.lcZ(3,5,t.navItem.value.catalog_name)),"\n")}}function lt(o,s){if(1&o&&(e.TgZ(0,"div",6),e._uU(1),e.ALo(2,"decodeHtml"),e.ALo(3,"utf8Decode"),e.qZA()),2&o){const t=e.oxw();e.uIk("data-nav-index",t.index),e.xp6(),e.hij(" ",e.lcZ(2,2,e.lcZ(3,4,t.navItem.value.catalog_name))," ")}}function ut(o,s){if(1&o&&(e._UZ(0,"img",16),e.ALo(1,"decodeHtml"),e.ALo(2,"utf8Decode")),2&o){const t=e.oxw(2).$implicit;e.Q6J("src",t.value.sanitizedMenuImage,e.LSH)("alt",e.lcZ(1,2,e.lcZ(2,4,t.value.catalog_name)))}}function dt(o,s){if(1&o&&e._UZ(0,"i",17),2&o){const t=e.oxw(2).$implicit,n=e.oxw();e.Q6J("ngClass",n.replaceMenuIconClass(t.value.custom_styles))}}function _t(o,s){if(1&o&&(e.TgZ(0,"a",11)(1,"div",12),e.YNc(2,ut,3,6,"img",13),e.qZA(),e.TgZ(3,"div",14),e.YNc(4,dt,1,1,"i",15),e._uU(5),e.ALo(6,"decodeHtml"),e.ALo(7,"utf8Decode"),e.qZA()()),2&o){const t=e.oxw().$implicit,n=e.oxw();e.Q6J("href",n.checkRedirectUrl(t.value.url),e.LSH),e.uIk("rel",t.value.rel_attribute?t.value.rel_attribute:"")("target","y"==t.value.new_window_flag?"_blank":""),e.xp6(2),e.Q6J("ngIf",t.value.menu_image),e.xp6(2),e.Q6J("ngIf",t.value.custom_styles&&(t.value.custom_styles.indexOf("site-icon-custom-quote")>=0||t.value.custom_styles.indexOf("site-icon-design-services")>=0||t.value.custom_styles.indexOf("site-icon-gear")>=0)),e.xp6(),e.hij(" ",e.lcZ(6,6,e.lcZ(7,8,t.value.catalog_name))," ")}}function mt(o,s){if(1&o&&(e._UZ(0,"img",16),e.ALo(1,"decodeHtml"),e.ALo(2,"utf8Decode")),2&o){const t=e.oxw(2).$implicit;e.Q6J("src",t.value.sanitizedMenuImage,e.LSH)("alt",e.lcZ(1,2,e.lcZ(2,4,t.value.catalog_name)))}}function pt(o,s){if(1&o&&e._UZ(0,"i",17),2&o){const t=e.oxw(2).$implicit,n=e.oxw();e.Q6J("ngClass",n.replaceMenuIconClass(t.value.custom_styles))}}function gt(o,s){if(1&o&&(e.TgZ(0,"div",12),e.YNc(1,mt,3,6,"img",13),e.qZA(),e.TgZ(2,"div",14),e.YNc(3,pt,1,1,"i",15),e._uU(4),e.ALo(5,"decodeHtml"),e.ALo(6,"utf8Decode"),e.qZA()),2&o){const t=e.oxw().$implicit;e.xp6(),e.Q6J("ngIf",t.value.menu_image),e.xp6(2),e.Q6J("ngIf",t.value.custom_styles&&(t.value.custom_styles.indexOf("site-icon-custom-quote")>=0||t.value.custom_styles.indexOf("site-icon-design-services")>=0||t.value.custom_styles.indexOf("site-icon-gear")>=0)),e.xp6(),e.hij(" ",e.lcZ(5,3,e.lcZ(6,5,t.value.catalog_name))," ")}}function ft(o,s){if(1&o&&e._UZ(0,"i",17),2&o){const t=e.oxw(2).$implicit,n=e.oxw(3);e.Q6J("ngClass",n.replaceMenuIconClass(t.value.custom_styles.replace("caret-right","")))}}function ht(o,s){if(1&o&&e._UZ(0,"span",24),2&o){const t=e.oxw(2).$implicit;e.Q6J("ngClass",t.value.custom_styles.replace("site-icon-gear","").replace("caret-right",""))}}const z=o=>({"caret-right":o});function vt(o,s){if(1&o&&(e.TgZ(0,"a",21),e.ALo(1,"decodeHtml"),e.ALo(2,"utf8Decode"),e.ALo(3,"decodeHtml"),e.ALo(4,"utf8Decode"),e.YNc(5,ft,1,1,"i",15),e.TgZ(6,"span",22),e._uU(7),e.ALo(8,"decodeHtml"),e.ALo(9,"utf8Decode"),e.qZA(),e.YNc(10,ht,1,1,"span",23),e.qZA()),2&o){const t=e.oxw().$implicit,n=e.oxw(2).$implicit,i=e.oxw();e.Q6J("href",i.checkRedirectUrl(t.value.url),e.LSH)("ngClass",e.VKq(21,z,t.value.custom_styles&&t.value.custom_styles.indexOf("caret-right")>=0)),e.uIk("data-parent-title",e.lcZ(1,9,e.lcZ(2,11,n.value.catalog_name)))("rel",t.value.rel_attribute?t.value.rel_attribute:"")("target","y"==t.value.new_window_flag?"_blank":"")("data-nav-title",e.lcZ(3,13,e.lcZ(4,15,t.value.catalog_name))),e.xp6(
15),e.Q6J("ngIf",t.value.custom_styles&&(t.value.custom_styles.indexOf("site-icon-custom-quote")>=0||t.value.custom_styles.indexOf("site-icon-design-services")>=0||t.value.custom_styles.indexOf("site-icon-gear")>=0)),e.xp6(2),e.hij(" ",e.lcZ(8,17,e.lcZ(9,19,t.value.catalog_name))," "),e.xp6(3),e.Q6J("ngIf",t.value.custom_styles&&(t.value.custom_styles.indexOf("new-badge")>=0||t.value.custom_styles.indexOf("reduced-badge")>=0||t.value.custom_styles.indexOf("best-seller-badge")>=0))}}function Ct(o,s){if(1&o&&e._UZ(0,"i",17),2&o){const t=e.oxw(2).$implicit,n=e.oxw(3);e.Q6J("ngClass",n.replaceMenuIconClass(t.value.custom_styles.replace("caret-right","")))}}function bt(o,s){if(1&o&&e._UZ(0,"span",24),2&o){const t=e.oxw(2).$implicit;e.Q6J("ngClass",t.value.custom_styles.replace("site-icon-gear","").replace("caret-right",""))}}function yt(o,s){if(1&o&&(e.TgZ(0,"div",25),e.YNc(1,Ct,1,1,"i",15),e.TgZ(2,"span",22),e._uU(3),e.ALo(4,"decodeHtml"),e.ALo(5,"utf8Decode"),e.qZA(),e.YNc(6,bt,1,1,"span",23),e.qZA()),2&o){const t=e.oxw().$implicit;e.Q6J("ngClass",e.VKq(10,z,t.value.custom_styles&&t.value.custom_styles.indexOf("caret-right")>=0)),e.uIk("rel",t.value.rel_attribute?t.value.rel_attribute:"")("target","y"==t.value.new_window_flag?"_blank":""),e.xp6(),e.Q6J("ngIf",t.value.custom_styles&&(t.value.custom_styles.indexOf("site-icon-custom-quote")>=0||t.value.custom_styles.indexOf("site-icon-design-services")>=0||t.value.custom_styles.indexOf("site-icon-gear")>=0)),e.xp6(2),e.hij(" ",e.lcZ(4,6,e.lcZ(5,8,t.value.catalog_name))," "),e.xp6(3),e.Q6J("ngIf",t.value.custom_styles&&(t.value.custom_styles.indexOf("new-badge")>=0||t.value.custom_styles.indexOf("reduced-badge")>=0||t.value.custom_styles.indexOf("best-seller-badge")>=0))}}function St(o,s){if(1&o&&(e.ynx(0),e.YNc(1,vt,11,23,"a",19)(2,yt,7,12,"ng-template",null,20,e.W1O),e.BQk()),2&o){const t=s.$implicit,n=e.MAs(3);e.xp6(),e.Q6J("ngIf",t.value.url)("ngIfElse",n)}}function xt(o,s){if(1&o&&(e.TgZ(0,"div",18),e.YNc(1,St,4,2,"ng-container",4),e.ALo(2,"keyvalue"),e.qZA()),2&o){const t=e.oxw().$implicit,n=e.oxw();e.xp6(),e.Q6J("ngForOf",e.xi3(2,1,t.value.children,n.asIsOrder))}}function wt(o,s){if(1&o&&(e.ynx(0),e.TgZ(1,"div",7),e.YNc(2,_t,8,10,"a",8)(3,gt,7,7,"ng-template",null,9,e.W1O)(5,xt,3,4,"div",10),e.ALo(6,"keyvalue"),e.qZA(),e.BQk()),2&o){const t=s.$implicit,n=e.MAs(4);let i;e.xp6(2),e.Q6J("ngIf",t.value.url)("ngIfElse",n),e.xp6(3),e.Q6J("ngIf",(null==(i=e.lcZ(6,3,t.value.children))?null:i.length)>0)}}let It=(()=>{class o{constructor(t,n,i){this.ConfigManagerService=t,this.SanitizeImageService=n,this.sanitizer=i,this.isSanitizedData=!1,this.hasScrollbar=!1,this.appConfig=this.ConfigManagerService.getConfig("app")}ngOnInit(){}ngOnChanges(t){typeof this.navItem<"u"&&(this.isSanitizedData||(this.SanitizeImageService.sanitizeMenuImages(this.navItem,"menu_image"),this.isSanitizedData=!0))}addScrollbarSpace(){const t=window.innerWidth-document.documentElement.clientWidth;document.body.classList.add("open-header-nav"),t>0&&(document.body.style.paddingRight=t+"px",this.hasScrollbar=!0,document.getElementById("livechat_floating_button")&&(document.getElementById("livechat_floating_button").style.right=-43+t+"px"),document.querySelector(".open-header-nav .window-scrolled")&&(document.querySelector(".open-header-nav .window-scrolled").style.width="calc(100% - "+t+"px)"))}removeScrollbarSpace(){document.body.classList.remove("open-header-nav"),this.hasScrollbar&&(document.body.style.paddingRight="0",document.getElementById("livechat_floating_button")&&(document.getElementById("livechat_floating_button").style.right="-43px"),document.querySelector(".window-scrolled")&&(document.querySelector(".window-scrolled").style.width="100%"))}orderBySort(t,n){return t.value.sort-n.value.sort}asIsOrder(t,n){return 0}checkRedirectUrl(t){return t?-1==t.indexOf("http")?this.appConfig.site_url+t:t:this.sanitizer.bypassSecurityTrustResourceUrl("javascript:void(0)")}replaceMenuIconClass(t){return t.replace(/new-badge|best-seller-badge|new-badge/g,"")}stripTags(t){return t.replace(/(<([^>]+)>)/gi,"")}getImageUrl(t){return t?this.sanitizer.bypassSecurityTrustUrl(t.trim()):""}static{this.\u0275fac=function(n){return new(n||o)(e.Y36(_.Q),e.Y36(V.c),e.Y36(O.H7))}}static{this.\u0275cmp=e.Xpm({type:o,selectors:[["header-nav-menu2"]],inputs:{navItem:"navItem"},features:[e.TTD],decls:7,vars:6,consts:[["aria-expanded","true","nav-orientation","horizontal","class","nav-heading-link","data-nav-type","all",3,"href",4,"ngIf","ngIfElse"],["type2NavHeadingNoLink",""],["role","menuitem",1,"nav-content-container","js-nav-content-container","type-2",3,"ngClass"],[1,"submenu-nav-container","links"],[4,"ngFor","ngForOf"],["aria-expanded","true","nav-orientation","horizontal","data-nav-type","all",1,"nav-heading-link",3,"href"],["role","list","aria-roledescription","menu","data-nav-tabindex","true","tabindex","0","aria-expanded","true","nav-orientation","horizontal","data-nav-type","all",1,"nav-heading-link"],[1,"catalog-content"],[3,"href",4,"ngIf","ngIfElse"],["type2N
1oLinkCatalog",""],["class","child-links",4,"ngIf"],[3,"href"],[1,"nav-heading-thumbnail"],[3,"src","alt",4,"ngIf"],["data-navi-type","2","nav-orientation","horizontal","tabindex","0","data-nav-tabindex","true",1,"column-header"],[3,"ngClass",4,"ngIf"],[3,"src","alt"],[3,"ngClass"],[1,"child-links"],["data-nav-level","2",3,"href","ngClass",4,"ngIf","ngIfElse"],["type2ChildLinks",""],["data-nav-level","2",3,"href","ngClass"],[1,"item-name"],["class","badge",3,"ngClass",4,"ngIf"],[1,"badge",3,"ngClass"],["aria-roledescription","list","role","list","tabindex","0","data-nav-tabindex","true",3,"ngClass"]],template:function(n,i){if(1&n&&(e.YNc(0,ct,4,7,"a",0)(1,lt,4,6,"ng-template",null,1,e.W1O),e.TgZ(3,"div",2)(4,"div",3),e.YNc(5,wt,7,5,"ng-container",4),e.ALo(6,"keyvalue"),e.qZA()()),2&n){const a=e.MAs(2);e.Q6J("ngIf",i.navItem.value.url)("ngIfElse",a),e.xp6(3),e.Q6J("ngClass",i.navItem.value.img_col_class),e.xp6(2),e.Q6J("ngForOf",e.lcZ(6,4,null==i.navItem||null==i.navItem.value?null:i.navItem.value.children))}},dependencies:[p.mk,p.sg,p.O5,p.Nd,Q.v,U.j],encapsulation:2})}}return o})();const Mt=["headerNavMenuComponent"];function Tt(o,s){if(1&o&&(e.ynx(0),e._UZ(1,"header-nav-menu",12,13),e.BQk()),2&o){const t=e.oxw(2).$implicit;e.xp6(),e.Q6J("navItem",t)}}function Nt(o,s){if(1&o&&e._UZ(0,"header-nav-menu2",12,14),2&o){const t=e.oxw(2).$implicit;e.Q6J("navItem",t)}}function At(o,s){if(1&o&&(e.TgZ(0,"li",8,9),e.ALo(2,"decodeHtml"),e.ALo(3,"utf8Decode"),e.YNc(4,Tt,3,1,"ng-container",10)(5,Nt,3,1,"ng-template",null,11,e.W1O),e.qZA()),2&o){const t=e.MAs(6),n=e.oxw().$implicit;e.Gre("nav-link-list js-nav-link-list ",n.value.catalog_class,""),e.uIk("data-nav-title",e.lcZ(2,6,e.lcZ(3,8,n.value.catalog_name))),e.xp6(4),e.Q6J("ngIf","type-1"==n.value.custom_styles)("ngIfElse",t)}}function Lt(o,s){if(1&o&&(e.ynx(0),e.YNc(1,At,7,10,"li",7),e.BQk()),2&o){const t=s.$implicit;e.xp6(),e.Q6J("ngIf",!(null!=t&&null!=t.value&&null!=t.value.custom_styles&&t.value.custom_styles.includes("mobile-only")))}}function Ht(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"ul",5),e.NdJ("mouseleave",function(i){e.CHM(t);const a=e.oxw(2);return e.KtG(a.navMouseLeave(i))})("mouseover",function(i){e.CHM(t);const a=e.oxw(2);return e.KtG(a.navMouseOver(i))}),e.YNc(1,Lt,2,1,"ng-container",6),e.ALo(2,"keyvalue"),e.qZA()}if(2&o){const t=e.oxw(2);e.xp6(),e.Q6J("ngForOf",e.lcZ(2,1,t.headerNavData))}}function kt(o,s){if(1&o&&(e.TgZ(0,"div",2)(1,"nav",3),e.YNc(2,Ht,3,3,"ul",4),e.qZA()()),2&o){const t=e.oxw();e.xp6(2),e.Q6J("ngIf",t.headerNavData)}}let Zt=(()=>{class o{set isWindowScrolledContentActive(t){if("boolean"==typeof t){const n=document.getElementById("header_nav_data_0");n&&(n.style.display=t?"block":"none")}}onResize(t){this.isMobile=window.innerWidth<=991}constructor(t,n){this.MenuNavService=t,this.BsModalService=n,this.isWindowScrolled=!1,this.openAllProductsContentOnWindowScroll=!1,this.onHideDropdown=new e.vpe,this.onShowDropdown=new e.vpe,this.onCloseParentHamburger=new e.vpe,this.onFocusOutParentHamburger=new e.vpe,this.onLeaveAllProductsContent=new e.vpe,this.isMobile=!1,this.menuNavHoverStart=!1,this.tap=!1,this.activeImageMenuMapping=[],this.imgSubmenuIds=[],this.submenuIds=[],this.tap="ontouchstart"in document.documentElement}ngOnInit(){if(this.getProductMenu(),this.mobileMenuMaxHeight){const t=document.getElementsByClassName("mobile_header_container_js")[0],n=document.getElementsByClassName("mobile_search_container_js")[0],i=t.getBoundingClientRect().height,a=n.getBoundingClientRect().height;this.mobileMenuMaxHeight=Math.floor(this.mobileMenuMaxHeight-(i+a))}}set visibleNavContent(t){this.headerNavMenuComponent&&(this.headerNavMenuComponent.visibleNavContent=t)}get visibleNavContent(){return this.headerNavMenuComponent&&this.headerNavMenuComponent.visibleNavContent}attachEvent(){setTimeout(()=>{document.querySelector(".js-menu-nav")&&(document.querySelector(".js-menu-nav").addEventListener("focusin",t=>{this.navFocus(t,0,0,0)}),document.querySelector(".js-menu-nav").addEventListener("focusout",t=>{this.navFocusOut(t)}))},1e3)}removeScrollbarSpace(){this.headerNavMenuComponent.removeScrollbarSpace()}addScrollbarSpace(){this.headerNavMenuComponent.addScrollbarSpace()}getProductMenu(){let t=null;(t=this.MenuNavService.getMenuNavData())?(this.headerNavData=t.header_nav_data,this.mobileHeaderNavData=t.mobile_header_nav_data):this.MenuNavService.menuNavData$.subscribe(n=>{n&&(this.headerNavData=n.header_nav_data,this.mobileHeaderNavData=n.mobile_header_nav_data,this.attachEvent(),setTimeout(()=>{this.removeDataItemId()},100))})}resetAllActiveItem(){const t=document.querySelectorAll(".js-menu-nav .active");if(t.length>0)for(const n in t)t[n]instanceof HTMLElement&&t[n].classList.remove("active")}navMouseLeave(t){null!==document.getElementById("hamburger_toggle").offsetParent&&(document.getElementById("hamburger_toggle").setAttribute("aria-expanded","fal
1se"),this.tap?this.onFocusOutParentHamburger.emit(t):this.onCloseParentHamburger.emit(t)),setTimeout(()=>{this.resetAllActiveItem()},300)}navFocusOut(t){document.querySelector(".js-menu-nav").contains(t.relatedTarget)||this.navMouseLeave(t)}navFocus(t,d,m,l){if("focusin"==t.type&&t.target.classList.contains("nav-expander"))return;const c=t;this.menuNavHoverStart||(this.menunavType2Classes(),this.menuNavHoverStart=!0),this.imgSubmenuIds.length<1&&(this.imgSubmenuIds=this.getImgSubmenuIds()),this.removeDataItemId(),this.hoverTimeout&&clearTimeout(this.hoverTimeout),this.hoverTimeout=setTimeout(()=>{this.setImageDisplayMapping(d,m),t.target.parentNode.classList.contains("js-nav-link-list")&&(this.resetAllActiveItem(),t.target.parentNode.classList.add("active")),m&&(d?(t.target.offsetParent&&(c.target.parentNode.parentNode.parentNode.parentNode.parentNode.classList.add("active"),t.target.offsetParent.parentNode.classList.add("active")),document.querySelector('li[data-column="'+m+'"]').classList.add("active")):(document.querySelector('li[data-column="'+m+'"]').classList.remove("active"),1==m&&t.target.offsetParent&&t.target.offsetParent.parentNode.classList.remove("active"))),this.hideSubmenus(m,d),this.setDefaultActiveImage(m),m&&document.querySelector('li[data-column="'+m+'"] [data-nav-tabindex="true"].active')&&document.querySelector('li[data-column="'+m+'"] [data-nav-tabindex="true"].active').classList.remove("active"),d&&t.target.classList.add("active");const S=document.querySelectorAll('ul[data-submenu-id="'+d+'"]');if(d&&S.length>0)for(const b in S)S[b]instanceof HTMLElement&&S[b].classList.add("active");if(l){const b=document.querySelector('li[data-column="'+l+'"] ul.active');t.target.parentNode.parentNode.querySelector('[data-nav-tabindex="true"]').classList.add("active"),b&&b.querySelector('li [data-nav-tabindex="true"]')&&b.querySelector('li [data-nav-tabindex="true"]').focus()}},200)}menunavType2Classes(){const t=document.querySelectorAll(".js-nav-content-container");if(t.length>0)for(const n in t)if(t[n]instanceof HTMLElement){let i=0,a=0;const c=t[n].querySelectorAll(".links > ul:not(.logo)"),l=t[n].querySelectorAll(".images > figure");l.length>0&&(l.length<3&&(a=1),l.length>2&&l.length<5&&(a=2),l.length>=5&&(a=3),t[n].querySelector(".images").classList.add("col"+a));let d=0;a<5&&(d=5-a),c.length>0&&(i=c.length,t[n].querySelector(".links").classList.add("col"+i),d>0&&t[n].querySelector(".links").classList.add("custom-col"+d))}}setDefaultActiveImage(t){if(t&&this.activeImageMenuMapping.length>0){let n=this.activeImageMenuMapping[t];if(!n)for(const i in this.activeImageMenuMapping)t>i&&(n=this.activeImageMenuMapping[i]);if(document.querySelector(".type-1 .image .submenu.active")){const i=document.querySelectorAll(".type-1 .image .submenu.active");for(const a in i)i[a]instanceof HTMLElement&&i[a].classList.remove("active")}n&&document.querySelector('.image ul[data-submenu-id="'+n+'"]')&&document.querySelector('.image ul[data-submenu-id="'+n+'"]').classList.add("active")}}removeDataItemId(){if(this.submenuIds.length<1&&document.querySelectorAll("ul[data-submenu-id]"))for(const n in document.querySelectorAll("ul[data-submenu-id]"))document.querySelectorAll("ul[data-submenu-id]")[n]instanceof HTMLElement&&this.submenuIds.push(document.querySelectorAll("ul[data-submenu-id]")[n].getAttribute("data-submenu-id"));if(this.submenuIds.length>0){for(const n in document.querySelectorAll("a[data-item-id]"))if(document.querySelectorAll("a[data-item-id]")[n]instanceof HTMLElement){const i=document.querySelectorAll("a[data-item-id]")[n].getAttribute("data-item-id");-1==this.submenuIds.indexOf(i)&&(document.querySelectorAll("a[data-item-id]")[n].parentElement.setAttribute("data-has-children","0"),document.querySelectorAll("a[data-item-id]")[n].removeAttribute("aria-expanded"),document.querySelectorAll("a[data-item-id]")[n].removeAttribute("data-item-id"))}for(const n in document.querySelectorAll("div[data-item-id]"))if(document.querySelectorAll("div[data-item-id]")[n]instanceof HTMLElement){const i=document.querySelectorAll("div[data-item-id]")[n].getAttribute("data-item-id");-1==this.submenuIds.indexOf(i)&&(document.querySelectorAll("div[data-item-id]")[n].parentElement.setAttribute("data-has-children","0"),document.querySelectorAll("div[data-item-id]")[n].removeAttribute("aria-expanded"),document.querySelectorAll("div[data-item-id]")[n].removeAttribute("data-item-id"))}}const t=document.querySelectorAll(".type-1 .submenu a:not([data-item-id]) ~ .expand-wrap");if(t.length>0)for(const n in t)t[n]instanceof HTMLElement&&t[n].parentNode.removeChild(t[n])}getImgSubmenuIds(){const t=[];if(document.querySelector(".type-1 .image .submenu")){const n=document.querySelectorAll(".type-1 .image .submenu");for(const i in n)n[i]instanceof HTMLElement&&t.push(n[i].getAttribute("data-submenu-id"))}return t}navMouseOver(t){if("focusin"==t.type&&t.target.classList.contains("nav-expander"))return;this.menuNavHoverStart||(this.menunavType2Classes(),this.menuNavHoverStart=!0),this.imgSubmenuIds.length<1&&(this.imgSubmenuIds=this.getImgSubmenuIds()),this.removeDataItemId();const n=t.target.getAttribute("data-item-id"),i=t.target.offsetParent.getAttribute("data-column");this.hoverTimeout&&clearTimeout(this.hoverTimeout),this.hoverTimeout=setTimeout(()=>{let a=t.target.parentNode;this.setImageDisplayMapping(n,i),"header-nav-menu"!=a.tagName.toLowerCase()&&"header-nav-menu2"!=a.tagName.toLowerCase()||!(a=a.parentNode).classList.contains("js-nav-link-list")?a.classList.contains("js-nav-link-list")&&(this.resetAllActiveItem(),a.classList.add("active")):(this.resetAllActiveItem(),a.classList.add("active")),i&&(n?(t.target.offsetParent&&t.target.offsetParent.parentNode.classList.add("active"),document.querySelector('li[data-column="'+i+'"]').classList.add("active")):(document.querySelector('li[data-column="'+i+'"]').classList.remove("active"),1==i&&t.target.offsetParent&&t.target.offsetParent.parentNode.classList.remove("active"))),this.hideSubmenus(i,n),this.setDefaultActiveImage(i),i&&document.querySelector('li[data-column="'+i+'"] [data-nav-tabindex="true"].active')&&document.querySelector('li[data-column="'+i+'"] [data-nav-tabindex="true"].active').classList.remove("active"),n&&(t.target.offsetParent&&t.target.offsetParent.querySelectorAll(".submenu-item .submenu-item-link").forEach(l=>{l.classList.remove("active")}),t.target.classList.add("active"));const c=document.querySelectorAll('ul[data-submenu-id="'+n+'"]');if(n&&c.length>0)for(const l in c)c[l]instanceof HTMLElement&&c[l].classList.add("active")},200)}setImageDisplayMapping(t,n){n&&this.imgSubmenuIds.length>0&&(Array.isArray(this.activeImageMenuMapping[n])||(this.activeImageMenuMapping[n]=[]),this.activeImageMenuMapping[n]=-1!=this.imgSubmenuIds.indexOf(t)?t:0);let i=!1;if(n&&this.activeImageMenuMapping.length>0)for(const a in this.activeImageMenuMapping)this.activeImageMenuMapping[a]||(i=!0),(n<a||i)&&delete this.activeImageMenuMapping[a];return this.activeImageMenuMapping}hideSubmenus(t,n){const i=document.querySelectorAll(".type-1 > li");for(const a in i)if(i[a]instanceof HTMLElement){const c=Number(i[a].getAttribute("data-column"));if(t&&t<c){i[a].classList.remove("active");const l=i[a].querySelectorAll('[data-nav-tabindex="true"]');if(l.length>0)for(const d in l)l[d]instanceof HTMLElement&&l[d].classList.remove("active")}if(t&&1*c!=t&&t<1*c&&i[a].querySelectorAll(".submenu.active")){const l=i[a].querySelectorAll(".submenu.active");if(l.length>0)for(const d in l)if(l[d]instanceof HTMLElement&&n){const m=l[d].getAttribute("data-submenu-id");-1!=this.submenuIds.indexOf(n)&&m!=n&&l[d].classList.remove("active")}}}}static{this.\u0275fac=function(n){return new(n||o)(e.Y36(w),e.Y36(P.tT))}}static{this.\u0275cmp=e.Xpm({type:o,selectors:[["header-nav"]],viewQuery:function(n,i){if
1(1&n&&e.Gf(Mt,5),2&n){let a;e.iGM(a=e.CRH())&&(i.headerNavMenuComponent=a.first)}},hostBindings:function(n,i){1&n&&e.NdJ("resize",function(c){return i.onResize(c)},!1,e.Jf7)},inputs:{navType:"navType",isDropdownActive:"isDropdownActive",headerNavResponseData:"headerNavResponseData",siteCode:"siteCode",mobileMenuMaxHeight:"mobileMenuMaxHeight",isWindowScrolled:"isWindowScrolled",openAllProductsContentOnWindowScroll:"openAllProductsContentOnWindowScroll",isWindowScrolledContentActive:"isWindowScrolledContentActive"},outputs:{onHideDropdown:"onHideDropdown",onShowDropdown:"onShowDropdown",onCloseParentHamburger:"onCloseParentHamburger",onFocusOutParentHamburger:"onFocusOutParentHamburger",onLeaveAllProductsContent:"onLeaveAllProductsContent"},decls:2,vars:1,consts:[["role","application","id","keyboard-start","data-version","new-structure","aria-roledescription","menu"],["class","global-header-nav-container",4,"ngIf"],[1,"global-header-nav-container"],[1,"site-navbar","container","ga4-nav-click","header"],["class","header-nav-list-group js-menu-nav",3,"mouseleave","mouseover",4,"ngIf"],[1,"header-nav-list-group","js-menu-nav",3,"mouseleave","mouseover"],[4,"ngFor","ngForOf"],["data-nav-level","0","data-has-children","1",3,"class",4,"ngIf"],["data-nav-level","0","data-has-children","1"],["parentNav",""],[4,"ngIf","ngIfElse"],["type2Menu",""],[3,"navItem"],["headerNavMenuComponent",""],["headerNavMenuComponent","","type2Menu",""]],template:function(n,i){1&n&&(e.TgZ(0,"div",0),e.YNc(1,kt,3,1,"div",1),e.qZA()),2&n&&(e.xp6(),e.Q6J("ngIf","wide_header_nav_2"==i.navType))},dependencies:[p.sg,p.O5,rt,It,p.Nd,Q.v,U.j],encapsulation:2})}}return o})();var X=u(69862);let qt=(()=>{class o{constructor(t,n){this.ConfigManagerService=t,this.Http=n}getBusinessHoursTooltip(){const t=this.ConfigManagerService.getConfig("app"),n=this.ConfigManagerService.getConfig("site");return this.Http.get(t.sms_page_tooltip_endpoint+"/"+n.business_hours_tooltip_id)}static{this.\u0275fac=function(n){return new(n||o)(e.LFG(_.Q),e.LFG(X.eN))}}static{this.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();var Et=u(71928),Dt=u(51418);let Pt=(()=>{class o{focusOnElement(t,n=!1){if(n)(0,Et.H)(200).pipe((0,Dt.q)(1)).subscribe(()=>{const i=document.querySelector(t);i&&i.focus({preventScroll:!0})});else{const i=document.querySelector(t);i&&i.focus({preventScroll:!0})}}ariaSizeValueLabel(t){return null!=t?t.replaceAll('"'," inches").replaceAll(" x "," by "):t}onModalShown(t,n){const i=document.querySelector("."+t);null!=i&&(i.setAttribute("aria-hidden","true"),setTimeout(()=>{i.setAttribute("aria-hidden","false"),i.querySelector("."+n).focus()},750))}static{this.\u0275fac=function(n){return new(n||o)}}static{this.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();var Jt=u(22823);const Ot=["businessHoursModalTemplate"],Qt=["businessHoursModal"],Ut=["modalContent"];function Bt(o,s){1&o&&(e.TgZ(0,"div",15),e._UZ(1,"i",16),e.qZA())}function Ft(o,s){if(1&o&&e._UZ(0,"div",17),2&o){const t=e.oxw(2);e.Q6J("innerHTML",t.businessHours,e.oJD)}}function Yt(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div",7,8),e.NdJ("keydown",function(i){e.CHM(t);const a=e.MAs(1),c=e.oxw(),l=e.MAs(6);return e.KtG(c.focusOnBusinessHoursLinkOnEsc(i,l,a))}),e.TgZ(2,"div",9)(3,"button",10),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.closeModal())}),e._uU(4,"\xd7"),e.qZA(),e.TgZ(5,"h3",11),e._uU(6,"Business Hours"),e.qZA()(),e.TgZ(7,"div",12),e.YNc(8,Bt,2,0,"div",13)(9,Ft,1,1,"div",14),e.qZA()()}if(2&o){const t=e.oxw();e.Q6J("firstFocusableElementSelector",".title")("lastFocusableElementSelector",".js-end-trap"),e.xp6(8),e.Q6J("ngIf",t.businessHoursLoading),e.xp6(),e.Q6J("ngIf",!t.businessHoursLoading)}}let jt=(()=>{class o{constructor(t,n,i,a){this.ConfigManagerService=t,this.BusinessHoursService=n,this.BsModalService=i,this.AccessibilityService=a,this.businessHoursLoading=!0,this.showModal=!1,this.siteConfig=this.ConfigManagerService.getConfig("site")}ngOnInit(){}formatPhoneNumber(){return this.siteConfig.phone_no.replace(/\./g,"-")}getBusinessHoursTooltip(){typeof this.businessHours>"u"&&(this.businessHours=this.BusinessHoursService.getBusinessHoursTooltip().subscribe(t=>{this.businessHoursLoading=!1;const n=t.response;if(t.success){if(this.businessHours=n.tooltip_html,n.tooltip_css){const i=document.createElement("div");i.innerHTML=n.tooltip_css,this.businessHoursModal.nativeElement.appendChild(i)}if(n.tooltip_js){const i=document.createElement("script");i.setAttribute("type","text/javascript"),i.innerHTML=n.tooltip_js,this.businessHoursModal.nativeElement.appendChild(i)}}},t=>{console.error(t)}))}closeModal(){const t=document.querySelector(".modal-backdrop.show"),n=document.querySelector(".modal.show");t&&t.classList.remove("show"),t&&n.classList.remove("show"),this.BsModalRef.hide()}focusOnBusinessHoursModal(t,n){const i="comp-business-hours-modal-container";return this.modalAccessibilitySub(i,"modal-title"),this.BsModalRef=this.BsModalService.show(this.businessHoursModalTemplate,{class:i+" site-modal",backdrop:!0}),!1}modalAccessibilitySub(t,n){this.modalShowSub=this.BsModalService.onShown.subscribe(()=>{this.getBusinessHoursTooltip(),this.AccessibilityService.onModalShown(t,n)}),this.modalHideSub=this.BsModalService.onHidden.subscribe(()=>{null!=this.modalShowSub&&this.modalShowSub.unsubscribe(),null!=this.modalHideSub&&this.modalHideSub.unsubscribe()})}focusOnBusinessHoursModalOnKeydown(t,n){13==t.keyCode&&this.focusOnBusinessHoursModal(t,n)}focusOnBusinessHoursLinkOnEsc(t,n,i){27==t.keyCode?setTimeout(()=>{this.BsModalRef.hide()},0):9==t.keyCode&&setTimeout(()=>{i.querySelector("*:focus")||this.BsModalRef.hide()},10)}static{this.\u0275fac=function(n){return new(n||o)(e.Y36(_.Q),e.Y36(qt),e.Y36(P.tT),e.Y36(Pt))}}static{this.\u0275cmp=e.Xpm({type:o,selectors:[["contact-info"]],viewQuery:function(n,i){if
1(1&n&&(e.Gf(Ot,5),e.Gf(Qt,5),e.Gf(Ut,5)),2&n){let a;e.iGM(a=e.CRH())&&(i.businessHoursModalTemplate=a.first),e.iGM(a=e.CRH())&&(i.businessHoursModal=a.first),e.iGM(a=e.CRH())&&(i.modalContent=a.first)}},decls:10,vars:3,consts:[[1,"css-grid-span-5"],[1,"primary-contact-info"],[1,"contact-no",3,"href"],[1,"secondary-contact-info"],["href","","role","button","aria-haspopup","true","aria-label","Quality Customer Service, business hours","data-target","#business_hours_modal","data-toggle","modal",1,"secondary-contact-info-label",3,"click","keydown"],["businessHoursLink",""],["businessHoursModalTemplate",""],["focusTrap","","id","business_hours_modal","role","dialog",3,"firstFocusableElementSelector","lastFocusableElementSelector","keydown"],["businessHoursModal",""],[1,"modal-header"],["type","button","data-dismiss","modal",1,"modal-close-btn","close",3,"click"],["role","text","tabindex","0","aria-label","Business Hours, All Times are PT (Pacific Time)",1,"modal-title"],[1,"modal-body"],["class","modal-loader",4,"ngIf"],[3,"innerHTML",4,"ngIf"],[1,"modal-loader"],[1,"loader-icon","fa","fa-spinner","fa-spin"],[3,"innerHTML"]],template:function(n,i){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"a",2),e._uU(3),e.qZA()(),e.TgZ(4,"div",3)(5,"a",4,5),e.NdJ("click",function(c){return i.focusOnBusinessHoursModal(c,null)})("keydown",function(c){return i.focusOnBusinessHoursModalOnKeydown(c,null)}),e._uU(7," Quality Customer Service "),e.qZA()()(),e.YNc(8,Yt,10,4,"ng-template",null,6,e.W1O)),2&n&&(e.xp6(2),e.Q6J("href","tel:+1-"+i.siteConfig.phone_no,e.LSH),e.uIk("aria-label","give us a call at "+i.formatPhoneNumber()),e.xp6(),e.hij(" ",i.siteConfig.phone_no," "))},dependencies:[p.O5,Jt.w],encapsulation:2})}}return o})();var Rt=u(70923),Gt=u(97016);let Wt=(()=>{class o{constructor(t,n,i){this.LoginRegisterModalService=t,this.RecentlyViewedProductsService=n,this.LogoutService=i,this.removeInlineStyles=!0}openModal(){var t=this;return(0,r.Z)(function*(n="login"){switch(t.LoginRegisterModalService.withCloseAnimation=!0,n){case"login":yield t.openLoginModal();break;case"forgotPassword":yield t.openForgotPasswordModal();break;case"register":yield t.openRegisterAccountModal()}}).apply(this,arguments)}openLoginModal(){var t=this;return(0,r.Z)(function*(){t.LoginRegisterModalService.openModal({formType:"login",customClass:"site-modal"}),t.addSiteModal()})()}openForgotPasswordModal(){var t=this;return(0,r.Z)(function*(){t.LoginRegisterModalService.openModal({formType:"forgotPassword",customClass:"site-modal"}),t.addSiteModal()})()}openRegisterAccountModal(){var t=this;return(0,r.Z)(function*(){t.LoginRegisterModalService.openModal({formType:"register",customClass:"site-modal"}),t.addSiteModal()})()}addSiteModal(){const t=document.querySelector(".modal .comp-login-register-modal-container");return t.classList.add("site-modal"),t}logout(t){return new Promise(n=>{const i=()=>this.LogoutService.logout().subscribe(n);this.RecentlyViewedProductsService.getPageIds(t).then(()=>{this.RecentlyViewedProductsService.clearIdsCookie().subscribe(i,i)}).catch(i)})}static{this.\u0275fac=function(n){return new(n||o)(e.LFG(f.h),e.LFG(g.r),e.LFG(Gt.P))}}static{this.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();var Kt=u(20673);function $t(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(5);return e.KtG(i.loginAccount())}),e._uU(1," Log In or Create Account "),e.qZA()}if(2&o){const t=e.oxw(5);e.Q6J("href",t.byPassUrl())}}function Vt(o,s){if(1&o&&(e.ynx(0),e.YNc(1,$t,2,1,"button",6),e.BQk()),2&o){const t=e.oxw().$implicit;e.xp6(),e.Q6J("ngIf","login"===t.type)}}function zt(o,s){if(1&o&&(e.TgZ(0,"span",10),e._uU(1),e.qZA()),2&o){const t=e.oxw(5);e.MGl("title","Hi, ",null==t.customerInfo?null:t.customerInfo.first_name,""),e.Q6J("href",t.byPassUrl()),e.xp6(),e.hij(" Hi, ",null==t.customerInfo?null:t.customerInfo.first_name,"!")}}function Xt(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"a",11),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(5);return e.KtG(i.logoutAccount())}),e._uU(1),e.qZA()}if(2&o){const t=e.oxw(2).$implicit,n=e.oxw(3);e.Q6J("href",n.byPassUrl(),e.LSH),e.xp6(),e.hij(" ",t.account_item_name,"")}}function en(o,s){if(1&o&&(e.ynx(0),e.YNc(1,zt,2,3,"span",8)(2,Xt,2,2,"a",9),e.BQk()),2&o){const t=e.oxw().$implicit;e.xp6(),e.Q6J("ngIf","customer_salutation"===t.type),e.xp6(),e.Q6J("ngIf","logout"===t.type)}}function tn(o,s){if(1&o&&(e.TgZ(0,"a",12),e._uU(1),e.qZA()),2&o){const t=e.oxw().$implicit,n=e.oxw(3);e.s9C("title",t.account_item_name),e.Q6J("href","link"===t.type?t.url:n.byPassUrl(),e.LSH),e.xp6(),e.hij(" ",t.account_item_name," ")}}function nn(o,s){if(1&o&&(e.TgZ(0,"li",4),e.YNc(1,Vt,2,1,"ng-container",2)(2,en,3,2,"ng-container",2)(3,tn,2,3,"a",5),e.qZA()),2&o){const t=s.$implicit,n=e.oxw(3);e.uIk("data-nav-title",t.account_item_name),e.xp6(),e.Q6J("ngIf","link"!==t.type&&!n.customerInfo),e.xp6(),e.Q6J("ngIf","link"!==t.type&&n.customerInfo),e.xp6(),e.Q6J("ngIf","link"===t.type)}}function on(o,s){if(1&o&&(e.ynx(0),e.YNc(1,nn,4,4,"li",3),e.ALo(2,"objNgFor"),e.BQk()),2&o){const t=e.oxw(2);e.xp6(),e.Q6J("ngForOf",e.lcZ(2,1,t.accountItems[t.pageIndex]))}}function an(o,s){if(1&o&&(e.ynx(0),e.YNc(1,on,3,3,"ng-container",2),e.BQk()),2&o){const t=e.oxw();e.xp6(),e.Q6J("ngIf",t.accountItems[t.pageIndex])}}
1function sn(o,s){if(1&o&&(e.ynx(0),e.TgZ(1,"li"),e._UZ(2,"span",15),e.qZA(),e.BQk()),2&o){const t=e.oxw().$implicit;e.xp6(),e.Tol(t.value.custom_styles),e.xp6(),e.Q6J("innerHtml",t.value.catalog_name,e.oJD)}}function rn(o,s){if(1&o&&e._UZ(0,"img",23),2&o){const t=e.oxw(3).$implicit;e.Gre("site-icon ",t.value.custom_styles,""),e.s9C("src",t.value.menu_image,e.LSH)}}function cn(o,s){1&o&&(e.TgZ(0,"span",24),e._uU(1," New "),e.qZA())}function ln(o,s){1&o&&(e.TgZ(0,"span",25),e._uU(1," Best Seller "),e.qZA())}const B=o=>({"has-children":o});function un(o,s){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"a",18),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2).$implicit,a=e.oxw(3);return e.KtG(a.nextPage(i.value.catalog_item_id,i.value.catalog_name))}),e.YNc(2,rn,1,4,"img",19),e.TgZ(3,"span",20),e._UZ(4,"span",15),e.YNc(5,cn,2,0,"span",21)(6,ln,2,0,"span",22),e.qZA()(),e.BQk()}if(2&o){const t=e.oxw(2),n=t.$implicit,i=t.index,a=e.oxw(3);e.xp6(),e.s9C("title",n.value.catalog_name),e.Q6J("ngClass",e.VKq(8,B,a.hasChildren(n.value.catalog_item_id)))("href",a.byPassUrl(),e.LSH),e.uIk("data-index",i),e.xp6(),e.Q6J("ngIf",n.value.menu_image),e.xp6(2),e.Q6J("innerHtml",n.value.catalog_name,e.oJD),e.xp6(),e.Q6J("ngIf",a.hasCustomStyles(n.value.custom_styles,"new-badge")),e.xp6(),e.Q6J("ngIf",a.hasCustomStyles(n.value.custom_styles,"best-seller-badge"))}}function dn(o,s){if(1&o&&e._UZ(0,"img",23),2&o){const t=e.oxw(4).$implicit;e.Gre("site-icon ",t.value.custom_styles,""),e.s9C("src",t.value.menu_image,e.LSH)}}function _n(o,s){1&o&&(e.TgZ(0,"span",24),e._uU(1," New "),e.qZA())}function mn(o,s){1&o&&(e.TgZ(0,"span",25),e._uU(1," Best Seller "),e.qZA())}function pn(o,s){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"a",18),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(6);return e.KtG(i.triggerDesignServiceModal())}),e.YNc(2,dn,1,4,"img",19),e.TgZ(3,"span",20),e._UZ(4,"span",15),e.YNc(5,_n,2,0,"span",21)(6,mn,2,0,"span",22),e.qZA()(),e.BQk()}if(2&o){const t=e.oxw(3),n=t.$implicit,i=t.index,a=e.oxw(3);e.xp6(),e.s9C("title",n.value.catalog_name),e.Q6J("ngClass",e.VKq(8,B,a.hasChildren(n.value.catalog_item_id)))("href",a.byPassUrl(),e.LSH),e.uIk("data-index",i),e.xp6(),e.Q6J("ngIf",n.value.menu_image),e.xp6(2),e.Q6J("innerHtml",n.value.catalog_name,e.oJD),e.xp6(),e.Q6J("ngIf",a.hasCustomStyles(n.value.custom_styles,"new-badge")),e.xp6(),e.Q6J("ngIf",a.hasCustomStyles(n.value.custom_styles,"best-seller-badge"))}}function gn(o,s){if(1&o&&e._UZ(0,"img",23),2&o){const t=e.oxw(4).$implicit;e.Gre("site-icon ",t.value.custom_styles,""),e.s9C("src",t.value.menu_image,e.LSH)}}function fn(o,s){1&o&&(e.TgZ(0,"span",24),e._uU(1," New "),e.qZA())}function hn(o,s){1&o&&(e.TgZ(0,"span",25),e._uU(1," Best Seller "),e.qZA())}function vn(o,s){if(1&o&&(e.TgZ(0,"a",27),e.YNc(1,gn,1,4,"img",19),e.TgZ(2,"span",20),e._UZ(3,"span",15),e.YNc(4,fn,2,0,"span",21)(5,hn,2,0,"span",22),e.qZA()()),2&o){const t=e.oxw(3),n=t.$implicit,i=t.index,a=e.oxw(3);e.s9C("title",n.value.catalog_name),e.Q6J("ngClass",e.VKq(8,B,a.hasChildren(n.value.catalog_item_id)))("href",a.formatUrl(n.value.url),e.LSH),e.uIk("data-index",i),e.xp6(),e.Q6J("ngIf",n.value.menu_image),e.xp6(2),e.Q6J("innerHtml",n.value.catalog_name,e.oJD),e.xp6(),e.Q6J("ngIf",a.hasCustomStyles(n.value.custom_styles,"new-badge")),e.xp6(),e.Q6J("ngIf",a.hasCustomStyles(n.value.custom_styles,"best-seller-badge"))}}function Cn(o,s){if(1&o&&e.YNc(0,pn,7,10,"ng-container",0)(1,vn,6,10,"ng-template",null,26,e.W1O),2&o){const t=e.MAs(2),n=e.oxw(2).$implicit;e.Q6J("ngIf",n.value.custom_styles&&n.value.custom_styles.indexOf("design-services")>=0)("ngIfElse",t)}}function bn(o,s){if(1&o&&(e.TgZ(0,"li",16),e.ALo(1,"decodeHtml"),e.ALo(2,"utf8Decode"),e.YNc(3,un,7,10,"ng-container",0)(4,Cn,3,2,"ng-template",null,17,e.W1O),e.qZA()),2&o){const t=e.MAs(5),n=e.oxw().$implicit,i=e.oxw(3);e.Q6J("ngClass",0==i.pageIndex?"parent-catalog-item-container":"catalog-item-container"),e.uIk("data-nav-level",i.pageIndex+1)("data-nav-title",e.lcZ(1,5,e.lcZ(2,7,n.value.catalog_name))),e.xp6(3),e.Q6J("ngIf",i.hasChildren(n.value.catalog_item_id))("ngIfElse",t)}}function yn(o,s){if(1&o&&e._UZ(0,"img",23),2&o){const t=e.oxw().$implicit;e.Gre("site-icon ",t.value.custom_styles,""),e.s9C("src",t.value.menu_image,e.LSH)}}function Sn(o,s){1&o&&(e.TgZ(0,"span",24),e._uU(1," New "),e.qZA())}function xn(o,s){1&o&&(e.TgZ(0,"span",25),e._uU(1," Best Seller "),e.qZA())}function wn(o,s){if(1&o&&(e.TgZ(0,"li",29),e.ALo(1,"decodeHtml"),e.ALo(2,"utf8Decode"),e.ynx(3),e.TgZ(4,"a",27),e.YNc(5,yn,1,4,"img",19),e.TgZ(6,"span",20),e._UZ(7,"span",15),e.YNc(8,Sn,2,0,"span",21)(9,xn,2,0,"span",22),e.qZA()(),e.BQk(),e.qZA()),2&o){const t=s.$implicit,n=s.index,i=e.oxw(5);e.uIk("data-nav-level",i.pageIndex+1)("data-nav-title",e.lcZ(1,10,e.lcZ(2,12,t.value.catalog_name))),e.xp6(4),e.s9C("title",t.value.catalog_name),e.Q6J("ngClass",e.VKq(14,B,i.hasChildren(t.value.catalog_item_id)))("href",i.formatUrl(t.value.url),e.LSH),e.uIk("data-index",n),e.xp6(),e.Q6J("ngIf",t.value.menu_image),e.xp6(2),e.Q6J("innerHtml",t.value.catalog_name,e.oJD),e.xp6(),e.Q6J("ngIf",i.hasCustomStyles(t.value.custom_styles,"new-badge")),e.xp6(),e.Q6J("ngIf",i.hasCustomStyles(t.value.custom_styles,"best-seller-badge"))}}function In(o,s){if(1&o&&(e.ynx(0),e.YNc(1,wn,10,16,"li",28),e.ALo(2,"keyvalue"),e.BQk()),2&o){const t=e.oxw().$implicit,n=e.oxw(3);e.xp6(),e.Q6J("ngForOf",e.xi3(2,1,t.value.children,n.orderBySort))}}function Mn(o,s){if(1&o&&(e.ynx(0),e.YNc(1,sn,3,4,"ng-container",0)(2,bn,6,9,"ng-template",null,14,e.W1O)(4,In,3,4,"ng-container",2),e.BQk()),2&o){const t=s.$implicit,n=e.MAs(3),i=e.oxw(3);e.xp6(),e.Q6J("ngIf",i.hasCustomStyles(t.value.custom_styles,"mobile-menu-header"))("ngIfElse",n),e.xp6(3),e.Q6J("ngIf",i.pageIndex>0)}}function Tn(o,s){if(1&o&&(e.ynx(0),e.YNc(1,Mn,5,3,"ng-container",13),e.ALo(2,"keyvalue"),e.BQk()),2&o){const t=e.oxw(2);e.xp6(),e.Q6J("ngForOf",e.xi3(2,1,t.catalogItems[t.pageIndex],t.orderBySort))}}function Nn(o,s){if(1&o&&(e.ynx(0),e._UZ(1,"hr",30),e.TgZ(2,"li",31)(3,"span"),e._uU(4,"Account"),e.qZA()(),e.TgZ(5,"li",32)(6,"a",33),e._UZ(7,"img",34),e._uU(8," My Orders "),e.qZA()(),e.BQk()),2&o){const t=e.oxw(2);e.xp6(6),e.s9C("href",t.appConfig.account_orders_client+"/order",e.LSH),e.xp6(),e.MGl("src","",t.appConfig.static_path,"/assets/vendor/dri/up-base-css/assets/img/my-orders.svg",e.LSH)}}function An(o,s){if(1&o&&e.YNc(0,Tn,3,4,"ng-container",2)(1,Nn,9,2,"ng-container",2),2&o){const t=e.oxw();e.Q6J("ngIf",t.catalogItems[t.pageIndex]),e.xp6(),e.Q6J("ngIf",0==t.pageIndex)}}let Ln=(()=>{class o{constructor(t,n,i){this.sanitized=t,this.BsModalService=n,this.ConfigManagerService=i,this.pageIndex=0,this.isAccountMode=!1,this.accountMode=new e.vpe,this.logout=new e.vpe,this.login=new e.vpe,this.register=new e.vpe,this.nextpage=new e.vpe,this.prevpage=new e.vpe,this.appConfig=this.ConfigManagerService.getConfig("app")}ngOnInit(){}ngOnChanges(){this.accountItems[this.pageIndex]&&(this.accountItems[this.pageIndex]=this.accountItems[this.pageIndex].filter(t=>!("customer_salutation"==t.type||"register"==t.type)))}hasChildren(t){return this.childrenCatalogs[t]}hasCustomStyles(t,n){return!!t&&t.includes(n)}nextPage(t,n){this.nextpage.next({catalogItemId:t,catalogItemName:n})}resetValues(){this.isAccountMode=!1}loginAccount(){this.login.next(!0)}logoutAccount(){this.logout.next(!0)}byPassUrl(){return this.sanitized.bypassSecurityTrustResourceUrl("javascript:void(0)")}hasCustomIcon(t){let n=!1;return t&&["site-icon-gear","site-icon-custom-quote","site-icon-design-services","site-icon-marketing-materials","site-icon-stickers-and-labels","site-icon-boxes-and-packaging","site-icon-signs-and-banners","site-icon-apparel-and-promo","featured-collections","my-orders"].forEach(i=>
1{t.includes(i)&&(n=!0)}),n}formatUrl(t){let n=this.appConfig.site_url+(t||"");return t?t&&t.includes("https:")&&(n=t):n=this.sanitized.bypassSecurityTrustResourceUrl("javascript:void(0)"),n}enableAccountMode(){this.isAccountMode=!0,this.accountMode.next(!0)}triggerDesignServiceModal(){this.BsModalService.show($,{class:"comp-design-service-container site-modal"})}orderBySort(t,n){return t.value.sort-n.value.sort}static{this.\u0275fac=function(n){return new(n||o)(e.Y36(O.H7),e.Y36(P.tT),e.Y36(_.Q))}}static{this.\u0275cmp=e.Xpm({type:o,selectors:[["mobile-side-drawer-list"]],inputs:{pageIndex:"pageIndex",accountItems:"accountItems",customerInfo:"customerInfo",catalogItems:"catalogItems",childrenCatalogs:"childrenCatalogs",isAccountMode:"isAccountMode"},outputs:{accountMode:"accountMode",logout:"logout",login:"login",register:"register",nextpage:"nextpage",prevpage:"prevpage"},features:[e.TTD],decls:4,vars:3,consts:[[4,"ngIf","ngIfElse"],["productList",""],[4,"ngIf"],["data-nav-level","1","class","parent-catalog-item-container","data-parent-title","My Account",4,"ngFor","ngForOf"],["data-nav-level","1","data-parent-title","My Account",1,"parent-catalog-item-container"],[3,"title","href",4,"ngIf"],["data-title","Login","class","drawer-btn-login",3,"href","click",4,"ngIf"],["data-title","Login",1,"drawer-btn-login",3,"href","click"],["class","customer-salutation",3,"title","href",4,"ngIf"],["data-title","Logout",3,"href","click",4,"ngIf"],[1,"customer-salutation",3,"title","href"],["data-title","Logout",3,"href","click"],[3,"title","href"],[4,"ngFor","ngForOf"],["normalItem",""],[3,"innerHtml"],[3,"ngClass"],["noChild",""],[1,"catalog-item-link",3,"title","ngClass","href","click"],[3,"src","class",4,"ngIf"],[1,"menu-item"],["class","tag new-badge",4,"ngIf"],["class","tag best-seller-badge",4,"ngIf"],[3,"src"],[1,"tag","new-badge"],[1,"tag","best-seller-badge"],["noDesignService",""],[1,"catalog-item-link",3,"title","ngClass","href"],["class","catalog-item-container child-item",4,"ngFor","ngForOf"],[1,"catalog-item-container","child-item"],[1,"nav-helper"],[1,"mobile-menu-header","menu-header-account"],["data-nav-level","0","data-nav-title","My Orders",1,"parent-catalog-item-container"],["data-title","My Orders","data-index","14",3,"href"],[1,"site-icon",3,"src"]],template:function(n,i){if(1&n&&(e.TgZ(0,"ul"),e.YNc(1,an,2,1,"ng-container",0)(2,An,2,2,"ng-template",null,1,e.W1O),e.qZA()),2&n){const a=e.MAs(3);e.uIk("data-drawer-list",i.pageIndex),e.xp6(),e.Q6J("ngIf",i.isAccountMode)("ngIfElse",a)}},dependencies:[p.mk,p.sg,p.O5,p.Nd,Kt.Z,Q.v,U.j],encapsulation:2})}}return o})();const Hn=["mobileSearchWidget"],R=o=>({hide:o}),kn=o=>({"no-cart-count":o});function Zn(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div",5)(1,"div",6)(2,"div",7)(3,"div",8)(4,"div",9,10)(6,"standard-searchbar",11),e.NdJ("onEmitSearch",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.initSearch())}),e.qZA()()()(),e.TgZ(7,"div",12)(8,"a",13),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.prevPage())}),e._UZ(9,"i",14),e.qZA(),e.TgZ(10,"a",15),e._UZ(11,"span",16),e.qZA()(),e.TgZ(12,"mobile-side-drawer-list",17),e.NdJ("logout",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.logoutAccount())})("login",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.loginAccount())})("accountMode",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.enableAccountMode())})("nextpage",function(i){e.CHM(t);const a=e.oxw();return e.KtG(a.nextPage(i))}),e.qZA(),e.TgZ(13,"div",18)(14,"div",19)(15,"a",20),e._UZ(16,"i",21),e.TgZ(17,"small"),e._uU(18,"Need Help?"),e.qZA()(),e.TgZ(19,"a",22),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.enableAccountMode())}),e._UZ(20,"i",23),e.TgZ(21,"small"),e._uU(22,"Account"),e.qZA()(),e.TgZ(23,"a",24),e._UZ(24,"i",25),e.TgZ(25,"small"),e._uU(26,"Cart"),e.qZA()()()()()()}if(2&o){const t=s.$implicit,n=s.index,i=e.oxw();e.uIk("data-slide-index",n),e.xp6(2),e.Q6J("ngClass",e.VKq(17,R,"column-1"!=t)),e.xp6(5),e.Q6J("ngClass",e.VKq(19,R,"column-1"==t)),e.xp6(3),e.Q6J("href",i.byPassUrl(),e.LSH),e.xp6(),e.Q6J("innerHTML",i.pageTitle[n],e.oJD),e.xp6(),e.Q6J("pageIndex",n)("accountItems",i.accountItems)("customerInfo",i.customerInfo)("catalogItems",i.catalogItems)("isAccountMode",i.isAccountMode)("childrenCatalogs",i.childrenCatalogs),e.xp6(),e.Q6J("ngClass",e.VKq(21,R,"column-1"!=t)),e.xp6(2),e.s9C("href",i.appConfig.site_url+"/support.html",e.LSH),e.xp6(4),e.Q6J("href",i.byPassUrl(),e.LSH),e.xp6(4),e.s9C("href",i.appConfig.checkout_client_url+"/cart",e.LSH),e.xp6(),e.Q6J("ngClass",e.VKq(23,kn,i.po_cart_count+i.ffr_cart_count===0)),e.uIk("data-cart-count",i.po_cart_count+i.ffr_cart_count)}}let qn=(()=>{class o{constructor(t,n,i,a,c,l,d,m,S,b){this.sanitized=t,this.modalService=n,this.StorageService=i,this.MenuNavService=a,this.CartCountService=c,this.RefreshTokenService=l,this.FfrCartCountService=d,this.ConfigManagerService=m,this.SearchClientLoaderService=S,this.LoginRegisterService=b,this.open=!1,this.close=new e.vpe,this.logout=new e.vpe,this.login=new e.vpe,this.register=new e.vpe,this.pageTitle=[],this.isAccountMode=!1,this.currentPage=0,this.translateX=0,this.history=[],this.pages=[],this.parentCatalogs={},this.catalogItems=[],this.accountItems=[],this.childrenCatalogs={},this.po_cart_count=0,this.ffr_cart_count=0,this.isSearchClientLoaded=!1,this.appConfig=this.ConfigManagerService.getConfig("app");const q=this.ConfigManagerService.getConfig("routes").checkout_client;this.po_cart_url=q.cart,this.ffr_cart_url=q.ffr_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)}ngOnInit(){var t=this;return(0,r.Z)(function*(){yield t.getProductMenu(),t.setPagesAndParentCatalogs(t.headerNavData),t.generateChildren(),t.setCatalogItemsAndPageTitle(0,""),t.poCartId&&t.CartCountService.getCartCount(t.poCartId).then(i=>{t.po_cart_count=Number(i)}),t.CartCountService.cartCount$.subscribe(i=>{t.po_cart_count=i}),t.ffrCartId&&t.FfrCartCountService.getCartCount(t.ffrCartId).then(i=>{t.ffr_cart_count=Number(i)}),t.FfrCartCountService.ffrCartCount$.subscribe(i=>{t.ffr_cart_count=i}),t.RefreshTokenService.persistentCart$.subscribe(i=>{i&&(i.hasOwnProperty("cart_count")&&(t.po_cart_count=Number(i.cart_count)),i.hasOwnProperty("ffr_cart_count")&&(t.ffr_cart_count=Number(i.ffr_cart_count)))})})()}generateChildren(){const t={};
1Object.values(this.headerNavData).forEach(function(n){const i=n;if(i.children){var a=[];Object.values(i.children||{}).forEach(function(c){a.push(c)}),a&&a.length>0&&(t[i.catalog_item_id]=a)}}),console.log(JSON.parse(JSON.stringify(t))),console.log(this.headerNavData),this.childrenCatalogs=t}ngAfterViewInit(){var t=this;return(0,r.Z)(function*(){t.headerNavData||(yield t.getProductMenu()),t.resetValues()})()}initSearch(){var t=this;return(0,r.Z)(function*(){t.mobileSearchWidget&&!t.isSearchClientLoaded&&(yield t.SearchClientLoaderService.loadSearchFeature("lookahead"),new SearchClient.SearchLookahead(t.appConfig.website_code).init(t.mobileSearchWidget.nativeElement,!0,{type:"breakpoint",maxWidth:767}),t.isSearchClientLoaded=!0)})()}getProductMenu(){return new Promise(t=>{let n=null;(n=this.MenuNavService.getMenuNavData())?(this.headerNavData=n.header_nav_data,t()):this.MenuNavService.menuNavData$.subscribe(i=>{i&&(this.headerNavData=i.header_nav_data,t())})})}setPagesAndParentCatalogs(t){this.parentCatalogs=t,this.pages=["column-1","column-2"]}setCatalogItemsAndPageTitle(t,n){let i=this.childrenCatalogs[t];t||(i=this.parentCatalogs,this.history=[{catalogItemId:t,catalogItemName:n}]),this.pageTitle[this.currentPage]=n,this.catalogItems[this.currentPage]=i}prevPage(){this.isAccountMode=!1,this.history.pop();const t=this.history[this.history.length-1];this.currentPage--,this.setCatalogItemsAndPageTitle(t.catalogItemId,t.catalogItemName),this.translateX=100*this.currentPage}nextPage(t){const{catalogItemId:n,catalogItemName:i}=t;this.history.push({catalogItemId:n,catalogItemName:i}),this.currentPage++,this.setCatalogItemsAndPageTitle(n,i),this.translateX=100*this.currentPage}closeMenu(){this.close.emit();const t=this;setTimeout(function(){t.resetValues()},500)}resetValues(){this.isAccountMode=!1,this.currentPage=0,this.translateX=0,this.setCatalogItemsAndPageTitle(0,"")}getTransitionValue(){return`translateX(-${this.translateX}%)`}enableAccountMode(){this.history.push({}),this.isAccountMode=!0,this.setAccountItemsAndPageTitle(),this.currentPage++,this.translateX=100*this.currentPage}
1setAccountItemsAndPageTitle(){this.pageTitle[1]="My Account",this.catalogItems[1]=[],this.accountItems[0]=[],this.accountItems[1]=[{type:"customer_salutation",url:"/"},{type:"login",url:"/"},{type:"register",url:"/"},{type:"link",account_item_name:"Order Status",url:this.appConfig?.account_orders_client+"/order"},{type:"link",account_item_name:"Quotes",url:this.appConfig?.account_quotes_client+"/quotes"},{type:"link",account_item_name:"Saved Designs",url:this.appConfig?.account_designs_client+"/my-saved-designs"},{type:"link",account_item_name:"Mailing List",url:this.appConfig?.account_mailing_client+"/mailing-list"},{type:"link",account_item_name:"Settings",url:this.appConfig?.account_settings_client+"/contact-information"},{type:"logout",account_item_name:"Logout"}]}loginAccount(){var t=this;return(0,r.Z)(function*(){t.closeMenu(),yield t.LoginRegisterService.openModal("login"),t.login.next(!0)})()}registerNewAccount(){var t=this;return(0,r.Z)(function*(){t.closeMenu(),yield t.LoginRegisterService.openModal("register"),t.register.next(!0)})()}logoutAccount(){var t=this;return(0,r.Z)(function*(){t.closeMenu(),yield t.LoginRegisterService.logout(t.customerInfo.customer_id),t.logout.next(!0),t.logoutRedirect()})()}logoutRedirect(){window.location.href=this.appConfig.site_url}byPassUrl(t){return this.sanitized.bypassSecurityTrustResourceUrl("javascript:void(0)")}static{this.\u0275fac=function(n){return new(n||o)(e.Y36(O.H7),e.Y36(P.tT),e.Y36(W.V),e.Y36(w),e.Y36(L.Y),e.Y36(Z.$),e.Y36(J.e),e.Y36(_.Q),e.Y36(I.l),e.Y36(Wt))}}static{this.\u0275cmp=e.Xpm({type:o,selectors:[["mobile-menu-nav"]],viewQuery:function(n,i){if(1&n&&e.Gf(Hn,5),2&n){let a;e.iGM(a=e.CRH())&&(i.mobileSearchWidget=a.first)}},inputs:{headerNavData:"headerNavData",open:"open",customerInfo:"customerInfo"},outputs:{close:"close",logout:"logout",login:"login",register:"register"},decls:5,vars:5,consts:[["id","js-ex-drawer",1,"mobile-side-nav-drawer","w-100","h-100"],[1,"mobile-side-nav-drawer-slider","ga4-nav-click","header"],[1,"mobile-side-nav-drawer-track","h-100","text-nowrap"],["class","mobile-side-nav-drawer-slide",4,"ngFor","ngForOf"],[1,"mobile-side-nav-close-button",3,"click"],[1,"mobile-side-nav-drawer-slide"],[1,"d-flex","flex-column","h-100","align-items-start","text-center"],[1,"mobile-side-nav-drawer-header",3,"ngClass"],[1,"flex-row","align-items-center","text-left","mobile-side-nav-drawer-search"],["id","mobile_search_widget",1,"search-widget-wrapper"],["mobileSearchWidget",""],[3,"onEmitSearch"],[1,"mobile-side-nav-drawer-header","d-flex","flex-row","align-items-center","child-nav",3,"ngClass"],["data-slide-action","prev",3,"click"],[1,"fa","fa-angle-left"],[1,"mobile-side-nav-drawer-link-out","flex-fill","no-link",3,"href"],[1,"mobile-side-nav-drawer-title",3,"innerHTML"],[1,"mobile-side-nav-drawer-list","flex-fill","h-100",2,"min-height","1px",3,"pageIndex","accountItems","customerInfo","catalogItems","isAccountMode","childrenCatalogs","logout","login","accountMode","nextpage"],[1,"mobile-side-nav-drawer-controls",3,"ngClass"],[1,"d-flex","flex-row","align-items-middle","justify-content-between"],["data-nav-level","0","data-nav-title","Need Help?",3,"href"],[1,"drawer-icon-help"],["data-nav-level","0","data-nav-title","Account","data-has-children","1",1,"js-drawer-btn-account",3,"href","click"],[1,"drawer-icon-account"],["data-nav-level","0","data-nav-title","Cart",3,"href"],[1,"drawer-icon-cart",3,"ngClass"]],template:function(n,i){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e.YNc(3,Zn,27,25,"div",3),e.qZA()(),e.TgZ(4,"div",4),e.NdJ("click",function(){return i.closeMenu()}),e.qZA()()),2&n&&(e.ekj("open",i.open),e.xp6(2),e.Udp("transform",i.getTransitionValue()),e.xp6(),e.Q6J("ngForOf",i.pages))},dependencies:[p.mk,p.sg,A.b,Ln],encapsulation:2})}}return o})();const En=["mobileSearchWidget"],Dn=["headerNavComponent"],Pn=["headerSpacer"];function Jn(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div",20)(1,"mobile-menu-nav",21),e.NdJ("close",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.showHideMenu("mobile_product_menu_shown"))}),e.qZA()()}if(2&o){const t=e.oxw();e.xp6(),e.Q6J("open",t.mobileProductMenuShown)("customerInfo",t.customerInfo)}}
1const On=o=>({hide:o});let Qn=(()=>{class o{onScroll(t){this.hideMobileSearch()}onClick(t,n){!n.classList.contains("logo-container")&&!n.closest(".nav-item")&&this.closeMobileNav()}constructor(t,n,i,a,c,l){this.Router=t,this.AuthService=n,this.ConfigManagerService=i,this.MenuNavService=a,this.SearchClientLoaderService=c,this.DataLayerService=l,this.customerInfo=null,this.isLoggedIn=!1,this.isMobile=!1,this.mobileNavOpen=!1,this.siteCode="",this.scrollPosition=0,this.timer=0,this.isAccountLinksShown=!1,this.mobileProductMenuShown=!1,this.mobileMenuMaxHeight=0,this.mobile_product_menu_shown=!1,this.isWindowScrolled=!1,this.isSearchClientLoaded=!1,this.appConfig=this.ConfigManagerService.getConfig("app"),this.siteConfig=this.ConfigManagerService.getConfig("site"),this.customerCsConfig=this.ConfigManagerService.getConfig("customer_cs")}ngOnInit(){this.Router.events.subscribe(t=>{t instanceof x.m2&&this.closeMobileNav()})}initSearch(){var t=this;return(0,r.Z)(function*(){if(t.mobileSearchWidget&&!t.isSearchClientLoaded){const n=yield t.SearchClientLoaderService.getSearchClientVersion(t.appConfig.site_url);yield t.SearchClientLoaderService.loadSearchFeature("lookahead",n),new SearchClient.SearchLookahead(t.appConfig.website_code).init(t.mobileSearchWidget.nativeElement,!0,{type:"breakpoint",maxWidth:767},function(){var a=setInterval(function(){const c=document.querySelector("#mobile_search_widget .search-bar-input");c&&("input focus".split(" ").forEach(function(l){c.addEventListener(l,function(d){""!==c.value&&c.value.length>=3?document.querySelector(".mobile-burger-wrapper").classList.add("search-active"):document.querySelector(".mobile-burger-wrapper").classList.remove("search-active")})}),c.addEventListener("blur",function(l){setTimeout(function(){document.querySelector(".mobile-burger-wrapper").classList.remove("search-active")},100)}),clearInterval(a))},2e3);this.isSearchClientLoaded=!0})}})()}hasHeaderNavData(){return!!this.MenuNavService.getMenuNavData()}showHideMenu(t){switch(t){case"account_links_menu":this.isAccountLinksShown=!this.isAccountLinksShown,this.applyScrollLock(this.isAccountLinksShown,t),this.mobileProductMenuShown=!1;break;case"mobile_product_menu_shown":this.mobileProductMenuShown=!this.mobileProductMenuShown,this.applyScrollLock(this.mobileProductMenuShown,t),this.isAccountLinksShown=!1}}closeMenus(){this.isAccountLinksShown=!1,this.mobileProductMenuShown=!1,this.removeBodyScrollLock()}removeBodyScrollLock(){document.body.classList.remove("body-scroll-lock"),document.body.style.removeProperty("top"),window.scrollTo(0,Math.abs(this.scrollPosition))}applyScrollLock(t,n){t?("account_links_menu"==n&&!this.mobileProductMenuShown||"mobile_product_menu_shown"==n&&!this.isAccountLinksShown)&&this.addBodyScrollLock():this.removeBodyScrollLock()}resetSearch(){const t=document.querySelector("#mobile_search_widget .search-bar-input");t.value="",t.dispatchEvent(new Event("input"))}hideHeaderDropdownHandler(t){this.activeDropdown=null,clearTimeout(this.timer)}closeMobileNav(){this.mobileNavOpen=!1,this.setBodyScroll()}hideMobileSearch(){this.isMobile&&(-Math.abs(window.pageYOffset)<=-55?document.querySelector(".mobile_header_container_js").classList.add("fade-out-search"):document.querySelector(".mobile_header_container_js").classList.remove("fade-out-search"))}setBodyScroll(){document.getElementsByTagName("body")[0].style.overflow=this.mobileNavOpen&&window.innerWidth<=991?"hidden":"auto"}addBodyScrollLock(){this.scrollPosition=-Math.abs(window.pageYOffset),document.body.classList.add("body-scroll-lock"),document.body.style.top=this.scrollPosition+"px",this.mobileMenuMaxHeight=window.innerHeight}onPhoneClick(){this.DataLayerService.logDataLayerEvent({event:"cs_phone_click",event_action:"cs_phone_click",event_label:"Mobile Header - Phone Icon",event_category:"cs_phone_click"})}toggleChat(){switch(this.customerCsConfig.type){case"livechat":if(window.icPatronChat){const t=this.customerCsConfig.incontact_redirect_link+"?poc="+encodeURIComponent(this.customerCsConfig.incontact_poc)+"&bu="+encodeURIComponent(this.customerCsConfig.incontact_bus);window.open(t,"_blank")}break;default:{const t=document.getElementById(this.customerCsConfig.dialpad_btn_id);t&&t.click();break}}}static{this.\u0275fac=function(n){return new(n||o)(e.Y36(x.F0),e.Y36(T.e),e.Y36(_.Q),e.Y36(w),e.Y36(I.l),e.Y36(Rt.n))}}static{this.\u0275cmp=e.Xpm({type:o,selectors:[["mobile-header"]],viewQuery:function(n,i){if
1(1&n&&(e.Gf(En,5),e.Gf(Dn,5),e.Gf(Pn,7)),2&n){let a;e.iGM(a=e.CRH())&&(i.mobileSearchWidget=a.first),e.iGM(a=e.CRH())&&(i.headerNavComponent=a.first),e.iGM(a=e.CRH())&&(i.headerSpacer=a.first)}},hostBindings:function(n,i){1&n&&e.NdJ("scroll",function(c){return i.onScroll(c)},!1,e.Jf7)("click",function(c){return i.onClick(c,c.target)},!1,e.evT)},inputs:{customerInfo:"customerInfo",isLoggedIn:"isLoggedIn",isMobile:"isMobile"},decls:21,vars:11,consts:[[1,"comp-mobile-header","mobile_header_container_js","mobile-header-container","hidden-lg","hidden-sm","hidden-md"],[1,"mobile-header-row"],[1,"mobile-burger-wrapper"],[1,"mobile-hamburger",3,"click"],[1,"mobile-search-icon",3,"click"],[1,"mobile-logo-wrapper"],[1,"mobile-need-help-wrapper",3,"click"],[1,"phone-contact-container",3,"click"],[1,"contact-no",3,"href"],[1,"phone-icon"],[1,"mobile-center-logo",3,"href"],["type","image/webp",3,"srcset"],["alt","UPrinting: Online Printing Services",1,"mobile-logo",3,"src"],[1,"mobile-account-wrapper",3,"href"],[1,"mobile-cart-wrapper"],[3,"siteCode","isMobile","onHideDropdown"],["id","mobile_search_widget",1,"header-search-container",3,"ngClass"],["mobileSearchWidget",""],[3,"onEmitSearch"],["class","hidden-sm hidden-md hidden-lg",4,"ngIf"],[1,"hidden-sm","hidden-md","hidden-lg"],[3,"open","customerInfo","close"]],template:function(n,i){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"i",3),e.NdJ("click",function(){return i.showHideMenu("mobile_product_menu_shown")}),e.qZA(),e.TgZ(4,"i",4),e.NdJ("click",function(){return i.resetSearch()}),e.qZA()(),e.TgZ(5,"div",5)(6,"div",6),e.NdJ("click",function(){return i.toggleChat()}),e.qZA(),e.TgZ(7,"div",7),e.NdJ("click",function(){return i.onPhoneClick()}),e.TgZ(8,"a",8),e._UZ(9,"i",9),e.qZA()(),e.TgZ(10,"a",10)(11,"picture"),e._UZ(12,"source",11)(13,"img",12),e.qZA()(),e._UZ(14,"a",13),e.qZA(),e.TgZ(15,"div",14)(16,"cart-count",15),e.NdJ("onHideDropdown",function(c){return i.hideHeaderDropdownHandler(c)}),e.qZA()()(),e.TgZ(17,"div",16,17)(19,"standard-searchbar",18),e.NdJ("onEmitSearch",function(){return i.initSearch()}),e.qZA()()(),e.YNc(20,Jn,2,2,"div",19)),2&n&&(e.xp6(8),e.MGl("href","tel:+1-",i.appConfig.phone_no,"",e.LSH),e.xp6(2),e.s9C("href",i.appConfig.site_url,e.LSH),e.xp6(2),e.MGl("srcset","",i.appConfig.shared_image_path,"/uprinting-logo-new.webp"),e.xp6(),e.MGl("src","",i.appConfig.shared_image_path,"/uprinting-logo-new.svg",e.LSH),e.xp6(),e.MGl("href","",i.appConfig.account_orders_client,"/order",e.LSH),e.xp6(2),e.Q6J("siteCode",i.siteCode)("isMobile",i.isMobile),e.xp6(),e.Q6J("ngClass",e.VKq(9,On,i.mobile_product_menu_shown)),e.xp6(3),e.Q6J("ngIf",i.hasHeaderNavData()))},dependencies:[p.mk,p.O5,A.b,K,qn],encapsulation:2})}}return o})();var Un=u(98152);let Bn=(()=>{class o{constructor(t,n){this.HttpClient=t,this.ConfigManagerService=n,this.notification_source=new Un.xQ,this.notification_source$=this.notification_source.asObservable()}getNotifications(){const t=this.ConfigManagerService.getConfig("app");return this.HttpClient.get(`${t.portal_api_url}/project-notifications`)}static{this.\u0275fac=function(n){return new(n||o)(e.LFG(X.eN),e.LFG(_.Q))}}static{this.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();function Fn(o,s){1&o&&(e.ynx(0),e._uU(1," you have orders on hold that need your attention. "),e.BQk())}function Yn(o,s){1&o&&e._uU(0," you have an order on hold that needs your attention. ")}const jn=o=>({show:o});function Rn(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div",1)(1,"div",2)(2,"div",3)(3,"h2"),e._uU(4,"Your Order is On Hold"),e.qZA(),e.TgZ(5,"div",4)(6,"img",5),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.closeNotification())}),e.qZA()()(),e.TgZ(7,"div",6)(8,"div",7),e._UZ(9,"img",8),e.qZA(),e.TgZ(10,"p")(11,"strong"),e._uU(12),e.qZA(),e.YNc(13,Fn,2,0,"ng-container",9)(14,Yn,1,0,"ng-template",null,10,e.W1O),e.qZA(),e.TgZ(16,"div",11)(17,"button",12),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.goToPortalOrder())}),e._uU(18,"REVIEW NOW"),e.qZA()()()()()}if(2&o){const t=e.MAs(15),n=e.oxw();e.Q6J("ngClass",e.VKq(6,jn,n.showContent)),e.xp6(6),e.Q6J("src",n.appConfig.static_path+"/assets/img/icons/close-white.svg",e.LSH),e.xp6(3),e.Q6J("src",n.appConfig.static_path+"/assets/img/icons/punctuation.svg",e.LSH),e.xp6(3),e.hij("Hi ",n.getFirstName(n.customerData.first_name),","),e.xp6(),e.Q6J("ngIf",n.allNotifications.length>1)("ngIfElse",t)}}let Gn=(()=>{class o{constructor(t,n,i){this.ConfigManagerService=t,this.CustomerNotificationService=n,this.CrossStorageClientService=i,this.showCustomerNotif=!1,this.showContent=!1,this.isFirstJobOrderIsForPayment=!1,this.appConfig=this.ConfigManagerService.getConfig("app"),this.crossStorageConfig=this.ConfigManagerService.getConfig("cross_storage")}ngOnInit(){this.CrossStorageClientService.onInit(this.crossStorageConfig.hub_url,this.crossStorageConfig.hub_opt),this.CustomerNotificationService.n
1otification_source$.subscribe(t=>{t&&this.getNotifications()}),this.getNotifications()}getNotifications(){this.showContent=!1,this.CrossStorageClientService.getData(this.appConfig.customer_notification.notification_query_storage).then(t=>{this.queryNotifTimeout=t;const i=Math.round((new Date).getTime()/1e3),a=[];this.allNotifications=[],this.showCustomerNotif=!1,setTimeout(()=>{null==this.queryNotifTimeout||"string"==typeof this.queryNotifTimeout&&0==this.queryNotifTimeout.length||i>=parseInt(this.queryNotifTimeout)?this.CustomerNotificationService.getNotifications().subscribe(c=>{if(c){if(this.isFirstJobOrderIsForPayment=!1,c.length>0){const l=c.sort(function(m,S){return parseInt(m.jobOrderId)>parseInt(S.jobOrderId)?-1:1});let d=0;Object.keys(l).forEach(m=>{typeof l[m].reference<"u"&&["for_payment","for_proofing","waiting_for_files"].indexOf(l[m].reference)>=0&&(this.allNotifications.push(l[m]),d<2&&a.push(l[m]),d++)})}this.setNotifCache(a),this.setNotifDisplay()}}):this.CrossStorageClientService.getData(this.appConfig.customer_notification.notification_query_data).then(c=>{this.isValidJSON(c)&&(this.allNotifications=JSON.parse(c)),this.setNotifDisplay()})},5e3)})}goToPortalOrder(){this.closeNotification(),window.location.href=this.isFirstJobOrderIsForPayment?this.appConfig.account_orders_client+"/order?filter_type=on_hold_orders":this.appConfig.account_orders_client+"/order/"+parseInt(this.allNotifications[0].jobOrderId)+"/item/"+parseInt(this.allNotifications[0].jobItemId)}closeNotification(){this.CrossStorageClientService.deleteData(this.appConfig.customer_notification.notification_storage),this.setNotificationTimeout(),this.showContent=!1,this.showCustomerNotif=!1}setNotificationTimeout(){const t=new Date,n=typeof window.gtm_website_config<"u"&&typeof window.gtm_website_config.customer_notification<"u"?window.gtm_website_config.customer_notification:{},i=typeof n.dismissed_expires_in<"u"?n.dismissed_expires_in:this.appConfig.customer_notification.expires_in;t.setDate(t.getDate()+parseInt(i));const a=Math.round(t.getTime()/1e3);this.CrossStorageClientService.setData(this.appConfig.customer_notification.notification_storage,a)}getFirstName(t){return t&&t.charAt(0).toUpperCase()+t.slice(1)}setNotifDisplay(){this.allNotifications.length>=1&&"for_payment"==this.allNotifications[0].reference&&(this.isFirstJobOrderIsForPayment=!0),this.allNotifications.length>0&&(this.showCustomerNotif=!0,this.showContent=!0)}setNotifCache(t){const n=new Date,i=typeof window.gtm_website_config<"u"&&typeof window.gtm_website_config.customer_notification<"u"?window.gtm_website_config.customer_notification:{},a=typeof i.query_expires_in<"u"?i.query_expires_in:this.appConfig.customer_notification.query_expires_in;n.setHours(n.getHours()+parseInt(a));const c=Math.round(n.getTime()/1e3);this.CrossStorageClientService.setData(this.appConfig.customer_notification.notification_query_storage,c),this.CrossStorageClientService.setData(this.appConfig.customer_notification.notification_query_data,JSON.stringify(t))}isValidJSON(t){try{JSON.parse(t)}catch{return!1}return!0}static{this.\u0275fac=function(n){return new(n||o)(e.Y36(_.Q),e.Y36(Bn),e.Y36(v.T))}}static{this.\u0275cmp=e.Xpm({type:o,selectors:[["customer-notification"]],inputs:{customerData:"customerData"},decls:1,vars:1,consts:[["class","comp-customer-notification container",3,"ngClass",4,"ngIf"],[1,"comp-customer-notification","container",3,"ngClass"],[1,"notification-container"],[1,"notification-header"],[1,"notification-close"],["alt","close button",3,"src","click"],[1,"notification-content"],[1,"icon"],["alt","customer notification",3,"src"],[4,"ngIf","ngIfElse"],["singleItem",""],[1,"button-container"],[1,"btn",3,"click"]],template:function(n,i){1&n&&e.YNc(0,Rn,19,8,"div",0),2&n&&e.Q6J("ngIf",i.showCustomerNotif)},dependencies:[p.mk,p.O5],encapsulation:2})}}return o})();u(16363);const Wn=["globalHeaderContainer"],Kn=["orderNotFoundModalTemplate"],$n=["headerSpacer"],Vn=["businessHoursModal"],zn=["headerNavComponent"],Xn=["desktop_search_widget"],eo=["mobile_search_widget"];function to(o,s){if(1&o&&(e.TgZ(0,"a",14)(1,"div",15)(2,"span",16),e._uU(3,"33-Point Print Check"),e.qZA(),e.TgZ(4,"span",17),e._uU(5,"\xa0\xa0\xa0|\xa0\xa0\xa0 "),e.TgZ(6,"span",18),e._uU(7,"33 checkpoints"),e.qZA(),e._uU(8," for printing perfection"),e.qZA(),e._UZ(9,"
1img",19),e.qZA()()),2&o){const t=e.oxw(2);e.MGl("href","",t.appConfig.site_url,"/uprinting-difference.html",e.LSH),e.xp6(9),e.MGl("src","",t.appConfig.shared_image_path,"/icons/white-right-arrow.png",e.LSH)}}function no(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"app-announcement-placeholder",20),e.NdJ("announcementLoaded",function(){e.CHM(t);const i=e.oxw(2);return e.KtG(i.delayedLoadAnnouncement(!1))})("announcementDismissed",function(){e.CHM(t);const i=e.oxw(2);return e.KtG(i.delayedLoadAnnouncement(!0))}),e.qZA()}if(2&o){const t=e.oxw(2);e.Q6J("endPointUrl",t.appConfig.submodule_api_url+"/announcements")("placeholderCode","HEADER_TOP")("websiteCode",t.appConfig.website_code)("containerClass","container header-top")("closeIconClass","dri-close")}}function oo(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div",21)(1,"div",22)(2,"a",23)(3,"picture"),e._UZ(4,"source",24)(5,"img",25),e.qZA()()(),e.TgZ(6,"a",26),e.NdJ("keydown",function(i){e.CHM(t);const a=e.oxw(2);return e.KtG(a.handleHamburgerOnKeyDown(i))})("click",function(){e.CHM(t);const i=e.oxw(2);return e.KtG(i.showAllProductsContent())}),e.TgZ(7,"div",27),e._UZ(8,"i",28)(9,"i",29)(10,"i",30),e.qZA()(),e._UZ(11,"contact-info",31),e.TgZ(12,"div",32)(13,"div",33,34)(15,"standard-searchbar",35),e.NdJ("onEmitSearch",function(){e.CHM(t);const i=e.oxw(2);return e.KtG(i.initSearch())}),e.qZA()()(),e._UZ(16,"account-info",36),e.qZA()}if(2&o){const t=e.oxw(2);e.xp6(2),e.s9C("href",t.appConfig.site_url,e.LSH),e.xp6(2),e.MGl("srcset","",t.appConfig.shared_image_path,"/uprinting-logo-new.webp"),e.xp6(),e.MGl("src","",t.appConfig.shared_image_path,"/uprinting-logo-new.svg",e.LSH),e.xp6(8),e.Q6J("hidden",!t.enabledSections.searchBar),e.xp6(3),e.Q6J("isLoggedIn",t.isLoggedIn)("customerInfo",t.customerInfo)}}function io(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div")(1,"header-nav",37,38),e.NdJ("onEnterAllProductsContent",function(){e.CHM(t);const i=e.oxw(2);return e.KtG(i.handleOnEnterAllProductsContent())})("onLeaveAllProductsContent",function(){e.CHM(t);const i=e.oxw(2);return e.KtG(i.handleOnLeaveAllProductsContent())})("onCloseParentHamburger",function(i){e.CHM(t);const a=e.oxw(2);return e.KtG(a.handleHamburgerLeave(i))})("onFocusOutParentHamburger",function(i){e.CHM(t);const a=e.oxw(2);return e.KtG(a.handleHamburgerFocusOut(i))}),e.qZA()()}if(2&o){const t=e.oxw(2);e.xp6(),e.Q6J("navType","wide_header_nav_2")("enableHeaderNavDataFetching",!0)("isWindowScrolled",t.isWindowScrolled)("openAllProductsContentOnWindowScroll",t.openAllProductsContentOnWindowScroll)("isWindowScrolledContentActive",t.isWindowScrolledContentActive)}}function ao(o,s){if(1&o&&e._UZ(0,"mobile-header",39),2&o){const t=e.oxw(2);e.Q6J("isMobile",t.isMobile)("customerInfo",t.customerInfo)("isLoggedIn",t.isLoggedIn)}}function so(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"header",6,7)(2,"div",8)(3,"a",9),e.NdJ("keydown",function(i){e.CHM(t);const a=e.oxw();return e.KtG(a.scrollIntoViewOnEnter(i,"main_content"))})("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.scrollIntoView("main_content"))}),e._uU(4,"Skip to main content"),e.qZA()(),e.YNc(5,to,10,2,"a",10)(6,no,1,5,"app-announcement-placeholder",11)(7,oo,17,6,"div",12)(8,io,3,5,"div",4)(9,ao,1,3,"mobile-header",13),e.qZA()}if(2&o){const t=e.oxw();e.xp6(5),e.Q6J("ngIf",t.isUploadPage),e.xp6(),e.Q6J("ngIf",t.enabledSections.holidayBanner),e.xp6(),e.Q6J("ngIf",!t.isMobile),e.xp6(),e.Q6J("ngIf",t.enabledSections.productNav&&!t.isMobile),e.xp6(),e.Q6J("ngIf",t.isMobile)}}function ro(o,s){if(1&o&&e._UZ(0,"customer-notification",40),2&o){const t=e.oxw();e.Q6J("customerData",t.customerInfo)}}function co(o,s){1&o&&e._UZ(0,"coupon-banner-widget")}function lo(o,s){1&o&&e._UZ(0,"holiday-message",44)}function uo(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"div",41),e.YNc(1,lo,1,0,"holiday-message",42),e.TgZ(2,"app-announcement-placeholder",43),e.NdJ("announcementLoaded",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.recomputeHeaderSpacer(!1))})("announcementDismissed",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.recomputeHeaderSpacer(!0))}),e.qZA()()}if(2&o){const t=e.oxw();e.xp6(),e.Q6J("ngIf",t.siteConfig.enable_holiday_message),e.xp6(),e.Q6J("endPointUrl",t.appConfig.submodule_api_url+"/announcements")("placeholderCode","HEADER_BANNER")("websiteCode",t.appConfig.website_code)("closeIconClass","dri-close")}}let _o=(()=>{class o{onResize(t){this.setBodyScroll(),this.isMobile=window.innerWidth<=767,this.recomputeHeaderSpacer(!1)}onScroll(t){this.recomputeHeaderSpacer(!1),setTimeout(()=>{this.showHamburgerMenu()})}constructor(t,n,i,a,c,l,d,m,S){this.Router=t,this.Location=n,this.Renderer=i,this.AuthService=a,this.MenuNavService=c,this.ConfigManagerService=l,this.CrossStorageClientService=d,this.SearchClientLoaderService=m,this.GA4NavClick=S,this.mobileNavOpen=!1,this.isMobile=!0,this.isLiveChatActive=!1,this.isAccountLinksShown=!1,this.mobileProductMenuShown=!1,this.tap=!1,this.scrollPosition=0,this.mobileMenuMaxHeight=0,this.intervalPendingExecution=!1,this.siteCode=null,this.isWindowScrolled=!1,this.isWindowScrolledContentActive=!1,this.openAllProductsContentOnWindowScroll=!1,this.enabledSections={carousel:!1,holidayBanner:!1,headerNav:!0,topNav:!0,trustBadges:!1,searchBar:!0,productNav:!0},this.tabIndex=!1,this.businessHoursLoading=!0,this.isUploadPage=!1,this.customerLoaded=!1,this.showDesignServiceModal=!1,this.showCustomerNotif=!1,this.isSearchClientLoaded=!1}ngOnInit(){this.appConfig=this.ConfigManagerService.getConfig("app"),this.siteConfig=this.ConfigManagerService.getConfig("site"),this.discountConfig=this.ConfigManagerService.getConfig("discount"),this.showHamburgerMenu(),this.setHeaderVisibility(),this.setPointCheckStatus(),this.Router.events.subscribe(i=>{i instanceof x.m2&&(this.setHeaderVisibility(),this.setPointCheckStatus())});const t=this.AuthService.parseAccessTokenData();t&&(this.customerInfo=t.data,this.isLoggedIn=!0),this.AuthService.logged_in$.subscribe(()=>{const a=this.AuthService.parseAccessTokenData().data||{};this.customerInfo=a,this.isLoggedIn=!0,this.checkNotification()}),this.AuthService.logged_out$.subscribe(()=>{this.customerInfo={},this.isLoggedIn=!1,this.clearNotification()}),this.AuthService.customerInfo$.subscribe(i=>{null==i&&(this.customerInfo={})}),this.AuthService.refreshToken$.subscribe(()=>{const i=this.AuthService.parseAccessTokenData();i&&(this.customerInfo=i.data||{},this.isLoggedIn=!0,this.checkNotification())}
1),this.MenuNavService.fetchMenuNavData(this.appConfig.site_url+"/header-menu-nav"),this.isMobile=window.innerWidth<=767}ngAfterViewInit(){var t=this;return(0,r.Z)(function*(){const n=t,i=setInterval(function(){document.getElementsByClassName("ga4-nav-click header").length>0&&(n.GA4NavClick.initialize({mainNavText:""}),clearInterval(i))},500);t.recomputeHeaderSpacer(!1)})()}initSearch(){var t=this;return(0,r.Z)(function*(){t.isSearchClientLoaded||(t.SearchClientLoaderService.initSearch(t.desktopSearchWidget,t.mobileSearchWidget),t.isSearchClientLoaded=!0)})()}setPointCheckStatus(){this.isUploadPage=!1,(this.Location.path().search("/upload")>=0||this.siteConfig&&this.siteConfig.point_check_enabled_list&&this.siteConfig.point_check_enabled_list.find(t=>this.Location.path().search(t)>=0))&&(this.isUploadPage=!0)}addBodyScrollLock(){}removeBodyScrollLock(){}showHamburgerMenu(){if(typeof this.globalHeaderContainer<"u"){const t=this.globalHeaderContainer.nativeElement,n=window.innerWidth>767?49:t.offsetHeight;if(window.scrollY>t.offsetHeight){t.classList.add("window-scrolled"),window.innerWidth<768&&(this.isWindowScrolled=!1);{this.isWindowScrolled=!0,this.setStyle("window-scrolled","top","0");let i=!1;this.headerNavComponent&&typeof this.headerNavComponent.visibleNavContent<"u"&&(i=0===this.headerNavComponent.visibleNavContent),i||document.body.classList.remove("open-header-nav")}}else this.headerNavComponent&&(this.headerNavComponent.visibleNavContent=null),0!==document.getElementsByClassName("window-scrolled").length&&window.innerWidth>=768&&(document.body.classList.remove("open-header-nav"),document.getElementById("hamburger_toggle").classList.remove("nav-content-open"),this.setStyle("window-scrolled","top","-"+n+"px")),t.classList.remove("window-scrolled"),this.isWindowScrolled=!1;this.openAllProductsContentOnWindowScroll=!!document.getElementById("header_nav_data_0")}}handleHamburgerOnKeyDown(t){13==t.keyCode?(this.showAllProductsContent(),setTimeout(()=>{const n=document.getElementById("header_nav_data_0");if(n){const i=n.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');i&&i[0]&&i[0].focus()}},600)):27==t.keyCode&&this.handleHamburgerLeave(t)}handleHamburgerLeave(t){const n=document.querySelector(".js-menu-nav");this.tap||n&&n.contains(t.relatedTarget)||(clearInterval(this.navContentTimer),setTimeout(()=>{if(!document.querySelector(".js-menu-nav .type-1 .column-1:hover")&&(this.isWindowScrolledContentActive=!1,this.removeBodyScrollLock(),this.intervalPendingExecution=!1,this.headerNavComponent&&this.headerNavComponent.removeScrollbarSpace(),document.getElementById("hamburger_toggle").classList.remove("nav-content-open"),document.querySelector(".js-menu-nav .type-1")&&document.querySelector(".js-menu-nav .type-1").parentNode)){let a=document.querySelector(".js-menu-nav .type-1").parentNode;"header-nav-menu"==a.tagName.toLowerCase()&&(a=a.parentNode),a.classList.remove("active")}},300))}handleHamburgerFocusOut(t){document.querySelector(".js-menu-nav").contains(t.relatedTarget)||(clearInterval(this.navContentTimer),setTimeout(()=>{if(this.isWindowScrolledContentActive=!1,this.removeBodyScrollLock(),this.intervalPendingExecution=!1,this.headerNavComponent&&this.headerNavComponent.removeScrollbarSpace(),document.getElementById("hamburger_toggle").classList.remove("nav-content-open"),document.querySelector(".js-menu-nav .type-1")&&document.querySelector(".js-menu-nav .type-1").parentNode){let i=document.querySelector(".js-menu-nav .type-1").parentNode;"header-nav-menu"==i.tagName.toLowerCase()&&(i=i.parentNode),i.classList.remove("active")}},300))}showAllProductsOnClick(){this.openAllProductsContentOnWindowScroll&&this.tap?(clearInterval(this.navContentTimer),setTimeout(()=>{if(!document.querySelector(".js-menu-nav .type-1 .column-1:hover")&&(this.isWindowScrolledContentActive=!1,this.removeBodyScrollLock(),this.intervalPendingExecution=!1,this.openAllProductsContentOnWindowScroll=!1,this.headerNavComponent&&this.headerNavComponent.removeScrollbarSpace(),document.body.classList.remove("open-header-nav"),document.getElementById("hamburger_toggle").
1classList.remove("nav-content-open"),document.querySelector(".js-menu-nav .type-1")&&document.querySelector(".js-menu-nav .type-1").parentNode)){let t=document.querySelector(".js-menu-nav .type-1").parentNode;"header-nav-menu"==t.tagName.toLowerCase()&&(t=t.parentNode),t.classList.remove("active")}},300)):this.intervalPendingExecution||(document.getElementById("hamburger_toggle")&&document.getElementById("hamburger_toggle").setAttribute("aria-expanded","true"),this.navContentTimer=setTimeout(()=>{this.openAllProductsContentOnWindowScroll=!0,this.isWindowScrolledContentActive=!0,this.addBodyScrollLock(),this.headerNavComponent.addScrollbarSpace(),document.body.classList.add("open-header-nav"),document.getElementById("hamburger_toggle").classList.add("nav-content-open");const t=document.querySelector(".js-menu-nav");if(t){let n=t.querySelector(".type-1").parentNode;"header-nav-menu"==n.tagName.toLowerCase()&&(n=n.parentNode),t.querySelector(".type-1")&&n&&(n.classList.add("active"),t.querySelector(".type-1").querySelector('[data-nav-tabindex="true"]')&&(t.querySelector(".type-1").querySelector('[data-nav-tabindex="true"]').focus(),document.getElementById("hamburger_toggle")&&document.getElementById("hamburger_toggle").setAttribute("aria-expanded","false")))}},700))}showAllProductsContent(){this.isWindowScrolled&&!this.tap&&(this.headerNavComponent&&this.headerNavComponent.removeDataItemId(),this.navContentTimer=setTimeout(()=>{this.openAllProductsContentOnWindowScroll=!0,this.isWindowScrolledContentActive=!0;const t=document.querySelector(".global-header-nav-container");t.classList.contains("show")?(this.removeBodyScrollLock(),this.headerNavComponent&&this.headerNavComponent.removeScrollbarSpace()):(this.addBodyScrollLock(),this.headerNavComponent&&this.headerNavComponent.addScrollbarSpace());const n=document.getElementById("hamburger_toggle");n&&(n.classList.contains("nav-content-open")?n.classList.remove("nav-content-open"):n.classList.add("nav-content-open")),t&&(t.classList.contains("show")?t.classList.remove("show"):t.classList.add("show"))}),this.intervalPendingExecution=!0)}handleOnEnterAllProductsContent(){this.isWindowScrolled&&null!=document.getElementById("header_nav_data_0")&&(document.getElementById("header_nav_data_0").style.display="block",document.getElementById("hamburger_toggle").classList.add("nav-content-open"),this.openAllProductsContentOnWindowScroll=!0)}handleOnLeaveAllProductsContent(){this.isWindowScrolledContentActive=!1}setStyle(t,n,i){this.Renderer.setStyle(document.getElementsByClassName(t)[0],n,i)}scrollIntoView(t){const n=document.getElementById(t);n.scrollIntoView(),setTimeout(()=>{const i=n.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(i){let a=!1;for(let c=0;c<i.length;c++)if(null!==i[c].offsetParent){i[c].focus(),a=!0;break}a||n.focus()}})}scrollIntoViewOnEnter(t,n){13==t.keyCode&&this.scrollIntoView(n)}setHeaderVisibility(){const t=this.ConfigManagerService.getConfig("custom_header_routes"),n={carousel:!1,holidayBanner:!0,headerNav:!0,topNav:!0,trustBadges:!1};if(Object.keys(t)?.length)for(const i of Object.keys(t)){if(this.Location.path().search(i)>=0){Object.assign(this.enabledSections,t[i]);break}Object.assign(this.enabledSections,n)}else Object.assign(this.enabledSections,n)}toggleMobileNav(){this.mobileNavOpen=!this.mobileNavOpen,this.setBodyScroll(),event.stopPropagation()}setBodyScroll(){document.getElementsByTagName("body")[0].style.overflow=this.mobileNavOpen&&window.innerWidth<=991?"hidden":"auto"}checkNotification(){if(this.customerInfo&&this.appConfig?.customer_notification?.enabled){this.showCustomerNotif=!1;const t=typeof window.gtm_website_config<"u"&&typeof window.gtm_website_config.customer_notification<"u"?window.gtm_website_config.customer_notification:{};(typeof t.enabled<"u"?t.enabled:this.siteConfig.enable_customer_notification)&&this.CrossStorageClientService.getData(this.appConfig.customer_notification.notification_storage).then(i=>{this.customerNotifTimeout=i||null;let a=!1,c=0;null==this.customerNotifTimeout?a=!0:c=Math.round((new Date).getTime()/1e3),(a||c>=parseInt(this.customerNotifTimeout))&&(this.showCustomerNotif=!0)})}}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)}delayedLoadAnnouncement(t){setTimeout(()=>{this.recomputeHeaderSpacer(t)},100)}recomputeHeaderSpacer(t){if((!this.isWindowScrolled&&t||!t)&&typeof this.globalHeaderContainer<"u"&&typeof this.headerSpacer<"u"){let n=0;const i=this.isMobile,a=this.globalHeaderContainer.nativeElement.querySelector(i?".mobile_header_container_js":".full-width-header"),c=this.globalHeaderContainer.nativeElement.querySelector(".global-header-nav-container"),l=this.globalHeaderContainer.nativeElement.querySelector(".top-header-announcement .header-top"),d=document.getElementById("mobile_search_widget");i&&d?n=a.getBoundingClientRect().bottom+54:(a&&(n+=a.offsetHeight),c&&!i&&(n+=50),l&&(n+=l.offsetHeight),n+=54),this.headerSpacer.nativeElement.style.cssText=`height: ${n}px !important`}}resetSearch(){const t=document.querySelector("#mobile_search_widget .search-bar-input");t.value="",t.dispatchEvent(new Event("input"))}static{this.\u0275fac=function(n){return new(n||o)(e.Y36(x.F0),e.Y36(p.Ye),e.Y36(e.Qsj),e.Y36(T.e),e.Y36(w),e.Y36(_.Q),e.Y36(v.T),e.Y36(I.l),e.Y36("GA4NavClick"))}}static{this.\u0275cmp=e.Xpm({type:o,selectors:[["app-header"]],viewQuery:function(n,i){if
1(1&n&&(e.Gf(Wn,5),e.Gf(Kn,5),e.Gf($n,7),e.Gf(Vn,5),e.Gf(zn,5),e.Gf(Xn,5),e.Gf(eo,5)),2&n){let a;e.iGM(a=e.CRH())&&(i.globalHeaderContainer=a.first),e.iGM(a=e.CRH())&&(i.orderNotFoundModalTemplate=a.first),e.iGM(a=e.CRH())&&(i.headerSpacer=a.first),e.iGM(a=e.CRH())&&(i.businessHoursModal=a.first),e.iGM(a=e.CRH())&&(i.headerNavComponent=a.first),e.iGM(a=e.CRH())&&(i.desktopSearchWidget=a.first),e.iGM(a=e.CRH())&&(i.mobileSearchWidget=a.first)}},hostBindings:function(n,i){1&n&&e.NdJ("resize",function(c){return i.onResize(c)},!1,e.Jf7)("scroll",function(c){return i.onScroll(c)},!1,e.Jf7)},inputs:{data:"data"},decls:6,vars:6,consts:[["class","global-header-container header-2",4,"ngIf"],[1,"global-header-spacer"],["headerSpacer",""],[3,"customerData",4,"ngIf"],[4,"ngIf"],["class","comp-header-banner-container container",4,"ngIf"],[1,"global-header-container","header-2"],["globalHeaderContainer",""],[1,"skip-main-content"],["tabindex","0",3,"keydown","click"],["id","point-check",3,"href",4,"ngIf"],["class","comp-announcement-container top-header-announcement",3,"endPointUrl","placeholderCode","websiteCode","containerClass","closeIconClass","announcementLoaded","announcementDismissed",4,"ngIf"],["class","full-width-header css-grid-container",4,"ngIf"],[3,"isMobile","customerInfo","isLoggedIn",4,"ngIf"],["id","point-check",3,"href"],[1,"point-check"],[1,"pc-label"],[1,"pc-desc"],[1,"point-check-text"],[1,"pc-arrow",3,"src"],[1,"comp-announcement-container","top-header-announcement",3,"endPointUrl","placeholderCode","websiteCode","containerClass","closeIconClass","announcementLoaded","announcementDismissed"],[1,"full-width-header","css-grid-container"],[1,"header-logo-container","css-grid-span-4"],[1,"header-logo-link",3,"href"],["type","image/webp",3,"srcset"],["alt","UPrinting: Online Printing Services",1,"header-logo-img",3,"src"],["id","hamburger_toggle","tabindex","0","aria-label","all print products","role","listmenu","aria-roledescription","navigation","aria-expanded","false",1,"hamburger-container",3,"keydown","click"],[1,"burger-icons-wrapper"],[1,"fa","fa-bars","hamburger"],[1,"fa","fa-angle-down","arrow-icon","arrow-icon-down"],[1,"fa","fa-angle-up","arrow-icon","arrow-icon-up"],[1,"header-contact-info-container"],[1,"header-search-container","css-grid-span-10"],["id","desktop_search_widget",1,"search-widget-wrapper",3,"hidden"],["desktop_search_widget",""],[3,"onEmitSearch"],[1,"header-account-info-container",3,"isLoggedIn","customerInfo"],[3,"navType","enableHeaderNavDataFetching","isWindowScrolled","openAllProductsContentOnWindowScroll","isWindowScrolledContentActive","onEnterAllProductsContent","onLeaveAllProductsContent","onCloseParentHamburger","onFocusOutParentHamburger"],["headerNavComponent",""],[3,"isMobile","customerInfo","isLoggedIn"],[3,"customerData"],[1,"comp-header-banner-container","container"],["class","comp-holiday-container",4,"ngIf"],[1,"comp-announcement-container",3,"endPointUrl","placeholderCode","websiteCode","closeIconClass","announcementLoaded","announcementDismissed"],[1,"comp-holiday-container"]],template:function(n,i){1&n&&(e.YNc(0,so,10,5,"header",0),e._UZ(1,"div",1,2),e.YNc(3,ro,1,1,"customer-notification",3)(4,co,1,0,"coupon-banner-widget",4)(5,uo,3,5,"div",5)),2&n&&(e.Q6J("ngIf",i.enabledSections.headerNav),e.xp6(),e.ekj("hidden",!i.isWindowScrolled&&!i.isMobile),e.xp6(2),e.Q6J("ngIf",i.showCustomerNotif),e.xp6(),e.Q6J("ngIf",i.discountConfig.coupon_banner.enabled),e.xp6(),e.Q6J("ngIf",i.enabledSections.holidayBanner))},dependencies:[p.O5,H.C,h.n,A.b,Ze,Zt,jt,Qn,Gn],encapsulation:2})}}return o})()},71928:(E,M,u)=>{u.d(M,{H:()=>T});var r=u(54699),x=u(40435),e=u(66745),p=u(99759);function T(C=0,w,_){let v=-1;return(0,e.k)(w)?v=Number(w)<1?1:Number(w):(0,p.K)(w)&&(_=w),(0,p.K)(_)||(_=x.P),new r.y(I=>{const H=(0,e.k)(C)?C:+C-_.now();return _.schedule(y,H,{index:0,period:v,subscriber:I})})}function y(C){const{index:w,period:_,subscriber:v}=C;if(v.next(w),!v.closed){if(-1===_)return v.complete();C.index=w+1,this.schedule(C,_)}}},40435:(E,M,u)=>{u.d(M,{P:()=>p});var r=u(61618);const p=new(u(91781).v)(r.o)},66745:(E,M,u)=>{u.d(M,{k:()=>x});var r=u(11280);function x(e){return!(0,r.k)(e)&&e-parseFloat(e)+1>=0}}}]);
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.