1import { _ as b } from "./CentralGuestLayout-CWv7epGt.js"; 2import { j as I, k as S, L as C, o as n, i as $, f as B, e as M, u as h, n as j, a as t, t as p, c as l, F as N, r as E, C as F, G as i, g as R, U } from "./app-yg_pP4S4.js"; 3import "./functions-DLrKIvnr.js"; 4const q = { class: "relative flex min-h-dvh w-full flex-col items-center justify-center overflow-hidden bg-[#1e293b] px-6 py-12" }, P = ["src"], T = { class: "relative flex flex-col items-center text-center" }, z = { class: "text-2xl font-medium text-white" }, A = { class: "mt-2 text-sm text-gray-400" }, D = { class: "mt-10 flex flex-col gap-4" }, V = { key: 0, class: "flex h-5 w-5 items-center justify-center rounded-full bg-green-500" }, W = { key: 1, class: "flex h-5 w-5 items-center justify-center" }, Z = { key: 2, class: "h-5 w-5 rounded-full border-2 border-gray-600" }, v = 3, J = { __name: "WaitingForTenantReady", props: { tenantId: { type: String, required: true }, adminEmail: { type: String, required: true }, hash: { type: String, required: true }, portalName: { type: String, default: "" } }, setup(u) { 5 const { t: c } = I(), d = u, m = i(null), f = i(false), a = i(0), o = i(null), g = R(() => [c("Personalizing your brand"), c("Creating your services"), c("Preparing your portal")]), y = new URL("/build/assets/setup-dots-C6XeA30y.svg", import.meta.url).href, L = { maskImage: "radial-gradient(46% 48% at 50% 50%, black 15%, transparent 92%)", WebkitMaskImage: "radial-gradient(46% 48% at 50% 50%, black 15%, transparent 92%)" }, x = async () => { 6 try { 7 const e = await U.get(route("tenant-status.show", d.tenantId)); 8 e.status === 200 && e.data.tenant_status === "ready" && (f.value = true, clearInterval(m.value), clearInterval(o.value), a.value = v - 1, setTimeout(() => { 9 window.location.href = `${e.data.auth_url}?hash=${d.hash}&admin_email=${encodeURIComponent(d.adminEmail)}`; 10 }, 1500)); 11 } catch (e) { 12 console.error("Error checking tenant status:", e); 13 } 14 }, w = () => { 15 let e = 0; 16 o.value = setInterval(() => { 17 e++, e < v && !f.value ? a.value = e : e >= v && clearInterval(o.value); 18 }, 3e3); 19 }, k = () => { 20 m.value = setInterval(x, 1e3); 21 }; 22 return S(() => { 23 k(), w(); 24 }), C(() => { 25 clearInterval(m.value), clearInterval(o.value); 26 }), (e, s) => (n(), $(b, { "full-width": "", "show-logo": false }, { default: B(() => [M(h(j), { title: e.$t("Free trial") }, null, 8, ["title"]), t("div", q, [t("img", { src: h(y), alt: "", class: "pointer-events-none absolute left-1/2 top-1/2 w-[1100px] max-w-none -translate-x-1/2 -translate-y-[382px] select-none", style: L }, null, 8, P), t("div", T, [s[2] || (s[2] = t("svg", { viewBox: "0 0 33.53 20", fill: "currentColor", class: "mb-8 h-11 text-white", "aria-hidden": "true" }, [t("path", { d: "M0 9.99637L10.055 19.7574L20.11 9.99637L15.087 5.12026L16.7613 3.49488L23.4586 9.99637L15.087 18.1232L16.7613 19.7486L26.8163 9.98754L21.7934 5.11142L23.4677 3.48605L30.1649 9.98754L21.7934 18.1144L23.4677 19.7398L33.5227 9.9787L23.4495 0.244141L20.1009 3.49488L16.7522 0.244141L13.4036 3.49488L10.055 0.244141L0 9.99637ZM3.34863 9.99637L10.0459 3.49488L16.7431 9.99637L10.0459 16.4979L3.34863 9.99637Z" })], -1)), t("h2", z, p(e.$t("Setting up {name}\u2026", { name: u.portalName })), 1), t("p", A, p(e.$t("Your portal will be ready in a moment.", { name: u.portalName })), 1), t("div", D, [(n(true), l(N, null, E(g.value, (_, r) => (n(), l("div", { key: r, class: "flex items-center gap-3" }, [r < a.value ? (n(), l("div", V, [...s[0] || (s[0] = [t("svg", { class: "h-3 w-3 text-white", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24" }, [t("path", { "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "3", d: "M5 13l4 4L19 7" })], -1)])])) : r === a.value ? (n(), l("div", W, [...s[1] || (s[1] = [t("div", { class: "h-4 w-4 animate-spin rounded-full border-2 border-indigo-400 border-t-transparent" }, null, -1)])])) : (n(), l("div", Z)), t("span", { class: F(["text-sm font-medium", { "text-white": r < a.value, "text-indigo-400": r === a.value, "text-gray-500": r > a.value }]) }, p(_), 3)]))), 128))])])])]), _: 1 })); 27} }; 28export { 29 J as default 30};
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.