PageSourceSearch

https://nbmedical.com/chunk-RE6P6VRQ.js

js nbmedical.com collected 2026-10-02 07:02:55 UTC 5,268 bytes, 1 lines download raw bytes

1import{a as T}from"./chunk-WYLCGNV5.js";import{m as w}from"./chunk-S33CAPPZ.js";import"./chunk-2K2V3AF7.js";import"./chunk-C6TWE4FZ.js";import"./chunk-Q2YLND27.js";import"./chunk-NU4ZUM7K.js";import"./chunk-NLZC42V6.js";import"./chunk-ZBQW7NJG.js";import"./chunk-ZUSG72XP.js";import"./chunk-HJWJPZ5W.js";import{A as q,B as A,I as M,K as N,a as h,b as y,p as E,r as u,s as F,t as _,x}from"./chunk-LQY2VBIU.js";import"./chunk-WRBQWUEI.js";import{n as g}from"./chunk-LRSFZQSP.js";import{Ab as i,Bb as n,Cb as r,Dd as S,Nb as C,Ra as a,U as b,Z as m,ac as o,eb as v,sb as c,ub as d,zb as f}from"./chunk-IXJZIWF6.js";import"./chunk-IZQOVDKO.js";import"./chunk-6IZLXKZM.js";var U=(()=>{class e{constructor(){this.requestService=m(S)}sendContactEmail(l){return this.requestService.publicCommand("SendContactEmail",{email:l})}static{this.\u0275fac=function(s){return new(s||e)}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function P(e,p){e&1&&(i(0,"div",6),o(1,"Name is required"),n())}function j(e,p){e&1&&(i(0,"div",6),o(1,"Email is required"),n())}function D(e,p){e&1&&(i(0,"div",6),o(1,"Email is not valid"),n())}function I(e,p){e&1&&(i(0,"div",6),o(1,"Message is required"),n())}function k(e,p){e&1&&(i(0,"div",6),o(1,"Message must be at least 10 characters"),n())}var ee=(()=>{class e{constructor(){this.formBuilder=m(M),this.contactService=m(U),this.amplitudeService=m(h),this.router=m(g),this.submitted=!1,this.contactForm=this.formBuilder.nonNullable.group({name:["",[u.required]],emailAddress:["",[u.required,u.email]],message:["",[u.required,u.minLength(10)]]})}onSubmit(){this.submitted=!0,this.contactForm.valid&&this.contactService.sendContactEmail({name:this.contactForm.value.name,emailAddress:this.contactForm.value.emailAddress,message:this.contactForm.value.message}).subscribe(l=>{l?(this.amplitudeService.track(y.SupportRequestSubmitted,{"support channel":"web-form"}),this.router.navigate(["contact-us/success"])):this.router.navigate(["contact-us/fail"])})}static{this.\u0275fac=function(s){return new(s||e)}}static{this.\u0275cmp=v({type:e,selectors:[["nbm-contact-us"]],decls:46,vars:9,consts:[[1,"text-center","mb-3"],[1,"row","justify-content-center","mt-4"],[1,"col-lg-7","col-11","mb-4","mb-lg-2","p-3","shadow","border"],[1,"text-center"],[3,"ngSubmit","formGroup"],["type","text","formControlName","name","id","name","placeholder","Your name *",1,"form-control","mb-3"],[1,"validation-error"],["type","email","formControlName","emailAddress","id","emailAddress","placeholder","Your Email Address *",1,"form-control","mb-3"],["formControlName","message","id","message","placeholder","Message",1,"form-control","mb-3"],[1,"text-center","text-lg-end"],["type","submit",1,"btn","btn-success",3,"disabled"],[1,"row","justify-content-center","mt-lg-5","mt-3","text-center","mb-5"],[1,"col-lg-3","col-6"],[1,"icon-address-card","icon-4x","mb-3"],[1,"icon-envelope-square","icon-4x"],["href","mailto:[email protected]"],[1,"icon-phone-square","icon-4x"],["href","tel:+441916031872"],[1,"col-lg-3","mt-3","mt-lg-0"],["altText","NB Medical on map",3,"latitude","longitude"]],template:function(s,t){s&1&&(i(0,"nbm-site-page")(1,"h2",0),o(2,"We are always happy to hear from you!"),n(),i(3,"div",1)(4,"div",2)(5,"p",3),o(6,"Fill in this form and a member of our team will respond to you as soon as possible."),n(),i(7,"form",4),C("ngSubmit",function(){return t.onSubmit()}),i(8,"div"),r(9,"input",5),c(10,P,2,0,"div",6),r(11,"input",7),c(12,j,2,0,"div",6),c(13,D,2,0,"div",6),r(14,"textarea",8),c(15,I,2,0,"div",6),c(16,k,2,0,"div",6),i(17,"div",9)(18,"button",10),o(19,"Submit"),n()()()()()(),i(20,"div",11)(21,"div",12),r(22,"p",13),i(23,"address")(24,"h6"),o(25,"NB Medical Education"),n(),o(26," Unit 1 Witney Way"),r(27,"br"),o(28,"Boldon Business Park"),r(29,"br"),o(30," Boldon"),r(31,"br"),o(32,"Tyne & Wear"),r(33,"br"),o(34,"NE35 9PE "),n()(),i(35,"div",12),r(36,"p",14),i(37,"p")(38,"a",15),o(39," [email protected] "),n()(),r(40,"p",16),i(41,"p")(42,"a",17),o(43," +44 (0)191 603 1872"),n()()(),i(44,"div",18),r(45,"nbm-map-display",19),n()()()),s&2&&(a(7),f("formGroup",t.contactForm),a(3),d(t.submitted&&(t.contactForm.controls.name.errors!=null&&t.contactForm.controls.name.errors.required)?10:-1),a(2),d(t.submitted&&(t.contactForm.controls.emailAddress.errors!=null&&t.contactForm.controls.emailAddress.errors.required)?12:-1),a(),d(t.submitted&&(t.contactForm.controls.emailAddress.errors!=null&&t.contactForm.controls.emailAddress.errors.email)?13:-1),a(2),d(t.submitted&&(t.contactForm.controls.message.errors!=null&&t.contactForm.controls.message.errors.required)?15:-1),a(),d(t.submitted&&(t.contactForm.controls.message.errors!=null&&t.contactForm.controls.message.errors.minlength)?16:-1),a(2),f("disabled",t.submitted),a(27),f("latitude",54.9438291)("longitude",-1.4709327))},dependencies:[N,x,E,F,_,A,q,w,T],styles:[".fbIcon[_ngcontent-%COMP%]{color:#4c6ef5}.twitterIcon[_ngcontent-%COMP%]{color:#1da1f2}ul[_ngcontent-%COMP%]{list-style:none}.validation-error[_ngcontent-%COMP%]{background-color:#f006;color:#fff;font-size:.875rem;border:1px solid red;padding:.5em;border-radius:.25em;margin-left:auto;margin-bottom:.5rem}"]})}}return e})();export{ee as ContactUsComponent};

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.