PageSourceSearch

https://admin.propertyprotect.com/assets/auth.reset-password-B-lbxj3-.js

js propertyprotect.com collected 2026-10-02 01:41:41 UTC 3,481 bytes, 1 lines download raw bytes

1import{r as l,j as s}from"./jsx-runtime-BgQc5Su6.js";import{u as I,o as C,s as u,t as S}from"./index-C1PPchob.js";import{D as k}from"./divider-DohwnwRH.js";import{B as V}from"./live.config-CHTOEIui.js";import{_ as x,I as E}from"./index-B0eIsoJb.js";import{I as w}from"./icon-eye-visible-B-ZeFNpn.js";import{I as b}from"./icon-eye-invisible-BS8qUhsO.js";import{c as D,b as L,F as R}from"./components-DRS3ZNdV.js";import{a as _,b as z}from"./index-B1epUW-V.js";import{i as g}from"./chunk-NNXNFLWG-CtFzxa-g.js";import{b as h}from"./chunk-DBLREEYE-BF7aXeM7.js";import"./import-CA6vSH2m.js";import"./chunk-TDOFO53L-DovbRcqE.js";import"./index-FeH0CfEy.js";import"./chunk-CAFRINWI-BTDo8zfp.js";import"./import-C5ysotpi.js";import"./import-XoEpakRW.js";import"./import-I6xLywFU.js";import"./chunk-M3MASYO7-C4DCafMG.js";import"./index-CJeg37MK.js";import"./GlobalConfig-BfVCAYU5.js";const B=C({password:u().min(6,"Password must be at least 6 characters"),confirmPassword:u().min(6,"Password must be at least 6 characters")}).refine(o=>o.password===o.confirmPassword,{message:"Passwords don't match",path:["confirmPassword"]}),F=S(B);function rs(){var c,d,f,p;const{token:o}=D(),e=L(),{state:t}=_(),r=z(),[i,j]=l.useState(!1),[n,P]=l.useState(!1),{handleSubmit:y,formState:{errors:a},register:m}=I({mode:"onSubmit",resolver:F}),N=()=>j(!i),v=()=>P(!n);return l.useEffect(()=>{(e==null?void 0:e.success)===!0?(x.success(e.message),setTimeout(()=>{r("/auth/login")},2e3)):(e==null?void 0:e.success)===!1&&x.error(e.message)},[e,r]),s.jsxs("div",{className:"flex flex-col items-center py-8",children:[s.jsx(E,{position:"top-center"}),s.jsx("img",{alt:"Asset Protect",src:V.Images.HorizontalLogoUrl,className:"max-h-14"}),s.jsx(k,{}),s.jsxs("div",{className:"flex flex-col gap-8 pt-4 w-full items-center",children:[s.jsx("h1",{className:"font-display font-bold text-2xl",children:"Set your new password"}),s.jsx("p",{className:"text-center text-gray-600 max-w-md",children:"Enter your new password below. Make sure it's at least 6 characters long."}),s.jsxs(R,{className:"flex flex-col items-center gap-8 w-full max-w-md px-4",onSubmit:y,children:[s.jsx("input",{type:"hidden",name:"token",value:o}),s.jsx(g,{isDisabled:t!=="idle",isInvalid:!!a.password,errorMessage:(d=(c=a.password)==null?void 0:c.message)==null?void 0:d.toString(),...m("password"),type:i?"text":"password",label:"New Password",endContent:s.jsx("button",{className:"focus:outline-none",type:"button",onClick:N,children:i?s.jsx(w,{className:"text-2xl text-default-400 pointer-events-none"}):s.jsx(b,{className:"text-2xl text-default-400 pointer-events-none"})})}),s.jsx(g,{isDisabled:t!=="idle",isInvalid:!!a.confirmPassword,errorMessage:(p=(f=a.confirmPassword)==null?void 0:f.message)==null?void 0:p.toString(),...m("confirmPassword"),type:n?"text":"password",label:"Confirm New Password",endContent:s.jsx("button",{className:"focus:outline-none",type:"button",onClick:v,children:n?s.jsx(w,{className:"text-2xl text-default-400 pointer-events-none"}):s.jsx(b,{className:"text-2xl text-default-400 pointer-events-none"})})}),s.jsx(h,{isDisabled:t!=="idle",isLoading:t!=="idle",type:"submit",className:"w-full min-h-unit-12 max-w-xs font-bold",color:"secondary",size:"lg",radius:"full",children:"Reset Password"}),s.jsx(h,{onClick:()=>r("/auth/login"),isDisabled:t!=="idle",className:"w-full min-h-unit-12 max-w-xs font-bold",variant:"ghost",size:"lg",radius:"full",children:"Back to Login"})]})]})]})}export{rs as default};

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.