@alfadocs/ui-kit-debug 1.78.0 → 1.80.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 (214) hide show
  1. package/dist/_chunks/{address-fields-BUPRs3n-.js → address-fields-GnoSkvh6.js} +2 -2
  2. package/dist/_chunks/{address-fields-BUPRs3n-.js.map → address-fields-GnoSkvh6.js.map} +1 -1
  3. package/dist/_chunks/{anamnesis-summary-rows-vNDyE5HW.js → anamnesis-summary-rows-lONg-zja.js} +2 -2
  4. package/dist/_chunks/{anamnesis-summary-rows-vNDyE5HW.js.map → anamnesis-summary-rows-lONg-zja.js.map} +1 -1
  5. package/dist/_chunks/{bishop-score-CdbU9Nl4.js → bishop-score-C5di6oAV.js} +2 -2
  6. package/dist/_chunks/{bishop-score-CdbU9Nl4.js.map → bishop-score-C5di6oAV.js.map} +1 -1
  7. package/dist/_chunks/{bmi-calculator-DnfiDh4Q.js → bmi-calculator-BIExHBZV.js} +2 -2
  8. package/dist/_chunks/{bmi-calculator-DnfiDh4Q.js.map → bmi-calculator-BIExHBZV.js.map} +1 -1
  9. package/dist/_chunks/{booking-Cz_QjIJe.js → booking-By4I_1A-.js} +1766 -1749
  10. package/dist/_chunks/booking-By4I_1A-.js.map +1 -0
  11. package/dist/_chunks/{calendar-appointment-editor-dialog-cvUpUjj-.js → calendar-appointment-editor-dialog-DhTTWgXw.js} +3 -3
  12. package/dist/_chunks/{calendar-appointment-editor-dialog-cvUpUjj-.js.map → calendar-appointment-editor-dialog-DhTTWgXw.js.map} +1 -1
  13. package/dist/_chunks/{cycle-calculator-HO3s5InI.js → cycle-calculator-CQkjVSD2.js} +2 -2
  14. package/dist/_chunks/{cycle-calculator-HO3s5InI.js.map → cycle-calculator-CQkjVSD2.js.map} +1 -1
  15. package/dist/_chunks/{due-date-calculator-CDWTSblh.js → due-date-calculator-NjTlmoFK.js} +2 -2
  16. package/dist/_chunks/{due-date-calculator-CDWTSblh.js.map → due-date-calculator-NjTlmoFK.js.map} +1 -1
  17. package/dist/_chunks/{fetal-weight-CrtBFJl-.js → fetal-weight-Brl3n4LN.js} +2 -2
  18. package/dist/_chunks/{fetal-weight-CrtBFJl-.js.map → fetal-weight-Brl3n4LN.js.map} +1 -1
  19. package/dist/_chunks/{forgot-password-form-BSOZVrZG.js → forgot-password-form-BQPvDS7i.js} +2 -2
  20. package/dist/_chunks/{forgot-password-form-BSOZVrZG.js.map → forgot-password-form-BQPvDS7i.js.map} +1 -1
  21. package/dist/_chunks/form-field-CyHfOVKF.js +185 -0
  22. package/dist/_chunks/form-field-CyHfOVKF.js.map +1 -0
  23. package/dist/_chunks/{gestational-age-calculator-CTHeJJdb.js → gestational-age-calculator-Dr9hdDta.js} +2 -2
  24. package/dist/_chunks/{gestational-age-calculator-CTHeJJdb.js.map → gestational-age-calculator-Dr9hdDta.js.map} +1 -1
  25. package/dist/_chunks/{hcg-doubling-BBk-a33g.js → hcg-doubling-K41Wy7LB.js} +2 -2
  26. package/dist/_chunks/{hcg-doubling-BBk-a33g.js.map → hcg-doubling-K41Wy7LB.js.map} +1 -1
  27. package/dist/_chunks/{help-me-write-templates-Ds1FY-WY.js → help-me-write-templates-BJSf24xS.js} +2 -2
  28. package/dist/_chunks/{help-me-write-templates-Ds1FY-WY.js.map → help-me-write-templates-BJSf24xS.js.map} +1 -1
  29. package/dist/_chunks/key-round-DIgsnJSg.js +21 -0
  30. package/dist/_chunks/key-round-DIgsnJSg.js.map +1 -0
  31. package/dist/_chunks/{kit-extensions-sNTZWkoo.js → kit-extensions-a0G4COFH.js} +6 -6
  32. package/dist/_chunks/{kit-extensions-sNTZWkoo.js.map → kit-extensions-a0G4COFH.js.map} +1 -1
  33. package/dist/_chunks/login-dev-card-CvLHj-_N.js +353 -0
  34. package/dist/_chunks/login-dev-card-CvLHj-_N.js.map +1 -0
  35. package/dist/_chunks/{practice-results-BnY2EkzI.js → practice-results-CtOanuzZ.js} +659 -615
  36. package/dist/_chunks/practice-results-CtOanuzZ.js.map +1 -0
  37. package/dist/_chunks/{pregnancy-dating-JBAUbM40.js → pregnancy-dating-BHvfDxz4.js} +2 -2
  38. package/dist/_chunks/{pregnancy-dating-JBAUbM40.js.map → pregnancy-dating-BHvfDxz4.js.map} +1 -1
  39. package/dist/_chunks/{pregnancy-weight-gain--Bqv6AWu.js → pregnancy-weight-gain-BeQRxwdP.js} +2 -2
  40. package/dist/_chunks/{pregnancy-weight-gain--Bqv6AWu.js.map → pregnancy-weight-gain-BeQRxwdP.js.map} +1 -1
  41. package/dist/_chunks/{radiograph-panel.agent-DQh2SX8G.js → radiograph-panel.agent-BQ95uFCd.js} +2 -2
  42. package/dist/_chunks/{radiograph-panel.agent-DQh2SX8G.js.map → radiograph-panel.agent-BQ95uFCd.js.map} +1 -1
  43. package/dist/_chunks/registration-form-CNBfUduG.js +1337 -0
  44. package/dist/_chunks/registration-form-CNBfUduG.js.map +1 -0
  45. package/dist/_chunks/reset-password-form-Cf9QPEJu.js +367 -0
  46. package/dist/_chunks/reset-password-form-Cf9QPEJu.js.map +1 -0
  47. package/dist/_chunks/{send-registration-link-form-__DWY62q.js → send-registration-link-form-vTn1HxjA.js} +2 -2
  48. package/dist/_chunks/{send-registration-link-form-__DWY62q.js.map → send-registration-link-form-vTn1HxjA.js.map} +1 -1
  49. package/dist/_chunks/{task-editor-CRhfwP9T.js → task-editor-Cpw-NmND.js} +2 -2
  50. package/dist/_chunks/{task-editor-CRhfwP9T.js.map → task-editor-Cpw-NmND.js.map} +1 -1
  51. package/dist/_chunks/{unit-converter-D59L-gkf.js → unit-converter-BH5ueIhT.js} +2 -2
  52. package/dist/_chunks/{unit-converter-D59L-gkf.js.map → unit-converter-BH5ueIhT.js.map} +1 -1
  53. package/dist/_chunks/{voice-control-panel-DQJwe6_Q.js → voice-control-panel-BziKE-KK.js} +2 -2
  54. package/dist/_chunks/{voice-control-panel-DQJwe6_Q.js.map → voice-control-panel-BziKE-KK.js.map} +1 -1
  55. package/dist/_chunks/{workflow-webhook-action-BvVPZVpG.js → workflow-webhook-action-DulCpCRz.js} +96 -111
  56. package/dist/_chunks/workflow-webhook-action-DulCpCRz.js.map +1 -0
  57. package/dist/agent-catalog.json +91 -5
  58. package/dist/agent-i18n/en.json +11 -2
  59. package/dist/components/address-fields/index.js +1 -1
  60. package/dist/components/bishop-score/index.js +1 -1
  61. package/dist/components/bmi-calculator/index.js +1 -1
  62. package/dist/components/booking/booking-types.d.ts +16 -1
  63. package/dist/components/booking/booking-types.d.ts.map +1 -1
  64. package/dist/components/booking/booking.d.ts.map +1 -1
  65. package/dist/components/booking/cascade.d.ts +3 -0
  66. package/dist/components/booking/cascade.d.ts.map +1 -1
  67. package/dist/components/booking/details-form.d.ts +2 -0
  68. package/dist/components/booking/details-form.d.ts.map +1 -1
  69. package/dist/components/booking/index.js +1 -1
  70. package/dist/components/cycle-calculator/index.js +1 -1
  71. package/dist/components/due-date-calculator/index.js +1 -1
  72. package/dist/components/fetal-weight/index.js +1 -1
  73. package/dist/components/form-field/form-field.d.ts +6 -0
  74. package/dist/components/form-field/form-field.d.ts.map +1 -1
  75. package/dist/components/form-field/index.js +1 -1
  76. package/dist/components/gestational-age-calculator/index.js +1 -1
  77. package/dist/components/hcg-doubling/index.js +1 -1
  78. package/dist/components/index.d.ts +1 -0
  79. package/dist/components/index.d.ts.map +1 -1
  80. package/dist/components/practice-results/index.js +1 -1
  81. package/dist/components/practice-results/practice-results.d.ts +19 -2
  82. package/dist/components/practice-results/practice-results.d.ts.map +1 -1
  83. package/dist/components/pregnancy-dating/index.js +1 -1
  84. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  85. package/dist/components/radiograph-panel/index.js +1 -1
  86. package/dist/components/rich-text-editor/index.js +1 -1
  87. package/dist/components/task-editor/index.js +1 -1
  88. package/dist/components/unit-converter/index.js +1 -1
  89. package/dist/components/voice-control-panel/index.js +1 -1
  90. package/dist/i18n/locales/ar.d.ts +28 -0
  91. package/dist/i18n/locales/ar.d.ts.map +1 -1
  92. package/dist/i18n/locales/ar.js +30 -2
  93. package/dist/i18n/locales/ar.js.map +1 -1
  94. package/dist/i18n/locales/de.d.ts +28 -0
  95. package/dist/i18n/locales/de.d.ts.map +1 -1
  96. package/dist/i18n/locales/de.js +30 -2
  97. package/dist/i18n/locales/de.js.map +1 -1
  98. package/dist/i18n/locales/el.d.ts +28 -0
  99. package/dist/i18n/locales/el.d.ts.map +1 -1
  100. package/dist/i18n/locales/el.js +30 -2
  101. package/dist/i18n/locales/el.js.map +1 -1
  102. package/dist/i18n/locales/en.d.ts +28 -0
  103. package/dist/i18n/locales/en.d.ts.map +1 -1
  104. package/dist/i18n/locales/en.js +29 -1
  105. package/dist/i18n/locales/en.js.map +1 -1
  106. package/dist/i18n/locales/es.d.ts +28 -0
  107. package/dist/i18n/locales/es.d.ts.map +1 -1
  108. package/dist/i18n/locales/es.js +30 -2
  109. package/dist/i18n/locales/es.js.map +1 -1
  110. package/dist/i18n/locales/fr.d.ts +28 -0
  111. package/dist/i18n/locales/fr.d.ts.map +1 -1
  112. package/dist/i18n/locales/fr.js +30 -2
  113. package/dist/i18n/locales/fr.js.map +1 -1
  114. package/dist/i18n/locales/hi.d.ts +28 -0
  115. package/dist/i18n/locales/hi.d.ts.map +1 -1
  116. package/dist/i18n/locales/hi.js +30 -2
  117. package/dist/i18n/locales/hi.js.map +1 -1
  118. package/dist/i18n/locales/it.d.ts +28 -0
  119. package/dist/i18n/locales/it.d.ts.map +1 -1
  120. package/dist/i18n/locales/it.js +30 -2
  121. package/dist/i18n/locales/it.js.map +1 -1
  122. package/dist/i18n/locales/ja.d.ts +28 -0
  123. package/dist/i18n/locales/ja.d.ts.map +1 -1
  124. package/dist/i18n/locales/ja.js +30 -2
  125. package/dist/i18n/locales/ja.js.map +1 -1
  126. package/dist/i18n/locales/nl.d.ts +28 -0
  127. package/dist/i18n/locales/nl.d.ts.map +1 -1
  128. package/dist/i18n/locales/nl.js +30 -2
  129. package/dist/i18n/locales/nl.js.map +1 -1
  130. package/dist/i18n/locales/pl.d.ts +28 -0
  131. package/dist/i18n/locales/pl.d.ts.map +1 -1
  132. package/dist/i18n/locales/pl.js +30 -2
  133. package/dist/i18n/locales/pl.js.map +1 -1
  134. package/dist/i18n/locales/pt.d.ts +28 -0
  135. package/dist/i18n/locales/pt.d.ts.map +1 -1
  136. package/dist/i18n/locales/pt.js +30 -2
  137. package/dist/i18n/locales/pt.js.map +1 -1
  138. package/dist/i18n/locales/ro.d.ts +28 -0
  139. package/dist/i18n/locales/ro.d.ts.map +1 -1
  140. package/dist/i18n/locales/ro.js +30 -2
  141. package/dist/i18n/locales/ro.js.map +1 -1
  142. package/dist/i18n/locales/ru.d.ts +28 -0
  143. package/dist/i18n/locales/ru.d.ts.map +1 -1
  144. package/dist/i18n/locales/ru.js +30 -2
  145. package/dist/i18n/locales/ru.js.map +1 -1
  146. package/dist/i18n/locales/sq.d.ts +28 -0
  147. package/dist/i18n/locales/sq.d.ts.map +1 -1
  148. package/dist/i18n/locales/sq.js +30 -2
  149. package/dist/i18n/locales/sq.js.map +1 -1
  150. package/dist/i18n/locales/sv.d.ts +28 -0
  151. package/dist/i18n/locales/sv.d.ts.map +1 -1
  152. package/dist/i18n/locales/sv.js +30 -2
  153. package/dist/i18n/locales/sv.js.map +1 -1
  154. package/dist/i18n/locales/tr.d.ts +28 -0
  155. package/dist/i18n/locales/tr.d.ts.map +1 -1
  156. package/dist/i18n/locales/tr.js +30 -2
  157. package/dist/i18n/locales/tr.js.map +1 -1
  158. package/dist/i18n/locales/zh.d.ts +28 -0
  159. package/dist/i18n/locales/zh.d.ts.map +1 -1
  160. package/dist/i18n/locales/zh.js +30 -2
  161. package/dist/i18n/locales/zh.js.map +1 -1
  162. package/dist/index.js +90 -87
  163. package/dist/index.js.map +1 -1
  164. package/dist/locales/ar.json +30 -2
  165. package/dist/locales/de.json +30 -2
  166. package/dist/locales/el.json +30 -2
  167. package/dist/locales/en.json +29 -1
  168. package/dist/locales/es.json +30 -2
  169. package/dist/locales/fr.json +30 -2
  170. package/dist/locales/hi.json +30 -2
  171. package/dist/locales/it.json +30 -2
  172. package/dist/locales/ja.json +30 -2
  173. package/dist/locales/nl.json +30 -2
  174. package/dist/locales/pl.json +30 -2
  175. package/dist/locales/pt.json +30 -2
  176. package/dist/locales/ro.json +30 -2
  177. package/dist/locales/ru.json +30 -2
  178. package/dist/locales/sq.json +30 -2
  179. package/dist/locales/sv.json +30 -2
  180. package/dist/locales/tr.json +30 -2
  181. package/dist/locales/zh.json +30 -2
  182. package/dist/patterns/_shared/password-policy.d.ts +3 -0
  183. package/dist/patterns/_shared/password-policy.d.ts.map +1 -0
  184. package/dist/patterns/anamnesis/index.js +1 -1
  185. package/dist/patterns/calendar/index.js +1 -1
  186. package/dist/patterns/forgot-password-form/index.js +1 -1
  187. package/dist/patterns/help-me-write-templates/index.js +1 -1
  188. package/dist/patterns/login-form/index.js +1 -1
  189. package/dist/patterns/login-form/login-form.d.ts +24 -7
  190. package/dist/patterns/login-form/login-form.d.ts.map +1 -1
  191. package/dist/patterns/registration-form/index.d.ts +1 -1
  192. package/dist/patterns/registration-form/index.d.ts.map +1 -1
  193. package/dist/patterns/registration-form/index.js +1 -1
  194. package/dist/patterns/registration-form/registration-form.d.ts +27 -0
  195. package/dist/patterns/registration-form/registration-form.d.ts.map +1 -1
  196. package/dist/patterns/reset-password-form/index.d.ts +3 -0
  197. package/dist/patterns/reset-password-form/index.d.ts.map +1 -0
  198. package/dist/patterns/reset-password-form/index.js +6 -0
  199. package/dist/patterns/reset-password-form/index.js.map +1 -0
  200. package/dist/patterns/reset-password-form/reset-password-form.d.ts +108 -0
  201. package/dist/patterns/reset-password-form/reset-password-form.d.ts.map +1 -0
  202. package/dist/patterns/send-registration-link-form/index.js +1 -1
  203. package/dist/patterns/workflow-webhook-action/index.js +1 -1
  204. package/dist/tokens.css +1 -1
  205. package/package.json +5 -1
  206. package/dist/_chunks/booking-Cz_QjIJe.js.map +0 -1
  207. package/dist/_chunks/form-field-Ani72sVY.js +0 -176
  208. package/dist/_chunks/form-field-Ani72sVY.js.map +0 -1
  209. package/dist/_chunks/login-dev-card-DRxTPkE9.js +0 -332
  210. package/dist/_chunks/login-dev-card-DRxTPkE9.js.map +0 -1
  211. package/dist/_chunks/practice-results-BnY2EkzI.js.map +0 -1
  212. package/dist/_chunks/registration-form-xORq2s4p.js +0 -1310
  213. package/dist/_chunks/registration-form-xORq2s4p.js.map +0 -1
  214. package/dist/_chunks/workflow-webhook-action-BvVPZVpG.js.map +0 -1
