@eka-care/medassist-widget 0.1.104 → 0.1.105-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/{medassist-widget-CardList-ERXsOZEA.js → medassist-widget-CardList-CYHOG9Tn.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c, u as e, k as M,
|
|
1
|
+
import { c, u as e, k as M, w, p as b, r as C, x as z, B as g, 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
4
|
import { FocusCarousel as I } from "./medassist-widget-FocusCarousel-BsLIZftX.js";
|
|
@@ -109,14 +109,14 @@ function _({
|
|
|
109
109
|
let f = !1;
|
|
110
110
|
a?.primary_cta?.tool_result && (f = !0), d?.({ message: n.text || n.title, selectedCard: a?.title, selectedComponent: a, selected_id: a.card_id, ...f ? { tool_result: a.primary_cta?.tool_result } : {} });
|
|
111
111
|
}
|
|
112
|
-
},
|
|
112
|
+
}, x = !!m;
|
|
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
|
-
/* @__PURE__ */ e(M, { className: `flex flex-row items-center justify-between gap-3 p-3 ${
|
|
114
|
+
/* @__PURE__ */ e(M, { className: `flex flex-row items-center justify-between gap-3 p-3 ${x ? "bg-primary/[20%]" : ""}`, children: [
|
|
115
115
|
/* @__PURE__ */ e("div", { className: "min-w-0 flex-1 overflow-hidden", children: [
|
|
116
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
|
+
x ? /* @__PURE__ */ e("div", { className: "shrink-0", children: /* @__PURE__ */ e(
|
|
120
120
|
"img",
|
|
121
121
|
{
|
|
122
122
|
src: m,
|
|
@@ -149,7 +149,7 @@ function _({
|
|
|
149
149
|
] }),
|
|
150
150
|
t?.title || s?.title ? /* @__PURE__ */ e(z, { className: "flex justify-center flex-wrap gap-2 pt-0", children: [
|
|
151
151
|
t && /* @__PURE__ */ e(
|
|
152
|
-
|
|
152
|
+
g,
|
|
153
153
|
{
|
|
154
154
|
type: "button",
|
|
155
155
|
variant: "default",
|
|
@@ -164,7 +164,7 @@ function _({
|
|
|
164
164
|
}
|
|
165
165
|
),
|
|
166
166
|
s && /* @__PURE__ */ e(
|
|
167
|
-
|
|
167
|
+
g,
|
|
168
168
|
{
|
|
169
169
|
type: "button",
|
|
170
170
|
variant: "outline",
|
package/dist/{medassist-widget-DoctorCard-B6r2ba2Q.js → medassist-widget-DoctorCard-DH9Bk806.js}
RENAMED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { c as k, d as h, A as R, y as S, u as e, i as f, C as X, T as A, q, _ as de, j as he, k as me, l as pe, m as fe, n as ue, o as xe, S as Z, p as ge, I as be, r as ye, B as w, s as ve, t as we } from "./medassist-widget.js";
|
|
2
|
-
import { C as
|
|
1
|
+
import { c as k, d as h, A as R, y as S, u as e, i as f, C as X, T as A, q, _ as de, j as he, k as me, l as pe, m as fe, n as ue, o as xe, S as Z, p as ge, I as be, r as ye, B as w, s as ve, t as we, v as ke } from "./medassist-widget.js";
|
|
2
|
+
import { C as Ne } from "./medassist-widget-check-BaHLRs-2.js";
|
|
3
3
|
import { M as D } from "./medassist-widget-map-pin-Bx-5lPdC.js";
|
|
4
|
-
import { C as
|
|
5
|
-
const
|
|
4
|
+
import { C as Ce, a as _e } from "./medassist-widget-chevron-right-CKYbGWbY.js";
|
|
5
|
+
const $e = [
|
|
6
6
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
7
7
|
["path", { d: "m12 5 7 7-7 7", key: "xquz4c" }]
|
|
8
|
-
], ee = k("arrow-right",
|
|
9
|
-
const
|
|
8
|
+
], ee = k("arrow-right", $e);
|
|
9
|
+
const Se = [
|
|
10
10
|
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
11
11
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
12
12
|
["path", { d: "M21 13V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8", key: "3spt84" }],
|
|
13
13
|
["path", { d: "M3 10h18", key: "8toen8" }],
|
|
14
14
|
["path", { d: "m17 22 5-5", key: "1k6ppv" }],
|
|
15
15
|
["path", { d: "m17 17 5 5", key: "p7ous7" }]
|
|
16
|
-
],
|
|
17
|
-
const
|
|
16
|
+
], Me = k("calendar-x-2", Se);
|
|
17
|
+
const Be = [
|
|
18
18
|
["path", { d: "M12 6v6l4 2", key: "mmk7yg" }],
|
|
19
19
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]
|
|
20
|
-
],
|
|
21
|
-
const
|
|
20
|
+
], Ae = k("clock", Be);
|
|
21
|
+
const He = [
|
|
22
22
|
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
23
23
|
["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
|
|
24
24
|
["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
|
|
25
|
-
],
|
|
26
|
-
const
|
|
25
|
+
], je = k("ellipsis", He);
|
|
26
|
+
const Le = [
|
|
27
27
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
28
28
|
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
29
29
|
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
30
|
-
],
|
|
31
|
-
const
|
|
30
|
+
], Ie = k("external-link", Le);
|
|
31
|
+
const ze = [
|
|
32
32
|
["path", { d: "m5 8 6 6", key: "1wu5hv" }],
|
|
33
33
|
["path", { d: "m4 14 6-6 2-3", key: "1k1g8d" }],
|
|
34
34
|
["path", { d: "M2 5h12", key: "or177f" }],
|
|
35
35
|
["path", { d: "M7 2h1", key: "1t2jsx" }],
|
|
36
36
|
["path", { d: "m22 22-5-10-5 10", key: "don7ne" }],
|
|
37
37
|
["path", { d: "M14 18h6", key: "1m8k6r" }]
|
|
38
|
-
],
|
|
39
|
-
const
|
|
38
|
+
], Ee = k("languages", ze);
|
|
39
|
+
const Oe = [
|
|
40
40
|
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
41
41
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
42
|
-
],
|
|
43
|
-
function
|
|
42
|
+
], Ve = k("search", Oe);
|
|
43
|
+
function Te({
|
|
44
44
|
value: l,
|
|
45
45
|
onValueChange: a,
|
|
46
46
|
placeholder: m = "Select an option",
|
|
@@ -136,7 +136,7 @@ function Ve({
|
|
|
136
136
|
},
|
|
137
137
|
children: [
|
|
138
138
|
/* @__PURE__ */ e("span", { className: "flex-1 text-left min-w-0 break-words line-clamp-2", children: o.label }),
|
|
139
|
-
g && /* @__PURE__ */ e("span", { className: "absolute right-3 flex size-4 items-center justify-center shrink-0 pointer-events-none", children: /* @__PURE__ */ e(
|
|
139
|
+
g && /* @__PURE__ */ e("span", { className: "absolute right-3 flex size-4 items-center justify-center shrink-0 pointer-events-none", children: /* @__PURE__ */ e(Ne, { className: "size-4 text-foreground" }) })
|
|
140
140
|
]
|
|
141
141
|
},
|
|
142
142
|
o.value
|
|
@@ -148,11 +148,11 @@ function Ve({
|
|
|
148
148
|
}
|
|
149
149
|
function te({ date: l }) {
|
|
150
150
|
return /* @__PURE__ */ e("div", { className: "flex flex-col items-center justify-center gap-3 pt-5 pb-4", children: [
|
|
151
|
-
/* @__PURE__ */ e("div", { className: "flex h-16 w-16 items-center justify-center rounded-full bg-black-100 dark:bg-white-100", children: /* @__PURE__ */ e(
|
|
152
|
-
/* @__PURE__ */ e("p", { className: "text-sm font-medium text-text-secondary text-center", children: `No slots available ${l && `on ${l}` || ""}` })
|
|
151
|
+
/* @__PURE__ */ e("div", { className: "flex h-16 w-16 items-center justify-center rounded-full bg-black-100 dark:bg-white-100", children: /* @__PURE__ */ e(Me, { className: "h-7 w-7 text-text-secondary", "aria-hidden": !0 }) }),
|
|
152
|
+
/* @__PURE__ */ e("p", { className: "text-sm font-medium text-text-secondary text-center", children: `No slots available ${l && `on ${ke(l)}` || ""}` })
|
|
153
153
|
] });
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function Ke({ doctor: l, doctorDetails: a, onSelect: m, disabled: p, isActive: H = !0 }) {
|
|
156
156
|
const M = A(() => {
|
|
157
157
|
if (a?.hospitals?.[0]?.hospital_id)
|
|
158
158
|
return a?.hospitals?.[0]?.hospital_id;
|
|
@@ -272,7 +272,7 @@ function Pe({ doctor: l, doctorDetails: a, onSelect: m, disabled: p, isActive: H
|
|
|
272
272
|
rel: "noreferrer",
|
|
273
273
|
"aria-label": "View profile",
|
|
274
274
|
className: "inline-block align-middle ml-2 text-primary hover:text-primary/70 transition-colors",
|
|
275
|
-
children: /* @__PURE__ */ e(
|
|
275
|
+
children: /* @__PURE__ */ e(Ie, { className: "h-3.5 w-3.5 inline", "aria-hidden": !0 })
|
|
276
276
|
}
|
|
277
277
|
)
|
|
278
278
|
] }),
|
|
@@ -295,15 +295,15 @@ function Pe({ doctor: l, doctorDetails: a, onSelect: m, disabled: p, isActive: H
|
|
|
295
295
|
/* @__PURE__ */ e(ge, { className: "px-3 py-2", children: [
|
|
296
296
|
/* @__PURE__ */ e("div", { className: "grid gap-1 pb-2 border-b border-border-subtle", children: [
|
|
297
297
|
a.timings && /* @__PURE__ */ e("div", { className: "flex items-start gap-2 min-w-0", children: [
|
|
298
|
-
/* @__PURE__ */ e(
|
|
298
|
+
/* @__PURE__ */ e(Ae, { className: "h-3.5 w-3.5 text-primary mt-0.5 flex-shrink-0", "aria-hidden": !0 }),
|
|
299
299
|
/* @__PURE__ */ e("span", { className: "text-text-secondary text-xs line-clamp-1 min-w-0", children: a.timings })
|
|
300
300
|
] }),
|
|
301
301
|
a.languages && /* @__PURE__ */ e("div", { className: "flex items-center gap-2 min-w-0", children: [
|
|
302
|
-
/* @__PURE__ */ e(
|
|
302
|
+
/* @__PURE__ */ e(Ee, { className: "h-3.5 w-3.5 text-primary flex-shrink-0", "aria-hidden": !0 }),
|
|
303
303
|
/* @__PURE__ */ e("span", { className: "text-text-secondary text-xs line-clamp-1 min-w-0", children: a.languages })
|
|
304
304
|
] }),
|
|
305
305
|
a.hospitals?.length > 1 && c ? /* @__PURE__ */ e(
|
|
306
|
-
|
|
306
|
+
Te,
|
|
307
307
|
{
|
|
308
308
|
options: a.hospitals.map((t) => ({ value: t.hospital_id, label: t.name || "" })),
|
|
309
309
|
placeholder: "Select Hospital",
|
|
@@ -338,7 +338,7 @@ function Pe({ doctor: l, doctorDetails: a, onSelect: m, disabled: p, isActive: H
|
|
|
338
338
|
"aria-expanded": P,
|
|
339
339
|
className: "mt-0.5 flex items-center gap-1 text-[11px] font-semibold text-primary hover:text-primary/80 transition-colors",
|
|
340
340
|
children: [
|
|
341
|
-
/* @__PURE__ */ e(
|
|
341
|
+
/* @__PURE__ */ e(je, { className: "h-3.5 w-3.5", "aria-hidden": !0 }),
|
|
342
342
|
P ? "View less" : "View more"
|
|
343
343
|
]
|
|
344
344
|
}
|
|
@@ -363,7 +363,7 @@ function Pe({ doctor: l, doctorDetails: a, onSelect: m, disabled: p, isActive: H
|
|
|
363
363
|
disabled: p || !oe,
|
|
364
364
|
"aria-label": "Previous 3 days",
|
|
365
365
|
className: "h-12 w-6 flex-shrink-0 rounded-lg border-border bg-surface text-primary hover:bg-black-100 dark:hover:bg-white-100 hover:text-primary disabled:opacity-50",
|
|
366
|
-
children: /* @__PURE__ */ e(
|
|
366
|
+
children: /* @__PURE__ */ e(Ce, { className: "h-4 w-4" })
|
|
367
367
|
}
|
|
368
368
|
),
|
|
369
369
|
/* @__PURE__ */ e("div", { className: "flex-1 grid grid-cols-3 gap-1 min-w-0", children: se.map((t, r) => {
|
|
@@ -434,7 +434,7 @@ function Pe({ doctor: l, doctorDetails: a, onSelect: m, disabled: p, isActive: H
|
|
|
434
434
|
disabled: p,
|
|
435
435
|
"aria-label": "Next 3 days",
|
|
436
436
|
className: "h-12 w-6 flex-shrink-0 rounded-lg border-border bg-surface text-primary hover:bg-black-100 dark:hover:bg-white-100 hover:text-primary disabled:opacity-50",
|
|
437
|
-
children: /* @__PURE__ */ e(
|
|
437
|
+
children: /* @__PURE__ */ e(_e, { className: "h-4 w-4" })
|
|
438
438
|
}
|
|
439
439
|
)
|
|
440
440
|
] }),
|
|
@@ -520,7 +520,7 @@ function Pe({ doctor: l, doctorDetails: a, onSelect: m, disabled: p, isActive: H
|
|
|
520
520
|
className: `w-full h-10 gap-2 bg-primary text-primary-foreground hover:bg-primary/90 disabled:opacity-60 shadow-sm font-semibold ${I ? "" : " mt-2"}`,
|
|
521
521
|
children: [
|
|
522
522
|
b?.title || "Book appointment",
|
|
523
|
-
/* @__PURE__ */ e(
|
|
523
|
+
/* @__PURE__ */ e(Ve, { className: "h-4 w-4", "aria-hidden": !0 })
|
|
524
524
|
]
|
|
525
525
|
}
|
|
526
526
|
)
|
|
@@ -542,5 +542,5 @@ function Pe({ doctor: l, doctorDetails: a, onSelect: m, disabled: p, isActive: H
|
|
|
542
542
|
] }) : null;
|
|
543
543
|
}
|
|
544
544
|
export {
|
|
545
|
-
|
|
545
|
+
Ke as DoctorCard
|
|
546
546
|
};
|
package/dist/medassist-widget.js
CHANGED
|
@@ -10748,7 +10748,10 @@ const ul = (e) => Object.fromEntries(
|
|
|
10748
10748
|
), Dm = (e) => e ? e.split(" ").map((t) => t[0]).slice(0, 2).join("").toUpperCase() : "DR", Fm = (e) => {
|
|
10749
10749
|
const t = new Date(e), n = t.toLocaleDateString(void 0, { weekday: "short" }), r = t.toLocaleDateString(void 0, { day: "2-digit" }), o = t.toLocaleDateString(void 0, { month: "short" });
|
|
10750
10750
|
return { weekday: n, dayNum: r, month: o };
|
|
10751
|
-
}, Um = (e
|
|
10751
|
+
}, Um = (e) => {
|
|
10752
|
+
const t = new Date(e);
|
|
10753
|
+
return isNaN(t.getTime()) ? e : t.toLocaleDateString("en-GB", { day: "numeric", month: "long", year: "numeric" });
|
|
10754
|
+
}, Vm = (e, t) => {
|
|
10752
10755
|
const n = new Date(e);
|
|
10753
10756
|
return n.setUTCDate(n.getUTCDate() + t), n.toISOString().slice(0, 10);
|
|
10754
10757
|
}, Vh = (e = [], t = []) => {
|
|
@@ -12182,9 +12185,9 @@ const sm = $e(
|
|
|
12182
12185
|
), am = $e(
|
|
12183
12186
|
() => import("./medassist-widget-FocusCarousel-BsLIZftX.js").then((e) => ({ default: e.FocusCarousel }))
|
|
12184
12187
|
), lm = $e(
|
|
12185
|
-
() => import("./medassist-widget-DoctorCard-
|
|
12188
|
+
() => import("./medassist-widget-DoctorCard-DH9Bk806.js").then((e) => ({ default: e.DoctorCard }))
|
|
12186
12189
|
), cm = $e(
|
|
12187
|
-
() => import("./medassist-widget-CardList-
|
|
12190
|
+
() => import("./medassist-widget-CardList-CYHOG9Tn.js").then((e) => ({ default: e.CardList }))
|
|
12188
12191
|
), dm = $e(
|
|
12189
12192
|
() => import("./medassist-widget-MediaCard-yhz2Z0ZQ.js").then((e) => ({ default: e.MediaCard }))
|
|
12190
12193
|
);
|
|
@@ -13323,10 +13326,11 @@ export {
|
|
|
13323
13326
|
de as q,
|
|
13324
13327
|
eo as r,
|
|
13325
13328
|
Cm as renderMedAssist,
|
|
13326
|
-
|
|
13329
|
+
Vm as s,
|
|
13327
13330
|
Gt as t,
|
|
13328
13331
|
a as u,
|
|
13329
|
-
|
|
13330
|
-
|
|
13332
|
+
Um as v,
|
|
13333
|
+
xu as w,
|
|
13334
|
+
Ru as x,
|
|
13331
13335
|
z as y
|
|
13332
13336
|
};
|