@alfadocs/ui-kit 0.30.1 → 0.30.2
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/_chunks/{booking-Bw9eOU4k.js → booking-CBaSujVP.js} +496 -464
- package/dist/_chunks/{patient-search-DuSoGG2t.js → patient-search-ZpHN-pgJ.js} +520 -475
- package/dist/_chunks/{reviews-panel-CFttsfuC.js → reviews-panel-D-zjPKFL.js} +198 -178
- package/dist/agent-catalog.json +1 -1
- package/dist/components/booking/booking-types.d.ts +16 -0
- package/dist/components/booking/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/reviews-panel/reviews-panel.d.ts +8 -0
- package/dist/index.js +3 -3
- package/package.json +1 -1
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { jsx as a, jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { A as
|
|
6
|
-
import { B as
|
|
1
|
+
import { jsx as a, jsxs as y } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as de, useRef as N, useEffect as V, useMemo as X, useImperativeHandle as ce, useState as W, useCallback as z, useId as le } from "react";
|
|
3
|
+
import { c as T } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as j } from "react-i18next";
|
|
5
|
+
import { A as se } from "./autocomplete-CUh0f7Dj.js";
|
|
6
|
+
import { B as ue } from "./button-DD_0Xdmr.js";
|
|
7
7
|
import { C as M } from "./card-DKTMLVrw.js";
|
|
8
|
-
import { S as
|
|
9
|
-
import { A as
|
|
10
|
-
import { D as
|
|
11
|
-
import { u as
|
|
12
|
-
import { S as
|
|
13
|
-
import { X as
|
|
14
|
-
import { c as
|
|
15
|
-
import { M as
|
|
16
|
-
import { S as
|
|
17
|
-
import { C as
|
|
8
|
+
import { S as fe } from "./slider-CfEzeseL.js";
|
|
9
|
+
import { A as Z } from "./alert-ywPR59NE.js";
|
|
10
|
+
import { D as F } from "./dropdown-menu-DZxwF23X.js";
|
|
11
|
+
import { u as pe } from "./registry-C9nwlNyL.js";
|
|
12
|
+
import { S as re } from "./search-BonnQsHv.js";
|
|
13
|
+
import { X as ne } from "./x-CCcI3eJp.js";
|
|
14
|
+
import { c as me } from "./createLucideIcon-CrFbzy84.js";
|
|
15
|
+
import { M as he } from "./map-pin-B8STOPMJ.js";
|
|
16
|
+
import { S as ve } from "./stethoscope-DT5qCW8Y.js";
|
|
17
|
+
import { C as ge } from "./chevron-down-BX_NP2Yh.js";
|
|
18
18
|
/**
|
|
19
19
|
* @license lucide-react v1.8.0 - ISC
|
|
20
20
|
*
|
|
21
21
|
* This source code is licensed under the ISC license.
|
|
22
22
|
* See the LICENSE file in the root directory of this source tree.
|
|
23
23
|
*/
|
|
24
|
-
const
|
|
24
|
+
const be = [
|
|
25
25
|
["line", { x1: "2", x2: "5", y1: "12", y2: "12", key: "bvdh0s" }],
|
|
26
26
|
["line", { x1: "19", x2: "22", y1: "12", y2: "12", key: "1tbv5k" }],
|
|
27
27
|
["line", { x1: "12", x2: "12", y1: "2", y2: "5", key: "11lu5j" }],
|
|
28
28
|
["line", { x1: "12", x2: "12", y1: "19", y2: "22", key: "x3vr5v" }],
|
|
29
29
|
["circle", { cx: "12", cy: "12", r: "7", key: "fim9np" }],
|
|
30
30
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
31
|
-
],
|
|
31
|
+
], xe = me("locate-fixed", be), ye = {
|
|
32
32
|
id: "patient-search",
|
|
33
33
|
capabilities: ["navigate", "view_change"],
|
|
34
34
|
state: {
|
|
@@ -70,7 +70,7 @@ const xe = [
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
};
|
|
73
|
-
function
|
|
73
|
+
function _(e, s) {
|
|
74
74
|
if (typeof window > "u") return;
|
|
75
75
|
const t = window.track;
|
|
76
76
|
try {
|
|
@@ -78,20 +78,20 @@ function w(e, s) {
|
|
|
78
78
|
} catch {
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
const
|
|
81
|
+
const A = [
|
|
82
82
|
"today",
|
|
83
83
|
"tomorrow",
|
|
84
84
|
"this_week",
|
|
85
85
|
"anytime"
|
|
86
|
-
],
|
|
87
|
-
function
|
|
86
|
+
], O = [1, 5, 10, 25, 50], Y = 5, ie = 200;
|
|
87
|
+
function we(e) {
|
|
88
88
|
let s = 0, t = Number.POSITIVE_INFINITY;
|
|
89
|
-
return
|
|
90
|
-
const v = Math.abs(
|
|
91
|
-
v < t && (t = v, s =
|
|
89
|
+
return O.forEach((i, p) => {
|
|
90
|
+
const v = Math.abs(i - e);
|
|
91
|
+
v < t && (t = v, s = p);
|
|
92
92
|
}), s;
|
|
93
93
|
}
|
|
94
|
-
const
|
|
94
|
+
const _e = T(
|
|
95
95
|
"ds:flex ds:w-full ds:flex-col ds:text-[var(--foreground)]",
|
|
96
96
|
{
|
|
97
97
|
variants: {
|
|
@@ -109,61 +109,61 @@ function H({
|
|
|
109
109
|
value: e,
|
|
110
110
|
onChange: s,
|
|
111
111
|
loadObjects: t,
|
|
112
|
-
onObjectSelect:
|
|
113
|
-
inputRef:
|
|
112
|
+
onObjectSelect: i,
|
|
113
|
+
inputRef: p
|
|
114
114
|
}) {
|
|
115
|
-
var
|
|
116
|
-
const { t: v } =
|
|
117
|
-
|
|
118
|
-
var
|
|
119
|
-
((
|
|
120
|
-
}, [(
|
|
121
|
-
const
|
|
122
|
-
async (
|
|
115
|
+
var d, f, m, b;
|
|
116
|
+
const { t: v } = j(), [g, u] = W(((d = e.object) == null ? void 0 : d.label) ?? ""), c = N((f = e.object) == null ? void 0 : f.value);
|
|
117
|
+
V(() => {
|
|
118
|
+
var h, o, S;
|
|
119
|
+
((h = e.object) == null ? void 0 : h.value) !== c.current && (c.current = (o = e.object) == null ? void 0 : o.value, u(((S = e.object) == null ? void 0 : S.label) ?? ""));
|
|
120
|
+
}, [(m = e.object) == null ? void 0 : m.value, (b = e.object) == null ? void 0 : b.label]);
|
|
121
|
+
const r = z(
|
|
122
|
+
async (h, { signal: o }) => await t(h, { signal: o }),
|
|
123
123
|
[t]
|
|
124
|
-
), l = (
|
|
125
|
-
const
|
|
126
|
-
value:
|
|
127
|
-
label:
|
|
128
|
-
description:
|
|
129
|
-
__payload:
|
|
124
|
+
), l = (h) => {
|
|
125
|
+
const o = {
|
|
126
|
+
value: h.value,
|
|
127
|
+
label: h.label,
|
|
128
|
+
description: h.description,
|
|
129
|
+
__payload: h.__payload
|
|
130
130
|
};
|
|
131
|
-
u(
|
|
132
|
-
value:
|
|
133
|
-
type:
|
|
134
|
-
}),
|
|
135
|
-
},
|
|
131
|
+
u(o.label), c.current = o.value, s({ ...e, object: o }), _("patient_search_object_selected", {
|
|
132
|
+
value: o.value,
|
|
133
|
+
type: o.__payload && typeof o.__payload == "object" ? o.__payload.type : void 0
|
|
134
|
+
}), i == null || i(o);
|
|
135
|
+
}, n = N(!1);
|
|
136
136
|
return /* @__PURE__ */ a(
|
|
137
137
|
"div",
|
|
138
138
|
{
|
|
139
139
|
"data-component": "patient-search-field",
|
|
140
140
|
"data-field": "who",
|
|
141
141
|
onFocus: () => {
|
|
142
|
-
|
|
142
|
+
n.current || (n.current = !0, _("patient_search_object_focused"));
|
|
143
143
|
},
|
|
144
|
-
onBlur: (
|
|
145
|
-
|
|
144
|
+
onBlur: (h) => {
|
|
145
|
+
h.currentTarget && !h.currentTarget.contains(h.relatedTarget) && (n.current = !1);
|
|
146
146
|
},
|
|
147
147
|
children: /* @__PURE__ */ a(
|
|
148
|
-
|
|
148
|
+
se,
|
|
149
149
|
{
|
|
150
|
-
ref:
|
|
150
|
+
ref: p,
|
|
151
151
|
value: g,
|
|
152
|
-
onChange: (
|
|
153
|
-
u(
|
|
152
|
+
onChange: (h) => {
|
|
153
|
+
u(h), e.object && h !== e.object.label && (c.current = void 0, s({ ...e, object: void 0 }));
|
|
154
154
|
},
|
|
155
155
|
onSelect: l,
|
|
156
|
-
loadOptions:
|
|
157
|
-
debounceMs:
|
|
156
|
+
loadOptions: r,
|
|
157
|
+
debounceMs: ie,
|
|
158
158
|
placeholder: v("patientSearch.who.placeholder"),
|
|
159
159
|
"aria-label": v("patientSearch.who.label"),
|
|
160
|
-
startAdornment: /* @__PURE__ */ a(
|
|
160
|
+
startAdornment: /* @__PURE__ */ a(re, { "aria-hidden": "true" })
|
|
161
161
|
}
|
|
162
162
|
)
|
|
163
163
|
}
|
|
164
164
|
);
|
|
165
165
|
}
|
|
166
|
-
const
|
|
166
|
+
const ee = [
|
|
167
167
|
"ds:inline-flex ds:items-center ds:justify-center",
|
|
168
168
|
"ds:size-8 ds:rounded-[var(--radius-sm)]",
|
|
169
169
|
"ds:text-[color:var(--muted-foreground)] ds:hover:text-[color:var(--primary)]",
|
|
@@ -179,86 +179,75 @@ function $({
|
|
|
179
179
|
value: e,
|
|
180
180
|
onChange: s,
|
|
181
181
|
loadPlaces: t,
|
|
182
|
-
onPlaceSelect:
|
|
183
|
-
inputRef:
|
|
184
|
-
defaultRadiusKm: v =
|
|
182
|
+
onPlaceSelect: i,
|
|
183
|
+
inputRef: p,
|
|
184
|
+
defaultRadiusKm: v = Y,
|
|
185
185
|
reverseGeocode: g
|
|
186
186
|
}) {
|
|
187
|
-
var
|
|
188
|
-
const { t: u } =
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
);
|
|
194
|
-
B(() => {
|
|
195
|
-
var d, b, k;
|
|
196
|
-
((d = e.place) == null ? void 0 : d.value) !== l.current && (l.current = (b = e.place) == null ? void 0 : b.value, n(((k = e.place) == null ? void 0 : k.label) ?? ""));
|
|
197
|
-
}, [(E = e.place) == null ? void 0 : E.value, (V = e.place) == null ? void 0 : V.label]);
|
|
187
|
+
var P, B, C, E;
|
|
188
|
+
const { t: u } = j(), [c, r] = W(((P = e.place) == null ? void 0 : P.label) ?? ""), l = N((B = e.place) == null ? void 0 : B.value), n = e.geo ? "granted" : "pristine", [d, f] = W(n);
|
|
189
|
+
V(() => {
|
|
190
|
+
var x, w, k;
|
|
191
|
+
((x = e.place) == null ? void 0 : x.value) !== l.current && (l.current = (w = e.place) == null ? void 0 : w.value, r(((k = e.place) == null ? void 0 : k.label) ?? ""));
|
|
192
|
+
}, [(C = e.place) == null ? void 0 : C.value, (E = e.place) == null ? void 0 : E.label]);
|
|
198
193
|
const m = z(
|
|
199
|
-
async (
|
|
194
|
+
async (x, { signal: w }) => await t(x, { signal: w }),
|
|
200
195
|
[t]
|
|
201
|
-
),
|
|
202
|
-
const
|
|
203
|
-
value:
|
|
204
|
-
label:
|
|
205
|
-
lat:
|
|
206
|
-
lng:
|
|
196
|
+
), b = (x) => {
|
|
197
|
+
const w = {
|
|
198
|
+
value: x.value,
|
|
199
|
+
label: x.label,
|
|
200
|
+
lat: x.lat,
|
|
201
|
+
lng: x.lng
|
|
207
202
|
};
|
|
208
|
-
|
|
209
|
-
},
|
|
203
|
+
r(w.label), l.current = w.value, s({ ...e, place: w, geo: void 0 }), d === "granted" && f("pristine"), _("patient_search_place_selected", { value: w.value }), i == null || i(w);
|
|
204
|
+
}, h = () => {
|
|
210
205
|
if (typeof window > "u" || !(navigator != null && navigator.geolocation)) {
|
|
211
|
-
f("denied"),
|
|
206
|
+
f("denied"), _("patient_search_geo_denied", { reason: "unsupported" });
|
|
212
207
|
return;
|
|
213
208
|
}
|
|
214
|
-
f("requesting"),
|
|
215
|
-
async (
|
|
216
|
-
const { latitude:
|
|
217
|
-
let
|
|
209
|
+
f("requesting"), _("patient_search_place_focused"), navigator.geolocation.getCurrentPosition(
|
|
210
|
+
async (x) => {
|
|
211
|
+
const { latitude: w, longitude: k } = x.coords;
|
|
212
|
+
let R;
|
|
218
213
|
try {
|
|
219
|
-
|
|
214
|
+
R = await (g == null ? void 0 : g(w, k));
|
|
220
215
|
} catch {
|
|
221
|
-
|
|
216
|
+
R = void 0;
|
|
222
217
|
}
|
|
223
|
-
const
|
|
224
|
-
value: `geo:${
|
|
225
|
-
label:
|
|
226
|
-
lat:
|
|
218
|
+
const K = v, I = R ?? u("patientSearch.geo.fallbackLabel"), oe = {
|
|
219
|
+
value: `geo:${w.toFixed(4)},${k.toFixed(4)}`,
|
|
220
|
+
label: I,
|
|
221
|
+
lat: w,
|
|
227
222
|
lng: k
|
|
228
223
|
};
|
|
229
224
|
s({
|
|
230
225
|
...e,
|
|
231
|
-
place:
|
|
226
|
+
place: oe,
|
|
232
227
|
geo: {
|
|
233
|
-
lat:
|
|
228
|
+
lat: w,
|
|
234
229
|
lng: k,
|
|
235
|
-
radiusKm:
|
|
236
|
-
label:
|
|
230
|
+
radiusKm: K,
|
|
231
|
+
label: I
|
|
237
232
|
}
|
|
238
|
-
}), f("granted"),
|
|
233
|
+
}), f("granted"), _("patient_search_geo_granted", { radiusKm: K });
|
|
239
234
|
},
|
|
240
235
|
() => {
|
|
241
|
-
f("denied"),
|
|
236
|
+
f("denied"), _("patient_search_geo_denied", { reason: "user" });
|
|
242
237
|
},
|
|
243
238
|
{ enableHighAccuracy: !1, maximumAge: 6e4, timeout: 1e4 }
|
|
244
239
|
);
|
|
245
|
-
},
|
|
246
|
-
s({ ...e, geo: void 0, place: void 0 }),
|
|
247
|
-
},
|
|
248
|
-
|
|
249
|
-
e.geo && s({ ...e, geo: { ...e.geo, radiusKm: b } }), w("patient_search_radius_changed", { radiusKm: b });
|
|
250
|
-
}, G = (d) => {
|
|
251
|
-
const b = L[Math.round(d)] ?? v;
|
|
252
|
-
return u("patientSearch.geo.radiusFormat", { km: b });
|
|
253
|
-
}, R = o === "granted" && !!e.geo, Q = o === "requesting", C = o === "denied", P = S(!1), I = C ? null : /* @__PURE__ */ _("span", { className: "ds:absolute ds:end-[var(--spacing-xs)] ds:top-1/2 ds:-translate-y-1/2 ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
254
|
-
R ? /* @__PURE__ */ a(
|
|
240
|
+
}, o = () => {
|
|
241
|
+
s({ ...e, geo: void 0, place: void 0 }), r(""), l.current = void 0, f("pristine");
|
|
242
|
+
}, S = d === "granted" && !!e.geo, G = d === "requesting", L = d === "denied", D = N(!1), Q = L || !!!g ? null : /* @__PURE__ */ y("span", { className: "ds:absolute ds:end-[var(--spacing-xs)] ds:top-1/2 ds:-translate-y-1/2 ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
243
|
+
S ? /* @__PURE__ */ a(
|
|
255
244
|
"button",
|
|
256
245
|
{
|
|
257
246
|
type: "button",
|
|
258
247
|
"aria-label": u("patientSearch.geo.clear"),
|
|
259
|
-
onClick:
|
|
260
|
-
className:
|
|
261
|
-
children: /* @__PURE__ */ a(
|
|
248
|
+
onClick: o,
|
|
249
|
+
className: ee,
|
|
250
|
+
children: /* @__PURE__ */ a(ne, { "aria-hidden": "true", className: "ds:size-4" })
|
|
262
251
|
}
|
|
263
252
|
) : null,
|
|
264
253
|
/* @__PURE__ */ a(
|
|
@@ -266,43 +255,43 @@ function $({
|
|
|
266
255
|
{
|
|
267
256
|
type: "button",
|
|
268
257
|
"aria-label": u("patientSearch.geo.cta"),
|
|
269
|
-
"aria-pressed":
|
|
270
|
-
disabled:
|
|
271
|
-
onClick:
|
|
272
|
-
className:
|
|
273
|
-
children: /* @__PURE__ */ a(
|
|
258
|
+
"aria-pressed": S || void 0,
|
|
259
|
+
disabled: G,
|
|
260
|
+
onClick: S ? o : h,
|
|
261
|
+
className: ee,
|
|
262
|
+
children: /* @__PURE__ */ a(xe, { "aria-hidden": "true", className: "ds:size-4" })
|
|
274
263
|
}
|
|
275
264
|
)
|
|
276
265
|
] });
|
|
277
|
-
return /* @__PURE__ */
|
|
266
|
+
return /* @__PURE__ */ y(
|
|
278
267
|
"div",
|
|
279
268
|
{
|
|
280
269
|
"data-component": "patient-search-field",
|
|
281
270
|
"data-field": "where",
|
|
282
271
|
onFocus: () => {
|
|
283
|
-
|
|
272
|
+
D.current || (D.current = !0, _("patient_search_place_focused"));
|
|
284
273
|
},
|
|
285
|
-
onBlur: (
|
|
286
|
-
|
|
274
|
+
onBlur: (x) => {
|
|
275
|
+
x.currentTarget && !x.currentTarget.contains(x.relatedTarget) && (D.current = !1);
|
|
287
276
|
},
|
|
288
277
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
289
278
|
children: [
|
|
290
|
-
/* @__PURE__ */
|
|
279
|
+
/* @__PURE__ */ y("div", { className: "ds:relative", children: [
|
|
291
280
|
/* @__PURE__ */ a(
|
|
292
|
-
|
|
281
|
+
se,
|
|
293
282
|
{
|
|
294
|
-
ref:
|
|
295
|
-
value:
|
|
296
|
-
onChange: (
|
|
297
|
-
|
|
283
|
+
ref: p,
|
|
284
|
+
value: c,
|
|
285
|
+
onChange: (x) => {
|
|
286
|
+
r(x), e.place && x !== e.place.label && (l.current = void 0, s({ ...e, place: void 0, geo: void 0 }), d === "granted" && f("pristine"));
|
|
298
287
|
},
|
|
299
|
-
onSelect:
|
|
288
|
+
onSelect: b,
|
|
300
289
|
loadOptions: m,
|
|
301
|
-
debounceMs:
|
|
290
|
+
debounceMs: ie,
|
|
302
291
|
placeholder: u("patientSearch.where.placeholder"),
|
|
303
292
|
"aria-label": u("patientSearch.where.label"),
|
|
304
|
-
startAdornment: /* @__PURE__ */ a(
|
|
305
|
-
endAdornment:
|
|
293
|
+
startAdornment: /* @__PURE__ */ a(he, { "aria-hidden": "true" }),
|
|
294
|
+
endAdornment: L ? void 0 : (
|
|
306
295
|
// Decorative spacer — reserves inline-end room so the typed
|
|
307
296
|
// text doesn't run under the absolutely-positioned overlay.
|
|
308
297
|
// Autocomplete wraps endAdornment in `aria-hidden`, which is
|
|
@@ -312,60 +301,80 @@ function $({
|
|
|
312
301
|
"span",
|
|
313
302
|
{
|
|
314
303
|
"aria-hidden": "true",
|
|
315
|
-
className:
|
|
304
|
+
className: S ? "ds:inline-block ds:size-[4.5rem]" : "ds:inline-block ds:size-8"
|
|
316
305
|
}
|
|
317
306
|
)
|
|
318
307
|
)
|
|
319
308
|
}
|
|
320
309
|
),
|
|
321
|
-
|
|
310
|
+
Q
|
|
322
311
|
] }),
|
|
323
|
-
|
|
324
|
-
// Slider marks render with `translate(-50%)` so half of each
|
|
325
|
-
// end-mark ("1" and "50" labels) sits outside the slider's
|
|
326
|
-
// bounding box. The parent Card uses `overflow: hidden`, which
|
|
327
|
-
// would clip them — the inline padding pulls the rail inset by
|
|
328
|
-
// half a label width so the overhang lands inside the card.
|
|
329
|
-
/* @__PURE__ */ _("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:pb-[var(--spacing-md)]", children: [
|
|
330
|
-
/* @__PURE__ */ a(
|
|
331
|
-
"span",
|
|
332
|
-
{
|
|
333
|
-
id: "patient-search-radius-label",
|
|
334
|
-
className: "type-meta ds:text-[color:var(--muted-foreground)]",
|
|
335
|
-
children: u("patientSearch.geo.radius")
|
|
336
|
-
}
|
|
337
|
-
),
|
|
338
|
-
/* @__PURE__ */ a(
|
|
339
|
-
me,
|
|
340
|
-
{
|
|
341
|
-
value: [p],
|
|
342
|
-
min: 0,
|
|
343
|
-
max: L.length - 1,
|
|
344
|
-
step: 1,
|
|
345
|
-
marks: L.map((d, b) => ({
|
|
346
|
-
value: b,
|
|
347
|
-
label: `${d}`
|
|
348
|
-
})),
|
|
349
|
-
formatValue: G,
|
|
350
|
-
alwaysShowValue: !0,
|
|
351
|
-
"aria-labelledby": "patient-search-radius-label",
|
|
352
|
-
onValueChange: (d) => y(d[0] ?? 0),
|
|
353
|
-
onValueCommit: (d) => U(d[0] ?? 0)
|
|
354
|
-
}
|
|
355
|
-
)
|
|
356
|
-
] })
|
|
357
|
-
) : null,
|
|
358
|
-
C ? (
|
|
312
|
+
L ? (
|
|
359
313
|
// Alert defaults to `role="status"` + `aria-live="polite"` for the
|
|
360
314
|
// `info` variant — the user hears why the field reverted to plain
|
|
361
315
|
// text when their browser blocked the geolocation prompt.
|
|
362
|
-
/* @__PURE__ */ a(
|
|
316
|
+
/* @__PURE__ */ a(Z, { variant: "info", children: /* @__PURE__ */ a(Z.Description, { children: u("patientSearch.geo.denied") }) })
|
|
363
317
|
) : null
|
|
364
318
|
]
|
|
365
319
|
}
|
|
366
320
|
);
|
|
367
321
|
}
|
|
368
|
-
|
|
322
|
+
function q({
|
|
323
|
+
value: e,
|
|
324
|
+
onChange: s,
|
|
325
|
+
defaultRadiusKm: t = Y
|
|
326
|
+
}) {
|
|
327
|
+
const { t: i } = j(), [p, v] = W(
|
|
328
|
+
() => {
|
|
329
|
+
var c;
|
|
330
|
+
return we(((c = e.geo) == null ? void 0 : c.radiusKm) ?? t);
|
|
331
|
+
}
|
|
332
|
+
);
|
|
333
|
+
if (!e.geo) return null;
|
|
334
|
+
const g = (c) => {
|
|
335
|
+
const r = O[c] ?? t;
|
|
336
|
+
s({ ...e, geo: { ...e.geo, radiusKm: r } }), _("patient_search_radius_changed", { radiusKm: r });
|
|
337
|
+
}, u = (c) => {
|
|
338
|
+
const r = O[Math.round(c)] ?? t;
|
|
339
|
+
return i("patientSearch.geo.radiusFormat", { km: r });
|
|
340
|
+
};
|
|
341
|
+
return /* @__PURE__ */ y(
|
|
342
|
+
"div",
|
|
343
|
+
{
|
|
344
|
+
"data-component": "patient-search-geo-radius-bar",
|
|
345
|
+
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:pb-[var(--spacing-md)]",
|
|
346
|
+
children: [
|
|
347
|
+
/* @__PURE__ */ a(
|
|
348
|
+
"span",
|
|
349
|
+
{
|
|
350
|
+
id: "patient-search-radius-label",
|
|
351
|
+
className: "type-meta ds:text-[color:var(--muted-foreground)]",
|
|
352
|
+
children: i("patientSearch.geo.radius")
|
|
353
|
+
}
|
|
354
|
+
),
|
|
355
|
+
/* @__PURE__ */ a(
|
|
356
|
+
fe,
|
|
357
|
+
{
|
|
358
|
+
value: [p],
|
|
359
|
+
min: 0,
|
|
360
|
+
max: O.length - 1,
|
|
361
|
+
step: 1,
|
|
362
|
+
marks: O.map((c, r) => ({
|
|
363
|
+
value: r,
|
|
364
|
+
label: `${c}`
|
|
365
|
+
})),
|
|
366
|
+
formatValue: u,
|
|
367
|
+
alwaysShowValue: !0,
|
|
368
|
+
"aria-labelledby": "patient-search-radius-label",
|
|
369
|
+
onValueChange: (c) => v(c[0] ?? 0),
|
|
370
|
+
onValueCommit: (c) => g(c[0] ?? 0)
|
|
371
|
+
}
|
|
372
|
+
)
|
|
373
|
+
]
|
|
374
|
+
}
|
|
375
|
+
);
|
|
376
|
+
}
|
|
377
|
+
const Se = T(
|
|
369
378
|
[
|
|
370
379
|
"ds:inline-flex ds:items-center ds:justify-center",
|
|
371
380
|
"ds:min-h-[var(--min-target-size)]",
|
|
@@ -388,44 +397,44 @@ const ke = D(
|
|
|
388
397
|
defaultVariants: { state: "idle" }
|
|
389
398
|
}
|
|
390
399
|
);
|
|
391
|
-
function
|
|
392
|
-
const { t, i18n:
|
|
393
|
-
var
|
|
394
|
-
(
|
|
395
|
-
}, []),
|
|
396
|
-
(
|
|
397
|
-
const f =
|
|
398
|
-
switch (
|
|
399
|
-
case
|
|
400
|
+
function Ne({ value: e, onChange: s }) {
|
|
401
|
+
const { t, i18n: i } = j(), p = le(), v = i.dir() === "rtl", g = N(/* @__PURE__ */ new Map()), u = z((n) => {
|
|
402
|
+
var d;
|
|
403
|
+
(d = g.current.get(n)) == null || d.focus();
|
|
404
|
+
}, []), c = z(
|
|
405
|
+
(n, d) => {
|
|
406
|
+
const f = A.indexOf(d), m = A.length, b = v ? "ArrowLeft" : "ArrowRight", h = v ? "ArrowRight" : "ArrowLeft";
|
|
407
|
+
switch (n.key) {
|
|
408
|
+
case b:
|
|
400
409
|
case "ArrowDown": {
|
|
401
|
-
|
|
402
|
-
const
|
|
403
|
-
s(
|
|
410
|
+
n.preventDefault();
|
|
411
|
+
const o = A[(f + 1) % m];
|
|
412
|
+
s(o), _("patient_search_when_selected", { when: o }), u(o);
|
|
404
413
|
break;
|
|
405
414
|
}
|
|
406
|
-
case
|
|
415
|
+
case h:
|
|
407
416
|
case "ArrowUp": {
|
|
408
|
-
|
|
409
|
-
const
|
|
410
|
-
s(
|
|
417
|
+
n.preventDefault();
|
|
418
|
+
const o = A[(f - 1 + m) % m];
|
|
419
|
+
s(o), _("patient_search_when_selected", { when: o }), u(o);
|
|
411
420
|
break;
|
|
412
421
|
}
|
|
413
422
|
case "Home": {
|
|
414
|
-
|
|
415
|
-
const
|
|
416
|
-
s(
|
|
423
|
+
n.preventDefault();
|
|
424
|
+
const o = A[0];
|
|
425
|
+
s(o), _("patient_search_when_selected", { when: o }), u(o);
|
|
417
426
|
break;
|
|
418
427
|
}
|
|
419
428
|
case "End": {
|
|
420
|
-
|
|
421
|
-
const
|
|
422
|
-
s(
|
|
429
|
+
n.preventDefault();
|
|
430
|
+
const o = A[m - 1];
|
|
431
|
+
s(o), _("patient_search_when_selected", { when: o }), u(o);
|
|
423
432
|
break;
|
|
424
433
|
}
|
|
425
434
|
}
|
|
426
435
|
},
|
|
427
436
|
[u, v, s]
|
|
428
|
-
),
|
|
437
|
+
), r = e ?? "anytime", l = {
|
|
429
438
|
today: "patientSearch.when.today",
|
|
430
439
|
tomorrow: "patientSearch.when.tomorrow",
|
|
431
440
|
this_week: "patientSearch.when.thisWeek",
|
|
@@ -436,37 +445,37 @@ function Re({ value: e, onChange: s }) {
|
|
|
436
445
|
{
|
|
437
446
|
role: "radiogroup",
|
|
438
447
|
"aria-label": t("patientSearch.when.label"),
|
|
439
|
-
id:
|
|
448
|
+
id: p,
|
|
440
449
|
className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
441
|
-
children:
|
|
442
|
-
const
|
|
450
|
+
children: A.map((n) => {
|
|
451
|
+
const d = e === n, f = r === n, m = t(l[n]);
|
|
443
452
|
return /* @__PURE__ */ a(
|
|
444
453
|
"button",
|
|
445
454
|
{
|
|
446
455
|
type: "button",
|
|
447
456
|
role: "radio",
|
|
448
|
-
"aria-checked":
|
|
449
|
-
"aria-label":
|
|
457
|
+
"aria-checked": d,
|
|
458
|
+
"aria-label": m,
|
|
450
459
|
tabIndex: f ? 0 : -1,
|
|
451
|
-
ref: (
|
|
452
|
-
|
|
460
|
+
ref: (b) => {
|
|
461
|
+
b ? g.current.set(n, b) : g.current.delete(n);
|
|
453
462
|
},
|
|
454
463
|
onClick: () => {
|
|
455
|
-
s(
|
|
464
|
+
s(n), _("patient_search_when_selected", { when: n });
|
|
456
465
|
},
|
|
457
|
-
onKeyDown: (
|
|
458
|
-
className:
|
|
459
|
-
state:
|
|
466
|
+
onKeyDown: (b) => c(b, n),
|
|
467
|
+
className: Se({
|
|
468
|
+
state: d ? "selected" : "idle"
|
|
460
469
|
}),
|
|
461
|
-
children:
|
|
470
|
+
children: m
|
|
462
471
|
},
|
|
463
|
-
|
|
472
|
+
n
|
|
464
473
|
);
|
|
465
474
|
})
|
|
466
475
|
}
|
|
467
476
|
);
|
|
468
477
|
}
|
|
469
|
-
const
|
|
478
|
+
const ae = T(
|
|
470
479
|
[
|
|
471
480
|
"ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
472
481
|
"ds:min-h-[var(--min-target-size)]",
|
|
@@ -496,63 +505,63 @@ const te = D(
|
|
|
496
505
|
defaultVariants: { state: "idle" }
|
|
497
506
|
}
|
|
498
507
|
);
|
|
499
|
-
function
|
|
500
|
-
const { t:
|
|
501
|
-
() => Object.values(
|
|
502
|
-
[
|
|
503
|
-
), g = (
|
|
504
|
-
const
|
|
505
|
-
l.length === 0 ? delete r
|
|
506
|
-
}, u = (
|
|
507
|
-
var
|
|
508
|
-
const l = (((
|
|
509
|
-
g(
|
|
510
|
-
},
|
|
511
|
-
const
|
|
508
|
+
function ke({ facets: e, value: s, onChange: t }) {
|
|
509
|
+
const { t: i } = j(), p = X(() => s ?? {}, [s]), v = X(
|
|
510
|
+
() => Object.values(p).some((r) => r && r.length > 0),
|
|
511
|
+
[p]
|
|
512
|
+
), g = (r, l) => {
|
|
513
|
+
const n = { ...p };
|
|
514
|
+
l.length === 0 ? delete n[r] : n[r] = l, t(n), _("patient_search_facet_changed", { key: r, values: l });
|
|
515
|
+
}, u = (r) => {
|
|
516
|
+
var n;
|
|
517
|
+
const l = (((n = p[r]) == null ? void 0 : n.length) ?? 0) > 0;
|
|
518
|
+
g(r, l ? [] : ["true"]);
|
|
519
|
+
}, c = (r, l) => {
|
|
520
|
+
const n = p[r.key] ?? [], d = n.includes(l);
|
|
512
521
|
let f;
|
|
513
|
-
|
|
522
|
+
r.multi ? f = d ? n.filter((m) => m !== l) : [...n, l] : f = d ? [] : [l], g(r.key, f);
|
|
514
523
|
};
|
|
515
|
-
return /* @__PURE__ */
|
|
524
|
+
return /* @__PURE__ */ y(
|
|
516
525
|
"div",
|
|
517
526
|
{
|
|
518
527
|
role: "group",
|
|
519
|
-
"aria-label":
|
|
528
|
+
"aria-label": i("patientSearch.facets.label"),
|
|
520
529
|
className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
521
530
|
children: [
|
|
522
|
-
e.map((
|
|
523
|
-
const l =
|
|
531
|
+
e.map((r) => {
|
|
532
|
+
const l = r.options.length === 0, n = p[r.key] ?? [], d = n.length > 0;
|
|
524
533
|
if (l)
|
|
525
534
|
return /* @__PURE__ */ a(
|
|
526
535
|
"button",
|
|
527
536
|
{
|
|
528
537
|
type: "button",
|
|
529
|
-
"aria-pressed":
|
|
530
|
-
"aria-label":
|
|
531
|
-
onClick: () => u(
|
|
532
|
-
className:
|
|
533
|
-
state:
|
|
538
|
+
"aria-pressed": d,
|
|
539
|
+
"aria-label": r.label,
|
|
540
|
+
onClick: () => u(r.key),
|
|
541
|
+
className: ae({
|
|
542
|
+
state: d ? "active" : "idle"
|
|
534
543
|
}),
|
|
535
|
-
children: /* @__PURE__ */ a("span", { children:
|
|
544
|
+
children: /* @__PURE__ */ a("span", { children: r.label })
|
|
536
545
|
},
|
|
537
|
-
|
|
546
|
+
r.key
|
|
538
547
|
);
|
|
539
|
-
const f =
|
|
540
|
-
return /* @__PURE__ */
|
|
541
|
-
/* @__PURE__ */ a(
|
|
548
|
+
const f = d ? ` (${n.length})` : "";
|
|
549
|
+
return /* @__PURE__ */ y(F.Root, { children: [
|
|
550
|
+
/* @__PURE__ */ a(F.Trigger, { asChild: !0, children: /* @__PURE__ */ y(
|
|
542
551
|
"button",
|
|
543
552
|
{
|
|
544
553
|
type: "button",
|
|
545
|
-
"aria-label": `${
|
|
546
|
-
className:
|
|
547
|
-
state:
|
|
554
|
+
"aria-label": `${r.label}${f}`,
|
|
555
|
+
className: ae({
|
|
556
|
+
state: d ? "active" : "idle"
|
|
548
557
|
}),
|
|
549
558
|
children: [
|
|
550
|
-
/* @__PURE__ */
|
|
551
|
-
|
|
559
|
+
/* @__PURE__ */ y("span", { children: [
|
|
560
|
+
r.label,
|
|
552
561
|
f
|
|
553
562
|
] }),
|
|
554
563
|
/* @__PURE__ */ a(
|
|
555
|
-
|
|
564
|
+
ge,
|
|
556
565
|
{
|
|
557
566
|
"aria-hidden": "true",
|
|
558
567
|
className: "ds:size-3.5 ds:shrink-0"
|
|
@@ -561,25 +570,25 @@ function je({ facets: e, value: s, onChange: t }) {
|
|
|
561
570
|
]
|
|
562
571
|
}
|
|
563
572
|
) }),
|
|
564
|
-
/* @__PURE__ */ a(
|
|
565
|
-
|
|
573
|
+
/* @__PURE__ */ a(F.Content, { sideOffset: 8, align: "start", children: r.options.map((m) => /* @__PURE__ */ a(
|
|
574
|
+
F.CheckboxItem,
|
|
566
575
|
{
|
|
567
|
-
checked:
|
|
568
|
-
onSelect: (
|
|
569
|
-
|
|
576
|
+
checked: n.includes(m.value),
|
|
577
|
+
onSelect: (b) => {
|
|
578
|
+
r.multi && b.preventDefault(), c(r, m.value);
|
|
570
579
|
},
|
|
571
|
-
children:
|
|
580
|
+
children: m.label
|
|
572
581
|
},
|
|
573
|
-
|
|
582
|
+
m.value
|
|
574
583
|
)) })
|
|
575
|
-
] },
|
|
584
|
+
] }, r.key);
|
|
576
585
|
}),
|
|
577
|
-
v ? /* @__PURE__ */
|
|
586
|
+
v ? /* @__PURE__ */ y(
|
|
578
587
|
"button",
|
|
579
588
|
{
|
|
580
589
|
type: "button",
|
|
581
590
|
onClick: () => {
|
|
582
|
-
t({}),
|
|
591
|
+
t({}), _("patient_search_facet_changed", { key: "*", values: [] });
|
|
583
592
|
},
|
|
584
593
|
className: [
|
|
585
594
|
"ds:ms-[var(--spacing-xs)] ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
@@ -591,8 +600,8 @@ function je({ facets: e, value: s, onChange: t }) {
|
|
|
591
600
|
"ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
|
|
592
601
|
].join(" "),
|
|
593
602
|
children: [
|
|
594
|
-
/* @__PURE__ */ a(
|
|
595
|
-
|
|
603
|
+
/* @__PURE__ */ a(ne, { "aria-hidden": "true", className: "ds:size-3.5" }),
|
|
604
|
+
i("patientSearch.facets.clear")
|
|
596
605
|
]
|
|
597
606
|
}
|
|
598
607
|
) : null
|
|
@@ -600,7 +609,7 @@ function je({ facets: e, value: s, onChange: t }) {
|
|
|
600
609
|
}
|
|
601
610
|
);
|
|
602
611
|
}
|
|
603
|
-
const
|
|
612
|
+
const te = ["violet", "purple", "magenta", "blue"], Re = T(
|
|
604
613
|
[
|
|
605
614
|
"ds:relative ds:flex ds:h-full ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
606
615
|
"ds:rounded-[var(--radius-lg)] ds:overflow-hidden",
|
|
@@ -616,7 +625,7 @@ const se = ["violet", "purple", "magenta", "blue"], Ae = D(
|
|
|
616
625
|
"ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
617
626
|
"ds:no-underline"
|
|
618
627
|
].join(" ")
|
|
619
|
-
),
|
|
628
|
+
), je = T(
|
|
620
629
|
"ds:absolute ds:inset-inline-0 ds:top-0 ds:h-[3px] ds:pointer-events-none",
|
|
621
630
|
{
|
|
622
631
|
variants: {
|
|
@@ -629,7 +638,7 @@ const se = ["violet", "purple", "magenta", "blue"], Ae = D(
|
|
|
629
638
|
},
|
|
630
639
|
defaultVariants: { accent: "violet" }
|
|
631
640
|
}
|
|
632
|
-
),
|
|
641
|
+
), Ae = T(
|
|
633
642
|
"ds:inline-flex ds:size-9 ds:items-center ds:justify-center ds:rounded-[var(--radius-md)]",
|
|
634
643
|
{
|
|
635
644
|
variants: {
|
|
@@ -643,12 +652,12 @@ const se = ["violet", "purple", "magenta", "blue"], Ae = D(
|
|
|
643
652
|
defaultVariants: { accent: "violet" }
|
|
644
653
|
}
|
|
645
654
|
);
|
|
646
|
-
function
|
|
647
|
-
return e && e !== "auto" ? e :
|
|
655
|
+
function Ce(e, s) {
|
|
656
|
+
return e && e !== "auto" ? e : te[s % te.length];
|
|
648
657
|
}
|
|
649
|
-
function
|
|
650
|
-
const { t: s } =
|
|
651
|
-
return e.length === 0 ? /* @__PURE__ */ a("p", { className: "type-body-sm ds:text-[color:var(--muted-foreground)] ds:m-0", children: s("patientSearch.discovery.empty") }) : /* @__PURE__ */
|
|
658
|
+
function Ee({ cards: e }) {
|
|
659
|
+
const { t: s } = j();
|
|
660
|
+
return e.length === 0 ? /* @__PURE__ */ a("p", { className: "type-body-sm ds:text-[color:var(--muted-foreground)] ds:m-0", children: s("patientSearch.discovery.empty") }) : /* @__PURE__ */ y("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
652
661
|
/* @__PURE__ */ a("h3", { className: "type-title-card ds:text-[var(--foreground)] ds:m-0", children: s("patientSearch.discovery.heading") }),
|
|
653
662
|
/* @__PURE__ */ a(
|
|
654
663
|
"ul",
|
|
@@ -658,34 +667,34 @@ function Le({ cards: e }) {
|
|
|
658
667
|
"ds:md:grid-cols-2 ds:lg:grid-cols-3",
|
|
659
668
|
"ds:m-0 ds:p-0 ds:list-none"
|
|
660
669
|
].join(" "),
|
|
661
|
-
children: e.map((t,
|
|
662
|
-
const
|
|
663
|
-
return /* @__PURE__ */ a("li", { children: /* @__PURE__ */
|
|
670
|
+
children: e.map((t, i) => {
|
|
671
|
+
const p = Ce(t.accent, i);
|
|
672
|
+
return /* @__PURE__ */ a("li", { children: /* @__PURE__ */ y(
|
|
664
673
|
"a",
|
|
665
674
|
{
|
|
666
675
|
href: t.href,
|
|
667
676
|
"data-component": "patient-search-card",
|
|
668
677
|
"data-card-id": t.id,
|
|
669
678
|
"aria-label": t.description ? `${t.label} — ${t.description}` : t.label,
|
|
670
|
-
onClick: () =>
|
|
679
|
+
onClick: () => _("patient_search_discovery_card_clicked", {
|
|
671
680
|
cardId: t.id
|
|
672
681
|
}),
|
|
673
|
-
className:
|
|
682
|
+
className: Re(),
|
|
674
683
|
children: [
|
|
675
684
|
/* @__PURE__ */ a(
|
|
676
685
|
"span",
|
|
677
686
|
{
|
|
678
687
|
"aria-hidden": "true",
|
|
679
|
-
className:
|
|
688
|
+
className: je({ accent: p })
|
|
680
689
|
}
|
|
681
690
|
),
|
|
682
|
-
/* @__PURE__ */
|
|
691
|
+
/* @__PURE__ */ y("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
683
692
|
/* @__PURE__ */ a(
|
|
684
693
|
"span",
|
|
685
694
|
{
|
|
686
695
|
"aria-hidden": "true",
|
|
687
|
-
className:
|
|
688
|
-
children: t.icon ?? /* @__PURE__ */ a(
|
|
696
|
+
className: Ae({ accent: p }),
|
|
697
|
+
children: t.icon ?? /* @__PURE__ */ a(ve, { className: "ds:size-4", "aria-hidden": "true" })
|
|
689
698
|
}
|
|
690
699
|
),
|
|
691
700
|
t.badge ? (
|
|
@@ -709,7 +718,7 @@ function Le({ cards: e }) {
|
|
|
709
718
|
)
|
|
710
719
|
] });
|
|
711
720
|
}
|
|
712
|
-
function
|
|
721
|
+
function Te(e) {
|
|
713
722
|
if (e.object || e.place || e.geo || e.when && e.when !== "anytime") return !0;
|
|
714
723
|
if (e.facets) {
|
|
715
724
|
for (const s of Object.values(e.facets))
|
|
@@ -717,26 +726,26 @@ function De(e) {
|
|
|
717
726
|
}
|
|
718
727
|
return !1;
|
|
719
728
|
}
|
|
720
|
-
function
|
|
729
|
+
function U({
|
|
721
730
|
value: e,
|
|
722
731
|
variant: s,
|
|
723
732
|
submitting: t,
|
|
724
|
-
submitLabel:
|
|
725
|
-
allowEmptySubmit:
|
|
733
|
+
submitLabel: i,
|
|
734
|
+
allowEmptySubmit: p,
|
|
726
735
|
onSubmit: v
|
|
727
736
|
}) {
|
|
728
|
-
const { t: g } =
|
|
737
|
+
const { t: g } = j(), u = t || !p && !Te(e), c = i ?? g("patientSearch.submit.cta");
|
|
729
738
|
return /* @__PURE__ */ a(
|
|
730
|
-
|
|
739
|
+
ue,
|
|
731
740
|
{
|
|
732
741
|
type: "button",
|
|
733
742
|
intent: "primary",
|
|
734
743
|
size: "lg",
|
|
735
|
-
startIcon: /* @__PURE__ */ a(
|
|
744
|
+
startIcon: /* @__PURE__ */ a(re, { "aria-hidden": "true" }),
|
|
736
745
|
loading: t,
|
|
737
746
|
disabled: u,
|
|
738
747
|
onClick: () => {
|
|
739
|
-
|
|
748
|
+
_("patient_search_submitted", {
|
|
740
749
|
variant: s,
|
|
741
750
|
hasObject: !!e.object,
|
|
742
751
|
hasPlace: !!e.place,
|
|
@@ -745,156 +754,174 @@ function q({
|
|
|
745
754
|
facetKeys: e.facets ? Object.keys(e.facets) : []
|
|
746
755
|
}), v(e);
|
|
747
756
|
},
|
|
748
|
-
children:
|
|
757
|
+
children: c
|
|
749
758
|
}
|
|
750
759
|
);
|
|
751
760
|
}
|
|
752
|
-
function
|
|
761
|
+
function Le(e) {
|
|
753
762
|
const {
|
|
754
763
|
variant: s,
|
|
755
764
|
value: t,
|
|
756
|
-
onChange:
|
|
757
|
-
onSubmit:
|
|
765
|
+
onChange: i,
|
|
766
|
+
onSubmit: p,
|
|
758
767
|
loadObjects: v,
|
|
759
768
|
loadPlaces: g,
|
|
760
769
|
onObjectSelect: u,
|
|
761
|
-
onPlaceSelect:
|
|
762
|
-
submitting:
|
|
770
|
+
onPlaceSelect: c,
|
|
771
|
+
submitting: r,
|
|
763
772
|
submitLabel: l,
|
|
764
|
-
allowEmptySubmit:
|
|
765
|
-
whoRef:
|
|
773
|
+
allowEmptySubmit: n,
|
|
774
|
+
whoRef: d,
|
|
766
775
|
whereRef: f,
|
|
767
|
-
defaultRadiusKm:
|
|
768
|
-
reverseGeocode:
|
|
769
|
-
cardLabel:
|
|
776
|
+
defaultRadiusKm: m,
|
|
777
|
+
reverseGeocode: b,
|
|
778
|
+
cardLabel: h
|
|
770
779
|
} = e;
|
|
771
|
-
return /* @__PURE__ */ a(M, { variant: "elevated", "aria-label":
|
|
772
|
-
/* @__PURE__ */
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
780
|
+
return /* @__PURE__ */ a(M, { variant: "elevated", "aria-label": h, children: /* @__PURE__ */ y("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
|
|
781
|
+
/* @__PURE__ */ y("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:md:flex-row ds:md:items-center", children: [
|
|
782
|
+
/* @__PURE__ */ a("div", { className: "ds:flex-1 ds:min-w-0", children: /* @__PURE__ */ a(
|
|
783
|
+
H,
|
|
784
|
+
{
|
|
785
|
+
value: t,
|
|
786
|
+
onChange: i,
|
|
787
|
+
loadObjects: v,
|
|
788
|
+
onObjectSelect: u,
|
|
789
|
+
inputRef: d
|
|
790
|
+
}
|
|
791
|
+
) }),
|
|
792
|
+
/* @__PURE__ */ a("div", { className: "ds:flex-1 ds:min-w-0", children: /* @__PURE__ */ a(
|
|
793
|
+
$,
|
|
794
|
+
{
|
|
795
|
+
value: t,
|
|
796
|
+
onChange: i,
|
|
797
|
+
loadPlaces: g,
|
|
798
|
+
onPlaceSelect: c,
|
|
799
|
+
defaultRadiusKm: m,
|
|
800
|
+
reverseGeocode: b,
|
|
801
|
+
inputRef: f
|
|
802
|
+
}
|
|
803
|
+
) }),
|
|
804
|
+
/* @__PURE__ */ a(
|
|
805
|
+
U,
|
|
806
|
+
{
|
|
807
|
+
value: t,
|
|
808
|
+
variant: s,
|
|
809
|
+
submitting: r,
|
|
810
|
+
submitLabel: l,
|
|
811
|
+
allowEmptySubmit: n,
|
|
812
|
+
onSubmit: p
|
|
813
|
+
}
|
|
814
|
+
)
|
|
815
|
+
] }),
|
|
794
816
|
/* @__PURE__ */ a(
|
|
795
817
|
q,
|
|
796
818
|
{
|
|
797
819
|
value: t,
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
submitLabel: l,
|
|
801
|
-
allowEmptySubmit: r,
|
|
802
|
-
onSubmit: h
|
|
820
|
+
onChange: i,
|
|
821
|
+
defaultRadiusKm: m
|
|
803
822
|
}
|
|
804
823
|
)
|
|
805
824
|
] }) });
|
|
806
825
|
}
|
|
807
|
-
function
|
|
826
|
+
function De(e) {
|
|
808
827
|
const {
|
|
809
828
|
variant: s,
|
|
810
829
|
value: t,
|
|
811
|
-
onChange:
|
|
812
|
-
onSubmit:
|
|
830
|
+
onChange: i,
|
|
831
|
+
onSubmit: p,
|
|
813
832
|
loadObjects: v,
|
|
814
833
|
loadPlaces: g,
|
|
815
834
|
onObjectSelect: u,
|
|
816
|
-
onPlaceSelect:
|
|
817
|
-
submitting:
|
|
835
|
+
onPlaceSelect: c,
|
|
836
|
+
submitting: r,
|
|
818
837
|
submitLabel: l,
|
|
819
|
-
allowEmptySubmit:
|
|
820
|
-
whoRef:
|
|
838
|
+
allowEmptySubmit: n,
|
|
839
|
+
whoRef: d,
|
|
821
840
|
whereRef: f,
|
|
822
|
-
defaultRadiusKm:
|
|
823
|
-
reverseGeocode:
|
|
824
|
-
cardLabel:
|
|
841
|
+
defaultRadiusKm: m,
|
|
842
|
+
reverseGeocode: b,
|
|
843
|
+
cardLabel: h
|
|
825
844
|
} = e;
|
|
826
|
-
return /* @__PURE__ */ a(M, { variant: "elevated", "aria-label":
|
|
827
|
-
/* @__PURE__ */
|
|
845
|
+
return /* @__PURE__ */ a(M, { variant: "elevated", "aria-label": h, children: /* @__PURE__ */ y("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:p-[var(--spacing-md)]", children: [
|
|
846
|
+
/* @__PURE__ */ y("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:md:flex-row ds:md:items-center", children: [
|
|
828
847
|
/* @__PURE__ */ a("div", { className: "ds:flex-1 ds:min-w-0", children: /* @__PURE__ */ a(
|
|
829
848
|
H,
|
|
830
849
|
{
|
|
831
850
|
value: t,
|
|
832
|
-
onChange:
|
|
851
|
+
onChange: i,
|
|
833
852
|
loadObjects: v,
|
|
834
853
|
onObjectSelect: u,
|
|
835
|
-
inputRef:
|
|
854
|
+
inputRef: d
|
|
836
855
|
}
|
|
837
856
|
) }),
|
|
838
857
|
/* @__PURE__ */ a("div", { className: "ds:flex-1 ds:min-w-0", children: /* @__PURE__ */ a(
|
|
839
858
|
$,
|
|
840
859
|
{
|
|
841
860
|
value: t,
|
|
842
|
-
onChange:
|
|
861
|
+
onChange: i,
|
|
843
862
|
loadPlaces: g,
|
|
844
|
-
onPlaceSelect:
|
|
845
|
-
defaultRadiusKm:
|
|
846
|
-
reverseGeocode:
|
|
863
|
+
onPlaceSelect: c,
|
|
864
|
+
defaultRadiusKm: m,
|
|
865
|
+
reverseGeocode: b,
|
|
847
866
|
inputRef: f
|
|
848
867
|
}
|
|
849
868
|
) }),
|
|
850
869
|
/* @__PURE__ */ a(
|
|
851
|
-
|
|
870
|
+
U,
|
|
852
871
|
{
|
|
853
872
|
value: t,
|
|
854
873
|
variant: s,
|
|
855
|
-
submitting:
|
|
874
|
+
submitting: r,
|
|
856
875
|
submitLabel: l,
|
|
857
|
-
allowEmptySubmit:
|
|
858
|
-
onSubmit:
|
|
876
|
+
allowEmptySubmit: n,
|
|
877
|
+
onSubmit: p
|
|
859
878
|
}
|
|
860
879
|
)
|
|
861
880
|
] }),
|
|
862
881
|
/* @__PURE__ */ a(
|
|
863
|
-
|
|
882
|
+
q,
|
|
883
|
+
{
|
|
884
|
+
value: t,
|
|
885
|
+
onChange: i,
|
|
886
|
+
defaultRadiusKm: m
|
|
887
|
+
}
|
|
888
|
+
),
|
|
889
|
+
/* @__PURE__ */ a(
|
|
890
|
+
Ne,
|
|
864
891
|
{
|
|
865
892
|
value: t.when,
|
|
866
|
-
onChange: (
|
|
893
|
+
onChange: (o) => i({ ...t, when: o })
|
|
867
894
|
}
|
|
868
895
|
)
|
|
869
896
|
] }) });
|
|
870
897
|
}
|
|
871
|
-
function
|
|
898
|
+
function Pe(e) {
|
|
872
899
|
const {
|
|
873
900
|
variant: s,
|
|
874
901
|
value: t,
|
|
875
|
-
onChange:
|
|
876
|
-
onSubmit:
|
|
902
|
+
onChange: i,
|
|
903
|
+
onSubmit: p,
|
|
877
904
|
loadObjects: v,
|
|
878
905
|
loadPlaces: g,
|
|
879
906
|
onObjectSelect: u,
|
|
880
|
-
onPlaceSelect:
|
|
881
|
-
facets:
|
|
907
|
+
onPlaceSelect: c,
|
|
908
|
+
facets: r,
|
|
882
909
|
submitting: l,
|
|
883
|
-
submitLabel:
|
|
884
|
-
allowEmptySubmit:
|
|
910
|
+
submitLabel: n,
|
|
911
|
+
allowEmptySubmit: d,
|
|
885
912
|
whoRef: f,
|
|
886
|
-
whereRef:
|
|
887
|
-
defaultRadiusKm:
|
|
888
|
-
reverseGeocode:
|
|
889
|
-
cardLabel:
|
|
913
|
+
whereRef: m,
|
|
914
|
+
defaultRadiusKm: b,
|
|
915
|
+
reverseGeocode: h,
|
|
916
|
+
cardLabel: o
|
|
890
917
|
} = e;
|
|
891
|
-
return /* @__PURE__ */ a(M, { variant: "elevated", "aria-label":
|
|
892
|
-
/* @__PURE__ */
|
|
918
|
+
return /* @__PURE__ */ a(M, { variant: "elevated", "aria-label": o, children: /* @__PURE__ */ y("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:p-[var(--spacing-md)]", children: [
|
|
919
|
+
/* @__PURE__ */ y("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:md:flex-row ds:md:items-center", children: [
|
|
893
920
|
/* @__PURE__ */ a("div", { className: "ds:flex-1 ds:min-w-0", children: /* @__PURE__ */ a(
|
|
894
921
|
H,
|
|
895
922
|
{
|
|
896
923
|
value: t,
|
|
897
|
-
onChange:
|
|
924
|
+
onChange: i,
|
|
898
925
|
loadObjects: v,
|
|
899
926
|
onObjectSelect: u,
|
|
900
927
|
inputRef: f
|
|
@@ -904,186 +931,204 @@ function Oe(e) {
|
|
|
904
931
|
$,
|
|
905
932
|
{
|
|
906
933
|
value: t,
|
|
907
|
-
onChange:
|
|
934
|
+
onChange: i,
|
|
908
935
|
loadPlaces: g,
|
|
909
|
-
onPlaceSelect:
|
|
910
|
-
defaultRadiusKm:
|
|
911
|
-
reverseGeocode:
|
|
912
|
-
inputRef:
|
|
936
|
+
onPlaceSelect: c,
|
|
937
|
+
defaultRadiusKm: b,
|
|
938
|
+
reverseGeocode: h,
|
|
939
|
+
inputRef: m
|
|
913
940
|
}
|
|
914
941
|
) }),
|
|
915
942
|
/* @__PURE__ */ a(
|
|
916
|
-
|
|
943
|
+
U,
|
|
917
944
|
{
|
|
918
945
|
value: t,
|
|
919
946
|
variant: s,
|
|
920
947
|
submitting: l,
|
|
921
|
-
submitLabel:
|
|
922
|
-
allowEmptySubmit:
|
|
923
|
-
onSubmit:
|
|
948
|
+
submitLabel: n,
|
|
949
|
+
allowEmptySubmit: d,
|
|
950
|
+
onSubmit: p
|
|
924
951
|
}
|
|
925
952
|
)
|
|
926
953
|
] }),
|
|
927
|
-
|
|
928
|
-
|
|
954
|
+
/* @__PURE__ */ a(
|
|
955
|
+
q,
|
|
956
|
+
{
|
|
957
|
+
value: t,
|
|
958
|
+
onChange: i,
|
|
959
|
+
defaultRadiusKm: b
|
|
960
|
+
}
|
|
961
|
+
),
|
|
962
|
+
r && r.length > 0 ? /* @__PURE__ */ a(
|
|
963
|
+
ke,
|
|
929
964
|
{
|
|
930
|
-
facets:
|
|
965
|
+
facets: r,
|
|
931
966
|
value: t.facets,
|
|
932
|
-
onChange: (
|
|
967
|
+
onChange: (S) => i({ ...t, facets: S })
|
|
933
968
|
}
|
|
934
969
|
) : null
|
|
935
970
|
] }) });
|
|
936
971
|
}
|
|
937
|
-
function
|
|
972
|
+
function Ie(e) {
|
|
938
973
|
const {
|
|
939
974
|
variant: s,
|
|
940
975
|
value: t,
|
|
941
|
-
onChange:
|
|
942
|
-
onSubmit:
|
|
976
|
+
onChange: i,
|
|
977
|
+
onSubmit: p,
|
|
943
978
|
loadObjects: v,
|
|
944
979
|
loadPlaces: g,
|
|
945
980
|
onObjectSelect: u,
|
|
946
|
-
onPlaceSelect:
|
|
947
|
-
discoveryCards:
|
|
981
|
+
onPlaceSelect: c,
|
|
982
|
+
discoveryCards: r,
|
|
948
983
|
submitting: l,
|
|
949
|
-
submitLabel:
|
|
950
|
-
allowEmptySubmit:
|
|
984
|
+
submitLabel: n,
|
|
985
|
+
allowEmptySubmit: d,
|
|
951
986
|
whoRef: f,
|
|
952
|
-
whereRef:
|
|
953
|
-
defaultRadiusKm:
|
|
954
|
-
reverseGeocode:
|
|
955
|
-
cardLabel:
|
|
987
|
+
whereRef: m,
|
|
988
|
+
defaultRadiusKm: b,
|
|
989
|
+
reverseGeocode: h,
|
|
990
|
+
cardLabel: o
|
|
956
991
|
} = e;
|
|
957
|
-
return /* @__PURE__ */
|
|
958
|
-
/* @__PURE__ */
|
|
959
|
-
/* @__PURE__ */
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
992
|
+
return /* @__PURE__ */ y("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", children: [
|
|
993
|
+
/* @__PURE__ */ y(M, { variant: "elevated", "aria-label": o, children: [
|
|
994
|
+
/* @__PURE__ */ y("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)] ds:md:flex-row ds:md:items-stretch", children: [
|
|
995
|
+
/* @__PURE__ */ a("div", { className: "ds:flex-1 ds:min-w-0", children: /* @__PURE__ */ a(
|
|
996
|
+
H,
|
|
997
|
+
{
|
|
998
|
+
value: t,
|
|
999
|
+
onChange: i,
|
|
1000
|
+
loadObjects: v,
|
|
1001
|
+
onObjectSelect: u,
|
|
1002
|
+
inputRef: f
|
|
1003
|
+
}
|
|
1004
|
+
) }),
|
|
1005
|
+
/* @__PURE__ */ a("div", { className: "ds:flex-1 ds:min-w-0", children: /* @__PURE__ */ a(
|
|
1006
|
+
$,
|
|
1007
|
+
{
|
|
1008
|
+
value: t,
|
|
1009
|
+
onChange: i,
|
|
1010
|
+
loadPlaces: g,
|
|
1011
|
+
onPlaceSelect: c,
|
|
1012
|
+
defaultRadiusKm: b,
|
|
1013
|
+
reverseGeocode: h,
|
|
1014
|
+
inputRef: m
|
|
1015
|
+
}
|
|
1016
|
+
) }),
|
|
1017
|
+
/* @__PURE__ */ a(
|
|
1018
|
+
U,
|
|
1019
|
+
{
|
|
1020
|
+
value: t,
|
|
1021
|
+
variant: s,
|
|
1022
|
+
submitting: l,
|
|
1023
|
+
submitLabel: n,
|
|
1024
|
+
allowEmptySubmit: d,
|
|
1025
|
+
onSubmit: p
|
|
1026
|
+
}
|
|
1027
|
+
)
|
|
1028
|
+
] }),
|
|
981
1029
|
/* @__PURE__ */ a(
|
|
982
1030
|
q,
|
|
983
1031
|
{
|
|
984
1032
|
value: t,
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
submitLabel: r,
|
|
988
|
-
allowEmptySubmit: o,
|
|
989
|
-
onSubmit: h
|
|
1033
|
+
onChange: i,
|
|
1034
|
+
defaultRadiusKm: b
|
|
990
1035
|
}
|
|
991
1036
|
)
|
|
992
|
-
] })
|
|
993
|
-
/* @__PURE__ */ a(
|
|
1037
|
+
] }),
|
|
1038
|
+
/* @__PURE__ */ a(Ee, { cards: r })
|
|
994
1039
|
] });
|
|
995
1040
|
}
|
|
996
|
-
const
|
|
1041
|
+
const Oe = de(function({
|
|
997
1042
|
variant: s,
|
|
998
1043
|
loadObjects: t,
|
|
999
|
-
loadPlaces:
|
|
1000
|
-
onObjectSelect:
|
|
1044
|
+
loadPlaces: i,
|
|
1045
|
+
onObjectSelect: p,
|
|
1001
1046
|
onPlaceSelect: v,
|
|
1002
1047
|
facets: g,
|
|
1003
|
-
defaultRadiusKm: u =
|
|
1004
|
-
reverseGeocode:
|
|
1005
|
-
discoveryCards:
|
|
1048
|
+
defaultRadiusKm: u = Y,
|
|
1049
|
+
reverseGeocode: c,
|
|
1050
|
+
discoveryCards: r,
|
|
1006
1051
|
countryCode: l,
|
|
1007
|
-
value:
|
|
1008
|
-
onChange:
|
|
1052
|
+
value: n,
|
|
1053
|
+
onChange: d,
|
|
1009
1054
|
onSubmit: f,
|
|
1010
|
-
submitting:
|
|
1011
|
-
submitLabel:
|
|
1012
|
-
allowEmptySubmit:
|
|
1013
|
-
"aria-label":
|
|
1014
|
-
id:
|
|
1015
|
-
className:
|
|
1016
|
-
...
|
|
1017
|
-
},
|
|
1018
|
-
const { t:
|
|
1019
|
-
|
|
1020
|
-
if (!
|
|
1021
|
-
if (
|
|
1022
|
-
|
|
1055
|
+
submitting: m,
|
|
1056
|
+
submitLabel: b,
|
|
1057
|
+
allowEmptySubmit: h,
|
|
1058
|
+
"aria-label": o,
|
|
1059
|
+
id: S,
|
|
1060
|
+
className: G,
|
|
1061
|
+
...L
|
|
1062
|
+
}, D) {
|
|
1063
|
+
const { t: J } = j(), Q = N(null), P = N(null), B = N(null), C = N(!1);
|
|
1064
|
+
V(() => {
|
|
1065
|
+
if (!C.current && s === "who-where-when") {
|
|
1066
|
+
if (n.when !== void 0) {
|
|
1067
|
+
C.current = !0;
|
|
1023
1068
|
return;
|
|
1024
1069
|
}
|
|
1025
|
-
|
|
1070
|
+
C.current = !0, d({ ...n, when: "anytime" });
|
|
1026
1071
|
}
|
|
1027
1072
|
}, [s]);
|
|
1028
|
-
const
|
|
1029
|
-
|
|
1030
|
-
if (!
|
|
1031
|
-
if (
|
|
1032
|
-
|
|
1073
|
+
const E = N(!1);
|
|
1074
|
+
V(() => {
|
|
1075
|
+
if (!E.current && s === "faceted") {
|
|
1076
|
+
if (n.facets !== void 0) {
|
|
1077
|
+
E.current = !0;
|
|
1033
1078
|
return;
|
|
1034
1079
|
}
|
|
1035
|
-
|
|
1080
|
+
E.current = !0, d({ ...n, facets: {} });
|
|
1036
1081
|
}
|
|
1037
1082
|
}, [s]);
|
|
1038
|
-
const
|
|
1039
|
-
|
|
1040
|
-
|
|
1083
|
+
const x = N(null);
|
|
1084
|
+
V(() => {
|
|
1085
|
+
x.current !== s && (x.current = s, _("patient_search_variant_exposed", { variant: s, country: l }));
|
|
1041
1086
|
}, [s, l]);
|
|
1042
|
-
const
|
|
1087
|
+
const w = X(
|
|
1043
1088
|
() => ({
|
|
1044
1089
|
getVariant: () => s,
|
|
1045
1090
|
reset: () => {
|
|
1046
|
-
|
|
1091
|
+
d({});
|
|
1047
1092
|
},
|
|
1048
1093
|
focusPrimary: () => {
|
|
1049
1094
|
requestAnimationFrame(() => {
|
|
1050
|
-
var
|
|
1051
|
-
(
|
|
1095
|
+
var I;
|
|
1096
|
+
(I = P.current) == null || I.focus();
|
|
1052
1097
|
});
|
|
1053
1098
|
}
|
|
1054
1099
|
}),
|
|
1055
|
-
[s,
|
|
1100
|
+
[s, d]
|
|
1056
1101
|
);
|
|
1057
|
-
|
|
1058
|
-
const
|
|
1102
|
+
ce(D, () => w, [w]), pe(ye, w, S);
|
|
1103
|
+
const k = o ?? J("patientSearch.regionLabel"), R = {
|
|
1059
1104
|
variant: s,
|
|
1060
|
-
value:
|
|
1061
|
-
onChange:
|
|
1105
|
+
value: n,
|
|
1106
|
+
onChange: d,
|
|
1062
1107
|
onSubmit: f,
|
|
1063
1108
|
loadObjects: t,
|
|
1064
|
-
loadPlaces:
|
|
1065
|
-
onObjectSelect:
|
|
1109
|
+
loadPlaces: i,
|
|
1110
|
+
onObjectSelect: p,
|
|
1066
1111
|
onPlaceSelect: v,
|
|
1067
1112
|
facets: g,
|
|
1068
1113
|
defaultRadiusKm: u,
|
|
1069
|
-
reverseGeocode:
|
|
1070
|
-
discoveryCards:
|
|
1071
|
-
submitting:
|
|
1072
|
-
submitLabel:
|
|
1073
|
-
allowEmptySubmit:
|
|
1074
|
-
whoRef:
|
|
1075
|
-
whereRef:
|
|
1076
|
-
cardLabel:
|
|
1077
|
-
},
|
|
1114
|
+
reverseGeocode: c,
|
|
1115
|
+
discoveryCards: r ?? [],
|
|
1116
|
+
submitting: m,
|
|
1117
|
+
submitLabel: b,
|
|
1118
|
+
allowEmptySubmit: h,
|
|
1119
|
+
whoRef: P,
|
|
1120
|
+
whereRef: B,
|
|
1121
|
+
cardLabel: k
|
|
1122
|
+
}, K = (() => {
|
|
1078
1123
|
switch (s) {
|
|
1079
1124
|
case "who-where":
|
|
1080
|
-
return /* @__PURE__ */ a(
|
|
1125
|
+
return /* @__PURE__ */ a(Le, { ...R });
|
|
1081
1126
|
case "who-where-when":
|
|
1082
|
-
return /* @__PURE__ */ a(
|
|
1127
|
+
return /* @__PURE__ */ a(De, { ...R });
|
|
1083
1128
|
case "faceted":
|
|
1084
|
-
return /* @__PURE__ */ a(
|
|
1129
|
+
return /* @__PURE__ */ a(Pe, { ...R });
|
|
1085
1130
|
case "discovery":
|
|
1086
|
-
return /* @__PURE__ */ a(
|
|
1131
|
+
return /* @__PURE__ */ a(Ie, { ...R });
|
|
1087
1132
|
/* c8 ignore next 2 */
|
|
1088
1133
|
default:
|
|
1089
1134
|
return null;
|
|
@@ -1094,20 +1139,20 @@ const Be = le(function({
|
|
|
1094
1139
|
{
|
|
1095
1140
|
ref: Q,
|
|
1096
1141
|
role: "region",
|
|
1097
|
-
"aria-label":
|
|
1098
|
-
id:
|
|
1142
|
+
"aria-label": k,
|
|
1143
|
+
id: S,
|
|
1099
1144
|
"data-component": "patient-search",
|
|
1100
|
-
"data-component-id":
|
|
1145
|
+
"data-component-id": S,
|
|
1101
1146
|
"data-variant": s,
|
|
1102
|
-
className:
|
|
1103
|
-
...
|
|
1104
|
-
children:
|
|
1147
|
+
className: _e({ variant: s, className: G }),
|
|
1148
|
+
...L,
|
|
1149
|
+
children: K
|
|
1105
1150
|
}
|
|
1106
1151
|
);
|
|
1107
1152
|
});
|
|
1108
|
-
|
|
1153
|
+
Oe.displayName = "PatientSearch";
|
|
1109
1154
|
export {
|
|
1110
|
-
|
|
1111
|
-
|
|
1155
|
+
Oe as P,
|
|
1156
|
+
ye as p
|
|
1112
1157
|
};
|
|
1113
|
-
//# sourceMappingURL=patient-search-
|
|
1158
|
+
//# sourceMappingURL=patient-search-ZpHN-pgJ.js.map
|