1!function(){try{var s="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new s.Error).stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="b757750a-72b6-4979-8b1f-9acaa021745a",s._sentryDebugIdIdentifier="sentry-dbid-b757750a-72b6-4979-8b1f-9acaa021745a")}catch(s){}}();import"./_sentry-release-injection-file-SYOkQ1Km.js";import{a as s}from"./rolldown-runtime-BBzOAo5_.js";import{t as e}from"./react-DuV36FPs.js";import{K as a,at as o}from"./index-CRc22cjs.js";import{s as r}from"./FinalControlGroup-Cmc21xKd.js";import{t}from"./commonValidators-Bv9l42OX.js";import{t as n}from"./FormField-DM_MQnEG.js";import{t as i}from"./Submit-CHUFd811.js";import{t as d}from"./SuccessMessage-D1FypT3L.js";import{t as l}from"./BasicFinalForm-BXHiGXP7.js";import{t as m}from"./FormError-DCBM5X0M.js";e();var p=o(),f=a(),u=({tokenIsValid:s})=>{const e=new URL(window.location.href),a=e.searchParams.get("token"),o=e.searchParams.get("token-id");return(0,f.jsx)("div",{className:"box box--double-padded",children:s?(0,f.jsxs)(l,{endpoint:"/account/password-reset/finish",initialValues:{token:a,"token-id":o},children:[(0,f.jsx)(m,{}),null!==a?(0,f.jsx)(r,{name:"token",type:"hidden",component:"input"}):null,null!==o?(0,f.jsx)(r,{name:"token-id",type:"hidden",component:"input"}):null,(0,f.jsx)(n,{name:"password1",label:(0,f.jsx)(p.T,{message:"New password:"}),type:"password",required:!0,validate:[t.passwordLength],validateFields:["password2"]}),(0,f.jsx)(n,{name:"password2",label:(0,f.jsx)(p.T,{message:"Confirm new password:"}),type:"password",required:!0,validate:[t.passwordLength,t.passwordMatch],validateFields:["password1"]}),(0,f.jsx)(i,{label:(0,f.jsx)(p.T,{message:"Submit"})}),(0,f.jsx)(d,{children:(0,f.jsx)(p.T,{message:"Your password has now been reset. You may {{ itemLink:log in }}.",itemLink:(0,f.jsx)("a",{href:"/account/login"})})})]}):(0,f.jsx)("div",{className:"form-message form-message--error",children:(0,f.jsx)(p.T,{message:"This password reset code is invalid or it has been used already."})})})};export{u as default}; 2//# sourceMappingURL=FinishPasswordResetForm-BBf7AhX6.js.map
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.