1(self.webpackChunkpterodactyl_panel=self.webpackChunkpterodactyl_panel||[]).push([[933],{8332(e,t,r){"use strict";r.d(t,{A:()=>d});var o=r(4180),n=r(8801),a=r(7810),i=r(4768),c=r(5960),s=r(4950);const l=(0,a.forwardRef)((e,t)=>{let{id:r,name:l,light:d=!1,label:p,description:m,validate:u}=e,h=(0,n.A)(e,["id","name","light","label","description","validate"]);return a.createElement(i.D0,{innerRef:t,name:l,validate:u},e=>{let{field:t,form:{errors:n,touched:i}}=e;return a.createElement("div",null,p&&a.createElement(s.A,{htmlFor:r,isLight:d},p),a.createElement(c.A,(0,o.A)({id:r},t,h,{isLight:d,hasError:!(!i[t.name]||!n[t.name])})),i[t.name]&&n[t.name]?a.createElement("p",{className:"input-help error"},n[t.name].charAt(0).toUpperCase()+n[t.name].slice(1)):m?a.createElement("p",{className:"input-help"},m):null)})});l.displayName="Field";const d=l},5960(e,t,r){"use strict";r.d(t,{A:()=>l,T:()=>s});var o=r(4859);const n=(0,o.AH)(["",";&:focus{","}&:disabled{",";}"],{"--tw-bg-opacity":"1",backgroundColor:"rgba(255, 255, 255, var(--tw-bg-opacity))","--tw-border-opacity":"1",borderColor:"hsla(210, 16%, 82%, var(--tw-border-opacity))","--tw-text-opacity":"1",color:"hsla(209, 20%, 25%, var(--tw-text-opacity))"},{"--tw-border-opacity":"1",borderColor:"rgba(96, 165, 250, var(--tw-border-opacity))"},{"--tw-bg-opacity":"1",backgroundColor:"hsla(214, 15%, 91%, var(--tw-bg-opacity))","--tw-border-opacity":"1",borderColor:"hsla(210, 16%, 82%, var(--tw-border-opacity))"}),a=(0,o.AH)(["",";color-adjust:exact;background-origin:border-box;transition:all 75ms linear,box-shadow 25ms linear;&:checked{",";background-image:url(\"data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5.707 7.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L7 8.586 5.707 7.293z'/%3e%3c/svg%3e\");background-color:currentColor;background-size:100% 100%;}&:focus{",";box-shadow:0 0 0 1px rgba(9,103,210,0.25);}"],{"--tw-bg-opacity":"1",backgroundColor:"hsla(211, 12%, 43%, var(--tw-bg-opacity))",cursor:"pointer",appearance:"none",display:"inline-block",verticalAlign:"middle",userSelect:"none",flexShrink:"0",width:"1rem",he
1ight:"1rem","--tw-text-opacity":"1",color:"rgba(96, 165, 250, var(--tw-text-opacity))",borderWidth:"1px","--tw-border-opacity":"1",borderColor:"hsla(211, 13%, 65%, var(--tw-border-opacity))",borderRadius:"0.125rem"},{borderColor:"rgba(0, 0, 0, 0)",backgroundRepeat:"no-repeat",backgroundPosition:"center"},{outline:"2px solid transparent",outlineOffset:"2px","--tw-border-opacity":"1",borderColor:"rgba(147, 197, 253, var(--tw-border-opacity))"}),i=(0,o.AH)(["resize:none;",";",";",";& + .input-help{",";",";}&:required,&:invalid{",";}&:not(:disabled):not(:read-only):focus{",";",";}&:disabled{",";}",";",";"],{appearance:"none",outline:"2px solid transparent",outlineOffset:"2px",width:"100%",minWidth:"0px"},{padding:"0.75rem",borderWidth:"2px",borderRadius:"0.25rem",fontSize:"0.875rem",lineHeight:"1.25rem",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"},{"--tw-bg-opacity":"1",backgroundColor:"hsla(209, 14%, 37%, var(--tw-bg-opacity))","--tw-border-opacity":"1",borderColor:"hsla(211, 12%, 43%, var(--tw-border-opacity))",":hover":{"--tw-border-opacity":"1",borderColor:"hsla(211, 10%, 53%, var(--tw-border-opacity))"},"--tw-text-opacity":"1",color:"hsla(210, 16%, 82%, var(--tw-text-opacity))","--tw-shadow":"0 0 #0000",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-sha
1dow)",":focus":{"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)"}},{marginTop:"0.25rem",fontSize:"0.75rem",lineHeight:"1rem"},e=>e.hasError?{"--tw-text-opacity":"1",color:"rgba(254, 202, 202, var(--tw-text-opacity))"}:{"--tw-text-opacity":"1",color:"hsla(210, 16%, 82%, var(--tw-text-opacity))"},{"--tw-shadow":"0 0 #0000",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},{"--tw-shadow":"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-border-opacity":"1",borderColor:"rgba(147, 197, 253, var(--tw-border-opacity))","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)","--tw-ring-opacity":"0.5","--tw-ring-color":"rgba(96, 165, 250, var(--tw-ring-opacity))"},e=>e.hasError&&{"--tw-border-opacity":"1",borderColor:"rgba(252, 165, 165, var(--tw-border-opacity))","--tw-ring-opacity":"1","--tw-ring-color":"rgba(254, 202, 202, var(--tw-ring-opacity))"},{opacity:"0.75"},e=>e.isLight&&n,e=>e.hasError&&{"--tw-text-opacity":"1",color:"rgba(254, 226, 226, var(--tw-text-opacity))","--tw-border-opacity":"1",borderColor:"rgba(248, 113, 113, var(--tw-border-opacity))",":hover":{"--tw-border-opacity":"1",borderColor:"rgba(252, 165, 165, var(--tw-border-opacity))"}}),c=o.Ay.input.withConfig({displayName:"Input",componentId:"sc-19rce1w-0"})(["&:not([type='checkbox']):not([type='radio']){",";}&[type='checkbox'],&[type='radio']{",";&[type='radio']{",";}}"],i,a,{borderRadius:"9999px"}),s=o.Ay.textarea.withConfig({displayName:"Input__Textarea",componentId:"sc-19rce1w-1"})(["",""],i),l=c},4950(e,t,r){"use strict";r.d(t,{A:()=>o});const o=r(4859).Ay.label.withConfig({displayName:"Label",componentId:"sc-g780ms-0"})(["",";",";"],{display:"block",fontSize:"0.75rem",lineHeight:"1rem",textTransform:"uppercase","--tw-text-opacity":"1",color:"hsla(210, 16%, 82%, var(--tw-text-opacity))",marginBottom:"0.25rem","@media (min-width: 640px)":{marginBottom:"0.5rem"}},e=>e.isLight&&{"--tw-text-opacity":"1",color:"hsla(209, 18%, 30%, var(--tw-text-opacity))"})},5161(e,t,r){"use strict";r.d(t,{A:()=>i,H:()=>a});var o=r(5298);const n=()=>(0,o.E9)(e=>e.flashes),a=e=>{const{addFlash:t,clearFlashes:r,clearAndAddHttpError:o}=n();return{addError:(r,o)=>t({key:e,message:r,title:o,type:"error"}),clearFlashes:()=>r(e),clearAndAddHttpError:t=>o({key:e,error:t})}},i=n},1190(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>se});var o=r(7810),n=r(7275),a=r(8175),i=r(4859),c=r(4134);var s=r(4180),l=r(8801),d=r(4768),p=r(502),m=r(713);const u=i.Ay.div.withConfig({displayName:"LoginFormContainer__Container",componentId:"sc-cyh04c-0"})(["",";",";",";",";"],(0,p.C)("sm")` 2 ${{width:"80%",marginLeft:"auto",marginRight:"auto"}} 3 `,(0,p.C)("md")` 4 ${{padding:"2.5rem"}} 5 `,(0,p.C)("lg")` 6 ${{width:"60%"}} 7 `,(0,p.C)("xl")` 8 ${{width:"100%"}} 9 max-width: 700px; 10 `),h=(0,o.forwardRef)((e,t)=>{let{title:r}=e,n=(0,l.A)(e,["title"]);return o.createElement(u,null,r&&o.createElement(w,{$_css:{fontSize:"1.875rem",lineHeight:"2.25rem",textAlign:"center","--tw-text-opacity":"1",color:"hsla(214, 15%, 91%, var(--tw-text-opacity))",fontWeight:"500",paddingTop:"1rem",paddingBottom:"1rem"}},r),o.createElement(g,{$_css2:{marginBottom:"0.5rem",paddingLeft:"0.25rem",paddingRight:"0.25rem"}}),o.createElement(d.lV,(0,s.A)({},n,{ref:t}),o.createElement(y,{$_css3:{width:"100%","--tw-bg-opacity":"1",backgroundColor:"rgba(255, 255, 255, var(--tw-bg-opacity))","--tw-shadow":"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-sha
10dow)",borderRadius:"0.5rem",padding:"1.5rem",marginLeft:"0.25rem",marginRight:"0.25rem","@media (min-width: 768px)":{display:"flex",paddingLeft:"0px"}}},o.createElement(f,{$_css4:{flex:"none",userSelect:"none",marginBottom:"1.5rem",alignSelf:"center","@media (min-width: 768px)":{marginBottom:"0px"}}},o.createElement(b,{src:"/assets/svgs/pterodactyl.svg",$_css5:{display:"block",width:"12rem",marginLeft:"auto",marginRight:"auto","@media (min-width: 768px)":{width:"16rem"}}})),o.createElement(v,{$_css6:{flex:"1 1 0%"}},n.children))),o.createElement(x,{$_css7:{textAlign:"center","--tw-text-opacity":"1",color:"hsla(211, 12%, 43%, var(--tw-text-opacity))",fontSize:"0.75rem",lineHeight:"1rem",marginTop:"1rem"}},"© 2015 - ",(new Date).getFullYear()," ",o.createElement(_,{rel:"noopener nofollow noreferrer",href:"https://pterodactyl.io",target:"_blank",$_css8:{textDecoration:"none","--tw-text-opacity":"1",color:"hsla(211, 12%, 43%, var(--tw-text-opacity))",":hover":{"--tw-text-opacity":"1",color:"hsla(211, 13%, 65%, var(--tw-text-opacity))"}}},"Pterodactyl Software")))});var w=(0,i.Ay)("h2").withConfig({displayName:"LoginFormContainer___StyledH",componentId:"sc-cyh04c-1"})(["",""],e=>e.$_css),g=(0,i.Ay)(m.A).withConfig({displayName:"LoginFormContainer___StyledFlashMessageRender",componentId:"sc-cyh04c-2"})(["",""],e=>e.$_css2),y=(0,i.Ay)("div").withConfig({displayName:"LoginFormContainer___StyledDiv",componentId:"sc-cyh04c-3"})(["",""],e=>e.$_css3),f=(0,i.Ay)("div").withConfig({displayName:"LoginFormContainer___StyledDiv2",componentId:"sc-cyh04c-4"})(["",""],e=>e.$_css4),b=(0,i.Ay)("img").withConfig({displayName:"LoginFormContainer___StyledImg",componentId:"sc-cyh04c-5"})(["",""],e=>e.$_css5),v=(0,i.Ay)("div").withConfig({displayName:"LoginFormContainer___StyledDiv3",componentId:"sc-cyh04c-6"})(["",""],e=>e.$_css6),x=(0,i.Ay)("p").withConfig({displayName:"LoginFormContainer___StyledP",componentId:"sc-cyh04c-7"})(["",""],e=>e.$_css7),_=(0,i.Ay)("a").withConfig({displayName:"LoginFormContainer___StyledA",componentId:"sc-cyh04c-8"})(["",""],e=>e.$_css8),C=r(5298),E=r(3617),A=r(8332),S=r(6454),k=r(7990),L=r.n(k),P=r(5161);function R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}function I(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?R(Object(r),!0).forEach(function(t){(0,a.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const N=e=>{let{history:t}=e;const r=(0,o.useRef)(null),[n,a]=(0,o.useState)(""),{clearFlashes:i,clearAndAddHttpError:s}=(0,P.A)(),{enabled:l,siteKey:p}=(0,C.O$)(e=>e.settings.data.recaptcha);(0,o.useEffect)(()=>{i()},[]);return o.createElement(d.l1,{onSubmit:(e,o)=>{let{setSubmitting:d}=o;i(),!l||n?(e=>{let{username:t,password:r,recaptchaData:o}=e;return new Promise((e,n)=>{c.Ay.get("/sanctum/csrf-cookie").then(()=>c.Ay.post("/auth/login",{user:t,password:r,"g-recaptcha-response":o})).then(t=>t.data instanceof Object?e({complete:t.data.data.complete,intended:t.data.data.intended||void 0,confirmationToken:t.data.data.confirmation_token||void 0}):n(new Error("An error occurred while processing the login request."))).catch(n)})})(I(I({},e),{},{recaptchaData:n})).then(e=>{e.complete?window.location=e.intended||"/":t.replace("/auth/login/checkpoint",{token:e.confirmationToken})}).catch(e=>{console.error(e),a(""),r.current&&r.current.reset(),d(!1),s({error:e})}):r.current.execute().catch(e=>{console.error(e),d(!1),s({error:e})})},initialValues:{username:"",password:""},validationSchema:(0,E.Ik)().shape({username:(0,E.Yj)().required("A username or email must be provided."),password:(0,E.Yj)().required("Please enter your account password.")})},e=>{let{isSubmitting:t,setSubmitting:n,submitForm:i}=e;return o.createElement(T,{title:"Login to Continue"},o.createElement(A.A,{light:!0,type:"text",label:"Username or Email",n
10ame:"username",disabled:t}),o.createElement(O,null,o.createElement(A.A,{light:!0,type:"password",label:"Password",name:"password",disabled:t})),o.createElement(j,null,o.createElement(S.Ay,{type:"submit",size:"xlarge",isLoading:t,disabled:t},"Login")),l&&o.createElement(L(),{ref:r,size:"invisible",sitekey:p||"_invalid_key",onVerify:e=>{a(e),i()},onExpire:()=>{n(!1),a("")}}),o.createElement(F,null,o.createElement(D,{to:"/auth/password"},"Forgot password?")))})};var T=(0,i.Ay)(h).withConfig({displayName:"LoginContainer___StyledLoginFormContainer",componentId:"sc-qtrnpk-0"})({width:"100%",display:"flex"}),O=(0,i.Ay)("div").withConfig({displayName:"LoginContainer___StyledDiv",componentId:"sc-qtrnpk-1"})({marginTop:"1.5rem"}),j=(0,i.Ay)("div").withConfig({displayName:"LoginContainer___StyledDiv2",componentId:"sc-qtrnpk-2"})({marginTop:"1.5rem"}),F=(0,i.Ay)("div").withConfig({displayName:"LoginContainer___StyledDiv3",componentId:"sc-qtrnpk-3"})({marginTop:"1.5rem",textAlign:"center"}),D=(0,i.Ay)(n.N_).withConfig({displayName:"LoginContainer___StyledLink",componentId:"sc-qtrnpk-4"})({fontSize:"0.75rem",lineHeight:"1rem","--tw-text-opacity":"1",color:"hsla(211, 12%, 43%, var(--tw-text-opacity))",letterSpacing:"0.025em",textDecoration:"none",textTransform:"uppercase",":hover":{"--tw-text-opacity":"1",color:"hsla(209, 14%, 37%, var(--tw-text-opacity))"}});const $=()=>{const e=(0,o.useRef)(null),[t,r]=(0,o.useState)(""),{clearFlashes:n,addFlash:a}=(0,P.A)(),{enabled:i,siteKey:s}=(0,C.O$)(e=>e.settings.data.recaptcha);(0,o.useEffect)(()=>{n()},[]);return o.createElement(d.l1,{onSubmit:(o,s)=>{let{email:l}=o,{setSubmitting:d,resetForm:p}=s;n(),!i||t?((e,t)=>new Promise((r,o)=>{c.Ay.post("/auth/password",{email:e,"g-recaptcha-response":t}).then(e=>r(e.data.status||"")).catch(o)}))(l,t).then(e=>{p(),a({type:"success",title:"Success",message:e})}).catch(e=>{console.error(e),a({type:"error",title:"Error",message:(0,c.Tn)(e)})}).then(()=>{r(""),e.current&&e.current.reset(),d(!1)}):e.current.execute().catch(e=>{console.error(e),d(!1),a({type:"error",title:"Error",message:(0,c.Tn)(e)})})},initialValues:{email:""},validationSchema:(0,E.Ik)().shape({email:(0,E.Yj)().email("A valid email address must be provided to continue.").required("A valid email address must be provided to continue.")})},t=>{let{isSubmitting:n,setSubmitting:a,submitForm:c}=t;return o.createElement(z,{title:"Request Password Reset"},o.createElement(A.A,{light:!0,label:"Email",description:"Enter your account email address to receive instructions on resetting your password.",name:"email",type:"email"}),o.createElement(H,null,o.createElement(S.Ay,{type:"submit",size:"xlarge",disabled:n,isLoading:n},"Send Email")),i&&o.createElement(L(),{ref:e,size:"invisible",sitekey:s||"_invalid_key",onVerify:e=>{r(e),c()},onExpire:()=>{a(!1),r("")}}),o.createElement(q,null,o.createElement(M,{to:"/auth/login"},"Return to Login")))})};var z=(0,i.Ay)(h).withConfig({displayName:"ForgotPasswordContainer___StyledLoginFormContainer",componentId:"sc-1crept1-0"})({width:"100%",display:"flex"}),H=(0,i.Ay)("div").withConfig({displayName:"ForgotPasswordContainer___StyledDiv",componentId:"sc-1crept1-1"})({marginTop:"1.5rem"}),q=(0,i.Ay)("div").withConfig({displayName:"ForgotPasswordContainer___StyledDiv2",componentId:"sc-1crept1-2"})({marginTop:"1.5rem",textAlign:"center"}),M=(0,i.Ay)(n.N_).withConfig({displayName:"ForgotPasswordContainer___StyledLink",componentId:"sc-1crept1-3"})({fontSize:"0.75rem",lineHeight:"1rem","--tw-text-opacity":"1",color:"hsla(211, 12%, 43%, var(--tw-text-opacity))",letterSpacing:"0.025em",textTransform:"uppercase",textDecoration:"none",":hover":{"--tw-text-opacity":"1",color:"hsla(209, 18%, 30%, var(--tw-text-opacity))"}});var B=r(5960);const V=e=>{let{match:t,location:r}=e;const[n,a]=(0,o.useState)(""),{clearFlashes:i,addFlash:s}=(0,C.E9)(e=>
10e.flashes),l=new URLSearchParams(r.search);0===n.length&&l.get("email")&&a(l.get("email")||"");return o.createElement(d.l1,{onSubmit:(e,r)=>{let{password:o,passwordConfirmation:a}=e,{setSubmitting:l}=r;i(),((e,t)=>new Promise((r,o)=>{c.Ay.post("/auth/password/reset",{email:e,token:t.token,password:t.password,password_confirmation:t.passwordConfirmation}).then(e=>r({redirectTo:e.data.redirect_to,sendToLogin:e.data.send_to_login})).catch(o)}))(n,{token:t.params.token,password:o,passwordConfirmation:a}).then(()=>{window.location="/"}).catch(e=>{console.error(e),l(!1),s({type:"error",title:"Error",message:(0,c.Tn)(e)})})},initialValues:{password:"",passwordConfirmation:""},validationSchema:(0,E.Ik)().shape({password:(0,E.Yj)().required("A new password is required.").min(8,"Your new password should be at least 8 characters in length."),passwordConfirmation:(0,E.Yj)().required("Your new password does not match.").oneOf([(0,E.KR)("password"),null],"Your new password does not match.")})},e=>{let{isSubmitting:t}=e;return o.createElement(Y,{title:"Reset Password"},o.createElement("div",null,o.createElement("label",null,"Email"),o.createElement(B.A,{value:n,isLight:!0,disabled:!0})),o.createElement(W,null,o.createElement(A.A,{light:!0,label:"New Password",name:"password",type:"password",description:"Passwords must be at least 8 characters in length."})),o.createElement(U,null,o.createElement(A.A,{light:!0,label:"Confirm New Password",name:"passwordConfirmation",type:"password"})),o.createElement(K,null,o.createElement(S.Ay,{size:"xlarge",type:"submit",disabled:t,isLoading:t},"Reset Password")),o.createElement(G,null,o.createElement(J,{to:"/auth/login"},"Return to Login")))})};var Y=(0,i.Ay)(h).withConfig({displayName:"ResetPasswordContainer___StyledLoginFormContainer",componentId:"sc-1gvxg4x-0"})({width:"100%",display:"flex"}),W=(0,i.Ay)("div").withConfig({displayName:"ResetPasswordContainer___StyledDiv",componentId:"sc-1gvxg4x-1"})({marginTop:"1.5rem"}),U=(0,i.Ay)("div").withConfig({displayName:"ResetPasswordContainer___StyledDiv2",componentId:"sc-1gvxg4x-2"})({marginTop:"1.5rem"}),K=(0,i.Ay)("div").withConfig({displayName:"ResetPasswordContainer___StyledDiv3",componentId:"sc-1gvxg4x-3"})({marginTop:"1.5rem"}),G=(0,i.Ay)("div").withConfig({displayName:"ResetPasswordContainer___StyledDiv4",componentId:"sc-1gvxg4x-4"})({marginTop:"1.5rem",textAlign:"center"}),J=(0,i.Ay)(n.N_).withConfig({displayName:"ResetPasswordContainer___StyledLink",componentId:"sc-1gvxg4x-5"})({fontSize:"0.75rem",lineHeight:"1rem","--tw-text-opacity":"1",color:"hsla(211, 12%, 43%, var(--tw-text-opacity))",letterSpacing:"0.025em",textDecoration:"none",textTransform:"uppercase",":hover":{"--tw-text-opacity":"1",color:"hsla(209, 14%, 37%, var(--tw-text-opacity))"}});const Q=(0,d.bk)({handleSubmit:(e,t)=>{var r;let{code:o,recoveryCode:n}=e,{setSubmitting:a,props:{clearAndAddHttpError:i,location:s}}=t;((e,t,r)=>new Promise((o,n)=>{c.Ay.post("/auth/login/checkpoint",{confirmation_token:e,authentication_code:t,recovery_token:r&&r.length>0?r:void 0}).then(e=>o({complete:e.data.data.complete,intended:e.data.data.intended||void 0})).catch(n)}))((null===(r=s.state)||void 0===r?void 0:r.token)||"",o,n).then(e=>{e.complete?window.location=e.intended||"/":a(!1)}).catch(e=>{console.error(e),a(!1),i({error:e})})},mapPropsToValues:()=>({code:"",recoveryCode:""})})(()=>{const{isSubmitting:e,setFieldValue:t}=(0,d.j7)(),[r,n]=(0,o.useState)(!1);return o.createElement(Z,{title:"Device Checkpoint"},o.createElement(ee,null,o.createElement(A.A,{light:!0,name:r?"recoveryCode":"code",title:r?"Recovery Code":"Authentication Code",description:r?"Enter one of the recovery codes generated when you setup 2-Factor authentication on this account in order to continue.":"Enter the two-factor token generated by your device.",type:"text",autoComplete:"one-time-code",autoFocus:!0})),o.createElement(te,null,o.createElement(S.Ay,{size:"xlarge",type:"submit",disabled:e,isLoading:e},"Continue")),o.createElement(re,null,o.createElement(oe,{onClick:()=>{t("code",""),t("recoveryCode",""),n(e=>!e)}},r?"I Have My Device":"I've Lost My Device")),o.createElement(ne,null,o.createElement(ae,{to:"/auth/login"},"Return to Login")))}),X=e=>{var t;let{history:r,location:n}=e,a=(0,l.A)(e,["history","location"]);const{clearAndAddHttpError:i}=(0,P.A)();return(null===(t=n.state)||void 0===t?void 0:t.token)?o.createElement(Q,(0,s.A)({clearAndAddHttpError:i,history:r,location:n},a)):(r.replace("/auth/login"),null)};var Z=(0,i.Ay)(h).withConfig({displayName:"LoginCheckpointContainer___StyledLoginFormContainer",componentId:"sc-1a62wwr-0"})({width:"100%",display:"flex"}),ee=(0,i.Ay)("div").withConfig({displayName:"LoginCheckpointContainer___StyledDiv",componentId:"sc-1a62wwr-1"})({marginTop:"1.5rem"}),te=(0,i.Ay)("div").withConfig({displayName:"LoginCheckpointContainer___StyledDiv2",componentId:"sc-1a62wwr-2"})({marginTop:"1.5rem"}),re=(0,i.Ay)("div").withConfig({displayName:"LoginCheckpointContainer___StyledDiv3",componentId:"sc-1a62wwr-3"})({marginTop:"1.5rem",textAlign:"center"}),oe=(0,i.Ay)("span").withConfig({displayName:"LoginCheckpointContainer___StyledSpan",componentId:"sc-1a62wwr-4"})({cursor:"pointer",fontSize:"0.75rem",lineHeight:"1rem","--tw-text-opacity":"1",color:"hsla(211, 12%, 43%, var(--tw-text-opacity))",letterSpacing:"0.025em",textTransform:"uppercase",textDecoration:"none",":hover":{"--tw-text-opacity":"1",color:"hsla(209, 18%, 30%, var(--tw-text-opacity))"}}),ne=(0,i.Ay)("div").withConfig({displayName:"LoginCheckpointContainer___StyledDiv4",componentId:"sc-1a62wwr-5"})({marginTop:"1.5rem",textAlign:"center"}),ae=(0,i.Ay)(n.N_).withConfig({displayName:"LoginCheckpointContainer___StyledLink",componentId:"sc-1a62wwr-6"})({fontSize:"0.75rem",lineHeight:"1rem","--tw-text-opacity":"1",color:"hsla(211, 12%, 43%, var(--tw-text-opacity))",letterSpacing:"0.025em",textTransform:"uppercase",textDecoration:"none",":hover":{"--tw-text-opacity":"1",color:"hsla(209, 18%, 30%, var(--tw-text-opacity))"}}),ie=r(5859),ce=r(5603);const se=()=>{const e=(0,ce.W6)(),t=(0,ce.zy)(),{path:r}=(0,n.W5)();return o.createElement("div",{className:"pt-8 xl:pt-32"},o.createElement(n.dO,{location:t},o.createElement(n.qh,{path:`${r}/login`,component:N,exact:!0}),o.createElement(n.qh,{path:`${r}/login/checkpoint`,component:X}),o.createElement(n.qh,{path:`${r}/password`,component:$,exact:!0}),o.createElement(n.qh,{path:`${r}/password/reset/:token`,component:V}),o.createElement(n.qh,{path:`${r}/checkpoint`}),o.createElement(n.qh,{path:"*"},o.createElement(ie.Mk,{onBack:()=>e.push("/auth/login")}))))}},7990(e,t,r){var o;r.g,o=function(e){return function(e){var t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
10),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=1)}([function(t,r){t.exports=e},function(e,t,r){"use strict";r.r(t);var o=r(0),n=r.n(o);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}
10function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var d=/(http|https):\/\/(www)?.+\/recaptcha/,p=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?c(e):t}(this,i(t).call(this,e)),l(c(r),"container",null),l(c(r),"_isAvailable",function(){return Boolean(window&&window.grecaptcha&&window.grecaptcha.ready)}),l(c(r),"_inject",function(){if(r.props.inject&&(a=d,!Array.from(document.scripts).reduce(function(e,t){return e||a.test(t.src)},!1))){var e=r.props.hl?"&hl=".concat(r.props.hl):"",t="".concat("https://recaptcha.net/recaptcha/api.js","?render=explicit").concat(e);o=t,(n=document.createElement("script")).async=!0,n.defer=!0,n.src=o,document.head&&document.head.appendChild(n)}var o,n,a}),l(c(r),"_prepare",function(){var e=r.props,t=e.explicit,o=e.onLoad;window.grecaptcha.ready(function(){r.setState({ready:!0},function(){t||r.renderExplicitly(),o&&o()})})}),l(c(r),"_renderRecaptcha",function(e,t){return window.grecaptcha.render(e,t)}),l(c(r),"_resetRecaptcha",function(){return window.grecaptcha.reset(r.state.instanceId)}),l(c(r),"_executeRecaptcha",function(){return window.grecaptcha.execute(r.state.instanceId)}),l(c(r),"_getResponseRecaptcha",function(){return window.grecaptcha.getResponse(r.state.instanceId)}),l(c(r),"_stopTimer",function(){r.state.timer&&clearInterval(r.state.timer)}),l(c(r),"componentDidMount",function(){if(r._inject(),r._isAvailable())r._prepare();else{var e=setInterval(function(){r._isAvailable()&&(r._prepare(),r._stopTimer())},500);r.setState({timer:e})}}),l(c(r),"shouldComponentUpdate",function(e){return r.props.className!==e.className||!r.state.rendered}),l(c(r),"componentWillUnmount",function(){r._stopTimer(),r.state.rendered&&r._resetRecaptcha()}),l(c(r),"renderExplicitly",function(){return new Promise(function(e,t){if(r.state.rendered)return t(new Error("This recaptcha instance has been already rendered."));if(!r.state.ready||!r.container)return t(new Error("Recaptcha is not ready for rendering yet."));var o=r._renderRecaptcha(r.container,{sitekey:r.props.sitekey,theme:r.props.theme,size:r.props.size,badge:r.state.invisible?r.props.badge:null,tabindex:r.props.tabindex,callback:r.props.onVerify,"expired-callback":r.props.onExpire,"error-callback":r.props.onError,isolated:r.state.invisible?r.props.isolated:null,hl:r.state.invisible?null:r.props.hl});r.setState({instanceId:o,rendered:!0},function(){r.props.onRender&&r.props.onRender(),e()})})}),l(c(r),"reset",function(){return new Promise(function(e,t){if(r.state.rendered)return r._resetRecaptcha(),e();t(new Error("This recaptcha instance did not render yet."))})}),l(c(r),"execute",function(){return new Promise(function(e,t){return r.state.invisible?(r.state.rendered&&(r._executeRecaptcha(),e()),t(new Error("This recaptcha instance did not render yet."))):t(new Error("Manual execution is only available for invisible size."))})}),l(c(r),"getResponse",function(){return new Promise(function(e,t){if(r.state.rendered)return e(r._getResponseRecaptcha());t(new Error("This recaptcha instance did not render yet."))})}),l(c(r),"render",function(){var e=n.a.createElement("div",{id:r.props.id,className:r.props.className,ref:function(e){return r.container=e}});return r.props.children?r.props.children({renderExplicitly:r.renderExplicitly,reset:r.reset,execute:r.execute,getResponse:r.getResponse,recaptchaComponent:e}):e}),r.state={instanceId:null,ready:!1,rendered:!1,invisible:"invisible"===r.props.size,timer:null},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,e),t}(o.Component);l(p,"defaultProps",{id:"",className:"g-recaptcha",theme:"light",size:"normal",badge:"bottomright",tabindex:0,explicit:!1,inject:!0,isolated:!1,hl:""}),t.default=p}]).default},e.exports=o(r(7810))}}]);
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.