transcriptor-web/public/build/assets/ConfirmPassword-Cf-6lS2z.js
2025-04-05 15:58:14 +02:00

2 lines
1.2 KiB
JavaScript

import{u as t,m as i,j as s,L as n}from"./app-43FwoUKv.js";import{c as m}from"./index-C3aXnQRR.js";import{A as c}from"./AuthenticationCard-CH5UMK9r.js";import{T as u,I as d}from"./TextInput-CdoY_jBz.js";import{I as p}from"./InputLabel-Cl3yDvOx.js";import{P as l}from"./PrimaryButton-Gixff4KF.js";import"./AuthenticationCardLogo-DxGGqaxw.js";function b(){const a=t(),r=i({password:""});function o(e){e.preventDefault(),r.post(a("password.confirm"),{onFinish:()=>r.reset()})}return s.jsxs(c,{children:[s.jsx(n,{title:"Secure Area"}),s.jsx("div",{className:"mb-4 text-sm text-gray-600 dark:text-gray-400",children:"This is a secure area of the application. Please confirm your password before continuing."}),s.jsxs("form",{onSubmit:o,children:[s.jsxs("div",{children:[s.jsx(p,{htmlFor:"password",children:"Password"}),s.jsx(u,{id:"password",type:"password",className:"mt-1 block w-full",value:r.data.password,onChange:e=>r.setData("password",e.currentTarget.value),required:!0,autoComplete:"current-password",autoFocus:!0}),s.jsx(d,{className:"mt-2",message:r.errors.password})]}),s.jsx("div",{className:"flex justify-end mt-4",children:s.jsx(l,{className:m("ml-4",{"opacity-25":r.processing}),disabled:r.processing,children:"Confirm"})})]})]})}export{b as default};