@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.
Files changed (398) hide show
  1. package/dist/_chunks/actions-cell-renderer-DLrcSTK_.js +1546 -0
  2. package/dist/_chunks/{agenda-tray-loL2A3Cx.js → agenda-tray-CVf-jfWU.js} +3 -3
  3. package/dist/_chunks/{ai-consent-banner-Bke9m8VS.js → ai-consent-banner-DUhr1yNj.js} +2 -2
  4. package/dist/_chunks/{ai-prompt-input-TVI95hJD.js → ai-prompt-input-DziJCGLe.js} +3 -3
  5. package/dist/_chunks/{alia-sidebar-BV5lBSFR.js → alia-sidebar-w6B0TEx7.js} +8 -8
  6. package/dist/_chunks/{anamnesis-card-CWO4Ui9c.js → anamnesis-card-CJ5MNbkc.js} +2 -2
  7. package/dist/_chunks/{antenatal-schedule-timeline-CY-VsLok.js → antenatal-schedule-timeline-BzJZqS-8.js} +3 -3
  8. package/dist/_chunks/{appointment-card-Cy4FOkGP.js → appointment-card-DgKI5QKD.js} +2 -2
  9. package/dist/_chunks/{appointment-timeline-BWAPPk8F.js → appointment-timeline-DQTG0btW.js} +6 -6
  10. package/dist/_chunks/{appointment-tray-D3mk04TT.js → appointment-tray-ezyCZN8v.js} +4 -4
  11. package/dist/_chunks/{ar-BOqyIfoY.js → ar-B1GhtlBP.js} +2 -2
  12. package/dist/_chunks/{columns-2-8lq4-b8e.js → arrow-up-right-C2v_MKsK.js} +5 -5
  13. package/dist/_chunks/{audio-recorder-BbjG55dP.js → audio-recorder-Cc3KuL9y.js} +4 -4
  14. package/dist/_chunks/{benefit-card-Xnxj4Gmo.js → benefit-card-DB1Kdrmc.js} +4 -2
  15. package/dist/_chunks/{bishop-score-C6eoak_j.js → bishop-score-DDW5-gb9.js} +3 -3
  16. package/dist/_chunks/{bmi-calculator-BmQfoEGP.js → bmi-calculator-Bk2GAju7.js} +2 -2
  17. package/dist/_chunks/{booking-B62CMY5k.js → booking-B1Qkcl3c.js} +9 -9
  18. package/dist/_chunks/{button-DD_0Xdmr.js → button-CPGiR_bH.js} +56 -35
  19. package/dist/_chunks/button-group-DzV5wgnx.js +289 -0
  20. package/dist/_chunks/camera-VSklPDCv.js +21 -0
  21. package/dist/_chunks/{care-plan-card-DhXbfGzE.js → care-plan-card-BrwhyIJI.js} +3 -3
  22. package/dist/_chunks/{care-plan-entry-card-D3YGD6rj.js → care-plan-entry-card-DWEdCQM3.js} +3 -3
  23. package/dist/_chunks/{care-plan-header-DtQxyfOb.js → care-plan-header-BXvRpGG8.js} +2 -2
  24. package/dist/_chunks/{carousel.agent-j7hWxJWr.js → carousel.agent-CtAAdsAd.js} +2 -2
  25. package/dist/_chunks/{chat-container-BVCoN06N.js → chat-container-HlFnoEIl.js} +4 -2
  26. package/dist/_chunks/{chat-input-Btq_uuMZ.js → chat-input-BTCDqUDX.js} +2 -2
  27. package/dist/_chunks/{chat-message-DXjjM8z9.js → chat-message-CdjWqZjo.js} +3 -3
  28. package/dist/_chunks/{code-block-Cwi7e3HM.js → code-block-BwanBjRh.js} +2 -2
  29. package/dist/_chunks/{connection-status-0HajXMXM.js → connection-status-oEUyrvev.js} +3 -3
  30. package/dist/_chunks/{contact-profile-card-IggiUVpN.js → contact-profile-card-veMV3W4J.js} +2 -2
  31. package/dist/_chunks/{control-room-rail-DaGcsdZ6.js → control-room-rail-CdfrZ6Vr.js} +3 -3
  32. package/dist/_chunks/{copy-field-PAp0-Wr5.js → copy-field-DBc9QquW.js} +2 -2
  33. package/dist/_chunks/{cycle-calculator-BNILyVas.js → cycle-calculator-OQp8Ik5U.js} +4 -4
  34. package/dist/_chunks/data-table-tabs-BEUXiRlu.js +710 -0
  35. package/dist/_chunks/{date-picker-CVkD_lOi.js → date-picker-DzQS8mvt.js} +2 -2
  36. package/dist/_chunks/{date-picker-variants-DLg-ZrIo.js → date-picker-variants-CYQAm1Gk.js} +116 -115
  37. package/dist/_chunks/{date-range-picker-Dw12DgV8.js → date-range-picker-Cbz1SKhm.js} +3 -3
  38. package/dist/_chunks/{date-time-picker-Cd_OJtOy.js → date-time-picker-B5IpU-nd.js} +2 -2
  39. package/dist/_chunks/{de-DFLsUxeV.js → de-DETDHQ0o.js} +2 -2
  40. package/dist/_chunks/{description-list-CmBVxIF5.js → description-list-ClNLdRMy.js} +2 -2
  41. package/dist/_chunks/document-preview-CGSM_au9.js +181 -0
  42. package/dist/_chunks/{document-scanner-B23j4w7X.js → document-scanner-B6h1Ir56.js} +198 -230
  43. package/dist/_chunks/{due-date-calculator-CmdAl_JO.js → due-date-calculator-DASNRgnH.js} +4 -4
  44. package/dist/_chunks/{editable-currency-cell-renderer-z9fJFw6Z.js → editable-currency-cell-renderer-GwfA9tTR.js} +3 -3
  45. package/dist/_chunks/{editor-overlay-BIOzr8v7.js → editor-overlay-DE3esyio.js} +2 -2
  46. package/dist/_chunks/{el-OVjBKytp.js → el-HV3jOI0z.js} +2 -2
  47. package/dist/_chunks/{empty-state-BLy7tigq.js → empty-state-CrLsi0XI.js} +2 -2
  48. package/dist/_chunks/{entity-summary-DpGziDv5.js → entity-summary--vP698Jn.js} +3 -3
  49. package/dist/_chunks/eraser-CHOGQfVv.js +21 -0
  50. package/dist/_chunks/{es-DKDNrHXG.js → es-Dpo7Olwo.js} +2 -2
  51. package/dist/_chunks/face-scheme-C0rk21gg.js +3146 -0
  52. package/dist/_chunks/{fetal-weight-CVAH8sJ3.js → fetal-weight-1F9N4IMx.js} +2 -2
  53. package/dist/_chunks/{field-array-CDzc3hTM.js → field-array-DH3Mb1i8.js} +3 -3
  54. package/dist/_chunks/{field-value-Dj3i52H2.js → field-value-DHG6gEKS.js} +5 -5
  55. package/dist/_chunks/file-Cwe9VC1A.js +40 -0
  56. package/dist/_chunks/file-manager-UF8dkQF1.js +1776 -0
  57. package/dist/_chunks/{file-upload-Kw1rdvFw.js → file-upload-DENvuhfs.js} +101 -139
  58. package/dist/_chunks/{finished-terminal-Di4gtZ50.js → finished-terminal-C0_mefrf.js} +11 -11
  59. package/dist/_chunks/{fiscal-code-input-DKNXFXs3.js → fiscal-code-input-DWA6C8x8.js} +2 -2
  60. package/dist/_chunks/{fr-BfMvQh-v.js → fr-CgD4Jvtq.js} +2 -2
  61. package/dist/_chunks/{freemium-paywall-DFoeedwh.js → freemium-paywall-CmV642PA.js} +7 -3
  62. package/dist/_chunks/{gestational-age-calculator-BwCBPAGX.js → gestational-age-calculator-BpYw-WF-.js} +7 -7
  63. package/dist/_chunks/{hcg-doubling-CSsWxEJc.js → hcg-doubling-Dqj-EqMT.js} +3 -3
  64. package/dist/_chunks/{header-DaXWDw0M.js → header-CjwasYnn.js} +88 -79
  65. package/dist/_chunks/{header-settings-B0G_u-wV.js → header-settings-4cwQzeFc.js} +4 -4
  66. package/dist/_chunks/{hi-C0GEMwlD.js → hi-Bf8CAP6b.js} +2 -2
  67. package/dist/_chunks/highlighter-DSkckT2Q.js +15 -0
  68. package/dist/_chunks/{icon-button-LqoiKcUN.js → icon-button-C_kbcd7I.js} +2 -2
  69. package/dist/_chunks/icon-button-group-C_lqXTAj.js +391 -0
  70. package/dist/_chunks/{icon-picker-Di6uYDG-.js → icon-picker-CM9ubkew.js} +3 -3
  71. package/dist/_chunks/{image-cropper-CdmWFrMC.js → image-cropper-DKe4AORY.js} +2 -2
  72. package/dist/_chunks/{insert-result-C7xSDb8q.js → insert-result-D074GtHX.js} +58 -68
  73. package/dist/_chunks/{isSameWeek-HddDAyJG.js → isSameWeek-BYl5poz_.js} +2 -2
  74. package/dist/_chunks/{it-5f4hiT2e.js → it-mt1V2DFS.js} +3 -3
  75. package/dist/_chunks/{ja-U0_2inl_.js → ja-CbOHn2TO.js} +2 -2
  76. package/dist/_chunks/{key-value-pair-Byyyc_9J.js → key-value-pair-LHKfDT_9.js} +2 -2
  77. package/dist/_chunks/link-cell-renderer-BQGUs45d.js +711 -0
  78. package/dist/_chunks/{locale-picker-DzF7Q5Y8.js → locale-picker-GNF3lo8K.js} +3 -3
  79. package/dist/_chunks/{map-view-ByPvWG_9.js → map-view-CsaHfoo6.js} +2 -2
  80. package/dist/_chunks/{marketplace-app-shell-BCYiOvKZ.js → marketplace-app-shell-D_1tF4La.js} +6 -6
  81. package/dist/_chunks/{message-card-BZnnffyB.js → message-card-ievotOFa.js} +3 -3
  82. package/dist/_chunks/{message-tray-cUHOCdU0.js → message-tray-BFlu8clI.js} +4 -4
  83. package/dist/_chunks/{muscle-scheme-B9MIkuj0.js → muscle-scheme-CFBE2dme.js} +6 -14
  84. package/dist/_chunks/{nl-CDVnnx1U.js → nl-C6Y0QXnm.js} +2 -2
  85. package/dist/_chunks/{notes-panel-CMyjUXD4.js → notes-panel-Cvdp818a.js} +3 -3
  86. package/dist/_chunks/{notification-card-BHJ07FkH.js → notification-card-D29_sVA1.js} +3 -3
  87. package/dist/_chunks/{notification-tray-Dzm1c3Wy.js → notification-tray-CzIzz3bX.js} +4 -4
  88. package/dist/_chunks/optical-prescription-BEjYQjiO.js +1260 -0
  89. package/dist/_chunks/{patient-details-pU_E5xM2.js → patient-details-DP4wKyq4.js} +7 -7
  90. package/dist/_chunks/{patient-search-X9SUZGpy.js → patient-search-BaUJ_Y-N.js} +47 -45
  91. package/dist/_chunks/{patient-summary-card--t3BjTdU.js → patient-summary-card-D6kgdTNn.js} +4 -4
  92. package/dist/_chunks/{patient-table-BgWgNIMf.js → patient-table-DweKjiXg.js} +122 -118
  93. package/dist/_chunks/{payment-request-card-2ts7ITxd.js → payment-request-card-C0fqlKqO.js} +25 -24
  94. package/dist/_chunks/pen-line-D0De5zdl.js +21 -0
  95. package/dist/_chunks/periodontal-chart-D8hOFmde.js +1173 -0
  96. package/dist/_chunks/{periodontal-chart-card-6c6Lt4ws.js → periodontal-chart-card-WVjJAheq.js} +2 -2
  97. package/dist/_chunks/periodontal-diagnosis-cco40xTa.js +345 -0
  98. package/dist/_chunks/periodontal-risk-chart-bUGkMwDg.js +334 -0
  99. package/dist/_chunks/{pl-BWNumNrg.js → pl-BdazJAOp.js} +3 -3
  100. package/dist/_chunks/{popover-uJ6BvEU3.js → popover-Cc0a69sw.js} +32 -29
  101. package/dist/_chunks/{practice-results-CSEHTH2V.js → practice-results-BCr7jMt1.js} +5 -5
  102. package/dist/_chunks/{pregnancy-dating-CxVAA6_4.js → pregnancy-dating-msMl_6wz.js} +7 -7
  103. package/dist/_chunks/{pregnancy-weight-gain-C7zyrwow.js → pregnancy-weight-gain-B-CkVYnU.js} +2 -2
  104. package/dist/_chunks/{privacy-lock-DrRmK8C7.js → privacy-lock-YYBiI_bY.js} +3 -3
  105. package/dist/_chunks/{product-hub-panel-CaZqttvm.js → product-hub-panel-CTld1r5V.js} +3 -3
  106. package/dist/_chunks/{pt-zqdQuryr.js → pt-B3UKvhHp.js} +2 -2
  107. package/dist/_chunks/{public-header.agent-C-opZaOw.js → public-header.agent-rX_VA6hd.js} +107 -103
  108. package/dist/_chunks/{radiograph-panel.agent-D1x33moc.js → radiograph-panel.agent-CxF9pVxd.js} +40 -57
  109. package/dist/_chunks/{reviews-panel-liUj6OPX.js → reviews-panel-DmOjvmyH.js} +4 -4
  110. package/dist/_chunks/{rich-text-editor-DUgznqOf.js → rich-text-editor-CCWjNkbx.js} +26 -26
  111. package/dist/_chunks/{ro-CornQr64.js → ro-DVTEQpPK.js} +2 -2
  112. package/dist/_chunks/{ru-CKAXNYVD.js → ru-C-Mp40SC.js} +3 -3
  113. package/dist/_chunks/{select-BmCbJMJS.js → select-BW5ecXlX.js} +13 -13
  114. package/dist/_chunks/{session-countdown-qr8EO5QY.js → session-countdown-C8AsE072.js} +2 -2
  115. package/dist/_chunks/{sheet-B_X54aZo.js → sheet-D5K0LB3q.js} +2 -2
  116. package/dist/_chunks/{sidebar-B0OBmJrC.js → sidebar-C0PbwJBc.js} +375 -335
  117. package/dist/_chunks/{sign-document-nK03S73h.js → sign-document-Bfk0WpWV.js} +2 -2
  118. package/dist/_chunks/{sign-in-with-alfadocs-button-LppxjlFt.js → sign-in-with-alfadocs-button-UlYefZpI.js} +2 -2
  119. package/dist/_chunks/{signature-capture-Ct_4Md4e.js → signature-capture-DN52VNKL.js} +206 -189
  120. package/dist/_chunks/{signature-field-jgwYgUhO.js → signature-field-0rFODJlW.js} +47 -41
  121. package/dist/_chunks/signature-request-C-mskXwi.js +318 -0
  122. package/dist/_chunks/{slot-grid-FsqumOaS.js → slot-grid-CQSULZjd.js} +4 -4
  123. package/dist/_chunks/{sq-CIIvqXZv.js → sq-DierVlw-.js} +2 -2
  124. package/dist/_chunks/{streaming-text-Cedc05ya.js → streaming-text-C5bYz7LL.js} +2 -2
  125. package/dist/_chunks/subDays-DIKRViZm.js +8 -0
  126. package/dist/_chunks/{sv-Kpk1pzjz.js → sv-gQWo_19z.js} +2 -2
  127. package/dist/_chunks/{tabs-DVQ941Sj.js → tabs-CVTukWRD.js} +2 -2
  128. package/dist/_chunks/{task-tray-DP5A3Qnc.js → task-tray-Br3vc0O1.js} +3 -3
  129. package/dist/_chunks/{tasks-panel-BuxaYtEF.js → tasks-panel-CjGAhIN8.js} +6 -6
  130. package/dist/_chunks/{theme-toggle-dtdy5EaL.js → theme-toggle-BJCz_UOi.js} +3 -3
  131. package/dist/_chunks/{toast.agent-BSxl057x.js → toast.agent-uV8CeAy6.js} +2 -2
  132. package/dist/_chunks/{token-insert-menu-Pok4nExI.js → token-insert-menu-BYv6yoZI.js} +2 -2
  133. package/dist/_chunks/{tool-rail-BZx0-yIr.js → tool-rail-AaTqxkIM.js} +2 -2
  134. package/dist/_chunks/tooth-data-BwuoKFf4.js +660 -0
  135. package/dist/_chunks/tooth-scheme-BzJ6rcte.js +1483 -0
  136. package/dist/_chunks/{tr-DHaeLFxG.js → tr-Btm6M3Km.js} +2 -2
  137. package/dist/_chunks/{transaction-chip-B6iWoVmU.js → transaction-chip-DJCstquX.js} +41 -51
  138. package/dist/_chunks/type-ggmfVs23.js +16 -0
  139. package/dist/_chunks/{unit-converter-fEqluT8b.js → unit-converter-CSLWFDQh.js} +3 -3
  140. package/dist/_chunks/upload-BfT2hzMg.js +16 -0
  141. package/dist/_chunks/use-priority-overflow-c9SjxZkZ.js +101 -0
  142. package/dist/_chunks/use-visual-viewport-pin-ChurOsHM.js +31 -0
  143. package/dist/_chunks/{warning-stack-BaMI7-n7.js → warning-stack-BlG_Ujy3.js} +3 -3
  144. package/dist/_chunks/{workflow-map-qWsgCldq.js → workflow-map-C643Q43h.js} +5 -5
  145. package/dist/_chunks/{zh-CN-BncsTBwM.js → zh-CN-DkVN4vsB.js} +3 -3
  146. package/dist/agent-catalog.json +4081 -3201
  147. package/dist/agent-i18n/en.json +121 -69
  148. package/dist/brand/product-lockup/product-lockup.d.ts +1 -1
  149. package/dist/components/_shared/entity-card/entity-card.d.ts +1 -1
  150. package/dist/components/agenda-tray/index.js +1 -1
  151. package/dist/components/ai-consent-banner/index.js +1 -1
  152. package/dist/components/ai-prompt-input/index.js +1 -1
  153. package/dist/components/anamnesis-card/anamnesis-card.d.ts +1 -1
  154. package/dist/components/anamnesis-card/index.js +1 -1
  155. package/dist/components/appointment-card/appointment-card.d.ts +1 -1
  156. package/dist/components/appointment-card/index.js +2 -2
  157. package/dist/components/appointment-timeline/index.js +1 -1
  158. package/dist/components/audio-recorder/index.js +1 -1
  159. package/dist/components/benefit-card/index.js +1 -1
  160. package/dist/components/bishop-score/index.js +1 -1
  161. package/dist/components/bmi-calculator/index.js +1 -1
  162. package/dist/components/booking/index.js +1 -1
  163. package/dist/components/button/button.d.ts +8 -1
  164. package/dist/components/button/index.js +2 -2
  165. package/dist/components/button-group/button-group.d.ts +16 -0
  166. package/dist/components/button-group/index.js +1 -1
  167. package/dist/components/card/card.d.ts +1 -1
  168. package/dist/components/care-plan-card/index.js +1 -1
  169. package/dist/components/care-plan-entry-card/index.js +1 -1
  170. package/dist/components/care-plan-header/index.js +1 -1
  171. package/dist/components/carousel/index.js +1 -1
  172. package/dist/components/chat-container/index.js +1 -1
  173. package/dist/components/chat-input/index.js +1 -1
  174. package/dist/components/chat-message/index.js +1 -1
  175. package/dist/components/clinical-note-card/clinical-note-card.d.ts +1 -1
  176. package/dist/components/connection-status/index.js +1 -1
  177. package/dist/components/contact-profile-card/contact-profile-card.d.ts +1 -1
  178. package/dist/components/contact-profile-card/index.js +1 -1
  179. package/dist/components/control-room-rail/index.js +1 -1
  180. package/dist/components/copy-field/index.js +1 -1
  181. package/dist/components/counter/counter.d.ts +1 -1
  182. package/dist/components/cycle-calculator/index.js +1 -1
  183. package/dist/components/data-table/data-table.d.ts +2 -8
  184. package/dist/components/data-table/index.js +35 -34
  185. package/dist/components/data-table/toolbar.d.ts +5 -11
  186. package/dist/components/data-table-tabs/data-table-tabs.agent.d.ts +4 -0
  187. package/dist/components/data-table-tabs/data-table-tabs.d.ts +93 -0
  188. package/dist/components/data-table-tabs/index.d.ts +5 -0
  189. package/dist/components/data-table-tabs/index.js +8 -0
  190. package/dist/components/data-table-tabs/use-data-table-filter-tabs.d.ts +63 -0
  191. package/dist/components/date-picker/index.js +1 -1
  192. package/dist/components/date-range-picker/index.js +1 -1
  193. package/dist/components/date-time-picker/index.js +1 -1
  194. package/dist/components/description-list/index.js +1 -1
  195. package/dist/components/document-preview/document-preview.agent.d.ts +4 -0
  196. package/dist/components/document-preview/document-preview.d.ts +41 -0
  197. package/dist/components/document-preview/index.d.ts +4 -0
  198. package/dist/components/document-preview/index.js +6 -0
  199. package/dist/components/document-scanner/index.js +1 -1
  200. package/dist/components/due-date-calculator/index.js +2 -2
  201. package/dist/components/editor-overlay/index.js +1 -1
  202. package/dist/components/empty-state/index.js +1 -1
  203. package/dist/components/entity-summary/index.js +1 -1
  204. package/dist/components/face-scheme/face-scheme-data.d.ts +167 -0
  205. package/dist/components/face-scheme/face-scheme.d.ts +112 -2
  206. package/dist/components/face-scheme/index.d.ts +2 -2
  207. package/dist/components/face-scheme/index.js +25 -14
  208. package/dist/components/fetal-weight/index.js +1 -1
  209. package/dist/components/field-array/index.js +1 -1
  210. package/dist/components/file-manager/dialogs.d.ts +48 -0
  211. package/dist/components/file-manager/file-manager.agent.d.ts +4 -0
  212. package/dist/components/file-manager/file-manager.d.ts +82 -0
  213. package/dist/components/file-manager/folder-tree.d.ts +12 -0
  214. package/dist/components/file-manager/index.d.ts +5 -0
  215. package/dist/components/file-manager/index.js +6 -0
  216. package/dist/components/file-manager/list-view.d.ts +49 -0
  217. package/dist/components/file-manager/toolbar.d.ts +15 -0
  218. package/dist/components/file-manager/types.d.ts +167 -0
  219. package/dist/components/file-manager/utils.d.ts +34 -0
  220. package/dist/components/file-upload/file-upload.d.ts +1 -0
  221. package/dist/components/file-upload/index.d.ts +1 -1
  222. package/dist/components/file-upload/index.js +4 -3
  223. package/dist/components/finished-terminal/index.js +1 -1
  224. package/dist/components/fiscal-code-input/index.js +1 -1
  225. package/dist/components/flag/flag.d.ts +1 -1
  226. package/dist/components/freemium-paywall/index.js +1 -1
  227. package/dist/components/gestational-age-calculator/index.js +1 -1
  228. package/dist/components/hcg-doubling/index.js +1 -1
  229. package/dist/components/header/index.js +1 -1
  230. package/dist/components/header-settings/index.js +1 -1
  231. package/dist/components/icon-button/index.js +1 -1
  232. package/dist/components/icon-button-group/icon-button-group.d.ts +6 -0
  233. package/dist/components/icon-button-group/index.js +1 -1
  234. package/dist/components/icon-picker/index.js +1 -1
  235. package/dist/components/image-cropper/index.js +1 -1
  236. package/dist/components/index.d.ts +7 -1
  237. package/dist/components/key-value-pair/index.js +1 -1
  238. package/dist/components/link/link.d.ts +1 -1
  239. package/dist/components/locale-picker/index.js +1 -1
  240. package/dist/components/map-view/index.js +1 -1
  241. package/dist/components/matrix-rain/matrix-rain.d.ts +1 -1
  242. package/dist/components/message-card/index.js +1 -1
  243. package/dist/components/message-card/message-card.d.ts +1 -1
  244. package/dist/components/message-tray/index.js +1 -1
  245. package/dist/components/muscle-scheme/index.js +1 -1
  246. package/dist/components/notes-panel/index.js +1 -1
  247. package/dist/components/notification-card/index.js +1 -1
  248. package/dist/components/notification-card/notification-card.d.ts +1 -1
  249. package/dist/components/notification-tray/index.js +1 -1
  250. package/dist/components/operator-hero/operator-hero.d.ts +1 -1
  251. package/dist/components/optical-prescription/index.d.ts +4 -2
  252. package/dist/components/optical-prescription/index.js +29 -26
  253. package/dist/components/optical-prescription/optical-prescription-charts.d.ts +78 -0
  254. package/dist/components/optical-prescription/optical-prescription-data.d.ts +29 -0
  255. package/dist/components/optical-prescription/optical-prescription.d.ts +9 -0
  256. package/dist/components/patient-details/index.js +1 -1
  257. package/dist/components/patient-search/index.js +1 -1
  258. package/dist/components/patient-summary-card/index.js +1 -1
  259. package/dist/components/patient-summary-card/patient-summary-card.d.ts +1 -1
  260. package/dist/components/patient-table/index.js +1 -1
  261. package/dist/components/payment-card/index.js +1 -1
  262. package/dist/components/payment-card/payment-card.d.ts +1 -1
  263. package/dist/components/payment-card/payment-request-card.d.ts +1 -1
  264. package/dist/components/periodontal-chart/index.d.ts +6 -0
  265. package/dist/components/periodontal-chart/index.js +22 -0
  266. package/dist/components/periodontal-chart/periodontal-chart-data.d.ts +119 -0
  267. package/dist/components/periodontal-chart/periodontal-chart.agent.d.ts +4 -0
  268. package/dist/components/periodontal-chart/periodontal-chart.d.ts +69 -0
  269. package/dist/components/periodontal-chart-card/index.js +1 -1
  270. package/dist/components/periodontal-chart-card/periodontal-chart-card.d.ts +1 -1
  271. package/dist/components/periodontal-diagnosis/index.d.ts +6 -0
  272. package/dist/components/periodontal-diagnosis/index.js +13 -0
  273. package/dist/components/periodontal-diagnosis/periodontal-diagnosis-data.d.ts +30 -0
  274. package/dist/components/periodontal-diagnosis/periodontal-diagnosis.agent.d.ts +4 -0
  275. package/dist/components/periodontal-diagnosis/periodontal-diagnosis.d.ts +44 -0
  276. package/dist/components/periodontal-risk-chart/index.d.ts +6 -0
  277. package/dist/components/periodontal-risk-chart/index.js +9 -0
  278. package/dist/components/periodontal-risk-chart/periodontal-risk-chart.agent.d.ts +4 -0
  279. package/dist/components/periodontal-risk-chart/periodontal-risk-chart.d.ts +28 -0
  280. package/dist/components/periodontal-risk-chart/periodontal-risk-data.d.ts +47 -0
  281. package/dist/components/popover/index.js +1 -1
  282. package/dist/components/popover/popover.d.ts +1 -0
  283. package/dist/components/practice-results/index.js +1 -1
  284. package/dist/components/pregnancy-dating/index.js +1 -1
  285. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  286. package/dist/components/privacy-lock/index.js +1 -1
  287. package/dist/components/product-hub-tray/index.js +1 -1
  288. package/dist/components/product-hub-tray/product-hub-panel.d.ts +1 -1
  289. package/dist/components/public-header/index.js +1 -1
  290. package/dist/components/public-header/public-header.d.ts +1 -1
  291. package/dist/components/radiograph-panel/index.js +1 -1
  292. package/dist/components/radiograph-panel/radiograph-panel.d.ts +2 -2
  293. package/dist/components/reviews-panel/index.js +1 -1
  294. package/dist/components/rich-text-editor/index.js +1 -1
  295. package/dist/components/select/index.js +1 -1
  296. package/dist/components/session-countdown/index.js +1 -1
  297. package/dist/components/sheet/index.js +1 -1
  298. package/dist/components/sidebar/index.js +1 -1
  299. package/dist/components/sidebar/sidebar.d.ts +9 -0
  300. package/dist/components/sign-document/index.js +1 -1
  301. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  302. package/dist/components/signature-capture/index.js +1 -1
  303. package/dist/components/signature-field/index.js +1 -1
  304. package/dist/components/signature-field/signature-field.d.ts +7 -0
  305. package/dist/components/skeleton-scheme/index.js +1186 -0
  306. package/dist/components/slot-grid/index.js +1 -1
  307. package/dist/components/stat/stat.d.ts +1 -1
  308. package/dist/components/streaming-text/index.js +1 -1
  309. package/dist/components/tabs/index.js +1 -1
  310. package/dist/components/task-tray/index.js +1 -1
  311. package/dist/components/tasks-panel/index.js +1 -1
  312. package/dist/components/theme-toggle/index.js +1 -1
  313. package/dist/components/toast/index.js +1 -1
  314. package/dist/components/token-insert-menu/index.js +1 -1
  315. package/dist/components/tool-rail/index.js +1 -1
  316. package/dist/components/tooth-scheme/index.js +29 -28
  317. package/dist/components/transaction-chip/index.js +1 -1
  318. package/dist/components/unit-converter/index.js +1 -1
  319. package/dist/components/warning-stack/index.js +1 -1
  320. package/dist/components/workflow/index.js +1 -1
  321. package/dist/hooks/index.d.ts +2 -0
  322. package/dist/hooks/index.js +40 -35
  323. package/dist/hooks/use-priority-overflow.d.ts +63 -0
  324. package/dist/hooks/use-visual-viewport-pin.d.ts +32 -0
  325. package/dist/i18n/locales/ar.d.ts +490 -9
  326. package/dist/i18n/locales/ar.js +493 -12
  327. package/dist/i18n/locales/de.d.ts +490 -9
  328. package/dist/i18n/locales/de.js +493 -12
  329. package/dist/i18n/locales/el.d.ts +490 -9
  330. package/dist/i18n/locales/el.js +493 -12
  331. package/dist/i18n/locales/en.d.ts +490 -9
  332. package/dist/i18n/locales/en.js +493 -12
  333. package/dist/i18n/locales/es.d.ts +490 -9
  334. package/dist/i18n/locales/es.js +493 -12
  335. package/dist/i18n/locales/fr.d.ts +490 -9
  336. package/dist/i18n/locales/fr.js +493 -12
  337. package/dist/i18n/locales/hi.d.ts +490 -9
  338. package/dist/i18n/locales/hi.js +493 -12
  339. package/dist/i18n/locales/it.d.ts +490 -9
  340. package/dist/i18n/locales/it.js +493 -12
  341. package/dist/i18n/locales/ja.d.ts +490 -9
  342. package/dist/i18n/locales/ja.js +493 -12
  343. package/dist/i18n/locales/nl.d.ts +490 -9
  344. package/dist/i18n/locales/nl.js +493 -12
  345. package/dist/i18n/locales/pl.d.ts +490 -9
  346. package/dist/i18n/locales/pl.js +493 -12
  347. package/dist/i18n/locales/pt.d.ts +490 -9
  348. package/dist/i18n/locales/pt.js +493 -12
  349. package/dist/i18n/locales/ro.d.ts +490 -9
  350. package/dist/i18n/locales/ro.js +493 -12
  351. package/dist/i18n/locales/ru.d.ts +490 -9
  352. package/dist/i18n/locales/ru.js +493 -12
  353. package/dist/i18n/locales/sq.d.ts +490 -9
  354. package/dist/i18n/locales/sq.js +493 -12
  355. package/dist/i18n/locales/sv.d.ts +490 -9
  356. package/dist/i18n/locales/sv.js +493 -12
  357. package/dist/i18n/locales/tr.d.ts +490 -9
  358. package/dist/i18n/locales/tr.js +493 -12
  359. package/dist/i18n/locales/zh.d.ts +490 -9
  360. package/dist/i18n/locales/zh.js +493 -12
  361. package/dist/index.js +872 -809
  362. package/dist/locales/ar.json +493 -12
  363. package/dist/locales/de.json +493 -12
  364. package/dist/locales/el.json +493 -12
  365. package/dist/locales/en.json +493 -12
  366. package/dist/locales/es.json +493 -12
  367. package/dist/locales/fr.json +493 -12
  368. package/dist/locales/hi.json +493 -12
  369. package/dist/locales/it.json +493 -12
  370. package/dist/locales/ja.json +493 -12
  371. package/dist/locales/nl.json +493 -12
  372. package/dist/locales/pl.json +493 -12
  373. package/dist/locales/pt.json +493 -12
  374. package/dist/locales/ro.json +493 -12
  375. package/dist/locales/ru.json +493 -12
  376. package/dist/locales/sq.json +493 -12
  377. package/dist/locales/sv.json +493 -12
  378. package/dist/locales/tr.json +493 -12
  379. package/dist/locales/zh.json +493 -12
  380. package/dist/patterns/alia-assistant/index.js +1 -1
  381. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  382. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +1 -1
  383. package/dist/patterns/signature-request/index.d.ts +3 -0
  384. package/dist/patterns/signature-request/index.js +5 -0
  385. package/dist/patterns/signature-request/signature-request.d.ts +81 -0
  386. package/dist/tokens.css +2 -2
  387. package/package.json +32 -4
  388. package/dist/_chunks/button-group-CvEnVzY7.js +0 -119
  389. package/dist/_chunks/face-scheme-BT9_KdL0.js +0 -1450
  390. package/dist/_chunks/icon-button-group-C48khLE0.js +0 -206
  391. package/dist/_chunks/link-cell-renderer-BCppbMec.js +0 -2185
  392. package/dist/_chunks/optical-prescription-Bmlbuopi.js +0 -653
  393. package/dist/_chunks/patient-shell-oiIRqEAl.js +0 -162
  394. package/dist/_chunks/subDays-DGSOp9d9.js +0 -8
  395. package/dist/_chunks/tooth-scheme-D_rso4uu.js +0 -2133
  396. package/dist/patterns/patient-shell/index.d.ts +0 -12
  397. package/dist/patterns/patient-shell/index.js +0 -5
  398. package/dist/patterns/patient-shell/patient-shell.d.ts +0 -62
