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