@alfadocs/ui-kit-debug 0.44.0 → 0.45.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/{alia-sidebar-BpX4z_af.js → alia-sidebar-Be8FhKYd.js} +332 -237
- package/dist/_chunks/alia-sidebar-Be8FhKYd.js.map +1 -0
- package/dist/_chunks/{autocomplete-DIgdhCGJ.js → autocomplete-CDqxB68B.js} +2 -2
- package/dist/_chunks/{autocomplete-DIgdhCGJ.js.map → autocomplete-CDqxB68B.js.map} +1 -1
- package/dist/_chunks/bmi-calculator-CQqXTVNL.js +258 -0
- package/dist/_chunks/bmi-calculator-CQqXTVNL.js.map +1 -0
- package/dist/_chunks/{booking-CtLwaxkK.js → booking-DlDVuWMd.js} +2 -2
- package/dist/_chunks/{booking-CtLwaxkK.js.map → booking-DlDVuWMd.js.map} +1 -1
- package/dist/_chunks/{cycle-calculator-ChHBcjet.js → cycle-calculator-KxA8dqDf.js} +31 -20
- package/dist/_chunks/cycle-calculator-KxA8dqDf.js.map +1 -0
- package/dist/_chunks/{due-date-calculator-CYXKLoof.js → due-date-calculator-mFxpHLml.js} +51 -39
- package/dist/_chunks/due-date-calculator-mFxpHLml.js.map +1 -0
- package/dist/_chunks/{editable-currency-cell-renderer-9jqwDv5x.js → editable-currency-cell-renderer-BEBUQl9P.js} +2 -2
- package/dist/_chunks/{editable-currency-cell-renderer-9jqwDv5x.js.map → editable-currency-cell-renderer-BEBUQl9P.js.map} +1 -1
- package/dist/_chunks/{freemium-paywall-BLXESpH4.js → freemium-paywall-BYist2sJ.js} +2 -2
- package/dist/_chunks/{freemium-paywall-BLXESpH4.js.map → freemium-paywall-BYist2sJ.js.map} +1 -1
- package/dist/_chunks/{gestational-age-calculator-sRmoqgVr.js → gestational-age-calculator-gWI_uRA1.js} +52 -39
- package/dist/_chunks/gestational-age-calculator-gWI_uRA1.js.map +1 -0
- package/dist/_chunks/insert-result-C5ABnzDl.js +711 -0
- package/dist/_chunks/insert-result-C5ABnzDl.js.map +1 -0
- package/dist/_chunks/{marketplace-app-shell-Dc5cTIt8.js → marketplace-app-shell-Gfsf78ge.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-Dc5cTIt8.js.map → marketplace-app-shell-Gfsf78ge.js.map} +1 -1
- package/dist/_chunks/{patient-search-DPe2ZYEL.js → patient-search-CocVcGJ3.js} +2 -2
- package/dist/_chunks/{patient-search-DPe2ZYEL.js.map → patient-search-CocVcGJ3.js.map} +1 -1
- package/dist/_chunks/{payment-form-BzVsG6Ks.js → payment-form-DqEiEJRO.js} +247 -195
- package/dist/_chunks/payment-form-DqEiEJRO.js.map +1 -0
- package/dist/_chunks/{pdf-viewer-B6MC6VTx.js → pdf-viewer-CWEXTlwq.js} +2 -2
- package/dist/_chunks/{pdf-viewer-B6MC6VTx.js.map → pdf-viewer-CWEXTlwq.js.map} +1 -1
- package/dist/_chunks/{practice-results-CrLpEiiW.js → practice-results-DDi-kvaD.js} +2 -2
- package/dist/_chunks/{practice-results-CrLpEiiW.js.map → practice-results-DDi-kvaD.js.map} +1 -1
- package/dist/_chunks/{pregnancy-weight-gain-C5YhfYnL.js → pregnancy-weight-gain-BtEHaSqy.js} +26 -13
- package/dist/_chunks/pregnancy-weight-gain-BtEHaSqy.js.map +1 -0
- package/dist/_chunks/{search-bar-CP6wUJFY.js → search-bar-CvN_S0jW.js} +2 -2
- package/dist/_chunks/{search-bar-CP6wUJFY.js.map → search-bar-CvN_S0jW.js.map} +1 -1
- package/dist/_chunks/{search-input-C1C3jQpD.js → search-input-D3aMvi4l.js} +2 -2
- package/dist/_chunks/{search-input-C1C3jQpD.js.map → search-input-D3aMvi4l.js.map} +1 -1
- package/dist/_chunks/{sign-document-B-3k_0LO.js → sign-document-BCyLpFHJ.js} +2 -2
- package/dist/_chunks/{sign-document-B-3k_0LO.js.map → sign-document-BCyLpFHJ.js.map} +1 -1
- package/dist/_chunks/{sign-in-with-alfadocs-button-DeHBFRNS.js → sign-in-with-alfadocs-button-CuYn_kKP.js} +2 -2
- package/dist/_chunks/{sign-in-with-alfadocs-button-DeHBFRNS.js.map → sign-in-with-alfadocs-button-CuYn_kKP.js.map} +1 -1
- package/dist/_chunks/{social-sign-in-button-X54ySJr1.js → social-sign-in-button-uJYLM366.js} +2 -2
- package/dist/_chunks/{social-sign-in-button-X54ySJr1.js.map → social-sign-in-button-uJYLM366.js.map} +1 -1
- package/dist/_chunks/{spinner-CCByyvcb.js → spinner-OjQNn8oN.js} +7 -3
- package/dist/_chunks/spinner-OjQNn8oN.js.map +1 -0
- package/dist/_chunks/{transcript-panel-CR7VY1uw.js → transcript-panel-B4HiC7ed.js} +2 -2
- package/dist/_chunks/{transcript-panel-CR7VY1uw.js.map → transcript-panel-B4HiC7ed.js.map} +1 -1
- package/dist/_chunks/{unit-converter-Ds9jalbN.js → unit-converter-u3CwNDpP.js} +63 -52
- package/dist/_chunks/unit-converter-u3CwNDpP.js.map +1 -0
- package/dist/_chunks/{wallet-pay-button-DK4ESYge.js → wallet-pay-button-DuDPBlCO.js} +2 -2
- package/dist/_chunks/{wallet-pay-button-DK4ESYge.js.map → wallet-pay-button-DuDPBlCO.js.map} +1 -1
- package/dist/agent-catalog.json +1 -1
- package/dist/components/_shared/banded-gauge.d.ts +193 -0
- package/dist/components/_shared/banded-gauge.d.ts.map +1 -0
- package/dist/components/_shared/insert-result.d.ts +81 -8
- package/dist/components/_shared/insert-result.d.ts.map +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/bmi-calculator/bmi-calculator.d.ts +2 -2
- package/dist/components/bmi-calculator/bmi-calculator.d.ts.map +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/cycle-calculator/cycle-calculator.d.ts +2 -2
- package/dist/components/cycle-calculator/cycle-calculator.d.ts.map +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/due-date-calculator/due-date-calculator.d.ts +2 -2
- package/dist/components/due-date-calculator/due-date-calculator.d.ts.map +1 -1
- package/dist/components/due-date-calculator/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +2 -2
- package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts.map +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/payment-form/payment-form.d.ts +24 -2
- package/dist/components/payment-form/payment-form.d.ts.map +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +2 -2
- package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts.map +1 -1
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-input/index.js +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/social-sign-in-button/index.js +1 -1
- package/dist/components/spinner/index.js +1 -1
- package/dist/components/spinner/spinner.d.ts +2 -2
- package/dist/components/spinner/spinner.d.ts.map +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/unit-converter/unit-converter.d.ts +2 -2
- package/dist/components/unit-converter/unit-converter.d.ts.map +1 -1
- package/dist/components/wallet-pay-button/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +1 -1
- package/dist/i18n/locales/ar.js +1 -1
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +1 -1
- package/dist/i18n/locales/de.js +1 -1
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +1 -1
- package/dist/i18n/locales/el.js +1 -1
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +1 -1
- package/dist/i18n/locales/en.js +1 -1
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +1 -1
- package/dist/i18n/locales/es.js +1 -1
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +1 -1
- package/dist/i18n/locales/fr.js +1 -1
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +1 -1
- package/dist/i18n/locales/hi.js +1 -1
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +1 -1
- package/dist/i18n/locales/it.js +1 -1
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +1 -1
- package/dist/i18n/locales/ja.js +1 -1
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +1 -1
- package/dist/i18n/locales/nl.js +1 -1
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +1 -1
- package/dist/i18n/locales/pl.js +1 -1
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +1 -1
- package/dist/i18n/locales/pt.js +1 -1
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +1 -1
- package/dist/i18n/locales/ro.js +1 -1
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +1 -1
- package/dist/i18n/locales/ru.js +1 -1
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +1 -1
- package/dist/i18n/locales/sq.js +1 -1
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +1 -1
- package/dist/i18n/locales/sv.js +1 -1
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +1 -1
- package/dist/i18n/locales/tr.js +1 -1
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +1 -1
- package/dist/i18n/locales/zh.js +1 -1
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +25 -25
- package/dist/locales/ar.json +1 -1
- package/dist/locales/de.json +1 -1
- package/dist/locales/el.json +1 -1
- package/dist/locales/en.json +1 -1
- package/dist/locales/es.json +1 -1
- package/dist/locales/fr.json +1 -1
- package/dist/locales/hi.json +1 -1
- package/dist/locales/it.json +1 -1
- package/dist/locales/ja.json +1 -1
- package/dist/locales/nl.json +1 -1
- package/dist/locales/pl.json +1 -1
- package/dist/locales/pt.json +1 -1
- package/dist/locales/ro.json +1 -1
- package/dist/locales/ru.json +1 -1
- package/dist/locales/sq.json +1 -1
- package/dist/locales/sv.json +1 -1
- package/dist/locales/tr.json +1 -1
- package/dist/locales/zh.json +1 -1
- package/dist/patterns/alia-assistant/alia-chat-surface.d.ts.map +1 -1
- package/dist/patterns/alia-assistant/alia-types.d.ts +20 -0
- package/dist/patterns/alia-assistant/alia-types.d.ts.map +1 -1
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/alia-sidebar-BpX4z_af.js.map +0 -1
- package/dist/_chunks/bmi-calculator-DFPWL2OJ.js +0 -273
- package/dist/_chunks/bmi-calculator-DFPWL2OJ.js.map +0 -1
- package/dist/_chunks/cycle-calculator-ChHBcjet.js.map +0 -1
- package/dist/_chunks/due-date-calculator-CYXKLoof.js.map +0 -1
- package/dist/_chunks/gestational-age-calculator-sRmoqgVr.js.map +0 -1
- package/dist/_chunks/insert-result-CoC1oo6R.js +0 -334
- package/dist/_chunks/insert-result-CoC1oo6R.js.map +0 -1
- package/dist/_chunks/payment-form-BzVsG6Ks.js.map +0 -1
- package/dist/_chunks/pregnancy-weight-gain-C5YhfYnL.js.map +0 -1
- package/dist/_chunks/spinner-CCByyvcb.js.map +0 -1
- package/dist/_chunks/unit-converter-Ds9jalbN.js.map +0 -1
|
@@ -1,26 +1,44 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import * as
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { F as
|
|
6
|
-
import { I as
|
|
7
|
-
import { S as
|
|
8
|
-
import { X as
|
|
9
|
-
import { S as
|
|
10
|
-
import { A as
|
|
11
|
-
import { B as
|
|
12
|
-
import { C as
|
|
13
|
-
import { C as
|
|
14
|
-
import { C as
|
|
15
|
-
import { S as
|
|
1
|
+
import { jsx as e, jsxs as c, Fragment as se } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as _, useMemo as q } from "react";
|
|
3
|
+
import * as ae from "@radix-ui/react-dialog";
|
|
4
|
+
import { useTranslation as y } from "react-i18next";
|
|
5
|
+
import { F as de } from "./floating-action-button-pojvb9gG.js";
|
|
6
|
+
import { I as P } from "./icon-button-CKEOrN37.js";
|
|
7
|
+
import { S as D } from "./sheet-xbzu4YiY.js";
|
|
8
|
+
import { X as ie } from "./x-CCcI3eJp.js";
|
|
9
|
+
import { S as F } from "./sparkles-CuYXqQLg.js";
|
|
10
|
+
import { A as I } from "./avatar-BNQNhoyL.js";
|
|
11
|
+
import { B as M } from "./button-DD_0Xdmr.js";
|
|
12
|
+
import { C as re } from "./chat-container-ogB4OskO.js";
|
|
13
|
+
import { C as le } from "./chat-message-ASgGtj-L.js";
|
|
14
|
+
import { C as te } from "./chat-input-CQe7nR_v.js";
|
|
15
|
+
import { S as ne } from "./spinner-OjQNn8oN.js";
|
|
16
|
+
import { S as ce } from "./streaming-text-GH07yIYh.js";
|
|
16
17
|
import { a as O, S as Q } from "./suggestion-chip-C4kxWUIs.js";
|
|
17
|
-
import { T as
|
|
18
|
-
import { P as
|
|
19
|
-
import { S as
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
|
|
18
|
+
import { T as oe } from "./typing-indicator-DHeVN4ob.js";
|
|
19
|
+
import { P as me } from "./progress-kzIRcdaq.js";
|
|
20
|
+
import { S as pe } from "./square-CZoGU14v.js";
|
|
21
|
+
import { c as ue } from "./createLucideIcon-CrFbzy84.js";
|
|
22
|
+
import { P as fe } from "./plus-CYKNmfuA.js";
|
|
23
|
+
import { U as ge } from "./user-CPxpqFjJ.js";
|
|
24
|
+
import { a as he, C as ve } from "./chevrons-right-d9MwesPG.js";
|
|
25
|
+
/**
|
|
26
|
+
* @license lucide-react v1.8.0 - ISC
|
|
27
|
+
*
|
|
28
|
+
* This source code is licensed under the ISC license.
|
|
29
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
30
|
+
*/
|
|
31
|
+
const be = [
|
|
32
|
+
[
|
|
33
|
+
"path",
|
|
34
|
+
{
|
|
35
|
+
d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
|
|
36
|
+
key: "oel41y"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
["path", { d: "m14.5 9.5-5 5", key: "17q4r4" }],
|
|
40
|
+
["path", { d: "m9.5 9.5 5 5", key: "18nt4w" }]
|
|
41
|
+
], xe = ue("shield-x", be), W = {
|
|
24
42
|
sm: {
|
|
25
43
|
box: "ds:size-[calc(var(--spacing-md)*2)]",
|
|
26
44
|
icon: "ds:size-4"
|
|
@@ -34,16 +52,33 @@ const W = {
|
|
|
34
52
|
icon: "ds:size-8"
|
|
35
53
|
}
|
|
36
54
|
};
|
|
37
|
-
function
|
|
55
|
+
function w({
|
|
38
56
|
size: s,
|
|
39
|
-
label:
|
|
57
|
+
label: a,
|
|
58
|
+
appearance: r = "sparkle",
|
|
59
|
+
loading: t = !1
|
|
40
60
|
}) {
|
|
41
|
-
const
|
|
42
|
-
return /* @__PURE__ */ e(
|
|
61
|
+
const d = W[s];
|
|
62
|
+
return r === "spinner" ? /* @__PURE__ */ e(
|
|
63
|
+
"span",
|
|
64
|
+
{
|
|
65
|
+
role: "img",
|
|
66
|
+
"aria-label": a,
|
|
67
|
+
className: "ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center ds:text-[color:var(--primary)]",
|
|
68
|
+
children: /* @__PURE__ */ e(
|
|
69
|
+
ne,
|
|
70
|
+
{
|
|
71
|
+
"aria-hidden": !0,
|
|
72
|
+
variant: t ? "pulse" : "static",
|
|
73
|
+
className: d.box
|
|
74
|
+
}
|
|
75
|
+
)
|
|
76
|
+
}
|
|
77
|
+
) : /* @__PURE__ */ e(
|
|
43
78
|
"span",
|
|
44
79
|
{
|
|
45
80
|
role: "img",
|
|
46
|
-
"aria-label":
|
|
81
|
+
"aria-label": a,
|
|
47
82
|
className: [
|
|
48
83
|
"ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center",
|
|
49
84
|
"ds:rounded-[var(--radius-full)]",
|
|
@@ -54,50 +89,73 @@ function y({
|
|
|
54
89
|
// forced-colors: UA strips color-mix backgrounds; fall back to
|
|
55
90
|
// a bordered disc so the identity still reads in HCM.
|
|
56
91
|
"ds:forced-colors:bg-transparent ds:forced-colors:border ds:forced-colors:border-[CanvasText]",
|
|
57
|
-
|
|
92
|
+
d.box
|
|
58
93
|
].join(" "),
|
|
59
|
-
children: /* @__PURE__ */ e(
|
|
94
|
+
children: /* @__PURE__ */ e(F, { "aria-hidden": "true", className: d.icon })
|
|
60
95
|
}
|
|
61
96
|
);
|
|
62
97
|
}
|
|
63
|
-
function
|
|
98
|
+
function Ne({
|
|
64
99
|
size: s,
|
|
65
|
-
label:
|
|
100
|
+
label: a
|
|
66
101
|
}) {
|
|
67
|
-
const
|
|
102
|
+
const r = W[s];
|
|
68
103
|
return /* @__PURE__ */ e(
|
|
69
104
|
"span",
|
|
70
105
|
{
|
|
71
106
|
role: "img",
|
|
72
|
-
"aria-label":
|
|
107
|
+
"aria-label": a,
|
|
73
108
|
className: [
|
|
74
109
|
"ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center",
|
|
75
110
|
"ds:rounded-[var(--radius-full)]",
|
|
76
111
|
"ds:bg-[color-mix(in_srgb,var(--muted-foreground)_14%,transparent)]",
|
|
77
112
|
"ds:text-[color:var(--muted-foreground)]",
|
|
78
113
|
"ds:forced-colors:bg-transparent ds:forced-colors:border ds:forced-colors:border-[CanvasText]",
|
|
79
|
-
|
|
114
|
+
r.box
|
|
80
115
|
].join(" "),
|
|
81
|
-
children: /* @__PURE__ */ e(
|
|
116
|
+
children: /* @__PURE__ */ e(ge, { "aria-hidden": "true", className: r.icon })
|
|
117
|
+
}
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
function ye({ note: s }) {
|
|
121
|
+
return /* @__PURE__ */ c(
|
|
122
|
+
"div",
|
|
123
|
+
{
|
|
124
|
+
role: "status",
|
|
125
|
+
className: [
|
|
126
|
+
"ds:flex ds:w-full ds:flex-col ds:items-center ds:text-center",
|
|
127
|
+
"ds:gap-[var(--spacing-xs)]"
|
|
128
|
+
].join(" "),
|
|
129
|
+
"data-testid": "alia-ended-divider",
|
|
130
|
+
children: [
|
|
131
|
+
/* @__PURE__ */ e(
|
|
132
|
+
xe,
|
|
133
|
+
{
|
|
134
|
+
"aria-hidden": "true",
|
|
135
|
+
className: "ds:size-5 ds:text-[color:var(--destructive)]"
|
|
136
|
+
}
|
|
137
|
+
),
|
|
138
|
+
/* @__PURE__ */ e("span", { className: "type-body-sm ds:text-[color:var(--muted-foreground)]", children: s })
|
|
139
|
+
]
|
|
82
140
|
}
|
|
83
141
|
);
|
|
84
142
|
}
|
|
85
|
-
function
|
|
86
|
-
return s ? s.slot ? { slot: s.slot } : { name: s.name, src: s.src } : { slot: /* @__PURE__ */ e(
|
|
143
|
+
function ze(s, a) {
|
|
144
|
+
return s ? s.slot ? { slot: s.slot } : { name: s.name, src: s.src } : { slot: /* @__PURE__ */ e(Ne, { size: "sm", label: a }) };
|
|
87
145
|
}
|
|
88
|
-
function
|
|
146
|
+
function we({
|
|
89
147
|
assistantName: s,
|
|
90
|
-
avatarSrc:
|
|
91
|
-
greeting:
|
|
148
|
+
avatarSrc: a,
|
|
149
|
+
greeting: r,
|
|
92
150
|
subtitle: t,
|
|
93
|
-
suggestions:
|
|
151
|
+
suggestions: d,
|
|
94
152
|
onSuggestion: n
|
|
95
153
|
}) {
|
|
96
|
-
const { t: u } =
|
|
97
|
-
return /* @__PURE__ */
|
|
154
|
+
const { t: u } = y(), l = "alia-empty-state-heading";
|
|
155
|
+
return /* @__PURE__ */ c(
|
|
98
156
|
"section",
|
|
99
157
|
{
|
|
100
|
-
"aria-labelledby":
|
|
158
|
+
"aria-labelledby": l,
|
|
101
159
|
className: [
|
|
102
160
|
"ds:flex ds:flex-1 ds:min-h-0 ds:flex-col ds:items-center ds:justify-center",
|
|
103
161
|
"ds:text-center",
|
|
@@ -107,33 +165,40 @@ function he({
|
|
|
107
165
|
].join(" "),
|
|
108
166
|
"data-testid": "alia-empty-state",
|
|
109
167
|
children: [
|
|
110
|
-
|
|
111
|
-
|
|
168
|
+
a ? /* @__PURE__ */ e(I, { name: s, src: a, size: "xl" }) : /* @__PURE__ */ e(
|
|
169
|
+
w,
|
|
170
|
+
{
|
|
171
|
+
size: "xl",
|
|
172
|
+
label: s,
|
|
173
|
+
appearance: "spinner"
|
|
174
|
+
}
|
|
175
|
+
),
|
|
176
|
+
/* @__PURE__ */ c("div", { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-xs)] ds:max-w-[32rem]", children: [
|
|
112
177
|
/* @__PURE__ */ e(
|
|
113
178
|
"h2",
|
|
114
179
|
{
|
|
115
|
-
id:
|
|
180
|
+
id: l,
|
|
116
181
|
className: "type-title-section ds:m-0 ds:text-[color:var(--foreground)]",
|
|
117
|
-
children:
|
|
182
|
+
children: r
|
|
118
183
|
}
|
|
119
184
|
),
|
|
120
185
|
/* @__PURE__ */ e("p", { className: "type-body-sm ds:m-0 ds:text-[color:var(--muted-foreground)]", children: t })
|
|
121
186
|
] }),
|
|
122
|
-
|
|
187
|
+
d && d.length > 0 ? /* @__PURE__ */ e("div", { className: "ds:w-full ds:max-w-[40rem]", children: /* @__PURE__ */ e(
|
|
123
188
|
O,
|
|
124
189
|
{
|
|
125
190
|
label: u("alia.exampleQuestions"),
|
|
126
191
|
className: "ds:justify-center",
|
|
127
|
-
children:
|
|
192
|
+
children: d.map((o) => /* @__PURE__ */ e(
|
|
128
193
|
Q,
|
|
129
194
|
{
|
|
130
195
|
intent: "suggestion",
|
|
131
|
-
startIcon:
|
|
196
|
+
startIcon: o.icon,
|
|
132
197
|
keepOnSelect: !0,
|
|
133
|
-
onSelect: () => n == null ? void 0 : n(
|
|
134
|
-
children:
|
|
198
|
+
onSelect: () => n == null ? void 0 : n(o),
|
|
199
|
+
children: o.label
|
|
135
200
|
},
|
|
136
|
-
|
|
201
|
+
o.id
|
|
137
202
|
))
|
|
138
203
|
}
|
|
139
204
|
) }) : null
|
|
@@ -141,27 +206,35 @@ function he({
|
|
|
141
206
|
}
|
|
142
207
|
);
|
|
143
208
|
}
|
|
144
|
-
function
|
|
209
|
+
function je({
|
|
145
210
|
message: s,
|
|
146
|
-
assistantName:
|
|
147
|
-
avatarSrc:
|
|
211
|
+
assistantName: a,
|
|
212
|
+
avatarSrc: r,
|
|
148
213
|
renderMarkdown: t
|
|
149
214
|
}) {
|
|
150
|
-
const { t:
|
|
215
|
+
const { t: d, i18n: n } = y(), u = d("chat.message.role.assistant"), l = q(() => {
|
|
151
216
|
if (!s.timestamp) return null;
|
|
152
217
|
const m = s.timestamp instanceof Date ? s.timestamp : new Date(s.timestamp);
|
|
153
218
|
return Number.isNaN(m.getTime()) ? null : new Intl.DateTimeFormat(n.language, {
|
|
154
219
|
hour: "2-digit",
|
|
155
220
|
minute: "2-digit"
|
|
156
221
|
}).format(m);
|
|
157
|
-
}, [s.timestamp, n.language]),
|
|
158
|
-
return /* @__PURE__ */
|
|
222
|
+
}, [s.timestamp, n.language]), o = l ? d("chat.message.label", { role: u, time: l }) : d("chat.message.labelNoTime", { role: u });
|
|
223
|
+
return /* @__PURE__ */ c(
|
|
159
224
|
"article",
|
|
160
225
|
{
|
|
161
|
-
"aria-label":
|
|
226
|
+
"aria-label": o,
|
|
162
227
|
className: "ds:flex ds:w-full ds:items-start ds:flex-row ds:gap-[var(--spacing-sm)]",
|
|
163
228
|
children: [
|
|
164
|
-
|
|
229
|
+
r ? /* @__PURE__ */ e(I, { name: a, src: r, size: "sm" }) : /* @__PURE__ */ e(
|
|
230
|
+
w,
|
|
231
|
+
{
|
|
232
|
+
size: "sm",
|
|
233
|
+
label: a,
|
|
234
|
+
appearance: "spinner",
|
|
235
|
+
loading: !0
|
|
236
|
+
}
|
|
237
|
+
),
|
|
165
238
|
/* @__PURE__ */ e("div", { className: "ds:flex ds:flex-col ds:items-start", children: /* @__PURE__ */ e(
|
|
166
239
|
"div",
|
|
167
240
|
{
|
|
@@ -176,7 +249,7 @@ function be({
|
|
|
176
249
|
"ds:rounded-[var(--radius-md)] ds:rounded-es-[var(--radius-sm)]"
|
|
177
250
|
].join(" "),
|
|
178
251
|
children: /* @__PURE__ */ e(
|
|
179
|
-
|
|
252
|
+
ce,
|
|
180
253
|
{
|
|
181
254
|
content: s.content,
|
|
182
255
|
isStreaming: !0,
|
|
@@ -189,15 +262,15 @@ function be({
|
|
|
189
262
|
}
|
|
190
263
|
);
|
|
191
264
|
}
|
|
192
|
-
function
|
|
265
|
+
function ke({
|
|
193
266
|
assistantName: s,
|
|
194
|
-
avatarSrc:
|
|
195
|
-
onNewConversation:
|
|
267
|
+
avatarSrc: a,
|
|
268
|
+
onNewConversation: r,
|
|
196
269
|
headerEndSlot: t,
|
|
197
|
-
density:
|
|
270
|
+
density: d
|
|
198
271
|
}) {
|
|
199
|
-
const { t: n } =
|
|
200
|
-
return /* @__PURE__ */
|
|
272
|
+
const { t: n } = y();
|
|
273
|
+
return /* @__PURE__ */ c(
|
|
201
274
|
"header",
|
|
202
275
|
{
|
|
203
276
|
"aria-label": n("alia.headerLabel"),
|
|
@@ -209,33 +282,34 @@ function ve({
|
|
|
209
282
|
"ds:shadow-[var(--shadow-chrome-down)]",
|
|
210
283
|
"ds:bg-[var(--background)]",
|
|
211
284
|
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
212
|
-
|
|
285
|
+
d === "compact" ? "ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]" : "ds:pt-[var(--spacing-md)] ds:pb-[var(--spacing-md)]"
|
|
213
286
|
].join(" "),
|
|
214
287
|
"data-testid": "alia-header",
|
|
215
288
|
children: [
|
|
216
|
-
|
|
217
|
-
|
|
289
|
+
a ? /* @__PURE__ */ e(
|
|
290
|
+
I,
|
|
218
291
|
{
|
|
219
292
|
name: s,
|
|
220
|
-
src:
|
|
221
|
-
size:
|
|
293
|
+
src: a,
|
|
294
|
+
size: d === "compact" ? "sm" : "md"
|
|
222
295
|
}
|
|
223
296
|
) : /* @__PURE__ */ e(
|
|
224
|
-
|
|
297
|
+
w,
|
|
225
298
|
{
|
|
226
|
-
size:
|
|
227
|
-
label: s
|
|
299
|
+
size: d === "compact" ? "sm" : "md",
|
|
300
|
+
label: s,
|
|
301
|
+
appearance: "spinner"
|
|
228
302
|
}
|
|
229
303
|
),
|
|
230
304
|
/* @__PURE__ */ e("span", { className: "type-title-item ds:text-[color:var(--foreground)]", children: s }),
|
|
231
|
-
/* @__PURE__ */
|
|
232
|
-
|
|
233
|
-
|
|
305
|
+
/* @__PURE__ */ c("div", { className: "ds:ms-auto ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
306
|
+
r ? /* @__PURE__ */ e(
|
|
307
|
+
M,
|
|
234
308
|
{
|
|
235
309
|
intent: "ghost",
|
|
236
310
|
size: "sm",
|
|
237
|
-
startIcon: /* @__PURE__ */ e(
|
|
238
|
-
onClick:
|
|
311
|
+
startIcon: /* @__PURE__ */ e(fe, { "aria-hidden": "true" }),
|
|
312
|
+
onClick: r,
|
|
239
313
|
children: n("alia.newConversation")
|
|
240
314
|
}
|
|
241
315
|
) : null,
|
|
@@ -245,70 +319,87 @@ function ve({
|
|
|
245
319
|
}
|
|
246
320
|
);
|
|
247
321
|
}
|
|
248
|
-
const
|
|
322
|
+
const L = _(
|
|
249
323
|
({
|
|
250
324
|
messages: s,
|
|
251
|
-
onSend:
|
|
252
|
-
onRetry:
|
|
325
|
+
onSend: a,
|
|
326
|
+
onRetry: r,
|
|
253
327
|
onSuggestion: t,
|
|
254
|
-
suggestions:
|
|
328
|
+
suggestions: d,
|
|
255
329
|
isGenerating: n = !1,
|
|
256
330
|
onStopGenerating: u,
|
|
257
|
-
usage:
|
|
258
|
-
onUpgrade:
|
|
331
|
+
usage: l,
|
|
332
|
+
onUpgrade: o,
|
|
259
333
|
assistantName: m,
|
|
260
|
-
assistantAvatar:
|
|
261
|
-
userAvatar:
|
|
262
|
-
greeting:
|
|
263
|
-
subtitle:
|
|
334
|
+
assistantAvatar: i,
|
|
335
|
+
userAvatar: v,
|
|
336
|
+
greeting: b,
|
|
337
|
+
subtitle: T,
|
|
264
338
|
density: x = "default",
|
|
265
|
-
renderMarkdown:
|
|
266
|
-
onNewConversation:
|
|
267
|
-
onAttach:
|
|
268
|
-
acceptedFileTypes:
|
|
269
|
-
headerEndSlot:
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
339
|
+
renderMarkdown: E = !0,
|
|
340
|
+
onNewConversation: V,
|
|
341
|
+
onAttach: Z,
|
|
342
|
+
acceptedFileTypes: $,
|
|
343
|
+
headerEndSlot: J,
|
|
344
|
+
ended: j
|
|
345
|
+
}, K) => {
|
|
346
|
+
const { t: p } = y(), k = j != null, f = m ?? p("alia.name"), Y = b ?? p("alia.greeting"), G = T ?? p("alia.subtitle"), g = s[s.length - 1], C = (g == null ? void 0 : g.role) === "assistant" && g.streaming === !0, R = C ? s.slice(0, -1) : s, A = q(() => {
|
|
347
|
+
const N = p("chat.message.role.user"), S = R.map((h) => {
|
|
348
|
+
let B;
|
|
349
|
+
return h.role === "assistant" ? B = i != null && i.src ? { name: f, src: i.src } : {
|
|
350
|
+
slot: /* @__PURE__ */ e(
|
|
351
|
+
w,
|
|
352
|
+
{
|
|
353
|
+
size: "sm",
|
|
354
|
+
label: f,
|
|
355
|
+
appearance: "spinner"
|
|
356
|
+
}
|
|
357
|
+
)
|
|
358
|
+
} : h.role === "user" && (B = ze(v, N)), {
|
|
275
359
|
id: h.id,
|
|
276
360
|
node: /* @__PURE__ */ e(
|
|
277
|
-
|
|
361
|
+
le,
|
|
278
362
|
{
|
|
279
363
|
role: h.role,
|
|
280
364
|
content: h.content,
|
|
281
|
-
avatar:
|
|
365
|
+
avatar: B,
|
|
282
366
|
timestamp: h.timestamp,
|
|
283
367
|
status: h.status,
|
|
284
|
-
renderMarkdown:
|
|
285
|
-
onRetry:
|
|
368
|
+
renderMarkdown: E,
|
|
369
|
+
onRetry: r ? () => r(h.id) : void 0
|
|
286
370
|
}
|
|
287
371
|
)
|
|
288
372
|
};
|
|
289
373
|
});
|
|
290
|
-
return
|
|
374
|
+
return C && g && S.push({
|
|
291
375
|
id: g.id,
|
|
292
376
|
node: /* @__PURE__ */ e(
|
|
293
|
-
|
|
377
|
+
je,
|
|
294
378
|
{
|
|
295
379
|
message: g,
|
|
296
380
|
assistantName: f,
|
|
297
|
-
avatarSrc:
|
|
298
|
-
renderMarkdown:
|
|
381
|
+
avatarSrc: i == null ? void 0 : i.src,
|
|
382
|
+
renderMarkdown: E
|
|
299
383
|
}
|
|
300
384
|
)
|
|
301
|
-
}), n && !
|
|
385
|
+
}), n && !C && S.push({
|
|
302
386
|
id: "__alia-typing__",
|
|
303
|
-
node: /* @__PURE__ */
|
|
304
|
-
|
|
305
|
-
|
|
387
|
+
node: /* @__PURE__ */ c("div", { className: "ds:flex ds:w-full ds:items-start ds:gap-[var(--spacing-sm)]", children: [
|
|
388
|
+
i != null && i.src ? /* @__PURE__ */ e(
|
|
389
|
+
I,
|
|
306
390
|
{
|
|
307
391
|
name: f,
|
|
308
|
-
src:
|
|
392
|
+
src: i.src,
|
|
309
393
|
size: "sm"
|
|
310
394
|
}
|
|
311
|
-
) : /* @__PURE__ */ e(
|
|
395
|
+
) : /* @__PURE__ */ e(
|
|
396
|
+
w,
|
|
397
|
+
{
|
|
398
|
+
size: "sm",
|
|
399
|
+
label: f,
|
|
400
|
+
appearance: "spinner"
|
|
401
|
+
}
|
|
402
|
+
),
|
|
312
403
|
/* @__PURE__ */ e(
|
|
313
404
|
"div",
|
|
314
405
|
{
|
|
@@ -318,66 +409,70 @@ const S = C(
|
|
|
318
409
|
"ds:rounded-[var(--radius-md)] ds:rounded-es-[var(--radius-sm)]",
|
|
319
410
|
"ds:bg-muted/40"
|
|
320
411
|
].join(" "),
|
|
321
|
-
children: /* @__PURE__ */ e(
|
|
412
|
+
children: /* @__PURE__ */ e(oe, { label: p("chat.typing"), density: x })
|
|
322
413
|
}
|
|
323
414
|
)
|
|
324
415
|
] })
|
|
325
|
-
}),
|
|
416
|
+
}), j && S.push({
|
|
417
|
+
id: "__alia-ended__",
|
|
418
|
+
node: /* @__PURE__ */ e(ye, { note: j.note })
|
|
419
|
+
}), S;
|
|
326
420
|
}, [
|
|
327
|
-
|
|
328
|
-
|
|
421
|
+
R,
|
|
422
|
+
C,
|
|
329
423
|
g,
|
|
330
424
|
n,
|
|
331
425
|
f,
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
426
|
+
i == null ? void 0 : i.src,
|
|
427
|
+
v,
|
|
428
|
+
E,
|
|
429
|
+
r,
|
|
336
430
|
x,
|
|
431
|
+
j,
|
|
337
432
|
p
|
|
338
|
-
]),
|
|
433
|
+
]), ee = l ? Math.min(
|
|
339
434
|
100,
|
|
340
|
-
Math.max(0,
|
|
341
|
-
) : 0,
|
|
342
|
-
current:
|
|
343
|
-
limit:
|
|
344
|
-
}) : null,
|
|
345
|
-
|
|
346
|
-
/* @__PURE__ */
|
|
435
|
+
Math.max(0, l.current / Math.max(1, l.limit) * 100)
|
|
436
|
+
) : 0, z = l ? l.current >= l.limit : !1, H = l ? l.label ?? p("alia.usageLabel", {
|
|
437
|
+
current: l.current,
|
|
438
|
+
limit: l.limit
|
|
439
|
+
}) : null, U = s.length === 0 && !n && !k, X = /* @__PURE__ */ c("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
440
|
+
l ? /* @__PURE__ */ c("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
441
|
+
/* @__PURE__ */ c("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
347
442
|
/* @__PURE__ */ e(
|
|
348
443
|
"span",
|
|
349
444
|
{
|
|
350
445
|
className: [
|
|
351
446
|
"type-meta",
|
|
352
|
-
|
|
447
|
+
z ? "ds:text-[color:var(--destructive)]" : "ds:text-[color:var(--muted-foreground)]"
|
|
353
448
|
].join(" "),
|
|
354
449
|
"data-testid": "alia-usage-label",
|
|
355
|
-
children:
|
|
450
|
+
children: z ? p("alia.usageLimitReached") : H
|
|
356
451
|
}
|
|
357
452
|
),
|
|
358
|
-
|
|
453
|
+
z && o ? /* @__PURE__ */ e(M, { intent: "primary", size: "sm", onClick: o, children: p("alia.upgrade") }) : null
|
|
359
454
|
] }),
|
|
360
455
|
/* @__PURE__ */ e(
|
|
361
|
-
|
|
456
|
+
me,
|
|
362
457
|
{
|
|
363
|
-
value:
|
|
458
|
+
value: ee,
|
|
364
459
|
max: 100,
|
|
365
460
|
size: "sm",
|
|
366
|
-
ariaLabel:
|
|
367
|
-
current:
|
|
368
|
-
limit:
|
|
461
|
+
ariaLabel: H ?? p("alia.usageLabel", {
|
|
462
|
+
current: l.current,
|
|
463
|
+
limit: l.limit
|
|
369
464
|
}),
|
|
370
|
-
className:
|
|
465
|
+
className: z ? "ds:[&_[role=progressbar]>*]:bg-[color:var(--destructive)]" : void 0,
|
|
371
466
|
"data-testid": "alia-usage-progress"
|
|
372
467
|
}
|
|
373
468
|
)
|
|
374
469
|
] }) : null,
|
|
375
|
-
!
|
|
470
|
+
!U && d && d.length > 0 && !n && !k ? /* @__PURE__ */ e(
|
|
376
471
|
O,
|
|
377
472
|
{
|
|
378
473
|
label: p("alia.exampleQuestions"),
|
|
379
474
|
"data-testid": "alia-followup-suggestions",
|
|
380
|
-
children:
|
|
475
|
+
children: d.map((N) => /* @__PURE__ */ e(
|
|
381
476
|
Q,
|
|
382
477
|
{
|
|
383
478
|
intent: "followup",
|
|
@@ -390,24 +485,24 @@ const S = C(
|
|
|
390
485
|
))
|
|
391
486
|
}
|
|
392
487
|
) : null,
|
|
393
|
-
/* @__PURE__ */
|
|
488
|
+
/* @__PURE__ */ c("div", { className: "ds:flex ds:items-end ds:gap-[var(--spacing-sm)]", children: [
|
|
394
489
|
/* @__PURE__ */ e("div", { className: "ds:flex-1 ds:min-w-0", children: /* @__PURE__ */ e(
|
|
395
|
-
|
|
490
|
+
te,
|
|
396
491
|
{
|
|
397
492
|
submitOnEnter: !0,
|
|
398
|
-
onSubmit:
|
|
399
|
-
onAttach:
|
|
400
|
-
accept:
|
|
401
|
-
disabled:
|
|
493
|
+
onSubmit: a,
|
|
494
|
+
onAttach: Z,
|
|
495
|
+
accept: $,
|
|
496
|
+
disabled: z || k,
|
|
402
497
|
"data-testid": "alia-composer"
|
|
403
498
|
}
|
|
404
499
|
) }),
|
|
405
|
-
n && u ? /* @__PURE__ */ e(
|
|
406
|
-
|
|
500
|
+
n && u && !k ? /* @__PURE__ */ e(
|
|
501
|
+
M,
|
|
407
502
|
{
|
|
408
503
|
intent: "outline",
|
|
409
504
|
size: "sm",
|
|
410
|
-
startIcon: /* @__PURE__ */ e(
|
|
505
|
+
startIcon: /* @__PURE__ */ e(pe, { "aria-hidden": "true" }),
|
|
411
506
|
onClick: u,
|
|
412
507
|
"aria-label": p("alia.stopGenerating"),
|
|
413
508
|
children: p("alia.stopGenerating")
|
|
@@ -415,10 +510,10 @@ const S = C(
|
|
|
415
510
|
) : null
|
|
416
511
|
] })
|
|
417
512
|
] });
|
|
418
|
-
return /* @__PURE__ */
|
|
513
|
+
return /* @__PURE__ */ c(
|
|
419
514
|
"div",
|
|
420
515
|
{
|
|
421
|
-
ref:
|
|
516
|
+
ref: K,
|
|
422
517
|
className: [
|
|
423
518
|
"ds:flex ds:min-h-0 ds:flex-1 ds:flex-col",
|
|
424
519
|
"ds:bg-[var(--background)] ds:text-[color:var(--foreground)]"
|
|
@@ -426,24 +521,24 @@ const S = C(
|
|
|
426
521
|
"data-testid": "alia-surface",
|
|
427
522
|
children: [
|
|
428
523
|
/* @__PURE__ */ e(
|
|
429
|
-
|
|
524
|
+
ke,
|
|
430
525
|
{
|
|
431
526
|
assistantName: f,
|
|
432
|
-
avatarSrc:
|
|
433
|
-
onNewConversation:
|
|
434
|
-
headerEndSlot:
|
|
527
|
+
avatarSrc: i == null ? void 0 : i.src,
|
|
528
|
+
onNewConversation: V,
|
|
529
|
+
headerEndSlot: J,
|
|
435
530
|
density: x
|
|
436
531
|
}
|
|
437
532
|
),
|
|
438
|
-
|
|
533
|
+
U ? /* @__PURE__ */ c(se, { children: [
|
|
439
534
|
/* @__PURE__ */ e(
|
|
440
|
-
|
|
535
|
+
we,
|
|
441
536
|
{
|
|
442
537
|
assistantName: f,
|
|
443
|
-
avatarSrc:
|
|
444
|
-
greeting:
|
|
445
|
-
subtitle:
|
|
446
|
-
suggestions:
|
|
538
|
+
avatarSrc: i == null ? void 0 : i.src,
|
|
539
|
+
greeting: Y,
|
|
540
|
+
subtitle: G,
|
|
541
|
+
suggestions: d,
|
|
447
542
|
onSuggestion: t
|
|
448
543
|
}
|
|
449
544
|
),
|
|
@@ -461,15 +556,15 @@ const S = C(
|
|
|
461
556
|
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
462
557
|
"ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]"
|
|
463
558
|
].join(" "),
|
|
464
|
-
children:
|
|
559
|
+
children: X
|
|
465
560
|
}
|
|
466
561
|
)
|
|
467
562
|
] }) : /* @__PURE__ */ e(
|
|
468
|
-
|
|
563
|
+
re,
|
|
469
564
|
{
|
|
470
|
-
messages:
|
|
565
|
+
messages: A,
|
|
471
566
|
density: x,
|
|
472
|
-
composer:
|
|
567
|
+
composer: X,
|
|
473
568
|
className: "ds:flex-1 ds:min-h-0"
|
|
474
569
|
}
|
|
475
570
|
)
|
|
@@ -478,12 +573,12 @@ const S = C(
|
|
|
478
573
|
);
|
|
479
574
|
}
|
|
480
575
|
);
|
|
481
|
-
|
|
482
|
-
const
|
|
483
|
-
({ headerSlot: s, ...
|
|
576
|
+
L.displayName = "AliaChatSurface";
|
|
577
|
+
const Ce = _(
|
|
578
|
+
({ headerSlot: s, ...a }, r) => /* @__PURE__ */ c(
|
|
484
579
|
"div",
|
|
485
580
|
{
|
|
486
|
-
ref:
|
|
581
|
+
ref: r,
|
|
487
582
|
className: [
|
|
488
583
|
"ds:flex ds:min-h-0 ds:flex-1 ds:flex-col",
|
|
489
584
|
"ds:bg-[var(--background)] ds:text-[color:var(--foreground)]",
|
|
@@ -511,62 +606,62 @@ const xe = C(
|
|
|
511
606
|
"ds:[max-inline-size:48rem]",
|
|
512
607
|
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]"
|
|
513
608
|
].join(" "),
|
|
514
|
-
children: /* @__PURE__ */ e(
|
|
609
|
+
children: /* @__PURE__ */ e(L, { ...a })
|
|
515
610
|
}
|
|
516
611
|
) })
|
|
517
612
|
]
|
|
518
613
|
}
|
|
519
614
|
)
|
|
520
615
|
);
|
|
521
|
-
|
|
522
|
-
function
|
|
616
|
+
Ce.displayName = "AliaEmbedded";
|
|
617
|
+
function Se(s) {
|
|
523
618
|
return s > 99 ? "99+" : String(s);
|
|
524
619
|
}
|
|
525
|
-
const
|
|
620
|
+
const _e = _(
|
|
526
621
|
({
|
|
527
622
|
open: s,
|
|
528
|
-
onOpenChange:
|
|
529
|
-
position:
|
|
623
|
+
onOpenChange: a,
|
|
624
|
+
position: r = "bottom-end",
|
|
530
625
|
unseenCount: t,
|
|
531
|
-
assistantName:
|
|
626
|
+
assistantName: d,
|
|
532
627
|
assistantAvatar: n,
|
|
533
628
|
...u
|
|
534
|
-
},
|
|
535
|
-
const { t:
|
|
536
|
-
|
|
629
|
+
}, l) => {
|
|
630
|
+
const { t: o } = y(), m = d || o("alia.name"), i = typeof t == "number" && t > 0, v = i ? o("alia.unseenCount", { count: t }) : o("alia.open"), b = /* @__PURE__ */ e(ae.Close, { asChild: !0, children: /* @__PURE__ */ e(
|
|
631
|
+
P,
|
|
537
632
|
{
|
|
538
|
-
icon: /* @__PURE__ */ e(
|
|
633
|
+
icon: /* @__PURE__ */ e(ie, { "aria-hidden": "true" }),
|
|
539
634
|
intent: "ghost",
|
|
540
635
|
size: "sm",
|
|
541
|
-
"aria-label":
|
|
636
|
+
"aria-label": o("alia.close"),
|
|
542
637
|
"data-testid": "alia-popout-close"
|
|
543
638
|
}
|
|
544
639
|
) });
|
|
545
|
-
return /* @__PURE__ */
|
|
640
|
+
return /* @__PURE__ */ c(D.Root, { open: s, onOpenChange: a, children: [
|
|
546
641
|
/* @__PURE__ */ e(
|
|
547
642
|
"div",
|
|
548
643
|
{
|
|
549
|
-
ref:
|
|
644
|
+
ref: l,
|
|
550
645
|
className: [
|
|
551
646
|
"ds:fixed ds:z-[var(--z-fixed)]",
|
|
552
647
|
"ds:bottom-[calc(var(--spacing-lg)+env(safe-area-inset-bottom,0px))]",
|
|
553
|
-
|
|
648
|
+
r === "bottom-end" ? "ds:end-[var(--spacing-lg)]" : "ds:start-[var(--spacing-lg)]"
|
|
554
649
|
].join(" "),
|
|
555
650
|
"data-testid": "alia-popout-fab-wrapper",
|
|
556
|
-
children: /* @__PURE__ */
|
|
651
|
+
children: /* @__PURE__ */ c("div", { className: "ds:relative", children: [
|
|
557
652
|
/* @__PURE__ */ e(
|
|
558
|
-
|
|
653
|
+
de,
|
|
559
654
|
{
|
|
560
|
-
icon: /* @__PURE__ */ e(
|
|
561
|
-
"aria-label":
|
|
655
|
+
icon: /* @__PURE__ */ e(F, { "aria-hidden": "true" }),
|
|
656
|
+
"aria-label": v,
|
|
562
657
|
variant: "primary",
|
|
563
658
|
size: "md",
|
|
564
659
|
position: "static",
|
|
565
|
-
onClick: () =>
|
|
660
|
+
onClick: () => a(!0),
|
|
566
661
|
"data-testid": "alia-popout-fab"
|
|
567
662
|
}
|
|
568
663
|
),
|
|
569
|
-
|
|
664
|
+
i ? /* @__PURE__ */ e(
|
|
570
665
|
"span",
|
|
571
666
|
{
|
|
572
667
|
"aria-hidden": "true",
|
|
@@ -583,30 +678,30 @@ const ze = C(
|
|
|
583
678
|
"ds:pointer-events-none ds:select-none",
|
|
584
679
|
"ds:forced-colors:outline ds:forced-colors:outline-1 ds:forced-colors:outline-[CanvasText]"
|
|
585
680
|
].join(" "),
|
|
586
|
-
children:
|
|
681
|
+
children: Se(t)
|
|
587
682
|
}
|
|
588
683
|
) : null
|
|
589
684
|
] })
|
|
590
685
|
}
|
|
591
686
|
),
|
|
592
|
-
/* @__PURE__ */
|
|
593
|
-
|
|
687
|
+
/* @__PURE__ */ c(
|
|
688
|
+
D.Content,
|
|
594
689
|
{
|
|
595
690
|
side: "end",
|
|
596
691
|
size: "md",
|
|
597
|
-
"aria-label":
|
|
692
|
+
"aria-label": o("alia.panelLabel"),
|
|
598
693
|
className: "ds:flex ds:min-h-0 ds:flex-col ds:p-0",
|
|
599
694
|
"data-testid": "alia-popout-panel",
|
|
600
695
|
children: [
|
|
601
|
-
/* @__PURE__ */ e(
|
|
696
|
+
/* @__PURE__ */ e(D.Title, { className: "ds:sr-only", children: m }),
|
|
602
697
|
/* @__PURE__ */ e(
|
|
603
|
-
|
|
698
|
+
L,
|
|
604
699
|
{
|
|
605
700
|
...u,
|
|
606
701
|
assistantName: m,
|
|
607
702
|
assistantAvatar: n,
|
|
608
703
|
density: "compact",
|
|
609
|
-
headerEndSlot:
|
|
704
|
+
headerEndSlot: b
|
|
610
705
|
}
|
|
611
706
|
)
|
|
612
707
|
]
|
|
@@ -615,51 +710,51 @@ const ze = C(
|
|
|
615
710
|
] });
|
|
616
711
|
}
|
|
617
712
|
);
|
|
618
|
-
|
|
619
|
-
function
|
|
713
|
+
_e.displayName = "AliaPopout";
|
|
714
|
+
function Ie(s) {
|
|
620
715
|
return s > 99 ? "99+" : String(s);
|
|
621
716
|
}
|
|
622
|
-
const
|
|
717
|
+
const Le = "ds:[inline-size:22rem]", Te = "ds:[inline-size:3rem]", Ee = _(
|
|
623
718
|
({
|
|
624
719
|
open: s,
|
|
625
|
-
onOpenChange:
|
|
626
|
-
side:
|
|
720
|
+
onOpenChange: a,
|
|
721
|
+
side: r = "end",
|
|
627
722
|
unseenCount: t,
|
|
628
|
-
footerSlot:
|
|
723
|
+
footerSlot: d,
|
|
629
724
|
assistantName: n,
|
|
630
725
|
assistantAvatar: u,
|
|
631
|
-
...
|
|
632
|
-
},
|
|
633
|
-
const { t: m } =
|
|
726
|
+
...l
|
|
727
|
+
}, o) => {
|
|
728
|
+
const { t: m } = y(), i = n || m("alia.name"), v = typeof t == "number" && t > 0, b = r === "end" ? "ds:shadow-[var(--shadow-chrome-start)]" : "ds:shadow-[var(--shadow-chrome-end)]", T = v ? m("alia.unseenCount", { count: t }) : m("alia.open");
|
|
634
729
|
if (!s)
|
|
635
730
|
return /* @__PURE__ */ e(
|
|
636
731
|
"aside",
|
|
637
732
|
{
|
|
638
|
-
ref:
|
|
733
|
+
ref: o,
|
|
639
734
|
"aria-label": m("alia.panelLabel"),
|
|
640
735
|
className: [
|
|
641
736
|
"ds:flex ds:shrink-0 ds:flex-col ds:items-center",
|
|
642
737
|
"ds:bg-[var(--background)]",
|
|
643
|
-
|
|
738
|
+
b,
|
|
644
739
|
"ds:pt-[var(--spacing-md)] ds:pb-[var(--spacing-md)]",
|
|
645
|
-
|
|
740
|
+
Te
|
|
646
741
|
].join(" "),
|
|
647
742
|
"data-testid": "alia-sidebar-rail",
|
|
648
743
|
"data-alia-sidebar-state": "collapsed",
|
|
649
|
-
children: /* @__PURE__ */
|
|
744
|
+
children: /* @__PURE__ */ c("div", { className: "ds:relative ds:[&_svg]:text-[color:var(--accent)]", children: [
|
|
650
745
|
/* @__PURE__ */ e(
|
|
651
|
-
|
|
746
|
+
P,
|
|
652
747
|
{
|
|
653
|
-
icon: /* @__PURE__ */ e(
|
|
654
|
-
"aria-label":
|
|
748
|
+
icon: /* @__PURE__ */ e(F, { "aria-hidden": "true" }),
|
|
749
|
+
"aria-label": T,
|
|
655
750
|
"aria-expanded": "false",
|
|
656
751
|
intent: "ghost",
|
|
657
752
|
size: "sm",
|
|
658
|
-
onClick: () =>
|
|
753
|
+
onClick: () => a(!0),
|
|
659
754
|
"data-testid": "alia-sidebar-rail-trigger"
|
|
660
755
|
}
|
|
661
756
|
),
|
|
662
|
-
|
|
757
|
+
v ? /* @__PURE__ */ e(
|
|
663
758
|
"span",
|
|
664
759
|
{
|
|
665
760
|
"aria-hidden": "true",
|
|
@@ -676,55 +771,55 @@ const ye = "ds:[inline-size:22rem]", je = "ds:[inline-size:3rem]", Ce = C(
|
|
|
676
771
|
"ds:pointer-events-none ds:select-none",
|
|
677
772
|
"ds:forced-colors:outline ds:forced-colors:outline-1 ds:forced-colors:outline-[CanvasText]"
|
|
678
773
|
].join(" "),
|
|
679
|
-
children:
|
|
774
|
+
children: Ie(t)
|
|
680
775
|
}
|
|
681
776
|
) : null
|
|
682
777
|
] })
|
|
683
778
|
}
|
|
684
779
|
);
|
|
685
780
|
const x = /* @__PURE__ */ e(
|
|
686
|
-
|
|
781
|
+
P,
|
|
687
782
|
{
|
|
688
|
-
icon:
|
|
783
|
+
icon: r === "end" ? /* @__PURE__ */ e(he, {}) : /* @__PURE__ */ e(ve, {}),
|
|
689
784
|
intent: "ghost",
|
|
690
785
|
size: "sm",
|
|
691
786
|
"aria-label": m("alia.close"),
|
|
692
787
|
"aria-expanded": "true",
|
|
693
|
-
onClick: () =>
|
|
788
|
+
onClick: () => a(!1),
|
|
694
789
|
"data-testid": "alia-sidebar-collapse"
|
|
695
790
|
}
|
|
696
791
|
);
|
|
697
|
-
return /* @__PURE__ */
|
|
792
|
+
return /* @__PURE__ */ c(
|
|
698
793
|
"aside",
|
|
699
794
|
{
|
|
700
|
-
ref:
|
|
795
|
+
ref: o,
|
|
701
796
|
"aria-label": m("alia.panelLabel"),
|
|
702
797
|
className: [
|
|
703
798
|
"ds:flex ds:shrink-0 ds:flex-col ds:min-h-0",
|
|
704
799
|
"ds:bg-[var(--background)]",
|
|
705
|
-
|
|
706
|
-
|
|
800
|
+
b,
|
|
801
|
+
Le,
|
|
707
802
|
"ds:h-full"
|
|
708
803
|
].join(" "),
|
|
709
804
|
"data-testid": "alia-sidebar",
|
|
710
805
|
"data-alia-sidebar-state": "expanded",
|
|
711
806
|
children: [
|
|
712
807
|
/* @__PURE__ */ e("div", { className: "ds:flex ds:min-h-0 ds:flex-1 ds:flex-col", children: /* @__PURE__ */ e(
|
|
713
|
-
|
|
808
|
+
L,
|
|
714
809
|
{
|
|
715
|
-
...
|
|
716
|
-
assistantName:
|
|
810
|
+
...l,
|
|
811
|
+
assistantName: i,
|
|
717
812
|
assistantAvatar: u,
|
|
718
813
|
density: "compact",
|
|
719
814
|
headerEndSlot: x
|
|
720
815
|
}
|
|
721
816
|
) }),
|
|
722
|
-
|
|
817
|
+
d ? /* @__PURE__ */ e(
|
|
723
818
|
"div",
|
|
724
819
|
{
|
|
725
820
|
"data-testid": "alia-sidebar-footer-slot",
|
|
726
821
|
className: "ds:shrink-0 ds:shadow-[var(--shadow-chrome-up)]",
|
|
727
|
-
children:
|
|
822
|
+
children: d
|
|
728
823
|
}
|
|
729
824
|
) : null
|
|
730
825
|
]
|
|
@@ -732,11 +827,11 @@ const ye = "ds:[inline-size:22rem]", je = "ds:[inline-size:3rem]", Ce = C(
|
|
|
732
827
|
);
|
|
733
828
|
}
|
|
734
829
|
);
|
|
735
|
-
|
|
830
|
+
Ee.displayName = "AliaSidebar";
|
|
736
831
|
export {
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
832
|
+
L as A,
|
|
833
|
+
Ce as a,
|
|
834
|
+
_e as b,
|
|
835
|
+
Ee as c
|
|
741
836
|
};
|
|
742
|
-
//# sourceMappingURL=alia-sidebar-
|
|
837
|
+
//# sourceMappingURL=alia-sidebar-Be8FhKYd.js.map
|