Files
soorya-carpet/bootstrap/ssr/assets/confirm-password-yJ2scxPz.js
admin eba9e5f182
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
chore: frontend build
2025-10-27 15:27:26 +05:45

60 lines
2.2 KiB
JavaScript

import { jsxs, jsx } from "react/jsx-runtime";
import { I as InputError } from "./input-error-Su2MkR0P.js";
import { B as Button } from "./index-CY6fYws-.js";
import { I as Input } from "./input-DfkIsvXR.js";
import { L as Label } from "./label-DrpjkvJN.js";
import { A as AuthLayout } from "./auth-layout-iyjWmxzQ.js";
import { s as store } from "./index-BRhO3_4E.js";
import { Head, Form } from "@inertiajs/react";
import { LoaderCircle } from "lucide-react";
import "@radix-ui/react-slot";
import "class-variance-authority";
import "clsx";
import "tailwind-merge";
import "@radix-ui/react-label";
import "./app-logo-icon-kpljnLMz.js";
function ConfirmPassword() {
return /* @__PURE__ */ jsxs(
AuthLayout,
{
title: "Confirm your password",
description: "This is a secure area of the application. Please confirm your password before continuing.",
children: [
/* @__PURE__ */ jsx(Head, { title: "Confirm password" }),
/* @__PURE__ */ jsx(Form, { ...store.form(), resetOnSuccess: ["password"], children: ({ processing, errors }) => /* @__PURE__ */ jsxs("div", { className: "space-y-6", children: [
/* @__PURE__ */ jsxs("div", { className: "grid gap-2", children: [
/* @__PURE__ */ jsx(Label, { htmlFor: "password", children: "Password" }),
/* @__PURE__ */ jsx(
Input,
{
id: "password",
type: "password",
name: "password",
placeholder: "Password",
autoComplete: "current-password",
autoFocus: true
}
),
/* @__PURE__ */ jsx(InputError, { message: errors.password })
] }),
/* @__PURE__ */ jsx("div", { className: "flex items-center", children: /* @__PURE__ */ jsxs(
Button,
{
className: "w-full",
disabled: processing,
"data-test": "confirm-password-button",
children: [
processing && /* @__PURE__ */ jsx(LoaderCircle, { className: "h-4 w-4 animate-spin" }),
"Confirm password"
]
}
) })
] }) })
]
}
);
}
export {
ConfirmPassword as default
};