@alfadocs/ui-kit 1.54.1 → 1.54.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/error-page-C15GfNEj.js +312 -0
- package/dist/_chunks/{error-page-illustration-QGJAvuFB.js → error-page-illustration-bFti0VEc.js} +73 -56
- package/dist/_chunks/{login-dev-card-C7wo-Hv1.js → login-dev-card-q7iTojvV.js} +2 -2
- package/dist/agent-catalog.json +5 -1
- package/dist/index.js +134 -132
- package/dist/patterns/error-page/error-page-illustration.d.ts +3 -1
- package/dist/patterns/error-page/error-page.d.ts +34 -2
- package/dist/patterns/error-page/index.d.ts +2 -1
- package/dist/patterns/error-page/index.js +7 -5
- package/dist/patterns/login-form/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/error-page-CKFJlekz.js +0 -275
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
import { jsx as r, jsxs as E } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as ee, useMemo as re, useState as I, useEffect as T, useRef as z } from "react";
|
|
3
|
+
import { useTranslation as oe } from "react-i18next";
|
|
4
|
+
import { c as ae } from "./index-D2ZczOXr.js";
|
|
5
|
+
import { B as L } from "./button-CYPx2xFq.js";
|
|
6
|
+
import { L as te } from "./logo-CuaqxTGK.js";
|
|
7
|
+
import { i as ne } from "./safe-href-5dbsfbQn.js";
|
|
8
|
+
import { a as se } from "./error-page-illustration-bFti0VEc.js";
|
|
9
|
+
import { loadLocale as ie, LOCALES_WITH_BUNDLES as de } from "../i18n/config.js";
|
|
10
|
+
import { R as ce } from "./rotate-ccw-BBQnIVTr.js";
|
|
11
|
+
import { L as le } from "./log-in-OQUEoGhX.js";
|
|
12
|
+
import { c as M } from "./createLucideIcon-DhHxpK9K.js";
|
|
13
|
+
/**
|
|
14
|
+
* @license lucide-react v1.22.0 - ISC
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the ISC license.
|
|
17
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/
|
|
19
|
+
const me = [
|
|
20
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
21
|
+
["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }],
|
|
22
|
+
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
23
|
+
], ue = M("circle-question-mark", me);
|
|
24
|
+
/**
|
|
25
|
+
* @license lucide-react v1.22.0 - ISC
|
|
26
|
+
*
|
|
27
|
+
* This source code is licensed under the ISC license.
|
|
28
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
29
|
+
*/
|
|
30
|
+
const ge = [
|
|
31
|
+
["path", { d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8", key: "5wwlr5" }],
|
|
32
|
+
[
|
|
33
|
+
"path",
|
|
34
|
+
{
|
|
35
|
+
d: "M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",
|
|
36
|
+
key: "r6nss1"
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
], pe = M("house", ge), fe = [
|
|
40
|
+
400,
|
|
41
|
+
401,
|
|
42
|
+
403,
|
|
43
|
+
404,
|
|
44
|
+
405,
|
|
45
|
+
410,
|
|
46
|
+
419,
|
|
47
|
+
429,
|
|
48
|
+
500,
|
|
49
|
+
502,
|
|
50
|
+
503,
|
|
51
|
+
504,
|
|
52
|
+
"offline",
|
|
53
|
+
"maintenance"
|
|
54
|
+
], A = {
|
|
55
|
+
400: { key: "badRequest", mood: "jumbled", primary: "home" },
|
|
56
|
+
401: { key: "unauthorised", mood: "locked", primary: "login" },
|
|
57
|
+
403: { key: "forbidden", mood: "roped", primary: "home" },
|
|
58
|
+
404: { key: "notFound", mood: "lost", primary: "home" },
|
|
59
|
+
405: { key: "methodNotAllowed", mood: "wrong-way", primary: "home" },
|
|
60
|
+
410: { key: "gone", mood: "vanished", primary: "home" },
|
|
61
|
+
419: { key: "expired", mood: "asleep", primary: "login" },
|
|
62
|
+
429: { key: "tooManyRequests", mood: "melt", primary: "retry" },
|
|
63
|
+
500: { key: "serverError", mood: "patched", primary: "retry" },
|
|
64
|
+
502: { key: "badGateway", mood: "unplugged", primary: "retry" },
|
|
65
|
+
503: { key: "maintenance", mood: "rebuild", primary: "retry" },
|
|
66
|
+
504: { key: "timeout", mood: "snail", primary: "retry" },
|
|
67
|
+
offline: { key: "offline", mood: "adrift", primary: "retry" },
|
|
68
|
+
maintenance: { key: "maintenance", mood: "rebuild", primary: "retry" },
|
|
69
|
+
generic: { key: "generic", mood: "puzzled", primary: "home" }
|
|
70
|
+
};
|
|
71
|
+
function ye(e) {
|
|
72
|
+
return fe.includes(e) ? A[e] : A.generic;
|
|
73
|
+
}
|
|
74
|
+
const he = "alfadocs-ui.locale", ve = "it", ke = (e) => {
|
|
75
|
+
if (!e) return;
|
|
76
|
+
const o = e.toLowerCase().replaceAll("_", "-").split("-")[0], a = o === "cn" ? "zh" : o;
|
|
77
|
+
return de.includes(a) ? a : void 0;
|
|
78
|
+
}, be = () => {
|
|
79
|
+
try {
|
|
80
|
+
return window.localStorage.getItem(he);
|
|
81
|
+
} catch {
|
|
82
|
+
return null;
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
function xe(e = {}) {
|
|
86
|
+
var f;
|
|
87
|
+
const o = typeof window < "u", a = e.saved !== void 0 ? e.saved : o ? be() : null, d = e.browser ?? (o && typeof navigator < "u" ? (f = navigator.languages) != null && f.length ? navigator.languages : [navigator.language] : []), p = e.document ?? (typeof document < "u" ? document.documentElement.lang : ""), v = [
|
|
88
|
+
e.locale,
|
|
89
|
+
a,
|
|
90
|
+
...d,
|
|
91
|
+
e.hostLocaleIsDefault ? void 0 : p
|
|
92
|
+
];
|
|
93
|
+
for (const k of v) {
|
|
94
|
+
const y = ke(k);
|
|
95
|
+
if (y) return y;
|
|
96
|
+
}
|
|
97
|
+
return ve;
|
|
98
|
+
}
|
|
99
|
+
const B = (e, o) => ie(e, o), we = ae(
|
|
100
|
+
"ds:flex ds:flex-col ds:items-center ds:justify-center ds:bg-[var(--background)] ds:text-[var(--foreground)] ds:px-[var(--spacing-md)] ds:py-[var(--spacing-2xl)]",
|
|
101
|
+
{
|
|
102
|
+
variants: {
|
|
103
|
+
layout: {
|
|
104
|
+
/** Fills the viewport: the whole page is the error. */
|
|
105
|
+
page: "ds:min-h-screen",
|
|
106
|
+
/** Fills its container, under the host's own header. */
|
|
107
|
+
embedded: "ds:[min-block-size:100%]"
|
|
108
|
+
},
|
|
109
|
+
surface: {
|
|
110
|
+
/** The page background. */
|
|
111
|
+
background: "",
|
|
112
|
+
/** A card's surface, for a page set inside a `Card`. The mark
|
|
113
|
+
* cuts its holes with `--background`, so that is re-pointed too. */
|
|
114
|
+
card: "ds:[--background:var(--card)] ds:[--foreground:var(--card-foreground)]"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
defaultVariants: { layout: "page", surface: "background" }
|
|
118
|
+
}
|
|
119
|
+
), Ee = /* @__PURE__ */ new Set(["ar"]), Le = 1500;
|
|
120
|
+
function Ne(e, o) {
|
|
121
|
+
const a = e instanceof Date ? e : new Date(e);
|
|
122
|
+
if (Number.isNaN(a.getTime())) return;
|
|
123
|
+
const d = /* @__PURE__ */ new Date(), p = d.toDateString() === a.toDateString() ? {} : {
|
|
124
|
+
day: "numeric",
|
|
125
|
+
month: "short",
|
|
126
|
+
...d.getFullYear() === a.getFullYear() ? {} : { year: "numeric" }
|
|
127
|
+
};
|
|
128
|
+
return new Intl.DateTimeFormat(o === "en" ? "en-GB" : o, {
|
|
129
|
+
...p,
|
|
130
|
+
hour: "2-digit",
|
|
131
|
+
minute: "2-digit"
|
|
132
|
+
}).format(a);
|
|
133
|
+
}
|
|
134
|
+
const D = (e, o) => !!e.getResource(o, "ui", "errorPage"), F = (e) => ne(e) ? e : "#", Se = ee(
|
|
135
|
+
({
|
|
136
|
+
status: e,
|
|
137
|
+
homeHref: o = "/",
|
|
138
|
+
loginHref: a,
|
|
139
|
+
supportHref: d,
|
|
140
|
+
onRetry: p,
|
|
141
|
+
requestId: v,
|
|
142
|
+
backAt: f,
|
|
143
|
+
locale: k,
|
|
144
|
+
hostLocaleIsDefault: y = !1,
|
|
145
|
+
title: G,
|
|
146
|
+
message: j,
|
|
147
|
+
primaryAction: s,
|
|
148
|
+
mood: O,
|
|
149
|
+
showStatusLabel: $ = !0,
|
|
150
|
+
showLogo: H = !0,
|
|
151
|
+
as: U = "main",
|
|
152
|
+
focusHeading: P = !0,
|
|
153
|
+
headingLevel: V = 1,
|
|
154
|
+
layout: Y,
|
|
155
|
+
surface: q,
|
|
156
|
+
className: K,
|
|
157
|
+
...Q
|
|
158
|
+
}, W) => {
|
|
159
|
+
const { i18n: g } = oe("ui"), c = re(
|
|
160
|
+
() => xe({ locale: k, hostLocaleIsDefault: y }),
|
|
161
|
+
[k, y]
|
|
162
|
+
), [n, b] = I(
|
|
163
|
+
() => D(g, c) ? c : null
|
|
164
|
+
), [, J] = I(0);
|
|
165
|
+
T(() => {
|
|
166
|
+
let t = !0;
|
|
167
|
+
const u = D(g, c);
|
|
168
|
+
b(u ? c : null);
|
|
169
|
+
const w = () => t && J((h) => h + 1);
|
|
170
|
+
B("en", g).then(w).catch(() => {
|
|
171
|
+
});
|
|
172
|
+
const S = u ? void 0 : setTimeout(
|
|
173
|
+
() => t && b((h) => h ?? "en"),
|
|
174
|
+
Le
|
|
175
|
+
);
|
|
176
|
+
return B(c, g).then(() => {
|
|
177
|
+
t && (b(c), w());
|
|
178
|
+
}).catch(() => t && b((h) => h ?? "en")), () => {
|
|
179
|
+
t = !1, clearTimeout(S);
|
|
180
|
+
};
|
|
181
|
+
}, [g, c]);
|
|
182
|
+
const i = g.getFixedT(
|
|
183
|
+
n && n !== "en" ? [n, "en"] : "en",
|
|
184
|
+
"ui"
|
|
185
|
+
), l = ye(e), R = l.key === "maintenance" && f ? Ne(f, n ?? "en") : void 0, C = z(null), _ = z(null);
|
|
186
|
+
T(() => {
|
|
187
|
+
var u;
|
|
188
|
+
const t = String(e);
|
|
189
|
+
!n || !P || _.current === t || (_.current = t, (u = C.current) == null || u.focus({ preventScroll: !0 }));
|
|
190
|
+
}, [n, P, e]);
|
|
191
|
+
const X = ["h1", "h2", "h3"][V - 1], Z = p ?? (() => window.location.reload()), x = l.primary === "login" && !a ? "retry" : l.primary, N = (t, u, w, S) => /* @__PURE__ */ r(
|
|
192
|
+
L,
|
|
193
|
+
{
|
|
194
|
+
intent: S,
|
|
195
|
+
size: "lg",
|
|
196
|
+
flipIconInRtl: t === "login",
|
|
197
|
+
asChild: !0,
|
|
198
|
+
startIcon: w,
|
|
199
|
+
"data-action": t,
|
|
200
|
+
children: /* @__PURE__ */ r("a", { href: F(u), children: i(`errorPage.actions.${t}`) })
|
|
201
|
+
},
|
|
202
|
+
t
|
|
203
|
+
), m = [];
|
|
204
|
+
return s ? m.push(
|
|
205
|
+
typeof s.href == "string" ? /* @__PURE__ */ r(
|
|
206
|
+
L,
|
|
207
|
+
{
|
|
208
|
+
intent: "primary",
|
|
209
|
+
size: "lg",
|
|
210
|
+
asChild: !0,
|
|
211
|
+
startIcon: s.icon,
|
|
212
|
+
"data-action": "custom",
|
|
213
|
+
children: /* @__PURE__ */ r("a", { href: F(s.href), children: s.label })
|
|
214
|
+
},
|
|
215
|
+
"custom"
|
|
216
|
+
) : /* @__PURE__ */ r(
|
|
217
|
+
L,
|
|
218
|
+
{
|
|
219
|
+
intent: "primary",
|
|
220
|
+
size: "lg",
|
|
221
|
+
startIcon: s.icon,
|
|
222
|
+
onClick: s.onClick,
|
|
223
|
+
"data-action": "custom",
|
|
224
|
+
children: s.label
|
|
225
|
+
},
|
|
226
|
+
"custom"
|
|
227
|
+
)
|
|
228
|
+
) : x === "retry" ? m.push(
|
|
229
|
+
/* @__PURE__ */ r(
|
|
230
|
+
L,
|
|
231
|
+
{
|
|
232
|
+
intent: "primary",
|
|
233
|
+
size: "lg",
|
|
234
|
+
startIcon: /* @__PURE__ */ r(ce, { "aria-hidden": "true" }),
|
|
235
|
+
onClick: Z,
|
|
236
|
+
"data-action": "retry",
|
|
237
|
+
children: i("errorPage.actions.retry")
|
|
238
|
+
},
|
|
239
|
+
"retry"
|
|
240
|
+
)
|
|
241
|
+
) : x === "login" && a && m.push(
|
|
242
|
+
N("login", a, /* @__PURE__ */ r(le, { "aria-hidden": "true" }), "primary")
|
|
243
|
+
), e !== "offline" && l.key !== "maintenance" && !(s && x === "home") && m.push(
|
|
244
|
+
N(
|
|
245
|
+
"home",
|
|
246
|
+
o,
|
|
247
|
+
/* @__PURE__ */ r(pe, { "aria-hidden": "true" }),
|
|
248
|
+
x === "home" ? "primary" : "secondary"
|
|
249
|
+
)
|
|
250
|
+
), d && m.push(
|
|
251
|
+
N(
|
|
252
|
+
"support",
|
|
253
|
+
d,
|
|
254
|
+
/* @__PURE__ */ r(ue, { "aria-hidden": "true" }),
|
|
255
|
+
"ghost"
|
|
256
|
+
)
|
|
257
|
+
), /* @__PURE__ */ r(
|
|
258
|
+
U,
|
|
259
|
+
{
|
|
260
|
+
ref: W,
|
|
261
|
+
"data-component": "error-page",
|
|
262
|
+
"data-status": String(e),
|
|
263
|
+
lang: n ?? void 0,
|
|
264
|
+
"aria-busy": n ? void 0 : !0,
|
|
265
|
+
dir: n && Ee.has(n) ? "rtl" : "ltr",
|
|
266
|
+
className: we({ layout: Y, surface: q, className: K }),
|
|
267
|
+
...Q,
|
|
268
|
+
children: /* @__PURE__ */ E(
|
|
269
|
+
"div",
|
|
270
|
+
{
|
|
271
|
+
className: n ? "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-lg)] ds:text-center ds:[max-inline-size:32rem]" : "ds:invisible",
|
|
272
|
+
children: [
|
|
273
|
+
/* @__PURE__ */ r(se, { mood: O ?? l.mood }),
|
|
274
|
+
/* @__PURE__ */ E("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
275
|
+
/* @__PURE__ */ E(
|
|
276
|
+
X,
|
|
277
|
+
{
|
|
278
|
+
ref: C,
|
|
279
|
+
tabIndex: -1,
|
|
280
|
+
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:outline-none",
|
|
281
|
+
children: [
|
|
282
|
+
$ && typeof e == "number" && /* @__PURE__ */ r("span", { className: "type-label ds:text-[var(--muted-foreground)]", children: i("errorPage.statusLabel", { status: e }) }),
|
|
283
|
+
/* @__PURE__ */ r("span", { className: "type-title-page", children: G ?? i(`errorPage.status.${l.key}.title`) })
|
|
284
|
+
]
|
|
285
|
+
}
|
|
286
|
+
),
|
|
287
|
+
/* @__PURE__ */ r("p", { className: "type-body ds:text-[var(--muted-foreground)]", children: j ?? i(`errorPage.status.${l.key}.message`) }),
|
|
288
|
+
R && /* @__PURE__ */ r("p", { className: "type-body ds:font-semibold", children: i("errorPage.backAt", { time: R }) })
|
|
289
|
+
] }),
|
|
290
|
+
m.length > 0 && /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-center ds:gap-[var(--spacing-sm)]", children: m }),
|
|
291
|
+
v && /* @__PURE__ */ E("p", { className: "type-body-sm ds:text-[var(--muted-foreground)]", children: [
|
|
292
|
+
i("errorPage.reference", { id: v }),
|
|
293
|
+
/* @__PURE__ */ r("br", {}),
|
|
294
|
+
i("errorPage.referenceHint")
|
|
295
|
+
] }),
|
|
296
|
+
H && /* @__PURE__ */ r(te, { decorative: !0, size: "sm", className: "ds:opacity-70" })
|
|
297
|
+
]
|
|
298
|
+
}
|
|
299
|
+
)
|
|
300
|
+
}
|
|
301
|
+
);
|
|
302
|
+
}
|
|
303
|
+
);
|
|
304
|
+
Se.displayName = "ErrorPage";
|
|
305
|
+
export {
|
|
306
|
+
ve as E,
|
|
307
|
+
fe as a,
|
|
308
|
+
Se as b,
|
|
309
|
+
ye as e,
|
|
310
|
+
xe as r
|
|
311
|
+
};
|
|
312
|
+
//# sourceMappingURL=error-page-C15GfNEj.js.map
|
package/dist/_chunks/{error-page-illustration-QGJAvuFB.js → error-page-illustration-bFti0VEc.js}
RENAMED
|
@@ -1,6 +1,22 @@
|
|
|
1
|
-
import { jsx as r, jsxs as t, Fragment as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { M as s, A as x, P as l, C as
|
|
1
|
+
import { jsx as r, jsxs as t, Fragment as i } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as L, useState as N, useEffect as $ } from "react";
|
|
3
|
+
import { M as s, A as x, P as l, C as E } from "./mark-pieces-m_rn1mAc.js";
|
|
4
|
+
const rr = [
|
|
5
|
+
"jumbled",
|
|
6
|
+
"locked",
|
|
7
|
+
"roped",
|
|
8
|
+
"lost",
|
|
9
|
+
"wrong-way",
|
|
10
|
+
"vanished",
|
|
11
|
+
"asleep",
|
|
12
|
+
"patched",
|
|
13
|
+
"melt",
|
|
14
|
+
"unplugged",
|
|
15
|
+
"rebuild",
|
|
16
|
+
"snail",
|
|
17
|
+
"adrift",
|
|
18
|
+
"puzzled"
|
|
19
|
+
];
|
|
4
20
|
function h({ name: n }) {
|
|
5
21
|
return /* @__PURE__ */ r(
|
|
6
22
|
l,
|
|
@@ -27,24 +43,24 @@ function c({ cx: n = 74, rx: e = 46 }) {
|
|
|
27
43
|
}
|
|
28
44
|
);
|
|
29
45
|
}
|
|
30
|
-
const
|
|
31
|
-
function
|
|
46
|
+
const O = "ds:[transform-box:fill-box] ds:origin-top ds:motion-safe:animate-[error-page-drip_calc(var(--animation-duration)*15)_ease-in-out_1]", W = "ds:motion-safe:animate-[error-page-drop_calc(var(--animation-duration)*12)_ease-in_2]", y = "ds:[transform-box:fill-box] ds:origin-bottom ds:motion-safe:animate-[error-page-rock_calc(var(--animation-duration)*20)_ease-in-out_1]", b = "ds:[transform-box:fill-box] ds:origin-center ds:motion-safe:animate-[error-page-bob_calc(var(--animation-duration)*14)_ease-in-out_1]", v = "ds:[transform-box:fill-box] ds:origin-top ds:motion-safe:animate-[error-page-swing_calc(var(--animation-duration)*18)_ease-in-out_1]", R = "ds:[transform-box:fill-box] ds:origin-center ds:motion-safe:animate-[error-page-wiggle_calc(var(--animation-duration)*10)_ease-in-out_2]", _ = "ds:[transform-box:fill-box] ds:origin-center ds:motion-safe:animate-[error-page-rise_calc(var(--animation-duration)*16)_ease-out_1]", M = "ds:motion-safe:animate-[error-page-flicker_calc(var(--animation-duration)*6)_steps(1)_4]", P = "ds:motion-safe:animate-[error-page-crawl_calc(var(--animation-duration)*24)_ease-in-out_1]", A = "ds:motion-safe:animate-[error-page-bump_calc(var(--animation-duration)*12)_ease-in-out_2]", w = "ds:[transform-box:fill-box] ds:origin-center ds:motion-safe:animate-[error-page-breathe_calc(var(--animation-duration)*20)_ease-in-out_1]", u = "ds:[animation-delay:calc(var(--animation-duration)*5)]", m = "ds:[animation-delay:calc(var(--animation-duration)*9)]", j = "ds:[transform-box:fill-box] ds:origin-center ds:motion-safe:animate-[error-page-pop_calc(var(--animation-duration)*3)_ease-out_1]";
|
|
47
|
+
function S() {
|
|
32
48
|
const n = {
|
|
33
49
|
top: 75,
|
|
34
50
|
right: -60,
|
|
35
51
|
left: 40,
|
|
36
52
|
bottom: -95
|
|
37
53
|
};
|
|
38
|
-
return /* @__PURE__ */ t(
|
|
39
|
-
x.map((e,
|
|
40
|
-
const [
|
|
41
|
-
return /* @__PURE__ */ r("g", { transform: `rotate(${n[e]} ${
|
|
54
|
+
return /* @__PURE__ */ t(i, { children: [
|
|
55
|
+
x.map((e, a) => {
|
|
56
|
+
const [o, d] = E[e];
|
|
57
|
+
return /* @__PURE__ */ r("g", { transform: `rotate(${n[e]} ${o} ${d})`, children: /* @__PURE__ */ r("g", { className: `${R} ${a % 2 ? u : ""}`, children: /* @__PURE__ */ r(l, { name: e }) }) }, e);
|
|
42
58
|
}),
|
|
43
59
|
/* @__PURE__ */ r(c, {})
|
|
44
60
|
] });
|
|
45
61
|
}
|
|
46
|
-
function
|
|
47
|
-
return /* @__PURE__ */ t(
|
|
62
|
+
function D() {
|
|
63
|
+
return /* @__PURE__ */ t(i, { children: [
|
|
48
64
|
/* @__PURE__ */ r(s, {}),
|
|
49
65
|
/* @__PURE__ */ t("g", { className: v, children: [
|
|
50
66
|
/* @__PURE__ */ r(
|
|
@@ -84,13 +100,13 @@ function S() {
|
|
|
84
100
|
/* @__PURE__ */ r(c, {})
|
|
85
101
|
] });
|
|
86
102
|
}
|
|
87
|
-
function
|
|
103
|
+
function I() {
|
|
88
104
|
const n = (e) => /* @__PURE__ */ t("g", { fill: "var(--muted-foreground)", children: [
|
|
89
105
|
/* @__PURE__ */ r("rect", { x: e - 3, y: "158", width: "6", height: "48", rx: "3" }),
|
|
90
106
|
/* @__PURE__ */ r("circle", { cx: e, cy: "157", r: "6" }),
|
|
91
107
|
/* @__PURE__ */ r("rect", { x: e - 11, y: "202", width: "22", height: "5", rx: "2.5" })
|
|
92
108
|
] });
|
|
93
|
-
return /* @__PURE__ */ t(
|
|
109
|
+
return /* @__PURE__ */ t(i, { children: [
|
|
94
110
|
/* @__PURE__ */ r(s, {}),
|
|
95
111
|
n(8),
|
|
96
112
|
n(140),
|
|
@@ -106,8 +122,8 @@ function T() {
|
|
|
106
122
|
) })
|
|
107
123
|
] });
|
|
108
124
|
}
|
|
109
|
-
function
|
|
110
|
-
return /* @__PURE__ */ t(
|
|
125
|
+
function T() {
|
|
126
|
+
return /* @__PURE__ */ t(i, { children: [
|
|
111
127
|
/* @__PURE__ */ r(s, { except: ["right"] }),
|
|
112
128
|
/* @__PURE__ */ r(h, { name: "right" }),
|
|
113
129
|
/* @__PURE__ */ r(c, { cx: 150, rx: 28 }),
|
|
@@ -125,7 +141,7 @@ function D() {
|
|
|
125
141
|
] });
|
|
126
142
|
}
|
|
127
143
|
function B() {
|
|
128
|
-
return /* @__PURE__ */ t(
|
|
144
|
+
return /* @__PURE__ */ t(i, { children: [
|
|
129
145
|
/* @__PURE__ */ r(s, { except: ["right"] }),
|
|
130
146
|
/* @__PURE__ */ r(h, { name: "right" }),
|
|
131
147
|
/* @__PURE__ */ r("g", { className: A, children: /* @__PURE__ */ r("g", { transform: "translate(40 0) rotate(90 121 70)", children: /* @__PURE__ */ r(l, { name: "right" }) }) }),
|
|
@@ -140,28 +156,28 @@ function C() {
|
|
|
140
156
|
[62, 118, u],
|
|
141
157
|
[20, 96, m]
|
|
142
158
|
];
|
|
143
|
-
return /* @__PURE__ */ t(
|
|
159
|
+
return /* @__PURE__ */ t(i, { children: [
|
|
144
160
|
x.map((e) => /* @__PURE__ */ r(h, { name: e }, e)),
|
|
145
|
-
n.map(([e,
|
|
161
|
+
n.map(([e, a, o]) => /* @__PURE__ */ r(
|
|
146
162
|
"rect",
|
|
147
163
|
{
|
|
148
164
|
x: e,
|
|
149
|
-
y:
|
|
165
|
+
y: a,
|
|
150
166
|
width: "6",
|
|
151
167
|
height: "6",
|
|
152
168
|
rx: "1.5",
|
|
153
|
-
className: `${_} ${
|
|
169
|
+
className: `${_} ${o}`
|
|
154
170
|
},
|
|
155
|
-
`${e}-${
|
|
171
|
+
`${e}-${a}`
|
|
156
172
|
)),
|
|
157
173
|
/* @__PURE__ */ r(c, {})
|
|
158
174
|
] });
|
|
159
175
|
}
|
|
160
176
|
function F() {
|
|
161
|
-
const n = (e,
|
|
177
|
+
const n = (e, a, o, d) => /* @__PURE__ */ r(
|
|
162
178
|
"path",
|
|
163
179
|
{
|
|
164
|
-
d: `M${e} ${
|
|
180
|
+
d: `M${e} ${a} h${o} l-${o} ${o} h${o}`,
|
|
165
181
|
fill: "none",
|
|
166
182
|
stroke: "var(--muted-foreground)",
|
|
167
183
|
strokeWidth: "3",
|
|
@@ -170,8 +186,8 @@ function F() {
|
|
|
170
186
|
className: `${_} ${d}`
|
|
171
187
|
}
|
|
172
188
|
);
|
|
173
|
-
return /* @__PURE__ */ t(
|
|
174
|
-
/* @__PURE__ */ r("g", { transform: "rotate(14 74 74)", children: /* @__PURE__ */ r("g", { className:
|
|
189
|
+
return /* @__PURE__ */ t(i, { children: [
|
|
190
|
+
/* @__PURE__ */ r("g", { transform: "rotate(14 74 74)", children: /* @__PURE__ */ r("g", { className: w, children: /* @__PURE__ */ r(s, {}) }) }),
|
|
175
191
|
n(122, 22, 10, ""),
|
|
176
192
|
n(140, 2, 13, u),
|
|
177
193
|
n(160, -16, 16, m),
|
|
@@ -179,8 +195,8 @@ function F() {
|
|
|
179
195
|
] });
|
|
180
196
|
}
|
|
181
197
|
function G() {
|
|
182
|
-
return /* @__PURE__ */ t(
|
|
183
|
-
/* @__PURE__ */ t("g", { className:
|
|
198
|
+
return /* @__PURE__ */ t(i, { children: [
|
|
199
|
+
/* @__PURE__ */ t("g", { className: w, children: [
|
|
184
200
|
/* @__PURE__ */ r(s, {}),
|
|
185
201
|
/* @__PURE__ */ r(
|
|
186
202
|
"polyline",
|
|
@@ -232,27 +248,27 @@ function G() {
|
|
|
232
248
|
function p({
|
|
233
249
|
cx: n,
|
|
234
250
|
top: e,
|
|
235
|
-
length:
|
|
236
|
-
className:
|
|
251
|
+
length: a,
|
|
252
|
+
className: o = ""
|
|
237
253
|
}) {
|
|
238
|
-
return /* @__PURE__ */ t("g", { className: `${
|
|
239
|
-
/* @__PURE__ */ r("rect", { x: n - 3.5, y: e, width: "7", height:
|
|
240
|
-
/* @__PURE__ */ r("circle", { cx: n, cy: e +
|
|
254
|
+
return /* @__PURE__ */ t("g", { className: `${O} ${o}`, children: [
|
|
255
|
+
/* @__PURE__ */ r("rect", { x: n - 3.5, y: e, width: "7", height: a, rx: "3.5" }),
|
|
256
|
+
/* @__PURE__ */ r("circle", { cx: n, cy: e + a, r: "4.2" })
|
|
241
257
|
] });
|
|
242
258
|
}
|
|
243
|
-
function
|
|
244
|
-
return /* @__PURE__ */ t(
|
|
259
|
+
function z() {
|
|
260
|
+
return /* @__PURE__ */ t(i, { children: [
|
|
245
261
|
/* @__PURE__ */ r(s, {}),
|
|
246
262
|
/* @__PURE__ */ r("path", { d: "M67 139 L99 131 L101 138 Q92 151 80 152 Q70 153 68 143 Z" }),
|
|
247
263
|
/* @__PURE__ */ r(p, { cx: 75, top: 144, length: 20, className: u }),
|
|
248
264
|
/* @__PURE__ */ r(p, { cx: 85.5, top: 141, length: 32 }),
|
|
249
265
|
/* @__PURE__ */ r(p, { cx: 96, top: 137, length: 13, className: m }),
|
|
250
|
-
/* @__PURE__ */ r("circle", { cx: "85.5", cy: "179", r: "3.2", className:
|
|
266
|
+
/* @__PURE__ */ r("circle", { cx: "85.5", cy: "179", r: "3.2", className: W }),
|
|
251
267
|
/* @__PURE__ */ r("ellipse", { cx: "86", cy: "204", rx: "30", ry: "5.5", fillOpacity: "0.3" })
|
|
252
268
|
] });
|
|
253
269
|
}
|
|
254
|
-
function
|
|
255
|
-
return /* @__PURE__ */ t(
|
|
270
|
+
function Q() {
|
|
271
|
+
return /* @__PURE__ */ t(i, { children: [
|
|
256
272
|
/* @__PURE__ */ t("g", { transform: "translate(-12 -8)", children: [
|
|
257
273
|
/* @__PURE__ */ r(l, { name: "top" }),
|
|
258
274
|
/* @__PURE__ */ r(l, { name: "left" })
|
|
@@ -277,7 +293,7 @@ function z() {
|
|
|
277
293
|
] });
|
|
278
294
|
}
|
|
279
295
|
function K() {
|
|
280
|
-
return /* @__PURE__ */ t(
|
|
296
|
+
return /* @__PURE__ */ t(i, { children: [
|
|
281
297
|
/* @__PURE__ */ r(s, { except: ["right"] }),
|
|
282
298
|
/* @__PURE__ */ r(h, { name: "right" }),
|
|
283
299
|
/* @__PURE__ */ t("g", { className: v, children: [
|
|
@@ -309,7 +325,7 @@ function K() {
|
|
|
309
325
|
] });
|
|
310
326
|
}
|
|
311
327
|
function U() {
|
|
312
|
-
return /* @__PURE__ */ t(
|
|
328
|
+
return /* @__PURE__ */ t(i, { children: [
|
|
313
329
|
/* @__PURE__ */ r(s, { except: ["right"] }),
|
|
314
330
|
/* @__PURE__ */ r(h, { name: "right" }),
|
|
315
331
|
/* @__PURE__ */ r(c, { cx: 140, rx: 34 }),
|
|
@@ -373,16 +389,16 @@ function H() {
|
|
|
373
389
|
left: [-14, 0, m],
|
|
374
390
|
bottom: [0, 14, u]
|
|
375
391
|
};
|
|
376
|
-
return /* @__PURE__ */ t(
|
|
392
|
+
return /* @__PURE__ */ t(i, { children: [
|
|
377
393
|
/* @__PURE__ */ r(c, {}),
|
|
378
394
|
x.map((e) => {
|
|
379
|
-
const [
|
|
380
|
-
return /* @__PURE__ */ r("g", { transform: `translate(${
|
|
395
|
+
const [a, o, d] = n[e];
|
|
396
|
+
return /* @__PURE__ */ r("g", { transform: `translate(${a} ${o})`, children: /* @__PURE__ */ r("g", { className: `${b} ${d}`, children: /* @__PURE__ */ r(l, { name: e }) }) }, e);
|
|
381
397
|
})
|
|
382
398
|
] });
|
|
383
399
|
}
|
|
384
400
|
function J() {
|
|
385
|
-
return /* @__PURE__ */ t(
|
|
401
|
+
return /* @__PURE__ */ t(i, { children: [
|
|
386
402
|
/* @__PURE__ */ r("g", { className: y, children: /* @__PURE__ */ r(s, {}) }),
|
|
387
403
|
/* @__PURE__ */ t("g", { className: b, children: [
|
|
388
404
|
/* @__PURE__ */ r(
|
|
@@ -402,31 +418,31 @@ function J() {
|
|
|
402
418
|
] });
|
|
403
419
|
}
|
|
404
420
|
const V = {
|
|
405
|
-
jumbled:
|
|
406
|
-
locked:
|
|
407
|
-
roped:
|
|
408
|
-
lost:
|
|
421
|
+
jumbled: S,
|
|
422
|
+
locked: D,
|
|
423
|
+
roped: I,
|
|
424
|
+
lost: T,
|
|
409
425
|
"wrong-way": B,
|
|
410
426
|
vanished: C,
|
|
411
427
|
asleep: F,
|
|
412
428
|
patched: G,
|
|
413
|
-
melt:
|
|
414
|
-
unplugged:
|
|
429
|
+
melt: z,
|
|
430
|
+
unplugged: Q,
|
|
415
431
|
rebuild: K,
|
|
416
432
|
snail: U,
|
|
417
433
|
adrift: H,
|
|
418
434
|
puzzled: J
|
|
419
435
|
}, X = 3e3;
|
|
420
|
-
function
|
|
436
|
+
function er({
|
|
421
437
|
mood: n
|
|
422
438
|
}) {
|
|
423
|
-
const e =
|
|
439
|
+
const e = L(null), [a, o] = N(!1);
|
|
424
440
|
$(() => {
|
|
425
441
|
const f = e.current;
|
|
426
442
|
if (!f) return;
|
|
427
443
|
let g;
|
|
428
444
|
const k = () => {
|
|
429
|
-
|
|
445
|
+
o(!0), clearTimeout(g), g = setTimeout(() => o(!1), X);
|
|
430
446
|
};
|
|
431
447
|
return f.addEventListener("click", k), () => {
|
|
432
448
|
f.removeEventListener("click", k), clearTimeout(g);
|
|
@@ -438,7 +454,7 @@ function rr({
|
|
|
438
454
|
{
|
|
439
455
|
ref: e,
|
|
440
456
|
"aria-hidden": "true",
|
|
441
|
-
"data-mood":
|
|
457
|
+
"data-mood": a ? "fixed" : n,
|
|
442
458
|
className: "ds:w-48 ds:select-none",
|
|
443
459
|
children: /* @__PURE__ */ r(
|
|
444
460
|
"svg",
|
|
@@ -447,13 +463,14 @@ function rr({
|
|
|
447
463
|
viewBox: "-20 -24 200 240",
|
|
448
464
|
fill: "var(--primary)",
|
|
449
465
|
className: "ds:block ds:w-full ds:h-auto ds:overflow-visible",
|
|
450
|
-
children:
|
|
466
|
+
children: a ? /* @__PURE__ */ r("g", { className: j, children: /* @__PURE__ */ r(s, {}) }) : /* @__PURE__ */ r(d, {})
|
|
451
467
|
}
|
|
452
468
|
)
|
|
453
469
|
}
|
|
454
470
|
);
|
|
455
471
|
}
|
|
456
472
|
export {
|
|
457
|
-
rr as E
|
|
473
|
+
rr as E,
|
|
474
|
+
er as a
|
|
458
475
|
};
|
|
459
|
-
//# sourceMappingURL=error-page-illustration-
|
|
476
|
+
//# sourceMappingURL=error-page-illustration-bFti0VEc.js.map
|
|
@@ -11,7 +11,7 @@ import { i as rs } from "./safe-href-5dbsfbQn.js";
|
|
|
11
11
|
import { u as ws, a as xs, A as Fs, b as bs, E as Ns, d as ys, c as Es } from "./auth-form-parts-Celi-TLV.js";
|
|
12
12
|
import { u as Is } from "./use-registration-submit-DxCWic5_.js";
|
|
13
13
|
import { M as Rs } from "./matrix-rain-sDOUUwZp.js";
|
|
14
|
-
import {
|
|
14
|
+
import { a as Ls } from "./error-page-illustration-bFti0VEc.js";
|
|
15
15
|
const Cs = ["email", "password"], Bs = z(
|
|
16
16
|
"ds:flex ds:w-full ds:flex-col ds:items-center ds:justify-center ds:gap-[var(--spacing-lg)] ds:text-start ds:text-[var(--foreground)] ds:lg:flex-row ds:lg:items-stretch"
|
|
17
17
|
), V = z("ds:w-full ds:max-w-[400px]"), As = (t) => Object.values(t).some(Boolean), ss = (t) => Cs.find((i) => t[i]) ?? (t.form ? "password" : void 0), qs = es(
|
|
@@ -272,4 +272,4 @@ export {
|
|
|
272
272
|
Ms as a,
|
|
273
273
|
qs as b
|
|
274
274
|
};
|
|
275
|
-
//# sourceMappingURL=login-dev-card-
|
|
275
|
+
//# sourceMappingURL=login-dev-card-q7iTojvV.js.map
|
package/dist/agent-catalog.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"packageVersion": "1.54.
|
|
3
|
+
"packageVersion": "1.54.2",
|
|
4
4
|
"components": [
|
|
5
5
|
{
|
|
6
6
|
"kind": "component",
|
|
@@ -19019,6 +19019,10 @@
|
|
|
19019
19019
|
{
|
|
19020
19020
|
"component": "button",
|
|
19021
19021
|
"as": "support"
|
|
19022
|
+
},
|
|
19023
|
+
{
|
|
19024
|
+
"component": "button",
|
|
19025
|
+
"as": "custom"
|
|
19022
19026
|
}
|
|
19023
19027
|
],
|
|
19024
19028
|
"workflows": [
|