@alfadocs/ui-kit 0.72.2 → 0.75.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/actions-cell-renderer-DLrcSTK_.js +1546 -0
- package/dist/_chunks/{agenda-tray-loL2A3Cx.js → agenda-tray-CVf-jfWU.js} +3 -3
- package/dist/_chunks/{ai-consent-banner-Bke9m8VS.js → ai-consent-banner-DUhr1yNj.js} +2 -2
- package/dist/_chunks/{ai-prompt-input-TVI95hJD.js → ai-prompt-input-DziJCGLe.js} +3 -3
- package/dist/_chunks/{alia-sidebar-BV5lBSFR.js → alia-sidebar-w6B0TEx7.js} +8 -8
- package/dist/_chunks/{anamnesis-card-CWO4Ui9c.js → anamnesis-card-CJ5MNbkc.js} +2 -2
- package/dist/_chunks/{antenatal-schedule-timeline-CY-VsLok.js → antenatal-schedule-timeline-BzJZqS-8.js} +3 -3
- package/dist/_chunks/{appointment-card-Cy4FOkGP.js → appointment-card-DgKI5QKD.js} +2 -2
- package/dist/_chunks/{appointment-timeline-BWAPPk8F.js → appointment-timeline-DQTG0btW.js} +6 -6
- package/dist/_chunks/{appointment-tray-D3mk04TT.js → appointment-tray-ezyCZN8v.js} +4 -4
- package/dist/_chunks/{ar-BOqyIfoY.js → ar-B1GhtlBP.js} +2 -2
- package/dist/_chunks/{columns-2-8lq4-b8e.js → arrow-up-right-C2v_MKsK.js} +5 -5
- package/dist/_chunks/{audio-recorder-BbjG55dP.js → audio-recorder-Cc3KuL9y.js} +4 -4
- package/dist/_chunks/{benefit-card-Xnxj4Gmo.js → benefit-card-DB1Kdrmc.js} +4 -2
- package/dist/_chunks/{bishop-score-C6eoak_j.js → bishop-score-DDW5-gb9.js} +3 -3
- package/dist/_chunks/{bmi-calculator-BmQfoEGP.js → bmi-calculator-Bk2GAju7.js} +2 -2
- package/dist/_chunks/{booking-B62CMY5k.js → booking-B1Qkcl3c.js} +9 -9
- package/dist/_chunks/{button-DD_0Xdmr.js → button-CPGiR_bH.js} +56 -35
- package/dist/_chunks/button-group-DzV5wgnx.js +289 -0
- package/dist/_chunks/camera-VSklPDCv.js +21 -0
- package/dist/_chunks/{care-plan-card-DhXbfGzE.js → care-plan-card-BrwhyIJI.js} +3 -3
- package/dist/_chunks/{care-plan-entry-card-D3YGD6rj.js → care-plan-entry-card-DWEdCQM3.js} +3 -3
- package/dist/_chunks/{care-plan-header-DtQxyfOb.js → care-plan-header-BXvRpGG8.js} +2 -2
- package/dist/_chunks/{carousel.agent-j7hWxJWr.js → carousel.agent-CtAAdsAd.js} +2 -2
- package/dist/_chunks/{chat-container-BVCoN06N.js → chat-container-HlFnoEIl.js} +4 -2
- package/dist/_chunks/{chat-input-Btq_uuMZ.js → chat-input-BTCDqUDX.js} +2 -2
- package/dist/_chunks/{chat-message-DXjjM8z9.js → chat-message-CdjWqZjo.js} +3 -3
- package/dist/_chunks/{code-block-Cwi7e3HM.js → code-block-BwanBjRh.js} +2 -2
- package/dist/_chunks/{connection-status-0HajXMXM.js → connection-status-oEUyrvev.js} +3 -3
- package/dist/_chunks/{contact-profile-card-IggiUVpN.js → contact-profile-card-veMV3W4J.js} +2 -2
- package/dist/_chunks/{control-room-rail-DaGcsdZ6.js → control-room-rail-CdfrZ6Vr.js} +3 -3
- package/dist/_chunks/{copy-field-PAp0-Wr5.js → copy-field-DBc9QquW.js} +2 -2
- package/dist/_chunks/{cycle-calculator-BNILyVas.js → cycle-calculator-OQp8Ik5U.js} +4 -4
- package/dist/_chunks/data-table-tabs-BEUXiRlu.js +710 -0
- package/dist/_chunks/{date-picker-CVkD_lOi.js → date-picker-DzQS8mvt.js} +2 -2
- package/dist/_chunks/{date-picker-variants-DLg-ZrIo.js → date-picker-variants-CYQAm1Gk.js} +116 -115
- package/dist/_chunks/{date-range-picker-Dw12DgV8.js → date-range-picker-Cbz1SKhm.js} +3 -3
- package/dist/_chunks/{date-time-picker-Cd_OJtOy.js → date-time-picker-B5IpU-nd.js} +2 -2
- package/dist/_chunks/{de-DFLsUxeV.js → de-DETDHQ0o.js} +2 -2
- package/dist/_chunks/{description-list-CmBVxIF5.js → description-list-ClNLdRMy.js} +2 -2
- package/dist/_chunks/document-preview-CGSM_au9.js +181 -0
- package/dist/_chunks/{document-scanner-B23j4w7X.js → document-scanner-B6h1Ir56.js} +198 -230
- package/dist/_chunks/{due-date-calculator-CmdAl_JO.js → due-date-calculator-DASNRgnH.js} +4 -4
- package/dist/_chunks/{editable-currency-cell-renderer-z9fJFw6Z.js → editable-currency-cell-renderer-GwfA9tTR.js} +3 -3
- package/dist/_chunks/{editor-overlay-BIOzr8v7.js → editor-overlay-DE3esyio.js} +2 -2
- package/dist/_chunks/{el-OVjBKytp.js → el-HV3jOI0z.js} +2 -2
- package/dist/_chunks/{empty-state-BLy7tigq.js → empty-state-CrLsi0XI.js} +2 -2
- package/dist/_chunks/{entity-summary-DpGziDv5.js → entity-summary--vP698Jn.js} +3 -3
- package/dist/_chunks/eraser-CHOGQfVv.js +21 -0
- package/dist/_chunks/{es-DKDNrHXG.js → es-Dpo7Olwo.js} +2 -2
- package/dist/_chunks/face-scheme-C0rk21gg.js +3146 -0
- package/dist/_chunks/{fetal-weight-CVAH8sJ3.js → fetal-weight-1F9N4IMx.js} +2 -2
- package/dist/_chunks/{field-array-CDzc3hTM.js → field-array-DH3Mb1i8.js} +3 -3
- package/dist/_chunks/{field-value-Dj3i52H2.js → field-value-DHG6gEKS.js} +5 -5
- package/dist/_chunks/file-Cwe9VC1A.js +40 -0
- package/dist/_chunks/file-manager-UF8dkQF1.js +1776 -0
- package/dist/_chunks/{file-upload-Kw1rdvFw.js → file-upload-DENvuhfs.js} +101 -139
- package/dist/_chunks/{finished-terminal-Di4gtZ50.js → finished-terminal-C0_mefrf.js} +11 -11
- package/dist/_chunks/{fiscal-code-input-DKNXFXs3.js → fiscal-code-input-DWA6C8x8.js} +2 -2
- package/dist/_chunks/{fr-BfMvQh-v.js → fr-CgD4Jvtq.js} +2 -2
- package/dist/_chunks/{freemium-paywall-DFoeedwh.js → freemium-paywall-CmV642PA.js} +7 -3
- package/dist/_chunks/{gestational-age-calculator-BwCBPAGX.js → gestational-age-calculator-BpYw-WF-.js} +7 -7
- package/dist/_chunks/{hcg-doubling-CSsWxEJc.js → hcg-doubling-Dqj-EqMT.js} +3 -3
- package/dist/_chunks/{header-DaXWDw0M.js → header-CjwasYnn.js} +88 -79
- package/dist/_chunks/{header-settings-B0G_u-wV.js → header-settings-4cwQzeFc.js} +4 -4
- package/dist/_chunks/{hi-C0GEMwlD.js → hi-Bf8CAP6b.js} +2 -2
- package/dist/_chunks/highlighter-DSkckT2Q.js +15 -0
- package/dist/_chunks/{icon-button-LqoiKcUN.js → icon-button-C_kbcd7I.js} +2 -2
- package/dist/_chunks/icon-button-group-C_lqXTAj.js +391 -0
- package/dist/_chunks/{icon-picker-Di6uYDG-.js → icon-picker-CM9ubkew.js} +3 -3
- package/dist/_chunks/{image-cropper-CdmWFrMC.js → image-cropper-DKe4AORY.js} +2 -2
- package/dist/_chunks/{insert-result-C7xSDb8q.js → insert-result-D074GtHX.js} +58 -68
- package/dist/_chunks/{isSameWeek-HddDAyJG.js → isSameWeek-BYl5poz_.js} +2 -2
- package/dist/_chunks/{it-5f4hiT2e.js → it-mt1V2DFS.js} +3 -3
- package/dist/_chunks/{ja-U0_2inl_.js → ja-CbOHn2TO.js} +2 -2
- package/dist/_chunks/{key-value-pair-Byyyc_9J.js → key-value-pair-LHKfDT_9.js} +2 -2
- package/dist/_chunks/link-cell-renderer-BQGUs45d.js +711 -0
- package/dist/_chunks/{locale-picker-DzF7Q5Y8.js → locale-picker-GNF3lo8K.js} +3 -3
- package/dist/_chunks/{map-view-ByPvWG_9.js → map-view-CsaHfoo6.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-BCYiOvKZ.js → marketplace-app-shell-D_1tF4La.js} +6 -6
- package/dist/_chunks/{message-card-BZnnffyB.js → message-card-ievotOFa.js} +3 -3
- package/dist/_chunks/{message-tray-cUHOCdU0.js → message-tray-BFlu8clI.js} +4 -4
- package/dist/_chunks/{muscle-scheme-B9MIkuj0.js → muscle-scheme-CFBE2dme.js} +6 -14
- package/dist/_chunks/{nl-CDVnnx1U.js → nl-C6Y0QXnm.js} +2 -2
- package/dist/_chunks/{notes-panel-CMyjUXD4.js → notes-panel-Cvdp818a.js} +3 -3
- package/dist/_chunks/{notification-card-BHJ07FkH.js → notification-card-D29_sVA1.js} +3 -3
- package/dist/_chunks/{notification-tray-Dzm1c3Wy.js → notification-tray-CzIzz3bX.js} +4 -4
- package/dist/_chunks/optical-prescription-BEjYQjiO.js +1260 -0
- package/dist/_chunks/{patient-details-pU_E5xM2.js → patient-details-DP4wKyq4.js} +7 -7
- package/dist/_chunks/{patient-search-X9SUZGpy.js → patient-search-BaUJ_Y-N.js} +47 -45
- package/dist/_chunks/{patient-summary-card--t3BjTdU.js → patient-summary-card-D6kgdTNn.js} +4 -4
- package/dist/_chunks/{patient-table-BgWgNIMf.js → patient-table-DweKjiXg.js} +122 -118
- package/dist/_chunks/{payment-request-card-2ts7ITxd.js → payment-request-card-C0fqlKqO.js} +25 -24
- package/dist/_chunks/pen-line-D0De5zdl.js +21 -0
- package/dist/_chunks/periodontal-chart-D8hOFmde.js +1173 -0
- package/dist/_chunks/{periodontal-chart-card-6c6Lt4ws.js → periodontal-chart-card-WVjJAheq.js} +2 -2
- package/dist/_chunks/periodontal-diagnosis-cco40xTa.js +345 -0
- package/dist/_chunks/periodontal-risk-chart-bUGkMwDg.js +334 -0
- package/dist/_chunks/{pl-BWNumNrg.js → pl-BdazJAOp.js} +3 -3
- package/dist/_chunks/{popover-uJ6BvEU3.js → popover-Cc0a69sw.js} +32 -29
- package/dist/_chunks/{practice-results-CSEHTH2V.js → practice-results-BCr7jMt1.js} +5 -5
- package/dist/_chunks/{pregnancy-dating-CxVAA6_4.js → pregnancy-dating-msMl_6wz.js} +7 -7
- package/dist/_chunks/{pregnancy-weight-gain-C7zyrwow.js → pregnancy-weight-gain-B-CkVYnU.js} +2 -2
- package/dist/_chunks/{privacy-lock-DrRmK8C7.js → privacy-lock-YYBiI_bY.js} +3 -3
- package/dist/_chunks/{product-hub-panel-CaZqttvm.js → product-hub-panel-CTld1r5V.js} +3 -3
- package/dist/_chunks/{pt-zqdQuryr.js → pt-B3UKvhHp.js} +2 -2
- package/dist/_chunks/{public-header.agent-C-opZaOw.js → public-header.agent-rX_VA6hd.js} +107 -103
- package/dist/_chunks/{radiograph-panel.agent-D1x33moc.js → radiograph-panel.agent-CxF9pVxd.js} +40 -57
- package/dist/_chunks/{reviews-panel-liUj6OPX.js → reviews-panel-DmOjvmyH.js} +4 -4
- package/dist/_chunks/{rich-text-editor-DUgznqOf.js → rich-text-editor-CCWjNkbx.js} +26 -26
- package/dist/_chunks/{ro-CornQr64.js → ro-DVTEQpPK.js} +2 -2
- package/dist/_chunks/{ru-CKAXNYVD.js → ru-C-Mp40SC.js} +3 -3
- package/dist/_chunks/{select-BmCbJMJS.js → select-BW5ecXlX.js} +13 -13
- package/dist/_chunks/{session-countdown-qr8EO5QY.js → session-countdown-C8AsE072.js} +2 -2
- package/dist/_chunks/{sheet-B_X54aZo.js → sheet-D5K0LB3q.js} +2 -2
- package/dist/_chunks/{sidebar-B0OBmJrC.js → sidebar-C0PbwJBc.js} +375 -335
- package/dist/_chunks/{sign-document-nK03S73h.js → sign-document-Bfk0WpWV.js} +2 -2
- package/dist/_chunks/{sign-in-with-alfadocs-button-LppxjlFt.js → sign-in-with-alfadocs-button-UlYefZpI.js} +2 -2
- package/dist/_chunks/{signature-capture-Ct_4Md4e.js → signature-capture-DN52VNKL.js} +206 -189
- package/dist/_chunks/{signature-field-jgwYgUhO.js → signature-field-0rFODJlW.js} +47 -41
- package/dist/_chunks/signature-request-C-mskXwi.js +318 -0
- package/dist/_chunks/{slot-grid-FsqumOaS.js → slot-grid-CQSULZjd.js} +4 -4
- package/dist/_chunks/{sq-CIIvqXZv.js → sq-DierVlw-.js} +2 -2
- package/dist/_chunks/{streaming-text-Cedc05ya.js → streaming-text-C5bYz7LL.js} +2 -2
- package/dist/_chunks/subDays-DIKRViZm.js +8 -0
- package/dist/_chunks/{sv-Kpk1pzjz.js → sv-gQWo_19z.js} +2 -2
- package/dist/_chunks/{tabs-DVQ941Sj.js → tabs-CVTukWRD.js} +2 -2
- package/dist/_chunks/{task-tray-DP5A3Qnc.js → task-tray-Br3vc0O1.js} +3 -3
- package/dist/_chunks/{tasks-panel-BuxaYtEF.js → tasks-panel-CjGAhIN8.js} +6 -6
- package/dist/_chunks/{theme-toggle-dtdy5EaL.js → theme-toggle-BJCz_UOi.js} +3 -3
- package/dist/_chunks/{toast.agent-BSxl057x.js → toast.agent-uV8CeAy6.js} +2 -2
- package/dist/_chunks/{token-insert-menu-Pok4nExI.js → token-insert-menu-BYv6yoZI.js} +2 -2
- package/dist/_chunks/{tool-rail-BZx0-yIr.js → tool-rail-AaTqxkIM.js} +2 -2
- package/dist/_chunks/tooth-data-BwuoKFf4.js +660 -0
- package/dist/_chunks/tooth-scheme-BzJ6rcte.js +1483 -0
- package/dist/_chunks/{tr-DHaeLFxG.js → tr-Btm6M3Km.js} +2 -2
- package/dist/_chunks/{transaction-chip-B6iWoVmU.js → transaction-chip-DJCstquX.js} +41 -51
- package/dist/_chunks/type-ggmfVs23.js +16 -0
- package/dist/_chunks/{unit-converter-fEqluT8b.js → unit-converter-CSLWFDQh.js} +3 -3
- package/dist/_chunks/upload-BfT2hzMg.js +16 -0
- package/dist/_chunks/use-priority-overflow-c9SjxZkZ.js +101 -0
- package/dist/_chunks/use-visual-viewport-pin-ChurOsHM.js +31 -0
- package/dist/_chunks/{warning-stack-BaMI7-n7.js → warning-stack-BlG_Ujy3.js} +3 -3
- package/dist/_chunks/{workflow-map-qWsgCldq.js → workflow-map-C643Q43h.js} +5 -5
- package/dist/_chunks/{zh-CN-BncsTBwM.js → zh-CN-DkVN4vsB.js} +3 -3
- package/dist/agent-catalog.json +4081 -3201
- package/dist/agent-i18n/en.json +121 -69
- package/dist/brand/product-lockup/product-lockup.d.ts +1 -1
- package/dist/components/_shared/entity-card/entity-card.d.ts +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-consent-banner/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/anamnesis-card/anamnesis-card.d.ts +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/appointment-card/appointment-card.d.ts +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/benefit-card/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/button/button.d.ts +8 -1
- package/dist/components/button/index.js +2 -2
- package/dist/components/button-group/button-group.d.ts +16 -0
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/card/card.d.ts +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/carousel/index.js +1 -1
- package/dist/components/chat-container/index.js +1 -1
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/clinical-note-card/clinical-note-card.d.ts +1 -1
- package/dist/components/connection-status/index.js +1 -1
- package/dist/components/contact-profile-card/contact-profile-card.d.ts +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/control-room-rail/index.js +1 -1
- package/dist/components/copy-field/index.js +1 -1
- package/dist/components/counter/counter.d.ts +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-table/data-table.d.ts +2 -8
- package/dist/components/data-table/index.js +35 -34
- package/dist/components/data-table/toolbar.d.ts +5 -11
- package/dist/components/data-table-tabs/data-table-tabs.agent.d.ts +4 -0
- package/dist/components/data-table-tabs/data-table-tabs.d.ts +93 -0
- package/dist/components/data-table-tabs/index.d.ts +5 -0
- package/dist/components/data-table-tabs/index.js +8 -0
- package/dist/components/data-table-tabs/use-data-table-filter-tabs.d.ts +63 -0
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/document-preview/document-preview.agent.d.ts +4 -0
- package/dist/components/document-preview/document-preview.d.ts +41 -0
- package/dist/components/document-preview/index.d.ts +4 -0
- package/dist/components/document-preview/index.js +6 -0
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/editor-overlay/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/face-scheme/face-scheme-data.d.ts +167 -0
- package/dist/components/face-scheme/face-scheme.d.ts +112 -2
- package/dist/components/face-scheme/index.d.ts +2 -2
- package/dist/components/face-scheme/index.js +25 -14
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/field-array/index.js +1 -1
- package/dist/components/file-manager/dialogs.d.ts +48 -0
- package/dist/components/file-manager/file-manager.agent.d.ts +4 -0
- package/dist/components/file-manager/file-manager.d.ts +82 -0
- package/dist/components/file-manager/folder-tree.d.ts +12 -0
- package/dist/components/file-manager/index.d.ts +5 -0
- package/dist/components/file-manager/index.js +6 -0
- package/dist/components/file-manager/list-view.d.ts +49 -0
- package/dist/components/file-manager/toolbar.d.ts +15 -0
- package/dist/components/file-manager/types.d.ts +167 -0
- package/dist/components/file-manager/utils.d.ts +34 -0
- package/dist/components/file-upload/file-upload.d.ts +1 -0
- package/dist/components/file-upload/index.d.ts +1 -1
- package/dist/components/file-upload/index.js +4 -3
- package/dist/components/finished-terminal/index.js +1 -1
- package/dist/components/fiscal-code-input/index.js +1 -1
- package/dist/components/flag/flag.d.ts +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/header/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/icon-button-group/icon-button-group.d.ts +6 -0
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/icon-picker/index.js +1 -1
- package/dist/components/image-cropper/index.js +1 -1
- package/dist/components/index.d.ts +7 -1
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/link/link.d.ts +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/matrix-rain/matrix-rain.d.ts +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-card/message-card.d.ts +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/muscle-scheme/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-card/notification-card.d.ts +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/operator-hero/operator-hero.d.ts +1 -1
- package/dist/components/optical-prescription/index.d.ts +4 -2
- package/dist/components/optical-prescription/index.js +29 -26
- package/dist/components/optical-prescription/optical-prescription-charts.d.ts +78 -0
- package/dist/components/optical-prescription/optical-prescription-data.d.ts +29 -0
- package/dist/components/optical-prescription/optical-prescription.d.ts +9 -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-summary-card/patient-summary-card.d.ts +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/payment-card/payment-card.d.ts +1 -1
- package/dist/components/payment-card/payment-request-card.d.ts +1 -1
- package/dist/components/periodontal-chart/index.d.ts +6 -0
- package/dist/components/periodontal-chart/index.js +22 -0
- package/dist/components/periodontal-chart/periodontal-chart-data.d.ts +119 -0
- package/dist/components/periodontal-chart/periodontal-chart.agent.d.ts +4 -0
- package/dist/components/periodontal-chart/periodontal-chart.d.ts +69 -0
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/periodontal-chart-card/periodontal-chart-card.d.ts +1 -1
- package/dist/components/periodontal-diagnosis/index.d.ts +6 -0
- package/dist/components/periodontal-diagnosis/index.js +13 -0
- package/dist/components/periodontal-diagnosis/periodontal-diagnosis-data.d.ts +30 -0
- package/dist/components/periodontal-diagnosis/periodontal-diagnosis.agent.d.ts +4 -0
- package/dist/components/periodontal-diagnosis/periodontal-diagnosis.d.ts +44 -0
- package/dist/components/periodontal-risk-chart/index.d.ts +6 -0
- package/dist/components/periodontal-risk-chart/index.js +9 -0
- package/dist/components/periodontal-risk-chart/periodontal-risk-chart.agent.d.ts +4 -0
- package/dist/components/periodontal-risk-chart/periodontal-risk-chart.d.ts +28 -0
- package/dist/components/periodontal-risk-chart/periodontal-risk-data.d.ts +47 -0
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/popover.d.ts +1 -0
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/product-hub-tray/product-hub-panel.d.ts +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/public-header/public-header.d.ts +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/radiograph-panel/radiograph-panel.d.ts +2 -2
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/session-countdown/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sidebar/sidebar.d.ts +9 -0
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/signature-capture/index.js +1 -1
- package/dist/components/signature-field/index.js +1 -1
- package/dist/components/signature-field/signature-field.d.ts +7 -0
- package/dist/components/skeleton-scheme/index.js +1186 -0
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/stat/stat.d.ts +1 -1
- package/dist/components/streaming-text/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/token-insert-menu/index.js +1 -1
- package/dist/components/tool-rail/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +29 -28
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.js +40 -35
- package/dist/hooks/use-priority-overflow.d.ts +63 -0
- package/dist/hooks/use-visual-viewport-pin.d.ts +32 -0
- package/dist/i18n/locales/ar.d.ts +490 -9
- package/dist/i18n/locales/ar.js +493 -12
- package/dist/i18n/locales/de.d.ts +490 -9
- package/dist/i18n/locales/de.js +493 -12
- package/dist/i18n/locales/el.d.ts +490 -9
- package/dist/i18n/locales/el.js +493 -12
- package/dist/i18n/locales/en.d.ts +490 -9
- package/dist/i18n/locales/en.js +493 -12
- package/dist/i18n/locales/es.d.ts +490 -9
- package/dist/i18n/locales/es.js +493 -12
- package/dist/i18n/locales/fr.d.ts +490 -9
- package/dist/i18n/locales/fr.js +493 -12
- package/dist/i18n/locales/hi.d.ts +490 -9
- package/dist/i18n/locales/hi.js +493 -12
- package/dist/i18n/locales/it.d.ts +490 -9
- package/dist/i18n/locales/it.js +493 -12
- package/dist/i18n/locales/ja.d.ts +490 -9
- package/dist/i18n/locales/ja.js +493 -12
- package/dist/i18n/locales/nl.d.ts +490 -9
- package/dist/i18n/locales/nl.js +493 -12
- package/dist/i18n/locales/pl.d.ts +490 -9
- package/dist/i18n/locales/pl.js +493 -12
- package/dist/i18n/locales/pt.d.ts +490 -9
- package/dist/i18n/locales/pt.js +493 -12
- package/dist/i18n/locales/ro.d.ts +490 -9
- package/dist/i18n/locales/ro.js +493 -12
- package/dist/i18n/locales/ru.d.ts +490 -9
- package/dist/i18n/locales/ru.js +493 -12
- package/dist/i18n/locales/sq.d.ts +490 -9
- package/dist/i18n/locales/sq.js +493 -12
- package/dist/i18n/locales/sv.d.ts +490 -9
- package/dist/i18n/locales/sv.js +493 -12
- package/dist/i18n/locales/tr.d.ts +490 -9
- package/dist/i18n/locales/tr.js +493 -12
- package/dist/i18n/locales/zh.d.ts +490 -9
- package/dist/i18n/locales/zh.js +493 -12
- package/dist/index.js +872 -809
- package/dist/locales/ar.json +493 -12
- package/dist/locales/de.json +493 -12
- package/dist/locales/el.json +493 -12
- package/dist/locales/en.json +493 -12
- package/dist/locales/es.json +493 -12
- package/dist/locales/fr.json +493 -12
- package/dist/locales/hi.json +493 -12
- package/dist/locales/it.json +493 -12
- package/dist/locales/ja.json +493 -12
- package/dist/locales/nl.json +493 -12
- package/dist/locales/pl.json +493 -12
- package/dist/locales/pt.json +493 -12
- package/dist/locales/ro.json +493 -12
- package/dist/locales/ru.json +493 -12
- package/dist/locales/sq.json +493 -12
- package/dist/locales/sv.json +493 -12
- package/dist/locales/tr.json +493 -12
- package/dist/locales/zh.json +493 -12
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +1 -1
- package/dist/patterns/signature-request/index.d.ts +3 -0
- package/dist/patterns/signature-request/index.js +5 -0
- package/dist/patterns/signature-request/signature-request.d.ts +81 -0
- package/dist/tokens.css +2 -2
- package/package.json +32 -4
- package/dist/_chunks/button-group-CvEnVzY7.js +0 -119
- package/dist/_chunks/face-scheme-BT9_KdL0.js +0 -1450
- package/dist/_chunks/icon-button-group-C48khLE0.js +0 -206
- package/dist/_chunks/link-cell-renderer-BCppbMec.js +0 -2185
- package/dist/_chunks/optical-prescription-Bmlbuopi.js +0 -653
- package/dist/_chunks/patient-shell-oiIRqEAl.js +0 -162
- package/dist/_chunks/subDays-DGSOp9d9.js +0 -8
- package/dist/_chunks/tooth-scheme-D_rso4uu.js +0 -2133
- package/dist/patterns/patient-shell/index.d.ts +0 -12
- package/dist/patterns/patient-shell/index.js +0 -5
- package/dist/patterns/patient-shell/patient-shell.d.ts +0 -62
|
@@ -1,49 +1,16 @@
|
|
|
1
|
-
import { jsxs as p, jsx as
|
|
2
|
-
import { forwardRef as Fe, useId as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { B as
|
|
1
|
+
import { jsxs as p, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as Fe, useId as Me, useRef as m, useState as W, useEffect as z, useCallback as h, useMemo as Te, useImperativeHandle as We } from "react";
|
|
3
|
+
import { c as k } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as Ye } from "react-i18next";
|
|
5
|
+
import { B as K } from "./button-CPGiR_bH.js";
|
|
6
6
|
import { A as ae } from "./alert-KJbsPYkI.js";
|
|
7
|
-
import { L as he, F as Xe } from "./file-upload-
|
|
7
|
+
import { L as he, F as Xe } from "./file-upload-DENvuhfs.js";
|
|
8
8
|
import { u as Ze } from "./use-controllable-state-BiY4xTzM.js";
|
|
9
|
-
import { u as
|
|
10
|
-
import { R as
|
|
11
|
-
import { C as
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
* @license lucide-react v1.22.0 - ISC
|
|
15
|
-
*
|
|
16
|
-
* This source code is licensed under the ISC license.
|
|
17
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/
|
|
19
|
-
const er = [
|
|
20
|
-
[
|
|
21
|
-
"path",
|
|
22
|
-
{
|
|
23
|
-
d: "M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",
|
|
24
|
-
key: "18u6gg"
|
|
25
|
-
}
|
|
26
|
-
],
|
|
27
|
-
["circle", { cx: "12", cy: "13", r: "3", key: "1vg3eu" }]
|
|
28
|
-
], ye = ze("camera", er);
|
|
29
|
-
/**
|
|
30
|
-
* @license lucide-react v1.22.0 - ISC
|
|
31
|
-
*
|
|
32
|
-
* This source code is licensed under the ISC license.
|
|
33
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
34
|
-
*/
|
|
35
|
-
const rr = [
|
|
36
|
-
[
|
|
37
|
-
"path",
|
|
38
|
-
{
|
|
39
|
-
d: "M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21",
|
|
40
|
-
key: "9csbqa"
|
|
41
|
-
}
|
|
42
|
-
],
|
|
43
|
-
["path", { d: "m14 19.5 3-3 3 3", key: "9vmjn0" }],
|
|
44
|
-
["path", { d: "M17 22v-5.5", key: "1aa6fl" }],
|
|
45
|
-
["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }]
|
|
46
|
-
], nr = ze("image-up", rr), tr = {
|
|
9
|
+
import { u as $e } from "./registry-DvAUVLHh.js";
|
|
10
|
+
import { R as Ge } from "./rotate-ccw-BBQnIVTr.js";
|
|
11
|
+
import { C as Je } from "./check-DrFSN__t.js";
|
|
12
|
+
import { C as be } from "./camera-VSklPDCv.js";
|
|
13
|
+
const Qe = {
|
|
47
14
|
id: "document-scanner",
|
|
48
15
|
capabilities: ["capture", "submit"],
|
|
49
16
|
state: {
|
|
@@ -51,13 +18,13 @@ const rr = [
|
|
|
51
18
|
type: "boolean",
|
|
52
19
|
descriptionKey: "documentScanner.agent.state.hasCapture",
|
|
53
20
|
description: "True when a captured or uploaded image is available.",
|
|
54
|
-
read: (
|
|
21
|
+
read: (t) => t.hasCapture()
|
|
55
22
|
},
|
|
56
23
|
phase: {
|
|
57
24
|
type: "string",
|
|
58
25
|
descriptionKey: "documentScanner.agent.state.phase",
|
|
59
26
|
description: "Lifecycle phase: 'idle' | 'requesting' | 'streaming' | 'captured' | 'error'.",
|
|
60
|
-
read: (
|
|
27
|
+
read: (t) => t.getPhase()
|
|
61
28
|
}
|
|
62
29
|
},
|
|
63
30
|
actions: {
|
|
@@ -72,29 +39,29 @@ const rr = [
|
|
|
72
39
|
"not-readable",
|
|
73
40
|
"insecure-context"
|
|
74
41
|
],
|
|
75
|
-
invoke: (
|
|
42
|
+
invoke: (t) => t.startCamera()
|
|
76
43
|
},
|
|
77
44
|
capture: {
|
|
78
45
|
safety: "write",
|
|
79
46
|
descriptionKey: "documentScanner.agent.actions.capture",
|
|
80
47
|
description: "Freeze the current viewfinder frame as a captured image.",
|
|
81
48
|
errors: ["capture-failed"],
|
|
82
|
-
invoke: (
|
|
49
|
+
invoke: (t) => t.capture()
|
|
83
50
|
},
|
|
84
51
|
submit: {
|
|
85
52
|
safety: "write",
|
|
86
53
|
descriptionKey: "documentScanner.agent.actions.confirm",
|
|
87
54
|
description: "Confirm the current capture, emitting it via onConfirm.",
|
|
88
|
-
invoke: (
|
|
89
|
-
|
|
55
|
+
invoke: (t) => {
|
|
56
|
+
t.confirm();
|
|
90
57
|
}
|
|
91
58
|
},
|
|
92
59
|
retake: {
|
|
93
60
|
safety: "destructive",
|
|
94
61
|
descriptionKey: "documentScanner.agent.actions.retake",
|
|
95
62
|
description: "Discard the current capture and return to the capture path.",
|
|
96
|
-
invoke: (
|
|
97
|
-
|
|
63
|
+
invoke: (t) => {
|
|
64
|
+
t.retake();
|
|
98
65
|
}
|
|
99
66
|
}
|
|
100
67
|
},
|
|
@@ -110,7 +77,7 @@ const rr = [
|
|
|
110
77
|
description: "Sourced from the id prop."
|
|
111
78
|
}
|
|
112
79
|
}
|
|
113
|
-
},
|
|
80
|
+
}, er = k(
|
|
114
81
|
[
|
|
115
82
|
"ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
|
|
116
83
|
"ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--card-border)]",
|
|
@@ -129,7 +96,7 @@ const rr = [
|
|
|
129
96
|
},
|
|
130
97
|
defaultVariants: { size: "md" }
|
|
131
98
|
}
|
|
132
|
-
),
|
|
99
|
+
), ye = k(
|
|
133
100
|
[
|
|
134
101
|
"ds:relative ds:block ds:inline-size-full ds:overflow-hidden",
|
|
135
102
|
"ds:rounded-[var(--radius-sm)]",
|
|
@@ -148,13 +115,13 @@ const rr = [
|
|
|
148
115
|
},
|
|
149
116
|
defaultVariants: { frame: "tessera-sanitaria" }
|
|
150
117
|
}
|
|
151
|
-
), we =
|
|
118
|
+
), we = k(
|
|
152
119
|
[
|
|
153
120
|
"ds:absolute ds:inset-0 ds:block",
|
|
154
121
|
"ds:inline-size-full ds:block-size-full",
|
|
155
122
|
"ds:object-cover"
|
|
156
123
|
].join(" ")
|
|
157
|
-
),
|
|
124
|
+
), rr = k(
|
|
158
125
|
[
|
|
159
126
|
"ds:pointer-events-none ds:absolute",
|
|
160
127
|
"ds:inset-[12%]",
|
|
@@ -162,48 +129,52 @@ const rr = [
|
|
|
162
129
|
"ds:border-2 ds:border-[color:var(--background)]",
|
|
163
130
|
"ds:shadow-[0_0_0_100vmax_color-mix(in_srgb,var(--foreground)_45%,transparent)]"
|
|
164
131
|
].join(" ")
|
|
165
|
-
),
|
|
132
|
+
), Y = k(
|
|
166
133
|
[
|
|
167
134
|
"ds:pointer-events-none ds:absolute ds:size-6",
|
|
168
135
|
"ds:border-[color:var(--background)]"
|
|
169
136
|
].join(" ")
|
|
170
|
-
), Se =
|
|
171
|
-
[
|
|
172
|
-
|
|
137
|
+
), Se = k(
|
|
138
|
+
[
|
|
139
|
+
// Phone: actions stack full-width; sm+: a wrapping row.
|
|
140
|
+
"ds:flex ds:flex-col ds:items-stretch ds:gap-[var(--spacing-sm)]",
|
|
141
|
+
"ds:sm:flex-row ds:sm:flex-wrap ds:sm:items-center"
|
|
142
|
+
].join(" ")
|
|
143
|
+
), nr = k(
|
|
173
144
|
["type-body-sm ds:text-center", "ds:text-[var(--muted-foreground)]"].join(
|
|
174
145
|
" "
|
|
175
146
|
)
|
|
176
147
|
);
|
|
177
|
-
function
|
|
148
|
+
function tr(t) {
|
|
178
149
|
let o = "";
|
|
179
|
-
for (let f = 0; f <
|
|
180
|
-
o +=
|
|
150
|
+
for (let f = 0; f < t.length; f += 1)
|
|
151
|
+
o += t[f].toString(16).padStart(2, "0");
|
|
181
152
|
return o;
|
|
182
153
|
}
|
|
183
|
-
async function xe(
|
|
154
|
+
async function xe(t) {
|
|
184
155
|
var f;
|
|
185
156
|
const o = globalThis;
|
|
186
157
|
if ((f = o.crypto) != null && f.subtle) {
|
|
187
|
-
const
|
|
188
|
-
|
|
189
|
-
const U = await o.crypto.subtle.digest("SHA-256",
|
|
190
|
-
return
|
|
158
|
+
const C = new Uint8Array(t.byteLength);
|
|
159
|
+
C.set(new Uint8Array(t));
|
|
160
|
+
const U = await o.crypto.subtle.digest("SHA-256", C.buffer);
|
|
161
|
+
return tr(new Uint8Array(U));
|
|
191
162
|
}
|
|
192
163
|
return "";
|
|
193
164
|
}
|
|
194
|
-
function
|
|
195
|
-
const o =
|
|
165
|
+
function ar(t) {
|
|
166
|
+
const o = t instanceof Error ? t.name : "";
|
|
196
167
|
return o === "NotAllowedError" || o === "SecurityError" ? "permission-denied" : o === "NotFoundError" || o === "OverconstrainedError" ? "no-camera" : o === "NotReadableError" || o === "AbortError" ? "not-readable" : "capture-failed";
|
|
197
168
|
}
|
|
198
|
-
function
|
|
169
|
+
function sr() {
|
|
199
170
|
return typeof navigator < "u" && typeof navigator.mediaDevices < "u" && typeof navigator.mediaDevices.getUserMedia == "function";
|
|
200
171
|
}
|
|
201
|
-
const
|
|
172
|
+
const ir = {
|
|
202
173
|
"tessera-sanitaria": "documentScanner.hint.tesseraSanitaria",
|
|
203
174
|
cie: "documentScanner.hint.cie",
|
|
204
175
|
"id-card": "documentScanner.hint.idCard",
|
|
205
176
|
generic: "documentScanner.hint.generic"
|
|
206
|
-
},
|
|
177
|
+
}, ze = {
|
|
207
178
|
"permission-denied": "documentScanner.error.permissionDenied",
|
|
208
179
|
"no-camera": "documentScanner.error.noCamera",
|
|
209
180
|
"not-readable": "documentScanner.error.notReadable",
|
|
@@ -211,54 +182,54 @@ const lr = {
|
|
|
211
182
|
"capture-failed": "documentScanner.error.captureFailed",
|
|
212
183
|
"file-invalid-type": "documentScanner.error.fileInvalidType",
|
|
213
184
|
"file-too-large": "documentScanner.error.fileTooLarge"
|
|
214
|
-
},
|
|
185
|
+
}, or = Fe(
|
|
215
186
|
({
|
|
216
|
-
id:
|
|
187
|
+
id: t,
|
|
217
188
|
value: o,
|
|
218
189
|
defaultValue: f = null,
|
|
219
|
-
onConfirm:
|
|
190
|
+
onConfirm: C,
|
|
220
191
|
onRetake: U,
|
|
221
192
|
onError: X,
|
|
222
193
|
documentType: Z = "tessera-sanitaria",
|
|
223
|
-
captureMode:
|
|
224
|
-
accept:
|
|
194
|
+
captureMode: P = "auto",
|
|
195
|
+
accept: ke = {
|
|
225
196
|
"image/jpeg": [".jpg", ".jpeg"],
|
|
226
197
|
"image/png": [".png"],
|
|
227
198
|
"image/webp": [".webp"]
|
|
228
199
|
},
|
|
229
200
|
maxSize: se = 10 * 1024 * 1024,
|
|
230
201
|
facingMode: ie = "environment",
|
|
231
|
-
outputType:
|
|
232
|
-
outputQuality:
|
|
202
|
+
outputType: b = "image/jpeg",
|
|
203
|
+
outputQuality: $ = 0.92,
|
|
233
204
|
cropToFrame: oe = !0,
|
|
234
205
|
disabled: g = !1,
|
|
235
206
|
size: Ce = "md",
|
|
236
|
-
ariaLabel:
|
|
237
|
-
className:
|
|
238
|
-
},
|
|
239
|
-
const { t: s } =
|
|
207
|
+
ariaLabel: Ne,
|
|
208
|
+
className: je
|
|
209
|
+
}, Re) => {
|
|
210
|
+
const { t: s } = Ye(), ce = `ds-${Me().replace(/[^a-zA-Z0-9-_]/g, "")}-hint`, [y, N] = Ze({
|
|
240
211
|
value: o,
|
|
241
212
|
defaultValue: f
|
|
242
|
-
}), j = m(f != null || o != null), [n, v] =
|
|
213
|
+
}), j = m(f != null || o != null), [n, v] = W(
|
|
243
214
|
f != null || o != null ? "captured" : "idle"
|
|
244
|
-
), [S, q] =
|
|
215
|
+
), [S, q] = W(
|
|
245
216
|
null
|
|
246
|
-
), [
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
}, [X,
|
|
250
|
-
const
|
|
217
|
+
), [Ee, de] = W(!1), [le, G] = W(!1), I = m(null), Ue = m(null), R = m(null), ue = m(!1), me = m(null), Ie = m(null), pe = m(null), fe = m(null), H = m(X), O = m(C), x = m(U);
|
|
218
|
+
z(() => {
|
|
219
|
+
H.current = X, O.current = C, x.current = U;
|
|
220
|
+
}, [X, C, U]);
|
|
221
|
+
const V = o !== void 0, A = P === "upload-only", w = h(() => {
|
|
251
222
|
const e = R.current;
|
|
252
223
|
e && e.getTracks().forEach((i) => i.stop()), R.current = null;
|
|
253
|
-
const r =
|
|
224
|
+
const r = I.current;
|
|
254
225
|
r && (r.srcObject = null), de(!1);
|
|
255
226
|
}, []), u = h((e) => {
|
|
256
227
|
var r;
|
|
257
|
-
q(e), v("error"), (r =
|
|
258
|
-
}, []),
|
|
228
|
+
q(e), v("error"), (r = H.current) == null || r.call(H, { kind: e });
|
|
229
|
+
}, []), F = h(async () => {
|
|
259
230
|
var e;
|
|
260
|
-
if (!(g ||
|
|
261
|
-
if (!
|
|
231
|
+
if (!(g || A)) {
|
|
232
|
+
if (!sr()) {
|
|
262
233
|
u("insecure-context");
|
|
263
234
|
return;
|
|
264
235
|
}
|
|
@@ -273,7 +244,7 @@ const lr = {
|
|
|
273
244
|
return;
|
|
274
245
|
}
|
|
275
246
|
R.current = r;
|
|
276
|
-
const i =
|
|
247
|
+
const i = I.current;
|
|
277
248
|
if (i) {
|
|
278
249
|
try {
|
|
279
250
|
i.srcObject = r;
|
|
@@ -285,26 +256,26 @@ const lr = {
|
|
|
285
256
|
}
|
|
286
257
|
v("streaming");
|
|
287
258
|
} catch (r) {
|
|
288
|
-
w(), u(
|
|
259
|
+
w(), u(ar(r));
|
|
289
260
|
}
|
|
290
261
|
}
|
|
291
|
-
}, [g,
|
|
292
|
-
const e =
|
|
262
|
+
}, [g, A, ie, w, u]), D = h(() => {
|
|
263
|
+
const e = I.current;
|
|
293
264
|
e && e.readyState >= 2 && de(!0);
|
|
294
265
|
}, []);
|
|
295
|
-
|
|
266
|
+
z(() => {
|
|
296
267
|
if (n !== "streaming") return;
|
|
297
|
-
|
|
298
|
-
const e = window.setInterval(
|
|
268
|
+
D();
|
|
269
|
+
const e = window.setInterval(D, 100), r = window.setTimeout(
|
|
299
270
|
() => window.clearInterval(e),
|
|
300
271
|
4e3
|
|
301
272
|
);
|
|
302
273
|
return () => {
|
|
303
274
|
window.clearInterval(e), window.clearTimeout(r);
|
|
304
275
|
};
|
|
305
|
-
}, [n,
|
|
306
|
-
const
|
|
307
|
-
const e =
|
|
276
|
+
}, [n, D]);
|
|
277
|
+
const J = h(async () => {
|
|
278
|
+
const e = I.current;
|
|
308
279
|
if (!e || e.readyState < 2) {
|
|
309
280
|
u("capture-failed");
|
|
310
281
|
return;
|
|
@@ -314,20 +285,20 @@ const lr = {
|
|
|
314
285
|
u("capture-failed");
|
|
315
286
|
return;
|
|
316
287
|
}
|
|
317
|
-
let d = 0,
|
|
288
|
+
let d = 0, M = 0, L = r, _ = i;
|
|
318
289
|
if (oe) {
|
|
319
|
-
const B = r * 0.12,
|
|
320
|
-
d = B,
|
|
290
|
+
const B = r * 0.12, T = i * 0.12;
|
|
291
|
+
d = B, M = T, L = r - B * 2, _ = i - T * 2;
|
|
321
292
|
}
|
|
322
293
|
const l = document.createElement("canvas");
|
|
323
|
-
l.width = Math.max(1, Math.round(
|
|
324
|
-
const
|
|
325
|
-
if (!
|
|
294
|
+
l.width = Math.max(1, Math.round(L)), l.height = Math.max(1, Math.round(_));
|
|
295
|
+
const E = l.getContext("2d");
|
|
296
|
+
if (!E) {
|
|
326
297
|
u("capture-failed");
|
|
327
298
|
return;
|
|
328
299
|
}
|
|
329
300
|
try {
|
|
330
|
-
|
|
301
|
+
E.drawImage(e, d, M, L, _, 0, 0, l.width, l.height);
|
|
331
302
|
} catch {
|
|
332
303
|
u("capture-failed");
|
|
333
304
|
return;
|
|
@@ -335,63 +306,63 @@ const lr = {
|
|
|
335
306
|
w();
|
|
336
307
|
const c = await new Promise((B) => {
|
|
337
308
|
typeof l.toBlob == "function" ? l.toBlob(
|
|
338
|
-
(
|
|
339
|
-
|
|
340
|
-
|
|
309
|
+
(T) => B(T),
|
|
310
|
+
b,
|
|
311
|
+
b === "image/png" ? void 0 : $
|
|
341
312
|
) : B(null);
|
|
342
313
|
});
|
|
343
314
|
if (!c) {
|
|
344
315
|
u("capture-failed");
|
|
345
316
|
return;
|
|
346
317
|
}
|
|
347
|
-
const
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
),
|
|
318
|
+
const qe = l.toDataURL(
|
|
319
|
+
b,
|
|
320
|
+
b === "image/png" ? void 0 : $
|
|
321
|
+
), He = await c.arrayBuffer(), Oe = await xe(He);
|
|
351
322
|
j.current = !1;
|
|
352
|
-
const
|
|
353
|
-
dataUrl:
|
|
323
|
+
const Ve = {
|
|
324
|
+
dataUrl: qe,
|
|
354
325
|
blob: c,
|
|
355
326
|
source: "camera",
|
|
356
327
|
width: l.width,
|
|
357
328
|
height: l.height,
|
|
358
|
-
mimeType:
|
|
329
|
+
mimeType: b,
|
|
359
330
|
byteSize: c.size,
|
|
360
331
|
capturedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
361
|
-
sha256:
|
|
332
|
+
sha256: Oe
|
|
362
333
|
};
|
|
363
|
-
|
|
334
|
+
N(Ve), v("captured");
|
|
364
335
|
}, [
|
|
365
336
|
oe,
|
|
366
|
-
|
|
367
|
-
|
|
337
|
+
b,
|
|
338
|
+
$,
|
|
368
339
|
w,
|
|
369
340
|
u,
|
|
370
|
-
|
|
371
|
-
]),
|
|
341
|
+
N
|
|
342
|
+
]), Ae = h(
|
|
372
343
|
async (e) => {
|
|
373
344
|
const r = e[0];
|
|
374
345
|
if (r) {
|
|
375
|
-
|
|
346
|
+
G(!0);
|
|
376
347
|
try {
|
|
377
348
|
const i = URL.createObjectURL(r), d = await new Promise(
|
|
378
|
-
(l,
|
|
349
|
+
(l, E) => {
|
|
379
350
|
const c = new Image();
|
|
380
|
-
c.onload = () => l({ w: c.naturalWidth, h: c.naturalHeight }), c.onerror = () =>
|
|
351
|
+
c.onload = () => l({ w: c.naturalWidth, h: c.naturalHeight }), c.onerror = () => E(new Error("decode-failed")), c.src = i;
|
|
381
352
|
}
|
|
382
353
|
).finally(() => {
|
|
383
354
|
URL.revokeObjectURL(i);
|
|
384
|
-
}),
|
|
355
|
+
}), M = await new Promise((l, E) => {
|
|
385
356
|
const c = new FileReader();
|
|
386
|
-
c.onload = () => l(String(c.result)), c.onerror = () =>
|
|
387
|
-
}),
|
|
388
|
-
j.current = !1, q(null),
|
|
389
|
-
dataUrl:
|
|
357
|
+
c.onload = () => l(String(c.result)), c.onerror = () => E(new Error("read-failed")), c.readAsDataURL(r);
|
|
358
|
+
}), L = await r.arrayBuffer(), _ = await xe(L);
|
|
359
|
+
j.current = !1, q(null), N({
|
|
360
|
+
dataUrl: M,
|
|
390
361
|
blob: r,
|
|
391
362
|
source: "upload",
|
|
392
363
|
width: d.w,
|
|
393
364
|
height: d.h,
|
|
394
|
-
mimeType: r.type ||
|
|
365
|
+
mimeType: r.type || b,
|
|
395
366
|
byteSize: r.size,
|
|
396
367
|
capturedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
397
368
|
sha256: _
|
|
@@ -399,11 +370,11 @@ const lr = {
|
|
|
399
370
|
} catch {
|
|
400
371
|
u("capture-failed");
|
|
401
372
|
} finally {
|
|
402
|
-
|
|
373
|
+
G(!1);
|
|
403
374
|
}
|
|
404
375
|
}
|
|
405
376
|
},
|
|
406
|
-
[
|
|
377
|
+
[b, u, N]
|
|
407
378
|
), De = h(
|
|
408
379
|
(e) => {
|
|
409
380
|
var d;
|
|
@@ -411,51 +382,51 @@ const lr = {
|
|
|
411
382
|
u(i);
|
|
412
383
|
},
|
|
413
384
|
[u]
|
|
414
|
-
),
|
|
385
|
+
), Q = h(() => {
|
|
415
386
|
var e;
|
|
416
|
-
|
|
417
|
-
}, [
|
|
387
|
+
y && ((e = O.current) == null || e.call(O, y));
|
|
388
|
+
}, [y]), ee = m(!1), re = h(() => {
|
|
418
389
|
var e, r;
|
|
419
|
-
if (
|
|
390
|
+
if (V) {
|
|
420
391
|
(e = x.current) == null || e.call(x);
|
|
421
392
|
return;
|
|
422
393
|
}
|
|
423
|
-
j.current = !1,
|
|
424
|
-
}, [
|
|
425
|
-
|
|
394
|
+
j.current = !1, ee.current = !0, N(null), q(null), G(!1), v("idle"), (r = x.current) == null || r.call(x);
|
|
395
|
+
}, [V, N]);
|
|
396
|
+
z(() => {
|
|
426
397
|
var e, r, i;
|
|
427
|
-
n === "captured" && !j.current ? (e = me.current) == null || e.focus() : n === "error" ? (r = fe.current) == null || r.focus() : n === "idle" &&
|
|
428
|
-
}, [n]),
|
|
398
|
+
n === "captured" && !j.current ? (e = me.current) == null || e.focus() : n === "error" ? (r = fe.current) == null || r.focus() : n === "idle" && ee.current && (ee.current = !1, (i = pe.current) == null || i.focus());
|
|
399
|
+
}, [n]), z(() => {
|
|
429
400
|
if (n !== "streaming") return;
|
|
430
401
|
const e = (r) => {
|
|
431
402
|
r.key === "Escape" && (w(), v("idle"));
|
|
432
403
|
};
|
|
433
404
|
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
434
|
-
}, [n, w]),
|
|
405
|
+
}, [n, w]), z(() => {
|
|
435
406
|
const e = () => {
|
|
436
407
|
document.visibilityState === "hidden" && R.current && (w(), v("idle"));
|
|
437
408
|
};
|
|
438
409
|
return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
|
|
439
|
-
}, [w]),
|
|
410
|
+
}, [w]), z(() => () => {
|
|
440
411
|
ue.current = !0;
|
|
441
412
|
const e = R.current;
|
|
442
413
|
e && e.getTracks().forEach((r) => r.stop()), R.current = null;
|
|
443
|
-
}, []),
|
|
444
|
-
|
|
445
|
-
}, [o,
|
|
446
|
-
const
|
|
414
|
+
}, []), z(() => {
|
|
415
|
+
V && (o != null ? v("captured") : n === "captured" && v("idle"));
|
|
416
|
+
}, [o, V]);
|
|
417
|
+
const ne = Te(
|
|
447
418
|
() => ({
|
|
448
|
-
hasCapture: () =>
|
|
419
|
+
hasCapture: () => y != null,
|
|
449
420
|
getPhase: () => n,
|
|
450
|
-
startCamera: () =>
|
|
451
|
-
capture: () =>
|
|
452
|
-
confirm: () =>
|
|
453
|
-
retake: () =>
|
|
421
|
+
startCamera: () => F(),
|
|
422
|
+
capture: () => J(),
|
|
423
|
+
confirm: () => Q(),
|
|
424
|
+
retake: () => re()
|
|
454
425
|
}),
|
|
455
|
-
[
|
|
426
|
+
[y, n, F, J, Q, re]
|
|
456
427
|
);
|
|
457
|
-
|
|
458
|
-
const
|
|
428
|
+
We(Re, () => ne, [ne]), $e(Qe, ne, t);
|
|
429
|
+
const Le = Ne ?? s("documentScanner.regionLabel"), _e = s(ir[Z]), ge = Math.round(se / (1024 * 1024)), Be = (() => {
|
|
459
430
|
if (le) return s("documentScanner.state.uploading");
|
|
460
431
|
switch (n) {
|
|
461
432
|
case "idle":
|
|
@@ -467,36 +438,36 @@ const lr = {
|
|
|
467
438
|
case "captured":
|
|
468
439
|
return s("documentScanner.state.captured");
|
|
469
440
|
case "error":
|
|
470
|
-
return S ? s(
|
|
441
|
+
return S ? s(ze[S], { maxSizeMb: ge }) : s("documentScanner.error.captureFailed");
|
|
471
442
|
}
|
|
472
|
-
})(),
|
|
443
|
+
})(), Ke = !A && S !== "file-invalid-type" && S !== "file-too-large" && S !== "insecure-context", ve = !g && (P === "auto" || P === "upload-only" || n === "error"), te = /* @__PURE__ */ a(
|
|
473
444
|
Xe,
|
|
474
445
|
{
|
|
475
446
|
variant: "button",
|
|
476
|
-
accept:
|
|
447
|
+
accept: ke,
|
|
477
448
|
maxSize: se,
|
|
478
449
|
multiple: !1,
|
|
479
450
|
maxFiles: 1,
|
|
480
451
|
disabled: g,
|
|
481
452
|
showPreview: !1,
|
|
482
453
|
onDrop: (e) => {
|
|
483
|
-
|
|
454
|
+
Ae(e);
|
|
484
455
|
},
|
|
485
456
|
onReject: De
|
|
486
457
|
}
|
|
487
|
-
),
|
|
458
|
+
), Pe = n === "idle" || n === "requesting" || n === "streaming" || n === "error";
|
|
488
459
|
return /* @__PURE__ */ p(
|
|
489
460
|
"div",
|
|
490
461
|
{
|
|
491
462
|
role: "group",
|
|
492
|
-
"aria-label":
|
|
463
|
+
"aria-label": Le,
|
|
493
464
|
"aria-disabled": g || void 0,
|
|
494
|
-
className: [
|
|
465
|
+
className: [er({ size: Ce }), je].filter(Boolean).join(" "),
|
|
495
466
|
"data-component": "document-scanner",
|
|
496
|
-
"data-component-id":
|
|
467
|
+
"data-component-id": t,
|
|
497
468
|
"data-phase": n,
|
|
498
469
|
children: [
|
|
499
|
-
/* @__PURE__ */
|
|
470
|
+
/* @__PURE__ */ a(
|
|
500
471
|
"span",
|
|
501
472
|
{
|
|
502
473
|
role: "status",
|
|
@@ -504,76 +475,76 @@ const lr = {
|
|
|
504
475
|
"aria-atomic": "true",
|
|
505
476
|
className: "ds:sr-only",
|
|
506
477
|
"data-testid": "document-scanner-live",
|
|
507
|
-
children:
|
|
478
|
+
children: Be
|
|
508
479
|
}
|
|
509
480
|
),
|
|
510
|
-
n === "captured" &&
|
|
481
|
+
n === "captured" && y ? (
|
|
511
482
|
/* ---- Captured preview ---- */
|
|
512
483
|
/* @__PURE__ */ p("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
513
|
-
/* @__PURE__ */ p("div", { className:
|
|
514
|
-
/* @__PURE__ */
|
|
484
|
+
/* @__PURE__ */ p("div", { className: ye({ frame: Z }), children: [
|
|
485
|
+
/* @__PURE__ */ a(
|
|
515
486
|
"img",
|
|
516
487
|
{
|
|
517
|
-
src:
|
|
488
|
+
src: y.dataUrl,
|
|
518
489
|
alt: s("documentScanner.previewAlt"),
|
|
519
490
|
className: we(),
|
|
520
491
|
"data-testid": "document-scanner-preview"
|
|
521
492
|
}
|
|
522
493
|
),
|
|
523
|
-
j.current ? /* @__PURE__ */
|
|
494
|
+
j.current ? /* @__PURE__ */ a("span", { className: "ds:absolute ds:top-[var(--spacing-sm)] ds:start-[var(--spacing-sm)] ds:rounded-[var(--radius-full)] ds:border ds:border-[color:color-mix(in_srgb,var(--foreground)_15%,transparent)] ds:bg-[var(--primary)] ds:text-[var(--primary-foreground)] ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:py-[var(--spacing-2xs)] type-meta", children: s("documentScanner.onFileBadge") }) : null
|
|
524
495
|
] }),
|
|
525
496
|
/* @__PURE__ */ p("div", { className: Se(), children: [
|
|
526
|
-
/* @__PURE__ */
|
|
527
|
-
|
|
497
|
+
/* @__PURE__ */ a(
|
|
498
|
+
K,
|
|
528
499
|
{
|
|
529
500
|
intent: "secondary",
|
|
530
501
|
size: "md",
|
|
531
502
|
className: "ds:[min-block-size:var(--min-target-size)] ds:[min-inline-size:var(--min-target-size)]",
|
|
532
|
-
startIcon: /* @__PURE__ */
|
|
533
|
-
onClick:
|
|
503
|
+
startIcon: /* @__PURE__ */ a(Ge, { "aria-hidden": "true" }),
|
|
504
|
+
onClick: re,
|
|
534
505
|
disabled: g,
|
|
535
506
|
children: s("documentScanner.retake")
|
|
536
507
|
}
|
|
537
508
|
),
|
|
538
|
-
j.current ? null : /* @__PURE__ */
|
|
539
|
-
|
|
509
|
+
j.current ? null : /* @__PURE__ */ a(
|
|
510
|
+
K,
|
|
540
511
|
{
|
|
541
512
|
ref: me,
|
|
542
513
|
intent: "primary",
|
|
543
514
|
size: "md",
|
|
544
515
|
className: "ds:[min-block-size:var(--min-target-size)] ds:[min-inline-size:var(--min-target-size)]",
|
|
545
|
-
startIcon: /* @__PURE__ */
|
|
546
|
-
onClick:
|
|
547
|
-
disabled: g ||
|
|
516
|
+
startIcon: /* @__PURE__ */ a(Je, { "aria-hidden": "true" }),
|
|
517
|
+
onClick: Q,
|
|
518
|
+
disabled: g || y == null,
|
|
548
519
|
children: s("documentScanner.confirm")
|
|
549
520
|
}
|
|
550
521
|
)
|
|
551
522
|
] })
|
|
552
523
|
] })
|
|
553
524
|
) : null,
|
|
554
|
-
|
|
555
|
-
!
|
|
525
|
+
Pe ? /* @__PURE__ */ p("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
526
|
+
!A && n !== "error" ? /* @__PURE__ */ p(
|
|
556
527
|
"div",
|
|
557
528
|
{
|
|
558
529
|
ref: Ue,
|
|
559
|
-
className:
|
|
530
|
+
className: ye({ frame: Z }),
|
|
560
531
|
"aria-busy": n === "requesting" || void 0,
|
|
561
532
|
children: [
|
|
562
|
-
/* @__PURE__ */
|
|
533
|
+
/* @__PURE__ */ a(
|
|
563
534
|
"video",
|
|
564
535
|
{
|
|
565
|
-
ref:
|
|
536
|
+
ref: I,
|
|
566
537
|
autoPlay: !0,
|
|
567
538
|
playsInline: !0,
|
|
568
539
|
muted: !0,
|
|
569
540
|
"aria-label": s("documentScanner.videoLabel"),
|
|
570
541
|
className: we(),
|
|
571
|
-
onLoadedMetadata:
|
|
572
|
-
onCanPlay:
|
|
542
|
+
onLoadedMetadata: D,
|
|
543
|
+
onCanPlay: D,
|
|
573
544
|
"data-testid": "document-scanner-video"
|
|
574
545
|
}
|
|
575
546
|
),
|
|
576
|
-
n === "requesting" ? /* @__PURE__ */
|
|
547
|
+
n === "requesting" ? /* @__PURE__ */ a("div", { className: "ds:absolute ds:inset-0 ds:flex ds:items-center ds:justify-center ds:bg-[color-mix(in_srgb,var(--foreground)_20%,transparent)]", children: /* @__PURE__ */ a(
|
|
577
548
|
he,
|
|
578
549
|
{
|
|
579
550
|
"aria-hidden": "true",
|
|
@@ -584,41 +555,41 @@ const lr = {
|
|
|
584
555
|
"div",
|
|
585
556
|
{
|
|
586
557
|
"aria-hidden": "true",
|
|
587
|
-
className:
|
|
558
|
+
className: rr(),
|
|
588
559
|
"data-testid": "document-scanner-frame",
|
|
589
560
|
children: [
|
|
590
|
-
/* @__PURE__ */
|
|
561
|
+
/* @__PURE__ */ a(
|
|
591
562
|
"span",
|
|
592
563
|
{
|
|
593
564
|
className: [
|
|
594
|
-
|
|
565
|
+
Y(),
|
|
595
566
|
"ds:top-0 ds:start-0 ds:border-t-2 ds:border-s-2 ds:rounded-ss-[var(--radius-sm)]"
|
|
596
567
|
].join(" ")
|
|
597
568
|
}
|
|
598
569
|
),
|
|
599
|
-
/* @__PURE__ */
|
|
570
|
+
/* @__PURE__ */ a(
|
|
600
571
|
"span",
|
|
601
572
|
{
|
|
602
573
|
className: [
|
|
603
|
-
|
|
574
|
+
Y(),
|
|
604
575
|
"ds:top-0 ds:end-0 ds:border-t-2 ds:border-e-2 ds:rounded-se-[var(--radius-sm)]"
|
|
605
576
|
].join(" ")
|
|
606
577
|
}
|
|
607
578
|
),
|
|
608
|
-
/* @__PURE__ */
|
|
579
|
+
/* @__PURE__ */ a(
|
|
609
580
|
"span",
|
|
610
581
|
{
|
|
611
582
|
className: [
|
|
612
|
-
|
|
583
|
+
Y(),
|
|
613
584
|
"ds:bottom-0 ds:start-0 ds:border-b-2 ds:border-s-2 ds:rounded-es-[var(--radius-sm)]"
|
|
614
585
|
].join(" ")
|
|
615
586
|
}
|
|
616
587
|
),
|
|
617
|
-
/* @__PURE__ */
|
|
588
|
+
/* @__PURE__ */ a(
|
|
618
589
|
"span",
|
|
619
590
|
{
|
|
620
591
|
className: [
|
|
621
|
-
|
|
592
|
+
Y(),
|
|
622
593
|
"ds:bottom-0 ds:end-0 ds:border-b-2 ds:border-e-2 ds:rounded-ee-[var(--radius-sm)]"
|
|
623
594
|
].join(" ")
|
|
624
595
|
}
|
|
@@ -629,61 +600,61 @@ const lr = {
|
|
|
629
600
|
]
|
|
630
601
|
}
|
|
631
602
|
) : null,
|
|
632
|
-
n === "streaming" ? /* @__PURE__ */
|
|
603
|
+
n === "streaming" ? /* @__PURE__ */ a("p", { id: ce, className: nr(), children: _e }) : null,
|
|
633
604
|
n === "error" && S ? /* @__PURE__ */ p(ae, { variant: "error", live: "assertive", children: [
|
|
634
|
-
/* @__PURE__ */
|
|
605
|
+
/* @__PURE__ */ a(ae.Description, { children: s(ze[S], { maxSizeMb: ge }) }),
|
|
635
606
|
/* @__PURE__ */ p(ae.Action, { children: [
|
|
636
|
-
|
|
637
|
-
|
|
607
|
+
Ke ? /* @__PURE__ */ a(
|
|
608
|
+
K,
|
|
638
609
|
{
|
|
639
610
|
ref: fe,
|
|
640
611
|
intent: "secondary",
|
|
641
612
|
size: "sm",
|
|
642
613
|
onClick: () => {
|
|
643
|
-
|
|
614
|
+
F();
|
|
644
615
|
},
|
|
645
616
|
disabled: g,
|
|
646
617
|
children: s("documentScanner.retry")
|
|
647
618
|
}
|
|
648
619
|
) : null,
|
|
649
|
-
ve ?
|
|
620
|
+
ve ? te : null
|
|
650
621
|
] })
|
|
651
622
|
] }) : null,
|
|
652
623
|
n !== "error" ? /* @__PURE__ */ p("div", { className: Se(), children: [
|
|
653
|
-
n === "streaming" ? /* @__PURE__ */
|
|
654
|
-
|
|
624
|
+
n === "streaming" ? /* @__PURE__ */ a(
|
|
625
|
+
K,
|
|
655
626
|
{
|
|
656
|
-
ref:
|
|
627
|
+
ref: Ie,
|
|
657
628
|
intent: "primary",
|
|
658
629
|
size: "lg",
|
|
659
|
-
startIcon: /* @__PURE__ */
|
|
630
|
+
startIcon: /* @__PURE__ */ a(be, { "aria-hidden": "true" }),
|
|
660
631
|
onClick: () => {
|
|
661
|
-
|
|
632
|
+
J();
|
|
662
633
|
},
|
|
663
|
-
disabled: g || !
|
|
634
|
+
disabled: g || !Ee,
|
|
664
635
|
"aria-describedby": ce,
|
|
665
636
|
"aria-label": s("documentScanner.capture"),
|
|
666
637
|
children: s("documentScanner.capture")
|
|
667
638
|
}
|
|
668
639
|
) : null,
|
|
669
|
-
(n === "idle" || n === "requesting") && !
|
|
670
|
-
|
|
640
|
+
(n === "idle" || n === "requesting") && !A ? /* @__PURE__ */ a(
|
|
641
|
+
K,
|
|
671
642
|
{
|
|
672
643
|
ref: pe,
|
|
673
644
|
intent: "primary",
|
|
674
645
|
size: "md",
|
|
675
646
|
className: "ds:[min-block-size:var(--min-target-size)] ds:[min-inline-size:var(--min-target-size)]",
|
|
676
647
|
loading: n === "requesting",
|
|
677
|
-
startIcon: /* @__PURE__ */
|
|
648
|
+
startIcon: /* @__PURE__ */ a(be, { "aria-hidden": "true" }),
|
|
678
649
|
onClick: () => {
|
|
679
|
-
|
|
650
|
+
F();
|
|
680
651
|
},
|
|
681
652
|
disabled: g,
|
|
682
653
|
children: s("documentScanner.useCamera")
|
|
683
654
|
}
|
|
684
655
|
) : null,
|
|
685
656
|
le ? /* @__PURE__ */ p("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] type-body-sm ds:text-[var(--muted-foreground)]", children: [
|
|
686
|
-
/* @__PURE__ */
|
|
657
|
+
/* @__PURE__ */ a(
|
|
687
658
|
he,
|
|
688
659
|
{
|
|
689
660
|
"aria-hidden": "true",
|
|
@@ -691,11 +662,8 @@ const lr = {
|
|
|
691
662
|
}
|
|
692
663
|
),
|
|
693
664
|
s("documentScanner.state.uploading")
|
|
694
|
-
] }) : ve && n !== "streaming" ?
|
|
695
|
-
|
|
696
|
-
F
|
|
697
|
-
] }) : null,
|
|
698
|
-
n === "streaming" && V !== "camera-only" ? F : null
|
|
665
|
+
] }) : ve && n !== "streaming" ? te : null,
|
|
666
|
+
n === "streaming" && P !== "camera-only" ? te : null
|
|
699
667
|
] }) : null
|
|
700
668
|
] }) : null
|
|
701
669
|
]
|
|
@@ -703,9 +671,9 @@ const lr = {
|
|
|
703
671
|
);
|
|
704
672
|
}
|
|
705
673
|
);
|
|
706
|
-
|
|
674
|
+
or.displayName = "DocumentScanner";
|
|
707
675
|
export {
|
|
708
|
-
|
|
709
|
-
|
|
676
|
+
or as D,
|
|
677
|
+
Qe as d
|
|
710
678
|
};
|
|
711
|
-
//# sourceMappingURL=document-scanner-
|
|
679
|
+
//# sourceMappingURL=document-scanner-B6h1Ir56.js.map
|