@@ -1,49 +1,16 @@
1
- import { jsxs as p, jsx as t } from "react/jsx-runtime";
2
- import { forwardRef as Fe, useId as Te, useRef as m, useState as Y, useEffect as k, useCallback as h, useMemo as We, useImperativeHandle as Ye } from "react";
3
- import { c as z } from "./index-D2ZczOXr.js";
4
- import { useTranslation as $e } from "react-i18next";
5
- import { B as H } from "./button-DD_0Xdmr.js";
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-Kw1rdvFw.js";
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 Ge } from "./registry-DvAUVLHh.js";
10
- import { R as Je } from "./rotate-ccw-BBQnIVTr.js";
11
- import { C as Qe } from "./check-DrFSN__t.js";
12
- import { c as ze } from "./createLucideIcon-DhHxpK9K.js";
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: (a) => a.hasCapture()
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: (a) => a.getPhase()
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: (a) => a.startCamera()
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: (a) => a.capture()
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: (a) => {
89
- a.confirm();
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: (a) => {
97
- a.retake();
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
- }, ar = z(
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
- ), be = z(
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 = z(
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
- ), sr = z(
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
- ), $ = z(
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 = z(
171
- ["ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]"].join(" ")
172
- ), ir = z(
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 or(a) {
148
+ function tr(t) {
178
149
  let o = "";
179
- for (let f = 0; f < a.length; f += 1)
180
- o += a[f].toString(16).padStart(2, "0");
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(a) {
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 N = new Uint8Array(a.byteLength);
188
- N.set(new Uint8Array(a));
189
- const U = await o.crypto.subtle.digest("SHA-256", N.buffer);
190
- return or(new Uint8Array(U));
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 cr(a) {
195
- const o = a instanceof Error ? a.name : "";
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 dr() {
169
+ function sr() {
199
170
  return typeof navigator < "u" && typeof navigator.mediaDevices < "u" && typeof navigator.mediaDevices.getUserMedia == "function";
200
171
  }
201
- const lr = {
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
- }, ke = {
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
- }, ur = Fe(
185
+ }, or = Fe(
215
186
  ({
216
- id: a,
187
+ id: t,
217
188
  value: o,
218
189
  defaultValue: f = null,
219
- onConfirm: N,
190
+ onConfirm: C,
220
191
  onRetake: U,
221
192
  onError: X,
222
193
  documentType: Z = "tessera-sanitaria",
223
- captureMode: V = "auto",
224
- accept: Ne = {
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: y = "image/jpeg",
232
- outputQuality: G = 0.92,
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: je,
237
- className: Re
238
- }, Ee) => {
239
- const { t: s } = $e(), ce = `ds-${Te().replace(/[^a-zA-Z0-9-_]/g, "")}-hint`, [b, C] = Ze({
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] = Y(
213
+ }), j = m(f != null || o != null), [n, v] = W(
243
214
  f != null || o != null ? "captured" : "idle"
244
- ), [S, q] = Y(
215
+ ), [S, q] = W(
245
216
  null
246
- ), [Ie, de] = Y(!1), [le, J] = Y(!1), A = m(null), Ue = m(null), R = m(null), ue = m(!1), me = m(null), Ae = m(null), pe = m(null), fe = m(null), K = m(X), M = m(N), x = m(U);
247
- k(() => {
248
- K.current = X, M.current = N, x.current = U;
249
- }, [X, N, U]);
250
- const P = o !== void 0, E = V === "upload-only", w = h(() => {
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 = A.current;
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 = K.current) == null || r.call(K, { kind: e });
258
- }, []), O = h(async () => {
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 || E)) {
261
- if (!dr()) {
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 = A.current;
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(cr(r));
259
+ w(), u(ar(r));
289
260
  }
290
261
  }
291
- }, [g, E, ie, w, u]), L = h(() => {
292
- const e = A.current;
262
+ }, [g, A, ie, w, u]), D = h(() => {
263
+ const e = I.current;
293
264
  e && e.readyState >= 2 && de(!0);
294
265
  }, []);
295
- k(() => {
266
+ z(() => {
296
267
  if (n !== "streaming") return;
297
- L();
298
- const e = window.setInterval(L, 100), r = window.setTimeout(
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, L]);
306
- const Q = h(async () => {
307
- const e = A.current;
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, T = 0, D = r, _ = i;
288
+ let d = 0, M = 0, L = r, _ = i;
318
289
  if (oe) {
319
- const B = r * 0.12, W = i * 0.12;
320
- d = B, T = W, D = r - B * 2, _ = i - W * 2;
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(D)), l.height = Math.max(1, Math.round(_));
324
- const I = l.getContext("2d");
325
- if (!I) {
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
- I.drawImage(e, d, T, D, _, 0, 0, l.width, l.height);
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
- (W) => B(W),
339
- y,
340
- y === "image/png" ? void 0 : G
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 Ke = l.toDataURL(
348
- y,
349
- y === "image/png" ? void 0 : G
350
- ), Me = await c.arrayBuffer(), Pe = await xe(Me);
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 Oe = {
353
- dataUrl: Ke,
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: y,
329
+ mimeType: b,
359
330
  byteSize: c.size,
360
331
  capturedAt: (/* @__PURE__ */ new Date()).toISOString(),
361
- sha256: Pe
332
+ sha256: Oe
362
333
  };
363
- C(Oe), v("captured");
334
+ N(Ve), v("captured");
364
335
  }, [
365
336
  oe,
366
- y,
367
- G,
337
+ b,
338
+ $,
368
339
  w,
369
340
  u,
370
- C
371
- ]), Le = h(
341
+ N
342
+ ]), Ae = h(
372
343
  async (e) => {
373
344
  const r = e[0];
374
345
  if (r) {
375
- J(!0);
346
+ G(!0);
376
347
  try {
377
348
  const i = URL.createObjectURL(r), d = await new Promise(
378
- (l, I) => {
349
+ (l, E) => {
379
350
  const c = new Image();
380
- c.onload = () => l({ w: c.naturalWidth, h: c.naturalHeight }), c.onerror = () => I(new Error("decode-failed")), c.src = i;
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
- }), T = await new Promise((l, I) => {
355
+ }), M = await new Promise((l, E) => {
385
356
  const c = new FileReader();
386
- c.onload = () => l(String(c.result)), c.onerror = () => I(new Error("read-failed")), c.readAsDataURL(r);
387
- }), D = await r.arrayBuffer(), _ = await xe(D);
388
- j.current = !1, q(null), C({
389
- dataUrl: T,
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 || y,
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
- J(!1);
373
+ G(!1);
403
374
  }
404
375
  }
405
376
  },
406
- [y, u, C]
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
- ), ee = h(() => {
385
+ ), Q = h(() => {
415
386
  var e;
416
- b && ((e = M.current) == null || e.call(M, b));
417
- }, [b]), re = m(!1), ne = h(() => {
387
+ y && ((e = O.current) == null || e.call(O, y));
388
+ }, [y]), ee = m(!1), re = h(() => {
418
389
  var e, r;
419
- if (P) {
390
+ if (V) {
420
391
  (e = x.current) == null || e.call(x);
421
392
  return;
422
393
  }
423
- j.current = !1, re.current = !0, C(null), q(null), J(!1), v("idle"), (r = x.current) == null || r.call(x);
424
- }, [P, C]);
425
- k(() => {
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" && re.current && (re.current = !1, (i = pe.current) == null || i.focus());
428
- }, [n]), k(() => {
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]), k(() => {
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]), k(() => () => {
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
- }, []), k(() => {
444
- P && (o != null ? v("captured") : n === "captured" && v("idle"));
445
- }, [o, P]);
446
- const te = We(
414
+ }, []), z(() => {
415
+ V && (o != null ? v("captured") : n === "captured" && v("idle"));
416
+ }, [o, V]);
417
+ const ne = Te(
447
418
  () => ({
448
- hasCapture: () => b != null,
419
+ hasCapture: () => y != null,
449
420
  getPhase: () => n,
450
- startCamera: () => O(),
451
- capture: () => Q(),
452
- confirm: () => ee(),
453
- retake: () => ne()
421
+ startCamera: () => F(),
422
+ capture: () => J(),
423
+ confirm: () => Q(),
424
+ retake: () => re()
454
425
  }),
455
- [b, n, O, Q, ee, ne]
426
+ [y, n, F, J, Q, re]
456
427
  );
457
- Ye(Ee, () => te, [te]), Ge(tr, te, a);
458
- const _e = je ?? s("documentScanner.regionLabel"), Be = s(lr[Z]), ge = Math.round(se / (1024 * 1024)), He = (() => {
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(ke[S], { maxSizeMb: ge }) : s("documentScanner.error.captureFailed");
441
+ return S ? s(ze[S], { maxSizeMb: ge }) : s("documentScanner.error.captureFailed");
471
442
  }
472
- })(), Ve = !E && S !== "file-invalid-type" && S !== "file-too-large" && S !== "insecure-context", ve = !g && (V === "auto" || V === "upload-only" || n === "error"), F = /* @__PURE__ */ t(
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: Ne,
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
- Le(e);
454
+ Ae(e);
484
455
  },
485
456
  onReject: De
486
457
  }
487
- ), qe = n === "idle" || n === "requesting" || n === "streaming" || n === "error";
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": _e,
463
+ "aria-label": Le,
493
464
  "aria-disabled": g || void 0,
494
- className: [ar({ size: Ce }), Re].filter(Boolean).join(" "),
465
+ className: [er({ size: Ce }), je].filter(Boolean).join(" "),
495
466
  "data-component": "document-scanner",
496
- "data-component-id": a,
467
+ "data-component-id": t,
497
468
  "data-phase": n,
498
469
  children: [
499
- /* @__PURE__ */ t(
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: He
478
+ children: Be
508
479
  }
509
480
  ),
510
- n === "captured" && b ? (
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: be({ frame: Z }), children: [
514
- /* @__PURE__ */ t(
484
+ /* @__PURE__ */ p("div", { className: ye({ frame: Z }), children: [
485
+ /* @__PURE__ */ a(
515
486
  "img",
516
487
  {
517
- src: b.dataUrl,
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__ */ t("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
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__ */ t(
527
- H,
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__ */ t(Je, { "aria-hidden": "true" }),
533
- onClick: ne,
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__ */ t(
539
- H,
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__ */ t(Qe, { "aria-hidden": "true" }),
546
- onClick: ee,
547
- disabled: g || b == null,
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
- qe ? /* @__PURE__ */ p("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
555
- !E && n !== "error" ? /* @__PURE__ */ p(
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: be({ frame: Z }),
530
+ className: ye({ frame: Z }),
560
531
  "aria-busy": n === "requesting" || void 0,
561
532
  children: [
562
- /* @__PURE__ */ t(
533
+ /* @__PURE__ */ a(
563
534
  "video",
564
535
  {
565
- ref: A,
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: L,
572
- onCanPlay: L,
542
+ onLoadedMetadata: D,
543
+ onCanPlay: D,
573
544
  "data-testid": "document-scanner-video"
574
545
  }
575
546
  ),
576
- n === "requesting" ? /* @__PURE__ */ t("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__ */ t(
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: sr(),
558
+ className: rr(),
588
559
  "data-testid": "document-scanner-frame",
589
560
  children: [
590
- /* @__PURE__ */ t(
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__ */ t(
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__ */ t(
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__ */ t(
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__ */ t("p", { id: ce, className: ir(), children: Be }) : null,
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__ */ t(ae.Description, { children: s(ke[S], { maxSizeMb: ge }) }),
605
+ /* @__PURE__ */ a(ae.Description, { children: s(ze[S], { maxSizeMb: ge }) }),
635
606
  /* @__PURE__ */ p(ae.Action, { children: [
636
- Ve ? /* @__PURE__ */ t(
637
- H,
607
+ Ke ? /* @__PURE__ */ a(
608
+ K,
638
609
  {
639
610
  ref: fe,
640
611
  intent: "secondary",
641
612
  size: "sm",
642
613
  onClick: () => {
643
- O();
614
+ F();
644
615
  },
645
616
  disabled: g,
646
617
  children: s("documentScanner.retry")
647
618
  }
648
619
  ) : null,
649
- ve ? F : null
620
+ ve ? te : null
650
621
  ] })
651
622
  ] }) : null,
652
623
  n !== "error" ? /* @__PURE__ */ p("div", { className: Se(), children: [
653
- n === "streaming" ? /* @__PURE__ */ t(
654
- H,
624
+ n === "streaming" ? /* @__PURE__ */ a(
625
+ K,
655
626
  {
656
- ref: Ae,
627
+ ref: Ie,
657
628
  intent: "primary",
658
629
  size: "lg",
659
- startIcon: /* @__PURE__ */ t(ye, { "aria-hidden": "true" }),
630
+ startIcon: /* @__PURE__ */ a(be, { "aria-hidden": "true" }),
660
631
  onClick: () => {
661
- Q();
632
+ J();
662
633
  },
663
- disabled: g || !Ie,
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") && !E ? /* @__PURE__ */ t(
670
- H,
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__ */ t(ye, { "aria-hidden": "true" }),
648
+ startIcon: /* @__PURE__ */ a(be, { "aria-hidden": "true" }),
678
649
  onClick: () => {
679
- O();
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__ */ t(
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" ? E ? F : /* @__PURE__ */ p("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] type-body-sm ds:text-[var(--muted-foreground)]", children: [
695
- /* @__PURE__ */ t(nr, { "aria-hidden": "true", className: "ds:size-4" }),
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
- ur.displayName = "DocumentScanner";
674
+ or.displayName = "DocumentScanner";
707
675
  export {
708
- ur as D,
709
- tr as d
676
+ or as D,
677
+ Qe as d
710
678
  };
711
- //# sourceMappingURL=document-scanner-B23j4w7X.js.map
679
+ //# sourceMappingURL=document-scanner-B6h1Ir56.js.map