@singlebase/elements 0.5.0 → 0.7.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 (52) hide show
  1. package/dist/{authui-display-BCZBP7HR.js → authui-display-BM_F3-5e.js} +426 -436
  2. package/dist/authui-display-BM_F3-5e.js.map +1 -0
  3. package/dist/{authui-display-CLGFSqRi.cjs → authui-display-CMVHTNFz.cjs} +45 -65
  4. package/dist/authui-display-CMVHTNFz.cjs.map +1 -0
  5. package/dist/authui.cjs +1 -1
  6. package/dist/authui.js +2 -2
  7. package/dist/{chat-bXaRWel7.js → chat-BH_3e1jT.js} +2081 -1121
  8. package/dist/chat-BH_3e1jT.js.map +1 -0
  9. package/dist/chat-ezUmd9II.cjs +3281 -0
  10. package/dist/chat-ezUmd9II.cjs.map +1 -0
  11. package/dist/chat-messages.d.ts +19 -6
  12. package/dist/chat.cjs +1 -1
  13. package/dist/chat.d.ts +4 -3
  14. package/dist/chat.js +8 -6
  15. package/dist/elements/authui-base.d.ts +2 -0
  16. package/dist/elements/authui-buttons.d.ts +1 -1
  17. package/dist/elements/authui-display.d.ts +1 -1
  18. package/dist/elements/authui.d.ts +1 -1
  19. package/dist/elements/chat.d.ts +192 -11
  20. package/dist/elements/uploader.d.ts +8 -0
  21. package/dist/files-4T62wkwj.cjs +77 -0
  22. package/dist/files-4T62wkwj.cjs.map +1 -0
  23. package/dist/{files-BOwtpYyQ.js → files-DS-H-3yN.js} +93 -47
  24. package/dist/files-DS-H-3yN.js.map +1 -0
  25. package/dist/index.cjs +1 -1
  26. package/dist/index.js +24 -22
  27. package/dist/messages.d.ts +0 -2
  28. package/dist/singlebase-elements.min.js +3838 -2844
  29. package/dist/singlebase-elements.min.js.map +1 -1
  30. package/dist/styles/branding.d.ts +5 -0
  31. package/dist/styles/tokens.d.ts +2 -0
  32. package/dist/upload-messages.d.ts +0 -1
  33. package/dist/{uploader-DGV2y9uT.cjs → uploader-COP8PkJ6.cjs} +53 -76
  34. package/dist/uploader-COP8PkJ6.cjs.map +1 -0
  35. package/dist/{uploader-abQoem5q.js → uploader-tdMU9Gxv.js} +249 -253
  36. package/dist/uploader-tdMU9Gxv.js.map +1 -0
  37. package/dist/uploader.cjs +1 -1
  38. package/dist/uploader.js +2 -2
  39. package/dist/utils/branding.d.ts +8 -0
  40. package/dist/utils/markdown.d.ts +69 -12
  41. package/dist/utils/svg.d.ts +10 -0
  42. package/package.json +3 -3
  43. package/dist/authui-display-BCZBP7HR.js.map +0 -1
  44. package/dist/authui-display-CLGFSqRi.cjs.map +0 -1
  45. package/dist/chat-DRenTJlI.cjs +0 -3001
  46. package/dist/chat-DRenTJlI.cjs.map +0 -1
  47. package/dist/chat-bXaRWel7.js.map +0 -1
  48. package/dist/files-BOwtpYyQ.js.map +0 -1
  49. package/dist/files-DW8A4Jl-.cjs +0 -38
  50. package/dist/files-DW8A4Jl-.cjs.map +0 -1
  51. package/dist/uploader-DGV2y9uT.cjs.map +0 -1
  52. package/dist/uploader-abQoem5q.js.map +0 -1
