@eka-care/medassist-widget 0.1.83 → 0.1.84
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/README.md +2 -2
- package/dist/medassist-widget-CardList-DCmadzzk.js +222 -0
- package/dist/medassist-widget-DoctorCard-B9Zb-zvl.js +447 -0
- package/dist/medassist-widget-FocusCarousel-BsLIZftX.js +90 -0
- package/dist/medassist-widget-MediaCard-wTRSvQWH.js +85 -0
- package/dist/medassist-widget-MultiSelect-BnExX-Ty.js +414 -0
- package/dist/medassist-widget-VoiceAgentScreen-BK0p37RC.js +419 -0
- package/dist/medassist-widget-check-BaHLRs-2.js +5 -0
- package/dist/medassist-widget-chevron-right-CKYbGWbY.js +7 -0
- package/dist/medassist-widget-html2canvas.esm-CphxV6YW.js +4835 -0
- package/dist/medassist-widget-map-pin-Bx-5lPdC.js +14 -0
- package/dist/medassist-widget.css +1 -1
- package/dist/medassist-widget.js +13010 -67
- package/package.json +12 -6
|
@@ -0,0 +1,419 @@
|
|
|
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
|
+
const x = [
|
|
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 = `
|
|
377
|
+
.voice-mic-btn {
|
|
378
|
+
width: 56px;
|
|
379
|
+
height: 56px;
|
|
380
|
+
border-radius: 50%;
|
|
381
|
+
border: none;
|
|
382
|
+
display: flex;
|
|
383
|
+
align-items: center;
|
|
384
|
+
justify-content: center;
|
|
385
|
+
transition: all 0.2s ease;
|
|
386
|
+
box-shadow: 0 2px 10px hsl(var(--primary) / 0.3);
|
|
387
|
+
}
|
|
388
|
+
.voice-mic-btn:not(:disabled):hover {
|
|
389
|
+
transform: scale(1.06);
|
|
390
|
+
box-shadow: 0 4px 16px hsl(var(--primary) / 0.4);
|
|
391
|
+
}
|
|
392
|
+
.voice-mic-btn:not(:disabled):active {
|
|
393
|
+
transform: scale(0.95);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.voice-end-btn {
|
|
397
|
+
width: 48px;
|
|
398
|
+
height: 48px;
|
|
399
|
+
border-radius: 50%;
|
|
400
|
+
border: none;
|
|
401
|
+
display: flex;
|
|
402
|
+
align-items: center;
|
|
403
|
+
justify-content: center;
|
|
404
|
+
background: #ef4444;
|
|
405
|
+
cursor: pointer;
|
|
406
|
+
transition: all 0.2s ease;
|
|
407
|
+
box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
|
|
408
|
+
}
|
|
409
|
+
.voice-end-btn:hover {
|
|
410
|
+
background: #dc2626;
|
|
411
|
+
transform: scale(1.06);
|
|
412
|
+
box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
|
|
413
|
+
}
|
|
414
|
+
.voice-end-btn:active { transform: scale(0.95); }
|
|
415
|
+
.voice-end-btn:disabled { opacity: 0.5; cursor: not-allowed; }
|
|
416
|
+
`;
|
|
417
|
+
export {
|
|
418
|
+
M as default
|
|
419
|
+
};
|