1import { l as b, o as n, i as p, f as d, e as o, u as e, n as g, c as f, t as r, b as c, a as s, d as u, E as _, B as v, C as x } from "./app-BKglPdKf.js"; 2import { _ as $ } from "./BaseButton-Caq9VZqG.js"; 3import { _ as w } from "./BaseInput-CZsZU3va.js"; 4import { _ as k } from "./Checkbox-CMOjQtBd.js"; 5import { _ as h } from "./Label-BfKu9Myl.js"; 6import { _ as V } from "./ValidationErrors-DJOLmNr1.js"; 7import { _ as B } from "./GuestLayout-yEixBN7Q.js"; 8import { b as C } from "./functions-DEKvp7rT.js"; 9import "./ApplicationLogo-Bn8Q0Fjs.js"; 10const R = { key: 0, class: "mb-4 text-sm font-medium text-green-600" }, L = { class: "sm:mx-auto sm:w-full sm:max-w-md" }, N = { class: "text-center text-3xl font-bold tracking-tight text-gray-900" }, q = { key: 0, class: "mt-2 text-center text-sm text-gray-600" }, E = { class: "my-8 sm:mx-auto sm:w-full sm:max-w-md" }, F = { class: "bg-white px-4 py-8 shadow sm:rounded-lg sm:px-10" }, P = { class: "mt-4" }, S = { class: "flex items-center justify-between" }, U = { class: "flex items-center" }, j = { for: "remember", class: "ml-2 block text-sm text-gray-900" }, z = { class: "text-sm" }, Q = { __name: "Login", props: { canResetPassword: Boolean, canRegister: Boolean, status: String }, setup(i) { 11 const a = b({ email: "", password: "", remember: false }), y = () => { 12 a.post("/login", { onFinish: () => a.reset("password") }); 13 }; 14 return (t, m) => (n(), p(B, null, { default: d(() => [o(e(g), { title: t.$t("Log in") }, null, 8, ["title"]), o(V, { class: "mb-4" }), i.status ? (n(), f("div", R, r(i.status), 1)) : c("", true), s("div", L, [s("h2", N, r(t.$t("Log in to your account")), 1), e(C) && i.canRegister ? (n(), f("p", q, [u(r(t.$t("Or")) + " ", 1), o(e(_), { href: t.route("register"), class: "font-medium text-primary-600 hover:text-primary-500" }, { default: d(() => [u(r(t.$t("Create new account")), 1)]), _: 1 }, 8, ["href"])])) : c("", true)]), s("div", E, [s("div", F, [s("form", { class: "space-y-6", onSubmit: v(y, ["prevent"]) }, [s("div", null, [o(h, { for: "email", value: t.$t("Email address") }, null, 8, ["value"]), o(w, { id: "email", modelValue: e(a).email, "onUpdate:modelValue": m[0] || (m[0] = (l) => e(a).email = l), type: "email", class: "mt-2", "input-class": "py-1.5", required: "", autofocus: "", autocomplete: "username" }, null, 8, ["modelValue"])]), s("div", P, [o(h, { for: "password", value: t.$t("Password") }, null, 8, ["value"]), o(w, { id: "password", modelValue: e(a).password, "onUpdate:modelValue": m[1] || (m[1] = (l) => e(a).password = l), type: "password", class: "mt-2", "input-class": "py-1.5", required: "", autocomplete: "current-password" }, null, 8, ["modelValue"])]), s("div", S, [s("div", U, [o(k, { id: "remember", checked: e(a).remember, "onUpdate:checked": m[2] || (m[2] = (l) => e(a).remember = l), name: "remember" }, null, 8, ["checked"]), s("label", j, r(t.$t("Remember me")), 1)]), s("div", z, [i.canResetPassword ? (n(), p(e(_), { key: 0, href: t.route("password.request"), class: "font-medium text-primary-600 hover:text-primary-500" }, { default: d(() => [u(r(t.$t("Forgot your password?")), 1)]), _: 1 }, 8, ["href"])) : c("", true)])]), s("div", null, [o($, { type: "submit", disabled: e(a).processing, class: x(["w-full", { "opacity-25": e(a).processing }]) }, { default: d(() => [u(r(t.$t("Log in")), 1)]), _: 1 }, 8, ["disabled", "class"])])], 32)])])]), _: 1 })); 15} }; 16export { 17 Q as default 18};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.