@alfadocs/ui-kit 0.37.0 → 0.39.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 (263) hide show
  1. package/dist/_chunks/Alfadocs_Logo_Mark-7o3L3WBI.js +56 -0
  2. package/dist/_chunks/{accordion-bSU21uTV.js → accordion-9lJSMMsZ.js} +6 -6
  3. package/dist/_chunks/{agenda-tray-By_asPN9.js → agenda-tray-Dyj9ChHC.js} +22 -21
  4. package/dist/_chunks/{alia-sidebar-BEoMl6UL.js → alia-sidebar-DXsYPinm.js} +2 -2
  5. package/dist/_chunks/{ar-D1RwVZFj.js → ar-Cn_NxqkN.js} +2 -2
  6. package/dist/_chunks/bmi-BxD-tFzU.js +32 -0
  7. package/dist/_chunks/bmi-calculator-DnEr513I.js +213 -0
  8. package/dist/_chunks/{booking-DqXsd1Mv.js → booking-4mCw3Mpl.js} +5 -5
  9. package/dist/_chunks/calculator-dialog-B74fqpFZ.js +40 -0
  10. package/dist/_chunks/{chart-DnHvmiDX.js → chart-Cbt0_sKv.js} +46 -37
  11. package/dist/_chunks/{chat-message-D53_fH2w.js → chat-message-ASgGtj-L.js} +30 -39
  12. package/dist/_chunks/{collapsible-CERONory.js → collapsible-X3oaLPU3.js} +5 -5
  13. package/dist/_chunks/{contact-profile-card-BA6fgS45.js → contact-profile-card-DHyuAPXM.js} +14 -13
  14. package/dist/_chunks/cycle-calculator-B5Uj9QeT.js +185 -0
  15. package/dist/_chunks/{date-picker-CXFpu-qY.js → date-picker-CvQfs6Xh.js} +2 -2
  16. package/dist/_chunks/{date-range-picker-I-q5rifj.js → date-range-picker-U9fn1g9d.js} +3 -3
  17. package/dist/_chunks/{date-time-picker-CqpGPlcH.js → date-time-picker-Cva0ZCWw.js} +2 -2
  18. package/dist/_chunks/{de-HTQ4b4-J.js → de-BMM2H7Bs.js} +2 -2
  19. package/dist/_chunks/dependent-selector-CRWgieHm.js +324 -0
  20. package/dist/_chunks/document-scanner-CqS_klIr.js +703 -0
  21. package/dist/_chunks/due-date-calculator-CUspKSTw.js +171 -0
  22. package/dist/_chunks/{editable-currency-cell-renderer-DnjwZNZP.js → editable-currency-cell-renderer-DgkCIIcO.js} +3 -3
  23. package/dist/_chunks/{el-Dr1pjuDq.js → el-BYPonAaK.js} +2 -2
  24. package/dist/_chunks/{es-CvyTjLS0.js → es-CMkVCQ4F.js} +2 -2
  25. package/dist/_chunks/{file-upload-CdozCPct.js → file-upload-BosbPDb1.js} +3 -2
  26. package/dist/_chunks/fiscal-code-input-BZ0FxwUl.js +540 -0
  27. package/dist/_chunks/{fr-CS7aqaFR.js → fr-BcuWxqft.js} +2 -2
  28. package/dist/_chunks/{freemium-paywall-D1N02Oam.js → freemium-paywall-BAk3a6er.js} +7 -7
  29. package/dist/_chunks/gestation-BXEgDGmP.js +50 -0
  30. package/dist/_chunks/gestational-age-calculator-CsQ05qDy.js +165 -0
  31. package/dist/_chunks/header-settings-CBLwUK6t.js +244 -0
  32. package/dist/_chunks/heart-C0faivFf.js +20 -0
  33. package/dist/_chunks/{hi-3uy8KpsH.js → hi-wkq_rQAh.js} +2 -2
  34. package/dist/_chunks/image-C6RM5hfF.js +16 -0
  35. package/dist/_chunks/insert-result-yJ0QavoN.js +133 -0
  36. package/dist/_chunks/{isSameWeek-DRpMibi9.js → isSameWeek-Bim5ftRd.js} +2 -2
  37. package/dist/_chunks/{it-B_RF5VSw.js → it-GiQrQ9p4.js} +3 -3
  38. package/dist/_chunks/{ja-C1mEYy35.js → ja-qfYg3Rua.js} +2 -2
  39. package/dist/_chunks/{logo-_Z-jLq80.js → logo-yituK7sE.js} +42 -91
  40. package/dist/_chunks/{map-view-vD5pvWs9.js → map-view-qJLybrmN.js} +2 -2
  41. package/dist/_chunks/marketplace-app-shell-BlxVizU4.js +296 -0
  42. package/dist/_chunks/{message-card-BbRhZkDI.js → message-card-DSPw5ghw.js} +20 -19
  43. package/dist/_chunks/{message-tray-B762TKuv.js → message-tray-hSQff9u4.js} +3 -3
  44. package/dist/_chunks/{nl-Dl7lO2t3.js → nl-xOogO4sZ.js} +2 -2
  45. package/dist/_chunks/{notification-card-DMdO4g54.js → notification-card-CObnGdJu.js} +22 -21
  46. package/dist/_chunks/{notification-tray-Dl3FTleW.js → notification-tray-BWHDIjgd.js} +2 -2
  47. package/dist/_chunks/{otp-input-CDTWT5EK.js → otp-input-CMphfBxZ.js} +70 -71
  48. package/dist/_chunks/{patient-shell-CDvMw_Nk.js → patient-shell-DF81lALv.js} +37 -36
  49. package/dist/_chunks/{payment-form-D5rgnZu7.js → payment-form-Dy3WIIsC.js} +18 -18
  50. package/dist/_chunks/{pdf-viewer-DvtEHcEP.js → pdf-viewer-Cy6Ul3hZ.js} +2 -2
  51. package/dist/_chunks/{pl-Dgsogljx.js → pl-GnOW6eGK.js} +3 -3
  52. package/dist/_chunks/{practice-results-BFM_lyUs.js → practice-results-C0d4IL5E.js} +4 -3
  53. package/dist/_chunks/pregnancy-weight-gain-BCdi-JSv.js +209 -0
  54. package/dist/_chunks/{privacy-lock-DD-wHxBg.js → privacy-lock-BmX_gkvt.js} +2 -2
  55. package/dist/_chunks/{pt-Dm2JF4bc.js → pt-_bV5b5RW.js} +2 -2
  56. package/dist/_chunks/{public-footer.agent-Cjfe5jus.js → public-footer.agent-okt8ZRc5.js} +3 -3
  57. package/dist/_chunks/qr-code-DNXhi6se.js +568 -0
  58. package/dist/_chunks/{react-day-picker-DYDdR8Vv.js → react-day-picker-CdtIiKjx.js} +24 -24
  59. package/dist/_chunks/{reviews-panel-Dow8Dzoa.js → reviews-panel-CPrXu5TX.js} +2 -2
  60. package/dist/_chunks/{rich-text-editor-CHmr9Bz8.js → rich-text-editor-DLbg2852.js} +114 -124
  61. package/dist/_chunks/{ro-BXFZ_xIX.js → ro-BEcyh5Nj.js} +2 -2
  62. package/dist/_chunks/rotate-ccw-BWANpitO.js +15 -0
  63. package/dist/_chunks/{ru-BPQkNRRV.js → ru-Bi86hqMf.js} +3 -3
  64. package/dist/_chunks/session-countdown-LPnhTHjn.js +214 -0
  65. package/dist/_chunks/{shield-check-BhHyReu8.js → shield-check-C73ma9Cs.js} +8 -24
  66. package/dist/_chunks/{sidebar-BbR8f6oe.js → sidebar-_vJXI9rB.js} +2 -2
  67. package/dist/_chunks/sign-document-DId1p-nn.js +315 -0
  68. package/dist/_chunks/{sign-in-with-alfadocs-button-BI0fVonM.js → sign-in-with-alfadocs-button-DeHBFRNS.js} +2 -2
  69. package/dist/_chunks/{signature-capture-C-fF71xI.js → signature-capture-BRzCklg4.js} +27 -24
  70. package/dist/_chunks/social-sign-in-button-X54ySJr1.js +243 -0
  71. package/dist/_chunks/{sparkline-DEROcSl0.js → sparkline-DGhCSw8M.js} +55 -46
  72. package/dist/_chunks/{sq-ChTlGFcJ.js → sq-BujHSAWu.js} +2 -2
  73. package/dist/_chunks/{stepper-accordion-BfS6lUB9.js → stepper-accordion-Dki6r9ZE.js} +2 -2
  74. package/dist/_chunks/subDays-_T9YeKPX.js +8 -0
  75. package/dist/_chunks/{sv-Do_gs6ir.js → sv-C8AeDrTA.js} +2 -2
  76. package/dist/_chunks/{tag-CyoaEmf_.js → tag-CdA0s_VV.js} +16 -16
  77. package/dist/_chunks/{task-card-BUVMh6HN.js → task-card-CPyQ5AXC.js} +6 -5
  78. package/dist/_chunks/{task-tray-DRK0b0Qb.js → task-tray-B8jFv5FV.js} +36 -35
  79. package/dist/_chunks/{tr-da_UnkYH.js → tr-CMSs_Vgf.js} +2 -2
  80. package/dist/_chunks/{transcript-panel-DyhTpAP7.js → transcript-panel-CR7VY1uw.js} +8 -7
  81. package/dist/_chunks/unit-converter-EUwO6QYq.js +168 -0
  82. package/dist/_chunks/wallet-pay-button-DK4ESYge.js +250 -0
  83. package/dist/_chunks/{warning-stack-bDicCvxs.js → warning-stack-DNR3-IbP.js} +17 -16
  84. package/dist/_chunks/{workflow-map-uSiHbOWQ.js → workflow-map-C3gB0FvB.js} +3 -2
  85. package/dist/_chunks/{zh-CN-C9qi5oak.js → zh-CN-eXB-PFu4.js} +3 -3
  86. package/dist/agent-catalog.json +241 -1
  87. package/dist/brand/provider-marks/apple-pay.d.ts +12 -0
  88. package/dist/brand/provider-marks/apple.d.ts +12 -0
  89. package/dist/brand/provider-marks/google-pay.d.ts +12 -0
  90. package/dist/brand/provider-marks/google.d.ts +13 -0
  91. package/dist/components/_shared/insert-result.d.ts +47 -0
  92. package/dist/components/accordion/index.js +1 -1
  93. package/dist/components/agenda-tray/index.js +1 -1
  94. package/dist/components/bmi-calculator/bmi-calculator.d.ts +3 -0
  95. package/dist/components/bmi-calculator/index.js +6 -5
  96. package/dist/components/booking/index.js +1 -1
  97. package/dist/components/calculator-dialog/calculator-dialog.d.ts +26 -0
  98. package/dist/components/calculator-dialog/index.d.ts +3 -0
  99. package/dist/components/calculator-dialog/index.js +5 -0
  100. package/dist/components/chart/chart.d.ts +1 -1
  101. package/dist/components/chart/index.js +1 -1
  102. package/dist/components/chat-message/index.js +1 -1
  103. package/dist/components/collapsible/index.js +1 -1
  104. package/dist/components/contact-profile-card/index.js +1 -1
  105. package/dist/components/cycle-calculator/cycle-calculator.d.ts +21 -0
  106. package/dist/components/cycle-calculator/cycle.d.ts +37 -0
  107. package/dist/components/cycle-calculator/index.d.ts +4 -0
  108. package/dist/components/cycle-calculator/index.js +7 -0
  109. package/dist/components/data-table/index.js +1 -1
  110. package/dist/components/date-picker/index.js +1 -1
  111. package/dist/components/date-range-picker/index.js +1 -1
  112. package/dist/components/date-time-picker/index.js +1 -1
  113. package/dist/components/dependent-selector/dependent-selector.agent.d.ts +4 -0
  114. package/dist/components/dependent-selector/dependent-selector.d.ts +72 -0
  115. package/dist/components/dependent-selector/index.d.ts +4 -0
  116. package/dist/components/dependent-selector/index.js +6 -0
  117. package/dist/components/document-scanner/document-scanner.agent.d.ts +4 -0
  118. package/dist/components/document-scanner/document-scanner.d.ts +93 -0
  119. package/dist/components/document-scanner/index.d.ts +4 -0
  120. package/dist/components/document-scanner/index.js +6 -0
  121. package/dist/components/due-date-calculator/due-date-calculator.d.ts +3 -0
  122. package/dist/components/due-date-calculator/gestation.d.ts +16 -0
  123. package/dist/components/due-date-calculator/index.d.ts +1 -1
  124. package/dist/components/due-date-calculator/index.js +10 -7
  125. package/dist/components/file-upload/index.js +1 -1
  126. package/dist/components/fiscal-code-input/calculate-codice-fiscale.d.ts +24 -0
  127. package/dist/components/fiscal-code-input/fiscal-code-input.agent.d.ts +4 -0
  128. package/dist/components/fiscal-code-input/fiscal-code-input.d.ts +61 -0
  129. package/dist/components/fiscal-code-input/index.d.ts +6 -0
  130. package/dist/components/fiscal-code-input/index.js +11 -0
  131. package/dist/components/fiscal-code-input/is-valid-codice-fiscale.d.ts +21 -0
  132. package/dist/components/freemium-paywall/index.js +1 -1
  133. package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +27 -0
  134. package/dist/components/gestational-age-calculator/index.d.ts +3 -0
  135. package/dist/components/gestational-age-calculator/index.js +5 -0
  136. package/dist/components/header-settings/header-settings.agent.d.ts +4 -0
  137. package/dist/components/header-settings/header-settings.d.ts +36 -0
  138. package/dist/components/header-settings/index.d.ts +2 -0
  139. package/dist/components/header-settings/index.js +2 -241
  140. package/dist/components/index.d.ts +14 -0
  141. package/dist/components/locale-picker/locale-picker.agent.d.ts +4 -0
  142. package/dist/components/locale-picker/locale-picker.d.ts +80 -0
  143. package/dist/components/logo/index.js +1 -1
  144. package/dist/components/map-view/index.js +1 -1
  145. package/dist/components/message-card/index.js +1 -1
  146. package/dist/components/message-tray/index.js +1 -1
  147. package/dist/components/notification-card/index.js +1 -1
  148. package/dist/components/notification-tray/index.js +1 -1
  149. package/dist/components/otp-input/index.d.ts +1 -1
  150. package/dist/components/otp-input/index.js +1 -1
  151. package/dist/components/otp-input/otp-input.d.ts +1 -1
  152. package/dist/components/payment-form/index.js +1 -1
  153. package/dist/components/pdf-viewer/index.js +1 -1
  154. package/dist/components/practice-results/index.js +1 -1
  155. package/dist/components/pregnancy-weight-gain/index.d.ts +4 -0
  156. package/dist/components/pregnancy-weight-gain/index.js +9 -0
  157. package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +19 -0
  158. package/dist/components/pregnancy-weight-gain/weight-gain.d.ts +41 -0
  159. package/dist/components/privacy-lock/index.js +1 -1
  160. package/dist/components/public-footer/index.js +1 -1
  161. package/dist/components/qr-code/index.d.ts +5 -0
  162. package/dist/components/qr-code/index.js +8 -0
  163. package/dist/components/qr-code/qr-code.agent.d.ts +3 -0
  164. package/dist/components/qr-code/qr-code.d.ts +59 -0
  165. package/dist/components/qr-code/qr-encode.d.ts +46 -0
  166. package/dist/components/reviews-panel/index.js +1 -1
  167. package/dist/components/rich-text-editor/index.js +1 -1
  168. package/dist/components/session-countdown/index.d.ts +4 -0
  169. package/dist/components/session-countdown/index.js +6 -0
  170. package/dist/components/session-countdown/session-countdown.agent.d.ts +3 -0
  171. package/dist/components/session-countdown/session-countdown.d.ts +38 -0
  172. package/dist/components/sidebar/index.js +1 -1
  173. package/dist/components/sign-document/index.d.ts +4 -0
  174. package/dist/components/sign-document/index.js +6 -0
  175. package/dist/components/sign-document/sign-document.agent.d.ts +4 -0
  176. package/dist/components/sign-document/sign-document.d.ts +47 -0
  177. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  178. package/dist/components/signature-capture/index.js +1 -1
  179. package/dist/components/social-sign-in-button/index.d.ts +3 -0
  180. package/dist/components/social-sign-in-button/index.js +5 -0
  181. package/dist/components/social-sign-in-button/social-sign-in-button.d.ts +56 -0
  182. package/dist/components/sparkline/index.js +1 -1
  183. package/dist/components/sparkline/sparkline.d.ts +1 -1
  184. package/dist/components/stepper-accordion/index.js +1 -1
  185. package/dist/components/tag/index.js +1 -1
  186. package/dist/components/task-card/index.js +1 -1
  187. package/dist/components/task-tray/index.js +1 -1
  188. package/dist/components/transcript-panel/index.js +1 -1
  189. package/dist/components/unit-converter/index.d.ts +4 -0
  190. package/dist/components/unit-converter/index.js +9 -0
  191. package/dist/components/unit-converter/unit-converter.d.ts +21 -0
  192. package/dist/components/unit-converter/units.d.ts +18 -0
  193. package/dist/components/wallet-pay-button/index.d.ts +3 -0
  194. package/dist/components/wallet-pay-button/index.js +5 -0
  195. package/dist/components/wallet-pay-button/wallet-pay-button.d.ts +63 -0
  196. package/dist/components/warning-stack/index.js +1 -1
  197. package/dist/components/workflow/index.js +1 -1
  198. package/dist/i18n/locale-meta.d.ts +56 -0
  199. package/dist/i18n/locales/ar.d.ts +274 -0
  200. package/dist/i18n/locales/ar.js +271 -0
  201. package/dist/i18n/locales/de.d.ts +274 -0
  202. package/dist/i18n/locales/de.js +271 -0
  203. package/dist/i18n/locales/el.d.ts +274 -0
  204. package/dist/i18n/locales/el.js +271 -0
  205. package/dist/i18n/locales/en.d.ts +274 -0
  206. package/dist/i18n/locales/en.js +274 -0
  207. package/dist/i18n/locales/es.d.ts +274 -0
  208. package/dist/i18n/locales/es.js +271 -0
  209. package/dist/i18n/locales/fr.d.ts +274 -0
  210. package/dist/i18n/locales/fr.js +271 -0
  211. package/dist/i18n/locales/hi.d.ts +274 -0
  212. package/dist/i18n/locales/hi.js +271 -0
  213. package/dist/i18n/locales/it.d.ts +274 -0
  214. package/dist/i18n/locales/it.js +271 -0
  215. package/dist/i18n/locales/ja.d.ts +274 -0
  216. package/dist/i18n/locales/ja.js +267 -0
  217. package/dist/i18n/locales/nl.d.ts +274 -0
  218. package/dist/i18n/locales/nl.js +271 -0
  219. package/dist/i18n/locales/pl.d.ts +274 -0
  220. package/dist/i18n/locales/pl.js +271 -0
  221. package/dist/i18n/locales/pt.d.ts +274 -0
  222. package/dist/i18n/locales/pt.js +274 -0
  223. package/dist/i18n/locales/ro.d.ts +274 -0
  224. package/dist/i18n/locales/ro.js +271 -0
  225. package/dist/i18n/locales/ru.d.ts +274 -0
  226. package/dist/i18n/locales/ru.js +271 -0
  227. package/dist/i18n/locales/sq.d.ts +274 -0
  228. package/dist/i18n/locales/sq.js +271 -0
  229. package/dist/i18n/locales/sv.d.ts +274 -0
  230. package/dist/i18n/locales/sv.js +271 -0
  231. package/dist/i18n/locales/tr.d.ts +274 -0
  232. package/dist/i18n/locales/tr.js +271 -0
  233. package/dist/i18n/locales/zh.d.ts +274 -0
  234. package/dist/i18n/locales/zh.js +267 -0
  235. package/dist/index.js +590 -535
  236. package/dist/locales/ar.json +274 -0
  237. package/dist/locales/de.json +274 -0
  238. package/dist/locales/el.json +274 -0
  239. package/dist/locales/en.json +274 -0
  240. package/dist/locales/es.json +274 -0
  241. package/dist/locales/fr.json +274 -0
  242. package/dist/locales/hi.json +274 -0
  243. package/dist/locales/it.json +274 -0
  244. package/dist/locales/ja.json +274 -0
  245. package/dist/locales/nl.json +274 -0
  246. package/dist/locales/pl.json +274 -0
  247. package/dist/locales/pt.json +274 -0
  248. package/dist/locales/ro.json +274 -0
  249. package/dist/locales/ru.json +274 -0
  250. package/dist/locales/sq.json +274 -0
  251. package/dist/locales/sv.json +274 -0
  252. package/dist/locales/tr.json +274 -0
  253. package/dist/locales/zh.json +274 -0
  254. package/dist/patterns/alia-assistant/index.js +1 -1
  255. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  256. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +12 -8
  257. package/dist/patterns/patient-shell/index.js +1 -1
  258. package/dist/tokens.css +1 -1
  259. package/package.json +53 -1
  260. package/dist/_chunks/bmi-calculator-DQD5_nE-.js +0 -214
  261. package/dist/_chunks/due-date-calculator-kf9U_g7O.js +0 -173
  262. package/dist/_chunks/marketplace-app-shell-DXHxy9dj.js +0 -295
  263. package/dist/_chunks/subDays-D-WYRpdW.js +0 -8
