@alfadocs/ui-kit-debug 1.125.0 → 1.125.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.
Files changed (25) hide show
  1. package/dist/_chunks/{contact-profile-card-Jz2aSh7T.js → contact-profile-card-CCgf0Ntt.js} +43 -40
  2. package/dist/_chunks/contact-profile-card-CCgf0Ntt.js.map +1 -0
  3. package/dist/_chunks/{map-view-DRd_GRQf.js → map-view-CO4F0hMV.js} +28 -28
  4. package/dist/_chunks/{map-view-DRd_GRQf.js.map → map-view-CO4F0hMV.js.map} +1 -1
  5. package/dist/_chunks/{practice-results-CbxBCDaU.js → practice-results-LdLuDvQg.js} +2 -2
  6. package/dist/_chunks/{practice-results-CbxBCDaU.js.map → practice-results-LdLuDvQg.js.map} +1 -1
  7. package/dist/_chunks/{reserved.agent-CCwsOb3M.js → reserved.agent-Dxzmi3GS.js} +530 -526
  8. package/dist/_chunks/reserved.agent-Dxzmi3GS.js.map +1 -0
  9. package/dist/agent-catalog.json +1 -1
  10. package/dist/browser-support.js +1 -1
  11. package/dist/components/booking/booking-types.d.ts +3 -2
  12. package/dist/components/booking/booking-types.d.ts.map +1 -1
  13. package/dist/components/booking/booking.d.ts.map +1 -1
  14. package/dist/components/booking/index.js +1 -1
  15. package/dist/components/contact-profile-card/contact-profile-card.d.ts.map +1 -1
  16. package/dist/components/contact-profile-card/index.js +1 -1
  17. package/dist/components/map-view/index.js +1 -1
  18. package/dist/components/map-view/map-view.d.ts.map +1 -1
  19. package/dist/components/practice-results/index.js +1 -1
  20. package/dist/core.css +1 -1
  21. package/dist/index.js +4 -4
  22. package/dist/tokens.css +1 -1
  23. package/package.json +1 -1
  24. package/dist/_chunks/contact-profile-card-Jz2aSh7T.js.map +0 -1
  25. package/dist/_chunks/reserved.agent-CCwsOb3M.js.map +0 -1
@@ -145,15 +145,15 @@ const Te = me(
145
145
  onEmailClick: te,
146
146
  headerSlot: re,
147
147
  footerSlot: ie,
148
- mapSlot: oe,
148
+ mapSlot: ne,
149
149
  factsAsDefinitionList: N = !1,
150
150
  surface: A = "elevated",
151
- "aria-label": ne,
151
+ "aria-label": oe,
152
152
  id: k,
153
153
  className: le,
154
154
  ...ce
155
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(() => {
156
+ const { t: r, i18n: I } = ve("ui"), R = he(), K = I.language ?? "en", F = i ?? r("contactProfileCard.heading"), de = oe ?? F, T = ge(() => {
157
157
  if (C != null)
158
158
  return Pe(
159
159
  C,
@@ -161,25 +161,28 @@ const Te = me(
161
161
  K,
162
162
  r("common.freeOfCharge")
163
163
  );
164
- }, [C, M, K, r]), n = [];
165
- if (a && n.push({
164
+ }, [C, M, K, r]), o = [];
165
+ if (a && o.push({
166
166
  key: "address",
167
167
  icon: /* @__PURE__ */ e(D, { "aria-hidden": "true" }),
168
168
  label: r("contactProfileCard.label.address"),
169
169
  value: /* @__PURE__ */ m("span", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
170
170
  /* @__PURE__ */ e("span", { lang: l, dir: "auto", children: a.line }),
171
- a.lat != null && a.lng != null ? /* @__PURE__ */ e(
172
- d,
173
- {
174
- href: Re(a),
175
- external: !0,
176
- intent: "default",
177
- onClick: ae,
178
- children: r("contactProfileCard.openInGoogleMaps")
179
- }
171
+ a.lat != null && a.lng != null ? (
172
+ // A secondary action under the address: the small body size.
173
+ /* @__PURE__ */ e("span", { className: "type-body-sm", children: /* @__PURE__ */ e(
174
+ d,
175
+ {
176
+ href: Re(a),
177
+ external: !0,
178
+ intent: "default",
179
+ onClick: ae,
180
+ children: r("contactProfileCard.openInGoogleMaps")
181
+ }
182
+ ) })
180
183
  ) : null
181
184
  ] })
182
- }), s && n.push({
185
+ }), s && o.push({
183
186
  key: "phone",
184
187
  icon: /* @__PURE__ */ e(W, { "aria-hidden": "true" }),
185
188
  label: r("contactProfileCard.label.phone"),
@@ -192,7 +195,7 @@ const Te = me(
192
195
  children: /* @__PURE__ */ e("bdi", { dir: "ltr", children: E(s, { defaultCountry: h }) })
193
196
  }
194
197
  )
195
- }), g && n.push({
198
+ }), g && o.push({
196
199
  key: "whatsapp",
197
200
  icon: /* @__PURE__ */ e(q, { "aria-hidden": "true" }),
198
201
  label: r("contactProfileCard.label.whatsapp"),
@@ -208,7 +211,7 @@ const Te = me(
208
211
  }) })
209
212
  }
210
213
  )
211
- }), y && n.push({
214
+ }), y && o.push({
212
215
  key: "email",
213
216
  icon: /* @__PURE__ */ e(j, { "aria-hidden": "true" }),
214
217
  label: r("contactProfileCard.label.email"),
@@ -222,45 +225,45 @@ const Te = me(
222
225
  }
223
226
  )
224
227
  }), p) {
225
- const o = Ie(p);
226
- n.push({
228
+ const n = Ie(p);
229
+ o.push({
227
230
  key: "website",
228
231
  icon: /* @__PURE__ */ e(B, { "aria-hidden": "true" }),
229
232
  label: r("contactProfileCard.label.website"),
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 })
233
+ value: n ? /* @__PURE__ */ e(d, { href: n, external: !0, intent: "default", children: /* @__PURE__ */ e("bdi", { dir: "ltr", children: p }) }) : /* @__PURE__ */ e("bdi", { dir: "ltr", children: p })
231
234
  });
232
235
  }
