@tempots/beatui 0.19.1 → 0.20.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 (124) hide show
  1. package/dist/{2019-D0n7sHsB.js → 2019-B4Mw3glM.js} +2 -2
  2. package/dist/{2019-CfIF9XVA.cjs → 2019-u0Cs1ZdE.cjs} +1 -1
  3. package/dist/{2020-D1ziwonq.cjs → 2020-BcwEHv2O.cjs} +1 -1
  4. package/dist/{2020-BkXWq9F8.js → 2020-BvFyb4Gy.js} +2 -2
  5. package/dist/{ar-DYmDITuw.cjs → ar-DyhaQaJU.cjs} +1 -1
  6. package/dist/{ar-CMndb3tf.js → ar-RkpJ2n6w.js} +1 -1
  7. package/dist/auth/index.cjs.js +1 -1
  8. package/dist/auth/index.es.js +646 -651
  9. package/dist/beatui.css +1 -1
  10. package/dist/{de-Cgy7XJBg.js → de-BdSVR4Zm.js} +1 -1
  11. package/dist/{de-ClQgQrXM.cjs → de-CnZ4Ik2a.cjs} +1 -1
  12. package/dist/{es-j0qszDAW.js → es-B_Qn5EUy.js} +1 -1
  13. package/dist/{es-BN5Mihv0.cjs → es-ZKraCneL.cjs} +1 -1
  14. package/dist/{fa-BUQvM0nj.cjs → fa-D2p_ch4Q.cjs} +1 -1
  15. package/dist/{fa-COUp2ofv.js → fa-jBaLjqfG.js} +1 -1
  16. package/dist/{fr-B5Ar6QcE.js → fr-B0KaMM2j.js} +1 -1
  17. package/dist/{fr-CwvsJDIZ.cjs → fr-CBeo42lQ.cjs} +1 -1
  18. package/dist/{he-HZvvmFUB.cjs → he-BmqEF3o-.cjs} +1 -1
  19. package/dist/{he-D5HTHvKh.js → he-DjeYjcW7.js} +1 -1
  20. package/dist/{hi-Cnr1RtgA.cjs → hi-BAfIFl1n.cjs} +1 -1
  21. package/dist/{hi-Bcc7iEXp.js → hi-DxBQV0uz.js} +1 -1
  22. package/dist/index-4NoQLiJo.cjs +2 -0
  23. package/dist/{index-DSvEBuy-.cjs → index-9UO7Pd64.cjs} +1 -1
  24. package/dist/{index-tuwLQMCb.js → index-B001qopB.js} +3 -3
  25. package/dist/{index-ykojBEwT.js → index-BIUeLQJ1.js} +4 -4
  26. package/dist/{index-FEy4Hwnx.cjs → index-BInDdLXi.cjs} +1 -1
  27. package/dist/{index-BUKtbimR.cjs → index-BWiQR9j3.cjs} +1 -1
  28. package/dist/{index-Dben4dbo.js → index-BX_AooS9.js} +2 -2
  29. package/dist/{index-CRfUh74G.cjs → index-Blq-MoAk.cjs} +1 -1
  30. package/dist/{index-rWglN8IQ.js → index-BnaafQ9o.js} +1 -1
  31. package/dist/{index-BJfVmi_X.js → index-BnbEC2zq.js} +2 -2
  32. package/dist/{index-CHgx0rFt.js → index-C4jYy0NW.js} +2 -2
  33. package/dist/{index-B-d5blto.js → index-C4xio93t.js} +3 -3
  34. package/dist/{index-CFo2nnaI.js → index-C5l1mFuD.js} +2 -2
  35. package/dist/{index-BYk56bqR.cjs → index-CDYYXcsk.cjs} +2 -2
  36. package/dist/{index-CIfx_bs7.cjs → index-CJM_lW9n.cjs} +1 -1
  37. package/dist/{index-D0-d-xdJ.js → index-CaNnYmEs.js} +6 -6
  38. package/dist/{index-BZHMnjr6.cjs → index-CaOzAsWD.cjs} +1 -1
  39. package/dist/{index-BF4pXHo-.js → index-CdvplJG6.js} +4 -4
  40. package/dist/{index-CUs1c8a9.js → index-ClvbjqJL.js} +8 -8
  41. package/dist/{index-DgUJYXoy.cjs → index-CpB78PPQ.cjs} +1 -1
  42. package/dist/{index-B16dbwxM.cjs → index-CpKAa22o.cjs} +1 -1
  43. package/dist/{index-DJ-avKHU.js → index-CpMCZBAl.js} +2 -2
  44. package/dist/{index-2DKUYRWr.js → index-Cs_PxtnZ.js} +1 -1
  45. package/dist/{index-DxG_avr8.cjs → index-CvRJPSEv.cjs} +1 -1
  46. package/dist/{index-DD-MOsCa.js → index-D5nWhHZv.js} +2 -2
  47. package/dist/{index-Cohec4rB.cjs → index-D7o5LhMm.cjs} +1 -1
  48. package/dist/{index-DYIv5X6N.js → index-DC5Cn-TM.js} +2 -2
  49. package/dist/{index-CKRuo2DB.js → index-DCpnqWRN.js} +3 -3
  50. package/dist/{index-BirEb-BA.js → index-DOlgncMG.js} +2178 -2193
  51. package/dist/{index-kk6qFeC5.cjs → index-DOyppfix.cjs} +1 -1
  52. package/dist/{index-DjNMMz5-.cjs → index-DXUQTPON.cjs} +1 -1
  53. package/dist/{index-C9XAXTDx.cjs → index-DdlxwtnE.cjs} +1 -1
  54. package/dist/{index-_OaxQJX1.js → index-DhJIuRg9.js} +4 -4
  55. package/dist/{index-Bg1QLlyj.js → index-DiV6JJiS.js} +3 -3
  56. package/dist/{index-DD8_efWr.cjs → index-Dl-wY6fc.cjs} +1 -1
  57. package/dist/{index-BguvTLHu.cjs → index-DlaVE6S2.cjs} +1 -1
  58. package/dist/index-JHbFZFZF.cjs +8 -0
  59. package/dist/{index-dsitEt8M.cjs → index-Jt6D3QJ7.cjs} +1 -1
  60. package/dist/{index-85k3bgcY.cjs → index-KcBlGDqr.cjs} +1 -1
  61. package/dist/{index-dV4F3c70.js → index-MyVoESdk.js} +3 -3
  62. package/dist/{index-DC4nzG_w.js → index-NysVuvZA.js} +5 -5
  63. package/dist/{index-D-Rzl363.cjs → index-RGCDszX8.cjs} +1 -1
  64. package/dist/{index-CoBM7UvE.js → index-c-O5R5i2.js} +2 -2
  65. package/dist/{index-C4UzgyIA.cjs → index-cjtIcxwt.cjs} +1 -1
  66. package/dist/{index-faGepKVA.js → index-fnMeddEM.js} +2 -2
  67. package/dist/{index-DV7tB1MN.cjs → index-uR3OZ_8K.cjs} +1 -1
  68. package/dist/index.cjs.js +25 -25
  69. package/dist/index.es.js +2248 -2264
  70. package/dist/index.esm-DJRz9AE-.cjs +1 -0
  71. package/dist/{index.esm-CSotgpVw.js → index.esm-DPNh6inz.js} +410 -420
  72. package/dist/{it-CTCKFU5g.js → it-B4qZsicu.js} +1 -1
  73. package/dist/{it-B7KeOLBm.cjs → it-CzKrFTFY.cjs} +1 -1
  74. package/dist/{ja-BGoETTZv.js → ja-BnCSmhkg.js} +1 -1
  75. package/dist/{ja-0ldomgID.cjs → ja-i_9MZ1j0.cjs} +1 -1
  76. package/dist/json-schema/index.cjs.js +1 -1
  77. package/dist/json-schema/index.es.js +1 -1
  78. package/dist/{ko-C4WEkArz.cjs → ko-CF9il-Az.cjs} +1 -1
  79. package/dist/{ko-xHeRs9LU.js → ko-D_gGkjrC.js} +1 -1
  80. package/dist/milkdown/index.cjs.js +1 -1
  81. package/dist/milkdown/index.es.js +1 -1
  82. package/dist/{milkdown-input-BbbZJGDl.js → milkdown-input-CYme9OBn.js} +14757 -14822
  83. package/dist/milkdown-input-KjtVqDzi.cjs +941 -0
  84. package/dist/modal-B-f3LBKr.cjs +1 -0
  85. package/dist/modal-BItfEmu0.js +600 -0
  86. package/dist/monaco/index.cjs.js +2 -2
  87. package/dist/monaco/index.es.js +114 -116
  88. package/dist/{nl-ey2Li7DF.js → nl-CsLCWUFF.js} +1 -1
  89. package/dist/{nl-D-y231ZO.cjs → nl-DfWlqR6T.cjs} +1 -1
  90. package/dist/notice-B7JqE59s.cjs +1 -0
  91. package/dist/notice-CmmpobJd.js +2415 -0
  92. package/dist/{pl-Bf0QaCGx.js → pl-Bsmj1KbZ.js} +1 -1
  93. package/dist/{pl-G6e4Mybr.cjs → pl-wK2sgv7l.cjs} +1 -1
  94. package/dist/{pt-D-_KxA9g.js → pt-BR_NuRJS.js} +1 -1
  95. package/dist/{pt-CD2Eqazl.cjs → pt-DAQIuOPW.cjs} +1 -1
  96. package/dist/{ru-CKh2xgqC.cjs → ru-BnoiCxrw.cjs} +1 -1
  97. package/dist/{ru-Dzbl29K2.js → ru-CiQ_qKD_.js} +1 -1
  98. package/dist/timer-BdH4cK6a.cjs +1 -0
  99. package/dist/timer-CQlK5LhW.js +47 -0
  100. package/dist/{tr-BbpC5gzM.cjs → tr-Bme5PfaE.cjs} +1 -1
  101. package/dist/{tr-yMHT8n7z.js → tr-Q9xP1nE4.js} +1 -1
  102. package/dist/translations-ClgoCEFC.js +1969 -0
  103. package/dist/{translations-DbN-OSLv.js → translations-D4hFMU4P.js} +1 -1
  104. package/dist/translations-DRBh70w8.cjs +2 -0
  105. package/dist/{translations-CXE8Z_Ac.cjs → translations-lnK_6RdU.cjs} +1 -1
  106. package/dist/{ur-kkik6-_r.cjs → ur-B4b39hNV.cjs} +1 -1
  107. package/dist/{ur-CdQA0epV.js → ur-CGTjSoJt.js} +1 -1
  108. package/dist/{vi-A8UmZU3L.js → vi-BF3HTFU9.js} +1 -1
  109. package/dist/{vi-1xtFXJc0.cjs → vi-CSpW181L.cjs} +1 -1
  110. package/dist/{zh-D0nnvX8T.js → zh-BreM8U2w.js} +1 -1
  111. package/dist/{zh-DC_SsXdk.cjs → zh-PeL8FN2c.cjs} +1 -1
  112. package/package.json +5 -5
  113. package/dist/index-B66rNs5i.cjs +0 -2
  114. package/dist/index-DXFKCiah.cjs +0 -8
  115. package/dist/index.esm-8xolKogd.cjs +0 -1
  116. package/dist/milkdown-input-C-Muq7PQ.cjs +0 -941
  117. package/dist/modal-nbZW44XS.js +0 -614
  118. package/dist/modal-wbG_oGOr.cjs +0 -1
  119. package/dist/notice-CIPcSfD5.js +0 -2432
  120. package/dist/notice-Cq02YHoN.cjs +0 -1
  121. package/dist/timer-CcMCjYrq.cjs +0 -1
  122. package/dist/timer-CkgWORR9.js +0 -42
  123. package/dist/translations-DBtfTNnM.js +0 -2005
  124. package/dist/translations-EQ1qPZ0_.cjs +0 -2
