@alfadocs/ui-kit 0.25.1 → 0.30.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.
Files changed (205) hide show
  1. package/dist/_chunks/{agenda-card-BmpaUG1h.js → agenda-card-CznB7K8e.js} +2 -2
  2. package/dist/_chunks/{agenda-tray-DiInnVqk.js → agenda-tray-C_bha7oK.js} +4 -4
  3. package/dist/_chunks/{ai-prompt-input-B5MdixzR.js → ai-prompt-input-Bka3jX3i.js} +2 -2
  4. package/dist/_chunks/{alia-sidebar-CUi2UCbY.js → alia-sidebar-CnvXq95r.js} +92 -109
  5. package/dist/_chunks/{audio-recorder-D4xM3H5i.js → audio-recorder-OB6IV9B1.js} +2 -2
  6. package/dist/_chunks/{autocomplete-C7xq06bP.js → autocomplete-CUh0f7Dj.js} +2 -2
  7. package/dist/_chunks/{avatar-BpFohgWG.js → avatar-D_H4emLo.js} +7 -7
  8. package/dist/_chunks/{benefit-card-DXmrAyfn.js → benefit-card-CjYM8vNr.js} +29 -29
  9. package/dist/_chunks/booking-BYuc_8HV.js +2250 -0
  10. package/dist/_chunks/{calendar-zy0tUUVG.js → calendar-WWNx448i.js} +114 -142
  11. package/dist/_chunks/{card-C353dU-H.js → card-DKTMLVrw.js} +11 -11
  12. package/dist/_chunks/{carousel.agent-DnPiqijR.js → carousel.agent-C9swH-Uf.js} +2 -2
  13. package/dist/_chunks/{chat-input-B3XmFGDw.js → chat-input-BfDcz1Yi.js} +2 -2
  14. package/dist/_chunks/{chat-message-W3k8rLOA.js → chat-message-fg221-yx.js} +2 -2
  15. package/dist/_chunks/{command-palette-DkL-aW4O.js → command-palette-11BieSNq.js} +2 -2
  16. package/dist/_chunks/{contact-card-CjG7c-1q.js → contact-card-DYbp--s-.js} +3 -3
  17. package/dist/_chunks/{date-picker-BIoSLRly.js → date-picker-D0Ry1dMz.js} +26 -27
  18. package/dist/_chunks/{date-range-picker-9gANFNG9.js → date-range-picker-DYgHzMOo.js} +19 -20
  19. package/dist/_chunks/{date-time-picker-DG7BiGdb.js → date-time-picker-CGmGtcyc.js} +10 -11
  20. package/dist/_chunks/{description-list-Bsga4IW8.js → description-list-yl3y3QKg.js} +34 -24
  21. package/dist/_chunks/{dialog-DUomPCRS.js → dialog-BBXqpZIt.js} +2 -2
  22. package/dist/_chunks/{editable-currency-cell-renderer-DJB5MxAI.js → editable-currency-cell-renderer-DSReCae7.js} +7 -7
  23. package/dist/_chunks/{empty-state-3CLJIXSj.js → empty-state-BLy7tigq.js} +13 -33
  24. package/dist/_chunks/eye-LHlSU38h.js +21 -0
  25. package/dist/_chunks/{freemium-paywall-CM6V1zNf.js → freemium-paywall-B9c8Ylww.js} +11 -11
  26. package/dist/_chunks/{header-DqmKROIY.js → header-CkMb1TZS.js} +24 -24
  27. package/dist/_chunks/heart-pulse-CvuyFKHB.js +21 -0
  28. package/dist/_chunks/icon-button-BRHSSFmZ.js +70 -0
  29. package/dist/_chunks/{isSameDay-ecuM8PBB.js → isSameDay-DHG8Xade.js} +4 -4
  30. package/dist/_chunks/{key-value-pair-DBuOCtIc.js → key-value-pair-CqeKiP__.js} +2 -2
  31. package/dist/_chunks/{link-DmM5IevO.js → link-DrD_cRUg.js} +50 -45
  32. package/dist/_chunks/{locale-picker-BxEUUPW7.js → locale-picker-BHxbTNmR.js} +297 -208
  33. package/dist/_chunks/{map-view-CcwycFQX.js → map-view-DyB8tr6c.js} +9 -9
  34. package/dist/_chunks/{matrix-rain-CRPMXcVx.js → matrix-rain-sDOUUwZp.js} +35 -35
  35. package/dist/_chunks/{message-card-i61k1TGc.js → message-card-DjRtA8GG.js} +3 -3
  36. package/dist/_chunks/{message-tray-DrV7G-wR.js → message-tray-DfsAMncP.js} +3 -3
  37. package/dist/_chunks/monitor-D-SFdbrU.js +16 -0
  38. package/dist/_chunks/{notification-card-ejOw5g6g.js → notification-card-B_847w5g.js} +3 -3
  39. package/dist/_chunks/{notification-tray-D_69dXFY.js → notification-tray-6f7smmT1.js} +22 -19
  40. package/dist/_chunks/parseISO-Dk4xa7q6.js +120 -0
  41. package/dist/_chunks/patient-search-BhlxYAI3.js +1102 -0
  42. package/dist/_chunks/patient-shell-CAXYzbRw.js +173 -0
  43. package/dist/_chunks/{payment-form-F7uh0Rqr.js → payment-form-Ds3rxvad.js} +2 -2
  44. package/dist/_chunks/{pdf-viewer-CuYaVR1I.js → pdf-viewer-CIuaocnq.js} +2 -2
  45. package/dist/_chunks/{popover--derJ_wq.js → popover-D0slaBB9.js} +17 -13
  46. package/dist/_chunks/{privacy-lock-BKsI6ReN.js → privacy-lock-BI4vi9Ud.js} +2 -2
  47. package/dist/_chunks/public-footer.agent-CA29gxHJ.js +516 -0
  48. package/dist/_chunks/{public-header.agent-BQ3r6Hgq.js → public-header.agent-5U3S9QiC.js} +49 -41
  49. package/dist/_chunks/react-day-picker-D3yzgvDB.js +3127 -0
  50. package/dist/_chunks/{recaptcha-widget-Kp1XntuE.js → recaptcha-widget-BtBNb6tB.js} +2 -2
  51. package/dist/_chunks/reviews-panel-CFttsfuC.js +513 -0
  52. package/dist/_chunks/{search-bar-DORSAzNt.js → search-bar-BRMW1-WG.js} +2 -2
  53. package/dist/_chunks/{search-input-BtEJAJHa.js → search-input-CIA6pPfn.js} +2 -2
  54. package/dist/_chunks/{sheet-BT0izeoI.js → sheet-D8M8hf8B.js} +2 -2
  55. package/dist/_chunks/{sign-in-with-alfadocs-button-4zZC-I6y.js → sign-in-with-alfadocs-button-BI0fVonM.js} +2 -2
  56. package/dist/_chunks/slot-grid-B2zprPcv.js +387 -0
  57. package/dist/_chunks/sparkles-CuYXqQLg.js +23 -0
  58. package/dist/_chunks/{spinner-DirtWZNG.js → spinner-CCByyvcb.js} +2 -2
  59. package/dist/_chunks/stepper-accordion-BfS6lUB9.js +257 -0
  60. package/dist/_chunks/stepper-accordion.agent-C4quJ-MD.js +71 -0
  61. package/dist/_chunks/stethoscope-DT5qCW8Y.js +18 -0
  62. package/dist/_chunks/{sun-Eweh5fvi.js → sun-BuXE0xUS.js} +3 -15
  63. package/dist/_chunks/{task-tray-B3A2fRGR.js → task-tray-Bcmrrs8m.js} +3 -3
  64. package/dist/_chunks/{theme-toggle-FrotC2VI.js → theme-toggle-nPzb378f.js} +37 -36
  65. package/dist/_chunks/{timeline-jmd7lfDf.js → timeline-CR7HjZCK.js} +3 -3
  66. package/dist/_chunks/{toast.agent-32WNQ-_x.js → toast.agent-CTF6nIj5.js} +2 -2
  67. package/dist/_chunks/{transcript-panel-DUrjx5sa.js → transcript-panel-QUQ9XJmf.js} +2 -2
  68. package/dist/_chunks/{use-password-requirements-C9vKBSVn.js → use-password-requirements-E0sSfx5X.js} +38 -53
  69. package/dist/_chunks/use-theme-C2dHKUAN.js +145 -0
  70. package/dist/_chunks/{workflow-map-BR6txfFX.js → workflow-map-BKsKdYvZ.js} +5 -5
  71. package/dist/agent-catalog.json +151 -51
  72. package/dist/components/agenda-card/index.js +1 -1
  73. package/dist/components/agenda-tray/index.js +1 -1
  74. package/dist/components/ai-prompt-input/index.js +1 -1
  75. package/dist/components/audio-recorder/index.js +1 -1
  76. package/dist/components/autocomplete/index.js +1 -1
  77. package/dist/components/avatar/index.js +1 -1
  78. package/dist/components/benefit-card/index.js +1 -1
  79. package/dist/components/booking/booking-types.d.ts +145 -0
  80. package/dist/components/booking/booking.agent.d.ts +4 -0
  81. package/dist/components/booking/booking.d.ts +6 -0
  82. package/dist/components/booking/cascade.d.ts +96 -0
  83. package/dist/components/booking/details-form.d.ts +32 -0
  84. package/dist/components/booking/index.d.ts +5 -0
  85. package/dist/components/booking/index.js +8 -0
  86. package/dist/components/button/index.js +1 -1
  87. package/dist/components/calendar/index.js +1 -1
  88. package/dist/components/card/index.js +1 -1
  89. package/dist/components/carousel/index.js +1 -1
  90. package/dist/components/chat-input/index.js +1 -1
  91. package/dist/components/chat-message/index.js +1 -1
  92. package/dist/components/checkbox/checkbox.d.ts +6 -2
  93. package/dist/components/command-palette/index.js +1 -1
  94. package/dist/components/contact-card/index.js +1 -1
  95. package/dist/components/data-table/index.js +1 -1
  96. package/dist/components/date-picker/index.js +1 -1
  97. package/dist/components/date-range-picker/index.js +1 -1
  98. package/dist/components/date-time-picker/index.js +1 -1
  99. package/dist/components/description-list/index.js +1 -1
  100. package/dist/components/dialog/index.js +1 -1
  101. package/dist/components/empty-state/index.js +1 -1
  102. package/dist/components/freemium-paywall/index.js +1 -1
  103. package/dist/components/header/index.js +1 -1
  104. package/dist/components/header-settings/index.js +16 -15
  105. package/dist/components/icon-button/index.js +1 -1
  106. package/dist/components/index.d.ts +4 -1
  107. package/dist/components/key-value-pair/index.js +1 -1
  108. package/dist/components/link/index.js +1 -1
  109. package/dist/components/link/link.d.ts +7 -0
  110. package/dist/components/locale-picker/index.js +1 -1
  111. package/dist/components/map-view/index.js +1 -1
  112. package/dist/components/matrix-rain/index.js +1 -1
  113. package/dist/components/message-card/index.js +1 -1
  114. package/dist/components/message-tray/index.js +1 -1
  115. package/dist/components/notification-card/index.js +1 -1
  116. package/dist/components/notification-tray/index.js +1 -1
  117. package/dist/components/password-input/index.js +1 -1
  118. package/dist/components/patient-search/index.d.ts +4 -0
  119. package/dist/components/patient-search/index.js +6 -0
  120. package/dist/components/patient-search/patient-search.agent.d.ts +4 -0
  121. package/dist/components/patient-search/patient-search.d.ts +103 -0
  122. package/dist/components/payment-form/index.js +1 -1
  123. package/dist/components/pdf-viewer/index.js +1 -1
  124. package/dist/components/popover/index.js +1 -1
  125. package/dist/components/privacy-lock/index.js +1 -1
  126. package/dist/components/public-footer/index.d.ts +6 -0
  127. package/dist/components/public-footer/index.js +10 -0
  128. package/dist/components/public-footer/legal-urls.d.ts +18 -0
  129. package/dist/components/public-footer/public-footer.agent.d.ts +4 -0
  130. package/dist/components/public-footer/public-footer.d.ts +51 -0
  131. package/dist/components/public-footer/socials.d.ts +9 -0
  132. package/dist/components/public-header/index.js +1 -1
  133. package/dist/components/recaptcha-widget/index.js +1 -1
  134. package/dist/components/reviews-panel/index.d.ts +4 -0
  135. package/dist/components/reviews-panel/index.js +6 -0
  136. package/dist/components/reviews-panel/reviews-panel.agent.d.ts +4 -0
  137. package/dist/components/reviews-panel/reviews-panel.d.ts +76 -0
  138. package/dist/components/search-bar/index.js +1 -1
  139. package/dist/components/search-input/index.js +1 -1
  140. package/dist/components/sheet/index.js +1 -1
  141. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  142. package/dist/components/slot-grid/index.js +1 -1
  143. package/dist/components/spinner/index.js +1 -1
  144. package/dist/components/stepper-accordion/index.js +4 -3
  145. package/dist/components/task-tray/index.js +1 -1
  146. package/dist/components/theme-toggle/index.js +1 -1
  147. package/dist/components/timeline/index.js +1 -1
  148. package/dist/components/toast/index.js +1 -1
  149. package/dist/components/transcript-panel/index.js +1 -1
  150. package/dist/components/workflow/index.js +1 -1
  151. package/dist/hooks/index.js +1 -1
  152. package/dist/i18n/config.js +4923 -49
  153. package/dist/i18n/locales/ar.d.ts +272 -0
  154. package/dist/i18n/locales/de.d.ts +272 -0
  155. package/dist/i18n/locales/el.d.ts +272 -0
  156. package/dist/i18n/locales/es.d.ts +272 -0
  157. package/dist/i18n/locales/fr.d.ts +272 -0
  158. package/dist/i18n/locales/hi.d.ts +272 -0
  159. package/dist/i18n/locales/ja.d.ts +272 -0
  160. package/dist/i18n/locales/nl.d.ts +272 -0
  161. package/dist/i18n/locales/pl.d.ts +272 -0
  162. package/dist/i18n/locales/pt.d.ts +272 -0
  163. package/dist/i18n/locales/ro.d.ts +272 -0
  164. package/dist/i18n/locales/ru.d.ts +272 -0
  165. package/dist/i18n/locales/sq.d.ts +272 -0
  166. package/dist/i18n/locales/sv.d.ts +272 -0
  167. package/dist/i18n/locales/tr.d.ts +272 -0
  168. package/dist/i18n/locales/zh.d.ts +272 -0
  169. package/dist/i18n/resources.d.ts +544 -0
  170. package/dist/index.js +364 -348
  171. package/dist/locales/ar.json +273 -1
  172. package/dist/locales/de.json +273 -1
  173. package/dist/locales/el.json +273 -1
  174. package/dist/locales/en.json +273 -1
  175. package/dist/locales/es.json +273 -1
  176. package/dist/locales/fr.json +273 -1
  177. package/dist/locales/hi.json +273 -1
  178. package/dist/locales/it.json +273 -1
  179. package/dist/locales/ja.json +273 -1
  180. package/dist/locales/nl.json +273 -1
  181. package/dist/locales/pl.json +273 -1
  182. package/dist/locales/pt.json +273 -1
  183. package/dist/locales/ro.json +273 -1
  184. package/dist/locales/ru.json +273 -1
  185. package/dist/locales/sq.json +273 -1
  186. package/dist/locales/sv.json +273 -1
  187. package/dist/locales/tr.json +273 -1
  188. package/dist/locales/zh.json +273 -1
  189. package/dist/patterns/alia-assistant/index.js +1 -1
  190. package/dist/patterns/patient-shell/index.js +1 -1
  191. package/dist/tokens.css +1 -1
  192. package/package.json +17 -1
  193. package/dist/_chunks/icon-button-C4CGcYuz.js +0 -54
  194. package/dist/_chunks/isSameMonth-5wNF2f4I.js +0 -1307
  195. package/dist/_chunks/patient-shell-B164drIa.js +0 -173
  196. package/dist/_chunks/react-day-picker-C5F3-TTX.js +0 -1827
  197. package/dist/_chunks/slot-grid-CgpYgBkW.js +0 -502
  198. package/dist/_chunks/stepper-C-sIpRRU.js +0 -7
  199. package/dist/_chunks/stepper-accordion.agent-ckKYZCIP.js +0 -322
  200. package/dist/_chunks/stepper-calendar-BLOJUE0-.js +0 -648
  201. package/dist/_chunks/use-theme-B1cwAXJR.js +0 -145
  202. package/dist/components/stepper-calendar/index.d.ts +0 -4
  203. package/dist/components/stepper-calendar/index.js +0 -6
  204. package/dist/components/stepper-calendar/stepper-calendar.agent.d.ts +0 -4
  205. package/dist/components/stepper-calendar/stepper-calendar.d.ts +0 -62
