@alfadocs/ui-kit-debug 1.73.3 → 1.74.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 (288) hide show
  1. package/dist/_chunks/alia-sidebar-CsTRAxC8.js +1323 -0
  2. package/dist/_chunks/alia-sidebar-CsTRAxC8.js.map +1 -0
  3. package/dist/_chunks/{anamnesis-summary-rows-BedVmSAB.js → anamnesis-summary-rows-vNDyE5HW.js} +2 -2
  4. package/dist/_chunks/{anamnesis-summary-rows-BedVmSAB.js.map → anamnesis-summary-rows-vNDyE5HW.js.map} +1 -1
  5. package/dist/_chunks/{antenatal-schedule-timeline-DW_qkGo1.js → antenatal-schedule-timeline-BGewPfEX.js} +18 -18
  6. package/dist/_chunks/{antenatal-schedule-timeline-DW_qkGo1.js.map → antenatal-schedule-timeline-BGewPfEX.js.map} +1 -1
  7. package/dist/_chunks/{appointment-timeline-CKwMXUid.js → appointment-timeline-1-Za2miy.js} +2 -2
  8. package/dist/_chunks/{appointment-timeline-CKwMXUid.js.map → appointment-timeline-1-Za2miy.js.map} +1 -1
  9. package/dist/_chunks/{ar-pLopgMbL.js → ar-C4YQVTH6.js} +2 -2
  10. package/dist/_chunks/{ar-pLopgMbL.js.map → ar-C4YQVTH6.js.map} +1 -1
  11. package/dist/_chunks/{auth-form-parts-DHv6LVV2.js → auth-form-parts-B3GWChvG.js} +2 -2
  12. package/dist/_chunks/{auth-form-parts-DHv6LVV2.js.map → auth-form-parts-B3GWChvG.js.map} +1 -1
  13. package/dist/_chunks/{balance-badge-cell-DG5JWB2p.js → balance-badge-cell-B49xgL6H.js} +2 -2
  14. package/dist/_chunks/{balance-badge-cell-DG5JWB2p.js.map → balance-badge-cell-B49xgL6H.js.map} +1 -1
  15. package/dist/_chunks/{booking-4BCeh7OY.js → booking-sq9sa29d.js} +8 -8
  16. package/dist/_chunks/{booking-4BCeh7OY.js.map → booking-sq9sa29d.js.map} +1 -1
  17. package/dist/_chunks/brand-mark-DLk9kD8g.js +63 -0
  18. package/dist/_chunks/brand-mark-DLk9kD8g.js.map +1 -0
  19. package/dist/_chunks/{calendar-appointment-editor-dialog-Lji2y0qJ.js → calendar-appointment-editor-dialog-CctI6mpd.js} +8 -8
  20. package/dist/_chunks/{calendar-appointment-editor-dialog-Lji2y0qJ.js.map → calendar-appointment-editor-dialog-CctI6mpd.js.map} +1 -1
  21. package/dist/_chunks/{cycle-calculator-Ycp3li61.js → cycle-calculator-HO3s5InI.js} +5 -5
  22. package/dist/_chunks/{cycle-calculator-Ycp3li61.js.map → cycle-calculator-HO3s5InI.js.map} +1 -1
  23. package/dist/_chunks/{date-picker-KcoNNsM0.js → date-picker-CdhXlgVI.js} +4 -4
  24. package/dist/_chunks/{date-picker-KcoNNsM0.js.map → date-picker-CdhXlgVI.js.map} +1 -1
  25. package/dist/_chunks/{date-picker-variants-DN37Oj5-.js → date-picker-variants-Dt6UbonG.js} +25 -25
  26. package/dist/_chunks/{date-picker-variants-DN37Oj5-.js.map → date-picker-variants-Dt6UbonG.js.map} +1 -1
  27. package/dist/_chunks/{date-range-picker-CjcjUJLW.js → date-range-picker-B_j4VQlV.js} +5 -5
  28. package/dist/_chunks/{date-range-picker-CjcjUJLW.js.map → date-range-picker-B_j4VQlV.js.map} +1 -1
  29. package/dist/_chunks/{date-time-picker-BVQNZ4yC.js → date-time-picker-n-yrlMJq.js} +3 -3
  30. package/dist/_chunks/{date-time-picker-BVQNZ4yC.js.map → date-time-picker-n-yrlMJq.js.map} +1 -1
  31. package/dist/_chunks/{de-lVkJRPnh.js → de-B1B3PIgY.js} +2 -2
  32. package/dist/_chunks/{de-lVkJRPnh.js.map → de-B1B3PIgY.js.map} +1 -1
  33. package/dist/_chunks/{due-date-calculator-B0gyOijA.js → due-date-calculator-CDWTSblh.js} +6 -6
  34. package/dist/_chunks/{due-date-calculator-B0gyOijA.js.map → due-date-calculator-CDWTSblh.js.map} +1 -1
  35. package/dist/_chunks/{el-CHzxNWPj.js → el-iLqGpapg.js} +16 -16
  36. package/dist/_chunks/{el-CHzxNWPj.js.map → el-iLqGpapg.js.map} +1 -1
  37. package/dist/_chunks/{en-GB-CwxYmmhU.js → en-GB-CxPRQbD6.js} +6 -6
  38. package/dist/_chunks/{en-GB-CwxYmmhU.js.map → en-GB-CxPRQbD6.js.map} +1 -1
  39. package/dist/_chunks/{es-Ck-oxbHW.js → es-Bg1oqwDs.js} +2 -2
  40. package/dist/_chunks/{es-Ck-oxbHW.js.map → es-Bg1oqwDs.js.map} +1 -1
  41. package/dist/_chunks/{forgot-password-form-D6kB72OD.js → forgot-password-form-BSOZVrZG.js} +3 -3
  42. package/dist/_chunks/{forgot-password-form-D6kB72OD.js.map → forgot-password-form-BSOZVrZG.js.map} +1 -1
  43. package/dist/_chunks/{format-D-1gTdHF.js → format--x5jypvH.js} +13 -13
  44. package/dist/_chunks/{format-D-1gTdHF.js.map → format--x5jypvH.js.map} +1 -1
  45. package/dist/_chunks/{fr-fWRnDcSD.js → fr-DpGxyOGI.js} +2 -2
  46. package/dist/_chunks/{fr-fWRnDcSD.js.map → fr-DpGxyOGI.js.map} +1 -1
  47. package/dist/_chunks/{gestational-age-calculator-Bu_a-K9z.js → gestational-age-calculator-CTHeJJdb.js} +7 -7
  48. package/dist/_chunks/{gestational-age-calculator-Bu_a-K9z.js.map → gestational-age-calculator-CTHeJJdb.js.map} +1 -1
  49. package/dist/_chunks/{hcg-doubling-BnopYgd-.js → hcg-doubling-BBk-a33g.js} +11 -11
  50. package/dist/_chunks/{hcg-doubling-BnopYgd-.js.map → hcg-doubling-BBk-a33g.js.map} +1 -1
  51. package/dist/_chunks/{hi-B5uX0h3V.js → hi-3Dtsksrw.js} +2 -2
  52. package/dist/_chunks/{hi-B5uX0h3V.js.map → hi-3Dtsksrw.js.map} +1 -1
  53. package/dist/_chunks/{isSameWeek-u81Z-J7h.js → isSameWeek-DyVftHWi.js} +2 -2
  54. package/dist/_chunks/{isSameWeek-u81Z-J7h.js.map → isSameWeek-DyVftHWi.js.map} +1 -1
  55. package/dist/_chunks/{it-DBoNIelY.js → it-Cp0CA13d.js} +3 -3
  56. package/dist/_chunks/{it-DBoNIelY.js.map → it-Cp0CA13d.js.map} +1 -1
  57. package/dist/_chunks/{ja-Du8gfg8p.js → ja-9FOyR1lb.js} +22 -22
  58. package/dist/_chunks/{ja-Du8gfg8p.js.map → ja-9FOyR1lb.js.map} +1 -1
  59. package/dist/_chunks/{kit-extensions-DgBi3tsK.js → kit-extensions-sNTZWkoo.js} +4 -4
  60. package/dist/_chunks/{kit-extensions-DgBi3tsK.js.map → kit-extensions-sNTZWkoo.js.map} +1 -1
  61. package/dist/_chunks/{link-cell-renderer-BDxxpfJM.js → link-cell-renderer-B0riA_h_.js} +2 -2
  62. package/dist/_chunks/{link-cell-renderer-BDxxpfJM.js.map → link-cell-renderer-B0riA_h_.js.map} +1 -1
  63. package/dist/_chunks/{login-dev-card-pnJbVaoQ.js → login-dev-card-DRxTPkE9.js} +3 -3
  64. package/dist/_chunks/{login-dev-card-pnJbVaoQ.js.map → login-dev-card-DRxTPkE9.js.map} +1 -1
  65. package/dist/_chunks/{nl-BCBwxYi8.js → nl-sfx-zJgR.js} +2 -2
  66. package/dist/_chunks/{nl-BCBwxYi8.js.map → nl-sfx-zJgR.js.map} +1 -1
  67. package/dist/_chunks/{notes-panel-C_QshXyI.js → notes-panel-CxjMovCh.js} +2 -2
  68. package/dist/_chunks/{notes-panel-C_QshXyI.js.map → notes-panel-CxjMovCh.js.map} +1 -1
  69. package/dist/_chunks/{parse-UB4FJGNA.js → parse-B0s7bY4d.js} +3 -3
  70. package/dist/_chunks/{parse-UB4FJGNA.js.map → parse-B0s7bY4d.js.map} +1 -1
  71. package/dist/_chunks/{parseISO-y3LncvfO.js → parseISO-DZZ5a-zK.js} +2 -2
  72. package/dist/_chunks/{parseISO-y3LncvfO.js.map → parseISO-DZZ5a-zK.js.map} +1 -1
  73. package/dist/_chunks/{patient-details-Cd_dCqkg.js → patient-details-Dgd_tocD.js} +2 -2
  74. package/dist/_chunks/{patient-details-Cd_dCqkg.js.map → patient-details-Dgd_tocD.js.map} +1 -1
  75. package/dist/_chunks/{patient-field-row-D6Ftm46u.js → patient-field-row-BFVlJnS9.js} +3 -3
  76. package/dist/_chunks/{patient-field-row-D6Ftm46u.js.map → patient-field-row-BFVlJnS9.js.map} +1 -1
  77. package/dist/_chunks/{patient-summary-card-BSOHR4Ol.js → patient-summary-card-BTKvFUmh.js} +2 -2
  78. package/dist/_chunks/{patient-summary-card-BSOHR4Ol.js.map → patient-summary-card-BTKvFUmh.js.map} +1 -1
  79. package/dist/_chunks/{phone-input-O9camxkq.js → phone-input-EwVuqFik.js} +74 -74
  80. package/dist/_chunks/phone-input-EwVuqFik.js.map +1 -0
  81. package/dist/_chunks/{pl-HwLM6gPs.js → pl-BLh7KO-s.js} +3 -3
  82. package/dist/_chunks/{pl-HwLM6gPs.js.map → pl-BLh7KO-s.js.map} +1 -1
  83. package/dist/_chunks/{pregnancy-dating-CvNFirHt.js → pregnancy-dating-JBAUbM40.js} +7 -7
  84. package/dist/_chunks/{pregnancy-dating-CvNFirHt.js.map → pregnancy-dating-JBAUbM40.js.map} +1 -1
  85. package/dist/_chunks/{pt-BxhT5ZQH.js → pt-CPKOrOLj.js} +2 -2
  86. package/dist/_chunks/{pt-BxhT5ZQH.js.map → pt-CPKOrOLj.js.map} +1 -1
  87. package/dist/_chunks/{radiograph-panel.agent-ESnkuDfH.js → radiograph-panel.agent-DQh2SX8G.js} +3 -3
  88. package/dist/_chunks/{radiograph-panel.agent-ESnkuDfH.js.map → radiograph-panel.agent-DQh2SX8G.js.map} +1 -1
  89. package/dist/_chunks/registration-form-B6qqeXP1.js +1310 -0
  90. package/dist/_chunks/registration-form-B6qqeXP1.js.map +1 -0
  91. package/dist/_chunks/{rich-text-editor-BXFgcvBW.js → rich-text-editor-BZTyxQBd.js} +1683 -1673
  92. package/dist/_chunks/rich-text-editor-BZTyxQBd.js.map +1 -0
  93. package/dist/_chunks/{ro-Do9W55ae.js → ro-Dc-oNqbF.js} +2 -2
  94. package/dist/_chunks/{ro-Do9W55ae.js.map → ro-Dc-oNqbF.js.map} +1 -1
  95. package/dist/_chunks/{ru-PDBX5gdf.js → ru-BtNpDZRR.js} +3 -3
  96. package/dist/_chunks/{ru-PDBX5gdf.js.map → ru-BtNpDZRR.js.map} +1 -1
  97. package/dist/_chunks/send-registration-link-form-pO2bGjGa.js +409 -0
  98. package/dist/_chunks/send-registration-link-form-pO2bGjGa.js.map +1 -0
  99. package/dist/_chunks/{slot-grid-uA9j7Nik.js → slot-grid-Bb13H9Rl.js} +3 -3
  100. package/dist/_chunks/{slot-grid-uA9j7Nik.js.map → slot-grid-Bb13H9Rl.js.map} +1 -1
  101. package/dist/_chunks/{sq-DnvsgyIh.js → sq-D4c7olaV.js} +2 -2
  102. package/dist/_chunks/{sq-DnvsgyIh.js.map → sq-D4c7olaV.js.map} +1 -1
  103. package/dist/_chunks/subDays-DKISP2nE.js +8 -0
  104. package/dist/_chunks/{subDays-xH7cpN6B.js.map → subDays-DKISP2nE.js.map} +1 -1
  105. package/dist/_chunks/{sv-CpFSK8xS.js → sv-Bf_dHPvh.js} +2 -2
  106. package/dist/_chunks/{sv-CpFSK8xS.js.map → sv-Bf_dHPvh.js.map} +1 -1
  107. package/dist/_chunks/{task-editor-BTeUFGUX.js → task-editor-CRhfwP9T.js} +2 -2
  108. package/dist/_chunks/{task-editor-BTeUFGUX.js.map → task-editor-CRhfwP9T.js.map} +1 -1
  109. package/dist/_chunks/{tr-DW4oQYHT.js → tr-xqQ6cbGY.js} +2 -2
  110. package/dist/_chunks/{tr-DW4oQYHT.js.map → tr-xqQ6cbGY.js.map} +1 -1
  111. package/dist/_chunks/{use-appointment-details-read-BWbOiLVw.js → use-appointment-details-read-BFslxbRr.js} +2 -2
  112. package/dist/_chunks/{use-appointment-details-read-BWbOiLVw.js.map → use-appointment-details-read-BFslxbRr.js.map} +1 -1
  113. package/dist/_chunks/use-field-match-C8ug3sdQ.js +30 -0
  114. package/dist/_chunks/use-field-match-C8ug3sdQ.js.map +1 -0
  115. package/dist/_chunks/use-registration-submit-CLGHxwoT.js +112 -0
  116. package/dist/_chunks/use-registration-submit-CLGHxwoT.js.map +1 -0
  117. package/dist/_chunks/{zh-CN-QGEs29fQ.js → zh-CN-C657DBCO.js} +3 -3
  118. package/dist/_chunks/{zh-CN-QGEs29fQ.js.map → zh-CN-C657DBCO.js.map} +1 -1
  119. package/dist/agent-catalog.json +87 -3
  120. package/dist/agent-i18n/en.json +9 -2
  121. package/dist/alia-asteroid-icon/index.js +52 -0
  122. package/dist/alia-asteroid-icon/index.js.map +1 -0
  123. package/dist/aws-transcribe/index.js +320 -0
  124. package/dist/aws-transcribe/index.js.map +1 -0
  125. package/dist/components/appointment-details-panel/index.js +1 -1
  126. package/dist/components/appointment-timeline/index.js +1 -1
  127. package/dist/components/booking/index.js +1 -1
  128. package/dist/components/cycle-calculator/index.js +1 -1
  129. package/dist/components/data-table/index.js +1 -1
  130. package/dist/components/date-picker/index.js +1 -1
  131. package/dist/components/date-range-picker/index.js +1 -1
  132. package/dist/components/date-time-picker/index.js +1 -1
  133. package/dist/components/due-date-calculator/index.js +2 -2
  134. package/dist/components/gestational-age-calculator/index.js +1 -1
  135. package/dist/components/hcg-doubling/index.js +1 -1
  136. package/dist/components/index.d.ts +1 -0
  137. package/dist/components/index.d.ts.map +1 -1
  138. package/dist/components/notes-panel/index.js +1 -1
  139. package/dist/components/patient-details/index.js +1 -1
  140. package/dist/components/patient-summary-card/index.js +1 -1
  141. package/dist/components/patient-table/index.js +1 -1
  142. package/dist/components/phone-input/index.js +1 -1
  143. package/dist/components/phone-input/phone-input.d.ts.map +1 -1
  144. package/dist/components/pregnancy-dating/index.js +1 -1
  145. package/dist/components/radiograph-panel/index.js +1 -1
  146. package/dist/components/rich-text-editor/help-me-write-overlay.d.ts.map +1 -1
  147. package/dist/components/rich-text-editor/index.js +2 -2
  148. package/dist/components/rich-text-editor/rich-text-editor.d.ts.map +1 -1
  149. package/dist/components/slot-grid/index.js +1 -1
  150. package/dist/components/task-editor/index.js +1 -1
  151. package/dist/hooks/index.js +1 -1
  152. package/dist/hooks/use-field-match.d.ts +2 -2
  153. package/dist/hooks/use-field-match.d.ts.map +1 -1
  154. package/dist/i18n/locales/ar.d.ts +36 -0
  155. package/dist/i18n/locales/ar.d.ts.map +1 -1
  156. package/dist/i18n/locales/ar.js +38 -2
  157. package/dist/i18n/locales/ar.js.map +1 -1
  158. package/dist/i18n/locales/de.d.ts +36 -0
  159. package/dist/i18n/locales/de.d.ts.map +1 -1
  160. package/dist/i18n/locales/de.js +38 -2
  161. package/dist/i18n/locales/de.js.map +1 -1
  162. package/dist/i18n/locales/el.d.ts +36 -0
  163. package/dist/i18n/locales/el.d.ts.map +1 -1
  164. package/dist/i18n/locales/el.js +38 -2
  165. package/dist/i18n/locales/el.js.map +1 -1
  166. package/dist/i18n/locales/en.d.ts +36 -0
  167. package/dist/i18n/locales/en.d.ts.map +1 -1
  168. package/dist/i18n/locales/en.js +38 -2
  169. package/dist/i18n/locales/en.js.map +1 -1
  170. package/dist/i18n/locales/es.d.ts +36 -0
  171. package/dist/i18n/locales/es.d.ts.map +1 -1
  172. package/dist/i18n/locales/es.js +38 -2
  173. package/dist/i18n/locales/es.js.map +1 -1
  174. package/dist/i18n/locales/fr.d.ts +36 -0
  175. package/dist/i18n/locales/fr.d.ts.map +1 -1
  176. package/dist/i18n/locales/fr.js +38 -2
  177. package/dist/i18n/locales/fr.js.map +1 -1
  178. package/dist/i18n/locales/hi.d.ts +36 -0
  179. package/dist/i18n/locales/hi.d.ts.map +1 -1
  180. package/dist/i18n/locales/hi.js +38 -2
  181. package/dist/i18n/locales/hi.js.map +1 -1
  182. package/dist/i18n/locales/it.d.ts +36 -0
  183. package/dist/i18n/locales/it.d.ts.map +1 -1
  184. package/dist/i18n/locales/it.js +38 -2
  185. package/dist/i18n/locales/it.js.map +1 -1
  186. package/dist/i18n/locales/ja.d.ts +36 -0
  187. package/dist/i18n/locales/ja.d.ts.map +1 -1
  188. package/dist/i18n/locales/ja.js +38 -2
  189. package/dist/i18n/locales/ja.js.map +1 -1
  190. package/dist/i18n/locales/nl.d.ts +36 -0
  191. package/dist/i18n/locales/nl.d.ts.map +1 -1
  192. package/dist/i18n/locales/nl.js +38 -2
  193. package/dist/i18n/locales/nl.js.map +1 -1
  194. package/dist/i18n/locales/pl.d.ts +36 -0
  195. package/dist/i18n/locales/pl.d.ts.map +1 -1
  196. package/dist/i18n/locales/pl.js +38 -2
  197. package/dist/i18n/locales/pl.js.map +1 -1
  198. package/dist/i18n/locales/pt.d.ts +36 -0
  199. package/dist/i18n/locales/pt.d.ts.map +1 -1
  200. package/dist/i18n/locales/pt.js +38 -2
  201. package/dist/i18n/locales/pt.js.map +1 -1
  202. package/dist/i18n/locales/ro.d.ts +36 -0
  203. package/dist/i18n/locales/ro.d.ts.map +1 -1
  204. package/dist/i18n/locales/ro.js +38 -2
  205. package/dist/i18n/locales/ro.js.map +1 -1
  206. package/dist/i18n/locales/ru.d.ts +36 -0
  207. package/dist/i18n/locales/ru.d.ts.map +1 -1
  208. package/dist/i18n/locales/ru.js +38 -2
  209. package/dist/i18n/locales/ru.js.map +1 -1
  210. package/dist/i18n/locales/sq.d.ts +36 -0
  211. package/dist/i18n/locales/sq.d.ts.map +1 -1
  212. package/dist/i18n/locales/sq.js +38 -2
  213. package/dist/i18n/locales/sq.js.map +1 -1
  214. package/dist/i18n/locales/sv.d.ts +36 -0
  215. package/dist/i18n/locales/sv.d.ts.map +1 -1
  216. package/dist/i18n/locales/sv.js +38 -2
  217. package/dist/i18n/locales/sv.js.map +1 -1
  218. package/dist/i18n/locales/tr.d.ts +36 -0
  219. package/dist/i18n/locales/tr.d.ts.map +1 -1
  220. package/dist/i18n/locales/tr.js +38 -2
  221. package/dist/i18n/locales/tr.js.map +1 -1
  222. package/dist/i18n/locales/zh.d.ts +36 -0
  223. package/dist/i18n/locales/zh.d.ts.map +1 -1
  224. package/dist/i18n/locales/zh.js +38 -2
  225. package/dist/i18n/locales/zh.js.map +1 -1
  226. package/dist/index.js +296 -292
  227. package/dist/index.js.map +1 -1
  228. package/dist/locales/ar.json +38 -2
  229. package/dist/locales/de.json +38 -2
  230. package/dist/locales/el.json +38 -2
  231. package/dist/locales/en.json +38 -2
  232. package/dist/locales/es.json +38 -2
  233. package/dist/locales/fr.json +38 -2
  234. package/dist/locales/hi.json +38 -2
  235. package/dist/locales/it.json +38 -2
  236. package/dist/locales/ja.json +38 -2
  237. package/dist/locales/nl.json +38 -2
  238. package/dist/locales/pl.json +38 -2
  239. package/dist/locales/pt.json +38 -2
  240. package/dist/locales/ro.json +38 -2
  241. package/dist/locales/ru.json +38 -2
  242. package/dist/locales/sq.json +38 -2
  243. package/dist/locales/sv.json +38 -2
  244. package/dist/locales/tr.json +38 -2
  245. package/dist/locales/zh.json +38 -2
  246. package/dist/patterns/alia-assistant/alia-chat-surface.d.ts.map +1 -1
  247. package/dist/patterns/alia-assistant/alia-types.d.ts +22 -0
  248. package/dist/patterns/alia-assistant/alia-types.d.ts.map +1 -1
  249. package/dist/patterns/alia-assistant/index.js +7 -6
  250. package/dist/patterns/alia-assistant/index.js.map +1 -1
  251. package/dist/patterns/anamnesis/index.js +1 -1
  252. package/dist/patterns/calendar/index.js +1 -1
  253. package/dist/patterns/forgot-password-form/index.js +1 -1
  254. package/dist/patterns/login-form/index.js +1 -1
  255. package/dist/patterns/registration-form/index.d.ts +1 -0
  256. package/dist/patterns/registration-form/index.d.ts.map +1 -1
  257. package/dist/patterns/registration-form/index.js +1 -1
  258. package/dist/patterns/registration-form/registration-form.d.ts +43 -0
  259. package/dist/patterns/registration-form/registration-form.d.ts.map +1 -1
  260. package/dist/patterns/registration-form/registration-verification.d.ts +38 -0
  261. package/dist/patterns/registration-form/registration-verification.d.ts.map +1 -0
  262. package/dist/patterns/registration-form/use-contact-verification.d.ts +107 -0
  263. package/dist/patterns/registration-form/use-contact-verification.d.ts.map +1 -0
  264. package/dist/patterns/registration-form/verification-requests.d.ts +9 -0
  265. package/dist/patterns/registration-form/verification-requests.d.ts.map +1 -0
  266. package/dist/patterns/send-registration-link-form/index.d.ts +3 -0
  267. package/dist/patterns/send-registration-link-form/index.d.ts.map +1 -0
  268. package/dist/patterns/send-registration-link-form/index.js +6 -0
  269. package/dist/patterns/send-registration-link-form/index.js.map +1 -0
  270. package/dist/patterns/send-registration-link-form/send-registration-link-form.d.ts +80 -0
  271. package/dist/patterns/send-registration-link-form/send-registration-link-form.d.ts.map +1 -0
  272. package/dist/speech/aws-transcribe.d.ts +65 -0
  273. package/dist/speech/aws-transcribe.d.ts.map +1 -0
  274. package/dist/speech/event-stream.d.ts +13 -0
  275. package/dist/speech/event-stream.d.ts.map +1 -0
  276. package/dist/tokens.css +1 -1
  277. package/package.json +13 -1
  278. package/dist/_chunks/alia-sidebar-DZoyUFW8.js +0 -1290
  279. package/dist/_chunks/alia-sidebar-DZoyUFW8.js.map +0 -1
  280. package/dist/_chunks/phone-input-O9camxkq.js.map +0 -1
  281. package/dist/_chunks/registration-form-BGSVMAga.js +0 -819
  282. package/dist/_chunks/registration-form-BGSVMAga.js.map +0 -1
  283. package/dist/_chunks/rich-text-editor-BXFgcvBW.js.map +0 -1
  284. package/dist/_chunks/subDays-xH7cpN6B.js +0 -8
  285. package/dist/_chunks/use-field-match-pdbEnKvO.js +0 -28
  286. package/dist/_chunks/use-field-match-pdbEnKvO.js.map +0 -1
  287. package/dist/_chunks/use-registration-submit-eWAECgUC.js +0 -171
  288. package/dist/_chunks/use-registration-submit-eWAECgUC.js.map +0 -1
