@alfadocs/ui-kit 1.125.1 → 1.125.3

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.
@@ -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