@@ -0,0 +1,516 @@
1
+ import { jsx as e, jsxs as i, Fragment as I } from "react/jsx-runtime";
2
+ import { forwardRef as S, useMemo as $, useImperativeHandle as j } from "react";
3
+ import { c as E } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as V } 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 _ } from "./logo-_Z-jLq80.js";
8
+ import { A as H, b as P, c as R, a as D } from "./accordion-CNcodXuO.js";
9
+ const z = "https://www.alfadocs.com", A = {
10
+ privacy: "/privacy-prenotazione-online",
11
+ terms: "/it/condizioni-di-utilizzo",
12
+ contacts: "/it/contattaci"
13
+ }, G = {
14
+ it: A,
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
+ }, U = "https://";
36
+ function O(a) {
37
+ return !a || !a.startsWith(U) ? z : a.replace(/\/+$/, "");
38
+ }
39
+ function N(a, t, s) {
40
+ var m, p;
41
+ const n = (m = s == null ? void 0 : s[t]) == null ? void 0 : m[a];
42
+ if (n) return n;
43
+ const r = (p = G[a]) == null ? void 0 : p[t];
44
+ return r || A[t];
45
+ }
46
+ function Y(a, t, s) {
47
+ const n = O(t), r = (a || "it").split("-")[0];
48
+ return {
49
+ privacy: `${n}${N(r, "privacy", s)}`,
50
+ terms: `${n}${N(r, "terms", s)}`,
51
+ contacts: `${n}${N(r, "contacts", s)}`
52
+ };
53
+ }
54
+ const B = [
55
+ "linkedin",
56
+ "youtube",
57
+ "instagram",
58
+ "facebook"
59
+ ], K = {
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
+ }, x = {
65
+ viewBox: "0 0 24 24",
66
+ fill: "currentColor",
67
+ xmlns: "http://www.w3.org/2000/svg"
68
+ }, W = (a) => /* @__PURE__ */ e("svg", { ...x, ...a, 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" }) }), X = (a) => /* @__PURE__ */ e("svg", { ...x, ...a, 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 = (a) => /* @__PURE__ */ e("svg", { ...x, ...a, 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" }) }), J = (a) => /* @__PURE__ */ e("svg", { ...x, ...a, 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" }) }), Q = {
69
+ linkedin: W,
70
+ youtube: X,
71
+ instagram: q,
72
+ facebook: J
73
+ }, Z = "AlfaDocs GmbH", ee = "P.IVA DE301955405", ae = E(
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
+ ), te = /^(https?:\/\/|mailto:|tel:|\/(?!\/))/i;
103
+ function k(a) {
104
+ return te.test(a) ? a : "#";
105
+ }
106
+ function L({
107
+ copyright: a,
108
+ align: t = "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
+ t === "center" ? "ds:text-center" : "ds:text-start"
117
+ ].join(" "),
118
+ children: a
119
+ }
120
+ );
121
+ }
122
+ const se = S(
123
+ function({
124
+ variant: t,
125
+ marketingBaseUrl: s,
126
+ legalUrlOverrides: n,
127
+ linkGroups: r,
128
+ socials: m,
129
+ logoSlot: p,
130
+ extraNavSlot: h,
131
+ trustBadgesSlot: v,
132
+ id: g,
133
+ "aria-label": b
134
+ }, c) {
135
+ const { t: o, i18n: l } = V("ui"), u = $(
136
+ () => Y(l.language, s, n),
137
+ [l.language, s, n]
138
+ );
139
+ j(
140
+ c,
141
+ () => ({
142
+ getVariant: () => t,
143
+ getLegalUrls: () => u
144
+ }),
145
+ [t, u]
146
+ );
147
+ const C = (/* @__PURE__ */ new Date()).getFullYear(), y = o("footer.copyright", {
148
+ year: C,
149
+ entity: Z,
150
+ vat: ee
151
+ }), F = b ?? o("footer.nav.label"), w = {
152
+ privacy: o("footer.nav.privacy"),
153
+ terms: o("footer.nav.terms"),
154
+ contacts: o("footer.nav.contacts")
155
+ }, T = $(() => m !== void 0 ? m : B.map((M) => ({ network: M })), [m]);
156
+ return /* @__PURE__ */ i(
157
+ "footer",
158
+ {
159
+ id: g,
160
+ role: "contentinfo",
161
+ "aria-label": F,
162
+ "data-component": "public-footer",
163
+ "data-variant": t,
164
+ className: ae({ variant: t }),
165
+ children: [
166
+ t === "minimal" && /* @__PURE__ */ e(
167
+ ne,
168
+ {
169
+ legalUrls: u,
170
+ labels: w,
171
+ copyright: y,
172
+ trustBadgesSlot: v
173
+ }
174
+ ),
175
+ t === "compact" && /* @__PURE__ */ e(
176
+ re,
177
+ {
178
+ legalUrls: u,
179
+ labels: w,
180
+ copyright: y,
181
+ extraNavSlot: h
182
+ }
183
+ ),
184
+ t === "full" && /* @__PURE__ */ e(
185
+ ie,
186
+ {
187
+ legalUrls: u,
188
+ labels: w,
189
+ copyright: y,
190
+ linkGroups: r,
191
+ socials: T,
192
+ logoSlot: p,
193
+ extraNavSlot: h,
194
+ trustBadgesSlot: v,
195
+ t: o
196
+ }
197
+ )
198
+ ]
199
+ }
200
+ );
201
+ }
202
+ );
203
+ function ne({
204
+ legalUrls: a,
205
+ labels: t,
206
+ copyright: s,
207
+ trustBadgesSlot: n
208
+ }) {
209
+ 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: [
210
+ n && /* @__PURE__ */ e(
211
+ "span",
212
+ {
213
+ "data-slot": "trust-badges",
214
+ className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)] ds:me-[var(--spacing-sm)]",
215
+ children: n
216
+ }
217
+ ),
218
+ /* @__PURE__ */ e(
219
+ d,
220
+ {
221
+ href: a.privacy,
222
+ external: !0,
223
+ externalIcon: !1,
224
+ intent: "subtle",
225
+ children: t.privacy
226
+ }
227
+ ),
228
+ /* @__PURE__ */ e(f, { orientation: "vertical", className: "ds:h-4" }),
229
+ /* @__PURE__ */ e(
230
+ d,
231
+ {
232
+ href: a.terms,
233
+ external: !0,
234
+ externalIcon: !1,
235
+ intent: "subtle",
236
+ children: t.terms
237
+ }
238
+ ),
239
+ /* @__PURE__ */ e(f, { orientation: "vertical", className: "ds:h-4" }),
240
+ /* @__PURE__ */ e("span", { children: s })
241
+ ] });
242
+ }
243
+ function re({
244
+ legalUrls: a,
245
+ labels: t,
246
+ copyright: s,
247
+ extraNavSlot: n
248
+ }) {
249
+ return /* @__PURE__ */ i("div", { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-sm)]", children: [
250
+ /* @__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
+ /* @__PURE__ */ e(
252
+ d,
253
+ {
254
+ href: a.privacy,
255
+ external: !0,
256
+ externalIcon: !1,
257
+ intent: "subtle",
258
+ children: t.privacy
259
+ }
260
+ ),
261
+ /* @__PURE__ */ e(f, { orientation: "vertical", className: "ds:h-4" }),
262
+ /* @__PURE__ */ e(
263
+ d,
264
+ {
265
+ href: a.terms,
266
+ external: !0,
267
+ externalIcon: !1,
268
+ intent: "subtle",
269
+ children: t.terms
270
+ }
271
+ ),
272
+ /* @__PURE__ */ e(f, { orientation: "vertical", className: "ds:h-4" }),
273
+ /* @__PURE__ */ e(
274
+ d,
275
+ {
276
+ href: a.contacts,
277
+ external: !0,
278
+ externalIcon: !1,
279
+ intent: "subtle",
280
+ children: t.contacts
281
+ }
282
+ ),
283
+ n && /* @__PURE__ */ i(I, { children: [
284
+ /* @__PURE__ */ e(f, { orientation: "vertical", className: "ds:h-4" }),
285
+ /* @__PURE__ */ e("span", { "data-slot": "extra-nav", children: n })
286
+ ] })
287
+ ] }),
288
+ /* @__PURE__ */ e(L, { copyright: s })
289
+ ] });
290
+ }
291
+ function ce(a, t) {
292
+ return {
293
+ key: "legal",
294
+ links: [
295
+ { href: a.privacy, label: t.privacy, external: !0 },
296
+ { href: a.terms, label: t.terms, external: !0 },
297
+ { href: a.contacts, label: t.contacts, external: !0 }
298
+ ]
299
+ };
300
+ }
301
+ function ie({
302
+ legalUrls: a,
303
+ labels: t,
304
+ copyright: s,
305
+ linkGroups: n,
306
+ socials: r,
307
+ logoSlot: m,
308
+ extraNavSlot: p,
309
+ trustBadgesSlot: h,
310
+ t: v
311
+ }) {
312
+ const g = [
313
+ ...n ?? [],
314
+ ce(a, t)
315
+ ], b = /* @__PURE__ */ i(
316
+ "div",
317
+ {
318
+ "data-slot": "brand",
319
+ className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
320
+ children: [
321
+ /* @__PURE__ */ e("div", { className: "ds:inline-flex", children: m ?? /* @__PURE__ */ e(_, { variant: "wordmark", tone: "auto", "aria-label": "AlfaDocs" }) }),
322
+ r.length > 0 && /* @__PURE__ */ e(
323
+ "ul",
324
+ {
325
+ "data-slot": "socials",
326
+ className: "ds:list-none ds:m-0 ds:p-0 ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
327
+ children: r.map((c) => {
328
+ const o = Q[c.network], l = c.href ?? K[c.network], u = v(`footer.social.aria.${c.network}`);
329
+ return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
330
+ d,
331
+ {
332
+ href: k(l),
333
+ external: !0,
334
+ externalIcon: !1,
335
+ intent: "subtle",
336
+ "aria-label": u,
337
+ 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
+ children: /* @__PURE__ */ e(
339
+ o,
340
+ {
341
+ "aria-hidden": "true",
342
+ className: "ds:size-5",
343
+ focusable: "false"
344
+ }
345
+ )
346
+ }
347
+ ) }, c.network);
348
+ })
349
+ }
350
+ )
351
+ ]
352
+ }
353
+ );
354
+ return /* @__PURE__ */ i("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xl)]", children: [
355
+ /* @__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: b }),
357
+ /* @__PURE__ */ i("div", { className: "ds:flex-1 ds:min-w-0", children: [
358
+ /* @__PURE__ */ e(
359
+ "div",
360
+ {
361
+ className: "ds:hidden ds:md:grid ds:md:grid-cols-2 ds:lg:grid-cols-4 ds:gap-[var(--spacing-lg)]",
362
+ "data-slot": "link-columns-grid",
363
+ "data-columns": g.length,
364
+ children: /* @__PURE__ */ e(oe, { columns: g, t: v })
365
+ }
366
+ ),
367
+ /* @__PURE__ */ e("div", { className: "ds:md:hidden", "data-slot": "link-columns-accordion", children: /* @__PURE__ */ e(H, { type: "multiple", children: g.map((c, o) => /* @__PURE__ */ i(
368
+ P,
369
+ {
370
+ value: `${o}-${c.key}`,
371
+ children: [
372
+ /* @__PURE__ */ e(R, { children: v(`footer.group.${c.key}`, {
373
+ defaultValue: c.key
374
+ }) }),
375
+ /* @__PURE__ */ e(D, { 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
+ d,
377
+ {
378
+ href: k(l.href),
379
+ external: l.external,
380
+ externalIcon: !1,
381
+ intent: "subtle",
382
+ children: l.label
383
+ }
384
+ ) }, `${c.key}-${l.href}-${l.label}`)) }) })
385
+ ]
386
+ },
387
+ `${o}-${c.key}`
388
+ )) }) })
389
+ ] })
390
+ ] }),
391
+ /* @__PURE__ */ e(f, { orientation: "horizontal" }),
392
+ /* @__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(L, { copyright: s, align: "start" }),
394
+ /* @__PURE__ */ i(
395
+ "div",
396
+ {
397
+ "data-slot": "bottom-legal",
398
+ className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)] ds:sm:justify-end",
399
+ children: [
400
+ /* @__PURE__ */ e(
401
+ d,
402
+ {
403
+ href: a.privacy,
404
+ external: !0,
405
+ externalIcon: !1,
406
+ intent: "subtle",
407
+ children: t.privacy
408
+ }
409
+ ),
410
+ /* @__PURE__ */ e(f, { orientation: "vertical", className: "ds:h-4" }),
411
+ /* @__PURE__ */ e(
412
+ d,
413
+ {
414
+ href: a.terms,
415
+ external: !0,
416
+ externalIcon: !1,
417
+ intent: "subtle",
418
+ children: t.terms
419
+ }
420
+ ),
421
+ (h || p) && /* @__PURE__ */ i(I, { children: [
422
+ /* @__PURE__ */ e(f, { orientation: "vertical", className: "ds:h-4" }),
423
+ h && /* @__PURE__ */ e(
424
+ "span",
425
+ {
426
+ "data-slot": "trust-badges",
427
+ className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]",
428
+ children: h
429
+ }
430
+ ),
431
+ p && /* @__PURE__ */ e(
432
+ "span",
433
+ {
434
+ "data-slot": "extra-nav",
435
+ className: "ds:inline-flex ds:items-center",
436
+ children: p
437
+ }
438
+ )
439
+ ] })
440
+ ]
441
+ }
442
+ )
443
+ ] })
444
+ ] });
445
+ }
446
+ function oe({
447
+ columns: a,
448
+ t
449
+ }) {
450
+ return /* @__PURE__ */ e(I, { children: a.map((s, n) => /* @__PURE__ */ i(
451
+ "section",
452
+ {
453
+ "aria-labelledby": `public-footer-group-${n}-${s.key}`,
454
+ children: [
455
+ /* @__PURE__ */ e(
456
+ "h3",
457
+ {
458
+ id: `public-footer-group-${n}-${s.key}`,
459
+ 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: t(`footer.group.${s.key}`, { defaultValue: s.key })
461
+ }
462
+ ),
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: s.links.map((r) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
464
+ d,
465
+ {
466
+ href: k(r.href),
467
+ external: r.external,
468
+ externalIcon: !1,
469
+ intent: "subtle",
470
+ children: r.label
471
+ }
472
+ ) }, `${s.key}-${r.href}-${r.label}`)) })
473
+ ]
474
+ },
475
+ `${n}-${s.key}`
476
+ )) });
477
+ }
478
+ se.displayName = "PublicFooter";
479
+ const ge = {
480
+ id: "public-footer",
481
+ capabilities: ["navigate"],
482
+ state: {
483
+ variant: {
484
+ type: "string",
485
+ description: "Active variant — one of `minimal`, `compact`, `full`.",
486
+ read: (a) => a.getVariant()
487
+ },
488
+ legalUrls: {
489
+ type: "object",
490
+ description: "Resolved legal URLs for the active locale + marketingBaseUrl + overrides: `{ privacy, terms, contacts }`.",
491
+ read: (a) => a.getLegalUrls()
492
+ }
493
+ },
494
+ actions: {},
495
+ domHooks: {
496
+ root: {
497
+ attr: "data-component",
498
+ value: "public-footer",
499
+ description: 'Marks the PublicFooter root region. The root also carries `data-variant="minimal|compact|full"` for CSS + agent selectors.'
500
+ },
501
+ instanceId: {
502
+ attr: "id",
503
+ sourceProp: "id",
504
+ description: "Sourced from the `id` prop when provided."
505
+ }
506
+ }
507
+ };
508
+ export {
509
+ z as D,
510
+ se as P,
511
+ B as S,
512
+ K as a,
513
+ Y as c,
514
+ ge as p
515
+ };
516
+ //# sourceMappingURL=public-footer.agent-CA29gxHJ.js.map