@@ -0,0 +1,1323 @@
1
+ import { jsx as e, jsxs as f, Fragment as Te } from "react/jsx-runtime";
2
+ import { forwardRef as se, useState as k, useRef as I, useCallback as N, useEffect as B, useMemo as ge } from "react";
3
+ import * as is from "@radix-ui/react-dialog";
4
+ import { useTranslation as w } from "react-i18next";
5
+ import { F as ds } from "./floating-action-button-BesoUmO_.js";
6
+ import { I as z } from "./icon-button-S8_weU3g.js";
7
+ import { S as ee } from "./sheet-uZZXaO_S.js";
8
+ import { X as Ie } from "./x-B5YnXwCz.js";
9
+ import { A as ls } from "./astroid-BN4f5VXU.js";
10
+ import { AliaAsteroidIcon as he } from "../alia-asteroid-icon/index.js";
11
+ import { A as te } from "./avatar-BPiPL7ND.js";
12
+ import { B as H } from "./button-DohK_Ak_.js";
13
+ import { C as os } from "./chat-container-baxzy8k8.js";
14
+ import { C as cs } from "./chat-message-CmFJdEre.js";
15
+ import { C as Se, P as ms } from "./chat-input-DwQ4_WXK.js";
16
+ import { S as us } from "./streaming-text-Nb3Q7L94.js";
17
+ import { a as Re, S as _e } from "./suggestion-chip-BNRWZL51.js";
18
+ import { T as Ue } from "./typing-indicator-B1RkE8jD.js";
19
+ import { P as ps } from "./progress-D_g_Sl2g.js";
20
+ import { u as Ee } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
21
+ import { P as fs } from "./pencil-B1sKKyuT.js";
22
+ import { S as gs } from "./square-DASBRZ0U.js";
23
+ import { C as hs } from "./check-DrFSN__t.js";
24
+ import { C as vs } from "./copy-vRpqqHtY.js";
25
+ import { D as bs } from "./download-CfYKJO_j.js";
26
+ import { R as xs } from "./refresh-cw-DnI0cLFC.js";
27
+ import { c as Ns } from "./createLucideIcon-DhHxpK9K.js";
28
+ import { M as ws } from "./mic-CUklMZGF.js";
29
+ import { P as ys } from "./plus-DzMQ_c6b.js";
30
+ import { U as Cs } from "./user-B12p7bVF.js";
31
+ import { a as ks, C as zs } from "./chevrons-right-DIHg7Xqi.js";
32
+ /**
33
+ * @license lucide-react v1.22.0 - ISC
34
+ *
35
+ * This source code is licensed under the ISC license.
36
+ * See the LICENSE file in the root directory of this source tree.
37
+ */
38
+ const Ls = [
39
+ [
40
+ "path",
41
+ {
42
+ 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",
43
+ key: "oel41y"
44
+ }
45
+ ],
46
+ ["path", { d: "m14.5 9.5-5 5", key: "17q4r4" }],
47
+ ["path", { d: "m9.5 9.5 5 5", key: "18nt4w" }]
48
+ ], Es = Ns("shield-x", Ls), Pe = {
49
+ sm: {
50
+ box: "ds:size-[calc(var(--spacing-md)*2)]",
51
+ icon: "ds:size-4"
52
+ },
53
+ md: {
54
+ box: "ds:size-[calc(var(--spacing-md)*2.5)]",
55
+ icon: "ds:size-[1.125rem]"
56
+ },
57
+ xl: {
58
+ box: "ds:size-[calc(var(--spacing-md)*4)]",
59
+ icon: "ds:size-8"
60
+ }
61
+ };
62
+ function X({
63
+ size: s,
64
+ label: a,
65
+ appearance: n = "sparkle",
66
+ loading: d = !1
67
+ }) {
68
+ const r = Pe[s];
69
+ return n === "spinner" ? /* @__PURE__ */ e(
70
+ "span",
71
+ {
72
+ role: "img",
73
+ "aria-label": a,
74
+ className: [
75
+ "ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center",
76
+ "ds:rounded-[var(--radius-full)]",
77
+ "ds:bg-gradient-to-r ds:from-[var(--accent)] ds:to-[var(--primary)]",
78
+ // --primary-foreground: white on light (dark disc), navy in dark
79
+ // (bright disc) — correct WCAG contrast in both themes automatically.
80
+ "ds:text-[color:var(--primary-foreground)]",
81
+ "ds:forced-colors:bg-transparent ds:forced-colors:border ds:forced-colors:border-[CanvasText]",
82
+ r.box
83
+ ].join(" "),
84
+ children: /* @__PURE__ */ e(
85
+ he,
86
+ {
87
+ variant: "mono",
88
+ className: [
89
+ r.icon,
90
+ d ? "ds:animate-spin ds:motion-reduce:animate-none" : ""
91
+ ].filter(Boolean).join(" ")
92
+ }
93
+ )
94
+ }
95
+ ) : /* @__PURE__ */ e(
96
+ "span",
97
+ {
98
+ role: "img",
99
+ "aria-label": a,
100
+ className: [
101
+ "ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center",
102
+ "ds:rounded-[var(--radius-full)]",
103
+ // Subtle accent-tinted disc so the sparkle reads against both
104
+ // light and dark surfaces without a hard-coded literal colour.
105
+ "ds:bg-[color-mix(in_srgb,var(--accent)_14%,transparent)]",
106
+ "ds:text-[color:var(--accent)]",
107
+ // forced-colors: UA strips color-mix backgrounds; fall back to
108
+ // a bordered disc so the identity still reads in HCM.
109
+ "ds:forced-colors:bg-transparent ds:forced-colors:border ds:forced-colors:border-[CanvasText]",
110
+ r.box
111
+ ].join(" "),
112
+ children: /* @__PURE__ */ e(he, { className: r.icon })
113
+ }
114
+ );
115
+ }
116
+ function js({
117
+ size: s,
118
+ label: a
119
+ }) {
120
+ const n = Pe[s];
121
+ return /* @__PURE__ */ e(
122
+ "span",
123
+ {
124
+ role: "img",
125
+ "aria-label": a,
126
+ className: [
127
+ "ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center",
128
+ "ds:rounded-[var(--radius-full)]",
129
+ "ds:bg-[color-mix(in_srgb,var(--muted-foreground)_14%,transparent)]",
130
+ "ds:text-[color:var(--muted-foreground)]",
131
+ "ds:forced-colors:bg-transparent ds:forced-colors:border ds:forced-colors:border-[CanvasText]",
132
+ n.box
133
+ ].join(" "),
134
+ children: /* @__PURE__ */ e(Cs, { "aria-hidden": "true", className: n.icon })
135
+ }
136
+ );
137
+ }
138
+ const Be = [
139
+ "ds:rounded-[var(--radius-sm)]",
140
+ "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
141
+ "ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
142
+ "ds:forced-colors:focus-visible:outline-[CanvasText]"
143
+ ].join(" ");
144
+ function Ts({
145
+ note: s,
146
+ focusRef: a
147
+ }) {
148
+ return /* @__PURE__ */ f(
149
+ "div",
150
+ {
151
+ ref: a,
152
+ role: "status",
153
+ tabIndex: -1,
154
+ className: [
155
+ "ds:flex ds:w-full ds:flex-col ds:items-center ds:text-center",
156
+ "ds:gap-[var(--spacing-xs)]",
157
+ Be
158
+ ].join(" "),
159
+ "data-testid": "alia-ended-divider",
160
+ children: [
161
+ /* @__PURE__ */ e(
162
+ Es,
163
+ {
164
+ "aria-hidden": "true",
165
+ className: "ds:size-5 ds:text-[color:var(--destructive)]"
166
+ }
167
+ ),
168
+ /* @__PURE__ */ e("span", { className: "type-body-sm ds:text-[color:var(--muted-foreground)]", children: s })
169
+ ]
170
+ }
171
+ );
172
+ }
173
+ function Is(s, a) {
174
+ return s ? s.slot ? { slot: s.slot } : { name: s.name, src: s.src } : { slot: /* @__PURE__ */ e(js, { size: "sm", label: a }) };
175
+ }
176
+ function fe(s, a) {
177
+ const n = s.activeElement;
178
+ return !n || n === s.body || n === s.documentElement ? !0 : a != null && n !== a && n.contains(a);
179
+ }
180
+ function Ss({
181
+ assistantName: s,
182
+ avatarSrc: a,
183
+ greeting: n,
184
+ subtitle: d,
185
+ suggestions: r,
186
+ onSuggestion: m,
187
+ onChipClick: g
188
+ }) {
189
+ const { t: u } = w("ui"), p = "alia-empty-state-heading";
190
+ return /* @__PURE__ */ f(
191
+ "section",
192
+ {
193
+ "aria-labelledby": p,
194
+ className: [
195
+ "ds:flex ds:flex-1 ds:min-h-0 ds:flex-col ds:items-center ds:justify-center",
196
+ "ds:text-center",
197
+ "ds:ps-[var(--spacing-lg)] ds:pe-[var(--spacing-lg)]",
198
+ "ds:pt-[var(--spacing-xl)] ds:pb-[var(--spacing-xl)]",
199
+ "ds:gap-[var(--spacing-md)]"
200
+ ].join(" "),
201
+ "data-testid": "alia-empty-state",
202
+ children: [
203
+ a ? /* @__PURE__ */ e(te, { name: s, src: a, size: "xl" }) : /* @__PURE__ */ e(
204
+ X,
205
+ {
206
+ size: "xl",
207
+ label: s,
208
+ appearance: "spinner"
209
+ }
210
+ ),
211
+ /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-xs)] ds:max-w-[32rem]", children: [
212
+ /* @__PURE__ */ e(
213
+ "h2",
214
+ {
215
+ id: p,
216
+ className: "type-title-section ds:m-0 ds:text-[color:var(--foreground)]",
217
+ children: n
218
+ }
219
+ ),
220
+ /* @__PURE__ */ e("p", { className: "type-body-sm ds:m-0 ds:text-[color:var(--muted-foreground)]", children: d })
221
+ ] }),
222
+ r && r.length > 0 ? /* @__PURE__ */ e("div", { className: "ds:w-full ds:max-w-[40rem]", children: /* @__PURE__ */ e(
223
+ Re,
224
+ {
225
+ label: u("alia.exampleQuestions"),
226
+ className: "ds:justify-center",
227
+ children: r.map((l) => /* @__PURE__ */ e(
228
+ _e,
229
+ {
230
+ intent: "suggestion",
231
+ startIcon: l.icon,
232
+ keepOnSelect: !0,
233
+ onClick: g,
234
+ onSelect: () => m == null ? void 0 : m(l),
235
+ children: l.label
236
+ },
237
+ l.id
238
+ ))
239
+ }
240
+ ) }) : null
241
+ ]
242
+ }
243
+ );
244
+ }
245
+ function Rs({
246
+ message: s,
247
+ assistantName: a,
248
+ avatarSrc: n,
249
+ renderMarkdown: d,
250
+ density: r
251
+ }) {
252
+ const { t: m, i18n: g } = w("ui"), u = m("chat.message.role.assistant"), p = ge(() => {
253
+ if (!s.timestamp) return null;
254
+ const c = s.timestamp instanceof Date ? s.timestamp : new Date(s.timestamp);
255
+ return Number.isNaN(c.getTime()) ? null : new Intl.DateTimeFormat(g.language, {
256
+ hour: "2-digit",
257
+ minute: "2-digit"
258
+ }).format(c);
259
+ }, [s.timestamp, g.language]), l = p ? m("chat.message.label", { role: u, time: p }) : m("chat.message.labelNoTime", { role: u });
260
+ return /* @__PURE__ */ f(
261
+ "article",
262
+ {
263
+ "aria-label": l,
264
+ className: "ds:flex ds:w-full ds:items-start ds:flex-row ds:gap-[var(--spacing-sm)]",
265
+ children: [
266
+ n ? /* @__PURE__ */ e(te, { name: a, src: n, size: "sm" }) : /* @__PURE__ */ e(
267
+ X,
268
+ {
269
+ size: "sm",
270
+ label: a,
271
+ appearance: "spinner",
272
+ loading: !0
273
+ }
274
+ ),
275
+ /* @__PURE__ */ e("div", { className: "ds:flex ds:flex-col ds:items-start", children: /* @__PURE__ */ e(
276
+ "div",
277
+ {
278
+ dir: "auto",
279
+ className: [
280
+ "ds:relative ds:max-w-[min(42rem,90%)]",
281
+ "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
282
+ "ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]",
283
+ "type-body",
284
+ "ds:break-words",
285
+ "ds:bg-muted/40 ds:text-foreground",
286
+ "ds:rounded-[var(--radius-md)] ds:rounded-es-[var(--radius-sm)]"
287
+ ].join(" "),
288
+ children: s.content ? /* @__PURE__ */ e(
289
+ us,
290
+ {
291
+ content: s.content,
292
+ isStreaming: !0,
293
+ renderMarkdown: d
294
+ }
295
+ ) : (
296
+ // Before the first words arrive, the dots, not an empty bubble.
297
+ /* @__PURE__ */ e(Ue, { label: m("chat.typing"), density: r })
298
+ )
299
+ }
300
+ ) })
301
+ ]
302
+ }
303
+ );
304
+ }
305
+ function _s({
306
+ assistantName: s,
307
+ avatarSrc: a,
308
+ onNewConversation: n,
309
+ headerEndSlot: d,
310
+ density: r
311
+ }) {
312
+ const { t: m } = w("ui");
313
+ return /* @__PURE__ */ f(
314
+ "header",
315
+ {
316
+ "aria-label": m("alia.headerLabel"),
317
+ className: [
318
+ "ds:flex ds:shrink-0 ds:items-center ds:gap-[var(--spacing-sm)]",
319
+ // Soft drop-shadow on the block-end edge in place of a `border-b`
320
+ // against `--border` — same rationale as the Alia sidebar's inline
321
+ // edge (see alia-sidebar.tsx).
322
+ "ds:shadow-[var(--shadow-chrome-down)]",
323
+ "ds:bg-[var(--background)]",
324
+ "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
325
+ r === "compact" ? "ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]" : "ds:pt-[var(--spacing-md)] ds:pb-[var(--spacing-md)]"
326
+ ].join(" "),
327
+ "data-testid": "alia-header",
328
+ children: [
329
+ a ? /* @__PURE__ */ e(
330
+ te,
331
+ {
332
+ name: s,
333
+ src: a,
334
+ size: r === "compact" ? "sm" : "md"
335
+ }
336
+ ) : /* @__PURE__ */ e(
337
+ X,
338
+ {
339
+ size: r === "compact" ? "sm" : "md",
340
+ label: s,
341
+ appearance: "spinner"
342
+ }
343
+ ),
344
+ /* @__PURE__ */ e("span", { className: "type-title-item ds:text-[color:var(--foreground)]", children: s }),
345
+ /* @__PURE__ */ f("div", { className: "ds:ms-auto ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
346
+ n ? /* @__PURE__ */ e(
347
+ H,
348
+ {
349
+ intent: "ghost",
350
+ size: "sm",
351
+ startIcon: /* @__PURE__ */ e(ys, { "aria-hidden": "true" }),
352
+ onClick: n,
353
+ children: m("alia.newConversation")
354
+ }
355
+ ) : null,
356
+ d
357
+ ] })
358
+ ]
359
+ }
360
+ );
361
+ }
362
+ function Us(s) {
363
+ var a;
364
+ return typeof navigator > "u" || typeof ((a = navigator.clipboard) == null ? void 0 : a.writeText) != "function" ? Promise.resolve(!1) : navigator.clipboard.writeText(s).then(() => !0).catch(() => !1);
365
+ }
366
+ function Ps(s, a) {
367
+ if (typeof window > "u" || typeof URL > "u" || typeof URL.createObjectURL != "function")
368
+ return;
369
+ const n = new Blob([s], { type: "text/markdown;charset=utf-8" }), d = URL.createObjectURL(n), r = document.createElement("a");
370
+ r.href = d, r.download = a, document.body.appendChild(r), r.click(), r.remove(), URL.revokeObjectURL(d);
371
+ }
372
+ function Bs(s) {
373
+ const a = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
374
+ return `${s.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "") || "assistant"}-prompt-${a}.md`;
375
+ }
376
+ const $s = () => {
377
+ var s;
378
+ return typeof navigator < "u" && typeof ((s = navigator.clipboard) == null ? void 0 : s.writeText) == "function";
379
+ };
380
+ function Fs({
381
+ message: s,
382
+ actions: a,
383
+ assistantName: n,
384
+ canRegenerate: d,
385
+ onCopyMessage: r,
386
+ onDownloadMessage: m,
387
+ onRegenerate: g
388
+ }) {
389
+ const { t: u } = w("ui"), [p, l] = k(!1), c = N(() => {
390
+ Us(s.content).then((b) => {
391
+ b && (l(!0), setTimeout(() => l(!1), 2e3), r == null || r(s.id));
392
+ });
393
+ }, [s.content, s.id, r]), v = N(() => {
394
+ Ps(s.content, Bs(n)), m == null || m(s.id);
395
+ }, [s.content, s.id, n, m]);
396
+ return /* @__PURE__ */ f(Te, { children: [
397
+ a.includes("copy") && $s() ? /* @__PURE__ */ e(
398
+ z,
399
+ {
400
+ icon: p ? /* @__PURE__ */ e(hs, {}) : /* @__PURE__ */ e(vs, {}),
401
+ "aria-label": u(p ? "alia.copied" : "alia.copyMessage"),
402
+ intent: "ghost",
403
+ size: "sm",
404
+ onClick: c
405
+ }
406
+ ) : null,
407
+ a.includes("download") ? /* @__PURE__ */ e(
408
+ z,
409
+ {
410
+ icon: /* @__PURE__ */ e(bs, {}),
411
+ "aria-label": u("alia.downloadMessage"),
412
+ intent: "ghost",
413
+ size: "sm",
414
+ onClick: v
415
+ }
416
+ ) : null,
417
+ d && g ? /* @__PURE__ */ e(
418
+ z,
419
+ {
420
+ icon: /* @__PURE__ */ e(xs, {}),
421
+ "aria-label": u("alia.regenerate"),
422
+ intent: "ghost",
423
+ size: "sm",
424
+ onClick: () => g(s.id)
425
+ }
426
+ ) : null,
427
+ /* @__PURE__ */ e("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: p ? u("alia.copied") : "" })
428
+ ] });
429
+ }
430
+ function Os({
431
+ attachments: s,
432
+ onRemove: a
433
+ }) {
434
+ const { t: n } = w("ui");
435
+ return s.length === 0 ? null : /* @__PURE__ */ e(
436
+ "ul",
437
+ {
438
+ "aria-label": n("alia.attachmentsLabel"),
439
+ className: "ds:m-0 ds:flex ds:list-none ds:flex-wrap ds:gap-[var(--spacing-xs)] ds:p-0",
440
+ children: s.map((d) => /* @__PURE__ */ f(
441
+ "li",
442
+ {
443
+ className: [
444
+ "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
445
+ "ds:rounded-[var(--radius-full)] ds:bg-[var(--muted)]",
446
+ "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-xs)]",
447
+ "ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)]"
448
+ ].join(" "),
449
+ children: [
450
+ /* @__PURE__ */ e(
451
+ ms,
452
+ {
453
+ "aria-hidden": "true",
454
+ className: "ds:size-3.5 ds:text-[color:var(--muted-foreground)]"
455
+ }
456
+ ),
457
+ /* @__PURE__ */ e("span", { dir: "auto", className: "type-meta ds:max-w-[12rem] ds:truncate", children: d.name }),
458
+ a ? /* @__PURE__ */ e(
459
+ z,
460
+ {
461
+ icon: /* @__PURE__ */ e(Ie, {}),
462
+ "aria-label": n("alia.removeAttachment", { name: d.name }),
463
+ intent: "ghost",
464
+ size: "sm",
465
+ onClick: () => a(d.id)
466
+ }
467
+ ) : null
468
+ ]
469
+ },
470
+ d.id
471
+ ))
472
+ }
473
+ );
474
+ }
475
+ function $e() {
476
+ if (typeof window > "u") return;
477
+ const s = window;
478
+ return s.SpeechRecognition ?? s.webkitSpeechRecognition;
479
+ }
480
+ function Fe({
481
+ listening: s,
482
+ disabled: a,
483
+ onToggle: n
484
+ }) {
485
+ const { t: d } = w("ui");
486
+ return /* @__PURE__ */ e(
487
+ z,
488
+ {
489
+ icon: /* @__PURE__ */ e(ws, {}),
490
+ "aria-label": d(s ? "alia.dictateStop" : "alia.dictate"),
491
+ "aria-pressed": s,
492
+ intent: s ? "primary" : "ghost",
493
+ size: "sm",
494
+ disabled: a,
495
+ onClick: n,
496
+ className: s ? "ds:motion-safe:animate-[var(--accessible-off,var(--ds-animate-pulse))] ds:motion-reduce:animate-none" : void 0
497
+ }
498
+ );
499
+ }
500
+ function je(s, a) {
501
+ return a ? s ? /\s$/.test(s) ? `${s}${a}` : `${s} ${a}` : a : s;
502
+ }
503
+ function Ds(s) {
504
+ return s && typeof s == "object" && "name" in s ? String(s.name) : void 0;
505
+ }
506
+ function Ws({
507
+ lang: s,
508
+ disabled: a,
509
+ onTranscript: n
510
+ }) {
511
+ const [d, r] = k(!1), m = I(null), g = N(() => {
512
+ var p;
513
+ (p = m.current) == null || p.stop(), r(!1);
514
+ }, []), u = N(() => {
515
+ const p = $e();
516
+ if (!p) return;
517
+ const l = new p();
518
+ l.lang = s, l.continuous = !1, l.interimResults = !1, l.onresult = (c) => {
519
+ let v = "";
520
+ for (let b = 0; b < c.results.length; b++)
521
+ v += c.results[b][0].transcript;
522
+ v && n(v);
523
+ }, l.onend = () => r(!1), l.onerror = () => r(!1), m.current = l, l.start(), r(!0);
524
+ }, [s, n]);
525
+ return B(() => {
526
+ if (!d) return;
527
+ const p = (l) => {
528
+ l.key === "Escape" && g();
529
+ };
530
+ return window.addEventListener("keydown", p), () => window.removeEventListener("keydown", p);
531
+ }, [d, g]), B(() => () => {
532
+ var p;
533
+ return (p = m.current) == null ? void 0 : p.stop();
534
+ }, []), /* @__PURE__ */ e(
535
+ Fe,
536
+ {
537
+ listening: d,
538
+ disabled: a,
539
+ onToggle: () => d ? g() : u()
540
+ }
541
+ );
542
+ }
543
+ function qs({
544
+ initialText: s,
545
+ onSave: a,
546
+ onCancel: n
547
+ }) {
548
+ const { t: d } = w("ui"), [r, m] = k(s);
549
+ return /* @__PURE__ */ f(
550
+ "div",
551
+ {
552
+ className: "ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-xs)]",
553
+ "data-testid": "alia-message-editor",
554
+ children: [
555
+ /* @__PURE__ */ e(
556
+ Se,
557
+ {
558
+ label: d("alia.editMessage"),
559
+ value: r,
560
+ onChange: (g) => m(g.target.value),
561
+ submitOnEnter: !0,
562
+ onSubmit: (g) => a(g),
563
+ minRows: 2
564
+ }
565
+ ),
566
+ /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-end ds:gap-[var(--spacing-xs)]", children: [
567
+ /* @__PURE__ */ e(H, { intent: "ghost", size: "sm", onClick: n, children: d("alia.cancelEdit") }),
568
+ /* @__PURE__ */ e(
569
+ H,
570
+ {
571
+ intent: "primary",
572
+ size: "sm",
573
+ onClick: () => a(r),
574
+ disabled: r.trim().length === 0,
575
+ children: d("alia.saveEdit")
576
+ }
577
+ )
578
+ ] })
579
+ ]
580
+ }
581
+ );
582
+ }
583
+ const ae = se(
584
+ ({
585
+ messages: s,
586
+ onSend: a,
587
+ onRetry: n,
588
+ onSuggestion: d,
589
+ suggestions: r,
590
+ isGenerating: m = !1,
591
+ onStopGenerating: g,
592
+ usage: u,
593
+ onUpgrade: p,
594
+ assistantName: l,
595
+ assistantAvatar: c,
596
+ userAvatar: v,
597
+ greeting: b,
598
+ subtitle: $,
599
+ density: S = "default",
600
+ renderMarkdown: re = !0,
601
+ onNewConversation: Oe,
602
+ onAttach: De,
603
+ acceptedFileTypes: We,
604
+ headerEndSlot: qe,
605
+ hideHeader: He = !1,
606
+ ended: K,
607
+ messageActions: Q,
608
+ onCopyMessage: ve,
609
+ onDownloadMessage: be,
610
+ voiceInput: Xe,
611
+ onVoiceTranscript: R,
612
+ onDictate: L,
613
+ attachments: ne,
614
+ onRemoveAttachment: Ke,
615
+ showScrollToLatest: Qe,
616
+ onRegenerate: M,
617
+ onEditMessage: Z
618
+ }, Me) => {
619
+ const { t: h, i18n: Ze } = w("ui"), [xe, ie] = k(null), [Ge, G] = k(""), J = I(null), de = I(null), le = I(null), oe = I(null), F = I(null), Y = I(!1), _ = N(() => {
620
+ var t;
621
+ (t = F.current) == null || t.call(F), F.current = null, oe.current = null;
622
+ }, []), A = N(
623
+ (t) => {
624
+ _();
625
+ const i = t.ownerDocument;
626
+ if (!t.contains(i.activeElement) && !fe(i, t))
627
+ return;
628
+ oe.current = t;
629
+ const o = (x) => {
630
+ (!(x.target instanceof Node) || !t.contains(x.target)) && _();
631
+ };
632
+ i.addEventListener("pointerdown", o, !0), i.addEventListener("focusin", o, !0), F.current = () => {
633
+ i.removeEventListener("pointerdown", o, !0), i.removeEventListener("focusin", o, !0);
634
+ };
635
+ },
636
+ [_]
637
+ ), ce = N(
638
+ (t) => A(t.currentTarget),
639
+ [A]
640
+ ), Je = N(
641
+ (t) => {
642
+ const i = J.current;
643
+ J.current = t, !t && (i != null && i.contains(i.ownerDocument.activeElement)) && A(i);
644
+ },
645
+ [A]
646
+ );
647
+ Ee(() => {
648
+ var x;
649
+ const t = oe.current;
650
+ if (!t || t.isConnected) return;
651
+ _();
652
+ const i = J.current;
653
+ if (!fe(t.ownerDocument, i)) return;
654
+ const o = i == null ? void 0 : i.querySelector("textarea");
655
+ if (o && !o.disabled) {
656
+ o.focus();
657
+ return;
658
+ }
659
+ (x = de.current ?? le.current) == null || x.focus();
660
+ }), B(() => _, [_]);
661
+ const Ne = !L && !!Xe && $e() != null, me = !!L || Ne, [O, we] = k(!1), [Ye, D] = k(""), [Ae, ye] = k(!1), [Ve, ue] = k(""), W = I(null), E = N((t) => {
662
+ const i = W.current;
663
+ i && (i.keepLate = t, t || D(""), i.controller.abort());
664
+ }, []), es = N(() => {
665
+ if (!L || W.current) return;
666
+ const t = new AbortController(), i = { controller: t, keepLate: !1 };
667
+ W.current = i;
668
+ let o = !1;
669
+ const x = () => !o && (!t.signal.aborted || i.keepLate);
670
+ we(!0), ye(!1), D(""), ue(h("editor.ai.listening")), L({
671
+ signal: t.signal,
672
+ onPartialTranscript: (C) => {
673
+ x() && D(C);
674
+ },
675
+ onFinalTranscript: (C) => {
676
+ if (!x()) return;
677
+ const P = C.trim();
678
+ D(""), P && (R == null || R(P), G((ns) => je(ns, P)), ue(P));
679
+ }
680
+ }).catch((C) => {
681
+ t.signal.aborted || Ds(C) === "AbortError" || ye(!0);
682
+ }).finally(() => {
683
+ o = !0, W.current === i && (W.current = null, we(!1), D(""), ue(""));
684
+ });
685
+ }, [L, R, h]);
686
+ B(() => {
687
+ if (!O) return;
688
+ const t = (i) => {
689
+ i.key === "Escape" && E(!0);
690
+ };
691
+ return window.addEventListener("keydown", t), () => window.removeEventListener("keydown", t);
692
+ }, [O, E]), B(() => () => E(!1), [E]);
693
+ const pe = ge(() => {
694
+ for (let t = s.length - 1; t >= 0; t--) {
695
+ const i = s[t];
696
+ if (i.role === "assistant" && !i.streaming) return i.id;
697
+ }
698
+ }, [s]), U = K != null, y = l ?? h("alia.name"), ss = b ?? h("alia.greeting"), ts = $ ?? h("alia.subtitle"), j = s[s.length - 1], V = (j == null ? void 0 : j.role) === "assistant" && j.streaming === !0, Ce = V ? s.slice(0, -1) : s, as = ge(() => {
699
+ const t = h("chat.message.role.user"), i = Ce.map((o) => {
700
+ let x;
701
+ if (o.role === "assistant" ? x = c != null && c.src ? { name: y, src: c.src } : {
702
+ slot: /* @__PURE__ */ e(
703
+ X,
704
+ {
705
+ size: "sm",
706
+ label: y,
707
+ appearance: "spinner"
708
+ }
709
+ )
710
+ } : o.role === "user" && (x = Is(v, t)), o.role === "user" && Z && xe === o.id)
711
+ return {
712
+ id: o.id,
713
+ node: /* @__PURE__ */ e(
714
+ qs,
715
+ {
716
+ initialText: o.content,
717
+ onSave: (P) => {
718
+ Z(o.id, P), ie(null);
719
+ },
720
+ onCancel: () => ie(null)
721
+ }
722
+ )
723
+ };
724
+ let C;
725
+ return o.role === "assistant" && (Q && Q.length > 0 || M && o.id === pe) ? C = /* @__PURE__ */ e(
726
+ Fs,
727
+ {
728
+ message: o,
729
+ actions: Q ?? [],
730
+ assistantName: y,
731
+ canRegenerate: !!M && o.id === pe,
732
+ onCopyMessage: ve,
733
+ onDownloadMessage: be,
734
+ onRegenerate: M
735
+ }
736
+ ) : o.role === "user" && Z && (C = /* @__PURE__ */ e(
737
+ z,
738
+ {
739
+ icon: /* @__PURE__ */ e(fs, {}),
740
+ "aria-label": h("alia.editMessage"),
741
+ intent: "ghost",
742
+ size: "sm",
743
+ onClick: () => ie(o.id)
744
+ }
745
+ )), {
746
+ id: o.id,
747
+ node: /* @__PURE__ */ e(
748
+ cs,
749
+ {
750
+ role: o.role,
751
+ content: o.content,
752
+ body: o.body,
753
+ avatar: x,
754
+ timestamp: o.timestamp,
755
+ status: o.status,
756
+ renderMarkdown: re,
757
+ onRetry: n ? () => n(o.id) : void 0,
758
+ actions: C
759
+ }
760
+ )
761
+ };
762
+ });
763
+ return V && j && i.push({
764
+ id: j.id,
765
+ node: /* @__PURE__ */ e(
766
+ Rs,
767
+ {
768
+ message: j,
769
+ assistantName: y,
770
+ avatarSrc: c == null ? void 0 : c.src,
771
+ renderMarkdown: re,
772
+ density: S
773
+ }
774
+ )
775
+ }), m && !V && i.push({
776
+ id: "__alia-typing__",
777
+ node: /* @__PURE__ */ f("div", { className: "ds:flex ds:w-full ds:items-start ds:gap-[var(--spacing-sm)]", children: [
778
+ c != null && c.src ? /* @__PURE__ */ e(
779
+ te,
780
+ {
781
+ name: y,
782
+ src: c.src,
783
+ size: "sm"
784
+ }
785
+ ) : /* @__PURE__ */ e(
786
+ X,
787
+ {
788
+ size: "sm",
789
+ label: y,
790
+ appearance: "spinner"
791
+ }
792
+ ),
793
+ /* @__PURE__ */ e(
794
+ "div",
795
+ {
796
+ className: [
797
+ "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
798
+ "ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]",
799
+ "ds:rounded-[var(--radius-md)] ds:rounded-es-[var(--radius-sm)]",
800
+ "ds:bg-muted/40"
801
+ ].join(" "),
802
+ children: /* @__PURE__ */ e(Ue, { label: h("chat.typing"), density: S })
803
+ }
804
+ )
805
+ ] })
806
+ }), K && i.push({
807
+ id: "__alia-ended__",
808
+ node: /* @__PURE__ */ e(Ts, { note: K.note, focusRef: de })
809
+ }), i;
810
+ }, [
811
+ Ce,
812
+ V,
813
+ j,
814
+ m,
815
+ y,
816
+ c == null ? void 0 : c.src,
817
+ v,
818
+ re,
819
+ n,
820
+ S,
821
+ K,
822
+ h,
823
+ xe,
824
+ Z,
825
+ Q,
826
+ M,
827
+ pe,
828
+ ve,
829
+ be
830
+ ]), rs = u ? Math.min(
831
+ 100,
832
+ Math.max(0, u.current / Math.max(1, u.limit) * 100)
833
+ ) : 0, T = u ? u.current >= u.limit : !1, q = T || U;
834
+ Ee(() => {
835
+ var o;
836
+ const t = J.current;
837
+ if (!q || !Y.current || !t)
838
+ return;
839
+ Y.current = !1;
840
+ const i = t.ownerDocument;
841
+ (t.contains(i.activeElement) || fe(i, t)) && ((o = de.current ?? le.current) == null || o.focus());
842
+ }, [q]), B(() => {
843
+ q && E(!1);
844
+ }, [q, E]);
845
+ const ke = u ? u.label ?? h("alia.usageLabel", {
846
+ current: u.current,
847
+ limit: u.limit
848
+ }) : null, ze = s.length === 0 && !m && !U, Le = /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
849
+ u ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
850
+ /* @__PURE__ */ f("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
851
+ /* @__PURE__ */ e(
852
+ "span",
853
+ {
854
+ ref: le,
855
+ tabIndex: T ? -1 : void 0,
856
+ className: [
857
+ "type-meta",
858
+ T ? `ds:text-[color:var(--destructive)] ${Be}` : "ds:text-[color:var(--muted-foreground)]"
859
+ ].join(" "),
860
+ "data-testid": "alia-usage-label",
861
+ children: T ? h("alia.usageLimitReached") : ke
862
+ }
863
+ ),
864
+ T && p ? /* @__PURE__ */ e(H, { intent: "primary", size: "sm", onClick: p, children: h("alia.upgrade") }) : null
865
+ ] }),
866
+ /* @__PURE__ */ e(
867
+ ps,
868
+ {
869
+ value: rs,
870
+ max: 100,
871
+ size: "sm",
872
+ ariaLabel: ke ?? h("alia.usageLabel", {
873
+ current: u.current,
874
+ limit: u.limit
875
+ }),
876
+ className: T ? "ds:[&_[role=progressbar]>*]:bg-[color:var(--destructive)]" : void 0,
877
+ "data-testid": "alia-usage-progress"
878
+ }
879
+ )
880
+ ] }) : null,
881
+ !ze && r && r.length > 0 && !m && !U ? /* @__PURE__ */ e(
882
+ Re,
883
+ {
884
+ label: h("alia.exampleQuestions"),
885
+ "data-testid": "alia-followup-suggestions",
886
+ children: r.map((t) => /* @__PURE__ */ e(
887
+ _e,
888
+ {
889
+ intent: "followup",
890
+ startIcon: t.icon,
891
+ keepOnSelect: !0,
892
+ onClick: ce,
893
+ onSelect: () => d == null ? void 0 : d(t),
894
+ children: t.label
895
+ },
896
+ t.id
897
+ ))
898
+ }
899
+ ) : null,
900
+ ne && ne.length > 0 ? /* @__PURE__ */ e(
901
+ Os,
902
+ {
903
+ attachments: ne,
904
+ onRemove: Ke
905
+ }
906
+ ) : null,
907
+ m && g && !U ? (
908
+ // On its own row, where the follow-up chips sit between answers: beside
909
+ // the message box it squeezed the box to half its width in a narrow rail.
910
+ /* @__PURE__ */ e(
911
+ H,
912
+ {
913
+ intent: "outline",
914
+ size: "sm",
915
+ className: "ds:self-end",
916
+ startIcon: /* @__PURE__ */ e(gs, { "aria-hidden": "true", className: "ds:fill-current" }),
917
+ onClick: (t) => {
918
+ ce(t), g();
919
+ },
920
+ children: h("alia.stopGenerating")
921
+ }
922
+ )
923
+ ) : null,
924
+ /* @__PURE__ */ f(
925
+ "div",
926
+ {
927
+ onFocus: () => {
928
+ Y.current = !0;
929
+ },
930
+ onBlur: (t) => {
931
+ const i = t.relatedTarget;
932
+ i instanceof Node && t.currentTarget.contains(i) || t.target.matches(":disabled") || (Y.current = !1);
933
+ },
934
+ children: [
935
+ /* @__PURE__ */ e(
936
+ Se,
937
+ {
938
+ ref: Je,
939
+ submitOnEnter: !0,
940
+ onSubmit: me ? (t) => {
941
+ E(!1), a(t), G("");
942
+ } : a,
943
+ value: me ? je(Ge, Ye) : void 0,
944
+ onChange: me ? (t) => G(t.target.value) : void 0,
945
+ readOnly: O || void 0,
946
+ onAttach: De,
947
+ accept: We,
948
+ disabled: T || U,
949
+ toolbar: L ? /* @__PURE__ */ e(
950
+ Fe,
951
+ {
952
+ listening: O,
953
+ disabled: q,
954
+ onToggle: () => O ? E(!0) : es()
955
+ }
956
+ ) : Ne ? /* @__PURE__ */ e(
957
+ Ws,
958
+ {
959
+ lang: Ze.language,
960
+ disabled: T || U,
961
+ onTranscript: (t) => {
962
+ R == null || R(t), G(
963
+ (i) => i ? `${i} ${t}` : t
964
+ );
965
+ }
966
+ }
967
+ ) : void 0,
968
+ "data-testid": "alia-composer"
969
+ }
970
+ ),
971
+ L && Ae ? /* @__PURE__ */ e(
972
+ "p",
973
+ {
974
+ role: "alert",
975
+ className: "ds:text-[length:var(--font-size-sm)] ds:text-[color:var(--destructive)]",
976
+ children: h("editor.ai.dictationError")
977
+ }
978
+ ) : null,
979
+ L ? (
980
+ // The phrase in progress shows in a read-only box, which a screen
981
+ // reader does not announce: this says "Listening" and each phrase
982
+ // as it lands.
983
+ /* @__PURE__ */ e("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: Ve })
984
+ ) : null
985
+ ]
986
+ }
987
+ )
988
+ ] });
989
+ return /* @__PURE__ */ f(
990
+ "div",
991
+ {
992
+ ref: Me,
993
+ className: [
994
+ "ds:flex ds:min-h-0 ds:flex-1 ds:flex-col",
995
+ "ds:bg-[var(--background)] ds:text-[color:var(--foreground)]"
996
+ ].join(" "),
997
+ "data-testid": "alia-surface",
998
+ children: [
999
+ He ? null : /* @__PURE__ */ e(
1000
+ _s,
1001
+ {
1002
+ assistantName: y,
1003
+ avatarSrc: c == null ? void 0 : c.src,
1004
+ onNewConversation: Oe,
1005
+ headerEndSlot: qe,
1006
+ density: S
1007
+ }
1008
+ ),
1009
+ ze ? /* @__PURE__ */ f(Te, { children: [
1010
+ /* @__PURE__ */ e(
1011
+ Ss,
1012
+ {
1013
+ assistantName: y,
1014
+ avatarSrc: c == null ? void 0 : c.src,
1015
+ greeting: ss,
1016
+ subtitle: ts,
1017
+ suggestions: r,
1018
+ onSuggestion: d,
1019
+ onChipClick: ce
1020
+ }
1021
+ ),
1022
+ /* @__PURE__ */ e(
1023
+ "div",
1024
+ {
1025
+ className: [
1026
+ // No top divider — the ChatInput's own soft shadow + the
1027
+ // border-radius give it enough visual containment, and a
1028
+ // surface-level separator here read as a sharp line at
1029
+ // 1px-equivalent shadow blur. Keep the bg explicit so
1030
+ // the chat-input chrome paints over the messages-area
1031
+ // background instead of mixing with it.
1032
+ "ds:shrink-0 ds:bg-[var(--background)]",
1033
+ "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
1034
+ "ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]"
1035
+ ].join(" "),
1036
+ children: Le
1037
+ }
1038
+ )
1039
+ ] }) : /* @__PURE__ */ e(
1040
+ os,
1041
+ {
1042
+ messages: as,
1043
+ density: S,
1044
+ composer: Le,
1045
+ showScrollToLatest: Qe,
1046
+ className: "ds:flex-1 ds:min-h-0"
1047
+ }
1048
+ )
1049
+ ]
1050
+ }
1051
+ );
1052
+ }
1053
+ );
1054
+ ae.displayName = "AliaChatSurface";
1055
+ const Hs = se(
1056
+ ({ headerSlot: s, ...a }, n) => /* @__PURE__ */ f(
1057
+ "div",
1058
+ {
1059
+ ref: n,
1060
+ className: [
1061
+ "ds:flex ds:min-h-0 ds:flex-1 ds:flex-col",
1062
+ "ds:bg-[var(--background)] ds:text-[color:var(--foreground)]",
1063
+ "ds:h-full ds:w-full"
1064
+ ].join(" "),
1065
+ "data-testid": "alia-embedded",
1066
+ children: [
1067
+ s ? /* @__PURE__ */ e(
1068
+ "div",
1069
+ {
1070
+ className: [
1071
+ "ds:shrink-0",
1072
+ "ds:ps-[var(--spacing-lg)] ds:pe-[var(--spacing-lg)]",
1073
+ "ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]"
1074
+ ].join(" "),
1075
+ children: s
1076
+ }
1077
+ ) : null,
1078
+ /* @__PURE__ */ e("div", { className: "ds:flex ds:min-h-0 ds:flex-1 ds:flex-col ds:items-stretch", children: /* @__PURE__ */ e(
1079
+ "div",
1080
+ {
1081
+ className: [
1082
+ "ds:flex ds:min-h-0 ds:w-full ds:flex-1 ds:flex-col",
1083
+ "ds:ms-auto ds:me-auto",
1084
+ "ds:[max-inline-size:48rem]",
1085
+ "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]"
1086
+ ].join(" "),
1087
+ children: /* @__PURE__ */ e(ae, { ...a })
1088
+ }
1089
+ ) })
1090
+ ]
1091
+ }
1092
+ )
1093
+ );
1094
+ Hs.displayName = "AliaEmbedded";
1095
+ function Xs(s) {
1096
+ return s > 99 ? "99+" : String(s);
1097
+ }
1098
+ const Ks = se(
1099
+ ({
1100
+ open: s,
1101
+ defaultOpen: a,
1102
+ onOpenChange: n,
1103
+ position: d = "bottom-end",
1104
+ unseenCount: r,
1105
+ assistantName: m,
1106
+ assistantAvatar: g,
1107
+ ...u
1108
+ }, p) => {
1109
+ const { t: l } = w("ui"), c = m || l("alia.name"), v = typeof r == "number" && r > 0, b = v ? l("alia.openWithUnseen", { count: r }) : l("alia.open"), $ = /* @__PURE__ */ e(is.Close, { asChild: !0, children: /* @__PURE__ */ e(
1110
+ z,
1111
+ {
1112
+ icon: /* @__PURE__ */ e(Ie, { "aria-hidden": "true" }),
1113
+ intent: "ghost",
1114
+ size: "sm",
1115
+ "aria-label": l("alia.close"),
1116
+ "data-testid": "alia-popout-close"
1117
+ }
1118
+ ) });
1119
+ return /* @__PURE__ */ f(
1120
+ ee.Root,
1121
+ {
1122
+ open: s,
1123
+ defaultOpen: a,
1124
+ onOpenChange: n,
1125
+ children: [
1126
+ /* @__PURE__ */ e(
1127
+ "div",
1128
+ {
1129
+ ref: p,
1130
+ className: [
1131
+ "ds:fixed ds:z-[var(--z-fixed)]",
1132
+ "ds:bottom-[calc(var(--spacing-lg)+env(safe-area-inset-bottom,0px))]",
1133
+ d === "bottom-end" ? "ds:end-[var(--spacing-lg)]" : "ds:start-[var(--spacing-lg)]"
1134
+ ].join(" "),
1135
+ "data-testid": "alia-popout-fab-wrapper",
1136
+ children: /* @__PURE__ */ f("div", { className: "ds:relative", children: [
1137
+ /* @__PURE__ */ e(ee.Trigger, { asChild: !0, children: /* @__PURE__ */ e(
1138
+ ds,
1139
+ {
1140
+ icon: /* @__PURE__ */ e(ls, { "aria-hidden": "true" }),
1141
+ "aria-label": b,
1142
+ variant: "primary",
1143
+ size: "md",
1144
+ position: "static",
1145
+ "data-testid": "alia-popout-fab"
1146
+ }
1147
+ ) }),
1148
+ v ? /* @__PURE__ */ e(
1149
+ "span",
1150
+ {
1151
+ "aria-hidden": "true",
1152
+ "data-testid": "alia-popout-badge",
1153
+ className: [
1154
+ "ds:absolute ds:-top-[var(--spacing-xs)] ds:-end-[var(--spacing-xs)]",
1155
+ "ds:inline-flex ds:items-center ds:justify-center",
1156
+ "ds:min-w-[calc(var(--spacing-md)+var(--spacing-xs))]",
1157
+ "ds:h-[calc(var(--spacing-md)+var(--spacing-xs))]",
1158
+ "ds:ps-[calc(var(--spacing-xs)/1.5)] ds:pe-[calc(var(--spacing-xs)/1.5)]",
1159
+ "ds:rounded-[var(--radius-full)]",
1160
+ "ds:bg-[color:var(--destructive)] ds:text-[color:var(--destructive-foreground)]",
1161
+ "ds:text-[length:var(--font-size-xs)] ds:font-semibold ds:leading-none",
1162
+ "ds:pointer-events-none ds:select-none",
1163
+ "ds:forced-colors:outline ds:forced-colors:outline-1 ds:forced-colors:outline-[CanvasText]"
1164
+ ].join(" "),
1165
+ children: Xs(r)
1166
+ }
1167
+ ) : null
1168
+ ] })
1169
+ }
1170
+ ),
1171
+ /* @__PURE__ */ f(
1172
+ ee.Content,
1173
+ {
1174
+ side: "end",
1175
+ size: "md",
1176
+ "aria-label": l("alia.panelLabel"),
1177
+ className: "ds:flex ds:min-h-0 ds:flex-col ds:p-0",
1178
+ "data-testid": "alia-popout-panel",
1179
+ children: [
1180
+ /* @__PURE__ */ e(ee.Title, { className: "ds:sr-only", children: c }),
1181
+ /* @__PURE__ */ e(
1182
+ ae,
1183
+ {
1184
+ ...u,
1185
+ assistantName: c,
1186
+ assistantAvatar: g,
1187
+ density: "compact",
1188
+ headerEndSlot: $
1189
+ }
1190
+ )
1191
+ ]
1192
+ }
1193
+ )
1194
+ ]
1195
+ }
1196
+ );
1197
+ }
1198
+ );
1199
+ Ks.displayName = "AliaPopout";
1200
+ function Qs(s) {
1201
+ return s > 99 ? "99+" : String(s);
1202
+ }
1203
+ const Ms = "ds:[inline-size:22rem]", Zs = "ds:[inline-size:3rem]", Gs = se(
1204
+ ({
1205
+ open: s,
1206
+ onOpenChange: a,
1207
+ side: n = "end",
1208
+ unseenCount: d,
1209
+ footerSlot: r,
1210
+ assistantName: m,
1211
+ assistantAvatar: g,
1212
+ ...u
1213
+ }, p) => {
1214
+ const { t: l } = w("ui"), c = m || l("alia.name"), v = typeof d == "number" && d > 0, b = n === "end" ? "ds:shadow-[var(--shadow-chrome-start)]" : "ds:shadow-[var(--shadow-chrome-end)]", $ = v ? l("alia.openWithUnseen", { count: d }) : l("alia.open");
1215
+ if (!s)
1216
+ return /* @__PURE__ */ e(
1217
+ "aside",
1218
+ {
1219
+ ref: p,
1220
+ "aria-label": l("alia.panelLabel"),
1221
+ className: [
1222
+ "ds:flex ds:shrink-0 ds:flex-col ds:items-center",
1223
+ "ds:bg-[var(--background)]",
1224
+ b,
1225
+ "ds:pt-[var(--spacing-md)] ds:pb-[var(--spacing-md)]",
1226
+ Zs
1227
+ ].join(" "),
1228
+ "data-testid": "alia-sidebar-rail",
1229
+ "data-alia-sidebar-state": "collapsed",
1230
+ children: /* @__PURE__ */ f("div", { className: "ds:relative", children: [
1231
+ /* @__PURE__ */ e(
1232
+ z,
1233
+ {
1234
+ icon: /* @__PURE__ */ e(he, {}),
1235
+ "aria-label": $,
1236
+ "aria-expanded": "false",
1237
+ intent: "ghost",
1238
+ size: "sm",
1239
+ onClick: () => a(!0),
1240
+ "data-testid": "alia-sidebar-rail-trigger"
1241
+ }
1242
+ ),
1243
+ v ? /* @__PURE__ */ e(
1244
+ "span",
1245
+ {
1246
+ "aria-hidden": "true",
1247
+ "data-testid": "alia-sidebar-badge",
1248
+ className: [
1249
+ "ds:absolute ds:-top-[var(--spacing-xs)] ds:-end-[var(--spacing-xs)]",
1250
+ "ds:inline-flex ds:items-center ds:justify-center",
1251
+ "ds:min-w-[calc(var(--spacing-md)+var(--spacing-xs))]",
1252
+ "ds:h-[calc(var(--spacing-md)+var(--spacing-xs))]",
1253
+ "ds:ps-[calc(var(--spacing-xs)/1.5)] ds:pe-[calc(var(--spacing-xs)/1.5)]",
1254
+ "ds:rounded-[var(--radius-full)]",
1255
+ "ds:bg-[color:var(--destructive)] ds:text-[color:var(--destructive-foreground)]",
1256
+ "ds:text-[length:var(--font-size-xs)] ds:font-semibold ds:leading-none",
1257
+ "ds:pointer-events-none ds:select-none",
1258
+ "ds:forced-colors:outline ds:forced-colors:outline-1 ds:forced-colors:outline-[CanvasText]"
1259
+ ].join(" "),
1260
+ children: Qs(d)
1261
+ }
1262
+ ) : null
1263
+ ] })
1264
+ }
1265
+ );
1266
+ const S = /* @__PURE__ */ e(
1267
+ z,
1268
+ {
1269
+ icon: n === "end" ? /* @__PURE__ */ e(ks, {}) : /* @__PURE__ */ e(zs, {}),
1270
+ intent: "ghost",
1271
+ size: "sm",
1272
+ "aria-label": l("alia.close"),
1273
+ "aria-expanded": "true",
1274
+ onClick: () => a(!1),
1275
+ "data-testid": "alia-sidebar-collapse"
1276
+ }
1277
+ );
1278
+ return /* @__PURE__ */ f(
1279
+ "aside",
1280
+ {
1281
+ ref: p,
1282
+ "aria-label": l("alia.panelLabel"),
1283
+ className: [
1284
+ "ds:flex ds:shrink-0 ds:flex-col ds:min-h-0",
1285
+ "ds:bg-[var(--background)]",
1286
+ b,
1287
+ Ms,
1288
+ "ds:h-full"
1289
+ ].join(" "),
1290
+ "data-testid": "alia-sidebar",
1291
+ "data-alia-sidebar-state": "expanded",
1292
+ children: [
1293
+ /* @__PURE__ */ e("div", { className: "ds:flex ds:min-h-0 ds:flex-1 ds:flex-col", children: /* @__PURE__ */ e(
1294
+ ae,
1295
+ {
1296
+ ...u,
1297
+ assistantName: c,
1298
+ assistantAvatar: g,
1299
+ density: "compact",
1300
+ headerEndSlot: S
1301
+ }
1302
+ ) }),
1303
+ r ? /* @__PURE__ */ e(
1304
+ "div",
1305
+ {
1306
+ "data-testid": "alia-sidebar-footer-slot",
1307
+ className: "ds:shrink-0 ds:shadow-[var(--shadow-chrome-up)]",
1308
+ children: r
1309
+ }
1310
+ ) : null
1311
+ ]
1312
+ }
1313
+ );
1314
+ }
1315
+ );
1316
+ Gs.displayName = "AliaSidebar";
1317
+ export {
1318
+ ae as A,
1319
+ Hs as a,
1320
+ Ks as b,
1321
+ Gs as c
1322
+ };
1323
+ //# sourceMappingURL=alia-sidebar-CsTRAxC8.js.map