@@ -1,4 +1,4 @@
1
- import { o as m, q as t, r as n, v as s } from "./react-day-picker-DYDdR8Vv.js";
1
+ import { o as m, q as t, r as n, v as s } from "./react-day-picker-CdtIiKjx.js";
2
2
  const d = {
3
3
  lessThanXSeconds: {
4
4
  one: "mai puțin de o secundă",
@@ -358,4 +358,4 @@ const d = {
358
358
  export {
359
359
  N as ro
360
360
  };
361
- //# sourceMappingURL=ro-BXFZ_xIX.js.map
361
+ //# sourceMappingURL=ro-BEcyh5Nj.js.map
@@ -0,0 +1,15 @@
1
+ import { c as t } from "./createLucideIcon-CrFbzy84.js";
2
+ /**
3
+ * @license lucide-react v1.8.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */
8
+ const c = [
9
+ ["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
10
+ ["path", { d: "M3 3v5h5", key: "1xhq8a" }]
11
+ ], o = t("rotate-ccw", c);
12
+ export {
13
+ o as R
14
+ };
15
+ //# sourceMappingURL=rotate-ccw-BWANpitO.js.map
@@ -1,5 +1,5 @@
1
- import { o as s, q as u, r as o, v as g } from "./react-day-picker-DYDdR8Vv.js";
2
- import { i as d } from "./isSameWeek-DRpMibi9.js";
1
+ import { o as s, q as u, r as o, v as g } from "./react-day-picker-CdtIiKjx.js";
2
+ import { i as d } from "./isSameWeek-Bim5ftRd.js";
3
3
  function l(e, t) {
4
4
  if (e.one !== void 0 && t === 1)
5
5
  return e.one;
@@ -558,4 +558,4 @@ const P = {
558
558
  export {
559
559
  B as ru
560
560
  };
561
- //# sourceMappingURL=ru-BPQkNRRV.js.map
561
+ //# sourceMappingURL=ru-Bi86hqMf.js.map
@@ -0,0 +1,214 @@
1
+ import { jsxs as k, jsx as t } from "react/jsx-runtime";
2
+ import { forwardRef as H, useEffect as b, useMemo as v, useRef as W, useState as X } from "react";
3
+ import { c as Z } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as $ } from "react-i18next";
5
+ import { B as G } from "./button-DD_0Xdmr.js";
6
+ import { P as J } from "./progress-kzIRcdaq.js";
7
+ import { L as Q } from "./live-region-C41SO3cA.js";
8
+ import { u as Y } from "./registry-nPAVE19X.js";
9
+ import { C as E } from "./circle-x-Du2CmjaU.js";
10
+ import { T as nn } from "./triangle-alert-CBPUIzQo.js";
11
+ import { c as en } from "./createLucideIcon-CrFbzy84.js";
12
+ /**
13
+ * @license lucide-react v1.8.0 - ISC
14
+ *
15
+ * This source code is licensed under the ISC license.
16
+ * See the LICENSE file in the root directory of this source tree.
17
+ */
18
+ const on = [
19
+ ["line", { x1: "10", x2: "14", y1: "2", y2: "2", key: "14vaq8" }],
20
+ ["line", { x1: "12", x2: "15", y1: "14", y2: "11", key: "17fdiu" }],
21
+ ["circle", { cx: "12", cy: "14", r: "8", key: "1e1u0o" }]
22
+ ], sn = en("timer", on), rn = {
23
+ id: "session-countdown",
24
+ capabilities: [],
25
+ state: {},
26
+ actions: {},
27
+ domHooks: {
28
+ root: {
29
+ attr: "data-component",
30
+ value: "session-countdown",
31
+ description: 'Marks the element as a kit SessionCountdown banner. The root also emits `data-tone="running" | "warning" | "expired"` (derived from the remaining time). The accessible remaining-time announcement is surfaced via the region\'s aria-label and a nested polite live region.'
32
+ }
33
+ }
34
+ }, g = 1e3, h = 60 * g, tn = 15 * h, an = 2 * h, dn = Z(
35
+ [
36
+ "ds:break-words",
37
+ "ds:flex ds:w-full ds:flex-col",
38
+ "ds:rounded-[var(--radius-md)]",
39
+ "ds:border ds:border-[length:var(--border-width-sm)]"
40
+ ].join(" "),
41
+ {
42
+ variants: {
43
+ size: {
44
+ sm: "ds:p-[var(--spacing-sm)] ds:gap-[var(--spacing-xs)]",
45
+ md: "ds:p-[var(--spacing-md)] ds:gap-[var(--spacing-sm)]",
46
+ lg: "ds:p-[var(--spacing-lg)] ds:gap-[var(--spacing-sm)]"
47
+ },
48
+ // Internal-only — derived from remaining time, never surfaced to Controls.
49
+ tone: {
50
+ running: [
51
+ "ds:border-[color:var(--info)]",
52
+ "ds:bg-[color-mix(in_srgb,var(--info)_10%,transparent)]",
53
+ "ds:text-[color:var(--info-foreground)]"
54
+ ].join(" "),
55
+ warning: [
56
+ "ds:border-[color:var(--warning)]",
57
+ "ds:bg-[color-mix(in_srgb,var(--warning)_10%,transparent)]",
58
+ "ds:text-[color:var(--warning-foreground)]"
59
+ ].join(" "),
60
+ expired: [
61
+ "ds:border-[color:var(--error)]",
62
+ "ds:bg-[color-mix(in_srgb,var(--error)_10%,transparent)]",
63
+ "ds:text-[color:var(--error-foreground)]",
64
+ // The tonal Restart button inherits the error tint via the
65
+ // established Alert child-selector trick — contrast-validated.
66
+ "ds:[&_[data-intent=tonal]]:bg-[color:var(--error-foreground)]",
67
+ "ds:[&_[data-intent=tonal]]:text-[color:var(--background)]"
68
+ ].join(" ")
69
+ }
70
+ },
71
+ defaultVariants: {
72
+ size: "md",
73
+ tone: "running"
74
+ }
75
+ }
76
+ ), cn = {
77
+ sm: "ds:size-4",
78
+ md: "ds:size-5",
79
+ lg: "ds:size-6"
80
+ };
81
+ function ln(n, e) {
82
+ return n <= 0 ? "expired" : n <= e ? "warning" : "running";
83
+ }
84
+ function un(n) {
85
+ return n <= 0 ? 0 : n <= 30 * g ? 10 : n <= 60 * g ? 30 : Math.floor(n / h) * 60;
86
+ }
87
+ function mn(n) {
88
+ return n instanceof Date ? n.getTime() : typeof n == "number" ? n : new Date(n).getTime();
89
+ }
90
+ function fn(n, e, d) {
91
+ const [w, s] = X(() => Date.now()), c = n !== void 0;
92
+ return b(() => {
93
+ if (c || e === void 0 || (s(Date.now()), e - Date.now() <= 0)) return;
94
+ const a = window.setInterval(
95
+ () => {
96
+ const l = Date.now();
97
+ s(l), e - l <= 0 && window.clearInterval(a);
98
+ },
99
+ Math.max(1, d)
100
+ );
101
+ return () => window.clearInterval(a);
102
+ }, [c, e, d]), c ? Math.max(0, n) : e === void 0 ? 0 : Math.max(0, e - w);
103
+ }
104
+ const gn = H(
105
+ ({
106
+ remainingMs: n,
107
+ expiresAt: e,
108
+ totalMs: d = tn,
109
+ warnAtMs: w = an,
110
+ size: s = "md",
111
+ showProgress: c = !1,
112
+ onExpire: a,
113
+ onRestart: l,
114
+ restarting: x = !1,
115
+ tickMs: L = 1e3,
116
+ locale: M,
117
+ label: D,
118
+ className: I,
119
+ id: C,
120
+ ...j
121
+ }, R) => {
122
+ const { t: o, i18n: A } = $(), y = M ?? A.language ?? "en";
123
+ b(() => {
124
+ }, [n, e]);
125
+ const F = v(
126
+ () => n === void 0 && e !== void 0 ? mn(e) : void 0,
127
+ [n, e]
128
+ ), i = fn(n, F, L), u = ln(i, w), r = u === "expired", f = W(!1);
129
+ b(() => {
130
+ i <= 0 && !f.current && (f.current = !0, a == null || a()), i > 0 && f.current && (f.current = !1);
131
+ }, [i, a]);
132
+ const p = v(
133
+ () => new Intl.NumberFormat(y, { maximumFractionDigits: 0 }),
134
+ [y]
135
+ ), _ = Math.ceil(i / g), N = Math.floor(_ / 60), S = _ % 60, B = N > 0 ? o("sessionCountdown.timeMinutesSeconds", {
136
+ minutes: p.format(N),
137
+ seconds: p.format(S)
138
+ }) : o("sessionCountdown.timeSecondsOnly", {
139
+ seconds: p.format(S)
140
+ }), m = un(i), T = v(() => m <= 0 ? o("sessionCountdown.expiredAnnouncement") : m < 60 ? o("sessionCountdown.secondsRemaining", { count: m }) : o("sessionCountdown.minutesRemaining", { count: m / 60 }), [m, o]), O = o("sessionCountdown.expiredAnnouncement"), z = D ?? (r ? void 0 : o("sessionCountdown.ariaLabel", { time: T })), U = dn({
141
+ size: s,
142
+ tone: u,
143
+ className: I
144
+ }), K = r ? "alert" : "timer";
145
+ Y(rn, null, C);
146
+ const P = r ? E : u === "warning" ? nn : sn, V = Math.min(d, Math.max(0, d - i)), q = o(r ? "sessionCountdown.expired" : u === "warning" ? "sessionCountdown.warning" : "sessionCountdown.remainingBanner", { time: B });
147
+ return /* @__PURE__ */ k(
148
+ "div",
149
+ {
150
+ ref: R,
151
+ id: C,
152
+ role: K,
153
+ "aria-label": z,
154
+ "data-component": "session-countdown",
155
+ "data-tone": u,
156
+ className: U,
157
+ ...j,
158
+ children: [
159
+ r ? /* @__PURE__ */ t("span", { className: "ds:sr-only", children: O }) : null,
160
+ /* @__PURE__ */ k("div", { className: "ds:flex ds:w-full ds:items-center ds:gap-[var(--spacing-sm)]", children: [
161
+ /* @__PURE__ */ t("span", { className: `ds:shrink-0 ${cn[s]}`, children: /* @__PURE__ */ t(P, { "aria-hidden": "true", className: "ds:size-full" }) }),
162
+ /* @__PURE__ */ t(
163
+ "p",
164
+ {
165
+ className: [
166
+ "ds:min-w-0 ds:flex-1",
167
+ s === "lg" ? "type-body" : "type-body-sm"
168
+ ].join(" "),
169
+ "aria-hidden": "true",
170
+ children: q
171
+ }
172
+ ),
173
+ r && l ? /* @__PURE__ */ t(
174
+ G,
175
+ {
176
+ type: "button",
177
+ intent: "tonal",
178
+ size: s === "lg" ? "lg" : "md",
179
+ loading: x,
180
+ disabled: x,
181
+ onClick: l,
182
+ className: "ds:shrink-0",
183
+ children: o("sessionCountdown.restart")
184
+ }
185
+ ) : null
186
+ ] }),
187
+ c && !r ? (
188
+ // Elapsed fraction flows through the existing Progress API
189
+ // (value/max) — never a hand-rolled inline-width bar. The bar
190
+ // is aria-hidden: the timer region already conveys remaining
191
+ // time, so a second progressbar would double-announce.
192
+ /* @__PURE__ */ t("div", { "aria-hidden": "true", className: "ds:w-full", children: /* @__PURE__ */ t(
193
+ J,
194
+ {
195
+ value: V,
196
+ max: d,
197
+ shape: "bar",
198
+ size: s,
199
+ ariaLabel: o("sessionCountdown.progressLabel")
200
+ }
201
+ ) })
202
+ ) : null,
203
+ /* @__PURE__ */ t(Q, { politeness: "polite", atomic: !0, children: r ? "" : T })
204
+ ]
205
+ }
206
+ );
207
+ }
208
+ );
209
+ gn.displayName = "SessionCountdown";
210
+ export {
211
+ gn as S,
212
+ rn as s
213
+ };
214
+ //# sourceMappingURL=session-countdown-LPnhTHjn.js.map
@@ -1,40 +1,25 @@
1
- import { c as a } from "./createLucideIcon-CrFbzy84.js";
1
+ import { c as e } from "./createLucideIcon-CrFbzy84.js";
2
2
  /**
3
3
  * @license lucide-react v1.8.0 - ISC
4
4
  *
5
5
  * This source code is licensed under the ISC license.
6
6
  * See the LICENSE file in the root directory of this source tree.
7
7
  */
8
- const e = [
9
- [
10
- "path",
11
- {
12
- d: "M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",
13
- key: "mvr1a0"
14
- }
15
- ]
16
- ], d = a("heart", e);
17
- /**
18
- * @license lucide-react v1.8.0 - ISC
19
- *
20
- * This source code is licensed under the ISC license.
21
- * See the LICENSE file in the root directory of this source tree.
22
- */
23
- const t = [
8
+ const a = [
24
9
  ["path", { d: "m5 8 6 6", key: "1wu5hv" }],
25
10
  ["path", { d: "m4 14 6-6 2-3", key: "1k1g8d" }],
26
11
  ["path", { d: "M2 5h12", key: "or177f" }],
27
12
  ["path", { d: "M7 2h1", key: "1t2jsx" }],
28
13
  ["path", { d: "m22 22-5-10-5 10", key: "don7ne" }],
29
14
  ["path", { d: "M14 18h6", key: "1m8k6r" }]
30
- ], h = a("languages", t);
15
+ ], t = e("languages", a);
31
16
  /**
32
17
  * @license lucide-react v1.8.0 - ISC
33
18
  *
34
19
  * This source code is licensed under the ISC license.
35
20
  * See the LICENSE file in the root directory of this source tree.
36
21
  */
37
- const c = [
22
+ const d = [
38
23
  [
39
24
  "path",
40
25
  {
@@ -43,10 +28,9 @@ const c = [
43
28
  }
44
29
  ],
45
30
  ["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
46
- ], n = a("shield-check", c);
31
+ ], c = e("shield-check", d);
47
32
  export {
48
- d as H,
49
- h as L,
50
- n as S
33
+ t as L,
34
+ c as S
51
35
  };
52
- //# sourceMappingURL=shield-check-BhHyReu8.js.map
36
+ //# sourceMappingURL=shield-check-C73ma9Cs.js.map
@@ -4,7 +4,7 @@ import * as I from "@radix-ui/react-dialog";
4
4
  import * as H from "@radix-ui/react-collapsible";
5
5
  import * as A from "@radix-ui/react-accordion";
6
6
  import * as S from "@radix-ui/react-tooltip";
7
- import { a as is } from "./accordion-bSU21uTV.js";
7
+ import { a as is } from "./accordion-9lJSMMsZ.js";
8
8
  import { Slot as ns } from "@radix-ui/react-slot";
9
9
  import { c as B } from "./index-D2ZczOXr.js";
10
10
  import { useTranslation as D } from "react-i18next";
@@ -1119,4 +1119,4 @@ export {
1119
1119
  gs as s,
1120
1120
  y as u
1121
1121
  };
1122
- //# sourceMappingURL=sidebar-BbR8f6oe.js.map
1122
+ //# sourceMappingURL=sidebar-_vJXI9rB.js.map
@@ -0,0 +1,315 @@
1
+ import { jsxs as d, jsx as r } from "react/jsx-runtime";
2
+ import { forwardRef as ie, useId as oe, useMemo as M, useRef as k, useState as b, useEffect as L, useCallback as c, useImperativeHandle as de } from "react";
3
+ import { c as i } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as ce } from "react-i18next";
5
+ import { P as le } from "./pdf-viewer-Cy6Ul3hZ.js";
6
+ import { S as ge } from "./signature-capture-BRzCklg4.js";
7
+ import { u as me } from "./registry-nPAVE19X.js";
8
+ import { C as O } from "./circle-check-9AeSgJD_.js";
9
+ const ue = {
10
+ id: "sign-document",
11
+ capabilities: ["submit"],
12
+ state: {
13
+ isReadComplete: {
14
+ type: "boolean",
15
+ descriptionKey: "signDocument.agent.state.isReadComplete",
16
+ description: "True when the reader has reached the last page (or read-gating is off).",
17
+ read: (n) => n.isReadComplete()
18
+ }
19
+ },
20
+ actions: {
21
+ submit: {
22
+ safety: "write",
23
+ descriptionKey: "signDocument.agent.actions.confirm",
24
+ description: "Confirm the current signature, emitting it via onSign. No-op if unsigned.",
25
+ invoke: (n) => n.confirm()
26
+ },
27
+ reset: {
28
+ safety: "destructive",
29
+ descriptionKey: "signDocument.agent.actions.reset",
30
+ description: "Clear the captured signature and return to unsigned.",
31
+ invoke: (n) => {
32
+ n.reset();
33
+ }
34
+ }
35
+ },
36
+ domHooks: {
37
+ root: {
38
+ attr: "data-component",
39
+ value: "sign-document",
40
+ description: "Marks the SignDocument wrapper."
41
+ },
42
+ instanceId: {
43
+ attr: "data-component-id",
44
+ sourceProp: "id",
45
+ description: "Sourced from the id prop."
46
+ }
47
+ }
48
+ }, pe = i(
49
+ [
50
+ "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
51
+ "ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--card-border)]",
52
+ "ds:shadow-[var(--shadow-card)] ds:[.theme-accessible_&]:border-2",
53
+ "ds:bg-[var(--background)] ds:text-[var(--foreground)]",
54
+ "ds:p-[var(--spacing-md)]",
55
+ "ds:aria-disabled:opacity-[var(--opacity-50)] ds:aria-disabled:cursor-not-allowed"
56
+ ].join(" ")
57
+ ), fe = i(
58
+ ["type-heading-sm ds:text-[var(--foreground)]"].join(" ")
59
+ ), ve = i(
60
+ ["ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]"].join(" ")
61
+ ), be = i(
62
+ ["type-body-sm ds:font-medium ds:text-[var(--foreground)]"].join(" ")
63
+ ), he = i(
64
+ [
65
+ "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
66
+ "type-body-sm ds:text-[var(--muted-foreground)]"
67
+ ].join(" ")
68
+ ), ye = i(
69
+ [
70
+ "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
71
+ "type-body-sm",
72
+ "ds:rounded-[var(--radius-sm)]",
73
+ "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
74
+ "ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)]",
75
+ "ds:bg-[color-mix(in_srgb,var(--info)_10%,transparent)]",
76
+ "ds:text-[var(--foreground)]",
77
+ "ds:border ds:border-[color:color-mix(in_srgb,var(--info)_40%,transparent)]"
78
+ ].join(" ")
79
+ ), xe = i(
80
+ [
81
+ "ds:inline-flex ds:items-center ds:justify-center ds:self-start",
82
+ "ds:min-block-size-[var(--min-target-size)]",
83
+ "ds:min-inline-size-[var(--min-target-size)]",
84
+ "ds:gap-[var(--spacing-xs)]",
85
+ "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
86
+ "ds:rounded-[var(--radius-sm)]",
87
+ "ds:bg-[var(--primary)] ds:text-[var(--primary-foreground)]",
88
+ "ds:text-[length:var(--font-size-sm)] ds:font-medium",
89
+ "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
90
+ "ds:hover:bg-[var(--primary-hover)]",
91
+ "ds:focus-visible:outline-[length:var(--focus-ring-width)]",
92
+ "ds:focus-visible:outline-solid",
93
+ "ds:focus-visible:outline-[var(--ring)]",
94
+ "ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
95
+ "ds:forced-colors:focus-visible:outline-[CanvasText]",
96
+ "ds:disabled:opacity-[var(--opacity-50)] ds:disabled:cursor-not-allowed",
97
+ "ds:disabled:hover:bg-[var(--primary)]"
98
+ ].join(" ")
99
+ ), De = i(
100
+ [
101
+ "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
102
+ "ds:rounded-[var(--radius-sm)]",
103
+ "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
104
+ "ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]",
105
+ "ds:bg-[color-mix(in_srgb,var(--success)_12%,transparent)]",
106
+ "ds:text-[var(--foreground)]",
107
+ "ds:border ds:border-[color:color-mix(in_srgb,var(--success)_45%,transparent)]"
108
+ ].join(" ")
109
+ );
110
+ function Z(n, m) {
111
+ const a = new Date(n);
112
+ if (Number.isNaN(a.getTime())) return n;
113
+ try {
114
+ return new Intl.DateTimeFormat(m, {
115
+ dateStyle: "long",
116
+ timeStyle: "short"
117
+ }).format(a);
118
+ } catch {
119
+ return a.toISOString();
120
+ }
121
+ }
122
+ const Se = ie(
123
+ ({
124
+ id: n,
125
+ src: m,
126
+ documentTitle: a,
127
+ requireReadToEnd: _ = !0,
128
+ onSign: h,
129
+ onError: y,
130
+ signedAt: x = null,
131
+ disabled: D = !1,
132
+ readOnly: S = !1,
133
+ ariaLabel: N,
134
+ className: G
135
+ }, J) => {
136
+ const { t: s, i18n: V } = ce(), z = oe(), u = M(
137
+ () => `sign-doc-${z.replace(/[^a-zA-Z0-9-_]/g, "")}`,
138
+ [z]
139
+ ), R = `${u}-doc-heading`, H = `${u}-sign-label`, Q = `${u}-live`, C = `${u}-gate-hint`, p = k(null), [E, w] = b(0), [U, $] = b(1), [W, j] = b(!1), [T, l] = b(!1), g = x != null, X = D || S || g, f = k(h), v = k(y);
140
+ L(() => {
141
+ f.current = h, v.current = y;
142
+ }, [h, y]), L(() => {
143
+ j(!1), w(0), $(1), l(!1);
144
+ }, [m]);
145
+ const Y = c(
146
+ (e) => {
147
+ w(e.numPages), e.numPages <= 1 && j(!0);
148
+ },
149
+ []
150
+ ), q = c((e) => {
151
+ $(e), w((t) => (t > 0 && e >= t && j(!0), t));
152
+ }, []), ee = c((e) => {
153
+ var t;
154
+ (t = v.current) == null || t.call(v, e);
155
+ }, []), B = !g && !S;
156
+ L(() => {
157
+ if (!B) return;
158
+ const e = () => {
159
+ const F = p.current;
160
+ F && l(!F.isEmpty());
161
+ };
162
+ e();
163
+ const t = window.setInterval(e, 200);
164
+ return () => window.clearInterval(t);
165
+ }, [B]);
166
+ const o = !_ || W, K = !(!X && o) || !T, se = c((e) => {
167
+ var t;
168
+ (t = f.current) == null || t.call(f, e);
169
+ }, []), I = c(async () => {
170
+ const e = p.current;
171
+ return e ? e.confirm() : null;
172
+ }, []), A = c(() => {
173
+ var e;
174
+ (e = p.current) == null || e.clear(), l(!1);
175
+ }, []), P = M(
176
+ () => ({
177
+ reset: A,
178
+ confirm: I,
179
+ isReadComplete: () => o
180
+ }),
181
+ [A, I, o]
182
+ );
183
+ de(J, () => P, [P]), me(ue, P, n);
184
+ const ne = N ?? (a ? s("signDocument.regionLabelNamed", { title: a }) : s("signDocument.regionLabel")), ae = a ?? s("signDocument.documentLabel"), te = g ? s("signDocument.signedOn", {
185
+ date: Z(x, V.language)
186
+ }) : o ? s("signDocument.readyToSign") : "", re = o ? T ? "" : s("signDocument.signToEnable") : s("signDocument.scrollToEnd");
187
+ return /* @__PURE__ */ d(
188
+ "div",
189
+ {
190
+ role: "group",
191
+ "aria-labelledby": !N && a ? R : void 0,
192
+ "aria-label": N || !a ? ne : void 0,
193
+ "aria-disabled": D || void 0,
194
+ className: [pe(), G].filter(Boolean).join(" "),
195
+ "data-component": "sign-document",
196
+ "data-component-id": n,
197
+ "data-signed": g || void 0,
198
+ children: [
199
+ /* @__PURE__ */ r(
200
+ "span",
201
+ {
202
+ role: "status",
203
+ "aria-live": "polite",
204
+ "aria-atomic": "true",
205
+ className: "ds:sr-only",
206
+ "data-testid": "sign-document-live",
207
+ id: Q,
208
+ children: te
209
+ }
210
+ ),
211
+ /* @__PURE__ */ r("span", { className: "ds:sr-only", id: C, children: re }),
212
+ a ? /* @__PURE__ */ r("h2", { id: R, className: fe(), children: a }) : null,
213
+ /* @__PURE__ */ r(
214
+ le,
215
+ {
216
+ src: m,
217
+ ariaLabel: ae,
218
+ onLoadComplete: Y,
219
+ onPageChange: q,
220
+ onError: ee
221
+ }
222
+ ),
223
+ g ? (
224
+ /* ---- Already-signed, read-only ---- */
225
+ /* @__PURE__ */ d(
226
+ "div",
227
+ {
228
+ className: De(),
229
+ "data-testid": "sign-document-signed",
230
+ children: [
231
+ /* @__PURE__ */ r(
232
+ O,
233
+ {
234
+ "aria-hidden": "true",
235
+ className: "ds:size-5 ds:text-[var(--success)] ds:shrink-0"
236
+ }
237
+ ),
238
+ /* @__PURE__ */ d("span", { className: "type-body-sm", children: [
239
+ /* @__PURE__ */ r("strong", { className: "ds:font-semibold", children: s("signDocument.signed") }),
240
+ " — ",
241
+ s("signDocument.signedOn", {
242
+ date: Z(x, V.language)
243
+ })
244
+ ] })
245
+ ]
246
+ }
247
+ )
248
+ ) : S ? null : (
249
+ /* ---- Sign surface ---- */
250
+ /* @__PURE__ */ d(
251
+ "div",
252
+ {
253
+ className: ve(),
254
+ role: "group",
255
+ "aria-labelledby": H,
256
+ "aria-describedby": C,
257
+ children: [
258
+ /* @__PURE__ */ d("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
259
+ /* @__PURE__ */ r("span", { id: H, className: be(), children: s("signDocument.signatureSection") }),
260
+ E > 0 ? /* @__PURE__ */ r(
261
+ "span",
262
+ {
263
+ className: he(),
264
+ "data-testid": "sign-document-progress",
265
+ children: s("signDocument.pageProgress", {
266
+ current: U,
267
+ total: E
268
+ })
269
+ }
270
+ ) : null
271
+ ] }),
272
+ _ && !o ? /* @__PURE__ */ r("p", { className: ye(), "data-testid": "sign-document-hint", children: s("signDocument.scrollToEnd") }) : null,
273
+ /* @__PURE__ */ r(
274
+ ge,
275
+ {
276
+ ref: p,
277
+ ariaLabel: s("signDocument.signatureSection"),
278
+ disabled: D || !o,
279
+ onStart: () => l(!0),
280
+ onClear: () => l(!1),
281
+ onConfirm: se
282
+ }
283
+ ),
284
+ /* @__PURE__ */ d(
285
+ "button",
286
+ {
287
+ type: "button",
288
+ onClick: () => {
289
+ K || I();
290
+ },
291
+ disabled: K,
292
+ "aria-describedby": C,
293
+ className: xe(),
294
+ "data-testid": "sign-document-confirm",
295
+ children: [
296
+ /* @__PURE__ */ r(O, { "aria-hidden": "true", className: "ds:size-4" }),
297
+ s("signDocument.confirm")
298
+ ]
299
+ }
300
+ )
301
+ ]
302
+ }
303
+ )
304
+ )
305
+ ]
306
+ }
307
+ );
308
+ }
309
+ );
310
+ Se.displayName = "SignDocument";
311
+ export {
312
+ Se as S,
313
+ ue as s
314
+ };
315
+ //# sourceMappingURL=sign-document-DId1p-nn.js.map
@@ -2,7 +2,7 @@ import { jsx as e } from "react/jsx-runtime";
2
2
  import { forwardRef as L, useRef as c, useEffect as b } from "react";
3
3
  import { useTranslation as y } from "react-i18next";
4
4
  import { B as E } from "./button-DD_0Xdmr.js";
5
- import { L as I } from "./logo-_Z-jLq80.js";
5
+ import { L as I } from "./logo-yituK7sE.js";
6
6
  import { S as g } from "./spinner-CCByyvcb.js";
7
7
  const A = /* @__PURE__ */ new Set([
8
8
  "primary",
@@ -46,4 +46,4 @@ B.displayName = "SignInWithAlfadocsButton";
46
46
  export {
47
47
  B as S
48
48
  };
49
- //# sourceMappingURL=sign-in-with-alfadocs-button-BI0fVonM.js.map
49
+ //# sourceMappingURL=sign-in-with-alfadocs-button-DeHBFRNS.js.map