@alfadocs/ui-kit-debug 1.56.0 → 1.58.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 (445) hide show
  1. package/dist/_chunks/{address-fields-BfjxS05Z.js → address-fields-CJtu7LQU.js} +2 -2
  2. package/dist/_chunks/{address-fields-BfjxS05Z.js.map → address-fields-CJtu7LQU.js.map} +1 -1
  3. package/dist/_chunks/{ai-credits-notice-BoNJtOuE.js → ai-credits-notice-ktklr8fy.js} +2 -2
  4. package/dist/_chunks/{ai-credits-notice-BoNJtOuE.js.map → ai-credits-notice-ktklr8fy.js.map} +1 -1
  5. package/dist/_chunks/ai-permission-notice-DyuEGwAt.js +206 -0
  6. package/dist/_chunks/ai-permission-notice-DyuEGwAt.js.map +1 -0
  7. package/dist/_chunks/alia-sidebar-dybRpWml.js +1284 -0
  8. package/dist/_chunks/alia-sidebar-dybRpWml.js.map +1 -0
  9. package/dist/_chunks/{anamnesis-summary-rows-CQ-XGr0T.js → anamnesis-summary-rows-M-FUkw9p.js} +6 -6
  10. package/dist/_chunks/{anamnesis-summary-rows-CQ-XGr0T.js.map → anamnesis-summary-rows-M-FUkw9p.js.map} +1 -1
  11. package/dist/_chunks/{app-frame-B-0O9CrU.js → app-frame-CqmDh2v5.js} +2 -2
  12. package/dist/_chunks/{app-frame-B-0O9CrU.js.map → app-frame-CqmDh2v5.js.map} +1 -1
  13. package/dist/_chunks/{appointment-peek-BIZaDeCi.js → appointment-peek-WvNbE4JG.js} +2 -2
  14. package/dist/_chunks/{appointment-peek-BIZaDeCi.js.map → appointment-peek-WvNbE4JG.js.map} +1 -1
  15. package/dist/_chunks/{appointment-timeline-DmqYEIT9.js → appointment-timeline-Z0494xO-.js} +2 -2
  16. package/dist/_chunks/{appointment-timeline-DmqYEIT9.js.map → appointment-timeline-Z0494xO-.js.map} +1 -1
  17. package/dist/_chunks/{balance-badge-cell-DmDcXw0c.js → balance-badge-cell-CGoJZlKf.js} +3 -3
  18. package/dist/_chunks/{balance-badge-cell-DmDcXw0c.js.map → balance-badge-cell-CGoJZlKf.js.map} +1 -1
  19. package/dist/_chunks/{booking-WyNGKPE2.js → booking-CiFSAMR-.js} +4 -4
  20. package/dist/_chunks/{booking-WyNGKPE2.js.map → booking-CiFSAMR-.js.map} +1 -1
  21. package/dist/_chunks/{calculator-dialog-pCPWta7h.js → calculator-dialog-CzQv03p0.js} +2 -2
  22. package/dist/_chunks/{calculator-dialog-pCPWta7h.js.map → calculator-dialog-CzQv03p0.js.map} +1 -1
  23. package/dist/_chunks/{calendar-workspace-Du2ryaI-.js → calendar-workspace-DNHzjG7O.js} +19 -19
  24. package/dist/_chunks/calendar-workspace-DNHzjG7O.js.map +1 -0
  25. package/dist/_chunks/{care-plan-card-Ddjh5Doc.js → care-plan-card-DxrRLRdW.js} +2 -2
  26. package/dist/_chunks/{care-plan-card-Ddjh5Doc.js.map → care-plan-card-DxrRLRdW.js.map} +1 -1
  27. package/dist/_chunks/{care-plan-header-DUX_SVvF.js → care-plan-header-BMwZIgHJ.js} +2 -2
  28. package/dist/_chunks/{care-plan-header-DUX_SVvF.js.map → care-plan-header-BMwZIgHJ.js.map} +1 -1
  29. package/dist/_chunks/{chart-HsF1KHbx.js → chart-ZMkX-Gqy.js} +338 -341
  30. package/dist/_chunks/chart-ZMkX-Gqy.js.map +1 -0
  31. package/dist/_chunks/{city-input-BC_nYINn.js → city-input-3J3bz9EO.js} +2 -2
  32. package/dist/_chunks/{city-input-BC_nYINn.js.map → city-input-3J3bz9EO.js.map} +1 -1
  33. package/dist/_chunks/{clinical-note-card-14JIoUR0.js → clinical-note-card-hx939bvw.js} +2 -2
  34. package/dist/_chunks/{clinical-note-card-14JIoUR0.js.map → clinical-note-card-hx939bvw.js.map} +1 -1
  35. package/dist/_chunks/{color-picker-BRQ4Y9SO.js → color-picker-BsggJovx.js} +128 -123
  36. package/dist/_chunks/color-picker-BsggJovx.js.map +1 -0
  37. package/dist/_chunks/{contact-card-CmK05vNb.js → contact-card-fHBMwEsx.js} +2 -2
  38. package/dist/_chunks/{contact-card-CmK05vNb.js.map → contact-card-fHBMwEsx.js.map} +1 -1
  39. package/dist/_chunks/{contact-profile-card-Ci8lBQ6a.js → contact-profile-card-CMyBYgRR.js} +2 -2
  40. package/dist/_chunks/{contact-profile-card-Ci8lBQ6a.js.map → contact-profile-card-CMyBYgRR.js.map} +1 -1
  41. package/dist/_chunks/{control-room-rail-Tx2jW250.js → control-room-rail-CJ85HkS2.js} +2 -2
  42. package/dist/_chunks/{control-room-rail-Tx2jW250.js.map → control-room-rail-CJ85HkS2.js.map} +1 -1
  43. package/dist/_chunks/{cycle-calculator-Dgfqr4Q4.js → cycle-calculator-Cww9DzIa.js} +2 -2
  44. package/dist/_chunks/{cycle-calculator-Dgfqr4Q4.js.map → cycle-calculator-Cww9DzIa.js.map} +1 -1
  45. package/dist/_chunks/dashboard-grid-Cs7cJAsA.js +933 -0
  46. package/dist/_chunks/dashboard-grid-Cs7cJAsA.js.map +1 -0
  47. package/dist/_chunks/{data-table-D8fuhqO1.js → data-table-Yn5xiGzs.js} +3 -3
  48. package/dist/_chunks/{data-table-D8fuhqO1.js.map → data-table-Yn5xiGzs.js.map} +1 -1
  49. package/dist/_chunks/{data-table-tabs-Xhg5G0gU.js → data-table-tabs-CHYAAeHy.js} +2 -2
  50. package/dist/_chunks/{data-table-tabs-Xhg5G0gU.js.map → data-table-tabs-CHYAAeHy.js.map} +1 -1
  51. package/dist/_chunks/{date-picker-wRAcq2lt.js → date-picker-BSZuKo13.js} +69 -62
  52. package/dist/_chunks/date-picker-BSZuKo13.js.map +1 -0
  53. package/dist/_chunks/{date-range-picker-CtUOI38x.js → date-range-picker-CFk-5O3R.js} +176 -171
  54. package/dist/_chunks/date-range-picker-CFk-5O3R.js.map +1 -0
  55. package/dist/_chunks/{date-time-picker-CLeLKuv9.js → date-time-picker-CjxTkblD.js} +92 -85
  56. package/dist/_chunks/date-time-picker-CjxTkblD.js.map +1 -0
  57. package/dist/_chunks/{dialog-CUzbnKLw.js → dialog-Dn-iQ0Jp.js} +2 -2
  58. package/dist/_chunks/{dialog-CUzbnKLw.js.map → dialog-Dn-iQ0Jp.js.map} +1 -1
  59. package/dist/_chunks/{document-preview-uoTekVR7.js → document-preview-CHGGG0l_.js} +2 -2
  60. package/dist/_chunks/{document-preview-uoTekVR7.js.map → document-preview-CHGGG0l_.js.map} +1 -1
  61. package/dist/_chunks/{due-date-calculator-CSjklbyw.js → due-date-calculator-D_qFUiHp.js} +2 -2
  62. package/dist/_chunks/{due-date-calculator-CSjklbyw.js.map → due-date-calculator-D_qFUiHp.js.map} +1 -1
  63. package/dist/_chunks/{entity-summary-DcB0fIiv.js → entity-summary-CWcCSThK.js} +2 -2
  64. package/dist/_chunks/{entity-summary-DcB0fIiv.js.map → entity-summary-CWcCSThK.js.map} +1 -1
  65. package/dist/_chunks/{face-scheme-BicuUA2K.js → face-scheme-DSKDdIsb.js} +2 -2
  66. package/dist/_chunks/{face-scheme-BicuUA2K.js.map → face-scheme-DSKDdIsb.js.map} +1 -1
  67. package/dist/_chunks/{file-manager-Cc_uO8r2.js → file-manager-DEtkQR1F.js} +4 -4
  68. package/dist/_chunks/{file-manager-Cc_uO8r2.js.map → file-manager-DEtkQR1F.js.map} +1 -1
  69. package/dist/_chunks/{forgot-password-form-DEx-M_QR.js → forgot-password-form-CEqOmNuX.js} +2 -2
  70. package/dist/_chunks/{forgot-password-form-DEx-M_QR.js.map → forgot-password-form-CEqOmNuX.js.map} +1 -1
  71. package/dist/_chunks/{gestational-age-calculator-DqVeJke2.js → gestational-age-calculator-CZi43xKG.js} +2 -2
  72. package/dist/_chunks/{gestational-age-calculator-DqVeJke2.js.map → gestational-age-calculator-CZi43xKG.js.map} +1 -1
  73. package/dist/_chunks/{hcg-doubling-BIYyI2Yo.js → hcg-doubling-Ccvh7OaU.js} +2 -2
  74. package/dist/_chunks/{hcg-doubling-BIYyI2Yo.js.map → hcg-doubling-Ccvh7OaU.js.map} +1 -1
  75. package/dist/_chunks/{header-settings-ge_3gYEq.js → header-settings-BMcCx2LC.js} +2 -2
  76. package/dist/_chunks/{header-settings-ge_3gYEq.js.map → header-settings-BMcCx2LC.js.map} +1 -1
  77. package/dist/_chunks/{heatmap-Gf9r7Tn1.js → heatmap-DiyOSQk9.js} +2 -2
  78. package/dist/_chunks/{heatmap-Gf9r7Tn1.js.map → heatmap-DiyOSQk9.js.map} +1 -1
  79. package/dist/_chunks/{help-me-write-templates-fV-Apf72.js → help-me-write-templates-CM1p6qkm.js} +3 -3
  80. package/dist/_chunks/{help-me-write-templates-fV-Apf72.js.map → help-me-write-templates-CM1p6qkm.js.map} +1 -1
  81. package/dist/_chunks/{hover-card-BnTueNS2.js → hover-card-U_ZYoh1n.js} +201 -187
  82. package/dist/_chunks/hover-card-U_ZYoh1n.js.map +1 -0
  83. package/dist/_chunks/{icon-picker-DWrqmI1c.js → icon-picker-rOFTawXk.js} +3 -3
  84. package/dist/_chunks/{icon-picker-DWrqmI1c.js.map → icon-picker-rOFTawXk.js.map} +1 -1
  85. package/dist/_chunks/{info-tip-B0jmIt6M.js → info-tip-CJpNpzZe.js} +2 -2
  86. package/dist/_chunks/{info-tip-B0jmIt6M.js.map → info-tip-CJpNpzZe.js.map} +1 -1
  87. package/dist/_chunks/{kit-extensions-Byfxy6sy.js → kit-extensions-DYVxWcqv.js} +4 -4
  88. package/dist/_chunks/{kit-extensions-Byfxy6sy.js.map → kit-extensions-DYVxWcqv.js.map} +1 -1
  89. package/dist/_chunks/{link-cell-renderer-TeJNvymP.js → link-cell-renderer-C1wOyxDF.js} +3 -3
  90. package/dist/_chunks/{link-cell-renderer-TeJNvymP.js.map → link-cell-renderer-C1wOyxDF.js.map} +1 -1
  91. package/dist/_chunks/link-gRw3NtOt.js +137 -0
  92. package/dist/_chunks/link-gRw3NtOt.js.map +1 -0
  93. package/dist/_chunks/{list-RRN2TJ_7.js → list-CNnn7DOD.js} +75 -73
  94. package/dist/_chunks/list-CNnn7DOD.js.map +1 -0
  95. package/dist/_chunks/{locale-picker-DfNSdOpy.js → locale-picker-BGfrZyTw.js} +2 -2
  96. package/dist/_chunks/{locale-picker-DfNSdOpy.js.map → locale-picker-BGfrZyTw.js.map} +1 -1
  97. package/dist/_chunks/{login-dev-card-DmZ1B0lB.js → login-dev-card-CIim81VB.js} +2 -2
  98. package/dist/_chunks/{login-dev-card-DmZ1B0lB.js.map → login-dev-card-CIim81VB.js.map} +1 -1
  99. package/dist/_chunks/marketplace-app-shell-CSDmGLPW.js +613 -0
  100. package/dist/_chunks/marketplace-app-shell-CSDmGLPW.js.map +1 -0
  101. package/dist/_chunks/{message-tray-BB95DA82.js → message-tray-DmU0poD7.js} +76 -69
  102. package/dist/_chunks/message-tray-DmU0poD7.js.map +1 -0
  103. package/dist/_chunks/{nav-grid-BqCPH8sm.js → nav-grid-Byx8PxuB.js} +2 -2
  104. package/dist/_chunks/{nav-grid-BqCPH8sm.js.map → nav-grid-Byx8PxuB.js.map} +1 -1
  105. package/dist/_chunks/navigation-dismiss-B1mcW1CT.js +9 -0
  106. package/dist/_chunks/navigation-dismiss-B1mcW1CT.js.map +1 -0
  107. package/dist/_chunks/non-modal-tab-exit-j3CPOuE3.js +89 -0
  108. package/dist/_chunks/non-modal-tab-exit-j3CPOuE3.js.map +1 -0
  109. package/dist/_chunks/{note-attachment-I1NLoeRZ.js → note-attachment-Bt2cddsZ.js} +2 -2
  110. package/dist/_chunks/{note-attachment-I1NLoeRZ.js.map → note-attachment-Bt2cddsZ.js.map} +1 -1
  111. package/dist/_chunks/{note-timeline-CsY8YOE7.js → note-timeline-CX9nAgAR.js} +2 -2
  112. package/dist/_chunks/{note-timeline-CsY8YOE7.js.map → note-timeline-CX9nAgAR.js.map} +1 -1
  113. package/dist/_chunks/{notes-panel-DceRhthG.js → notes-panel-DHLHsxpW.js} +4 -4
  114. package/dist/_chunks/{notes-panel-DceRhthG.js.map → notes-panel-DHLHsxpW.js.map} +1 -1
  115. package/dist/_chunks/{notification-tray-__sJXnsz.js → notification-tray-DPU-Xg0i.js} +83 -76
  116. package/dist/_chunks/notification-tray-DPU-Xg0i.js.map +1 -0
  117. package/dist/_chunks/{panel-subview-BT-Apwgb.js → panel-subview-D4o6ar6_.js} +61 -47
  118. package/dist/_chunks/panel-subview-D4o6ar6_.js.map +1 -0
  119. package/dist/_chunks/{patient-details-DsTtjpuX.js → patient-details-BCaVuaXz.js} +2 -2
  120. package/dist/_chunks/{patient-details-DsTtjpuX.js.map → patient-details-BCaVuaXz.js.map} +1 -1
  121. package/dist/_chunks/{patient-field-row-BvZ9luz-.js → patient-field-row-jcRSTrp4.js} +7 -7
  122. package/dist/_chunks/{patient-field-row-BvZ9luz-.js.map → patient-field-row-jcRSTrp4.js.map} +1 -1
  123. package/dist/_chunks/{patient-summary-card-9nQWTQf6.js → patient-summary-card-kQIfPQOE.js} +4 -4
  124. package/dist/_chunks/{patient-summary-card-9nQWTQf6.js.map → patient-summary-card-kQIfPQOE.js.map} +1 -1
  125. package/dist/_chunks/{payment-automation-upsell-DiHovmUL.js → payment-automation-upsell-C4wHOxsp.js} +2 -2
  126. package/dist/_chunks/{payment-automation-upsell-DiHovmUL.js.map → payment-automation-upsell-C4wHOxsp.js.map} +1 -1
  127. package/dist/_chunks/{payment-request-card-CwDpwXUC.js → payment-request-card-DAniJNLX.js} +2 -2
  128. package/dist/_chunks/{payment-request-card-CwDpwXUC.js.map → payment-request-card-DAniJNLX.js.map} +1 -1
  129. package/dist/_chunks/{pdf-viewer-C3minW5b.js → pdf-viewer-CNQxa4tv.js} +396 -391
  130. package/dist/_chunks/pdf-viewer-CNQxa4tv.js.map +1 -0
  131. package/dist/_chunks/{phone-input-DxkHMYmu.js → phone-input-O9camxkq.js} +156 -151
  132. package/dist/_chunks/phone-input-O9camxkq.js.map +1 -0
  133. package/dist/_chunks/popover-BG75rYjN.js +367 -0
  134. package/dist/_chunks/popover-BG75rYjN.js.map +1 -0
  135. package/dist/_chunks/{practice-results-Dhbo-fc_.js → practice-results-D07wgCqV.js} +2 -2
  136. package/dist/_chunks/{practice-results-Dhbo-fc_.js.map → practice-results-D07wgCqV.js.map} +1 -1
  137. package/dist/_chunks/{pregnancy-dating-Bfu0Cq4H.js → pregnancy-dating-BFzv9g1N.js} +2 -2
  138. package/dist/_chunks/{pregnancy-dating-Bfu0Cq4H.js.map → pregnancy-dating-BFzv9g1N.js.map} +1 -1
  139. package/dist/_chunks/{product-hub-panel-BSSiGGG4.js → product-hub-panel-DCYX0rPG.js} +103 -96
  140. package/dist/_chunks/product-hub-panel-DCYX0rPG.js.map +1 -0
  141. package/dist/_chunks/{public-footer-CxpG6J1M.js → public-footer-ZWTEG1Rq.js} +2 -2
  142. package/dist/_chunks/{public-footer-CxpG6J1M.js.map → public-footer-ZWTEG1Rq.js.map} +1 -1
  143. package/dist/_chunks/{public-header.agent-pr2hyiND.js → public-header.agent-C1SlVSYt.js} +2 -2
  144. package/dist/_chunks/{public-header.agent-pr2hyiND.js.map → public-header.agent-C1SlVSYt.js.map} +1 -1
  145. package/dist/_chunks/{radiograph-panel.agent-DkUokbEa.js → radiograph-panel.agent-DyqbTECc.js} +4 -4
  146. package/dist/_chunks/{radiograph-panel.agent-DkUokbEa.js.map → radiograph-panel.agent-DyqbTECc.js.map} +1 -1
  147. package/dist/_chunks/{registration-form-D7iNqMBF.js → registration-form-DrSR9Sjk.js} +4 -4
  148. package/dist/_chunks/{registration-form-D7iNqMBF.js.map → registration-form-DrSR9Sjk.js.map} +1 -1
  149. package/dist/_chunks/{rich-text-editor-CkFfmA3v.js → rich-text-editor-UgXri8h6.js} +490 -485
  150. package/dist/_chunks/rich-text-editor-UgXri8h6.js.map +1 -0
  151. package/dist/_chunks/{scroll-area-ZtFCv9K7.js → scroll-area-CY5SLYNw.js} +104 -74
  152. package/dist/_chunks/scroll-area-CY5SLYNw.js.map +1 -0
  153. package/dist/_chunks/{search-bar-DQJS0wJN.js → search-bar-mA4bPe3t.js} +294 -255
  154. package/dist/_chunks/search-bar-mA4bPe3t.js.map +1 -0
  155. package/dist/_chunks/{sheet-C7SwIxwB.js → sheet-Dtjk0CVv.js} +3 -3
  156. package/dist/_chunks/{sheet-C7SwIxwB.js.map → sheet-Dtjk0CVv.js.map} +1 -1
  157. package/dist/_chunks/sidebar-D4Wllqfz.js +2029 -0
  158. package/dist/_chunks/sidebar-D4Wllqfz.js.map +1 -0
  159. package/dist/_chunks/{sign-document-B6HlyCGV.js → sign-document-D4iHS_Ug.js} +2 -2
  160. package/dist/_chunks/{sign-document-B6HlyCGV.js.map → sign-document-D4iHS_Ug.js.map} +1 -1
  161. package/dist/_chunks/{signature-request-DhbpB9N9.js → signature-request-dAVgE0_5.js} +3 -3
  162. package/dist/_chunks/{signature-request-DhbpB9N9.js.map → signature-request-dAVgE0_5.js.map} +1 -1
  163. package/dist/_chunks/{signed-out-frame-B2GTIeqA.js → signed-out-frame-DOJpobp8.js} +3 -3
  164. package/dist/_chunks/{signed-out-frame-B2GTIeqA.js.map → signed-out-frame-DOJpobp8.js.map} +1 -1
  165. package/dist/_chunks/{state-backed-text-input-DECQy5aA.js → state-backed-text-input-Cgh4ms3p.js} +2 -2
  166. package/dist/_chunks/{state-backed-text-input-DECQy5aA.js.map → state-backed-text-input-Cgh4ms3p.js.map} +1 -1
  167. package/dist/_chunks/{task-editor-ByyRu29Y.js → task-editor-BflEZmcF.js} +7 -6
  168. package/dist/_chunks/task-editor-BflEZmcF.js.map +1 -0
  169. package/dist/_chunks/{tool-rail-Bwyuw_Ot.js → tool-rail-CTq1KwxW.js} +115 -114
  170. package/dist/_chunks/{tool-rail-Bwyuw_Ot.js.map → tool-rail-CTq1KwxW.js.map} +1 -1
  171. package/dist/_chunks/{use-appointment-details-read-JsDM48tf.js → use-appointment-details-read-izwoXh-G.js} +8 -8
  172. package/dist/_chunks/{use-appointment-details-read-JsDM48tf.js.map → use-appointment-details-read-izwoXh-G.js.map} +1 -1
  173. package/dist/_chunks/use-state-backed-input-DhRQo6gM.js +57 -0
  174. package/dist/_chunks/use-state-backed-input-DhRQo6gM.js.map +1 -0
  175. package/dist/_chunks/{voice-control-panel-Bg1eklL0.js → voice-control-panel-an-bpQfF.js} +3 -3
  176. package/dist/_chunks/{voice-control-panel-Bg1eklL0.js.map → voice-control-panel-an-bpQfF.js.map} +1 -1
  177. package/dist/_chunks/{widget-picker-DXYBMTfe.js → widget-picker-DlJOgYrZ.js} +80 -57
  178. package/dist/_chunks/widget-picker-DlJOgYrZ.js.map +1 -0
  179. package/dist/agent-catalog.json +3 -3
  180. package/dist/agent-i18n/en.json +1 -1
  181. package/dist/components/_shared/navigation-dismiss.d.ts +8 -0
  182. package/dist/components/_shared/navigation-dismiss.d.ts.map +1 -0
  183. package/dist/components/_shared/non-modal-tab-exit.d.ts +15 -4
  184. package/dist/components/_shared/non-modal-tab-exit.d.ts.map +1 -1
  185. package/dist/components/_shared/use-state-backed-input.d.ts +3 -2
  186. package/dist/components/_shared/use-state-backed-input.d.ts.map +1 -1
  187. package/dist/components/address-fields/index.js +1 -1
  188. package/dist/components/ai-credits-notice/index.js +1 -1
  189. package/dist/components/ai-permission-notice/ai-permission-notice.d.ts +32 -0
  190. package/dist/components/ai-permission-notice/ai-permission-notice.d.ts.map +1 -1
  191. package/dist/components/ai-permission-notice/index.d.ts +1 -1
  192. package/dist/components/ai-permission-notice/index.d.ts.map +1 -1
  193. package/dist/components/ai-permission-notice/index.js +1 -1
  194. package/dist/components/app-frame/index.js +1 -1
  195. package/dist/components/appointment-details-panel/index.js +1 -1
  196. package/dist/components/appointment-peek/index.js +1 -1
  197. package/dist/components/appointment-timeline/index.js +1 -1
  198. package/dist/components/booking/index.js +1 -1
  199. package/dist/components/calculator-dialog/index.js +1 -1
  200. package/dist/components/care-plan-card/index.js +1 -1
  201. package/dist/components/care-plan-header/index.js +1 -1
  202. package/dist/components/chart/chart.d.ts +5 -5
  203. package/dist/components/chart/chart.d.ts.map +1 -1
  204. package/dist/components/chart/index.js +1 -1
  205. package/dist/components/city-input/index.js +1 -1
  206. package/dist/components/clinical-note-card/index.js +1 -1
  207. package/dist/components/color-picker/color-picker.d.ts.map +1 -1
  208. package/dist/components/color-picker/index.js +1 -1
  209. package/dist/components/contact-card/index.js +1 -1
  210. package/dist/components/contact-profile-card/index.js +1 -1
  211. package/dist/components/control-room-rail/index.js +1 -1
  212. package/dist/components/cycle-calculator/index.js +1 -1
  213. package/dist/components/dashboard-grid/dashboard-grid.d.ts +33 -8
  214. package/dist/components/dashboard-grid/dashboard-grid.d.ts.map +1 -1
  215. package/dist/components/dashboard-grid/index.js +1 -1
  216. package/dist/components/data-table/index.js +2 -2
  217. package/dist/components/data-table-tabs/index.js +1 -1
  218. package/dist/components/date-picker/date-picker.d.ts.map +1 -1
  219. package/dist/components/date-picker/index.js +1 -1
  220. package/dist/components/date-range-picker/date-range-picker.d.ts.map +1 -1
  221. package/dist/components/date-range-picker/index.js +1 -1
  222. package/dist/components/date-time-picker/date-time-picker.d.ts.map +1 -1
  223. package/dist/components/date-time-picker/index.js +1 -1
  224. package/dist/components/dialog/index.js +1 -1
  225. package/dist/components/document-preview/index.js +1 -1
  226. package/dist/components/due-date-calculator/index.js +1 -1
  227. package/dist/components/entity-summary/index.js +1 -1
  228. package/dist/components/face-scheme/index.js +1 -1
  229. package/dist/components/file-manager/index.js +1 -1
  230. package/dist/components/gestational-age-calculator/index.js +1 -1
  231. package/dist/components/hcg-doubling/index.js +1 -1
  232. package/dist/components/header-settings/index.js +1 -1
  233. package/dist/components/heatmap/index.js +1 -1
  234. package/dist/components/hover-card/hover-card.d.ts.map +1 -1
  235. package/dist/components/hover-card/index.js +1 -1
  236. package/dist/components/icon-picker/index.js +1 -1
  237. package/dist/components/info-tip/index.js +1 -1
  238. package/dist/components/link/index.js +1 -1
  239. package/dist/components/link/link.d.ts +5 -3
  240. package/dist/components/link/link.d.ts.map +1 -1
  241. package/dist/components/list/index.js +1 -1
  242. package/dist/components/list/list.d.ts.map +1 -1
  243. package/dist/components/locale-picker/index.js +1 -1
  244. package/dist/components/message-tray/index.js +1 -1
  245. package/dist/components/message-tray/message-tray.d.ts.map +1 -1
  246. package/dist/components/nav-grid/index.js +1 -1
  247. package/dist/components/note-timeline/index.js +1 -1
  248. package/dist/components/notes-panel/index.js +1 -1
  249. package/dist/components/notification-tray/index.js +1 -1
  250. package/dist/components/notification-tray/notification-tray.d.ts.map +1 -1
  251. package/dist/components/panel-subview/index.js +1 -1
  252. package/dist/components/panel-subview/panel-subview.d.ts.map +1 -1
  253. package/dist/components/patient-details/index.js +1 -1
  254. package/dist/components/patient-summary-card/index.js +1 -1
  255. package/dist/components/patient-table/index.js +1 -1
  256. package/dist/components/payment-card/index.js +1 -1
  257. package/dist/components/pdf-viewer/index.js +1 -1
  258. package/dist/components/pdf-viewer/pdf-viewer.d.ts.map +1 -1
  259. package/dist/components/phone-input/index.js +1 -1
  260. package/dist/components/phone-input/phone-input.d.ts.map +1 -1
  261. package/dist/components/popover/index.js +1 -1
  262. package/dist/components/popover/popover.d.ts +1 -1
  263. package/dist/components/popover/popover.d.ts.map +1 -1
  264. package/dist/components/practice-results/index.js +1 -1
  265. package/dist/components/pregnancy-dating/index.js +1 -1
  266. package/dist/components/product-hub-tray/index.js +1 -1
  267. package/dist/components/product-hub-tray/product-hub-tray.d.ts.map +1 -1
  268. package/dist/components/public-footer/index.js +1 -1
  269. package/dist/components/public-header/index.js +1 -1
  270. package/dist/components/radiograph-panel/index.js +1 -1
  271. package/dist/components/rich-text-editor/editor-toolbar.d.ts.map +1 -1
  272. package/dist/components/rich-text-editor/index.js +2 -2
  273. package/dist/components/scroll-area/index.js +1 -1
  274. package/dist/components/scroll-area/scroll-area.d.ts +6 -5
  275. package/dist/components/scroll-area/scroll-area.d.ts.map +1 -1
  276. package/dist/components/search-bar/index.js +1 -1
  277. package/dist/components/search-bar/search-bar.d.ts +1 -1
  278. package/dist/components/search-bar/search-bar.d.ts.map +1 -1
  279. package/dist/components/sheet/index.js +1 -1
  280. package/dist/components/sidebar/index.d.ts +1 -1
  281. package/dist/components/sidebar/index.d.ts.map +1 -1
  282. package/dist/components/sidebar/index.js +1 -1
  283. package/dist/components/sidebar/sidebar-move.d.ts +88 -0
  284. package/dist/components/sidebar/sidebar-move.d.ts.map +1 -0
  285. package/dist/components/sidebar/sidebar.d.ts +26 -1
  286. package/dist/components/sidebar/sidebar.d.ts.map +1 -1
  287. package/dist/components/sign-document/index.js +1 -1
  288. package/dist/components/task-editor/index.js +1 -1
  289. package/dist/components/task-editor/task-editor.d.ts.map +1 -1
  290. package/dist/components/tool-rail/index.js +1 -1
  291. package/dist/components/tool-rail/tool-rail.d.ts.map +1 -1
  292. package/dist/components/voice-control-panel/index.js +1 -1
  293. package/dist/components/widget-picker/index.js +1 -1
  294. package/dist/components/widget-picker/widget-picker.d.ts.map +1 -1
  295. package/dist/host-compat.css +2 -1
  296. package/dist/i18n/locales/ar.d.ts +24 -0
  297. package/dist/i18n/locales/ar.d.ts.map +1 -1
  298. package/dist/i18n/locales/ar.js +26 -2
  299. package/dist/i18n/locales/ar.js.map +1 -1
  300. package/dist/i18n/locales/de.d.ts +24 -0
  301. package/dist/i18n/locales/de.d.ts.map +1 -1
  302. package/dist/i18n/locales/de.js +26 -2
  303. package/dist/i18n/locales/de.js.map +1 -1
  304. package/dist/i18n/locales/el.d.ts +24 -0
  305. package/dist/i18n/locales/el.d.ts.map +1 -1
  306. package/dist/i18n/locales/el.js +26 -2
  307. package/dist/i18n/locales/el.js.map +1 -1
  308. package/dist/i18n/locales/en.d.ts +24 -0
  309. package/dist/i18n/locales/en.d.ts.map +1 -1
  310. package/dist/i18n/locales/en.js +26 -2
  311. package/dist/i18n/locales/en.js.map +1 -1
  312. package/dist/i18n/locales/es.d.ts +24 -0
  313. package/dist/i18n/locales/es.d.ts.map +1 -1
  314. package/dist/i18n/locales/es.js +26 -2
  315. package/dist/i18n/locales/es.js.map +1 -1
  316. package/dist/i18n/locales/fr.d.ts +24 -0
  317. package/dist/i18n/locales/fr.d.ts.map +1 -1
  318. package/dist/i18n/locales/fr.js +26 -2
  319. package/dist/i18n/locales/fr.js.map +1 -1
  320. package/dist/i18n/locales/hi.d.ts +24 -0
  321. package/dist/i18n/locales/hi.d.ts.map +1 -1
  322. package/dist/i18n/locales/hi.js +26 -2
  323. package/dist/i18n/locales/hi.js.map +1 -1
  324. package/dist/i18n/locales/it.d.ts +24 -0
  325. package/dist/i18n/locales/it.d.ts.map +1 -1
  326. package/dist/i18n/locales/it.js +26 -2
  327. package/dist/i18n/locales/it.js.map +1 -1
  328. package/dist/i18n/locales/ja.d.ts +24 -0
  329. package/dist/i18n/locales/ja.d.ts.map +1 -1
  330. package/dist/i18n/locales/ja.js +26 -2
  331. package/dist/i18n/locales/ja.js.map +1 -1
  332. package/dist/i18n/locales/nl.d.ts +24 -0
  333. package/dist/i18n/locales/nl.d.ts.map +1 -1
  334. package/dist/i18n/locales/nl.js +26 -2
  335. package/dist/i18n/locales/nl.js.map +1 -1
  336. package/dist/i18n/locales/pl.d.ts +24 -0
  337. package/dist/i18n/locales/pl.d.ts.map +1 -1
  338. package/dist/i18n/locales/pl.js +26 -2
  339. package/dist/i18n/locales/pl.js.map +1 -1
  340. package/dist/i18n/locales/pt.d.ts +24 -0
  341. package/dist/i18n/locales/pt.d.ts.map +1 -1
  342. package/dist/i18n/locales/pt.js +26 -2
  343. package/dist/i18n/locales/pt.js.map +1 -1
  344. package/dist/i18n/locales/ro.d.ts +24 -0
  345. package/dist/i18n/locales/ro.d.ts.map +1 -1
  346. package/dist/i18n/locales/ro.js +26 -2
  347. package/dist/i18n/locales/ro.js.map +1 -1
  348. package/dist/i18n/locales/ru.d.ts +24 -0
  349. package/dist/i18n/locales/ru.d.ts.map +1 -1
  350. package/dist/i18n/locales/ru.js +26 -2
  351. package/dist/i18n/locales/ru.js.map +1 -1
  352. package/dist/i18n/locales/sq.d.ts +24 -0
  353. package/dist/i18n/locales/sq.d.ts.map +1 -1
  354. package/dist/i18n/locales/sq.js +26 -2
  355. package/dist/i18n/locales/sq.js.map +1 -1
  356. package/dist/i18n/locales/sv.d.ts +24 -0
  357. package/dist/i18n/locales/sv.d.ts.map +1 -1
  358. package/dist/i18n/locales/sv.js +26 -2
  359. package/dist/i18n/locales/sv.js.map +1 -1
  360. package/dist/i18n/locales/tr.d.ts +24 -0
  361. package/dist/i18n/locales/tr.d.ts.map +1 -1
  362. package/dist/i18n/locales/tr.js +26 -2
  363. package/dist/i18n/locales/tr.js.map +1 -1
  364. package/dist/i18n/locales/zh.d.ts +24 -0
  365. package/dist/i18n/locales/zh.d.ts.map +1 -1
  366. package/dist/i18n/locales/zh.js +26 -2
  367. package/dist/i18n/locales/zh.js.map +1 -1
  368. package/dist/index.js +204 -203
  369. package/dist/locales/ar.json +26 -2
  370. package/dist/locales/de.json +26 -2
  371. package/dist/locales/el.json +26 -2
  372. package/dist/locales/en.json +26 -2
  373. package/dist/locales/es.json +26 -2
  374. package/dist/locales/fr.json +26 -2
  375. package/dist/locales/hi.json +26 -2
  376. package/dist/locales/it.json +26 -2
  377. package/dist/locales/ja.json +26 -2
  378. package/dist/locales/nl.json +26 -2
  379. package/dist/locales/pl.json +26 -2
  380. package/dist/locales/pt.json +26 -2
  381. package/dist/locales/ro.json +26 -2
  382. package/dist/locales/ru.json +26 -2
  383. package/dist/locales/sq.json +26 -2
  384. package/dist/locales/sv.json +26 -2
  385. package/dist/locales/tr.json +26 -2
  386. package/dist/locales/zh.json +26 -2
  387. package/dist/patterns/alia-assistant/alia-asteroid-icon.d.ts +10 -13
  388. package/dist/patterns/alia-assistant/alia-asteroid-icon.d.ts.map +1 -1
  389. package/dist/patterns/alia-assistant/alia-chat-surface.d.ts.map +1 -1
  390. package/dist/patterns/alia-assistant/alia-popout.d.ts +5 -3
  391. package/dist/patterns/alia-assistant/alia-popout.d.ts.map +1 -1
  392. package/dist/patterns/alia-assistant/index.d.ts +2 -0
  393. package/dist/patterns/alia-assistant/index.d.ts.map +1 -1
  394. package/dist/patterns/alia-assistant/index.js +6 -5
  395. package/dist/patterns/anamnesis/index.js +1 -1
  396. package/dist/patterns/calendar/index.js +1 -1
  397. package/dist/patterns/forgot-password-form/index.js +1 -1
  398. package/dist/patterns/help-me-write-templates/index.js +1 -1
  399. package/dist/patterns/login-form/index.js +1 -1
  400. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  401. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +40 -10
  402. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts.map +1 -1
  403. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  404. package/dist/patterns/registration-form/index.js +1 -1
  405. package/dist/patterns/signature-request/index.js +1 -1
  406. package/dist/patterns/signed-out-frame/index.js +1 -1
  407. package/dist/tokens.css +1 -1
  408. package/package.json +1 -1
  409. package/dist/_chunks/ai-permission-notice-5vpblPCx.js +0 -171
  410. package/dist/_chunks/ai-permission-notice-5vpblPCx.js.map +0 -1
  411. package/dist/_chunks/alia-sidebar-DOei4Iyu.js +0 -1183
  412. package/dist/_chunks/alia-sidebar-DOei4Iyu.js.map +0 -1
  413. package/dist/_chunks/calendar-workspace-Du2ryaI-.js.map +0 -1
  414. package/dist/_chunks/chart-HsF1KHbx.js.map +0 -1
  415. package/dist/_chunks/color-picker-BRQ4Y9SO.js.map +0 -1
  416. package/dist/_chunks/dashboard-grid-DfEY2qci.js +0 -844
  417. package/dist/_chunks/dashboard-grid-DfEY2qci.js.map +0 -1
  418. package/dist/_chunks/date-picker-wRAcq2lt.js.map +0 -1
  419. package/dist/_chunks/date-range-picker-CtUOI38x.js.map +0 -1
  420. package/dist/_chunks/date-time-picker-CLeLKuv9.js.map +0 -1
  421. package/dist/_chunks/hover-card-BnTueNS2.js.map +0 -1
  422. package/dist/_chunks/link-2HokYuIi.js +0 -130
  423. package/dist/_chunks/link-2HokYuIi.js.map +0 -1
  424. package/dist/_chunks/list-RRN2TJ_7.js.map +0 -1
  425. package/dist/_chunks/marketplace-app-shell-Dcx-JEjg.js +0 -541
  426. package/dist/_chunks/marketplace-app-shell-Dcx-JEjg.js.map +0 -1
  427. package/dist/_chunks/message-tray-BB95DA82.js.map +0 -1
  428. package/dist/_chunks/non-modal-tab-exit-D2Bd93Bq.js +0 -65
  429. package/dist/_chunks/non-modal-tab-exit-D2Bd93Bq.js.map +0 -1
  430. package/dist/_chunks/notification-tray-__sJXnsz.js.map +0 -1
  431. package/dist/_chunks/panel-subview-BT-Apwgb.js.map +0 -1
  432. package/dist/_chunks/pdf-viewer-C3minW5b.js.map +0 -1
  433. package/dist/_chunks/phone-input-DxkHMYmu.js.map +0 -1
  434. package/dist/_chunks/popover-BI3oV3eY.js +0 -305
  435. package/dist/_chunks/popover-BI3oV3eY.js.map +0 -1
  436. package/dist/_chunks/product-hub-panel-BSSiGGG4.js.map +0 -1
  437. package/dist/_chunks/rich-text-editor-CkFfmA3v.js.map +0 -1
  438. package/dist/_chunks/scroll-area-ZtFCv9K7.js.map +0 -1
  439. package/dist/_chunks/search-bar-DQJS0wJN.js.map +0 -1
  440. package/dist/_chunks/sidebar-DLsG2AIk.js +0 -1349
  441. package/dist/_chunks/sidebar-DLsG2AIk.js.map +0 -1
  442. package/dist/_chunks/task-editor-ByyRu29Y.js.map +0 -1
  443. package/dist/_chunks/use-state-backed-input-C7ESmxKB.js +0 -59
  444. package/dist/_chunks/use-state-backed-input-C7ESmxKB.js.map +0 -1
  445. package/dist/_chunks/widget-picker-DXYBMTfe.js.map +0 -1