@@ -0,0 +1,1337 @@
1
+ import { jsx as n, jsxs as g, Fragment as Ae } from "react/jsx-runtime";
2
+ import { useState as v, useRef as L, useEffect as E, useCallback as be, forwardRef as yn, useId as Ne, useMemo as Fn, Fragment as xn } from "react";
3
+ import { useTranslation as fe, Trans as Lr } from "react-i18next";
4
+ import { c as ne } from "./index-D2ZczOXr.js";
5
+ import { parsePhoneNumberFromString as Sn } from "libphonenumber-js/min";
6
+ import { i as tr, E as Ar } from "./email-input-C7THAwh2.js";
7
+ import { A as le } from "./alert-9kEwDza3.js";
8
+ import { B as K } from "./button-DohK_Ak_.js";
9
+ import { C as Pr } from "./card-BA4Ig_kn.js";
10
+ import { C as En } from "./checkbox-BjDv-r3o.js";
11
+ import { D as kn } from "./dev-bypass-button-B7ePcJcg.js";
12
+ import { E as In } from "./error-summary-mGxIyDAY.js";
13
+ import { F as W } from "./form-field-CyHfOVKF.js";
14
+ import { L as qr } from "./list-CNnn7DOD.js";
15
+ import { P as Tr } from "./password-input-BokZ_rnT.js";
16
+ import { u as Rn } from "./use-password-requirements-C8DdwPEy.js";
17
+ import { P as Ln } from "./phone-input-C3NrD-nl.js";
18
+ import { R as An } from "./recaptcha-widget-iglUBIF3.js";
19
+ import { S as Pn } from "./select-4S-eYZUf.js";
20
+ import { S as Dr } from "./state-backed-text-input-Cgh4ms3p.js";
21
+ import { i as Zr } from "./is-development-CLUAnsU7.js";
22
+ import { u as Br } from "./use-state-backed-input-DhRQo6gM.js";
23
+ import { a as Vr, i as qn } from "./safe-href-5dbsfbQn.js";
24
+ import { u as Or } from "./use-field-match-C8ug3sdQ.js";
25
+ import { B as Tn } from "./brand-mark-DLk9kD8g.js";
26
+ import { u as Dn, b as Bn, a as On } from "./use-registration-submit-CLGHxwoT.js";
27
+ import { O as Mn } from "./otp-input-BgEZi0py.js";
28
+ import { C as _n } from "./circle-check-BN6rz4NV.js";
29
+ import { P as en } from "./pencil-B1sKKyuT.js";
30
+ import { L as jn } from "./log-in-OQUEoGhX.js";
31
+ import { K as Hn } from "./key-round-DIgsnJSg.js";
32
+ import { C as $n } from "./check-DrFSN__t.js";
33
+ import { C as zn } from "./circle-alert-rGDZ73Wh.js";
34
+ const Un = [
35
+ "invalid",
36
+ "expired",
37
+ "rate_limited",
38
+ "error"
39
+ ], ye = { ok: !1, reason: "error" }, Mr = (s) => typeof s == "number" && Number.isFinite(s) && s >= 0 ? s : void 0;
40
+ function Wn(s) {
41
+ if (typeof s != "object" || s === null) return null;
42
+ const r = s;
43
+ if (typeof r.ok != "boolean") return null;
44
+ const c = { ok: r.ok };
45
+ typeof r.message == "string" && (c.message = r.message), Un.includes(r.reason) && (c.reason = r.reason);
46
+ const t = Mr(r.retryAfterSeconds);
47
+ t !== void 0 && (c.retryAfterSeconds = t);
48
+ const d = Mr(r.resendAfterSeconds);
49
+ return d !== void 0 && (c.resendAfterSeconds = d), typeof r.devCode == "string" && (c.devCode = r.devCode), typeof r.value == "string" && (c.value = r.value), c;
50
+ }
51
+ function Kn(s) {
52
+ const r = s.headers.get("Retry-After");
53
+ if (!(!r || !/^\d+$/.test(r.trim())))
54
+ return Number(r.trim());
55
+ }
56
+ async function _r(s, r) {
57
+ if (!Vr(s))
58
+ return Zr() && console.warn(
59
+ `RegistrationForm: verification URL "${s}" is not a path or an address on this site, so no request was sent.`
60
+ ), ye;
61
+ try {
62
+ const c = await fetch(s, {
63
+ method: "POST",
64
+ credentials: "same-origin",
65
+ headers: {
66
+ "Content-Type": "application/json",
67
+ Accept: "application/json",
68
+ "X-Requested-With": "XMLHttpRequest"
69
+ },
70
+ body: JSON.stringify(r)
71
+ }), t = c.status === 429;
72
+ if (!t && (c.status < 200 || c.status >= 500))
73
+ return ye;
74
+ let d = null;
75
+ try {
76
+ d = await c.json();
77
+ } catch {
78
+ d = null;
79
+ }
80
+ const w = Wn(d);
81
+ if (t) {
82
+ const m = w ?? { ok: !1 }, i = m.retryAfterSeconds ?? Kn(c) ?? void 0;
83
+ return {
84
+ ...m,
85
+ ok: !1,
86
+ reason: "rate_limited",
87
+ ...i !== void 0 ? { retryAfterSeconds: i } : {}
88
+ };
89
+ }
90
+ return w ? c.status >= 400 ? w.ok ? ye : { ...w, reason: w.reason ?? "error" } : w : ye;
91
+ } catch {
92
+ return ye;
93
+ }
94
+ }
95
+ function jr(s) {
96
+ if ("sendUrl" in s && s.sendUrl !== void 0) {
97
+ const { sendUrl: r, verifyUrl: c } = s;
98
+ return {
99
+ onSendCode: (t) => _r(r, { value: t }),
100
+ onVerifyCode: (t, d) => _r(c, { value: t, code: d })
101
+ };
102
+ }
103
+ return {
104
+ onSendCode: s.onSendCode,
105
+ onVerifyCode: s.onVerifyCode
106
+ };
107
+ }
108
+ const Hr = 6, Gn = 30, $r = (s) => ({
109
+ reason: s.reason ?? "error",
110
+ message: s.message
111
+ });
112
+ function zr({
113
+ config: s,
114
+ value: r
115
+ }) {
116
+ const c = (s == null ? void 0 : s.codeLength) ?? Hr, [t, d] = v("idle"), [w, m] = v(""), [i, b] = v(
117
+ null
118
+ ), [se, N] = v(0), [G, k] = v(), [q, M] = v(""), X = L({ config: s, value: r });
119
+ X.current = { config: s, value: r };
120
+ const A = L(0), [I] = v(
121
+ () => (s == null ? void 0 : s.verified) === !0 ? r : null
122
+ ), [J, _] = v(!1), Y = (s == null ? void 0 : s.verified) === !0 && !J, Q = Y || t === "verified", Z = L(!1);
123
+ E(() => {
124
+ var u, C;
125
+ t === "verified" && !Z.current && (Z.current = !0, (C = (u = X.current.config) == null ? void 0 : u.onVerifiedChange) == null || C.call(u, !0));
126
+ }, [t]), E(() => {
127
+ if (se <= 0) return;
128
+ const u = setTimeout(() => N((C) => C - 1), 1e3);
129
+ return () => clearTimeout(u);
130
+ }, [se]);
131
+ const R = (u, C) => u.trim().toLowerCase() === C.trim().toLowerCase();
132
+ E(() => {
133
+ J && I !== null && R(r, I) && _(!1);
134
+ }, [r]);
135
+ const y = be(() => {
136
+ A.current += 1, d((u) => u === "verified" ? u : "idle"), m(""), b(null), k(void 0), M(""), N(0);
137
+ }, []);
138
+ E(() => {
139
+ t !== "verified" && (t === "sent" || t === "verifying" || t === "sending") && r !== q && y();
140
+ }, [r, q, t, y]);
141
+ const ae = L(r);
142
+ E(() => {
143
+ ae.current !== r && (ae.current = r, t === "idle" && b(null));
144
+ }, [r, t]);
145
+ const Pe = be(() => {
146
+ const { config: u, value: C } = X.current;
147
+ if (!u) return;
148
+ const T = A.current += 1;
149
+ d("sending"), b(null), m(""), M(C), jr(u).onSendCode(C).then(
150
+ (x) => x,
151
+ () => ({ ok: !1, reason: "error" })
152
+ ).then((x) => {
153
+ if (T === A.current) {
154
+ if (x.ok) {
155
+ d("sent"), k(x.devCode), N(x.resendAfterSeconds ?? Gn);
156
+ return;
157
+ }
158
+ d("idle"), M(""), b($r(x)), x.reason === "rate_limited" && x.retryAfterSeconds && N(x.retryAfterSeconds);
159
+ }
160
+ });
161
+ }, []), qe = be(
162
+ (u) => {
163
+ const { config: C, value: T } = X.current;
164
+ if (!C) return;
165
+ const x = C.codeLength ?? Hr, xe = u ?? w;
166
+ if (xe.length !== x) return;
167
+ const Te = A.current += 1;
168
+ d("verifying"), b(null), jr(C).onVerifyCode(T, xe).then(
169
+ (D) => D,
170
+ () => ({ ok: !1, reason: "error" })
171
+ ).then((D) => {
172
+ if (Te === A.current) {
173
+ if (D.ok) {
174
+ d("verified"), m(""), k(void 0), N(0);
175
+ return;
176
+ }
177
+ d("sent"), m(""), b($r(D)), D.reason === "rate_limited" && D.retryAfterSeconds && N(D.retryAfterSeconds), D.reason === "expired" && N(0);
178
+ }
179
+ });
180
+ },
181
+ [w]
182
+ ), F = Y && (s == null ? void 0 : s.allowChange) === !0, ue = be(() => {
183
+ A.current += 1, _(!0), d("idle"), m(""), b(null), k(void 0), M(""), N(0);
184
+ }, []), j = be((u) => {
185
+ m(u), b((C) => C && null);
186
+ }, []);
187
+ return {
188
+ enabled: s !== void 0,
189
+ status: Y ? "verified" : t,
190
+ verified: Q,
191
+ codeLength: c,
192
+ code: w,
193
+ setCode: j,
194
+ failure: i,
195
+ cooldown: se,
196
+ devCode: G,
197
+ sentTo: q,
198
+ send: Pe,
199
+ verify: qe,
200
+ reset: y,
201
+ changeable: F,
202
+ unlock: ue
203
+ };
204
+ }
205
+ function rn(s) {
206
+ const { t: r } = fe("ui");
207
+ if (s) {
208
+ if (s.message) return s.message;
209
+ switch (s.reason) {
210
+ case "invalid":
211
+ return r("registrationForm.verification.invalidCode");
212
+ case "expired":
213
+ return r("registrationForm.verification.expiredCode");
214
+ case "rate_limited":
215
+ return r("registrationForm.verification.rateLimited");
216
+ default:
217
+ return r("registrationForm.verification.sendFailed");
218
+ }
219
+ }
220
+ }
221
+ function Ur(s) {
222
+ const r = rn(s.failure);
223
+ return s.status === "idle" ? r : void 0;
224
+ }
225
+ function Wr({
226
+ state: s,
227
+ canSend: r
228
+ }) {
229
+ const { t: c } = fe("ui"), t = s.status === "sending";
230
+ if (s.status !== "idle" && !t) return null;
231
+ const d = s.cooldown > 0;
232
+ return /* @__PURE__ */ n(
233
+ K,
234
+ {
235
+ type: "button",
236
+ intent: "secondary",
237
+ loading: t,
238
+ disabled: !r,
239
+ "aria-disabled": d || void 0,
240
+ "data-action": "send-code",
241
+ className: "ds:shrink-0",
242
+ onClick: () => {
243
+ d || s.send();
244
+ },
245
+ children: t ? c("registrationForm.verification.sendingCode") : d ? c("registrationForm.verification.resendIn", {
246
+ seconds: s.cooldown
247
+ }) : c("registrationForm.verification.sendCode")
248
+ }
249
+ );
250
+ }
251
+ function Kr({
252
+ field: s,
253
+ state: r,
254
+ canChange: c = !0,
255
+ changeWhenVerified: t = !1,
256
+ onUnlocked: d,
257
+ onVerified: w
258
+ }) {
259
+ const { t: m } = fe("ui"), i = L(null), b = rn(r.failure), se = r.status === "sent" || r.status === "verifying", N = r.status === "verifying", G = r.code.length === r.codeLength, k = () => {
260
+ var R, y;
261
+ return (y = (R = i.current) == null ? void 0 : R.querySelector("input")) == null ? void 0 : y.focus();
262
+ }, q = L(r.status), M = L(r.failure);
263
+ E(() => {
264
+ const R = q.current;
265
+ q.current = r.status, r.status === "sent" && R === "sending" && k(), r.status === "sent" && R === "verifying" && r.failure && k(), r.status === "verified" && R === "verifying" && w();
266
+ }, [r.status]), E(() => {
267
+ r.failure && r.failure !== M.current && r.status === "sent" && k(), M.current = r.failure;
268
+ }, [r.failure, r.status]);
269
+ const [X, A] = v(""), I = r.cooldown > 0, J = L(!1);
270
+ E(() => {
271
+ I && !J.current ? A(
272
+ m("registrationForm.verification.resendIn", {
273
+ seconds: r.cooldown
274
+ })
275
+ ) : !I && J.current && A(m("registrationForm.verification.resendCode")), J.current = I;
276
+ }, [I, m]);
277
+ const _ = s === "email", Y = _ ? m("registrationForm.verification.codeSentEmail", {
278
+ value: r.sentTo
279
+ }) : m("registrationForm.verification.codeSentPhone", {
280
+ value: r.sentTo
281
+ }), Q = m(_ ? "registrationForm.verification.changeEmail" : "registrationForm.verification.changePhone"), Z = m(_ ? "registrationForm.verification.verifiedEmail" : "registrationForm.verification.verifiedPhone");
282
+ return /* @__PURE__ */ g(
283
+ "div",
284
+ {
285
+ ref: i,
286
+ "data-slot": "verification",
287
+ className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
288
+ children: [
289
+ /* @__PURE__ */ n("div", { role: "status", className: r.verified ? void 0 : "ds:sr-only", children: r.verified ? /* @__PURE__ */ g("p", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] type-body-sm ds:text-success", children: [
290
+ /* @__PURE__ */ n(_n, { "aria-hidden": "true", className: "ds:size-4 ds:shrink-0" }),
291
+ /* @__PURE__ */ n("span", { children: Z })
292
+ ] }) : X }),
293
+ t && r.changeable && /* @__PURE__ */ n(
294
+ K,
295
+ {
296
+ type: "button",
297
+ intent: "secondary",
298
+ startIcon: /* @__PURE__ */ n(en, { "aria-hidden": "true" }),
299
+ "data-action": "change-value",
300
+ className: "ds:self-start",
301
+ onClick: () => {
302
+ r.unlock(), d == null || d();
303
+ },
304
+ children: Q
305
+ }
306
+ ),
307
+ se && /* @__PURE__ */ g(Ae, { children: [
308
+ /* @__PURE__ */ n("p", { className: "type-body-sm ds:text-[var(--muted-foreground)]", children: Y }),
309
+ r.devCode && /* @__PURE__ */ n(le, { variant: "info", announce: "off", children: /* @__PURE__ */ n(le.Description, { children: m("registrationForm.verification.devCode", {
310
+ code: r.devCode
311
+ }) }) }),
312
+ /* @__PURE__ */ n(
313
+ W,
314
+ {
315
+ label: m("registrationForm.verification.codeLabel"),
316
+ error: b,
317
+ children: /* @__PURE__ */ n(
318
+ Mn,
319
+ {
320
+ length: r.codeLength,
321
+ mode: "numeric",
322
+ webOtp: s === "phone",
323
+ value: r.code,
324
+ onChange: r.setCode,
325
+ onComplete: (R) => r.verify(R),
326
+ disabled: N
327
+ }
328
+ )
329
+ }
330
+ ),
331
+ /* @__PURE__ */ g("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]", children: [
332
+ /* @__PURE__ */ n(
333
+ K,
334
+ {
335
+ type: "button",
336
+ intent: "primary",
337
+ size: "md",
338
+ loading: N,
339
+ "aria-disabled": !G || void 0,
340
+ "data-action": "verify-code",
341
+ onClick: () => {
342
+ G && r.verify();
343
+ },
344
+ children: m(N ? "registrationForm.verification.verifying" : "registrationForm.verification.verify")
345
+ }
346
+ ),
347
+ /* @__PURE__ */ n(
348
+ K,
349
+ {
350
+ type: "button",
351
+ intent: "outline",
352
+ size: "md",
353
+ disabled: N,
354
+ "aria-disabled": I || void 0,
355
+ "data-action": "resend-code",
356
+ onClick: () => {
357
+ I || r.send();
358
+ },
359
+ children: I ? m("registrationForm.verification.resendIn", {
360
+ seconds: r.cooldown
361
+ }) : m("registrationForm.verification.resendCode")
362
+ }
363
+ ),
364
+ c && /* @__PURE__ */ n(
365
+ K,
366
+ {
367
+ type: "button",
368
+ intent: "link",
369
+ size: "md",
370
+ disabled: N,
371
+ "data-action": "change-value",
372
+ onClick: r.reset,
373
+ children: Q
374
+ }
375
+ )
376
+ ] })
377
+ ] })
378
+ ]
379
+ }
380
+ );
381
+ }
382
+ function Xn({
383
+ field: s,
384
+ state: r,
385
+ onUnlocked: c
386
+ }) {
387
+ const { t } = fe("ui");
388
+ return /* @__PURE__ */ g(
389
+ "div",
390
+ {
391
+ "data-slot": "change-slot",
392
+ className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
393
+ children: [
394
+ /* @__PURE__ */ n(
395
+ "span",
396
+ {
397
+ "aria-hidden": "true",
398
+ className: "type-label ds:invisible ds:hidden ds:@[544px]/registration:block",
399
+ children: " "
400
+ }
401
+ ),
402
+ /* @__PURE__ */ n(
403
+ K,
404
+ {
405
+ type: "button",
406
+ intent: "secondary",
407
+ startIcon: /* @__PURE__ */ n(en, { "aria-hidden": "true" }),
408
+ "data-action": "change-value",
409
+ className: "ds:self-start",
410
+ onClick: () => {
411
+ r.unlock(), c();
412
+ },
413
+ children: t(s === "email" ? "registrationForm.verification.changeEmail" : "registrationForm.verification.changePhone")
414
+ }
415
+ )
416
+ ]
417
+ }
418
+ );
419
+ }
420
+ const Gr = [
421
+ "firstName",
422
+ "lastName",
423
+ "email",
424
+ "emailConfirm",
425
+ "password",
426
+ "passwordConfirm",
427
+ "phone",
428
+ "branch",
429
+ "terms"
430
+ ], Jn = ne(
431
+ "ds:@container/registration ds:w-full ds:text-start ds:text-[var(--foreground)]"
432
+ ), Yn = ne(
433
+ "ds:grid ds:grid-cols-1 ds:items-start ds:gap-[var(--spacing-md)]",
434
+ {
435
+ variants: {
436
+ columns: {
437
+ /** A field alone in its row takes the full width. */
438
+ one: "",
439
+ /** Two fields side by side once the card is wide enough. */
440
+ two: "ds:@[544px]/registration:grid-cols-2"
441
+ }
442
+ },
443
+ defaultVariants: { columns: "two" }
444
+ }
445
+ ), Qn = ne("ds:relative ds:flex ds:gap-[var(--spacing-sm)]", {
446
+ variants: {
447
+ logo: {
448
+ /** A centred column under the mark. */
449
+ true: "ds:flex-col ds:items-center",
450
+ /** The heading at the start edge, the shortcut at the end. */
451
+ false: "ds:items-start ds:justify-between"
452
+ }
453
+ },
454
+ defaultVariants: { logo: !0 }
455
+ }), Zn = ne(
456
+ "ds:flex ds:min-w-0 ds:flex-col ds:gap-[var(--spacing-xs)]",
457
+ {
458
+ variants: {
459
+ centred: { true: "ds:items-center ds:text-center", false: "" }
460
+ },
461
+ defaultVariants: { centred: !0 }
462
+ }
463
+ ), Vn = ne("ds:shrink-0", {
464
+ variants: {
465
+ corner: { true: "ds:absolute ds:top-0 ds:end-0", false: "" }
466
+ },
467
+ defaultVariants: { corner: !0 }
468
+ }), es = ne(
469
+ "ds:rounded-[var(--radius-sm)] ds:underline ds:underline-offset-4 ds:text-[var(--foreground)] ds:focus-visible:outline-solid ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
470
+ {
471
+ variants: {
472
+ weight: { normal: "", strong: "ds:font-semibold" }
473
+ },
474
+ defaultVariants: { weight: "normal" }
475
+ }
476
+ ), rs = ne(
477
+ "ds:focus-visible:outline-solid ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
478
+ ), ns = ne(
479
+ "ds:text-destructive ds:ms-[var(--spacing-xs)]"
480
+ ), ss = {
481
+ minLength: 12,
482
+ uppercase: !0,
483
+ lowercase: !0,
484
+ digit: !0,
485
+ charset: "ascii"
486
+ }, os = "Alfadocs", ts = /<(terms|privacy)>([\s\S]*?)<\/\1>/, is = /<\/?(?!(?:terms|privacy)\b)[a-z][^>]*>/gi, Fe = (s) => s && qn(s) ? s : void 0, Xr = (s) => Object.values(s).some(Boolean), Jr = (s) => {
487
+ var r;
488
+ return ((r = Sn(s)) == null ? void 0 : r.isPossible()) ?? !1;
489
+ };
490
+ function Le({
491
+ href: s,
492
+ newTab: r = !1,
493
+ weight: c,
494
+ action: t,
495
+ children: d
496
+ }) {
497
+ const { t: w } = fe("ui");
498
+ return /* @__PURE__ */ g(
499
+ "a",
500
+ {
501
+ href: s,
502
+ target: r ? "_blank" : void 0,
503
+ rel: r ? "noopener noreferrer" : void 0,
504
+ "data-action": t,
505
+ className: es({ weight: c }),
506
+ children: [
507
+ d,
508
+ r && /* @__PURE__ */ n("span", { className: "ds:sr-only", children: w("link.opensInNewTab") })
509
+ ]
510
+ }
511
+ );
512
+ }
513
+ function Yr({ children: s }) {
514
+ return /* @__PURE__ */ n(Ae, { children: s });
515
+ }
516
+ function Qr(s) {
517
+ if (s.enabled)
518
+ return s.verified ? "verified" : s.status === "sent" || s.status === "verifying" ? "sent" : "idle";
519
+ }
520
+ const as = [
521
+ ["firstName", "lastName"],
522
+ ["email", "emailConfirm"],
523
+ ["password", "passwordConfirm"],
524
+ ["phone", "branch"]
525
+ ];
526
+ function ds(s) {
527
+ const r = [];
528
+ for (const c of as) {
529
+ const t = c.filter(s);
530
+ if (t.length === 0) continue;
531
+ const d = r[r.length - 1];
532
+ t.length === 1 && (d == null ? void 0 : d.length) === 1 ? d.push(t[0]) : r.push(t);
533
+ }
534
+ return r;
535
+ }
536
+ const cs = yn(
537
+ ({
538
+ title: s,
539
+ description: r,
540
+ headingLevel: c = 2,
541
+ showLogo: t = !0,
542
+ logoMotion: d = "assemble",
543
+ children: w,
544
+ fields: m,
545
+ initialValues: i,
546
+ errors: b,
547
+ emailReadOnly: se = !1,
548
+ emailDescription: N,
549
+ blockPaste: G,
550
+ blockCopy: k,
551
+ branches: q,
552
+ passwordPolicy: M = ss,
553
+ termsHref: X,
554
+ privacyHref: A,
555
+ termsLabel: I,
556
+ termsDescription: J,
557
+ termsLabelText: _,
558
+ termsDescriptionText: Y,
559
+ notice: Q,
560
+ benefits: Z,
561
+ loginHref: R,
562
+ existingAccount: y,
563
+ recaptchaSiteKey: ae,
564
+ submitLabel: Pe,
565
+ submitting: qe = !1,
566
+ devBypass: F,
567
+ onSubmit: ue,
568
+ fieldNames: j,
569
+ action: u,
570
+ hiddenFields: C,
571
+ verification: T,
572
+ requireVerification: x = !0,
573
+ className: xe,
574
+ ...Te
575
+ }, D) => {
576
+ const { t: p, i18n: ir } = fe("ui"), ar = Ne(), nn = Ne(), B = (e) => `${nn}-${e}`, dr = Ne(), cr = Ne(), mr = Ne(), V = j !== void 0, sn = !!(q && q.length > 0), [De] = v(() => !!(i != null && i.email)), ee = se && De, l = (e) => e === "email" || e === "password" ? !0 : m && !m.includes(e) ? !1 : e === "branch" ? sn : e === "emailConfirm" ? !ee && !he : !0, [a, Be] = v(() => ({
577
+ firstName: (i == null ? void 0 : i.firstName) ?? "",
578
+ lastName: (i == null ? void 0 : i.lastName) ?? "",
579
+ email: (i == null ? void 0 : i.email) ?? "",
580
+ emailConfirm: (i == null ? void 0 : i.emailConfirm) ?? "",
581
+ password: "",
582
+ passwordConfirm: "",
583
+ phone: (i == null ? void 0 : i.phone) ?? "",
584
+ branch: (i == null ? void 0 : i.branch) ?? "",
585
+ terms: (i == null ? void 0 : i.terms) ?? !1
586
+ })), [Oe, lr] = v(
587
+ () => Jr((i == null ? void 0 : i.phone) ?? "")
588
+ ), [on, Me] = v(() => ({
589
+ email: !!(i != null && i.email)
590
+ })), [pe, fr] = v(!1), [_e, je] = v(
591
+ () => b ?? {}
592
+ ), H = zr({
593
+ config: T == null ? void 0 : T.email,
594
+ value: a.email
595
+ }), oe = zr({
596
+ config: l("phone") ? T == null ? void 0 : T.phone : void 0,
597
+ value: a.phone
598
+ }), he = H.verified, He = oe.verified, Se = Gr.filter(l), ur = !ee && he && H.changeable, $e = x && H.enabled && !he, ze = x && oe.enabled && !He, tn = Ur(H), an = Ur(oe), O = (e, o) => {
599
+ Be((f) => ({ ...f, [e]: o })), je(
600
+ (f) => f[e] ? { ...f, [e]: void 0 } : f
601
+ );
602
+ }, de = (e) => Me(
603
+ (o) => o[e] ? o : { ...o, [e]: !0 }
604
+ ), pr = () => {
605
+ Be((e) => ({
606
+ ...e,
607
+ password: "",
608
+ passwordConfirm: ""
609
+ })), Me((e) => ({
610
+ ...e,
611
+ password: !1,
612
+ passwordConfirm: !1
613
+ }));
614
+ }, ce = (e) => ({
615
+ blockPaste: (G == null ? void 0 : G.includes(e)) ?? !1,
616
+ blockCopy: (k == null ? void 0 : k.includes(e)) ?? !1
617
+ }), hr = Rn(M), Ue = Or({
618
+ value: a.email,
619
+ confirmValue: a.emailConfirm,
620
+ kind: "email",
621
+ submitted: pe
622
+ }), We = Or({
623
+ value: a.password,
624
+ confirmValue: a.passwordConfirm,
625
+ kind: "password",
626
+ submitted: pe
627
+ }), gr = {
628
+ firstName: l("firstName") && a.firstName.trim() === "",
629
+ lastName: l("lastName") && a.lastName.trim() === "",
630
+ // The user cannot fix a locked address, so the server judges it.
631
+ email: !ee && !tr(a.email) || $e,
632
+ emailConfirm: l("emailConfirm") && (a.emailConfirm === "" || !Ue.matches),
633
+ password: a.password === "" || !hr.every((e) => e.test(a.password)),
634
+ passwordConfirm: l("passwordConfirm") && (a.passwordConfirm === "" || !We.matches),
635
+ phone: l("phone") && (a.phone === "" || !Oe || ze),
636
+ branch: l("branch") && a.branch === "",
637
+ terms: l("terms") && !a.terms
638
+ }, Ke = (e) => pe || e !== "terms" && on[e] === !0, $ = p("registrationForm.required"), z = {
639
+ firstName: p("registrationForm.firstName"),
640
+ lastName: p("registrationForm.lastName"),
641
+ email: p("registrationForm.email"),
642
+ emailConfirm: p("registrationForm.emailConfirm"),
643
+ password: p("registrationForm.password"),
644
+ passwordConfirm: p("registrationForm.passwordConfirm"),
645
+ phone: p("registrationForm.phone"),
646
+ branch: p("registrationForm.branch")
647
+ }, te = (e, o) => Ke(e) && gr[e] ? o : void 0, dn = {
648
+ firstName: te("firstName", $),
649
+ lastName: te("lastName", $),
650
+ email: Ke("email") && !ee && !tr(a.email) ? a.email === "" ? $ : p("inputs.email.invalid") : pe && $e ? p("registrationForm.verification.emailRequired") : void 0,
651
+ emailConfirm: a.emailConfirm === "" ? te("emailConfirm", $) : Ue.error,
652
+ password: te(
653
+ "password",
654
+ a.password === "" ? $ : p("registrationForm.passwordInvalid")
655
+ ),
656
+ passwordConfirm: a.passwordConfirm === "" ? te("passwordConfirm", $) : We.error,
657
+ phone: Ke("phone") && l("phone") && (a.phone === "" || !Oe) ? a.phone === "" ? $ : p("registrationForm.phoneInvalid") : pe && ze ? p("registrationForm.verification.phoneRequired") : void 0,
658
+ branch: te("branch", $),
659
+ terms: te("terms", p("registrationForm.termsRequired"))
660
+ }, cn = {
661
+ email: tn,
662
+ phone: an
663
+ }, [mn] = v(() => (i == null ? void 0 : i.email) ?? ""), Ge = !!y && De && a.email === mn, ge = Fe(y == null ? void 0 : y.loginHref), ve = Fe(y == null ? void 0 : y.resetPasswordHref), ln = p(
664
+ ge && ve ? "registrationForm.existingAccount.messageSignInOrReset" : ge ? "registrationForm.existingAccount.messageSignIn" : ve ? "registrationForm.existingAccount.messageReset" : "registrationForm.existingAccount.message"
665
+ ), P = (e) => e === "email" && Ge ? ln : _e[e] ?? cn[e] ?? dn[e], ie = L({}), U = Fn(() => {
666
+ const e = (o) => (f) => {
667
+ ie.current[o] = f;
668
+ };
669
+ return {
670
+ firstName: e("firstName"),
671
+ lastName: e("lastName"),
672
+ email: e("email"),
673
+ emailConfirm: e("emailConfirm"),
674
+ password: e("password"),
675
+ passwordConfirm: e("passwordConfirm"),
676
+ phone: e("phone"),
677
+ branch: e("branch"),
678
+ terms: e("terms")
679
+ };
680
+ }, []), vr = Br(a.email, U.email), Cr = Br(
681
+ a.emailConfirm,
682
+ U.emailConfirm
683
+ ), wr = L(null), br = (e) => Se.find((o) => e[o]) ?? (Xr(e) ? "form" : void 0), [Nr] = v(
684
+ () => Se.some((e) => !!(b != null && b[e])) || !!y && De
685
+ ), S = Dn(Se, P, Nr), [Ee, Xe] = v(() => {
686
+ const e = Nr ? void 0 : br(b ?? {});
687
+ return e ? { target: e } : null;
688
+ });
689
+ E(() => {
690
+ var e, o;
691
+ Ee && (Ee.target === "form" ? (e = wr.current) == null || e.focus() : (o = ie.current[Ee.target]) == null || o.focus());
692
+ }, [Ee]);
693
+ const Je = l("phone");
694
+ E(() => {
695
+ const e = ie.current.phone;
696
+ if (!Je || !e) return;
697
+ const o = () => Me(
698
+ (f) => f.phone ? f : { ...f, phone: !0 }
699
+ );
700
+ return e.addEventListener("blur", o), () => e.removeEventListener("blur", o);
701
+ }, [Je]);
702
+ const Ye = L(null), Qe = L(null), [yr, fn] = v(null);
703
+ E(() => {
704
+ var e;
705
+ yr && ((e = Ye.current) == null || e.requestSubmit());
706
+ }, [yr]);
707
+ const un = () => {
708
+ var o;
709
+ const e = F == null ? void 0 : F.values;
710
+ if (e) {
711
+ const f = ee || he ? void 0 : e.email, h = {};
712
+ l("firstName") && e.firstName !== void 0 && (h.firstName = e.firstName), l("lastName") && e.lastName !== void 0 && (h.lastName = e.lastName), f !== void 0 && (h.email = f), l("emailConfirm") && f !== void 0 && (h.emailConfirm = f), e.password !== void 0 && (h.password = e.password), l("passwordConfirm") && e.password !== void 0 && (h.passwordConfirm = e.password), l("phone") && !He && e.phone !== void 0 && (h.phone = e.phone), l("branch") && e.branch !== void 0 && (h.branch = e.branch), l("terms") && e.terms !== void 0 && (h.terms = e.terms), Be((me) => ({ ...me, ...h })), h.phone !== void 0 && lr(Jr(h.phone)), je((me) => {
713
+ const we = { ...me };
714
+ for (const Re of Object.keys(h))
715
+ we[Re] = void 0;
716
+ return we;
717
+ }), F.submit && fn({});
718
+ }
719
+ (o = F == null ? void 0 : F.onClick) == null || o.call(F);
720
+ }, Ce = Bn({
721
+ errors: b,
722
+ submitting: qe,
723
+ native: V,
724
+ captcha: !!ae,
725
+ firstProblem: () => Se.find((e) => gr[e]),
726
+ onRefused: (e) => {
727
+ fr(!0), S.open(() => Xe({ target: e }));
728
+ },
729
+ deliver: (e) => {
730
+ var f;
731
+ if (V) {
732
+ Qe.current && e && (Qe.current.value = e), (f = Ye.current) == null || f.submit();
733
+ return;
734
+ }
735
+ const o = (h) => l(h) ? a[h] : "";
736
+ ue == null || ue({
737
+ firstName: o("firstName"),
738
+ lastName: o("lastName"),
739
+ email: a.email,
740
+ emailConfirm: o("emailConfirm"),
741
+ password: a.password,
742
+ passwordConfirm: o("passwordConfirm"),
743
+ phone: o("phone"),
744
+ branch: o("branch"),
745
+ terms: l("terms") && a.terms,
746
+ captchaToken: e
747
+ });
748
+ },
749
+ onAnswer: (e) => {
750
+ const o = e;
751
+ je(o), Xr(o) && (pr(), fr(!1), S.open(() => {
752
+ const f = br(o);
753
+ f && Xe({ target: f });
754
+ }));
755
+ },
756
+ // The page came back from the browser's cache as it was left:
757
+ // the passwords must not come back with it.
758
+ onRestore: pr
759
+ }), { busy: Ze, captchaFailed: Ve } = Ce;
760
+ E(() => {
761
+ Ve && Xe({ target: "form" });
762
+ }, [Ve]);
763
+ const re = (e) => V ? j[e] : e, pn = `h${c}`, er = Fe(X), rr = Fe(A), Fr = Fe(R), hn = Ge && (ge || ve) ? /* @__PURE__ */ g(Ae, { children: [
764
+ ge && /* @__PURE__ */ n(
765
+ K,
766
+ {
767
+ asChild: !0,
768
+ intent: "secondary",
769
+ startIcon: /* @__PURE__ */ n(jn, {}),
770
+ "data-action": "sign-in",
771
+ children: /* @__PURE__ */ n("a", { href: ge, children: p("loginForm.submit") })
772
+ }
773
+ ),
774
+ ve && /* @__PURE__ */ n(
775
+ K,
776
+ {
777
+ asChild: !0,
778
+ intent: "secondary",
779
+ startIcon: /* @__PURE__ */ n(Hn, {}),
780
+ "data-action": "reset-password",
781
+ children: /* @__PURE__ */ n("a", { href: ve, children: p("loginForm.forgot") })
782
+ }
783
+ )
784
+ ] }) : void 0, xr = (e) => {
785
+ const o = e.replace(is, "").split(ts);
786
+ return o.map((f, h) => {
787
+ if (h % 3 !== 0) return null;
788
+ const me = o[h + 1], we = o[h + 2], Re = me === "terms" ? er : rr;
789
+ return /* @__PURE__ */ g(xn, { children: [
790
+ f,
791
+ me === void 0 ? null : Re ? /* @__PURE__ */ n(Le, { href: Re, newTab: !0, children: we }) : we
792
+ ] }, h);
793
+ });
794
+ }, gn = I ?? (_ ? xr(_) : void 0), nr = J ?? (Y ? xr(Y) : void 0), sr = (Z == null ? void 0 : Z.filter(Boolean)) ?? [], vn = !!Q || sr.length > 0 || !!w, Cn = V && u && Vr(u) ? u : void 0, ke = [
795
+ _e.form,
796
+ ...Gr.filter((e) => !l(e)).map(
797
+ (e) => _e[e]
798
+ ),
799
+ Ve ? p("inputs.recaptcha.error") : void 0
800
+ ].filter(Boolean).join(" ") || void 0, wn = On(
801
+ ke,
802
+ S.listed.length > 0
803
+ ), Ie = P("terms"), bn = [
804
+ nr ? cr : void 0,
805
+ Ie ? dr : void 0
806
+ ].filter(Boolean).join(" ") || void 0, Sr = new Set(Object.values(j ?? {})), Er = V ? Object.entries(C ?? {}) : [], or = Er.filter(([e]) => Sr.has(e)).map(([e]) => e).join(", ");
807
+ E(() => {
808
+ or && Zr() && console.warn(
809
+ `RegistrationForm: hiddenFields "${or}" is also named in fieldNames and was left out. The form's own field wins.`
810
+ );
811
+ }, [or]);
812
+ const kr = ee || he, Ir = /* @__PURE__ */ n(
813
+ Ar,
814
+ {
815
+ ref: vr.ref,
816
+ name: re("email"),
817
+ errorMessage: null,
818
+ disableBuiltInValidation: kr,
819
+ readOnly: kr,
820
+ onChange: vr.quiet((e) => O("email", e.target.value)),
821
+ onBlur: () => de("email"),
822
+ ...ce("email")
823
+ }
824
+ ), Rr = /* @__PURE__ */ n(
825
+ Ln,
826
+ {
827
+ ref: U.phone,
828
+ name: V ? void 0 : "phone",
829
+ value: a.phone,
830
+ readOnly: He,
831
+ onChange: (e, o) => {
832
+ O("phone", e), lr(o.isPossible);
833
+ }
834
+ }
835
+ ), Nn = (e) => {
836
+ switch (e) {
837
+ case "firstName":
838
+ return /* @__PURE__ */ n(
839
+ W,
840
+ {
841
+ id: B(e),
842
+ label: z.firstName,
843
+ required: !0,
844
+ error: P("firstName"),
845
+ announceError: !S.lists("firstName"),
846
+ "data-field": "firstName",
847
+ children: /* @__PURE__ */ n(
848
+ Dr,
849
+ {
850
+ ref: U.firstName,
851
+ name: re("firstName"),
852
+ autoComplete: "given-name",
853
+ value: a.firstName,
854
+ onChange: (o) => O("firstName", o.target.value),
855
+ onBlur: () => de("firstName"),
856
+ ...ce("firstName")
857
+ }
858
+ )
859
+ },
860
+ e
861
+ );
862
+ case "lastName":
863
+ return /* @__PURE__ */ n(
864
+ W,
865
+ {
866
+ id: B(e),
867
+ label: z.lastName,
868
+ required: !0,
869
+ error: P("lastName"),
870
+ announceError: !S.lists("lastName"),
871
+ "data-field": "lastName",
872
+ children: /* @__PURE__ */ n(
873
+ Dr,
874
+ {
875
+ ref: U.lastName,
876
+ name: re("lastName"),
877
+ autoComplete: "family-name",
878
+ value: a.lastName,
879
+ onChange: (o) => O("lastName", o.target.value),
880
+ onBlur: () => de("lastName"),
881
+ ...ce("lastName")
882
+ }
883
+ )
884
+ },
885
+ e
886
+ );
887
+ case "email":
888
+ return /* @__PURE__ */ n(
889
+ W,
890
+ {
891
+ id: B(e),
892
+ label: z.email,
893
+ required: !ee,
894
+ description: N,
895
+ error: P("email"),
896
+ errorAction: hn,
897
+ announceError: !S.lists("email"),
898
+ "data-field": "email",
899
+ "data-verification": Qr(H),
900
+ children: H.enabled ? /* @__PURE__ */ g("div", { className: "ds:@container/verify ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
901
+ /* @__PURE__ */ g("div", { className: "ds:flex ds:flex-col ds:items-start ds:gap-[var(--spacing-sm)] ds:@[384px]/verify:flex-row", children: [
902
+ /* @__PURE__ */ n("div", { className: "ds:min-w-0 ds:w-full ds:@[384px]/verify:w-auto ds:@[384px]/verify:flex-1", children: Ir }),
903
+ /* @__PURE__ */ n(
904
+ Wr,
905
+ {
906
+ state: H,
907
+ canSend: tr(a.email)
908
+ }
909
+ )
910
+ ] }),
911
+ /* @__PURE__ */ n(
912
+ Kr,
913
+ {
914
+ field: "email",
915
+ state: H,
916
+ canChange: !ee,
917
+ onVerified: () => {
918
+ var o;
919
+ return (o = ie.current.email) == null ? void 0 : o.focus();
920
+ }
921
+ }
922
+ )
923
+ ] }) : Ir
924
+ },
925
+ e
926
+ );
927
+ case "emailConfirm":
928
+ return ur ? /* @__PURE__ */ n(
929
+ Xn,
930
+ {
931
+ field: "email",
932
+ state: H,
933
+ onUnlocked: () => {
934
+ var o;
935
+ O("emailConfirm", ""), (o = ie.current.email) == null || o.focus();
936
+ }
937
+ },
938
+ e
939
+ ) : /* @__PURE__ */ n(
940
+ W,
941
+ {
942
+ id: B(e),
943
+ label: z.emailConfirm,
944
+ required: !0,
945
+ error: P("emailConfirm"),
946
+ announceError: !S.lists("emailConfirm"),
947
+ "data-field": "emailConfirm",
948
+ children: /* @__PURE__ */ n(
949
+ Ar,
950
+ {
951
+ ref: Cr.ref,
952
+ name: re("emailConfirm"),
953
+ disableBuiltInValidation: !0,
954
+ onChange: Cr.quiet(
955
+ (o) => O("emailConfirm", o.target.value)
956
+ ),
957
+ onBlur: () => {
958
+ de("emailConfirm"), Ue.confirmProps.onBlur();
959
+ },
960
+ ...ce("emailConfirm")
961
+ }
962
+ )
963
+ },
964
+ e
965
+ );
966
+ case "password":
967
+ return /* @__PURE__ */ n(
968
+ W,
969
+ {
970
+ id: B(e),
971
+ label: z.password,
972
+ required: !0,
973
+ error: P("password"),
974
+ announceError: !S.lists("password"),
975
+ "data-field": "password",
976
+ children: /* @__PURE__ */ n(
977
+ Tr,
978
+ {
979
+ ref: U.password,
980
+ name: re("password") ?? "",
981
+ autoComplete: "new-password",
982
+ requirements: hr,
983
+ value: a.password,
984
+ onChange: (o) => O("password", o.target.value),
985
+ onBlur: () => de("password"),
986
+ ...ce("password")
987
+ }
988
+ )
989
+ },
990
+ e
991
+ );
992
+ case "passwordConfirm":
993
+ return /* @__PURE__ */ n(
994
+ W,
995
+ {
996
+ id: B(e),
997
+ label: z.passwordConfirm,
998
+ required: !0,
999
+ error: P("passwordConfirm"),
1000
+ announceError: !S.lists("passwordConfirm"),
1001
+ "data-field": "passwordConfirm",
1002
+ children: /* @__PURE__ */ n(
1003
+ Tr,
1004
+ {
1005
+ ref: U.passwordConfirm,
1006
+ name: re("passwordConfirm") ?? "",
1007
+ autoComplete: "new-password",
1008
+ value: a.passwordConfirm,
1009
+ onChange: (o) => O("passwordConfirm", o.target.value),
1010
+ onBlur: () => {
1011
+ de("passwordConfirm"), We.confirmProps.onBlur();
1012
+ },
1013
+ ...ce("passwordConfirm")
1014
+ }
1015
+ )
1016
+ },
1017
+ e
1018
+ );
1019
+ case "phone":
1020
+ return /* @__PURE__ */ n(
1021
+ W,
1022
+ {
1023
+ id: B(e),
1024
+ label: z.phone,
1025
+ required: !0,
1026
+ error: P("phone"),
1027
+ announceError: !S.lists("phone"),
1028
+ "data-field": "phone",
1029
+ "data-verification": Qr(oe),
1030
+ children: oe.enabled ? /* @__PURE__ */ g("div", { className: "ds:@container/verify ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1031
+ /* @__PURE__ */ g("div", { className: "ds:flex ds:flex-col ds:items-start ds:gap-[var(--spacing-sm)] ds:@[384px]/verify:flex-row", children: [
1032
+ /* @__PURE__ */ n("div", { className: "ds:min-w-0 ds:w-full ds:@[384px]/verify:w-auto ds:@[384px]/verify:flex-1", children: Rr }),
1033
+ /* @__PURE__ */ n(
1034
+ Wr,
1035
+ {
1036
+ state: oe,
1037
+ canSend: a.phone !== "" && Oe
1038
+ }
1039
+ )
1040
+ ] }),
1041
+ /* @__PURE__ */ n(
1042
+ Kr,
1043
+ {
1044
+ field: "phone",
1045
+ state: oe,
1046
+ changeWhenVerified: !0,
1047
+ onUnlocked: () => {
1048
+ var o;
1049
+ return (o = ie.current.phone) == null ? void 0 : o.focus();
1050
+ },
1051
+ onVerified: () => {
1052
+ var o;
1053
+ return (o = ie.current.phone) == null ? void 0 : o.focus();
1054
+ }
1055
+ }
1056
+ )
1057
+ ] }) : Rr
1058
+ },
1059
+ e
1060
+ );
1061
+ case "branch":
1062
+ return /* @__PURE__ */ n(
1063
+ W,
1064
+ {
1065
+ id: B(e),
1066
+ label: z.branch,
1067
+ required: !0,
1068
+ error: P("branch"),
1069
+ announceError: !S.lists("branch"),
1070
+ "data-field": "branch",
1071
+ children: /* @__PURE__ */ n(
1072
+ Pn,
1073
+ {
1074
+ ref: U.branch,
1075
+ name: re("branch"),
1076
+ options: q ?? [],
1077
+ value: a.branch,
1078
+ onValueChange: (o) => O("branch", o)
1079
+ }
1080
+ )
1081
+ },
1082
+ e
1083
+ );
1084
+ }
1085
+ };
1086
+ return /* @__PURE__ */ n(
1087
+ "div",
1088
+ {
1089
+ ref: D,
1090
+ ...Te,
1091
+ "data-component": "registration-form",
1092
+ className: Jn({ className: xe }),
1093
+ children: /* @__PURE__ */ n(Pr, { variant: "elevated", children: /* @__PURE__ */ g(Pr.Body, { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", children: [
1094
+ /* @__PURE__ */ g("div", { className: Qn({ logo: t }), children: [
1095
+ /* @__PURE__ */ g("div", { className: Zn({ centred: t }), children: [
1096
+ t && /* @__PURE__ */ n(Tn, { motion: d, label: os }),
1097
+ /* @__PURE__ */ n(pn, { id: ar, className: "type-title-card", children: s ?? p("registrationForm.title") }),
1098
+ r && /* @__PURE__ */ n("p", { className: "type-body-sm ds:text-[var(--muted-foreground)]", children: r })
1099
+ ] }),
1100
+ F && (F.values || F.onClick) && /* @__PURE__ */ n("div", { className: Vn({ corner: t }), children: /* @__PURE__ */ n(
1101
+ kn,
1102
+ {
1103
+ label: F.label,
1104
+ onClick: un
1105
+ }
1106
+ ) })
1107
+ ] }),
1108
+ vn ? /* @__PURE__ */ g(
1109
+ "div",
1110
+ {
1111
+ "data-slot": "host-content",
1112
+ className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
1113
+ children: [
1114
+ Q ? /* @__PURE__ */ n(le, { variant: "info", announce: "off", children: /* @__PURE__ */ n(le.Description, { children: Q }) }) : null,
1115
+ sr.length > 0 ? /* @__PURE__ */ n(qr, { density: "compact", children: sr.map((e, o) => /* @__PURE__ */ n(
1116
+ qr.Item,
1117
+ {
1118
+ leading: /* @__PURE__ */ n($n, { "aria-hidden": "true" }),
1119
+ title: e
1120
+ },
1121
+ `${o}-${e}`
1122
+ )) }) : null,
1123
+ w
1124
+ ]
1125
+ }
1126
+ ) : null,
1127
+ /* @__PURE__ */ g(
1128
+ "form",
1129
+ {
1130
+ ref: Ye,
1131
+ noValidate: !0,
1132
+ method: "post",
1133
+ action: Cn,
1134
+ "aria-labelledby": ar,
1135
+ "aria-busy": Ze || void 0,
1136
+ onSubmit: Ce.handleSubmit,
1137
+ className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
1138
+ children: [
1139
+ /* @__PURE__ */ n(
1140
+ In,
1141
+ {
1142
+ ref: S.ref,
1143
+ headingLevel: c + 1,
1144
+ "aria-describedby": ke ? mr : void 0,
1145
+ errors: S.listed.map((e) => {
1146
+ const o = P(e) ?? "";
1147
+ return {
1148
+ field: e,
1149
+ message: o,
1150
+ // "This field is required." does not say which field:
1151
+ // the summary names it.
1152
+ label: o === $ && e !== "terms" ? z[e] : void 0,
1153
+ targetId: B(e)
1154
+ };
1155
+ })
1156
+ }
1157
+ ),
1158
+ ke && /* @__PURE__ */ n(
1159
+ le,
1160
+ {
1161
+ ref: wr,
1162
+ id: mr,
1163
+ variant: "error",
1164
+ announce: wn,
1165
+ tabIndex: -1,
1166
+ "data-field": "form",
1167
+ className: rs(),
1168
+ children: /* @__PURE__ */ n(le.Description, { children: ke })
1169
+ }
1170
+ ),
1171
+ ds(
1172
+ (e) => e === "emailConfirm" ? l(e) || ur : l(e)
1173
+ ).map((e) => /* @__PURE__ */ n(
1174
+ "div",
1175
+ {
1176
+ className: Yn({
1177
+ columns: e.length === 2 ? "two" : "one"
1178
+ }),
1179
+ children: e.map(Nn)
1180
+ },
1181
+ e[0]
1182
+ )),
1183
+ V && Je && j.phone && /* @__PURE__ */ n(
1184
+ "input",
1185
+ {
1186
+ type: "hidden",
1187
+ name: j.phone,
1188
+ value: a.phone
1189
+ }
1190
+ ),
1191
+ V && j.captcha && /* @__PURE__ */ n(
1192
+ "input",
1193
+ {
1194
+ ref: Qe,
1195
+ type: "hidden",
1196
+ name: j.captcha,
1197
+ defaultValue: ""
1198
+ }
1199
+ ),
1200
+ Er.filter(([e]) => !Sr.has(e)).map(([e, o]) => /* @__PURE__ */ n(
1201
+ "input",
1202
+ {
1203
+ type: "hidden",
1204
+ name: e,
1205
+ value: o
1206
+ },
1207
+ e
1208
+ )),
1209
+ l("terms") && /* @__PURE__ */ g(
1210
+ "div",
1211
+ {
1212
+ id: B("terms"),
1213
+ className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
1214
+ "data-field": "terms",
1215
+ children: [
1216
+ nr && /* @__PURE__ */ n(
1217
+ "p",
1218
+ {
1219
+ id: cr,
1220
+ className: "type-body-sm ds:text-[var(--muted-foreground)]",
1221
+ children: nr
1222
+ }
1223
+ ),
1224
+ /* @__PURE__ */ n(
1225
+ En,
1226
+ {
1227
+ ref: U.terms,
1228
+ name: re("terms"),
1229
+ value: "1",
1230
+ checked: a.terms,
1231
+ onCheckedChange: (e) => O("terms", e === !0),
1232
+ "aria-required": "true",
1233
+ "aria-invalid": Ie ? !0 : void 0,
1234
+ "aria-describedby": bn,
1235
+ label: /* @__PURE__ */ g(Ae, { children: [
1236
+ gn ?? /* @__PURE__ */ n(
1237
+ Lr,
1238
+ {
1239
+ i18n: ir,
1240
+ ns: "ui",
1241
+ i18nKey: "registrationForm.terms",
1242
+ components: {
1243
+ terms: er ? /* @__PURE__ */ n(Le, { href: er, newTab: !0 }) : /* @__PURE__ */ n(Yr, {}),
1244
+ privacy: rr ? /* @__PURE__ */ n(Le, { href: rr, newTab: !0 }) : /* @__PURE__ */ n(Yr, {})
1245
+ }
1246
+ }
1247
+ ),
1248
+ /* @__PURE__ */ n(
1249
+ "span",
1250
+ {
1251
+ "aria-hidden": "true",
1252
+ className: ns(),
1253
+ children: "*"
1254
+ }
1255
+ )
1256
+ ] })
1257
+ }
1258
+ ),
1259
+ Ie && /* @__PURE__ */ g(
1260
+ "p",
1261
+ {
1262
+ id: dr,
1263
+ role: S.lists("terms") ? void 0 : "alert",
1264
+ "data-slot": "error",
1265
+ className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] type-body-sm ds:text-destructive",
1266
+ children: [
1267
+ /* @__PURE__ */ n(
1268
+ zn,
1269
+ {
1270
+ "aria-hidden": "true",
1271
+ className: "ds:size-4 ds:shrink-0"
1272
+ }
1273
+ ),
1274
+ /* @__PURE__ */ n("span", { children: Ie })
1275
+ ]
1276
+ }
1277
+ )
1278
+ ]
1279
+ }
1280
+ ),
1281
+ /* @__PURE__ */ n(
1282
+ K,
1283
+ {
1284
+ type: "submit",
1285
+ intent: "primary",
1286
+ size: "lg",
1287
+ loading: Ze,
1288
+ className: "ds:w-full",
1289
+ "data-action": "submit",
1290
+ "aria-disabled": $e || ze || void 0,
1291
+ children: Pe ?? p("registrationForm.submit")
1292
+ }
1293
+ ),
1294
+ /* @__PURE__ */ n("p", { role: "status", className: "ds:sr-only", children: Ze ? p("chat.message.status.sending") : "" }),
1295
+ Fr && !Ge && /* @__PURE__ */ n("p", { className: "type-body-sm ds:text-center ds:text-[var(--muted-foreground)]", children: /* @__PURE__ */ n(
1296
+ Lr,
1297
+ {
1298
+ i18n: ir,
1299
+ ns: "ui",
1300
+ i18nKey: "registrationForm.login",
1301
+ components: {
1302
+ login: /* @__PURE__ */ n(
1303
+ Le,
1304
+ {
1305
+ href: Fr,
1306
+ weight: "strong",
1307
+ action: "login"
1308
+ }
1309
+ )
1310
+ }
1311
+ }
1312
+ ) }),
1313
+ ae && /* @__PURE__ */ n("div", { className: "ds:absolute", children: /* @__PURE__ */ n(
1314
+ An,
1315
+ {
1316
+ ref: Ce.captcha.ref,
1317
+ siteKey: ae,
1318
+ size: "invisible",
1319
+ announceStatus: !1,
1320
+ onChange: Ce.captcha.onChange,
1321
+ onError: Ce.captcha.onError
1322
+ }
1323
+ ) })
1324
+ ]
1325
+ }
1326
+ )
1327
+ ] }) })
1328
+ }
1329
+ );
1330
+ }
1331
+ );
1332
+ cs.displayName = "RegistrationForm";
1333
+ export {
1334
+ Gr as R,
1335
+ cs as a
1336
+ };
1337
+ //# sourceMappingURL=registration-form-CNBfUduG.js.map