1import{a as y}from"./chunk-RYBKRSDN.js";import{a as P}from"./chunk-5XFC5N3E.js";import{a as S}from"./chunk-SLPUQUZR.js";import"./chunk-VRNI3EG7.js";import{f as L}from"./chunk-AHEY7ZSI.js";import"./chunk-VD7BPICQ.js";import{a as j}from"./chunk-JSQLBCPQ.js";import{c as U,d as s,e as V,f as G,g as Y,i as p,k as O,m as Q,n as W,t as B,w as H}from"./chunk-FRLPC7US.js";import{a as q}from"./chunk-ZY3B5BDG.js";import{b as D}from"./chunk-EYNTA7Y3.js";import{A,w as N}from"./chunk-6MCFLBZG.js";import{Hb as d,Ib as c,Nb as g,Ob as e,Pb as t,Qb as l,Ub as R,Yb as M,_a as o,_b as v,cc as T,da as x,dc as k,ec as I,ia as C,ja as _,jc as u,lc as i,mc as f,oa as E,ob as w,sa as h,yc as F}from"./chunk-XHRUROUP.js";var K=(a,r)=>[a,r];function z(a,r){if(a&1&&(e(0,"div",24),l(1,"i",37),e(2,"span"),i(3),t()()),a&2){let n=v();o(3),f(n.successMessage())}}function X(a,r){if(a&1&&(e(0,"div",25),l(1,"i",38),e(2,"span"),i(3),t()()),a&2){let n=v();o(3),f(n.errorMessage())}}function Z(a,r){a&1&&(e(0,"div",44),i(1,"First name must be between 3 and 25 characters."),t())}function $(a,r){a&1&&(e(0,"div",44),i(1,"Last name must be between 3 and 25 characters."),t())}function ee(a,r){a&1&&(e(0,"div",44),i(1,"Company name is required."),t())}function te(a,r){a&1&&(e(0,"div",44),i(1,"A valid email address is required."),t())}function ie(a,r){a&1&&(e(0,"div",44),i(1,"Telephone is required."),t())}function ne(a,r){a&1&&(e(0,"div",44),i(1,"Please enter at least 20 characters."),t())}function ae(a,r){a&1&&(e(0,"div",53),i(1,"Please prove that you are not a robot."),t())}function re(a,r){a&1&&(e(0,"output",55)(1,"span",56),i(2,"Sending..."),t()(),i(3," Sending... "))}function oe(a,r){a&1&&i(0," Please Contact Me With a Quote ")}function le(a,r){if(a&1){let n=R();e(0,"form",39),M("ngSubmit",function(){C(n);let b=v();return _(b.onSubmit())}),l(1,"input",40),e(2,"div",41)(3,"div",42),l(4,"input",43),d(5,Z,2,0,"div",44),t(),e(6,"div",45),l(7,"input",46),d(8,$,2,0,"div",44),t()(),e(9,"div",30),l(10,"input",47),d(11,ee,2,0,"div",44),t(),e(12,"div",30),l(13,"input",48),d(14,te,2,0,"div",44),t(),e(15,"div",30),l(16,"input",49),d(17,ie,2,0,"div",44),t(),e(18,"div",30),l(19,"textarea",50),d(20,ne,2,0,"div",44),t(),e(21,"div",51),l(22,"app-recaptcha-field",52),d(23,ae,2,0,"div",53),t(),e(24,"button",54),d(25,re,4,0)(26,oe,1,0),t()()}if(a&2){let n=v();g("formGroup",n.registrationForm),o(4),u("is-invalid",n.isInvalid("fname")),o(),c(n.isInvalid("fname")?5:-1),o(2),u("is-invalid",n.isInvalid("lname")),o(),c(n.isInvalid("lname")?8:-1),o(2),u("is-invalid",n.isInvalid("company")),o(),c(n.isInvalid("company")?11:-1),o(2),u("is-invalid",n.isInvalid("email")),o(),c(n.isInvalid("email")?14:-1),o(2),u("is-invalid",n.isInvalid("phone")),o(),c(n.isInvalid("phone")?17:-1),o(2),u("is-invalid",n.isInvalid("helpMessage")),o(),c(n.isInvalid("helpMessage")?20:-1),o(2),g("control",n.registrationForm.controls.recaptchaToken),o(),c(n.isInvalid("recaptchaToken")?23:-1),o(),g("disabled",n.registrationForm.invalid||n.submitting()),o(),c(n.submitting()?25:26)}}var J=class a{AppConstants=y;UrlElements=P;phoneNumber=h(y.internationalPhone);submitting=h(!1);submitted=h(!1);successMessage=h("");errorMessage=h("");registrationForm=new Y({fname:new p("",[s.required,s.minLength(3),s.maxLength(25)]),lname:new p("",[s.required,s.minLength(3),s.maxLength(25)]),company:new p("",[s.required,s.minLength(2),s.maxLength(300)]),email:new p("",[s.required,s.email]),phone:new p("",[s.required,s.minLength(5),s.maxLength(20)]),helpMessage:new p("",[s.required,s.minLength(20),s.maxLength(1e3)]),recaptchaToken:new p("",s.required)});recaptcha;http=x(A);csrf=x(j);destroyRef=x(E);isInvalid(r){let n=this.registrationForm.controls[r];return n.invalid&&(n.touched||this.submitted())}onSubmit(){if(this.submitting())return;if(this.submitted.set(!0),this.registrationForm.invalid){this.registrationForm.markAllAsTouched(),this.errorMessage.set("Please complete all required fields.");return}this.submitting.set(!0),this.errorMessage.set(""),this.successMessage.set("");let r=this.registrationForm.value,n=new N().set("fname",r.fname??"").set("lname",r.lname??"").set("company",r.company??"").set("email",r.email??"").set("phone",r.phone??"").set("helpMessage",r.helpMessage??"").set("g-recaptcha-response",r.recaptchaToken??"").set("newSignup","true").set("vstoken",this.csrf.token());this.http.post(D.getUrl("register/submit"),n,{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).pipe(q(this.destroyRef)).subscribe({next:m=>
1{m.status==="SUCCESS"?(this.successMessage.set("Thank you. We have received your request and will be in contact shortly."),this.registrationForm.reset(),this.submitted.set(!1),this.recaptcha?.reset()):(this.errorMessage.set(m.message??"An error occurred. Please try again."),this.recaptcha?.reset()),this.submitting.set(!1)},error:()=>{this.errorMessage.set("An error has occurred while submitting your registration details. Please try submitting again. If the problem persists please contact us."),this.recaptcha?.reset(),this.submitting.set(!1)}})}static \u0275fac=function(n){return new(n||a)};static \u0275cmp=w({type:a,selectors:[["app-register"]],viewQuery:function(n,m){if(n&1&&T(S,5),n&2){let b;k(b=I())&&(m.recaptcha=b.first)}},decls:109,vars:9,consts:[[1,"full-width-stripe","background-indigo-pale"],[1,"container","element-padding-y"],[1,"category-path","text-uppercase","font-main-b"],[1,"title-l"],[1,"fs-5-fluid","mt-3"],[1,"has-line-right","text-uppercase","mb-5"],[1,"row","g-4"],[1,"col-lg-8"],[1,"row","g-4","mb-4"],[1,"col-md-6"],[1,"plate","bg-pale","text-center","h-100"],[1,"bi","bi-telephone","fs-1","secondary"],[1,"secondary","mt-3"],[1,"mt-2"],[1,"secondary","mt-4"],[1,"plate","bg-secondary","h-100"],[1,"bi","bi-chat-dots-fill","fs-1","white"],[1,"white","mt-3"],[1,"white","mt-2"],[1,"white","mt-4"],[1,"btn","btn-outline-primary","mt-3",3,"routerLink"],[1,"plate","bg-pale"],[1,"text-center","mb-4"],[1,"bi","bi-envelope","fs-1","secondary"],["role","alert",1,"alert","alert-success","d-flex","align-items-center","gap-2"],["role","alert",1,"alert","alert-danger","d-flex","align-items-center","gap-2"],["id","RegistrationForm",3,"formGroup"],[1,"col-lg-4"],[1,"mt-3"],[1,"list-unstyled","mt-4"],[1,"mb-3"],[1,"bi","bi-check-lg","text-success","me-2"],[1,"element-padding-y","border-top"],[1,"col-sm-6","col-lg-3"],[1,"plate","bg-pale","h-100"],[1,"secondary","mb-3"],[1,"font-main-b","secondary","mb-0"],[1,"bi","bi-check-circle-fill"],[1,"bi","bi-exclamation-triangle-fill"],["id","RegistrationForm",3,"ngSubmit","formGroup"],["type","hidden","name","newSignup","value","true"],[1,"row","mb-3"],[1,"col-sm-6","mb-3","mb-sm-0"],["type","text","placeholder","First name","formControlName","fname","maxlength","25",1,"form-control"],[1,"invalid-feedback"],[1,"col-sm-6"],["type","text","placeholder","Last name","formControlName","lname","maxlength","25",1,"form-control"],["type","text","placeholder","Your Company","formControlName","company","maxlength","300",1,"form-control"],["type","email","placeholder","Email Address","formControlName","email","id","email","maxlength","100",1,"form-control"],["type","tel","placeholder","Telephone","formControlName","phone","maxlength","20",1,"form-control"],["placeholder","Tell us how we can help you today (min. 20 characters)","rows","3","formControlName","helpMessage","maxlength","1000",1,"form-control"],[1,"mb-3","p-3","rounded-3","bg-white"],[3,"control"],[1,"text-danger","small","mt-2"],["type","submit","id","sendButton",1,"btn","btn-primary","w-100",3,"disabled"],[1,"spinner-border","spinner-border-sm","me-2"],[1,"visually-hidden"]],template:function(n,m){n&1&&(e(0,"div",0)(1,"div",1)(2,"p",2),i(3,"Registration"),t(),e(4,"h1",3),i(5,"Join Vision-net Today"),t(),e(6,"p",4),i(7," We offer the most competitive packages available on both pay per click searches and company-wide annual usage plans. Trusted by over 100,000 registered users. "),t()()(),e(8,"div",1)(9,"h2",5),i(10,"Two Easy Ways To Join"),t(),e(11,"div",6)(12,"div",7)(13,"div",8)(14,"div",9)(15,"div",10),l(16,"i",11),e(17,"h3",12),i(18,"Call Us"),t(),e(19,"p",13),i(20," It's good to chat! Give us a call today and let us tailor a package to your business. You'll be surprised how much we can help you get the best deal. "),t(),e(21,"h2",14),i(22),t()()(),e(23,"div",9)(24,"div",15),l(25,"i",16),e(26,"h3",17),i(27,"Ask Us A Question"),t(),e(28,"p",18),i(29," More people choose Vision-net over any other search service. Ask us why \u2014 we'd love to tell you. "),t(),e(30,"h2",19),i(31),t(),e(32,"a",20),i(33,"Contact Us"),t()()()(),e(34,"div",21)(35,"div",22),l(36,"i",23),e(37,"h3",12),i(38,"Email Sales"),t(),e(39,"p",13),i(40," Don't want to talk to us just yet? That's okay. Reach out to the Vision-net sales team below for a competitive Business Information package. "),t()(),d(41,z,4,1,"div",24),d(42,X,4,1,"div",25),d(43,le,27,23,"form",26),t()(),e(44,"div",27)(45,"div",21)(46,"p",2),i(47,"Why Open an A
1ccount?"),t(),e(48,"p",28),i(49," Fast, accurate and confidential access to company, business, director and credit information. "),t(),e(50,"ul",29)(51,"li",30),l(52,"i",31),i(53,"Make more informed decisions "),t(),e(54,"li",30),l(55,"i",31),i(56,"Protect against bad debt "),t(),e(57,"li",30),l(58,"i",31),i(59,"Reduce invoice payment times "),t(),e(60,"li",30),l(61,"i",31),i(62,"Check your competitors "),t(),e(63,"li",30),l(64,"i",31),i(65,"Run due diligence checks "),t(),e(66,"li",30),l(67,"i",31),i(68,"Track any company "),t(),e(69,"li",30),l(70,"i",31),i(71,"Acquire healthy new leads "),t(),e(72,"li",30),l(73,"i",31),i(74,"Minimise risk, maximise return "),t()()()(),e(75,"div",32)(76,"div",6)(77,"div",33)(78,"div",34)(79,"h4",35),i(80,"RealTime"),t(),e(81,"p",30),i(82,"Our Real-time updates mean our data is 24 hours ahead of others."),t(),e(83,"p",36),i(84,"You're Ahead Of Others"),t()()(),e(85,"div",33)(86,"div",34)(87,"h4",35),i(88,"80%"),t(),e(89,"p",30),i(90,"We warn our users of over 80% of insolvencies months before they occur."),t(),e(91,"p",36),i(92,"You're First To Know"),t()()(),e(93,"div",33)(94,"div",34)(95,"h4",35),i(96,"Rated #1"),t(),e(97,"p",30),i(98,"Rated the #1 business intelligence and credit risk agency with over 100,000 registered users."),t(),e(99,"p",36),i(100,"You're In Great Company"),t()()(),e(101,"div",33)(102,"div",34)(103,"h4",35),i(104,"34 Years"),t(),e(105,"p",30),i(106,"In business and trusted by top media, banks, state, semi-state, and professional firms."),t(),e(107,"p",36),i(108,"You're In Safe Hands"),t()()()()()()()),n&2&&(o(22),f(m.phoneNumber()),o(9),f(m.phoneNumber()),o(),g("routerLink",F(6,K,m.UrlElements.MAIN,m.UrlElements.CONTACT_US)),o(9),c(m.successMessage()?41:-1),o(),c(m.errorMessage()?42:-1),o(),c(m.successMessage()?-1:43))},dependencies:[H,O,U,V,G,B,Q,W,L,S],encapsulation:2,changeDetection:0})};export{J as Register};
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.