@@ -1,1183 +0,0 @@
1
- import { jsxs as c, jsx as e, Fragment as de } from "react/jsx-runtime";
2
- import { useId as Se, forwardRef as O, useState as L, useMemo as G, useCallback as U, useRef as Ie, useEffect as re } from "react";
3
- import * as Te from "@radix-ui/react-dialog";
4
- import { useTranslation as x } from "react-i18next";
5
- import { F as Ee } from "./floating-action-button-BesoUmO_.js";
6
- import { I as w } from "./icon-button-COX76Jdj.js";
7
- import { S as Z } from "./sheet-C7SwIxwB.js";
8
- import { X as te } from "./x-B5YnXwCz.js";
9
- import { A as _e } from "./astroid-BN4f5VXU.js";
10
- import { A as $ } from "./avatar-WZY3eGE7.js";
11
- import { B as S } from "./button-Bn16lcFM.js";
12
- import { C as Re } from "./chat-container-baxzy8k8.js";
13
- import { C as Pe } from "./chat-message-CmGUcajG.js";
14
- import { C as ne, P as Be } from "./chat-input-PtrSu1ZC.js";
15
- import { S as Ue } from "./streaming-text-BKZmbW1Q.js";
16
- import { a as le, S as oe } from "./suggestion-chip-BNRWZL51.js";
17
- import { T as Oe } from "./typing-indicator-B1RkE8jD.js";
18
- import { P as $e } from "./progress-D_g_Sl2g.js";
19
- import { P as De } from "./pencil-B1sKKyuT.js";
20
- import { S as Fe } from "./square-DASBRZ0U.js";
21
- import { C as We } from "./check-DrFSN__t.js";
22
- import { C as He } from "./copy-vRpqqHtY.js";
23
- import { D as Xe } from "./download-CfYKJO_j.js";
24
- import { R as qe } from "./refresh-cw-DnI0cLFC.js";
25
- import { c as Qe } from "./createLucideIcon-DhHxpK9K.js";
26
- import { M as Ke } from "./mic-CUklMZGF.js";
27
- import { P as Me } from "./plus-DzMQ_c6b.js";
28
- import { U as Ze } from "./user-B12p7bVF.js";
29
- import { a as Ge, C as Je } from "./chevrons-right-DIHg7Xqi.js";
30
- /**
31
- * @license lucide-react v1.22.0 - ISC
32
- *
33
- * This source code is licensed under the ISC license.
34
- * See the LICENSE file in the root directory of this source tree.
35
- */
36
- const Ye = [
37
- [
38
- "path",
39
- {
40
- 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",
41
- key: "oel41y"
42
- }
43
- ],
44
- ["path", { d: "m14.5 9.5-5 5", key: "17q4r4" }],
45
- ["path", { d: "m9.5 9.5 5 5", key: "18nt4w" }]
46
- ], Ve = Qe("shield-x", Ye);
47
- function J({
48
- "aria-hidden": s,
49
- className: i,
50
- variant: r = "gradient"
51
- }) {
52
- const a = `alia-asteroid-gradient-${Se().replace(/:/g, "")}`;
53
- return /* @__PURE__ */ c(
54
- "svg",
55
- {
56
- xmlns: "http://www.w3.org/2000/svg",
57
- viewBox: "0 0 24 24",
58
- fill: "none",
59
- strokeLinecap: "round",
60
- strokeLinejoin: "round",
61
- strokeWidth: "2",
62
- "aria-hidden": s,
63
- className: i,
64
- children: [
65
- r === "gradient" ? /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ c(
66
- "linearGradient",
67
- {
68
- id: a,
69
- gradientUnits: "userSpaceOnUse",
70
- x1: "0",
71
- y1: "12",
72
- x2: "24",
73
- y2: "12",
74
- children: [
75
- /* @__PURE__ */ e("stop", { offset: "0%", stopColor: "var(--accent)" }),
76
- /* @__PURE__ */ e("stop", { offset: "100%", stopColor: "var(--primary)" })
77
- ]
78
- }
79
- ) }) : null,
80
- /* @__PURE__ */ e(
81
- "path",
82
- {
83
- 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",
84
- stroke: r === "gradient" ? `url(#${a})` : "currentColor"
85
- }
86
- )
87
- ]
88
- }
89
- );
90
- }
91
- const ce = {
92
- sm: {
93
- box: "ds:size-[calc(var(--spacing-md)*2)]",
94
- icon: "ds:size-4"
95
- },
96
- md: {
97
- box: "ds:size-[calc(var(--spacing-md)*2.5)]",
98
- icon: "ds:size-[1.125rem]"
99
- },
100
- xl: {
101
- box: "ds:size-[calc(var(--spacing-md)*4)]",
102
- icon: "ds:size-8"
103
- }
104
- };
105
- function I({
106
- size: s,
107
- label: i,
108
- appearance: r = "sparkle",
109
- loading: d = !1
110
- }) {
111
- const a = ce[s];
112
- return r === "spinner" ? /* @__PURE__ */ e(
113
- "span",
114
- {
115
- role: "img",
116
- "aria-label": i,
117
- className: [
118
- "ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center",
119
- "ds:rounded-[var(--radius-full)]",
120
- "ds:bg-gradient-to-r ds:from-[var(--accent)] ds:to-[var(--primary)]",
121
- // --primary-foreground: white on light (dark disc), navy in dark
122
- // (bright disc) — correct WCAG contrast in both themes automatically.
123
- "ds:text-[color:var(--primary-foreground)]",
124
- "ds:forced-colors:bg-transparent ds:forced-colors:border ds:forced-colors:border-[CanvasText]",
125
- a.box
126
- ].join(" "),
127
- children: /* @__PURE__ */ e(
128
- J,
129
- {
130
- "aria-hidden": !0,
131
- variant: "mono",
132
- className: [
133
- a.icon,
134
- d ? "ds:animate-spin ds:motion-reduce:animate-none" : ""
135
- ].filter(Boolean).join(" ")
136
- }
137
- )
138
- }
139
- ) : /* @__PURE__ */ e(
140
- "span",
141
- {
142
- role: "img",
143
- "aria-label": i,
144
- className: [
145
- "ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center",
146
- "ds:rounded-[var(--radius-full)]",
147
- // Subtle accent-tinted disc so the sparkle reads against both
148
- // light and dark surfaces without a hard-coded literal colour.
149
- "ds:bg-[color-mix(in_srgb,var(--accent)_14%,transparent)]",
150
- "ds:text-[color:var(--accent)]",
151
- // forced-colors: UA strips color-mix backgrounds; fall back to
152
- // a bordered disc so the identity still reads in HCM.
153
- "ds:forced-colors:bg-transparent ds:forced-colors:border ds:forced-colors:border-[CanvasText]",
154
- a.box
155
- ].join(" "),
156
- children: /* @__PURE__ */ e(J, { "aria-hidden": "true", className: a.icon })
157
- }
158
- );
159
- }
160
- function Ae({
161
- size: s,
162
- label: i
163
- }) {
164
- const r = ce[s];
165
- return /* @__PURE__ */ e(
166
- "span",
167
- {
168
- role: "img",
169
- "aria-label": i,
170
- className: [
171
- "ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center",
172
- "ds:rounded-[var(--radius-full)]",
173
- "ds:bg-[color-mix(in_srgb,var(--muted-foreground)_14%,transparent)]",
174
- "ds:text-[color:var(--muted-foreground)]",
175
- "ds:forced-colors:bg-transparent ds:forced-colors:border ds:forced-colors:border-[CanvasText]",
176
- r.box
177
- ].join(" "),
178
- children: /* @__PURE__ */ e(Ze, { "aria-hidden": "true", className: r.icon })
179
- }
180
- );
181
- }
182
- function es({ note: s }) {
183
- return /* @__PURE__ */ c(
184
- "div",
185
- {
186
- role: "status",
187
- className: [
188
- "ds:flex ds:w-full ds:flex-col ds:items-center ds:text-center",
189
- "ds:gap-[var(--spacing-xs)]"
190
- ].join(" "),
191
- "data-testid": "alia-ended-divider",
192
- children: [
193
- /* @__PURE__ */ e(
194
- Ve,
195
- {
196
- "aria-hidden": "true",
197
- className: "ds:size-5 ds:text-[color:var(--destructive)]"
198
- }
199
- ),
200
- /* @__PURE__ */ e("span", { className: "type-body-sm ds:text-[color:var(--muted-foreground)]", children: s })
201
- ]
202
- }
203
- );
204
- }
205
- function ss(s, i) {
206
- return s ? s.slot ? { slot: s.slot } : { name: s.name, src: s.src } : { slot: /* @__PURE__ */ e(Ae, { size: "sm", label: i }) };
207
- }
208
- function as({
209
- assistantName: s,
210
- avatarSrc: i,
211
- greeting: r,
212
- subtitle: d,
213
- suggestions: a,
214
- onSuggestion: l
215
- }) {
216
- const { t: p } = x("ui"), n = "alia-empty-state-heading";
217
- return /* @__PURE__ */ c(
218
- "section",
219
- {
220
- "aria-labelledby": n,
221
- className: [
222
- "ds:flex ds:flex-1 ds:min-h-0 ds:flex-col ds:items-center ds:justify-center",
223
- "ds:text-center",
224
- "ds:ps-[var(--spacing-lg)] ds:pe-[var(--spacing-lg)]",
225
- "ds:pt-[var(--spacing-xl)] ds:pb-[var(--spacing-xl)]",
226
- "ds:gap-[var(--spacing-md)]"
227
- ].join(" "),
228
- "data-testid": "alia-empty-state",
229
- children: [
230
- i ? /* @__PURE__ */ e($, { name: s, src: i, size: "xl" }) : /* @__PURE__ */ e(
231
- I,
232
- {
233
- size: "xl",
234
- label: s,
235
- appearance: "spinner"
236
- }
237
- ),
238
- /* @__PURE__ */ c("div", { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-xs)] ds:max-w-[32rem]", children: [
239
- /* @__PURE__ */ e(
240
- "h2",
241
- {
242
- id: n,
243
- className: "type-title-section ds:m-0 ds:text-[color:var(--foreground)]",
244
- children: r
245
- }
246
- ),
247
- /* @__PURE__ */ e("p", { className: "type-body-sm ds:m-0 ds:text-[color:var(--muted-foreground)]", children: d })
248
- ] }),
249
- a && a.length > 0 ? /* @__PURE__ */ e("div", { className: "ds:w-full ds:max-w-[40rem]", children: /* @__PURE__ */ e(
250
- le,
251
- {
252
- label: p("alia.exampleQuestions"),
253
- className: "ds:justify-center",
254
- children: a.map((m) => /* @__PURE__ */ e(
255
- oe,
256
- {
257
- intent: "suggestion",
258
- startIcon: m.icon,
259
- keepOnSelect: !0,
260
- onSelect: () => l == null ? void 0 : l(m),
261
- children: m.label
262
- },
263
- m.id
264
- ))
265
- }
266
- ) }) : null
267
- ]
268
- }
269
- );
270
- }
271
- function is({
272
- message: s,
273
- assistantName: i,
274
- avatarSrc: r,
275
- renderMarkdown: d
276
- }) {
277
- const { t: a, i18n: l } = x("ui"), p = a("chat.message.role.assistant"), n = G(() => {
278
- if (!s.timestamp) return null;
279
- const o = s.timestamp instanceof Date ? s.timestamp : new Date(s.timestamp);
280
- return Number.isNaN(o.getTime()) ? null : new Intl.DateTimeFormat(l.language, {
281
- hour: "2-digit",
282
- minute: "2-digit"
283
- }).format(o);
284
- }, [s.timestamp, l.language]), m = n ? a("chat.message.label", { role: p, time: n }) : a("chat.message.labelNoTime", { role: p });
285
- return /* @__PURE__ */ c(
286
- "article",
287
- {
288
- "aria-label": m,
289
- className: "ds:flex ds:w-full ds:items-start ds:flex-row ds:gap-[var(--spacing-sm)]",
290
- children: [
291
- r ? /* @__PURE__ */ e($, { name: i, src: r, size: "sm" }) : /* @__PURE__ */ e(
292
- I,
293
- {
294
- size: "sm",
295
- label: i,
296
- appearance: "spinner",
297
- loading: !0
298
- }
299
- ),
300
- /* @__PURE__ */ e("div", { className: "ds:flex ds:flex-col ds:items-start", children: /* @__PURE__ */ e(
301
- "div",
302
- {
303
- dir: "auto",
304
- className: [
305
- "ds:relative ds:max-w-[min(42rem,90%)]",
306
- "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
307
- "ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]",
308
- "type-body",
309
- "ds:break-words",
310
- "ds:bg-muted/40 ds:text-foreground",
311
- "ds:rounded-[var(--radius-md)] ds:rounded-es-[var(--radius-sm)]"
312
- ].join(" "),
313
- children: /* @__PURE__ */ e(
314
- Ue,
315
- {
316
- content: s.content,
317
- isStreaming: !0,
318
- renderMarkdown: d
319
- }
320
- )
321
- }
322
- ) })
323
- ]
324
- }
325
- );
326
- }
327
- function rs({
328
- assistantName: s,
329
- avatarSrc: i,
330
- onNewConversation: r,
331
- headerEndSlot: d,
332
- density: a
333
- }) {
334
- const { t: l } = x("ui");
335
- return /* @__PURE__ */ c(
336
- "header",
337
- {
338
- "aria-label": l("alia.headerLabel"),
339
- className: [
340
- "ds:flex ds:shrink-0 ds:items-center ds:gap-[var(--spacing-sm)]",
341
- // Soft drop-shadow on the block-end edge in place of a `border-b`
342
- // against `--border` — same rationale as the Alia sidebar's inline
343
- // edge (see alia-sidebar.tsx).
344
- "ds:shadow-[var(--shadow-chrome-down)]",
345
- "ds:bg-[var(--background)]",
346
- "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
347
- a === "compact" ? "ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]" : "ds:pt-[var(--spacing-md)] ds:pb-[var(--spacing-md)]"
348
- ].join(" "),
349
- "data-testid": "alia-header",
350
- children: [
351
- i ? /* @__PURE__ */ e(
352
- $,
353
- {
354
- name: s,
355
- src: i,
356
- size: a === "compact" ? "sm" : "md"
357
- }
358
- ) : /* @__PURE__ */ e(
359
- I,
360
- {
361
- size: a === "compact" ? "sm" : "md",
362
- label: s,
363
- appearance: "spinner"
364
- }
365
- ),
366
- /* @__PURE__ */ e("span", { className: "type-title-item ds:text-[color:var(--foreground)]", children: s }),
367
- /* @__PURE__ */ c("div", { className: "ds:ms-auto ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
368
- r ? /* @__PURE__ */ e(
369
- S,
370
- {
371
- intent: "ghost",
372
- size: "sm",
373
- startIcon: /* @__PURE__ */ e(Me, { "aria-hidden": "true" }),
374
- onClick: r,
375
- children: l("alia.newConversation")
376
- }
377
- ) : null,
378
- d
379
- ] })
380
- ]
381
- }
382
- );
383
- }
384
- function ds(s) {
385
- var i;
386
- return typeof navigator > "u" || typeof ((i = navigator.clipboard) == null ? void 0 : i.writeText) != "function" ? Promise.resolve(!1) : navigator.clipboard.writeText(s).then(() => !0).catch(() => !1);
387
- }
388
- function ts(s, i) {
389
- if (typeof window > "u" || typeof URL > "u" || typeof URL.createObjectURL != "function")
390
- return;
391
- const r = new Blob([s], { type: "text/markdown;charset=utf-8" }), d = URL.createObjectURL(r), a = document.createElement("a");
392
- a.href = d, a.download = i, document.body.appendChild(a), a.click(), a.remove(), URL.revokeObjectURL(d);
393
- }
394
- function ns(s) {
395
- const i = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
396
- return `${s.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "") || "assistant"}-prompt-${i}.md`;
397
- }
398
- const ls = () => {
399
- var s;
400
- return typeof navigator < "u" && typeof ((s = navigator.clipboard) == null ? void 0 : s.writeText) == "function";
401
- };
402
- function os({
403
- message: s,
404
- actions: i,
405
- assistantName: r,
406
- canRegenerate: d,
407
- onCopyMessage: a,
408
- onDownloadMessage: l,
409
- onRegenerate: p
410
- }) {
411
- const { t: n } = x("ui"), [m, o] = L(!1), t = U(() => {
412
- ds(s.content).then((v) => {
413
- v && (o(!0), setTimeout(() => o(!1), 2e3), a == null || a(s.id));
414
- });
415
- }, [s.content, s.id, a]), g = U(() => {
416
- ts(s.content, ns(r)), l == null || l(s.id);
417
- }, [s.content, s.id, r, l]);
418
- return /* @__PURE__ */ c(de, { children: [
419
- i.includes("copy") && ls() ? /* @__PURE__ */ e(
420
- w,
421
- {
422
- icon: m ? /* @__PURE__ */ e(We, {}) : /* @__PURE__ */ e(He, {}),
423
- "aria-label": n(m ? "alia.copied" : "alia.copyMessage"),
424
- intent: "ghost",
425
- size: "sm",
426
- onClick: t
427
- }
428
- ) : null,
429
- i.includes("download") ? /* @__PURE__ */ e(
430
- w,
431
- {
432
- icon: /* @__PURE__ */ e(Xe, {}),
433
- "aria-label": n("alia.downloadMessage"),
434
- intent: "ghost",
435
- size: "sm",
436
- onClick: g
437
- }
438
- ) : null,
439
- d && p ? /* @__PURE__ */ e(
440
- w,
441
- {
442
- icon: /* @__PURE__ */ e(qe, {}),
443
- "aria-label": n("alia.regenerate"),
444
- intent: "ghost",
445
- size: "sm",
446
- onClick: () => p(s.id)
447
- }
448
- ) : null,
449
- /* @__PURE__ */ e("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: m ? n("alia.copied") : "" })
450
- ] });
451
- }
452
- function cs({
453
- attachments: s,
454
- onRemove: i
455
- }) {
456
- const { t: r } = x("ui");
457
- return s.length === 0 ? null : /* @__PURE__ */ e(
458
- "ul",
459
- {
460
- "aria-label": r("alia.attachmentsLabel"),
461
- className: "ds:m-0 ds:flex ds:list-none ds:flex-wrap ds:gap-[var(--spacing-xs)] ds:p-0",
462
- children: s.map((d) => /* @__PURE__ */ c(
463
- "li",
464
- {
465
- className: [
466
- "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
467
- "ds:rounded-[var(--radius-full)] ds:bg-[var(--muted)]",
468
- "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-xs)]",
469
- "ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)]"
470
- ].join(" "),
471
- children: [
472
- /* @__PURE__ */ e(
473
- Be,
474
- {
475
- "aria-hidden": "true",
476
- className: "ds:size-3.5 ds:text-[color:var(--muted-foreground)]"
477
- }
478
- ),
479
- /* @__PURE__ */ e("span", { dir: "auto", className: "type-meta ds:max-w-[12rem] ds:truncate", children: d.name }),
480
- i ? /* @__PURE__ */ e(
481
- w,
482
- {
483
- icon: /* @__PURE__ */ e(te, {}),
484
- "aria-label": r("alia.removeAttachment", { name: d.name }),
485
- intent: "ghost",
486
- size: "sm",
487
- onClick: () => i(d.id)
488
- }
489
- ) : null
490
- ]
491
- },
492
- d.id
493
- ))
494
- }
495
- );
496
- }
497
- function me() {
498
- if (typeof window > "u") return;
499
- const s = window;
500
- return s.SpeechRecognition ?? s.webkitSpeechRecognition;
501
- }
502
- function ms({
503
- lang: s,
504
- disabled: i,
505
- onTranscript: r
506
- }) {
507
- const { t: d } = x("ui"), [a, l] = L(!1), p = Ie(null), n = U(() => {
508
- var o;
509
- (o = p.current) == null || o.stop(), l(!1);
510
- }, []), m = U(() => {
511
- const o = me();
512
- if (!o) return;
513
- const t = new o();
514
- t.lang = s, t.continuous = !1, t.interimResults = !1, t.onresult = (g) => {
515
- let v = "";
516
- for (let C = 0; C < g.results.length; C++)
517
- v += g.results[C][0].transcript;
518
- v && r(v);
519
- }, t.onend = () => l(!1), t.onerror = () => l(!1), p.current = t, t.start(), l(!0);
520
- }, [s, r]);
521
- return re(() => {
522
- if (!a) return;
523
- const o = (t) => {
524
- t.key === "Escape" && n();
525
- };
526
- return window.addEventListener("keydown", o), () => window.removeEventListener("keydown", o);
527
- }, [a, n]), re(() => () => {
528
- var o;
529
- return (o = p.current) == null ? void 0 : o.stop();
530
- }, []), /* @__PURE__ */ e(
531
- w,
532
- {
533
- icon: /* @__PURE__ */ e(Ke, {}),
534
- "aria-label": d(a ? "alia.dictateStop" : "alia.dictate"),
535
- "aria-pressed": a,
536
- intent: a ? "primary" : "ghost",
537
- size: "sm",
538
- disabled: i,
539
- onClick: () => a ? n() : m(),
540
- className: a ? "ds:motion-safe:animate-[var(--accessible-off,var(--ds-animate-pulse))] ds:motion-reduce:animate-none" : void 0
541
- }
542
- );
543
- }
544
- function ps({
545
- initialText: s,
546
- onSave: i,
547
- onCancel: r
548
- }) {
549
- const { t: d } = x("ui"), [a, l] = L(s);
550
- return /* @__PURE__ */ c(
551
- "div",
552
- {
553
- className: "ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-xs)]",
554
- "data-testid": "alia-message-editor",
555
- children: [
556
- /* @__PURE__ */ e(
557
- ne,
558
- {
559
- label: d("alia.editMessage"),
560
- value: a,
561
- onChange: (p) => l(p.target.value),
562
- submitOnEnter: !0,
563
- onSubmit: (p) => i(p),
564
- minRows: 2
565
- }
566
- ),
567
- /* @__PURE__ */ c("div", { className: "ds:flex ds:items-center ds:justify-end ds:gap-[var(--spacing-xs)]", children: [
568
- /* @__PURE__ */ e(S, { intent: "ghost", size: "sm", onClick: r, children: d("alia.cancelEdit") }),
569
- /* @__PURE__ */ e(
570
- S,
571
- {
572
- intent: "primary",
573
- size: "sm",
574
- onClick: () => i(a),
575
- disabled: a.trim().length === 0,
576
- children: d("alia.saveEdit")
577
- }
578
- )
579
- ] })
580
- ]
581
- }
582
- );
583
- }
584
- const D = O(
585
- ({
586
- messages: s,
587
- onSend: i,
588
- onRetry: r,
589
- onSuggestion: d,
590
- suggestions: a,
591
- isGenerating: l = !1,
592
- onStopGenerating: p,
593
- usage: n,
594
- onUpgrade: m,
595
- assistantName: o,
596
- assistantAvatar: t,
597
- userAvatar: g,
598
- greeting: v,
599
- subtitle: C,
600
- density: k = "default",
601
- renderMarkdown: F = !0,
602
- onNewConversation: pe,
603
- onAttach: ue,
604
- acceptedFileTypes: fe,
605
- headerEndSlot: he,
606
- hideHeader: ge = !1,
607
- ended: T,
608
- messageActions: E,
609
- onCopyMessage: Y,
610
- onDownloadMessage: V,
611
- voiceInput: ve,
612
- onVoiceTranscript: W,
613
- attachments: H,
614
- onRemoveAttachment: be,
615
- showScrollToLatest: xe,
616
- onRegenerate: _,
617
- onEditMessage: R
618
- }, Ne) => {
619
- const { t: h, i18n: we } = x("ui"), [A, X] = L(null), [ye, q] = L(""), P = !!ve && me() != null, Q = G(() => {
620
- for (let f = s.length - 1; f >= 0; f--) {
621
- const b = s[f];
622
- if (b.role === "assistant" && !b.streaming) return b.id;
623
- }
624
- }, [s]), j = T != null, N = o ?? h("alia.name"), Ce = v ?? h("alia.greeting"), ke = C ?? h("alia.subtitle"), y = s[s.length - 1], B = (y == null ? void 0 : y.role) === "assistant" && y.streaming === !0, ee = B ? s.slice(0, -1) : s, ze = G(() => {
625
- const f = h("chat.message.role.user"), b = ee.map((u) => {
626
- let K;
627
- if (u.role === "assistant" ? K = t != null && t.src ? { name: N, src: t.src } : {
628
- slot: /* @__PURE__ */ e(
629
- I,
630
- {
631
- size: "sm",
632
- label: N,
633
- appearance: "spinner"
634
- }
635
- )
636
- } : u.role === "user" && (K = ss(g, f)), u.role === "user" && R && A === u.id)
637
- return {
638
- id: u.id,
639
- node: /* @__PURE__ */ e(
640
- ps,
641
- {
642
- initialText: u.content,
643
- onSave: (Le) => {
644
- R(u.id, Le), X(null);
645
- },
646
- onCancel: () => X(null)
647
- }
648
- )
649
- };
650
- let M;
651
- return u.role === "assistant" && (E && E.length > 0 || _ && u.id === Q) ? M = /* @__PURE__ */ e(
652
- os,
653
- {
654
- message: u,
655
- actions: E ?? [],
656
- assistantName: N,
657
- canRegenerate: !!_ && u.id === Q,
658
- onCopyMessage: Y,
659
- onDownloadMessage: V,
660
- onRegenerate: _
661
- }
662
- ) : u.role === "user" && R && (M = /* @__PURE__ */ e(
663
- w,
664
- {
665
- icon: /* @__PURE__ */ e(De, {}),
666
- "aria-label": h("alia.editMessage"),
667
- intent: "ghost",
668
- size: "sm",
669
- onClick: () => X(u.id)
670
- }
671
- )), {
672
- id: u.id,
673
- node: /* @__PURE__ */ e(
674
- Pe,
675
- {
676
- role: u.role,
677
- content: u.content,
678
- body: u.body,
679
- avatar: K,
680
- timestamp: u.timestamp,
681
- status: u.status,
682
- renderMarkdown: F,
683
- onRetry: r ? () => r(u.id) : void 0,
684
- actions: M
685
- }
686
- )
687
- };
688
- });
689
- return B && y && b.push({
690
- id: y.id,
691
- node: /* @__PURE__ */ e(
692
- is,
693
- {
694
- message: y,
695
- assistantName: N,
696
- avatarSrc: t == null ? void 0 : t.src,
697
- renderMarkdown: F
698
- }
699
- )
700
- }), l && !B && b.push({
701
- id: "__alia-typing__",
702
- node: /* @__PURE__ */ c("div", { className: "ds:flex ds:w-full ds:items-start ds:gap-[var(--spacing-sm)]", children: [
703
- t != null && t.src ? /* @__PURE__ */ e(
704
- $,
705
- {
706
- name: N,
707
- src: t.src,
708
- size: "sm"
709
- }
710
- ) : /* @__PURE__ */ e(
711
- I,
712
- {
713
- size: "sm",
714
- label: N,
715
- appearance: "spinner"
716
- }
717
- ),
718
- /* @__PURE__ */ e(
719
- "div",
720
- {
721
- className: [
722
- "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
723
- "ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]",
724
- "ds:rounded-[var(--radius-md)] ds:rounded-es-[var(--radius-sm)]",
725
- "ds:bg-muted/40"
726
- ].join(" "),
727
- children: /* @__PURE__ */ e(Oe, { label: h("chat.typing"), density: k })
728
- }
729
- )
730
- ] })
731
- }), T && b.push({
732
- id: "__alia-ended__",
733
- node: /* @__PURE__ */ e(es, { note: T.note })
734
- }), b;
735
- }, [
736
- ee,
737
- B,
738
- y,
739
- l,
740
- N,
741
- t == null ? void 0 : t.src,
742
- g,
743
- F,
744
- r,
745
- k,
746
- T,
747
- h,
748
- A,
749
- R,
750
- E,
751
- _,
752
- Q,
753
- Y,
754
- V
755
- ]), je = n ? Math.min(
756
- 100,
757
- Math.max(0, n.current / Math.max(1, n.limit) * 100)
758
- ) : 0, z = n ? n.current >= n.limit : !1, se = n ? n.label ?? h("alia.usageLabel", {
759
- current: n.current,
760
- limit: n.limit
761
- }) : null, ae = s.length === 0 && !l && !j, ie = /* @__PURE__ */ c("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
762
- n ? /* @__PURE__ */ c("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
763
- /* @__PURE__ */ c("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
764
- /* @__PURE__ */ e(
765
- "span",
766
- {
767
- className: [
768
- "type-meta",
769
- z ? "ds:text-[color:var(--destructive)]" : "ds:text-[color:var(--muted-foreground)]"
770
- ].join(" "),
771
- "data-testid": "alia-usage-label",
772
- children: z ? h("alia.usageLimitReached") : se
773
- }
774
- ),
775
- z && m ? /* @__PURE__ */ e(S, { intent: "primary", size: "sm", onClick: m, children: h("alia.upgrade") }) : null
776
- ] }),
777
- /* @__PURE__ */ e(
778
- $e,
779
- {
780
- value: je,
781
- max: 100,
782
- size: "sm",
783
- ariaLabel: se ?? h("alia.usageLabel", {
784
- current: n.current,
785
- limit: n.limit
786
- }),
787
- className: z ? "ds:[&_[role=progressbar]>*]:bg-[color:var(--destructive)]" : void 0,
788
- "data-testid": "alia-usage-progress"
789
- }
790
- )
791
- ] }) : null,
792
- !ae && a && a.length > 0 && !l && !j ? /* @__PURE__ */ e(
793
- le,
794
- {
795
- label: h("alia.exampleQuestions"),
796
- "data-testid": "alia-followup-suggestions",
797
- children: a.map((f) => /* @__PURE__ */ e(
798
- oe,
799
- {
800
- intent: "followup",
801
- startIcon: f.icon,
802
- keepOnSelect: !0,
803
- onSelect: () => d == null ? void 0 : d(f),
804
- children: f.label
805
- },
806
- f.id
807
- ))
808
- }
809
- ) : null,
810
- H && H.length > 0 ? /* @__PURE__ */ e(
811
- cs,
812
- {
813
- attachments: H,
814
- onRemove: be
815
- }
816
- ) : null,
817
- /* @__PURE__ */ c("div", { className: "ds:flex ds:items-end ds:gap-[var(--spacing-sm)]", children: [
818
- /* @__PURE__ */ e("div", { className: "ds:flex-1 ds:min-w-0", children: /* @__PURE__ */ e(
819
- ne,
820
- {
821
- submitOnEnter: !0,
822
- onSubmit: P ? (f) => {
823
- i(f), q("");
824
- } : i,
825
- value: P ? ye : void 0,
826
- onChange: P ? (f) => q(f.target.value) : void 0,
827
- onAttach: ue,
828
- accept: fe,
829
- disabled: z || j,
830
- toolbar: P ? /* @__PURE__ */ e(
831
- ms,
832
- {
833
- lang: we.language,
834
- disabled: z || j,
835
- onTranscript: (f) => {
836
- W == null || W(f), q(
837
- (b) => b ? `${b} ${f}` : f
838
- );
839
- }
840
- }
841
- ) : void 0,
842
- "data-testid": "alia-composer"
843
- }
844
- ) }),
845
- l && p && !j ? /* @__PURE__ */ e(
846
- S,
847
- {
848
- intent: "outline",
849
- size: "sm",
850
- startIcon: /* @__PURE__ */ e(Fe, { "aria-hidden": "true" }),
851
- onClick: p,
852
- "aria-label": h("alia.stopGenerating"),
853
- children: h("alia.stopGenerating")
854
- }
855
- ) : null
856
- ] })
857
- ] });
858
- return /* @__PURE__ */ c(
859
- "div",
860
- {
861
- ref: Ne,
862
- className: [
863
- "ds:flex ds:min-h-0 ds:flex-1 ds:flex-col",
864
- "ds:bg-[var(--background)] ds:text-[color:var(--foreground)]"
865
- ].join(" "),
866
- "data-testid": "alia-surface",
867
- children: [
868
- ge ? null : /* @__PURE__ */ e(
869
- rs,
870
- {
871
- assistantName: N,
872
- avatarSrc: t == null ? void 0 : t.src,
873
- onNewConversation: pe,
874
- headerEndSlot: he,
875
- density: k
876
- }
877
- ),
878
- ae ? /* @__PURE__ */ c(de, { children: [
879
- /* @__PURE__ */ e(
880
- as,
881
- {
882
- assistantName: N,
883
- avatarSrc: t == null ? void 0 : t.src,
884
- greeting: Ce,
885
- subtitle: ke,
886
- suggestions: a,
887
- onSuggestion: d
888
- }
889
- ),
890
- /* @__PURE__ */ e(
891
- "div",
892
- {
893
- className: [
894
- // No top divider — the ChatInput's own soft shadow + the
895
- // border-radius give it enough visual containment, and a
896
- // surface-level separator here read as a sharp line at
897
- // 1px-equivalent shadow blur. Keep the bg explicit so
898
- // the chat-input chrome paints over the messages-area
899
- // background instead of mixing with it.
900
- "ds:shrink-0 ds:bg-[var(--background)]",
901
- "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
902
- "ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]"
903
- ].join(" "),
904
- children: ie
905
- }
906
- )
907
- ] }) : /* @__PURE__ */ e(
908
- Re,
909
- {
910
- messages: ze,
911
- density: k,
912
- composer: ie,
913
- showScrollToLatest: xe,
914
- className: "ds:flex-1 ds:min-h-0"
915
- }
916
- )
917
- ]
918
- }
919
- );
920
- }
921
- );
922
- D.displayName = "AliaChatSurface";
923
- const us = O(
924
- ({ headerSlot: s, ...i }, r) => /* @__PURE__ */ c(
925
- "div",
926
- {
927
- ref: r,
928
- className: [
929
- "ds:flex ds:min-h-0 ds:flex-1 ds:flex-col",
930
- "ds:bg-[var(--background)] ds:text-[color:var(--foreground)]",
931
- "ds:h-full ds:w-full"
932
- ].join(" "),
933
- "data-testid": "alia-embedded",
934
- children: [
935
- s ? /* @__PURE__ */ e(
936
- "div",
937
- {
938
- className: [
939
- "ds:shrink-0",
940
- "ds:ps-[var(--spacing-lg)] ds:pe-[var(--spacing-lg)]",
941
- "ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]"
942
- ].join(" "),
943
- children: s
944
- }
945
- ) : null,
946
- /* @__PURE__ */ e("div", { className: "ds:flex ds:min-h-0 ds:flex-1 ds:flex-col ds:items-stretch", children: /* @__PURE__ */ e(
947
- "div",
948
- {
949
- className: [
950
- "ds:flex ds:min-h-0 ds:w-full ds:flex-1 ds:flex-col",
951
- "ds:ms-auto ds:me-auto",
952
- "ds:[max-inline-size:48rem]",
953
- "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]"
954
- ].join(" "),
955
- children: /* @__PURE__ */ e(D, { ...i })
956
- }
957
- ) })
958
- ]
959
- }
960
- )
961
- );
962
- us.displayName = "AliaEmbedded";
963
- function fs(s) {
964
- return s > 99 ? "99+" : String(s);
965
- }
966
- const hs = O(
967
- ({
968
- open: s,
969
- onOpenChange: i,
970
- position: r = "bottom-end",
971
- unseenCount: d,
972
- assistantName: a,
973
- assistantAvatar: l,
974
- ...p
975
- }, n) => {
976
- const { t: m } = x("ui"), o = a || m("alia.name"), t = typeof d == "number" && d > 0, g = t ? m("alia.unseenCount", { count: d }) : m("alia.open"), v = /* @__PURE__ */ e(Te.Close, { asChild: !0, children: /* @__PURE__ */ e(
977
- w,
978
- {
979
- icon: /* @__PURE__ */ e(te, { "aria-hidden": "true" }),
980
- intent: "ghost",
981
- size: "sm",
982
- "aria-label": m("alia.close"),
983
- "data-testid": "alia-popout-close"
984
- }
985
- ) });
986
- return /* @__PURE__ */ c(Z.Root, { open: s, onOpenChange: i, children: [
987
- /* @__PURE__ */ e(
988
- "div",
989
- {
990
- ref: n,
991
- className: [
992
- "ds:fixed ds:z-[var(--z-fixed)]",
993
- "ds:bottom-[calc(var(--spacing-lg)+env(safe-area-inset-bottom,0px))]",
994
- r === "bottom-end" ? "ds:end-[var(--spacing-lg)]" : "ds:start-[var(--spacing-lg)]"
995
- ].join(" "),
996
- "data-testid": "alia-popout-fab-wrapper",
997
- children: /* @__PURE__ */ c("div", { className: "ds:relative", children: [
998
- /* @__PURE__ */ e(
999
- Ee,
1000
- {
1001
- icon: /* @__PURE__ */ e(_e, { "aria-hidden": "true" }),
1002
- "aria-label": g,
1003
- variant: "primary",
1004
- size: "md",
1005
- position: "static",
1006
- onClick: () => i(!0),
1007
- "data-testid": "alia-popout-fab"
1008
- }
1009
- ),
1010
- t ? /* @__PURE__ */ e(
1011
- "span",
1012
- {
1013
- "aria-hidden": "true",
1014
- "data-testid": "alia-popout-badge",
1015
- className: [
1016
- "ds:absolute ds:-top-[var(--spacing-xs)] ds:-end-[var(--spacing-xs)]",
1017
- "ds:inline-flex ds:items-center ds:justify-center",
1018
- "ds:min-w-[calc(var(--spacing-md)+var(--spacing-xs))]",
1019
- "ds:h-[calc(var(--spacing-md)+var(--spacing-xs))]",
1020
- "ds:ps-[calc(var(--spacing-xs)/1.5)] ds:pe-[calc(var(--spacing-xs)/1.5)]",
1021
- "ds:rounded-[var(--radius-full)]",
1022
- "ds:bg-[color:var(--destructive)] ds:text-[color:var(--destructive-foreground)]",
1023
- "ds:text-[length:var(--font-size-xs)] ds:font-semibold ds:leading-none",
1024
- "ds:pointer-events-none ds:select-none",
1025
- "ds:forced-colors:outline ds:forced-colors:outline-1 ds:forced-colors:outline-[CanvasText]"
1026
- ].join(" "),
1027
- children: fs(d)
1028
- }
1029
- ) : null
1030
- ] })
1031
- }
1032
- ),
1033
- /* @__PURE__ */ c(
1034
- Z.Content,
1035
- {
1036
- side: "end",
1037
- size: "md",
1038
- "aria-label": m("alia.panelLabel"),
1039
- className: "ds:flex ds:min-h-0 ds:flex-col ds:p-0",
1040
- "data-testid": "alia-popout-panel",
1041
- children: [
1042
- /* @__PURE__ */ e(Z.Title, { className: "ds:sr-only", children: o }),
1043
- /* @__PURE__ */ e(
1044
- D,
1045
- {
1046
- ...p,
1047
- assistantName: o,
1048
- assistantAvatar: l,
1049
- density: "compact",
1050
- headerEndSlot: v
1051
- }
1052
- )
1053
- ]
1054
- }
1055
- )
1056
- ] });
1057
- }
1058
- );
1059
- hs.displayName = "AliaPopout";
1060
- function gs(s) {
1061
- return s > 99 ? "99+" : String(s);
1062
- }
1063
- const vs = "ds:[inline-size:22rem]", bs = "ds:[inline-size:3rem]", xs = O(
1064
- ({
1065
- open: s,
1066
- onOpenChange: i,
1067
- side: r = "end",
1068
- unseenCount: d,
1069
- footerSlot: a,
1070
- assistantName: l,
1071
- assistantAvatar: p,
1072
- ...n
1073
- }, m) => {
1074
- const { t: o } = x("ui"), t = l || o("alia.name"), g = typeof d == "number" && d > 0, v = r === "end" ? "ds:shadow-[var(--shadow-chrome-start)]" : "ds:shadow-[var(--shadow-chrome-end)]", C = g ? o("alia.unseenCount", { count: d }) : o("alia.open");
1075
- if (!s)
1076
- return /* @__PURE__ */ e(
1077
- "aside",
1078
- {
1079
- ref: m,
1080
- "aria-label": o("alia.panelLabel"),
1081
- className: [
1082
- "ds:flex ds:shrink-0 ds:flex-col ds:items-center",
1083
- "ds:bg-[var(--background)]",
1084
- v,
1085
- "ds:pt-[var(--spacing-md)] ds:pb-[var(--spacing-md)]",
1086
- bs
1087
- ].join(" "),
1088
- "data-testid": "alia-sidebar-rail",
1089
- "data-alia-sidebar-state": "collapsed",
1090
- children: /* @__PURE__ */ c("div", { className: "ds:relative", children: [
1091
- /* @__PURE__ */ e(
1092
- w,
1093
- {
1094
- icon: /* @__PURE__ */ e(J, { "aria-hidden": "true" }),
1095
- "aria-label": C,
1096
- "aria-expanded": "false",
1097
- intent: "ghost",
1098
- size: "sm",
1099
- onClick: () => i(!0),
1100
- "data-testid": "alia-sidebar-rail-trigger"
1101
- }
1102
- ),
1103
- g ? /* @__PURE__ */ e(
1104
- "span",
1105
- {
1106
- "aria-hidden": "true",
1107
- "data-testid": "alia-sidebar-badge",
1108
- className: [
1109
- "ds:absolute ds:-top-[var(--spacing-xs)] ds:-end-[var(--spacing-xs)]",
1110
- "ds:inline-flex ds:items-center ds:justify-center",
1111
- "ds:min-w-[calc(var(--spacing-md)+var(--spacing-xs))]",
1112
- "ds:h-[calc(var(--spacing-md)+var(--spacing-xs))]",
1113
- "ds:ps-[calc(var(--spacing-xs)/1.5)] ds:pe-[calc(var(--spacing-xs)/1.5)]",
1114
- "ds:rounded-[var(--radius-full)]",
1115
- "ds:bg-[color:var(--destructive)] ds:text-[color:var(--destructive-foreground)]",
1116
- "ds:text-[length:var(--font-size-xs)] ds:font-semibold ds:leading-none",
1117
- "ds:pointer-events-none ds:select-none",
1118
- "ds:forced-colors:outline ds:forced-colors:outline-1 ds:forced-colors:outline-[CanvasText]"
1119
- ].join(" "),
1120
- children: gs(d)
1121
- }
1122
- ) : null
1123
- ] })
1124
- }
1125
- );
1126
- const k = /* @__PURE__ */ e(
1127
- w,
1128
- {
1129
- icon: r === "end" ? /* @__PURE__ */ e(Ge, {}) : /* @__PURE__ */ e(Je, {}),
1130
- intent: "ghost",
1131
- size: "sm",
1132
- "aria-label": o("alia.close"),
1133
- "aria-expanded": "true",
1134
- onClick: () => i(!1),
1135
- "data-testid": "alia-sidebar-collapse"
1136
- }
1137
- );
1138
- return /* @__PURE__ */ c(
1139
- "aside",
1140
- {
1141
- ref: m,
1142
- "aria-label": o("alia.panelLabel"),
1143
- className: [
1144
- "ds:flex ds:shrink-0 ds:flex-col ds:min-h-0",
1145
- "ds:bg-[var(--background)]",
1146
- v,
1147
- vs,
1148
- "ds:h-full"
1149
- ].join(" "),
1150
- "data-testid": "alia-sidebar",
1151
- "data-alia-sidebar-state": "expanded",
1152
- children: [
1153
- /* @__PURE__ */ e("div", { className: "ds:flex ds:min-h-0 ds:flex-1 ds:flex-col", children: /* @__PURE__ */ e(
1154
- D,
1155
- {
1156
- ...n,
1157
- assistantName: t,
1158
- assistantAvatar: p,
1159
- density: "compact",
1160
- headerEndSlot: k
1161
- }
1162
- ) }),
1163
- a ? /* @__PURE__ */ e(
1164
- "div",
1165
- {
1166
- "data-testid": "alia-sidebar-footer-slot",
1167
- className: "ds:shrink-0 ds:shadow-[var(--shadow-chrome-up)]",
1168
- children: a
1169
- }
1170
- ) : null
1171
- ]
1172
- }
1173
- );
1174
- }
1175
- );
1176
- xs.displayName = "AliaSidebar";
1177
- export {
1178
- D as A,
1179
- us as a,
1180
- hs as b,
1181
- xs as c
1182
- };
1183
- //# sourceMappingURL=alia-sidebar-DOei4Iyu.js.map