@alfadocs/ui-kit 0.68.0 → 0.69.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 (342) hide show
  1. package/dist/_chunks/{accordion-9lJSMMsZ.js → accordion-DnIa7OHX.js} +69 -47
  2. package/dist/_chunks/actions-cell-renderer-DrcaxB0w.js +2061 -0
  3. package/dist/_chunks/address-autocomplete-BEX9PXty.js +496 -0
  4. package/dist/_chunks/{agenda-card.agent-B_R47-c9.js → agenda-card.agent-mTCrkKSZ.js} +6 -1
  5. package/dist/_chunks/{agenda-tray-T-BumlGZ.js → agenda-tray-g0kg7HwB.js} +36 -24
  6. package/dist/_chunks/{ai-consent-banner-Dxtx_WAh.js → ai-consent-banner-CXlsNX1c.js} +3 -3
  7. package/dist/_chunks/{ai-prompt-input-BwEACCPm.js → ai-prompt-input-CuhTo9mh.js} +80 -61
  8. package/dist/_chunks/{ai-tools-rail-CInA_1-E.js → ai-tools-rail-BA_sqy1A.js} +87 -70
  9. package/dist/_chunks/{alia-sidebar-Ckv0yCKi.js → alia-sidebar-B47qRQb5.js} +5 -5
  10. package/dist/_chunks/{anamnesis-card-N8pIKWuS.js → anamnesis-card-DRmE24OQ.js} +2 -2
  11. package/dist/_chunks/{appointment-tray-BMl89NPW.js → appointment-tray-CZtvtaH-.js} +32 -20
  12. package/dist/_chunks/{audio-recorder-DjXLP4aF.js → audio-recorder-DYXXnGug.js} +59 -56
  13. package/dist/_chunks/{autocomplete-CcCFlVf-.js → autocomplete-DOeGouCL.js} +157 -132
  14. package/dist/_chunks/bishop-score-PJI3AXzA.js +304 -0
  15. package/dist/_chunks/bmi-calculator-BZtIJ53x.js +434 -0
  16. package/dist/_chunks/{booking-L8-YP8BJ.js → booking-C3VqFReX.js} +420 -397
  17. package/dist/_chunks/{breadcrumb-OTbaY70e.js → breadcrumb-CchdeG7d.js} +42 -28
  18. package/dist/_chunks/{calculator-dialog-CFk4I91b.js → calculator-dialog-BR5iU0kf.js} +2 -2
  19. package/dist/_chunks/{calendar-oYWOCrnf.js → calendar-CZUjL8SZ.js} +258 -201
  20. package/dist/_chunks/{care-plan-card-BwVUyUBb.js → care-plan-card-CvFGXa2z.js} +10 -6
  21. package/dist/_chunks/{care-plan-entry-card-VzdQHcOL.js → care-plan-entry-card-C3E_gClk.js} +17 -13
  22. package/dist/_chunks/{carousel.agent-vt21A_el.js → carousel.agent-4v8Emr9E.js} +219 -198
  23. package/dist/_chunks/{chart-Cg3e9EH9.js → chart-CMr3eW62.js} +150 -109
  24. package/dist/_chunks/{chat-container-ogB4OskO.js → chat-container-DWho5hPR.js} +47 -34
  25. package/dist/_chunks/{chat-input-B5zjNEUN.js → chat-input-BcXTetgM.js} +57 -41
  26. package/dist/_chunks/{checkbox-DRcOdmXv.js → checkbox-BuZ1u__2.js} +41 -27
  27. package/dist/_chunks/{checkbox-group-CpUwlHug.js → checkbox-group-PqNmQ-cE.js} +3 -3
  28. package/dist/_chunks/{clinical-note-card-gtrxv6zn.js → clinical-note-card-DqQYf_D4.js} +2 -2
  29. package/dist/_chunks/{collapsible-X3oaLPU3.js → collapsible-BrnRiCC6.js} +26 -23
  30. package/dist/_chunks/{color-picker-FXpItIaF.js → color-picker-C_fZl6sA.js} +124 -112
  31. package/dist/_chunks/{combobox-BC-DFx8G.js → combobox-Clum7gJ1.js} +165 -128
  32. package/dist/_chunks/{command-palette-BiPAAno-.js → command-palette-CJzmc5pC.js} +87 -64
  33. package/dist/_chunks/{contact-profile-card-7BMB85T6.js → contact-profile-card-Dramqa9C.js} +13 -11
  34. package/dist/_chunks/{copy-field-CCq7j6Zc.js → copy-field-Bjw9u2cV.js} +42 -35
  35. package/dist/_chunks/counter-dRlTNC_y.js +55 -0
  36. package/dist/_chunks/{cycle-calculator-BF0ointe.js → cycle-calculator-DmRGJNaT.js} +3 -3
  37. package/dist/_chunks/{date-picker-oGg5BnXL.js → date-picker-Dl9RKxaV.js} +76 -57
  38. package/dist/_chunks/{date-range-picker-C5BWfH_T.js → date-range-picker-CTUeR6Bj.js} +73 -46
  39. package/dist/_chunks/{date-time-picker-Ze1My59T.js → date-time-picker-BhoogS5Q.js} +64 -40
  40. package/dist/_chunks/{dependent-selector-DpzGtr_J.js → dependent-selector-CG_FOHya.js} +44 -30
  41. package/dist/_chunks/{dialog-DMGnSelc.js → dialog-ZNuboNmy.js} +35 -28
  42. package/dist/_chunks/{document-scanner-D2qehl3-.js → document-scanner-CTubA0-N.js} +12 -4
  43. package/dist/_chunks/{dropdown-menu-DwwPovMZ.js → dropdown-menu-qrxjymfw.js} +94 -93
  44. package/dist/_chunks/{due-date-calculator-DU9AEWNy.js → due-date-calculator-BTmsIQqD.js} +4 -4
  45. package/dist/_chunks/editable-currency-cell-renderer-kgqp_mIw.js +448 -0
  46. package/dist/_chunks/{email-input-lQivsFrw.js → email-input-B_Y55f5G.js} +3 -3
  47. package/dist/_chunks/{fetal-weight-BVSzOhuR.js → fetal-weight-CRz7KE2D.js} +2 -2
  48. package/dist/_chunks/{file-upload-BosbPDb1.js → file-upload-5ScQd4fE.js} +118 -100
  49. package/dist/_chunks/{fiscal-code-input-DPtqluVb.js → fiscal-code-input-Cf-8O4Fj.js} +76 -63
  50. package/dist/_chunks/{freemium-paywall-CkWjv3o6.js → freemium-paywall-DZ2mBS3w.js} +78 -71
  51. package/dist/_chunks/{gestational-age-calculator-DBlFdoiP.js → gestational-age-calculator-BleUdhbI.js} +5 -5
  52. package/dist/_chunks/{hcg-doubling-if4Q8aSX.js → hcg-doubling-CnjDXX6U.js} +3 -3
  53. package/dist/_chunks/{header-settings-CNOqIhoW.js → header-settings-DJqoAl5m.js} +86 -46
  54. package/dist/_chunks/{index.modern-D2LGACWg.js → index.modern-Zta-A4Jm.js} +3 -3
  55. package/dist/_chunks/{list-BOwqwy03.js → list-DgE1xWBM.js} +99 -84
  56. package/dist/_chunks/{locale-picker-C9JmBht3.js → locale-picker-ChYYSX2N.js} +47 -35
  57. package/dist/_chunks/{map-view-Tb5VfK9Y.js → map-view-BkOoGoX2.js} +160 -115
  58. package/dist/_chunks/{marketplace-app-shell-D4-T9Qzz.js → marketplace-app-shell-6T9W4Knl.js} +4 -4
  59. package/dist/_chunks/{message-card.agent-4IeIgrnJ.js → message-card.agent-ZLhx3Bs5.js} +6 -1
  60. package/dist/_chunks/{message-tray-CVyJajVJ.js → message-tray-DwrBLJlf.js} +90 -48
  61. package/dist/_chunks/{multi-select-BcPylvHR.js → multi-select-BdHHDrRN.js} +196 -153
  62. package/dist/_chunks/{navigation-menu-C6lBYVv9.js → navigation-menu-DRUi6sSj.js} +75 -42
  63. package/dist/_chunks/{notification-card.agent-Rqt3ofk9.js → notification-card.agent-DxGBZb8T.js} +5 -1
  64. package/dist/_chunks/{notification-tray-DlgenTEe.js → notification-tray-Btb9oQeZ.js} +112 -97
  65. package/dist/_chunks/{number-input-Dj5L3pXK.js → number-input-DxphVG_A.js} +36 -27
  66. package/dist/_chunks/{operator-hero-f_KaRhw5.js → operator-hero-CP2Nhupm.js} +12 -8
  67. package/dist/_chunks/{otp-input-xQ4Ps5VY.js → otp-input-DzBQ-CpE.js} +52 -33
  68. package/dist/_chunks/{pagination-DQOgnxxw.js → pagination-D58kglCr.js} +181 -162
  69. package/dist/_chunks/{patient-search-DR9XUYRQ.js → patient-search-CBC_ySF6.js} +69 -60
  70. package/dist/_chunks/{patient-shell-BfgufL_q.js → patient-shell-DV3XEtIB.js} +3 -3
  71. package/dist/_chunks/{patient-summary-card-hEmr4eTW.js → patient-summary-card-B836_fDB.js} +95 -103
  72. package/dist/_chunks/patient-table-CDuosVru.js +889 -0
  73. package/dist/_chunks/{payment-form-nXocS_MX.js → payment-form-DvjwYVIT.js} +56 -44
  74. package/dist/_chunks/{payment-request-card-CYE5vhZ0.js → payment-request-card-DioWKBUq.js} +2 -2
  75. package/dist/_chunks/{pdf-viewer-GsfNqeeT.js → pdf-viewer-D6BPfW2D.js} +205 -157
  76. package/dist/_chunks/{periodontal-chart-card-Dh3KgvYG.js → periodontal-chart-card-BuDEMbHE.js} +2 -2
  77. package/dist/_chunks/{phone-input-DVXhNlIl.js → phone-input-DjU-XmO_.js} +64 -47
  78. package/dist/_chunks/{popover-DTbfAuR0.js → popover-B2qCDhJC.js} +37 -32
  79. package/dist/_chunks/{practice-results-DND2SAt7.js → practice-results-KrTHqZua.js} +278 -242
  80. package/dist/_chunks/{pregnancy-dating-QY-sqpvj.js → pregnancy-dating-DORUAOHB.js} +6 -6
  81. package/dist/_chunks/{pregnancy-weight-gain-DOJXXNYP.js → pregnancy-weight-gain-DVz4rr7-.js} +3 -3
  82. package/dist/_chunks/{privacy-lock-C7JyMf0y.js → privacy-lock-BzMLQu-j.js} +32 -28
  83. package/dist/_chunks/{product-hub-panel-CAXDFeGP.js → product-hub-panel-e6pW220e.js} +45 -27
  84. package/dist/_chunks/{progress-kzIRcdaq.js → progress-DA413-zn.js} +2 -2
  85. package/dist/_chunks/{public-footer.agent-CfXuW1x6.js → public-footer.agent-D0cFbjWl.js} +151 -146
  86. package/dist/_chunks/{public-header.agent-BOhJgZEU.js → public-header.agent-DqkqA-ca.js} +107 -102
  87. package/dist/_chunks/{qr-code-DNXhi6se.js → qr-code-CPkEs5mG.js} +52 -46
  88. package/dist/_chunks/{radio-group-CLjK-SlK.js → radio-group-BPt7pKZW.js} +5 -5
  89. package/dist/_chunks/{recaptcha-widget-BCNHsgqt.js → recaptcha-widget-BC-4To9b.js} +9 -2
  90. package/dist/_chunks/registry-DvAUVLHh.js +51 -0
  91. package/dist/_chunks/{resizable-3vzqDlg6.js → resizable-DVGcfOrk.js} +193 -173
  92. package/dist/_chunks/{reviews-panel-DBktKm7i.js → reviews-panel-Dq7LMDcH.js} +87 -68
  93. package/dist/_chunks/{rich-text-editor-VawKN1FI.js → rich-text-editor-BsV7zUdg.js} +736 -647
  94. package/dist/_chunks/{search-bar-SY2BcV2N.js → search-bar-C_T3pBJn.js} +105 -78
  95. package/dist/_chunks/{search-input-DbxrnHkW.js → search-input-DQvGxR74.js} +2 -2
  96. package/dist/_chunks/{search-input.agent-CfZvViOd.js → search-input.agent-DRH54coT.js} +19 -4
  97. package/dist/_chunks/{select-CEtRcon5.js → select-DMLG44F5.js} +72 -56
  98. package/dist/_chunks/{session-countdown-LPnhTHjn.js → session-countdown-X1Ki6i0M.js} +3 -3
  99. package/dist/_chunks/{sheet-taJer-Ha.js → sheet-BxsE7eQm.js} +59 -45
  100. package/dist/_chunks/{sidebar-DaB4ulxH.js → sidebar-DY9jGjgt.js} +254 -248
  101. package/dist/_chunks/{sign-document-CdAiHiCh.js → sign-document-B4DeRhTe.js} +75 -49
  102. package/dist/_chunks/{signature-capture-COi0Uiqu.js → signature-capture-Ct_4Md4e.js} +138 -104
  103. package/dist/_chunks/{slider-BHWzXdjt.js → slider-DN1CWkKB.js} +85 -65
  104. package/dist/_chunks/{sparkline-DGhCSw8M.js → sparkline-iOXYgvJe.js} +75 -53
  105. package/dist/_chunks/{stepper-accordion.agent-C4quJ-MD.js → stepper-accordion.agent-cmEguIdx.js} +7 -1
  106. package/dist/_chunks/{stepper-progress-DDjq5nei.js → stepper-progress-Bv0njx4g.js} +30 -24
  107. package/dist/_chunks/{suggestion-chip.agent-6sNWFj7m.js → suggestion-chip.agent-Brn3CiFE.js} +9 -8
  108. package/dist/_chunks/{switch-BJ6HD3Mn.js → switch-OILsBLWo.js} +25 -19
  109. package/dist/_chunks/{tabs-BIQ0ew1T.js → tabs-BxcOziCo.js} +67 -58
  110. package/dist/_chunks/{task-card.agent-CUPKYd7w.js → task-card.agent-Bt14CzUd.js} +4 -1
  111. package/dist/_chunks/{task-tray-CAncV-QQ.js → task-tray-qOEQflu4.js} +74 -57
  112. package/dist/_chunks/{text-area-BIx0tZ05.js → text-area-Bt3p7Pt0.js} +41 -34
  113. package/dist/_chunks/{text-input-BaClJL8Y.js → text-input-B-OWQ1Je.js} +15 -8
  114. package/dist/_chunks/{theme-toggle-DETmSu_h.js → theme-toggle-XB6o_lgs.js} +38 -26
  115. package/dist/_chunks/{time-picker-B5umYwfv.js → time-picker-BPlJWm8w.js} +41 -31
  116. package/dist/_chunks/{timeline-DQa5Tyz4.js → timeline-CqA4nKTI.js} +33 -25
  117. package/dist/_chunks/{toast.agent-vuLRRn2a.js → toast.agent-57UzyR9U.js} +62 -45
  118. package/dist/_chunks/{tooth-scheme-BIx1O2aJ.js → tooth-scheme-yBr53cvv.js} +421 -348
  119. package/dist/_chunks/{transcript-panel-CLHmv83g.js → transcript-panel-3THQX6nJ.js} +47 -33
  120. package/dist/_chunks/unit-converter-YEpD9evj.js +337 -0
  121. package/dist/_chunks/{use-password-requirements-DsgduV1x.js → use-password-requirements-BXvS2MBS.js} +131 -117
  122. package/dist/_chunks/users-MBVtUzwd.js +17 -0
  123. package/dist/_chunks/warning-stack-BsgaEbL8.js +283 -0
  124. package/dist/_chunks/{whatsapp-button-DUjlWGKf.js → whatsapp-button-BIy6NaJK.js} +6 -3
  125. package/dist/_chunks/{workflow-map-JAZryZJr.js → workflow-map-Bdam9pGp.js} +99 -88
  126. package/dist/agent/index.d.ts +4 -4
  127. package/dist/agent/index.js +36 -0
  128. package/dist/agent/registry.d.ts +33 -0
  129. package/dist/agent/types.d.ts +78 -2
  130. package/dist/agent-catalog.json +6905 -509
  131. package/dist/agent-i18n/en.json +1175 -0
  132. package/dist/components/accordion/index.js +1 -1
  133. package/dist/components/address-autocomplete/address-autocomplete.agent.d.ts +4 -0
  134. package/dist/components/address-autocomplete/address-autocomplete.d.ts +18 -0
  135. package/dist/components/address-autocomplete/index.d.ts +2 -1
  136. package/dist/components/address-autocomplete/index.js +3 -2
  137. package/dist/components/agenda-card/index.js +1 -1
  138. package/dist/components/agenda-tray/index.js +1 -1
  139. package/dist/components/ai-consent-banner/index.js +1 -1
  140. package/dist/components/ai-prompt-input/index.js +1 -1
  141. package/dist/components/ai-tools-rail/index.js +1 -1
  142. package/dist/components/anamnesis-card/index.js +1 -1
  143. package/dist/components/appointment-card/index.js +1 -1
  144. package/dist/components/audio-recorder/index.js +1 -1
  145. package/dist/components/autocomplete/index.js +1 -1
  146. package/dist/components/bishop-score/bishop-score.agent.d.ts +4 -0
  147. package/dist/components/bishop-score/bishop-score.d.ts +17 -1
  148. package/dist/components/bishop-score/index.js +1 -1
  149. package/dist/components/bmi-calculator/bmi-calculator.agent.d.ts +4 -0
  150. package/dist/components/bmi-calculator/bmi-calculator.d.ts +26 -0
  151. package/dist/components/bmi-calculator/index.js +1 -1
  152. package/dist/components/booking/index.js +1 -1
  153. package/dist/components/breadcrumb/index.js +1 -1
  154. package/dist/components/calculator-dialog/index.js +1 -1
  155. package/dist/components/calendar/index.js +1 -1
  156. package/dist/components/care-plan-card/index.js +1 -1
  157. package/dist/components/care-plan-entry-card/index.js +1 -1
  158. package/dist/components/carousel/index.js +1 -1
  159. package/dist/components/chart/index.js +1 -1
  160. package/dist/components/chat-container/index.js +1 -1
  161. package/dist/components/chat-input/index.js +1 -1
  162. package/dist/components/checkbox/index.js +1 -1
  163. package/dist/components/checkbox-group/index.js +1 -1
  164. package/dist/components/clinical-note-card/index.js +1 -1
  165. package/dist/components/collapsible/index.js +1 -1
  166. package/dist/components/color-picker/index.js +1 -1
  167. package/dist/components/combobox/index.js +1 -1
  168. package/dist/components/command-palette/index.js +1 -1
  169. package/dist/components/contact-profile-card/index.js +1 -1
  170. package/dist/components/copy-field/index.js +1 -1
  171. package/dist/components/counter/counter.d.ts +22 -0
  172. package/dist/components/counter/index.d.ts +3 -0
  173. package/dist/components/counter/index.js +5 -0
  174. package/dist/components/cycle-calculator/index.js +1 -1
  175. package/dist/components/data-table/index.js +31 -30
  176. package/dist/components/date-picker/index.js +1 -1
  177. package/dist/components/date-range-picker/index.js +1 -1
  178. package/dist/components/date-time-picker/index.js +1 -1
  179. package/dist/components/dependent-selector/index.js +1 -1
  180. package/dist/components/dialog/index.js +1 -1
  181. package/dist/components/document-scanner/index.js +1 -1
  182. package/dist/components/dropdown-menu/index.js +1 -1
  183. package/dist/components/due-date-calculator/index.js +1 -1
  184. package/dist/components/email-input/index.js +1 -1
  185. package/dist/components/fetal-weight/index.js +1 -1
  186. package/dist/components/file-upload/index.js +1 -1
  187. package/dist/components/fiscal-code-input/index.js +1 -1
  188. package/dist/components/freemium-paywall/freemium-paywall.d.ts +6 -0
  189. package/dist/components/freemium-paywall/index.js +1 -1
  190. package/dist/components/gestational-age-calculator/index.js +1 -1
  191. package/dist/components/hcg-doubling/index.js +1 -1
  192. package/dist/components/header-settings/index.js +1 -1
  193. package/dist/components/index.d.ts +2 -0
  194. package/dist/components/list/index.js +1 -1
  195. package/dist/components/locale-picker/index.js +1 -1
  196. package/dist/components/map-view/index.js +1 -1
  197. package/dist/components/message-card/index.js +1 -1
  198. package/dist/components/message-tray/index.js +1 -1
  199. package/dist/components/multi-select/index.js +1 -1
  200. package/dist/components/navigation-menu/index.js +1 -1
  201. package/dist/components/notification-card/index.js +1 -1
  202. package/dist/components/notification-tray/index.js +1 -1
  203. package/dist/components/number-input/index.js +1 -1
  204. package/dist/components/operator-hero/index.js +1 -1
  205. package/dist/components/otp-input/index.js +1 -1
  206. package/dist/components/pagination/index.js +1 -1
  207. package/dist/components/password-input/index.js +1 -1
  208. package/dist/components/patient-search/index.js +1 -1
  209. package/dist/components/patient-summary-card/index.js +1 -1
  210. package/dist/components/patient-table/cell-renderers/balance-badge-cell.d.ts +13 -0
  211. package/dist/components/patient-table/cell-renderers/care-plan-status-cell.d.ts +43 -0
  212. package/dist/components/patient-table/cell-renderers/contact-cell.d.ts +45 -0
  213. package/dist/components/patient-table/cell-renderers/next-appointment-cell.d.ts +24 -0
  214. package/dist/components/patient-table/cell-renderers/patient-identity-cell.d.ts +26 -0
  215. package/dist/components/patient-table/columns.d.ts +102 -0
  216. package/dist/components/patient-table/index.d.ts +24 -0
  217. package/dist/components/patient-table/index.js +13 -0
  218. package/dist/components/patient-table/patient-table.d.ts +138 -0
  219. package/dist/components/patient-table/types.d.ts +172 -0
  220. package/dist/components/patient-table/use-responsive-columns.d.ts +109 -0
  221. package/dist/components/payment-card/index.js +1 -1
  222. package/dist/components/payment-form/index.js +1 -1
  223. package/dist/components/pdf-viewer/index.js +1 -1
  224. package/dist/components/periodontal-chart-card/index.js +1 -1
  225. package/dist/components/phone-input/index.js +1 -1
  226. package/dist/components/popover/index.js +1 -1
  227. package/dist/components/practice-results/index.js +1 -1
  228. package/dist/components/pregnancy-dating/index.js +1 -1
  229. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  230. package/dist/components/privacy-lock/index.js +1 -1
  231. package/dist/components/product-hub-tray/index.js +1 -1
  232. package/dist/components/progress/index.js +1 -1
  233. package/dist/components/public-footer/index.js +1 -1
  234. package/dist/components/public-header/index.js +1 -1
  235. package/dist/components/qr-code/index.js +1 -1
  236. package/dist/components/radio-group/index.js +1 -1
  237. package/dist/components/recaptcha-widget/index.js +1 -1
  238. package/dist/components/resizable/index.js +1 -1
  239. package/dist/components/reviews-panel/index.js +1 -1
  240. package/dist/components/rich-text-editor/index.js +1 -1
  241. package/dist/components/search-bar/index.js +1 -1
  242. package/dist/components/search-input/index.js +2 -2
  243. package/dist/components/select/index.js +1 -1
  244. package/dist/components/session-countdown/index.js +1 -1
  245. package/dist/components/sheet/index.js +1 -1
  246. package/dist/components/sidebar/index.js +1 -1
  247. package/dist/components/sidebar/sidebar.d.ts +7 -0
  248. package/dist/components/sign-document/index.js +1 -1
  249. package/dist/components/signature-capture/index.js +1 -1
  250. package/dist/components/slider/index.js +1 -1
  251. package/dist/components/sparkline/index.js +1 -1
  252. package/dist/components/stepper-accordion/index.js +1 -1
  253. package/dist/components/stepper-progress/index.js +1 -1
  254. package/dist/components/suggestion-chip/index.js +1 -1
  255. package/dist/components/switch/index.js +1 -1
  256. package/dist/components/tabs/index.js +1 -1
  257. package/dist/components/task-card/index.js +1 -1
  258. package/dist/components/task-tray/index.js +1 -1
  259. package/dist/components/text-area/index.js +1 -1
  260. package/dist/components/text-input/index.js +1 -1
  261. package/dist/components/theme-toggle/index.js +1 -1
  262. package/dist/components/time-picker/index.js +1 -1
  263. package/dist/components/timeline/index.js +1 -1
  264. package/dist/components/toast/index.js +1 -1
  265. package/dist/components/tooth-scheme/index.js +1 -1
  266. package/dist/components/transcript-panel/index.js +1 -1
  267. package/dist/components/unit-converter/index.js +1 -1
  268. package/dist/components/unit-converter/unit-converter.agent.d.ts +4 -0
  269. package/dist/components/unit-converter/unit-converter.d.ts +27 -0
  270. package/dist/components/warning-stack/index.js +1 -1
  271. package/dist/components/warning-stack/warning-stack.d.ts +9 -0
  272. package/dist/components/whatsapp-button/index.d.ts +1 -1
  273. package/dist/components/whatsapp-button/index.js +3 -2
  274. package/dist/components/whatsapp-button/whatsapp-button.d.ts +3 -0
  275. package/dist/components/workflow/index.js +1 -1
  276. package/dist/i18n/locales/ar.d.ts +72 -0
  277. package/dist/i18n/locales/ar.js +73 -1
  278. package/dist/i18n/locales/de.d.ts +72 -0
  279. package/dist/i18n/locales/de.js +73 -1
  280. package/dist/i18n/locales/el.d.ts +72 -0
  281. package/dist/i18n/locales/el.js +73 -1
  282. package/dist/i18n/locales/en.d.ts +90 -0
  283. package/dist/i18n/locales/en.js +91 -1
  284. package/dist/i18n/locales/es.d.ts +72 -0
  285. package/dist/i18n/locales/es.js +73 -1
  286. package/dist/i18n/locales/fr.d.ts +72 -0
  287. package/dist/i18n/locales/fr.js +73 -1
  288. package/dist/i18n/locales/hi.d.ts +72 -0
  289. package/dist/i18n/locales/hi.js +73 -1
  290. package/dist/i18n/locales/it.d.ts +72 -0
  291. package/dist/i18n/locales/it.js +73 -1
  292. package/dist/i18n/locales/ja.d.ts +72 -0
  293. package/dist/i18n/locales/ja.js +73 -1
  294. package/dist/i18n/locales/nl.d.ts +72 -0
  295. package/dist/i18n/locales/nl.js +73 -1
  296. package/dist/i18n/locales/pl.d.ts +72 -0
  297. package/dist/i18n/locales/pl.js +73 -1
  298. package/dist/i18n/locales/pt.d.ts +72 -0
  299. package/dist/i18n/locales/pt.js +73 -1
  300. package/dist/i18n/locales/ro.d.ts +72 -0
  301. package/dist/i18n/locales/ro.js +73 -1
  302. package/dist/i18n/locales/ru.d.ts +72 -0
  303. package/dist/i18n/locales/ru.js +73 -1
  304. package/dist/i18n/locales/sq.d.ts +72 -0
  305. package/dist/i18n/locales/sq.js +73 -1
  306. package/dist/i18n/locales/sv.d.ts +72 -0
  307. package/dist/i18n/locales/sv.js +73 -1
  308. package/dist/i18n/locales/tr.d.ts +72 -0
  309. package/dist/i18n/locales/tr.js +73 -1
  310. package/dist/i18n/locales/zh.d.ts +72 -0
  311. package/dist/i18n/locales/zh.js +73 -1
  312. package/dist/index.js +688 -673
  313. package/dist/locales/ar.json +73 -1
  314. package/dist/locales/de.json +73 -1
  315. package/dist/locales/el.json +73 -1
  316. package/dist/locales/en.json +73 -1
  317. package/dist/locales/es.json +73 -1
  318. package/dist/locales/fr.json +73 -1
  319. package/dist/locales/hi.json +73 -1
  320. package/dist/locales/it.json +73 -1
  321. package/dist/locales/ja.json +73 -1
  322. package/dist/locales/nl.json +73 -1
  323. package/dist/locales/pl.json +73 -1
  324. package/dist/locales/pt.json +73 -1
  325. package/dist/locales/ro.json +73 -1
  326. package/dist/locales/ru.json +73 -1
  327. package/dist/locales/sq.json +73 -1
  328. package/dist/locales/sv.json +73 -1
  329. package/dist/locales/tr.json +73 -1
  330. package/dist/locales/zh.json +73 -1
  331. package/dist/patterns/alia-assistant/index.js +1 -1
  332. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  333. package/dist/patterns/patient-shell/index.js +1 -1
  334. package/dist/tokens.css +3 -2
  335. package/package.json +14 -1
  336. package/dist/_chunks/address-autocomplete-CT-9AOli.js +0 -358
  337. package/dist/_chunks/bishop-score-CjsB9bM-.js +0 -185
  338. package/dist/_chunks/bmi-calculator-n-823_1V.js +0 -258
  339. package/dist/_chunks/editable-currency-cell-renderer-DHOspPee.js +0 -2409
  340. package/dist/_chunks/registry-nPAVE19X.js +0 -21
  341. package/dist/_chunks/unit-converter-C1V3ACM9.js +0 -196
  342. package/dist/_chunks/warning-stack-Cv4fr5zo.js +0 -220
