@alfadocs/ui-kit-debug 1.56.0 → 1.57.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 (357) hide show
  1. package/dist/_chunks/{ai-credits-notice-BoNJtOuE.js → ai-credits-notice-ktklr8fy.js} +2 -2
  2. package/dist/_chunks/{ai-credits-notice-BoNJtOuE.js.map → ai-credits-notice-ktklr8fy.js.map} +1 -1
  3. package/dist/_chunks/ai-permission-notice-DyuEGwAt.js +206 -0
  4. package/dist/_chunks/ai-permission-notice-DyuEGwAt.js.map +1 -0
  5. package/dist/_chunks/alia-sidebar-BBKBJCv6.js +1284 -0
  6. package/dist/_chunks/alia-sidebar-BBKBJCv6.js.map +1 -0
  7. package/dist/_chunks/{anamnesis-summary-rows-CQ-XGr0T.js → anamnesis-summary-rows-CCQ62mMN.js} +4 -4
  8. package/dist/_chunks/{anamnesis-summary-rows-CQ-XGr0T.js.map → anamnesis-summary-rows-CCQ62mMN.js.map} +1 -1
  9. package/dist/_chunks/{appointment-peek-BIZaDeCi.js → appointment-peek-WvNbE4JG.js} +2 -2
  10. package/dist/_chunks/{appointment-peek-BIZaDeCi.js.map → appointment-peek-WvNbE4JG.js.map} +1 -1
  11. package/dist/_chunks/{appointment-timeline-DmqYEIT9.js → appointment-timeline-Z0494xO-.js} +2 -2
  12. package/dist/_chunks/{appointment-timeline-DmqYEIT9.js.map → appointment-timeline-Z0494xO-.js.map} +1 -1
  13. package/dist/_chunks/{balance-badge-cell-DmDcXw0c.js → balance-badge-cell-CII3SDmR.js} +3 -3
  14. package/dist/_chunks/{balance-badge-cell-DmDcXw0c.js.map → balance-badge-cell-CII3SDmR.js.map} +1 -1
  15. package/dist/_chunks/{booking-WyNGKPE2.js → booking-81WnKDsH.js} +3 -3
  16. package/dist/_chunks/{booking-WyNGKPE2.js.map → booking-81WnKDsH.js.map} +1 -1
  17. package/dist/_chunks/{calculator-dialog-pCPWta7h.js → calculator-dialog-CzQv03p0.js} +2 -2
  18. package/dist/_chunks/{calculator-dialog-pCPWta7h.js.map → calculator-dialog-CzQv03p0.js.map} +1 -1
  19. package/dist/_chunks/{calendar-workspace-Du2ryaI-.js → calendar-workspace-D5-k_9zE.js} +13 -13
  20. package/dist/_chunks/{calendar-workspace-Du2ryaI-.js.map → calendar-workspace-D5-k_9zE.js.map} +1 -1
  21. package/dist/_chunks/{care-plan-card-Ddjh5Doc.js → care-plan-card-DxrRLRdW.js} +2 -2
  22. package/dist/_chunks/{care-plan-card-Ddjh5Doc.js.map → care-plan-card-DxrRLRdW.js.map} +1 -1
  23. package/dist/_chunks/{care-plan-header-DUX_SVvF.js → care-plan-header-BMwZIgHJ.js} +2 -2
  24. package/dist/_chunks/{care-plan-header-DUX_SVvF.js.map → care-plan-header-BMwZIgHJ.js.map} +1 -1
  25. package/dist/_chunks/{chart-HsF1KHbx.js → chart-DQ5GxqgT.js} +347 -350
  26. package/dist/_chunks/chart-DQ5GxqgT.js.map +1 -0
  27. package/dist/_chunks/{clinical-note-card-14JIoUR0.js → clinical-note-card-hx939bvw.js} +2 -2
  28. package/dist/_chunks/{clinical-note-card-14JIoUR0.js.map → clinical-note-card-hx939bvw.js.map} +1 -1
  29. package/dist/_chunks/{color-picker-BRQ4Y9SO.js → color-picker-BsggJovx.js} +128 -123
  30. package/dist/_chunks/color-picker-BsggJovx.js.map +1 -0
  31. package/dist/_chunks/{contact-card-CmK05vNb.js → contact-card-fHBMwEsx.js} +2 -2
  32. package/dist/_chunks/{contact-card-CmK05vNb.js.map → contact-card-fHBMwEsx.js.map} +1 -1
  33. package/dist/_chunks/{contact-profile-card-Ci8lBQ6a.js → contact-profile-card-CMyBYgRR.js} +2 -2
  34. package/dist/_chunks/{contact-profile-card-Ci8lBQ6a.js.map → contact-profile-card-CMyBYgRR.js.map} +1 -1
  35. package/dist/_chunks/{cycle-calculator-Dgfqr4Q4.js → cycle-calculator-Cww9DzIa.js} +2 -2
  36. package/dist/_chunks/{cycle-calculator-Dgfqr4Q4.js.map → cycle-calculator-Cww9DzIa.js.map} +1 -1
  37. package/dist/_chunks/{data-table-D8fuhqO1.js → data-table-fAMTeAjM.js} +2 -2
  38. package/dist/_chunks/{data-table-D8fuhqO1.js.map → data-table-fAMTeAjM.js.map} +1 -1
  39. package/dist/_chunks/{data-table-tabs-Xhg5G0gU.js → data-table-tabs-CHYAAeHy.js} +2 -2
  40. package/dist/_chunks/{data-table-tabs-Xhg5G0gU.js.map → data-table-tabs-CHYAAeHy.js.map} +1 -1
  41. package/dist/_chunks/{date-picker-wRAcq2lt.js → date-picker-BSZuKo13.js} +69 -62
  42. package/dist/_chunks/date-picker-BSZuKo13.js.map +1 -0
  43. package/dist/_chunks/{date-range-picker-CtUOI38x.js → date-range-picker-CFk-5O3R.js} +176 -171
  44. package/dist/_chunks/date-range-picker-CFk-5O3R.js.map +1 -0
  45. package/dist/_chunks/{date-time-picker-CLeLKuv9.js → date-time-picker-CjxTkblD.js} +92 -85
  46. package/dist/_chunks/date-time-picker-CjxTkblD.js.map +1 -0
  47. package/dist/_chunks/{dialog-CUzbnKLw.js → dialog-Dn-iQ0Jp.js} +2 -2
  48. package/dist/_chunks/{dialog-CUzbnKLw.js.map → dialog-Dn-iQ0Jp.js.map} +1 -1
  49. package/dist/_chunks/{document-preview-uoTekVR7.js → document-preview-CHGGG0l_.js} +2 -2
  50. package/dist/_chunks/{document-preview-uoTekVR7.js.map → document-preview-CHGGG0l_.js.map} +1 -1
  51. package/dist/_chunks/{due-date-calculator-CSjklbyw.js → due-date-calculator-D_qFUiHp.js} +2 -2
  52. package/dist/_chunks/{due-date-calculator-CSjklbyw.js.map → due-date-calculator-D_qFUiHp.js.map} +1 -1
  53. package/dist/_chunks/{entity-summary-DcB0fIiv.js → entity-summary-CWcCSThK.js} +2 -2
  54. package/dist/_chunks/{entity-summary-DcB0fIiv.js.map → entity-summary-CWcCSThK.js.map} +1 -1
  55. package/dist/_chunks/{file-manager-Cc_uO8r2.js → file-manager-CFsL1KVt.js} +3 -3
  56. package/dist/_chunks/{file-manager-Cc_uO8r2.js.map → file-manager-CFsL1KVt.js.map} +1 -1
  57. package/dist/_chunks/{gestational-age-calculator-DqVeJke2.js → gestational-age-calculator-CZi43xKG.js} +2 -2
  58. package/dist/_chunks/{gestational-age-calculator-DqVeJke2.js.map → gestational-age-calculator-CZi43xKG.js.map} +1 -1
  59. package/dist/_chunks/{hcg-doubling-BIYyI2Yo.js → hcg-doubling-Ccvh7OaU.js} +2 -2
  60. package/dist/_chunks/{hcg-doubling-BIYyI2Yo.js.map → hcg-doubling-Ccvh7OaU.js.map} +1 -1
  61. package/dist/_chunks/{header-settings-ge_3gYEq.js → header-settings-BMcCx2LC.js} +2 -2
  62. package/dist/_chunks/{header-settings-ge_3gYEq.js.map → header-settings-BMcCx2LC.js.map} +1 -1
  63. package/dist/_chunks/{heatmap-Gf9r7Tn1.js → heatmap-BEeOThkW.js} +2 -2
  64. package/dist/_chunks/{heatmap-Gf9r7Tn1.js.map → heatmap-BEeOThkW.js.map} +1 -1
  65. package/dist/_chunks/{help-me-write-templates-fV-Apf72.js → help-me-write-templates-BUoYGo6f.js} +2 -2
  66. package/dist/_chunks/{help-me-write-templates-fV-Apf72.js.map → help-me-write-templates-BUoYGo6f.js.map} +1 -1
  67. package/dist/_chunks/{hover-card-BnTueNS2.js → hover-card-U_ZYoh1n.js} +201 -187
  68. package/dist/_chunks/hover-card-U_ZYoh1n.js.map +1 -0
  69. package/dist/_chunks/{icon-picker-DWrqmI1c.js → icon-picker-C86lQTIA.js} +2 -2
  70. package/dist/_chunks/{icon-picker-DWrqmI1c.js.map → icon-picker-C86lQTIA.js.map} +1 -1
  71. package/dist/_chunks/{info-tip-B0jmIt6M.js → info-tip-CJpNpzZe.js} +2 -2
  72. package/dist/_chunks/{info-tip-B0jmIt6M.js.map → info-tip-CJpNpzZe.js.map} +1 -1
  73. package/dist/_chunks/{kit-extensions-Byfxy6sy.js → kit-extensions-DYVxWcqv.js} +4 -4
  74. package/dist/_chunks/{kit-extensions-Byfxy6sy.js.map → kit-extensions-DYVxWcqv.js.map} +1 -1
  75. package/dist/_chunks/{link-cell-renderer-TeJNvymP.js → link-cell-renderer-CxW_oLa5.js} +2 -2
  76. package/dist/_chunks/{link-cell-renderer-TeJNvymP.js.map → link-cell-renderer-CxW_oLa5.js.map} +1 -1
  77. package/dist/_chunks/link-gRw3NtOt.js +137 -0
  78. package/dist/_chunks/link-gRw3NtOt.js.map +1 -0
  79. package/dist/_chunks/{locale-picker-DfNSdOpy.js → locale-picker-BGfrZyTw.js} +2 -2
  80. package/dist/_chunks/{locale-picker-DfNSdOpy.js.map → locale-picker-BGfrZyTw.js.map} +1 -1
  81. package/dist/_chunks/{marketplace-app-shell-Dcx-JEjg.js → marketplace-app-shell-BZcA9Z06.js} +143 -129
  82. package/dist/_chunks/marketplace-app-shell-BZcA9Z06.js.map +1 -0
  83. package/dist/_chunks/{message-tray-BB95DA82.js → message-tray-QKQutwxj.js} +76 -69
  84. package/dist/_chunks/message-tray-QKQutwxj.js.map +1 -0
  85. package/dist/_chunks/{nav-grid-BqCPH8sm.js → nav-grid-Byx8PxuB.js} +2 -2
  86. package/dist/_chunks/{nav-grid-BqCPH8sm.js.map → nav-grid-Byx8PxuB.js.map} +1 -1
  87. package/dist/_chunks/non-modal-tab-exit-j3CPOuE3.js +89 -0
  88. package/dist/_chunks/non-modal-tab-exit-j3CPOuE3.js.map +1 -0
  89. package/dist/_chunks/{note-attachment-I1NLoeRZ.js → note-attachment-Bt2cddsZ.js} +2 -2
  90. package/dist/_chunks/{note-attachment-I1NLoeRZ.js.map → note-attachment-Bt2cddsZ.js.map} +1 -1
  91. package/dist/_chunks/{note-timeline-CsY8YOE7.js → note-timeline-CX9nAgAR.js} +2 -2
  92. package/dist/_chunks/{note-timeline-CsY8YOE7.js.map → note-timeline-CX9nAgAR.js.map} +1 -1
  93. package/dist/_chunks/{notes-panel-DceRhthG.js → notes-panel-Cm4pttpl.js} +4 -4
  94. package/dist/_chunks/{notes-panel-DceRhthG.js.map → notes-panel-Cm4pttpl.js.map} +1 -1
  95. package/dist/_chunks/{notification-tray-__sJXnsz.js → notification-tray-C5VtbGjd.js} +83 -76
  96. package/dist/_chunks/notification-tray-C5VtbGjd.js.map +1 -0
  97. package/dist/_chunks/{patient-details-DsTtjpuX.js → patient-details-99kEdtc5.js} +2 -2
  98. package/dist/_chunks/{patient-details-DsTtjpuX.js.map → patient-details-99kEdtc5.js.map} +1 -1
  99. package/dist/_chunks/{patient-field-row-BvZ9luz-.js → patient-field-row-DkxY13T6.js} +5 -5
  100. package/dist/_chunks/{patient-field-row-BvZ9luz-.js.map → patient-field-row-DkxY13T6.js.map} +1 -1
  101. package/dist/_chunks/{patient-summary-card-9nQWTQf6.js → patient-summary-card-opdyfeW2.js} +4 -4
  102. package/dist/_chunks/{patient-summary-card-9nQWTQf6.js.map → patient-summary-card-opdyfeW2.js.map} +1 -1
  103. package/dist/_chunks/{payment-request-card-CwDpwXUC.js → payment-request-card-DAniJNLX.js} +2 -2
  104. package/dist/_chunks/{payment-request-card-CwDpwXUC.js.map → payment-request-card-DAniJNLX.js.map} +1 -1
  105. package/dist/_chunks/{pdf-viewer-C3minW5b.js → pdf-viewer-CNQxa4tv.js} +396 -391
  106. package/dist/_chunks/pdf-viewer-CNQxa4tv.js.map +1 -0
  107. package/dist/_chunks/{phone-input-DxkHMYmu.js → phone-input-O9camxkq.js} +156 -151
  108. package/dist/_chunks/phone-input-O9camxkq.js.map +1 -0
  109. package/dist/_chunks/popover-BG75rYjN.js +367 -0
  110. package/dist/_chunks/popover-BG75rYjN.js.map +1 -0
  111. package/dist/_chunks/{practice-results-Dhbo-fc_.js → practice-results-CfRkjzsI.js} +2 -2
  112. package/dist/_chunks/{practice-results-Dhbo-fc_.js.map → practice-results-CfRkjzsI.js.map} +1 -1
  113. package/dist/_chunks/{pregnancy-dating-Bfu0Cq4H.js → pregnancy-dating-BFzv9g1N.js} +2 -2
  114. package/dist/_chunks/{pregnancy-dating-Bfu0Cq4H.js.map → pregnancy-dating-BFzv9g1N.js.map} +1 -1
  115. package/dist/_chunks/{product-hub-panel-BSSiGGG4.js → product-hub-panel-DlVRK7Ue.js} +103 -96
  116. package/dist/_chunks/product-hub-panel-DlVRK7Ue.js.map +1 -0
  117. package/dist/_chunks/{public-footer-CxpG6J1M.js → public-footer-ZWTEG1Rq.js} +2 -2
  118. package/dist/_chunks/{public-footer-CxpG6J1M.js.map → public-footer-ZWTEG1Rq.js.map} +1 -1
  119. package/dist/_chunks/{public-header.agent-pr2hyiND.js → public-header.agent-BctevbuY.js} +2 -2
  120. package/dist/_chunks/{public-header.agent-pr2hyiND.js.map → public-header.agent-BctevbuY.js.map} +1 -1
  121. package/dist/_chunks/{radiograph-panel.agent-DkUokbEa.js → radiograph-panel.agent-DyqbTECc.js} +4 -4
  122. package/dist/_chunks/{radiograph-panel.agent-DkUokbEa.js.map → radiograph-panel.agent-DyqbTECc.js.map} +1 -1
  123. package/dist/_chunks/{registration-form-D7iNqMBF.js → registration-form-BlTzYywa.js} +2 -2
  124. package/dist/_chunks/{registration-form-D7iNqMBF.js.map → registration-form-BlTzYywa.js.map} +1 -1
  125. package/dist/_chunks/{rich-text-editor-CkFfmA3v.js → rich-text-editor-DTnNZ4Ff.js} +489 -484
  126. package/dist/_chunks/rich-text-editor-DTnNZ4Ff.js.map +1 -0
  127. package/dist/_chunks/{sheet-C7SwIxwB.js → sheet-8qsiMoUI.js} +2 -2
  128. package/dist/_chunks/{sheet-C7SwIxwB.js.map → sheet-8qsiMoUI.js.map} +1 -1
  129. package/dist/_chunks/{sign-document-B6HlyCGV.js → sign-document-D4iHS_Ug.js} +2 -2
  130. package/dist/_chunks/{sign-document-B6HlyCGV.js.map → sign-document-D4iHS_Ug.js.map} +1 -1
  131. package/dist/_chunks/{signature-request-DhbpB9N9.js → signature-request-DRuYAG5I.js} +2 -2
  132. package/dist/_chunks/{signature-request-DhbpB9N9.js.map → signature-request-DRuYAG5I.js.map} +1 -1
  133. package/dist/_chunks/{signed-out-frame-B2GTIeqA.js → signed-out-frame-AhMsNW1r.js} +2 -2
  134. package/dist/_chunks/{signed-out-frame-B2GTIeqA.js.map → signed-out-frame-AhMsNW1r.js.map} +1 -1
  135. package/dist/_chunks/{task-editor-ByyRu29Y.js → task-editor-NkcopDna.js} +3 -3
  136. package/dist/_chunks/{task-editor-ByyRu29Y.js.map → task-editor-NkcopDna.js.map} +1 -1
  137. package/dist/_chunks/{use-appointment-details-read-JsDM48tf.js → use-appointment-details-read-CfFQNOF_.js} +5 -5
  138. package/dist/_chunks/{use-appointment-details-read-JsDM48tf.js.map → use-appointment-details-read-CfFQNOF_.js.map} +1 -1
  139. package/dist/_chunks/{voice-control-panel-Bg1eklL0.js → voice-control-panel-BKbgb7FM.js} +2 -2
  140. package/dist/_chunks/{voice-control-panel-Bg1eklL0.js.map → voice-control-panel-BKbgb7FM.js.map} +1 -1
  141. package/dist/_chunks/{widget-picker-DXYBMTfe.js → widget-picker-rBA7MR5P.js} +2 -2
  142. package/dist/_chunks/{widget-picker-DXYBMTfe.js.map → widget-picker-rBA7MR5P.js.map} +1 -1
  143. package/dist/agent-catalog.json +2 -2
  144. package/dist/components/_shared/non-modal-tab-exit.d.ts +15 -4
  145. package/dist/components/_shared/non-modal-tab-exit.d.ts.map +1 -1
  146. package/dist/components/ai-credits-notice/index.js +1 -1
  147. package/dist/components/ai-permission-notice/ai-permission-notice.d.ts +32 -0
  148. package/dist/components/ai-permission-notice/ai-permission-notice.d.ts.map +1 -1
  149. package/dist/components/ai-permission-notice/index.d.ts +1 -1
  150. package/dist/components/ai-permission-notice/index.d.ts.map +1 -1
  151. package/dist/components/ai-permission-notice/index.js +1 -1
  152. package/dist/components/appointment-details-panel/index.js +1 -1
  153. package/dist/components/appointment-peek/index.js +1 -1
  154. package/dist/components/appointment-timeline/index.js +1 -1
  155. package/dist/components/booking/index.js +1 -1
  156. package/dist/components/calculator-dialog/index.js +1 -1
  157. package/dist/components/care-plan-card/index.js +1 -1
  158. package/dist/components/care-plan-header/index.js +1 -1
  159. package/dist/components/chart/chart.d.ts +5 -5
  160. package/dist/components/chart/chart.d.ts.map +1 -1
  161. package/dist/components/chart/index.js +1 -1
  162. package/dist/components/clinical-note-card/index.js +1 -1
  163. package/dist/components/color-picker/color-picker.d.ts.map +1 -1
  164. package/dist/components/color-picker/index.js +1 -1
  165. package/dist/components/contact-card/index.js +1 -1
  166. package/dist/components/contact-profile-card/index.js +1 -1
  167. package/dist/components/cycle-calculator/index.js +1 -1
  168. package/dist/components/data-table/index.js +2 -2
  169. package/dist/components/data-table-tabs/index.js +1 -1
  170. package/dist/components/date-picker/date-picker.d.ts.map +1 -1
  171. package/dist/components/date-picker/index.js +1 -1
  172. package/dist/components/date-range-picker/date-range-picker.d.ts.map +1 -1
  173. package/dist/components/date-range-picker/index.js +1 -1
  174. package/dist/components/date-time-picker/date-time-picker.d.ts.map +1 -1
  175. package/dist/components/date-time-picker/index.js +1 -1
  176. package/dist/components/dialog/index.js +1 -1
  177. package/dist/components/document-preview/index.js +1 -1
  178. package/dist/components/due-date-calculator/index.js +1 -1
  179. package/dist/components/entity-summary/index.js +1 -1
  180. package/dist/components/file-manager/index.js +1 -1
  181. package/dist/components/gestational-age-calculator/index.js +1 -1
  182. package/dist/components/hcg-doubling/index.js +1 -1
  183. package/dist/components/header-settings/index.js +1 -1
  184. package/dist/components/heatmap/index.js +1 -1
  185. package/dist/components/hover-card/hover-card.d.ts.map +1 -1
  186. package/dist/components/hover-card/index.js +1 -1
  187. package/dist/components/icon-picker/index.js +1 -1
  188. package/dist/components/info-tip/index.js +1 -1
  189. package/dist/components/link/index.js +1 -1
  190. package/dist/components/link/link.d.ts +5 -3
  191. package/dist/components/link/link.d.ts.map +1 -1
  192. package/dist/components/locale-picker/index.js +1 -1
  193. package/dist/components/message-tray/index.js +1 -1
  194. package/dist/components/message-tray/message-tray.d.ts.map +1 -1
  195. package/dist/components/nav-grid/index.js +1 -1
  196. package/dist/components/note-timeline/index.js +1 -1
  197. package/dist/components/notes-panel/index.js +1 -1
  198. package/dist/components/notification-tray/index.js +1 -1
  199. package/dist/components/notification-tray/notification-tray.d.ts.map +1 -1
  200. package/dist/components/patient-details/index.js +1 -1
  201. package/dist/components/patient-summary-card/index.js +1 -1
  202. package/dist/components/patient-table/index.js +1 -1
  203. package/dist/components/payment-card/index.js +1 -1
  204. package/dist/components/pdf-viewer/index.js +1 -1
  205. package/dist/components/pdf-viewer/pdf-viewer.d.ts.map +1 -1
  206. package/dist/components/phone-input/index.js +1 -1
  207. package/dist/components/phone-input/phone-input.d.ts.map +1 -1
  208. package/dist/components/popover/index.js +1 -1
  209. package/dist/components/popover/popover.d.ts +1 -1
  210. package/dist/components/popover/popover.d.ts.map +1 -1
  211. package/dist/components/practice-results/index.js +1 -1
  212. package/dist/components/pregnancy-dating/index.js +1 -1
  213. package/dist/components/product-hub-tray/index.js +1 -1
  214. package/dist/components/product-hub-tray/product-hub-tray.d.ts.map +1 -1
  215. package/dist/components/public-footer/index.js +1 -1
  216. package/dist/components/public-header/index.js +1 -1
  217. package/dist/components/radiograph-panel/index.js +1 -1
  218. package/dist/components/rich-text-editor/editor-toolbar.d.ts.map +1 -1
  219. package/dist/components/rich-text-editor/index.js +2 -2
  220. package/dist/components/sheet/index.js +1 -1
  221. package/dist/components/sign-document/index.js +1 -1
  222. package/dist/components/task-editor/index.js +1 -1
  223. package/dist/components/voice-control-panel/index.js +1 -1
  224. package/dist/components/widget-picker/index.js +1 -1
  225. package/dist/i18n/locales/ar.d.ts +14 -0
  226. package/dist/i18n/locales/ar.d.ts.map +1 -1
  227. package/dist/i18n/locales/ar.js +15 -1
  228. package/dist/i18n/locales/ar.js.map +1 -1
  229. package/dist/i18n/locales/de.d.ts +14 -0
  230. package/dist/i18n/locales/de.d.ts.map +1 -1
  231. package/dist/i18n/locales/de.js +15 -1
  232. package/dist/i18n/locales/de.js.map +1 -1
  233. package/dist/i18n/locales/el.d.ts +14 -0
  234. package/dist/i18n/locales/el.d.ts.map +1 -1
  235. package/dist/i18n/locales/el.js +15 -1
  236. package/dist/i18n/locales/el.js.map +1 -1
  237. package/dist/i18n/locales/en.d.ts +14 -0
  238. package/dist/i18n/locales/en.d.ts.map +1 -1
  239. package/dist/i18n/locales/en.js +15 -1
  240. package/dist/i18n/locales/en.js.map +1 -1
  241. package/dist/i18n/locales/es.d.ts +14 -0
  242. package/dist/i18n/locales/es.d.ts.map +1 -1
  243. package/dist/i18n/locales/es.js +15 -1
  244. package/dist/i18n/locales/es.js.map +1 -1
  245. package/dist/i18n/locales/fr.d.ts +14 -0
  246. package/dist/i18n/locales/fr.d.ts.map +1 -1
  247. package/dist/i18n/locales/fr.js +15 -1
  248. package/dist/i18n/locales/fr.js.map +1 -1
  249. package/dist/i18n/locales/hi.d.ts +14 -0
  250. package/dist/i18n/locales/hi.d.ts.map +1 -1
  251. package/dist/i18n/locales/hi.js +15 -1
  252. package/dist/i18n/locales/hi.js.map +1 -1
  253. package/dist/i18n/locales/it.d.ts +14 -0
  254. package/dist/i18n/locales/it.d.ts.map +1 -1
  255. package/dist/i18n/locales/it.js +15 -1
  256. package/dist/i18n/locales/it.js.map +1 -1
  257. package/dist/i18n/locales/ja.d.ts +14 -0
  258. package/dist/i18n/locales/ja.d.ts.map +1 -1
  259. package/dist/i18n/locales/ja.js +15 -1
  260. package/dist/i18n/locales/ja.js.map +1 -1
  261. package/dist/i18n/locales/nl.d.ts +14 -0
  262. package/dist/i18n/locales/nl.d.ts.map +1 -1
  263. package/dist/i18n/locales/nl.js +15 -1
  264. package/dist/i18n/locales/nl.js.map +1 -1
  265. package/dist/i18n/locales/pl.d.ts +14 -0
  266. package/dist/i18n/locales/pl.d.ts.map +1 -1
  267. package/dist/i18n/locales/pl.js +15 -1
  268. package/dist/i18n/locales/pl.js.map +1 -1
  269. package/dist/i18n/locales/pt.d.ts +14 -0
  270. package/dist/i18n/locales/pt.d.ts.map +1 -1
  271. package/dist/i18n/locales/pt.js +15 -1
  272. package/dist/i18n/locales/pt.js.map +1 -1
  273. package/dist/i18n/locales/ro.d.ts +14 -0
  274. package/dist/i18n/locales/ro.d.ts.map +1 -1
  275. package/dist/i18n/locales/ro.js +15 -1
  276. package/dist/i18n/locales/ro.js.map +1 -1
  277. package/dist/i18n/locales/ru.d.ts +14 -0
  278. package/dist/i18n/locales/ru.d.ts.map +1 -1
  279. package/dist/i18n/locales/ru.js +15 -1
  280. package/dist/i18n/locales/ru.js.map +1 -1
  281. package/dist/i18n/locales/sq.d.ts +14 -0
  282. package/dist/i18n/locales/sq.d.ts.map +1 -1
  283. package/dist/i18n/locales/sq.js +15 -1
  284. package/dist/i18n/locales/sq.js.map +1 -1
  285. package/dist/i18n/locales/sv.d.ts +14 -0
  286. package/dist/i18n/locales/sv.d.ts.map +1 -1
  287. package/dist/i18n/locales/sv.js +15 -1
  288. package/dist/i18n/locales/sv.js.map +1 -1
  289. package/dist/i18n/locales/tr.d.ts +14 -0
  290. package/dist/i18n/locales/tr.d.ts.map +1 -1
  291. package/dist/i18n/locales/tr.js +15 -1
  292. package/dist/i18n/locales/tr.js.map +1 -1
  293. package/dist/i18n/locales/zh.d.ts +14 -0
  294. package/dist/i18n/locales/zh.d.ts.map +1 -1
  295. package/dist/i18n/locales/zh.js +15 -1
  296. package/dist/i18n/locales/zh.js.map +1 -1
  297. package/dist/index.js +194 -193
  298. package/dist/locales/ar.json +15 -1
  299. package/dist/locales/de.json +15 -1
  300. package/dist/locales/el.json +15 -1
  301. package/dist/locales/en.json +15 -1
  302. package/dist/locales/es.json +15 -1
  303. package/dist/locales/fr.json +15 -1
  304. package/dist/locales/hi.json +15 -1
  305. package/dist/locales/it.json +15 -1
  306. package/dist/locales/ja.json +15 -1
  307. package/dist/locales/nl.json +15 -1
  308. package/dist/locales/pl.json +15 -1
  309. package/dist/locales/pt.json +15 -1
  310. package/dist/locales/ro.json +15 -1
  311. package/dist/locales/ru.json +15 -1
  312. package/dist/locales/sq.json +15 -1
  313. package/dist/locales/sv.json +15 -1
  314. package/dist/locales/tr.json +15 -1
  315. package/dist/locales/zh.json +15 -1
  316. package/dist/patterns/alia-assistant/alia-asteroid-icon.d.ts +10 -13
  317. package/dist/patterns/alia-assistant/alia-asteroid-icon.d.ts.map +1 -1
  318. package/dist/patterns/alia-assistant/alia-chat-surface.d.ts.map +1 -1
  319. package/dist/patterns/alia-assistant/alia-popout.d.ts +5 -3
  320. package/dist/patterns/alia-assistant/alia-popout.d.ts.map +1 -1
  321. package/dist/patterns/alia-assistant/index.d.ts +2 -0
  322. package/dist/patterns/alia-assistant/index.d.ts.map +1 -1
  323. package/dist/patterns/alia-assistant/index.js +6 -5
  324. package/dist/patterns/anamnesis/index.js +1 -1
  325. package/dist/patterns/calendar/index.js +1 -1
  326. package/dist/patterns/help-me-write-templates/index.js +1 -1
  327. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  328. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +7 -2
  329. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts.map +1 -1
  330. package/dist/patterns/registration-form/index.js +1 -1
  331. package/dist/patterns/signature-request/index.js +1 -1
  332. package/dist/patterns/signed-out-frame/index.js +1 -1
  333. package/dist/tokens.css +1 -1
  334. package/package.json +1 -1
  335. package/dist/_chunks/ai-permission-notice-5vpblPCx.js +0 -171
  336. package/dist/_chunks/ai-permission-notice-5vpblPCx.js.map +0 -1
  337. package/dist/_chunks/alia-sidebar-DOei4Iyu.js +0 -1183
  338. package/dist/_chunks/alia-sidebar-DOei4Iyu.js.map +0 -1
  339. package/dist/_chunks/chart-HsF1KHbx.js.map +0 -1
  340. package/dist/_chunks/color-picker-BRQ4Y9SO.js.map +0 -1
  341. package/dist/_chunks/date-picker-wRAcq2lt.js.map +0 -1
  342. package/dist/_chunks/date-range-picker-CtUOI38x.js.map +0 -1
  343. package/dist/_chunks/date-time-picker-CLeLKuv9.js.map +0 -1
  344. package/dist/_chunks/hover-card-BnTueNS2.js.map +0 -1
  345. package/dist/_chunks/link-2HokYuIi.js +0 -130
  346. package/dist/_chunks/link-2HokYuIi.js.map +0 -1
  347. package/dist/_chunks/marketplace-app-shell-Dcx-JEjg.js.map +0 -1
  348. package/dist/_chunks/message-tray-BB95DA82.js.map +0 -1
  349. package/dist/_chunks/non-modal-tab-exit-D2Bd93Bq.js +0 -65
  350. package/dist/_chunks/non-modal-tab-exit-D2Bd93Bq.js.map +0 -1
  351. package/dist/_chunks/notification-tray-__sJXnsz.js.map +0 -1
  352. package/dist/_chunks/pdf-viewer-C3minW5b.js.map +0 -1
  353. package/dist/_chunks/phone-input-DxkHMYmu.js.map +0 -1
  354. package/dist/_chunks/popover-BI3oV3eY.js +0 -305
  355. package/dist/_chunks/popover-BI3oV3eY.js.map +0 -1
  356. package/dist/_chunks/product-hub-panel-BSSiGGG4.js.map +0 -1
  357. package/dist/_chunks/rich-text-editor-CkFfmA3v.js.map +0 -1
