@alfadocs/ui-kit 1.90.1 → 1.91.0
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/address-autocomplete-DR4Xn23Z.js +519 -0
- package/dist/_chunks/{address-fields-CfnXK8RT.js → address-fields-qxQkGwPf.js} +5 -5
- package/dist/_chunks/{agenda-card-BDuvreCe.js → agenda-card-BhY342MA.js} +2 -2
- package/dist/_chunks/{agenda-tray-D-jvptdo.js → agenda-tray-BmxBGEci.js} +2 -2
- package/dist/_chunks/{ai-permission-notice-CoW22jx1.js → ai-permission-notice-VNh3W57L.js} +2 -2
- package/dist/_chunks/{alia-sidebar-CsTRAxC8.js → alia-sidebar-ovRX_oti.js} +3 -3
- package/dist/_chunks/{anamnesis-summary-rows-fbEQwcuW.js → anamnesis-summary-rows-EKPfVCmh.js} +2 -2
- package/dist/_chunks/{appointment-card-5JMWi9_f.js → appointment-card-Bstc1p7a.js} +2 -2
- package/dist/_chunks/{appointment-peek-39BwVMUf.js → appointment-peek-C0kKqnFk.js} +2 -2
- package/dist/_chunks/{appointment-timeline-1-Za2miy.js → appointment-timeline-rbt9AwHO.js} +2 -2
- package/dist/_chunks/{appointment-tray-Dwc8MSIQ.js → appointment-tray-6zd8RLIL.js} +2 -2
- package/dist/_chunks/autocomplete-BXMcNoa3.js +562 -0
- package/dist/_chunks/{avatar-BPiPL7ND.js → avatar-a6042Ox2.js} +52 -52
- package/dist/_chunks/{balance-badge-cell-C4FYwmrZ.js → balance-badge-cell-BtJvre1-.js} +3 -3
- package/dist/_chunks/booking-opt_h7Uc.js +4590 -0
- package/dist/_chunks/{calendar-ClB-jWH1.js → calendar-CmiMS4FJ.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-C1v2MNE4.js → calendar-appointment-editor-dialog-sJKLoVJ2.js} +11 -11
- package/dist/_chunks/{care-plan-card-BYCPNDvA.js → care-plan-card-DD9rEWYN.js} +2 -2
- package/dist/_chunks/{care-plan-header-BzsAg6oY.js → care-plan-header-CXUJQt8Q.js} +2 -2
- package/dist/_chunks/{chat-message-CmFJdEre.js → chat-message-LRO_6Ee3.js} +2 -2
- package/dist/_chunks/{checkbox-BjDv-r3o.js → checkbox-a7Sh-dXb.js} +32 -31
- package/dist/_chunks/{checkbox-group-Cw2H5qaq.js → checkbox-group-eGdv9fZc.js} +2 -2
- package/dist/_chunks/{city-input-CJVGswxp.js → city-input-CA59CjnV.js} +2 -2
- package/dist/_chunks/{clinical-note-card-Caidqcwa.js → clinical-note-card-Cut2lNmu.js} +3 -3
- package/dist/_chunks/{combobox-CDPm_n0p.js → combobox-D-gpgEDy.js} +314 -294
- package/dist/_chunks/{contact-card-Czu60UvU.js → contact-card-ClvEDM9e.js} +2 -2
- package/dist/_chunks/{contact-profile-card-Da1vmJQI.js → contact-profile-card-CX45mZA3.js} +106 -95
- package/dist/_chunks/{country-select-DQ8q7ypA.js → country-select-BfmX9y5i.js} +2 -2
- package/dist/_chunks/{data-table-B_IcS0Ke.js → data-table-CqQgoNsU.js} +2 -2
- package/dist/_chunks/{dependent-selector-C4kOgO8b.js → dependent-selector-CyNi7M_f.js} +2 -2
- package/dist/_chunks/{entity-summary-BLxzSSXK.js → entity-summary-B_bOloqP.js} +3 -3
- package/dist/_chunks/error-page-B0fGNTRB.js +419 -0
- package/dist/_chunks/{face-scheme-BgJGFDTa.js → face-scheme-BKSE98bo.js} +2 -2
- package/dist/_chunks/{file-manager-C9YOT-Dn.js → file-manager-BnI1ZWZu.js} +2 -2
- package/dist/_chunks/{header-settings-BVhjndtV.js → header-settings-BeA2fnol.js} +24 -23
- package/dist/_chunks/{heatmap-HTz3Jvzy.js → heatmap-fCxwNz2o.js} +2 -2
- package/dist/_chunks/{languages-CZqBaPwI.js → languages-CGLX6Qpe.js} +3 -15
- package/dist/_chunks/link-DtCfnLnF.js +332 -0
- package/dist/_chunks/{link-cell-renderer-C0ynDik7.js → link-cell-renderer-BS3V4LA6.js} +4 -4
- package/dist/_chunks/{login-dev-card-DYwbL5sD.js → login-dev-card-BZBR58mu.js} +2 -2
- package/dist/_chunks/{map-view-Bvi06RVh.js → map-view-UrNgxBy3.js} +260 -237
- package/dist/_chunks/{index.modern-BeRXQVdc.js → maps-core-gate-DkNqGkm3.js} +360 -319
- package/dist/_chunks/{marketplace-app-shell-x_abo_ye.js → marketplace-app-shell-CJQtx3sv.js} +3 -3
- package/dist/_chunks/{message-card-CvCnCssc.js → message-card-B6SduXJv.js} +2 -2
- package/dist/_chunks/{message-tray-IJYvy6Cf.js → message-tray-Cllf-v0G.js} +2 -2
- package/dist/_chunks/{nav-grid-Oc4aCPrg.js → nav-grid-D2xVcHTO.js} +2 -2
- package/dist/_chunks/{note-attachment-DIlIQ7JF.js → note-attachment-cnj2JRrg.js} +2 -2
- package/dist/_chunks/{note-timeline-KzL52MmB.js → note-timeline-BrjHBQfx.js} +2 -2
- package/dist/_chunks/{notes-panel-CZO1qsD-.js → notes-panel-ib7I3aNf.js} +3 -3
- package/dist/_chunks/{operator-hero-6aAIQaFZ.js → operator-hero-C_5B-8Qp.js} +43 -41
- package/dist/_chunks/{patient-details-D0P5eog5.js → patient-details-BjcUpD9S.js} +3 -3
- package/dist/_chunks/{patient-field-row-R73dZJY6.js → patient-field-row-B0tdiaWi.js} +6 -6
- package/dist/_chunks/patient-search-Ca9j5cWb.js +1306 -0
- package/dist/_chunks/{patient-summary-card-6U74-ivO.js → patient-summary-card-Cvv6_Ugk.js} +4 -4
- package/dist/_chunks/{payment-request-card-MndSlVoK.js → payment-request-card-BfGauFY0.js} +2 -2
- package/dist/_chunks/{periodontal-diagnosis-B9YmmVmM.js → periodontal-diagnosis-DD3hrg9X.js} +2 -2
- package/dist/_chunks/{permission-matrix-BoQjENGV.js → permission-matrix-BJ6sg3Zp.js} +3 -3
- package/dist/_chunks/{practice-profile-hero-qfrsFQI_.js → practice-profile-hero-ClzE-4CB.js} +76 -73
- package/dist/_chunks/{practice-results-B61krlwu.js → practice-results-CQ_KvEXK.js} +517 -514
- package/dist/_chunks/{product-hub-panel-Blag8t8f.js → product-hub-panel-bHi7lkVD.js} +2 -2
- package/dist/_chunks/{province-select-CPdTwEob.js → province-select-D64whw0m.js} +2 -2
- package/dist/_chunks/public-footer-IoRWoAMz.js +596 -0
- package/dist/_chunks/{registration-form-DmP3YUfp.js → registration-form-CRm6DaB9.js} +2 -2
- package/dist/_chunks/{reviews-panel-UzQQLb-z.js → reviews-panel-B7InBORU.js} +42 -41
- package/dist/_chunks/{rich-text-editor-BZTyxQBd.js → rich-text-editor-BfEu57dk.js} +3 -3
- package/dist/_chunks/{signature-request-DjY-X62H.js → signature-request-DvhyrRpn.js} +3 -3
- package/dist/_chunks/{signed-out-frame-G-3ATOdu.js → signed-out-frame-CgRXOUzi.js} +2 -2
- package/dist/_chunks/{slot-grid-Bb13H9Rl.js → slot-grid-B-IAFX3C.js} +183 -170
- package/dist/_chunks/{task-editor-BOETWbjU.js → task-editor-CI1SKUNc.js} +2 -2
- package/dist/_chunks/{timeline-wUuTDFY_.js → timeline-BcYHdP56.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-CWN-nJCZ.js → use-appointment-details-read-D8vDg0sg.js} +5 -5
- package/dist/_chunks/{voice-control-panel-BziKE-KK.js → voice-control-panel-BP0otrID.js} +2 -2
- package/dist/_chunks/{workflow-webhook-action-DulCpCRz.js → workflow-webhook-action-B_nBJ_ht.js} +2 -2
- package/dist/agent-catalog.json +3 -3
- package/dist/agent-i18n/en.json +1 -1
- package/dist/components/_shared/maps-core-gate.d.ts +18 -0
- package/dist/components/_shared/social-brand-icons.d.ts +29 -0
- package/dist/components/address-autocomplete/index.js +1 -1
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-permission-notice/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/avatar/avatar.d.ts +14 -0
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/booking/booking-types.d.ts +26 -0
- package/dist/components/booking/index.js +1 -1
- package/dist/components/booking/slot-load-state.d.ts +11 -0
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-header/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox-group/index.js +1 -1
- package/dist/components/city-input/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/contact-card/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/country-select/index.js +1 -1
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/dependent-selector/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/header-settings/header-settings.d.ts +2 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/link/link.d.ts +10 -1
- package/dist/components/link/social-url.d.ts +71 -0
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/nav-grid/index.js +1 -1
- package/dist/components/note-timeline/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/operator-hero/operator-hero.d.ts +6 -0
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/periodontal-diagnosis/index.js +1 -1
- package/dist/components/permission-matrix/index.js +1 -1
- package/dist/components/practice-profile-hero/index.js +1 -1
- package/dist/components/practice-profile-hero/practice-profile-hero.d.ts +6 -0
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/practice-results/practice-results.d.ts +8 -2
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/province-select/index.js +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/public-footer/public-footer.d.ts +13 -1
- package/dist/components/public-footer/socials.d.ts +6 -5
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/slot-grid/slot-grid.d.ts +2 -0
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/host-compat.css +1 -10
- package/dist/i18n/config.js +224 -96
- package/dist/i18n/locales/ar.d.ts +3 -0
- package/dist/i18n/locales/ar.js +4 -1
- package/dist/i18n/locales/de.d.ts +3 -0
- package/dist/i18n/locales/de.js +4 -1
- package/dist/i18n/locales/el.d.ts +3 -0
- package/dist/i18n/locales/el.js +4 -1
- package/dist/i18n/locales/en.d.ts +3 -0
- package/dist/i18n/locales/en.js +3 -0
- package/dist/i18n/locales/es.d.ts +3 -0
- package/dist/i18n/locales/es.js +4 -1
- package/dist/i18n/locales/fr.d.ts +3 -0
- package/dist/i18n/locales/fr.js +4 -1
- package/dist/i18n/locales/hi.d.ts +3 -0
- package/dist/i18n/locales/hi.js +4 -1
- package/dist/i18n/locales/it.d.ts +3 -0
- package/dist/i18n/locales/it.js +4 -1
- package/dist/i18n/locales/ja.d.ts +3 -0
- package/dist/i18n/locales/ja.js +4 -1
- package/dist/i18n/locales/nl.d.ts +3 -0
- package/dist/i18n/locales/nl.js +4 -1
- package/dist/i18n/locales/pl.d.ts +3 -0
- package/dist/i18n/locales/pl.js +4 -1
- package/dist/i18n/locales/pt.d.ts +3 -0
- package/dist/i18n/locales/pt.js +4 -1
- package/dist/i18n/locales/ro.d.ts +3 -0
- package/dist/i18n/locales/ro.js +4 -1
- package/dist/i18n/locales/ru.d.ts +3 -0
- package/dist/i18n/locales/ru.js +4 -1
- package/dist/i18n/locales/sq.d.ts +3 -0
- package/dist/i18n/locales/sq.js +4 -1
- package/dist/i18n/locales/sv.d.ts +3 -0
- package/dist/i18n/locales/sv.js +4 -1
- package/dist/i18n/locales/tr.d.ts +3 -0
- package/dist/i18n/locales/tr.js +4 -1
- package/dist/i18n/locales/zh.d.ts +3 -0
- package/dist/i18n/locales/zh.js +4 -1
- package/dist/index.js +68 -68
- package/dist/locales/ar.json +4 -1
- package/dist/locales/de.json +4 -1
- package/dist/locales/el.json +4 -1
- package/dist/locales/en.json +3 -0
- package/dist/locales/es.json +4 -1
- package/dist/locales/fr.json +4 -1
- package/dist/locales/hi.json +4 -1
- package/dist/locales/it.json +4 -1
- package/dist/locales/ja.json +4 -1
- package/dist/locales/nl.json +4 -1
- package/dist/locales/pl.json +4 -1
- package/dist/locales/pt.json +4 -1
- package/dist/locales/ro.json +4 -1
- package/dist/locales/ru.json +4 -1
- package/dist/locales/sq.json +4 -1
- package/dist/locales/sv.json +4 -1
- package/dist/locales/tr.json +4 -1
- package/dist/locales/zh.json +4 -1
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/error-page/error-page-english.d.ts +71 -0
- package/dist/patterns/error-page/index.js +1 -1
- package/dist/patterns/login-form/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/signed-out-frame/index.js +1 -1
- package/dist/patterns/workflow-webhook-action/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/address-autocomplete-bPR2mNBt.js +0 -498
- package/dist/_chunks/autocomplete-CnB1mHGc.js +0 -539
- package/dist/_chunks/booking-C0FoW8Yx.js +0 -4336
- package/dist/_chunks/error-page-Bhai-spN.js +0 -344
- package/dist/_chunks/link-N5_YpLtm.js +0 -138
- package/dist/_chunks/patient-search-CCOUZABE.js +0 -1196
- package/dist/_chunks/public-footer-CXOrdAaS.js +0 -568
|
@@ -1,344 +0,0 @@
|
|
|
1
|
-
import { jsx as r, jsxs as P } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as ue, useMemo as fe, useState as j, useEffect as _, useRef as O, useId as ge } from "react";
|
|
3
|
-
import { useTranslation as pe } from "react-i18next";
|
|
4
|
-
import { c as ye } from "./index-D2ZczOXr.js";
|
|
5
|
-
import { B as N } from "./button-DohK_Ak_.js";
|
|
6
|
-
import { L as he } from "./logo-hIsyVE96.js";
|
|
7
|
-
import { i as ve } from "./is-development-CLUAnsU7.js";
|
|
8
|
-
import { i as be } from "./safe-href-5dbsfbQn.js";
|
|
9
|
-
import { a as ke } from "./error-page-illustration-BdJLuMdV.js";
|
|
10
|
-
import { loadLocale as we, LOCALES_WITH_BUNDLES as xe } from "../i18n/config.js";
|
|
11
|
-
import { R as Ee } from "./rotate-ccw-BBQnIVTr.js";
|
|
12
|
-
import { L as Le } from "./log-in-OQUEoGhX.js";
|
|
13
|
-
import { c as q } from "./createLucideIcon-DhHxpK9K.js";
|
|
14
|
-
/**
|
|
15
|
-
* @license lucide-react v1.22.0 - ISC
|
|
16
|
-
*
|
|
17
|
-
* This source code is licensed under the ISC license.
|
|
18
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/
|
|
20
|
-
const Pe = [
|
|
21
|
-
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
22
|
-
["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }],
|
|
23
|
-
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
24
|
-
], Ne = q("circle-question-mark", Pe);
|
|
25
|
-
/**
|
|
26
|
-
* @license lucide-react v1.22.0 - ISC
|
|
27
|
-
*
|
|
28
|
-
* This source code is licensed under the ISC license.
|
|
29
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
30
|
-
*/
|
|
31
|
-
const Se = [
|
|
32
|
-
["path", { d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8", key: "5wwlr5" }],
|
|
33
|
-
[
|
|
34
|
-
"path",
|
|
35
|
-
{
|
|
36
|
-
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",
|
|
37
|
-
key: "r6nss1"
|
|
38
|
-
}
|
|
39
|
-
]
|
|
40
|
-
], Ce = q("house", Se), Re = [
|
|
41
|
-
400,
|
|
42
|
-
401,
|
|
43
|
-
403,
|
|
44
|
-
404,
|
|
45
|
-
405,
|
|
46
|
-
410,
|
|
47
|
-
419,
|
|
48
|
-
429,
|
|
49
|
-
500,
|
|
50
|
-
502,
|
|
51
|
-
503,
|
|
52
|
-
504,
|
|
53
|
-
"offline",
|
|
54
|
-
"maintenance"
|
|
55
|
-
], V = {
|
|
56
|
-
400: { key: "badRequest", mood: "jumbled", primary: "home" },
|
|
57
|
-
401: { key: "unauthorised", mood: "locked", primary: "login" },
|
|
58
|
-
403: { key: "forbidden", mood: "roped", primary: "home" },
|
|
59
|
-
404: { key: "notFound", mood: "lost", primary: "home" },
|
|
60
|
-
405: { key: "methodNotAllowed", mood: "wrong-way", primary: "home" },
|
|
61
|
-
410: { key: "gone", mood: "vanished", primary: "home" },
|
|
62
|
-
419: { key: "expired", mood: "asleep", primary: "login" },
|
|
63
|
-
429: { key: "tooManyRequests", mood: "melt", primary: "retry" },
|
|
64
|
-
500: { key: "serverError", mood: "patched", primary: "retry" },
|
|
65
|
-
502: { key: "badGateway", mood: "unplugged", primary: "retry" },
|
|
66
|
-
503: { key: "maintenance", mood: "rebuild", primary: "retry" },
|
|
67
|
-
504: { key: "timeout", mood: "snail", primary: "retry" },
|
|
68
|
-
offline: { key: "offline", mood: "adrift", primary: "retry" },
|
|
69
|
-
maintenance: { key: "maintenance", mood: "rebuild", primary: "retry" },
|
|
70
|
-
generic: { key: "generic", mood: "puzzled", primary: "home" }
|
|
71
|
-
};
|
|
72
|
-
function Ie(e) {
|
|
73
|
-
return Re.includes(e) ? V[e] : V.generic;
|
|
74
|
-
}
|
|
75
|
-
const _e = "alfadocs-ui.locale", Te = "it", ze = (e) => {
|
|
76
|
-
if (!e) return;
|
|
77
|
-
const a = e.toLowerCase().replaceAll("_", "-").split("-")[0], n = a === "cn" ? "zh" : a;
|
|
78
|
-
return xe.includes(n) ? n : void 0;
|
|
79
|
-
}, $e = () => {
|
|
80
|
-
try {
|
|
81
|
-
return window.localStorage.getItem(_e);
|
|
82
|
-
} catch {
|
|
83
|
-
return null;
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
function De(e = {}) {
|
|
87
|
-
var p;
|
|
88
|
-
const a = typeof window < "u", n = e.saved !== void 0 ? e.saved : a ? $e() : null, l = e.browser ?? (a && typeof navigator < "u" ? (p = navigator.languages) != null && p.length ? navigator.languages : [navigator.language] : []), g = e.document ?? (typeof document < "u" ? document.documentElement.lang : ""), v = [
|
|
89
|
-
e.locale,
|
|
90
|
-
n,
|
|
91
|
-
...l,
|
|
92
|
-
e.hostLocaleIsDefault ? void 0 : g
|
|
93
|
-
];
|
|
94
|
-
for (const b of v) {
|
|
95
|
-
const y = ze(b);
|
|
96
|
-
if (y) return y;
|
|
97
|
-
}
|
|
98
|
-
return Te;
|
|
99
|
-
}
|
|
100
|
-
const H = (e, a) => we(e, a), Be = ye(
|
|
101
|
-
"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)]",
|
|
102
|
-
{
|
|
103
|
-
variants: {
|
|
104
|
-
layout: {
|
|
105
|
-
/** Fills the viewport: the whole page is the error. */
|
|
106
|
-
page: "ds:min-h-screen",
|
|
107
|
-
/** Fills its container, under the host's own header. */
|
|
108
|
-
embedded: "ds:[min-block-size:100%]"
|
|
109
|
-
},
|
|
110
|
-
surface: {
|
|
111
|
-
/** The page background. */
|
|
112
|
-
background: "",
|
|
113
|
-
/** A card's surface, for a page set inside a `Card`. The mark
|
|
114
|
-
* cuts its holes with `--background`, so that is re-pointed too. */
|
|
115
|
-
card: "ds:[--background:var(--card)] ds:[--foreground:var(--card-foreground)]"
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
defaultVariants: { layout: "page", surface: "background" }
|
|
119
|
-
}
|
|
120
|
-
), Fe = /* @__PURE__ */ new Set(["ar"]), Me = 1500;
|
|
121
|
-
function Ae(e, a) {
|
|
122
|
-
const n = e instanceof Date ? e : new Date(e);
|
|
123
|
-
if (Number.isNaN(n.getTime())) return;
|
|
124
|
-
const l = /* @__PURE__ */ new Date(), g = l.toDateString() === n.toDateString() ? {} : {
|
|
125
|
-
day: "numeric",
|
|
126
|
-
month: "short",
|
|
127
|
-
...l.getFullYear() === n.getFullYear() ? {} : { year: "numeric" }
|
|
128
|
-
};
|
|
129
|
-
return new Intl.DateTimeFormat(a === "en" ? "en-GB" : a, {
|
|
130
|
-
...g,
|
|
131
|
-
hour: "2-digit",
|
|
132
|
-
minute: "2-digit"
|
|
133
|
-
}).format(n);
|
|
134
|
-
}
|
|
135
|
-
const U = (e, a) => !!e.getResource(a, "ui", "errorPage"), Y = (e) => be(e) ? e : "#", Ge = ue(
|
|
136
|
-
({
|
|
137
|
-
status: e,
|
|
138
|
-
homeHref: a = "/",
|
|
139
|
-
loginHref: n,
|
|
140
|
-
supportHref: l,
|
|
141
|
-
onRetry: g,
|
|
142
|
-
requestId: v,
|
|
143
|
-
backAt: p,
|
|
144
|
-
locale: b,
|
|
145
|
-
hostLocaleIsDefault: y = !1,
|
|
146
|
-
title: K,
|
|
147
|
-
message: Q,
|
|
148
|
-
primaryAction: s,
|
|
149
|
-
showHomeLink: W = !0,
|
|
150
|
-
mood: J,
|
|
151
|
-
showStatusLabel: X = !0,
|
|
152
|
-
showLogo: Z = !0,
|
|
153
|
-
as: ee,
|
|
154
|
-
focusHeading: T = !0,
|
|
155
|
-
focusKey: re,
|
|
156
|
-
scrollOnFocus: z = !1,
|
|
157
|
-
headingLevel: oe = 1,
|
|
158
|
-
layout: ae,
|
|
159
|
-
surface: $,
|
|
160
|
-
className: te,
|
|
161
|
-
...ne
|
|
162
|
-
}, se) => {
|
|
163
|
-
const { i18n: f } = pe("ui"), t = fe(
|
|
164
|
-
() => De({ locale: b, hostLocaleIsDefault: y }),
|
|
165
|
-
[b, y]
|
|
166
|
-
), [k, D] = j(() => ({
|
|
167
|
-
for: t,
|
|
168
|
-
shown: U(f, t) ? t : null
|
|
169
|
-
})), i = k.shown, [, ie] = j(0);
|
|
170
|
-
_(() => {
|
|
171
|
-
let o = !0;
|
|
172
|
-
const x = U(f, t), E = (c) => D(
|
|
173
|
-
(I) => I.for === t && I.shown === c ? I : { for: t, shown: c }
|
|
174
|
-
), L = () => D(
|
|
175
|
-
(c) => c.for === t && c.shown ? c : { for: t, shown: "en" }
|
|
176
|
-
);
|
|
177
|
-
E(x ? t : null);
|
|
178
|
-
const G = () => o && ie((c) => c + 1);
|
|
179
|
-
H("en", f).then(G).catch(() => {
|
|
180
|
-
});
|
|
181
|
-
const me = x ? void 0 : setTimeout(() => o && L(), Me);
|
|
182
|
-
return H(t, f).then(() => {
|
|
183
|
-
o && (E(t), G());
|
|
184
|
-
}).catch(() => o && L()), () => {
|
|
185
|
-
o = !1, clearTimeout(me);
|
|
186
|
-
};
|
|
187
|
-
}, [f, t]);
|
|
188
|
-
const d = f.getFixedT(
|
|
189
|
-
i && i !== "en" ? [i, "en"] : "en",
|
|
190
|
-
"ui"
|
|
191
|
-
), m = Ie(e), S = m.key === "maintenance" && p ? Ae(p, i ?? "en") : void 0, B = O(null), h = ge(), C = `${String(e)}:${re ?? ""}`, F = O(null);
|
|
192
|
-
_(() => {
|
|
193
|
-
if (!T || !k.shown || k.for !== t || F.current === C) return;
|
|
194
|
-
F.current = C;
|
|
195
|
-
const o = B.current;
|
|
196
|
-
o == null || o.focus({ preventScroll: !0 }), z && (o == null || o.scrollIntoView({ block: "nearest" }));
|
|
197
|
-
}, [k, t, T, C, z]);
|
|
198
|
-
const de = ["h1", "h2", "h3"][oe - 1], M = s !== void 0 && (typeof s.label != "string" || s.label.trim() === "");
|
|
199
|
-
_(() => {
|
|
200
|
-
M && ve() && console.warn(
|
|
201
|
-
"ErrorPage: `primaryAction.label` is empty, so its button has no accessible name. Pass the label, already translated."
|
|
202
|
-
);
|
|
203
|
-
}, [M]);
|
|
204
|
-
const A = $ === "card", ce = ee ?? (A ? "div" : "main"), le = g ?? (() => window.location.reload()), w = m.primary === "login" && !n ? "retry" : m.primary, R = (o, x, E, L) => /* @__PURE__ */ r(
|
|
205
|
-
N,
|
|
206
|
-
{
|
|
207
|
-
intent: L,
|
|
208
|
-
size: "lg",
|
|
209
|
-
flipIconInRtl: o === "login",
|
|
210
|
-
asChild: !0,
|
|
211
|
-
startIcon: E,
|
|
212
|
-
"data-action": o,
|
|
213
|
-
children: /* @__PURE__ */ r("a", { href: Y(x), children: d(`errorPage.actions.${o}`) })
|
|
214
|
-
},
|
|
215
|
-
o
|
|
216
|
-
), u = [];
|
|
217
|
-
return s ? u.push(
|
|
218
|
-
typeof s.href == "string" ? /* @__PURE__ */ r(
|
|
219
|
-
N,
|
|
220
|
-
{
|
|
221
|
-
intent: "primary",
|
|
222
|
-
size: "lg",
|
|
223
|
-
asChild: !0,
|
|
224
|
-
startIcon: s.icon,
|
|
225
|
-
"data-action": "custom",
|
|
226
|
-
children: /* @__PURE__ */ r(
|
|
227
|
-
"a",
|
|
228
|
-
{
|
|
229
|
-
href: Y(s.href),
|
|
230
|
-
onClick: s.onClick,
|
|
231
|
-
children: s.label
|
|
232
|
-
}
|
|
233
|
-
)
|
|
234
|
-
},
|
|
235
|
-
"custom"
|
|
236
|
-
) : /* @__PURE__ */ r(
|
|
237
|
-
N,
|
|
238
|
-
{
|
|
239
|
-
intent: "primary",
|
|
240
|
-
size: "lg",
|
|
241
|
-
startIcon: s.icon,
|
|
242
|
-
onClick: s.onClick,
|
|
243
|
-
"data-action": "custom",
|
|
244
|
-
children: s.label
|
|
245
|
-
},
|
|
246
|
-
"custom"
|
|
247
|
-
)
|
|
248
|
-
) : w === "retry" ? u.push(
|
|
249
|
-
/* @__PURE__ */ r(
|
|
250
|
-
N,
|
|
251
|
-
{
|
|
252
|
-
intent: "primary",
|
|
253
|
-
size: "lg",
|
|
254
|
-
startIcon: /* @__PURE__ */ r(Ee, { "aria-hidden": "true" }),
|
|
255
|
-
onClick: le,
|
|
256
|
-
"data-action": "retry",
|
|
257
|
-
children: d("errorPage.actions.retry")
|
|
258
|
-
},
|
|
259
|
-
"retry"
|
|
260
|
-
)
|
|
261
|
-
) : w === "login" && n && u.push(
|
|
262
|
-
R("login", n, /* @__PURE__ */ r(Le, { "aria-hidden": "true" }), "primary")
|
|
263
|
-
), W && e !== "offline" && m.key !== "maintenance" && !(s && w === "home") && u.push(
|
|
264
|
-
R(
|
|
265
|
-
"home",
|
|
266
|
-
a,
|
|
267
|
-
/* @__PURE__ */ r(Ce, { "aria-hidden": "true" }),
|
|
268
|
-
w === "home" ? "primary" : "secondary"
|
|
269
|
-
)
|
|
270
|
-
), l && u.push(
|
|
271
|
-
R(
|
|
272
|
-
"support",
|
|
273
|
-
l,
|
|
274
|
-
/* @__PURE__ */ r(Ne, { "aria-hidden": "true" }),
|
|
275
|
-
"ghost"
|
|
276
|
-
)
|
|
277
|
-
), /* @__PURE__ */ r(
|
|
278
|
-
ce,
|
|
279
|
-
{
|
|
280
|
-
ref: se,
|
|
281
|
-
"data-component": "error-page",
|
|
282
|
-
"data-status": String(e),
|
|
283
|
-
lang: i ?? void 0,
|
|
284
|
-
"aria-busy": i ? void 0 : !0,
|
|
285
|
-
dir: i && Fe.has(i) ? "rtl" : "ltr",
|
|
286
|
-
className: Be({
|
|
287
|
-
layout: ae ?? (A ? "embedded" : void 0),
|
|
288
|
-
surface: $,
|
|
289
|
-
className: te
|
|
290
|
-
}),
|
|
291
|
-
...ne,
|
|
292
|
-
children: /* @__PURE__ */ P(
|
|
293
|
-
"div",
|
|
294
|
-
{
|
|
295
|
-
className: i ? "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-lg)] ds:text-center ds:[max-inline-size:32rem]" : "ds:invisible",
|
|
296
|
-
children: [
|
|
297
|
-
/* @__PURE__ */ r(ke, { mood: J ?? m.mood }),
|
|
298
|
-
/* @__PURE__ */ P("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
299
|
-
/* @__PURE__ */ P(
|
|
300
|
-
de,
|
|
301
|
-
{
|
|
302
|
-
ref: B,
|
|
303
|
-
tabIndex: -1,
|
|
304
|
-
"aria-describedby": S ? `${h}-message ${h}-back` : `${h}-message`,
|
|
305
|
-
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:outline-none",
|
|
306
|
-
children: [
|
|
307
|
-
X && typeof e == "number" && /* @__PURE__ */ r("span", { className: "type-label ds:text-[var(--muted-foreground)]", children: d("errorPage.statusLabel", { status: e }) }),
|
|
308
|
-
/* @__PURE__ */ r("span", { className: "type-title-page", children: K ?? d(`errorPage.status.${m.key}.title`) })
|
|
309
|
-
]
|
|
310
|
-
}
|
|
311
|
-
),
|
|
312
|
-
/* @__PURE__ */ r(
|
|
313
|
-
"p",
|
|
314
|
-
{
|
|
315
|
-
id: `${h}-message`,
|
|
316
|
-
className: "type-body ds:text-[var(--muted-foreground)]",
|
|
317
|
-
children: Q ?? d(`errorPage.status.${m.key}.message`)
|
|
318
|
-
}
|
|
319
|
-
),
|
|
320
|
-
S && /* @__PURE__ */ r("p", { id: `${h}-back`, className: "type-body ds:font-semibold", children: d("errorPage.backAt", { time: S }) })
|
|
321
|
-
] }),
|
|
322
|
-
u.length > 0 && /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-center ds:gap-[var(--spacing-sm)]", children: u }),
|
|
323
|
-
v && /* @__PURE__ */ P("p", { className: "type-body-sm ds:text-[var(--muted-foreground)]", children: [
|
|
324
|
-
d("errorPage.reference", { id: v }),
|
|
325
|
-
/* @__PURE__ */ r("br", {}),
|
|
326
|
-
d("errorPage.referenceHint")
|
|
327
|
-
] }),
|
|
328
|
-
Z && /* @__PURE__ */ r(he, { decorative: !0, size: "sm", className: "ds:opacity-70" })
|
|
329
|
-
]
|
|
330
|
-
}
|
|
331
|
-
)
|
|
332
|
-
}
|
|
333
|
-
);
|
|
334
|
-
}
|
|
335
|
-
);
|
|
336
|
-
Ge.displayName = "ErrorPage";
|
|
337
|
-
export {
|
|
338
|
-
Te as E,
|
|
339
|
-
Re as a,
|
|
340
|
-
Ge as b,
|
|
341
|
-
Ie as e,
|
|
342
|
-
De as r
|
|
343
|
-
};
|
|
344
|
-
//# sourceMappingURL=error-page-Bhai-spN.js.map
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
import { jsxs as S, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as T } from "react";
|
|
3
|
-
import { c as i } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as V } from "react-i18next";
|
|
5
|
-
import { E as _ } from "./external-link-CY6zAXXU.js";
|
|
6
|
-
const E = i(
|
|
7
|
-
[
|
|
8
|
-
// Always inline text, icons included, so a long label wraps like any
|
|
9
|
-
// other text and the trailing glyph follows its last word.
|
|
10
|
-
"ds:inline",
|
|
11
|
-
"ds:underline-offset-4",
|
|
12
|
-
"ds:rounded-[var(--radius-xs)]",
|
|
13
|
-
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
14
|
-
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
15
|
-
"ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
16
|
-
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
17
|
-
"ds:aria-disabled:cursor-not-allowed ds:aria-disabled:opacity-50 ds:aria-disabled:no-underline"
|
|
18
|
-
].join(" "),
|
|
19
|
-
{
|
|
20
|
-
variants: {
|
|
21
|
-
intent: {
|
|
22
|
-
// `--primary` falls below 4.5:1 as text on the dark page and on the
|
|
23
|
-
// light app shell, so the link re-points it (and its hover step) at
|
|
24
|
-
// `--primary-readable`, which differs in light and dark but not in
|
|
25
|
-
// the accessible themes. The colour classes stay as they were: a
|
|
26
|
-
// host still on an older token sheet keeps today's look, and a
|
|
27
|
-
// consumer `className` wins or loses exactly as before.
|
|
28
|
-
default: "ds:[--primary:var(--primary-readable)] ds:[--primary-hover:var(--primary-readable-hover)] ds:text-primary ds:underline ds:hover:text-primary-hover ds:active:opacity-80",
|
|
29
|
-
subtle: "ds:text-muted-foreground ds:no-underline ds:hover:text-foreground ds:hover:underline ds:active:opacity-80",
|
|
30
|
-
inverted: "ds:text-primary-foreground ds:underline ds:hover:opacity-90 ds:active:opacity-80"
|
|
31
|
-
},
|
|
32
|
-
weight: {
|
|
33
|
-
normal: "ds:font-normal",
|
|
34
|
-
strong: "ds:font-semibold"
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
defaultVariants: {
|
|
38
|
-
intent: "default",
|
|
39
|
-
weight: "normal"
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
), u = i("ds:whitespace-nowrap", {
|
|
43
|
-
variants: {
|
|
44
|
-
edge: {
|
|
45
|
-
start: String.raw`ds:after:content-['\2060']`,
|
|
46
|
-
end: String.raw`ds:before:content-['\2060']`
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}), m = i(
|
|
50
|
-
[
|
|
51
|
-
"ds:inline-flex ds:items-center",
|
|
52
|
-
String.raw`ds:before:content-['\2060']`,
|
|
53
|
-
"ds:[&_svg]:size-[1em] ds:[&_svg]:shrink-0"
|
|
54
|
-
].join(" "),
|
|
55
|
-
{
|
|
56
|
-
variants: {
|
|
57
|
-
edge: {
|
|
58
|
-
start: "ds:me-[var(--spacing-xs)]",
|
|
59
|
-
end: "ds:ms-[var(--spacing-xs)]"
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
), z = T(
|
|
64
|
-
({
|
|
65
|
-
href: v,
|
|
66
|
-
external: s = !1,
|
|
67
|
-
externalIcon: p = !0,
|
|
68
|
-
disabled: n = !1,
|
|
69
|
-
startIcon: t,
|
|
70
|
-
endIcon: o,
|
|
71
|
-
hasIcon: B,
|
|
72
|
-
intent: d,
|
|
73
|
-
weight: h,
|
|
74
|
-
className: g,
|
|
75
|
-
children: b,
|
|
76
|
-
target: y,
|
|
77
|
-
rel: l,
|
|
78
|
-
onClick: a,
|
|
79
|
-
...w
|
|
80
|
-
}, x) => {
|
|
81
|
-
const { t: N } = V("ui"), k = s ? "_blank" : y, j = s ? [l, "noopener", "noreferrer"].filter(Boolean).join(" ") : l, c = N("link.opensInNewTab", "Opens in a new tab"), L = (f) => {
|
|
82
|
-
if (n) {
|
|
83
|
-
f.preventDefault();
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
a == null || a(f);
|
|
87
|
-
}, r = s && p;
|
|
88
|
-
return /* @__PURE__ */ S(
|
|
89
|
-
"a",
|
|
90
|
-
{
|
|
91
|
-
ref: x,
|
|
92
|
-
href: n ? void 0 : v,
|
|
93
|
-
role: n ? "link" : void 0,
|
|
94
|
-
"aria-disabled": n || void 0,
|
|
95
|
-
target: k,
|
|
96
|
-
rel: j || void 0,
|
|
97
|
-
onClick: L,
|
|
98
|
-
"data-component": "link",
|
|
99
|
-
"data-intent": d ?? "default",
|
|
100
|
-
className: E({ intent: d, weight: h, className: g }),
|
|
101
|
-
...w,
|
|
102
|
-
children: [
|
|
103
|
-
t ? /* @__PURE__ */ e(
|
|
104
|
-
"span",
|
|
105
|
-
{
|
|
106
|
-
"aria-hidden": "true",
|
|
107
|
-
className: u({ edge: "start" }),
|
|
108
|
-
children: /* @__PURE__ */ e("span", { className: m({ edge: "start" }), children: t })
|
|
109
|
-
}
|
|
110
|
-
) : null,
|
|
111
|
-
b,
|
|
112
|
-
r || !s && o ? /* @__PURE__ */ e(
|
|
113
|
-
"span",
|
|
114
|
-
{
|
|
115
|
-
"aria-hidden": "true",
|
|
116
|
-
className: u({ edge: "end" }),
|
|
117
|
-
children: /* @__PURE__ */ e("span", { className: m({ edge: "end" }), children: r ? /* @__PURE__ */ e(_, { className: "ds:size-[1em]" }) : o })
|
|
118
|
-
}
|
|
119
|
-
) : null,
|
|
120
|
-
r ? (
|
|
121
|
-
// Labelled, empty and out of flow: name algorithms add the label
|
|
122
|
-
// after a space, and textContent stays the caller's text.
|
|
123
|
-
/* @__PURE__ */ e("span", { "aria-label": c, className: "ds:sr-only" })
|
|
124
|
-
) : s ? (
|
|
125
|
-
// External wiring without the glyph — keep the SR-only
|
|
126
|
-
// "opens in new tab" announcement so the affordance reads.
|
|
127
|
-
/* @__PURE__ */ e("span", { className: "ds:sr-only", children: c })
|
|
128
|
-
) : null
|
|
129
|
-
]
|
|
130
|
-
}
|
|
131
|
-
);
|
|
132
|
-
}
|
|
133
|
-
);
|
|
134
|
-
z.displayName = "Link";
|
|
135
|
-
export {
|
|
136
|
-
z as L
|
|
137
|
-
};
|
|
138
|
-
//# sourceMappingURL=link-N5_YpLtm.js.map
|