@alfadocs/ui-kit-debug 0.46.0 → 0.48.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 (368) hide show
  1. package/dist/_chunks/{agenda-card-CFyWSX7Z.js → agenda-card-BaSfVfrL.js} +25 -29
  2. package/dist/_chunks/agenda-card-BaSfVfrL.js.map +1 -0
  3. package/dist/_chunks/{agenda-tray-Dyj9ChHC.js → agenda-tray-DQayYmQ0.js} +50 -67
  4. package/dist/_chunks/agenda-tray-DQayYmQ0.js.map +1 -0
  5. package/dist/_chunks/ai-consent-banner-DO5ingMq.js +169 -0
  6. package/dist/_chunks/ai-consent-banner-DO5ingMq.js.map +1 -0
  7. package/dist/_chunks/ai-tools-rail-CxYG04cw.js +280 -0
  8. package/dist/_chunks/ai-tools-rail-CxYG04cw.js.map +1 -0
  9. package/dist/_chunks/alia-sidebar-DlvyXgVC.js +1126 -0
  10. package/dist/_chunks/alia-sidebar-DlvyXgVC.js.map +1 -0
  11. package/dist/_chunks/anamnesis-card-CmkBVAln.js +156 -0
  12. package/dist/_chunks/anamnesis-card-CmkBVAln.js.map +1 -0
  13. package/dist/_chunks/appointment-tray-BwDHhWWC.js +419 -0
  14. package/dist/_chunks/appointment-tray-BwDHhWWC.js.map +1 -0
  15. package/dist/_chunks/{audio-recorder-C1rhKhSN.js → audio-recorder-DC-v9YFW.js} +81 -91
  16. package/dist/_chunks/audio-recorder-DC-v9YFW.js.map +1 -0
  17. package/dist/_chunks/{bmi-calculator-CQqXTVNL.js → bmi-calculator-DdylQzT6.js} +2 -2
  18. package/dist/_chunks/{bmi-calculator-CQqXTVNL.js.map → bmi-calculator-DdylQzT6.js.map} +1 -1
  19. package/dist/_chunks/{booking-DlDVuWMd.js → booking-WV2GSru5.js} +291 -303
  20. package/dist/_chunks/booking-WV2GSru5.js.map +1 -0
  21. package/dist/_chunks/{calculator-dialog-D-nfvteH.js → calculator-dialog-CFk4I91b.js} +2 -2
  22. package/dist/_chunks/{calculator-dialog-D-nfvteH.js.map → calculator-dialog-CFk4I91b.js.map} +1 -1
  23. package/dist/_chunks/calendar-days-C4BmpCZg.js +23 -0
  24. package/dist/_chunks/calendar-days-C4BmpCZg.js.map +1 -0
  25. package/dist/_chunks/{calendar-YHFknAGv.js → calendar-oYWOCrnf.js} +195 -210
  26. package/dist/_chunks/calendar-oYWOCrnf.js.map +1 -0
  27. package/dist/_chunks/care-plan-card-QmNpGggC.js +252 -0
  28. package/dist/_chunks/care-plan-card-QmNpGggC.js.map +1 -0
  29. package/dist/_chunks/care-plan-entry-card-Cnra7vUc.js +318 -0
  30. package/dist/_chunks/care-plan-entry-card-Cnra7vUc.js.map +1 -0
  31. package/dist/_chunks/{chat-input-CQe7nR_v.js → chat-input-CFwc7JxL.js} +2 -1
  32. package/dist/_chunks/{chat-input-CQe7nR_v.js.map → chat-input-CFwc7JxL.js.map} +1 -1
  33. package/dist/_chunks/{chat-message-ASgGtj-L.js → chat-message-Dm8U2RY1.js} +81 -74
  34. package/dist/_chunks/chat-message-Dm8U2RY1.js.map +1 -0
  35. package/dist/_chunks/clinical-note-card-BYo437dU.js +333 -0
  36. package/dist/_chunks/clinical-note-card-BYo437dU.js.map +1 -0
  37. package/dist/_chunks/code-block-HoddNOKJ.js +106 -0
  38. package/dist/_chunks/code-block-HoddNOKJ.js.map +1 -0
  39. package/dist/_chunks/{contact-profile-card-DHyuAPXM.js → contact-profile-card-DvvVfAA2.js} +102 -115
  40. package/dist/_chunks/contact-profile-card-DvvVfAA2.js.map +1 -0
  41. package/dist/_chunks/{cycle-calculator-KxA8dqDf.js → cycle-calculator-DYvGm_m1.js} +2 -2
  42. package/dist/_chunks/{cycle-calculator-KxA8dqDf.js.map → cycle-calculator-DYvGm_m1.js.map} +1 -1
  43. package/dist/_chunks/{dialog-BTpZV6It.js → dialog-DMGnSelc.js} +55 -55
  44. package/dist/_chunks/dialog-DMGnSelc.js.map +1 -0
  45. package/dist/_chunks/download-CDF1sbL9.js +16 -0
  46. package/dist/_chunks/download-CDF1sbL9.js.map +1 -0
  47. package/dist/_chunks/{due-date-calculator-mFxpHLml.js → due-date-calculator-BXd3ANj7.js} +2 -2
  48. package/dist/_chunks/{due-date-calculator-mFxpHLml.js.map → due-date-calculator-BXd3ANj7.js.map} +1 -1
  49. package/dist/_chunks/{editable-currency-cell-renderer-BEBUQl9P.js → editable-currency-cell-renderer-CLil9B29.js} +283 -293
  50. package/dist/_chunks/editable-currency-cell-renderer-CLil9B29.js.map +1 -0
  51. package/dist/_chunks/entity-card-COhmqHly.js +69 -0
  52. package/dist/_chunks/entity-card-COhmqHly.js.map +1 -0
  53. package/dist/_chunks/{gestational-age-calculator-gWI_uRA1.js → gestational-age-calculator-Crj6FgZw.js} +2 -2
  54. package/dist/_chunks/{gestational-age-calculator-gWI_uRA1.js.map → gestational-age-calculator-Crj6FgZw.js.map} +1 -1
  55. package/dist/_chunks/{insert-result-C5ABnzDl.js → insert-result-DNdi_JYW.js} +140 -168
  56. package/dist/_chunks/insert-result-DNdi_JYW.js.map +1 -0
  57. package/dist/_chunks/is-safe-url-DkETxeHz.js +7 -0
  58. package/dist/_chunks/is-safe-url-DkETxeHz.js.map +1 -0
  59. package/dist/_chunks/languages-DsVf_WzT.js +19 -0
  60. package/dist/_chunks/languages-DsVf_WzT.js.map +1 -0
  61. package/dist/_chunks/layers-pzGcbLPj.js +34 -0
  62. package/dist/_chunks/layers-pzGcbLPj.js.map +1 -0
  63. package/dist/_chunks/{message-card-DSPw5ghw.js → message-card-Dvl1TgaN.js} +15 -19
  64. package/dist/_chunks/message-card-Dvl1TgaN.js.map +1 -0
  65. package/dist/_chunks/{message-tray-hSQff9u4.js → message-tray-Dl6GQaaV.js} +2 -2
  66. package/dist/_chunks/{message-tray-hSQff9u4.js.map → message-tray-Dl6GQaaV.js.map} +1 -1
  67. package/dist/_chunks/mic-B4Gog3Gi.js +16 -0
  68. package/dist/_chunks/mic-B4Gog3Gi.js.map +1 -0
  69. package/dist/_chunks/operator-hero-CM8949Hd.js +198 -0
  70. package/dist/_chunks/operator-hero-CM8949Hd.js.map +1 -0
  71. package/dist/_chunks/patient-summary-card-BnTqxcTr.js +443 -0
  72. package/dist/_chunks/patient-summary-card-BnTqxcTr.js.map +1 -0
  73. package/dist/_chunks/payment-request-card-B_lyobd0.js +478 -0
  74. package/dist/_chunks/payment-request-card-B_lyobd0.js.map +1 -0
  75. package/dist/_chunks/{pdf-viewer-CWEXTlwq.js → pdf-viewer-G8SU6Azw.js} +3 -3
  76. package/dist/_chunks/pdf-viewer-G8SU6Azw.js.map +1 -0
  77. package/dist/_chunks/pencil-CfQX-0Qc.js +21 -0
  78. package/dist/_chunks/pencil-CfQX-0Qc.js.map +1 -0
  79. package/dist/_chunks/periodontal-chart-card-BYs9hax1.js +455 -0
  80. package/dist/_chunks/periodontal-chart-card-BYs9hax1.js.map +1 -0
  81. package/dist/_chunks/phone-Bi5yUm4I.js +20 -0
  82. package/dist/_chunks/phone-Bi5yUm4I.js.map +1 -0
  83. package/dist/_chunks/{practice-results-DDi-kvaD.js → practice-results-BFL_mcDW.js} +3 -2
  84. package/dist/_chunks/{practice-results-DDi-kvaD.js.map → practice-results-BFL_mcDW.js.map} +1 -1
  85. package/dist/_chunks/{pregnancy-weight-gain-BtEHaSqy.js → pregnancy-weight-gain-C7dK89jE.js} +2 -2
  86. package/dist/_chunks/{pregnancy-weight-gain-BtEHaSqy.js.map → pregnancy-weight-gain-C7dK89jE.js.map} +1 -1
  87. package/dist/_chunks/scan-line-lGioFwLC.js +18 -0
  88. package/dist/_chunks/scan-line-lGioFwLC.js.map +1 -0
  89. package/dist/_chunks/shield-check-BjCGH_Sr.js +21 -0
  90. package/dist/_chunks/shield-check-BjCGH_Sr.js.map +1 -0
  91. package/dist/_chunks/{sign-document-BCyLpFHJ.js → sign-document-DPI2pY9V.js} +2 -2
  92. package/dist/_chunks/{sign-document-BCyLpFHJ.js.map → sign-document-DPI2pY9V.js.map} +1 -1
  93. package/dist/_chunks/{streaming-text-GH07yIYh.js → streaming-text-CfhDqtIT.js} +49 -45
  94. package/dist/_chunks/streaming-text-CfhDqtIT.js.map +1 -0
  95. package/dist/_chunks/{transaction-chip-B8ujzowA.js → transaction-chip-BZCa6XDn.js} +8 -6
  96. package/dist/_chunks/{transaction-chip-B8ujzowA.js.map → transaction-chip-BZCa6XDn.js.map} +1 -1
  97. package/dist/_chunks/{unit-converter-u3CwNDpP.js → unit-converter-jWp3Z85y.js} +2 -2
  98. package/dist/_chunks/{unit-converter-u3CwNDpP.js.map → unit-converter-jWp3Z85y.js.map} +1 -1
  99. package/dist/_chunks/user-cog-BS_qc8nA.js +24 -0
  100. package/dist/_chunks/user-cog-BS_qc8nA.js.map +1 -0
  101. package/dist/_chunks/video-BAeICxCT.js +21 -0
  102. package/dist/_chunks/video-BAeICxCT.js.map +1 -0
  103. package/dist/_chunks/{workflow-map-BFNpzTiw.js → workflow-map-ZXw-zsZ8.js} +186 -219
  104. package/dist/_chunks/workflow-map-ZXw-zsZ8.js.map +1 -0
  105. package/dist/agent-catalog.json +324 -1
  106. package/dist/components/_shared/code-block.d.ts +39 -0
  107. package/dist/components/_shared/code-block.d.ts.map +1 -0
  108. package/dist/components/_shared/entity-card/entity-card.d.ts +40 -0
  109. package/dist/components/_shared/entity-card/entity-card.d.ts.map +1 -0
  110. package/dist/components/_shared/entity-card/index.d.ts +3 -0
  111. package/dist/components/_shared/entity-card/index.d.ts.map +1 -0
  112. package/dist/components/_shared/index.d.ts +2 -0
  113. package/dist/components/_shared/index.d.ts.map +1 -1
  114. package/dist/components/_shared/is-safe-url.d.ts +13 -0
  115. package/dist/components/_shared/is-safe-url.d.ts.map +1 -0
  116. package/dist/components/agenda-card/agenda-card.d.ts +1 -2
  117. package/dist/components/agenda-card/agenda-card.d.ts.map +1 -1
  118. package/dist/components/agenda-card/index.d.ts +2 -1
  119. package/dist/components/agenda-card/index.d.ts.map +1 -1
  120. package/dist/components/agenda-card/index.js +6 -5
  121. package/dist/components/agenda-card/index.js.map +1 -1
  122. package/dist/components/agenda-tray/index.js +1 -1
  123. package/dist/components/ai-consent-banner/ai-consent-banner.agent.d.ts +4 -0
  124. package/dist/components/ai-consent-banner/ai-consent-banner.agent.d.ts.map +1 -0
  125. package/dist/components/ai-consent-banner/ai-consent-banner.d.ts +45 -0
  126. package/dist/components/ai-consent-banner/ai-consent-banner.d.ts.map +1 -0
  127. package/dist/components/ai-consent-banner/index.d.ts +4 -0
  128. package/dist/components/ai-consent-banner/index.d.ts.map +1 -0
  129. package/dist/components/ai-consent-banner/index.js +6 -0
  130. package/dist/components/ai-consent-banner/index.js.map +1 -0
  131. package/dist/components/ai-tools-rail/ai-tools-rail.agent.d.ts +4 -0
  132. package/dist/components/ai-tools-rail/ai-tools-rail.agent.d.ts.map +1 -0
  133. package/dist/components/ai-tools-rail/ai-tools-rail.d.ts +60 -0
  134. package/dist/components/ai-tools-rail/ai-tools-rail.d.ts.map +1 -0
  135. package/dist/components/ai-tools-rail/index.d.ts +4 -0
  136. package/dist/components/ai-tools-rail/index.d.ts.map +1 -0
  137. package/dist/components/ai-tools-rail/index.js +6 -0
  138. package/dist/components/ai-tools-rail/index.js.map +1 -0
  139. package/dist/components/anamnesis-card/anamnesis-card.d.ts +68 -0
  140. package/dist/components/anamnesis-card/anamnesis-card.d.ts.map +1 -0
  141. package/dist/components/anamnesis-card/index.d.ts +3 -0
  142. package/dist/components/anamnesis-card/index.d.ts.map +1 -0
  143. package/dist/components/anamnesis-card/index.js +5 -0
  144. package/dist/components/anamnesis-card/index.js.map +1 -0
  145. package/dist/components/appointment-card/appointment-card.agent.d.ts +3 -0
  146. package/dist/components/appointment-card/appointment-card.agent.d.ts.map +1 -0
  147. package/dist/components/appointment-card/appointment-card.d.ts +93 -0
  148. package/dist/components/appointment-card/appointment-card.d.ts.map +1 -0
  149. package/dist/components/appointment-card/appointment-tray.agent.d.ts +4 -0
  150. package/dist/components/appointment-card/appointment-tray.agent.d.ts.map +1 -0
  151. package/dist/components/appointment-card/appointment-tray.d.ts +48 -0
  152. package/dist/components/appointment-card/appointment-tray.d.ts.map +1 -0
  153. package/dist/components/appointment-card/index.d.ts +8 -0
  154. package/dist/components/appointment-card/index.d.ts.map +1 -0
  155. package/dist/components/appointment-card/index.js +10 -0
  156. package/dist/components/appointment-card/index.js.map +1 -0
  157. package/dist/components/audio-recorder/index.js +1 -1
  158. package/dist/components/badge/badge.d.ts +1 -1
  159. package/dist/components/bmi-calculator/index.js +1 -1
  160. package/dist/components/booking/index.js +1 -1
  161. package/dist/components/calculator-dialog/index.js +1 -1
  162. package/dist/components/calendar/index.js +1 -1
  163. package/dist/components/card/card.d.ts +1 -1
  164. package/dist/components/care-plan-card/care-plan-card.agent.d.ts +4 -0
  165. package/dist/components/care-plan-card/care-plan-card.agent.d.ts.map +1 -0
  166. package/dist/components/care-plan-card/care-plan-card.d.ts +102 -0
  167. package/dist/components/care-plan-card/care-plan-card.d.ts.map +1 -0
  168. package/dist/components/care-plan-card/index.d.ts +4 -0
  169. package/dist/components/care-plan-card/index.d.ts.map +1 -0
  170. package/dist/components/care-plan-card/index.js +6 -0
  171. package/dist/components/care-plan-card/index.js.map +1 -0
  172. package/dist/components/care-plan-entry-card/care-plan-entry-card.agent.d.ts +4 -0
  173. package/dist/components/care-plan-entry-card/care-plan-entry-card.agent.d.ts.map +1 -0
  174. package/dist/components/care-plan-entry-card/care-plan-entry-card.d.ts +110 -0
  175. package/dist/components/care-plan-entry-card/care-plan-entry-card.d.ts.map +1 -0
  176. package/dist/components/care-plan-entry-card/index.d.ts +4 -0
  177. package/dist/components/care-plan-entry-card/index.d.ts.map +1 -0
  178. package/dist/components/care-plan-entry-card/index.js +6 -0
  179. package/dist/components/care-plan-entry-card/index.js.map +1 -0
  180. package/dist/components/chat-input/index.js +1 -1
  181. package/dist/components/chat-message/chat-message.d.ts +13 -0
  182. package/dist/components/chat-message/chat-message.d.ts.map +1 -1
  183. package/dist/components/chat-message/index.js +1 -1
  184. package/dist/components/clinical-note-card/clinical-note-card.agent.d.ts +4 -0
  185. package/dist/components/clinical-note-card/clinical-note-card.agent.d.ts.map +1 -0
  186. package/dist/components/clinical-note-card/clinical-note-card.d.ts +98 -0
  187. package/dist/components/clinical-note-card/clinical-note-card.d.ts.map +1 -0
  188. package/dist/components/clinical-note-card/index.d.ts +4 -0
  189. package/dist/components/clinical-note-card/index.d.ts.map +1 -0
  190. package/dist/components/clinical-note-card/index.js +6 -0
  191. package/dist/components/clinical-note-card/index.js.map +1 -0
  192. package/dist/components/contact-profile-card/index.js +1 -1
  193. package/dist/components/cycle-calculator/index.js +1 -1
  194. package/dist/components/data-table/index.js +1 -1
  195. package/dist/components/dialog/dialog.d.ts +7 -0
  196. package/dist/components/dialog/dialog.d.ts.map +1 -1
  197. package/dist/components/dialog/index.js +1 -1
  198. package/dist/components/due-date-calculator/index.js +1 -1
  199. package/dist/components/gestational-age-calculator/index.js +1 -1
  200. package/dist/components/index.d.ts +10 -0
  201. package/dist/components/index.d.ts.map +1 -1
  202. package/dist/components/message-card/index.js +5 -4
  203. package/dist/components/message-card/index.js.map +1 -1
  204. package/dist/components/message-card/message-card.d.ts +1 -2
  205. package/dist/components/message-card/message-card.d.ts.map +1 -1
  206. package/dist/components/message-tray/index.js +1 -1
  207. package/dist/components/operator-hero/index.js +1 -1
  208. package/dist/components/operator-hero/operator-hero.agent.d.ts.map +1 -1
  209. package/dist/components/operator-hero/operator-hero.d.ts +9 -0
  210. package/dist/components/operator-hero/operator-hero.d.ts.map +1 -1
  211. package/dist/components/patient-summary-card/index.d.ts +4 -0
  212. package/dist/components/patient-summary-card/index.d.ts.map +1 -0
  213. package/dist/components/patient-summary-card/index.js +6 -0
  214. package/dist/components/patient-summary-card/index.js.map +1 -0
  215. package/dist/components/patient-summary-card/patient-summary-card.agent.d.ts +4 -0
  216. package/dist/components/patient-summary-card/patient-summary-card.agent.d.ts.map +1 -0
  217. package/dist/components/patient-summary-card/patient-summary-card.d.ts +120 -0
  218. package/dist/components/patient-summary-card/patient-summary-card.d.ts.map +1 -0
  219. package/dist/components/payment-card/index.d.ts +7 -0
  220. package/dist/components/payment-card/index.d.ts.map +1 -0
  221. package/dist/components/payment-card/index.js +8 -0
  222. package/dist/components/payment-card/index.js.map +1 -0
  223. package/dist/components/payment-card/payment-card.agent.d.ts +4 -0
  224. package/dist/components/payment-card/payment-card.agent.d.ts.map +1 -0
  225. package/dist/components/payment-card/payment-card.d.ts +71 -0
  226. package/dist/components/payment-card/payment-card.d.ts.map +1 -0
  227. package/dist/components/payment-card/payment-request-card.agent.d.ts +4 -0
  228. package/dist/components/payment-card/payment-request-card.agent.d.ts.map +1 -0
  229. package/dist/components/payment-card/payment-request-card.d.ts +43 -0
  230. package/dist/components/payment-card/payment-request-card.d.ts.map +1 -0
  231. package/dist/components/pdf-viewer/index.js +1 -1
  232. package/dist/components/pdf-viewer/pdf-viewer.d.ts.map +1 -1
  233. package/dist/components/periodontal-chart-card/index.d.ts +4 -0
  234. package/dist/components/periodontal-chart-card/index.d.ts.map +1 -0
  235. package/dist/components/periodontal-chart-card/index.js +7 -0
  236. package/dist/components/periodontal-chart-card/index.js.map +1 -0
  237. package/dist/components/periodontal-chart-card/periodontal-chart-card.agent.d.ts +4 -0
  238. package/dist/components/periodontal-chart-card/periodontal-chart-card.agent.d.ts.map +1 -0
  239. package/dist/components/periodontal-chart-card/periodontal-chart-card.d.ts +74 -0
  240. package/dist/components/periodontal-chart-card/periodontal-chart-card.d.ts.map +1 -0
  241. package/dist/components/practice-results/index.js +1 -1
  242. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  243. package/dist/components/public-header/public-header.d.ts +1 -1
  244. package/dist/components/sign-document/index.js +1 -1
  245. package/dist/components/stat/stat.d.ts +1 -1
  246. package/dist/components/streaming-text/index.js +1 -1
  247. package/dist/components/streaming-text/streaming-text.d.ts.map +1 -1
  248. package/dist/components/transaction-chip/index.js +1 -1
  249. package/dist/components/unit-converter/index.js +1 -1
  250. package/dist/components/workflow/index.js +1 -1
  251. package/dist/i18n/locales/ar.d.ts +366 -0
  252. package/dist/i18n/locales/ar.d.ts.map +1 -1
  253. package/dist/i18n/locales/ar.js +367 -1
  254. package/dist/i18n/locales/ar.js.map +1 -1
  255. package/dist/i18n/locales/de.d.ts +366 -0
  256. package/dist/i18n/locales/de.d.ts.map +1 -1
  257. package/dist/i18n/locales/de.js +367 -1
  258. package/dist/i18n/locales/de.js.map +1 -1
  259. package/dist/i18n/locales/el.d.ts +366 -0
  260. package/dist/i18n/locales/el.d.ts.map +1 -1
  261. package/dist/i18n/locales/el.js +367 -1
  262. package/dist/i18n/locales/el.js.map +1 -1
  263. package/dist/i18n/locales/en.d.ts +366 -0
  264. package/dist/i18n/locales/en.d.ts.map +1 -1
  265. package/dist/i18n/locales/en.js +367 -1
  266. package/dist/i18n/locales/en.js.map +1 -1
  267. package/dist/i18n/locales/es.d.ts +366 -0
  268. package/dist/i18n/locales/es.d.ts.map +1 -1
  269. package/dist/i18n/locales/es.js +367 -1
  270. package/dist/i18n/locales/es.js.map +1 -1
  271. package/dist/i18n/locales/fr.d.ts +366 -0
  272. package/dist/i18n/locales/fr.d.ts.map +1 -1
  273. package/dist/i18n/locales/fr.js +367 -1
  274. package/dist/i18n/locales/fr.js.map +1 -1
  275. package/dist/i18n/locales/hi.d.ts +366 -0
  276. package/dist/i18n/locales/hi.d.ts.map +1 -1
  277. package/dist/i18n/locales/hi.js +367 -1
  278. package/dist/i18n/locales/hi.js.map +1 -1
  279. package/dist/i18n/locales/it.d.ts +366 -0
  280. package/dist/i18n/locales/it.d.ts.map +1 -1
  281. package/dist/i18n/locales/it.js +367 -1
  282. package/dist/i18n/locales/it.js.map +1 -1
  283. package/dist/i18n/locales/ja.d.ts +366 -0
  284. package/dist/i18n/locales/ja.d.ts.map +1 -1
  285. package/dist/i18n/locales/ja.js +367 -1
  286. package/dist/i18n/locales/ja.js.map +1 -1
  287. package/dist/i18n/locales/nl.d.ts +366 -0
  288. package/dist/i18n/locales/nl.d.ts.map +1 -1
  289. package/dist/i18n/locales/nl.js +367 -1
  290. package/dist/i18n/locales/nl.js.map +1 -1
  291. package/dist/i18n/locales/pl.d.ts +366 -0
  292. package/dist/i18n/locales/pl.d.ts.map +1 -1
  293. package/dist/i18n/locales/pl.js +367 -1
  294. package/dist/i18n/locales/pl.js.map +1 -1
  295. package/dist/i18n/locales/pt.d.ts +366 -0
  296. package/dist/i18n/locales/pt.d.ts.map +1 -1
  297. package/dist/i18n/locales/pt.js +367 -1
  298. package/dist/i18n/locales/pt.js.map +1 -1
  299. package/dist/i18n/locales/ro.d.ts +366 -0
  300. package/dist/i18n/locales/ro.d.ts.map +1 -1
  301. package/dist/i18n/locales/ro.js +367 -1
  302. package/dist/i18n/locales/ro.js.map +1 -1
  303. package/dist/i18n/locales/ru.d.ts +366 -0
  304. package/dist/i18n/locales/ru.d.ts.map +1 -1
  305. package/dist/i18n/locales/ru.js +367 -1
  306. package/dist/i18n/locales/ru.js.map +1 -1
  307. package/dist/i18n/locales/sq.d.ts +366 -0
  308. package/dist/i18n/locales/sq.d.ts.map +1 -1
  309. package/dist/i18n/locales/sq.js +367 -1
  310. package/dist/i18n/locales/sq.js.map +1 -1
  311. package/dist/i18n/locales/sv.d.ts +366 -0
  312. package/dist/i18n/locales/sv.d.ts.map +1 -1
  313. package/dist/i18n/locales/sv.js +367 -1
  314. package/dist/i18n/locales/sv.js.map +1 -1
  315. package/dist/i18n/locales/tr.d.ts +366 -0
  316. package/dist/i18n/locales/tr.d.ts.map +1 -1
  317. package/dist/i18n/locales/tr.js +367 -1
  318. package/dist/i18n/locales/tr.js.map +1 -1
  319. package/dist/i18n/locales/zh.d.ts +366 -0
  320. package/dist/i18n/locales/zh.d.ts.map +1 -1
  321. package/dist/i18n/locales/zh.js +367 -1
  322. package/dist/i18n/locales/zh.js.map +1 -1
  323. package/dist/index.js +527 -491
  324. package/dist/index.js.map +1 -1
  325. package/dist/locales/ar.json +367 -1
  326. package/dist/locales/de.json +367 -1
  327. package/dist/locales/el.json +367 -1
  328. package/dist/locales/en.json +367 -1
  329. package/dist/locales/es.json +367 -1
  330. package/dist/locales/fr.json +367 -1
  331. package/dist/locales/hi.json +367 -1
  332. package/dist/locales/it.json +367 -1
  333. package/dist/locales/ja.json +367 -1
  334. package/dist/locales/nl.json +367 -1
  335. package/dist/locales/pl.json +367 -1
  336. package/dist/locales/pt.json +367 -1
  337. package/dist/locales/ro.json +367 -1
  338. package/dist/locales/ru.json +367 -1
  339. package/dist/locales/sq.json +367 -1
  340. package/dist/locales/sv.json +367 -1
  341. package/dist/locales/tr.json +367 -1
  342. package/dist/locales/zh.json +367 -1
  343. package/dist/patterns/alia-assistant/alia-chat-surface.d.ts.map +1 -1
  344. package/dist/patterns/alia-assistant/alia-types.d.ts +76 -0
  345. package/dist/patterns/alia-assistant/alia-types.d.ts.map +1 -1
  346. package/dist/patterns/alia-assistant/index.js +1 -1
  347. package/dist/tokens.css +1 -1
  348. package/package.json +42 -1
  349. package/dist/_chunks/agenda-card-CFyWSX7Z.js.map +0 -1
  350. package/dist/_chunks/agenda-tray-Dyj9ChHC.js.map +0 -1
  351. package/dist/_chunks/alia-sidebar-Be8FhKYd.js +0 -837
  352. package/dist/_chunks/alia-sidebar-Be8FhKYd.js.map +0 -1
  353. package/dist/_chunks/audio-recorder-C1rhKhSN.js.map +0 -1
  354. package/dist/_chunks/booking-DlDVuWMd.js.map +0 -1
  355. package/dist/_chunks/calendar-YHFknAGv.js.map +0 -1
  356. package/dist/_chunks/chat-message-ASgGtj-L.js.map +0 -1
  357. package/dist/_chunks/contact-profile-card-DHyuAPXM.js.map +0 -1
  358. package/dist/_chunks/dialog-BTpZV6It.js.map +0 -1
  359. package/dist/_chunks/editable-currency-cell-renderer-BEBUQl9P.js.map +0 -1
  360. package/dist/_chunks/insert-result-C5ABnzDl.js.map +0 -1
  361. package/dist/_chunks/message-card-DSPw5ghw.js.map +0 -1
  362. package/dist/_chunks/operator-hero-7LiiP7zi.js +0 -171
  363. package/dist/_chunks/operator-hero-7LiiP7zi.js.map +0 -1
  364. package/dist/_chunks/pdf-viewer-CWEXTlwq.js.map +0 -1
  365. package/dist/_chunks/shield-check-C73ma9Cs.js +0 -36
  366. package/dist/_chunks/shield-check-C73ma9Cs.js.map +0 -1
  367. package/dist/_chunks/streaming-text-GH07yIYh.js.map +0 -1
  368. package/dist/_chunks/workflow-map-BFNpzTiw.js.map +0 -1
