@alfadocs/ui-kit-debug 1.124.0 → 1.125.1

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.
@@ -1,35 +1,36 @@
1
- import { jsxs as h, jsx as e, Fragment as H } from "react/jsx-runtime";
2
- import { forwardRef as ue, useId as fe, useMemo as me } from "react";
3
- import { c as he } from "./index-D2ZczOXr.js";
4
- import { useTranslation as ge } from "react-i18next";
5
- import { B as k } from "./badge-BUk4RjTS.js";
6
- import { C as O } from "./card-n6W6LW-N.js";
7
- import { K as ye, a as V, S as ve } from "./key-value-pair-DOTl68_U.js";
8
- import { L as p } from "./link-DtCfnLnF.js";
9
- import { S as be } from "./specialty-list-BzalHR8_.js";
10
- import { b as xe } from "./format-price-CIX0YJZn.js";
11
- import { u as Ce } from "./registry-DvAUVLHh.js";
12
- import { S as w } from "./stethoscope-sZXGC43m.js";
13
- import { H as z } from "./heart--qCA4ffe.js";
14
- import { c as Pe } from "./createLucideIcon-DhHxpK9K.js";
15
- import { S as E } from "./shield-check-DCJALLVh.js";
16
- import { L as U } from "./languages-CGLX6Qpe.js";
17
- import { G } from "./globe-sHBW1JN5.js";
18
- import { M as L } from "./mail-BqXVF2zH.js";
19
- import { M as B } from "./message-circle-Bepl9JT5.js";
20
- import { P as j } from "./phone-FceYcIFQ.js";
21
- import { M as q } from "./map-pin-BaY37-Km.js";
1
+ import { jsxs as m, jsx as e, Fragment as O } from "react/jsx-runtime";
2
+ import { forwardRef as me, useId as he, useMemo as ge } from "react";
3
+ import { c as ye } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as ve } from "react-i18next";
5
+ import { B as w } from "./badge-BUk4RjTS.js";
6
+ import { C as V } from "./card-n6W6LW-N.js";
7
+ import { K as be, a as z, S as Ce } from "./key-value-pair-DOTl68_U.js";
8
+ import { L as d } from "./link-DtCfnLnF.js";
9
+ import { S as xe } from "./specialty-list-BzalHR8_.js";
10
+ import { b as Pe } from "./format-price-CIX0YJZn.js";
11
+ import { formatPhoneForDisplay as E } from "../format-phone/index.js";
12
+ import { u as ke } from "./registry-DvAUVLHh.js";
13
+ import { S } from "./stethoscope-sZXGC43m.js";
14
+ import { H as U } from "./heart--qCA4ffe.js";
15
+ import { c as we } from "./createLucideIcon-DhHxpK9K.js";
16
+ import { S as G } from "./shield-check-DCJALLVh.js";
17
+ import { L } from "./languages-CGLX6Qpe.js";
18
+ import { G as B } from "./globe-sHBW1JN5.js";
19
+ import { M as j } from "./mail-BqXVF2zH.js";
20
+ import { M as q } from "./message-circle-Bepl9JT5.js";
21
+ import { P as W } from "./phone-FceYcIFQ.js";
22
+ import { M as D } from "./map-pin-BaY37-Km.js";
22
23
  /**
23
24
  * @license lucide-react v1.22.0 - ISC
24
25
  *
25
26
  * This source code is licensed under the ISC license.
26
27
  * See the LICENSE file in the root directory of this source tree.
27
28
  */
