1(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[2783],{37808:function(e){function a(e){var a=Error("Cannot find module '"+e+"'");throw a.code="MODULE_NOT_FOUND",a}a.keys=function(){return[]},a.resolve=a,a.id=37808,e.exports=a},99807:function(e,a,r){"use strict";var t=r(11494);let{useRequestClaimMutation:s,useClaimConfirmMutation:i}=t.Ay.injectEndpoints({endpoints:e=>({requestClaim:e.mutation({query:e=>(0,t.ZN)("/claim",e),...t.p9}),claimConfirm:e.mutation({query:e=>(0,t.ZN)("/claim/confirm",e),...t.p9})})});r.d(a,{},{tF:i,yU:s})},7691:function(e,a,r){"use strict";r.d(a,{A:function(){return y}});var t=r(74848);r(96540);var s=r(62193),i=r.n(s),n=r(45804),l=r.n(n),d=r(52909),c=r.n(d),o=r(18707),m=r.n(o),h=r(2714),u=r.n(h),x=r(25483),j=r.n(x),f=r(34723),p=r.n(f),_=r(45326),v=r.n(_);let N=e=>{let{data:a}=e;return(0,t.jsx)(j(),{children:a.map(e=>(0,t.jsx)(p(),{value:e.value,children:e.text},e.value))})};var y=e=>{let{fields:a,countries:r,address:s}=v()(e),{filterNames:n=[{name:"stateProvince",order:1,required:!1},{name:"city",order:2,required:!1}],onChange:d}=e,o=new Set(n.map(e=>e.name)),h=Object.fromEntries(n.map(e=>[e.name,e.order])),x=Object.fromEntries(n.map(e=>[e.name,e.required])),f=a.filter(e=>o.has(e.name)).map(e=>{let a={...e,required:x[e.name]??!1};return x[e.name]||"postalCode"!==e.name||(a={...a,registerValidate:void 0,validate:void 0}),a}).sort((e,a)=>(h[e.name]??999)-(h[a.name]??999)),{name:_,required:y,className:g="claim",showOtherFields:C=!0}=e,q=`${_}.country`;return i()(r)?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:`${g}__form-field-row address-container`,"data-test-id":"custom-address-editor",children:(0,t.jsxs)(l(),{name:q,required:y,withoutLayout:!0,children:[(0,t.jsx)(c(),{htmlFor:"country",truncate:!0,children:"Country"}),(0,t.jsx)(m(),{value:e?.value?.country,placeholder:"Please select",as:u(),onChange:d,"data-testid":"country",children:(0,t.jsx)(j(),{children:r.map(e=>(0,t.jsx)(p(),{value:e.value,children:e.text},e.value))})})]},"country")}),C&&f.map((e,a)=>{let{name:r,label:i,required:n,component:d,data:o,...h}=e,u=`${_}.${r}`,x="stateProvince"===r&&s.country,j="stateProvince"!==r||x;return(0,t.jsx)("div",{className:`${g}__form-field-row address-container`,children:(0,t.jsxs)(l(),{name:u,required:n,withoutLayout:!0,children:[(0,t.jsx)(c(),{htmlFor:r,truncate:!0,children:i}),(0,t.jsx)(m(),{id:r,"data-testid":r,as:d,...h,children:o&&j&&(0,t.jsx)(N,{data:o})})]},r)},a)})]})}},41299:function(e,a,r){"use strict";r.d(a,{A:function(){return s}});var t=r(74848);r(96540);var s=e=>{let{type:a}=e;return(0,t.jsx)("i",{"data-testid":"toast-icon",className:"error"===a?"ic-cross-r text-attention-100":"ic-check-r text-natural-100"})}},32362:function(e,a){"use strict";a.A=e=>({handleApiCall:async function(a,r,t,s){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:202;r&&r(!0);try{let n=await e(a);r&&r(!1),n?.status===i||n?.data?.success?t(n):s(n)}catch(e){r&&r(!1),s(e)}}})},29837:function(e,a,r){"use strict";r.r(a),r.d(a,{default:function(){return W}});var t=r(74848),s=r(96540),i=r(71468),n=r(76213),l=r(38243),d=r(62193),c=r.n(d),o=r(68290),m=r.n(o),h=r(57093),u=r.n(
1h),x=r(45804),j=r.n(x),f=r(52909),p=r.n(f),_=r(18707),v=r.n(_),N=r(56855),y=r.n(N),g=r(28309),C=r.n(g),q=r(25777),w=r.n(q),b=r(570),A=r.n(b),F=r(2714),D=r.n(F),E=r(89396),L=r.n(E),O=r(25483),P=r.n(O),R=r(75717),$=r.n(R),k=r(34723),S=r.n(k),U=r(57859),T=r.n(U),Y=r(41299),Z=r(7934),B=r(32362),K=r(56744),M=r(99807),H=r(7691);let I=()=>(0,t.jsxs)("div",{className:"captcha-container__label-div",children:[(0,t.jsx)("div",{className:"text",children:"Enter Text in Picture"}),(0,t.jsx)("div",{className:"required",children:"*"})]}),V=e=>{let{imgRef:a}=e;return(0,t.jsx)("img",{ref:a,alt:"Captcha",className:"rucaptcha-image",src:"/rucaptcha/?1740650082146"})},z=e=>{let{refreshCaptchaRef:a,handleRefreshCaptcha:r}=e;return(0,t.jsxs)("div",{className:"captcha-refersh-label",children:[(0,t.jsx)("span",{children:"Can't read the Captcha?"}),(0,t.jsx)(T(),{ref:a,"data-testid":"Refresh",onClick:r,children:"Refresh"})]})},G=()=>(0,t.jsx)("div",{className:"captcha-container",children:(0,t.jsx)(j(),{name:"_rucaptcha",required:!0,children:(0,t.jsx)(v(),{"data-testid":"rucaptcha",as:C(),type:"text"})})});var J=e=>{let{refreshCaptchaRef:a=null}=e,r=(0,s.useRef)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"captcha-container first-captcha-container",children:[(0,t.jsx)(I,{}),(0,t.jsxs)("div",{className:"captcha-container__input-div",children:[(0,t.jsx)(V,{imgRef:r}),(0,t.jsx)(z,{refreshCaptchaRef:a,handleRefreshCaptcha:()=>{let e=r.current.src.split("?")[0];r.current.src=`${e}?${new Date().getTime()}`}})]})]}),(0,t.jsx)(G,{})]})};let Q=(0,t.jsx)("i",{className:"ic-angle-down-bold"});var W=()=>{let e=(0,s.useRef)(),a=(0,i.wA)(),r=(0,n.Zp)(),{loading:d,requestTypeData:o,toast:x}=(0,i.d4)(e=>e.claimState),[f,_]=(0,s.useState)(null),N="Send my data"!==f&&!c()(f),[g]=(0,M.yU)(),{handleApiCall:q}=(0,B.A)(e=>g(e).unwrap()),b=()=>{a((0,K.FD)()),r("/claim/confirm")},F=r=>{let t=r?.data?.errors,s=t?.map(e=>e.replace(/^Captcha\s/,""));t?.length&&(e.current.click(),a((0,K.Kx)({message:{error:s?.join("\n"),success:""},type:"error",visible:!0})))},E=(0,s.useCallback)(e=>{let{stateProvince:r,country:t,...s}=e.claim;q({...e,claim:{...s,state_province_code:r,country_code:t},...e?.delete_confirmation&&{delete_confirmation:e.delete_confirmation[0]},authenticity_token:(0,l.D)()},e=>a((0,K.r1)(e)),b,F,200)},[]);return(0,t.jsx)(u(),{validateOnBlur:!0,validateOnChange:!1,customizeLayout:!0,onSubmit:E,children:(0,t.jsx)(h.FormConsumer,{children:r=>{let{form:{values:s,setFieldTouched:i,setFieldValue:n}}=r;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"claim__form-container","data-testid":"form-container",children:[(0,t.jsx)("span",{className:"claim__form-title","data-testid":"form-title",children:"Claim Your Data"}),(0,t.jsxs)("span",{className:"claim__form-sub-title","data-testid":"form-sub-title",children:["Required fields are marked ",(0,t.jsx)("span",{className:"required",children:"*"})]}),(0,t.jsxs)("div",{className:"claim__form-fields",children:[(0,t.jsx)("div",{className:"claim__form-field-row",children:(0,t.jsxs)(j(),{name:"claim.request_type",required:!0,children:[(0,t.jsx)(p(),{children:"Request type"}),(0,t.jsx)(v(),{"data-testid":"requestType",as:D(),value:f,onChange:e=>_(e),postAddon:Q,placeholder:"Please select",requiredError:"Please select request type",children:(0,t.jsx)(P(),{children:o.map((e,a)=>(0,t.jsx)(S(),{value:e,children:e},a))})})]})}),(0,t.jsx)("div",{className:"claim__form-field-row",children:(0,t.jsxs)(j(),{name:"claim.first_name",required:!0,children:[(0,t.jsx)(p(),{htmlFor:"firstName",children:"First Name"}),(0,t.jsx)(v(),{"data-testid":"firstName",id:"firstName",as:C(),type:"text",validate:e=>(0,Z.tZ)(e)})]})}),(0,t.jsx)("div",{className:"claim__form-field-row",children:(0,t.jsxs)(j(),{name:"claim.last_name",required:!0,children:[(0,t.jsx)(p(),{htmlFor:"lastName",children:"Last Name"}),(0,t.jsx)(v(),{"data-testid":"lastName",id:"lastName",as:C(),type:"text",validate:e=>(0,Z.tZ)(e)})]})}),(0,t.jsx)("div",{className:"claim__form-field-row",children:(0,t.jsxs)(j(),{name:"claim.email",required:!0,children:[(0,t.jsx)(p(),{children:"Email"}),(0,t.jsx)(v(),{"data-testid":"email",as:y(),requiredError:"Please enter your email.",validate:e=>(0,Z.$r)(e,"email")})]})}),(0,t.jsx)("div",{className:"claim__address-bar",children:(0,t.jsx)(H.A,{value:s.claim,onFieldValueChange:n,onFieldTouch:i,name:"claim",required:!0})}),(0,t.jsx)("div",{className:"claim__form-field-row",children:(0,t.jsxs)(j(),{name:"claim.address_line1",children:[(0,t.jsx)(p(),{htmlFor:"address_line1",children:"Address Line 1"}),(0,t.jsx)(v(),{"data-testid":"address_line1",id:"address_line1",as:C(),type:"text"})]})}),(0,t.jsx)("div",{className:"claim__form-field-row",children:(0,t.jsxs)(j(),{name:"claim.address_line2",children:[(0,t.jsx)(p(),{htmlFor:"address_line2",children:"Address Line 2"}),(0,t.jsx)(v(),{"data-testid":"address_line2",id:"address_line2",as:C(),type:"text"})]})}),(0,t.jsx)("div",{className:"claim__form-field-row",children:(0,t.jsxs)(j(),{name:"claim.postal_code",children:[(0,t.jsx)(p(),{htmlFor:"postal_code",children:"Postal Code"}),(0,t.jsx)(v(),{"data-testid":"postalCode",id:"postalCode",as:C(),type:"text",validate:e=>(0,Z.$r)(e,"postalCode","US")})]})}),(0,t.jsx)("div",{className:"claim__form-field-row",children:(0,t.jsxs)(j(),{name:"claim.phone",children:[(0,t.jsx)(p(),{htmlFor:"phone",children:"Phone Number"}),(0,t.jsx)(v(),{id:"phone","data-testid":"phone",as:L(),invalidError:"Please enter valid number."})]})}),(0,t.jsx)("div",{className:"claim__form-field-row",children:(0,t.jsxs)(j(),{name:"claim.dob",children:[(0,t.jsx)(p(),{children:"Date of birth"}),(0,t.jsx)(v(),{"data-testid":"DOB",as:$(),format:"YYYY-MM-DD",postAddon:Q})]})}),N&&(0,t.jsx)("div",{className:"claim__form-field-row",children:(0,t.jsx)(j(),{name:"delete_confirmation",required:!0,children:(0,t.jsx)(v(),{as:w(),children:(0,t.jsxs)(A(),{value:"1",children:[(0,t.jsx)("span",{className:"top-text",children:"I have read and agree following statement"}),(0,t.jsx)("span",{className:"bottom-text",children:"The data in our systems is required for your registration to remain valid. If you have registered for any upcoming activities through the Active Network, deleting this data may prevent you from participating in those activities."})]})})})}),(0,t.jsx)(J,{refreshCaptchaRef:e})]}),(0,t.jsx)("div",{className:"claim__action-bar",children:(0,t.jsx)(T(),{"data-testid":"save",className:"btn save-btn",submit:!0,loading:d,disabled:d,children:"Next"})})]}),x.message.error&&(0,t.jsx)(m(),{duration:3e3,show:x.visible,text:x.message.error||x.message.success,symbol:(0,t.jsx)(Y.A,{type:x.type}),onClose:()=>a((0,K.FD)())})]})}})})}}}]);
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.