@alfadocs/ui-kit 0.25.2 → 0.30.1

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 (86) hide show
  1. package/dist/_chunks/booking-Bw9eOU4k.js +2292 -0
  2. package/dist/_chunks/{calendar-9eOXumpH.js → calendar-WWNx448i.js} +10 -9
  3. package/dist/_chunks/{contact-card-CeEfEAxh.js → contact-card-DYbp--s-.js} +2 -2
  4. package/dist/_chunks/{header-B8V_sNPy.js → header-CkMb1TZS.js} +23 -23
  5. package/dist/_chunks/heart-pulse-CvuyFKHB.js +21 -0
  6. package/dist/_chunks/{link-DmM5IevO.js → link-DrD_cRUg.js} +50 -45
  7. package/dist/_chunks/parseISO-Dk4xa7q6.js +120 -0
  8. package/dist/_chunks/patient-search-DuSoGG2t.js +1113 -0
  9. package/dist/_chunks/{patient-shell-Bq8CjRYF.js → patient-shell-CAXYzbRw.js} +2 -2
  10. package/dist/_chunks/public-footer.agent-DivkKdG4.js +537 -0
  11. package/dist/_chunks/reviews-panel-CFttsfuC.js +513 -0
  12. package/dist/_chunks/slot-grid-B2zprPcv.js +387 -0
  13. package/dist/_chunks/stethoscope-DT5qCW8Y.js +18 -0
  14. package/dist/agent-catalog.json +117 -22
  15. package/dist/components/booking/booking-types.d.ts +167 -0
  16. package/dist/components/booking/booking.agent.d.ts +1 -1
  17. package/dist/components/booking/booking.d.ts +4 -89
  18. package/dist/components/booking/cascade.d.ts +96 -0
  19. package/dist/components/booking/details-form.d.ts +39 -0
  20. package/dist/components/booking/index.d.ts +2 -1
  21. package/dist/components/booking/index.js +5 -3
  22. package/dist/components/calendar/index.js +1 -1
  23. package/dist/components/checkbox/checkbox.d.ts +6 -2
  24. package/dist/components/contact-card/index.js +1 -1
  25. package/dist/components/header/index.js +1 -1
  26. package/dist/components/index.d.ts +3 -0
  27. package/dist/components/link/index.js +1 -1
  28. package/dist/components/link/link.d.ts +7 -0
  29. package/dist/components/patient-search/index.d.ts +4 -0
  30. package/dist/components/patient-search/index.js +6 -0
  31. package/dist/components/patient-search/patient-search.agent.d.ts +4 -0
  32. package/dist/components/patient-search/patient-search.d.ts +112 -0
  33. package/dist/components/public-footer/index.d.ts +6 -0
  34. package/dist/components/public-footer/index.js +10 -0
  35. package/dist/components/public-footer/legal-urls.d.ts +18 -0
  36. package/dist/components/public-footer/public-footer.agent.d.ts +4 -0
  37. package/dist/components/public-footer/public-footer.d.ts +58 -0
  38. package/dist/components/public-footer/socials.d.ts +9 -0
  39. package/dist/components/reviews-panel/index.d.ts +4 -0
  40. package/dist/components/reviews-panel/index.js +6 -0
  41. package/dist/components/reviews-panel/reviews-panel.agent.d.ts +4 -0
  42. package/dist/components/reviews-panel/reviews-panel.d.ts +76 -0
  43. package/dist/components/slot-grid/index.js +1 -1
  44. package/dist/i18n/config.js +3994 -38
  45. package/dist/i18n/locales/ar.d.ts +221 -0
  46. package/dist/i18n/locales/de.d.ts +221 -0
  47. package/dist/i18n/locales/el.d.ts +221 -0
  48. package/dist/i18n/locales/es.d.ts +221 -0
  49. package/dist/i18n/locales/fr.d.ts +221 -0
  50. package/dist/i18n/locales/hi.d.ts +221 -0
  51. package/dist/i18n/locales/ja.d.ts +221 -0
  52. package/dist/i18n/locales/nl.d.ts +221 -0
  53. package/dist/i18n/locales/pl.d.ts +221 -0
  54. package/dist/i18n/locales/pt.d.ts +221 -0
  55. package/dist/i18n/locales/ro.d.ts +221 -0
  56. package/dist/i18n/locales/ru.d.ts +221 -0
  57. package/dist/i18n/locales/sq.d.ts +221 -0
  58. package/dist/i18n/locales/sv.d.ts +221 -0
  59. package/dist/i18n/locales/tr.d.ts +221 -0
  60. package/dist/i18n/locales/zh.d.ts +221 -0
  61. package/dist/i18n/resources.d.ts +442 -0
  62. package/dist/index.js +351 -336
  63. package/dist/locales/ar.json +222 -1
  64. package/dist/locales/de.json +222 -1
  65. package/dist/locales/el.json +222 -1
  66. package/dist/locales/en.json +222 -1
  67. package/dist/locales/es.json +222 -1
  68. package/dist/locales/fr.json +222 -1
  69. package/dist/locales/hi.json +222 -1
  70. package/dist/locales/it.json +222 -1
  71. package/dist/locales/ja.json +222 -1
  72. package/dist/locales/nl.json +222 -1
  73. package/dist/locales/pl.json +222 -1
  74. package/dist/locales/pt.json +222 -1
  75. package/dist/locales/ro.json +222 -1
  76. package/dist/locales/ru.json +222 -1
  77. package/dist/locales/sq.json +222 -1
  78. package/dist/locales/sv.json +222 -1
  79. package/dist/locales/tr.json +222 -1
  80. package/dist/locales/zh.json +222 -1
  81. package/dist/patterns/patient-shell/index.js +1 -1
  82. package/dist/tokens.css +1 -1
  83. package/package.json +17 -1
  84. package/dist/_chunks/booking-CXngC-1u.js +0 -1743
  85. package/dist/_chunks/slot-grid-DoodeQGZ.js +0 -502
  86. package/dist/_chunks/stethoscope-B8kpbtjh.js +0 -35
