@eka-care/medassist-widget 0.1.124-dev.5 → 0.1.125-dev.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/medassist-widget-CardList-ST569rut.js +1 -0
- package/dist/medassist-widget-DoctorCard-B_xw-xWd.js +1 -0
- package/dist/medassist-widget-ElicitationInput-DKEz5EVH.js +1 -0
- package/dist/medassist-widget-FocusCarousel-af7aMXWo.js +1 -0
- package/dist/medassist-widget-MediaCard-CLipu6gc.js +1 -0
- package/dist/medassist-widget-MultiSelect-zx2GZY3z.js +1 -0
- package/dist/medassist-widget-VoiceAgentScreen-BK0p37RC.js +3 -380
- package/dist/medassist-widget-check-BaHLRs-2.js +1 -5
- package/dist/medassist-widget-chevron-right-CKYbGWbY.js +1 -7
- package/dist/medassist-widget-html2canvas.esm-CphxV6YW.js +3 -4833
- package/dist/medassist-widget-map-pin-Bx-5lPdC.js +1 -14
- package/dist/medassist-widget-mood-angry-BQqxy8gg.js +1 -10
- package/dist/medassist-widget-mood-bad-BBDRkdRc.js +1 -10
- package/dist/medassist-widget-mood-happy-oLG7NUhq.js +1 -9
- package/dist/medassist-widget-mood-neutral-CbcKAQbC.js +1 -10
- package/dist/medassist-widget-mood-poor-t4w5iE4B.js +1 -10
- package/dist/medassist-widget.css +1 -1
- package/dist/medassist-widget.js +15 -14720
- package/package.json +4 -4
- package/dist/medassist-widget-CardList-Dx2bzaVC.js +0 -222
- package/dist/medassist-widget-DoctorCard-Cn_E83qL.js +0 -552
- package/dist/medassist-widget-FocusCarousel-C8sm1Tm0.js +0 -99
- package/dist/medassist-widget-MediaCard-yhz2Z0ZQ.js +0 -179
- package/dist/medassist-widget-MultiSelect-BnExX-Ty.js +0 -414
|
@@ -1,379 +1,5 @@
|
|
|
1
|
-
import { c, u as e, d as y, a as t, B as l, M as h, X as v } from "./medassist-widget.js";
|
|
2
|
-
|
|
3
|
-
["path", { d: "M12 19v3", key: "npa21l" }],
|
|
4
|
-
["path", { d: "M15 9.34V5a3 3 0 0 0-5.68-1.33", key: "1gzdoj" }],
|
|
5
|
-
["path", { d: "M16.95 16.95A7 7 0 0 1 5 12v-2", key: "cqa7eg" }],
|
|
6
|
-
["path", { d: "M18.89 13.23A7 7 0 0 0 19 12v-2", key: "16hl24" }],
|
|
7
|
-
["path", { d: "m2 2 20 20", key: "1ooewy" }],
|
|
8
|
-
["path", { d: "M9 9v3a3 3 0 0 0 5.12 2.12", key: "r2i35w" }]
|
|
9
|
-
], b = c("mic-off", x);
|
|
10
|
-
const C = [
|
|
11
|
-
[
|
|
12
|
-
"path",
|
|
13
|
-
{
|
|
14
|
-
d: "M10.1 13.9a14 14 0 0 0 3.732 2.668 1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2 18 18 0 0 1-12.728-5.272",
|
|
15
|
-
key: "1wngk7"
|
|
16
|
-
}
|
|
17
|
-
],
|
|
18
|
-
["path", { d: "M22 2 2 22", key: "y4kqgn" }],
|
|
19
|
-
[
|
|
20
|
-
"path",
|
|
21
|
-
{
|
|
22
|
-
d: "M4.76 13.582A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 .244.473",
|
|
23
|
-
key: "10hv5p"
|
|
24
|
-
}
|
|
25
|
-
]
|
|
26
|
-
], N = c("phone-off", C);
|
|
27
|
-
function g({ state: i }) {
|
|
28
|
-
switch (i) {
|
|
29
|
-
case "speaking":
|
|
30
|
-
return /* @__PURE__ */ e(G, {});
|
|
31
|
-
case "thinking":
|
|
32
|
-
return /* @__PURE__ */ e(S, {});
|
|
33
|
-
case "listening":
|
|
34
|
-
return /* @__PURE__ */ e(T, {});
|
|
35
|
-
default:
|
|
36
|
-
return /* @__PURE__ */ e(w, {});
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
function w() {
|
|
40
|
-
return /* @__PURE__ */ e("svg", { viewBox: "0 0 240 240", xmlns: "http://www.w3.org/2000/svg", className: "w-full h-full", children: [
|
|
41
|
-
/* @__PURE__ */ e("defs", { children: [
|
|
42
|
-
/* @__PURE__ */ e("clipPath", { id: "voi-c", children: /* @__PURE__ */ e("circle", { cx: "120", cy: "120", r: "112" }) }),
|
|
43
|
-
/* @__PURE__ */ e("filter", { id: "voi-f1", x: "-50%", y: "-50%", width: "200%", height: "200%", children: [
|
|
44
|
-
/* @__PURE__ */ e("feTurbulence", { type: "fractalNoise", baseFrequency: "0.007 0.009", numOctaves: "3", seed: "3", result: "n", children: /* @__PURE__ */ e("animate", { attributeName: "baseFrequency", values: "0.007 0.009;0.011 0.005;0.005 0.012;0.007 0.009", dur: "30s", repeatCount: "indefinite" }) }),
|
|
45
|
-
/* @__PURE__ */ e("feDisplacementMap", { in: "SourceGraphic", in2: "n", scale: "20", xChannelSelector: "R", yChannelSelector: "G", result: "d" }),
|
|
46
|
-
/* @__PURE__ */ e("feGaussianBlur", { in: "d", stdDeviation: "18" })
|
|
47
|
-
] }),
|
|
48
|
-
/* @__PURE__ */ e("filter", { id: "voi-f2", x: "-50%", y: "-50%", width: "200%", height: "200%", children: [
|
|
49
|
-
/* @__PURE__ */ e("feTurbulence", { type: "fractalNoise", baseFrequency: "0.009 0.006", numOctaves: "3", seed: "9", result: "n", children: /* @__PURE__ */ e("animate", { attributeName: "baseFrequency", values: "0.009 0.006;0.005 0.01;0.012 0.004;0.009 0.006", dur: "25s", repeatCount: "indefinite" }) }),
|
|
50
|
-
/* @__PURE__ */ e("feDisplacementMap", { in: "SourceGraphic", in2: "n", scale: "16", xChannelSelector: "G", yChannelSelector: "R", result: "d" }),
|
|
51
|
-
/* @__PURE__ */ e("feGaussianBlur", { in: "d", stdDeviation: "16" })
|
|
52
|
-
] }),
|
|
53
|
-
/* @__PURE__ */ e("filter", { id: "voi-f3", x: "-50%", y: "-50%", width: "200%", height: "200%", children: [
|
|
54
|
-
/* @__PURE__ */ e("feTurbulence", { type: "fractalNoise", baseFrequency: "0.006 0.011", numOctaves: "3", seed: "15", result: "n", children: /* @__PURE__ */ e("animate", { attributeName: "baseFrequency", values: "0.006 0.011;0.009 0.007;0.004 0.014;0.006 0.011", dur: "35s", repeatCount: "indefinite" }) }),
|
|
55
|
-
/* @__PURE__ */ e("feDisplacementMap", { in: "SourceGraphic", in2: "n", scale: "14", xChannelSelector: "R", yChannelSelector: "B", result: "d" }),
|
|
56
|
-
/* @__PURE__ */ e("feGaussianBlur", { in: "d", stdDeviation: "16" })
|
|
57
|
-
] }),
|
|
58
|
-
/* @__PURE__ */ e("filter", { id: "voi-gl", children: /* @__PURE__ */ e("feGaussianBlur", { stdDeviation: "14" }) })
|
|
59
|
-
] }),
|
|
60
|
-
/* @__PURE__ */ e("g", { clipPath: "url(#voi-c)", children: [
|
|
61
|
-
/* @__PURE__ */ e("circle", { cx: "120", cy: "120", r: "112", fill: "currentColor", opacity: "0.06" }),
|
|
62
|
-
/* @__PURE__ */ e("g", { filter: "url(#voi-gl)", style: { mixBlendMode: "multiply" }, children: [
|
|
63
|
-
/* @__PURE__ */ e("ellipse", { cx: "130", cy: "125", rx: "95", ry: "95", fill: "currentColor", opacity: "0.12", children: /* @__PURE__ */ e("animate", { attributeName: "opacity", values: "0.08;0.14;0.08", dur: "12s", repeatCount: "indefinite" }) }),
|
|
64
|
-
/* @__PURE__ */ e("ellipse", { cx: "108", cy: "112", rx: "85", ry: "85", fill: "currentColor", opacity: "0.1", children: /* @__PURE__ */ e("animate", { attributeName: "opacity", values: "0.07;0.13;0.07", dur: "10s", repeatCount: "indefinite" }) })
|
|
65
|
-
] }),
|
|
66
|
-
/* @__PURE__ */ e("g", { filter: "url(#voi-f1)", style: { mixBlendMode: "multiply" }, children: /* @__PURE__ */ e("ellipse", { cx: "110", cy: "100", rx: "85", ry: "65", fill: "currentColor", opacity: "0.22", children: [
|
|
67
|
-
/* @__PURE__ */ e("animateTransform", { attributeName: "transform", type: "rotate", values: "0 120 120;360 120 120", dur: "40s", repeatCount: "indefinite" }),
|
|
68
|
-
/* @__PURE__ */ e("animate", { attributeName: "rx", values: "85;78;85", dur: "12s", repeatCount: "indefinite" }),
|
|
69
|
-
/* @__PURE__ */ e("animate", { attributeName: "ry", values: "65;72;65", dur: "12s", repeatCount: "indefinite" })
|
|
70
|
-
] }) }),
|
|
71
|
-
/* @__PURE__ */ e("g", { filter: "url(#voi-f2)", style: { mixBlendMode: "multiply" }, children: /* @__PURE__ */ e("ellipse", { cx: "132", cy: "140", rx: "60", ry: "80", fill: "currentColor", opacity: "0.18", children: [
|
|
72
|
-
/* @__PURE__ */ e("animateTransform", { attributeName: "transform", type: "rotate", values: "360 120 120;0 120 120", dur: "35s", repeatCount: "indefinite" }),
|
|
73
|
-
/* @__PURE__ */ e("animate", { attributeName: "rx", values: "60;68;60", dur: "10s", repeatCount: "indefinite" }),
|
|
74
|
-
/* @__PURE__ */ e("animate", { attributeName: "ry", values: "80;72;80", dur: "10s", repeatCount: "indefinite" })
|
|
75
|
-
] }) }),
|
|
76
|
-
/* @__PURE__ */ e("g", { filter: "url(#voi-f3)", style: { mixBlendMode: "multiply" }, children: /* @__PURE__ */ e("ellipse", { cx: "105", cy: "130", rx: "50", ry: "40", fill: "currentColor", opacity: "0.2", children: [
|
|
77
|
-
/* @__PURE__ */ e("animateTransform", { attributeName: "transform", type: "rotate", values: "0 120 120;360 120 120", dur: "30s", repeatCount: "indefinite" }),
|
|
78
|
-
/* @__PURE__ */ e("animate", { attributeName: "rx", values: "50;44;50", dur: "9s", repeatCount: "indefinite" }),
|
|
79
|
-
/* @__PURE__ */ e("animate", { attributeName: "ry", values: "40;48;40", dur: "9s", repeatCount: "indefinite" })
|
|
80
|
-
] }) }),
|
|
81
|
-
/* @__PURE__ */ e("g", { filter: "url(#voi-gl)", style: { mixBlendMode: "multiply" }, children: /* @__PURE__ */ e("circle", { cx: "120", cy: "118", r: "30", fill: "currentColor", opacity: "0.1", children: [
|
|
82
|
-
/* @__PURE__ */ e("animate", { attributeName: "r", values: "28;34;28", dur: "8s", repeatCount: "indefinite" }),
|
|
83
|
-
/* @__PURE__ */ e("animate", { attributeName: "opacity", values: "0.08;0.14;0.08", dur: "8s", repeatCount: "indefinite" })
|
|
84
|
-
] }) })
|
|
85
|
-
] }),
|
|
86
|
-
/* @__PURE__ */ e("circle", { cx: "120", cy: "120", r: "112", fill: "none", stroke: "currentColor", strokeOpacity: "0.06", strokeWidth: "0.6" })
|
|
87
|
-
] });
|
|
88
|
-
}
|
|
89
|
-
function T() {
|
|
90
|
-
return /* @__PURE__ */ e("svg", { viewBox: "0 0 240 240", xmlns: "http://www.w3.org/2000/svg", className: "w-full h-full", children: [
|
|
91
|
-
/* @__PURE__ */ e("defs", { children: [
|
|
92
|
-
/* @__PURE__ */ e("clipPath", { id: "vol-c", children: /* @__PURE__ */ e("circle", { cx: "120", cy: "120", r: "112" }) }),
|
|
93
|
-
/* @__PURE__ */ e("filter", { id: "vol-f1", x: "-50%", y: "-50%", width: "200%", height: "200%", children: [
|
|
94
|
-
/* @__PURE__ */ e("feTurbulence", { type: "fractalNoise", baseFrequency: "0.008 0.01", numOctaves: "3", seed: "4", result: "n", children: /* @__PURE__ */ e("animate", { attributeName: "baseFrequency", values: "0.008 0.01;0.012 0.006;0.005 0.013;0.008 0.01", dur: "15s", repeatCount: "indefinite" }) }),
|
|
95
|
-
/* @__PURE__ */ e("feDisplacementMap", { in: "SourceGraphic", in2: "n", scale: "22", xChannelSelector: "R", yChannelSelector: "G", result: "d" }),
|
|
96
|
-
/* @__PURE__ */ e("feGaussianBlur", { in: "d", stdDeviation: "6" })
|
|
97
|
-
] }),
|
|
98
|
-
/* @__PURE__ */ e("filter", { id: "vol-f2", x: "-50%", y: "-50%", width: "200%", height: "200%", children: [
|
|
99
|
-
/* @__PURE__ */ e("feTurbulence", { type: "fractalNoise", baseFrequency: "0.01 0.007", numOctaves: "3", seed: "10", result: "n", children: /* @__PURE__ */ e("animate", { attributeName: "baseFrequency", values: "0.01 0.007;0.006 0.011;0.013 0.004;0.01 0.007", dur: "12s", repeatCount: "indefinite" }) }),
|
|
100
|
-
/* @__PURE__ */ e("feDisplacementMap", { in: "SourceGraphic", in2: "n", scale: "18", xChannelSelector: "G", yChannelSelector: "R", result: "d" }),
|
|
101
|
-
/* @__PURE__ */ e("feGaussianBlur", { in: "d", stdDeviation: "5" })
|
|
102
|
-
] }),
|
|
103
|
-
/* @__PURE__ */ e("filter", { id: "vol-f3", x: "-50%", y: "-50%", width: "200%", height: "200%", children: [
|
|
104
|
-
/* @__PURE__ */ e("feTurbulence", { type: "fractalNoise", baseFrequency: "0.007 0.012", numOctaves: "3", seed: "16", result: "n", children: /* @__PURE__ */ e("animate", { attributeName: "baseFrequency", values: "0.007 0.012;0.01 0.008;0.004 0.015;0.007 0.012", dur: "18s", repeatCount: "indefinite" }) }),
|
|
105
|
-
/* @__PURE__ */ e("feDisplacementMap", { in: "SourceGraphic", in2: "n", scale: "16", xChannelSelector: "R", yChannelSelector: "B", result: "d" }),
|
|
106
|
-
/* @__PURE__ */ e("feGaussianBlur", { in: "d", stdDeviation: "5" })
|
|
107
|
-
] }),
|
|
108
|
-
/* @__PURE__ */ e("filter", { id: "vol-gl", children: /* @__PURE__ */ e("feGaussianBlur", { stdDeviation: "5" }) })
|
|
109
|
-
] }),
|
|
110
|
-
/* @__PURE__ */ e("g", { clipPath: "url(#vol-c)", children: [
|
|
111
|
-
/* @__PURE__ */ e("circle", { cx: "120", cy: "120", r: "112", fill: "currentColor", opacity: "0.07" }),
|
|
112
|
-
/* @__PURE__ */ e("g", { filter: "url(#vol-f1)", style: { mixBlendMode: "multiply" }, children: /* @__PURE__ */ e("ellipse", { cx: "120", cy: "120", rx: "95", ry: "70", fill: "currentColor", opacity: "0.3", children: [
|
|
113
|
-
/* @__PURE__ */ e("animate", { attributeName: "rx", values: "95;60;100;55;95", dur: "3.5s", repeatCount: "indefinite" }),
|
|
114
|
-
/* @__PURE__ */ e("animate", { attributeName: "ry", values: "70;100;58;95;70", dur: "3.5s", repeatCount: "indefinite" })
|
|
115
|
-
] }) }),
|
|
116
|
-
/* @__PURE__ */ e("g", { filter: "url(#vol-f2)", style: { mixBlendMode: "multiply" }, children: /* @__PURE__ */ e("ellipse", { cx: "120", cy: "120", rx: "55", ry: "85", fill: "currentColor", opacity: "0.26", children: [
|
|
117
|
-
/* @__PURE__ */ e("animate", { attributeName: "rx", values: "55;88;48;82;55", dur: "4s", repeatCount: "indefinite" }),
|
|
118
|
-
/* @__PURE__ */ e("animate", { attributeName: "ry", values: "85;50;90;55;85", dur: "4s", repeatCount: "indefinite" })
|
|
119
|
-
] }) }),
|
|
120
|
-
/* @__PURE__ */ e("g", { filter: "url(#vol-f3)", style: { mixBlendMode: "multiply" }, children: /* @__PURE__ */ e("ellipse", { cx: "120", cy: "120", rx: "65", ry: "42", fill: "currentColor", opacity: "0.28", children: [
|
|
121
|
-
/* @__PURE__ */ e("animate", { attributeName: "rx", values: "65;38;70;35;65", dur: "3s", repeatCount: "indefinite" }),
|
|
122
|
-
/* @__PURE__ */ e("animate", { attributeName: "ry", values: "42;72;38;68;42", dur: "3s", repeatCount: "indefinite" })
|
|
123
|
-
] }) }),
|
|
124
|
-
/* @__PURE__ */ e("g", { filter: "url(#vol-f1)", style: { mixBlendMode: "multiply" }, children: /* @__PURE__ */ e("ellipse", { cx: "120", cy: "120", rx: "40", ry: "72", fill: "currentColor", opacity: "0.2", children: [
|
|
125
|
-
/* @__PURE__ */ e("animate", { attributeName: "rx", values: "40;70;35;65;40", dur: "3.5s", repeatCount: "indefinite" }),
|
|
126
|
-
/* @__PURE__ */ e("animate", { attributeName: "ry", values: "72;40;78;42;72", dur: "3.5s", repeatCount: "indefinite" })
|
|
127
|
-
] }) }),
|
|
128
|
-
/* @__PURE__ */ e("g", { filter: "url(#vol-f2)", style: { mixBlendMode: "multiply" }, children: /* @__PURE__ */ e("ellipse", { cx: "120", cy: "120", rx: "78", ry: "55", fill: "currentColor", opacity: "0.2", children: [
|
|
129
|
-
/* @__PURE__ */ e("animate", { attributeName: "rx", values: "78;48;82;45;78", dur: "4.5s", repeatCount: "indefinite" }),
|
|
130
|
-
/* @__PURE__ */ e("animate", { attributeName: "ry", values: "55;80;50;78;55", dur: "4.5s", repeatCount: "indefinite" })
|
|
131
|
-
] }) }),
|
|
132
|
-
/* @__PURE__ */ e("g", { filter: "url(#vol-gl)", style: { mixBlendMode: "multiply" }, children: /* @__PURE__ */ e("circle", { cx: "120", cy: "120", r: "30", fill: "currentColor", opacity: "0.14", children: [
|
|
133
|
-
/* @__PURE__ */ e("animate", { attributeName: "r", values: "30;45;22;42;30", dur: "3.5s", repeatCount: "indefinite" }),
|
|
134
|
-
/* @__PURE__ */ e("animate", { attributeName: "opacity", values: "0.14;0.24;0.1;0.22;0.14", dur: "3.5s", repeatCount: "indefinite" })
|
|
135
|
-
] }) })
|
|
136
|
-
] }),
|
|
137
|
-
/* @__PURE__ */ e("circle", { cx: "120", cy: "120", r: "112", fill: "none", stroke: "currentColor", strokeOpacity: "0.07", strokeWidth: "0.6" })
|
|
138
|
-
] });
|
|
139
|
-
}
|
|
140
|
-
function S() {
|
|
141
|
-
return /* @__PURE__ */ e("svg", { viewBox: "0 0 240 240", xmlns: "http://www.w3.org/2000/svg", className: "w-full h-full", children: [
|
|
142
|
-
/* @__PURE__ */ e("defs", { children: [
|
|
143
|
-
/* @__PURE__ */ e("clipPath", { id: "voth-c", children: /* @__PURE__ */ e("circle", { cx: "120", cy: "120", r: "112" }) }),
|
|
144
|
-
/* @__PURE__ */ e("filter", { id: "voth-f1", x: "-50%", y: "-50%", width: "200%", height: "200%", children: [
|
|
145
|
-
/* @__PURE__ */ e("feTurbulence", { type: "fractalNoise", baseFrequency: "0.008 0.01", numOctaves: "3", seed: "6", result: "n", children: /* @__PURE__ */ e("animate", { attributeName: "baseFrequency", values: "0.008 0.01;0.013 0.005;0.004 0.014;0.008 0.01", dur: "10s", repeatCount: "indefinite" }) }),
|
|
146
|
-
/* @__PURE__ */ e("feDisplacementMap", { in: "SourceGraphic", in2: "n", scale: "28", xChannelSelector: "R", yChannelSelector: "G", result: "d" }),
|
|
147
|
-
/* @__PURE__ */ e("feGaussianBlur", { in: "d", stdDeviation: "15" })
|
|
148
|
-
] }),
|
|
149
|
-
/* @__PURE__ */ e("filter", { id: "voth-f2", x: "-50%", y: "-50%", width: "200%", height: "200%", children: [
|
|
150
|
-
/* @__PURE__ */ e("feTurbulence", { type: "fractalNoise", baseFrequency: "0.01 0.007", numOctaves: "3", seed: "12", result: "n", children: /* @__PURE__ */ e("animate", { attributeName: "baseFrequency", values: "0.01 0.007;0.005 0.012;0.014 0.003;0.01 0.007", dur: "8s", repeatCount: "indefinite" }) }),
|
|
151
|
-
/* @__PURE__ */ e("feDisplacementMap", { in: "SourceGraphic", in2: "n", scale: "24", xChannelSelector: "G", yChannelSelector: "R", result: "d" }),
|
|
152
|
-
/* @__PURE__ */ e("feGaussianBlur", { in: "d", stdDeviation: "14" })
|
|
153
|
-
] }),
|
|
154
|
-
/* @__PURE__ */ e("filter", { id: "voth-f3", x: "-50%", y: "-50%", width: "200%", height: "200%", children: [
|
|
155
|
-
/* @__PURE__ */ e("feTurbulence", { type: "fractalNoise", baseFrequency: "0.007 0.012", numOctaves: "3", seed: "18", result: "n", children: /* @__PURE__ */ e("animate", { attributeName: "baseFrequency", values: "0.007 0.012;0.011 0.007;0.003 0.016;0.007 0.012", dur: "12s", repeatCount: "indefinite" }) }),
|
|
156
|
-
/* @__PURE__ */ e("feDisplacementMap", { in: "SourceGraphic", in2: "n", scale: "20", xChannelSelector: "R", yChannelSelector: "B", result: "d" }),
|
|
157
|
-
/* @__PURE__ */ e("feGaussianBlur", { in: "d", stdDeviation: "13" })
|
|
158
|
-
] }),
|
|
159
|
-
/* @__PURE__ */ e("filter", { id: "voth-gl", children: /* @__PURE__ */ e("feGaussianBlur", { stdDeviation: "10" }) })
|
|
160
|
-
] }),
|
|
161
|
-
/* @__PURE__ */ e("g", { clipPath: "url(#voth-c)", children: [
|
|
162
|
-
/* @__PURE__ */ e("circle", { cx: "120", cy: "120", r: "112", fill: "currentColor", opacity: "0.08" }),
|
|
163
|
-
/* @__PURE__ */ e("g", { filter: "url(#voth-gl)", style: { mixBlendMode: "multiply" }, children: [
|
|
164
|
-
/* @__PURE__ */ e("circle", { cx: "120", cy: "120", r: "60", fill: "currentColor", opacity: "0.15", children: [
|
|
165
|
-
/* @__PURE__ */ e("animate", { attributeName: "r", values: "60;90;60", dur: "1.8s", repeatCount: "indefinite" }),
|
|
166
|
-
/* @__PURE__ */ e("animate", { attributeName: "opacity", values: "0.18;0.08;0.18", dur: "1.8s", repeatCount: "indefinite" })
|
|
167
|
-
] }),
|
|
168
|
-
/* @__PURE__ */ e("circle", { cx: "120", cy: "120", r: "45", fill: "currentColor", opacity: "0.12", children: [
|
|
169
|
-
/* @__PURE__ */ e("animate", { attributeName: "r", values: "45;75;45", dur: "1.8s", repeatCount: "indefinite", begin: "0.3s" }),
|
|
170
|
-
/* @__PURE__ */ e("animate", { attributeName: "opacity", values: "0.15;0.06;0.15", dur: "1.8s", repeatCount: "indefinite", begin: "0.3s" })
|
|
171
|
-
] })
|
|
172
|
-
] }),
|
|
173
|
-
/* @__PURE__ */ e("g", { filter: "url(#voth-f1)", style: { mixBlendMode: "multiply" }, children: /* @__PURE__ */ e("ellipse", { cx: "110", cy: "100", rx: "85", ry: "65", fill: "currentColor", opacity: "0.35", children: [
|
|
174
|
-
/* @__PURE__ */ e("animateTransform", { attributeName: "transform", type: "rotate", values: "0 120 120;360 120 120", dur: "14s", repeatCount: "indefinite" }),
|
|
175
|
-
/* @__PURE__ */ e("animate", { attributeName: "rx", values: "85;70;90;75;85", dur: "2.4s", repeatCount: "indefinite" }),
|
|
176
|
-
/* @__PURE__ */ e("animate", { attributeName: "ry", values: "65;80;60;78;65", dur: "2.4s", repeatCount: "indefinite" })
|
|
177
|
-
] }) }),
|
|
178
|
-
/* @__PURE__ */ e("g", { filter: "url(#voth-f2)", style: { mixBlendMode: "multiply" }, children: /* @__PURE__ */ e("ellipse", { cx: "132", cy: "138", rx: "60", ry: "82", fill: "currentColor", opacity: "0.3", children: [
|
|
179
|
-
/* @__PURE__ */ e("animateTransform", { attributeName: "transform", type: "rotate", values: "360 120 120;0 120 120", dur: "12s", repeatCount: "indefinite" }),
|
|
180
|
-
/* @__PURE__ */ e("animate", { attributeName: "rx", values: "60;78;55;72;60", dur: "2.4s", repeatCount: "indefinite" }),
|
|
181
|
-
/* @__PURE__ */ e("animate", { attributeName: "ry", values: "82;65;85;68;82", dur: "2.4s", repeatCount: "indefinite" })
|
|
182
|
-
] }) }),
|
|
183
|
-
/* @__PURE__ */ e("g", { filter: "url(#voth-f3)", style: { mixBlendMode: "multiply" }, children: /* @__PURE__ */ e("ellipse", { cx: "108", cy: "132", rx: "52", ry: "38", fill: "currentColor", opacity: "0.32", children: [
|
|
184
|
-
/* @__PURE__ */ e("animateTransform", { attributeName: "transform", type: "rotate", values: "0 120 120;360 120 120", dur: "10s", repeatCount: "indefinite" }),
|
|
185
|
-
/* @__PURE__ */ e("animate", { attributeName: "rx", values: "52;40;55;42;52", dur: "2s", repeatCount: "indefinite" }),
|
|
186
|
-
/* @__PURE__ */ e("animate", { attributeName: "ry", values: "38;52;35;50;38", dur: "2s", repeatCount: "indefinite" })
|
|
187
|
-
] }) }),
|
|
188
|
-
/* @__PURE__ */ e("g", { filter: "url(#voth-f1)", style: { mixBlendMode: "multiply" }, children: /* @__PURE__ */ e("ellipse", { cx: "120", cy: "95", rx: "90", ry: "22", fill: "currentColor", opacity: "0.24", children: [
|
|
189
|
-
/* @__PURE__ */ e("animateTransform", { attributeName: "transform", type: "rotate", values: "0 120 120;360 120 120", dur: "11s", repeatCount: "indefinite" }),
|
|
190
|
-
/* @__PURE__ */ e("animate", { attributeName: "ry", values: "22;38;22", dur: "1.8s", repeatCount: "indefinite" })
|
|
191
|
-
] }) }),
|
|
192
|
-
/* @__PURE__ */ e("g", { filter: "url(#voth-f2)", style: { mixBlendMode: "multiply" }, children: /* @__PURE__ */ e("ellipse", { cx: "140", cy: "98", rx: "38", ry: "28", fill: "currentColor", opacity: "0.25", children: [
|
|
193
|
-
/* @__PURE__ */ e("animateTransform", { attributeName: "transform", type: "rotate", values: "0 120 120;360 120 120", dur: "7s", repeatCount: "indefinite" }),
|
|
194
|
-
/* @__PURE__ */ e("animate", { attributeName: "rx", values: "38;28;42;30;38", dur: "2s", repeatCount: "indefinite" }),
|
|
195
|
-
/* @__PURE__ */ e("animate", { attributeName: "ry", values: "28;40;25;38;28", dur: "2s", repeatCount: "indefinite" })
|
|
196
|
-
] }) }),
|
|
197
|
-
/* @__PURE__ */ e("g", { filter: "url(#voth-gl)", style: { mixBlendMode: "multiply" }, children: /* @__PURE__ */ e("circle", { cx: "120", cy: "118", r: "30", fill: "currentColor", opacity: "0.2", children: [
|
|
198
|
-
/* @__PURE__ */ e("animate", { attributeName: "r", values: "28;42;30;38;28", dur: "2s", repeatCount: "indefinite" }),
|
|
199
|
-
/* @__PURE__ */ e("animate", { attributeName: "opacity", values: "0.15;0.28;0.18;0.25;0.15", dur: "2s", repeatCount: "indefinite" })
|
|
200
|
-
] }) })
|
|
201
|
-
] }),
|
|
202
|
-
/* @__PURE__ */ e("circle", { cx: "120", cy: "120", r: "112", fill: "none", stroke: "currentColor", strokeOpacity: "0.08", strokeWidth: "0.6" })
|
|
203
|
-
] });
|
|
204
|
-
}
|
|
205
|
-
function G() {
|
|
206
|
-
return /* @__PURE__ */ e("svg", { viewBox: "0 0 240 240", xmlns: "http://www.w3.org/2000/svg", className: "w-full h-full", children: [
|
|
207
|
-
/* @__PURE__ */ e("defs", { children: [
|
|
208
|
-
/* @__PURE__ */ e("clipPath", { id: "vot-c", children: /* @__PURE__ */ e("circle", { cx: "120", cy: "120", r: "112" }) }),
|
|
209
|
-
/* @__PURE__ */ e("filter", { id: "vot-f1", x: "-50%", y: "-50%", width: "200%", height: "200%", children: [
|
|
210
|
-
/* @__PURE__ */ e("feTurbulence", { type: "fractalNoise", baseFrequency: "0.009 0.012", numOctaves: "4", seed: "5", result: "n", children: /* @__PURE__ */ e("animate", { attributeName: "baseFrequency", values: "0.009 0.012;0.015 0.006;0.005 0.017;0.009 0.012", dur: "7s", repeatCount: "indefinite" }) }),
|
|
211
|
-
/* @__PURE__ */ e("feDisplacementMap", { in: "SourceGraphic", in2: "n", scale: "35", xChannelSelector: "R", yChannelSelector: "G", result: "d" }),
|
|
212
|
-
/* @__PURE__ */ e("feGaussianBlur", { in: "d", stdDeviation: "8" })
|
|
213
|
-
] }),
|
|
214
|
-
/* @__PURE__ */ e("filter", { id: "vot-f2", x: "-50%", y: "-50%", width: "200%", height: "200%", children: [
|
|
215
|
-
/* @__PURE__ */ e("feTurbulence", { type: "fractalNoise", baseFrequency: "0.011 0.008", numOctaves: "4", seed: "11", result: "n", children: /* @__PURE__ */ e("animate", { attributeName: "baseFrequency", values: "0.011 0.008;0.006 0.013;0.016 0.004;0.011 0.008", dur: "6s", repeatCount: "indefinite" }) }),
|
|
216
|
-
/* @__PURE__ */ e("feDisplacementMap", { in: "SourceGraphic", in2: "n", scale: "30", xChannelSelector: "G", yChannelSelector: "R", result: "d" }),
|
|
217
|
-
/* @__PURE__ */ e("feGaussianBlur", { in: "d", stdDeviation: "7" })
|
|
218
|
-
] }),
|
|
219
|
-
/* @__PURE__ */ e("filter", { id: "vot-f3", x: "-50%", y: "-50%", width: "200%", height: "200%", children: [
|
|
220
|
-
/* @__PURE__ */ e("feTurbulence", { type: "fractalNoise", baseFrequency: "0.008 0.014", numOctaves: "4", seed: "17", result: "n", children: /* @__PURE__ */ e("animate", { attributeName: "baseFrequency", values: "0.008 0.014;0.012 0.009;0.004 0.018;0.008 0.014", dur: "8s", repeatCount: "indefinite" }) }),
|
|
221
|
-
/* @__PURE__ */ e("feDisplacementMap", { in: "SourceGraphic", in2: "n", scale: "28", xChannelSelector: "R", yChannelSelector: "B", result: "d" }),
|
|
222
|
-
/* @__PURE__ */ e("feGaussianBlur", { in: "d", stdDeviation: "7" })
|
|
223
|
-
] }),
|
|
224
|
-
/* @__PURE__ */ e("filter", { id: "vot-gl", children: /* @__PURE__ */ e("feGaussianBlur", { stdDeviation: "7" }) })
|
|
225
|
-
] }),
|
|
226
|
-
/* @__PURE__ */ e("g", { clipPath: "url(#vot-c)", children: [
|
|
227
|
-
/* @__PURE__ */ e("circle", { cx: "120", cy: "120", r: "112", fill: "currentColor", opacity: "0.08" }),
|
|
228
|
-
/* @__PURE__ */ e("g", { filter: "url(#vot-f1)", style: { mixBlendMode: "multiply" }, children: /* @__PURE__ */ e("ellipse", { cx: "108", cy: "98", rx: "100", ry: "80", fill: "currentColor", opacity: "0.38", children: [
|
|
229
|
-
/* @__PURE__ */ e("animateTransform", { attributeName: "transform", type: "rotate", values: "0 120 120;360 120 120", dur: "8s", repeatCount: "indefinite" }),
|
|
230
|
-
/* @__PURE__ */ e("animate", { attributeName: "rx", values: "100;72;105;78;92;100", dur: "3.2s", repeatCount: "indefinite" }),
|
|
231
|
-
/* @__PURE__ */ e("animate", { attributeName: "ry", values: "80;100;72;95;82;80", dur: "3.2s", repeatCount: "indefinite" }),
|
|
232
|
-
/* @__PURE__ */ e("animate", { attributeName: "opacity", values: "0.38;0.24;0.4;0.26;0.36;0.38", dur: "3.2s", repeatCount: "indefinite" })
|
|
233
|
-
] }) }),
|
|
234
|
-
/* @__PURE__ */ e("g", { filter: "url(#vot-f2)", style: { mixBlendMode: "multiply" }, children: /* @__PURE__ */ e("ellipse", { cx: "135", cy: "138", rx: "85", ry: "100", fill: "currentColor", opacity: "0.34", children: [
|
|
235
|
-
/* @__PURE__ */ e("animateTransform", { attributeName: "transform", type: "rotate", values: "360 120 120;0 120 120", dur: "6s", repeatCount: "indefinite" }),
|
|
236
|
-
/* @__PURE__ */ e("animate", { attributeName: "rx", values: "85;105;70;98;80;85", dur: "2.8s", repeatCount: "indefinite" }),
|
|
237
|
-
/* @__PURE__ */ e("animate", { attributeName: "ry", values: "100;72;95;68;92;100", dur: "2.8s", repeatCount: "indefinite" }),
|
|
238
|
-
/* @__PURE__ */ e("animate", { attributeName: "opacity", values: "0.34;0.22;0.36;0.24;0.32;0.34", dur: "2.8s", repeatCount: "indefinite" })
|
|
239
|
-
] }) }),
|
|
240
|
-
/* @__PURE__ */ e("g", { filter: "url(#vot-f3)", style: { mixBlendMode: "multiply" }, children: /* @__PURE__ */ e("ellipse", { cx: "102", cy: "132", rx: "75", ry: "60", fill: "currentColor", opacity: "0.36", children: [
|
|
241
|
-
/* @__PURE__ */ e("animateTransform", { attributeName: "transform", type: "rotate", values: "0 120 120;360 120 120", dur: "5s", repeatCount: "indefinite" }),
|
|
242
|
-
/* @__PURE__ */ e("animate", { attributeName: "rx", values: "75;52;78;55;70;75", dur: "2.4s", repeatCount: "indefinite" }),
|
|
243
|
-
/* @__PURE__ */ e("animate", { attributeName: "ry", values: "60;80;55;76;62;60", dur: "2.4s", repeatCount: "indefinite" }),
|
|
244
|
-
/* @__PURE__ */ e("animate", { attributeName: "opacity", values: "0.36;0.24;0.38;0.26;0.34;0.36", dur: "2.4s", repeatCount: "indefinite" })
|
|
245
|
-
] }) }),
|
|
246
|
-
/* @__PURE__ */ e("g", { filter: "url(#vot-f1)", style: { mixBlendMode: "multiply" }, children: /* @__PURE__ */ e("ellipse", { cx: "120", cy: "100", rx: "100", ry: "32", fill: "currentColor", opacity: "0.28", children: [
|
|
247
|
-
/* @__PURE__ */ e("animateTransform", { attributeName: "transform", type: "rotate", values: "0 120 120;360 120 120", dur: "4s", repeatCount: "indefinite" }),
|
|
248
|
-
/* @__PURE__ */ e("animate", { attributeName: "ry", values: "32;52;28;48;35;32", dur: "2.6s", repeatCount: "indefinite" }),
|
|
249
|
-
/* @__PURE__ */ e("animate", { attributeName: "rx", values: "100;80;105;85;95;100", dur: "2.6s", repeatCount: "indefinite" })
|
|
250
|
-
] }) }),
|
|
251
|
-
/* @__PURE__ */ e("g", { filter: "url(#vot-f2)", style: { mixBlendMode: "multiply" }, children: /* @__PURE__ */ e("ellipse", { cx: "120", cy: "120", rx: "32", ry: "100", fill: "currentColor", opacity: "0.22", children: [
|
|
252
|
-
/* @__PURE__ */ e("animateTransform", { attributeName: "transform", type: "rotate", values: "360 120 120;0 120 120", dur: "5s", repeatCount: "indefinite" }),
|
|
253
|
-
/* @__PURE__ */ e("animate", { attributeName: "rx", values: "32;55;28;50;35;32", dur: "3s", repeatCount: "indefinite" }),
|
|
254
|
-
/* @__PURE__ */ e("animate", { attributeName: "ry", values: "100;75;105;80;95;100", dur: "3s", repeatCount: "indefinite" })
|
|
255
|
-
] }) }),
|
|
256
|
-
/* @__PURE__ */ e("g", { filter: "url(#vot-f3)", style: { mixBlendMode: "multiply" }, children: /* @__PURE__ */ e("ellipse", { cx: "138", cy: "96", rx: "55", ry: "45", fill: "currentColor", opacity: "0.3", children: [
|
|
257
|
-
/* @__PURE__ */ e("animateTransform", { attributeName: "transform", type: "rotate", values: "0 120 120;360 120 120", dur: "4.5s", repeatCount: "indefinite" }),
|
|
258
|
-
/* @__PURE__ */ e("animate", { attributeName: "rx", values: "55;38;58;40;50;55", dur: "2.2s", repeatCount: "indefinite" }),
|
|
259
|
-
/* @__PURE__ */ e("animate", { attributeName: "ry", values: "45;62;42;58;48;45", dur: "2.2s", repeatCount: "indefinite" }),
|
|
260
|
-
/* @__PURE__ */ e("animate", { attributeName: "opacity", values: "0.3;0.2;0.32;0.22;0.28;0.3", dur: "2.2s", repeatCount: "indefinite" })
|
|
261
|
-
] }) }),
|
|
262
|
-
/* @__PURE__ */ e("g", { filter: "url(#vot-gl)", style: { mixBlendMode: "multiply" }, children: /* @__PURE__ */ e("circle", { cx: "120", cy: "118", r: "40", fill: "currentColor", opacity: "0.18", children: [
|
|
263
|
-
/* @__PURE__ */ e("animate", { attributeName: "r", values: "38;55;35;50;40;38", dur: "2.8s", repeatCount: "indefinite" }),
|
|
264
|
-
/* @__PURE__ */ e("animate", { attributeName: "opacity", values: "0.15;0.3;0.18;0.26;0.16;0.15", dur: "2.8s", repeatCount: "indefinite" })
|
|
265
|
-
] }) })
|
|
266
|
-
] }),
|
|
267
|
-
/* @__PURE__ */ e("circle", { cx: "120", cy: "120", r: "112", fill: "none", stroke: "currentColor", strokeOpacity: "0.08", strokeWidth: "0.6" })
|
|
268
|
-
] });
|
|
269
|
-
}
|
|
270
|
-
function M({
|
|
271
|
-
state: i,
|
|
272
|
-
isMuted: r,
|
|
273
|
-
onEndCall: s,
|
|
274
|
-
onClose: o,
|
|
275
|
-
onToggleMute: d,
|
|
276
|
-
agentName: f = "Health Assist",
|
|
277
|
-
textColor: u = "white"
|
|
278
|
-
}) {
|
|
279
|
-
const [m, n] = y(!1);
|
|
280
|
-
if (i === t.VOICE_AGENT_STATE.ERROR)
|
|
281
|
-
return /* @__PURE__ */ e("div", { className: "flex-1 flex flex-col items-center justify-center bg-surface gap-4 p-8", children: [
|
|
282
|
-
/* @__PURE__ */ e("div", { className: "w-16 h-16 rounded-full bg-destructive/10 flex items-center justify-center", children: /* @__PURE__ */ e(N, { className: "w-7 h-7 text-destructive" }) }),
|
|
283
|
-
/* @__PURE__ */ e("div", { className: "text-center", children: [
|
|
284
|
-
/* @__PURE__ */ e("p", { className: "text-base font-semibold text-foreground", children: "Call Disconnected" }),
|
|
285
|
-
/* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground mt-1", children: "Something went wrong. Please try again." })
|
|
286
|
-
] }),
|
|
287
|
-
/* @__PURE__ */ e(l, { onClick: o, variant: "outline", className: "mt-2", children: "Close" })
|
|
288
|
-
] });
|
|
289
|
-
const p = () => {
|
|
290
|
-
if (r)
|
|
291
|
-
return "You are muted";
|
|
292
|
-
switch (i) {
|
|
293
|
-
case t.VOICE_AGENT_STATE.CONNECTING:
|
|
294
|
-
return `Please wait while we are
|
|
295
|
-
connecting to an AI agent...`;
|
|
296
|
-
case t.VOICE_AGENT_STATE.SPEAKING:
|
|
297
|
-
return `${f} is speaking...`;
|
|
298
|
-
case t.VOICE_AGENT_STATE.LISTENING:
|
|
299
|
-
return "You are speaking...";
|
|
300
|
-
case t.VOICE_AGENT_STATE.THINKING:
|
|
301
|
-
return "One moment please...";
|
|
302
|
-
case t.VOICE_AGENT_STATE.MUTED:
|
|
303
|
-
return "You are muted";
|
|
304
|
-
case t.VOICE_AGENT_STATE.DISCONNECTING:
|
|
305
|
-
return "Ending session...";
|
|
306
|
-
default:
|
|
307
|
-
return "Go ahead, I'm listening...";
|
|
308
|
-
}
|
|
309
|
-
}, a = i === t.VOICE_AGENT_STATE.SPEAKING || i === t.VOICE_AGENT_STATE.CONNECTING || i === t.VOICE_AGENT_STATE.DISCONNECTING;
|
|
310
|
-
return /* @__PURE__ */ e("div", { className: "flex-1 flex flex-col bg-surface relative", children: [
|
|
311
|
-
/* @__PURE__ */ e("style", { children: E }),
|
|
312
|
-
/* @__PURE__ */ e("div", { className: "py-2.5 text-center bg-primary/15", children: /* @__PURE__ */ e("span", { className: "text-[11px] font-bold uppercase tracking-[0.12em] text-primary", children: "Voice Mode Active" }) }),
|
|
313
|
-
/* @__PURE__ */ e("div", { className: "flex-1 flex flex-col items-center justify-center gap-5", children: [
|
|
314
|
-
/* @__PURE__ */ e("div", { className: "w-[200px] h-[200px] text-primary", children: /* @__PURE__ */ e(g, { state: i }) }),
|
|
315
|
-
/* @__PURE__ */ e("p", { className: "text-base text-center px-8 whitespace-pre-line leading-6 text-muted-foreground", children: p() })
|
|
316
|
-
] }),
|
|
317
|
-
/* @__PURE__ */ e("div", { children: [
|
|
318
|
-
/* @__PURE__ */ e("div", { className: "border-t border-primary/15" }),
|
|
319
|
-
/* @__PURE__ */ e("div", { className: "py-5 bg-surface flex justify-center items-center gap-6", children: [
|
|
320
|
-
/* @__PURE__ */ e(
|
|
321
|
-
"button",
|
|
322
|
-
{
|
|
323
|
-
type: "button",
|
|
324
|
-
onClick: d,
|
|
325
|
-
disabled: a,
|
|
326
|
-
className: "voice-mic-btn",
|
|
327
|
-
"aria-label": r ? "Unmute" : "Mute",
|
|
328
|
-
style: {
|
|
329
|
-
opacity: a ? 0.5 : 1,
|
|
330
|
-
cursor: a ? "not-allowed" : "pointer",
|
|
331
|
-
background: a ? "hsl(var(--primary) / 0.4)" : r ? u === "black" ? "hsl(var(--black-700))" : "hsl(var(--white-700))" : "hsl(var(--primary))"
|
|
332
|
-
},
|
|
333
|
-
children: r ? /* @__PURE__ */ e(b, { className: `w-6 h-6 ${u === "black" ? "text-white" : "text-black"}` }) : /* @__PURE__ */ e(h, { className: "w-6 h-6 text-white" })
|
|
334
|
-
}
|
|
335
|
-
),
|
|
336
|
-
/* @__PURE__ */ e(
|
|
337
|
-
"button",
|
|
338
|
-
{
|
|
339
|
-
type: "button",
|
|
340
|
-
onClick: () => n(!0),
|
|
341
|
-
disabled: i === t.VOICE_AGENT_STATE.DISCONNECTING,
|
|
342
|
-
className: "voice-end-btn",
|
|
343
|
-
"aria-label": "Exit voice mode",
|
|
344
|
-
children: /* @__PURE__ */ e(v, { className: "w-5 h-5 text-white" })
|
|
345
|
-
}
|
|
346
|
-
)
|
|
347
|
-
] })
|
|
348
|
-
] }),
|
|
349
|
-
m && /* @__PURE__ */ e("div", { className: "absolute inset-0 z-50 flex items-center justify-center bg-black/40", children: /* @__PURE__ */ e("div", { className: "bg-background rounded-2xl shadow-xl mx-6 p-6 w-full max-w-[280px] flex flex-col items-center gap-3", children: [
|
|
350
|
-
/* @__PURE__ */ e("p", { className: "text-base font-semibold text-foreground text-center", children: "Exit voice mode?" }),
|
|
351
|
-
/* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground text-center leading-5", children: "This will close your voice session. You can continue your chat." }),
|
|
352
|
-
/* @__PURE__ */ e("div", { className: "flex flex-col w-full gap-2 mt-2", children: [
|
|
353
|
-
/* @__PURE__ */ e(
|
|
354
|
-
l,
|
|
355
|
-
{
|
|
356
|
-
onClick: () => {
|
|
357
|
-
n(!1), s?.();
|
|
358
|
-
},
|
|
359
|
-
className: "w-full bg-red-500 hover:bg-red-600 text-white",
|
|
360
|
-
children: "Exit and Go Back to Chat"
|
|
361
|
-
}
|
|
362
|
-
),
|
|
363
|
-
/* @__PURE__ */ e(
|
|
364
|
-
l,
|
|
365
|
-
{
|
|
366
|
-
variant: "outline",
|
|
367
|
-
onClick: () => n(!1),
|
|
368
|
-
className: "w-full",
|
|
369
|
-
children: "Keep talking"
|
|
370
|
-
}
|
|
371
|
-
)
|
|
372
|
-
] })
|
|
373
|
-
] }) })
|
|
374
|
-
] });
|
|
375
|
-
}
|
|
376
|
-
const E = `
|
|
1
|
+
import{c,u as e,d as y,a as t,B as l,M as h,X as v}from"./medassist-widget.js";const x=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M16.95 16.95A7 7 0 0 1 5 12v-2",key:"cqa7eg"}],["path",{d:"M18.89 13.23A7 7 0 0 0 19 12v-2",key:"16hl24"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}]],b=c("mic-off",x),C=[["path",{d:"M10.1 13.9a14 14 0 0 0 3.732 2.668 1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2 18 18 0 0 1-12.728-5.272",key:"1wngk7"}],["path",{d:"M22 2 2 22",key:"y4kqgn"}],["path",{d:"M4.76 13.582A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 .244.473",key:"10hv5p"}]],N=c("phone-off",C);function g({state:i}){switch(i){case"speaking":return e(S,{});case"thinking":return e(G,{});case"listening":return e(T,{});default:return e(w,{})}}function w(){return e("svg",{viewBox:"0 0 240 240",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:[e("defs",{children:[e("clipPath",{id:"voi-c",children:e("circle",{cx:"120",cy:"120",r:"112"})}),e("filter",{id:"voi-f1",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[e("feTurbulence",{type:"fractalNoise",baseFrequency:"0.007 0.009",numOctaves:"3",seed:"3",result:"n",children:e("animate",{attributeName:"baseFrequency",values:"0.007 0.009;0.011 0.005;0.005 0.012;0.007 0.009",dur:"30s",repeatCount:"indefinite"})}),e("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"20",xChannelSelector:"R",yChannelSelector:"G",result:"d"}),e("feGaussianBlur",{in:"d",stdDeviation:"18"})]}),e("filter",{id:"voi-f2",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[e("feTurbulence",{type:"fractalNoise",baseFrequency:"0.009 0.006",numOctaves:"3",seed:"9",result:"n",children:e("animate",{attributeName:"baseFrequency",values:"0.009 0.006;0.005 0.01;0.012 0.004;0.009 0.006",dur:"25s",repeatCount:"indefinite"})}),e("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"16",xChannelSelector:"G",yChannelSelector:"R",result:"d"}),e("feGaussianBlur",{in:"d",stdDeviation:"16"})]}),e("filter",{id:"voi-f3",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[e("feTurbulence",{type:"fractalNoise",baseFrequency:"0.006 0.011",numOctaves:"3",seed:"15",result:"n",children:e("animate",{attributeName:"baseFrequency",values:"0.006 0.011;0.009 0.007;0.004 0.014;0.006 0.011",dur:"35s",repeatCount:"indefinite"})}),e("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"14",xChannelSelector:"R",yChannelSelector:"B",result:"d"}),e("feGaussianBlur",{in:"d",stdDeviation:"16"})]}),e("filter",{id:"voi-gl",children:e("feGaussianBlur",{stdDeviation:"14"})})]}),e("g",{clipPath:"url(#voi-c)",children:[e("circle",{cx:"120",cy:"120",r:"112",fill:"currentColor",opacity:"0.06"}),e("g",{filter:"url(#voi-gl)",style:{mixBlendMode:"multiply"},children:[e("ellipse",{cx:"130",cy:"125",rx:"95",ry:"95",fill:"currentColor",opacity:"0.12",children:e("animate",{attributeName:"opacity",values:"0.08;0.14;0.08",dur:"12s",repeatCount:"indefinite"})}),e("ellipse",{cx:"108",cy:"112",rx:"85",ry:"85",fill:"currentColor",opacity:"0.1",children:e("animate",{attributeName:"opacity",values:"0.07;0.13;0.07",dur:"10s",repeatCount:"indefinite"})})]}),e("g",{filter:"url(#voi-f1)",style:{mixBlendMode:"multiply"},children:e("ellipse",{cx:"110",cy:"100",rx:"85",ry:"65",fill:"currentColor",opacity:"0.22",children:[e("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"40s",repeatCount:"indefinite"}),e("animate",{attributeName:"rx",values:"85;78;85",dur:"12s",repeatCount:"indefinite"}),e("animate",{attributeName:"ry",values:"65;72;65",dur:"12s",repeatCount:"indefinite"})]})}),e("g",{filter:"url(#voi-f2)",style:{mixBlendMode:"multiply"},children:e("ellipse",{cx:"132",cy:"140",rx:"60",ry:"80",fill:"currentColor",opacity:"0.18",children:[e("animateTransform",{attributeName:"transform",type:"rotate",values:"360 120 120;0 120 120",dur:"35s",repeatCount:"indefinite"}),e("animate",{attributeName:"rx",values:"60;68;60",dur:"10s",repeatCount:"indefinite"}),e("animate",{attributeName:"ry",values:"80;72;80",dur:"10s",repeatCount:"indefinite"})]})}),e("g",{filter:"url(#voi-f3)",style:{mixBlendMode:"multiply"},children:e("ellipse",{cx:"105",cy:"130",rx:"50",ry:"40",fill:"currentColor",opacity:"0.2",children:[e("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"30s",repeatCount:"indefinite"}),e("animate",{attributeName:"rx",values:"50;44;50",dur:"9s",repeatCount:"indefinite"}),e("animate",{attributeName:"ry",values:"40;48;40",dur:"9s",repeatCount:"indefinite"})]})}),e("g",{filter:"url(#voi-gl)",style:{mixBlendMode:"multiply"},children:e("circle",{cx:"120",cy:"118",r:"30",fill:"currentColor",opacity:"0.1",children:[e("animate",{attributeName:"r",values:"28;34;28",dur:"8s",repeatCount:"indefinite"}),e("animate",{attributeName:"opacity",values:"0.08;0.14;0.08",dur:"8s",repeatCount:"indefinite"})]})})]}),e("circle",{cx:"120",cy:"120",r:"112",fill:"none",stroke:"currentColor",strokeOpacity:"0.06",strokeWidth:"0.6"})]})}function T(){return e("svg",{viewBox:"0 0 240 240",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:[e("defs",{children:[e("clipPath",{id:"vol-c",children:e("circle",{cx:"120",cy:"120",r:"112"})}),e("filter",{id:"vol-f1",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[e("feTurbulence",{type:"fractalNoise",baseFrequency:"0.008 0.01",numOctaves:"3",seed:"4",result:"n",children:e("animate",{attributeName:"baseFrequency",values:"0.008 0.01;0.012 0.006;0.005 0.013;0.008 0.01",dur:"15s",repeatCount:"indefinite"})}),e("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"22",xChannelSelector:"R",yChannelSelector:"G",result:"d"}),e("feGaussianBlur",{in:"d",stdDeviation:"6"})]}),e("filter",{id:"vol-f2",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[e("feTurbulence",{type:"fractalNoise",baseFrequency:"0.01 0.007",numOctaves:"3",seed:"10",result:"n",children:e("animate",{attributeName:"baseFrequency",values:"0.01 0.007;0.006 0.011;0.013 0.004;0.01 0.007",dur:"12s",repeatCount:"indefinite"})}),e("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"18",xChannelSelector:"G",yChannelSelector:"R",result:"d"}),e("feGaussianBlur",{in:"d",stdDeviation:"5"})]}),e("filter",{id:"vol-f3",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[e("feTurbulence",{type:"fractalNoise",baseFrequency:"0.007 0.012",numOctaves:"3",seed:"16",result:"n",children:e("animate",{attributeName:"baseFrequency",values:"0.007 0.012;0.01 0.008;0.004 0.015;0.007 0.012",dur:"18s",repeatCount:"indefinite"})}),e("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"16",xChannelSelector:"R",yChannelSelector:"B",result:"d"}),e("feGaussianBlur",{in:"d",stdDeviation:"5"})]}),e("filter",{id:"vol-gl",children:e("feGaussianBlur",{stdDeviation:"5"})})]}),e("g",{clipPath:"url(#vol-c)",children:[e("circle",{cx:"120",cy:"120",r:"112",fill:"currentColor",opacity:"0.07"}),e("g",{filter:"url(#vol-f1)",style:{mixBlendMode:"multiply"},children:e("ellipse",{cx:"120",cy:"120",rx:"95",ry:"70",fill:"currentColor",opacity:"0.3",children:[e("animate",{attributeName:"rx",values:"95;60;100;55;95",dur:"3.5s",repeatCount:"indefinite"}),e("animate",{attributeName:"ry",values:"70;100;58;95;70",dur:"3.5s",repeatCount:"indefinite"})]})}),e("g",{filter:"url(#vol-f2)",style:{mixBlendMode:"multiply"},children:e("ellipse",{cx:"120",cy:"120",rx:"55",ry:"85",fill:"currentColor",opacity:"0.26",children:[e("animate",{attributeName:"rx",values:"55;88;48;82;55",dur:"4s",repeatCount:"indefinite"}),e("animate",{attributeName:"ry",values:"85;50;90;55;85",dur:"4s",repeatCount:"indefinite"})]})}),e("g",{filter:"url(#vol-f3)",style:{mixBlendMode:"multiply"},children:e("ellipse",{cx:"120",cy:"120",rx:"65",ry:"42",fill:"currentColor",opacity:"0.28",children:[e("animate",{attributeName:"rx",values:"65;38;70;35;65",dur:"3s",repeatCount:"indefinite"}),e("animate",{attributeName:"ry",values:"42;72;38;68;42",dur:"3s",repeatCount:"indefinite"})]})}),e("g",{filter:"url(#vol-f1)",style:{mixBlendMode:"multiply"},children:e("ellipse",{cx:"120",cy:"120",rx:"40",ry:"72",fill:"currentColor",opacity:"0.2",children:[e("animate",{attributeName:"rx",values:"40;70;35;65;40",dur:"3.5s",repeatCount:"indefinite"}),e("animate",{attributeName:"ry",values:"72;40;78;42;72",dur:"3.5s",repeatCount:"indefinite"})]})}),e("g",{filter:"url(#vol-f2)",style:{mixBlendMode:"multiply"},children:e("ellipse",{cx:"120",cy:"120",rx:"78",ry:"55",fill:"currentColor",opacity:"0.2",children:[e("animate",{attributeName:"rx",values:"78;48;82;45;78",dur:"4.5s",repeatCount:"indefinite"}),e("animate",{attributeName:"ry",values:"55;80;50;78;55",dur:"4.5s",repeatCount:"indefinite"})]})}),e("g",{filter:"url(#vol-gl)",style:{mixBlendMode:"multiply"},children:e("circle",{cx:"120",cy:"120",r:"30",fill:"currentColor",opacity:"0.14",children:[e("animate",{attributeName:"r",values:"30;45;22;42;30",dur:"3.5s",repeatCount:"indefinite"}),e("animate",{attributeName:"opacity",values:"0.14;0.24;0.1;0.22;0.14",dur:"3.5s",repeatCount:"indefinite"})]})})]}),e("circle",{cx:"120",cy:"120",r:"112",fill:"none",stroke:"currentColor",strokeOpacity:"0.07",strokeWidth:"0.6"})]})}function G(){return e("svg",{viewBox:"0 0 240 240",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:[e("defs",{children:[e("clipPath",{id:"voth-c",children:e("circle",{cx:"120",cy:"120",r:"112"})}),e("filter",{id:"voth-f1",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[e("feTurbulence",{type:"fractalNoise",baseFrequency:"0.008 0.01",numOctaves:"3",seed:"6",result:"n",children:e("animate",{attributeName:"baseFrequency",values:"0.008 0.01;0.013 0.005;0.004 0.014;0.008 0.01",dur:"10s",repeatCount:"indefinite"})}),e("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"28",xChannelSelector:"R",yChannelSelector:"G",result:"d"}),e("feGaussianBlur",{in:"d",stdDeviation:"15"})]}),e("filter",{id:"voth-f2",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[e("feTurbulence",{type:"fractalNoise",baseFrequency:"0.01 0.007",numOctaves:"3",seed:"12",result:"n",children:e("animate",{attributeName:"baseFrequency",values:"0.01 0.007;0.005 0.012;0.014 0.003;0.01 0.007",dur:"8s",repeatCount:"indefinite"})}),e("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"24",xChannelSelector:"G",yChannelSelector:"R",result:"d"}),e("feGaussianBlur",{in:"d",stdDeviation:"14"})]}),e("filter",{id:"voth-f3",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[e("feTurbulence",{type:"fractalNoise",baseFrequency:"0.007 0.012",numOctaves:"3",seed:"18",result:"n",children:e("animate",{attributeName:"baseFrequency",values:"0.007 0.012;0.011 0.007;0.003 0.016;0.007 0.012",dur:"12s",repeatCount:"indefinite"})}),e("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"20",xChannelSelector:"R",yChannelSelector:"B",result:"d"}),e("feGaussianBlur",{in:"d",stdDeviation:"13"})]}),e("filter",{id:"voth-gl",children:e("feGaussianBlur",{stdDeviation:"10"})})]}),e("g",{clipPath:"url(#voth-c)",children:[e("circle",{cx:"120",cy:"120",r:"112",fill:"currentColor",opacity:"0.08"}),e("g",{filter:"url(#voth-gl)",style:{mixBlendMode:"multiply"},children:[e("circle",{cx:"120",cy:"120",r:"60",fill:"currentColor",opacity:"0.15",children:[e("animate",{attributeName:"r",values:"60;90;60",dur:"1.8s",repeatCount:"indefinite"}),e("animate",{attributeName:"opacity",values:"0.18;0.08;0.18",dur:"1.8s",repeatCount:"indefinite"})]}),e("circle",{cx:"120",cy:"120",r:"45",fill:"currentColor",opacity:"0.12",children:[e("animate",{attributeName:"r",values:"45;75;45",dur:"1.8s",repeatCount:"indefinite",begin:"0.3s"}),e("animate",{attributeName:"opacity",values:"0.15;0.06;0.15",dur:"1.8s",repeatCount:"indefinite",begin:"0.3s"})]})]}),e("g",{filter:"url(#voth-f1)",style:{mixBlendMode:"multiply"},children:e("ellipse",{cx:"110",cy:"100",rx:"85",ry:"65",fill:"currentColor",opacity:"0.35",children:[e("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"14s",repeatCount:"indefinite"}),e("animate",{attributeName:"rx",values:"85;70;90;75;85",dur:"2.4s",repeatCount:"indefinite"}),e("animate",{attributeName:"ry",values:"65;80;60;78;65",dur:"2.4s",repeatCount:"indefinite"})]})}),e("g",{filter:"url(#voth-f2)",style:{mixBlendMode:"multiply"},children:e("ellipse",{cx:"132",cy:"138",rx:"60",ry:"82",fill:"currentColor",opacity:"0.3",children:[e("animateTransform",{attributeName:"transform",type:"rotate",values:"360 120 120;0 120 120",dur:"12s",repeatCount:"indefinite"}),e("animate",{attributeName:"rx",values:"60;78;55;72;60",dur:"2.4s",repeatCount:"indefinite"}),e("animate",{attributeName:"ry",values:"82;65;85;68;82",dur:"2.4s",repeatCount:"indefinite"})]})}),e("g",{filter:"url(#voth-f3)",style:{mixBlendMode:"multiply"},children:e("ellipse",{cx:"108",cy:"132",rx:"52",ry:"38",fill:"currentColor",opacity:"0.32",children:[e("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"10s",repeatCount:"indefinite"}),e("animate",{attributeName:"rx",values:"52;40;55;42;52",dur:"2s",repeatCount:"indefinite"}),e("animate",{attributeName:"ry",values:"38;52;35;50;38",dur:"2s",repeatCount:"indefinite"})]})}),e("g",{filter:"url(#voth-f1)",style:{mixBlendMode:"multiply"},children:e("ellipse",{cx:"120",cy:"95",rx:"90",ry:"22",fill:"currentColor",opacity:"0.24",children:[e("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"11s",repeatCount:"indefinite"}),e("animate",{attributeName:"ry",values:"22;38;22",dur:"1.8s",repeatCount:"indefinite"})]})}),e("g",{filter:"url(#voth-f2)",style:{mixBlendMode:"multiply"},children:e("ellipse",{cx:"140",cy:"98",rx:"38",ry:"28",fill:"currentColor",opacity:"0.25",children:[e("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"7s",repeatCount:"indefinite"}),e("animate",{attributeName:"rx",values:"38;28;42;30;38",dur:"2s",repeatCount:"indefinite"}),e("animate",{attributeName:"ry",values:"28;40;25;38;28",dur:"2s",repeatCount:"indefinite"})]})}),e("g",{filter:"url(#voth-gl)",style:{mixBlendMode:"multiply"},children:e("circle",{cx:"120",cy:"118",r:"30",fill:"currentColor",opacity:"0.2",children:[e("animate",{attributeName:"r",values:"28;42;30;38;28",dur:"2s",repeatCount:"indefinite"}),e("animate",{attributeName:"opacity",values:"0.15;0.28;0.18;0.25;0.15",dur:"2s",repeatCount:"indefinite"})]})})]}),e("circle",{cx:"120",cy:"120",r:"112",fill:"none",stroke:"currentColor",strokeOpacity:"0.08",strokeWidth:"0.6"})]})}function S(){return e("svg",{viewBox:"0 0 240 240",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:[e("defs",{children:[e("clipPath",{id:"vot-c",children:e("circle",{cx:"120",cy:"120",r:"112"})}),e("filter",{id:"vot-f1",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[e("feTurbulence",{type:"fractalNoise",baseFrequency:"0.009 0.012",numOctaves:"4",seed:"5",result:"n",children:e("animate",{attributeName:"baseFrequency",values:"0.009 0.012;0.015 0.006;0.005 0.017;0.009 0.012",dur:"7s",repeatCount:"indefinite"})}),e("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"35",xChannelSelector:"R",yChannelSelector:"G",result:"d"}),e("feGaussianBlur",{in:"d",stdDeviation:"8"})]}),e("filter",{id:"vot-f2",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[e("feTurbulence",{type:"fractalNoise",baseFrequency:"0.011 0.008",numOctaves:"4",seed:"11",result:"n",children:e("animate",{attributeName:"baseFrequency",values:"0.011 0.008;0.006 0.013;0.016 0.004;0.011 0.008",dur:"6s",repeatCount:"indefinite"})}),e("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"30",xChannelSelector:"G",yChannelSelector:"R",result:"d"}),e("feGaussianBlur",{in:"d",stdDeviation:"7"})]}),e("filter",{id:"vot-f3",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[e("feTurbulence",{type:"fractalNoise",baseFrequency:"0.008 0.014",numOctaves:"4",seed:"17",result:"n",children:e("animate",{attributeName:"baseFrequency",values:"0.008 0.014;0.012 0.009;0.004 0.018;0.008 0.014",dur:"8s",repeatCount:"indefinite"})}),e("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"28",xChannelSelector:"R",yChannelSelector:"B",result:"d"}),e("feGaussianBlur",{in:"d",stdDeviation:"7"})]}),e("filter",{id:"vot-gl",children:e("feGaussianBlur",{stdDeviation:"7"})})]}),e("g",{clipPath:"url(#vot-c)",children:[e("circle",{cx:"120",cy:"120",r:"112",fill:"currentColor",opacity:"0.08"}),e("g",{filter:"url(#vot-f1)",style:{mixBlendMode:"multiply"},children:e("ellipse",{cx:"108",cy:"98",rx:"100",ry:"80",fill:"currentColor",opacity:"0.38",children:[e("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"8s",repeatCount:"indefinite"}),e("animate",{attributeName:"rx",values:"100;72;105;78;92;100",dur:"3.2s",repeatCount:"indefinite"}),e("animate",{attributeName:"ry",values:"80;100;72;95;82;80",dur:"3.2s",repeatCount:"indefinite"}),e("animate",{attributeName:"opacity",values:"0.38;0.24;0.4;0.26;0.36;0.38",dur:"3.2s",repeatCount:"indefinite"})]})}),e("g",{filter:"url(#vot-f2)",style:{mixBlendMode:"multiply"},children:e("ellipse",{cx:"135",cy:"138",rx:"85",ry:"100",fill:"currentColor",opacity:"0.34",children:[e("animateTransform",{attributeName:"transform",type:"rotate",values:"360 120 120;0 120 120",dur:"6s",repeatCount:"indefinite"}),e("animate",{attributeName:"rx",values:"85;105;70;98;80;85",dur:"2.8s",repeatCount:"indefinite"}),e("animate",{attributeName:"ry",values:"100;72;95;68;92;100",dur:"2.8s",repeatCount:"indefinite"}),e("animate",{attributeName:"opacity",values:"0.34;0.22;0.36;0.24;0.32;0.34",dur:"2.8s",repeatCount:"indefinite"})]})}),e("g",{filter:"url(#vot-f3)",style:{mixBlendMode:"multiply"},children:e("ellipse",{cx:"102",cy:"132",rx:"75",ry:"60",fill:"currentColor",opacity:"0.36",children:[e("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"5s",repeatCount:"indefinite"}),e("animate",{attributeName:"rx",values:"75;52;78;55;70;75",dur:"2.4s",repeatCount:"indefinite"}),e("animate",{attributeName:"ry",values:"60;80;55;76;62;60",dur:"2.4s",repeatCount:"indefinite"}),e("animate",{attributeName:"opacity",values:"0.36;0.24;0.38;0.26;0.34;0.36",dur:"2.4s",repeatCount:"indefinite"})]})}),e("g",{filter:"url(#vot-f1)",style:{mixBlendMode:"multiply"},children:e("ellipse",{cx:"120",cy:"100",rx:"100",ry:"32",fill:"currentColor",opacity:"0.28",children:[e("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"4s",repeatCount:"indefinite"}),e("animate",{attributeName:"ry",values:"32;52;28;48;35;32",dur:"2.6s",repeatCount:"indefinite"}),e("animate",{attributeName:"rx",values:"100;80;105;85;95;100",dur:"2.6s",repeatCount:"indefinite"})]})}),e("g",{filter:"url(#vot-f2)",style:{mixBlendMode:"multiply"},children:e("ellipse",{cx:"120",cy:"120",rx:"32",ry:"100",fill:"currentColor",opacity:"0.22",children:[e("animateTransform",{attributeName:"transform",type:"rotate",values:"360 120 120;0 120 120",dur:"5s",repeatCount:"indefinite"}),e("animate",{attributeName:"rx",values:"32;55;28;50;35;32",dur:"3s",repeatCount:"indefinite"}),e("animate",{attributeName:"ry",values:"100;75;105;80;95;100",dur:"3s",repeatCount:"indefinite"})]})}),e("g",{filter:"url(#vot-f3)",style:{mixBlendMode:"multiply"},children:e("ellipse",{cx:"138",cy:"96",rx:"55",ry:"45",fill:"currentColor",opacity:"0.3",children:[e("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"4.5s",repeatCount:"indefinite"}),e("animate",{attributeName:"rx",values:"55;38;58;40;50;55",dur:"2.2s",repeatCount:"indefinite"}),e("animate",{attributeName:"ry",values:"45;62;42;58;48;45",dur:"2.2s",repeatCount:"indefinite"}),e("animate",{attributeName:"opacity",values:"0.3;0.2;0.32;0.22;0.28;0.3",dur:"2.2s",repeatCount:"indefinite"})]})}),e("g",{filter:"url(#vot-gl)",style:{mixBlendMode:"multiply"},children:e("circle",{cx:"120",cy:"118",r:"40",fill:"currentColor",opacity:"0.18",children:[e("animate",{attributeName:"r",values:"38;55;35;50;40;38",dur:"2.8s",repeatCount:"indefinite"}),e("animate",{attributeName:"opacity",values:"0.15;0.3;0.18;0.26;0.16;0.15",dur:"2.8s",repeatCount:"indefinite"})]})})]}),e("circle",{cx:"120",cy:"120",r:"112",fill:"none",stroke:"currentColor",strokeOpacity:"0.08",strokeWidth:"0.6"})]})}function M({state:i,isMuted:r,onEndCall:s,onClose:o,onToggleMute:d,agentName:m="Health Assist",textColor:u="white"}){const[f,n]=y(!1);if(i===t.VOICE_AGENT_STATE.ERROR)return e("div",{className:"flex-1 flex flex-col items-center justify-center bg-surface gap-4 p-8",children:[e("div",{className:"w-16 h-16 rounded-full bg-destructive/10 flex items-center justify-center",children:e(N,{className:"w-7 h-7 text-destructive"})}),e("div",{className:"text-center",children:[e("p",{className:"text-base font-semibold text-foreground",children:"Call Disconnected"}),e("p",{className:"text-sm text-muted-foreground mt-1",children:"Something went wrong. Please try again."})]}),e(l,{onClick:o,variant:"outline",className:"mt-2",children:"Close"})]});const p=()=>{if(r)return"You are muted";switch(i){case t.VOICE_AGENT_STATE.CONNECTING:return`Please wait while we are
|
|
2
|
+
connecting to an AI agent...`;case t.VOICE_AGENT_STATE.SPEAKING:return`${m} is speaking...`;case t.VOICE_AGENT_STATE.LISTENING:return"You are speaking...";case t.VOICE_AGENT_STATE.THINKING:return"One moment please...";case t.VOICE_AGENT_STATE.MUTED:return"You are muted";case t.VOICE_AGENT_STATE.DISCONNECTING:return"Ending session...";default:return"Go ahead, I'm listening..."}},a=i===t.VOICE_AGENT_STATE.SPEAKING||i===t.VOICE_AGENT_STATE.CONNECTING||i===t.VOICE_AGENT_STATE.DISCONNECTING;return e("div",{className:"flex-1 flex flex-col bg-surface relative",children:[e("style",{children:B}),e("div",{className:"py-2.5 text-center bg-primary/15",children:e("span",{className:"text-[11px] font-bold uppercase tracking-[0.12em] text-primary",children:"Voice Mode Active"})}),e("div",{className:"flex-1 flex flex-col items-center justify-center gap-5",children:[e("div",{className:"w-[200px] h-[200px] text-primary",children:e(g,{state:i})}),e("p",{className:"text-base text-center px-8 whitespace-pre-line leading-6 text-muted-foreground",children:p()})]}),e("div",{children:[e("div",{className:"border-t border-primary/15"}),e("div",{className:"py-5 bg-surface flex justify-center items-center gap-6",children:[e("button",{type:"button",onClick:d,disabled:a,className:"voice-mic-btn","aria-label":r?"Unmute":"Mute",style:{opacity:a?.5:1,cursor:a?"not-allowed":"pointer",background:a?"hsl(var(--primary) / 0.4)":r?u==="black"?"hsl(var(--black-700))":"hsl(var(--white-700))":"hsl(var(--primary))"},children:r?e(b,{className:`w-6 h-6 ${u==="black"?"text-white":"text-black"}`}):e(h,{className:"w-6 h-6 text-white"})}),e("button",{type:"button",onClick:()=>n(!0),disabled:i===t.VOICE_AGENT_STATE.DISCONNECTING,className:"voice-end-btn","aria-label":"Exit voice mode",children:e(v,{className:"w-5 h-5 text-white"})})]})]}),f&&e("div",{className:"absolute inset-0 z-50 flex items-center justify-center bg-black/40",children:e("div",{className:"bg-background rounded-2xl shadow-xl mx-6 p-6 w-full max-w-[280px] flex flex-col items-center gap-3",children:[e("p",{className:"text-base font-semibold text-foreground text-center",children:"Exit voice mode?"}),e("p",{className:"text-sm text-muted-foreground text-center leading-5",children:"This will close your voice session. You can continue your chat."}),e("div",{className:"flex flex-col w-full gap-2 mt-2",children:[e(l,{onClick:()=>{n(!1),s?.()},className:"w-full bg-red-500 hover:bg-red-600 text-white",children:"Exit and Go Back to Chat"}),e(l,{variant:"outline",onClick:()=>n(!1),className:"w-full",children:"Keep talking"})]})]})})]})}const B=`
|
|
377
3
|
.voice-mic-btn {
|
|
378
4
|
width: 56px;
|
|
379
5
|
height: 56px;
|
|
@@ -413,7 +39,4 @@ const E = `
|
|
|
413
39
|
}
|
|
414
40
|
.voice-end-btn:active { transform: scale(0.95); }
|
|
415
41
|
.voice-end-btn:disabled { opacity: 0.5; cursor: not-allowed; }
|
|
416
|
-
`;
|
|
417
|
-
export {
|
|
418
|
-
M as default
|
|
419
|
-
};
|
|
42
|
+
`;export{M as default};
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
const e = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], t = c("check", e);
|
|
3
|
-
export {
|
|
4
|
-
t as C
|
|
5
|
-
};
|
|
1
|
+
import{c}from"./medassist-widget.js";const t=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],e=c("check",t);export{e as C};
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
const e = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], n = o("chevron-left", e);
|
|
3
|
-
const t = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], h = o("chevron-right", t);
|
|
4
|
-
export {
|
|
5
|
-
n as C,
|
|
6
|
-
h as a
|
|
7
|
-
};
|
|
1
|
+
import{c as t}from"./medassist-widget.js";const h=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],o=t("chevron-left",h),e=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],a=t("chevron-right",e);export{o as C,a};
|