@tempots/beatui 1.2.0 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,15 @@
1
- import { localStorageProp as le, prop as U, Use as q, html as l, attr as t, on as z, When as _, coalesce as g, Ensure as W, computedOf as b, bind as me, ForEach as ue, Value as oe, OneOfValue as pe, Fragment as R } from "@tempots/dom";
2
- import { S as T } from "./stack-BLMteGTn.js";
3
- import { t as de, u as G, a as ne, b as A } from "./use-form-D_TJyZhP.js";
4
- import { o as H, b as F, s as C, M as he } from "./modal-YKqlh4Dk.js";
5
- import { Validation as te } from "@tempots/std";
6
- import { d as f, A as x } from "./translations-CxDUnbXn.js";
7
- import { P as O, E as j, N as X } from "./notice-Du3tWJTW.js";
8
- import { B as M } from "./input-container-CO3DNqpp.js";
9
- import { T as ge } from "./text-input-BAn02BzO.js";
10
- import { I as fe } from "./translations-DT5QQ4WO.js";
11
- import { classes as be } from "@tempots/ui";
12
- const Y = {
1
+ import { localStorageProp as pe, prop as M, Use as x, html as m, attr as t, on as C, When as _, coalesce as g, Ensure as j, computedOf as b, bind as de, ForEach as he, Value as se, OneOfValue as ge, Fragment as U } from "@tempots/dom";
2
+ import { S as $ } from "./stack-BLMteGTn.js";
3
+ import { t as fe, u as X, a as ce, b as z } from "./use-form-D_TJyZhP.js";
4
+ import { o as Y, b as G, s as A, M as be } from "./modal-YKqlh4Dk.js";
5
+ import { Validation as ne } from "@tempots/std";
6
+ import { d as f, A as B } from "./translations-CxDUnbXn.js";
7
+ import { P as H, E as Z, N as J } from "./notice-Du3tWJTW.js";
8
+ import { B as N } from "./input-container-CO3DNqpp.js";
9
+ import { T as we } from "./text-input-BAn02BzO.js";
10
+ import { I as _e } from "./translations-DT5QQ4WO.js";
11
+ import { classes as Le } from "@tempots/ui";
12
+ const K = {
13
13
  google: { name: "Google", icon: "logos:google-icon", color: "#4285f4" },
14
14
  github: { name: "GitHub", icon: "logos:github-icon", color: "#333" },
15
15
  apple: { name: "Apple", icon: "logos:apple", color: "#000" },
@@ -55,36 +55,36 @@ const Y = {
55
55
  paypal: { name: "PayPal", icon: "logos:paypal", color: "#0070ba" },
56
56
  x: { name: "X", icon: "simple-icons:x", color: "#000" }
57
57
  };
58
- function we(e) {
59
- return Y[e]?.name || e;
58
+ function ve(e) {
59
+ return K[e]?.name || e;
60
60
  }
61
- function Ue(e) {
62
- return Y[e]?.icon || "mdi:account";
61
+ function Ve(e) {
62
+ return K[e]?.icon || "mdi:account";
63
63
  }
64
- function Me(e) {
65
- return Y[e]?.color || "#666";
64
+ function De(e) {
65
+ return K[e]?.color || "#666";
66
66
  }
67
- function Ne(e, o = "Continue with {provider}") {
68
- return o.replace("{provider}", we(e));
67
+ function Fe(e, o = "Continue with {provider}") {
68
+ return o.replace("{provider}", ve(e));
69
69
  }
70
- const $ = {
70
+ const T = {
71
71
  minLength: 8,
72
72
  requireUppercase: !0,
73
73
  requireLowercase: !0,
74
74
  requireNumbers: !0,
75
75
  requireSymbols: !1
76
76
  };
77
- function Ve(e) {
77
+ function Oe(e) {
78
78
  return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e);
79
79
  }
80
- function _e(e = 32) {
80
+ function ke(e = 32) {
81
81
  const o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
82
- let s = "";
82
+ let n = "";
83
83
  for (let a = 0; a < e; a++)
84
- s += o.charAt(Math.floor(Math.random() * o.length));
85
- return s;
84
+ n += o.charAt(Math.floor(Math.random() * o.length));
85
+ return n;
86
86
  }
87
- function De(e, o, s, a = [], c = {}) {
87
+ function We(e, o, n, a = [], c = {}) {
88
88
  const r = {
89
89
  google: "https://accounts.google.com/oauth/authorize",
90
90
  github: "https://github.com/login/oauth/authorize",
@@ -135,20 +135,20 @@ function De(e, o, s, a = [], c = {}) {
135
135
  yahoo: ["openid", "email", "profile"],
136
136
  paypal: ["openid", "email", "profile"],
137
137
  x: ["openid", "email", "profile"]
138
- }, n = r[e];
139
- if (!n)
138
+ }, s = r[e];
139
+ if (!s)
140
140
  throw new Error(`Unsupported provider: ${e}`);
141
- const m = a.length > 0 ? a : u[e], i = _e(), h = new URLSearchParams({
141
+ const l = a.length > 0 ? a : u[e], i = ke(), h = new URLSearchParams({
142
142
  client_id: o,
143
- redirect_uri: s,
144
- scope: m.join(" "),
143
+ redirect_uri: n,
144
+ scope: l.join(" "),
145
145
  state: i,
146
146
  response_type: "code",
147
147
  ...c
148
148
  });
149
- return `${n}?${h.toString()}`;
149
+ return `${s}?${h.toString()}`;
150
150
  }
151
- function Fe(e, o, s, a) {
151
+ function Ge(e, o, n, a) {
152
152
  const c = window.open(
153
153
  e,
154
154
  `${o}_login`,
@@ -160,111 +160,111 @@ function Fe(e, o, s, a) {
160
160
  }
161
161
  const r = setInterval(() => {
162
162
  c.closed && (clearInterval(r), a?.(new Error("Login cancelled")));
163
- }, 1e3), u = (n) => {
164
- n.origin === window.location.origin && (n.data.type === "SOCIAL_LOGIN_SUCCESS" ? (clearInterval(r), c.close(), window.removeEventListener("message", u), s?.(n.data.result)) : n.data.type === "SOCIAL_LOGIN_ERROR" && (clearInterval(r), c.close(), window.removeEventListener("message", u), a?.(new Error(n.data.error))));
163
+ }, 1e3), u = (s) => {
164
+ s.origin === window.location.origin && (s.data.type === "SOCIAL_LOGIN_SUCCESS" ? (clearInterval(r), c.close(), window.removeEventListener("message", u), n?.(s.data.result)) : s.data.type === "SOCIAL_LOGIN_ERROR" && (clearInterval(r), c.close(), window.removeEventListener("message", u), a?.(new Error(s.data.error))));
165
165
  };
166
166
  window.addEventListener("message", u);
167
167
  }
168
- function Oe(e) {
168
+ function He(e) {
169
169
  return e instanceof Error ? e.message : typeof e == "string" ? e : e && typeof e == "object" && "message" in e ? String(e.message) : "An unexpected error occurred";
170
170
  }
171
- function We() {
171
+ function je() {
172
172
  return typeof window < "u" && typeof document < "u";
173
173
  }
174
- function Z({
174
+ function Q({
175
175
  task: e,
176
176
  message: o,
177
- onStart: s,
177
+ onStart: n,
178
178
  onEnd: a
179
179
  }) {
180
180
  return async (c) => {
181
- s?.();
182
- const r = await de({
181
+ n?.();
182
+ const r = await fe({
183
183
  task: e != null ? () => e(c) : async () => null,
184
184
  errorMessage: o,
185
185
  errorPath: ["root"],
186
- validation: (u) => u != null ? te.invalid({ message: u }) : te.valid
186
+ validation: (u) => u != null ? ne.invalid({ message: u }) : ne.valid
187
187
  });
188
188
  return a?.(), r;
189
189
  };
190
190
  }
191
- function J(e = $, o) {
192
- const s = o ?? f;
193
- let a = C();
191
+ function ee(e = T, o) {
192
+ const n = o ?? f;
193
+ let a = A();
194
194
  return e.minLength && (a = a.min(
195
195
  e.minLength,
196
- (s.passwordMinLength ?? f.passwordMinLength)(
196
+ (n.passwordMinLength ?? f.passwordMinLength)(
197
197
  e.minLength
198
198
  )
199
199
  )), e.requireUppercase && (a = a.regex(
200
200
  /[A-Z]/,
201
- s.passwordRequireUppercase ?? f.passwordRequireUppercase
201
+ n.passwordRequireUppercase ?? f.passwordRequireUppercase
202
202
  )), e.requireLowercase && (a = a.regex(
203
203
  /[a-z]/,
204
- s.passwordRequireLowercase ?? f.passwordRequireLowercase
204
+ n.passwordRequireLowercase ?? f.passwordRequireLowercase
205
205
  )), e.requireNumbers && (a = a.regex(
206
206
  /[0-9]/,
207
- s.passwordRequireNumber ?? f.passwordRequireNumber
207
+ n.passwordRequireNumber ?? f.passwordRequireNumber
208
208
  )), e.requireSymbols && (a = a.regex(
209
209
  /[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?]/,
210
- s.passwordRequireSpecialChar ?? f.passwordRequireSpecialChar
210
+ n.passwordRequireSpecialChar ?? f.passwordRequireSpecialChar
211
211
  )), e.customValidation && (a = a.refine((c) => e.customValidation(c))), a;
212
212
  }
213
- function N(e) {
213
+ function V(e) {
214
214
  const o = e ?? f;
215
- return C().min(1, o.emailRequired ?? f.emailRequired).email(o.invalidEmail ?? f.invalidEmail);
215
+ return A().min(1, o.emailRequired ?? f.emailRequired).email(o.invalidEmail ?? f.invalidEmail);
216
216
  }
217
- const re = N();
218
- function K(e, o) {
219
- const s = o ?? f, a = e ? J(e, o) : C().refine(
220
- (c) => c.length > 0 ? null : s.passwordRequired ?? f.passwordRequired
217
+ const le = V();
218
+ function oe(e, o) {
219
+ const n = o ?? f, a = e ? ee(e, o) : A().refine(
220
+ (c) => c.length > 0 ? null : n.passwordRequired ?? f.passwordRequired
221
221
  );
222
- return H({
223
- email: N(o),
222
+ return Y({
223
+ email: V(o),
224
224
  password: a,
225
- rememberMe: F().default(!1)
225
+ rememberMe: G().default(!1)
226
226
  }).schema();
227
227
  }
228
- function Q(e = $, o, s) {
229
- const a = s ?? f, c = J(e, s), r = o?.showNameField !== !1, u = o?.showConfirmPassword !== !1, n = o?.showAcceptTermsAndConditions !== !1, m = {
230
- name: r ? C().min(1, a.nameRequired ?? f.nameRequired).optional() : C().optional(),
231
- email: N(s),
228
+ function te(e = T, o, n) {
229
+ const a = n ?? f, c = ee(e, n), r = o?.showNameField !== !1, u = o?.showConfirmPassword !== !1, s = o?.showAcceptTermsAndConditions !== !1, l = {
230
+ name: r ? A().min(1, a.nameRequired ?? f.nameRequired).optional() : A().optional(),
231
+ email: V(n),
232
232
  password: c,
233
233
  // Always require confirmPassword as string to match SignUpData interface
234
234
  // When not shown, it should accept any value (including empty string)
235
- confirmPassword: u ? C().min(
235
+ confirmPassword: u ? A().min(
236
236
  1,
237
237
  a.confirmPasswordRequired ?? f.confirmPasswordRequired
238
- ) : C(),
238
+ ) : A(),
239
239
  // Accept any string value when not shown
240
- acceptTerms: n ? F().refine(
240
+ acceptTerms: s ? G().refine(
241
241
  (h) => h === !0,
242
242
  a.acceptTermsRequired ?? f.acceptTermsRequired
243
- ) : F().default(!0)
243
+ ) : G().default(!0)
244
244
  // Default to true when not shown
245
- }, i = H(m);
245
+ }, i = Y(l);
246
246
  return u ? i.refine(
247
247
  (h) => h.password === h.confirmPassword ? null : a.passwordsDoNotMatch ?? f.passwordsDoNotMatch,
248
248
  { path: ["confirmPassword"] }
249
249
  ).schema() : i.schema();
250
250
  }
251
- const ie = H({
252
- email: re
253
- }).schema(), Ge = K(), He = Q(), je = {
254
- signIn: K,
255
- signUp: Q,
256
- resetPassword: () => ie
251
+ const me = Y({
252
+ email: le
253
+ }).schema(), Xe = oe(), Ye = te(), Ze = {
254
+ signIn: oe,
255
+ signUp: te,
256
+ resetPassword: () => me
257
257
  };
258
- function Xe(e, o) {
259
- const s = o ?? f, c = (o ? N(o) : re).validate(e);
260
- return c.success ? null : c.errors[0]?.message || (s.invalidEmailAddress ?? f.invalidEmailAddress);
258
+ function Je(e, o) {
259
+ const n = o ?? f, c = (o ? V(o) : le).validate(e);
260
+ return c.success ? null : c.errors[0]?.message || (n.invalidEmailAddress ?? f.invalidEmailAddress);
261
261
  }
262
- function Ye(e, o = $, s) {
263
- const a = s ?? f, r = J(o, s).validate(e);
262
+ function Ke(e, o = T, n) {
263
+ const a = n ?? f, r = ee(o, n).validate(e);
264
264
  return r.success ? null : r.errors[0]?.message || (a.invalidPassword ?? f.invalidPassword);
265
265
  }
266
- function ee(e, o = $) {
267
- const s = {
266
+ function ae(e, o = T) {
267
+ const n = {
268
268
  length: e.length >= (o.minLength || 8),
269
269
  uppercase: /[A-Z]/.test(e),
270
270
  lowercase: /[a-z]/.test(e),
@@ -281,89 +281,89 @@ function ee(e, o = $) {
281
281
  o.requireSymbols,
282
282
  !!o.customValidation
283
283
  ].filter(Boolean).length, c = [
284
- s.length,
285
- o.requireUppercase ? s.uppercase : null,
286
- o.requireLowercase ? s.lowercase : null,
287
- o.requireNumbers ? s.numbers : null,
288
- o.requireSymbols ? s.symbols : null,
289
- o.customValidation ? s.custom : null
290
- ].filter((n) => n === !0).length, r = a > 0 ? Math.round(c / a * 100) : 0;
284
+ n.length,
285
+ o.requireUppercase ? n.uppercase : null,
286
+ o.requireLowercase ? n.lowercase : null,
287
+ o.requireNumbers ? n.numbers : null,
288
+ o.requireSymbols ? n.symbols : null,
289
+ o.customValidation ? n.custom : null
290
+ ].filter((s) => s === !0).length, r = a > 0 ? Math.round(c / a * 100) : 0;
291
291
  let u;
292
- return r < 40 ? u = "weak" : r < 60 ? u = "fair" : r < 80 ? u = "good" : u = "strong", { strength: u, score: r, checks: s };
292
+ return r < 40 ? u = "weak" : r < 60 ? u = "fair" : r < 80 ? u = "good" : u = "strong", { strength: u, score: r, checks: n };
293
293
  }
294
- const ce = () => le({
294
+ const ue = () => pe({
295
295
  key: "bui_auth_email",
296
296
  defaultValue: null
297
297
  });
298
- function Le({
298
+ function ye({
299
299
  onSignIn: e,
300
300
  passwordRules: o,
301
- labels: s,
301
+ labels: n,
302
302
  showRememberMe: a
303
303
  }) {
304
- const c = U(!1), r = ce(), u = K(o), n = G({
304
+ const c = M(!1), r = ue(), u = oe(o), s = X({
305
305
  schema: u,
306
- onSubmit: Z({
306
+ onSubmit: Q({
307
307
  task: e,
308
- message: "Reset password failed",
308
+ message: "Sign in failed",
309
309
  onStart: () => {
310
- c.set(!0), n.controller.disable();
310
+ c.set(!0), s.controller.disable();
311
311
  },
312
312
  onEnd: () => {
313
- c.set(!1), n.controller.enable();
313
+ c.set(!1), s.controller.enable();
314
314
  }
315
315
  }),
316
316
  initialValue: {
317
317
  email: "",
318
318
  password: ""
319
319
  }
320
- }), { controller: m, submit: i } = n;
321
- c.on(m.setDisabled);
322
- const h = m.field("email"), L = m.field("password");
320
+ }), { controller: l, submit: i } = s;
321
+ c.on(l.setDisabled);
322
+ const h = l.field("email"), L = l.field("password");
323
323
  return r.on((v) => {
324
324
  v != null && h.change(v);
325
325
  }), h.signal.on((v) => {
326
326
  r.value != null && (r.value = v);
327
- }), q(
328
- x,
327
+ }), x(
328
+ B,
329
329
  (v) => (
330
330
  // Email/Password form
331
- l.form(
331
+ m.form(
332
332
  t.class("bc-auth-form__form"),
333
- z.submit(i),
334
- T(
333
+ C.submit(i),
334
+ $(
335
335
  t.class("bc-auth-form__fields"),
336
- W(
337
- m.error,
338
- (k) => X(
336
+ j(
337
+ l.error,
338
+ (y) => J(
339
339
  { variant: "danger", tone: "prominent", role: "alert" },
340
- l.div(k)
340
+ m.div(y)
341
341
  )
342
342
  ),
343
343
  // Email field
344
- A(j, {
344
+ z(Z, {
345
345
  controller: h,
346
- label: g(s?.emailLabel, v.$.emailLabel)
346
+ label: g(n?.emailLabel, v.$.emailLabel)
347
347
  }),
348
348
  // Password field
349
- A(O, {
349
+ z(H, {
350
350
  controller: L,
351
- label: g(s?.passwordLabel, v.$.passwordLabel)
351
+ label: g(n?.passwordLabel, v.$.passwordLabel)
352
352
  }),
353
353
  // Remember me checkbox
354
354
  _(
355
355
  a ?? !0,
356
- () => l.div(
356
+ () => m.div(
357
357
  t.class("bc-auth-form__remember-me"),
358
- l.label(
358
+ m.label(
359
359
  t.class("bc-auth-form__checkbox-label"),
360
- ne({
361
- value: r.map((k) => k != null),
362
- after: l.span(
363
- g(s?.rememberMeLabel, v.$.rememberMeLabel)
360
+ ce({
361
+ value: r.map((y) => y != null),
362
+ after: m.span(
363
+ g(n?.rememberMeLabel, v.$.rememberMeLabel)
364
364
  ),
365
- onChange: (k) => {
366
- k ? r.value = h.signal.value ?? "" : r.value = null;
365
+ onChange: (y) => {
366
+ y ? r.value = h.signal.value ?? "" : r.value = null;
367
367
  }
368
368
  })
369
369
  )
@@ -371,25 +371,25 @@ function Le({
371
371
  )
372
372
  ),
373
373
  // Submit button
374
- M(
374
+ N(
375
375
  {
376
376
  type: "submit",
377
377
  variant: "filled",
378
378
  color: "primary",
379
379
  loading: c,
380
- disabled: m.disabledOrHasErrors
380
+ disabled: l.disabledOrHasErrors
381
381
  },
382
382
  t.class("bc-auth-form__submit"),
383
- g(s?.signInButton, v.$.signInButton)
383
+ g(n?.signInButton, v.$.signInButton)
384
384
  )
385
385
  )
386
386
  )
387
387
  );
388
388
  }
389
- function ve({
389
+ function Se({
390
390
  password: e,
391
- rules: o = $,
392
- showLabel: s = !0,
391
+ rules: o = T,
392
+ showLabel: n = !0,
393
393
  className: a
394
394
  }) {
395
395
  const c = b(e)((i) => !i || i.length === 0 ? {
@@ -403,7 +403,7 @@ function ve({
403
403
  symbols: !1,
404
404
  custom: !1
405
405
  }
406
- } : ee(i, o)), r = c.map((i) => i.strength), u = c.map((i) => i.score), n = c.map((i) => i.checks), m = b(
406
+ } : ae(i, o)), r = c.map((i) => i.strength), u = c.map((i) => i.score), s = c.map((i) => i.checks), l = b(
407
407
  r,
408
408
  a
409
409
  )((i, h) => [
@@ -411,22 +411,22 @@ function ve({
411
411
  `bc-password-strength--${i}`,
412
412
  h
413
413
  ].filter(Boolean).join(" "));
414
- return l.div(
415
- t.class(m),
414
+ return m.div(
415
+ t.class(l),
416
416
  // Strength bar
417
- l.div(
417
+ m.div(
418
418
  t.class("bc-password-strength__bar"),
419
- l.div(
419
+ m.div(
420
420
  t.class("bc-password-strength__fill"),
421
421
  t.style(u.map((i) => `width: ${i}%`))
422
422
  )
423
423
  ),
424
424
  // Strength label (optional)
425
425
  _(
426
- s,
427
- () => q(
428
- x,
429
- (i) => l.div(
426
+ n,
427
+ () => x(
428
+ B,
429
+ (i) => m.div(
430
430
  t.class("bc-password-strength__label"),
431
431
  b(
432
432
  r,
@@ -449,23 +449,23 @@ function ve({
449
449
  )
450
450
  ),
451
451
  // Requirements checklist
452
- l.div(
452
+ m.div(
453
453
  t.class("bc-password-strength__requirements"),
454
454
  // Length requirement
455
455
  _(
456
456
  o.minLength !== void 0,
457
- () => l.div(
457
+ () => m.div(
458
458
  t.class("bc-password-strength__requirement"),
459
459
  t.class(
460
- b(n)(
460
+ b(s)(
461
461
  (i) => i.length ? "bc-password-strength__requirement--met" : ""
462
462
  )
463
463
  ),
464
- l.span(
464
+ m.span(
465
465
  t.class("bc-password-strength__requirement-icon"),
466
- b(n)((i) => i.length ? "✓" : "○")
466
+ b(s)((i) => i.length ? "✓" : "○")
467
467
  ),
468
- l.span(
468
+ m.span(
469
469
  t.class("bc-password-strength__requirement-text"),
470
470
  `At least ${o.minLength} characters`
471
471
  )
@@ -474,18 +474,18 @@ function ve({
474
474
  // Uppercase requirement
475
475
  _(
476
476
  o.requireUppercase === !0,
477
- () => l.div(
477
+ () => m.div(
478
478
  t.class("bc-password-strength__requirement"),
479
479
  t.class(
480
- b(n)(
480
+ b(s)(
481
481
  (i) => i.uppercase ? "bc-password-strength__requirement--met" : ""
482
482
  )
483
483
  ),
484
- l.span(
484
+ m.span(
485
485
  t.class("bc-password-strength__requirement-icon"),
486
- b(n)((i) => i.uppercase ? "✓" : "○")
486
+ b(s)((i) => i.uppercase ? "✓" : "○")
487
487
  ),
488
- l.span(
488
+ m.span(
489
489
  t.class("bc-password-strength__requirement-text"),
490
490
  "One uppercase letter"
491
491
  )
@@ -494,18 +494,18 @@ function ve({
494
494
  // Lowercase requirement
495
495
  _(
496
496
  o.requireLowercase === !0,
497
- () => l.div(
497
+ () => m.div(
498
498
  t.class("bc-password-strength__requirement"),
499
499
  t.class(
500
- b(n)(
500
+ b(s)(
501
501
  (i) => i.lowercase ? "bc-password-strength__requirement--met" : ""
502
502
  )
503
503
  ),
504
- l.span(
504
+ m.span(
505
505
  t.class("bc-password-strength__requirement-icon"),
506
- b(n)((i) => i.lowercase ? "✓" : "○")
506
+ b(s)((i) => i.lowercase ? "✓" : "○")
507
507
  ),
508
- l.span(
508
+ m.span(
509
509
  t.class("bc-password-strength__requirement-text"),
510
510
  "One lowercase letter"
511
511
  )
@@ -514,18 +514,18 @@ function ve({
514
514
  // Numbers requirement
515
515
  _(
516
516
  o.requireNumbers === !0,
517
- () => l.div(
517
+ () => m.div(
518
518
  t.class("bc-password-strength__requirement"),
519
519
  t.class(
520
- b(n)(
520
+ b(s)(
521
521
  (i) => i.numbers ? "bc-password-strength__requirement--met" : ""
522
522
  )
523
523
  ),
524
- l.span(
524
+ m.span(
525
525
  t.class("bc-password-strength__requirement-icon"),
526
- b(n)((i) => i.numbers ? "✓" : "○")
526
+ b(s)((i) => i.numbers ? "✓" : "○")
527
527
  ),
528
- l.span(
528
+ m.span(
529
529
  t.class("bc-password-strength__requirement-text"),
530
530
  "One number"
531
531
  )
@@ -534,18 +534,18 @@ function ve({
534
534
  // Symbols requirement
535
535
  _(
536
536
  o.requireSymbols === !0,
537
- () => l.div(
537
+ () => m.div(
538
538
  t.class("bc-password-strength__requirement"),
539
539
  t.class(
540
- b(n)(
540
+ b(s)(
541
541
  (i) => i.symbols ? "bc-password-strength__requirement--met" : ""
542
542
  )
543
543
  ),
544
- l.span(
544
+ m.span(
545
545
  t.class("bc-password-strength__requirement-icon"),
546
- b(n)((i) => i.symbols ? "✓" : "○")
546
+ b(s)((i) => i.symbols ? "✓" : "○")
547
547
  ),
548
- l.span(
548
+ m.span(
549
549
  t.class("bc-password-strength__requirement-text"),
550
550
  "One special character"
551
551
  )
@@ -554,191 +554,191 @@ function ve({
554
554
  )
555
555
  );
556
556
  }
557
- function Ze({
557
+ function Qe({
558
558
  password: e,
559
- rules: o = $,
560
- className: s
559
+ rules: o = T,
560
+ className: n
561
561
  }) {
562
- const a = b(e)((n) => !n || n.length === 0 ? { strength: "weak", score: 0 } : ee(n, o)), c = a.map((n) => n.strength), r = a.map((n) => n.score), u = b(
562
+ const a = b(e)((s) => !s || s.length === 0 ? { strength: "weak", score: 0 } : ae(s, o)), c = a.map((s) => s.strength), r = a.map((s) => s.score), u = b(
563
563
  c,
564
- s
565
- )((n, m) => [
564
+ n
565
+ )((s, l) => [
566
566
  "bc-password-strength-bar",
567
- `bc-password-strength-bar--${n}`,
568
- m
567
+ `bc-password-strength-bar--${s}`,
568
+ l
569
569
  ].filter(Boolean).join(" "));
570
- return l.div(
570
+ return m.div(
571
571
  t.class(u),
572
- l.div(
572
+ m.div(
573
573
  t.class("bc-password-strength-bar__fill"),
574
- t.style(r.map((n) => `width: ${n}%`))
574
+ t.style(r.map((s) => `width: ${s}%`))
575
575
  )
576
576
  );
577
577
  }
578
- function Je({
578
+ function eo({
579
579
  password: e,
580
- rules: o = $,
581
- className: s
580
+ rules: o = T,
581
+ className: n
582
582
  }) {
583
- const a = b(e)((r) => !r || r.length === 0 ? "weak" : ee(r, o).strength), c = b(
583
+ const a = b(e)((r) => !r || r.length === 0 ? "weak" : ae(r, o).strength), c = b(
584
584
  a,
585
- s
585
+ n
586
586
  )((r, u) => [
587
587
  "bc-password-strength-text",
588
588
  `bc-password-strength-text--${r}`,
589
589
  u
590
590
  ].filter(Boolean).join(" "));
591
- return q(
592
- x,
593
- (r) => l.span(
591
+ return x(
592
+ B,
593
+ (r) => m.span(
594
594
  t.class(c),
595
595
  b(
596
596
  a,
597
597
  r
598
- )((u, n) => {
598
+ )((u, s) => {
599
599
  switch (u) {
600
600
  case "weak":
601
- return n.passwordStrengthWeak;
601
+ return s.passwordStrengthWeak;
602
602
  case "fair":
603
- return n.passwordStrengthFair;
603
+ return s.passwordStrengthFair;
604
604
  case "good":
605
- return n.passwordStrengthGood;
605
+ return s.passwordStrengthGood;
606
606
  case "strong":
607
- return n.passwordStrengthStrong;
607
+ return s.passwordStrengthStrong;
608
608
  default:
609
- return n.passwordStrengthWeak;
609
+ return s.passwordStrengthWeak;
610
610
  }
611
611
  })
612
612
  )
613
613
  );
614
614
  }
615
- function ke({
615
+ function qe({
616
616
  passwordRules: e,
617
617
  labels: o,
618
- initialEmail: s,
618
+ initialEmail: n,
619
619
  initialName: a,
620
620
  showPasswordStrength: c,
621
621
  onSignUp: r,
622
622
  showNameField: u,
623
- showConfirmPassword: n,
624
- showAcceptTermsAndConditions: m,
623
+ showConfirmPassword: s,
624
+ showAcceptTermsAndConditions: l,
625
625
  termsAndConditions: i
626
626
  }) {
627
- const h = U(!1), L = e || $, v = Q(L, {
627
+ const h = M(!1), L = e || T, v = typeof s == "boolean" ? s : s != null ? s.value : !1, y = typeof l == "boolean" ? l : l != null ? l.value : !1, D = te(L, {
628
628
  showNameField: u !== !1,
629
- showConfirmPassword: n !== !1,
630
- showAcceptTermsAndConditions: m !== !1
631
- }), k = G({
632
- schema: v,
633
- onSubmit: Z({
634
- task: r != null ? (w) => r({
635
- email: w.email,
636
- password: w.password,
637
- name: w.name,
638
- acceptTerms: w.acceptTerms
629
+ showConfirmPassword: v,
630
+ showAcceptTermsAndConditions: y
631
+ }), E = X({
632
+ schema: D,
633
+ onSubmit: Q({
634
+ task: r != null ? (k) => r({
635
+ email: k.email,
636
+ password: k.password,
637
+ name: k.name,
638
+ acceptTerms: k.acceptTerms
639
639
  }) : void 0,
640
- message: "Reset password failed",
640
+ message: "Sign up failed",
641
641
  onStart: () => {
642
- h.set(!0), k.controller.disable();
642
+ h.set(!0), E.controller.disable();
643
643
  },
644
644
  onEnd: () => {
645
- h.set(!1), k.controller.enable();
645
+ h.set(!1), E.controller.enable();
646
646
  }
647
647
  }),
648
648
  initialValue: {
649
649
  name: a ?? "",
650
- email: s ?? "",
650
+ email: n ?? "",
651
651
  password: "",
652
652
  confirmPassword: "",
653
653
  acceptTerms: !1
654
654
  }
655
- }), { controller: S, submit: V } = k;
655
+ }), { controller: S, submit: F } = E;
656
656
  h.on(S.setDisabled);
657
- const B = S.field("name"), P = S.field("email"), E = S.field("password"), D = S.field("confirmPassword"), I = S.field("acceptTerms");
658
- return q(
659
- x,
660
- (w) => (
657
+ const O = S.field("name"), W = S.field("email"), P = S.field("password"), q = S.field("confirmPassword"), I = S.field("acceptTerms");
658
+ return x(
659
+ B,
660
+ (k) => (
661
661
  // Registration form
662
- l.form(
662
+ m.form(
663
663
  t.class("bc-auth-form__form"),
664
- z.submit(V),
665
- T(
664
+ C.submit(F),
665
+ $(
666
666
  t.class("bc-auth-form__fields"),
667
- W(
667
+ j(
668
668
  S.error,
669
- (y) => X(
669
+ (w) => J(
670
670
  { variant: "danger", tone: "prominent", role: "alert" },
671
- l.div(y)
671
+ m.div(w)
672
672
  )
673
673
  ),
674
674
  // Name field (optional)
675
675
  _(
676
676
  u !== !1,
677
- () => A(ge, {
678
- controller: B.transform(
679
- (y) => y ?? "",
680
- (y) => y === "" ? void 0 : y
677
+ () => z(we, {
678
+ controller: O.transform(
679
+ (w) => w ?? "",
680
+ (w) => w === "" ? void 0 : w
681
681
  ),
682
- label: g(o?.nameLabel, w.$.nameLabel)
682
+ label: g(o?.nameLabel, k.$.nameLabel)
683
683
  })
684
684
  ),
685
685
  // Email field
686
- A(j, {
687
- controller: P,
688
- label: g(o?.emailLabel, w.$.emailLabel)
686
+ z(Z, {
687
+ controller: W,
688
+ label: g(o?.emailLabel, k.$.emailLabel)
689
689
  }),
690
690
  // Password field
691
- A(O, {
692
- controller: E,
693
- label: g(o?.passwordLabel, w.$.passwordLabel)
691
+ z(H, {
692
+ controller: P,
693
+ label: g(o?.passwordLabel, k.$.passwordLabel)
694
694
  }),
695
695
  // Password strength indicator
696
696
  _(
697
697
  c ?? !1,
698
- () => ve({
699
- password: E.signal,
698
+ () => Se({
699
+ password: P.signal,
700
700
  rules: L,
701
701
  showLabel: !0
702
702
  })
703
703
  ),
704
704
  // Confirm password field
705
705
  _(
706
- n ?? !1,
707
- () => A(O, {
708
- controller: D,
706
+ s ?? !1,
707
+ () => z(H, {
708
+ controller: q,
709
709
  label: g(
710
710
  o?.confirmPasswordLabel,
711
- w.$.confirmPasswordLabel
711
+ k.$.confirmPasswordLabel
712
712
  )
713
713
  })
714
714
  ),
715
715
  // Terms acceptance checkbox
716
716
  _(
717
- m ?? !1,
718
- () => l.div(
717
+ l ?? !1,
718
+ () => m.div(
719
719
  t.class("bc-auth-form__terms"),
720
- l.label(
720
+ m.label(
721
721
  t.class("bc-auth-form__checkbox-label"),
722
- ne({
723
- value: I.signal.map((y) => y ?? !1),
724
- onChange: (y) => I.change(y)
722
+ ce({
723
+ value: I.signal.map((w) => w ?? !1),
724
+ onChange: (w) => I.change(w)
725
725
  }),
726
- l.span(
727
- i || g(o?.acceptTermsLabel, w.$.acceptTermsLabel)
726
+ m.span(
727
+ i || g(o?.acceptTermsLabel, k.$.acceptTermsLabel)
728
728
  )
729
729
  ),
730
730
  _(
731
731
  I.errorVisible,
732
- () => l.div(
732
+ () => m.div(
733
733
  t.class("bc-auth-form__field-error"),
734
- I.error.map((y) => y || "")
734
+ I.error.map((w) => w || "")
735
735
  )
736
736
  )
737
737
  )
738
738
  )
739
739
  ),
740
740
  // Submit button
741
- M(
741
+ N(
742
742
  {
743
743
  type: "submit",
744
744
  variant: "filled",
@@ -747,19 +747,19 @@ function ke({
747
747
  disabled: S.disabledOrHasErrors
748
748
  },
749
749
  t.class("bc-auth-form__submit"),
750
- g(o?.signUpButton, w.$.signUpButton)
750
+ g(o?.signUpButton, k.$.signUpButton)
751
751
  )
752
752
  )
753
753
  )
754
754
  );
755
755
  }
756
- function ye({
756
+ function Pe({
757
757
  onResetPassword: e,
758
758
  labels: o = {}
759
759
  }) {
760
- const s = ce(), a = U(!1), c = G({
761
- schema: ie,
762
- onSubmit: Z({
760
+ const n = ue(), a = M(!1), c = X({
761
+ schema: me,
762
+ onSubmit: Q({
763
763
  task: e,
764
764
  message: "Reset password failed",
765
765
  onStart: () => {
@@ -774,38 +774,38 @@ function ye({
774
774
  }
775
775
  }), { controller: r, submit: u } = c;
776
776
  a.on(r.setDisabled);
777
- const n = r.field("email");
778
- return s.on((m) => {
779
- m != null && n.change(m);
780
- }), q(
781
- x,
782
- (m) => (
777
+ const s = r.field("email");
778
+ return n.on((l) => {
779
+ l != null && s.change(l);
780
+ }), x(
781
+ B,
782
+ (l) => (
783
783
  // Reset password form
784
- l.form(
784
+ m.form(
785
785
  t.class("bc-auth-form__form"),
786
- W(
786
+ j(
787
787
  r.error,
788
- (i) => X(
788
+ (i) => J(
789
789
  { variant: "danger", tone: "prominent", role: "alert" },
790
- l.div(i)
790
+ m.div(i)
791
791
  )
792
792
  ),
793
793
  // Description
794
- l.p(
794
+ m.p(
795
795
  t.class("bc-auth-form__description"),
796
- g(o?.resetPasswordDescription, m.$.resetPasswordDescription)
796
+ g(o?.resetPasswordDescription, l.$.resetPasswordDescription)
797
797
  ),
798
- z.submit(u),
799
- T(
798
+ C.submit(u),
799
+ $(
800
800
  t.class("bc-auth-form__fields"),
801
801
  // Email field
802
- A(j, {
803
- controller: n,
804
- label: g(o?.emailLabel, m.$.emailLabel)
802
+ z(Z, {
803
+ controller: s,
804
+ label: g(o?.emailLabel, l.$.emailLabel)
805
805
  })
806
806
  ),
807
807
  // Submit button
808
- M(
808
+ N(
809
809
  {
810
810
  loading: a,
811
811
  type: "submit",
@@ -814,7 +814,7 @@ function ye({
814
814
  disabled: r.disabledOrHasErrors
815
815
  },
816
816
  t.class("bc-auth-form__submit"),
817
- g(o?.resetPasswordButton, m.$.resetPasswordButton)
817
+ g(o?.resetPasswordButton, l.$.resetPasswordButton)
818
818
  )
819
819
  )
820
820
  )
@@ -823,18 +823,18 @@ function ye({
823
823
  function d({
824
824
  provider: e,
825
825
  onClick: o,
826
- size: s = "md",
826
+ size: n = "md",
827
827
  name: a,
828
828
  icon: c,
829
829
  color: r,
830
830
  flow: u,
831
- labels: n
831
+ labels: s
832
832
  }) {
833
- return M(
833
+ return N(
834
834
  {
835
835
  type: "button",
836
836
  variant: "filled",
837
- size: s,
837
+ size: n,
838
838
  color: r,
839
839
  onClick: async () => {
840
840
  if (o)
@@ -853,34 +853,34 @@ function d({
853
853
  t.class(
854
854
  b(e)((i) => `bc-social-login-button--${i}`)
855
855
  ),
856
- l.span(
856
+ m.span(
857
857
  t.class("bc-social-login-button__inner"),
858
- l.span(
858
+ m.span(
859
859
  t.class("bc-social-login-button__icon"),
860
- fe({ icon: c, size: s }, t.class("bc-social-login-button__icon-inner"))
860
+ _e({ icon: c, size: n }, t.class("bc-social-login-button__icon-inner"))
861
861
  ),
862
- q(
863
- x,
864
- (i) => l.span(
862
+ x(
863
+ B,
864
+ (i) => m.span(
865
865
  t.class("bc-social-login-button__label"),
866
- me(
867
- g(n?.continueWithProvider, i.$.continueWithProvider)
866
+ de(
867
+ g(s?.continueWithProvider, i.$.continueWithProvider)
868
868
  )(a)
869
869
  )
870
870
  )
871
871
  )
872
872
  );
873
873
  }
874
- function Se({
874
+ function xe({
875
875
  providers: e,
876
876
  onProviderClick: o,
877
- size: s = "md",
877
+ size: n = "md",
878
878
  className: a
879
879
  }) {
880
- return T(
880
+ return $(
881
881
  t.class("bc-social-login-buttons"),
882
882
  t.class(a),
883
- ue(
883
+ he(
884
884
  e,
885
885
  (c) => d({
886
886
  provider: c.$.provider,
@@ -893,7 +893,7 @@ function Se({
893
893
  onClick: async () => {
894
894
  o && await o(c.$.provider.value);
895
895
  },
896
- size: s
896
+ size: n
897
897
  })
898
898
  )
899
899
  );
@@ -1029,346 +1029,354 @@ const p = {
1029
1029
  color: "blue"
1030
1030
  // distinct deep blue tone (not Facebook’s exact blue)
1031
1031
  }
1032
- }, Ke = (e) => d({
1032
+ }, oo = (e) => d({
1033
1033
  ...e,
1034
1034
  ...p.google,
1035
1035
  provider: "google"
1036
- }), Qe = (e) => d({
1036
+ }), to = (e) => d({
1037
1037
  ...e,
1038
1038
  ...p.github,
1039
1039
  provider: "github"
1040
- }), eo = (e) => d({
1040
+ }), ao = (e) => d({
1041
1041
  ...e,
1042
1042
  ...p.apple,
1043
1043
  provider: "apple"
1044
- }), oo = (e) => d({
1044
+ }), so = (e) => d({
1045
1045
  ...e,
1046
1046
  ...p.facebook,
1047
1047
  provider: "facebook"
1048
- }), to = (e) => d({
1048
+ }), no = (e) => d({
1049
1049
  ...e,
1050
1050
  ...p.x,
1051
1051
  provider: "x"
1052
- }), ao = (e) => d({
1052
+ }), ro = (e) => d({
1053
1053
  ...e,
1054
1054
  ...p.twitter,
1055
1055
  provider: "twitter"
1056
- }), so = (e) => d({
1056
+ }), io = (e) => d({
1057
1057
  ...e,
1058
1058
  ...p.microsoft,
1059
1059
  provider: "microsoft"
1060
- }), no = (e) => d({
1060
+ }), co = (e) => d({
1061
1061
  ...e,
1062
1062
  ...p.discord,
1063
1063
  provider: "discord"
1064
- }), ro = (e) => d({
1064
+ }), lo = (e) => d({
1065
1065
  ...e,
1066
1066
  ...p.linkedin,
1067
1067
  provider: "linkedin"
1068
- }), io = (e) => d({
1068
+ }), mo = (e) => d({
1069
1069
  ...e,
1070
1070
  ...p.instagram,
1071
1071
  provider: "instagram"
1072
- }), co = (e) => d({
1072
+ }), uo = (e) => d({
1073
1073
  ...e,
1074
1074
  ...p.tiktok,
1075
1075
  provider: "tiktok"
1076
- }), lo = (e) => d({
1076
+ }), po = (e) => d({
1077
1077
  ...e,
1078
1078
  ...p.snapchat,
1079
1079
  provider: "snapchat"
1080
- }), mo = (e) => d({
1080
+ }), ho = (e) => d({
1081
1081
  ...e,
1082
1082
  ...p.reddit,
1083
1083
  provider: "reddit"
1084
- }), uo = (e) => d({
1084
+ }), go = (e) => d({
1085
1085
  ...e,
1086
1086
  ...p.pinterest,
1087
1087
  provider: "pinterest"
1088
- }), po = (e) => d({
1088
+ }), fo = (e) => d({
1089
1089
  ...e,
1090
1090
  ...p.twitch,
1091
1091
  provider: "twitch"
1092
- }), ho = (e) => d({
1092
+ }), bo = (e) => d({
1093
1093
  ...e,
1094
1094
  ...p.steam,
1095
1095
  provider: "steam"
1096
- }), go = (e) => d({
1096
+ }), wo = (e) => d({
1097
1097
  ...e,
1098
1098
  ...p.epic,
1099
1099
  provider: "epic"
1100
- }), fo = (e) => d({
1100
+ }), _o = (e) => d({
1101
1101
  ...e,
1102
1102
  ...p.playstation,
1103
1103
  provider: "playstation"
1104
- }), bo = (e) => d({
1104
+ }), Lo = (e) => d({
1105
1105
  ...e,
1106
1106
  ...p.xbox,
1107
1107
  provider: "xbox"
1108
- }), wo = (e) => d({
1108
+ }), vo = (e) => d({
1109
1109
  ...e,
1110
1110
  ...p.whatsapp,
1111
1111
  provider: "whatsapp"
1112
- }), _o = (e) => d({
1112
+ }), ko = (e) => d({
1113
1113
  ...e,
1114
1114
  ...p.wechat,
1115
1115
  provider: "wechat"
1116
- }), Lo = (e) => d({
1116
+ }), yo = (e) => d({
1117
1117
  ...e,
1118
1118
  ...p.amazon,
1119
1119
  provider: "amazon"
1120
- }), vo = (e) => d({
1120
+ }), So = (e) => d({
1121
1121
  ...e,
1122
1122
  ...p.yahoo,
1123
1123
  provider: "yahoo"
1124
- }), ko = (e) => d({
1124
+ }), qo = (e) => d({
1125
1125
  ...e,
1126
1126
  ...p.paypal,
1127
1127
  provider: "paypal"
1128
1128
  });
1129
- function ae({
1129
+ function re({
1130
1130
  providers: e,
1131
1131
  onSocialLogin: o
1132
1132
  }) {
1133
- return T(
1134
- Se({
1133
+ return $(
1134
+ xe({
1135
1135
  providers: e,
1136
1136
  onProviderClick: o
1137
1137
  })
1138
1138
  );
1139
1139
  }
1140
- function Pe({
1140
+ function Be({
1141
1141
  mode: e,
1142
1142
  socialProviders: o,
1143
- initialName: s,
1143
+ initialName: n,
1144
1144
  initialEmail: a,
1145
1145
  passwordRules: c,
1146
1146
  showRememberMe: r,
1147
1147
  showSocialDivider: u,
1148
- showPasswordStrength: n,
1149
- labels: m,
1148
+ showPasswordStrength: s,
1149
+ labels: l,
1150
1150
  onSignIn: i,
1151
1151
  onSignUp: h,
1152
1152
  onResetPassword: L,
1153
1153
  onModeChange: v,
1154
- onSocialLogin: k,
1155
- showContainer: S
1156
- }, ...V) {
1157
- const B = e != null ? oe.deriveProp(e) : U("signin");
1158
- return B.on((P) => v?.(P)), q(x, (P) => {
1159
- function E() {
1160
- const w = g(m?.hasAccountLink, P.$.hasAccountLink);
1161
- return l.button(
1154
+ onSocialLogin: y,
1155
+ showContainer: D,
1156
+ showNameField: E,
1157
+ showConfirmPassword: S,
1158
+ showAcceptTermsAndConditions: F,
1159
+ termsAndConditions: O
1160
+ }, ...W) {
1161
+ const P = e != null ? se.deriveProp(e) : M("signin");
1162
+ return P.on((q) => v?.(q)), x(B, (q) => {
1163
+ function I() {
1164
+ const R = g(l?.hasAccountLink, q.$.hasAccountLink);
1165
+ return m.button(
1162
1166
  t.type("button"),
1163
1167
  t.class("bc-auth-form__link"),
1164
- z.click(() => B.set("signin")),
1165
- w
1168
+ C.click(() => P.set("signin")),
1169
+ R
1166
1170
  );
1167
1171
  }
1168
- function D() {
1169
- return l.button(
1172
+ function k() {
1173
+ return m.button(
1170
1174
  t.type("button"),
1171
1175
  t.class("bc-auth-form__link"),
1172
- z.click(() => B.set("signup")),
1173
- g(m?.noAccountLink, P.$.noAccountLink)
1176
+ C.click(() => P.set("signup")),
1177
+ g(l?.noAccountLink, q.$.noAccountLink)
1174
1178
  );
1175
1179
  }
1176
- function I() {
1177
- return l.button(
1180
+ function w() {
1181
+ return m.button(
1178
1182
  t.type("button"),
1179
1183
  t.class("bc-auth-form__link"),
1180
- z.click(() => B.set("reset-password")),
1181
- g(m?.forgotPasswordLink, P.$.forgotPasswordLink)
1184
+ C.click(() => P.set("reset-password")),
1185
+ g(l?.forgotPasswordLink, q.$.forgotPasswordLink)
1182
1186
  );
1183
1187
  }
1184
- return l.div(
1185
- be({
1188
+ return m.div(
1189
+ Le({
1186
1190
  "bc-auth-container": !0,
1187
- "bc-auth-container--styled": oe.map(S ?? !0, (w) => w)
1191
+ "bc-auth-container--styled": se.map(D ?? !0, (R) => R)
1188
1192
  }),
1189
- t.class(B.map((w) => `bc-auth-container--${w}`)),
1193
+ t.class(P.map((R) => `bc-auth-container--${R}`)),
1190
1194
  t.class("bc-auth-form"),
1191
- pe(B, {
1192
- signin: () => R(
1193
- l.h2(
1195
+ ge(P, {
1196
+ signin: () => U(
1197
+ m.h2(
1194
1198
  t.class("bc-auth-form__title"),
1195
- g(m?.signInTitle, P.$.signInTitle)
1199
+ g(l?.signInTitle, q.$.signInTitle)
1196
1200
  ),
1197
- o != null ? R(
1198
- ae({
1201
+ o != null ? U(
1202
+ re({
1199
1203
  providers: o,
1200
- onSocialLogin: k
1204
+ onSocialLogin: y
1201
1205
  }),
1202
- _(u ?? !1, se)
1206
+ _(u ?? !1, ie)
1203
1207
  ) : null,
1204
- Le({
1208
+ ye({
1205
1209
  onSignIn: i,
1206
1210
  showRememberMe: r,
1207
1211
  passwordRules: c,
1208
1212
  labels: {
1209
- emailLabel: m?.emailLabel,
1210
- passwordLabel: m?.passwordLabel,
1211
- rememberMeLabel: m?.rememberMeLabel,
1212
- signInButton: m?.signInButton,
1213
- forgotPasswordLink: m?.forgotPasswordLink,
1214
- noAccountLink: m?.noAccountLink
1213
+ emailLabel: l?.emailLabel,
1214
+ passwordLabel: l?.passwordLabel,
1215
+ rememberMeLabel: l?.rememberMeLabel,
1216
+ signInButton: l?.signInButton,
1217
+ forgotPasswordLink: l?.forgotPasswordLink,
1218
+ noAccountLink: l?.noAccountLink
1215
1219
  }
1216
1220
  }),
1217
- T(
1221
+ $(
1218
1222
  t.class("bc-auth-form__footer"),
1219
- D(),
1220
- I()
1223
+ k(),
1224
+ w()
1221
1225
  )
1222
1226
  ),
1223
- signup: () => R(
1224
- l.h2(
1227
+ signup: () => U(
1228
+ m.h2(
1225
1229
  t.class("bc-auth-form__title"),
1226
- g(m?.signUpTitle, P.$.signUpTitle)
1230
+ g(l?.signUpTitle, q.$.signUpTitle)
1227
1231
  ),
1228
- o != null ? R(
1229
- ae({
1232
+ o != null ? U(
1233
+ re({
1230
1234
  providers: o,
1231
- onSocialLogin: k
1235
+ onSocialLogin: y
1232
1236
  }),
1233
- _(u ?? !1, se)
1237
+ _(u ?? !1, ie)
1234
1238
  ) : null,
1235
- ke({
1239
+ qe({
1236
1240
  labels: {
1237
- nameLabel: m?.nameLabel,
1238
- emailLabel: m?.emailLabel,
1239
- passwordLabel: m?.passwordLabel,
1240
- confirmPasswordLabel: m?.confirmPasswordLabel,
1241
- acceptTermsLabel: m?.acceptTermsLabel,
1242
- signUpButton: m?.signUpButton,
1243
- hasAccountLink: m?.hasAccountLink
1241
+ nameLabel: l?.nameLabel,
1242
+ emailLabel: l?.emailLabel,
1243
+ passwordLabel: l?.passwordLabel,
1244
+ confirmPasswordLabel: l?.confirmPasswordLabel,
1245
+ acceptTermsLabel: l?.acceptTermsLabel,
1246
+ signUpButton: l?.signUpButton,
1247
+ hasAccountLink: l?.hasAccountLink
1244
1248
  },
1245
1249
  initialEmail: a,
1246
- initialName: s,
1250
+ initialName: n,
1247
1251
  onSignUp: h,
1248
1252
  passwordRules: c,
1249
- showPasswordStrength: n
1253
+ showPasswordStrength: s,
1254
+ showNameField: E,
1255
+ showConfirmPassword: S,
1256
+ showAcceptTermsAndConditions: F,
1257
+ termsAndConditions: O
1250
1258
  }),
1251
- T(t.class("bc-auth-form__footer"), E())
1259
+ $(t.class("bc-auth-form__footer"), I())
1252
1260
  ),
1253
- "reset-password": () => R(
1254
- l.h2(
1261
+ "reset-password": () => U(
1262
+ m.h2(
1255
1263
  t.class("bc-auth-form__title"),
1256
- g(m?.resetPasswordTitle, P.$.resetPasswordTitle)
1264
+ g(l?.resetPasswordTitle, q.$.resetPasswordTitle)
1257
1265
  ),
1258
- ye({
1266
+ Pe({
1259
1267
  labels: {
1260
- backToSignInLink: m?.backToSignInLink,
1261
- emailLabel: m?.emailLabel,
1262
- resetPasswordButton: m?.resetPasswordButton,
1263
- resetPasswordDescription: m?.resetPasswordDescription
1268
+ backToSignInLink: l?.backToSignInLink,
1269
+ emailLabel: l?.emailLabel,
1270
+ resetPasswordButton: l?.resetPasswordButton,
1271
+ resetPasswordDescription: l?.resetPasswordDescription
1264
1272
  },
1265
1273
  onResetPassword: L
1266
1274
  }),
1267
- T(t.class("bc-auth-form__footer"), E())
1275
+ $(t.class("bc-auth-form__footer"), I())
1268
1276
  )
1269
1277
  }),
1270
- ...V
1278
+ ...W
1271
1279
  );
1272
1280
  });
1273
1281
  }
1274
- function yo(e) {
1275
- return he(
1282
+ function Po(e) {
1283
+ return be(
1276
1284
  {
1277
1285
  size: "sm",
1278
1286
  dismissable: !0,
1279
1287
  showCloseButton: !0
1280
1288
  },
1281
- (o, s) => e(
1289
+ (o, n) => e(
1282
1290
  (a) => o({
1283
- body: Pe({ showContainer: !1, ...a }),
1284
- header: q(
1285
- x,
1291
+ body: Be({ showContainer: !1, ...a }),
1292
+ header: x(
1293
+ B,
1286
1294
  (c) => g(a.modalTitle, c.$.authenticationTitle)
1287
1295
  )
1288
1296
  })
1289
1297
  )
1290
1298
  );
1291
1299
  }
1292
- function se({
1300
+ function ie({
1293
1301
  labels: e,
1294
1302
  className: o
1295
1303
  } = {}) {
1296
- return l.div(
1304
+ return m.div(
1297
1305
  t.class("bc-auth-divider"),
1298
1306
  t.class(o),
1299
- l.div(t.class("bc-auth-divider__line")),
1300
- q(
1301
- x,
1302
- (s) => l.span(
1307
+ m.div(t.class("bc-auth-divider__line")),
1308
+ x(
1309
+ B,
1310
+ (n) => m.span(
1303
1311
  t.class("bc-auth-divider__text"),
1304
- g(e?.text, s.$.orDivider)
1312
+ g(e?.text, n.$.orDivider)
1305
1313
  )
1306
1314
  ),
1307
- l.div(t.class("bc-auth-divider__line"))
1315
+ m.div(t.class("bc-auth-divider__line"))
1308
1316
  );
1309
1317
  }
1310
1318
  export {
1311
- We as $,
1312
- Lo as A,
1313
- Q as B,
1314
- De as C,
1315
- no as D,
1316
- go as E,
1317
- oo as F,
1318
- Qe as G,
1319
- $ as H,
1320
- io as I,
1321
- Ge as J,
1322
- He as K,
1323
- ro as L,
1324
- so as M,
1325
- re as N,
1326
- Oe as O,
1327
- Ze as P,
1328
- we as Q,
1329
- mo as R,
1330
- Le as S,
1331
- co as T,
1332
- Ne as U,
1333
- _e as V,
1334
- _o as W,
1335
- to as X,
1336
- vo as Y,
1337
- Me as Z,
1338
- Ue as _,
1339
- eo as a,
1340
- Ve as a0,
1341
- Fe as a1,
1342
- Y as a2,
1343
- Z as a3,
1344
- ie as a4,
1319
+ je as $,
1320
+ yo as A,
1321
+ te as B,
1322
+ We as C,
1323
+ co as D,
1324
+ wo as E,
1325
+ so as F,
1326
+ to as G,
1327
+ T as H,
1328
+ mo as I,
1329
+ Xe as J,
1330
+ Ye as K,
1331
+ lo as L,
1332
+ io as M,
1333
+ le as N,
1334
+ He as O,
1335
+ Qe as P,
1336
+ ve as Q,
1337
+ ho as R,
1338
+ ye as S,
1339
+ uo as T,
1340
+ Fe as U,
1341
+ ke as V,
1342
+ ko as W,
1343
+ no as X,
1344
+ So as Y,
1345
+ De as Z,
1346
+ Ve as _,
1347
+ ao as a,
1348
+ Oe as a0,
1349
+ Ge as a1,
1350
+ K as a2,
1351
+ Q as a3,
1352
+ me as a4,
1345
1353
  p as a5,
1346
- ce as a6,
1347
- Xe as a7,
1348
- Ye as a8,
1349
- Pe as b,
1350
- se as c,
1351
- yo as d,
1352
- Ke as e,
1353
- ve as f,
1354
- Je as g,
1355
- ko as h,
1356
- uo as i,
1357
- fo as j,
1358
- ye as k,
1359
- ke as l,
1360
- lo as m,
1354
+ ue as a6,
1355
+ Je as a7,
1356
+ Ke as a8,
1357
+ Be as b,
1358
+ ie as c,
1359
+ Po as d,
1360
+ oo as e,
1361
+ Se as f,
1362
+ eo as g,
1363
+ qo as h,
1364
+ go as i,
1365
+ _o as j,
1366
+ Pe as k,
1367
+ qe as l,
1368
+ po as m,
1361
1369
  d as n,
1362
- Se as o,
1363
- ae as p,
1364
- ho as q,
1365
- po as r,
1366
- ao as s,
1367
- wo as t,
1368
- bo as u,
1369
- je as v,
1370
- ee as w,
1371
- N as x,
1372
- J as y,
1373
- K as z
1370
+ xe as o,
1371
+ re as p,
1372
+ bo as q,
1373
+ fo as r,
1374
+ ro as s,
1375
+ vo as t,
1376
+ Lo as u,
1377
+ Ze as v,
1378
+ ae as w,
1379
+ V as x,
1380
+ ee as y,
1381
+ oe as z
1374
1382
  };