28
- const ke = [
29
+ const Se = [
29
30
  ["rect", { width: "20", height: "12", x: "2", y: "6", rx: "2", key: "9lu3g6" }],
30
31
  ["circle", { cx: "12", cy: "12", r: "2", key: "1c9p78" }],
31
32
  ["path", { d: "M6 12h.01M18 12h.01", key: "113zkx" }]
32
- ], W = Pe("banknote", ke), we = {
33
+ ], Y = we("banknote", Se), Me = {
33
34
  id: "contact-profile-card",
34
35
  // Passive presentation surface — only exposes the rendered profession for
35
36
  // introspection. No interactive capability is backed by the handle.
@@ -61,7 +62,7 @@ const ke = [
61
62
  description: "Sourced from the id prop."
62
63
  }
63
64
  }
64
- }, Se = he(
65
+ }, $e = ye(
65
66
  "ds:w-full ds:text-[color:var(--foreground)] ds:[--key-value-pair-icon-color:var(--accent)]",
66
67
  {
67
68
  variants: {
@@ -77,14 +78,14 @@ const ke = [
77
78
  defaultVariants: { surface: "elevated" }
78
79
  }
79
80
  );
80
- function Me(i) {
81
+ function Ne(i) {
81
82
  return i.replace(/[^\d+]/g, "");
82
83
  }
83
- function $e(i, t) {
84
+ function Ae(i, t) {
84
85
  const l = `https://wa.me/${i}`;
85
86
  return t ? `${l}?text=${encodeURIComponent(t)}` : l;
86
87
  }
87
- function Ne(i) {
88
+ function Ie(i) {
88
89
  const t = i.trim(), l = /^[a-z][a-z0-9+.-]*:/i.test(t) ? t : `https://${t}`;
89
90
  try {
90
91
  const { protocol: a } = new URL(l);
@@ -96,17 +97,17 @@ function Ne(i) {
96
97
  function Re(i) {
97
98
  return `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(i.line)}`;
98
99
  }
99
- function Ae() {
100
+ function Ke() {
100
101
  if (typeof document > "u") return "4945a3";
101
102
  const i = getComputedStyle(document.documentElement).getPropertyValue("--map-marker-color").trim(), t = /^#?([0-9a-fA-F]{6})$/.exec(i);
102
103
  return t ? t[1] : "4945a3";
103
104
  }
104
- function Ie({ apiKey: i, center: t, zoom: l, altText: a }) {
105
- const s = Ae(), d = `https://maps.googleapis.com/maps/api/staticmap?center=${t.lat},${t.lng}&zoom=${l}&size=640x192&scale=2&markers=color:0x${s}%7C${t.lat},${t.lng}&key=${encodeURIComponent(i)}`;
105
+ function Fe({ apiKey: i, center: t, zoom: l, altText: a }) {
106
+ const s = Ke(), h = `https://maps.googleapis.com/maps/api/staticmap?center=${t.lat},${t.lng}&zoom=${l}&size=640x192&scale=2&markers=color:0x${s}%7C${t.lat},${t.lng}&key=${encodeURIComponent(i)}`;
106
107
  return /* @__PURE__ */ e(
107
108
  "img",
108
109
  {
109
- src: d,
110
+ src: h,
110
111
  alt: a,
111
112
  loading: "lazy",
112
113
  decoding: "async",
@@ -116,171 +117,174 @@ function Ie({ apiKey: i, center: t, zoom: l, altText: a }) {
116
117
  }
117
118
  );
118
119
  }
119
- const Ke = ue(
120
+ const Te = me(
120
121
  ({
121
122
  heading: i,
122
123
  description: t,
123
124
  contentLang: l,
124
125
  address: a,
125
126
  phone: s,
126
- whatsappNumber: d,
127
- whatsappMessage: D,
128
- email: g,
129
- website: u,
130
- languages: y,
131
- languageLabels: f,
132
- insurances: v,
133
- firstVisitPriceCents: b,
134
- currencyCode: S = "EUR",
127
+ phoneCountry: h,
128
+ whatsappNumber: g,
129
+ whatsappMessage: J,
130
+ email: y,
131
+ website: p,
132
+ languages: v,
133
+ languageLabels: u,
134
+ insurances: b,
135
+ firstVisitPriceCents: C,
136
+ currencyCode: M = "EUR",
135
137
  profession: x,
136
- specialties: C,
137
- specializedInFearPatients: Y,
138
- googleMapsApiKey: M,
139
- mapZoom: J = 14,
140
- onPhoneClick: Q,
141
- onWhatsAppClick: X,
142
- onMapClick: Z,
143
- onEmailClick: ee,
144
- headerSlot: ae,
145
- footerSlot: te,
146
- mapSlot: re,
147
- factsAsDefinitionList: $ = !1,
148
- surface: N = "elevated",
149
- "aria-label": ie,
150
- id: P,
151
- className: ne,
152
- ...oe
153
- }, le) => {
154
- const { t: r, i18n: R } = ge("ui"), A = fe(), I = R.language ?? "en", K = i ?? r("contactProfileCard.heading"), ce = ie ?? K, T = me(() => {
155
- if (b != null)
156
- return xe(
157
- b,
158
- S,
159
- I,
138
+ specialties: P,
139
+ specializedInFearPatients: Q,
140
+ googleMapsApiKey: $,
141
+ mapZoom: X = 14,
142
+ onPhoneClick: Z,
143
+ onWhatsAppClick: ee,
144
+ onMapClick: ae,
145
+ onEmailClick: te,
146
+ headerSlot: re,
147
+ footerSlot: ie,
148
+ mapSlot: oe,
149
+ factsAsDefinitionList: N = !1,
150
+ surface: A = "elevated",
151
+ "aria-label": ne,
152
+ id: k,
153
+ className: le,
154
+ ...ce
155
+ }, se) => {
156
+ const { t: r, i18n: I } = ve("ui"), R = he(), K = I.language ?? "en", F = i ?? r("contactProfileCard.heading"), de = ne ?? F, T = ge(() => {
157
+ if (C != null)
158
+ return Pe(
159
+ C,
160
+ M,
161
+ K,
160
162
  r("common.freeOfCharge")
161
163
  );
162
- }, [b, S, I, r]), o = [];
163
- if (a && o.push({
164
+ }, [C, M, K, r]), n = [];
165
+ if (a && n.push({
164
166
  key: "address",
165
- icon: /* @__PURE__ */ e(q, { "aria-hidden": "true" }),
167
+ icon: /* @__PURE__ */ e(D, { "aria-hidden": "true" }),
166
168
  label: r("contactProfileCard.label.address"),
167
- value: /* @__PURE__ */ h("span", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
169
+ value: /* @__PURE__ */ m("span", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
168
170
  /* @__PURE__ */ e("span", { lang: l, dir: "auto", children: a.line }),
169
171
  a.lat != null && a.lng != null ? /* @__PURE__ */ e(
170
- p,
172
+ d,
171
173
  {
172
174
  href: Re(a),
173
175
  external: !0,
174
176
  intent: "default",
175
- onClick: Z,
177
+ onClick: ae,
176
178
  children: r("contactProfileCard.openInGoogleMaps")
177
179
  }
178
180
  ) : null
179
181
  ] })
180
- }), s && o.push({
182
+ }), s && n.push({
181
183
  key: "phone",
182
- icon: /* @__PURE__ */ e(j, { "aria-hidden": "true" }),
184
+ icon: /* @__PURE__ */ e(W, { "aria-hidden": "true" }),
183
185
  label: r("contactProfileCard.label.phone"),
184
186
  value: /* @__PURE__ */ e(
185
- p,
187
+ d,
186
188
  {
187
- href: `tel:${Me(s)}`,
189
+ href: `tel:${Ne(s)}`,
188
190
  intent: "default",
189
- onClick: Q,
190
- children: /* @__PURE__ */ e("bdi", { dir: "ltr", children: s })
191
+ onClick: Z,
192
+ children: /* @__PURE__ */ e("bdi", { dir: "ltr", children: E(s, { defaultCountry: h }) })
191
193
  }
192
194
  )
193
- }), d && o.push({
195
+ }), g && n.push({
194
196
  key: "whatsapp",
195
- icon: /* @__PURE__ */ e(B, { "aria-hidden": "true" }),
197
+ icon: /* @__PURE__ */ e(q, { "aria-hidden": "true" }),
196
198
  label: r("contactProfileCard.label.whatsapp"),
197
199
  value: /* @__PURE__ */ e(
198
- p,
200
+ d,
199
201
  {
200
- href: $e(d, D),
202
+ href: Ae(g, J),
201
203
  external: !0,
202
204
  intent: "default",
203
- onClick: X,
204
- children: /* @__PURE__ */ e("bdi", { dir: "ltr", children: d })
205
+ onClick: ee,
206
+ children: /* @__PURE__ */ e("bdi", { dir: "ltr", children: E(g, {
207
+ digitsAreInternational: !0
208
+ }) })
205
209
  }
206
210
  )
207
- }), g && o.push({
211
+ }), y && n.push({
208
212
  key: "email",
209
- icon: /* @__PURE__ */ e(L, { "aria-hidden": "true" }),
213
+ icon: /* @__PURE__ */ e(j, { "aria-hidden": "true" }),
210
214
  label: r("contactProfileCard.label.email"),
211
215
  value: /* @__PURE__ */ e(
212
- p,
216
+ d,
213
217
  {
214
- href: `mailto:${g}`,
218
+ href: `mailto:${y}`,
215
219
  intent: "default",
216
- onClick: ee,
217
- children: /* @__PURE__ */ e("bdi", { dir: "ltr", children: g })
220
+ onClick: te,
221
+ children: /* @__PURE__ */ e("bdi", { dir: "ltr", children: y })
218
222
  }
219
223
  )
220
- }), u) {
221
- const n = Ne(u);
222
- o.push({
224
+ }), p) {
225
+ const o = Ie(p);
226
+ n.push({
223
227
  key: "website",
224
- icon: /* @__PURE__ */ e(G, { "aria-hidden": "true" }),
228
+ icon: /* @__PURE__ */ e(B, { "aria-hidden": "true" }),
225
229
  label: r("contactProfileCard.label.website"),
226
- value: n ? /* @__PURE__ */ e(p, { href: n, external: !0, intent: "default", children: /* @__PURE__ */ e("bdi", { dir: "ltr", children: u }) }) : /* @__PURE__ */ e("bdi", { dir: "ltr", children: u })
230
+ value: o ? /* @__PURE__ */ e(d, { href: o, external: !0, intent: "default", children: /* @__PURE__ */ e("bdi", { dir: "ltr", children: p }) }) : /* @__PURE__ */ e("bdi", { dir: "ltr", children: p })
227
231
  });
228
232
  }
229
- if (y && y.length > 0) {
230
- const n = (c) => {
231
- if (f != null && f[c]) return f[c];
232
- const F = `languages.${c}`;
233
- return R.exists(F) ? r(F) : c.toUpperCase();
233
+ if (v && v.length > 0) {
234
+ const o = (c) => {
235
+ if (u != null && u[c]) return u[c];
236
+ const H = `languages.${c}`;
237
+ return I.exists(H) ? r(H) : c.toUpperCase();
234
238
  };
235
- o.push({
239
+ n.push({
236
240
  key: "languages",
237
- icon: /* @__PURE__ */ e(U, { "aria-hidden": "true" }),
241
+ icon: /* @__PURE__ */ e(L, { "aria-hidden": "true" }),
238
242
  label: r("contactProfileCard.label.languages"),
239
- value: /* @__PURE__ */ e("span", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: y.map((c) => /* @__PURE__ */ e(k, { variant: "neutral", children: n(c) }, c)) })
243
+ value: /* @__PURE__ */ e("span", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: v.map((c) => /* @__PURE__ */ e(w, { variant: "neutral", children: o(c) }, c)) })
240
244
  });
241
245
  }
242
- v && v.length > 0 && o.push({
246
+ b && b.length > 0 && n.push({
243
247
  key: "insurances",
244
- icon: /* @__PURE__ */ e(E, { "aria-hidden": "true" }),
248
+ icon: /* @__PURE__ */ e(G, { "aria-hidden": "true" }),
245
249
  label: r("contactProfileCard.label.insurances"),
246
- value: /* @__PURE__ */ e("span", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: v.map((n) => /* @__PURE__ */ e(k, { variant: "info", children: n }, n)) })
247
- }), T && o.push({
250
+ value: /* @__PURE__ */ e("span", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: b.map((o) => /* @__PURE__ */ e(w, { variant: "info", children: o }, o)) })
251
+ }), T && n.push({
248
252
  key: "firstVisitPrice",
249
- icon: /* @__PURE__ */ e(W, { "aria-hidden": "true" }),
253
+ icon: /* @__PURE__ */ e(Y, { "aria-hidden": "true" }),
250
254
  label: r("contactProfileCard.label.firstVisitPrice"),
251
- value: /* @__PURE__ */ e(k, { variant: "accentSoft", size: "lg", children: T })
252
- }), Y && o.push({
255
+ value: /* @__PURE__ */ e(w, { variant: "accentSoft", size: "lg", children: T })
256
+ }), Q && n.push({
253
257
  key: "expertForAnxiousPatients",
254
- icon: /* @__PURE__ */ e(z, { "aria-hidden": "true" }),
258
+ icon: /* @__PURE__ */ e(U, { "aria-hidden": "true" }),
255
259
  label: r("contactProfileCard.label.expertForAnxiousPatients"),
256
260
  value: r("contactProfileCard.value.yesShort")
257
261
  });
258
- const m = C && C.length > 0 ? C : void 0;
259
- x && !m && o.push({
262
+ const f = P && P.length > 0 ? P : void 0;
263
+ x && !f && n.push({
260
264
  key: "profession",
261
- icon: /* @__PURE__ */ e(w, { "aria-hidden": "true" }),
265
+ icon: /* @__PURE__ */ e(S, { "aria-hidden": "true" }),
262
266
  label: r("contactProfileCard.label.profession"),
263
267
  value: x
264
- }), Ce(
265
- we,
268
+ }), ke(
269
+ Me,
266
270
  {
267
271
  getProfession: () => x,
268
- getSpecialtyKeys: () => (m ?? []).map((n) => n.key)
272
+ getSpecialtyKeys: () => (f ?? []).map((o) => o.key)
269
273
  },
270
- P
274
+ k
271
275
  );
272
- const se = !!M && (a == null ? void 0 : a.lat) !== void 0 && (a == null ? void 0 : a.lng) !== void 0 ? /* @__PURE__ */ e(
273
- Ie,
276
+ const pe = !!$ && (a == null ? void 0 : a.lat) !== void 0 && (a == null ? void 0 : a.lng) !== void 0 ? /* @__PURE__ */ e(
277
+ Fe,
274
278
  {
275
- apiKey: M,
279
+ apiKey: $,
276
280
  center: { lat: a.lat, lng: a.lng },
277
- zoom: J,
281
+ zoom: X,
278
282
  altText: r("contactProfileCard.map.alt", {
279
283
  address: a.line,
280
284
  defaultValue: "Map showing {{address}}"
281
285
  })
282
286
  }
283
- ) : null, de = re ?? se, pe = /* @__PURE__ */ h(H, { children: [
287
+ ) : null, ue = oe ?? pe, fe = /* @__PURE__ */ m(O, { children: [
284
288
  t ? /* @__PURE__ */ e(
285
289
  "p",
286
290
  {
@@ -290,63 +294,63 @@ const Ke = ue(
290
294
  children: t
291
295
  }
292
296
  ) : null,
293
- o.length > 0 ? /* @__PURE__ */ e(ye, { rowGap: "md", semantic: $, children: o.map((n) => /* @__PURE__ */ e(
294
- V,
297
+ n.length > 0 ? /* @__PURE__ */ e(be, { rowGap: "md", semantic: N, children: n.map((o) => /* @__PURE__ */ e(
298
+ z,
295
299
  {
296
- icon: n.icon,
297
- label: n.label,
298
- value: n.value
300
+ icon: o.icon,
301
+ label: o.label,
302
+ value: o.value
299
303
  },
300
- n.key
304
+ o.key
301
305
  )) }) : null,
302
- m ? (() => {
303
- const n = /* @__PURE__ */ e(
304
- V,
306
+ f ? (() => {
307
+ const o = /* @__PURE__ */ e(
308
+ z,
305
309
  {
306
310
  layout: "vertical",
307
311
  className: "ds:!gap-x-[var(--spacing-md)]",
308
- icon: /* @__PURE__ */ e(w, { "aria-hidden": "true" }),
312
+ icon: /* @__PURE__ */ e(S, { "aria-hidden": "true" }),
309
313
  label: r("contactProfileCard.label.profession"),
310
- value: /* @__PURE__ */ e(be, { items: m })
314
+ value: /* @__PURE__ */ e(xe, { items: f })
311
315
  }
312
316
  );
313
- return $ ? /* @__PURE__ */ e(ve, { children: n }) : n;
317
+ return N ? /* @__PURE__ */ e(Ce, { children: o }) : o;
314
318
  })() : null,
315
- de,
316
- te
317
- ] }), _ = /* @__PURE__ */ h(H, { children: [
318
- /* @__PURE__ */ h("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
319
- ae,
319
+ ue,
320
+ ie
321
+ ] }), _ = /* @__PURE__ */ m(O, { children: [
322
+ /* @__PURE__ */ m("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
323
+ re,
320
324
  /* @__PURE__ */ e(
321
325
  "h2",
322
326
  {
323
- id: A,
327
+ id: R,
324
328
  className: "type-title-card ds:m-0 ds:text-[color:var(--foreground)]",
325
- children: K
329
+ children: F
326
330
  }
327
331
  )
328
332
  ] }),
329
- pe
333
+ fe
330
334
  ] });
331
335
  return /* @__PURE__ */ e(
332
336
  "div",
333
337
  {
334
- ref: le,
338
+ ref: se,
335
339
  role: "region",
336
- "aria-label": ce,
337
- "aria-labelledby": A,
340
+ "aria-label": de,
341
+ "aria-labelledby": R,
338
342
  "data-component": "contact-profile-card",
339
- "data-component-id": P,
340
- id: P,
341
- className: Se({ surface: N, className: ne }),
342
- ...oe,
343
- children: N === "elevated" ? /* @__PURE__ */ e(O, { variant: "elevated", children: /* @__PURE__ */ e(O.Body, { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: _ }) }) : /* @__PURE__ */ e("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: _ })
343
+ "data-component-id": k,
344
+ id: k,
345
+ className: $e({ surface: A, className: le }),
346
+ ...ce,
347
+ children: A === "elevated" ? /* @__PURE__ */ e(V, { variant: "elevated", children: /* @__PURE__ */ e(V.Body, { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: _ }) }) : /* @__PURE__ */ e("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: _ })
344
348
  }
345
349
  );
346
350
  }
347
351
  );
348
- Ke.displayName = "ContactProfileCard";
349
- const aa = [
352
+ Te.displayName = "ContactProfileCard";
353
+ const ia = [
350
354
  "address",
351
355
  "phone",
352
356
  "whatsapp",
@@ -357,22 +361,22 @@ const aa = [
357
361
  "firstVisitPrice",
358
362
  "expertForAnxiousPatients",
359
363
  "profession"
360
- ], ta = {
361
- address: q,
362
- phone: j,
363
- whatsapp: B,
364
- email: L,
365
- website: G,
366
- languages: U,
367
- insurances: E,
368
- firstVisitPrice: W,
369
- expertForAnxiousPatients: z,
370
- profession: w
364
+ ], oa = {
365
+ address: D,
366
+ phone: W,
367
+ whatsapp: q,
368
+ email: j,
369
+ website: B,
370
+ languages: L,
371
+ insurances: G,
372
+ firstVisitPrice: Y,
373
+ expertForAnxiousPatients: U,
374
+ profession: S
371
375
  };
372
376
  export {
373
- ta as C,
374
- aa as a,
375
- Ke as b,
376
- we as c
377
+ oa as C,
378
+ ia as a,
379
+ Te as b,
380
+ Me as c
377
381
  };
378
- //# sourceMappingURL=contact-profile-card-BubJPyRB.js.map
382
+ //# sourceMappingURL=contact-profile-card-Jz2aSh7T.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contact-profile-card-Jz2aSh7T.js","sources":["../../node_modules/lucide-react/dist/esm/icons/banknote.mjs","../../src/components/contact-profile-card/contact-profile-card.agent.ts","../../src/components/contact-profile-card/contact-profile-card.tsx"],"sourcesContent":["/**\n * @license lucide-react v1.22.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconNode = [\n [\"rect\", { width: \"20\", height: \"12\", x: \"2\", y: \"6\", rx: \"2\", key: \"9lu3g6\" }],\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"2\", key: \"1c9p78\" }],\n [\"path\", { d: \"M6 12h.01M18 12h.01\", key: \"113zkx\" }]\n];\nconst Banknote = createLucideIcon(\"banknote\", __iconNode);\n\nexport { __iconNode, Banknote as default };\n//# sourceMappingURL=banknote.mjs.map\n","import type { AgentAdapter } from '../../agent/types';\nimport type { ContactProfileCardHandle } from './contact-profile-card';\n\n/* -------------------------------------------------------------------- */\n/* Agent adapter — ContactProfileCard */\n/* */\n/* Read-only adapter. Surfaces the rendered profession field so an */\n/* agent / MCP runtime can resolve \"what kind of practice is this?\" */\n/* without re-parsing the DOM. No actions yet — the card is a passive */\n/* presentation surface; navigation lives on the consumer's page. */\n/* -------------------------------------------------------------------- */\n\nexport const contactProfileCardAgent: AgentAdapter<ContactProfileCardHandle> = {\n id: 'contact-profile-card',\n // Passive presentation surface — only exposes the rendered profession for\n // introspection. No interactive capability is backed by the handle.\n capabilities: [],\n state: {\n profession: {\n type: 'string',\n descriptionKey: 'ui.agent.contactProfileCard.state.profession',\n description:\n 'Profession string the card is currently rendering — undefined when the consumer omitted it.',\n read: (handle) => handle.getProfession(),\n },\n specialtyKeys: {\n type: 'string[]',\n descriptionKey: 'ui.agent.contactProfileCard.state.specialtyKeys',\n description:\n 'Profession keys of the specialities the card is rendering, in display order. Empty when the consumer passed none.',\n read: (handle) => handle.getSpecialtyKeys(),\n },\n },\n actions: {},\n domHooks: {\n root: {\n attr: 'data-component',\n value: 'contact-profile-card',\n description: 'Marks the ContactProfileCard root region.',\n },\n instanceId: {\n attr: 'data-component-id',\n sourceProp: 'id',\n description: 'Sourced from the id prop.',\n },\n },\n};\n","import {\n forwardRef,\n useId,\n useMemo,\n type ComponentPropsWithoutRef,\n type ReactElement,\n type ReactNode,\n} from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { useTranslation } from 'react-i18next';\nimport {\n Banknote,\n ExternalLink,\n Globe,\n Heart,\n Languages as LanguagesIcon,\n Mail,\n MapPin,\n MessageCircle,\n Phone,\n ShieldCheck,\n Stethoscope,\n type LucideIcon,\n} from 'lucide-react';\nimport { Badge } from '../badge/badge';\nimport { Card } from '../card/card';\nimport {\n KeyValueList,\n KeyValuePair,\n SemanticKeyValueGroup,\n} from '../key-value-pair/key-value-pair';\nimport { Link } from '../link/link';\nimport {\n SpecialtyList,\n type SpecialtyListItem,\n} from '../specialty-list/specialty-list';\nimport { formatPriceOrFree } from '../_shared/format-price';\nimport { formatPhoneForDisplay } from '../_shared/format-phone';\nimport type { CountryCode } from 'libphonenumber-js/min';\nimport { useAgentRegistration } from '../../agent/registry';\nimport { contactProfileCardAgent } from './contact-profile-card.agent';\n\n/* -------------------------------------------------------------------- */\n/* ContactProfileCard */\n/* */\n/* Replaces the bespoke \"Profilo\" / \"Practice info\" cards that every */\n/* AlfaDocs surface composes by hand (booking-website PracticeInfoCard, */\n/* alfascribe operator pages, builders docs example, …). Composes Card */\n/* + KeyValueList + KeyValuePair so the labels share a column (no */\n/* zigzag values) and every row uses the same lucide icon family. */\n/* */\n/* The component is intentionally opinionated: every field is optional, */\n/* but the ORDER, ICONS, and LABELS are owned by the kit. Consumers */\n/* pass the data; the kit owns the visual + i18n. */\n/* */\n/* All visible text flows through `useTranslation('ui')` against the */\n/* `contactProfileCard.*` namespace. */\n/* -------------------------------------------------------------------- */\n\n/* -------------------------------------------------------------------- */\n/* CVA */\n/* -------------------------------------------------------------------- */\n\n// Override the KVP icon colour at the card root so every inner row's\n// leading glyph paints with `--accent` (brand magenta/violet) instead\n// of the default `--muted-foreground`. The ContactProfileCard is a\n// marketing surface — muted icons read as disabled against the\n// otherwise saturated card chrome. Scoped via CSS custom property so\n// only this card's icons shift; standalone KVPs elsewhere keep\n// `--muted-foreground`.\nconst rootVariants = cva(\n 'ds:w-full ds:text-[color:var(--foreground)] ds:[--key-value-pair-icon-color:var(--accent)]',\n {\n variants: {\n // Matches the kit's other `surface` props (Booking, ReviewsPanel).\n // The card itself renders `<Card variant=\"elevated\">` so the\n // `surface=\"flat\"` opt-out is rare — most consumers want the\n // boundary.\n surface: {\n flat: '',\n elevated: '',\n },\n },\n defaultVariants: { surface: 'elevated' },\n },\n);\n\n/* -------------------------------------------------------------------- */\n/* Public types */\n/* -------------------------------------------------------------------- */\n\nexport interface ContactProfileCardAddress {\n /** Display text — already formatted by the consumer (street, postcode, city). */\n line: string;\n /** Optional lat/lng — drives the static-map link + the embedded thumbnail. */\n lat?: number;\n lng?: number;\n}\n\nexport interface ContactProfileCardHandle {\n /** Resolved consumer-supplied data — useful for agent introspection. */\n getProfession: () => string | undefined;\n /** Profession keys of the rendered specialities, empty when there are none. */\n getSpecialtyKeys: () => string[];\n}\n\nexport interface ContactProfileCardProps extends Omit<\n ComponentPropsWithoutRef<'div'>,\n 'aria-label' | 'children' | 'children'\n> {\n /**\n * Override the localised \"Profilo\" / \"Profile\" heading. Most\n * consumers leave this unset.\n */\n heading?: string;\n /**\n * Free-text intro paragraph rendered above the data rows (e.g.\n * the practice's `bookingDescription` field). When omitted, the\n * card jumps straight into the data rows.\n */\n description?: string;\n /**\n * Language of the practice's own text (the description and the address\n * line), as a BCP 47 tag such as `\"it\"`. Written as `lang` on that text so\n * a screen reader on a page in another language pronounces it correctly.\n * Leave it out and no `lang` is written. The kit's own labels keep the\n * page language.\n */\n contentLang?: string;\n\n /* ----- Identity rows ----- */\n\n /** Street + postcode + city, with optional lat/lng for the map link. */\n address?: ContactProfileCardAddress;\n /**\n * Phone number. Shown in international format (`+39 070 123 4567`); a number that cannot be read is\n * shown as given. The `tel:` link uses the value as given.\n */\n phone?: string;\n /**\n * Country of the practice (ISO 3166-1 alpha-2, for example `\"IT\"`). Used\n * to read a `phone` written without a country code, such as\n * `0701234567`. A number that starts with `+` ignores it.\n */\n phoneCountry?: CountryCode;\n /**\n * WhatsApp number — digits only, starting with the country code (no `+`,\n * no spaces). Compiled into a `https://wa.me/<number>` link with an\n * optional pre-filled message. Shown in international format\n * (`+39 331 234 5678`).\n */\n whatsappNumber?: string;\n /** Optional pre-filled WhatsApp message. Consumer-localised. */\n whatsappMessage?: string;\n /** Public-facing email. Compiled into a `mailto:` link. */\n email?: string;\n /**\n * Practice website. An address without a scheme (`www.example.it`) is\n * linked over `https://`; anything but a web address shows as text.\n */\n website?: string;\n\n /* ----- Embedded map thumbnail ----- */\n\n /**\n * Google Maps Static API key. When provided alongside `address.lat`\n * and `address.lng`, renders a static-map thumbnail at the top of\n * the card — a single one-shot `<img>` fetch, no JS SDK boot, no\n * consent gate needed (the same pattern PracticeResults uses).\n *\n * Without it (or without coords), the card renders info rows only —\n * the address row's \"Open in Google Maps\" link is still emitted as\n * a real `<a>` so the spatial cue isn't lost.\n *\n * Additive — existing consumers that don't pass this prop see the\n * same render as before.\n */\n googleMapsApiKey?: string;\n /**\n * Zoom level for the embedded map thumbnail. Default `14` —\n * neighbourhood-level, shows the pin in context. Ignored when the\n * thumbnail isn't rendered.\n */\n mapZoom?: number;\n\n /* ----- Profile metadata ----- */\n\n /**\n * ISO 639-1 language codes the practice speaks. Rendered as\n * `<Badge variant=\"neutral\">` chips. Each code is auto-resolved\n * into the active locale's native language name via the kit's\n * built-in `languages.<iso>` i18n bundle (18 ISO codes × 18\n * locales). For example `languages={['it', 'en']}` with\n * `i18n.language === 'it'` renders \"Italiano\" + \"Inglese\".\n *\n * Unknown / unbundled codes fall back to the uppercase ISO code\n * (`'xyz'` → `'XYZ'`). To override a specific label — regional\n * dialect, brand-voice variant, codes the kit doesn't ship — pass\n * `languageLabels`.\n */\n languages?: string[];\n /**\n * Override map from ISO code → display label, applied on top of\n * the kit's i18n auto-resolution. Only set when you need a\n * consumer-specific label for a code — the typical case is\n * regional dialect / brand-voice variants / non-ISO codes.\n *\n * Resolution order: `languageLabels[code]` > `t('languages.<code>')`\n * > `code.toUpperCase()`.\n */\n languageLabels?: Record<string, string>;\n /**\n * Insurance / convention strings (consumer-supplied, free text).\n * Rendered as `<Badge variant=\"info\">` chips.\n */\n insurances?: string[];\n /**\n * First-visit price in the smallest currency unit (cents / centesimi).\n * Formatted via `Intl.NumberFormat`; `0` renders the translated word\n * \"Free\". Omit when the consumer doesn't want to show the price.\n */\n firstVisitPriceCents?: number;\n /** ISO-4217 currency code for the price formatter. Defaults to `EUR`. */\n currencyCode?: string;\n /** Profession line — single value or already-joined comma list. */\n profession?: string;\n /**\n * The practice's specialities, each with its medical glyph. When present\n * and not empty they replace the `profession` row with a vertical row\n * (\"Profession\" above, a `SpecialtyList` below): a long list needs the full\n * card width, not the value column. When absent or empty the `profession`\n * string row renders as before.\n */\n specialties?: SpecialtyListItem[];\n /** Show the \"expert for anxious patients\" row when true. */\n specializedInFearPatients?: boolean;\n\n /* ----- Telemetry hooks ----- */\n\n /**\n * Fires when the patient clicks the phone link. The kit emits a\n * `track('practice_profile_card_phone_click')` event before\n * invoking this — gate consumer-side analytics on the same event\n * to avoid duplicate fires.\n */\n onPhoneClick?: () => void;\n /** Fires when the patient clicks the WhatsApp link. */\n onWhatsAppClick?: () => void;\n /** Fires when the patient clicks the static-map link. */\n onMapClick?: () => void;\n /** Fires when the patient clicks the email mailto link. */\n onEmailClick?: () => void;\n\n /* ----- Slots ----- */\n\n /**\n * Rendered above the heading — e.g. a `<Avatar>` for the operator\n * variant, or a coloured chip strip. Optional.\n */\n headerSlot?: ReactNode;\n /**\n * Render an arbitrary map widget at the top of the card chrome —\n * replaces the built-in static `<img>` thumbnail that\n * `googleMapsApiKey` would otherwise produce. Use this when you\n * want an interactive map inside the card boundary instead of a\n * fixed image:\n *\n * <ContactProfileCard\n * mapSlot={\n * <PracticeMap practice={practice} googleMapsApiKey={key} />\n * }\n * …\n * />\n *\n * When both `mapSlot` and `googleMapsApiKey` are provided, the slot\n * wins (explicit > implicit). When neither is provided, no map area\n * renders. The slot is unstyled — pass through any container chrome\n * the consumer wants (e.g. a fixed height wrapper). The kit\n * positions it where the static thumbnail would have lived.\n */\n mapSlot?: ReactNode;\n /**\n * @default false\n * Render the facts (address, phone, languages and the other rows) as a\n * real definition list: a `<dl>` with one `<dt>` label and one `<dd>`\n * value per row, so crawlers and screen readers pair every label with its\n * value. Same look as the default; only the elements change. Turn it on\n * for public pages that search engines index, such as the practice page.\n */\n factsAsDefinitionList?: boolean;\n /**\n * Rendered at the end of the card body, below the rows. Use for\n * a \"Book now\" `<Button>` or a \"View full profile\" link.\n */\n footerSlot?: ReactNode;\n\n /* ----- Styling ----- */\n\n /**\n * `'elevated'` (default) wraps the card in `<Card variant=\"elevated\">`\n * for a defined surface — what most consumers want when the card\n * stands alone on a page. `'flat'` drops the Card chrome so the\n * content sits naked — use when an outer card / sheet already\n * provides the boundary (e.g. embedded inside a `<Sheet>` or a\n * parent `<Card.Body>`).\n */\n surface?: 'flat' | 'elevated';\n\n /* ----- a11y ----- */\n\n /** Override the default region aria-label. */\n 'aria-label'?: string;\n /** Agent-readiness consumer id, surfaced as `data-component-id`. */\n id?: string;\n}\n\n/* -------------------------------------------------------------------- */\n/* Helpers */\n/* -------------------------------------------------------------------- */\n\n/** Strip everything except digits + leading `+` for `tel:` URLs. */\nfunction normalisePhone(raw: string): string {\n return raw.replace(/[^\\d+]/g, '');\n}\n\n/** Build the WhatsApp `wa.me` URL. Number must already be digits-only. */\nfunction buildWhatsAppHref(number: string, message?: string): string {\n const base = `https://wa.me/${number}`;\n if (!message) return base;\n return `${base}?text=${encodeURIComponent(message)}`;\n}\n\n/**\n * The website as a link address, or undefined when it is not a web\n * address. Practices often save `www.example.it`, which a link would\n * resolve against the current page, and the field is practice-written,\n * so a `javascript:` value must never become a link.\n */\nfunction websiteHref(website: string): string | undefined {\n const value = website.trim();\n const href = /^[a-z][a-z0-9+.-]*:/i.test(value) ? value : `https://${value}`;\n try {\n const { protocol } = new URL(href);\n return protocol === 'http:' || protocol === 'https:' ? href : undefined;\n } catch {\n return undefined;\n }\n}\n\n/** Google Maps search query — works without an API key. */\nfunction buildMapHref(address: ContactProfileCardAddress): string {\n const q = encodeURIComponent(address.line);\n return `https://www.google.com/maps/search/?api=1&query=${q}`;\n}\n\n/* -------------------------------------------------------------------- */\n/* MapThumbStrip — embedded Google Static Maps image */\n/* */\n/* Full-width strip rendered at the top of the card when the consumer */\n/* supplies both `address.lat`/`lng` and `googleMapsApiKey`. Same */\n/* one-shot `<img>` strategy as PracticeResults' StaticMapThumb (no JS */\n/* SDK boot → no consent gate needed), but full-card-width instead of */\n/* a 12rem aside. */\n/* -------------------------------------------------------------------- */\n\ninterface MapThumbStripProps {\n apiKey: string;\n center: { lat: number; lng: number };\n zoom: number;\n altText: string;\n}\n\n/**\n * Resolve the kit's `--map-marker-color` token to a six-character hex\n * string (no leading `#`) for Google Static Maps' `markers=color:` URL\n * parameter, which requires a literal hex value at fetch time.\n *\n * SSR-safe: when `document` is undefined we fall back to the kit's\n * brand violet. Same helper as PracticeResults — keep in sync if you\n * touch one.\n */\nfunction getStaticMapMarkerHex(): string {\n if (typeof document === 'undefined') return '4945a3';\n const raw = getComputedStyle(document.documentElement)\n .getPropertyValue('--map-marker-color')\n .trim();\n const match = /^#?([0-9a-fA-F]{6})$/.exec(raw);\n return match ? match[1] : '4945a3';\n}\n\nfunction MapThumbStrip({ apiKey, center, zoom, altText }: MapThumbStripProps) {\n // 640×192 keeps the asset under Google's 1MP free tier at scale=2\n // (1280×384 actual) and matches the strip's 12rem height at a\n // ~3.33:1 aspect ratio. Marker colour resolves from the kit's\n // `--map-marker-color` token at runtime so the value still lives\n // in `src/tokens/**` per the closed-palette constraint.\n const markerHex = getStaticMapMarkerHex();\n const src =\n `https://maps.googleapis.com/maps/api/staticmap` +\n `?center=${center.lat},${center.lng}` +\n `&zoom=${zoom}` +\n `&size=640x192&scale=2` +\n `&markers=color:0x${markerHex}%7C${center.lat},${center.lng}` +\n `&key=${encodeURIComponent(apiKey)}`;\n return (\n <img\n src={src}\n alt={altText}\n loading=\"lazy\"\n decoding=\"async\"\n width={640}\n height={192}\n className=\"ds:block ds:w-full ds:h-[12rem] ds:[object-fit:cover] ds:rounded-[var(--radius-md)]\"\n />\n );\n}\n\n/* -------------------------------------------------------------------- */\n/* Component */\n/* -------------------------------------------------------------------- */\n\nexport const ContactProfileCard = forwardRef<\n HTMLDivElement,\n ContactProfileCardProps\n>(\n (\n {\n heading,\n description,\n contentLang,\n address,\n phone,\n phoneCountry,\n whatsappNumber,\n whatsappMessage,\n email,\n website,\n languages,\n languageLabels,\n insurances,\n firstVisitPriceCents,\n currencyCode = 'EUR',\n profession,\n specialties,\n specializedInFearPatients,\n googleMapsApiKey,\n mapZoom = 14,\n onPhoneClick,\n onWhatsAppClick,\n onMapClick,\n onEmailClick,\n headerSlot,\n footerSlot,\n mapSlot,\n factsAsDefinitionList = false,\n surface = 'elevated',\n 'aria-label': ariaLabel,\n id,\n className,\n ...rest\n },\n ref,\n ) => {\n const { t, i18n } = useTranslation('ui');\n const headingId = useId();\n const locale = i18n.language ?? 'en';\n\n const resolvedHeading = heading ?? t('contactProfileCard.heading');\n const resolvedAriaLabel = ariaLabel ?? resolvedHeading;\n\n const formattedPrice = useMemo(() => {\n if (firstVisitPriceCents == null) return undefined;\n // 0 is a free first visit: the chip reads \"Free\", not \"€0.00\".\n return formatPriceOrFree(\n firstVisitPriceCents,\n currencyCode,\n locale,\n t('common.freeOfCharge'),\n );\n }, [firstVisitPriceCents, currencyCode, locale, t]);\n\n // Compose the rows in display order. Each `row` carries the icon +\n // localised label + the rendered value. Skipping a field is just\n // omitting the row — `KeyValueList` collapses the subgrid cleanly.\n const rows: Array<{\n key: string;\n icon: ReactElement;\n label: string;\n value: ReactNode;\n }> = [];\n\n if (address) {\n rows.push({\n key: 'address',\n icon: <MapPin aria-hidden=\"true\" />,\n label: t('contactProfileCard.label.address'),\n value: (\n <span className=\"ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]\">\n <span lang={contentLang} dir=\"auto\">\n {address.line}\n </span>\n {address.lat != null && address.lng != null ? (\n <Link\n href={buildMapHref(address)}\n external\n intent=\"default\"\n onClick={onMapClick}\n >\n {t('contactProfileCard.openInGoogleMaps')}\n </Link>\n ) : null}\n </span>\n ),\n });\n }\n\n if (phone) {\n rows.push({\n key: 'phone',\n icon: <Phone aria-hidden=\"true\" />,\n label: t('contactProfileCard.label.phone'),\n value: (\n <Link\n href={`tel:${normalisePhone(phone)}`}\n intent=\"default\"\n onClick={onPhoneClick}\n >\n <bdi dir=\"ltr\">\n {formatPhoneForDisplay(phone, { defaultCountry: phoneCountry })}\n </bdi>\n </Link>\n ),\n });\n }\n\n if (whatsappNumber) {\n rows.push({\n key: 'whatsapp',\n icon: <MessageCircle aria-hidden=\"true\" />,\n label: t('contactProfileCard.label.whatsapp'),\n value: (\n <Link\n href={buildWhatsAppHref(whatsappNumber, whatsappMessage)}\n external\n intent=\"default\"\n onClick={onWhatsAppClick}\n >\n <bdi dir=\"ltr\">\n {formatPhoneForDisplay(whatsappNumber, {\n digitsAreInternational: true,\n })}\n </bdi>\n </Link>\n ),\n });\n }\n\n if (email) {\n rows.push({\n key: 'email',\n icon: <Mail aria-hidden=\"true\" />,\n label: t('contactProfileCard.label.email'),\n value: (\n <Link\n href={`mailto:${email}`}\n intent=\"default\"\n onClick={onEmailClick}\n >\n <bdi dir=\"ltr\">{email}</bdi>\n </Link>\n ),\n });\n }\n\n if (website) {\n const href = websiteHref(website);\n rows.push({\n key: 'website',\n icon: <Globe aria-hidden=\"true\" />,\n label: t('contactProfileCard.label.website'),\n value: href ? (\n <Link href={href} external intent=\"default\">\n <bdi dir=\"ltr\">{website}</bdi>\n </Link>\n ) : (\n <bdi dir=\"ltr\">{website}</bdi>\n ),\n });\n }\n\n if (languages && languages.length > 0) {\n // Resolution order, highest to lowest:\n // 1. consumer `languageLabels` override — for regional dialects,\n // brand-voice variants, or codes the kit doesn't ship.\n // 2. kit i18n bundle (`languages.<iso>`) — auto-resolves the 18\n // ISO codes the kit ships into the active locale's native\n // language name. Retires consumer-side ISO→label plumbing.\n // 3. uppercase fallback for unknown codes that the consumer\n // didn't override.\n const resolveLabel = (code: string): string => {\n if (languageLabels?.[code]) return languageLabels[code];\n const key = `languages.${code}`;\n if (i18n.exists(key)) return t(key);\n return code.toUpperCase();\n };\n rows.push({\n key: 'languages',\n icon: <LanguagesIcon aria-hidden=\"true\" />,\n label: t('contactProfileCard.label.languages'),\n value: (\n <span className=\"ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]\">\n {languages.map((code) => (\n <Badge key={code} variant=\"neutral\">\n {resolveLabel(code)}\n </Badge>\n ))}\n </span>\n ),\n });\n }\n\n if (insurances && insurances.length > 0) {\n rows.push({\n key: 'insurances',\n icon: <ShieldCheck aria-hidden=\"true\" />,\n label: t('contactProfileCard.label.insurances'),\n value: (\n <span className=\"ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]\">\n {insurances.map((ins) => (\n <Badge key={ins} variant=\"info\">\n {ins}\n </Badge>\n ))}\n </span>\n ),\n });\n }\n\n if (formattedPrice) {\n // The one figure on this card a patient compares between\n // practices, so it gets a chip. The chip starts in the value\n // column with every other row's value (the subgrid aligns them),\n // not pinned to the row's end, where it read as out of line.\n // `accentSoft`, not `brand`. The languages and insurance rows on\n // this card are tonal chips (`neutral` and `info`), so a solid\n // `brand` fill would read as a different class of object rather\n // than the same family. `accentSoft` is the same tonal recipe in\n // the most distinct hue on the card, so the price still leads.\n // `lg` because `md` sets the label at the smallest step of the\n // ramp, and `.theme-accessible` cannot lift it — the one figure\n // patients compare should not be the smallest text on the card.\n rows.push({\n key: 'firstVisitPrice',\n icon: <Banknote aria-hidden=\"true\" />,\n label: t('contactProfileCard.label.firstVisitPrice'),\n value: (\n <Badge variant=\"accentSoft\" size=\"lg\">\n {formattedPrice}\n </Badge>\n ),\n });\n }\n\n if (specializedInFearPatients) {\n rows.push({\n key: 'expertForAnxiousPatients',\n icon: <Heart aria-hidden=\"true\" />,\n label: t('contactProfileCard.label.expertForAnxiousPatients'),\n value: t('contactProfileCard.value.yesShort'),\n });\n }\n\n const specialtyItems =\n specialties && specialties.length > 0 ? specialties : undefined;\n\n if (profession && !specialtyItems) {\n rows.push({\n key: 'profession',\n icon: <Stethoscope aria-hidden=\"true\" />,\n label: t('contactProfileCard.label.profession'),\n value: profession,\n });\n }\n\n // Imperative handle for agent integrations.\n useAgentRegistration(\n contactProfileCardAgent,\n {\n getProfession: () => profession,\n getSpecialtyKeys: () => (specialtyItems ?? []).map((item) => item.key),\n },\n id,\n );\n\n // Embedded static-map thumbnail. Renders only when the consumer\n // supplies BOTH a usable lat/lng pair AND a `googleMapsApiKey`.\n // The d.ts-promised behaviour; without a key the strip is silently\n // omitted and the address row's \"Open in Google Maps\" link still\n // emits as the spatial-cue fallback.\n const showMapThumb =\n !!googleMapsApiKey &&\n address?.lat !== undefined &&\n address?.lng !== undefined;\n const mapThumb = showMapThumb ? (\n <MapThumbStrip\n apiKey={googleMapsApiKey!}\n center={{ lat: address!.lat!, lng: address!.lng! }}\n zoom={mapZoom}\n altText={t('contactProfileCard.map.alt', {\n address: address!.line,\n defaultValue: 'Map showing {{address}}',\n })}\n />\n ) : null;\n\n // Map area: explicit consumer slot wins over the implicit\n // googleMapsApiKey-driven static thumbnail. 0.33.4 introduces the\n // slot so consumers can embed an interactive <MapView> /\n // <PracticeMap> wrapper inside the card chrome instead of the\n // fixed static <img>. When neither is set the area renders as\n // nothing. 0.33.6 moves the area from above the heading to below\n // the data rows — the map reads as the spatial closer (\"here it\n // is on the map\") rather than a stylised hero, and any CTA in\n // footerSlot still lands at the very bottom.\n const mapArea = mapSlot ?? mapThumb;\n\n const body = (\n <>\n {description ? (\n <p\n lang={contentLang}\n dir=\"auto\"\n className=\"type-body-sm ds:m-0 ds:whitespace-pre-line\"\n >\n {description}\n </p>\n ) : null}\n {rows.length > 0 ? (\n <KeyValueList rowGap=\"md\" semantic={factsAsDefinitionList}>\n {rows.map((row) => (\n <KeyValuePair\n key={row.key}\n icon={row.icon}\n label={row.label}\n value={row.value}\n />\n ))}\n </KeyValueList>\n ) : null}\n {specialtyItems\n ? (() => {\n // Outside the KeyValueList on purpose: its rows are promoted to a\n // three-column subgrid, which a stacked label-above-value row does\n // not fit. The icon gap is the list's column gap (`gap-x-md`), so\n // this label and its list line up with the labels above. In\n // definition-list mode it is still a dt/dd pair, in its own dl.\n const specialtyPair = (\n <KeyValuePair\n layout=\"vertical\"\n className=\"ds:!gap-x-[var(--spacing-md)]\"\n icon={<Stethoscope aria-hidden=\"true\" />}\n label={t('contactProfileCard.label.profession')}\n value={<SpecialtyList items={specialtyItems} />}\n />\n );\n return factsAsDefinitionList ? (\n <SemanticKeyValueGroup>{specialtyPair}</SemanticKeyValueGroup>\n ) : (\n specialtyPair\n );\n })()\n : null}\n {mapArea}\n {footerSlot}\n </>\n );\n\n // `surface=\"flat\"` skips the Card wrapper — the consumer is\n // already inside a Card / Sheet and doesn't want a double border.\n const inner = (\n <>\n <div className=\"ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]\">\n {headerSlot}\n <h2\n id={headingId}\n className=\"type-title-card ds:m-0 ds:text-[color:var(--foreground)]\"\n >\n {resolvedHeading}\n </h2>\n </div>\n {body}\n </>\n );\n\n return (\n <div\n ref={ref}\n role=\"region\"\n aria-label={resolvedAriaLabel}\n aria-labelledby={headingId}\n data-component=\"contact-profile-card\"\n data-component-id={id}\n id={id}\n className={rootVariants({ surface, className })}\n {...rest}\n >\n {surface === 'elevated' ? (\n <Card variant=\"elevated\">\n <Card.Body className=\"ds:flex ds:flex-col ds:gap-[var(--spacing-md)]\">\n {inner}\n </Card.Body>\n </Card>\n ) : (\n <div className=\"ds:flex ds:flex-col ds:gap-[var(--spacing-md)]\">\n {inner}\n </div>\n )}\n </div>\n );\n },\n);\n\nContactProfileCard.displayName = 'ContactProfileCard';\n\n// Helper export so consumers can mirror the kit's row order if they\n// need to compose a partial alternative (rare).\nexport const CONTACT_PROFILE_CARD_ROW_KEYS = [\n 'address',\n 'phone',\n 'whatsapp',\n 'email',\n 'website',\n 'languages',\n 'insurances',\n 'firstVisitPrice',\n 'expertForAnxiousPatients',\n 'profession',\n] as const;\n\n// Defensive icon export so consumers can render the same glyph\n// outside the card if they need it for consistency.\nexport const CONTACT_PROFILE_CARD_ROW_ICONS: Record<\n (typeof CONTACT_PROFILE_CARD_ROW_KEYS)[number],\n LucideIcon\n> = {\n address: MapPin,\n phone: Phone,\n whatsapp: MessageCircle,\n email: Mail,\n website: Globe,\n languages: LanguagesIcon,\n insurances: ShieldCheck,\n firstVisitPrice: Banknote,\n expertForAnxiousPatients: Heart,\n profession: Stethoscope,\n};\n\n// Re-exports of the rootVariants type for downstream typing.\nexport type ContactProfileCardSurface = NonNullable<\n VariantProps<typeof rootVariants>['surface']\n>;\n\n// ExternalLink is exported by lucide-react and used elsewhere in the\n// kit; re-exporting here so consumers don't have to add it as a\n// peer-dep import for icon parity in their own UIs.\nexport { ExternalLink };\n"],"names":["__iconNode","Banknote","createLucideIcon","contactProfileCardAgent","handle","rootVariants","cva","normalisePhone","raw","buildWhatsAppHref","number","message","base","websiteHref","website","value","href","protocol","buildMapHref","address","getStaticMapMarkerHex","match","MapThumbStrip","apiKey","center","zoom","altText","markerHex","src","jsx","ContactProfileCard","forwardRef","heading","description","contentLang","phone","phoneCountry","whatsappNumber","whatsappMessage","email","languages","languageLabels","insurances","firstVisitPriceCents","currencyCode","profession","specialties","specializedInFearPatients","googleMapsApiKey","mapZoom","onPhoneClick","onWhatsAppClick","onMapClick","onEmailClick","headerSlot","footerSlot","mapSlot","factsAsDefinitionList","surface","ariaLabel","id","className","rest","ref","t","i18n","useTranslation","headingId","useId","locale","resolvedHeading","resolvedAriaLabel","formattedPrice","useMemo","formatPriceOrFree","rows","MapPin","jsxs","Link","Phone","formatPhoneForDisplay","MessageCircle","Mail","Globe","resolveLabel","code","key","LanguagesIcon","Badge","ShieldCheck","ins","Heart","specialtyItems","Stethoscope","useAgentRegistration","item","mapThumb","mapArea","body","Fragment","KeyValueList","row","KeyValuePair","specialtyPair","SpecialtyList","SemanticKeyValueGroup","inner","Card","CONTACT_PROFILE_CARD_ROW_KEYS","CONTACT_PROFILE_CARD_ROW_ICONS"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,MAAMA,KAAa;AAAA,EACjB,CAAC,QAAQ,EAAE,OAAO,MAAM,QAAQ,MAAM,GAAG,KAAK,GAAG,KAAK,IAAI,KAAK,KAAK,SAAQ,CAAE;AAAA,EAC9E,CAAC,UAAU,EAAE,IAAI,MAAM,IAAI,MAAM,GAAG,KAAK,KAAK,UAAU;AAAA,EACxD,CAAC,QAAQ,EAAE,GAAG,uBAAuB,KAAK,SAAQ,CAAE;AACtD,GACMC,IAAWC,GAAiB,YAAYF,EAAU,GCF3CG,KAAkE;AAAA,EAC7E,IAAI;AAAA;AAAA;AAAA,EAGJ,cAAc,CAAA;AAAA,EACd,OAAO;AAAA,IACL,YAAY;AAAA,MACV,MAAM;AAAA,MACN,gBAAgB;AAAA,MAChB,aACE;AAAA,MACF,MAAM,CAACC,MAAWA,EAAO,cAAA;AAAA,IAAc;AAAA,IAEzC,eAAe;AAAA,MACb,MAAM;AAAA,MACN,gBAAgB;AAAA,MAChB,aACE;AAAA,MACF,MAAM,CAACA,MAAWA,EAAO,iBAAA;AAAA,IAAiB;AAAA,EAC5C;AAAA,EAEF,SAAS,CAAA;AAAA,EACT,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,OAAO;AAAA,MACP,aAAa;AAAA,IAAA;AAAA,IA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