PageSourceSearch

https://www.us.vote/_next/static/chunks/0i3x-t33o4vl8.js

js us.vote collected 2026-10-06 12:44:38 UTC 28,702 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,232189,(e,r,a)=>{"use strict";r.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},865156,(e,r,a)=>{"use strict";var t=e.r(232189);function i(){}function n(){}n.resetWarningCache=i,r.exports=function(){function e(e,r,a,i,n,s){if(s!==t){var l=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function r(){return e}e.isRequired=e;var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:i};return a.PropTypes=a,a}},745009,(e,r,a)=>{r.exports=e.r(865156)()},552210,(e,r,a)=>{"use strict";var t="function"==typeof Symbol&&Symbol.for,i=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,s=t?Symbol.for("react.fragment"):60107,l=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,d=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,f=t?Symbol.for("react.forward_ref"):60112,m=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,v=t?Symbol.for("react.memo"):60115,b=t?Symbol.for("react.lazy"):60116,y=t?Symbol.for("react.block"):60121,g=t?Symbol.for("react.fundamental"):60117,x=t?Symbol.for("react.responder"):60118,N=t?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var r=e.$$typeof;switch(r){case i:switch(e=e.type){case u:case p:case s:case o:case l:case m:return e;default:switch(e=e&&e.$$typeof){case c:case f:case b:case v:case d:return e;default:return r}}case n:return r}}}function j(e){return S(e)===p}a.AsyncMode=u,a.ConcurrentMode=p,a.ContextConsumer=c,a.ContextProvider=d,a.Element=i,a.ForwardRef=f,a.Fragment=s,a.Lazy=b,a.Memo=v,a.Portal=n,a.Profiler=o,a.StrictMode=l,a.Suspense=m,a.isAsyncMode=function(e){return j(e)||S(e)===u},a.isConcurrentMode=j,a.isContextConsumer=function(e){return S(e)===c},a.isContextProvider=function(e){return S(e)===d},a.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},a.isForwardRef=function(e){return S(e)===f},a.isFragment=function(e){return S(e)===s},a.isLazy=function(e){return S(e)===b},a.isMemo=function(e){return S(e)===v},a.isPortal=function(e){return S(e)===n},a.isProfiler=function(e){return S(e)===o},a.isStrictMode=function(e){return S(e)===l},a.isSuspense=function(e){return S(e)===m},a.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===s||e===p||e===o||e===l||e===m||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===v||e.$$typeof===d||e.$$typeof===c||e.$$typeof===f||e.$$typeof===g||e.$$typeof===x||e.$$typeof===N||e.$$typeof===y)},a.typeOf=S},179684,(e,r,a)=>{"use strict";r.exports=e.r(552210)},398437,(e,r,a)=>{"use strict";var t=e.r(179684),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function o(e){return t.isMemo(e)?s:l[e.$$typeof]||i}l[t.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[t.Memo]=s;var d=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;r.exports=function e(r,a,t){if("string"!=typeof a){if(m){var i=f(a);i&&i!==m&&e(r,i,t)}var s=c(a);u&&(s=s.concat(u(a)));for(var l=o(r),h=o(a),v=0;v<s.length;++v){var b=s[v];if(!n[b]&&!(t&&t[b])&&!(h&&h[b])&&!(l&&l[b])){var y=p(a,b);try{d(r,b,y)}catch(e){}}}}return r}},710058,e=>{"use strict";e.i(247167);var r,a,t=e.i(843476),i=e.i(152916),n=e.i(343794),s=e.i(812497),l=e.i(141752);function o({name:e,label:r,required:a,options:i,hasTouched:d,error:c,className:u,tabIndex:p}){let f=!!(c&&d),m=`${e}-error`;return(0,t.jsxs)(l.default,{className:(0,n.default)(f?"error":"",u),children:[(0,t.jsxs)("label",{htmlFor:e,children:[r," ",a?"*":""]}),(0,t.jsx)(s.Field,{id:e,name:e,as:"select",required:a,"aria-required":a,"aria-invalid":f,"aria-describedby":f?m:void 0,tabIndex:p,children:i.map(r=>(0,t.jsx)("option",{value:r.value,children:r.label},`${e}-${r.value||"blank"}`))}),f?(0,t.jsx)("div",{id:m,className:"message error",children:c}):null]})}let d=[{value:"",label:"Select"},{value:"mr",label:"Mr."},{value:"mrs",label:"Mrs."},{value:"miss",label:"Miss"},{value:"ms",label:"Ms."}],c=[{value:"",label:"Select"},{value:"jr",label:"Jr."},{value:"sr",label:"Sr."},{value:"ii",label:"II"},{value:"iii",label:"III"},{value:"iv",label:"IV"}],u=[{value:"",label:"Select"},{value:"air_force",label:"Air Force"},{value:"armed_forces",label:"Armed Forces"},{value:"army",label:"Army"},{value:"coast_guard",label:"Coast Guard"},{value:"marine_corps",label:"Marine Corps"},{value:"merchant_marine",label:"Merchant Marine"},{value:"navy",label:"Navy"},{value:"national_guard",label:"National Guard"},{value:"space_force",label:"Space Force"}],p=[{value:"",label:"Select"},{value:"active_duty",label:"Active Duty"},{value:"reserve",label:"Reserve"},{value:"retired",label:"Retired"},{value:"veteran",label:"Veteran"}],f=[{value:"",label:"Select"},{value:"AL",label:"Alabama"},{value:"AK",label:"Alaska"},{value:"AZ",label:"Arizona"},{value:"AR",label:"Arkansas"},{value:"CA",label:"California"},{value:"CO",label:"Colorado"},{value:"CT",label:"Connecticut"},{value:"DE",label:"Delaware"},{value:"FL",label:"Florida"},{value:"GA",label:"Georgia"},{value:"HI",label:"Hawaii"},{value:"ID",label:"Idaho"},{value:"IL",label:"Illinois"},{value:"IN",label:"Indiana"},{value:"IA",label:"Iowa"},{value:"KS",label:"Kansas"},{value:"KY",label:"Kentucky"},{value:"LA",label:"Louisiana"},{value:"ME",label:"Maine"},{value:"MD",label:"Maryland"},{value:"MA",label:"Massachusetts"},{value:"MI",label:"Michigan"},{value:"MN",label:"Minnesota"},{value:"MS",label:"Mississippi"},{value:"MO",label:"Missouri"},{value:"MT",label:"Montana"},{value:"NE",label:"Nebraska"},{value:"NV",label:"Nevada"},{value:"NH",label:"New Hampshire"},{value:"NJ",label:"New Jersey"},{value:"NM",label:"New Mexico"},{value:"NY",label:"New York"},{value:"NC",label:"North Carolina"},{value:"ND",label:"North Dakota"},{value:"OH",label:"Ohio"},{value:"OK",label:"Oklahoma"},{value:"OR",label:"Oregon"},{value:"PA",label:"Pennsylvania"},{value:"RI",label:"Rhode Island"},{value:"SC",label:"South Carolina"},{value:"SD",label:"South Dakota"},{value:"TN",label:"Tennessee"},{value:"TX",label:"Texas"},{value:"UT",label:"Utah"},{value:"VT",label:"Vermont"},{value:"VA",label:"Virginia"},{value:"WA",label:"Washington"},{value:"WV",label:"West Virginia"},{value:"WI",label:"Wisconsin"},{value:"WY",label:"Wyoming"},{value:"DC",label:"District of Columbia"}],m=/^\d{4}$/;var h=e.i(618566),v=e.i(271645),b=e.i(745009),y=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function g(){return(g=Object.assign.bind()).apply(this,arguments)}function x(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}
1function N(e,r){return(N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,r){return e.__proto__=r,e})(e,r)}var S=function(e){function r(){var r;return(r=e.call(this)||this).handleExpired=r.handleExpired.bind(x(r)),r.handleErrored=r.handleErrored.bind(x(r)),r.handleChange=r.handleChange.bind(x(r)),r.handleRecaptchaRef=r.handleRecaptchaRef.bind(x(r)),r}r.prototype=Object.create(e.prototype),r.prototype.constructor=r,N(r,e);var a=r.prototype;return a.getCaptchaFunction=function(e){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[e]:this.props.grecaptcha[e]:null},a.getValue=function(){var e=this.getCaptchaFunction("getResponse");return e&&void 0!==this._widgetId?e(this._widgetId):null},a.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},a.execute=function(){var e=this.getCaptchaFunction("execute");if(e&&void 0!==this._widgetId)return e(this._widgetId);this._executeRequested=!0},a.executeAsync=function(){var e=this;return new Promise(function(r,a){e.executionResolve=r,e.executionReject=a,e.execute()})},a.reset=function(){var e=this.getCaptchaFunction("reset");e&&void 0!==this._widgetId&&e(this._widgetId)},a.forceReset=function(){var e=this.getCaptchaFunction("reset");e&&e()},a.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},a.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},a.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},a.explicitRender=function(){var e=this.getCaptchaFunction("render");if(e&&void 0===this._widgetId){var r=document.createElement("div");this._widgetId=e(r,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(r)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},a.componentDidMount=function(){this.explicitRender()},a.componentDidUpdate=function(){this.explicitRender()},a.handleRecaptchaRef=function(e){this.captcha=e},a.render=function(){var e=this.props,r=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,e.isolated,function(e,r){if(null==e)return{};var a,t,i={},n=Object.keys(e);for(t=0;t<n.length;t++)a=n[t],r.indexOf(a)>=0||(i[a]=e[a]);return i}(e,y));return v.createElement("div",g({},r,{ref:this.handleRecaptchaRef}))},r}(v.Component);S.displayName="ReCAPTCHA",S.propTypes={sitekey:b.default.string.isRequired,onChange:b.default.func,grecaptcha:b.default.object,theme:b.default.oneOf(["dark","light"]),type:b.default.oneOf(["image","audio"]),tabindex:b.default.number,onExpired:b.default.func,onErrored:b.default.func,size:b.default.oneOf(["compact","normal","invisible"]),stoken:b.default.string,hl:b.default.string,badge:b.default.oneOf(["bottomright","bottomleft","inline"]),isolated:b.default.bool},S.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var j=e.i(398437);function T(){return(T=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var t in a)Object.prototype.hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e}).apply(this,arguments)}var O={},w=0,I="onloadcallback";function R(){return"u">typeof window&&window.recaptchaOptions||{}}let M=(r=function(){var e=R(),r=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+r+"/recaptcha/enterprise.js?onload="+I+"&render=explicit":"https://"+r+"/recaptcha/api.js?onload="+I+"&render=explicit"},a=a={callbackName:I,globalName:"grecaptcha",attributes:R().nonce?{nonce:R().nonce}:{}}
1,function(e){var t=e.displayName||e.name||"Component",i=function(t){function i(e,r){var a;return(a=t.call(this,e,r)||this).state={},a.__scriptURL="",a}i.prototype=Object.create(t.prototype),i.prototype.constructor=i,i.__proto__=t;var n=i.prototype;return n.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+w++),this.__scriptLoaderID},n.setupScriptURL=function(){return this.__scriptURL="function"==typeof r?r():r,this.__scriptURL},n.asyncScriptLoaderHandleLoad=function(e){var r=this;this.setState(e,function(){return r.props.asyncScriptOnLoad&&r.props.asyncScriptOnLoad(r.state)})},n.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=O[this.__scriptURL];if(!e||!e.loaded)throw Error("Script is not loaded.");for(var r in e.observers)e.observers[r](e);delete window[a.callbackName]},n.componentDidMount=function(){var e=this,r=this.setupScriptURL(),t=this.asyncScriptLoaderGetScriptLoaderID(),i=a,n=i.globalName,s=i.callbackName,l=i.scriptId;if(n&&void 0!==window[n]&&(O[r]={loaded:!0,observers:{}}),O[r]){var o=O[r];return o&&(o.loaded||o.errored)?void this.asyncScriptLoaderHandleLoad(o):void(o.observers[t]=function(r){return e.asyncScriptLoaderHandleLoad(r)})}var d={};d[t]=function(r){return e.asyncScriptLoaderHandleLoad(r)},O[r]={loaded:!1,observers:d};var c=document.createElement("script");for(var u in c.src=r,c.async=!0,a.attributes)c.setAttribute(u,a.attributes[u]);l&&(c.id=l);var p=function(e){if(O[r]){var a=O[r].observers;for(var t in a)e(a[t])&&delete a[t]}};s&&"u">typeof window&&(window[s]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),c.onload=function(){var e=O[r];e&&(e.loaded=!0,p(function(r){return!s&&(r(e),!0)}))},c.onerror=function(){var e=O[r];e&&(e.errored=!0,p(function(r){return r(e),!0}))},document.body.appendChild(c)},n.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===a.removeOnUnmount)for(var r=document.getElementsByTagName("script"),t=0;t<r.length;t+=1)r[t].src.indexOf(e)>-1&&r[t].parentNode&&r[t].parentNode.removeChild(r[t]);var i=O[e];i&&(delete i.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===a.removeOnUnmount&&delete O[e])},n.render=function(){var r=a.globalName,t=this.props,i=(t.asyncScriptOnLoad,t.forwardedRef),n=function(e,r){if(null==e)return{};var a,t,i={},n=Object.keys(e);for(t=0;t<n.length;t++)r.indexOf(a=n[t])>=0||(i[a]=e[a]);return i}(t,["asyncScriptOnLoad","forwardedRef"]);return r&&"u">typeof window&&(n[r]=void 0!==window[r]?window[r]:void 0),n.ref=i,(0,v.createElement)(e,n)},i}(v.Component),n=(0,v.forwardRef)(function(e,r){return(0,v.createElement)(i,T({},e,{forwardedRef:r}))});return n.displayName="AsyncScriptLoader("+t+")",n.propTypes={asyncScriptOnLoad:b.default.func},(0,j.default)(n,e)})(S);var _=e.i(499683);function C({name:e,stateFieldName:r,label:a,required:i,hasTouched:o,error:d,className:c,tabIndex:u}){let{values:p,setFieldValue:f}=(0,s.useFormikContext)(),m="string"==typeof p[r]?p[r]:"",[h,b]=(0,v.useState)([{value:"",label:"Select a state first"}]),[y,g]=(0,v.useState)(!1),[x,N]=(0,v.useState)(!1);(0,v.useEffect)(()=>{let r=!0;return(f(e,""),N(!1),m)?(g(!0),b([{value:"",label:"Loading jurisdictions..."}]),fetch(`/api/eod/regions?state=${encodeURIComponent(m)}`,{headers:{Accept:"application/json"},cache:"no-store"}).then(async e=>{if(!e.ok)throw Error("Failed to fetch jurisdictions");return e.json()}).then(e=>{let a;if(!r)return;let t=(a=new Set,e.reduce((e,r)=>{let t=r.region.trim();return!t||a.has(t)||(a.add(t),e.push({value:t,label:t})),e},[]));b([{value:"",label:t.length>0?"Select":"No jurisdictions available"},...t])}).catch(()=>{r&&(N(!0),b([{value:"",label:"Unable to load jurisdictions"}]))}).finally(()=>{r&&g(!1)}),()=>{r=!1}):(b([{value:"",label:"Select a state first"}]),()=>{r=!1})},[e,m,f]);let S=!!(d&&o),j=!m||y||x||h.length<=1;return(0,t.jsxs)(l.default,{className:(0,n.default)(S?"error":"",x?"error":"",c),children:[(0,t.jsxs)("label",{htmlFor:e,children:[a," ",i?"*":""]}),(0,t.jsx)(s.Field,{id:e,name:e,as:"select",disabled:j,required:i,"aria-required":i,"aria-invalid":S||x,"aria-describedby":S?`${e}-error`:x?`${e}-load-error`:void 0,tabIndex:u,children:h.map(r=>(0,t.jsx)("option",{value:r.value,children:r.label},`${e}-${r.value||"blank"}`))}),S?(0,t.jsx)("div",{id:`${e}-error`,className:"message error",children:d}):null,!d&&x?(0,t.jsx)("div",{id:`${e}-load-error`,className:"message error",children:"Unable to load jurisdictions for the selected state."}):null]})}let E=_.object({voterTitle:_.string(),voterFirstName:_.string().required("First name is required"),voterMiddleName:_.string(),voterLastName:_.string().required("Last name is required"),voterSuffix:_.string(),primaryEmail:_.string().email("Enter a valid email").required("Email is required"),voterState:_.string().required("State is required"),voterJurisdiction:_.string().required("Jurisdiction is required"),veteranTitle:_.string(),veteranFirstName:_.string().required("First name is required"),veteranMiddleName:_.string(),veteranLastName:_.string().required("Last name is required"),veteranSuffix:_.string(),veteranRank:_.string(),branchOfService:_.string().required("Branch of service is required"),status:_.string().required("Status is required"),yearOfServiceStart:_.string().matches(m,"Use YYYY format"),yearOfServiceEnd:_.string().matches(m,"Use YYYY format").test("is-after-start","End year must be after start year",function(e){let{yearOfServiceStart:r}=this.parent;return!e||!r||parseInt(e)>=parseInt(r)}),dedicationMessage:_.string().required("Dedication message is required").min(10,"Minimum 10 characters"),photo:_.mixed().nullable().test("fileSize","File must be 5MB or less",e=>!e||e.size<=5242880).test("fileType","Only JPG and PNG are allowed",e=>!e||"image/jpeg"===e.type||"image/png"===e.type),permissionToDisplay:_.boolean().oneOf([!0],"Required"),
1consentAgreement:_.boolean().oneOf([!0],"Required")});e.s(["default",0,function(){let e=(0,h.useRouter)(),r=(0,v.useRef)(null),[a,l]=(0,v.useState)(null),[m,b]=(0,v.useState)(!1),[y,g]=(0,v.useState)(!1),x=async(t,{setSubmitting:i,resetForm:n})=>{b(!1),g(!1);try{let i=new FormData;Object.entries(t).forEach(([e,r])=>{r instanceof File?i.append(e,r):"boolean"==typeof r?i.append(e,r?"true":"false"):i.append(e,r??"")}),i.append("recaptchaToken",a??"");let n=await fetch("/api/veteran-tribute",{method:"POST",body:i}),s=await n.json();if(!n.ok||!s.success)throw Error(s.message??"Failed to submit tribute.");b(!0),r.current?.reset(),l(null),e.push("/honor-veteran/thank-you",{scroll:!0})}catch(e){g(!0),r.current?.reset(),l(null)}finally{i(!1)}},N=[{value:"",label:"Select Year"}],S=new Date().getFullYear();for(let e=S;e>=1800;e--)N.push({value:e.toString(),label:e.toString()});return(0,t.jsx)(s.Formik,{initialValues:{voterTitle:"",voterFirstName:"",voterMiddleName:"",voterLastName:"",voterSuffix:"",primaryEmail:"",voterState:"",voterJurisdiction:"",veteranTitle:"",veteranFirstName:"",veteranMiddleName:"",veteranLastName:"",veteranSuffix:"",veteranRank:"",branchOfService:"",status:"",yearOfServiceStart:"",yearOfServiceEnd:"",dedicationMessage:"",photo:null,permissionToDisplay:!1,consentAgreement:!1},validationSchema:E,onSubmit:x,validateOnMount:!0,children:({errors:e,touched:h,submitCount:v,isValid:b,isSubmitting:g,values:x,setFieldTouched:S,setFieldValue:j})=>(0,t.jsxs)(s.Form,{className:"post-tribute-form",noValidate:!0,children:[(0,t.jsxs)("p",{className:"required-note fs-6  ",children:[(0,t.jsx)("span",{"aria-hidden":"true",children:"*"})," indicates a required field"]}),(0,t.jsx)("div",{className:"post-tribute-section",children:(0,t.jsxs)("div",{className:"post-tribute-grid",children:[(0,t.jsx)("hr",{className:"section-rule md:field-span-10 field-span-20"}),(0,t.jsx)("hr",{className:"section-rule md:field-span-10"}),(0,t.jsx)("h2",{className:"field-span-20 fs-4",children:"Your Name"}),(0,t.jsx)(o,{name:"voterTitle",label:"Title",required:!1,error:e.voterTitle,hasTouched:!0===h.voterTitle||v>0,options:d,className:"md:field-span-3 field-span-20 field-order-1 md:field-order-1",tabIndex:1}),(0,t.jsx)(i.default,{name:"voterFirstName",label:"First Name",required:!0,error:e.voterFirstName,hasTouched:!0===h.voterFirstName||v>0,className:"md:field-span-4 field-span-20 field-order-2 md:field-order-2",tabIndex:2}),(0,t.jsx)(i.default,{name:"voterMiddleName",label:"Middle Name",required:!1,error:e.voterMiddleName,hasTouched:!0===h.voterMiddleName||v>0,className:"md:field-span-3 field-span-20 field-order-3 md:field-order-3",tabIndex:3}),(0,t.jsx)(i.default,{name:"primaryEmail",label:"Primary Email",required:!0,error:e.primaryEmail,hasTouched:!0===h.primaryEmail||v>0,className:"md:field-span-10 field-span-20 field-order-6 md:field-order-4",tabIndex:6}),(0,t.jsx)(i.default,{name:"voterLastName",label:"Last Name",required:!0,error:e.voterLastName,hasTouched:!0===h.voterLastName||v>0,className:"md:field-span-7 field-span-20 field-order-4 md:field-order-5",tabIndex:4}),(0,t.jsx)(o,{name:"voterSuffix",label:"Suffix",required:!1,error:e.voterSuffix,hasTouched:!0===h.voterSuffix||v>0,options:c,className:"md:field-span-3 field-span-20 field-order-5 md:field-order-6",tabIndex:5}),(0,t.jsx)(o,{name:"voterState",label:"State",required:!0,error:e.voterState,hasTouched:!0===h.voterState||v>0,options:f,className:"md:field-span-3 field-span-20 field-order-7 md:field-order-7",tabIndex:7}),(0,t.jsx)(C,{name:"voterJurisdiction",stateFieldName:"voterState",label:"Jurisdiction",required:!0,error:e.voterJurisdiction,hasTouched:!0===h.voterJurisdiction||v>0,className:"md:field-span-7 field-span-20 field-order-8 md:field-order-8",tabIndex:8})]})}),(0,t.jsx)("div",{className:"post-tribute-section",children:(0,t.jsxs)("div",{className:"post-tribute-grid",children:[(0,t.jsx)("hr",{className:"section-rule md:field-span-10 field-span-20"}),(0,t.jsx)("hr",{className:"section-rule md:field-span-10 field-span-20"}),(0,t.jsx)("h2",{className:"md:field-span-20 field-span-20 fs-4",children:"Veteran's Name"}),(0,t.jsx)(o,{name:"veteranTitle",label:"Title",required:!1,error:e.veteranTitle,hasTouched:!0===h.veteranTitle||v>0,options:d,className:"md:field-span-3 field-span-20 field-order-1 md:field-order-1",tabIndex:9}),(0,t.jsx)(i.default,{name:"veteranFirstName",label:"First Name",required:!0,error:e.veteranFirstName,hasTouched:!0===h.veteranFirstName||v>0,className:"md:field-span-4 field-span-20 field-order-2 md:field-order-2",tabIndex:10}),(0,t.jsx)(i.default,{name:"veteranMiddleName",label:"Middle Name",required:!1,error:e.veteranMiddleName,hasTouched:!0===h.veteranMiddleName||v>0,className:"md:field-span-3 field-span-20 field-order-3 md:field-order-3",tabIndex:11}),(0,t.jsx)(o,{name:"branchOfService",label:"Branch of Service",required:!0,error:e.branchOfService,hasTouched:!0===h.branchOfService||v>0,options:u,className:"md:field-span-5 field-span-20 field-order-6 md:field-order-4",tabIndex:14}),(0,t.jsx)(o,{name:"status",label:"Status",required:!0,error:e.status,hasTouched:!0===h.status||v>0,options:p,className:"md:field-span-5 field-span-20 field-order-7 md:field-order-5",tabIndex:15}),(0,t.jsx)(i.default,{name:"veteranLastName",label:"Last Name",required:!0,error:e.veteranLastName,hasTouched:!0===h.veteranLastName||v>0,className:"md:field-span-7 field-span-20 field-order-4 md:field-order-6",tabIndex:12}),(0,t.jsx)(o,{name:"veteranSuffix",label:"Suffix",required:!1,error:e.veteranSuffix,hasTouched:!0===h.veteranSuffix||v>0,options:c,className:"md:field-span-3 field-span-20 field-order-5 md:field-order-7",tabIndex:13}),(0,t.jsx)(i.default,{name:"veteranRank",label:"Rank",required:!1,error:e.veteranRank,hasTouched:!0===h.veteranRank||v>0,className:"md:field-span-10 field-span-20 field-order-8 md:field-order-8",tabIndex:16}),(0,t.jsx)(o,{name:"yearOfServiceStart",label:"Year of Service (from)",required:!1,error:e.yearOfServiceStart,hasTouched:!0===h.yearOfServiceStart||v>0,options:N,className:"field-start-1 field-end-20 md:field-start-11 md:field-end-16 field-order-9 md:field-order-9",tabIndex:17}),(0,t.jsx)(o,{name:"yearOfServiceEnd",label:"Year of Service (to)",required:!1,error:e.yearOfServiceEnd,hasTouched:!0===h.yearOfServiceEnd||v>0,options:N,className:"field-start-1 field-end-20 md:field-start-16 md:field-end-21 field-order-10 md:field-order-10",tabIndex:18})]})}),(0,t.jsx)("div",{className:"post-tribute-section",children:(0,t.jsxs)("div",{className:"post-tribute-grid",children:[(0,t.jsx)("hr",{className:"section-rule md:field-span-10 field-span-20 field-order-1 md:field-order-1"}),(0,t.jsx)("hr",{className:"section-rule md:field-span-10 field-span-20 field-order-2 md:field-order-2"}),(0,t.jsx)("h2",{className:"md:field-span-10 field-span-20 fs-4 field-order-3 md:field-order-3",children:"Dedication message"}),(0,t.jsx)("h2",{className:"md:field-span-10 field-span-20 fs-4 field-order-5 md:field-order-4 upload-photo-label",children:"Upload Photo"}),(0,t.jsxs)("div",{className:"md:field-span-10 field-span-20 field-order-4 md:field-order-5 dedication-message",children:[(0,t.jsx)(i.default,{name:"dedicationMessage",label:"Dedication message",type:"textarea",required:!0,value:x.dedicationMessage,error:e.dedicationMessage,hasTouched:!0===h.dedicationMessage||v>0,tabIndex:19,maxLength:500}),(0,t.jsxs)("small",{className:"fs-6",children:[x.dedicationMessage.length,"/500 characters"]})]}),(0,t.jsxs)("div",{className:(0,n.default)("md:field-span-10 field-span-20 field-order-6",(h.photo||v>0)&&e.photo?"error":"",x.photo?"has-file":""),children:[(0,t.jsxs)("div",{className:"upload-dropzone",children:[(0,t.jsxs)("label",{htmlFor:"photo",className:"upload-label",children:[(0,t.jsx)("strong",{children:x.photo?x.photo.name:"Upload a File"}),(0,t.jsx)("span",{children:x.photo?"Click to replace":"Drag and drop file here"})]}),(0,t.jsx)("input",{id:"photo",name:"photo",type:"file",accept:"image/*","aria-describedby":(h.photo||v>
10)&&e.photo?"photo-error":void 0,"aria-invalid":!!((h.photo||v>0)&&e.photo),onChange:e=>{j("photo",e.currentTarget.files?.[0]??null),S("photo",!0,!0)},tabIndex:20})]}),(0,t.jsx)("small",{className:"fs-6",children:"Max file size: 5MB. Only JPG and PNG are allowed."}),(0,t.jsx)("br",{}),(0,t.jsx)("small",{className:"fs-6",children:"Optional. A default image for the branch of service will be inserted in the absence of an uploaded photo."}),(h.photo||v>0)&&e.photo?(0,t.jsx)("div",{id:"photo-error",className:"message error",children:e.photo}):null]})]})}),(0,t.jsxs)("div",{className:"post-tribute-section checks-section",children:[(0,t.jsx)("small",{children:(0,t.jsx)("em",{children:"Required for publishing*"})}),(0,t.jsxs)("div",{className:(0,n.default)("checkbox-row",(h.permissionToDisplay||v>0)&&e.permissionToDisplay?"error":""),children:[(0,t.jsx)(s.Field,{id:"permissionToDisplay",name:"permissionToDisplay",type:"checkbox",required:!0,"aria-required":!0,"aria-invalid":!!((h.permissionToDisplay||v>0)&&e.permissionToDisplay),"aria-describedby":(h.permissionToDisplay||v>0)&&e.permissionToDisplay?"permissionToDisplay-error":void 0,tabIndex:21}),(0,t.jsx)("label",{htmlFor:"permissionToDisplay",children:"Permission to display *"})]}),(h.permissionToDisplay||v>0)&&e.permissionToDisplay?(0,t.jsx)("div",{id:"permissionToDisplay-error",className:"message error",children:e.permissionToDisplay}):null,(0,t.jsxs)("div",{className:(0,n.default)("checkbox-row",(h.consentAgreement||v>0)&&e.consentAgreement?"error":""),children:[(0,t.jsx)(s.Field,{id:"consentAgreement",name:"consentAgreement",type:"checkbox",required:!0,"aria-required":!0,"aria-invalid":!!((h.consentAgreement||v>0)&&e.consentAgreement),"aria-describedby":(h.consentAgreement||v>0)&&e.consentAgreement?"consentAgreement-error":void 0,tabIndex:22}),(0,t.jsx)("label",{htmlFor:"consentAgreement",children:"Consent  agreement to terms *"}),(0,t.jsx)("a",{href:"https://www.usvotefoundation.org/Terms-of-Use",target:"_blank",rel:"noopener noreferrer",className:"button terms-button",tabIndex:23,children:"VIEW TERMS"})]}),(h.consentAgreement||v>0)&&e.consentAgreement?(0,t.jsx)("div",{id:"consentAgreement-error",className:"message error",children:e.consentAgreement}):null]}),m?(0,t.jsx)("p",{className:"message success",role:"alert",children:"Your tribute has been submitted."}):null,y?(0,t.jsx)("p",{className:"message error",role:"alert",children:"Failed to submit tribute. Please try again."}):null,(0,t.jsx)("div",{className:"recaptcha-wrapper",children:(0,t.jsx)(M,{ref:r,sitekey:"6LfODH0jAAAAAO706VQTYlGkyq7p_I-76aMl0fsa",onChange:e=>l(e),onExpired:()=>l(null)})}),(0,t.jsxs)("div",{className:"buttons-wrapper",children:[(0,t.jsx)("button",{type:"submit",disabled:!b||g||!a,"aria-disabled":!b||g||!a,onClick:e=>{b&&!g&&a||e.preventDefault()},className:(0,n.default)("button","px-5","post-tribute-submit",b&&!g&&a?"":"disabled"),tabIndex:24,children:g?"SUBMITTING...":"SUBMIT MY TRIBUTE"}),(0,t.jsx)("small",{className:"fs-6 mt-2",children:"All tributes will be reviewed prior to posting."})]})]})})}],710058)}]);

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.