@@ -1,9 +1,9 @@
1
- import { localStorageProp as ro, prop as U, Use as S, html as m, OnDispose as O, attr as n, on as T, When as L, coalesce as g, computedOf as f, bind as so, ForEach as ao, Value as J, OneOfValue as io, Fragment as A } from "@tempots/dom";
2
- import { t as co, b as K, u as W, S as q, c as eo, d as $, P as G, E as N, a as V, T as uo, G as mo, I as lo } from "../translations-DBtfTNnM.js";
3
- import { s as I, o as E, b as R, M as po } from "../modal-nbZW44XS.js";
4
- import { AuthI18n as x } from "../translations-DbN-OSLv.js";
5
- import { classes as ho } from "@tempots/ui";
6
- const M = {
1
+ import { localStorageProp as ae, prop as E, Use as P, html as u, OnDispose as U, attr as t, on as T, When as _, coalesce as g, computedOf as f, bind as ne, ForEach as re, Value as J, OneOfValue as ie, Fragment as A } from "@tempots/dom";
2
+ import { t as ce, b as K, u as G, S as q, c as oe, d as $, P as M, E as R, a as O, T as le, G as ue, I as me } from "../translations-ClgoCEFC.js";
3
+ import { s as I, o as W, b as D, M as de } from "../modal-BItfEmu0.js";
4
+ import { AuthI18n as x } from "../translations-D4hFMU4P.js";
5
+ import { classes as pe } from "@tempots/ui";
6
+ const N = {
7
7
  google: { name: "Google", icon: "logos:google-icon", color: "#4285f4" },
8
8
  github: { name: "GitHub", icon: "logos:github-icon", color: "#333" },
9
9
  apple: { name: "Apple", icon: "logos:apple", color: "#000" },
@@ -49,20 +49,17 @@ const M = {
49
49
  paypal: { name: "PayPal", icon: "logos:paypal", color: "#0070ba" },
50
50
  x: { name: "X", icon: "simple-icons:x", color: "#000" }
51
51
  };
52
- function go(o) {
53
- var e;
54
- return ((e = M[o]) == null ? void 0 : e.name) || o;
52
+ function he(e) {
53
+ return N[e]?.name || e;
55
54
  }
56
- function Bo(o) {
57
- var e;
58
- return ((e = M[o]) == null ? void 0 : e.icon) || "mdi:account";
55
+ function qe(e) {
56
+ return N[e]?.icon || "mdi:account";
59
57
  }
60
- function $o(o) {
61
- var e;
62
- return ((e = M[o]) == null ? void 0 : e.color) || "#666";
58
+ function Be(e) {
59
+ return N[e]?.color || "#666";
63
60
  }
64
- function Io(o, e = "Continue with {provider}") {
65
- return e.replace("{provider}", go(o));
61
+ function $e(e, o = "Continue with {provider}") {
62
+ return o.replace("{provider}", he(e));
66
63
  }
67
64
  const B = {
68
65
  minLength: 8,
@@ -71,18 +68,18 @@ const B = {
71
68
  requireNumbers: !0,
72
69
  requireSymbols: !1
73
70
  };
74
- function To(o) {
75
- return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(o);
71
+ function Ie(e) {
72
+ return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e);
76
73
  }
77
- function fo(o = 32) {
78
- const e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
79
- let r = "";
80
- for (let a = 0; a < o; a++)
81
- r += e.charAt(Math.floor(Math.random() * e.length));
82
- return r;
74
+ function ge(e = 32) {
75
+ const o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
76
+ let i = "";
77
+ for (let l = 0; l < e; l++)
78
+ i += o.charAt(Math.floor(Math.random() * o.length));
79
+ return i;
83
80
  }
84
- function Ao(o, e, r, a = [], c = {}) {
85
- const i = {
81
+ function Te(e, o, i, l = [], c = {}) {
82
+ const n = {
86
83
  google: "https://accounts.google.com/oauth/authorize",
87
84
  github: "https://github.com/login/oauth/authorize",
88
85
  apple: "https://appleid.apple.com/auth/authorize",
@@ -107,7 +104,7 @@ function Ao(o, e, r, a = [], c = {}) {
107
104
  yahoo: "https://api.login.yahoo.com/oauth2/request_auth",
108
105
  paypal: "https://www.paypal.com/signin/authorize",
109
106
  x: "https://api.twitter.com/oauth2/authorize"
110
- }, t = {
107
+ }, s = {
111
108
  google: ["openid", "email", "profile"],
112
109
  github: ["user:email"],
113
110
  apple: ["email", "name"],
@@ -132,224 +129,222 @@ function Ao(o, e, r, a = [], c = {}) {
132
129
  yahoo: ["openid", "email", "profile"],
133
130
  paypal: ["openid", "email", "profile"],
134
131
  x: ["openid", "email", "profile"]
135
- }, s = i[o];
136
- if (!s)
137
- throw new Error(`Unsupported provider: ${o}`);
138
- const l = a.length > 0 ? a : t[o], u = fo(), w = new URLSearchParams({
139
- client_id: e,
140
- redirect_uri: r,
141
- scope: l.join(" "),
142
- state: u,
132
+ }, a = n[e];
133
+ if (!a)
134
+ throw new Error(`Unsupported provider: ${e}`);
135
+ const m = l.length > 0 ? l : s[e], r = ge(), b = new URLSearchParams({
136
+ client_id: o,
137
+ redirect_uri: i,
138
+ scope: m.join(" "),
139
+ state: r,
143
140
  response_type: "code",
144
141
  ...c
145
142
  });
146
- return `${s}?${w.toString()}`;
143
+ return `${a}?${b.toString()}`;
147
144
  }
148
- function zo(o, e, r, a) {
145
+ function Ae(e, o, i, l) {
149
146
  const c = window.open(
150
- o,
151
- `${e}_login`,
147
+ e,
148
+ `${o}_login`,
152
149
  "width=500,height=600,scrollbars=yes,resizable=yes"
153
150
  );
154
151
  if (!c) {
155
- a == null || a(new Error("Failed to open popup window"));
152
+ l?.(new Error("Failed to open popup window"));
156
153
  return;
157
154
  }
158
- const i = setInterval(() => {
159
- c.closed && (clearInterval(i), a == null || a(new Error("Login cancelled")));
160
- }, 1e3), t = (s) => {
161
- s.origin === window.location.origin && (s.data.type === "SOCIAL_LOGIN_SUCCESS" ? (clearInterval(i), c.close(), window.removeEventListener("message", t), r == null || r(s.data.result)) : s.data.type === "SOCIAL_LOGIN_ERROR" && (clearInterval(i), c.close(), window.removeEventListener("message", t), a == null || a(new Error(s.data.error))));
155
+ const n = setInterval(() => {
156
+ c.closed && (clearInterval(n), l?.(new Error("Login cancelled")));
157
+ }, 1e3), s = (a) => {
158
+ a.origin === window.location.origin && (a.data.type === "SOCIAL_LOGIN_SUCCESS" ? (clearInterval(n), c.close(), window.removeEventListener("message", s), i?.(a.data.result)) : a.data.type === "SOCIAL_LOGIN_ERROR" && (clearInterval(n), c.close(), window.removeEventListener("message", s), l?.(new Error(a.data.error))));
162
159
  };
163
- window.addEventListener("message", t);
160
+ window.addEventListener("message", s);
164
161
  }
165
- function Co(o) {
166
- return o instanceof Error ? o.message : typeof o == "string" ? o : o && typeof o == "object" && "message" in o ? String(o.message) : "An unexpected error occurred";
162
+ function Ce(e) {
163
+ return e instanceof Error ? e.message : typeof e == "string" ? e : e && typeof e == "object" && "message" in e ? String(e.message) : "An unexpected error occurred";
167
164
  }
168
- function Uo() {
165
+ function ze() {
169
166
  return typeof window < "u" && typeof document < "u";
170
167
  }
171
168
  function H({
172
- task: o,
173
- message: e,
174
- onStart: r,
175
- onEnd: a
169
+ task: e,
170
+ message: o,
171
+ onStart: i,
172
+ onEnd: l
176
173
  }) {
177
174
  return async (c) => {
178
- r == null || r();
179
- const i = await co({
180
- task: o != null ? () => o(c) : async () => null,
181
- errorMessage: e,
175
+ i?.();
176
+ const n = await ce({
177
+ task: e != null ? () => e(c) : async () => null,
178
+ errorMessage: o,
182
179
  errorPath: ["root"],
183
- validation: (t) => t != null ? K.invalid({ message: t }) : K.valid
180
+ validation: (s) => s != null ? K.invalid({ message: s }) : K.valid
184
181
  });
185
- return a == null || a(), i;
182
+ return l?.(), n;
186
183
  };
187
184
  }
188
- function j(o = B) {
189
- let e = I();
190
- return o.minLength && (e = e.min(
191
- o.minLength,
192
- `Password must be at least ${o.minLength} characters`
193
- )), o.requireUppercase && (e = e.regex(
185
+ function j(e = B) {
186
+ let o = I();
187
+ return e.minLength && (o = o.min(
188
+ e.minLength,
189
+ `Password must be at least ${e.minLength} characters`
190
+ )), e.requireUppercase && (o = o.regex(
194
191
  /[A-Z]/,
195
192
  "Password must contain at least one uppercase letter"
196
- )), o.requireLowercase && (e = e.regex(
193
+ )), e.requireLowercase && (o = o.regex(
197
194
  /[a-z]/,
198
195
  "Password must contain at least one lowercase letter"
199
- )), o.requireNumbers && (e = e.regex(
196
+ )), e.requireNumbers && (o = o.regex(
200
197
  /[0-9]/,
201
198
  "Password must contain at least one number"
202
- )), o.requireSymbols && (e = e.regex(
199
+ )), e.requireSymbols && (o = o.regex(
203
200
  /[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/,
204
201
  "Password must contain at least one special character"
205
- )), o.customValidation && (e = e.refine((r) => o.customValidation(r))), e;
202
+ )), e.customValidation && (o = o.refine((i) => e.customValidation(i))), o;
206
203
  }
207
- const F = I().min(1, "Email is required").email("Please enter a valid email address");
208
- function X(o) {
209
- const e = o ? j(o) : I().refine(
210
- (r) => r.length > 0 ? null : "Password is required"
204
+ const V = I().min(1, "Email is required").email("Please enter a valid email address");
205
+ function X(e) {
206
+ const o = e ? j(e) : I().refine(
207
+ (i) => i.length > 0 ? null : "Password is required"
211
208
  );
212
- return E({
213
- email: F,
214
- password: e,
215
- rememberMe: R().default(!1)
209
+ return W({
210
+ email: V,
211
+ password: o,
212
+ rememberMe: D().default(!1)
216
213
  }).schema();
217
214
  }
218
- function Y(o = B, e) {
219
- const r = j(o), a = (e == null ? void 0 : e.showNameField) !== !1, c = (e == null ? void 0 : e.showConfirmPassword) !== !1, i = (e == null ? void 0 : e.showAcceptTermsAndConditions) !== !1, t = {
220
- name: a ? I().min(1, "Name is required").optional() : I().optional(),
221
- email: F,
222
- password: r,
215
+ function Y(e = B, o) {
216
+ const i = j(e), l = o?.showNameField !== !1, c = o?.showConfirmPassword !== !1, n = o?.showAcceptTermsAndConditions !== !1, s = {
217
+ name: l ? I().min(1, "Name is required").optional() : I().optional(),
218
+ email: V,
219
+ password: i,
223
220
  // Always require confirmPassword as string to match SignUpData interface
224
221
  // When not shown, it should accept any value (including empty string)
225
222
  confirmPassword: c ? I().min(1, "Please confirm your password") : I(),
226
223
  // Accept any string value when not shown
227
- acceptTerms: i ? R().refine(
228
- (l) => l === !0,
224
+ acceptTerms: n ? D().refine(
225
+ (m) => m === !0,
229
226
  "You must accept the terms and conditions"
230
- ) : R().default(!0)
227
+ ) : D().default(!0)
231
228
  // Default to true when not shown
232
- }, s = E(t);
233
- return c ? s.refine(
234
- (l) => l.password === l.confirmPassword ? null : "Passwords don't match",
229
+ }, a = W(s);
230
+ return c ? a.refine(
231
+ (m) => m.password === m.confirmPassword ? null : "Passwords don't match",
235
232
  { path: ["confirmPassword"] }
236
- ).schema() : s.schema();
233
+ ).schema() : a.schema();
237
234
  }
238
- const to = E({
239
- email: F
240
- }).schema(), Oo = X(), Vo = Y(), Fo = {
235
+ const te = W({
236
+ email: V
237
+ }).schema(), Ee = X(), Ue = Y(), Oe = {
241
238
  signIn: X,
242
239
  signUp: Y,
243
- resetPassword: () => to
240
+ resetPassword: () => te
244
241
  };
245
- function Do(o) {
246
- var r;
247
- const e = F.validate(o);
248
- return e.success ? null : ((r = e.errors[0]) == null ? void 0 : r.message) || "Invalid email";
242
+ function Ve(e) {
243
+ const o = V.validate(e);
244
+ return o.success ? null : o.errors[0]?.message || "Invalid email";
249
245
  }
250
- function Go(o, e = B) {
251
- var c;
252
- const a = j(e).validate(o);
253
- return a.success ? null : ((c = a.errors[0]) == null ? void 0 : c.message) || "Invalid password";
246
+ function Fe(e, o = B) {
247
+ const l = j(o).validate(e);
248
+ return l.success ? null : l.errors[0]?.message || "Invalid password";
254
249
  }
255
- function Z(o, e = B) {
256
- const r = {
257
- length: o.length >= (e.minLength || 8),
258
- uppercase: /[A-Z]/.test(o),
259
- lowercase: /[a-z]/.test(o),
260
- numbers: /[0-9]/.test(o),
261
- symbols: /[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/.test(o),
262
- custom: e.customValidation ? e.customValidation(o) === null : o.length > 0
250
+ function Z(e, o = B) {
251
+ const i = {
252
+ length: e.length >= (o.minLength || 8),
253
+ uppercase: /[A-Z]/.test(e),
254
+ lowercase: /[a-z]/.test(e),
255
+ numbers: /[0-9]/.test(e),
256
+ symbols: /[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/.test(e),
257
+ custom: o.customValidation ? o.customValidation(e) === null : e.length > 0
263
258
  // For consistency, fail if password is empty
264
- }, a = [
259
+ }, l = [
265
260
  !0,
266
261
  // length is always enabled
267
- e.requireUppercase,
268
- e.requireLowercase,
269
- e.requireNumbers,
270
- e.requireSymbols,
271
- !!e.customValidation
262
+ o.requireUppercase,
263
+ o.requireLowercase,
264
+ o.requireNumbers,
265
+ o.requireSymbols,
266
+ !!o.customValidation
272
267
  ].filter(Boolean).length, c = [
273
- r.length,
274
- e.requireUppercase ? r.uppercase : null,
275
- e.requireLowercase ? r.lowercase : null,
276
- e.requireNumbers ? r.numbers : null,
277
- e.requireSymbols ? r.symbols : null,
278
- e.customValidation ? r.custom : null
279
- ].filter((s) => s === !0).length, i = a > 0 ? Math.round(c / a * 100) : 0;
280
- let t;
281
- return i < 40 ? t = "weak" : i < 60 ? t = "fair" : i < 80 ? t = "good" : t = "strong", { strength: t, score: i, checks: r };
268
+ i.length,
269
+ o.requireUppercase ? i.uppercase : null,
270
+ o.requireLowercase ? i.lowercase : null,
271
+ o.requireNumbers ? i.numbers : null,
272
+ o.requireSymbols ? i.symbols : null,
273
+ o.customValidation ? i.custom : null
274
+ ].filter((a) => a === !0).length, n = l > 0 ? Math.round(c / l * 100) : 0;
275
+ let s;
276
+ return n < 40 ? s = "weak" : n < 60 ? s = "fair" : n < 80 ? s = "good" : s = "strong", { strength: s, score: n, checks: i };
282
277
  }
283
- const no = () => ro({
278
+ const se = () => ae({
284
279
  key: "bui_auth_email",
285
280
  defaultValue: null
286
281
  });
287
- function wo({
288
- onSignIn: o,
289
- passwordRules: e,
290
- labels: r,
291
- showRememberMe: a
282
+ function fe({
283
+ onSignIn: e,
284
+ passwordRules: o,
285
+ labels: i,
286
+ showRememberMe: l
292
287
  }) {
293
- const c = U(!1), i = no(), t = X(e), s = W({
294
- schema: t,
288
+ const c = E(!1), n = se(), s = X(o), a = G({
289
+ schema: s,
295
290
  submit: H({
296
- task: o != null ? (h) => o({
291
+ task: e != null ? (h) => e({
297
292
  email: h.email,
298
293
  password: h.password
299
294
  }) : void 0,
300
295
  message: "Reset password failed",
301
296
  onStart: () => {
302
- c.set(!0), s.controller.disable();
297
+ c.set(!0), a.controller.disable();
303
298
  },
304
299
  onEnd: () => {
305
- c.set(!1), s.controller.enable();
300
+ c.set(!1), a.controller.enable();
306
301
  }
307
302
  }),
308
303
  initialValue: {
309
304
  email: "",
310
305
  password: ""
311
306
  }
312
- }), { controller: l, onSubmit: u } = s;
313
- c.on(l.setDisabled);
314
- const w = l.field("email"), _ = l.field("password");
315
- return i.on((h) => {
316
- h != null && w.change(h);
317
- }), w.value.on((h) => {
318
- i.value != null && (i.value = h);
319
- }), S(
307
+ }), { controller: m, onSubmit: r } = a;
308
+ c.on(m.setDisabled);
309
+ const b = m.field("email"), w = m.field("password");
310
+ return n.on((h) => {
311
+ h != null && b.change(h);
312
+ }), b.value.on((h) => {
313
+ n.value != null && (n.value = h);
314
+ }), P(
320
315
  x,
321
316
  (h) => (
322
317
  // Email/Password form
323
- m.form(
324
- O(l.dispose, i.dispose, c.dispose),
325
- n.class("bc-auth-form__form"),
326
- T.submit(u),
318
+ u.form(
319
+ U(m.dispose, n.dispose, c.dispose),
320
+ t.class("bc-auth-form__form"),
321
+ T.submit(r),
327
322
  q(
328
- n.class("bc-auth-form__fields"),
323
+ t.class("bc-auth-form__fields"),
329
324
  // Email field
330
- $(N, {
331
- controller: w,
332
- label: g(r == null ? void 0 : r.emailLabel, h.$.emailLabel)
325
+ $(R, {
326
+ controller: b,
327
+ label: g(i?.emailLabel, h.$.emailLabel)
333
328
  }),
334
329
  // Password field
335
- $(G, {
336
- controller: _,
337
- label: g(r == null ? void 0 : r.passwordLabel, h.$.passwordLabel)
330
+ $(M, {
331
+ controller: w,
332
+ label: g(i?.passwordLabel, h.$.passwordLabel)
338
333
  }),
339
334
  // Remember me checkbox
340
- L(
341
- a ?? !0,
342
- () => m.div(
343
- n.class("bc-auth-form__remember-me"),
344
- m.label(
345
- n.class("bc-auth-form__checkbox-label"),
346
- eo({
347
- value: i.map((k) => k != null),
348
- after: m.span(
349
- g(r == null ? void 0 : r.rememberMeLabel, h.$.rememberMeLabel)
335
+ _(
336
+ l ?? !0,
337
+ () => u.div(
338
+ t.class("bc-auth-form__remember-me"),
339
+ u.label(
340
+ t.class("bc-auth-form__checkbox-label"),
341
+ oe({
342
+ value: n.map((L) => L != null),
343
+ after: u.span(
344
+ g(i?.rememberMeLabel, h.$.rememberMeLabel)
350
345
  ),
351
- onChange: (k) => {
352
- k ? i.value = w.value.value ?? "" : i.value = null;
346
+ onChange: (L) => {
347
+ L ? n.value = b.value.value ?? "" : n.value = null;
353
348
  }
354
349
  })
355
350
  )
@@ -357,28 +352,28 @@ function wo({
357
352
  )
358
353
  ),
359
354
  // Submit button
360
- V(
355
+ O(
361
356
  {
362
357
  type: "submit",
363
358
  variant: "filled",
364
359
  color: "primary",
365
360
  loading: c,
366
- disabled: l.disabledOrHasErrors
361
+ disabled: m.disabledOrHasErrors
367
362
  },
368
- n.class("bc-auth-form__submit"),
369
- g(r == null ? void 0 : r.signInButton, h.$.signInButton)
363
+ t.class("bc-auth-form__submit"),
364
+ g(i?.signInButton, h.$.signInButton)
370
365
  )
371
366
  )
372
367
  )
373
368
  );
374
369
  }
375
- function _o({
376
- password: o,
377
- rules: e = B,
378
- showLabel: r = !0,
379
- className: a
370
+ function be({
371
+ password: e,
372
+ rules: o = B,
373
+ showLabel: i = !0,
374
+ className: l
380
375
  }) {
381
- const c = f(o)((u) => !u || u.length === 0 ? {
376
+ const c = f(e)((r) => !r || r.length === 0 ? {
382
377
  strength: "weak",
383
378
  score: 0,
384
379
  checks: {
@@ -389,150 +384,150 @@ function _o({
389
384
  symbols: !1,
390
385
  custom: !1
391
386
  }
392
- } : Z(u, e)), i = c.map((u) => u.strength), t = c.map((u) => u.score), s = c.map((u) => u.checks), l = f(
393
- i,
394
- a
395
- )((u, w) => [
387
+ } : Z(r, o)), n = c.map((r) => r.strength), s = c.map((r) => r.score), a = c.map((r) => r.checks), m = f(
388
+ n,
389
+ l
390
+ )((r, b) => [
396
391
  "bc-password-strength",
397
- `bc-password-strength--${u}`,
398
- w
392
+ `bc-password-strength--${r}`,
393
+ b
399
394
  ].filter(Boolean).join(" "));
400
- return m.div(
401
- n.class(l),
395
+ return u.div(
396
+ t.class(m),
402
397
  // Strength bar
403
- m.div(
404
- n.class("bc-password-strength__bar"),
405
- m.div(
406
- n.class("bc-password-strength__fill"),
407
- n.style(t.map((u) => `width: ${u}%`))
398
+ u.div(
399
+ t.class("bc-password-strength__bar"),
400
+ u.div(
401
+ t.class("bc-password-strength__fill"),
402
+ t.style(s.map((r) => `width: ${r}%`))
408
403
  )
409
404
  ),
410
405
  // Strength label (optional)
411
- L(
412
- r,
413
- () => S(
406
+ _(
407
+ i,
408
+ () => P(
414
409
  x,
415
- (u) => m.div(
416
- n.class("bc-password-strength__label"),
410
+ (r) => u.div(
411
+ t.class("bc-password-strength__label"),
417
412
  f(
418
- i,
419
- u
420
- )((w, _) => {
421
- switch (w) {
413
+ n,
414
+ r
415
+ )((b, w) => {
416
+ switch (b) {
422
417
  case "weak":
423
- return _.passwordStrengthWeak;
418
+ return w.passwordStrengthWeak;
424
419
  case "fair":
425
- return _.passwordStrengthFair;
420
+ return w.passwordStrengthFair;
426
421
  case "good":
427
- return _.passwordStrengthGood;
422
+ return w.passwordStrengthGood;
428
423
  case "strong":
429
- return _.passwordStrengthStrong;
424
+ return w.passwordStrengthStrong;
430
425
  default:
431
- return _.passwordStrengthWeak;
426
+ return w.passwordStrengthWeak;
432
427
  }
433
428
  })
434
429
  )
435
430
  )
436
431
  ),
437
432
  // Requirements checklist
438
- m.div(
439
- n.class("bc-password-strength__requirements"),
433
+ u.div(
434
+ t.class("bc-password-strength__requirements"),
440
435
  // Length requirement
441
- L(
442
- e.minLength !== void 0,
443
- () => m.div(
444
- n.class("bc-password-strength__requirement"),
445
- n.class(
446
- f(s)(
447
- (u) => u.length ? "bc-password-strength__requirement--met" : ""
436
+ _(
437
+ o.minLength !== void 0,
438
+ () => u.div(
439
+ t.class("bc-password-strength__requirement"),
440
+ t.class(
441
+ f(a)(
442
+ (r) => r.length ? "bc-password-strength__requirement--met" : ""
448
443
  )
449
444
  ),
450
- m.span(
451
- n.class("bc-password-strength__requirement-icon"),
452
- f(s)((u) => u.length ? "✓" : "○")
445
+ u.span(
446
+ t.class("bc-password-strength__requirement-icon"),
447
+ f(a)((r) => r.length ? "✓" : "○")
453
448
  ),
454
- m.span(
455
- n.class("bc-password-strength__requirement-text"),
456
- `At least ${e.minLength} characters`
449
+ u.span(
450
+ t.class("bc-password-strength__requirement-text"),
451
+ `At least ${o.minLength} characters`
457
452
  )
458
453
  )
459
454
  ),
460
455
  // Uppercase requirement
461
- L(
462
- e.requireUppercase === !0,
463
- () => m.div(
464
- n.class("bc-password-strength__requirement"),
465
- n.class(
466
- f(s)(
467
- (u) => u.uppercase ? "bc-password-strength__requirement--met" : ""
456
+ _(
457
+ o.requireUppercase === !0,
458
+ () => u.div(
459
+ t.class("bc-password-strength__requirement"),
460
+ t.class(
461
+ f(a)(
462
+ (r) => r.uppercase ? "bc-password-strength__requirement--met" : ""
468
463
  )
469
464
  ),
470
- m.span(
471
- n.class("bc-password-strength__requirement-icon"),
472
- f(s)((u) => u.uppercase ? "✓" : "○")
465
+ u.span(
466
+ t.class("bc-password-strength__requirement-icon"),
467
+ f(a)((r) => r.uppercase ? "✓" : "○")
473
468
  ),
474
- m.span(
475
- n.class("bc-password-strength__requirement-text"),
469
+ u.span(
470
+ t.class("bc-password-strength__requirement-text"),
476
471
  "One uppercase letter"
477
472
  )
478
473
  )
479
474
  ),
480
475
  // Lowercase requirement
481
- L(
482
- e.requireLowercase === !0,
483
- () => m.div(
484
- n.class("bc-password-strength__requirement"),
485
- n.class(
486
- f(s)(
487
- (u) => u.lowercase ? "bc-password-strength__requirement--met" : ""
476
+ _(
477
+ o.requireLowercase === !0,
478
+ () => u.div(
479
+ t.class("bc-password-strength__requirement"),
480
+ t.class(
481
+ f(a)(
482
+ (r) => r.lowercase ? "bc-password-strength__requirement--met" : ""
488
483
  )
489
484
  ),
490
- m.span(
491
- n.class("bc-password-strength__requirement-icon"),
492
- f(s)((u) => u.lowercase ? "✓" : "○")
485
+ u.span(
486
+ t.class("bc-password-strength__requirement-icon"),
487
+ f(a)((r) => r.lowercase ? "✓" : "○")
493
488
  ),
494
- m.span(
495
- n.class("bc-password-strength__requirement-text"),
489
+ u.span(
490
+ t.class("bc-password-strength__requirement-text"),
496
491
  "One lowercase letter"
497
492
  )
498
493
  )
499
494
  ),
500
495
  // Numbers requirement
501
- L(
502
- e.requireNumbers === !0,
503
- () => m.div(
504
- n.class("bc-password-strength__requirement"),
505
- n.class(
506
- f(s)(
507
- (u) => u.numbers ? "bc-password-strength__requirement--met" : ""
496
+ _(
497
+ o.requireNumbers === !0,
498
+ () => u.div(
499
+ t.class("bc-password-strength__requirement"),
500
+ t.class(
501
+ f(a)(
502
+ (r) => r.numbers ? "bc-password-strength__requirement--met" : ""
508
503
  )
509
504
  ),
510
- m.span(
511
- n.class("bc-password-strength__requirement-icon"),
512
- f(s)((u) => u.numbers ? "✓" : "○")
505
+ u.span(
506
+ t.class("bc-password-strength__requirement-icon"),
507
+ f(a)((r) => r.numbers ? "✓" : "○")
513
508
  ),
514
- m.span(
515
- n.class("bc-password-strength__requirement-text"),
509
+ u.span(
510
+ t.class("bc-password-strength__requirement-text"),
516
511
  "One number"
517
512
  )
518
513
  )
519
514
  ),
520
515
  // Symbols requirement
521
- L(
522
- e.requireSymbols === !0,
523
- () => m.div(
524
- n.class("bc-password-strength__requirement"),
525
- n.class(
526
- f(s)(
527
- (u) => u.symbols ? "bc-password-strength__requirement--met" : ""
516
+ _(
517
+ o.requireSymbols === !0,
518
+ () => u.div(
519
+ t.class("bc-password-strength__requirement"),
520
+ t.class(
521
+ f(a)(
522
+ (r) => r.symbols ? "bc-password-strength__requirement--met" : ""
528
523
  )
529
524
  ),
530
- m.span(
531
- n.class("bc-password-strength__requirement-icon"),
532
- f(s)((u) => u.symbols ? "✓" : "○")
525
+ u.span(
526
+ t.class("bc-password-strength__requirement-icon"),
527
+ f(a)((r) => r.symbols ? "✓" : "○")
533
528
  ),
534
- m.span(
535
- n.class("bc-password-strength__requirement-text"),
529
+ u.span(
530
+ t.class("bc-password-strength__requirement-text"),
536
531
  "One special character"
537
532
  )
538
533
  )
@@ -540,92 +535,92 @@ function _o({
540
535
  )
541
536
  );
542
537
  }
543
- function Ro({
544
- password: o,
545
- rules: e = B,
546
- className: r
538
+ function Me({
539
+ password: e,
540
+ rules: o = B,
541
+ className: i
547
542
  }) {
548
- const a = f(o)((s) => !s || s.length === 0 ? { strength: "weak", score: 0 } : Z(s, e)), c = a.map((s) => s.strength), i = a.map((s) => s.score), t = f(
543
+ const l = f(e)((a) => !a || a.length === 0 ? { strength: "weak", score: 0 } : Z(a, o)), c = l.map((a) => a.strength), n = l.map((a) => a.score), s = f(
549
544
  c,
550
- r
551
- )((s, l) => [
545
+ i
546
+ )((a, m) => [
552
547
  "bc-password-strength-bar",
553
- `bc-password-strength-bar--${s}`,
554
- l
548
+ `bc-password-strength-bar--${a}`,
549
+ m
555
550
  ].filter(Boolean).join(" "));
556
- return m.div(
557
- n.class(t),
558
- m.div(
559
- n.class("bc-password-strength-bar__fill"),
560
- n.style(i.map((s) => `width: ${s}%`))
551
+ return u.div(
552
+ t.class(s),
553
+ u.div(
554
+ t.class("bc-password-strength-bar__fill"),
555
+ t.style(n.map((a) => `width: ${a}%`))
561
556
  )
562
557
  );
563
558
  }
564
- function Wo({
565
- password: o,
566
- rules: e = B,
567
- className: r
559
+ function De({
560
+ password: e,
561
+ rules: o = B,
562
+ className: i
568
563
  }) {
569
- const a = f(o)((i) => !i || i.length === 0 ? "weak" : Z(i, e).strength), c = f(
570
- a,
571
- r
572
- )((i, t) => [
564
+ const l = f(e)((n) => !n || n.length === 0 ? "weak" : Z(n, o).strength), c = f(
565
+ l,
566
+ i
567
+ )((n, s) => [
573
568
  "bc-password-strength-text",
574
- `bc-password-strength-text--${i}`,
575
- t
569
+ `bc-password-strength-text--${n}`,
570
+ s
576
571
  ].filter(Boolean).join(" "));
577
- return S(
572
+ return P(
578
573
  x,
579
- (i) => m.span(
580
- n.class(c),
574
+ (n) => u.span(
575
+ t.class(c),
581
576
  f(
582
- a,
583
- i
584
- )((t, s) => {
585
- switch (t) {
577
+ l,
578
+ n
579
+ )((s, a) => {
580
+ switch (s) {
586
581
  case "weak":
587
- return s.passwordStrengthWeak;
582
+ return a.passwordStrengthWeak;
588
583
  case "fair":
589
- return s.passwordStrengthFair;
584
+ return a.passwordStrengthFair;
590
585
  case "good":
591
- return s.passwordStrengthGood;
586
+ return a.passwordStrengthGood;
592
587
  case "strong":
593
- return s.passwordStrengthStrong;
588
+ return a.passwordStrengthStrong;
594
589
  default:
595
- return s.passwordStrengthWeak;
590
+ return a.passwordStrengthWeak;
596
591
  }
597
592
  })
598
593
  )
599
594
  );
600
595
  }
601
- function Lo({
602
- passwordRules: o,
603
- labels: e,
604
- showPasswordStrength: r,
605
- onSignUp: a,
596
+ function we({
597
+ passwordRules: e,
598
+ labels: o,
599
+ showPasswordStrength: i,
600
+ onSignUp: l,
606
601
  showNameField: c,
607
- showConfirmPassword: i,
608
- showAcceptTermsAndConditions: t,
609
- termsAndConditions: s
602
+ showConfirmPassword: n,
603
+ showAcceptTermsAndConditions: s,
604
+ termsAndConditions: a
610
605
  }) {
611
- const l = U(!1), u = o || B, w = Y(u, {
606
+ const m = E(!1), r = e || B, b = Y(r, {
612
607
  showNameField: c !== !1,
613
- showConfirmPassword: i !== !1,
614
- showAcceptTermsAndConditions: t !== !1
615
- }), _ = W({
616
- schema: w,
608
+ showConfirmPassword: n !== !1,
609
+ showAcceptTermsAndConditions: s !== !1
610
+ }), w = G({
611
+ schema: b,
617
612
  submit: H({
618
- task: a != null ? (y) => a({
613
+ task: l != null ? (y) => l({
619
614
  email: y.email,
620
615
  password: y.password,
621
616
  name: y.name
622
617
  }) : void 0,
623
618
  message: "Reset password failed",
624
619
  onStart: () => {
625
- l.set(!0), _.controller.disable();
620
+ m.set(!0), w.controller.disable();
626
621
  },
627
622
  onEnd: () => {
628
- l.set(!1), _.controller.enable();
623
+ m.set(!1), w.controller.enable();
629
624
  }
630
625
  }),
631
626
  initialValue: {
@@ -635,236 +630,236 @@ function Lo({
635
630
  confirmPassword: "",
636
631
  acceptTerms: !1
637
632
  }
638
- }), { controller: h, onSubmit: k } = _;
639
- l.on(h.setDisabled);
640
- const v = h.field("name"), z = h.field("email"), C = h.field("password"), D = h.field("confirmPassword"), b = h.field("acceptTerms");
641
- return S(
633
+ }), { controller: h, onSubmit: L } = w;
634
+ m.on(h.setDisabled);
635
+ const k = h.field("name"), C = h.field("email"), z = h.field("password"), F = h.field("confirmPassword"), v = h.field("acceptTerms");
636
+ return P(
642
637
  x,
643
638
  (y) => (
644
639
  // Registration form
645
- m.form(
646
- O(h.dispose, l.dispose),
647
- n.class("bc-auth-form__form"),
648
- T.submit(k),
640
+ u.form(
641
+ U(h.dispose, m.dispose),
642
+ t.class("bc-auth-form__form"),
643
+ T.submit(L),
649
644
  q(
650
- n.class("bc-auth-form__fields"),
645
+ t.class("bc-auth-form__fields"),
651
646
  // Name field (optional)
652
- L(
647
+ _(
653
648
  c !== !1,
654
- () => $(uo, {
655
- controller: v.transform(
656
- (P) => P ?? "",
657
- (P) => P === "" ? void 0 : P
649
+ () => $(le, {
650
+ controller: k.transform(
651
+ (S) => S ?? "",
652
+ (S) => S === "" ? void 0 : S
658
653
  ),
659
- label: g(e == null ? void 0 : e.nameLabel, y.$.nameLabel)
654
+ label: g(o?.nameLabel, y.$.nameLabel)
660
655
  })
661
656
  ),
662
657
  // Email field
663
- $(N, {
664
- controller: z,
665
- label: g(e == null ? void 0 : e.emailLabel, y.$.emailLabel)
658
+ $(R, {
659
+ controller: C,
660
+ label: g(o?.emailLabel, y.$.emailLabel)
666
661
  }),
667
662
  // Password field
668
- $(G, {
669
- controller: C,
670
- label: g(e == null ? void 0 : e.passwordLabel, y.$.passwordLabel)
663
+ $(M, {
664
+ controller: z,
665
+ label: g(o?.passwordLabel, y.$.passwordLabel)
671
666
  }),
672
667
  // Password strength indicator
673
- L(
674
- r ?? !1,
675
- () => _o({
676
- password: C.value,
677
- rules: u,
668
+ _(
669
+ i ?? !1,
670
+ () => be({
671
+ password: z.value,
672
+ rules: r,
678
673
  showLabel: !0
679
674
  })
680
675
  ),
681
676
  // Confirm password field
682
- L(
683
- i ?? !1,
684
- () => $(G, {
685
- controller: D,
677
+ _(
678
+ n ?? !1,
679
+ () => $(M, {
680
+ controller: F,
686
681
  label: g(
687
- e == null ? void 0 : e.confirmPasswordLabel,
682
+ o?.confirmPasswordLabel,
688
683
  y.$.confirmPasswordLabel
689
684
  )
690
685
  })
691
686
  ),
692
687
  // Terms acceptance checkbox
693
- L(
694
- t ?? !1,
695
- () => m.div(
696
- n.class("bc-auth-form__terms"),
697
- m.label(
698
- n.class("bc-auth-form__checkbox-label"),
699
- eo({
700
- value: b.value.map((P) => P ?? !1),
701
- onChange: (P) => b.change(P)
688
+ _(
689
+ s ?? !1,
690
+ () => u.div(
691
+ t.class("bc-auth-form__terms"),
692
+ u.label(
693
+ t.class("bc-auth-form__checkbox-label"),
694
+ oe({
695
+ value: v.value.map((S) => S ?? !1),
696
+ onChange: (S) => v.change(S)
702
697
  }),
703
- m.span(
704
- s || g(e == null ? void 0 : e.acceptTermsLabel, y.$.acceptTermsLabel)
698
+ u.span(
699
+ a || g(o?.acceptTermsLabel, y.$.acceptTermsLabel)
705
700
  )
706
701
  ),
707
- L(
708
- b.errorVisible,
709
- () => m.div(
710
- n.class("bc-auth-form__field-error"),
711
- b.error.map((P) => P || "")
702
+ _(
703
+ v.errorVisible,
704
+ () => u.div(
705
+ t.class("bc-auth-form__field-error"),
706
+ v.error.map((S) => S || "")
712
707
  )
713
708
  )
714
709
  )
715
710
  )
716
711
  ),
717
712
  // Submit button
718
- V(
713
+ O(
719
714
  {
720
715
  type: "submit",
721
716
  variant: "filled",
722
717
  color: "primary",
723
- loading: l,
718
+ loading: m,
724
719
  disabled: h.disabledOrHasErrors
725
720
  },
726
- n.class("bc-auth-form__submit"),
727
- g(e == null ? void 0 : e.signUpButton, y.$.signUpButton)
721
+ t.class("bc-auth-form__submit"),
722
+ g(o?.signUpButton, y.$.signUpButton)
728
723
  )
729
724
  )
730
725
  )
731
726
  );
732
727
  }
733
- function ko({
734
- onResetPassword: o,
735
- labels: e = {}
728
+ function _e({
729
+ onResetPassword: e,
730
+ labels: o = {}
736
731
  }) {
737
- const r = no(), a = U(!1), c = W({
738
- schema: to,
732
+ const i = se(), l = E(!1), c = G({
733
+ schema: te,
739
734
  submit: H({
740
- task: o,
735
+ task: e,
741
736
  message: "Reset password failed",
742
737
  onStart: () => {
743
- a.set(!0), c.controller.disable();
738
+ l.set(!0), c.controller.disable();
744
739
  },
745
740
  onEnd: () => {
746
- a.set(!1), c.controller.enable();
741
+ l.set(!1), c.controller.enable();
747
742
  }
748
743
  }),
749
744
  initialValue: {
750
745
  email: ""
751
746
  }
752
- }), { controller: i, onSubmit: t } = c;
753
- a.on(i.setDisabled);
754
- const s = i.field("email");
755
- return r.on((l) => {
756
- l != null && s.change(l);
757
- }), S(
747
+ }), { controller: n, onSubmit: s } = c;
748
+ l.on(n.setDisabled);
749
+ const a = n.field("email");
750
+ return i.on((m) => {
751
+ m != null && a.change(m);
752
+ }), P(
758
753
  x,
759
- (l) => (
754
+ (m) => (
760
755
  // Reset password form
761
- m.form(
762
- O(i.dispose, r.dispose, a.dispose),
763
- n.class("bc-auth-form__form"),
756
+ u.form(
757
+ U(n.dispose, i.dispose, l.dispose),
758
+ t.class("bc-auth-form__form"),
764
759
  // Description
765
- m.p(
766
- n.class("bc-auth-form__description"),
767
- g(e == null ? void 0 : e.resetPasswordDescription, l.$.resetPasswordDescription)
760
+ u.p(
761
+ t.class("bc-auth-form__description"),
762
+ g(o?.resetPasswordDescription, m.$.resetPasswordDescription)
768
763
  ),
769
- T.submit(t),
764
+ T.submit(s),
770
765
  q(
771
- n.class("bc-auth-form__fields"),
766
+ t.class("bc-auth-form__fields"),
772
767
  // Email field
773
- $(N, {
774
- controller: s,
775
- label: g(e == null ? void 0 : e.emailLabel, l.$.emailLabel)
768
+ $(R, {
769
+ controller: a,
770
+ label: g(o?.emailLabel, m.$.emailLabel)
776
771
  })
777
772
  ),
778
773
  // Submit button
779
- V(
774
+ O(
780
775
  {
781
- loading: a,
776
+ loading: l,
782
777
  type: "submit",
783
778
  variant: "filled",
784
779
  color: "primary",
785
- disabled: i.disabledOrHasErrors
780
+ disabled: n.disabledOrHasErrors
786
781
  },
787
- n.class("bc-auth-form__submit"),
788
- g(e == null ? void 0 : e.resetPasswordButton, l.$.resetPasswordButton)
782
+ t.class("bc-auth-form__submit"),
783
+ g(o?.resetPasswordButton, m.$.resetPasswordButton)
789
784
  )
790
785
  )
791
786
  )
792
787
  );
793
788
  }
794
789
  function p({
795
- provider: o,
796
- onClick: e,
797
- size: r = "md",
798
- name: a,
790
+ provider: e,
791
+ onClick: o,
792
+ size: i = "md",
793
+ name: l,
799
794
  icon: c,
800
- color: i,
801
- flow: t,
802
- labels: s
795
+ color: n,
796
+ flow: s,
797
+ labels: a
803
798
  }) {
804
- return V(
799
+ return O(
805
800
  {
806
801
  type: "button",
807
802
  variant: "filled",
808
- size: r,
809
- color: i,
803
+ size: i,
804
+ color: n,
810
805
  onClick: async () => {
811
- if (e)
806
+ if (o)
812
807
  try {
813
- t === "popup" ? await e() : await e();
814
- } catch (u) {
808
+ s === "popup" ? await o() : await o();
809
+ } catch (r) {
815
810
  console.error(
816
- `Social login error for ${o} (${t || "redirect"} flow):`,
817
- u
811
+ `Social login error for ${e} (${s || "redirect"} flow):`,
812
+ r
818
813
  );
819
814
  }
820
815
  },
821
816
  roundedness: "full"
822
817
  },
823
- n.class("bc-social-login-button"),
824
- n.class(
825
- f(o)((u) => `bc-social-login-button--${u}`)
818
+ t.class("bc-social-login-button"),
819
+ t.class(
820
+ f(e)((r) => `bc-social-login-button--${r}`)
826
821
  ),
827
- mo(
828
- n.class("bu-items-center bu-w-full"),
829
- lo({ icon: c, size: r }, n.class("bu-bg-white bu-rounded-full bu-p-2")),
822
+ ue(
823
+ t.class("bu-items-center bu-w-full"),
824
+ me({ icon: c, size: i }, t.class("bu-bg-white bu-rounded-full bu-p-2")),
830
825
  // Button text or custom children
831
- S(
826
+ P(
832
827
  x,
833
- (u) => m.span(
834
- n.class(
828
+ (r) => u.span(
829
+ t.class(
835
830
  "bu-flex-grow bu-flex bu-items-center bu-align-center bu-text-center bu-px-4"
836
831
  ),
837
- so(
838
- g(s == null ? void 0 : s.continueWithProvider, u.$.continueWithProvider)
839
- )(a)
832
+ ne(
833
+ g(a?.continueWithProvider, r.$.continueWithProvider)
834
+ )(l)
840
835
  )
841
836
  )
842
837
  )
843
838
  );
844
839
  }
845
- function vo({
846
- providers: o,
847
- onProviderClick: e,
848
- size: r = "md",
849
- className: a
840
+ function Le({
841
+ providers: e,
842
+ onProviderClick: o,
843
+ size: i = "md",
844
+ className: l
850
845
  }) {
851
846
  return q(
852
- n.class("bc-social-login-buttons bu-gap-2 bu-px-8"),
853
- n.class(a),
854
- ao(
855
- o,
847
+ t.class("bc-social-login-buttons bu-gap-2 bu-px-8"),
848
+ t.class(l),
849
+ re(
850
+ e,
856
851
  (c) => p({
857
852
  provider: c.$.provider,
858
853
  flow: c.$.flow,
859
854
  color: c.map(
860
- ({ provider: i }) => d[i].color
855
+ ({ provider: n }) => d[n].color
861
856
  ),
862
- name: c.map(({ provider: i }) => d[i].name),
863
- icon: c.map(({ provider: i }) => d[i].icon),
857
+ name: c.map(({ provider: n }) => d[n].name),
858
+ icon: c.map(({ provider: n }) => d[n].icon),
864
859
  onClick: async () => {
865
- e && await e(c.$.provider.value);
860
+ o && await o(c.$.provider.value);
866
861
  },
867
- size: r
862
+ size: i
868
863
  })
869
864
  )
870
865
  );
@@ -1000,332 +995,332 @@ const d = {
1000
995
  color: "blue"
1001
996
  // distinct deep blue tone (not Facebook’s exact blue)
1002
997
  }
1003
- }, No = (o) => p({
1004
- ...o,
998
+ }, Ge = (e) => p({
999
+ ...e,
1005
1000
  ...d.google,
1006
1001
  provider: "google"
1007
- }), Eo = (o) => p({
1008
- ...o,
1002
+ }), Re = (e) => p({
1003
+ ...e,
1009
1004
  ...d.github,
1010
1005
  provider: "github"
1011
- }), Mo = (o) => p({
1012
- ...o,
1006
+ }), We = (e) => p({
1007
+ ...e,
1013
1008
  ...d.apple,
1014
1009
  provider: "apple"
1015
- }), Ho = (o) => p({
1016
- ...o,
1010
+ }), Ne = (e) => p({
1011
+ ...e,
1017
1012
  ...d.facebook,
1018
1013
  provider: "facebook"
1019
- }), jo = (o) => p({
1020
- ...o,
1014
+ }), He = (e) => p({
1015
+ ...e,
1021
1016
  ...d.x,
1022
1017
  provider: "x"
1023
- }), Xo = (o) => p({
1024
- ...o,
1018
+ }), je = (e) => p({
1019
+ ...e,
1025
1020
  ...d.twitter,
1026
1021
  provider: "twitter"
1027
- }), Yo = (o) => p({
1028
- ...o,
1022
+ }), Xe = (e) => p({
1023
+ ...e,
1029
1024
  ...d.microsoft,
1030
1025
  provider: "microsoft"
1031
- }), Zo = (o) => p({
1032
- ...o,
1026
+ }), Ye = (e) => p({
1027
+ ...e,
1033
1028
  ...d.discord,
1034
1029
  provider: "discord"
1035
- }), Jo = (o) => p({
1036
- ...o,
1030
+ }), Ze = (e) => p({
1031
+ ...e,
1037
1032
  ...d.linkedin,
1038
1033
  provider: "linkedin"
1039
- }), Ko = (o) => p({
1040
- ...o,
1034
+ }), Je = (e) => p({
1035
+ ...e,
1041
1036
  ...d.instagram,
1042
1037
  provider: "instagram"
1043
- }), Qo = (o) => p({
1044
- ...o,
1038
+ }), Ke = (e) => p({
1039
+ ...e,
1045
1040
  ...d.tiktok,
1046
1041
  provider: "tiktok"
1047
- }), oe = (o) => p({
1048
- ...o,
1042
+ }), Qe = (e) => p({
1043
+ ...e,
1049
1044
  ...d.snapchat,
1050
1045
  provider: "snapchat"
1051
- }), ee = (o) => p({
1052
- ...o,
1046
+ }), eo = (e) => p({
1047
+ ...e,
1053
1048
  ...d.reddit,
1054
1049
  provider: "reddit"
1055
- }), te = (o) => p({
1056
- ...o,
1050
+ }), oo = (e) => p({
1051
+ ...e,
1057
1052
  ...d.pinterest,
1058
1053
  provider: "pinterest"
1059
- }), ne = (o) => p({
1060
- ...o,
1054
+ }), to = (e) => p({
1055
+ ...e,
1061
1056
  ...d.twitch,
1062
1057
  provider: "twitch"
1063
- }), re = (o) => p({
1064
- ...o,
1058
+ }), so = (e) => p({
1059
+ ...e,
1065
1060
  ...d.steam,
1066
1061
  provider: "steam"
1067
- }), se = (o) => p({
1068
- ...o,
1062
+ }), ao = (e) => p({
1063
+ ...e,
1069
1064
  ...d.epic,
1070
1065
  provider: "epic"
1071
- }), ae = (o) => p({
1072
- ...o,
1066
+ }), no = (e) => p({
1067
+ ...e,
1073
1068
  ...d.playstation,
1074
1069
  provider: "playstation"
1075
- }), ie = (o) => p({
1076
- ...o,
1070
+ }), ro = (e) => p({
1071
+ ...e,
1077
1072
  ...d.xbox,
1078
1073
  provider: "xbox"
1079
- }), ce = (o) => p({
1080
- ...o,
1074
+ }), io = (e) => p({
1075
+ ...e,
1081
1076
  ...d.whatsapp,
1082
1077
  provider: "whatsapp"
1083
- }), ue = (o) => p({
1084
- ...o,
1078
+ }), co = (e) => p({
1079
+ ...e,
1085
1080
  ...d.wechat,
1086
1081
  provider: "wechat"
1087
- }), me = (o) => p({
1088
- ...o,
1082
+ }), lo = (e) => p({
1083
+ ...e,
1089
1084
  ...d.amazon,
1090
1085
  provider: "amazon"
1091
- }), le = (o) => p({
1092
- ...o,
1086
+ }), uo = (e) => p({
1087
+ ...e,
1093
1088
  ...d.yahoo,
1094
1089
  provider: "yahoo"
1095
- }), de = (o) => p({
1096
- ...o,
1090
+ }), mo = (e) => p({
1091
+ ...e,
1097
1092
  ...d.paypal,
1098
1093
  provider: "paypal"
1099
1094
  });
1100
- function Q({ providers: o }) {
1095
+ function Q({ providers: e }) {
1101
1096
  return q(
1102
- vo({
1103
- providers: o
1097
+ Le({
1098
+ providers: e
1104
1099
  })
1105
1100
  );
1106
1101
  }
1107
- function bo({
1108
- mode: o,
1109
- socialProviders: e,
1110
- passwordRules: r,
1111
- showRememberMe: a,
1102
+ function ke({
1103
+ mode: e,
1104
+ socialProviders: o,
1105
+ passwordRules: i,
1106
+ showRememberMe: l,
1112
1107
  showSocialDivider: c,
1113
- showPasswordStrength: i,
1114
- labels: t,
1115
- onSignIn: s,
1116
- onSignUp: l,
1117
- onResetPassword: u,
1118
- onModeChange: w,
1108
+ showPasswordStrength: n,
1109
+ labels: s,
1110
+ onSignIn: a,
1111
+ onSignUp: m,
1112
+ onResetPassword: r,
1113
+ onModeChange: b,
1119
1114
  // onSocialLogin,
1120
- showContainer: _
1115
+ showContainer: w
1121
1116
  }, ...h) {
1122
- const k = o != null ? J.deriveProp(o) : U("signin");
1123
- return k.on((v) => w == null ? void 0 : w(v)), S(x, (v) => {
1124
- function z() {
1125
- const b = g(t == null ? void 0 : t.hasAccountLink, v.$.hasAccountLink);
1126
- return m.button(
1127
- n.type("button"),
1128
- n.class("bc-auth-form__link"),
1129
- T.click(() => k.set("signin")),
1130
- b
1117
+ const L = e != null ? J.deriveProp(e) : E("signin");
1118
+ return L.on((k) => b?.(k)), P(x, (k) => {
1119
+ function C() {
1120
+ const v = g(s?.hasAccountLink, k.$.hasAccountLink);
1121
+ return u.button(
1122
+ t.type("button"),
1123
+ t.class("bc-auth-form__link"),
1124
+ T.click(() => L.set("signin")),
1125
+ v
1131
1126
  );
1132
1127
  }
1133
- function C() {
1134
- return m.button(
1135
- n.type("button"),
1136
- n.class("bc-auth-form__link"),
1137
- T.click(() => k.set("signup")),
1138
- g(t == null ? void 0 : t.noAccountLink, v.$.noAccountLink)
1128
+ function z() {
1129
+ return u.button(
1130
+ t.type("button"),
1131
+ t.class("bc-auth-form__link"),
1132
+ T.click(() => L.set("signup")),
1133
+ g(s?.noAccountLink, k.$.noAccountLink)
1139
1134
  );
1140
1135
  }
1141
- function D() {
1142
- return m.button(
1143
- n.type("button"),
1144
- n.class("bc-auth-form__link"),
1145
- T.click(() => k.set("reset-password")),
1146
- g(t == null ? void 0 : t.forgotPasswordLink, v.$.forgotPasswordLink)
1136
+ function F() {
1137
+ return u.button(
1138
+ t.type("button"),
1139
+ t.class("bc-auth-form__link"),
1140
+ T.click(() => L.set("reset-password")),
1141
+ g(s?.forgotPasswordLink, k.$.forgotPasswordLink)
1147
1142
  );
1148
1143
  }
1149
- return m.div(
1150
- ho({
1144
+ return u.div(
1145
+ pe({
1151
1146
  "bc-auth-container": !0,
1152
- "bc-auth-container--styled": J.map(_ ?? !0, (b) => b)
1147
+ "bc-auth-container--styled": J.map(w ?? !0, (v) => v)
1153
1148
  }),
1154
- n.class(k.map((b) => `bc-auth-container--${b}`)),
1155
- n.class("bc-auth-form"),
1156
- O(k.dispose),
1157
- io(k, {
1149
+ t.class(L.map((v) => `bc-auth-container--${v}`)),
1150
+ t.class("bc-auth-form"),
1151
+ U(L.dispose),
1152
+ ie(L, {
1158
1153
  signin: () => A(
1159
- m.h2(
1160
- n.class("bc-auth-form__title"),
1161
- g(t == null ? void 0 : t.signInTitle, v.$.signInTitle)
1154
+ u.h2(
1155
+ t.class("bc-auth-form__title"),
1156
+ g(s?.signInTitle, k.$.signInTitle)
1162
1157
  ),
1163
- e != null ? A(
1164
- Q({ providers: e }),
1165
- L(c ?? !1, oo)
1158
+ o != null ? A(
1159
+ Q({ providers: o }),
1160
+ _(c ?? !1, ee)
1166
1161
  ) : null,
1167
- wo({
1168
- onSignIn: s,
1169
- showRememberMe: a,
1170
- passwordRules: r,
1162
+ fe({
1163
+ onSignIn: a,
1164
+ showRememberMe: l,
1165
+ passwordRules: i,
1171
1166
  labels: {
1172
- emailLabel: t == null ? void 0 : t.emailLabel,
1173
- passwordLabel: t == null ? void 0 : t.passwordLabel,
1174
- rememberMeLabel: t == null ? void 0 : t.rememberMeLabel,
1175
- signInButton: t == null ? void 0 : t.signInButton,
1176
- forgotPasswordLink: t == null ? void 0 : t.forgotPasswordLink,
1177
- noAccountLink: t == null ? void 0 : t.noAccountLink
1167
+ emailLabel: s?.emailLabel,
1168
+ passwordLabel: s?.passwordLabel,
1169
+ rememberMeLabel: s?.rememberMeLabel,
1170
+ signInButton: s?.signInButton,
1171
+ forgotPasswordLink: s?.forgotPasswordLink,
1172
+ noAccountLink: s?.noAccountLink
1178
1173
  }
1179
1174
  }),
1180
1175
  q(
1181
- n.class("bc-auth-form__footer"),
1182
- C(),
1183
- D()
1176
+ t.class("bc-auth-form__footer"),
1177
+ z(),
1178
+ F()
1184
1179
  )
1185
1180
  ),
1186
1181
  signup: () => A(
1187
- m.h2(
1188
- n.class("bc-auth-form__title"),
1189
- g(t == null ? void 0 : t.signUpTitle, v.$.signUpTitle)
1182
+ u.h2(
1183
+ t.class("bc-auth-form__title"),
1184
+ g(s?.signUpTitle, k.$.signUpTitle)
1190
1185
  ),
1191
- e != null ? A(
1192
- Q({ providers: e }),
1193
- L(c ?? !1, oo)
1186
+ o != null ? A(
1187
+ Q({ providers: o }),
1188
+ _(c ?? !1, ee)
1194
1189
  ) : null,
1195
- Lo({
1190
+ we({
1196
1191
  labels: {
1197
- nameLabel: t == null ? void 0 : t.nameLabel,
1198
- emailLabel: t == null ? void 0 : t.emailLabel,
1199
- passwordLabel: t == null ? void 0 : t.passwordLabel,
1200
- confirmPasswordLabel: t == null ? void 0 : t.confirmPasswordLabel,
1201
- acceptTermsLabel: t == null ? void 0 : t.acceptTermsLabel,
1202
- signUpButton: t == null ? void 0 : t.signUpButton,
1203
- hasAccountLink: t == null ? void 0 : t.hasAccountLink
1192
+ nameLabel: s?.nameLabel,
1193
+ emailLabel: s?.emailLabel,
1194
+ passwordLabel: s?.passwordLabel,
1195
+ confirmPasswordLabel: s?.confirmPasswordLabel,
1196
+ acceptTermsLabel: s?.acceptTermsLabel,
1197
+ signUpButton: s?.signUpButton,
1198
+ hasAccountLink: s?.hasAccountLink
1204
1199
  },
1205
- onSignUp: l,
1206
- passwordRules: r,
1207
- showPasswordStrength: i
1200
+ onSignUp: m,
1201
+ passwordRules: i,
1202
+ showPasswordStrength: n
1208
1203
  }),
1209
- q(n.class("bc-auth-form__footer"), z())
1204
+ q(t.class("bc-auth-form__footer"), C())
1210
1205
  ),
1211
1206
  "reset-password": () => A(
1212
- m.h2(
1213
- n.class("bc-auth-form__title"),
1214
- g(t == null ? void 0 : t.resetPasswordTitle, v.$.resetPasswordTitle)
1207
+ u.h2(
1208
+ t.class("bc-auth-form__title"),
1209
+ g(s?.resetPasswordTitle, k.$.resetPasswordTitle)
1215
1210
  ),
1216
- ko({
1211
+ _e({
1217
1212
  labels: {
1218
- backToSignInLink: t == null ? void 0 : t.backToSignInLink,
1219
- emailLabel: t == null ? void 0 : t.emailLabel,
1220
- resetPasswordButton: t == null ? void 0 : t.resetPasswordButton,
1221
- resetPasswordDescription: t == null ? void 0 : t.resetPasswordDescription
1213
+ backToSignInLink: s?.backToSignInLink,
1214
+ emailLabel: s?.emailLabel,
1215
+ resetPasswordButton: s?.resetPasswordButton,
1216
+ resetPasswordDescription: s?.resetPasswordDescription
1222
1217
  },
1223
- onResetPassword: u
1218
+ onResetPassword: r
1224
1219
  }),
1225
- q(n.class("bc-auth-form__footer"), z())
1220
+ q(t.class("bc-auth-form__footer"), C())
1226
1221
  )
1227
1222
  }),
1228
1223
  ...h
1229
1224
  );
1230
1225
  });
1231
1226
  }
1232
- function pe(o) {
1233
- return po(
1227
+ function po(e) {
1228
+ return de(
1234
1229
  {
1235
1230
  size: "sm",
1236
1231
  dismissable: !0,
1237
1232
  showCloseButton: !0
1238
1233
  },
1239
- (e, r) => o(
1240
- (a) => e({
1241
- body: bo({ showContainer: !1, ...a }),
1242
- header: S(
1234
+ (o, i) => e(
1235
+ (l) => o({
1236
+ body: ke({ showContainer: !1, ...l }),
1237
+ header: P(
1243
1238
  x,
1244
- (c) => g(a.modalTitle, c.$.authenticationTitle)
1239
+ (c) => g(l.modalTitle, c.$.authenticationTitle)
1245
1240
  )
1246
1241
  })
1247
1242
  )
1248
1243
  );
1249
1244
  }
1250
- function oo({
1251
- labels: o,
1252
- className: e
1245
+ function ee({
1246
+ labels: e,
1247
+ className: o
1253
1248
  } = {}) {
1254
- return m.div(
1255
- n.class("bc-auth-divider"),
1256
- n.class(e),
1257
- m.div(n.class("bc-auth-divider__line")),
1258
- S(
1249
+ return u.div(
1250
+ t.class("bc-auth-divider"),
1251
+ t.class(o),
1252
+ u.div(t.class("bc-auth-divider__line")),
1253
+ P(
1259
1254
  x,
1260
- (r) => m.span(
1261
- n.class("bc-auth-divider__text"),
1262
- g(o == null ? void 0 : o.text, r.$.orDivider)
1255
+ (i) => u.span(
1256
+ t.class("bc-auth-divider__text"),
1257
+ g(e?.text, i.$.orDivider)
1263
1258
  )
1264
1259
  ),
1265
- m.div(n.class("bc-auth-divider__line"))
1260
+ u.div(t.class("bc-auth-divider__line"))
1266
1261
  );
1267
1262
  }
1268
1263
  export {
1269
- me as AmazonLoginButton,
1270
- Mo as AppleLoginButton,
1271
- bo as AuthContainer,
1272
- oo as AuthDivider,
1273
- pe as AuthModal,
1274
- Zo as DiscordLoginButton,
1275
- se as EpicLoginButton,
1276
- Ho as FacebookLoginButton,
1277
- Eo as GitHubLoginButton,
1278
- No as GoogleLoginButton,
1279
- Ko as InstagramLoginButton,
1280
- Jo as LinkedInLoginButton,
1281
- Yo as MicrosoftLoginButton,
1282
- Ro as PasswordStrengthBar,
1283
- _o as PasswordStrengthIndicator,
1284
- Wo as PasswordStrengthText,
1285
- de as PayPalLoginButton,
1286
- te as PinterestLoginButton,
1287
- ae as PlayStationLoginButton,
1288
- ee as RedditLoginButton,
1289
- ko as ResetPasswordForm,
1290
- wo as SignInForm,
1291
- Lo as SignUpForm,
1292
- oe as SnapchatLoginButton,
1264
+ lo as AmazonLoginButton,
1265
+ We as AppleLoginButton,
1266
+ ke as AuthContainer,
1267
+ ee as AuthDivider,
1268
+ po as AuthModal,
1269
+ Ye as DiscordLoginButton,
1270
+ ao as EpicLoginButton,
1271
+ Ne as FacebookLoginButton,
1272
+ Re as GitHubLoginButton,
1273
+ Ge as GoogleLoginButton,
1274
+ Je as InstagramLoginButton,
1275
+ Ze as LinkedInLoginButton,
1276
+ Xe as MicrosoftLoginButton,
1277
+ Me as PasswordStrengthBar,
1278
+ be as PasswordStrengthIndicator,
1279
+ De as PasswordStrengthText,
1280
+ mo as PayPalLoginButton,
1281
+ oo as PinterestLoginButton,
1282
+ no as PlayStationLoginButton,
1283
+ eo as RedditLoginButton,
1284
+ _e as ResetPasswordForm,
1285
+ fe as SignInForm,
1286
+ we as SignUpForm,
1287
+ Qe as SnapchatLoginButton,
1293
1288
  p as SocialLoginButton,
1294
- vo as SocialLoginButtons,
1289
+ Le as SocialLoginButtons,
1295
1290
  Q as SocialProviders,
1296
- re as SteamLoginButton,
1297
- Qo as TiktokLoginButton,
1298
- ne as TwitchLoginButton,
1299
- Xo as TwitterLoginButton,
1300
- ue as WeChatLoginButton,
1301
- ce as WhatsAppLoginButton,
1302
- jo as XLoginButtin,
1303
- ie as XboxLoginButton,
1304
- le as YahooLoginButton,
1305
- Fo as authSchemas,
1291
+ so as SteamLoginButton,
1292
+ Ke as TiktokLoginButton,
1293
+ to as TwitchLoginButton,
1294
+ je as TwitterLoginButton,
1295
+ co as WeChatLoginButton,
1296
+ io as WhatsAppLoginButton,
1297
+ He as XLoginButtin,
1298
+ ro as XboxLoginButton,
1299
+ uo as YahooLoginButton,
1300
+ Oe as authSchemas,
1306
1301
  Z as calculatePasswordStrength,
1307
1302
  j as createPasswordSchema,
1308
1303
  X as createSignInSchema,
1309
1304
  Y as createSignUpSchema,
1310
- Ao as createSocialLoginUrl,
1305
+ Te as createSocialLoginUrl,
1311
1306
  B as defaultPasswordRules,
1312
- Oo as defaultSignInSchema,
1313
- Vo as defaultSignUpSchema,
1314
- F as emailSchema,
1315
- Co as formatAuthError,
1316
- go as formatProviderName,
1317
- Io as formatSocialLoginText,
1318
- fo as generateRandomString,
1319
- $o as getProviderColor,
1320
- Bo as getProviderIcon,
1321
- Uo as isBrowser,
1322
- To as isValidEmail,
1323
- zo as openSocialLoginPopup,
1324
- M as providerInfo,
1307
+ Ee as defaultSignInSchema,
1308
+ Ue as defaultSignUpSchema,
1309
+ V as emailSchema,
1310
+ Ce as formatAuthError,
1311
+ he as formatProviderName,
1312
+ $e as formatSocialLoginText,
1313
+ ge as generateRandomString,
1314
+ Be as getProviderColor,
1315
+ qe as getProviderIcon,
1316
+ ze as isBrowser,
1317
+ Ie as isValidEmail,
1318
+ Ae as openSocialLoginPopup,
1319
+ N as providerInfo,
1325
1320
  H as requestToControllerValidation,
1326
- to as resetPasswordSchema,
1321
+ te as resetPasswordSchema,
1327
1322
  d as socialProviderInfo,
1328
- no as useAuthEmailProp,
1329
- Do as validateEmail,
1330
- Go as validatePassword
1323
+ se as useAuthEmailProp,
1324
+ Ve as validateEmail,
1325
+ Fe as validatePassword
1331
1326
  };