@alfadocs/ui-kit 1.67.0 → 1.68.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/{address-fields-CJtu7LQU.js → address-fields-BUPRs3n-.js} +3 -3
- package/dist/_chunks/{agenda-card-DR9gDdKp.js → agenda-card-BDuvreCe.js} +2 -2
- package/dist/_chunks/{agenda-tray-DGB1Zup-.js → agenda-tray-CfwylhWf.js} +3 -3
- package/dist/_chunks/{ai-credits-exhausted-notice-DfAgfZDF.js → ai-credits-exhausted-notice-Bg8NpW2K.js} +2 -2
- package/dist/_chunks/{ai-permission-notice-qsdm4Sx4.js → ai-permission-notice-C00i6VhY.js} +2 -2
- package/dist/_chunks/{ai-prompt-input-DSGSe4LH.js → ai-prompt-input-DzgyoKyk.js} +141 -139
- package/dist/_chunks/{alert-DjsJMGRE.js → alert-9kEwDza3.js} +122 -112
- package/dist/_chunks/{alia-sidebar-qe0quZkB.js → alia-sidebar-B06ZSOaF.js} +3 -3
- package/dist/_chunks/{anamnesis-summary-card-CMzBLTiN.js → anamnesis-summary-card-DQ3iE1gD.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-BQ_EokKz.js → anamnesis-summary-rows-CNK0fIJk.js} +392 -388
- package/dist/_chunks/{appointment-card-CL32sux-.js → appointment-card-5JMWi9_f.js} +2 -2
- package/dist/_chunks/{appointment-peek-B5mcDcXt.js → appointment-peek-D5XCfYKu.js} +2 -2
- package/dist/_chunks/{appointment-timeline-CCqjORFb.js → appointment-timeline-VFP6HoXT.js} +4 -4
- package/dist/_chunks/{appointment-tray-qtpJt8e0.js → appointment-tray-B3PDER3I.js} +3 -3
- package/dist/_chunks/{audio-recorder-B11RR-rC.js → audio-recorder-4Ll0pwYK.js} +3 -3
- package/dist/_chunks/{auth-form-parts-DwUTH6YN.js → auth-form-parts-B40zvD-a.js} +2 -2
- package/dist/_chunks/avatar-BPiPL7ND.js +199 -0
- package/dist/_chunks/{balance-badge-cell-DZNthHO1.js → balance-badge-cell-BG3DMly4.js} +4 -4
- package/dist/_chunks/{bishop-score-CaNTrikJ.js → bishop-score-Df8nF1qg.js} +2 -2
- package/dist/_chunks/{booking-tTVxKPQY.js → booking-B1pDbERi.js} +377 -335
- package/dist/_chunks/{calendar-BhN-jisv.js → calendar-BvOM8rG3.js} +2 -2
- package/dist/_chunks/{calendar-workspace-MRrzcxAy.js → calendar-workspace-CYK1M83j.js} +18 -18
- package/dist/_chunks/{chat-message-fRLZ95O5.js → chat-message-Be-9vIIQ.js} +2 -2
- package/dist/_chunks/{clinical-note-card-BnFTIs6x.js → clinical-note-card-Caidqcwa.js} +2 -2
- package/dist/_chunks/{color-picker-BsggJovx.js → color-picker-AcaWuKah.js} +99 -95
- package/dist/_chunks/{combobox-U5yfO6o0.js → combobox-vF9O-QoG.js} +92 -83
- package/dist/_chunks/{contact-profile-card-C4-OCshj.js → contact-profile-card-CAwwOqHl.js} +40 -40
- package/dist/_chunks/{control-room-rail-DUerqHeo.js → control-room-rail-BB6rCDWI.js} +3 -3
- package/dist/_chunks/{country-select-DF5Bd_mn.js → country-select-CSE2Zm_s.js} +2 -2
- package/dist/_chunks/dashboard-grid-7JzaiKnk.js +1487 -0
- package/dist/_chunks/{data-table-COoCQ4n_.js → data-table-Cty4-Jht.js} +3 -3
- package/dist/_chunks/{dependent-selector-DBr1AhLg.js → dependent-selector-C4kOgO8b.js} +2 -2
- package/dist/_chunks/{document-preview-VyQOjFVL.js → document-preview-513f3iPn.js} +4 -4
- package/dist/_chunks/{document-scanner-CXH_GYh4.js → document-scanner-Bd3wbzpI.js} +2 -2
- package/dist/_chunks/{editable-description-ChGNdYY8.js → editable-description-DnAFi360.js} +2 -2
- package/dist/_chunks/{entity-summary-Bj-Wxq7Y.js → entity-summary-C2B8yNmc.js} +4 -4
- package/dist/_chunks/{error-summary-PUE5Zxp9.js → error-summary-mGxIyDAY.js} +2 -2
- package/dist/_chunks/{face-scheme-DAD-mXzM.js → face-scheme-CSJdRNad.js} +248 -244
- package/dist/_chunks/{file-manager-RiV7-OEE.js → file-manager-D4cPnRhL.js} +3 -3
- package/dist/_chunks/{forgot-password-form-CPOfRE0C.js → forgot-password-form-Dqi7R-NL.js} +4 -4
- package/dist/_chunks/format-number-DdzqwMs1.js +13 -0
- package/dist/_chunks/{freemium-paywall-6DO7noHX.js → freemium-paywall-C73C8Rgd.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-CZYa2D6m.js → gestational-age-calculator-Du53p8MH.js} +2 -2
- package/dist/_chunks/{header-settings-BSH9Gk0J.js → header-settings-DlUbvAUx.js} +37 -36
- package/dist/_chunks/{heatmap-C1TeC7wT.js → heatmap-DbZIQg14.js} +4 -4
- package/dist/_chunks/{help-me-write-templates-Bw3Q58x-.js → help-me-write-templates-5WkUfvc_.js} +3 -3
- package/dist/_chunks/{kit-extensions-DWs1UEXb.js → kit-extensions-CYvLL4ee.js} +3 -3
- package/dist/_chunks/length-token-DwMnGEYT.js +24 -0
- package/dist/_chunks/{link-cell-renderer-CtTsvfPY.js → link-cell-renderer-DtIsQWDO.js} +4 -4
- package/dist/_chunks/{login-dev-card-A-CL3mjt.js → login-dev-card-vEL-o5wq.js} +3 -3
- package/dist/_chunks/{map-view-BuVfJMEa.js → map-view-CtohteZD.js} +300 -191
- package/dist/_chunks/{marketplace-app-shell-DtSX8sYb.js → marketplace-app-shell-CcLQ0Dn-.js} +4 -4
- package/dist/_chunks/{message-card-A3mJNqfy.js → message-card-C_ksqIYM.js} +2 -2
- package/dist/_chunks/{message-tray-Ft6vSr71.js → message-tray-DCoQ4GQb.js} +3 -3
- package/dist/_chunks/{multi-select-CMaAQQgb.js → multi-select-BOad3za9.js} +110 -98
- package/dist/_chunks/{muscle-scheme-YoN3rYXV.js → muscle-scheme-C66WlCxG.js} +2 -2
- package/dist/_chunks/{note-timeline-DDqNU46n.js → note-timeline-KzL52MmB.js} +2 -2
- package/dist/_chunks/{notes-panel-IdsmqRFC.js → notes-panel-BXN46XkF.js} +6 -6
- package/dist/_chunks/notice-group-DkYzKyAZ.js +291 -0
- package/dist/_chunks/{notification-tray-BR3seWA7.js → notification-tray-Cp18MW5b.js} +2 -2
- package/dist/_chunks/{operator-hero-3_RG4Dkj.js → operator-hero-6aAIQaFZ.js} +83 -66
- package/dist/_chunks/{optical-prescription-CxfMsbxi.js → optical-prescription-ulXnDbBe.js} +525 -509
- package/dist/_chunks/panel-header-CbtlTe85.js +190 -0
- package/dist/_chunks/{panel-subview-yP4qIbKS.js → panel-subview-BPU7220K.js} +2 -2
- package/dist/_chunks/{patient-details-C-EWQTms.js → patient-details-C4Dyo7Ck.js} +4 -4
- package/dist/_chunks/{patient-field-row-lY-Tb5Mo.js → patient-field-row-DROvUkFu.js} +4 -4
- package/dist/_chunks/{patient-search-DpAKidZ5.js → patient-search-BADdx3M1.js} +2 -2
- package/dist/_chunks/{patient-summary-card-Bpto_VCD.js → patient-summary-card-CAimxbuI.js} +4 -4
- package/dist/_chunks/{payment-automation-upsell-BQ307qEX.js → payment-automation-upsell-CiwF5UrC.js} +2 -2
- package/dist/_chunks/{payment-form-XKtinW8r.js → payment-form-PBuh8PIa.js} +2 -2
- package/dist/_chunks/{pdf-viewer-BvoVMjH4.js → pdf-viewer-gAsNUsA8.js} +2 -2
- package/dist/_chunks/{periodontal-risk-chart-CPy7CNFe.js → periodontal-risk-chart-B7S9OmPC.js} +97 -89
- package/dist/_chunks/practice-profile-hero-qfrsFQI_.js +236 -0
- package/dist/_chunks/{practice-results-BrUDDMXC.js → practice-results-BzThnpnm.js} +328 -298
- package/dist/_chunks/{pregnancy-dating-B8wo4l_r.js → pregnancy-dating-EFcFUJkQ.js} +2 -2
- package/dist/_chunks/{privacy-mask-Ch7743uk.js → privacy-mask-CCz9zuIh.js} +2 -2
- package/dist/_chunks/{product-hub-panel-C_ZosrBt.js → product-hub-panel-YuFbNPlT.js} +2 -2
- package/dist/_chunks/progress-notice-DiHWZ8Ms.js +279 -0
- package/dist/_chunks/{province-select-Bd20Z9Br.js → province-select-CDjs5obD.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-8Ewv8-d7.js → radiograph-panel.agent-4UllIoTQ.js} +2 -2
- package/dist/_chunks/{rating-C1Vrmpsi.js → rating-CGYpg5dj.js} +43 -44
- package/dist/_chunks/{registration-form-BxwqUZzk.js → registration-form-1B0PTDal.js} +4 -4
- package/dist/_chunks/{reviews-panel-AvsVgtJu.js → reviews-panel-CosDZyow.js} +29 -7
- package/dist/_chunks/{rich-text-editor-aCIoptbg.js → rich-text-editor-56dSsyZI.js} +3 -3
- package/dist/_chunks/{select-k4gBdS8N.js → select-4S-eYZUf.js} +244 -214
- package/dist/_chunks/{sign-document-D1P1nUQA.js → sign-document-BiOTs1P4.js} +2 -2
- package/dist/_chunks/{signature-request-3u6TvRt2.js → signature-request-DAmNj_uq.js} +5 -5
- package/dist/_chunks/skeleton-tTWJpvAq.js +415 -0
- package/dist/_chunks/{slot-grid-dj5f6R2w.js → slot-grid-D_gix9mJ.js} +2 -2
- package/dist/_chunks/{tabs-2x3L13jn.js → tabs-BTj-2qMZ.js} +2 -2
- package/dist/_chunks/{task-card-BS7Uqevr.js → task-card-Ci2XbLmq.js} +2 -2
- package/dist/_chunks/{task-editor-Bb5MMcid.js → task-editor-BomyxGoZ.js} +8 -8
- package/dist/_chunks/{task-tray-eQU4KJcA.js → task-tray-Dnc72nl-.js} +3 -3
- package/dist/_chunks/{tasks-panel-BOb57Ysw.js → tasks-panel-ATz9JDy8.js} +6 -6
- package/dist/_chunks/{theme-toggle-Ctb77x6O.js → theme-toggle-DT_Jn4DC.js} +147 -138
- package/dist/_chunks/{timeline-DEIuHrWz.js → timeline-wUuTDFY_.js} +2 -2
- package/dist/_chunks/{tool-rail-C-03rH2I.js → tool-rail-C-M3eVdY.js} +2 -2
- package/dist/_chunks/{transcript-panel-XudW5l6l.js → transcript-panel-CoHHpcFg.js} +2 -2
- package/dist/_chunks/{treatment-receipt-Cpm8tqQN.js → treatment-receipt-pFqWFyD_.js} +2 -2
- package/dist/_chunks/{unit-converter-BPZ0Ldkb.js → unit-converter-CIoTmCmP.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-CVSPoP5j.js → use-appointment-details-read-CUGfE0hV.js} +12 -12
- package/dist/_chunks/use-dismissed-CTOWqA0e.js +177 -0
- package/dist/_chunks/{voice-control-panel-BJIEbDq6.js → voice-control-panel-B8Lrk0C4.js} +4 -4
- package/dist/_chunks/{warning-stack-BdY-0bd3.js → warning-stack-BhHUmRiD.js} +2 -2
- package/dist/_chunks/{workflow-map-CYbRD9ek.js → workflow-map-ln4_OG8A.js} +2 -2
- package/dist/agent-catalog.json +172 -4
- package/dist/agent-i18n/en.json +25 -1
- package/dist/components/_shared/format-number.d.ts +20 -0
- package/dist/components/_shared/length-token.d.ts +12 -0
- package/dist/components/_shared/option.d.ts +1 -0
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-credits-notice/index.js +1 -1
- package/dist/components/ai-permission-notice/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/alert/alert.d.ts +26 -0
- package/dist/components/alert/index.js +1 -1
- package/dist/components/anamnesis-summary-card/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- 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/avatar/avatar.d.ts +2 -0
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/combobox/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/country-select/index.js +1 -1
- package/dist/components/dashboard-grid/dashboard-grid.d.ts +20 -1
- package/dist/components/dashboard-grid/index.js +1 -1
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/dependent-selector/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/editable-description/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/error-summary/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/file-manager/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/header-settings/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/index.d.ts +4 -2
- package/dist/components/map-view/index.d.ts +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/map-view/map-view.d.ts +51 -0
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/muscle-scheme/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/notice-group/index.d.ts +3 -0
- package/dist/components/notice-group/index.js +6 -0
- package/dist/components/notice-group/notice-group.agent.d.ts +4 -0
- package/dist/components/notice-group/notice-group.d.ts +43 -0
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/optical-prescription/optical-prescription-data.d.ts +8 -8
- package/dist/components/panel-header/index.js +1 -1
- package/dist/components/panel-header/panel-header.d.ts +10 -0
- 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-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/periodontal-risk-chart/index.js +1 -1
- package/dist/components/practice-profile-hero/index.js +1 -1
- package/dist/components/practice-profile-hero/practice-profile-hero.d.ts +4 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/practice-results/practice-results.d.ts +10 -2
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/progress-notice/index.d.ts +3 -0
- package/dist/components/progress-notice/index.js +6 -0
- package/dist/components/progress-notice/progress-notice.agent.d.ts +4 -0
- package/dist/components/progress-notice/progress-notice.d.ts +81 -0
- package/dist/components/province-select/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/rating/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/select/index.js +1 -1
- package/dist/components/select/select.d.ts +6 -0
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/skeleton/index.d.ts +1 -1
- package/dist/components/skeleton/index.js +1 -1
- package/dist/components/skeleton/skeleton.d.ts +41 -1
- package/dist/components/skeleton-scheme/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/tabs/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/timeline/index.js +1 -1
- package/dist/components/tool-rail/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/treatment-receipt/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/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +81 -76
- package/dist/hooks/use-dismissed.d.ts +58 -0
- package/dist/i18n/locales/ar.d.ts +22 -0
- package/dist/i18n/locales/ar.js +22 -0
- package/dist/i18n/locales/de.d.ts +22 -0
- package/dist/i18n/locales/de.js +22 -0
- package/dist/i18n/locales/el.d.ts +22 -0
- package/dist/i18n/locales/el.js +22 -0
- package/dist/i18n/locales/en.d.ts +22 -0
- package/dist/i18n/locales/en.js +22 -0
- package/dist/i18n/locales/es.d.ts +22 -0
- package/dist/i18n/locales/es.js +22 -0
- package/dist/i18n/locales/fr.d.ts +22 -0
- package/dist/i18n/locales/fr.js +22 -0
- package/dist/i18n/locales/hi.d.ts +22 -0
- package/dist/i18n/locales/hi.js +22 -0
- package/dist/i18n/locales/it.d.ts +22 -0
- package/dist/i18n/locales/it.js +22 -0
- package/dist/i18n/locales/ja.d.ts +22 -0
- package/dist/i18n/locales/ja.js +22 -0
- package/dist/i18n/locales/nl.d.ts +22 -0
- package/dist/i18n/locales/nl.js +22 -0
- package/dist/i18n/locales/pl.d.ts +22 -0
- package/dist/i18n/locales/pl.js +22 -0
- package/dist/i18n/locales/pt.d.ts +22 -0
- package/dist/i18n/locales/pt.js +22 -0
- package/dist/i18n/locales/ro.d.ts +22 -0
- package/dist/i18n/locales/ro.js +22 -0
- package/dist/i18n/locales/ru.d.ts +22 -0
- package/dist/i18n/locales/ru.js +22 -0
- package/dist/i18n/locales/sq.d.ts +22 -0
- package/dist/i18n/locales/sq.js +22 -0
- package/dist/i18n/locales/sv.d.ts +22 -0
- package/dist/i18n/locales/sv.js +22 -0
- package/dist/i18n/locales/tr.d.ts +22 -0
- package/dist/i18n/locales/tr.js +22 -0
- package/dist/i18n/locales/zh.d.ts +22 -0
- package/dist/i18n/locales/zh.js +22 -0
- package/dist/index.js +1194 -1183
- package/dist/locales/ar.json +22 -0
- package/dist/locales/de.json +22 -0
- package/dist/locales/el.json +22 -0
- package/dist/locales/en.json +22 -0
- package/dist/locales/es.json +22 -0
- package/dist/locales/fr.json +22 -0
- package/dist/locales/hi.json +22 -0
- package/dist/locales/it.json +22 -0
- package/dist/locales/ja.json +22 -0
- package/dist/locales/nl.json +22 -0
- package/dist/locales/pl.json +22 -0
- package/dist/locales/pt.json +22 -0
- package/dist/locales/ro.json +22 -0
- package/dist/locales/ru.json +22 -0
- package/dist/locales/sq.json +22 -0
- package/dist/locales/sv.json +22 -0
- package/dist/locales/tr.json +22 -0
- package/dist/locales/zh.json +22 -0
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/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/tokens.css +1 -1
- package/package.json +9 -1
- package/dist/_chunks/avatar-WZY3eGE7.js +0 -123
- package/dist/_chunks/dashboard-grid-B2MB7SRS.js +0 -1428
- package/dist/_chunks/panel-header-BJkaUwnl.js +0 -128
- package/dist/_chunks/practice-profile-hero-Dfc0F60y.js +0 -193
- package/dist/_chunks/skeleton-B1KTdJ4N.js +0 -116
|
@@ -2,8 +2,8 @@ import { jsx as c } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as k, useRef as N, useEffect as O, useCallback as D, useMemo as B } from "react";
|
|
3
3
|
import { c as H } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as K } from "react-i18next";
|
|
5
|
-
import { C as M } from "./country-select-
|
|
6
|
-
import { P as U } from "./province-select-
|
|
5
|
+
import { C as M } from "./country-select-CSE2Zm_s.js";
|
|
6
|
+
import { P as U } from "./province-select-CDjs5obD.js";
|
|
7
7
|
import { P as W } from "./postal-code-input-CfZOnIkW.js";
|
|
8
8
|
import { C as Y } from "./city-input-3J3bz9EO.js";
|
|
9
9
|
import { T as z } from "./text-input-CaG9ApoE.js";
|
|
@@ -295,4 +295,4 @@ export {
|
|
|
295
295
|
te as A,
|
|
296
296
|
X as a
|
|
297
297
|
};
|
|
298
|
-
//# sourceMappingURL=address-fields-
|
|
298
|
+
//# sourceMappingURL=address-fields-BUPRs3n-.js.map
|
|
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as h } from "react";
|
|
3
3
|
import { c as x } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as y } from "react-i18next";
|
|
5
|
-
import { A as N } from "./avatar-
|
|
5
|
+
import { A as N } from "./avatar-BPiPL7ND.js";
|
|
6
6
|
import { B as C } from "./badge-BUk4RjTS.js";
|
|
7
7
|
import { i as w } from "./is-safe-url-DkETxeHz.js";
|
|
8
8
|
import { C as k } from "./chevron-right-I9AeSxH2.js";
|
|
@@ -144,4 +144,4 @@ z.displayName = "AgendaCard";
|
|
|
144
144
|
export {
|
|
145
145
|
z as A
|
|
146
146
|
};
|
|
147
|
-
//# sourceMappingURL=agenda-card-
|
|
147
|
+
//# sourceMappingURL=agenda-card-BDuvreCe.js.map
|
|
@@ -3,9 +3,9 @@ import { forwardRef as _, useRef as w, useImperativeHandle as q, useMemo as B }
|
|
|
3
3
|
import { c as H } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as K } from "react-i18next";
|
|
5
5
|
import { I as M } from "./icon-button-C_1TgRiK.js";
|
|
6
|
-
import { S as A } from "./skeleton-
|
|
6
|
+
import { S as A } from "./skeleton-tTWJpvAq.js";
|
|
7
7
|
import { E as D } from "./empty-state-pL1qum99.js";
|
|
8
|
-
import { A as V } from "./agenda-card-
|
|
8
|
+
import { A as V } from "./agenda-card-BDuvreCe.js";
|
|
9
9
|
import { u as F } from "./registry-DvAUVLHh.js";
|
|
10
10
|
import { C as G } from "./calendar-days-BGWklvE-.js";
|
|
11
11
|
import { P as J } from "./plus-DzMQ_c6b.js";
|
|
@@ -212,4 +212,4 @@ export {
|
|
|
212
212
|
U as A,
|
|
213
213
|
L as a
|
|
214
214
|
};
|
|
215
|
-
//# sourceMappingURL=agenda-tray-
|
|
215
|
+
//# sourceMappingURL=agenda-tray-CfwylhWf.js.map
|
|
@@ -2,7 +2,7 @@ import { jsx as a, jsxs as r } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as S, useId as E } from "react";
|
|
3
3
|
import { c as x } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as A } from "react-i18next";
|
|
5
|
-
import { C as P, A as b } from "./alert-
|
|
5
|
+
import { C as P, A as b } from "./alert-9kEwDza3.js";
|
|
6
6
|
import { B as U } from "./button-D-MQxsA_.js";
|
|
7
7
|
import { P as _ } from "./progress-D_g_Sl2g.js";
|
|
8
8
|
import { f as j, n as F } from "./intl-locale-FWh-Y5_3.js";
|
|
@@ -284,4 +284,4 @@ export {
|
|
|
284
284
|
an as a,
|
|
285
285
|
$ as i
|
|
286
286
|
};
|
|
287
|
-
//# sourceMappingURL=ai-credits-exhausted-notice-
|
|
287
|
+
//# sourceMappingURL=ai-credits-exhausted-notice-Bg8NpW2K.js.map
|
|
@@ -2,7 +2,7 @@ import { jsxs as d, jsx as n } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as z, useState as C, useRef as E, useMemo as F } from "react";
|
|
3
3
|
import { c as M } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as P } from "react-i18next";
|
|
5
|
-
import { A as g } from "./alert-
|
|
5
|
+
import { A as g } from "./alert-9kEwDza3.js";
|
|
6
6
|
import { B as D } from "./badge-BUk4RjTS.js";
|
|
7
7
|
import { B as H } from "./button-D-MQxsA_.js";
|
|
8
8
|
import { C as J } from "./checkbox-BjDv-r3o.js";
|
|
@@ -203,4 +203,4 @@ export {
|
|
|
203
203
|
Q as A,
|
|
204
204
|
$ as a
|
|
205
205
|
};
|
|
206
|
-
//# sourceMappingURL=ai-permission-notice-
|
|
206
|
+
//# sourceMappingURL=ai-permission-notice-C00i6VhY.js.map
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { jsxs as u, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
2
|
+
import { forwardRef as Ce, useId as Oe, useRef as H, useCallback as v, useState as L, useImperativeHandle as $e, useMemo as De } from "react";
|
|
3
|
+
import { c as Re } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as ae } from "react-i18next";
|
|
5
|
+
import { u as te } from "./use-controllable-state-BiY4xTzM.js";
|
|
6
|
+
import { u as _e } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
7
7
|
import { u as je } from "./registry-DvAUVLHh.js";
|
|
8
8
|
import { _ as g } from "./index-4xgbg-sn.js";
|
|
9
|
-
import { u as
|
|
10
|
-
import { I as
|
|
11
|
-
import { S as We } from "./select-
|
|
12
|
-
import { b as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
|
|
9
|
+
import { u as Le } from "./index-BcMWc8W2.js";
|
|
10
|
+
import { I as re } from "./icon-button-C_1TgRiK.js";
|
|
11
|
+
import { S as We } from "./select-4S-eYZUf.js";
|
|
12
|
+
import { b as Ae } from "./menu-row-BAr8bx1I.js";
|
|
13
|
+
import { a as W } from "./format-number-DdzqwMs1.js";
|
|
14
|
+
import { S as Ue } from "./send-C5kDJ-Mz.js";
|
|
15
|
+
import { X as Ge } from "./x-B5YnXwCz.js";
|
|
16
|
+
const Ze = {
|
|
16
17
|
id: "ai-prompt-input",
|
|
17
18
|
capabilities: ["edit_inline", "submit"],
|
|
18
19
|
state: {
|
|
@@ -54,8 +55,8 @@ const Ae = {
|
|
|
54
55
|
note: "Replace composer text."
|
|
55
56
|
}
|
|
56
57
|
],
|
|
57
|
-
invoke: (s,
|
|
58
|
-
s.setValue(
|
|
58
|
+
invoke: (s, o) => {
|
|
59
|
+
s.setValue(o.value);
|
|
59
60
|
}
|
|
60
61
|
},
|
|
61
62
|
clear: {
|
|
@@ -101,7 +102,7 @@ const Ae = {
|
|
|
101
102
|
description: "Sourced from the id prop; addresses a specific composer instance."
|
|
102
103
|
}
|
|
103
104
|
}
|
|
104
|
-
},
|
|
105
|
+
}, qe = Re(
|
|
105
106
|
[
|
|
106
107
|
"ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:w-full",
|
|
107
108
|
"ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--control-border)] ds:bg-input",
|
|
@@ -120,58 +121,58 @@ const Ae = {
|
|
|
120
121
|
},
|
|
121
122
|
defaultVariants: { size: "md" }
|
|
122
123
|
}
|
|
123
|
-
),
|
|
124
|
+
), Qe = Ce(
|
|
124
125
|
({
|
|
125
126
|
commands: s = [],
|
|
126
|
-
models:
|
|
127
|
-
defaultModelId:
|
|
128
|
-
modelId:
|
|
129
|
-
onModelChange:
|
|
127
|
+
models: o,
|
|
128
|
+
defaultModelId: E,
|
|
129
|
+
modelId: T,
|
|
130
|
+
onModelChange: ne,
|
|
130
131
|
maxSize: h,
|
|
131
|
-
accept:
|
|
132
|
-
context:
|
|
132
|
+
accept: ie,
|
|
133
|
+
context: K,
|
|
133
134
|
onContextDismiss: b,
|
|
134
135
|
onSubmit: x,
|
|
135
136
|
onAttach: y,
|
|
136
137
|
onAttachmentRejected: I,
|
|
137
|
-
minRows:
|
|
138
|
-
maxRows:
|
|
139
|
-
value:
|
|
140
|
-
defaultValue:
|
|
141
|
-
size:
|
|
142
|
-
disabled:
|
|
143
|
-
className:
|
|
144
|
-
placeholder:
|
|
145
|
-
onChange:
|
|
146
|
-
onKeyDown:
|
|
147
|
-
onCompositionStart:
|
|
148
|
-
onCompositionEnd:
|
|
149
|
-
onPaste:
|
|
138
|
+
minRows: F = 2,
|
|
139
|
+
maxRows: A = 8,
|
|
140
|
+
value: U,
|
|
141
|
+
defaultValue: oe,
|
|
142
|
+
size: de = "md",
|
|
143
|
+
disabled: G,
|
|
144
|
+
className: le,
|
|
145
|
+
placeholder: ce,
|
|
146
|
+
onChange: B,
|
|
147
|
+
onKeyDown: C,
|
|
148
|
+
onCompositionStart: O,
|
|
149
|
+
onCompositionEnd: $,
|
|
150
|
+
onPaste: D,
|
|
150
151
|
id: R,
|
|
151
|
-
...
|
|
152
|
-
},
|
|
153
|
-
var
|
|
154
|
-
const { t:
|
|
152
|
+
...pe
|
|
153
|
+
}, ue) => {
|
|
154
|
+
var J;
|
|
155
|
+
const { t: d } = ae("ui"), me = Oe(), w = H(null), N = H(!1), fe = H(null), ve = v((e) => {
|
|
155
156
|
w.current = e;
|
|
156
|
-
}, []), [
|
|
157
|
-
value:
|
|
158
|
-
defaultValue: String(
|
|
159
|
-
}), i =
|
|
160
|
-
value:
|
|
161
|
-
defaultValue:
|
|
162
|
-
onChange:
|
|
163
|
-
}),
|
|
157
|
+
}, []), [ge, m] = te({
|
|
158
|
+
value: U === void 0 ? void 0 : String(U),
|
|
159
|
+
defaultValue: String(oe ?? "")
|
|
160
|
+
}), i = ge ?? "", [p, S] = L([]), [f, k] = L(!1), [he, M] = L(""), [be, xe] = te({
|
|
161
|
+
value: T,
|
|
162
|
+
defaultValue: E ?? ((J = o == null ? void 0 : o[0]) == null ? void 0 : J.id) ?? "",
|
|
163
|
+
onChange: ne
|
|
164
|
+
}), _ = be ?? "", Z = v(() => {
|
|
164
165
|
const e = w.current;
|
|
165
166
|
if (!e) return;
|
|
166
|
-
const t = window.getComputedStyle(e), n = parseFloat(t.lineHeight) || 24, r = parseFloat(t.paddingTop) || 0, c = parseFloat(t.paddingBottom) || 0, l = parseFloat(t.borderTopWidth) || 0,
|
|
167
|
+
const t = window.getComputedStyle(e), n = parseFloat(t.lineHeight) || 24, r = parseFloat(t.paddingTop) || 0, c = parseFloat(t.paddingBottom) || 0, l = parseFloat(t.borderTopWidth) || 0, j = parseFloat(t.borderBottomWidth) || 0, V = r + c + l + j, Fe = n * F + V, ee = n * A + V;
|
|
167
168
|
e.style.height = "auto";
|
|
168
|
-
const
|
|
169
|
-
e.style.height = `${
|
|
170
|
-
}, [
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
}, [
|
|
174
|
-
const
|
|
169
|
+
const Be = Math.max(Fe, Math.min(e.scrollHeight, ee));
|
|
170
|
+
e.style.height = `${Be}px`, e.style.overflowY = e.scrollHeight > ee ? "auto" : "hidden";
|
|
171
|
+
}, [F, A]);
|
|
172
|
+
_e(() => {
|
|
173
|
+
Z();
|
|
174
|
+
}, [Z, i]);
|
|
175
|
+
const ye = v((e, t) => {
|
|
175
176
|
const r = e.slice(0, t).lastIndexOf(`
|
|
176
177
|
`) + 1, c = e.slice(r, t);
|
|
177
178
|
if (c.startsWith("/")) {
|
|
@@ -182,16 +183,16 @@ const Ae = {
|
|
|
182
183
|
}
|
|
183
184
|
}
|
|
184
185
|
k(!1), M("");
|
|
185
|
-
}, []),
|
|
186
|
+
}, []), Ie = (e) => {
|
|
186
187
|
if (m(e.target.value), N.current) return;
|
|
187
|
-
|
|
188
|
+
B == null || B(e);
|
|
188
189
|
const t = e.target.selectionStart ?? e.target.value.length;
|
|
189
|
-
|
|
190
|
-
},
|
|
191
|
-
N.current = !0,
|
|
192
|
-
},
|
|
193
|
-
N.current = !1,
|
|
194
|
-
},
|
|
190
|
+
ye(e.target.value, t);
|
|
191
|
+
}, we = (e) => {
|
|
192
|
+
N.current = !0, O == null || O(e);
|
|
193
|
+
}, Ne = (e) => {
|
|
194
|
+
N.current = !1, $ == null || $(e);
|
|
195
|
+
}, Se = (e) => e.nativeEvent.isComposing || e.keyCode === 229 || N.current, P = v(() => {
|
|
195
196
|
if (!i.trim() && p.length === 0) return;
|
|
196
197
|
let t, n = i;
|
|
197
198
|
const r = i.match(/^\/(\S+)\s?/);
|
|
@@ -199,11 +200,11 @@ const Ae = {
|
|
|
199
200
|
text: n,
|
|
200
201
|
command: t,
|
|
201
202
|
attachments: p,
|
|
202
|
-
modelId:
|
|
203
|
+
modelId: _ || void 0
|
|
203
204
|
}), m(""), S([]);
|
|
204
|
-
}, [i, p, x,
|
|
205
|
-
$e(
|
|
206
|
-
const
|
|
205
|
+
}, [i, p, x, _, m]), q = H(null);
|
|
206
|
+
$e(ue, () => q.current, []);
|
|
207
|
+
const ke = De(
|
|
207
208
|
() => ({
|
|
208
209
|
getValue: () => i,
|
|
209
210
|
isEmpty: () => !i.trim() && p.length === 0,
|
|
@@ -224,16 +225,16 @@ const Ae = {
|
|
|
224
225
|
}),
|
|
225
226
|
[i, p, m, P]
|
|
226
227
|
);
|
|
227
|
-
je(
|
|
228
|
-
const
|
|
229
|
-
if (
|
|
228
|
+
je(Ze, ke, R);
|
|
229
|
+
const Me = (e) => {
|
|
230
|
+
if (C == null || C(e), !e.defaultPrevented && !Se(e)) {
|
|
230
231
|
if (f && e.key === "Escape") {
|
|
231
232
|
e.preventDefault(), k(!1);
|
|
232
233
|
return;
|
|
233
234
|
}
|
|
234
235
|
e.key === "Enter" && (e.metaKey || e.ctrlKey) && (e.preventDefault(), P());
|
|
235
236
|
}
|
|
236
|
-
},
|
|
237
|
+
}, Pe = (e) => {
|
|
237
238
|
const t = w.current;
|
|
238
239
|
if (!t) return;
|
|
239
240
|
const n = t.selectionStart ?? i.length, c = i.slice(0, n).lastIndexOf(`
|
|
@@ -241,10 +242,10 @@ const Ae = {
|
|
|
241
242
|
let l = n;
|
|
242
243
|
for (; l < i.length && !/\s/.test(i[l]); )
|
|
243
244
|
l += 1;
|
|
244
|
-
const
|
|
245
|
+
const j = i.slice(l), V = i.slice(0, c) + `/${e.id} ` + j;
|
|
245
246
|
m(V), k(!1), M(""), queueMicrotask(() => t.focus());
|
|
246
|
-
},
|
|
247
|
-
if (
|
|
247
|
+
}, ze = (e) => {
|
|
248
|
+
if (D == null || D(e), e.defaultPrevented) return;
|
|
248
249
|
const { clipboardData: t } = e;
|
|
249
250
|
if (!t) return;
|
|
250
251
|
const n = [];
|
|
@@ -255,15 +256,15 @@ const Ae = {
|
|
|
255
256
|
l && n.push(l);
|
|
256
257
|
}
|
|
257
258
|
}
|
|
258
|
-
n.length > 0 && (e.preventDefault(),
|
|
259
|
-
},
|
|
259
|
+
n.length > 0 && (e.preventDefault(), Q(n));
|
|
260
|
+
}, Q = v(
|
|
260
261
|
(e) => {
|
|
261
262
|
var n;
|
|
262
263
|
const t = [];
|
|
263
264
|
for (const r of e) {
|
|
264
265
|
if (typeof h == "number" && r.size > h) {
|
|
265
266
|
I == null || I(
|
|
266
|
-
|
|
267
|
+
d("chat.attachment.rejected", { reason: "size" })
|
|
267
268
|
);
|
|
268
269
|
continue;
|
|
269
270
|
}
|
|
@@ -274,36 +275,36 @@ const Ae = {
|
|
|
274
275
|
}
|
|
275
276
|
t.length > 0 && (S((r) => [...r, ...t]), y == null || y(t.map((r) => r.file)));
|
|
276
277
|
},
|
|
277
|
-
[h, y, I,
|
|
278
|
-
), { getRootProps:
|
|
279
|
-
onDrop:
|
|
278
|
+
[h, y, I, d]
|
|
279
|
+
), { getRootProps: Ve, getInputProps: He, isDragActive: Ee } = Le({
|
|
280
|
+
onDrop: Q,
|
|
280
281
|
maxSize: h,
|
|
281
|
-
accept:
|
|
282
|
+
accept: ie,
|
|
282
283
|
noClick: !0,
|
|
283
284
|
noKeyboard: !0
|
|
284
|
-
}),
|
|
285
|
+
}), Te = (e) => {
|
|
285
286
|
S((t) => t.filter((n) => n.id !== e));
|
|
286
|
-
}, z = R ??
|
|
287
|
+
}, z = R ?? me, X = `${z}-label`, Y = `${z}-slash-list`, Ke = (o == null ? void 0 : o.map((e) => ({ value: e.id, label: e.label }))) ?? [];
|
|
287
288
|
return /* @__PURE__ */ u(
|
|
288
289
|
"div",
|
|
289
290
|
{
|
|
290
|
-
ref:
|
|
291
|
-
...
|
|
291
|
+
ref: q,
|
|
292
|
+
...Ve({
|
|
292
293
|
className: [
|
|
293
|
-
|
|
294
|
-
|
|
294
|
+
qe({ size: de, className: le }),
|
|
295
|
+
Ee ? "ds:outline ds:outline-dashed ds:outline-[color:var(--primary)] ds:outline-offset-2 ds:bg-[color:var(--primary)]/5" : ""
|
|
295
296
|
].join(" ")
|
|
296
297
|
}),
|
|
297
|
-
"aria-label":
|
|
298
|
+
"aria-label": d("chat.attachmentZone"),
|
|
298
299
|
"data-component": "ai-prompt-input",
|
|
299
300
|
"data-component-id": R,
|
|
300
301
|
children: [
|
|
301
|
-
/* @__PURE__ */ a("input", { "aria-label":
|
|
302
|
-
|
|
302
|
+
/* @__PURE__ */ a("input", { "aria-label": d("chat.attachmentZone"), ...He() }),
|
|
303
|
+
K ? /* @__PURE__ */ a("div", { className: "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-xs)] ds:pt-[var(--spacing-xs)]", children: /* @__PURE__ */ a(
|
|
303
304
|
"button",
|
|
304
305
|
{
|
|
305
306
|
type: "button",
|
|
306
|
-
"aria-label":
|
|
307
|
+
"aria-label": d("chat.contextActive", { name: K }),
|
|
307
308
|
onClick: b,
|
|
308
309
|
onKeyDown: (e) => {
|
|
309
310
|
(e.key === "Backspace" || e.key === "Delete") && (e.preventDefault(), b == null || b());
|
|
@@ -318,29 +319,29 @@ const Ae = {
|
|
|
318
319
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-[color:var(--ring)]",
|
|
319
320
|
"ds:forced-colors:focus-visible:outline-[CanvasText]"
|
|
320
321
|
].join(" "),
|
|
321
|
-
children:
|
|
322
|
+
children: d("chat.contextActive", { name: K })
|
|
322
323
|
}
|
|
323
324
|
) }) : null,
|
|
324
|
-
/* @__PURE__ */ a("label", { id:
|
|
325
|
+
/* @__PURE__ */ a("label", { id: X, htmlFor: z, className: "ds:sr-only", children: d("chat.prompt") }),
|
|
325
326
|
/* @__PURE__ */ u("div", { className: "ds:relative", children: [
|
|
326
327
|
/* @__PURE__ */ a(
|
|
327
328
|
"textarea",
|
|
328
329
|
{
|
|
329
|
-
ref:
|
|
330
|
+
ref: ve,
|
|
330
331
|
id: z,
|
|
331
|
-
rows:
|
|
332
|
+
rows: F,
|
|
332
333
|
value: i,
|
|
333
|
-
disabled:
|
|
334
|
-
placeholder:
|
|
335
|
-
"aria-labelledby":
|
|
334
|
+
disabled: G,
|
|
335
|
+
placeholder: ce ?? d("chat.input.placeholder"),
|
|
336
|
+
"aria-labelledby": X,
|
|
336
337
|
role: f ? "combobox" : void 0,
|
|
337
|
-
"aria-controls": f ?
|
|
338
|
+
"aria-controls": f ? Y : void 0,
|
|
338
339
|
"aria-expanded": f ? !0 : void 0,
|
|
339
|
-
onChange:
|
|
340
|
-
onKeyDown:
|
|
341
|
-
onPaste:
|
|
342
|
-
onCompositionStart:
|
|
343
|
-
onCompositionEnd:
|
|
340
|
+
onChange: Ie,
|
|
341
|
+
onKeyDown: Me,
|
|
342
|
+
onPaste: ze,
|
|
343
|
+
onCompositionStart: we,
|
|
344
|
+
onCompositionEnd: Ne,
|
|
344
345
|
className: [
|
|
345
346
|
"ds:w-full ds:resize-none ds:bg-transparent ds:outline-none",
|
|
346
347
|
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-xs)]",
|
|
@@ -348,13 +349,13 @@ const Ae = {
|
|
|
348
349
|
"ds:leading-[var(--line-height-base)]",
|
|
349
350
|
"ds:disabled:opacity-50 ds:disabled:cursor-not-allowed"
|
|
350
351
|
].join(" "),
|
|
351
|
-
...
|
|
352
|
+
...pe
|
|
352
353
|
}
|
|
353
354
|
),
|
|
354
355
|
f ? /* @__PURE__ */ a(
|
|
355
356
|
"div",
|
|
356
357
|
{
|
|
357
|
-
ref:
|
|
358
|
+
ref: fe,
|
|
358
359
|
className: [
|
|
359
360
|
"ds:absolute ds:start-[var(--spacing-md)] ds:top-full ds:z-50",
|
|
360
361
|
"ds:mt-[var(--spacing-xs)]",
|
|
@@ -367,29 +368,29 @@ const Ae = {
|
|
|
367
368
|
"ds:origin-top ds:motion-safe:animate-in ds:motion-safe:fade-in-0 ds:motion-safe:zoom-in-95",
|
|
368
369
|
"ds:duration-[var(--animation-duration)] ds:ease-[var(--ease-out)]"
|
|
369
370
|
].join(" "),
|
|
370
|
-
id:
|
|
371
|
-
children: /* @__PURE__ */ u(g, { label:
|
|
371
|
+
id: Y,
|
|
372
|
+
children: /* @__PURE__ */ u(g, { label: d("chat.slashMenu.label"), loop: !0, children: [
|
|
372
373
|
/* @__PURE__ */ a(
|
|
373
374
|
g.Input,
|
|
374
375
|
{
|
|
375
|
-
value:
|
|
376
|
+
value: he,
|
|
376
377
|
onValueChange: M,
|
|
377
378
|
className: "ds:sr-only"
|
|
378
379
|
}
|
|
379
380
|
),
|
|
380
381
|
/* @__PURE__ */ u(g.List, { className: "ds:max-h-60 ds:overflow-y-auto ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)]", children: [
|
|
381
|
-
/* @__PURE__ */ a(g.Empty, { className: "type-body-sm ds:text-[color:var(--muted-foreground)] ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]", children:
|
|
382
|
+
/* @__PURE__ */ a(g.Empty, { className: "type-body-sm ds:text-[color:var(--muted-foreground)] ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]", children: d("chat.slashMenu.empty") }),
|
|
382
383
|
s.map((e) => /* @__PURE__ */ u(
|
|
383
384
|
g.Item,
|
|
384
385
|
{
|
|
385
386
|
value: e.id,
|
|
386
|
-
onSelect: () =>
|
|
387
|
+
onSelect: () => Pe(e),
|
|
387
388
|
className: [
|
|
388
389
|
"ds:flex ds:flex-col ds:gap-[2px]",
|
|
389
390
|
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
390
391
|
"ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)]",
|
|
391
392
|
"type-body-sm ds:cursor-pointer",
|
|
392
|
-
|
|
393
|
+
Ae.selected
|
|
393
394
|
].join(" "),
|
|
394
395
|
children: [
|
|
395
396
|
/* @__PURE__ */ u("span", { className: "ds:font-medium", children: [
|
|
@@ -410,40 +411,40 @@ const Ae = {
|
|
|
410
411
|
"div",
|
|
411
412
|
{
|
|
412
413
|
role: "group",
|
|
413
|
-
"aria-label":
|
|
414
|
+
"aria-label": d("chat.attachmentZone"),
|
|
414
415
|
className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-xs)] ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
|
|
415
416
|
children: p.map((e) => /* @__PURE__ */ a(
|
|
416
|
-
|
|
417
|
+
Ye,
|
|
417
418
|
{
|
|
418
419
|
file: e.file,
|
|
419
|
-
onRemove: () =>
|
|
420
|
+
onRemove: () => Te(e.id)
|
|
420
421
|
},
|
|
421
422
|
e.id
|
|
422
423
|
))
|
|
423
424
|
}
|
|
424
425
|
) : null,
|
|
425
426
|
/* @__PURE__ */ u("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)]", children: [
|
|
426
|
-
|
|
427
|
+
o && o.length > 0 ? /* @__PURE__ */ a("div", { className: "ds:me-auto ds:min-w-[140px]", children: /* @__PURE__ */ a(
|
|
427
428
|
We,
|
|
428
429
|
{
|
|
429
|
-
"aria-label":
|
|
430
|
-
options:
|
|
431
|
-
value:
|
|
430
|
+
"aria-label": d("chat.model.select"),
|
|
431
|
+
options: Ke,
|
|
432
|
+
value: _ || "",
|
|
432
433
|
onValueChange: (e) => {
|
|
433
|
-
|
|
434
|
+
xe(e);
|
|
434
435
|
},
|
|
435
436
|
size: "sm"
|
|
436
437
|
}
|
|
437
438
|
) }) : /* @__PURE__ */ a("div", { className: "ds:me-auto" }),
|
|
438
|
-
/* @__PURE__ */ a("span", { className: "ds:sr-only", children:
|
|
439
|
+
/* @__PURE__ */ a("span", { className: "ds:sr-only", children: d("chat.input.sendHint") }),
|
|
439
440
|
/* @__PURE__ */ a(
|
|
440
|
-
|
|
441
|
+
re,
|
|
441
442
|
{
|
|
442
|
-
icon: /* @__PURE__ */ a(
|
|
443
|
-
"aria-label":
|
|
443
|
+
icon: /* @__PURE__ */ a(Ue, {}),
|
|
444
|
+
"aria-label": d("chat.send"),
|
|
444
445
|
intent: "primary",
|
|
445
446
|
size: "sm",
|
|
446
|
-
disabled:
|
|
447
|
+
disabled: G || !i.trim() && p.length === 0,
|
|
447
448
|
onClick: P,
|
|
448
449
|
"aria-keyshortcuts": "Meta+Enter Control+Enter"
|
|
449
450
|
}
|
|
@@ -454,15 +455,16 @@ const Ae = {
|
|
|
454
455
|
);
|
|
455
456
|
}
|
|
456
457
|
);
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
458
|
+
Qe.displayName = "AIPromptInput";
|
|
459
|
+
const se = { minimumFractionDigits: 1, maximumFractionDigits: 1 };
|
|
460
|
+
function Xe(s, o) {
|
|
461
|
+
return s < 1024 ? `${W(s, o, { useGrouping: !1 })} B` : s < 1024 * 1024 ? `${W(s / 1024, o, se)} KB` : `${W(s / (1024 * 1024), o, se)} MB`;
|
|
460
462
|
}
|
|
461
|
-
function
|
|
463
|
+
function Ye({
|
|
462
464
|
file: s,
|
|
463
|
-
onRemove:
|
|
465
|
+
onRemove: o
|
|
464
466
|
}) {
|
|
465
|
-
const { t: T } =
|
|
467
|
+
const { t: E, i18n: T } = ae("ui");
|
|
466
468
|
return /* @__PURE__ */ u(
|
|
467
469
|
"span",
|
|
468
470
|
{
|
|
@@ -478,15 +480,15 @@ function Qe({
|
|
|
478
480
|
].join(" "),
|
|
479
481
|
children: [
|
|
480
482
|
/* @__PURE__ */ a("span", { className: "ds:truncate ds:max-w-[16ch]", children: s.name }),
|
|
481
|
-
/* @__PURE__ */ a("span", { className: "ds:text-[color:var(--muted-foreground)] ds:tabular-nums", children:
|
|
483
|
+
/* @__PURE__ */ a("span", { className: "ds:text-[color:var(--muted-foreground)] ds:tabular-nums", children: Xe(s.size, T.language) }),
|
|
482
484
|
/* @__PURE__ */ a(
|
|
483
|
-
|
|
485
|
+
re,
|
|
484
486
|
{
|
|
485
|
-
icon: /* @__PURE__ */ a(
|
|
486
|
-
"aria-label":
|
|
487
|
+
icon: /* @__PURE__ */ a(Ge, {}),
|
|
488
|
+
"aria-label": E("chat.attachment.remove", { name: s.name }),
|
|
487
489
|
intent: "ghost",
|
|
488
490
|
size: "sm",
|
|
489
|
-
onClick:
|
|
491
|
+
onClick: o
|
|
490
492
|
}
|
|
491
493
|
)
|
|
492
494
|
]
|
|
@@ -494,7 +496,7 @@ function Qe({
|
|
|
494
496
|
);
|
|
495
497
|
}
|
|
496
498
|
export {
|
|
497
|
-
|
|
498
|
-
|
|
499
|
+
Qe as A,
|
|
500
|
+
Ze as a
|
|
499
501
|
};
|
|
500
|
-
//# sourceMappingURL=ai-prompt-input-
|
|
502
|
+
//# sourceMappingURL=ai-prompt-input-DzgyoKyk.js.map
|