@alfadocs/ui-kit 0.30.0 → 0.30.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{booking-BYuc_8HV.js → booking-CBaSujVP.js} +803 -729
- package/dist/_chunks/{patient-search-BhlxYAI3.js → patient-search-ZpHN-pgJ.js} +566 -510
- package/dist/_chunks/{public-footer.agent-CA29gxHJ.js → public-footer.agent-DivkKdG4.js} +188 -167
- package/dist/_chunks/{reviews-panel-CFttsfuC.js → reviews-panel-D-zjPKFL.js} +198 -178
- package/dist/agent-catalog.json +1 -1
- package/dist/components/booking/booking-types.d.ts +38 -0
- package/dist/components/booking/details-form.d.ts +7 -0
- package/dist/components/booking/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-search/patient-search.d.ts +9 -0
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/public-footer/public-footer.d.ts +7 -0
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/reviews-panel/reviews-panel.d.ts +8 -0
- package/dist/i18n/config.js +146 -20
- package/dist/i18n/locales/ar.d.ts +7 -0
- package/dist/i18n/locales/de.d.ts +7 -0
- package/dist/i18n/locales/el.d.ts +7 -0
- package/dist/i18n/locales/es.d.ts +7 -0
- package/dist/i18n/locales/fr.d.ts +7 -0
- package/dist/i18n/locales/hi.d.ts +7 -0
- package/dist/i18n/locales/ja.d.ts +7 -0
- package/dist/i18n/locales/nl.d.ts +7 -0
- package/dist/i18n/locales/pl.d.ts +7 -0
- package/dist/i18n/locales/pt.d.ts +7 -0
- package/dist/i18n/locales/ro.d.ts +7 -0
- package/dist/i18n/locales/ru.d.ts +7 -0
- package/dist/i18n/locales/sq.d.ts +7 -0
- package/dist/i18n/locales/sv.d.ts +7 -0
- package/dist/i18n/locales/tr.d.ts +7 -0
- package/dist/i18n/locales/zh.d.ts +7 -0
- package/dist/i18n/resources.d.ts +14 -0
- package/dist/index.js +4 -4
- package/dist/locales/ar.json +8 -1
- package/dist/locales/de.json +8 -1
- package/dist/locales/el.json +8 -1
- package/dist/locales/en.json +8 -1
- package/dist/locales/es.json +8 -1
- package/dist/locales/fr.json +8 -1
- package/dist/locales/hi.json +8 -1
- package/dist/locales/it.json +8 -1
- package/dist/locales/ja.json +8 -1
- package/dist/locales/nl.json +8 -1
- package/dist/locales/pl.json +8 -1
- package/dist/locales/pt.json +8 -1
- package/dist/locales/ro.json +8 -1
- package/dist/locales/ru.json +8 -1
- package/dist/locales/sq.json +8 -1
- package/dist/locales/sv.json +8 -1
- package/dist/locales/tr.json +8 -1
- package/dist/locales/zh.json +8 -1
- package/package.json +5 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsx as e, jsxs as i, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
1
|
+
import { jsx as e, jsxs as i, Fragment as z } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as E, useMemo as A, useImperativeHandle as V } from "react";
|
|
3
|
+
import { c as _ } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as H } from "react-i18next";
|
|
5
5
|
import { L as d } from "./link-DrD_cRUg.js";
|
|
6
6
|
import { S as f } from "./separator-CYU_bGFn.js";
|
|
7
|
-
import { L as
|
|
8
|
-
import { A as
|
|
9
|
-
const
|
|
7
|
+
import { L as P } from "./logo-_Z-jLq80.js";
|
|
8
|
+
import { A as R, b as D, c as G, a as U } from "./accordion-CNcodXuO.js";
|
|
9
|
+
const L = "https://www.alfadocs.com", C = {
|
|
10
10
|
privacy: "/privacy-prenotazione-online",
|
|
11
11
|
terms: "/it/condizioni-di-utilizzo",
|
|
12
12
|
contacts: "/it/contattaci"
|
|
13
|
-
},
|
|
14
|
-
it:
|
|
13
|
+
}, O = {
|
|
14
|
+
it: C,
|
|
15
15
|
en: {
|
|
16
16
|
privacy: "/en/privacy",
|
|
17
17
|
terms: "/en/terms-of-use",
|
|
@@ -32,45 +32,45 @@ const z = "https://www.alfadocs.com", A = {
|
|
|
32
32
|
terms: "/es/condiciones-uso",
|
|
33
33
|
contacts: "/es/contacto"
|
|
34
34
|
}
|
|
35
|
-
},
|
|
36
|
-
function
|
|
37
|
-
return !
|
|
35
|
+
}, Y = "https://";
|
|
36
|
+
function B(t) {
|
|
37
|
+
return !t || !t.startsWith(Y) ? L : t.replace(/\/+$/, "");
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
var m,
|
|
41
|
-
const n = (m =
|
|
39
|
+
function k(t, s, a) {
|
|
40
|
+
var m, u;
|
|
41
|
+
const n = (m = a == null ? void 0 : a[s]) == null ? void 0 : m[t];
|
|
42
42
|
if (n) return n;
|
|
43
|
-
const r = (
|
|
44
|
-
return r ||
|
|
43
|
+
const r = (u = O[t]) == null ? void 0 : u[s];
|
|
44
|
+
return r || C[s];
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
const n =
|
|
46
|
+
function K(t, s, a) {
|
|
47
|
+
const n = B(s), r = (t || "it").split("-")[0];
|
|
48
48
|
return {
|
|
49
|
-
privacy: `${n}${
|
|
50
|
-
terms: `${n}${
|
|
51
|
-
contacts: `${n}${
|
|
49
|
+
privacy: `${n}${k(r, "privacy", a)}`,
|
|
50
|
+
terms: `${n}${k(r, "terms", a)}`,
|
|
51
|
+
contacts: `${n}${k(r, "contacts", a)}`
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
|
-
const
|
|
54
|
+
const W = [
|
|
55
55
|
"linkedin",
|
|
56
56
|
"youtube",
|
|
57
57
|
"instagram",
|
|
58
58
|
"facebook"
|
|
59
|
-
],
|
|
59
|
+
], X = {
|
|
60
60
|
linkedin: "https://www.linkedin.com/company/alfadocs",
|
|
61
61
|
youtube: "https://www.youtube.com/@alfadocs",
|
|
62
62
|
instagram: "https://www.instagram.com/alfadocs",
|
|
63
63
|
facebook: "https://www.facebook.com/alfadocs"
|
|
64
|
-
},
|
|
64
|
+
}, b = {
|
|
65
65
|
viewBox: "0 0 24 24",
|
|
66
66
|
fill: "currentColor",
|
|
67
67
|
xmlns: "http://www.w3.org/2000/svg"
|
|
68
|
-
},
|
|
69
|
-
linkedin:
|
|
70
|
-
youtube:
|
|
71
|
-
instagram:
|
|
72
|
-
facebook:
|
|
73
|
-
},
|
|
68
|
+
}, q = (t) => /* @__PURE__ */ e("svg", { ...b, ...t, children: /* @__PURE__ */ e("path", { d: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 0 1-2.063-2.065 2.063 2.063 0 1 1 2.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z" }) }), J = (t) => /* @__PURE__ */ e("svg", { ...b, ...t, children: /* @__PURE__ */ e("path", { d: "M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z" }) }), Q = (t) => /* @__PURE__ */ e("svg", { ...b, ...t, children: /* @__PURE__ */ e("path", { d: "M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 1 0 0 12.324 6.162 6.162 0 0 0 0-12.324zM12 16a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm6.406-11.845a1.44 1.44 0 1 0 0 2.881 1.44 1.44 0 0 0 0-2.881z" }) }), Z = (t) => /* @__PURE__ */ e("svg", { ...b, ...t, children: /* @__PURE__ */ e("path", { d: "M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z" }) }), ee = {
|
|
69
|
+
linkedin: q,
|
|
70
|
+
youtube: J,
|
|
71
|
+
instagram: Q,
|
|
72
|
+
facebook: Z
|
|
73
|
+
}, te = "AlfaDocs GmbH", se = "P.IVA DE301955405", ae = _(
|
|
74
74
|
[
|
|
75
75
|
"ds:w-full",
|
|
76
76
|
"ds:text-[color:var(--muted-foreground)]",
|
|
@@ -99,13 +99,13 @@ const B = [
|
|
|
99
99
|
},
|
|
100
100
|
defaultVariants: { variant: "compact" }
|
|
101
101
|
}
|
|
102
|
-
),
|
|
103
|
-
function
|
|
104
|
-
return
|
|
102
|
+
), ne = /^(https?:\/\/|mailto:|tel:|\/(?!\/))/i;
|
|
103
|
+
function I(t) {
|
|
104
|
+
return ne.test(t) ? t : "#";
|
|
105
105
|
}
|
|
106
|
-
function
|
|
107
|
-
copyright:
|
|
108
|
-
align:
|
|
106
|
+
function F({
|
|
107
|
+
copyright: t,
|
|
108
|
+
align: s = "center"
|
|
109
109
|
}) {
|
|
110
110
|
return /* @__PURE__ */ e(
|
|
111
111
|
"p",
|
|
@@ -113,83 +113,86 @@ function L({
|
|
|
113
113
|
className: [
|
|
114
114
|
"ds:m-0 ds:text-[color:var(--muted-foreground)]",
|
|
115
115
|
"ds:text-[length:var(--font-size-sm)]",
|
|
116
|
-
|
|
116
|
+
s === "center" ? "ds:text-center" : "ds:text-start"
|
|
117
117
|
].join(" "),
|
|
118
|
-
children:
|
|
118
|
+
children: t
|
|
119
119
|
}
|
|
120
120
|
);
|
|
121
121
|
}
|
|
122
|
-
const
|
|
122
|
+
const re = E(
|
|
123
123
|
function({
|
|
124
|
-
variant:
|
|
125
|
-
marketingBaseUrl:
|
|
124
|
+
variant: s,
|
|
125
|
+
marketingBaseUrl: a,
|
|
126
126
|
legalUrlOverrides: n,
|
|
127
127
|
linkGroups: r,
|
|
128
128
|
socials: m,
|
|
129
|
-
logoSlot:
|
|
129
|
+
logoSlot: u,
|
|
130
130
|
extraNavSlot: h,
|
|
131
131
|
trustBadgesSlot: v,
|
|
132
|
-
|
|
133
|
-
|
|
132
|
+
showTagline: g = !0,
|
|
133
|
+
id: x,
|
|
134
|
+
"aria-label": y
|
|
134
135
|
}, c) {
|
|
135
|
-
const { t: o, i18n: l } =
|
|
136
|
-
() =>
|
|
137
|
-
[l.language,
|
|
136
|
+
const { t: o, i18n: l } = H("ui"), p = A(
|
|
137
|
+
() => K(l.language, a, n),
|
|
138
|
+
[l.language, a, n]
|
|
138
139
|
);
|
|
139
|
-
|
|
140
|
+
V(
|
|
140
141
|
c,
|
|
141
142
|
() => ({
|
|
142
|
-
getVariant: () =>
|
|
143
|
-
getLegalUrls: () =>
|
|
143
|
+
getVariant: () => s,
|
|
144
|
+
getLegalUrls: () => p
|
|
144
145
|
}),
|
|
145
|
-
[
|
|
146
|
+
[s, p]
|
|
146
147
|
);
|
|
147
|
-
const
|
|
148
|
-
year:
|
|
149
|
-
entity:
|
|
150
|
-
vat:
|
|
151
|
-
}),
|
|
148
|
+
const T = (/* @__PURE__ */ new Date()).getFullYear(), w = o("footer.copyright", {
|
|
149
|
+
year: T,
|
|
150
|
+
entity: te,
|
|
151
|
+
vat: se
|
|
152
|
+
}), $ = g ? o("footer.tagline") : void 0, M = y ?? o("footer.nav.label"), N = {
|
|
152
153
|
privacy: o("footer.nav.privacy"),
|
|
153
154
|
terms: o("footer.nav.terms"),
|
|
154
155
|
contacts: o("footer.nav.contacts")
|
|
155
|
-
},
|
|
156
|
+
}, S = A(() => m !== void 0 ? m : W.map((j) => ({ network: j })), [m]);
|
|
156
157
|
return /* @__PURE__ */ i(
|
|
157
158
|
"footer",
|
|
158
159
|
{
|
|
159
|
-
id:
|
|
160
|
+
id: x,
|
|
160
161
|
role: "contentinfo",
|
|
161
|
-
"aria-label":
|
|
162
|
+
"aria-label": M,
|
|
162
163
|
"data-component": "public-footer",
|
|
163
|
-
"data-variant":
|
|
164
|
-
className: ae({ variant:
|
|
164
|
+
"data-variant": s,
|
|
165
|
+
className: ae({ variant: s }),
|
|
165
166
|
children: [
|
|
166
|
-
|
|
167
|
-
|
|
167
|
+
s === "minimal" && /* @__PURE__ */ e(
|
|
168
|
+
ce,
|
|
168
169
|
{
|
|
169
|
-
legalUrls:
|
|
170
|
-
labels:
|
|
171
|
-
copyright:
|
|
170
|
+
legalUrls: p,
|
|
171
|
+
labels: N,
|
|
172
|
+
copyright: w,
|
|
172
173
|
trustBadgesSlot: v
|
|
173
174
|
}
|
|
174
175
|
),
|
|
175
|
-
|
|
176
|
-
|
|
176
|
+
s === "compact" && /* @__PURE__ */ e(
|
|
177
|
+
ie,
|
|
177
178
|
{
|
|
178
|
-
legalUrls:
|
|
179
|
-
labels:
|
|
180
|
-
copyright:
|
|
179
|
+
legalUrls: p,
|
|
180
|
+
labels: N,
|
|
181
|
+
copyright: w,
|
|
182
|
+
tagline: $,
|
|
181
183
|
extraNavSlot: h
|
|
182
184
|
}
|
|
183
185
|
),
|
|
184
|
-
|
|
185
|
-
|
|
186
|
+
s === "full" && /* @__PURE__ */ e(
|
|
187
|
+
le,
|
|
186
188
|
{
|
|
187
|
-
legalUrls:
|
|
188
|
-
labels:
|
|
189
|
-
copyright:
|
|
189
|
+
legalUrls: p,
|
|
190
|
+
labels: N,
|
|
191
|
+
copyright: w,
|
|
192
|
+
tagline: $,
|
|
190
193
|
linkGroups: r,
|
|
191
|
-
socials:
|
|
192
|
-
logoSlot:
|
|
194
|
+
socials: S,
|
|
195
|
+
logoSlot: u,
|
|
193
196
|
extraNavSlot: h,
|
|
194
197
|
trustBadgesSlot: v,
|
|
195
198
|
t: o
|
|
@@ -200,10 +203,10 @@ const se = S(
|
|
|
200
203
|
);
|
|
201
204
|
}
|
|
202
205
|
);
|
|
203
|
-
function
|
|
204
|
-
legalUrls:
|
|
205
|
-
labels:
|
|
206
|
-
copyright:
|
|
206
|
+
function ce({
|
|
207
|
+
legalUrls: t,
|
|
208
|
+
labels: s,
|
|
209
|
+
copyright: a,
|
|
207
210
|
trustBadgesSlot: n
|
|
208
211
|
}) {
|
|
209
212
|
return /* @__PURE__ */ i("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-center ds:gap-x-[var(--spacing-sm)] ds:gap-y-[var(--spacing-sm)]", children: [
|
|
@@ -218,122 +221,132 @@ function ne({
|
|
|
218
221
|
/* @__PURE__ */ e(
|
|
219
222
|
d,
|
|
220
223
|
{
|
|
221
|
-
href:
|
|
224
|
+
href: t.privacy,
|
|
222
225
|
external: !0,
|
|
223
226
|
externalIcon: !1,
|
|
224
227
|
intent: "subtle",
|
|
225
|
-
children:
|
|
228
|
+
children: s.privacy
|
|
226
229
|
}
|
|
227
230
|
),
|
|
228
231
|
/* @__PURE__ */ e(f, { orientation: "vertical", className: "ds:h-4" }),
|
|
229
232
|
/* @__PURE__ */ e(
|
|
230
233
|
d,
|
|
231
234
|
{
|
|
232
|
-
href:
|
|
235
|
+
href: t.terms,
|
|
233
236
|
external: !0,
|
|
234
237
|
externalIcon: !1,
|
|
235
238
|
intent: "subtle",
|
|
236
|
-
children:
|
|
239
|
+
children: s.terms
|
|
237
240
|
}
|
|
238
241
|
),
|
|
239
242
|
/* @__PURE__ */ e(f, { orientation: "vertical", className: "ds:h-4" }),
|
|
240
|
-
/* @__PURE__ */ e("span", { children:
|
|
243
|
+
/* @__PURE__ */ e("span", { children: a })
|
|
241
244
|
] });
|
|
242
245
|
}
|
|
243
|
-
function
|
|
244
|
-
legalUrls:
|
|
245
|
-
labels:
|
|
246
|
-
copyright:
|
|
247
|
-
|
|
246
|
+
function ie({
|
|
247
|
+
legalUrls: t,
|
|
248
|
+
labels: s,
|
|
249
|
+
copyright: a,
|
|
250
|
+
tagline: n,
|
|
251
|
+
extraNavSlot: r
|
|
248
252
|
}) {
|
|
249
253
|
return /* @__PURE__ */ i("div", { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
250
254
|
/* @__PURE__ */ i("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-center ds:gap-x-[var(--spacing-sm)] ds:gap-y-[var(--spacing-sm)]", children: [
|
|
251
255
|
/* @__PURE__ */ e(
|
|
252
256
|
d,
|
|
253
257
|
{
|
|
254
|
-
href:
|
|
258
|
+
href: t.privacy,
|
|
255
259
|
external: !0,
|
|
256
260
|
externalIcon: !1,
|
|
257
261
|
intent: "subtle",
|
|
258
|
-
children:
|
|
262
|
+
children: s.privacy
|
|
259
263
|
}
|
|
260
264
|
),
|
|
261
265
|
/* @__PURE__ */ e(f, { orientation: "vertical", className: "ds:h-4" }),
|
|
262
266
|
/* @__PURE__ */ e(
|
|
263
267
|
d,
|
|
264
268
|
{
|
|
265
|
-
href:
|
|
269
|
+
href: t.terms,
|
|
266
270
|
external: !0,
|
|
267
271
|
externalIcon: !1,
|
|
268
272
|
intent: "subtle",
|
|
269
|
-
children:
|
|
273
|
+
children: s.terms
|
|
270
274
|
}
|
|
271
275
|
),
|
|
272
276
|
/* @__PURE__ */ e(f, { orientation: "vertical", className: "ds:h-4" }),
|
|
273
277
|
/* @__PURE__ */ e(
|
|
274
278
|
d,
|
|
275
279
|
{
|
|
276
|
-
href:
|
|
280
|
+
href: t.contacts,
|
|
277
281
|
external: !0,
|
|
278
282
|
externalIcon: !1,
|
|
279
283
|
intent: "subtle",
|
|
280
|
-
children:
|
|
284
|
+
children: s.contacts
|
|
281
285
|
}
|
|
282
286
|
),
|
|
283
|
-
|
|
287
|
+
r && /* @__PURE__ */ i(z, { children: [
|
|
284
288
|
/* @__PURE__ */ e(f, { orientation: "vertical", className: "ds:h-4" }),
|
|
285
|
-
/* @__PURE__ */ e("span", { "data-slot": "extra-nav", children:
|
|
289
|
+
/* @__PURE__ */ e("span", { "data-slot": "extra-nav", children: r })
|
|
286
290
|
] })
|
|
287
291
|
] }),
|
|
288
|
-
/* @__PURE__ */ e(
|
|
292
|
+
/* @__PURE__ */ e(F, { copyright: a }),
|
|
293
|
+
n ? /* @__PURE__ */ e(
|
|
294
|
+
"p",
|
|
295
|
+
{
|
|
296
|
+
"data-slot": "tagline",
|
|
297
|
+
className: "ds:m-0 ds:text-center ds:text-[color:var(--muted-foreground)] ds:text-[length:var(--font-size-xs)] ds:italic",
|
|
298
|
+
children: n
|
|
299
|
+
}
|
|
300
|
+
) : null
|
|
289
301
|
] });
|
|
290
302
|
}
|
|
291
|
-
function
|
|
303
|
+
function oe(t, s) {
|
|
292
304
|
return {
|
|
293
305
|
key: "legal",
|
|
294
306
|
links: [
|
|
295
|
-
{ href:
|
|
296
|
-
{ href:
|
|
297
|
-
{ href:
|
|
307
|
+
{ href: t.privacy, label: s.privacy, external: !0 },
|
|
308
|
+
{ href: t.terms, label: s.terms, external: !0 },
|
|
309
|
+
{ href: t.contacts, label: s.contacts, external: !0 }
|
|
298
310
|
]
|
|
299
311
|
};
|
|
300
312
|
}
|
|
301
|
-
function
|
|
302
|
-
legalUrls:
|
|
303
|
-
labels:
|
|
304
|
-
copyright:
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
313
|
+
function le({
|
|
314
|
+
legalUrls: t,
|
|
315
|
+
labels: s,
|
|
316
|
+
copyright: a,
|
|
317
|
+
tagline: n,
|
|
318
|
+
linkGroups: r,
|
|
319
|
+
socials: m,
|
|
320
|
+
logoSlot: u,
|
|
321
|
+
extraNavSlot: h,
|
|
322
|
+
trustBadgesSlot: v,
|
|
323
|
+
t: g
|
|
311
324
|
}) {
|
|
312
|
-
const
|
|
313
|
-
...
|
|
314
|
-
|
|
315
|
-
],
|
|
325
|
+
const x = [
|
|
326
|
+
...r ?? [],
|
|
327
|
+
oe(t, s)
|
|
328
|
+
], y = /* @__PURE__ */ i(
|
|
316
329
|
"div",
|
|
317
330
|
{
|
|
318
331
|
"data-slot": "brand",
|
|
319
332
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
|
|
320
333
|
children: [
|
|
321
|
-
/* @__PURE__ */ e("div", { className: "ds:inline-flex", children:
|
|
322
|
-
|
|
334
|
+
/* @__PURE__ */ e("div", { className: "ds:inline-flex", children: u ?? /* @__PURE__ */ e(P, { variant: "wordmark", tone: "auto", "aria-label": "AlfaDocs" }) }),
|
|
335
|
+
m.length > 0 && /* @__PURE__ */ e(
|
|
323
336
|
"ul",
|
|
324
337
|
{
|
|
325
338
|
"data-slot": "socials",
|
|
326
339
|
className: "ds:list-none ds:m-0 ds:p-0 ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
327
|
-
children:
|
|
328
|
-
const o =
|
|
340
|
+
children: m.map((c) => {
|
|
341
|
+
const o = ee[c.network], l = c.href ?? X[c.network], p = g(`footer.social.aria.${c.network}`);
|
|
329
342
|
return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
|
|
330
343
|
d,
|
|
331
344
|
{
|
|
332
|
-
href:
|
|
345
|
+
href: I(l),
|
|
333
346
|
external: !0,
|
|
334
347
|
externalIcon: !1,
|
|
335
348
|
intent: "subtle",
|
|
336
|
-
"aria-label":
|
|
349
|
+
"aria-label": p,
|
|
337
350
|
className: "ds:inline-flex ds:items-center ds:justify-center ds:min-w-[var(--min-target-size)] ds:min-h-[var(--min-target-size)]",
|
|
338
351
|
children: /* @__PURE__ */ e(
|
|
339
352
|
o,
|
|
@@ -353,29 +366,29 @@ function ie({
|
|
|
353
366
|
);
|
|
354
367
|
return /* @__PURE__ */ i("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xl)]", children: [
|
|
355
368
|
/* @__PURE__ */ i("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xl)] ds:lg:flex-row ds:lg:items-start ds:lg:gap-[var(--spacing-xl)]", children: [
|
|
356
|
-
/* @__PURE__ */ e("div", { className: "ds:lg:w-[15rem] ds:lg:shrink-0", children:
|
|
369
|
+
/* @__PURE__ */ e("div", { className: "ds:lg:w-[15rem] ds:lg:shrink-0", children: y }),
|
|
357
370
|
/* @__PURE__ */ i("div", { className: "ds:flex-1 ds:min-w-0", children: [
|
|
358
371
|
/* @__PURE__ */ e(
|
|
359
372
|
"div",
|
|
360
373
|
{
|
|
361
374
|
className: "ds:hidden ds:md:grid ds:md:grid-cols-2 ds:lg:grid-cols-4 ds:gap-[var(--spacing-lg)]",
|
|
362
375
|
"data-slot": "link-columns-grid",
|
|
363
|
-
"data-columns":
|
|
364
|
-
children: /* @__PURE__ */ e(
|
|
376
|
+
"data-columns": x.length,
|
|
377
|
+
children: /* @__PURE__ */ e(de, { columns: x, t: g })
|
|
365
378
|
}
|
|
366
379
|
),
|
|
367
|
-
/* @__PURE__ */ e("div", { className: "ds:md:hidden", "data-slot": "link-columns-accordion", children: /* @__PURE__ */ e(
|
|
368
|
-
|
|
380
|
+
/* @__PURE__ */ e("div", { className: "ds:md:hidden", "data-slot": "link-columns-accordion", children: /* @__PURE__ */ e(R, { type: "multiple", children: x.map((c, o) => /* @__PURE__ */ i(
|
|
381
|
+
D,
|
|
369
382
|
{
|
|
370
383
|
value: `${o}-${c.key}`,
|
|
371
384
|
children: [
|
|
372
|
-
/* @__PURE__ */ e(
|
|
385
|
+
/* @__PURE__ */ e(G, { children: g(`footer.group.${c.key}`, {
|
|
373
386
|
defaultValue: c.key
|
|
374
387
|
}) }),
|
|
375
|
-
/* @__PURE__ */ e(
|
|
388
|
+
/* @__PURE__ */ e(U, { children: /* @__PURE__ */ e("ul", { className: "ds:list-none ds:m-0 ds:p-0 ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: c.links.map((l) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
|
|
376
389
|
d,
|
|
377
390
|
{
|
|
378
|
-
href:
|
|
391
|
+
href: I(l.href),
|
|
379
392
|
external: l.external,
|
|
380
393
|
externalIcon: !1,
|
|
381
394
|
intent: "subtle",
|
|
@@ -390,7 +403,7 @@ function ie({
|
|
|
390
403
|
] }),
|
|
391
404
|
/* @__PURE__ */ e(f, { orientation: "horizontal" }),
|
|
392
405
|
/* @__PURE__ */ i("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:sm:flex-row ds:sm:items-center ds:sm:justify-between", children: [
|
|
393
|
-
/* @__PURE__ */ e(
|
|
406
|
+
/* @__PURE__ */ e(F, { copyright: a, align: "start" }),
|
|
394
407
|
/* @__PURE__ */ i(
|
|
395
408
|
"div",
|
|
396
409
|
{
|
|
@@ -400,95 +413,103 @@ function ie({
|
|
|
400
413
|
/* @__PURE__ */ e(
|
|
401
414
|
d,
|
|
402
415
|
{
|
|
403
|
-
href:
|
|
416
|
+
href: t.privacy,
|
|
404
417
|
external: !0,
|
|
405
418
|
externalIcon: !1,
|
|
406
419
|
intent: "subtle",
|
|
407
|
-
children:
|
|
420
|
+
children: s.privacy
|
|
408
421
|
}
|
|
409
422
|
),
|
|
410
423
|
/* @__PURE__ */ e(f, { orientation: "vertical", className: "ds:h-4" }),
|
|
411
424
|
/* @__PURE__ */ e(
|
|
412
425
|
d,
|
|
413
426
|
{
|
|
414
|
-
href:
|
|
427
|
+
href: t.terms,
|
|
415
428
|
external: !0,
|
|
416
429
|
externalIcon: !1,
|
|
417
430
|
intent: "subtle",
|
|
418
|
-
children:
|
|
431
|
+
children: s.terms
|
|
419
432
|
}
|
|
420
433
|
),
|
|
421
|
-
(
|
|
434
|
+
(v || h) && /* @__PURE__ */ i(z, { children: [
|
|
422
435
|
/* @__PURE__ */ e(f, { orientation: "vertical", className: "ds:h-4" }),
|
|
423
|
-
|
|
436
|
+
v && /* @__PURE__ */ e(
|
|
424
437
|
"span",
|
|
425
438
|
{
|
|
426
439
|
"data-slot": "trust-badges",
|
|
427
440
|
className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
428
|
-
children:
|
|
441
|
+
children: v
|
|
429
442
|
}
|
|
430
443
|
),
|
|
431
|
-
|
|
444
|
+
h && /* @__PURE__ */ e(
|
|
432
445
|
"span",
|
|
433
446
|
{
|
|
434
447
|
"data-slot": "extra-nav",
|
|
435
448
|
className: "ds:inline-flex ds:items-center",
|
|
436
|
-
children:
|
|
449
|
+
children: h
|
|
437
450
|
}
|
|
438
451
|
)
|
|
439
452
|
] })
|
|
440
453
|
]
|
|
441
454
|
}
|
|
442
455
|
)
|
|
443
|
-
] })
|
|
456
|
+
] }),
|
|
457
|
+
n ? /* @__PURE__ */ e(
|
|
458
|
+
"p",
|
|
459
|
+
{
|
|
460
|
+
"data-slot": "tagline",
|
|
461
|
+
className: "ds:m-0 ds:text-center ds:text-[color:var(--muted-foreground)] ds:text-[length:var(--font-size-xs)] ds:italic",
|
|
462
|
+
children: n
|
|
463
|
+
}
|
|
464
|
+
) : null
|
|
444
465
|
] });
|
|
445
466
|
}
|
|
446
|
-
function
|
|
447
|
-
columns:
|
|
448
|
-
t
|
|
467
|
+
function de({
|
|
468
|
+
columns: t,
|
|
469
|
+
t: s
|
|
449
470
|
}) {
|
|
450
|
-
return /* @__PURE__ */ e(
|
|
471
|
+
return /* @__PURE__ */ e(z, { children: t.map((a, n) => /* @__PURE__ */ i(
|
|
451
472
|
"section",
|
|
452
473
|
{
|
|
453
|
-
"aria-labelledby": `public-footer-group-${n}-${
|
|
474
|
+
"aria-labelledby": `public-footer-group-${n}-${a.key}`,
|
|
454
475
|
children: [
|
|
455
476
|
/* @__PURE__ */ e(
|
|
456
477
|
"h3",
|
|
457
478
|
{
|
|
458
|
-
id: `public-footer-group-${n}-${
|
|
479
|
+
id: `public-footer-group-${n}-${a.key}`,
|
|
459
480
|
className: "ds:m-0 ds:mb-[var(--spacing-sm)] ds:text-[color:var(--foreground)] ds:text-[length:var(--font-size-sm)] ds:font-medium",
|
|
460
|
-
children:
|
|
481
|
+
children: s(`footer.group.${a.key}`, { defaultValue: a.key })
|
|
461
482
|
}
|
|
462
483
|
),
|
|
463
|
-
/* @__PURE__ */ e("ul", { className: "ds:list-none ds:m-0 ds:p-0 ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children:
|
|
484
|
+
/* @__PURE__ */ e("ul", { className: "ds:list-none ds:m-0 ds:p-0 ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: a.links.map((r) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
|
|
464
485
|
d,
|
|
465
486
|
{
|
|
466
|
-
href:
|
|
487
|
+
href: I(r.href),
|
|
467
488
|
external: r.external,
|
|
468
489
|
externalIcon: !1,
|
|
469
490
|
intent: "subtle",
|
|
470
491
|
children: r.label
|
|
471
492
|
}
|
|
472
|
-
) }, `${
|
|
493
|
+
) }, `${a.key}-${r.href}-${r.label}`)) })
|
|
473
494
|
]
|
|
474
495
|
},
|
|
475
|
-
`${n}-${
|
|
496
|
+
`${n}-${a.key}`
|
|
476
497
|
)) });
|
|
477
498
|
}
|
|
478
|
-
|
|
479
|
-
const
|
|
499
|
+
re.displayName = "PublicFooter";
|
|
500
|
+
const be = {
|
|
480
501
|
id: "public-footer",
|
|
481
502
|
capabilities: ["navigate"],
|
|
482
503
|
state: {
|
|
483
504
|
variant: {
|
|
484
505
|
type: "string",
|
|
485
506
|
description: "Active variant — one of `minimal`, `compact`, `full`.",
|
|
486
|
-
read: (
|
|
507
|
+
read: (t) => t.getVariant()
|
|
487
508
|
},
|
|
488
509
|
legalUrls: {
|
|
489
510
|
type: "object",
|
|
490
511
|
description: "Resolved legal URLs for the active locale + marketingBaseUrl + overrides: `{ privacy, terms, contacts }`.",
|
|
491
|
-
read: (
|
|
512
|
+
read: (t) => t.getLegalUrls()
|
|
492
513
|
}
|
|
493
514
|
},
|
|
494
515
|
actions: {},
|
|
@@ -506,11 +527,11 @@ const ge = {
|
|
|
506
527
|
}
|
|
507
528
|
};
|
|
508
529
|
export {
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
530
|
+
L as D,
|
|
531
|
+
re as P,
|
|
532
|
+
W as S,
|
|
533
|
+
X as a,
|
|
534
|
+
K as c,
|
|
535
|
+
be as p
|
|
515
536
|
};
|
|
516
|
-
//# sourceMappingURL=public-footer.agent-
|
|
537
|
+
//# sourceMappingURL=public-footer.agent-DivkKdG4.js.map
|