@cal.macconnachie/web-components 0.0.10 → 0.0.12
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.
- package/dist/components/auth.js +136 -133
- package/dist/components/index.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +160 -157
- package/dist/stylesheets/main.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -249,7 +249,7 @@ let Q = class extends HTMLElement {
|
|
|
249
249
|
Q.elementStyles = [], Q.shadowRootOptions = { mode: "open" }, Q[de("elementProperties")] = /* @__PURE__ */ new Map(), Q[de("finalized")] = /* @__PURE__ */ new Map(), Ns?.({ ReactiveElement: Q }), (xe.reactiveElementVersions ??= []).push("2.1.1");
|
|
250
250
|
const Xe = globalThis, Ce = Xe.trustedTypes, yt = Ce ? Ce.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, Vt = "$lit$", H = `lit$${Math.random().toFixed(9).slice(2)}$`, Wt = "?" + H, Ls = `<${Wt}>`, G = document, ue = () => G.createComment(""), pe = (t) => t === null || typeof t != "object" && typeof t != "function", Qe = Array.isArray, Is = (t) => Qe(t) || typeof t?.[Symbol.iterator] == "function", je = `[
|
|
251
251
|
\f\r]`, le = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, wt = /-->/g, bt = />/g, K = RegExp(`>|${je}(?:([^\\s"'>=/]+)(${je}*=${je}*(?:[^
|
|
252
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
252
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), St = /'/g, $t = /"/g, Yt = /^(?:script|style|textarea|title)$/i, Bs = (t) => (e, ...s) => ({ _$litType$: t, strings: e, values: s }), S = Bs(1), M = Symbol.for("lit-noChange"), b = Symbol.for("lit-nothing"), At = /* @__PURE__ */ new WeakMap(), W = G.createTreeWalker(G, 129);
|
|
253
253
|
function Jt(t, e) {
|
|
254
254
|
if (!Qe(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
255
255
|
return yt !== void 0 ? yt.createHTML(e) : e;
|
|
@@ -260,7 +260,7 @@ const js = (t, e) => {
|
|
|
260
260
|
for (let a = 0; a < s; a++) {
|
|
261
261
|
const l = t[a];
|
|
262
262
|
let h, c, u = -1, f = 0;
|
|
263
|
-
for (; f < l.length && (n.lastIndex = f, c = n.exec(l), c !== null); ) f = n.lastIndex, n === le ? c[1] === "!--" ? n = wt : c[1] !== void 0 ? n = bt : c[2] !== void 0 ? (Yt.test(c[2]) && (i = RegExp("</" + c[2], "g")), n = K) : c[3] !== void 0 && (n = K) : n === K ? c[0] === ">" ? (n = i ?? le, u = -1) : c[1] === void 0 ? u = -2 : (u = n.lastIndex - c[2].length, h = c[1], n = c[3] === void 0 ? K : c[3] === '"' ?
|
|
263
|
+
for (; f < l.length && (n.lastIndex = f, c = n.exec(l), c !== null); ) f = n.lastIndex, n === le ? c[1] === "!--" ? n = wt : c[1] !== void 0 ? n = bt : c[2] !== void 0 ? (Yt.test(c[2]) && (i = RegExp("</" + c[2], "g")), n = K) : c[3] !== void 0 && (n = K) : n === K ? c[0] === ">" ? (n = i ?? le, u = -1) : c[1] === void 0 ? u = -2 : (u = n.lastIndex - c[2].length, h = c[1], n = c[3] === void 0 ? K : c[3] === '"' ? $t : St) : n === $t || n === St ? n = K : n === wt || n === bt ? n = le : (n = K, i = void 0);
|
|
264
264
|
const y = n === K && t[a + 1].startsWith("/>") ? " " : "";
|
|
265
265
|
o += n === le ? l + Ls : u >= 0 ? (r.push(h), l.slice(0, u) + Vt + l.slice(u) + H + y) : l + H + (u === -2 ? a : y);
|
|
266
266
|
}
|
|
@@ -280,7 +280,7 @@ class fe {
|
|
|
280
280
|
if (i.nodeType === 1) {
|
|
281
281
|
if (i.hasAttributes()) for (const u of i.getAttributeNames()) if (u.endsWith(Vt)) {
|
|
282
282
|
const f = c[n++], y = i.getAttribute(u).split(H), p = /([.?@])?(.*)/.exec(f);
|
|
283
|
-
l.push({ type: 1, index: o, name: p[2], strings: y, ctor: p[1] === "." ?
|
|
283
|
+
l.push({ type: 1, index: o, name: p[2], strings: y, ctor: p[1] === "." ? Ms : p[1] === "?" ? Fs : p[1] === "@" ? qs : Re }), i.removeAttribute(u);
|
|
284
284
|
} else u.startsWith(H) && (l.push({ type: 6, index: o }), i.removeAttribute(u));
|
|
285
285
|
if (Yt.test(i.tagName)) {
|
|
286
286
|
const u = i.textContent.split(H), f = u.length - 1;
|
|
@@ -304,7 +304,7 @@ class fe {
|
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
306
|
function te(t, e, s = t, r) {
|
|
307
|
-
if (e ===
|
|
307
|
+
if (e === M) return e;
|
|
308
308
|
let i = r !== void 0 ? s._$Co?.[r] : s._$Cl;
|
|
309
309
|
const o = pe(e) ? void 0 : e._$litDirective$;
|
|
310
310
|
return i?.constructor !== o && (i?._$AO?.(!1), o === void 0 ? i = void 0 : (i = new o(t), i._$AT(t, s, r)), r !== void 0 ? (s._$Co ??= [])[r] = i : s._$Cl = i), i !== void 0 && (e = te(t, i._$AS(t, e.values), i, r)), e;
|
|
@@ -342,7 +342,7 @@ class re {
|
|
|
342
342
|
return this._$AM?._$AU ?? this._$Cv;
|
|
343
343
|
}
|
|
344
344
|
constructor(e, s, r, i) {
|
|
345
|
-
this.type = 2, this._$AH =
|
|
345
|
+
this.type = 2, this._$AH = b, this._$AN = void 0, this._$AA = e, this._$AB = s, this._$AM = r, this.options = i, this._$Cv = i?.isConnected ?? !0;
|
|
346
346
|
}
|
|
347
347
|
get parentNode() {
|
|
348
348
|
let e = this._$AA.parentNode;
|
|
@@ -356,7 +356,7 @@ class re {
|
|
|
356
356
|
return this._$AB;
|
|
357
357
|
}
|
|
358
358
|
_$AI(e, s = this) {
|
|
359
|
-
e = te(this, e, s), pe(e) ? e ===
|
|
359
|
+
e = te(this, e, s), pe(e) ? e === b || e == null || e === "" ? (this._$AH !== b && this._$AR(), this._$AH = b) : e !== this._$AH && e !== M && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Is(e) ? this.k(e) : this._(e);
|
|
360
360
|
}
|
|
361
361
|
O(e) {
|
|
362
362
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -365,7 +365,7 @@ class re {
|
|
|
365
365
|
this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
|
|
366
366
|
}
|
|
367
367
|
_(e) {
|
|
368
|
-
this._$AH !==
|
|
368
|
+
this._$AH !== b && pe(this._$AH) ? this._$AA.nextSibling.data = e : this.T(G.createTextNode(e)), this._$AH = e;
|
|
369
369
|
}
|
|
370
370
|
$(e) {
|
|
371
371
|
const { values: s, _$litType$: r } = e, i = typeof r == "number" ? this._$AC(e) : (r.el === void 0 && (r.el = fe.createElement(Jt(r.h, r.h[0]), this.options)), r);
|
|
@@ -404,37 +404,37 @@ class Re {
|
|
|
404
404
|
return this._$AM._$AU;
|
|
405
405
|
}
|
|
406
406
|
constructor(e, s, r, i, o) {
|
|
407
|
-
this.type = 1, this._$AH =
|
|
407
|
+
this.type = 1, this._$AH = b, this._$AN = void 0, this.element = e, this.name = s, this._$AM = i, this.options = o, r.length > 2 || r[0] !== "" || r[1] !== "" ? (this._$AH = Array(r.length - 1).fill(new String()), this.strings = r) : this._$AH = b;
|
|
408
408
|
}
|
|
409
409
|
_$AI(e, s = this, r, i) {
|
|
410
410
|
const o = this.strings;
|
|
411
411
|
let n = !1;
|
|
412
|
-
if (o === void 0) e = te(this, e, s, 0), n = !pe(e) || e !== this._$AH && e !==
|
|
412
|
+
if (o === void 0) e = te(this, e, s, 0), n = !pe(e) || e !== this._$AH && e !== M, n && (this._$AH = e);
|
|
413
413
|
else {
|
|
414
414
|
const a = e;
|
|
415
415
|
let l, h;
|
|
416
|
-
for (e = o[0], l = 0; l < o.length - 1; l++) h = te(this, a[r + l], s, l), h ===
|
|
416
|
+
for (e = o[0], l = 0; l < o.length - 1; l++) h = te(this, a[r + l], s, l), h === M && (h = this._$AH[l]), n ||= !pe(h) || h !== this._$AH[l], h === b ? e = b : e !== b && (e += (h ?? "") + o[l + 1]), this._$AH[l] = h;
|
|
417
417
|
}
|
|
418
418
|
n && !i && this.j(e);
|
|
419
419
|
}
|
|
420
420
|
j(e) {
|
|
421
|
-
e ===
|
|
421
|
+
e === b ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
|
-
class
|
|
424
|
+
class Ms extends Re {
|
|
425
425
|
constructor() {
|
|
426
426
|
super(...arguments), this.type = 3;
|
|
427
427
|
}
|
|
428
428
|
j(e) {
|
|
429
|
-
this.element[this.name] = e ===
|
|
429
|
+
this.element[this.name] = e === b ? void 0 : e;
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
|
-
class
|
|
432
|
+
class Fs extends Re {
|
|
433
433
|
constructor() {
|
|
434
434
|
super(...arguments), this.type = 4;
|
|
435
435
|
}
|
|
436
436
|
j(e) {
|
|
437
|
-
this.element.toggleAttribute(this.name, !!e && e !==
|
|
437
|
+
this.element.toggleAttribute(this.name, !!e && e !== b);
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
440
|
class qs extends Re {
|
|
@@ -442,8 +442,8 @@ class qs extends Re {
|
|
|
442
442
|
super(e, s, r, i, o), this.type = 5;
|
|
443
443
|
}
|
|
444
444
|
_$AI(e, s = this) {
|
|
445
|
-
if ((e = te(this, e, s, 0) ??
|
|
446
|
-
const r = this._$AH, i = e ===
|
|
445
|
+
if ((e = te(this, e, s, 0) ?? b) === M) return;
|
|
446
|
+
const r = this._$AH, i = e === b && r !== b || e.capture !== r.capture || e.once !== r.once || e.passive !== r.passive, o = e !== b && (r === b || i);
|
|
447
447
|
i && this.element.removeEventListener(this.name, this, r), o && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
|
448
448
|
}
|
|
449
449
|
handleEvent(e) {
|
|
@@ -492,7 +492,7 @@ let ee = class extends Q {
|
|
|
492
492
|
super.disconnectedCallback(), this._$Do?.setConnected(!1);
|
|
493
493
|
}
|
|
494
494
|
render() {
|
|
495
|
-
return
|
|
495
|
+
return M;
|
|
496
496
|
}
|
|
497
497
|
};
|
|
498
498
|
ee._$litElement$ = !0, ee.finalized = !0, et.litElementHydrateSupport?.({ LitElement: ee });
|
|
@@ -579,7 +579,7 @@ const vt = Xt(class extends Qt {
|
|
|
579
579
|
const i = !!e[r];
|
|
580
580
|
i === this.st.has(r) || this.nt?.has(r) || (i ? (s.add(r), this.st.add(r)) : (s.remove(r), this.st.delete(r)));
|
|
581
581
|
}
|
|
582
|
-
return
|
|
582
|
+
return M;
|
|
583
583
|
}
|
|
584
584
|
});
|
|
585
585
|
const { I: Xs } = Ks, Et = () => document.createComment(""), ce = (t, e, s) => {
|
|
@@ -652,7 +652,7 @@ const _t = (t, e, s) => {
|
|
|
652
652
|
const g = i[u++];
|
|
653
653
|
g !== null && He(g);
|
|
654
654
|
}
|
|
655
|
-
return this.ut = n, er(t, l),
|
|
655
|
+
return this.ut = n, er(t, l), M;
|
|
656
656
|
}
|
|
657
657
|
}), es = ({
|
|
658
658
|
baseUrl: t
|
|
@@ -814,7 +814,7 @@ const _t = (t, e, s) => {
|
|
|
814
814
|
return f.json();
|
|
815
815
|
}
|
|
816
816
|
};
|
|
817
|
-
},
|
|
817
|
+
}, Me = {
|
|
818
818
|
AUTH_TOKEN: "authToken",
|
|
819
819
|
ACCESS_TOKEN: "accessToken",
|
|
820
820
|
REFRESH_TOKEN: "refreshToken"
|
|
@@ -851,9 +851,9 @@ const _t = (t, e, s) => {
|
|
|
851
851
|
maxAge: -1
|
|
852
852
|
});
|
|
853
853
|
}, r = (l) => e(l) !== null, i = (l, h) => {
|
|
854
|
-
t(
|
|
855
|
-
}, o = (l) => e(
|
|
856
|
-
s(
|
|
854
|
+
t(Me[l], h, sr);
|
|
855
|
+
}, o = (l) => e(Me[l]), n = (l) => {
|
|
856
|
+
s(Me[l]);
|
|
857
857
|
};
|
|
858
858
|
return {
|
|
859
859
|
setCookie: t,
|
|
@@ -1479,7 +1479,7 @@ const cr = [
|
|
|
1479
1479
|
];
|
|
1480
1480
|
let A = class extends ee {
|
|
1481
1481
|
constructor() {
|
|
1482
|
-
super(...arguments), this.open = !1, this.initialMode = "signin", this.logoUrl = "", this.baseUrl = "", this.oauthDomain = "", this.oauthRegion = "", this.oauthUserPoolId = "", this.oauthClientId = "", this.oauthRedirectUri = "", this.oauthSpaDomain = "", this.size = "sm", this.theme = "light", this.mode = "signin", this.resetStep = "none", this.signupStep = "form", this.isLoading = !1, this.isClosing = !1, this.isVisible = !1, this.isLoggedIn = !1, this.email = "", this.password = "", this.givenName = "", this.familyName = "", this.newPassword = "", this.confirmPassword = "", this.notice = "", this.error = "", this.errors = {}, this.otpDigits = ["", "", "", "", "", ""], this.signupOtpDigits = ["", "", "", "", "", ""], this.isDragging = !1, this.dragStartY = 0, this.dragCurrentY = 0, this.dragStartTime = 0, this.lastDragEndTime = 0, this.cookies = ts(), this.scrollPosition = 0, this.transitionDuration = 300, this.hasHandledOAuthCallback = !1, this.boundKeyHandler = (t) => {
|
|
1482
|
+
super(...arguments), this.open = !1, this.initialMode = "signin", this.logoUrl = "", this.baseUrl = "", this.oauthDomain = "", this.oauthRegion = "", this.oauthUserPoolId = "", this.oauthClientId = "", this.oauthRedirectUri = "", this.oauthSpaDomain = "", this.size = "sm", this.theme = "light", this.disableSignup = !1, this.mode = "signin", this.resetStep = "none", this.signupStep = "form", this.isLoading = !1, this.isClosing = !1, this.isVisible = !1, this.isLoggedIn = !1, this.email = "", this.password = "", this.givenName = "", this.familyName = "", this.newPassword = "", this.confirmPassword = "", this.notice = "", this.error = "", this.errors = {}, this.otpDigits = ["", "", "", "", "", ""], this.signupOtpDigits = ["", "", "", "", "", ""], this.isDragging = !1, this.dragStartY = 0, this.dragCurrentY = 0, this.dragStartTime = 0, this.lastDragEndTime = 0, this.cookies = ts(), this.scrollPosition = 0, this.transitionDuration = 300, this.hasHandledOAuthCallback = !1, this.boundKeyHandler = (t) => {
|
|
1483
1483
|
t.key === "Escape" && this.isVisible && this.handleClose();
|
|
1484
1484
|
}, this.baseUrlErrorMessage = "Authentication service is not configured correctly. Please add an API domain or contact support.", this.handleClose = () => {
|
|
1485
1485
|
this.isClosing || !this.isVisible || (this.cleanupInlineStyles(), this.isDragging = !1, this.dragStartY = 0, this.dragCurrentY = 0, this.dragStartTime = 0, this.isClosing = !0, setTimeout(() => {
|
|
@@ -1536,7 +1536,7 @@ let A = class extends ee {
|
|
|
1536
1536
|
connectedCallback() {
|
|
1537
1537
|
super.connectedCallback(), window.addEventListener("keyup", this.boundKeyHandler);
|
|
1538
1538
|
const t = this.cookies.getAuthToken("AUTH_TOKEN"), e = this.cookies.getAuthToken("REFRESH_TOKEN");
|
|
1539
|
-
this.isLoggedIn = !!(t && e), this.mode = this.initialMode, this.hasApiBaseUrl() || (this.error = this.baseUrlErrorMessage), this.handleOAuthCallbackIfPresent();
|
|
1539
|
+
this.isLoggedIn = !!(t && e), this.mode = this.disableSignup && this.initialMode === "signup" ? "signin" : this.initialMode, this.hasApiBaseUrl() || (this.error = this.baseUrlErrorMessage), this.handleOAuthCallbackIfPresent();
|
|
1540
1540
|
}
|
|
1541
1541
|
disconnectedCallback() {
|
|
1542
1542
|
window.removeEventListener("keyup", this.boundKeyHandler), this.unlockBodyScroll(), super.disconnectedCallback();
|
|
@@ -1545,7 +1545,7 @@ let A = class extends ee {
|
|
|
1545
1545
|
this.open && (this.isVisible = !0);
|
|
1546
1546
|
}
|
|
1547
1547
|
updated(t) {
|
|
1548
|
-
t.has("baseUrl") && (this.apiService = void 0, this.hasApiBaseUrl() ? (this.error === this.baseUrlErrorMessage && (this.error = ""), this.hasHandledOAuthCallback || this.handleOAuthCallbackIfPresent()) : this.error = this.baseUrlErrorMessage), (t.has("oauthDomain") || t.has("oauthRegion") || t.has("oauthUserPoolId") || t.has("oauthClientId") || t.has("oauthRedirectUri")) && (this.oauthService = void 0, this.handleOAuthCallbackIfPresent()), t.has("open") && (this.open ? (this.isVisible = !0, this.lockBodyScroll(), setTimeout(() => {
|
|
1548
|
+
t.has("disableSignup") && this.disableSignup && this.mode === "signup" && (this.mode = "signin", this.signupStep = "form"), t.has("baseUrl") && (this.apiService = void 0, this.hasApiBaseUrl() ? (this.error === this.baseUrlErrorMessage && (this.error = ""), this.hasHandledOAuthCallback || this.handleOAuthCallbackIfPresent()) : this.error = this.baseUrlErrorMessage), (t.has("oauthDomain") || t.has("oauthRegion") || t.has("oauthUserPoolId") || t.has("oauthClientId") || t.has("oauthRedirectUri")) && (this.oauthService = void 0, this.handleOAuthCallbackIfPresent()), t.has("open") && (this.open ? (this.isVisible = !0, this.lockBodyScroll(), setTimeout(() => {
|
|
1549
1549
|
this.emailInput?.focus();
|
|
1550
1550
|
}, 100)) : this.isVisible && this.handleClose()), t.has("isVisible") && (this.isVisible ? (this.lockBodyScroll(), this.cleanupInlineStyles()) : (this.unlockBodyScroll(), this.resetState()));
|
|
1551
1551
|
}
|
|
@@ -1564,7 +1564,7 @@ let A = class extends ee {
|
|
|
1564
1564
|
this.isDragging = !1, this.lastDragEndTime = 0, this.dragStartY = 0, this.dragCurrentY = 0, this.dragStartTime = 0, this.error = "", this.notice = "", this.errors = {}, this.email = "", this.password = "", this.givenName = "", this.familyName = "", this.newPassword = "", this.confirmPassword = "", this.otpDigits = ["", "", "", "", "", ""], this.signupOtpDigits = ["", "", "", "", "", ""], this.resetStep = "none", this.signupStep = "form", this.mode = this.initialMode;
|
|
1565
1565
|
}
|
|
1566
1566
|
toggleMode() {
|
|
1567
|
-
this.resetStep === "none" && (this.mode = this.mode === "signin" ? "signup" : "signin", this.signupStep = "form", this.error = "", this.notice = "", this.errors = {}, this.confirmPassword = "", this.mode === "signin" && (this.givenName = "", this.familyName = "", this.signupOtpDigits = ["", "", "", "", "", ""]));
|
|
1567
|
+
this.resetStep === "none" && (this.disableSignup && this.mode === "signin" || (this.mode = this.mode === "signin" ? "signup" : "signin", this.signupStep = "form", this.error = "", this.notice = "", this.errors = {}, this.confirmPassword = "", this.mode === "signin" && (this.givenName = "", this.familyName = "", this.signupOtpDigits = ["", "", "", "", "", ""])));
|
|
1568
1568
|
}
|
|
1569
1569
|
startReset() {
|
|
1570
1570
|
this.mode = "signin", this.resetStep = "request", this.error = "", this.notice = "", this.errors = {}, this.password = "", this.newPassword = "", this.confirmPassword = "";
|
|
@@ -1887,7 +1887,7 @@ let A = class extends ee {
|
|
|
1887
1887
|
}
|
|
1888
1888
|
render() {
|
|
1889
1889
|
if (!this.isVisible)
|
|
1890
|
-
return
|
|
1890
|
+
return b;
|
|
1891
1891
|
const t = {
|
|
1892
1892
|
"modal-overlay": !0,
|
|
1893
1893
|
"modal-overlay--closing": this.isClosing
|
|
@@ -1898,7 +1898,7 @@ let A = class extends ee {
|
|
|
1898
1898
|
"modal-container--dragging": this.isDragging,
|
|
1899
1899
|
[`modal-container--${this.size}`]: !0
|
|
1900
1900
|
};
|
|
1901
|
-
return
|
|
1901
|
+
return S`
|
|
1902
1902
|
<!-- Modal/Drawer -->
|
|
1903
1903
|
<div
|
|
1904
1904
|
class=${vt(t)}
|
|
@@ -1938,8 +1938,8 @@ let A = class extends ee {
|
|
|
1938
1938
|
renderContent() {
|
|
1939
1939
|
if (!this.hasApiBaseUrl()) {
|
|
1940
1940
|
const t = this.baseUrlErrorMessage;
|
|
1941
|
-
return
|
|
1942
|
-
${this.logoUrl.length > 0 ?
|
|
1941
|
+
return S`
|
|
1942
|
+
${this.logoUrl.length > 0 ? S`
|
|
1943
1943
|
<header class="modal-header">
|
|
1944
1944
|
<div class="auth-header">
|
|
1945
1945
|
<img
|
|
@@ -1951,7 +1951,7 @@ let A = class extends ee {
|
|
|
1951
1951
|
/>
|
|
1952
1952
|
</div>
|
|
1953
1953
|
</header>
|
|
1954
|
-
` :
|
|
1954
|
+
` : b}
|
|
1955
1955
|
|
|
1956
1956
|
<div class="modal-body">
|
|
1957
1957
|
<div class="auth-form">
|
|
@@ -1962,9 +1962,9 @@ let A = class extends ee {
|
|
|
1962
1962
|
</div>
|
|
1963
1963
|
`;
|
|
1964
1964
|
}
|
|
1965
|
-
return this.isLoggedIn ?
|
|
1965
|
+
return this.isLoggedIn ? S`
|
|
1966
1966
|
<!-- Header -->
|
|
1967
|
-
${this.logoUrl.length > 0 ?
|
|
1967
|
+
${this.logoUrl.length > 0 ? S`
|
|
1968
1968
|
<header class="modal-header">
|
|
1969
1969
|
<div class="auth-header">
|
|
1970
1970
|
<img
|
|
@@ -1976,7 +1976,7 @@ let A = class extends ee {
|
|
|
1976
1976
|
/>
|
|
1977
1977
|
</div>
|
|
1978
1978
|
</header>
|
|
1979
|
-
` :
|
|
1979
|
+
` : b}
|
|
1980
1980
|
|
|
1981
1981
|
<!-- Body -->
|
|
1982
1982
|
<div class="modal-body">
|
|
@@ -1987,9 +1987,9 @@ let A = class extends ee {
|
|
|
1987
1987
|
${this.renderAlerts()}
|
|
1988
1988
|
</div>
|
|
1989
1989
|
</div>
|
|
1990
|
-
` :
|
|
1990
|
+
` : S`
|
|
1991
1991
|
<!-- Header -->
|
|
1992
|
-
${(!this.mode || this.resetStep === "none") && this.logoUrl.length > 0 && this.mode === "signin" ?
|
|
1992
|
+
${(!this.mode || this.resetStep === "none") && this.logoUrl.length > 0 && this.mode === "signin" ? S`
|
|
1993
1993
|
<header class="modal-header">
|
|
1994
1994
|
|
|
1995
1995
|
<div class="auth-header">
|
|
@@ -2002,7 +2002,7 @@ let A = class extends ee {
|
|
|
2002
2002
|
/>
|
|
2003
2003
|
</div>
|
|
2004
2004
|
</header>
|
|
2005
|
-
` :
|
|
2005
|
+
` : b}
|
|
2006
2006
|
|
|
2007
2007
|
<!-- Body -->
|
|
2008
2008
|
<div class="modal-body">
|
|
@@ -2023,7 +2023,7 @@ let A = class extends ee {
|
|
|
2023
2023
|
}
|
|
2024
2024
|
renderFormContent() {
|
|
2025
2025
|
if (this.resetStep === "none" && (!this.mode || this.mode === "signin" || this.signupStep === "form"))
|
|
2026
|
-
return
|
|
2026
|
+
return S`
|
|
2027
2027
|
<!-- Email -->
|
|
2028
2028
|
<label class="field">
|
|
2029
2029
|
<span class="field-label">Email Address</span>
|
|
@@ -2037,7 +2037,7 @@ let A = class extends ee {
|
|
|
2037
2037
|
required
|
|
2038
2038
|
autocomplete="email"
|
|
2039
2039
|
/>
|
|
2040
|
-
${this.errors.email ?
|
|
2040
|
+
${this.errors.email ? S`<span class="field-error">${this.errors.email}</span>` : b}
|
|
2041
2041
|
</label>
|
|
2042
2042
|
|
|
2043
2043
|
<!-- Password -->
|
|
@@ -2052,18 +2052,18 @@ let A = class extends ee {
|
|
|
2052
2052
|
required
|
|
2053
2053
|
autocomplete=${this.mode === "signup" ? "new-password" : "current-password"}
|
|
2054
2054
|
/>
|
|
2055
|
-
${this.errors.password ?
|
|
2055
|
+
${this.errors.password ? S`<span class="field-error">${this.errors.password}</span>` : b}
|
|
2056
2056
|
</label>
|
|
2057
2057
|
|
|
2058
|
-
${this.mode === "signin" && this.error ?
|
|
2058
|
+
${this.mode === "signin" && this.error ? S`
|
|
2059
2059
|
<div class="forgot-row">
|
|
2060
2060
|
<button type="button" class="text-btn" @click=${this.startReset}>
|
|
2061
2061
|
Forgot your password?
|
|
2062
2062
|
</button>
|
|
2063
2063
|
</div>
|
|
2064
|
-
` :
|
|
2064
|
+
` : b}
|
|
2065
2065
|
|
|
2066
|
-
${this.mode === "signup" ?
|
|
2066
|
+
${this.mode === "signup" ? S`
|
|
2067
2067
|
<!-- Confirm Password -->
|
|
2068
2068
|
<label class="field">
|
|
2069
2069
|
<span class="field-label">Confirm Password</span>
|
|
@@ -2076,7 +2076,7 @@ let A = class extends ee {
|
|
|
2076
2076
|
required
|
|
2077
2077
|
autocomplete="new-password"
|
|
2078
2078
|
/>
|
|
2079
|
-
${this.errors.confirm_password ?
|
|
2079
|
+
${this.errors.confirm_password ? S`<span class="field-error">${this.errors.confirm_password}</span>` : b}
|
|
2080
2080
|
</label>
|
|
2081
2081
|
|
|
2082
2082
|
<!-- First Name -->
|
|
@@ -2091,7 +2091,7 @@ let A = class extends ee {
|
|
|
2091
2091
|
required
|
|
2092
2092
|
autocomplete="given-name"
|
|
2093
2093
|
/>
|
|
2094
|
-
${this.errors.givenName ?
|
|
2094
|
+
${this.errors.givenName ? S`<span class="field-error">${this.errors.givenName}</span>` : b}
|
|
2095
2095
|
</label>
|
|
2096
2096
|
|
|
2097
2097
|
<!-- Last Name -->
|
|
@@ -2106,19 +2106,19 @@ let A = class extends ee {
|
|
|
2106
2106
|
required
|
|
2107
2107
|
autocomplete="family-name"
|
|
2108
2108
|
/>
|
|
2109
|
-
${this.errors.familyName ?
|
|
2109
|
+
${this.errors.familyName ? S`<span class="field-error">${this.errors.familyName}</span>` : b}
|
|
2110
2110
|
</label>
|
|
2111
|
-
` :
|
|
2111
|
+
` : b}
|
|
2112
2112
|
`;
|
|
2113
2113
|
if (this.mode === "signup" && this.signupStep === "otp")
|
|
2114
|
-
return
|
|
2114
|
+
return S`
|
|
2115
2115
|
<div class="otp-section">
|
|
2116
2116
|
<label class="otp-label">Enter 6-digit code</label>
|
|
2117
2117
|
<div class="otp-inputs" role="group" aria-label="One time code">
|
|
2118
2118
|
${Tt(
|
|
2119
2119
|
Array.from({ length: 6 }, (t, e) => e),
|
|
2120
2120
|
(t) => t,
|
|
2121
|
-
(t) =>
|
|
2121
|
+
(t) => S`
|
|
2122
2122
|
<input
|
|
2123
2123
|
class="otp-input signup-otp-input ${this.errors.signup_otp ? "otp-input--error" : ""}"
|
|
2124
2124
|
type="text"
|
|
@@ -2135,7 +2135,7 @@ let A = class extends ee {
|
|
|
2135
2135
|
`
|
|
2136
2136
|
)}
|
|
2137
2137
|
</div>
|
|
2138
|
-
${this.errors.signup_otp ?
|
|
2138
|
+
${this.errors.signup_otp ? S`<p class="otp-error">${this.errors.signup_otp}</p>` : b}
|
|
2139
2139
|
</div>
|
|
2140
2140
|
<div class="forgot-row">
|
|
2141
2141
|
<button type="button" class="text-btn" @click=${this.backToSignupForm}>
|
|
@@ -2144,7 +2144,7 @@ let A = class extends ee {
|
|
|
2144
2144
|
</div>
|
|
2145
2145
|
`;
|
|
2146
2146
|
if (this.resetStep === "request")
|
|
2147
|
-
return
|
|
2147
|
+
return S`
|
|
2148
2148
|
<label class="field">
|
|
2149
2149
|
<span class="field-label">Email Address</span>
|
|
2150
2150
|
<input
|
|
@@ -2157,7 +2157,7 @@ let A = class extends ee {
|
|
|
2157
2157
|
required
|
|
2158
2158
|
autocomplete="email"
|
|
2159
2159
|
/>
|
|
2160
|
-
${this.errors.email ?
|
|
2160
|
+
${this.errors.email ? S`<span class="field-error">${this.errors.email}</span>` : b}
|
|
2161
2161
|
</label>
|
|
2162
2162
|
<div class="forgot-row">
|
|
2163
2163
|
<button type="button" class="text-btn" @click=${this.cancelReset}>
|
|
@@ -2167,7 +2167,7 @@ let A = class extends ee {
|
|
|
2167
2167
|
`;
|
|
2168
2168
|
if (this.resetStep === "confirm") {
|
|
2169
2169
|
const t = this.otpDigits.every((e) => /^\d$/.test(e));
|
|
2170
|
-
return
|
|
2170
|
+
return S`
|
|
2171
2171
|
<label class="field">
|
|
2172
2172
|
<span class="field-label">Email Address</span>
|
|
2173
2173
|
<input
|
|
@@ -2179,7 +2179,7 @@ let A = class extends ee {
|
|
|
2179
2179
|
required
|
|
2180
2180
|
autocomplete="email"
|
|
2181
2181
|
/>
|
|
2182
|
-
${this.errors.email ?
|
|
2182
|
+
${this.errors.email ? S`<span class="field-error">${this.errors.email}</span>` : b}
|
|
2183
2183
|
</label>
|
|
2184
2184
|
|
|
2185
2185
|
<div class="otp-section">
|
|
@@ -2188,7 +2188,7 @@ let A = class extends ee {
|
|
|
2188
2188
|
${Tt(
|
|
2189
2189
|
Array.from({ length: 6 }, (e, s) => s),
|
|
2190
2190
|
(e) => e,
|
|
2191
|
-
(e) =>
|
|
2191
|
+
(e) => S`
|
|
2192
2192
|
<input
|
|
2193
2193
|
class="otp-input reset-otp-input ${this.errors.otp ? "otp-input--error" : ""}"
|
|
2194
2194
|
type="text"
|
|
@@ -2205,10 +2205,10 @@ let A = class extends ee {
|
|
|
2205
2205
|
`
|
|
2206
2206
|
)}
|
|
2207
2207
|
</div>
|
|
2208
|
-
${this.errors.otp ?
|
|
2208
|
+
${this.errors.otp ? S`<p class="otp-error">${this.errors.otp}</p>` : b}
|
|
2209
2209
|
</div>
|
|
2210
2210
|
|
|
2211
|
-
${t ?
|
|
2211
|
+
${t ? S`
|
|
2212
2212
|
<div class="new-password-fields">
|
|
2213
2213
|
<label class="field">
|
|
2214
2214
|
<span class="field-label">New Password</span>
|
|
@@ -2221,7 +2221,7 @@ let A = class extends ee {
|
|
|
2221
2221
|
required
|
|
2222
2222
|
autocomplete="new-password"
|
|
2223
2223
|
/>
|
|
2224
|
-
${this.errors.new_password ?
|
|
2224
|
+
${this.errors.new_password ? S`<span class="field-error">${this.errors.new_password}</span>` : b}
|
|
2225
2225
|
</label>
|
|
2226
2226
|
|
|
2227
2227
|
<label class="field">
|
|
@@ -2235,10 +2235,10 @@ let A = class extends ee {
|
|
|
2235
2235
|
required
|
|
2236
2236
|
autocomplete="new-password"
|
|
2237
2237
|
/>
|
|
2238
|
-
${this.errors.confirm_password ?
|
|
2238
|
+
${this.errors.confirm_password ? S`<span class="field-error">${this.errors.confirm_password}</span>` : b}
|
|
2239
2239
|
</label>
|
|
2240
2240
|
</div>
|
|
2241
|
-
` :
|
|
2241
|
+
` : b}
|
|
2242
2242
|
|
|
2243
2243
|
<div class="forgot-row">
|
|
2244
2244
|
<button type="button" class="text-btn" @click=${this.backToRequest}>
|
|
@@ -2247,35 +2247,35 @@ let A = class extends ee {
|
|
|
2247
2247
|
</div>
|
|
2248
2248
|
`;
|
|
2249
2249
|
}
|
|
2250
|
-
return
|
|
2250
|
+
return b;
|
|
2251
2251
|
}
|
|
2252
2252
|
renderActions() {
|
|
2253
2253
|
if (this.resetStep === "request")
|
|
2254
|
-
return
|
|
2254
|
+
return S`
|
|
2255
2255
|
<button type="submit" class="cta" ?disabled=${this.isLoading}>
|
|
2256
2256
|
${this.isLoading ? "Sending..." : "Send Reset Code"}
|
|
2257
2257
|
</button>
|
|
2258
2258
|
`;
|
|
2259
2259
|
if (this.resetStep === "confirm")
|
|
2260
|
-
return this.otpDigits.every((e) => /^\d$/.test(e)) ?
|
|
2260
|
+
return this.otpDigits.every((e) => /^\d$/.test(e)) ? S`
|
|
2261
2261
|
<button type="submit" class="cta" ?disabled=${this.isLoading}>
|
|
2262
2262
|
${this.isLoading ? "Resetting..." : "Reset Password"}
|
|
2263
2263
|
</button>
|
|
2264
|
-
` :
|
|
2264
|
+
` : b;
|
|
2265
2265
|
if (this.mode === "signup" && this.signupStep === "otp") {
|
|
2266
2266
|
const t = this.signupOtpDigits.every((e) => /^\d$/.test(e));
|
|
2267
|
-
return
|
|
2267
|
+
return S`
|
|
2268
2268
|
<button type="submit" class="cta" ?disabled=${!t || this.isLoading}>
|
|
2269
2269
|
${this.isLoading ? "Completing..." : "Complete Registration"}
|
|
2270
2270
|
</button>
|
|
2271
2271
|
`;
|
|
2272
2272
|
}
|
|
2273
|
-
return
|
|
2273
|
+
return S`
|
|
2274
2274
|
<button type="submit" class="cta" ?disabled=${this.isLoading}>
|
|
2275
2275
|
${this.isLoading ? "Loading..." : this.mode === "signup" ? "Continue" : "Sign In"}
|
|
2276
2276
|
</button>
|
|
2277
2277
|
|
|
2278
|
-
${this.isOAuthConfigured() && this.mode === "signin" ?
|
|
2278
|
+
${this.isOAuthConfigured() && this.mode === "signin" ? S`
|
|
2279
2279
|
<div class="button-row">
|
|
2280
2280
|
<button
|
|
2281
2281
|
type="button"
|
|
@@ -2295,31 +2295,31 @@ let A = class extends ee {
|
|
|
2295
2295
|
${this.renderAppleIcon()}
|
|
2296
2296
|
</button>
|
|
2297
2297
|
</div>
|
|
2298
|
-
` :
|
|
2298
|
+
` : b}
|
|
2299
2299
|
`;
|
|
2300
2300
|
}
|
|
2301
2301
|
renderAlerts() {
|
|
2302
|
-
return
|
|
2303
|
-
${this.notice ?
|
|
2302
|
+
return S`
|
|
2303
|
+
${this.notice ? S`
|
|
2304
2304
|
<div class="alert alert--success">
|
|
2305
2305
|
${this.notice}
|
|
2306
2306
|
<button class="alert-close" @click=${() => this.notice = ""} aria-label="Dismiss">
|
|
2307
2307
|
×
|
|
2308
2308
|
</button>
|
|
2309
2309
|
</div>
|
|
2310
|
-
` :
|
|
2311
|
-
${this.error ?
|
|
2310
|
+
` : b}
|
|
2311
|
+
${this.error ? S`
|
|
2312
2312
|
<div class="alert alert--error">
|
|
2313
2313
|
${this.error}
|
|
2314
2314
|
<button class="alert-close" @click=${() => this.error = ""} aria-label="Dismiss">
|
|
2315
2315
|
×
|
|
2316
2316
|
</button>
|
|
2317
2317
|
</div>
|
|
2318
|
-
` :
|
|
2318
|
+
` : b}
|
|
2319
2319
|
`;
|
|
2320
2320
|
}
|
|
2321
2321
|
renderFooter() {
|
|
2322
|
-
return this.isLoggedIn ?
|
|
2322
|
+
return this.isLoggedIn ? b : this.resetStep === "none" && (!this.mode || this.mode === "signin" || this.signupStep === "form") ? this.disableSignup ? b : S`
|
|
2323
2323
|
<div class="auth-footer">
|
|
2324
2324
|
<p class="toggle-text">
|
|
2325
2325
|
${this.mode === "signup" ? "Already have an account?" : "Don't have an account?"}
|
|
@@ -2328,7 +2328,7 @@ let A = class extends ee {
|
|
|
2328
2328
|
${this.mode === "signup" ? "Sign In" : "Sign Up"}
|
|
2329
2329
|
</button>
|
|
2330
2330
|
</div>
|
|
2331
|
-
` :
|
|
2331
|
+
` : S`
|
|
2332
2332
|
<div class="auth-footer">
|
|
2333
2333
|
<p class="toggle-text">
|
|
2334
2334
|
Having trouble? Email
|
|
@@ -2338,7 +2338,7 @@ let A = class extends ee {
|
|
|
2338
2338
|
`;
|
|
2339
2339
|
}
|
|
2340
2340
|
renderGoogleIcon() {
|
|
2341
|
-
return
|
|
2341
|
+
return S`
|
|
2342
2342
|
<svg viewBox="-0.5 0 48 48" width="18" height="18" fill="none">
|
|
2343
2343
|
<path d="M9.82727273,24 C9.82727273,22.4757333 10.0804318,21.0144 10.5322727,19.6437333 L2.62345455,13.6042667 C1.08206818,16.7338667 0.213636364,20.2602667 0.213636364,24 C0.213636364,27.7365333 1.081,31.2608 2.62025,34.3882667 L10.5247955,28.3370667 C10.0772273,26.9728 9.82727273,25.5168 9.82727273,24" fill="#FBBC05"></path>
|
|
2344
2344
|
<path d="M23.7136364,10.1333333 C27.025,10.1333333 30.0159091,11.3066667 32.3659091,13.2266667 L39.2022727,6.4 C35.0363636,2.77333333 29.6954545,0.533333333 23.7136364,0.533333333 C14.4268636,0.533333333 6.44540909,5.84426667 2.62345455,13.6042667 L10.5322727,19.6437333 C12.3545909,14.112 17.5491591,10.1333333 23.7136364,10.1333333" fill="#EB4335"></path>
|
|
@@ -2348,7 +2348,7 @@ let A = class extends ee {
|
|
|
2348
2348
|
`;
|
|
2349
2349
|
}
|
|
2350
2350
|
renderAppleIcon() {
|
|
2351
|
-
return
|
|
2351
|
+
return S`
|
|
2352
2352
|
<svg viewBox="-3.5 0 48 48" width="18" height="18" class="apple-icon">
|
|
2353
2353
|
<path d="M231.174735,567.792499 C232.740177,565.771699 233.926883,562.915484 233.497649,560 C230.939077,560.177808 227.948466,561.814769 226.203475,563.948463 C224.612784,565.88177 223.305444,568.757742 223.816036,571.549042 C226.613071,571.636535 229.499881,569.960061 231.174735,567.792499 L231.174735,567.792499 Z M245,595.217241 C243.880625,597.712195 243.341978,598.827022 241.899976,601.03692 C239.888467,604.121745 237.052156,607.962958 233.53412,607.991182 C230.411652,608.02505 229.606488,605.94498 225.367451,605.970382 C221.128414,605.99296 220.244696,608.030695 217.116618,607.999649 C213.601387,607.968603 210.913765,604.502761 208.902256,601.417937 C203.27452,592.79849 202.68257,582.680377 206.152914,577.298162 C208.621711,573.476705 212.515678,571.241407 216.173986,571.241407 C219.89682,571.241407 222.239372,573.296075 225.322563,573.296075 C228.313175,573.296075 230.133913,571.235762 234.440281,571.235762 C237.700215,571.235762 241.153726,573.022307 243.611302,576.10431 C235.554045,580.546683 236.85858,592.121127 245,595.217241 L245,595.217241 Z" transform="translate(-204.000000, -560.000000)" fill="#0b0b0a"></path>
|
|
2354
2354
|
</svg>
|
|
@@ -2424,6 +2424,9 @@ v([
|
|
|
2424
2424
|
v([
|
|
2425
2425
|
O({ type: String, attribute: "data-theme", reflect: !0 })
|
|
2426
2426
|
], A.prototype, "theme", 2);
|
|
2427
|
+
v([
|
|
2428
|
+
O({ type: Boolean, attribute: "disable-signup" })
|
|
2429
|
+
], A.prototype, "disableSignup", 2);
|
|
2427
2430
|
v([
|
|
2428
2431
|
T()
|
|
2429
2432
|
], A.prototype, "mode", 2);
|
|
@@ -2503,14 +2506,14 @@ v([
|
|
|
2503
2506
|
tt(".modal-body")
|
|
2504
2507
|
], A.prototype, "modalBody", 2);
|
|
2505
2508
|
A = v([
|
|
2506
|
-
Gt("auth")
|
|
2509
|
+
Gt("auth-drawer")
|
|
2507
2510
|
], A);
|
|
2508
2511
|
var hr = Object.defineProperty, dr = Object.getOwnPropertyDescriptor, ie = (t, e, s, r) => {
|
|
2509
2512
|
for (var i = r > 1 ? void 0 : r ? dr(e, s) : e, o = t.length - 1, n; o >= 0; o--)
|
|
2510
2513
|
(n = t[o]) && (i = (r ? n(e, s, i) : n(i)) || i);
|
|
2511
2514
|
return r && i && hr(e, s, i), i;
|
|
2512
2515
|
};
|
|
2513
|
-
let
|
|
2516
|
+
let F = class extends ee {
|
|
2514
2517
|
constructor() {
|
|
2515
2518
|
super(...arguments), this.theme = "light", this.storageKey = "theme-preference", this.size = "sm", this.variant = "ghost", this.isDark = !1;
|
|
2516
2519
|
}
|
|
@@ -2549,14 +2552,14 @@ let M = class extends ee {
|
|
|
2549
2552
|
}
|
|
2550
2553
|
render() {
|
|
2551
2554
|
const t = this.isDark ? "Switch to light mode" : "Switch to dark mode";
|
|
2552
|
-
return
|
|
2555
|
+
return S`
|
|
2553
2556
|
<button
|
|
2554
2557
|
class="theme-toggle ${this.getSizeClass()} ${this.getVariantClass()}"
|
|
2555
2558
|
@click=${this.toggleTheme}
|
|
2556
2559
|
aria-label=${t}
|
|
2557
2560
|
type="button"
|
|
2558
2561
|
>
|
|
2559
|
-
${this.isDark ?
|
|
2562
|
+
${this.isDark ? S`
|
|
2560
2563
|
<svg
|
|
2561
2564
|
viewBox="0 0 20 20"
|
|
2562
2565
|
fill="currentColor"
|
|
@@ -2569,7 +2572,7 @@ let M = class extends ee {
|
|
|
2569
2572
|
clip-rule="evenodd"
|
|
2570
2573
|
/>
|
|
2571
2574
|
</svg>
|
|
2572
|
-
` :
|
|
2575
|
+
` : S`
|
|
2573
2576
|
<svg
|
|
2574
2577
|
viewBox="0 0 20 20"
|
|
2575
2578
|
fill="currentColor"
|
|
@@ -2585,7 +2588,7 @@ let M = class extends ee {
|
|
|
2585
2588
|
`;
|
|
2586
2589
|
}
|
|
2587
2590
|
};
|
|
2588
|
-
|
|
2591
|
+
F.styles = Kt`
|
|
2589
2592
|
:host {
|
|
2590
2593
|
display: inline-block;
|
|
2591
2594
|
}
|
|
@@ -2706,22 +2709,22 @@ M.styles = Kt`
|
|
|
2706
2709
|
`;
|
|
2707
2710
|
ie([
|
|
2708
2711
|
O({ type: String, reflect: !0 })
|
|
2709
|
-
],
|
|
2712
|
+
], F.prototype, "theme", 2);
|
|
2710
2713
|
ie([
|
|
2711
2714
|
O({ type: String, attribute: "storage-key" })
|
|
2712
|
-
],
|
|
2715
|
+
], F.prototype, "storageKey", 2);
|
|
2713
2716
|
ie([
|
|
2714
2717
|
O({ type: String, attribute: "size" })
|
|
2715
|
-
],
|
|
2718
|
+
], F.prototype, "size", 2);
|
|
2716
2719
|
ie([
|
|
2717
2720
|
O({ type: String, attribute: "variant" })
|
|
2718
|
-
],
|
|
2721
|
+
], F.prototype, "variant", 2);
|
|
2719
2722
|
ie([
|
|
2720
2723
|
T()
|
|
2721
|
-
],
|
|
2722
|
-
|
|
2724
|
+
], F.prototype, "isDark", 2);
|
|
2725
|
+
F = ie([
|
|
2723
2726
|
Gt("cals-theme-toggle")
|
|
2724
|
-
],
|
|
2727
|
+
], F);
|
|
2725
2728
|
function ss(t, e) {
|
|
2726
2729
|
return function() {
|
|
2727
2730
|
return t.apply(e, arguments);
|
|
@@ -2752,7 +2755,7 @@ const fr = Ue("string"), P = Ue("function"), os = Ue("number"), ge = (t) => t !=
|
|
|
2752
2755
|
} catch {
|
|
2753
2756
|
return !1;
|
|
2754
2757
|
}
|
|
2755
|
-
}, yr = N("Date"), wr = N("File"), br = N("Blob"),
|
|
2758
|
+
}, yr = N("Date"), wr = N("File"), br = N("Blob"), Sr = N("FileList"), $r = (t) => ge(t) && P(t.pipe), Ar = (t) => {
|
|
2756
2759
|
let e;
|
|
2757
2760
|
return t && (typeof FormData == "function" && t instanceof FormData || P(t.append) && ((e = De(t)) === "formdata" || // detect form-data instance
|
|
2758
2761
|
e === "object" && P(t.toString) && t.toString() === "[object FormData]"));
|
|
@@ -2847,7 +2850,7 @@ const Or = (t, e, s, { allOwnKeys: r } = {}) => (ye(e, (i, o) => {
|
|
|
2847
2850
|
let n;
|
|
2848
2851
|
(n = e(i, o, t)) !== !1 && (r[o] = n || i);
|
|
2849
2852
|
}), Object.defineProperties(t, r);
|
|
2850
|
-
},
|
|
2853
|
+
}, Mr = (t) => {
|
|
2851
2854
|
ls(t, (e, s) => {
|
|
2852
2855
|
if (P(t) && ["arguments", "caller", "callee"].indexOf(s) !== -1)
|
|
2853
2856
|
return !1;
|
|
@@ -2862,7 +2865,7 @@ const Or = (t, e, s, { allOwnKeys: r } = {}) => (ye(e, (i, o) => {
|
|
|
2862
2865
|
});
|
|
2863
2866
|
}
|
|
2864
2867
|
});
|
|
2865
|
-
},
|
|
2868
|
+
}, Fr = (t, e) => {
|
|
2866
2869
|
const s = {}, r = (i) => {
|
|
2867
2870
|
i.forEach((o) => {
|
|
2868
2871
|
s[o] = !0;
|
|
@@ -2922,10 +2925,10 @@ const Vr = (t) => {
|
|
|
2922
2925
|
isBlob: br,
|
|
2923
2926
|
isRegExp: Hr,
|
|
2924
2927
|
isFunction: P,
|
|
2925
|
-
isStream:
|
|
2928
|
+
isStream: $r,
|
|
2926
2929
|
isURLSearchParams: vr,
|
|
2927
2930
|
isTypedArray: Nr,
|
|
2928
|
-
isFileList:
|
|
2931
|
+
isFileList: Sr,
|
|
2929
2932
|
forEach: ye,
|
|
2930
2933
|
merge: Ke,
|
|
2931
2934
|
extend: Or,
|
|
@@ -2944,8 +2947,8 @@ const Vr = (t) => {
|
|
|
2944
2947
|
hasOwnProp: kt,
|
|
2945
2948
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
2946
2949
|
reduceDescriptors: ls,
|
|
2947
|
-
freezeMethods:
|
|
2948
|
-
toObjectSet:
|
|
2950
|
+
freezeMethods: Mr,
|
|
2951
|
+
toObjectSet: Fr,
|
|
2949
2952
|
toCamelCase: jr,
|
|
2950
2953
|
noop: qr,
|
|
2951
2954
|
toFiniteNumber: zr,
|
|
@@ -2960,10 +2963,10 @@ const Vr = (t) => {
|
|
|
2960
2963
|
asap: Jr,
|
|
2961
2964
|
isIterable: Gr
|
|
2962
2965
|
};
|
|
2963
|
-
function
|
|
2966
|
+
function $(t, e, s, r, i) {
|
|
2964
2967
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), s && (this.config = s), r && (this.request = r), i && (this.response = i, this.status = i.status ? i.status : null);
|
|
2965
2968
|
}
|
|
2966
|
-
d.inherits(
|
|
2969
|
+
d.inherits($, Error, {
|
|
2967
2970
|
toJSON: function() {
|
|
2968
2971
|
return {
|
|
2969
2972
|
// Standard
|
|
@@ -2984,7 +2987,7 @@ d.inherits(S, Error, {
|
|
|
2984
2987
|
};
|
|
2985
2988
|
}
|
|
2986
2989
|
});
|
|
2987
|
-
const hs =
|
|
2990
|
+
const hs = $.prototype, ds = {};
|
|
2988
2991
|
[
|
|
2989
2992
|
"ERR_BAD_OPTION_VALUE",
|
|
2990
2993
|
"ERR_BAD_OPTION",
|
|
@@ -3002,15 +3005,15 @@ const hs = S.prototype, ds = {};
|
|
|
3002
3005
|
].forEach((t) => {
|
|
3003
3006
|
ds[t] = { value: t };
|
|
3004
3007
|
});
|
|
3005
|
-
Object.defineProperties(
|
|
3008
|
+
Object.defineProperties($, ds);
|
|
3006
3009
|
Object.defineProperty(hs, "isAxiosError", { value: !0 });
|
|
3007
|
-
|
|
3010
|
+
$.from = (t, e, s, r, i, o) => {
|
|
3008
3011
|
const n = Object.create(hs);
|
|
3009
3012
|
d.toFlatObject(t, n, function(c) {
|
|
3010
3013
|
return c !== Error.prototype;
|
|
3011
3014
|
}, (h) => h !== "isAxiosError");
|
|
3012
3015
|
const a = t && t.message ? t.message : "Error", l = e == null && t ? t.code : e;
|
|
3013
|
-
return
|
|
3016
|
+
return $.call(n, a, l, s, r, i), t && n.cause == null && Object.defineProperty(n, "cause", { value: t, configurable: !0 }), n.name = t && t.name || "Error", o && Object.assign(n, o), n;
|
|
3014
3017
|
};
|
|
3015
3018
|
const Zr = null;
|
|
3016
3019
|
function Ve(t) {
|
|
@@ -3050,7 +3053,7 @@ function Ne(t, e, s) {
|
|
|
3050
3053
|
if (d.isBoolean(p))
|
|
3051
3054
|
return p.toString();
|
|
3052
3055
|
if (!l && d.isBlob(p))
|
|
3053
|
-
throw new
|
|
3056
|
+
throw new $("Blob is not supported. Use a Buffer instead.");
|
|
3054
3057
|
return d.isArrayBuffer(p) || d.isTypedArray(p) ? l && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
|
|
3055
3058
|
}
|
|
3056
3059
|
function c(p, g, m) {
|
|
@@ -3301,7 +3304,7 @@ const we = {
|
|
|
3301
3304
|
return JSON.parse(e, this.parseReviver);
|
|
3302
3305
|
} catch (a) {
|
|
3303
3306
|
if (n)
|
|
3304
|
-
throw a.name === "SyntaxError" ?
|
|
3307
|
+
throw a.name === "SyntaxError" ? $.from(a, $.ERR_BAD_RESPONSE, this, null, this.response) : a;
|
|
3305
3308
|
}
|
|
3306
3309
|
}
|
|
3307
3310
|
return e;
|
|
@@ -3372,7 +3375,7 @@ function mi(t) {
|
|
|
3372
3375
|
return e;
|
|
3373
3376
|
}
|
|
3374
3377
|
const gi = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
|
|
3375
|
-
function
|
|
3378
|
+
function Fe(t, e, s, r, i) {
|
|
3376
3379
|
if (d.isFunction(r))
|
|
3377
3380
|
return r.call(this, e, s);
|
|
3378
3381
|
if (i && (e = s), !!d.isString(e)) {
|
|
@@ -3446,7 +3449,7 @@ class D {
|
|
|
3446
3449
|
has(e, s) {
|
|
3447
3450
|
if (e = he(e), e) {
|
|
3448
3451
|
const r = d.findKey(this, e);
|
|
3449
|
-
return !!(r && this[r] !== void 0 && (!s ||
|
|
3452
|
+
return !!(r && this[r] !== void 0 && (!s || Fe(this, this[r], r, s)));
|
|
3450
3453
|
}
|
|
3451
3454
|
return !1;
|
|
3452
3455
|
}
|
|
@@ -3456,7 +3459,7 @@ class D {
|
|
|
3456
3459
|
function o(n) {
|
|
3457
3460
|
if (n = he(n), n) {
|
|
3458
3461
|
const a = d.findKey(r, n);
|
|
3459
|
-
a && (!s ||
|
|
3462
|
+
a && (!s || Fe(r, r[a], a, s)) && (delete r[a], i = !0);
|
|
3460
3463
|
}
|
|
3461
3464
|
}
|
|
3462
3465
|
return d.isArray(e) ? e.forEach(o) : o(e), i;
|
|
@@ -3466,7 +3469,7 @@ class D {
|
|
|
3466
3469
|
let r = s.length, i = !1;
|
|
3467
3470
|
for (; r--; ) {
|
|
3468
3471
|
const o = s[r];
|
|
3469
|
-
(!e ||
|
|
3472
|
+
(!e || Fe(this, this[o], o, e, !0)) && (delete this[o], i = !0);
|
|
3470
3473
|
}
|
|
3471
3474
|
return i;
|
|
3472
3475
|
}
|
|
@@ -3544,16 +3547,16 @@ function ys(t) {
|
|
|
3544
3547
|
return !!(t && t.__CANCEL__);
|
|
3545
3548
|
}
|
|
3546
3549
|
function ne(t, e, s) {
|
|
3547
|
-
|
|
3550
|
+
$.call(this, t ?? "canceled", $.ERR_CANCELED, e, s), this.name = "CanceledError";
|
|
3548
3551
|
}
|
|
3549
|
-
d.inherits(ne,
|
|
3552
|
+
d.inherits(ne, $, {
|
|
3550
3553
|
__CANCEL__: !0
|
|
3551
3554
|
});
|
|
3552
3555
|
function ws(t, e, s) {
|
|
3553
3556
|
const r = s.config.validateStatus;
|
|
3554
|
-
!s.status || !r || r(s.status) ? t(s) : e(new
|
|
3557
|
+
!s.status || !r || r(s.status) ? t(s) : e(new $(
|
|
3555
3558
|
"Request failed with status code " + s.status,
|
|
3556
|
-
[
|
|
3559
|
+
[$.ERR_BAD_REQUEST, $.ERR_BAD_RESPONSE][Math.floor(s.status / 100) - 4],
|
|
3557
3560
|
s.config,
|
|
3558
3561
|
s.request,
|
|
3559
3562
|
s
|
|
@@ -3563,7 +3566,7 @@ function bi(t) {
|
|
|
3563
3566
|
const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
|
|
3564
3567
|
return e && e[1] || "";
|
|
3565
3568
|
}
|
|
3566
|
-
function
|
|
3569
|
+
function Si(t, e) {
|
|
3567
3570
|
t = t || 10;
|
|
3568
3571
|
const s = new Array(t), r = new Array(t);
|
|
3569
3572
|
let i = 0, o = 0, n;
|
|
@@ -3579,7 +3582,7 @@ function $i(t, e) {
|
|
|
3579
3582
|
return y ? Math.round(f * 1e3 / y) : void 0;
|
|
3580
3583
|
};
|
|
3581
3584
|
}
|
|
3582
|
-
function
|
|
3585
|
+
function $i(t, e) {
|
|
3583
3586
|
let s = 0, r = 1e3 / e, i, o;
|
|
3584
3587
|
const n = (h, c = Date.now()) => {
|
|
3585
3588
|
s = c, i = null, o && (clearTimeout(o), o = null), t(...h);
|
|
@@ -3593,8 +3596,8 @@ function Si(t, e) {
|
|
|
3593
3596
|
}
|
|
3594
3597
|
const Oe = (t, e, s = 3) => {
|
|
3595
3598
|
let r = 0;
|
|
3596
|
-
const i =
|
|
3597
|
-
return
|
|
3599
|
+
const i = Si(50, 250);
|
|
3600
|
+
return $i((o) => {
|
|
3598
3601
|
const n = o.loaded, a = o.lengthComputable ? o.total : void 0, l = n - r, h = i(l), c = n <= a;
|
|
3599
3602
|
r = n;
|
|
3600
3603
|
const u = {
|
|
@@ -3724,7 +3727,7 @@ function Z(t, e) {
|
|
|
3724
3727
|
d.isUndefined(f) && u !== a || (s[c] = f);
|
|
3725
3728
|
}), s;
|
|
3726
3729
|
}
|
|
3727
|
-
const
|
|
3730
|
+
const Ss = (t) => {
|
|
3728
3731
|
const e = Z({}, t);
|
|
3729
3732
|
let { data: s, withXSRFToken: r, xsrfHeaderName: i, xsrfCookieName: o, headers: n, auth: a } = e;
|
|
3730
3733
|
if (e.headers = n = D.from(n), e.url = fs(bs(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), a && n.set(
|
|
@@ -3747,7 +3750,7 @@ const $s = (t) => {
|
|
|
3747
3750
|
return e;
|
|
3748
3751
|
}, Ti = typeof XMLHttpRequest < "u", ki = Ti && function(t) {
|
|
3749
3752
|
return new Promise(function(s, r) {
|
|
3750
|
-
const i =
|
|
3753
|
+
const i = Ss(t);
|
|
3751
3754
|
let o = i.data;
|
|
3752
3755
|
const n = D.from(i.headers).normalize();
|
|
3753
3756
|
let { responseType: a, onUploadProgress: l, onDownloadProgress: h } = i, c, u, f, y, p;
|
|
@@ -3778,16 +3781,16 @@ const $s = (t) => {
|
|
|
3778
3781
|
"onloadend" in m ? m.onloadend = w : m.onreadystatechange = function() {
|
|
3779
3782
|
!m || m.readyState !== 4 || m.status === 0 && !(m.responseURL && m.responseURL.indexOf("file:") === 0) || setTimeout(w);
|
|
3780
3783
|
}, m.onabort = function() {
|
|
3781
|
-
m && (r(new
|
|
3784
|
+
m && (r(new $("Request aborted", $.ECONNABORTED, t, m)), m = null);
|
|
3782
3785
|
}, m.onerror = function(k) {
|
|
3783
|
-
const R = k && k.message ? k.message : "Network Error", q = new
|
|
3786
|
+
const R = k && k.message ? k.message : "Network Error", q = new $(R, $.ERR_NETWORK, t, m);
|
|
3784
3787
|
q.event = k || null, r(q), m = null;
|
|
3785
3788
|
}, m.ontimeout = function() {
|
|
3786
3789
|
let k = i.timeout ? "timeout of " + i.timeout + "ms exceeded" : "timeout exceeded";
|
|
3787
3790
|
const R = i.transitional || ms;
|
|
3788
|
-
i.timeoutErrorMessage && (k = i.timeoutErrorMessage), r(new
|
|
3791
|
+
i.timeoutErrorMessage && (k = i.timeoutErrorMessage), r(new $(
|
|
3789
3792
|
k,
|
|
3790
|
-
R.clarifyTimeoutError ?
|
|
3793
|
+
R.clarifyTimeoutError ? $.ETIMEDOUT : $.ECONNABORTED,
|
|
3791
3794
|
t,
|
|
3792
3795
|
m
|
|
3793
3796
|
)), m = null;
|
|
@@ -3798,7 +3801,7 @@ const $s = (t) => {
|
|
|
3798
3801
|
}, i.cancelToken && i.cancelToken.subscribe(c), i.signal && (i.signal.aborted ? c() : i.signal.addEventListener("abort", c)));
|
|
3799
3802
|
const _ = bi(i.url);
|
|
3800
3803
|
if (_ && x.protocols.indexOf(_) === -1) {
|
|
3801
|
-
r(new
|
|
3804
|
+
r(new $("Unsupported protocol " + _ + ":", $.ERR_BAD_REQUEST, t));
|
|
3802
3805
|
return;
|
|
3803
3806
|
}
|
|
3804
3807
|
m.send(o || null);
|
|
@@ -3811,11 +3814,11 @@ const $s = (t) => {
|
|
|
3811
3814
|
if (!i) {
|
|
3812
3815
|
i = !0, a();
|
|
3813
3816
|
const c = h instanceof Error ? h : this.reason;
|
|
3814
|
-
r.abort(c instanceof
|
|
3817
|
+
r.abort(c instanceof $ ? c : new ne(c instanceof Error ? c.message : c));
|
|
3815
3818
|
}
|
|
3816
3819
|
};
|
|
3817
3820
|
let n = e && setTimeout(() => {
|
|
3818
|
-
n = null, o(new
|
|
3821
|
+
n = null, o(new $(`timeout ${e} of ms exceeded`, $.ETIMEDOUT));
|
|
3819
3822
|
}, e);
|
|
3820
3823
|
const a = () => {
|
|
3821
3824
|
t && (n && clearTimeout(n), n = null, t.forEach((h) => {
|
|
@@ -3920,7 +3923,7 @@ const $s = (t) => {
|
|
|
3920
3923
|
let w = g && g[p];
|
|
3921
3924
|
if (w)
|
|
3922
3925
|
return w.call(g);
|
|
3923
|
-
throw new
|
|
3926
|
+
throw new $(`Response type '${p}' is not supported`, $.ERR_NOT_SUPPORT, m);
|
|
3924
3927
|
});
|
|
3925
3928
|
});
|
|
3926
3929
|
const f = async (p) => {
|
|
@@ -3955,11 +3958,11 @@ const $s = (t) => {
|
|
|
3955
3958
|
headers: Ie,
|
|
3956
3959
|
withCredentials: be = "same-origin",
|
|
3957
3960
|
fetchOptions: at
|
|
3958
|
-
} =
|
|
3961
|
+
} = Ss(p), lt = e || fetch;
|
|
3959
3962
|
U = U ? (U + "").toLowerCase() : "text";
|
|
3960
|
-
let
|
|
3961
|
-
const z =
|
|
3962
|
-
|
|
3963
|
+
let Se = Ci([_, E && E.toAbortSignal()], k), ae = null;
|
|
3964
|
+
const z = Se && Se.unsubscribe && (() => {
|
|
3965
|
+
Se.unsubscribe();
|
|
3963
3966
|
});
|
|
3964
3967
|
let ct;
|
|
3965
3968
|
try {
|
|
@@ -3970,17 +3973,17 @@ const $s = (t) => {
|
|
|
3970
3973
|
duplex: "half"
|
|
3971
3974
|
}), X;
|
|
3972
3975
|
if (d.isFormData(w) && (X = j.headers.get("content-type")) && Ie.setContentType(X), j.body) {
|
|
3973
|
-
const [Be,
|
|
3976
|
+
const [Be, $e] = Pt(
|
|
3974
3977
|
ct,
|
|
3975
3978
|
Oe(Dt(q))
|
|
3976
3979
|
);
|
|
3977
|
-
w = Nt(j.body, Lt, Be,
|
|
3980
|
+
w = Nt(j.body, Lt, Be, $e);
|
|
3978
3981
|
}
|
|
3979
3982
|
}
|
|
3980
3983
|
d.isString(be) || (be = be ? "include" : "omit");
|
|
3981
3984
|
const L = o && "credentials" in s.prototype, ht = {
|
|
3982
3985
|
...at,
|
|
3983
|
-
signal:
|
|
3986
|
+
signal: Se,
|
|
3984
3987
|
method: m.toUpperCase(),
|
|
3985
3988
|
headers: Ie.normalize().toJSON(),
|
|
3986
3989
|
body: w,
|
|
@@ -3995,13 +3998,13 @@ const $s = (t) => {
|
|
|
3995
3998
|
["status", "statusText", "headers"].forEach((ut) => {
|
|
3996
3999
|
j[ut] = B[ut];
|
|
3997
4000
|
});
|
|
3998
|
-
const X = d.toFiniteNumber(B.headers.get("content-length")), [Be,
|
|
4001
|
+
const X = d.toFiniteNumber(B.headers.get("content-length")), [Be, $e] = R && Pt(
|
|
3999
4002
|
X,
|
|
4000
4003
|
Oe(Dt(R), !0)
|
|
4001
4004
|
) || [];
|
|
4002
4005
|
B = new r(
|
|
4003
4006
|
Nt(B.body, Lt, Be, () => {
|
|
4004
|
-
|
|
4007
|
+
$e && $e(), z && z();
|
|
4005
4008
|
}),
|
|
4006
4009
|
j
|
|
4007
4010
|
);
|
|
@@ -4020,14 +4023,14 @@ const $s = (t) => {
|
|
|
4020
4023
|
});
|
|
4021
4024
|
} catch (L) {
|
|
4022
4025
|
throw z && z(), L && L.name === "TypeError" && /Load failed|fetch/i.test(L.message) ? Object.assign(
|
|
4023
|
-
new
|
|
4026
|
+
new $("Network Error", $.ERR_NETWORK, p, ae),
|
|
4024
4027
|
{
|
|
4025
4028
|
cause: L.cause || L
|
|
4026
4029
|
}
|
|
4027
|
-
) :
|
|
4030
|
+
) : $.from(L, L && L.code, p, ae);
|
|
4028
4031
|
}
|
|
4029
4032
|
};
|
|
4030
|
-
}, Ui = /* @__PURE__ */ new Map(),
|
|
4033
|
+
}, Ui = /* @__PURE__ */ new Map(), $s = (t) => {
|
|
4031
4034
|
let e = t && t.env || {};
|
|
4032
4035
|
const { fetch: s, Request: r, Response: i } = e, o = [
|
|
4033
4036
|
r,
|
|
@@ -4039,12 +4042,12 @@ const $s = (t) => {
|
|
|
4039
4042
|
l = o[a], h = c.get(l), h === void 0 && c.set(l, h = a ? /* @__PURE__ */ new Map() : Di(e)), c = h;
|
|
4040
4043
|
return h;
|
|
4041
4044
|
};
|
|
4042
|
-
|
|
4045
|
+
$s();
|
|
4043
4046
|
const ot = {
|
|
4044
4047
|
http: Zr,
|
|
4045
4048
|
xhr: ki,
|
|
4046
4049
|
fetch: {
|
|
4047
|
-
get:
|
|
4050
|
+
get: $s
|
|
4048
4051
|
}
|
|
4049
4052
|
};
|
|
4050
4053
|
d.forEach(ot, (t, e) => {
|
|
@@ -4066,7 +4069,7 @@ function Li(t, e) {
|
|
|
4066
4069
|
r = t[n];
|
|
4067
4070
|
let a;
|
|
4068
4071
|
if (i = r, !Ni(r) && (i = ot[(a = String(r)).toLowerCase()], i === void 0))
|
|
4069
|
-
throw new
|
|
4072
|
+
throw new $(`Unknown adapter '${a}'`);
|
|
4070
4073
|
if (i && (d.isFunction(i) || (i = i.get(e))))
|
|
4071
4074
|
break;
|
|
4072
4075
|
o[a || "#" + n] = i;
|
|
@@ -4078,7 +4081,7 @@ function Li(t, e) {
|
|
|
4078
4081
|
let a = s ? n.length > 1 ? `since :
|
|
4079
4082
|
` + n.map(Ht).join(`
|
|
4080
4083
|
`) : " " + Ht(n[0]) : "as no adapter specified";
|
|
4081
|
-
throw new
|
|
4084
|
+
throw new $(
|
|
4082
4085
|
"There is no suitable adapter to dispatch the request " + a,
|
|
4083
4086
|
"ERR_NOT_SUPPORT"
|
|
4084
4087
|
);
|
|
@@ -4101,7 +4104,7 @@ function ze(t) {
|
|
|
4101
4104
|
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
|
|
4102
4105
|
throw new ne(null, t);
|
|
4103
4106
|
}
|
|
4104
|
-
function
|
|
4107
|
+
function Mt(t) {
|
|
4105
4108
|
return ze(t), t.headers = D.from(t.headers), t.data = qe.call(
|
|
4106
4109
|
t,
|
|
4107
4110
|
t.transformRequest
|
|
@@ -4125,18 +4128,18 @@ const vs = "1.13.2", Le = {};
|
|
|
4125
4128
|
return typeof r === t || "a" + (e < 1 ? "n " : " ") + t;
|
|
4126
4129
|
};
|
|
4127
4130
|
});
|
|
4128
|
-
const
|
|
4131
|
+
const Ft = {};
|
|
4129
4132
|
Le.transitional = function(e, s, r) {
|
|
4130
4133
|
function i(o, n) {
|
|
4131
4134
|
return "[Axios v" + vs + "] Transitional option '" + o + "'" + n + (r ? ". " + r : "");
|
|
4132
4135
|
}
|
|
4133
4136
|
return (o, n, a) => {
|
|
4134
4137
|
if (e === !1)
|
|
4135
|
-
throw new
|
|
4138
|
+
throw new $(
|
|
4136
4139
|
i(n, " has been removed" + (s ? " in " + s : "")),
|
|
4137
|
-
|
|
4140
|
+
$.ERR_DEPRECATED
|
|
4138
4141
|
);
|
|
4139
|
-
return s && !
|
|
4142
|
+
return s && !Ft[n] && (Ft[n] = !0), e ? e(o, n, a) : !0;
|
|
4140
4143
|
};
|
|
4141
4144
|
};
|
|
4142
4145
|
Le.spelling = function(e) {
|
|
@@ -4144,7 +4147,7 @@ Le.spelling = function(e) {
|
|
|
4144
4147
|
};
|
|
4145
4148
|
function Ii(t, e, s) {
|
|
4146
4149
|
if (typeof t != "object")
|
|
4147
|
-
throw new
|
|
4150
|
+
throw new $("options must be an object", $.ERR_BAD_OPTION_VALUE);
|
|
4148
4151
|
const r = Object.keys(t);
|
|
4149
4152
|
let i = r.length;
|
|
4150
4153
|
for (; i-- > 0; ) {
|
|
@@ -4152,11 +4155,11 @@ function Ii(t, e, s) {
|
|
|
4152
4155
|
if (n) {
|
|
4153
4156
|
const a = t[o], l = a === void 0 || n(a, o, t);
|
|
4154
4157
|
if (l !== !0)
|
|
4155
|
-
throw new
|
|
4158
|
+
throw new $("option " + o + " must be " + l, $.ERR_BAD_OPTION_VALUE);
|
|
4156
4159
|
continue;
|
|
4157
4160
|
}
|
|
4158
4161
|
if (s !== !0)
|
|
4159
|
-
throw new
|
|
4162
|
+
throw new $("Unknown option " + o, $.ERR_BAD_OPTION);
|
|
4160
4163
|
}
|
|
4161
4164
|
}
|
|
4162
4165
|
const Te = {
|
|
@@ -4232,7 +4235,7 @@ class J {
|
|
|
4232
4235
|
});
|
|
4233
4236
|
let c, u = 0, f;
|
|
4234
4237
|
if (!l) {
|
|
4235
|
-
const p = [
|
|
4238
|
+
const p = [Mt.bind(this), void 0];
|
|
4236
4239
|
for (p.unshift(...a), p.push(...h), f = p.length, c = Promise.resolve(s); u < f; )
|
|
4237
4240
|
c = c.then(p[u++], p[u++]);
|
|
4238
4241
|
return c;
|
|
@@ -4249,7 +4252,7 @@ class J {
|
|
|
4249
4252
|
}
|
|
4250
4253
|
}
|
|
4251
4254
|
try {
|
|
4252
|
-
c =
|
|
4255
|
+
c = Mt.call(this, y);
|
|
4253
4256
|
} catch (p) {
|
|
4254
4257
|
return Promise.reject(p);
|
|
4255
4258
|
}
|
|
@@ -4455,7 +4458,7 @@ C.CancelToken = nt;
|
|
|
4455
4458
|
C.isCancel = ys;
|
|
4456
4459
|
C.VERSION = vs;
|
|
4457
4460
|
C.toFormData = Ne;
|
|
4458
|
-
C.AxiosError =
|
|
4461
|
+
C.AxiosError = $;
|
|
4459
4462
|
C.Cancel = C.CanceledError;
|
|
4460
4463
|
C.all = function(e) {
|
|
4461
4464
|
return Promise.all(e);
|
|
@@ -4530,7 +4533,7 @@ const Hi = ({ baseUrl: t, apiBaseUrl: e }) => {
|
|
|
4530
4533
|
export {
|
|
4531
4534
|
A as Auth,
|
|
4532
4535
|
qt as AuthRefreshError,
|
|
4533
|
-
|
|
4536
|
+
F as ThemeToggle,
|
|
4534
4537
|
Ki as apiClient,
|
|
4535
4538
|
Hi as createApiClient
|
|
4536
4539
|
};
|