1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"[email protected]+a0ce631"};var r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="b29376b4-4475-42b4-907a-0d2ae0fa7b38",e._sentryDebugIdIdentifier="sentry-dbid-b29376b4-4475-42b4-907a-0d2ae0fa7b38")}catch(e){}}(),(self.webpackChunk_putdotio_app=self.webpackChunk_putdotio_app||[]).push([[8956],{431:(e,r,i)=>{i.d(r,{Z:()=>t});var o=i(98355);const t=[{error_type:"EXISTING_MAIL",kind:"api_error_type",localize:()=>({message:(0,o.I)("email.error.existing_mail.title"),meta:{type:"email"},recoverySuggestion:{description:(0,o.I)("email.error.existing_mail.description"),type:"instruction"}})},{error_type:"MAIL_EXISTS",kind:"api_error_type",localize:()=>({message:(0,o.I)("email.error.mail_exists.title"),meta:{type:"email"},recoverySuggestion:{description:(0,o.I)("email.error.mail_exists.description"),trigger:{callback:()=>{window.location.href="/forgot-password"},label:(0,o.I)("email.error.mail_exists.recovery_label")},type:"action"}})},{error_type:"INVALID_MAIL",kind:"api_error_type",localize:()=>({message:(0,o.I)("email.error.invalid_mail.title"),meta:{type:"email"},recoverySuggestion:{description:(0,o.I)("email.error.invalid_mail.description"),type:"instruction"}})},{error_type:"SAME_MAIL",kind:"api_error_type",localize:()=>({message:(0,o.I)("email.error.same_email.title"),meta:{type:"email"},recoverySuggestion:{description:(0,o.I)("email.error.same_email.description"),type:"instruction"}})},{error_type:"DISPOSABLE_MAIL_NOT_ALLOWED",kind:"api_error_type",localize:()=>({message:(0,o.I)("email.error.disposable_mail_not_allowed.title"),meta:{type:"email"},recoverySuggestion:{description:(0,o.I)("email.error.disposable_mail_not_allowed.description"),type:"instruction"}})}]},66218:(e,r,i)=>{i.d(r,{B:()=>I});var o=i(28114),t=i(98355),a=i(46797),s=i(49024),n=i(75964),c=i(13749),l=i(44094),d=i(40153),p=i(47873),_=i(18756),u=i(75289),m=i(55522),g=i(37976),y=i(52322);const I=e=>{let{onFailure:r=(()=>null),onSuccess:i=(()=>null),params:I={}}=e;return(0,y.jsx)(c.l0,{onSubmit:async e=>{const c=(e=>({mail:o.z.compose(o.z.required,o.z.isEmail)(e.mail),password:o.z.required(e.password),password_confirmation:o.z.compose(o.z.required,(r=>e.password!==r?(0,t.I)("account_form_new_password_confirmation_error"):void 0))(e.password_confirmation),username:o.z.compose(o.z.required,o.z.lengthBetween(3,80),o.z.usernameFormat)(e.username)}))(e);if(Object.values(c).some(Boolean))return c;try{const{data:{access_token:r}}=await s.Z.Auth.Register({...I,...e});s.Z.setToken(r);const{data:{info:o}}=await s.Z.Account.Info({pas:1,platform:"web"});l=o,l.pas?.user_hash&&a.Z.alias({hash:l.pas.user_hash,id:l.user_id}),i({access_token:r,account_info:o})}catch(e){const i=(0,g.b)(e);return r(i),{[n.Ck]:i}}var l},render:e=>{let{handleSubmit:r,submitError:i,submitting:o}=e;return(0,y.jsxs)(l.Y,{onSubmit:r,submitError:i,children:[(0,y.jsx)(c.gN,{autoComplete:"username",autoFocus:!0,component:d.d,description:(0,t.I)("account_form_username_helper"),label:(0,t.I)("account_form_username"),name:"username"}),(0,y.jsx)(c.gN,{autoComplete:"email",component:d.d,description:(0,t.I)("account_form_email_helper"),label:(0,t.I)("account_form_email"),name:"mail"}),(0,y.jsx)(c.gN,{autoComplete:"new-password",component:p.W,helper:(0,t.I)("account_form_password_helper"),label:(0,t.I)("account_form_password"),name:"password"}),(0,y.jsx)(c.gN,{autoComplete:"new-password",component:p.W,label:"Confirm password",name:"password_confirmation"}),(0,y.jsx)(_.z,{fullWidth:!0,loading:o,type:"submit",variant:"primary",children:"Sign me up"}),(0,y.jsxs)(u.xu,{sx:{color:"text-secondary"},children:[(0,y.jsxs)(u.xu,{children:["By signing up you agree to our"," ",(0,y.jsx)(m.e,{href:"https://put.io/terms-of-service",children:"Terms of Service"}),"."]}),(0,y.jsxs)(u.xu,{mt:1,children:["See our ",(0,y.jsx)(m.e,{href:"https://put.io/privacy",children:"Privacy"})," and"," ",(0,y.jsx)(m.e,{href:"https://put.io/refund-policy",children:"Refund"})," policies."]})]})]})}})}},37976:(e,r,i)=>{i.d(r,{F:()=>c,b:()=>l});var o=i(73059),t=i(98355),a=i(32315),s=i(431),n=i(15545);const c=e=>(0,a.j)(e,[{kind:"api_status_code",localize:()=>({message:(0,t.I)("registration.code.invalid_or_used.title"),recoverySuggestion:{description:(0,t.I)("registration.code.invalid_or_used.description"),trigger:{callback:n.k,label:(0,t.I)("registration.code.invalid_or_used.recovery_label")},type:"action"}}),status_code:404}]),l=e=>(0,a.j)(e,[...s.Z,{error_type:"INVALID_USERNAME",kind:"api_error_type",localize:()=>
1({message:(0,t.I)("registration.error.invalid_username.title"),recoverySuggestion:{description:(0,t.I)("registration.error.invalid_username.description"),type:"instruction"}})},{kind:"match_condition",localize:()=>({message:(0,t.I)("registration.error.invalid_registration_code.title"),recoverySuggestion:{description:(0,t.I)("registration.error.invalid_registration_code.description"),type:"instruction"}}),match:e=>(0,o.XR)(e)&&["FRIEND_INVITE_INVALID_CODE","INVALID_CONFIRMATION_CODE","INVALID_VOUCHER_CODE","REDEEMED_VOUCHER_CODE"].includes(e.data.error_type)},{error_type:"FRIEND_INVITE_OWNER_NOT_ACTIVE",kind:"api_error_type",localize:()=>({message:(0,t.I)("registration.error.friend_invite_owner_not_active.title"),recoverySuggestion:{description:(0,t.I)("registration.error.friend_invite_owner_not_active.description"),type:"instruction"}})},{error_type:"USERNAME_EXISTS",kind:"api_error_type",localize:()=>({message:(0,t.I)("registration.error.username_exists.title"),recoverySuggestion:{description:(0,t.I)("registration.error.username_exists.description"),type:"instruction"}})},{error_type:"PWNED_NEW_PASSWORD",kind:"api_error_type",localize:()=>({message:(0,t.I)("registration.error.pwned_new_password.title"),recoverySuggestion:{description:(0,t.I)("registration.error.pwned_new_password.description"),type:"instruction"}})}])},53108:(e,r,i)=>{i.d(r,{j:()=>p});var o=i(2784),t=i(80589),a=i(47618),s=i(39723),n=i(36555),c=i(18361),l=i(37976),d=i(52322);function p(e){return r=>(0,d.jsx)(t.ErrorBoundary,{fallbackRender:e=>{let{error:r}=e;return(0,d.jsx)(a.w.Root,{children:(0,d.jsx)(a.w.Body,{children:(0,d.jsx)(s.P,{...(0,n.P)((0,l.F)(r))})})})},children:(0,d.jsx)(o.Suspense,{fallback:(0,d.jsx)(c.f,{color:"app-bg",visible:!0}),children:(0,d.jsx)(e,{code:r.params.code,redirectToApp:e=>r.router.replace(`/callback#access_token=${e}`)})})})}},18956:(e,r,i)=>{i.r(r),i.d(r,{RegisterWithVoucher:()=>_,default:()=>u});var o=i(34884),t=i(98355),a=i(47618),s=i(39723),n=i(66218),c=i(53108),l=i(58943),d=i(49024);var p=i(52322);const _=e=>{let{code:r,redirectToApp:i}=e;const[{data:c}]=(e=>{const r=(0,l.a)((e=>["voucher",e])(e),(()=>(async e=>(await d.Z.Auth.GetVoucher(e)).data.voucher)(e)),{retry:!1,suspense:!0});return[r]})(r);if(!c)throw new o.fF;const{owner:_}=c;return(0,p.jsxs)(a.w.Root,{children:[(0,p.jsx)(a.w.Title,{children:(0,t.I)("warm_welcome")}),(0,p.jsxs)(a.w.Body,{children:[(0,p.jsx)(s.P,{message:(_?"A mutual friend has asked that we take care of you.<br /><br />":"")+"You'll get a free put.io account if you fill out this form.<br /><br />\n Have fun!",type:"info"}),(0,p.jsx)(n.B,{onSuccess:e=>{let{access_token:r}=e;return i(r)},params:{voucher_code:r}})]})]})},u=(0,c.j)(_)}}]);
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.