1"use strict";(self.webpackChunkaccount_settings=self.webpackChunkaccount_settings||[]).push([[5849],{45849:(ct,g,c)=>{c.r(g),c.d(g,{AccountTemplate2Module:()=>et});var r=c(96814),l=c(3609),t=c(19212),u=c(39346),p=c(72026),C=c(33727),x=c(78681),v=c(25142),T=c(88661),w=c(7902),N=c(14180),k=c(30747);function j(n,a){if(1&n){const i=t.EpF();t.ynx(0),t.TgZ(1,"div",5)(2,"span",6),t.NdJ("keydown.enter",function(){t.CHM(i);const o=t.oxw(2);return t.KtG(o.getProjectNotifications())})("click",function(){t.CHM(i);const o=t.oxw(2);return t.KtG(o.getProjectNotifications())}),t._UZ(3,"i",7),t._uU(4),t.qZA(),t.TgZ(5,"span",8),t.NdJ("keydown.enter",function(){t.CHM(i);const o=t.oxw(2);return t.KtG(o.getProjectNotifications())})("click",function(){t.CHM(i);const o=t.oxw(2);return t.KtG(o.getProjectNotifications())}),t._UZ(6,"i",9),t.qZA()(),t.BQk()}if(2&n){const i=t.oxw(2);t.xp6(2),t.uIk("aria-expanded",i.showNotificationList?"true":"false"),t.xp6(2),t.AsE(" You have ",i.notificationCount," Project Notification ",i.notificationCount>1?"Messages":"Message"," "),t.xp6(2),t.Q6J("className",i.showNotificationList?"account-i-arrow-up":"account-i-arrow-down")}}function Z(n,a){1&n&&(t.TgZ(0,"div",10),t._UZ(1,"i",11),t.qZA())}function A(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"span",17),t._uU(2,"You have "),t.TgZ(3,"span",18),t._uU(4),t.qZA(),t._uU(5),t.qZA(),t.BQk()),2&n){const i=t.oxw().$implicit,e=t.oxw(3);t.xp6(4),t.hij("$",i.store_credit," Account Credit "),t.xp6(),t.hij(" ",e.notificationConfig.store_credit_notif_message,"")}}const _=n=>({notifDisabled:n});function b(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"span"),t._uU(2),t.TgZ(3,"a",19),t._uU(4,"Job needs payment before we print."),t.qZA()(),t.BQk()),2&n){const i=t.oxw().$implicit,e=t.oxw(3);t.xp6(2),t.hij("Order #",i.order_id," "),t.xp6(),t.hYB("href","",e.appConfig.portal_client_url,"",e.getUrl(i),"",t.LSH),t.Q6J("ngClass",t.VKq(4,_,!e.notificationConfig.link_click_enabled))}}function S(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"span"),t._uU(2),t.TgZ(3,"a",19),t._uU(4),t.qZA()(),t.BQk()),2&n){const i=t.oxw().$implicit,e=t.oxw(3);t.xp6(2),t.hij("Order #",i.order_id," "),t.xp6(),t.hYB("href","",e.appConfig.account_orders_client,"",e.getUrl(i),"",t.LSH),t.Q6J("ngClass",t.VKq(5,_,!e.notificationConfig.link_click_enabled)),t.xp6(),t.hij("Item #",i.item_id," Waiting for files.")}}function y(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"span"),t._uU(2),t.TgZ(3,"a",19),t._uU(4),t.qZA()(),t.BQk()),2&n){const i=t.oxw().$implicit,e=t.oxw(3);t.xp6(2),t.hij("Order #",i.order_id," "),t.xp6(),t.hYB("href","",e.appConfig.account_orders_client,"",e.getUrl(i),"",t.LSH),t.Q6J("ngClass",t.VKq(5,_,!e.notificationConfig.link_click_enabled)),t.xp6(),t.hij("Item #",i.item_id," Proof needs your approval before we print.")}}const P=()=>[];function U(n,a){if(1&n){const i=t.EpF();t.TgZ(0,"span"),t._uU(1),t.TgZ(2,"a",20),t.NdJ("click",function(){t.CHM(i);const o=t.oxw(2).$implicit,s=t.oxw(3);return t.KtG(s.trackShipment(o.order_id,o.jobItemId))})("keydown.enter",function(){t.CHM(i);const o=t.oxw(2).$implicit,s=t.oxw(3);return t.KtG(s.trackShipment(o.order_id,o.jobItemId))}),t._uU(3),t.qZA()()}if(2&n){const i=t.oxw(2).$implicit,e=t.oxw(3);t.xp6(),t.AsE(" Order #",i.order_id," Item #",i.item_id," Shipped! "),t.xp6(),t.Q6J("routerLink",t.DdM(5,P))("ngClass",t.VKq(6,_,!e.notificationConfig.link_click_enabled)),t.xp6(),t.hij("Track Shipment via ",e.displayShipMethod(i.ship_method),".")}}function M(n,a){if(1&n&&(t.ynx(0),t.YNc(1,U,4,8,"span",2),t.BQk()),2&n){const i=t.oxw().$implicit;t.xp6(),t.Q6J("ngIf",i.ship_method&&i.url)}}function I(n,a){if(1&n&&(t.TgZ(0,"li",15),t.YNc(1,A,6,2,"ng-container",16)(2,b,5,6,"ng-container",16)(3,S,5,7,"ng-container",16)(4,y,5,7,"ng-container",16)(5,M,2,1,"ng-container",16),t.qZA()),2&n){const i=a.$implicit;t.Q6J("ngClass","js-notification-item-"+a.index)("ngSwitch",i.ref),t.xp6(),t.Q6J("ngSwitchCase","STORE_CRED"),t.xp6(),t.Q6J("ngSwitchCase","PAYMENT"),t.xp6(),t.Q6J("ngSwitchCase","PENDING_FILE"),t.xp6(),t.Q6J("ngSwitchCase","PROOFING"),t.xp6(),t.Q6J("ngSwitchCase","SHIPPING")}}function J(n,a){if(1&n){const i=t.EpF();t.TgZ(0,"a",21),t.NdJ("keydown.enter",function(){t.CHM(i);const o=t.oxw(3);return t.KtG(o.showAll())})("click",function(){t.CHM(i);const o=t.oxw(3);return t.KtG(o.showAll())}),t._uU(1),t.qZA()}if(2&n){const i=t.oxw(3);t.xp6(),t.Oqu(i.notificationMoreLabel)}}function Q(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"ul",12),t.YNc(2,I,6,7,"li",13),t.qZA(),t.YNc(3,J,2,1,"a",14),t.BQk()),2&n){const i=t.oxw(2);t.xp6(2),t.Q6J("ngForOf",i.notifications),t.xp6(),t.Q6J("ngIf",i.allNotifications.length>i.notificationConfig.initial_notification_count&&!i.loading&&1!=i.notifications.length&&!i.seeMoreLinkHide)}}function D(n,a){if(1&n){const i=t.EpF();t.TgZ(0,"a",24),t.NdJ("click",function(){t.CHM(i);const o=t.oxw(3);return t.KtG(o.toggleList())})("keydown.enter",function(){t.CHM(i);const o=t.oxw(3);return t.KtG(o.toggleList())}),t._uU(1," Collapse view "),t._UZ(2,"i",25),t.qZA()}}function L(n,a){if(1&n&&(t.TgZ(0,"div",22),t.YNc(1,D,3,0,"a",23),t.qZA()),2&n){const i=t.oxw(2);t.xp6(),t.Q6J("ngIf",i.notificationCount>0&&!i.loading)}}function H(n,a){if(1&n&&(t.TgZ(0,"div",1),t.YNc(1,j,7,4,"ng-container",2)(2,Z,2,0,"div",3)(3,Q,4,2,"ng-container",2)(4,L,2,1,"div",4),t.qZA()),2&n){const i=t.oxw();
1t.xp6(),t.Q6J("ngIf",i.notificationCount>0),t.xp6(),t.Q6J("ngIf",i.loading),t.xp6(),t.Q6J("ngIf",i.showNotificationList),t.xp6(),t.Q6J("ngIf",i.showNotificationList)}}let Y=(()=>{class n{constructor(i,e,o,s){if(this.ProjectNotificationService=i,this.ConfigManagerService=e,this.AuthService=o,this.StringUtlService=s,this.subscription=new w.w,this.showNotificationList=!1,this.loading=!0,this.notificationCount=0,this.notifications=[],this.allNotifications=[],this.seeMoreLinkHide=!1,this.appConfig=this.ConfigManagerService.getConfig("app"),this.AuthService.parseAccessTokenData()){const ot=this.AuthService.parseAccessTokenData().data;this.isGuestCustomer="y"===ot.guest_flag}this.notificationConfig=this.ConfigManagerService.getConfig("project_notifications")}ngOnInit(){this.getProjectNotifCount()}getProjectNotifCount(){const i=this.ConfigManagerService.getConfig("customer"),e=typeof i.enable_guest_checkout<"u"&&i.enable_guest_checkout;if(!this.isGuestCustomer&&e||!e){const o=this.ProjectNotificationService.getProjectNotifCount().subscribe(s=>{"200"==s.statusCode&&(this.notificationCount=s.notifications_count),this.loading=!1},s=>{this.loading=!1,console.log(s)});this.subscription.add(o)}}displayShipMethod(i){switch(i){case"ups":return"UPS";case"fedex":case"fdx_freight":return"FedEx";case"dhl":return"DHL";default:return"Unknown Shipping Method"}}getProjectNotifications(){if(this.showNotificationList)this.showNotificationList=!this.showNotificationList;else{this.loading=!0,this.seeMoreLinkHide=!1;const i=this.ProjectNotificationService.getProjectNotifications().subscribe(e=>{"200"==e.statusCode&&(this.loading=!1,this.allNotifications=e.notifications_data,this.notifications=this.allNotifications.length>this.notificationConfig.initial_notification_count?this.allNotifications.slice(0,this.notificationConfig.initial_notification_count):this.allNotifications,this.showNotificationList=!this.showNotificationList)},e=>{console.log(e)});this.subscription.add(i)}}showAll(){const i=this.notifications.length;this.notifications=this.allNotifications,this.seeMoreLinkHide=!0,setTimeout(()=>{document.querySelector(".js-notification-item-"+i)&&document.querySelector(".js-notification-item-"+i).focus()},0)}getUrl(i){if(!this.notificationConfig.link_click_enabled)return"";switch(i.ref){case"PAYMENT":return this.StringUtlService.sprintf(this.notificationConfig.links.for_payment,+i.order_id);case"PENDING_FILE":return this.StringUtlService.sprintf(this.notificationConfig.links.waiting_for_files,+i.order_id,i.item_id);case"PROOFING":return this.StringUtlService.sprintf(this.notificationConfig.links.for_proofing,+i.order_id,i.item_id)}}ngOnDestroy(){this.subscription.unsubscribe()}get notificationMoreLabel(){return this.notificationConfig.notification_more_label}toggleList(){this.showNotificationList=!this.showNotificationList}static{this.\u0275fac=function(e){return new(e||n)(t.Y36(N.G),t.Y36(u.Q),t.Y36(p.e),t.Y36(k.B))}}static{this.\u0275cmp=t.Xpm({type:n,selectors:[["project-notification"]],decls:1,vars:1,consts:[["class","comp-project-notification-container",4,"ngIf"],[1,"comp-project-notification-container"],[4,"ngIf"],["class","project-notif-loader",4,"ngIf"],["class","collapse-view-wrapper",4,"ngIf"],[1,"notif-wrap"],["role","button","tabindex","0",1,"notification-messages-text",3,"keydown.enter","click"],[1,"fa","fa-exclamation-circle"],[1,"notification-messages-icon","project-notif-arrow-down",3,"keydown.enter","click"],[3,"className"],[1,"project-notif-loader"],[1,"notification-loading-icon","fa","fa-spinner","fa-spin"],[1,"project-notif-list"],["tabindex","0",3,"ngClass","ngSwitch",4,"ngFor","ngForOf"],["tabindex","0","class","see-more-link",3,"keydown.enter","click",4,"ngIf"],["tabindex","0",3,"ngClass","ngSwitch"],[4,"ngSwitchCase"],[1,"store-credit-text"],[1,"store-credit-amount"],[1,"notification-item-link",3,"href","ngClass"],[1,"notification-item-link",3,"routerLink","ngClass","click","keydown.enter"],["tabindex","0",1,"see-more-link",3,"keydown.enter","click"],[1,"collapse-view-wrapper"],["tabindex","0","class","collapse-view-text pull-right",3,"click","keydown.enter",4,"ngIf"],["tabindex","0",1,"collapse-view-text","pull-right",3,"click","keydown.enter"],[1,"account-i-arrow-up"]],template:function(e,o){1&e&&t.YNc(0,H,5,4,"div",0),2&e&&t.Q6J("ngIf",!o.isGuestCustomer)},dependencies:[r.mk,r.sg,r.O5,r.RF,r.n9],encapsulation:2})}}return n})();function G(n,a){1&n&&(t.ynx(0),t._UZ(1,"project-notification"),t.BQk())}function F(n,a){if(1&n){const i=t.EpF();t.TgZ(0,"a",9),t.NdJ("click",function(){t.CHM(i);const o=t.oxw(2);return t.KtG(o.navigateToCreateDesign())})("keydown.enter",function(){t.CHM(i);const o=t.oxw(2);return t.KtG(o.navigateToCreateDesign())}),t.TgZ(1,"span",10),t._uU(2,"+"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Create a new design"),t.qZA()()}}function O(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"h1",4),t._uU(2," Welcome, "),t.TgZ(3,"span",5),t._uU(4),t.qZA(),t._uU(5,"! "),t.qZA(),t.TgZ(6,"div",6),t._UZ(7,"account-nav-tabs",7),t.YNc(8,F,5,0,"a",8),t.qZA(),t.BQk()),2&n){const i=t.oxw();
1t.xp6(4),t.Oqu(i.customer.first_name),t.xp6(3),t.Q6J("customTabConfigKey","settings"),t.xp6(),t.Q6J("ngIf",i.enableCreateDesignLink&&i.createDesignUrl)}}function q(n,a){if(1&n){const i=t.EpF();t.TgZ(0,"a",9),t.NdJ("click",function(){t.CHM(i);const o=t.oxw(2);return t.KtG(o.navigateToCreateDesign())})("keydown.enter",function(){t.CHM(i);const o=t.oxw(2);return t.KtG(o.navigateToCreateDesign())}),t.TgZ(1,"span",10),t._uU(2,"+"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Create a new design"),t.qZA()()}}function B(n,a){if(1&n&&(t.TgZ(0,"div",11)(1,"div",12)(2,"span"),t._uU(3,"ACCOUNT\xa0"),t.qZA(),t._UZ(4,"i",13),t.qZA(),t._UZ(5,"account-nav-dropdown",7),t.YNc(6,q,5,0,"a",8),t.qZA(),t.TgZ(7,"h1",4),t._uU(8," Welcome, "),t.TgZ(9,"span",5),t._uU(10),t.qZA(),t._uU(11,"! "),t.qZA()),2&n){const i=t.oxw();t.xp6(5),t.Q6J("customTabConfigKey","settings"),t.xp6(),t.Q6J("ngIf",i.enableCreateDesignLink&&i.createDesignUrl),t.xp6(4),t.Oqu(i.customer.first_name)}}let E=(()=>{class n{onResize(){this.isMobileView=this.responsiveService.isTablet()}constructor(i,e,o,s){this.ConfigManagerService=i,this.AuthService=e,this.CustomerService=o,this.responsiveService=s,this.isMobileView=!1,this.enabledProjectNotification=!0,this.enableCreateDesignLink=!1,this.createDesignUrl="",this.customer={first_name:"",last_name:""},this.config={enable_order_tab:!0,enable_quotes_tab:!0,enable_settings_tab:!0},this.CustomerService.customerName.subscribe(()=>{this.setCustomerData()})}ngOnInit(){this.isMobileView=this.responsiveService.isTablet(),this.AuthService.logged_in$.subscribe(()=>{this.setCustomerData()}),this.setCustomerData();const i=this.ConfigManagerService.getConfig("project_notifications")?.enabled_project_notification;this.enabledProjectNotification=void 0!==i?i:this.enabledProjectNotification;const e=this.ConfigManagerService.getConfig("app");this.enableCreateDesignLink=e.enable_create_design_link??!1,this.createDesignUrl=e.cloudlab_url??""}navigateToCreateDesign(){window.location.href=this.createDesignUrl}setCustomerData(){this.customer=this.CustomerService.setCustomerData()}static{this.\u0275fac=function(e){return new(e||n)(t.Y36(u.Q),t.Y36(p.e),t.Y36(C.v),t.Y36(x.k))}}static{this.\u0275cmp=t.Xpm({type:n,selectors:[["account-template-2"]],hostBindings:function(e,o){1&e&&t.NdJ("resize",function(h){return o.onResize(h)},!1,t.Jf7)},decls:6,vars:3,consts:[["id","main_content",1,"account-template-2-container","account-container"],[4,"ngIf"],[4,"ngIf","ngIfElse"],["mobileAccountNavTpl",""],["tabindex","0",1,"account-salutation"],[1,"customer-firstname"],[1,"account-navigation"],[3,"customTabConfigKey"],["class","create-design-link account-secondary-link","role","button","tabindex","0",3,"click","keydown.enter",4,"ngIf"],["role","button","tabindex","0",1,"create-design-link","account-secondary-link",3,"click","keydown.enter"],[1,"create-design-icon"],[1,"m-account-navigation"],[1,"mobile-nav-title"],[1,"fa","fa-chevron-right"]],template:function(e,o){if(1&e&&(t.TgZ(0,"div",0),t.YNc(1,G,2,0,"ng-container",1)(2,O,9,3,"ng-container",2)(3,B,12,3,"ng-template",null,3,t.W1O),t._UZ(5,"router-outlet"),t.qZA()),2&e){const s=t.MAs(4);t.xp6(),t.Q6J("ngIf",o.enabledProjectNotification),t.xp6(),t.Q6J("ngIf",!o.isMobileView)("ngIfElse",s)}},dependencies:[r.O5,l.lC,v.D,T.I,Y],encapsulation:2})}}return n})();var K=c(72643),$=c(74382),d=c(91097),R=c(6442),V=c(53796),z=c(7179),f=c(20553);const m=new K.D,W=f.q[window.siteCode].account_meta_data,X=f.q[window.siteCode].account_templates.not_found_template?f.q[window.siteCode].account_templates.not_found_template:"NOT_FOUND",tt=[{path:"",component:E,resolve:{require_login:d.H,url_coupon:R._,admanager:V._},children:[{path:"",canActivate:[$.P],loadChildren:()=>m.importModule("SETTINGS")}]},{path:"**",canActivate:[z.B],loadChildren:()=>m.importModule(X),data:{title:W.not_found.title,isNotFound:!0},resolve:{require_login:d.H}}];let it=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275mod=t.oAB({type:n})}static{this.\u0275inj=t.cJS({imports:[l.Bz.forChild(tt),l.Bz]})}}return n})();var nt=c(38168);let et=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275mod=t.oAB({type:n})}static{this.\u0275inj=t.cJS({imports:[r.ez,it,nt.r]})}}return n})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.