@alfadocs/ui-kit-debug 1.54.0 → 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/{booking-CPUjwxj0.js → booking-BN7TXe27.js} +1542 -1532
- package/dist/_chunks/booking-BN7TXe27.js.map +1 -0
- package/dist/_chunks/{contact-profile-card-h0QX4_5B.js → contact-profile-card-B-HzocbB.js} +45 -47
- package/dist/_chunks/contact-profile-card-B-HzocbB.js.map +1 -0
- package/dist/_chunks/error-page-C15GfNEj.js +312 -0
- package/dist/_chunks/error-page-C15GfNEj.js.map +1 -0
- package/dist/_chunks/{error-page-illustration-QGJAvuFB.js → error-page-illustration-bFti0VEc.js} +73 -56
- package/dist/_chunks/error-page-illustration-bFti0VEc.js.map +1 -0
- package/dist/_chunks/{login-dev-card-C7wo-Hv1.js → login-dev-card-q7iTojvV.js} +2 -2
- package/dist/_chunks/{login-dev-card-C7wo-Hv1.js.map → login-dev-card-q7iTojvV.js.map} +1 -1
- package/dist/agent-catalog.json +5 -1
- package/dist/components/booking/booking-types.d.ts +14 -2
- package/dist/components/booking/booking-types.d.ts.map +1 -1
- package/dist/components/booking/booking.d.ts.map +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/contact-profile-card/contact-profile-card.d.ts.map +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/index.js +136 -134
- package/dist/index.js.map +1 -1
- package/dist/patterns/error-page/error-page-illustration.d.ts +3 -1
- package/dist/patterns/error-page/error-page-illustration.d.ts.map +1 -1
- package/dist/patterns/error-page/error-page.d.ts +34 -2
- package/dist/patterns/error-page/error-page.d.ts.map +1 -1
- package/dist/patterns/error-page/index.d.ts +2 -1
- package/dist/patterns/error-page/index.d.ts.map +1 -1
- package/dist/patterns/error-page/index.js +7 -5
- package/dist/patterns/error-page/index.js.map +1 -1
- package/dist/patterns/login-form/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/booking-CPUjwxj0.js.map +0 -1
- package/dist/_chunks/contact-profile-card-h0QX4_5B.js.map +0 -1
- package/dist/_chunks/error-page-CKFJlekz.js +0 -275
- package/dist/_chunks/error-page-CKFJlekz.js.map +0 -1
- package/dist/_chunks/error-page-illustration-QGJAvuFB.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-page-C15GfNEj.js","sources":["../../node_modules/lucide-react/dist/esm/icons/circle-question-mark.mjs","../../node_modules/lucide-react/dist/esm/icons/house.mjs","../../src/patterns/error-page/error-page-statuses.ts","../../src/patterns/error-page/error-page-locale.ts","../../src/patterns/error-page/error-page.tsx"],"sourcesContent":["/**\n * @license lucide-react v1.22.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconNode = [\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"10\", key: \"1mglay\" }],\n [\"path\", { d: \"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3\", key: \"1u773s\" }],\n [\"path\", { d: \"M12 17h.01\", key: \"p32p05\" }]\n];\nconst CircleQuestionMark = createLucideIcon(\"circle-question-mark\", __iconNode);\n\nexport { __iconNode, CircleQuestionMark as default };\n//# sourceMappingURL=circle-question-mark.mjs.map\n","/**\n * @license lucide-react v1.22.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconNode = [\n [\"path\", { d: \"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8\", key: \"5wwlr5\" }],\n [\n \"path\",\n {\n 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\",\n key: \"r6nss1\"\n }\n ]\n];\nconst House = createLucideIcon(\"house\", __iconNode);\n\nexport { __iconNode, House as default };\n//# sourceMappingURL=house.mjs.map\n","import type { ErrorPageMood } from './error-page-illustration';\n\n/** The statuses with their own copy. Anything else shows `generic`. */\nexport const ERROR_PAGE_STATUSES = [\n 400,\n 401,\n 403,\n 404,\n 405,\n 410,\n 419,\n 429,\n 500,\n 502,\n 503,\n 504,\n 'offline',\n 'maintenance',\n] as const;\n\nexport type ErrorPageKnownStatus = (typeof ERROR_PAGE_STATUSES)[number];\n\n/** What the status's main button does. */\nexport type ErrorPagePrimaryAction = 'home' | 'retry' | 'login';\n\nexport interface ErrorPageStatusSpec {\n /** Key under `ui.errorPage.status.*`. */\n key: string;\n /** How the Alfadocs mark shows the trouble. */\n mood: ErrorPageMood;\n primary: ErrorPagePrimaryAction;\n}\n\nconst SPECS: Record<ErrorPageKnownStatus | 'generic', ErrorPageStatusSpec> = {\n 400: { key: 'badRequest', mood: 'jumbled', primary: 'home' },\n 401: { key: 'unauthorised', mood: 'locked', primary: 'login' },\n 403: { key: 'forbidden', mood: 'roped', primary: 'home' },\n 404: { key: 'notFound', mood: 'lost', primary: 'home' },\n 405: { key: 'methodNotAllowed', mood: 'wrong-way', primary: 'home' },\n 410: { key: 'gone', mood: 'vanished', primary: 'home' },\n 419: { key: 'expired', mood: 'asleep', primary: 'login' },\n 429: { key: 'tooManyRequests', mood: 'melt', primary: 'retry' },\n 500: { key: 'serverError', mood: 'patched', primary: 'retry' },\n 502: { key: 'badGateway', mood: 'unplugged', primary: 'retry' },\n 503: { key: 'maintenance', mood: 'rebuild', primary: 'retry' },\n 504: { key: 'timeout', mood: 'snail', primary: 'retry' },\n offline: { key: 'offline', mood: 'adrift', primary: 'retry' },\n maintenance: { key: 'maintenance', mood: 'rebuild', primary: 'retry' },\n generic: { key: 'generic', mood: 'puzzled', primary: 'home' },\n};\n\n/** The spec for any status; unknown ones fall back to `generic`. */\nexport function errorPageStatusSpec(\n status: number | 'offline' | 'maintenance',\n): ErrorPageStatusSpec {\n return (ERROR_PAGE_STATUSES as readonly (number | string)[]).includes(status)\n ? SPECS[status as ErrorPageKnownStatus]\n : SPECS.generic;\n}\n","import type { i18n as I18n } from 'i18next';\nimport { loadLocale } from '../../i18n/config';\nimport { LOCALES_WITH_BUNDLES } from '../../i18n/supported-locales';\n\n/** Where LocalePicker and HeaderSettings save a language the visitor\n * picked: `LOCALE_STORAGE_KEY` in locale-picker.tsx, copied so the error\n * page does not bundle the picker. */\nexport const SAVED_LOCALE_KEY = 'alfadocs-ui.locale';\n\n/** Used when nothing else names a language the kit ships. */\nexport const ERROR_PAGE_FALLBACK_LOCALE = 'it';\n\nexport interface ErrorPageLocaleSources {\n /** Host-supplied locale. Always wins when the kit ships it. */\n locale?: string;\n /** True when `<html lang>` is only the site default, not the visitor's\n * language: for example an error raised before routing read it. */\n hostLocaleIsDefault?: boolean;\n /** Test seams; the browser values are read when omitted. */\n saved?: string | null;\n browser?: readonly string[];\n document?: string;\n}\n\nconst shipped = (tag: string | null | undefined): string | undefined => {\n if (!tag) return undefined;\n const base = tag.toLowerCase().replaceAll('_', '-').split('-')[0];\n // The legacy `cn` code is Chinese.\n const code = base === 'cn' ? 'zh' : base;\n return (LOCALES_WITH_BUNDLES as readonly string[]).includes(code)\n ? code\n : undefined;\n};\n\nconst readSaved = (): string | null => {\n try {\n return window.localStorage.getItem(SAVED_LOCALE_KEY);\n } catch {\n return null;\n }\n};\n\n/**\n * The language to show an error in. First match wins:\n * 1. the `locale` prop;\n * 2. the language the visitor picked before in the kit;\n * 3. the browser's languages, in order;\n * 4. `<html lang>`, unless the host says it is only its default;\n * 5. Italian.\n * Only languages the kit ships count at each step.\n */\nexport function resolveErrorPageLocale(\n sources: ErrorPageLocaleSources = {},\n): string {\n const inBrowser = typeof window !== 'undefined';\n const saved =\n sources.saved !== undefined\n ? sources.saved\n : inBrowser\n ? readSaved()\n : null;\n const browser =\n sources.browser ??\n (inBrowser && typeof navigator !== 'undefined'\n ? navigator.languages?.length\n ? navigator.languages\n : [navigator.language]\n : []);\n const documentLang =\n sources.document ??\n (typeof document !== 'undefined' ? document.documentElement.lang : '');\n\n const candidates = [\n sources.locale,\n saved,\n ...browser,\n sources.hostLocaleIsDefault ? undefined : documentLang,\n ];\n for (const candidate of candidates) {\n const code = shipped(candidate);\n if (code) return code;\n }\n return ERROR_PAGE_FALLBACK_LOCALE;\n}\n\n/** Fetches the kit's bundle for a language without changing the host's\n * active language. Rejects when the bundle cannot load. */\nexport const loadErrorPageLocale = (\n language: string,\n instance: I18n,\n): Promise<void> => loadLocale(language, instance);\n","/* -------------------------------------------------------------------- */\n/* ErrorPage — one branded, translated page for every HTTP error. */\n/* */\n/* A status picks the illustration, the copy and the main action (home, */\n/* retry or log in); a host may override each, e.g. to show an outcome */\n/* of its own. The language is chosen in the browser, so a host */\n/* whose server rendered the error before it knew the visitor's */\n/* language still shows the right one: see `resolveErrorPageLocale`. */\n/* -------------------------------------------------------------------- */\n\nimport {\n forwardRef,\n useEffect,\n useMemo,\n useRef,\n useState,\n type HTMLAttributes,\n type ReactNode,\n type Ref,\n} from 'react';\nimport type { i18n as I18n } from 'i18next';\nimport { useTranslation } from 'react-i18next';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { CircleQuestionMark, House, LogIn, RotateCcw } from 'lucide-react';\nimport { Button } from '../../components/button';\nimport { Logo } from '../../components/logo';\nimport { isSafeHref } from '../../components/_shared/safe-href';\nimport { errorPageStatusSpec } from './error-page-statuses';\nimport {\n ErrorPageIllustration,\n type ErrorPageMood,\n} from './error-page-illustration';\nimport {\n loadErrorPageLocale,\n resolveErrorPageLocale,\n} from './error-page-locale';\n\nconst errorPageVariants = cva(\n '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)]',\n {\n variants: {\n layout: {\n /** Fills the viewport: the whole page is the error. */\n page: 'ds:min-h-screen',\n /** Fills its container, under the host's own header. */\n embedded: 'ds:[min-block-size:100%]',\n },\n surface: {\n /** The page background. */\n background: '',\n /** A card's surface, for a page set inside a `Card`. The mark\n * cuts its holes with `--background`, so that is re-pointed too. */\n card: 'ds:[--background:var(--card)] ds:[--foreground:var(--card-foreground)]',\n },\n },\n defaultVariants: { layout: 'page', surface: 'background' },\n },\n);\n\nconst RTL = new Set(['ar']);\n\n/** How long to wait for the chosen language before showing English. An\n * error page often appears because the network is failing. */\nconst LANGUAGE_PATIENCE = 1500;\n\n/** \"22:00\" today, \"30 set, 22:00\" on another day, and with the year when\n * it is not this year. Undefined for a date that does not parse, so a\n * bad value shows nothing. */\nfunction formatBackAt(\n value: Date | string,\n locale: string,\n): string | undefined {\n const at = value instanceof Date ? value : new Date(value);\n if (Number.isNaN(at.getTime())) return undefined;\n const now = new Date();\n const day =\n now.toDateString() === at.toDateString()\n ? {}\n : ({\n day: 'numeric',\n month: 'short',\n ...(now.getFullYear() === at.getFullYear()\n ? {}\n : { year: 'numeric' }),\n } as const);\n // Plain `en` formats the US way; the kit writes British English.\n return new Intl.DateTimeFormat(locale === 'en' ? 'en-GB' : locale, {\n ...day,\n hour: '2-digit',\n minute: '2-digit',\n }).format(at);\n}\n\n/** True when the instance holds error page copy for a language. A host\n * may register its own `ui` bundle, even a partial one for this page:\n * the kit's full bundle is still merged in, and English backs every\n * key, so a gap never shows as a raw key. */\nconst hasCopy = (instance: I18n, language: string): boolean =>\n Boolean(instance.getResource(language, 'ui', 'errorPage'));\n\n/** Links the page may render: paths on the same site, and web, mail and\n * phone addresses written out in full. Anything else becomes `#`. */\nconst safeHref = (href: string): string => (isSafeHref(href) ? href : '#');\n\n/** A host's own main action: a link (`href`) or a button (`onClick`).\n * The label is shown as given, so pass it already translated. */\nexport type ErrorPageCustomAction =\n | { label: string; href: string; onClick?: never; icon?: ReactNode }\n | { label: string; onClick: () => void; href?: never; icon?: ReactNode };\n\nexport interface ErrorPageProps\n extends\n Omit<HTMLAttributes<HTMLElement>, 'title'>,\n VariantProps<typeof errorPageVariants> {\n /** HTTP status, `'offline'` for a network error in the browser, or\n * `'maintenance'` for planned downtime with no HTTP error behind it.\n * Statuses without their own copy show the generic page. */\n status: number | 'offline' | 'maintenance';\n /** Where \"Go to the home page\" leads. Default `/`. Like every link\n * here it may be a path on the same site or an `http(s)`, `mailto:`\n * or `tel:` address; anything else is replaced with `#`. */\n homeHref?: string;\n /** Where \"Log in\" leads for 401 and 419. Without it, those statuses\n * offer \"Try again\" instead. */\n loginHref?: string;\n /** Adds \"Contact support\". A path, a web address, `mailto:` or `tel:`. */\n supportHref?: string;\n /** \"Try again\". Default: reload the page. */\n onRetry?: () => void;\n /** Shown for support to quote, e.g. the host's X-Request-Id. */\n requestId?: string;\n /** When planned maintenance should end, for 503 and `'maintenance'`.\n * Shown in the visitor's own time zone and language. Pass a `Date`, or\n * an ISO string with its offset (`2026-10-01T22:00:00+02:00`): without\n * one the browser reads it as the visitor's local time. */\n backAt?: Date | string;\n /** The host's language. Always wins when the kit ships it. */\n locale?: string;\n /** True when `<html lang>` is only the site default, as on an error\n * raised before routing: the page then skips it when choosing. */\n hostLocaleIsDefault?: boolean;\n /** Replaces the status title. Pass it already translated. */\n title?: string;\n /** Replaces the status message. Pass it already translated. */\n message?: string;\n /** Replaces the status's main button with the host's own, e.g. \"Book\n * an appointment\". Where the main button was Home (400, 403, 404,\n * 405, 410 and any status without its own copy), the home link goes\n * with it; where it was \"Try again\" or \"Log in\", the home link\n * stays as the second button. */\n primaryAction?: ErrorPageCustomAction;\n /** Picks the mark's mood whatever the status, e.g. for a status\n * without its own copy. */\n mood?: ErrorPageMood;\n /** Shows \"Error 404\" above the title. Default true. Turn it off when\n * the page reports an outcome inside an app rather than an HTTP\n * error. */\n showStatusLabel?: boolean;\n /** Signs the page with the Alfadocs wordmark. Default true. */\n showLogo?: boolean;\n /** Renders as `<main>` (default) or `<div>` when the host already has\n * a main landmark. */\n as?: 'main' | 'div';\n /** Moves focus to the heading once shown, and again when the status\n * changes. Default true. */\n focusHeading?: boolean;\n /** The heading's level. Default 1; pass 2 inside an app page that\n * already has its own `h1`. */\n headingLevel?: 1 | 2 | 3;\n}\n\nexport const ErrorPage = forwardRef<HTMLElement, ErrorPageProps>(\n (\n {\n status,\n homeHref = '/',\n loginHref,\n supportHref,\n onRetry,\n requestId,\n backAt,\n locale,\n hostLocaleIsDefault = false,\n title,\n message,\n primaryAction,\n mood,\n showStatusLabel = true,\n showLogo = true,\n as: Root = 'main',\n focusHeading = true,\n headingLevel = 1,\n layout,\n surface,\n className,\n ...rest\n },\n ref,\n ) => {\n const { i18n } = useTranslation('ui');\n const language = useMemo(\n () => resolveErrorPageLocale({ locale, hostLocaleIsDefault }),\n [locale, hostLocaleIsDefault],\n );\n // The chosen language may not be loaded yet. Until it is, the page\n // stays hidden rather than flashing English. If it cannot load, or\n // takes too long (offline, a failing gateway), the page shows in\n // English and switches over if the language arrives after all.\n const [shown, setShown] = useState<string | null>(() =>\n hasCopy(i18n, language) ? language : null,\n );\n // Bumped when a bundle lands, so copy that arrives then is drawn.\n const [, setLoaded] = useState(0);\n useEffect(() => {\n let current = true;\n const ready = hasCopy(i18n, language);\n setShown(ready ? language : null);\n const landed = () => current && setLoaded((count) => count + 1);\n // The kit's full bundles: English backs every key, and a host's own\n // instance may hold neither yet. A loaded bundle resolves at once.\n void loadErrorPageLocale('en', i18n)\n .then(landed)\n .catch(() => undefined);\n const patience = ready\n ? undefined\n : setTimeout(\n () => current && setShown((now) => now ?? 'en'),\n LANGUAGE_PATIENCE,\n );\n loadErrorPageLocale(language, i18n)\n .then(() => {\n if (!current) return;\n setShown(language);\n landed();\n })\n .catch(() => current && setShown((now) => now ?? 'en'));\n return () => {\n current = false;\n clearTimeout(patience);\n };\n }, [i18n, language]);\n\n // The chosen language first, English for any key it lacks.\n const t = i18n.getFixedT(\n shown && shown !== 'en' ? [shown, 'en'] : 'en',\n 'ui',\n );\n const spec = errorPageStatusSpec(status);\n const backTime =\n spec.key === 'maintenance' && backAt\n ? formatBackAt(backAt, shown ?? 'en')\n : undefined;\n\n const headingRef = useRef<HTMLHeadingElement | null>(null);\n // Once per status: copy that arrives late (the kit's language or the\n // host's) must not pull focus back, but a different status shown in\n // place must be announced.\n const focusedFor = useRef<string | null>(null);\n useEffect(() => {\n const key = String(status);\n if (!shown || !focusHeading || focusedFor.current === key) return;\n focusedFor.current = key;\n headingRef.current?.focus({ preventScroll: true });\n }, [shown, focusHeading, status]);\n const Heading = (['h1', 'h2', 'h3'] as const)[headingLevel - 1];\n\n const retry = onRetry ?? (() => window.location.reload());\n const primary =\n spec.primary === 'login' && !loginHref ? 'retry' : spec.primary;\n\n const link = (\n action: 'home' | 'login' | 'support',\n href: string,\n icon: ReactNode,\n intent: 'primary' | 'secondary' | 'ghost',\n ) => (\n <Button\n key={action}\n intent={intent}\n size=\"lg\"\n flipIconInRtl={action === 'login'}\n asChild\n startIcon={icon}\n data-action={action}\n >\n <a href={safeHref(href)}>{t(`errorPage.actions.${action}`)}</a>\n </Button>\n );\n\n const actions: ReactNode[] = [];\n if (primaryAction) {\n actions.push(\n typeof primaryAction.href === 'string' ? (\n <Button\n key=\"custom\"\n intent=\"primary\"\n size=\"lg\"\n asChild\n startIcon={primaryAction.icon}\n data-action=\"custom\"\n >\n <a href={safeHref(primaryAction.href)}>{primaryAction.label}</a>\n </Button>\n ) : (\n <Button\n key=\"custom\"\n intent=\"primary\"\n size=\"lg\"\n startIcon={primaryAction.icon}\n onClick={primaryAction.onClick}\n data-action=\"custom\"\n >\n {primaryAction.label}\n </Button>\n ),\n );\n } else if (primary === 'retry') {\n actions.push(\n <Button\n key=\"retry\"\n intent=\"primary\"\n size=\"lg\"\n startIcon={<RotateCcw aria-hidden=\"true\" />}\n onClick={retry}\n data-action=\"retry\"\n >\n {t('errorPage.actions.retry')}\n </Button>,\n );\n } else if (primary === 'login' && loginHref) {\n actions.push(\n link('login', loginHref, <LogIn aria-hidden=\"true\" />, 'primary'),\n );\n }\n // Always a way back, except offline or during maintenance, where\n // there is nowhere to go, and where the host's own action replaced it.\n if (\n status !== 'offline' &&\n spec.key !== 'maintenance' &&\n !(primaryAction && primary === 'home')\n ) {\n actions.push(\n link(\n 'home',\n homeHref,\n <House aria-hidden=\"true\" />,\n primary === 'home' ? 'primary' : 'secondary',\n ),\n );\n }\n if (supportHref) {\n actions.push(\n link(\n 'support',\n supportHref,\n <CircleQuestionMark aria-hidden=\"true\" />,\n 'ghost',\n ),\n );\n }\n\n return (\n <Root\n ref={ref as Ref<HTMLDivElement>}\n data-component=\"error-page\"\n data-status={String(status)}\n lang={shown ?? undefined}\n aria-busy={shown ? undefined : true}\n dir={shown && RTL.has(shown) ? 'rtl' : 'ltr'}\n className={errorPageVariants({ layout, surface, className })}\n {...rest}\n >\n <div\n className={\n shown\n ? 'ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-lg)] ds:text-center ds:[max-inline-size:32rem]'\n : 'ds:invisible'\n }\n >\n <ErrorPageIllustration mood={mood ?? spec.mood} />\n <div className=\"ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]\">\n {/* Focus lands here, so the status label sits inside the\n heading: a screen reader would never read a label before\n it. No outline: the heading is focused by script only and\n is not in the tab order. */}\n <Heading\n ref={headingRef}\n tabIndex={-1}\n className=\"ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:outline-none\"\n >\n {showStatusLabel && typeof status === 'number' && (\n <span className=\"type-label ds:text-[var(--muted-foreground)]\">\n {t('errorPage.statusLabel', { status })}\n </span>\n )}\n <span className=\"type-title-page\">\n {title ?? t(`errorPage.status.${spec.key}.title`)}\n </span>\n </Heading>\n <p className=\"type-body ds:text-[var(--muted-foreground)]\">\n {message ?? t(`errorPage.status.${spec.key}.message`)}\n </p>\n {backTime && (\n <p className=\"type-body ds:font-semibold\">\n {t('errorPage.backAt', { time: backTime })}\n </p>\n )}\n </div>\n {actions.length > 0 && (\n <div className=\"ds:flex ds:flex-wrap ds:items-center ds:justify-center ds:gap-[var(--spacing-sm)]\">\n {actions}\n </div>\n )}\n {requestId && (\n <p className=\"type-body-sm ds:text-[var(--muted-foreground)]\">\n {t('errorPage.reference', { id: requestId })}\n <br />\n {t('errorPage.referenceHint')}\n </p>\n )}\n {showLogo && <Logo decorative size=\"sm\" className=\"ds:opacity-70\" />}\n </div>\n </Root>\n );\n },\n);\nErrorPage.displayName = 'ErrorPage';\n"],"names":["__iconNode","CircleQuestionMark","createLucideIcon","House","ERROR_PAGE_STATUSES","SPECS","errorPageStatusSpec","status","SAVED_LOCALE_KEY","ERROR_PAGE_FALLBACK_LOCALE","shipped","tag","base","code","LOCALES_WITH_BUNDLES","readSaved","resolveErrorPageLocale","sources","inBrowser","saved","browser","_a","documentLang","candidates","candidate","loadErrorPageLocale","language","instance","loadLocale","errorPageVariants","cva","RTL","LANGUAGE_PATIENCE","formatBackAt","value","locale","at","now","day","hasCopy","safeHref","href","isSafeHref","ErrorPage","forwardRef","homeHref","loginHref","supportHref","onRetry","requestId","backAt","hostLocaleIsDefault","title","message","primaryAction","mood","showStatusLabel","showLogo","Root","focusHeading","headingLevel","layout","surface","className","rest","ref","i18n","useTranslation","useMemo","shown","setShown","useState","setLoaded","useEffect","current","ready","landed","count","patience","t","spec","backTime","headingRef","useRef","focusedFor","key","Heading","retry","primary","link","action","icon","intent","jsx","Button","actions","RotateCcw","LogIn","jsxs","ErrorPageIllustration","Logo"],"mappings":";;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,MAAMA,KAAa;AAAA,EACjB,CAAC,UAAU,EAAE,IAAI,MAAM,IAAI,MAAM,GAAG,MAAM,KAAK,UAAU;AAAA,EACzD,CAAC,QAAQ,EAAE,GAAG,wCAAwC,KAAK,SAAQ,CAAE;AAAA,EACrE,CAAC,QAAQ,EAAE,GAAG,cAAc,KAAK,SAAQ,CAAE;AAC7C,GACMC,KAAqBC,EAAiB,wBAAwBF,EAAU;ACd9E;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,MAAMA,KAAa;AAAA,E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cAED9C,KACC,gBAAAiD,EAAC,KAAA,EAAE,WAAU,kDACV,UAAA;AAAA,gBAAAnB,EAAE,uBAAuB,EAAE,IAAI9B,EAAA,CAAW;AAAA,kCAC1C,MAAA,EAAG;AAAA,gBACH8B,EAAE,yBAAyB;AAAA,cAAA,GAC9B;AAAA,cAEDtB,uBAAa2C,IAAA,EAAK,YAAU,IAAC,MAAK,MAAK,WAAU,gBAAA,CAAgB;AAAA,YAAA;AAAA,UAAA;AAAA,QAAA;AAAA,MACpE;AAAA,IAAA;AAAA,EAGN;AACF;AACAzD,GAAU,cAAc;","x_google_ignoreList":[0,1]}
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-page-illustration-bFti0VEc.js","sources":["../../src/patterns/error-page/error-page-illustration.tsx"],"sourcesContent":["/* -------------------------------------------------------------------- */\n/* ErrorPageIllustration — the Alfadocs mark, having a bad day. */\n/* */\n/* One mood per error, all drawn from the four pieces of the mark. */\n/* Easter egg: click the mark and it snaps back together for a moment. */\n/* Decorative and pointer-only on purpose: nothing here is needed to */\n/* recover from the error. Every motion scales off */\n/* --animation-duration, so reduced motion and the accessible themes */\n/* hold it still, and each mood settles after about five seconds. */\n/* -------------------------------------------------------------------- */\n\nimport { useEffect, useRef, useState, type ReactNode } from 'react';\nimport {\n ALL,\n CENTRE,\n Mark,\n Piece,\n type PieceName,\n} from '../_shared/mark-pieces';\n\n/** Every mood the mark can show, in the order of the status table. */\nexport const ERROR_PAGE_MOODS = [\n 'jumbled',\n 'locked',\n 'roped',\n 'lost',\n 'wrong-way',\n 'vanished',\n 'asleep',\n 'patched',\n 'melt',\n 'unplugged',\n 'rebuild',\n 'snail',\n 'adrift',\n 'puzzled',\n] as const;\n\nexport type ErrorPageMood = (typeof ERROR_PAGE_MOODS)[number];\n\n/* ---- The mark ------------------------------------------------------ */\n/* Its four pieces live in `_shared/mark-pieces`, shared with the\n animated brand mark. */\n\n/** A dashed outline where a piece belongs. */\nfunction Slot({ name }: { name: PieceName }): ReactNode {\n return (\n <Piece\n name={name}\n fill=\"none\"\n stroke=\"var(--primary)\"\n strokeWidth=\"2\"\n strokeDasharray=\"5 5\"\n strokeOpacity=\"0.55\"\n />\n );\n}\n\nfunction Ground({ cx = 74, rx = 46 }: { cx?: number; rx?: number }) {\n return (\n <ellipse\n cx={cx}\n cy=\"206\"\n rx={rx}\n ry=\"4\"\n fill=\"var(--muted-foreground)\"\n fillOpacity=\"0.2\"\n />\n );\n}\n\n/* ---- Motion ---------------------------------------------------------- */\n/* Every class is written out in full: Tailwind only generates the ones it\n can read as a whole string. Each mood plays for about five seconds and\n then rests, so nothing moves for longer without the visitor asking\n (WCAG 2.2.2); a click on the mark plays it again. */\n\nconst DRIP =\n 'ds:[transform-box:fill-box] ds:origin-top ds:motion-safe:animate-[error-page-drip_calc(var(--animation-duration)*15)_ease-in-out_1]';\nconst DROP =\n 'ds:motion-safe:animate-[error-page-drop_calc(var(--animation-duration)*12)_ease-in_2]';\nconst ROCK =\n 'ds:[transform-box:fill-box] ds:origin-bottom ds:motion-safe:animate-[error-page-rock_calc(var(--animation-duration)*20)_ease-in-out_1]';\nconst BOB =\n 'ds:[transform-box:fill-box] ds:origin-center ds:motion-safe:animate-[error-page-bob_calc(var(--animation-duration)*14)_ease-in-out_1]';\nconst SWING =\n 'ds:[transform-box:fill-box] ds:origin-top ds:motion-safe:animate-[error-page-swing_calc(var(--animation-duration)*18)_ease-in-out_1]';\nconst WIGGLE =\n 'ds:[transform-box:fill-box] ds:origin-center ds:motion-safe:animate-[error-page-wiggle_calc(var(--animation-duration)*10)_ease-in-out_2]';\nconst RISE =\n 'ds:[transform-box:fill-box] ds:origin-center ds:motion-safe:animate-[error-page-rise_calc(var(--animation-duration)*16)_ease-out_1]';\nconst FLICKER =\n 'ds:motion-safe:animate-[error-page-flicker_calc(var(--animation-duration)*6)_steps(1)_4]';\nconst CRAWL =\n 'ds:motion-safe:animate-[error-page-crawl_calc(var(--animation-duration)*24)_ease-in-out_1]';\nconst BUMP =\n 'ds:motion-safe:animate-[error-page-bump_calc(var(--animation-duration)*12)_ease-in-out_2]';\nconst BREATHE =\n 'ds:[transform-box:fill-box] ds:origin-center ds:motion-safe:animate-[error-page-breathe_calc(var(--animation-duration)*20)_ease-in-out_1]';\nconst LATE = 'ds:[animation-delay:calc(var(--animation-duration)*5)]';\nconst LATER = 'ds:[animation-delay:calc(var(--animation-duration)*9)]';\nconst POP =\n 'ds:[transform-box:fill-box] ds:origin-center ds:motion-safe:animate-[error-page-pop_calc(var(--animation-duration)*3)_ease-out_1]';\n\n/* ---- Moods ----------------------------------------------------------- */\n\n/** 400: the pieces have been put together the wrong way round. */\nfunction Jumbled(): ReactNode {\n const turns: Record<PieceName, number> = {\n top: 75,\n right: -60,\n left: 40,\n bottom: -95,\n };\n return (\n <>\n {ALL.map((name, i) => {\n const [cx, cy] = CENTRE[name];\n return (\n <g key={name} transform={`rotate(${turns[name]} ${cx} ${cy})`}>\n <g className={`${WIGGLE} ${i % 2 ? LATE : ''}`}>\n <Piece name={name} />\n </g>\n </g>\n );\n })}\n <Ground />\n </>\n );\n}\n\n/** 401: a padlock hangs on the mark until you log in. */\nfunction Locked(): ReactNode {\n return (\n <>\n <Mark />\n <g className={SWING}>\n <path\n d=\"M60 84 v-12 a14 14 0 0 1 28 0 v12\"\n fill=\"none\"\n stroke=\"var(--muted-foreground)\"\n strokeWidth=\"6\"\n strokeLinecap=\"round\"\n />\n <rect\n x=\"50\"\n y=\"82\"\n width=\"48\"\n height=\"38\"\n rx=\"7\"\n fill=\"var(--muted-foreground)\"\n />\n <circle cx=\"74\" cy=\"97\" r=\"4.5\" fill=\"var(--background)\" />\n <rect\n x=\"72\"\n y=\"99\"\n width=\"4\"\n height=\"10\"\n rx=\"2\"\n fill=\"var(--background)\"\n />\n </g>\n <Ground />\n </>\n );\n}\n\n/** 403: roped off, like a VIP area. */\nfunction Roped(): ReactNode {\n const post = (x: number) => (\n <g fill=\"var(--muted-foreground)\">\n <rect x={x - 3} y=\"158\" width=\"6\" height=\"48\" rx=\"3\" />\n <circle cx={x} cy=\"157\" r=\"6\" />\n <rect x={x - 11} y=\"202\" width=\"22\" height=\"5\" rx=\"2.5\" />\n </g>\n );\n return (\n <>\n <Mark />\n {post(8)}\n {post(140)}\n <g className={SWING}>\n <path\n d=\"M8 160 Q74 196 140 160\"\n fill=\"none\"\n stroke=\"var(--destructive)\"\n strokeWidth=\"6\"\n strokeLinecap=\"round\"\n />\n </g>\n </>\n );\n}\n\n/** 404: a piece has fallen off and rocks on the ground. */\nfunction Lost(): ReactNode {\n return (\n <>\n <Mark except={['right']} />\n <Slot name=\"right\" />\n <Ground cx={150} rx={28} />\n <g transform=\"translate(150 204)\">\n <g className={ROCK}>\n <rect\n x=\"-24.67\"\n y=\"-35\"\n width=\"49.34\"\n height=\"33.99\"\n rx=\"4.56\"\n transform=\"rotate(10)\"\n />\n </g>\n </g>\n </>\n );\n}\n\n/** 405: a piece turned the wrong way keeps bumping into its slot. */\nfunction WrongWay(): ReactNode {\n return (\n <>\n <Mark except={['right']} />\n <Slot name=\"right\" />\n <g className={BUMP}>\n <g transform=\"translate(40 0) rotate(90 121 70)\">\n <Piece name=\"right\" />\n </g>\n </g>\n <Ground />\n </>\n );\n}\n\n/** 410: only a ghost of the mark is left, drifting away. */\nfunction Vanished(): ReactNode {\n const bits: [number, number, string][] = [\n [34, 44, ''],\n [96, 18, LATE],\n [118, 92, LATER],\n [62, 118, LATE],\n [20, 96, LATER],\n ];\n return (\n <>\n {ALL.map((name) => (\n <Slot key={name} name={name} />\n ))}\n {bits.map(([x, y, delay]) => (\n <rect\n key={`${x}-${y}`}\n x={x}\n y={y}\n width=\"6\"\n height=\"6\"\n rx=\"1.5\"\n className={`${RISE} ${delay}`}\n />\n ))}\n <Ground />\n </>\n );\n}\n\n/** 419: the page was left open so long the mark fell asleep. */\nfunction Asleep(): ReactNode {\n const z = (x: number, y: number, size: number, delay: string) => (\n <path\n d={`M${x} ${y} h${size} l-${size} ${size} h${size}`}\n fill=\"none\"\n stroke=\"var(--muted-foreground)\"\n strokeWidth=\"3\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className={`${RISE} ${delay}`}\n />\n );\n return (\n <>\n <g transform=\"rotate(14 74 74)\">\n <g className={BREATHE}>\n <Mark />\n </g>\n </g>\n {z(122, 22, 10, '')}\n {z(140, 2, 13, LATE)}\n {z(160, -16, 16, LATER)}\n <Ground />\n </>\n );\n}\n\n/** 500: something broke on our side, and it is being patched up. */\nfunction Patched(): ReactNode {\n return (\n <>\n <g className={BREATHE}>\n <Mark />\n {/* The crack, cut through the bottom piece. */}\n <polyline\n points=\"62,102 75,113 67,119 83,128 75,137 91,145\"\n fill=\"none\"\n stroke=\"var(--background)\"\n strokeWidth=\"4.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n {/* A sticking plaster across it. */}\n <g transform=\"rotate(-40 78 122)\">\n <rect\n x=\"46\"\n y=\"111\"\n width=\"64\"\n height=\"22\"\n rx=\"11\"\n fill=\"var(--muted)\"\n stroke=\"var(--border)\"\n strokeWidth=\"1.5\"\n />\n <rect\n x=\"68\"\n y=\"111\"\n width=\"20\"\n height=\"22\"\n fill=\"var(--border)\"\n fillOpacity=\"0.6\"\n />\n <g fill=\"var(--muted-foreground)\" fillOpacity=\"0.5\">\n <circle cx=\"55\" cy=\"118\" r=\"1.4\" />\n <circle cx=\"55\" cy=\"126\" r=\"1.4\" />\n <circle cx=\"101\" cy=\"118\" r=\"1.4\" />\n <circle cx=\"101\" cy=\"126\" r=\"1.4\" />\n </g>\n </g>\n </g>\n <Ground />\n </>\n );\n}\n\n/** A drip hanging from the melting edge, with a round bead at its end. */\nfunction Drip({\n cx,\n top,\n length,\n className = '',\n}: {\n cx: number;\n top: number;\n length: number;\n className?: string;\n}): ReactNode {\n return (\n <g className={`${DRIP} ${className}`}>\n <rect x={cx - 3.5} y={top} width=\"7\" height={length} rx=\"3.5\" />\n <circle cx={cx} cy={top + length} r=\"4.2\" />\n </g>\n );\n}\n\n/** 429: so many requests the mark has overheated and melted. */\nfunction Melt(): ReactNode {\n return (\n <>\n <Mark />\n {/* The bottom edge sags as it melts. */}\n <path d=\"M67 139 L99 131 L101 138 Q92 151 80 152 Q70 153 68 143 Z\" />\n <Drip cx={75} top={144} length={20} className={LATE} />\n <Drip cx={85.5} top={141} length={32} />\n <Drip cx={96} top={137} length={13} className={LATER} />\n <circle cx=\"85.5\" cy=\"179\" r=\"3.2\" className={DROP} />\n <ellipse cx=\"86\" cy=\"204\" rx=\"30\" ry=\"5.5\" fillOpacity=\"0.3\" />\n </>\n );\n}\n\n/** 502: the mark has come apart, with a spark where it broke. */\nfunction Unplugged(): ReactNode {\n return (\n <>\n <g transform=\"translate(-12 -8)\">\n <Piece name=\"top\" />\n <Piece name=\"left\" />\n </g>\n <g transform=\"translate(12 8)\">\n <Piece name=\"right\" />\n <Piece name=\"bottom\" />\n </g>\n <polyline\n points=\"66,62 80,72 68,78 84,90\"\n fill=\"none\"\n stroke=\"var(--accent)\"\n strokeWidth=\"4\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className={FLICKER}\n />\n <Ground />\n </>\n );\n}\n\n/** 503 and maintenance: a crane lowers a piece back into place. */\nfunction Rebuild(): ReactNode {\n return (\n <>\n <Mark except={['right']} />\n <Slot name=\"right\" />\n <g className={SWING}>\n <line\n x1=\"121\"\n y1=\"-24\"\n x2=\"121\"\n y2=\"6\"\n stroke=\"var(--muted-foreground)\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n />\n <path\n d=\"M121 6 v5 a4 4 0 1 1 -4 4\"\n fill=\"none\"\n stroke=\"var(--muted-foreground)\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n />\n <g transform=\"translate(0 -36)\">\n <Piece name=\"right\" />\n </g>\n </g>\n <Ground />\n </>\n );\n}\n\n/** 504: the missing piece is on its way, by snail. */\nfunction Snail(): ReactNode {\n return (\n <>\n <Mark except={['right']} />\n <Slot name=\"right\" />\n <Ground cx={140} rx={34} />\n <g className={CRAWL}>\n <g fill=\"var(--muted-foreground)\" fillOpacity=\"0.45\">\n <rect x=\"110\" y=\"198\" width=\"58\" height=\"8\" rx=\"4\" />\n <rect x=\"110\" y=\"184\" width=\"12\" height=\"22\" rx=\"6\" />\n </g>\n <g\n stroke=\"var(--muted-foreground)\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n >\n <line x1=\"113\" y1=\"186\" x2=\"108\" y2=\"173\" />\n <line x1=\"119\" y1=\"186\" x2=\"121\" y2=\"172\" />\n </g>\n <circle cx=\"108\" cy=\"172\" r=\"2.5\" fill=\"var(--muted-foreground)\" />\n <circle cx=\"121\" cy=\"171\" r=\"2.5\" fill=\"var(--muted-foreground)\" />\n <circle\n cx=\"146\"\n cy=\"185\"\n r=\"16\"\n fill=\"var(--muted-foreground)\"\n fillOpacity=\"0.7\"\n />\n <path\n d=\"M146 185 a3 3 0 1 1 3 3 a7 7 0 1 1 -7 -7 a11 11 0 1 1 11 11\"\n fill=\"none\"\n stroke=\"var(--background)\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n />\n <rect\n x=\"-13\"\n y=\"-9\"\n width=\"26\"\n height=\"18\"\n rx=\"3\"\n transform=\"translate(147 161) rotate(-15)\"\n />\n </g>\n </>\n );\n}\n\n/** Offline: the pieces have drifted apart. */\nfunction Adrift(): ReactNode {\n const drift: Record<PieceName, [number, number, string]> = {\n top: [0, -12, ''],\n right: [14, 0, LATE],\n left: [-14, 0, LATER],\n bottom: [0, 14, LATE],\n };\n return (\n <>\n <Ground />\n {ALL.map((name) => {\n const [x, y, delay] = drift[name];\n return (\n <g key={name} transform={`translate(${x} ${y})`}>\n <g className={`${BOB} ${delay}`}>\n <Piece name={name} />\n </g>\n </g>\n );\n })}\n </>\n );\n}\n\n/** Any other error: the mark is as puzzled as you are. */\nfunction Puzzled(): ReactNode {\n return (\n <>\n <g className={ROCK}>\n <Mark />\n </g>\n <g className={BOB}>\n <path\n d=\"M140 -2 a10 10 0 1 1 10 10 v7\"\n fill=\"none\"\n stroke=\"var(--muted-foreground)\"\n strokeWidth=\"5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <circle cx=\"150\" cy=\"27\" r=\"3\" fill=\"var(--muted-foreground)\" />\n </g>\n <Ground />\n </>\n );\n}\n\nconst MOODS: Record<ErrorPageMood, () => ReactNode> = {\n jumbled: Jumbled,\n locked: Locked,\n roped: Roped,\n lost: Lost,\n 'wrong-way': WrongWay,\n vanished: Vanished,\n asleep: Asleep,\n patched: Patched,\n melt: Melt,\n unplugged: Unplugged,\n rebuild: Rebuild,\n snail: Snail,\n adrift: Adrift,\n puzzled: Puzzled,\n};\n\n/** How long the mark stays fixed after a click, in milliseconds. */\nconst FIXED_FOR = 3000;\n\nexport function ErrorPageIllustration({\n mood,\n}: {\n mood: ErrorPageMood;\n}): ReactNode {\n const ref = useRef<HTMLDivElement | null>(null);\n const [fixed, setFixed] = useState(false);\n\n // A listener rather than onClick: the egg is for the pointer only, and\n // the element stays out of the accessibility tree.\n useEffect(() => {\n const element = ref.current;\n if (!element) return undefined;\n let timer: ReturnType<typeof setTimeout> | undefined;\n const fix = () => {\n setFixed(true);\n clearTimeout(timer);\n timer = setTimeout(() => setFixed(false), FIXED_FOR);\n };\n element.addEventListener('click', fix);\n return () => {\n element.removeEventListener('click', fix);\n clearTimeout(timer);\n };\n }, []);\n\n const Scene = MOODS[mood];\n return (\n <div\n ref={ref}\n aria-hidden=\"true\"\n data-mood={fixed ? 'fixed' : mood}\n className=\"ds:w-48 ds:select-none\"\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"-20 -24 200 240\"\n fill=\"var(--primary)\"\n className=\"ds:block ds:w-full ds:h-auto ds:overflow-visible\"\n >\n {fixed ? (\n <g className={POP}>\n <Mark />\n </g>\n ) : (\n <Scene />\n )}\n </svg>\n </div>\n );\n}\n"],"names":["ERROR_PAGE_MOODS","Slot","name","jsx","Piece","Ground","cx","rx","DRIP","DROP","ROCK","BOB","SWING","WIGGLE","RISE","FLICKER","CRAWL","BUMP","BREATHE","LATE","LATER","POP","Jumbled","turns","jsxs","Fragment","ALL","i","cy","CENTRE","Locked","Mark","Roped","post","x","Lost","WrongWay","Vanished","bits","y","delay","Asleep","z","size","Patched","Drip","top","length","className","Melt","Unplugged","Rebuild","Snail","Adrift","drift","Puzzled","MOODS","FIXED_FOR","ErrorPageIllustration","mood","ref","useRef","fixed","setFixed","useState","useEffect","element","timer","fix","Scene"],"mappings":";;;AAqBO,MAAMA,KAAmB;AAAA,EAC9B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AASA,SAASC,EAAK,EAAE,MAAAC,KAAwC;AACtD,SACE,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,MAAAF;AAAA,MACA,MAAK;AAAA,MACL,QAAO;AAAA,MACP,aAAY;AAAA,MACZ,iBAAgB;AAAA,MAChB,eAAc;AAAA,IAAA;AAAA,EAAA;AAGpB;AAEA,SAASG,EAAO,EAAE,IAAAC,IAAK,IAAI,IAAAC,IAAK,MAAoC;AAClE,SACE,gBAAAJ;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,IAAAG;AAAA,MACA,IAAG;AAAA,MACH,IAAAC;AAAA,MACA,IAAG;AAAA,MACH,MAAK;AAAA,MACL,aAAY;AAAA,IAAA;AAAA,EAAA;AAGlB;AAQA,MAAMC,IACJ,uIACIC,IACJ,yFACIC,IACJ,0IACIC,IACJ,yIACIC,IACJ,wIACIC,IACJ,4IACIC,IACJ,uIACIC,IACJ,4FACIC,IACJ,8FACIC,IACJ,6FACIC,IACJ,6IACIC,IAAO,0DACPC,IAAQ,0DACRC,IACJ;AAKF,SAASC,IAAqB;AAC5B,QAAMC,IAAmC;AAAA,IACvC,KAAK;AAAA,IACL,OAAO;AAAA,IACP,MAAM;AAAA,IACN,QAAQ;AAAA,EAAA;AAEV,SACE,gBAAAC,EAAAC,GAAA,EACG,UAAA;AAAA,IAAAC,EAAI,IAAI,CAACxB,GAAMyB,MAAM;AACpB,YAAM,CAACrB,GAAIsB,CAAE,IAAIC,EAAO3B,C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.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
|