@alfadocs/ui-kit 0.30.4 → 0.30.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +1,17 @@
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
- import { L as d } from "./link-DrD_cRUg.js";
6
- import { S as f } from "./separator-CYU_bGFn.js";
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 = {
1
+ import { jsx as e, jsxs as i, Fragment as b } from "react/jsx-runtime";
2
+ import { forwardRef as H, useMemo as L, useImperativeHandle as P } from "react";
3
+ import { c as R } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as S } from "react-i18next";
5
+ import { L as f } from "./link-DrD_cRUg.js";
6
+ import { S as m } from "./separator-CYU_bGFn.js";
7
+ import { L as F } from "./logo-_Z-jLq80.js";
8
+ import { A as D, b as G, c as U, a as O } from "./accordion-CNcodXuO.js";
9
+ const C = "https://www.alfadocs.com", T = {
10
10
  privacy: "/privacy-prenotazione-online",
11
11
  terms: "/it/condizioni-di-utilizzo",
12
12
  contacts: "/it/contattaci"
13
- }, O = {
14
- it: C,
13
+ }, Y = {
14
+ it: T,
15
15
  en: {
16
16
  privacy: "/en/privacy",
17
17
  terms: "/en/terms-of-use",
@@ -32,45 +32,45 @@ const L = "https://www.alfadocs.com", C = {
32
32
  terms: "/es/condiciones-uso",
33
33
  contacts: "/es/contacto"
34
34
  }
35
- }, Y = "https://";
36
- function B(t) {
37
- return !t || !t.startsWith(Y) ? L : t.replace(/\/+$/, "");
35
+ }, B = "https://";
36
+ function K(t) {
37
+ return !t || !t.startsWith(B) ? C : t.replace(/\/+$/, "");
38
38
  }
39
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
- if (n) return n;
43
- const r = (u = O[t]) == null ? void 0 : u[s];
44
- return r || C[s];
40
+ var c, l;
41
+ const r = (c = a == null ? void 0 : a[s]) == null ? void 0 : c[t];
42
+ if (r) return r;
43
+ const n = (l = Y[t]) == null ? void 0 : l[s];
44
+ return n || T[s];
45
45
  }
46
- function K(t, s, a) {
47
- const n = B(s), r = (t || "it").split("-")[0];
46
+ function W(t, s, a) {
47
+ const r = K(s), n = (t || "it").split("-")[0];
48
48
  return {
49
- privacy: `${n}${k(r, "privacy", a)}`,
50
- terms: `${n}${k(r, "terms", a)}`,
51
- contacts: `${n}${k(r, "contacts", a)}`
49
+ privacy: `${r}${k(n, "privacy", a)}`,
50
+ terms: `${r}${k(n, "terms", a)}`,
51
+ contacts: `${r}${k(n, "contacts", a)}`
52
52
  };
53
53
  }
54
- const W = [
54
+ const X = [
55
55
  "linkedin",
56
56
  "youtube",
57
57
  "instagram",
58
58
  "facebook"
59
- ], X = {
59
+ ], q = {
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
- }, b = {
64
+ }, y = {
65
65
  viewBox: "0 0 24 24",
66
66
  fill: "currentColor",
67
67
  xmlns: "http://www.w3.org/2000/svg"
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 = _(
68
+ }, J = (t) => /* @__PURE__ */ e("svg", { ...y, ...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" }) }), Q = (t) => /* @__PURE__ */ e("svg", { ...y, ...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" }) }), Z = (t) => /* @__PURE__ */ e("svg", { ...y, ...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" }) }), ee = (t) => /* @__PURE__ */ e("svg", { ...y, ...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" }) }), te = {
69
+ linkedin: J,
70
+ youtube: Q,
71
+ instagram: Z,
72
+ facebook: ee
73
+ }, se = "AlfaDocs GmbH", ae = "P.IVA DE301955405", ne = R(
74
74
  [
75
75
  "ds:w-full",
76
76
  "ds:text-[color:var(--muted-foreground)]",
@@ -85,10 +85,16 @@ const W = [
85
85
  "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
86
86
  "ds:border-block-start ds:border-[var(--border)]"
87
87
  ].join(" "),
88
+ // 0.30.5: compact got a polish pass — bumped vertical padding to
89
+ // `lg` (~24px) so the footer reads as a real landmark, not a
90
+ // one-line afterthought, plus a stronger top border in
91
+ // accessible mode (the default `--border` clears 3:1 in light /
92
+ // dark; accessible bumps to a heavier weight).
88
93
  compact: [
89
- "ds:py-[var(--spacing-md)]",
94
+ "ds:py-[var(--spacing-lg)]",
90
95
  "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
91
- "ds:border-block-start ds:border-[var(--border)]"
96
+ "ds:border-block-start ds:border-[var(--border)]",
97
+ "ds:[.theme-accessible_&]:[border-block-start-width:2px]"
92
98
  ].join(" "),
93
99
  full: [
94
100
  "ds:py-[var(--spacing-xl)]",
@@ -99,11 +105,11 @@ const W = [
99
105
  },
100
106
  defaultVariants: { variant: "compact" }
101
107
  }
102
- ), ne = /^(https?:\/\/|mailto:|tel:|\/(?!\/))/i;
108
+ ), re = /^(https?:\/\/|mailto:|tel:|\/(?!\/))/i;
103
109
  function I(t) {
104
- return ne.test(t) ? t : "#";
110
+ return re.test(t) ? t : "#";
105
111
  }
