@alfadocs/ui-kit 1.71.0 → 1.72.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 (328) hide show
  1. package/dist/_chunks/{actions-cell-renderer-BXCpK2_0.js → actions-cell-renderer-B1yaOfQM.js} +3 -3
  2. package/dist/_chunks/{agenda-tray-CfwylhWf.js → agenda-tray-D-jvptdo.js} +3 -3
  3. package/dist/_chunks/{ai-credits-exhausted-notice-Bg8NpW2K.js → ai-credits-exhausted-notice-CwZnSACy.js} +2 -2
  4. package/dist/_chunks/{ai-credits-notice-DQ-r3iQU.js → ai-credits-notice-BNFcQoXo.js} +3 -3
  5. package/dist/_chunks/{ai-permission-notice-C00i6VhY.js → ai-permission-notice-CoW22jx1.js} +2 -2
  6. package/dist/_chunks/{ai-prompt-input-DzgyoKyk.js → ai-prompt-input-M6u29f87.js} +2 -2
  7. package/dist/_chunks/{alia-sidebar-DEMMoefU.js → alia-sidebar-DZoyUFW8.js} +292 -286
  8. package/dist/_chunks/{anamnesis-card-Bey9qQu4.js → anamnesis-card-BcadMmEM.js} +2 -2
  9. package/dist/_chunks/{anamnesis-summary-rows-rNwSrNWZ.js → anamnesis-summary-rows-BedVmSAB.js} +8 -8
  10. package/dist/_chunks/{appointment-peek-CpcqB8oO.js → appointment-peek-39BwVMUf.js} +3 -3
  11. package/dist/_chunks/{appointment-timeline-VFP6HoXT.js → appointment-timeline-CKwMXUid.js} +4 -4
  12. package/dist/_chunks/{appointment-tray-B3PDER3I.js → appointment-tray-Dwc8MSIQ.js} +3 -3
  13. package/dist/_chunks/{audio-recorder-4Ll0pwYK.js → audio-recorder-m7Jqvvcl.js} +3 -3
  14. package/dist/_chunks/{balance-badge-cell-BG3DMly4.js → balance-badge-cell-DG5JWB2p.js} +4 -4
  15. package/dist/_chunks/{bishop-score-Df8nF1qg.js → bishop-score-CdbU9Nl4.js} +2 -2
  16. package/dist/_chunks/{bmi-calculator-DjmQ04Ch.js → bmi-calculator-DnfiDh4Q.js} +2 -2
  17. package/dist/_chunks/{booking-B1pDbERi.js → booking-DNJO0tnU.js} +5 -5
  18. package/dist/_chunks/{button-D-MQxsA_.js → button-DohK_Ak_.js} +40 -27
  19. package/dist/_chunks/{button-group-DCOJhvm3.js → button-group-ZVb1Q-w4.js} +2 -2
  20. package/dist/_chunks/{calculator-dialog-BUfaWqvu.js → calculator-dialog-BsVVb8cT.js} +2 -2
  21. package/dist/_chunks/{calendar-BvOM8rG3.js → calendar-ClB-jWH1.js} +2 -2
  22. package/dist/_chunks/calendar-appointment-editor-dialog-Lji2y0qJ.js +10986 -0
  23. package/dist/_chunks/{care-plan-card-DJzbwJLl.js → care-plan-card-BYCPNDvA.js} +2 -2
  24. package/dist/_chunks/{care-plan-entry-card-DPJcP34v.js → care-plan-entry-card-4VaY2c96.js} +2 -2
  25. package/dist/_chunks/{care-plan-header-1HzbkYcR.js → care-plan-header-BzsAg6oY.js} +2 -2
  26. package/dist/_chunks/{carousel.agent-BaRsN-8H.js → carousel.agent-CkDXR3-8.js} +2 -2
  27. package/dist/_chunks/{chart-CwmyCuWe.js → chart-D4huJSru.js} +3 -3
  28. package/dist/_chunks/{chat-input-HtTbUUD6.js → chat-input-DwQ4_WXK.js} +31 -31
  29. package/dist/_chunks/{chat-message-C2VXQMoB.js → chat-message-CmFJdEre.js} +3 -3
  30. package/dist/_chunks/{code-block-RSKdF3E-.js → code-block-BTsCXVGI.js} +2 -2
  31. package/dist/_chunks/{connection-status-BOZC5QU5.js → connection-status-CVyCqxiY.js} +3 -3
  32. package/dist/_chunks/{contact-profile-card-CAwwOqHl.js → contact-profile-card-DKk94l-d.js} +2 -2
  33. package/dist/_chunks/{control-room-rail-BB6rCDWI.js → control-room-rail-CKZ2nemY.js} +3 -3
  34. package/dist/_chunks/{copy-field-BCT7APRE.js → copy-field-hgVSc51W.js} +2 -2
  35. package/dist/_chunks/{cycle-calculator-D2Y4LvgC.js → cycle-calculator-Ycp3li61.js} +2 -2
  36. package/dist/_chunks/{dashboard-grid-7JzaiKnk.js → dashboard-grid-DwJ_HV3d.js} +2 -2
  37. package/dist/_chunks/{data-table-Cty4-Jht.js → data-table-DTKGWUQm.js} +6 -6
  38. package/dist/_chunks/{data-table-tabs-BfrnefV5.js → data-table-tabs-DlTPtqoI.js} +3 -3
  39. package/dist/_chunks/{description-list-DQQ2OA_t.js → description-list-BxzDN9o2.js} +2 -2
  40. package/dist/_chunks/{dev-bypass-button--CPzzRSj.js → dev-bypass-button-B7ePcJcg.js} +2 -2
  41. package/dist/_chunks/{dialog-D6fkpRc4.js → dialog-C7RWaH08.js} +63 -56
  42. package/dist/_chunks/{document-preview-513f3iPn.js → document-preview-QEbr7jp1.js} +2 -2
  43. package/dist/_chunks/{document-scanner-Bd3wbzpI.js → document-scanner-BQP0Rqrt.js} +2 -2
  44. package/dist/_chunks/{due-date-calculator-41uZDkVR.js → due-date-calculator-B0gyOijA.js} +2 -2
  45. package/dist/_chunks/{editable-currency-cell-renderer-1ijmzNWh.js → editable-currency-cell-renderer-rWYiF4EI.js} +3 -3
  46. package/dist/_chunks/{editable-description-DnAFi360.js → editable-description-KU56SP4P.js} +3 -3
  47. package/dist/_chunks/{editor-overlay-CpVO1-Kk.js → editor-overlay-Dc8uVxEp.js} +2 -2
  48. package/dist/_chunks/{empty-state-pL1qum99.js → empty-state-DwJ5YNzz.js} +2 -2
  49. package/dist/_chunks/{entity-summary-C2B8yNmc.js → entity-summary-BLxzSSXK.js} +3 -3
  50. package/dist/_chunks/{error-boundary-Dzgu3O6W.js → error-boundary-tAn_GuCu.js} +2 -2
  51. package/dist/_chunks/{error-page-DirZKDz2.js → error-page-Bhai-spN.js} +2 -2
  52. package/dist/_chunks/{face-scheme-CSJdRNad.js → face-scheme-BIPJqw9f.js} +5 -5
  53. package/dist/_chunks/{fetal-weight-DycD_Vqr.js → fetal-weight-CrtBFJl-.js} +2 -2
  54. package/dist/_chunks/{field-array-BJYc1xSu.js → field-array-CA-gn526.js} +3 -3
  55. package/dist/_chunks/{file-manager-D4cPnRhL.js → file-manager-Ct5QpZZI.js} +8 -8
  56. package/dist/_chunks/{finished-terminal-DuF3xrUv.js → finished-terminal-D8ohcFVS.js} +2 -2
  57. package/dist/_chunks/{fiscal-code-input-DwHb2nVW.js → fiscal-code-input-BzWmNDnl.js} +2 -2
  58. package/dist/_chunks/{forgot-password-form-BGPc8TGr.js → forgot-password-form-D6kB72OD.js} +2 -2
  59. package/dist/_chunks/{freemium-paywall-C73C8Rgd.js → freemium-paywall-CM0zQSDE.js} +2 -2
  60. package/dist/_chunks/{gestational-age-calculator-Du53p8MH.js → gestational-age-calculator-Bu_a-K9z.js} +2 -2
  61. package/dist/_chunks/{hcg-doubling-DwTcjfke.js → hcg-doubling-BnopYgd-.js} +2 -2
  62. package/dist/_chunks/{header-_TppWBpK.js → header-l_B8MV0g.js} +2 -2
  63. package/dist/_chunks/header-settings-DBlTL6Qj.js +516 -0
  64. package/dist/_chunks/{heatmap-DbZIQg14.js → heatmap-Ba9cgfSY.js} +6 -6
  65. package/dist/_chunks/{help-me-write-templates-5WkUfvc_.js → help-me-write-templates-Ds1FY-WY.js} +7 -7
  66. package/dist/_chunks/{hover-card-CTNhQXWS.js → hover-card-CuRIA4wN.js} +2 -2
  67. package/dist/_chunks/{icon-button-C_1TgRiK.js → icon-button-S8_weU3g.js} +2 -2
  68. package/dist/_chunks/{icon-button-group-NIHji7_y.js → icon-button-group-CRKFR48b.js} +4 -8
  69. package/dist/_chunks/{icon-picker-Dq4O32K8.js → icon-picker-Bkm9m7ju.js} +3 -3
  70. package/dist/_chunks/{image-cropper-s8ej8cxa.js → image-cropper-Ch80rFdt.js} +2 -2
  71. package/dist/_chunks/{info-tip-cYszyg6h.js → info-tip-Cfd5SKbY.js} +2 -2
  72. package/dist/_chunks/{insert-result-h3WL-gMo.js → insert-result-CDMMt7q8.js} +2 -2
  73. package/dist/_chunks/{key-value-pair-BscGwZsJ.js → key-value-pair-BoXOtBL1.js} +2 -2
  74. package/dist/_chunks/{kit-extensions-CYvLL4ee.js → kit-extensions-DgBi3tsK.js} +6 -6
  75. package/dist/_chunks/{link-cell-renderer-DtIsQWDO.js → link-cell-renderer-BDxxpfJM.js} +2 -2
  76. package/dist/_chunks/loading-guard-C1gbJBA4.js +17 -0
  77. package/dist/_chunks/{locale-picker-CeveTnDK.js → locale-picker-KT-Vz3bx.js} +3 -3
  78. package/dist/_chunks/{login-dev-card-CWpoTuVY.js → login-dev-card-pnJbVaoQ.js} +2 -2
  79. package/dist/_chunks/{map-view-CtohteZD.js → map-view-C6MIVaqn.js} +2 -2
  80. package/dist/_chunks/{marketplace-app-shell-CcLQ0Dn-.js → marketplace-app-shell-B0ix9yNI.js} +4 -4
  81. package/dist/_chunks/{message-card-C_ksqIYM.js → message-card-CvCnCssc.js} +3 -3
  82. package/dist/_chunks/{message-tray-DCoQ4GQb.js → message-tray-IJYvy6Cf.js} +4 -4
  83. package/dist/_chunks/{notes-panel-BXN46XkF.js → notes-panel-C_QshXyI.js} +5 -5
  84. package/dist/_chunks/{notification-card-c2oX8j3F.js → notification-card-CPW4poUr.js} +3 -3
  85. package/dist/_chunks/{notification-tray-Cp18MW5b.js → notification-tray-0OkA2duS.js} +4 -4
  86. package/dist/_chunks/{optical-prescription-D5c7FBlT.js → optical-prescription-CMM1Y6Xg.js} +2 -2
  87. package/dist/_chunks/{panel-subview-BPU7220K.js → panel-subview-DCyvn-49.js} +2 -2
  88. package/dist/_chunks/{patient-details-qWOsn1MX.js → patient-details-Cd_dCqkg.js} +3 -3
  89. package/dist/_chunks/{patient-field-row-CAl5ydtX.js → patient-field-row-D6Ftm46u.js} +6 -6
  90. package/dist/_chunks/{patient-search-BADdx3M1.js → patient-search-DuBdxv1w.js} +3 -3
  91. package/dist/_chunks/{patient-summary-card-BhuRh9AE.js → patient-summary-card-BSOHR4Ol.js} +5 -5
  92. package/dist/_chunks/{payment-automation-upsell-CiwF5UrC.js → payment-automation-upsell-AQpHOS1X.js} +2 -2
  93. package/dist/_chunks/{payment-request-card-bysjRZrP.js → payment-request-card-MndSlVoK.js} +3 -3
  94. package/dist/_chunks/{periodontal-chart-DCcOEYC6.js → periodontal-chart-_y4Ck7_P.js} +2 -2
  95. package/dist/_chunks/{periodontal-chart-card-CxdjXFb3.js → periodontal-chart-card-Bx6PeS3b.js} +2 -2
  96. package/dist/_chunks/{popover-4ZVtH_At.js → popover-Da1ekjV1.js} +2 -2
  97. package/dist/_chunks/{practice-results-BzThnpnm.js → practice-results-B4Z5q46r.js} +5 -5
  98. package/dist/_chunks/{pregnancy-dating-EFcFUJkQ.js → pregnancy-dating-CvNFirHt.js} +2 -2
  99. package/dist/_chunks/{pregnancy-weight-gain-BVvyL-j1.js → pregnancy-weight-gain--Bqv6AWu.js} +2 -2
  100. package/dist/_chunks/{privacy-lock-CEYJ8ehu.js → privacy-lock-CcrjIbBv.js} +3 -3
  101. package/dist/_chunks/{privacy-mask-CCz9zuIh.js → privacy-mask-BDVkikTm.js} +2 -2
  102. package/dist/_chunks/{product-hub-panel-YuFbNPlT.js → product-hub-panel-Blag8t8f.js} +3 -3
  103. package/dist/_chunks/{public-header.agent-DXRA7ebK.js → public-header.agent-DPPdCBi_.js} +3 -3
  104. package/dist/_chunks/{radiograph-panel.agent-4UllIoTQ.js → radiograph-panel.agent-ESnkuDfH.js} +5 -5
  105. package/dist/_chunks/{registration-form-1B0PTDal.js → registration-form-BGSVMAga.js} +3 -3
  106. package/dist/_chunks/{reviews-panel-sbsVmmCA.js → reviews-panel-UzQQLb-z.js} +4 -4
  107. package/dist/_chunks/{rich-text-editor-56dSsyZI.js → rich-text-editor-BXFgcvBW.js} +8 -8
  108. package/dist/_chunks/{session-countdown-DWY61IcV.js → session-countdown-C4tzbJVc.js} +22 -23
  109. package/dist/_chunks/{sheet-D2PfJl8n.js → sheet-uZZXaO_S.js} +2 -2
  110. package/dist/_chunks/sign-in-with-alfadocs-button-DzrNgbWv.js +62 -0
  111. package/dist/_chunks/{signature-request-DAmNj_uq.js → signature-request-ldmXj2X6.js} +5 -5
  112. package/dist/_chunks/{signed-out-frame-Rg_GVDnl.js → signed-out-frame-G-3ATOdu.js} +3 -3
  113. package/dist/_chunks/{slot-grid-D_gix9mJ.js → slot-grid-uA9j7Nik.js} +4 -4
  114. package/dist/_chunks/{social-sign-in-button-yUqwhnPZ.js → social-sign-in-button-BqYZxbXI.js} +50 -34
  115. package/dist/_chunks/{streaming-text-DbqKTsmj.js → streaming-text-Nb3Q7L94.js} +2 -2
  116. package/dist/_chunks/{task-card-Ci2XbLmq.js → task-card-C4HJUKVw.js} +2 -2
  117. package/dist/_chunks/{task-editor-BomyxGoZ.js → task-editor-BTeUFGUX.js} +201 -201
  118. package/dist/_chunks/{task-tray-Dnc72nl-.js → task-tray-DZQGhDdc.js} +4 -4
  119. package/dist/_chunks/{tasks-panel-ATz9JDy8.js → tasks-panel-Cmr0oMvc.js} +6 -6
  120. package/dist/_chunks/{theme-toggle-DT_Jn4DC.js → theme-toggle-DTrUzIBG.js} +3 -3
  121. package/dist/_chunks/{toast-6T519aLz.js → toast-BNoN8Qjh.js} +2 -2
  122. package/dist/_chunks/{token-insert-menu-CQvV4u1m.js → token-insert-menu-DtAnBd0x.js} +2 -2
  123. package/dist/_chunks/{tool-rail-C-M3eVdY.js → tool-rail-C_9lm0TC.js} +2 -2
  124. package/dist/_chunks/{tooth-scheme-Dkh4JwzT.js → tooth-scheme-COJJkdsi.js} +2 -2
  125. package/dist/_chunks/{unit-converter-CIoTmCmP.js → unit-converter-D59L-gkf.js} +2 -2
  126. package/dist/_chunks/{use-appointment-details-read-1gjZuup4.js → use-appointment-details-read-BWbOiLVw.js} +11 -11
  127. package/dist/_chunks/{voice-control-panel-B8Lrk0C4.js → voice-control-panel-DQJwe6_Q.js} +6 -6
  128. package/dist/_chunks/{wallet-pay-button-DFP5FW0D.js → wallet-pay-button-DajFzhHK.js} +62 -46
  129. package/dist/_chunks/{warning-stack-BhHUmRiD.js → warning-stack-3S7e2q07.js} +3 -3
  130. package/dist/_chunks/{widget-picker-DlNPGcnu.js → widget-picker-B9HpT2Tb.js} +2 -2
  131. package/dist/_chunks/{workflow-map-ln4_OG8A.js → workflow-map-BcfOwsSB.js} +5 -5
  132. package/dist/_chunks/{workflow-webhook-action-D6K7Jgc2.js → workflow-webhook-action-BvVPZVpG.js} +182 -187
  133. package/dist/agent-catalog.json +2 -2
  134. package/dist/agent-i18n/en.json +1 -1
  135. package/dist/components/_shared/compact-editor-fields.d.ts +2 -1
  136. package/dist/components/_shared/loading-guard.d.ts +20 -0
  137. package/dist/components/agenda-tray/index.js +1 -1
  138. package/dist/components/ai-credits-notice/index.js +2 -2
  139. package/dist/components/ai-permission-notice/index.js +1 -1
  140. package/dist/components/ai-prompt-input/index.js +1 -1
  141. package/dist/components/anamnesis-card/index.js +1 -1
  142. package/dist/components/appointment-card/index.js +1 -1
  143. package/dist/components/appointment-details-panel/index.js +1 -1
  144. package/dist/components/appointment-peek/index.js +1 -1
  145. package/dist/components/appointment-timeline/index.js +1 -1
  146. package/dist/components/audio-recorder/index.js +1 -1
  147. package/dist/components/bishop-score/index.js +1 -1
  148. package/dist/components/bmi-calculator/index.js +1 -1
  149. package/dist/components/booking/index.js +1 -1
  150. package/dist/components/button/button.d.ts +7 -0
  151. package/dist/components/button/index.js +2 -2
  152. package/dist/components/button-group/index.js +1 -1
  153. package/dist/components/calculator-dialog/index.js +1 -1
  154. package/dist/components/calendar/index.js +1 -1
  155. package/dist/components/care-plan-card/index.js +1 -1
  156. package/dist/components/care-plan-entry-card/index.js +1 -1
  157. package/dist/components/care-plan-header/index.js +1 -1
  158. package/dist/components/carousel/index.js +1 -1
  159. package/dist/components/chart/index.js +1 -1
  160. package/dist/components/chat-input/index.js +1 -1
  161. package/dist/components/chat-message/index.js +1 -1
  162. package/dist/components/connection-status/index.js +1 -1
  163. package/dist/components/contact-profile-card/index.js +1 -1
  164. package/dist/components/control-room-rail/index.js +1 -1
  165. package/dist/components/copy-field/index.js +1 -1
  166. package/dist/components/cycle-calculator/index.js +1 -1
  167. package/dist/components/dashboard-grid/index.js +1 -1
  168. package/dist/components/data-table/index.js +4 -4
  169. package/dist/components/data-table-tabs/index.js +1 -1
  170. package/dist/components/description-list/index.js +1 -1
  171. package/dist/components/dev-bypass-button/index.js +1 -1
  172. package/dist/components/dialog/dialog.d.ts +8 -0
  173. package/dist/components/dialog/index.js +1 -1
  174. package/dist/components/document-preview/index.js +1 -1
  175. package/dist/components/document-scanner/index.js +1 -1
  176. package/dist/components/due-date-calculator/index.js +1 -1
  177. package/dist/components/editable-description/index.js +1 -1
  178. package/dist/components/editor-overlay/index.js +1 -1
  179. package/dist/components/empty-state/index.js +1 -1
  180. package/dist/components/entity-summary/index.js +1 -1
  181. package/dist/components/error-boundary/index.js +1 -1
  182. package/dist/components/face-scheme/index.js +1 -1
  183. package/dist/components/fetal-weight/index.js +1 -1
  184. package/dist/components/field-array/index.js +1 -1
  185. package/dist/components/file-manager/index.js +1 -1
  186. package/dist/components/finished-terminal/index.js +1 -1
  187. package/dist/components/fiscal-code-input/index.js +1 -1
  188. package/dist/components/freemium-paywall/index.js +1 -1
  189. package/dist/components/gestational-age-calculator/index.js +1 -1
  190. package/dist/components/hcg-doubling/index.js +1 -1
  191. package/dist/components/header/index.js +1 -1
  192. package/dist/components/header-settings/index.js +1 -1
  193. package/dist/components/heatmap/index.js +1 -1
  194. package/dist/components/hover-card/index.js +1 -1
  195. package/dist/components/icon-button/index.js +1 -1
  196. package/dist/components/icon-button-group/index.js +1 -1
  197. package/dist/components/icon-picker/index.js +1 -1
  198. package/dist/components/image-cropper/index.js +1 -1
  199. package/dist/components/info-tip/index.js +1 -1
  200. package/dist/components/key-value-pair/index.js +1 -1
  201. package/dist/components/locale-picker/index.js +1 -1
  202. package/dist/components/map-view/index.js +1 -1
  203. package/dist/components/message-card/index.js +1 -1
  204. package/dist/components/message-tray/index.js +1 -1
  205. package/dist/components/notes-panel/index.js +1 -1
  206. package/dist/components/notification-card/index.js +1 -1
  207. package/dist/components/notification-tray/index.js +1 -1
  208. package/dist/components/optical-prescription/index.js +1 -1
  209. package/dist/components/panel-subview/index.js +1 -1
  210. package/dist/components/patient-details/index.js +1 -1
  211. package/dist/components/patient-search/index.js +1 -1
  212. package/dist/components/patient-summary-card/index.js +1 -1
  213. package/dist/components/patient-table/index.js +1 -1
  214. package/dist/components/payment-card/index.js +1 -1
  215. package/dist/components/periodontal-chart/index.js +1 -1
  216. package/dist/components/periodontal-chart-card/index.js +1 -1
  217. package/dist/components/popover/index.js +1 -1
  218. package/dist/components/practice-results/index.js +1 -1
  219. package/dist/components/pregnancy-dating/index.js +1 -1
  220. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  221. package/dist/components/privacy-lock/index.js +1 -1
  222. package/dist/components/product-hub-tray/index.js +1 -1
  223. package/dist/components/public-header/index.js +1 -1
  224. package/dist/components/radiograph-panel/index.js +1 -1
  225. package/dist/components/reviews-panel/index.js +1 -1
  226. package/dist/components/rich-text-editor/index.js +2 -2
  227. package/dist/components/session-countdown/index.js +1 -1
  228. package/dist/components/sheet/index.js +1 -1
  229. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  230. package/dist/components/slot-grid/index.js +1 -1
  231. package/dist/components/social-sign-in-button/index.js +1 -1
  232. package/dist/components/social-sign-in-button/social-sign-in-button.d.ts +4 -2
  233. package/dist/components/streaming-text/index.js +1 -1
  234. package/dist/components/task-card/index.js +1 -1
  235. package/dist/components/task-editor/index.js +1 -1
  236. package/dist/components/task-tray/index.js +1 -1
  237. package/dist/components/tasks-panel/index.js +1 -1
  238. package/dist/components/theme-toggle/index.js +1 -1
  239. package/dist/components/toast/index.js +1 -1
  240. package/dist/components/token-insert-menu/index.js +1 -1
  241. package/dist/components/tool-rail/index.js +1 -1
  242. package/dist/components/tooth-scheme/index.js +1 -1
  243. package/dist/components/unit-converter/index.js +1 -1
  244. package/dist/components/voice-control-panel/index.js +1 -1
  245. package/dist/components/wallet-pay-button/index.js +1 -1
  246. package/dist/components/wallet-pay-button/wallet-pay-button.d.ts +4 -2
  247. package/dist/components/warning-stack/index.js +1 -1
  248. package/dist/components/widget-picker/index.js +1 -1
  249. package/dist/components/workflow/index.js +1 -1
  250. package/dist/host-compat.css +4 -1
  251. package/dist/i18n/locales/ar.d.ts +68 -0
  252. package/dist/i18n/locales/ar.js +68 -0
  253. package/dist/i18n/locales/de.d.ts +41 -0
  254. package/dist/i18n/locales/de.js +41 -0
  255. package/dist/i18n/locales/el.d.ts +41 -0
  256. package/dist/i18n/locales/el.js +41 -0
  257. package/dist/i18n/locales/en.d.ts +41 -0
  258. package/dist/i18n/locales/en.js +44 -0
  259. package/dist/i18n/locales/es.d.ts +41 -0
  260. package/dist/i18n/locales/es.js +41 -0
  261. package/dist/i18n/locales/fr.d.ts +41 -0
  262. package/dist/i18n/locales/fr.js +41 -0
  263. package/dist/i18n/locales/hi.d.ts +41 -0
  264. package/dist/i18n/locales/hi.js +41 -0
  265. package/dist/i18n/locales/it.d.ts +41 -0
  266. package/dist/i18n/locales/it.js +41 -0
  267. package/dist/i18n/locales/ja.d.ts +41 -0
  268. package/dist/i18n/locales/ja.js +41 -0
  269. package/dist/i18n/locales/nl.d.ts +41 -0
  270. package/dist/i18n/locales/nl.js +41 -0
  271. package/dist/i18n/locales/pl.d.ts +50 -0
  272. package/dist/i18n/locales/pl.js +50 -0
  273. package/dist/i18n/locales/pt.d.ts +41 -0
  274. package/dist/i18n/locales/pt.js +41 -0
  275. package/dist/i18n/locales/ro.d.ts +50 -0
  276. package/dist/i18n/locales/ro.js +50 -0
  277. package/dist/i18n/locales/ru.d.ts +50 -0
  278. package/dist/i18n/locales/ru.js +50 -0
  279. package/dist/i18n/locales/sq.d.ts +41 -0
  280. package/dist/i18n/locales/sq.js +41 -0
  281. package/dist/i18n/locales/sv.d.ts +41 -0
  282. package/dist/i18n/locales/sv.js +41 -0
  283. package/dist/i18n/locales/tr.d.ts +41 -0
  284. package/dist/i18n/locales/tr.js +41 -0
  285. package/dist/i18n/locales/zh.d.ts +41 -0
  286. package/dist/i18n/locales/zh.js +41 -0
  287. package/dist/index.js +214 -213
  288. package/dist/locales/ar.json +68 -0
  289. package/dist/locales/de.json +41 -0
  290. package/dist/locales/el.json +41 -0
  291. package/dist/locales/en.json +41 -0
  292. package/dist/locales/es.json +41 -0
  293. package/dist/locales/fr.json +41 -0
  294. package/dist/locales/hi.json +41 -0
  295. package/dist/locales/it.json +41 -0
  296. package/dist/locales/ja.json +41 -0
  297. package/dist/locales/nl.json +41 -0
  298. package/dist/locales/pl.json +50 -0
  299. package/dist/locales/pt.json +41 -0
  300. package/dist/locales/ro.json +50 -0
  301. package/dist/locales/ru.json +50 -0
  302. package/dist/locales/sq.json +41 -0
  303. package/dist/locales/sv.json +41 -0
  304. package/dist/locales/tr.json +41 -0
  305. package/dist/locales/zh.json +41 -0
  306. package/dist/patterns/alia-assistant/index.js +1 -1
  307. package/dist/patterns/anamnesis/index.js +1 -1
  308. package/dist/patterns/calendar/calendar-appointment-editor-dialog.d.ts +19 -0
  309. package/dist/patterns/calendar/calendar-custom-recurrence.d.ts +54 -0
  310. package/dist/patterns/calendar/calendar.model.d.ts +35 -1
  311. package/dist/patterns/calendar/calendar.sheets.d.ts +11 -0
  312. package/dist/patterns/calendar/index.d.ts +3 -1
  313. package/dist/patterns/calendar/index.js +18 -17
  314. package/dist/patterns/error-page/index.js +1 -1
  315. package/dist/patterns/forgot-password-form/index.js +1 -1
  316. package/dist/patterns/help-me-write-templates/index.js +2 -2
  317. package/dist/patterns/login-form/index.js +1 -1
  318. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  319. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  320. package/dist/patterns/registration-form/index.js +1 -1
  321. package/dist/patterns/signature-request/index.js +1 -1
  322. package/dist/patterns/signed-out-frame/index.js +1 -1
  323. package/dist/patterns/workflow-webhook-action/index.js +1 -1
  324. package/dist/tokens.css +1 -1
  325. package/package.json +1 -1
  326. package/dist/_chunks/calendar-workspace-Ct8_454k.js +0 -10593
  327. package/dist/_chunks/header-settings-DlUbvAUx.js +0 -306
  328. package/dist/_chunks/sign-in-with-alfadocs-button-CIv0GgeA.js +0 -49