@@ -1,17 +1,17 @@
1
1
  import { jsx as a, jsxs as _, Fragment as we } from "react/jsx-runtime";
2
- import { forwardRef as Le, useId as Ze, useMemo as ke, useState as y, useEffect as O, useRef as E, useCallback as Q, useImperativeHandle as Ke } from "react";
2
+ import { forwardRef as Le, useId as Ze, useMemo as ke, useState as y, useEffect as T, useRef as E, useCallback as H, useImperativeHandle as Ke } from "react";
3
3
  import * as pe from "pdfjs-dist/legacy/build/pdf.min.mjs";
4
4
  import { c as X } from "./index-D2ZczOXr.js";
5
5
  import { useTranslation as me } from "react-i18next";
6
6
  import * as re from "@radix-ui/react-popover";
7
7
  import De from "pdfjs-dist/legacy/build/pdf.worker.min.mjs?url";
8
- import { S as Be } from "./spinner-hbwuKwMf.js";
8
+ import { S as qe } from "./spinner-hbwuKwMf.js";
9
9
  import { A as ze } from "./alert-_mUKLmwA.js";
10
- import { u as He } from "./registry-nPAVE19X.js";
11
- import { X as Qe } from "./x-CCcI3eJp.js";
12
- import { C as We } from "./chevron-left-CX1jqD2M.js";
13
- import { C as qe } from "./chevron-right-BrpYejk0.js";
14
- import { c as Oe } from "./createLucideIcon-CrFbzy84.js";
10
+ import { u as Be } from "./registry-DvAUVLHh.js";
11
+ import { X as He } from "./x-CCcI3eJp.js";
12
+ import { C as Qe } from "./chevron-left-CX1jqD2M.js";
13
+ import { C as We } from "./chevron-right-BrpYejk0.js";
14
+ import { c as Te } from "./createLucideIcon-CrFbzy84.js";
15
15
  import { S as Ue } from "./search-BonnQsHv.js";
