1import { j as C, l as A, o as m, i as B, f as v, e as a, u as t, n as S, a as e, t as n, E, d as w, B as T, C as q, c as d, g as y, G as x } from "./app-yg_pP4S4.js"; 2import { _ as z } from "./BaseButton-DP1PFEmO.js"; 3import { _ as c } from "./Input-q8C-rQVq.js"; 4import { _ as p } from "./Label-BPl0GR1A.js"; 5import { _ as N } from "./ValidationErrors-BIUAz4K9.js"; 6import { _ as U } from "./GuestLayout-Bo68Q7z7.js"; 7import { h as L } from "./hcaptcha-vue3.es-C0oCwLOw.js"; 8import "./functions-DLrKIvnr.js"; 9import "./ApplicationLogo-D4QkytOJ.js"; 10const R = { class: "sm:mx-auto sm:w-full sm:max-w-md" }, j = { class: "text-center text-3xl font-bold tracking-tight text-gray-900" }, F = { class: "mt-2 text-center text-sm text-gray-600" }, M = { class: "my-8 sm:mx-auto sm:w-full sm:max-w-md" }, P = { class: "bg-white px-4 py-8 shadow sm:rounded-lg sm:px-10" }, D = { class: "mt-4" }, G = { class: "mt-4" }, H = { class: "mt-4" }, I = { class: "mt-4" }, K = { key: 0, class: "flex items-center justify-center" }, J = { key: 1 }, O = { class: "mb-6 text-center text-sm" }, Q = ["href"], W = { key: 1 }, ie = { __name: "Register", props: { serviceAgreementLink: { type: String, default: null }, serviceAgreementText: { type: String, default: null } }, setup(f) { 11 const h = f, { t: k } = C(), g = x(null), r = x(false), s = A({ name: route().params.name || "", email: route().params.email || "", ref: route().params.ref, password: "", password_confirmation: "", terms: false, h_captcha_response: null }), b = () => { 12 r.value || (r.value = true, g.value.execute()); 13 }, u = () => { 14 var _a; 15 r.value = false, (_a = g.value) == null ? void 0 : _a.reset(); 16 }, V = (l) => { 17 s.h_captcha_response = l, s.post(route("register"), { onFinish: () => { 18 s.reset("password", "password_confirmation"), r.value = false; 19 } }); 20 }, $ = y(() => "a72c1119-e6c5-4238-9d95-daacdaf72553"), _ = y(() => h.serviceAgreementText ? h.serviceAgreementText : k("By submitting this form you agree to our terms of service.")); 21 return (l, o) => (m(), B(U, null, { default: v(() => [a(t(S), { title: l.$t("Register") }, null, 8, ["title"]), e("div", R, [e("h2", j, n(l.$t("Sign up")), 1), e("p", F, [a(t(E), { href: l.route("login"), class: "font-medium text-primary-600 hover:text-primary-500 max-lg:relative max-lg:after:absolute max-lg:after:-inset-3.5 max-lg:after:content-['']" }, { default: v(() => [w(n(l.$t("Already registered?")), 1)]), _: 1 }, 8, ["href"])])]), a(N, { class: "mb-4" }), e("div", M, [e("div", P, [e("form", { class: "space-y-6", onSubmit: T(b, ["prevent"]) }, [e("div", null, [a(p, { for: "name", value: l.$t("Name") }, null, 8, ["value"]), a(c, { id: "name", modelValue: t(s).name, "onUpdate:modelValue": o[0] || (o[0] = (i) => t(s).name = i), type: "text", class: "mt-1 block w-full py-1.5 max-lg:min-h-11", required: "", autofocus: "", autocomplete: "name" }, null, 8, ["modelValue"])]), e("div", D, [a(p, { for: "email", value: l.$t("Email") }, null, 8, ["value"]), a(c, { id: "email", modelValue: t(s).email, "onUpdate:modelValue": o[1] || (o[1] = (i) => t(s).email = i), type: "email", class: "mt-1 block w-full py-1.5 max-lg:min-h-11", required: "", autocomplete: "username" }, null, 8, ["modelValue"])]), e("div", G, [a(p, { for: "password", value: l.$t("Password") }, null, 8, ["value"]), a(c, { id: "password", modelValue: t(s).password, "onUpdate:modelValue": o[2] || (o[2] = (i) => t(s).password = i), type: "password", class: "mt-1 block w-full py-1.5 max-lg:min-h-11", required: "", autocomplete: "new-password" }, null, 8, ["modelValue"])]), e("div", H, [a(p, { for: "password_confirmation", value: l.$t("Confirm password") }, null, 8, ["value"]), a(c, { id: "password_confirmation", modelValue: t(s).password_confirmation, "onUpdate:modelValue": o[3] || (o[3] = (i) => t(s).password_confirmation = i), type: "password", class: "mt-1 block w-full py-1.5 max-lg:min-h-11", required: "", autocomplete: "new-password" }, null, 8, ["modelValue"])]), e("div", I, [a(t(L), { ref_key: "hcaptcha", ref: g, size: "invisible", sitekey: $.value, onVerify: V, onError: u, onExpired: u, onChallengeExpired: u, onClosed: u }, null, 8, ["sitekey"])]), e("div", null, [a(z, { type: "submit", disabled: t(s).processing || r.value, class: q(["w-full max-lg:min-h-11", "relative", { "opacity-25": t(s).processing || r.value }]) }, { default: v(() => [t(s).processing || r.value ? (m(), d("span", K, [o[4] || (o[4] = e("svg", { class: "-ml-1 mr-3 h-5 w-5 animate-spin text-white", xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24" }, [e("circle", { class: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", "stroke-width": "4" }), e("path", { class: "opacity-75", fill: "currentColor", d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" })], -1)), w(" " + n(l.$t("Processing...")), 1)])) : (m(), d("span", J, n(l.$t("Register")), 1))]), _: 1 }, 8, ["disabled", "class"])]), e("div", O, [f.serviceAgreementLink ? (m(), d("a", { key: 0, href: f.serviceAgreementLink, class: "text-primary-600 max-lg:inline-block max-lg:py-1", target: "_blank" }, n(_.value), 9, Q)) : (m(), d("p", W, n(_.value), 1))])], 32)])])]), _: 1 })); 22} }; 23export { 24 ie as default 25};
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.