@eka-care/medassist-widget 0.1.81 → 0.1.82

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.
@@ -0,0 +1,421 @@
1
+ import { c, u as e, d as y, a as t, B as l } from "./medassist-widget-main-CvBx4wsw.js";
2
+ import { M as h } from "./medassist-widget-mic-uIy1yldF.js";
3
+ import { X as v } from "./medassist-widget-x-DptkIHzh.js";
4
+ const x = [
5
+ ["path", { d: "M12 19v3", key: "npa21l" }],
6
+ ["path", { d: "M15 9.34V5a3 3 0 0 0-5.68-1.33", key: "1gzdoj" }],
7
+ ["path", { d: "M16.95 16.95A7 7 0 0 1 5 12v-2", key: "cqa7eg" }],
8
+ ["path", { d: "M18.89 13.23A7 7 0 0 0 19 12v-2", key: "16hl24" }],
9
+ ["path", { d: "m2 2 20 20", key: "1ooewy" }],
10
+ ["path", { d: "M9 9v3a3 3 0 0 0 5.12 2.12", key: "r2i35w" }]
11
+ ], b = c("mic-off", x);
12
+ const C = [
13
+ [
14
+ "path",
15
+ {
16
+ 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",
17
+ key: "1wngk7"
18
+ }
19
+ ],
20
+ ["path", { d: "M22 2 2 22", key: "y4kqgn" }],
21
+ [
22
+ "path",
23
+ {
24
+ 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",
25
+ key: "10hv5p"
26
+ }
27
+ ]
28
+ ], N = c("phone-off", C);
29
+ function g({ state: i }) {
30
+ switch (i) {
31
+ case "speaking":
32
+ return /* @__PURE__ */ e(G, {});
33
+ case "thinking":
34
+ return /* @__PURE__ */ e(S, {});
35
+ case "listening":
36
+ return /* @__PURE__ */ e(T, {});
37
+ default:
38
+ return /* @__PURE__ */ e(w, {});
39
+ }
40
+ }
41
+ function w() {
42
+ return /* @__PURE__ */ e("svg", { viewBox: "0 0 240 240", xmlns: "http://www.w3.org/2000/svg", className: "w-full h-full", children: [
43
+ /* @__PURE__ */ e("defs", { children: [
44
+ /* @__PURE__ */ e("clipPath", { id: "voi-c", children: /* @__PURE__ */ e("circle", { cx: "120", cy: "120", r: "112" }) }),
45
+ /* @__PURE__ */ e("filter", { id: "voi-f1", x: "-50%", y: "-50%", width: "200%", height: "200%", children: [
46
+ /* @__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" }) }),
47
+ /* @__PURE__ */ e("feDisplacementMap", { in: "SourceGraphic", in2: "n", scale: "20", xChannelSelector: "R", yChannelSelector: "G", result: "d" }),
48
+ /* @__PURE__ */ e("feGaussianBlur", { in: "d", stdDeviation: "18" })
49
+ ] }),
50
+ /* @__PURE__ */ e("filter", { id: "voi-f2", x: "-50%", y: "-50%", width: "200%", height: "200%", children: [
51
+ /* @__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" }) }),
52
+ /* @__PURE__ */ e("feDisplacementMap", { in: "SourceGraphic", in2: "n", scale: "16", xChannelSelector: "G", yChannelSelector: "R", result: "d" }),
53
+ /* @__PURE__ */ e("feGaussianBlur", { in: "d", stdDeviation: "16" })
54
+ ] }),
55
+ /* @__PURE__ */ e("filter", { id: "voi-f3", x: "-50%", y: "-50%", width: "200%", height: "200%", children: [
56
+ /* @__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" }) }),
57
+ /* @__PURE__ */ e("feDisplacementMap", { in: "SourceGraphic", in2: "n", scale: "14", xChannelSelector: "R", yChannelSelector: "B", result: "d" }),
58
+ /* @__PURE__ */ e("feGaussianBlur", { in: "d", stdDeviation: "16" })
59
+ ] }),
60
+ /* @__PURE__ */ e("filter", { id: "voi-gl", children: /* @__PURE__ */ e("feGaussianBlur", { stdDeviation: "14" }) })
61
+ ] }),
62
+ /* @__PURE__ */ e("g", { clipPath: "url(#voi-c)", children: [
63
+ /* @__PURE__ */ e("circle", { cx: "120", cy: "120", r: "112", fill: "currentColor", opacity: "0.06" }),
64
+ /* @__PURE__ */ e("g", { filter: "url(#voi-gl)", style: { mixBlendMode: "multiply" }, children: [
65
+ /* @__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" }) }),
66
+ /* @__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" }) })
67
+ ] }),
68
+ /* @__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: [
69
+ /* @__PURE__ */ e("animateTransform", { attributeName: "transform", type: "rotate", values: "0 120 120;360 120 120", dur: "40s", repeatCount: "indefinite" }),
70
+ /* @__PURE__ */ e("animate", { attributeName: "rx", values: "85;78;85", dur: "12s", repeatCount: "indefinite" }),
71
+ /* @__PURE__ */ e("animate", { attributeName: "ry", values: "65;72;65", dur: "12s", repeatCount: "indefinite" })
72
+ ] }) }),
73
+ /* @__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: [
74
+ /* @__PURE__ */ e("animateTransform", { attributeName: "transform", type: "rotate", values: "360 120 120;0 120 120", dur: "35s", repeatCount: "indefinite" }),
75
+ /* @__PURE__ */ e("animate", { attributeName: "rx", values: "60;68;60", dur: "10s", repeatCount: "indefinite" }),
76
+ /* @__PURE__ */ e("animate", { attributeName: "ry", values: "80;72;80", dur: "10s", repeatCount: "indefinite" })
77
+ ] }) }),
78
+ /* @__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: [
79
+ /* @__PURE__ */ e("animateTransform", { attributeName: "transform", type: "rotate", values: "0 120 120;360 120 120", dur: "30s", repeatCount: "indefinite" }),
80
+ /* @__PURE__ */ e("animate", { attributeName: "rx", values: "50;44;50", dur: "9s", repeatCount: "indefinite" }),
81
+ /* @__PURE__ */ e("animate", { attributeName: "ry", values: "40;48;40", dur: "9s", repeatCount: "indefinite" })
82
+ ] }) }),
83
+ /* @__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: [
84
+ /* @__PURE__ */ e("animate", { attributeName: "r", values: "28;34;28", dur: "8s", repeatCount: "indefinite" }),
85
+ /* @__PURE__ */ e("animate", { attributeName: "opacity", values: "0.08;0.14;0.08", dur: "8s", repeatCount: "indefinite" })
86
+ ] }) })
87
+ ] }),
88
+ /* @__PURE__ */ e("circle", { cx: "120", cy: "120", r: "112", fill: "none", stroke: "currentColor", strokeOpacity: "0.06", strokeWidth: "0.6" })
89
+ ] });
90
+ }
91
+ function T() {
92
+ return /* @__PURE__ */ e("svg", { viewBox: "0 0 240 240", xmlns: "http://www.w3.org/2000/svg", className: "w-full h-full", children: [
93
+ /* @__PURE__ */ e("defs", { children: [
94
+ /* @__PURE__ */ e("clipPath", { id: "vol-c", children: /* @__PURE__ */ e("circle", { cx: "120", cy: "120", r: "112" }) }),
95
+ /* @__PURE__ */ e("filter", { id: "vol-f1", x: "-50%", y: "-50%", width: "200%", height: "200%", children: [
96
+ /* @__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" }) }),
97
+ /* @__PURE__ */ e("feDisplacementMap", { in: "SourceGraphic", in2: "n", scale: "22", xChannelSelector: "R", yChannelSelector: "G", result: "d" }),
98
+ /* @__PURE__ */ e("feGaussianBlur", { in: "d", stdDeviation: "6" })
99
+ ] }),
100
+ /* @__PURE__ */ e("filter", { id: "vol-f2", x: "-50%", y: "-50%", width: "200%", height: "200%", children: [
101
+ /* @__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" }) }),
102
+ /* @__PURE__ */ e("feDisplacementMap", { in: "SourceGraphic", in2: "n", scale: "18", xChannelSelector: "G", yChannelSelector: "R", result: "d" }),
103
+ /* @__PURE__ */ e("feGaussianBlur", { in: "d", stdDeviation: "5" })
104
+ ] }),
105
+ /* @__PURE__ */ e("filter", { id: "vol-f3", x: "-50%", y: "-50%", width: "200%", height: "200%", children: [
106
+ /* @__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" }) }),
107
+ /* @__PURE__ */ e("feDisplacementMap", { in: "SourceGraphic", in2: "n", scale: "16", xChannelSelector: "R", yChannelSelector: "B", result: "d" }),
108
+ /* @__PURE__ */ e("feGaussianBlur", { in: "d", stdDeviation: "5" })
109
+ ] }),
110
+ /* @__PURE__ */ e("filter", { id: "vol-gl", children: /* @__PURE__ */ e("feGaussianBlur", { stdDeviation: "5" }) })
111
+ ] }),
112
+ /* @__PURE__ */ e("g", { clipPath: "url(#vol-c)", children: [
113
+ /* @__PURE__ */ e("circle", { cx: "120", cy: "120", r: "112", fill: "currentColor", opacity: "0.07" }),
114
+ /* @__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: [
115
+ /* @__PURE__ */ e("animate", { attributeName: "rx", values: "95;60;100;55;95", dur: "3.5s", repeatCount: "indefinite" }),
116
+ /* @__PURE__ */ e("animate", { attributeName: "ry", values: "70;100;58;95;70", dur: "3.5s", repeatCount: "indefinite" })
117
+ ] }) }),
118
+ /* @__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: [
119
+ /* @__PURE__ */ e("animate", { attributeName: "rx", values: "55;88;48;82;55", dur: "4s", repeatCount: "indefinite" }),
120
+ /* @__PURE__ */ e("animate", { attributeName: "ry", values: "85;50;90;55;85", dur: "4s", repeatCount: "indefinite" })
121
+ ] }) }),
122
+ /* @__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: [
123
+ /* @__PURE__ */ e("animate", { attributeName: "rx", values: "65;38;70;35;65", dur: "3s", repeatCount: "indefinite" }),
124
+ /* @__PURE__ */ e("animate", { attributeName: "ry", values: "42;72;38;68;42", dur: "3s", repeatCount: "indefinite" })
125
+ ] }) }),
126
+ /* @__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: [
127
+ /* @__PURE__ */ e("animate", { attributeName: "rx", values: "40;70;35;65;40", dur: "3.5s", repeatCount: "indefinite" }),
128
+ /* @__PURE__ */ e("animate", { attributeName: "ry", values: "72;40;78;42;72", dur: "3.5s", repeatCount: "indefinite" })
129
+ ] }) }),
130
+ /* @__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: [
131
+ /* @__PURE__ */ e("animate", { attributeName: "rx", values: "78;48;82;45;78", dur: "4.5s", repeatCount: "indefinite" }),
132
+ /* @__PURE__ */ e("animate", { attributeName: "ry", values: "55;80;50;78;55", dur: "4.5s", repeatCount: "indefinite" })
133
+ ] }) }),
134
+ /* @__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: [
135
+ /* @__PURE__ */ e("animate", { attributeName: "r", values: "30;45;22;42;30", dur: "3.5s", repeatCount: "indefinite" }),
136
+ /* @__PURE__ */ e("animate", { attributeName: "opacity", values: "0.14;0.24;0.1;0.22;0.14", dur: "3.5s", repeatCount: "indefinite" })
137
+ ] }) })
138
+ ] }),
139
+ /* @__PURE__ */ e("circle", { cx: "120", cy: "120", r: "112", fill: "none", stroke: "currentColor", strokeOpacity: "0.07", strokeWidth: "0.6" })
140
+ ] });
141
+ }
142
+ function S() {
143
+ return /* @__PURE__ */ e("svg", { viewBox: "0 0 240 240", xmlns: "http://www.w3.org/2000/svg", className: "w-full h-full", children: [
144
+ /* @__PURE__ */ e("defs", { children: [
145
+ /* @__PURE__ */ e("clipPath", { id: "voth-c", children: /* @__PURE__ */ e("circle", { cx: "120", cy: "120", r: "112" }) }),
146
+ /* @__PURE__ */ e("filter", { id: "voth-f1", x: "-50%", y: "-50%", width: "200%", height: "200%", children: [
147
+ /* @__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" }) }),
148
+ /* @__PURE__ */ e("feDisplacementMap", { in: "SourceGraphic", in2: "n", scale: "28", xChannelSelector: "R", yChannelSelector: "G", result: "d" }),
149
+ /* @__PURE__ */ e("feGaussianBlur", { in: "d", stdDeviation: "15" })
150
+ ] }),
151
+ /* @__PURE__ */ e("filter", { id: "voth-f2", x: "-50%", y: "-50%", width: "200%", height: "200%", children: [
152
+ /* @__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" }) }),
153
+ /* @__PURE__ */ e("feDisplacementMap", { in: "SourceGraphic", in2: "n", scale: "24", xChannelSelector: "G", yChannelSelector: "R", result: "d" }),
154
+ /* @__PURE__ */ e("feGaussianBlur", { in: "d", stdDeviation: "14" })
155
+ ] }),
156
+ /* @__PURE__ */ e("filter", { id: "voth-f3", x: "-50%", y: "-50%", width: "200%", height: "200%", children: [
157
+ /* @__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" }) }),
158
+ /* @__PURE__ */ e("feDisplacementMap", { in: "SourceGraphic", in2: "n", scale: "20", xChannelSelector: "R", yChannelSelector: "B", result: "d" }),
159
+ /* @__PURE__ */ e("feGaussianBlur", { in: "d", stdDeviation: "13" })
160
+ ] }),
161
+ /* @__PURE__ */ e("filter", { id: "voth-gl", children: /* @__PURE__ */ e("feGaussianBlur", { stdDeviation: "10" }) })
162
+ ] }),
163
+ /* @__PURE__ */ e("g", { clipPath: "url(#voth-c)", children: [
164
+ /* @__PURE__ */ e("circle", { cx: "120", cy: "120", r: "112", fill: "currentColor", opacity: "0.08" }),
165
+ /* @__PURE__ */ e("g", { filter: "url(#voth-gl)", style: { mixBlendMode: "multiply" }, children: [
166
+ /* @__PURE__ */ e("circle", { cx: "120", cy: "120", r: "60", fill: "currentColor", opacity: "0.15", children: [
167
+ /* @__PURE__ */ e("animate", { attributeName: "r", values: "60;90;60", dur: "1.8s", repeatCount: "indefinite" }),
168
+ /* @__PURE__ */ e("animate", { attributeName: "opacity", values: "0.18;0.08;0.18", dur: "1.8s", repeatCount: "indefinite" })
169
+ ] }),
170
+ /* @__PURE__ */ e("circle", { cx: "120", cy: "120", r: "45", fill: "currentColor", opacity: "0.12", children: [
171
+ /* @__PURE__ */ e("animate", { attributeName: "r", values: "45;75;45", dur: "1.8s", repeatCount: "indefinite", begin: "0.3s" }),
172
+ /* @__PURE__ */ e("animate", { attributeName: "opacity", values: "0.15;0.06;0.15", dur: "1.8s", repeatCount: "indefinite", begin: "0.3s" })
173
+ ] })
174
+ ] }),
175
+ /* @__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: [
176
+ /* @__PURE__ */ e("animateTransform", { attributeName: "transform", type: "rotate", values: "0 120 120;360 120 120", dur: "14s", repeatCount: "indefinite" }),
177
+ /* @__PURE__ */ e("animate", { attributeName: "rx", values: "85;70;90;75;85", dur: "2.4s", repeatCount: "indefinite" }),
178
+ /* @__PURE__ */ e("animate", { attributeName: "ry", values: "65;80;60;78;65", dur: "2.4s", repeatCount: "indefinite" })
179
+ ] }) }),
180
+ /* @__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: [
181
+ /* @__PURE__ */ e("animateTransform", { attributeName: "transform", type: "rotate", values: "360 120 120;0 120 120", dur: "12s", repeatCount: "indefinite" }),
182
+ /* @__PURE__ */ e("animate", { attributeName: "rx", values: "60;78;55;72;60", dur: "2.4s", repeatCount: "indefinite" }),
183
+ /* @__PURE__ */ e("animate", { attributeName: "ry", values: "82;65;85;68;82", dur: "2.4s", repeatCount: "indefinite" })
184
+ ] }) }),
185
+ /* @__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: [
186
+ /* @__PURE__ */ e("animateTransform", { attributeName: "transform", type: "rotate", values: "0 120 120;360 120 120", dur: "10s", repeatCount: "indefinite" }),
187
+ /* @__PURE__ */ e("animate", { attributeName: "rx", values: "52;40;55;42;52", dur: "2s", repeatCount: "indefinite" }),
188
+ /* @__PURE__ */ e("animate", { attributeName: "ry", values: "38;52;35;50;38", dur: "2s", repeatCount: "indefinite" })
189
+ ] }) }),
190
+ /* @__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: [
191
+ /* @__PURE__ */ e("animateTransform", { attributeName: "transform", type: "rotate", values: "0 120 120;360 120 120", dur: "11s", repeatCount: "indefinite" }),
192
+ /* @__PURE__ */ e("animate", { attributeName: "ry", values: "22;38;22", dur: "1.8s", repeatCount: "indefinite" })
193
+ ] }) }),
194
+ /* @__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: [
195
+ /* @__PURE__ */ e("animateTransform", { attributeName: "transform", type: "rotate", values: "0 120 120;360 120 120", dur: "7s", repeatCount: "indefinite" }),
196
+ /* @__PURE__ */ e("animate", { attributeName: "rx", values: "38;28;42;30;38", dur: "2s", repeatCount: "indefinite" }),
197
+ /* @__PURE__ */ e("animate", { attributeName: "ry", values: "28;40;25;38;28", dur: "2s", repeatCount: "indefinite" })
198
+ ] }) }),
199
+ /* @__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: [
200
+ /* @__PURE__ */ e("animate", { attributeName: "r", values: "28;42;30;38;28", dur: "2s", repeatCount: "indefinite" }),
201
+ /* @__PURE__ */ e("animate", { attributeName: "opacity", values: "0.15;0.28;0.18;0.25;0.15", dur: "2s", repeatCount: "indefinite" })
202
+ ] }) })
203
+ ] }),
204
+ /* @__PURE__ */ e("circle", { cx: "120", cy: "120", r: "112", fill: "none", stroke: "currentColor", strokeOpacity: "0.08", strokeWidth: "0.6" })
205
+ ] });
206
+ }
207
+ function G() {
208
+ return /* @__PURE__ */ e("svg", { viewBox: "0 0 240 240", xmlns: "http://www.w3.org/2000/svg", className: "w-full h-full", children: [
209
+ /* @__PURE__ */ e("defs", { children: [
210
+ /* @__PURE__ */ e("clipPath", { id: "vot-c", children: /* @__PURE__ */ e("circle", { cx: "120", cy: "120", r: "112" }) }),
211
+ /* @__PURE__ */ e("filter", { id: "vot-f1", x: "-50%", y: "-50%", width: "200%", height: "200%", children: [
212
+ /* @__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" }) }),
213
+ /* @__PURE__ */ e("feDisplacementMap", { in: "SourceGraphic", in2: "n", scale: "35", xChannelSelector: "R", yChannelSelector: "G", result: "d" }),
214
+ /* @__PURE__ */ e("feGaussianBlur", { in: "d", stdDeviation: "8" })
215
+ ] }),
216
+ /* @__PURE__ */ e("filter", { id: "vot-f2", x: "-50%", y: "-50%", width: "200%", height: "200%", children: [
217
+ /* @__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" }) }),
218
+ /* @__PURE__ */ e("feDisplacementMap", { in: "SourceGraphic", in2: "n", scale: "30", xChannelSelector: "G", yChannelSelector: "R", result: "d" }),
219
+ /* @__PURE__ */ e("feGaussianBlur", { in: "d", stdDeviation: "7" })
220
+ ] }),
221
+ /* @__PURE__ */ e("filter", { id: "vot-f3", x: "-50%", y: "-50%", width: "200%", height: "200%", children: [
222
+ /* @__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" }) }),
223
+ /* @__PURE__ */ e("feDisplacementMap", { in: "SourceGraphic", in2: "n", scale: "28", xChannelSelector: "R", yChannelSelector: "B", result: "d" }),
224
+ /* @__PURE__ */ e("feGaussianBlur", { in: "d", stdDeviation: "7" })
225
+ ] }),
226
+ /* @__PURE__ */ e("filter", { id: "vot-gl", children: /* @__PURE__ */ e("feGaussianBlur", { stdDeviation: "7" }) })
227
+ ] }),
228
+ /* @__PURE__ */ e("g", { clipPath: "url(#vot-c)", children: [
229
+ /* @__PURE__ */ e("circle", { cx: "120", cy: "120", r: "112", fill: "currentColor", opacity: "0.08" }),
230
+ /* @__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: [
231
+ /* @__PURE__ */ e("animateTransform", { attributeName: "transform", type: "rotate", values: "0 120 120;360 120 120", dur: "8s", repeatCount: "indefinite" }),
232
+ /* @__PURE__ */ e("animate", { attributeName: "rx", values: "100;72;105;78;92;100", dur: "3.2s", repeatCount: "indefinite" }),
233
+ /* @__PURE__ */ e("animate", { attributeName: "ry", values: "80;100;72;95;82;80", dur: "3.2s", repeatCount: "indefinite" }),
234
+ /* @__PURE__ */ e("animate", { attributeName: "opacity", values: "0.38;0.24;0.4;0.26;0.36;0.38", dur: "3.2s", repeatCount: "indefinite" })
235
+ ] }) }),
236
+ /* @__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: [
237
+ /* @__PURE__ */ e("animateTransform", { attributeName: "transform", type: "rotate", values: "360 120 120;0 120 120", dur: "6s", repeatCount: "indefinite" }),
238
+ /* @__PURE__ */ e("animate", { attributeName: "rx", values: "85;105;70;98;80;85", dur: "2.8s", repeatCount: "indefinite" }),
239
+ /* @__PURE__ */ e("animate", { attributeName: "ry", values: "100;72;95;68;92;100", dur: "2.8s", repeatCount: "indefinite" }),
240
+ /* @__PURE__ */ e("animate", { attributeName: "opacity", values: "0.34;0.22;0.36;0.24;0.32;0.34", dur: "2.8s", repeatCount: "indefinite" })
241
+ ] }) }),
242
+ /* @__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: [
243
+ /* @__PURE__ */ e("animateTransform", { attributeName: "transform", type: "rotate", values: "0 120 120;360 120 120", dur: "5s", repeatCount: "indefinite" }),
244
+ /* @__PURE__ */ e("animate", { attributeName: "rx", values: "75;52;78;55;70;75", dur: "2.4s", repeatCount: "indefinite" }),
245
+ /* @__PURE__ */ e("animate", { attributeName: "ry", values: "60;80;55;76;62;60", dur: "2.4s", repeatCount: "indefinite" }),
246
+ /* @__PURE__ */ e("animate", { attributeName: "opacity", values: "0.36;0.24;0.38;0.26;0.34;0.36", dur: "2.4s", repeatCount: "indefinite" })
247
+ ] }) }),
248
+ /* @__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: [
249
+ /* @__PURE__ */ e("animateTransform", { attributeName: "transform", type: "rotate", values: "0 120 120;360 120 120", dur: "4s", repeatCount: "indefinite" }),
250
+ /* @__PURE__ */ e("animate", { attributeName: "ry", values: "32;52;28;48;35;32", dur: "2.6s", repeatCount: "indefinite" }),
251
+ /* @__PURE__ */ e("animate", { attributeName: "rx", values: "100;80;105;85;95;100", dur: "2.6s", repeatCount: "indefinite" })
252
+ ] }) }),
253
+ /* @__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: [
254
+ /* @__PURE__ */ e("animateTransform", { attributeName: "transform", type: "rotate", values: "360 120 120;0 120 120", dur: "5s", repeatCount: "indefinite" }),
255
+ /* @__PURE__ */ e("animate", { attributeName: "rx", values: "32;55;28;50;35;32", dur: "3s", repeatCount: "indefinite" }),
256
+ /* @__PURE__ */ e("animate", { attributeName: "ry", values: "100;75;105;80;95;100", dur: "3s", repeatCount: "indefinite" })
257
+ ] }) }),
258
+ /* @__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: [
259
+ /* @__PURE__ */ e("animateTransform", { attributeName: "transform", type: "rotate", values: "0 120 120;360 120 120", dur: "4.5s", repeatCount: "indefinite" }),
260
+ /* @__PURE__ */ e("animate", { attributeName: "rx", values: "55;38;58;40;50;55", dur: "2.2s", repeatCount: "indefinite" }),
261
+ /* @__PURE__ */ e("animate", { attributeName: "ry", values: "45;62;42;58;48;45", dur: "2.2s", repeatCount: "indefinite" }),
262
+ /* @__PURE__ */ e("animate", { attributeName: "opacity", values: "0.3;0.2;0.32;0.22;0.28;0.3", dur: "2.2s", repeatCount: "indefinite" })
263
+ ] }) }),
264
+ /* @__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: [
265
+ /* @__PURE__ */ e("animate", { attributeName: "r", values: "38;55;35;50;40;38", dur: "2.8s", repeatCount: "indefinite" }),
266
+ /* @__PURE__ */ e("animate", { attributeName: "opacity", values: "0.15;0.3;0.18;0.26;0.16;0.15", dur: "2.8s", repeatCount: "indefinite" })
267
+ ] }) })
268
+ ] }),
269
+ /* @__PURE__ */ e("circle", { cx: "120", cy: "120", r: "112", fill: "none", stroke: "currentColor", strokeOpacity: "0.08", strokeWidth: "0.6" })
270
+ ] });
271
+ }
272
+ function O({
273
+ state: i,
274
+ isMuted: r,
275
+ onEndCall: s,
276
+ onClose: o,
277
+ onToggleMute: d,
278
+ agentName: m = "Health Assist",
279
+ textColor: u = "white"
280
+ }) {
281
+ const [f, n] = y(!1);
282
+ if (i === t.VOICE_AGENT_STATE.ERROR)
283
+ return /* @__PURE__ */ e("div", { className: "flex-1 flex flex-col items-center justify-center bg-surface gap-4 p-8", children: [
284
+ /* @__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" }) }),
285
+ /* @__PURE__ */ e("div", { className: "text-center", children: [
286
+ /* @__PURE__ */ e("p", { className: "text-base font-semibold text-foreground", children: "Call Disconnected" }),
287
+ /* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground mt-1", children: "Something went wrong. Please try again." })
288
+ ] }),
289
+ /* @__PURE__ */ e(l, { onClick: o, variant: "outline", className: "mt-2", children: "Close" })
290
+ ] });
291
+ const p = () => {
292
+ if (r)
293
+ return "You are muted";
294
+ switch (i) {
295
+ case t.VOICE_AGENT_STATE.CONNECTING:
296
+ return `Please wait while we are
297
+ connecting to an AI agent...`;
298
+ case t.VOICE_AGENT_STATE.SPEAKING:
299
+ return `${m} is speaking...`;
300
+ case t.VOICE_AGENT_STATE.LISTENING:
301
+ return "You are speaking...";
302
+ case t.VOICE_AGENT_STATE.THINKING:
303
+ return "One moment please...";
304
+ case t.VOICE_AGENT_STATE.MUTED:
305
+ return "You are muted";
306
+ case t.VOICE_AGENT_STATE.DISCONNECTING:
307
+ return "Ending session...";
308
+ default:
309
+ return "Go ahead, I'm listening...";
310
+ }
311
+ }, a = i === t.VOICE_AGENT_STATE.SPEAKING || i === t.VOICE_AGENT_STATE.CONNECTING || i === t.VOICE_AGENT_STATE.DISCONNECTING;
312
+ return /* @__PURE__ */ e("div", { className: "flex-1 flex flex-col bg-surface relative", children: [
313
+ /* @__PURE__ */ e("style", { children: E }),
314
+ /* @__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" }) }),
315
+ /* @__PURE__ */ e("div", { className: "flex-1 flex flex-col items-center justify-center gap-5", children: [
316
+ /* @__PURE__ */ e("div", { className: "w-[200px] h-[200px] text-primary", children: /* @__PURE__ */ e(g, { state: i }) }),
317
+ /* @__PURE__ */ e("p", { className: "text-base text-center px-8 whitespace-pre-line leading-6 text-muted-foreground", children: p() })
318
+ ] }),
319
+ /* @__PURE__ */ e("div", { children: [
320
+ /* @__PURE__ */ e("div", { className: "border-t border-primary/15" }),
321
+ /* @__PURE__ */ e("div", { className: "py-5 bg-surface flex justify-center items-center gap-6", children: [
322
+ /* @__PURE__ */ e(
323
+ "button",
324
+ {
325
+ type: "button",
326
+ onClick: d,
327
+ disabled: a,
328
+ className: "voice-mic-btn",
329
+ "aria-label": r ? "Unmute" : "Mute",
330
+ style: {
331
+ opacity: a ? 0.5 : 1,
332
+ cursor: a ? "not-allowed" : "pointer",
333
+ background: a ? "hsl(var(--primary) / 0.4)" : r ? u === "black" ? "hsl(var(--black-700))" : "hsl(var(--white-700))" : "hsl(var(--primary))"
334
+ },
335
+ 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" })
336
+ }
337
+ ),
338
+ /* @__PURE__ */ e(
339
+ "button",
340
+ {
341
+ type: "button",
342
+ onClick: () => n(!0),
343
+ disabled: i === t.VOICE_AGENT_STATE.DISCONNECTING,
344
+ className: "voice-end-btn",
345
+ "aria-label": "Exit voice mode",
346
+ children: /* @__PURE__ */ e(v, { className: "w-5 h-5 text-white" })
347
+ }
348
+ )
349
+ ] })
350
+ ] }),
351
+ f && /* @__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: [
352
+ /* @__PURE__ */ e("p", { className: "text-base font-semibold text-foreground text-center", children: "Exit voice mode?" }),
353
+ /* @__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." }),
354
+ /* @__PURE__ */ e("div", { className: "flex flex-col w-full gap-2 mt-2", children: [
355
+ /* @__PURE__ */ e(
356
+ l,
357
+ {
358
+ onClick: () => {
359
+ n(!1), s?.();
360
+ },
361
+ className: "w-full bg-red-500 hover:bg-red-600 text-white",
362
+ children: "Exit and Go Back to Chat"
363
+ }
364
+ ),
365
+ /* @__PURE__ */ e(
366
+ l,
367
+ {
368
+ variant: "outline",
369
+ onClick: () => n(!1),
370
+ className: "w-full",
371
+ children: "Keep talking"
372
+ }
373
+ )
374
+ ] })
375
+ ] }) })
376
+ ] });
377
+ }
378
+ const E = `
379
+ .voice-mic-btn {
380
+ width: 56px;
381
+ height: 56px;
382
+ border-radius: 50%;
383
+ border: none;
384
+ display: flex;
385
+ align-items: center;
386
+ justify-content: center;
387
+ transition: all 0.2s ease;
388
+ box-shadow: 0 2px 10px hsl(var(--primary) / 0.3);
389
+ }
390
+ .voice-mic-btn:not(:disabled):hover {
391
+ transform: scale(1.06);
392
+ box-shadow: 0 4px 16px hsl(var(--primary) / 0.4);
393
+ }
394
+ .voice-mic-btn:not(:disabled):active {
395
+ transform: scale(0.95);
396
+ }
397
+
398
+ .voice-end-btn {
399
+ width: 48px;
400
+ height: 48px;
401
+ border-radius: 50%;
402
+ border: none;
403
+ display: flex;
404
+ align-items: center;
405
+ justify-content: center;
406
+ background: #ef4444;
407
+ cursor: pointer;
408
+ transition: all 0.2s ease;
409
+ box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
410
+ }
411
+ .voice-end-btn:hover {
412
+ background: #dc2626;
413
+ transform: scale(1.06);
414
+ box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
415
+ }
416
+ .voice-end-btn:active { transform: scale(0.95); }
417
+ .voice-end-btn:disabled { opacity: 0.5; cursor: not-allowed; }
418
+ `;
419
+ export {
420
+ O as default
421
+ };
@@ -0,0 +1,31 @@
1
+ function u(e) {
2
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
3
+ }
4
+ function c(e) {
5
+ if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
6
+ var n = e.default;
7
+ if (typeof n == "function") {
8
+ var t = function r() {
9
+ var o = !1;
10
+ try {
11
+ o = this instanceof r;
12
+ } catch {
13
+ }
14
+ return o ? Reflect.construct(n, arguments, this.constructor) : n.apply(this, arguments);
15
+ };
16
+ t.prototype = n.prototype;
17
+ } else t = {};
18
+ return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(r) {
19
+ var o = Object.getOwnPropertyDescriptor(e, r);
20
+ Object.defineProperty(t, r, o.get ? o : {
21
+ enumerable: !0,
22
+ get: function() {
23
+ return e[r];
24
+ }
25
+ });
26
+ }), t;
27
+ }
28
+ export {
29
+ c as a,
30
+ u as g
31
+ };