16
16
  import { P as Je } from "./printer-CeVEWfQq.js";
17
17
  /**
@@ -25,7 +25,7 @@ const $e = [
25
25
  ["line", { x1: "21", x2: "16.65", y1: "21", y2: "16.65", key: "13gj7c" }],
26
26
  ["line", { x1: "11", x2: "11", y1: "8", y2: "14", key: "1vmskp" }],
27
27
  ["line", { x1: "8", x2: "14", y1: "11", y2: "11", key: "durymu" }]
28
- ], Xe = Oe("zoom-in", $e);
28
+ ], Xe = Te("zoom-in", $e);
29
29
  /**
30
30
  * @license lucide-react v1.8.0 - ISC
31
31
  *
@@ -36,14 +36,32 @@ const Ge = [
36
36
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
37
37
  ["line", { x1: "21", x2: "16.65", y1: "21", y2: "16.65", key: "13gj7c" }],
38
38
  ["line", { x1: "8", x2: "14", y1: "11", y2: "11", key: "durymu" }]
39
- ], Ye = Oe("zoom-out", Ge), et = {
39
+ ], Ye = Te("zoom-out", Ge), et = {
40
40
  id: "pdf-viewer",
41
- capabilities: ["paginate", "view_change", "filter"],
41
+ // `paginate` (go_to_page), `set_value` (zoom preset — ephemeral view state),
42
+ // `filter` (in-document search/highlight). Zoom maps to `set_value` rather
43
+ // than the old `view_change` per the agent-readiness capability vocabulary.
44
+ capabilities: ["paginate", "set_value", "filter"],
42
45
  state: {},
43
46
  actions: {
44
47
  go_to_page: {
45
48
  safety: "read",
46
49
  argsType: "{ page: number }",
50
+ argsSchema: {
51
+ type: "object",
52
+ properties: {
53
+ page: {
54
+ type: "integer",
55
+ minimum: 1,
56
+ description: "1-indexed target page."
57
+ }
58
+ },
59
+ required: ["page"]
60
+ },
61
+ idempotent: !0,
62
+ errors: ["Page is out of range for the loaded document."],
63
+ examples: [{ args: { page: 2 } }],
64
+ descriptionKey: "ui.agent.pdfViewer.actions.goToPage",
47
65
  description: "Navigate to a specific 1-indexed page.",
48
66
  invoke: (o, t) => {
49
67
  o.goToPage(t.page);
@@ -52,7 +70,23 @@ const Ge = [
52
70
  set_zoom: {
53
71
  safety: "read",
54
72
  argsType: "{ zoom: PDFZoomPreset }",
55
- description: "Apply a zoom preset.",
73
+ argsSchema: {
74
+ type: "object",
75
+ properties: {
76
+ zoom: {
77
+ description: "Either a named preset ('fit-width' | 'fit-page' | 'actual-size') or a numeric scale factor (e.g. 1.5).",
78
+ oneOf: [
79
+ { enum: ["fit-width", "fit-page", "actual-size"] },
80
+ { type: "number", exclusiveMinimum: 0 }
81
+ ]
82
+ }
83
+ },
84
+ required: ["zoom"]
85
+ },
86
+ idempotent: !0,
87
+ examples: [{ args: { zoom: "fit-width" } }, { args: { zoom: 1.5 } }],
88
+ descriptionKey: "ui.agent.pdfViewer.actions.setZoom",
89
+ description: "Apply a zoom preset or numeric scale factor.",
56
90
  invoke: (o, t) => {
57
91
  o.setZoom(t.zoom);
58
92
  }
@@ -60,6 +94,19 @@ const Ge = [
60
94
  search: {
61
95
  safety: "read",
62
96
  argsType: "{ query: string }",
97
+ argsSchema: {
98
+ type: "object",
99
+ properties: {
100
+ query: {
101
+ type: "string",
102
+ description: "Text to find and highlight in the loaded document."
103
+ }
104
+ },
105
+ required: ["query"]
106
+ },
107
+ idempotent: !0,
108
+ examples: [{ args: { query: "consent" } }],
109
+ descriptionKey: "ui.agent.pdfViewer.actions.search",
63
110
  description: "Search the document for the given query and highlight matches.",
64
111
  invoke: (o, t) => {
65
112
  o.search(t.query);
@@ -67,6 +114,7 @@ const Ge = [
67
114
  },
68
115
  print: {
69
116
  safety: "read",
117
+ descriptionKey: "ui.agent.pdfViewer.actions.print",
70
118
  description: "Open the browser print dialog for the document.",
71
119
  invoke: (o) => {
72
120
  o.print();
@@ -125,7 +173,7 @@ const Pe = X(
125
173
  "ds:forced-colors:focus-visible:outline-[CanvasText]",
126
174
  "ds:aria-disabled:opacity-[var(--opacity-50)] ds:aria-disabled:cursor-not-allowed"
127
175
  ].join(" ")
128
- ), Ie = X(
176
+ ), Me = X(
129
177
  [
130
178
  "ds:[min-block-size:var(--min-target-size)]",
131
179
  "ds:inline-size-[4rem] ds:text-center",
@@ -190,10 +238,10 @@ const Pe = X(
190
238
  function Y(o) {
191
239
  return typeof o == "number";
192
240
  }
193
- function Me(o, t, v) {
241
+ function Ie(o, t, v) {
194
242
  if (Y(o)) return o;
195
243
  if (o === "actual-size" || !v) return 1;
196
- const m = window.getComputedStyle(v), h = parseFloat(m.paddingInlineStart || "0") + parseFloat(m.paddingInlineEnd || "0"), g = parseFloat(m.paddingBlockStart || "0") + parseFloat(m.paddingBlockEnd || "0"), x = Math.max(v.clientWidth - h, 1), w = Math.max(v.clientHeight - g, 1), k = t.width, z = t.height;
244
+ const m = window.getComputedStyle(v), g = parseFloat(m.paddingInlineStart || "0") + parseFloat(m.paddingInlineEnd || "0"), h = parseFloat(m.paddingBlockStart || "0") + parseFloat(m.paddingBlockEnd || "0"), x = Math.max(v.clientWidth - g, 1), w = Math.max(v.clientHeight - h, 1), k = t.width, z = t.height;
197
245
  return o === "fit-width" ? x / k : Math.min(x / k, w / z);
198
246
  }
199
247
  const ot = Le(
@@ -202,8 +250,8 @@ const ot = Le(
202
250
  src: t,
203
251
  initialPage: v = 1,
204
252
  initialZoom: m = "fit-width",
205
- pageRotation: h,
206
- renderPageOverlay: g,
253
+ pageRotation: g,
254
+ renderPageOverlay: h,
207
255
  onPageChange: x,
208
256
  onLoadComplete: w,
209
257
  onError: k,
@@ -212,26 +260,26 @@ const ot = Le(
212
260
  ariaLabel: P,
213
261
  className: S
214
262
  }, b) => {
215
- const { t: l } = me(), I = Ze(), M = ke(
216
- () => `pdf-${I.replace(/[^a-zA-Z0-9-_]/g, "")}`,
217
- [I]
218
- ), [A, p] = y(!1), [K, W] = y(!1);
219
- O(() => {
263
+ const { t: l } = me(), M = Ze(), I = ke(
264
+ () => `pdf-${M.replace(/[^a-zA-Z0-9-_]/g, "")}`,
265
+ [M]
266
+ ), [A, p] = y(!1), [K, Q] = y(!1);
267
+ T(() => {
220
268
  if (typeof document > "u") return;
221
269
  p(document.documentElement.dir === "rtl");
222
- const e = window.matchMedia("(prefers-reduced-motion: reduce)"), r = () => W(e.matches);
270
+ const e = window.matchMedia("(prefers-reduced-motion: reduce)"), r = () => Q(e.matches);
223
271
  return r(), e.addEventListener("change", r), () => e.removeEventListener("change", r);
224
272
  }, []);
225
- const [s, q] = y(null), [i, N] = y(null), [u, R] = y(v), [C, D] = y(m), [Z, B] = y({ start: Math.max(1, v - 1), end: v + 1 }), [U, T] = y(""), [n, f] = y(!1), [ee, he] = y(""), [Re, Te] = y({ current: 0, total: 0 }), ne = E(x), ae = E(w), se = E(k);
226
- O(() => {
273
+ const [s, W] = y(null), [i, N] = y(null), [u, O] = y(v), [C, D] = y(m), [Z, q] = y({ start: Math.max(1, v - 1), end: v + 1 }), [U, R] = y(""), [n, f] = y(!1), [ee, ge] = y(""), [Oe, Re] = y({ current: 0, total: 0 }), ne = E(x), ae = E(w), se = E(k);
274
+ T(() => {
227
275
  ne.current = x, ae.current = w, se.current = k;
228
276
  }, [x, w, k]);
229
277
  const ce = E(null);
230
- O(() => {
278
+ T(() => {
231
279
  ce.current = s;
232
- }, [s]), O(() => {
280
+ }, [s]), T(() => {
233
281
  let e = !1;
234
- q(null), N(null);
282
+ W(null), N(null);
235
283
  const r = {
236
284
  disableJavaScript: !0,
237
285
  isEvalSupported: !1
@@ -244,8 +292,8 @@ const ot = Le(
244
292
  if (e) return;
245
293
  let j;
246
294
  try {
247
- const $ = await d.getMetadata(), V = $ == null ? void 0 : $.info;
248
- j = V == null ? void 0 : V.Title;
295
+ const $ = await d.getMetadata(), F = $ == null ? void 0 : $.info;
296
+ j = F == null ? void 0 : F.Title;
249
297
  } catch {
250
298
  j = void 0;
251
299
  }
@@ -256,14 +304,14 @@ const ot = Le(
256
304
  }
257
305
  return;
258
306
  }
259
- const H = { doc: d, numPages: d.numPages, title: j };
260
- q(H), (J = ae.current) == null || J.call(ae, { numPages: d.numPages, title: j });
307
+ const B = { doc: d, numPages: d.numPages, title: j };
308
+ W(B), (J = ae.current) == null || J.call(ae, { numPages: d.numPages, title: j });
261
309
  },
262
310
  (d) => {
263
- var H;
311
+ var B;
264
312
  if (e) return;
265
313
  const j = d instanceof Error ? d : new Error(String(d));
266
- N(j), (H = se.current) == null || H.call(se, j);
314
+ N(j), (B = se.current) == null || B.call(se, j);
267
315
  }
268
316
  ), () => {
269
317
  e = !0, c.destroy();
@@ -276,17 +324,17 @@ const ot = Le(
276
324
  ce.current = null;
277
325
  }
278
326
  };
279
- }, [t]), O(() => {
327
+ }, [t]), T(() => {
280
328
  var e;
281
- s && (T(
329
+ s && (R(
282
330
  l("pdf.pageOf", { current: u, total: s.numPages })
283
331
  ), (e = ne.current) == null || e.call(ne, u));
284
332
  }, [u, s, l]);
285
- const oe = E(null), le = E([]), F = Q(
333
+ const oe = E(null), le = E([]), V = H(
286
334
  (e) => {
287
335
  if (!s) return;
288
336
  const r = Math.max(1, Math.min(e, s.numPages));
289
- R(r);
337
+ O(r);
290
338
  const c = le.current[r - 1];
291
339
  c && c.scrollIntoView({
292
340
  behavior: "auto",
@@ -294,40 +342,40 @@ const ot = Le(
294
342
  });
295
343
  },
296
344
  [s, K]
297
- ), ge = Q((e) => {
345
+ ), he = H((e) => {
298
346
  D(e);
299
- }, []), te = Q(() => {
347
+ }, []), te = H(() => {
300
348
  typeof window < "u" && window.print();
301
- }, []), ve = Q((e) => {
302
- he(e), f(e.length > 0);
349
+ }, []), ve = H((e) => {
350
+ ge(e), f(e.length > 0);
303
351
  }, []), ue = ke(
304
352
  () => ({
305
- goToPage: F,
306
- setZoom: ge,
353
+ goToPage: V,
354
+ setZoom: he,
307
355
  search: ve,
308
356
  print: te
309
357
  }),
310
- [F, ge, ve, te]
358
+ [V, he, ve, te]
311
359
  );
312
- Ke(b, () => ue, [ue]), He(et, ue, o);
313
- const Ae = Q(
360
+ Ke(b, () => ue, [ue]), Be(et, ue, o);
361
+ const Ae = H(
314
362
  (e) => {
315
363
  if (!s) return;
316
364
  const r = e.metaKey || e.ctrlKey;
317
365
  if (e.key === "PageDown") {
318
- e.preventDefault(), F(u + 1);
366
+ e.preventDefault(), V(u + 1);
319
367
  return;
320
368
  }
321
369
  if (e.key === "PageUp") {
322
- e.preventDefault(), F(u - 1);
370
+ e.preventDefault(), V(u - 1);
323
371
  return;
324
372
  }
325
373
  if (e.key === "Home") {
326
- e.preventDefault(), F(1);
374
+ e.preventDefault(), V(1);
327
375
  return;
328
376
  }
329
377
  if (e.key === "End") {
330
- e.preventDefault(), F(s.numPages);
378
+ e.preventDefault(), V(s.numPages);
331
379
  return;
332
380
  }
333
381
  if (r && e.key.toLowerCase() === "f") {
@@ -350,26 +398,26 @@ const ot = Le(
350
398
  }
351
399
  r && e.key.toLowerCase() === "p" && (e.preventDefault(), te());
352
400
  },
353
- [u, F, te, s]
401
+ [u, V, te, s]
354
402
  ), fe = E(u);
355
- O(() => {
403
+ T(() => {
356
404
  fe.current = u;
357
- }, [u]), O(() => {
405
+ }, [u]), T(() => {
358
406
  if (!s) return;
359
407
  const e = oe.current;
360
408
  if (!e) return;
361
409
  const r = /* @__PURE__ */ new Map(), c = new IntersectionObserver(
362
410
  (d) => {
363
- for (const V of d) {
364
- const G = V.target.dataset.pageNumber;
411
+ for (const F of d) {
412
+ const G = F.target.dataset.pageNumber;
365
413
  if (!G) continue;
366
414
  const _e = Number(G);
367
- r.set(_e, V.intersectionRatio);
415
+ r.set(_e, F.intersectionRatio);
368
416
  }
369
- let j = fe.current, H = 0, J = 1 / 0, $ = -1 / 0;
370
- for (const [V, G] of r.entries())
371
- G > H && (j = V, H = G), G > 0 && (J = Math.min(J, V), $ = Math.max($, V));
372
- H > 0 && j !== fe.current && R(j), J !== 1 / 0 && B({
417
+ let j = fe.current, B = 0, J = 1 / 0, $ = -1 / 0;
418
+ for (const [F, G] of r.entries())
419
+ G > B && (j = F, B = G), G > 0 && (J = Math.min(J, F), $ = Math.max($, F));
420
+ B > 0 && j !== fe.current && O(j), J !== 1 / 0 && q({
373
421
  start: Math.max(1, J - 1),
374
422
  end: Math.min(s.numPages, $ + 1)
375
423
  });
@@ -380,24 +428,24 @@ const ot = Le(
380
428
  d && c.observe(d);
381
429
  }), () => c.disconnect();
382
430
  }, [s]);
383
- const [je, Fe] = y(0);
384
- O(() => {
431
+ const [je, Ve] = y(0);
432
+ T(() => {
385
433
  const e = oe.current;
386
434
  if (!e || typeof ResizeObserver > "u") return;
387
435
  const r = new ResizeObserver(() => {
388
- (C === "fit-width" || C === "fit-page") && Fe((c) => c + 1);
436
+ (C === "fit-width" || C === "fit-page") && Ve((c) => c + 1);
389
437
  });
390
438
  return r.observe(e), () => r.disconnect();
391
439
  }, [C]);
392
- const be = E([]), [ie, ye] = y(0), Ve = Q(
440
+ const be = E([]), [ie, ye] = y(0), Fe = H(
393
441
  (e) => (r) => {
394
442
  be.current[e] = r;
395
443
  },
396
444
  []
397
- ), xe = Q((e) => {
445
+ ), xe = H((e) => {
398
446
  const r = be.current[e];
399
447
  r && r.focus();
400
- }, []), de = L === "minimal" ? 2 : 8, Ee = Q(
448
+ }, []), de = L === "minimal" ? 2 : 8, Ee = H(
401
449
  (e) => {
402
450
  const r = A ? "ArrowLeft" : "ArrowRight", c = A ? "ArrowRight" : "ArrowLeft";
403
451
  let d = null;
@@ -421,7 +469,7 @@ const ot = Le(
421
469
  /* @__PURE__ */ _(
422
470
  "div",
423
471
  {
424
- id: M,
472
+ id: I,
425
473
  role: "region",
426
474
  "aria-label": P ?? l("pdf.toolbarLabel"),
427
475
  className: [Pe(), S].filter(Boolean).join(" "),
@@ -439,9 +487,9 @@ const ot = Le(
439
487
  currentPage: u,
440
488
  numPages: (s == null ? void 0 : s.numPages) ?? 0,
441
489
  zoom: C,
442
- onPrev: () => F(u - 1),
443
- onNext: () => F(u + 1),
444
- onJump: (e) => F(e),
490
+ onPrev: () => V(u - 1),
491
+ onNext: () => V(u + 1),
492
+ onJump: (e) => V(e),
445
493
  onZoomIn: () => {
446
494
  D(
447
495
  (e) => Y(e) ? Math.min(e * 1.25, 4) : 1.25
@@ -459,10 +507,10 @@ const ot = Le(
459
507
  onSearchOpenChange: f,
460
508
  searchQuery: ee,
461
509
  onSearchQueryChange: (e) => {
462
- he(e);
510
+ ge(e);
463
511
  },
464
- searchMatches: Re,
465
- register: Ve,
512
+ searchMatches: Oe,
513
+ register: Fe,
466
514
  focusIndex: ie,
467
515
  setFocusIndex: ye,
468
516
  onToolbarKeyDown: Ee,
@@ -486,8 +534,8 @@ const ot = Le(
486
534
  totalPages: s.numPages,
487
535
  doc: s.doc,
488
536
  zoom: C,
489
- pageRotation: h,
490
- renderPageOverlay: g,
537
+ pageRotation: g,
538
+ renderPageOverlay: h,
491
539
  container: oe.current,
492
540
  resizeTick: je,
493
541
  shouldRender: e >= Z.start && e <= Z.end,
@@ -496,7 +544,7 @@ const ot = Le(
496
544
  },
497
545
  searchQuery: ee,
498
546
  onMatchCount: (r) => {
499
- Te((c) => r === 0 && c.total === 0 ? c : {
547
+ Re((c) => r === 0 && c.total === 0 ? c : {
500
548
  current: Math.min(c.current || 1, r || 1),
501
549
  total: Math.max(c.total, r)
502
550
  });
@@ -505,7 +553,7 @@ const ot = Le(
505
553
  e
506
554
  )
507
555
  ) : /* @__PURE__ */ _("div", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)] ds:text-[var(--muted-foreground)] ds:p-[var(--spacing-lg)]", children: [
508
- /* @__PURE__ */ a(Be, { variant: "pulse", size: "sm", label: l("pdf.loading") }),
556
+ /* @__PURE__ */ a(qe, { variant: "pulse", size: "sm", label: l("pdf.loading") }),
509
557
  /* @__PURE__ */ a("span", { children: l("pdf.loading") })
510
558
  ] })
511
559
  }
@@ -521,8 +569,8 @@ function it(o) {
521
569
  const { t } = me(), {
522
570
  variant: v,
523
571
  currentPage: m,
524
- numPages: h,
525
- zoom: g,
572
+ numPages: g,
573
+ zoom: h,
526
574
  onPrev: x,
527
575
  onNext: w,
528
576
  onJump: k,
@@ -532,32 +580,32 @@ function it(o) {
532
580
  onOpenSearch: S,
533
581
  onPrint: b,
534
582
  searchOpen: l,
535
- onSearchOpenChange: I,
536
- searchQuery: M,
583
+ onSearchOpenChange: M,
584
+ searchQuery: I,
537
585
  onSearchQueryChange: A,
538
586
  searchMatches: p,
539
587
  register: K,
540
- focusIndex: W,
588
+ focusIndex: Q,
541
589
  setFocusIndex: s,
542
- onToolbarKeyDown: q
543
- } = o, i = v === "minimal", N = i ? 0 : 3, u = i ? 1 : 4, R = 5, [C, D] = y(String(m));
544
- O(() => {
590
+ onToolbarKeyDown: W
591
+ } = o, i = v === "minimal", N = i ? 0 : 3, u = i ? 1 : 4, O = 5, [C, D] = y(String(m));
592
+ T(() => {
545
593
  D(String(m));
546
594
  }, [m]);
547
- const Z = m <= 1, B = m >= h;
595
+ const Z = m <= 1, q = m >= g;
548
596
  function U() {
549
597
  const n = Number(C);
550
- Number.isFinite(n) && n >= 1 ? k(Math.min(n, h)) : D(String(m));
598
+ Number.isFinite(n) && n >= 1 ? k(Math.min(n, g)) : D(String(m));
551
599
  }
552
- function T(n) {
600
+ function R(n) {
553
601
  return /* @__PURE__ */ a(
554
602
  "button",
555
603
  {
556
604
  type: "button",
557
605
  ref: K(n.index),
558
- tabIndex: n.index === W ? 0 : -1,
606
+ tabIndex: n.index === Q ? 0 : -1,
559
607
  onFocus: () => s(n.index),
560
- onKeyDown: q,
608
+ onKeyDown: W,
561
609
  "aria-label": n.label,
562
610
  "aria-disabled": n.disabled || void 0,
563
611
  title: n.label,
@@ -581,26 +629,26 @@ function it(o) {
581
629
  className: tt(),
582
630
  children: [
583
631
  !i && /* @__PURE__ */ _(we, { children: [
584
- T({
632
+ R({
585
633
  index: 0,
586
634
  label: t("pdf.previousPage"),
587
635
  disabled: Z,
588
636
  onActivate: x,
589
637
  icon: /* @__PURE__ */ a(
590
- We,
638
+ Qe,
591
639
  {
592
640
  "aria-hidden": "true",
593
641
  className: "ds:block-size-4 ds:inline-size-4 ds:rtl:rotate-180"
594
642
  }
595
643
  )
596
644
  }),
597
- T({
645
+ R({
598
646
  index: 1,
599
647
  label: t("pdf.nextPage"),
600
- disabled: B,
648
+ disabled: q,
601
649
  onActivate: w,
602
650
  icon: /* @__PURE__ */ a(
603
- qe,
651
+ We,
604
652
  {
605
653
  "aria-hidden": "true",
606
654
  className: "ds:block-size-4 ds:inline-size-4 ds:rtl:rotate-180"
@@ -612,7 +660,7 @@ function it(o) {
612
660
  {
613
661
  type: "number",
614
662
  min: 1,
615
- max: Math.max(h, 1),
663
+ max: Math.max(g, 1),
616
664
  value: C,
617
665
  onChange: (n) => D(n.target.value),
618
666
  onKeyDown: (n) => {
@@ -621,9 +669,9 @@ function it(o) {
621
669
  onBlur: U,
622
670
  onFocus: () => s(2),
623
671
  ref: K(2),
624
- tabIndex: W === 2 ? 0 : -1,
672
+ tabIndex: Q === 2 ? 0 : -1,
625
673
  "aria-label": t("pdf.currentPageInput"),
626
- className: Ie()
674
+ className: Me()
627
675
  }
628
676
  ),
629
677
  /* @__PURE__ */ a(
@@ -631,7 +679,7 @@ function it(o) {
631
679
  {
632
680
  "aria-hidden": "true",
633
681
  className: "type-body-sm ds:text-[var(--muted-foreground)]",
634
- children: t("pdf.pageOf", { current: m, total: h || 0 })
682
+ children: t("pdf.pageOf", { current: m, total: g || 0 })
635
683
  }
636
684
  ),
637
685
  /* @__PURE__ */ a(
@@ -642,7 +690,7 @@ function it(o) {
642
690
  }
643
691
  )
644
692
  ] }),
645
- T({
693
+ R({
646
694
  index: N,
647
695
  label: t("pdf.zoom.out"),
648
696
  onActivate: L,
@@ -654,7 +702,7 @@ function it(o) {
654
702
  }
655
703
  )
656
704
  }),
657
- T({
705
+ R({
658
706
  index: u,
659
707
  label: t("pdf.zoom.in"),
660
708
  onActivate: z,
@@ -670,7 +718,7 @@ function it(o) {
670
718
  "select",
671
719
  {
672
720
  "aria-label": t("pdf.zoom.preset"),
673
- value: typeof g == "number" ? String(g) : g,
721
+ value: typeof h == "number" ? String(h) : h,
674
722
  onChange: (n) => {
675
723
  const f = n.target.value;
676
724
  if (f === "fit-width" || f === "fit-page" || f === "actual-size")
@@ -680,10 +728,10 @@ function it(o) {
680
728
  Number.isFinite(ee) && P(ee);
681
729
  }
682
730
  },
683
- ref: K(R),
684
- tabIndex: W === R ? 0 : -1,
685
- onFocus: () => s(R),
686
- onKeyDown: q,
731
+ ref: K(O),
732
+ tabIndex: Q === O ? 0 : -1,
733
+ onFocus: () => s(O),
734
+ onKeyDown: W,
687
735
  className: rt(),
688
736
  children: [
689
737
  /* @__PURE__ */ a("option", { value: "fit-width", children: t("pdf.zoom.fitWidth") }),
@@ -698,9 +746,9 @@ function it(o) {
698
746
  re.Root,
699
747
  {
700
748
  open: l,
701
- onOpenChange: I,
749
+ onOpenChange: M,
702
750
  children: [
703
- /* @__PURE__ */ a(re.Trigger, { asChild: !0, children: T({
751
+ /* @__PURE__ */ a(re.Trigger, { asChild: !0, children: R({
704
752
  index: 6,
705
753
  label: t("pdf.search.open"),
706
754
  onActivate: S,
@@ -730,11 +778,11 @@ function it(o) {
730
778
  {
731
779
  type: "search",
732
780
  autoFocus: !0,
733
- value: M,
781
+ value: I,
734
782
  onChange: (n) => A(n.target.value),
735
783
  placeholder: t("pdf.search.placeholder"),
736
784
  "aria-label": t("pdf.search.placeholder"),
737
- className: Ie({
785
+ className: Me({
738
786
  className: "ds:inline-size-[16rem] ds:text-start"
739
787
  })
740
788
  }
@@ -747,7 +795,7 @@ function it(o) {
747
795
  children: p.total > 0 ? t("pdf.search.countOfTotal", {
748
796
  current: p.current,
749
797
  total: p.total
750
- }) : M ? t("pdf.search.noResults") : ""
798
+ }) : I ? t("pdf.search.noResults") : ""
751
799
  }
752
800
  ),
753
801
  /* @__PURE__ */ a(re.Close, { asChild: !0, children: /* @__PURE__ */ a(
@@ -757,7 +805,7 @@ function it(o) {
757
805
  "aria-label": t("pdf.search.close"),
758
806
  className: Se(),
759
807
  children: /* @__PURE__ */ a(
760
- Qe,
808
+ He,
761
809
  {
762
810
  "aria-hidden": "true",
763
811
  className: "ds:block-size-4 ds:inline-size-4"
@@ -771,7 +819,7 @@ function it(o) {
771
819
  ]
772
820
  }
773
821
  ),
774
- T({
822
+ R({
775
823
  index: 7,
776
824
  label: t("pdf.print"),
777
825
  onActivate: b,
@@ -793,8 +841,8 @@ function dt(o) {
793
841
  pageNumber: t,
794
842
  totalPages: v,
795
843
  doc: m,
796
- zoom: h,
797
- pageRotation: g,
844
+ zoom: g,
845
+ pageRotation: h,
798
846
  renderPageOverlay: x,
799
847
  container: w,
800
848
  resizeTick: k,
@@ -802,56 +850,56 @@ function dt(o) {
802
850
  registerRef: L,
803
851
  searchQuery: P,
804
852
  onMatchCount: S
805
- } = o, { t: b } = me(), l = E(null), I = E(null), [M, A] = y({
853
+ } = o, { t: b } = me(), l = E(null), M = E(null), [I, A] = y({
806
854
  width: 612,
807
855
  height: 792
808
856
  }), [p, K] = y(null);
809
- O(() => {
857
+ T(() => {
810
858
  let i = !1;
811
859
  return m.getPage(t).then((N) => {
812
860
  i || K(N);
813
861
  }), () => {
814
862
  i = !0;
815
863
  };
816
- }, [m, t]), O(() => {
864
+ }, [m, t]), T(() => {
817
865
  if (!p) return;
818
- const i = (C) => g === void 0 ? { scale: C } : { scale: C, rotation: g }, N = p.getViewport(i(1)), u = Me(h, N, w), R = p.getViewport(i(u));
866
+ const i = (C) => h === void 0 ? { scale: C } : { scale: C, rotation: h }, N = p.getViewport(i(1)), u = Ie(g, N, w), O = p.getViewport(i(u));
819
867
  A({
820
- width: Math.floor(R.width),
821
- height: Math.floor(R.height)
868
+ width: Math.floor(O.width),
869
+ height: Math.floor(O.height)
822
870
  });
823
- }, [p, h, w, k, g]);
824
- const W = g ?? (p == null ? void 0 : p.rotate) ?? 0;
825
- O(() => {
871
+ }, [p, g, w, k, h]);
872
+ const Q = h ?? (p == null ? void 0 : p.rotate) ?? 0;
873
+ T(() => {
826
874
  if (!p || !z) {
827
875
  const f = l.current;
828
876
  f && !z && (f.width = 0);
829
877
  return;
830
878
  }
831
- const i = l.current, N = I.current;
879
+ const i = l.current, N = M.current;
832
880
  if (!i) return;
833
881
  const u = i.getContext("2d");
834
882
  if (!u) return;
835
- const R = (f) => g === void 0 ? { scale: f } : { scale: f, rotation: g }, C = p.getViewport(R(1)), D = Me(h, C, w), Z = p.getViewport(R(D)), B = Math.max(1, window.devicePixelRatio || 1);
836
- i.width = Math.floor(Z.width * B), i.height = Math.floor(Z.height * B), u.setTransform(B, 0, 0, B, 0, 0);
883
+ const O = (f) => h === void 0 ? { scale: f } : { scale: f, rotation: h }, C = p.getViewport(O(1)), D = Ie(g, C, w), Z = p.getViewport(O(D)), q = Math.max(1, window.devicePixelRatio || 1);
884
+ i.width = Math.floor(Z.width * q), i.height = Math.floor(Z.height * q), u.setTransform(q, 0, 0, q, 0, 0);
837
885
  const U = p.render({
838
886
  canvas: i,
839
887
  canvasContext: u,
840
888
  viewport: Z
841
889
  });
842
- let T = !1, n = null;
890
+ let R = !1, n = null;
843
891
  return U.promise.then(async () => {
844
- if (T || !N) return;
892
+ if (R || !N) return;
845
893
  N.textContent = "";
846
894
  const f = await p.getTextContent();
847
- T || (n = new pe.TextLayer({
895
+ R || (n = new pe.TextLayer({
848
896
  textContentSource: f,
849
897
  container: N,
850
898
  viewport: Z
851
899
  }), await n.render(), Ce(N, P, S));
852
900
  }).catch(() => {
853
901
  }), () => {
854
- T = !0;
902
+ R = !0;
855
903
  try {
856
904
  U.cancel();
857
905
  } catch {
@@ -865,23 +913,23 @@ function dt(o) {
865
913
  }, [
866
914
  p,
867
915
  z,
868
- h,
916
+ g,
869
917
  w,
870
918
  k,
871
919
  P,
872
920
  S,
873
- g
874
- ]), O(() => {
921
+ h
922
+ ]), T(() => {
875
923
  if (!z) return;
876
- const i = I.current;
924
+ const i = M.current;
877
925
  i && Ce(i, P, S);
878
926
  }, [P, z, S]);
879
927
  const s = {
880
- width: M.width,
881
- height: M.height
882
- }, q = {
883
- width: M.width,
884
- height: M.height
928
+ width: I.width,
929
+ height: I.height
930
+ }, W = {
931
+ width: I.width,
932
+ height: I.height
885
933
  };
886
934
  return /* @__PURE__ */ _(
887
935
  "article",
@@ -892,13 +940,13 @@ function dt(o) {
892
940
  "data-page-number": t,
893
941
  "aria-label": b("pdf.pageOf", { current: t, total: v }),
894
942
  className: at(),
895
- style: q,
943
+ style: W,
896
944
  children: [
897
945
  /* @__PURE__ */ a("canvas", { ref: l, style: s }),
898
946
  /* @__PURE__ */ a(
899
947
  "div",
900
948
  {
901
- ref: I,
949
+ ref: M,
902
950
  "aria-hidden": "false",
903
951
  className: [
904
952
  "ds:absolute ds:inset-0",
@@ -922,9 +970,9 @@ function dt(o) {
922
970
  "data-page-number": t,
923
971
  children: x({
924
972
  pageNumber: t,
925
- pageWidthCss: M.width,
926
- pageHeightCss: M.height,
927
- rotation: W
973
+ pageWidthCss: I.width,
974
+ pageHeightCss: I.height,
975
+ rotation: Q
928
976
  })
929
977
  }
930
978
  ) : null
@@ -942,14 +990,14 @@ function Ce(o, t, v) {
942
990
  v(0);
943
991
  return;
944
992
  }
945
- const h = Ne(t);
946
- if (!h) {
993
+ const g = Ne(t);
994
+ if (!g) {
947
995
  v(0);
948
996
  return;
949
997
  }
950
- const g = Array.from(o.querySelectorAll("span")), x = [], w = [];
998
+ const h = Array.from(o.querySelectorAll("span")), x = [], w = [];
951
999
  let k = 0;
952
- for (const b of g) {
1000
+ for (const b of h) {
953
1001
  const l = Ne(b.textContent ?? "");
954
1002
  x.push({ start: k, end: k + l.length }), w.push(l), k += l.length;
955
1003
  }
@@ -957,23 +1005,23 @@ function Ce(o, t, v) {
957
1005
  let L = 0;
958
1006
  const P = /* @__PURE__ */ new Set();
959
1007
  let S = 0;
960
- for (; S <= z.length - h.length; ) {
961
- const b = z.indexOf(h, S);
1008
+ for (; S <= z.length - g.length; ) {
1009
+ const b = z.indexOf(g, S);
962
1010
  if (b === -1) break;
963
1011
  L += 1;
964
- const l = b + h.length;
965
- for (let I = 0; I < x.length; I++) {
966
- const { start: M, end: A } = x[I];
967
- M < l && A > b && P.add(I);
1012
+ const l = b + g.length;
1013
+ for (let M = 0; M < x.length; M++) {
1014
+ const { start: I, end: A } = x[M];
1015
+ I < l && A > b && P.add(M);
968
1016
  }
969
1017
  S = l;
970
1018
  }
971
1019
  P.forEach((b) => {
972
- g[b].setAttribute("data-match", "true");
1020
+ h[b].setAttribute("data-match", "true");
973
1021
  }), v(L);
974
1022
  }
975
1023
  export {
976
1024
  ot as P,
977
1025
  et as p
978
1026
  };
979
- //# sourceMappingURL=pdf-viewer-GsfNqeeT.js.map
1027
+ //# sourceMappingURL=pdf-viewer-D6BPfW2D.js.map