@eka-care/medassist-widget 0.1.93-dev.0 → 0.1.94-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-CVIEpN-E.js → medassist-widget-CardList-DmhtSxWX.js} +12 -12
- package/dist/{medassist-widget-DoctorCard-COZVtjSq.js → medassist-widget-DoctorCard-DZsmPwW9.js} +1 -1
- package/dist/medassist-widget-FeedbackModal-DLeKeddp.js +142 -0
- package/dist/{medassist-widget-FocusCarousel-BsLIZftX.js → medassist-widget-FocusCarousel-C8O7wJqq.js} +8 -8
- package/dist/{medassist-widget-MediaCard-DpQAFyNd.js → medassist-widget-MediaCard-D2I9ROf1.js} +7 -7
- package/dist/{medassist-widget-MultiSelect-BnExX-Ty.js → medassist-widget-MultiSelect-DQMRJKuC.js} +16 -16
- package/dist/medassist-widget-mood-angry-BQqxy8gg.js +10 -0
- package/dist/medassist-widget-mood-bad-BBDRkdRc.js +10 -0
- package/dist/medassist-widget-mood-happy-oLG7NUhq.js +9 -0
- package/dist/medassist-widget-mood-neutral-CbcKAQbC.js +10 -0
- package/dist/medassist-widget-mood-poor-t4w5iE4B.js +10 -0
- package/dist/medassist-widget.css +1 -1
- package/dist/medassist-widget.js +2943 -2847
- package/package.json +1 -1
package/dist/{medassist-widget-CardList-CVIEpN-E.js → medassist-widget-CardList-DmhtSxWX.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c, u as e,
|
|
1
|
+
import { c, u as e, l as M, v as w, r as b, s as C, w as z, B as x, t as S, d as $, A as j } from "./medassist-widget.js";
|
|
2
2
|
import { C as A } from "./medassist-widget-check-BaHLRs-2.js";
|
|
3
3
|
import { M as v } from "./medassist-widget-map-pin-Bx-5lPdC.js";
|
|
4
|
-
import { FocusCarousel as I } from "./medassist-widget-FocusCarousel-
|
|
4
|
+
import { FocusCarousel as I } from "./medassist-widget-FocusCarousel-C8O7wJqq.js";
|
|
5
5
|
const B = [
|
|
6
6
|
["path", { d: "M10 12h4", key: "a56b0p" }],
|
|
7
7
|
["path", { d: "M10 8h4", key: "1sr2af" }],
|
|
@@ -97,9 +97,9 @@ function _({
|
|
|
97
97
|
const {
|
|
98
98
|
title: l,
|
|
99
99
|
tags: o,
|
|
100
|
-
icon:
|
|
100
|
+
icon: h,
|
|
101
101
|
img: m,
|
|
102
|
-
description:
|
|
102
|
+
description: p,
|
|
103
103
|
banner_text: i,
|
|
104
104
|
items: u,
|
|
105
105
|
primary_cta: t,
|
|
@@ -113,7 +113,7 @@ function _({
|
|
|
113
113
|
return /* @__PURE__ */ e(S, { className: "w-full h-full flex flex-col overflow-hidden rounded-xl border border-black-200 dark:border-white-200 bg-elicitationBg text-card-foreground shadow-none", children: [
|
|
114
114
|
/* @__PURE__ */ e(M, { className: `flex flex-row items-center justify-between gap-3 p-3 ${g ? "bg-primary/[20%]" : ""}`, children: [
|
|
115
115
|
/* @__PURE__ */ e("div", { className: "min-w-0 flex-1 overflow-hidden", children: [
|
|
116
|
-
l ? /* @__PURE__ */ e(
|
|
116
|
+
l ? /* @__PURE__ */ e(w, { className: "text-base font-bold leading-tight tracking-tight truncate", children: l }) : null,
|
|
117
117
|
o ? /* @__PURE__ */ e("p", { className: "mt-1 text-sm text-muted-foreground truncate", children: o }) : null
|
|
118
118
|
] }),
|
|
119
119
|
g ? /* @__PURE__ */ e("div", { className: "shrink-0", children: /* @__PURE__ */ e(
|
|
@@ -123,10 +123,10 @@ function _({
|
|
|
123
123
|
alt: l ?? "profile",
|
|
124
124
|
className: "h-16 w-16 rounded-full object-cover border-2 border-background"
|
|
125
125
|
}
|
|
126
|
-
) }) :
|
|
126
|
+
) }) : h ? /* @__PURE__ */ e("div", { className: "shrink-0 text-muted-foreground", children: /* @__PURE__ */ e(y, { name: h, size: 24, className: "text-primary" }) }) : null
|
|
127
127
|
] }),
|
|
128
|
-
/* @__PURE__ */ e(
|
|
129
|
-
|
|
128
|
+
/* @__PURE__ */ e(b, { className: "flex-1 space-y-3 pt-3 overflow-hidden", children: [
|
|
129
|
+
p ? /* @__PURE__ */ e("div", { className: "text-sm text-foreground leading-snug prose prose-sm max-w-none prose-strong:font-semibold prose-p:my-0 break-words", children: /* @__PURE__ */ e(C, { children: p }) }) : null,
|
|
130
130
|
i ? /* @__PURE__ */ e("div", { className: "rounded-full px-4 py-2 text-center text-sm font-semibold bg-primary/15 text-primary truncate", children: i }) : null,
|
|
131
131
|
u?.length ? /* @__PURE__ */ e("div", { className: "flex flex-col gap-y-1", children: u.map((n, f) => /* @__PURE__ */ e(
|
|
132
132
|
"div",
|
|
@@ -188,18 +188,18 @@ function W({
|
|
|
188
188
|
className: l,
|
|
189
189
|
orientation: o = "vertical"
|
|
190
190
|
}) {
|
|
191
|
-
const [
|
|
191
|
+
const [h, m] = $(!1), p = j(!1), i = (a ?? []).filter((t) => !!t?.card_id);
|
|
192
192
|
if (!i.length)
|
|
193
193
|
return /* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground py-2", children: "No options available." });
|
|
194
194
|
const u = async (t) => {
|
|
195
|
-
|
|
195
|
+
p.current || (p.current = !0, m(!0), await d?.(t));
|
|
196
196
|
};
|
|
197
197
|
return o !== "horizontal" ? /* @__PURE__ */ e("div", { className: l ?? "flex flex-col gap-3 mt-3", children: i.map((t) => /* @__PURE__ */ e(
|
|
198
198
|
_,
|
|
199
199
|
{
|
|
200
200
|
card: t,
|
|
201
201
|
onSelect: u,
|
|
202
|
-
disabled: r ||
|
|
202
|
+
disabled: r || h
|
|
203
203
|
},
|
|
204
204
|
t.card_id
|
|
205
205
|
)) }) : /* @__PURE__ */ e(
|
|
@@ -211,7 +211,7 @@ function W({
|
|
|
211
211
|
{
|
|
212
212
|
card: i[t],
|
|
213
213
|
onSelect: u,
|
|
214
|
-
disabled: r ||
|
|
214
|
+
disabled: r || h
|
|
215
215
|
}
|
|
216
216
|
)
|
|
217
217
|
}
|
package/dist/{medassist-widget-DoctorCard-COZVtjSq.js → medassist-widget-DoctorCard-DZsmPwW9.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as M, d as h, A as L, y as E, u as e,
|
|
1
|
+
import { c as M, d as h, A as L, y as E, u as e, j as p, C as R, T as A, q as z, _ as re, k as ne, l as ie, m as le, n as se, o as oe, p as ce, S as G, r as de, I as me, s as he, B as v, t as pe } from "./medassist-widget.js";
|
|
2
2
|
import { C as ue } from "./medassist-widget-check-BaHLRs-2.js";
|
|
3
3
|
import { M as K } from "./medassist-widget-map-pin-Bx-5lPdC.js";
|
|
4
4
|
import { C as fe, a as xe } from "./medassist-widget-chevron-right-CKYbGWbY.js";
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { d as m, u as e, z as a, P as I, B as M } from "./medassist-widget.js";
|
|
2
|
+
const B = a(() => import("./medassist-widget-mood-angry-BQqxy8gg.js").then((t) => ({ default: t.MoodAngry }))), A = a(() => import("./medassist-widget-mood-bad-BBDRkdRc.js").then((t) => ({ default: t.MoodBad }))), O = a(() => import("./medassist-widget-mood-neutral-CbcKAQbC.js").then((t) => ({ default: t.MoodNeutral }))), C = a(() => import("./medassist-widget-mood-poor-t4w5iE4B.js").then((t) => ({ default: t.MoodPoor }))), L = a(() => import("./medassist-widget-mood-happy-oLG7NUhq.js").then((t) => ({ default: t.MoodHappy }))), P = [
|
|
3
|
+
{ label: "Took longer than expected", value: "took_longer" },
|
|
4
|
+
{ label: "Asking too many questions", value: "too_many_questions" },
|
|
5
|
+
{ label: "Irrelevant response", value: "irrelevant_response" },
|
|
6
|
+
{ label: "Other", value: "other" }
|
|
7
|
+
], _ = [
|
|
8
|
+
{ Icon: B, label: "Bad", score: 1 },
|
|
9
|
+
{ Icon: A, label: "Poor", score: 2 },
|
|
10
|
+
{ Icon: O, label: "Okay", score: 3 },
|
|
11
|
+
{ Icon: C, label: "Good", score: 4 },
|
|
12
|
+
{ Icon: L, label: "Great!", score: 5 }
|
|
13
|
+
];
|
|
14
|
+
function j(t, o) {
|
|
15
|
+
return t <= 2 ? o.form?.detractors ?? [] : t === 3 ? o.form?.passives ?? [] : o.form?.promoters ?? [];
|
|
16
|
+
}
|
|
17
|
+
function D({
|
|
18
|
+
isOpen: t,
|
|
19
|
+
config: o,
|
|
20
|
+
onSubmit: p,
|
|
21
|
+
onSkip: h,
|
|
22
|
+
onDontShowAgain: g
|
|
23
|
+
}) {
|
|
24
|
+
const s = o.type === "nps", [n, N] = m(null), [i, f] = m(/* @__PURE__ */ new Set()), [d, v] = m(!1), x = s && n !== null ? j(n, o) : o.form?.default?.length ? o.form.default : P, y = (r) => {
|
|
25
|
+
f((c) => {
|
|
26
|
+
const l = new Set(c);
|
|
27
|
+
return l.has(r) ? l.delete(r) : l.add(r), l;
|
|
28
|
+
});
|
|
29
|
+
}, w = (r) => {
|
|
30
|
+
N(r), f(/* @__PURE__ */ new Set());
|
|
31
|
+
}, k = i?.size > 0 || n !== null || d, S = () => {
|
|
32
|
+
s && n !== null && p([...i], n), d && g?.(), s || p([...i]), h();
|
|
33
|
+
};
|
|
34
|
+
return t ? /* @__PURE__ */ e(
|
|
35
|
+
"div",
|
|
36
|
+
{
|
|
37
|
+
className: "absolute inset-0 z-[60] flex items-center justify-center",
|
|
38
|
+
style: { backgroundColor: "rgba(0, 0, 0, 0.7)" },
|
|
39
|
+
children: /* @__PURE__ */ e("div", { className: "flex flex-col items-end gap-1 mx-4 w-full max-w-sm", children: [
|
|
40
|
+
/* @__PURE__ */ e(
|
|
41
|
+
"button",
|
|
42
|
+
{
|
|
43
|
+
onClick: h,
|
|
44
|
+
className: "text-sm text-white/70 hover:text-white transition-colors bg-transparent border-none cursor-pointer p-0 pr-1",
|
|
45
|
+
children: "Skip"
|
|
46
|
+
}
|
|
47
|
+
),
|
|
48
|
+
/* @__PURE__ */ e("div", { className: "bg-elicitationBg rounded-2xl shadow-xl p-5 w-full flex flex-col gap-4 border border-muted-foreground/20", children: [
|
|
49
|
+
/* @__PURE__ */ e("div", { className: "flex flex-col gap-1", children: [
|
|
50
|
+
o.title && /* @__PURE__ */ e("h2", { className: "text-base font-semibold text-foreground text-center", children: o.title }),
|
|
51
|
+
o.description && /* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground leading-4 text-center", children: o.description })
|
|
52
|
+
] }),
|
|
53
|
+
s && /* @__PURE__ */ e("div", { className: "flex items-center justify-between gap-1", children: _.map(({ Icon: r, label: c, score: l }) => {
|
|
54
|
+
const u = n === l, b = n !== null && !u;
|
|
55
|
+
return /* @__PURE__ */ e(
|
|
56
|
+
"button",
|
|
57
|
+
{
|
|
58
|
+
onClick: () => w(l),
|
|
59
|
+
title: c,
|
|
60
|
+
className: "flex flex-col items-center gap-1.5 flex-1 cursor-pointer bg-transparent border-none p-0",
|
|
61
|
+
children: [
|
|
62
|
+
/* @__PURE__ */ e(
|
|
63
|
+
"div",
|
|
64
|
+
{
|
|
65
|
+
className: `rounded-xl p-1 transition-all ${u ? "border-2 border-primary bg-primary/15" : "border-2 border-transparent"} ${b ? "opacity-50" : ""}`,
|
|
66
|
+
style: u ? { filter: "brightness(1.25)" } : void 0,
|
|
67
|
+
children: /* @__PURE__ */ e(I, { fallback: /* @__PURE__ */ e("div", { className: "w-10 h-10 rounded-xl bg-surface-secondary" }), children: /* @__PURE__ */ e(r, {}) })
|
|
68
|
+
}
|
|
69
|
+
),
|
|
70
|
+
/* @__PURE__ */ e(
|
|
71
|
+
"span",
|
|
72
|
+
{
|
|
73
|
+
className: `text-[10px] leading-none transition-colors ${u ? "text-foreground font-medium" : b ? "text-muted-foreground/50" : "text-muted-foreground"}`,
|
|
74
|
+
children: c
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
l
|
|
80
|
+
);
|
|
81
|
+
}) }),
|
|
82
|
+
(!s || n !== null) && x.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-col gap-2", children: x.map((r) => /* @__PURE__ */ e(
|
|
83
|
+
"div",
|
|
84
|
+
{
|
|
85
|
+
onClick: () => y(r.value),
|
|
86
|
+
className: `rounded-lg border px-3 py-2.5 text-sm text-center cursor-pointer transition-colors ${i.has(r.value) ? "border-primary text-primary bg-elicitationBg" : "border-primary/25 text-foreground/60 bg-elicitationBg"}`,
|
|
87
|
+
children: r.label
|
|
88
|
+
},
|
|
89
|
+
r.value
|
|
90
|
+
)) }),
|
|
91
|
+
k && /* @__PURE__ */ e(
|
|
92
|
+
M,
|
|
93
|
+
{
|
|
94
|
+
onClick: S,
|
|
95
|
+
className: "w-full bg-primary hover:bg-primary/90 text-primary-foreground",
|
|
96
|
+
children: "Submit & exit"
|
|
97
|
+
}
|
|
98
|
+
),
|
|
99
|
+
/* @__PURE__ */ e("label", { className: "flex items-center gap-1.5 cursor-pointer select-none", children: [
|
|
100
|
+
/* @__PURE__ */ e(
|
|
101
|
+
"div",
|
|
102
|
+
{
|
|
103
|
+
className: "relative w-3 h-3 shrink-0",
|
|
104
|
+
onClick: () => v((r) => !r),
|
|
105
|
+
children: /* @__PURE__ */ e(
|
|
106
|
+
"div",
|
|
107
|
+
{
|
|
108
|
+
className: `w-3 h-3 rounded-[3px] border transition-colors flex items-center justify-center ${d ? "border-primary bg-primary" : "border-muted-foreground bg-transparent"}`,
|
|
109
|
+
children: d && /* @__PURE__ */ e(
|
|
110
|
+
"svg",
|
|
111
|
+
{
|
|
112
|
+
width: "7",
|
|
113
|
+
height: "6",
|
|
114
|
+
viewBox: "0 0 10 8",
|
|
115
|
+
fill: "none",
|
|
116
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
117
|
+
children: /* @__PURE__ */ e(
|
|
118
|
+
"path",
|
|
119
|
+
{
|
|
120
|
+
d: "M1 3.5L3.8 6.5L9 1",
|
|
121
|
+
stroke: "white",
|
|
122
|
+
strokeWidth: "1.8",
|
|
123
|
+
strokeLinecap: "round",
|
|
124
|
+
strokeLinejoin: "round"
|
|
125
|
+
}
|
|
126
|
+
)
|
|
127
|
+
}
|
|
128
|
+
)
|
|
129
|
+
}
|
|
130
|
+
)
|
|
131
|
+
}
|
|
132
|
+
),
|
|
133
|
+
/* @__PURE__ */ e("span", { className: "text-xs text-muted-foreground", children: "Don't show again" })
|
|
134
|
+
] })
|
|
135
|
+
] })
|
|
136
|
+
] })
|
|
137
|
+
}
|
|
138
|
+
) : null;
|
|
139
|
+
}
|
|
140
|
+
export {
|
|
141
|
+
D as default
|
|
142
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as l, A as d, y as N, _ as R, u as r,
|
|
1
|
+
import { d as l, A as d, y as N, _ as R, u as r, j as z } from "./medassist-widget.js";
|
|
2
2
|
import { C as A, a as M } from "./medassist-widget-chevron-right-CKYbGWbY.js";
|
|
3
3
|
const v = 12, T = 0.76, I = 3;
|
|
4
4
|
function k({ count: s, renderItem: h, className: u }) {
|
|
5
|
-
const [n, x] = l(0), [
|
|
5
|
+
const [n, x] = l(0), [o, m] = l(0), [y, g] = l(() => Math.min(I, s)), b = d(null), f = d(0), p = d(0);
|
|
6
6
|
if (N(() => {
|
|
7
7
|
g((t) => Math.max(t, Math.min(n + 2, s)));
|
|
8
8
|
}, [n, s]), R(() => {
|
|
@@ -12,11 +12,11 @@ function k({ count: s, renderItem: h, className: u }) {
|
|
|
12
12
|
const e = new ResizeObserver(([a]) => m(a.contentRect.width));
|
|
13
13
|
return e.observe(t), () => e.disconnect();
|
|
14
14
|
}, []), s === 0) return null;
|
|
15
|
-
const
|
|
15
|
+
const i = (t) => x(Math.max(0, Math.min(s - 1, t)));
|
|
16
16
|
if (s === 1)
|
|
17
17
|
return /* @__PURE__ */ r("div", { className: u ?? "mt-3", children: h(0, !0) });
|
|
18
|
-
const c =
|
|
19
|
-
return /* @__PURE__ */ r("div", { ref: b, className: z("mt-3 w-full", u), children:
|
|
18
|
+
const c = o * T, C = (o - c) / 2, w = o > 0 ? C - n * (c + v) : 0;
|
|
19
|
+
return /* @__PURE__ */ r("div", { ref: b, className: z("mt-3 w-full", u), children: o > 0 && /* Relative wrapper so buttons sit outside overflow but share the same stacking context */
|
|
20
20
|
/* @__PURE__ */ r("div", { className: "relative w-full", children: [
|
|
21
21
|
/* @__PURE__ */ r(
|
|
22
22
|
"div",
|
|
@@ -27,7 +27,7 @@ function k({ count: s, renderItem: h, className: u }) {
|
|
|
27
27
|
},
|
|
28
28
|
onTouchEnd: (t) => {
|
|
29
29
|
const e = t.changedTouches[0].clientX - f.current, a = t.changedTouches[0].clientY - p.current;
|
|
30
|
-
Math.abs(e) > Math.abs(a) && Math.abs(e) > 50 &&
|
|
30
|
+
Math.abs(e) > Math.abs(a) && Math.abs(e) > 50 && i(n + (e < 0 ? 1 : -1));
|
|
31
31
|
},
|
|
32
32
|
children: /* @__PURE__ */ r(
|
|
33
33
|
"div",
|
|
@@ -68,7 +68,7 @@ function k({ count: s, renderItem: h, className: u }) {
|
|
|
68
68
|
{
|
|
69
69
|
type: "button",
|
|
70
70
|
"aria-label": "Previous",
|
|
71
|
-
onClick: () =>
|
|
71
|
+
onClick: () => i(n - 1),
|
|
72
72
|
className: "absolute left-0 top-1/2 -translate-y-1/2 z-10 h-10 w-10 p-2 flex items-center justify-center rounded-full bg-background/90 shadow-md border border-primary text-primary hover:bg-muted transition-colors",
|
|
73
73
|
children: /* @__PURE__ */ r(A, { size: 18 })
|
|
74
74
|
}
|
|
@@ -78,7 +78,7 @@ function k({ count: s, renderItem: h, className: u }) {
|
|
|
78
78
|
{
|
|
79
79
|
type: "button",
|
|
80
80
|
"aria-label": "Next",
|
|
81
|
-
onClick: () =>
|
|
81
|
+
onClick: () => i(n + 1),
|
|
82
82
|
className: "absolute right-0 top-1/2 -translate-y-1/2 z-10 h-10 w-10 p-2 flex items-center justify-center rounded-full bg-background/90 shadow-md border border-primary text-primary hover:bg-muted transition-colors",
|
|
83
83
|
children: /* @__PURE__ */ r(M, { size: 18 })
|
|
84
84
|
}
|
package/dist/{medassist-widget-MediaCard-DpQAFyNd.js → medassist-widget-MediaCard-D2I9ROf1.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as m, A as u, u as e,
|
|
1
|
+
import { c as m, A as u, u as e, t as h, r as f, S as p, B as g } from "./medassist-widget.js";
|
|
2
2
|
const x = [
|
|
3
3
|
[
|
|
4
4
|
"path",
|
|
@@ -32,7 +32,7 @@ async function k(a) {
|
|
|
32
32
|
t.href = o.toDataURL("image/png"), t.download = `screenshot-${Date.now()}.png`, t.click();
|
|
33
33
|
}
|
|
34
34
|
function _({ card: a }) {
|
|
35
|
-
const { title: n, description: o, tags_text: t, banner_text: l, action:
|
|
35
|
+
const { title: n, description: o, tags_text: t, banner_text: l, action: c, link: r } = a, s = u(null), d = r && !i(r);
|
|
36
36
|
return /* @__PURE__ */ e("div", { className: "flex flex-col gap-2", children: [
|
|
37
37
|
/* @__PURE__ */ e(
|
|
38
38
|
h,
|
|
@@ -49,7 +49,7 @@ function _({ card: a }) {
|
|
|
49
49
|
d && /* @__PURE__ */ e("div", { className: "shrink-0 h-24 w-24 rounded-lg overflow-hidden border border-border", children: /* @__PURE__ */ e(
|
|
50
50
|
"img",
|
|
51
51
|
{
|
|
52
|
-
src:
|
|
52
|
+
src: r,
|
|
53
53
|
alt: n ?? "media",
|
|
54
54
|
className: "h-full w-full object-cover"
|
|
55
55
|
}
|
|
@@ -62,7 +62,7 @@ function _({ card: a }) {
|
|
|
62
62
|
] })
|
|
63
63
|
}
|
|
64
64
|
),
|
|
65
|
-
|
|
65
|
+
c && /* @__PURE__ */ e("div", { className: "flex justify-end", children: /* @__PURE__ */ e(
|
|
66
66
|
g,
|
|
67
67
|
{
|
|
68
68
|
type: "button",
|
|
@@ -70,11 +70,11 @@ function _({ card: a }) {
|
|
|
70
70
|
size: "sm",
|
|
71
71
|
className: "rounded-md px-5 gap-1.5",
|
|
72
72
|
onClick: () => {
|
|
73
|
-
|
|
73
|
+
c === "screenshot" ? k(s) : c === "download" && (r && i(r) ? v(r) : N(s));
|
|
74
74
|
},
|
|
75
75
|
children: [
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
c === "screenshot" ? /* @__PURE__ */ e(w, { className: "h-4 w-4" }) : /* @__PURE__ */ e(y, { className: "h-4 w-4" }),
|
|
77
|
+
c === "screenshot" ? "Screenshot" : "Download"
|
|
78
78
|
]
|
|
79
79
|
}
|
|
80
80
|
) })
|
package/dist/{medassist-widget-MultiSelect-BnExX-Ty.js → medassist-widget-MultiSelect-DQMRJKuC.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as x, y as E, q as
|
|
1
|
+
import { A as x, y as E, q as W, d as _, R as X, b as O, T as Y, D as y, e as J, u as l, f as S, g as Q, S as D, h as T, i as M, j as N } from "./medassist-widget.js";
|
|
2
2
|
import { C as Z } from "./medassist-widget-check-BaHLRs-2.js";
|
|
3
|
-
var V =
|
|
3
|
+
var V = X[" useInsertionEffect ".trim().toString()] || O;
|
|
4
4
|
function ee({
|
|
5
5
|
prop: e,
|
|
6
6
|
defaultProp: r,
|
|
@@ -22,7 +22,7 @@ function ee({
|
|
|
22
22
|
b.current = d;
|
|
23
23
|
}, [d, a]);
|
|
24
24
|
}
|
|
25
|
-
const v =
|
|
25
|
+
const v = W(
|
|
26
26
|
(b) => {
|
|
27
27
|
if (d) {
|
|
28
28
|
const h = te(b) ? b(e) : b;
|
|
@@ -74,7 +74,7 @@ function oe(e) {
|
|
|
74
74
|
c(void 0);
|
|
75
75
|
}, [e]), r;
|
|
76
76
|
}
|
|
77
|
-
var
|
|
77
|
+
var w = "Checkbox", [ce] = J(w), [se, z] = ce(w);
|
|
78
78
|
function ie(e) {
|
|
79
79
|
const {
|
|
80
80
|
__scopeCheckbox: r,
|
|
@@ -93,11 +93,11 @@ function ie(e) {
|
|
|
93
93
|
prop: c,
|
|
94
94
|
defaultProp: s ?? !1,
|
|
95
95
|
onChange: t,
|
|
96
|
-
caller:
|
|
97
|
-
}), [C, n] = _(null), [m, u] = _(null), f = x(!1),
|
|
96
|
+
caller: w
|
|
97
|
+
}), [C, n] = _(null), [m, u] = _(null), f = x(!1), I = C ? !!i || !!C.closest("form") : (
|
|
98
98
|
// We set this to true by default so that events bubble to forms without JS (SSR)
|
|
99
99
|
!0
|
|
100
|
-
),
|
|
100
|
+
), P = {
|
|
101
101
|
checked: p,
|
|
102
102
|
disabled: o,
|
|
103
103
|
setChecked: g,
|
|
@@ -109,7 +109,7 @@ function ie(e) {
|
|
|
109
109
|
hasConsumerStoppedPropagationRef: f,
|
|
110
110
|
required: v,
|
|
111
111
|
defaultChecked: k(s) ? !1 : s,
|
|
112
|
-
isFormControl:
|
|
112
|
+
isFormControl: I,
|
|
113
113
|
bubbleInput: m,
|
|
114
114
|
setBubbleInput: u
|
|
115
115
|
};
|
|
@@ -117,8 +117,8 @@ function ie(e) {
|
|
|
117
117
|
se,
|
|
118
118
|
{
|
|
119
119
|
scope: r,
|
|
120
|
-
...
|
|
121
|
-
children: ae(h) ? h(
|
|
120
|
+
...P,
|
|
121
|
+
children: ae(h) ? h(P) : a
|
|
122
122
|
}
|
|
123
123
|
);
|
|
124
124
|
}
|
|
@@ -212,7 +212,7 @@ var A = y(
|
|
|
212
212
|
);
|
|
213
213
|
}
|
|
214
214
|
);
|
|
215
|
-
A.displayName =
|
|
215
|
+
A.displayName = w;
|
|
216
216
|
var F = "CheckboxIndicator", H = y(
|
|
217
217
|
(e, r) => {
|
|
218
218
|
const { __scopeCheckbox: c, forceMount: a, ...s } = e, o = z(F, c);
|
|
@@ -253,13 +253,13 @@ var L = "CheckboxBubbleInput", U = y(
|
|
|
253
253
|
E(() => {
|
|
254
254
|
const f = p;
|
|
255
255
|
if (!f) return;
|
|
256
|
-
const
|
|
257
|
-
|
|
256
|
+
const I = window.HTMLInputElement.prototype, B = Object.getOwnPropertyDescriptor(
|
|
257
|
+
I,
|
|
258
258
|
"checked"
|
|
259
|
-
).set,
|
|
259
|
+
).set, j = !s.current;
|
|
260
260
|
if (n !== o && B) {
|
|
261
|
-
const
|
|
262
|
-
f.indeterminate = k(o), B.call(f, k(o) ? !1 : o), f.dispatchEvent(
|
|
261
|
+
const K = new Event("click", { bubbles: j });
|
|
262
|
+
f.indeterminate = k(o), B.call(f, k(o) ? !1 : o), f.dispatchEvent(K);
|
|
263
263
|
}
|
|
264
264
|
}, [p, n, o, s]);
|
|
265
265
|
const u = x(k(o) ? !1 : o);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { u as t } from "./medassist-widget.js";
|
|
2
|
+
const r = ({ className: o }) => /* @__PURE__ */ t("svg", { width: "40", height: "40", viewBox: "0 0 40 40", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: o, children: /* @__PURE__ */ t("g", { opacity: "0.8", children: [
|
|
3
|
+
/* @__PURE__ */ t("path", { d: "M20 40C31.0457 40 40 31.0457 40 20C40 8.9543 31.0457 0 20 0C8.9543 0 0 8.9543 0 20C0 31.0457 8.9543 40 20 40Z", fill: "#E4572E" }),
|
|
4
|
+
/* @__PURE__ */ t("path", { d: "M13.9132 18.6955C15.1138 18.6955 16.0871 17.7222 16.0871 16.5216C16.0871 15.321 15.1138 14.3477 13.9132 14.3477C12.7126 14.3477 11.7393 15.321 11.7393 16.5216C11.7393 17.7222 12.7126 18.6955 13.9132 18.6955Z", fill: "#1F1300" }),
|
|
5
|
+
/* @__PURE__ */ t("path", { d: "M26.087 18.6955C27.2876 18.6955 28.2609 17.7222 28.2609 16.5216C28.2609 15.321 27.2876 14.3477 26.087 14.3477C24.8864 14.3477 23.9131 15.321 23.9131 16.5216C23.9131 17.7222 24.8864 18.6955 26.087 18.6955Z", fill: "#1F1300" }),
|
|
6
|
+
/* @__PURE__ */ t("path", { d: "M11.3047 28.6956C17.1018 25.2173 22.8989 25.2173 28.696 28.6956", stroke: "#1F1300", strokeWidth: "1.95652", strokeLinecap: "round" })
|
|
7
|
+
] }) });
|
|
8
|
+
export {
|
|
9
|
+
r as MoodAngry
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { u as t } from "./medassist-widget.js";
|
|
2
|
+
const C = ({ className: o }) => /* @__PURE__ */ t("svg", { width: "40", height: "40", viewBox: "0 0 40 40", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: o, children: /* @__PURE__ */ t("g", { opacity: "0.8", children: [
|
|
3
|
+
/* @__PURE__ */ t("path", { d: "M20 40C31.0457 40 40 31.0457 40 20C40 8.9543 31.0457 0 20 0C8.9543 0 0 8.9543 0 20C0 31.0457 8.9543 40 20 40Z", fill: "#E48F2E" }),
|
|
4
|
+
/* @__PURE__ */ t("path", { d: "M13.9132 17.8263C15.1138 17.8263 16.0871 16.853 16.0871 15.6524C16.0871 14.4518 15.1138 13.4785 13.9132 13.4785C12.7126 13.4785 11.7393 14.4518 11.7393 15.6524C11.7393 16.853 12.7126 17.8263 13.9132 17.8263Z", fill: "#1F1300" }),
|
|
5
|
+
/* @__PURE__ */ t("path", { d: "M26.087 17.8263C27.2876 17.8263 28.2609 16.853 28.2609 15.6524C28.2609 14.4518 27.2876 13.4785 26.087 13.4785C24.8864 13.4785 23.9131 14.4518 23.9131 15.6524C23.9131 16.853 24.8864 17.8263 26.087 17.8263Z", fill: "#1F1300" }),
|
|
6
|
+
/* @__PURE__ */ t("path", { d: "M12.1738 27.826C17.3912 25.5072 22.6086 25.5072 27.826 27.826", stroke: "#1F1300", strokeWidth: "1.95652", strokeLinecap: "round" })
|
|
7
|
+
] }) });
|
|
8
|
+
export {
|
|
9
|
+
C as MoodBad
|
|
10
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { u as t } from "./medassist-widget.js";
|
|
2
|
+
const e = ({ className: o }) => /* @__PURE__ */ t("svg", { width: "40", height: "40", viewBox: "0 0 40 40", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: o, children: /* @__PURE__ */ t("g", { opacity: "0.8", children: [
|
|
3
|
+
/* @__PURE__ */ t("path", { d: "M20 40C31.0457 40 40 31.0457 40 20C40 8.9543 31.0457 0 20 0C8.9543 0 0 8.9543 0 20C0 31.0457 8.9543 40 20 40Z", fill: "#19BD68" }),
|
|
4
|
+
/* @__PURE__ */ t("path", { d: "M10.4355 14.7831C12.7544 12.4642 15.0732 12.4642 17.3921 14.7831M22.6095 14.7831C24.9283 12.4642 27.2471 12.4642 29.566 14.7831", stroke: "#1F1300", strokeWidth: "1.95652", strokeLinecap: "round" }),
|
|
5
|
+
/* @__PURE__ */ t("path", { d: "M9.56445 23.4785C16.521 29.8553 23.4775 29.8553 30.434 23.4785", stroke: "#1F1300", strokeWidth: "2.34783", strokeLinecap: "round" })
|
|
6
|
+
] }) });
|
|
7
|
+
export {
|
|
8
|
+
e as MoodHappy
|
|
9
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { u as t } from "./medassist-widget.js";
|
|
2
|
+
const r = ({ className: o }) => /* @__PURE__ */ t("svg", { width: "40", height: "40", viewBox: "0 0 40 40", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: o, children: /* @__PURE__ */ t("g", { opacity: "0.8", children: [
|
|
3
|
+
/* @__PURE__ */ t("path", { d: "M20 40C31.0457 40 40 31.0457 40 20C40 8.9543 31.0457 0 20 0C8.9543 0 0 8.9543 0 20C0 31.0457 8.9543 40 20 40Z", fill: "#EEC301" }),
|
|
4
|
+
/* @__PURE__ */ t("path", { d: "M13.9132 17.8263C15.1138 17.8263 16.0871 16.853 16.0871 15.6524C16.0871 14.4518 15.1138 13.4785 13.9132 13.4785C12.7126 13.4785 11.7393 14.4518 11.7393 15.6524C11.7393 16.853 12.7126 17.8263 13.9132 17.8263Z", fill: "#1F1300" }),
|
|
5
|
+
/* @__PURE__ */ t("path", { d: "M26.087 17.8263C27.2876 17.8263 28.2609 16.853 28.2609 15.6524C28.2609 14.4518 27.2876 13.4785 26.087 13.4785C24.8864 13.4785 23.9131 14.4518 23.9131 15.6524C23.9131 16.853 24.8864 17.8263 26.087 17.8263Z", fill: "#1F1300" }),
|
|
6
|
+
/* @__PURE__ */ t("path", { d: "M12.6084 26.9561H27.391", stroke: "#1F1300", strokeWidth: "1.95652", strokeLinecap: "round" })
|
|
7
|
+
] }) });
|
|
8
|
+
export {
|
|
9
|
+
r as MoodNeutral
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { u as t } from "./medassist-widget.js";
|
|
2
|
+
const r = ({ className: o }) => /* @__PURE__ */ t("svg", { width: "40", height: "40", viewBox: "0 0 40 40", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: o, children: /* @__PURE__ */ t("g", { opacity: "0.8", children: [
|
|
3
|
+
/* @__PURE__ */ t("path", { d: "M20 40C31.0457 40 40 31.0457 40 20C40 8.9543 31.0457 0 20 0C8.9543 0 0 8.9543 0 20C0 31.0457 8.9543 40 20 40Z", fill: "#9FD042" }),
|
|
4
|
+
/* @__PURE__ */ t("path", { d: "M13.9132 17.8263C15.1138 17.8263 16.0871 16.853 16.0871 15.6524C16.0871 14.4518 15.1138 13.4785 13.9132 13.4785C12.7126 13.4785 11.7393 14.4518 11.7393 15.6524C11.7393 16.853 12.7126 17.8263 13.9132 17.8263Z", fill: "#1F1300" }),
|
|
5
|
+
/* @__PURE__ */ t("path", { d: "M26.087 17.8263C27.2876 17.8263 28.2609 16.853 28.2609 15.6524C28.2609 14.4518 27.2876 13.4785 26.087 13.4785C24.8864 13.4785 23.9131 14.4518 23.9131 15.6524C23.9131 16.853 24.8864 17.8263 26.087 17.8263Z", fill: "#1F1300" }),
|
|
6
|
+
/* @__PURE__ */ t("path", { d: "M12.6084 25.2168C17.5359 26.9559 22.4635 26.9559 27.391 25.2168", stroke: "#1F1300", strokeWidth: "1.95652", strokeLinecap: "round" })
|
|
7
|
+
] }) });
|
|
8
|
+
export {
|
|
9
|
+
r as MoodPoor
|
|
10
|
+
};
|