PageSourceSearch

https://www.matboardandmore.com/chunk-2TNHPYKL.js

js matboardandmore.com collected 2026-10-02 12:33:29 UTC 8,366 bytes, 3 lines download raw bytes

1import{$d as K,Aa as g,Ba as u,Bd as H,F as j,Ga as I,Gc as G,Ha as a,Hc as X,I as h,Ia as s,Ja as D,Le as se,M as b,N as S,Qa as U,R as k,Sa as w,T as L,Ua as V,We as re,Ya as O,Za as P,Zd as J,_a as A,_b as f,aa as T,ae as $,be as ee,ce as te,db as c,e as C,fb as B,fe as ie,ga as d,he as ne,j as R,jb as _,jf as le,kb as y,lb as v,le as ae,ma as p,oc as F,pa as N,pe as oe,rc as W,rf as ce,sc as z,sf as de,uc as q,x,xa as E,xc as Q,yc as Z,zd as Y}from"./chunk-CIBUGQLF.js";var M=class i{ngZone;window;document;platformId;applicationRef;userChangedSubRef;appStableSubRef;static chatStatusChanged=new R(1);currentChatState;initializationStarted=!1;constructor(n,t,o,e,l){this.ngZone=n,this.window=t,this.document=o,this.platformId=e,this.applicationRef=l,f(this.platformId)&&(this.window.jivo_onLoadCallback||(this.appStableSubRef=l.isStable.pipe(x(r=>r)).subscribe(()=>{setTimeout(()=>{this.initialize()},5e3)}),this.window.jivo_onLoadCallback=()=>{if(this.toggleVisibility("hidden"),this.window.jivo_api){let r=this.window.jivo_api.chatMode();r!==this.currentChatState&&(this.currentChatState=r,this.ngZone.run(()=>{i.chatStatusChanged.next(r==="online"?"AVAILABLE":"UNAVAILABLE")}))}}),this.window.jivo_onClose||(this.window.jivo_onClose=()=>{this.toggleVisibility("hidden")}),this.userChangedSubRef=le.currentUserChanged.subscribe(r=>{this.identify({email:r?.email,name:r?.fullname})}))}initialize(){if(f(this.platformId)&&!this.initializationStarted){this.initializationStarted=!0;let n=document.createElement("script");n.type="text/javascript",n.src="//code.jivosite.com/widget/7cVwDBQlWN",n.defer=!0,document.head.appendChild(n),f(this.platformId)&&this.applicationRef.isStable.pipe(x(t=>t)).subscribe(()=>{setTimeout(()=>{this.window.jivo_api||this.ngZone.run(()=>{i.chatStatusChanged.next("LOAD_FAILED")})},2e3)})}}toggleVisibility(n){let t=this.document.getElementsByTagName("jdiv");t[0]&&(t[0].className=n=="hidden"?"hide-chat":"show-chat")}identify(n=null){f(this.platformId)&&this.window.jivo_api&&this.window.jivo_api.setContactInfo(n)}track(n,t){f(this.platformId)&&this.window.jivo_api&&this.window.jivo_api.setCustomData([{title:n,content:t,link:"https://www.matboardandmore.com/something/design"}])}startChat(){f(this.platformId)&&this.window.jivo_api&&(this.toggleVisibility("visible"),this.window.jivo_api.open())}getRecordInfo(){return C(this,null,function*(){return new Promise((n,t)=>{let o=this.window.jivo_api.getVisitorNumber(function(e,l){e&&t(e),n({recordingId:l})});o.result==="error"&&t(o.reason)})})}destroy(){this.userChangedSubRef&&!this.userChangedSubRef.closed&&this.userChangedSubRef.unsubscribe(),this.appStableSubRef&&!this.appStableSubRef.closed&&this.appStableSubRef.unsubscribe()}static \u0275fac=function(t){return new(t||i)(h(L),h(se),h(k),h(T),h(E))};static \u0275prov=j({token:i,factory:i.\u0275fac,providedIn:"root"})};var ue=["email"];function fe(i,n){i&1&&(a(0,"h2"),c(1," Live Chat Failed to Load! "),s())}function he(i,n){i&1&&(a(0,"h2"),c(1," Sorry We Missed You! "),s())}function pe(i,n){i&1&&(a(0,"p"),c(1," Chat can fail to load if you have an ad blocker or antivirus that is mistaking our chat bot for something malicious. If you do, please disable it and try again. "),s())}function Ce(i,n){i&1&&(a(0,"p"),c(1," Meanwhile, you can use the email form below to contact us. "),s())}function be(i,n){if(i&1&&(a(0,"p"),c(1),s()),i&2){let t=V();d(),B(" We are available Monday to Friday, ",t.dynamicTextBlocks==null?null:t.dynamicTextBlocks.hours," EST. Sorry we weren't available for chat but we will get back to your e-mail right away. ")}}function Se(i,n){i&1&&(a(0,"strong"),c(1,"Note:"),s(),c(2," A link to your design will automatically be included with your message "))}var Ve=(()=>{class i{chatService;cmsService;contactUsService;notificationService;dialogRef;dynamicTextBlocks;message={};sending=!1;chatLoadFailed=!1;sendMessageSubRef;constructor(t,o,e,l,r){this.chatService=t,this.cmsService=o,this.contactUsService=e,this.notificationService=l,this.dialogRef=r}email;ngOnInit(){this.cmsService.getDynamicTextBlocks().then(t=>{this.dynamicTextBlocks=t})}sendMessage(){return C(this,null,function*(){if(!this.message.Address||!this.message.Name||!this.message.Message)this.notificationService.createNotification("Please fill out all required fields.","error");else if(this.email&&this.email.errors&&this.email.errors.email)this.notificationService.createNotification("Please enter a valid email address.","error");else{this.sending=!0,this.message.Subject="Away Message";let t=yield this.chatService.getRecordInfo();t!==null&&(this.message.LOLiveRecordingId=t.recordingId,this.message.LOSiteId=t.siteId),this.sendMessageSubRef=this.contactUsService.sendMessage(this.message).subscribe({next:o=>
1{o===!0&&(this.notificationService.createNotification("Thank you for contact us! Someone will be in touch shortly.","success"),this.dialogRef.close())},error:o=>{this.notificationService.createNotification("Something went wrong sending your message. Please try again.","error"),this.dialogRef.close()}})}})}cancel(){this.dialogRef.close()}ngOnDestroy(){this.sendMessageSubRef&&!this.sendMessageSubRef.closed&&this.sendMessageSubRef.unsubscribe()}static \u0275fac=function(o){return new(o||i)(p(M),p(re),p(de),p(ce),p(J))};static \u0275cmp=N({type:i,selectors:[["mbnm-contact-us-dialog"]],viewQuery:function(o,e){if(o&1&&O(ue,5),o&2){let l;P(l=A())&&(e.email=l.first)}},standalone:!1,decls:30,vars:11,consts:[["email","ngModel"],["mat-dialog-title","",1,"fx-layout-row","fx-align--x-center"],[1,"fx-flex-grow"],["mat-icon-button","","mat-dialog-close","","tabindex","-1"],["svgIcon","x"],[3,"submit"],["matInput","","name","Name","type","text","required","true",3,"ngModelChange","ngModel"],["matInput","","name","Address","type","email","required","true",3,"ngModelChange","email","ngModel"],[1,"message"],["matInput","","name","Message","required","true",3,"ngModelChange","ngModel"],[1,"fx-layout-row","fx-align--space-between-x"],["mat-flat-button","","color","primary",3,"click","disabled"],["mat-flat-button","","color","secondary",3,"click"]],template:function(o,e){if(o&1){let l=U();a(0,"div",1),g(1,fe,2,0,"h2"),g(2,he,2,0,"h2"),D(3,"div",2),a(4,"button",3),D(5,"mat-icon",4),s()(),a(6,"mat-dialog-content"),g(7,pe,2,0,"p"),g(8,Ce,2,0,"p"),g(9,be,2,1,"p"),a(10,"form",5),w("submit",function(){return e.sendMessage()}),a(11,"mat-form-field")(12,"mat-label"),c(13,"your name"),s(),a(14,"input",6),v("ngModelChange",function(m){return b(l),y(e.message.Name,m)||(e.message.Name=m),S(m)}),s()(),a(15,"mat-form-field")(16,"mat-label"),c(17,"your email"),s(),a(18,"input",7,0),v("ngModelChange",function(m){return b(l),y(e.message.Address,m)||(e.message.Address=m),S(m)}),s()(),a(20,"mat-form-field",8)(21,"mat-label"),c(22,"message"),s(),a(23,"textarea",9),v("ngModelChange",function(m){return b(l),y(e.message.Message,m)||(e.message.Message=m),S(m)}),s()(),g(24,Se,3,0),s()(),a(25,"mat-dialog-actions",10)(26,"button",11),w("click",function(){return e.sendMessage()}),c(27," Send Message "),s(),a(28,"button",12),w("click",function(){return e.cancel()}),c(29,"Cancel"),s()()}o&2&&(d(),u(e.chatLoadFailed?1:-1),d(),u(e.chatLoadFailed?-1:2),d(5),u(e.chatLoadFailed?7:-1),d(),u(e.chatLoadFailed?8:-1),d(),u(e.chatLoadFailed?-1:9),d(5),_("ngModel",e.message.Name),d(4),I("email",!0),_("ngModel",e.message.Address),d(5),_("ngModel",e.message.Message),d(),u(e.message.DesignReference?24:-1),d(2),I("disabled",e.sending))},dependencies:[Z,F,W,z,G,X,Q,q,H,Y,ie,K,$,te,ee,oe,ae,ne],styles:[`h2[_ngcontent-%COMP%]{white-space:nowrap}form[_ngcontent-%COMP%]{margin-top:20px}form[_ngcontent-%COMP%]   .mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}form[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{background:linear-gradient(to bottom,#979797 1px,transparent 1px);background-size:100% 41px;background-position:0 40px;line-height:40px;margin-bottom:-7px;resize:none;min-height:120px}form[_ngcontent-%COMP%]   .message.mat-focused[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{background:linear-gradient(to bottom,#4a90e2 1px,transparent 1px);background-size:100% 41px;background-position:0 40px;margin-bottom:-7px;resize:none}
2/*# sourceMappingURL=contact-us-dialog.component-XPO3ODLR.css.map */`]})}return i})();export{M as a,Ve as b};
3//# sourceMappingURL=chunk-2TNHPYKL.js.map

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.