@@ -1,28 +1,28 @@
1
1
  import { jsxs as p, jsx as e, Fragment as be } from "react/jsx-runtime";
2
- import { useId as He, forwardRef as G, useState as R, useRef as j, useCallback as L, useEffect as ne, useMemo as de } from "react";
3
- import * as Xe from "@radix-ui/react-dialog";
2
+ import { useId as Xe, forwardRef as Q, useState as R, useRef as E, useCallback as L, useEffect as ne, useMemo as de } from "react";
3
+ import * as Qe from "@radix-ui/react-dialog";
4
4
  import { useTranslation as x } from "react-i18next";
5
5
  import { F as Ge } from "./floating-action-button-BesoUmO_.js";
6
- import { I as C } from "./icon-button-C_1TgRiK.js";
7
- import { S as X } from "./sheet-D2PfJl8n.js";
6
+ import { I as C } from "./icon-button-S8_weU3g.js";
7
+ import { S as X } from "./sheet-uZZXaO_S.js";
8
8
  import { X as xe } from "./x-B5YnXwCz.js";
9
- import { A as Qe } from "./astroid-BN4f5VXU.js";
10
- import { A as Q } from "./avatar-BPiPL7ND.js";
11
- import { B as _ } from "./button-D-MQxsA_.js";
12
- import { C as Ke } from "./chat-container-baxzy8k8.js";
13
- import { C as Me } from "./chat-message-C2VXQMoB.js";
14
- import { C as we, P as Ze } from "./chat-input-HtTbUUD6.js";
15
- import { S as Je } from "./streaming-text-DbqKTsmj.js";
9
+ import { A as Ke } from "./astroid-BN4f5VXU.js";
10
+ import { A as G } from "./avatar-BPiPL7ND.js";
11
+ import { B as _ } from "./button-DohK_Ak_.js";
12
+ import { C as Me } from "./chat-container-baxzy8k8.js";
13
+ import { C as Ze } from "./chat-message-CmFJdEre.js";
14
+ import { C as we, P as Je } from "./chat-input-DwQ4_WXK.js";
15
+ import { S as Ye } from "./streaming-text-Nb3Q7L94.js";
16
16
  import { a as Ne, S as ye } from "./suggestion-chip-BNRWZL51.js";
