@alfadocs/ui-kit 1.71.1 → 1.73.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/{actions-cell-renderer-BXCpK2_0.js → actions-cell-renderer-B1yaOfQM.js} +3 -3
- package/dist/_chunks/{agenda-tray-CfwylhWf.js → agenda-tray-D-jvptdo.js} +3 -3
- package/dist/_chunks/{ai-credits-exhausted-notice-Bg8NpW2K.js → ai-credits-exhausted-notice-CwZnSACy.js} +2 -2
- package/dist/_chunks/{ai-credits-notice-DQ-r3iQU.js → ai-credits-notice-BNFcQoXo.js} +3 -3
- package/dist/_chunks/{ai-permission-notice-C00i6VhY.js → ai-permission-notice-CoW22jx1.js} +2 -2
- package/dist/_chunks/{ai-prompt-input-DzgyoKyk.js → ai-prompt-input-M6u29f87.js} +2 -2
- package/dist/_chunks/{alia-sidebar-DEMMoefU.js → alia-sidebar-DZoyUFW8.js} +292 -286
- package/dist/_chunks/{anamnesis-card-Bey9qQu4.js → anamnesis-card-BcadMmEM.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-rNwSrNWZ.js → anamnesis-summary-rows-BedVmSAB.js} +8 -8
- package/dist/_chunks/{appointment-peek-CpcqB8oO.js → appointment-peek-39BwVMUf.js} +3 -3
- package/dist/_chunks/{appointment-timeline-VFP6HoXT.js → appointment-timeline-CKwMXUid.js} +4 -4
- package/dist/_chunks/{appointment-tray-B3PDER3I.js → appointment-tray-Dwc8MSIQ.js} +3 -3
- package/dist/_chunks/{audio-recorder-4Ll0pwYK.js → audio-recorder-m7Jqvvcl.js} +3 -3
- package/dist/_chunks/{balance-badge-cell-BG3DMly4.js → balance-badge-cell-DG5JWB2p.js} +4 -4
- package/dist/_chunks/{bishop-score-Df8nF1qg.js → bishop-score-CdbU9Nl4.js} +2 -2
- package/dist/_chunks/{bmi-calculator-DjmQ04Ch.js → bmi-calculator-DnfiDh4Q.js} +2 -2
- package/dist/_chunks/{booking-B1pDbERi.js → booking-C-hRVLPy.js} +1404 -1373
- package/dist/_chunks/{button-D-MQxsA_.js → button-DohK_Ak_.js} +40 -27
- package/dist/_chunks/{button-group-DCOJhvm3.js → button-group-ZVb1Q-w4.js} +2 -2
- package/dist/_chunks/{calculator-dialog-BUfaWqvu.js → calculator-dialog-BsVVb8cT.js} +2 -2
- package/dist/_chunks/{calendar-BvOM8rG3.js → calendar-ClB-jWH1.js} +2 -2
- package/dist/_chunks/calendar-appointment-editor-dialog-Lji2y0qJ.js +10986 -0
- package/dist/_chunks/{care-plan-card-DJzbwJLl.js → care-plan-card-BYCPNDvA.js} +2 -2
- package/dist/_chunks/{care-plan-entry-card-DPJcP34v.js → care-plan-entry-card-4VaY2c96.js} +2 -2
- package/dist/_chunks/{care-plan-header-1HzbkYcR.js → care-plan-header-BzsAg6oY.js} +2 -2
- package/dist/_chunks/{carousel.agent-BaRsN-8H.js → carousel.agent-CkDXR3-8.js} +2 -2
- package/dist/_chunks/{chart-CwmyCuWe.js → chart-D4huJSru.js} +3 -3
- package/dist/_chunks/{chat-input-HtTbUUD6.js → chat-input-DwQ4_WXK.js} +31 -31
- package/dist/_chunks/{chat-message-C2VXQMoB.js → chat-message-CmFJdEre.js} +3 -3
- package/dist/_chunks/{code-block-RSKdF3E-.js → code-block-BTsCXVGI.js} +2 -2
- package/dist/_chunks/{connection-status-BOZC5QU5.js → connection-status-CVyCqxiY.js} +3 -3
- package/dist/_chunks/{contact-profile-card-CAwwOqHl.js → contact-profile-card-DKk94l-d.js} +2 -2
- package/dist/_chunks/{control-room-rail-BB6rCDWI.js → control-room-rail-CKZ2nemY.js} +3 -3
- package/dist/_chunks/{copy-field-BCT7APRE.js → copy-field-hgVSc51W.js} +2 -2
- package/dist/_chunks/{cycle-calculator-D2Y4LvgC.js → cycle-calculator-Ycp3li61.js} +2 -2
- package/dist/_chunks/{dashboard-grid-7JzaiKnk.js → dashboard-grid-DwJ_HV3d.js} +2 -2
- package/dist/_chunks/{data-table-Cty4-Jht.js → data-table-DTKGWUQm.js} +6 -6
- package/dist/_chunks/{data-table-tabs-BfrnefV5.js → data-table-tabs-DlTPtqoI.js} +3 -3
- package/dist/_chunks/{description-list-DQQ2OA_t.js → description-list-BxzDN9o2.js} +2 -2
- package/dist/_chunks/{dev-bypass-button--CPzzRSj.js → dev-bypass-button-B7ePcJcg.js} +2 -2
- package/dist/_chunks/{dialog-D6fkpRc4.js → dialog-C7RWaH08.js} +63 -56
- package/dist/_chunks/{document-preview-513f3iPn.js → document-preview-QEbr7jp1.js} +2 -2
- package/dist/_chunks/{document-scanner-Bd3wbzpI.js → document-scanner-BQP0Rqrt.js} +2 -2
- package/dist/_chunks/{due-date-calculator-41uZDkVR.js → due-date-calculator-B0gyOijA.js} +2 -2
- package/dist/_chunks/{editable-currency-cell-renderer-1ijmzNWh.js → editable-currency-cell-renderer-rWYiF4EI.js} +3 -3
- package/dist/_chunks/{editable-description-DnAFi360.js → editable-description-KU56SP4P.js} +3 -3
- package/dist/_chunks/{editor-overlay-CpVO1-Kk.js → editor-overlay-Dc8uVxEp.js} +2 -2
- package/dist/_chunks/{empty-state-pL1qum99.js → empty-state-DwJ5YNzz.js} +2 -2
- package/dist/_chunks/{entity-summary-C2B8yNmc.js → entity-summary-BLxzSSXK.js} +3 -3
- package/dist/_chunks/{error-boundary-Dzgu3O6W.js → error-boundary-tAn_GuCu.js} +2 -2
- package/dist/_chunks/{error-page-DirZKDz2.js → error-page-Bhai-spN.js} +2 -2
- package/dist/_chunks/{face-scheme-CSJdRNad.js → face-scheme-BIPJqw9f.js} +5 -5
- package/dist/_chunks/{fetal-weight-DycD_Vqr.js → fetal-weight-CrtBFJl-.js} +2 -2
- package/dist/_chunks/{field-array-BJYc1xSu.js → field-array-CA-gn526.js} +3 -3
- package/dist/_chunks/{file-manager-D4cPnRhL.js → file-manager-Ct5QpZZI.js} +8 -8
- package/dist/_chunks/{finished-terminal-DuF3xrUv.js → finished-terminal-D8ohcFVS.js} +2 -2
- package/dist/_chunks/{fiscal-code-input-DwHb2nVW.js → fiscal-code-input-BzWmNDnl.js} +2 -2
- package/dist/_chunks/{forgot-password-form-BGPc8TGr.js → forgot-password-form-D6kB72OD.js} +2 -2
- package/dist/_chunks/{freemium-paywall-C73C8Rgd.js → freemium-paywall-CM0zQSDE.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-Du53p8MH.js → gestational-age-calculator-Bu_a-K9z.js} +2 -2
- package/dist/_chunks/{hcg-doubling-DwTcjfke.js → hcg-doubling-BnopYgd-.js} +2 -2
- package/dist/_chunks/{header-_TppWBpK.js → header-l_B8MV0g.js} +2 -2
- package/dist/_chunks/{header-settings-CAC0Yl0t.js → header-settings-DBlTL6Qj.js} +4 -4
- package/dist/_chunks/{heatmap-DbZIQg14.js → heatmap-Ba9cgfSY.js} +6 -6
- package/dist/_chunks/{help-me-write-templates-5WkUfvc_.js → help-me-write-templates-Ds1FY-WY.js} +7 -7
- package/dist/_chunks/{hover-card-CTNhQXWS.js → hover-card-CuRIA4wN.js} +2 -2
- package/dist/_chunks/{icon-button-C_1TgRiK.js → icon-button-S8_weU3g.js} +2 -2
- package/dist/_chunks/{icon-button-group-NIHji7_y.js → icon-button-group-CRKFR48b.js} +4 -8
- package/dist/_chunks/{icon-picker-Dq4O32K8.js → icon-picker-Bkm9m7ju.js} +3 -3
- package/dist/_chunks/{image-cropper-s8ej8cxa.js → image-cropper-Ch80rFdt.js} +2 -2
- package/dist/_chunks/{info-tip-cYszyg6h.js → info-tip-Cfd5SKbY.js} +2 -2
- package/dist/_chunks/{insert-result-h3WL-gMo.js → insert-result-CDMMt7q8.js} +2 -2
- package/dist/_chunks/{key-value-pair-BscGwZsJ.js → key-value-pair-BoXOtBL1.js} +2 -2
- package/dist/_chunks/{kit-extensions-CYvLL4ee.js → kit-extensions-DgBi3tsK.js} +6 -6
- package/dist/_chunks/{link-cell-renderer-DtIsQWDO.js → link-cell-renderer-BDxxpfJM.js} +2 -2
- package/dist/_chunks/loading-guard-C1gbJBA4.js +17 -0
- package/dist/_chunks/{locale-picker-CeveTnDK.js → locale-picker-KT-Vz3bx.js} +3 -3
- package/dist/_chunks/{login-dev-card-CWpoTuVY.js → login-dev-card-pnJbVaoQ.js} +2 -2
- package/dist/_chunks/{map-view-CtohteZD.js → map-view-C6MIVaqn.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-BeWm-Efp.js → marketplace-app-shell-B0ix9yNI.js} +4 -4
- package/dist/_chunks/{message-card-C_ksqIYM.js → message-card-CvCnCssc.js} +3 -3
- package/dist/_chunks/{message-tray-DCoQ4GQb.js → message-tray-IJYvy6Cf.js} +4 -4
- package/dist/_chunks/{notes-panel-BXN46XkF.js → notes-panel-C_QshXyI.js} +5 -5
- package/dist/_chunks/{notification-card-c2oX8j3F.js → notification-card-CPW4poUr.js} +3 -3
- package/dist/_chunks/{notification-tray-Cp18MW5b.js → notification-tray-0OkA2duS.js} +4 -4
- package/dist/_chunks/{optical-prescription-D5c7FBlT.js → optical-prescription-CMM1Y6Xg.js} +2 -2
- package/dist/_chunks/{panel-subview-BPU7220K.js → panel-subview-DCyvn-49.js} +2 -2
- package/dist/_chunks/{patient-details-qWOsn1MX.js → patient-details-Cd_dCqkg.js} +3 -3
- package/dist/_chunks/{patient-field-row-CAl5ydtX.js → patient-field-row-D6Ftm46u.js} +6 -6
- package/dist/_chunks/{patient-search-BADdx3M1.js → patient-search-DuBdxv1w.js} +3 -3
- package/dist/_chunks/{patient-summary-card-BhuRh9AE.js → patient-summary-card-BSOHR4Ol.js} +5 -5
- package/dist/_chunks/{payment-automation-upsell-CiwF5UrC.js → payment-automation-upsell-AQpHOS1X.js} +2 -2
- package/dist/_chunks/{payment-request-card-bysjRZrP.js → payment-request-card-MndSlVoK.js} +3 -3
- package/dist/_chunks/{periodontal-chart-DCcOEYC6.js → periodontal-chart-_y4Ck7_P.js} +2 -2
- package/dist/_chunks/{periodontal-chart-card-CxdjXFb3.js → periodontal-chart-card-Bx6PeS3b.js} +2 -2
- package/dist/_chunks/{popover-4ZVtH_At.js → popover-Da1ekjV1.js} +2 -2
- package/dist/_chunks/{practice-results-BzThnpnm.js → practice-results-B4Z5q46r.js} +5 -5
- package/dist/_chunks/{pregnancy-dating-EFcFUJkQ.js → pregnancy-dating-CvNFirHt.js} +2 -2
- package/dist/_chunks/{pregnancy-weight-gain-BVvyL-j1.js → pregnancy-weight-gain--Bqv6AWu.js} +2 -2
- package/dist/_chunks/{privacy-lock-CEYJ8ehu.js → privacy-lock-CcrjIbBv.js} +3 -3
- package/dist/_chunks/{privacy-mask-CCz9zuIh.js → privacy-mask-BDVkikTm.js} +2 -2
- package/dist/_chunks/{product-hub-panel-YuFbNPlT.js → product-hub-panel-Blag8t8f.js} +3 -3
- package/dist/_chunks/{public-header.agent-DXRA7ebK.js → public-header.agent-DPPdCBi_.js} +3 -3
- package/dist/_chunks/{radiograph-panel.agent-4UllIoTQ.js → radiograph-panel.agent-ESnkuDfH.js} +5 -5
- package/dist/_chunks/{registration-form-1B0PTDal.js → registration-form-BGSVMAga.js} +3 -3
- package/dist/_chunks/{reviews-panel-sbsVmmCA.js → reviews-panel-UzQQLb-z.js} +4 -4
- package/dist/_chunks/{rich-text-editor-56dSsyZI.js → rich-text-editor-BXFgcvBW.js} +8 -8
- package/dist/_chunks/{session-countdown-DWY61IcV.js → session-countdown-C4tzbJVc.js} +22 -23
- package/dist/_chunks/{sheet-D2PfJl8n.js → sheet-uZZXaO_S.js} +2 -2
- package/dist/_chunks/sign-in-with-alfadocs-button-DzrNgbWv.js +62 -0
- package/dist/_chunks/{signature-request-DAmNj_uq.js → signature-request-ldmXj2X6.js} +5 -5
- package/dist/_chunks/{signed-out-frame-Rg_GVDnl.js → signed-out-frame-G-3ATOdu.js} +3 -3
- package/dist/_chunks/{slot-grid-D_gix9mJ.js → slot-grid-uA9j7Nik.js} +4 -4
- package/dist/_chunks/{social-sign-in-button-yUqwhnPZ.js → social-sign-in-button-BqYZxbXI.js} +50 -34
- package/dist/_chunks/{streaming-text-DbqKTsmj.js → streaming-text-Nb3Q7L94.js} +2 -2
- package/dist/_chunks/{task-card-Ci2XbLmq.js → task-card-C4HJUKVw.js} +2 -2
- package/dist/_chunks/{task-editor-BomyxGoZ.js → task-editor-BTeUFGUX.js} +201 -201
- package/dist/_chunks/{task-tray-Dnc72nl-.js → task-tray-DZQGhDdc.js} +4 -4
- package/dist/_chunks/{tasks-panel-ATz9JDy8.js → tasks-panel-Cmr0oMvc.js} +6 -6
- package/dist/_chunks/{theme-toggle-DT_Jn4DC.js → theme-toggle-DTrUzIBG.js} +3 -3
- package/dist/_chunks/{toast-6T519aLz.js → toast-BNoN8Qjh.js} +2 -2
- package/dist/_chunks/{token-insert-menu-CQvV4u1m.js → token-insert-menu-DtAnBd0x.js} +2 -2
- package/dist/_chunks/{tool-rail-C-M3eVdY.js → tool-rail-C_9lm0TC.js} +2 -2
- package/dist/_chunks/{tooth-scheme-Dkh4JwzT.js → tooth-scheme-COJJkdsi.js} +2 -2
- package/dist/_chunks/{unit-converter-CIoTmCmP.js → unit-converter-D59L-gkf.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-1gjZuup4.js → use-appointment-details-read-BWbOiLVw.js} +11 -11
- package/dist/_chunks/{voice-control-panel-B8Lrk0C4.js → voice-control-panel-DQJwe6_Q.js} +6 -6
- package/dist/_chunks/{wallet-pay-button-DFP5FW0D.js → wallet-pay-button-DajFzhHK.js} +62 -46
- package/dist/_chunks/{warning-stack-BhHUmRiD.js → warning-stack-3S7e2q07.js} +3 -3
- package/dist/_chunks/{widget-picker-DlNPGcnu.js → widget-picker-B9HpT2Tb.js} +2 -2
- package/dist/_chunks/{workflow-map-ln4_OG8A.js → workflow-map-BcfOwsSB.js} +5 -5
- package/dist/_chunks/{workflow-webhook-action-D6K7Jgc2.js → workflow-webhook-action-BvVPZVpG.js} +182 -187
- package/dist/agent-catalog.json +2 -2
- package/dist/agent-i18n/en.json +1 -1
- package/dist/components/_shared/compact-editor-fields.d.ts +2 -1
- package/dist/components/_shared/loading-guard.d.ts +20 -0
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-credits-notice/index.js +2 -2
- package/dist/components/ai-permission-notice/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/appointment-card/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/audio-recorder/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/booking-types.d.ts +8 -0
- package/dist/components/booking/details-form.d.ts +2 -0
- package/dist/components/booking/index.js +1 -1
- package/dist/components/button/button.d.ts +7 -0
- package/dist/components/button/index.js +2 -2
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/care-plan-header/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/connection-status/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/control-room-rail/index.js +1 -1
- package/dist/components/copy-field/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/dashboard-grid/index.js +1 -1
- package/dist/components/data-table/index.js +4 -4
- package/dist/components/data-table-tabs/index.js +1 -1
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/dev-bypass-button/index.js +1 -1
- package/dist/components/dialog/dialog.d.ts +8 -0
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +1 -1
- package/dist/components/editable-description/index.js +1 -1
- package/dist/components/editor-overlay/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/error-boundary/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/field-array/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/finished-terminal/index.js +1 -1
- package/dist/components/fiscal-code-input/index.js +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/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/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/icon-picker/index.js +1 -1
- package/dist/components/image-cropper/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/locale-picker/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/panel-subview/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-search/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/periodontal-chart/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/popover/index.js +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/privacy-lock/index.js +1 -1
- package/dist/components/product-hub-tray/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/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/session-countdown/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/social-sign-in-button/index.js +1 -1
- package/dist/components/social-sign-in-button/social-sign-in-button.d.ts +4 -2
- package/dist/components/streaming-text/index.js +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/token-insert-menu/index.js +1 -1
- package/dist/components/tool-rail/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/components/wallet-pay-button/index.js +1 -1
- package/dist/components/wallet-pay-button/wallet-pay-button.d.ts +4 -2
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/widget-picker/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/host-compat.css +4 -1
- package/dist/i18n/locales/ar.d.ts +67 -0
- package/dist/i18n/locales/ar.js +67 -0
- package/dist/i18n/locales/de.d.ts +40 -0
- package/dist/i18n/locales/de.js +40 -0
- package/dist/i18n/locales/el.d.ts +40 -0
- package/dist/i18n/locales/el.js +40 -0
- package/dist/i18n/locales/en.d.ts +40 -0
- package/dist/i18n/locales/en.js +43 -0
- package/dist/i18n/locales/es.d.ts +40 -0
- package/dist/i18n/locales/es.js +40 -0
- package/dist/i18n/locales/fr.d.ts +40 -0
- package/dist/i18n/locales/fr.js +40 -0
- package/dist/i18n/locales/hi.d.ts +40 -0
- package/dist/i18n/locales/hi.js +40 -0
- package/dist/i18n/locales/it.d.ts +40 -0
- package/dist/i18n/locales/it.js +40 -0
- package/dist/i18n/locales/ja.d.ts +40 -0
- package/dist/i18n/locales/ja.js +40 -0
- package/dist/i18n/locales/nl.d.ts +40 -0
- package/dist/i18n/locales/nl.js +40 -0
- package/dist/i18n/locales/pl.d.ts +49 -0
- package/dist/i18n/locales/pl.js +49 -0
- package/dist/i18n/locales/pt.d.ts +40 -0
- package/dist/i18n/locales/pt.js +40 -0
- package/dist/i18n/locales/ro.d.ts +49 -0
- package/dist/i18n/locales/ro.js +49 -0
- package/dist/i18n/locales/ru.d.ts +49 -0
- package/dist/i18n/locales/ru.js +49 -0
- package/dist/i18n/locales/sq.d.ts +40 -0
- package/dist/i18n/locales/sq.js +40 -0
- package/dist/i18n/locales/sv.d.ts +40 -0
- package/dist/i18n/locales/sv.js +40 -0
- package/dist/i18n/locales/tr.d.ts +40 -0
- package/dist/i18n/locales/tr.js +40 -0
- package/dist/i18n/locales/zh.d.ts +40 -0
- package/dist/i18n/locales/zh.js +40 -0
- package/dist/index.js +214 -213
- package/dist/locales/ar.json +67 -0
- package/dist/locales/de.json +40 -0
- package/dist/locales/el.json +40 -0
- package/dist/locales/en.json +40 -0
- package/dist/locales/es.json +40 -0
- package/dist/locales/fr.json +40 -0
- package/dist/locales/hi.json +40 -0
- package/dist/locales/it.json +40 -0
- package/dist/locales/ja.json +40 -0
- package/dist/locales/nl.json +40 -0
- package/dist/locales/pl.json +49 -0
- package/dist/locales/pt.json +40 -0
- package/dist/locales/ro.json +49 -0
- package/dist/locales/ru.json +49 -0
- package/dist/locales/sq.json +40 -0
- package/dist/locales/sv.json +40 -0
- package/dist/locales/tr.json +40 -0
- package/dist/locales/zh.json +40 -0
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/calendar-appointment-editor-dialog.d.ts +19 -0
- package/dist/patterns/calendar/calendar-custom-recurrence.d.ts +54 -0
- package/dist/patterns/calendar/calendar.model.d.ts +35 -1
- package/dist/patterns/calendar/calendar.sheets.d.ts +11 -0
- package/dist/patterns/calendar/index.d.ts +3 -1
- package/dist/patterns/calendar/index.js +18 -17
- package/dist/patterns/error-page/index.js +1 -1
- package/dist/patterns/forgot-password-form/index.js +1 -1
- package/dist/patterns/help-me-write-templates/index.js +2 -2
- package/dist/patterns/login-form/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +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/patterns/workflow-webhook-action/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/calendar-workspace-Ct8_454k.js +0 -10593
- package/dist/_chunks/sign-in-with-alfadocs-button-CIv0GgeA.js +0 -49
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { jsxs as p, jsx as e, Fragment as be } from "react/jsx-runtime";
|
|
2
|
-
import { useId as
|
|
3
|
-
import * as
|
|
2
|
+
import { useId as Xe, forwardRef as Q, useState as R, useRef as E, useCallback as L, useEffect as ne, useMemo as de } from "react";
|
|
3
|
+
import * as Qe from "@radix-ui/react-dialog";
|
|
4
4
|
import { useTranslation as x } from "react-i18next";
|
|
5
5
|
import { F as Ge } from "./floating-action-button-BesoUmO_.js";
|
|
6
|
-
import { I as C } from "./icon-button-
|
|
7
|
-
import { S as X } from "./sheet-
|
|
6
|
+
import { I as C } from "./icon-button-S8_weU3g.js";
|
|
7
|
+
import { S as X } from "./sheet-uZZXaO_S.js";
|
|
8
8
|
import { X as xe } from "./x-B5YnXwCz.js";
|
|
9
|
-
import { A as
|
|
10
|
-
import { A as
|
|
11
|
-
import { B as _ } from "./button-
|
|
12
|
-
import { C as
|
|
13
|
-
import { C as
|
|
14
|
-
import { C as we, P as
|
|
15
|
-
import { S as
|
|
9
|
+
import { A as Ke } from "./astroid-BN4f5VXU.js";
|
|
10
|
+
import { A as G } from "./avatar-BPiPL7ND.js";
|
|
11
|
+
import { B as _ } from "./button-DohK_Ak_.js";
|
|
12
|
+
import { C as Me } from "./chat-container-baxzy8k8.js";
|
|
13
|
+
import { C as Ze } from "./chat-message-CmFJdEre.js";
|
|
14
|
+
import { C as we, P as Je } from "./chat-input-DwQ4_WXK.js";
|
|
15
|
+
import { S as Ye } from "./streaming-text-Nb3Q7L94.js";
|
|
16
16
|
import { a as Ne, S as ye } from "./suggestion-chip-BNRWZL51.js";
|
|
17
|
-
import { T as
|
|
17
|
+
import { T as Ce } from "./typing-indicator-B1RkE8jD.js";
|
|
18
18
|
import { P as Ve } from "./progress-D_g_Sl2g.js";
|
|
19
19
|
import { u as ve } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
20
20
|
import { P as Ae } from "./pencil-B1sKKyuT.js";
|
|
21
21
|
import { S as es } from "./square-DASBRZ0U.js";
|
|
22
22
|
import { C as ss } from "./check-DrFSN__t.js";
|
|
23
23
|
import { C as as } from "./copy-vRpqqHtY.js";
|
|
24
|
-
import { D as
|
|
25
|
-
import { R as
|
|
24
|
+
import { D as rs } from "./download-CfYKJO_j.js";
|
|
25
|
+
import { R as is } from "./refresh-cw-DnI0cLFC.js";
|
|
26
26
|
import { c as ts } from "./createLucideIcon-DhHxpK9K.js";
|
|
27
27
|
import { M as ns } from "./mic-CUklMZGF.js";
|
|
28
28
|
import { P as ds } from "./plus-DzMQ_c6b.js";
|
|
@@ -47,17 +47,17 @@ const ms = [
|
|
|
47
47
|
], us = ts("shield-x", ms);
|
|
48
48
|
function le({
|
|
49
49
|
className: s,
|
|
50
|
-
size:
|
|
50
|
+
size: r,
|
|
51
51
|
variant: t = "gradient"
|
|
52
52
|
}) {
|
|
53
|
-
const a = `alia-asteroid-gradient-${
|
|
53
|
+
const a = `alia-asteroid-gradient-${Xe().replace(/:/g, "")}`;
|
|
54
54
|
return /* @__PURE__ */ p(
|
|
55
55
|
"svg",
|
|
56
56
|
{
|
|
57
57
|
xmlns: "http://www.w3.org/2000/svg",
|
|
58
58
|
viewBox: "0 0 24 24",
|
|
59
|
-
width:
|
|
60
|
-
height:
|
|
59
|
+
width: r,
|
|
60
|
+
height: r,
|
|
61
61
|
fill: "none",
|
|
62
62
|
strokeLinecap: "round",
|
|
63
63
|
strokeLinejoin: "round",
|
|
@@ -91,7 +91,7 @@ function le({
|
|
|
91
91
|
}
|
|
92
92
|
);
|
|
93
93
|
}
|
|
94
|
-
const
|
|
94
|
+
const ke = {
|
|
95
95
|
sm: {
|
|
96
96
|
box: "ds:size-[calc(var(--spacing-md)*2)]",
|
|
97
97
|
icon: "ds:size-4"
|
|
@@ -107,16 +107,16 @@ const Ce = {
|
|
|
107
107
|
};
|
|
108
108
|
function U({
|
|
109
109
|
size: s,
|
|
110
|
-
label:
|
|
110
|
+
label: r,
|
|
111
111
|
appearance: t = "sparkle",
|
|
112
112
|
loading: d = !1
|
|
113
113
|
}) {
|
|
114
|
-
const a =
|
|
114
|
+
const a = ke[s];
|
|
115
115
|
return t === "spinner" ? /* @__PURE__ */ e(
|
|
116
116
|
"span",
|
|
117
117
|
{
|
|
118
118
|
role: "img",
|
|
119
|
-
"aria-label":
|
|
119
|
+
"aria-label": r,
|
|
120
120
|
className: [
|
|
121
121
|
"ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center",
|
|
122
122
|
"ds:rounded-[var(--radius-full)]",
|
|
@@ -142,7 +142,7 @@ function U({
|
|
|
142
142
|
"span",
|
|
143
143
|
{
|
|
144
144
|
role: "img",
|
|
145
|
-
"aria-label":
|
|
145
|
+
"aria-label": r,
|
|
146
146
|
className: [
|
|
147
147
|
"ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center",
|
|
148
148
|
"ds:rounded-[var(--radius-full)]",
|
|
@@ -161,14 +161,14 @@ function U({
|
|
|
161
161
|
}
|
|
162
162
|
function ps({
|
|
163
163
|
size: s,
|
|
164
|
-
label:
|
|
164
|
+
label: r
|
|
165
165
|
}) {
|
|
166
|
-
const t =
|
|
166
|
+
const t = ke[s];
|
|
167
167
|
return /* @__PURE__ */ e(
|
|
168
168
|
"span",
|
|
169
169
|
{
|
|
170
170
|
role: "img",
|
|
171
|
-
"aria-label":
|
|
171
|
+
"aria-label": r,
|
|
172
172
|
className: [
|
|
173
173
|
"ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center",
|
|
174
174
|
"ds:rounded-[var(--radius-full)]",
|
|
@@ -181,7 +181,7 @@ function ps({
|
|
|
181
181
|
}
|
|
182
182
|
);
|
|
183
183
|
}
|
|
184
|
-
const
|
|
184
|
+
const ze = [
|
|
185
185
|
"ds:rounded-[var(--radius-sm)]",
|
|
186
186
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
187
187
|
"ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
@@ -189,18 +189,18 @@ const ke = [
|
|
|
189
189
|
].join(" ");
|
|
190
190
|
function fs({
|
|
191
191
|
note: s,
|
|
192
|
-
focusRef:
|
|
192
|
+
focusRef: r
|
|
193
193
|
}) {
|
|
194
194
|
return /* @__PURE__ */ p(
|
|
195
195
|
"div",
|
|
196
196
|
{
|
|
197
|
-
ref:
|
|
197
|
+
ref: r,
|
|
198
198
|
role: "status",
|
|
199
199
|
tabIndex: -1,
|
|
200
200
|
className: [
|
|
201
201
|
"ds:flex ds:w-full ds:flex-col ds:items-center ds:text-center",
|
|
202
202
|
"ds:gap-[var(--spacing-xs)]",
|
|
203
|
-
|
|
203
|
+
ze
|
|
204
204
|
].join(" "),
|
|
205
205
|
"data-testid": "alia-ended-divider",
|
|
206
206
|
children: [
|
|
@@ -216,23 +216,23 @@ function fs({
|
|
|
216
216
|
}
|
|
217
217
|
);
|
|
218
218
|
}
|
|
219
|
-
function gs(s,
|
|
220
|
-
return s ? s.slot ? { slot: s.slot } : { name: s.name, src: s.src } : { slot: /* @__PURE__ */ e(ps, { size: "sm", label:
|
|
219
|
+
function gs(s, r) {
|
|
220
|
+
return s ? s.slot ? { slot: s.slot } : { name: s.name, src: s.src } : { slot: /* @__PURE__ */ e(ps, { size: "sm", label: r }) };
|
|
221
221
|
}
|
|
222
|
-
function te(s,
|
|
222
|
+
function te(s, r) {
|
|
223
223
|
const t = s.activeElement;
|
|
224
|
-
return !t || t === s.body || t === s.documentElement ? !0 :
|
|
224
|
+
return !t || t === s.body || t === s.documentElement ? !0 : r != null && t !== r && t.contains(r);
|
|
225
225
|
}
|
|
226
226
|
function hs({
|
|
227
227
|
assistantName: s,
|
|
228
|
-
avatarSrc:
|
|
228
|
+
avatarSrc: r,
|
|
229
229
|
greeting: t,
|
|
230
230
|
subtitle: d,
|
|
231
231
|
suggestions: a,
|
|
232
|
-
onSuggestion:
|
|
232
|
+
onSuggestion: c,
|
|
233
233
|
onChipClick: f
|
|
234
234
|
}) {
|
|
235
|
-
const { t:
|
|
235
|
+
const { t: m } = x("ui"), g = "alia-empty-state-heading";
|
|
236
236
|
return /* @__PURE__ */ p(
|
|
237
237
|
"section",
|
|
238
238
|
{
|
|
@@ -246,7 +246,7 @@ function hs({
|
|
|
246
246
|
].join(" "),
|
|
247
247
|
"data-testid": "alia-empty-state",
|
|
248
248
|
children: [
|
|
249
|
-
|
|
249
|
+
r ? /* @__PURE__ */ e(G, { name: s, src: r, size: "xl" }) : /* @__PURE__ */ e(
|
|
250
250
|
U,
|
|
251
251
|
{
|
|
252
252
|
size: "xl",
|
|
@@ -268,7 +268,7 @@ function hs({
|
|
|
268
268
|
a && a.length > 0 ? /* @__PURE__ */ e("div", { className: "ds:w-full ds:max-w-[40rem]", children: /* @__PURE__ */ e(
|
|
269
269
|
Ne,
|
|
270
270
|
{
|
|
271
|
-
label:
|
|
271
|
+
label: m("alia.exampleQuestions"),
|
|
272
272
|
className: "ds:justify-center",
|
|
273
273
|
children: a.map((l) => /* @__PURE__ */ e(
|
|
274
274
|
ye,
|
|
@@ -277,7 +277,7 @@ function hs({
|
|
|
277
277
|
startIcon: l.icon,
|
|
278
278
|
keepOnSelect: !0,
|
|
279
279
|
onClick: f,
|
|
280
|
-
onSelect: () =>
|
|
280
|
+
onSelect: () => c == null ? void 0 : c(l),
|
|
281
281
|
children: l.label
|
|
282
282
|
},
|
|
283
283
|
l.id
|
|
@@ -290,29 +290,30 @@ function hs({
|
|
|
290
290
|
}
|
|
291
291
|
function vs({
|
|
292
292
|
message: s,
|
|
293
|
-
assistantName:
|
|
293
|
+
assistantName: r,
|
|
294
294
|
avatarSrc: t,
|
|
295
|
-
renderMarkdown: d
|
|
295
|
+
renderMarkdown: d,
|
|
296
|
+
density: a
|
|
296
297
|
}) {
|
|
297
|
-
const { t:
|
|
298
|
+
const { t: c, i18n: f } = x("ui"), m = c("chat.message.role.assistant"), g = de(() => {
|
|
298
299
|
if (!s.timestamp) return null;
|
|
299
|
-
const
|
|
300
|
-
return Number.isNaN(
|
|
300
|
+
const n = s.timestamp instanceof Date ? s.timestamp : new Date(s.timestamp);
|
|
301
|
+
return Number.isNaN(n.getTime()) ? null : new Intl.DateTimeFormat(f.language, {
|
|
301
302
|
hour: "2-digit",
|
|
302
303
|
minute: "2-digit"
|
|
303
|
-
}).format(
|
|
304
|
-
}, [s.timestamp,
|
|
304
|
+
}).format(n);
|
|
305
|
+
}, [s.timestamp, f.language]), l = g ? c("chat.message.label", { role: m, time: g }) : c("chat.message.labelNoTime", { role: m });
|
|
305
306
|
return /* @__PURE__ */ p(
|
|
306
307
|
"article",
|
|
307
308
|
{
|
|
308
|
-
"aria-label":
|
|
309
|
+
"aria-label": l,
|
|
309
310
|
className: "ds:flex ds:w-full ds:items-start ds:flex-row ds:gap-[var(--spacing-sm)]",
|
|
310
311
|
children: [
|
|
311
|
-
t ? /* @__PURE__ */ e(
|
|
312
|
+
t ? /* @__PURE__ */ e(G, { name: r, src: t, size: "sm" }) : /* @__PURE__ */ e(
|
|
312
313
|
U,
|
|
313
314
|
{
|
|
314
315
|
size: "sm",
|
|
315
|
-
label:
|
|
316
|
+
label: r,
|
|
316
317
|
appearance: "spinner",
|
|
317
318
|
loading: !0
|
|
318
319
|
}
|
|
@@ -330,13 +331,16 @@ function vs({
|
|
|
330
331
|
"ds:bg-muted/40 ds:text-foreground",
|
|
331
332
|
"ds:rounded-[var(--radius-md)] ds:rounded-es-[var(--radius-sm)]"
|
|
332
333
|
].join(" "),
|
|
333
|
-
children: /* @__PURE__ */ e(
|
|
334
|
-
|
|
334
|
+
children: s.content ? /* @__PURE__ */ e(
|
|
335
|
+
Ye,
|
|
335
336
|
{
|
|
336
337
|
content: s.content,
|
|
337
338
|
isStreaming: !0,
|
|
338
339
|
renderMarkdown: d
|
|
339
340
|
}
|
|
341
|
+
) : (
|
|
342
|
+
// Before the first words arrive, the dots, not an empty bubble.
|
|
343
|
+
/* @__PURE__ */ e(Ce, { label: c("chat.typing"), density: a })
|
|
340
344
|
)
|
|
341
345
|
}
|
|
342
346
|
) })
|
|
@@ -346,16 +350,16 @@ function vs({
|
|
|
346
350
|
}
|
|
347
351
|
function bs({
|
|
348
352
|
assistantName: s,
|
|
349
|
-
avatarSrc:
|
|
353
|
+
avatarSrc: r,
|
|
350
354
|
onNewConversation: t,
|
|
351
355
|
headerEndSlot: d,
|
|
352
356
|
density: a
|
|
353
357
|
}) {
|
|
354
|
-
const { t:
|
|
358
|
+
const { t: c } = x("ui");
|
|
355
359
|
return /* @__PURE__ */ p(
|
|
356
360
|
"header",
|
|
357
361
|
{
|
|
358
|
-
"aria-label":
|
|
362
|
+
"aria-label": c("alia.headerLabel"),
|
|
359
363
|
className: [
|
|
360
364
|
"ds:flex ds:shrink-0 ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
361
365
|
// Soft drop-shadow on the block-end edge in place of a `border-b`
|
|
@@ -368,11 +372,11 @@ function bs({
|
|
|
368
372
|
].join(" "),
|
|
369
373
|
"data-testid": "alia-header",
|
|
370
374
|
children: [
|
|
371
|
-
|
|
372
|
-
|
|
375
|
+
r ? /* @__PURE__ */ e(
|
|
376
|
+
G,
|
|
373
377
|
{
|
|
374
378
|
name: s,
|
|
375
|
-
src:
|
|
379
|
+
src: r,
|
|
376
380
|
size: a === "compact" ? "sm" : "md"
|
|
377
381
|
}
|
|
378
382
|
) : /* @__PURE__ */ e(
|
|
@@ -392,7 +396,7 @@ function bs({
|
|
|
392
396
|
size: "sm",
|
|
393
397
|
startIcon: /* @__PURE__ */ e(ds, { "aria-hidden": "true" }),
|
|
394
398
|
onClick: t,
|
|
395
|
-
children:
|
|
399
|
+
children: c("alia.newConversation")
|
|
396
400
|
}
|
|
397
401
|
) : null,
|
|
398
402
|
d
|
|
@@ -402,18 +406,18 @@ function bs({
|
|
|
402
406
|
);
|
|
403
407
|
}
|
|
404
408
|
function xs(s) {
|
|
405
|
-
var
|
|
406
|
-
return typeof navigator > "u" || typeof ((
|
|
409
|
+
var r;
|
|
410
|
+
return typeof navigator > "u" || typeof ((r = navigator.clipboard) == null ? void 0 : r.writeText) != "function" ? Promise.resolve(!1) : navigator.clipboard.writeText(s).then(() => !0).catch(() => !1);
|
|
407
411
|
}
|
|
408
|
-
function ws(s,
|
|
412
|
+
function ws(s, r) {
|
|
409
413
|
if (typeof window > "u" || typeof URL > "u" || typeof URL.createObjectURL != "function")
|
|
410
414
|
return;
|
|
411
415
|
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 =
|
|
416
|
+
a.href = d, a.download = r, document.body.appendChild(a), a.click(), a.remove(), URL.revokeObjectURL(d);
|
|
413
417
|
}
|
|
414
418
|
function Ns(s) {
|
|
415
|
-
const
|
|
416
|
-
return `${s.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "") || "assistant"}-prompt-${
|
|
419
|
+
const r = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
|
|
420
|
+
return `${s.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "") || "assistant"}-prompt-${r}.md`;
|
|
417
421
|
}
|
|
418
422
|
const ys = () => {
|
|
419
423
|
var s;
|
|
@@ -421,57 +425,57 @@ const ys = () => {
|
|
|
421
425
|
};
|
|
422
426
|
function Cs({
|
|
423
427
|
message: s,
|
|
424
|
-
actions:
|
|
428
|
+
actions: r,
|
|
425
429
|
assistantName: t,
|
|
426
430
|
canRegenerate: d,
|
|
427
431
|
onCopyMessage: a,
|
|
428
|
-
onDownloadMessage:
|
|
432
|
+
onDownloadMessage: c,
|
|
429
433
|
onRegenerate: f
|
|
430
434
|
}) {
|
|
431
|
-
const { t:
|
|
435
|
+
const { t: m } = x("ui"), [g, l] = R(!1), n = L(() => {
|
|
432
436
|
xs(s.content).then((b) => {
|
|
433
437
|
b && (l(!0), setTimeout(() => l(!1), 2e3), a == null || a(s.id));
|
|
434
438
|
});
|
|
435
|
-
}, [s.content, s.id, a]),
|
|
436
|
-
ws(s.content, Ns(t)),
|
|
437
|
-
}, [s.content, s.id, t,
|
|
439
|
+
}, [s.content, s.id, a]), h = L(() => {
|
|
440
|
+
ws(s.content, Ns(t)), c == null || c(s.id);
|
|
441
|
+
}, [s.content, s.id, t, c]);
|
|
438
442
|
return /* @__PURE__ */ p(be, { children: [
|
|
439
|
-
|
|
443
|
+
r.includes("copy") && ys() ? /* @__PURE__ */ e(
|
|
440
444
|
C,
|
|
441
445
|
{
|
|
442
446
|
icon: g ? /* @__PURE__ */ e(ss, {}) : /* @__PURE__ */ e(as, {}),
|
|
443
|
-
"aria-label":
|
|
447
|
+
"aria-label": m(g ? "alia.copied" : "alia.copyMessage"),
|
|
444
448
|
intent: "ghost",
|
|
445
449
|
size: "sm",
|
|
446
450
|
onClick: n
|
|
447
451
|
}
|
|
448
452
|
) : null,
|
|
449
|
-
|
|
453
|
+
r.includes("download") ? /* @__PURE__ */ e(
|
|
450
454
|
C,
|
|
451
455
|
{
|
|
452
|
-
icon: /* @__PURE__ */ e(
|
|
453
|
-
"aria-label":
|
|
456
|
+
icon: /* @__PURE__ */ e(rs, {}),
|
|
457
|
+
"aria-label": m("alia.downloadMessage"),
|
|
454
458
|
intent: "ghost",
|
|
455
459
|
size: "sm",
|
|
456
|
-
onClick:
|
|
460
|
+
onClick: h
|
|
457
461
|
}
|
|
458
462
|
) : null,
|
|
459
463
|
d && f ? /* @__PURE__ */ e(
|
|
460
464
|
C,
|
|
461
465
|
{
|
|
462
|
-
icon: /* @__PURE__ */ e(
|
|
463
|
-
"aria-label":
|
|
466
|
+
icon: /* @__PURE__ */ e(is, {}),
|
|
467
|
+
"aria-label": m("alia.regenerate"),
|
|
464
468
|
intent: "ghost",
|
|
465
469
|
size: "sm",
|
|
466
470
|
onClick: () => f(s.id)
|
|
467
471
|
}
|
|
468
472
|
) : null,
|
|
469
|
-
/* @__PURE__ */ e("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: g ?
|
|
473
|
+
/* @__PURE__ */ e("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: g ? m("alia.copied") : "" })
|
|
470
474
|
] });
|
|
471
475
|
}
|
|
472
476
|
function ks({
|
|
473
477
|
attachments: s,
|
|
474
|
-
onRemove:
|
|
478
|
+
onRemove: r
|
|
475
479
|
}) {
|
|
476
480
|
const { t } = x("ui");
|
|
477
481
|
return s.length === 0 ? null : /* @__PURE__ */ e(
|
|
@@ -490,21 +494,21 @@ function ks({
|
|
|
490
494
|
].join(" "),
|
|
491
495
|
children: [
|
|
492
496
|
/* @__PURE__ */ e(
|
|
493
|
-
|
|
497
|
+
Je,
|
|
494
498
|
{
|
|
495
499
|
"aria-hidden": "true",
|
|
496
500
|
className: "ds:size-3.5 ds:text-[color:var(--muted-foreground)]"
|
|
497
501
|
}
|
|
498
502
|
),
|
|
499
503
|
/* @__PURE__ */ e("span", { dir: "auto", className: "type-meta ds:max-w-[12rem] ds:truncate", children: d.name }),
|
|
500
|
-
|
|
504
|
+
r ? /* @__PURE__ */ e(
|
|
501
505
|
C,
|
|
502
506
|
{
|
|
503
507
|
icon: /* @__PURE__ */ e(xe, {}),
|
|
504
508
|
"aria-label": t("alia.removeAttachment", { name: d.name }),
|
|
505
509
|
intent: "ghost",
|
|
506
510
|
size: "sm",
|
|
507
|
-
onClick: () =>
|
|
511
|
+
onClick: () => r(d.id)
|
|
508
512
|
}
|
|
509
513
|
) : null
|
|
510
514
|
]
|
|
@@ -514,37 +518,37 @@ function ks({
|
|
|
514
518
|
}
|
|
515
519
|
);
|
|
516
520
|
}
|
|
517
|
-
function
|
|
521
|
+
function Le() {
|
|
518
522
|
if (typeof window > "u") return;
|
|
519
523
|
const s = window;
|
|
520
524
|
return s.SpeechRecognition ?? s.webkitSpeechRecognition;
|
|
521
525
|
}
|
|
522
526
|
function zs({
|
|
523
527
|
lang: s,
|
|
524
|
-
disabled:
|
|
528
|
+
disabled: r,
|
|
525
529
|
onTranscript: t
|
|
526
530
|
}) {
|
|
527
|
-
const { t: d } = x("ui"), [a,
|
|
531
|
+
const { t: d } = x("ui"), [a, c] = R(!1), f = E(null), m = L(() => {
|
|
528
532
|
var l;
|
|
529
|
-
(l = f.current) == null || l.stop(),
|
|
533
|
+
(l = f.current) == null || l.stop(), c(!1);
|
|
530
534
|
}, []), g = L(() => {
|
|
531
|
-
const l =
|
|
535
|
+
const l = Le();
|
|
532
536
|
if (!l) return;
|
|
533
537
|
const n = new l();
|
|
534
|
-
n.lang = s, n.continuous = !1, n.interimResults = !1, n.onresult = (
|
|
538
|
+
n.lang = s, n.continuous = !1, n.interimResults = !1, n.onresult = (h) => {
|
|
535
539
|
let b = "";
|
|
536
|
-
for (let w = 0; w <
|
|
537
|
-
b +=
|
|
540
|
+
for (let w = 0; w < h.results.length; w++)
|
|
541
|
+
b += h.results[w][0].transcript;
|
|
538
542
|
b && t(b);
|
|
539
|
-
}, n.onend = () =>
|
|
543
|
+
}, n.onend = () => c(!1), n.onerror = () => c(!1), f.current = n, n.start(), c(!0);
|
|
540
544
|
}, [s, t]);
|
|
541
545
|
return ne(() => {
|
|
542
546
|
if (!a) return;
|
|
543
547
|
const l = (n) => {
|
|
544
|
-
n.key === "Escape" &&
|
|
548
|
+
n.key === "Escape" && m();
|
|
545
549
|
};
|
|
546
550
|
return window.addEventListener("keydown", l), () => window.removeEventListener("keydown", l);
|
|
547
|
-
}, [a,
|
|
551
|
+
}, [a, m]), ne(() => () => {
|
|
548
552
|
var l;
|
|
549
553
|
return (l = f.current) == null ? void 0 : l.stop();
|
|
550
554
|
}, []), /* @__PURE__ */ e(
|
|
@@ -555,18 +559,18 @@ function zs({
|
|
|
555
559
|
"aria-pressed": a,
|
|
556
560
|
intent: a ? "primary" : "ghost",
|
|
557
561
|
size: "sm",
|
|
558
|
-
disabled:
|
|
559
|
-
onClick: () => a ?
|
|
562
|
+
disabled: r,
|
|
563
|
+
onClick: () => a ? m() : g(),
|
|
560
564
|
className: a ? "ds:motion-safe:animate-[var(--accessible-off,var(--ds-animate-pulse))] ds:motion-reduce:animate-none" : void 0
|
|
561
565
|
}
|
|
562
566
|
);
|
|
563
567
|
}
|
|
564
568
|
function Ls({
|
|
565
569
|
initialText: s,
|
|
566
|
-
onSave:
|
|
570
|
+
onSave: r,
|
|
567
571
|
onCancel: t
|
|
568
572
|
}) {
|
|
569
|
-
const { t: d } = x("ui"), [a,
|
|
573
|
+
const { t: d } = x("ui"), [a, c] = R(s);
|
|
570
574
|
return /* @__PURE__ */ p(
|
|
571
575
|
"div",
|
|
572
576
|
{
|
|
@@ -578,9 +582,9 @@ function Ls({
|
|
|
578
582
|
{
|
|
579
583
|
label: d("alia.editMessage"),
|
|
580
584
|
value: a,
|
|
581
|
-
onChange: (f) =>
|
|
585
|
+
onChange: (f) => c(f.target.value),
|
|
582
586
|
submitOnEnter: !0,
|
|
583
|
-
onSubmit: (f) =>
|
|
587
|
+
onSubmit: (f) => r(f),
|
|
584
588
|
minRows: 2
|
|
585
589
|
}
|
|
586
590
|
),
|
|
@@ -591,7 +595,7 @@ function Ls({
|
|
|
591
595
|
{
|
|
592
596
|
intent: "primary",
|
|
593
597
|
size: "sm",
|
|
594
|
-
onClick: () =>
|
|
598
|
+
onClick: () => r(a),
|
|
595
599
|
disabled: a.trim().length === 0,
|
|
596
600
|
children: d("alia.saveEdit")
|
|
597
601
|
}
|
|
@@ -601,92 +605,92 @@ function Ls({
|
|
|
601
605
|
}
|
|
602
606
|
);
|
|
603
607
|
}
|
|
604
|
-
const K =
|
|
608
|
+
const K = Q(
|
|
605
609
|
({
|
|
606
610
|
messages: s,
|
|
607
|
-
onSend:
|
|
611
|
+
onSend: r,
|
|
608
612
|
onRetry: t,
|
|
609
613
|
onSuggestion: d,
|
|
610
614
|
suggestions: a,
|
|
611
|
-
isGenerating:
|
|
615
|
+
isGenerating: c = !1,
|
|
612
616
|
onStopGenerating: f,
|
|
613
|
-
usage:
|
|
617
|
+
usage: m,
|
|
614
618
|
onUpgrade: g,
|
|
615
619
|
assistantName: l,
|
|
616
620
|
assistantAvatar: n,
|
|
617
|
-
userAvatar:
|
|
621
|
+
userAvatar: h,
|
|
618
622
|
greeting: b,
|
|
619
623
|
subtitle: w,
|
|
620
|
-
density:
|
|
624
|
+
density: j = "default",
|
|
621
625
|
renderMarkdown: M = !0,
|
|
622
|
-
onNewConversation:
|
|
623
|
-
onAttach:
|
|
624
|
-
acceptedFileTypes:
|
|
625
|
-
headerEndSlot:
|
|
626
|
-
hideHeader:
|
|
626
|
+
onNewConversation: je,
|
|
627
|
+
onAttach: Ee,
|
|
628
|
+
acceptedFileTypes: Te,
|
|
629
|
+
headerEndSlot: Ie,
|
|
630
|
+
hideHeader: Se = !1,
|
|
627
631
|
ended: B,
|
|
628
632
|
messageActions: P,
|
|
629
633
|
onCopyMessage: oe,
|
|
630
634
|
onDownloadMessage: ce,
|
|
631
|
-
voiceInput:
|
|
635
|
+
voiceInput: Re,
|
|
632
636
|
onVoiceTranscript: Z,
|
|
633
637
|
attachments: J,
|
|
634
|
-
onRemoveAttachment:
|
|
635
|
-
showScrollToLatest:
|
|
638
|
+
onRemoveAttachment: _e,
|
|
639
|
+
showScrollToLatest: Ue,
|
|
636
640
|
onRegenerate: D,
|
|
637
641
|
onEditMessage: F
|
|
638
|
-
},
|
|
639
|
-
const { t:
|
|
640
|
-
var
|
|
641
|
-
(
|
|
642
|
+
}, Be) => {
|
|
643
|
+
const { t: v, i18n: Pe } = x("ui"), [me, Y] = R(null), [De, V] = R(""), O = E(null), A = E(null), ee = E(null), se = E(null), S = E(null), $ = E(!1), T = L(() => {
|
|
644
|
+
var i;
|
|
645
|
+
(i = S.current) == null || i.call(S), S.current = null, se.current = null;
|
|
642
646
|
}, []), W = L(
|
|
643
|
-
(
|
|
647
|
+
(i) => {
|
|
644
648
|
T();
|
|
645
|
-
const o =
|
|
646
|
-
if (!
|
|
649
|
+
const o = i.ownerDocument;
|
|
650
|
+
if (!i.contains(o.activeElement) && !te(o, i))
|
|
647
651
|
return;
|
|
648
|
-
se.current =
|
|
649
|
-
const
|
|
650
|
-
(!(y.target instanceof Node) || !
|
|
652
|
+
se.current = i;
|
|
653
|
+
const u = (y) => {
|
|
654
|
+
(!(y.target instanceof Node) || !i.contains(y.target)) && T();
|
|
651
655
|
};
|
|
652
|
-
o.addEventListener("pointerdown",
|
|
653
|
-
o.removeEventListener("pointerdown",
|
|
656
|
+
o.addEventListener("pointerdown", u, !0), o.addEventListener("focusin", u, !0), S.current = () => {
|
|
657
|
+
o.removeEventListener("pointerdown", u, !0), o.removeEventListener("focusin", u, !0);
|
|
654
658
|
};
|
|
655
659
|
},
|
|
656
660
|
[T]
|
|
657
661
|
), ae = L(
|
|
658
|
-
(
|
|
662
|
+
(i) => W(i.currentTarget),
|
|
659
663
|
[W]
|
|
660
|
-
),
|
|
661
|
-
(
|
|
664
|
+
), Fe = L(
|
|
665
|
+
(i) => {
|
|
662
666
|
const o = O.current;
|
|
663
|
-
O.current =
|
|
667
|
+
O.current = i, !i && (o != null && o.contains(o.ownerDocument.activeElement)) && W(o);
|
|
664
668
|
},
|
|
665
669
|
[W]
|
|
666
670
|
);
|
|
667
671
|
ve(() => {
|
|
668
672
|
var y;
|
|
669
|
-
const
|
|
670
|
-
if (!
|
|
673
|
+
const i = se.current;
|
|
674
|
+
if (!i || i.isConnected) return;
|
|
671
675
|
T();
|
|
672
676
|
const o = O.current;
|
|
673
|
-
if (!te(
|
|
674
|
-
const
|
|
675
|
-
if (
|
|
676
|
-
|
|
677
|
+
if (!te(i.ownerDocument, o)) return;
|
|
678
|
+
const u = o == null ? void 0 : o.querySelector("textarea");
|
|
679
|
+
if (u && !u.disabled) {
|
|
680
|
+
u.focus();
|
|
677
681
|
return;
|
|
678
682
|
}
|
|
679
683
|
(y = A.current ?? ee.current) == null || y.focus();
|
|
680
684
|
}), ne(() => T, [T]);
|
|
681
|
-
const q = !!
|
|
682
|
-
for (let
|
|
683
|
-
const o = s[
|
|
685
|
+
const q = !!Re && Le() != null, re = de(() => {
|
|
686
|
+
for (let i = s.length - 1; i >= 0; i--) {
|
|
687
|
+
const o = s[i];
|
|
684
688
|
if (o.role === "assistant" && !o.streaming) return o.id;
|
|
685
689
|
}
|
|
686
|
-
}, [s]), I = B != null, N = l ??
|
|
687
|
-
const
|
|
690
|
+
}, [s]), I = B != null, N = l ?? v("alia.name"), Oe = b ?? v("alia.greeting"), $e = w ?? v("alia.subtitle"), k = s[s.length - 1], H = (k == null ? void 0 : k.role) === "assistant" && k.streaming === !0, ue = H ? s.slice(0, -1) : s, We = de(() => {
|
|
691
|
+
const i = v("chat.message.role.user"), o = ue.map((u) => {
|
|
688
692
|
let y;
|
|
689
|
-
if (
|
|
693
|
+
if (u.role === "assistant" ? y = n != null && n.src ? { name: N, src: n.src } : {
|
|
690
694
|
slot: /* @__PURE__ */ e(
|
|
691
695
|
U,
|
|
692
696
|
{
|
|
@@ -695,55 +699,55 @@ const K = G(
|
|
|
695
699
|
appearance: "spinner"
|
|
696
700
|
}
|
|
697
701
|
)
|
|
698
|
-
} :
|
|
702
|
+
} : u.role === "user" && (y = gs(h, i)), u.role === "user" && F && me === u.id)
|
|
699
703
|
return {
|
|
700
|
-
id:
|
|
704
|
+
id: u.id,
|
|
701
705
|
node: /* @__PURE__ */ e(
|
|
702
706
|
Ls,
|
|
703
707
|
{
|
|
704
|
-
initialText:
|
|
705
|
-
onSave: (
|
|
706
|
-
F(
|
|
708
|
+
initialText: u.content,
|
|
709
|
+
onSave: (He) => {
|
|
710
|
+
F(u.id, He), Y(null);
|
|
707
711
|
},
|
|
708
712
|
onCancel: () => Y(null)
|
|
709
713
|
}
|
|
710
714
|
)
|
|
711
715
|
};
|
|
712
|
-
let
|
|
713
|
-
return
|
|
716
|
+
let ie;
|
|
717
|
+
return u.role === "assistant" && (P && P.length > 0 || D && u.id === re) ? ie = /* @__PURE__ */ e(
|
|
714
718
|
Cs,
|
|
715
719
|
{
|
|
716
|
-
message:
|
|
720
|
+
message: u,
|
|
717
721
|
actions: P ?? [],
|
|
718
722
|
assistantName: N,
|
|
719
|
-
canRegenerate: !!D &&
|
|
723
|
+
canRegenerate: !!D && u.id === re,
|
|
720
724
|
onCopyMessage: oe,
|
|
721
725
|
onDownloadMessage: ce,
|
|
722
726
|
onRegenerate: D
|
|
723
727
|
}
|
|
724
|
-
) :
|
|
728
|
+
) : u.role === "user" && F && (ie = /* @__PURE__ */ e(
|
|
725
729
|
C,
|
|
726
730
|
{
|
|
727
731
|
icon: /* @__PURE__ */ e(Ae, {}),
|
|
728
|
-
"aria-label":
|
|
732
|
+
"aria-label": v("alia.editMessage"),
|
|
729
733
|
intent: "ghost",
|
|
730
734
|
size: "sm",
|
|
731
|
-
onClick: () => Y(
|
|
735
|
+
onClick: () => Y(u.id)
|
|
732
736
|
}
|
|
733
737
|
)), {
|
|
734
|
-
id:
|
|
738
|
+
id: u.id,
|
|
735
739
|
node: /* @__PURE__ */ e(
|
|
736
|
-
|
|
740
|
+
Ze,
|
|
737
741
|
{
|
|
738
|
-
role:
|
|
739
|
-
content:
|
|
740
|
-
body:
|
|
742
|
+
role: u.role,
|
|
743
|
+
content: u.content,
|
|
744
|
+
body: u.body,
|
|
741
745
|
avatar: y,
|
|
742
|
-
timestamp:
|
|
743
|
-
status:
|
|
746
|
+
timestamp: u.timestamp,
|
|
747
|
+
status: u.status,
|
|
744
748
|
renderMarkdown: M,
|
|
745
|
-
onRetry: t ? () => t(
|
|
746
|
-
actions:
|
|
749
|
+
onRetry: t ? () => t(u.id) : void 0,
|
|
750
|
+
actions: ie
|
|
747
751
|
}
|
|
748
752
|
)
|
|
749
753
|
};
|
|
@@ -756,14 +760,15 @@ const K = G(
|
|
|
756
760
|
message: k,
|
|
757
761
|
assistantName: N,
|
|
758
762
|
avatarSrc: n == null ? void 0 : n.src,
|
|
759
|
-
renderMarkdown: M
|
|
763
|
+
renderMarkdown: M,
|
|
764
|
+
density: j
|
|
760
765
|
}
|
|
761
766
|
)
|
|
762
|
-
}),
|
|
767
|
+
}), c && !H && o.push({
|
|
763
768
|
id: "__alia-typing__",
|
|
764
769
|
node: /* @__PURE__ */ p("div", { className: "ds:flex ds:w-full ds:items-start ds:gap-[var(--spacing-sm)]", children: [
|
|
765
770
|
n != null && n.src ? /* @__PURE__ */ e(
|
|
766
|
-
|
|
771
|
+
G,
|
|
767
772
|
{
|
|
768
773
|
name: N,
|
|
769
774
|
src: n.src,
|
|
@@ -786,7 +791,7 @@ const K = G(
|
|
|
786
791
|
"ds:rounded-[var(--radius-md)] ds:rounded-es-[var(--radius-sm)]",
|
|
787
792
|
"ds:bg-muted/40"
|
|
788
793
|
].join(" "),
|
|
789
|
-
children: /* @__PURE__ */ e(
|
|
794
|
+
children: /* @__PURE__ */ e(Ce, { label: v("chat.typing"), density: j })
|
|
790
795
|
}
|
|
791
796
|
)
|
|
792
797
|
] })
|
|
@@ -798,40 +803,40 @@ const K = G(
|
|
|
798
803
|
ue,
|
|
799
804
|
H,
|
|
800
805
|
k,
|
|
801
|
-
|
|
806
|
+
c,
|
|
802
807
|
N,
|
|
803
808
|
n == null ? void 0 : n.src,
|
|
804
|
-
|
|
809
|
+
h,
|
|
805
810
|
M,
|
|
806
811
|
t,
|
|
807
|
-
|
|
812
|
+
j,
|
|
808
813
|
B,
|
|
809
|
-
|
|
814
|
+
v,
|
|
810
815
|
me,
|
|
811
816
|
F,
|
|
812
817
|
P,
|
|
813
818
|
D,
|
|
814
|
-
|
|
819
|
+
re,
|
|
815
820
|
oe,
|
|
816
821
|
ce
|
|
817
|
-
]),
|
|
822
|
+
]), qe = m ? Math.min(
|
|
818
823
|
100,
|
|
819
|
-
Math.max(0,
|
|
820
|
-
) : 0, z =
|
|
824
|
+
Math.max(0, m.current / Math.max(1, m.limit) * 100)
|
|
825
|
+
) : 0, z = m ? m.current >= m.limit : !1, pe = z || I;
|
|
821
826
|
ve(() => {
|
|
822
|
-
var
|
|
823
|
-
const
|
|
824
|
-
if (!pe || !$.current || !
|
|
827
|
+
var u;
|
|
828
|
+
const i = O.current;
|
|
829
|
+
if (!pe || !$.current || !i)
|
|
825
830
|
return;
|
|
826
831
|
$.current = !1;
|
|
827
|
-
const o =
|
|
828
|
-
(
|
|
832
|
+
const o = i.ownerDocument;
|
|
833
|
+
(i.contains(o.activeElement) || te(o, i)) && ((u = A.current ?? ee.current) == null || u.focus());
|
|
829
834
|
}, [pe]);
|
|
830
|
-
const fe =
|
|
831
|
-
current:
|
|
832
|
-
limit:
|
|
833
|
-
}) : null, ge = s.length === 0 && !
|
|
834
|
-
|
|
835
|
+
const fe = m ? m.label ?? v("alia.usageLabel", {
|
|
836
|
+
current: m.current,
|
|
837
|
+
limit: m.limit
|
|
838
|
+
}) : null, ge = s.length === 0 && !c && !I, he = /* @__PURE__ */ p("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
839
|
+
m ? /* @__PURE__ */ p("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
835
840
|
/* @__PURE__ */ p("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
836
841
|
/* @__PURE__ */ e(
|
|
837
842
|
"span",
|
|
@@ -840,45 +845,45 @@ const K = G(
|
|
|
840
845
|
tabIndex: z ? -1 : void 0,
|
|
841
846
|
className: [
|
|
842
847
|
"type-meta",
|
|
843
|
-
z ? `ds:text-[color:var(--destructive)] ${
|
|
848
|
+
z ? `ds:text-[color:var(--destructive)] ${ze}` : "ds:text-[color:var(--muted-foreground)]"
|
|
844
849
|
].join(" "),
|
|
845
850
|
"data-testid": "alia-usage-label",
|
|
846
|
-
children: z ?
|
|
851
|
+
children: z ? v("alia.usageLimitReached") : fe
|
|
847
852
|
}
|
|
848
853
|
),
|
|
849
|
-
z && g ? /* @__PURE__ */ e(_, { intent: "primary", size: "sm", onClick: g, children:
|
|
854
|
+
z && g ? /* @__PURE__ */ e(_, { intent: "primary", size: "sm", onClick: g, children: v("alia.upgrade") }) : null
|
|
850
855
|
] }),
|
|
851
856
|
/* @__PURE__ */ e(
|
|
852
857
|
Ve,
|
|
853
858
|
{
|
|
854
|
-
value:
|
|
859
|
+
value: qe,
|
|
855
860
|
max: 100,
|
|
856
861
|
size: "sm",
|
|
857
|
-
ariaLabel: fe ??
|
|
858
|
-
current:
|
|
859
|
-
limit:
|
|
862
|
+
ariaLabel: fe ?? v("alia.usageLabel", {
|
|
863
|
+
current: m.current,
|
|
864
|
+
limit: m.limit
|
|
860
865
|
}),
|
|
861
866
|
className: z ? "ds:[&_[role=progressbar]>*]:bg-[color:var(--destructive)]" : void 0,
|
|
862
867
|
"data-testid": "alia-usage-progress"
|
|
863
868
|
}
|
|
864
869
|
)
|
|
865
870
|
] }) : null,
|
|
866
|
-
!ge && a && a.length > 0 && !
|
|
871
|
+
!ge && a && a.length > 0 && !c && !I ? /* @__PURE__ */ e(
|
|
867
872
|
Ne,
|
|
868
873
|
{
|
|
869
|
-
label:
|
|
874
|
+
label: v("alia.exampleQuestions"),
|
|
870
875
|
"data-testid": "alia-followup-suggestions",
|
|
871
|
-
children: a.map((
|
|
876
|
+
children: a.map((i) => /* @__PURE__ */ e(
|
|
872
877
|
ye,
|
|
873
878
|
{
|
|
874
879
|
intent: "followup",
|
|
875
|
-
startIcon:
|
|
880
|
+
startIcon: i.icon,
|
|
876
881
|
keepOnSelect: !0,
|
|
877
882
|
onClick: ae,
|
|
878
|
-
onSelect: () => d == null ? void 0 : d(
|
|
879
|
-
children:
|
|
883
|
+
onSelect: () => d == null ? void 0 : d(i),
|
|
884
|
+
children: i.label
|
|
880
885
|
},
|
|
881
|
-
|
|
886
|
+
i.id
|
|
882
887
|
))
|
|
883
888
|
}
|
|
884
889
|
) : null,
|
|
@@ -886,84 +891,85 @@ const K = G(
|
|
|
886
891
|
ks,
|
|
887
892
|
{
|
|
888
893
|
attachments: J,
|
|
889
|
-
onRemove:
|
|
894
|
+
onRemove: _e
|
|
890
895
|
}
|
|
891
896
|
) : null,
|
|
892
|
-
|
|
897
|
+
c && f && !I ? (
|
|
898
|
+
// On its own row, where the follow-up chips sit between answers: beside
|
|
899
|
+
// the message box it squeezed the box to half its width in a narrow rail.
|
|
893
900
|
/* @__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
901
|
_,
|
|
936
902
|
{
|
|
937
903
|
intent: "outline",
|
|
938
904
|
size: "sm",
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
905
|
+
className: "ds:self-end",
|
|
906
|
+
startIcon: /* @__PURE__ */ e(es, { "aria-hidden": "true", className: "ds:fill-current" }),
|
|
907
|
+
onClick: (i) => {
|
|
908
|
+
ae(i), f();
|
|
942
909
|
},
|
|
943
|
-
|
|
944
|
-
children: h("alia.stopGenerating")
|
|
910
|
+
children: v("alia.stopGenerating")
|
|
945
911
|
}
|
|
946
|
-
)
|
|
947
|
-
|
|
912
|
+
)
|
|
913
|
+
) : null,
|
|
914
|
+
/* @__PURE__ */ e(
|
|
915
|
+
"div",
|
|
916
|
+
{
|
|
917
|
+
onFocus: () => {
|
|
918
|
+
$.current = !0;
|
|
919
|
+
},
|
|
920
|
+
onBlur: (i) => {
|
|
921
|
+
const o = i.relatedTarget;
|
|
922
|
+
o instanceof Node && i.currentTarget.contains(o) || i.target.matches(":disabled") || ($.current = !1);
|
|
923
|
+
},
|
|
924
|
+
children: /* @__PURE__ */ e(
|
|
925
|
+
we,
|
|
926
|
+
{
|
|
927
|
+
ref: Fe,
|
|
928
|
+
submitOnEnter: !0,
|
|
929
|
+
onSubmit: q ? (i) => {
|
|
930
|
+
r(i), V("");
|
|
931
|
+
} : r,
|
|
932
|
+
value: q ? De : void 0,
|
|
933
|
+
onChange: q ? (i) => V(i.target.value) : void 0,
|
|
934
|
+
onAttach: Ee,
|
|
935
|
+
accept: Te,
|
|
936
|
+
disabled: z || I,
|
|
937
|
+
toolbar: q ? /* @__PURE__ */ e(
|
|
938
|
+
zs,
|
|
939
|
+
{
|
|
940
|
+
lang: Pe.language,
|
|
941
|
+
disabled: z || I,
|
|
942
|
+
onTranscript: (i) => {
|
|
943
|
+
Z == null || Z(i), V(
|
|
944
|
+
(o) => o ? `${o} ${i}` : i
|
|
945
|
+
);
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
) : void 0,
|
|
949
|
+
"data-testid": "alia-composer"
|
|
950
|
+
}
|
|
951
|
+
)
|
|
952
|
+
}
|
|
953
|
+
)
|
|
948
954
|
] });
|
|
949
955
|
return /* @__PURE__ */ p(
|
|
950
956
|
"div",
|
|
951
957
|
{
|
|
952
|
-
ref:
|
|
958
|
+
ref: Be,
|
|
953
959
|
className: [
|
|
954
960
|
"ds:flex ds:min-h-0 ds:flex-1 ds:flex-col",
|
|
955
961
|
"ds:bg-[var(--background)] ds:text-[color:var(--foreground)]"
|
|
956
962
|
].join(" "),
|
|
957
963
|
"data-testid": "alia-surface",
|
|
958
964
|
children: [
|
|
959
|
-
|
|
965
|
+
Se ? null : /* @__PURE__ */ e(
|
|
960
966
|
bs,
|
|
961
967
|
{
|
|
962
968
|
assistantName: N,
|
|
963
969
|
avatarSrc: n == null ? void 0 : n.src,
|
|
964
|
-
onNewConversation:
|
|
965
|
-
headerEndSlot:
|
|
966
|
-
density:
|
|
970
|
+
onNewConversation: je,
|
|
971
|
+
headerEndSlot: Ie,
|
|
972
|
+
density: j
|
|
967
973
|
}
|
|
968
974
|
),
|
|
969
975
|
ge ? /* @__PURE__ */ p(be, { children: [
|
|
@@ -972,8 +978,8 @@ const K = G(
|
|
|
972
978
|
{
|
|
973
979
|
assistantName: N,
|
|
974
980
|
avatarSrc: n == null ? void 0 : n.src,
|
|
975
|
-
greeting:
|
|
976
|
-
subtitle:
|
|
981
|
+
greeting: Oe,
|
|
982
|
+
subtitle: $e,
|
|
977
983
|
suggestions: a,
|
|
978
984
|
onSuggestion: d,
|
|
979
985
|
onChipClick: ae
|
|
@@ -997,12 +1003,12 @@ const K = G(
|
|
|
997
1003
|
}
|
|
998
1004
|
)
|
|
999
1005
|
] }) : /* @__PURE__ */ e(
|
|
1000
|
-
|
|
1006
|
+
Me,
|
|
1001
1007
|
{
|
|
1002
|
-
messages:
|
|
1003
|
-
density:
|
|
1008
|
+
messages: We,
|
|
1009
|
+
density: j,
|
|
1004
1010
|
composer: he,
|
|
1005
|
-
showScrollToLatest:
|
|
1011
|
+
showScrollToLatest: Ue,
|
|
1006
1012
|
className: "ds:flex-1 ds:min-h-0"
|
|
1007
1013
|
}
|
|
1008
1014
|
)
|
|
@@ -1012,8 +1018,8 @@ const K = G(
|
|
|
1012
1018
|
}
|
|
1013
1019
|
);
|
|
1014
1020
|
K.displayName = "AliaChatSurface";
|
|
1015
|
-
const js =
|
|
1016
|
-
({ headerSlot: s, ...
|
|
1021
|
+
const js = Q(
|
|
1022
|
+
({ headerSlot: s, ...r }, t) => /* @__PURE__ */ p(
|
|
1017
1023
|
"div",
|
|
1018
1024
|
{
|
|
1019
1025
|
ref: t,
|
|
@@ -1044,7 +1050,7 @@ const js = G(
|
|
|
1044
1050
|
"ds:[max-inline-size:48rem]",
|
|
1045
1051
|
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]"
|
|
1046
1052
|
].join(" "),
|
|
1047
|
-
children: /* @__PURE__ */ e(K, { ...
|
|
1053
|
+
children: /* @__PURE__ */ e(K, { ...r })
|
|
1048
1054
|
}
|
|
1049
1055
|
) })
|
|
1050
1056
|
]
|
|
@@ -1055,18 +1061,18 @@ js.displayName = "AliaEmbedded";
|
|
|
1055
1061
|
function Es(s) {
|
|
1056
1062
|
return s > 99 ? "99+" : String(s);
|
|
1057
1063
|
}
|
|
1058
|
-
const Ts =
|
|
1064
|
+
const Ts = Q(
|
|
1059
1065
|
({
|
|
1060
1066
|
open: s,
|
|
1061
|
-
defaultOpen:
|
|
1067
|
+
defaultOpen: r,
|
|
1062
1068
|
onOpenChange: t,
|
|
1063
1069
|
position: d = "bottom-end",
|
|
1064
1070
|
unseenCount: a,
|
|
1065
|
-
assistantName:
|
|
1071
|
+
assistantName: c,
|
|
1066
1072
|
assistantAvatar: f,
|
|
1067
|
-
...
|
|
1073
|
+
...m
|
|
1068
1074
|
}, g) => {
|
|
1069
|
-
const { t: l } = x("ui"), n =
|
|
1075
|
+
const { t: l } = x("ui"), n = c || l("alia.name"), h = typeof a == "number" && a > 0, b = h ? l("alia.openWithUnseen", { count: a }) : l("alia.open"), w = /* @__PURE__ */ e(Qe.Close, { asChild: !0, children: /* @__PURE__ */ e(
|
|
1070
1076
|
C,
|
|
1071
1077
|
{
|
|
1072
1078
|
icon: /* @__PURE__ */ e(xe, { "aria-hidden": "true" }),
|
|
@@ -1080,7 +1086,7 @@ const Ts = G(
|
|
|
1080
1086
|
X.Root,
|
|
1081
1087
|
{
|
|
1082
1088
|
open: s,
|
|
1083
|
-
defaultOpen:
|
|
1089
|
+
defaultOpen: r,
|
|
1084
1090
|
onOpenChange: t,
|
|
1085
1091
|
children: [
|
|
1086
1092
|
/* @__PURE__ */ e(
|
|
@@ -1097,7 +1103,7 @@ const Ts = G(
|
|
|
1097
1103
|
/* @__PURE__ */ e(X.Trigger, { asChild: !0, children: /* @__PURE__ */ e(
|
|
1098
1104
|
Ge,
|
|
1099
1105
|
{
|
|
1100
|
-
icon: /* @__PURE__ */ e(
|
|
1106
|
+
icon: /* @__PURE__ */ e(Ke, { "aria-hidden": "true" }),
|
|
1101
1107
|
"aria-label": b,
|
|
1102
1108
|
variant: "primary",
|
|
1103
1109
|
size: "md",
|
|
@@ -1105,7 +1111,7 @@ const Ts = G(
|
|
|
1105
1111
|
"data-testid": "alia-popout-fab"
|
|
1106
1112
|
}
|
|
1107
1113
|
) }),
|
|
1108
|
-
|
|
1114
|
+
h ? /* @__PURE__ */ e(
|
|
1109
1115
|
"span",
|
|
1110
1116
|
{
|
|
1111
1117
|
"aria-hidden": "true",
|
|
@@ -1141,7 +1147,7 @@ const Ts = G(
|
|
|
1141
1147
|
/* @__PURE__ */ e(
|
|
1142
1148
|
K,
|
|
1143
1149
|
{
|
|
1144
|
-
...
|
|
1150
|
+
...m,
|
|
1145
1151
|
assistantName: n,
|
|
1146
1152
|
assistantAvatar: f,
|
|
1147
1153
|
density: "compact",
|
|
@@ -1160,18 +1166,18 @@ Ts.displayName = "AliaPopout";
|
|
|
1160
1166
|
function Is(s) {
|
|
1161
1167
|
return s > 99 ? "99+" : String(s);
|
|
1162
1168
|
}
|
|
1163
|
-
const Ss = "ds:[inline-size:22rem]", Rs = "ds:[inline-size:3rem]", _s =
|
|
1169
|
+
const Ss = "ds:[inline-size:22rem]", Rs = "ds:[inline-size:3rem]", _s = Q(
|
|
1164
1170
|
({
|
|
1165
1171
|
open: s,
|
|
1166
|
-
onOpenChange:
|
|
1172
|
+
onOpenChange: r,
|
|
1167
1173
|
side: t = "end",
|
|
1168
1174
|
unseenCount: d,
|
|
1169
1175
|
footerSlot: a,
|
|
1170
|
-
assistantName:
|
|
1176
|
+
assistantName: c,
|
|
1171
1177
|
assistantAvatar: f,
|
|
1172
|
-
...
|
|
1178
|
+
...m
|
|
1173
1179
|
}, g) => {
|
|
1174
|
-
const { t: l } = x("ui"), n =
|
|
1180
|
+
const { t: l } = x("ui"), n = c || l("alia.name"), h = typeof d == "number" && d > 0, b = t === "end" ? "ds:shadow-[var(--shadow-chrome-start)]" : "ds:shadow-[var(--shadow-chrome-end)]", w = h ? l("alia.openWithUnseen", { count: d }) : l("alia.open");
|
|
1175
1181
|
if (!s)
|
|
1176
1182
|
return /* @__PURE__ */ e(
|
|
1177
1183
|
"aside",
|
|
@@ -1196,11 +1202,11 @@ const Ss = "ds:[inline-size:22rem]", Rs = "ds:[inline-size:3rem]", _s = G(
|
|
|
1196
1202
|
"aria-expanded": "false",
|
|
1197
1203
|
intent: "ghost",
|
|
1198
1204
|
size: "sm",
|
|
1199
|
-
onClick: () =>
|
|
1205
|
+
onClick: () => r(!0),
|
|
1200
1206
|
"data-testid": "alia-sidebar-rail-trigger"
|
|
1201
1207
|
}
|
|
1202
1208
|
),
|
|
1203
|
-
|
|
1209
|
+
h ? /* @__PURE__ */ e(
|
|
1204
1210
|
"span",
|
|
1205
1211
|
{
|
|
1206
1212
|
"aria-hidden": "true",
|
|
@@ -1223,7 +1229,7 @@ const Ss = "ds:[inline-size:22rem]", Rs = "ds:[inline-size:3rem]", _s = G(
|
|
|
1223
1229
|
] })
|
|
1224
1230
|
}
|
|
1225
1231
|
);
|
|
1226
|
-
const
|
|
1232
|
+
const j = /* @__PURE__ */ e(
|
|
1227
1233
|
C,
|
|
1228
1234
|
{
|
|
1229
1235
|
icon: t === "end" ? /* @__PURE__ */ e(os, {}) : /* @__PURE__ */ e(cs, {}),
|
|
@@ -1231,7 +1237,7 @@ const Ss = "ds:[inline-size:22rem]", Rs = "ds:[inline-size:3rem]", _s = G(
|
|
|
1231
1237
|
size: "sm",
|
|
1232
1238
|
"aria-label": l("alia.close"),
|
|
1233
1239
|
"aria-expanded": "true",
|
|
1234
|
-
onClick: () =>
|
|
1240
|
+
onClick: () => r(!1),
|
|
1235
1241
|
"data-testid": "alia-sidebar-collapse"
|
|
1236
1242
|
}
|
|
1237
1243
|
);
|
|
@@ -1253,11 +1259,11 @@ const Ss = "ds:[inline-size:22rem]", Rs = "ds:[inline-size:3rem]", _s = G(
|
|
|
1253
1259
|
/* @__PURE__ */ e("div", { className: "ds:flex ds:min-h-0 ds:flex-1 ds:flex-col", children: /* @__PURE__ */ e(
|
|
1254
1260
|
K,
|
|
1255
1261
|
{
|
|
1256
|
-
...
|
|
1262
|
+
...m,
|
|
1257
1263
|
assistantName: n,
|
|
1258
1264
|
assistantAvatar: f,
|
|
1259
1265
|
density: "compact",
|
|
1260
|
-
headerEndSlot:
|
|
1266
|
+
headerEndSlot: j
|
|
1261
1267
|
}
|
|
1262
1268
|
) }),
|
|
1263
1269
|
a ? /* @__PURE__ */ e(
|
|
@@ -1281,4 +1287,4 @@ export {
|
|
|
1281
1287
|
Ts as c,
|
|
1282
1288
|
_s as d
|
|
1283
1289
|
};
|
|
1284
|
-
//# sourceMappingURL=alia-sidebar-
|
|
1290
|
+
//# sourceMappingURL=alia-sidebar-DZoyUFW8.js.map
|