import { jsxs as _jsxs, jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
import { commit, commitAt, commitAuthor, secondsBetweenCommitAndTestCompletion, timeBetweenCommitAndTestCompletion, } from "../../../package.readonly.js";
import { homepage, packageIdentifier } from "../../../package.js";
import { useIsTrusted } from "../data/index.js";
import { getMaybeAuthenticationState } from "../../../authentication/index.js";
const LINK_CLASS = "text-blue-600 hover:bg-white underline hover:underline-offset-2";
export const path = "/settings";
export function Settings() {
    const isTrusted = useIsTrusted();
    return (_jsxs(_Fragment, { children: [_jsxs("p", { children: ["You are running ", packageIdentifier] }), _jsx("p", { children: _jsx("a", { href: "/api/documentation", target: "_blank", className: "text-blue-600 hover:bg-white underline hover:underline-offset-2", children: "Checkout the API documentation!" }) }), _jsx("p", { children: _jsx("a", { href: homepage, target: "_blank", className: "text-blue-600 hover:bg-white underline hover:underline-offset-2", children: "Checkout the source code!" }) }), _jsx("br", {}), _jsx("br", {}), isTrusted ? (_jsxs(_Fragment, { children: [_jsx("pre", { children: JSON.stringify(getMaybeAuthenticationState(), undefined, "  ") }), _jsx("br", {}), _jsx("hr", {}), _jsx("br", {}), _jsx("a", { href: "/invite/create", className: LINK_CLASS, children: "Create Role Invite" }), _jsx("br", {}), _jsx("a", { href: "/product/create", className: LINK_CLASS, children: "Create Product" }), _jsx("br", {})] })) : undefined, _jsx("a", { href: "/user-credentials", className: "text-blue-600 hover:bg-white underline hover:underline-offset-2", children: "Credentials" }), _jsx("br", {}), _jsx("a", { href: "/payment-methods", className: "text-blue-600 hover:bg-white underline hover:underline-offset-2", children: "Payment Methods" }), _jsx("br", {}), _jsx("br", {}), _jsx("hr", {}), _jsx("br", {}), timeBetweenCommitAndTestCompletion ? (_jsxs("p", { "data-seconds": secondsBetweenCommitAndTestCompletion, children: [_jsx("strong", { children: "Time between commit and tests completion" }), _jsx("br", {}), timeBetweenCommitAndTestCompletion] })) : (""), _jsxs("p", { children: ["Source code last updated at ", commitAt, " by ", commitAuthor, _jsx("br", {}), "Commit Hash: ", commit] })] }));
}
export const Component = Settings;
//# sourceMappingURL=settings.js.map