106
- function F({
112
+ function M({
107
113
  copyright: t,
108
114
  align: s = "center"
109
115
  }) {
@@ -119,82 +125,85 @@ function F({
119
125
  }
120
126
  );
121
127
  }
122
- const re = E(
128
+ const ce = H(
123
129
  function({
124
130
  variant: s,
125
131
  marketingBaseUrl: a,
126
- legalUrlOverrides: n,
127
- linkGroups: r,
128
- socials: m,
129
- logoSlot: u,
130
- extraNavSlot: h,
131
- trustBadgesSlot: v,
132
- showTagline: g = !0,
133
- id: x,
134
- "aria-label": y
135
- }, c) {
136
- const { t: o, i18n: l } = H("ui"), p = A(
137
- () => K(l.language, a, n),
138
- [l.language, a, n]
132
+ legalUrlOverrides: r,
133
+ linkGroups: n,
134
+ socials: c,
135
+ logoSlot: l,
136
+ extraNavSlot: d,
137
+ trustBadgesSlot: h,
138
+ showTagline: v = !0,
139
+ id: g,
140
+ "aria-label": z
141
+ }, p) {
142
+ const { t: o, i18n: u } = S("ui"), x = L(
143
+ () => W(u.language, a, r),
144
+ [u.language, a, r]
139
145
  );
140
- V(
141
- c,
146
+ P(
147
+ p,
142
148
  () => ({
143
149
  getVariant: () => s,
144
- getLegalUrls: () => p
150
+ getLegalUrls: () => x
145
151
  }),
146
- [s, p]
152
+ [s, x]
147
153
  );
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 = {
154
+ const j = (/* @__PURE__ */ new Date()).getFullYear(), N = o("footer.copyright", {
155
+ year: j,
156
+ entity: se,
157
+ vat: ae
158
+ }), $ = v ? o("footer.tagline") : void 0, E = z ?? o("footer.nav.label"), w = {
153
159
  privacy: o("footer.nav.privacy"),
154
160
  terms: o("footer.nav.terms"),
155
161
  contacts: o("footer.nav.contacts")
156
- }, S = A(() => m !== void 0 ? m : W.map((j) => ({ network: j })), [m]);
162
+ }, A = L(() => c !== void 0 ? c : X.map((V) => ({ network: V })), [c]);
157
163
  return /* @__PURE__ */ i(
158
164
  "footer",
159
165
  {
160
- id: x,
166
+ id: g,
161
167
  role: "contentinfo",
162
- "aria-label": M,
168
+ "aria-label": E,
163
169
  "data-component": "public-footer",
164
170
  "data-variant": s,
165
- className: ae({ variant: s }),
171
+ className: ne({ variant: s }),
166
172
  children: [
167
173
  s === "minimal" && /* @__PURE__ */ e(
168
- ce,
174
+ ie,
169
175
  {
170
- legalUrls: p,
171
- labels: N,
172
- copyright: w,
173
- trustBadgesSlot: v
176
+ legalUrls: x,
177
+ labels: w,
178
+ copyright: N,
179
+ trustBadgesSlot: h
174
180
  }
175
181
  ),
176
182
  s === "compact" && /* @__PURE__ */ e(
177
- ie,
183
+ le,
178
184
  {
179
- legalUrls: p,
180
- labels: N,
181
- copyright: w,
185
+ legalUrls: x,
186
+ labels: w,
187
+ copyright: N,
182
188
  tagline: $,
183
- extraNavSlot: h
189
+ socials: A,
190
+ logoSlot: l,
191
+ extraNavSlot: d,
192
+ t: o
184
193
  }
185
194
  ),
186
195
  s === "full" && /* @__PURE__ */ e(
187
- le,
196
+ de,
188
197
  {
189
- legalUrls: p,
190
- labels: N,
191
- copyright: w,
198
+ legalUrls: x,
199
+ labels: w,
200
+ copyright: N,
192
201
  tagline: $,
193
- linkGroups: r,
194
- socials: S,
195
- logoSlot: u,
196
- extraNavSlot: h,
197
- trustBadgesSlot: v,
202
+ linkGroups: n,
203
+ socials: A,
204
+ logoSlot: l,
205
+ extraNavSlot: d,
206
+ trustBadgesSlot: h,
198
207
  t: o
199
208
  }
200
209
  )
@@ -203,23 +212,23 @@ const re = E(
203
212
  );
204
213
  }
205
214
  );
206
- function ce({
215
+ function ie({
207
216
  legalUrls: t,
208
217
  labels: s,
209
218
  copyright: a,
210
- trustBadgesSlot: n
219
+ trustBadgesSlot: r
211
220
  }) {
212
221
  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: [
213
- n && /* @__PURE__ */ e(
222
+ r && /* @__PURE__ */ e(
214
223
  "span",
215
224
  {
216
225
  "data-slot": "trust-badges",
217
226
  className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)] ds:me-[var(--spacing-sm)]",
218
- children: n
227
+ children: r
219
228
  }
220
229
  ),
221
230
  /* @__PURE__ */ e(
222
- d,
231
+ f,
223
232
  {
224
233
  href: t.privacy,
225
234
  external: !0,
@@ -228,9 +237,9 @@ function ce({
228
237
  children: s.privacy
229
238
  }
230
239
  ),
231
- /* @__PURE__ */ e(f, { orientation: "vertical", className: "ds:h-4" }),
240
+ /* @__PURE__ */ e(m, { orientation: "vertical", className: "ds:h-4" }),
232
241
  /* @__PURE__ */ e(
233
- d,
242
+ f,
234
243
  {
235
244
  href: t.terms,
236
245
  external: !0,
@@ -239,21 +248,87 @@ function ce({
239
248
  children: s.terms
240
249
  }
241
250
  ),
242
- /* @__PURE__ */ e(f, { orientation: "vertical", className: "ds:h-4" }),
251
+ /* @__PURE__ */ e(m, { orientation: "vertical", className: "ds:h-4" }),
243
252
  /* @__PURE__ */ e("span", { children: a })
244
253
  ] });
245
254
  }
246
- function ie({
255
+ function _({
256
+ socials: t,
257
+ t: s,
258
+ size: a
259
+ }) {
260
+ if (t.length === 0) return null;
261
+ const r = a === "sm" ? "ds:size-4" : "ds:size-5";
262
+ return /* @__PURE__ */ e(
263
+ "ul",
264
+ {
265
+ "data-slot": "socials",
266
+ className: "ds:list-none ds:m-0 ds:p-0 ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
267
+ children: t.map((n) => {
268
+ const c = te[n.network], l = n.href ?? q[n.network], d = s(`footer.social.aria.${n.network}`);
269
+ return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
270
+ f,
271
+ {
272
+ href: I(l),
273
+ external: !0,
274
+ externalIcon: !1,
275
+ intent: "subtle",
276
+ "aria-label": d,
277
+ className: "ds:inline-flex ds:items-center ds:justify-center ds:min-w-[var(--min-target-size)] ds:min-h-[var(--min-target-size)]",
278
+ children: /* @__PURE__ */ e(
279
+ c,
280
+ {
281
+ "aria-hidden": "true",
282
+ className: r,
283
+ focusable: "false"
284
+ }
285
+ )
286
+ }
287
+ ) }, n.network);
288
+ })
289
+ }
290
+ );
291
+ }
292
+ function le({
247
293
  legalUrls: t,
248
294
  labels: s,
249
295
  copyright: a,
250
- tagline: n,
251
- extraNavSlot: r
296
+ tagline: r,
297
+ socials: n,
298
+ logoSlot: c,
299
+ extraNavSlot: l,
300
+ t: d
252
301
  }) {
253
- return /* @__PURE__ */ i("div", { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-sm)]", children: [
302
+ return /* @__PURE__ */ i("div", { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-md)]", children: [
303
+ n.length > 0 ? /* @__PURE__ */ e(_, { socials: n, t: d, size: "sm" }) : null,
254
304
  /* @__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: [
305
+ c !== void 0 ? c !== null && c !== !1 && c !== "" ? /* @__PURE__ */ i(b, { children: [
306
+ /* @__PURE__ */ e(
307
+ "span",
308
+ {
309
+ "data-slot": "compact-logo",
310
+ className: "ds:inline-flex ds:items-center ds:opacity-70",
311
+ children: c
312
+ }
313
+ ),
314
+ /* @__PURE__ */ e(m, { orientation: "vertical", className: "ds:h-4" })
315
+ ] }) : null : (
316
+ // No consumer override — render the kit's default small
317
+ // wordmark, muted so it reads as marker not headline.
318
+ /* @__PURE__ */ i(b, { children: [
319
+ /* @__PURE__ */ e(
320
+ "span",
321
+ {
322
+ "data-slot": "compact-logo",
323
+ className: "ds:inline-flex ds:items-center ds:opacity-70",
324
+ children: /* @__PURE__ */ e(F, { variant: "wordmark", tone: "auto", "aria-label": "AlfaDocs" })
325
+ }
326
+ ),
327
+ /* @__PURE__ */ e(m, { orientation: "vertical", className: "ds:h-4" })
328
+ ] })
329
+ ),
255
330
  /* @__PURE__ */ e(
256
- d,
331
+ f,
257
332
  {
258
333
  href: t.privacy,
259
334
  external: !0,
@@ -262,9 +337,9 @@ function ie({
262
337
  children: s.privacy
263
338
  }
264
339
  ),
265
- /* @__PURE__ */ e(f, { orientation: "vertical", className: "ds:h-4" }),
340
+ /* @__PURE__ */ e(m, { orientation: "vertical", className: "ds:h-4" }),
266
341
  /* @__PURE__ */ e(
267
- d,
342
+ f,
268
343
  {
269
344
  href: t.terms,
270
345
  external: !0,
@@ -273,9 +348,9 @@ function ie({
273
348
  children: s.terms
274
349
  }
275
350
  ),
276
- /* @__PURE__ */ e(f, { orientation: "vertical", className: "ds:h-4" }),
351
+ /* @__PURE__ */ e(m, { orientation: "vertical", className: "ds:h-4" }),
277
352
  /* @__PURE__ */ e(
278
- d,
353
+ f,
279
354
  {
280
355
  href: t.contacts,
281
356
  external: !0,
@@ -284,18 +359,18 @@ function ie({
284
359
  children: s.contacts
285
360
  }
286
361
  ),
287
- r && /* @__PURE__ */ i(z, { children: [
288
- /* @__PURE__ */ e(f, { orientation: "vertical", className: "ds:h-4" }),
289
- /* @__PURE__ */ e("span", { "data-slot": "extra-nav", children: r })
362
+ l && /* @__PURE__ */ i(b, { children: [
363
+ /* @__PURE__ */ e(m, { orientation: "vertical", className: "ds:h-4" }),
364
+ /* @__PURE__ */ e("span", { "data-slot": "extra-nav", children: l })
290
365
  ] })
291
366
  ] }),
292
- /* @__PURE__ */ e(F, { copyright: a }),
293
- n ? /* @__PURE__ */ e(
367
+ /* @__PURE__ */ e(M, { copyright: a }),
368
+ r ? /* @__PURE__ */ e(
294
369
  "p",
295
370
  {
296
371
  "data-slot": "tagline",
297
372
  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
373
+ children: r
299
374
  }
300
375
  ) : null
301
376
  ] });
@@ -310,100 +385,72 @@ function oe(t, s) {
310
385
  ]
311
386
  };
312
387
  }
313
- function le({
388
+ function de({
314
389
  legalUrls: t,
315
390
  labels: s,
316
391
  copyright: a,
317
- tagline: n,
318
- linkGroups: r,
319
- socials: m,
320
- logoSlot: u,
321
- extraNavSlot: h,
322
- trustBadgesSlot: v,
323
- t: g
392
+ tagline: r,
393
+ linkGroups: n,
394
+ socials: c,
395
+ logoSlot: l,
396
+ extraNavSlot: d,
397
+ trustBadgesSlot: h,
398
+ t: v
324
399
  }) {
325
- const x = [
326
- ...r ?? [],
400
+ const g = [
401
+ ...n ?? [],
327
402
  oe(t, s)
328
- ], y = /* @__PURE__ */ i(
329
- "div",
330
- {
331
- "data-slot": "brand",
332
- className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
333
- children: [
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(
336
- "ul",
337
- {
338
- "data-slot": "socials",
339
- className: "ds:list-none ds:m-0 ds:p-0 ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
340
- children: m.map((c) => {
341
- const o = ee[c.network], l = c.href ?? X[c.network], p = g(`footer.social.aria.${c.network}`);
342
- return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
343
- d,
344
- {
345
- href: I(l),
346
- external: !0,
347
- externalIcon: !1,
348
- intent: "subtle",
349
- "aria-label": p,
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)]",
351
- children: /* @__PURE__ */ e(
352
- o,
353
- {
354
- "aria-hidden": "true",
355
- className: "ds:size-5",
356
- focusable: "false"
357
- }
358
- )
359
- }
360
- ) }, c.network);
361
- })
362
- }
363
- )
364
- ]
365
- }
366
- );
403
+ ];
367
404
  return /* @__PURE__ */ i("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xl)]", children: [
368
405
  /* @__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: [
369
- /* @__PURE__ */ e("div", { className: "ds:lg:w-[15rem] ds:lg:shrink-0", children: y }),
406
+ /* @__PURE__ */ e("div", { className: "ds:lg:w-[15rem] ds:lg:shrink-0", children: /* @__PURE__ */ i(
407
+ "div",
408
+ {
409
+ "data-slot": "brand",
410
+ className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
411
+ children: [
412
+ /* @__PURE__ */ e("div", { className: "ds:inline-flex", children: l ?? /* @__PURE__ */ e(F, { variant: "wordmark", tone: "auto", "aria-label": "AlfaDocs" }) }),
413
+ /* @__PURE__ */ e(_, { socials: c, t: v, size: "md" })
414
+ ]
415
+ }
416
+ ) }),
370
417
  /* @__PURE__ */ i("div", { className: "ds:flex-1 ds:min-w-0", children: [
371
418
  /* @__PURE__ */ e(
372
419
  "div",
373
420
  {
374
421
  className: "ds:hidden ds:md:grid ds:md:grid-cols-2 ds:lg:grid-cols-4 ds:gap-[var(--spacing-lg)]",
375
422
  "data-slot": "link-columns-grid",
376
- "data-columns": x.length,
377
- children: /* @__PURE__ */ e(de, { columns: x, t: g })
423
+ "data-columns": g.length,
424
+ children: /* @__PURE__ */ e(me, { columns: g, t: v })
378
425
  }
379
426
  ),
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,
427
+ /* @__PURE__ */ e("div", { className: "ds:md:hidden", "data-slot": "link-columns-accordion", children: /* @__PURE__ */ e(D, { type: "multiple", children: g.map((p, o) => /* @__PURE__ */ i(
428
+ G,
382
429
  {
383
- value: `${o}-${c.key}`,
430
+ value: `${o}-${p.key}`,
384
431
  children: [
385
- /* @__PURE__ */ e(G, { children: g(`footer.group.${c.key}`, {
386
- defaultValue: c.key
432
+ /* @__PURE__ */ e(U, { children: v(`footer.group.${p.key}`, {
433
+ defaultValue: p.key
387
434
  }) }),
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(
389
- d,
435
+ /* @__PURE__ */ e(O, { 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: p.links.map((u) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
436
+ f,
390
437
  {
391
- href: I(l.href),
392
- external: l.external,
438
+ href: I(u.href),
439
+ external: u.external,
393
440
  externalIcon: !1,
394
441
  intent: "subtle",
395
- children: l.label
442
+ children: u.label
396
443
  }
397
- ) }, `${c.key}-${l.href}-${l.label}`)) }) })
444
+ ) }, `${p.key}-${u.href}-${u.label}`)) }) })
398
445
  ]
399
446
  },
400
- `${o}-${c.key}`
447
+ `${o}-${p.key}`
401
448
  )) }) })
402
449
  ] })
403
450
  ] }),
404
- /* @__PURE__ */ e(f, { orientation: "horizontal" }),
451
+ /* @__PURE__ */ e(m, { orientation: "horizontal" }),
405
452
  /* @__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: [
406
- /* @__PURE__ */ e(F, { copyright: a, align: "start" }),
453
+ /* @__PURE__ */ e(M, { copyright: a, align: "start" }),
407
454
  /* @__PURE__ */ i(
408
455
  "div",
409
456
  {
@@ -411,7 +458,7 @@ function le({
411
458
  className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)] ds:sm:justify-end",
412
459
  children: [
413
460
  /* @__PURE__ */ e(
414
- d,
461
+ f,
415
462
  {
416
463
  href: t.privacy,
417
464
  external: !0,
@@ -420,9 +467,9 @@ function le({
420
467
  children: s.privacy
421
468
  }
422
469
  ),
423
- /* @__PURE__ */ e(f, { orientation: "vertical", className: "ds:h-4" }),
470
+ /* @__PURE__ */ e(m, { orientation: "vertical", className: "ds:h-4" }),
424
471
  /* @__PURE__ */ e(
425
- d,
472
+ f,
426
473
  {
427
474
  href: t.terms,
428
475
  external: !0,
@@ -431,22 +478,22 @@ function le({
431
478
  children: s.terms
432
479
  }
433
480
  ),
434
- (v || h) && /* @__PURE__ */ i(z, { children: [
435
- /* @__PURE__ */ e(f, { orientation: "vertical", className: "ds:h-4" }),
436
- v && /* @__PURE__ */ e(
481
+ (h || d) && /* @__PURE__ */ i(b, { children: [
482
+ /* @__PURE__ */ e(m, { orientation: "vertical", className: "ds:h-4" }),
483
+ h && /* @__PURE__ */ e(
437
484
  "span",
438
485
  {
439
486
  "data-slot": "trust-badges",
440
487
  className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]",
441
- children: v
488
+ children: h
442
489
  }
443
490
  ),
444
- h && /* @__PURE__ */ e(
491
+ d && /* @__PURE__ */ e(
445
492
  "span",
446
493
  {
447
494
  "data-slot": "extra-nav",
448
495
  className: "ds:inline-flex ds:items-center",
449
- children: h
496
+ children: d
450
497
  }
451
498
  )
452
499
  ] })
@@ -454,50 +501,50 @@ function le({
454
501
  }
455
502
  )
456
503
  ] }),
457
- n ? /* @__PURE__ */ e(
504
+ r ? /* @__PURE__ */ e(
458
505
  "p",
459
506
  {
460
507
  "data-slot": "tagline",
461
508
  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
509
+ children: r
463
510
  }
464
511
  ) : null
465
512
  ] });
466
513
  }
467
- function de({
514
+ function me({
468
515
  columns: t,
469
516
  t: s
470
517
  }) {
471
- return /* @__PURE__ */ e(z, { children: t.map((a, n) => /* @__PURE__ */ i(
518
+ return /* @__PURE__ */ e(b, { children: t.map((a, r) => /* @__PURE__ */ i(
472
519
  "section",
473
520
  {
474
- "aria-labelledby": `public-footer-group-${n}-${a.key}`,
521
+ "aria-labelledby": `public-footer-group-${r}-${a.key}`,
475
522
  children: [
476
523
  /* @__PURE__ */ e(
477
524
  "h3",
478
525
  {
479
- id: `public-footer-group-${n}-${a.key}`,
526
+ id: `public-footer-group-${r}-${a.key}`,
480
527
  className: "ds:m-0 ds:mb-[var(--spacing-sm)] ds:text-[color:var(--foreground)] ds:text-[length:var(--font-size-sm)] ds:font-medium",
481
528
  children: s(`footer.group.${a.key}`, { defaultValue: a.key })
482
529
  }
483
530
  ),
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(
485
- d,
531
+ /* @__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((n) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
532
+ f,
486
533
  {
487
- href: I(r.href),
488
- external: r.external,
534
+ href: I(n.href),
535
+ external: n.external,
489
536
  externalIcon: !1,
490
537
  intent: "subtle",
491
- children: r.label
538
+ children: n.label
492
539
  }
493
- ) }, `${a.key}-${r.href}-${r.label}`)) })
540
+ ) }, `${a.key}-${n.href}-${n.label}`)) })
494
541
  ]
495
542
  },
496
- `${n}-${a.key}`
543
+ `${r}-${a.key}`
497
544
  )) });
498
545
  }
499
- re.displayName = "PublicFooter";
500
- const be = {
546
+ ce.displayName = "PublicFooter";
547
+ const ye = {
501
548
  id: "public-footer",
502
549
  capabilities: ["navigate"],
503
550
  state: {
@@ -527,11 +574,11 @@ const be = {
527
574
  }
528
575
  };
529
576
  export {
530
- L as D,
531
- re as P,
532
- W as S,
533
- X as a,
534
- K as c,
535
- be as p
577
+ C as D,
578
+ ce as P,
579
+ X as S,
580
+ q as a,
581
+ W as c,
582
+ ye as p
536
583
  };
537
- //# sourceMappingURL=public-footer.agent-DivkKdG4.js.map
584
+ //# sourceMappingURL=public-footer.agent-Bc99tE5Z.js.map