@@ -1,20 +1,21 @@
1
- import { jsx as s, jsxs as K, Fragment as ke } from "react/jsx-runtime";
2
- import { forwardRef as Ze, useId as _e, useMemo as Pe, useState as y, useEffect as T, useRef as j, useCallback as H, useImperativeHandle as Le } from "react";
3
- import * as ge from "pdfjs-dist/legacy/build/pdf.min.mjs";
1
+ import { jsx as o, jsxs as K, Fragment as ke } from "react/jsx-runtime";
2
+ import { forwardRef as Ze, useId as _e, useMemo as Pe, useState as b, useEffect as R, useRef as V, useCallback as W, useImperativeHandle as Le } from "react";
3
+ import * as he from "pdfjs-dist/legacy/build/pdf.min.mjs";
4
4
  import { c as $ } from "./index-D2ZczOXr.js";
5
- import { useTranslation as he } from "react-i18next";
5
+ import { useTranslation as me } from "react-i18next";
6
6
  import * as ae from "@radix-ui/react-popover";
7
+ import { u as qe, f as Be } from "./non-modal-tab-exit-j3CPOuE3.js";
7
8
  import De from "pdfjs-dist/legacy/build/pdf.worker.min.mjs?url";
8
- import { S as qe } from "./spinner-CoflYlEx.js";
9
+ import { S as He } from "./spinner-CoflYlEx.js";
9
10
  import { A as Ce } from "./alert-BhCstf2h.js";
