@tempots/beatui 0.26.0 → 0.27.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 (59) hide show
  1. package/dist/{2019-Bt_x1Mqh.js → 2019-Cw6dbOsG.js} +2 -2
  2. package/dist/{2019-BZdoHGOO.cjs → 2019-DU48Szvf.cjs} +1 -1
  3. package/dist/{2020-C2Ifu6RV.js → 2020-C4Shen9O.js} +2 -2
  4. package/dist/{2020-Bk0sGwzQ.cjs → 2020-Cp1L6hfj.cjs} +1 -1
  5. package/dist/{ar-CxLxXsxZ.js → ar-L29B4drg.js} +1 -1
  6. package/dist/{ar-CNSt2O6X.cjs → ar-Xt0B1GBx.cjs} +1 -1
  7. package/dist/auth/index.cjs.js +1 -1
  8. package/dist/auth/index.es.js +276 -276
  9. package/dist/{de-BlQbCGWj.cjs → de-BBH6Q1uM.cjs} +1 -1
  10. package/dist/{de-C7iv8rS5.js → de-BL9YMCWJ.js} +1 -1
  11. package/dist/{es-Chf24sm_.cjs → es-3mljmytv.cjs} +1 -1
  12. package/dist/{es-DyivIdRS.js → es-CS4u7MZp.js} +1 -1
  13. package/dist/{fa-DPDyDuq_.cjs → fa-C06uowfA.cjs} +1 -1
  14. package/dist/{fa-T2168lXR.js → fa-_5IxCXGI.js} +1 -1
  15. package/dist/{fr-ehNjmGC4.js → fr-B-ZWm43Y.js} +1 -1
  16. package/dist/{fr-BnxbTKeV.cjs → fr-ZoJsA1s0.cjs} +1 -1
  17. package/dist/{he-B9YZGENc.cjs → he-D-_HCjOB.cjs} +1 -1
  18. package/dist/{he-TD57Y17Z.js → he-J-Bcrgy9.js} +1 -1
  19. package/dist/{hi-ZyCUnzwK.cjs → hi-B9yNE6-J.cjs} +1 -1
  20. package/dist/{hi-B4NbRIf5.js → hi-ClGaIH71.js} +1 -1
  21. package/dist/{index-CZn1Pgwz.cjs → index-CLfb1616.cjs} +2 -2
  22. package/dist/{index-DvqD_Y1P.js → index-DxiM_mmQ.js} +4 -4
  23. package/dist/{index-DN_efvsJ.cjs → index-NUMH-iWq.cjs} +1 -1
  24. package/dist/{index-C494pbos.js → index-Nv9nZIgS.js} +1 -1
  25. package/dist/index.cjs.js +2 -2
  26. package/dist/index.es.js +154 -156
  27. package/dist/{it-C5sp2CZC.cjs → it-D-bh7RoG.cjs} +1 -1
  28. package/dist/{it-D3x9ILJi.js → it-Dv8tmKm5.js} +1 -1
  29. package/dist/{ja-31clSGC3.cjs → ja-B4rdImcD.cjs} +1 -1
  30. package/dist/{ja-BSfyBDbo.js → ja-BpqiZN5f.js} +1 -1
  31. package/dist/json-schema/index.cjs.js +1 -1
  32. package/dist/json-schema/index.es.js +1 -1
  33. package/dist/{ko-DNahUn8W.js → ko-Bpa6y038.js} +1 -1
  34. package/dist/{ko-j4lOKHLl.cjs → ko-C43-vhJF.cjs} +1 -1
  35. package/dist/{modal-CMuvQ7U-.cjs → modal-DKWKUrDF.cjs} +1 -1
  36. package/dist/{modal-5GSPw0e_.js → modal-Fect9dc4.js} +1 -1
  37. package/dist/{nl-DxveNtuq.js → nl-B5HYWGRz.js} +1 -1
  38. package/dist/{nl-gQLaSMRt.cjs → nl-DDjoZpiU.cjs} +1 -1
  39. package/dist/{notice-DuvHeGyh.js → notice-DKO4C8y2.js} +2 -3
  40. package/dist/{notice-DTflcSdc.cjs → notice-DrmHRjLV.cjs} +2 -2
  41. package/dist/{pl-BQTsowH4.cjs → pl-CXYiY-nR.cjs} +1 -1
  42. package/dist/{pl-DuKW800E.js → pl-DksXqLHk.js} +1 -1
  43. package/dist/{pt-DPt1NyaL.js → pt-7-6UhRtW.js} +1 -1
  44. package/dist/{pt-DB-njyTA.cjs → pt-CnC1YN5K.cjs} +1 -1
  45. package/dist/{ru-DwiRelVA.js → ru-I676X0Bt.js} +1 -1
  46. package/dist/{ru-CIXDYJrr.cjs → ru-_1DUTMUW.cjs} +1 -1
  47. package/dist/{tr-DQIURNMa.js → tr-CssmRZfH.js} +1 -1
  48. package/dist/{tr-Dx_9vMU9.cjs → tr-DA-8X7MK.cjs} +1 -1
  49. package/dist/{translations-D4pKsgdi.js → translations-BBguPjg9.js} +1 -1
  50. package/dist/{translations-YkLfpjMl.cjs → translations-CrqWcCGM.cjs} +1 -1
  51. package/dist/{ur-DpGDKEUr.cjs → ur-B1YkWWDx.cjs} +1 -1
  52. package/dist/{ur-ChuKCUVI.js → ur-BCWL2ev1.js} +1 -1
  53. package/dist/{utils-Dz1qVHrn.cjs → utils-ClYvMRfA.cjs} +1 -1
  54. package/dist/{utils-CBZohCZi.js → utils-DU4oGQiY.js} +1 -1
  55. package/dist/{vi-CJ3gBepb.js → vi-D5K4x_hN.js} +1 -1
  56. package/dist/{vi-CjpgcyEa.cjs → vi-DA-qqgHJ.cjs} +1 -1
  57. package/dist/{zh-CLb0vdcx.cjs → zh-B4HcAg-5.cjs} +1 -1
  58. package/dist/{zh-DBCCiN2o.js → zh-HUwi9F-w.js} +1 -1
  59. package/package.json +3 -3
