transcriptor-web/bootstrap/ssr/assets/Show-DAwzGQF4.js
2025-04-05 15:58:14 +02:00

70 lines
3.0 KiB
JavaScript

import { jsx, jsxs, Fragment } from "react/jsx-runtime";
import DeleteUserForm from "./DeleteUserForm-Ptw0GKXr.js";
import LogoutOtherBrowserSessions from "./LogoutOtherBrowserSessionsForm-Bd8DyQdZ.js";
import TwoFactorAuthenticationForm from "./TwoFactorAuthenticationForm-BLalZpWn.js";
import UpdatePasswordForm from "./UpdatePasswordForm-B_100APE.js";
import UpdateProfileInformationForm from "./UpdateProfileInformationForm-g6OOT46r.js";
import { u as useTypedPage } from "./useTypedPage-Do3SqtsL.js";
import { S as SectionBorder } from "./SectionBorder-Dh4nHf2e.js";
import { A as AppLayout } from "./AppLayout-DitNPgwT.js";
import "@inertiajs/react";
import "classnames";
import "react";
import "../app.js";
import "axios";
import "lodash";
import "react-dom/client";
import "./Modal-D5yHmTM4.js";
import "./SectionTitle-DnuUNpyS.js";
import "@headlessui/react";
import "react-dom";
import "./DangerButton-BAZynYAq.js";
import "./DialogModal-D0pyMzH2.js";
import "./TextInput-CMJy2hIv.js";
import "./SecondaryButton-G68tKuYQ.js";
import "./ActionMessage-s_mcCJ3s.js";
import "./PrimaryButton-C2B8UWiv.js";
import "@inertiajs/core";
import "./InputLabel-DhqxoV6M.js";
import "./FormSection-DI6t3wFC.js";
function Show({
sessions,
confirmsTwoFactorAuthentication
}) {
const page = useTypedPage();
return /* @__PURE__ */ jsx(
AppLayout,
{
title: "Profile",
renderHeader: () => /* @__PURE__ */ jsx("h2", { className: "font-semibold text-xl text-gray-800 dark:text-gray-200 leading-tight", children: "Profile" }),
children: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs("div", { className: "max-w-7xl mx-auto py-10 sm:px-6 lg:px-8", children: [
page.props.jetstream.canUpdateProfileInformation ? /* @__PURE__ */ jsxs("div", { children: [
/* @__PURE__ */ jsx(UpdateProfileInformationForm, { user: page.props.auth.user }),
/* @__PURE__ */ jsx(SectionBorder, {})
] }) : null,
page.props.jetstream.canUpdatePassword ? /* @__PURE__ */ jsxs("div", { className: "mt-10 sm:mt-0", children: [
/* @__PURE__ */ jsx(UpdatePasswordForm, {}),
/* @__PURE__ */ jsx(SectionBorder, {})
] }) : null,
page.props.jetstream.canManageTwoFactorAuthentication ? /* @__PURE__ */ jsxs("div", { className: "mt-10 sm:mt-0", children: [
/* @__PURE__ */ jsx(
TwoFactorAuthenticationForm,
{
requiresConfirmation: confirmsTwoFactorAuthentication
}
),
/* @__PURE__ */ jsx(SectionBorder, {})
] }) : null,
/* @__PURE__ */ jsx("div", { className: "mt-10 sm:mt-0", children: /* @__PURE__ */ jsx(LogoutOtherBrowserSessions, { sessions }) }),
page.props.jetstream.hasAccountDeletionFeatures ? /* @__PURE__ */ jsxs(Fragment, { children: [
/* @__PURE__ */ jsx(SectionBorder, {}),
/* @__PURE__ */ jsx("div", { className: "mt-10 sm:mt-0", children: /* @__PURE__ */ jsx(DeleteUserForm, {}) })
] }) : null
] }) })
}
);
}
export {
Show as default
};