@@ -0,0 +1,1126 @@
1
+ import { jsx as e, jsxs as m, Fragment as re } from "react/jsx-runtime";
2
+ import { forwardRef as D, useState as L, useMemo as M, useCallback as U, useRef as Le, useEffect as de } from "react";
3
+ import * as Se from "@radix-ui/react-dialog";
4
+ import { useTranslation as x } from "react-i18next";
5
+ import { F as Te } from "./floating-action-button-pojvb9gG.js";
6
+ import { I as w } from "./icon-button-CKEOrN37.js";
7
+ import { S as J } from "./sheet-xbzu4YiY.js";
8
+ import { X as te } from "./x-CCcI3eJp.js";
9
+ import { S as Y } from "./sparkles-CuYXqQLg.js";
10
+ import { A as F } from "./avatar-BNQNhoyL.js";
11
+ import { B as S } from "./button-DD_0Xdmr.js";
12
+ import { C as Ie } from "./chat-container-ogB4OskO.js";
13
+ import { C as Ee } from "./chat-message-Dm8U2RY1.js";
14
+ import { C as ne, P as _e } from "./chat-input-CFwc7JxL.js";
15
+ import { S as Re } from "./spinner-OjQNn8oN.js";
16
+ import { S as Pe } from "./streaming-text-CfhDqtIT.js";
17
+ import { a as le, S as oe } from "./suggestion-chip-C4kxWUIs.js";
18
+ import { T as Be } from "./typing-indicator-DHeVN4ob.js";
19
+ import { P as Ue } from "./progress-kzIRcdaq.js";
20
+ import { P as De } from "./pencil-CfQX-0Qc.js";
21
+ import { S as Fe } from "./square-CZoGU14v.js";
22
+ import { C as Oe } from "./check-DPdL_Sm7.js";
23
+ import { C as $e } from "./copy-B00HK7tj.js";
24
+ import { D as He } from "./download-CDF1sbL9.js";
25
+ import { R as We } from "./refresh-cw-CC8jSKMr.js";
26
+ import { c as Xe } from "./createLucideIcon-CrFbzy84.js";
27
+ import { M as qe } from "./mic-B4Gog3Gi.js";
28
+ import { P as Qe } from "./plus-CYKNmfuA.js";
29
+ import { U as Ke } from "./user-CPxpqFjJ.js";
30
+ import { a as Ze, C as Je } from "./chevrons-right-d9MwesPG.js";
31
+ /**
32
+ * @license lucide-react v1.8.0 - ISC
33
+ *
34
+ * This source code is licensed under the ISC license.
35
+ * See the LICENSE file in the root directory of this source tree.
36
+ */
37
+ const Me = [
38
+ [
39
+ "path",
40
+ {
41
+ d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
42
+ key: "oel41y"
43
+ }
44
+ ],
45
+ ["path", { d: "m14.5 9.5-5 5", key: "17q4r4" }],
46
+ ["path", { d: "m9.5 9.5 5 5", key: "18nt4w" }]
47
+ ], Ye = Xe("shield-x", Me), ce = {
48
+ sm: {
49
+ box: "ds:size-[calc(var(--spacing-md)*2)]",
50
+ icon: "ds:size-4"
51
+ },
52
+ md: {
53
+ box: "ds:size-[calc(var(--spacing-md)*2.5)]",
54
+ icon: "ds:size-[1.125rem]"
55
+ },
56
+ xl: {
57
+ box: "ds:size-[calc(var(--spacing-md)*4)]",
58
+ icon: "ds:size-8"
59
+ }
60
+ };
61
+ function T({
62
+ size: s,
63
+ label: i,
64
+ appearance: t = "sparkle",
65
+ loading: d = !1
66
+ }) {
67
+ const a = ce[s];
68
+ return t === "spinner" ? /* @__PURE__ */ e(
69
+ "span",
70
+ {
71
+ role: "img",
72
+ "aria-label": i,
73
+ className: "ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center ds:text-[color:var(--primary)]",
74
+ children: /* @__PURE__ */ e(
75
+ Re,
76
+ {
77
+ "aria-hidden": !0,
78
+ variant: d ? "pulse" : "static",
79
+ className: a.box
80
+ }
81
+ )
82
+ }
83
+ ) : /* @__PURE__ */ e(
84
+ "span",
85
+ {
86
+ role: "img",
87
+ "aria-label": i,
88
+ className: [
89
+ "ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center",
90
+ "ds:rounded-[var(--radius-full)]",
91
+ // Subtle accent-tinted disc so the sparkle reads against both
92
+ // light and dark surfaces without a hard-coded literal colour.
93
+ "ds:bg-[color-mix(in_srgb,var(--accent)_14%,transparent)]",
94
+ "ds:text-[color:var(--accent)]",
95
+ // forced-colors: UA strips color-mix backgrounds; fall back to
96
+ // a bordered disc so the identity still reads in HCM.
97
+ "ds:forced-colors:bg-transparent ds:forced-colors:border ds:forced-colors:border-[CanvasText]",
98
+ a.box
99
+ ].join(" "),
100
+ children: /* @__PURE__ */ e(Y, { "aria-hidden": "true", className: a.icon })
101
+ }
102
+ );
103
+ }
104
+ function Ge({
105
+ size: s,
106
+ label: i
107
+ }) {
108
+ const t = ce[s];
109
+ return /* @__PURE__ */ e(
110
+ "span",
111
+ {
112
+ role: "img",
113
+ "aria-label": i,
114
+ className: [
115
+ "ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center",
116
+ "ds:rounded-[var(--radius-full)]",
117
+ "ds:bg-[color-mix(in_srgb,var(--muted-foreground)_14%,transparent)]",
118
+ "ds:text-[color:var(--muted-foreground)]",
119
+ "ds:forced-colors:bg-transparent ds:forced-colors:border ds:forced-colors:border-[CanvasText]",
120
+ t.box
121
+ ].join(" "),
122
+ children: /* @__PURE__ */ e(Ke, { "aria-hidden": "true", className: t.icon })
123
+ }
124
+ );
125
+ }
126
+ function Ve({ note: s }) {
127
+ return /* @__PURE__ */ m(
128
+ "div",
129
+ {
130
+ role: "status",
131
+ className: [
132
+ "ds:flex ds:w-full ds:flex-col ds:items-center ds:text-center",
133
+ "ds:gap-[var(--spacing-xs)]"
134
+ ].join(" "),
135
+ "data-testid": "alia-ended-divider",
136
+ children: [
137
+ /* @__PURE__ */ e(
138
+ Ye,
139
+ {
140
+ "aria-hidden": "true",
141
+ className: "ds:size-5 ds:text-[color:var(--destructive)]"
142
+ }
143
+ ),
144
+ /* @__PURE__ */ e("span", { className: "type-body-sm ds:text-[color:var(--muted-foreground)]", children: s })
145
+ ]
146
+ }
147
+ );
148
+ }
149
+ function Ae(s, i) {
150
+ return s ? s.slot ? { slot: s.slot } : { name: s.name, src: s.src } : { slot: /* @__PURE__ */ e(Ge, { size: "sm", label: i }) };
151
+ }
152
+ function es({
153
+ assistantName: s,
154
+ avatarSrc: i,
155
+ greeting: t,
156
+ subtitle: d,
157
+ suggestions: a,
158
+ onSuggestion: l
159
+ }) {
160
+ const { t: p } = x(), n = "alia-empty-state-heading";
161
+ return /* @__PURE__ */ m(
162
+ "section",
163
+ {
164
+ "aria-labelledby": n,
165
+ className: [
166
+ "ds:flex ds:flex-1 ds:min-h-0 ds:flex-col ds:items-center ds:justify-center",
167
+ "ds:text-center",
168
+ "ds:ps-[var(--spacing-lg)] ds:pe-[var(--spacing-lg)]",
169
+ "ds:pt-[var(--spacing-xl)] ds:pb-[var(--spacing-xl)]",
170
+ "ds:gap-[var(--spacing-md)]"
171
+ ].join(" "),
172
+ "data-testid": "alia-empty-state",
173
+ children: [
174
+ i ? /* @__PURE__ */ e(F, { name: s, src: i, size: "xl" }) : /* @__PURE__ */ e(
175
+ T,
176
+ {
177
+ size: "xl",
178
+ label: s,
179
+ appearance: "spinner"
180
+ }
181
+ ),
182
+ /* @__PURE__ */ m("div", { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-xs)] ds:max-w-[32rem]", children: [
183
+ /* @__PURE__ */ e(
184
+ "h2",
185
+ {
186
+ id: n,
187
+ className: "type-title-section ds:m-0 ds:text-[color:var(--foreground)]",
188
+ children: t
189
+ }
190
+ ),
191
+ /* @__PURE__ */ e("p", { className: "type-body-sm ds:m-0 ds:text-[color:var(--muted-foreground)]", children: d })
192
+ ] }),
193
+ a && a.length > 0 ? /* @__PURE__ */ e("div", { className: "ds:w-full ds:max-w-[40rem]", children: /* @__PURE__ */ e(
194
+ le,
195
+ {
196
+ label: p("alia.exampleQuestions"),
197
+ className: "ds:justify-center",
198
+ children: a.map((c) => /* @__PURE__ */ e(
199
+ oe,
200
+ {
201
+ intent: "suggestion",
202
+ startIcon: c.icon,
203
+ keepOnSelect: !0,
204
+ onSelect: () => l == null ? void 0 : l(c),
205
+ children: c.label
206
+ },
207
+ c.id
208
+ ))
209
+ }
210
+ ) }) : null
211
+ ]
212
+ }
213
+ );
214
+ }
215
+ function ss({
216
+ message: s,
217
+ assistantName: i,
218
+ avatarSrc: t,
219
+ renderMarkdown: d
220
+ }) {
221
+ const { t: a, i18n: l } = x(), p = a("chat.message.role.assistant"), n = M(() => {
222
+ if (!s.timestamp) return null;
223
+ const o = s.timestamp instanceof Date ? s.timestamp : new Date(s.timestamp);
224
+ return Number.isNaN(o.getTime()) ? null : new Intl.DateTimeFormat(l.language, {
225
+ hour: "2-digit",
226
+ minute: "2-digit"
227
+ }).format(o);
228
+ }, [s.timestamp, l.language]), c = n ? a("chat.message.label", { role: p, time: n }) : a("chat.message.labelNoTime", { role: p });
229
+ return /* @__PURE__ */ m(
230
+ "article",
231
+ {
232
+ "aria-label": c,
233
+ className: "ds:flex ds:w-full ds:items-start ds:flex-row ds:gap-[var(--spacing-sm)]",
234
+ children: [
235
+ t ? /* @__PURE__ */ e(F, { name: i, src: t, size: "sm" }) : /* @__PURE__ */ e(
236
+ T,
237
+ {
238
+ size: "sm",
239
+ label: i,
240
+ appearance: "spinner",
241
+ loading: !0
242
+ }
243
+ ),
244
+ /* @__PURE__ */ e("div", { className: "ds:flex ds:flex-col ds:items-start", children: /* @__PURE__ */ e(
245
+ "div",
246
+ {
247
+ dir: "auto",
248
+ className: [
249
+ "ds:relative ds:max-w-[min(42rem,90%)]",
250
+ "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
251
+ "ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]",
252
+ "type-body",
253
+ "ds:break-words",
254
+ "ds:bg-muted/40 ds:text-foreground",
255
+ "ds:rounded-[var(--radius-md)] ds:rounded-es-[var(--radius-sm)]"
256
+ ].join(" "),
257
+ children: /* @__PURE__ */ e(
258
+ Pe,
259
+ {
260
+ content: s.content,
261
+ isStreaming: !0,
262
+ renderMarkdown: d
263
+ }
264
+ )
265
+ }
266
+ ) })
267
+ ]
268
+ }
269
+ );
270
+ }
271
+ function as({
272
+ assistantName: s,
273
+ avatarSrc: i,
274
+ onNewConversation: t,
275
+ headerEndSlot: d,
276
+ density: a
277
+ }) {
278
+ const { t: l } = x();
279
+ return /* @__PURE__ */ m(
280
+ "header",
281
+ {
282
+ "aria-label": l("alia.headerLabel"),
283
+ className: [
284
+ "ds:flex ds:shrink-0 ds:items-center ds:gap-[var(--spacing-sm)]",
285
+ // Soft drop-shadow on the block-end edge in place of a `border-b`
286
+ // against `--border` — same rationale as the Alia sidebar's inline
287
+ // edge (see alia-sidebar.tsx).
288
+ "ds:shadow-[var(--shadow-chrome-down)]",
289
+ "ds:bg-[var(--background)]",
290
+ "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
291
+ a === "compact" ? "ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]" : "ds:pt-[var(--spacing-md)] ds:pb-[var(--spacing-md)]"
292
+ ].join(" "),
293
+ "data-testid": "alia-header",
294
+ children: [
295
+ i ? /* @__PURE__ */ e(
296
+ F,
297
+ {
298
+ name: s,
299
+ src: i,
300
+ size: a === "compact" ? "sm" : "md"
301
+ }
302
+ ) : /* @__PURE__ */ e(
303
+ T,
304
+ {
305
+ size: a === "compact" ? "sm" : "md",
306
+ label: s,
307
+ appearance: "spinner"
308
+ }
309
+ ),
310
+ /* @__PURE__ */ e("span", { className: "type-title-item ds:text-[color:var(--foreground)]", children: s }),
311
+ /* @__PURE__ */ m("div", { className: "ds:ms-auto ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
312
+ t ? /* @__PURE__ */ e(
313
+ S,
314
+ {
315
+ intent: "ghost",
316
+ size: "sm",
317
+ startIcon: /* @__PURE__ */ e(Qe, { "aria-hidden": "true" }),
318
+ onClick: t,
319
+ children: l("alia.newConversation")
320
+ }
321
+ ) : null,
322
+ d
323
+ ] })
324
+ ]
325
+ }
326
+ );
327
+ }
328
+ function is(s) {
329
+ var i;
330
+ 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);
331
+ }
332
+ function ds(s, i) {
333
+ if (typeof window > "u" || typeof URL > "u" || typeof URL.createObjectURL != "function")
334
+ return;
335
+ const t = new Blob([s], { type: "text/markdown;charset=utf-8" }), d = URL.createObjectURL(t), a = document.createElement("a");
336
+ a.href = d, a.download = i, document.body.appendChild(a), a.click(), a.remove(), URL.revokeObjectURL(d);
337
+ }
338
+ function rs(s) {
339
+ const i = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
340
+ return `${s.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "") || "assistant"}-prompt-${i}.md`;
341
+ }
342
+ const ts = () => {
343
+ var s;
344
+ return typeof navigator < "u" && typeof ((s = navigator.clipboard) == null ? void 0 : s.writeText) == "function";
345
+ };
346
+ function ns({
347
+ message: s,
348
+ actions: i,
349
+ assistantName: t,
350
+ canRegenerate: d,
351
+ onCopyMessage: a,
352
+ onDownloadMessage: l,
353
+ onRegenerate: p
354
+ }) {
355
+ const { t: n } = x(), [c, o] = L(!1), r = U(() => {
356
+ is(s.content).then((v) => {
357
+ v && (o(!0), setTimeout(() => o(!1), 2e3), a == null || a(s.id));
358
+ });
359
+ }, [s.content, s.id, a]), g = U(() => {
360
+ ds(s.content, rs(t)), l == null || l(s.id);
361
+ }, [s.content, s.id, t, l]);
362
+ return /* @__PURE__ */ m(re, { children: [
363
+ i.includes("copy") && ts() ? /* @__PURE__ */ e(
364
+ w,
365
+ {
366
+ icon: c ? /* @__PURE__ */ e(Oe, {}) : /* @__PURE__ */ e($e, {}),
367
+ "aria-label": n(c ? "alia.copied" : "alia.copyMessage"),
368
+ intent: "ghost",
369
+ size: "sm",
370
+ onClick: r
371
+ }
372
+ ) : null,
373
+ i.includes("download") ? /* @__PURE__ */ e(
374
+ w,
375
+ {
376
+ icon: /* @__PURE__ */ e(He, {}),
377
+ "aria-label": n("alia.downloadMessage"),
378
+ intent: "ghost",
379
+ size: "sm",
380
+ onClick: g
381
+ }
382
+ ) : null,
383
+ d && p ? /* @__PURE__ */ e(
384
+ w,
385
+ {
386
+ icon: /* @__PURE__ */ e(We, {}),
387
+ "aria-label": n("alia.regenerate"),
388
+ intent: "ghost",
389
+ size: "sm",
390
+ onClick: () => p(s.id)
391
+ }
392
+ ) : null,
393
+ /* @__PURE__ */ e("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: c ? n("alia.copied") : "" })
394
+ ] });
395
+ }
396
+ function ls({
397
+ attachments: s,
398
+ onRemove: i
399
+ }) {
400
+ const { t } = x();
401
+ return s.length === 0 ? null : /* @__PURE__ */ e(
402
+ "ul",
403
+ {
404
+ "aria-label": t("alia.attachmentsLabel"),
405
+ className: "ds:m-0 ds:flex ds:list-none ds:flex-wrap ds:gap-[var(--spacing-xs)] ds:p-0",
406
+ children: s.map((d) => /* @__PURE__ */ m(
407
+ "li",
408
+ {
409
+ className: [
410
+ "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
411
+ "ds:rounded-[var(--radius-full)] ds:bg-[var(--muted)]",
412
+ "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-xs)]",
413
+ "ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)]"
414
+ ].join(" "),
415
+ children: [
416
+ /* @__PURE__ */ e(
417
+ _e,
418
+ {
419
+ "aria-hidden": "true",
420
+ className: "ds:size-3.5 ds:text-[color:var(--muted-foreground)]"
421
+ }
422
+ ),
423
+ /* @__PURE__ */ e("span", { dir: "auto", className: "type-meta ds:max-w-[12rem] ds:truncate", children: d.name }),
424
+ i ? /* @__PURE__ */ e(
425
+ w,
426
+ {
427
+ icon: /* @__PURE__ */ e(te, {}),
428
+ "aria-label": t("alia.removeAttachment", { name: d.name }),
429
+ intent: "ghost",
430
+ size: "sm",
431
+ onClick: () => i(d.id)
432
+ }
433
+ ) : null
434
+ ]
435
+ },
436
+ d.id
437
+ ))
438
+ }
439
+ );
440
+ }
441
+ function me() {
442
+ if (typeof window > "u") return;
443
+ const s = window;
444
+ return s.SpeechRecognition ?? s.webkitSpeechRecognition;
445
+ }
446
+ function os({
447
+ lang: s,
448
+ disabled: i,
449
+ onTranscript: t
450
+ }) {
451
+ const { t: d } = x(), [a, l] = L(!1), p = Le(null), n = U(() => {
452
+ var o;
453
+ (o = p.current) == null || o.stop(), l(!1);
454
+ }, []), c = U(() => {
455
+ const o = me();
456
+ if (!o) return;
457
+ const r = new o();
458
+ r.lang = s, r.continuous = !1, r.interimResults = !1, r.onresult = (g) => {
459
+ let v = "";
460
+ for (let C = 0; C < g.results.length; C++)
461
+ v += g.results[C][0].transcript;
462
+ v && t(v);
463
+ }, r.onend = () => l(!1), r.onerror = () => l(!1), p.current = r, r.start(), l(!0);
464
+ }, [s, t]);
465
+ return de(() => {
466
+ if (!a) return;
467
+ const o = (r) => {
468
+ r.key === "Escape" && n();
469
+ };
470
+ return window.addEventListener("keydown", o), () => window.removeEventListener("keydown", o);
471
+ }, [a, n]), de(() => () => {
472
+ var o;
473
+ return (o = p.current) == null ? void 0 : o.stop();
474
+ }, []), /* @__PURE__ */ e(
475
+ w,
476
+ {
477
+ icon: /* @__PURE__ */ e(qe, {}),
478
+ "aria-label": d(a ? "alia.dictateStop" : "alia.dictate"),
479
+ "aria-pressed": a,
480
+ intent: a ? "primary" : "ghost",
481
+ size: "sm",
482
+ disabled: i,
483
+ onClick: () => a ? n() : c(),
484
+ className: a ? "ds:motion-safe:animate-pulse ds:motion-reduce:animate-none ds:[.theme-accessible_&]:animate-none" : void 0
485
+ }
486
+ );
487
+ }
488
+ function cs({
489
+ initialText: s,
490
+ onSave: i,
491
+ onCancel: t
492
+ }) {
493
+ const { t: d } = x(), [a, l] = L(s);
494
+ return /* @__PURE__ */ m(
495
+ "div",
496
+ {
497
+ className: "ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-xs)]",
498
+ "data-testid": "alia-message-editor",
499
+ children: [
500
+ /* @__PURE__ */ e(
501
+ ne,
502
+ {
503
+ label: d("alia.editMessage"),
504
+ value: a,
505
+ onChange: (p) => l(p.target.value),
506
+ submitOnEnter: !0,
507
+ onSubmit: (p) => i(p),
508
+ minRows: 2
509
+ }
510
+ ),
511
+ /* @__PURE__ */ m("div", { className: "ds:flex ds:items-center ds:justify-end ds:gap-[var(--spacing-xs)]", children: [
512
+ /* @__PURE__ */ e(S, { intent: "ghost", size: "sm", onClick: t, children: d("alia.cancelEdit") }),
513
+ /* @__PURE__ */ e(
514
+ S,
515
+ {
516
+ intent: "primary",
517
+ size: "sm",
518
+ onClick: () => i(a),
519
+ disabled: a.trim().length === 0,
520
+ children: d("alia.saveEdit")
521
+ }
522
+ )
523
+ ] })
524
+ ]
525
+ }
526
+ );
527
+ }
528
+ const O = D(
529
+ ({
530
+ messages: s,
531
+ onSend: i,
532
+ onRetry: t,
533
+ onSuggestion: d,
534
+ suggestions: a,
535
+ isGenerating: l = !1,
536
+ onStopGenerating: p,
537
+ usage: n,
538
+ onUpgrade: c,
539
+ assistantName: o,
540
+ assistantAvatar: r,
541
+ userAvatar: g,
542
+ greeting: v,
543
+ subtitle: C,
544
+ density: k = "default",
545
+ renderMarkdown: $ = !0,
546
+ onNewConversation: pe,
547
+ onAttach: ue,
548
+ acceptedFileTypes: fe,
549
+ headerEndSlot: he,
550
+ ended: I,
551
+ messageActions: E,
552
+ onCopyMessage: G,
553
+ onDownloadMessage: V,
554
+ voiceInput: ge,
555
+ onVoiceTranscript: H,
556
+ attachments: W,
557
+ onRemoveAttachment: ve,
558
+ showScrollToLatest: be,
559
+ onRegenerate: _,
560
+ onEditMessage: R
561
+ }, xe) => {
562
+ const { t: h, i18n: Ne } = x(), [A, X] = L(null), [we, q] = L(""), P = !!ge && me() != null, Q = M(() => {
563
+ for (let f = s.length - 1; f >= 0; f--) {
564
+ const b = s[f];
565
+ if (b.role === "assistant" && !b.streaming) return b.id;
566
+ }
567
+ }, [s]), j = I != null, N = o ?? h("alia.name"), ye = v ?? h("alia.greeting"), Ce = C ?? h("alia.subtitle"), y = s[s.length - 1], B = (y == null ? void 0 : y.role) === "assistant" && y.streaming === !0, ee = B ? s.slice(0, -1) : s, ke = M(() => {
568
+ const f = h("chat.message.role.user"), b = ee.map((u) => {
569
+ let K;
570
+ if (u.role === "assistant" ? K = r != null && r.src ? { name: N, src: r.src } : {
571
+ slot: /* @__PURE__ */ e(
572
+ T,
573
+ {
574
+ size: "sm",
575
+ label: N,
576
+ appearance: "spinner"
577
+ }
578
+ )
579
+ } : u.role === "user" && (K = Ae(g, f)), u.role === "user" && R && A === u.id)
580
+ return {
581
+ id: u.id,
582
+ node: /* @__PURE__ */ e(
583
+ cs,
584
+ {
585
+ initialText: u.content,
586
+ onSave: (je) => {
587
+ R(u.id, je), X(null);
588
+ },
589
+ onCancel: () => X(null)
590
+ }
591
+ )
592
+ };
593
+ let Z;
594
+ return u.role === "assistant" && (E && E.length > 0 || _ && u.id === Q) ? Z = /* @__PURE__ */ e(
595
+ ns,
596
+ {
597
+ message: u,
598
+ actions: E ?? [],
599
+ assistantName: N,
600
+ canRegenerate: !!_ && u.id === Q,
601
+ onCopyMessage: G,
602
+ onDownloadMessage: V,
603
+ onRegenerate: _
604
+ }
605
+ ) : u.role === "user" && R && (Z = /* @__PURE__ */ e(
606
+ w,
607
+ {
608
+ icon: /* @__PURE__ */ e(De, {}),
609
+ "aria-label": h("alia.editMessage"),
610
+ intent: "ghost",
611
+ size: "sm",
612
+ onClick: () => X(u.id)
613
+ }
614
+ )), {
615
+ id: u.id,
616
+ node: /* @__PURE__ */ e(
617
+ Ee,
618
+ {
619
+ role: u.role,
620
+ content: u.content,
621
+ body: u.body,
622
+ avatar: K,
623
+ timestamp: u.timestamp,
624
+ status: u.status,
625
+ renderMarkdown: $,
626
+ onRetry: t ? () => t(u.id) : void 0,
627
+ actions: Z
628
+ }
629
+ )
630
+ };
631
+ });
632
+ return B && y && b.push({
633
+ id: y.id,
634
+ node: /* @__PURE__ */ e(
635
+ ss,
636
+ {
637
+ message: y,
638
+ assistantName: N,
639
+ avatarSrc: r == null ? void 0 : r.src,
640
+ renderMarkdown: $
641
+ }
642
+ )
643
+ }), l && !B && b.push({
644
+ id: "__alia-typing__",
645
+ node: /* @__PURE__ */ m("div", { className: "ds:flex ds:w-full ds:items-start ds:gap-[var(--spacing-sm)]", children: [
646
+ r != null && r.src ? /* @__PURE__ */ e(
647
+ F,
648
+ {
649
+ name: N,
650
+ src: r.src,
651
+ size: "sm"
652
+ }
653
+ ) : /* @__PURE__ */ e(
654
+ T,
655
+ {
656
+ size: "sm",
657
+ label: N,
658
+ appearance: "spinner"
659
+ }
660
+ ),
661
+ /* @__PURE__ */ e(
662
+ "div",
663
+ {
664
+ className: [
665
+ "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
666
+ "ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]",
667
+ "ds:rounded-[var(--radius-md)] ds:rounded-es-[var(--radius-sm)]",
668
+ "ds:bg-muted/40"
669
+ ].join(" "),
670
+ children: /* @__PURE__ */ e(Be, { label: h("chat.typing"), density: k })
671
+ }
672
+ )
673
+ ] })
674
+ }), I && b.push({
675
+ id: "__alia-ended__",
676
+ node: /* @__PURE__ */ e(Ve, { note: I.note })
677
+ }), b;
678
+ }, [
679
+ ee,
680
+ B,
681
+ y,
682
+ l,
683
+ N,
684
+ r == null ? void 0 : r.src,
685
+ g,
686
+ $,
687
+ t,
688
+ k,
689
+ I,
690
+ h,
691
+ A,
692
+ R,
693
+ E,
694
+ _,
695
+ Q,
696
+ G,
697
+ V
698
+ ]), ze = n ? Math.min(
699
+ 100,
700
+ Math.max(0, n.current / Math.max(1, n.limit) * 100)
701
+ ) : 0, z = n ? n.current >= n.limit : !1, se = n ? n.label ?? h("alia.usageLabel", {
702
+ current: n.current,
703
+ limit: n.limit
704
+ }) : null, ae = s.length === 0 && !l && !j, ie = /* @__PURE__ */ m("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
705
+ n ? /* @__PURE__ */ m("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
706
+ /* @__PURE__ */ m("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
707
+ /* @__PURE__ */ e(
708
+ "span",
709
+ {
710
+ className: [
711
+ "type-meta",
712
+ z ? "ds:text-[color:var(--destructive)]" : "ds:text-[color:var(--muted-foreground)]"
713
+ ].join(" "),
714
+ "data-testid": "alia-usage-label",
715
+ children: z ? h("alia.usageLimitReached") : se
716
+ }
717
+ ),
718
+ z && c ? /* @__PURE__ */ e(S, { intent: "primary", size: "sm", onClick: c, children: h("alia.upgrade") }) : null
719
+ ] }),
720
+ /* @__PURE__ */ e(
721
+ Ue,
722
+ {
723
+ value: ze,
724
+ max: 100,
725
+ size: "sm",
726
+ ariaLabel: se ?? h("alia.usageLabel", {
727
+ current: n.current,
728
+ limit: n.limit
729
+ }),
730
+ className: z ? "ds:[&_[role=progressbar]>*]:bg-[color:var(--destructive)]" : void 0,
731
+ "data-testid": "alia-usage-progress"
732
+ }
733
+ )
734
+ ] }) : null,
735
+ !ae && a && a.length > 0 && !l && !j ? /* @__PURE__ */ e(
736
+ le,
737
+ {
738
+ label: h("alia.exampleQuestions"),
739
+ "data-testid": "alia-followup-suggestions",
740
+ children: a.map((f) => /* @__PURE__ */ e(
741
+ oe,
742
+ {
743
+ intent: "followup",
744
+ startIcon: f.icon,
745
+ keepOnSelect: !0,
746
+ onSelect: () => d == null ? void 0 : d(f),
747
+ children: f.label
748
+ },
749
+ f.id
750
+ ))
751
+ }
752
+ ) : null,
753
+ W && W.length > 0 ? /* @__PURE__ */ e(
754
+ ls,
755
+ {
756
+ attachments: W,
757
+ onRemove: ve
758
+ }
759
+ ) : null,
760
+ /* @__PURE__ */ m("div", { className: "ds:flex ds:items-end ds:gap-[var(--spacing-sm)]", children: [
761
+ /* @__PURE__ */ e("div", { className: "ds:flex-1 ds:min-w-0", children: /* @__PURE__ */ e(
762
+ ne,
763
+ {
764
+ submitOnEnter: !0,
765
+ onSubmit: P ? (f) => {
766
+ i(f), q("");
767
+ } : i,
768
+ value: P ? we : void 0,
769
+ onChange: P ? (f) => q(f.target.value) : void 0,
770
+ onAttach: ue,
771
+ accept: fe,
772
+ disabled: z || j,
773
+ toolbar: P ? /* @__PURE__ */ e(
774
+ os,
775
+ {
776
+ lang: Ne.language,
777
+ disabled: z || j,
778
+ onTranscript: (f) => {
779
+ H == null || H(f), q(
780
+ (b) => b ? `${b} ${f}` : f
781
+ );
782
+ }
783
+ }
784
+ ) : void 0,
785
+ "data-testid": "alia-composer"
786
+ }
787
+ ) }),
788
+ l && p && !j ? /* @__PURE__ */ e(
789
+ S,
790
+ {
791
+ intent: "outline",
792
+ size: "sm",
793
+ startIcon: /* @__PURE__ */ e(Fe, { "aria-hidden": "true" }),
794
+ onClick: p,
795
+ "aria-label": h("alia.stopGenerating"),
796
+ children: h("alia.stopGenerating")
797
+ }
798
+ ) : null
799
+ ] })
800
+ ] });
801
+ return /* @__PURE__ */ m(
802
+ "div",
803
+ {
804
+ ref: xe,
805
+ className: [
806
+ "ds:flex ds:min-h-0 ds:flex-1 ds:flex-col",
807
+ "ds:bg-[var(--background)] ds:text-[color:var(--foreground)]"
808
+ ].join(" "),
809
+ "data-testid": "alia-surface",
810
+ children: [
811
+ /* @__PURE__ */ e(
812
+ as,
813
+ {
814
+ assistantName: N,
815
+ avatarSrc: r == null ? void 0 : r.src,
816
+ onNewConversation: pe,
817
+ headerEndSlot: he,
818
+ density: k
819
+ }
820
+ ),
821
+ ae ? /* @__PURE__ */ m(re, { children: [
822
+ /* @__PURE__ */ e(
823
+ es,
824
+ {
825
+ assistantName: N,
826
+ avatarSrc: r == null ? void 0 : r.src,
827
+ greeting: ye,
828
+ subtitle: Ce,
829
+ suggestions: a,
830
+ onSuggestion: d
831
+ }
832
+ ),
833
+ /* @__PURE__ */ e(
834
+ "div",
835
+ {
836
+ className: [
837
+ // No top divider — the ChatInput's own soft shadow + the
838
+ // border-radius give it enough visual containment, and a
839
+ // surface-level separator here read as a sharp line at
840
+ // 1px-equivalent shadow blur. Keep the bg explicit so
841
+ // the chat-input chrome paints over the messages-area
842
+ // background instead of mixing with it.
843
+ "ds:shrink-0 ds:bg-[var(--background)]",
844
+ "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
845
+ "ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]"
846
+ ].join(" "),
847
+ children: ie
848
+ }
849
+ )
850
+ ] }) : /* @__PURE__ */ e(
851
+ Ie,
852
+ {
853
+ messages: ke,
854
+ density: k,
855
+ composer: ie,
856
+ showScrollToLatest: be,
857
+ className: "ds:flex-1 ds:min-h-0"
858
+ }
859
+ )
860
+ ]
861
+ }
862
+ );
863
+ }
864
+ );
865
+ O.displayName = "AliaChatSurface";
866
+ const ms = D(
867
+ ({ headerSlot: s, ...i }, t) => /* @__PURE__ */ m(
868
+ "div",
869
+ {
870
+ ref: t,
871
+ className: [
872
+ "ds:flex ds:min-h-0 ds:flex-1 ds:flex-col",
873
+ "ds:bg-[var(--background)] ds:text-[color:var(--foreground)]",
874
+ "ds:h-full ds:w-full"
875
+ ].join(" "),
876
+ "data-testid": "alia-embedded",
877
+ children: [
878
+ s ? /* @__PURE__ */ e(
879
+ "div",
880
+ {
881
+ className: [
882
+ "ds:shrink-0",
883
+ "ds:ps-[var(--spacing-lg)] ds:pe-[var(--spacing-lg)]",
884
+ "ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]"
885
+ ].join(" "),
886
+ children: s
887
+ }
888
+ ) : null,
889
+ /* @__PURE__ */ e("div", { className: "ds:flex ds:min-h-0 ds:flex-1 ds:flex-col ds:items-stretch", children: /* @__PURE__ */ e(
890
+ "div",
891
+ {
892
+ className: [
893
+ "ds:flex ds:min-h-0 ds:w-full ds:flex-1 ds:flex-col",
894
+ "ds:ms-auto ds:me-auto",
895
+ "ds:[max-inline-size:48rem]",
896
+ "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]"
897
+ ].join(" "),
898
+ children: /* @__PURE__ */ e(O, { ...i })
899
+ }
900
+ ) })
901
+ ]
902
+ }
903
+ )
904
+ );
905
+ ms.displayName = "AliaEmbedded";
906
+ function ps(s) {
907
+ return s > 99 ? "99+" : String(s);
908
+ }
909
+ const us = D(
910
+ ({
911
+ open: s,
912
+ onOpenChange: i,
913
+ position: t = "bottom-end",
914
+ unseenCount: d,
915
+ assistantName: a,
916
+ assistantAvatar: l,
917
+ ...p
918
+ }, n) => {
919
+ const { t: c } = x(), o = a || c("alia.name"), r = typeof d == "number" && d > 0, g = r ? c("alia.unseenCount", { count: d }) : c("alia.open"), v = /* @__PURE__ */ e(Se.Close, { asChild: !0, children: /* @__PURE__ */ e(
920
+ w,
921
+ {
922
+ icon: /* @__PURE__ */ e(te, { "aria-hidden": "true" }),
923
+ intent: "ghost",
924
+ size: "sm",
925
+ "aria-label": c("alia.close"),
926
+ "data-testid": "alia-popout-close"
927
+ }
928
+ ) });
929
+ return /* @__PURE__ */ m(J.Root, { open: s, onOpenChange: i, children: [
930
+ /* @__PURE__ */ e(
931
+ "div",
932
+ {
933
+ ref: n,
934
+ className: [
935
+ "ds:fixed ds:z-[var(--z-fixed)]",
936
+ "ds:bottom-[calc(var(--spacing-lg)+env(safe-area-inset-bottom,0px))]",
937
+ t === "bottom-end" ? "ds:end-[var(--spacing-lg)]" : "ds:start-[var(--spacing-lg)]"
938
+ ].join(" "),
939
+ "data-testid": "alia-popout-fab-wrapper",
940
+ children: /* @__PURE__ */ m("div", { className: "ds:relative", children: [
941
+ /* @__PURE__ */ e(
942
+ Te,
943
+ {
944
+ icon: /* @__PURE__ */ e(Y, { "aria-hidden": "true" }),
945
+ "aria-label": g,
946
+ variant: "primary",
947
+ size: "md",
948
+ position: "static",
949
+ onClick: () => i(!0),
950
+ "data-testid": "alia-popout-fab"
951
+ }
952
+ ),
953
+ r ? /* @__PURE__ */ e(
954
+ "span",
955
+ {
956
+ "aria-hidden": "true",
957
+ "data-testid": "alia-popout-badge",
958
+ className: [
959
+ "ds:absolute ds:-top-[var(--spacing-xs)] ds:-end-[var(--spacing-xs)]",
960
+ "ds:inline-flex ds:items-center ds:justify-center",
961
+ "ds:min-w-[calc(var(--spacing-md)+var(--spacing-xs))]",
962
+ "ds:h-[calc(var(--spacing-md)+var(--spacing-xs))]",
963
+ "ds:ps-[calc(var(--spacing-xs)/1.5)] ds:pe-[calc(var(--spacing-xs)/1.5)]",
964
+ "ds:rounded-[var(--radius-full)]",
965
+ "ds:bg-[color:var(--destructive)] ds:text-[color:var(--destructive-foreground)]",
966
+ "ds:text-[length:var(--font-size-xs)] ds:font-semibold ds:leading-none",
967
+ "ds:pointer-events-none ds:select-none",
968
+ "ds:forced-colors:outline ds:forced-colors:outline-1 ds:forced-colors:outline-[CanvasText]"
969
+ ].join(" "),
970
+ children: ps(d)
971
+ }
972
+ ) : null
973
+ ] })
974
+ }
975
+ ),
976
+ /* @__PURE__ */ m(
977
+ J.Content,
978
+ {
979
+ side: "end",
980
+ size: "md",
981
+ "aria-label": c("alia.panelLabel"),
982
+ className: "ds:flex ds:min-h-0 ds:flex-col ds:p-0",
983
+ "data-testid": "alia-popout-panel",
984
+ children: [
985
+ /* @__PURE__ */ e(J.Title, { className: "ds:sr-only", children: o }),
986
+ /* @__PURE__ */ e(
987
+ O,
988
+ {
989
+ ...p,
990
+ assistantName: o,
991
+ assistantAvatar: l,
992
+ density: "compact",
993
+ headerEndSlot: v
994
+ }
995
+ )
996
+ ]
997
+ }
998
+ )
999
+ ] });
1000
+ }
1001
+ );
1002
+ us.displayName = "AliaPopout";
1003
+ function fs(s) {
1004
+ return s > 99 ? "99+" : String(s);
1005
+ }
1006
+ const hs = "ds:[inline-size:22rem]", gs = "ds:[inline-size:3rem]", vs = D(
1007
+ ({
1008
+ open: s,
1009
+ onOpenChange: i,
1010
+ side: t = "end",
1011
+ unseenCount: d,
1012
+ footerSlot: a,
1013
+ assistantName: l,
1014
+ assistantAvatar: p,
1015
+ ...n
1016
+ }, c) => {
1017
+ const { t: o } = x(), r = l || o("alia.name"), g = typeof d == "number" && d > 0, v = t === "end" ? "ds:shadow-[var(--shadow-chrome-start)]" : "ds:shadow-[var(--shadow-chrome-end)]", C = g ? o("alia.unseenCount", { count: d }) : o("alia.open");
1018
+ if (!s)
1019
+ return /* @__PURE__ */ e(
1020
+ "aside",
1021
+ {
1022
+ ref: c,
1023
+ "aria-label": o("alia.panelLabel"),
1024
+ className: [
1025
+ "ds:flex ds:shrink-0 ds:flex-col ds:items-center",
1026
+ "ds:bg-[var(--background)]",
1027
+ v,
1028
+ "ds:pt-[var(--spacing-md)] ds:pb-[var(--spacing-md)]",
1029
+ gs
1030
+ ].join(" "),
1031
+ "data-testid": "alia-sidebar-rail",
1032
+ "data-alia-sidebar-state": "collapsed",
1033
+ children: /* @__PURE__ */ m("div", { className: "ds:relative ds:[&_svg]:text-[color:var(--accent)]", children: [
1034
+ /* @__PURE__ */ e(
1035
+ w,
1036
+ {
1037
+ icon: /* @__PURE__ */ e(Y, { "aria-hidden": "true" }),
1038
+ "aria-label": C,
1039
+ "aria-expanded": "false",
1040
+ intent: "ghost",
1041
+ size: "sm",
1042
+ onClick: () => i(!0),
1043
+ "data-testid": "alia-sidebar-rail-trigger"
1044
+ }
1045
+ ),
1046
+ g ? /* @__PURE__ */ e(
1047
+ "span",
1048
+ {
1049
+ "aria-hidden": "true",
1050
+ "data-testid": "alia-sidebar-badge",
1051
+ className: [
1052
+ "ds:absolute ds:-top-[var(--spacing-xs)] ds:-end-[var(--spacing-xs)]",
1053
+ "ds:inline-flex ds:items-center ds:justify-center",
1054
+ "ds:min-w-[calc(var(--spacing-md)+var(--spacing-xs))]",
1055
+ "ds:h-[calc(var(--spacing-md)+var(--spacing-xs))]",
1056
+ "ds:ps-[calc(var(--spacing-xs)/1.5)] ds:pe-[calc(var(--spacing-xs)/1.5)]",
1057
+ "ds:rounded-[var(--radius-full)]",
1058
+ "ds:bg-[color:var(--destructive)] ds:text-[color:var(--destructive-foreground)]",
1059
+ "ds:text-[length:var(--font-size-xs)] ds:font-semibold ds:leading-none",
1060
+ "ds:pointer-events-none ds:select-none",
1061
+ "ds:forced-colors:outline ds:forced-colors:outline-1 ds:forced-colors:outline-[CanvasText]"
1062
+ ].join(" "),
1063
+ children: fs(d)
1064
+ }
1065
+ ) : null
1066
+ ] })
1067
+ }
1068
+ );
1069
+ const k = /* @__PURE__ */ e(
1070
+ w,
1071
+ {
1072
+ icon: t === "end" ? /* @__PURE__ */ e(Ze, {}) : /* @__PURE__ */ e(Je, {}),
1073
+ intent: "ghost",
1074
+ size: "sm",
1075
+ "aria-label": o("alia.close"),
1076
+ "aria-expanded": "true",
1077
+ onClick: () => i(!1),
1078
+ "data-testid": "alia-sidebar-collapse"
1079
+ }
1080
+ );
1081
+ return /* @__PURE__ */ m(
1082
+ "aside",
1083
+ {
1084
+ ref: c,
1085
+ "aria-label": o("alia.panelLabel"),
1086
+ className: [
1087
+ "ds:flex ds:shrink-0 ds:flex-col ds:min-h-0",
1088
+ "ds:bg-[var(--background)]",
1089
+ v,
1090
+ hs,
1091
+ "ds:h-full"
1092
+ ].join(" "),
1093
+ "data-testid": "alia-sidebar",
1094
+ "data-alia-sidebar-state": "expanded",
1095
+ children: [
1096
+ /* @__PURE__ */ e("div", { className: "ds:flex ds:min-h-0 ds:flex-1 ds:flex-col", children: /* @__PURE__ */ e(
1097
+ O,
1098
+ {
1099
+ ...n,
1100
+ assistantName: r,
1101
+ assistantAvatar: p,
1102
+ density: "compact",
1103
+ headerEndSlot: k
1104
+ }
1105
+ ) }),
1106
+ a ? /* @__PURE__ */ e(
1107
+ "div",
1108
+ {
1109
+ "data-testid": "alia-sidebar-footer-slot",
1110
+ className: "ds:shrink-0 ds:shadow-[var(--shadow-chrome-up)]",
1111
+ children: a
1112
+ }
1113
+ ) : null
1114
+ ]
1115
+ }
1116
+ );
1117
+ }
1118
+ );
1119
+ vs.displayName = "AliaSidebar";
1120
+ export {
1121
+ O as A,
1122
+ ms as a,
1123
+ us as b,
1124
+ vs as c
1125
+ };
1126
+ //# sourceMappingURL=alia-sidebar-DlvyXgVC.js.map