10
- import { u as Be } from "./registry-DvAUVLHh.js";
11
- import { X as He } from "./x-B5YnXwCz.js";
12
- import { C as We } from "./chevron-left-B8cOyH-V.js";
13
- import { C as Qe } from "./chevron-right-I9AeSxH2.js";
14
- import { Z as Ue, a as Je } from "./zoom-out-Dnif4kJx.js";
15
- import { S as Xe } from "./search-QbWPlY5f.js";
16
- import { P as $e } from "./printer-rkK0T1gi.js";
17
- const Ge = {
11
+ import { u as We } from "./registry-DvAUVLHh.js";
12
+ import { X as Qe } from "./x-B5YnXwCz.js";
13
+ import { C as Ue } from "./chevron-left-B8cOyH-V.js";
14
+ import { C as Je } from "./chevron-right-I9AeSxH2.js";
15
+ import { Z as Xe, a as $e } from "./zoom-out-Dnif4kJx.js";
16
+ import { S as Ge } from "./search-QbWPlY5f.js";
17
+ import { P as Ye } from "./printer-rkK0T1gi.js";
18
+ const et = {
18
19
  id: "pdf-viewer",
19
20
  // `paginate` (go_to_page), `set_value` (zoom preset — ephemeral view state),
20
21
  // `filter` (in-document search/highlight). Zoom maps to `set_value` rather
@@ -149,7 +150,7 @@ const Ge = {
149
150
  }
150
151
  }
151
152
  };
