1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},s=(new e.Error).stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="da204bbd-727b-4a07-894d-a5a9c8ce05e3",e._sentryDebugIdIdentifier="sentry-dbid-da204bbd-727b-4a07-894d-a5a9c8ce05e3")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[787],{1628:(e,s)=>{"use strict";var t;!function(e){e.Civilian="civilian",e.Dependent="dependent",e.Employee="employee",e.Veteran="veteran"}(t||(t={})),s.A=t},2510:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>y});var a=t(6029),r=t(7328),i=t.n(r),n=t(6971),l=t(5729),o=t(1492),d=t(6601),c=t(3396),h=t(7256),p=t(2619),u=t(8103),m=t(1628),g=t(1407),w=t(4092),x=t(6842);let b=[{key:m.A.Veteran,label:"Veteran"},{key:m.A.Dependent,label:"Dependent"},{key:m.A.Civilian,label:"Civilian"}];class C extends l.Component{togglePasswordVisibility(e){return!0===e?this.setState({showPassword:!1}):this.setState({showPassword:!0})}togglePasswordConfirmVisibility(e){return!0===e?this.setState({showPasswordConfirmation:!1}):this.setState({showPasswordConfirmation:!0})}async submitAPICall(e){return await (0,g.A)({method:"post",url:"".concat("https://api.veterandb.com/v1","/account/register/"),data:e}).then(()=>{window.setTimeout(()=>{location.assign(this.getPostRegisterRedirectURL())},3e3)}).catch(e=>{var s,t,a,r,i,n;null==(s=(t=this.props).onFormResponseReceived)||s.call(t,!0),this.setState({isError:!0,errorMessage:null!=(n=null!=(i=null==(r=e.response)||null==(a=r.data)?void 0:a.message)?i:e.message)?n:"Something went wrong."})})}getPostRegisterRedirectURL(){return this.props.invitationToken?"/?invitationToken=".concat(encodeURIComponent(this.props.invitationToken)):"/"}async submitRegister(e){var s,t;Promise.all([null==(s=(t=this.props).onFormSubmit)?void 0:s.call(t,!0),this.validatePassword(e.password),this.validatePassword(e.passwordConfirm)]).then(async()=>{var s,t;if(!this.state.isError)return await this.submitAPICall(e);null==(s=(t=this.props).onFormResponseReceived)||s.call(t,!0)})}validatePassword(e){let s=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*()_\-+.]).{12,60}$/.test(e),t=!0,a="";e.length<12?a="Passwords should be at least 12 characters.":e.length>60?a="Passwords should be no more than 60 characters.":s?t=!1:a="Passwords should be 1 lowercase, 1 uppercase, 1 number and 1 special character.",this.setState({isError:t,errorMessage:a})}render(){var e;return(0,a.jsxs)("div",{children:[this.state.isError&&(0,a.jsx)(o.B,{color:"danger",variant:"faded",title:"Error Received",description:null!=(e=this.state.errorMessage)?e:"Something went wrong.",role:"alert","aria-live":"assertive"}),(0,a.jsxs)(d.l,{className:"w-full flex flex-col gap-4",onSubmit:e=>{var s,t,a,r,i;e.preventDefault();let n=new FormData(e.currentTarget);this.submitRegister({accountType:n.get("accountType"),email:String(null!=(s=n.get("email"))?s:""),firstName:String(null!=(t=n.get("firstName"))?t:""),lastName:String(null!=(a=n.get("lastName"))?a:""),password:String(null!=(r=n.get("password"))?r:""),passwordConfirm:String(null!=(i=n.get("passwordConfirm"))?i:"")})},children:[(0,a.jsx)(c.d,{isRequired:!0,classNames:{label:"text-sandLight!",trigger:["pl-6! py-6!"]},errorMessage:"Please select an account type.",items:b,label:"Account Type",labelPlacement:"outside",name:"accountType",placeholder:"Select your account type",children:e=>(0,a.jsx)(h.y,{children:e.label},e.key)}),(0,a.jsx)(p.r,{isRequired:!0,classNames:{label:"text-sandLight!",inputWrapper:["pl-6! py-6!"]},errorMessage:"Your first name is required.",label:"First Name",labelPlacement:"outside",name:"firstName",placeholder:"Enter your first name",type:"text"}),(0,a.jsx)(p.r,{isRequired:!0,classNames:{label:"text-sandLight!",inputWrapper:["pl-6! py-6!"]},errorMessage:"Your last name is required.",label:"Last Name",labelPlacement:"outside",name:"lastName",placeholder:"Enter your last name",type:"text"}),(0,a.jsx)(p.r,{isReadOnly:!!this.props.prefillEmail,isRequired:!0,classNames:{label:"text-sandLight!",inputWrapper:["pl-6! py-6!"]},defaultValue:this.props.prefillEmail,description:this.props.prefillEmail?"This invitation was sent to this email address.":void 0,errorMessage:"Please enter a valid email.",label:"Email",labelPlacement:"outside",name:"email",placeholder:"Enter your email",type:"email"}),(0,a.jsx)(p.r,{isRequired:!0,classNames:{label:"text-sandLight!",inputWrapper:["pl-6! py-6!"]},endContent:(0,a.jsx)("button",{"aria-label":"toggle password visibility",className:"focus:outline-solid outline-transparent",type:"button",onClick:()=>this.togglePasswordVisibility(this.state.showPassword),children:this.state.showPassword?(0,a.jsx)(x.A,{classList:"text-2xl text-default-400 pointer-events-none"}):(0,a.jsx)(w.A,{classList:"text-2xl text-default-400 pointer-events-none"})}),errorMessage:"Please enter a valid password.",label:"Password",labelPlacement:"outside",name:"password",placeholder:"Enter your password",type:this.state.showPassword?"text":"password"}),(0,a.jsx)(p.r,{isRequired:!0,classNames:{label:"text-sandLight!",inputWrapper:["pl-6! py-6!"]},endContent:(0,a.jsx)("button",{"aria-label":"toggle password confirmation visibility",className:"focus:outline-solid outline-transparent",type:"button",onClick:()=>this.togglePasswordConfirmVisibility(this.state.showPasswordConfirmation),children:this.state.showPasswordConfirmation?(0,a.jsx)(x.A,{classList:"text-2xl text-default-400 pointer-events-none"}):(0,a.jsx)(w.A,{classList:"text-2xl text-default-400 pointer-events-none"})}),errorMessage:"Please enter a valid password.",label:"Password Confirmation",labelPlacement:"outside",name:"passwordConfirm",placeholder:"Enter your password",type:this.state.showPasswordConfirmation?"text":"password"}),(0,a.jsx)(u.T,{className:"bg-sandLight font-bold mt-2 p-6 text-greenDarkest text-lg uppercase w-full",type:"submit",children:"Submit"})]})]})}constructor(e){super(e),this.state={errorMessage:"",isError:!1,showPassword:!1,showPasswordConfirmation:!1},this.validatePassword=this.validatePassword.bind(this)}}
1var f=t(3126),v=t(1579);class y extends l.Component{componentDidMount(){this.onLoadGetInvitationParams()}handleFormSubmit(){this.setState({showSpinner:!0})}handleFormResponseReceived(){this.setState({showSpinner:!1})}onLoadGetInvitationParams(){let e=new URLSearchParams(window.location.search),s=e.get("invitationToken");if(s){var t;this.setState({invitationToken:s,prefillEmail:null!=(t=e.get("email"))?t:""})}}render(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i(),{children:(0,n.U)({title:"Register | Veteran Database",canonical:"https://sso.veterandb.com/register",openGraph:{url:"https://sso.veterandb.com/register"}})}),(0,a.jsxs)(f.A,{children:[(0,a.jsx)(v.A,{showSpinner:this.state.showSpinner}),(0,a.jsxs)("div",{className:"px-5",children:[(0,a.jsx)("h1",{className:"mb-3 text-5xl text-center text-sandLight",children:"Register"}),(0,a.jsx)("p",{className:"mb-3 text-center text-sandLight",children:"Enlist Today..."}),(0,a.jsx)(C,{invitationToken:this.state.invitationToken,onFormResponseReceived:this.handleFormResponseReceived,onFormSubmit:this.handleFormSubmit,prefillEmail:this.state.prefillEmail})]})]})]})}constructor(e){super(e),this.state={invitationToken:"",prefillEmail:"",showSpinner:!1},this.handleFormSubmit=this.handleFormSubmit.bind(this),this.handleFormResponseReceived=this.handleFormResponseReceived.bind(this)}}},2790:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/register",function(){return t(2510)}])},3126:(e,s,t)=>{"use strict";t.d(s,{A:()=>u});var a=t(6029),r=t(2049),i=t(5607),n=t(1492),l=t(2380),o=t(1233),d=t(101),c=t(5067),h=t(8103),p=t(5729);class u extends p.Component{withCurrentQuery(e){return window.location.search?"".concat(e).concat(window.location.search):e}render(){return(0,a.jsx)("div",{className:"p-20",children:(0,a.jsxs)(r.Z,{className:"bg-greenDarkest mx-auto p-5 w-xl",children:[(0,a.jsxs)(i.d,{className:"flex flex-col gap-3",children:[(0,a.jsx)("div",{className:"block lg:hidden",children:(0,a.jsx)(n.B,{color:"danger",description:"This portal is not optimized for mobile use.",title:"Please login with a laptop or desktop. We are working on a mobile app for mobile devices.",variant:"faded"})}),(0,a.jsx)(l.W,{alt:"VeteranDB Logo",className:"w-md mb-3",src:"".concat("https://cdn.veterandb.com/widgets","/logo-horizontal-light.png")})]}),(0,a.jsx)(o.U,{children:this.props.children}),(0,a.jsxs)(d.Z,{className:"flex flex-col mb-3 text-sandLight",children:[(0,a.jsxs)("div",{className:"mx-auto my-2",children:[(0,a.jsx)(c.h,{href:this.withCurrentQuery("/"),className:"p-3 text-sandLight",children:"Login"})," ","\xb7"," ",(0,a.jsx)(c.h,{href:this.withCurrentQuery("/register"),className:"p-3 text-sandLight",children:"Register"})," ","\xb7"," ",(0,a.jsx)(c.h,{href:"/password/forgot",className:"p-3 text-sandLight",children:"Forgot Password"})]}),(0,a.jsx)(h.T,{as:c.h,href:"https://veterandb.com",target:"_blank",className:"border-sandLight text-sandLight w-1/2",variant:"bordered",children:"Return to Website"})]})]})})}}},4092:(e,s,t)=>{"use strict";t.d(s,{A:()=>i});var a=t(6029),r=t(5729);class i extends r.Component{render(){return(0,a.jsxs)("svg",{"aria-hidden":"true",fill:"none",focu
1sable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",className:this.props.classList,children:[(0,a.jsx)("path",{d:"M21.25 9.14969C18.94 5.51969 15.56 3.42969 12 3.42969C10.22 3.42969 8.49 3.94969 6.91 4.91969C5.33 5.89969 3.91 7.32969 2.75 9.14969C1.75 10.7197 1.75 13.2697 2.75 14.8397C5.06 18.4797 8.44 20.5597 12 20.5597C13.78 20.5597 15.51 20.0397 17.09 19.0697C18.67 18.0897 20.09 16.6597 21.25 14.8397C22.25 13.2797 22.25 10.7197 21.25 9.14969ZM12 16.0397C9.76 16.0397 7.96 14.2297 7.96 11.9997C7.96 9.76969 9.76 7.95969 12 7.95969C14.24 7.95969 16.04 9.76969 16.04 11.9997C16.04 14.2297 14.24 16.0397 12 16.0397Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M11.9984 9.14062C10.4284 9.14062 9.14844 10.4206 9.14844 12.0006C9.14844 13.5706 10.4284 14.8506 11.9984 14.8506C13.5684 14.8506 14.8584 13.5706 14.8584 12.0006C14.8584 10.4306 13.5684 9.14062 11.9984 9.14062Z",fill:"currentColor"})]})}constructor(e){super(e)}}},6842:(e,s,t)=>{"use strict";t.d(s,{A:()=>i});var a=t(6029),r=t(5729);class i extends r.Component{render(){return(0,a.jsxs)("svg",{"aria-hidden":"true",fill:"none",focu
1sable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",className:this.props.classList,children:[(0,a.jsx)("path",{d:"M21.2714 9.17834C20.9814 8.71834 20.6714 8.28834 20.3514 7.88834C19.9814 7.41834 19.2814 7.37834 18.8614 7.79834L15.8614 10.7983C16.0814 11.4583 16.1214 12.2183 15.9214 13.0083C15.5714 14.4183 14.4314 15.5583 13.0214 15.9083C12.2314 16.1083 11.4714 16.0683 10.8114 15.8483C10.8114 15.8483 9.38141 17.2783 8.35141 18.3083C7.85141 18.8083 8.01141 19.6883 8.68141 19.9483C9.75141 20.3583 10.8614 20.5683 12.0014 20.5683C13.7814 20.5683 15.5114 20.0483 17.0914 19.0783C18.7014 18.0783 20.1514 16.6083 21.3214 14.7383C22.2714 13.2283 22.2214 10.6883 21.2714 9.17834Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M14.0206 9.98062L9.98062 14.0206C9.47062 13.5006 9.14062 12.7806 9.14062 12.0006C9.14062 10.4306 10.4206 9.14062 12.0006 9.14062C12.7806 9.14062 13.5006 9.47062 14.0206 9.98062Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M18.25 5.74969L14.86 9.13969C14.13 8.39969 13.12 7.95969 12 7.95969C9.76 7.95969 7.96 9.76969 7.96 11.9997C7.96 13.1197 8.41 14.1297 9.14 14.8597L5.76 18.2497H5.75C4.64 17.3497 3.62 16.1997 2.75 14.8397C1.75 13.2697 1.75 10.7197 2.75 9.14969C3.91 7.32969 5.33 5.89969 6.91 4.91969C8.49 3.95969 10.22 3.42969 12 3.42969C14.23 3.42969 16.39 4.24969 18.25 5.74969Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M14.8581 11.9981C14.8581 13.5681 13.5781 14.8581 11.9981 14.8581C11.9381 14.8581 11.8881 14.8581 11.8281 14.8381L14.8381 11.8281C14.8581 11.8881 14.8581 11.9381 14.8581 11.9981Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M21.7689 2.22891C21.4689 1.92891 20.9789 1.92891 20.6789 2.22891L2.22891 20.6889C1.92891 20.9889 1.92891 21.4789 2.22891 21.7789C2.37891 21.9189 2.56891 21.9989 2.76891 21.9989C2.96891 21.9989 3.15891 21.9189 3.30891 21.7689L21.7689 3.30891C22.0789 3.00891 22.0789 2.52891 21.7689 2.22891Z",fill:"currentColor"})]})}constructor(e){super(e)}}}},e=>{e.O(0,[247,544,419,741,636,593,792],()=>e(e.s=2790)),_N_E=e.O()}]);
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.