@@ -1,18 +1,18 @@
1
- var ts = Object.defineProperty;
2
- var Te = (r) => {
1
+ var es = Object.defineProperty;
2
+ var Ue = (r) => {
3
3
  throw TypeError(r);
4
4
  };
5
- var es = (r, t, e) => t in r ? ts(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
6
- var b = (r, t, e) => es(r, typeof t != "symbol" ? t + "" : t, e), Ue = (r, t, e) => t.has(r) || Te("Cannot " + e);
7
- var n = (r, t, e) => (Ue(r, t, "read from private field"), e ? e.call(r) : t.get(r)), o = (r, t, e) => t.has(r) ? Te("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(r) : t.set(r, e), l = (r, t, e, s) => (Ue(r, t, "write to private field"), s ? s.call(r, e) : t.set(r, e), e);
8
- import { LitElement as ss, html as a, nothing as d, css as je } from "lit";
9
- import { property as p, state as m, customElement as fe } from "lit/decorators.js";
5
+ var ss = (r, t, e) => t in r ? es(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
6
+ var b = (r, t, e) => ss(r, typeof t != "symbol" ? t + "" : t, e), Le = (r, t, e) => t.has(r) || Ue("Cannot " + e);
7
+ var n = (r, t, e) => (Le(r, t, "read from private field"), e ? e.call(r) : t.get(r)), o = (r, t, e) => t.has(r) ? Ue("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(r) : t.set(r, e), l = (r, t, e, s) => (Le(r, t, "write to private field"), s ? s.call(r, e) : t.set(r, e), e);
8
+ import { LitElement as is, html as a, nothing as d, css as qe } from "lit";
9
+ import { property as p, state as m, customElement as we } from "lit/decorators.js";
10
10
  import { ifDefined as k } from "lit/directives/if-defined.js";
11
- import { SinglebaseAuthError as ye, mapErrorToHint as is, createFilesUploadApi as as, resolveScreen as rs } from "@singlebase/singlebase-sdk";
12
- import { s as ns, r as os } from "./uploader-abQoem5q.js";
13
- import { getDefaultClient as ls, AUTHUI_PROP_KEYS as hs, authUIAttributeFor as ds, matchesPredicate as cs, validatePredicate as us, getPath as Le } from "@singlebase/core";
14
- import { t as ps } from "./files-BOwtpYyQ.js";
15
- class gs {
11
+ import { SinglebaseAuthError as Ee, mapErrorToHint as as, createFilesUploadApi as rs, resolveScreen as ns } from "@singlebase/singlebase-sdk";
12
+ import { s as os, r as ls } from "./uploader-tdMU9Gxv.js";
13
+ import { t as hs, b as ds, j as cs } from "./files-DS-H-3yN.js";
14
+ import { getDefaultClient as us, AUTHUI_PROP_KEYS as ps, authUIAttributeFor as gs, matchesPredicate as ms, validatePredicate as bs, getPath as Ae } from "@singlebase/core";
15
+ class fs {
16
16
  constructor(t) {
17
17
  b(this, "host");
18
18
  b(this, "client", null);
@@ -31,7 +31,7 @@ class gs {
31
31
  (t = this.unsubscribe) == null || t.call(this), this.unsubscribe = null;
32
32
  }
33
33
  }
34
- const Ae = {
34
+ const Me = {
35
35
  signInTitle: "Sign in",
36
36
  signUpTitle: "Create your account",
37
37
  forgotTitle: "Reset your password",
@@ -161,29 +161,29 @@ const Ae = {
161
161
  changeEmailElsewhereHint: "Your email is changed below, with a verification step.",
162
162
  confirmChangeCta: "Confirm change",
163
163
  codeLabel: "Verification code",
164
- brandingLabel: "Auth by Singlebase",
165
164
  linkRequiresSignIn: "Sign in first, then link a provider.",
166
165
  oauthCallbackTitle: "Finishing sign-in",
167
166
  oauthCallbackSub: "One moment while we complete your sign-in.",
168
167
  oauthDenied: "Sign-in was cancelled or denied."
169
168
  };
170
- function ms(r) {
171
- return r ? { ...Ae, ...r } : Ae;
169
+ function vs(r) {
170
+ return r ? { ...Me, ...r } : Me;
172
171
  }
173
- var bs = Object.defineProperty, fs = Object.getOwnPropertyDescriptor, ve = (r, t, e, s) => {
174
- for (var i = fs(t, e), h = r.length - 1, c; h >= 0; h--)
172
+ var ws = Object.defineProperty, $s = Object.getOwnPropertyDescriptor, _ = (r, t, e, s) => {
173
+ for (var i = $s(t, e), h = r.length - 1, c; h >= 0; h--)
175
174
  (c = r[h]) && (i = c(t, e, i) || i);
176
- return i && bs(t, e, i), i;
177
- }, x, T, U, L, A;
178
- class $ extends ss {
175
+ return i && ws(t, e, i), i;
176
+ }, x, U, L, A, M, N;
177
+ class $ extends is {
179
178
  constructor() {
180
179
  super(...arguments);
181
180
  o(this, x, null);
182
- o(this, T, {});
183
- o(this, U);
181
+ o(this, U, {});
184
182
  o(this, L);
185
183
  o(this, A);
186
- b(this, "auth", new gs(this));
184
+ o(this, M);
185
+ o(this, N);
186
+ b(this, "auth", new fs(this));
187
187
  /** Config keys already applied, so a later render does not fight the host. */
188
188
  b(this, "appliedConfig", /* @__PURE__ */ new Set());
189
189
  }
@@ -194,28 +194,34 @@ class $ extends ss {
194
194
  l(this, x, e);
195
195
  }
196
196
  get messages() {
197
- return n(this, T);
197
+ return n(this, U);
198
198
  }
199
199
  set messages(e) {
200
- l(this, T, e);
200
+ l(this, U, e);
201
201
  }
202
202
  get theme() {
203
- return n(this, U);
203
+ return n(this, L);
204
204
  }
205
205
  set theme(e) {
206
- l(this, U, e);
206
+ l(this, L, e);
207
207
  }
208
208
  get density() {
209
- return n(this, L);
209
+ return n(this, A);
210
210
  }
211
211
  set density(e) {
212
- l(this, L, e);
212
+ l(this, A, e);
213
213
  }
214
214
  get fieldStyle() {
215
- return n(this, A);
215
+ return n(this, M);
216
216
  }
217
217
  set fieldStyle(e) {
218
- l(this, A, e);
218
+ l(this, M, e);
219
+ }
220
+ get radius() {
221
+ return n(this, N);
222
+ }
223
+ set radius(e) {
224
+ l(this, N, e);
219
225
  }
220
226
  /**
221
227
  * Resolution order: an explicit `.client`, then the page's default
@@ -231,7 +237,7 @@ class $ extends ss {
231
237
  */
232
238
  get resolvedClient() {
233
239
  var e;
234
- return this.client ? this.client : ((e = ls()) == null ? void 0 : e.auth) ?? null;
240
+ return this.client ? this.client : ((e = us()) == null ? void 0 : e.auth) ?? null;
235
241
  }
236
242
  /** Page-wide UI config from SinglebaseClient({ authui }), if there is one. */
237
243
  get uiConfig() {
@@ -245,7 +251,7 @@ class $ extends ss {
245
251
  get msg() {
246
252
  var s;
247
253
  const e = (s = this.uiConfig) == null ? void 0 : s.messages;
248
- return ms(e ? { ...e, ...this.messages } : this.messages);
254
+ return vs(e ? { ...e, ...this.messages } : this.messages);
249
255
  }
250
256
  /**
251
257
  * Copies the page-wide config onto this element.
@@ -259,9 +265,9 @@ class $ extends ss {
259
265
  applyUIConfig() {
260
266
  const e = this.uiConfig;
261
267
  if (e) {
262
- for (const s of hs) {
268
+ for (const s of ps) {
263
269
  const i = e[s];
264
- i !== void 0 && s in this && (this.hasAttribute(ds(s)) || this.appliedConfig.has(s) || (this.appliedConfig.add(s), this[s] = i));
270
+ i !== void 0 && s in this && (this.hasAttribute(gs(s)) || this.appliedConfig.has(s) || (this.appliedConfig.add(s), this[s] = i));
265
271
  }
266
272
  for (const [s, i] of Object.entries(e.tokens ?? {}))
267
273
  s.startsWith("--") && (this.style.getPropertyValue(s) || this.style.setProperty(s, i));
@@ -288,23 +294,26 @@ class $ extends ss {
288
294
  super.willUpdate(e), this.auth.bind(this.resolvedClient), this.applyUIConfig();
289
295
  }
290
296
  }
291
- x = new WeakMap(), T = new WeakMap(), U = new WeakMap(), L = new WeakMap(), A = new WeakMap(), b($, "styles", [ps, ns]);
292
- ve([
297
+ x = new WeakMap(), U = new WeakMap(), L = new WeakMap(), A = new WeakMap(), M = new WeakMap(), N = new WeakMap(), b($, "styles", [hs, os]);
298
+ _([
293
299
  p({ attribute: !1 })
294
300
  ], $.prototype, "client");
295
- ve([
301
+ _([
296
302
  p({ attribute: !1 })
297
303
  ], $.prototype, "messages");
298
- ve([
304
+ _([
299
305
  p({ reflect: !0 })
300
306
  ], $.prototype, "theme");
301
- ve([
307
+ _([
302
308
  p({ reflect: !0 })
303
309
  ], $.prototype, "density");
304
- ve([
310
+ _([
305
311
  p({ reflect: !0, attribute: "field-style" })
306
312
  ], $.prototype, "fieldStyle");
307
- class Se {
313
+ _([
314
+ p({ reflect: !0 })
315
+ ], $.prototype, "radius");
316
+ class Ce {
308
317
  constructor(t) {
309
318
  b(this, "host");
310
319
  b(this, "client", null);
@@ -330,7 +339,7 @@ class Se {
330
339
  });
331
340
  }
332
341
  }
333
- const vs = [
342
+ const ys = [
334
343
  "load",
335
344
  "success",
336
345
  "error",
@@ -345,7 +354,7 @@ const vs = [
345
354
  "expired",
346
355
  "navigate",
347
356
  "goto"
348
- ], ws = {
357
+ ], Es = {
349
358
  load: "auth:ready",
350
359
  signin: "auth:signin",
351
360
  signup: "auth:signup",
@@ -355,31 +364,31 @@ const vs = [
355
364
  error: "auth:error",
356
365
  navigate: "auth:navigate"
357
366
  };
358
- function Me(r) {
367
+ function Ne(r) {
359
368
  return "on" + r.replace(/(^|-)([a-z])/g, (t, e, s) => s.toUpperCase());
360
369
  }
361
- class $s {
370
+ class Ss {
362
371
  constructor(t) {
363
372
  b(this, "unsubscribes", []);
364
373
  b(this, "client", null);
365
374
  this.host = t, t.addController(this);
366
375
  }
367
376
  bind(t) {
368
- t !== this.client && (this.release(), this.client = t, t && (this.unsubscribes = vs.map(
377
+ t !== this.client && (this.release(), this.client = t, t && (this.unsubscribes = ys.map(
369
378
  (e) => t.on(e, (s) => this.publish(e, s))
370
379
  )));
371
380
  }
372
381
  publish(t, e) {
373
- const s = this.host[Me(t)];
382
+ const s = this.host[Ne(t)];
374
383
  if (typeof s == "function")
375
384
  try {
376
385
  s.call(this.host, e);
377
386
  } catch (c) {
378
- console.error(`[singlebase] ${Me(t)} threw:`, c);
387
+ console.error(`[singlebase] ${Ne(t)} threw:`, c);
379
388
  }
380
389
  const i = { detail: e, bubbles: !0, composed: !0 };
381
390
  this.host.dispatchEvent(new CustomEvent(`singlebase-${t}`, i));
382
- const h = ws[t];
391
+ const h = Es[t];
383
392
  h && this.host.dispatchEvent(new CustomEvent(h, i));
384
393
  }
385
394
  release() {
@@ -389,36 +398,36 @@ class $s {
389
398
  this.release(), this.client = null;
390
399
  }
391
400
  }
392
- var ys = Object.defineProperty, Es = Object.getOwnPropertyDescriptor, Ce = (r, t, e, s) => {
393
- for (var i = Es(t, e), h = r.length - 1, c; h >= 0; h--)
401
+ var Cs = Object.defineProperty, Ps = Object.getOwnPropertyDescriptor, Pe = (r, t, e, s) => {
402
+ for (var i = Ps(t, e), h = r.length - 1, c; h >= 0; h--)
394
403
  (c = r[h]) && (i = c(t, e, i) || i);
395
- return i && ys(t, e, i), i;
396
- }, M, N, I;
397
- class we extends $ {
404
+ return i && Cs(t, e, i), i;
405
+ }, I, F, D;
406
+ class $e extends $ {
398
407
  constructor() {
399
408
  super(...arguments);
400
- o(this, M, "idle");
401
- o(this, N, "");
402
- o(this, I, "");
409
+ o(this, I, "idle");
410
+ o(this, F, "");
411
+ o(this, D, "");
403
412
  b(this, "abortController", null);
404
413
  }
405
414
  get phase() {
406
- return n(this, M);
415
+ return n(this, I);
407
416
  }
408
417
  set phase(e) {
409
- l(this, M, e);
418
+ l(this, I, e);
410
419
  }
411
420
  get formError() {
412
- return n(this, N);
421
+ return n(this, F);
413
422
  }
414
423
  set formError(e) {
415
- l(this, N, e);
424
+ l(this, F, e);
416
425
  }
417
426
  get noticeMessage() {
418
- return n(this, I);
427
+ return n(this, D);
419
428
  }
420
429
  set noticeMessage(e) {
421
- l(this, I, e);
430
+ l(this, D, e);
422
431
  }
423
432
  disconnectedCallback() {
424
433
  var e;
@@ -442,8 +451,8 @@ class we extends $ {
442
451
  return e instanceof DOMException && e.name === "AbortError";
443
452
  }
444
453
  describeError(e) {
445
- if (e instanceof ye) {
446
- const s = is(e.code);
454
+ if (e instanceof Ee) {
455
+ const s = as(e.code);
447
456
  return s === "disable_retry_show_rate_limited" ? this.msg.rateLimitedMessage : s === "generic_credentials_message" ? this.msg.genericErrorMessage : this.msg.genericErrorMessage;
448
457
  }
449
458
  return this.msg.genericErrorMessage;
@@ -467,63 +476,63 @@ class we extends $ {
467
476
  `;
468
477
  }
469
478
  }
470
- M = new WeakMap(), N = new WeakMap(), I = new WeakMap();
471
- Ce([
479
+ I = new WeakMap(), F = new WeakMap(), D = new WeakMap();
480
+ Pe([
472
481
  m()
473
- ], we.prototype, "phase");
474
- Ce([
482
+ ], $e.prototype, "phase");
483
+ Pe([
475
484
  m()
476
- ], we.prototype, "formError");
477
- Ce([
485
+ ], $e.prototype, "formError");
486
+ Pe([
478
487
  m()
479
- ], we.prototype, "noticeMessage");
480
- function qe(r) {
488
+ ], $e.prototype, "noticeMessage");
489
+ function Ve(r) {
481
490
  return [r == null ? void 0 : r.first_name, r == null ? void 0 : r.last_name].filter(Boolean).join(" ").trim();
482
491
  }
483
492
  function Ge(r) {
484
- const t = qe(r);
493
+ const t = Ve(r);
485
494
  if (t)
486
495
  return t.split(/\s+/).map((s) => s[0]).join("").slice(0, 2).toUpperCase();
487
496
  const e = (r == null ? void 0 : r.email) ?? "";
488
497
  return e ? e[0].toUpperCase() : "·";
489
498
  }
490
- var Ss = Object.defineProperty, Cs = Object.getOwnPropertyDescriptor, v = (r, t, e, s) => {
491
- for (var i = s > 1 ? void 0 : s ? Cs(t, e) : t, h = r.length - 1, c; h >= 0; h--)
499
+ var ks = Object.defineProperty, _s = Object.getOwnPropertyDescriptor, v = (r, t, e, s) => {
500
+ for (var i = s > 1 ? void 0 : s ? _s(t, e) : t, h = r.length - 1, c; h >= 0; h--)
492
501
  (c = r[h]) && (i = (s ? c(t, e, i) : c(i)) || i);
493
- return s && i && Ss(t, e, i), i;
502
+ return s && i && ks(t, e, i), i;
494
503
  };
495
- const Ps = { profile_photo: !0 }, ks = ".jpg,.jpeg,.png,.webp,image/jpeg,image/png,image/webp";
496
- var F, D, B, R, H, j, q, G, V, K, Y, W, z, J, Q, X, Z, tt, et, st, it, at, rt, nt, ot, lt, Fe;
497
- let f = (Fe = class extends we {
504
+ const Os = { profile_photo: !0 }, Ts = ".jpg,.jpeg,.png,.webp,image/jpeg,image/png,image/webp";
505
+ var B, R, j, H, q, V, G, K, Y, W, z, J, Q, X, Z, tt, et, st, it, at, rt, nt, ot, lt, ht, dt, De;
506
+ let f = (De = class extends $e {
498
507
  constructor() {
499
508
  super(...arguments);
500
- o(this, F, "");
501
- o(this, D, "");
502
- o(this, B, null);
503
- o(this, R, "singlebase-oauth-nonce");
504
- o(this, H, "");
505
- o(this, j, "");
506
- o(this, q, !1);
507
- o(this, G, "");
509
+ o(this, B, "");
510
+ o(this, R, "");
511
+ o(this, j, null);
512
+ o(this, H, "singlebase-oauth-nonce");
513
+ o(this, q, "");
508
514
  o(this, V, "");
515
+ o(this, G, !1);
509
516
  o(this, K, "");
510
517
  o(this, Y, "");
511
518
  o(this, W, "");
512
- o(this, z, 0);
519
+ o(this, z, "");
513
520
  o(this, J, "");
514
- o(this, Q, "");
521
+ o(this, Q, 0);
515
522
  o(this, X, "");
516
523
  o(this, Z, "");
517
524
  o(this, tt, "");
518
- o(this, et, "request");
525
+ o(this, et, "");
519
526
  o(this, st, "");
520
- o(this, it, "");
527
+ o(this, it, "request");
521
528
  o(this, at, "");
522
529
  o(this, rt, "");
523
530
  o(this, nt, "");
524
531
  o(this, ot, "");
525
532
  o(this, lt, "");
526
- b(this, "settingsCtl", new Se(this));
533
+ o(this, ht, "");
534
+ o(this, dt, "");
535
+ b(this, "settingsCtl", new Ce(this));
527
536
  b(this, "flashTimer");
528
537
  b(this, "uidBase", `sb-acct-${Math.random().toString(36).slice(2, 8)}`);
529
538
  // ── profile photo ─────────────────────────────────────────
@@ -553,160 +562,160 @@ let f = (Fe = class extends we {
553
562
  });
554
563
  }
555
564
  get logoText() {
556
- return n(this, F);
565
+ return n(this, B);
557
566
  }
558
567
  set logoText(t) {
559
- l(this, F, t);
568
+ l(this, B, t);
560
569
  }
561
570
  get logoUrl() {
562
- return n(this, D);
571
+ return n(this, R);
563
572
  }
564
573
  set logoUrl(t) {
565
- l(this, D, t);
574
+ l(this, R, t);
566
575
  }
567
576
  get settings() {
568
- return n(this, B);
577
+ return n(this, j);
569
578
  }
570
579
  set settings(t) {
571
- l(this, B, t);
580
+ l(this, j, t);
572
581
  }
573
582
  get nonceStorageKey() {
574
- return n(this, R);
583
+ return n(this, H);
575
584
  }
576
585
  set nonceStorageKey(t) {
577
- l(this, R, t);
586
+ l(this, H, t);
578
587
  }
579
588
  get editMode() {
580
- return n(this, H);
589
+ return n(this, q);
581
590
  }
582
591
  set editMode(t) {
583
- l(this, H, t);
592
+ l(this, q, t);
584
593
  }
585
594
  get toast() {
586
- return n(this, j);
595
+ return n(this, V);
587
596
  }
588
597
  set toast(t) {
589
- l(this, j, t);
598
+ l(this, V, t);
590
599
  }
591
600
  get photoBusy() {
592
- return n(this, q);
601
+ return n(this, G);
593
602
  }
594
603
  set photoBusy(t) {
595
- l(this, q, t);
604
+ l(this, G, t);
596
605
  }
597
606
  get photoFailed() {
598
- return n(this, G);
607
+ return n(this, K);
599
608
  }
600
609
  set photoFailed(t) {
601
- l(this, G, t);
610
+ l(this, K, t);
602
611
  }
603
612
  get profileSaved() {
604
- return n(this, V);
613
+ return n(this, Y);
605
614
  }
606
615
  set profileSaved(t) {
607
- l(this, V, t);
616
+ l(this, Y, t);
608
617
  }
609
618
  get passSaved() {
610
- return n(this, K);
619
+ return n(this, W);
611
620
  }
612
621
  set passSaved(t) {
613
- l(this, K, t);
622
+ l(this, W, t);
614
623
  }
615
624
  get profileError() {
616
- return n(this, Y);
625
+ return n(this, z);
617
626
  }
618
627
  set profileError(t) {
619
- l(this, Y, t);
628
+ l(this, z, t);
620
629
  }
621
630
  get newPassError() {
622
- return n(this, W);
631
+ return n(this, J);
623
632
  }
624
633
  set newPassError(t) {
625
- l(this, W, t);
634
+ l(this, J, t);
626
635
  }
627
636
  get deleteStage() {
628
- return n(this, z);
637
+ return n(this, Q);
629
638
  }
630
639
  set deleteStage(t) {
631
- l(this, z, t);
640
+ l(this, Q, t);
632
641
  }
633
642
  get confirmText() {
634
- return n(this, J);
643
+ return n(this, X);
635
644
  }
636
645
  set confirmText(t) {
637
- l(this, J, t);
646
+ l(this, X, t);
638
647
  }
639
648
  get dFirst() {
640
- return n(this, Q);
649
+ return n(this, Z);
641
650
  }
642
651
  set dFirst(t) {
643
- l(this, Q, t);
652
+ l(this, Z, t);
644
653
  }
645
654
  get dLast() {
646
- return n(this, X);
655
+ return n(this, tt);
647
656
  }
648
657
  set dLast(t) {
649
- l(this, X, t);
658
+ l(this, tt, t);
650
659
  }
651
660
  get dPhone() {
652
- return n(this, Z);
661
+ return n(this, et);
653
662
  }
654
663
  set dPhone(t) {
655
- l(this, Z, t);
664
+ l(this, et, t);
656
665
  }
657
666
  get dEmail() {
658
- return n(this, tt);
667
+ return n(this, st);
659
668
  }
660
669
  set dEmail(t) {
661
- l(this, tt, t);
670
+ l(this, st, t);
662
671
  }
663
672
  get emailStep() {
664
- return n(this, et);
673
+ return n(this, it);
665
674
  }
666
675
  set emailStep(t) {
667
- l(this, et, t);
676
+ l(this, it, t);
668
677
  }
669
678
  get dNewEmail() {
670
- return n(this, st);
679
+ return n(this, at);
671
680
  }
672
681
  set dNewEmail(t) {
673
- l(this, st, t);
682
+ l(this, at, t);
674
683
  }
675
684
  get emailCode() {
676
- return n(this, it);
685
+ return n(this, rt);
677
686
  }
678
687
  set emailCode(t) {
679
- l(this, it, t);
688
+ l(this, rt, t);
680
689
  }
681
690
  get emailError() {
682
- return n(this, at);
691
+ return n(this, nt);
683
692
  }
684
693
  set emailError(t) {
685
- l(this, at, t);
694
+ l(this, nt, t);
686
695
  }
687
696
  get emailSaved() {
688
- return n(this, rt);
697
+ return n(this, ot);
689
698
  }
690
699
  set emailSaved(t) {
691
- l(this, rt, t);
700
+ l(this, ot, t);
692
701
  }
693
702
  get curPass() {
694
- return n(this, nt);
703
+ return n(this, lt);
695
704
  }
696
705
  set curPass(t) {
697
- l(this, nt, t);
706
+ l(this, lt, t);
698
707
  }
699
708
  get newPass() {
700
- return n(this, ot);
709
+ return n(this, ht);
701
710
  }
702
711
  set newPass(t) {
703
- l(this, ot, t);
712
+ l(this, ht, t);
704
713
  }
705
714
  get confirmPass() {
706
- return n(this, lt);
715
+ return n(this, dt);
707
716
  }
708
717
  set confirmPass(t) {
709
- l(this, lt, t);
718
+ l(this, dt, t);
710
719
  }
711
720
  uid(t) {
712
721
  return `${this.uidBase}-${t}`;
@@ -736,7 +745,7 @@ let f = (Fe = class extends we {
736
745
  return t.status === "authenticated" ? t.user : null;
737
746
  }
738
747
  get fullName() {
739
- return qe(this.user);
748
+ return Ve(this.user);
740
749
  }
741
750
  get initials() {
742
751
  return Ge(this.user);
@@ -748,7 +757,7 @@ let f = (Fe = class extends we {
748
757
  */
749
758
  get uploadClient() {
750
759
  const t = this.resolvedClient;
751
- return t ? (this.uploadClientFor !== t && (this.uploadClientFor = t, this.uploadClientCache = { files: as(t.dispatcher) }), this.uploadClientCache) : null;
760
+ return t ? (this.uploadClientFor !== t && (this.uploadClientFor = t, this.uploadClientCache = { files: rs(t.dispatcher) }), this.uploadClientCache) : null;
752
761
  }
753
762
  startProfileEdit() {
754
763
  const t = this.user;
@@ -1015,9 +1024,9 @@ let f = (Fe = class extends we {
1015
1024
  view="button"
1016
1025
  max-files="1"
1017
1026
  branding="false"
1018
- accept=${ks}
1027
+ accept=${Ts}
1019
1028
  .client=${this.uploadClient}
1020
- .options=${Ps}
1029
+ .options=${Os}
1021
1030
  @singlebase-upload-selected=${this.onPhotoSelected}
1022
1031
  @singlebase-upload-complete=${this.onPhotoUploaded}
1023
1032
  @singlebase-upload-error=${this.onPhotoProblem}
@@ -1332,7 +1341,7 @@ let f = (Fe = class extends we {
1332
1341
  </div>
1333
1342
  ` : a`<p class="disabled-note">Not signed in.</p>`;
1334
1343
  }
1335
- }, F = new WeakMap(), D = new WeakMap(), B = new WeakMap(), R = new WeakMap(), H = new WeakMap(), j = new WeakMap(), q = new WeakMap(), G = new WeakMap(), V = new WeakMap(), K = new WeakMap(), Y = new WeakMap(), W = new WeakMap(), z = new WeakMap(), J = new WeakMap(), Q = new WeakMap(), X = new WeakMap(), Z = new WeakMap(), tt = new WeakMap(), et = new WeakMap(), st = new WeakMap(), it = new WeakMap(), at = new WeakMap(), rt = new WeakMap(), nt = new WeakMap(), ot = new WeakMap(), lt = new WeakMap(), Fe);
1344
+ }, B = new WeakMap(), R = new WeakMap(), j = new WeakMap(), H = new WeakMap(), q = new WeakMap(), V = new WeakMap(), G = new WeakMap(), K = new WeakMap(), Y = new WeakMap(), W = new WeakMap(), z = new WeakMap(), J = new WeakMap(), Q = new WeakMap(), X = new WeakMap(), Z = new WeakMap(), tt = new WeakMap(), et = new WeakMap(), st = new WeakMap(), it = new WeakMap(), at = new WeakMap(), rt = new WeakMap(), nt = new WeakMap(), ot = new WeakMap(), lt = new WeakMap(), ht = new WeakMap(), dt = new WeakMap(), De);
1336
1345
  v([
1337
1346
  p({ attribute: "logo-text" })
1338
1347
  ], f.prototype, "logoText", 1);
@@ -1412,66 +1421,66 @@ v([
1412
1421
  m()
1413
1422
  ], f.prototype, "confirmPass", 1);
1414
1423
  f = v([
1415
- fe("singlebase-authui-account")
1424
+ we("singlebase-authui-account")
1416
1425
  ], f);
1417
- var _s = Object.defineProperty, Os = Object.getOwnPropertyDescriptor, C = (r, t, e, s) => {
1418
- for (var i = s > 1 ? void 0 : s ? Os(t, e) : t, h = r.length - 1, c; h >= 0; h--)
1426
+ var xs = Object.defineProperty, Us = Object.getOwnPropertyDescriptor, C = (r, t, e, s) => {
1427
+ for (var i = s > 1 ? void 0 : s ? Us(t, e) : t, h = r.length - 1, c; h >= 0; h--)
1419
1428
  (c = r[h]) && (i = (s ? c(t, e, i) : c(i)) || i);
1420
- return s && i && _s(t, e, i), i;
1421
- }, ht, dt, ct, ut, pt, gt, mt, De;
1422
- let E = (De = class extends we {
1429
+ return s && i && xs(t, e, i), i;
1430
+ }, ct, ut, pt, gt, mt, bt, ft, Be;
1431
+ let E = (Be = class extends $e {
1423
1432
  constructor() {
1424
1433
  super(...arguments);
1425
- o(this, ht, "signout");
1426
- o(this, dt, "signin");
1427
- o(this, ct, "");
1428
- o(this, ut, "");
1429
- o(this, pt, !1);
1430
- o(this, gt, null);
1431
- o(this, mt, "singlebase-oauth-nonce");
1432
- b(this, "settingsCtl", new Se(this));
1434
+ o(this, ct, "signout");
1435
+ o(this, ut, "signin");
1436
+ o(this, pt, "");
1437
+ o(this, gt, "");
1438
+ o(this, mt, !1);
1439
+ o(this, bt, null);
1440
+ o(this, ft, "singlebase-oauth-nonce");
1441
+ b(this, "settingsCtl", new Ce(this));
1433
1442
  }
1434
1443
  get type() {
1435
- return n(this, ht);
1444
+ return n(this, ct);
1436
1445
  }
1437
1446
  set type(t) {
1438
- l(this, ht, t);
1447
+ l(this, ct, t);
1439
1448
  }
1440
1449
  get intent() {
1441
- return n(this, dt);
1450
+ return n(this, ut);
1442
1451
  }
1443
1452
  set intent(t) {
1444
- l(this, dt, t);
1453
+ l(this, ut, t);
1445
1454
  }
1446
1455
  get provider() {
1447
- return n(this, ct);
1456
+ return n(this, pt);
1448
1457
  }
1449
1458
  set provider(t) {
1450
- l(this, ct, t);
1459
+ l(this, pt, t);
1451
1460
  }
1452
1461
  get providerName() {
1453
- return n(this, ut);
1462
+ return n(this, gt);
1454
1463
  }
1455
1464
  set providerName(t) {
1456
- l(this, ut, t);
1465
+ l(this, gt, t);
1457
1466
  }
1458
1467
  get embedded() {
1459
- return n(this, pt);
1468
+ return n(this, mt);
1460
1469
  }
1461
1470
  set embedded(t) {
1462
- l(this, pt, t);
1471
+ l(this, mt, t);
1463
1472
  }
1464
1473
  get settings() {
1465
- return n(this, gt);
1474
+ return n(this, bt);
1466
1475
  }
1467
1476
  set settings(t) {
1468
- l(this, gt, t);
1477
+ l(this, bt, t);
1469
1478
  }
1470
1479
  get nonceStorageKey() {
1471
- return n(this, mt);
1480
+ return n(this, ft);
1472
1481
  }
1473
1482
  set nonceStorageKey(t) {
1474
- l(this, mt, t);
1483
+ l(this, ft, t);
1475
1484
  }
1476
1485
  willUpdate(t) {
1477
1486
  super.willUpdate(t), this.type === "oauth" && this.settingsCtl.load(this.resolvedClient, this.settings);
@@ -1510,9 +1519,9 @@ let E = (De = class extends we {
1510
1519
  h = w.session.id_token, c = w.session.refresh_token;
1511
1520
  }
1512
1521
  await this.run(async () => {
1513
- var $e;
1522
+ var ye;
1514
1523
  const w = await i.createOAuthNonce(this.signal);
1515
- ($e = globalThis.sessionStorage) == null || $e.setItem(this.nonceStorageKey, w);
1524
+ (ye = globalThis.sessionStorage) == null || ye.setItem(this.nonceStorageKey, w);
1516
1525
  const { oauth_redirect_url: y } = await i.startOAuth(
1517
1526
  {
1518
1527
  provider: t,
@@ -1618,7 +1627,7 @@ let E = (De = class extends we {
1618
1627
  render() {
1619
1628
  return this.type === "oauth" ? this.renderOAuth() : this.type === "link" ? this.renderLink() : this.renderSignOut();
1620
1629
  }
1621
- }, ht = new WeakMap(), dt = new WeakMap(), ct = new WeakMap(), ut = new WeakMap(), pt = new WeakMap(), gt = new WeakMap(), mt = new WeakMap(), De);
1630
+ }, ct = new WeakMap(), ut = new WeakMap(), pt = new WeakMap(), gt = new WeakMap(), mt = new WeakMap(), bt = new WeakMap(), ft = new WeakMap(), Be);
1622
1631
  C([
1623
1632
  p()
1624
1633
  ], E.prototype, "type", 1);
@@ -1641,14 +1650,14 @@ C([
1641
1650
  p({ attribute: "nonce-storage-key" })
1642
1651
  ], E.prototype, "nonceStorageKey", 1);
1643
1652
  E = C([
1644
- fe("singlebase-authui-buttons")
1653
+ we("singlebase-authui-buttons")
1645
1654
  ], E);
1646
- var Ve = Object.defineProperty, xs = Object.getOwnPropertyDescriptor, Ts = (r, t, e) => t in r ? Ve(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e, g = (r, t, e, s) => {
1647
- for (var i = s > 1 ? void 0 : s ? xs(t, e) : t, h = r.length - 1, c; h >= 0; h--)
1655
+ var Ke = Object.defineProperty, Ls = Object.getOwnPropertyDescriptor, As = (r, t, e) => t in r ? Ke(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e, g = (r, t, e, s) => {
1656
+ for (var i = s > 1 ? void 0 : s ? Ls(t, e) : t, h = r.length - 1, c; h >= 0; h--)
1648
1657
  (c = r[h]) && (i = (s ? c(t, e, i) : c(i)) || i);
1649
- return s && i && Ve(t, e, i), i;
1650
- }, Us = (r, t, e) => Ts(r, t + "", e);
1651
- const Ke = [
1658
+ return s && i && Ke(t, e, i), i;
1659
+ }, Ms = (r, t, e) => As(r, t + "", e);
1660
+ const Ye = [
1652
1661
  "signin",
1653
1662
  "signup",
1654
1663
  "forgot",
@@ -1656,15 +1665,15 @@ const Ke = [
1656
1665
  "otp",
1657
1666
  "newpass",
1658
1667
  "invite"
1659
- ], Ye = ["account"], Ls = [...Ke, ...Ye, "oauth-callback"];
1660
- function Ne(r) {
1661
- return Ke.includes(r);
1662
- }
1663
- function As(r) {
1668
+ ], We = ["account"], Ns = [...Ye, ...We, "oauth-callback"];
1669
+ function Ie(r) {
1664
1670
  return Ye.includes(r);
1665
1671
  }
1666
- function Ie(r) {
1667
- return Ls.includes(r);
1672
+ function Is(r) {
1673
+ return We.includes(r);
1674
+ }
1675
+ function Fe(r) {
1676
+ return Ns.includes(r);
1668
1677
  }
1669
1678
  const P = {
1670
1679
  // An absent attribute must mean "default" (true), not false. Lit calls
@@ -1674,62 +1683,62 @@ const P = {
1674
1683
  fromAttribute: (r) => r === null ? !0 : r !== "false",
1675
1684
  toAttribute: (r) => r ? null : "false"
1676
1685
  };
1677
- var bt, ft, vt, wt, $t, yt, Et, St, Ct, Pt, kt, _t, Ot, xt, Tt, Ut, Lt, At, Mt, Nt, It, Ft, Dt, Bt, Rt, Ht, jt, qt, Gt, Vt, Kt, Yt, Wt, zt, Jt, Qt, Xt, Zt, te, ee, se, ie, ae, re, ne, oe, le, Be;
1678
- let u = (Be = class extends $ {
1686
+ var vt, wt, $t, yt, Et, St, Ct, Pt, kt, _t, Ot, Tt, xt, Ut, Lt, At, Mt, Nt, It, Ft, Dt, Bt, Rt, jt, Ht, qt, Vt, Gt, Kt, Yt, Wt, zt, Jt, Qt, Xt, Zt, te, ee, se, ie, ae, re, ne, oe, le, he, de, Re;
1687
+ let u = (Re = class extends $ {
1679
1688
  constructor() {
1680
1689
  super(...arguments);
1681
- o(this, bt, "signin");
1682
- o(this, ft, "");
1683
- o(this, vt, !1);
1684
- o(this, wt, null);
1685
- o(this, $t, !0);
1686
- o(this, yt, !0);
1690
+ o(this, vt, "signin");
1691
+ o(this, wt, "");
1692
+ o(this, $t, !1);
1693
+ o(this, yt, null);
1687
1694
  o(this, Et, !0);
1688
1695
  o(this, St, !0);
1689
1696
  o(this, Ct, !0);
1690
1697
  o(this, Pt, !0);
1691
- o(this, kt, "card");
1692
- o(this, _t, "bottom");
1693
- o(this, Ot, !1);
1694
- o(this, xt, "");
1695
- o(this, Tt, "");
1698
+ o(this, kt, !0);
1699
+ o(this, _t, !0);
1700
+ o(this, Ot, "card");
1701
+ o(this, Tt, "bottom");
1702
+ o(this, xt, !1);
1696
1703
  o(this, Ut, "");
1697
1704
  o(this, Lt, "");
1698
1705
  o(this, At, "");
1699
- o(this, Mt, !0);
1706
+ o(this, Mt, "");
1700
1707
  o(this, Nt, "");
1701
- o(this, It, "");
1708
+ o(this, It, !0);
1702
1709
  o(this, Ft, "");
1703
- o(this, Dt, "singlebase-oauth-nonce");
1710
+ o(this, Dt, "");
1704
1711
  o(this, Bt, "");
1705
- o(this, Rt, "");
1712
+ o(this, Rt, "singlebase-oauth-nonce");
1713
+ o(this, jt, "");
1706
1714
  o(this, Ht, "");
1707
- o(this, jt, 0);
1708
1715
  o(this, qt, "");
1716
+ o(this, Vt, 0);
1709
1717
  o(this, Gt, "");
1710
- o(this, Vt, "");
1711
1718
  o(this, Kt, "");
1712
1719
  o(this, Yt, "");
1713
1720
  o(this, Wt, "");
1714
1721
  o(this, zt, "");
1715
1722
  o(this, Jt, "");
1716
1723
  o(this, Qt, "");
1717
- o(this, Xt, ["", "", "", "", "", ""]);
1718
- o(this, Zt, "signin_code");
1719
- o(this, te, !1);
1720
- o(this, ee, "");
1721
- o(this, se, "");
1724
+ o(this, Xt, "");
1725
+ o(this, Zt, "");
1726
+ o(this, te, ["", "", "", "", "", ""]);
1727
+ o(this, ee, "signin_code");
1728
+ o(this, se, !1);
1722
1729
  o(this, ie, "");
1723
1730
  o(this, ae, "");
1724
1731
  o(this, re, "");
1725
- o(this, ne, 0);
1726
- o(this, oe, !1);
1727
- b(this, "settingsCtl", new Se(this));
1728
- b(this, "bridge", new $s(this));
1732
+ o(this, ne, "");
1733
+ o(this, oe, "");
1734
+ o(this, le, 0);
1735
+ o(this, he, !1);
1736
+ b(this, "settingsCtl", new Ce(this));
1737
+ b(this, "bridge", new Ss(this));
1729
1738
  b(this, "uidBase", `sb-${Math.random().toString(36).slice(2, 8)}`);
1730
1739
  b(this, "gotoUnsubscribe");
1731
1740
  b(this, "gotoClient", null);
1732
- o(this, le, !1);
1741
+ o(this, de, !1);
1733
1742
  b(this, "abortController", null);
1734
1743
  b(this, "onContinue", () => {
1735
1744
  this.followRedirect() || (this.dispatchEvent(
@@ -1746,280 +1755,280 @@ let u = (Be = class extends $ {
1746
1755
  });
1747
1756
  }
1748
1757
  get initialScreen() {
1749
- return n(this, bt);
1758
+ return n(this, vt);
1750
1759
  }
1751
1760
  set initialScreen(t) {
1752
- l(this, bt, t);
1761
+ l(this, vt, t);
1753
1762
  }
1754
1763
  get screen() {
1755
- return n(this, ft);
1764
+ return n(this, wt);
1756
1765
  }
1757
1766
  set screen(t) {
1758
- l(this, ft, t);
1767
+ l(this, wt, t);
1759
1768
  }
1760
1769
  get noAccountView() {
1761
- return n(this, vt);
1770
+ return n(this, $t);
1762
1771
  }
1763
1772
  set noAccountView(t) {
1764
- l(this, vt, t);
1773
+ l(this, $t, t);
1765
1774
  }
1766
1775
  get settings() {
1767
- return n(this, wt);
1776
+ return n(this, yt);
1768
1777
  }
1769
1778
  set settings(t) {
1770
- l(this, wt, t);
1779
+ l(this, yt, t);
1771
1780
  }
1772
1781
  get authEnabled() {
1773
- return n(this, $t);
1782
+ return n(this, Et);
1774
1783
  }
1775
1784
  set authEnabled(t) {
1776
- l(this, $t, t);
1785
+ l(this, Et, t);
1777
1786
  }
1778
1787
  get allowEmailSignin() {
1779
- return n(this, yt);
1788
+ return n(this, St);
1780
1789
  }
1781
1790
  set allowEmailSignin(t) {
1782
- l(this, yt, t);
1791
+ l(this, St, t);
1783
1792
  }
1784
1793
  get allowEmailSignup() {
1785
- return n(this, Et);
1794
+ return n(this, Ct);
1786
1795
  }
1787
1796
  set allowEmailSignup(t) {
1788
- l(this, Et, t);
1797
+ l(this, Ct, t);
1789
1798
  }
1790
1799
  get allowEmailOtp() {
1791
- return n(this, St);
1800
+ return n(this, Pt);
1792
1801
  }
1793
1802
  set allowEmailOtp(t) {
1794
- l(this, St, t);
1803
+ l(this, Pt, t);
1795
1804
  }
1796
1805
  get allowOauth() {
1797
- return n(this, Ct);
1806
+ return n(this, kt);
1798
1807
  }
1799
1808
  set allowOauth(t) {
1800
- l(this, Ct, t);
1809
+ l(this, kt, t);
1801
1810
  }
1802
1811
  get allowAccountCreation() {
1803
- return n(this, Pt);
1812
+ return n(this, _t);
1804
1813
  }
1805
1814
  set allowAccountCreation(t) {
1806
- l(this, Pt, t);
1815
+ l(this, _t, t);
1807
1816
  }
1808
1817
  get layout() {
1809
- return n(this, kt);
1818
+ return n(this, Ot);
1810
1819
  }
1811
1820
  set layout(t) {
1812
- l(this, kt, t);
1821
+ l(this, Ot, t);
1813
1822
  }
1814
1823
  get oauthPlacement() {
1815
- return n(this, _t);
1824
+ return n(this, Tt);
1816
1825
  }
1817
1826
  set oauthPlacement(t) {
1818
- l(this, _t, t);
1827
+ l(this, Tt, t);
1819
1828
  }
1820
1829
  get stepped() {
1821
- return n(this, Ot);
1830
+ return n(this, xt);
1822
1831
  }
1823
1832
  set stepped(t) {
1824
- l(this, Ot, t);
1833
+ l(this, xt, t);
1825
1834
  }
1826
1835
  get logoText() {
1827
- return n(this, xt);
1836
+ return n(this, Ut);
1828
1837
  }
1829
1838
  set logoText(t) {
1830
- l(this, xt, t);
1839
+ l(this, Ut, t);
1831
1840
  }
1832
1841
  get logoUrl() {
1833
- return n(this, Tt);
1842
+ return n(this, Lt);
1834
1843
  }
1835
1844
  set logoUrl(t) {
1836
- l(this, Tt, t);
1845
+ l(this, Lt, t);
1837
1846
  }
1838
1847
  get brandLine() {
1839
- return n(this, Ut);
1848
+ return n(this, At);
1840
1849
  }
1841
1850
  set brandLine(t) {
1842
- l(this, Ut, t);
1851
+ l(this, At, t);
1843
1852
  }
1844
1853
  get brandFoot() {
1845
- return n(this, Lt);
1854
+ return n(this, Mt);
1846
1855
  }
1847
1856
  set brandFoot(t) {
1848
- l(this, Lt, t);
1857
+ l(this, Mt, t);
1849
1858
  }
1850
1859
  get signInTitle() {
1851
- return n(this, At);
1860
+ return n(this, Nt);
1852
1861
  }
1853
1862
  set signInTitle(t) {
1854
- l(this, At, t);
1863
+ l(this, Nt, t);
1855
1864
  }
1856
1865
  get branding() {
1857
- return n(this, Mt);
1866
+ return n(this, It);
1858
1867
  }
1859
1868
  set branding(t) {
1860
- l(this, Mt, t);
1869
+ l(this, It, t);
1861
1870
  }
1862
1871
  get redirectUrl() {
1863
- return n(this, Nt);
1872
+ return n(this, Ft);
1864
1873
  }
1865
1874
  set redirectUrl(t) {
1866
- l(this, Nt, t);
1875
+ l(this, Ft, t);
1867
1876
  }
1868
1877
  get tosUrl() {
1869
- return n(this, It);
1878
+ return n(this, Dt);
1870
1879
  }
1871
1880
  set tosUrl(t) {
1872
- l(this, It, t);
1881
+ l(this, Dt, t);
1873
1882
  }
1874
1883
  get privacyUrl() {
1875
- return n(this, Ft);
1884
+ return n(this, Bt);
1876
1885
  }
1877
1886
  set privacyUrl(t) {
1878
- l(this, Ft, t);
1887
+ l(this, Bt, t);
1879
1888
  }
1880
1889
  get nonceStorageKey() {
1881
- return n(this, Dt);
1890
+ return n(this, Rt);
1882
1891
  }
1883
1892
  set nonceStorageKey(t) {
1884
- l(this, Dt, t);
1893
+ l(this, Rt, t);
1885
1894
  }
1886
1895
  get inviteEmail() {
1887
- return n(this, Bt);
1896
+ return n(this, jt);
1888
1897
  }
1889
1898
  set inviteEmail(t) {
1890
- l(this, Bt, t);
1899
+ l(this, jt, t);
1891
1900
  }
1892
1901
  get inviteOrg() {
1893
- return n(this, Rt);
1902
+ return n(this, Ht);
1894
1903
  }
1895
1904
  set inviteOrg(t) {
1896
- l(this, Rt, t);
1905
+ l(this, Ht, t);
1897
1906
  }
1898
1907
  get inviteCode() {
1899
- return n(this, Ht);
1908
+ return n(this, qt);
1900
1909
  }
1901
1910
  set inviteCode(t) {
1902
- l(this, Ht, t);
1911
+ l(this, qt, t);
1903
1912
  }
1904
1913
  get step() {
1905
- return n(this, jt);
1914
+ return n(this, Vt);
1906
1915
  }
1907
1916
  set step(t) {
1908
- l(this, jt, t);
1917
+ l(this, Vt, t);
1909
1918
  }
1910
1919
  get method() {
1911
- return n(this, qt);
1920
+ return n(this, Gt);
1912
1921
  }
1913
1922
  set method(t) {
1914
- l(this, qt, t);
1923
+ l(this, Gt, t);
1915
1924
  }
1916
1925
  get email() {
1917
- return n(this, Gt);
1926
+ return n(this, Kt);
1918
1927
  }
1919
1928
  set email(t) {
1920
- l(this, Gt, t);
1929
+ l(this, Kt, t);
1921
1930
  }
1922
1931
  get password() {
1923
- return n(this, Vt);
1932
+ return n(this, Yt);
1924
1933
  }
1925
1934
  set password(t) {
1926
- l(this, Vt, t);
1935
+ l(this, Yt, t);
1927
1936
  }
1928
1937
  get name() {
1929
- return n(this, Kt);
1938
+ return n(this, Wt);
1930
1939
  }
1931
1940
  set name(t) {
1932
- l(this, Kt, t);
1941
+ l(this, Wt, t);
1933
1942
  }
1934
1943
  get firstName() {
1935
- return n(this, Yt);
1944
+ return n(this, zt);
1936
1945
  }
1937
1946
  set firstName(t) {
1938
- l(this, Yt, t);
1947
+ l(this, zt, t);
1939
1948
  }
1940
1949
  get lastName() {
1941
- return n(this, Wt);
1950
+ return n(this, Jt);
1942
1951
  }
1943
1952
  set lastName(t) {
1944
- l(this, Wt, t);
1953
+ l(this, Jt, t);
1945
1954
  }
1946
1955
  get phone() {
1947
- return n(this, zt);
1956
+ return n(this, Qt);
1948
1957
  }
1949
1958
  set phone(t) {
1950
- l(this, zt, t);
1959
+ l(this, Qt, t);
1951
1960
  }
1952
1961
  get newPass() {
1953
- return n(this, Jt);
1962
+ return n(this, Xt);
1954
1963
  }
1955
1964
  set newPass(t) {
1956
- l(this, Jt, t);
1965
+ l(this, Xt, t);
1957
1966
  }
1958
1967
  get confirmPass() {
1959
- return n(this, Qt);
1968
+ return n(this, Zt);
1960
1969
  }
1961
1970
  set confirmPass(t) {
1962
- l(this, Qt, t);
1971
+ l(this, Zt, t);
1963
1972
  }
1964
1973
  get code() {
1965
- return n(this, Xt);
1974
+ return n(this, te);
1966
1975
  }
1967
1976
  set code(t) {
1968
- l(this, Xt, t);
1977
+ l(this, te, t);
1969
1978
  }
1970
1979
  get verifyNext() {
1971
- return n(this, Zt);
1980
+ return n(this, ee);
1972
1981
  }
1973
1982
  set verifyNext(t) {
1974
- l(this, Zt, t);
1983
+ l(this, ee, t);
1975
1984
  }
1976
1985
  get loading() {
1977
- return n(this, te);
1986
+ return n(this, se);
1978
1987
  }
1979
1988
  set loading(t) {
1980
- l(this, te, t);
1989
+ l(this, se, t);
1981
1990
  }
1982
1991
  get banner() {
1983
- return n(this, ee);
1992
+ return n(this, ie);
1984
1993
  }
1985
1994
  set banner(t) {
1986
- l(this, ee, t);
1995
+ l(this, ie, t);
1987
1996
  }
1988
1997
  get notice() {
1989
- return n(this, se);
1998
+ return n(this, ae);
1990
1999
  }
1991
2000
  set notice(t) {
1992
- l(this, se, t);
2001
+ l(this, ae, t);
1993
2002
  }
1994
2003
  get emailError() {
1995
- return n(this, ie);
2004
+ return n(this, re);
1996
2005
  }
1997
2006
  set emailError(t) {
1998
- l(this, ie, t);
2007
+ l(this, re, t);
1999
2008
  }
2000
2009
  get passError() {
2001
- return n(this, ae);
2010
+ return n(this, ne);
2002
2011
  }
2003
2012
  set passError(t) {
2004
- l(this, ae, t);
2013
+ l(this, ne, t);
2005
2014
  }
2006
2015
  get newPassError() {
2007
- return n(this, re);
2016
+ return n(this, oe);
2008
2017
  }
2009
2018
  set newPassError(t) {
2010
- l(this, re, t);
2019
+ l(this, oe, t);
2011
2020
  }
2012
2021
  get attempts() {
2013
- return n(this, ne);
2022
+ return n(this, le);
2014
2023
  }
2015
2024
  set attempts(t) {
2016
- l(this, ne, t);
2025
+ l(this, le, t);
2017
2026
  }
2018
2027
  get needsMfaCode() {
2019
- return n(this, oe);
2028
+ return n(this, he);
2020
2029
  }
2021
2030
  set needsMfaCode(t) {
2022
- l(this, oe, t);
2031
+ l(this, he, t);
2023
2032
  }
2024
2033
  uid(t) {
2025
2034
  return `${this.uidBase}-${t}`;
@@ -2041,7 +2050,7 @@ let u = (Be = class extends $ {
2041
2050
  var i;
2042
2051
  if (t === this.gotoClient || ((i = this.gotoUnsubscribe) == null || i.call(this), this.gotoUnsubscribe = void 0, this.gotoClient = t, !t)) return;
2043
2052
  const e = t.on("goto", ({ screen: h }) => {
2044
- Ie(h) && this.goto(h);
2053
+ Fe(h) && this.goto(h);
2045
2054
  }), s = t.on("signin", () => {
2046
2055
  this.followRedirect();
2047
2056
  });
@@ -2084,7 +2093,7 @@ let u = (Be = class extends $ {
2084
2093
  /** The screen the host asked for, before any guarding is applied. */
2085
2094
  get requestedScreen() {
2086
2095
  const t = this.screen || this.initialScreen || "signin";
2087
- return Ie(t) ? t : "signin";
2096
+ return Fe(t) ? t : "signin";
2088
2097
  }
2089
2098
  /**
2090
2099
  * Resolves the screen actually rendered.
@@ -2097,7 +2106,7 @@ let u = (Be = class extends $ {
2097
2106
  get activeScreen() {
2098
2107
  if (this.isOAuthCallback) return "oauth-callback";
2099
2108
  const t = this.auth.state.status === "authenticated", e = this.requestedScreen;
2100
- if (As(e))
2109
+ if (Is(e))
2101
2110
  return t ? e : "signin";
2102
2111
  if (t)
2103
2112
  return this.screen !== "" || this.initialScreen !== "signin" ? e : "account";
@@ -2107,7 +2116,7 @@ let u = (Be = class extends $ {
2107
2116
  }
2108
2117
  /** True when a signed-in user is sitting on a guest screen (spec: offer continue/sign out). */
2109
2118
  get showsSignedInInterstitial() {
2110
- return this.auth.state.status === "authenticated" && Ne(this.activeScreen);
2119
+ return this.auth.state.status === "authenticated" && Ie(this.activeScreen);
2111
2120
  }
2112
2121
  // ── redirect ──────────────────────────────────────────────
2113
2122
  /**
@@ -2120,7 +2129,7 @@ let u = (Be = class extends $ {
2120
2129
  */
2121
2130
  get redirectTarget() {
2122
2131
  var t;
2123
- return os(
2132
+ return ls(
2124
2133
  this.redirectUrl || this.redirectParam,
2125
2134
  (t = globalThis.location) == null ? void 0 : t.href,
2126
2135
  (e) => console.warn(`[singlebase] ${e}`)
@@ -2143,10 +2152,10 @@ let u = (Be = class extends $ {
2143
2152
  return t.has("access_code") || t.has("error");
2144
2153
  }
2145
2154
  get callbackDone() {
2146
- return n(this, le);
2155
+ return n(this, de);
2147
2156
  }
2148
2157
  set callbackDone(t) {
2149
- l(this, le, t);
2158
+ l(this, de, t);
2150
2159
  }
2151
2160
  /** Strips the provider's parameters so a reload cannot replay the exchange. */
2152
2161
  cleanCallbackUrl() {
@@ -2189,11 +2198,7 @@ let u = (Be = class extends $ {
2189
2198
  return this.logoUrl ? a`<img class="brand-img" part="logo" src=${this.logoUrl} alt=${this.logoText} />` : this.logoText ? a`<div class="brand-mark" part="logo">${this.logoText}</div>` : d;
2190
2199
  }
2191
2200
  renderBranding() {
2192
- return this.branding ? a`<div class="branding" part="branding">
2193
- <a href="https://singlebase.cloud" target="_blank" rel="noopener noreferrer"
2194
- >${this.msg.brandingLabel}</a
2195
- >
2196
- </div>` : d;
2201
+ return cs(this.branding, "Auth");
2197
2202
  }
2198
2203
  /** Every screen renders inside this, so the credit appears once and only once. */
2199
2204
  panel(t) {
@@ -2238,7 +2243,7 @@ let u = (Be = class extends $ {
2238
2243
  }
2239
2244
  }
2240
2245
  describeError(t) {
2241
- if (t instanceof ye) {
2246
+ if (t instanceof Ee) {
2242
2247
  if (t.code === "AUTH_RATE_LIMITED") return this.msg.rateLimitedMessage;
2243
2248
  if (t.code === "INVALID_TOKEN") return "That code is not valid. Check it and try again.";
2244
2249
  }
@@ -2357,7 +2362,7 @@ let u = (Be = class extends $ {
2357
2362
  last_name: h.join(" ") || "—"
2358
2363
  },
2359
2364
  this.signal()
2360
- ), w = rs({
2365
+ ), w = ns({
2361
2366
  next_action: c.next_action,
2362
2367
  next_operation: c.next_operation
2363
2368
  });
@@ -2385,11 +2390,11 @@ let u = (Be = class extends $ {
2385
2390
  this.signal()
2386
2391
  ), this.step = 0;
2387
2392
  } catch (i) {
2388
- if (i instanceof ye && i.code === "CODE_REQUIRED") {
2393
+ if (i instanceof Ee && i.code === "CODE_REQUIRED") {
2389
2394
  this.needsMfaCode = !0, await e.requestCode({ email: this.email, purpose: "signin" }, this.signal()), this.notice = this.msg.codeSentNeutral;
2390
2395
  return;
2391
2396
  }
2392
- if (i instanceof ye && i.code === "INVALID_CREDENTIALS") {
2397
+ if (i instanceof Ee && i.code === "INVALID_CREDENTIALS") {
2393
2398
  this.attempts += 1, this.banner = this.attempts >= 3 ? this.msg.rateLimitedMessage : "That email and password do not match.";
2394
2399
  return;
2395
2400
  }
@@ -2630,35 +2635,35 @@ let u = (Be = class extends $ {
2630
2635
  renderAccordion(t) {
2631
2636
  const e = this.cfg, s = t === "signin" && e.allowEmailSignin || t === "signup" && e.allowEmailSignup || t === "otp" && e.allowEmailOtp, i = e.allowOauth;
2632
2637
  if (!s && !i) return d;
2633
- const h = s && i, c = s ? i && this.method || "email" : "oauth", w = c === "email", y = c === "oauth", $e = t === "signup" ? this.msg.emailMethodTitleSignUp : this.msg.emailMethodTitle, ze = t === "otp" ? this.msg.emailMethodMetaOtp : t === "signup" ? this.msg.emailMethodMetaSignUp : this.msg.emailMethodMeta, Pe = (Oe, Je, Qe, Xe, Ze, xe) => a`
2634
- <div class="acc-item ${Oe ? "open" : ""} ${h ? "" : "bare"}" part="acc-item">
2638
+ const h = s && i, c = s ? i && this.method || "email" : "oauth", w = c === "email", y = c === "oauth", ye = t === "signup" ? this.msg.emailMethodTitleSignUp : this.msg.emailMethodTitle, Je = t === "otp" ? this.msg.emailMethodMetaOtp : t === "signup" ? this.msg.emailMethodMetaSignUp : this.msg.emailMethodMeta, ke = (Te, Qe, Xe, Ze, ts, xe) => a`
2639
+ <div class="acc-item ${Te ? "open" : ""} ${h ? "" : "bare"}" part="acc-item">
2635
2640
  ${h ? a`
2636
2641
  <button
2637
2642
  type="button"
2638
2643
  class="acc-head"
2639
- aria-expanded=${Oe ? "true" : "false"}
2644
+ aria-expanded=${Te ? "true" : "false"}
2640
2645
  aria-controls=${this.uid(`acc-${xe}`)}
2641
- @click=${Ze}
2646
+ @click=${ts}
2642
2647
  >
2643
2648
  <span class="chev" aria-hidden="true">›</span>
2644
- <span class="acc-title">${Je}</span>
2645
- <span class="acc-meta">${Qe}</span>
2649
+ <span class="acc-title">${Qe}</span>
2650
+ <span class="acc-meta">${Xe}</span>
2646
2651
  </button>
2647
2652
  ` : d}
2648
2653
  <div class="acc-body" id=${this.uid(`acc-${xe}`)}>
2649
2654
  <div class="acc-clip">
2650
- <div class="acc-inner">${Xe}</div>
2655
+ <div class="acc-inner">${Ze}</div>
2651
2656
  </div>
2652
2657
  </div>
2653
2658
  </div>
2654
- `, ke = s ? Pe(
2659
+ `, _e = s ? ke(
2655
2660
  w,
2656
- $e,
2657
- ze,
2661
+ ye,
2662
+ Je,
2658
2663
  this.renderEmailMethodBody(t),
2659
2664
  () => this.method = w ? "" : "email",
2660
2665
  "email"
2661
- ) : d, _e = i ? Pe(
2666
+ ) : d, Oe = i ? ke(
2662
2667
  y,
2663
2668
  this.msg.oauthMethodTitle,
2664
2669
  this.msg.oauthMethodMeta,
@@ -2678,7 +2683,7 @@ let u = (Be = class extends $ {
2678
2683
  ) : d;
2679
2684
  return a`
2680
2685
  <div class="acc-wrap">
2681
- ${this.oauthPlacement === "top" ? a`${_e}${ke}` : a`${ke}${_e}`}
2686
+ ${this.oauthPlacement === "top" ? a`${Oe}${_e}` : a`${_e}${Oe}`}
2682
2687
  </div>
2683
2688
  `;
2684
2689
  }
@@ -2921,7 +2926,7 @@ let u = (Be = class extends $ {
2921
2926
  `);
2922
2927
  if (this.showsSignedInInterstitial)
2923
2928
  return this.noAccountView ? d : this.panel(this.renderSignedIn());
2924
- const e = this.cfg, s = !e.allowEmailSignin && !e.allowEmailOtp && !e.allowOauth, i = !e.authEnabled || s && Ne(t);
2929
+ const e = this.cfg, s = !e.allowEmailSignin && !e.allowEmailOtp && !e.allowOauth, i = !e.authEnabled || s && Ie(t);
2925
2930
  return a`
2926
2931
  ${this.layout === "split" ? a`
2927
2932
  <div class="brand-panel">
@@ -2933,10 +2938,11 @@ let u = (Be = class extends $ {
2933
2938
  ${this.panel(i ? this.renderBlocked() : this.renderGuest(t))}
2934
2939
  `;
2935
2940
  }
2936
- }, bt = new WeakMap(), ft = new WeakMap(), vt = new WeakMap(), wt = new WeakMap(), $t = new WeakMap(), yt = new WeakMap(), Et = new WeakMap(), St = new WeakMap(), Ct = new WeakMap(), Pt = new WeakMap(), kt = new WeakMap(), _t = new WeakMap(), Ot = new WeakMap(), xt = new WeakMap(), Tt = new WeakMap(), Ut = new WeakMap(), Lt = new WeakMap(), At = new WeakMap(), Mt = new WeakMap(), Nt = new WeakMap(), It = new WeakMap(), Ft = new WeakMap(), Dt = new WeakMap(), Bt = new WeakMap(), Rt = new WeakMap(), Ht = new WeakMap(), jt = new WeakMap(), qt = new WeakMap(), Gt = new WeakMap(), Vt = new WeakMap(), Kt = new WeakMap(), Yt = new WeakMap(), Wt = new WeakMap(), zt = new WeakMap(), Jt = new WeakMap(), Qt = new WeakMap(), Xt = new WeakMap(), Zt = new WeakMap(), te = new WeakMap(), ee = new WeakMap(), se = new WeakMap(), ie = new WeakMap(), ae = new WeakMap(), re = new WeakMap(), ne = new WeakMap(), oe = new WeakMap(), le = new WeakMap(), Be);
2937
- Us(u, "styles", [
2941
+ }, vt = new WeakMap(), wt = new WeakMap(), $t = new WeakMap(), yt = new WeakMap(), Et = new WeakMap(), St = new WeakMap(), Ct = new WeakMap(), Pt = new WeakMap(), kt = new WeakMap(), _t = new WeakMap(), Ot = new WeakMap(), Tt = new WeakMap(), xt = new WeakMap(), Ut = new WeakMap(), Lt = new WeakMap(), At = new WeakMap(), Mt = new WeakMap(), Nt = new WeakMap(), It = new WeakMap(), Ft = new WeakMap(), Dt = new WeakMap(), Bt = new WeakMap(), Rt = new WeakMap(), jt = new WeakMap(), Ht = new WeakMap(), qt = new WeakMap(), Vt = new WeakMap(), Gt = new WeakMap(), Kt = new WeakMap(), Yt = new WeakMap(), Wt = new WeakMap(), zt = new WeakMap(), Jt = new WeakMap(), Qt = new WeakMap(), Xt = new WeakMap(), Zt = new WeakMap(), te = new WeakMap(), ee = new WeakMap(), se = new WeakMap(), ie = new WeakMap(), ae = new WeakMap(), re = new WeakMap(), ne = new WeakMap(), oe = new WeakMap(), le = new WeakMap(), he = new WeakMap(), de = new WeakMap(), Re);
2942
+ Ms(u, "styles", [
2938
2943
  ...$.styles,
2939
- je`
2944
+ ds,
2945
+ qe`
2940
2946
  /* the mock's root */
2941
2947
  :host {
2942
2948
  display: flex;
@@ -2945,7 +2951,7 @@ Us(u, "styles", [
2945
2951
  background: var(--sb-surface, #ffffff);
2946
2952
  color: var(--sb-ink, #16181a);
2947
2953
  border: 1px solid var(--sb-border, #e4e6e9);
2948
- border-radius: calc(var(--sb-radius, 4px) + 4px);
2954
+ border-radius: calc((var(--sb-radius, 4px) + 4px) * var(--sb-radius-scale, 1));
2949
2955
  overflow: hidden;
2950
2956
  }
2951
2957
 
@@ -3003,22 +3009,6 @@ Us(u, "styles", [
3003
3009
 
3004
3010
  .branding {
3005
3011
  margin-top: 18px;
3006
- text-align: center;
3007
- font-family: var(--sb-mono, "Geist Mono", ui-monospace, monospace);
3008
- font-size: 10.5px;
3009
- letter-spacing: 0.06em;
3010
- color: var(--sb-muted-ink, #61666c);
3011
- }
3012
-
3013
- .branding a {
3014
- color: inherit;
3015
- text-decoration: none;
3016
- }
3017
-
3018
- .branding a:hover {
3019
- color: var(--sb-ink, #16181a);
3020
- text-decoration: underline;
3021
- text-underline-offset: 3px;
3022
3012
  }
3023
3013
 
3024
3014
  /* the mock's panel */
@@ -3182,40 +3172,40 @@ g([
3182
3172
  m()
3183
3173
  ], u.prototype, "callbackDone", 1);
3184
3174
  u = g([
3185
- fe("singlebase-authui")
3175
+ we("singlebase-authui")
3186
3176
  ], u);
3187
- var Ms = Object.defineProperty, Ns = Object.getOwnPropertyDescriptor, Ee = (r, t, e, s) => {
3188
- for (var i = s > 1 ? void 0 : s ? Ns(t, e) : t, h = r.length - 1, c; h >= 0; h--)
3177
+ var Fs = Object.defineProperty, Ds = Object.getOwnPropertyDescriptor, Se = (r, t, e, s) => {
3178
+ for (var i = s > 1 ? void 0 : s ? Ds(t, e) : t, h = r.length - 1, c; h >= 0; h--)
3189
3179
  (c = r[h]) && (i = (s ? c(t, e, i) : c(i)) || i);
3190
- return s && i && Ms(t, e, i), i;
3180
+ return s && i && Fs(t, e, i), i;
3191
3181
  };
3192
- const Is = ["loading", "authenticated", "unauthenticated"];
3193
- var he, de, ce, Re;
3194
- let O = (Re = class extends $ {
3182
+ const Bs = ["loading", "authenticated", "unauthenticated"];
3183
+ var ce, ue, pe, je;
3184
+ let T = (je = class extends $ {
3195
3185
  constructor() {
3196
3186
  super(...arguments);
3197
- o(this, he, "");
3198
- o(this, de, null);
3199
- o(this, ce, "unauthenticated");
3187
+ o(this, ce, "");
3188
+ o(this, ue, null);
3189
+ o(this, pe, "unauthenticated");
3200
3190
  b(this, "warnedFor", null);
3201
3191
  }
3202
3192
  get slot() {
3203
- return n(this, he);
3193
+ return n(this, ce);
3204
3194
  }
3205
3195
  set slot(t) {
3206
- l(this, he, t);
3196
+ l(this, ce, t);
3207
3197
  }
3208
3198
  get predicate() {
3209
- return n(this, de);
3199
+ return n(this, ue);
3210
3200
  }
3211
3201
  set predicate(t) {
3212
- l(this, de, t);
3202
+ l(this, ue, t);
3213
3203
  }
3214
3204
  get onMismatch() {
3215
- return n(this, ce);
3205
+ return n(this, pe);
3216
3206
  }
3217
3207
  set onMismatch(t) {
3218
- l(this, ce, t);
3208
+ l(this, pe, t);
3219
3209
  }
3220
3210
  createRenderRoot() {
3221
3211
  return this;
@@ -3228,21 +3218,21 @@ let O = (Re = class extends $ {
3228
3218
  if (!this.predicate) return "authenticated";
3229
3219
  this.warnOnce(this.predicate);
3230
3220
  const e = this.auth.state.user;
3231
- return cs(e, this.predicate) ? "authenticated" : this.onMismatch === "hidden" ? "hidden" : "unauthenticated";
3221
+ return ms(e, this.predicate) ? "authenticated" : this.onMismatch === "hidden" ? "hidden" : "unauthenticated";
3232
3222
  }
3233
3223
  /** Surfaces a malformed predicate once, rather than silently never matching. */
3234
3224
  warnOnce(t) {
3235
3225
  const e = JSON.stringify(t);
3236
3226
  if (this.warnedFor !== e) {
3237
3227
  this.warnedFor = e;
3238
- for (const s of us(t))
3228
+ for (const s of bs(t))
3239
3229
  console.warn(`[singlebase] <singlebase-authui-guard> predicate: ${s}`);
3240
3230
  }
3241
3231
  }
3242
3232
  render() {
3243
3233
  const t = this.activeState;
3244
3234
  if (this.slot) {
3245
- const e = Is.includes(this.slot) && this.slot === t;
3235
+ const e = Bs.includes(this.slot) && this.slot === t;
3246
3236
  return this.toggleAttribute("hidden", !e), a`<slot></slot>`;
3247
3237
  }
3248
3238
  this.toggleAttribute("hidden", !1);
@@ -3252,11 +3242,11 @@ let O = (Re = class extends $ {
3252
3242
  }
3253
3243
  return a`<slot></slot>`;
3254
3244
  }
3255
- }, he = new WeakMap(), de = new WeakMap(), ce = new WeakMap(), Re);
3256
- Ee([
3245
+ }, ce = new WeakMap(), ue = new WeakMap(), pe = new WeakMap(), je);
3246
+ Se([
3257
3247
  p({ reflect: !0 })
3258
- ], O.prototype, "slot", 1);
3259
- Ee([
3248
+ ], T.prototype, "slot", 1);
3249
+ Se([
3260
3250
  p({
3261
3251
  converter: {
3262
3252
  fromAttribute: (r) => {
@@ -3270,58 +3260,58 @@ Ee([
3270
3260
  toAttribute: (r) => r ? JSON.stringify(r) : null
3271
3261
  }
3272
3262
  })
3273
- ], O.prototype, "predicate", 1);
3274
- Ee([
3263
+ ], T.prototype, "predicate", 1);
3264
+ Se([
3275
3265
  p({ attribute: "on-mismatch" })
3276
- ], O.prototype, "onMismatch", 1);
3277
- O = Ee([
3278
- fe("singlebase-authui-guard")
3279
- ], O);
3280
- var We = Object.defineProperty, Fs = Object.getOwnPropertyDescriptor, Ds = (r, t, e) => t in r ? We(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e, _ = (r, t, e, s) => {
3281
- for (var i = s > 1 ? void 0 : s ? Fs(t, e) : t, h = r.length - 1, c; h >= 0; h--)
3266
+ ], T.prototype, "onMismatch", 1);
3267
+ T = Se([
3268
+ we("singlebase-authui-guard")
3269
+ ], T);
3270
+ var ze = Object.defineProperty, Rs = Object.getOwnPropertyDescriptor, js = (r, t, e) => t in r ? ze(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e, O = (r, t, e, s) => {
3271
+ for (var i = s > 1 ? void 0 : s ? Rs(t, e) : t, h = r.length - 1, c; h >= 0; h--)
3282
3272
  (c = r[h]) && (i = (s ? c(t, e, i) : c(i)) || i);
3283
- return s && i && We(t, e, i), i;
3284
- }, Bs = (r, t, e) => Ds(r, t + "", e);
3285
- const Rs = "profile_photo";
3286
- var ue, pe, ge, me, be, He;
3273
+ return s && i && ze(t, e, i), i;
3274
+ }, Hs = (r, t, e) => js(r, t + "", e);
3275
+ const qs = "profile_photo";
3276
+ var ge, me, be, fe, ve, He;
3287
3277
  let S = (He = class extends $ {
3288
3278
  constructor() {
3289
3279
  super(...arguments);
3290
- o(this, ue, "");
3291
- o(this, pe, "");
3292
- o(this, ge, !1);
3280
+ o(this, ge, "");
3293
3281
  o(this, me, "");
3294
3282
  o(this, be, !1);
3283
+ o(this, fe, "");
3284
+ o(this, ve, !1);
3295
3285
  }
3296
3286
  get path() {
3297
- return n(this, ue);
3287
+ return n(this, ge);
3298
3288
  }
3299
3289
  set path(t) {
3300
- l(this, ue, t);
3290
+ l(this, ge, t);
3301
3291
  }
3302
3292
  get fallback() {
3303
- return n(this, pe);
3293
+ return n(this, me);
3304
3294
  }
3305
3295
  set fallback(t) {
3306
- l(this, pe, t);
3296
+ l(this, me, t);
3307
3297
  }
3308
3298
  get avatar() {
3309
- return n(this, ge);
3299
+ return n(this, be);
3310
3300
  }
3311
3301
  set avatar(t) {
3312
- l(this, ge, t);
3302
+ l(this, be, t);
3313
3303
  }
3314
3304
  get alt() {
3315
- return n(this, me);
3305
+ return n(this, fe);
3316
3306
  }
3317
3307
  set alt(t) {
3318
- l(this, me, t);
3308
+ l(this, fe, t);
3319
3309
  }
3320
3310
  get imageFailed() {
3321
- return n(this, be);
3311
+ return n(this, ve);
3322
3312
  }
3323
3313
  set imageFailed(t) {
3324
- l(this, be, t);
3314
+ l(this, ve, t);
3325
3315
  }
3326
3316
  willUpdate(t) {
3327
3317
  super.willUpdate(t), (t.has("path") || t.has("avatar")) && (this.imageFailed = !1);
@@ -3334,13 +3324,13 @@ let S = (He = class extends $ {
3334
3324
  get textValue() {
3335
3325
  const t = this.profile;
3336
3326
  if (!t || !this.path) return "";
3337
- const e = Le(t, this.path);
3327
+ const e = Ae(t, this.path);
3338
3328
  return e == null || e === "" ? "" : Array.isArray(e) ? e.filter((s) => s != null).join(", ") : typeof e == "object" ? "" : String(e);
3339
3329
  }
3340
3330
  get avatarSrc() {
3341
3331
  const t = this.profile;
3342
3332
  if (!t) return "";
3343
- const e = Le(t, this.path || Rs);
3333
+ const e = Ae(t, this.path || qs);
3344
3334
  return typeof e == "string" ? e : "";
3345
3335
  }
3346
3336
  render() {
@@ -3365,10 +3355,10 @@ let S = (He = class extends $ {
3365
3355
  >${Ge(t)}</span
3366
3356
  >`;
3367
3357
  }
3368
- }, ue = new WeakMap(), pe = new WeakMap(), ge = new WeakMap(), me = new WeakMap(), be = new WeakMap(), He);
3369
- Bs(S, "styles", [
3358
+ }, ge = new WeakMap(), me = new WeakMap(), be = new WeakMap(), fe = new WeakMap(), ve = new WeakMap(), He);
3359
+ Hs(S, "styles", [
3370
3360
  ...$.styles,
3371
- je`
3361
+ qe`
3372
3362
  /* Text sits in a sentence; an avatar is a box the host sizes. */
3373
3363
  :host {
3374
3364
  display: inline;
@@ -3408,38 +3398,38 @@ Bs(S, "styles", [
3408
3398
  }
3409
3399
  `
3410
3400
  ]);
3411
- _([
3401
+ O([
3412
3402
  p()
3413
3403
  ], S.prototype, "path", 1);
3414
- _([
3404
+ O([
3415
3405
  p()
3416
3406
  ], S.prototype, "fallback", 1);
3417
- _([
3407
+ O([
3418
3408
  p({ type: Boolean, reflect: !0 })
3419
3409
  ], S.prototype, "avatar", 1);
3420
- _([
3410
+ O([
3421
3411
  p()
3422
3412
  ], S.prototype, "alt", 1);
3423
- _([
3413
+ O([
3424
3414
  m()
3425
3415
  ], S.prototype, "imageFailed", 1);
3426
- S = _([
3427
- fe("singlebase-authui-display")
3416
+ S = O([
3417
+ we("singlebase-authui-display")
3428
3418
  ], S);
3429
3419
  export {
3430
- gs as A,
3431
- Se as S,
3420
+ fs as A,
3421
+ Ce as S,
3432
3422
  f as a,
3433
3423
  E as b,
3434
3424
  S as c,
3435
- O as d,
3425
+ T as d,
3436
3426
  u as e,
3437
- Ae as f,
3438
- qe as g,
3439
- Ne as h,
3427
+ Me as f,
3428
+ Ve as g,
3429
+ Ie as h,
3440
3430
  Ge as i,
3441
- As as j,
3442
- Ie as k,
3443
- ms as r
3431
+ Is as j,
3432
+ Fe as k,
3433
+ vs as r
3444
3434
  };
3445
- //# sourceMappingURL=authui-display-BCZBP7HR.js.map
3435
+ //# sourceMappingURL=authui-display-BM_F3-5e.js.map