PageSourceSearch

https://settings.48hourprint.com/5393.a7047f1920d4179f.js

js 48hourprint.com collected 2026-10-03 22:14:09 UTC 65,427 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkaccount_settings=self.webpackChunkaccount_settings||[]).push([[5393],{45393:(O,E,p)=>{p.r(E),p.d(E,{AppHeaderComponent:()=>ct});var r=p(15861),A=p(3609),e=p(19212),D=p(72026),L=p(98715),g=p(96814),v=p(39346),J=p(8154),h=p(98152);let m=(()=>{class o{constructor(){this.showBackDropFlag=new h.xQ}showBackDrop(t){this.showBackDropFlag.next(t)}static{this.\u0275fac=function(n){return new(n||o)}}static{this.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})(),w=(()=>{class o{constructor(){this.backdropFlag$=new h.xQ}onBackdropEvent(t){this.backdropFlag$.next(t)}static{this.\u0275fac=function(n){return new(n||o)}}static{this.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();var I=p(22567),_=p(96693),N=p(22308),u=p(40247),C=p(1940),d=p(39011),y=p(20053);function M(o,c){1&o&&e.GkF(0)}function P(o,c){1&o&&(e._uU(0," WELCOME BACK "),e._UZ(1,"span",9),e._uU(2,". You can apply Partner Discount on this order! "))}function W(o,c){1&o&&(e._uU(0," WELCOME BACK "),e._UZ(1,"span",9),e._uU(2,". You will receive your Partner Discount on this order! "))}function Y(o,c){if(1&o){const t=e.EpF();e.TgZ(0,"div",2)(1,"div",3),e.YNc(2,M,1,0,"ng-container",4)(3,P,3,0,"ng-template",null,5,e.W1O)(5,W,3,0,"ng-template",null,6,e.W1O),e.qZA(),e.TgZ(7,"div",7),e._uU(8," Another coupon has been applied to your order.\xa0 "),e.TgZ(9,"a",8),e.NdJ("click",function(i){e.CHM(t);const a=e.oxw();return e.KtG(a.setPartnerCoupon(i))}),e._uU(10,"Click here to return to your partner discount."),e.qZA()()()}if(2&o){const t=e.MAs(4),n=e.MAs(6),i=e.oxw();e.xp6(2),e.Q6J("ngIf",i.isCartDataAsCouponSourceForCartEnabled)("ngIfThen",t)("ngIfElse",n)}}const K=(o,c)=>({"has-other-banner":o,hidden:c});let $=(()=>{class o{constructor(t,n,i,a,s,l,f){this.Router=t,this.Location=n,this.ConfigManagerService=i,this.CouponBannerWidget=a,this.CouponStorageService=s,this.AuthService=l,this.HolidayBannerService=f,this.showBanner=!1,this.enablePartnerBanner=!1,this.enableBanner=!1,this.otherBanner=!1,this.isCartDataAsCouponSourceForCartEnabled=!1,this.couponBannerLoaded=new e.vpe;const k=this.ConfigManagerService.getConfig("coupon"),b=this.ConfigManagerService.getConfig("discount");b.coupon_banner&&b.coupon_banner.enable_partner_coupon&&(this.enablePartnerBanner=b.coupon_banner.enable_partner_coupon),this.showBannerPaths=k.show_banner_paths,this.Router.events.subscribe(S=>{if(S instanceof A.m2){const H=this.enableBanner;this.setCouponBannerVisibility(),this.showCouponBanner(!H&&this.enableBanner)}}),this.CouponStorageService.couponStorage$.subscribe(()=>{this.setCouponBannerVisibility(),this.showCouponBanner()}),this.enablePartnerBanner&&this.CouponStorageService.partnerCoupon$.subscribe(S=>{S||(this.setCouponBannerVisibility(),this.showCouponBanner(!0))}),this.HolidayBannerService.holidayBannerLoaded$.subscribe(()=>{this.otherBanner=!0}),this.checkIfShowCouponBannerFromCrossStorageRegardlessOfCartData()}setPartnerCoupon(t){t.preventDefault(),typeof this.CouponBannerWidget.partnerCouponDetails.coupon_code<"u"&&typeof this.CouponBannerWidget.partnerCouponDetails.cp_storage_data<"u"&&(this.CouponStorageService.partnerCouponSource.next(this.CouponBannerWidget.partnerCouponDetails.coupon_code),this.CouponStorageService.setCoupon(this.CouponBannerWidget.partnerCouponDetails.cp_storage_data),this.enablePartnerBanner=!1)}getCouponCode(){const t=this.ConfigManagerService.getConfig("coupon").storage_name,n=this.ConfigManagerService.getConfig("coupon").enable_via_url;let i=null;return n&&(i=new URLSearchParams(window.location.search).get(t)),new Promise(a=>{const s=this.CouponStorageService.getCoupon();let l;s&&(typeof s.pc<"u"?l=s.pc[0]:typeof s.ac<"u"&&(l=s.ac[0]),typeof s.sc<"u"&&(l=s.sc[0])),null!=i&&(l=i),a(l)})}checkIfShowCouponBannerFromCrossStorageRegardlessOfCartData(){const t=this.ConfigManagerService.getConfig("coupon");typeof t.coupon_section<"u"&&typeof t.coupon_section.use_attached_discount_from_db_only<"u"&&t.coupon_section.use_attached_discount_from_db_only&&(this.isCartDataAsCouponSourceForCartEnabled=!0,this.CouponStorageService.emitData())}showCouponBanner(t=!1){this.getCouponCode().then(n=>{if(this.enableBanner)if(!this.previousCouponCode||this.previousCouponCode&&this.previousCouponCode!=n||t){const i=this.ConfigManagerService.getConfig("app"),a=this.ConfigManagerService.getConfig("coupon"),s=this.ConfigManagerService.getConfig("auth"),l={validate_coupon_url:i.checkout_api_url+a.validate_coupon_code,website_code:i.website_code,coupon_enable_partner:this.enablePartnerBanner,act_field:s.access_token_field};this.previousCouponCode=n,this.CouponBannerWidget.setConfig(l),this.CouponBannerWidget.getCouponBannerMessage("comp_coupon_banner",n).then(f=>{f&&(this.showBanner=!0,this.couponBannerLoaded.emit())})}else this.showBanner=!0,this.couponBannerLoaded.emit();else this.showBanner=!1})}parseJsonString(t){try{return JSON.parse(t)}catch{return!1}}setCouponBannerVisibility(){this.enableBanner=!1;for(const t in this.showBannerPaths)this.Location.path().search(this.showBannerPaths[t])>=0&&(this.enableBanner=!0)}static{this.\u0275fac=function(n){return new(n||o)(e.Y36(A.F0),e.Y36(g.Ye),e.Y36(v.Q),e.Y36("CouponBannerWidget"),e.Y36(d.N),e.Y36(D.e),e.Y36(y.W))}}static{this.\u0275cmp=e.Xpm({type:o,selectors:[["coupon-banner-widget"]],outputs:{couponBannerLoaded:"couponBannerLoaded"},decls:2,vars:5,consts:[["id","comp_coupon_banner",1,"comp-coupon-banner-widget-container","header-banner-item",2,"display","none",3,"ngClass"],["
1id","comp_partner_coupon_banner","class","comp-coupon-banner-widget-container header-banner-item","style","display: none;",4,"ngIf"],["id","comp_partner_coupon_banner",1,"comp-coupon-banner-widget-container","header-banner-item",2,"display","none"],[1,"js-applied-partner-coupon-container","partner-coupon-banner-message",2,"display","none"],[4,"ngIf","ngIfThen","ngIfElse"],["cartDataAsCouponSourceForCartMessage",""],["defaultCouponMessage",""],[1,"js-suggest-partner-coupon-container","partner-coupon-banner-message",2,"display","none"],["id","apply_partner_coupon_link",1,"apply-partner-coupon-link",3,"click"],[1,"js-customer-first-name"]],template:function(n,i){1&n&&(e._UZ(0,"div",0),e.YNc(1,Y,11,3,"div",1)),2&n&&(e.Q6J("ngClass",e.WLB(2,K,i.otherBanner,!i.enableBanner)),e.xp6(),e.Q6J("ngIf",i.enablePartnerBanner))},dependencies:[g.mk,g.O5],encapsulation:2})}}return o})();class j{getHeaderMenuNavData(c,t,n){return new Promise(function(a,s){var l=new XMLHttpRequest;function f(k){var b={};for(var S in k){var H=k[S].sort;if(b[H]=k[S],Object.keys(b[H].children).length>0){var B=f(b[H].children);b[H].children=B}}return b}l.open(t,c,!0),l.send(n),l.onreadystatechange=function(){if(4===l.readyState)if(200===l.status){var b=JSON.parse(l.responseText),S=b.menu_nav_data,H={};for(var B in S.children){var x=S.children[B];if(H[x.sort]=x,typeof x.children<"u"&&Object.keys(x.children).length>0&&"type-1"!=x.custom_styles){var F=f(x.children);H[x.sort].children=F}}a({success:b.success,header_nav_data:H})}else s(l.status),console.log("Request failed.")}})}}var V=p(27159),Q=p(64150),q=p(85395);function z(o,c){if(1&o&&(e.TgZ(0,"span")(1,"span"),e._uU(2),e.qZA()()),2&o){const t=e.oxw(4).$implicit,n=e.oxw();e.Gre("js-",t.value.product_id,"-discount-percentage-container"),e.xp6(),e.Gre("percentage js-product-",t.value.product_id,"-discount-percentage"),e.xp6(),e.hij(" -",n.allProductsDiscountData[t.value.product_id].discount_percentage,"% ")}}function X(o,c){if(1&o&&(e.TgZ(0,"span")(1,"span"),e._uU(2),e.qZA()()),2&o){const t=e.oxw(4).$implicit,n=e.oxw();e.Gre("js-",t.value.product_id,"-discount-amount-container"),e.xp6(),e.Gre("amount js-product-",t.value.product_id,"-discount-amount"),e.xp6(),e.hij(" -$",n.allProductsDiscountData[t.value.product_id].discount_amount," ")}}function ee(o,c){if(1&o&&(e.TgZ(0,"span"),e.YNc(1,z,3,7,"span",9)(2,X,3,7,"span",9),e.qZA()),2&o){const t=e.oxw(3).$implicit,n=e.oxw();e.Gre("js-product-",t.value.product_id,"-discount-wrapper site-badge-hollow-orange"),e.xp6(),e.Q6J("ngIf",n.allProductsDiscountData[t.value.product_id].discount_percentage),e.xp6(),e.Q6J("ngIf",!n.allProductsDiscountData[t.value.product_id].discount_percentage&&n.allProductsDiscountData[t.value.product_id].discount_amount)}}function te(o,c){if(1&o&&(e.ynx(0),e._uU(1," \xa0 "),e.YNc(2,ee,3,5,"span",9),e.BQk()),2&o){const t=e.oxw(2).$implicit,n=e.oxw();e.xp6(2),e.Q6J("ngIf",n.allProductsDiscountData[t.value.product_id])}}function ne(o,c){1&o&&(e.ynx(0),e._uU(1," \xa0"),e.TgZ(2,"span",10),e._uU(3,"NEW"),e.qZA(),e.BQk())}function ie(o,c){1&o&&(e.ynx(0),e._uU(1," \xa0"),e.TgZ(2,"span",11),e._uU(3,"TOP SELLER"),e.qZA(),e.BQk())}function oe(o,c){1&o&&e._UZ(0,"span",12)}function ae(o,c){if(1&o&&(e.ynx(0),e.TgZ(1,"span",5)(2,"span",6),e._UZ(3,"span",7),e.YNc(4,te,3,1,"ng-container",4)(5,ne,4,0,"ng-container",4)(6,ie,4,0,"ng-container",4),e.qZA(),e.YNc(7,oe,1,0,"span",8),e.qZA(),e.BQk()),2&o){const t=e.oxw().$implicit,n=e.oxw();e.xp6(3),e.Q6J("innerHTML",t.value.catalog_name,e.oJD),e.xp6(),e.Q6J("ngIf",n.allProductsDiscountData&&t.value.product_id&&t.value.custom_styles&&t.value.custom_styles.indexOf("has-discount")>-1),e.xp6(),e.Q6J("ngIf",t.value.custom_styles&&t.value.custom_styles.indexOf("new-product")>-1),e.xp6(),e.Q6J("ngIf",t.value.custom_styles&&t.value.custom_styles.indexOf("top-seller-product")>-1),e.xp6(),e.Q6J("ngIf",!n.checkIfChildrenIsEmpty(t.value.children))}}function se(o,c){if(1&o&&(e.TgZ(0,"span")(1,"span"),e._uU(2),e.qZA()()),2&o){const t=e.oxw(4).$implicit,n=e.oxw();e.Gre("js-",t.value.product_id,"-discount-percentage-container"),e.xp6(),e.Gre("percentage js-product-",t.value.product_id,"-discount-percentage"),e.xp6(),e.hij(" -",n.allProductsDiscountData[t.value.product_id].discount_percentage,"% ")}}function re(o,c){if(1&o&&(e.TgZ(0,"span")(1,"span"),e._uU(2),e.qZA()()),2&o){const t=e.oxw(4).$implicit,n=e.oxw();e.Gre("js-",t.value.product_id,"-discount-amount-container"),e.xp6(),e.Gre("amount js-product-",t.value.product_id,"-discount-amount"),e.xp6(),e.hij(" -$",n.allProductsDiscountData[t.value.product_id].discount_amount," ")}}function ce(o,c){if(1&o&&(e.TgZ(0,"span"),e.YNc(1,se,3,7,"span",9)(2,re,3,7,"span",9),e.qZA()),2&o){const t=e.oxw(3).$implicit,n=e.oxw();e.Gre("js-product-",t.value.product_id,"-discount-wrapper site-badge-hollow-orange"),e.xp6(),e.Q6J("ngIf",n.allProductsDiscountData[t.value.product_id].discount_percentage),e.xp6(),e.Q6J("ngIf",!n.allProductsDiscountData[t.value.product_id].discount_percentage&&n.allProductsDiscountData[t.value.product_id].discount_amount)}}function le(o,c){if(1&o&&(e.ynx(0),e._uU(1," \xa0 "),e.YNc(2,ce,3,5,"span",9),e.BQk()),2&o){const t=e.oxw(2).$implicit,n=e.oxw();e.xp6(2),e.Q6J("ngIf",n.allProductsDiscountData[t.value.product_id])}}function pe(o,c){1&o&&(e.ynx(0),e._uU(1," \xa0"),e.TgZ(2,"span",10),e._uU(3,"NEW"),e.qZA(),e.BQk())}function de(o,c){1&o&&(e.ynx(0),e._uU(1," \xa0"),e.TgZ(2,"span",11),e._uU(3,"TOP SELLER"),e.qZA(),e.BQk())}function ue(o,c){1&o&&e._UZ(0,"span",12)}function he(o,c){if(1&o){const t=e.EpF();e.TgZ(0,"a",13),e.NdJ("click",function(i){e.CHM(t);const a=e.oxw().$implicit,s=e.oxw();return e.KtG(s.processRedirect(i,a.value.children))}
1),e.TgZ(1,"span",6),e._UZ(2,"span",7),e.YNc(3,le,3,1,"ng-container",4)(4,pe,4,0,"ng-container",4)(5,de,4,0,"ng-container",4),e.qZA(),e.YNc(6,ue,1,0,"span",8),e.qZA()}if(2&o){const t=e.oxw().$implicit,n=e.oxw();e.Q6J("href",t.value.url,e.LSH),e.uIk("rel",t.value.rel_attribute?n.navLevelFourItem.value.rel_attribute:"")("target","y"==t.value.new_window_flag?"_blank":""),e.xp6(2),e.Q6J("innerHTML",t.value.catalog_name,e.oJD),e.xp6(),e.Q6J("ngIf",n.allProductsDiscountData&&t.value.product_id&&t.value.custom_styles&&t.value.custom_styles.indexOf("has-discount")>-1),e.xp6(),e.Q6J("ngIf",t.value.custom_styles&&t.value.custom_styles.indexOf("new-product")>-1),e.xp6(),e.Q6J("ngIf",t.value.custom_styles&&t.value.custom_styles.indexOf("top-seller-product")>-1),e.xp6(),e.Q6J("ngIf",!n.checkIfChildrenIsEmpty(t.value.children))}}function _e(o,c){if(1&o){const t=e.EpF();e.TgZ(0,"header-nav-list",22),e.NdJ("setGroupAsActiveButHiddenEvent",function(i){e.CHM(t);const a=e.oxw(3);return e.KtG(a.setChildrenAsActiveButHidden(i))}),e.qZA()}if(2&o){const t=c.$implicit,n=e.oxw(2).$implicit,i=e.oxw();e.Q6J("isMobile",i.isMobile)("allProductsDiscountData",i.allProductsDiscountData)("level",i.level+1)("navData",t.value.children)("parentNav",n.value.children)("parentNavTitle",n.value.catalog_name)}}const ge=o=>({left:o});function fe(o,c){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",14)(2,"div",15)(3,"ul")(4,"li",16)(5,"span",17)(6,"span",18),e.NdJ("click",function(i){e.CHM(t);const a=e.oxw().$implicit,s=e.oxw();return e.KtG(s.goToPreviousNavList(i,a.value.catalog_item_id))}),e.qZA(),e._UZ(7,"span",19),e.qZA()()()(),e.TgZ(8,"div",20),e.YNc(9,_e,1,6,"header-nav-list",21),e.ALo(10,"keyvalue"),e.qZA()(),e.BQk()}if(2&o){const t=e.oxw().$implicit,n=e.oxw();e.xp6(),e.Gre("comp-header-nav-list-container level-",n.level+1,""),e.Q6J("ngClass",e.VKq(12,ge,n.isChildrenActiveButHidden)),e.xp6(2),e.Gre("header-nav-list level-",n.level+1,""),e.xp6(4),e.Q6J("innerHTML",t.value.catalog_name,e.oJD),e.xp6(2),e.Q6J("ngForOf",e.xi3(10,9,t.value.children,n.asIsOrder))}}const me=(o,c)=>({"has-children":o,active:c});function ve(o,c){if(1&o){const t=e.EpF();e.TgZ(0,"li",1),e.NdJ("click",function(){const a=e.CHM(t).$implicit,s=e.oxw();return e.KtG(s.setItemAsActiveShown(a.value.catalog_item_id,a.value.children))})("mouseenter",function(i){const s=e.CHM(t).$implicit,l=e.oxw();return l.removeFocusedElement(i),e.KtG(l.windowInnerWidth>991&&(s.value.active=!0))})("mouseleave",function(){const a=e.CHM(t).$implicit,s=e.oxw();return e.KtG(s.windowInnerWidth>991&&(a.value.active=!1))}),e.ALo(1,"decodeHtml"),e.ALo(2,"utf8Decode"),e.ALo(3,"decodeHtml"),e.ALo(4,"utf8Decode"),e.YNc(5,ae,8,5,"ng-container",2)(6,he,7,8,"ng-template",null,3,e.W1O)(8,fe,11,14,"ng-container",4),e.qZA()}if(2&o){const t=c.$implicit,n=e.MAs(7),i=e.oxw();e.IyS("hnl-list-item level-",i.level," ",t.value.custom_styles," ",i.additionalClasses,""),e.Q6J("ngClass",e.WLB(21,me,!i.checkIfChildrenIsEmpty(t.value.children),t.value.active||i.activeShownElements[t.value.catalog_item_id])),e.uIk("data-nav-level",i.level)("data-has-children",i.checkIfChildrenIsEmpty(t.value.children)?0:1)("data-nav-title",e.lcZ(1,13,e.lcZ(2,15,t.value.catalog_name)))("data-parent-title",e.lcZ(3,17,e.lcZ(4,19,i.parentNavTitle))),e.xp6(
15),e.Q6J("ngIf",!t.value.url)("ngIfElse",n),e.xp6(3),e.Q6J("ngIf",!i.checkIfChildrenIsEmpty(t.value.children))}}let Ce=(()=>{class o{constructor(t){this.ConfigManagerService=t,this.setGroupAsActiveButHiddenEvent=new e.vpe,this.additionalClasses="single-column",this.activeShownElements={},this.isMainHnlListActiveButHidden=!1,this.isChildrenActiveButHidden=!1,this.appConfig=t.getConfig("app")}ngOnInit(){this.parentNav&&Object.keys(this.parentNav).length>1&&(this.additionalClasses="multi-column")}checkIfChildrenIsEmpty(t){return t instanceof Array&&0==t.length}checkIfValidUrl(t){try{t=new URL(t)}catch{return!1}return"http:"===t.protocol||"https:"===t.protocol}constructUrl(t){return t?this.checkIfValidUrl(t)?t:(t="/"==t.charAt(0)?t:`?${t}`,this.appConfig.site_url+t):"javascript:"}removeFocusedElement(t){if(window.innerWidth>991){const i=t.target||t.srcElement||t.currentTarget;if(document.activeElement&&(document.activeElement.classList.contains("main-hnl-url")||document.activeElement.classList.contains("hnl-link"))){if(i.parentElement==document.activeElement.parentElement.parentElement&&i!==document.activeElement.parentElement)document.activeElement.parentElement.classList.remove("active");else{const s=document.activeElement.closest(".main-hnl-list-item"),l=s.querySelectorAll(".hnl-list-item");if(i.closest(".main-hnl-list-item")==s)for(var n=0;n<l.length&&i.parentElement.closest(".hnl-list-item")!=l[n];n++)l[n].classList.remove("active");else{const f=document.querySelectorAll(".main-hnl-list-item.active, .hnl-list-item.active");for(n=0;n<f.length;n++)f[n].classList.remove("active")}}document.activeElement.blur()}}}asIsOrder(t,n){return 0}setItemAsActiveShown(t,n){window.innerWidth<=991&&!this.checkIfChildrenIsEmpty(n)&&(this.activeShownElements[t]=!0,this.isMainHnlListActiveButHidden=!0,this.setGroupAsActiveButHidden(!0))}goToPreviousNavList(t,n){window.innerWidth<=991&&(t.stopPropagation(),this.activeShownElements[n]=!1,this.isMainHnlListActiveButHidden=!1,this.setGroupAsActiveButHidden(!1))}setGroupAsActiveButHidden(t){window.innerWidth<=991&&this.setGroupAsActiveButHiddenEvent.emit(t)}setChildrenAsActiveButHidden(t){window.innerWidth<=991&&(this.isChildrenActiveButHidden=t)}processRedirect(t,n){window.innerWidth<=991&&!this.checkIfChildrenIsEmpty(n)&&t.preventDefault()}get windowInnerWidth(){return window.innerWidth}static{this.\u0275fac=function(n){return new(n||o)(e.Y36(v.Q))}}static{this.\u0275cmp=e.Xpm({type:o,selectors:[["header-nav-list"]],inputs:{isMobile:"isMobile",allProductsDiscountData:"allProductsDiscountData",navData:"navData",level:"level",parentNav:"parentNav",parentNavTitle:"parentNavTitle"},outputs:{setGroupAsActiveButHiddenEvent:"setGroupAsActiveButHiddenEvent"},decls:3,vars:7,consts:[[3,"class","ngClass","click","mouseenter","mouseleave",4,"ngFor","ngForOf"],[3,"ngClass","click","mouseenter","mouseleave"],[4,"ngIf","ngIfElse"],["actualLink",""],[4,"ngIf"],[1,"hnl-link"],[1,"hnl-label"],[3,"innerHTML"],["class","hnl-link-icon fehp-arrow-right",4,"ngIf"],[3,"class",4,"ngIf"],[1,"site-badge-green-small"],[1,"site-badge-blue-small"],[1,"hnl-link-icon","fehp-arrow-right"],[1,"hnl-link",3,"href","click"],[3,"ngClass"],[1,"header-nav-list-wrapper-parent"],[1,"hnl-list-item-parent"],[1,"hnl-link","reverse"],[1,"hnl-link-icon","reverse","fehp-arrow-left",3,"click"],[1,"hnl-label",3,"innerHTML"],[1,"header-nav-list-wrapper"],[3,"isMobile","allProductsDiscountData","level","navData","parentNav","parentNavTitle","setGroupAsActiveButHiddenEvent",4,"ngFor","ngForOf"],[3,"isMobile","allProductsDiscountData","level","navData","parentNav","parentNavTitle","setGroupAsActiveButHiddenEvent"]],template:function(n,i){1&n&&(e.TgZ(0,"ul"),e.YNc(1,ve,9,24,"li",0),e.ALo(2,"keyvalue"),e.qZA()),2&n&&(e.Gre("header-nav-list ignore-hover level-",i.level,""),e.xp6(),e.Q6J("ngForOf",e.xi3(2,4,i.navData,i.asIsOrder)))},dependencies:[g.mk,g.sg,g.O5,o,g.Nd,Q.v,q.j],encapsulation:2})}}return o})();const we=["headerMenuNavDesktop"],be=["headerNavListContainers"];function Ae(o,c){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"a",11),e.NdJ("click",function(i){e.CHM(t);const a=e.oxw().$implicit,s=e.oxw(2);return e.KtG(s.processRedirect(i,a.value.children))})("mouseenter",function(){e.CHM(t);const i=e.oxw(3);return i.setHeaderNavListAsRightAlign(),e.KtG(i.setHeightOfMultiLevelHeaderNavList())})("focusin",function(){e.CHM(t);const i=e.oxw(3);return i.setHeaderNavListAsRightAlign(),e.KtG(i.setHeightOfMultiLevelHeaderNavList())}
1),e._UZ(2,"span",12)(3,"span",13),e.qZA(),e.BQk()}if(2&o){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(),e.Q6J("href",t.value.url,e.LSH),e.uIk("rel",t.value.rel_attribute?n.navLevelFourItem.value.rel_attribute:"")("target","y"==t.value.new_window_flag?"_blank":""),e.xp6(),e.Q6J("innerHTML",t.value.catalog_name,e.oJD)}}function Te(o,c){if(1&o){const t=e.EpF();e.TgZ(0,"span",14),e.NdJ("mouseenter",function(){e.CHM(t);const i=e.oxw(3);return i.setHeaderNavListAsRightAlign(),e.KtG(i.setHeightOfMultiLevelHeaderNavList())})("focusin",function(){e.CHM(t);const i=e.oxw(3);return i.setHeaderNavListAsRightAlign(),e.KtG(i.setHeightOfMultiLevelHeaderNavList())}),e._UZ(1,"span",12)(2,"span",13),e.qZA()}if(2&o){const t=e.oxw().$implicit;e.xp6(),e.Q6J("innerHTML",t.value.catalog_name,e.oJD)}}function ke(o,c){if(1&o){const t=e.EpF();e.TgZ(0,"header-nav-list",25),e.NdJ("setGroupAsActiveButHiddenEvent",function(i){e.CHM(t);const a=e.oxw(4);return e.KtG(a.setChildrenAsActiveButHidden(i))}),e.qZA()}if(2&o){const t=c.$implicit,n=e.oxw(2).$implicit,i=e.oxw(2);e.Q6J("isMobile",i.isMobile)("allProductsDiscountData",i.allProductsDiscountData)("level",1)("navData",t.value.children)("parentNav",n.value.children)("parentNavTitle",n.value.catalog_name)}}const He=(o,c)=>({"right-align":o,left:c});function Se(o,c){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",15,16)(3,"div",17)(4,"ul",18)(5,"li",19)(6,"span",20)(7,"span",21),e.NdJ("click",function(i){e.CHM(t);const a=e.oxw().$implicit,s=e.oxw(2);return e.KtG(s.goToPreviousNavList(i,a.value.catalog_item_id))}),e.qZA(),e._UZ(8,"span",22),e.qZA()()()(),e.TgZ(9,"div",23),e.YNc(10,ke,1,6,"header-nav-list",24),e.ALo(11,"keyvalue"),e.qZA()(),e.BQk()}if(2&o){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(),e.Q6J("ngClass",e.WLB(7,He,t.value.right_align,n.isChildrenActiveButHidden)),e.uIk("data-catalog-item-id",t.value.catalog_item_id),e.xp6(7),e.Q6J("innerHTML",t.value.catalog_name,e.oJD),e.xp6(2),e.Q6J("ngForOf",e.xi3(11,4,t.value.children,n.asIsOrder))}}const G=o=>({active:o});function ye(o,c){if(1&o){const t=e.EpF();e.TgZ(0,"li",7),e.NdJ("click",function(){const a=e.CHM(t).$implicit,s=e.oxw(2);return e.KtG(s.setItemAsActiveShown(a.value.catalog_item_id))})("mouseenter",function(i){const s=e.CHM(t).$implicit,l=e.oxw(2);return l.removeFocusedElement(i),e.KtG(l.windowInnerWidth>991&&(s.value.active=!0))})("mouseleave",function(){const a=e.CHM(t).$implicit,s=e.oxw(2);return e.KtG(s.windowInnerWidth>991&&(a.value.active=!1))}),e.ALo(1,"decodeHtml"),e.ALo(2,"utf8Decode"),e.YNc(3,Ae,4,4,"ng-container",8)(4,Te,3,1,"ng-template",null,9,e.W1O)(6,Se,12,10,"ng-container",10),e.qZA()}if(2&o){const t=c.$implicit,n=e.MAs(5),i=e.oxw(2);e.Q6J("ngClass",e.VKq(9,G,t.value.active||i.activeShownElements[t.value.catalog_item_id])),e.uIk("data-nav-title",e.lcZ(1,5,e.lcZ(2,7,t.value.catalog_name))),e.xp6(3),e.Q6J("ngIf",t.value.url)("ngIfElse",n),e.xp6(3),e.Q6J("ngIf",t.value.children)}}const Ne=o=>({expand:o}),xe=(o,c)=>({active:o,left:c});function Le(o,c){if(1&o&&(e.TgZ(0,"div",2)(1,"div",3,4)(3,"ul",5),e.YNc(4,ye,7,11,"li",6),e.ALo(5,"keyvalue"),e.qZA()()()),2&o){const t=e.oxw();e.Q6J("ngClass",e.VKq(6,Ne,t._showMobileNav)),e.xp6(3),e.Q6J("ngClass",e.WLB(8,xe,t._showMobileNav,t.isMainHnlListActiveButHidden)),e.xp6(),e.Q6J("ngForOf",e.xi3(5,3,t.desktopNav,t.asIsOrder))}}let Ie=(()=>{class o{set showMobileNav(t){this._showMobileNav=t,this.showNavFlag=t,this.activeShownElements={},this.isMainHnlListActiveButHidden=!1,this.isChildrenActiveButHidden=!1}onFocusin(t){this.setClassForHeaderNavListItem()}onClick(t){this.setClassForHeaderNavListItemOnClick(t.target||t.srcElement||t.currentTarget)}constructor(t,n,i,a,s){this.ConfigManagerService=t,this.Router=n,this.pageBackdropService=i,this.headerService=a,this.pageDiscountDisplayService=s,this.enableHeaderNavDataFetching=!0,this.highestDiscount=0,this.showNavFlag=!1,this._showMobileNav=!1,this.activeShownElements={},this.isMainHnlListActiveButHidden=!1,this.isChildrenActiveButHidden=!1,this.isMobile=!1,this.toggleMenu=new e.vpe,this.appConfig=this.ConfigManagerService.getConfig("app"),this.HeaderNavLibrary=new j,this.tap="ontouchstart"in document.documentElement,this.headerService.backdropFlag$.subscribe(l=>{this.showNavFlag=l}),this.pageDiscountDisplayService.websiteProductsDiscountData$.subscribe(l=>{this.allProductsDiscountData=l,this.allProductsDiscountData&&(this.highestDiscount=this.getHighestDiscount(this.allProductsDiscountData))})}ngOnInit(){this.enableHeaderNavDataFetching&&this.getProductMenu()}setHeaderNavListAsRightAlign(){if(window.innerWidth>991){const n=this.headerMenuNavDesktop.nativeElement.getBoundingClientRect(),i=n.left+n.width;
1this.headerNavListContainers.toArray().forEach(a=>{const s=a.nativeElement.getBoundingClientRect();if(s.left+s.width>i){const f=a.nativeElement.dataset.catalogItemId;Object.keys(this.desktopNav).forEach(k=>{this.desktopNav[k].catalog_item_id==f&&(this.desktopNav[k].right_align=!0)})}})}}setHeightOfMultiLevelHeaderNavList(){window.innerWidth>991&&this.headerNavListContainers.toArray().forEach(t=>{let n=t.nativeElement.offsetHeight;t.nativeElement.querySelectorAll(".comp-header-nav-list-container").forEach(a=>{a.offsetHeight>n&&(n=a.offsetHeight)}),t.nativeElement.style.minHeight=n+"px"})}getProductMenu(){this.HeaderNavLibrary.getHeaderMenuNavData(this.appConfig.site_url+"/header-menu-nav","GET",null).then(n=>{this.desktopNav=this.initializeDesktopNav(n.header_nav_data)})}initializeDesktopNav(t){return Object.keys(t).forEach(n=>{if(t[n].url){if(!this.checkIfValidUrl(t[n].url)){let i=t[n].url;i="/"==i.charAt(0)?i:`?${i}`,t[n].url=this.appConfig.site_url+i}if(t[n].url_params){const i=t[n].url.indexOf("?")>-1?"&":"?";t[n].url+=i+t[n].url_params}}t[n].children instanceof Array&&0===t[n].children.length||Object.keys(t[n].children).forEach(i=>{t[n].children[i].children=this.initializeDesktopNav(t[n].children[i].children)})}),t}showChild(t,n){t&&document.activeElement instanceof HTMLElement&&document.activeElement.blur(),n&&!this.tap&&window.innerWidth>991&&(this.showNavFlag=t)}showChildOnTap(){this.tap&&(this.showNavFlag?this.showNavFlag=!1:(this.showNavFlag=!0,this.setNavHeight()))}showBackdrop(t){this.timer=setTimeout(n=>{this.showNavFlag=t,this.pageBackdropService.showBackDrop(t)},300)}removeBackDrop(t){clearTimeout(this.timer),this.showNavFlag=t,this.pageBackdropService.showBackDrop(t)}toggleChildOnKeyDown(t){const a=-1!=[13,27].indexOf(t.keyCode),s=-1!=[13].indexOf(t.keyCode);a&&(this.showNavFlag?this.showNavFlag=!1:!this.showNavFlag&&s&&(this.showNavFlag=!0))}setNavHeight(){setTimeout(()=>{const t=innerHeight-245,n=document.querySelector(".setNavHeight");n&&(n.style.height=t+"px")},100)}setMenuUrl(t){return"/"!=t.charAt(0)?t:this.appConfig.site_url+t}navigateToUrl(t,n){t&&"keydown"==t.type&&13!=t.keyCode||(location.href=n)}getHighestDiscount(t){let n=0;return Object.keys(t).forEach(i=>{parseInt(t[i].discount_percentage,10)>n&&(n=parseInt(t[i].discount_percentage,10))}),n}checkIfValidUrl(t){try{t=new URL(t)}catch{return!1}return"http:"===t.protocol||"https:"===t.protocol}removeFocusedElement(t){if(window.innerWidth>991){const i=t.target||t.srcElement||t.currentTarget;if(document.activeElement&&(document.activeElement.classList.contains("main-hnl-url")||document.activeElement.classList.contains("hnl-link"))){if(i.parentElement==document.activeElement.parentElement.parentElement&&i!==document.activeElement.parentElement)document.activeElement.parentElement.classList.remove("active");else{const s=document.activeElement.closest(".main-hnl-list-item"),l=s.querySelectorAll(".hnl-list-item");if(i.closest(".main-hnl-list-item")==s)for(var n=0;n<l.length&&i.parentElement.closest(".hnl-list-item")!=l[n];n++)l[n].classList.remove("active");else{const f=document.querySelectorAll(".main-hnl-list-item.active, .hnl-list-item.active");for(n=0;n<f.length;n++)f[n].classList.remove("active")}}document.activeElement.blur()}}}asIsOrder(t,n){return 0}setClassForHeaderNavListItem(){if(window.innerWidth>991){const t=document.querySelectorAll(".main-hnl-list-item, .hnl-list-item");for(let n=0;n<t.length;n++)t[n].matches(":focus-within")?t[n].classList.add("active"):t[n].classList.remove("active")}else!this.headerMenuNavDesktop.nativeElement.matches(":focus-within")&&this._showMobileNav&&this.toggleMenu.emit(!1)}setClassForHeaderNavListItemOnClick(t){if(!t.classList.contains("menu-toggle")&&!t.closest(".header-menu-nav-container.desktop")){this._showMobileNav&&this.toggleMenu.emit(!1);const n=document.querySelectorAll(".main-hnl-list-item.active, .hnl-list-item.active");for(let i=0;i<n.length;i++)n[i].classList.remove("active")}}setItemAsActiveShown(t){window.innerWidth<=991&&(this.activeShownElements[t]=!0,this.isMainHnlListActiveButHidden=!0,this.headerNavListContainers.toArray().forEac
1h(n=>{n.nativeElement.style.minHeight="auto"}))}goToPreviousNavList(t,n){window.innerWidth<=991&&(t.stopPropagation(),this.activeShownElements[n]=!1,this.isMainHnlListActiveButHidden=!1)}setChildrenAsActiveButHidden(t){window.innerWidth<=991&&(this.isChildrenActiveButHidden=t)}processRedirect(t,n){window.innerWidth<=991&&n&&t.preventDefault()}get windowInnerWidth(){return window.innerWidth}static{this.\u0275fac=function(n){return new(n||o)(e.Y36(v.Q),e.Y36(A.F0),e.Y36(m),e.Y36(w),e.Y36(V.B))}}static{this.\u0275cmp=e.Xpm({type:o,selectors:[["app-header-nav"]],viewQuery:function(n,i){if(1&n&&(e.Gf(we,5),e.Gf(be,5)),2&n){let a;e.iGM(a=e.CRH())&&(i.headerMenuNavDesktop=a.first),e.iGM(a=e.CRH())&&(i.headerNavListContainers=a)}},hostBindings:function(n,i){1&n&&e.NdJ("focusin",function(s){return i.onFocusin(s)},!1,e.evT)("click",function(s){return i.onClick(s)},!1,e.evT)},inputs:{enableHeaderNavDataFetching:"enableHeaderNavDataFetching",isMobile:"isMobile",showMobileNav:"showMobileNav"},outputs:{toggleMenu:"toggleMenu"},decls:2,vars:4,consts:[[1,"header-menu-nav-mobile-backdrop",3,"ngClass"],["class","global-header-nav-container",3,"ngClass",4,"ngIf"],[1,"global-header-nav-container",3,"ngClass"],[1,"header-menu-nav-container","desktop"],["headerMenuNavDesktop",""],[1,"main-header-nav-list","ga4-nav-click","header",3,"ngClass"],["class","main-hnl-list-item","data-nav-level","0","data-has-children","1",3,"ngClass","click","mouseenter","mouseleave",4,"ngFor","ngForOf"],["data-nav-level","0","data-has-children","1",1,"main-hnl-list-item",3,"ngClass","click","mouseenter","mouseleave"],[4,"ngIf","ngIfElse"],["nonLink",""],[4,"ngIf"],[1,"main-hnl-url",3,"href","click","mouseenter","focusin"],[3,"innerHTML"],[1,"hnl-url-icon","fehp-arrow-right"],[1,"main-hnl-url",3,"mouseenter","focusin"],[1,"comp-header-nav-list-container","level-1",3,"ngClass"],["headerNavListContainers",""],[1,"header-nav-list-wrapper-parent"],[1,"header-nav-list","level-1"],[1,"hnl-list-item-parent"],[1,"hnl-link","reverse"],[1,"hnl-link-icon","reverse","fehp-arrow-left",3,"click"],[1,"hnl-label",3,"innerHTML"],[1,"header-nav-list-wrapper"],[3,"isMobile","allProductsDiscountData","level","navData","parentNav","parentNavTitle","setGroupAsActiveButHiddenEvent",4,"ngFor","ngForOf"],[3,"isMobile","allProductsDiscountData","level","navData","parentNav","parentNavTitle","setGroupAsActiveButHiddenEvent"]],template:function(n,i){1&n&&(e._UZ(0,"div",0),e.YNc(1,Le,6,11,"div",1)),2&n&&(e.Q6J("ngClass",e.VKq(2,G,i._showMobileNav)),e.xp6(),e.Q6J("ngIf",i.desktopNav))},dependencies:[g.mk,g.sg,g.O5,Ce,g.Nd,Q.v,q.j],encapsulation:2})}}return o})();const Ze=o=>({active:o});let De=(()=>{class o{constructor(t,n,i){this.Router=t,this.Location=n,this.ConfigManagerService=i,this.showButton=!0,this.isActive=!1,this.appConfig=this.ConfigManagerService.getConfig("app"),this.siteConfig=this.ConfigManagerService.getConfig("site"),this.incontactConfig=this.ConfigManagerService.getConfig("incontact"),this.setButtonVisibility(),this.Router.events.subscribe(a=>{a instanceof A.m2&&this.setButtonVisibility()})}ngAfterViewInit(){this.csWidgetContainer=document.getElementById("cs_widget_container")}toggleInContact(t){t.stopPropagation(),this.isActive=!this.isActive}toggleCSWidgetOnKeyDown(t){const s=-1!=[9,13,27].indexOf(t.keyCode),l=-1!=[13].indexOf(t.keyCode),f=-1!=[13,27].indexOf(t.keyCode);s&&(this.isActive&&f?this.isActive=!1:!this.isActive&&l&&(this.isActive=!0))}hideCSWidgetOnFocusOut(t){this.csWidgetContainer.contains(t.relatedTarget)||(this.isActive=!1)}callCustomerCare(t){t.stopPropagation(),(!t||"keydown"!=t.type||13==t.keyCode)&&(location.href="tel:"+this.siteConfig.phone_no)}redirectToPage(t,n){n&&"keydown"==n.type&&13!=n.keyCode||(location.href=this.appConfig.quote_request_url+"/"+t)}setButtonVisibility(){this.showButton=!0}static{this.\u0275fac=function(n){return new(n||o)(e.Y36(A.F0),e.Y36(g.Ye),e.Y36(v.Q))}}static{this.\u0275cmp=e.Xpm({type:o,selectors:[["cs-widget"]],decls:38,vars:8,consts:[["id","cs_widget_container","tabindex","0","aria-haspopup","true","role","menu","aria-label","Need Help?","aria-expanded","fal
1se",1,"comp-cs-widget-container","wiggle",3,"hidden","ngClass","click","keydown","focusout"],["aria-hidden","true",1,"cs-widget-title","mobile-hidden"],[1,"fa","fa-times-circle","cs-icon-times-circle"],[1,"cs-widget-body"],[1,"cs-widget-body-left-content"],[1,"mobile-hidden","need-help"],[1,"cs-widget-body-right-content"],["role","button",1,"cs-widget-button","call-customer-care",3,"tabindex","click","keydown"],[1,"cs-widget-padded-content"],[1,"mobile-only","margined","highlighted"],["aria-hidden","true",1,"fa","fa-phone","cs-icon-phone"],[1,"highlighted","mobile-hidden"],["aria-label","Request a Custom Quote","role","button",1,"cs-widget-button","custom-quote",3,"tabindex","click","keydown"],[1,"regular-left","mobile-hidden"],[1,"fa","fa-quote-left","cs-icon-quote-left"],[1,"mobile-only","highlighted"],[1,"fa","fa-quote-right","cs-icon-quote-right"],[1,"cs-widget-hidden-button","mobile-only","cs-widget-button"],[1,"close-container"],[1,"highlighted","margined"],[1,"fa","fa-close"],[1,"open-container"],[1,"highlighted"],[1,"fa","fa-question-circle"]],template:function(n,i){1&n&&(e.TgZ(0,"div",0),e.NdJ("click",function(s){return i.toggleInContact(s)})("keydown",function(s){return i.toggleCSWidgetOnKeyDown(s)})("focusout",function(s){return i.hideCSWidgetOnFocusOut(s)}),e.TgZ(1,"div",1),e._UZ(2,"i",2),e._uU(3,"Select Contact Option "),e.qZA(),e.TgZ(4,"div",3)(5,"div",4)(6,"span",5),e._uU(7,"Need Help?"),e.qZA()(),e.TgZ(8,"div",6)(9,"div",7),e.NdJ("click",function(s){return i.callCustomerCare(s)})("keydown",function(s){return i.callCustomerCare(s)}),e.TgZ(10,"div",8)(11,"span",9),e._uU(12,"Call Us"),e.qZA(),e._UZ(13,"i",10),e.TgZ(14,"span",11),e._uU(15),e.qZA()()(),e.TgZ(16,"div",12),e.NdJ("click",function(s){return i.redirectToPage("quotes"),s.stopPropagation()})("keydown",function(s){return i.redirectToPage("quotes",s)}),e.TgZ(17,"div")(18,"span",13),e._uU(19,"Request a "),e.qZA(),e._UZ(20,"i",14),e.TgZ(21,"span",15),e._uU(22,"Custom Quote"),e.qZA(),e.TgZ(23,"span",11),e._uU(24,"Custom Quote"),e.qZA(),e._UZ(25,"i",16),e.qZA()(),e.TgZ(26,"div",17)(27,"div")(28,"div",18)(29,"span",19),e._uU(30,"Close"),e.qZA(),e._UZ(31,"i",20),e.qZA(),e.TgZ(32,"div",21)(33,"span",22),e._uU(34,"Need"),e.qZA(),e.TgZ(35,"span",22),e._uU(36,"Help"),e.qZA(),e._UZ(37,"i",23),e.qZA()()()()()()),2&n&&(e.Q6J("hidden",!i.showButton)("ngClass",e.VKq(6,Ze,i.isActive)),e.xp6(9),e.s9C("tabindex",i.isActive?"0":"-1"),e.Q2q("aria-label","Call us at ",i.incontactConfig.phone_no,""),e.xp6(6),e.Oqu(i.incontactConfig.phone_no),e.xp6(),e.s9C("tabindex",i.isActive?"0":"-1"))},dependencies:[g.mk],encapsulation:2})}}return o})();var Me=p(3214),Be=p(14687),Ee=p(18073);function Je(o,c){if(1&o&&(e.TgZ(0,"span",7),e._uU(1),e.qZA()),2&o){const t=e.oxw(2);e.xp6(),e.hij(" ",t.poCartCount," ")}}function Ue(o,c){if(1&o&&(e.TgZ(0,"a",3),e.YNc(1,Je,2,1,"span",4),e._UZ(2,"img",5),e.TgZ(3,"span",6),e._uU(4),e.qZA()()),2&o){const t=e.oxw();e.s9C("href",t.poCartRoute,e.LSH),e.xp6(),e.Q6J("ngIf",t.poCartCount),e.xp6(),e.MGl("src","",t.appConfig.static_url,"/assets/img/cart-blue-icon.svg",e.LSH),e.xp6(2),e.Oqu(t.isMobileView&&t.isCheckoutPage?"":"Cart")}}function Pe(o,c){if(1&o&&(e.TgZ(0,"span",7),e._uU(1),e.qZA()),2&o){const t=e.oxw(2);e.xp6(),e.hij(" ",t.poCartCount," ")}}function Fe(o,c){if(1&o&&(e.TgZ(0,"a",3),e.YNc(1,Pe,2,1,"span",4),e._UZ(2,"img",5),e.TgZ(3,"span",6),e._uU(4,"Cart"),e.qZA()()),2&o){const t=e.oxw();e.s9C("href",t.poCartRoute,e.LSH),e.xp6(),e.Q6J("ngIf",t.poCartCount),e.xp6(),e.MGl("src","",t.appConfig.static_url,"/assets/img/cart-blue-icon.svg",e.LSH)}}let Oe=(()=>{class o{onResize(t){this.isMobileView=window.innerWidth<767}constructor(t,n,i,a,s,l){this.CartCountService=t,this.Router=n,this.ConfigManagerService=i,this.StorageService=a,this.RefreshTokenHelper=s,this.Location=l,this.poCartCount=0,this.ffrCartCount=0,this.showCartCountDropdown=!1,this.isDesignToolPage=!1,this.isCheckoutPage=!1,this.isMobileView=!1,this.Router.events.subscribe(f=>{f instanceof A.m2&&(this.isDesignToolPage=!1,this.Location.path().search("/design/tool")>=0&&(this.isDesignToolPage=!0),this.isCheckoutPage=!1,this.Location.path().search("/checkout")>=0&&(this.isCheckoutPage=!0))}),this.appConfig=this.ConfigManagerService.getConfig("app"),this.cartConfig=this.ConfigManagerService.getConfig("cart"),this.poCartRoute=this.appConfig.checkout_client_url+"/"+this.ConfigManagerService.getConfig("routes").checkout_client.cart,this.ffrCartRoute=this.appConfig.checkout_client_url+"/"+this.ConfigManagerService.getConfig("routes").checkout_client.ffr_cart,this.poCartId=this.StorageService.getItem(this.ConfigManagerService.getConfig("storage_keys").cart_id)}ngOnInit(){this.CartCountService.getCartCountServerless(this.poCartId).then(t=>{this.poCartCount=Number(t)}),this.CartCountService.cartCount$.subscribe(t=>{this.poCartCount=t}),this.RefreshTokenHelper.persistentCart$.subscribe(t=>{t&&t.hasOwnProperty("cart_count")&&(this.poCartCount=Number(t.cart_count))}),window.document.addEventListener("click",()=>{this.showCartCountDropdown&&(this.showCartCountDropdown=!this.showCartCountDropdown)}),this.isMobileView=window.innerWidth<767}static{this.\u0275fac=function(n){return new(n||o)(e.Y36(Me.Y),e.Y36(A.F0),e.Y36(v.Q),e.Y36(Be.V),e.Y36(Ee.P),e.Y36(g.Ye))}}
1static{this.\u0275cmp=e.Xpm({type:o,selectors:[["cart-count"]],hostBindings:function(n,i){1&n&&e.NdJ("resize",function(s){return i.onResize(s)},!1,e.Jf7)},decls:4,vars:2,consts:[[1,"comp-shopping-cart-icon-container"],[3,"href",4,"ngIf","ngIfElse"],["designCartLink",""],[3,"href"],["class","cart-count",4,"ngIf"],["alt","Cart","width","100%","height","auto",3,"src"],[1,"cart-label"],[1,"cart-count"]],template:function(n,i){if(1&n&&(e.TgZ(0,"div",0),e.YNc(1,Ue,5,4,"a",1)(2,Fe,5,3,"ng-template",null,2,e.W1O),e.qZA()),2&n){const a=e.MAs(3);e.xp6(),e.Q6J("ngIf",!i.isDesignToolPage)("ngIfElse",a)}},dependencies:[g.O5],encapsulation:2})}}return o})();function Qe(o,c){if(1&o){const t=e.EpF();e.TgZ(0,"div",1),e.NdJ("mousedown",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.hideBackdrop())}),e.qZA()}if(2&o){const t=e.oxw();e.Udp("display",t.showBackdrop?"block":"none")}}let qe=(()=>{class o{constructor(t,n){this.pageBackdropService=t,this.headerService=n,this.showBackdrop=!1,this.tap="ontouchstart"in document.documentElement,this.pageBackdropService.showBackDropFlag.subscribe(i=>{this.showBackdrop=i})}hideBackdrop(){this.tap&&(this.showBackdrop=!1,this.headerService.onBackdropEvent(!1))}static{this.\u0275fac=function(n){return new(n||o)(e.Y36(m),e.Y36(w))}}static{this.\u0275cmp=e.Xpm({type:o,selectors:[["page-backdrop"]],decls:1,vars:1,consts:[["class","comp-page-backdrop",3,"display","mousedown",4,"ngIf"],[1,"comp-page-backdrop",3,"mousedown"]],template:function(n,i){1&n&&e.YNc(0,Qe,1,2,"div",0),2&n&&e.Q6J("ngIf",i.showBackdrop)},dependencies:[g.O5],encapsulation:2})}}return o})();p(16363);const Ge=["global_header_container"],Re=["desktop_search_widget"],We=["mobile_search_widget"];function Ye(o,c){if(1&o&&e._UZ(0,"app-announcement-placeholder",39),2&o){const t=e.oxw();e.Q6J("endPointUrl",t.appConfig.submodule_api_url+"/announcements")("placeholderCode","HEADER_TOP")("websiteCode",t.appConfig.website_code)("containerClass","header-top")("closeIconClass","fehp-close")}}function Ke(o,c){if(1&o){const t=e.EpF();e.TgZ(0,"li",40),e.NdJ("click",function(i){e.CHM(t);const a=e.oxw();return e.KtG(a.loadLoginRegister("login",i))})("keydown",function(i){e.CHM(t);const a=e.oxw();return e.KtG(a.loadLoginRegister("login",i))}),e.TgZ(1,"span"),e._uU(2,"LOGIN OR CREATE ACCOUNT"),e.qZA()()}}function $e(o,c){1&o&&e._UZ(0,"hr")}function je(o,c){if(1&o){const t=e.EpF();e.TgZ(0,"li")(1,"a",41),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.logout())})("keydown",function(i){e.CHM(t);const a=e.oxw();return e.KtG(a.logout(i))}),e._uU(2,"Log Out"),e.qZA()()}}function Ve(o,c){1&o&&(e.TgZ(0,"span",42),e._uU(1,"My Account"),e.qZA())}function ze(o,c){if(1&o){const t=e.EpF();e.TgZ(0,"li",46),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2);return e.KtG(i.loadLoginRegister())}),e.TgZ(1,"span"),e._uU(2,"LOGIN OR CREATE ACCOUNT"),e.qZA()()}}function Xe(o,c){1&o&&e._UZ(0,"hr")}function et(o,c){if(1&o){const t=e.EpF();e.TgZ(0,"li")(1,"a",47),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2);return e.KtG(i.logout())}),e._uU(2,"Log Out"),e.qZA()()}}function tt(o,c){if(1&o){const t=e.EpF();e.TgZ(0,"div",43)(1,"ul"),e.YNc(2,ze,3,0,"li",44)(3,Xe,1,0,"hr",23),e.TgZ(4,"li")(5,"a",45),e.NdJ("click",function(i){e.CHM(t);const a=e.oxw();return e.KtG(a.loadLoginRegister("login",i))}),e._uU(6,"Orders & Proofs"),e.qZA()(),e.TgZ(7,"li")(8,"a",45),e.NdJ("click",function(i){e.CHM(t);const a=e.oxw();return e.KtG(a.loadLoginRegister("login",i))}),e._uU(9,"My Quotes"),e.qZA()(),e.TgZ(10,"li")(11,"a",45),e.NdJ("click",function(i){e.CHM(t);const a=e.oxw();return e.KtG(a.loadLoginRegister("login",i))}),e._uU(12,"Saved Designs"),e.qZA()(),e.TgZ(13,"li")(14,"a",45),e.NdJ("click",function(i){e.CHM(t);const a=e.oxw();return e.KtG(a.loadLoginRegister("login",i))}),e._uU(15,"Mailing List"),e.qZA()(),e.TgZ(16,"li")(17,"a",45),e.NdJ("click",function(i){e.CHM(t);const a=e.oxw();return e.KtG(a.loadLoginRegister("login",i))}),e._uU(18,"Settings"),e.qZA()(),e.YNc(19,et,3,0,"li",23),e.qZA()()}if(2&o){const t=e.oxw();e.xp6(2),e.Q6J("ngIf",!t.isLoggedIn),e.xp6(),e.Q6J("ngIf",!t.isLoggedIn),e.xp6(2),e.MGl("href","",t.appConfig.account_orders_client,"/order",e.LSH),e.xp6(3),e.MGl("href","",t.appConfig.account_quotes_client,"/quotes",e.LSH),e.xp6(3),e.MGl("href","",t.appConfig.account_designs_client,"/my-saved-designs",e.LSH),e.xp6(3),e.MGl("href","",t.appConfig.account_mailing_client,"/mailing-list",e.LSH),e.xp6(3),e.MGl("href","",t.appConfig.account_settings_client,"/contact-information",e.LSH),e.xp6(2),e.Q6J("ngIf",t.isLoggedIn)}}function nt(o,c){if(1&o){const t=e.EpF();e.TgZ(0,"app-header-nav",48),e.NdJ("toggleMenu",function(i){e.CHM(t);const a=e.oxw();return e.KtG(a.showNavigation(i))}),e.qZA()}if(2&o){const t=e.oxw();e.Q6J("enableHeaderNavDataFetching",!0)("showMobileNav",t.showMobileNav)}}function it(o,c){if(1&o&&e._UZ(0,"app-announcement-placeholder",49),2&o){const t=e.oxw();e.Q6J("endPointUrl",t.appConfig.submodule_api_url+"/announcements")("placeholderCode","HEADER_BANNER")("websiteCode",t.appConfig.website_code)("containerClass","header-banner")("itemClass","header-banner-item")("closeIconClass","fehp-close")}}function ot(o,c){1&o&&e._UZ(0,"holiday-message",50)}function at(o,c){1&o&&e._UZ(0,"coupon-banner-widget")}const U=o=>({hidden:o}),st=o=>({active:o}),rt=(o,c,t)=>({"fehp-hamburger-menu":o,"fehp-close":c,hidden:t});let ct=(()=>{class o{constructor(t,n,i,a,s,l,f,k,b,S,H,B,x){if(this.AuthService=t,this.LogoutHandlerService=n,this.Router=i,this.elementRef=a,this.Renderer=s,this.Location=l,this.ConfigManagerService=f,this.LoginRegisterModalService=k,this.pageBackdropService=b,this.headerService=S,this.CrossStorageClientService=H,this.SearchClientLoaderService=B,this.GA4NavClick=x,this.isLoggedIn=!1,this.lastScrollTop=0,this.displaySearchBar=!0,this.showComponent=!0,this.isWindowScrolled=!1,this.showAccountDropDownFlag=!1,this.showMobileNav=!1,this.isBurgerClick=!1,this.showCustomerNav=!1,this.isDesignToolPage=!1,this.isCheckoutPage=!1,this.isSearchClientLoaded=!1,this.enabledSections={show_header:!0,search_bar:!0,product_nav:!0,holiday_banner:!0,show_heading_label:!1},this.appConfig=this.ConfigManagerService.getConfig("app"),this.siteConfig=this.ConfigManagerService.getConfig("site"),this.discountConfig=this.ConfigManagerService.getConfig("discount"),this.loginRoute=this.ConfigManagerService.getConfig("routes").checkout_client.login,this.noHeaderPaths=this.ConfigManagerService.getConfig("no_header_paths"),this.tap="ontouchstart"in document.documentElement,this.crossStorageConfig=this.ConfigManagerService.getConfig("cross_storage"),this.CrossStorageClientService.onInit(this.crossStorageConfig.hub_url,this.crossStorageConfig.hub_opt),this.headerService.backdropFlag$.subscribe(T=>{this.showAccountDropDownFlag=T,this.showCustomerNav=T}),this.AuthService.parseAccessTokenData()){const T=this.AuthService.parseAccessTokenData();this.customerInfo=T.data,this.isLoggedIn=!0}t.logged_in$.subscribe(T=>{const Z=this.AuthService.parseAccessTokenData();this.customerInfo=Z.data,this.isLoggedIn=!0}),t.logged_out$.subscribe(T=>{this.customerInfo={},this.isLoggedIn=!1,this.clearLocalStorage([this.appConfig.buy_again.storage_key,this.appConfig.buy_again.timeout_storage_key]),this.clearNotification()}),t.customerInfo$.subscribe(T=>{null==T&&(this.customerInfo={},this.isLoggedIn=!1)}),this.AuthService.refreshToken$.subscribe(T=>{const Z=this.AuthService.parseAccessTokenData();Z&&(this.customerInfo=Z.data,this.isLoggedIn=!0)});const F=this.ConfigManagerService.getConfig("custom_header_routes");this.Router.events.subscribe(T=>{if(T instanceof A.m2){const Z={show_header:!0,search_bar:!0,product_nav:!0,holiday_banner:!0,show_heading_label:!1};for(const R of Object.keys(F)){if(this.Location.path().search(R)>=0){Object.assign(this.enabledSections,F[R]);break}Object.assign(this.enabledSections,Z)}this.isDesignToolPage=!1,this.Location.path().search("/design/tool")>=0&&(this.isDesignToolPage=!0),this.isCheckoutPage=!1,this.Location.path().search("/checkout")>=0&&(this.isCheckoutPage=!0)}})}clickout(t){this.elementRef.nativeElement.contains(t.target)||(this.showCustomerNav=!1)}onResize(t){this.showMobileNav&&(this.isBurgerClick=!1,this.showMobileNav=!1)}ngOnInit(){this.showHamburgerMenu();const t=this;window.addEventListener("scroll",function(){t.showHamburgerMenu()})}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:"",class:".header",ignore_hover_class:"list-header"}),clearInterval(i))},500);t.myAccountWrapper=document.getElementById("my_account_wrapper_desktop")})()}initSearch(){var t=this;return(0,r.Z)(function*(){t.isSearchClientLoaded||(t.SearchClientLoaderService.initSearch(t.desktopSearchWidget,t.mobileSearchWidget),t.isSearchClientLoaded=!0)})()}logout(t){t&&"keydown"==t.type&&13!=t.keyCode||(this.showAccountDropDown(!1),this.LogoutHandlerService.logout(!1).subscribe(n=>{this.logoutRedirect()}
1))}logoutRedirect(){if(this.isDesignToolPage){var t=document.getElementsByClassName("page-tool-container")[0];if(typeof t<"u"){const n=JSON.stringify({callFunction:"setAllowLeave",isAllowLeave:!0});t.contentWindow.postMessage(n,this.appConfig.design_tool_domain),setTimeout(()=>{window.location.href=this.appConfig.site_url})}}else window.location.href=this.appConfig.site_url}showHamburgerMenu(){if(typeof this.globalHeaderContainer<"u"){const t=this.globalHeaderContainer.nativeElement;window.pageYOffset>t.offsetHeight?(t.classList.add("window-scrolled"),window.innerWidth<768?(this.isWindowScrolled=!1,0!==document.getElementsByClassName("window-scrolled").length&&(this.lastScrollTop>window.scrollY?this.setStyle("window-scrolled","top","0"):this.setStyle("window-scrolled","top","-65px"),this.lastScrollTop=window.scrollY)):(this.isWindowScrolled=!0,this.setStyle("window-scrolled","top","0"))):(0!==document.getElementsByClassName("window-scrolled").length&&window.innerWidth>=768&&this.setStyle("window-scrolled","top","-50px"),t.classList.remove("window-scrolled"),this.isWindowScrolled=!1)}}setStyle(t,n,i){this.Renderer.setStyle(document.getElementsByClassName(t)[0],n,i)}loadLoginRegister(t,n){n&&"keydown"==n.type&&13!=n.keyCode||(this.showCustomerNav=!1,!this.isLoggedIn&&n&&n.preventDefault(),this.isLoggedIn||(this.showBackdrop(!1),this.LoginRegisterModalService.openModal({form_type:t,customClass:"site-modal",redirect_url:n?n.target.href:null})))}showAccountDropDownOnClick(){this.tap&&(this.showAccountDropDownFlag?(this.showAccountDropDownFlag=!1,this.pageBackdropService.showBackDrop(!1)):(this.showAccountDropDownFlag=!0,this.pageBackdropService.showBackDrop(!0)))}toggleAccountDropDownUponKeyDown(t){const s=-1!=[9,13,27].indexOf(t.keyCode),l=-1!=[13].indexOf(t.keyCode),f=-1!=[13,27].indexOf(t.keyCode);s&&(this.showAccountDropDownFlag&&f?(this.showAccountDropDownFlag=!1,this.pageBackdropService.showBackDrop(!1)):!this.showAccountDropDownFlag&&l&&(this.showAccountDropDownFlag=!0,this.pageBackdropService.showBackDrop(!0)))}hideAccountDropdownOnFocusOut(t){this.myAccountWrapper.contains(t.relatedTarget)||(this.showAccountDropDownFlag=!1,this.pageBackdropService.showBackDrop(!1))}hideNav(){this.showCustomerNav=!1}showAccountDropDown(t){this.tap||(t?this.showBackdrop(t):this.removeBackDrop(t))}showBackdrop(t){this.timer=setTimeout(n=>{this.showAccountDropDownFlag=t,this.pageBackdropService.showBackDrop(t)},300)}removeBackDrop(t){clearTimeout(this.timer),this.showAccountDropDownFlag=t,this.pageBackdropService.showBackDrop(t)}showNavigation(t){this.showCustomerNav=!1,this.isBurgerClick=!0,this.showMobileNav=!this.showMobileNav}toggleCustomerNav(t){t.stopPropagation(),this.showMobileNav=!1,this.showCustomerNav=!this.showCustomerNav}scrollIntoView(t,n){if(n&&"keydown"==n.type&&13!=n.keyCode)return;const i=document.getElementById(t);i.scrollIntoView(),i.focus()}clearNotification(){this.CrossStorageClientService.deleteData(this.appConfig.customer_notification.notification_storage),this.CrossStorageClientService.deleteData(this.appConfig.customer_notification.notification_query_storage),this.CrossStorageClientService.deleteData(this.appConfig.customer_notification.notification_query_data)}clearLocalStorage(t){if(t.length<=0)return!1;for(const n in t)this.CrossStorageClientService.deleteData(t[n])}static{this.\u0275fac=function(n){return new(n||o)(e.Y36(D.e),e.Y36(L.d),e.Y36(A.F0),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(g.Ye),e.Y36(v.Q),e.Y36(J.h),e.Y36(m),e.Y36(w),e.Y36(I.T),e.Y36(_.l),e.Y36("GA4NavClick"))}}static{this.\u0275cmp=e.Xpm({type:o,selectors:[["app-header"]],viewQuery:function(n,i){if(1&n&&(e.Gf(Ge,5),e.Gf(Re,7),e.Gf(We,7)),2&n){let a;e.iGM(a=e.CRH())&&(i.globalHeaderContainer=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("click",function(s){return i.clickout(s)},!1,e.evT)("resize",function(s){return i.onResize(s)},!1,e.Jf7)},decls:73,vars:53,consts:[[1,"global-header-container",3,"hidden"],[1,"skip-main-content"],["tabindex","0",3,"keydown"],["class","comp-announcement-container",3,"endPointUrl","placeholderCode","websiteCode","containerClass","closeIconClass",4,"ngIf"],[1,"wide-header-top-container"],[1,"header-logo"],[3,"href"],["alt","48HourPrint.com","title","48HourPrint.com",1,"logo",3,"src"],[1,"search-wrapper",3,"ngClass"],["
1id","desktop_search_widget",1,"search-widget-wrapper"],["desktop_search_widget",""],[3,"onEmitSearch"],[1,"checkout-label-wrapper",3,"ngClass"],[1,"checkout-label"],[1,"account-cart-wrapper"],["id","my_account_wrapper_desktop","tabindex","0","aria-haspopup","true","aria-expanded","false","role","menu",1,"my-account-wrapper",3,"ngClass","click","mouseenter","mouseleave","keydown","focusout"],[1,"account-container","customer-loaded"],[1,"salutation"],[1,""],[1,"gary-wrapper"],["width","100%","height","auto",3,"src"],[1,"customer-settings",3,"hidden"],["class","login-button site-btn-primary","tabindex","0","aria-label","Login","role","menuitem",3,"click","keydown",4,"ngIf"],[4,"ngIf"],[3,"href","click","keydown"],[1,"mobile-header-container","clearfix"],["alt","48HourPrint.com","title","48HourPrint.com",1,"img-header-mobile-logo",3,"src"],[1,"account-cart-wrapper",3,"click"],[1,"my-account-wrapper",3,"click"],["class","my-account-label",4,"ngIf"],["class","customer-settings mobile-customer-settings",4,"ngIf"],[1,"menu-toggle",3,"ngClass","click"],["id","mobile_search_widget",1,"search-widget-wrapper",3,"ngClass"],["mobile_search_widget",""],[1,"bottom-header-wrapper"],[3,"enableHeaderNavDataFetching","showMobileNav","toggleMenu",4,"ngIf"],[1,"comp-header-banner-container"],["class","comp-announcement-container",3,"endPointUrl","placeholderCode","websiteCode","containerClass","itemClass","closeIconClass",4,"ngIf"],["class","comp-holiday-message-container",4,"ngIf"],[1,"comp-announcement-container",3,"endPointUrl","placeholderCode","websiteCode","containerClass","closeIconClass"],["tabindex","0","aria-label","Login","role","menuitem",1,"login-button","site-btn-primary",3,"click","keydown"],["href","javascript:void(0)",3,"click","keydown"],[1,"my-account-label"],[1,"customer-settings","mobile-customer-settings"],["class","login-button site-btn-primary",3,"click",4,"ngIf"],[3,"href","click"],[1,"login-button","site-btn-primary",3,"click"],["href","javascript:void(0)",3,"click"],[3,"enableHeaderNavDataFetching","showMobileNav","toggleMenu"],[1,"comp-announcement-container",3,"endPointUrl","placeholderCode","websiteCode","containerClass","itemClass","closeIconClass"],[1,"comp-holiday-message-container"]],template:function(n,i){1&n&&(e.TgZ(0,"header",0)(1,"div",1)(2,"a",2),e.NdJ("keydown",function(s){return i.scrollIntoView("main_content",s)}),e._uU(3,"Skip to main content"),e.qZA()(),e.YNc(4,Ye,1,5,"app-announcement-placeholder",3),e.TgZ(5,"div",4)(6,"div",5)(7,"a",6),e._UZ(8,"img",7),e.qZA()(),e.TgZ(9,"div",8)(10,"div",9,10)(12,"standard-searchbar",11),e.NdJ("onEmitSearch",function(){return i.initSearch()}),e.qZA()()(),e.TgZ(13,"div",12)(14,"span",13),e._uU(15),e.qZA()(),e.TgZ(16,"div",14)(17,"div",15),e.NdJ("click",function(){return i.showAccountDropDownOnClick()})("mouseenter",function(){return i.showAccountDropDown(!0)})("mouseleave",function(){return i.showAccountDropDown(!1)})("keydown",function(s){return i.toggleAccountDropDownUponKeyDown(s)})("focusout",function(s){return i.hideAccountDropdownOnFocusOut(s)}),e.TgZ(18,"span",16)(19,"span",17),e._uU(20),e.qZA(),e.TgZ(21,"span",18),e._uU(22," My Account "),e.qZA()(),e.TgZ(23,"span",19),e._UZ(24,"img",20),e.qZA(),e.TgZ(25,"div",21)(26,"ul"),e.YNc(27,Ke,3,0,"li",22)(28,$e,1,0,"hr",23),e.TgZ(29,"li")(30,"a",24),e.NdJ("click",function(s){return i.loadLoginRegister("login",s)})("keydown",function(s){return i.loadLoginRegister("login",s)}),e._uU(31,"Orders & Proofs"),e.qZA()(),e.TgZ(32,"li")(33,"a",24),e.NdJ("click",function(s){return i.loadLoginRegister("login",s)})("keydown",function(s){return i.loadLoginRegister("login",s)}),e._uU(34,"My Quotes"),e.qZA()(),e.TgZ(35,"li")(36,"a",24),e.NdJ("click",function(s){return i.loadLoginRegister("login",s)})("keydown",function(s){return i.loadLoginRegister("login",s)}),e._uU(37,"Saved Designs"),e.qZA()(),e.TgZ(38,"li")(39,"a",24),e.NdJ("click",function(s){return i.loadLoginRegister("login",s)})("keydown",function(s){return i.loadLoginRegister("login",s)}),e._uU(40,"Mailing List"),e.qZA()(),e.TgZ(41,"li")(42,"a",24),e.NdJ("click",function(s){return i.loadLoginRegister("login",s)})("keydown",function(s){return i.loadLoginRegister("login",s)}),e._uU(43,"Settings"),e.qZA()(),e.YNc(44,je,3,0,"li",23),e.qZA()()(),e._UZ(45,"cart-count")(46,"cs-widget"),e.qZA()(),e.TgZ(47,"div",25)(48,"div",5)(49,"a",6),e._UZ(50,"img",26),e.qZA()(),e.TgZ(51,"div",12)(52,"span",13),e._uU(53),e.qZA()(),e.TgZ(54,"div",27),e.NdJ("click",function(){return i.hideNav()}),e.TgZ(55,"div",28),e.NdJ("click",function(s){return i.toggleCustomerNav(s)}),e.TgZ(56,"span",19),e._UZ(57,"img",20),e.qZA(),e.YNc(58,Ve,2,0,"span",29),e.qZA(),e._UZ(59,"cart
1-count"),e.qZA(),e.YNc(60,tt,20,8,"div",30),e.TgZ(61,"div",8)(62,"span",31),e.NdJ("click",function(s){return i.showNavigation(s)}),e.qZA(),e.TgZ(63,"div",32,33)(65,"standard-searchbar",11),e.NdJ("onEmitSearch",function(){return i.initSearch()}),e.qZA()()()(),e.TgZ(66,"div",34),e.YNc(67,nt,1,2,"app-header-nav",35),e.qZA(),e._UZ(68,"page-backdrop"),e.qZA(),e.TgZ(69,"div",36),e.YNc(70,it,1,6,"app-announcement-placeholder",37)(71,ot,1,0,"holiday-message",38)(72,at,1,0,"coupon-banner-widget",23),e.qZA()),2&n&&(e.Q6J("hidden",!i.enabledSections.show_header),e.xp6(4),e.Q6J("ngIf",i.enabledSections.holiday_banner),e.xp6(3),e.s9C("href",i.appConfig.site_url,e.LSH),e.Q2q("aria-label","48HourPrint.com logo, ",i.appConfig.site_url,""),e.xp6(),e.MGl("src","",i.appConfig.static_url,"/assets/img/48hp-logo.gif",e.LSH),e.xp6(),e.Q6J("ngClass",e.VKq(37,U,!i.enabledSections.search_bar)),e.xp6(4),e.Q6J("ngClass",e.VKq(39,U,!i.enabledSections.show_heading_label)),e.xp6(2),e.hij(" ",i.isCheckoutPage?"":"Checkout"," "),e.xp6(2),e.Udp("z-index",i.showAccountDropDownFlag?"3000":"auto"),e.Q6J("ngClass",e.VKq(41,st,i.showAccountDropDownFlag)),e.uIk("aria-label",i.isLoggedIn?"Hello, "+(null==i.customerInfo?null:i.customerInfo.first_name)+". My Account":"Hello, Log In! My Account"),e.xp6(3),e.hij(" Hello, ",i.isLoggedIn?null==i.customerInfo?null:i.customerInfo.first_name:"Log In","! "),e.xp6(4),e.MGl("src","",i.appConfig.static_url,"/assets/img/gary2.svg",e.LSH),e.xp6(),e.Q6J("hidden",!i.showAccountDropDownFlag),e.xp6(2),e.Q6J("ngIf",!i.isLoggedIn),e.xp6(),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(5),e.s9C("href",i.appConfig.site_url,e.LSH),e.xp6(),e.MGl("src","",i.appConfig.static_url,"/assets/img/48hp-logo-mobile.png",e.LSH),e.xp6(),e.Q6J("ngClass",e.VKq(43,U,!i.enabledSections.show_heading_label&&!i.isCheckoutPage)),e.xp6(2),e.hij(" ",i.isCheckoutPage?"":"Checkout"," "),e.xp6(4),e.MGl("src","",i.appConfig.static_url,"/assets/img/gary2.svg",e.LSH),e.xp6(),e.Q6J("ngIf",!i.isCheckoutPage),e.xp6(2),e.Q6J("ngIf",i.showCustomerNav),e.xp6(),e.Q6J("ngClass",e.VKq(45,U,!i.enabledSections.search_bar)),e.xp6(),e.Q6J("ngClass",e.kEZ(47,rt,!i.showMobileNav,i.showMobileNav,!i.enabledSections.product_nav)),e.xp6(),e.Q6J("ngClass",e.VKq(51,U,!i.enabledSections.search_bar)),e.xp6(4),e.Q6J("ngIf",i.enabledSections.product_nav),e.xp6(3),e.Q6J("ngIf",i.enabledSections.holiday_banner),e.xp6(),e.Q6J("ngIf",i.enabledSections.holiday_banner&&i.siteConfig.enable_holiday_message),e.xp6(),e.Q6J("ngIf",i.enabledSections.holiday_banner&&(null==i.discountConfig?null:i.discountConfig.coupon_banner)&&(null==i.discountConfig.coupon_banner?null:i.discountConfig.coupon_banner.enabled)))},dependencies:[g.mk,g.O5,N.C,u.n,C.b,$,Ie,De,Oe,qe],encapsulation:2})}}return o})()},1940:(O,E,p)=>{p.d(E,{b:()=>I});var r=p(19212),A=p(39346),e=p(8447),D=p(96814),L=p(40285);const g=["searchInput"];function v(_,N){if(1&_&&(r.TgZ(0,"button",12),r._UZ(1,"span"),r.qZA()),2&_){const u=r.oxw();r.xp6(),r.Tol(null==u.searchConfig?null:u.searchConfig.inline_clear_btn_class)}}function J(_,N){if(1&_&&(r.TgZ(0,"button",13),r._UZ(1,"span"),r.qZA()),2&_){const u=r.oxw();r.xp6(),r.Tol(null==u.searchConfig?null:u.searchConfig.search_bar_toggle_class)}}function h(_,N){1&_&&r._UZ(0,"button",14)}function m(_,N){if(1&_&&(r.ynx(0),r.TgZ(1,"a",17),r._uU(2),r.qZA(),r._uU(3),r.BQk()),2&_){const u=N.$implicit,C=N.index,d=r.oxw(2);r.xp6(),r.Q6J("href",d.searchPageUrl+u,r.LSH),r.xp6(),r.Oqu(u),r.xp6(),r.hij("",d.getPopularTermsDelimiter(C)," ")}}function w(_,N){if(1&_&&(r.TgZ(0,"div")(1,"div",15),r._uU(2," Looking for "),r.YNc(3,m,4,3,"ng-container",16),r.qZA()()),2&_){const u=r.oxw();r.Gre("comp-popular-search-terms-container ",u.searchTermsPlaceholderClass,""),r.xp6(3),r.Q6J("ngForOf",u.popularSearchTerms)}}let I=(()=>{class _{constructor(u,C){if(this.ConfigManagerService=u,this.LocalStorageService=C,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 d=JSON.parse(this.LocalStorageService.getItem(this.popularSearchTermsConfig.cache_key)),y=JSON.parse(d.popularSearchTerms),M=[];for(const P of y)P.query&&M.push(P.query);M.length>0&&(this.popularSearchTerms=M)}}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(u){const C=this.popularSearchTerms.length-1,d=C-1;return u<d?",":u===d?" or":u===C?"?":""}static{this.\u0275fac=function(C){return new(C||_)(r.Y36(A.Q),r.Y36(e.n))}}static{this.\u0275cmp=r.Xpm({type:_,selectors:[["standard-searchbar"]],viewQuery:function(C,d){if(1&C&&r.Gf(g,5),2&C){let y;r.iGM(y=r.CRH())&&(d.searchInput=y.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(C,d){1&C&&(r.TgZ(0,"div",0)(1,"div",1)(2,"input",2,3),r.NdJ("keyup.enter",function(){return d.redirect()})("click",function(){return d.initSearchClient()})("ngModelChange",function(M){return d.query=M}),r.qZA(),r.YNc(4,v,2,3,"button",4),r.TgZ(5,"button",5),r.NdJ("click",function(){return d.redirect()}),r._UZ(6,"span"),r.qZA(),r.YNc(7,J,2,3,"button",6),r.TgZ(8,"div",7),r._UZ(9,"span"),r.qZA(),r.YNc(10,h,1,0,"button",8),r.qZA(),r._UZ(11,"div",9),r.YNc(12,w,4,4,"div",10),r._UZ(13,"div",11),r.qZA()),2&C&&(r.xp6(2),r.s9C("placeholder",null==d.searchConfig?null:d.searchConfig.placeholder),r.Q6J("ngModel",d.query),r.x
1p6(2),r.Q6J("ngIf",(null==d.searchConfig?null:d.searchConfig.clear_btn)&&(null==d.searchConfig?null:d.searchConfig.inline_clear_btn)),r.xp6(2),r.Tol(null==d.searchConfig?null:d.searchConfig.search_icon_class),r.xp6(),r.Q6J("ngIf",null==d.searchConfig?null:d.searchConfig.has_toggle),r.xp6(2),r.Tol(null==d.searchConfig?null:d.searchConfig.search_loader_class),r.xp6(),r.Q6J("ngIf",(null==d.searchConfig?null:d.searchConfig.clear_btn)&&(null==d.searchConfig?null:d.searchConfig.inline_clear_btn)),r.xp6(2),r.Q6J("ngIf",d.hasPopularSearchTerms))},dependencies:[D.sg,D.O5,L.Fj,L.JJ,L.nD,L.On],encapsulation:2})}}return _})()},96693:(O,E,p)=>{p.d(E,{l:()=>g});var r=p(15861),e=p(19212),D=p(39346),L=p(69862);let g=(()=>{class v{constructor(h,m){this.ConfigManagerService=h,this.http=m,this.isLoaded={},this.searchConfigs=this.ConfigManagerService.getConfig("search_client"),this.appConfig=this.ConfigManagerService.getConfig("app"),this.searchConfig=this.ConfigManagerService.getConfig("search")}loadSearchFeature(h,m=null){if(!this.searchConfigs.loaders[h])throw new TypeError("No loader set up for this config.");if(this.isLoaded[h]&&this.isLoaded[h].loaded)return new Promise(_=>{_(!0)});if(this.isLoaded[h]&&this.isLoaded[h].loading)return this.isLoaded[h].callback;const w=typeof searchClientVersion<"u"?`?v=${searchClientVersion}`:m?`?v=${m}`:"",I=new Promise((_,N)=>{const u=document.createElement("script");u.type="text/javascript",u.src=this.searchConfigs.url+this.searchConfigs.loaders[h]+w,u.readyState?u.onreadystatechange=()=>{("loaded"===u.readyState||"complete"===u.readyState)&&(this.isLoaded[h].loading=!1,this.isLoaded[h]=!0,_(!0))}:u.onload=()=>{this.isLoaded[h].loading=!1,this.isLoaded[h]=!1,_(!0)},document.getElementsByTagName("head")[0].appendChild(u)});return this.isLoaded[h]={loading:!0,loaded:!1,callback:I},I}getSearchClientVersion(h){return this.http.get(h+"/search_client_version.txt",{responseType:"text"})}initSearch(h,m){var w=this;return(0,r.Z)(function*(){const I=yield function A(v){return new Promise((J,h)=>{v.subscribe({next(m){J(m)},error(m){h(m)}})})}(w.getSearchClientVersion(w.appConfig.site_url));yield w.loadSearchFeature("lookahead",I),h&&new SearchClient.SearchLookahead(w.appConfig.website_code).init(h.nativeElement,!0,{type:"breakpoint",minWidth:w.searchConfig.search_min_width_init_breakpoint??992}),m&&new SearchClient.SearchLookahead(w.appConfig.website_code).init(m.nativeElement,!0,{type:"breakpoint",maxWidth:w.searchConfig.search_max_width_init_breakpoint??991})})()}static{this.\u0275fac=function(m){return new(m||v)(e.LFG(D.Q),e.LFG(L.eN))}}static{this.\u0275prov=e.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})()}}]);

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.