17
- import { T as Ye } from "./typing-indicator-B1RkE8jD.js";
17
+ import { T as Ce } from "./typing-indicator-B1RkE8jD.js";
18
18
  import { P as Ve } from "./progress-D_g_Sl2g.js";
19
19
  import { u as ve } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
20
20
  import { P as Ae } from "./pencil-B1sKKyuT.js";
21
21
  import { S as es } from "./square-DASBRZ0U.js";
22
22
  import { C as ss } from "./check-DrFSN__t.js";
23
23
  import { C as as } from "./copy-vRpqqHtY.js";
24
- import { D as is } from "./download-CfYKJO_j.js";
25
- import { R as rs } from "./refresh-cw-DnI0cLFC.js";
24
+ import { D as rs } from "./download-CfYKJO_j.js";
25
+ import { R as is } from "./refresh-cw-DnI0cLFC.js";
26
26
  import { c as ts } from "./createLucideIcon-DhHxpK9K.js";
27
27
  import { M as ns } from "./mic-CUklMZGF.js";
28
28
  import { P as ds } from "./plus-DzMQ_c6b.js";
@@ -47,17 +47,17 @@ const ms = [
47
47
  ], us = ts("shield-x", ms);
48
48
  function le({
49
49
  className: s,
50
- size: i,
50
+ size: r,
51
51
  variant: t = "gradient"
52
52
  }) {
53
- const a = `alia-asteroid-gradient-${He().replace(/:/g, "")}`;
53
+ const a = `alia-asteroid-gradient-${Xe().replace(/:/g, "")}`;
54
54
  return /* @__PURE__ */ p(
55
55
  "svg",
56
56
  {
57
57
  xmlns: "http://www.w3.org/2000/svg",
58
58
  viewBox: "0 0 24 24",
59
- width: i,
60
- height: i,
59
+ width: r,
60
+ height: r,
61
61
  fill: "none",
62
62
  strokeLinecap: "round",
63
63
  strokeLinejoin: "round",
@@ -91,7 +91,7 @@ function le({
91
91
  }
92
92
  );
93
93
  }
94
- const Ce = {
94
+ const ke = {
95
95
  sm: {
96
96
  box: "ds:size-[calc(var(--spacing-md)*2)]",
97
97
  icon: "ds:size-4"
@@ -107,16 +107,16 @@ const Ce = {
107
107
  };
108
108
  function U({
109
109
  size: s,
110
- label: i,
110
+ label: r,
111
111
  appearance: t = "sparkle",
112
112
  loading: d = !1
113
113
  }) {
114
- const a = Ce[s];
114
+ const a = ke[s];
115
115
  return t === "spinner" ? /* @__PURE__ */ e(
116
116
  "span",
117
117
  {
118
118
  role: "img",
119
- "aria-label": i,
119
+ "aria-label": r,
120
120
  className: [
121
121
  "ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center",
122
122
  "ds:rounded-[var(--radius-full)]",
@@ -142,7 +142,7 @@ function U({
142
142
  "span",
143
143
  {
144
144
  role: "img",
145
- "aria-label": i,
145
+ "aria-label": r,
146
146
  className: [
147
147
  "ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center",
148
148
  "ds:rounded-[var(--radius-full)]",
@@ -161,14 +161,14 @@ function U({
161
161
  }
162
162
  function ps({
163
163
  size: s,
164
- label: i
164
+ label: r
165
165
  }) {
166
- const t = Ce[s];
166
+ const t = ke[s];
167
167
  return /* @__PURE__ */ e(
168
168
  "span",
169
169
  {
170
170
  role: "img",
171
- "aria-label": i,
171
+ "aria-label": r,
172
172
  className: [
173
173
  "ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center",
174
174
  "ds:rounded-[var(--radius-full)]",
@@ -181,7 +181,7 @@ function ps({
181
181
  }
182
182
  );
183
183
  }
184
- const ke = [
184
+ const ze = [
185
185
  "ds:rounded-[var(--radius-sm)]",
186
186
  "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
187
187
  "ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
@@ -189,18 +189,18 @@ const ke = [
189
189
  ].join(" ");
190
190
  function fs({
191
191
  note: s,
192
- focusRef: i
192
+ focusRef: r
193
193
  }) {
194
194
  return /* @__PURE__ */ p(
195
195
  "div",
196
196
  {
197
- ref: i,
197
+ ref: r,
198
198
  role: "status",
199
199
  tabIndex: -1,
200
200
  className: [
201
201
  "ds:flex ds:w-full ds:flex-col ds:items-center ds:text-center",
202
202
  "ds:gap-[var(--spacing-xs)]",
203
- ke
203
+ ze
204
204
  ].join(" "),
205
205
  "data-testid": "alia-ended-divider",
206
206
  children: [
@@ -216,23 +216,23 @@ function fs({
216
216
  }
217
217
  );
218
218
  }
219
- function gs(s, i) {
220
- return s ? s.slot ? { slot: s.slot } : { name: s.name, src: s.src } : { slot: /* @__PURE__ */ e(ps, { size: "sm", label: i }) };
219
+ function gs(s, r) {
220
+ return s ? s.slot ? { slot: s.slot } : { name: s.name, src: s.src } : { slot: /* @__PURE__ */ e(ps, { size: "sm", label: r }) };
221
221
  }
222
- function te(s, i) {
222
+ function te(s, r) {
223
223
  const t = s.activeElement;
224
- return !t || t === s.body || t === s.documentElement ? !0 : i != null && t !== i && t.contains(i);
224
+ return !t || t === s.body || t === s.documentElement ? !0 : r != null && t !== r && t.contains(r);
225
225
  }
226
226
  function hs({
227
227
  assistantName: s,
228
- avatarSrc: i,
228
+ avatarSrc: r,
229
229
  greeting: t,
230
230
  subtitle: d,
231
231
  suggestions: a,
232
- onSuggestion: u,
232
+ onSuggestion: c,
233
233
  onChipClick: f
234
234
  }) {
235
- const { t: c } = x("ui"), g = "alia-empty-state-heading";
235
+ const { t: m } = x("ui"), g = "alia-empty-state-heading";
236
236
  return /* @__PURE__ */ p(
237
237
  "section",
238
238
  {
@@ -246,7 +246,7 @@ function hs({
246
246
  ].join(" "),
247
247
  "data-testid": "alia-empty-state",
248
248
  children: [
249
- i ? /* @__PURE__ */ e(Q, { name: s, src: i, size: "xl" }) : /* @__PURE__ */ e(
249
+ r ? /* @__PURE__ */ e(G, { name: s, src: r, size: "xl" }) : /* @__PURE__ */ e(
250
250
  U,
251
251
  {
252
252
  size: "xl",
@@ -268,7 +268,7 @@ function hs({
268
268
  a && a.length > 0 ? /* @__PURE__ */ e("div", { className: "ds:w-full ds:max-w-[40rem]", children: /* @__PURE__ */ e(
269
269
  Ne,
270
270
  {
271
- label: c("alia.exampleQuestions"),
271
+ label: m("alia.exampleQuestions"),
272
272
  className: "ds:justify-center",
273
273
  children: a.map((l) => /* @__PURE__ */ e(
274
274
  ye,
@@ -277,7 +277,7 @@ function hs({
277
277
  startIcon: l.icon,
278
278
  keepOnSelect: !0,
279
279
  onClick: f,
280
- onSelect: () => u == null ? void 0 : u(l),
280
+ onSelect: () => c == null ? void 0 : c(l),
281
281
  children: l.label
282
282
  },
283
283
  l.id
@@ -290,29 +290,30 @@ function hs({
290
290
  }
291
291
  function vs({
292
292
  message: s,
293
- assistantName: i,
293
+ assistantName: r,
294
294
  avatarSrc: t,
295
- renderMarkdown: d
295
+ renderMarkdown: d,
296
+ density: a
296
297
  }) {
297
- const { t: a, i18n: u } = x("ui"), f = a("chat.message.role.assistant"), c = de(() => {
298
+ const { t: c, i18n: f } = x("ui"), m = c("chat.message.role.assistant"), g = de(() => {
298
299
  if (!s.timestamp) return null;
299
- const l = s.timestamp instanceof Date ? s.timestamp : new Date(s.timestamp);
300
- return Number.isNaN(l.getTime()) ? null : new Intl.DateTimeFormat(u.language, {
300
+ const n = s.timestamp instanceof Date ? s.timestamp : new Date(s.timestamp);
301
+ return Number.isNaN(n.getTime()) ? null : new Intl.DateTimeFormat(f.language, {
301
302
  hour: "2-digit",
302
303
  minute: "2-digit"
303
- }).format(l);
304
- }, [s.timestamp, u.language]), g = c ? a("chat.message.label", { role: f, time: c }) : a("chat.message.labelNoTime", { role: f });
304
+ }).format(n);
305
+ }, [s.timestamp, f.language]), l = g ? c("chat.message.label", { role: m, time: g }) : c("chat.message.labelNoTime", { role: m });
305
306
  return /* @__PURE__ */ p(
306
307
  "article",
307
308
  {
308
- "aria-label": g,
309
+ "aria-label": l,
309
310
  className: "ds:flex ds:w-full ds:items-start ds:flex-row ds:gap-[var(--spacing-sm)]",
310
311
  children: [
311
- t ? /* @__PURE__ */ e(Q, { name: i, src: t, size: "sm" }) : /* @__PURE__ */ e(
312
+ t ? /* @__PURE__ */ e(G, { name: r, src: t, size: "sm" }) : /* @__PURE__ */ e(
312
313
  U,
313
314
  {
314
315
  size: "sm",
315
- label: i,
316
+ label: r,
316
317
  appearance: "spinner",
317
318
  loading: !0
318
319
  }
@@ -330,13 +331,16 @@ function vs({
330
331
  "ds:bg-muted/40 ds:text-foreground",
331
332
  "ds:rounded-[var(--radius-md)] ds:rounded-es-[var(--radius-sm)]"
332
333
  ].join(" "),
333
- children: /* @__PURE__ */ e(
334
- Je,
334
+ children: s.content ? /* @__PURE__ */ e(
335
+ Ye,
335
336
  {
336
337
  content: s.content,
337
338
  isStreaming: !0,
338
339
  renderMarkdown: d
339
340
  }
341
+ ) : (
342
+ // Before the first words arrive, the dots, not an empty bubble.
343
+ /* @__PURE__ */ e(Ce, { label: c("chat.typing"), density: a })
340
344
  )
341
345
  }
342
346
  ) })
@@ -346,16 +350,16 @@ function vs({
346
350
  }
347
351
  function bs({
348
352
  assistantName: s,
349
- avatarSrc: i,
353
+ avatarSrc: r,
350
354
  onNewConversation: t,
351
355
  headerEndSlot: d,
352
356
  density: a
353
357
  }) {
354
- const { t: u } = x("ui");
358
+ const { t: c } = x("ui");
355
359
  return /* @__PURE__ */ p(
356
360
  "header",
357
361
  {
358
- "aria-label": u("alia.headerLabel"),
362
+ "aria-label": c("alia.headerLabel"),
359
363
  className: [
360
364
  "ds:flex ds:shrink-0 ds:items-center ds:gap-[var(--spacing-sm)]",
361
365
  // Soft drop-shadow on the block-end edge in place of a `border-b`
@@ -368,11 +372,11 @@ function bs({
368
372
  ].join(" "),
369
373
  "data-testid": "alia-header",
370
374
  children: [
371
- i ? /* @__PURE__ */ e(
372
- Q,
375
+ r ? /* @__PURE__ */ e(
376
+ G,
373
377
  {
374
378
  name: s,
375
- src: i,
379
+ src: r,
376
380
  size: a === "compact" ? "sm" : "md"
377
381
  }
378
382
  ) : /* @__PURE__ */ e(
@@ -392,7 +396,7 @@ function bs({
392
396
  size: "sm",
393
397
  startIcon: /* @__PURE__ */ e(ds, { "aria-hidden": "true" }),
394
398
  onClick: t,
395
- children: u("alia.newConversation")
399
+ children: c("alia.newConversation")
396
400
  }
397
401
  ) : null,
398
402
  d
@@ -402,18 +406,18 @@ function bs({
402
406
  );
403
407
  }
404
408
  function xs(s) {
405
- var i;
406
- return typeof navigator > "u" || typeof ((i = navigator.clipboard) == null ? void 0 : i.writeText) != "function" ? Promise.resolve(!1) : navigator.clipboard.writeText(s).then(() => !0).catch(() => !1);
409
+ var r;
410
+ return typeof navigator > "u" || typeof ((r = navigator.clipboard) == null ? void 0 : r.writeText) != "function" ? Promise.resolve(!1) : navigator.clipboard.writeText(s).then(() => !0).catch(() => !1);
407
411
  }
408
- function ws(s, i) {
412
+ function ws(s, r) {
409
413
  if (typeof window > "u" || typeof URL > "u" || typeof URL.createObjectURL != "function")
410
414
  return;
411
415
  const t = new Blob([s], { type: "text/markdown;charset=utf-8" }), d = URL.createObjectURL(t), a = document.createElement("a");
412
- a.href = d, a.download = i, document.body.appendChild(a), a.click(), a.remove(), URL.revokeObjectURL(d);
416
+ a.href = d, a.download = r, document.body.appendChild(a), a.click(), a.remove(), URL.revokeObjectURL(d);
413
417
  }
414
418
  function Ns(s) {
415
- const i = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
416
- return `${s.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "") || "assistant"}-prompt-${i}.md`;
419
+ const r = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
420
+ return `${s.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "") || "assistant"}-prompt-${r}.md`;
417
421
  }
418
422
  const ys = () => {
419
423
  var s;
@@ -421,57 +425,57 @@ const ys = () => {
421
425
  };
422
426
  function Cs({
423
427
  message: s,
424
- actions: i,
428
+ actions: r,
425
429
  assistantName: t,
426
430
  canRegenerate: d,
427
431
  onCopyMessage: a,
428
- onDownloadMessage: u,
432
+ onDownloadMessage: c,
429
433
  onRegenerate: f
430
434
  }) {
431
- const { t: c } = x("ui"), [g, l] = R(!1), n = L(() => {
435
+ const { t: m } = x("ui"), [g, l] = R(!1), n = L(() => {
432
436
  xs(s.content).then((b) => {
433
437
  b && (l(!0), setTimeout(() => l(!1), 2e3), a == null || a(s.id));
434
438
  });
435
- }, [s.content, s.id, a]), v = L(() => {
436
- ws(s.content, Ns(t)), u == null || u(s.id);
437
- }, [s.content, s.id, t, u]);
439
+ }, [s.content, s.id, a]), h = L(() => {
440
+ ws(s.content, Ns(t)), c == null || c(s.id);
441
+ }, [s.content, s.id, t, c]);
438
442
  return /* @__PURE__ */ p(be, { children: [
439
- i.includes("copy") && ys() ? /* @__PURE__ */ e(
443
+ r.includes("copy") && ys() ? /* @__PURE__ */ e(
440
444
  C,
441
445
  {
442
446
  icon: g ? /* @__PURE__ */ e(ss, {}) : /* @__PURE__ */ e(as, {}),
443
- "aria-label": c(g ? "alia.copied" : "alia.copyMessage"),
447
+ "aria-label": m(g ? "alia.copied" : "alia.copyMessage"),
444
448
  intent: "ghost",
445
449
  size: "sm",
446
450
  onClick: n
447
451
  }
448
452
  ) : null,
449
- i.includes("download") ? /* @__PURE__ */ e(
453
+ r.includes("download") ? /* @__PURE__ */ e(
450
454
  C,
451
455
  {
452
- icon: /* @__PURE__ */ e(is, {}),
453
- "aria-label": c("alia.downloadMessage"),
456
+ icon: /* @__PURE__ */ e(rs, {}),
457
+ "aria-label": m("alia.downloadMessage"),
454
458
  intent: "ghost",
455
459
  size: "sm",
456
- onClick: v
460
+ onClick: h
457
461
  }
458
462
  ) : null,
459
463
  d && f ? /* @__PURE__ */ e(
460
464
  C,
461
465
  {
462
- icon: /* @__PURE__ */ e(rs, {}),
463
- "aria-label": c("alia.regenerate"),
466
+ icon: /* @__PURE__ */ e(is, {}),
467
+ "aria-label": m("alia.regenerate"),
464
468
  intent: "ghost",
465
469
  size: "sm",
466
470
  onClick: () => f(s.id)
467
471
  }
468
472
  ) : null,
469
- /* @__PURE__ */ e("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: g ? c("alia.copied") : "" })
473
+ /* @__PURE__ */ e("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: g ? m("alia.copied") : "" })
470
474
  ] });
471
475
  }
472
476
  function ks({
473
477
  attachments: s,
474
- onRemove: i
478
+ onRemove: r
475
479
  }) {
476
480
  const { t } = x("ui");
477
481
  return s.length === 0 ? null : /* @__PURE__ */ e(
@@ -490,21 +494,21 @@ function ks({
490
494
  ].join(" "),
491
495
  children: [
492
496
  /* @__PURE__ */ e(
493
- Ze,
497
+ Je,
494
498
  {
495
499
  "aria-hidden": "true",
496
500
  className: "ds:size-3.5 ds:text-[color:var(--muted-foreground)]"
497
501
  }
498
502
  ),
499
503
  /* @__PURE__ */ e("span", { dir: "auto", className: "type-meta ds:max-w-[12rem] ds:truncate", children: d.name }),
500
- i ? /* @__PURE__ */ e(
504
+ r ? /* @__PURE__ */ e(
501
505
  C,
502
506
  {
503
507
  icon: /* @__PURE__ */ e(xe, {}),
504
508
  "aria-label": t("alia.removeAttachment", { name: d.name }),
505
509
  intent: "ghost",
506
510
  size: "sm",
507
- onClick: () => i(d.id)
511
+ onClick: () => r(d.id)
508
512
  }
509
513
  ) : null
510
514
  ]
@@ -514,37 +518,37 @@ function ks({
514
518
  }
515
519
  );
516
520
  }
517
- function ze() {
521
+ function Le() {
518
522
  if (typeof window > "u") return;
519
523
  const s = window;
520
524
  return s.SpeechRecognition ?? s.webkitSpeechRecognition;
521
525
  }
522
526
  function zs({
523
527
  lang: s,
524
- disabled: i,
528
+ disabled: r,
525
529
  onTranscript: t
526
530
  }) {
527
- const { t: d } = x("ui"), [a, u] = R(!1), f = j(null), c = L(() => {
531
+ const { t: d } = x("ui"), [a, c] = R(!1), f = E(null), m = L(() => {
528
532
  var l;
529
- (l = f.current) == null || l.stop(), u(!1);
533
+ (l = f.current) == null || l.stop(), c(!1);
530
534
  }, []), g = L(() => {
531
- const l = ze();
535
+ const l = Le();
532
536
  if (!l) return;
533
537
  const n = new l();
534
- n.lang = s, n.continuous = !1, n.interimResults = !1, n.onresult = (v) => {
538
+ n.lang = s, n.continuous = !1, n.interimResults = !1, n.onresult = (h) => {
535
539
  let b = "";
536
- for (let w = 0; w < v.results.length; w++)
537
- b += v.results[w][0].transcript;
540
+ for (let w = 0; w < h.results.length; w++)
541
+ b += h.results[w][0].transcript;
538
542
  b && t(b);
539
- }, n.onend = () => u(!1), n.onerror = () => u(!1), f.current = n, n.start(), u(!0);
543
+ }, n.onend = () => c(!1), n.onerror = () => c(!1), f.current = n, n.start(), c(!0);
540
544
  }, [s, t]);
541
545
  return ne(() => {
542
546
  if (!a) return;
543
547
  const l = (n) => {
544
- n.key === "Escape" && c();
548
+ n.key === "Escape" && m();
545
549
  };
546
550
  return window.addEventListener("keydown", l), () => window.removeEventListener("keydown", l);
547
- }, [a, c]), ne(() => () => {
551
+ }, [a, m]), ne(() => () => {
548
552
  var l;
549
553
  return (l = f.current) == null ? void 0 : l.stop();
550
554
  }, []), /* @__PURE__ */ e(
@@ -555,18 +559,18 @@ function zs({
555
559
  "aria-pressed": a,
556
560
  intent: a ? "primary" : "ghost",
557
561
  size: "sm",
558
- disabled: i,
559
- onClick: () => a ? c() : g(),
562
+ disabled: r,
563
+ onClick: () => a ? m() : g(),
560
564
  className: a ? "ds:motion-safe:animate-[var(--accessible-off,var(--ds-animate-pulse))] ds:motion-reduce:animate-none" : void 0
561
565
  }
562
566
  );
563
567
  }
564
568
  function Ls({
565
569
  initialText: s,
566
- onSave: i,
570
+ onSave: r,
567
571
  onCancel: t
568
572
  }) {
569
- const { t: d } = x("ui"), [a, u] = R(s);
573
+ const { t: d } = x("ui"), [a, c] = R(s);
570
574
  return /* @__PURE__ */ p(
571
575
  "div",
572
576
  {
@@ -578,9 +582,9 @@ function Ls({
578
582
  {
579
583
  label: d("alia.editMessage"),
580
584
  value: a,
581
- onChange: (f) => u(f.target.value),
585
+ onChange: (f) => c(f.target.value),
582
586
  submitOnEnter: !0,
583
- onSubmit: (f) => i(f),
587
+ onSubmit: (f) => r(f),
584
588
  minRows: 2
585
589
  }
586
590
  ),
@@ -591,7 +595,7 @@ function Ls({
591
595
  {
592
596
  intent: "primary",
593
597
  size: "sm",
594
- onClick: () => i(a),
598
+ onClick: () => r(a),
595
599
  disabled: a.trim().length === 0,
596
600
  children: d("alia.saveEdit")
597
601
  }
@@ -601,92 +605,92 @@ function Ls({
601
605
  }
602
606
  );
603
607
  }
604
- const K = G(
608
+ const K = Q(
605
609
  ({
606
610
  messages: s,
607
- onSend: i,
611
+ onSend: r,
608
612
  onRetry: t,
609
613
  onSuggestion: d,
610
614
  suggestions: a,
611
- isGenerating: u = !1,
615
+ isGenerating: c = !1,
612
616
  onStopGenerating: f,
613
- usage: c,
617
+ usage: m,
614
618
  onUpgrade: g,
615
619
  assistantName: l,
616
620
  assistantAvatar: n,
617
- userAvatar: v,
621
+ userAvatar: h,
618
622
  greeting: b,
619
623
  subtitle: w,
620
- density: E = "default",
624
+ density: j = "default",
621
625
  renderMarkdown: M = !0,
622
- onNewConversation: Le,
623
- onAttach: je,
624
- acceptedFileTypes: Ee,
625
- headerEndSlot: Te,
626
- hideHeader: Ie = !1,
626
+ onNewConversation: je,
627
+ onAttach: Ee,
628
+ acceptedFileTypes: Te,
629
+ headerEndSlot: Ie,
630
+ hideHeader: Se = !1,
627
631
  ended: B,
628
632
  messageActions: P,
629
633
  onCopyMessage: oe,
630
634
  onDownloadMessage: ce,
631
- voiceInput: Se,
635
+ voiceInput: Re,
632
636
  onVoiceTranscript: Z,
633
637
  attachments: J,
634
- onRemoveAttachment: Re,
635
- showScrollToLatest: _e,
638
+ onRemoveAttachment: _e,
639
+ showScrollToLatest: Ue,
636
640
  onRegenerate: D,
637
641
  onEditMessage: F
638
- }, Ue) => {
639
- const { t: h, i18n: Be } = x("ui"), [me, Y] = R(null), [Pe, V] = R(""), O = j(null), A = j(null), ee = j(null), se = j(null), S = j(null), $ = j(!1), T = L(() => {
640
- var r;
641
- (r = S.current) == null || r.call(S), S.current = null, se.current = null;
642
+ }, Be) => {
643
+ const { t: v, i18n: Pe } = x("ui"), [me, Y] = R(null), [De, V] = R(""), O = E(null), A = E(null), ee = E(null), se = E(null), S = E(null), $ = E(!1), T = L(() => {
644
+ var i;
645
+ (i = S.current) == null || i.call(S), S.current = null, se.current = null;
642
646
  }, []), W = L(
643
- (r) => {
647
+ (i) => {
644
648
  T();
645
- const o = r.ownerDocument;
646
- if (!r.contains(o.activeElement) && !te(o, r))
649
+ const o = i.ownerDocument;
650
+ if (!i.contains(o.activeElement) && !te(o, i))
647
651
  return;
648
- se.current = r;
649
- const m = (y) => {
650
- (!(y.target instanceof Node) || !r.contains(y.target)) && T();
652
+ se.current = i;
653
+ const u = (y) => {
654
+ (!(y.target instanceof Node) || !i.contains(y.target)) && T();
651
655
  };
652
- o.addEventListener("pointerdown", m, !0), o.addEventListener("focusin", m, !0), S.current = () => {
653
- o.removeEventListener("pointerdown", m, !0), o.removeEventListener("focusin", m, !0);
656
+ o.addEventListener("pointerdown", u, !0), o.addEventListener("focusin", u, !0), S.current = () => {
657
+ o.removeEventListener("pointerdown", u, !0), o.removeEventListener("focusin", u, !0);
654
658
  };
655
659
  },
656
660
  [T]
657
661
  ), ae = L(
658
- (r) => W(r.currentTarget),
662
+ (i) => W(i.currentTarget),
659
663
  [W]
660
- ), De = L(
661
- (r) => {
664
+ ), Fe = L(
665
+ (i) => {
662
666
  const o = O.current;
663
- O.current = r, !r && (o != null && o.contains(o.ownerDocument.activeElement)) && W(o);
667
+ O.current = i, !i && (o != null && o.contains(o.ownerDocument.activeElement)) && W(o);
664
668
  },
665
669
  [W]
666
670
  );
667
671
  ve(() => {
668
672
  var y;
669
- const r = se.current;
670
- if (!r || r.isConnected) return;
673
+ const i = se.current;
674
+ if (!i || i.isConnected) return;
671
675
  T();
672
676
  const o = O.current;
673
- if (!te(r.ownerDocument, o)) return;
674
- const m = o == null ? void 0 : o.querySelector("textarea");
675
- if (m && !m.disabled) {
676
- m.focus();
677
+ if (!te(i.ownerDocument, o)) return;
678
+ const u = o == null ? void 0 : o.querySelector("textarea");
679
+ if (u && !u.disabled) {
680
+ u.focus();
677
681
  return;
678
682
  }
679
683
  (y = A.current ?? ee.current) == null || y.focus();
680
684
  }), ne(() => T, [T]);
681
- const q = !!Se && ze() != null, ie = de(() => {
682
- for (let r = s.length - 1; r >= 0; r--) {
683
- const o = s[r];
685
+ const q = !!Re && Le() != null, re = de(() => {
686
+ for (let i = s.length - 1; i >= 0; i--) {
687
+ const o = s[i];
684
688
  if (o.role === "assistant" && !o.streaming) return o.id;
685
689
  }
686
- }, [s]), I = B != null, N = l ?? h("alia.name"), Fe = b ?? h("alia.greeting"), Oe = w ?? h("alia.subtitle"), k = s[s.length - 1], H = (k == null ? void 0 : k.role) === "assistant" && k.streaming === !0, ue = H ? s.slice(0, -1) : s, $e = de(() => {
687
- const r = h("chat.message.role.user"), o = ue.map((m) => {
690
+ }, [s]), I = B != null, N = l ?? v("alia.name"), Oe = b ?? v("alia.greeting"), $e = w ?? v("alia.subtitle"), k = s[s.length - 1], H = (k == null ? void 0 : k.role) === "assistant" && k.streaming === !0, ue = H ? s.slice(0, -1) : s, We = de(() => {
691
+ const i = v("chat.message.role.user"), o = ue.map((u) => {
688
692
  let y;
689
- if (m.role === "assistant" ? y = n != null && n.src ? { name: N, src: n.src } : {
693
+ if (u.role === "assistant" ? y = n != null && n.src ? { name: N, src: n.src } : {
690
694
  slot: /* @__PURE__ */ e(
691
695
  U,
692
696
  {
@@ -695,55 +699,55 @@ const K = G(
695
699
  appearance: "spinner"
696
700
  }
697
701
  )
698
- } : m.role === "user" && (y = gs(v, r)), m.role === "user" && F && me === m.id)
702
+ } : u.role === "user" && (y = gs(h, i)), u.role === "user" && F && me === u.id)
699
703
  return {
700
- id: m.id,
704
+ id: u.id,
701
705
  node: /* @__PURE__ */ e(
702
706
  Ls,
703
707
  {
704
- initialText: m.content,
705
- onSave: (qe) => {
706
- F(m.id, qe), Y(null);
708
+ initialText: u.content,
709
+ onSave: (He) => {
710
+ F(u.id, He), Y(null);
707
711
  },
708
712
  onCancel: () => Y(null)
709
713
  }
710
714
  )
711
715
  };
712
- let re;
713
- return m.role === "assistant" && (P && P.length > 0 || D && m.id === ie) ? re = /* @__PURE__ */ e(
716
+ let ie;
717
+ return u.role === "assistant" && (P && P.length > 0 || D && u.id === re) ? ie = /* @__PURE__ */ e(
714
718
  Cs,
715
719
  {
716
- message: m,
720
+ message: u,
717
721
  actions: P ?? [],
718
722
  assistantName: N,
719
- canRegenerate: !!D && m.id === ie,
723
+ canRegenerate: !!D && u.id === re,
720
724
  onCopyMessage: oe,
721
725
  onDownloadMessage: ce,
722
726
  onRegenerate: D
723
727
  }
724
- ) : m.role === "user" && F && (re = /* @__PURE__ */ e(
728
+ ) : u.role === "user" && F && (ie = /* @__PURE__ */ e(
725
729
  C,
726
730
  {
727
731
  icon: /* @__PURE__ */ e(Ae, {}),
728
- "aria-label": h("alia.editMessage"),
732
+ "aria-label": v("alia.editMessage"),
729
733
  intent: "ghost",
730
734
  size: "sm",
731
- onClick: () => Y(m.id)
735
+ onClick: () => Y(u.id)
732
736
  }
733
737
  )), {
734
- id: m.id,
738
+ id: u.id,
735
739
  node: /* @__PURE__ */ e(
736
- Me,
740
+ Ze,
737
741
  {
738
- role: m.role,
739
- content: m.content,
740
- body: m.body,
742
+ role: u.role,
743
+ content: u.content,
744
+ body: u.body,
741
745
  avatar: y,
742
- timestamp: m.timestamp,
743
- status: m.status,
746
+ timestamp: u.timestamp,
747
+ status: u.status,
744
748
  renderMarkdown: M,
745
- onRetry: t ? () => t(m.id) : void 0,
746
- actions: re
749
+ onRetry: t ? () => t(u.id) : void 0,
750
+ actions: ie
747
751
  }
748
752
  )
749
753
  };
@@ -756,14 +760,15 @@ const K = G(
756
760
  message: k,
757
761
  assistantName: N,
758
762
  avatarSrc: n == null ? void 0 : n.src,
759
- renderMarkdown: M
763
+ renderMarkdown: M,
764
+ density: j
760
765
  }
761
766
  )
762
- }), u && !H && o.push({
767
+ }), c && !H && o.push({
763
768
  id: "__alia-typing__",
764
769
  node: /* @__PURE__ */ p("div", { className: "ds:flex ds:w-full ds:items-start ds:gap-[var(--spacing-sm)]", children: [
765
770
  n != null && n.src ? /* @__PURE__ */ e(
766
- Q,
771
+ G,
767
772
  {
768
773
  name: N,
769
774
  src: n.src,
@@ -786,7 +791,7 @@ const K = G(
786
791
  "ds:rounded-[var(--radius-md)] ds:rounded-es-[var(--radius-sm)]",
787
792
  "ds:bg-muted/40"
788
793
  ].join(" "),
789
- children: /* @__PURE__ */ e(Ye, { label: h("chat.typing"), density: E })
794
+ children: /* @__PURE__ */ e(Ce, { label: v("chat.typing"), density: j })
790
795
  }
791
796
  )
792
797
  ] })
@@ -798,40 +803,40 @@ const K = G(
798
803
  ue,
799
804
  H,
800
805
  k,
801
- u,
806
+ c,
802
807
  N,
803
808
  n == null ? void 0 : n.src,
804
- v,
809
+ h,
805
810
  M,
806
811
  t,
807
- E,
812
+ j,
808
813
  B,
809
- h,
814
+ v,
810
815
  me,
811
816
  F,
812
817
  P,
813
818
  D,
814
- ie,
819
+ re,
815
820
  oe,
816
821
  ce
817
- ]), We = c ? Math.min(
822
+ ]), qe = m ? Math.min(
818
823
  100,
819
- Math.max(0, c.current / Math.max(1, c.limit) * 100)
820
- ) : 0, z = c ? c.current >= c.limit : !1, pe = z || I;
824
+ Math.max(0, m.current / Math.max(1, m.limit) * 100)
825
+ ) : 0, z = m ? m.current >= m.limit : !1, pe = z || I;
821
826
  ve(() => {
822
- var m;
823
- const r = O.current;
824
- if (!pe || !$.current || !r)
827
+ var u;
828
+ const i = O.current;
829
+ if (!pe || !$.current || !i)
825
830
  return;
826
831
  $.current = !1;
827
- const o = r.ownerDocument;
828
- (r.contains(o.activeElement) || te(o, r)) && ((m = A.current ?? ee.current) == null || m.focus());
832
+ const o = i.ownerDocument;
833
+ (i.contains(o.activeElement) || te(o, i)) && ((u = A.current ?? ee.current) == null || u.focus());
829
834
  }, [pe]);
830
- const fe = c ? c.label ?? h("alia.usageLabel", {
831
- current: c.current,
832
- limit: c.limit
833
- }) : null, ge = s.length === 0 && !u && !I, he = /* @__PURE__ */ p("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
834
- c ? /* @__PURE__ */ p("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
835
+ const fe = m ? m.label ?? v("alia.usageLabel", {
836
+ current: m.current,
837
+ limit: m.limit
838
+ }) : null, ge = s.length === 0 && !c && !I, he = /* @__PURE__ */ p("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
839
+ m ? /* @__PURE__ */ p("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
835
840
  /* @__PURE__ */ p("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
836
841
  /* @__PURE__ */ e(
837
842
  "span",
@@ -840,45 +845,45 @@ const K = G(
840
845
  tabIndex: z ? -1 : void 0,
841
846
  className: [
842
847
  "type-meta",
843
- z ? `ds:text-[color:var(--destructive)] ${ke}` : "ds:text-[color:var(--muted-foreground)]"
848
+ z ? `ds:text-[color:var(--destructive)] ${ze}` : "ds:text-[color:var(--muted-foreground)]"
844
849
  ].join(" "),
845
850
  "data-testid": "alia-usage-label",
846
- children: z ? h("alia.usageLimitReached") : fe
851
+ children: z ? v("alia.usageLimitReached") : fe
847
852
  }
848
853
  ),
849
- z && g ? /* @__PURE__ */ e(_, { intent: "primary", size: "sm", onClick: g, children: h("alia.upgrade") }) : null
854
+ z && g ? /* @__PURE__ */ e(_, { intent: "primary", size: "sm", onClick: g, children: v("alia.upgrade") }) : null
850
855
  ] }),
851
856
  /* @__PURE__ */ e(
852
857
  Ve,
853
858
  {
854
- value: We,
859
+ value: qe,
855
860
  max: 100,
856
861
  size: "sm",
857
- ariaLabel: fe ?? h("alia.usageLabel", {
858
- current: c.current,
859
- limit: c.limit
862
+ ariaLabel: fe ?? v("alia.usageLabel", {
863
+ current: m.current,
864
+ limit: m.limit
860
865
  }),
861
866
  className: z ? "ds:[&_[role=progressbar]>*]:bg-[color:var(--destructive)]" : void 0,
862
867
  "data-testid": "alia-usage-progress"
863
868
  }
864
869
  )
865
870
  ] }) : null,
866
- !ge && a && a.length > 0 && !u && !I ? /* @__PURE__ */ e(
871
+ !ge && a && a.length > 0 && !c && !I ? /* @__PURE__ */ e(
867
872
  Ne,
868
873
  {
869
- label: h("alia.exampleQuestions"),
874
+ label: v("alia.exampleQuestions"),
870
875
  "data-testid": "alia-followup-suggestions",
871
- children: a.map((r) => /* @__PURE__ */ e(
876
+ children: a.map((i) => /* @__PURE__ */ e(
872
877
  ye,
873
878
  {
874
879
  intent: "followup",
875
- startIcon: r.icon,
880
+ startIcon: i.icon,
876
881
  keepOnSelect: !0,
877
882
  onClick: ae,
878
- onSelect: () => d == null ? void 0 : d(r),
879
- children: r.label
883
+ onSelect: () => d == null ? void 0 : d(i),
884
+ children: i.label
880
885
  },
881
- r.id
886
+ i.id
882
887
  ))
883
888
  }
884
889
  ) : null,
@@ -886,84 +891,85 @@ const K = G(
886
891
  ks,
887
892
  {
888
893
  attachments: J,
889
- onRemove: Re
894
+ onRemove: _e
890
895
  }
891
896
  ) : null,
892
- /* @__PURE__ */ p("div", { className: "ds:flex ds:items-end ds:gap-[var(--spacing-sm)]", children: [
897
+ c && f && !I ? (
898
+ // On its own row, where the follow-up chips sit between answers: beside
899
+ // the message box it squeezed the box to half its width in a narrow rail.
893
900
  /* @__PURE__ */ e(
894
- "div",
895
- {
896
- className: "ds:flex-1 ds:min-w-0",
897
- onFocus: () => {
898
- $.current = !0;
899
- },
900
- onBlur: (r) => {
901
- const o = r.relatedTarget;
902
- o instanceof Node && r.currentTarget.contains(o) || r.target.matches(":disabled") || ($.current = !1);
903
- },
904
- children: /* @__PURE__ */ e(
905
- we,
906
- {
907
- ref: De,
908
- submitOnEnter: !0,
909
- onSubmit: q ? (r) => {
910
- i(r), V("");
911
- } : i,
912
- value: q ? Pe : void 0,
913
- onChange: q ? (r) => V(r.target.value) : void 0,
914
- onAttach: je,
915
- accept: Ee,
916
- disabled: z || I,
917
- toolbar: q ? /* @__PURE__ */ e(
918
- zs,
919
- {
920
- lang: Be.language,
921
- disabled: z || I,
922
- onTranscript: (r) => {
923
- Z == null || Z(r), V(
924
- (o) => o ? `${o} ${r}` : r
925
- );
926
- }
927
- }
928
- ) : void 0,
929
- "data-testid": "alia-composer"
930
- }
931
- )
932
- }
933
- ),
934
- u && f && !I ? /* @__PURE__ */ e(
935
901
  _,
936
902
  {
937
903
  intent: "outline",
938
904
  size: "sm",
939
- startIcon: /* @__PURE__ */ e(es, { "aria-hidden": "true" }),
940
- onClick: (r) => {
941
- ae(r), f();
905
+ className: "ds:self-end",
906
+ startIcon: /* @__PURE__ */ e(es, { "aria-hidden": "true", className: "ds:fill-current" }),
907
+ onClick: (i) => {
908
+ ae(i), f();
942
909
  },
943
- "aria-label": h("alia.stopGenerating"),
944
- children: h("alia.stopGenerating")
910
+ children: v("alia.stopGenerating")
945
911
  }
946
- ) : null
947
- ] })
912
+ )
913
+ ) : null,
914
+ /* @__PURE__ */ e(
915
+ "div",
916
+ {
917
+ onFocus: () => {
918
+ $.current = !0;
919
+ },
920
+ onBlur: (i) => {
921
+ const o = i.relatedTarget;
922
+ o instanceof Node && i.currentTarget.contains(o) || i.target.matches(":disabled") || ($.current = !1);
923
+ },
924
+ children: /* @__PURE__ */ e(
925
+ we,
926
+ {
927
+ ref: Fe,
928
+ submitOnEnter: !0,
929
+ onSubmit: q ? (i) => {
930
+ r(i), V("");
931
+ } : r,
932
+ value: q ? De : void 0,
933
+ onChange: q ? (i) => V(i.target.value) : void 0,
934
+ onAttach: Ee,
935
+ accept: Te,
936
+ disabled: z || I,
937
+ toolbar: q ? /* @__PURE__ */ e(
938
+ zs,
939
+ {
940
+ lang: Pe.language,
941
+ disabled: z || I,
942
+ onTranscript: (i) => {
943
+ Z == null || Z(i), V(
944
+ (o) => o ? `${o} ${i}` : i
945
+ );
946
+ }
947
+ }
948
+ ) : void 0,
949
+ "data-testid": "alia-composer"
950
+ }
951
+ )
952
+ }
953
+ )
948
954
  ] });
949
955
  return /* @__PURE__ */ p(
950
956
  "div",
951
957
  {
952
- ref: Ue,
958
+ ref: Be,
953
959
  className: [
954
960
  "ds:flex ds:min-h-0 ds:flex-1 ds:flex-col",
955
961
  "ds:bg-[var(--background)] ds:text-[color:var(--foreground)]"
956
962
  ].join(" "),
957
963
  "data-testid": "alia-surface",
958
964
  children: [
959
- Ie ? null : /* @__PURE__ */ e(
965
+ Se ? null : /* @__PURE__ */ e(
960
966
  bs,
961
967
  {
962
968
  assistantName: N,
963
969
  avatarSrc: n == null ? void 0 : n.src,
964
- onNewConversation: Le,
965
- headerEndSlot: Te,
966
- density: E
970
+ onNewConversation: je,
971
+ headerEndSlot: Ie,
972
+ density: j
967
973
  }
968
974
  ),
969
975
  ge ? /* @__PURE__ */ p(be, { children: [
@@ -972,8 +978,8 @@ const K = G(
972
978
  {
973
979
  assistantName: N,
974
980
  avatarSrc: n == null ? void 0 : n.src,
975
- greeting: Fe,
976
- subtitle: Oe,
981
+ greeting: Oe,
982
+ subtitle: $e,
977
983
  suggestions: a,
978
984
  onSuggestion: d,
979
985
  onChipClick: ae
@@ -997,12 +1003,12 @@ const K = G(
997
1003
  }
998
1004
  )
999
1005
  ] }) : /* @__PURE__ */ e(
1000
- Ke,
1006
+ Me,
1001
1007
  {
1002
- messages: $e,
1003
- density: E,
1008
+ messages: We,
1009
+ density: j,
1004
1010
  composer: he,
1005
- showScrollToLatest: _e,
1011
+ showScrollToLatest: Ue,
1006
1012
  className: "ds:flex-1 ds:min-h-0"
1007
1013
  }
1008
1014
  )
@@ -1012,8 +1018,8 @@ const K = G(
1012
1018
  }
1013
1019
  );
1014
1020
  K.displayName = "AliaChatSurface";
1015
- const js = G(
1016
- ({ headerSlot: s, ...i }, t) => /* @__PURE__ */ p(
1021
+ const js = Q(
1022
+ ({ headerSlot: s, ...r }, t) => /* @__PURE__ */ p(
1017
1023
  "div",
1018
1024
  {
1019
1025
  ref: t,
@@ -1044,7 +1050,7 @@ const js = G(
1044
1050
  "ds:[max-inline-size:48rem]",
1045
1051
  "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]"
1046
1052
  ].join(" "),
1047
- children: /* @__PURE__ */ e(K, { ...i })
1053
+ children: /* @__PURE__ */ e(K, { ...r })
1048
1054
  }
1049
1055
  ) })
1050
1056
  ]
@@ -1055,18 +1061,18 @@ js.displayName = "AliaEmbedded";
1055
1061
  function Es(s) {
1056
1062
  return s > 99 ? "99+" : String(s);
1057
1063
  }
1058
- const Ts = G(
1064
+ const Ts = Q(
1059
1065
  ({
1060
1066
  open: s,
1061
- defaultOpen: i,
1067
+ defaultOpen: r,
1062
1068
  onOpenChange: t,
1063
1069
  position: d = "bottom-end",
1064
1070
  unseenCount: a,
1065
- assistantName: u,
1071
+ assistantName: c,
1066
1072
  assistantAvatar: f,
1067
- ...c
1073
+ ...m
1068
1074
  }, g) => {
1069
- const { t: l } = x("ui"), n = u || l("alia.name"), v = typeof a == "number" && a > 0, b = v ? l("alia.openWithUnseen", { count: a }) : l("alia.open"), w = /* @__PURE__ */ e(Xe.Close, { asChild: !0, children: /* @__PURE__ */ e(
1075
+ const { t: l } = x("ui"), n = c || l("alia.name"), h = typeof a == "number" && a > 0, b = h ? l("alia.openWithUnseen", { count: a }) : l("alia.open"), w = /* @__PURE__ */ e(Qe.Close, { asChild: !0, children: /* @__PURE__ */ e(
1070
1076
  C,
1071
1077
  {
1072
1078
  icon: /* @__PURE__ */ e(xe, { "aria-hidden": "true" }),
@@ -1080,7 +1086,7 @@ const Ts = G(
1080
1086
  X.Root,
1081
1087
  {
1082
1088
  open: s,
1083
- defaultOpen: i,
1089
+ defaultOpen: r,
1084
1090
  onOpenChange: t,
1085
1091
  children: [
1086
1092
  /* @__PURE__ */ e(
@@ -1097,7 +1103,7 @@ const Ts = G(
1097
1103
  /* @__PURE__ */ e(X.Trigger, { asChild: !0, children: /* @__PURE__ */ e(
1098
1104
  Ge,
1099
1105
  {
1100
- icon: /* @__PURE__ */ e(Qe, { "aria-hidden": "true" }),
1106
+ icon: /* @__PURE__ */ e(Ke, { "aria-hidden": "true" }),
1101
1107
  "aria-label": b,
1102
1108
  variant: "primary",
1103
1109
  size: "md",
@@ -1105,7 +1111,7 @@ const Ts = G(
1105
1111
  "data-testid": "alia-popout-fab"
1106
1112
  }
1107
1113
  ) }),
1108
- v ? /* @__PURE__ */ e(
1114
+ h ? /* @__PURE__ */ e(
1109
1115
  "span",
1110
1116
  {
1111
1117
  "aria-hidden": "true",
@@ -1141,7 +1147,7 @@ const Ts = G(
1141
1147
  /* @__PURE__ */ e(
1142
1148
  K,
1143
1149
  {
1144
- ...c,
1150
+ ...m,
1145
1151
  assistantName: n,
1146
1152
  assistantAvatar: f,
1147
1153
  density: "compact",
@@ -1160,18 +1166,18 @@ Ts.displayName = "AliaPopout";
1160
1166
  function Is(s) {
1161
1167
  return s > 99 ? "99+" : String(s);
1162
1168
  }
1163
- const Ss = "ds:[inline-size:22rem]", Rs = "ds:[inline-size:3rem]", _s = G(
1169
+ const Ss = "ds:[inline-size:22rem]", Rs = "ds:[inline-size:3rem]", _s = Q(
1164
1170
  ({
1165
1171
  open: s,
1166
- onOpenChange: i,
1172
+ onOpenChange: r,
1167
1173
  side: t = "end",
1168
1174
  unseenCount: d,
1169
1175
  footerSlot: a,
1170
- assistantName: u,
1176
+ assistantName: c,
1171
1177
  assistantAvatar: f,
1172
- ...c
1178
+ ...m
1173
1179
  }, g) => {
1174
- const { t: l } = x("ui"), n = u || l("alia.name"), v = typeof d == "number" && d > 0, b = t === "end" ? "ds:shadow-[var(--shadow-chrome-start)]" : "ds:shadow-[var(--shadow-chrome-end)]", w = v ? l("alia.openWithUnseen", { count: d }) : l("alia.open");
1180
+ const { t: l } = x("ui"), n = c || l("alia.name"), h = typeof d == "number" && d > 0, b = t === "end" ? "ds:shadow-[var(--shadow-chrome-start)]" : "ds:shadow-[var(--shadow-chrome-end)]", w = h ? l("alia.openWithUnseen", { count: d }) : l("alia.open");
1175
1181
  if (!s)
1176
1182
  return /* @__PURE__ */ e(
1177
1183
  "aside",
@@ -1196,11 +1202,11 @@ const Ss = "ds:[inline-size:22rem]", Rs = "ds:[inline-size:3rem]", _s = G(
1196
1202
  "aria-expanded": "false",
1197
1203
  intent: "ghost",
1198
1204
  size: "sm",
1199
- onClick: () => i(!0),
1205
+ onClick: () => r(!0),
1200
1206
  "data-testid": "alia-sidebar-rail-trigger"
1201
1207
  }
1202
1208
  ),
1203
- v ? /* @__PURE__ */ e(
1209
+ h ? /* @__PURE__ */ e(
1204
1210
  "span",
1205
1211
  {
1206
1212
  "aria-hidden": "true",
@@ -1223,7 +1229,7 @@ const Ss = "ds:[inline-size:22rem]", Rs = "ds:[inline-size:3rem]", _s = G(
1223
1229
  ] })
1224
1230
  }
1225
1231
  );
1226
- const E = /* @__PURE__ */ e(
1232
+ const j = /* @__PURE__ */ e(
1227
1233
  C,
1228
1234
  {
1229
1235
  icon: t === "end" ? /* @__PURE__ */ e(os, {}) : /* @__PURE__ */ e(cs, {}),
@@ -1231,7 +1237,7 @@ const Ss = "ds:[inline-size:22rem]", Rs = "ds:[inline-size:3rem]", _s = G(
1231
1237
  size: "sm",
1232
1238
  "aria-label": l("alia.close"),
1233
1239
  "aria-expanded": "true",
1234
- onClick: () => i(!1),
1240
+ onClick: () => r(!1),
1235
1241
  "data-testid": "alia-sidebar-collapse"
1236
1242
  }
1237
1243
  );
@@ -1253,11 +1259,11 @@ const Ss = "ds:[inline-size:22rem]", Rs = "ds:[inline-size:3rem]", _s = G(
1253
1259
  /* @__PURE__ */ e("div", { className: "ds:flex ds:min-h-0 ds:flex-1 ds:flex-col", children: /* @__PURE__ */ e(
1254
1260
  K,
1255
1261
  {
1256
- ...c,
1262
+ ...m,
1257
1263
  assistantName: n,
1258
1264
  assistantAvatar: f,
1259
1265
  density: "compact",
1260
- headerEndSlot: E
1266
+ headerEndSlot: j
1261
1267
  }
1262
1268
  ) }),
1263
1269
  a ? /* @__PURE__ */ e(
@@ -1281,4 +1287,4 @@ export {
1281
1287
  Ts as c,
1282
1288
  _s as d
1283
1289
  };
1284
- //# sourceMappingURL=alia-sidebar-DEMMoefU.js.map
1290
+ //# sourceMappingURL=alia-sidebar-DZoyUFW8.js.map