@alfadocs/ui-kit 1.99.1 → 1.101.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/acupuncture-1-C-cvems8.js +13 -0
- package/dist/_chunks/allergies-CNEf2fr_.js +17 -0
- package/dist/_chunks/antibody-CWLfL4k8.js +29 -0
- package/dist/_chunks/anus-DHgdwinm.js +21 -0
- package/dist/_chunks/blood-cells-DpMYvJI_.js +29 -0
- package/dist/_chunks/blood-vessel-Dc8GaXwC.js +33 -0
- package/dist/_chunks/braces-BemMNLRD.js +17 -0
- package/dist/_chunks/breast-e7cnPkLr.js +13 -0
- package/dist/_chunks/cardiology-BvJrR5Ps.js +13 -0
- package/dist/_chunks/child-cognition-D0iUoCzR.js +29 -0
- package/dist/_chunks/contact-profile-card-CFAhByRk.js +369 -0
- package/dist/_chunks/dental-hygiene-Tzto39dH.js +21 -0
- package/dist/_chunks/dermatology-_SDatVWc.js +27 -0
- package/dist/_chunks/diabetes-BktyYcIy.js +17 -0
- package/dist/_chunks/dna-tySC-Hu2.js +13 -0
- package/dist/_chunks/doctor-DX3-nJ5X.js +17 -0
- package/dist/_chunks/ears-nose-and-throat-B_L5DhZw.js +17 -0
- package/dist/_chunks/eco-care-LWrNZKra.js +18 -0
- package/dist/_chunks/exercise-MnNysb0I.js +13 -0
- package/dist/_chunks/eyeglasses-Bv42KF2A.js +29 -0
- package/dist/_chunks/foot-DQUkXPW7.js +17 -0
- package/dist/_chunks/fruits-DXjGROSO.js +65 -0
- package/dist/_chunks/general-surgery-CQsMM57b.js +26 -0
- package/dist/_chunks/geriatrics-mIdQykYH.js +21 -0
- package/dist/_chunks/group-discussion-meeting-DMQuNKeQ.js +33 -0
- package/dist/_chunks/gym-XMDmWRJY.js +14 -0
- package/dist/_chunks/gynecology-9ReGmGUC.js +29 -0
- package/dist/_chunks/head-CQzwow-0.js +13 -0
- package/dist/_chunks/health-cross-B_Vt1EYd.js +13 -0
- package/dist/_chunks/health-worker-D8VRElqR.js +19 -0
- package/dist/_chunks/heart-organ-BlKfz1-q.js +13 -0
- package/dist/_chunks/hepatology-BrZoHyC5.js +14 -0
- package/dist/_chunks/justice-BUuDMHIC.js +13 -0
- package/dist/_chunks/liquid-medicine-DGnxQ0rF.js +21 -0
- package/dist/_chunks/lungs-2d9WADXS.js +13 -0
- package/dist/_chunks/lymph-nodes-DGNEEXZF.js +13 -0
- package/dist/_chunks/maxillofacial-CifdVvv5.js +13 -0
- package/dist/_chunks/mental-disorders-CG_HqDBq.js +23 -0
- package/dist/_chunks/mental-health-therapy-B-h3_3w8.js +23 -0
- package/dist/_chunks/microscope-BGknMoE1.js +13 -0
- package/dist/_chunks/mouth-QI3o5PWA.js +17 -0
- package/dist/_chunks/nephrology-hI5VCu6r.js +17 -0
- package/dist/_chunks/nerve-BEUIX7Zo.js +13 -0
- package/dist/_chunks/neuro-surgery-BmL5KHqV.js +13 -0
- package/dist/_chunks/neurology-BjotABE-.js +15 -0
- package/dist/_chunks/nurse-BdKl35GF.js +19 -0
- package/dist/_chunks/obstetricsmonia-CtFfdinu.js +13 -0
- package/dist/_chunks/odontology-DQV57_JZ.js +13 -0
- package/dist/_chunks/odontology-implant-DgFctCX2.js +25 -0
- package/dist/_chunks/oncology-pOPepvWu.js +17 -0
- package/dist/_chunks/opthalmology-BI_uw8Tq.js +17 -0
- package/dist/_chunks/orthopaedics-X7fY9tQF.js +21 -0
- package/dist/_chunks/orthotics-B3hKVYs1.js +21 -0
- package/dist/_chunks/pain-BK0w8d2-.js +33 -0
- package/dist/_chunks/{patient-search-DaZ9NzrL.js → patient-search-CxuqVUTB.js} +597 -576
- package/dist/_chunks/pediatric-surgery-hELRXyHE.js +21 -0
- package/dist/_chunks/pediatrics-RGALUiKk.js +29 -0
- package/dist/_chunks/physical-therapy-BNwmAXPC.js +13 -0
- package/dist/_chunks/poison-BcFYQuGJ.js +13 -0
- package/dist/_chunks/psychology-DicW1lCG.js +13 -0
- package/dist/_chunks/radiology-WQ3QCsSW.js +17 -0
- package/dist/_chunks/{reserved.agent-CB-92Vi9.js → reserved.agent-BxD0gnbt.js} +129 -129
- package/dist/_chunks/respirology-C2acv2k4.js +17 -0
- package/dist/_chunks/rheumatology-DqGCparS.js +13 -0
- package/dist/_chunks/sexual-reproductive-health-Bc0iTwVJ.js +33 -0
- package/dist/_chunks/skin-layers-CgtgRc4D.js +27 -0
- package/dist/_chunks/sonography-DYYzCvNK.js +29 -0
- package/dist/_chunks/specialty-icon-KuovHTxh.js +338 -0
- package/dist/_chunks/specialty-list-urUQJLk3.js +67 -0
- package/dist/_chunks/speech-language-therapist-B6iyqoGb.js +25 -0
- package/dist/_chunks/spine-CldRVdLL.js +33 -0
- package/dist/_chunks/stethoscope--B2R7OR8.js +17 -0
- package/dist/_chunks/stitches-CFS2ZT7_.js +13 -0
- package/dist/_chunks/stomach-TQVBJg4U.js +13 -0
- package/dist/_chunks/syringe-B1S8-3da.js +13 -0
- package/dist/_chunks/testicles-BxFu1qU7.js +17 -0
- package/dist/_chunks/thyroid-Bb68AW49.js +81 -0
- package/dist/_chunks/tooth-BkqaLe9Y.js +13 -0
- package/dist/_chunks/urology-BDY3-M0M.js +13 -0
- package/dist/_chunks/varicose-vein-BkRdE6iP.js +21 -0
- package/dist/_chunks/vascular-surgery-D_OOAsvq.js +37 -0
- package/dist/_chunks/vegetables-L9-SmQ2G.js +21 -0
- package/dist/_chunks/xray-Zno9UjPk.js +25 -0
- package/dist/agent-catalog.json +36 -2
- package/dist/agent-i18n/en.json +2 -1
- package/dist/components/booking/booking-types.d.ts +2 -1
- package/dist/components/booking/cascade.d.ts +3 -2
- package/dist/components/booking/details-form.d.ts +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/booking/reserved.d.ts +3 -1
- package/dist/components/contact-profile-card/contact-profile-card.d.ts +11 -0
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-search/patient-search.d.ts +7 -0
- package/dist/components/specialty-icon/glyph-loaders.d.ts +84 -0
- package/dist/components/specialty-icon/glyphs/acupuncture-1.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/allergies.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/antibody.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/anus.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/blood-cells.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/blood-vessel.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/braces.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/breast.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/cardiology.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/child-cognition.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/dental-hygiene.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/dermatology.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/diabetes.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/dna.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/doctor.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/ears-nose-and-throat.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/eco-care.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/exercise.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/eyeglasses.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/foot.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/fruits.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/general-surgery.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/geriatrics.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/group-discussion-meeting.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/gym.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/gynecology.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/head.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/health-cross.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/health-worker.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/heart-organ.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/hepatology.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/justice.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/liquid-medicine.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/lungs.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/lymph-nodes.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/maxillofacial.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/mental-disorders.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/mental-health-therapy.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/microscope.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/mouth.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/nephrology.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/nerve.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/neuro-surgery.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/neurology.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/nurse.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/obstetricsmonia.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/odontology-implant.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/odontology.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/oncology.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/opthalmology.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/orthopaedics.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/orthotics.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/pain.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/pediatric-surgery.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/pediatrics.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/physical-therapy.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/poison.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/psychology.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/radiology.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/respirology.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/rheumatology.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/sexual-reproductive-health.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/skin-layers.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/sonography.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/speech-language-therapist.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/spine.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/stethoscope.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/stitches.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/stomach.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/syringe.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/testicles.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/thyroid.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/tooth.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/urology.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/varicose-vein.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/vascular-surgery.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/vegetables.d.ts +4 -0
- package/dist/components/specialty-icon/glyphs/xray.d.ts +4 -0
- package/dist/components/specialty-icon/index.d.ts +8 -0
- package/dist/components/specialty-icon/index.js +9 -0
- package/dist/components/specialty-icon/specialty-glyph.d.ts +15 -0
- package/dist/components/specialty-icon/specialty-icon.d.ts +19 -0
- package/dist/components/specialty-icon/specialty-map.d.ts +11 -0
- package/dist/components/specialty-list/index.d.ts +3 -0
- package/dist/components/specialty-list/index.js +5 -0
- package/dist/components/specialty-list/specialty-list.d.ts +20 -0
- package/dist/core.css +1 -1
- package/dist/i18n/locales/ar.d.ts +9 -0
- package/dist/i18n/locales/ar.js +9 -0
- package/dist/i18n/locales/de.d.ts +9 -0
- package/dist/i18n/locales/de.js +9 -0
- package/dist/i18n/locales/el.d.ts +9 -0
- package/dist/i18n/locales/el.js +9 -0
- package/dist/i18n/locales/en.d.ts +9 -0
- package/dist/i18n/locales/en.js +9 -0
- package/dist/i18n/locales/es.d.ts +9 -0
- package/dist/i18n/locales/es.js +9 -0
- package/dist/i18n/locales/fr.d.ts +9 -0
- package/dist/i18n/locales/fr.js +9 -0
- package/dist/i18n/locales/hi.d.ts +9 -0
- package/dist/i18n/locales/hi.js +9 -0
- package/dist/i18n/locales/it.d.ts +9 -0
- package/dist/i18n/locales/it.js +9 -0
- package/dist/i18n/locales/ja.d.ts +9 -0
- package/dist/i18n/locales/ja.js +9 -0
- package/dist/i18n/locales/nl.d.ts +9 -0
- package/dist/i18n/locales/nl.js +9 -0
- package/dist/i18n/locales/pl.d.ts +9 -0
- package/dist/i18n/locales/pl.js +9 -0
- package/dist/i18n/locales/pt.d.ts +9 -0
- package/dist/i18n/locales/pt.js +9 -0
- package/dist/i18n/locales/ro.d.ts +9 -0
- package/dist/i18n/locales/ro.js +9 -0
- package/dist/i18n/locales/ru.d.ts +9 -0
- package/dist/i18n/locales/ru.js +9 -0
- package/dist/i18n/locales/sq.d.ts +9 -0
- package/dist/i18n/locales/sq.js +9 -0
- package/dist/i18n/locales/sv.d.ts +9 -0
- package/dist/i18n/locales/sv.js +9 -0
- package/dist/i18n/locales/tr.d.ts +9 -0
- package/dist/i18n/locales/tr.js +9 -0
- package/dist/i18n/locales/zh.d.ts +9 -0
- package/dist/i18n/locales/zh.js +9 -0
- package/dist/index.js +503 -495
- package/dist/locales/ar.json +9 -0
- package/dist/locales/de.json +9 -0
- package/dist/locales/el.json +9 -0
- package/dist/locales/en.json +9 -0
- package/dist/locales/es.json +9 -0
- package/dist/locales/fr.json +9 -0
- package/dist/locales/hi.json +9 -0
- package/dist/locales/it.json +9 -0
- package/dist/locales/ja.json +9 -0
- package/dist/locales/nl.json +9 -0
- package/dist/locales/pl.json +9 -0
- package/dist/locales/pt.json +9 -0
- package/dist/locales/ro.json +9 -0
- package/dist/locales/ru.json +9 -0
- package/dist/locales/sq.json +9 -0
- package/dist/locales/sv.json +9 -0
- package/dist/locales/tr.json +9 -0
- package/dist/locales/zh.json +9 -0
- package/dist/tokens.css +1 -1
- package/package.json +11 -1
- package/dist/_chunks/contact-profile-card-QPUgGu-t.js +0 -342
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfadocs/ui-kit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.101.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "AlfaDocs shared design system — tokens, components, patterns, and translations for platform, booking, and alfascribe.",
|
|
6
6
|
"license": "BUSL-1.1",
|
|
@@ -543,6 +543,14 @@
|
|
|
543
543
|
"types": "./dist/components/contact-profile-card/index.d.ts",
|
|
544
544
|
"import": "./dist/components/contact-profile-card/index.js"
|
|
545
545
|
},
|
|
546
|
+
"./specialty-icon": {
|
|
547
|
+
"types": "./dist/components/specialty-icon/index.d.ts",
|
|
548
|
+
"import": "./dist/components/specialty-icon/index.js"
|
|
549
|
+
},
|
|
550
|
+
"./specialty-list": {
|
|
551
|
+
"types": "./dist/components/specialty-list/index.d.ts",
|
|
552
|
+
"import": "./dist/components/specialty-list/index.js"
|
|
553
|
+
},
|
|
546
554
|
"./practice-results": {
|
|
547
555
|
"types": "./dist/components/practice-results/index.d.ts",
|
|
548
556
|
"import": "./dist/components/practice-results/index.js"
|
|
@@ -1054,6 +1062,8 @@
|
|
|
1054
1062
|
"prebuild-storybook": "npm run check:whats-new && npm run build:icon-map && npm run check:docs-reference && npm run check:agent-snapshot",
|
|
1055
1063
|
"build:whats-new": "node scripts/build-whats-new.mjs",
|
|
1056
1064
|
"check:whats-new": "node scripts/build-whats-new.mjs --check",
|
|
1065
|
+
"build:specialty-icons": "node scripts/build-specialty-icons.mjs",
|
|
1066
|
+
"check:specialty-icons": "node scripts/build-specialty-icons.mjs --check",
|
|
1057
1067
|
"build:icon-map": "node scripts/build-icon-map.mjs",
|
|
1058
1068
|
"check:icon-map": "node scripts/build-icon-map.mjs --check",
|
|
1059
1069
|
"typecheck": "tsc -b && tsc -p scripts/fixtures/docs-consumer/tsconfig.json",
|
|
@@ -1,342 +0,0 @@
|
|
|
1
|
-
import { jsxs as u, jsx as e, Fragment as T } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as le, useId as ce, useMemo as se } from "react";
|
|
3
|
-
import { c as de } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as pe } from "react-i18next";
|
|
5
|
-
import { B as P } from "./badge-BUk4RjTS.js";
|
|
6
|
-
import { C as _ } from "./card-C85_Ndhb.js";
|
|
7
|
-
import { K as fe, a as ue } from "./key-value-pair-BoXOtBL1.js";
|
|
8
|
-
import { L as d } from "./link-DtCfnLnF.js";
|
|
9
|
-
import { b as me } from "./format-price-BcFBa-WP.js";
|
|
10
|
-
import { u as he } from "./registry-DvAUVLHh.js";
|
|
11
|
-
import { S as F } from "./stethoscope-sZXGC43m.js";
|
|
12
|
-
import { H } from "./heart--qCA4ffe.js";
|
|
13
|
-
import { c as ge } from "./createLucideIcon-DhHxpK9K.js";
|
|
14
|
-
import { S as O } from "./shield-check-DCJALLVh.js";
|
|
15
|
-
import { L as z } from "./languages-CGLX6Qpe.js";
|
|
16
|
-
import { G as V } from "./globe-sHBW1JN5.js";
|
|
17
|
-
import { M as L } from "./mail-BqXVF2zH.js";
|
|
18
|
-
import { M as U } from "./message-circle-Bepl9JT5.js";
|
|
19
|
-
import { P as E } from "./phone-FceYcIFQ.js";
|
|
20
|
-
import { M as K } from "./map-pin-BaY37-Km.js";
|
|
21
|
-
/**
|
|
22
|
-
* @license lucide-react v1.22.0 - ISC
|
|
23
|
-
*
|
|
24
|
-
* This source code is licensed under the ISC license.
|
|
25
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/
|
|
27
|
-
const ve = [
|
|
28
|
-
["rect", { width: "20", height: "12", x: "2", y: "6", rx: "2", key: "9lu3g6" }],
|
|
29
|
-
["circle", { cx: "12", cy: "12", r: "2", key: "1c9p78" }],
|
|
30
|
-
["path", { d: "M6 12h.01M18 12h.01", key: "113zkx" }]
|
|
31
|
-
], B = ge("banknote", ve), be = {
|
|
32
|
-
id: "contact-profile-card",
|
|
33
|
-
// Passive presentation surface — only exposes the rendered profession for
|
|
34
|
-
// introspection. No interactive capability is backed by the handle.
|
|
35
|
-
capabilities: [],
|
|
36
|
-
state: {
|
|
37
|
-
profession: {
|
|
38
|
-
type: "string",
|
|
39
|
-
descriptionKey: "ui.agent.contactProfileCard.state.profession",
|
|
40
|
-
description: "Profession string the card is currently rendering — undefined when the consumer omitted it.",
|
|
41
|
-
read: (o) => o.getProfession()
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
actions: {},
|
|
45
|
-
domHooks: {
|
|
46
|
-
root: {
|
|
47
|
-
attr: "data-component",
|
|
48
|
-
value: "contact-profile-card",
|
|
49
|
-
description: "Marks the ContactProfileCard root region."
|
|
50
|
-
},
|
|
51
|
-
instanceId: {
|
|
52
|
-
attr: "data-component-id",
|
|
53
|
-
sourceProp: "id",
|
|
54
|
-
description: "Sourced from the id prop."
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}, xe = de(
|
|
58
|
-
"ds:w-full ds:text-[color:var(--foreground)] ds:[--key-value-pair-icon-color:var(--accent)]",
|
|
59
|
-
{
|
|
60
|
-
variants: {
|
|
61
|
-
// Matches the kit's other `surface` props (Booking, ReviewsPanel).
|
|
62
|
-
// The card itself renders `<Card variant="elevated">` so the
|
|
63
|
-
// `surface="flat"` opt-out is rare — most consumers want the
|
|
64
|
-
// boundary.
|
|
65
|
-
surface: {
|
|
66
|
-
flat: "",
|
|
67
|
-
elevated: ""
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
defaultVariants: { surface: "elevated" }
|
|
71
|
-
}
|
|
72
|
-
);
|
|
73
|
-
function Ce(o) {
|
|
74
|
-
return o.replace(/[^\d+]/g, "");
|
|
75
|
-
}
|
|
76
|
-
function Pe(o, t) {
|
|
77
|
-
const a = `https://wa.me/${o}`;
|
|
78
|
-
return t ? `${a}?text=${encodeURIComponent(t)}` : a;
|
|
79
|
-
}
|
|
80
|
-
function ye(o) {
|
|
81
|
-
const t = o.trim(), a = /^[a-z][a-z0-9+.-]*:/i.test(t) ? t : `https://${t}`;
|
|
82
|
-
try {
|
|
83
|
-
const { protocol: l } = new URL(a);
|
|
84
|
-
return l === "http:" || l === "https:" ? a : void 0;
|
|
85
|
-
} catch {
|
|
86
|
-
return;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
function ke(o) {
|
|
90
|
-
return `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(o.line)}`;
|
|
91
|
-
}
|
|
92
|
-
function we() {
|
|
93
|
-
if (typeof document > "u") return "4945a3";
|
|
94
|
-
const o = getComputedStyle(document.documentElement).getPropertyValue("--map-marker-color").trim(), t = /^#?([0-9a-fA-F]{6})$/.exec(o);
|
|
95
|
-
return t ? t[1] : "4945a3";
|
|
96
|
-
}
|
|
97
|
-
function Me({ apiKey: o, center: t, zoom: a, altText: l }) {
|
|
98
|
-
const s = we(), m = `https://maps.googleapis.com/maps/api/staticmap?center=${t.lat},${t.lng}&zoom=${a}&size=640x192&scale=2&markers=color:0x${s}%7C${t.lat},${t.lng}&key=${encodeURIComponent(o)}`;
|
|
99
|
-
return /* @__PURE__ */ e(
|
|
100
|
-
"img",
|
|
101
|
-
{
|
|
102
|
-
src: m,
|
|
103
|
-
alt: l,
|
|
104
|
-
loading: "lazy",
|
|
105
|
-
decoding: "async",
|
|
106
|
-
width: 640,
|
|
107
|
-
height: 192,
|
|
108
|
-
className: "ds:block ds:w-full ds:h-[12rem] ds:[object-fit:cover] ds:rounded-[var(--radius-md)]"
|
|
109
|
-
}
|
|
110
|
-
);
|
|
111
|
-
}
|
|
112
|
-
const $e = le(
|
|
113
|
-
({
|
|
114
|
-
heading: o,
|
|
115
|
-
description: t,
|
|
116
|
-
address: a,
|
|
117
|
-
phone: l,
|
|
118
|
-
whatsappNumber: s,
|
|
119
|
-
whatsappMessage: m,
|
|
120
|
-
email: h,
|
|
121
|
-
website: p,
|
|
122
|
-
languages: g,
|
|
123
|
-
languageLabels: f,
|
|
124
|
-
insurances: v,
|
|
125
|
-
firstVisitPriceCents: b,
|
|
126
|
-
currencyCode: y = "EUR",
|
|
127
|
-
profession: x,
|
|
128
|
-
specializedInFearPatients: G,
|
|
129
|
-
googleMapsApiKey: k,
|
|
130
|
-
mapZoom: j = 14,
|
|
131
|
-
onPhoneClick: q,
|
|
132
|
-
onWhatsAppClick: W,
|
|
133
|
-
onMapClick: D,
|
|
134
|
-
onEmailClick: Y,
|
|
135
|
-
headerSlot: J,
|
|
136
|
-
footerSlot: Q,
|
|
137
|
-
mapSlot: X,
|
|
138
|
-
surface: w = "elevated",
|
|
139
|
-
"aria-label": Z,
|
|
140
|
-
id: C,
|
|
141
|
-
className: ee,
|
|
142
|
-
...ae
|
|
143
|
-
}, te) => {
|
|
144
|
-
const { t: r, i18n: M } = pe("ui"), $ = ce(), A = M.language ?? "en", N = o ?? r("contactProfileCard.heading"), re = Z ?? N, R = se(() => {
|
|
145
|
-
if (b != null)
|
|
146
|
-
return me(
|
|
147
|
-
b,
|
|
148
|
-
y,
|
|
149
|
-
A,
|
|
150
|
-
r("common.freeOfCharge")
|
|
151
|
-
);
|
|
152
|
-
}, [b, y, A, r]), n = [];
|
|
153
|
-
if (a && n.push({
|
|
154
|
-
key: "address",
|
|
155
|
-
icon: /* @__PURE__ */ e(K, { "aria-hidden": "true" }),
|
|
156
|
-
label: r("contactProfileCard.label.address"),
|
|
157
|
-
value: /* @__PURE__ */ u("span", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
|
|
158
|
-
/* @__PURE__ */ e("span", { dir: "auto", children: a.line }),
|
|
159
|
-
a.lat != null && a.lng != null ? /* @__PURE__ */ e(
|
|
160
|
-
d,
|
|
161
|
-
{
|
|
162
|
-
href: ke(a),
|
|
163
|
-
external: !0,
|
|
164
|
-
intent: "default",
|
|
165
|
-
onClick: D,
|
|
166
|
-
children: r("contactProfileCard.openInGoogleMaps")
|
|
167
|
-
}
|
|
168
|
-
) : null
|
|
169
|
-
] })
|
|
170
|
-
}), l && n.push({
|
|
171
|
-
key: "phone",
|
|
172
|
-
icon: /* @__PURE__ */ e(E, { "aria-hidden": "true" }),
|
|
173
|
-
label: r("contactProfileCard.label.phone"),
|
|
174
|
-
value: /* @__PURE__ */ e(
|
|
175
|
-
d,
|
|
176
|
-
{
|
|
177
|
-
href: `tel:${Ce(l)}`,
|
|
178
|
-
intent: "default",
|
|
179
|
-
onClick: q,
|
|
180
|
-
children: /* @__PURE__ */ e("bdi", { dir: "ltr", children: l })
|
|
181
|
-
}
|
|
182
|
-
)
|
|
183
|
-
}), s && n.push({
|
|
184
|
-
key: "whatsapp",
|
|
185
|
-
icon: /* @__PURE__ */ e(U, { "aria-hidden": "true" }),
|
|
186
|
-
label: r("contactProfileCard.label.whatsapp"),
|
|
187
|
-
value: /* @__PURE__ */ e(
|
|
188
|
-
d,
|
|
189
|
-
{
|
|
190
|
-
href: Pe(s, m),
|
|
191
|
-
external: !0,
|
|
192
|
-
intent: "default",
|
|
193
|
-
onClick: W,
|
|
194
|
-
children: /* @__PURE__ */ e("bdi", { dir: "ltr", children: s })
|
|
195
|
-
}
|
|
196
|
-
)
|
|
197
|
-
}), h && n.push({
|
|
198
|
-
key: "email",
|
|
199
|
-
icon: /* @__PURE__ */ e(L, { "aria-hidden": "true" }),
|
|
200
|
-
label: r("contactProfileCard.label.email"),
|
|
201
|
-
value: /* @__PURE__ */ e(
|
|
202
|
-
d,
|
|
203
|
-
{
|
|
204
|
-
href: `mailto:${h}`,
|
|
205
|
-
intent: "default",
|
|
206
|
-
onClick: Y,
|
|
207
|
-
children: /* @__PURE__ */ e("bdi", { dir: "ltr", children: h })
|
|
208
|
-
}
|
|
209
|
-
)
|
|
210
|
-
}), p) {
|
|
211
|
-
const i = ye(p);
|
|
212
|
-
n.push({
|
|
213
|
-
key: "website",
|
|
214
|
-
icon: /* @__PURE__ */ e(V, { "aria-hidden": "true" }),
|
|
215
|
-
label: r("contactProfileCard.label.website"),
|
|
216
|
-
value: i ? /* @__PURE__ */ e(d, { href: i, external: !0, intent: "default", children: /* @__PURE__ */ e("bdi", { dir: "ltr", children: p }) }) : /* @__PURE__ */ e("bdi", { dir: "ltr", children: p })
|
|
217
|
-
});
|
|
218
|
-
}
|
|
219
|
-
if (g && g.length > 0) {
|
|
220
|
-
const i = (c) => {
|
|
221
|
-
if (f != null && f[c]) return f[c];
|
|
222
|
-
const I = `languages.${c}`;
|
|
223
|
-
return M.exists(I) ? r(I) : c.toUpperCase();
|
|
224
|
-
};
|
|
225
|
-
n.push({
|
|
226
|
-
key: "languages",
|
|
227
|
-
icon: /* @__PURE__ */ e(z, { "aria-hidden": "true" }),
|
|
228
|
-
label: r("contactProfileCard.label.languages"),
|
|
229
|
-
value: /* @__PURE__ */ e("span", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: g.map((c) => /* @__PURE__ */ e(P, { variant: "neutral", children: i(c) }, c)) })
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
|
-
v && v.length > 0 && n.push({
|
|
233
|
-
key: "insurances",
|
|
234
|
-
icon: /* @__PURE__ */ e(O, { "aria-hidden": "true" }),
|
|
235
|
-
label: r("contactProfileCard.label.insurances"),
|
|
236
|
-
value: /* @__PURE__ */ e("span", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: v.map((i) => /* @__PURE__ */ e(P, { variant: "info", children: i }, i)) })
|
|
237
|
-
}), R && n.push({
|
|
238
|
-
key: "firstVisitPrice",
|
|
239
|
-
icon: /* @__PURE__ */ e(B, { "aria-hidden": "true" }),
|
|
240
|
-
label: r("contactProfileCard.label.firstVisitPrice"),
|
|
241
|
-
value: /* @__PURE__ */ e(P, { variant: "accentSoft", size: "lg", children: R })
|
|
242
|
-
}), G && n.push({
|
|
243
|
-
key: "expertForAnxiousPatients",
|
|
244
|
-
icon: /* @__PURE__ */ e(H, { "aria-hidden": "true" }),
|
|
245
|
-
label: r("contactProfileCard.label.expertForAnxiousPatients"),
|
|
246
|
-
value: r("contactProfileCard.value.yesShort")
|
|
247
|
-
}), x && n.push({
|
|
248
|
-
key: "profession",
|
|
249
|
-
icon: /* @__PURE__ */ e(F, { "aria-hidden": "true" }),
|
|
250
|
-
label: r("contactProfileCard.label.profession"),
|
|
251
|
-
value: x
|
|
252
|
-
}), he(
|
|
253
|
-
be,
|
|
254
|
-
{ getProfession: () => x },
|
|
255
|
-
C
|
|
256
|
-
);
|
|
257
|
-
const oe = !!k && (a == null ? void 0 : a.lat) !== void 0 && (a == null ? void 0 : a.lng) !== void 0 ? /* @__PURE__ */ e(
|
|
258
|
-
Me,
|
|
259
|
-
{
|
|
260
|
-
apiKey: k,
|
|
261
|
-
center: { lat: a.lat, lng: a.lng },
|
|
262
|
-
zoom: j,
|
|
263
|
-
altText: r("contactProfileCard.map.alt", {
|
|
264
|
-
address: a.line,
|
|
265
|
-
defaultValue: "Map showing {{address}}"
|
|
266
|
-
})
|
|
267
|
-
}
|
|
268
|
-
) : null, ne = X ?? oe, ie = /* @__PURE__ */ u(T, { children: [
|
|
269
|
-
t ? /* @__PURE__ */ e("p", { dir: "auto", className: "type-body-sm ds:m-0 ds:whitespace-pre-line", children: t }) : null,
|
|
270
|
-
n.length > 0 ? /* @__PURE__ */ e(fe, { rowGap: "md", children: n.map((i) => /* @__PURE__ */ e(
|
|
271
|
-
ue,
|
|
272
|
-
{
|
|
273
|
-
icon: i.icon,
|
|
274
|
-
label: i.label,
|
|
275
|
-
value: i.value
|
|
276
|
-
},
|
|
277
|
-
i.key
|
|
278
|
-
)) }) : null,
|
|
279
|
-
ne,
|
|
280
|
-
Q
|
|
281
|
-
] }), S = /* @__PURE__ */ u(T, { children: [
|
|
282
|
-
/* @__PURE__ */ u("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
283
|
-
J,
|
|
284
|
-
/* @__PURE__ */ e(
|
|
285
|
-
"h2",
|
|
286
|
-
{
|
|
287
|
-
id: $,
|
|
288
|
-
className: "type-title-card ds:m-0 ds:text-[color:var(--foreground)]",
|
|
289
|
-
children: N
|
|
290
|
-
}
|
|
291
|
-
)
|
|
292
|
-
] }),
|
|
293
|
-
ie
|
|
294
|
-
] });
|
|
295
|
-
return /* @__PURE__ */ e(
|
|
296
|
-
"div",
|
|
297
|
-
{
|
|
298
|
-
ref: te,
|
|
299
|
-
role: "region",
|
|
300
|
-
"aria-label": re,
|
|
301
|
-
"aria-labelledby": $,
|
|
302
|
-
"data-component": "contact-profile-card",
|
|
303
|
-
"data-component-id": C,
|
|
304
|
-
id: C,
|
|
305
|
-
className: xe({ surface: w, className: ee }),
|
|
306
|
-
...ae,
|
|
307
|
-
children: w === "elevated" ? /* @__PURE__ */ e(_, { variant: "elevated", children: /* @__PURE__ */ e(_.Body, { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: S }) }) : /* @__PURE__ */ e("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: S })
|
|
308
|
-
}
|
|
309
|
-
);
|
|
310
|
-
}
|
|
311
|
-
);
|
|
312
|
-
$e.displayName = "ContactProfileCard";
|
|
313
|
-
const De = [
|
|
314
|
-
"address",
|
|
315
|
-
"phone",
|
|
316
|
-
"whatsapp",
|
|
317
|
-
"email",
|
|
318
|
-
"website",
|
|
319
|
-
"languages",
|
|
320
|
-
"insurances",
|
|
321
|
-
"firstVisitPrice",
|
|
322
|
-
"expertForAnxiousPatients",
|
|
323
|
-
"profession"
|
|
324
|
-
], Ye = {
|
|
325
|
-
address: K,
|
|
326
|
-
phone: E,
|
|
327
|
-
whatsapp: U,
|
|
328
|
-
email: L,
|
|
329
|
-
website: V,
|
|
330
|
-
languages: z,
|
|
331
|
-
insurances: O,
|
|
332
|
-
firstVisitPrice: B,
|
|
333
|
-
expertForAnxiousPatients: H,
|
|
334
|
-
profession: F
|
|
335
|
-
};
|
|
336
|
-
export {
|
|
337
|
-
Ye as C,
|
|
338
|
-
De as a,
|
|
339
|
-
$e as b,
|
|
340
|
-
be as c
|
|
341
|
-
};
|
|
342
|
-
//# sourceMappingURL=contact-profile-card-QPUgGu-t.js.map
|