PageSourceSearch

https://settings.48hourprint.com/5125.95a3c5021d0e7598.js

js 48hourprint.com collected 2026-10-03 22:14:07 UTC 17,501 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkaccount_settings=self.webpackChunkaccount_settings||[]).push([[5125],{44687:(v,d,n)=>{n.d(d,{g:()=>t});var s=n(19212),p=n(24438),a=n(96814);function _(u,f){if(1&u&&(s.TgZ(0,"div",1)(1,"div",2)(2,"div",3),s._uU(3),s.qZA()()()),2&u){const r=s.oxw();s.xp6(3),s.Oqu(r.errorMsg)}}let t=(()=>{class u{constructor(r){this.csrfTokenService=r,this.isUnauthorized=!1,this.isUnauthorizedFormName=null,this.errorMsg="This session has expired. Please refresh and try again.",this.formName=null}ngOnInit(){this.csrfTokenService.isUnauthorized$.subscribe(r=>{"boolean"==typeof r?this.isUnauthorized=r:"object"==typeof r&&r&&(this.isUnauthorized=r.isUnauthorized,this.isUnauthorizedFormName=r.isUnauthorizedFormName)})}static{this.\u0275fac=function(c){return new(c||u)(s.Y36(p.A))}}static{this.\u0275cmp=s.Xpm({type:u,selectors:[["account-csrf-error-message"]],inputs:{errorMsg:"errorMsg",formName:"formName"},decls:1,vars:1,consts:[["class","csrf-error-message-container site-alert-danger alert alert-info","role","alert",4,"ngIf"],["role","alert",1,"csrf-error-message-container","site-alert-danger","alert","alert-info"],[1,"alert-content"],[1,"alert-description"]],template:function(c,m){1&c&&s.YNc(0,_,4,1,"div",0),2&c&&s.Q6J("ngIf",m.isUnauthorized&&!m.formName||m.isUnauthorized&&m.formName&&m.formName==m.isUnauthorizedFormName)},dependencies:[a.O5],encapsulation:2})}}return u})()},30900:(v,d,n)=>{n.d(d,{A:()=>_});var s=n(71928),p=n(51418),a=n(19212);let _=(()=>{class t{focusOnElement(f,r=!1){if(r)(0,s.H)(200).pipe((0,p.q)(1)).subscribe(()=>{const c=document.querySelector(f);c&&c.focus({preventScroll:!0})});else{const c=document.querySelector(f);c&&c.focus({preventScroll:!0})}}ariaSizeValueLabel(f){return null!=f?f.replaceAll('"'," inches").replaceAll(" x "," by "):f}onModalShown(f,r){const c=document.querySelector("."+f);null!=c&&(c.setAttribute("aria-hidden","true"),setTimeout(()=>{c.setAttribute("aria-hidden","false"),c.querySelector("."+r).focus()},750))}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})()},41384:(v,d,n)=>{n.d(d,{T:()=>t});var s=n(19212),p=n(87163),a=n(96814);function _(u,f){if(1&u&&(s.TgZ(0,"div"),s._uU(1),s.qZA()),2&u){const r=s.oxw();s.xp6(),s.hij(" ",r.errorMessage," ")}}let t=(()=>{class u{constructor(r){this.ValidationService=r,this.errorDefs={},this.errorMessage=""}ngOnChanges(r){const c=r.inputErrors.currentValue;this.errorMessage="",c&&Object.keys(c).some(m=>{if(c[m])return this.errorMessage=this.errorDefs[m]?this.errorDefs[m]:this.ValidationService.getValidatorErrorMessage(m),!0})}static{this.\u0275fac=function(c){return new(c||u)(s.Y36(p.R))}}static{this.\u0275cmp=s.Xpm({type:u,selectors:[["input-error-message"]],inputs:{errorDefs:"errorDefs",inputErrors:"inputErrors"},features:[s.TTD],decls:1,vars:1,consts:[[4,"ngIf"]],template:function(c,m){1&c&&s.YNc(0,_,2,1,"div",0),2&c&&s.Q6J("ngIf",m.errorMessage)},dependencies:[a.O5],encapsulation:2})}}return u})()},84585:(v,d,n)=>{n.d(d,{Y:()=>a});var s=n(19212),p=n(40285);let a=(()=>{class _{constructor(u){this.ngControl=u,this.el=u}onInput(u){this.el.control.patchValue(u.replace(/[^0-9]/g,""))}static{this.\u0275fac=function(f){return new(f||_)(s.Y36(p.a5))}}static{this.\u0275dir=s.lG2({type:_,selectors:[["","number-only",""]],hostBindings:function(f,r){1&f&&s.NdJ("input",function(m){return r.onInput(m.target.value)})}})}}return _})()},18771:(v,d,n)=>{function s(){return p=>{let _=!0;return typeof p.value<"u"&&p.value&&(_=!p.value.match(/[^\s\w\u00c0-\u017e,.:&\/#()+%'`@-]/)),_?null:{scripts:!0}}}n.d(d,{i:()=>s})},85125:(v,d,n)=>{n.r(d),n.d(d,{TextNotificationsModule:()=>H});var s=n(96814),p=n(3609),a=n(40285),_=n(18771),t=n(19212),u=n(33727),f=n(39346),r=n(72026),c=n(67444),m=n(30900),b=n(24438),T=n(70923),N=n(41384),C=n(75832),y=n(84585);let M=(()=>{class o{constructor(e){this.ngControl=e,this.el=e}onInput(e){const i=e.replace(/\D/g,"").replace(/^1+/,"").match(/(\d{0,3})(\d{0,3})(\d{0,4})/);this.el.control.patchValue(i[2]?"("+i[1]+") "+i[2]+(i[3]?"-"+i[3]:""):i[1])}static{this.\u0275fac=function(l){return new(l||o)(t.Y36(a.a5))}}static{this.\u0275dir=t.lG2({type:o,selectors:[["","phone-mask-input",""]],hostBindings:function(l,i){1&l&&t.NdJ("input",function(x){return i.onInput(x.target.value)})}})}}return o}
1)();var E=n(44687);const I=["mobileNumber"];function S(o,g){if(1&o&&(t.TgZ(0,"div",27)(1,"span",28),t._UZ(2,"div",29),t.qZA(),t.TgZ(3,"span",30),t._uU(4),t.qZA()()),2&o){const e=t.oxw(2);t.xp6(4),t.Oqu(e.successMsg)}}function O(o,g){1&o&&(t.TgZ(0,"div",31)(1,"p",32),t._uU(2,"You are opted in to order status texts. To opt out, please uncheck the box and update your preferences."),t.qZA()())}function D(o,g){if(1&o&&(t.ynx(0),t._uU(1),t.BQk()),2&o){const e=t.oxw(2);t.xp6(),t.hij(" ",e.mobileNo," ")}}function A(o,g){if(1&o&&t._uU(0),2&o){const e=t.oxw(2);t.hij(" ",e.isOptedIn?"Update":"Add"," Mobile Number ")}}function U(o,g){1&o&&t._UZ(0,"span",33)}function F(o,g){if(1&o){const e=t.EpF();t.TgZ(0,"span",34),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.enableEdit())}),t.qZA()}}function P(o,g){1&o&&t._UZ(0,"span",35)}function Z(o,g){if(1&o&&t._UZ(0,"input-error-message",36),2&o){const e=t.oxw(2);t.Q6J("inputErrors",e.smsNotifForm.get("mobile_no").errors)("errorDefs",e.errorMsgs.mobile_no)}}function k(o,g){if(1&o&&(t.ynx(0),t._UZ(1,"a",37),t._uU(2,". "),t.BQk()),2&o){const e=t.oxw(2);t.xp6(),t.hYB("href","",e.appSiteConfig.site_url,"/",e.settingsSiteConfig.terms_and_conditions,"",t.LSH),t.Q6J("innerHTML",e.settingsSiteConfig.text_notifications.terms_and_conditions_lbl,t.oJD)}}function L(o,g){if(1&o){const e=t.EpF();t.TgZ(0,"a",38),t.NdJ("click",function(i){t.CHM(e);const h=t.oxw(2);return t.KtG(h.showTermsModal(i))}),t.qZA(),t._uU(1,". ")}if(2&o){const e=t.oxw(2);t.Q6J("innerHTML",e.settingsSiteConfig.text_notifications.terms_and_conditions_lbl,t.oJD),t.uIk("data-title",e.settingsSiteConfig.text_notifications.modal_title)("data-url",e.appSiteConfig.site_url+"/"+e.settingsSiteConfig.text_notifications.modal_url)}}function B(o,g){1&o&&t._UZ(0,"i",39)}const J=(o,g,e,l,i)=>({error:o,"has-valid-value":g,"has-value":e,active:l,"not-editable":i});function Y(o,g){if(1&o){const e=t.EpF();t.ynx(0),t.YNc(1,S,5,1,"div",4)(2,O,3,0,"div",5),t.TgZ(3,"form",6),t.NdJ("submit",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.updateMobileNumber())}),t._UZ(4,"input",7)(5,"account-csrf-error-message"),t.TgZ(6,"div",8)(7,"label",9),t.YNc(8,D,2,1,"ng-container",2)(9,A,1,1,"ng-template",null,10,t.W1O),t.qZA(),t.TgZ(11,"input",11,12),t.NdJ("focus",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.onFieldFocus("mobile_no"))})("blur",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.onFieldBlur("mobile_no"))}),t.qZA(),t.YNc(13,U,1,0,"span",13)(14,F,1,0,"span",14)(15,P,1,0,"span",15),t.TgZ(16,"div",16),t.YNc(17,Z,1,2,"input-error-message",17),t.qZA()(),t.TgZ(18,"div",18)(19,"label",19),t._UZ(20,"input",20)(21,"span",21),t.TgZ(22,"span",22),t._uU(23),t.YNc(24,k,3,3,"ng-container",2)(25,L,2,3,"ng-template",null,23,t.W1O),t._uU(27," and "),t.TgZ(28,"a",24),t._uU(29,"Privacy Policy"),t.qZA(),t._uU(30,". "),t.qZA()()(),t.TgZ(31,"button",25),t._uU(32," Update Preferences "),t.YNc(33,B,1,0,"i",26),t.qZA()(),t.BQk()}if(2&o){const e=t.MAs(10),l=t.MAs(26),i=t.oxw();t.xp6(),t.Q6J("ngIf",i.showSuccessMsg),t.xp6(),t.Q6J("ngIf",i.isOptedIn),t.xp6(),t.Q6J("formGroup",i.smsNotifForm),t.xp6(3),t.Q6J("ngClass",t.qbA(17,J,i.showInputError("mobile_no"),i.hasValue("mobile_no")&&i.smsNotifForm.get("mobile_no").valid,i.hasValue("mobile_no"),i.smsNotifForm.get("mobile_no").isActive,!i.isEditable&&i.isOptedIn)),t.xp6(2),t.Q6J("ngIf",!i.isEditable&&i.isOptedIn)("ngIfElse",e),t.xp6(5),t.Q6J("ngIf",i.showInputError("mobile_no")&&i.settingsSiteConfig.text_notifications.enable_error_icon&&i.isEditable),t.xp6(),t.Q6J("ngIf",!i.smsNotifForm.get("mobile_no").isActive&&!i.smsNotifForm.get("mobile_no").valid&&!i.showInputError("mobile_no")&&!i.hasValue("mobile_no")&&i.isOptedIn&&!i.isEditable),t.xp6(),t.Q6J("ngIf",i.hasValue("mobile_no")&&i.smsNotifForm.get("mobile_no").valid),t.xp6(2),t.Q6J("ngIf",i.showInputError("mobile_no")&&i.isEditable),t.xp6(6),t.hij(" I agree to receive transactional text messages from ",i.appSiteConfig.site_name," related to my orders, including confirmations, reminders, status updates, receipts, and support follow-ups. Message and data rates may apply. Message frequency varies. Reply HELP for help and 
1STOP to opt out. View our "),t.xp6(),t.Q6J("ngIf","new_tab"==i.settingsSiteConfig.text_notifications.action)("ngIfElse",l),t.xp6(4),t.hYB("href","",i.appSiteConfig.site_url,"/",i.settingsSiteConfig.text_notifications.privacy_link,"",t.LSH),t.xp6(3),t.Q6J("disabled",i.smsNotifForm.invalid),t.xp6(2),t.Q6J("ngIf",i.isSaving)}}function R(o,g){1&o&&t._UZ(0,"page-loader",40)}const w=[{path:"",component:(()=>{class o{constructor(e,l,i,h,x,z,j,G){this.customerService=e,this.ConfigManagerService=l,this.Router=i,this.AuthService=h,this.PopupContentModalService=x,this.AccessibilityService=z,this.csrfTokenService=j,this.DataLayerService=G,this.notifTypeOptIn="ALL",this.notifTypeOptOut="NS",this.isOptedIn=!1,this.isEditable=!1,this.fetchingSmsData=!1,this.isSaving=!1,this.errorMsgs={mobile_no:{required:"Phone is required.",minlength:"Phone is invalid."},consent:{required:"Please check this box if you want to proceed."}},this.csrfToken=null,this.csrfTokenFormName="settings-text-notif",this.showSuccessMsg=!1,this.successMsg="",this.appSiteConfig=this.ConfigManagerService.getConfig("app"),this.settingsSiteConfig=this.ConfigManagerService.getConfig("settings")}ngOnInit(){this.buildForm(),this.getCustomerData(),this.csrfTokenService.emitUnauthorized(!1),this.csrfTokenService.getToken(this.csrfTokenFormName).subscribe(e=>{this.csrfToken=e}),this.updateConsent(),this.smsNotifForm.get("mobile_no")?.valueChanges.subscribe(()=>{this.updateConsent()})}buildForm(){this.textNotificationLabel=this.settingsSiteConfig.text_notifications.content_label,this.smsNotifForm=new a.cw({sms_subscription_type_code:new a.NI(this.notifTypeOptIn,[(0,_.i)()]),mobile_no:new a.NI("",[a.kI.required,a.kI.maxLength(14),a.kI.minLength(14)]),consent:new a.N
1I(!1,a.kI.requiredTrue)})}getCustomerData(){this.fetchingSmsData=!0,this.customerService.getTextNotifications().subscribe(e=>{this.fetchingSmsData=!1,e.status&&(this.mobileNo=e.data.mobile_no,this.smsSubscriptionTypeCode=e.data.sms_subscription_type_code,(!this.smsSubscriptionTypeCode||"string"!=typeof this.smsSubscriptionTypeCode||this.smsSubscriptionTypeCode.startsWith('["'))&&(this.smsSubscriptionTypeCode=this.notifTypeOptIn),this.isOptedIn=this.mobileNo&&"y"==e.data.sms_subscription_flag&&this.smsSubscriptionTypeCode==this.notifTypeOptIn,this.smsNotifForm.patchValue({mobile_no:this.mobileNo,sms_subscription_type_code:this.smsSubscriptionTypeCode}),this.AccessibilityService.focusOnElement(".first-focus-element",!0),this.disableEdit())},()=>{this.fetchingSmsData=!1})}showInputError(e){return this.smsNotifForm.get(e).invalid&&this.smsNotifForm.get(e).touched}hasValue(e){return this.smsNotifForm.get(e).value}enableEdit(){this.showSuccessMsg=!1,this.smsNotifForm.patchValue({mobile_no:this.mobileNo,sms_subscription_type_code:this.smsSubscriptionTypeCode}),this.isEditable=!0}updateMobileNumber(){const e=this.smsNotifForm.value.mobile_no;if(e&&!e.match(/(0*[1-9]+0*)+/))this.smsNotifForm.patchValue({mobile_no:""});else{if(this.csrfTokenService.emitUnauthorized(!1),!this.csrfToken)return this.csrfTokenService.emitUnauthorized(!0),!1;this.isSaving=!0;const i={phone:e,notif_type_code:e?this.notifTypeOptIn:this.notifTypeOptOut,csrfToken:this.csrfToken,csrfTokenFormName:this.csrfTokenFormName};this.AuthService.isAuthenticated()||this.Router.navigate([this.ConfigManagerService.getConfig("routes").portal_client.text_notification]),this.DataLayerService.logDataLayerEvent({event:"Update_preferences_initiated",event_category:"Update_preferences",event_action:"Update_preferences",event_label:"Text Notifications"}),this.customerService.updateMobileNumber(i).subscribe(h=>{h.success&&(this.showSuccessMsg=!0,this.setSuccessMsg(),this.mobileNo=this.smsNotifForm.value.mobile_no,this.isSaving=!1,this.isOptedIn=!0,this.disableEdit(),this.DataLayerService.logDataLayerEvent({event:"Update_preferences_completed",event_category:"Update_preferences",event_action:"Update_preferences_completed",event_label:"Text Notifications"}))},h=>{this.isSaving=!1,403==h.status&&this.csrfTokenService.emitUnauthorized(!0)})}}disableEdit(){this.isEditable=!1,this.smsNotifForm.markAsUntouched(),this.smsNotifForm.patchValue({mobile_no:""})}showTermsModal(e){const l=typeof e.target.dataset<"u"?e.target.dataset:null;typeof l.url<"u"&&this.PopupContentModalService.openPopupModal(l)}onFieldFocus(e){this.isOptedIn||(this.isEditable=!0),this.showSuccessMsg=!1,this.smsNotifForm.get(e).isActive=!0}onFieldBlur(e){this.isOptedIn||(this.isEditable=!0),this.hasValue(e)||this.disableEdit(),this.smsNotifForm.get(e).isActive=!1}setSuccessMsg(){this.successMsg="Success! We\u2019ll send you text alerts with the latest updates on your order.",this.isOptedIn&&(this.successMsg="Success! We have updated your mobile number and send you text alerts with the latest updates on your order.")}updateConsent(){const e=this.isOptedIn||this.hasValue("mobile_no")&&this.smsNotifForm.get("mobile_no").valid;this.smsNotifForm.get("consent").setValue(e)}static{this.\u0275fac=function(l){return new(l||o)(t.Y36(u.v),t.Y36(f.Q),t.Y36(p.F0),t.Y36(r.e),t.Y36(c.Y),t.Y36(m.A),t.Y36(b.A),t.Y36(T.n))}}static{this.\u0275cmp=t.Xpm({type:o,selectors:[["text-notifications"]],viewQuery:function(l,i){if(1&l&&t.Gf(I,5),2&l){let h;t.iGM(h=t.CRH())&&(i.mobileNumber=h.first)}},decls:6,vars:2,consts:[[1,"page-text-notifications-container"],["tabindex","0",1,"text-notification-label","first-focus-element"],[4,"ngIf","ngIfElse"],["loadingTpl",""],["tabindex","0","role","alert","class","account-login-info-alert account-alert-success",4,"ngIf"],["tabindex","-1","class","opted-in-container first-focus-element",4,"ngIf"],["autocomplete","off",1,"text-notifications-form-container",3,"formGroup","submit"],["type","hidden","formControlName","sms_subscription_type_code"],[1,"account-form-group","form-group",3,"ngClass"],["for","mobile_no",1,"account-input-label"],["isEditableTpl",""],["type","tel","number-only","","phone-mask-input","","aria-label","mobile number","id","mobile_no","name","mobile_no","maxlength","14","placeholder","","formControlName","mobile_no","aria-describedby","mobile_no_error_msg",1,"account-form-input","form-control","mobile-no",3,"focus","blur"],["mobileNumber",""],["class","input-icon-error input-icon fa fa-exclamation-triangle",4,"ngIf"],["class","input-icon-edit input-icon fa fa-pencil",3,"click",4,"ngIf"],["class","input-icon-valid input-icon fa fa-check-circle",4,"ngIf"],["id","mobile_no_error_msg",1,"input-error-container"],[3,"inputErrors","errorDefs",4,"ngIf"],[1,"consent-container"],[1,"account-checkbox"],["type","checkbox","formControlName","consent","name","consent",1,"checkbox-input"],[1,"checkbox-toggle"],[1,"checkbox-label"],["termsModal",""],["target","_blank",1,"account-primary-link",3,"href"],["type","submit",1,"account-btn-primary","save-phone-btn",3,"disabled"],["class","fa fa-spinner fa-spin fa-fw",4,"ngIf"],["tabindex","0","role","alert",1,"account-login-info-alert","account-alert-success"],[1,"account-alert-icon"],[1,"account-i-check"],[1,"account-alert-title"],["tabindex","-1",1,"opted-in-container","first-focus-element"],["tabindex","0",1,"opted-in-text"],[1,"input-icon-error","input-icon","fa","fa-exclamation-triangle"],[1,"input-icon-edit","input-icon","fa","fa-pencil",3,"click"],[1,"input-icon-valid","input-icon","fa","fa-check-circle"],[3,"inputErrors","errorDefs"],["target","_blank",1,"account-primary-link",3,"href","innerHTML"],["href","javascript:void(0)",1,"account-primary-link",3,"innerHTML","click"],[1,"fa","fa-spinner","fa-spin","fa-fw"],[1,"account-loader"]],template:function(l,i){if(1&l&&(t.TgZ(0,"div",0)(1,"h3",1),t._uU(2,"Receive Text Updates for My Order"),t.qZA(),t.YNc(3,Y,34,23,"ng-container",2)(4,R,1,0,"ng-template",null,3,t.W1O),t.qZA()),2&l){const h=t.MAs(5);t.xp6(3),t.Q6J("ngIf",!i.fetchingSmsData)("ngIfElse",h)}},dependencies:[s.mk,s.O5,N.T,C.f,y.Y,M,a._Y,a.Fj,a.Wl,a.JJ,a.JL,a.nD,a.sg,a.u,E.g],encapsulation:2})}}return o}
1)()}];let K=(()=>{class o{static{this.\u0275fac=function(l){return new(l||o)}}static{this.\u0275mod=t.oAB({type:o})}static{this.\u0275inj=t.cJS({imports:[p.Bz.forChild(w),p.Bz]})}}return o})();var W=n(20434),Q=n(72786),V=n(38168);let H=(()=>{class o{static{this.\u0275fac=function(l){return new(l||o)}}static{this.\u0275mod=t.oAB({type:o})}static{this.\u0275inj=t.cJS({imports:[s.ez,W.b,K,a.u5,a.UX,Q.zk.forRoot(),V.r]})}}return o})()},71928:(v,d,n)=>{n.d(d,{H:()=>t});var s=n(54699),p=n(40435),a=n(66745),_=n(99759);function t(f=0,r,c){let m=-1;return(0,a.k)(r)?m=Number(r)<1?1:Number(r):(0,_.K)(r)&&(c=r),(0,_.K)(c)||(c=p.P),new s.y(b=>{const T=(0,a.k)(f)?f:+f-c.now();return c.schedule(u,T,{index:0,period:m,subscriber:b})})}function u(f){const{index:r,period:c,subscriber:m}=f;if(m.next(r),!m.closed){if(-1===c)return m.complete();f.index=r+1,this.schedule(f,c)}}},40435:(v,d,n)=>{n.d(d,{P:()=>_});var s=n(61618);const _=new(n(91781).v)(s.o)},66745:(v,d,n)=>{n.d(d,{k:()=>p});var s=n(11280);function p(a){return!(0,s.k)(a)&&a-parseFloat(a)+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.