@alfadocs/ui-kit-debug 1.56.0 → 1.57.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.
- package/dist/_chunks/{ai-credits-notice-BoNJtOuE.js → ai-credits-notice-ktklr8fy.js} +2 -2
- package/dist/_chunks/{ai-credits-notice-BoNJtOuE.js.map → ai-credits-notice-ktklr8fy.js.map} +1 -1
- package/dist/_chunks/ai-permission-notice-DyuEGwAt.js +206 -0
- package/dist/_chunks/ai-permission-notice-DyuEGwAt.js.map +1 -0
- package/dist/_chunks/alia-sidebar-BBKBJCv6.js +1284 -0
- package/dist/_chunks/alia-sidebar-BBKBJCv6.js.map +1 -0
- package/dist/_chunks/{anamnesis-summary-rows-CQ-XGr0T.js → anamnesis-summary-rows-CCQ62mMN.js} +4 -4
- package/dist/_chunks/{anamnesis-summary-rows-CQ-XGr0T.js.map → anamnesis-summary-rows-CCQ62mMN.js.map} +1 -1
- package/dist/_chunks/{appointment-peek-BIZaDeCi.js → appointment-peek-WvNbE4JG.js} +2 -2
- package/dist/_chunks/{appointment-peek-BIZaDeCi.js.map → appointment-peek-WvNbE4JG.js.map} +1 -1
- package/dist/_chunks/{appointment-timeline-DmqYEIT9.js → appointment-timeline-Z0494xO-.js} +2 -2
- package/dist/_chunks/{appointment-timeline-DmqYEIT9.js.map → appointment-timeline-Z0494xO-.js.map} +1 -1
- package/dist/_chunks/{balance-badge-cell-DmDcXw0c.js → balance-badge-cell-CII3SDmR.js} +3 -3
- package/dist/_chunks/{balance-badge-cell-DmDcXw0c.js.map → balance-badge-cell-CII3SDmR.js.map} +1 -1
- package/dist/_chunks/{booking-WyNGKPE2.js → booking-81WnKDsH.js} +3 -3
- package/dist/_chunks/{booking-WyNGKPE2.js.map → booking-81WnKDsH.js.map} +1 -1
- package/dist/_chunks/{calculator-dialog-pCPWta7h.js → calculator-dialog-CzQv03p0.js} +2 -2
- package/dist/_chunks/{calculator-dialog-pCPWta7h.js.map → calculator-dialog-CzQv03p0.js.map} +1 -1
- package/dist/_chunks/{calendar-workspace-Du2ryaI-.js → calendar-workspace-D5-k_9zE.js} +13 -13
- package/dist/_chunks/{calendar-workspace-Du2ryaI-.js.map → calendar-workspace-D5-k_9zE.js.map} +1 -1
- package/dist/_chunks/{care-plan-card-Ddjh5Doc.js → care-plan-card-DxrRLRdW.js} +2 -2
- package/dist/_chunks/{care-plan-card-Ddjh5Doc.js.map → care-plan-card-DxrRLRdW.js.map} +1 -1
- package/dist/_chunks/{care-plan-header-DUX_SVvF.js → care-plan-header-BMwZIgHJ.js} +2 -2
- package/dist/_chunks/{care-plan-header-DUX_SVvF.js.map → care-plan-header-BMwZIgHJ.js.map} +1 -1
- package/dist/_chunks/{chart-HsF1KHbx.js → chart-DQ5GxqgT.js} +347 -350
- package/dist/_chunks/chart-DQ5GxqgT.js.map +1 -0
- package/dist/_chunks/{clinical-note-card-14JIoUR0.js → clinical-note-card-hx939bvw.js} +2 -2
- package/dist/_chunks/{clinical-note-card-14JIoUR0.js.map → clinical-note-card-hx939bvw.js.map} +1 -1
- package/dist/_chunks/{color-picker-BRQ4Y9SO.js → color-picker-BsggJovx.js} +128 -123
- package/dist/_chunks/color-picker-BsggJovx.js.map +1 -0
- package/dist/_chunks/{contact-card-CmK05vNb.js → contact-card-fHBMwEsx.js} +2 -2
- package/dist/_chunks/{contact-card-CmK05vNb.js.map → contact-card-fHBMwEsx.js.map} +1 -1
- package/dist/_chunks/{contact-profile-card-Ci8lBQ6a.js → contact-profile-card-CMyBYgRR.js} +2 -2
- package/dist/_chunks/{contact-profile-card-Ci8lBQ6a.js.map → contact-profile-card-CMyBYgRR.js.map} +1 -1
- package/dist/_chunks/{cycle-calculator-Dgfqr4Q4.js → cycle-calculator-Cww9DzIa.js} +2 -2
- package/dist/_chunks/{cycle-calculator-Dgfqr4Q4.js.map → cycle-calculator-Cww9DzIa.js.map} +1 -1
- package/dist/_chunks/{data-table-D8fuhqO1.js → data-table-fAMTeAjM.js} +2 -2
- package/dist/_chunks/{data-table-D8fuhqO1.js.map → data-table-fAMTeAjM.js.map} +1 -1
- package/dist/_chunks/{data-table-tabs-Xhg5G0gU.js → data-table-tabs-CHYAAeHy.js} +2 -2
- package/dist/_chunks/{data-table-tabs-Xhg5G0gU.js.map → data-table-tabs-CHYAAeHy.js.map} +1 -1
- package/dist/_chunks/{date-picker-wRAcq2lt.js → date-picker-BSZuKo13.js} +69 -62
- package/dist/_chunks/date-picker-BSZuKo13.js.map +1 -0
- package/dist/_chunks/{date-range-picker-CtUOI38x.js → date-range-picker-CFk-5O3R.js} +176 -171
- package/dist/_chunks/date-range-picker-CFk-5O3R.js.map +1 -0
- package/dist/_chunks/{date-time-picker-CLeLKuv9.js → date-time-picker-CjxTkblD.js} +92 -85
- package/dist/_chunks/date-time-picker-CjxTkblD.js.map +1 -0
- package/dist/_chunks/{dialog-CUzbnKLw.js → dialog-Dn-iQ0Jp.js} +2 -2
- package/dist/_chunks/{dialog-CUzbnKLw.js.map → dialog-Dn-iQ0Jp.js.map} +1 -1
- package/dist/_chunks/{document-preview-uoTekVR7.js → document-preview-CHGGG0l_.js} +2 -2
- package/dist/_chunks/{document-preview-uoTekVR7.js.map → document-preview-CHGGG0l_.js.map} +1 -1
- package/dist/_chunks/{due-date-calculator-CSjklbyw.js → due-date-calculator-D_qFUiHp.js} +2 -2
- package/dist/_chunks/{due-date-calculator-CSjklbyw.js.map → due-date-calculator-D_qFUiHp.js.map} +1 -1
- package/dist/_chunks/{entity-summary-DcB0fIiv.js → entity-summary-CWcCSThK.js} +2 -2
- package/dist/_chunks/{entity-summary-DcB0fIiv.js.map → entity-summary-CWcCSThK.js.map} +1 -1
- package/dist/_chunks/{file-manager-Cc_uO8r2.js → file-manager-CFsL1KVt.js} +3 -3
- package/dist/_chunks/{file-manager-Cc_uO8r2.js.map → file-manager-CFsL1KVt.js.map} +1 -1
- package/dist/_chunks/{gestational-age-calculator-DqVeJke2.js → gestational-age-calculator-CZi43xKG.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-DqVeJke2.js.map → gestational-age-calculator-CZi43xKG.js.map} +1 -1
- package/dist/_chunks/{hcg-doubling-BIYyI2Yo.js → hcg-doubling-Ccvh7OaU.js} +2 -2
- package/dist/_chunks/{hcg-doubling-BIYyI2Yo.js.map → hcg-doubling-Ccvh7OaU.js.map} +1 -1
- package/dist/_chunks/{header-settings-ge_3gYEq.js → header-settings-BMcCx2LC.js} +2 -2
- package/dist/_chunks/{header-settings-ge_3gYEq.js.map → header-settings-BMcCx2LC.js.map} +1 -1
- package/dist/_chunks/{heatmap-Gf9r7Tn1.js → heatmap-BEeOThkW.js} +2 -2
- package/dist/_chunks/{heatmap-Gf9r7Tn1.js.map → heatmap-BEeOThkW.js.map} +1 -1
- package/dist/_chunks/{help-me-write-templates-fV-Apf72.js → help-me-write-templates-BUoYGo6f.js} +2 -2
- package/dist/_chunks/{help-me-write-templates-fV-Apf72.js.map → help-me-write-templates-BUoYGo6f.js.map} +1 -1
- package/dist/_chunks/{hover-card-BnTueNS2.js → hover-card-U_ZYoh1n.js} +201 -187
- package/dist/_chunks/hover-card-U_ZYoh1n.js.map +1 -0
- package/dist/_chunks/{icon-picker-DWrqmI1c.js → icon-picker-C86lQTIA.js} +2 -2
- package/dist/_chunks/{icon-picker-DWrqmI1c.js.map → icon-picker-C86lQTIA.js.map} +1 -1
- package/dist/_chunks/{info-tip-B0jmIt6M.js → info-tip-CJpNpzZe.js} +2 -2
- package/dist/_chunks/{info-tip-B0jmIt6M.js.map → info-tip-CJpNpzZe.js.map} +1 -1
- package/dist/_chunks/{kit-extensions-Byfxy6sy.js → kit-extensions-DYVxWcqv.js} +4 -4
- package/dist/_chunks/{kit-extensions-Byfxy6sy.js.map → kit-extensions-DYVxWcqv.js.map} +1 -1
- package/dist/_chunks/{link-cell-renderer-TeJNvymP.js → link-cell-renderer-CxW_oLa5.js} +2 -2
- package/dist/_chunks/{link-cell-renderer-TeJNvymP.js.map → link-cell-renderer-CxW_oLa5.js.map} +1 -1
- package/dist/_chunks/link-gRw3NtOt.js +137 -0
- package/dist/_chunks/link-gRw3NtOt.js.map +1 -0
- package/dist/_chunks/{locale-picker-DfNSdOpy.js → locale-picker-BGfrZyTw.js} +2 -2
- package/dist/_chunks/{locale-picker-DfNSdOpy.js.map → locale-picker-BGfrZyTw.js.map} +1 -1
- package/dist/_chunks/{marketplace-app-shell-Dcx-JEjg.js → marketplace-app-shell-BZcA9Z06.js} +143 -129
- package/dist/_chunks/marketplace-app-shell-BZcA9Z06.js.map +1 -0
- package/dist/_chunks/{message-tray-BB95DA82.js → message-tray-QKQutwxj.js} +76 -69
- package/dist/_chunks/message-tray-QKQutwxj.js.map +1 -0
- package/dist/_chunks/{nav-grid-BqCPH8sm.js → nav-grid-Byx8PxuB.js} +2 -2
- package/dist/_chunks/{nav-grid-BqCPH8sm.js.map → nav-grid-Byx8PxuB.js.map} +1 -1
- package/dist/_chunks/non-modal-tab-exit-j3CPOuE3.js +89 -0
- package/dist/_chunks/non-modal-tab-exit-j3CPOuE3.js.map +1 -0
- package/dist/_chunks/{note-attachment-I1NLoeRZ.js → note-attachment-Bt2cddsZ.js} +2 -2
- package/dist/_chunks/{note-attachment-I1NLoeRZ.js.map → note-attachment-Bt2cddsZ.js.map} +1 -1
- package/dist/_chunks/{note-timeline-CsY8YOE7.js → note-timeline-CX9nAgAR.js} +2 -2
- package/dist/_chunks/{note-timeline-CsY8YOE7.js.map → note-timeline-CX9nAgAR.js.map} +1 -1
- package/dist/_chunks/{notes-panel-DceRhthG.js → notes-panel-Cm4pttpl.js} +4 -4
- package/dist/_chunks/{notes-panel-DceRhthG.js.map → notes-panel-Cm4pttpl.js.map} +1 -1
- package/dist/_chunks/{notification-tray-__sJXnsz.js → notification-tray-C5VtbGjd.js} +83 -76
- package/dist/_chunks/notification-tray-C5VtbGjd.js.map +1 -0
- package/dist/_chunks/{patient-details-DsTtjpuX.js → patient-details-99kEdtc5.js} +2 -2
- package/dist/_chunks/{patient-details-DsTtjpuX.js.map → patient-details-99kEdtc5.js.map} +1 -1
- package/dist/_chunks/{patient-field-row-BvZ9luz-.js → patient-field-row-DkxY13T6.js} +5 -5
- package/dist/_chunks/{patient-field-row-BvZ9luz-.js.map → patient-field-row-DkxY13T6.js.map} +1 -1
- package/dist/_chunks/{patient-summary-card-9nQWTQf6.js → patient-summary-card-opdyfeW2.js} +4 -4
- package/dist/_chunks/{patient-summary-card-9nQWTQf6.js.map → patient-summary-card-opdyfeW2.js.map} +1 -1
- package/dist/_chunks/{payment-request-card-CwDpwXUC.js → payment-request-card-DAniJNLX.js} +2 -2
- package/dist/_chunks/{payment-request-card-CwDpwXUC.js.map → payment-request-card-DAniJNLX.js.map} +1 -1
- package/dist/_chunks/{pdf-viewer-C3minW5b.js → pdf-viewer-CNQxa4tv.js} +396 -391
- package/dist/_chunks/pdf-viewer-CNQxa4tv.js.map +1 -0
- package/dist/_chunks/{phone-input-DxkHMYmu.js → phone-input-O9camxkq.js} +156 -151
- package/dist/_chunks/phone-input-O9camxkq.js.map +1 -0
- package/dist/_chunks/popover-BG75rYjN.js +367 -0
- package/dist/_chunks/popover-BG75rYjN.js.map +1 -0
- package/dist/_chunks/{practice-results-Dhbo-fc_.js → practice-results-CfRkjzsI.js} +2 -2
- package/dist/_chunks/{practice-results-Dhbo-fc_.js.map → practice-results-CfRkjzsI.js.map} +1 -1
- package/dist/_chunks/{pregnancy-dating-Bfu0Cq4H.js → pregnancy-dating-BFzv9g1N.js} +2 -2
- package/dist/_chunks/{pregnancy-dating-Bfu0Cq4H.js.map → pregnancy-dating-BFzv9g1N.js.map} +1 -1
- package/dist/_chunks/{product-hub-panel-BSSiGGG4.js → product-hub-panel-DlVRK7Ue.js} +103 -96
- package/dist/_chunks/product-hub-panel-DlVRK7Ue.js.map +1 -0
- package/dist/_chunks/{public-footer-CxpG6J1M.js → public-footer-ZWTEG1Rq.js} +2 -2
- package/dist/_chunks/{public-footer-CxpG6J1M.js.map → public-footer-ZWTEG1Rq.js.map} +1 -1
- package/dist/_chunks/{public-header.agent-pr2hyiND.js → public-header.agent-BctevbuY.js} +2 -2
- package/dist/_chunks/{public-header.agent-pr2hyiND.js.map → public-header.agent-BctevbuY.js.map} +1 -1
- package/dist/_chunks/{radiograph-panel.agent-DkUokbEa.js → radiograph-panel.agent-DyqbTECc.js} +4 -4
- package/dist/_chunks/{radiograph-panel.agent-DkUokbEa.js.map → radiograph-panel.agent-DyqbTECc.js.map} +1 -1
- package/dist/_chunks/{registration-form-D7iNqMBF.js → registration-form-BlTzYywa.js} +2 -2
- package/dist/_chunks/{registration-form-D7iNqMBF.js.map → registration-form-BlTzYywa.js.map} +1 -1
- package/dist/_chunks/{rich-text-editor-CkFfmA3v.js → rich-text-editor-DTnNZ4Ff.js} +489 -484
- package/dist/_chunks/rich-text-editor-DTnNZ4Ff.js.map +1 -0
- package/dist/_chunks/{sheet-C7SwIxwB.js → sheet-8qsiMoUI.js} +2 -2
- package/dist/_chunks/{sheet-C7SwIxwB.js.map → sheet-8qsiMoUI.js.map} +1 -1
- package/dist/_chunks/{sign-document-B6HlyCGV.js → sign-document-D4iHS_Ug.js} +2 -2
- package/dist/_chunks/{sign-document-B6HlyCGV.js.map → sign-document-D4iHS_Ug.js.map} +1 -1
- package/dist/_chunks/{signature-request-DhbpB9N9.js → signature-request-DRuYAG5I.js} +2 -2
- package/dist/_chunks/{signature-request-DhbpB9N9.js.map → signature-request-DRuYAG5I.js.map} +1 -1
- package/dist/_chunks/{signed-out-frame-B2GTIeqA.js → signed-out-frame-AhMsNW1r.js} +2 -2
- package/dist/_chunks/{signed-out-frame-B2GTIeqA.js.map → signed-out-frame-AhMsNW1r.js.map} +1 -1
- package/dist/_chunks/{task-editor-ByyRu29Y.js → task-editor-NkcopDna.js} +3 -3
- package/dist/_chunks/{task-editor-ByyRu29Y.js.map → task-editor-NkcopDna.js.map} +1 -1
- package/dist/_chunks/{use-appointment-details-read-JsDM48tf.js → use-appointment-details-read-CfFQNOF_.js} +5 -5
- package/dist/_chunks/{use-appointment-details-read-JsDM48tf.js.map → use-appointment-details-read-CfFQNOF_.js.map} +1 -1
- package/dist/_chunks/{voice-control-panel-Bg1eklL0.js → voice-control-panel-BKbgb7FM.js} +2 -2
- package/dist/_chunks/{voice-control-panel-Bg1eklL0.js.map → voice-control-panel-BKbgb7FM.js.map} +1 -1
- package/dist/_chunks/{widget-picker-DXYBMTfe.js → widget-picker-rBA7MR5P.js} +2 -2
- package/dist/_chunks/{widget-picker-DXYBMTfe.js.map → widget-picker-rBA7MR5P.js.map} +1 -1
- package/dist/agent-catalog.json +2 -2
- package/dist/components/_shared/non-modal-tab-exit.d.ts +15 -4
- package/dist/components/_shared/non-modal-tab-exit.d.ts.map +1 -1
- package/dist/components/ai-credits-notice/index.js +1 -1
- package/dist/components/ai-permission-notice/ai-permission-notice.d.ts +32 -0
- package/dist/components/ai-permission-notice/ai-permission-notice.d.ts.map +1 -1
- package/dist/components/ai-permission-notice/index.d.ts +1 -1
- package/dist/components/ai-permission-notice/index.d.ts.map +1 -1
- package/dist/components/ai-permission-notice/index.js +1 -1
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-header/index.js +1 -1
- package/dist/components/chart/chart.d.ts +5 -5
- package/dist/components/chart/chart.d.ts.map +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/color-picker/color-picker.d.ts.map +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/contact-card/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/data-table-tabs/index.js +1 -1
- package/dist/components/date-picker/date-picker.d.ts.map +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/date-range-picker.d.ts.map +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/date-time-picker.d.ts.map +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/hover-card/hover-card.d.ts.map +1 -1
- package/dist/components/hover-card/index.js +1 -1
- package/dist/components/icon-picker/index.js +1 -1
- package/dist/components/info-tip/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/link/link.d.ts +5 -3
- package/dist/components/link/link.d.ts.map +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/message-tray/message-tray.d.ts.map +1 -1
- package/dist/components/nav-grid/index.js +1 -1
- package/dist/components/note-timeline/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/notification-tray/notification-tray.d.ts.map +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/pdf-viewer/pdf-viewer.d.ts.map +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/phone-input/phone-input.d.ts.map +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/popover.d.ts +1 -1
- package/dist/components/popover/popover.d.ts.map +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/product-hub-tray/product-hub-tray.d.ts.map +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/rich-text-editor/editor-toolbar.d.ts.map +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/components/widget-picker/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +14 -0
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +15 -1
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +14 -0
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +15 -1
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +14 -0
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/el.js +15 -1
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +14 -0
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +15 -1
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +14 -0
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +15 -1
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +14 -0
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +15 -1
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +14 -0
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +15 -1
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +14 -0
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +15 -1
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +14 -0
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +15 -1
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +14 -0
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +15 -1
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +14 -0
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +15 -1
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +14 -0
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +15 -1
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +14 -0
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ro.js +15 -1
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +14 -0
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +15 -1
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +14 -0
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sq.js +15 -1
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +14 -0
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/sv.js +15 -1
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +14 -0
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +15 -1
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +14 -0
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/locales/zh.js +15 -1
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +194 -193
- package/dist/locales/ar.json +15 -1
- package/dist/locales/de.json +15 -1
- package/dist/locales/el.json +15 -1
- package/dist/locales/en.json +15 -1
- package/dist/locales/es.json +15 -1
- package/dist/locales/fr.json +15 -1
- package/dist/locales/hi.json +15 -1
- package/dist/locales/it.json +15 -1
- package/dist/locales/ja.json +15 -1
- package/dist/locales/nl.json +15 -1
- package/dist/locales/pl.json +15 -1
- package/dist/locales/pt.json +15 -1
- package/dist/locales/ro.json +15 -1
- package/dist/locales/ru.json +15 -1
- package/dist/locales/sq.json +15 -1
- package/dist/locales/sv.json +15 -1
- package/dist/locales/tr.json +15 -1
- package/dist/locales/zh.json +15 -1
- package/dist/patterns/alia-assistant/alia-asteroid-icon.d.ts +10 -13
- package/dist/patterns/alia-assistant/alia-asteroid-icon.d.ts.map +1 -1
- package/dist/patterns/alia-assistant/alia-chat-surface.d.ts.map +1 -1
- package/dist/patterns/alia-assistant/alia-popout.d.ts +5 -3
- package/dist/patterns/alia-assistant/alia-popout.d.ts.map +1 -1
- package/dist/patterns/alia-assistant/index.d.ts +2 -0
- package/dist/patterns/alia-assistant/index.d.ts.map +1 -1
- package/dist/patterns/alia-assistant/index.js +6 -5
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/help-me-write-templates/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +7 -2
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts.map +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/signed-out-frame/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/ai-permission-notice-5vpblPCx.js +0 -171
- package/dist/_chunks/ai-permission-notice-5vpblPCx.js.map +0 -1
- package/dist/_chunks/alia-sidebar-DOei4Iyu.js +0 -1183
- package/dist/_chunks/alia-sidebar-DOei4Iyu.js.map +0 -1
- package/dist/_chunks/chart-HsF1KHbx.js.map +0 -1
- package/dist/_chunks/color-picker-BRQ4Y9SO.js.map +0 -1
- package/dist/_chunks/date-picker-wRAcq2lt.js.map +0 -1
- package/dist/_chunks/date-range-picker-CtUOI38x.js.map +0 -1
- package/dist/_chunks/date-time-picker-CLeLKuv9.js.map +0 -1
- package/dist/_chunks/hover-card-BnTueNS2.js.map +0 -1
- package/dist/_chunks/link-2HokYuIi.js +0 -130
- package/dist/_chunks/link-2HokYuIi.js.map +0 -1
- package/dist/_chunks/marketplace-app-shell-Dcx-JEjg.js.map +0 -1
- package/dist/_chunks/message-tray-BB95DA82.js.map +0 -1
- package/dist/_chunks/non-modal-tab-exit-D2Bd93Bq.js +0 -65
- package/dist/_chunks/non-modal-tab-exit-D2Bd93Bq.js.map +0 -1
- package/dist/_chunks/notification-tray-__sJXnsz.js.map +0 -1
- package/dist/_chunks/pdf-viewer-C3minW5b.js.map +0 -1
- package/dist/_chunks/phone-input-DxkHMYmu.js.map +0 -1
- package/dist/_chunks/popover-BI3oV3eY.js +0 -305
- package/dist/_chunks/popover-BI3oV3eY.js.map +0 -1
- package/dist/_chunks/product-hub-panel-BSSiGGG4.js.map +0 -1
- package/dist/_chunks/rich-text-editor-CkFfmA3v.js.map +0 -1
|
@@ -0,0 +1,1284 @@
|
|
|
1
|
+
import { jsxs as p, jsx as e, Fragment as be } from "react/jsx-runtime";
|
|
2
|
+
import { useId as He, forwardRef as G, useState as R, useRef as j, useCallback as L, useEffect as ne, useMemo as de } from "react";
|
|
3
|
+
import * as Xe from "@radix-ui/react-dialog";
|
|
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-COX76Jdj.js";
|
|
7
|
+
import { S as X } from "./sheet-8qsiMoUI.js";
|
|
8
|
+
import { X as xe } from "./x-B5YnXwCz.js";
|
|
9
|
+
import { A as Qe } from "./astroid-BN4f5VXU.js";
|
|
10
|
+
import { A as Q } from "./avatar-WZY3eGE7.js";
|
|
11
|
+
import { B as _ } from "./button-Bn16lcFM.js";
|
|
12
|
+
import { C as Ke } from "./chat-container-baxzy8k8.js";
|
|
13
|
+
import { C as Me } from "./chat-message-CmGUcajG.js";
|
|
14
|
+
import { C as we, P as Ze } from "./chat-input-PtrSu1ZC.js";
|
|
15
|
+
import { S as Je } from "./streaming-text-BKZmbW1Q.js";
|
|
16
|
+
import { a as Ne, S as ye } from "./suggestion-chip-BNRWZL51.js";
|
|
17
|
+
import { T as Ye } 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 is } from "./download-CfYKJO_j.js";
|
|
25
|
+
import { R as rs } 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: i,
|
|
51
|
+
variant: t = "gradient"
|
|
52
|
+
}) {
|
|
53
|
+
const a = `alia-asteroid-gradient-${He().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: i,
|
|
60
|
+
height: i,
|
|
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 Ce = {
|
|
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: i,
|
|
111
|
+
appearance: t = "sparkle",
|
|
112
|
+
loading: d = !1
|
|
113
|
+
}) {
|
|
114
|
+
const a = Ce[s];
|
|
115
|
+
return t === "spinner" ? /* @__PURE__ */ e(
|
|
116
|
+
"span",
|
|
117
|
+
{
|
|
118
|
+
role: "img",
|
|
119
|
+
"aria-label": i,
|
|
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": i,
|
|
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: i
|
|
165
|
+
}) {
|
|
166
|
+
const t = Ce[s];
|
|
167
|
+
return /* @__PURE__ */ e(
|
|
168
|
+
"span",
|
|
169
|
+
{
|
|
170
|
+
role: "img",
|
|
171
|
+
"aria-label": i,
|
|
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 ke = [
|
|
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: i
|
|
193
|
+
}) {
|
|
194
|
+
return /* @__PURE__ */ p(
|
|
195
|
+
"div",
|
|
196
|
+
{
|
|
197
|
+
ref: i,
|
|
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
|
+
ke
|
|
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, i) {
|
|
220
|
+
return s ? s.slot ? { slot: s.slot } : { name: s.name, src: s.src } : { slot: /* @__PURE__ */ e(ps, { size: "sm", label: i }) };
|
|
221
|
+
}
|
|
222
|
+
function te(s, i) {
|
|
223
|
+
const t = s.activeElement;
|
|
224
|
+
return !t || t === s.body || t === s.documentElement ? !0 : i != null && t !== i && t.contains(i);
|
|
225
|
+
}
|
|
226
|
+
function hs({
|
|
227
|
+
assistantName: s,
|
|
228
|
+
avatarSrc: i,
|
|
229
|
+
greeting: t,
|
|
230
|
+
subtitle: d,
|
|
231
|
+
suggestions: a,
|
|
232
|
+
onSuggestion: u,
|
|
233
|
+
onChipClick: f
|
|
234
|
+
}) {
|
|
235
|
+
const { t: c } = 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
|
+
i ? /* @__PURE__ */ e(Q, { name: s, src: i, 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: c("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: () => u == null ? void 0 : u(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: i,
|
|
294
|
+
avatarSrc: t,
|
|
295
|
+
renderMarkdown: d
|
|
296
|
+
}) {
|
|
297
|
+
const { t: a, i18n: u } = x("ui"), f = a("chat.message.role.assistant"), c = de(() => {
|
|
298
|
+
if (!s.timestamp) return null;
|
|
299
|
+
const l = s.timestamp instanceof Date ? s.timestamp : new Date(s.timestamp);
|
|
300
|
+
return Number.isNaN(l.getTime()) ? null : new Intl.DateTimeFormat(u.language, {
|
|
301
|
+
hour: "2-digit",
|
|
302
|
+
minute: "2-digit"
|
|
303
|
+
}).format(l);
|
|
304
|
+
}, [s.timestamp, u.language]), g = c ? a("chat.message.label", { role: f, time: c }) : a("chat.message.labelNoTime", { role: f });
|
|
305
|
+
return /* @__PURE__ */ p(
|
|
306
|
+
"article",
|
|
307
|
+
{
|
|
308
|
+
"aria-label": g,
|
|
309
|
+
className: "ds:flex ds:w-full ds:items-start ds:flex-row ds:gap-[var(--spacing-sm)]",
|
|
310
|
+
children: [
|
|
311
|
+
t ? /* @__PURE__ */ e(Q, { name: i, src: t, size: "sm" }) : /* @__PURE__ */ e(
|
|
312
|
+
U,
|
|
313
|
+
{
|
|
314
|
+
size: "sm",
|
|
315
|
+
label: i,
|
|
316
|
+
appearance: "spinner",
|
|
317
|
+
loading: !0
|
|
318
|
+
}
|
|
319
|
+
),
|
|
320
|
+
/* @__PURE__ */ e("div", { className: "ds:flex ds:flex-col ds:items-start", children: /* @__PURE__ */ e(
|
|
321
|
+
"div",
|
|
322
|
+
{
|
|
323
|
+
dir: "auto",
|
|
324
|
+
className: [
|
|
325
|
+
"ds:relative ds:max-w-[min(42rem,90%)]",
|
|
326
|
+
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
327
|
+
"ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]",
|
|
328
|
+
"type-body",
|
|
329
|
+
"ds:break-words",
|
|
330
|
+
"ds:bg-muted/40 ds:text-foreground",
|
|
331
|
+
"ds:rounded-[var(--radius-md)] ds:rounded-es-[var(--radius-sm)]"
|
|
332
|
+
].join(" "),
|
|
333
|
+
children: /* @__PURE__ */ e(
|
|
334
|
+
Je,
|
|
335
|
+
{
|
|
336
|
+
content: s.content,
|
|
337
|
+
isStreaming: !0,
|
|
338
|
+
renderMarkdown: d
|
|
339
|
+
}
|
|
340
|
+
)
|
|
341
|
+
}
|
|
342
|
+
) })
|
|
343
|
+
]
|
|
344
|
+
}
|
|
345
|
+
);
|
|
346
|
+
}
|
|
347
|
+
function bs({
|
|
348
|
+
assistantName: s,
|
|
349
|
+
avatarSrc: i,
|
|
350
|
+
onNewConversation: t,
|
|
351
|
+
headerEndSlot: d,
|
|
352
|
+
density: a
|
|
353
|
+
}) {
|
|
354
|
+
const { t: u } = x("ui");
|
|
355
|
+
return /* @__PURE__ */ p(
|
|
356
|
+
"header",
|
|
357
|
+
{
|
|
358
|
+
"aria-label": u("alia.headerLabel"),
|
|
359
|
+
className: [
|
|
360
|
+
"ds:flex ds:shrink-0 ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
361
|
+
// Soft drop-shadow on the block-end edge in place of a `border-b`
|
|
362
|
+
// against `--border` — same rationale as the Alia sidebar's inline
|
|
363
|
+
// edge (see alia-sidebar.tsx).
|
|
364
|
+
"ds:shadow-[var(--shadow-chrome-down)]",
|
|
365
|
+
"ds:bg-[var(--background)]",
|
|
366
|
+
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
367
|
+
a === "compact" ? "ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]" : "ds:pt-[var(--spacing-md)] ds:pb-[var(--spacing-md)]"
|
|
368
|
+
].join(" "),
|
|
369
|
+
"data-testid": "alia-header",
|
|
370
|
+
children: [
|
|
371
|
+
i ? /* @__PURE__ */ e(
|
|
372
|
+
Q,
|
|
373
|
+
{
|
|
374
|
+
name: s,
|
|
375
|
+
src: i,
|
|
376
|
+
size: a === "compact" ? "sm" : "md"
|
|
377
|
+
}
|
|
378
|
+
) : /* @__PURE__ */ e(
|
|
379
|
+
U,
|
|
380
|
+
{
|
|
381
|
+
size: a === "compact" ? "sm" : "md",
|
|
382
|
+
label: s,
|
|
383
|
+
appearance: "spinner"
|
|
384
|
+
}
|
|
385
|
+
),
|
|
386
|
+
/* @__PURE__ */ e("span", { className: "type-title-item ds:text-[color:var(--foreground)]", children: s }),
|
|
387
|
+
/* @__PURE__ */ p("div", { className: "ds:ms-auto ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
388
|
+
t ? /* @__PURE__ */ e(
|
|
389
|
+
_,
|
|
390
|
+
{
|
|
391
|
+
intent: "ghost",
|
|
392
|
+
size: "sm",
|
|
393
|
+
startIcon: /* @__PURE__ */ e(ds, { "aria-hidden": "true" }),
|
|
394
|
+
onClick: t,
|
|
395
|
+
children: u("alia.newConversation")
|
|
396
|
+
}
|
|
397
|
+
) : null,
|
|
398
|
+
d
|
|
399
|
+
] })
|
|
400
|
+
]
|
|
401
|
+
}
|
|
402
|
+
);
|
|
403
|
+
}
|
|
404
|
+
function xs(s) {
|
|
405
|
+
var i;
|
|
406
|
+
return typeof navigator > "u" || typeof ((i = navigator.clipboard) == null ? void 0 : i.writeText) != "function" ? Promise.resolve(!1) : navigator.clipboard.writeText(s).then(() => !0).catch(() => !1);
|
|
407
|
+
}
|
|
408
|
+
function ws(s, i) {
|
|
409
|
+
if (typeof window > "u" || typeof URL > "u" || typeof URL.createObjectURL != "function")
|
|
410
|
+
return;
|
|
411
|
+
const t = new Blob([s], { type: "text/markdown;charset=utf-8" }), d = URL.createObjectURL(t), a = document.createElement("a");
|
|
412
|
+
a.href = d, a.download = i, document.body.appendChild(a), a.click(), a.remove(), URL.revokeObjectURL(d);
|
|
413
|
+
}
|
|
414
|
+
function Ns(s) {
|
|
415
|
+
const i = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
|
|
416
|
+
return `${s.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "") || "assistant"}-prompt-${i}.md`;
|
|
417
|
+
}
|
|
418
|
+
const ys = () => {
|
|
419
|
+
var s;
|
|
420
|
+
return typeof navigator < "u" && typeof ((s = navigator.clipboard) == null ? void 0 : s.writeText) == "function";
|
|
421
|
+
};
|
|
422
|
+
function Cs({
|
|
423
|
+
message: s,
|
|
424
|
+
actions: i,
|
|
425
|
+
assistantName: t,
|
|
426
|
+
canRegenerate: d,
|
|
427
|
+
onCopyMessage: a,
|
|
428
|
+
onDownloadMessage: u,
|
|
429
|
+
onRegenerate: f
|
|
430
|
+
}) {
|
|
431
|
+
const { t: c } = x("ui"), [g, l] = R(!1), n = L(() => {
|
|
432
|
+
xs(s.content).then((b) => {
|
|
433
|
+
b && (l(!0), setTimeout(() => l(!1), 2e3), a == null || a(s.id));
|
|
434
|
+
});
|
|
435
|
+
}, [s.content, s.id, a]), v = L(() => {
|
|
436
|
+
ws(s.content, Ns(t)), u == null || u(s.id);
|
|
437
|
+
}, [s.content, s.id, t, u]);
|
|
438
|
+
return /* @__PURE__ */ p(be, { children: [
|
|
439
|
+
i.includes("copy") && ys() ? /* @__PURE__ */ e(
|
|
440
|
+
C,
|
|
441
|
+
{
|
|
442
|
+
icon: g ? /* @__PURE__ */ e(ss, {}) : /* @__PURE__ */ e(as, {}),
|
|
443
|
+
"aria-label": c(g ? "alia.copied" : "alia.copyMessage"),
|
|
444
|
+
intent: "ghost",
|
|
445
|
+
size: "sm",
|
|
446
|
+
onClick: n
|
|
447
|
+
}
|
|
448
|
+
) : null,
|
|
449
|
+
i.includes("download") ? /* @__PURE__ */ e(
|
|
450
|
+
C,
|
|
451
|
+
{
|
|
452
|
+
icon: /* @__PURE__ */ e(is, {}),
|
|
453
|
+
"aria-label": c("alia.downloadMessage"),
|
|
454
|
+
intent: "ghost",
|
|
455
|
+
size: "sm",
|
|
456
|
+
onClick: v
|
|
457
|
+
}
|
|
458
|
+
) : null,
|
|
459
|
+
d && f ? /* @__PURE__ */ e(
|
|
460
|
+
C,
|
|
461
|
+
{
|
|
462
|
+
icon: /* @__PURE__ */ e(rs, {}),
|
|
463
|
+
"aria-label": c("alia.regenerate"),
|
|
464
|
+
intent: "ghost",
|
|
465
|
+
size: "sm",
|
|
466
|
+
onClick: () => f(s.id)
|
|
467
|
+
}
|
|
468
|
+
) : null,
|
|
469
|
+
/* @__PURE__ */ e("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: g ? c("alia.copied") : "" })
|
|
470
|
+
] });
|
|
471
|
+
}
|
|
472
|
+
function ks({
|
|
473
|
+
attachments: s,
|
|
474
|
+
onRemove: i
|
|
475
|
+
}) {
|
|
476
|
+
const { t } = x("ui");
|
|
477
|
+
return s.length === 0 ? null : /* @__PURE__ */ e(
|
|
478
|
+
"ul",
|
|
479
|
+
{
|
|
480
|
+
"aria-label": t("alia.attachmentsLabel"),
|
|
481
|
+
className: "ds:m-0 ds:flex ds:list-none ds:flex-wrap ds:gap-[var(--spacing-xs)] ds:p-0",
|
|
482
|
+
children: s.map((d) => /* @__PURE__ */ p(
|
|
483
|
+
"li",
|
|
484
|
+
{
|
|
485
|
+
className: [
|
|
486
|
+
"ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
487
|
+
"ds:rounded-[var(--radius-full)] ds:bg-[var(--muted)]",
|
|
488
|
+
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-xs)]",
|
|
489
|
+
"ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)]"
|
|
490
|
+
].join(" "),
|
|
491
|
+
children: [
|
|
492
|
+
/* @__PURE__ */ e(
|
|
493
|
+
Ze,
|
|
494
|
+
{
|
|
495
|
+
"aria-hidden": "true",
|
|
496
|
+
className: "ds:size-3.5 ds:text-[color:var(--muted-foreground)]"
|
|
497
|
+
}
|
|
498
|
+
),
|
|
499
|
+
/* @__PURE__ */ e("span", { dir: "auto", className: "type-meta ds:max-w-[12rem] ds:truncate", children: d.name }),
|
|
500
|
+
i ? /* @__PURE__ */ e(
|
|
501
|
+
C,
|
|
502
|
+
{
|
|
503
|
+
icon: /* @__PURE__ */ e(xe, {}),
|
|
504
|
+
"aria-label": t("alia.removeAttachment", { name: d.name }),
|
|
505
|
+
intent: "ghost",
|
|
506
|
+
size: "sm",
|
|
507
|
+
onClick: () => i(d.id)
|
|
508
|
+
}
|
|
509
|
+
) : null
|
|
510
|
+
]
|
|
511
|
+
},
|
|
512
|
+
d.id
|
|
513
|
+
))
|
|
514
|
+
}
|
|
515
|
+
);
|
|
516
|
+
}
|
|
517
|
+
function ze() {
|
|
518
|
+
if (typeof window > "u") return;
|
|
519
|
+
const s = window;
|
|
520
|
+
return s.SpeechRecognition ?? s.webkitSpeechRecognition;
|
|
521
|
+
}
|
|
522
|
+
function zs({
|
|
523
|
+
lang: s,
|
|
524
|
+
disabled: i,
|
|
525
|
+
onTranscript: t
|
|
526
|
+
}) {
|
|
527
|
+
const { t: d } = x("ui"), [a, u] = R(!1), f = j(null), c = L(() => {
|
|
528
|
+
var l;
|
|
529
|
+
(l = f.current) == null || l.stop(), u(!1);
|
|
530
|
+
}, []), g = L(() => {
|
|
531
|
+
const l = ze();
|
|
532
|
+
if (!l) return;
|
|
533
|
+
const n = new l();
|
|
534
|
+
n.lang = s, n.continuous = !1, n.interimResults = !1, n.onresult = (v) => {
|
|
535
|
+
let b = "";
|
|
536
|
+
for (let w = 0; w < v.results.length; w++)
|
|
537
|
+
b += v.results[w][0].transcript;
|
|
538
|
+
b && t(b);
|
|
539
|
+
}, n.onend = () => u(!1), n.onerror = () => u(!1), f.current = n, n.start(), u(!0);
|
|
540
|
+
}, [s, t]);
|
|
541
|
+
return ne(() => {
|
|
542
|
+
if (!a) return;
|
|
543
|
+
const l = (n) => {
|
|
544
|
+
n.key === "Escape" && c();
|
|
545
|
+
};
|
|
546
|
+
return window.addEventListener("keydown", l), () => window.removeEventListener("keydown", l);
|
|
547
|
+
}, [a, c]), ne(() => () => {
|
|
548
|
+
var l;
|
|
549
|
+
return (l = f.current) == null ? void 0 : l.stop();
|
|
550
|
+
}, []), /* @__PURE__ */ e(
|
|
551
|
+
C,
|
|
552
|
+
{
|
|
553
|
+
icon: /* @__PURE__ */ e(ns, {}),
|
|
554
|
+
"aria-label": d(a ? "alia.dictateStop" : "alia.dictate"),
|
|
555
|
+
"aria-pressed": a,
|
|
556
|
+
intent: a ? "primary" : "ghost",
|
|
557
|
+
size: "sm",
|
|
558
|
+
disabled: i,
|
|
559
|
+
onClick: () => a ? c() : g(),
|
|
560
|
+
className: a ? "ds:motion-safe:animate-[var(--accessible-off,var(--ds-animate-pulse))] ds:motion-reduce:animate-none" : void 0
|
|
561
|
+
}
|
|
562
|
+
);
|
|
563
|
+
}
|
|
564
|
+
function Ls({
|
|
565
|
+
initialText: s,
|
|
566
|
+
onSave: i,
|
|
567
|
+
onCancel: t
|
|
568
|
+
}) {
|
|
569
|
+
const { t: d } = x("ui"), [a, u] = R(s);
|
|
570
|
+
return /* @__PURE__ */ p(
|
|
571
|
+
"div",
|
|
572
|
+
{
|
|
573
|
+
className: "ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-xs)]",
|
|
574
|
+
"data-testid": "alia-message-editor",
|
|
575
|
+
children: [
|
|
576
|
+
/* @__PURE__ */ e(
|
|
577
|
+
we,
|
|
578
|
+
{
|
|
579
|
+
label: d("alia.editMessage"),
|
|
580
|
+
value: a,
|
|
581
|
+
onChange: (f) => u(f.target.value),
|
|
582
|
+
submitOnEnter: !0,
|
|
583
|
+
onSubmit: (f) => i(f),
|
|
584
|
+
minRows: 2
|
|
585
|
+
}
|
|
586
|
+
),
|
|
587
|
+
/* @__PURE__ */ p("div", { className: "ds:flex ds:items-center ds:justify-end ds:gap-[var(--spacing-xs)]", children: [
|
|
588
|
+
/* @__PURE__ */ e(_, { intent: "ghost", size: "sm", onClick: t, children: d("alia.cancelEdit") }),
|
|
589
|
+
/* @__PURE__ */ e(
|
|
590
|
+
_,
|
|
591
|
+
{
|
|
592
|
+
intent: "primary",
|
|
593
|
+
size: "sm",
|
|
594
|
+
onClick: () => i(a),
|
|
595
|
+
disabled: a.trim().length === 0,
|
|
596
|
+
children: d("alia.saveEdit")
|
|
597
|
+
}
|
|
598
|
+
)
|
|
599
|
+
] })
|
|
600
|
+
]
|
|
601
|
+
}
|
|
602
|
+
);
|
|
603
|
+
}
|
|
604
|
+
const K = G(
|
|
605
|
+
({
|
|
606
|
+
messages: s,
|
|
607
|
+
onSend: i,
|
|
608
|
+
onRetry: t,
|
|
609
|
+
onSuggestion: d,
|
|
610
|
+
suggestions: a,
|
|
611
|
+
isGenerating: u = !1,
|
|
612
|
+
onStopGenerating: f,
|
|
613
|
+
usage: c,
|
|
614
|
+
onUpgrade: g,
|
|
615
|
+
assistantName: l,
|
|
616
|
+
assistantAvatar: n,
|
|
617
|
+
userAvatar: v,
|
|
618
|
+
greeting: b,
|
|
619
|
+
subtitle: w,
|
|
620
|
+
density: E = "default",
|
|
621
|
+
renderMarkdown: M = !0,
|
|
622
|
+
onNewConversation: Le,
|
|
623
|
+
onAttach: je,
|
|
624
|
+
acceptedFileTypes: Ee,
|
|
625
|
+
headerEndSlot: Te,
|
|
626
|
+
hideHeader: Ie = !1,
|
|
627
|
+
ended: B,
|
|
628
|
+
messageActions: P,
|
|
629
|
+
onCopyMessage: oe,
|
|
630
|
+
onDownloadMessage: ce,
|
|
631
|
+
voiceInput: Se,
|
|
632
|
+
onVoiceTranscript: Z,
|
|
633
|
+
attachments: J,
|
|
634
|
+
onRemoveAttachment: Re,
|
|
635
|
+
showScrollToLatest: _e,
|
|
636
|
+
onRegenerate: D,
|
|
637
|
+
onEditMessage: F
|
|
638
|
+
}, Ue) => {
|
|
639
|
+
const { t: h, i18n: Be } = x("ui"), [me, Y] = R(null), [Pe, V] = R(""), O = j(null), A = j(null), ee = j(null), se = j(null), S = j(null), $ = j(!1), T = L(() => {
|
|
640
|
+
var r;
|
|
641
|
+
(r = S.current) == null || r.call(S), S.current = null, se.current = null;
|
|
642
|
+
}, []), W = L(
|
|
643
|
+
(r) => {
|
|
644
|
+
T();
|
|
645
|
+
const o = r.ownerDocument;
|
|
646
|
+
if (!r.contains(o.activeElement) && !te(o, r))
|
|
647
|
+
return;
|
|
648
|
+
se.current = r;
|
|
649
|
+
const m = (y) => {
|
|
650
|
+
(!(y.target instanceof Node) || !r.contains(y.target)) && T();
|
|
651
|
+
};
|
|
652
|
+
o.addEventListener("pointerdown", m, !0), o.addEventListener("focusin", m, !0), S.current = () => {
|
|
653
|
+
o.removeEventListener("pointerdown", m, !0), o.removeEventListener("focusin", m, !0);
|
|
654
|
+
};
|
|
655
|
+
},
|
|
656
|
+
[T]
|
|
657
|
+
), ae = L(
|
|
658
|
+
(r) => W(r.currentTarget),
|
|
659
|
+
[W]
|
|
660
|
+
), De = L(
|
|
661
|
+
(r) => {
|
|
662
|
+
const o = O.current;
|
|
663
|
+
O.current = r, !r && (o != null && o.contains(o.ownerDocument.activeElement)) && W(o);
|
|
664
|
+
},
|
|
665
|
+
[W]
|
|
666
|
+
);
|
|
667
|
+
ve(() => {
|
|
668
|
+
var y;
|
|
669
|
+
const r = se.current;
|
|
670
|
+
if (!r || r.isConnected) return;
|
|
671
|
+
T();
|
|
672
|
+
const o = O.current;
|
|
673
|
+
if (!te(r.ownerDocument, o)) return;
|
|
674
|
+
const m = o == null ? void 0 : o.querySelector("textarea");
|
|
675
|
+
if (m && !m.disabled) {
|
|
676
|
+
m.focus();
|
|
677
|
+
return;
|
|
678
|
+
}
|
|
679
|
+
(y = A.current ?? ee.current) == null || y.focus();
|
|
680
|
+
}), ne(() => T, [T]);
|
|
681
|
+
const q = !!Se && ze() != null, ie = de(() => {
|
|
682
|
+
for (let r = s.length - 1; r >= 0; r--) {
|
|
683
|
+
const o = s[r];
|
|
684
|
+
if (o.role === "assistant" && !o.streaming) return o.id;
|
|
685
|
+
}
|
|
686
|
+
}, [s]), I = B != null, N = l ?? h("alia.name"), Fe = b ?? h("alia.greeting"), Oe = w ?? h("alia.subtitle"), k = s[s.length - 1], H = (k == null ? void 0 : k.role) === "assistant" && k.streaming === !0, ue = H ? s.slice(0, -1) : s, $e = de(() => {
|
|
687
|
+
const r = h("chat.message.role.user"), o = ue.map((m) => {
|
|
688
|
+
let y;
|
|
689
|
+
if (m.role === "assistant" ? y = n != null && n.src ? { name: N, src: n.src } : {
|
|
690
|
+
slot: /* @__PURE__ */ e(
|
|
691
|
+
U,
|
|
692
|
+
{
|
|
693
|
+
size: "sm",
|
|
694
|
+
label: N,
|
|
695
|
+
appearance: "spinner"
|
|
696
|
+
}
|
|
697
|
+
)
|
|
698
|
+
} : m.role === "user" && (y = gs(v, r)), m.role === "user" && F && me === m.id)
|
|
699
|
+
return {
|
|
700
|
+
id: m.id,
|
|
701
|
+
node: /* @__PURE__ */ e(
|
|
702
|
+
Ls,
|
|
703
|
+
{
|
|
704
|
+
initialText: m.content,
|
|
705
|
+
onSave: (qe) => {
|
|
706
|
+
F(m.id, qe), Y(null);
|
|
707
|
+
},
|
|
708
|
+
onCancel: () => Y(null)
|
|
709
|
+
}
|
|
710
|
+
)
|
|
711
|
+
};
|
|
712
|
+
let re;
|
|
713
|
+
return m.role === "assistant" && (P && P.length > 0 || D && m.id === ie) ? re = /* @__PURE__ */ e(
|
|
714
|
+
Cs,
|
|
715
|
+
{
|
|
716
|
+
message: m,
|
|
717
|
+
actions: P ?? [],
|
|
718
|
+
assistantName: N,
|
|
719
|
+
canRegenerate: !!D && m.id === ie,
|
|
720
|
+
onCopyMessage: oe,
|
|
721
|
+
onDownloadMessage: ce,
|
|
722
|
+
onRegenerate: D
|
|
723
|
+
}
|
|
724
|
+
) : m.role === "user" && F && (re = /* @__PURE__ */ e(
|
|
725
|
+
C,
|
|
726
|
+
{
|
|
727
|
+
icon: /* @__PURE__ */ e(Ae, {}),
|
|
728
|
+
"aria-label": h("alia.editMessage"),
|
|
729
|
+
intent: "ghost",
|
|
730
|
+
size: "sm",
|
|
731
|
+
onClick: () => Y(m.id)
|
|
732
|
+
}
|
|
733
|
+
)), {
|
|
734
|
+
id: m.id,
|
|
735
|
+
node: /* @__PURE__ */ e(
|
|
736
|
+
Me,
|
|
737
|
+
{
|
|
738
|
+
role: m.role,
|
|
739
|
+
content: m.content,
|
|
740
|
+
body: m.body,
|
|
741
|
+
avatar: y,
|
|
742
|
+
timestamp: m.timestamp,
|
|
743
|
+
status: m.status,
|
|
744
|
+
renderMarkdown: M,
|
|
745
|
+
onRetry: t ? () => t(m.id) : void 0,
|
|
746
|
+
actions: re
|
|
747
|
+
}
|
|
748
|
+
)
|
|
749
|
+
};
|
|
750
|
+
});
|
|
751
|
+
return H && k && o.push({
|
|
752
|
+
id: k.id,
|
|
753
|
+
node: /* @__PURE__ */ e(
|
|
754
|
+
vs,
|
|
755
|
+
{
|
|
756
|
+
message: k,
|
|
757
|
+
assistantName: N,
|
|
758
|
+
avatarSrc: n == null ? void 0 : n.src,
|
|
759
|
+
renderMarkdown: M
|
|
760
|
+
}
|
|
761
|
+
)
|
|
762
|
+
}), u && !H && o.push({
|
|
763
|
+
id: "__alia-typing__",
|
|
764
|
+
node: /* @__PURE__ */ p("div", { className: "ds:flex ds:w-full ds:items-start ds:gap-[var(--spacing-sm)]", children: [
|
|
765
|
+
n != null && n.src ? /* @__PURE__ */ e(
|
|
766
|
+
Q,
|
|
767
|
+
{
|
|
768
|
+
name: N,
|
|
769
|
+
src: n.src,
|
|
770
|
+
size: "sm"
|
|
771
|
+
}
|
|
772
|
+
) : /* @__PURE__ */ e(
|
|
773
|
+
U,
|
|
774
|
+
{
|
|
775
|
+
size: "sm",
|
|
776
|
+
label: N,
|
|
777
|
+
appearance: "spinner"
|
|
778
|
+
}
|
|
779
|
+
),
|
|
780
|
+
/* @__PURE__ */ e(
|
|
781
|
+
"div",
|
|
782
|
+
{
|
|
783
|
+
className: [
|
|
784
|
+
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
785
|
+
"ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]",
|
|
786
|
+
"ds:rounded-[var(--radius-md)] ds:rounded-es-[var(--radius-sm)]",
|
|
787
|
+
"ds:bg-muted/40"
|
|
788
|
+
].join(" "),
|
|
789
|
+
children: /* @__PURE__ */ e(Ye, { label: h("chat.typing"), density: E })
|
|
790
|
+
}
|
|
791
|
+
)
|
|
792
|
+
] })
|
|
793
|
+
}), B && o.push({
|
|
794
|
+
id: "__alia-ended__",
|
|
795
|
+
node: /* @__PURE__ */ e(fs, { note: B.note, focusRef: A })
|
|
796
|
+
}), o;
|
|
797
|
+
}, [
|
|
798
|
+
ue,
|
|
799
|
+
H,
|
|
800
|
+
k,
|
|
801
|
+
u,
|
|
802
|
+
N,
|
|
803
|
+
n == null ? void 0 : n.src,
|
|
804
|
+
v,
|
|
805
|
+
M,
|
|
806
|
+
t,
|
|
807
|
+
E,
|
|
808
|
+
B,
|
|
809
|
+
h,
|
|
810
|
+
me,
|
|
811
|
+
F,
|
|
812
|
+
P,
|
|
813
|
+
D,
|
|
814
|
+
ie,
|
|
815
|
+
oe,
|
|
816
|
+
ce
|
|
817
|
+
]), We = c ? Math.min(
|
|
818
|
+
100,
|
|
819
|
+
Math.max(0, c.current / Math.max(1, c.limit) * 100)
|
|
820
|
+
) : 0, z = c ? c.current >= c.limit : !1, pe = z || I;
|
|
821
|
+
ve(() => {
|
|
822
|
+
var m;
|
|
823
|
+
const r = O.current;
|
|
824
|
+
if (!pe || !$.current || !r)
|
|
825
|
+
return;
|
|
826
|
+
$.current = !1;
|
|
827
|
+
const o = r.ownerDocument;
|
|
828
|
+
(r.contains(o.activeElement) || te(o, r)) && ((m = A.current ?? ee.current) == null || m.focus());
|
|
829
|
+
}, [pe]);
|
|
830
|
+
const fe = c ? c.label ?? h("alia.usageLabel", {
|
|
831
|
+
current: c.current,
|
|
832
|
+
limit: c.limit
|
|
833
|
+
}) : null, ge = s.length === 0 && !u && !I, he = /* @__PURE__ */ p("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
834
|
+
c ? /* @__PURE__ */ p("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
835
|
+
/* @__PURE__ */ p("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
836
|
+
/* @__PURE__ */ e(
|
|
837
|
+
"span",
|
|
838
|
+
{
|
|
839
|
+
ref: ee,
|
|
840
|
+
tabIndex: z ? -1 : void 0,
|
|
841
|
+
className: [
|
|
842
|
+
"type-meta",
|
|
843
|
+
z ? `ds:text-[color:var(--destructive)] ${ke}` : "ds:text-[color:var(--muted-foreground)]"
|
|
844
|
+
].join(" "),
|
|
845
|
+
"data-testid": "alia-usage-label",
|
|
846
|
+
children: z ? h("alia.usageLimitReached") : fe
|
|
847
|
+
}
|
|
848
|
+
),
|
|
849
|
+
z && g ? /* @__PURE__ */ e(_, { intent: "primary", size: "sm", onClick: g, children: h("alia.upgrade") }) : null
|
|
850
|
+
] }),
|
|
851
|
+
/* @__PURE__ */ e(
|
|
852
|
+
Ve,
|
|
853
|
+
{
|
|
854
|
+
value: We,
|
|
855
|
+
max: 100,
|
|
856
|
+
size: "sm",
|
|
857
|
+
ariaLabel: fe ?? h("alia.usageLabel", {
|
|
858
|
+
current: c.current,
|
|
859
|
+
limit: c.limit
|
|
860
|
+
}),
|
|
861
|
+
className: z ? "ds:[&_[role=progressbar]>*]:bg-[color:var(--destructive)]" : void 0,
|
|
862
|
+
"data-testid": "alia-usage-progress"
|
|
863
|
+
}
|
|
864
|
+
)
|
|
865
|
+
] }) : null,
|
|
866
|
+
!ge && a && a.length > 0 && !u && !I ? /* @__PURE__ */ e(
|
|
867
|
+
Ne,
|
|
868
|
+
{
|
|
869
|
+
label: h("alia.exampleQuestions"),
|
|
870
|
+
"data-testid": "alia-followup-suggestions",
|
|
871
|
+
children: a.map((r) => /* @__PURE__ */ e(
|
|
872
|
+
ye,
|
|
873
|
+
{
|
|
874
|
+
intent: "followup",
|
|
875
|
+
startIcon: r.icon,
|
|
876
|
+
keepOnSelect: !0,
|
|
877
|
+
onClick: ae,
|
|
878
|
+
onSelect: () => d == null ? void 0 : d(r),
|
|
879
|
+
children: r.label
|
|
880
|
+
},
|
|
881
|
+
r.id
|
|
882
|
+
))
|
|
883
|
+
}
|
|
884
|
+
) : null,
|
|
885
|
+
J && J.length > 0 ? /* @__PURE__ */ e(
|
|
886
|
+
ks,
|
|
887
|
+
{
|
|
888
|
+
attachments: J,
|
|
889
|
+
onRemove: Re
|
|
890
|
+
}
|
|
891
|
+
) : null,
|
|
892
|
+
/* @__PURE__ */ p("div", { className: "ds:flex ds:items-end ds:gap-[var(--spacing-sm)]", children: [
|
|
893
|
+
/* @__PURE__ */ e(
|
|
894
|
+
"div",
|
|
895
|
+
{
|
|
896
|
+
className: "ds:flex-1 ds:min-w-0",
|
|
897
|
+
onFocus: () => {
|
|
898
|
+
$.current = !0;
|
|
899
|
+
},
|
|
900
|
+
onBlur: (r) => {
|
|
901
|
+
const o = r.relatedTarget;
|
|
902
|
+
o instanceof Node && r.currentTarget.contains(o) || r.target.matches(":disabled") || ($.current = !1);
|
|
903
|
+
},
|
|
904
|
+
children: /* @__PURE__ */ e(
|
|
905
|
+
we,
|
|
906
|
+
{
|
|
907
|
+
ref: De,
|
|
908
|
+
submitOnEnter: !0,
|
|
909
|
+
onSubmit: q ? (r) => {
|
|
910
|
+
i(r), V("");
|
|
911
|
+
} : i,
|
|
912
|
+
value: q ? Pe : void 0,
|
|
913
|
+
onChange: q ? (r) => V(r.target.value) : void 0,
|
|
914
|
+
onAttach: je,
|
|
915
|
+
accept: Ee,
|
|
916
|
+
disabled: z || I,
|
|
917
|
+
toolbar: q ? /* @__PURE__ */ e(
|
|
918
|
+
zs,
|
|
919
|
+
{
|
|
920
|
+
lang: Be.language,
|
|
921
|
+
disabled: z || I,
|
|
922
|
+
onTranscript: (r) => {
|
|
923
|
+
Z == null || Z(r), V(
|
|
924
|
+
(o) => o ? `${o} ${r}` : r
|
|
925
|
+
);
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
) : void 0,
|
|
929
|
+
"data-testid": "alia-composer"
|
|
930
|
+
}
|
|
931
|
+
)
|
|
932
|
+
}
|
|
933
|
+
),
|
|
934
|
+
u && f && !I ? /* @__PURE__ */ e(
|
|
935
|
+
_,
|
|
936
|
+
{
|
|
937
|
+
intent: "outline",
|
|
938
|
+
size: "sm",
|
|
939
|
+
startIcon: /* @__PURE__ */ e(es, { "aria-hidden": "true" }),
|
|
940
|
+
onClick: (r) => {
|
|
941
|
+
ae(r), f();
|
|
942
|
+
},
|
|
943
|
+
"aria-label": h("alia.stopGenerating"),
|
|
944
|
+
children: h("alia.stopGenerating")
|
|
945
|
+
}
|
|
946
|
+
) : null
|
|
947
|
+
] })
|
|
948
|
+
] });
|
|
949
|
+
return /* @__PURE__ */ p(
|
|
950
|
+
"div",
|
|
951
|
+
{
|
|
952
|
+
ref: Ue,
|
|
953
|
+
className: [
|
|
954
|
+
"ds:flex ds:min-h-0 ds:flex-1 ds:flex-col",
|
|
955
|
+
"ds:bg-[var(--background)] ds:text-[color:var(--foreground)]"
|
|
956
|
+
].join(" "),
|
|
957
|
+
"data-testid": "alia-surface",
|
|
958
|
+
children: [
|
|
959
|
+
Ie ? null : /* @__PURE__ */ e(
|
|
960
|
+
bs,
|
|
961
|
+
{
|
|
962
|
+
assistantName: N,
|
|
963
|
+
avatarSrc: n == null ? void 0 : n.src,
|
|
964
|
+
onNewConversation: Le,
|
|
965
|
+
headerEndSlot: Te,
|
|
966
|
+
density: E
|
|
967
|
+
}
|
|
968
|
+
),
|
|
969
|
+
ge ? /* @__PURE__ */ p(be, { children: [
|
|
970
|
+
/* @__PURE__ */ e(
|
|
971
|
+
hs,
|
|
972
|
+
{
|
|
973
|
+
assistantName: N,
|
|
974
|
+
avatarSrc: n == null ? void 0 : n.src,
|
|
975
|
+
greeting: Fe,
|
|
976
|
+
subtitle: Oe,
|
|
977
|
+
suggestions: a,
|
|
978
|
+
onSuggestion: d,
|
|
979
|
+
onChipClick: ae
|
|
980
|
+
}
|
|
981
|
+
),
|
|
982
|
+
/* @__PURE__ */ e(
|
|
983
|
+
"div",
|
|
984
|
+
{
|
|
985
|
+
className: [
|
|
986
|
+
// No top divider — the ChatInput's own soft shadow + the
|
|
987
|
+
// border-radius give it enough visual containment, and a
|
|
988
|
+
// surface-level separator here read as a sharp line at
|
|
989
|
+
// 1px-equivalent shadow blur. Keep the bg explicit so
|
|
990
|
+
// the chat-input chrome paints over the messages-area
|
|
991
|
+
// background instead of mixing with it.
|
|
992
|
+
"ds:shrink-0 ds:bg-[var(--background)]",
|
|
993
|
+
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
994
|
+
"ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]"
|
|
995
|
+
].join(" "),
|
|
996
|
+
children: he
|
|
997
|
+
}
|
|
998
|
+
)
|
|
999
|
+
] }) : /* @__PURE__ */ e(
|
|
1000
|
+
Ke,
|
|
1001
|
+
{
|
|
1002
|
+
messages: $e,
|
|
1003
|
+
density: E,
|
|
1004
|
+
composer: he,
|
|
1005
|
+
showScrollToLatest: _e,
|
|
1006
|
+
className: "ds:flex-1 ds:min-h-0"
|
|
1007
|
+
}
|
|
1008
|
+
)
|
|
1009
|
+
]
|
|
1010
|
+
}
|
|
1011
|
+
);
|
|
1012
|
+
}
|
|
1013
|
+
);
|
|
1014
|
+
K.displayName = "AliaChatSurface";
|
|
1015
|
+
const js = G(
|
|
1016
|
+
({ headerSlot: s, ...i }, t) => /* @__PURE__ */ p(
|
|
1017
|
+
"div",
|
|
1018
|
+
{
|
|
1019
|
+
ref: t,
|
|
1020
|
+
className: [
|
|
1021
|
+
"ds:flex ds:min-h-0 ds:flex-1 ds:flex-col",
|
|
1022
|
+
"ds:bg-[var(--background)] ds:text-[color:var(--foreground)]",
|
|
1023
|
+
"ds:h-full ds:w-full"
|
|
1024
|
+
].join(" "),
|
|
1025
|
+
"data-testid": "alia-embedded",
|
|
1026
|
+
children: [
|
|
1027
|
+
s ? /* @__PURE__ */ e(
|
|
1028
|
+
"div",
|
|
1029
|
+
{
|
|
1030
|
+
className: [
|
|
1031
|
+
"ds:shrink-0",
|
|
1032
|
+
"ds:ps-[var(--spacing-lg)] ds:pe-[var(--spacing-lg)]",
|
|
1033
|
+
"ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]"
|
|
1034
|
+
].join(" "),
|
|
1035
|
+
children: s
|
|
1036
|
+
}
|
|
1037
|
+
) : null,
|
|
1038
|
+
/* @__PURE__ */ e("div", { className: "ds:flex ds:min-h-0 ds:flex-1 ds:flex-col ds:items-stretch", children: /* @__PURE__ */ e(
|
|
1039
|
+
"div",
|
|
1040
|
+
{
|
|
1041
|
+
className: [
|
|
1042
|
+
"ds:flex ds:min-h-0 ds:w-full ds:flex-1 ds:flex-col",
|
|
1043
|
+
"ds:ms-auto ds:me-auto",
|
|
1044
|
+
"ds:[max-inline-size:48rem]",
|
|
1045
|
+
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]"
|
|
1046
|
+
].join(" "),
|
|
1047
|
+
children: /* @__PURE__ */ e(K, { ...i })
|
|
1048
|
+
}
|
|
1049
|
+
) })
|
|
1050
|
+
]
|
|
1051
|
+
}
|
|
1052
|
+
)
|
|
1053
|
+
);
|
|
1054
|
+
js.displayName = "AliaEmbedded";
|
|
1055
|
+
function Es(s) {
|
|
1056
|
+
return s > 99 ? "99+" : String(s);
|
|
1057
|
+
}
|
|
1058
|
+
const Ts = G(
|
|
1059
|
+
({
|
|
1060
|
+
open: s,
|
|
1061
|
+
defaultOpen: i,
|
|
1062
|
+
onOpenChange: t,
|
|
1063
|
+
position: d = "bottom-end",
|
|
1064
|
+
unseenCount: a,
|
|
1065
|
+
assistantName: u,
|
|
1066
|
+
assistantAvatar: f,
|
|
1067
|
+
...c
|
|
1068
|
+
}, g) => {
|
|
1069
|
+
const { t: l } = x("ui"), n = u || l("alia.name"), v = typeof a == "number" && a > 0, b = v ? l("alia.openWithUnseen", { count: a }) : l("alia.open"), w = /* @__PURE__ */ e(Xe.Close, { asChild: !0, children: /* @__PURE__ */ e(
|
|
1070
|
+
C,
|
|
1071
|
+
{
|
|
1072
|
+
icon: /* @__PURE__ */ e(xe, { "aria-hidden": "true" }),
|
|
1073
|
+
intent: "ghost",
|
|
1074
|
+
size: "sm",
|
|
1075
|
+
"aria-label": l("alia.close"),
|
|
1076
|
+
"data-testid": "alia-popout-close"
|
|
1077
|
+
}
|
|
1078
|
+
) });
|
|
1079
|
+
return /* @__PURE__ */ p(
|
|
1080
|
+
X.Root,
|
|
1081
|
+
{
|
|
1082
|
+
open: s,
|
|
1083
|
+
defaultOpen: i,
|
|
1084
|
+
onOpenChange: t,
|
|
1085
|
+
children: [
|
|
1086
|
+
/* @__PURE__ */ e(
|
|
1087
|
+
"div",
|
|
1088
|
+
{
|
|
1089
|
+
ref: g,
|
|
1090
|
+
className: [
|
|
1091
|
+
"ds:fixed ds:z-[var(--z-fixed)]",
|
|
1092
|
+
"ds:bottom-[calc(var(--spacing-lg)+env(safe-area-inset-bottom,0px))]",
|
|
1093
|
+
d === "bottom-end" ? "ds:end-[var(--spacing-lg)]" : "ds:start-[var(--spacing-lg)]"
|
|
1094
|
+
].join(" "),
|
|
1095
|
+
"data-testid": "alia-popout-fab-wrapper",
|
|
1096
|
+
children: /* @__PURE__ */ p("div", { className: "ds:relative", children: [
|
|
1097
|
+
/* @__PURE__ */ e(X.Trigger, { asChild: !0, children: /* @__PURE__ */ e(
|
|
1098
|
+
Ge,
|
|
1099
|
+
{
|
|
1100
|
+
icon: /* @__PURE__ */ e(Qe, { "aria-hidden": "true" }),
|
|
1101
|
+
"aria-label": b,
|
|
1102
|
+
variant: "primary",
|
|
1103
|
+
size: "md",
|
|
1104
|
+
position: "static",
|
|
1105
|
+
"data-testid": "alia-popout-fab"
|
|
1106
|
+
}
|
|
1107
|
+
) }),
|
|
1108
|
+
v ? /* @__PURE__ */ e(
|
|
1109
|
+
"span",
|
|
1110
|
+
{
|
|
1111
|
+
"aria-hidden": "true",
|
|
1112
|
+
"data-testid": "alia-popout-badge",
|
|
1113
|
+
className: [
|
|
1114
|
+
"ds:absolute ds:-top-[var(--spacing-xs)] ds:-end-[var(--spacing-xs)]",
|
|
1115
|
+
"ds:inline-flex ds:items-center ds:justify-center",
|
|
1116
|
+
"ds:min-w-[calc(var(--spacing-md)+var(--spacing-xs))]",
|
|
1117
|
+
"ds:h-[calc(var(--spacing-md)+var(--spacing-xs))]",
|
|
1118
|
+
"ds:ps-[calc(var(--spacing-xs)/1.5)] ds:pe-[calc(var(--spacing-xs)/1.5)]",
|
|
1119
|
+
"ds:rounded-[var(--radius-full)]",
|
|
1120
|
+
"ds:bg-[color:var(--destructive)] ds:text-[color:var(--destructive-foreground)]",
|
|
1121
|
+
"ds:text-[length:var(--font-size-xs)] ds:font-semibold ds:leading-none",
|
|
1122
|
+
"ds:pointer-events-none ds:select-none",
|
|
1123
|
+
"ds:forced-colors:outline ds:forced-colors:outline-1 ds:forced-colors:outline-[CanvasText]"
|
|
1124
|
+
].join(" "),
|
|
1125
|
+
children: Es(a)
|
|
1126
|
+
}
|
|
1127
|
+
) : null
|
|
1128
|
+
] })
|
|
1129
|
+
}
|
|
1130
|
+
),
|
|
1131
|
+
/* @__PURE__ */ p(
|
|
1132
|
+
X.Content,
|
|
1133
|
+
{
|
|
1134
|
+
side: "end",
|
|
1135
|
+
size: "md",
|
|
1136
|
+
"aria-label": l("alia.panelLabel"),
|
|
1137
|
+
className: "ds:flex ds:min-h-0 ds:flex-col ds:p-0",
|
|
1138
|
+
"data-testid": "alia-popout-panel",
|
|
1139
|
+
children: [
|
|
1140
|
+
/* @__PURE__ */ e(X.Title, { className: "ds:sr-only", children: n }),
|
|
1141
|
+
/* @__PURE__ */ e(
|
|
1142
|
+
K,
|
|
1143
|
+
{
|
|
1144
|
+
...c,
|
|
1145
|
+
assistantName: n,
|
|
1146
|
+
assistantAvatar: f,
|
|
1147
|
+
density: "compact",
|
|
1148
|
+
headerEndSlot: w
|
|
1149
|
+
}
|
|
1150
|
+
)
|
|
1151
|
+
]
|
|
1152
|
+
}
|
|
1153
|
+
)
|
|
1154
|
+
]
|
|
1155
|
+
}
|
|
1156
|
+
);
|
|
1157
|
+
}
|
|
1158
|
+
);
|
|
1159
|
+
Ts.displayName = "AliaPopout";
|
|
1160
|
+
function Is(s) {
|
|
1161
|
+
return s > 99 ? "99+" : String(s);
|
|
1162
|
+
}
|
|
1163
|
+
const Ss = "ds:[inline-size:22rem]", Rs = "ds:[inline-size:3rem]", _s = G(
|
|
1164
|
+
({
|
|
1165
|
+
open: s,
|
|
1166
|
+
onOpenChange: i,
|
|
1167
|
+
side: t = "end",
|
|
1168
|
+
unseenCount: d,
|
|
1169
|
+
footerSlot: a,
|
|
1170
|
+
assistantName: u,
|
|
1171
|
+
assistantAvatar: f,
|
|
1172
|
+
...c
|
|
1173
|
+
}, g) => {
|
|
1174
|
+
const { t: l } = x("ui"), n = u || l("alia.name"), v = typeof d == "number" && d > 0, b = t === "end" ? "ds:shadow-[var(--shadow-chrome-start)]" : "ds:shadow-[var(--shadow-chrome-end)]", w = v ? l("alia.openWithUnseen", { count: d }) : l("alia.open");
|
|
1175
|
+
if (!s)
|
|
1176
|
+
return /* @__PURE__ */ e(
|
|
1177
|
+
"aside",
|
|
1178
|
+
{
|
|
1179
|
+
ref: g,
|
|
1180
|
+
"aria-label": l("alia.panelLabel"),
|
|
1181
|
+
className: [
|
|
1182
|
+
"ds:flex ds:shrink-0 ds:flex-col ds:items-center",
|
|
1183
|
+
"ds:bg-[var(--background)]",
|
|
1184
|
+
b,
|
|
1185
|
+
"ds:pt-[var(--spacing-md)] ds:pb-[var(--spacing-md)]",
|
|
1186
|
+
Rs
|
|
1187
|
+
].join(" "),
|
|
1188
|
+
"data-testid": "alia-sidebar-rail",
|
|
1189
|
+
"data-alia-sidebar-state": "collapsed",
|
|
1190
|
+
children: /* @__PURE__ */ p("div", { className: "ds:relative", children: [
|
|
1191
|
+
/* @__PURE__ */ e(
|
|
1192
|
+
C,
|
|
1193
|
+
{
|
|
1194
|
+
icon: /* @__PURE__ */ e(le, {}),
|
|
1195
|
+
"aria-label": w,
|
|
1196
|
+
"aria-expanded": "false",
|
|
1197
|
+
intent: "ghost",
|
|
1198
|
+
size: "sm",
|
|
1199
|
+
onClick: () => i(!0),
|
|
1200
|
+
"data-testid": "alia-sidebar-rail-trigger"
|
|
1201
|
+
}
|
|
1202
|
+
),
|
|
1203
|
+
v ? /* @__PURE__ */ e(
|
|
1204
|
+
"span",
|
|
1205
|
+
{
|
|
1206
|
+
"aria-hidden": "true",
|
|
1207
|
+
"data-testid": "alia-sidebar-badge",
|
|
1208
|
+
className: [
|
|
1209
|
+
"ds:absolute ds:-top-[var(--spacing-xs)] ds:-end-[var(--spacing-xs)]",
|
|
1210
|
+
"ds:inline-flex ds:items-center ds:justify-center",
|
|
1211
|
+
"ds:min-w-[calc(var(--spacing-md)+var(--spacing-xs))]",
|
|
1212
|
+
"ds:h-[calc(var(--spacing-md)+var(--spacing-xs))]",
|
|
1213
|
+
"ds:ps-[calc(var(--spacing-xs)/1.5)] ds:pe-[calc(var(--spacing-xs)/1.5)]",
|
|
1214
|
+
"ds:rounded-[var(--radius-full)]",
|
|
1215
|
+
"ds:bg-[color:var(--destructive)] ds:text-[color:var(--destructive-foreground)]",
|
|
1216
|
+
"ds:text-[length:var(--font-size-xs)] ds:font-semibold ds:leading-none",
|
|
1217
|
+
"ds:pointer-events-none ds:select-none",
|
|
1218
|
+
"ds:forced-colors:outline ds:forced-colors:outline-1 ds:forced-colors:outline-[CanvasText]"
|
|
1219
|
+
].join(" "),
|
|
1220
|
+
children: Is(d)
|
|
1221
|
+
}
|
|
1222
|
+
) : null
|
|
1223
|
+
] })
|
|
1224
|
+
}
|
|
1225
|
+
);
|
|
1226
|
+
const E = /* @__PURE__ */ e(
|
|
1227
|
+
C,
|
|
1228
|
+
{
|
|
1229
|
+
icon: t === "end" ? /* @__PURE__ */ e(os, {}) : /* @__PURE__ */ e(cs, {}),
|
|
1230
|
+
intent: "ghost",
|
|
1231
|
+
size: "sm",
|
|
1232
|
+
"aria-label": l("alia.close"),
|
|
1233
|
+
"aria-expanded": "true",
|
|
1234
|
+
onClick: () => i(!1),
|
|
1235
|
+
"data-testid": "alia-sidebar-collapse"
|
|
1236
|
+
}
|
|
1237
|
+
);
|
|
1238
|
+
return /* @__PURE__ */ p(
|
|
1239
|
+
"aside",
|
|
1240
|
+
{
|
|
1241
|
+
ref: g,
|
|
1242
|
+
"aria-label": l("alia.panelLabel"),
|
|
1243
|
+
className: [
|
|
1244
|
+
"ds:flex ds:shrink-0 ds:flex-col ds:min-h-0",
|
|
1245
|
+
"ds:bg-[var(--background)]",
|
|
1246
|
+
b,
|
|
1247
|
+
Ss,
|
|
1248
|
+
"ds:h-full"
|
|
1249
|
+
].join(" "),
|
|
1250
|
+
"data-testid": "alia-sidebar",
|
|
1251
|
+
"data-alia-sidebar-state": "expanded",
|
|
1252
|
+
children: [
|
|
1253
|
+
/* @__PURE__ */ e("div", { className: "ds:flex ds:min-h-0 ds:flex-1 ds:flex-col", children: /* @__PURE__ */ e(
|
|
1254
|
+
K,
|
|
1255
|
+
{
|
|
1256
|
+
...c,
|
|
1257
|
+
assistantName: n,
|
|
1258
|
+
assistantAvatar: f,
|
|
1259
|
+
density: "compact",
|
|
1260
|
+
headerEndSlot: E
|
|
1261
|
+
}
|
|
1262
|
+
) }),
|
|
1263
|
+
a ? /* @__PURE__ */ e(
|
|
1264
|
+
"div",
|
|
1265
|
+
{
|
|
1266
|
+
"data-testid": "alia-sidebar-footer-slot",
|
|
1267
|
+
className: "ds:shrink-0 ds:shadow-[var(--shadow-chrome-up)]",
|
|
1268
|
+
children: a
|
|
1269
|
+
}
|
|
1270
|
+
) : null
|
|
1271
|
+
]
|
|
1272
|
+
}
|
|
1273
|
+
);
|
|
1274
|
+
}
|
|
1275
|
+
);
|
|
1276
|
+
_s.displayName = "AliaSidebar";
|
|
1277
|
+
export {
|
|
1278
|
+
le as A,
|
|
1279
|
+
K as a,
|
|
1280
|
+
js as b,
|
|
1281
|
+
Ts as c,
|
|
1282
|
+
_s as d
|
|
1283
|
+
};
|
|
1284
|
+
//# sourceMappingURL=alia-sidebar-BBKBJCv6.js.map
|