@alfadocs/ui-kit-debug 1.55.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-Dtw5Hpg4.js → anamnesis-summary-rows-CCQ62mMN.js} +5 -5
- package/dist/_chunks/{anamnesis-summary-rows-Dtw5Hpg4.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-zP-iN-Pd.js → balance-badge-cell-CII3SDmR.js} +3 -3
- package/dist/_chunks/{balance-badge-cell-zP-iN-Pd.js.map → balance-badge-cell-CII3SDmR.js.map} +1 -1
- package/dist/_chunks/{bmi-calculator-DTZhRhXe.js → bmi-calculator-C0UTxB7R.js} +2 -2
- package/dist/_chunks/{bmi-calculator-DTZhRhXe.js.map → bmi-calculator-C0UTxB7R.js.map} +1 -1
- package/dist/_chunks/{booking-uZO10TLK.js → booking-81WnKDsH.js} +4 -4
- package/dist/_chunks/{booking-uZO10TLK.js.map → booking-81WnKDsH.js.map} +1 -1
- package/dist/_chunks/{breadcrumb-xgVpPH2H.js → breadcrumb-Boan-5n8.js} +39 -39
- package/dist/_chunks/breadcrumb-Boan-5n8.js.map +1 -0
- package/dist/_chunks/{calculator-dialog-BRjZMWuE.js → calculator-dialog-CzQv03p0.js} +2 -2
- package/dist/_chunks/{calculator-dialog-BRjZMWuE.js.map → calculator-dialog-CzQv03p0.js.map} +1 -1
- package/dist/_chunks/{calendar-workspace-DVajSkKA.js → calendar-workspace-D5-k_9zE.js} +15 -15
- package/dist/_chunks/{calendar-workspace-DVajSkKA.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-BeMYMiI7.js → care-plan-header-BMwZIgHJ.js} +3 -3
- package/dist/_chunks/{care-plan-header-BeMYMiI7.js.map → care-plan-header-BMwZIgHJ.js.map} +1 -1
- package/dist/_chunks/chart-DQ5GxqgT.js +906 -0
- 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-C5DbP_X3.js → contact-profile-card-CMyBYgRR.js} +3 -3
- package/dist/_chunks/{contact-profile-card-C5DbP_X3.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/dashboard-grid-DfEY2qci.js +844 -0
- package/dist/_chunks/dashboard-grid-DfEY2qci.js.map +1 -0
- package/dist/_chunks/{data-table-C6T31E33.js → data-table-fAMTeAjM.js} +2 -2
- package/dist/_chunks/{data-table-C6T31E33.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-BOvHwWO5.js → date-range-picker-CFk-5O3R.js} +188 -177
- 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/{dependent-selector-Bet3XAFj.js → dependent-selector-DgaAQc-c.js} +91 -86
- package/dist/_chunks/dependent-selector-DgaAQc-c.js.map +1 -0
- package/dist/_chunks/{dialog-D52AI4nF.js → dialog-Dn-iQ0Jp.js} +86 -69
- package/dist/_chunks/dialog-Dn-iQ0Jp.js.map +1 -0
- 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-DXDJbUzo.js → due-date-calculator-D_qFUiHp.js} +3 -3
- package/dist/_chunks/{due-date-calculator-DXDJbUzo.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-dIJQUZvq.js → file-manager-CFsL1KVt.js} +4 -4
- package/dist/_chunks/{file-manager-dIJQUZvq.js.map → file-manager-CFsL1KVt.js.map} +1 -1
- package/dist/_chunks/{freemium-paywall-B6ojVXq7.js → freemium-paywall-DIKuhX8b.js} +90 -86
- package/dist/_chunks/freemium-paywall-DIKuhX8b.js.map +1 -0
- package/dist/_chunks/{gestational-age-calculator-BfGpt3du.js → gestational-age-calculator-CZi43xKG.js} +3 -3
- package/dist/_chunks/{gestational-age-calculator-BfGpt3du.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-BARGZZt2.js → heatmap-BEeOThkW.js} +2 -2
- package/dist/_chunks/{heatmap-BARGZZt2.js.map → heatmap-BEeOThkW.js.map} +1 -1
- package/dist/_chunks/{help-me-write-templates-B7L3zGsE.js → help-me-write-templates-BUoYGo6f.js} +2 -2
- package/dist/_chunks/help-me-write-templates-BUoYGo6f.js.map +1 -0
- 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/{key-value-pair-Ax8IJr1M.js → key-value-pair-BNNITp6S.js} +25 -19
- package/dist/_chunks/key-value-pair-BNNITp6S.js.map +1 -0
- package/dist/_chunks/{kit-extensions-C9-v8Dih.js → kit-extensions-DYVxWcqv.js} +5 -5
- package/dist/_chunks/{kit-extensions-C9-v8Dih.js.map → kit-extensions-DYVxWcqv.js.map} +1 -1
- package/dist/_chunks/{link-cell-renderer-DlBVPMTi.js → link-cell-renderer-CxW_oLa5.js} +2 -2
- package/dist/_chunks/{link-cell-renderer-DlBVPMTi.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-I8ntrrUW.js → notes-panel-Cm4pttpl.js} +4 -4
- package/dist/_chunks/{notes-panel-I8ntrrUW.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-3dspc2tR.js → patient-summary-card-opdyfeW2.js} +10 -6
- package/dist/_chunks/{patient-summary-card-3dspc2tR.js.map → patient-summary-card-opdyfeW2.js.map} +1 -1
- package/dist/_chunks/{payment-automation-upsell-DEUfM7EU.js → payment-automation-upsell-DiHovmUL.js} +2 -2
- package/dist/_chunks/{payment-automation-upsell-DEUfM7EU.js.map → payment-automation-upsell-DiHovmUL.js.map} +1 -1
- package/dist/_chunks/{payment-request-card-DAGqh9Yx.js → payment-request-card-DAniJNLX.js} +3 -3
- package/dist/_chunks/{payment-request-card-DAGqh9Yx.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/{periodontal-chart-BqwLxy2m.js → periodontal-chart-DD5C0M3l.js} +2 -2
- package/dist/_chunks/{periodontal-chart-BqwLxy2m.js.map → periodontal-chart-DD5C0M3l.js.map} +1 -1
- package/dist/_chunks/{periodontal-chart-card-CWZ1YM1h.js → periodontal-chart-card-CxdXvsPU.js} +2 -2
- package/dist/_chunks/{periodontal-chart-card-CWZ1YM1h.js.map → periodontal-chart-card-CxdXvsPU.js.map} +1 -1
- package/dist/_chunks/{periodontal-diagnosis-C9IuvLId.js → periodontal-diagnosis-D-PJv7KS.js} +2 -2
- package/dist/_chunks/{periodontal-diagnosis-C9IuvLId.js.map → periodontal-diagnosis-D-PJv7KS.js.map} +1 -1
- 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/{position-grid-D2D5_Tze.js → position-grid-CBB88EaH.js} +38 -36
- package/dist/_chunks/position-grid-CBB88EaH.js.map +1 -0
- package/dist/_chunks/{practice-results-DxOgbPDy.js → practice-results-CfRkjzsI.js} +2 -2
- package/dist/_chunks/{practice-results-DxOgbPDy.js.map → practice-results-CfRkjzsI.js.map} +1 -1
- package/dist/_chunks/{pregnancy-dating-R3q5n1Wh.js → pregnancy-dating-BFzv9g1N.js} +3 -3
- package/dist/_chunks/{pregnancy-dating-R3q5n1Wh.js.map → pregnancy-dating-BFzv9g1N.js.map} +1 -1
- package/dist/_chunks/{pregnancy-weight-gain-DwmNklDU.js → pregnancy-weight-gain-CUUrBTBo.js} +2 -2
- package/dist/_chunks/{pregnancy-weight-gain-DwmNklDU.js.map → pregnancy-weight-gain-CUUrBTBo.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-BWusjxY8.js → public-header.agent-BctevbuY.js} +2 -2
- package/dist/_chunks/{public-header.agent-BWusjxY8.js.map → public-header.agent-BctevbuY.js.map} +1 -1
- package/dist/_chunks/{radio-group-BT97ty7o.js → radio-group-DicxWJXP.js} +111 -106
- package/dist/_chunks/radio-group-DicxWJXP.js.map +1 -0
- package/dist/_chunks/{radiograph-panel.agent-BA90I3Mu.js → radiograph-panel.agent-DyqbTECc.js} +4 -4
- package/dist/_chunks/{radiograph-panel.agent-BA90I3Mu.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-Blp4smUr.js → rich-text-editor-DTnNZ4Ff.js} +489 -484
- package/dist/_chunks/rich-text-editor-DTnNZ4Ff.js.map +1 -0
- package/dist/_chunks/{sheet-CNFW8mYZ.js → sheet-8qsiMoUI.js} +95 -79
- package/dist/_chunks/sheet-8qsiMoUI.js.map +1 -0
- 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-rgMsgo-C.js → signature-request-DRuYAG5I.js} +2 -2
- package/dist/_chunks/{signature-request-rgMsgo-C.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/{stat-51CDL4au.js → stat-DmjGfXND.js} +117 -108
- package/dist/_chunks/stat-DmjGfXND.js.map +1 -0
- package/dist/_chunks/{stepper-accordion-D7lnBGh2.js → stepper-accordion-DDTSOUHc.js} +17 -6
- package/dist/_chunks/stepper-accordion-DDTSOUHc.js.map +1 -0
- package/dist/_chunks/{task-editor-Ctxsa1BY.js → task-editor-NkcopDna.js} +4 -4
- package/dist/_chunks/{task-editor-Ctxsa1BY.js.map → task-editor-NkcopDna.js.map} +1 -1
- package/dist/_chunks/{use-appointment-details-read-DinTrRIW.js → use-appointment-details-read-CfFQNOF_.js} +5 -5
- package/dist/_chunks/{use-appointment-details-read-DinTrRIW.js.map → use-appointment-details-read-CfFQNOF_.js.map} +1 -1
- package/dist/_chunks/use-select-on-arrow-Cr4iBuW5.js +26 -0
- package/dist/_chunks/use-select-on-arrow-Cr4iBuW5.js.map +1 -0
- 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-D8RiWrJd.js → widget-picker-rBA7MR5P.js} +2 -2
- package/dist/_chunks/{widget-picker-D8RiWrJd.js.map → widget-picker-rBA7MR5P.js.map} +1 -1
- package/dist/_chunks/{workflow-map-D3mezmGB.js → workflow-map-Demlpy39.js} +2 -2
- package/dist/_chunks/{workflow-map-D3mezmGB.js.map → workflow-map-Demlpy39.js.map} +1 -1
- package/dist/agent-catalog.json +28 -11
- package/dist/agent-i18n/en.json +8 -7
- package/dist/components/_shared/non-modal-tab-exit.d.ts +19 -0
- package/dist/components/_shared/non-modal-tab-exit.d.ts.map +1 -0
- package/dist/components/_shared/use-apex-chart-semantics.d.ts +6 -0
- package/dist/components/_shared/use-apex-chart-semantics.d.ts.map +1 -0
- package/dist/components/_shared/use-select-on-arrow.d.ts +20 -0
- package/dist/components/_shared/use-select-on-arrow.d.ts.map +1 -0
- 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/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/breadcrumb/breadcrumb.d.ts.map +1 -1
- package/dist/components/breadcrumb/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 +15 -10
- 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/dashboard-grid/dashboard-grid-engine.d.ts +22 -0
- package/dist/components/dashboard-grid/dashboard-grid-engine.d.ts.map +1 -1
- package/dist/components/dashboard-grid/dashboard-grid.agent.d.ts.map +1 -1
- package/dist/components/dashboard-grid/dashboard-grid.d.ts +48 -4
- package/dist/components/dashboard-grid/dashboard-grid.d.ts.map +1 -1
- package/dist/components/dashboard-grid/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/dependent-selector/dependent-selector.d.ts.map +1 -1
- package/dist/components/dependent-selector/index.js +1 -1
- package/dist/components/dialog/dialog.d.ts +2 -2
- package/dist/components/dialog/dialog.d.ts.map +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/freemium-paywall/freemium-paywall.d.ts.map +1 -1
- package/dist/components/freemium-paywall/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/key-value-pair/index.js +1 -1
- package/dist/components/key-value-pair/key-value-pair.d.ts.map +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-summary-card/patient-summary-card.d.ts.map +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/periodontal-chart/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/periodontal-diagnosis/index.js +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/position-grid/index.js +1 -1
- package/dist/components/position-grid/position-grid.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/pregnancy-weight-gain/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/radio-group/index.js +1 -1
- package/dist/components/radio-group/radio-group.d.ts.map +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/sheet/sheet.d.ts +2 -2
- package/dist/components/sheet/sheet.d.ts.map +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/stat/index.d.ts +1 -1
- package/dist/components/stat/index.d.ts.map +1 -1
- package/dist/components/stat/index.js +1 -1
- package/dist/components/stat/stat.d.ts +9 -0
- package/dist/components/stat/stat.d.ts.map +1 -1
- package/dist/components/stepper-accordion/index.js +1 -1
- package/dist/components/stepper-accordion/stepper-accordion.d.ts.map +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/components/workflow/index.js +1 -1
- package/dist/host-legacy.css +13 -2
- package/dist/i18n/locales/ar.d.ts +17 -2
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +20 -5
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +17 -2
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +20 -5
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +17 -2
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/el.js +20 -5
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +17 -2
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +20 -5
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +17 -2
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +20 -5
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +17 -2
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +20 -5
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +17 -2
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +20 -5
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +17 -2
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +20 -5
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +17 -2
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +20 -5
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +17 -2
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +20 -5
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +17 -2
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +20 -5
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +17 -2
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +20 -5
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +17 -2
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ro.js +20 -5
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +17 -2
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +20 -5
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +17 -2
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sq.js +20 -5
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +17 -2
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/sv.js +20 -5
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +17 -2
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +20 -5
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +17 -2
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/locales/zh.js +20 -5
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +207 -206
- package/dist/locales/ar.json +20 -5
- package/dist/locales/de.json +20 -5
- package/dist/locales/el.json +20 -5
- package/dist/locales/en.json +20 -5
- package/dist/locales/es.json +20 -5
- package/dist/locales/fr.json +20 -5
- package/dist/locales/hi.json +20 -5
- package/dist/locales/it.json +20 -5
- package/dist/locales/ja.json +20 -5
- package/dist/locales/nl.json +20 -5
- package/dist/locales/pl.json +20 -5
- package/dist/locales/pt.json +20 -5
- package/dist/locales/ro.json +20 -5
- package/dist/locales/ru.json +20 -5
- package/dist/locales/sq.json +20 -5
- package/dist/locales/sv.json +20 -5
- package/dist/locales/tr.json +20 -5
- package/dist/locales/zh.json +20 -5
- 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/help-me-write-templates.d.ts +2 -2
- package/dist/patterns/help-me-write-templates/help-me-write-templates.d.ts.map +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/payment-automation-upsell/index.js +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 +13 -2
- 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-DS0b54Mv.js +0 -1183
- package/dist/_chunks/alia-sidebar-DS0b54Mv.js.map +0 -1
- package/dist/_chunks/breadcrumb-xgVpPH2H.js.map +0 -1
- package/dist/_chunks/chart-C2RBJERE.js +0 -705
- package/dist/_chunks/chart-C2RBJERE.js.map +0 -1
- package/dist/_chunks/color-picker-BRQ4Y9SO.js.map +0 -1
- package/dist/_chunks/dashboard-grid-SAGoyCtL.js +0 -691
- package/dist/_chunks/dashboard-grid-SAGoyCtL.js.map +0 -1
- package/dist/_chunks/date-picker-wRAcq2lt.js.map +0 -1
- package/dist/_chunks/date-range-picker-BOvHwWO5.js.map +0 -1
- package/dist/_chunks/date-time-picker-CLeLKuv9.js.map +0 -1
- package/dist/_chunks/dependent-selector-Bet3XAFj.js.map +0 -1
- package/dist/_chunks/dialog-D52AI4nF.js.map +0 -1
- package/dist/_chunks/freemium-paywall-B6ojVXq7.js.map +0 -1
- package/dist/_chunks/help-me-write-templates-B7L3zGsE.js.map +0 -1
- package/dist/_chunks/hover-card-BnTueNS2.js.map +0 -1
- package/dist/_chunks/key-value-pair-Ax8IJr1M.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/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/position-grid-D2D5_Tze.js.map +0 -1
- package/dist/_chunks/product-hub-panel-BSSiGGG4.js.map +0 -1
- package/dist/_chunks/radio-group-BT97ty7o.js.map +0 -1
- package/dist/_chunks/rich-text-editor-Blp4smUr.js.map +0 -1
- package/dist/_chunks/sheet-CNFW8mYZ.js.map +0 -1
- package/dist/_chunks/stat-51CDL4au.js.map +0 -1
- package/dist/_chunks/stepper-accordion-D7lnBGh2.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-CNFW8mYZ.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-DS0b54Mv.js.map
|