@alfadocs/ui-kit 1.133.0 → 1.135.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/{agenda-card-B8hV3dZV.js → agenda-card-B9wgX_Ed.js} +2 -2
- package/dist/_chunks/{agenda-tray-Bu46s3dI.js → agenda-tray-CGcS_qoM.js} +2 -2
- package/dist/_chunks/ai-summary-panel-B70S2lgC.js +455 -0
- package/dist/_chunks/{alia-sidebar-CK1zw_Bc.js → alia-sidebar-CtwhdASP.js} +3 -3
- package/dist/_chunks/appointment-card-BT1cMZIX.js +504 -0
- package/dist/_chunks/{appointment-peek-DZa6xyUb.js → appointment-peek-BP_ACFz5.js} +3 -3
- package/dist/_chunks/{appointment-timeline-DQePqpyH.js → appointment-timeline-Dy4YQJ17.js} +2 -2
- package/dist/_chunks/appointment-tray-B3gSHL1j.js +200 -0
- package/dist/_chunks/{appointment-workflow-status-DMjuIK90.js → appointment-workflow-status-S-lx81Yz.js} +2 -2
- package/dist/_chunks/ban-CiSCCcOE.js +15 -0
- package/dist/_chunks/{calendar-BIoOeBTT.js → calendar-CyLtLBNP.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-BHx6kUhX.js → calendar-appointment-editor-dialog-I5PfWudy.js} +15 -15
- package/dist/_chunks/{calendar-event-card-BNEzkjm-.js → calendar-event-card-BJifpYZQ.js} +7 -6
- package/dist/_chunks/{care-plan-card-DKScH9Ss.js → care-plan-card-CjHq6PLo.js} +6 -6
- package/dist/_chunks/{care-plan-entry-card-AG1y3nyW.js → care-plan-entry-card-DY1toF6E.js} +2 -2
- package/dist/_chunks/{care-plan-header-Dx5OMkc9.js → care-plan-header-CeFXUDnL.js} +6 -6
- package/dist/_chunks/{chat-container-B83b4hut.js → chat-container-CoOT7dzB.js} +37 -36
- package/dist/_chunks/{chat-input-DwQ4_WXK.js → chat-input-CX4dxBq7.js} +85 -84
- package/dist/_chunks/check-in-documents-CEVcgcYZ.js +136 -0
- package/dist/_chunks/{clinical-note-card-pPaeWWnu.js → clinical-note-card-D--IwbZa.js} +2 -2
- package/dist/_chunks/communications-panel-BKPHCiMB.js +973 -0
- package/dist/_chunks/document-preview-DLVIrOYV.js +385 -0
- package/dist/_chunks/{entity-card-fpm-KUKc.js → entity-card-p-LANpYt.js} +18 -17
- package/dist/_chunks/{entity-summary-KHM0PnSI.js → entity-summary-CpNk6ybN.js} +70 -69
- package/dist/_chunks/{error-page-B0fGNTRB.js → error-page-WLhmWUTq.js} +100 -115
- package/dist/_chunks/finished-terminal-unDnXT4j.js +191 -0
- package/dist/_chunks/get-error-message-DbFUzuja.js +7 -0
- package/dist/_chunks/handled-rejection-C-6Dq0As.js +9 -0
- package/dist/_chunks/house-DGCypGTo.js +21 -0
- package/dist/_chunks/is-safe-url-CEy9CEml.js +8 -0
- package/dist/_chunks/keypad-DBH_keVs.js +152 -0
- package/dist/_chunks/keypad-button-mOaPQRrH.js +114 -0
- package/dist/_chunks/megaphone-CzeTT9B3.js +22 -0
- package/dist/_chunks/{message-card-BG3_3nN1.js → message-card-Bw_q1qKx.js} +2 -2
- package/dist/_chunks/{message-tray-BjZv0Fsk.js → message-tray-pLGgLmoG.js} +2 -2
- package/dist/_chunks/{note-attachment-MNTIqdSz.js → note-attachment-JTIy9iXN.js} +2 -2
- package/dist/_chunks/{note-timeline-BQeW0VZY.js → note-timeline-BbjHMhkL.js} +2 -2
- package/dist/_chunks/{notes-panel-Cm-_pCRJ.js → notes-panel-BvjAo4RQ.js} +6 -5
- package/dist/_chunks/{operator-hero-CnfWckNQ.js → operator-hero-D4wfVu2l.js} +2 -2
- package/dist/_chunks/otp-input-BNOTlxq3.js +342 -0
- package/dist/_chunks/patient-account-settings-B2XbN_Fe.js +546 -0
- package/dist/_chunks/patient-card-DTh3QTyS.js +125 -0
- package/dist/_chunks/patient-check-in-resume-B7NY-6KI.js +742 -0
- package/dist/_chunks/patient-sign-in-pin-CDBqV254.js +432 -0
- package/dist/_chunks/patient-sign-in-steps-C2JSqlok.js +199 -0
- package/dist/_chunks/{patient-summary-card-BUcZ-gaL.js → patient-summary-card-Bl2NknPe.js} +2 -2
- package/dist/_chunks/{payment-request-card-Dv4WbRBe.js → payment-request-card-CNW00DCx.js} +6 -6
- package/dist/_chunks/{pdf-viewer-BnBKdx0y.js → pdf-viewer-TRC5jEm5.js} +472 -425
- package/dist/_chunks/pin-entry-BugWQMOS.js +219 -0
- package/dist/_chunks/pin-indicator-Cb-n40UI.js +124 -0
- package/dist/_chunks/portal-details-DCIiGkHA.js +478 -0
- package/dist/_chunks/portal-documents-DJOH8pZx.js +902 -0
- package/dist/_chunks/portal-parts-Br8wuala.js +285 -0
- package/dist/_chunks/{privacy-mask-DJ1gee4c.js → privacy-mask-C19dJFMk.js} +5 -5
- package/dist/_chunks/{product-hub-panel-a8wdVOUt.js → product-hub-panel-K4QbULG7.js} +2 -2
- package/dist/_chunks/{registration-form-CwbhtKcy.js → registration-form-DS3RuKHu.js} +2 -2
- package/dist/_chunks/{reserved.agent-W8mR179D.js → reserved.agent-DOzOBUW7.js} +2 -2
- package/dist/_chunks/session-countdown-DOx1IBUB.js +232 -0
- package/dist/_chunks/{sign-document-CQZVzfpk.js → sign-document-DDZbmYHu.js} +2 -2
- package/dist/_chunks/{signature-field-DjabvRZm.js → signature-field-BjlY_yXH.js} +39 -34
- package/dist/_chunks/{signature-request-4pGq3YBe.js → signature-request-CHsM_iWi.js} +2 -2
- package/dist/_chunks/{signature-status-chip-pIoQjvH8.js → signature-status-chip-DS9hHwIt.js} +66 -69
- package/dist/_chunks/signing-end-screen-BdhbkPKO.js +1355 -0
- package/dist/_chunks/sms-code-entry-Dgp4GwlM.js +316 -0
- package/dist/_chunks/step-up-dialog-C2JqJmCA.js +132 -0
- package/dist/_chunks/{task-editor-BL2hHxNz.js → task-editor-DvwqPfFR.js} +40 -39
- package/dist/_chunks/{tasks-panel-BE3zaayj.js → tasks-panel-6EzdnwT8.js} +155 -171
- package/dist/_chunks/{use-appointment-details-read-_b7FRB1x.js → use-appointment-details-read-6_OmOwUs.js} +115 -114
- package/dist/_chunks/use-zoom-drilldown-Cr1baU5X.js +221 -0
- package/dist/_chunks/{user-x-DYszNtIg.js → user-x-BJZg4kaP.js} +8 -19
- package/dist/_chunks/{verify-identity-types-CxtrBXsZ.js → verify-identity-types-C6Bam8v6.js} +2 -2
- package/dist/_chunks/{workflow-status-D1WgGVTP.js → workflow-status-CO0mxXs2.js} +3 -2
- package/dist/agent-catalog.json +933 -324
- package/dist/agent-i18n/en.json +103 -18
- package/dist/browser-support.js +1 -1
- package/dist/components/_shared/is-safe-url.d.ts +3 -1
- package/dist/components/_shared/sms-segments.d.ts +43 -0
- package/dist/components/agenda-card/index.js +2 -2
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-summary-panel/ai-summary-panel.agent.d.ts +4 -0
- package/dist/components/ai-summary-panel/ai-summary-panel.d.ts +71 -0
- package/dist/components/ai-summary-panel/index.d.ts +4 -0
- package/dist/components/ai-summary-panel/index.js +6 -0
- package/dist/components/appointment-card/appointment-card.d.ts +45 -0
- package/dist/components/appointment-card/appointment-tray.d.ts +11 -0
- package/dist/components/appointment-card/index.js +3 -3
- 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/booking/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/calendar-event-card/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/care-plan-header/index.js +1 -1
- package/dist/components/chat-container/chat-container.d.ts +7 -0
- package/dist/components/chat-container/index.js +1 -1
- package/dist/components/chat-input/chat-input.d.ts +3 -0
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/communications-panel/communications-panel.agent.d.ts +4 -0
- package/dist/components/communications-panel/communications-panel.d.ts +136 -0
- package/dist/components/communications-panel/index.d.ts +6 -0
- package/dist/components/communications-panel/index.js +7 -0
- package/dist/components/document-preview/document-preview.d.ts +61 -7
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/entity-summary/entity-summary.d.ts +8 -0
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/finished-terminal/finished-terminal.d.ts +63 -6
- package/dist/components/finished-terminal/index.d.ts +1 -1
- package/dist/components/finished-terminal/index.js +1 -1
- package/dist/components/index.d.ts +14 -0
- package/dist/components/keypad/index.d.ts +3 -0
- package/dist/components/keypad/index.js +6 -0
- package/dist/components/keypad/keypad.d.ts +54 -0
- package/dist/components/keypad-button/index.d.ts +3 -0
- package/dist/components/keypad-button/index.js +6 -0
- package/dist/components/keypad-button/keypad-button.d.ts +33 -0
- package/dist/components/message-card/index.js +2 -2
- package/dist/components/message-tray/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/otp-input/index.js +1 -1
- package/dist/components/otp-input/otp-input.d.ts +11 -0
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/pdf-viewer/pdf-viewer.d.ts +7 -0
- package/dist/components/pin-entry/index.d.ts +3 -0
- package/dist/components/pin-entry/index.js +5 -0
- package/dist/components/pin-entry/pin-entry.agent.d.ts +4 -0
- package/dist/components/pin-entry/pin-entry.d.ts +64 -0
- package/dist/components/pin-indicator/index.d.ts +3 -0
- package/dist/components/pin-indicator/index.js +9 -0
- package/dist/components/pin-indicator/pin-indicator.d.ts +34 -0
- package/dist/components/product-hub-tray/index.js +2 -2
- package/dist/components/session-countdown/index.js +1 -1
- package/dist/components/session-countdown/session-countdown.d.ts +19 -0
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/signature-field/index.js +1 -1
- package/dist/components/signature-field/signature-field.d.ts +17 -6
- package/dist/components/signature-status-chip/index.js +1 -1
- package/dist/components/signature-status-chip/signature-status-chip.d.ts +3 -2
- package/dist/components/sms-code-entry/index.d.ts +3 -0
- package/dist/components/sms-code-entry/index.js +5 -0
- package/dist/components/sms-code-entry/sms-code-entry.agent.d.ts +4 -0
- package/dist/components/sms-code-entry/sms-code-entry.d.ts +156 -0
- package/dist/components/step-up-dialog/index.d.ts +3 -0
- package/dist/components/step-up-dialog/index.js +5 -0
- package/dist/components/step-up-dialog/step-up-dialog.d.ts +108 -0
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/workflow-status/index.js +2 -2
- package/dist/core.css +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-signing-session.d.ts +7 -2
- package/dist/host-compat.css +18 -3
- package/dist/i18n/locales/ar.d.ts +605 -1
- package/dist/i18n/locales/ar.js +603 -3
- package/dist/i18n/locales/de.d.ts +605 -1
- package/dist/i18n/locales/de.js +611 -4
- package/dist/i18n/locales/el.d.ts +605 -1
- package/dist/i18n/locales/el.js +606 -4
- package/dist/i18n/locales/en.d.ts +607 -1
- package/dist/i18n/locales/en.js +614 -4
- package/dist/i18n/locales/es.d.ts +605 -1
- package/dist/i18n/locales/es.js +604 -4
- package/dist/i18n/locales/fr.d.ts +605 -1
- package/dist/i18n/locales/fr.js +604 -4
- package/dist/i18n/locales/hi.d.ts +605 -1
- package/dist/i18n/locales/hi.js +604 -4
- package/dist/i18n/locales/it.d.ts +605 -1
- package/dist/i18n/locales/it.js +611 -4
- package/dist/i18n/locales/ja.d.ts +605 -1
- package/dist/i18n/locales/ja.js +604 -4
- package/dist/i18n/locales/nl.d.ts +605 -1
- package/dist/i18n/locales/nl.js +611 -4
- package/dist/i18n/locales/pl.d.ts +605 -1
- package/dist/i18n/locales/pl.js +611 -4
- package/dist/i18n/locales/pt.d.ts +605 -1
- package/dist/i18n/locales/pt.js +611 -4
- package/dist/i18n/locales/ro.d.ts +605 -1
- package/dist/i18n/locales/ro.js +611 -4
- package/dist/i18n/locales/ru.d.ts +605 -1
- package/dist/i18n/locales/ru.js +603 -3
- package/dist/i18n/locales/sq.d.ts +605 -1
- package/dist/i18n/locales/sq.js +604 -4
- package/dist/i18n/locales/sv.d.ts +605 -1
- package/dist/i18n/locales/sv.js +604 -4
- package/dist/i18n/locales/tr.d.ts +605 -1
- package/dist/i18n/locales/tr.js +606 -4
- package/dist/i18n/locales/zh.d.ts +605 -1
- package/dist/i18n/locales/zh.js +604 -4
- package/dist/index.js +1305 -1231
- package/dist/locales/ar.json +606 -2
- package/dist/locales/de.json +607 -3
- package/dist/locales/el.json +607 -3
- package/dist/locales/en.json +607 -3
- package/dist/locales/es.json +607 -3
- package/dist/locales/fr.json +607 -3
- package/dist/locales/hi.json +607 -3
- package/dist/locales/it.json +607 -3
- package/dist/locales/ja.json +607 -3
- package/dist/locales/nl.json +607 -3
- package/dist/locales/pl.json +607 -3
- package/dist/locales/pt.json +607 -3
- package/dist/locales/ro.json +607 -3
- package/dist/locales/ru.json +606 -2
- package/dist/locales/sq.json +607 -3
- package/dist/locales/sv.json +607 -3
- package/dist/locales/tr.json +607 -3
- package/dist/locales/zh.json +607 -3
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/calendar/calendar.journey.d.ts +7 -0
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/check-in-documents/check-in-documents.d.ts +61 -0
- package/dist/patterns/check-in-documents/check-in-signable-document.d.ts +32 -0
- package/dist/patterns/check-in-documents/index.d.ts +4 -0
- package/dist/patterns/check-in-documents/index.js +5 -0
- package/dist/patterns/error-page/index.js +1 -1
- package/dist/patterns/patient-account-settings/index.d.ts +4 -0
- package/dist/patterns/patient-account-settings/index.js +5 -0
- package/dist/patterns/patient-account-settings/patient-account-settings-panels.d.ts +36 -0
- package/dist/patterns/patient-account-settings/patient-account-settings.d.ts +94 -0
- package/dist/patterns/patient-account-settings/patient-account-settings.types.d.ts +91 -0
- package/dist/patterns/patient-check-in/index.d.ts +20 -0
- package/dist/patterns/patient-check-in/index.js +13 -0
- package/dist/patterns/patient-check-in/patient-check-in-changed.d.ts +33 -0
- package/dist/patterns/patient-check-in/patient-check-in-connection-notice.d.ts +29 -0
- package/dist/patterns/patient-check-in/patient-check-in-done.d.ts +25 -0
- package/dist/patterns/patient-check-in/patient-check-in-entry.d.ts +29 -0
- package/dist/patterns/patient-check-in/patient-check-in-hub-empty.d.ts +23 -0
- package/dist/patterns/patient-check-in/patient-check-in-hub.d.ts +61 -0
- package/dist/patterns/patient-check-in/patient-check-in-personal-data.d.ts +73 -0
- package/dist/patterns/patient-check-in/patient-check-in-privacy.d.ts +9 -0
- package/dist/patterns/patient-check-in/patient-check-in-resume.d.ts +29 -0
- package/dist/patterns/patient-check-in/patient-check-in-shell.d.ts +60 -0
- package/dist/patterns/patient-check-in/patient-check-in-types.d.ts +92 -0
- package/dist/patterns/patient-portal/index.d.ts +12 -0
- package/dist/patterns/patient-portal/index.js +13 -0
- package/dist/patterns/patient-portal/portal-appointments.d.ts +70 -0
- package/dist/patterns/patient-portal/portal-details.d.ts +148 -0
- package/dist/patterns/patient-portal/portal-documents.d.ts +74 -0
- package/dist/patterns/patient-portal/portal-format.d.ts +14 -0
- package/dist/patterns/patient-portal/portal-home.d.ts +71 -0
- package/dist/patterns/patient-portal/portal-parts.d.ts +107 -0
- package/dist/patterns/patient-portal/portal-shell.d.ts +84 -0
- package/dist/patterns/patient-portal/portal-types.d.ts +157 -0
- package/dist/patterns/patient-sign-in/index.d.ts +7 -0
- package/dist/patterns/patient-sign-in/index.js +15 -0
- package/dist/patterns/patient-sign-in/patient-card.d.ts +74 -0
- package/dist/patterns/patient-sign-in/patient-sign-in-email.d.ts +109 -0
- package/dist/patterns/patient-sign-in/patient-sign-in-pin.d.ts +157 -0
- package/dist/patterns/patient-sign-in/patient-sign-in-steps.d.ts +143 -0
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/signing/index.d.ts +26 -0
- package/dist/patterns/signing/index.js +16 -0
- package/dist/patterns/signing/multi-field-signer.d.ts +138 -0
- package/dist/patterns/signing/signing-awaiting-screen.d.ts +25 -0
- package/dist/patterns/signing/signing-checkbox-pill.d.ts +66 -0
- package/dist/patterns/signing/signing-checkbox-sheet.d.ts +16 -0
- package/dist/patterns/signing/signing-chrome.d.ts +30 -0
- package/dist/patterns/signing/signing-document-screen.d.ts +104 -0
- package/dist/patterns/signing/signing-end-screen.d.ts +27 -0
- package/dist/patterns/signing/signing-finished-screen.d.ts +34 -0
- package/dist/patterns/signing/signing-footer.d.ts +56 -0
- package/dist/patterns/signing/signing-handoff-screen.d.ts +37 -0
- package/dist/patterns/signing/signing-message-dialog.d.ts +29 -0
- package/dist/patterns/signing/signing-progress-chip.d.ts +27 -0
- package/dist/patterns/signing/signing-roster.d.ts +44 -0
- package/dist/patterns/signing/signing-staff-id-confirmation.d.ts +49 -0
- package/dist/patterns/verify-identity/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +57 -1
- package/dist/_chunks/appointment-card-OAOur8lH.js +0 -434
- package/dist/_chunks/appointment-tray-DSFqO5Rm.js +0 -193
- package/dist/_chunks/document-preview-_kQ9QvZV.js +0 -291
- package/dist/_chunks/finished-terminal-FR8uc_Ws.js +0 -122
- package/dist/_chunks/handled-rejection-6gqCf5vt.js +0 -13
- package/dist/_chunks/is-safe-url-DkETxeHz.js +0 -7
- package/dist/_chunks/otp-input-gV1446Dw.js +0 -301
- package/dist/_chunks/session-countdown-C4tzbJVc.js +0 -223
- package/dist/_chunks/use-zoom-drilldown-qCX34w9I.js +0 -210
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { useRef as v, useEffect as A, useState as E, useMemo as R, useCallback as c } from "react";
|
|
2
|
+
import { flushSync as M } from "react-dom";
|
|
3
|
+
function q(n) {
|
|
4
|
+
return n != null && n.current ? n.current : typeof document > "u" ? null : document;
|
|
5
|
+
}
|
|
6
|
+
function L(n, d) {
|
|
7
|
+
const l = typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(n) : (
|
|
8
|
+
// SSR / jsdom fallback — drop every character that's
|
|
9
|
+
// significant in a CSS attribute selector. Conservative but
|
|
10
|
+
// robust enough for the test environment.
|
|
11
|
+
n.replace(/["'\\[\]]/g, "")
|
|
12
|
+
), i = `[data-error-anchor="${l}"], [name="${l}"], [name$="[${l}]"]`, w = Array.from(d.querySelectorAll(i));
|
|
13
|
+
return w.length === 0 ? null : w.find((p) => p.offsetParent !== null) ?? w[0];
|
|
14
|
+
}
|
|
15
|
+
function P(n, d, l = {}) {
|
|
16
|
+
const {
|
|
17
|
+
scope: i,
|
|
18
|
+
scrollOptions: w = { behavior: "smooth", block: "center" },
|
|
19
|
+
focus: a = !0,
|
|
20
|
+
skipInitialMount: p = !0
|
|
21
|
+
} = l, y = v(!1), u = v(null), t = d.find((h) => !!n[h]) ?? null;
|
|
22
|
+
A(() => {
|
|
23
|
+
if (p && !y.current) {
|
|
24
|
+
y.current = !0, u.current = t;
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
if (!t) {
|
|
28
|
+
u.current = null;
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
if (t === u.current || typeof window > "u") return;
|
|
32
|
+
const h = window.requestAnimationFrame(() => {
|
|
33
|
+
const S = q(i);
|
|
34
|
+
if (!S) return;
|
|
35
|
+
const r = L(t, S);
|
|
36
|
+
r && (r.scrollIntoView(w), a && r.focus({ preventScroll: !0 }), u.current = t);
|
|
37
|
+
});
|
|
38
|
+
return () => window.cancelAnimationFrame(h);
|
|
39
|
+
}, [t]);
|
|
40
|
+
}
|
|
41
|
+
function O(n, d = !1) {
|
|
42
|
+
const l = {};
|
|
43
|
+
for (const i of n)
|
|
44
|
+
l[i.id] = { signed: d ? !1 : !!i.signed };
|
|
45
|
+
return l;
|
|
46
|
+
}
|
|
47
|
+
function Z(n) {
|
|
48
|
+
const [d, l] = E(
|
|
49
|
+
() => O(n)
|
|
50
|
+
), i = v(d), w = v(n);
|
|
51
|
+
A(() => {
|
|
52
|
+
w.current = n;
|
|
53
|
+
}, [n]);
|
|
54
|
+
const [a, p] = E(null), [y, u] = E(
|
|
55
|
+
() => {
|
|
56
|
+
var e;
|
|
57
|
+
return ((e = n[0]) == null ? void 0 : e.id) ?? null;
|
|
58
|
+
}
|
|
59
|
+
), t = R(
|
|
60
|
+
() => n.map((e) => {
|
|
61
|
+
const o = d[e.id];
|
|
62
|
+
return {
|
|
63
|
+
...e,
|
|
64
|
+
signed: o ? o.signed : !!e.signed,
|
|
65
|
+
payload: o == null ? void 0 : o.payload
|
|
66
|
+
};
|
|
67
|
+
}),
|
|
68
|
+
[n, d]
|
|
69
|
+
), h = R(
|
|
70
|
+
() => t.reduce((e, o) => o.signed ? e + 1 : e, 0),
|
|
71
|
+
[t]
|
|
72
|
+
), S = t.length, r = S > 0 && h === S, f = c((e) => {
|
|
73
|
+
var s;
|
|
74
|
+
const o = i.current[e];
|
|
75
|
+
return (o ? o.signed : !!((s = w.current.find((I) => I.id === e)) != null && s.signed)) ? !1 : (p(e), !0);
|
|
76
|
+
}, []), T = c(() => {
|
|
77
|
+
p(null);
|
|
78
|
+
}, []), g = c((e, o) => {
|
|
79
|
+
const m = {
|
|
80
|
+
...i.current,
|
|
81
|
+
[e]: { signed: !0, payload: o }
|
|
82
|
+
};
|
|
83
|
+
i.current = m, l(m), p((s) => s === e ? null : s);
|
|
84
|
+
}, []), C = c(
|
|
85
|
+
(e) => {
|
|
86
|
+
var o;
|
|
87
|
+
return ((o = t.find((m) => m.id === e)) == null ? void 0 : o.signed) ?? !1;
|
|
88
|
+
},
|
|
89
|
+
[t]
|
|
90
|
+
), F = c(() => {
|
|
91
|
+
var o;
|
|
92
|
+
const e = O(n, !0);
|
|
93
|
+
i.current = e, l(e), p(null), u(((o = n[0]) == null ? void 0 : o.id) ?? null);
|
|
94
|
+
}, [n]), b = c(() => {
|
|
95
|
+
u((e) => {
|
|
96
|
+
const o = t.length;
|
|
97
|
+
if (o === 0) return null;
|
|
98
|
+
const m = e ? t.findIndex((s) => s.id === e) : -1;
|
|
99
|
+
return t[(m + 1 + o) % o].id;
|
|
100
|
+
});
|
|
101
|
+
}, [t]), x = c(() => {
|
|
102
|
+
u((e) => {
|
|
103
|
+
const o = t.length;
|
|
104
|
+
if (o === 0) return null;
|
|
105
|
+
const m = e ? t.findIndex((s) => s.id === e) : 0;
|
|
106
|
+
return t[(m - 1 + o) % o].id;
|
|
107
|
+
});
|
|
108
|
+
}, [t]), k = c(() => {
|
|
109
|
+
u((e) => {
|
|
110
|
+
const o = t.length;
|
|
111
|
+
if (o === 0) return e;
|
|
112
|
+
const m = e ? t.findIndex((s) => s.id === e) : -1;
|
|
113
|
+
for (let s = 1; s <= o; s += 1) {
|
|
114
|
+
const I = t[(m + s) % o];
|
|
115
|
+
if (!I.signed) return I.id;
|
|
116
|
+
}
|
|
117
|
+
return e;
|
|
118
|
+
});
|
|
119
|
+
}, [t]);
|
|
120
|
+
return R(
|
|
121
|
+
() => ({
|
|
122
|
+
fields: t,
|
|
123
|
+
signedCount: h,
|
|
124
|
+
total: S,
|
|
125
|
+
isComplete: r,
|
|
126
|
+
activeFieldId: a,
|
|
127
|
+
openField: f,
|
|
128
|
+
closeField: T,
|
|
129
|
+
markSigned: g,
|
|
130
|
+
isFieldSigned: C,
|
|
131
|
+
reset: F,
|
|
132
|
+
cursorFieldId: y,
|
|
133
|
+
goToNextField: b,
|
|
134
|
+
goToPreviousField: x,
|
|
135
|
+
goToNextUnsigned: k
|
|
136
|
+
}),
|
|
137
|
+
[
|
|
138
|
+
t,
|
|
139
|
+
h,
|
|
140
|
+
S,
|
|
141
|
+
r,
|
|
142
|
+
a,
|
|
143
|
+
f,
|
|
144
|
+
T,
|
|
145
|
+
g,
|
|
146
|
+
C,
|
|
147
|
+
F,
|
|
148
|
+
y,
|
|
149
|
+
b,
|
|
150
|
+
x,
|
|
151
|
+
k
|
|
152
|
+
]
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
const N = "ds-zoom-drilldown", B = () => {
|
|
156
|
+
if (typeof document > "u") return null;
|
|
157
|
+
const n = document.querySelector("main");
|
|
158
|
+
return n ? n.querySelector("[data-radix-scroll-area-viewport]") ?? n.closest("[data-radix-scroll-area-viewport]") ?? n : null;
|
|
159
|
+
}, V = (n) => typeof n.startViewTransition == "function" && typeof CSS < "u" && typeof CSS.supports == "function" && CSS.supports("view-transition-class", N);
|
|
160
|
+
function _(n = {}) {
|
|
161
|
+
const [d, l] = E(null), i = v(
|
|
162
|
+
null
|
|
163
|
+
), w = v(n.getScrollContainer);
|
|
164
|
+
w.current = n.getScrollContainer;
|
|
165
|
+
const a = c(
|
|
166
|
+
() => (w.current ?? B)(),
|
|
167
|
+
[]
|
|
168
|
+
), p = c(() => {
|
|
169
|
+
const r = a();
|
|
170
|
+
return {
|
|
171
|
+
window: typeof window < "u" ? window.scrollY : 0,
|
|
172
|
+
container: r ? r.scrollTop : 0
|
|
173
|
+
};
|
|
174
|
+
}, [a]), y = c(() => {
|
|
175
|
+
const r = i.current;
|
|
176
|
+
if (!r) return;
|
|
177
|
+
i.current = null;
|
|
178
|
+
let f = 0;
|
|
179
|
+
const T = () => {
|
|
180
|
+
const g = a();
|
|
181
|
+
typeof window < "u" && window.scrollTo({ top: r.window }), g && (g.scrollTop = r.container), !((typeof window > "u" || Math.abs(window.scrollY - r.window) < 2) && (!g || Math.abs(g.scrollTop - r.container) < 2)) && f < 20 && (f += 1, requestAnimationFrame(T));
|
|
182
|
+
};
|
|
183
|
+
T();
|
|
184
|
+
}, [a]), u = c(() => {
|
|
185
|
+
const r = a();
|
|
186
|
+
typeof window < "u" && window.scrollTo({ top: 0 }), r && (r.scrollTop = 0);
|
|
187
|
+
}, [a]), t = c(
|
|
188
|
+
(r) => {
|
|
189
|
+
var F;
|
|
190
|
+
const f = document, T = typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches, g = r === null;
|
|
191
|
+
if (T || !V(f) || !f.startViewTransition) {
|
|
192
|
+
M(() => l(r)), g ? y() : u();
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
195
|
+
const C = f.startViewTransition(() => {
|
|
196
|
+
M(() => l(r)), g || u();
|
|
197
|
+
});
|
|
198
|
+
g && ((F = C == null ? void 0 : C.finished) == null || F.then(y, y));
|
|
199
|
+
},
|
|
200
|
+
[y, u]
|
|
201
|
+
), h = c(
|
|
202
|
+
(r) => {
|
|
203
|
+
i.current = p(), t(r);
|
|
204
|
+
},
|
|
205
|
+
[p, t]
|
|
206
|
+
), S = c(() => t(null), [t]);
|
|
207
|
+
return A(() => {
|
|
208
|
+
if (d === null) return;
|
|
209
|
+
const r = (f) => {
|
|
210
|
+
f.key === "Escape" && !f.defaultPrevented && S();
|
|
211
|
+
};
|
|
212
|
+
return window.addEventListener("keydown", r), () => window.removeEventListener("keydown", r);
|
|
213
|
+
}, [d, S]), { selected: d, open: h, close: S };
|
|
214
|
+
}
|
|
215
|
+
export {
|
|
216
|
+
N as Z,
|
|
217
|
+
Z as a,
|
|
218
|
+
_ as b,
|
|
219
|
+
P as u
|
|
220
|
+
};
|
|
221
|
+
//# sourceMappingURL=use-zoom-drilldown-Cr1baU5X.js.map
|
|
@@ -1,21 +1,11 @@
|
|
|
1
|
-
import { c } from "./createLucideIcon-DhHxpK9K.js";
|
|
1
|
+
import { c as e } from "./createLucideIcon-DhHxpK9K.js";
|
|
2
2
|
/**
|
|
3
3
|
* @license lucide-react v1.22.0 - ISC
|
|
4
4
|
*
|
|
5
5
|
* This source code is licensed under the ISC license.
|
|
6
6
|
* See the LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
|
-
const
|
|
9
|
-
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
10
|
-
["path", { d: "M4.929 4.929 19.07 19.071", key: "196cmz" }]
|
|
11
|
-
], o = c("ban", e);
|
|
12
|
-
/**
|
|
13
|
-
* @license lucide-react v1.22.0 - ISC
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the ISC license.
|
|
16
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/
|
|
18
|
-
const a = [
|
|
8
|
+
const c = [
|
|
19
9
|
[
|
|
20
10
|
"path",
|
|
21
11
|
{
|
|
@@ -24,22 +14,21 @@ const a = [
|
|
|
24
14
|
}
|
|
25
15
|
],
|
|
26
16
|
["path", { d: "M7 10v12", key: "1qc93n" }]
|
|
27
|
-
],
|
|
17
|
+
], y = e("thumbs-up", c);
|
|
28
18
|
/**
|
|
29
19
|
* @license lucide-react v1.22.0 - ISC
|
|
30
20
|
*
|
|
31
21
|
* This source code is licensed under the ISC license.
|
|
32
22
|
* See the LICENSE file in the root directory of this source tree.
|
|
33
23
|
*/
|
|
34
|
-
const
|
|
24
|
+
const a = [
|
|
35
25
|
["path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", key: "1yyitq" }],
|
|
36
26
|
["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }],
|
|
37
27
|
["line", { x1: "17", x2: "22", y1: "8", y2: "13", key: "3nzzx3" }],
|
|
38
28
|
["line", { x1: "22", x2: "17", y1: "8", y2: "13", key: "1swrse" }]
|
|
39
|
-
],
|
|
29
|
+
], n = e("user-x", a);
|
|
40
30
|
export {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
t as U
|
|
31
|
+
y as T,
|
|
32
|
+
n as U
|
|
44
33
|
};
|
|
45
|
-
//# sourceMappingURL=user-x-
|
|
34
|
+
//# sourceMappingURL=user-x-BJZg4kaP.js.map
|
package/dist/_chunks/{verify-identity-types-CxtrBXsZ.js → verify-identity-types-C6Bam8v6.js}
RENAMED
|
@@ -9,7 +9,7 @@ import { F as ee } from "./form-field-CyHfOVKF.js";
|
|
|
9
9
|
import { T as oe } from "./text-input-B6iAgCr3.js";
|
|
10
10
|
import { c as ce } from "./index-D2ZczOXr.js";
|
|
11
11
|
import { i as he } from "./safe-href-5dbsfbQn.js";
|
|
12
|
-
import { O as Ie } from "./otp-input-
|
|
12
|
+
import { O as Ie } from "./otp-input-BNOTlxq3.js";
|
|
13
13
|
import { P as be } from "./password-input-SJGHFdOO.js";
|
|
14
14
|
import { C as xe } from "./circle-check-BN6rz4NV.js";
|
|
15
15
|
function Z() {
|
|
@@ -704,4 +704,4 @@ export {
|
|
|
704
704
|
de as a,
|
|
705
705
|
Oe as b
|
|
706
706
|
};
|
|
707
|
-
//# sourceMappingURL=verify-identity-types-
|
|
707
|
+
//# sourceMappingURL=verify-identity-types-C6Bam8v6.js.map
|
|
@@ -5,7 +5,8 @@ import { useTranslation as G } from "react-i18next";
|
|
|
5
5
|
import { u as Ve } from "./registry-DvAUVLHh.js";
|
|
6
6
|
import { u as Ce } from "./use-controllable-state-BiY4xTzM.js";
|
|
7
7
|
import { u as Ne } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
8
|
-
import { g as ze
|
|
8
|
+
import { g as ze } from "./get-error-message-DbFUzuja.js";
|
|
9
|
+
import { h as We } from "./handled-rejection-C-6Dq0As.js";
|
|
9
10
|
import { a as B } from "./input-surface-BMffm2Vd.js";
|
|
10
11
|
import { D as p } from "./dropdown-menu-DBWaW4pq.js";
|
|
11
12
|
import { C as U } from "./circle-alert-rGDZ73Wh.js";
|
|
@@ -516,4 +517,4 @@ export {
|
|
|
516
517
|
Oe as a,
|
|
517
518
|
_e as w
|
|
518
519
|
};
|
|
519
|
-
//# sourceMappingURL=workflow-status-
|
|
520
|
+
//# sourceMappingURL=workflow-status-CO0mxXs2.js.map
|