@@ -4,7 +4,7 @@ import { useTranslation as m } from "react-i18next";
4
4
  import { A } from "./app-frame-BYx1gcV7.js";
5
5
  import { I as H } from "./icon-button-BRHSSFmZ.js";
6
6
  import { D as i } from "./dropdown-menu-DZxwF23X.js";
7
- import { H as x, g as C, f as B, e as M, a as N, c as T, d as O } from "./header-B8V_sNPy.js";
7
+ import { H as x, g as C, f as B, e as M, a as N, c as T, d as O } from "./header-CkMb1TZS.js";
8
8
  import { L as P } from "./logo-_Z-jLq80.js";
9
9
  import { S as W, a as j, h as R, j as _, k as z, i as D } from "./sidebar-DkyC6GvS.js";
10
10
  import { T as E } from "./theme-root-BOO73p5t.js";
@@ -170,4 +170,4 @@ $.displayName = "PatientShell";
170
170
  export {
171
171
  $ as P
172
172
  };
173
- //# sourceMappingURL=patient-shell-Bq8CjRYF.js.map
173
+ //# sourceMappingURL=patient-shell-CAXYzbRw.js.map
@@ -0,0 +1,537 @@
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 = {
10
+ privacy: "/privacy-prenotazione-online",
11
+ terms: "/it/condizioni-di-utilizzo",
12
+ contacts: "/it/contattaci"
13
+ }, O = {
14
+ it: C,
15
+ en: {
16
+ privacy: "/en/privacy",
17
+ terms: "/en/terms-of-use",
18
+ contacts: "/en/contact-us"
19
+ },
20
+ de: {
21
+ privacy: "/de/datenschutz",
22
+ terms: "/de/nutzungsbedingungen",
23
+ contacts: "/de/kontakt"
24
+ },
25
+ fr: {
26
+ privacy: "/fr/confidentialite",
27
+ terms: "/fr/conditions-utilisation",
28
+ contacts: "/fr/contact"
29
+ },
30
+ es: {
31
+ privacy: "/es/privacidad",
32
+ terms: "/es/condiciones-uso",
33
+ contacts: "/es/contacto"
34
+ }
35
+ }, Y = "https://";
36
+ function B(t) {
37
+ return !t || !t.startsWith(Y) ? L : t.replace(/\/+$/, "");
38
+ }
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];
45
+ }
46
+ function K(t, s, a) {
47
+ const n = B(s), r = (t || "it").split("-")[0];
48
+ return {
49
+ privacy: `${n}${k(r, "privacy", a)}`,
50
+ terms: `${n}${k(r, "terms", a)}`,
51
+ contacts: `${n}${k(r, "contacts", a)}`
52
+ };
53
+ }
54
+ const W = [
55
+ "linkedin",
56
+ "youtube",
57
+ "instagram",
58
+ "facebook"
59
+ ], X = {
60
+ linkedin: "https://www.linkedin.com/company/alfadocs",
61
+ youtube: "https://www.youtube.com/@alfadocs",
62
+ instagram: "https://www.instagram.com/alfadocs",
63
+ facebook: "https://www.facebook.com/alfadocs"
64
+ }, b = {
65
+ viewBox: "0 0 24 24",
66
+ fill: "currentColor",
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 = _(
74
+ [
75
+ "ds:w-full",
76
+ "ds:text-[color:var(--muted-foreground)]",
77
+ "ds:text-[length:var(--font-size-sm)]",
78
+ "ds:bg-[var(--background)]"
79
+ ].join(" "),
80
+ {
81
+ variants: {
82
+ variant: {
83
+ minimal: [
84
+ "ds:py-[var(--spacing-sm)]",
85
+ "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
86
+ "ds:border-block-start ds:border-[var(--border)]"
87
+ ].join(" "),
88
+ compact: [
89
+ "ds:py-[var(--spacing-md)]",
90
+ "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
91
+ "ds:border-block-start ds:border-[var(--border)]"
92
+ ].join(" "),
93
+ full: [
94
+ "ds:py-[var(--spacing-xl)]",
95
+ "ds:ps-[var(--spacing-lg)] ds:pe-[var(--spacing-lg)]",
96
+ "ds:bg-[var(--muted)]"
97
+ ].join(" ")
98
+ }
99
+ },
100
+ defaultVariants: { variant: "compact" }
101
+ }
102
+ ), ne = /^(https?:\/\/|mailto:|tel:|\/(?!\/))/i;
103
+ function I(t) {
104
+ return ne.test(t) ? t : "#";
105
+ }
106
+ function F({
107
+ copyright: t,
108
+ align: s = "center"
109
+ }) {
110
+ return /* @__PURE__ */ e(
111
+ "p",
112
+ {
113
+ className: [
114
+ "ds:m-0 ds:text-[color:var(--muted-foreground)]",
115
+ "ds:text-[length:var(--font-size-sm)]",
116
+ s === "center" ? "ds:text-center" : "ds:text-start"
117
+ ].join(" "),
118
+ children: t
119
+ }
120
+ );
121
+ }
122
+ const re = E(
123
+ function({
124
+ variant: s,
125
+ 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]
139
+ );
140
+ V(
141
+ c,
142
+ () => ({
143
+ getVariant: () => s,
144
+ getLegalUrls: () => p
145
+ }),
146
+ [s, p]
147
+ );
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 = {
153
+ privacy: o("footer.nav.privacy"),
154
+ terms: o("footer.nav.terms"),
155
+ contacts: o("footer.nav.contacts")
156
+ }, S = A(() => m !== void 0 ? m : W.map((j) => ({ network: j })), [m]);
157
+ return /* @__PURE__ */ i(
158
+ "footer",
159
+ {
160
+ id: x,
161
+ role: "contentinfo",
162
+ "aria-label": M,
163
+ "data-component": "public-footer",
164
+ "data-variant": s,
165
+ className: ae({ variant: s }),
166
+ children: [
167
+ s === "minimal" && /* @__PURE__ */ e(
168
+ ce,
169
+ {
170
+ legalUrls: p,
171
+ labels: N,
172
+ copyright: w,
173
+ trustBadgesSlot: v
174
+ }
175
+ ),
176
+ s === "compact" && /* @__PURE__ */ e(
177
+ ie,
178
+ {
179
+ legalUrls: p,
180
+ labels: N,
181
+ copyright: w,
182
+ tagline: $,
183
+ extraNavSlot: h
184
+ }
185
+ ),
186
+ s === "full" && /* @__PURE__ */ e(
187
+ le,
188
+ {
189
+ legalUrls: p,
190
+ labels: N,
191
+ copyright: w,
192
+ tagline: $,
193
+ linkGroups: r,
194
+ socials: S,
195
+ logoSlot: u,
196
+ extraNavSlot: h,
197
+ trustBadgesSlot: v,
198
+ t: o
199
+ }
200
+ )
201
+ ]
202
+ }
203
+ );
204
+ }
205
+ );
206
+ function ce({
207
+ legalUrls: t,
208
+ labels: s,
209
+ copyright: a,
210
+ trustBadgesSlot: n
211
+ }) {
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: [
213
+ n && /* @__PURE__ */ e(
214
+ "span",
215
+ {
216
+ "data-slot": "trust-badges",
217
+ className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)] ds:me-[var(--spacing-sm)]",
218
+ children: n
219
+ }
220
+ ),
221
+ /* @__PURE__ */ e(
222
+ d,
223
+ {
224
+ href: t.privacy,
225
+ external: !0,
226
+ externalIcon: !1,
227
+ intent: "subtle",
228
+ children: s.privacy
229
+ }
230
+ ),
231
+ /* @__PURE__ */ e(f, { orientation: "vertical", className: "ds:h-4" }),
232
+ /* @__PURE__ */ e(
233
+ d,
234
+ {
235
+ href: t.terms,
236
+ external: !0,
237
+ externalIcon: !1,
238
+ intent: "subtle",
239
+ children: s.terms
240
+ }
241
+ ),
242
+ /* @__PURE__ */ e(f, { orientation: "vertical", className: "ds:h-4" }),
243
+ /* @__PURE__ */ e("span", { children: a })
244
+ ] });
245
+ }
246
+ function ie({
247
+ legalUrls: t,
248
+ labels: s,
249
+ copyright: a,
250
+ tagline: n,
251
+ extraNavSlot: r
252
+ }) {
253
+ return /* @__PURE__ */ i("div", { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-sm)]", children: [
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: [
255
+ /* @__PURE__ */ e(
256
+ d,
257
+ {
258
+ href: t.privacy,
259
+ external: !0,
260
+ externalIcon: !1,
261
+ intent: "subtle",
262
+ children: s.privacy
263
+ }
264
+ ),
265
+ /* @__PURE__ */ e(f, { orientation: "vertical", className: "ds:h-4" }),
266
+ /* @__PURE__ */ e(
267
+ d,
268
+ {
269
+ href: t.terms,
270
+ external: !0,
271
+ externalIcon: !1,
272
+ intent: "subtle",
273
+ children: s.terms
274
+ }
275
+ ),
276
+ /* @__PURE__ */ e(f, { orientation: "vertical", className: "ds:h-4" }),
277
+ /* @__PURE__ */ e(
278
+ d,
279
+ {
280
+ href: t.contacts,
281
+ external: !0,
282
+ externalIcon: !1,
283
+ intent: "subtle",
284
+ children: s.contacts
285
+ }
286
+ ),
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 })
290
+ ] })
291
+ ] }),
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
301
+ ] });
302
+ }
303
+ function oe(t, s) {
304
+ return {
305
+ key: "legal",
306
+ links: [
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 }
310
+ ]
311
+ };
312
+ }
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
324
+ }) {
325
+ const x = [
326
+ ...r ?? [],
327
+ 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
+ );
367
+ return /* @__PURE__ */ i("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xl)]", children: [
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: [
369
+ /* @__PURE__ */ e("div", { className: "ds:lg:w-[15rem] ds:lg:shrink-0", children: y }),
370
+ /* @__PURE__ */ i("div", { className: "ds:flex-1 ds:min-w-0", children: [
371
+ /* @__PURE__ */ e(
372
+ "div",
373
+ {
374
+ className: "ds:hidden ds:md:grid ds:md:grid-cols-2 ds:lg:grid-cols-4 ds:gap-[var(--spacing-lg)]",
375
+ "data-slot": "link-columns-grid",
376
+ "data-columns": x.length,
377
+ children: /* @__PURE__ */ e(de, { columns: x, t: g })
378
+ }
379
+ ),
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,
382
+ {
383
+ value: `${o}-${c.key}`,
384
+ children: [
385
+ /* @__PURE__ */ e(G, { children: g(`footer.group.${c.key}`, {
386
+ defaultValue: c.key
387
+ }) }),
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,
390
+ {
391
+ href: I(l.href),
392
+ external: l.external,
393
+ externalIcon: !1,
394
+ intent: "subtle",
395
+ children: l.label
396
+ }
397
+ ) }, `${c.key}-${l.href}-${l.label}`)) }) })
398
+ ]
399
+ },
400
+ `${o}-${c.key}`
401
+ )) }) })
402
+ ] })
403
+ ] }),
404
+ /* @__PURE__ */ e(f, { orientation: "horizontal" }),
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: [
406
+ /* @__PURE__ */ e(F, { copyright: a, align: "start" }),
407
+ /* @__PURE__ */ i(
408
+ "div",
409
+ {
410
+ "data-slot": "bottom-legal",
411
+ className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)] ds:sm:justify-end",
412
+ children: [
413
+ /* @__PURE__ */ e(
414
+ d,
415
+ {
416
+ href: t.privacy,
417
+ external: !0,
418
+ externalIcon: !1,
419
+ intent: "subtle",
420
+ children: s.privacy
421
+ }
422
+ ),
423
+ /* @__PURE__ */ e(f, { orientation: "vertical", className: "ds:h-4" }),
424
+ /* @__PURE__ */ e(
425
+ d,
426
+ {
427
+ href: t.terms,
428
+ external: !0,
429
+ externalIcon: !1,
430
+ intent: "subtle",
431
+ children: s.terms
432
+ }
433
+ ),
434
+ (v || h) && /* @__PURE__ */ i(z, { children: [
435
+ /* @__PURE__ */ e(f, { orientation: "vertical", className: "ds:h-4" }),
436
+ v && /* @__PURE__ */ e(
437
+ "span",
438
+ {
439
+ "data-slot": "trust-badges",
440
+ className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]",
441
+ children: v
442
+ }
443
+ ),
444
+ h && /* @__PURE__ */ e(
445
+ "span",
446
+ {
447
+ "data-slot": "extra-nav",
448
+ className: "ds:inline-flex ds:items-center",
449
+ children: h
450
+ }
451
+ )
452
+ ] })
453
+ ]
454
+ }
455
+ )
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
465
+ ] });
466
+ }
467
+ function de({
468
+ columns: t,
469
+ t: s
470
+ }) {
471
+ return /* @__PURE__ */ e(z, { children: t.map((a, n) => /* @__PURE__ */ i(
472
+ "section",
473
+ {
474
+ "aria-labelledby": `public-footer-group-${n}-${a.key}`,
475
+ children: [
476
+ /* @__PURE__ */ e(
477
+ "h3",
478
+ {
479
+ id: `public-footer-group-${n}-${a.key}`,
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",
481
+ children: s(`footer.group.${a.key}`, { defaultValue: a.key })
482
+ }
483
+ ),
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,
486
+ {
487
+ href: I(r.href),
488
+ external: r.external,
489
+ externalIcon: !1,
490
+ intent: "subtle",
491
+ children: r.label
492
+ }
493
+ ) }, `${a.key}-${r.href}-${r.label}`)) })
494
+ ]
495
+ },
496
+ `${n}-${a.key}`
497
+ )) });
498
+ }
499
+ re.displayName = "PublicFooter";
500
+ const be = {
501
+ id: "public-footer",
502
+ capabilities: ["navigate"],
503
+ state: {
504
+ variant: {
505
+ type: "string",
506
+ description: "Active variant — one of `minimal`, `compact`, `full`.",
507
+ read: (t) => t.getVariant()
508
+ },
509
+ legalUrls: {
510
+ type: "object",
511
+ description: "Resolved legal URLs for the active locale + marketingBaseUrl + overrides: `{ privacy, terms, contacts }`.",
512
+ read: (t) => t.getLegalUrls()
513
+ }
514
+ },
515
+ actions: {},
516
+ domHooks: {
517
+ root: {
518
+ attr: "data-component",
519
+ value: "public-footer",
520
+ description: 'Marks the PublicFooter root region. The root also carries `data-variant="minimal|compact|full"` for CSS + agent selectors.'
521
+ },
522
+ instanceId: {
523
+ attr: "id",
524
+ sourceProp: "id",
525
+ description: "Sourced from the `id` prop when provided."
526
+ }
527
+ }
528
+ };
529
+ 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
536
+ };
537
+ //# sourceMappingURL=public-footer.agent-DivkKdG4.js.map