@alfadocs/ui-kit 1.132.0 → 1.134.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/appointment-card-DG3m9yN-.js +504 -0
- package/dist/_chunks/{appointment-peek-DZa6xyUb.js → appointment-peek-BK0tDs4C.js} +2 -2
- package/dist/_chunks/{appointment-timeline-DQePqpyH.js → appointment-timeline-BiI2riRZ.js} +2 -2
- package/dist/_chunks/appointment-tray-ClJCtYQj.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-BSkIYGlW.js +13773 -0
- 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/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/document-preview-DLVIrOYV.js +385 -0
- package/dist/_chunks/{entity-card-fpm-KUKc.js → entity-card-p-LANpYt.js} +18 -17
- 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/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/{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-BAyPOr8N.js} +2 -2
- 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-BkAtIxJW.js +546 -0
- package/dist/_chunks/patient-card-DTh3QTyS.js +125 -0
- package/dist/_chunks/patient-check-in-resume-xhqjC6gf.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-CTEsm705.js +478 -0
- package/dist/_chunks/portal-documents-D8skew0h.js +902 -0
- package/dist/_chunks/portal-parts-BdR29P7z.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-an9P8DOT.js +1041 -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-g1AGfxhr.js} +38 -38
- package/dist/_chunks/{use-appointment-details-read-_b7FRB1x.js → use-appointment-details-read-Dzc6fEzG.js} +6 -6
- 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/agent-catalog.json +723 -364
- package/dist/agent-i18n/en.json +75 -18
- package/dist/browser-support.js +1 -1
- package/dist/components/_shared/is-safe-url.d.ts +3 -1
- package/dist/components/agenda-card/index.js +2 -2
- package/dist/components/agenda-tray/index.js +1 -1
- 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/clinical-note-card/index.js +1 -1
- package/dist/components/document-preview/document-preview.d.ts +61 -7
- package/dist/components/document-preview/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 +12 -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/workflow-status/index.js +1 -1
- 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 +10 -1
- package/dist/i18n/locales/ar.d.ts +514 -1
- package/dist/i18n/locales/ar.js +512 -4
- package/dist/i18n/locales/de.d.ts +514 -1
- package/dist/i18n/locales/de.js +520 -5
- package/dist/i18n/locales/el.d.ts +514 -1
- package/dist/i18n/locales/el.js +515 -5
- package/dist/i18n/locales/en.d.ts +516 -1
- package/dist/i18n/locales/en.js +522 -4
- package/dist/i18n/locales/es.d.ts +514 -1
- package/dist/i18n/locales/es.js +513 -5
- package/dist/i18n/locales/fr.d.ts +514 -1
- package/dist/i18n/locales/fr.js +513 -5
- package/dist/i18n/locales/hi.d.ts +514 -1
- package/dist/i18n/locales/hi.js +513 -5
- package/dist/i18n/locales/it.d.ts +514 -1
- package/dist/i18n/locales/it.js +520 -5
- package/dist/i18n/locales/ja.d.ts +514 -1
- package/dist/i18n/locales/ja.js +513 -5
- package/dist/i18n/locales/nl.d.ts +514 -1
- package/dist/i18n/locales/nl.js +520 -5
- package/dist/i18n/locales/pl.d.ts +514 -1
- package/dist/i18n/locales/pl.js +520 -5
- package/dist/i18n/locales/pt.d.ts +514 -1
- package/dist/i18n/locales/pt.js +520 -5
- package/dist/i18n/locales/ro.d.ts +514 -1
- package/dist/i18n/locales/ro.js +520 -5
- package/dist/i18n/locales/ru.d.ts +514 -1
- package/dist/i18n/locales/ru.js +512 -4
- package/dist/i18n/locales/sq.d.ts +514 -1
- package/dist/i18n/locales/sq.js +513 -5
- package/dist/i18n/locales/sv.d.ts +514 -1
- package/dist/i18n/locales/sv.js +513 -5
- package/dist/i18n/locales/tr.d.ts +514 -1
- package/dist/i18n/locales/tr.js +515 -5
- package/dist/i18n/locales/zh.d.ts +514 -1
- package/dist/i18n/locales/zh.js +513 -5
- package/dist/index.js +1271 -1204
- package/dist/locales/ar.json +516 -3
- package/dist/locales/de.json +517 -4
- package/dist/locales/el.json +517 -4
- package/dist/locales/en.json +516 -3
- package/dist/locales/es.json +517 -4
- package/dist/locales/fr.json +517 -4
- package/dist/locales/hi.json +517 -4
- package/dist/locales/it.json +517 -4
- package/dist/locales/ja.json +517 -4
- package/dist/locales/nl.json +517 -4
- package/dist/locales/pl.json +517 -4
- package/dist/locales/pt.json +517 -4
- package/dist/locales/ro.json +517 -4
- package/dist/locales/ru.json +516 -3
- package/dist/locales/sq.json +517 -4
- package/dist/locales/sv.json +517 -4
- package/dist/locales/tr.json +517 -4
- package/dist/locales/zh.json +517 -4
- package/dist/patterns/calendar/calendar.journey.d.ts +4 -0
- package/dist/patterns/calendar/calendar.surface.d.ts +15 -1
- package/dist/patterns/calendar/calendar.types.d.ts +4 -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 +25 -0
- package/dist/patterns/signing/index.js +16 -0
- package/dist/patterns/signing/multi-field-signer.d.ts +117 -0
- package/dist/patterns/signing/signing-awaiting-screen.d.ts +25 -0
- package/dist/patterns/signing/signing-chrome.d.ts +30 -0
- package/dist/patterns/signing/signing-document-screen.d.ts +87 -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 +49 -1
- package/dist/_chunks/appointment-card-OAOur8lH.js +0 -434
- package/dist/_chunks/appointment-tray-DSFqO5Rm.js +0 -193
- package/dist/_chunks/calendar-appointment-editor-dialog-WW6V1SGh.js +0 -13663
- package/dist/_chunks/document-preview-_kQ9QvZV.js +0 -291
- package/dist/_chunks/finished-terminal-FR8uc_Ws.js +0 -122
- 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
|
@@ -7,9 +7,9 @@ import { B as Te } from "./button-DohK_Ak_.js";
|
|
|
7
7
|
import { I as We } from "./icon-button-S8_weU3g.js";
|
|
8
8
|
import { C as Qe } from "./combobox-BBCVQS-S.js";
|
|
9
9
|
import { D as de } from "./dialog-CVTxyR0v.js";
|
|
10
|
-
import { D as
|
|
10
|
+
import { D as Ft } from "./date-picker-BmVBVpVu.js";
|
|
11
11
|
import { F as H } from "./form-field-CyHfOVKF.js";
|
|
12
|
-
import { I as
|
|
12
|
+
import { I as Pt } from "./icon-button-group-SmkdVCNx.js";
|
|
13
13
|
import { P as Ot } from "./panel-header-CbtlTe85.js";
|
|
14
14
|
import { P as jt } from "./panel-subview-DCyvn-49.js";
|
|
15
15
|
import { R as je } from "./radio-BZQs6_36.js";
|
|
@@ -26,7 +26,7 @@ import { u as Lt } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
|
26
26
|
import { c as Ut } from "./compose-refs-C0k0tdqF.js";
|
|
27
27
|
import { E as Wt, a as Kt } from "./compact-editor-fields-cP6yh7xv.js";
|
|
28
28
|
import { n as Ht } from "./normalize-diacritics-BNGbFNlJ.js";
|
|
29
|
-
import {
|
|
29
|
+
import { a as Gt } from "./privacy-mask-C19dJFMk.js";
|
|
30
30
|
import { g as $e, h as Qt } from "./handled-rejection-6gqCf5vt.js";
|
|
31
31
|
import { L as Yt } from "./lock-ClAFG1gy.js";
|
|
32
32
|
import { X as Xt } from "./x-B5YnXwCz.js";
|
|
@@ -143,7 +143,7 @@ function ln({
|
|
|
143
143
|
clearTimeout(u), m.abort();
|
|
144
144
|
};
|
|
145
145
|
}, [U, G, J]);
|
|
146
|
-
const pe = (j == null ? void 0 : j.query) === U && j.source === G,
|
|
146
|
+
const pe = (j == null ? void 0 : j.query) === U && j.source === G, F = U ? pe ? j.status : "loading" : "idle", N = pe && F === "ready" ? j.patients : [], ae = F === "loading" ? A("inputs.search.loading") : F === "error" ? A("emptyState.error.description") : F === "idle" ? D : N.length === 0 ? A("inputs.combobox.empty") : "", we = !!T && !o && !R, me = N.map((m) => ({
|
|
147
147
|
value: m.id,
|
|
148
148
|
label: m.name
|
|
149
149
|
}));
|
|
@@ -155,7 +155,7 @@ function ln({
|
|
|
155
155
|
{
|
|
156
156
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
|
|
157
157
|
"data-component": "patient-picker",
|
|
158
|
-
"data-status":
|
|
158
|
+
"data-status": F,
|
|
159
159
|
children: [
|
|
160
160
|
/* @__PURE__ */ n(
|
|
161
161
|
Qe,
|
|
@@ -172,7 +172,7 @@ function ln({
|
|
|
172
172
|
L.current = m, w(m);
|
|
173
173
|
},
|
|
174
174
|
onOpenChange: (m) => {
|
|
175
|
-
!m &&
|
|
175
|
+
!m && F !== "error" && w("");
|
|
176
176
|
},
|
|
177
177
|
filter: (m) => !U || N.some((f) => Ht(f.id) === m) ? 1 : 0,
|
|
178
178
|
size: O,
|
|
@@ -184,7 +184,7 @@ function ln({
|
|
|
184
184
|
),
|
|
185
185
|
/* @__PURE__ */ n("p", { role: "status", className: "type-body-sm ds:text-muted-foreground", children: ae }),
|
|
186
186
|
we && T ? /* @__PURE__ */ n(vt, { action: T, typedRef: L }) : null,
|
|
187
|
-
|
|
187
|
+
F === "error" ? /* @__PURE__ */ n(
|
|
188
188
|
Te,
|
|
189
189
|
{
|
|
190
190
|
size: "sm",
|
|
@@ -390,7 +390,7 @@ function hn({
|
|
|
390
390
|
readOnly: L,
|
|
391
391
|
withheld: U,
|
|
392
392
|
maskPatient: pe,
|
|
393
|
-
fallbackError:
|
|
393
|
+
fallbackError: F
|
|
394
394
|
}) {
|
|
395
395
|
var Ce;
|
|
396
396
|
const N = o === "edit", [ae, we] = V(0), [me, m] = V(D);
|
|
@@ -399,14 +399,14 @@ function hn({
|
|
|
399
399
|
() => ut(v)
|
|
400
400
|
), [Y, Ee] = V(lt), [I, r] = V(), E = (e) => Ee((i) => ({ ...i, ...e })), fe = (e) => ie((i) => ({ ...i, ...e })), [he, te] = V(f);
|
|
401
401
|
he !== f && (te(f), ie(ut(v)), Ee(lt), r(void 0));
|
|
402
|
-
const
|
|
402
|
+
const P = S({
|
|
403
403
|
subject: f,
|
|
404
404
|
saving: !1,
|
|
405
405
|
deleting: !1,
|
|
406
406
|
donePending: !1,
|
|
407
407
|
accepted: !1
|
|
408
408
|
});
|
|
409
|
-
|
|
409
|
+
P.current.subject !== f && (P.current = {
|
|
410
410
|
subject: f,
|
|
411
411
|
saving: !1,
|
|
412
412
|
deleting: !1,
|
|
@@ -417,7 +417,7 @@ function hn({
|
|
|
417
417
|
qe(() => (ge.current = !0, () => {
|
|
418
418
|
ge.current = !1;
|
|
419
419
|
}), []);
|
|
420
|
-
const B = (e) => ge.current &&
|
|
420
|
+
const B = (e) => ge.current && P.current === e, ce = S(J);
|
|
421
421
|
ce.current = J;
|
|
422
422
|
const c = !!J, [x, l] = V(0), [d, h] = V(null), ke = S(d);
|
|
423
423
|
ke.current = d;
|
|
@@ -425,7 +425,7 @@ function hn({
|
|
|
425
425
|
qe(() => {
|
|
426
426
|
const e = ce.current;
|
|
427
427
|
if (!ve || !s || !e) return;
|
|
428
|
-
const i =
|
|
428
|
+
const i = P.current, g = ke.current;
|
|
429
429
|
if ((g == null ? void 0 : g.subject) === i.subject && g.status === "ready")
|
|
430
430
|
return;
|
|
431
431
|
const p = new AbortController();
|
|
@@ -443,7 +443,7 @@ function hn({
|
|
|
443
443
|
p.signal.aborted || !B(i) || h({
|
|
444
444
|
subject: i.subject,
|
|
445
445
|
status: "error",
|
|
446
|
-
message: $e(y,
|
|
446
|
+
message: $e(y, F)
|
|
447
447
|
});
|
|
448
448
|
}
|
|
449
449
|
), () => p.abort();
|
|
@@ -480,7 +480,7 @@ function hn({
|
|
|
480
480
|
done: Y.confirmedDone
|
|
481
481
|
} : void 0;
|
|
482
482
|
}, C = (e) => Qt(new Error(`TaskEditor: ${e}`)), Be = () => {
|
|
483
|
-
const e =
|
|
483
|
+
const e = P.current;
|
|
484
484
|
if ($ !== "ready") return C(`cannot save while ${$}.`);
|
|
485
485
|
if (!ye) return C("the host gave no save seam.");
|
|
486
486
|
if (e.accepted) return C("this task was already saved.");
|
|
@@ -504,7 +504,7 @@ function hn({
|
|
|
504
504
|
e.accepted = !0, B(e) && (E({ accepted: !0 }), y && (M == null || M(y)));
|
|
505
505
|
}
|
|
506
506
|
} catch (y) {
|
|
507
|
-
throw B(e) && E({ saveError: $e(y,
|
|
507
|
+
throw B(e) && E({ saveError: $e(y, F) }), y;
|
|
508
508
|
} finally {
|
|
509
509
|
e.saving = !1, B(e) && E({ saving: !1 });
|
|
510
510
|
}
|
|
@@ -512,7 +512,7 @@ function hn({
|
|
|
512
512
|
return p.catch(() => {
|
|
513
513
|
}), p;
|
|
514
514
|
}, xe = (e) => {
|
|
515
|
-
const i =
|
|
515
|
+
const i = P.current;
|
|
516
516
|
if ($ !== "ready")
|
|
517
517
|
return C(`cannot change Done while ${$}.`);
|
|
518
518
|
if (!N || !s || !j || L)
|
|
@@ -531,7 +531,7 @@ function hn({
|
|
|
531
531
|
} catch (W) {
|
|
532
532
|
throw B(i) && E({
|
|
533
533
|
done: g,
|
|
534
|
-
doneError: $e(W,
|
|
534
|
+
doneError: $e(W, F)
|
|
535
535
|
}), W;
|
|
536
536
|
} finally {
|
|
537
537
|
i.donePending = !1, B(i) && E({ donePending: !1 });
|
|
@@ -540,7 +540,7 @@ function hn({
|
|
|
540
540
|
return y.catch(() => {
|
|
541
541
|
}), y;
|
|
542
542
|
}, Ae = () => {
|
|
543
|
-
const e =
|
|
543
|
+
const e = P.current;
|
|
544
544
|
if ($ !== "ready") return C(`cannot delete while ${$}.`);
|
|
545
545
|
if (!N || !s || !ee || L)
|
|
546
546
|
return C("the host gave no delete seam.");
|
|
@@ -552,7 +552,7 @@ function hn({
|
|
|
552
552
|
try {
|
|
553
553
|
await ee(i), e.accepted = !0, B(e) && (E({ accepted: !0, confirmDeleteOpen: !1 }), re == null || re(i));
|
|
554
554
|
} catch (p) {
|
|
555
|
-
throw B(e) && E({ deleteError: $e(p,
|
|
555
|
+
throw B(e) && E({ deleteError: $e(p, F) }), p;
|
|
556
556
|
} finally {
|
|
557
557
|
e.deleting = !1, B(e) && E({ deleting: !1 });
|
|
558
558
|
}
|
|
@@ -599,7 +599,7 @@ function hn({
|
|
|
599
599
|
p.date = W, p.time = Ye(W);
|
|
600
600
|
}
|
|
601
601
|
e.note !== void 0 && (p.note = e.note), e.typeId !== void 0 && (p.typeId = e.typeId), e.assigneeId !== void 0 && (p.assigneeId = e.assigneeId ?? _), e.about !== void 0 && (p.about = e.about), e.patientId !== void 0 && (p.patientId = e.patientId, p.about = "patient"), e.companyId !== void 0 && (p.companyId = e.companyId, p.about = "company"), e.operatorId !== void 0 && (p.operatorId = e.operatorId, p.about = "operator"), fe(p);
|
|
602
|
-
},
|
|
602
|
+
}, Fe = () => {
|
|
603
603
|
const e = Se();
|
|
604
604
|
return {
|
|
605
605
|
mode: o,
|
|
@@ -633,14 +633,14 @@ function hn({
|
|
|
633
633
|
ui: Y,
|
|
634
634
|
patchUi: E,
|
|
635
635
|
/** True once a save or delete landed in this session. */
|
|
636
|
-
isAccepted: () =>
|
|
636
|
+
isAccepted: () => P.current.accepted,
|
|
637
637
|
/** A save or delete is in flight: closing now would lose its outcome. */
|
|
638
|
-
isBusy: () =>
|
|
638
|
+
isBusy: () => P.current.saving || P.current.deleting,
|
|
639
639
|
submit: Be,
|
|
640
640
|
setDone: xe,
|
|
641
641
|
remove: Ae,
|
|
642
642
|
applyPatch: be,
|
|
643
|
-
draftState:
|
|
643
|
+
draftState: Fe
|
|
644
644
|
};
|
|
645
645
|
}
|
|
646
646
|
const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
@@ -702,7 +702,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
702
702
|
loadTask: L,
|
|
703
703
|
onCreateTask: U,
|
|
704
704
|
onUpdateTask: pe,
|
|
705
|
-
onDeleteTask:
|
|
705
|
+
onDeleteTask: F,
|
|
706
706
|
onSetTaskDone: N,
|
|
707
707
|
onCancel: ae,
|
|
708
708
|
onSaved: we,
|
|
@@ -714,11 +714,11 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
714
714
|
className: Y,
|
|
715
715
|
...Ee
|
|
716
716
|
}, I) => {
|
|
717
|
-
const { t: r } = gt("ui"), E = At(), fe = o ?? E, he = s === "edit", te = O === "subview",
|
|
717
|
+
const { t: r } = gt("ui"), E = At(), fe = o ?? E, he = s === "edit", te = O === "subview", P = !te || R, ge = f && he && u === "notice", B = f && !ge, [ce] = V(() => /* @__PURE__ */ new Map()), c = hn({
|
|
718
718
|
mode: s,
|
|
719
719
|
taskId: v,
|
|
720
720
|
initialDate: D,
|
|
721
|
-
active:
|
|
721
|
+
active: P,
|
|
722
722
|
taskTypes: T,
|
|
723
723
|
assignees: A,
|
|
724
724
|
companies: z,
|
|
@@ -729,7 +729,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
729
729
|
loadTask: L,
|
|
730
730
|
onCreateTask: U,
|
|
731
731
|
onUpdateTask: pe,
|
|
732
|
-
onDeleteTask:
|
|
732
|
+
onDeleteTask: F,
|
|
733
733
|
onSetTaskDone: N,
|
|
734
734
|
onSaved: we,
|
|
735
735
|
onDeleted: me,
|
|
@@ -768,7 +768,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
768
768
|
}),
|
|
769
769
|
[]
|
|
770
770
|
);
|
|
771
|
-
zt(un,
|
|
771
|
+
zt(un, P ? Ve : null, fe);
|
|
772
772
|
const ue = S(null), ye = Oe(
|
|
773
773
|
() => Ut(I, ue),
|
|
774
774
|
[I]
|
|
@@ -781,11 +781,11 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
781
781
|
var st;
|
|
782
782
|
const t = ue.current, b = t == null ? void 0 : t.parentElement;
|
|
783
783
|
if (!te || !R || !t || !b) return;
|
|
784
|
-
const K = C.current, oe = K && b.contains(K) && !t.contains(K) ? K : null, Tt = Ae.current, De = (oe == null ? void 0 : oe.closest("[data-task-id]")) ?? Ge(b, t).find((
|
|
784
|
+
const K = C.current, oe = K && b.contains(K) && !t.contains(K) ? K : null, Tt = Ae.current, De = (oe == null ? void 0 : oe.closest("[data-task-id]")) ?? Ge(b, t).find((Pe) => Pe.dataset.taskId === Tt), rt = De == null ? void 0 : De.dataset.taskId, at = (st = oe == null ? void 0 : oe.closest("[data-action]")) == null ? void 0 : st.dataset.action, it = De ? Ge(b, t).indexOf(De) : -1;
|
|
785
785
|
return () => {
|
|
786
786
|
if (xe.current && t.isConnected) return;
|
|
787
|
-
const
|
|
788
|
-
if (!b.isConnected ||
|
|
787
|
+
const Pe = document.activeElement;
|
|
788
|
+
if (!b.isConnected || Pe && Pe !== document.body) return;
|
|
789
789
|
const Ue = Ge(b, t), Bt = [
|
|
790
790
|
...ft(
|
|
791
791
|
Ue.find((Ie) => rt !== void 0 && Ie.dataset.taskId === rt),
|
|
@@ -801,7 +801,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
801
801
|
return;
|
|
802
802
|
};
|
|
803
803
|
}, [R, te]);
|
|
804
|
-
const se = S(null), be = S(!1),
|
|
804
|
+
const se = S(null), be = S(!1), Fe = (t) => () => {
|
|
805
805
|
be.current = !0, t();
|
|
806
806
|
};
|
|
807
807
|
Lt(() => {
|
|
@@ -889,7 +889,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
889
889
|
}
|
|
890
890
|
) : null,
|
|
891
891
|
/* @__PURE__ */ k(
|
|
892
|
-
|
|
892
|
+
Pt,
|
|
893
893
|
{
|
|
894
894
|
role: "toolbar",
|
|
895
895
|
"aria-label": r(a("actionsLabel")),
|
|
@@ -968,7 +968,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
968
968
|
ref: se,
|
|
969
969
|
intent: "outline",
|
|
970
970
|
"data-action": "retry-load",
|
|
971
|
-
onClick:
|
|
971
|
+
onClick: Fe(c.retry),
|
|
972
972
|
children: r("emptyState.error.cta")
|
|
973
973
|
}
|
|
974
974
|
)
|
|
@@ -986,7 +986,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
986
986
|
) }) : l.patientId ? /* @__PURE__ */ n(H, { label: r(a("aboutPatient")), children: /* @__PURE__ */ n(Me, { value: y(l.patientId), disabled: !0, readOnly: !0 }) }) : null, et = /* @__PURE__ */ k("fieldset", { disabled: m, className: mt(), children: [
|
|
987
987
|
m ? Xe : null,
|
|
988
988
|
/* @__PURE__ */ n(H, { label: r(a("date")), children: /* @__PURE__ */ n(
|
|
989
|
-
|
|
989
|
+
Ft,
|
|
990
990
|
{
|
|
991
991
|
value: l.date,
|
|
992
992
|
onChange: (t) => c.patchFields({ date: t })
|
|
@@ -1144,12 +1144,12 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
1144
1144
|
] }), tt = x === "loading" ? St : x === "error" ? Ct : x === "locked" ? Dt : x === "withheld" ? /* @__PURE__ */ n(
|
|
1145
1145
|
Gt,
|
|
1146
1146
|
{
|
|
1147
|
-
onTurnOff: ie ?
|
|
1147
|
+
onTurnOff: ie ? Fe(ie) : void 0
|
|
1148
1148
|
}
|
|
1149
1149
|
) : te ? et : /* @__PURE__ */ n($t, { orientation: "vertical", className: "ds:min-h-0 ds:flex-1", children: et }), Le = x === "ready" ? Ze(!0) : x === "locked" || x === "withheld" ? Ze(!1) : null, Rt = x === "ready" && c.showDelete, nt = he ? /* @__PURE__ */ n(
|
|
1150
1150
|
de,
|
|
1151
1151
|
{
|
|
1152
|
-
open: d.confirmDeleteOpen &&
|
|
1152
|
+
open: d.confirmDeleteOpen && P,
|
|
1153
1153
|
onOpenChange: (t) => {
|
|
1154
1154
|
d.deleting || c.patchUi(
|
|
1155
1155
|
t ? { confirmDeleteOpen: !0 } : { confirmDeleteOpen: !1, deleteError: void 0 }
|
|
@@ -1253,4 +1253,4 @@ export {
|
|
|
1253
1253
|
yn as T,
|
|
1254
1254
|
un as t
|
|
1255
1255
|
};
|
|
1256
|
-
//# sourceMappingURL=task-editor-
|
|
1256
|
+
//# sourceMappingURL=task-editor-g1AGfxhr.js.map
|
|
@@ -6,17 +6,17 @@ import { u as un } from "./registry-DvAUVLHh.js";
|
|
|
6
6
|
import { u as me } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
7
7
|
import { c as mn } from "./compose-refs-C0k0tdqF.js";
|
|
8
8
|
import { h as at, g as dt } from "./handled-rejection-6gqCf5vt.js";
|
|
9
|
-
import {
|
|
9
|
+
import { b as pn, P as Lt } from "./privacy-mask-C19dJFMk.js";
|
|
10
10
|
import { A as $ } from "./alert-C4WKViaS.js";
|
|
11
11
|
import { B as L } from "./button-DohK_Ak_.js";
|
|
12
12
|
import { I as Yt } from "./icon-button-S8_weU3g.js";
|
|
13
13
|
import { B as hn } from "./button-group-DuQuuulC.js";
|
|
14
14
|
import { D as qe } from "./dropdown-menu-DBWaW4pq.js";
|
|
15
15
|
import { E as Gt } from "./editable-description-KU56SP4P.js";
|
|
16
|
-
import { N as lt } from "./note-timeline-
|
|
16
|
+
import { N as lt } from "./note-timeline-BbjHMhkL.js";
|
|
17
17
|
import { P as Vt } from "./panel-header-CbtlTe85.js";
|
|
18
18
|
import { P as it } from "./panel-subview-DCyvn-49.js";
|
|
19
|
-
import { P as Xt } from "./patient-summary-card-
|
|
19
|
+
import { P as Xt } from "./patient-summary-card-Bl2NknPe.js";
|
|
20
20
|
import { S as pe } from "./section-card-CYfeQ6EQ.js";
|
|
21
21
|
import { C as fn, S as we } from "./skeleton-tTWJpvAq.js";
|
|
22
22
|
import { T as gn } from "./text-area-COMVJ1yE.js";
|
|
@@ -24,12 +24,12 @@ import { T as vn } from "./tooltip-uEBdD1-5.js";
|
|
|
24
24
|
import { T as Qt } from "./treatment-receipt-BZzwvsnY.js";
|
|
25
25
|
import { a as st } from "./whatsapp-button-XbozeDl_.js";
|
|
26
26
|
import { a as Jt, W as yn } from "./workflow-status-D1WgGVTP.js";
|
|
27
|
-
import { u as yt, a as Ot, i as bn } from "./appointment-workflow-status-
|
|
27
|
+
import { u as yt, a as Ot, i as bn } from "./appointment-workflow-status-S-lx81Yz.js";
|
|
28
28
|
import { E as kn } from "./empty-state-DwJ5YNzz.js";
|
|
29
29
|
import { T as Oe } from "./timeline-DXko0M1t.js";
|
|
30
30
|
import { C as bt } from "./calendar-clock-hbObjfGY.js";
|
|
31
31
|
import { T as Zt } from "./trash-2-uumy3fy1.js";
|
|
32
|
-
import { A as rt } from "./entity-card-
|
|
32
|
+
import { A as rt } from "./entity-card-p-LANpYt.js";
|
|
33
33
|
import { C as wn } from "./calendar-plus-BFrIRE4r.js";
|
|
34
34
|
import { P as Ne } from "./pencil-B1sKKyuT.js";
|
|
35
35
|
import { C as ct } from "./clock-Drd4Wtis.js";
|
|
@@ -2472,4 +2472,4 @@ export {
|
|
|
2472
2472
|
da as s,
|
|
2473
2473
|
ps as u
|
|
2474
2474
|
};
|
|
2475
|
-
//# sourceMappingURL=use-appointment-details-read-
|
|
2475
|
+
//# sourceMappingURL=use-appointment-details-read-Dzc6fEzG.js.map
|
|
@@ -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
|