@@ -1,8 +1,8 @@
1
- import { localStorageProp as ro, prop as E, Use as P, html as i, OnDispose as U, attr as t, on as T, When as L, coalesce as h, Ensure as N, computedOf as f, bind as io, ForEach as co, Value as Q, OneOfValue as lo, Fragment as A } from "@tempots/dom";
2
- import { t as mo, b as oo, u as R, S as q, c as so, d as $, P as M, E as W, N as G, a as V, T as uo, I as po } from "../notice-DuvHeGyh.js";
3
- import { s as I, o as H, b as D, M as ho } from "../modal-5GSPw0e_.js";
4
- import { AuthI18n as x } from "../translations-D4pKsgdi.js";
5
- import { classes as go } from "@tempots/ui";
1
+ import { localStorageProp as re, prop as E, Use as P, html as i, OnDispose as U, attr as t, on as T, When as L, coalesce as h, Ensure as N, computedOf as f, bind as ie, ForEach as ce, Value as Q, OneOfValue as le, Fragment as A } from "@tempots/dom";
2
+ import { t as me, b as ee, u as R, S as q, c as se, d as $, P as M, E as W, N as G, a as O, T as ue, I as de } from "../notice-DKO4C8y2.js";
3
+ import { s as I, o as H, b as D, M as pe } from "../modal-Fect9dc4.js";
4
+ import { AuthI18n as x } from "../translations-BBguPjg9.js";
5
+ import { classes as he } from "@tempots/ui";
6
6
  const j = {
7
7
  google: { name: "Google", icon: "logos:google-icon", color: "#4285f4" },
8
8
  github: { name: "GitHub", icon: "logos:github-icon", color: "#333" },
@@ -49,17 +49,17 @@ const j = {
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 fo(o) {
53
- return j[o]?.name || o;
52
+ function ge(e) {
53
+ return j[e]?.name || e;
54
54
  }
55
- function $o(o) {
56
- return j[o]?.icon || "mdi:account";
55
+ function Be(e) {
56
+ return j[e]?.icon || "mdi:account";
57
57
  }
58
- function Io(o) {
59
- return j[o]?.color || "#666";
58
+ function $e(e) {
59
+ return j[e]?.color || "#666";
60
60
  }
61
- function To(o, e = "Continue with {provider}") {
62
- return e.replace("{provider}", fo(o));
61
+ function Ie(e, o = "Continue with {provider}") {
62
+ return o.replace("{provider}", ge(e));
63
63
  }
64
64
  const B = {
65
65
  minLength: 8,
@@ -68,17 +68,17 @@ const B = {
68
68
  requireNumbers: !0,
69
69
  requireSymbols: !1
70
70
  };
71
- function Ao(o) {
72
- return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(o);
71
+ function Te(e) {
72
+ return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e);
73
73
  }
74
- function bo(o = 32) {
75
- const e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
74
+ function fe(e = 32) {
75
+ const o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
76
76
  let c = "";
77
- for (let m = 0; m < o; m++)
78
- c += e.charAt(Math.floor(Math.random() * e.length));
77
+ for (let m = 0; m < e; m++)
78
+ c += o.charAt(Math.floor(Math.random() * o.length));
79
79
  return c;
80
80
  }
81
- function Co(o, e, c, m = [], l = {}) {
81
+ function Ae(e, o, c, m = [], l = {}) {
82
82
  const a = {
83
83
  google: "https://accounts.google.com/oauth/authorize",
84
84
  github: "https://github.com/login/oauth/authorize",
@@ -129,11 +129,11 @@ function Co(o, e, c, m = [], l = {}) {
129
129
  yahoo: ["openid", "email", "profile"],
130
130
  paypal: ["openid", "email", "profile"],
131
131
  x: ["openid", "email", "profile"]
132
- }, n = a[o];
132
+ }, n = a[e];
133
133
  if (!n)
134
- throw new Error(`Unsupported provider: ${o}`);
135
- const u = m.length > 0 ? m : s[o], r = bo(), w = new URLSearchParams({
136
- client_id: e,
134
+ throw new Error(`Unsupported provider: ${e}`);
135
+ const u = m.length > 0 ? m : s[e], r = fe(), w = new URLSearchParams({
136
+ client_id: o,
137
137
  redirect_uri: c,
138
138
  scope: u.join(" "),
139
139
  state: r,
@@ -142,10 +142,10 @@ function Co(o, e, c, m = [], l = {}) {
142
142
  });
143
143
  return `${n}?${w.toString()}`;
144
144
  }
145
- function zo(o, e, c, m) {
145
+ function Ce(e, o, c, m) {
146
146
  const l = window.open(
147
- o,
148
- `${e}_login`,
147
+ e,
148
+ `${o}_login`,
149
149
  "width=500,height=600,scrollbars=yes,resizable=yes"
150
150
  );
151
151
  if (!l) {
@@ -159,63 +159,63 @@ function zo(o, e, c, m) {
159
159
  };
160
160
  window.addEventListener("message", s);
161
161
  }
162
- function Eo(o) {
163
- 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 ze(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";
164
164
  }
165
- function Uo() {
165
+ function Ee() {
166
166
  return typeof window < "u" && typeof document < "u";
167
167
  }
168
168
  function X({
169
- task: o,
170
- message: e,
169
+ task: e,
170
+ message: o,
171
171
  onStart: c,
172
172
  onEnd: m
173
173
  }) {
174
- return console.log(o), async (l) => {
174
+ return async (l) => {
175
175
  c?.();
176
- const a = await mo({
177
- task: o != null ? () => o(l) : async () => null,
178
- errorMessage: e,
176
+ const a = await me({
177
+ task: e != null ? () => e(l) : async () => null,
178
+ errorMessage: o,
179
179
  errorPath: ["root"],
180
- validation: (s) => (console.log("Validating", s), s != null ? (console.log("Invalid", s), oo.invalid({ message: s })) : (console.log("Valid"), oo.valid))
180
+ validation: (s) => s != null ? ee.invalid({ message: s }) : ee.valid
181
181
  });
182
182
  return m?.(), a;
183
183
  };
184
184
  }
185
- function Y(o = B) {
186
- let e = I();
187
- return o.minLength && (e = e.min(
188
- o.minLength,
189
- `Password must be at least ${o.minLength} characters`
190
- )), o.requireUppercase && (e = e.regex(
185
+ function Y(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(
191
191
  /[A-Z]/,
192
192
  "Password must contain at least one uppercase letter"
193
- )), o.requireLowercase && (e = e.regex(
193
+ )), e.requireLowercase && (o = o.regex(
194
194
  /[a-z]/,
195
195
  "Password must contain at least one lowercase letter"
196
- )), o.requireNumbers && (e = e.regex(
196
+ )), e.requireNumbers && (o = o.regex(
197
197
  /[0-9]/,
198
198
  "Password must contain at least one number"
199
- )), o.requireSymbols && (e = e.regex(
199
+ )), e.requireSymbols && (o = o.regex(
200
200
  /[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/,
201
201
  "Password must contain at least one special character"
202
- )), o.customValidation && (e = e.refine((c) => o.customValidation(c))), e;
202
+ )), e.customValidation && (o = o.refine((c) => e.customValidation(c))), o;
203
203
  }
204
- const O = I().min(1, "Email is required").email("Please enter a valid email address");
205
- function Z(o) {
206
- const e = o ? Y(o) : I().refine(
204
+ const V = I().min(1, "Email is required").email("Please enter a valid email address");
205
+ function Z(e) {
206
+ const o = e ? Y(e) : I().refine(
207
207
  (c) => c.length > 0 ? null : "Password is required"
208
208
  );
209
209
  return H({
210
- email: O,
211
- password: e,
210
+ email: V,
211
+ password: o,
212
212
  rememberMe: D().default(!1)
213
213
  }).schema();
214
214
  }
215
- function J(o = B, e) {
216
- const c = Y(o), m = e?.showNameField !== !1, l = e?.showConfirmPassword !== !1, a = e?.showAcceptTermsAndConditions !== !1, s = {
215
+ function J(e = B, o) {
216
+ const c = Y(e), m = o?.showNameField !== !1, l = o?.showConfirmPassword !== !1, a = o?.showAcceptTermsAndConditions !== !1, s = {
217
217
  name: m ? I().min(1, "Name is required").optional() : I().optional(),
218
- email: O,
218
+ email: V,
219
219
  password: c,
220
220
  // Always require confirmPassword as string to match SignUpData interface
221
221
  // When not shown, it should accept any value (including empty string)
@@ -232,63 +232,63 @@ function J(o = B, e) {
232
232
  { path: ["confirmPassword"] }
233
233
  ).schema() : n.schema();
234
234
  }
235
- const no = H({
236
- email: O
237
- }).schema(), Vo = Z(), Oo = J(), Fo = {
235
+ const ne = H({
236
+ email: V
237
+ }).schema(), Ue = Z(), Oe = J(), Ve = {
238
238
  signIn: Z,
239
239
  signUp: J,
240
- resetPassword: () => no
240
+ resetPassword: () => ne
241
241
  };
242
- function Mo(o) {
243
- const e = O.validate(o);
244
- return e.success ? null : e.errors[0]?.message || "Invalid email";
242
+ function Fe(e) {
243
+ const o = V.validate(e);
244
+ return o.success ? null : o.errors[0]?.message || "Invalid email";
245
245
  }
246
- function Do(o, e = B) {
247
- const m = Y(e).validate(o);
246
+ function Me(e, o = B) {
247
+ const m = Y(o).validate(e);
248
248
  return m.success ? null : m.errors[0]?.message || "Invalid password";
249
249
  }
250
- function K(o, e = B) {
250
+ function K(e, o = B) {
251
251
  const c = {
252
- length: o.length >= (e.minLength || 8),
253
- uppercase: /[A-Z]/.test(o),
254
- lowercase: /[a-z]/.test(o),
255
- numbers: /[0-9]/.test(o),
256
- symbols: /[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/.test(o),
257
- custom: e.customValidation ? e.customValidation(o) === null : o.length > 0
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
258
258
  // For consistency, fail if password is empty
259
259
  }, m = [
260
260
  !0,
261
261
  // length is always enabled
262
- e.requireUppercase,
263
- e.requireLowercase,
264
- e.requireNumbers,
265
- e.requireSymbols,
266
- !!e.customValidation
262
+ o.requireUppercase,
263
+ o.requireLowercase,
264
+ o.requireNumbers,
265
+ o.requireSymbols,
266
+ !!o.customValidation
267
267
  ].filter(Boolean).length, l = [
268
268
  c.length,
269
- e.requireUppercase ? c.uppercase : null,
270
- e.requireLowercase ? c.lowercase : null,
271
- e.requireNumbers ? c.numbers : null,
272
- e.requireSymbols ? c.symbols : null,
273
- e.customValidation ? c.custom : null
269
+ o.requireUppercase ? c.uppercase : null,
270
+ o.requireLowercase ? c.lowercase : null,
271
+ o.requireNumbers ? c.numbers : null,
272
+ o.requireSymbols ? c.symbols : null,
273
+ o.customValidation ? c.custom : null
274
274
  ].filter((n) => n === !0).length, a = m > 0 ? Math.round(l / m * 100) : 0;
275
275
  let s;
276
276
  return a < 40 ? s = "weak" : a < 60 ? s = "fair" : a < 80 ? s = "good" : s = "strong", { strength: s, score: a, checks: c };
277
277
  }
278
- const ao = () => ro({
278
+ const ae = () => re({
279
279
  key: "bui_auth_email",
280
280
  defaultValue: null
281
281
  });
282
- function wo({
283
- onSignIn: o,
284
- passwordRules: e,
282
+ function be({
283
+ onSignIn: e,
284
+ passwordRules: o,
285
285
  labels: c,
286
286
  showRememberMe: m
287
287
  }) {
288
- const l = E(!1), a = ao(), s = Z(e), n = R({
288
+ const l = E(!1), a = ae(), s = Z(o), n = R({
289
289
  schema: s,
290
290
  onSubmit: X({
291
- task: o,
291
+ task: e,
292
292
  message: "Reset password failed",
293
293
  onStart: () => {
294
294
  l.set(!0), n.controller.disable();
@@ -342,7 +342,7 @@ function wo({
342
342
  t.class("bc-auth-form__remember-me"),
343
343
  i.label(
344
344
  t.class("bc-auth-form__checkbox-label"),
345
- so({
345
+ se({
346
346
  value: a.map((b) => b != null),
347
347
  after: i.span(
348
348
  h(c?.rememberMeLabel, g.$.rememberMeLabel)
@@ -356,7 +356,7 @@ function wo({
356
356
  )
357
357
  ),
358
358
  // Submit button
359
- V(
359
+ O(
360
360
  {
361
361
  type: "submit",
362
362
  variant: "filled",
@@ -371,13 +371,13 @@ function wo({
371
371
  )
372
372
  );
373
373
  }
374
- function _o({
375
- password: o,
376
- rules: e = B,
374
+ function we({
375
+ password: e,
376
+ rules: o = B,
377
377
  showLabel: c = !0,
378
378
  className: m
379
379
  }) {
380
- const l = f(o)((r) => !r || r.length === 0 ? {
380
+ const l = f(e)((r) => !r || r.length === 0 ? {
381
381
  strength: "weak",
382
382
  score: 0,
383
383
  checks: {
@@ -388,7 +388,7 @@ function _o({
388
388
  symbols: !1,
389
389
  custom: !1
390
390
  }
391
- } : K(r, e)), a = l.map((r) => r.strength), s = l.map((r) => r.score), n = l.map((r) => r.checks), u = f(
391
+ } : K(r, o)), a = l.map((r) => r.strength), s = l.map((r) => r.score), n = l.map((r) => r.checks), u = f(
392
392
  a,
393
393
  m
394
394
  )((r, w) => [
@@ -438,7 +438,7 @@ function _o({
438
438
  t.class("bc-password-strength__requirements"),
439
439
  // Length requirement
440
440
  L(
441
- e.minLength !== void 0,
441
+ o.minLength !== void 0,
442
442
  () => i.div(
443
443
  t.class("bc-password-strength__requirement"),
444
444
  t.class(
@@ -452,13 +452,13 @@ function _o({
452
452
  ),
453
453
  i.span(
454
454
  t.class("bc-password-strength__requirement-text"),
455
- `At least ${e.minLength} characters`
455
+ `At least ${o.minLength} characters`
456
456
  )
457
457
  )
458
458
  ),
459
459
  // Uppercase requirement
460
460
  L(
461
- e.requireUppercase === !0,
461
+ o.requireUppercase === !0,
462
462
  () => i.div(
463
463
  t.class("bc-password-strength__requirement"),
464
464
  t.class(
@@ -478,7 +478,7 @@ function _o({
478
478
  ),
479
479
  // Lowercase requirement
480
480
  L(
481
- e.requireLowercase === !0,
481
+ o.requireLowercase === !0,
482
482
  () => i.div(
483
483
  t.class("bc-password-strength__requirement"),
484
484
  t.class(
@@ -498,7 +498,7 @@ function _o({
498
498
  ),
499
499
  // Numbers requirement
500
500
  L(
501
- e.requireNumbers === !0,
501
+ o.requireNumbers === !0,
502
502
  () => i.div(
503
503
  t.class("bc-password-strength__requirement"),
504
504
  t.class(
@@ -518,7 +518,7 @@ function _o({
518
518
  ),
519
519
  // Symbols requirement
520
520
  L(
521
- e.requireSymbols === !0,
521
+ o.requireSymbols === !0,
522
522
  () => i.div(
523
523
  t.class("bc-password-strength__requirement"),
524
524
  t.class(
@@ -539,12 +539,12 @@ function _o({
539
539
  )
540
540
  );
541
541
  }
542
- function No({
543
- password: o,
544
- rules: e = B,
542
+ function De({
543
+ password: e,
544
+ rules: o = B,
545
545
  className: c
546
546
  }) {
547
- const m = f(o)((n) => !n || n.length === 0 ? { strength: "weak", score: 0 } : K(n, e)), l = m.map((n) => n.strength), a = m.map((n) => n.score), s = f(
547
+ const m = f(e)((n) => !n || n.length === 0 ? { strength: "weak", score: 0 } : K(n, o)), l = m.map((n) => n.strength), a = m.map((n) => n.score), s = f(
548
548
  l,
549
549
  c
550
550
  )((n, u) => [
@@ -560,12 +560,12 @@ function No({
560
560
  )
561
561
  );
562
562
  }
563
- function Ro({
564
- password: o,
565
- rules: e = B,
563
+ function Ne({
564
+ password: e,
565
+ rules: o = B,
566
566
  className: c
567
567
  }) {
568
- const m = f(o)((a) => !a || a.length === 0 ? "weak" : K(a, e).strength), l = f(
568
+ const m = f(e)((a) => !a || a.length === 0 ? "weak" : K(a, o).strength), l = f(
569
569
  m,
570
570
  c
571
571
  )((a, s) => [
@@ -597,9 +597,9 @@ function Ro({
597
597
  )
598
598
  );
599
599
  }
600
- function Lo({
601
- passwordRules: o,
602
- labels: e,
600
+ function _e({
601
+ passwordRules: e,
602
+ labels: o,
603
603
  showPasswordStrength: c,
604
604
  onSignUp: m,
605
605
  showNameField: l,
@@ -607,7 +607,7 @@ function Lo({
607
607
  showAcceptTermsAndConditions: s,
608
608
  termsAndConditions: n
609
609
  }) {
610
- const u = E(!1), r = o || B, w = J(r, {
610
+ const u = E(!1), r = e || B, w = J(r, {
611
611
  showNameField: l !== !1,
612
612
  showConfirmPassword: a !== !1,
613
613
  showAcceptTermsAndConditions: s !== !1
@@ -657,28 +657,28 @@ function Lo({
657
657
  // Name field (optional)
658
658
  L(
659
659
  l !== !1,
660
- () => $(uo, {
660
+ () => $(ue, {
661
661
  controller: k.transform(
662
662
  (v) => v ?? "",
663
663
  (v) => v === "" ? void 0 : v
664
664
  ),
665
- label: h(e?.nameLabel, S.$.nameLabel)
665
+ label: h(o?.nameLabel, S.$.nameLabel)
666
666
  })
667
667
  ),
668
668
  // Email field
669
669
  $(W, {
670
670
  controller: C,
671
- label: h(e?.emailLabel, S.$.emailLabel)
671
+ label: h(o?.emailLabel, S.$.emailLabel)
672
672
  }),
673
673
  // Password field
674
674
  $(M, {
675
675
  controller: z,
676
- label: h(e?.passwordLabel, S.$.passwordLabel)
676
+ label: h(o?.passwordLabel, S.$.passwordLabel)
677
677
  }),
678
678
  // Password strength indicator
679
679
  L(
680
680
  c ?? !1,
681
- () => _o({
681
+ () => we({
682
682
  password: z.value,
683
683
  rules: r,
684
684
  showLabel: !0
@@ -690,7 +690,7 @@ function Lo({
690
690
  () => $(M, {
691
691
  controller: F,
692
692
  label: h(
693
- e?.confirmPasswordLabel,
693
+ o?.confirmPasswordLabel,
694
694
  S.$.confirmPasswordLabel
695
695
  )
696
696
  })
@@ -702,12 +702,12 @@ function Lo({
702
702
  t.class("bc-auth-form__terms"),
703
703
  i.label(
704
704
  t.class("bc-auth-form__checkbox-label"),
705
- so({
705
+ se({
706
706
  value: y.value.map((v) => v ?? !1),
707
707
  onChange: (v) => y.change(v)
708
708
  }),
709
709
  i.span(
710
- n || h(e?.acceptTermsLabel, S.$.acceptTermsLabel)
710
+ n || h(o?.acceptTermsLabel, S.$.acceptTermsLabel)
711
711
  )
712
712
  ),
713
713
  L(
@@ -721,7 +721,7 @@ function Lo({
721
721
  )
722
722
  ),
723
723
  // Submit button
724
- V(
724
+ O(
725
725
  {
726
726
  type: "submit",
727
727
  variant: "filled",
@@ -730,20 +730,20 @@ function Lo({
730
730
  disabled: g.disabledOrHasErrors
731
731
  },
732
732
  t.class("bc-auth-form__submit"),
733
- h(e?.signUpButton, S.$.signUpButton)
733
+ h(o?.signUpButton, S.$.signUpButton)
734
734
  )
735
735
  )
736
736
  )
737
737
  );
738
738
  }
739
- function vo({
740
- onResetPassword: o,
741
- labels: e = {}
739
+ function Le({
740
+ onResetPassword: e,
741
+ labels: o = {}
742
742
  }) {
743
- const c = ao(), m = E(!1), l = R({
744
- schema: no,
743
+ const c = ae(), m = E(!1), l = R({
744
+ schema: ne,
745
745
  onSubmit: X({
746
- task: o,
746
+ task: e,
747
747
  message: "Reset password failed",
748
748
  onStart: () => {
749
749
  m.set(!0), l.controller.disable();
@@ -777,7 +777,7 @@ function vo({
777
777
  // Description
778
778
  i.p(
779
779
  t.class("bc-auth-form__description"),
780
- h(e?.resetPasswordDescription, u.$.resetPasswordDescription)
780
+ h(o?.resetPasswordDescription, u.$.resetPasswordDescription)
781
781
  ),
782
782
  T.submit(s),
783
783
  q(
@@ -785,11 +785,11 @@ function vo({
785
785
  // Email field
786
786
  $(W, {
787
787
  controller: n,
788
- label: h(e?.emailLabel, u.$.emailLabel)
788
+ label: h(o?.emailLabel, u.$.emailLabel)
789
789
  })
790
790
  ),
791
791
  // Submit button
792
- V(
792
+ O(
793
793
  {
794
794
  loading: m,
795
795
  type: "submit",
@@ -798,15 +798,15 @@ function vo({
798
798
  disabled: a.disabledOrHasErrors
799
799
  },
800
800
  t.class("bc-auth-form__submit"),
801
- h(e?.resetPasswordButton, u.$.resetPasswordButton)
801
+ h(o?.resetPasswordButton, u.$.resetPasswordButton)
802
802
  )
803
803
  )
804
804
  )
805
805
  );
806
806
  }
807
807
  function p({
808
- provider: o,
809
- onClick: e,
808
+ provider: e,
809
+ onClick: o,
810
810
  size: c = "md",
811
811
  name: m,
812
812
  icon: l,
@@ -814,19 +814,19 @@ function p({
814
814
  flow: s,
815
815
  labels: n
816
816
  }) {
817
- return V(
817
+ return O(
818
818
  {
819
819
  type: "button",
820
820
  variant: "filled",
821
821
  size: c,
822
822
  color: a,
823
823
  onClick: async () => {
824
- if (e)
824
+ if (o)
825
825
  try {
826
- s === "popup" ? await e() : await e();
826
+ s === "popup" ? await o() : await o();
827
827
  } catch (r) {
828
828
  console.error(
829
- `Social login error for ${o} (${s || "redirect"} flow):`,
829
+ `Social login error for ${e} (${s || "redirect"} flow):`,
830
830
  r
831
831
  );
832
832
  }
@@ -835,19 +835,19 @@ function p({
835
835
  },
836
836
  t.class("bc-social-login-button"),
837
837
  t.class(
838
- f(o)((r) => `bc-social-login-button--${r}`)
838
+ f(e)((r) => `bc-social-login-button--${r}`)
839
839
  ),
840
840
  i.span(
841
841
  t.class("bc-social-login-button__inner"),
842
842
  i.span(
843
843
  t.class("bc-social-login-button__icon"),
844
- po({ icon: l, size: c }, t.class("bc-social-login-button__icon-inner"))
844
+ de({ icon: l, size: c }, t.class("bc-social-login-button__icon-inner"))
845
845
  ),
846
846
  P(
847
847
  x,
848
848
  (r) => i.span(
849
849
  t.class("bc-social-login-button__label"),
850
- io(
850
+ ie(
851
851
  h(n?.continueWithProvider, r.$.continueWithProvider)
852
852
  )(m)
853
853
  )
@@ -855,17 +855,17 @@ function p({
855
855
  )
856
856
  );
857
857
  }
858
- function ko({
859
- providers: o,
860
- onProviderClick: e,
858
+ function ve({
859
+ providers: e,
860
+ onProviderClick: o,
861
861
  size: c = "md",
862
862
  className: m
863
863
  }) {
864
864
  return q(
865
865
  t.class("bc-social-login-buttons"),
866
866
  t.class(m),
867
- co(
868
- o,
867
+ ce(
868
+ e,
869
869
  (l) => p({
870
870
  provider: l.$.provider,
871
871
  flow: l.$.flow,
@@ -875,7 +875,7 @@ function ko({
875
875
  name: l.map(({ provider: a }) => d[a].name),
876
876
  icon: l.map(({ provider: a }) => d[a].icon),
877
877
  onClick: async () => {
878
- e && await e(l.$.provider.value);
878
+ o && await o(l.$.provider.value);
879
879
  },
880
880
  size: c
881
881
  })
@@ -1013,113 +1013,113 @@ const d = {
1013
1013
  color: "blue"
1014
1014
  // distinct deep blue tone (not Facebook’s exact blue)
1015
1015
  }
1016
- }, Wo = (o) => p({
1017
- ...o,
1016
+ }, Re = (e) => p({
1017
+ ...e,
1018
1018
  ...d.google,
1019
1019
  provider: "google"
1020
- }), Go = (o) => p({
1021
- ...o,
1020
+ }), We = (e) => p({
1021
+ ...e,
1022
1022
  ...d.github,
1023
1023
  provider: "github"
1024
- }), Ho = (o) => p({
1025
- ...o,
1024
+ }), Ge = (e) => p({
1025
+ ...e,
1026
1026
  ...d.apple,
1027
1027
  provider: "apple"
1028
- }), jo = (o) => p({
1029
- ...o,
1028
+ }), He = (e) => p({
1029
+ ...e,
1030
1030
  ...d.facebook,
1031
1031
  provider: "facebook"
1032
- }), Xo = (o) => p({
1033
- ...o,
1032
+ }), je = (e) => p({
1033
+ ...e,
1034
1034
  ...d.x,
1035
1035
  provider: "x"
1036
- }), Yo = (o) => p({
1037
- ...o,
1036
+ }), Xe = (e) => p({
1037
+ ...e,
1038
1038
  ...d.twitter,
1039
1039
  provider: "twitter"
1040
- }), Zo = (o) => p({
1041
- ...o,
1040
+ }), Ye = (e) => p({
1041
+ ...e,
1042
1042
  ...d.microsoft,
1043
1043
  provider: "microsoft"
1044
- }), Jo = (o) => p({
1045
- ...o,
1044
+ }), Ze = (e) => p({
1045
+ ...e,
1046
1046
  ...d.discord,
1047
1047
  provider: "discord"
1048
- }), Ko = (o) => p({
1049
- ...o,
1048
+ }), Je = (e) => p({
1049
+ ...e,
1050
1050
  ...d.linkedin,
1051
1051
  provider: "linkedin"
1052
- }), Qo = (o) => p({
1053
- ...o,
1052
+ }), Ke = (e) => p({
1053
+ ...e,
1054
1054
  ...d.instagram,
1055
1055
  provider: "instagram"
1056
- }), oe = (o) => p({
1057
- ...o,
1056
+ }), Qe = (e) => p({
1057
+ ...e,
1058
1058
  ...d.tiktok,
1059
1059
  provider: "tiktok"
1060
- }), ee = (o) => p({
1061
- ...o,
1060
+ }), eo = (e) => p({
1061
+ ...e,
1062
1062
  ...d.snapchat,
1063
1063
  provider: "snapchat"
1064
- }), te = (o) => p({
1065
- ...o,
1064
+ }), oo = (e) => p({
1065
+ ...e,
1066
1066
  ...d.reddit,
1067
1067
  provider: "reddit"
1068
- }), se = (o) => p({
1069
- ...o,
1068
+ }), to = (e) => p({
1069
+ ...e,
1070
1070
  ...d.pinterest,
1071
1071
  provider: "pinterest"
1072
- }), ne = (o) => p({
1073
- ...o,
1072
+ }), so = (e) => p({
1073
+ ...e,
1074
1074
  ...d.twitch,
1075
1075
  provider: "twitch"
1076
- }), ae = (o) => p({
1077
- ...o,
1076
+ }), no = (e) => p({
1077
+ ...e,
1078
1078
  ...d.steam,
1079
1079
  provider: "steam"
1080
- }), re = (o) => p({
1081
- ...o,
1080
+ }), ao = (e) => p({
1081
+ ...e,
1082
1082
  ...d.epic,
1083
1083
  provider: "epic"
1084
- }), ie = (o) => p({
1085
- ...o,
1084
+ }), ro = (e) => p({
1085
+ ...e,
1086
1086
  ...d.playstation,
1087
1087
  provider: "playstation"
1088
- }), ce = (o) => p({
1089
- ...o,
1088
+ }), io = (e) => p({
1089
+ ...e,
1090
1090
  ...d.xbox,
1091
1091
  provider: "xbox"
1092
- }), le = (o) => p({
1093
- ...o,
1092
+ }), co = (e) => p({
1093
+ ...e,
1094
1094
  ...d.whatsapp,
1095
1095
  provider: "whatsapp"
1096
- }), me = (o) => p({
1097
- ...o,
1096
+ }), lo = (e) => p({
1097
+ ...e,
1098
1098
  ...d.wechat,
1099
1099
  provider: "wechat"
1100
- }), ue = (o) => p({
1101
- ...o,
1100
+ }), mo = (e) => p({
1101
+ ...e,
1102
1102
  ...d.amazon,
1103
1103
  provider: "amazon"
1104
- }), de = (o) => p({
1105
- ...o,
1104
+ }), uo = (e) => p({
1105
+ ...e,
1106
1106
  ...d.yahoo,
1107
1107
  provider: "yahoo"
1108
- }), pe = (o) => p({
1109
- ...o,
1108
+ }), po = (e) => p({
1109
+ ...e,
1110
1110
  ...d.paypal,
1111
1111
  provider: "paypal"
1112
1112
  });
1113
- function eo({ providers: o }) {
1113
+ function oe({ providers: e }) {
1114
1114
  return q(
1115
- ko({
1116
- providers: o
1115
+ ve({
1116
+ providers: e
1117
1117
  })
1118
1118
  );
1119
1119
  }
1120
- function yo({
1121
- mode: o,
1122
- socialProviders: e,
1120
+ function ke({
1121
+ mode: e,
1122
+ socialProviders: o,
1123
1123
  passwordRules: c,
1124
1124
  showRememberMe: m,
1125
1125
  showSocialDivider: l,
@@ -1132,7 +1132,7 @@ function yo({
1132
1132
  // onSocialLogin,
1133
1133
  showContainer: _
1134
1134
  }, ...g) {
1135
- const b = o != null ? Q.deriveProp(o) : E("signin");
1135
+ const b = e != null ? Q.deriveProp(e) : E("signin");
1136
1136
  return b.on((k) => w?.(k)), P(x, (k) => {
1137
1137
  function C() {
1138
1138
  const y = h(s?.hasAccountLink, k.$.hasAccountLink);
@@ -1160,24 +1160,24 @@ function yo({
1160
1160
  );
1161
1161
  }
1162
1162
  return i.div(
1163
- go({
1163
+ he({
1164
1164
  "bc-auth-container": !0,
1165
1165
  "bc-auth-container--styled": Q.map(_ ?? !0, (y) => y)
1166
1166
  }),
1167
1167
  t.class(b.map((y) => `bc-auth-container--${y}`)),
1168
1168
  t.class("bc-auth-form"),
1169
1169
  U(b.dispose),
1170
- lo(b, {
1170
+ le(b, {
1171
1171
  signin: () => A(
1172
1172
  i.h2(
1173
1173
  t.class("bc-auth-form__title"),
1174
1174
  h(s?.signInTitle, k.$.signInTitle)
1175
1175
  ),
1176
- e != null ? A(
1177
- eo({ providers: e }),
1178
- L(l ?? !1, to)
1176
+ o != null ? A(
1177
+ oe({ providers: o }),
1178
+ L(l ?? !1, te)
1179
1179
  ) : null,
1180
- wo({
1180
+ be({
1181
1181
  onSignIn: n,
1182
1182
  showRememberMe: m,
1183
1183
  passwordRules: c,
@@ -1201,11 +1201,11 @@ function yo({
1201
1201
  t.class("bc-auth-form__title"),
1202
1202
  h(s?.signUpTitle, k.$.signUpTitle)
1203
1203
  ),
1204
- e != null ? A(
1205
- eo({ providers: e }),
1206
- L(l ?? !1, to)
1204
+ o != null ? A(
1205
+ oe({ providers: o }),
1206
+ L(l ?? !1, te)
1207
1207
  ) : null,
1208
- Lo({
1208
+ _e({
1209
1209
  labels: {
1210
1210
  nameLabel: s?.nameLabel,
1211
1211
  emailLabel: s?.emailLabel,
@@ -1226,7 +1226,7 @@ function yo({
1226
1226
  t.class("bc-auth-form__title"),
1227
1227
  h(s?.resetPasswordTitle, k.$.resetPasswordTitle)
1228
1228
  ),
1229
- vo({
1229
+ Le({
1230
1230
  labels: {
1231
1231
  backToSignInLink: s?.backToSignInLink,
1232
1232
  emailLabel: s?.emailLabel,
@@ -1242,16 +1242,16 @@ function yo({
1242
1242
  );
1243
1243
  });
1244
1244
  }
1245
- function he(o) {
1246
- return ho(
1245
+ function ho(e) {
1246
+ return pe(
1247
1247
  {
1248
1248
  size: "sm",
1249
1249
  dismissable: !0,
1250
1250
  showCloseButton: !0
1251
1251
  },
1252
- (e, c) => o(
1253
- (m) => e({
1254
- body: yo({ showContainer: !1, ...m }),
1252
+ (o, c) => e(
1253
+ (m) => o({
1254
+ body: ke({ showContainer: !1, ...m }),
1255
1255
  header: P(
1256
1256
  x,
1257
1257
  (l) => h(m.modalTitle, l.$.authenticationTitle)
@@ -1260,85 +1260,85 @@ function he(o) {
1260
1260
  )
1261
1261
  );
1262
1262
  }
1263
- function to({
1264
- labels: o,
1265
- className: e
1263
+ function te({
1264
+ labels: e,
1265
+ className: o
1266
1266
  } = {}) {
1267
1267
  return i.div(
1268
1268
  t.class("bc-auth-divider"),
1269
- t.class(e),
1269
+ t.class(o),
1270
1270
  i.div(t.class("bc-auth-divider__line")),
1271
1271
  P(
1272
1272
  x,
1273
1273
  (c) => i.span(
1274
1274
  t.class("bc-auth-divider__text"),
1275
- h(o?.text, c.$.orDivider)
1275
+ h(e?.text, c.$.orDivider)
1276
1276
  )
1277
1277
  ),
1278
1278
  i.div(t.class("bc-auth-divider__line"))
1279
1279
  );
1280
1280
  }
1281
1281
  export {
1282
- ue as AmazonLoginButton,
1283
- Ho as AppleLoginButton,
1284
- yo as AuthContainer,
1285
- to as AuthDivider,
1286
- he as AuthModal,
1287
- Jo as DiscordLoginButton,
1288
- re as EpicLoginButton,
1289
- jo as FacebookLoginButton,
1290
- Go as GitHubLoginButton,
1291
- Wo as GoogleLoginButton,
1292
- Qo as InstagramLoginButton,
1293
- Ko as LinkedInLoginButton,
1294
- Zo as MicrosoftLoginButton,
1295
- No as PasswordStrengthBar,
1296
- _o as PasswordStrengthIndicator,
1297
- Ro as PasswordStrengthText,
1298
- pe as PayPalLoginButton,
1299
- se as PinterestLoginButton,
1300
- ie as PlayStationLoginButton,
1301
- te as RedditLoginButton,
1302
- vo as ResetPasswordForm,
1303
- wo as SignInForm,
1304
- Lo as SignUpForm,
1305
- ee as SnapchatLoginButton,
1282
+ mo as AmazonLoginButton,
1283
+ Ge as AppleLoginButton,
1284
+ ke as AuthContainer,
1285
+ te as AuthDivider,
1286
+ ho as AuthModal,
1287
+ Ze as DiscordLoginButton,
1288
+ ao as EpicLoginButton,
1289
+ He as FacebookLoginButton,
1290
+ We as GitHubLoginButton,
1291
+ Re as GoogleLoginButton,
1292
+ Ke as InstagramLoginButton,
1293
+ Je as LinkedInLoginButton,
1294
+ Ye as MicrosoftLoginButton,
1295
+ De as PasswordStrengthBar,
1296
+ we as PasswordStrengthIndicator,
1297
+ Ne as PasswordStrengthText,
1298
+ po as PayPalLoginButton,
1299
+ to as PinterestLoginButton,
1300
+ ro as PlayStationLoginButton,
1301
+ oo as RedditLoginButton,
1302
+ Le as ResetPasswordForm,
1303
+ be as SignInForm,
1304
+ _e as SignUpForm,
1305
+ eo as SnapchatLoginButton,
1306
1306
  p as SocialLoginButton,
1307
- ko as SocialLoginButtons,
1308
- eo as SocialProviders,
1309
- ae as SteamLoginButton,
1310
- oe as TiktokLoginButton,
1311
- ne as TwitchLoginButton,
1312
- Yo as TwitterLoginButton,
1313
- me as WeChatLoginButton,
1314
- le as WhatsAppLoginButton,
1315
- Xo as XLoginButtin,
1316
- ce as XboxLoginButton,
1317
- de as YahooLoginButton,
1318
- Fo as authSchemas,
1307
+ ve as SocialLoginButtons,
1308
+ oe as SocialProviders,
1309
+ no as SteamLoginButton,
1310
+ Qe as TiktokLoginButton,
1311
+ so as TwitchLoginButton,
1312
+ Xe as TwitterLoginButton,
1313
+ lo as WeChatLoginButton,
1314
+ co as WhatsAppLoginButton,
1315
+ je as XLoginButtin,
1316
+ io as XboxLoginButton,
1317
+ uo as YahooLoginButton,
1318
+ Ve as authSchemas,
1319
1319
  K as calculatePasswordStrength,
1320
1320
  Y as createPasswordSchema,
1321
1321
  Z as createSignInSchema,
1322
1322
  J as createSignUpSchema,
1323
- Co as createSocialLoginUrl,
1323
+ Ae as createSocialLoginUrl,
1324
1324
  B as defaultPasswordRules,
1325
- Vo as defaultSignInSchema,
1326
- Oo as defaultSignUpSchema,
1327
- O as emailSchema,
1328
- Eo as formatAuthError,
1329
- fo as formatProviderName,
1330
- To as formatSocialLoginText,
1331
- bo as generateRandomString,
1332
- Io as getProviderColor,
1333
- $o as getProviderIcon,
1334
- Uo as isBrowser,
1335
- Ao as isValidEmail,
1336
- zo as openSocialLoginPopup,
1325
+ Ue as defaultSignInSchema,
1326
+ Oe as defaultSignUpSchema,
1327
+ V as emailSchema,
1328
+ ze as formatAuthError,
1329
+ ge as formatProviderName,
1330
+ Ie as formatSocialLoginText,
1331
+ fe as generateRandomString,
1332
+ $e as getProviderColor,
1333
+ Be as getProviderIcon,
1334
+ Ee as isBrowser,
1335
+ Te as isValidEmail,
1336
+ Ce as openSocialLoginPopup,
1337
1337
  j as providerInfo,
1338
1338
  X as requestToControllerValidation,
1339
- no as resetPasswordSchema,
1339
+ ne as resetPasswordSchema,
1340
1340
  d as socialProviderInfo,
1341
- ao as useAuthEmailProp,
1342
- Mo as validateEmail,
1343
- Do as validatePassword
1341
+ ae as useAuthEmailProp,
1342
+ Fe as validateEmail,
1343
+ Me as validatePassword
1344
1344
  };