import{jsxs as o,jsx as r}from"react/jsx-runtime";import{useForm as d,Head as n}from"@inertiajs/react";import{LoaderCircle as c}from"lucide-react";import{I as l}from"./input-error-DvUE3Y6M.js";import{B as u}from"./button-BvFBRYHq.js";import{I as f}from"./input-qMvM9qch.js";import{L as w}from"./label-DMnntKPk.js";import{A as h}from"./layout-DkUv11OX.js";import"./utils-CMbmcP35.js";import"clsx";import"tailwind-merge";import"@radix-ui/react-slot";import"class-variance-authority";import"@radix-ui/react-label";import"./app-logo-icon-beRg1XGs.js";import"sonner";function E(){const{data:e,setData:t,post:i,processing:a,errors:m,reset:p}=d({password:""});return o(h,{title:"Confirm your password",description:"This is a secure area of the application. Please confirm your password before continuing.",children:[r(n,{title:"Confirm password"}),r("form",{onSubmit:s=>{s.preventDefault(),i(route("password.confirm"),{onFinish:()=>p("password")})},children:o("div",{className:"space-y-6",children:[o("div",{className:"grid gap-2",children:[r(w,{htmlFor:"password",children:"Password"}),r(f,{id:"password",type:"password",name:"password",placeholder:"Password",autoComplete:"current-password",value:e.password,autoFocus:!0,onChange:s=>t("password",s.target.value)}),r(l,{message:m.password})]}),r("div",{className:"flex items-center",children:o(u,{className:"w-full bg-gradient-to-r from-[#7a5c1e] via-[#c9a84c] to-[#7a5c1e] text-black shadow-[0_0_15px_rgba(201,168,76,0.3)] hover:from-[#8a6c2e] hover:via-[#d9b85c] hover:to-[#8a6c2e]",disabled:a,children:[a&&r(c,{className:"h-4 w-4 animate-spin"}),"Confirm password"]})})]})})]})}export{E as default};