233
236
  if (v && v.length > 0) {
234
- const o = (c) => {
237
+ const n = (c) => {
235
238
  if (u != null && u[c]) return u[c];
236
239
  const H = `languages.${c}`;
237
240
  return I.exists(H) ? r(H) : c.toUpperCase();
238
241
  };
239
- n.push({
242
+ o.push({
240
243
  key: "languages",
241
244
  icon: /* @__PURE__ */ e(L, { "aria-hidden": "true" }),
242
245
  label: r("contactProfileCard.label.languages"),
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)) })
246
+ 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: n(c) }, c)) })
244
247
  });
245
248
  }
246
- b && b.length > 0 && n.push({
249
+ b && b.length > 0 && o.push({
247
250
  key: "insurances",
248
251
  icon: /* @__PURE__ */ e(G, { "aria-hidden": "true" }),
249
252
  label: r("contactProfileCard.label.insurances"),
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({
253
+ value: /* @__PURE__ */ e("span", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: b.map((n) => /* @__PURE__ */ e(w, { variant: "info", children: n }, n)) })
254
+ }), T && o.push({
252
255
  key: "firstVisitPrice",
253
256
  icon: /* @__PURE__ */ e(Y, { "aria-hidden": "true" }),
254
257
  label: r("contactProfileCard.label.firstVisitPrice"),
255
258
  value: /* @__PURE__ */ e(w, { variant: "accentSoft", size: "lg", children: T })
256
- }), Q && n.push({
259
+ }), Q && o.push({
257
260
  key: "expertForAnxiousPatients",
258
261
  icon: /* @__PURE__ */ e(U, { "aria-hidden": "true" }),
259
262
  label: r("contactProfileCard.label.expertForAnxiousPatients"),
260
263
  value: r("contactProfileCard.value.yesShort")
261
264
  });
262
265
  const f = P && P.length > 0 ? P : void 0;
263
- x && !f && n.push({
266
+ x && !f && o.push({
264
267
  key: "profession",
265
268
  icon: /* @__PURE__ */ e(S, { "aria-hidden": "true" }),
266
269
  label: r("contactProfileCard.label.profession"),
@@ -269,7 +272,7 @@ const Te = me(
269
272
  Me,
270
273
  {
271
274
  getProfession: () => x,
272
- getSpecialtyKeys: () => (f ?? []).map((o) => o.key)
275
+ getSpecialtyKeys: () => (f ?? []).map((n) => n.key)
273
276
  },
274
277
  k
275
278
  );
@@ -284,7 +287,7 @@ const Te = me(
284
287
  defaultValue: "Map showing {{address}}"
285
288
  })
286
289
  }
287
- ) : null, ue = oe ?? pe, fe = /* @__PURE__ */ m(O, { children: [
290
+ ) : null, ue = ne ?? pe, fe = /* @__PURE__ */ m(O, { children: [
288
291
  t ? /* @__PURE__ */ e(
289
292
  "p",
290
293
  {
@@ -294,17 +297,17 @@ const Te = me(
294
297
  children: t
295
298
  }
296
299
  ) : null,
297
- n.length > 0 ? /* @__PURE__ */ e(be, { rowGap: "md", semantic: N, children: n.map((o) => /* @__PURE__ */ e(
300
+ o.length > 0 ? /* @__PURE__ */ e(be, { rowGap: "md", semantic: N, children: o.map((n) => /* @__PURE__ */ e(
298
301
  z,
299
302
  {
300
- icon: o.icon,
301
- label: o.label,
302
- value: o.value
303
+ icon: n.icon,
304
+ label: n.label,
305
+ value: n.value
303
306
  },
304
- o.key
307
+ n.key
305
308
  )) }) : null,
306
309
  f ? (() => {
307
- const o = /* @__PURE__ */ e(
310
+ const n = /* @__PURE__ */ e(
308
311
  z,
309
312
  {
310
313
  layout: "vertical",
@@ -314,7 +317,7 @@ const Te = me(
314
317
  value: /* @__PURE__ */ e(xe, { items: f })
315
318
  }
316
319
  );
317
- return N ? /* @__PURE__ */ e(Ce, { children: o }) : o;
320
+ return N ? /* @__PURE__ */ e(Ce, { children: n }) : n;
318
321
  })() : null,
319
322
  ue,
320
323
  ie
@@ -361,7 +364,7 @@ const ia = [
361
364
  "firstVisitPrice",
362
365
  "expertForAnxiousPatients",
363
366
  "profession"
364
- ], oa = {
367
+ ], na = {
365
368
  address: D,
366
369
  phone: W,
367
370
  whatsapp: q,
@@ -374,9 +377,9 @@ const ia = [
374
377
  profession: S
375
378
  };
376
379
  export {
377
- oa as C,
380
+ na as C,
378
381
  ia as a,
379
382
  Te as b,
380
383
  Me as c
381
384
  };
382
- //# sourceMappingURL=contact-profile-card-Jz2aSh7T.js.map
385
+ //# sourceMappingURL=contact-profile-card-CCgf0Ntt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contact-profile-card-CCgf0Ntt.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 // A secondary action under the address: the small body size.\n <span className=\"type-body-sm\">\n <Link\n href={buildMapHref(address)}\n external\n intent=\"default\"\n onClick={onMapClick}\n >\n {t('contactProfileCard.openInGoogleMaps')}\n </Link>\n </span>\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,EAC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ACL,cAAYQ;AAAA,QACZ,mBAAiBJ;AAAA,QACjB,kBAAe;AAAA,QACf,qBAAmBP;AAAA,QACnB,IAAAA;AAAA,QACA,WAAWvD,GAAa,EAAE,SAAAqD,GAAS,WAAAG,IAAW;AAAA,QAC7C,GAAGC;AAAA,QAEH,gBAAY,aACX,gBAAAjC,EAAC8E,KAAK,SAAQ,YACZ,4BAACA,EAAK,MAAL,EAAU,WAAU,kDAClB,aACH,EAAA,CACF,sBAEC,OAAA,EAAI,WAAU,kDACZ,UAAAD,EAAA,CACH;AAAA,MAAA;AAAA,IAAA;AAAA,EAIR;AACF;AAEA5E,GAAmB,cAAc;AAI1B,MAAM8E,KAAgC;AAAA,EAC3C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAIaC,KAGT;AAAA,EACF,SAASjC;AAAA,EACT,OAAOG;AAAA,EACP,UAAUE;AAAA,EACV,OAAOC;AAAA,EACP,SAASC;AAAA,EACT,WAAWI;AAAAA,EACX,YAAYE;AAAA,EACZ,iBAAiBxF;AAAA,EACjB,0BAA0B0F;AAAA,EAC1B,YAAYE;AACd;","x_google_ignoreList":[0]}
@@ -1,6 +1,6 @@
1
1
  import { jsx as m, jsxs as N, Fragment as ht } from "react/jsx-runtime";
2
- import { forwardRef as gt, useRef as k, useMemo as R, useId as Oe, useState as C, useEffect as $, useCallback as D, useImperativeHandle as vt, useContext as Ge, useLayoutEffect as ce, createContext as bt } from "react";
3
- import { createPortal as je } from "react-dom";
2
+ import { forwardRef as gt, useRef as k, useMemo as R, useId as Oe, useState as C, useEffect as $, useCallback as D, useImperativeHandle as vt, useContext as je, useLayoutEffect as ce, createContext as bt } from "react";
3
+ import { createPortal as Ge } from "react-dom";
4
4
  import { c as Y } from "./index-D2ZczOXr.js";
5
5
  import { useTranslation as B } from "react-i18next";
6
6
  import { M as wt, A as yt, a as kt, b as Mt, u as De, c as W, d as Ze, e as Fe } from "./maps-core-gate-DKx96CC_.js";
@@ -341,8 +341,8 @@ function Ne(e) {
341
341
  return !0;
342
342
  }
343
343
  }
344
- const Gt = 0.08;
345
- function jt(e, t) {
344
+ const jt = 0.08;
345
+ function Gt(e, t) {
346
346
  let n = 0;
347
347
  for (let r = 1; r < e.length; r += 1)
348
348
  Math.abs(e[r] - t) < Math.abs(e[n] - t) && (n = r);
@@ -366,8 +366,8 @@ function Dt(e, t) {
366
366
  d && r(null);
367
367
  return;
368
368
  }
369
- const p = Math.log(a / l), g = jt(i, p);
370
- r((c) => c === null || c >= i.length || Math.abs(i[c] - p) - Math.abs(i[g] - p) > Gt ? g : c);
369
+ const p = Math.log(a / l), g = Gt(i, p);
370
+ r((c) => c === null || c >= i.length || Math.abs(i[c] - p) - Math.abs(i[g] - p) > jt ? g : c);
371
371
  };
372
372
  if (u(!0), typeof ResizeObserver > "u") return;
373
373
  const f = new ResizeObserver(() => u(!1));
@@ -501,11 +501,11 @@ function Kt({
501
501
  }, a = () => {
502
502
  t.current.pendingInput && !t.current.programmatic && (t.current.moved = !0);
503
503
  }, l = () => {
504
- var A, G;
505
- const c = (A = n.getBounds()) == null ? void 0 : A.toJSON(), h = (G = n.getCenter()) == null ? void 0 : G.toJSON(), w = n.getZoom(), b = t.current.moved;
504
+ var A, j;
505
+ const c = (A = n.getBounds()) == null ? void 0 : A.toJSON(), h = (j = n.getCenter()) == null ? void 0 : j.toJSON(), w = n.getZoom(), b = t.current.moved;
506
506
  if (i(), clearTimeout(u), !c || !h || w == null) return;
507
507
  const M = !s || Object.keys(c).some(
508
- (j) => c[j] !== s.bounds[j]
508
+ (G) => c[G] !== s.bounds[G]
509
509
  ), L = s != null && (w !== s.zoom || h.lat !== s.center.lat || h.lng !== s.center.lng);
510
510
  s = { bounds: c, center: h, zoom: w }, M && r.current(c, { userInteraction: b && L });
511
511
  }, p = [
@@ -572,7 +572,7 @@ function qt({
572
572
  children: r
573
573
  }) {
574
574
  const o = Ht(e.id, e.position);
575
- return !o || !t ? null : je(
575
+ return !o || !t ? null : Ge(
576
576
  /* @__PURE__ */ m(Yt, { anchor: o, direction: n, children: r }),
577
577
  t
578
578
  );
@@ -896,7 +896,7 @@ function mn({
896
896
  onSelect: o,
897
897
  onHover: s
898
898
  }) {
899
- const i = Ge(ve), u = R(
899
+ const i = je(ve), u = R(
900
900
  () => i ? un(i, r) : void 0,
901
901
  [i, r]
902
902
  );
@@ -972,7 +972,7 @@ function gn({
972
972
  onCameraMove: d,
973
973
  onClusterClick: a
974
974
  }) {
975
- const l = W(), { t: p } = B("ui"), g = sn(t), c = Ge(ve), h = R(
975
+ const l = W(), { t: p } = B("ui"), g = sn(t), c = je(ve), h = R(
976
976
  () => Ot(e, g),
977
977
  [e, g]
978
978
  ), { singles: w, clusters: b } = R(() => {
@@ -982,9 +982,9 @@ function gn({
982
982
  E.push(...z.members.filter(y)), P.length > 1 ? V.push({ ...z, members: P }) : E.push(...P);
983
983
  }
984
984
  return { singles: E, clusters: V };
985
- }, [h, n, r]), [M, L] = C(""), A = k(null), G = k(void 0);
986
- $(() => () => clearTimeout(G.current), []);
987
- const j = (y) => {
985
+ }, [h, n, r]), [M, L] = C(""), A = k(null), j = k(void 0);
986
+ $(() => () => clearTimeout(j.current), []);
987
+ const G = (y) => {
988
988
  var _;
989
989
  const E = (_ = l == null ? void 0 : l.getDiv) == null ? void 0 : _.call(l);
990
990
  if (!l || !(E instanceof Element)) return;
@@ -1005,7 +1005,7 @@ function gn({
1005
1005
  A.current = {
1006
1006
  ids: new Set(y.members.map((S) => S.id)),
1007
1007
  centre: y.position
1008
- }, L(""), clearTimeout(G.current), G.current = setTimeout(
1008
+ }, L(""), clearTimeout(j.current), j.current = setTimeout(
1009
1009
  () => L(p("mapView.clusterZoomed", { label: f(T) })),
1010
1010
  fn
1011
1011
  ), d(), a == null || a({
@@ -1053,11 +1053,11 @@ function gn({
1053
1053
  mapId: s,
1054
1054
  iconTheme: c,
1055
1055
  elements: u,
1056
- onActivate: j
1056
+ onActivate: G
1057
1057
  },
1058
1058
  `${Math.floor(g)}:${y.id}`
1059
1059
  )),
1060
- i ? je(
1060
+ i ? Ge(
1061
1061
  /* @__PURE__ */ m("div", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: M }),
1062
1062
  i
1063
1063
  ) : null
@@ -1174,17 +1174,17 @@ function wn({
1174
1174
  "div",
1175
1175
  {
1176
1176
  "data-testid": "map-view-preview-plate",
1177
- className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:rounded-[var(--radius-md)] ds:bg-[color-mix(in_srgb,var(--popover)_calc(100%-(100%-var(--glass-surface-alpha,85%))*0.27),transparent)] ds:px-[var(--spacing-sm)] ds:py-[var(--spacing-sm)] ds:backdrop-blur-md ds:contrast-more:bg-[var(--popover)] ds:[@media(prefers-reduced-transparency:reduce)]:bg-[var(--popover)] ds:forced-colors:bg-[Canvas] ds:[:where(&)]:border-[length:var(--surface-border-width,var(--border-width-sm))] ds:border-[color:var(--border)] ds:shadow-[var(--shadow-sm)] ds:@[640px]/mapbar:flex-row ds:@[640px]/mapbar:items-center ds:@[640px]/mapbar:gap-[var(--spacing-md)]",
1177
+ className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:rounded-[var(--radius-md)] ds:bg-[color-mix(in_srgb,var(--popover)_calc(100%-(100%-var(--glass-surface-alpha,85%))*0.27),transparent)] ds:px-[var(--spacing-sm)] ds:py-[var(--spacing-sm)] ds:backdrop-blur-md ds:contrast-more:bg-[var(--popover)] ds:[@media(prefers-reduced-transparency:reduce)]:bg-[var(--popover)] ds:forced-colors:bg-[Canvas] ds:[:where(&)]:border-[length:var(--surface-border-width,var(--border-width-sm))] ds:border-[color:var(--border)] ds:shadow-[var(--shadow-sm)] ds:items-center ds:text-center ds:@[640px]/mapbar:flex-row ds:@[640px]/mapbar:justify-center ds:@[640px]/mapbar:gap-[var(--spacing-md)]",
1178
1178
  children: [
1179
1179
  /* @__PURE__ */ m(
1180
1180
  "p",
1181
1181
  {
1182
1182
  id: f,
1183
- className: "type-meta ds:m-0 ds:min-w-0 ds:flex-1 ds:text-[var(--foreground)]",
1183
+ className: "type-meta ds:m-0 ds:min-w-0 ds:text-[var(--foreground)] ds:@[640px]/mapbar:text-start",
1184
1184
  children: o
1185
1185
  }
1186
1186
  ),
1187
- /* @__PURE__ */ N("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-x-[var(--spacing-sm)] ds:gap-y-[var(--spacing-2xs)]", children: [
1187
+ /* @__PURE__ */ N("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-center ds:gap-x-[var(--spacing-sm)] ds:gap-y-[var(--spacing-2xs)]", children: [
1188
1188
  n ?? /* @__PURE__ */ m(
1189
1189
  Ue,
1190
1190
  {
@@ -1204,7 +1204,7 @@ function wn({
1204
1204
  href: s,
1205
1205
  target: "_blank",
1206
1206
  rel: "noopener noreferrer",
1207
- className: "ds:ms-auto ds:inline-flex ds:min-h-[var(--min-target-size)] ds:min-w-[var(--min-target-size)] ds:items-center ds:justify-center ds:gap-[var(--spacing-2xs)] ds:rounded-[var(--radius-sm)] ds:text-[var(--primary-readable)] ds:underline ds:underline-offset-2 ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
1207
+ className: "ds:inline-flex ds:min-h-[var(--min-target-size)] ds:min-w-[var(--min-target-size)] ds:items-center ds:justify-center ds:gap-[var(--spacing-2xs)] ds:rounded-[var(--radius-sm)] ds:text-[var(--primary-readable)] ds:underline ds:underline-offset-2 ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
1208
1208
  children: [
1209
1209
  /* @__PURE__ */ m("span", { className: "ds:sr-only ds:@[640px]/mapbar:not-sr-only", children: u("mapView.openInGoogleMaps") }),
1210
1210
  /* @__PURE__ */ m(Be, { "aria-hidden": "true", className: "ds:size-4" })
@@ -1314,8 +1314,8 @@ const yn = gt(
1314
1314
  mapId: M,
1315
1315
  size: L,
1316
1316
  surface: A,
1317
- ariaLabel: G,
1318
- fitToPoints: j,
1317
+ ariaLabel: j,
1318
+ fitToPoints: G,
1319
1319
  fitKey: y,
1320
1320
  fitMaxZoom: E = 15,
1321
1321
  clusterMarkers: V = "auto",
@@ -1324,7 +1324,7 @@ const yn = gt(
1324
1324
  className: I,
1325
1325
  ...T
1326
1326
  }, _) => {
1327
- const { t: S, i18n: Q } = B("ui"), be = k(/* @__PURE__ */ new Map()), ee = R(() => j ?? [], [j]), st = R(
1327
+ const { t: S, i18n: Q } = B("ui"), be = k(/* @__PURE__ */ new Map()), ee = R(() => G ?? [], [G]), st = R(
1328
1328
  () => y ?? ee.map((v) => `${et(v)}@${v.lat},${v.lng}`).sort().join("|"),
1329
1329
  [y, ee]
1330
1330
  ), Z = ee.length > 0, we = k(Z), ye = Oe(), rt = R(
@@ -1467,7 +1467,7 @@ const yn = gt(
1467
1467
  "data-component": "map-view",
1468
1468
  "data-component-id": e ?? rt,
1469
1469
  role: "region",
1470
- "aria-label": G ?? S("mapView.label"),
1470
+ "aria-label": j ?? S("mapView.label"),
1471
1471
  tabIndex: -1,
1472
1472
  ...T,
1473
1473
  children: /* @__PURE__ */ m(
@@ -1548,7 +1548,7 @@ const yn = gt(
1548
1548
  userInteraction: Me
1549
1549
  }
1550
1550
  ) : null,
1551
- j ? /* @__PURE__ */ m(
1551
+ G ? /* @__PURE__ */ m(
1552
1552
  on,
1553
1553
  {
1554
1554
  points: ee,
@@ -1627,4 +1627,4 @@ export {
1627
1627
  yn as M,
1628
1628
  Ne as i
1629
1629
  };
1630
- //# sourceMappingURL=map-view-DRd_GRQf.js.map
1630
+ //# sourceMappingURL=map-view-CO4F0hMV.js.map