152
- ge.GlobalWorkerOptions.workerSrc = De;
153
+ he.GlobalWorkerOptions.workerSrc = De;
153
154
  const Se = $(
154
155
  [
155
156
  "ds:pdf-viewer-alfadocs ds:flex ds:flex-col",
@@ -167,7 +168,7 @@ const Se = $(
167
168
  "ds:focus-visible:outline-[var(--ring)]",
168
169
  "ds:forced-colors:focus-visible:outline-[CanvasText]"
169
170
  ].join(" ")
170
- ), Ye = $(
171
+ ), tt = $(
171
172
  [
172
173
  "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
173
174
  "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
@@ -204,7 +205,7 @@ const Se = $(
204
205
  "ds:focus-visible:outline-[var(--ring)]",
205
206
  "ds:forced-colors:focus-visible:outline-[CanvasText]"
206
207
  ].join(" ")
207
- ), et = $(
208
+ ), rt = $(
208
209
  [
209
210
  "ds:[min-block-size:var(--min-target-size)]",
210
211
  "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
@@ -215,7 +216,7 @@ const Se = $(
215
216
  "ds:focus-visible:outline-[var(--ring)]",
216
217
  "ds:forced-colors:focus-visible:outline-[CanvasText]"
217
218
  ].join(" ")
218
- ), tt = $(
219
+ ), nt = $(
219
220
  [
220
221
  "ds:relative ds:flex ds:flex-col ds:items-center",
221
222
  "ds:gap-[var(--spacing-md)]",
@@ -236,14 +237,14 @@ const Se = $(
236
237
  "ds:min-h-[30rem]",
237
238
  "ds:max-h-[80vh]"
238
239
  ].join(" ")
239
- ), rt = $(
240
+ ), at = $(
240
241
  [
241
242
  "ds:relative ds:flex ds:items-center ds:justify-center",
242
243
  "ds:bg-[var(--background)]",
243
244
  "ds:shadow-[var(--shadow-md)]",
244
245
  "ds:rounded-[var(--radius-sm)]"
245
246
  ].join(" ")
246
- ), at = [
247
+ ), ot = [
247
248
  "fit-width",
248
249
  "fit-page",
249
250
  "actual-size",
@@ -254,67 +255,67 @@ const Se = $(
254
255
  1.5,
255
256
  2
256
257
  ];
257
- function ee(a) {
258
+ function te(a) {
258
259
  return typeof a == "number";
259
260
  }
260
- function Ie(a, t, v) {
261
- if (ee(a)) return a;
262
- if (a === "actual-size" || !v) return 1;
263
- const g = window.getComputedStyle(v), h = parseFloat(g.paddingInlineStart || "0") + parseFloat(g.paddingInlineEnd || "0"), m = parseFloat(g.paddingBlockStart || "0") + parseFloat(g.paddingBlockEnd || "0"), w = Math.max(v.clientWidth - h, 1), x = Math.max(v.clientHeight - m, 1), z = t.width, k = t.height;
264
- return a === "fit-width" ? w / z : Math.min(w / z, x / k);
261
+ function Te(a, t, m) {
262
+ if (te(a)) return a;
263
+ if (a === "actual-size" || !m) return 1;
264
+ const f = window.getComputedStyle(m), g = parseFloat(f.paddingInlineStart || "0") + parseFloat(f.paddingInlineEnd || "0"), h = parseFloat(f.paddingBlockStart || "0") + parseFloat(f.paddingBlockEnd || "0"), y = Math.max(m.clientWidth - g, 1), w = Math.max(m.clientHeight - h, 1), x = t.width, z = t.height;
265
+ return a === "fit-width" ? y / x : Math.min(y / x, w / z);
265
266
  }
266
- const nt = Ze(
267
+ const st = Ze(
267
268
  ({
268
269
  id: a,
269
270
  src: t,
270
- initialPage: v = 1,
271
- initialZoom: g = "fit-width",
272
- pageRotation: h,
273
- renderPageOverlay: m,
274
- onPageChange: w,
275
- onLoadComplete: x,
276
- onError: z,
277
- toolbar: k = !0,
271
+ initialPage: m = 1,
272
+ initialZoom: f = "fit-width",
273
+ pageRotation: g,
274
+ renderPageOverlay: h,
275
+ onPageChange: y,
276
+ onLoadComplete: w,
277
+ onError: x,
278
+ toolbar: z = !0,
278
279
  toolbarVariant: Z = "full",
279
280
  ariaLabel: C,
280
281
  className: S
281
- }, b) => {
282
- const { t: u } = he("ui"), M = _e(), N = Pe(
283
- () => `pdf-${M.replace(/[^a-zA-Z0-9-_]/g, "")}`,
284
- [M]
285
- ), [O, f] = y(!1), [L, W] = y(!1);
286
- T(() => {
282
+ }, v) => {
283
+ const { t: u } = me("ui"), P = _e(), M = Pe(
284
+ () => `pdf-${P.replace(/[^a-zA-Z0-9-_]/g, "")}`,
285
+ [P]
286
+ ), [A, p] = b(!1), [L, Q] = b(!1);
287
+ R(() => {
287
288
  if (typeof document > "u") return;
288
- f(document.documentElement.dir === "rtl");
289
- const e = window.matchMedia("(prefers-reduced-motion: reduce)"), r = () => W(e.matches);
290
- return r(), e.addEventListener("change", r), () => e.removeEventListener("change", r);
289
+ p(document.documentElement.dir === "rtl");
290
+ const e = window.matchMedia("(prefers-reduced-motion: reduce)"), n = () => Q(e.matches);
291
+ return n(), e.addEventListener("change", n), () => e.removeEventListener("change", n);
291
292
  }, []);
292
- const [o, Q] = y(null), [i, I] = y(null), [l, D] = y(v), [P, R] = y(g), [_, q] = y({ start: Math.max(1, v - 1), end: v + 1 }), [U, A] = y(""), [n, p] = y(!1), [te, me] = y(""), [ve, Ae] = y({ current: 0, total: 0 }), ne = j(w), se = j(x), oe = j(z);
293
- T(() => {
294
- ne.current = w, se.current = x, oe.current = z;
295
- }, [w, x, z]);
296
- const le = j(null);
297
- T(() => {
298
- le.current = o;
299
- }, [o]), T(() => {
293
+ const [s, U] = b(null), [i, N] = b(null), [l, D] = b(m), [k, T] = b(f), [_, q] = b({ start: Math.max(1, m - 1), end: m + 1 }), [G, B] = b(""), [I, r] = b(!1), [j, re] = b(""), [ve, Ae] = b({ current: 0, total: 0 }), oe = V(y), se = V(w), ie = V(x);
294
+ R(() => {
295
+ oe.current = y, se.current = w, ie.current = x;
296
+ }, [y, w, x]);
297
+ const ue = V(null);
298
+ R(() => {
299
+ ue.current = s;
300
+ }, [s]), R(() => {
300
301
  let e = !1;
301
- Q(null), I(null);
302
- const r = {
302
+ U(null), N(null);
303
+ const n = {
303
304
  disableJavaScript: !0,
304
305
  isEvalSupported: !1
305
- }, c = ge.getDocument(
306
- typeof t == "string" ? { url: t, ...r } : t instanceof Uint8Array ? { data: t, ...r } : { data: new Uint8Array(t), ...r }
306
+ }, c = he.getDocument(
307
+ typeof t == "string" ? { url: t, ...n } : t instanceof Uint8Array ? { data: t, ...n } : { data: new Uint8Array(t), ...n }
307
308
  );
308
309
  return c.promise.then(
309
310
  async (d) => {
310
311
  var J;
311
312
  if (e) return;
312
- let V;
313
+ let O;
313
314
  try {
314
315
  const X = await d.getMetadata(), E = X == null ? void 0 : X.info;
315
- V = E == null ? void 0 : E.Title;
316
+ O = E == null ? void 0 : E.Title;
316
317
  } catch {
317
- V = void 0;
318
+ O = void 0;
318
319
  }
319
320
  if (e) {
320
321
  try {
@@ -323,83 +324,83 @@ const nt = Ze(
323
324
  }
324
325
  return;
325
326
  }
326
- const B = { doc: d, numPages: d.numPages, title: V };
327
- Q(B), (J = se.current) == null || J.call(se, { numPages: d.numPages, title: V });
327
+ const H = { doc: d, numPages: d.numPages, title: O };
328
+ U(H), (J = se.current) == null || J.call(se, { numPages: d.numPages, title: O });
328
329
  },
329
330
  (d) => {
330
- var B;
331
+ var H;
331
332
  if (e) return;
332
- const V = d instanceof Error ? d : new Error(String(d));
333
- I(V), (B = oe.current) == null || B.call(oe, V);
333
+ const O = d instanceof Error ? d : new Error(String(d));
334
+ N(O), (H = ie.current) == null || H.call(ie, O);
334
335
  }
335
336
  ), () => {
336
337
  e = !0, c.destroy();
337
- const d = le.current;
338
+ const d = ue.current;
338
339
  if (d) {
339
340
  try {
340
341
  d.doc.destroy();
341
342
  } catch {
342
343
  }
343
- le.current = null;
344
+ ue.current = null;
344
345
  }
345
346
  };
346
- }, [t]), T(() => {
347
+ }, [t]), R(() => {
347
348
  var e;
348
- o && (A(
349
- u("pdf.pageOf", { current: l, total: o.numPages })
350
- ), (e = ne.current) == null || e.call(ne, l));
351
- }, [l, o, u]);
352
- const ie = j(null), ue = j([]), F = H(
349
+ s && (B(
350
+ u("pdf.pageOf", { current: l, total: s.numPages })
351
+ ), (e = oe.current) == null || e.call(oe, l));
352
+ }, [l, s, u]);
353
+ const de = V(null), pe = V([]), F = W(
353
354
  (e) => {
354
- if (!o) return;
355
- const r = Math.max(1, Math.min(e, o.numPages));
356
- D(r);
357
- const c = ue.current[r - 1];
355
+ if (!s) return;
356
+ const n = Math.max(1, Math.min(e, s.numPages));
357
+ D(n);
358
+ const c = pe.current[n - 1];
358
359
  c && c.scrollIntoView({
359
360
  behavior: "auto",
360
361
  block: "start"
361
362
  });
362
363
  },
363
- [o, L]
364
- ), be = H((e) => {
365
- R(e);
366
- }, []), re = H(() => {
364
+ [s, L]
365
+ ), be = W((e) => {
366
+ T(e);
367
+ }, []), ne = W(() => {
367
368
  typeof window < "u" && window.print();
368
- }, []), ye = H((e) => {
369
- me(e), p(e.length > 0);
370
- }, []), G = j({
369
+ }, []), ye = W((e) => {
370
+ re(e), r(e.length > 0);
371
+ }, []), Y = V({
371
372
  currentPage: l,
372
373
  pageCount: 0,
373
- zoom: P,
374
+ zoom: k,
374
375
  status: "loading",
375
376
  searchMatchCount: 0
376
377
  });
377
- G.current = {
378
+ Y.current = {
378
379
  currentPage: l,
379
- pageCount: (o == null ? void 0 : o.numPages) ?? 0,
380
- zoom: P,
381
- status: i ? "error" : o ? "ready" : "loading",
380
+ pageCount: (s == null ? void 0 : s.numPages) ?? 0,
381
+ zoom: k,
382
+ status: i ? "error" : s ? "ready" : "loading",
382
383
  searchMatchCount: ve.total
383
384
  };
384
- const pe = Pe(
385
+ const fe = Pe(
385
386
  () => ({
386
387
  goToPage: F,
387
388
  setZoom: be,
388
389
  search: ye,
389
- print: re,
390
- getCurrentPage: () => G.current.currentPage,
391
- getPageCount: () => G.current.pageCount,
392
- getZoom: () => G.current.zoom,
393
- getStatus: () => G.current.status,
394
- getSearchMatchCount: () => G.current.searchMatchCount
390
+ print: ne,
391
+ getCurrentPage: () => Y.current.currentPage,
392
+ getPageCount: () => Y.current.pageCount,
393
+ getZoom: () => Y.current.zoom,
394
+ getStatus: () => Y.current.status,
395
+ getSearchMatchCount: () => Y.current.searchMatchCount
395
396
  }),
396
- [F, be, ye, re]
397
+ [F, be, ye, ne]
397
398
  );
398
- Le(b, () => pe, [pe]), Be(Ge, pe, a);
399
- const Oe = H(
399
+ Le(v, () => fe, [fe]), We(et, fe, a);
400
+ const Oe = W(
400
401
  (e) => {
401
- if (!o) return;
402
- const r = e.metaKey || e.ctrlKey;
402
+ if (!s) return;
403
+ const n = e.metaKey || e.ctrlKey;
403
404
  if (e.key === "PageDown") {
404
405
  e.preventDefault(), F(l + 1);
405
406
  return;
@@ -413,90 +414,90 @@ const nt = Ze(
413
414
  return;
414
415
  }
415
416
  if (e.key === "End") {
416
- e.preventDefault(), F(o.numPages);
417
+ e.preventDefault(), F(s.numPages);
417
418
  return;
418
419
  }
419
- if (r && e.key.toLowerCase() === "f") {
420
- e.preventDefault(), p(!0);
420
+ if (n && e.key.toLowerCase() === "f") {
421
+ e.preventDefault(), r(!0);
421
422
  return;
422
423
  }
423
- if (r && (e.key === "+" || e.key === "=")) {
424
- e.preventDefault(), R((c) => ee(c) ? Math.min(c * 1.25, 4) : 1.25);
424
+ if (n && (e.key === "+" || e.key === "=")) {
425
+ e.preventDefault(), T((c) => te(c) ? Math.min(c * 1.25, 4) : 1.25);
425
426
  return;
426
427
  }
427
- if (r && e.key === "-") {
428
- e.preventDefault(), R(
429
- (c) => ee(c) ? Math.max(c / 1.25, 0.25) : 0.75
428
+ if (n && e.key === "-") {
429
+ e.preventDefault(), T(
430
+ (c) => te(c) ? Math.max(c / 1.25, 0.25) : 0.75
430
431
  );
431
432
  return;
432
433
  }
433
- if (r && e.key === "0") {
434
- e.preventDefault(), R("fit-width");
434
+ if (n && e.key === "0") {
435
+ e.preventDefault(), T("fit-width");
435
436
  return;
436
437
  }
437
- r && e.key.toLowerCase() === "p" && (e.preventDefault(), re());
438
+ n && e.key.toLowerCase() === "p" && (e.preventDefault(), ne());
438
439
  },
439
- [l, F, re, o]
440
- ), fe = j(l);
441
- T(() => {
442
- fe.current = l;
443
- }, [l]), T(() => {
444
- if (!o) return;
445
- const e = ie.current;
440
+ [l, F, ne, s]
441
+ ), ge = V(l);
442
+ R(() => {
443
+ ge.current = l;
444
+ }, [l]), R(() => {
445
+ if (!s) return;
446
+ const e = de.current;
446
447
  if (!e) return;
447
- const r = /* @__PURE__ */ new Map(), c = new IntersectionObserver(
448
+ const n = /* @__PURE__ */ new Map(), c = new IntersectionObserver(
448
449
  (d) => {
449
450
  for (const E of d) {
450
- const Y = E.target.dataset.pageNumber;
451
- if (!Y) continue;
452
- const Ke = Number(Y);
453
- r.set(Ke, E.intersectionRatio);
451
+ const ee = E.target.dataset.pageNumber;
452
+ if (!ee) continue;
453
+ const Ke = Number(ee);
454
+ n.set(Ke, E.intersectionRatio);
454
455
  }
455
- let V = fe.current, B = 0, J = 1 / 0, X = -1 / 0;
456
- for (const [E, Y] of r.entries())
457
- Y > B && (V = E, B = Y), Y > 0 && (J = Math.min(J, E), X = Math.max(X, E));
458
- B > 0 && V !== fe.current && D(V), J !== 1 / 0 && q({
456
+ let O = ge.current, H = 0, J = 1 / 0, X = -1 / 0;
457
+ for (const [E, ee] of n.entries())
458
+ ee > H && (O = E, H = ee), ee > 0 && (J = Math.min(J, E), X = Math.max(X, E));
459
+ H > 0 && O !== ge.current && D(O), J !== 1 / 0 && q({
459
460
  start: Math.max(1, J - 1),
460
- end: Math.min(o.numPages, X + 1)
461
+ end: Math.min(s.numPages, X + 1)
461
462
  });
462
463
  },
463
464
  { root: e, threshold: [0, 0.25, 0.5, 0.75, 1] }
464
465
  );
465
- return ue.current.forEach((d) => {
466
+ return pe.current.forEach((d) => {
466
467
  d && c.observe(d);
467
468
  }), () => c.disconnect();
468
- }, [o]);
469
- const [Ve, je] = y(0);
470
- T(() => {
471
- const e = ie.current;
469
+ }, [s]);
470
+ const [Ve, je] = b(0);
471
+ R(() => {
472
+ const e = de.current;
472
473
  if (!e || typeof ResizeObserver > "u") return;
473
- const r = new ResizeObserver(() => {
474
- (P === "fit-width" || P === "fit-page") && je((c) => c + 1);
474
+ const n = new ResizeObserver(() => {
475
+ (k === "fit-width" || k === "fit-page") && je((c) => c + 1);
475
476
  });
476
- return r.observe(e), () => r.disconnect();
477
- }, [P]);
478
- const we = j([]), [de, xe] = y(0), Fe = H(
479
- (e) => (r) => {
480
- we.current[e] = r;
477
+ return n.observe(e), () => n.disconnect();
478
+ }, [k]);
479
+ const we = V([]), [ce, xe] = b(0), Fe = W(
480
+ (e) => (n) => {
481
+ we.current[e] = n;
481
482
  },
482
483
  []
483
- ), ze = H((e) => {
484
- const r = we.current[e];
485
- r && r.focus();
486
- }, []), ce = Z === "minimal" ? 2 : 8, Ee = H(
484
+ ), ze = W((e) => {
485
+ const n = we.current[e];
486
+ n && n.focus();
487
+ }, []), le = Z === "minimal" ? 2 : 8, Ee = W(
487
488
  (e) => {
488
- const r = O ? "ArrowLeft" : "ArrowRight", c = O ? "ArrowRight" : "ArrowLeft";
489
+ const n = A ? "ArrowLeft" : "ArrowRight", c = A ? "ArrowRight" : "ArrowLeft";
489
490
  let d = null;
490
- e.key === r ? d = (de + 1) % ce : e.key === c ? d = (de - 1 + ce) % ce : e.key === "Home" ? d = 0 : e.key === "End" && (d = ce - 1), d !== null && (e.preventDefault(), xe(d), ze(d));
491
+ e.key === n ? d = (ce + 1) % le : e.key === c ? d = (ce - 1 + le) % le : e.key === "Home" ? d = 0 : e.key === "End" && (d = le - 1), d !== null && (e.preventDefault(), xe(d), ze(d));
491
492
  },
492
- [ze, O, de]
493
+ [ze, A, ce]
493
494
  );
494
- return i ? /* @__PURE__ */ s(
495
+ return i ? /* @__PURE__ */ o(
495
496
  "div",
496
497
  {
497
498
  className: [Se(), S].filter(Boolean).join(" "),
498
499
  "aria-label": C ?? u("pdf.error"),
499
- children: /* @__PURE__ */ s("div", { className: "ds:p-[var(--spacing-lg)]", children: /* @__PURE__ */ s(Ce, { variant: "error", live: "polite", children: /* @__PURE__ */ K(Ce.Description, { children: [
500
+ children: /* @__PURE__ */ o("div", { className: "ds:p-[var(--spacing-lg)]", children: /* @__PURE__ */ o(Ce, { variant: "error", live: "polite", children: /* @__PURE__ */ K(Ce.Description, { children: [
500
501
  u("pdf.error"),
501
502
  ": ",
502
503
  i.message
@@ -507,92 +508,92 @@ const nt = Ze(
507
508
  /* @__PURE__ */ K(
508
509
  "div",
509
510
  {
510
- id: N,
511
+ id: M,
511
512
  role: "region",
512
513
  "aria-label": C ?? u("pdf.toolbarLabel"),
513
514
  className: [Se(), S].filter(Boolean).join(" "),
514
- dir: O ? "rtl" : void 0,
515
+ dir: A ? "rtl" : void 0,
515
516
  onKeyDown: Oe,
516
517
  tabIndex: -1,
517
518
  "data-component": "pdf-viewer",
518
519
  "data-component-id": a,
519
520
  "data-pdfjs-worker-src": De,
520
521
  children: [
521
- k ? /* @__PURE__ */ s(
522
- st,
522
+ z ? /* @__PURE__ */ o(
523
+ it,
523
524
  {
524
525
  variant: Z,
525
526
  currentPage: l,
526
- numPages: (o == null ? void 0 : o.numPages) ?? 0,
527
- zoom: P,
527
+ numPages: (s == null ? void 0 : s.numPages) ?? 0,
528
+ zoom: k,
528
529
  onPrev: () => F(l - 1),
529
530
  onNext: () => F(l + 1),
530
531
  onJump: (e) => F(e),
531
532
  onZoomIn: () => {
532
- R(
533
- (e) => ee(e) ? Math.min(e * 1.25, 4) : 1.25
533
+ T(
534
+ (e) => te(e) ? Math.min(e * 1.25, 4) : 1.25
534
535
  );
535
536
  },
536
537
  onZoomOut: () => {
537
- R(
538
- (e) => ee(e) ? Math.max(e / 1.25, 0.25) : 0.75
538
+ T(
539
+ (e) => te(e) ? Math.max(e / 1.25, 0.25) : 0.75
539
540
  );
540
541
  },
541
- onZoomPreset: (e) => R(e),
542
- onOpenSearch: () => p(!0),
543
- onPrint: re,
544
- searchOpen: n,
545
- onSearchOpenChange: p,
546
- searchQuery: te,
542
+ onZoomPreset: (e) => T(e),
543
+ onOpenSearch: () => r(!0),
544
+ onPrint: ne,
545
+ searchOpen: I,
546
+ onSearchOpenChange: r,
547
+ searchQuery: j,
547
548
  onSearchQueryChange: (e) => {
548
- me(e);
549
+ re(e);
549
550
  },
550
551
  searchMatches: ve,
551
552
  register: Fe,
552
- focusIndex: de,
553
+ focusIndex: ce,
553
554
  setFocusIndex: xe,
554
555
  onToolbarKeyDown: Ee,
555
- isRtl: O
556
+ isRtl: A
556
557
  }
557
558
  ) : null,
558
- /* @__PURE__ */ s("div", { "aria-live": "polite", "aria-atomic": "true", className: "ds:sr-only", children: U }),
559
- /* @__PURE__ */ s(
559
+ /* @__PURE__ */ o("div", { "aria-live": "polite", "aria-atomic": "true", className: "ds:sr-only", children: G }),
560
+ /* @__PURE__ */ o(
560
561
  "div",
561
562
  {
562
- ref: ie,
563
- className: tt(),
563
+ ref: de,
564
+ className: nt(),
564
565
  "data-testid": "pdf-pages-container",
565
566
  tabIndex: 0,
566
567
  "aria-label": u("pdf.pagesRegionLabel"),
567
- children: o ? Array.from({ length: o.numPages }, (e, r) => r + 1).map(
568
- (e) => /* @__PURE__ */ s(
569
- ot,
568
+ children: s ? Array.from({ length: s.numPages }, (e, n) => n + 1).map(
569
+ (e) => /* @__PURE__ */ o(
570
+ dt,
570
571
  {
571
572
  pageNumber: e,
572
- totalPages: o.numPages,
573
- doc: o.doc,
574
- zoom: P,
575
- pageRotation: h,
576
- renderPageOverlay: m,
577
- container: ie.current,
573
+ totalPages: s.numPages,
574
+ doc: s.doc,
575
+ zoom: k,
576
+ pageRotation: g,
577
+ renderPageOverlay: h,
578
+ container: de.current,
578
579
  resizeTick: Ve,
579
580
  shouldRender: e >= _.start && e <= _.end,
580
- registerRef: (r) => {
581
- ue.current[e - 1] = r;
581
+ registerRef: (n) => {
582
+ pe.current[e - 1] = n;
582
583
  },
583
- searchQuery: te,
584
- onMatchCount: (r) => {
585
- Ae((c) => r === 0 && c.total === 0 ? c : {
586
- current: Math.min(c.current || 1, r || 1),
587
- total: Math.max(c.total, r)
584
+ searchQuery: j,
585
+ onMatchCount: (n) => {
586
+ Ae((c) => n === 0 && c.total === 0 ? c : {
587
+ current: Math.min(c.current || 1, n || 1),
588
+ total: Math.max(c.total, n)
588
589
  });
589
590
  }
590
591
  },
591
592
  e
592
593
  )
593
594
  ) : /* @__PURE__ */ K("div", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)] ds:text-[var(--muted-foreground)] ds:p-[var(--spacing-lg)]", children: [
594
- /* @__PURE__ */ s(qe, { variant: "pulse", size: "sm", label: u("pdf.loading") }),
595
- /* @__PURE__ */ s("span", { children: u("pdf.loading") })
595
+ /* @__PURE__ */ o(He, { variant: "pulse", size: "sm", label: u("pdf.loading") }),
596
+ /* @__PURE__ */ o("span", { children: u("pdf.loading") })
596
597
  ] })
597
598
  }
598
599
  )
@@ -602,60 +603,63 @@ const nt = Ze(
602
603
  );
603
604
  }
604
605
  );
605
- nt.displayName = "PDFViewer";
606
- function st(a) {
607
- const { t } = he("ui"), {
608
- variant: v,
609
- currentPage: g,
610
- numPages: h,
611
- zoom: m,
612
- onPrev: w,
613
- onNext: x,
614
- onJump: z,
615
- onZoomIn: k,
606
+ st.displayName = "PDFViewer";
607
+ function it(a) {
608
+ const { t } = me("ui"), {
609
+ variant: m,
610
+ currentPage: f,
611
+ numPages: g,
612
+ zoom: h,
613
+ onPrev: y,
614
+ onNext: w,
615
+ onJump: x,
616
+ onZoomIn: z,
616
617
  onZoomOut: Z,
617
618
  onZoomPreset: C,
618
619
  onOpenSearch: S,
619
- onPrint: b,
620
+ onPrint: v,
620
621
  searchOpen: u,
621
- onSearchOpenChange: M,
622
- searchQuery: N,
623
- onSearchQueryChange: O,
624
- searchMatches: f,
622
+ onSearchOpenChange: P,
623
+ searchQuery: M,
624
+ onSearchQueryChange: A,
625
+ searchMatches: p,
625
626
  register: L,
626
- focusIndex: W,
627
- setFocusIndex: o,
628
- onToolbarKeyDown: Q
629
- } = a, i = v === "minimal", I = i ? 0 : 3, l = i ? 1 : 4, D = 5, [P, R] = y(String(g));
630
- T(() => {
631
- R(String(g));
632
- }, [g]);
633
- const _ = g <= 1, q = g >= h;
634
- function U() {
635
- const n = Number(P);
636
- Number.isFinite(n) && n >= 1 ? z(Math.min(n, h)) : R(String(g));
627
+ focusIndex: Q,
628
+ setFocusIndex: s,
629
+ onToolbarKeyDown: U
630
+ } = a, i = m === "minimal", N = i ? 0 : 3, l = i ? 1 : 4, D = 5, [k, T] = b(String(f));
631
+ R(() => {
632
+ T(String(f));
633
+ }, [f]);
634
+ const _ = qe(!0, {
635
+ getAnchor: Be,
636
+ onReturnToTrigger: () => P(!1)
637
+ }), q = f <= 1, G = f >= g;
638
+ function B() {
639
+ const r = Number(k);
640
+ Number.isFinite(r) && r >= 1 ? x(Math.min(r, g)) : T(String(f));
637
641
  }
638
- function A(n) {
639
- return /* @__PURE__ */ s(
642
+ function I(r) {
643
+ return /* @__PURE__ */ o(
640
644
  "button",
641
645
  {
642
646
  type: "button",
643
- ref: L(n.index),
644
- tabIndex: n.index === W ? 0 : -1,
645
- onFocus: () => o(n.index),
646
- onKeyDown: Q,
647
- "aria-label": n.label,
648
- "aria-disabled": n.disabled || void 0,
649
- title: n.label,
650
- onClick: (p) => {
651
- if (n.disabled) {
652
- p.preventDefault();
647
+ ref: L(r.index),
648
+ tabIndex: r.index === Q ? 0 : -1,
649
+ onFocus: () => s(r.index),
650
+ onKeyDown: U,
651
+ "aria-label": r.label,
652
+ "aria-disabled": r.disabled || void 0,
653
+ title: r.label,
654
+ onClick: (j) => {
655
+ if (r.disabled) {
656
+ j.preventDefault();
653
657
  return;
654
658
  }
655
- n.onActivate();
659
+ r.onActivate();
656
660
  },
657
661
  className: Me(),
658
- children: n.icon
662
+ children: r.icon
659
663
  }
660
664
  );
661
665
  }
@@ -664,63 +668,63 @@ function st(a) {
664
668
  {
665
669
  role: "toolbar",
666
670
  "aria-label": t("pdf.toolbarLabel"),
667
- className: Ye(),
671
+ className: tt(),
668
672
  children: [
669
673
  !i && /* @__PURE__ */ K(ke, { children: [
670
- A({
674
+ I({
671
675
  index: 0,
672
676
  label: t("pdf.previousPage"),
673
- disabled: _,
674
- onActivate: w,
675
- icon: /* @__PURE__ */ s(
676
- We,
677
+ disabled: q,
678
+ onActivate: y,
679
+ icon: /* @__PURE__ */ o(
680
+ Ue,
677
681
  {
678
682
  "aria-hidden": "true",
679
683
  className: "ds:block-size-4 ds:inline-size-4 ds:rtl:rotate-180"
680
684
  }
681
685
  )
682
686
  }),
683
- A({
687
+ I({
684
688
  index: 1,
685
689
  label: t("pdf.nextPage"),
686
- disabled: q,
687
- onActivate: x,
688
- icon: /* @__PURE__ */ s(
689
- Qe,
690
+ disabled: G,
691
+ onActivate: w,
692
+ icon: /* @__PURE__ */ o(
693
+ Je,
690
694
  {
691
695
  "aria-hidden": "true",
692
696
  className: "ds:block-size-4 ds:inline-size-4 ds:rtl:rotate-180"
693
697
  }
694
698
  )
695
699
  }),
696
- /* @__PURE__ */ s(
700
+ /* @__PURE__ */ o(
697
701
  "input",
698
702
  {
699
703
  type: "number",
700
704
  min: 1,
701
- max: Math.max(h, 1),
702
- value: P,
703
- onChange: (n) => R(n.target.value),
704
- onKeyDown: (n) => {
705
- n.key === "Enter" && (n.preventDefault(), U());
705
+ max: Math.max(g, 1),
706
+ value: k,
707
+ onChange: (r) => T(r.target.value),
708
+ onKeyDown: (r) => {
709
+ r.key === "Enter" && (r.preventDefault(), B());
706
710
  },
707
- onBlur: U,
708
- onFocus: () => o(2),
711
+ onBlur: B,
712
+ onFocus: () => s(2),
709
713
  ref: L(2),
710
- tabIndex: W === 2 ? 0 : -1,
714
+ tabIndex: Q === 2 ? 0 : -1,
711
715
  "aria-label": t("pdf.currentPageInput"),
712
716
  className: Ne()
713
717
  }
714
718
  ),
715
- /* @__PURE__ */ s(
719
+ /* @__PURE__ */ o(
716
720
  "span",
717
721
  {
718
722
  "aria-hidden": "true",
719
723
  className: "type-body-sm ds:text-[var(--muted-foreground)]",
720
- children: t("pdf.pageOf", { current: g, total: h || 0 })
724
+ children: t("pdf.pageOf", { current: f, total: g || 0 })
721
725
  }
722
726
  ),
723
- /* @__PURE__ */ s(
727
+ /* @__PURE__ */ o(
724
728
  "span",
725
729
  {
726
730
  "aria-hidden": "true",
@@ -728,24 +732,24 @@ function st(a) {
728
732
  }
729
733
  )
730
734
  ] }),
731
- A({
732
- index: I,
735
+ I({
736
+ index: N,
733
737
  label: t("pdf.zoom.out"),
734
738
  onActivate: Z,
735
- icon: /* @__PURE__ */ s(
736
- Ue,
739
+ icon: /* @__PURE__ */ o(
740
+ Xe,
737
741
  {
738
742
  "aria-hidden": "true",
739
743
  className: "ds:block-size-4 ds:inline-size-4"
740
744
  }
741
745
  )
742
746
  }),
743
- A({
747
+ I({
744
748
  index: l,
745
749
  label: t("pdf.zoom.in"),
746
- onActivate: k,
747
- icon: /* @__PURE__ */ s(
748
- Je,
750
+ onActivate: z,
751
+ icon: /* @__PURE__ */ o(
752
+ $e,
749
753
  {
750
754
  "aria-hidden": "true",
751
755
  className: "ds:block-size-4 ds:inline-size-4"
@@ -756,26 +760,26 @@ function st(a) {
756
760
  "select",
757
761
  {
758
762
  "aria-label": t("pdf.zoom.preset"),
759
- value: typeof m == "number" ? String(m) : m,
760
- onChange: (n) => {
761
- const p = n.target.value;
762
- if (p === "fit-width" || p === "fit-page" || p === "actual-size")
763
- C(p);
763
+ value: typeof h == "number" ? String(h) : h,
764
+ onChange: (r) => {
765
+ const j = r.target.value;
766
+ if (j === "fit-width" || j === "fit-page" || j === "actual-size")
767
+ C(j);
764
768
  else {
765
- const te = Number(p);
766
- Number.isFinite(te) && C(te);
769
+ const re = Number(j);
770
+ Number.isFinite(re) && C(re);
767
771
  }
768
772
  },
769
773
  ref: L(D),
770
- tabIndex: W === D ? 0 : -1,
771
- onFocus: () => o(D),
772
- onKeyDown: Q,
773
- className: et(),
774
+ tabIndex: Q === D ? 0 : -1,
775
+ onFocus: () => s(D),
776
+ onKeyDown: U,
777
+ className: rt(),
774
778
  children: [
775
- /* @__PURE__ */ s("option", { value: "fit-width", children: t("pdf.zoom.fitWidth") }),
776
- /* @__PURE__ */ s("option", { value: "fit-page", children: t("pdf.zoom.fitPage") }),
777
- /* @__PURE__ */ s("option", { value: "actual-size", children: t("pdf.zoom.actualSize") }),
778
- at.filter(ee).map((n) => /* @__PURE__ */ s("option", { value: String(n), children: `${Math.round(n * 100)}%` }, n))
779
+ /* @__PURE__ */ o("option", { value: "fit-width", children: t("pdf.zoom.fitWidth") }),
780
+ /* @__PURE__ */ o("option", { value: "fit-page", children: t("pdf.zoom.fitPage") }),
781
+ /* @__PURE__ */ o("option", { value: "actual-size", children: t("pdf.zoom.actualSize") }),
782
+ ot.filter(te).map((r) => /* @__PURE__ */ o("option", { value: String(r), children: `${Math.round(r * 100)}%` }, r))
779
783
  ]
780
784
  }
781
785
  ),
@@ -784,24 +788,25 @@ function st(a) {
784
788
  ae.Root,
785
789
  {
786
790
  open: u,
787
- onOpenChange: M,
791
+ onOpenChange: P,
788
792
  children: [
789
- /* @__PURE__ */ s(ae.Trigger, { asChild: !0, children: A({
793
+ /* @__PURE__ */ o(ae.Trigger, { asChild: !0, children: I({
790
794
  index: 6,
791
795
  label: t("pdf.search.open"),
792
796
  onActivate: S,
793
- icon: /* @__PURE__ */ s(
794
- Xe,
797
+ icon: /* @__PURE__ */ o(
798
+ Ge,
795
799
  {
796
800
  "aria-hidden": "true",
797
801
  className: "ds:block-size-4 ds:inline-size-4"
798
802
  }
799
803
  )
800
804
  }) }),
801
- /* @__PURE__ */ s(ae.Portal, { children: /* @__PURE__ */ K(
805
+ /* @__PURE__ */ o(ae.Portal, { children: /* @__PURE__ */ K(
802
806
  ae.Content,
803
807
  {
804
808
  sideOffset: 8,
809
+ onKeyDown: _,
805
810
  className: [
806
811
  "ds:z-[var(--z-popover)]",
807
812
  "ds:bg-[var(--popover)] ds:text-[var(--popover-foreground)]",
@@ -811,13 +816,13 @@ function st(a) {
811
816
  "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]"
812
817
  ].join(" "),
813
818
  children: [
814
- /* @__PURE__ */ s(
819
+ /* @__PURE__ */ o(
815
820
  "input",
816
821
  {
817
822
  type: "search",
818
823
  autoFocus: !0,
819
- value: N,
820
- onChange: (n) => O(n.target.value),
824
+ value: M,
825
+ onChange: (r) => A(r.target.value),
821
826
  placeholder: t("pdf.search.placeholder"),
822
827
  "aria-label": t("pdf.search.placeholder"),
823
828
  className: Ne({
@@ -825,25 +830,25 @@ function st(a) {
825
830
  })
826
831
  }
827
832
  ),
828
- /* @__PURE__ */ s(
833
+ /* @__PURE__ */ o(
829
834
  "span",
830
835
  {
831
836
  "aria-live": "polite",
832
837
  className: "type-meta ds:text-[var(--muted-foreground)]",
833
- children: f.total > 0 ? t("pdf.search.countOfTotal", {
834
- current: f.current,
835
- total: f.total
836
- }) : N ? t("pdf.search.noResults") : ""
838
+ children: p.total > 0 ? t("pdf.search.countOfTotal", {
839
+ current: p.current,
840
+ total: p.total
841
+ }) : M ? t("pdf.search.noResults") : ""
837
842
  }
838
843
  ),
839
- /* @__PURE__ */ s(ae.Close, { asChild: !0, children: /* @__PURE__ */ s(
844
+ /* @__PURE__ */ o(ae.Close, { asChild: !0, children: /* @__PURE__ */ o(
840
845
  "button",
841
846
  {
842
847
  type: "button",
843
848
  "aria-label": t("pdf.search.close"),
844
849
  className: Me(),
845
- children: /* @__PURE__ */ s(
846
- He,
850
+ children: /* @__PURE__ */ o(
851
+ Qe,
847
852
  {
848
853
  "aria-hidden": "true",
849
854
  className: "ds:block-size-4 ds:inline-size-4"
@@ -857,12 +862,12 @@ function st(a) {
857
862
  ]
858
863
  }
859
864
  ),
860
- A({
865
+ I({
861
866
  index: 7,
862
867
  label: t("pdf.print"),
863
- onActivate: b,
864
- icon: /* @__PURE__ */ s(
865
- $e,
868
+ onActivate: v,
869
+ icon: /* @__PURE__ */ o(
870
+ Ye,
866
871
  {
867
872
  "aria-hidden": "true",
868
873
  className: "ds:block-size-4 ds:inline-size-4"
@@ -874,100 +879,100 @@ function st(a) {
874
879
  }
875
880
  );
876
881
  }
877
- function ot(a) {
882
+ function dt(a) {
878
883
  const {
879
884
  pageNumber: t,
880
- totalPages: v,
881
- doc: g,
882
- zoom: h,
883
- pageRotation: m,
884
- renderPageOverlay: w,
885
- container: x,
886
- resizeTick: z,
887
- shouldRender: k,
885
+ totalPages: m,
886
+ doc: f,
887
+ zoom: g,
888
+ pageRotation: h,
889
+ renderPageOverlay: y,
890
+ container: w,
891
+ resizeTick: x,
892
+ shouldRender: z,
888
893
  registerRef: Z,
889
894
  searchQuery: C,
890
895
  onMatchCount: S
891
- } = a, { t: b } = he("ui"), u = j(null), M = j(null), [N, O] = y({
896
+ } = a, { t: v } = me("ui"), u = V(null), P = V(null), [M, A] = b({
892
897
  width: 612,
893
898
  height: 792
894
- }), [f, L] = y(null);
895
- T(() => {
899
+ }), [p, L] = b(null);
900
+ R(() => {
896
901
  let i = !1;
897
- return g.getPage(t).then((I) => {
898
- i || L(I);
902
+ return f.getPage(t).then((N) => {
903
+ i || L(N);
899
904
  }), () => {
900
905
  i = !0;
901
906
  };
902
- }, [g, t]), T(() => {
903
- if (!f) return;
904
- const i = (P) => m === void 0 ? { scale: P } : { scale: P, rotation: m }, I = f.getViewport(i(1)), l = Ie(h, I, x), D = f.getViewport(i(l));
905
- O({
907
+ }, [f, t]), R(() => {
908
+ if (!p) return;
909
+ const i = (k) => h === void 0 ? { scale: k } : { scale: k, rotation: h }, N = p.getViewport(i(1)), l = Te(g, N, w), D = p.getViewport(i(l));
910
+ A({
906
911
  width: Math.floor(D.width),
907
912
  height: Math.floor(D.height)
908
913
  });
909
- }, [f, h, x, z, m]);
910
- const W = m ?? (f == null ? void 0 : f.rotate) ?? 0;
911
- T(() => {
912
- if (!f || !k) {
913
- const p = u.current;
914
- p && !k && (p.width = 0);
914
+ }, [p, g, w, x, h]);
915
+ const Q = h ?? (p == null ? void 0 : p.rotate) ?? 0;
916
+ R(() => {
917
+ if (!p || !z) {
918
+ const r = u.current;
919
+ r && !z && (r.width = 0);
915
920
  return;
916
921
  }
917
- const i = u.current, I = M.current;
922
+ const i = u.current, N = P.current;
918
923
  if (!i) return;
919
924
  const l = i.getContext("2d");
920
925
  if (!l) return;
921
- const D = (p) => m === void 0 ? { scale: p } : { scale: p, rotation: m }, P = f.getViewport(D(1)), R = Ie(h, P, x), _ = f.getViewport(D(R)), q = Math.max(1, window.devicePixelRatio || 1);
926
+ const D = (r) => h === void 0 ? { scale: r } : { scale: r, rotation: h }, k = p.getViewport(D(1)), T = Te(g, k, w), _ = p.getViewport(D(T)), q = Math.max(1, window.devicePixelRatio || 1);
922
927
  i.width = Math.floor(_.width * q), i.height = Math.floor(_.height * q), l.setTransform(q, 0, 0, q, 0, 0);
923
- const U = f.render({
928
+ const G = p.render({
924
929
  canvas: i,
925
930
  canvasContext: l,
926
931
  viewport: _
927
932
  });
928
- let A = !1, n = null;
929
- return U.promise.then(async () => {
930
- if (A || !I) return;
931
- I.textContent = "";
932
- const p = await f.getTextContent();
933
- A || (n = new ge.TextLayer({
934
- textContentSource: p,
935
- container: I,
933
+ let B = !1, I = null;
934
+ return G.promise.then(async () => {
935
+ if (B || !N) return;
936
+ N.textContent = "";
937
+ const r = await p.getTextContent();
938
+ B || (I = new he.TextLayer({
939
+ textContentSource: r,
940
+ container: N,
936
941
  viewport: _
937
- }), await n.render(), Te(I, C, S));
942
+ }), await I.render(), Re(N, C, S));
938
943
  }).catch(() => {
939
944
  }), () => {
940
- A = !0;
945
+ B = !0;
941
946
  try {
942
- U.cancel();
947
+ G.cancel();
943
948
  } catch {
944
949
  }
945
- if (n)
950
+ if (I)
946
951
  try {
947
- n.cancel();
952
+ I.cancel();
948
953
  } catch {
949
954
  }
950
955
  };
951
956
  }, [
952
- f,
953
- k,
954
- h,
955
- x,
957
+ p,
956
958
  z,
959
+ g,
960
+ w,
961
+ x,
957
962
  C,
958
963
  S,
959
- m
960
- ]), T(() => {
961
- if (!k) return;
962
- const i = M.current;
963
- i && Te(i, C, S);
964
- }, [C, k, S]);
965
- const o = {
966
- width: N.width,
967
- height: N.height
968
- }, Q = {
969
- width: N.width,
970
- height: N.height
964
+ h
965
+ ]), R(() => {
966
+ if (!z) return;
967
+ const i = P.current;
968
+ i && Re(i, C, S);
969
+ }, [C, z, S]);
970
+ const s = {
971
+ width: M.width,
972
+ height: M.height
973
+ }, U = {
974
+ width: M.width,
975
+ height: M.height
971
976
  };
972
977
  return /* @__PURE__ */ K(
973
978
  "article",
@@ -976,15 +981,15 @@ function ot(a) {
976
981
  Z(i);
977
982
  },
978
983
  "data-page-number": t,
979
- "aria-label": b("pdf.pageOf", { current: t, total: v }),
980
- className: rt(),
981
- style: Q,
984
+ "aria-label": v("pdf.pageOf", { current: t, total: m }),
985
+ className: at(),
986
+ style: U,
982
987
  children: [
983
- /* @__PURE__ */ s("canvas", { ref: u, style: o }),
984
- /* @__PURE__ */ s(
988
+ /* @__PURE__ */ o("canvas", { ref: u, style: s }),
989
+ /* @__PURE__ */ o(
985
990
  "div",
986
991
  {
987
- ref: M,
992
+ ref: P,
988
993
  "aria-hidden": "false",
989
994
  className: [
990
995
  "ds:absolute ds:inset-0",
@@ -998,19 +1003,19 @@ function ot(a) {
998
1003
  ].join(" ")
999
1004
  }
1000
1005
  ),
1001
- k && w ? /* @__PURE__ */ s(
1006
+ z && y ? /* @__PURE__ */ o(
1002
1007
  "div",
1003
1008
  {
1004
1009
  role: "group",
1005
- "aria-label": b("pdf.pageOverlay", { page: t }),
1010
+ "aria-label": v("pdf.pageOverlay", { page: t }),
1006
1011
  className: "ds:absolute ds:inset-0 ds:pointer-events-auto",
1007
1012
  "data-pdf-page-overlay": "",
1008
1013
  "data-page-number": t,
1009
- children: w({
1014
+ children: y({
1010
1015
  pageNumber: t,
1011
- pageWidthCss: N.width,
1012
- pageHeightCss: N.height,
1013
- rotation: W
1016
+ pageWidthCss: M.width,
1017
+ pageHeightCss: M.height,
1018
+ rotation: Q
1014
1019
  })
1015
1020
  }
1016
1021
  ) : null
@@ -1018,48 +1023,48 @@ function ot(a) {
1018
1023
  }
1019
1024
  );
1020
1025
  }
1021
- function Re(a) {
1026
+ function Ie(a) {
1022
1027
  return a.normalize("NFKD").replace(new RegExp("\\p{Diacritic}", "gu"), "").toLowerCase();
1023
1028
  }
1024
- function Te(a, t, v) {
1025
- if (a.querySelectorAll("[data-match]").forEach((b) => {
1026
- b.removeAttribute("data-match");
1029
+ function Re(a, t, m) {
1030
+ if (a.querySelectorAll("[data-match]").forEach((v) => {
1031
+ v.removeAttribute("data-match");
1027
1032
  }), !t) {
1028
- v(0);
1033
+ m(0);
1029
1034
  return;
1030
1035
  }
1031
- const h = Re(t);
1032
- if (!h) {
1033
- v(0);
1036
+ const g = Ie(t);
1037
+ if (!g) {
1038
+ m(0);
1034
1039
  return;
1035
1040
  }
1036
- const m = Array.from(a.querySelectorAll("span")), w = [], x = [];
1037
- let z = 0;
1038
- for (const b of m) {
1039
- const u = Re(b.textContent ?? "");
1040
- w.push({ start: z, end: z + u.length }), x.push(u), z += u.length;
1041
+ const h = Array.from(a.querySelectorAll("span")), y = [], w = [];
1042
+ let x = 0;
1043
+ for (const v of h) {
1044
+ const u = Ie(v.textContent ?? "");
1045
+ y.push({ start: x, end: x + u.length }), w.push(u), x += u.length;
1041
1046
  }
1042
- const k = x.join("");
1047
+ const z = w.join("");
1043
1048
  let Z = 0;
1044
1049
  const C = /* @__PURE__ */ new Set();
1045
1050
  let S = 0;
1046
- for (; S <= k.length - h.length; ) {
1047
- const b = k.indexOf(h, S);
1048
- if (b === -1) break;
1051
+ for (; S <= z.length - g.length; ) {
1052
+ const v = z.indexOf(g, S);
1053
+ if (v === -1) break;
1049
1054
  Z += 1;
1050
- const u = b + h.length;
1051
- for (let M = 0; M < w.length; M++) {
1052
- const { start: N, end: O } = w[M];
1053
- N < u && O > b && C.add(M);
1055
+ const u = v + g.length;
1056
+ for (let P = 0; P < y.length; P++) {
1057
+ const { start: M, end: A } = y[P];
1058
+ M < u && A > v && C.add(P);
1054
1059
  }
1055
1060
  S = u;
1056
1061
  }
1057
- C.forEach((b) => {
1058
- m[b].setAttribute("data-match", "true");
1059
- }), v(Z);
1062
+ C.forEach((v) => {
1063
+ h[v].setAttribute("data-match", "true");
1064
+ }), m(Z);
1060
1065
  }
1061
1066
  export {
1062
- nt as P,
1063
- Ge as p
1067
+ st as P,
1068
+ et as p
1064
1069
  };
1065
- //# sourceMappingURL=pdf-viewer-C3minW5b.js.map
1070
+ //# sourceMappingURL=pdf-viewer-CNQxa4tv.js.map